@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
|
@@ -1002,6 +1002,7 @@ var uk_UA_default = {
|
|
|
1002
1002
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1003
1003
|
"postalCode": "Поштовий індекс",
|
|
1004
1004
|
"prefill": {
|
|
1005
|
+
"AT": { "taxId": { "subtitle": "Введіть номер FN або номер платника ПДВ підприємства" } },
|
|
1005
1006
|
"AU": { "taxId": { "subtitle": "Введіть номер ACN (9 цифр) або ABN (11 цифр) підприємства" } },
|
|
1006
1007
|
"BE": { "taxId": { "subtitle": "Введіть номер BCE/KBO або номер платника ПДВ підприємства" } },
|
|
1007
1008
|
"DE": { "taxId": { "subtitle": "Введіть номер підприємства в комерційному реєстрі (HRB/HRA), номер платника ПДВ (USt-IdNr) або номер SafeNo підприємства" } },
|
|
@@ -1500,6 +1501,7 @@ var uk_UA_default = {
|
|
|
1500
1501
|
"subtitle": "Переконайтеся, що ваш паспорт читабельний",
|
|
1501
1502
|
"title": "Відскануйте свій паспорт"
|
|
1502
1503
|
},
|
|
1504
|
+
"permissionInCamera": { "subtitle": "Дозволити камері продовжувати роботу" },
|
|
1503
1505
|
"processing": {
|
|
1504
1506
|
"analyzing": "Аналізуючи...",
|
|
1505
1507
|
"attemptRemainingLabel": "залишилося спроб",
|
|
@@ -1859,7 +1861,7 @@ var uk_UA_default = {
|
|
|
1859
1861
|
"title": "Найкраще це працює у вашому браузері за замовчуванням"
|
|
1860
1862
|
},
|
|
1861
1863
|
"ineCheck": {
|
|
1862
|
-
"checkingYourInformation": "
|
|
1864
|
+
"checkingYourInformation": "Перевірка ваших даних за державними реєстрами",
|
|
1863
1865
|
"failure1": "Ідентифікація не",
|
|
1864
1866
|
"failure2": "перевірено",
|
|
1865
1867
|
"identity": "ідентичність",
|
|
@@ -2922,7 +2924,7 @@ var uk_UA_default = {
|
|
|
2922
2924
|
"iAccept": "\"Я приймаю умови\"",
|
|
2923
2925
|
"idValidation": {
|
|
2924
2926
|
"idTypeMismatch": "Це інший ідентифікатор",
|
|
2925
|
-
"idTypeMismatchShowSameId": "Це інший
|
|
2927
|
+
"idTypeMismatchShowSameId": "Це інший ідентифікатор. Будь ласка, покажіть той самий ідентифікатор, який ви сканували раніше",
|
|
2926
2928
|
"nameVerificationFailedTryAgain": "Не вдалося перевірити ім'я. Спробуйте ще раз",
|
|
2927
2929
|
"photoVerificationFailedTryAgain": "Перевірка фотографії для ідентифікації не вдалася. Спробуйте ще раз"
|
|
2928
2930
|
},
|
|
@@ -1000,6 +1000,7 @@ var ur_default = {
|
|
|
1000
1000
|
"MX": { "taxId": { "label": "آر ایف سی" } },
|
|
1001
1001
|
"postalCode": "پوسٹل کوڈ",
|
|
1002
1002
|
"prefill": {
|
|
1003
|
+
"AT": { "taxId": { "subtitle": "کاروبار کا FN نمبر یا VAT نمبر درج کریں۔" } },
|
|
1003
1004
|
"AU": { "taxId": { "subtitle": "کاروبار کے ACN (9 ہندسوں) یا ABN (11 ہندسے) درج کریں۔" } },
|
|
1004
1005
|
"BE": { "taxId": { "subtitle": "کاروبار کا BCE/KBO نمبر یا VAT نمبر درج کریں۔" } },
|
|
1005
1006
|
"DE": { "taxId": { "subtitle": "HRB/HRA کمرشل رجسٹر نمبر، USt-IdNr (VAT)، یا کاروبار کا محفوظ نمبر درج کریں" } },
|
|
@@ -1496,6 +1497,7 @@ var ur_default = {
|
|
|
1496
1497
|
"subtitle": "یقینی بنائیں کہ آپ کا پاسپورٹ پڑھنے کے قابل ہے۔",
|
|
1497
1498
|
"title": "اپنا پاسپورٹ اسکین کریں۔"
|
|
1498
1499
|
},
|
|
1500
|
+
"permissionInCamera": { "subtitle": "کیمرے تک رسائی کو جاری رکھنے کی اجازت دیں۔" },
|
|
1499
1501
|
"processing": {
|
|
1500
1502
|
"analyzing": "تجزیہ کر رہا ہے...",
|
|
1501
1503
|
"attemptRemainingLabel": "باقی کوشش",
|
|
@@ -1000,6 +1000,7 @@ var uz_default = {
|
|
|
1000
1000
|
"MX": { "taxId": { "label": "QRM" } },
|
|
1001
1001
|
"postalCode": "Pochta kodi",
|
|
1002
1002
|
"prefill": {
|
|
1003
|
+
"AT": { "taxId": { "subtitle": "Biznesning FN raqamini yoki QQS raqamini kiriting" } },
|
|
1003
1004
|
"AU": { "taxId": { "subtitle": "Biznesning ACN (9 xonali) yoki ABN (11 xonali) raqamini kiriting" } },
|
|
1004
1005
|
"BE": { "taxId": { "subtitle": "Biznesning BCE/KBO raqamini yoki QQS raqamini kiriting" } },
|
|
1005
1006
|
"DE": { "taxId": { "subtitle": "Biznesning HRB/HRA tijorat registri raqamini, USt-IdNr (QQS) yoki SafeNo raqamini kiriting" } },
|
|
@@ -1496,6 +1497,7 @@ var uz_default = {
|
|
|
1496
1497
|
"subtitle": "Pasportingiz o'qilishi mumkinligiga ishonch hosil qiling",
|
|
1497
1498
|
"title": "Pasportingizni skanerlang"
|
|
1498
1499
|
},
|
|
1500
|
+
"permissionInCamera": { "subtitle": "Davom etish uchun kameraga kirishga ruxsat bering" },
|
|
1499
1501
|
"processing": {
|
|
1500
1502
|
"analyzing": "Tahlil qilinmoqda...",
|
|
1501
1503
|
"attemptRemainingLabel": "qolgan urinish",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { S as k, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { c as Page } from "./incodeComponent-
|
|
4
|
-
import { t as Spacer } from "./spacer-
|
|
5
|
-
import { t as Spinner } from "./spinner-
|
|
6
|
-
import { b as ErrorIcon, n as WarningIcon, r as SuccessIcon, x as Button } from "./icons-
|
|
7
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
3
|
+
import { c as Page } 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 { b as ErrorIcon, n as WarningIcon, r as SuccessIcon, x as Button } from "./icons-DNXYxUPA.js";
|
|
7
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CVjuQOGZ.js";
|
|
8
8
|
//#region src/shared/verificationResult/verificationResult.tsx
|
|
9
9
|
var SUBTITLE_ID = "IncodeVerificationResultSubtitle";
|
|
10
10
|
var VerificationResult = ({ status, submittingTitle, successTitle, failureTitle, warningTitle, submittingSubtitle, errorMessage, successSubtitle, onRetry, onSkip, onContinue, retryLabel, skipLabel, continueLabel, hideFooterBranding = true, footerBrandingSlot }) => {
|
|
@@ -999,6 +999,7 @@ var vi_default = {
|
|
|
999
999
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1000
1000
|
"postalCode": "Mã bưu điện",
|
|
1001
1001
|
"prefill": {
|
|
1002
|
+
"AT": { "taxId": { "subtitle": "Nhập số FN hoặc số VAT của doanh nghiệp." } },
|
|
1002
1003
|
"AU": { "taxId": { "subtitle": "Nhập mã số ACN (9 chữ số) hoặc ABN (11 chữ số) của doanh nghiệp." } },
|
|
1003
1004
|
"BE": { "taxId": { "subtitle": "Nhập số BCE/KBO hoặc số VAT của doanh nghiệp." } },
|
|
1004
1005
|
"DE": { "taxId": { "subtitle": "Nhập số đăng ký kinh doanh HRB/HRA, mã số thuế GTGT (USt-IdNr) hoặc SafeNo của doanh nghiệp." } },
|
|
@@ -1494,6 +1495,7 @@ var vi_default = {
|
|
|
1494
1495
|
"subtitle": "Đảm bảo Hộ chiếu của bạn có thể đọc được",
|
|
1495
1496
|
"title": "Quét hộ chiếu của bạn"
|
|
1496
1497
|
},
|
|
1498
|
+
"permissionInCamera": { "subtitle": "Cho phép truy cập camera để tiếp tục" },
|
|
1497
1499
|
"processing": {
|
|
1498
1500
|
"analyzing": "Đang phân tích...",
|
|
1499
1501
|
"attemptRemainingLabel": "số lần thử còn lại",
|
|
@@ -1,14 +1,14 @@
|
|
|
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, f as d, h as q, u as T, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, d as TransitionSpinner, i as withStandaloneModuleBootstrap, m as useTimeoutHandle, s as TerminalErrorPage, t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { d as cn, n as LoadingIcon } from "../spacer-
|
|
5
|
-
import { t as Title } from "../typography-
|
|
6
|
-
import { r as SuccessIcon, x as Button } from "../icons-
|
|
7
|
-
import { t as CameraView } from "../cameraView-
|
|
8
|
-
import { t as Permissions } from "../permissions-
|
|
9
|
-
import { r as preloadCaptureAnimations } from "../manualCaptureButton-
|
|
10
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
11
|
-
import { a as IdFlipModal, c as VideoSelfieTutorial, i as IdMask, l as useVideoSelfiePermissions, n as SwitchingCameraScreen, o as preloadIdFlipAnimation, r as StepsHeader, s as SelfieMask, t as VideoSelfieFinalSuccessScreen } from "../finalSuccessScreen-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, d as TransitionSpinner, i as withStandaloneModuleBootstrap, m as useTimeoutHandle, s as TerminalErrorPage, t as IncodeComponent } from "../incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { d as cn, n as LoadingIcon } from "../spacer-DZ-t7RMQ.js";
|
|
5
|
+
import { t as Title } from "../typography-CYO7ELEl.js";
|
|
6
|
+
import { r as SuccessIcon, x as Button } from "../icons-DNXYxUPA.js";
|
|
7
|
+
import { t as CameraView } from "../cameraView-BNqv7JUh.js";
|
|
8
|
+
import { t as Permissions } from "../permissions-B0ctl0V9.js";
|
|
9
|
+
import { r as preloadCaptureAnimations } from "../manualCaptureButton-CqwPCE8h.js";
|
|
10
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Do8qpZk7.js";
|
|
11
|
+
import { a as IdFlipModal, c as VideoSelfieTutorial, i as IdMask, l as useVideoSelfiePermissions, n as SwitchingCameraScreen, o as preloadIdFlipAnimation, r as StepsHeader, s as SelfieMask, t as VideoSelfieFinalSuccessScreen } from "../finalSuccessScreen-7OX0TdIz.js";
|
|
12
12
|
import { eventModuleNames, eventScreenNames, screenEvent, videoSelfieEvents } from "@incodetech/core/events";
|
|
13
13
|
import { VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE, createConsentRecorder, createVideoSelfieCameraWarmer, createVideoSelfieRecordingManager, facingModeForStep, getVideoSelfieQuestions, getVoiceConsentPhrase, resolveVideoSelfieSteps } from "@incodetech/core/video-selfie";
|
|
14
14
|
//#region src/modules/video-selfie/poaMask.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as useTranslation } from "../uiConfig-
|
|
1
|
+
import { o as useTranslation } from "../uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { _ as y, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { S as useManager, b as useModuleTerminalCallbacks, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { n as LoadingIcon } from "../spacer-
|
|
5
|
-
import { r as SuccessIcon } from "../icons-
|
|
6
|
-
import { t as StatusPage } from "../statusPage-
|
|
7
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "../incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { n as LoadingIcon } from "../spacer-DZ-t7RMQ.js";
|
|
5
|
+
import { r as SuccessIcon } from "../icons-DNXYxUPA.js";
|
|
6
|
+
import { t as StatusPage } from "../statusPage-DeP-KBHD.js";
|
|
7
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Do8qpZk7.js";
|
|
8
8
|
import { createWatchlistManager } from "@incodetech/core/watchlist";
|
|
9
9
|
//#region src/modules/watchlist/watchlist.tsx
|
|
10
10
|
var WatchlistContent = ({ manager: externalManager, onFinish }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { _ as y, 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 { n as LoadingIcon } from "./spacer-
|
|
5
|
-
import { r as SuccessIcon, x as Button } from "./icons-
|
|
6
|
-
import { t as StatusPage } from "./statusPage-
|
|
7
|
-
import { t as InputComposed } from "./inputComposed-
|
|
8
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
9
|
-
import { t as CountrySelector } from "./countrySelector-
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { n as LoadingIcon } from "./spacer-DZ-t7RMQ.js";
|
|
5
|
+
import { r as SuccessIcon, x as Button } from "./icons-DNXYxUPA.js";
|
|
6
|
+
import { t as StatusPage } from "./statusPage-DeP-KBHD.js";
|
|
7
|
+
import { t as InputComposed } from "./inputComposed-9aPipTS_.js";
|
|
8
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
9
|
+
import { t as CountrySelector } from "./countrySelector-Zbe2eGzy.js";
|
|
10
10
|
import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
|
|
11
11
|
//#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
|
|
12
12
|
var WatchlistForBusinessContent = ({ manager: externalManager, onFinish }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as useTranslation, t as setThemeUiConfig, u as readStoredLanguage } from "../uiConfig-
|
|
1
|
+
import { o as useTranslation, t as setThemeUiConfig, u as readStoredLanguage } from "../uiConfig-BcjOx3PY.js";
|
|
2
2
|
import { _ as y, a as P, c as A, f as d, s as z, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { i as fetchAndApplyTheme } from "../dashboardTheme-
|
|
4
|
-
import { S as useManager, a as ResolvedConfigProvider, c as Page, d as TransitionSpinner, s as TerminalErrorPage, t as IncodeComponent } from "../incodeComponent-
|
|
5
|
-
import { t as AutoFocusTitle } from "../autoFocusTitle-
|
|
6
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
7
|
-
import { a as LAZY_UI_MODULES, d as setupSDK, m as resolveSessionLanguage, n as extractIncodeStatus, p as isDesktopOrEmulated, r as UnsupportedModule, t as resolveApiKey } from "../resolveApiKey-
|
|
3
|
+
import { i as fetchAndApplyTheme } from "../dashboardTheme-B_YjGFDU.js";
|
|
4
|
+
import { S as useManager, a as ResolvedConfigProvider, c as Page, d as TransitionSpinner, s as TerminalErrorPage, t as IncodeComponent } from "../incodeComponent-DeVV0gEn.js";
|
|
5
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-CVjuQOGZ.js";
|
|
6
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Do8qpZk7.js";
|
|
7
|
+
import { a as LAZY_UI_MODULES, d as setupSDK, m as resolveSessionLanguage, n as extractIncodeStatus, p as isDesktopOrEmulated, r as UnsupportedModule, t as resolveApiKey } from "../resolveApiKey-DU0APKTv.js";
|
|
8
8
|
import { a as HEADLESS_WORKFLOW_MODULE_KEYS, n as useModuleLoader } from "../useModuleLoader-DpcbSKBH.js";
|
|
9
9
|
import { resolveWasmConfigForPipelines, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
10
10
|
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
@@ -264,7 +264,7 @@ function useWorkflowInitialization(options) {
|
|
|
264
264
|
}
|
|
265
265
|
//#endregion
|
|
266
266
|
//#region src/modules/workflow/workflow.tsx
|
|
267
|
-
var LazyHomeScreen = z(() => import("../homeScreen-
|
|
267
|
+
var LazyHomeScreen = z(() => import("../homeScreen-CqLbJbhW.js").then((module) => ({ default: module.HomeScreen })));
|
|
268
268
|
function mapModuleConfig(options) {
|
|
269
269
|
const { moduleKey, config, workflowId, authHint, loginHintPrefill, lang, mergeSessionRecordings, ageAssurance } = options;
|
|
270
270
|
switch (moduleKey) {
|
|
@@ -999,6 +999,7 @@ var zh_default = {
|
|
|
999
999
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1000
1000
|
"postalCode": "邮政编号",
|
|
1001
1001
|
"prefill": {
|
|
1002
|
+
"AT": { "taxId": { "subtitle": "请输入该企业的FN编号或增值税号" } },
|
|
1002
1003
|
"AU": { "taxId": { "subtitle": "请输入企业的ACN(9位)或ABN(11位)" } },
|
|
1003
1004
|
"BE": { "taxId": { "subtitle": "请输入该企业的BCE/KBO编号或增值税号" } },
|
|
1004
1005
|
"DE": { "taxId": { "subtitle": "请输入该企业的HRB/HRA商业登记号、USt-IdNr(增值税号)或SafeNo" } },
|
|
@@ -1494,6 +1495,7 @@ var zh_default = {
|
|
|
1494
1495
|
"subtitle": "确保您的护照可读",
|
|
1495
1496
|
"title": "扫描您的护照"
|
|
1496
1497
|
},
|
|
1498
|
+
"permissionInCamera": { "subtitle": "允许相机继续访问" },
|
|
1497
1499
|
"processing": {
|
|
1498
1500
|
"analyzing": "分析...",
|
|
1499
1501
|
"attemptRemainingLabel": "未遂",
|
|
@@ -1850,7 +1852,7 @@ var zh_default = {
|
|
|
1850
1852
|
"title": "这在您的默认浏览器上效果最好"
|
|
1851
1853
|
},
|
|
1852
1854
|
"ineCheck": {
|
|
1853
|
-
"checkingYourInformation": "
|
|
1855
|
+
"checkingYourInformation": "通过政府记录核对您的信息",
|
|
1854
1856
|
"failure1": "身份不",
|
|
1855
1857
|
"failure2": "已验证",
|
|
1856
1858
|
"identity": "身份",
|
|
@@ -999,6 +999,7 @@ var zh_CN_default = {
|
|
|
999
999
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1000
1000
|
"postalCode": "邮政编码",
|
|
1001
1001
|
"prefill": {
|
|
1002
|
+
"AT": { "taxId": { "subtitle": "请输入该企业的FN编号或增值税号" } },
|
|
1002
1003
|
"AU": { "taxId": { "subtitle": "请输入企业的ACN(9位)或ABN(11位)" } },
|
|
1003
1004
|
"BE": { "taxId": { "subtitle": "请输入该企业的BCE/KBO编号或增值税号" } },
|
|
1004
1005
|
"DE": { "taxId": { "subtitle": "请输入该企业的HRB/HRA商业登记号、USt-IdNr(增值税号)或SafeNo" } },
|
|
@@ -1494,6 +1495,7 @@ var zh_CN_default = {
|
|
|
1494
1495
|
"subtitle": "确保您的护照可读",
|
|
1495
1496
|
"title": "扫描您的护照"
|
|
1496
1497
|
},
|
|
1498
|
+
"permissionInCamera": { "subtitle": "允许相机继续访问" },
|
|
1497
1499
|
"processing": {
|
|
1498
1500
|
"analyzing": "分析...",
|
|
1499
1501
|
"attemptRemainingLabel": "未遂",
|
|
@@ -1850,7 +1852,7 @@ var zh_CN_default = {
|
|
|
1850
1852
|
"title": "在默认浏览器上运行效果最佳"
|
|
1851
1853
|
},
|
|
1852
1854
|
"ineCheck": {
|
|
1853
|
-
"checkingYourInformation": "
|
|
1855
|
+
"checkingYourInformation": "通过政府记录核对您的信息",
|
|
1854
1856
|
"failure1": "身份不是",
|
|
1855
1857
|
"failure2": "属实",
|
|
1856
1858
|
"identity": "身份",
|
|
@@ -2110,7 +2112,7 @@ var zh_CN_default = {
|
|
|
2110
2112
|
"noFace": "未检测到人脸",
|
|
2111
2113
|
"noMatch": "不匹配,重试",
|
|
2112
2114
|
"nonexistentCustomer": "我们找不到您的记录",
|
|
2113
|
-
"nonexistentCustomerDescription": "
|
|
2115
|
+
"nonexistentCustomerDescription": "请重新开始验证,如果该问题持续发生,请联系客服",
|
|
2114
2116
|
"noTries": "达到最大尝试次数",
|
|
2115
2117
|
"onBlur": "保持手机稳定,捕捉清晰图像",
|
|
2116
2118
|
"onDark": "请移至更明亮的地方或打开更多灯光",
|
|
@@ -999,6 +999,7 @@ var zh_HANT_default = {
|
|
|
999
999
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1000
1000
|
"postalCode": "郵遞區號",
|
|
1001
1001
|
"prefill": {
|
|
1002
|
+
"AT": { "taxId": { "subtitle": "請輸入該企業的 FN 編號或增值稅號" } },
|
|
1002
1003
|
"AU": { "taxId": { "subtitle": "請輸入該企業的 ACN(9 位數)或 ABN(11 位數)" } },
|
|
1003
1004
|
"BE": { "taxId": { "subtitle": "請輸入該企業的 BCE/KBO 編號或增值稅號" } },
|
|
1004
1005
|
"DE": { "taxId": { "subtitle": "請輸入該企業的 HRB/HRA 商業登記號碼、USt-IdNr(增值稅號)或 SafeNo" } },
|
|
@@ -1494,6 +1495,7 @@ var zh_HANT_default = {
|
|
|
1494
1495
|
"subtitle": "確保您的護照可讀",
|
|
1495
1496
|
"title": "掃描您的護照"
|
|
1496
1497
|
},
|
|
1498
|
+
"permissionInCamera": { "subtitle": "允許相機繼續存取" },
|
|
1497
1499
|
"processing": {
|
|
1498
1500
|
"analyzing": "分析...",
|
|
1499
1501
|
"attemptRemainingLabel": "嘗試",
|
|
@@ -1850,7 +1852,7 @@ var zh_HANT_default = {
|
|
|
1850
1852
|
"title": "在預設瀏覽器上使用效果最佳"
|
|
1851
1853
|
},
|
|
1852
1854
|
"ineCheck": {
|
|
1853
|
-
"checkingYourInformation": "
|
|
1855
|
+
"checkingYourInformation": "透過政府紀錄核對您的資料",
|
|
1854
1856
|
"failure1": "身份不是",
|
|
1855
1857
|
"failure2": "經核實",
|
|
1856
1858
|
"identity": "身份",
|
|
@@ -999,6 +999,7 @@ var zh_TW_default = {
|
|
|
999
999
|
"MX": { "taxId": { "label": "RFC" } },
|
|
1000
1000
|
"postalCode": "郵遞區號",
|
|
1001
1001
|
"prefill": {
|
|
1002
|
+
"AT": { "taxId": { "subtitle": "請輸入該企業的 FN 編號或增值稅號" } },
|
|
1002
1003
|
"AU": { "taxId": { "subtitle": "請輸入該企業的 ACN(9 位數字)或 ABN(11 位數字)" } },
|
|
1003
1004
|
"BE": { "taxId": { "subtitle": "請輸入該企業的 BCE/KBO 編號或增值稅號" } },
|
|
1004
1005
|
"DE": { "taxId": { "subtitle": "請輸入該企業的 HRB/HRA 商業登記號碼、USt-IdNr(增值稅號)或 SafeNo" } },
|
|
@@ -1494,6 +1495,7 @@ var zh_TW_default = {
|
|
|
1494
1495
|
"subtitle": "確保您的護照可讀",
|
|
1495
1496
|
"title": "掃描您的護照"
|
|
1496
1497
|
},
|
|
1498
|
+
"permissionInCamera": { "subtitle": "允許相機繼續存取" },
|
|
1497
1499
|
"processing": {
|
|
1498
1500
|
"analyzing": "分析中...",
|
|
1499
1501
|
"attemptRemainingLabel": "嘗試",
|
|
@@ -1850,7 +1852,7 @@ var zh_TW_default = {
|
|
|
1850
1852
|
"title": "這在您的預設瀏覽器上效果最佳"
|
|
1851
1853
|
},
|
|
1852
1854
|
"ineCheck": {
|
|
1853
|
-
"checkingYourInformation": "
|
|
1855
|
+
"checkingYourInformation": "透過政府紀錄核對您的資料",
|
|
1854
1856
|
"failure1": "身份不",
|
|
1855
1857
|
"failure2": "已驗證",
|
|
1856
1858
|
"identity": "身分",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "2.3.0-rc.
|
|
3
|
+
"version": "2.3.0-rc.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
],
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"preact": "^10.27.2",
|
|
290
|
-
"@incodetech/core": "2.3.0-rc.
|
|
290
|
+
"@incodetech/core": "2.3.0-rc.1"
|
|
291
291
|
},
|
|
292
292
|
"devDependencies": {
|
|
293
293
|
"@fontsource/dm-sans": "^5.2.8",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./dateInputComposed-BcmKKwRL.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./dropdownComposed-DYdI3B4r.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./inputComposed-CTZnsHLi.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./radioGroupComposed-DmoMukus.js";
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { _ as y, h as q } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
-
//#region src/hooks/useCoverMedia.ts
|
|
3
|
-
var CONVERGENCE_TIMEOUT_MS = 1e4;
|
|
4
|
-
var CONVERGENCE_INTERVAL_MS = 100;
|
|
5
|
-
var PENDING_CLASS = "IncodeMediaCoverPending";
|
|
6
|
-
/**
|
|
7
|
-
* Returns the explicit box that produces `object-fit: cover` geometry.
|
|
8
|
-
* Kept pure so the visual calculation is independently testable.
|
|
9
|
-
*/
|
|
10
|
-
function calculateCoverMediaGeometry(sourceWidth, sourceHeight, containerWidth, containerHeight) {
|
|
11
|
-
if (!Number.isFinite(sourceWidth) || !Number.isFinite(sourceHeight) || !Number.isFinite(containerWidth) || !Number.isFinite(containerHeight) || sourceWidth <= 0 || sourceHeight <= 0 || containerWidth <= 0 || containerHeight <= 0) return;
|
|
12
|
-
const scale = Math.max(containerWidth / sourceWidth, containerHeight / sourceHeight);
|
|
13
|
-
const width = sourceWidth * scale;
|
|
14
|
-
const height = sourceHeight * scale;
|
|
15
|
-
return {
|
|
16
|
-
width: `${width.toFixed(2)}px`,
|
|
17
|
-
height: `${height.toFixed(2)}px`,
|
|
18
|
-
left: `${((containerWidth - width) / 2).toFixed(2)}px`,
|
|
19
|
-
top: `${((containerHeight - height) / 2).toFixed(2)}px`
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Safari reports `object-fit` support even when its MediaStream paint is
|
|
24
|
-
* incorrect, so CSS.supports cannot detect this bug. Keep the workaround
|
|
25
|
-
* narrowly scoped to the affected iOS/iPadOS 27 WebKit builds instead.
|
|
26
|
-
*/
|
|
27
|
-
function needsExplicitMediaCover(userAgent, platform, maxTouchPoints) {
|
|
28
|
-
const iosDevice = /\b(?:iPhone|iPad|iPod)\b/.test(userAgent);
|
|
29
|
-
const iosVersion = userAgent.match(/CPU (?:iPhone )?OS (\d+)[_.]/)?.[1];
|
|
30
|
-
if (iosDevice && iosVersion === "27") return true;
|
|
31
|
-
const desktopModeIPad = platform === "MacIntel" && maxTouchPoints > 1;
|
|
32
|
-
const safariVersion = userAgent.match(/Version\/(\d+)[._]/)?.[1];
|
|
33
|
-
return desktopModeIPad && safariVersion === "27";
|
|
34
|
-
}
|
|
35
|
-
function isExplicitMediaCoverNeeded() {
|
|
36
|
-
if (typeof navigator === "undefined") return false;
|
|
37
|
-
return needsExplicitMediaCover(navigator.userAgent, navigator.platform, navigator.maxTouchPoints);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Applies explicit `cover` geometry only to iOS/iPadOS 27 MediaStream media.
|
|
41
|
-
* Compliant browsers retain native `object-fit: cover`, with no observers,
|
|
42
|
-
* event listeners, polling, or inline geometry.
|
|
43
|
-
*
|
|
44
|
-
* `reattachKey` restarts the workaround when the media source changes. Pass a
|
|
45
|
-
* MediaStream for video and the canvas instance for imperative avatar canvases.
|
|
46
|
-
*/
|
|
47
|
-
function useCoverMedia(mediaRef, reattachKey) {
|
|
48
|
-
const explicitCoverNeeded = isExplicitMediaCoverNeeded();
|
|
49
|
-
const applyCover = q(() => {
|
|
50
|
-
const media = mediaRef.current;
|
|
51
|
-
const container = media?.parentElement;
|
|
52
|
-
if (!media || !container) return false;
|
|
53
|
-
const sourceWidth = media instanceof HTMLVideoElement ? media.videoWidth : media.width;
|
|
54
|
-
const sourceHeight = media instanceof HTMLVideoElement ? media.videoHeight : media.height;
|
|
55
|
-
const { width: containerWidth, height: containerHeight } = container.getBoundingClientRect();
|
|
56
|
-
const geometry = calculateCoverMediaGeometry(sourceWidth, sourceHeight, containerWidth, containerHeight);
|
|
57
|
-
if (!geometry) return false;
|
|
58
|
-
if (media.style.width === geometry.width && media.style.height === geometry.height && media.style.left === geometry.left && media.style.top === geometry.top) return true;
|
|
59
|
-
media.style.maxWidth = "none";
|
|
60
|
-
media.style.maxHeight = "none";
|
|
61
|
-
media.style.right = "auto";
|
|
62
|
-
media.style.bottom = "auto";
|
|
63
|
-
media.style.width = geometry.width;
|
|
64
|
-
media.style.height = geometry.height;
|
|
65
|
-
media.style.left = geometry.left;
|
|
66
|
-
media.style.top = geometry.top;
|
|
67
|
-
return true;
|
|
68
|
-
}, [mediaRef]);
|
|
69
|
-
y(() => {
|
|
70
|
-
if (!explicitCoverNeeded) return;
|
|
71
|
-
const media = mediaRef.current;
|
|
72
|
-
if (!media) return;
|
|
73
|
-
const cleanups = [];
|
|
74
|
-
media.classList.add(PENDING_CLASS);
|
|
75
|
-
cleanups.push(() => media.classList.remove(PENDING_CLASS));
|
|
76
|
-
const reveal = () => media.classList.remove(PENDING_CLASS);
|
|
77
|
-
let pollId;
|
|
78
|
-
let timeoutId;
|
|
79
|
-
const stopPolling = () => {
|
|
80
|
-
if (pollId !== void 0) {
|
|
81
|
-
clearInterval(pollId);
|
|
82
|
-
pollId = void 0;
|
|
83
|
-
}
|
|
84
|
-
if (timeoutId !== void 0) {
|
|
85
|
-
clearTimeout(timeoutId);
|
|
86
|
-
timeoutId = void 0;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
cleanups.push(stopPolling);
|
|
90
|
-
const tryApply = () => {
|
|
91
|
-
const applied = applyCover();
|
|
92
|
-
if (applied) {
|
|
93
|
-
reveal();
|
|
94
|
-
stopPolling();
|
|
95
|
-
}
|
|
96
|
-
return applied;
|
|
97
|
-
};
|
|
98
|
-
let frame1 = 0;
|
|
99
|
-
let frame2 = 0;
|
|
100
|
-
const applyCoverSettled = () => {
|
|
101
|
-
tryApply();
|
|
102
|
-
cancelAnimationFrame(frame1);
|
|
103
|
-
cancelAnimationFrame(frame2);
|
|
104
|
-
frame1 = requestAnimationFrame(() => {
|
|
105
|
-
tryApply();
|
|
106
|
-
frame2 = requestAnimationFrame(tryApply);
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
if (media instanceof HTMLVideoElement) for (const event of ["loadedmetadata", "resize"]) {
|
|
110
|
-
media.addEventListener(event, applyCoverSettled);
|
|
111
|
-
cleanups.push(() => media.removeEventListener(event, applyCoverSettled));
|
|
112
|
-
}
|
|
113
|
-
if (typeof ResizeObserver !== "undefined") {
|
|
114
|
-
const observer = new ResizeObserver(() => tryApply());
|
|
115
|
-
const container = media.parentElement;
|
|
116
|
-
if (container) observer.observe(container);
|
|
117
|
-
observer.observe(media);
|
|
118
|
-
cleanups.push(() => observer.disconnect());
|
|
119
|
-
}
|
|
120
|
-
window.addEventListener("resize", applyCoverSettled);
|
|
121
|
-
window.addEventListener("orientationchange", applyCoverSettled);
|
|
122
|
-
cleanups.push(() => {
|
|
123
|
-
window.removeEventListener("resize", applyCoverSettled);
|
|
124
|
-
window.removeEventListener("orientationchange", applyCoverSettled);
|
|
125
|
-
});
|
|
126
|
-
const startPolling = () => {
|
|
127
|
-
pollId = setInterval(tryApply, CONVERGENCE_INTERVAL_MS);
|
|
128
|
-
timeoutId = setTimeout(() => {
|
|
129
|
-
stopPolling();
|
|
130
|
-
reveal();
|
|
131
|
-
}, CONVERGENCE_TIMEOUT_MS);
|
|
132
|
-
};
|
|
133
|
-
if (!tryApply()) startPolling();
|
|
134
|
-
applyCoverSettled();
|
|
135
|
-
return () => {
|
|
136
|
-
cancelAnimationFrame(frame1);
|
|
137
|
-
cancelAnimationFrame(frame2);
|
|
138
|
-
for (const cleanup of cleanups) cleanup();
|
|
139
|
-
};
|
|
140
|
-
}, [
|
|
141
|
-
applyCover,
|
|
142
|
-
explicitCoverNeeded,
|
|
143
|
-
mediaRef,
|
|
144
|
-
reattachKey
|
|
145
|
-
]);
|
|
146
|
-
return applyCover;
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
export { useCoverMedia as t };
|
|
File without changes
|