@incodetech/web 2.3.2-rc.4 → 2.4.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 (354) hide show
  1. package/THIRD_PARTY_NOTICES.txt +0 -3
  2. package/dist/GeolocationPermissionDenied-ChCQ6Mhi.js +444 -0
  3. package/dist/ae-signature/ae-signature.es.js +3 -3
  4. package/dist/{af-ZA-CA6Cuvy7.js → af-ZA-B5RfX0Do.js} +1 -0
  5. package/dist/ageVerification-BMwwu3EI.js +77 -0
  6. package/dist/{am-C9PowMKj.js → am-BE3vlUmQ.js} +1 -0
  7. package/dist/antifraud/antifraud.es.js +3 -3
  8. package/dist/antifraud/styles.css +0 -1
  9. package/dist/{ar-AE-CyVB3e6w.js → ar-AE-Dw0claA-.js} +2 -1
  10. package/dist/{ar-CA-xYPJY.js → ar-B3gZ5W2R.js} +1 -0
  11. package/dist/{ar-EG-CbZZLN4a.js → ar-EG-5pSqEbCR.js} +1 -0
  12. package/dist/authentication/authentication.es.js +4 -4
  13. package/dist/{autoFocusTitle-DIaSbuq7.js → autoFocusTitle-DTSPbDgY.js} +1 -1
  14. package/dist/{az-CKYeugV_.js → az-CtWu_6fI.js} +1 -0
  15. package/dist/back-horizontal-hint-BztyPanp.js +134 -0
  16. package/dist/back-vertical-hint-BSzA4QbJ.js +127 -0
  17. package/dist/base.css +1 -7230
  18. package/dist/{baseTutorial-DO4gqrJQ.js → baseTutorial-CW-zwkOM.js} +13 -24
  19. package/dist/{bn-DmUH7q5R.js → bn-CXOCkHeB.js} +1 -0
  20. package/dist/{bottomSheet-BLJeBfa5.js → bottomSheet-DmQVpuxJ.js} +2 -2
  21. package/dist/{bs-CWfAeJNO.js → bs-B4mczUkN.js} +1 -0
  22. package/dist/{ca-DWaNc0fo.js → ca-DAE1dQj9.js} +1 -0
  23. package/dist/cameraOverlay-Bgpa6tky.js +2 -0
  24. package/dist/cameraOverlayHeader-BZlR-wkk.js +83 -0
  25. package/dist/{cameraView-rIbhv8fs.js → cameraView-DG425WNr.js} +2 -2
  26. package/dist/{ceb-BG6KB0JE.js → ceb-C9GCq8zw.js} +1 -0
  27. package/dist/certificate-issuance/certificate-issuance.es.js +9 -8
  28. package/dist/certificate-issuance/styles.css +1 -72
  29. package/dist/certificate-issuance/styles.css.js +1 -1
  30. package/dist/check-icon-BpjpKqhJ.js +48 -0
  31. package/dist/{checkbox-BhwI4wQM.js → checkbox-ClDWA_GP.js} +2 -2
  32. package/dist/connectionError-DnLv1SEA.js +45 -0
  33. package/dist/consent/consent.es.js +8 -6
  34. package/dist/consent/styles.css +1 -129
  35. package/dist/consent/styles.css.js +1 -1
  36. package/dist/countryDefinitions-BO9OSKQO.js +555 -0
  37. package/dist/countryFlag-2Vj85OIZ.js +67 -0
  38. package/dist/{countrySelector-yIGWfr2F.js → countrySelector-65mrWgRB.js} +6 -5
  39. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  40. package/dist/{cs-CZ-BACKrF5t.js → cs-CZ-CLmA_0jN.js} +1 -0
  41. package/dist/{cs-6iPoRnQs.js → cs-DJEcT5M8.js} +1 -0
  42. package/dist/curp-validation/curp-validation.es.js +13 -11
  43. package/dist/curp-validation/styles.css +1 -128
  44. package/dist/curp-validation/styles.css.js +1 -1
  45. package/dist/custom-fields/styles.css +1 -21
  46. package/dist/custom-fields/styles.css.js +1 -1
  47. package/dist/{customFields-C69ImDUR.js → customFields-BNX1AHc3.js} +10 -9
  48. package/dist/{customWatchlist-4DzMKHnO.js → customWatchlist-BdCLsmp2.js} +6 -6
  49. package/dist/{da-DK-CST8ldZv.js → da-DK-B0G-1XCN.js} +1 -0
  50. package/dist/{dashboardTheme-byzaKQpO.js → dashboardTheme-B3JLw1w6.js} +1 -1
  51. package/dist/dateInputComposed-81cxVVay.js +1 -0
  52. package/dist/{dateInputComposed-BJ2i31Qg.js → dateInputComposed-BwqEyZNg.js} +4 -4
  53. package/dist/{de-DvBX387Q.js → de-Pw3Ziz4S.js} +1 -0
  54. package/dist/denied-D977k8ju.js +1871 -0
  55. package/dist/deviceWallet-CoXT8GNt.js +66 -0
  56. package/dist/digitalIdRedirect-CI0JpjXY.js +162 -0
  57. package/dist/digitalIdUpload-DTrEj4Q3.js +496 -0
  58. package/dist/document-capture/document-capture.es.js +1 -1
  59. package/dist/document-capture/styles.css +1 -378
  60. package/dist/document-capture/styles.css.js +1 -1
  61. package/dist/{documentCapture-BmmRBhhG.js → documentCapture-BVs_R-Aj.js} +127 -180
  62. package/dist/documentCapture-CE3xt7Qu.js +2 -0
  63. package/dist/dropdownComposed-BBeW4gkE.js +1 -0
  64. package/dist/{dropdownComposed-BthB9H5H.js → dropdownComposed-CB55QqNd.js} +8 -14
  65. package/dist/dynamic-forms/dynamic-forms.es.js +13 -12
  66. package/dist/dynamic-forms/styles.css +1 -104
  67. package/dist/dynamic-forms/styles.css.js +1 -1
  68. package/dist/ekyb/ekyb.es.js +1 -1
  69. package/dist/ekyb/styles.css +1 -113
  70. package/dist/ekyb/styles.css.js +1 -1
  71. package/dist/ekybModule-BiVsuQhj.js +2 -0
  72. package/dist/{ekybModule-C92p0vvi.js → ekybModule-Deru8qGu.js} +13 -12
  73. package/dist/ekyc/ekyc.es.js +1 -1
  74. package/dist/ekyc/styles.css +1 -108
  75. package/dist/ekyc/styles.css.js +1 -1
  76. package/dist/ekycModule-CGS7oZAu.js +2 -0
  77. package/dist/{ekycModule-eBrLm0sR.js → ekycModule-Cb3HnENz.js} +46 -14
  78. package/dist/{el-BCSLBNUY.js → el-DlcHAcXD.js} +1 -0
  79. package/dist/{el-GR-DZW16R9N.js → el-GR-fXRg7fVy.js} +1 -0
  80. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  81. package/dist/electronic-signature/styles.css +1 -407
  82. package/dist/electronic-signature/styles.css.js +1 -1
  83. package/dist/{electronic-signature-D1d_WObD.js → electronic-signature-Bt644x6v.js} +24 -21
  84. package/dist/email/email.es.js +8 -7
  85. package/dist/email/styles.css +1 -11
  86. package/dist/email/styles.css.js +1 -1
  87. package/dist/{emailInput-CZ-0HyRS.js → emailInput-DQlm6sys.js} +3 -3
  88. package/dist/{en-QnHXrrY7.js → en-BQfrZw2Q.js} +1 -0
  89. package/dist/{en-DG-Dlff-IsT.js → en-DG-Dbay0TVK.js} +1 -0
  90. package/dist/{errorContent-T3IsDggM.js → errorContent-i-XKbliC.js} +5 -5
  91. package/dist/{es-419-JaSs0Que.js → es-419-B494eoOQ.js} +1 -0
  92. package/dist/{es-xOhDko1G.js → es-CIaH0_TG.js} +1 -0
  93. package/dist/{es-ES-C7SEV5MS.js → es-ES-BAy8H_o4.js} +1 -0
  94. package/dist/{es-MX-8mD6Ru26.js → es-MX-mRlcVoSi.js} +1 -0
  95. package/dist/esm-15CISqPe.js +430 -0
  96. package/dist/{et-DVMXfkQT.js → et-BsM-KF4Y.js} +2 -1
  97. package/dist/{expiredId-BQukSylk.js → expiredId-Bc_tCf-R.js} +6 -6
  98. package/dist/extensibility.es.js +38 -36
  99. package/dist/{fa-IR-B7JNyhKz.js → fa-IR-DKPXxDgD.js} +1 -0
  100. package/dist/face-match/face-match.es.js +1 -1
  101. package/dist/face-match/styles.css +1 -535
  102. package/dist/face-match/styles.css.js +1 -1
  103. package/dist/faceMatch-KF3QElE7.js +2 -0
  104. package/dist/faceMatch-MVYGreUC.js +336 -0
  105. package/dist/{fi-FI-CgZFjWp0.js → fi-FI-BehaswUi.js} +1 -0
  106. package/dist/field-comparison/field-comparison.es.js +1 -1
  107. package/dist/field-comparison/styles.css +1 -27
  108. package/dist/field-comparison/styles.css.js +1 -1
  109. package/dist/fieldComparison-CQG-0wfE.js +2 -0
  110. package/dist/{fieldComparison-B79amZ7h.js → fieldComparison-D4FRpZlC.js} +13 -7
  111. package/dist/finalSuccessScreen-DS4fm_uM.js +500 -0
  112. package/dist/fiscal-qr/fiscal-qr.es.js +28 -23
  113. package/dist/fiscal-qr/styles.css +1 -82
  114. package/dist/fiscal-qr/styles.css.js +1 -1
  115. package/dist/{flipAnimation-GbvrJ0-_.js → flipAnimation-NcDmqbnT.js} +643 -355
  116. package/dist/flow/flow.es.js +41 -24
  117. package/dist/flow/shell/styles.css +1 -401
  118. package/dist/flow/shell/styles.css.js +1 -1
  119. package/dist/flow/styles.css +1 -5702
  120. package/dist/{formField-tq_XH-Th.js → formField-D1sSXdbf.js} +2 -2
  121. package/dist/{fr-CA-pLsuP6oV.js → fr-CA-DZcH7XE0.js} +1 -0
  122. package/dist/{fr-DWhWFv0v.js → fr-DuG6kscd.js} +1 -0
  123. package/dist/front-horizontal-hint-DEHmtcdg.js +379 -0
  124. package/dist/{front-vertical-hint-qXMVdLri.js → front-vertical-hint-Cb1NO-xT.js} +71 -72
  125. package/dist/geolocation/geolocation.es.js +26 -459
  126. package/dist/geolocation/styles.css +1 -165
  127. package/dist/geolocation/styles.css.js +1 -1
  128. package/dist/government-validation/government-validation.es.js +15 -13
  129. package/dist/government-validation/styles.css +1 -4
  130. package/dist/government-validation/styles.css.js +1 -1
  131. package/dist/{he-BCXU1BJZ.js → he-B_PP0efY.js} +1 -0
  132. package/dist/{hi-DHKWk_3O.js → hi-D0rSX1o4.js} +1 -0
  133. package/dist/{hmn-DKxFifxf.js → hmn-DK7VD_xu.js} +1 -0
  134. package/dist/{homeScreen-C6n4tcTo.js → homeScreen-CKLvX3bf.js} +10 -11
  135. package/dist/{hr-Bb5L8s7b.js → hr-BpjWRIC0.js} +1 -0
  136. package/dist/{ht-NA3g5Q-7.js → ht-CG8o1xEm.js} +1 -0
  137. package/dist/{hu-D34RjbYg.js → hu-BmwC53l2.js} +1 -0
  138. package/dist/icons-Cri5P1f0.js +535 -0
  139. package/dist/id/id.es.js +315 -1174
  140. package/dist/id/styles.css +1 -1691
  141. package/dist/id/styles.css.js +1 -1
  142. package/dist/{id-lD25ONXO.js → id-CKlkbZdM.js} +1 -0
  143. package/dist/id-back-of-card-C7Au2tqk.js +71 -0
  144. package/dist/id-back-of-card-vertical-CtQBFw8w.js +74 -0
  145. package/dist/id-front-of-card-BmHL_keG.js +305 -0
  146. package/dist/id-front-of-card-vertical-DkNUn2Vx.js +253 -0
  147. package/dist/id-ocr/styles.css +1 -55
  148. package/dist/id-ocr/styles.css.js +1 -1
  149. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -9
  150. package/dist/id-selfie-flow/styles.css +1 -780
  151. package/dist/id-verification/id-verification.es.js +6 -5
  152. package/dist/{idOcr-B1KXgAbC.js → idOcr-vWU87y1x.js} +12 -11
  153. package/dist/identity-reuse/identity-reuse.es.js +167 -139
  154. package/dist/identity-reuse/styles.css +1 -216
  155. package/dist/incode-logo-r5UBM52t.js +341 -0
  156. package/dist/{incodeComponent-CdiXt7v7.js → incodeComponent-I3JIdKa5.js} +147 -269
  157. package/dist/incodeModule-t2FDQ-II.js +68 -0
  158. package/dist/index.es.js +4 -3
  159. package/dist/{inputComposed-8oVJL9fW.js → inputComposed-B27kZydt.js} +2 -2
  160. package/dist/inputComposed-DfPNjr7W.js +1 -0
  161. package/dist/{it-Bjpo7bkn.js → it-Ha3KMdAw.js} +1 -0
  162. package/dist/{ja-G_1vszjj.js → ja-BcpfEJD1.js} +1 -0
  163. package/dist/{ja-JP-SAKkGA9f.js → ja-JP-6Sg-lS3C.js} +2 -1
  164. package/dist/{jv-BP3Kidjb.js → jv-BhDDvojx.js} +1 -0
  165. package/dist/{ka-Byk8FCEP.js → ka-DSEmyiG7.js} +1 -0
  166. package/dist/{kk-C4-RGR2p.js → kk-DfTBM0Ac.js} +1 -0
  167. package/dist/{km-Cz7zimk3.js → km-DSH-1ryG.js} +6 -5
  168. package/dist/{ko-BDxjQ_OF.js → ko-DmCEEN9O.js} +1 -0
  169. package/dist/{ko-KP-BknUJpo0.js → ko-KP-DxNF6PVH.js} +1 -0
  170. package/dist/{ky-DwIO9bLp.js → ky-BYYkLAWt.js} +1 -0
  171. package/dist/{lo-c59MQX2S.js → lo-Dd7cFyNu.js} +1 -0
  172. package/dist/{lt-BrhZu2Vj.js → lt-DJemxo6s.js} +1 -0
  173. package/dist/{lv-Db2rbWSh.js → lv-DV6PxXYU.js} +1 -0
  174. package/dist/{mandatoryConsent-BLdpQxu2.js → mandatoryConsent-CEFsoyzd.js} +8 -6
  175. package/dist/{manualCaptureButton-wmNH54-0.js → manualCaptureButton-DghY-ZUO.js} +5 -5
  176. package/dist/{manualCaptureButton-BE9SVH5c.js → manualCaptureButton-DwcLDSMN.js} +43 -34
  177. package/dist/{mk-Uqn_8kGi.js → mk-0GH3TF8e.js} +1 -0
  178. package/dist/{mn-D7Jznd1-.js → mn-DhhnhyBd.js} +1 -0
  179. package/dist/{ms-BfMCHUa8.js → ms-DmVYGU6Y.js} +1 -0
  180. package/dist/{my-DsHXgcbs.js → my-DGXxog_l.js} +1 -0
  181. package/dist/{nb-NO-CPRHGQCR.js → nb-NO-SMmm3cOU.js} +1 -0
  182. package/dist/{ne-CMjCTP-p.js → ne-DVsGmeSd.js} +1 -0
  183. package/dist/{nl-CnBRdS5k.js → nl-CL7EuWSC.js} +2 -1
  184. package/dist/{optionAccessibleLabel-CI7JZggS.js → optionAccessibleLabel-BApMWddn.js} +5 -5
  185. package/dist/{otpInput-DxD_x747.js → otpInput-D0RomcH9.js} +6 -6
  186. package/dist/page-BzEithea.js +299 -0
  187. package/dist/{passport-horizontal-hint-6Ghn2EEN.js → passport-horizontal-hint-DgNc6F0-.js} +48 -49
  188. package/dist/{passport-vertical-hint-UPFFpdf4.js → passport-vertical-hint-B-toVsfT.js} +42 -42
  189. package/dist/{passwordInputComposed-CIM8-Hvd.js → passwordInputComposed-DqiG9IUM.js} +4 -4
  190. package/dist/{pdf-CFubyG0B.js → pdf-BKHLi5Ac.js} +2 -2
  191. package/dist/pdf.worker.min-BM1b2w9V.js +4 -0
  192. package/dist/pdfViewer-6PrH9fHg.js +2 -0
  193. package/dist/pdfViewer-DZurXIAg.js +154 -0
  194. package/dist/{permissions-plW5DkaX.js → permissions-C6NE4tvm.js} +41 -14
  195. package/dist/phone/phone.es.js +9 -8
  196. package/dist/phone/styles.css +1 -10
  197. package/dist/phone/styles.css.js +1 -1
  198. package/dist/phoneInputComposed-CVDIUrRy.js +249 -0
  199. package/dist/{pl-Dk_XCbHn.js → pl-9hyt0nnb.js} +1 -0
  200. package/dist/policyUrls-B3M8nLRh.js +7 -0
  201. package/dist/{processing-BnNbgJs3.js → processing-Do2ee2et.js} +1 -1
  202. package/dist/progressBar-CNBUGgEc.js +27 -0
  203. package/dist/{pt-BR-BL7B4wuD.js → pt-BR-BBMw-S8O.js} +1 -0
  204. package/dist/{pt-PT-CNhvgKtg.js → pt-PT-fSxcH0NK.js} +1 -0
  205. package/dist/{pt-BLVxgywN.js → pt-WGxHmjdN.js} +1 -0
  206. package/dist/{spacer-BmQEPV3n.js → purify.es-0fCPkEV1.js} +2 -740
  207. package/dist/qe-signature/qe-signature.es.js +3 -3
  208. package/dist/radioGroupComposed-Cy6hgLBE.js +1 -0
  209. package/dist/{radioGroupComposed-DFloG_N-.js → radioGroupComposed-FYYC8SNS.js} +2 -2
  210. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +116 -13
  211. package/dist/redirect-to-mobile/styles.css +1 -323
  212. package/dist/redirect-to-mobile/styles.css.js +1 -1
  213. package/dist/reload-icon-elAFo9-k.js +70 -0
  214. package/dist/{resendTimer-BdmoqbO1.js → resendTimer-C0tGof4N.js} +1 -1
  215. package/dist/{richText-lWTHIpaP.js → richText-aCnLd3j2.js} +2 -2
  216. package/dist/{ro-B_y2K2EA.js → ro-CRut2TFS.js} +1 -0
  217. package/dist/{ru-BYq3R3Mj.js → ru-DKaZyUKL.js} +1 -0
  218. package/dist/{ru-RU-CRVS8j8Y.js → ru-RU-C09Xv3Yg.js} +1 -0
  219. package/dist/sanitizeSvg-BC-qLUgS.js +35 -0
  220. package/dist/selfie/selfie.es.js +9 -184
  221. package/dist/selfie/styles.css +1 -501
  222. package/dist/selfie/styles.css.js +1 -1
  223. package/dist/signature/signature.es.js +8 -7
  224. package/dist/signature/styles.css +1 -116
  225. package/dist/signature/styles.css.js +1 -1
  226. package/dist/{sk-CezkyMyH.js → sk-CRgCa4Xy.js} +1 -0
  227. package/dist/{sl-BWF10Icq.js → sl-BnWo7ffO.js} +1 -0
  228. package/dist/{smsTabContent-ok2pyDhh.js → smsTabContent-DrX3JFpW.js} +6 -7
  229. package/dist/{so-BrcNZ8Mr.js → so-QQqlxuIj.js} +1 -0
  230. package/dist/spacer-CRMb016O.js +741 -0
  231. package/dist/{spinner-C4do7hWX.js → spinner-B2lU14AQ.js} +2 -2
  232. package/dist/{sr-BnXGxOH1.js → sr-B5E7ItZS.js} +1 -0
  233. package/dist/{sr-Latn-6U6Ovy-Q.js → sr-Latn-DYffMLFY.js} +4 -3
  234. package/dist/{sr-YU-9B3BK4Ps.js → sr-YU-wTH5Bs0f.js} +1 -0
  235. package/dist/{statusPage-CXHHTIXA.js → statusPage-BIL3xP5F.js} +3 -3
  236. package/dist/{sv-SE-CpuV8J7C.js → sv-SE-CWW4jCGJ.js} +1 -0
  237. package/dist/{sw-BT-fzBc4.js → sw-DQMkDT3g.js} +1 -0
  238. package/dist/{th-D3ufVPwG.js → th-3PSK_Dsh.js} +1 -0
  239. package/dist/{th-TH-B4rqmZvR.js → th-TH-BT3vwWPA.js} +1 -0
  240. package/dist/themes/dark.css +1 -1537
  241. package/dist/themes/light.css +1 -1413
  242. package/dist/{tl-CUyJhGKF.js → tl-BjxdIajM.js} +1 -0
  243. package/dist/{tl-PH-D6NzZs7e.js → tl-PH-C_wJmHt1.js} +1 -0
  244. package/dist/{tr-BTjhr_32.js → tr-BhmOJl6w.js} +3 -2
  245. package/dist/transitionSpinner-CPK1gaqC.js +76 -0
  246. package/dist/{tutorial-BywSwy2f.js → tutorial-D9Tr_r15.js} +14 -18
  247. package/dist/types/ae-signature.d.ts +27 -5
  248. package/dist/types/antifraud.d.ts +27 -5
  249. package/dist/types/authentication.d.ts +27 -5
  250. package/dist/types/certificate-issuance.d.ts +27 -5
  251. package/dist/types/consent.d.ts +27 -3
  252. package/dist/types/cross-document-data-match.d.ts +32 -2
  253. package/dist/types/curp-validation.d.ts +27 -5
  254. package/dist/types/document-capture.d.ts +32 -2
  255. package/dist/types/dynamic-forms.d.ts +27 -5
  256. package/dist/types/ekyb.d.ts +32 -2
  257. package/dist/types/ekyc.d.ts +32 -2
  258. package/dist/types/electronic-signature.d.ts +27 -5
  259. package/dist/types/email.d.ts +27 -3
  260. package/dist/types/extensibility.d.ts +135 -27
  261. package/dist/types/face-match.d.ts +32 -2
  262. package/dist/types/field-comparison.d.ts +32 -2
  263. package/dist/types/fiscal-qr.d.ts +27 -3
  264. package/dist/types/flow.d.ts +27 -3
  265. package/dist/types/geolocation.d.ts +27 -3
  266. package/dist/types/government-validation.d.ts +32 -2
  267. package/dist/types/id-selfie-flow.d.ts +27 -14
  268. package/dist/types/id-verification.d.ts +27 -5
  269. package/dist/types/id.d.ts +27 -3
  270. package/dist/types/identity-reuse.d.ts +27 -5
  271. package/dist/types/index.d.ts +52 -1
  272. package/dist/types/phone.d.ts +27 -3
  273. package/dist/types/qe-signature.d.ts +27 -5
  274. package/dist/types/selfie.d.ts +27 -3
  275. package/dist/types/signature.d.ts +27 -5
  276. package/dist/types/video-selfie.d.ts +5 -2
  277. package/dist/types/watchlist.d.ts +27 -5
  278. package/dist/types/workflow.d.ts +50 -4
  279. package/dist/{typography-Cn7-Znpn.js → typography-CVggEHuL.js} +1 -1
  280. package/dist/{uiConfig-qMQHPoxa.js → uiConfig-CzjzpmLx.js} +256 -874
  281. package/dist/{uk-UA-YhEHqst_.js → uk-UA-D8etJPYS.js} +2 -1
  282. package/dist/{uk-ChhaHUBd.js → uk-XbgXa2Ga.js} +1 -0
  283. package/dist/{ur-BG91n7xX.js → ur-EvEZPGeH.js} +1 -0
  284. package/dist/useCaptureHelpButton-Dh2rCLy1.js +86 -0
  285. package/dist/useCoverMedia-VLw3OYN_.js +149 -0
  286. package/dist/{uz-BHE3Jn6i.js → uz-CLNoByCo.js} +1 -0
  287. package/dist/{verificationResult-C7wTXPts.js → verificationResult-CZbJPu23.js} +6 -6
  288. package/dist/{vi-BV5GRZ61.js → vi-Drg8ZYY0.js} +1 -0
  289. package/dist/video-selfie/styles.css +1 -864
  290. package/dist/video-selfie/styles.css.js +1 -1
  291. package/dist/video-selfie/video-selfie.es.js +15 -12
  292. package/dist/watchlist/watchlist.es.js +6 -6
  293. package/dist/watchlist-for-business/styles.css +1 -17
  294. package/dist/watchlist-for-business/styles.css.js +1 -1
  295. package/dist/{watchlistForBusiness-Bjh_-5Y6.js → watchlistForBusiness-CjEsaTUW.js} +265 -8
  296. package/dist/{resolveApiKey-D14Dir23.js → withEndScreenTexts-CFZVBpbY.js} +53 -25
  297. package/dist/workflow/styles.css +1 -5116
  298. package/dist/workflow/workflow.es.js +83 -28
  299. package/dist/{zh-CN-DGW8k_EJ.js → zh-CN-DgsFb5nA.js} +3 -2
  300. package/dist/{zh-DNadxa_J.js → zh-D9t3i09v.js} +1 -0
  301. package/dist/{zh-HANT-DZvzTGaC.js → zh-HANT-DA0DsBcr.js} +1 -0
  302. package/dist/{zh-TW-DNQrPdBy.js → zh-TW-BjJ6hVEd.js} +1 -0
  303. package/package.json +8 -6
  304. package/dist/back-horizontal-hint-UQ7Nof6k.js +0 -137
  305. package/dist/back-vertical-hint-Crc8ybfk.js +0 -128
  306. package/dist/cameraOverlay-B_XWm0TM.js +0 -2
  307. package/dist/cameraOverlayHeader-DP6EP8Yu.js +0 -43
  308. package/dist/captureFooter-c_0jBnZ7.js +0 -67
  309. package/dist/connectionError-C7NJ8tzk.js +0 -45
  310. package/dist/countries-5e8kwG_m.js +0 -8560
  311. package/dist/dateInputComposed-D4OMicAE.js +0 -1
  312. package/dist/denied-D9PfdAvK.js +0 -2191
  313. package/dist/documentCapture-BSewRSbI.js +0 -2
  314. package/dist/dropdownComposed-09JlREPP.js +0 -1
  315. package/dist/ekybModule-DJhJoDkx.js +0 -2
  316. package/dist/ekycModule-CNshA9vz.js +0 -2
  317. package/dist/faceMatch-CbE3kMV1.js +0 -2
  318. package/dist/faceMatch-DdQuasoZ.js +0 -334
  319. package/dist/fieldComparison-fl8WhFZs.js +0 -2
  320. package/dist/finalSuccessScreen-DCG20NUQ.js +0 -499
  321. package/dist/front-horizontal-hint-mgovnJf3.js +0 -380
  322. package/dist/icons-lmBQFGnv.js +0 -533
  323. package/dist/id-back-of-card-B6EcmiCs.js +0 -83
  324. package/dist/id-back-of-card-vertical-B3FXhPpj.js +0 -88
  325. package/dist/id-front-of-card-V_BlLaZr.js +0 -308
  326. package/dist/id-front-of-card-vertical-CuZjL8kc.js +0 -278
  327. package/dist/incode-logo-BzJOZr3f.js +0 -4
  328. package/dist/incodeModule-f_OUurEl.js +0 -31
  329. package/dist/inputComposed-DMfj1MDU.js +0 -1
  330. package/dist/modal-CDsyaY_Z.js +0 -140
  331. package/dist/modal.hooks-B0Wrc9s2.js +0 -201
  332. package/dist/pdfViewer-DZpdaUDt.js +0 -149
  333. package/dist/pdfViewer-O6xIPlaK.js +0 -2
  334. package/dist/phoneInputComposed-DZMfEBok.js +0 -3751
  335. package/dist/radioGroupComposed-B06_2Xwu.js +0 -1
  336. package/dist/tabs-CaZGiNK8.js +0 -104
  337. /package/dist/{aligndevicelottie-B12hbVhG.js → aligndevicelottie-BARt-rhe.js} +0 -0
  338. /package/dist/{back-tutorial-XdmQ0Wml.js → back-tutorial-CZrMmj1_.js} +0 -0
  339. /package/dist/{backdevicelottie-m_DOD8xE.js → backdevicelottie-CIM3ekd8.js} +0 -0
  340. /package/dist/{blurdevicelottie-DQo_hTMD.js → blurdevicelottie-BRyXfLB6.js} +0 -0
  341. /package/dist/{browser-ponyfill-ZkeBm4ji.js → browser-ponyfill-DT11p-Ob.js} +0 -0
  342. /package/dist/{defineProperty-BojnCa44.js → defineProperty-CjeJoXkx.js} +0 -0
  343. /package/dist/{flip-animation-VicedlT5.js → flip-animation-BU5LNKYx.js} +0 -0
  344. /package/dist/{frontdevicelottie-CyIerlMv.js → frontdevicelottie-arpyu_Fz.js} +0 -0
  345. /package/dist/{glaredevicelottie-QM2C6Ivp.js → glaredevicelottie-TwTFxe7h.js} +0 -0
  346. /package/dist/{id-laser-h-B0-iXcvl.js → id-laser-h-Dr-hBxrq.js} +0 -0
  347. /package/dist/{id-laser-v-Bqh6vimi.js → id-laser-v-D_r0QNY8.js} +0 -0
  348. /package/dist/{id-tutorial-IhmAzrIF.js → id-tutorial-DM9Pkfs-.js} +0 -0
  349. /package/dist/{lottie_light-CzZ3CHBk.js → lottie_light-aMg9Q9iO.js} +0 -0
  350. /package/dist/{numberedStep-C8e_uPaz.js → numberedStep-CvbL3ht2.js} +0 -0
  351. /package/dist/{passport-tutorial-61vlloJS.js → passport-tutorial-CKZZuDf_.js} +0 -0
  352. /package/dist/{registerIncodeElement-CbZczi4S.js → registerIncodeElement-D_cn4dSI.js} +0 -0
  353. /package/dist/{selfieTutorial-BRQ2QNxQ.js → selfieTutorial-Dz6lDFMn.js} +0 -0
  354. /package/dist/{useModuleLoader-DpcbSKBH.js → useModuleLoader-BdIp6TNQ.js} +0 -0
