@incodetech/web 2.2.0 → 2.3.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 +398 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/af-ZA-CiGNWICE.js +3043 -0
- package/dist/am-C5YehVGG.js +3043 -0
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/ar-AE-BMJuIKTB.js +3059 -0
- package/dist/ar-CUw7KMHb.js +3059 -0
- package/dist/ar-EG-ojf2Ene5.js +3059 -0
- package/dist/assets/dm-sans-latin-400-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-500-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-600-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-700-normal.woff2 +0 -0
- package/dist/assets/rethink-sans-latin-800-normal.woff2 +0 -0
- package/dist/authentication/authentication.es.js +15 -11
- package/dist/{autoFocusTitle-DB-23sv_.js → autoFocusTitle-CVjuQOGZ.js} +2 -2
- package/dist/az-DsqjgKhY.js +3043 -0
- package/dist/{back-horizontal-hint-CjdigFZj.js → back-horizontal-hint-UQ7Nof6k.js} +1 -1
- package/dist/{back-vertical-hint-OhaKsINF.js → back-vertical-hint-Crc8ybfk.js} +1 -1
- package/dist/base.css +917 -283
- package/dist/baseTutorial-BM2Ho3QZ.js +172 -0
- package/dist/bn-Bbn6O_i2.js +3043 -0
- package/dist/bottomSheet-Cixb81_b.js +101 -0
- package/dist/bs-CYW5eATI.js +3047 -0
- package/dist/ca-D5u2Z71o.js +3043 -0
- package/dist/cameraOverlay-MpL3OBQu.js +2 -0
- package/dist/cameraOverlayHeader-BarDrIC9.js +43 -0
- package/dist/cameraView-BNqv7JUh.js +49 -0
- package/dist/captureFooter-De74TCQi.js +67 -0
- package/dist/ceb-tXsl4nyX.js +3043 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +19 -14
- package/dist/certificate-issuance/styles.css.js +1 -0
- package/dist/{checkbox-FGA-Ij-D.js → checkbox-BR-RTI4R.js} +9 -8
- package/dist/{connectionError-BurQq_4R.js → connectionError-Haw33Di8.js} +4 -4
- package/dist/consent/consent.es.js +26 -33
- package/dist/consent/styles.css +4 -4
- package/dist/consent/styles.css.js +1 -0
- package/dist/countries-5e8kwG_m.js +8560 -0
- package/dist/{countrySelector-COZ7XQHp.js → countrySelector-Zbe2eGzy.js} +8 -10
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/cs-CZ-BUx_DNTa.js +3051 -0
- package/dist/cs-D_6Vg3XS.js +3051 -0
- package/dist/curp-validation/curp-validation.es.js +15 -22
- package/dist/curp-validation/styles.css.js +1 -0
- package/dist/custom-fields/styles.css.js +1 -0
- package/dist/{customFields-rVMTo1Yu.js → customFields-CEFWn2wC.js} +44 -19
- package/dist/{customWatchlist-DgpXtVRf.js → customWatchlist-Xn3d-zbf.js} +14 -11
- package/dist/da-DK-CsmjiCBo.js +3043 -0
- package/dist/{dashboardTheme-BUDq5UYs.js → dashboardTheme-B_YjGFDU.js} +31 -7
- package/dist/dateInputComposed-0tUVTT0_.js +1 -0
- package/dist/{dateInputComposed-DSgV0wnb.js → dateInputComposed-ByhgHDX8.js} +5 -5
- package/dist/de-BsJlhx6J.js +3043 -0
- package/dist/{manualCaptureButton-D58WsS-x.js → denied-CB1v3PyY.js} +270 -233
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +4 -4
- package/dist/document-capture/styles.css.js +1 -0
- package/dist/{documentCapture-sZj09g0I.js → documentCapture-Cj8G5Wgb.js} +16 -17
- package/dist/documentCapture-D0o4Xh1J.js +2 -0
- package/dist/dropdownComposed-BsEtJjhn.js +1 -0
- package/dist/{dropdownComposed-CEegNzG4.js → dropdownComposed-DptsxuHA.js} +9 -9
- package/dist/{dynamicForms-t3vepXqJ.js → dynamic-forms/dynamic-forms.es.js} +24 -19
- package/dist/dynamic-forms/styles.css +5 -0
- package/dist/dynamic-forms/styles.css.js +1 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +15 -13
- package/dist/ekyb/styles.css.js +1 -0
- package/dist/ekybModule-B-gioC08.js +2 -0
- package/dist/{ekybModule-Dvkf5WAr.js → ekybModule-DqA0hfNQ.js} +17 -30
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +17 -16
- package/dist/ekyc/styles.css.js +1 -0
- package/dist/ekycModule-CjkpPQ3f.js +2 -0
- package/dist/{ekycModule-C5QXVGP7.js → ekycModule-bRC6FW2H.js} +14 -29
- package/dist/el-Dq-L-4X5.js +3043 -0
- package/dist/el-GR-c9roJIs_.js +3043 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/electronic-signature/styles.css +62 -2
- package/dist/electronic-signature/styles.css.js +1 -0
- package/dist/{electronic-signature-CyE8F7LZ.js → electronic-signature-DRMdCzdF.js} +65 -18
- package/dist/email/email.es.js +9 -8
- package/dist/email/styles.css.js +1 -0
- package/dist/{emailInput-CsT8_C01.js → emailInput-Dz8ukhAE.js} +4 -4
- package/dist/en-CmZT05w8.js +3043 -0
- package/dist/en-DG-BQHfwiXE.js +3043 -0
- package/dist/errorContent-aJuo21I4.js +58 -0
- package/dist/es-419-CoqfXTDl.js +3043 -0
- package/dist/es-DXFWBB40.js +3043 -0
- package/dist/es-ES-TOSb7vSR.js +3043 -0
- package/dist/es-MX-CpubyuFB.js +3043 -0
- package/dist/et-dg12JfIX.js +3043 -0
- package/dist/{expiredId-BQ1uPh7b.js → expiredId-BPgVum6e.js} +22 -27
- package/dist/extensibility.es.js +701 -24
- package/dist/fa-IR-TKcZgrd1.js +3043 -0
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +76 -40
- package/dist/face-match/styles.css.js +1 -0
- package/dist/{faceMatch-Rf-MMdto.js → faceMatch-BcScQR2O.js} +7 -8
- package/dist/faceMatch-BvaN_Ggn.js +2 -0
- package/dist/fi-FI-BP9vgY5F.js +3043 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/field-comparison/styles.css +12 -0
- package/dist/field-comparison/styles.css.js +1 -0
- package/dist/fieldComparison-D4YoXJKX.js +2 -0
- package/dist/{fieldComparison-BnGj3nNp.js → fieldComparison-UKZsi875.js} +27 -11
- package/dist/fieldLabelHint-CxjArYkQ.js +16 -0
- package/dist/{finalSuccessScreen-B9uB3bST.js → finalSuccessScreen-7OX0TdIz.js} +13 -14
- package/dist/fiscal-qr/fiscal-qr.es.js +28 -9
- package/dist/fiscal-qr/styles.css +13 -1
- package/dist/fiscal-qr/styles.css.js +1 -0
- package/dist/{extensibility-C5XqL_A3.js → flipAnimation-BwI4pEJc.js} +608 -1005
- package/dist/flow/flow.es.js +308 -62
- package/dist/flow/shell/styles.css +402 -0
- package/dist/flow/shell/styles.css.js +1 -0
- package/dist/flow/styles.css +582 -312
- package/dist/formField-DWExlgnz.js +60 -0
- package/dist/fr-B4LoNDGy.js +3047 -0
- package/dist/fr-CA-CjN8CDsE.js +3047 -0
- package/dist/{front-horizontal-hint-Bhz1rq-w.js → front-horizontal-hint-mgovnJf3.js} +1 -1
- package/dist/{front-vertical-hint-C4FC1ksx.js → front-vertical-hint-qXMVdLri.js} +1 -1
- package/dist/geolocation/geolocation.es.js +9 -9
- package/dist/geolocation/styles.css +4 -4
- package/dist/geolocation/styles.css.js +1 -0
- package/dist/government-validation/government-validation.es.js +38 -86
- package/dist/government-validation/styles.css +2 -38
- package/dist/government-validation/styles.css.js +1 -0
- package/dist/he-CJNS0xku.js +3051 -0
- package/dist/hi-CoHu7PnX.js +3043 -0
- package/dist/hmn-qubMIB6T.js +3043 -0
- package/dist/{homeScreen-Bv9mUUOF.js → homeScreen-CqLbJbhW.js} +8 -7
- package/dist/hr-N3Dy9ndd.js +3047 -0
- package/dist/ht-iHGiGZhO.js +3043 -0
- package/dist/hu-hlQUlAJs.js +3043 -0
- package/dist/{icons-ChHV5iHi.js → icons-DNXYxUPA.js} +99 -11
- package/dist/id/id.es.js +576 -62
- package/dist/id/styles.css +114 -45
- package/dist/id/styles.css.js +1 -0
- package/dist/id-Dhk7ywrq.js +3037 -0
- package/dist/{id-back-of-card-C4XViC7W.js → id-back-of-card-B6EcmiCs.js} +1 -1
- package/dist/{id-back-of-card-vertical-DCz0rj8m.js → id-back-of-card-vertical-B3FXhPpj.js} +1 -1
- package/dist/{id-front-of-card-CUA1ocVF.js → id-front-of-card-V_BlLaZr.js} +1 -1
- package/dist/{id-front-of-card-vertical-Ddm_BwD3.js → id-front-of-card-vertical-CuZjL8kc.js} +1 -1
- package/dist/id-ocr/styles.css.js +1 -0
- package/dist/id-selfie-flow/id-selfie-flow.es.js +10 -9
- package/dist/id-selfie-flow/styles.css +40 -8
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Da1-2sWY.js → idOcr-Bt0V72id.js} +13 -16
- package/dist/identity-reuse/identity-reuse.es.js +8 -113
- package/dist/identity-reuse/styles.css +1 -1
- package/dist/{incode-logo-DeIDDejm.js → incode-logo-BzJOZr3f.js} +1 -64
- package/dist/{incodeComponent-BtFz-bx2.js → incodeComponent-DeVV0gEn.js} +192 -22
- package/dist/{incodeModule-9K8KUs61.js → incodeModule-Do8qpZk7.js} +3 -3
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-C2zTEXsp.js → inputComposed-9aPipTS_.js} +9 -9
- package/dist/inputComposed-DZokKK4c.js +1 -0
- package/dist/it-CXYuJ5BQ.js +3043 -0
- package/dist/ja-B5OkMrWD.js +3037 -0
- package/dist/ja-JP-SlPp7xE2.js +3037 -0
- package/dist/jv-DduD6MhM.js +3037 -0
- package/dist/ka-CG2wabuB.js +3043 -0
- package/dist/kk-D984nBRQ.js +3043 -0
- package/dist/km-B-DaaNxL.js +3037 -0
- package/dist/ko-B8I6YPOu.js +3037 -0
- package/dist/ko-KP-BTQZdVex.js +3037 -0
- package/dist/ky-p_wAYlXq.js +3043 -0
- package/dist/lo-CS-RhXrt.js +3037 -0
- package/dist/lt-C1yAMYTU.js +3051 -0
- package/dist/lv-CiHCsaN9.js +3047 -0
- package/dist/{mandatoryConsent-CxShVycM.js → mandatoryConsent-BJcDf3s-.js} +10 -7
- package/dist/manualCaptureButton-2RTC1vZC.js +63 -0
- package/dist/{manualCaptureButton-DzJFIEfu.js → manualCaptureButton-CqwPCE8h.js} +10 -55
- package/dist/mk-VumecXcv.js +3043 -0
- package/dist/mn-DGMJpCs6.js +3043 -0
- package/dist/{modal-BH2wi8Q0.js → modal-H_YHBjxJ.js} +7 -6
- package/dist/{modal.hooks-DcakflQ4.js → modal.hooks-B0Wrc9s2.js} +7 -1
- package/dist/ms-CBk2NkZ1.js +3037 -0
- package/dist/my-BWcPvvs5.js +3037 -0
- package/dist/nb-NO-D7azau2s.js +3043 -0
- package/dist/ne-D9CU-qx6.js +3043 -0
- package/dist/nl-BVhLZVXm.js +3043 -0
- package/dist/{numberedStep-DqtXyT11.js → numberedStep-C8e_uPaz.js} +1 -1
- package/dist/{optionAccessibleLabel-C5iZCrlq.js → optionAccessibleLabel-C0BRq4LF.js} +6 -6
- package/dist/{otpInput-CvPR3ZpP.js → otpInput-C8mlw_Cm.js} +8 -83
- package/dist/{passport-horizontal-hint-DzkhjC8Q.js → passport-horizontal-hint-6Ghn2EEN.js} +1 -1
- package/dist/{passport-vertical-hint-Bd0BQn2Y.js → passport-vertical-hint-UPFFpdf4.js} +1 -1
- package/dist/passwordInputComposed-CDbxJKHR.js +74 -0
- package/dist/{pdf-BUoY_2gv.js → pdf-CFubyG0B.js} +1 -1
- package/dist/pdfViewer-CCu7pBQv.js +2 -0
- package/dist/{pdfViewer-TTZmPABh.js → pdfViewer-DTwxqwSD.js} +4 -4
- package/dist/permissions-B0ctl0V9.js +212 -0
- package/dist/phone/phone.es.js +10 -9
- package/dist/phone/styles.css +1 -1
- package/dist/phone/styles.css.js +1 -0
- package/dist/{phoneInputComposed-byyszNoS.js → phoneInputComposed-Bz37hY_u.js} +20 -8412
- package/dist/pl-DWKpY783.js +3051 -0
- package/dist/{processing-B2eaSGLu.js → processing-CrNgzN1u.js} +2 -2
- package/dist/pt-B2_-n4Z3.js +3043 -0
- package/dist/pt-BR-CC8MxgMX.js +3043 -0
- package/dist/pt-PT-vo9--bzz.js +3043 -0
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/radioGroupComposed-BFzxJVpZ.js +1 -0
- package/dist/{radioGroupComposed-DQzTWutW.js → radioGroupComposed-BrawV4FU.js} +15 -71
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -178
- package/dist/redirect-to-mobile/styles.css +2 -27
- package/dist/redirect-to-mobile/styles.css.js +1 -0
- package/dist/{registerIncodeElement-DW2PE_DX.js → registerIncodeElement-CbZczi4S.js} +1 -1
- package/dist/resendTimer-C0HqF9VE.js +79 -0
- package/dist/{useModuleLoader-DxOEZ0vn.js → resolveApiKey-DU0APKTv.js} +70 -222
- package/dist/{richText-CEwM8jib.js → richText-BEuqr0as.js} +9 -9
- package/dist/ro-DOhwcTr3.js +3047 -0
- package/dist/ru-CD71PeIH.js +3051 -0
- package/dist/ru-RU-DLHiNY0O.js +3051 -0
- package/dist/selfie/selfie.es.js +184 -8
- package/dist/selfie/styles.css +225 -36
- package/dist/selfie/styles.css.js +1 -0
- package/dist/signature/signature.es.js +8 -9
- package/dist/signature/styles.css.js +1 -0
- package/dist/sk-DaVWjX4k.js +3051 -0
- package/dist/sl-YiCpfUol.js +3051 -0
- package/dist/smsTabContent-C1C1g4GT.js +172 -0
- package/dist/so-B2bRmOT5.js +3043 -0
- package/dist/{spacer-DLEDuWEx.js → spacer-DZ-t7RMQ.js} +10 -10
- package/dist/spinner-hjbTcmA1.js +88 -0
- package/dist/sr-BbjKCO-a.js +3047 -0
- package/dist/sr-Latn-D-xKaOqV.js +3047 -0
- package/dist/sr-YU-1ULH6b8i.js +3047 -0
- package/dist/{statusPage-BF4qGjF3.js → statusPage-DeP-KBHD.js} +4 -4
- package/dist/sv-SE-5wAQ-CsE.js +3043 -0
- package/dist/sw-DVj-0--U.js +3043 -0
- package/dist/{tabs-BGL1oRLb.js → tabs-C8WsKO4V.js} +2 -2
- package/dist/th-TH-DAqLZmwn.js +3037 -0
- package/dist/th-ubpxty9O.js +3037 -0
- package/dist/themes/dark.css +125 -0
- package/dist/themes/light.css +124 -0
- package/dist/tl-DCL6tS5T.js +3043 -0
- package/dist/tl-PH-Wftt86RZ.js +3043 -0
- package/dist/tr-B58sWy89.js +3043 -0
- package/dist/{tutorial-LQuJ4dse.js → tutorial-BP1F722m.js} +40 -226
- package/dist/types/certificate-issuance.d.ts +4 -4
- package/dist/types/dynamic-forms.d.ts +177 -0
- package/dist/types/extensibility.d.ts +75 -23
- package/dist/types/flow.d.ts +37 -0
- package/dist/types/government-validation.d.ts +2 -1
- package/dist/types/index.d.ts +28 -4
- package/dist/types/video-selfie.d.ts +6 -161
- package/dist/typography-CYO7ELEl.js +53 -0
- package/dist/{uiConfig-Dqnjankd.js → uiConfig-BcjOx3PY.js} +184 -8
- package/dist/uk-BaklGIxd.js +3051 -0
- package/dist/uk-UA-BoawOp_y.js +3051 -0
- package/dist/ur-MYw3j3wD.js +3043 -0
- package/dist/useModuleLoader-DpcbSKBH.js +176 -0
- package/dist/uz-DWfToWrZ.js +3043 -0
- package/dist/{vendor-preact-BPXMFRom.js → vendor-preact-C0jX1Cbq.js} +68 -181
- package/dist/{verificationResult-q_zD_Pxh.js → verificationResult-Bre5Fb7M.js} +32 -25
- package/dist/vi-IY_487Pk.js +3037 -0
- package/dist/video-selfie/styles.css +51 -17
- package/dist/video-selfie/styles.css.js +1 -0
- package/dist/video-selfie/video-selfie.es.js +35 -23
- package/dist/watchlist/watchlist.es.js +7 -7
- package/dist/watchlist-for-business/styles.css.js +1 -0
- package/dist/{watchlistForBusiness-C_zqdY4P.js → watchlistForBusiness-BIrl-mYj.js} +28 -16
- package/dist/workflow/styles.css +1073 -356
- package/dist/workflow/workflow.es.js +17 -15
- package/dist/zh-B1yRDjHf.js +3037 -0
- package/dist/zh-CN-B2Yvvabk.js +3037 -0
- package/dist/zh-HANT-CdNxQtKM.js +3037 -0
- package/dist/zh-TW-BgqFmnMA.js +3037 -0
- package/package.json +32 -22
- package/dist/bottomSheet-BWEUBq8m.js +0 -38
- package/dist/dateInputComposed-BGC37jC7.js +0 -1
- package/dist/documentCapture-CO9kIxru.js +0 -2
- package/dist/dropdownComposed-Bf4EcKFw.js +0 -1
- package/dist/ekybModule-uN0ComAn.js +0 -2
- package/dist/ekycModule-B7KRJ7l3.js +0 -2
- package/dist/faceMatch-DjD2hgBp.js +0 -2
- package/dist/fieldComparison-DFH4hUM_.js +0 -2
- package/dist/inputComposed-kKtrvJU5.js +0 -1
- package/dist/pdfViewer-C1B-07Wu.js +0 -2
- package/dist/requiredLabelHint-Dx0WS2cR.js +0 -17
- package/dist/snackbar-eBOj46AK.js +0 -16
- package/dist/spinner-CJCOHUKx.js +0 -95
- package/dist/successIcon-DS8BLsgy.js +0 -30
- package/dist/types/dynamic-forms/styles.d.ts +0 -1
- /package/dist/{aligndevicelottie-CfoZ5Uus.js → aligndevicelottie-B12hbVhG.js} +0 -0
- /package/dist/{back-tutorial-BHyRHyET.js → back-tutorial-XdmQ0Wml.js} +0 -0
- /package/dist/{backdevicelottie-yKkczgFy.js → backdevicelottie-m_DOD8xE.js} +0 -0
- /package/dist/{blurdevicelottie-8BbophdM.js → blurdevicelottie-DQo_hTMD.js} +0 -0
- /package/dist/{browser-ponyfill-CBjGwwPW.js → browser-ponyfill-ZkeBm4ji.js} +0 -0
- /package/dist/{defineProperty-BbpBna-2.js → defineProperty-BojnCa44.js} +0 -0
- /package/dist/{flip-animation-CvN8FLNc.js → flip-animation-VicedlT5.js} +0 -0
- /package/dist/{frontdevicelottie-CFcahVLk.js → frontdevicelottie-CyIerlMv.js} +0 -0
- /package/dist/{glaredevicelottie-Cnvah0kz.js → glaredevicelottie-QM2C6Ivp.js} +0 -0
- /package/dist/{id-laser-h-BaUHzX-d.js → id-laser-h-B0-iXcvl.js} +0 -0
- /package/dist/{id-laser-v-Dv9yEYJE.js → id-laser-v-Bqh6vimi.js} +0 -0
- /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-IhmAzrIF.js} +0 -0
- /package/dist/{lottie_light-Bv56F2Ae.js → lottie_light-CzZ3CHBk.js} +0 -0
- /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-61vlloJS.js} +0 -0
- /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-BRQ2QNxQ.js} +0 -0
|
@@ -1,15 +1,157 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { v as WarningIcon } from "./icons-ChHV5iHi.js";
|
|
8
|
-
import { t as Modal } from "./modal-BH2wi8Q0.js";
|
|
9
|
-
import { t as BottomSheet } from "./bottomSheet-BWEUBq8m.js";
|
|
10
|
-
import { t as NumberedStep } from "./numberedStep-DqtXyT11.js";
|
|
1
|
+
import { a as Trans, o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
|
+
import { S as k, _ as y, c as A, h as q, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { c as Page } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { i as TypographyH4, t as Title } from "./typography-CYO7ELEl.js";
|
|
5
|
+
import { x as Button } from "./icons-DNXYxUPA.js";
|
|
6
|
+
import { t as NumberedStep } from "./numberedStep-C8e_uPaz.js";
|
|
11
7
|
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
12
|
-
|
|
8
|
+
//#region src/hooks/useCoverMedia.ts
|
|
9
|
+
var CONVERGENCE_TIMEOUT_MS = 1e4;
|
|
10
|
+
var CONVERGENCE_INTERVAL_MS = 100;
|
|
11
|
+
var PENDING_CLASS = "IncodeMediaCoverPending";
|
|
12
|
+
/**
|
|
13
|
+
* Returns the explicit box that produces `object-fit: cover` geometry.
|
|
14
|
+
* Kept pure so the visual calculation is independently testable.
|
|
15
|
+
*/
|
|
16
|
+
function calculateCoverMediaGeometry(sourceWidth, sourceHeight, containerWidth, containerHeight) {
|
|
17
|
+
if (!Number.isFinite(sourceWidth) || !Number.isFinite(sourceHeight) || !Number.isFinite(containerWidth) || !Number.isFinite(containerHeight) || sourceWidth <= 0 || sourceHeight <= 0 || containerWidth <= 0 || containerHeight <= 0) return;
|
|
18
|
+
const scale = Math.max(containerWidth / sourceWidth, containerHeight / sourceHeight);
|
|
19
|
+
const width = sourceWidth * scale;
|
|
20
|
+
const height = sourceHeight * scale;
|
|
21
|
+
return {
|
|
22
|
+
width: `${width.toFixed(2)}px`,
|
|
23
|
+
height: `${height.toFixed(2)}px`,
|
|
24
|
+
left: `${((containerWidth - width) / 2).toFixed(2)}px`,
|
|
25
|
+
top: `${((containerHeight - height) / 2).toFixed(2)}px`
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Safari reports `object-fit` support even when its MediaStream paint is
|
|
30
|
+
* incorrect, so CSS.supports cannot detect this bug. Keep the workaround
|
|
31
|
+
* narrowly scoped to the affected iOS/iPadOS 27 WebKit builds instead.
|
|
32
|
+
*/
|
|
33
|
+
function needsExplicitMediaCover(userAgent, platform, maxTouchPoints) {
|
|
34
|
+
const iosDevice = /\b(?:iPhone|iPad|iPod)\b/.test(userAgent);
|
|
35
|
+
const iosVersion = userAgent.match(/CPU (?:iPhone )?OS (\d+)[_.]/)?.[1];
|
|
36
|
+
if (iosDevice && iosVersion === "27") return true;
|
|
37
|
+
const desktopModeIPad = platform === "MacIntel" && maxTouchPoints > 1;
|
|
38
|
+
const safariVersion = userAgent.match(/Version\/(\d+)[._]/)?.[1];
|
|
39
|
+
return desktopModeIPad && safariVersion === "27";
|
|
40
|
+
}
|
|
41
|
+
function isExplicitMediaCoverNeeded() {
|
|
42
|
+
if (typeof navigator === "undefined") return false;
|
|
43
|
+
return needsExplicitMediaCover(navigator.userAgent, navigator.platform, navigator.maxTouchPoints);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Applies explicit `cover` geometry only to iOS/iPadOS 27 MediaStream media.
|
|
47
|
+
* Compliant browsers retain native `object-fit: cover`, with no observers,
|
|
48
|
+
* event listeners, polling, or inline geometry.
|
|
49
|
+
*
|
|
50
|
+
* `reattachKey` restarts the workaround when the media source changes. Pass a
|
|
51
|
+
* MediaStream for video and the canvas instance for imperative avatar canvases.
|
|
52
|
+
*/
|
|
53
|
+
function useCoverMedia(mediaRef, reattachKey) {
|
|
54
|
+
const explicitCoverNeeded = isExplicitMediaCoverNeeded();
|
|
55
|
+
const applyCover = q(() => {
|
|
56
|
+
const media = mediaRef.current;
|
|
57
|
+
const container = media?.parentElement;
|
|
58
|
+
if (!media || !container) return false;
|
|
59
|
+
const sourceWidth = media instanceof HTMLVideoElement ? media.videoWidth : media.width;
|
|
60
|
+
const sourceHeight = media instanceof HTMLVideoElement ? media.videoHeight : media.height;
|
|
61
|
+
const { width: containerWidth, height: containerHeight } = container.getBoundingClientRect();
|
|
62
|
+
const geometry = calculateCoverMediaGeometry(sourceWidth, sourceHeight, containerWidth, containerHeight);
|
|
63
|
+
if (!geometry) return false;
|
|
64
|
+
if (media.style.width === geometry.width && media.style.height === geometry.height && media.style.left === geometry.left && media.style.top === geometry.top) return true;
|
|
65
|
+
media.style.maxWidth = "none";
|
|
66
|
+
media.style.maxHeight = "none";
|
|
67
|
+
media.style.right = "auto";
|
|
68
|
+
media.style.bottom = "auto";
|
|
69
|
+
media.style.width = geometry.width;
|
|
70
|
+
media.style.height = geometry.height;
|
|
71
|
+
media.style.left = geometry.left;
|
|
72
|
+
media.style.top = geometry.top;
|
|
73
|
+
return true;
|
|
74
|
+
}, [mediaRef]);
|
|
75
|
+
y(() => {
|
|
76
|
+
if (!explicitCoverNeeded) return;
|
|
77
|
+
const media = mediaRef.current;
|
|
78
|
+
if (!media) return;
|
|
79
|
+
const cleanups = [];
|
|
80
|
+
media.classList.add(PENDING_CLASS);
|
|
81
|
+
cleanups.push(() => media.classList.remove(PENDING_CLASS));
|
|
82
|
+
const reveal = () => media.classList.remove(PENDING_CLASS);
|
|
83
|
+
let pollId;
|
|
84
|
+
let timeoutId;
|
|
85
|
+
const stopPolling = () => {
|
|
86
|
+
if (pollId !== void 0) {
|
|
87
|
+
clearInterval(pollId);
|
|
88
|
+
pollId = void 0;
|
|
89
|
+
}
|
|
90
|
+
if (timeoutId !== void 0) {
|
|
91
|
+
clearTimeout(timeoutId);
|
|
92
|
+
timeoutId = void 0;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
cleanups.push(stopPolling);
|
|
96
|
+
const tryApply = () => {
|
|
97
|
+
const applied = applyCover();
|
|
98
|
+
if (applied) {
|
|
99
|
+
reveal();
|
|
100
|
+
stopPolling();
|
|
101
|
+
}
|
|
102
|
+
return applied;
|
|
103
|
+
};
|
|
104
|
+
let frame1 = 0;
|
|
105
|
+
let frame2 = 0;
|
|
106
|
+
const applyCoverSettled = () => {
|
|
107
|
+
tryApply();
|
|
108
|
+
cancelAnimationFrame(frame1);
|
|
109
|
+
cancelAnimationFrame(frame2);
|
|
110
|
+
frame1 = requestAnimationFrame(() => {
|
|
111
|
+
tryApply();
|
|
112
|
+
frame2 = requestAnimationFrame(tryApply);
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
if (media instanceof HTMLVideoElement) for (const event of ["loadedmetadata", "resize"]) {
|
|
116
|
+
media.addEventListener(event, applyCoverSettled);
|
|
117
|
+
cleanups.push(() => media.removeEventListener(event, applyCoverSettled));
|
|
118
|
+
}
|
|
119
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
120
|
+
const observer = new ResizeObserver(() => tryApply());
|
|
121
|
+
const container = media.parentElement;
|
|
122
|
+
if (container) observer.observe(container);
|
|
123
|
+
observer.observe(media);
|
|
124
|
+
cleanups.push(() => observer.disconnect());
|
|
125
|
+
}
|
|
126
|
+
window.addEventListener("resize", applyCoverSettled);
|
|
127
|
+
window.addEventListener("orientationchange", applyCoverSettled);
|
|
128
|
+
cleanups.push(() => {
|
|
129
|
+
window.removeEventListener("resize", applyCoverSettled);
|
|
130
|
+
window.removeEventListener("orientationchange", applyCoverSettled);
|
|
131
|
+
});
|
|
132
|
+
const startPolling = () => {
|
|
133
|
+
pollId = setInterval(tryApply, CONVERGENCE_INTERVAL_MS);
|
|
134
|
+
timeoutId = setTimeout(() => {
|
|
135
|
+
stopPolling();
|
|
136
|
+
reveal();
|
|
137
|
+
}, CONVERGENCE_TIMEOUT_MS);
|
|
138
|
+
};
|
|
139
|
+
if (!tryApply()) startPolling();
|
|
140
|
+
applyCoverSettled();
|
|
141
|
+
return () => {
|
|
142
|
+
cancelAnimationFrame(frame1);
|
|
143
|
+
cancelAnimationFrame(frame2);
|
|
144
|
+
for (const cleanup of cleanups) cleanup();
|
|
145
|
+
};
|
|
146
|
+
}, [
|
|
147
|
+
applyCover,
|
|
148
|
+
explicitCoverNeeded,
|
|
149
|
+
mediaRef,
|
|
150
|
+
reattachKey
|
|
151
|
+
]);
|
|
152
|
+
return applyCover;
|
|
153
|
+
}
|
|
154
|
+
//#endregion
|
|
13
155
|
//#region src/shared/permissions/camera/boldWithArrow.tsx
|
|
14
156
|
var BoldWithArrow = ({ i18nKey }) => /* @__PURE__ */ u("span", {
|
|
15
157
|
class: "IncodeBoldWithArrow",
|
|
@@ -673,6 +815,80 @@ var SvgCheckIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
|
673
815
|
})
|
|
674
816
|
});
|
|
675
817
|
//#endregion
|
|
818
|
+
//#region src/shared/permissions/assets/reload-icon.svg?react
|
|
819
|
+
var SvgReloadIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
820
|
+
width: 24,
|
|
821
|
+
height: 24,
|
|
822
|
+
viewBox: "0 0 24 24",
|
|
823
|
+
fill: "none",
|
|
824
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
825
|
+
...props,
|
|
826
|
+
children: /* @__PURE__ */ u("path", {
|
|
827
|
+
fillRule: "evenodd",
|
|
828
|
+
clipRule: "evenodd",
|
|
829
|
+
d: "M18.229 10.3584L17.156 12.1152C17.055 12.2803 16.89 12.3994 16.698 12.4483C16.635 12.4637 16.573 12.4714 16.509 12.4714C16.376 12.4714 16.245 12.4378 16.128 12.3715L14.311 11.3443C13.955 11.1418 13.835 10.7002 14.045 10.3584C14.254 10.0157 14.712 9.90048 15.073 10.103L15.333 10.2499C14.735 9.04896 13.461 8.208 12 8.208C10.784 8.208 9.645 8.78112 8.953 9.74112C8.717 10.0675 8.251 10.151 7.91 9.92352C7.569 9.69696 7.484 9.24864 7.72 8.92128C8.692 7.57344 10.292 6.768 12 6.768C14.146 6.768 16.005 8.05536 16.792 9.86496L16.936 9.62976C17.143 9.28608 17.602 9.17088 17.962 9.37344C18.319 9.57408 18.439 10.0157 18.229 10.3584ZM16.279 14.5987C15.307 15.9475 13.708 16.753 11.999 16.753C9.85 16.753 7.991 15.4666 7.205 13.6589L7.063 13.8912C6.924 14.1197 6.673 14.2464 6.416 14.2464C6.287 14.2464 6.157 14.2147 6.037 14.1475C5.68 13.9469 5.56 13.5053 5.77 13.1626L6.843 11.4058C6.944 11.2406 7.109 11.1206 7.301 11.0726C7.495 11.0246 7.699 11.0525 7.871 11.1494L9.688 12.1766C10.044 12.3782 10.164 12.8198 9.954 13.1626C9.744 13.5043 9.286 13.6195 8.926 13.4179L8.66 13.2672C9.256 14.4701 10.533 15.313 11.999 15.313C13.214 15.313 14.354 14.7398 15.044 13.7798C15.279 13.4534 15.744 13.3699 16.088 13.5974C16.429 13.823 16.514 14.2723 16.279 14.5987ZM15.974 2.64H8.027C4.721 2.64 2.5 4.67808 2.5 7.70976V15.8112C2.5 18.8429 4.721 20.88 8.027 20.88H15.974C19.28 20.88 21.5 18.8429 21.5 15.8112V7.70976C21.5 4.67808 19.28 2.64 15.974 2.64Z",
|
|
830
|
+
fill: "currentColor"
|
|
831
|
+
})
|
|
832
|
+
});
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region src/shared/permissions/assets/person-card-icon.svg?react
|
|
835
|
+
var SvgPersonCardIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
836
|
+
width: 24,
|
|
837
|
+
height: 24,
|
|
838
|
+
viewBox: "0 0 24 24",
|
|
839
|
+
fill: "none",
|
|
840
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
841
|
+
...props,
|
|
842
|
+
children: [
|
|
843
|
+
/* @__PURE__ */ u("path", {
|
|
844
|
+
fillRule: "evenodd",
|
|
845
|
+
clipRule: "evenodd",
|
|
846
|
+
d: "M18.229 10.3584L17.156 12.1152C17.055 12.2803 16.89 12.3994 16.698 12.4483C16.635 12.4637 16.573 12.4714 16.509 12.4714C16.376 12.4714 16.245 12.4378 16.128 12.3715L14.311 11.3443C13.955 11.1418 13.835 10.7002 14.045 10.3584C14.254 10.0157 14.712 9.90048 15.073 10.103L15.333 10.2499C14.735 9.04896 13.461 8.208 12 8.208C10.784 8.208 9.645 8.78112 8.953 9.74112C8.717 10.0675 8.251 10.151 7.91 9.92352C7.569 9.69696 7.484 9.24864 7.72 8.92128C8.692 7.57344 10.292 6.768 12 6.768C14.146 6.768 16.005 8.05536 16.792 9.86496L16.936 9.62976C17.143 9.28608 17.602 9.17088 17.962 9.37344C18.319 9.57408 18.439 10.0157 18.229 10.3584ZM16.279 14.5987C15.307 15.9475 13.708 16.753 11.999 16.753C9.85 16.753 7.991 15.4666 7.205 13.6589L7.063 13.8912C6.924 14.1197 6.673 14.2464 6.416 14.2464C6.287 14.2464 6.157 14.2147 6.037 14.1475C5.68 13.9469 5.56 13.5053 5.77 13.1626L6.843 11.4058C6.944 11.2406 7.109 11.1206 7.301 11.0726C7.495 11.0246 7.699 11.0525 7.871 11.1494L9.688 12.1766C10.044 12.3782 10.164 12.8198 9.954 13.1626C9.744 13.5043 9.286 13.6195 8.926 13.4179L8.66 13.2672C9.256 14.4701 10.533 15.313 11.999 15.313C13.214 15.313 14.354 14.7398 15.044 13.7798C15.279 13.4534 15.744 13.3699 16.088 13.5974C16.429 13.823 16.514 14.2723 16.279 14.5987ZM15.974 2.64H8.027C4.721 2.64 2.5 4.67808 2.5 7.70976V15.8112C2.5 18.8429 4.721 20.88 8.027 20.88H15.974C19.28 20.88 21.5 18.8429 21.5 15.8112V7.70976C21.5 4.67808 19.28 2.64 15.974 2.64Z",
|
|
847
|
+
fill: "currentColor"
|
|
848
|
+
}),
|
|
849
|
+
/* @__PURE__ */ u("rect", {
|
|
850
|
+
x: 4,
|
|
851
|
+
y: 6,
|
|
852
|
+
width: 16,
|
|
853
|
+
height: 12,
|
|
854
|
+
fill: "currentColor"
|
|
855
|
+
}),
|
|
856
|
+
/* @__PURE__ */ u("path", {
|
|
857
|
+
d: "M16.868 7.1333H7.80131C7.17627 7.1333 6.66797 7.6416 6.66797 8.26664V15.0667C6.66797 15.6917 7.17627 16.2 7.80131 16.2H16.868C17.493 16.2 18.0013 15.6917 18.0013 15.0667V8.26664C18.0013 7.6416 17.493 7.1333 16.868 7.1333ZM10.4731 9.39998C11.1254 9.39998 11.6065 9.88108 11.6065 10.5333C11.6065 11.1855 11.1254 11.6667 10.4731 11.6667C9.82091 11.6667 9.33981 11.1855 9.33981 10.5333C9.33981 9.88108 9.82035 9.39998 10.4731 9.39998ZM12.5783 13.9333H8.36797V13.6698C8.36797 12.8918 9.31771 12.0917 10.4731 12.0917C11.6286 12.0917 12.5783 12.8918 12.5783 13.6698V13.9333ZM16.3013 13.3667H14.0347V12.2333H16.3013V13.3667ZM16.3013 11.1H13.468V9.96664H16.3013V11.1Z",
|
|
858
|
+
fill: "white"
|
|
859
|
+
})
|
|
860
|
+
]
|
|
861
|
+
});
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region src/shared/permissions/assets/check-v2-icon.svg?react
|
|
864
|
+
var SvgCheckV2Icon = (props) => /* @__PURE__ */ u("svg", {
|
|
865
|
+
width: 24,
|
|
866
|
+
height: 24,
|
|
867
|
+
viewBox: "0 0 24 24",
|
|
868
|
+
fill: "none",
|
|
869
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
870
|
+
...props,
|
|
871
|
+
children: [
|
|
872
|
+
/* @__PURE__ */ u("path", {
|
|
873
|
+
fillRule: "evenodd",
|
|
874
|
+
clipRule: "evenodd",
|
|
875
|
+
d: "M18.229 10.3584L17.156 12.1152C17.055 12.2803 16.89 12.3994 16.698 12.4483C16.635 12.4637 16.573 12.4714 16.509 12.4714C16.376 12.4714 16.245 12.4378 16.128 12.3715L14.311 11.3443C13.955 11.1418 13.835 10.7002 14.045 10.3584C14.254 10.0157 14.712 9.90048 15.073 10.103L15.333 10.2499C14.735 9.04896 13.461 8.208 12 8.208C10.784 8.208 9.645 8.78112 8.953 9.74112C8.717 10.0675 8.251 10.151 7.91 9.92352C7.569 9.69696 7.484 9.24864 7.72 8.92128C8.692 7.57344 10.292 6.768 12 6.768C14.146 6.768 16.005 8.05536 16.792 9.86496L16.936 9.62976C17.143 9.28608 17.602 9.17088 17.962 9.37344C18.319 9.57408 18.439 10.0157 18.229 10.3584ZM16.279 14.5987C15.307 15.9475 13.708 16.753 11.999 16.753C9.85 16.753 7.991 15.4666 7.205 13.6589L7.063 13.8912C6.924 14.1197 6.673 14.2464 6.416 14.2464C6.287 14.2464 6.157 14.2147 6.037 14.1475C5.68 13.9469 5.56 13.5053 5.77 13.1626L6.843 11.4058C6.944 11.2406 7.109 11.1206 7.301 11.0726C7.495 11.0246 7.699 11.0525 7.871 11.1494L9.688 12.1766C10.044 12.3782 10.164 12.8198 9.954 13.1626C9.744 13.5043 9.286 13.6195 8.926 13.4179L8.66 13.2672C9.256 14.4701 10.533 15.313 11.999 15.313C13.214 15.313 14.354 14.7398 15.044 13.7798C15.279 13.4534 15.744 13.3699 16.088 13.5974C16.429 13.823 16.514 14.2723 16.279 14.5987ZM15.974 2.64H8.027C4.721 2.64 2.5 4.67808 2.5 7.70976V15.8112C2.5 18.8429 4.721 20.88 8.027 20.88H15.974C19.28 20.88 21.5 18.8429 21.5 15.8112V7.70976C21.5 4.67808 19.28 2.64 15.974 2.64Z",
|
|
876
|
+
fill: "currentColor"
|
|
877
|
+
}),
|
|
878
|
+
/* @__PURE__ */ u("rect", {
|
|
879
|
+
x: 4,
|
|
880
|
+
y: 6,
|
|
881
|
+
width: 16,
|
|
882
|
+
height: 12,
|
|
883
|
+
fill: "currentColor"
|
|
884
|
+
}),
|
|
885
|
+
/* @__PURE__ */ u("path", {
|
|
886
|
+
d: "M12 7C9.24 7 7 9.24 7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7ZM11 14.5L8.5 12L9.205 11.295L11 13.085L14.795 9.29L15.5 10L11 14.5Z",
|
|
887
|
+
fill: "white"
|
|
888
|
+
})
|
|
889
|
+
]
|
|
890
|
+
});
|
|
891
|
+
//#endregion
|
|
676
892
|
//#region src/shared/permissions/assets/samsung-internet-icon.svg?react
|
|
677
893
|
var SvgSamsungInternetIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
678
894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1747,6 +1963,33 @@ var DENIED_MOBILE_STEPS_PER_BROWSER_LOOKUP = {
|
|
|
1747
1963
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1748
1964
|
}
|
|
1749
1965
|
],
|
|
1966
|
+
miui_browser: [
|
|
1967
|
+
{
|
|
1968
|
+
uuid: "1",
|
|
1969
|
+
icon: SvgAndroidDotsIcon,
|
|
1970
|
+
instructionKey: "tap",
|
|
1971
|
+
boldKey: "idv2.permissions.denied.dots",
|
|
1972
|
+
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
uuid: "2",
|
|
1976
|
+
icon: SvgAndroidSettingsIcon,
|
|
1977
|
+
instructionKey: "tap",
|
|
1978
|
+
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
uuid: "3",
|
|
1982
|
+
icon: SvgAndroidToggleIcon,
|
|
1983
|
+
instructionKey: "tap",
|
|
1984
|
+
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
uuid: "4",
|
|
1988
|
+
icon: SvgChromeIcon,
|
|
1989
|
+
instructionKey: "returnPress",
|
|
1990
|
+
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1991
|
+
}
|
|
1992
|
+
],
|
|
1750
1993
|
samsung_browser: [
|
|
1751
1994
|
{
|
|
1752
1995
|
uuid: "1",
|
|
@@ -1853,6 +2096,20 @@ function DeniedMobileAdditionalText({ labelKey, boldLabelKey }) {
|
|
|
1853
2096
|
}
|
|
1854
2097
|
//#endregion
|
|
1855
2098
|
//#region src/shared/permissions/camera/deniedDesktop.tsx
|
|
2099
|
+
/**
|
|
2100
|
+
* Browsers that have their own desktop recovery copy upstream. Anything else
|
|
2101
|
+
* (Edge, Samsung Internet, unrecognised browsers) is Chromium in practice and
|
|
2102
|
+
* follows the same site-icon → Camera → Allow → refresh flow, so it borrows
|
|
2103
|
+
* Chrome's steps. Without the fallback, i18next start-cases the absent keys and
|
|
2104
|
+
* the screen reads "First Step", "Second Step", …
|
|
2105
|
+
*/
|
|
2106
|
+
var BROWSERS_WITH_DESKTOP_STEPS = new Set([
|
|
2107
|
+
"chrome",
|
|
2108
|
+
"firefox",
|
|
2109
|
+
"safari",
|
|
2110
|
+
"opera"
|
|
2111
|
+
]);
|
|
2112
|
+
var resolveStepsBrowser = (browser) => BROWSERS_WITH_DESKTOP_STEPS.has(browser) ? browser : "chrome";
|
|
1856
2113
|
var getStepKeys = (browser) => {
|
|
1857
2114
|
const baseKeys = [
|
|
1858
2115
|
`idv2.permissions.denied.${browser}.firstStep`,
|
|
@@ -1873,7 +2130,7 @@ var renderStepText = (t, stepKey) => {
|
|
|
1873
2130
|
};
|
|
1874
2131
|
var DeniedDesktop = () => {
|
|
1875
2132
|
const { t } = useTranslation();
|
|
1876
|
-
const stepKeys = getStepKeys(getBrowser());
|
|
2133
|
+
const stepKeys = getStepKeys(resolveStepsBrowser(getBrowser()));
|
|
1877
2134
|
return /* @__PURE__ */ u("div", {
|
|
1878
2135
|
class: "IncodeDeniedInstructionsContainer",
|
|
1879
2136
|
"data-testid": "denied-instructions-desktop",
|
|
@@ -1931,224 +2188,4 @@ var Denied = ({ onRefresh, "data-testid": dataTestId, "data-permission-status":
|
|
|
1931
2188
|
});
|
|
1932
2189
|
};
|
|
1933
2190
|
//#endregion
|
|
1934
|
-
|
|
1935
|
-
var learnMoreInstructions = [
|
|
1936
|
-
{
|
|
1937
|
-
icon: SvgCameraIcon,
|
|
1938
|
-
textKey: "idv2.permissions.learnMorePage.instructions.1"
|
|
1939
|
-
},
|
|
1940
|
-
{
|
|
1941
|
-
icon: SvgBankCardIcon,
|
|
1942
|
-
textKey: "idv2.permissions.learnMorePage.instructions.2"
|
|
1943
|
-
},
|
|
1944
|
-
{
|
|
1945
|
-
icon: SvgCheckIcon,
|
|
1946
|
-
textKey: "idv2.permissions.learnMorePage.instructions.4"
|
|
1947
|
-
}
|
|
1948
|
-
];
|
|
1949
|
-
var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
|
|
1950
|
-
const { t } = useTranslation();
|
|
1951
|
-
const titleRef = A(null);
|
|
1952
|
-
y(() => {
|
|
1953
|
-
titleRef.current?.focus();
|
|
1954
|
-
}, []);
|
|
1955
|
-
return /* @__PURE__ */ u(Page, {
|
|
1956
|
-
className: "IncodeLearnMorePage",
|
|
1957
|
-
hideHeader: true,
|
|
1958
|
-
hideFooterBranding: true,
|
|
1959
|
-
"data-testid": dataTestId,
|
|
1960
|
-
"data-permission-status": dataPermissionStatus,
|
|
1961
|
-
children: [/* @__PURE__ */ u("div", {
|
|
1962
|
-
class: "IncodeLearnMoreContainer",
|
|
1963
|
-
children: [/* @__PURE__ */ u("div", {
|
|
1964
|
-
class: "IncodeLearnMoreTitleContainer",
|
|
1965
|
-
children: [/* @__PURE__ */ u(WarningIcon, { size: 40 }), /* @__PURE__ */ u(Title, {
|
|
1966
|
-
ref: titleRef,
|
|
1967
|
-
tabIndex: -1,
|
|
1968
|
-
children: t("idv2.permissions.learnMorePage.title")
|
|
1969
|
-
})]
|
|
1970
|
-
}), /* @__PURE__ */ u("ul", {
|
|
1971
|
-
class: "IncodeLearnMoreInstructionsContainer",
|
|
1972
|
-
role: "list",
|
|
1973
|
-
children: learnMoreInstructions.map(({ icon: Icon, ...instruction }) => /* @__PURE__ */ u("li", {
|
|
1974
|
-
class: "IncodeLearnMoreInstruction",
|
|
1975
|
-
children: [/* @__PURE__ */ u("div", {
|
|
1976
|
-
class: "IncodeLearnMoreInstructionIcon",
|
|
1977
|
-
"aria-hidden": "true",
|
|
1978
|
-
children: /* @__PURE__ */ u(Icon, {
|
|
1979
|
-
height: 32,
|
|
1980
|
-
width: 32
|
|
1981
|
-
})
|
|
1982
|
-
}), /* @__PURE__ */ u(TypographyH4, { children: t(instruction.textKey) })]
|
|
1983
|
-
}, instruction.textKey))
|
|
1984
|
-
})]
|
|
1985
|
-
}), /* @__PURE__ */ u("div", {
|
|
1986
|
-
class: "IncodeLearnMoreActions",
|
|
1987
|
-
children: [/* @__PURE__ */ u(Button, {
|
|
1988
|
-
variant: "link",
|
|
1989
|
-
onClick: onQuitProcess,
|
|
1990
|
-
children: t("idv2.permissions.learnMorePage.quitProcess")
|
|
1991
|
-
}), /* @__PURE__ */ u(Button, {
|
|
1992
|
-
onClick: onAllowPermissions,
|
|
1993
|
-
children: t("idv2.permissions.learnMorePage.allowPermissions")
|
|
1994
|
-
})]
|
|
1995
|
-
})]
|
|
1996
|
-
});
|
|
1997
|
-
};
|
|
1998
|
-
//#endregion
|
|
1999
|
-
//#region src/shared/permissions/camera/permissionsBottomSheet.tsx
|
|
2000
|
-
function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDenyButton = true }) {
|
|
2001
|
-
const { t } = useTranslation();
|
|
2002
|
-
const titleRef = A(null);
|
|
2003
|
-
y(() => {
|
|
2004
|
-
titleRef.current?.focus();
|
|
2005
|
-
}, []);
|
|
2006
|
-
return /* @__PURE__ */ u(BottomSheet, {
|
|
2007
|
-
isOpen: true,
|
|
2008
|
-
labelledById: "permissions-dialog-title",
|
|
2009
|
-
children: /* @__PURE__ */ u("div", {
|
|
2010
|
-
className: "IncodePermissionsBottomSheet",
|
|
2011
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2012
|
-
class: "IncodePermissionsBottomSheetTitleContainer",
|
|
2013
|
-
children: [/* @__PURE__ */ u(TypographyH1, {
|
|
2014
|
-
id: "permissions-dialog-title",
|
|
2015
|
-
className: "IncodePermissionsBottomSheetTitle",
|
|
2016
|
-
ref: titleRef,
|
|
2017
|
-
tabIndex: -1,
|
|
2018
|
-
children: t("idv2.permissions.allowPermissionsV2")
|
|
2019
|
-
}), /* @__PURE__ */ u("p", {
|
|
2020
|
-
className: "IncodePermissionsBottomSheetSubtitle",
|
|
2021
|
-
children: t("idv2.permissions.subtitleV2")
|
|
2022
|
-
})]
|
|
2023
|
-
}), /* @__PURE__ */ u("div", {
|
|
2024
|
-
class: "IncodePermissionsBottomSheetActions",
|
|
2025
|
-
children: [showDenyButton && /* @__PURE__ */ u(Button, {
|
|
2026
|
-
variant: "secondary",
|
|
2027
|
-
onClick: onDenyPermissions,
|
|
2028
|
-
children: t("idv2.permissions.dontAllow")
|
|
2029
|
-
}), /* @__PURE__ */ u(Button, {
|
|
2030
|
-
onClick: onAllowPermissions,
|
|
2031
|
-
children: t("idv2.permissions.allowV2")
|
|
2032
|
-
})]
|
|
2033
|
-
})]
|
|
2034
|
-
})
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2037
|
-
//#endregion
|
|
2038
|
-
//#region src/shared/permissions/camera/permissions.tsx
|
|
2039
|
-
var Permissions = ({ manager, permissionStatus }) => {
|
|
2040
|
-
const isMobileWidth = useIsMobileDeviceWidth();
|
|
2041
|
-
const { t } = useTranslation();
|
|
2042
|
-
if (permissionStatus === "checking") return null;
|
|
2043
|
-
if (permissionStatus === "requesting") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
2044
|
-
className: "IncodePermissionsRequestingPage",
|
|
2045
|
-
presentational: true,
|
|
2046
|
-
titleKey: "loadingCircle.holdOn",
|
|
2047
|
-
subtitleKey: "loadingCircle.preparingCamera"
|
|
2048
|
-
});
|
|
2049
|
-
if (permissionStatus === "learnMore") return /* @__PURE__ */ u(LearnMore, {
|
|
2050
|
-
onAllowPermissions: () => manager.requestPermission(),
|
|
2051
|
-
onQuitProcess: () => manager.close(),
|
|
2052
|
-
"data-testid": "permissions",
|
|
2053
|
-
"data-permission-status": "learnMore"
|
|
2054
|
-
});
|
|
2055
|
-
if (permissionStatus === "denied") return /* @__PURE__ */ u(Denied, {
|
|
2056
|
-
onRefresh: () => window.location.reload(),
|
|
2057
|
-
"data-testid": "permissions",
|
|
2058
|
-
"data-permission-status": "denied"
|
|
2059
|
-
});
|
|
2060
|
-
const isMotionOnly = permissionStatus === "motionOnly";
|
|
2061
|
-
let ModalComponent = null;
|
|
2062
|
-
if (!isMobileWidth) ModalComponent = /* @__PURE__ */ u(Modal.Root, {
|
|
2063
|
-
open: true,
|
|
2064
|
-
children: /* @__PURE__ */ u(Modal.Content, { children: [
|
|
2065
|
-
/* @__PURE__ */ u(Modal.Close, { onClick: manager.close }),
|
|
2066
|
-
/* @__PURE__ */ u(Modal.TitleSection, { children: [/* @__PURE__ */ u(Modal.Title, {
|
|
2067
|
-
class: "IncodePermissionsModalTitle",
|
|
2068
|
-
children: t("idv2.permissions.allowPermissionsV2")
|
|
2069
|
-
}), /* @__PURE__ */ u(Modal.Subtitle, { children: t("idv2.permissions.subtitleV2") })] }),
|
|
2070
|
-
/* @__PURE__ */ u(Modal.Actions, { children: [!isMotionOnly && /* @__PURE__ */ u(Button, {
|
|
2071
|
-
variant: "secondary",
|
|
2072
|
-
onClick: manager.goToLearnMore,
|
|
2073
|
-
children: t("idv2.permissions.dontAllow")
|
|
2074
|
-
}), /* @__PURE__ */ u(Button, {
|
|
2075
|
-
variant: "primary",
|
|
2076
|
-
onClick: manager.requestPermission,
|
|
2077
|
-
children: t("idv2.permissions.allowV2")
|
|
2078
|
-
})] })
|
|
2079
|
-
] })
|
|
2080
|
-
});
|
|
2081
|
-
else ModalComponent = /* @__PURE__ */ u(PermissionsBottomSheet, {
|
|
2082
|
-
showDenyButton: !isMotionOnly,
|
|
2083
|
-
onAllowPermissions: manager.requestPermission,
|
|
2084
|
-
onDenyPermissions: manager.goToLearnMore
|
|
2085
|
-
});
|
|
2086
|
-
return /* @__PURE__ */ u(Page, {
|
|
2087
|
-
className: "IncodePermissionsPage",
|
|
2088
|
-
hideHeader: true,
|
|
2089
|
-
hideFooterBranding: true,
|
|
2090
|
-
"data-testid": "permissions",
|
|
2091
|
-
"data-permission-status": permissionStatus,
|
|
2092
|
-
children: ModalComponent
|
|
2093
|
-
});
|
|
2094
|
-
};
|
|
2095
|
-
//#endregion
|
|
2096
|
-
//#region src/modules/selfie/cameraButton.tsx
|
|
2097
|
-
var CameraButton = () => {
|
|
2098
|
-
return /* @__PURE__ */ u("div", {
|
|
2099
|
-
class: "IncodeCameraButton",
|
|
2100
|
-
children: /* @__PURE__ */ u("svg", {
|
|
2101
|
-
width: "64",
|
|
2102
|
-
height: "64",
|
|
2103
|
-
viewBox: "0 0 64 64",
|
|
2104
|
-
fill: "none",
|
|
2105
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2106
|
-
"aria-hidden": "true",
|
|
2107
|
-
children: [
|
|
2108
|
-
/* @__PURE__ */ u("circle", {
|
|
2109
|
-
cx: "32",
|
|
2110
|
-
cy: "32",
|
|
2111
|
-
r: "32",
|
|
2112
|
-
class: "IncodeCameraButtonBackground"
|
|
2113
|
-
}),
|
|
2114
|
-
/* @__PURE__ */ u("path", {
|
|
2115
|
-
d: "M55.5874 31.8191C55.5872 18.6938 44.9464 8.0537 31.821 8.0537C18.6958 8.05385 8.05581 18.6939 8.05566 31.8191C8.05566 44.9444 18.6958 55.5853 31.821 55.5854C44.9465 55.5854 55.5874 44.9445 55.5874 31.8191ZM57.5566 31.8191C57.5566 46.0321 46.034 57.5547 31.821 57.5547C17.6082 57.5545 6.08643 46.032 6.08643 31.8191C6.08657 17.6063 17.6083 6.08462 31.821 6.08447C46.0339 6.08447 57.5565 17.6062 57.5566 31.8191Z",
|
|
2116
|
-
class: "IncodeCameraButtonRing"
|
|
2117
|
-
}),
|
|
2118
|
-
/* @__PURE__ */ u("path", {
|
|
2119
|
-
d: "M35.5186 20.6768C36.887 20.677 37.995 21.777 37.9951 23.1338V24.1045H41.4766C43.0397 24.1052 44.3074 25.3626 44.3076 26.9131V38.5459C44.3076 40.0966 43.0398 41.3535 41.4766 41.3535H21.5381C19.975 41.3533 18.7081 40.0965 18.708 38.5459V26.9131C18.7083 25.3627 19.9751 24.1057 21.5381 24.1055H25.0205V23.1338C25.0206 21.7769 26.1285 20.6768 27.4971 20.6768H35.5186ZM31.5068 26.5273C28.0604 26.5273 25.2559 29.309 25.2559 32.7285C25.2559 36.148 28.0604 38.9297 31.5068 38.9297C34.954 38.9297 37.7588 36.148 37.7588 32.7285C37.7588 29.309 34.954 26.5274 31.5068 26.5273ZM31.5068 28.6348C33.7835 28.6348 35.6357 30.4728 35.6357 32.7305C35.6356 34.9887 33.7833 36.8252 31.5068 36.8252C29.2303 36.8252 27.3791 34.9887 27.3789 32.7305C27.3789 30.4721 29.2302 28.6348 31.5068 28.6348Z",
|
|
2120
|
-
class: "IncodeCameraButtonPath"
|
|
2121
|
-
})
|
|
2122
|
-
]
|
|
2123
|
-
})
|
|
2124
|
-
});
|
|
2125
|
-
};
|
|
2126
|
-
//#endregion
|
|
2127
|
-
//#region src/modules/selfie/manualCaptureButton.tsx
|
|
2128
|
-
var ManualCaptureButton = D(({ onClick, disabled }, ref) => {
|
|
2129
|
-
const { t } = useTranslation();
|
|
2130
|
-
return /* @__PURE__ */ u("div", {
|
|
2131
|
-
class: "IncodeSelfieManualCapture",
|
|
2132
|
-
"data-testid": "manual-capture-button",
|
|
2133
|
-
children: [
|
|
2134
|
-
/* @__PURE__ */ u("p", {
|
|
2135
|
-
id: "manual-capture-instructions",
|
|
2136
|
-
class: "IncodeSelfieManualCaptureText",
|
|
2137
|
-
children: t("selfiev2.manualCapture.instructions")
|
|
2138
|
-
}),
|
|
2139
|
-
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
2140
|
-
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(Button, {
|
|
2141
|
-
ref,
|
|
2142
|
-
id: "manual-capture-button",
|
|
2143
|
-
variant: "link",
|
|
2144
|
-
onClick,
|
|
2145
|
-
disabled,
|
|
2146
|
-
class: "IncodeSelfieManualCaptureButton",
|
|
2147
|
-
"aria-label": t("selfiev2.manualCapture.captureButton"),
|
|
2148
|
-
children: /* @__PURE__ */ u(CameraButton, {})
|
|
2149
|
-
}) })
|
|
2150
|
-
]
|
|
2151
|
-
});
|
|
2152
|
-
});
|
|
2153
|
-
//#endregion
|
|
2154
|
-
export { Permissions as n, ManualCaptureButton as t };
|
|
2191
|
+
export { SvgCheckIcon as a, useCoverMedia as c, SvgReloadIcon as i, SvgCheckV2Icon as n, SvgCameraIcon as o, SvgPersonCardIcon as r, SvgBankCardIcon as s, Denied as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DocumentCapture } from "../documentCapture-
|
|
1
|
+
import { t as DocumentCapture } from "../documentCapture-Cj8G5Wgb.js";
|
|
2
2
|
export { DocumentCapture };
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview .IncodeDocumentCaptureReviewImageContainer {
|
|
186
186
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
187
187
|
border-radius: var(--radius-medium, var(--border-radius-medium));
|
|
188
|
-
background-color: var(--color-neutral-50,
|
|
188
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
189
189
|
flex: 1;
|
|
190
190
|
display: flex;
|
|
191
191
|
}
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
border-style: var(--tw-border-style);
|
|
253
253
|
border-width: 1px;
|
|
254
254
|
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
255
|
-
background-color: var(--color-neutral-50,
|
|
255
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
256
256
|
width: 100%;
|
|
257
257
|
padding-inline: var(--spacing-24, var(--spacing-24, 24px));
|
|
258
258
|
padding-block: var(--spacing-32, var(--spacing-32, 32px));
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
.IncodeComponent .IncodeDocumentCapturePdfCard .IncodeImageDocumentCapturePdfPreviewContainer {
|
|
265
265
|
height: var(--document-capture-pdf-preview-height);
|
|
266
266
|
width: var(--spacing-120, var(--spacing-120, 120px));
|
|
267
|
-
border-radius: var(--radius-
|
|
267
|
+
border-radius: var(--radius-small, var(--border-radius-small));
|
|
268
268
|
border-style: var(--tw-border-style);
|
|
269
269
|
border-width: 2px;
|
|
270
270
|
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
271
|
-
background-color: var(--color-neutral-50,
|
|
271
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
272
272
|
overflow: hidden;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n@layer properties {\n @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {\n .IncodeComponent, .IncodeComponent *, .IncodeComponent :before, .IncodeComponent :after, .IncodeComponent ::backdrop {\n --tw-border-style: solid;\n }\n }\n}\n\n.IncodeComponent .IncodeDocumentCaptureFileInput {\n pointer-events: none;\n border-style: var(--tw-border-style);\n padding: var(--spacing-0, var(--spacing-none, 0px));\n opacity: 0;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border-width: 0;\n position: absolute;\n overflow: hidden;\n width: 0 !important;\n height: 0 !important;\n margin: 0 !important;\n}\n\n.IncodeComponent .IncodeDocumentCaptureFileInput::file-selector-button {\n display: none;\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodePageContent {\n flex-direction: column;\n flex: 1;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureTutorialContent {\n margin-block: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureTutorialContent .IncodeDocumentCaptureTutorialIllustration {\n width: var(--document-capture-tutorial-illustration-width);\n flex: 1;\n justify-content: center;\n align-items: center;\n margin-inline: auto;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureTutorialContent .IncodeDocumentCaptureTutorialIllustration .IncodeDocumentCaptureTutorialImage {\n width: 100%;\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureError {\n padding-inline: var(--spacing-16, var(--spacing-16, 16px));\n text-align: center;\n font-family: var(--typography-body-family);\n font-size: var(--typography-body-m-regular-size);\n font-weight: var(--typography-body-m-regular-weight);\n line-height: var(--typography-body-m-regular-line-height);\n letter-spacing: var(--typography-body-m-regular-letter-spacing);\n color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureActions {\n gap: var(--spacing-8, var(--spacing-8, 8px));\n padding-inline: var(--spacing-8, var(--spacing-8, 8px));\n padding-block: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureActions .IncodeDocumentCaptureSkipWrapper {\n padding-top: var(--spacing-8, var(--spacing-8, 8px));\n justify-content: center;\n display: flex;\n}\n\n.IncodeDocumentCaptureBottomSheetOptions {\n width: 100%;\n padding-top: var(--spacing-8, var(--spacing-8, 8px));\n padding-bottom: var(--spacing-20, var(--spacing-20, 20px));\n flex-direction: column;\n align-items: flex-start;\n display: flex;\n}\n\n.IncodeDocumentCaptureBottomSheetOptions .IncodeDocumentCaptureBottomSheetOption {\n align-items: center;\n gap: var(--spacing-16, var(--spacing-16, 16px));\n border-style: var(--tw-border-style);\n border-width: var(--border-width-none, var(--primitive-border-width-0));\n --tw-border-style: none;\n width: 100%;\n padding-inline: var(--spacing-12, var(--spacing-12, 12px));\n padding-block: var(--spacing-16, var(--spacing-16, 16px));\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h5-size);\n font-weight: var(--typography-headline-h5-weight);\n line-height: var(--typography-headline-h5-line-height);\n letter-spacing: var(--typography-headline-h5-letter-spacing);\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n background-color: #0000;\n border-style: none;\n display: flex;\n}\n\n.IncodeDocumentCaptureBottomSheetOptions .IncodeDocumentCaptureBottomSheetOption svg {\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n flex-shrink: 0;\n}\n\n.IncodeDocumentCaptureCameraPage {\n width: 100%;\n height: 100%;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewPage .IncodePageContent {\n padding: var(--spacing-0, var(--spacing-none, 0px));\n flex-direction: column;\n flex: 1;\n display: flex;\n overflow: hidden;\n}\n\n@media (min-width: 48rem) {\n .IncodeComponent .IncodeDocumentCaptureReviewPage .IncodePageInner {\n padding: var(--spacing-24, var(--spacing-24, 24px));\n }\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout {\n flex-direction: column;\n flex: 1;\n display: flex;\n overflow: hidden;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewHeader {\n height: var(--document-capture-review-header-height);\n flex-direction: column;\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewHeader .IncodeDocumentCaptureReviewTitle {\n text-align: center;\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h2-size);\n font-weight: var(--typography-headline-h2-weight);\n line-height: var(--typography-headline-h2-line-height);\n letter-spacing: var(--typography-headline-h2-letter-spacing);\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewHeader .IncodeDocumentCaptureReviewSubtitle {\n max-width: var(--incode-form-max-w);\n text-align: center;\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h5-size);\n font-weight: var(--typography-headline-h5-weight);\n line-height: var(--typography-headline-h5-line-height);\n letter-spacing: var(--typography-headline-h5-letter-spacing);\n color: var(--color-text-body-secondary, var(--text-body-500-secondary));\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n flex-direction: column;\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n overflow: hidden;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview.IncodeDocumentCaptureReviewPreviewPdf {\n padding-inline: var(--spacing-48, var(--spacing-48, 48px));\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview .IncodeDocumentCaptureReviewImageContainer {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n border-radius: var(--radius-medium, var(--border-radius-medium));\n background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));\n flex: 1;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview .IncodeDocumentCaptureReviewImage {\n border-radius: var(--radius-medium, var(--border-radius-medium));\n object-fit: cover;\n border-style: var(--tw-border-style);\n border-width: 4px;\n border-color: var(--color-border-neutral-100, var(--border-neutral-100));\n width: 100%;\n max-height: 100%;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview .IncodeDocumentCaptureReviewImage.IncodeDocumentCaptureSuccessBorder {\n border-color: var(--color-border-status-positive, var(--border-status-positive-static));\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewPreview .IncodeCaptureEncryptionLabel {\n justify-content: center;\n align-items: center;\n gap: var(--spacing-4, var(--spacing-4, 4px));\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewFooter {\n width: 100%;\n max-width: var(--incode-form-max-w);\n justify-content: center;\n align-self: center;\n align-items: center;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewFooter.IncodeDocumentCaptureReviewFooterEmpty {\n visibility: hidden;\n height: var(--document-capture-review-empty-footer-height);\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewFooter .IncodeDocumentCaptureActionRow {\n gap: var(--spacing-12, var(--spacing-12, 12px));\n width: 100%;\n padding: var(--spacing-4, var(--spacing-4, 4px));\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewLayout .IncodeDocumentCaptureReviewFooter .IncodeDocumentCaptureActionRow .IncodeButton {\n flex: 1;\n}\n\n.IncodeComponent .IncodeDocumentCaptureReviewCentered {\n flex-direction: column;\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n.IncodeComponent .IncodeDocumentCapturePdfCard {\n justify-content: center;\n align-items: center;\n gap: var(--spacing-24, var(--spacing-24, 24px));\n border-radius: var(--radius-large, var(--border-radius-large));\n border-style: var(--tw-border-style);\n border-width: 1px;\n border-color: var(--color-border-neutral-100, var(--border-neutral-100));\n background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));\n width: 100%;\n padding-inline: var(--spacing-24, var(--spacing-24, 24px));\n padding-block: var(--spacing-32, var(--spacing-32, 32px));\n flex-direction: column;\n display: flex;\n overflow: hidden;\n}\n\n.IncodeComponent .IncodeDocumentCapturePdfCard .IncodeImageDocumentCapturePdfPreviewContainer {\n height: var(--document-capture-pdf-preview-height);\n width: var(--spacing-120, var(--spacing-120, 120px));\n border-radius: var(--radius-small, var(--border-radius-small));\n border-style: var(--tw-border-style);\n border-width: 2px;\n border-color: var(--color-border-neutral-100, var(--border-neutral-100));\n background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));\n overflow: hidden;\n}\n\n.IncodeComponent .IncodeDocumentCapturePdfCard .IncodeImageDocumentCapturePdfPreviewContainer .IncodeImageDocumentCapturePdfPreview {\n width: 100%;\n height: 100%;\n}\n\n.IncodeComponent .IncodeDocumentCapturePdfCard .IncodeDocumentCapturePdfFileName {\n text-align: center;\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h5-size);\n font-weight: var(--typography-headline-h5-weight);\n line-height: var(--typography-headline-h5-line-height);\n letter-spacing: var(--typography-headline-h5-letter-spacing);\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n overflow-wrap: break-word;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeModalDialog {\n max-width: none;\n height: 100%;\n max-height: none;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeModalContent {\n border-radius: var(--radius-none, var(--border-radius-none));\n max-width: none;\n height: 100%;\n margin: auto;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesTitle {\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h2-size);\n font-weight: var(--typography-headline-h2-weight);\n line-height: var(--typography-headline-h2-line-height);\n letter-spacing: var(--typography-headline-h2-letter-spacing);\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesCards {\n width: 100%;\n max-width: var(--incode-form-max-w);\n gap: var(--spacing-32, var(--spacing-32, 32px));\n padding-block: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n display: flex;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesCard {\n align-items: flex-start;\n gap: var(--spacing-16, var(--spacing-16, 16px));\n display: flex;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesCardIcon {\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n flex-shrink: 0;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesCardText {\n gap: var(--spacing-4, var(--spacing-4, 4px));\n flex-direction: column;\n display: flex;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesCardTitle {\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h5-size);\n font-weight: var(--typography-headline-h5-weight);\n line-height: var(--typography-headline-h5-line-height);\n letter-spacing: var(--typography-headline-h5-letter-spacing);\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesCardBody {\n font-family: var(--typography-body-family);\n font-size: var(--typography-body-m-regular-size);\n font-weight: var(--typography-body-m-regular-weight);\n line-height: var(--typography-body-m-regular-line-height);\n letter-spacing: var(--typography-body-m-regular-letter-spacing);\n color: var(--color-text-body-secondary, var(--text-body-500-secondary));\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesButtons {\n margin-top: auto;\n}\n\n.IncodeDocumentCommonIssuesFullScreen .IncodeDocumentCommonIssuesContent .IncodeDocumentCommonIssuesTryAgain {\n width: 100%;\n}\n\n.IncodeDocumentCaptureLoadingPage .IncodePageContent {\n flex: 1;\n display: flex;\n}\n\n.IncodeDocumentCaptureLoadingPage .IncodeDocumentCaptureCentered {\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n";
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as cn, s as Asset, t as Spacer } from "./spacer-
|
|
5
|
-
import { t as Spinner } from "./spinner-
|
|
6
|
-
import { r as Button } from "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-9K8KUs61.js";
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
|
+
import { S as k, a as P, c as A, f as d, h as q, p as g, s as z, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { S as useManager, _ as useIsMobileDeviceWidth, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { d as cn, s as Asset, t as Spacer } from "./spacer-DZ-t7RMQ.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-hjbTcmA1.js";
|
|
6
|
+
import { a as LockIcon, r as SuccessIcon, s as FileIcon, v as CameraIcon, x as Button } from "./icons-DNXYxUPA.js";
|
|
7
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CVjuQOGZ.js";
|
|
8
|
+
import { t as Modal } from "./modal-H_YHBjxJ.js";
|
|
9
|
+
import { t as ErrorContent } from "./errorContent-aJuo21I4.js";
|
|
10
|
+
import { n as ProgressBar, t as CaptureFooter } from "./captureFooter-De74TCQi.js";
|
|
11
|
+
import { t as BottomSheet } from "./bottomSheet-Cixb81_b.js";
|
|
12
|
+
import { n as CameraFrame, t as CameraView } from "./cameraView-BNqv7JUh.js";
|
|
13
|
+
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-BarDrIC9.js";
|
|
14
|
+
import { t as Permissions } from "./permissions-B0ctl0V9.js";
|
|
15
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
17
16
|
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
|
|
18
17
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
19
18
|
function captureFrameFromVideo(video) {
|
|
@@ -332,7 +331,7 @@ var UploadingHeader = ({ progress, isFilePdf }) => {
|
|
|
332
331
|
};
|
|
333
332
|
//#endregion
|
|
334
333
|
//#region src/modules/document-capture/documentReview.tsx
|
|
335
|
-
var PdfViewer = z(() => import("./pdfViewer-
|
|
334
|
+
var PdfViewer = z(() => import("./pdfViewer-CCu7pBQv.js").then((m) => ({ default: m.PdfViewer })));
|
|
336
335
|
var DocumentReview = ({ state, manager }) => {
|
|
337
336
|
const { t } = useTranslation();
|
|
338
337
|
if (state.status === "failure") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dropdownComposed-DptsxuHA.js";
|