@incodetech/web 2.4.1 → 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.
Files changed (365) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-DRRBxdLP.js} +23 -8
  3. package/dist/Password-CY3Tv_5W.js +212 -0
  4. package/dist/RadioGroup-CnxMGtas.js +123 -0
  5. package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
  6. package/dist/RequiredMarker-CAqxArxr.js +16 -0
  7. package/dist/TextField-MsdsbAbT.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-CtJyXRHO.js} +129 -881
  10. package/dist/{ageVerification-n-1fouaD.js → ageVerification-C6fgHkhK.js} +10 -8
  11. package/dist/{am-UBTEdpJv.js → am-BvQDMy8e.js} +129 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/applyStudioConfig-DO18I6Cf.js +126 -0
  14. package/dist/{ar-AE--KjG2EAr.js → ar-AE-CmS-eCPq.js} +129 -881
  15. package/dist/{ar-RFuhholc.js → ar-Bpe0wGYL.js} +129 -881
  16. package/dist/{ar-EG-y8SWJjy1.js → ar-EG-DaxpzWwx.js} +129 -881
  17. package/dist/assertClassBrand-F6pL6aIr.js +17 -0
  18. package/dist/authentication/authentication.es.js +9 -6
  19. package/dist/autoFocusTitle-D_vDhPqZ.js +19 -0
  20. package/dist/{az-4Z0ZZq7T.js → az-zSRFEU_F.js} +129 -881
  21. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
  22. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
  23. package/dist/base.css +1 -1
  24. package/dist/{baseTutorial-BixkM88z.js → baseTutorial-Bktx_Yrr.js} +9 -7
  25. package/dist/{bn-CNhjOqja.js → bn-BrITyCOh.js} +129 -881
  26. package/dist/{bottomSheet-B4REej8W.js → bottomSheet-CzU1QNua.js} +3 -3
  27. package/dist/{bs-Culcuxab.js → bs-rdaEnpNo.js} +128 -880
  28. package/dist/{ca-h1xwo6CW.js → ca-BEtpN_ag.js} +128 -880
  29. package/dist/cameraOverlay-D6NPWfIT.js +2 -0
  30. package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-DZHCfN1x.js} +9 -8
  31. package/dist/{cameraView-BpdAdfIK.js → cameraView-CYd-_y_r.js} +13 -14
  32. package/dist/capture-BBQJgktJ.js +2 -0
  33. package/dist/{tutorial-HfSD-QZ3.js → capture-BstPDTgL.js} +226 -82
  34. package/dist/capture-CkvbPbJK.js +754 -0
  35. package/dist/capture-DiJGnu9z.js +3 -0
  36. package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
  37. package/dist/captureFocusContext-FsGun4Yd.js +718 -0
  38. package/dist/captureFooter-BLJ1Qvov.js +47 -0
  39. package/dist/{ceb-pTDH3h1x.js → ceb-D5rPC9mY.js} +129 -881
  40. package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
  41. package/dist/certificate-issuance/styles.css +1 -1
  42. package/dist/certificate-issuance/styles.css.js +1 -1
  43. package/dist/{checkbox-CALR7EFM.js → checkbox-HfnbGBMk.js} +4 -4
  44. package/dist/chooser-Dm0wohHb.js +1517 -0
  45. package/dist/connectionError-BFVvBEMq.js +100 -0
  46. package/dist/consent/consent.es.js +19 -14
  47. package/dist/consent/styles.css +1 -1
  48. package/dist/consent/styles.css.js +1 -1
  49. package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
  50. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
  51. package/dist/{countrySelector-DKvvYxP6.js → countrySelector-CEJAgeRY.js} +6 -5
  52. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  53. package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-BEprNqLt.js} +128 -880
  54. package/dist/{cs-CrQuSSOI.js → cs-D_U436l9.js} +128 -880
  55. package/dist/curp-validation/curp-validation.es.js +97 -96
  56. package/dist/curp-validation/styles.css +1 -1
  57. package/dist/curp-validation/styles.css.js +1 -1
  58. package/dist/{customFields-DRwjotY-.js → customFields-DqebmaL5.js} +33 -20
  59. package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-DVSMbzw5.js} +11 -9
  60. package/dist/{da-DK-CgrU79mp.js → da-DK-dMikXCNn.js} +128 -880
  61. package/dist/dashboardTheme-CB91NoiD.js +388 -0
  62. package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-CVJ4LSep.js} +4 -5
  63. package/dist/dateInputComposed-DF0Dx86l.js +1 -0
  64. package/dist/{de-D0xnkswj.js → de-C3c7Bo-M.js} +128 -880
  65. package/dist/denied-BR9pZqKi.js +272 -0
  66. package/dist/devWarn-CXWsIkak.js +1034 -0
  67. package/dist/deviceWallet-DDHk7jBw.js +37 -0
  68. package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DKJgITR_.js} +4 -4
  69. package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-BgG6svjJ.js} +37 -15
  70. package/dist/document-capture/document-capture.es.js +1 -1
  71. package/dist/document-capture/styles.css +1 -1
  72. package/dist/document-capture/styles.css.js +1 -1
  73. package/dist/{documentCapture-DlBMtLvL.js → documentCapture-Cu3F_ka7.js} +136 -72
  74. package/dist/documentCapture-owKpu8oI.js +2 -0
  75. package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-BJCNWDGU.js} +8 -6
  76. package/dist/dropdownComposed-zidm_XVK.js +1 -0
  77. package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
  78. package/dist/ekyb/ekyb.es.js +1 -1
  79. package/dist/ekyb/styles.css +1 -1
  80. package/dist/ekyb/styles.css.js +1 -1
  81. package/dist/ekybModule-Qc_5cB3W.js +2 -0
  82. package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-tV6tUWe_.js} +109 -89
  83. package/dist/ekyc/ekyc.es.js +1 -1
  84. package/dist/ekyc/styles.css +1 -1
  85. package/dist/ekyc/styles.css.js +1 -1
  86. package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
  87. package/dist/ekyc-prefill/styles.css +2 -0
  88. package/dist/ekyc-prefill/styles.css.js +1 -0
  89. package/dist/ekycModule-BgB_xu54.js +789 -0
  90. package/dist/ekycModule-DZ7yboJO.js +2 -0
  91. package/dist/ekycPrefillModule-B0cJJiuu.js +2 -0
  92. package/dist/ekycPrefillModule-B1xn0veW.js +233 -0
  93. package/dist/{el-GR-DPUvlcvr.js → el-GR-eG5AImZr.js} +128 -880
  94. package/dist/{el-B5gLXHxC.js → el-LOaoXfUU.js} +129 -881
  95. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  96. package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-BleJ65-Y.js} +55 -36
  97. package/dist/email/email.es.js +21 -16
  98. package/dist/{emailInput-ClX3Lu8X.js → emailInput-BVx96bJy.js} +23 -12
  99. package/dist/{en-DNuMvR7-.js → en-B_-7--AN.js} +129 -881
  100. package/dist/{en-DG-DOwBuCCl.js → en-DG-BDnlBAUl.js} +129 -881
  101. package/dist/{errorContent-B_pH1MX7.js → errorContent-x8IajOaE.js} +21 -20
  102. package/dist/errorParams-B68-Euu2.js +37 -0
  103. package/dist/es-419-DS4mN2d_.js +5 -0
  104. package/dist/{es-ES-BF9vl0Um.js → es-ES-BMafdM90.js} +128 -880
  105. package/dist/{es-MX-Brp4FXN8.js → es-MX-DqhG7Zy7.js} +128 -880
  106. package/dist/{es-DNl7ceDm.js → es-T4K5G5zB.js} +129 -881
  107. package/dist/{et-D5pPP4r0.js → et-fBoHBc5h.js} +129 -881
  108. package/dist/expiredId-Q5ITzZU-.js +67 -0
  109. package/dist/extensibility.es.js +382 -55
  110. package/dist/{fa-IR-BoyK-lax.js → fa-IR--PnMtKvC.js} +129 -881
  111. package/dist/face-match/face-match.es.js +1 -1
  112. package/dist/face-match/styles.css +1 -1
  113. package/dist/face-match/styles.css.js +1 -1
  114. package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-D-ehWIdN.js} +54 -71
  115. package/dist/faceMatch-RxP2VPBm.js +2 -0
  116. package/dist/{fi-FI-mYdAUbtG.js → fi-FI-D-T9bf67.js} +128 -880
  117. package/dist/field-comparison/field-comparison.es.js +1 -1
  118. package/dist/fieldComparison-BhYiGx0t.js +2 -0
  119. package/dist/fieldComparison-c3xT3K4C.js +126 -0
  120. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
  121. package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-CDr8bsI6.js} +31 -22
  122. package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
  123. package/dist/flipAnimation-C95PZFAJ.js +46 -0
  124. package/dist/flipCapturedCardEligibility-CcB0uVfH.js +210 -0
  125. package/dist/flow/flow.es.js +315 -287
  126. package/dist/flow/shell/styles.css +1 -1
  127. package/dist/flow/shell/styles.css.js +1 -1
  128. package/dist/flow/styles.css +1 -1
  129. package/dist/formField-Ba8BQ_l8.js +49 -0
  130. package/dist/{fr-B4R5fgnm.js → fr-BlNTqS4_.js} +128 -880
  131. package/dist/{fr-CA-DJSwRuWt.js → fr-CA-DBO_1sfd.js} +128 -880
  132. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
  133. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
  134. package/dist/geolocation/geolocation.es.js +15 -12
  135. package/dist/government-validation/government-validation.es.js +7 -6
  136. package/dist/{he-D2RDlnbd.js → he-C-PnifVg.js} +129 -881
  137. package/dist/helpButtonConfig-BFragC_J.js +24 -0
  138. package/dist/{hi-DFXhGN9O.js → hi-mETIwcDe.js} +129 -881
  139. package/dist/{hmn-BlNbfL-D.js → hmn-BZabGetu.js} +129 -881
  140. package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CcRzcWya.js} +26 -14
  141. package/dist/{incodeComponent-B-lwJJCV.js → hooks-nmwpawA2.js} +256 -280
  142. package/dist/{hr-DArr3n62.js → hr-DzkTH3cj.js} +128 -880
  143. package/dist/{ht-CAd-Hmi1.js → ht-D5zV7ROu.js} +129 -881
  144. package/dist/{hu-CulT8eq_.js → hu-CeHrYR4q.js} +130 -882
  145. package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
  146. package/dist/id/id.es.js +167 -197
  147. package/dist/id/styles.css +1 -1
  148. package/dist/id/styles.css.js +1 -1
  149. package/dist/{id-D2VZL6b-.js → id-B_qFrh_W.js} +129 -881
  150. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
  151. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
  152. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
  153. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
  154. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
  155. package/dist/id-selfie-flow/styles.css +1 -1
  156. package/dist/id-verification/id-verification.es.js +12 -6
  157. package/dist/idFlipTransition-DuwSIp-D.js +154 -0
  158. package/dist/{idOcr-BWG3vj8j.js → idOcr-DatcQrFh.js} +64 -37
  159. package/dist/identity-reuse/identity-reuse.es.js +38 -25
  160. package/dist/identity-reuse/styles.css.js +1 -0
  161. package/dist/incodeComponent-DFue7FgD.js +235 -0
  162. package/dist/incodeModule-BWSWx6zz.js +41 -0
  163. package/dist/index.es.js +4 -3
  164. package/dist/{inputComposed-B35soRFg.js → inputComposed-6M3lOVUo.js} +4 -4
  165. package/dist/{it-fs9OkGbv.js → it-CwzQoTtJ.js} +130 -882
  166. package/dist/{ja-JP-C5-gDGuX.js → ja-JP-Cg6pV7OS.js} +130 -882
  167. package/dist/{ja-BvKVI6Oo.js → ja-eNtdzeB5.js} +129 -881
  168. package/dist/{jv-CyId7aPo.js → jv-BANHtRb4.js} +128 -880
  169. package/dist/{ka-pqIPc2el.js → ka-DWhlum5Q.js} +129 -881
  170. package/dist/{kk-DK7mWl6k.js → kk-CAsKyYR9.js} +128 -880
  171. package/dist/{km-BaJYdDrm.js → km-DJHdr0lO.js} +137 -889
  172. package/dist/{ko-CdYIGTH_.js → ko-BAPbgx_r.js} +129 -881
  173. package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-BRD8crfV.js} +129 -881
  174. package/dist/{ky-Bc7ZXIXy.js → ky-0IKHwWw_.js} +128 -880
  175. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  176. package/dist/kyb-checks/styles.css +2 -0
  177. package/dist/kyb-checks/styles.css.js +1 -0
  178. package/dist/kybChecksModule-CWFpU32e.js +345 -0
  179. package/dist/kybChecksModule-D3u3hdUP.js +2 -0
  180. package/dist/{lo-0jgAavCe.js → lo-DkBffqOP.js} +129 -881
  181. package/dist/{lt-DDEjR6RD.js → lt-Btf5JQPU.js} +129 -881
  182. package/dist/{lv-Ddzb_N3H.js → lv-DMnPY0bZ.js} +129 -881
  183. package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Ci6fJR2F.js} +23 -16
  184. package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-DrdeVhq8.js} +8 -7
  185. package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-ZxWHf5Sa.js} +16 -12
  186. package/dist/{mk-SJwou4aX.js → mk-CQIDbtM2.js} +129 -881
  187. package/dist/{mn-7B86xjpb.js → mn-Cc1HnwyR.js} +128 -880
  188. package/dist/{ms-Bb-SlQCF.js → ms-CORA9eaw.js} +128 -880
  189. package/dist/{my-3ci4RJZY.js → my-CNDvlF-Z.js} +129 -881
  190. package/dist/{nb-NO-DpZAni0R.js → nb-NO-BwZ27fuH.js} +128 -880
  191. package/dist/{ne-Dncyvxqt.js → ne-D7rkhft1.js} +129 -881
  192. package/dist/{nl-C1mnzCBH.js → nl-DsxNMb79.js} +129 -881
  193. package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-Cz2x8Q7x.js} +27 -11
  194. package/dist/otpInput-B2fLiJsF.js +245 -0
  195. package/dist/{page-DINsqGIw.js → page-B0CjRMtF.js} +102 -79
  196. package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-mKn_YhhU.js} +88 -14
  197. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
  198. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
  199. package/dist/passwordRequirements-13qw_WSJ.js +49 -0
  200. package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
  201. package/dist/pdfViewer-CCHNUl5h.js +2 -0
  202. package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-pgBIY_Q7.js} +11 -14
  203. package/dist/permissionInstructionList-DPDqNKFJ.js +43 -0
  204. package/dist/{permissions-B7-lHrFm.js → permissions-CKjgrM7q.js} +84 -53
  205. package/dist/phone/phone.es.js +16 -12
  206. package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-BbZuW8Q8.js} +49 -12
  207. package/dist/{pl-CWr2fVBg.js → pl-DOgi6huc.js} +128 -880
  208. package/dist/preloadableLazy-KWGuHoqn.js +43 -0
  209. package/dist/{processing-z5wuXrKw.js → processing-v4EkL9-U.js} +2 -2
  210. package/dist/{progressBar-BcKFaXZR.js → progressBar-D-kfX8X1.js} +2 -2
  211. package/dist/{pt-BR-CMvTsOqE.js → pt-BR-x__xGSN_.js} +129 -881
  212. package/dist/{pt-AGz2XGAK.js → pt-CX0ngiGh.js} +129 -881
  213. package/dist/{pt-PT-KzIM0vpf.js → pt-PT-BKwyOX-W.js} +129 -881
  214. package/dist/qe-signature/qe-signature.es.js +4 -4
  215. package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
  216. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
  217. package/dist/redirect-to-mobile/styles.css +1 -1
  218. package/dist/redirect-to-mobile/styles.css.js +1 -1
  219. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
  220. package/dist/{resendTimer-On_zrMLS.js → resendTimer-DHgQUcAi.js} +2 -2
  221. package/dist/richText-DlHC_sMB.js +1761 -0
  222. package/dist/{ro-DYdJJDKn.js → ro-DGB5aI9B.js} +129 -881
  223. package/dist/{ru-C1cguVi2.js → ru-Dnl6YnE6.js} +129 -881
  224. package/dist/{ru-RU-18JeDfwz.js → ru-RU-BM5Leyxp.js} +128 -880
  225. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
  226. package/dist/selfie/selfie.es.js +37 -14
  227. package/dist/selfie/styles.css +1 -1
  228. package/dist/selfie/styles.css.js +1 -1
  229. package/dist/signature/signature.es.js +18 -13
  230. package/dist/{sk-CtIcnYOo.js → sk-B4HQZzV6.js} +131 -883
  231. package/dist/{sl-DS_Gc0Wc.js → sl-ClgVmZ1h.js} +129 -881
  232. package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-D9Eb005G.js} +40 -27
  233. package/dist/{so-dqMTkg5E.js → so-BLFIV5-m.js} +129 -881
  234. package/dist/spacer-D5j2phXI.js +1100 -0
  235. package/dist/spinner-BeYdZjPC.js +69 -0
  236. package/dist/{sr-DgHGiiWM.js → sr-CkSmwRiY.js} +128 -880
  237. package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-BdLB-I3Z.js} +136 -888
  238. package/dist/sr-YU-DJ3geBJs.js +5 -0
  239. package/dist/{sv-SE-Dw61hRjx.js → sv-SE-DEfqYDzZ.js} +128 -880
  240. package/dist/{sw-De-Jo8XY.js → sw-16U52YpC.js} +129 -881
  241. package/dist/{th-BJixOgsM.js → th-Cg0hYujg.js} +129 -881
  242. package/dist/{th-TH-VyhljC5U.js → th-TH-BBPg926O.js} +129 -881
  243. package/dist/themes/dark.css +1 -1
  244. package/dist/themes/light.css +1 -1
  245. package/dist/{tl-PH-D2S2Irx7.js → tl-PH-DSHq83jb.js} +129 -881
  246. package/dist/{tl-DhjdqhA4.js → tl-SL2bqb6j.js} +129 -881
  247. package/dist/{tr-BJAuvOwN.js → tr-DclJKp5i.js} +130 -882
  248. package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-b8SMrhfd.js} +7 -7
  249. package/dist/tutorial-0IhGg6rb.js +28 -0
  250. package/dist/types/ae-signature.d.ts +17 -4
  251. package/dist/types/antifraud.d.ts +17 -4
  252. package/dist/types/authentication.d.ts +17 -4
  253. package/dist/types/certificate-issuance.d.ts +17 -4
  254. package/dist/types/consent.d.ts +17 -4
  255. package/dist/types/cross-document-data-match.d.ts +17 -4
  256. package/dist/types/curp-validation.d.ts +17 -4
  257. package/dist/types/document-capture.d.ts +17 -4
  258. package/dist/types/dynamic-forms.d.ts +17 -4
  259. package/dist/types/ekyb.d.ts +17 -4
  260. package/dist/types/ekyc-prefill.d.ts +213 -0
  261. package/dist/types/ekyc.d.ts +17 -4
  262. package/dist/types/electronic-signature.d.ts +17 -4
  263. package/dist/types/email.d.ts +17 -4
  264. package/dist/types/extensibility.d.ts +204 -37
  265. package/dist/types/face-match.d.ts +17 -4
  266. package/dist/types/field-comparison.d.ts +17 -4
  267. package/dist/types/fiscal-qr.d.ts +17 -4
  268. package/dist/types/flow.d.ts +38 -5
  269. package/dist/types/geolocation.d.ts +17 -4
  270. package/dist/types/government-validation.d.ts +17 -4
  271. package/dist/types/id-selfie-flow.d.ts +17 -4
  272. package/dist/types/id-verification.d.ts +17 -4
  273. package/dist/types/id.d.ts +17 -4
  274. package/dist/types/identity-reuse.d.ts +18 -5
  275. package/dist/types/index.d.ts +92 -10
  276. package/dist/types/kyb-checks.d.ts +213 -0
  277. package/dist/types/phone.d.ts +17 -4
  278. package/dist/types/qe-signature.d.ts +17 -4
  279. package/dist/types/redirect-to-mobile.d.ts +1 -1
  280. package/dist/types/selfie.d.ts +17 -4
  281. package/dist/types/signature.d.ts +17 -4
  282. package/dist/types/video-selfie.d.ts +1 -1
  283. package/dist/types/watchlist.d.ts +17 -4
  284. package/dist/types/workflow.d.ts +17 -4
  285. package/dist/{typography-8iwtPQbj.js → typography-D3swFCxZ.js} +3 -11
  286. package/dist/{uk-CcU91ee-.js → uk-CfFK_Tnk.js} +128 -880
  287. package/dist/{uk-UA-BZR90qDZ.js → uk-UA-vkh8X4bX.js} +129 -881
  288. package/dist/{ur-CIXtUYHK.js → ur-32a-9tt8.js} +129 -881
  289. package/dist/useCameraPreview-hNLhri73.js +93 -0
  290. package/dist/useCaptureHelpButton-BJQvSkuJ.js +43 -0
  291. package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
  292. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
  293. package/dist/{uz-CeLVgwAD.js → uz-BEx-De8I.js} +129 -881
  294. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
  295. package/dist/{verificationResult-C2gxbmAo.js → verificationResult-tHoFvrGZ.js} +30 -27
  296. package/dist/{vi-CgfGVVLY.js → vi-CMQXfqfw.js} +129 -881
  297. package/dist/video-selfie/styles.css +1 -1
  298. package/dist/video-selfie/styles.css.js +1 -1
  299. package/dist/video-selfie/video-selfie.es.js +120 -77
  300. package/dist/watchlist/watchlist.es.js +12 -9
  301. package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-CbRaBYoJ.js} +63 -22
  302. package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-10ck20tq.js} +253 -55
  303. package/dist/workflow/styles.css +1 -1
  304. package/dist/workflow/workflow.es.js +36 -28
  305. package/dist/{zh-CN-BOxod1_T.js → zh-CN-BelxA_Rf.js} +128 -880
  306. package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DsztptZA.js} +129 -881
  307. package/dist/{zh-TW-B0v7GYYG.js → zh-TW-DKQC3FXd.js} +129 -881
  308. package/dist/{zh-B-kjeCig.js → zh-v3x4XYal.js} +128 -880
  309. package/package.json +48 -12
  310. package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
  311. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  312. package/dist/cameraOverlay-DQEG24io.js +0 -2
  313. package/dist/check-icon-BpjpKqhJ.js +0 -48
  314. package/dist/connectionError-Cf6iGFyx.js +0 -45
  315. package/dist/dashboardTheme-CkyISqIs.js +0 -247
  316. package/dist/dateInputComposed-cgZGBSiu.js +0 -1
  317. package/dist/denied-ByGDWkTW.js +0 -1871
  318. package/dist/deviceWallet-C4UT05wN.js +0 -66
  319. package/dist/documentCapture-Dh1ftzGG.js +0 -2
  320. package/dist/dropdownComposed-DmT4s8VM.js +0 -1
  321. package/dist/ekybModule-BHInfPHS.js +0 -2
  322. package/dist/ekycModule-B2cfT3zi.js +0 -2
  323. package/dist/ekycModule-BQPl1KQT.js +0 -300
  324. package/dist/es-419-BU7r2Fvh.js +0 -3193
  325. package/dist/esm-15CISqPe.js +0 -430
  326. package/dist/expiredId-GIHjGAuY.js +0 -80
  327. package/dist/faceMatch-bXhejzhf.js +0 -2
  328. package/dist/fieldComparison-BirXQb7f.js +0 -2
  329. package/dist/fieldComparison-D8PL0eR1.js +0 -109
  330. package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
  331. package/dist/formField-0k8wVfXl.js +0 -60
  332. package/dist/incodeModule-DiVtqekm.js +0 -68
  333. package/dist/inputComposed-CKujYUSB.js +0 -1
  334. package/dist/numberedStep-CvbL3ht2.js +0 -13
  335. package/dist/otpInput-_B7xEZUU.js +0 -157
  336. package/dist/passwordInputComposed-B3WKjODU.js +0 -74
  337. package/dist/pdfViewer-DcB41xr7.js +0 -2
  338. package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
  339. package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
  340. package/dist/reload-icon-elAFo9-k.js +0 -70
  341. package/dist/richText-aCnLd3j2.js +0 -1549
  342. package/dist/spacer-lcnhSC-5.js +0 -741
  343. package/dist/spinner-B8BswhBb.js +0 -88
  344. package/dist/sr-YU-YuZu7wdb.js +0 -3197
  345. package/dist/statusPage-WIsGgf_m.js +0 -36
  346. package/dist/uiConfig-CwGL3QjP.js +0 -2589
  347. package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
  348. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  349. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  350. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  351. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  352. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  353. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
  354. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  355. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  356. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  357. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  358. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  359. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  360. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
  361. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  362. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
  363. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
  364. /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
  365. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -0,0 +1,1100 @@