@@ -1,19 +1,3 @@
1
- import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
2
- import { o as useTranslation, r as useUiConfig } from "./uiConfig-qMQHPoxa.js";
3
- import { _ as y, b as Q, c as A, d as _, f as d, g as x, h as q, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
4
- //#region src/styles/cn.tsx
5
- var cn = (...classes) => {
6
- const result = [];
7
- for (const cls of classes) {
8
- if (!cls) continue;
9
- if (typeof cls === "string") result.push(cls);
10
- else if (typeof cls === "object") {
11
- for (const [key, value] of Object.entries(cls)) if (value) result.push(key);
12
- }
13
- }
14
- return result.join(" ");
15
- };
16
- //#endregion
17
1
  //#region ../../node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
18
2
  /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
19
3
  var { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object;
@@ -1617,728 +1601,6 @@ function createDOMPurify() {
1617
1601
  };
1618
1602
  return DOMPurify;
1619
1603
  }
1620
- var purify$1 = createDOMPurify();
1621
- //#endregion
1622
- //#region src/shared/assets/sanitizeSvg.ts
1623
- var SVG_SANITIZE_CONFIG = {
1624
- USE_PROFILES: {
1625
- svg: true,
1626
- svgFilters: true
1627
- },
1628
- FORBID_TAGS: ["foreignObject"],
1629
- ADD_TAGS: ["use"]
1630
- };
1631
- var purify = purify$1(window);
1632
- var strippedHref = false;
1633
- purify.addHook("uponSanitizeAttribute", (_node, data) => {
1634
- if ((data.attrName === "href" || data.attrName === "xlink:href") && !String(data.attrValue).startsWith("#")) {
1635
- data.keepAttr = false;
1636
- strippedHref = true;
1637
- }
1638
- });
1639
- /**
1640
- * Sanitizes untrusted SVG markup for safe inline injection. Strips scripts,
1641
- * event handlers, `<foreignObject>`, and external `href` / `xlink:href` (while
1642
- * keeping in-document `#fragment` references SVGs rely on for gradients and
1643
- * filters). An all-stripped payload yields `markup: ''`; the caller treats
1644
- * both that and `strippedHref` as a failed override and falls back to the
1645
- * built-in default.
1646
- */
1647
- function sanitizeSvg(raw) {
1648
- strippedHref = false;
1649
- return {
1650
- markup: purify.sanitize(raw, SVG_SANITIZE_CONFIG),
1651
- strippedHref
1652
- };
1653
- }
1654
- //#endregion
1655
- //#region src/shared/assets/instanceOverrides.ts
1656
- var InstanceOverridesContext = Q({});
1657
- var InstanceOverridesProvider = InstanceOverridesContext.Provider;
1658
- function useInstanceOverrides() {
1659
- return x(InstanceOverridesContext);
1660
- }
1661
- //#endregion
1662
- //#region src/shared/assets/assetRegistry.ts
1663
- var defaultExport = (module) => module.default;
1664
- var decorative = { ariaHidden: true };
1665
- var assetRegistry = {
1666
- "faceMatch.success": { a11y: decorative },
1667
- "faceMatch.fail": { a11y: decorative },
1668
- "documentCapture.tutorial": { a11y: decorative },
1669
- "id.uploadScreen": { a11y: decorative },
1670
- "id.ageVerification.dob": { a11y: decorative },
1671
- "id.ageVerification.scan": { a11y: decorative },
1672
- "id.ageVerification.privacy": { a11y: decorative },
1673
- "videoSelfie.success": { a11y: decorative },
1674
- "videoSelfie.fail": { a11y: decorative },
1675
- "videoSelfie.tutorial.permission": { a11y: decorative },
1676
- "videoSelfie.tutorial.selfie": { a11y: decorative },
1677
- "videoSelfie.tutorial.frontId": { a11y: decorative },
1678
- "videoSelfie.tutorial.backId": { a11y: decorative },
1679
- "videoSelfie.tutorial.poa": { a11y: decorative },
1680
- "videoSelfie.tutorial.questions": { a11y: decorative },
1681
- "videoSelfie.tutorial.speech": { a11y: decorative },
1682
- "loader.spinner": { a11y: decorative }
1683
- };
1684
- var animationRegistry = {
1685
- "id.tutorial.front": {
1686
- default: () => import("./id-tutorial-IhmAzrIF.js").then(defaultExport),
1687
- a11y: decorative
1688
- },
1689
- "id.tutorial.back": {
1690
- default: () => import("./back-tutorial-XdmQ0Wml.js").then(defaultExport),
1691
- a11y: decorative
1692
- },
1693
- "id.tutorial.passport": {
1694
- default: () => import("./passport-tutorial-61vlloJS.js").then(defaultExport),
1695
- a11y: decorative
1696
- },
1697
- "id.flip": {
1698
- default: () => import("./flip-animation-VicedlT5.js").then(defaultExport),
1699
- a11y: decorative
1700
- },
1701
- "id.processing": {
1702
- default: {
1703
- horizontal: () => import("./id-laser-h-B0-iXcvl.js").then(defaultExport),
1704
- vertical: () => import("./id-laser-v-Bqh6vimi.js").then(defaultExport)
1705
- },
1706
- a11y: decorative
1707
- },
1708
- "selfie.tutorial": {
1709
- default: () => import("./selfieTutorial-BRQ2QNxQ.js").then(defaultExport),
1710
- a11y: decorative
1711
- },
1712
- "loader.spinner": {
1713
- default: null,
1714
- a11y: decorative
1715
- }
1716
- };
1717
- //#endregion
1718
- //#region src/shared/assets/resolveAsset.ts
1719
- /**
1720
- * Whether a resolved value represents an active override, as opposed to no
1721
- * override at all (`type === 'default'`).
1722
- */
1723
- function isActiveOverride(resolved) {
1724
- return resolved !== null && resolved.type !== "default";
1725
- }
1726
- function warnUnknownKey(key) {
1727
- `${key}`;
1728
- }
1729
- function isValidUrl(url) {
1730
- const SCHEME_PREFIX = /^[a-zA-Z][a-zA-Z0-9+.-]*:/;
1731
- if (url === "" || /\s/.test(url)) return false;
1732
- if (!SCHEME_PREFIX.test(url)) return true;
1733
- try {
1734
- new URL(url);
1735
- return true;
1736
- } catch {
1737
- return false;
1738
- }
1739
- }
1740
- function normalizeAssetOverride(override) {
1741
- if (override === void 0) return null;
1742
- if (typeof override === "string") {
1743
- const value = override.trim();
1744
- if (value === "") return null;
1745
- if (value.startsWith("<")) return {
1746
- type: "override-raw",
1747
- raw: value
1748
- };
1749
- if (!isValidUrl(value)) return null;
1750
- return {
1751
- type: "override-url",
1752
- url: value
1753
- };
1754
- }
1755
- if ("svg" in override) return {
1756
- type: "override-component",
1757
- component: override.svg
1758
- };
1759
- if ("raw" in override) {
1760
- const raw = override.raw.trim();
1761
- return raw === "" ? null : {
1762
- type: "override-raw",
1763
- raw
1764
- };
1765
- }
1766
- if ("url" in override) {
1767
- const url = override.url.trim();
1768
- if (url === "") return null;
1769
- if (!isValidUrl(url)) return null;
1770
- return {
1771
- type: "override-url",
1772
- url
1773
- };
1774
- }
1775
- return null;
1776
- }
1777
- function normalizeAnimationOverride(override) {
1778
- if (override === void 0) return null;
1779
- if ("url" in override) {
1780
- const url = override.url.trim();
1781
- if (url === "") return null;
1782
- if (!isValidUrl(url)) return null;
1783
- return {
1784
- type: "override-url",
1785
- url
1786
- };
1787
- }
1788
- if ("animationData" in override) return {
1789
- type: "override-data",
1790
- animationData: override.animationData
1791
- };
1792
- return {
1793
- type: "override-data",
1794
- animationData: override
1795
- };
1796
- }
1797
- function resolveAsset(key, scopes = {}) {
1798
- scopes.instance;
1799
- scopes.global;
1800
- const entry = assetRegistry[key];
1801
- if (entry === void 0) {
1802
- warnUnknownKey(key);
1803
- return null;
1804
- }
1805
- const override = normalizeAssetOverride(scopes.instance?.[key]) ?? normalizeAssetOverride(scopes.global?.[key]);
1806
- if (override !== null) return {
1807
- ...override,
1808
- a11y: entry.a11y
1809
- };
1810
- return {
1811
- type: "default",
1812
- a11y: entry.a11y
1813
- };
1814
- }
1815
- function resolveAnimation(key, scopes = {}) {
1816
- scopes.instance;
1817
- scopes.global;
1818
- const entry = animationRegistry[key];
1819
- if (entry === void 0) {
1820
- warnUnknownKey(key);
1821
- return null;
1822
- }
1823
- const override = normalizeAnimationOverride(scopes.instance?.[key]) ?? normalizeAnimationOverride(scopes.global?.[key]);
1824
- if (override !== null) return {
1825
- ...override,
1826
- a11y: entry.a11y
1827
- };
1828
- return {
1829
- type: "default",
1830
- default: entry.default,
1831
- a11y: entry.a11y
1832
- };
1833
- }
1834
- //#endregion
1835
- //#region src/shared/assets/useAsset.ts
1836
- function useAsset(key) {
1837
- const instance = useInstanceOverrides();
1838
- const uiConfig = useUiConfig();
1839
- return T(() => {
1840
- return resolveAsset(key, {
1841
- instance: instance.assets,
1842
- global: uiConfig.assets
1843
- });
1844
- }, [
1845
- key,
1846
- instance.assets,
1847
- uiConfig.assets
1848
- ]);
1849
- }
1850
- function useAnimation(key) {
1851
- const instance = useInstanceOverrides();
1852
- const uiConfig = useUiConfig();
1853
- return T(() => {
1854
- return resolveAnimation(key, {
1855
- instance: instance.animations,
1856
- global: uiConfig.animations
1857
- });
1858
- }, [
1859
- key,
1860
- instance.animations,
1861
- uiConfig.animations
1862
- ]);
1863
- }
1864
- //#endregion
1865
- //#region src/shared/assets/asset.tsx
1866
- function altText(a11y, t) {
1867
- return "altKey" in a11y ? t(a11y.altKey) : "";
1868
- }
1869
- function svgA11y(a11y, t) {
1870
- return "altKey" in a11y ? {
1871
- role: "img",
1872
- "aria-label": t(a11y.altKey)
1873
- } : { "aria-hidden": "true" };
1874
- }
1875
- /**
1876
- * Normalizes the call-site `default` into a renderable shape. Trusted (it is a
1877
- * bundled SDK asset), so raw markup is not sanitized — unlike a customer raw
1878
- * override.
1879
- */
1880
- function defaultToRenderable(value) {
1881
- if (value === void 0) return null;
1882
- if (typeof value === "function") return {
1883
- kind: "component",
1884
- value
1885
- };
1886
- return value.trim().startsWith("<") ? {
1887
- kind: "raw",
1888
- value
1889
- } : {
1890
- kind: "url",
1891
- value
1892
- };
1893
- }
1894
- function useAssetContent(key, defaultAsset, onFallback) {
1895
- const resolved = useAsset(key);
1896
- const [failedUrl, setFailedUrl] = d(null);
1897
- const rawOverride = resolved?.type === "override-raw" ? resolved.raw : null;
1898
- const sanitizedRaw = T(() => rawOverride === null ? null : sanitizeSvg(rawOverride), [rawOverride]);
1899
- const urlFailed = resolved?.type === "override-url" && resolved.url === failedUrl;
1900
- const rawStripped = rawOverride !== null && (sanitizedRaw?.strippedHref === true || (sanitizedRaw?.markup ?? "").trim() === "");
1901
- y(() => {
1902
- if (urlFailed || rawStripped) onFallback?.();
1903
- }, [
1904
- urlFailed,
1905
- rawStripped,
1906
- onFallback
1907
- ]);
1908
- if (resolved === null) return null;
1909
- const useDefault = resolved.type === "default" || urlFailed || rawStripped;
1910
- const { a11y } = resolved;
1911
- if (!useDefault) switch (resolved.type) {
1912
- case "override-component": return {
1913
- content: {
1914
- kind: "component",
1915
- value: resolved.component
1916
- },
1917
- a11y
1918
- };
1919
- case "override-url": return {
1920
- content: {
1921
- kind: "url",
1922
- value: resolved.url,
1923
- onError: () => setFailedUrl(resolved.url)
1924
- },
1925
- a11y
1926
- };
1927
- case "override-raw": return {
1928
- content: {
1929
- kind: "raw",
1930
- value: sanitizedRaw?.markup ?? ""
1931
- },
1932
- a11y
1933
- };
1934
- }
1935
- const content = defaultToRenderable(defaultAsset);
1936
- return content ? {
1937
- content,
1938
- a11y
1939
- } : null;
1940
- }
1941
- function renderAsset(content, a11y, t, className) {
1942
- switch (content.kind) {
1943
- case "component": {
1944
- const Svg = content.value;
1945
- return /* @__PURE__ */ u(Svg, {
1946
- class: className,
1947
- ...svgA11y(a11y, t)
1948
- });
1949
- }
1950
- case "url": return /* @__PURE__ */ u("img", {
1951
- src: content.value,
1952
- alt: altText(a11y, t),
1953
- "aria-hidden": "altKey" in a11y ? void 0 : "true",
1954
- class: className,
1955
- onError: content.onError
1956
- });
1957
- case "raw": return /* @__PURE__ */ u("span", {
1958
- class: cn("IncodeAssetRaw", className),
1959
- ...svgA11y(a11y, t),
1960
- dangerouslySetInnerHTML: { __html: content.value }
1961
- });
1962
- default: return content;
1963
- }
1964
- }
1965
- /**
1966
- * Renders a branded illustration by catalog key, honoring the resolved
1967
- * precedence (per-instance → global → built-in default). The built-in default
1968
- * is supplied by the call site via `default` (imported on-site).
1969
- */
1970
- function Asset({ name, class: className, default: defaultAsset, onFallback }) {
1971
- const { t } = useTranslation();
1972
- const result = useAssetContent(name, defaultAsset, onFallback);
1973
- if (result === null) return null;
1974
- return renderAsset(result.content, result.a11y, t, className);
1975
- }
1976
- //#endregion
1977
- //#region src/shared/lottie/lottie.tsx
1978
- var lottiePromise = null;
1979
- async function loadLottie() {
1980
- if (lottiePromise) return lottiePromise;
1981
- lottiePromise = import("./lottie_light-CzZ3CHBk.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => mod.default);
1982
- return lottiePromise;
1983
- }
1984
- var AUTO_STOP_AFTER_MS = 5e3;
1985
- function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
1986
- const containerRef = A(null);
1987
- const effectiveAutoplay = reverse ? false : autoplay;
1988
- const animationOptionsRef = A({
1989
- container: containerRef.current,
1990
- renderer: "svg",
1991
- loop,
1992
- autoplay: effectiveAutoplay,
1993
- animationData
1994
- });
1995
- y(() => {
1996
- animationOptionsRef.current = {
1997
- container: containerRef.current,
1998
- renderer: "svg",
1999
- loop,
2000
- autoplay: effectiveAutoplay,
2001
- animationData
2002
- };
2003
- }, [
2004
- animationData,
2005
- loop,
2006
- effectiveAutoplay
2007
- ]);
2008
- y(() => {
2009
- if (!containerRef.current) return;
2010
- let anim;
2011
- let stopTimer;
2012
- let isMounted = true;
2013
- loadLottie().then((lottie) => {
2014
- if (!isMounted) return;
2015
- anim = lottie.loadAnimation(animationOptionsRef.current);
2016
- if (reverse) {
2017
- anim.setDirection(-1);
2018
- anim.goToAndPlay(anim.totalFrames - 1, true);
2019
- }
2020
- if (onComplete) anim.addEventListener("complete", onComplete);
2021
- if (autoStop) stopTimer = window.setTimeout(() => {
2022
- const current = anim;
2023
- if (!current) return;
2024
- if (!stopFramePosition) {
2025
- current.pause();
2026
- return;
2027
- }
2028
- const totalFrames = current.totalFrames;
2029
- if (!totalFrames || totalFrames <= 0) {
2030
- current.stop();
2031
- return;
2032
- }
2033
- const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
2034
- current.goToAndStop(targetFrame, true);
2035
- }, AUTO_STOP_AFTER_MS);
2036
- });
2037
- return () => {
2038
- isMounted = false;
2039
- if (stopTimer !== void 0) window.clearTimeout(stopTimer);
2040
- if (anim) {
2041
- if (onComplete) anim.removeEventListener("complete", onComplete);
2042
- anim.destroy();
2043
- }
2044
- };
2045
- }, [
2046
- onComplete,
2047
- reverse,
2048
- autoStop,
2049
- stopFramePosition
2050
- ]);
2051
- return /* @__PURE__ */ u("div", {
2052
- ref: containerRef,
2053
- style,
2054
- className,
2055
- "aria-hidden": "true"
2056
- });
2057
- }
2058
- //#endregion
2059
- //#region src/shared/assets/animatedAsset.tsx
2060
- var overrideUrlCache = /* @__PURE__ */ new Map();
2061
- function fetchAnimation(url) {
2062
- const cached = overrideUrlCache.get(url);
2063
- if (cached) return cached;
2064
- const pending = fetch(url).then((response) => {
2065
- if (!response.ok) throw new Error(`Request for "${url}" failed with status ${response.status}.`);
2066
- return response.json();
2067
- });
2068
- overrideUrlCache.set(url, pending);
2069
- pending.catch(() => overrideUrlCache.delete(url));
2070
- return pending;
2071
- }
2072
- function loadAnimationDefault(def, orientation) {
2073
- if (def === null) return Promise.resolve(null);
2074
- if (typeof def === "function") return def();
2075
- return def[orientation]();
2076
- }
2077
- var defaultCache = /* @__PURE__ */ new Map();
2078
- function defaultCacheKey(name, orientation) {
2079
- return `${name}|${orientation}`;
2080
- }
2081
- function loadDefaultCached(name, orientation) {
2082
- const cacheKey = defaultCacheKey(name, orientation);
2083
- if (defaultCache.has(cacheKey)) return Promise.resolve(defaultCache.get(cacheKey) ?? null);
2084
- return loadAnimationDefault(animationRegistry[name]?.default ?? null, orientation).then((value) => {
2085
- defaultCache.set(cacheKey, value);
2086
- return value;
2087
- });
2088
- }
2089
- /**
2090
- * Warms the built-in animation cache for the given catalog keys so a later
2091
- * render is synchronous (no flash). Best-effort; call it before the screen
2092
- * mounts.
2093
- */
2094
- function preloadAnimations(keys, orientation = "vertical") {
2095
- for (const key of keys) loadDefaultCached(key, orientation).catch(() => {});
2096
- }
2097
- /**
2098
- * Resolves the winning animation to parsed `animationData` plus whether it came
2099
- * from a customer override. Reads the default cache synchronously on first
2100
- * render, so a preloaded animation shows with no flash. A failed override URL
2101
- * silently falls back to the built-in default.
2102
- *
2103
- * Shared by `AnimatedAsset` and by tutorial surfaces that render Lottie
2104
- * themselves (e.g. `BaseTutorial`, which recolors only built-in defaults).
2105
- *
2106
- * `onFallback`, if given, fires only when a *configured* override actually
2107
- * fails to load (never when there was simply no override to begin with) —
2108
- * for a caller whose true fallback lives outside this system entirely, so it
2109
- * can react to a real failure instead of committing to render this component before
2110
- * knowing whether the override will actually work.
2111
- */
2112
- function useAnimationData(name, orientation = "vertical", onFallback) {
2113
- const resolved = useAnimation(name);
2114
- const type = resolved?.type;
2115
- const isOverride = isActiveOverride(resolved);
2116
- const overrideUrl = resolved?.type === "override-url" ? resolved.url : void 0;
2117
- const overrideData = resolved?.type === "override-data" ? resolved.animationData : void 0;
2118
- const [data, setData] = d(() => {
2119
- if (type === "override-data") return overrideData ?? null;
2120
- if (type === "default") return defaultCache.get(defaultCacheKey(name, orientation)) ?? null;
2121
- return null;
2122
- });
2123
- const [overrideFailed, setOverrideFailed] = d(false);
2124
- y(() => {
2125
- let active = true;
2126
- setOverrideFailed(false);
2127
- if (type === void 0) setData(null);
2128
- else if (type === "override-data") setData(overrideData ?? null);
2129
- else if (type === "override-url" && overrideUrl !== void 0) fetchAnimation(overrideUrl).then((value) => {
2130
- if (active) setData(value);
2131
- }, (error) => {
2132
- `${name}`;
2133
- if (active) {
2134
- setOverrideFailed(true);
2135
- loadDefaultCached(name, orientation).then((value) => {
2136
- if (active) setData(value);
2137
- }, () => {});
2138
- }
2139
- });
2140
- else loadDefaultCached(name, orientation).then((value) => {
2141
- if (active) setData(value);
2142
- }, (error) => {
2143
- if (active) {
2144
- setData(null);
2145
- `${name}`;
2146
- }
2147
- });
2148
- return () => {
2149
- active = false;
2150
- };
2151
- }, [
2152
- name,
2153
- orientation,
2154
- type,
2155
- overrideUrl,
2156
- overrideData
2157
- ]);
2158
- y(() => {
2159
- if (overrideFailed) onFallback?.();
2160
- }, [overrideFailed, onFallback]);
2161
- return {
2162
- data,
2163
- isOverride
2164
- };
2165
- }
2166
- /**
2167
- * Renders a Lottie animation by catalog key, honoring the resolved precedence
2168
- * (per-instance → global → built-in default). Renders nothing while pending or
2169
- * when there is no Lottie to show; the container is `aria-hidden` (all catalog
2170
- * animations are decorative).
2171
- */
2172
- function AnimatedAsset({ name, autoStop, stopFramePosition, orientation = "vertical", loop, reverse, onComplete, class: className, onFallback }) {
2173
- const { data } = useAnimationData(name, orientation, onFallback);
2174
- if (data === null) return null;
2175
- return /* @__PURE__ */ u(Lottie, {
2176
- animationData: data,
2177
- autoStop,
2178
- stopFramePosition,
2179
- loop,
2180
- reverse,
2181
- onComplete,
2182
- className
2183
- });
2184
- }
2185
- //#endregion
2186
- //#region src/shared/loader/loadingIcon.tsx
2187
- /**
2188
- * Duration of the CSS spin animation on `.IncodeLoadingIcon`.
2189
- * Must stay in sync with the `animation-duration` declared in the stylesheet.
2190
- */
2191
- var SPIN_DURATION_MS = 1e3;
2192
- var SpinnerPrimary = ({ size, className }) => {
2193
- return /* @__PURE__ */ u("svg", {
2194
- width: size,
2195
- height: size,
2196
- viewBox: "0 0 31 31",
2197
- fill: "none",
2198
- xmlns: "http://www.w3.org/2000/svg",
2199
- class: cn("IncodeLoadingIconPrimaryIcon", className),
2200
- "aria-hidden": "true",
2201
- children: /* @__PURE__ */ u("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
2202
- });
2203
- };
2204
- var SpinnerSecondary = ({ size, className }) => {
2205
- return /* @__PURE__ */ u("svg", {
2206
- width: size,
2207
- height: size,
2208
- viewBox: "0 0 31 31",
2209
- fill: "none",
2210
- xmlns: "http://www.w3.org/2000/svg",
2211
- class: cn("IncodeLoadingIconSecondaryIcon", className),
2212
- "aria-hidden": "true",
2213
- children: [/* @__PURE__ */ u("title", { children: "Spinner Outer part" }), /* @__PURE__ */ u("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })]
2214
- });
2215
- };
2216
- var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
2217
- const ref = A(null);
2218
- const overrideRef = A(null);
2219
- const animation = useAnimation("loader.spinner");
2220
- const svg = useAsset("loader.spinner");
2221
- const hasAnimationOverride = isActiveOverride(animation);
2222
- const hasSvgOverride = isActiveOverride(svg);
2223
- const [overrideFailed, setOverrideFailed] = d(false);
2224
- const handleFallback = q(() => setOverrideFailed(true), []);
2225
- const hasOverride = (hasAnimationOverride || hasSvgOverride) && !overrideFailed;
2226
- /**
2227
- * Cross-module loaders (e.g. ID processing → selfie initialising) unmount
2228
- * and remount this component as the user moves between flow steps. By
2229
- * default each remount restarts the CSS spin animation from frame 0, which
2230
- * reads as a visible "stutter" or reset of the spinner during otherwise
2231
- * seamless transitions.
2232
- *
2233
- * To keep the rotation continuous across remounts we anchor the animation
2234
- * to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
2235
- * how far into the current spin cycle we are, and applying it as a
2236
- * negative `animation-delay` makes the new instance pick up exactly where
2237
- * the previous one left off. (Built-in default only.)
2238
- */
2239
- _(() => {
2240
- if (hasOverride || !ref.current) return;
2241
- const offsetMs = performance.now() % SPIN_DURATION_MS;
2242
- ref.current.style.animationDelay = `-${offsetMs}ms`;
2243
- }, [hasOverride]);
2244
- _(() => {
2245
- if (!overrideRef.current) return;
2246
- overrideRef.current.style.width = `${size}px`;
2247
- overrideRef.current.style.height = `${size}px`;
2248
- }, [size, hasOverride]);
2249
- if (hasOverride) return /* @__PURE__ */ u("div", {
2250
- ref: overrideRef,
2251
- class: "IncodeLoadingIconOverride",
2252
- children: hasAnimationOverride ? /* @__PURE__ */ u(AnimatedAsset, {
2253
- name: "loader.spinner",
2254
- loop: true,
2255
- onFallback: handleFallback
2256
- }) : /* @__PURE__ */ u(Asset, {
2257
- name: "loader.spinner",
2258
- onFallback: handleFallback
2259
- })
2260
- });
2261
- return /* @__PURE__ */ u("div", {
2262
- ref,
2263
- class: "IncodeLoadingIcon",
2264
- children: [/* @__PURE__ */ u(SpinnerSecondary, {
2265
- size,
2266
- className: secondaryClass
2267
- }), /* @__PURE__ */ u("div", {
2268
- class: "IncodeLoadingIconPrimary",
2269
- children: /* @__PURE__ */ u(SpinnerPrimary, {
2270
- size,
2271
- className: primaryClass
2272
- })
2273
- })]
2274
- });
2275
- };
2276
- //#endregion
2277
- //#region src/shared/spacer/spacer.tsx
2278
- var scaleTokens = new Set([
2279
- 0,
2280
- 2,
2281
- 4,
2282
- 8,
2283
- 12,
2284
- 16,
2285
- 20,
2286
- 24,
2287
- 32,
2288
- 40,
2289
- 48,
2290
- 64,
2291
- 80,
2292
- 96,
2293
- 104,
2294
- 120,
2295
- 200
2296
- ]);
2297
- var scaleToClassName = (size, direction) => {
2298
- if (direction === "horizontal") return {
2299
- 0: "IncodeSpacerHorizontal0",
2300
- 2: "IncodeSpacerHorizontal2",
2301
- 4: "IncodeSpacerHorizontal4",
2302
- 8: "IncodeSpacerHorizontal8",
2303
- 12: "IncodeSpacerHorizontal12",
2304
- 16: "IncodeSpacerHorizontal16",
2305
- 20: "IncodeSpacerHorizontal20",
2306
- 24: "IncodeSpacerHorizontal24",
2307
- 32: "IncodeSpacerHorizontal32",
2308
- 40: "IncodeSpacerHorizontal40",
2309
- 48: "IncodeSpacerHorizontal48",
2310
- 64: "IncodeSpacerHorizontal64",
2311
- 80: "IncodeSpacerHorizontal80",
2312
- 96: "IncodeSpacerHorizontal96",
2313
- 104: "IncodeSpacerHorizontal104",
2314
- 120: "IncodeSpacerHorizontal120",
2315
- 200: "IncodeSpacerHorizontal200"
2316
- }[size];
2317
- return {
2318
- 0: "IncodeSpacerVertical0",
2319
- 2: "IncodeSpacerVertical2",
2320
- 4: "IncodeSpacerVertical4",
2321
- 8: "IncodeSpacerVertical8",
2322
- 12: "IncodeSpacerVertical12",
2323
- 16: "IncodeSpacerVertical16",
2324
- 20: "IncodeSpacerVertical20",
2325
- 24: "IncodeSpacerVertical24",
2326
- 32: "IncodeSpacerVertical32",
2327
- 40: "IncodeSpacerVertical40",
2328
- 48: "IncodeSpacerVertical48",
2329
- 64: "IncodeSpacerVertical64",
2330
- 80: "IncodeSpacerVertical80",
2331
- 96: "IncodeSpacerVertical96",
2332
- 104: "IncodeSpacerVertical104",
2333
- 120: "IncodeSpacerVertical120",
2334
- 200: "IncodeSpacerVertical200"
2335
- }[size];
2336
- };
2337
- var Spacer = ({ size, className, direction = "vertical" }) => {
2338
- if (size === void 0) return /* @__PURE__ */ u("div", { class: `IncodeSpacerFlex ${className || ""}` });
2339
- if (!(direction === "horizontal" ? "w" : direction === "vertical" ? "h" : void 0)) return /* @__PURE__ */ u("div", { class: `${className || ""}` });
2340
- if (typeof size === "number" && scaleTokens.has(size)) return /* @__PURE__ */ u("div", { class: `${scaleToClassName(size, direction)} ${className || ""}` });
2341
- return /* @__PURE__ */ u("div", { class: `${className || ""}` });
2342
- };
1604
+ var purify = createDOMPurify();
2343
1605
  //#endregion
2344
- export { useAnimationData as a, InstanceOverridesProvider as c, cn as d, preloadAnimations as i, useInstanceOverrides as l, LoadingIcon as n, Lottie as o, AnimatedAsset as r, Asset as s, Spacer as t, purify$1 as u };
1606
+ export { purify as t };