@incodetech/web 2.4.1-agentic.9 → 2.5.0-rc.0
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/{GeolocationPermissionDenied-Bl0ESi9x.js → GeolocationPermissionDenied-DRRBxdLP.js} +5 -5
- package/dist/Password-CY3Tv_5W.js +212 -0
- package/dist/RadioGroup-CnxMGtas.js +123 -0
- package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
- package/dist/RequiredMarker-CAqxArxr.js +16 -0
- package/dist/TextField-MsdsbAbT.js +166 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-BtuHt1ef.js → af-ZA-CtJyXRHO.js} +11 -27
- package/dist/{ageVerification-JN9VvXwE.js → ageVerification-C6fgHkhK.js} +5 -5
- package/dist/{am-l8nD7Xzz.js → am-BvQDMy8e.js} +11 -27
- package/dist/antifraud/antifraud.es.js +5 -5
- package/dist/{applyStudioConfig-B64x1L-J.js → applyStudioConfig-DO18I6Cf.js} +2 -2
- package/dist/{ar-AE-CO4WaEdG.js → ar-AE-CmS-eCPq.js} +11 -27
- package/dist/{ar-DsKx-YwP.js → ar-Bpe0wGYL.js} +11 -27
- package/dist/{ar-EG-CgYEh6do.js → ar-EG-DaxpzWwx.js} +11 -27
- package/dist/authentication/authentication.es.js +9 -8
- package/dist/{autoFocusTitle-MePwRIrH.js → autoFocusTitle-D_vDhPqZ.js} +2 -2
- package/dist/{az-DTmme8ut.js → az-zSRFEU_F.js} +11 -27
- package/dist/{back-horizontal-hint-yueBylfH.js → back-horizontal-hint-Bci98ivl.js} +1 -1
- package/dist/{back-vertical-hint-NzFSG2Bh.js → back-vertical-hint-DyPCItxn.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-BYTLqczq.js → baseTutorial-Bktx_Yrr.js} +4 -4
- package/dist/{bn-CvF9FlWn.js → bn-BrITyCOh.js} +11 -27
- package/dist/{bottomSheet-BbgC68Rm.js → bottomSheet-CzU1QNua.js} +3 -3
- package/dist/{bs-DE7QTPiz.js → bs-rdaEnpNo.js} +11 -27
- package/dist/{ca-B2IOmHal.js → ca-BEtpN_ag.js} +11 -27
- package/dist/cameraOverlay-D6NPWfIT.js +2 -0
- package/dist/{cameraOverlayHeader-DKPegKOB.js → cameraOverlayHeader-DZHCfN1x.js} +5 -5
- package/dist/{cameraView-B9ulYDlK.js → cameraView-CYd-_y_r.js} +3 -3
- package/dist/capture-BBQJgktJ.js +2 -0
- package/dist/{capture-BfiBco34.js → capture-BstPDTgL.js} +10 -10
- package/dist/{capture-Ofbv-y4C.js → capture-CkvbPbJK.js} +21 -21
- package/dist/capture-DiJGnu9z.js +3 -0
- package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
- package/dist/{captureFocusContext-CbhM0Rak.js → captureFocusContext-FsGun4Yd.js} +11 -11
- package/dist/{captureFooter-CyQw85c9.js → captureFooter-BLJ1Qvov.js} +5 -5
- package/dist/{ceb-DMyDJibH.js → ceb-D5rPC9mY.js} +11 -27
- package/dist/certificate-issuance/certificate-issuance.es.js +40 -29
- package/dist/{checkbox-COiob4-f.js → checkbox-HfnbGBMk.js} +4 -4
- package/dist/{chooser-CMZn17HH.js → chooser-Dm0wohHb.js} +12 -12
- package/dist/{connectionError-DQc99Xwr.js → connectionError-BFVvBEMq.js} +5 -5
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countryDefinitions-YYJL8AKj.js → countryDefinitions-UXJ0maPk.js} +6 -0
- package/dist/{countryFlag-mUH97k33.js → countryFlag-CjuXF_8C.js} +1 -1
- package/dist/{countrySelector-Clj3rtbE.js → countrySelector-CEJAgeRY.js} +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -5
- package/dist/{cs-CZ-BoJHPkXg.js → cs-CZ-BEprNqLt.js} +11 -27
- package/dist/{cs-C6BvjMnL.js → cs-D_U436l9.js} +11 -27
- package/dist/curp-validation/curp-validation.es.js +42 -28
- package/dist/{customFields-CTQsIMU8.js → customFields-DqebmaL5.js} +24 -18
- package/dist/{customWatchlist-BGVgykZy.js → customWatchlist-DVSMbzw5.js} +6 -6
- package/dist/{da-DK-BgryIABe.js → da-DK-dMikXCNn.js} +11 -27
- package/dist/{dashboardTheme-DmmLPc5-.js → dashboardTheme-CB91NoiD.js} +24 -19
- package/dist/{dateInputComposed-BAglkb04.js → dateInputComposed-CVJ4LSep.js} +4 -5
- package/dist/dateInputComposed-DF0Dx86l.js +1 -0
- package/dist/{de-CmigCxj3.js → de-C3c7Bo-M.js} +11 -27
- package/dist/{denied-B-Sa9xtg.js → denied-BR9pZqKi.js} +7 -7
- package/dist/{devWarn-Cus67U3P.js → devWarn-CXWsIkak.js} +86 -108
- package/dist/{deviceWallet-BC90NDd9.js → deviceWallet-DDHk7jBw.js} +4 -4
- package/dist/{digitalIdRedirect-C849eRWw.js → digitalIdRedirect-DKJgITR_.js} +4 -4
- package/dist/{digitalIdUpload-7IBs1xuH.js → digitalIdUpload-BgG6svjJ.js} +7 -7
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Dg6F5vPo.js → documentCapture-Cu3F_ka7.js} +23 -22
- package/dist/documentCapture-owKpu8oI.js +2 -0
- package/dist/{dropdownComposed-B-jwhIk3.js → dropdownComposed-BJCNWDGU.js} +4 -4
- package/dist/dropdownComposed-zidm_XVK.js +1 -0
- package/dist/dynamic-forms/dynamic-forms.es.js +57 -35
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-Qc_5cB3W.js +2 -0
- package/dist/{ekybModule-CXckmono.js → ekybModule-tV6tUWe_.js} +101 -86
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekyc/styles.css.js +1 -1
- package/dist/ekyc-prefill/ekyc-prefill.es.js +1 -1
- package/dist/ekycModule-BgB_xu54.js +789 -0
- package/dist/ekycModule-DZ7yboJO.js +2 -0
- package/dist/ekycPrefillModule-B0cJJiuu.js +2 -0
- package/dist/{ekycPrefillModule-Dvb4nz8D.js → ekycPrefillModule-B1xn0veW.js} +96 -69
- package/dist/{el-GR-DEVeeY1N.js → el-GR-eG5AImZr.js} +11 -27
- package/dist/{el-C504mByE.js → el-LOaoXfUU.js} +11 -27
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DdTsRO4E.js → electronic-signature-BleJ65-Y.js} +12 -12
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BhovfkJr.js → emailInput-BVx96bJy.js} +23 -12
- package/dist/{en-CjGMhH0a.js → en-B_-7--AN.js} +11 -27
- package/dist/{en-DG-D0uJ-8uf.js → en-DG-BDnlBAUl.js} +11 -27
- package/dist/{errorContent-Do4AkQxk.js → errorContent-x8IajOaE.js} +6 -6
- package/dist/{errorParams-BsjlLhGl.js → errorParams-B68-Euu2.js} +1 -1
- package/dist/{es-419-Dj2u3lIS.js → es-419-DS4mN2d_.js} +1 -1
- package/dist/{es-ES-BFt41nFI.js → es-ES-BMafdM90.js} +11 -27
- package/dist/{es-MX-B_Wc9vvS.js → es-MX-DqhG7Zy7.js} +11 -27
- package/dist/{es-CceiWbcv.js → es-T4K5G5zB.js} +12 -28
- package/dist/{et-Bj_x5sOU.js → et-fBoHBc5h.js} +11 -27
- package/dist/{expiredId-CMUoX-P0.js → expiredId-Q5ITzZU-.js} +6 -6
- package/dist/extensibility.es.js +328 -45
- package/dist/{fa-IR-BN0UsB54.js → fa-IR--PnMtKvC.js} +11 -27
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -1
- package/dist/face-match/styles.css.js +1 -1
- package/dist/{faceMatch-D0OyUbR5.js → faceMatch-D-ehWIdN.js} +40 -28
- package/dist/faceMatch-RxP2VPBm.js +2 -0
- package/dist/{fi-FI-XID8T9Ko.js → fi-FI-D-T9bf67.js} +11 -27
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-BhYiGx0t.js +2 -0
- package/dist/fieldComparison-c3xT3K4C.js +126 -0
- package/dist/{fieldLabelHint-C0ZLkktZ.js → fieldLabelHint-yMZjXK6p.js} +1 -1
- package/dist/{finalSuccessScreen-LISnhuf3.js → finalSuccessScreen-CDr8bsI6.js} +24 -17
- package/dist/fiscal-qr/fiscal-qr.es.js +22 -19
- package/dist/{flipAnimation-DjM5JYfL.js → flipAnimation-C95PZFAJ.js} +5 -5
- package/dist/{flipCapturedCardEligibility-BNIrIYfu.js → flipCapturedCardEligibility-CcB0uVfH.js} +4 -4
- package/dist/flow/flow.es.js +100 -99
- package/dist/flow/styles.css +1 -1
- package/dist/formField-Ba8BQ_l8.js +49 -0
- package/dist/{fr-IbVATPZV.js → fr-BlNTqS4_.js} +11 -27
- package/dist/{fr-CA-Bmt-kW3D.js → fr-CA-DBO_1sfd.js} +11 -27
- package/dist/{front-horizontal-hint-C9-5nbdp.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
- package/dist/{front-vertical-hint-DTtHshwX.js → front-vertical-hint-BKEg_DRs.js} +1 -1
- package/dist/geolocation/geolocation.es.js +10 -10
- package/dist/government-validation/government-validation.es.js +7 -7
- package/dist/{he-B1oTlS7p.js → he-C-PnifVg.js} +11 -27
- package/dist/{hi-BFeWb9MT.js → hi-mETIwcDe.js} +11 -27
- package/dist/{hmn-naJkqwAe.js → hmn-BZabGetu.js} +11 -27
- package/dist/{homeScreen-kVe-PwZV.js → homeScreen-CcRzcWya.js} +7 -7
- package/dist/{hooks-CE8vvsR8.js → hooks-nmwpawA2.js} +49 -11
- package/dist/{hr-CpwG7WJ4.js → hr-DzkTH3cj.js} +11 -27
- package/dist/{ht-mbMGmJ9j.js → ht-D5zV7ROu.js} +11 -27
- package/dist/{hu-CAPECmUZ.js → hu-CeHrYR4q.js} +12 -28
- package/dist/{icons-Bz641AZd.js → icons-DLZTxOV2.js} +2 -2
- package/dist/id/id.es.js +38 -37
- package/dist/{id-DNQTblvO.js → id-B_qFrh_W.js} +12 -28
- package/dist/{id-back-of-card-DNgfCJsN.js → id-back-of-card-BhF5T4fC.js} +1 -1
- package/dist/{id-back-of-card-vertical-D7qtwPW5.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
- package/dist/{id-front-of-card-CM0hV6jv.js → id-front-of-card-CiGcJhVW.js} +1 -1
- package/dist/{id-front-of-card-vertical-Cz0op2vf.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -13
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +12 -7
- package/dist/{idFlipTransition-Cue3HSGt.js → idFlipTransition-DuwSIp-D.js} +13 -13
- package/dist/{idOcr-XOJ-JY-l.js → idOcr-DatcQrFh.js} +60 -37
- package/dist/identity-reuse/identity-reuse.es.js +14 -13
- package/dist/identity-reuse/styles.css.js +1 -0
- package/dist/{incodeComponent-C1TMotqV.js → incodeComponent-DFue7FgD.js} +10 -10
- package/dist/{incodeModule-BeATmadl.js → incodeModule-BWSWx6zz.js} +5 -5
- package/dist/index.es.js +3 -3
- package/dist/{inputComposed-CRp1H6U_.js → inputComposed-6M3lOVUo.js} +4 -4
- package/dist/{it-BcT816iZ.js → it-CwzQoTtJ.js} +11 -27
- package/dist/{ja-JP-BhZupQ7A.js → ja-JP-Cg6pV7OS.js} +12 -28
- package/dist/{ja-B5spS5-8.js → ja-eNtdzeB5.js} +11 -27
- package/dist/{jv-DalcXb84.js → jv-BANHtRb4.js} +11 -27
- package/dist/{ka-CbUOmftP.js → ka-DWhlum5Q.js} +11 -27
- package/dist/{kk-0EE3IrpX.js → kk-CAsKyYR9.js} +11 -27
- package/dist/{km-8LSGXQaW.js → km-DJHdr0lO.js} +16 -32
- package/dist/{ko-BjG0PPAP.js → ko-BAPbgx_r.js} +11 -27
- package/dist/{ko-KP-CpVrSvZB.js → ko-KP-BRD8crfV.js} +11 -27
- package/dist/{ky-xwaTThY0.js → ky-0IKHwWw_.js} +11 -27
- package/dist/kyb-checks/kyb-checks.es.js +1 -1
- package/dist/{kybChecksModule-DvZ-BZRh.js → kybChecksModule-CWFpU32e.js} +80 -64
- package/dist/kybChecksModule-D3u3hdUP.js +2 -0
- package/dist/{lo-EQF7PXWa.js → lo-DkBffqOP.js} +11 -27
- package/dist/{lt-DMmeCaHo.js → lt-Btf5JQPU.js} +12 -28
- package/dist/{lv-C1iTZMfE.js → lv-DMnPY0bZ.js} +12 -28
- package/dist/{mandatoryConsent-CvTtalAL.js → mandatoryConsent-Ci6fJR2F.js} +11 -11
- package/dist/{manualCaptureButton-BuQHmszh.js → manualCaptureButton-DrdeVhq8.js} +4 -4
- package/dist/{manualCaptureButton-DQAbimvq.js → manualCaptureButton-ZxWHf5Sa.js} +10 -10
- package/dist/{mk-DzMpKPOz.js → mk-CQIDbtM2.js} +11 -27
- package/dist/{mn-BvXd9F52.js → mn-Cc1HnwyR.js} +11 -27
- package/dist/{ms-Cp7ZJ7mK.js → ms-CORA9eaw.js} +11 -27
- package/dist/{my-GmBVDdMo.js → my-CNDvlF-Z.js} +11 -27
- package/dist/{nb-NO-y1MiZO8w.js → nb-NO-BwZ27fuH.js} +11 -27
- package/dist/{ne-Cl08Ph1J.js → ne-D7rkhft1.js} +11 -27
- package/dist/{nl-xrUuWU-J.js → nl-DsxNMb79.js} +12 -28
- package/dist/{optionAccessibleLabel-BU3kQ0En.js → optionAccessibleLabel-Cz2x8Q7x.js} +25 -10
- package/dist/{otpInput-Dmg_f47Q.js → otpInput-B2fLiJsF.js} +96 -15
- package/dist/{page-BR1C3Nzj.js → page-B0CjRMtF.js} +6 -6
- package/dist/{pageUiConfig-CHSWT3Gw.js → pageUiConfig-mKn_YhhU.js} +5 -5
- package/dist/{passport-horizontal-hint-SkVy1ylo.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
- package/dist/{passport-vertical-hint-CgCA8IKR.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
- package/dist/passwordRequirements-13qw_WSJ.js +49 -0
- package/dist/{pdf-B05hp9AA.js → pdf-DO_HvE8T.js} +2 -2
- package/dist/pdfViewer-CCHNUl5h.js +2 -0
- package/dist/{pdfViewer-CYoSQQNz.js → pdfViewer-pgBIY_Q7.js} +4 -4
- package/dist/{permissionInstructionList-hPNjHN71.js → permissionInstructionList-DPDqNKFJ.js} +3 -3
- package/dist/{permissions-Bu02I3PR.js → permissions-CKjgrM7q.js} +13 -13
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-B7W1co5m.js → phoneInputComposed-BbZuW8Q8.js} +6 -6
- package/dist/{pl-C01qnZKR.js → pl-DOgi6huc.js} +11 -27
- package/dist/{preloadableLazy-BDZiRMcF.js → preloadableLazy-KWGuHoqn.js} +1 -1
- package/dist/{processing-CIy9REXo.js → processing-v4EkL9-U.js} +2 -2
- package/dist/{progressBar-Bv7JPmtA.js → progressBar-D-kfX8X1.js} +2 -2
- package/dist/{pt-BR-wEX_V9Uj.js → pt-BR-x__xGSN_.js} +11 -27
- package/dist/{pt-D4WG4iEZ.js → pt-CX0ngiGh.js} +11 -27
- package/dist/{pt-PT-BPg4BIJf.js → pt-PT-BKwyOX-W.js} +11 -27
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +13 -13
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-B5W7SqS3.js → registerIncodeElement-FoirFu19.js} +1 -1
- package/dist/{resendTimer-CeSq33kX.js → resendTimer-DHgQUcAi.js} +2 -2
- package/dist/{richText-BMvr5dhl.js → richText-DlHC_sMB.js} +4 -4
- package/dist/{ro-Cqlj7IaS.js → ro-DGB5aI9B.js} +11 -27
- package/dist/{ru-4u-5Riz6.js → ru-Dnl6YnE6.js} +12 -28
- package/dist/{ru-RU-hoEJT3Zf.js → ru-RU-BM5Leyxp.js} +11 -27
- package/dist/{sanitizeSvg-wb-lG02K.js → sanitizeSvg-IfqLuP1N.js} +1 -1
- package/dist/selfie/selfie.es.js +13 -12
- package/dist/signature/signature.es.js +10 -10
- package/dist/{sk-Bcrhcaus.js → sk-B4HQZzV6.js} +12 -28
- package/dist/{sl-_NIS9uQY.js → sl-ClgVmZ1h.js} +11 -27
- package/dist/{smsTabContent-CuxElbq9.js → smsTabContent-D9Eb005G.js} +7 -7
- package/dist/{so-B9pngiw2.js → so-BLFIV5-m.js} +11 -27
- package/dist/{spacer-BMVbQdv1.js → spacer-D5j2phXI.js} +293 -322
- package/dist/spinner-BeYdZjPC.js +69 -0
- package/dist/{sr-CwLs8KQk.js → sr-CkSmwRiY.js} +11 -27
- package/dist/{sr-Latn-My3nXAfv.js → sr-Latn-BdLB-I3Z.js} +15 -31
- package/dist/{sr-YU-D6EswTRk.js → sr-YU-DJ3geBJs.js} +1 -1
- package/dist/{sv-SE-3XWHgiaY.js → sv-SE-DEfqYDzZ.js} +11 -27
- package/dist/{sw-u0GGYzxM.js → sw-16U52YpC.js} +11 -27
- package/dist/{th-DuUtrE7A.js → th-Cg0hYujg.js} +11 -27
- package/dist/{th-TH-CIxIVJnV.js → th-TH-BBPg926O.js} +11 -27
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-vdHV7e5l.js → tl-PH-DSHq83jb.js} +11 -27
- package/dist/{tl-Cnee5vHJ.js → tl-SL2bqb6j.js} +11 -27
- package/dist/{tr-B6NfQ1YM.js → tr-DclJKp5i.js} +11 -27
- package/dist/{transitionSpinner-BYT6Y26d.js → transitionSpinner-b8SMrhfd.js} +6 -6
- package/dist/{tutorial-DGi7njtc.js → tutorial-0IhGg6rb.js} +4 -4
- package/dist/types/ae-signature.d.ts +7 -3
- package/dist/types/antifraud.d.ts +7 -3
- package/dist/types/authentication.d.ts +7 -3
- package/dist/types/certificate-issuance.d.ts +7 -3
- package/dist/types/consent.d.ts +7 -3
- package/dist/types/cross-document-data-match.d.ts +7 -3
- package/dist/types/curp-validation.d.ts +7 -3
- package/dist/types/document-capture.d.ts +7 -3
- package/dist/types/dynamic-forms.d.ts +7 -3
- package/dist/types/ekyb.d.ts +7 -3
- package/dist/types/ekyc-prefill.d.ts +7 -3
- package/dist/types/ekyc.d.ts +7 -3
- package/dist/types/electronic-signature.d.ts +7 -3
- package/dist/types/email.d.ts +7 -3
- package/dist/types/extensibility.d.ts +7 -10
- package/dist/types/face-match.d.ts +7 -3
- package/dist/types/field-comparison.d.ts +7 -3
- package/dist/types/fiscal-qr.d.ts +7 -3
- package/dist/types/flow.d.ts +7 -3
- package/dist/types/geolocation.d.ts +7 -3
- package/dist/types/government-validation.d.ts +7 -3
- package/dist/types/id-selfie-flow.d.ts +7 -3
- package/dist/types/id-verification.d.ts +7 -3
- package/dist/types/id.d.ts +7 -3
- package/dist/types/identity-reuse.d.ts +8 -4
- package/dist/types/kyb-checks.d.ts +7 -3
- package/dist/types/phone.d.ts +7 -3
- package/dist/types/qe-signature.d.ts +7 -3
- package/dist/types/selfie.d.ts +7 -3
- package/dist/types/signature.d.ts +7 -3
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +7 -3
- package/dist/types/workflow.d.ts +7 -3
- package/dist/{typography-CHx4UfE3.js → typography-D3swFCxZ.js} +2 -2
- package/dist/{uk-D8SBQUPY.js → uk-CfFK_Tnk.js} +11 -27
- package/dist/{uk-UA-CMvgmdmw.js → uk-UA-vkh8X4bX.js} +12 -28
- package/dist/{ur-DCLXBfJS.js → ur-32a-9tt8.js} +11 -27
- package/dist/{useCameraPreview-DrteOjaq.js → useCameraPreview-hNLhri73.js} +1 -1
- package/dist/{useCaptureHelpButton-BEjYpwg6.js → useCaptureHelpButton-BJQvSkuJ.js} +2 -2
- package/dist/{useIsDarkTheme-DAs5RhsW.js → useIsDarkTheme-DoOFy9TN.js} +1 -1
- package/dist/{useModuleLoader--rVDzHqn.js → useModuleLoader-BCYS1xLP.js} +25 -17
- package/dist/{uz-CdTikNR8.js → uz-BEx-De8I.js} +11 -27
- package/dist/{vendor-preact-HIccnts1.js → vendor-preact-CjnloSla.js} +129 -5
- package/dist/{verificationResult-D8QnyuI1.js → verificationResult-tHoFvrGZ.js} +6 -6
- package/dist/{vi-8i3fXIYC.js → vi-CMQXfqfw.js} +11 -27
- package/dist/video-selfie/styles.css +1 -1
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +32 -24
- package/dist/watchlist/watchlist.es.js +7 -6
- package/dist/{watchlistForBusiness-gQlRJDj7.js → watchlistForBusiness-CbRaBYoJ.js} +29 -20
- package/dist/{withEndScreenTexts-oHy-aDwN.js → withEndScreenTexts-10ck20tq.js} +43 -28
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +531 -1
- package/dist/{zh-CN-C_3DQPAO.js → zh-CN-BelxA_Rf.js} +11 -27
- package/dist/{zh-HANT-DzKThLGe.js → zh-HANT-DsztptZA.js} +11 -27
- package/dist/{zh-TW-CRwvuA_1.js → zh-TW-DKQC3FXd.js} +11 -27
- package/dist/{zh-JxvLpfJI.js → zh-v3x4XYal.js} +11 -27
- package/package.json +5 -14
- package/dist/cameraOverlay-CbaSCAzN.js +0 -2
- package/dist/capture-B105Gyzk.js +0 -2
- package/dist/capture-kxXHrakb.js +0 -3
- package/dist/captureButtonIcon-DdqcSAFo.js +0 -1
- package/dist/dateInputComposed-Bq9yEjqE.js +0 -1
- package/dist/documentCapture-CSovKIfj.js +0 -2
- package/dist/dropdownComposed-D9WtKiZl.js +0 -1
- package/dist/ekybModule-CqV7hjNi.js +0 -2
- package/dist/ekycModule-DHEPIoB-.js +0 -328
- package/dist/ekycModule-OERg1YPW.js +0 -2
- package/dist/ekycPrefillModule-B4BJQWaa.js +0 -2
- package/dist/faceMatch-1IxVsuQC.js +0 -2
- package/dist/fieldComparison-D3dONVPr.js +0 -113
- package/dist/fieldComparison-DWl2ByZ2.js +0 -2
- package/dist/formField-BP6uJTSh.js +0 -34
- package/dist/inputComposed-Dc8tBgb6.js +0 -1
- package/dist/kybChecksModule-DMKKtrmB.js +0 -2
- package/dist/passwordInputComposed-DKEB8EmI.js +0 -74
- package/dist/pdfViewer-BRAs-KYx.js +0 -2
- package/dist/radioGroupComposed-BZ5zWFS6.js +0 -160
- package/dist/radioGroupComposed-DA4CM0OB.js +0 -1
- package/dist/spinner-DkgXsNMB.js +0 -106
- package/dist/step-up/step-up.es.js +0 -483
- package/dist/step-up/styles.css +0 -2
- package/dist/types/step-up.d.ts +0 -85
- package/dist/workflow-CXjNrouG.js +0 -531
- /package/dist/{aligndevicelottie-B6hTuIe8.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{assertClassBrand-CuHX5JcR.js → assertClassBrand-F6pL6aIr.js} +0 -0
- /package/dist/{back-tutorial-v-0Ek2vm.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-DF1HiZ5r.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BSyppjCM.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{defineProperty-CRYuXE79.js → defineProperty-B4FQTz14.js} +0 -0
- /package/dist/{flip-animation-BwsJr5v0.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-DBYQ8I6w.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-Cd1wXkQ6.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-xw6WLLM_.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-BHYuyf78.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-CYXjnunq.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-B819EhaL.js → lottie_light-Bam05Bc9.js} +0 -0
- /package/dist/{passport-tutorial-B_BAoSVc.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-DzBNMoKS.js → pdf.worker.min-D0hm-8jN.js} +0 -0
- /package/dist/{policyUrls-Hvb4jPfF.js → policyUrls-B3TEaluh.js} +0 -0
- /package/dist/{purify.es-DIIgrZ-E.js → purify.es-DhY3JLdI.js} +0 -0
- /package/dist/{selfieTutorial-2UnQ3071.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as Q,
|
|
2
|
+
import { o as useUiConfig, u as useTranslation } from "./devWarn-CXWsIkak.js";
|
|
3
|
+
import { C as Q, a as M, b as y, f as T, g, h as d, i as D, p as _, u as A, v as q, x as u, y as x } from "./vendor-preact-CjnloSla.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-icons@0.4.5_react@19.2.3/node_modules/@incodetech/prizma-core-icons/src/icon-base.tsx
|
|
5
5
|
var ICON_SIZE_PX = {
|
|
6
6
|
xs: 8,
|
|
@@ -120,7 +120,21 @@ var IconWarning = createIcon("warning", [{
|
|
|
120
120
|
]
|
|
121
121
|
}]);
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.
|
|
123
|
+
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.20.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@incodetech/prizma-core-web/dist/spinPhase.js
|
|
124
|
+
/**
|
|
125
|
+
* Callback ref: a remounted spinner continues the rotation instead of
|
|
126
|
+
* restarting it. A negative delay of `now % duration` puts every spinner at
|
|
127
|
+
* the same page-clock phase. The duration comes from the computed style
|
|
128
|
+
* (always seconds), so a token override is followed. Skipped under reduced
|
|
129
|
+
* motion, where the paused arc must rest at its start.
|
|
130
|
+
*/
|
|
131
|
+
function syncSpinPhase(element) {
|
|
132
|
+
if (!element || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
133
|
+
const durationMs = parseFloat(getComputedStyle(element).animationDuration) * 1e3;
|
|
134
|
+
if (durationMs > 0) element.style.animationDelay = `${-(performance.now() % durationMs)}ms`;
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.20.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@incodetech/prizma-core-web/dist/LoadingSpinner.js
|
|
124
138
|
/**
|
|
125
139
|
* LoadingSpinner — Prizma Core v0
|
|
126
140
|
*
|
|
@@ -179,6 +193,7 @@ var PrizmaLoadingSpinner = D(({ showTitle = false, showSubtitle = false, titleTe
|
|
|
179
193
|
cy: "24",
|
|
180
194
|
r: "20.25"
|
|
181
195
|
}), u("circle", {
|
|
196
|
+
ref: syncSpinPhase,
|
|
182
197
|
className: "prizma-loading-spinner__arc",
|
|
183
198
|
cx: "24",
|
|
184
199
|
cy: "24",
|
|
@@ -214,7 +229,14 @@ var PrizmaLoadingSpinner = D(({ showTitle = false, showSubtitle = false, titleTe
|
|
|
214
229
|
});
|
|
215
230
|
PrizmaLoadingSpinner.displayName = "PrizmaLoadingSpinner";
|
|
216
231
|
//#endregion
|
|
217
|
-
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.
|
|
232
|
+
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.20.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@incodetech/prizma-core-web/dist/mergeAriaIds.js
|
|
233
|
+
/** Keep host instructions alongside Prizma messages without repeating an ID. */
|
|
234
|
+
function mergeAriaIds(...values) {
|
|
235
|
+
const ids = values.flatMap((value) => value?.trim().split(/\s+/).filter(Boolean) ?? []);
|
|
236
|
+
return [...new Set(ids)].join(" ") || void 0;
|
|
237
|
+
}
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.20.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@incodetech/prizma-core-web/dist/Title.js
|
|
218
240
|
/**
|
|
219
241
|
* Title — Prizma Core v0
|
|
220
242
|
*
|
|
@@ -238,7 +260,9 @@ PrizmaLoadingSpinner.displayName = "PrizmaLoadingSpinner";
|
|
|
238
260
|
* color token is set on the wrapper in Title.css (see its "status icon"
|
|
239
261
|
* block + title.md §4.5 + §5.6).
|
|
240
262
|
* - `{ type: 'spinner' }` — renders <LoadingSpinner /> (bare spinner; the
|
|
241
|
-
* Title supplies the surrounding heading/subtitle).
|
|
263
|
+
* Title supplies the surrounding heading/subtitle). On web, `loader`
|
|
264
|
+
* replaces the ring with a host loader (passed to LoadingSpinner `icon`);
|
|
265
|
+
* the slot keeps its position, spacing and status-region semantics.
|
|
242
266
|
* - `{ type: 'none' }` — slot is unmounted (matches Figma
|
|
243
267
|
* `Show Icon/component = False`).
|
|
244
268
|
*
|
|
@@ -253,6 +277,9 @@ PrizmaLoadingSpinner.displayName = "PrizmaLoadingSpinner";
|
|
|
253
277
|
* the accessible name via `aria-labelledby`.
|
|
254
278
|
* - Otherwise the root is a plain content container; the heading is a
|
|
255
279
|
* standard <h2>, the subtitle a <p>.
|
|
280
|
+
* - When the subtitle renders, the heading's `aria-describedby` references
|
|
281
|
+
* it (merged with any host `headingProps['aria-describedby']`), so a
|
|
282
|
+
* screen reader that lands on the heading also reads the subtitle.
|
|
256
283
|
* - The icon slot is ALWAYS decorative (`aria-hidden`): the title text
|
|
257
284
|
* carries the meaning. This also silences the embedded spinner's own
|
|
258
285
|
* status region + "Loading" span, so the Title root is the single
|
|
@@ -283,11 +310,13 @@ var StatusIcon = ({ status }) => {
|
|
|
283
310
|
className: `prizma-title__status-icon ${modifier}`
|
|
284
311
|
});
|
|
285
312
|
};
|
|
286
|
-
var PrizmaTitle = D(({ variant = "centered", title, showSubtitle = false, subtitle, icon = { type: "none" }, headingRef, headingProps, className, ...rest }, ref) => {
|
|
313
|
+
var PrizmaTitle = D(({ variant = "centered", title, showSubtitle = false, subtitle, icon = { type: "none" }, headingRef, headingProps, subtitleProps, className, ...rest }, ref) => {
|
|
287
314
|
const generatedHeadingId = g();
|
|
288
315
|
const headingId = headingProps?.id ?? generatedHeadingId;
|
|
316
|
+
const subtitleId = subtitleProps?.id ?? `${generatedHeadingId}-subtitle`;
|
|
317
|
+
const hasSubtitle = showSubtitle && Boolean(subtitle);
|
|
289
318
|
const isLoadingShape = icon.type === "spinner";
|
|
290
|
-
const slotChild = icon.type === "status" ? u(StatusIcon, { status: icon.status }) : icon.type === "spinner" ? u(PrizmaLoadingSpinner, {}) : null;
|
|
319
|
+
const slotChild = icon.type === "status" ? u(StatusIcon, { status: icon.status }) : icon.type === "spinner" ? u(PrizmaLoadingSpinner, { icon: icon.loader }) : null;
|
|
291
320
|
const rootClassName = [
|
|
292
321
|
"prizma-title",
|
|
293
322
|
variant === "left" ? "prizma-title--left" : "prizma-title--centered",
|
|
@@ -310,11 +339,14 @@ var PrizmaTitle = D(({ variant = "centered", title, showSubtitle = false, subtit
|
|
|
310
339
|
...headingProps,
|
|
311
340
|
ref: headingRef,
|
|
312
341
|
id: headingId,
|
|
342
|
+
"aria-describedby": mergeAriaIds(headingProps?.["aria-describedby"], hasSubtitle ? subtitleId : void 0),
|
|
313
343
|
className: ["prizma-title__heading", headingProps?.className].filter(Boolean).join(" "),
|
|
314
344
|
children: title
|
|
315
345
|
}),
|
|
316
|
-
|
|
317
|
-
|
|
346
|
+
hasSubtitle && u("p", {
|
|
347
|
+
...subtitleProps,
|
|
348
|
+
id: subtitleId,
|
|
349
|
+
className: ["prizma-title__subtitle", subtitleProps?.className].filter(Boolean).join(" "),
|
|
318
350
|
children: subtitle
|
|
319
351
|
})
|
|
320
352
|
]
|
|
@@ -335,11 +367,88 @@ var cn = (...classes) => {
|
|
|
335
367
|
return result.join(" ");
|
|
336
368
|
};
|
|
337
369
|
//#endregion
|
|
338
|
-
//#region src/shared/
|
|
339
|
-
var
|
|
340
|
-
var
|
|
341
|
-
function
|
|
342
|
-
|
|
370
|
+
//#region src/shared/lottie/lottie.tsx
|
|
371
|
+
var lottiePromise = null;
|
|
372
|
+
var lottiePlayer;
|
|
373
|
+
async function loadLottie() {
|
|
374
|
+
if (lottiePromise) return lottiePromise;
|
|
375
|
+
lottiePromise = import("./lottie_light-Bam05Bc9.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => {
|
|
376
|
+
lottiePlayer = mod.default;
|
|
377
|
+
return lottiePlayer;
|
|
378
|
+
}, (error) => {
|
|
379
|
+
lottiePromise = null;
|
|
380
|
+
throw error;
|
|
381
|
+
});
|
|
382
|
+
return lottiePromise;
|
|
383
|
+
}
|
|
384
|
+
var AUTO_STOP_AFTER_MS = 5e3;
|
|
385
|
+
function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
|
|
386
|
+
const containerRef = A(null);
|
|
387
|
+
const effectiveAutoplay = reverse ? false : autoplay;
|
|
388
|
+
_(() => {
|
|
389
|
+
const container = containerRef.current;
|
|
390
|
+
if (!container) return;
|
|
391
|
+
let anim;
|
|
392
|
+
let stopTimer;
|
|
393
|
+
let isMounted = true;
|
|
394
|
+
const start = (lottie) => {
|
|
395
|
+
if (!isMounted) return;
|
|
396
|
+
container.replaceChildren();
|
|
397
|
+
anim = lottie.loadAnimation({
|
|
398
|
+
container,
|
|
399
|
+
renderer: "svg",
|
|
400
|
+
loop,
|
|
401
|
+
autoplay: effectiveAutoplay,
|
|
402
|
+
animationData
|
|
403
|
+
});
|
|
404
|
+
if (reverse) {
|
|
405
|
+
anim.setDirection(-1);
|
|
406
|
+
anim.goToAndPlay(anim.totalFrames - 1, true);
|
|
407
|
+
}
|
|
408
|
+
if (onComplete) anim.addEventListener("complete", onComplete);
|
|
409
|
+
if (autoStop) stopTimer = window.setTimeout(() => {
|
|
410
|
+
const current = anim;
|
|
411
|
+
if (!current) return;
|
|
412
|
+
if (!stopFramePosition) {
|
|
413
|
+
current.pause();
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
const totalFrames = current.totalFrames;
|
|
417
|
+
if (!totalFrames || totalFrames <= 0) {
|
|
418
|
+
current.stop();
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
|
|
422
|
+
current.goToAndStop(targetFrame, true);
|
|
423
|
+
}, AUTO_STOP_AFTER_MS);
|
|
424
|
+
};
|
|
425
|
+
if (lottiePlayer) start(lottiePlayer);
|
|
426
|
+
else loadLottie().then(start, () => void 0);
|
|
427
|
+
return () => {
|
|
428
|
+
isMounted = false;
|
|
429
|
+
if (stopTimer !== void 0) window.clearTimeout(stopTimer);
|
|
430
|
+
if (anim) {
|
|
431
|
+
if (onComplete) anim.removeEventListener("complete", onComplete);
|
|
432
|
+
const frame = container.firstElementChild?.cloneNode(true);
|
|
433
|
+
anim.destroy();
|
|
434
|
+
if (frame) container.appendChild(frame);
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
}, [
|
|
438
|
+
animationData,
|
|
439
|
+
loop,
|
|
440
|
+
effectiveAutoplay,
|
|
441
|
+
onComplete,
|
|
442
|
+
reverse,
|
|
443
|
+
autoStop,
|
|
444
|
+
stopFramePosition
|
|
445
|
+
]);
|
|
446
|
+
return /* @__PURE__ */ u("div", {
|
|
447
|
+
ref: containerRef,
|
|
448
|
+
style,
|
|
449
|
+
className,
|
|
450
|
+
"aria-hidden": "true"
|
|
451
|
+
});
|
|
343
452
|
}
|
|
344
453
|
//#endregion
|
|
345
454
|
//#region src/shared/assets/assetRegistry.ts
|
|
@@ -366,30 +475,30 @@ var assetRegistry = {
|
|
|
366
475
|
};
|
|
367
476
|
var animationRegistry = {
|
|
368
477
|
"id.tutorial.front": {
|
|
369
|
-
default: () => import("./id-tutorial-
|
|
478
|
+
default: () => import("./id-tutorial-DkKH3eTE.js").then(defaultExport),
|
|
370
479
|
a11y: decorative
|
|
371
480
|
},
|
|
372
481
|
"id.tutorial.back": {
|
|
373
|
-
default: () => import("./back-tutorial-
|
|
482
|
+
default: () => import("./back-tutorial-B9W63fa-.js").then(defaultExport),
|
|
374
483
|
a11y: decorative
|
|
375
484
|
},
|
|
376
485
|
"id.tutorial.passport": {
|
|
377
|
-
default: () => import("./passport-tutorial-
|
|
486
|
+
default: () => import("./passport-tutorial-D3Fpk-Tj.js").then(defaultExport),
|
|
378
487
|
a11y: decorative
|
|
379
488
|
},
|
|
380
489
|
"id.flip": {
|
|
381
|
-
default: () => import("./flip-animation-
|
|
490
|
+
default: () => import("./flip-animation-DJVnWWL5.js").then(defaultExport),
|
|
382
491
|
a11y: decorative
|
|
383
492
|
},
|
|
384
493
|
"id.processing": {
|
|
385
494
|
default: {
|
|
386
|
-
horizontal: () => import("./id-laser-h-
|
|
387
|
-
vertical: () => import("./id-laser-v-
|
|
495
|
+
horizontal: () => import("./id-laser-h-6Am_cjM8.js").then(defaultExport),
|
|
496
|
+
vertical: () => import("./id-laser-v-DXoF3flH.js").then(defaultExport)
|
|
388
497
|
},
|
|
389
498
|
a11y: decorative
|
|
390
499
|
},
|
|
391
500
|
"selfie.tutorial": {
|
|
392
|
-
default: () => import("./selfieTutorial-
|
|
501
|
+
default: () => import("./selfieTutorial-DnsRD1Z9.js").then(defaultExport),
|
|
393
502
|
a11y: decorative
|
|
394
503
|
},
|
|
395
504
|
"loader.spinner": {
|
|
@@ -515,6 +624,13 @@ function resolveAnimation(key, scopes = {}) {
|
|
|
515
624
|
};
|
|
516
625
|
}
|
|
517
626
|
//#endregion
|
|
627
|
+
//#region src/shared/assets/instanceOverrides.ts
|
|
628
|
+
var InstanceOverridesContext = Q({});
|
|
629
|
+
var InstanceOverridesProvider = InstanceOverridesContext.Provider;
|
|
630
|
+
function useInstanceOverrides() {
|
|
631
|
+
return x(InstanceOverridesContext);
|
|
632
|
+
}
|
|
633
|
+
//#endregion
|
|
518
634
|
//#region src/shared/assets/useAsset.ts
|
|
519
635
|
function useAsset(key) {
|
|
520
636
|
const instance = useInstanceOverrides();
|
|
@@ -544,11 +660,132 @@ function useAnimation(key) {
|
|
|
544
660
|
uiConfig.animations
|
|
545
661
|
]);
|
|
546
662
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
663
|
+
//#endregion
|
|
664
|
+
//#region src/shared/assets/animatedAsset.tsx
|
|
665
|
+
var overrideUrlCache = /* @__PURE__ */ new Map();
|
|
666
|
+
function fetchAnimation(url) {
|
|
667
|
+
const cached = overrideUrlCache.get(url);
|
|
668
|
+
if (cached) return cached;
|
|
669
|
+
const pending = fetch(url).then((response) => {
|
|
670
|
+
if (!response.ok) throw new Error(`Request for "${url}" failed with status ${response.status}.`);
|
|
671
|
+
return response.json();
|
|
672
|
+
});
|
|
673
|
+
overrideUrlCache.set(url, pending);
|
|
674
|
+
pending.catch(() => overrideUrlCache.delete(url));
|
|
675
|
+
return pending;
|
|
676
|
+
}
|
|
677
|
+
function loadAnimationDefault(def, orientation) {
|
|
678
|
+
if (def === null) return Promise.resolve(null);
|
|
679
|
+
if (typeof def === "function") return def();
|
|
680
|
+
return def[orientation]();
|
|
681
|
+
}
|
|
682
|
+
var defaultCache = /* @__PURE__ */ new Map();
|
|
683
|
+
function defaultCacheKey(name, orientation) {
|
|
684
|
+
return `${name}|${orientation}`;
|
|
685
|
+
}
|
|
686
|
+
function loadDefaultCached(name, orientation) {
|
|
687
|
+
const cacheKey = defaultCacheKey(name, orientation);
|
|
688
|
+
if (defaultCache.has(cacheKey)) return Promise.resolve(defaultCache.get(cacheKey) ?? null);
|
|
689
|
+
return loadAnimationDefault(animationRegistry[name]?.default ?? null, orientation).then((value) => {
|
|
690
|
+
defaultCache.set(cacheKey, value);
|
|
691
|
+
return value;
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Warms the built-in animation cache for the given catalog keys so a later
|
|
696
|
+
* render is synchronous (no flash). Best-effort; call it before the screen
|
|
697
|
+
* mounts.
|
|
698
|
+
*/
|
|
699
|
+
function preloadAnimations(keys, orientation = "vertical") {
|
|
700
|
+
for (const key of keys) loadDefaultCached(key, orientation).catch(() => {});
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Resolves the winning animation to parsed `animationData` plus whether it came
|
|
704
|
+
* from a customer override. Reads the default cache synchronously on first
|
|
705
|
+
* render, so a preloaded animation shows with no flash. A failed override URL
|
|
706
|
+
* silently falls back to the built-in default.
|
|
707
|
+
*
|
|
708
|
+
* Shared by `AnimatedAsset` and by tutorial surfaces that render Lottie
|
|
709
|
+
* themselves (e.g. `BaseTutorial`, which recolors only built-in defaults).
|
|
710
|
+
*
|
|
711
|
+
* `onFallback`, if given, fires only when a *configured* override actually
|
|
712
|
+
* fails to load (never when there was simply no override to begin with) —
|
|
713
|
+
* for a caller whose true fallback lives outside this system entirely, so it
|
|
714
|
+
* can react to a real failure instead of committing to render this component before
|
|
715
|
+
* knowing whether the override will actually work.
|
|
716
|
+
*/
|
|
717
|
+
function useAnimationData(name, orientation = "vertical", onFallback) {
|
|
718
|
+
const resolved = useAnimation(name);
|
|
719
|
+
const type = resolved?.type;
|
|
720
|
+
const isOverride = isActiveOverride(resolved);
|
|
721
|
+
const overrideUrl = resolved?.type === "override-url" ? resolved.url : void 0;
|
|
722
|
+
const overrideData = resolved?.type === "override-data" ? resolved.animationData : void 0;
|
|
723
|
+
const [data, setData] = d(() => {
|
|
724
|
+
if (type === "override-data") return overrideData ?? null;
|
|
725
|
+
if (type === "default") return defaultCache.get(defaultCacheKey(name, orientation)) ?? null;
|
|
726
|
+
return null;
|
|
727
|
+
});
|
|
728
|
+
const [overrideFailed, setOverrideFailed] = d(false);
|
|
729
|
+
y(() => {
|
|
730
|
+
let active = true;
|
|
731
|
+
setOverrideFailed(false);
|
|
732
|
+
if (type === void 0) setData(null);
|
|
733
|
+
else if (type === "override-data") setData(overrideData ?? null);
|
|
734
|
+
else if (type === "override-url" && overrideUrl !== void 0) fetchAnimation(overrideUrl).then((value) => {
|
|
735
|
+
if (active) setData(value);
|
|
736
|
+
}, (error) => {
|
|
737
|
+
`${name}`;
|
|
738
|
+
if (active) {
|
|
739
|
+
setOverrideFailed(true);
|
|
740
|
+
loadDefaultCached(name, orientation).then((value) => {
|
|
741
|
+
if (active) setData(value);
|
|
742
|
+
}, () => {});
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
else loadDefaultCached(name, orientation).then((value) => {
|
|
746
|
+
if (active) setData(value);
|
|
747
|
+
}, (error) => {
|
|
748
|
+
if (active) {
|
|
749
|
+
setData(null);
|
|
750
|
+
`${name}`;
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
return () => {
|
|
754
|
+
active = false;
|
|
755
|
+
};
|
|
756
|
+
}, [
|
|
757
|
+
name,
|
|
758
|
+
orientation,
|
|
759
|
+
type,
|
|
760
|
+
overrideUrl,
|
|
761
|
+
overrideData
|
|
762
|
+
]);
|
|
763
|
+
y(() => {
|
|
764
|
+
if (overrideFailed) onFallback?.();
|
|
765
|
+
}, [overrideFailed, onFallback]);
|
|
766
|
+
return {
|
|
767
|
+
data,
|
|
768
|
+
isOverride
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Renders a Lottie animation by catalog key, honoring the resolved precedence
|
|
773
|
+
* (per-instance → global → built-in default). Renders nothing while pending or
|
|
774
|
+
* when there is no Lottie to show; the container is `aria-hidden` (all catalog
|
|
775
|
+
* animations are decorative).
|
|
776
|
+
*/
|
|
777
|
+
function AnimatedAsset({ name, autoStop, stopFramePosition, orientation = "vertical", loop, reverse, onComplete, class: className, onFallback }) {
|
|
778
|
+
const { data } = useAnimationData(name, orientation, onFallback);
|
|
779
|
+
if (data === null) return null;
|
|
780
|
+
return /* @__PURE__ */ u(Lottie, {
|
|
781
|
+
animationData: data,
|
|
782
|
+
autoStop,
|
|
783
|
+
stopFramePosition,
|
|
784
|
+
loop,
|
|
785
|
+
reverse,
|
|
786
|
+
onComplete,
|
|
787
|
+
className
|
|
788
|
+
});
|
|
552
789
|
}
|
|
553
790
|
//#endregion
|
|
554
791
|
//#region src/shared/assets/asset.tsx
|
|
@@ -592,7 +829,7 @@ function useSanitizedSvg(raw) {
|
|
|
592
829
|
y(() => {
|
|
593
830
|
if (raw === null) return;
|
|
594
831
|
let active = true;
|
|
595
|
-
import("./sanitizeSvg-
|
|
832
|
+
import("./sanitizeSvg-IfqLuP1N.js").then(({ sanitizeSvg }) => sanitizeSvg(raw)).catch(() => ({
|
|
596
833
|
markup: "",
|
|
597
834
|
strippedHref: false
|
|
598
835
|
})).then((svg) => {
|
|
@@ -690,311 +927,45 @@ function Asset({ name, class: className, default: defaultAsset, onFallback }) {
|
|
|
690
927
|
return renderAsset(result.content, result.a11y, t, className);
|
|
691
928
|
}
|
|
692
929
|
//#endregion
|
|
693
|
-
//#region src/shared/
|
|
694
|
-
var lottiePromise = null;
|
|
695
|
-
var lottiePlayer;
|
|
696
|
-
async function loadLottie() {
|
|
697
|
-
if (lottiePromise) return lottiePromise;
|
|
698
|
-
lottiePromise = import("./lottie_light-B819EhaL.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => {
|
|
699
|
-
lottiePlayer = mod.default;
|
|
700
|
-
return lottiePlayer;
|
|
701
|
-
}, (error) => {
|
|
702
|
-
lottiePromise = null;
|
|
703
|
-
throw error;
|
|
704
|
-
});
|
|
705
|
-
return lottiePromise;
|
|
706
|
-
}
|
|
707
|
-
var AUTO_STOP_AFTER_MS = 5e3;
|
|
708
|
-
function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
|
|
709
|
-
const containerRef = A(null);
|
|
710
|
-
const effectiveAutoplay = reverse ? false : autoplay;
|
|
711
|
-
_(() => {
|
|
712
|
-
const container = containerRef.current;
|
|
713
|
-
if (!container) return;
|
|
714
|
-
let anim;
|
|
715
|
-
let stopTimer;
|
|
716
|
-
let isMounted = true;
|
|
717
|
-
const start = (lottie) => {
|
|
718
|
-
if (!isMounted) return;
|
|
719
|
-
container.replaceChildren();
|
|
720
|
-
anim = lottie.loadAnimation({
|
|
721
|
-
container,
|
|
722
|
-
renderer: "svg",
|
|
723
|
-
loop,
|
|
724
|
-
autoplay: effectiveAutoplay,
|
|
725
|
-
animationData
|
|
726
|
-
});
|
|
727
|
-
if (reverse) {
|
|
728
|
-
anim.setDirection(-1);
|
|
729
|
-
anim.goToAndPlay(anim.totalFrames - 1, true);
|
|
730
|
-
}
|
|
731
|
-
if (onComplete) anim.addEventListener("complete", onComplete);
|
|
732
|
-
if (autoStop) stopTimer = window.setTimeout(() => {
|
|
733
|
-
const current = anim;
|
|
734
|
-
if (!current) return;
|
|
735
|
-
if (!stopFramePosition) {
|
|
736
|
-
current.pause();
|
|
737
|
-
return;
|
|
738
|
-
}
|
|
739
|
-
const totalFrames = current.totalFrames;
|
|
740
|
-
if (!totalFrames || totalFrames <= 0) {
|
|
741
|
-
current.stop();
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
|
|
745
|
-
current.goToAndStop(targetFrame, true);
|
|
746
|
-
}, AUTO_STOP_AFTER_MS);
|
|
747
|
-
};
|
|
748
|
-
if (lottiePlayer) start(lottiePlayer);
|
|
749
|
-
else loadLottie().then(start, () => void 0);
|
|
750
|
-
return () => {
|
|
751
|
-
isMounted = false;
|
|
752
|
-
if (stopTimer !== void 0) window.clearTimeout(stopTimer);
|
|
753
|
-
if (anim) {
|
|
754
|
-
if (onComplete) anim.removeEventListener("complete", onComplete);
|
|
755
|
-
const frame = container.firstElementChild?.cloneNode(true);
|
|
756
|
-
anim.destroy();
|
|
757
|
-
if (frame) container.appendChild(frame);
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
}, [
|
|
761
|
-
animationData,
|
|
762
|
-
loop,
|
|
763
|
-
effectiveAutoplay,
|
|
764
|
-
onComplete,
|
|
765
|
-
reverse,
|
|
766
|
-
autoStop,
|
|
767
|
-
stopFramePosition
|
|
768
|
-
]);
|
|
769
|
-
return /* @__PURE__ */ u("div", {
|
|
770
|
-
ref: containerRef,
|
|
771
|
-
style,
|
|
772
|
-
className,
|
|
773
|
-
"aria-hidden": "true"
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
//#endregion
|
|
777
|
-
//#region src/shared/assets/animatedAsset.tsx
|
|
778
|
-
var overrideUrlCache = /* @__PURE__ */ new Map();
|
|
779
|
-
function fetchAnimation(url) {
|
|
780
|
-
const cached = overrideUrlCache.get(url);
|
|
781
|
-
if (cached) return cached;
|
|
782
|
-
const pending = fetch(url).then((response) => {
|
|
783
|
-
if (!response.ok) throw new Error(`Request for "${url}" failed with status ${response.status}.`);
|
|
784
|
-
return response.json();
|
|
785
|
-
});
|
|
786
|
-
overrideUrlCache.set(url, pending);
|
|
787
|
-
pending.catch(() => overrideUrlCache.delete(url));
|
|
788
|
-
return pending;
|
|
789
|
-
}
|
|
790
|
-
function loadAnimationDefault(def, orientation) {
|
|
791
|
-
if (def === null) return Promise.resolve(null);
|
|
792
|
-
if (typeof def === "function") return def();
|
|
793
|
-
return def[orientation]();
|
|
794
|
-
}
|
|
795
|
-
var defaultCache = /* @__PURE__ */ new Map();
|
|
796
|
-
function defaultCacheKey(name, orientation) {
|
|
797
|
-
return `${name}|${orientation}`;
|
|
798
|
-
}
|
|
799
|
-
function loadDefaultCached(name, orientation) {
|
|
800
|
-
const cacheKey = defaultCacheKey(name, orientation);
|
|
801
|
-
if (defaultCache.has(cacheKey)) return Promise.resolve(defaultCache.get(cacheKey) ?? null);
|
|
802
|
-
return loadAnimationDefault(animationRegistry[name]?.default ?? null, orientation).then((value) => {
|
|
803
|
-
defaultCache.set(cacheKey, value);
|
|
804
|
-
return value;
|
|
805
|
-
});
|
|
806
|
-
}
|
|
930
|
+
//#region src/shared/loader/useLoaderOverride.tsx
|
|
807
931
|
/**
|
|
808
|
-
*
|
|
809
|
-
*
|
|
810
|
-
* mounts.
|
|
811
|
-
*/
|
|
812
|
-
function preloadAnimations(keys, orientation = "vertical") {
|
|
813
|
-
for (const key of keys) loadDefaultCached(key, orientation).catch(() => {});
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* Resolves the winning animation to parsed `animationData` plus whether it came
|
|
817
|
-
* from a customer override. Reads the default cache synchronously on first
|
|
818
|
-
* render, so a preloaded animation shows with no flash. A failed override URL
|
|
819
|
-
* silently falls back to the built-in default.
|
|
932
|
+
* The customer's `loader.spinner` override, ready for the `icon` slot of
|
|
933
|
+
* `PrizmaLoadingSpinner` (or the SDK Title's spinner slot).
|
|
820
934
|
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
935
|
+
* Returns `undefined` when there is no override, or once a configured
|
|
936
|
+
* override fails to load, so the caller renders the Prizma ring instead.
|
|
937
|
+
* A Lottie animation outranks an SVG when both are set.
|
|
823
938
|
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
*/
|
|
830
|
-
function useAnimationData(name, orientation = "vertical", onFallback) {
|
|
831
|
-
const resolved = useAnimation(name);
|
|
832
|
-
const type = resolved?.type;
|
|
833
|
-
const isOverride = isActiveOverride(resolved);
|
|
834
|
-
const overrideUrl = resolved?.type === "override-url" ? resolved.url : void 0;
|
|
835
|
-
const overrideData = resolved?.type === "override-data" ? resolved.animationData : void 0;
|
|
836
|
-
const [data, setData] = d(() => {
|
|
837
|
-
if (type === "override-data") return overrideData ?? null;
|
|
838
|
-
if (type === "default") return defaultCache.get(defaultCacheKey(name, orientation)) ?? null;
|
|
839
|
-
return null;
|
|
840
|
-
});
|
|
841
|
-
const [overrideFailed, setOverrideFailed] = d(false);
|
|
842
|
-
y(() => {
|
|
843
|
-
let active = true;
|
|
844
|
-
setOverrideFailed(false);
|
|
845
|
-
if (type === void 0) setData(null);
|
|
846
|
-
else if (type === "override-data") setData(overrideData ?? null);
|
|
847
|
-
else if (type === "override-url" && overrideUrl !== void 0) fetchAnimation(overrideUrl).then((value) => {
|
|
848
|
-
if (active) setData(value);
|
|
849
|
-
}, (error) => {
|
|
850
|
-
`${name}`;
|
|
851
|
-
if (active) {
|
|
852
|
-
setOverrideFailed(true);
|
|
853
|
-
loadDefaultCached(name, orientation).then((value) => {
|
|
854
|
-
if (active) setData(value);
|
|
855
|
-
}, () => {});
|
|
856
|
-
}
|
|
857
|
-
});
|
|
858
|
-
else loadDefaultCached(name, orientation).then((value) => {
|
|
859
|
-
if (active) setData(value);
|
|
860
|
-
}, (error) => {
|
|
861
|
-
if (active) {
|
|
862
|
-
setData(null);
|
|
863
|
-
`${name}`;
|
|
864
|
-
}
|
|
865
|
-
});
|
|
866
|
-
return () => {
|
|
867
|
-
active = false;
|
|
868
|
-
};
|
|
869
|
-
}, [
|
|
870
|
-
name,
|
|
871
|
-
orientation,
|
|
872
|
-
type,
|
|
873
|
-
overrideUrl,
|
|
874
|
-
overrideData
|
|
875
|
-
]);
|
|
876
|
-
y(() => {
|
|
877
|
-
if (overrideFailed) onFallback?.();
|
|
878
|
-
}, [overrideFailed, onFallback]);
|
|
879
|
-
return {
|
|
880
|
-
data,
|
|
881
|
-
isOverride
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
/**
|
|
885
|
-
* Renders a Lottie animation by catalog key, honoring the resolved precedence
|
|
886
|
-
* (per-instance → global → built-in default). Renders nothing while pending or
|
|
887
|
-
* when there is no Lottie to show; the container is `aria-hidden` (all catalog
|
|
888
|
-
* animations are decorative).
|
|
889
|
-
*/
|
|
890
|
-
function AnimatedAsset({ name, autoStop, stopFramePosition, orientation = "vertical", loop, reverse, onComplete, class: className, onFallback }) {
|
|
891
|
-
const { data } = useAnimationData(name, orientation, onFallback);
|
|
892
|
-
if (data === null) return null;
|
|
893
|
-
return /* @__PURE__ */ u(Lottie, {
|
|
894
|
-
animationData: data,
|
|
895
|
-
autoStop,
|
|
896
|
-
stopFramePosition,
|
|
897
|
-
loop,
|
|
898
|
-
reverse,
|
|
899
|
-
onComplete,
|
|
900
|
-
className
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
//#endregion
|
|
904
|
-
//#region src/shared/loader/loadingIcon.tsx
|
|
905
|
-
/**
|
|
906
|
-
* Duration of the CSS spin animation on `.IncodeLoadingIcon`.
|
|
907
|
-
* Must stay in sync with the `animation-duration` declared in the stylesheet.
|
|
939
|
+
* The override is sized by `--prizma-spinner-ring-size`, the same token that
|
|
940
|
+
* sizes the Prizma ring it replaces (see `loaderOverride.css`).
|
|
941
|
+
*
|
|
942
|
+
* The legacy `LoadingIcon` keeps its own copy of this logic: it backs the
|
|
943
|
+
* legacy `Button` and is intentionally left unchanged.
|
|
908
944
|
*/
|
|
909
|
-
|
|
910
|
-
var SpinnerPrimary = ({ size, className }) => {
|
|
911
|
-
return /* @__PURE__ */ u("svg", {
|
|
912
|
-
width: size,
|
|
913
|
-
height: size,
|
|
914
|
-
viewBox: "0 0 31 31",
|
|
915
|
-
fill: "none",
|
|
916
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
917
|
-
class: cn("IncodeLoadingIconPrimaryIcon", className),
|
|
918
|
-
"aria-hidden": "true",
|
|
919
|
-
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" })
|
|
920
|
-
});
|
|
921
|
-
};
|
|
922
|
-
var SpinnerSecondary = ({ size, className }) => {
|
|
923
|
-
return /* @__PURE__ */ u("svg", {
|
|
924
|
-
width: size,
|
|
925
|
-
height: size,
|
|
926
|
-
viewBox: "0 0 31 31",
|
|
927
|
-
fill: "none",
|
|
928
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
929
|
-
class: cn("IncodeLoadingIconSecondaryIcon", className),
|
|
930
|
-
"aria-hidden": "true",
|
|
931
|
-
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" })]
|
|
932
|
-
});
|
|
933
|
-
};
|
|
934
|
-
var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
|
|
935
|
-
const ref = A(null);
|
|
936
|
-
const overrideRef = A(null);
|
|
945
|
+
function useLoaderOverride() {
|
|
937
946
|
const animation = useAnimation("loader.spinner");
|
|
938
947
|
const svg = useAsset("loader.spinner");
|
|
939
|
-
const
|
|
940
|
-
const
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
* Cross-module loaders (e.g. ID processing → selfie initialising) unmount
|
|
946
|
-
* and remount this component as the user moves between flow steps. By
|
|
947
|
-
* default each remount restarts the CSS spin animation from frame 0, which
|
|
948
|
-
* reads as a visible "stutter" or reset of the spinner during otherwise
|
|
949
|
-
* seamless transitions.
|
|
950
|
-
*
|
|
951
|
-
* To keep the rotation continuous across remounts we anchor the animation
|
|
952
|
-
* to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
|
|
953
|
-
* how far into the current spin cycle we are, and applying it as a
|
|
954
|
-
* negative `animation-delay` makes the new instance pick up exactly where
|
|
955
|
-
* the previous one left off. (Built-in default only.)
|
|
956
|
-
*/
|
|
957
|
-
_(() => {
|
|
958
|
-
if (hasOverride || !ref.current) return;
|
|
959
|
-
const offsetMs = performance.now() % SPIN_DURATION_MS;
|
|
960
|
-
ref.current.style.animationDelay = `-${offsetMs}ms`;
|
|
961
|
-
}, [hasOverride]);
|
|
962
|
-
_(() => {
|
|
963
|
-
if (!overrideRef.current) return;
|
|
964
|
-
overrideRef.current.style.width = `${size}px`;
|
|
965
|
-
overrideRef.current.style.height = `${size}px`;
|
|
966
|
-
}, [size, hasOverride]);
|
|
967
|
-
if (hasOverride) return /* @__PURE__ */ u("div", {
|
|
968
|
-
ref: overrideRef,
|
|
969
|
-
class: "IncodeLoadingIconOverride",
|
|
970
|
-
children: hasAnimationOverride ? /* @__PURE__ */ u(AnimatedAsset, {
|
|
948
|
+
const [failed, setFailed] = d(false);
|
|
949
|
+
const handleFallback = q(() => setFailed(true), []);
|
|
950
|
+
if (failed) return void 0;
|
|
951
|
+
if (isActiveOverride(animation)) return /* @__PURE__ */ u("div", {
|
|
952
|
+
class: "IncodeLoadingIconOverride IncodeLoaderOverride",
|
|
953
|
+
children: /* @__PURE__ */ u(AnimatedAsset, {
|
|
971
954
|
name: "loader.spinner",
|
|
972
955
|
loop: true,
|
|
973
956
|
onFallback: handleFallback
|
|
974
|
-
})
|
|
957
|
+
})
|
|
958
|
+
});
|
|
959
|
+
if (isActiveOverride(svg)) return /* @__PURE__ */ u("div", {
|
|
960
|
+
class: "IncodeLoadingIconOverride IncodeLoaderOverride",
|
|
961
|
+
children: /* @__PURE__ */ u(Asset, {
|
|
975
962
|
name: "loader.spinner",
|
|
976
963
|
onFallback: handleFallback
|
|
977
964
|
})
|
|
978
965
|
});
|
|
979
|
-
|
|
980
|
-
ref,
|
|
981
|
-
class: "IncodeLoadingIcon",
|
|
982
|
-
children: [/* @__PURE__ */ u(SpinnerSecondary, {
|
|
983
|
-
size,
|
|
984
|
-
className: secondaryClass
|
|
985
|
-
}), /* @__PURE__ */ u("div", {
|
|
986
|
-
class: "IncodeLoadingIconPrimary",
|
|
987
|
-
children: /* @__PURE__ */ u(SpinnerPrimary, {
|
|
988
|
-
size,
|
|
989
|
-
className: primaryClass
|
|
990
|
-
})
|
|
991
|
-
})]
|
|
992
|
-
});
|
|
993
|
-
};
|
|
966
|
+
}
|
|
994
967
|
//#endregion
|
|
995
968
|
//#region src/shared/title/title.tsx
|
|
996
|
-
/** Prizma's default `--prizma-spinner-ring-size`. */
|
|
997
|
-
var DEFAULT_SPINNER_SIZE = 48;
|
|
998
969
|
function classValue(value) {
|
|
999
970
|
return typeof value === "object" ? value.value : value;
|
|
1000
971
|
}
|
|
@@ -1002,10 +973,10 @@ function assignRef(ref, value) {
|
|
|
1002
973
|
if (typeof ref === "function") ref(value);
|
|
1003
974
|
else if (ref) ref.current = value;
|
|
1004
975
|
}
|
|
1005
|
-
var Title = D(({ children, className, class: classAttribute, subtitle, showSubtitle = Boolean(subtitle), icon, variant, subtitleProps, headingProps, headingRef, wrapperProps, wrapperRef,
|
|
976
|
+
var Title = D(({ children, className, class: classAttribute, subtitle, showSubtitle = Boolean(subtitle), icon, variant, subtitleProps, headingProps, headingRef, wrapperProps, wrapperRef, ...rest }, ref) => {
|
|
1006
977
|
const generatedId = g();
|
|
1007
|
-
const
|
|
1008
|
-
const customSpinner = icon?.type === "spinner" &&
|
|
978
|
+
const loaderOverride = useLoaderOverride();
|
|
979
|
+
const customSpinner = icon?.type === "spinner" && loaderOverride !== void 0;
|
|
1009
980
|
const subtitleId = subtitleProps?.id ?? `${generatedId}-subtitle`;
|
|
1010
981
|
const hasSubtitle = typeof children === "string" && showSubtitle && Boolean(subtitle);
|
|
1011
982
|
const setRef = q((node) => {
|
|
@@ -1030,7 +1001,7 @@ var Title = D(({ children, className, class: classAttribute, subtitle, showSubti
|
|
|
1030
1001
|
customSpinner && /* @__PURE__ */ u("div", {
|
|
1031
1002
|
className: "IncodeTitleIconSlot",
|
|
1032
1003
|
"aria-hidden": "true",
|
|
1033
|
-
children:
|
|
1004
|
+
children: loaderOverride
|
|
1034
1005
|
}),
|
|
1035
1006
|
/* @__PURE__ */ u(PrizmaTitle, {
|
|
1036
1007
|
title: children,
|
|
@@ -1126,4 +1097,4 @@ var Spacer = M(function Spacer({ size, className, direction = "vertical" }) {
|
|
|
1126
1097
|
return /* @__PURE__ */ u("div", { class: `${className || ""}` });
|
|
1127
1098
|
});
|
|
1128
1099
|
//#endregion
|
|
1129
|
-
export {
|
|
1100
|
+
export { PrizmaLoadingSpinner as _, AnimatedAsset as a, createIcon as b, useAnimation as c, useInstanceOverrides as d, isActiveOverride as f, mergeAriaIds as g, cn as h, Asset as i, useAsset as l, loadLottie as m, Title as n, preloadAnimations as o, Lottie as p, useLoaderOverride as r, useAnimationData as s, Spacer as t, InstanceOverridesProvider as u, IconCross as v, IconCheck as y };
|