@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
4
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
1
|
+
import { v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { i as withStandaloneModuleBootstrap } from "../incodeComponent-DeVV0gEn.js";
|
|
3
|
+
import { n as ElectronicSignature } from "../electronic-signature-DRMdCzdF.js";
|
|
4
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Do8qpZk7.js";
|
|
5
5
|
//#region src/modules/qe-signature/qe-signature.tsx
|
|
6
6
|
var QeSignatureWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
7
7
|
return /* @__PURE__ */ u(ElectronicSignature, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./radioGroupComposed-BrawV4FU.js";
|
|
@@ -1,65 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./icons-ChHV5iHi.js";
|
|
6
|
-
import { t as InputComposed } from "./inputComposed-C2zTEXsp.js";
|
|
7
|
-
//#region src/shared/errorParams.ts
|
|
8
|
-
/**
|
|
9
|
-
* Resolves error params by translating the `fieldName` key
|
|
10
|
-
* when it holds an i18n key rather than a display string.
|
|
11
|
-
* Dot-separated strings are treated as i18n keys; plain strings
|
|
12
|
-
* (e.g. "CPF") are used as-is.
|
|
13
|
-
*/
|
|
14
|
-
function resolveErrorParams(t, params) {
|
|
15
|
-
if (params?.fieldName && typeof params.fieldName === "string") {
|
|
16
|
-
const name = String(params.fieldName);
|
|
17
|
-
const resolved = name.includes(".") ? t(name) : name;
|
|
18
|
-
return {
|
|
19
|
-
...params,
|
|
20
|
-
fieldName: resolved
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return params;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Translates an error key with resolved params.
|
|
27
|
-
* Returns `undefined` when there is no error.
|
|
28
|
-
*/
|
|
29
|
-
function translateError(t, error, params) {
|
|
30
|
-
if (!error) return void 0;
|
|
31
|
-
return t(error, resolveErrorParams(t, params));
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/shared/formField/formField.tsx
|
|
35
|
-
var FormField = ({ name, label, displayLabel: displayLabelProp, value = "", error, errorParams, type = "text", placeholder, placeholderParams, required, readonly, maxLength, disabled, autoComplete, labelHint, onChange, onBlur }) => {
|
|
36
|
-
const { t } = useTranslation();
|
|
37
|
-
return /* @__PURE__ */ u("div", {
|
|
38
|
-
className: "IncodeFormField",
|
|
39
|
-
children: /* @__PURE__ */ u(InputComposed, {
|
|
40
|
-
id: name,
|
|
41
|
-
label: displayLabelProp ?? t(label),
|
|
42
|
-
labelHint,
|
|
43
|
-
name,
|
|
44
|
-
type,
|
|
45
|
-
autoComplete,
|
|
46
|
-
value,
|
|
47
|
-
placeholder: placeholder ? t(placeholder, placeholderParams) : void 0,
|
|
48
|
-
readOnly: readonly,
|
|
49
|
-
disabled,
|
|
50
|
-
required,
|
|
51
|
-
maxLength,
|
|
52
|
-
error: translateError(t, error, errorParams),
|
|
53
|
-
onInput: (e) => {
|
|
54
|
-
const target = e.target;
|
|
55
|
-
onChange(name, target.value);
|
|
56
|
-
},
|
|
57
|
-
onBlur: onBlur ? () => onBlur(name) : void 0,
|
|
58
|
-
"data-testid": `form-field-${name}`
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
//#endregion
|
|
1
|
+
import { f as d, i as D, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { d as cn } from "./spacer-DZ-t7RMQ.js";
|
|
3
|
+
import { b as ErrorIcon } from "./icons-DNXYxUPA.js";
|
|
4
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
|
|
63
5
|
//#region src/shared/radioButtonComposed/radioButtonComposed.tsx
|
|
64
6
|
var textSizeClass = {
|
|
65
7
|
M: "IncodeRadioButtonTextM",
|
|
@@ -116,10 +58,11 @@ var RadioButtonComposed = D(({ id, label, labelHint, checked, defaultChecked, di
|
|
|
116
58
|
}), label && /* @__PURE__ */ u("span", {
|
|
117
59
|
class: cn(textSizeClass[textSize], { IncodeRadioButtonTextDisabled: isDisabled }),
|
|
118
60
|
"aria-hidden": ariaLabelledBy ? "true" : void 0,
|
|
119
|
-
children: [label,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
61
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
62
|
+
className: "IncodeRadioButtonLabelHint",
|
|
63
|
+
hint: labelHint,
|
|
64
|
+
required,
|
|
65
|
+
testId: `${id}-label-hint`
|
|
123
66
|
})]
|
|
124
67
|
})]
|
|
125
68
|
}),
|
|
@@ -170,10 +113,11 @@ var RadioGroupComposed = D(({ id, label, labelHint, options, value, defaultValue
|
|
|
170
113
|
/* @__PURE__ */ u("span", {
|
|
171
114
|
id: labelId,
|
|
172
115
|
class: "IncodeRadioGroupComposedLabel",
|
|
173
|
-
children: [label,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
116
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
117
|
+
className: "IncodeRadioGroupComposedLabelHint",
|
|
118
|
+
hint: labelHint,
|
|
119
|
+
required,
|
|
120
|
+
testId: `${id}-label-hint`
|
|
177
121
|
})]
|
|
178
122
|
}),
|
|
179
123
|
/* @__PURE__ */ u("div", {
|
|
@@ -213,4 +157,4 @@ var RadioGroupComposed = D(({ id, label, labelHint, options, value, defaultValue
|
|
|
213
157
|
});
|
|
214
158
|
});
|
|
215
159
|
//#endregion
|
|
216
|
-
export {
|
|
160
|
+
export { RadioButtonComposed as n, RadioGroupComposed as t };
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { t as __commonJSMin } from "../rolldown-runtime--E5BIlTp.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as Spacer } from "../spacer-
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "../phoneInputComposed-byyszNoS.js";
|
|
13
|
-
import { t as registerIncodeElement } from "../registerIncodeElement-DW2PE_DX.js";
|
|
14
|
-
import { t as Snackbar } from "../snackbar-eBOj46AK.js";
|
|
15
|
-
import { t as Tabs } from "../tabs-BGL1oRLb.js";
|
|
2
|
+
import { o as useTranslation } from "../uiConfig-BcjOx3PY.js";
|
|
3
|
+
import { S as k, _ as y, c as A, f as d, h as q, p as g, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
4
|
+
import { S as useManager, b as useModuleTerminalCallbacks, d as TransitionSpinner, i as withStandaloneModuleBootstrap, l as VerifiedByIncodeLogo, r as Snackbar, t as IncodeComponent, u as usePageUiConfig } from "../incodeComponent-DeVV0gEn.js";
|
|
5
|
+
import { t as Spacer } from "../spacer-DZ-t7RMQ.js";
|
|
6
|
+
import { r as SuccessIcon, x as Button } from "../icons-DNXYxUPA.js";
|
|
7
|
+
import { t as incode_logo_default } from "../incode-logo-BzJOZr3f.js";
|
|
8
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-CVjuQOGZ.js";
|
|
9
|
+
import { t as registerIncodeElement } from "../registerIncodeElement-CbZczi4S.js";
|
|
10
|
+
import { t as useLazyComponentLoader } from "../useModuleLoader-DpcbSKBH.js";
|
|
11
|
+
import { t as Tabs } from "../tabs-C8WsKO4V.js";
|
|
16
12
|
import { createRedirectToMobileManager } from "@incodetech/core/redirect-to-mobile";
|
|
17
13
|
//#region src/modules/redirect-to-mobile/redirectHeader.tsx
|
|
18
14
|
var RedirectHeader = ({ logoSrc }) => {
|
|
@@ -2487,7 +2483,7 @@ var import_browser = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2487
2483
|
return SvgRenderer.render(data, opts);
|
|
2488
2484
|
});
|
|
2489
2485
|
})))();
|
|
2490
|
-
var QrCode = ({ value, size = 150, bgColor = "#ffffff", fgColor = "#000000" }) => {
|
|
2486
|
+
var QrCode = ({ value, size = 150, bgColor = "#ffffff", fgColor = "#000000", onReady }) => {
|
|
2491
2487
|
const { t } = useTranslation();
|
|
2492
2488
|
const [svgString, setSvgString] = d("");
|
|
2493
2489
|
y(() => {
|
|
@@ -2507,6 +2503,9 @@ var QrCode = ({ value, size = 150, bgColor = "#ffffff", fgColor = "#000000" }) =
|
|
|
2507
2503
|
bgColor,
|
|
2508
2504
|
fgColor
|
|
2509
2505
|
]);
|
|
2506
|
+
y(() => {
|
|
2507
|
+
if (svgString) onReady?.();
|
|
2508
|
+
}, [svgString, onReady]);
|
|
2510
2509
|
if (!svgString) return null;
|
|
2511
2510
|
return /* @__PURE__ */ u("div", {
|
|
2512
2511
|
class: "IncodeRedirectQrCode",
|
|
@@ -2517,7 +2516,7 @@ var QrCode = ({ value, size = 150, bgColor = "#ffffff", fgColor = "#000000" }) =
|
|
|
2517
2516
|
};
|
|
2518
2517
|
//#endregion
|
|
2519
2518
|
//#region src/modules/redirect-to-mobile/qrTabContent.tsx
|
|
2520
|
-
var QrTabContent = ({ redirectUrl }) => {
|
|
2519
|
+
var QrTabContent = ({ redirectUrl, onQrReady }) => {
|
|
2521
2520
|
const { t } = useTranslation();
|
|
2522
2521
|
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("p", {
|
|
2523
2522
|
class: "IncodeRedirectTabDescription",
|
|
@@ -2526,177 +2525,31 @@ var QrTabContent = ({ redirectUrl }) => {
|
|
|
2526
2525
|
class: "IncodeRedirectQrWrapper",
|
|
2527
2526
|
children: /* @__PURE__ */ u(QrCode, {
|
|
2528
2527
|
value: redirectUrl,
|
|
2529
|
-
size: 186
|
|
2528
|
+
size: 186,
|
|
2529
|
+
onReady: onQrReady
|
|
2530
2530
|
})
|
|
2531
2531
|
})] });
|
|
2532
2532
|
};
|
|
2533
2533
|
//#endregion
|
|
2534
|
-
//#region src/modules/redirect-to-mobile/
|
|
2535
|
-
var
|
|
2534
|
+
//#region src/modules/redirect-to-mobile/qrScreen.tsx
|
|
2535
|
+
var loadSmsTabContent = () => import("../smsTabContent-C1C1g4GT.js").then((module) => module.SmsTabContent);
|
|
2536
|
+
var LazySmsTabContent = (props) => {
|
|
2536
2537
|
const { t } = useTranslation();
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
resendTimer,
|
|
2543
|
-
disabled: hasError,
|
|
2544
|
-
i18nKeys: { resendAvailable: "redirectToMobile.resendLinkAvailable" }
|
|
2545
|
-
}),
|
|
2546
|
-
class: "IncodeSrOnly",
|
|
2547
|
-
"aria-live": "polite",
|
|
2548
|
-
"aria-atomic": "true",
|
|
2549
|
-
"data-testid": "redirect-sms-live-region"
|
|
2550
|
-
}), hasError ? /* @__PURE__ */ u(k, { children: [
|
|
2551
|
-
/* @__PURE__ */ u(ErrorIcon, { size: 40 }),
|
|
2552
|
-
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
2553
|
-
/* @__PURE__ */ u(AutoFocusTitle, {
|
|
2554
|
-
className: "IncodeRedirectLinkSentTitle",
|
|
2555
|
-
"data-testid": "redirect-sms-status-heading",
|
|
2556
|
-
children: t("redirect.tooManyAttempts")
|
|
2557
|
-
}),
|
|
2558
|
-
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
2559
|
-
/* @__PURE__ */ u("p", {
|
|
2560
|
-
class: "IncodeRedirectLinkSentPhone",
|
|
2561
|
-
role: "alert",
|
|
2562
|
-
children: t("redirect.smsErrorSubtitle")
|
|
2563
|
-
}),
|
|
2564
|
-
/* @__PURE__ */ u(Spacer, { size: 24 }),
|
|
2565
|
-
/* @__PURE__ */ u("div", {
|
|
2566
|
-
class: "IncodeRedirectLinkSentActions",
|
|
2567
|
-
children: /* @__PURE__ */ u(Button, {
|
|
2568
|
-
variant: "link",
|
|
2569
|
-
onClick: onChangePhone,
|
|
2570
|
-
"data-testid": "sms-change-phone",
|
|
2571
|
-
children: t("redirect.changePhoneNumber")
|
|
2572
|
-
})
|
|
2573
|
-
})
|
|
2574
|
-
] }) : /* @__PURE__ */ u(k, { children: [
|
|
2575
|
-
/* @__PURE__ */ u(SuccessIcon, { size: 40 }),
|
|
2576
|
-
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
2577
|
-
/* @__PURE__ */ u(AutoFocusTitle, {
|
|
2578
|
-
className: "IncodeRedirectLinkSentTitle",
|
|
2579
|
-
"data-testid": "redirect-sms-status-heading",
|
|
2580
|
-
children: t("redirect.linkSent")
|
|
2581
|
-
}),
|
|
2582
|
-
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
2583
|
-
/* @__PURE__ */ u("p", {
|
|
2584
|
-
class: "IncodeRedirectLinkSentPhone",
|
|
2585
|
-
children: t("redirect.linkSentTo", { phone: formattedPhone })
|
|
2586
|
-
}),
|
|
2587
|
-
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
2588
|
-
/* @__PURE__ */ u("div", {
|
|
2589
|
-
class: "IncodeRedirectLinkSentActions",
|
|
2590
|
-
children: !canResendSms && resendTimer > 0 ? /* @__PURE__ */ u(k, { children: [
|
|
2591
|
-
/* @__PURE__ */ u(Spacer, { size: 8 }),
|
|
2592
|
-
/* @__PURE__ */ u(Button, {
|
|
2593
|
-
variant: "link",
|
|
2594
|
-
size: "inline",
|
|
2595
|
-
disabled: true,
|
|
2596
|
-
"data-testid": "sms-timer",
|
|
2597
|
-
children: t("redirectToMobile.resendCountdown", { time: formatResendTimer(resendTimer) })
|
|
2598
|
-
}),
|
|
2599
|
-
/* @__PURE__ */ u(Spacer, { size: 8 })
|
|
2600
|
-
] }) : /* @__PURE__ */ u(Trans, {
|
|
2601
|
-
i18nKey: "redirect.didntReceiveLinkActions",
|
|
2602
|
-
components: {
|
|
2603
|
-
resend: /* @__PURE__ */ u(Button, {
|
|
2604
|
-
variant: "link",
|
|
2605
|
-
size: "inline",
|
|
2606
|
-
onClick: onResend,
|
|
2607
|
-
"data-testid": "sms-resend"
|
|
2608
|
-
}),
|
|
2609
|
-
changePhone: /* @__PURE__ */ u(Button, {
|
|
2610
|
-
variant: "link",
|
|
2611
|
-
size: "inline",
|
|
2612
|
-
onClick: onChangePhone,
|
|
2613
|
-
"data-testid": "sms-change-phone"
|
|
2614
|
-
})
|
|
2615
|
-
}
|
|
2616
|
-
})
|
|
2617
|
-
})
|
|
2618
|
-
] })]
|
|
2538
|
+
const state = useLazyComponentLoader({ loader: loadSmsTabContent });
|
|
2539
|
+
if (state.status === "loaded") return /* @__PURE__ */ u(state.Component, { ...props });
|
|
2540
|
+
if (state.status === "error") return /* @__PURE__ */ u("div", {
|
|
2541
|
+
role: "alert",
|
|
2542
|
+
children: /* @__PURE__ */ u(AutoFocusTitle, { children: t("common.somethingWentWrong") })
|
|
2619
2543
|
});
|
|
2544
|
+
return /* @__PURE__ */ u(TransitionSpinner, { spinnerConfig: { subtitle: "" } });
|
|
2620
2545
|
};
|
|
2621
|
-
//#endregion
|
|
2622
|
-
//#region src/modules/redirect-to-mobile/smsForm.tsx
|
|
2623
|
-
var SmsForm = ({ countryCode, error, isSending, isPhoneValid, onPhoneChange, onSendSms }) => {
|
|
2624
|
-
const { t } = useTranslation();
|
|
2625
|
-
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(PhoneInputComposed, {
|
|
2626
|
-
id: "sms-phone",
|
|
2627
|
-
countryCode,
|
|
2628
|
-
error,
|
|
2629
|
-
disabled: isSending,
|
|
2630
|
-
autoFocus: true,
|
|
2631
|
-
autocomplete: "tel",
|
|
2632
|
-
"data-testid": "redirect-sms-phone",
|
|
2633
|
-
onChange: onPhoneChange
|
|
2634
|
-
}), /* @__PURE__ */ u(Button, {
|
|
2635
|
-
onClick: onSendSms,
|
|
2636
|
-
disabled: !isPhoneValid || isSending,
|
|
2637
|
-
isLoading: isSending,
|
|
2638
|
-
class: "IncodeRedirectSmsSendButton",
|
|
2639
|
-
"data-testid": "redirect-sms-send",
|
|
2640
|
-
children: t("redirect.sendLinkSms")
|
|
2641
|
-
})] });
|
|
2642
|
-
};
|
|
2643
|
-
//#endregion
|
|
2644
|
-
//#region src/modules/redirect-to-mobile/smsTabContent.tsx
|
|
2645
|
-
var formatPhoneNumber = (phone, prefix) => {
|
|
2646
|
-
if (!phone.startsWith(prefix)) return phone;
|
|
2647
|
-
return `${prefix} ${phone.slice(prefix.length).replace(/(\d{3})(?=\d)/g, "$1 ")}`;
|
|
2648
|
-
};
|
|
2649
|
-
var SmsTabContent = ({ phonePrefix, smsSent, smsFailed, smsResendTimer, canResendSms, error, manager, onResend }) => {
|
|
2650
|
-
const { t } = useTranslation();
|
|
2651
|
-
const [phoneNumber, setPhoneNumber] = d(phonePrefix);
|
|
2652
|
-
const [isPhoneValid, setIsPhoneValid] = d(false);
|
|
2653
|
-
const [isSending, setIsSending] = d(false);
|
|
2654
|
-
const countryCode = getCountryByCallingCode(phonePrefix)?.code ?? "";
|
|
2655
|
-
const formattedPhone = formatPhoneNumber(phoneNumber, phonePrefix);
|
|
2656
|
-
const handlePhoneChange = q((phone, valid) => {
|
|
2657
|
-
setPhoneNumber(phone);
|
|
2658
|
-
setIsPhoneValid(valid);
|
|
2659
|
-
}, []);
|
|
2660
|
-
const handleSendSms = q(() => {
|
|
2661
|
-
setIsSending(true);
|
|
2662
|
-
manager.sendSms(phoneNumber);
|
|
2663
|
-
setIsSending(false);
|
|
2664
|
-
}, [manager, phoneNumber]);
|
|
2665
|
-
const handleResend = q(() => {
|
|
2666
|
-
handleSendSms();
|
|
2667
|
-
onResend();
|
|
2668
|
-
}, [handleSendSms, onResend]);
|
|
2669
|
-
const handleChangePhone = q(() => {
|
|
2670
|
-
setPhoneNumber(phonePrefix);
|
|
2671
|
-
setIsPhoneValid(false);
|
|
2672
|
-
manager.resetSms();
|
|
2673
|
-
}, [manager, phonePrefix]);
|
|
2674
|
-
return /* @__PURE__ */ u(k, { children: smsSent || smsFailed ? /* @__PURE__ */ u(SmsSentView, {
|
|
2675
|
-
formattedPhone,
|
|
2676
|
-
hasError: smsFailed,
|
|
2677
|
-
resendTimer: smsResendTimer,
|
|
2678
|
-
canResendSms,
|
|
2679
|
-
onResend: handleResend,
|
|
2680
|
-
onChangePhone: handleChangePhone
|
|
2681
|
-
}) : /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("p", {
|
|
2682
|
-
class: "IncodeRedirectTabDescription",
|
|
2683
|
-
children: t("v2.redirectToMobile.sms.description")
|
|
2684
|
-
}), /* @__PURE__ */ u(SmsForm, {
|
|
2685
|
-
countryCode,
|
|
2686
|
-
phonePrefix,
|
|
2687
|
-
error,
|
|
2688
|
-
isSending,
|
|
2689
|
-
isPhoneValid,
|
|
2690
|
-
onPhoneChange: handlePhoneChange,
|
|
2691
|
-
onSendSms: handleSendSms
|
|
2692
|
-
})] }) });
|
|
2693
|
-
};
|
|
2694
|
-
//#endregion
|
|
2695
|
-
//#region src/modules/redirect-to-mobile/qrScreen.tsx
|
|
2696
2546
|
var QrScreen = ({ redirectUrl, phonePrefix, smsSent, smsFailed, smsResendTimer, canResendSms, disableSmsOption, addContinueToDesktop, error, manager, logoSrc }) => {
|
|
2697
2547
|
const { t } = useTranslation();
|
|
2698
2548
|
const [showResendToast, setShowResendToast] = d(false);
|
|
2699
2549
|
const resendToastTimerRef = A();
|
|
2550
|
+
const [qrReady, setQrReady] = d(false);
|
|
2551
|
+
const handleQrReady = q(() => setQrReady(true), []);
|
|
2552
|
+
useLazyComponentLoader({ loader: qrReady && !disableSmsOption ? loadSmsTabContent : void 0 });
|
|
2700
2553
|
const handleResend = q(() => {
|
|
2701
2554
|
clearTimeout(resendToastTimerRef.current);
|
|
2702
2555
|
setShowResendToast(true);
|
|
@@ -2735,10 +2588,13 @@ var QrScreen = ({ redirectUrl, phonePrefix, smsSent, smsFailed, smsResendTimer,
|
|
|
2735
2588
|
class: "IncodeRedirectOptions",
|
|
2736
2589
|
children: [/* @__PURE__ */ u(Tabs.Content, {
|
|
2737
2590
|
value: "qr",
|
|
2738
|
-
children: /* @__PURE__ */ u(QrTabContent, {
|
|
2591
|
+
children: /* @__PURE__ */ u(QrTabContent, {
|
|
2592
|
+
redirectUrl,
|
|
2593
|
+
onQrReady: handleQrReady
|
|
2594
|
+
})
|
|
2739
2595
|
}), !disableSmsOption && /* @__PURE__ */ u(Tabs.Content, {
|
|
2740
2596
|
value: "sms",
|
|
2741
|
-
children: /* @__PURE__ */ u(
|
|
2597
|
+
children: /* @__PURE__ */ u(LazySmsTabContent, {
|
|
2742
2598
|
phonePrefix,
|
|
2743
2599
|
smsSent,
|
|
2744
2600
|
smsFailed,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
.IncodeRedirectContainer .IncodeRedirectToast {
|
|
67
67
|
top: var(--spacing-16, var(--spacing-16, 16px));
|
|
68
68
|
z-index: 50;
|
|
69
|
-
animation: 3s ease-in-out forwards
|
|
69
|
+
animation: 3s ease-in-out forwards incodeToastFadeInOut;
|
|
70
70
|
position: absolute;
|
|
71
71
|
left: 50%;
|
|
72
72
|
}
|
|
@@ -77,28 +77,6 @@
|
|
|
77
77
|
display: inline-flex;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
@keyframes fadeInOut {
|
|
81
|
-
0% {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
transform: translate(-50%, -20px);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
15% {
|
|
87
|
-
opacity: 1;
|
|
88
|
-
transform: translate(-50%);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
85% {
|
|
92
|
-
opacity: 1;
|
|
93
|
-
transform: translate(-50%);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
100% {
|
|
97
|
-
opacity: 0;
|
|
98
|
-
transform: translate(-50%, -20px);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
80
|
.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader {
|
|
103
81
|
flex-direction: column;
|
|
104
82
|
align-items: center;
|
|
@@ -107,7 +85,6 @@
|
|
|
107
85
|
}
|
|
108
86
|
|
|
109
87
|
.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader .IncodeRedirectLogoWrapper {
|
|
110
|
-
--min-height-logo-wrapper: 44px;
|
|
111
88
|
width: 100%;
|
|
112
89
|
min-height: var(--min-height-logo-wrapper);
|
|
113
90
|
justify-content: center;
|
|
@@ -198,7 +175,7 @@
|
|
|
198
175
|
}
|
|
199
176
|
|
|
200
177
|
.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTabs .IncodeRedirectTab:focus-visible {
|
|
201
|
-
border-radius: var(--radius-
|
|
178
|
+
border-radius: var(--radius-x-small, var(--border-radius-x-small));
|
|
202
179
|
outline-style: var(--tw-outline-style);
|
|
203
180
|
outline-offset: 2px;
|
|
204
181
|
outline-width: 2px;
|
|
@@ -309,7 +286,6 @@
|
|
|
309
286
|
}
|
|
310
287
|
|
|
311
288
|
.IncodeRedirectFinishedContainer .IncodeRedirectFinishedTitle {
|
|
312
|
-
--width-finished-title: 500px;
|
|
313
289
|
margin-block: var(--spacing-20, var(--spacing-20, 20px));
|
|
314
290
|
text-align: center;
|
|
315
291
|
font-size: var(--text-3xl, 1.875rem);
|
|
@@ -321,7 +297,6 @@
|
|
|
321
297
|
}
|
|
322
298
|
|
|
323
299
|
.IncodeRedirectFinishedContainer .IncodeRedirectFinishedSubtitle {
|
|
324
|
-
--width-finished-subtitle: 400px;
|
|
325
300
|
text-align: center;
|
|
326
301
|
font-size: var(--text-2xl, 1.5rem);
|
|
327
302
|
line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));
|
|
@@ -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 --tw-outline-style: solid;\n --tw-font-weight: initial;\n }\n }\n}\n\n.IncodeRedirectRoot {\n width: 100%;\n height: 100%;\n}\n\n.IncodeRedirectRoot .IncodeRedirectLogo {\n max-width: 100%;\n max-height: 100%;\n}\n\n.IncodeRedirectRoot .IncodeRedirectContainer {\n background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));\n justify-content: center;\n align-items: safe center;\n width: 100%;\n height: 100%;\n display: flex;\n position: relative;\n overflow-y: auto;\n}\n\n.IncodeRedirectRoot .IncodeRedirectContainer .IncodeRedirectCard {\n border-radius: var(--radius-medium, var(--border-radius-medium));\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-0, var(--surface-neutral-0));\n width: 100%;\n padding-inline: var(--spacing-24, var(--spacing-24, 24px));\n padding-block: var(--spacing-32, var(--spacing-32, 32px));\n max-width: var(--redirect-card-max-width);\n flex-direction: column;\n align-items: center;\n display: flex;\n overflow-x: clip;\n}\n\n.IncodeRedirectRoot .IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTopGroup {\n align-items: center;\n gap: var(--spacing-32, var(--spacing-32, 32px));\n flex-direction: column;\n width: 100%;\n display: flex;\n}\n\n.IncodeRedirectRoot .IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions {\n margin-bottom: var(--spacing-32, var(--spacing-32, 32px));\n width: 100%;\n max-width: var(--redirect-options-max-width);\n flex-direction: column;\n align-items: center;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectToast {\n top: var(--spacing-16, var(--spacing-16, 16px));\n z-index: 50;\n animation: 3s ease-in-out forwards incodeToastFadeInOut;\n position: absolute;\n left: 50%;\n}\n\n.IncodeRedirectContainer .IncodeRedirectToastContent {\n align-items: center;\n gap: var(--spacing-12, var(--spacing-12, 12px));\n display: inline-flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader {\n flex-direction: column;\n align-items: center;\n width: 100%;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader .IncodeRedirectLogoWrapper {\n width: 100%;\n min-height: var(--min-height-logo-wrapper);\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader .IncodeRedirectLogo {\n max-height: var(--logo-height, 44px);\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader .IncodeRedirectTitle {\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 color: var(--color-text-body-primary, var(--text-body-800-primary));\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectHeader .IncodeRedirectSubtitle {\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.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectBottomNav {\n width: 100%;\n max-width: var(--redirect-form-column-max-width);\n flex-direction: column;\n flex: 1;\n align-items: center;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectBottomNav .IncodeRedirectFooterContent {\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectBottomNav .IncodeRedirectFooterContentText {\n margin-block: var(--spacing-12, var(--spacing-12, 12px));\n font-family: var(--Button-family, \"DM Sans\");\n letter-spacing: 0;\n font-size: 18px;\n font-weight: 500;\n line-height: 100%;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectBottomNav .IncodeRedirectFooterLogoWrapper {\n padding-block: var(--spacing-8, var(--spacing-8, 8px));\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTabs {\n justify-content: center;\n align-items: flex-end;\n gap: var(--spacing-12, var(--spacing-12, 12px));\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n border-color: var(--color-border-neutral-100, var(--border-neutral-100));\n width: 100%;\n max-width: var(--redirect-tabs-max-width);\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTabs .IncodeRedirectTab {\n cursor: pointer;\n border-bottom-style: var(--tw-border-style);\n padding-inline: var(--spacing-24, var(--spacing-24, 24px));\n padding-block: var(--spacing-12, var(--spacing-12, 12px));\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 background-color: #0000;\n border-color: #0000;\n border-bottom-width: 2px;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTabs .IncodeRedirectTab:focus-visible {\n border-radius: var(--radius-x-small, var(--border-radius-x-small));\n outline-style: var(--tw-outline-style);\n outline-offset: 2px;\n outline-width: 2px;\n outline-color: var(--color-border-status-focus, var(--border-status-focus));\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTabs .IncodeRedirectTab.IncodeRedirectTabActive {\n border-color: var(--color-border-brand-500, var(--border-brand-500));\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions > [role=\"tabpanel\"] {\n align-items: center;\n gap: var(--spacing-32, var(--spacing-32, 32px));\n flex-direction: column;\n width: 100%;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectTabDescription {\n margin-top: var(--spacing-32, var(--spacing-32, 32px));\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 max-width: var(--redirect-tab-description-max-width);\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectQrWrapper {\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-0, var(--surface-neutral-0));\n padding: var(--spacing-12, var(--spacing-12, 12px));\n border-radius: var(--redirect-qr-wrapper-border-radius);\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodePhoneInputComposed {\n --phone-input-country-code-width: var(--redirect-phone-input-country-code-width);\n max-width: var(--redirect-form-column-max-width);\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectSmsSendButton {\n width: 100%;\n max-width: var(--redirect-form-column-max-width);\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectLinkSent {\n margin-top: var(--spacing-32, var(--spacing-32, 32px));\n flex-direction: column;\n align-items: center;\n display: flex;\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectLinkSent .IncodeRedirectLinkSentTitle {\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 color: var(--color-text-body-primary, var(--text-body-800-primary));\n}\n\n.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectLinkSent .IncodeRedirectLinkSentPhone {\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.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectOptions .IncodeRedirectLinkSent .IncodeRedirectLinkSentActions {\n margin-block: var(--spacing-8, var(--spacing-8, 8px));\n justify-content: center;\n align-items: center;\n gap: var(--spacing-4, var(--spacing-4, 4px));\n font-family: var(--Button-family, \"DM Sans\");\n letter-spacing: 0;\n width: var(--redirect-form-column-max-width);\n flex-wrap: wrap;\n font-size: 18px;\n font-weight: 500;\n line-height: 100%;\n display: flex;\n}\n\n.IncodeRedirectFinishedContainer {\n flex-direction: column;\n justify-content: safe center;\n align-items: center;\n width: 100%;\n height: 100%;\n display: flex;\n overflow-y: auto;\n}\n\n.IncodeRedirectFinishedContainer .IncodeRedirectLogo {\n max-height: var(--logo-height, 44px);\n}\n\n.IncodeRedirectFinishedContainer .IncodeRedirectFinishedTitle {\n margin-block: var(--spacing-20, var(--spacing-20, 20px));\n text-align: center;\n font-size: var(--text-3xl, 1.875rem);\n line-height: var(--tw-leading, var(--text-3xl--line-height, calc(2.25 / 1.875)));\n --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));\n font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n width: var(--width-finished-title);\n}\n\n.IncodeRedirectFinishedContainer .IncodeRedirectFinishedSubtitle {\n text-align: center;\n font-size: var(--text-2xl, 1.5rem);\n line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));\n --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));\n font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));\n color: var(--color-text-body-primary, var(--text-body-800-primary));\n width: var(--width-finished-subtitle);\n}\n\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n\n@property --tw-outline-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false\n}\n";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
|
+
import { _ as y, c as A, h as q } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
//#region src/shared/resendTimer.ts
|
|
4
|
+
var formatResendTimer = (seconds) => {
|
|
5
|
+
return `${Math.floor(seconds / 60)}:${(seconds % 60).toString().padStart(2, "0")}`;
|
|
6
|
+
};
|
|
7
|
+
var DEFAULT_ANNOUNCEMENT_KEYS = {
|
|
8
|
+
resendAvailable: "otp.resendCodeAvailable",
|
|
9
|
+
timerStarted: "otp.timerStarted",
|
|
10
|
+
timerTenSeconds: "otp.timerTenSeconds",
|
|
11
|
+
timerFiveSeconds: "otp.timerFiveSeconds"
|
|
12
|
+
};
|
|
13
|
+
function useResendTimerAnnouncements({ canResend, resendTimer, disabled = false, i18nKeys }) {
|
|
14
|
+
const { t } = useTranslation();
|
|
15
|
+
const announcementKeys = {
|
|
16
|
+
...DEFAULT_ANNOUNCEMENT_KEYS,
|
|
17
|
+
...i18nKeys
|
|
18
|
+
};
|
|
19
|
+
const liveRef = A(null);
|
|
20
|
+
const prevCanResendRef = A(canResend);
|
|
21
|
+
const hasAnnouncedStartRef = A(false);
|
|
22
|
+
const announceTimerRef = A();
|
|
23
|
+
const announce = q((message) => {
|
|
24
|
+
const node = liveRef.current;
|
|
25
|
+
if (!node) return;
|
|
26
|
+
clearTimeout(announceTimerRef.current);
|
|
27
|
+
node.textContent = "";
|
|
28
|
+
announceTimerRef.current = setTimeout(() => {
|
|
29
|
+
node.textContent = message;
|
|
30
|
+
}, 50);
|
|
31
|
+
}, []);
|
|
32
|
+
y(() => {
|
|
33
|
+
return () => clearTimeout(announceTimerRef.current);
|
|
34
|
+
}, []);
|
|
35
|
+
y(() => {
|
|
36
|
+
if (disabled) {
|
|
37
|
+
prevCanResendRef.current = canResend;
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const wasUnavailable = !prevCanResendRef.current;
|
|
41
|
+
prevCanResendRef.current = canResend;
|
|
42
|
+
if (wasUnavailable && canResend) announce(t(announcementKeys.resendAvailable));
|
|
43
|
+
}, [
|
|
44
|
+
canResend,
|
|
45
|
+
disabled,
|
|
46
|
+
announcementKeys.resendAvailable,
|
|
47
|
+
announce,
|
|
48
|
+
t
|
|
49
|
+
]);
|
|
50
|
+
y(() => {
|
|
51
|
+
if (disabled) {
|
|
52
|
+
hasAnnouncedStartRef.current = false;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (canResend || resendTimer <= 0) {
|
|
56
|
+
hasAnnouncedStartRef.current = false;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (!hasAnnouncedStartRef.current) {
|
|
60
|
+
hasAnnouncedStartRef.current = true;
|
|
61
|
+
announce(t(announcementKeys.timerStarted, { time: String(resendTimer) }));
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (resendTimer === 10) announce(t(announcementKeys.timerTenSeconds));
|
|
65
|
+
else if (resendTimer === 5) announce(t(announcementKeys.timerFiveSeconds));
|
|
66
|
+
}, [
|
|
67
|
+
resendTimer,
|
|
68
|
+
canResend,
|
|
69
|
+
disabled,
|
|
70
|
+
announcementKeys.timerStarted,
|
|
71
|
+
announcementKeys.timerTenSeconds,
|
|
72
|
+
announcementKeys.timerFiveSeconds,
|
|
73
|
+
announce,
|
|
74
|
+
t
|
|
75
|
+
]);
|
|
76
|
+
return liveRef;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { useResendTimerAnnouncements as n, formatResendTimer as t };
|