1
+ import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
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
+ //#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
+ var ICON_SIZE_PX = {
6
+ xs: 8,
7
+ s: 16,
8
+ m: 24,
9
+ l: 32,
10
+ xl: 40,
11
+ "2xl": 48,
12
+ "3xl": 64
13
+ };
14
+ var warned = /* @__PURE__ */ new Set();
15
+ function warnOnce(key, message) {
16
+ if (warned.has(key)) return;
17
+ warned.add(key);
18
+ console.warn(message);
19
+ }
20
+ function resolveGlyph(name, glyphs, size, style) {
21
+ let candidates = glyphs.filter((g) => g.style === null || g.style === style);
22
+ if (candidates.length === 0) {
23
+ warnOnce(`${name}|style|${style}`, `[Prizma Icon] "${name}" is not designed in style "${style}" — rendering the designed style.`);
24
+ candidates = glyphs;
25
+ }
26
+ const exact = candidates.find((g) => g.size === size && g.style === style) ?? candidates.find((g) => g.size === size);
27
+ if (exact) return exact;
28
+ const want = ICON_SIZE_PX[size];
29
+ const nearest = [...candidates].sort((a, b) => Math.abs(ICON_SIZE_PX[a.size] - want) - Math.abs(ICON_SIZE_PX[b.size] - want) || ICON_SIZE_PX[b.size] - ICON_SIZE_PX[a.size])[0];
30
+ const designed = [...new Set(candidates.map((g) => g.size))].join(", ");
31
+ warnOnce(`${name}|size|${size}|${style}`, `[Prizma Icon] "${name}" is not designed at size ${size} — rendering ${nearest.size}. Designed sizes: ${designed}.`);
32
+ return nearest;
33
+ }
34
+ /** Builds one tree-shakable icon component from its designed variants. */
35
+ var RTL_MIRRORED = new Set(["chevron-left", "chevron-right"]);
36
+ function createIcon(name, glyphs) {
37
+ const mirrors = RTL_MIRRORED.has(name);
38
+ const Icon = ({ size = "m", style = "outline", label, className }) => {
39
+ const glyph = resolveGlyph(name, glyphs, size, style);
40
+ const classes = [mirrors ? "prizma-icon--rtl-mirror" : "", className].filter(Boolean).join(" ") || void 0;
41
+ return /* @__PURE__ */ u("svg", {
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ width: glyph.w,
44
+ height: glyph.h,
45
+ viewBox: `0 0 ${glyph.w} ${glyph.h}`,
46
+ fill: "currentColor",
47
+ "aria-hidden": label ? void 0 : true,
48
+ role: label ? "img" : void 0,
49
+ "aria-label": label,
50
+ "data-prizma-rtl-mirror": mirrors ? "" : void 0,
51
+ className: classes,
52
+ children: [(glyph.paths ?? []).map((p, i) => /* @__PURE__ */ u("path", {
53
+ d: p.d,
54
+ fillRule: p.fr,
55
+ clipRule: p.fr,
56
+ fillOpacity: p.o
57
+ }, i)), (glyph.strokePaths ?? []).map((p, i) => /* @__PURE__ */ u("path", {
58
+ d: p.d,
59
+ fill: "none",
60
+ stroke: "currentColor",
61
+ strokeWidth: p.sw,
62
+ strokeLinecap: p.cap,
63
+ strokeLinejoin: p.join
64
+ }, `s${i}`))]
65
+ });
66
+ };
67
+ Icon.displayName = `Icon(${name})`;
68
+ return Icon;
69
+ }
70
+ //#endregion
71
+ //#region ../../node_modules/.pnpm/@incodetech+prizma-core-icons@0.4.5_react@19.2.3/node_modules/@incodetech/prizma-core-icons/src/icons/icon-check.tsx
72
+ var IconCheck = createIcon("check", [{
73
+ size: "m",
74
+ style: "outline",
75
+ w: 24,
76
+ h: 24,
77
+ paths: [{
78
+ d: "M21.9 12 Q21.9 16.1004 19.0008 18.9996 Q16.1004 21.9 12 21.9 Q7.8996 21.9 4.9992 18.9996 Q2.1 16.1004 2.1 12 Q2.1 7.8996 4.9992 4.9992 Q7.8996 2.1 12 2.1 Q16.1004 2.1 19.0008 4.9992 Q21.9 7.8996 21.9 12 Z M20.1 12 Q20.1 8.6448 17.7276 6.2724 Q15.3552 3.9 12 3.9 Q8.6448 3.9 6.2724 6.2724 Q3.9 8.6448 3.9 12 Q3.9 15.3552 6.2724 17.7276 Q8.6448 20.1 12 20.1 Q15.3552 20.1 17.7276 17.7276 Q20.1 15.3552 20.1 12 Z",
79
+ fr: "nonzero"
80
+ }, {
81
+ d: "M9.1716 11.364 L10.8456 13.0368 L14.8272 9.0552 Q15.0912 8.7912 15.4632 8.7912 Q15.8364 8.7912 16.1004 9.0552 Q16.3632 9.3192 16.3632 9.6912 Q16.3632 10.0644 16.1004 10.3284 L11.4816 14.946 Q11.2188 15.2088 10.8456 15.2088 Q10.4736 15.2088 10.2096 14.946 L7.8996 12.6372 Q7.6356 12.3732 7.6356 12 Q7.6356 11.628 7.8996 11.364 Q8.1624 11.1 8.5356 11.1 Q8.9088 11.1 9.1716 11.364 Z",
82
+ fr: "nonzero"
83
+ }]
84
+ }]);
85
+ //#endregion
86
+ //#region ../../node_modules/.pnpm/@incodetech+prizma-core-icons@0.4.5_react@19.2.3/node_modules/@incodetech/prizma-core-icons/src/icons/icon-cross.tsx
87
+ var IconCross = createIcon("cross", [{
88
+ size: "m",
89
+ style: "outline",
90
+ w: 24,
91
+ h: 24,
92
+ paths: [{
93
+ d: "M12 21.9 Q7.8996 21.9 4.9992 18.9996 Q2.1 16.1004 2.1 12 Q2.1 7.8996 4.9992 4.9992 Q7.8996 2.1 12 2.1 Q16.1004 2.1 19.0008 4.9992 Q21.9 7.8996 21.9 12 Q21.9 16.1004 19.0008 18.9996 Q16.1004 21.9 12 21.9 Z M12 20.1 Q15.3552 20.1 17.7276 17.7276 Q20.1 15.3552 20.1 12 Q20.1 8.6448 17.7276 6.2724 Q15.3552 3.9 12 3.9 Q8.6448 3.9 6.2724 6.2724 Q3.9 8.6448 3.9 12 Q3.9 15.3552 6.2724 17.7276 Q8.6448 20.1 12 20.1 Z",
94
+ fr: "nonzero"
95
+ }, {
96
+ d: "M8.364 14.364 L10.7268 12 L8.364 9.636 Q8.1 9.3732 8.1 9 Q8.1 8.6268 8.364 8.364 Q8.628 8.1 9 8.1 Q9.3732 8.1 9.6372 8.364 L12 10.7268 L14.364 8.364 Q14.6268 8.1 15 8.1 Q15.3732 8.1 15.636 8.364 Q15.9 8.6268 15.9 9 Q15.9 9.3732 15.636 9.636 L13.2732 12 L15.6372 14.364 Q15.9 14.6268 15.9 15 Q15.9 15.3732 15.6372 15.636 Q15.3732 15.9 15 15.9 Q14.628 15.9 14.364 15.636 L12 13.272 L9.636 15.636 Q9.3732 15.9 9 15.9 Q8.6268 15.9 8.364 15.636 Q8.1 15.3732 8.1 15 Q8.1 14.6268 8.364 14.364 Z",
97
+ fr: "nonzero"
98
+ }]
99
+ }]);
100
+ //#endregion
101
+ //#region ../../node_modules/.pnpm/@incodetech+prizma-core-icons@0.4.5_react@19.2.3/node_modules/@incodetech/prizma-core-icons/src/icons/icon-warning.tsx
102
+ var IconWarning = createIcon("warning", [{
103
+ size: "m",
104
+ style: "outline",
105
+ w: 24,
106
+ h: 24,
107
+ paths: [
108
+ {
109
+ d: "M5.028 20.9892 Q3.3588 20.9892 2.5212 19.5444 Q1.6824 18.0996 2.5116 16.65 L9.4908 4.4688 Q10.326 3.0096 12.0072 3.0108 Q13.6872 3.012 14.52 4.47 L21.4884 16.6512 Q22.3176 18.1008 21.4788 19.5444 Q20.6412 20.9892 18.972 20.9892 Z M5.028 19.1892 L18.972 19.1892 Q19.6044 19.1892 19.9224 18.642 Q20.2392 18.0948 19.926 17.5452 L12.9576 5.364 Q12.642 4.8108 12.006 4.8108 Q11.3688 4.8108 11.052 5.364 L4.074 17.5452 Q3.7596 18.0936 4.0776 18.6408 Q4.3956 19.1892 5.028 19.1892 Z",
110
+ fr: "nonzero"
111
+ },
112
+ {
113
+ d: "M11.0976 13.2804 L11.0976 10.2756 Q11.0976 9.9024 11.3616 9.6384 Q11.6244 9.3756 11.9976 9.3756 Q12.3708 9.3756 12.6336 9.6384 Q12.8976 9.9024 12.8976 10.2756 L12.8976 13.2804 Q12.8976 13.6536 12.6336 13.9164 Q12.3708 14.1804 11.9976 14.1804 Q11.6244 14.1804 11.3616 13.9164 Q11.0976 13.6536 11.0976 13.2804 Z",
114
+ fr: "nonzero"
115
+ },
116
+ {
117
+ d: "M11.9904 15.3552 L12 15.3552 Q12.3804 15.3552 12.6492 15.624 Q12.9168 15.8916 12.9168 16.272 Q12.9168 16.6524 12.6492 16.92 Q12.3804 17.1888 12 17.1888 L11.9904 17.1888 Q11.61 17.1888 11.3424 16.92 Q11.0736 16.6524 11.0736 16.272 Q11.0736 15.8916 11.3424 15.624 Q11.61 15.3552 11.9904 15.3552 Z",
118
+ fr: "nonzero"
119
+ }
120
+ ]
121
+ }]);
122
+ //#endregion
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
138
+ /**
139
+ * LoadingSpinner — Prizma Core v0
140
+ *
141
+ * Authoritative spec: ./loading-spinner.md (v0.1, 2026-06-02)
142
+ *
143
+ * Renders an indeterminate loading indicator with an optional explanatory text
144
+ * stack (title and optional subtitle). The spinning glyph is a 48×48 SVG ring
145
+ * with a rotating quarter-arc; the animation is driven by a CSS `@keyframes`
146
+ * defined in LoadingSpinner.css and continues while the component is mounted.
147
+ *
148
+ * Three Figma variants are supported:
149
+ * 1. showTitle=false → bare spinner
150
+ * 2. showTitle=true, showSubtitle=false → spinner + title
151
+ * 3. showTitle=true, showSubtitle=true → spinner + title + subtitle
152
+ *
153
+ * The fourth combination (showTitle=false + showSubtitle=true) is NOT authored
154
+ * in Figma and is NOT supported by this component — see the guard below.
155
+ */
156
+ var PrizmaLoadingSpinner = D(({ showTitle = false, showSubtitle = false, titleText, subtitleText, loadingLabel, icon, size, showSpinner = true, className, ...rest }, ref) => {
157
+ const effectiveShowTitle = showTitle;
158
+ const effectiveShowSubtitle = showTitle && showSubtitle;
159
+ const effectiveShowGlyph = showSpinner;
160
+ const ringSize = size !== void 0 && size !== 48 ? size : void 0;
161
+ const titleId = g();
162
+ const rootClassName = [
163
+ "prizma-loading-spinner",
164
+ effectiveShowGlyph ? null : "prizma-loading-spinner--text-only",
165
+ className
166
+ ].filter(Boolean).join(" ");
167
+ return u("div", {
168
+ ref,
169
+ ...rest,
170
+ className: rootClassName,
171
+ role: rest.role ?? "status",
172
+ "aria-live": rest["aria-live"] ?? "polite",
173
+ "aria-labelledby": effectiveShowTitle ? titleId : void 0,
174
+ children: [
175
+ effectiveShowGlyph && icon != null && u("div", {
176
+ className: "prizma-loading-spinner__icon",
177
+ "aria-hidden": "true",
178
+ children: icon
179
+ }),
180
+ effectiveShowGlyph && icon == null && u("svg", {
181
+ viewBox: "0 0 48 48",
182
+ width: ringSize ?? 48,
183
+ height: ringSize ?? 48,
184
+ style: ringSize ? {
185
+ width: ringSize,
186
+ height: ringSize
187
+ } : void 0,
188
+ "aria-hidden": "true",
189
+ focusable: "false",
190
+ children: [u("circle", {
191
+ className: "prizma-loading-spinner__track",
192
+ cx: "24",
193
+ cy: "24",
194
+ r: "20.25"
195
+ }), u("circle", {
196
+ ref: syncSpinPhase,
197
+ className: "prizma-loading-spinner__arc",
198
+ cx: "24",
199
+ cy: "24",
200
+ r: "20.25",
201
+ strokeDasharray: "31.808 95.426"
202
+ })]
203
+ }),
204
+ !effectiveShowTitle && loadingLabel && u("span", {
205
+ style: {
206
+ position: "absolute",
207
+ width: "1px",
208
+ height: "1px",
209
+ padding: 0,
210
+ margin: "-1px",
211
+ overflow: "hidden",
212
+ clip: "rect(0, 0, 0, 0)",
213
+ whiteSpace: "nowrap",
214
+ border: 0
215
+ },
216
+ children: loadingLabel
217
+ }),
218
+ effectiveShowTitle && u("p", {
219
+ id: titleId,
220
+ className: "prizma-loading-spinner__title",
221
+ children: titleText
222
+ }),
223
+ effectiveShowSubtitle && u("p", {
224
+ className: "prizma-loading-spinner__subtitle",
225
+ children: subtitleText
226
+ })
227
+ ]
228
+ });
229
+ });
230
+ PrizmaLoadingSpinner.displayName = "PrizmaLoadingSpinner";
231
+ //#endregion
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
240
+ /**
241
+ * Title — Prizma Core v0
242
+ *
243
+ * Authoritative spec: ./title.md (v0.1, 2026-06-04)
244
+ * Figma source: Prizma Design System / Title COMPONENT_SET 8124:1996
245
+ * (2 variants on the Variant axis: Centered, Left alignment).
246
+ *
247
+ * Composite presentational header: optional icon-or-loading-indicator slot,
248
+ * mandatory Title text, optional Subtitle text. Two horizontal-alignment
249
+ * variants (`centered`, `left`).
250
+ *
251
+ * NOT interactive — see title.md §3. No focus ring, no hover, no states.
252
+ * `showSubtitle` and the icon slot are content-shape toggles, not state.
253
+ *
254
+ * The icon slot mirrors the Figma INSTANCE_SWAP allowlist (title.md §2.3).
255
+ * v0 supports three slot shapes via a discriminated union:
256
+ * - `{ type: 'status', status: 'success' | 'error' | 'warning' }` — renders
257
+ * the canonical bank status icon at size "xl" (40): IconStatusPositive /
258
+ * IconStatusNegative / IconStatusWarning (icon-outline sweep, owner
259
+ * 2026-07-28). The old v0 inline two-tone stand-in died; the per-status
260
+ * color token is set on the wrapper in Title.css (see its "status icon"
261
+ * block + title.md §4.5 + §5.6).
262
+ * - `{ type: 'spinner' }` — renders <LoadingSpinner /> (bare spinner; the
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.
266
+ * - `{ type: 'none' }` — slot is unmounted (matches Figma
267
+ * `Show Icon/component = False`).
268
+ *
269
+ * Loading bar in the slot is RETIRED (owner call 2026-07-13): it was never
270
+ * in Figma's INSTANCE_SWAP nor built on any platform. The slot allowlist is
271
+ * exactly the three shapes above — no `{ type: 'bar' }` arm is coming.
272
+ *
273
+ * Accessibility (title.md §10.6):
274
+ * - When `icon.type === 'spinner'`, the slot is a loading indicator and
275
+ * the whole Title is a status region: the root receives
276
+ * `role="status"` + `aria-live="polite"` and the heading is wired up as
277
+ * the accessible name via `aria-labelledby`.
278
+ * - Otherwise the root is a plain content container; the heading is a
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.
283
+ * - The icon slot is ALWAYS decorative (`aria-hidden`): the title text
284
+ * carries the meaning. This also silences the embedded spinner's own
285
+ * status region + "Loading" span, so the Title root is the single
286
+ * announcer — per the documented contract ("do not add a visually
287
+ * hidden Loading label; the title text already provides one").
288
+ */
289
+ /**
290
+ * Status icon — now consumed from the canonical bank (icon-outline sweep,
291
+ * owner 2026-07-28): `IconStatusPositive` / `IconStatusNegative` /
292
+ * `IconStatusWarning` at size "xl" (40 = Title/Icon/Size). The local v0
293
+ * two-tone inline SVG stand-in (filled circle + white glyph) died — the bank
294
+ * icons are single-color outline strokes that inherit currentColor, so the
295
+ * per-status color token is set on the wrapper class in Title.css (the old
296
+ * two-tone __status-icon-bg / __status-icon-glyph rules die with it). The
297
+ * wrapper className is merged onto the bank svg, which the CSS sizes to
298
+ * Title/Icon/Size.
299
+ */
300
+ var STATUS_ICON = {
301
+ success: IconCheck,
302
+ error: IconCross,
303
+ warning: IconWarning
304
+ };
305
+ var StatusIcon = ({ status }) => {
306
+ const modifier = status === "success" ? "prizma-title__status-icon--success" : status === "error" ? "prizma-title__status-icon--error" : "prizma-title__status-icon--warning";
307
+ const BankIcon = STATUS_ICON[status];
308
+ return u(BankIcon, {
309
+ size: "m",
310
+ className: `prizma-title__status-icon ${modifier}`
311
+ });
312
+ };
313
+ var PrizmaTitle = D(({ variant = "centered", title, showSubtitle = false, subtitle, icon = { type: "none" }, headingRef, headingProps, subtitleProps, className, ...rest }, ref) => {
314
+ const generatedHeadingId = g();
315
+ const headingId = headingProps?.id ?? generatedHeadingId;
316
+ const subtitleId = subtitleProps?.id ?? `${generatedHeadingId}-subtitle`;
317
+ const hasSubtitle = showSubtitle && Boolean(subtitle);
318
+ const isLoadingShape = icon.type === "spinner";
319
+ const slotChild = icon.type === "status" ? u(StatusIcon, { status: icon.status }) : icon.type === "spinner" ? u(PrizmaLoadingSpinner, { icon: icon.loader }) : null;
320
+ const rootClassName = [
321
+ "prizma-title",
322
+ variant === "left" ? "prizma-title--left" : "prizma-title--centered",
323
+ className
324
+ ].filter(Boolean).join(" ");
325
+ return u("div", {
326
+ ref,
327
+ ...rest,
328
+ className: rootClassName,
329
+ role: isLoadingShape ? "status" : void 0,
330
+ "aria-live": isLoadingShape ? "polite" : void 0,
331
+ "aria-labelledby": isLoadingShape ? headingId : void 0,
332
+ children: [
333
+ slotChild && u("div", {
334
+ className: "prizma-title__icon-slot",
335
+ "aria-hidden": "true",
336
+ children: slotChild
337
+ }),
338
+ u("h2", {
339
+ ...headingProps,
340
+ ref: headingRef,
341
+ id: headingId,
342
+ "aria-describedby": mergeAriaIds(headingProps?.["aria-describedby"], hasSubtitle ? subtitleId : void 0),
343
+ className: ["prizma-title__heading", headingProps?.className].filter(Boolean).join(" "),
344
+ children: title
345
+ }),
346
+ hasSubtitle && u("p", {
347
+ ...subtitleProps,
348
+ id: subtitleId,
349
+ className: ["prizma-title__subtitle", subtitleProps?.className].filter(Boolean).join(" "),
350
+ children: subtitle
351
+ })
352
+ ]
353
+ });
354
+ });
355
+ PrizmaTitle.displayName = "PrizmaTitle";
356
+ //#endregion
357
+ //#region src/styles/cn.tsx
358
+ var cn = (...classes) => {
359
+ const result = [];
360
+ for (const cls of classes) {
361
+ if (!cls) continue;
362
+ if (typeof cls === "string") result.push(cls);
363
+ else if (typeof cls === "object") {
364
+ for (const [key, value] of Object.entries(cls)) if (value) result.push(key);
365
+ }
366
+ }
367
+ return result.join(" ");
368
+ };
369
+ //#endregion
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
+ });
452
+ }
453
+ //#endregion
454
+ //#region src/shared/assets/assetRegistry.ts
455
+ var defaultExport = (module) => module.default;
456
+ var decorative = { ariaHidden: true };
457
+ var assetRegistry = {
458
+ "faceMatch.success": { a11y: decorative },
459
+ "faceMatch.fail": { a11y: decorative },
460
+ "documentCapture.tutorial": { a11y: decorative },
461
+ "id.uploadScreen": { a11y: decorative },
462
+ "id.ageVerification.dob": { a11y: decorative },
463
+ "id.ageVerification.scan": { a11y: decorative },
464
+ "id.ageVerification.privacy": { a11y: decorative },
465
+ "videoSelfie.success": { a11y: decorative },
466
+ "videoSelfie.fail": { a11y: decorative },
467
+ "videoSelfie.tutorial.permission": { a11y: decorative },
468
+ "videoSelfie.tutorial.selfie": { a11y: decorative },
469
+ "videoSelfie.tutorial.frontId": { a11y: decorative },
470
+ "videoSelfie.tutorial.backId": { a11y: decorative },
471
+ "videoSelfie.tutorial.poa": { a11y: decorative },
472
+ "videoSelfie.tutorial.questions": { a11y: decorative },
473
+ "videoSelfie.tutorial.speech": { a11y: decorative },
474
+ "loader.spinner": { a11y: decorative }
475
+ };
476
+ var animationRegistry = {
477
+ "id.tutorial.front": {
478
+ default: () => import("./id-tutorial-DkKH3eTE.js").then(defaultExport),
479
+ a11y: decorative
480
+ },
481
+ "id.tutorial.back": {
482
+ default: () => import("./back-tutorial-B9W63fa-.js").then(defaultExport),
483
+ a11y: decorative
484
+ },
485
+ "id.tutorial.passport": {
486
+ default: () => import("./passport-tutorial-D3Fpk-Tj.js").then(defaultExport),
487
+ a11y: decorative
488
+ },
489
+ "id.flip": {
490
+ default: () => import("./flip-animation-DJVnWWL5.js").then(defaultExport),
491
+ a11y: decorative
492
+ },
493
+ "id.processing": {
494
+ default: {
495
+ horizontal: () => import("./id-laser-h-6Am_cjM8.js").then(defaultExport),
496
+ vertical: () => import("./id-laser-v-DXoF3flH.js").then(defaultExport)
497
+ },
498
+ a11y: decorative
499
+ },
500
+ "selfie.tutorial": {
501
+ default: () => import("./selfieTutorial-DnsRD1Z9.js").then(defaultExport),
502
+ a11y: decorative
503
+ },
504
+ "loader.spinner": {
505
+ default: null,
506
+ a11y: decorative
507
+ }
508
+ };
509
+ //#endregion
510
+ //#region src/shared/assets/resolveAsset.ts
511
+ /**
512
+ * Whether a resolved value represents an active override, as opposed to no
513
+ * override at all (`type === 'default'`).
514
+ */
515
+ function isActiveOverride(resolved) {
516
+ return resolved !== null && resolved.type !== "default";
517
+ }
518
+ function warnUnknownKey(key) {
519
+ `${key}`;
520
+ }
521
+ function isValidUrl(url) {
522
+ const SCHEME_PREFIX = /^[a-zA-Z][a-zA-Z0-9+.-]*:/;
523
+ if (url === "" || /\s/.test(url)) return false;
524
+ if (!SCHEME_PREFIX.test(url)) return true;
525
+ try {
526
+ new URL(url);
527
+ return true;
528
+ } catch {
529
+ return false;
530
+ }
531
+ }
532
+ function normalizeAssetOverride(override) {
533
+ if (override === void 0) return null;
534
+ if (typeof override === "string") {
535
+ const value = override.trim();
536
+ if (value === "") return null;
537
+ if (value.startsWith("<")) return {
538
+ type: "override-raw",
539
+ raw: value
540
+ };
541
+ if (!isValidUrl(value)) return null;
542
+ return {
543
+ type: "override-url",
544
+ url: value
545
+ };
546
+ }
547
+ if ("svg" in override) return {
548
+ type: "override-component",
549
+ component: override.svg
550
+ };
551
+ if ("raw" in override) {
552
+ const raw = override.raw.trim();
553
+ return raw === "" ? null : {
554
+ type: "override-raw",
555
+ raw
556
+ };
557
+ }
558
+ if ("url" in override) {
559
+ const url = override.url.trim();
560
+ if (url === "") return null;
561
+ if (!isValidUrl(url)) return null;
562
+ return {
563
+ type: "override-url",
564
+ url
565
+ };
566
+ }
567
+ return null;
568
+ }
569
+ function normalizeAnimationOverride(override) {
570
+ if (override === void 0) return null;
571
+ if ("url" in override) {
572
+ const url = override.url.trim();
573
+ if (url === "") return null;
574
+ if (!isValidUrl(url)) return null;
575
+ return {
576
+ type: "override-url",
577
+ url
578
+ };
579
+ }
580
+ if ("animationData" in override) return {
581
+ type: "override-data",
582
+ animationData: override.animationData
583
+ };
584
+ return {
585
+ type: "override-data",
586
+ animationData: override
587
+ };
588
+ }
589
+ function resolveAsset(key, scopes = {}) {
590
+ scopes.instance;
591
+ scopes.global;
592
+ const entry = assetRegistry[key];
593
+ if (entry === void 0) {
594
+ warnUnknownKey(key);
595
+ return null;
596
+ }
597
+ const override = normalizeAssetOverride(scopes.instance?.[key]) ?? normalizeAssetOverride(scopes.global?.[key]);
598
+ if (override !== null) return {
599
+ ...override,
600
+ a11y: entry.a11y
601
+ };
602
+ return {
603
+ type: "default",
604
+ a11y: entry.a11y
605
+ };
606
+ }
607
+ function resolveAnimation(key, scopes = {}) {
608
+ scopes.instance;
609
+ scopes.global;
610
+ const entry = animationRegistry[key];
611
+ if (entry === void 0) {
612
+ warnUnknownKey(key);
613
+ return null;
614
+ }
615
+ const override = normalizeAnimationOverride(scopes.instance?.[key]) ?? normalizeAnimationOverride(scopes.global?.[key]);
616
+ if (override !== null) return {
617
+ ...override,
618
+ a11y: entry.a11y
619
+ };
620
+ return {
621
+ type: "default",
622
+ default: entry.default,
623
+ a11y: entry.a11y
624
+ };
625
+ }
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
634
+ //#region src/shared/assets/useAsset.ts
635
+ function useAsset(key) {
636
+ const instance = useInstanceOverrides();
637
+ const uiConfig = useUiConfig();
638
+ return T(() => {
639
+ return resolveAsset(key, {
640
+ instance: instance.assets,
641
+ global: uiConfig.assets
642
+ });
643
+ }, [
644
+ key,
645
+ instance.assets,
646
+ uiConfig.assets
647
+ ]);
648
+ }
649
+ function useAnimation(key) {
650
+ const instance = useInstanceOverrides();
651
+ const uiConfig = useUiConfig();
652
+ return T(() => {
653
+ return resolveAnimation(key, {
654
+ instance: instance.animations,
655
+ global: uiConfig.animations
656
+ });
657
+ }, [
658
+ key,
659
+ instance.animations,
660
+ uiConfig.animations
661
+ ]);
662
+ }
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
+ });
789
+ }
790
+ //#endregion
791
+ //#region src/shared/assets/asset.tsx
792
+ function altText(a11y, t) {
793
+ return "altKey" in a11y ? t(a11y.altKey) : "";
794
+ }
795
+ function svgA11y(a11y, t) {
796
+ return "altKey" in a11y ? {
797
+ role: "img",
798
+ "aria-label": t(a11y.altKey)
799
+ } : { "aria-hidden": "true" };
800
+ }
801
+ /**
802
+ * Normalizes the call-site `default` into a renderable shape. Trusted (it is a
803
+ * bundled SDK asset), so raw markup is not sanitized — unlike a customer raw
804
+ * override.
805
+ */
806
+ function defaultToRenderable(value) {
807
+ if (value === void 0) return null;
808
+ if (typeof value === "function") return {
809
+ kind: "component",
810
+ value
811
+ };
812
+ return value.trim().startsWith("<") ? {
813
+ kind: "raw",
814
+ value
815
+ } : {
816
+ kind: "url",
817
+ value
818
+ };
819
+ }
820
+ /**
821
+ * Sanitizes a raw override with DOMPurify, loaded on first use. Only raw SVG
822
+ * overrides need it, and `Asset` renders in every module (the loader
823
+ * spinner), so a static import would ship it everywhere. Returns `null` while
824
+ * it loads. A failed load counts as markup that sanitizes to nothing, so the
825
+ * caller falls back to the built-in default.
826
+ */
827
+ function useSanitizedSvg(raw) {
828
+ const [result, setResult] = d(null);
829
+ y(() => {
830
+ if (raw === null) return;
831
+ let active = true;
832
+ import("./sanitizeSvg-IfqLuP1N.js").then(({ sanitizeSvg }) => sanitizeSvg(raw)).catch(() => ({
833
+ markup: "",
834
+ strippedHref: false
835
+ })).then((svg) => {
836
+ if (active) setResult({
837
+ raw,
838
+ svg
839
+ });
840
+ });
841
+ return () => {
842
+ active = false;
843
+ };
844
+ }, [raw]);
845
+ return result?.raw === raw ? result.svg : null;
846
+ }
847
+ function useAssetContent(key, defaultAsset, onFallback) {
848
+ const resolved = useAsset(key);
849
+ const [failedUrl, setFailedUrl] = d(null);
850
+ const rawOverride = resolved?.type === "override-raw" ? resolved.raw : null;
851
+ const sanitizedRaw = useSanitizedSvg(rawOverride);
852
+ const urlFailed = resolved?.type === "override-url" && resolved.url === failedUrl;
853
+ const rawStripped = sanitizedRaw !== null && (sanitizedRaw.strippedHref || sanitizedRaw.markup.trim() === "");
854
+ y(() => {
855
+ if (urlFailed || rawStripped) onFallback?.();
856
+ }, [
857
+ urlFailed,
858
+ rawStripped,
859
+ onFallback
860
+ ]);
861
+ if (resolved === null || rawOverride !== null && sanitizedRaw === null) return null;
862
+ const useDefault = resolved.type === "default" || urlFailed || rawStripped;
863
+ const { a11y } = resolved;
864
+ if (!useDefault) switch (resolved.type) {
865
+ case "override-component": return {
866
+ content: {
867
+ kind: "component",
868
+ value: resolved.component
869
+ },
870
+ a11y
871
+ };
872
+ case "override-url": return {
873
+ content: {
874
+ kind: "url",
875
+ value: resolved.url,
876
+ onError: () => setFailedUrl(resolved.url)
877
+ },
878
+ a11y
879
+ };
880
+ case "override-raw": return {
881
+ content: {
882
+ kind: "raw",
883
+ value: sanitizedRaw?.markup ?? ""
884
+ },
885
+ a11y
886
+ };
887
+ }
888
+ const content = defaultToRenderable(defaultAsset);
889
+ return content ? {
890
+ content,
891
+ a11y
892
+ } : null;
893
+ }
894
+ function renderAsset(content, a11y, t, className) {
895
+ switch (content.kind) {
896
+ case "component": {
897
+ const Svg = content.value;
898
+ return /* @__PURE__ */ u(Svg, {
899
+ class: className,
900
+ ...svgA11y(a11y, t)
901
+ });
902
+ }
903
+ case "url": return /* @__PURE__ */ u("img", {
904
+ src: content.value,
905
+ alt: altText(a11y, t),
906
+ "aria-hidden": "altKey" in a11y ? void 0 : "true",
907
+ class: className,
908
+ onError: content.onError
909
+ });
910
+ case "raw": return /* @__PURE__ */ u("span", {
911
+ class: cn("IncodeAssetRaw", className),
912
+ ...svgA11y(a11y, t),
913
+ dangerouslySetInnerHTML: { __html: content.value }
914
+ });
915
+ default: return content;
916
+ }
917
+ }
918
+ /**
919
+ * Renders a branded illustration by catalog key, honoring the resolved
920
+ * precedence (per-instance → global → built-in default). The built-in default
921
+ * is supplied by the call site via `default` (imported on-site).
922
+ */
923
+ function Asset({ name, class: className, default: defaultAsset, onFallback }) {
924
+ const { t } = useTranslation();
925
+ const result = useAssetContent(name, defaultAsset, onFallback);
926
+ if (result === null) return null;
927
+ return renderAsset(result.content, result.a11y, t, className);
928
+ }
929
+ //#endregion
930
+ //#region src/shared/loader/useLoaderOverride.tsx
931
+ /**
932
+ * The customer's `loader.spinner` override, ready for the `icon` slot of
933
+ * `PrizmaLoadingSpinner` (or the SDK Title's spinner slot).
934
+ *
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.
938
+ *
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.
944
+ */
945
+ function useLoaderOverride() {
946
+ const animation = useAnimation("loader.spinner");
947
+ const svg = useAsset("loader.spinner");
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, {
954
+ name: "loader.spinner",
955
+ loop: true,
956
+ onFallback: handleFallback
957
+ })
958
+ });
959
+ if (isActiveOverride(svg)) return /* @__PURE__ */ u("div", {
960
+ class: "IncodeLoadingIconOverride IncodeLoaderOverride",
961
+ children: /* @__PURE__ */ u(Asset, {
962
+ name: "loader.spinner",
963
+ onFallback: handleFallback
964
+ })
965
+ });
966
+ }
967
+ //#endregion
968
+ //#region src/shared/title/title.tsx
969
+ function classValue(value) {
970
+ return typeof value === "object" ? value.value : value;
971
+ }
972
+ function assignRef(ref, value) {
973
+ if (typeof ref === "function") ref(value);
974
+ else if (ref) ref.current = value;
975
+ }
976
+ var Title = D(({ children, className, class: classAttribute, subtitle, showSubtitle = Boolean(subtitle), icon, variant, subtitleProps, headingProps, headingRef, wrapperProps, wrapperRef, ...rest }, ref) => {
977
+ const generatedId = g();
978
+ const loaderOverride = useLoaderOverride();
979
+ const customSpinner = icon?.type === "spinner" && loaderOverride !== void 0;
980
+ const subtitleId = subtitleProps?.id ?? `${generatedId}-subtitle`;
981
+ const hasSubtitle = typeof children === "string" && showSubtitle && Boolean(subtitle);
982
+ const setRef = q((node) => {
983
+ assignRef(ref, node);
984
+ assignRef(headingRef, node);
985
+ }, [ref, headingRef]);
986
+ const headingClass = cn("IncodeTitle", classValue(headingProps?.className), classValue(className), typeof classAttribute === "object" ? classAttribute.value : classAttribute);
987
+ const nativeProps = {
988
+ ...headingProps,
989
+ ...rest,
990
+ "aria-describedby": rest["aria-describedby"] ?? headingProps?.["aria-describedby"] ?? (hasSubtitle ? subtitleId : void 0),
991
+ className: headingClass
992
+ };
993
+ if (typeof children === "string") return /* @__PURE__ */ u("div", {
994
+ ...wrapperProps,
995
+ ref: wrapperRef,
996
+ role: customSpinner ? "status" : wrapperProps?.role,
997
+ "aria-live": customSpinner ? "polite" : wrapperProps?.["aria-live"],
998
+ "aria-labelledby": customSpinner ? nativeProps.id ?? generatedId : wrapperProps?.["aria-labelledby"],
999
+ className: cn("IncodeTitleContainer", variant === "left" && "IncodeTitleLeft", (icon?.type !== void 0 && icon.type !== "none" || variant !== void 0) && "IncodeTitleComposite", classValue(wrapperProps?.className)),
1000
+ children: [
1001
+ customSpinner && /* @__PURE__ */ u("div", {
1002
+ className: "IncodeTitleIconSlot",
1003
+ "aria-hidden": "true",
1004
+ children: loaderOverride
1005
+ }),
1006
+ /* @__PURE__ */ u(PrizmaTitle, {
1007
+ title: children,
1008
+ variant,
1009
+ icon: customSpinner ? { type: "none" } : icon,
1010
+ className: "IncodeTitleHeadingGroup",
1011
+ headingRef: setRef,
1012
+ headingProps: {
1013
+ ...nativeProps,
1014
+ id: customSpinner ? nativeProps.id ?? generatedId : nativeProps.id
1015
+ }
1016
+ }),
1017
+ hasSubtitle && /* @__PURE__ */ u("p", {
1018
+ ...subtitleProps,
1019
+ id: subtitleId,
1020
+ className: cn("IncodeTitleSubtitle", classValue(subtitleProps?.className), classValue(subtitleProps?.class)),
1021
+ children: subtitle
1022
+ })
1023
+ ]
1024
+ });
1025
+ return /* @__PURE__ */ u("h2", {
1026
+ ...nativeProps,
1027
+ ref: setRef,
1028
+ class: headingClass,
1029
+ children
1030
+ });
1031
+ });
1032
+ //#endregion
1033
+ //#region src/shared/spacer/spacer.tsx
1034
+ var scaleTokens = new Set([
1035
+ 0,
1036
+ 2,
1037
+ 4,
1038
+ 8,
1039
+ 12,
1040
+ 16,
1041
+ 20,
1042
+ 24,
1043
+ 32,
1044
+ 40,
1045
+ 48,
1046
+ 64,
1047
+ 80,
1048
+ 96,
1049
+ 104,
1050
+ 120,
1051
+ 200
1052
+ ]);
1053
+ var scaleToClassName = (size, direction) => {
1054
+ if (direction === "horizontal") return {
1055
+ 0: "IncodeSpacerHorizontal0",
1056
+ 2: "IncodeSpacerHorizontal2",
1057
+ 4: "IncodeSpacerHorizontal4",
1058
+ 8: "IncodeSpacerHorizontal8",
1059
+ 12: "IncodeSpacerHorizontal12",
1060
+ 16: "IncodeSpacerHorizontal16",
1061
+ 20: "IncodeSpacerHorizontal20",
1062
+ 24: "IncodeSpacerHorizontal24",
1063
+ 32: "IncodeSpacerHorizontal32",
1064
+ 40: "IncodeSpacerHorizontal40",
1065
+ 48: "IncodeSpacerHorizontal48",
1066
+ 64: "IncodeSpacerHorizontal64",
1067
+ 80: "IncodeSpacerHorizontal80",
1068
+ 96: "IncodeSpacerHorizontal96",
1069
+ 104: "IncodeSpacerHorizontal104",
1070
+ 120: "IncodeSpacerHorizontal120",
1071
+ 200: "IncodeSpacerHorizontal200"
1072
+ }[size];
1073
+ return {
1074
+ 0: "IncodeSpacerVertical0",
1075
+ 2: "IncodeSpacerVertical2",
1076
+ 4: "IncodeSpacerVertical4",
1077
+ 8: "IncodeSpacerVertical8",
1078
+ 12: "IncodeSpacerVertical12",
1079
+ 16: "IncodeSpacerVertical16",
1080
+ 20: "IncodeSpacerVertical20",
1081
+ 24: "IncodeSpacerVertical24",
1082
+ 32: "IncodeSpacerVertical32",
1083
+ 40: "IncodeSpacerVertical40",
1084
+ 48: "IncodeSpacerVertical48",
1085
+ 64: "IncodeSpacerVertical64",
1086
+ 80: "IncodeSpacerVertical80",
1087
+ 96: "IncodeSpacerVertical96",
1088
+ 104: "IncodeSpacerVertical104",
1089
+ 120: "IncodeSpacerVertical120",
1090
+ 200: "IncodeSpacerVertical200"
1091
+ }[size];
1092
+ };
1093
+ var Spacer = M(function Spacer({ size, className, direction = "vertical" }) {
1094
+ if (size === void 0) return /* @__PURE__ */ u("div", { class: `IncodeSpacerFlex ${className || ""}` });
1095
+ if (!(direction === "horizontal" ? "w" : direction === "vertical" ? "h" : void 0)) return /* @__PURE__ */ u("div", { class: `${className || ""}` });
1096
+ if (typeof size === "number" && scaleTokens.has(size)) return /* @__PURE__ */ u("div", { class: `${scaleToClassName(size, direction)} ${className || ""}` });
1097
+ return /* @__PURE__ */ u("div", { class: `${className || ""}` });
1098
+ });
1099
+ //#endregion
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 };