@incodetech/web 2.4.1-agentic → 2.4.1-agentic.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +1 -4
- package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-BWKMRc6V.js → af-ZA-BKpmmWDe.js} +75 -865
- package/dist/{ageVerification-CMIp0I--.js → ageVerification-CtuJDuRV.js} +11 -8
- package/dist/{am-DPyjIvQV.js → am-CW_ro5Ws.js} +75 -865
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-C6-Ak0q6.js} +5 -4
- package/dist/{ar-AE-CxCvbyoW.js → ar-AE-D9h8UMbm.js} +75 -865
- package/dist/{ar-10SoqF1i.js → ar-B5ToweVl.js} +75 -865
- package/dist/{ar-EG-B1hHB55j.js → ar-EG-DQqE9B26.js} +75 -865
- package/dist/assertClassBrand-DJr5K93j.js +17 -0
- package/dist/asset-Ctwd_20H.js +355 -0
- package/dist/authentication/authentication.es.js +7 -5
- package/dist/{autoFocusTitle-BxsSeMSB.js → autoFocusTitle-CzaCWWW5.js} +2 -2
- package/dist/{az-cmuBNn_5.js → az-DAZq-CQj.js} +75 -865
- package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
- package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DkYLOege.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-CF6WiVYt.js} +10 -7
- package/dist/{bn-CuGYlngZ.js → bn-DRTyq2Y9.js} +75 -865
- package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-DylE2INk.js} +3 -3
- package/dist/{bs-vwpJzaHm.js → bs-B8q0B86-.js} +75 -865
- package/dist/{ca-DXZs5vtr.js → ca-DvsHXRB-.js} +75 -865
- package/dist/cameraOverlay-DNf0PEF4.js +2 -0
- package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
- package/dist/{cameraView-DVzaEGW8.js → cameraView-D9ZxLKtA.js} +3 -3
- package/dist/capture-0jMDSGCE.js +762 -0
- package/dist/{tutorial-BKPHj5To.js → capture-BlGlXoTx.js} +13 -36
- package/dist/capture-DKBA5j5A.js +3 -0
- package/dist/capture-D_Dwrj1F.js +2 -0
- package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
- package/dist/captureFocusContext-9789qOe3.js +729 -0
- package/dist/captureFooter-B6WUFQCV.js +47 -0
- package/dist/{ceb-CmhS_VOs.js → ceb-pvlomXHV.js} +75 -865
- package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
- package/dist/{check-icon-BWTjhSuA.js → check-icon-BdHltEK6.js} +1 -1
- package/dist/{checkbox-BC26Qbxh.js → checkbox-BwUQ0Rs9.js} +4 -4
- package/dist/chooser-CmG71-lh.js +1589 -0
- package/dist/connectionError-DexRpKWs.js +90 -0
- package/dist/consent/consent.es.js +16 -12
- package/dist/{countryFlag-DXSVHiby.js → countryFlag-CQMfCnE9.js} +1 -1
- package/dist/{countrySelector-0PDDFsZF.js → countrySelector-C0OEKMqL.js} +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-GgvnJLMj.js} +75 -865
- package/dist/{cs-CoJlE7De.js → cs-DB5PLEdt.js} +75 -865
- package/dist/curp-validation/curp-validation.es.js +34 -19
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-COYGTuuK.js → customFields-DQgRumW0.js} +17 -11
- package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-BbC0fA-6.js} +8 -6
- package/dist/{da-DK-C_JAndM-.js → da-DK-ZhpcfE_F.js} +75 -865
- package/dist/{dashboardTheme-COBidrbH.js → dashboardTheme-DtXsx9IK.js} +1 -1
- package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-1IcnucPq.js} +5 -5
- package/dist/dateInputComposed-BFlCk-sg.js +1 -0
- package/dist/{de-11hHLedu.js → de-DEBjzaow.js} +75 -865
- package/dist/{denied-Btt81vUD.js → denied-CwdVWAUw.js} +12 -9
- package/dist/devWarn-CW20j1Qd.js +9 -0
- package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-CMjguFJO.js} +4 -4
- package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-MNty16-5.js} +4 -4
- package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-CUzTaoaI.js} +39 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-uAKPK1U-.js → documentCapture-BUMyJ8vw.js} +94 -32
- package/dist/documentCapture-rECLkwpi.js +2 -0
- package/dist/dropdownComposed-C9sLQE6i.js +1 -0
- package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-x3ewHxbT.js} +4 -4
- package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-B5IEiSyi.js +2 -0
- package/dist/{ekybModule-Bsqag_MS.js → ekybModule-C5hEBLMs.js} +27 -23
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-B7OFnP3H.js +2 -0
- package/dist/{ekycModule-WlhVn8AO.js → ekycModule-TVKk0qdS.js} +26 -20
- package/dist/{el-CRGmVrep.js → el-Dplr_D5N.js} +75 -865
- package/dist/{el-GR-CjtJiRTo.js → el-GR-IZ4reOR7.js} +75 -865
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-BMda_cf3.js} +49 -34
- package/dist/email/email.es.js +15 -11
- package/dist/{emailInput-JmK2JIFS.js → emailInput-BI8gWC0D.js} +4 -4
- package/dist/{en-DG-Cruu6Woh.js → en-DG-C6tsWvHi.js} +75 -865
- package/dist/{en-CSjoG3e4.js → en-Db1L_u7B.js} +75 -865
- package/dist/{errorContent-zY4jb6uY.js → errorContent-pPAgyy2i.js} +10 -7
- package/dist/es-419-DxKrJq7W.js +5 -0
- package/dist/{es-C_LAY-Yu.js → es-C5unKsaF.js} +75 -865
- package/dist/{es-ES-D7O0P5Mg.js → es-ES-sHbsufzT.js} +75 -865
- package/dist/{es-MX-DVzFaANh.js → es-MX-Cd_DCR0A.js} +75 -865
- package/dist/{et-DdSwjU5d.js → et-BoGq2cx8.js} +76 -866
- package/dist/{expiredId-DpbWqSzB.js → expiredId-DWjw94rT.js} +12 -8
- package/dist/extensibility.es.js +85 -41
- package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DuUxGXrf.js} +75 -865
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-B2aMz3X2.js +2 -0
- package/dist/{faceMatch-B0IzR9_u.js → faceMatch-DV7NxYu_.js} +15 -10
- package/dist/{fi-FI-CYlEPu44.js → fi-FI-DMOBNTjA.js} +75 -865
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-BY2XXsp3.js +2 -0
- package/dist/{fieldComparison-OwGIeOM5.js → fieldComparison-CFLU1h6n.js} +15 -11
- package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
- package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-C50L96j9.js} +20 -16
- package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
- package/dist/flipAnimation-8x-qdtF_.js +33 -0
- package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
- package/dist/flow/flow.es.js +183 -167
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/{formField-C3MNhFKI.js → formField-CfQKYeGF.js} +3 -3
- package/dist/{fr-CA-DD_s9NuV.js → fr-CA-DZ8jlsp3.js} +75 -865
- package/dist/{fr-C4cP8ZNE.js → fr-DSR-AP0e.js} +75 -865
- package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-DOphQZg2.js} +1 -1
- package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-S6PcS9_m.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -10
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-D3fvMZAl.js → he-N5dfJeyd.js} +75 -865
- package/dist/{hi-DLf6_opn.js → hi-JR6K9zbd.js} +75 -865
- package/dist/{hmn-DzoODzbN.js → hmn-j2YA7FxW.js} +75 -865
- package/dist/{homeScreen-D1Xd93In.js → homeScreen-C3pPw52y.js} +17 -11
- package/dist/{incodeComponent-C1Bz5Qou.js → hooks-BFP0WaJM.js} +14 -308
- package/dist/{hr-C-jP0DrB.js → hr-8cOdwB0t.js} +75 -865
- package/dist/{ht-CVt9koJf.js → ht-DDNL4C__.js} +75 -865
- package/dist/{hu-9fSzIeAd.js → hu-CynQQUFQ.js} +75 -865
- package/dist/i18n-Dp014ljG.js +942 -0
- package/dist/{icons-BdiCuWFP.js → icons-c-hFaG4L.js} +129 -32
- package/dist/id/id.es.js +101 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
- package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
- package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-BJ96se7u.js} +1 -1
- package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
- package/dist/{id-Dgi5uGHK.js → id-o_Yg0n8W.js} +75 -865
- package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +6 -5
- package/dist/idFlipTransition-DXdtXYza.js +158 -0
- package/dist/{idOcr-sknZwQNF.js → idOcr-CjqfkRJ7.js} +18 -14
- package/dist/identity-reuse/identity-reuse.es.js +28 -18
- package/dist/incodeComponent-DtKh-UUm.js +237 -0
- package/dist/{incodeModule-DJToJb00.js → incodeModule-DCHXAeYU.js} +5 -5
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-BuE0iZlw.js → inputComposed-CmVsaHOa.js} +4 -4
- package/dist/inputComposed-DvGrso7g.js +1 -0
- package/dist/{it-CEFstYFG.js → it-BXevrtHn.js} +75 -865
- package/dist/{ja-BNdVd9B6.js → ja-DiTXnTx-.js} +75 -865
- package/dist/{ja-JP-B5TPMV1q.js → ja-JP-D1IRWR-p.js} +75 -865
- package/dist/{jv-CMxkkXUk.js → jv-Us70GzGp.js} +75 -865
- package/dist/{ka-C70bUmEK.js → ka-BSsWQ4yU.js} +75 -865
- package/dist/{kk-C_55EmWt.js → kk-D5R6r4H7.js} +75 -865
- package/dist/{km-D4Ig0NhN.js → km-CCCb2Rnt.js} +79 -869
- package/dist/{ko-KP-BwBB8ahu.js → ko-KP-JF4khv1Y.js} +75 -865
- package/dist/{ko-DfUa3dzQ.js → ko-kQioCg2w.js} +75 -865
- package/dist/{ky-CnJichOm.js → ky-CLOemVjC.js} +75 -865
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
- package/dist/kybChecksModule-r3MIpFhS.js +2 -0
- package/dist/{lo-ww1DXVAP.js → lo-tzHUt1CQ.js} +75 -865
- package/dist/{lt-IJ8qpluI.js → lt-B2ZI-Cgu.js} +76 -866
- package/dist/{lv-DMfsmqyK.js → lv-BJnxtSYw.js} +76 -866
- package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-BiQuEZRu.js} +20 -14
- package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-BRSmPTeR.js} +8 -7
- package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-Dw0MMSkc.js} +17 -13
- package/dist/{mk-ByafmFak.js → mk-Cj7Iw2Q4.js} +75 -865
- package/dist/{mn-DjO9p3xN.js → mn-CA_rNxtz.js} +75 -865
- package/dist/{ms-3Vf1QpHl.js → ms-BydA1Zjz.js} +75 -865
- package/dist/{my-C5hpE5P1.js → my-gFKufKaG.js} +75 -865
- package/dist/{nb-NO-DGCWCOul.js → nb-NO-CDsGQbOZ.js} +75 -865
- package/dist/{ne-CpJxcVhV.js → ne-Cyfi0vFI.js} +75 -865
- package/dist/{nl-R2RykJHB.js → nl-e1gbmAFO.js} +75 -865
- package/dist/{numberedStep-CqgNwc_a.js → numberedStep-CeN77hnQ.js} +1 -1
- package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-BTUieMxH.js} +6 -6
- package/dist/{otpInput-B_iLvmIn.js → otpInput-D3L3QhnR.js} +24 -17
- package/dist/{page-utEpSa9Z.js → page-U6jZ7BBI.js} +69 -23
- package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-Qf6ItVv9.js} +6 -14
- package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
- package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
- package/dist/{passwordInputComposed-NtiseM85.js → passwordInputComposed-CW_1DcB8.js} +5 -5
- package/dist/{pdf-BnPw8ZaT.js → pdf-Bd5QplFS.js} +2 -17
- package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-BrqSEtbr.js} +11 -14
- package/dist/pdfViewer-rDnnHzmw.js +2 -0
- package/dist/{permissions-CCEc9lKM.js → permissions-KUDhffd9.js} +36 -23
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-DlJMTavK.js} +6 -6
- package/dist/{pl-B1LgnPj1.js → pl-BSMcCWS-.js} +75 -865
- package/dist/preloadableLazy-C8_OYaTC.js +37 -0
- package/dist/{processing-Ci_Kl-Rh.js → processing-B5EH7yNg.js} +2 -2
- package/dist/{progressBar-Caj-Vu1e.js → progressBar-CSpS29pV.js} +2 -2
- package/dist/{pt-CPVeH0hD.js → pt-BNFC2quK.js} +75 -865
- package/dist/{pt-BR-DSJDHb-K.js → pt-BR-bH8DC2gH.js} +75 -865
- package/dist/{pt-PT-BWJTVPZY.js → pt-PT-B8PXmgwU.js} +75 -865
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/{radioGroupComposed-CocqpoKe.js → radioGroupComposed-CW8ElYSR.js} +4 -4
- package/dist/radioGroupComposed-flIYNffL.js +1 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +19 -21
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-oiLvm6xq.js} +1 -1
- package/dist/{reload-icon-BR1POqkD.js → reload-icon-FD2e9Wet.js} +1 -1
- package/dist/{resendTimer-ODOCcKyh.js → resendTimer-D1H3gwkI.js} +2 -2
- package/dist/richText-sUdTiRDE.js +1761 -0
- package/dist/{ro-8gGEWeHO.js → ro-DnN8QNYa.js} +75 -865
- package/dist/{ru-C4EVku5S.js → ru-DAwUFXHq.js} +75 -865
- package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-Coxt0VCU.js} +75 -865
- package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-OdNh1mqY.js} +1 -1
- package/dist/selfie/selfie.es.js +30 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-BSTzMa__.js → sk-AB8sSlNw.js} +77 -867
- package/dist/{sl-_HvO-HVX.js → sl-6Dfzfi7s.js} +75 -865
- package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-CBEKgzFv.js} +32 -23
- package/dist/{so-pyCaqonl.js → so-X5BdrDvV.js} +75 -865
- package/dist/spacer-Jaru_3sb.js +82 -0
- package/dist/spinner-51btbot0.js +407 -0
- package/dist/{sr-Bpxtt0kk.js → sr-JHjMcbGs.js} +75 -865
- package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-DgT7eTG2.js} +80 -870
- package/dist/sr-YU-BBhB_G63.js +5 -0
- package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-CvX8mC8T.js} +75 -865
- package/dist/{sw-BseJSmdR.js → sw-CN0TdnY4.js} +75 -865
- package/dist/{th-C2G8Ur12.js → th-BmFntKib.js} +75 -865
- package/dist/{th-TH-D0WNW-3l.js → th-TH-CWr4z3JK.js} +75 -865
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-CwafDrED.js → tl-PH-BRIbtBRN.js} +75 -865
- package/dist/{tl-CBOmxz5r.js → tl-rzkk5P_n.js} +75 -865
- package/dist/{tr-C4iH8UJx.js → tr-DKuVBwqW.js} +76 -866
- package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-Di0XBAix.js} +5 -4
- package/dist/tutorial-C9psDR2i.js +28 -0
- package/dist/types/extensibility.d.ts +6 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/kyb-checks.d.ts +209 -0
- package/dist/{typography-BF9d8wEc.js → typography-CiGhKJGx.js} +2 -2
- package/dist/uiConfig-BJAuZQWc.js +77 -0
- package/dist/{uk-BGYlvKb_.js → uk-CXjqq4lX.js} +75 -865
- package/dist/{uk-UA-CbxzkCL_.js → uk-UA-BIE9WByU.js} +75 -865
- package/dist/{ur-BQgtsAfv.js → ur-vNGesC3r.js} +75 -865
- package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-Bd7AYE9h.js} +1 -1
- package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
- package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-Bu9CvKxW.js} +1 -1
- package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-BBCNkJmc.js} +2 -2
- package/dist/{uz-DqOg1Fdv.js → uz-Gmw1XRgv.js} +75 -865
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
- package/dist/{verificationResult-m99Ragq6.js → verificationResult-Clxdxm_s.js} +18 -10
- package/dist/{vi-COxdKkHn.js → vi-DTxxRUw0.js} +75 -865
- package/dist/video-selfie/video-selfie.es.js +50 -33
- package/dist/watchlist/watchlist.es.js +8 -6
- package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-CpFp2EYX.js} +16 -11
- package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-Bd3mof3s.js} +204 -41
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +19 -15
- package/dist/{zh-CN-DfvYQGdE.js → zh-CN-aB48G_R1.js} +76 -866
- package/dist/{zh-CPQoDPxf.js → zh-DjtyfO4e.js} +75 -865
- package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-8p8SH8C3.js} +75 -865
- package/dist/{zh-TW-DtvvhBYL.js → zh-TW-CCsz9gKq.js} +75 -865
- package/package.json +22 -10
- package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
- package/dist/cameraOverlay-Be1PFI8S.js +0 -2
- package/dist/dateInputComposed-CONPVayx.js +0 -1
- package/dist/devWarn-Cr7MglXv.js +0 -2628
- package/dist/documentCapture-DGCraCO3.js +0 -2
- package/dist/dropdownComposed-DyZXfcTf.js +0 -1
- package/dist/ekybModule-D-czIusz.js +0 -2
- package/dist/ekycModule-CkBRa6h2.js +0 -2
- package/dist/es-419-CTB15v-l.js +0 -3231
- package/dist/esm-BTUEHyry.js +0 -430
- package/dist/faceMatch-CRbIcwK2.js +0 -2
- package/dist/fieldComparison-DKQNK0-r.js +0 -2
- package/dist/flipAnimation-D-5tokFC.js +0 -3275
- package/dist/inputComposed-5mLbxAZJ.js +0 -1
- package/dist/pdfViewer-7FzYV8l3.js +0 -2
- package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
- package/dist/richText-CRWB2afV.js +0 -1549
- package/dist/spacer-CwyNauIk.js +0 -733
- package/dist/spinner-DEZJxLSc.js +0 -88
- package/dist/sr-YU-xCb5qxap.js +0 -3235
- package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
- /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-RBVGM1D_.js} +0 -0
- /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-E9wRIIo9.js} +0 -0
- /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{helpButtonConfig-BFragC_J.js → helpButtonConfig-CjbrBQaV.js} +0 -0
- /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-DywVSPMT.js → lottie_light-B819EhaL.js} +0 -0
- /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-DzBNMoKS.js} +0 -0
- /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Benduf-R.js} +0 -0
- /package/dist/{purify.es-DZazHwBu.js → purify.es-CSPoFViI.js} +0 -0
- /package/dist/{realtimeFeedbackConfig-DeZksjlR.js → realtimeFeedbackConfig-tBX94SOm.js} +0 -0
- /package/dist/{selfieTutorial-CLJAEuXG.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { a as M, b as u } from "./vendor-preact-DHGqBGMH.js";
|
|
2
|
+
//#region src/styles/cn.tsx
|
|
3
|
+
var cn = (...classes) => {
|
|
4
|
+
const result = [];
|
|
5
|
+
for (const cls of classes) {
|
|
6
|
+
if (!cls) continue;
|
|
7
|
+
if (typeof cls === "string") result.push(cls);
|
|
8
|
+
else if (typeof cls === "object") {
|
|
9
|
+
for (const [key, value] of Object.entries(cls)) if (value) result.push(key);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return result.join(" ");
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/shared/spacer/spacer.tsx
|
|
16
|
+
var scaleTokens = new Set([
|
|
17
|
+
0,
|
|
18
|
+
2,
|
|
19
|
+
4,
|
|
20
|
+
8,
|
|
21
|
+
12,
|
|
22
|
+
16,
|
|
23
|
+
20,
|
|
24
|
+
24,
|
|
25
|
+
32,
|
|
26
|
+
40,
|
|
27
|
+
48,
|
|
28
|
+
64,
|
|
29
|
+
80,
|
|
30
|
+
96,
|
|
31
|
+
104,
|
|
32
|
+
120,
|
|
33
|
+
200
|
|
34
|
+
]);
|
|
35
|
+
var scaleToClassName = (size, direction) => {
|
|
36
|
+
if (direction === "horizontal") return {
|
|
37
|
+
0: "IncodeSpacerHorizontal0",
|
|
38
|
+
2: "IncodeSpacerHorizontal2",
|
|
39
|
+
4: "IncodeSpacerHorizontal4",
|
|
40
|
+
8: "IncodeSpacerHorizontal8",
|
|
41
|
+
12: "IncodeSpacerHorizontal12",
|
|
42
|
+
16: "IncodeSpacerHorizontal16",
|
|
43
|
+
20: "IncodeSpacerHorizontal20",
|
|
44
|
+
24: "IncodeSpacerHorizontal24",
|
|
45
|
+
32: "IncodeSpacerHorizontal32",
|
|
46
|
+
40: "IncodeSpacerHorizontal40",
|
|
47
|
+
48: "IncodeSpacerHorizontal48",
|
|
48
|
+
64: "IncodeSpacerHorizontal64",
|
|
49
|
+
80: "IncodeSpacerHorizontal80",
|
|
50
|
+
96: "IncodeSpacerHorizontal96",
|
|
51
|
+
104: "IncodeSpacerHorizontal104",
|
|
52
|
+
120: "IncodeSpacerHorizontal120",
|
|
53
|
+
200: "IncodeSpacerHorizontal200"
|
|
54
|
+
}[size];
|
|
55
|
+
return {
|
|
56
|
+
0: "IncodeSpacerVertical0",
|
|
57
|
+
2: "IncodeSpacerVertical2",
|
|
58
|
+
4: "IncodeSpacerVertical4",
|
|
59
|
+
8: "IncodeSpacerVertical8",
|
|
60
|
+
12: "IncodeSpacerVertical12",
|
|
61
|
+
16: "IncodeSpacerVertical16",
|
|
62
|
+
20: "IncodeSpacerVertical20",
|
|
63
|
+
24: "IncodeSpacerVertical24",
|
|
64
|
+
32: "IncodeSpacerVertical32",
|
|
65
|
+
40: "IncodeSpacerVertical40",
|
|
66
|
+
48: "IncodeSpacerVertical48",
|
|
67
|
+
64: "IncodeSpacerVertical64",
|
|
68
|
+
80: "IncodeSpacerVertical80",
|
|
69
|
+
96: "IncodeSpacerVertical96",
|
|
70
|
+
104: "IncodeSpacerVertical104",
|
|
71
|
+
120: "IncodeSpacerVertical120",
|
|
72
|
+
200: "IncodeSpacerVertical200"
|
|
73
|
+
}[size];
|
|
74
|
+
};
|
|
75
|
+
var Spacer = M(function Spacer({ size, className, direction = "vertical" }) {
|
|
76
|
+
if (size === void 0) return /* @__PURE__ */ u("div", { class: `IncodeSpacerFlex ${className || ""}` });
|
|
77
|
+
if (!(direction === "horizontal" ? "w" : direction === "vertical" ? "h" : void 0)) return /* @__PURE__ */ u("div", { class: `${className || ""}` });
|
|
78
|
+
if (typeof size === "number" && scaleTokens.has(size)) return /* @__PURE__ */ u("div", { class: `${scaleToClassName(size, direction)} ${className || ""}` });
|
|
79
|
+
return /* @__PURE__ */ u("div", { class: `${className || ""}` });
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { cn as n, Spacer as t };
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
2
|
+
import { _ as q, b as u, f as _, l as A, m as d, w as k, y } from "./vendor-preact-DHGqBGMH.js";
|
|
3
|
+
import "./devWarn-CW20j1Qd.js";
|
|
4
|
+
import { n as cn, t as Spacer } from "./spacer-Jaru_3sb.js";
|
|
5
|
+
import { t as Title } from "./typography-CiGhKJGx.js";
|
|
6
|
+
import { a as animationRegistry, i as isActiveOverride, n as useAnimation, r as useAsset, t as Asset } from "./asset-Ctwd_20H.js";
|
|
7
|
+
//#region src/shared/lottie/lottie.tsx
|
|
8
|
+
var lottiePromise = null;
|
|
9
|
+
var lottiePlayer;
|
|
10
|
+
async function loadLottie() {
|
|
11
|
+
if (lottiePromise) return lottiePromise;
|
|
12
|
+
lottiePromise = import("./lottie_light-B819EhaL.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => {
|
|
13
|
+
lottiePlayer = mod.default;
|
|
14
|
+
return lottiePlayer;
|
|
15
|
+
}, (error) => {
|
|
16
|
+
lottiePromise = null;
|
|
17
|
+
throw error;
|
|
18
|
+
});
|
|
19
|
+
return lottiePromise;
|
|
20
|
+
}
|
|
21
|
+
var AUTO_STOP_AFTER_MS = 5e3;
|
|
22
|
+
function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
|
|
23
|
+
const containerRef = A(null);
|
|
24
|
+
const effectiveAutoplay = reverse ? false : autoplay;
|
|
25
|
+
const animationOptionsRef = A({
|
|
26
|
+
container: containerRef.current,
|
|
27
|
+
renderer: "svg",
|
|
28
|
+
loop,
|
|
29
|
+
autoplay: effectiveAutoplay,
|
|
30
|
+
animationData
|
|
31
|
+
});
|
|
32
|
+
y(() => {
|
|
33
|
+
animationOptionsRef.current = {
|
|
34
|
+
container: containerRef.current,
|
|
35
|
+
renderer: "svg",
|
|
36
|
+
loop,
|
|
37
|
+
autoplay: effectiveAutoplay,
|
|
38
|
+
animationData
|
|
39
|
+
};
|
|
40
|
+
}, [
|
|
41
|
+
animationData,
|
|
42
|
+
loop,
|
|
43
|
+
effectiveAutoplay
|
|
44
|
+
]);
|
|
45
|
+
_(() => {
|
|
46
|
+
const container = containerRef.current;
|
|
47
|
+
if (!container) return;
|
|
48
|
+
let anim;
|
|
49
|
+
let stopTimer;
|
|
50
|
+
let isMounted = true;
|
|
51
|
+
const start = (lottie) => {
|
|
52
|
+
if (!isMounted) return;
|
|
53
|
+
container.replaceChildren();
|
|
54
|
+
anim = lottie.loadAnimation({
|
|
55
|
+
...animationOptionsRef.current,
|
|
56
|
+
container
|
|
57
|
+
});
|
|
58
|
+
if (reverse) {
|
|
59
|
+
anim.setDirection(-1);
|
|
60
|
+
anim.goToAndPlay(anim.totalFrames - 1, true);
|
|
61
|
+
}
|
|
62
|
+
if (onComplete) anim.addEventListener("complete", onComplete);
|
|
63
|
+
if (autoStop) stopTimer = window.setTimeout(() => {
|
|
64
|
+
const current = anim;
|
|
65
|
+
if (!current) return;
|
|
66
|
+
if (!stopFramePosition) {
|
|
67
|
+
current.pause();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const totalFrames = current.totalFrames;
|
|
71
|
+
if (!totalFrames || totalFrames <= 0) {
|
|
72
|
+
current.stop();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
|
|
76
|
+
current.goToAndStop(targetFrame, true);
|
|
77
|
+
}, AUTO_STOP_AFTER_MS);
|
|
78
|
+
};
|
|
79
|
+
if (lottiePlayer) start(lottiePlayer);
|
|
80
|
+
else loadLottie().then(start, () => void 0);
|
|
81
|
+
return () => {
|
|
82
|
+
isMounted = false;
|
|
83
|
+
if (stopTimer !== void 0) window.clearTimeout(stopTimer);
|
|
84
|
+
if (anim) {
|
|
85
|
+
if (onComplete) anim.removeEventListener("complete", onComplete);
|
|
86
|
+
const frame = container.firstElementChild?.cloneNode(true);
|
|
87
|
+
anim.destroy();
|
|
88
|
+
if (frame) container.appendChild(frame);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}, [
|
|
92
|
+
onComplete,
|
|
93
|
+
reverse,
|
|
94
|
+
autoStop,
|
|
95
|
+
stopFramePosition
|
|
96
|
+
]);
|
|
97
|
+
return /* @__PURE__ */ u("div", {
|
|
98
|
+
ref: containerRef,
|
|
99
|
+
style,
|
|
100
|
+
className,
|
|
101
|
+
"aria-hidden": "true"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/shared/assets/animatedAsset.tsx
|
|
106
|
+
var overrideUrlCache = /* @__PURE__ */ new Map();
|
|
107
|
+
function fetchAnimation(url) {
|
|
108
|
+
const cached = overrideUrlCache.get(url);
|
|
109
|
+
if (cached) return cached;
|
|
110
|
+
const pending = fetch(url).then((response) => {
|
|
111
|
+
if (!response.ok) throw new Error(`Request for "${url}" failed with status ${response.status}.`);
|
|
112
|
+
return response.json();
|
|
113
|
+
});
|
|
114
|
+
overrideUrlCache.set(url, pending);
|
|
115
|
+
pending.catch(() => overrideUrlCache.delete(url));
|
|
116
|
+
return pending;
|
|
117
|
+
}
|
|
118
|
+
function loadAnimationDefault(def, orientation) {
|
|
119
|
+
if (def === null) return Promise.resolve(null);
|
|
120
|
+
if (typeof def === "function") return def();
|
|
121
|
+
return def[orientation]();
|
|
122
|
+
}
|
|
123
|
+
var defaultCache = /* @__PURE__ */ new Map();
|
|
124
|
+
function defaultCacheKey(name, orientation) {
|
|
125
|
+
return `${name}|${orientation}`;
|
|
126
|
+
}
|
|
127
|
+
function loadDefaultCached(name, orientation) {
|
|
128
|
+
const cacheKey = defaultCacheKey(name, orientation);
|
|
129
|
+
if (defaultCache.has(cacheKey)) return Promise.resolve(defaultCache.get(cacheKey) ?? null);
|
|
130
|
+
return loadAnimationDefault(animationRegistry[name]?.default ?? null, orientation).then((value) => {
|
|
131
|
+
defaultCache.set(cacheKey, value);
|
|
132
|
+
return value;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Warms the built-in animation cache for the given catalog keys so a later
|
|
137
|
+
* render is synchronous (no flash). Best-effort; call it before the screen
|
|
138
|
+
* mounts.
|
|
139
|
+
*/
|
|
140
|
+
function preloadAnimations(keys, orientation = "vertical") {
|
|
141
|
+
for (const key of keys) loadDefaultCached(key, orientation).catch(() => {});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Resolves the winning animation to parsed `animationData` plus whether it came
|
|
145
|
+
* from a customer override. Reads the default cache synchronously on first
|
|
146
|
+
* render, so a preloaded animation shows with no flash. A failed override URL
|
|
147
|
+
* silently falls back to the built-in default.
|
|
148
|
+
*
|
|
149
|
+
* Shared by `AnimatedAsset` and by tutorial surfaces that render Lottie
|
|
150
|
+
* themselves (e.g. `BaseTutorial`, which recolors only built-in defaults).
|
|
151
|
+
*
|
|
152
|
+
* `onFallback`, if given, fires only when a *configured* override actually
|
|
153
|
+
* fails to load (never when there was simply no override to begin with) —
|
|
154
|
+
* for a caller whose true fallback lives outside this system entirely, so it
|
|
155
|
+
* can react to a real failure instead of committing to render this component before
|
|
156
|
+
* knowing whether the override will actually work.
|
|
157
|
+
*/
|
|
158
|
+
function useAnimationData(name, orientation = "vertical", onFallback) {
|
|
159
|
+
const resolved = useAnimation(name);
|
|
160
|
+
const type = resolved?.type;
|
|
161
|
+
const isOverride = isActiveOverride(resolved);
|
|
162
|
+
const overrideUrl = resolved?.type === "override-url" ? resolved.url : void 0;
|
|
163
|
+
const overrideData = resolved?.type === "override-data" ? resolved.animationData : void 0;
|
|
164
|
+
const [data, setData] = d(() => {
|
|
165
|
+
if (type === "override-data") return overrideData ?? null;
|
|
166
|
+
if (type === "default") return defaultCache.get(defaultCacheKey(name, orientation)) ?? null;
|
|
167
|
+
return null;
|
|
168
|
+
});
|
|
169
|
+
const [overrideFailed, setOverrideFailed] = d(false);
|
|
170
|
+
y(() => {
|
|
171
|
+
let active = true;
|
|
172
|
+
setOverrideFailed(false);
|
|
173
|
+
if (type === void 0) setData(null);
|
|
174
|
+
else if (type === "override-data") setData(overrideData ?? null);
|
|
175
|
+
else if (type === "override-url" && overrideUrl !== void 0) fetchAnimation(overrideUrl).then((value) => {
|
|
176
|
+
if (active) setData(value);
|
|
177
|
+
}, (error) => {
|
|
178
|
+
`${name}`;
|
|
179
|
+
if (active) {
|
|
180
|
+
setOverrideFailed(true);
|
|
181
|
+
loadDefaultCached(name, orientation).then((value) => {
|
|
182
|
+
if (active) setData(value);
|
|
183
|
+
}, () => {});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
else loadDefaultCached(name, orientation).then((value) => {
|
|
187
|
+
if (active) setData(value);
|
|
188
|
+
}, (error) => {
|
|
189
|
+
if (active) {
|
|
190
|
+
setData(null);
|
|
191
|
+
`${name}`;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
return () => {
|
|
195
|
+
active = false;
|
|
196
|
+
};
|
|
197
|
+
}, [
|
|
198
|
+
name,
|
|
199
|
+
orientation,
|
|
200
|
+
type,
|
|
201
|
+
overrideUrl,
|
|
202
|
+
overrideData
|
|
203
|
+
]);
|
|
204
|
+
y(() => {
|
|
205
|
+
if (overrideFailed) onFallback?.();
|
|
206
|
+
}, [overrideFailed, onFallback]);
|
|
207
|
+
return {
|
|
208
|
+
data,
|
|
209
|
+
isOverride
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Renders a Lottie animation by catalog key, honoring the resolved precedence
|
|
214
|
+
* (per-instance → global → built-in default). Renders nothing while pending or
|
|
215
|
+
* when there is no Lottie to show; the container is `aria-hidden` (all catalog
|
|
216
|
+
* animations are decorative).
|
|
217
|
+
*/
|
|
218
|
+
function AnimatedAsset({ name, autoStop, stopFramePosition, orientation = "vertical", loop, reverse, onComplete, class: className, onFallback }) {
|
|
219
|
+
const { data } = useAnimationData(name, orientation, onFallback);
|
|
220
|
+
if (data === null) return null;
|
|
221
|
+
return /* @__PURE__ */ u(Lottie, {
|
|
222
|
+
animationData: data,
|
|
223
|
+
autoStop,
|
|
224
|
+
stopFramePosition,
|
|
225
|
+
loop,
|
|
226
|
+
reverse,
|
|
227
|
+
onComplete,
|
|
228
|
+
className
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/shared/loader/loadingIcon.tsx
|
|
233
|
+
/**
|
|
234
|
+
* Duration of the CSS spin animation on `.IncodeLoadingIcon`.
|
|
235
|
+
* Must stay in sync with the `animation-duration` declared in the stylesheet.
|
|
236
|
+
*/
|
|
237
|
+
var SPIN_DURATION_MS = 1e3;
|
|
238
|
+
var SpinnerPrimary = ({ size, className }) => {
|
|
239
|
+
return /* @__PURE__ */ u("svg", {
|
|
240
|
+
width: size,
|
|
241
|
+
height: size,
|
|
242
|
+
viewBox: "0 0 31 31",
|
|
243
|
+
fill: "none",
|
|
244
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
245
|
+
class: cn("IncodeLoadingIconPrimaryIcon", className),
|
|
246
|
+
"aria-hidden": "true",
|
|
247
|
+
children: /* @__PURE__ */ u("path", { d: "M28.161 15.284c1.292 0 2.358-1.054 2.157-2.33A15 15 0 0 0 17.83.466c-1.276-.2-2.329.865-2.329 2.156s1.06 2.313 2.319 2.603a10.32 10.32 0 0 1 7.74 7.74c.29 1.259 1.31 2.319 2.602 2.319Z" })
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
var SpinnerSecondary = ({ size, className }) => {
|
|
251
|
+
return /* @__PURE__ */ u("svg", {
|
|
252
|
+
width: size,
|
|
253
|
+
height: size,
|
|
254
|
+
viewBox: "0 0 31 31",
|
|
255
|
+
fill: "none",
|
|
256
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
257
|
+
class: cn("IncodeLoadingIconSecondaryIcon", className),
|
|
258
|
+
"aria-hidden": "true",
|
|
259
|
+
children: [/* @__PURE__ */ u("title", { children: "Spinner Outer part" }), /* @__PURE__ */ u("path", { d: "M30.5 15.284c0 8.284-6.716 15-15 15s-15-6.716-15-15c0-8.285 6.716-15 15-15s15 6.715 15 15Zm-25.323 0c0 5.7 4.622 10.322 10.323 10.322s10.323-4.621 10.323-10.322S21.2 4.96 15.5 4.96 5.177 9.583 5.177 15.284Z" })]
|
|
260
|
+
});
|
|
261
|
+
};
|
|
262
|
+
var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
|
|
263
|
+
const ref = A(null);
|
|
264
|
+
const overrideRef = A(null);
|
|
265
|
+
const animation = useAnimation("loader.spinner");
|
|
266
|
+
const svg = useAsset("loader.spinner");
|
|
267
|
+
const hasAnimationOverride = isActiveOverride(animation);
|
|
268
|
+
const hasSvgOverride = isActiveOverride(svg);
|
|
269
|
+
const [overrideFailed, setOverrideFailed] = d(false);
|
|
270
|
+
const handleFallback = q(() => setOverrideFailed(true), []);
|
|
271
|
+
const hasOverride = (hasAnimationOverride || hasSvgOverride) && !overrideFailed;
|
|
272
|
+
/**
|
|
273
|
+
* Cross-module loaders (e.g. ID processing → selfie initialising) unmount
|
|
274
|
+
* and remount this component as the user moves between flow steps. By
|
|
275
|
+
* default each remount restarts the CSS spin animation from frame 0, which
|
|
276
|
+
* reads as a visible "stutter" or reset of the spinner during otherwise
|
|
277
|
+
* seamless transitions.
|
|
278
|
+
*
|
|
279
|
+
* To keep the rotation continuous across remounts we anchor the animation
|
|
280
|
+
* to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
|
|
281
|
+
* how far into the current spin cycle we are, and applying it as a
|
|
282
|
+
* negative `animation-delay` makes the new instance pick up exactly where
|
|
283
|
+
* the previous one left off. (Built-in default only.)
|
|
284
|
+
*/
|
|
285
|
+
_(() => {
|
|
286
|
+
if (hasOverride || !ref.current) return;
|
|
287
|
+
const offsetMs = performance.now() % SPIN_DURATION_MS;
|
|
288
|
+
ref.current.style.animationDelay = `-${offsetMs}ms`;
|
|
289
|
+
}, [hasOverride]);
|
|
290
|
+
_(() => {
|
|
291
|
+
if (!overrideRef.current) return;
|
|
292
|
+
overrideRef.current.style.width = `${size}px`;
|
|
293
|
+
overrideRef.current.style.height = `${size}px`;
|
|
294
|
+
}, [size, hasOverride]);
|
|
295
|
+
if (hasOverride) return /* @__PURE__ */ u("div", {
|
|
296
|
+
ref: overrideRef,
|
|
297
|
+
class: "IncodeLoadingIconOverride",
|
|
298
|
+
children: hasAnimationOverride ? /* @__PURE__ */ u(AnimatedAsset, {
|
|
299
|
+
name: "loader.spinner",
|
|
300
|
+
loop: true,
|
|
301
|
+
onFallback: handleFallback
|
|
302
|
+
}) : /* @__PURE__ */ u(Asset, {
|
|
303
|
+
name: "loader.spinner",
|
|
304
|
+
onFallback: handleFallback
|
|
305
|
+
})
|
|
306
|
+
});
|
|
307
|
+
return /* @__PURE__ */ u("div", {
|
|
308
|
+
ref,
|
|
309
|
+
class: "IncodeLoadingIcon",
|
|
310
|
+
children: [/* @__PURE__ */ u(SpinnerSecondary, {
|
|
311
|
+
size,
|
|
312
|
+
className: secondaryClass
|
|
313
|
+
}), /* @__PURE__ */ u("div", {
|
|
314
|
+
class: "IncodeLoadingIconPrimary",
|
|
315
|
+
children: /* @__PURE__ */ u(SpinnerPrimary, {
|
|
316
|
+
size,
|
|
317
|
+
className: primaryClass
|
|
318
|
+
})
|
|
319
|
+
})]
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/shared/spinner/spinnerHelpers.ts
|
|
324
|
+
function getSpinnerClasses({ fullScreen, alwaysDark, hideIcon, className }) {
|
|
325
|
+
const container = ["IncodeSpinner"];
|
|
326
|
+
let loadingPrimary = [];
|
|
327
|
+
let loadingSecondary = [];
|
|
328
|
+
if (fullScreen) container.push("IncodeSpinnerFullScreen");
|
|
329
|
+
if (alwaysDark) {
|
|
330
|
+
container.push("IncodeSpinnerAlwaysDark");
|
|
331
|
+
loadingPrimary.push("IncodeSpinnerAlwaysDarkLoadingPrimary");
|
|
332
|
+
loadingSecondary.push("IncodeSpinnerAlwaysDarkLoadingSecondary");
|
|
333
|
+
}
|
|
334
|
+
if (hideIcon) {
|
|
335
|
+
container.push("IncodeSpinnerTextOnly");
|
|
336
|
+
loadingPrimary = [];
|
|
337
|
+
loadingSecondary = [];
|
|
338
|
+
}
|
|
339
|
+
if (className) container.push(className);
|
|
340
|
+
return {
|
|
341
|
+
containerClass: cn(...container),
|
|
342
|
+
loadingPrimaryClass: cn(...loadingPrimary),
|
|
343
|
+
loadingSecondaryClass: cn(...loadingSecondary)
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/shared/spinner/spinner.tsx
|
|
348
|
+
var sizeMap = {
|
|
349
|
+
small: 24,
|
|
350
|
+
medium: 48,
|
|
351
|
+
large: 64
|
|
352
|
+
};
|
|
353
|
+
var Spinner = ({ title, subtitle, ariaLabel, size = "medium", fullScreen = true, className, presentational = false, hideIcon = false, alwaysDark = false }) => {
|
|
354
|
+
const iconSize = sizeMap[size];
|
|
355
|
+
const titleRef = A(null);
|
|
356
|
+
const containerRef = A(null);
|
|
357
|
+
y(() => {
|
|
358
|
+
if (presentational) return;
|
|
359
|
+
if (ariaLabel) containerRef.current?.focus();
|
|
360
|
+
else if (title) titleRef.current?.focus();
|
|
361
|
+
}, [
|
|
362
|
+
title,
|
|
363
|
+
ariaLabel,
|
|
364
|
+
presentational
|
|
365
|
+
]);
|
|
366
|
+
const { containerClass, loadingPrimaryClass, loadingSecondaryClass } = getSpinnerClasses({
|
|
367
|
+
fullScreen,
|
|
368
|
+
alwaysDark,
|
|
369
|
+
hideIcon,
|
|
370
|
+
className
|
|
371
|
+
});
|
|
372
|
+
return /* @__PURE__ */ u("div", {
|
|
373
|
+
ref: containerRef,
|
|
374
|
+
class: containerClass,
|
|
375
|
+
"data-testid": "spinner",
|
|
376
|
+
"data-title": title,
|
|
377
|
+
"data-subtitle": subtitle,
|
|
378
|
+
"data-size": size,
|
|
379
|
+
role: presentational ? void 0 : "status",
|
|
380
|
+
"aria-live": presentational ? void 0 : "polite",
|
|
381
|
+
"aria-label": presentational ? void 0 : ariaLabel,
|
|
382
|
+
"aria-hidden": presentational ? true : void 0,
|
|
383
|
+
tabIndex: !presentational && ariaLabel ? -1 : void 0,
|
|
384
|
+
children: /* @__PURE__ */ u("div", {
|
|
385
|
+
class: "IncodeSpinnerContent",
|
|
386
|
+
"aria-hidden": ariaLabel ? true : void 0,
|
|
387
|
+
children: [!hideIcon && /* @__PURE__ */ u(LoadingIcon, {
|
|
388
|
+
size: iconSize,
|
|
389
|
+
primaryClass: loadingPrimaryClass,
|
|
390
|
+
secondaryClass: loadingSecondaryClass
|
|
391
|
+
}), (title || subtitle) && /* @__PURE__ */ u(k, { children: [!hideIcon && /* @__PURE__ */ u(Spacer, { size: 16 }), /* @__PURE__ */ u("div", {
|
|
392
|
+
class: "IncodeSpinnerText",
|
|
393
|
+
children: [title && /* @__PURE__ */ u(Title, {
|
|
394
|
+
ref: titleRef,
|
|
395
|
+
tabIndex: -1,
|
|
396
|
+
className: "IncodeSpinnerTitle",
|
|
397
|
+
children: title
|
|
398
|
+
}), subtitle && /* @__PURE__ */ u(k, { children: [title && /* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
|
|
399
|
+
class: "IncodeSpinnerSubtitle",
|
|
400
|
+
children: subtitle
|
|
401
|
+
})] })]
|
|
402
|
+
})] })]
|
|
403
|
+
})
|
|
404
|
+
});
|
|
405
|
+
};
|
|
406
|
+
//#endregion
|
|
407
|
+
export { useAnimationData as a, preloadAnimations as i, LoadingIcon as n, Lottie as o, AnimatedAsset as r, loadLottie as s, Spinner as t };
|