@incodetech/web 2.3.0-rc.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/dist/ae-signature/ae-signature.es.js +3 -3
- package/dist/{af-ZA-DTqKc5t4.js → af-ZA-CiGNWICE.js} +2 -0
- package/dist/{am-EGNy2cbo.js → am-C5YehVGG.js} +2 -0
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/{ar-AE-Cb55U6s-.js → ar-AE-BMJuIKTB.js} +4 -2
- package/dist/{ar-MUpu33jy.js → ar-CUw7KMHb.js} +3 -1
- package/dist/{ar-EG-C8ucZII6.js → ar-EG-ojf2Ene5.js} +3 -1
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{autoFocusTitle-CIbcUW_x.js → autoFocusTitle-CVjuQOGZ.js} +1 -1
- package/dist/{az-DlXjPSya.js → az-DsqjgKhY.js} +2 -0
- package/dist/{baseTutorial-DkL0vjUa.js → baseTutorial-BM2Ho3QZ.js} +3 -3
- package/dist/{bn-BuTjJr44.js → bn-Bbn6O_i2.js} +2 -0
- package/dist/{bottomSheet-DtUFrIAG.js → bottomSheet-Cixb81_b.js} +1 -1
- package/dist/{bs-DUzGtLhU.js → bs-CYW5eATI.js} +2 -0
- package/dist/{ca-B6SY43GQ.js → ca-D5u2Z71o.js} +2 -0
- package/dist/cameraOverlay-MpL3OBQu.js +2 -0
- package/dist/{cameraOverlayHeader-CsokPtuL.js → cameraOverlayHeader-BarDrIC9.js} +2 -2
- package/dist/{cameraView-DrTBPNWX.js → cameraView-BNqv7JUh.js} +2 -2
- package/dist/{captureFooter-DWCaAdIU.js → captureFooter-De74TCQi.js} +3 -3
- package/dist/{ceb-DmXy5txv.js → ceb-tXsl4nyX.js} +2 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +8 -8
- package/dist/{checkbox-D0wfscwg.js → checkbox-BR-RTI4R.js} +2 -2
- package/dist/{connectionError-B61O7L3N.js → connectionError-Haw33Di8.js} +3 -3
- package/dist/consent/consent.es.js +6 -6
- package/dist/{countrySelector-C60Cdc5P.js → countrySelector-Zbe2eGzy.js} +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/{cs-CZ-Gn3ZmW27.js → cs-CZ-BUx_DNTa.js} +3 -1
- package/dist/{cs-dsQ7umNS.js → cs-D_6Vg3XS.js} +3 -1
- package/dist/curp-validation/curp-validation.es.js +11 -11
- package/dist/{customFields-BdnLB6L1.js → customFields-CEFWn2wC.js} +9 -9
- package/dist/{customWatchlist-DzeHJAa3.js → customWatchlist-Xn3d-zbf.js} +6 -6
- package/dist/{da-DK-CFQaOERk.js → da-DK-CsmjiCBo.js} +3 -1
- package/dist/{dashboardTheme-BwKtcRSO.js → dashboardTheme-B_YjGFDU.js} +1 -1
- package/dist/dateInputComposed-0tUVTT0_.js +1 -0
- package/dist/{dateInputComposed-BcmKKwRL.js → dateInputComposed-ByhgHDX8.js} +4 -4
- package/dist/{de-BqG02U9o.js → de-BsJlhx6J.js} +3 -1
- package/dist/{permissions-DowRodJj.js → denied-CB1v3PyY.js} +154 -212
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-CoMsW_gC.js → documentCapture-Cj8G5Wgb.js} +15 -15
- package/dist/documentCapture-D0o4Xh1J.js +2 -0
- package/dist/dropdownComposed-BsEtJjhn.js +1 -0
- package/dist/{dropdownComposed-DYdI3B4r.js → dropdownComposed-DptsxuHA.js} +2 -2
- package/dist/dynamic-forms/dynamic-forms.es.js +10 -10
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-B-gioC08.js +2 -0
- package/dist/{ekybModule-BRh9D01p.js → ekybModule-DqA0hfNQ.js} +12 -12
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CjkpPQ3f.js +2 -0
- package/dist/{ekycModule-Da6Bl3jg.js → ekycModule-bRC6FW2H.js} +12 -12
- package/dist/{el-BP_RmMeB.js → el-Dq-L-4X5.js} +4 -2
- package/dist/{el-GR-9I2fVd-W.js → el-GR-c9roJIs_.js} +3 -1
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-KFF7qbid.js → electronic-signature-DRMdCzdF.js} +8 -8
- package/dist/email/email.es.js +7 -7
- package/dist/{emailInput-B_qAEKBC.js → emailInput-Dz8ukhAE.js} +3 -3
- package/dist/{en-DnIfMNS1.js → en-CmZT05w8.js} +3 -1
- package/dist/{en-DG-poeSJZ7W.js → en-DG-BQHfwiXE.js} +3 -1
- package/dist/{errorContent-CMNfCIo_.js → errorContent-aJuo21I4.js} +5 -5
- package/dist/{es-419-DgAnO5DV.js → es-419-CoqfXTDl.js} +3 -1
- package/dist/{es-2x55EFTs.js → es-DXFWBB40.js} +3 -1
- package/dist/{es-ES-BSnroYMU.js → es-ES-TOSb7vSR.js} +3 -1
- package/dist/{es-MX-CfztSSs4.js → es-MX-CpubyuFB.js} +3 -1
- package/dist/{et-CPoI8fYI.js → et-dg12JfIX.js} +4 -2
- package/dist/{expiredId-DJYL_--M.js → expiredId-BPgVum6e.js} +5 -5
- package/dist/extensibility.es.js +34 -34
- package/dist/{fa-IR-CVf6F8GG.js → fa-IR-TKcZgrd1.js} +2 -0
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-CwoYbKBB.js → faceMatch-BcScQR2O.js} +6 -6
- package/dist/faceMatch-BvaN_Ggn.js +2 -0
- package/dist/{fi-FI-A4oUFztt.js → fi-FI-BP9vgY5F.js} +2 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-D4YoXJKX.js +2 -0
- package/dist/{fieldComparison-D2WI5cYb.js → fieldComparison-UKZsi875.js} +7 -7
- package/dist/{finalSuccessScreen-BtJ5o2pi.js → finalSuccessScreen-7OX0TdIz.js} +9 -9
- package/dist/fiscal-qr/fiscal-qr.es.js +15 -9
- package/dist/{flipAnimation-Bb5FQVF-.js → flipAnimation-BwI4pEJc.js} +13 -13
- package/dist/flow/flow.es.js +7 -7
- package/dist/{formField-CBwWQ7wD.js → formField-DWExlgnz.js} +2 -2
- package/dist/{fr-ON88Zj-c.js → fr-B4LoNDGy.js} +3 -1
- package/dist/{fr-CA-CI4CD8PC.js → fr-CA-CjN8CDsE.js} +3 -1
- package/dist/geolocation/geolocation.es.js +8 -8
- package/dist/government-validation/government-validation.es.js +3 -3
- package/dist/{he-pbmbYdr4.js → he-CJNS0xku.js} +2 -0
- package/dist/{hi-DUIfQ6FS.js → hi-CoHu7PnX.js} +2 -0
- package/dist/{hmn-DL-aQCTc.js → hmn-qubMIB6T.js} +2 -0
- package/dist/{homeScreen-vLMuzGDq.js → homeScreen-CqLbJbhW.js} +6 -6
- package/dist/{hr-DfJZSVnR.js → hr-N3Dy9ndd.js} +2 -0
- package/dist/{ht-DkZi3f0t.js → ht-iHGiGZhO.js} +2 -0
- package/dist/{hu-ClhgOpVy.js → hu-hlQUlAJs.js} +3 -1
- package/dist/{icons-eIgP34nj.js → icons-DNXYxUPA.js} +1 -1
- package/dist/id/id.es.js +20 -19
- package/dist/{id-DzyWelEE.js → id-Dhk7ywrq.js} +3 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +8 -8
- package/dist/id-verification/id-verification.es.js +4 -4
- package/dist/{idOcr-C5R3RWuL.js → idOcr-Bt0V72id.js} +11 -11
- package/dist/identity-reuse/identity-reuse.es.js +5 -5
- package/dist/{incodeComponent-D3_BSWan.js → incodeComponent-DeVV0gEn.js} +7 -7
- package/dist/{incodeModule-BQgvYKyr.js → incodeModule-Do8qpZk7.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{inputComposed-CTZnsHLi.js → inputComposed-9aPipTS_.js} +2 -2
- package/dist/inputComposed-DZokKK4c.js +1 -0
- package/dist/{it-D_u7w6N4.js → it-CXYuJ5BQ.js} +4 -2
- package/dist/{ja-Drh4oAoU.js → ja-B5OkMrWD.js} +3 -1
- package/dist/{ja-JP-Pdxq82Pi.js → ja-JP-SlPp7xE2.js} +4 -2
- package/dist/{jv-DFcKF0Jp.js → jv-DduD6MhM.js} +2 -0
- package/dist/{ka--2y3Ae63.js → ka-CG2wabuB.js} +2 -0
- package/dist/{kk-CAs7inco.js → kk-D984nBRQ.js} +2 -0
- package/dist/{km-BlxkLYfw.js → km-B-DaaNxL.js} +9 -7
- package/dist/{ko-B1XhW0dx.js → ko-B8I6YPOu.js} +3 -1
- package/dist/{ko-KP-DO1TCCY3.js → ko-KP-BTQZdVex.js} +3 -1
- package/dist/{ky-BN92RThU.js → ky-p_wAYlXq.js} +2 -0
- package/dist/{lo-DPUo8xJT.js → lo-CS-RhXrt.js} +2 -0
- package/dist/{lt-CYBwI4Sq.js → lt-C1yAMYTU.js} +4 -2
- package/dist/{lv-eBlwWu05.js → lv-CiHCsaN9.js} +3 -1
- package/dist/{mandatoryConsent-D96_9XTp.js → mandatoryConsent-BJcDf3s-.js} +6 -6
- package/dist/{manualCaptureButton-C9H2_SJS.js → manualCaptureButton-2RTC1vZC.js} +3 -3
- package/dist/{manualCaptureButton-igyQk3Yb.js → manualCaptureButton-CqwPCE8h.js} +3 -3
- package/dist/{mk-QMUTND8Y.js → mk-VumecXcv.js} +2 -0
- package/dist/{mn-CCTUOA1D.js → mn-DGMJpCs6.js} +2 -0
- package/dist/{modal-CmF_MYIK.js → modal-H_YHBjxJ.js} +2 -2
- package/dist/{ms-BKJgaJfx.js → ms-CBk2NkZ1.js} +2 -0
- package/dist/{my-DyLbN8b0.js → my-BWcPvvs5.js} +2 -0
- package/dist/{nb-NO-TVHxhuqB.js → nb-NO-D7azau2s.js} +2 -0
- package/dist/{ne-gBLZraiK.js → ne-D9CU-qx6.js} +2 -0
- package/dist/{nl-CrO6Mvej.js → nl-BVhLZVXm.js} +3 -1
- package/dist/{optionAccessibleLabel-CqBUOBxK.js → optionAccessibleLabel-C0BRq4LF.js} +5 -5
- package/dist/{otpInput-tEovwPs7.js → otpInput-C8mlw_Cm.js} +6 -6
- package/dist/{passwordInputComposed-DNlYgHHW.js → passwordInputComposed-CDbxJKHR.js} +4 -4
- package/dist/pdfViewer-CCu7pBQv.js +2 -0
- package/dist/{pdfViewer-4u14PDPr.js → pdfViewer-DTwxqwSD.js} +2 -2
- package/dist/permissions-B0ctl0V9.js +212 -0
- package/dist/phone/phone.es.js +8 -8
- package/dist/{phoneInputComposed-B6sv-uB2.js → phoneInputComposed-Bz37hY_u.js} +3 -3
- package/dist/{pl-Bde7cCcc.js → pl-DWKpY783.js} +3 -1
- package/dist/{processing-s6GfNwuL.js → processing-CrNgzN1u.js} +1 -1
- package/dist/{pt-DhDCeOLY.js → pt-B2_-n4Z3.js} +3 -1
- package/dist/{pt-BR-DFr2fPNi.js → pt-BR-CC8MxgMX.js} +3 -1
- package/dist/{pt-PT-CpiPMuNf.js → pt-PT-vo9--bzz.js} +3 -1
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/radioGroupComposed-BFzxJVpZ.js +1 -0
- package/dist/{radioGroupComposed-DmoMukus.js → radioGroupComposed-BrawV4FU.js} +2 -2
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +7 -7
- package/dist/{resendTimer-Cskll9rx.js → resendTimer-C0HqF9VE.js} +1 -1
- package/dist/{resolveApiKey-CB1_7ISm.js → resolveApiKey-DU0APKTv.js} +17 -17
- package/dist/{richText-C8-Ny2SD.js → richText-BEuqr0as.js} +1 -1
- package/dist/{ro-B_ITJxYh.js → ro-DOhwcTr3.js} +3 -1
- package/dist/{ru-Cg4U-rYv.js → ru-CD71PeIH.js} +3 -1
- package/dist/{ru-RU-fR_tbAfz.js → ru-RU-DLHiNY0O.js} +3 -1
- package/dist/selfie/selfie.es.js +9 -9
- package/dist/signature/signature.es.js +6 -6
- package/dist/{sk-DbraxlnX.js → sk-DaVWjX4k.js} +4 -2
- package/dist/{sl-DXgvmUsz.js → sl-YiCpfUol.js} +3 -1
- package/dist/{smsTabContent-Dado9q8t.js → smsTabContent-C1C1g4GT.js} +6 -6
- package/dist/{so-HI13bXme.js → so-B2bRmOT5.js} +2 -0
- package/dist/{spacer-ayyj5lMa.js → spacer-DZ-t7RMQ.js} +1 -1
- package/dist/{spinner-Z-5sEEDQ.js → spinner-hjbTcmA1.js} +2 -2
- package/dist/{sr-DAb2JkvB.js → sr-BbjKCO-a.js} +2 -0
- package/dist/{sr-Latn-DzSc6KyA.js → sr-Latn-D-xKaOqV.js} +7 -5
- package/dist/{sr-YU-C9HskKa8.js → sr-YU-1ULH6b8i.js} +2 -0
- package/dist/{statusPage-Bqz3Ci4f.js → statusPage-DeP-KBHD.js} +3 -3
- package/dist/{sv-SE-B3X2fvQj.js → sv-SE-5wAQ-CsE.js} +3 -1
- package/dist/{sw-BVL9Boua.js → sw-DVj-0--U.js} +2 -0
- package/dist/{tabs-B-ERCzA4.js → tabs-C8WsKO4V.js} +1 -1
- package/dist/{th-TH-CY5gd6Bd.js → th-TH-DAqLZmwn.js} +2 -0
- package/dist/{th-Cq87oDI8.js → th-ubpxty9O.js} +2 -0
- package/dist/{tl-DUm9tRZ_.js → tl-DCL6tS5T.js} +2 -0
- package/dist/{tl-PH-CNYNkY1M.js → tl-PH-Wftt86RZ.js} +2 -0
- package/dist/{tr-Cg3WJqb6.js → tr-B58sWy89.js} +3 -1
- package/dist/{tutorial-CHNfV-I3.js → tutorial-BP1F722m.js} +10 -10
- package/dist/{typography-ikD4-Z8S.js → typography-CYO7ELEl.js} +1 -1
- package/dist/{uiConfig-C1jdTj-i.js → uiConfig-BcjOx3PY.js} +83 -83
- package/dist/{uk-C7hhE-77.js → uk-BaklGIxd.js} +3 -1
- package/dist/{uk-UA-DRsynQ5S.js → uk-UA-BoawOp_y.js} +4 -2
- package/dist/{ur-BEX50SCe.js → ur-MYw3j3wD.js} +2 -0
- package/dist/{uz-BYlUXaIK.js → uz-DWfToWrZ.js} +2 -0
- package/dist/{verificationResult-B26DDXFT.js → verificationResult-Bre5Fb7M.js} +6 -6
- package/dist/{vi-DddAM-WF.js → vi-IY_487Pk.js} +2 -0
- package/dist/video-selfie/video-selfie.es.js +10 -10
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/{watchlistForBusiness-o4F6Czxp.js → watchlistForBusiness-BIrl-mYj.js} +8 -8
- package/dist/workflow/workflow.es.js +7 -7
- package/dist/{zh-aG_wPYUs.js → zh-B1yRDjHf.js} +3 -1
- package/dist/{zh-CN-B8y9prPe.js → zh-CN-B2Yvvabk.js} +4 -2
- package/dist/{zh-HANT-ChrXbHBA.js → zh-HANT-CdNxQtKM.js} +3 -1
- package/dist/{zh-TW-DrkMIR_e.js → zh-TW-BgqFmnMA.js} +3 -1
- package/package.json +2 -2
- package/dist/cameraOverlay-Dn0r4NR9.js +0 -2
- package/dist/dateInputComposed-DPM6l_SL.js +0 -1
- package/dist/documentCapture-DMxz9eqT.js +0 -2
- package/dist/dropdownComposed-CXwC9j18.js +0 -1
- package/dist/ekybModule-C5NPsc0F.js +0 -2
- package/dist/ekycModule-DwKPvgA8.js +0 -2
- package/dist/faceMatch-DCkrehin.js +0 -2
- package/dist/fieldComparison-OwqIkMRe.js +0 -2
- package/dist/inputComposed-wy0-orhJ.js +0 -1
- package/dist/pdfViewer-e2o97yIv.js +0 -2
- package/dist/radioGroupComposed-CJkzLiFc.js +0 -1
- package/dist/useCoverMedia-VLw3OYN_.js +0 -149
- /package/dist/{numberedStep-DYznpDKc.js → numberedStep-C8e_uPaz.js} +0 -0
|
@@ -1,14 +1,157 @@
|
|
|
1
|
-
import { a as Trans, o as useTranslation } from "./uiConfig-
|
|
2
|
-
import { S as k, _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import {
|
|
4
|
-
import { i as TypographyH4, t as Title } from "./typography-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as Modal } from "./modal-CmF_MYIK.js";
|
|
8
|
-
import { t as BottomSheet } from "./bottomSheet-DtUFrIAG.js";
|
|
9
|
-
import { t as NumberedStep } from "./numberedStep-DYznpDKc.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";
|
|
10
7
|
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
11
|
-
|
|
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
|
|
12
155
|
//#region src/shared/permissions/camera/boldWithArrow.tsx
|
|
13
156
|
var BoldWithArrow = ({ i18nKey }) => /* @__PURE__ */ u("span", {
|
|
14
157
|
class: "IncodeBoldWithArrow",
|
|
@@ -2045,205 +2188,4 @@ var Denied = ({ onRefresh, "data-testid": dataTestId, "data-permission-status":
|
|
|
2045
2188
|
});
|
|
2046
2189
|
};
|
|
2047
2190
|
//#endregion
|
|
2048
|
-
|
|
2049
|
-
var learnMoreInstructions = [
|
|
2050
|
-
{
|
|
2051
|
-
icon: SvgCameraIcon,
|
|
2052
|
-
textKey: "idv2.permissions.learnMorePage.instructions.1"
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
icon: SvgBankCardIcon,
|
|
2056
|
-
textKey: "idv2.permissions.learnMorePage.instructions.2"
|
|
2057
|
-
},
|
|
2058
|
-
{
|
|
2059
|
-
icon: SvgCheckIcon,
|
|
2060
|
-
textKey: "idv2.permissions.learnMorePage.instructions.4"
|
|
2061
|
-
}
|
|
2062
|
-
];
|
|
2063
|
-
var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
|
|
2064
|
-
const { t } = useTranslation();
|
|
2065
|
-
const titleRef = A(null);
|
|
2066
|
-
y(() => {
|
|
2067
|
-
titleRef.current?.focus();
|
|
2068
|
-
}, []);
|
|
2069
|
-
return /* @__PURE__ */ u(Page, {
|
|
2070
|
-
className: "IncodeLearnMorePage",
|
|
2071
|
-
hideHeader: true,
|
|
2072
|
-
hideFooterBranding: true,
|
|
2073
|
-
"data-testid": dataTestId,
|
|
2074
|
-
"data-permission-status": dataPermissionStatus,
|
|
2075
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2076
|
-
class: "IncodeLearnMoreContainer",
|
|
2077
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2078
|
-
class: "IncodeLearnMoreTitleContainer",
|
|
2079
|
-
children: [/* @__PURE__ */ u(WarningIcon, { size: 32 }), /* @__PURE__ */ u(Title, {
|
|
2080
|
-
ref: titleRef,
|
|
2081
|
-
tabIndex: -1,
|
|
2082
|
-
children: t("idv2.permissions.learnMorePage.title")
|
|
2083
|
-
})]
|
|
2084
|
-
}), /* @__PURE__ */ u("ul", {
|
|
2085
|
-
class: "IncodeLearnMoreInstructionsContainer",
|
|
2086
|
-
role: "list",
|
|
2087
|
-
children: learnMoreInstructions.map(({ icon: Icon, ...instruction }) => /* @__PURE__ */ u("li", {
|
|
2088
|
-
class: "IncodeLearnMoreInstruction",
|
|
2089
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2090
|
-
class: "IncodeLearnMoreInstructionIcon",
|
|
2091
|
-
"aria-hidden": "true",
|
|
2092
|
-
children: /* @__PURE__ */ u(Icon, {
|
|
2093
|
-
height: 32,
|
|
2094
|
-
width: 32
|
|
2095
|
-
})
|
|
2096
|
-
}), /* @__PURE__ */ u(TypographyH4, { children: t(instruction.textKey) })]
|
|
2097
|
-
}, instruction.textKey))
|
|
2098
|
-
})]
|
|
2099
|
-
}), /* @__PURE__ */ u("div", {
|
|
2100
|
-
class: "IncodeLearnMoreActions",
|
|
2101
|
-
children: [/* @__PURE__ */ u(Button, {
|
|
2102
|
-
variant: "link",
|
|
2103
|
-
onClick: onQuitProcess,
|
|
2104
|
-
children: t("idv2.permissions.learnMorePage.quitProcess")
|
|
2105
|
-
}), /* @__PURE__ */ u(Button, {
|
|
2106
|
-
onClick: onAllowPermissions,
|
|
2107
|
-
children: t("idv2.permissions.learnMorePage.allowPermissions")
|
|
2108
|
-
})]
|
|
2109
|
-
})]
|
|
2110
|
-
});
|
|
2111
|
-
};
|
|
2112
|
-
//#endregion
|
|
2113
|
-
//#region src/shared/permissions/camera/permissionsBottomSheet.tsx
|
|
2114
|
-
function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDenyButton = true, isRequestingPermissions = false, onClose }) {
|
|
2115
|
-
const { t } = useTranslation();
|
|
2116
|
-
return /* @__PURE__ */ u(BottomSheet, {
|
|
2117
|
-
isOpen: true,
|
|
2118
|
-
labelledById: "permissions-dialog-title",
|
|
2119
|
-
manageInitialFocus: false,
|
|
2120
|
-
onClose,
|
|
2121
|
-
children: /* @__PURE__ */ u("div", {
|
|
2122
|
-
className: "IncodePermissionsBottomSheet",
|
|
2123
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2124
|
-
class: "IncodePermissionsBottomSheetTitleContainer",
|
|
2125
|
-
children: [/* @__PURE__ */ u(AutoFocusTitle, {
|
|
2126
|
-
id: "permissions-dialog-title",
|
|
2127
|
-
className: "IncodePermissionsBottomSheetTitle",
|
|
2128
|
-
children: t("idv2.permissions.allowPermissionsV2")
|
|
2129
|
-
}), /* @__PURE__ */ u("p", {
|
|
2130
|
-
className: "IncodePermissionsBottomSheetSubtitle",
|
|
2131
|
-
children: t("idv2.permissions.subtitleV2")
|
|
2132
|
-
})]
|
|
2133
|
-
}), /* @__PURE__ */ u("div", {
|
|
2134
|
-
class: "IncodePermissionsBottomSheetActions",
|
|
2135
|
-
children: [showDenyButton && /* @__PURE__ */ u(Button, {
|
|
2136
|
-
variant: "secondary",
|
|
2137
|
-
onClick: onDenyPermissions,
|
|
2138
|
-
disabled: isRequestingPermissions,
|
|
2139
|
-
children: t("idv2.permissions.dontAllow")
|
|
2140
|
-
}), /* @__PURE__ */ u(Button, {
|
|
2141
|
-
onClick: onAllowPermissions,
|
|
2142
|
-
disabled: isRequestingPermissions,
|
|
2143
|
-
isLoading: isRequestingPermissions,
|
|
2144
|
-
children: t("idv2.permissions.allowV2")
|
|
2145
|
-
})]
|
|
2146
|
-
})]
|
|
2147
|
-
})
|
|
2148
|
-
});
|
|
2149
|
-
}
|
|
2150
|
-
//#endregion
|
|
2151
|
-
//#region src/shared/permissions/camera/permissionsDialog.tsx
|
|
2152
|
-
function createHandlers(manager, canDismiss) {
|
|
2153
|
-
if (!canDismiss) return {
|
|
2154
|
-
handleDismiss: void 0,
|
|
2155
|
-
handleOpenChange: void 0,
|
|
2156
|
-
handleClose: manager.close
|
|
2157
|
-
};
|
|
2158
|
-
const handleDismiss = () => {
|
|
2159
|
-
manager.back?.();
|
|
2160
|
-
};
|
|
2161
|
-
const handleOpenChange = (open) => {
|
|
2162
|
-
if (open) return;
|
|
2163
|
-
manager.back?.();
|
|
2164
|
-
};
|
|
2165
|
-
return {
|
|
2166
|
-
handleDismiss,
|
|
2167
|
-
handleOpenChange,
|
|
2168
|
-
handleClose: void 0
|
|
2169
|
-
};
|
|
2170
|
-
}
|
|
2171
|
-
var PermissionsDialog = ({ manager, permissionStatus, isDismissible }) => {
|
|
2172
|
-
const isMobileWidth = useIsMobileDeviceWidth();
|
|
2173
|
-
const { t } = useTranslation();
|
|
2174
|
-
const isMotionOnly = permissionStatus === "motionOnly";
|
|
2175
|
-
const isRequestingPermissions = permissionStatus === "requesting";
|
|
2176
|
-
const canDismiss = Boolean(isDismissible) && !isRequestingPermissions;
|
|
2177
|
-
const dismissible = !isRequestingPermissions;
|
|
2178
|
-
const { handleDismiss, handleOpenChange, handleClose } = createHandlers(manager, canDismiss);
|
|
2179
|
-
if (isMobileWidth) return /* @__PURE__ */ u(PermissionsBottomSheet, {
|
|
2180
|
-
showDenyButton: !isMotionOnly,
|
|
2181
|
-
onAllowPermissions: () => manager.requestPermission(),
|
|
2182
|
-
onDenyPermissions: () => manager.goToLearnMore(),
|
|
2183
|
-
isRequestingPermissions,
|
|
2184
|
-
onClose: handleDismiss
|
|
2185
|
-
});
|
|
2186
|
-
return /* @__PURE__ */ u(Modal.Root, {
|
|
2187
|
-
open: true,
|
|
2188
|
-
dismissible,
|
|
2189
|
-
onOpenChange: handleOpenChange,
|
|
2190
|
-
children: /* @__PURE__ */ u(Modal.Content, { children: [
|
|
2191
|
-
/* @__PURE__ */ u(Modal.Close, {
|
|
2192
|
-
"aria-label": t("common.close"),
|
|
2193
|
-
title: t("common.close"),
|
|
2194
|
-
onClick: handleClose
|
|
2195
|
-
}),
|
|
2196
|
-
/* @__PURE__ */ u(Modal.TitleSection, { children: [/* @__PURE__ */ u(Modal.Title, {
|
|
2197
|
-
class: "IncodePermissionsModalTitle",
|
|
2198
|
-
children: t("idv2.permissions.allowPermissionsV2")
|
|
2199
|
-
}), /* @__PURE__ */ u(Modal.Subtitle, { children: t("idv2.permissions.subtitleV2") })] }),
|
|
2200
|
-
/* @__PURE__ */ u(Modal.Actions, { children: [!isMotionOnly && /* @__PURE__ */ u(Button, {
|
|
2201
|
-
variant: "secondary",
|
|
2202
|
-
onClick: manager.goToLearnMore,
|
|
2203
|
-
disabled: isRequestingPermissions,
|
|
2204
|
-
children: t("idv2.permissions.dontAllow")
|
|
2205
|
-
}), /* @__PURE__ */ u(Button, {
|
|
2206
|
-
variant: "primary",
|
|
2207
|
-
onClick: manager.requestPermission,
|
|
2208
|
-
disabled: isRequestingPermissions,
|
|
2209
|
-
isLoading: isRequestingPermissions,
|
|
2210
|
-
children: t("idv2.permissions.allowV2")
|
|
2211
|
-
})] })
|
|
2212
|
-
] })
|
|
2213
|
-
});
|
|
2214
|
-
};
|
|
2215
|
-
//#endregion
|
|
2216
|
-
//#region src/shared/permissions/camera/permissions.tsx
|
|
2217
|
-
var Permissions = ({ manager, permissionStatus }) => {
|
|
2218
|
-
if (permissionStatus === "checking") return null;
|
|
2219
|
-
if (permissionStatus === "requesting") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
2220
|
-
className: "IncodePermissionsRequestingPage",
|
|
2221
|
-
presentational: true,
|
|
2222
|
-
titleKey: "loadingCircle.holdOn",
|
|
2223
|
-
subtitleKey: "loadingCircle.preparingCamera"
|
|
2224
|
-
});
|
|
2225
|
-
if (permissionStatus === "learnMore") return /* @__PURE__ */ u(LearnMore, {
|
|
2226
|
-
onAllowPermissions: () => manager.requestPermission(),
|
|
2227
|
-
onQuitProcess: () => manager.close(),
|
|
2228
|
-
"data-testid": "permissions",
|
|
2229
|
-
"data-permission-status": "learnMore"
|
|
2230
|
-
});
|
|
2231
|
-
if (permissionStatus === "denied") return /* @__PURE__ */ u(Denied, {
|
|
2232
|
-
onRefresh: () => window.location.reload(),
|
|
2233
|
-
"data-testid": "permissions",
|
|
2234
|
-
"data-permission-status": "denied"
|
|
2235
|
-
});
|
|
2236
|
-
return /* @__PURE__ */ u(Page, {
|
|
2237
|
-
className: "IncodePermissionsPage",
|
|
2238
|
-
hideHeader: true,
|
|
2239
|
-
hideFooterBranding: true,
|
|
2240
|
-
"data-testid": "permissions",
|
|
2241
|
-
"data-permission-status": permissionStatus,
|
|
2242
|
-
children: /* @__PURE__ */ u(PermissionsDialog, {
|
|
2243
|
-
manager,
|
|
2244
|
-
permissionStatus
|
|
2245
|
-
})
|
|
2246
|
-
});
|
|
2247
|
-
};
|
|
2248
|
-
//#endregion
|
|
2249
|
-
export { SvgReloadIcon as a, SvgPersonCardIcon as i, PermissionsDialog as n, SvgCheckV2Icon as r, Permissions 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 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
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-
|
|
4
|
-
import { d as cn, s as Asset, t as Spacer } from "./spacer-
|
|
5
|
-
import { t as Spinner } from "./spinner-
|
|
6
|
-
import { a as LockIcon, r as SuccessIcon, s as FileIcon, v as CameraIcon, x as Button } from "./icons-
|
|
7
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
8
|
-
import { t as Modal } from "./modal-
|
|
9
|
-
import { t as ErrorContent } from "./errorContent-
|
|
10
|
-
import { n as ProgressBar, t as CaptureFooter } from "./captureFooter-
|
|
11
|
-
import { t as BottomSheet } from "./bottomSheet-
|
|
12
|
-
import { n as CameraFrame, t as CameraView } from "./cameraView-
|
|
13
|
-
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-
|
|
14
|
-
import { t as Permissions } from "./permissions-
|
|
15
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
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";
|
|
16
16
|
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
|
|
17
17
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
18
18
|
function captureFrameFromVideo(video) {
|
|
@@ -331,7 +331,7 @@ var UploadingHeader = ({ progress, isFilePdf }) => {
|
|
|
331
331
|
};
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region src/modules/document-capture/documentReview.tsx
|
|
334
|
-
var PdfViewer = z(() => import("./pdfViewer-
|
|
334
|
+
var PdfViewer = z(() => import("./pdfViewer-CCu7pBQv.js").then((m) => ({ default: m.PdfViewer })));
|
|
335
335
|
var DocumentReview = ({ state, manager }) => {
|
|
336
336
|
const { t } = useTranslation();
|
|
337
337
|
if (state.status === "failure") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dropdownComposed-DptsxuHA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as k, _ as y, c as A, f as d, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
-
import { d as cn } from "./spacer-
|
|
3
|
-
import { b as ErrorIcon, d as CloseIcon, h as CheckmarkCompactIcon, i as SearchIcon, m as ChevronDown, r as SuccessIcon } from "./icons-
|
|
2
|
+
import { d as cn } from "./spacer-DZ-t7RMQ.js";
|
|
3
|
+
import { b as ErrorIcon, d as CloseIcon, h as CheckmarkCompactIcon, i as SearchIcon, m as ChevronDown, r as SuccessIcon } from "./icons-DNXYxUPA.js";
|
|
4
4
|
import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
|
|
5
5
|
//#region src/shared/dropdownComposed/dropdownComposed.tsx
|
|
6
6
|
var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option", value, options, onChange, error, helper, showErrorIcon, showHelperIcon, suppressMessages = false, disabled = false, required, searchable = false, searchPlaceholder = "Search...", noResultsText = "No results found", name, tabIndex, onKeyDown, onBlur, renderSelectedLabel, siblingElement, class: className, "aria-label": ariaLabel, "data-testid": dataTestId }) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { o as useTranslation } from "../uiConfig-
|
|
1
|
+
import { o as useTranslation } from "../uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { p as g, u as T, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { x as Button } from "../icons-
|
|
5
|
-
import { t as VerificationResult } from "../verificationResult-
|
|
6
|
-
import { t as InputComposed } from "../inputComposed-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "../incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { x as Button } from "../icons-DNXYxUPA.js";
|
|
5
|
+
import { t as VerificationResult } from "../verificationResult-Bre5Fb7M.js";
|
|
6
|
+
import { t as InputComposed } from "../inputComposed-9aPipTS_.js";
|
|
7
7
|
import { r as countries } from "../countries-5e8kwG_m.js";
|
|
8
|
-
import { t as PhoneInputComposed } from "../phoneInputComposed-
|
|
9
|
-
import { t as DropdownComposed } from "../dropdownComposed-
|
|
10
|
-
import { t as DateInputComposed } from "../dateInputComposed-
|
|
11
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
12
|
-
import { t as EmailInput } from "../emailInput-
|
|
8
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-Bz37hY_u.js";
|
|
9
|
+
import { t as DropdownComposed } from "../dropdownComposed-DptsxuHA.js";
|
|
10
|
+
import { t as DateInputComposed } from "../dateInputComposed-ByhgHDX8.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Do8qpZk7.js";
|
|
12
|
+
import { t as EmailInput } from "../emailInput-Dz8ukhAE.js";
|
|
13
13
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
14
14
|
import { formatCPF, isValidCPF } from "@incodetech/core/id-ocr";
|
|
15
15
|
//#region src/modules/dynamic-forms/dynamic-forms.tsx
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-DqA0hfNQ.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { S as k, _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, v as useFormScrollable } from "./incodeComponent-
|
|
4
|
-
import { t as Spacer } from "./spacer-
|
|
5
|
-
import { t as Spinner } from "./spinner-
|
|
6
|
-
import { x as Button } from "./icons-
|
|
7
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
8
|
-
import { t as InputComposed } from "./inputComposed-
|
|
9
|
-
import { n as translateError, t as FormField } from "./formField-
|
|
10
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
11
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
12
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
13
|
-
import { t as CountrySelector$1 } from "./countrySelector-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, v as useFormScrollable } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-DZ-t7RMQ.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-hjbTcmA1.js";
|
|
6
|
+
import { x as Button } from "./icons-DNXYxUPA.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-Bre5Fb7M.js";
|
|
8
|
+
import { t as InputComposed } from "./inputComposed-9aPipTS_.js";
|
|
9
|
+
import { n as translateError, t as FormField } from "./formField-DWExlgnz.js";
|
|
10
|
+
import { t as DropdownComposed } from "./dropdownComposed-DptsxuHA.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
12
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-C0BRq4LF.js";
|
|
13
|
+
import { t as CountrySelector$1 } from "./countrySelector-Zbe2eGzy.js";
|
|
14
14
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
15
15
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
16
16
|
var CountrySelector = ({ value, onChange }) => {
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-bRC6FW2H.js";
|
|
2
2
|
export { EkycModule };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, v as useFormScrollable } from "./incodeComponent-
|
|
4
|
-
import { t as Spinner } from "./spinner-
|
|
5
|
-
import { x as Button } from "./icons-
|
|
6
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
7
|
-
import { n as translateError, t as FormField } from "./formField-
|
|
8
|
-
import { t as PhoneInputComposed } from "./phoneInputComposed-
|
|
9
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
10
|
-
import { t as DateInputComposed } from "./dateInputComposed-
|
|
11
|
-
import { t as RadioGroupComposed } from "./radioGroupComposed-
|
|
12
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
13
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, v as useFormScrollable } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { t as Spinner } from "./spinner-hjbTcmA1.js";
|
|
5
|
+
import { x as Button } from "./icons-DNXYxUPA.js";
|
|
6
|
+
import { t as VerificationResult } from "./verificationResult-Bre5Fb7M.js";
|
|
7
|
+
import { n as translateError, t as FormField } from "./formField-DWExlgnz.js";
|
|
8
|
+
import { t as PhoneInputComposed } from "./phoneInputComposed-Bz37hY_u.js";
|
|
9
|
+
import { t as DropdownComposed } from "./dropdownComposed-DptsxuHA.js";
|
|
10
|
+
import { t as DateInputComposed } from "./dateInputComposed-ByhgHDX8.js";
|
|
11
|
+
import { t as RadioGroupComposed } from "./radioGroupComposed-BrawV4FU.js";
|
|
12
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
13
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-C0BRq4LF.js";
|
|
14
14
|
import { createEkycManager } from "@incodetech/core/ekyc";
|
|
15
15
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
16
16
|
/**
|
|
@@ -869,7 +869,7 @@ var el_default = {
|
|
|
869
869
|
"title": "Προετοιμάστε τη δεύτερη σελίδα"
|
|
870
870
|
}
|
|
871
871
|
},
|
|
872
|
-
"needHelp": { "open": "Άνοιγμα παραθύρου
|
|
872
|
+
"needHelp": { "open": "Άνοιγμα παραθύρου «Χρειάζεστε βοήθεια;»" },
|
|
873
873
|
"review": {
|
|
874
874
|
"analyzing": "Αναλύοντας...",
|
|
875
875
|
"continue": "Συνεχίστε",
|
|
@@ -1000,6 +1000,7 @@ var el_default = {
|
|
|
1000
1000
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1001
1001
|
"postalCode": "Ταχυδρομικός κώδικας",
|
|
1002
1002
|
"prefill": {
|
|
1003
|
+
"AT": { "taxId": { "subtitle": "Εισάγετε τον αριθμό FN ή τον αριθμό ΦΠΑ της επιχείρησης" } },
|
|
1003
1004
|
"AU": { "taxId": { "subtitle": "Εισάγετε τον αριθμό ACN (9 ψηφία) ή ABN (11 ψηφία) της επιχείρησης" } },
|
|
1004
1005
|
"BE": { "taxId": { "subtitle": "Εισάγετε τον αριθμό BCE/KBO ή τον αριθμό ΦΠΑ της επιχείρησης" } },
|
|
1005
1006
|
"DE": { "taxId": { "subtitle": "Εισάγετε τον αριθμό μητρώου εμπορικών εταιρειών HRB/HRA, τον αριθμό USt-IdNr (ΦΠΑ) ή τον αριθμό SafeNo της επιχείρησης" } },
|
|
@@ -1496,6 +1497,7 @@ var el_default = {
|
|
|
1496
1497
|
"subtitle": "Βεβαιωθείτε ότι το διαβατήριό σας είναι ευανάγνωστο",
|
|
1497
1498
|
"title": "Σαρώστε το διαβατήριό σας"
|
|
1498
1499
|
},
|
|
1500
|
+
"permissionInCamera": { "subtitle": "Επιτρέψτε τη συνέχιση της πρόσβασης στην κάμερα" },
|
|
1499
1501
|
"processing": {
|
|
1500
1502
|
"analyzing": "Αναλύοντας...",
|
|
1501
1503
|
"attemptRemainingLabel": "προσπάθεια που απομένει",
|
|
@@ -1853,7 +1855,7 @@ var el_default = {
|
|
|
1853
1855
|
"title": "Αυτό λειτουργεί καλύτερα στο προεπιλεγμένο πρόγραμμα περιήγησής σας"
|
|
1854
1856
|
},
|
|
1855
1857
|
"ineCheck": {
|
|
1856
|
-
"checkingYourInformation": "
|
|
1858
|
+
"checkingYourInformation": "Επαλήθευση των στοιχείων σας με βάση τα αρχεία των κρατικών αρχών",
|
|
1857
1859
|
"failure1": "Ταυτότητα όχι",
|
|
1858
1860
|
"failure2": "επαληθευμένο",
|
|
1859
1861
|
"identity": "ταυτότητα",
|
|
@@ -1000,6 +1000,7 @@ var el_GR_default = {
|
|
|
1000
1000
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1001
1001
|
"postalCode": "Ταχυδρομικός κώδικας",
|
|
1002
1002
|
"prefill": {
|
|
1003
|
+
"AT": { "taxId": { "subtitle": "Εισάγετε τον αριθμό FN ή τον αριθμό ΦΠΑ της επιχείρησης" } },
|
|
1003
1004
|
"AU": { "taxId": { "subtitle": "Εισάγετε τον αριθμό ACN (9 ψηφία) ή τον αριθμό ABN (11 ψηφία) της επιχείρησης" } },
|
|
1004
1005
|
"BE": { "taxId": { "subtitle": "Εισάγετε τον αριθμό BCE/KBO ή τον αριθμό ΦΠΑ της επιχείρησης" } },
|
|
1005
1006
|
"DE": { "taxId": { "subtitle": "Εισάγετε τον αριθμό μητρώου εμπορικών εταιρειών HRB/HRA, τον αριθμό USt-IdNr (ΦΠΑ) ή τον αριθμό SafeNo της επιχείρησης" } },
|
|
@@ -1496,6 +1497,7 @@ var el_GR_default = {
|
|
|
1496
1497
|
"subtitle": "Βεβαιωθείτε ότι το διαβατήριό σας είναι ευανάγνωστο",
|
|
1497
1498
|
"title": "Σαρώστε το διαβατήριό σας"
|
|
1498
1499
|
},
|
|
1500
|
+
"permissionInCamera": { "subtitle": "Επιτρέψτε τη συνέχιση της πρόσβασης στην κάμερα" },
|
|
1499
1501
|
"processing": {
|
|
1500
1502
|
"analyzing": "Αναλύοντας...",
|
|
1501
1503
|
"attemptRemainingLabel": "προσπάθεια που απομένει",
|
|
@@ -1853,7 +1855,7 @@ var el_GR_default = {
|
|
|
1853
1855
|
"title": "Αυτό λειτουργεί καλύτερα στο προεπιλεγμένο πρόγραμμα περιήγησής σας"
|
|
1854
1856
|
},
|
|
1855
1857
|
"ineCheck": {
|
|
1856
|
-
"checkingYourInformation": "
|
|
1858
|
+
"checkingYourInformation": "Επαλήθευση των στοιχείων σας με βάση τα αρχεία των κρατικών αρχών",
|
|
1857
1859
|
"failure1": "Ταυτότητα όχι",
|
|
1858
1860
|
"failure2": "επαληθευμένο",
|
|
1859
1861
|
"identity": "ταυτότητα",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-
|
|
1
|
+
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-DRMdCzdF.js";
|
|
2
2
|
export { AeSignature, ElectronicSignature };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as Trans, o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { a as Trans, o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { _ as y, c as A, h as q, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, t as IncodeComponent } from "./incodeComponent-
|
|
4
|
-
import { a as LockIcon, p as ChevronLeftIcon, r as SuccessIcon, x as Button } from "./icons-
|
|
5
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
6
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
7
|
-
import { t as Checkbox } from "./checkbox-
|
|
8
|
-
import { t as PdfViewer } from "./pdfViewer-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, t as IncodeComponent } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { a as LockIcon, p as ChevronLeftIcon, r as SuccessIcon, x as Button } from "./icons-DNXYxUPA.js";
|
|
5
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CVjuQOGZ.js";
|
|
6
|
+
import { t as VerificationResult } from "./verificationResult-Bre5Fb7M.js";
|
|
7
|
+
import { t as Checkbox } from "./checkbox-BR-RTI4R.js";
|
|
8
|
+
import { t as PdfViewer } from "./pdfViewer-DTwxqwSD.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
10
10
|
import { NAMIRIAL_QES_CONSENT_KEYS, createElectronicSignatureManager } from "@incodetech/core/electronic-signature";
|
|
11
11
|
//#region src/modules/electronic-signature/documentIllustration.tsx
|
|
12
12
|
var DocumentIllustration = () => /* @__PURE__ */ u("svg", {
|