@incodetech/web 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8

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 (168) hide show
  1. package/dist/ae-signature/ae-signature.es.js +5 -3
  2. package/dist/antifraud/antifraud.es.js +6 -5
  3. package/dist/authentication/authentication.es.js +7 -6
  4. package/dist/{autoFocusTitle-IN4TR7QN.js → autoFocusTitle-DIuy3fAL.js} +1 -1
  5. package/dist/{bottomSheet-DIxxFBUN.js → bottomSheet-DLa3gA9I.js} +1 -1
  6. package/dist/{captureNotification-DatgEL_T.js → captureNotification-CYNo5vI6.js} +8 -8
  7. package/dist/certificate-issuance/certificate-issuance.es.js +13 -13
  8. package/dist/{checkbox-BZ3Vuawq.js → checkbox-CWH3awlJ.js} +3 -3
  9. package/dist/{connectionError-BILGlQvh.js → connectionError-CkMyPEEa.js} +3 -3
  10. package/dist/consent/consent.es.js +10 -11
  11. package/dist/{countrySelector-DSCcBRMz.js → countrySelector-7r0JHTbz.js} +2 -2
  12. package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
  13. package/dist/{cpfOcr-DCIXCw5X.js → cpfOcr-C7oATNXA.js} +9 -10
  14. package/dist/cpfOcr-O8X5O6z1.js +2 -0
  15. package/dist/cross-document-data-match/cross-document-data-match.es.js +6 -5
  16. package/dist/curp-validation/curp-validation.es.js +17 -19
  17. package/dist/{customFields-CFRWCs3I.js → customFields-BgFMUeIp.js} +13 -13
  18. package/dist/{customWatchlist-CAGzLeIU.js → customWatchlist-DMz7aerw.js} +9 -8
  19. package/dist/dashboardTheme-C6I2WQPK.js +223 -0
  20. package/dist/dateInputComposed-6wvZi6m1.js +1 -0
  21. package/dist/{dateInputComposed-Dy8s_pst.js → dateInputComposed-BBgQB4tl.js} +4 -4
  22. package/dist/document-capture/document-capture.es.js +1 -1
  23. package/dist/{documentCapture-Cdksl5DR.js → documentCapture-BC6DBpAG.js} +19 -19
  24. package/dist/documentCapture-diUvht9m.js +2 -0
  25. package/dist/{dropdownComposed-BHoaSeXB.js → dropdownComposed-C0IZ1uRF.js} +4 -4
  26. package/dist/dropdownComposed-DBnwuqE4.js +1 -0
  27. package/dist/{dynamicForms-CujcVUvG.js → dynamicForms-skhwHeCx.js} +14 -14
  28. package/dist/ekyb/ekyb.es.js +1 -1
  29. package/dist/{ekybModule-CtJT7I0D.js → ekybModule-bGDvjIj7.js} +17 -17
  30. package/dist/ekybModule-bUgBSy9a.js +2 -0
  31. package/dist/ekyc/ekyc.es.js +1 -1
  32. package/dist/ekycModule-D-ZKad8r.js +2 -0
  33. package/dist/{ekycModule-Clgu1ydz.js → ekycModule-DVVAasG2.js} +15 -15
  34. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  35. package/dist/{electronic-signature-C-eiNR8V.js → electronic-signature-Dy0hN6lu.js} +11 -12
  36. package/dist/email/email.es.js +10 -10
  37. package/dist/{emailInput-BIXyslAC.js → emailInput-CGDc3flM.js} +3 -3
  38. package/dist/{expiredId-DE_SO8Iy.js → expiredId-CDxPLhiW.js} +5 -5
  39. package/dist/{extensibility-Dv0Z50OE.js → extensibility-DMroM1OU.js} +37 -42
  40. package/dist/extensibility.es.js +24 -28
  41. package/dist/face-match/face-match.es.js +1 -1
  42. package/dist/faceMatch-DxRtNWtc.js +2 -0
  43. package/dist/{faceMatch-DVkAPLup.js → faceMatch-si9UUQ3_.js} +10 -11
  44. package/dist/field-comparison/field-comparison.es.js +1 -1
  45. package/dist/{fieldComparison-BbgIcdF5.js → fieldComparison-CR15MASU.js} +11 -11
  46. package/dist/fieldComparison-MLm7cnmM.js +2 -0
  47. package/dist/fiscal-qr/fiscal-qr.es.js +12 -11
  48. package/dist/flow/flow.es.js +10 -13
  49. package/dist/geolocation/geolocation.es.js +11 -11
  50. package/dist/government-validation/government-validation.es.js +11 -11
  51. package/dist/{homeScreen-CqhuW7le.js → homeScreen-0T3uPq2I.js} +6 -8
  52. package/dist/{page-DidH_RkX.js → hooks-Bl4BccV8.js} +374 -5
  53. package/dist/{icons-w6luRFtW.js → icons-CqDMnQ1g.js} +2 -2
  54. package/dist/id/id.es.js +22 -25
  55. package/dist/id-verification/id-verification.es.js +5 -5
  56. package/dist/{idOcr-Y8dKRIN4.js → idOcr-C9Cj1ino.js} +13 -13
  57. package/dist/identity-reuse/identity-reuse.es.js +6 -7
  58. package/dist/{incode-logo-57XFniXU.js → incode-logo-DasIBJw8.js} +64 -1
  59. package/dist/{incodeComponent-BCd_bJev.js → incodeComponent-DHbfYA-r.js} +2 -2
  60. package/dist/{incodeModule-Bgg06vwW.js → incodeModule-BiwGYtcv.js} +1 -1
  61. package/dist/index.es.js +14 -5
  62. package/dist/{inputComposed-DzyxybSu.js → inputComposed-C1Z4OxHI.js} +4 -4
  63. package/dist/inputComposed-DL1YD59E.js +1 -0
  64. package/dist/{mandatoryConsent-DnoDgtOT.js → mandatoryConsent-DEGcSJhx.js} +9 -10
  65. package/dist/{modal-C-Q9km3s.js → modal-BgjeiOv5.js} +3 -3
  66. package/dist/{optionAccessibleLabel-RW68xECf.js → optionAccessibleLabel-DAvz9vdG.js} +5 -5
  67. package/dist/{otpInput-H_Y9R8B8.js → otpInput-DLnLXnJo.js} +5 -5
  68. package/dist/{pdf-BAb2ezmC.js → pdf-BYHLDKvG.js} +1 -1
  69. package/dist/{pdfViewer-XeOSCt-S.js → pdfViewer-BVnrfnFA.js} +3 -3
  70. package/dist/{permissions-J6qPq98P.js → permissions-Bcn-2yHb.js} +9 -11
  71. package/dist/phone/phone.es.js +11 -11
  72. package/dist/{phoneInputComposed-DaBNd-wY.js → phoneInputComposed-CJavLkBe.js} +5 -5
  73. package/dist/{processing-BN2Mgw0p.js → processing-DBuq4_4J.js} +1 -1
  74. package/dist/qe-signature/qe-signature.es.js +5 -3
  75. package/dist/{radioGroupComposed-D2qsp3Vx.js → radioGroupComposed-YO_U82bM.js} +5 -5
  76. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +15 -17
  77. package/dist/{richText-D-G1XXAw.js → richText-Bbp3TPzi.js} +1 -1
  78. package/dist/selfie/selfie.es.js +9 -9
  79. package/dist/signature/signature.es.js +11 -11
  80. package/dist/{snackbar-BsV5S3Z7.js → snackbar-CSODaFW4.js} +1 -1
  81. package/dist/{loadingIcon-B0ysgiNq.js → spacer-I8ILMQiA.js} +68 -68
  82. package/dist/{spinner-BMeIEK1d.js → spinner-YXqSOUqg.js} +45 -4
  83. package/dist/{statusPage-DPNU-L3H.js → statusPage-DUejG583.js} +3 -3
  84. package/dist/{tabs-CYtIZmR0.js → tabs-CG7W9rbn.js} +1 -1
  85. package/dist/{tutorial-CTCp3mrv.js → tutorial-hXqxb0q5.js} +10 -12
  86. package/dist/types/ae-signature.d.ts +6 -3
  87. package/dist/types/antifraud.d.ts +6 -3
  88. package/dist/types/authentication.d.ts +6 -3
  89. package/dist/types/certificate-issuance.d.ts +6 -3
  90. package/dist/types/consent.d.ts +6 -3
  91. package/dist/types/cpf-ocr.d.ts +56 -5
  92. package/dist/types/cross-document-data-match.d.ts +6 -3
  93. package/dist/types/curp-validation.d.ts +6 -3
  94. package/dist/types/document-capture.d.ts +6 -3
  95. package/dist/types/ekyb.d.ts +6 -3
  96. package/dist/types/ekyc.d.ts +6 -3
  97. package/dist/types/electronic-signature.d.ts +2 -2
  98. package/dist/types/email.d.ts +6 -26
  99. package/dist/types/extensibility.d.ts +2 -2
  100. package/dist/types/face-match.d.ts +6 -25
  101. package/dist/types/field-comparison.d.ts +6 -3
  102. package/dist/types/fiscal-qr.d.ts +9 -5
  103. package/dist/types/flow.d.ts +2 -2
  104. package/dist/types/geolocation.d.ts +6 -3
  105. package/dist/types/government-validation.d.ts +6 -3
  106. package/dist/types/id-verification.d.ts +2 -2
  107. package/dist/types/id.d.ts +6 -3
  108. package/dist/types/identity-reuse.d.ts +2 -2
  109. package/dist/types/index.d.ts +23 -1
  110. package/dist/types/phone.d.ts +6 -27
  111. package/dist/types/qe-signature.d.ts +6 -3
  112. package/dist/types/redirect-to-mobile.d.ts +4 -1
  113. package/dist/types/selfie.d.ts +6 -3
  114. package/dist/types/signature.d.ts +6 -3
  115. package/dist/types/video-selfie.d.ts +6 -9
  116. package/dist/types/watchlist.d.ts +6 -3
  117. package/dist/types/workflow.d.ts +2 -2
  118. package/dist/{i18n-CushpmmJ.js → uiConfig-DSGyRMSC.js} +26 -3
  119. package/dist/{useModuleLoader-BTo4NZuV.js → useModuleLoader-V8kW4raN.js} +32 -180
  120. package/dist/{verificationResult-xubIOKNi.js → verificationResult-4X7V8KzA.js} +8 -9
  121. package/dist/video-selfie/video-selfie.es.js +16 -19
  122. package/dist/watchlist/watchlist.es.js +9 -8
  123. package/dist/{watchlistForBusiness-BWaVfgeV.js → watchlistForBusiness-DWg7G4IB.js} +12 -12
  124. package/dist/workflow/workflow.es.js +17 -14
  125. package/package.json +2 -2
  126. package/dist/button-Dz6AsbmF.js +0 -40
  127. package/dist/cpfOcr-BToIikZC.js +0 -2
  128. package/dist/dateInputComposed-DDtUFSrC.js +0 -1
  129. package/dist/documentCapture-CgBRyZHX.js +0 -2
  130. package/dist/dropdownComposed-4RQ6KcIz.js +0 -1
  131. package/dist/ekybModule-CIhe-NjG.js +0 -2
  132. package/dist/ekycModule-CYdRFXyJ.js +0 -2
  133. package/dist/errorIcon-BA4T6iy-.js +0 -26
  134. package/dist/faceMatch-BnDfDC5l.js +0 -2
  135. package/dist/fieldComparison-DeH3dh5a.js +0 -2
  136. package/dist/hooks-CxG4XS7P.js +0 -175
  137. package/dist/inputComposed-CrmMDnMp.js +0 -1
  138. package/dist/spinner-BCDCoi9C.js +0 -1
  139. package/dist/terminalErrorPage-DwH-JDg0.js +0 -71
  140. package/dist/transitionSpinner-B7mmwUrc.js +0 -30
  141. package/dist/typography-BZIpjo97.js +0 -45
  142. package/dist/uiConfig-D2_wawvr.js +0 -25
  143. /package/dist/{aligndevicelottie-C9Mrj6AB.js → aligndevicelottie-t8IVRvKe.js} +0 -0
  144. /package/dist/{back-horizontal-hint-B-EHEYFx.js → back-horizontal-hint-Dk3Qx2Jy.js} +0 -0
  145. /package/dist/{back-tutorial-Bkm8BMI-.js → back-tutorial-Sa9INxfJ.js} +0 -0
  146. /package/dist/{back-vertical-hint-Yo_1LFB2.js → back-vertical-hint-BSXiELAo.js} +0 -0
  147. /package/dist/{backdevicelottie-FrU5aQgi.js → backdevicelottie--JZVcmsk.js} +0 -0
  148. /package/dist/{blurdevicelottie-jfRWrBAA.js → blurdevicelottie-D8d1O-r6.js} +0 -0
  149. /package/dist/{browser-ponyfill-vwGrGxYJ.js → browser-ponyfill-R_VWu0FU.js} +0 -0
  150. /package/dist/{defineProperty-BZW5EcGC.js → defineProperty-BsIK7Gws.js} +0 -0
  151. /package/dist/{flip-animation-RSWxSh3p.js → flip-animation-CulASaCy.js} +0 -0
  152. /package/dist/{front-horizontal-hint-BxmjB6HQ.js → front-horizontal-hint-GlNgmYkY.js} +0 -0
  153. /package/dist/{front-vertical-hint-BS4R8Ge4.js → front-vertical-hint-Bn2FOrKQ.js} +0 -0
  154. /package/dist/{frontdevicelottie-CvMs7jnY.js → frontdevicelottie-DGU1DFsb.js} +0 -0
  155. /package/dist/{glaredevicelottie-B_g3-Xay.js → glaredevicelottie-Dqjzhp2v.js} +0 -0
  156. /package/dist/{id-laser-h-DS31CxU-.js → id-laser-h-BXX4SvZX.js} +0 -0
  157. /package/dist/{id-laser-v-Cb982xnA.js → id-laser-v-BXUywa3r.js} +0 -0
  158. /package/dist/{id-tutorial-D2hF8yoN.js → id-tutorial-Dss1CIkf.js} +0 -0
  159. /package/dist/{lottie_light-B0mE6Bs2.js → lottie_light-XgO-x03h.js} +0 -0
  160. /package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BbFC-AOq.js} +0 -0
  161. /package/dist/{numberedStep-BOfeDZfJ.js → numberedStep-DtIEG6uM.js} +0 -0
  162. /package/dist/{passport-horizontal-hint-B0YSV7zH.js → passport-horizontal-hint-C0gW3Rvi.js} +0 -0
  163. /package/dist/{passport-tutorial-DvynHyve.js → passport-tutorial-B6e9nM9w.js} +0 -0
  164. /package/dist/{passport-vertical-hint-g5QGlFT5.js → passport-vertical-hint-lrBhacG3.js} +0 -0
  165. /package/dist/{registerIncodeElement-ClG0mgIF.js → registerIncodeElement-C9y6CNCw.js} +0 -0
  166. /package/dist/{requiredLabelHint-DmD8ZCH-.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
  167. /package/dist/{selfieTutorial-eySh67am.js → selfieTutorial-DfjgQ9w5.js} +0 -0
  168. /package/dist/{successIcon-B5mGvdx1.js → successIcon-BshEyvXA.js} +0 -0
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { PhoneConfig } from '@incodetech/core/phone';
3
4
  import { PhoneManager } from '@incodetech/core/phone';
@@ -22,12 +23,12 @@ declare type IncodeFinishMeta = {
22
23
  sdkOwnsTerminalScreen?: boolean;
23
24
  };
24
25
 
25
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
26
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
26
27
  /**
27
28
  * Module configuration required to render the flow.
28
29
  * For Web Components, this is typically assigned via `element.config = ...`.
29
30
  */
30
- config?: TConfig;
31
+ config?: TConfigInput;
31
32
  /**
32
33
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
33
34
  */
@@ -53,31 +54,9 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
53
54
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
54
55
  };
55
56
 
56
- /**
57
- * Phone verification UI component.
58
- *
59
- * Provides a complete phone verification experience including:
60
- * - Country code selector with flag emojis
61
- * - Phone number input with validation
62
- * - OTP code entry with resend functionality
63
- * - Loading states and error handling
64
- *
65
- * @example Basic usage
66
- * ```tsx
67
- * <Phone
68
- * config={{
69
- * otpVerification: true,
70
- * otpExpirationInMinutes: 5,
71
- * prefill: false,
72
- * }}
73
- * onFinish={() => router.push('/next-step')}
74
- * onError={(err) => toast.error(err)}
75
- * />
76
- * ```
77
- *
78
- * @see {@link createPhoneManager} for headless usage
79
- */
80
- export declare const Phone: FC<PhoneProps>;
57
+ export declare const Phone: FC<Omit<PhoneProps, "config"> & {
58
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
59
+ }>;
81
60
 
82
61
  /**
83
62
  * Props for the Phone component
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { QeSignatureConfig } from '@incodetech/core/qe-signature';
3
4
 
@@ -21,12 +22,12 @@ declare type IncodeFinishMeta = {
21
22
  sdkOwnsTerminalScreen?: boolean;
22
23
  };
23
24
 
24
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
25
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
25
26
  /**
26
27
  * Module configuration required to render the flow.
27
28
  * For Web Components, this is typically assigned via `element.config = ...`.
28
29
  */
29
- config?: TConfig;
30
+ config?: TConfigInput;
30
31
  /**
31
32
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
32
33
  */
@@ -52,7 +53,9 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
52
53
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
53
54
  };
54
55
 
55
- export declare const QeSignature: FC<QeSignatureModuleProps>;
56
+ export declare const QeSignature: FC<Omit<QeSignatureModuleProps, "config"> & {
57
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
58
+ }>;
56
59
 
57
60
  declare type QeSignatureModuleProps = IncodeModuleProps<QeSignatureConfig>;
58
61
 
@@ -1,9 +1,12 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { RedirectToMobileConfig } from '@incodetech/core/redirect-to-mobile';
3
4
  import { RedirectToMobileManager } from '@incodetech/core/redirect-to-mobile';
4
5
  import { RedirectToMobileServices } from '@incodetech/core/redirect-to-mobile';
5
6
 
6
- export declare const RedirectToMobile: FC<RedirectToMobileProps>;
7
+ export declare const RedirectToMobile: FC<Omit<RedirectToMobileProps, "config"> & {
8
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
9
+ }>;
7
10
 
8
11
  export declare type RedirectToMobileProps = {
9
12
  config?: RedirectToMobileConfig;
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { SelfieConfig } from '@incodetech/core/selfie';
3
4
  import { SelfieManager } from '@incodetech/core/selfie';
@@ -22,12 +23,12 @@ declare type IncodeFinishMeta = {
22
23
  sdkOwnsTerminalScreen?: boolean;
23
24
  };
24
25
 
25
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
26
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
26
27
  /**
27
28
  * Module configuration required to render the flow.
28
29
  * For Web Components, this is typically assigned via `element.config = ...`.
29
30
  */
30
- config?: TConfig;
31
+ config?: TConfigInput;
31
32
  /**
32
33
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
33
34
  */
@@ -53,7 +54,9 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
53
54
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
54
55
  };
55
56
 
56
- export declare const Selfie: FC<SelfieProps>;
57
+ export declare const Selfie: FC<Omit<SelfieProps, "config"> & {
58
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
59
+ }>;
57
60
 
58
61
  declare type SelfieProps = IncodeModuleProps<SelfieConfig, void, SelfieManager>;
59
62
 
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { SignatureConfig } from '@incodetech/core/signature';
3
4
 
@@ -21,12 +22,12 @@ declare type IncodeFinishMeta = {
21
22
  sdkOwnsTerminalScreen?: boolean;
22
23
  };
23
24
 
24
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
25
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
25
26
  /**
26
27
  * Module configuration required to render the flow.
27
28
  * For Web Components, this is typically assigned via `element.config = ...`.
28
29
  */
29
- config?: TConfig;
30
+ config?: TConfigInput;
30
31
  /**
31
32
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
32
33
  */
@@ -52,7 +53,9 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
52
53
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
53
54
  };
54
55
 
55
- export declare const Signature: FC<SignatureProps>;
56
+ export declare const Signature: FC<Omit<SignatureProps, "config"> & {
57
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
58
+ }>;
56
59
 
57
60
  declare type SignatureProps = IncodeModuleProps<SignatureConfig>;
58
61
 
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { VideoSelfieConfig } from '@incodetech/core/video-selfie';
3
4
 
@@ -21,12 +22,12 @@ declare type IncodeFinishMeta = {
21
22
  sdkOwnsTerminalScreen?: boolean;
22
23
  };
23
24
 
24
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
25
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
25
26
  /**
26
27
  * Module configuration required to render the flow.
27
28
  * For Web Components, this is typically assigned via `element.config = ...`.
28
29
  */
29
- config?: TConfig;
30
+ config?: TConfigInput;
30
31
  /**
31
32
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
32
33
  */
@@ -52,13 +53,9 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
52
53
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
53
54
  };
54
55
 
55
- /**
56
- * Video Selfie UI component. Records + streams a multi-step, camera-switching
57
- * session and renders a live preview with per-step auto-capture guidance.
58
- *
59
- * @see {@link createVideoSelfieRecordingManager} for headless usage.
60
- */
61
- export declare const VideoSelfie: FC<VideoSelfieProps>;
56
+ export declare const VideoSelfie: FC<Omit<VideoSelfieProps, "config"> & {
57
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
58
+ }>;
62
59
 
63
60
  /** Props for the {@link VideoSelfie} component. */
64
61
  declare type VideoSelfieProps = IncodeModuleProps<VideoSelfieConfig>;
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from '@incodetech/core/flow';
1
2
  import { FC } from 'preact/compat';
2
3
  import { WatchlistConfig } from '@incodetech/core/watchlist';
3
4
 
@@ -21,12 +22,12 @@ declare type IncodeFinishMeta = {
21
22
  sdkOwnsTerminalScreen?: boolean;
22
23
  };
23
24
 
24
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
25
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
25
26
  /**
26
27
  * Module configuration required to render the flow.
27
28
  * For Web Components, this is typically assigned via `element.config = ...`.
28
29
  */
29
- config?: TConfig;
30
+ config?: TConfigInput;
30
31
  /**
31
32
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
32
33
  */
@@ -52,7 +53,9 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
52
53
  onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
53
54
  };
54
55
 
55
- export declare const Watchlist: FC<WatchlistProps>;
56
+ export declare const Watchlist: FC<Omit<WatchlistProps, "config"> & {
57
+ config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
58
+ }>;
56
59
 
57
60
  declare type WatchlistProps = IncodeModuleProps<WatchlistConfig>;
58
61
 
@@ -34,12 +34,12 @@ export declare type IncodeFinishMeta = {
34
34
  sdkOwnsTerminalScreen?: boolean;
35
35
  };
36
36
 
37
- declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
37
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
38
38
  /**
39
39
  * Module configuration required to render the flow.
40
40
  * For Web Components, this is typically assigned via `element.config = ...`.
41
41
  */
42
- config?: TConfig;
42
+ config?: TConfigInput;
43
43
  /**
44
44
  * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
45
45
  */
@@ -1,5 +1,5 @@
1
1
  import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
2
- import { _ as y, d as T, p as d, v as u, x as k, y as K } from "./vendor-preact-DThS2ZQ_.js";
2
+ import { _ as y, d as T, i as C, p as d, v as u, x as k, y as K } from "./vendor-preact-DThS2ZQ_.js";
3
3
  //#region ../../node_modules/.pnpm/i18next@25.7.1_typescript@5.9.3/node_modules/i18next/dist/esm/i18next.js
4
4
  var isString = (obj) => typeof obj === "string";
5
5
  var defer = () => {
@@ -2360,7 +2360,7 @@ if (typeof ActiveXObject === "function") {
2360
2360
  }
2361
2361
  if (typeof fetchApi !== "function") fetchApi = void 0;
2362
2362
  if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) try {
2363
- import("./browser-ponyfill-vwGrGxYJ.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then(function(mod) {
2363
+ import("./browser-ponyfill-R_VWu0FU.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then(function(mod) {
2364
2364
  fetchApi = mod.default;
2365
2365
  }).catch(function() {});
2366
2366
  } catch (e) {}
@@ -2968,4 +2968,27 @@ var Trans = ({ i18nKey, boldClass = "IncodeTransBold", arrowClass = "IncodeTrans
2968
2968
  }) });
2969
2969
  };
2970
2970
  //#endregion
2971
- export { createI18n as a, supportedLanguages as c, setI18nInstance as i, useTranslation as n, readStoredLanguage as o, hasI18nInstance as r, getLanguageEmoji as s, Trans as t };
2971
+ //#region src/shared/uiConfig/uiConfig.ts
2972
+ var uiConfig = {};
2973
+ var listeners = /* @__PURE__ */ new Set();
2974
+ function subscribe(listener) {
2975
+ listeners.add(listener);
2976
+ return () => {
2977
+ listeners.delete(listener);
2978
+ };
2979
+ }
2980
+ function getSnapshot() {
2981
+ return uiConfig;
2982
+ }
2983
+ /**
2984
+ * Sets global UI configuration defaults for `@incodetech/ui`.
2985
+ */
2986
+ function setUiConfig(next) {
2987
+ uiConfig = next;
2988
+ for (const listener of listeners) listener();
2989
+ }
2990
+ function useUiConfig() {
2991
+ return C(subscribe, getSnapshot);
2992
+ }
2993
+ //#endregion
2994
+ export { hasI18nInstance as a, readStoredLanguage as c, useTranslation as i, getLanguageEmoji as l, useUiConfig as n, setI18nInstance as o, Trans as r, createI18n as s, setUiConfig as t, supportedLanguages as u };
@@ -1,170 +1,20 @@
1
- import { a as createI18n, i as setI18nInstance, r as hasI18nInstance } from "./i18n-CushpmmJ.js";
1
+ import { a as hasI18nInstance, o as setI18nInstance, s as createI18n } from "./uiConfig-DSGyRMSC.js";
2
2
  import { _ as y, l as A, p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
3
- import { t as setUiConfig } from "./uiConfig-D2_wawvr.js";
4
- import { t as Button } from "./button-Dz6AsbmF.js";
5
- import "./terminalErrorPage-DwH-JDg0.js";
3
+ import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme } from "./dashboardTheme-C6I2WQPK.js";
4
+ import "./hooks-Bl4BccV8.js";
5
+ import { r as Button } from "./incode-logo-DasIBJw8.js";
6
6
  import { initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
7
7
  import { isDesktopOrEmulated } from "@incodetech/core/device";
8
8
  import { createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines } from "@incodetech/core/flow";
9
9
  import { getFinishStatus, initializeSession } from "@incodetech/core/session";
10
- import { api } from "@incodetech/core/http";
11
10
  //#region src/shared/device/redirectDeviceClassification.ts
12
11
  function isDesktopOrEmulated$1() {
13
12
  return isDesktopOrEmulated();
14
13
  }
15
14
  //#endregion
16
- //#region src/styles/generatePalette.ts
17
- function hexToHsl(hex) {
18
- let normalizedHex = hex.replace("#", "");
19
- if (normalizedHex.length === 3) normalizedHex = normalizedHex.split("").map((char) => char + char).join("");
20
- const result = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(normalizedHex);
21
- if (!result) return null;
22
- const r = Number.parseInt(result[1], 16) / 255;
23
- const g = Number.parseInt(result[2], 16) / 255;
24
- const b = Number.parseInt(result[3], 16) / 255;
25
- const max = Math.max(r, g, b);
26
- const min = Math.min(r, g, b);
27
- let h = 0;
28
- let s = 0;
29
- const l = (max + min) / 2;
30
- if (max !== min) {
31
- const d = max - min;
32
- s = l > .5 ? d / (2 - max - min) : d / (max + min);
33
- switch (max) {
34
- case r:
35
- h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
36
- break;
37
- case g:
38
- h = ((b - r) / d + 2) / 6;
39
- break;
40
- case b:
41
- h = ((r - g) / d + 4) / 6;
42
- break;
43
- }
44
- }
45
- return {
46
- h: h * 360,
47
- s: s * 100,
48
- l: l * 100
49
- };
50
- }
51
- function hslToHex(h, s, l) {
52
- const hNorm = h / 360;
53
- const sNorm = s / 100;
54
- const lNorm = l / 100;
55
- let r;
56
- let g;
57
- let b;
58
- if (sNorm === 0) r = g = b = lNorm;
59
- else {
60
- const hue2rgb = (p, q, t) => {
61
- if (t < 0) t += 1;
62
- if (t > 1) t -= 1;
63
- if (t < 1 / 6) return p + (q - p) * 6 * t;
64
- if (t < 1 / 2) return q;
65
- if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
66
- return p;
67
- };
68
- const q = lNorm < .5 ? lNorm * (1 + sNorm) : lNorm + sNorm - lNorm * sNorm;
69
- const p = 2 * lNorm - q;
70
- r = hue2rgb(p, q, hNorm + 1 / 3);
71
- g = hue2rgb(p, q, hNorm);
72
- b = hue2rgb(p, q, hNorm - 1 / 3);
73
- }
74
- const toHex = (n) => {
75
- const hex = Math.round(n * 255).toString(16);
76
- return hex.length === 1 ? `0${hex}` : hex;
77
- };
78
- return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
79
- }
80
- function generateBrandPalette(mainColor) {
81
- const hsl = hexToHsl(mainColor);
82
- if (!hsl) throw new Error(`Invalid color format: ${mainColor}`);
83
- return {
84
- "50": hslToHex(hsl.h, hsl.s, 95),
85
- "200": hslToHex(hsl.h, hsl.s, 80),
86
- "300": hslToHex(hsl.h, hsl.s, 65),
87
- "400": hslToHex(hsl.h, hsl.s, Math.min(100, hsl.l + 10)),
88
- "500": mainColor,
89
- "600": hslToHex(hsl.h, hsl.s, Math.max(0, hsl.l - 10)),
90
- "900": hslToHex(hsl.h, hsl.s, 20)
91
- };
92
- }
93
- //#endregion
94
- //#region src/styles/applyTheme.ts
95
- function applyTheme(mainColor, buttonColor) {
96
- if (typeof document === "undefined") return;
97
- const palette = generateBrandPalette(mainColor);
98
- let styleElement = document.getElementById("incode-theme");
99
- if (!styleElement) {
100
- styleElement = document.createElement("style");
101
- styleElement.id = "incode-theme";
102
- document.head.appendChild(styleElement);
103
- }
104
- const buttonTextColor = buttonColor || "#ffffff";
105
- const css = `
106
- :root,
107
- :host {
108
- --primitive-color-brand-50: ${palette["50"]};
109
- --primitive-color-brand-200: ${palette["200"]};
110
- --primitive-color-brand-300: ${palette["300"]};
111
- --primitive-color-brand-400: ${palette["400"]};
112
- --primitive-color-brand-500: ${palette["500"]};
113
- --primitive-color-brand-600: ${palette["600"]};
114
- --primitive-color-brand-900: ${palette["900"]};
115
- --button-primary-text-default: ${buttonTextColor};
116
- }
117
- `;
118
- styleElement.textContent = css;
119
- }
120
- //#endregion
121
- //#region src/styles/fetchTheme.ts
122
- async function fetchAssets() {
123
- return (await api.get("/omni/asset/fetch-all")).data;
124
- }
125
- var dataUrlCache = /* @__PURE__ */ new Map();
126
- async function urlToDataUrl(url) {
127
- if (url.startsWith("data:")) return url;
128
- const cached = dataUrlCache.get(url);
129
- if (cached) return cached;
130
- const blob = await (await fetch(url)).blob();
131
- const dataUrl = await new Promise((resolve, reject) => {
132
- const reader = new FileReader();
133
- reader.onloadend = () => resolve(reader.result);
134
- reader.onerror = reject;
135
- reader.readAsDataURL(blob);
136
- });
137
- dataUrlCache.set(url, dataUrl);
138
- return dataUrl;
139
- }
140
- async function fetchTheme$1() {
141
- const assets = await fetchAssets();
142
- if (!assets.theme) throw new Error("Theme URL not found in assets response");
143
- const themeUrl = assets.theme;
144
- const isAbsoluteUrl = themeUrl.startsWith("http://") || themeUrl.startsWith("https://");
145
- let theme;
146
- if (isAbsoluteUrl) {
147
- const themeResponse = await fetch(themeUrl);
148
- if (!themeResponse.ok) throw new Error(`Failed to fetch theme: ${themeResponse.statusText}`);
149
- theme = await themeResponse.json();
150
- } else theme = (await api.get(themeUrl)).data;
151
- const logoUrl = assets["logo.png"] || assets["logo.svg"] || assets["logo.jpg"] || assets["logo.jpeg"] || assets["logo.webp"] || theme.logo;
152
- let cachedLogoUrl = logoUrl;
153
- if (logoUrl) cachedLogoUrl = await urlToDataUrl(logoUrl);
154
- return {
155
- ...theme,
156
- logo: cachedLogoUrl
157
- };
158
- }
159
- async function fetchAndApplyTheme() {
160
- const theme = await fetchTheme$1();
161
- if (theme.main) applyTheme(theme.main, theme.buttonColor);
162
- return theme;
163
- }
164
- //#endregion
165
15
  //#region src/modules/flow/flowInit.ts
166
16
  var lazyIdModule = () => import("./id/id.es.js").then((m) => m.Id);
167
- var loadLazyHomeScreen = () => import("./homeScreen-CqhuW7le.js").then((m) => m.HomeScreen);
17
+ var loadLazyHomeScreen = () => import("./homeScreen-0T3uPq2I.js").then((m) => m.HomeScreen);
168
18
  var homeScreenPreloadPromise;
169
19
  /**
170
20
  * Headless flow keys: backend-only steps with no UI. `<incode-flow>` renders
@@ -229,32 +79,32 @@ var LAZY_UI_MODULES = {
229
79
  ID_CAPTURE: lazyIdModule,
230
80
  TUTORIAL_ID: lazyIdModule,
231
81
  SECOND_ID: lazyIdModule,
232
- FACE_MATCH: () => import("./faceMatch-BnDfDC5l.js").then((m) => m.FaceMatch),
82
+ FACE_MATCH: () => import("./faceMatch-DxRtNWtc.js").then((m) => m.FaceMatch),
233
83
  CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((m) => m.CurpValidation),
234
84
  GOVT_VALIDATION_PROVISIONING: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
235
85
  INE_VALIDATION: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
236
86
  GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((m) => m.Geolocation),
237
- EXTERNAL_VERIFICATION: () => import("./ekycModule-CYdRFXyJ.js").then((m) => m.EkycModule),
238
- EKYB: () => import("./ekybModule-CIhe-NjG.js").then((m) => m.EkybModule),
239
- DOCUMENT_CAPTURE: () => import("./documentCapture-CgBRyZHX.js").then((m) => m.DocumentCapture),
240
- ADDRESS: () => import("./documentCapture-CgBRyZHX.js").then((m) => m.DocumentCapture),
87
+ EXTERNAL_VERIFICATION: () => import("./ekycModule-D-ZKad8r.js").then((m) => m.EkycModule),
88
+ EKYB: () => import("./ekybModule-bUgBSy9a.js").then((m) => m.EkybModule),
89
+ DOCUMENT_CAPTURE: () => import("./documentCapture-diUvht9m.js").then((m) => m.DocumentCapture),
90
+ ADDRESS: () => import("./documentCapture-diUvht9m.js").then((m) => m.DocumentCapture),
241
91
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((m) => m.Consent),
242
- MANDATORY_CONSENT: () => import("./mandatoryConsent-DnoDgtOT.js").then((m) => m.MandatoryConsent),
243
- ML_CONSENT: () => import("./mandatoryConsent-DnoDgtOT.js").then((m) => m.MandatoryConsent),
92
+ MANDATORY_CONSENT: () => import("./mandatoryConsent-DEGcSJhx.js").then((m) => m.MandatoryConsent),
93
+ ML_CONSENT: () => import("./mandatoryConsent-DEGcSJhx.js").then((m) => m.MandatoryConsent),
244
94
  SIGNATURE: () => import("./signature/signature.es.js").then((m) => m.Signature),
245
- ID_OCR: () => import("./idOcr-Y8dKRIN4.js").then((m) => m.IdOcr),
246
- CPF_OCR: () => import("./cpfOcr-BToIikZC.js").then((m) => m.CpfOcr),
95
+ ID_OCR: () => import("./idOcr-C9Cj1ino.js").then((m) => m.IdOcr),
96
+ CPF_OCR: () => import("./cpfOcr-O8X5O6z1.js").then((m) => m.CpfOcr),
247
97
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
248
- CUSTOM_FIELDS: () => import("./customFields-CFRWCs3I.js").then((m) => m.CustomFields),
98
+ CUSTOM_FIELDS: () => import("./customFields-BgFMUeIp.js").then((m) => m.CustomFields),
249
99
  WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
250
- WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-BWaVfgeV.js").then((m) => m.WatchlistForBusiness),
251
- INCODE_WATCHLIST: () => import("./customWatchlist-CAGzLeIU.js").then((m) => m.CustomWatchlist),
100
+ WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-DWg7G4IB.js").then((m) => m.WatchlistForBusiness),
101
+ INCODE_WATCHLIST: () => import("./customWatchlist-DMz7aerw.js").then((m) => m.CustomWatchlist),
252
102
  AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
253
103
  QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
254
104
  CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((m) => m.CrossDocumentDataMatch),
255
- DYNAMIC_FORMS: () => import("./dynamicForms-CujcVUvG.js").then((m) => m.DynamicForms),
105
+ DYNAMIC_FORMS: () => import("./dynamicForms-skhwHeCx.js").then((m) => m.DynamicForms),
256
106
  CERTIFICATE_ISSUANCE: () => import("./certificate-issuance/certificate-issuance.es.js").then((m) => m.CertificateIssuance),
257
- FIELD_COMPARISON: () => import("./fieldComparison-DeH3dh5a.js").then((m) => m.FieldComparison),
107
+ FIELD_COMPARISON: () => import("./fieldComparison-MLm7cnmM.js").then((m) => m.FieldComparison),
258
108
  FISCAL_QR: () => import("./fiscal-qr/fiscal-qr.es.js").then((m) => m.FiscalQr),
259
109
  VIDEO_ONBOARDING: () => import("./video-selfie/video-selfie.es.js").then((m) => m.VideoSelfie)
260
110
  };
@@ -322,7 +172,9 @@ function createFlowManager(options = {}) {
322
172
  } });
323
173
  }
324
174
  async function setupSDK(options) {
325
- await initializeSession({ token: options.token });
175
+ const sessionOptions = { token: options.token };
176
+ if (options.preloadFlow !== void 0) sessionOptions.preloadFlow = options.preloadFlow;
177
+ await initializeSession(sessionOptions);
326
178
  if (hasI18nInstance()) return;
327
179
  setI18nInstance(createI18n(options.lang ? { lang: options.lang } : void 0));
328
180
  }
@@ -334,18 +186,18 @@ async function initializeFlowManager(options) {
334
186
  });
335
187
  flowManager.load();
336
188
  }
337
- async function fetchTheme() {
189
+ async function fetchTheme(token) {
338
190
  try {
339
- const theme = await fetchAndApplyTheme();
340
- const uiConfig = {
341
- logoSrc: theme.logo,
342
- subtitle: theme.subtitle,
343
- hideFooterBranding: theme.hideFooterBranding
344
- };
345
- setUiConfig(uiConfig);
191
+ const activeToken = token ?? getStandaloneSetupPolicy().token;
192
+ if (!activeToken) return {};
193
+ const theme = await preloadDashboardTheme(activeToken);
346
194
  return {
347
195
  theme,
348
- uiConfig
196
+ uiConfig: {
197
+ logoSrc: theme.logo,
198
+ subtitle: theme.subtitle,
199
+ hideFooterBranding: theme.hideFooterBranding
200
+ }
349
201
  };
350
202
  } catch {
351
203
  return {};
@@ -612,4 +464,4 @@ function usePrefetchNextModule(steps, currentStepIndex, modules, currentModuleLo
612
464
  ]);
613
465
  }
614
466
  //#endregion
615
- export { warmupWasmIfNeeded as _, resolveApiKey as a, HEADLESS_FLOW_MODULE_KEYS as c, fetchTheme as d, initializeFlowManager as f, setupSDK as g, preloadRedirectToMobile as h, HEADLESS_WORKFLOW_MODULE_KEYS as i, LAZY_UI_MODULES as l, preloadHomeScreen as m, useModulePreloader as n, extractIncodeStatus as o, preloadFirstModule as p, usePrefetchNextModule as r, UnsupportedModule as s, useModuleLoader as t, createFlowManager as u, fetchAndApplyTheme as v, isDesktopOrEmulated$1 as y };
467
+ export { warmupWasmIfNeeded as _, resolveApiKey as a, HEADLESS_FLOW_MODULE_KEYS as c, fetchTheme as d, initializeFlowManager as f, setupSDK as g, preloadRedirectToMobile as h, HEADLESS_WORKFLOW_MODULE_KEYS as i, LAZY_UI_MODULES as l, preloadHomeScreen as m, useModulePreloader as n, extractIncodeStatus as o, preloadFirstModule as p, usePrefetchNextModule as r, UnsupportedModule as s, useModuleLoader as t, createFlowManager as u, isDesktopOrEmulated$1 as v };
@@ -1,13 +1,12 @@
1
- import { n as useTranslation } from "./i18n-CushpmmJ.js";
1
+ import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
2
2
  import { v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
3
- import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
4
- import { t as Page } from "./page-DidH_RkX.js";
5
- import { t as Spinner } from "./spinner-BMeIEK1d.js";
6
- import { t as Button } from "./button-Dz6AsbmF.js";
7
- import { t as ErrorIcon } from "./errorIcon-BA4T6iy-.js";
8
- import { v as WarningIcon } from "./icons-w6luRFtW.js";
9
- import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
10
- import { t as AutoFocusTitle } from "./autoFocusTitle-IN4TR7QN.js";
3
+ import { i as Page } from "./hooks-Bl4BccV8.js";
4
+ import { t as Spacer } from "./spacer-I8ILMQiA.js";
5
+ import { t as Spinner } from "./spinner-YXqSOUqg.js";
6
+ import { n as ErrorIcon, r as Button } from "./incode-logo-DasIBJw8.js";
7
+ import { v as WarningIcon } from "./icons-CqDMnQ1g.js";
8
+ import { t as SuccessIcon } from "./successIcon-BshEyvXA.js";
9
+ import { t as AutoFocusTitle } from "./autoFocusTitle-DIuy3fAL.js";
11
10
  //#region src/shared/verificationResult/verificationResult.tsx
12
11
  var SUBTITLE_ID = "IncodeVerificationResultSubtitle";
13
12
  var VerificationResult = ({ status, submittingTitle, successTitle, failureTitle, warningTitle, submittingSubtitle, errorMessage, onRetry, onSkip, retryLabel, skipLabel, hideFooterBranding = true, footerBrandingSlot }) => {
@@ -1,21 +1,17 @@
1
- import { n as useTranslation } from "../i18n-CushpmmJ.js";
1
+ import { i as useTranslation } from "../uiConfig-DSGyRMSC.js";
2
2
  import { _ as y, d as T, h as q, l as A, p as d, v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
3
- import { l as useManager, s as useModuleTerminalCallbacks, t as useTimeoutHandle } from "../hooks-CxG4XS7P.js";
4
- import { t as IncodeComponent } from "../incodeComponent-BCd_bJev.js";
5
- import { n as cn, t as LoadingIcon } from "../loadingIcon-B0ysgiNq.js";
6
- import { t as Page } from "../page-DidH_RkX.js";
7
- import { t as Title } from "../typography-BZIpjo97.js";
8
- import { t as TransitionSpinner } from "../transitionSpinner-B7mmwUrc.js";
9
- import { t as Button } from "../button-Dz6AsbmF.js";
10
- import { t as ErrorIcon } from "../errorIcon-BA4T6iy-.js";
11
- import "../icons-w6luRFtW.js";
12
- import { t as SuccessIcon } from "../successIcon-B5mGvdx1.js";
13
- import { t as Modal } from "../modal-C-Q9km3s.js";
14
- import { t as AutoFocusTitle } from "../autoFocusTitle-IN4TR7QN.js";
15
- import { a as CameraFrame, i as CameraView, n as preloadCaptureAnimations, t as CaptureNotification } from "../captureNotification-DatgEL_T.js";
16
- import { n as Lottie, t as Permissions } from "../permissions-J6qPq98P.js";
17
- import { t as registerIncodeModuleElement } from "../incodeModule-Bgg06vwW.js";
18
- import { t as TerminalErrorPage } from "../terminalErrorPage-DwH-JDg0.js";
3
+ import { c as useTimeoutHandle, g as useManager, i as Page, m as useModuleTerminalCallbacks, r as TerminalErrorPage, s as TransitionSpinner, t as withStandaloneModuleBootstrap } from "../hooks-Bl4BccV8.js";
4
+ import { n as LoadingIcon, r as cn } from "../spacer-I8ILMQiA.js";
5
+ import { n as Title } from "../spinner-YXqSOUqg.js";
6
+ import { n as ErrorIcon, r as Button } from "../incode-logo-DasIBJw8.js";
7
+ import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
8
+ import "../icons-CqDMnQ1g.js";
9
+ import { t as SuccessIcon } from "../successIcon-BshEyvXA.js";
10
+ import { t as Modal } from "../modal-BgjeiOv5.js";
11
+ import { t as AutoFocusTitle } from "../autoFocusTitle-DIuy3fAL.js";
12
+ import { a as CameraFrame, i as CameraView, n as preloadCaptureAnimations, t as CaptureNotification } from "../captureNotification-CYNo5vI6.js";
13
+ import { n as Lottie, t as Permissions } from "../permissions-Bcn-2yHb.js";
14
+ import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
19
15
  import { eventModuleNames, eventScreenNames, screenEvent, videoSelfieEvents } from "@incodetech/core/events";
20
16
  import { checkCameraPermission, requestCameraPermission } from "@incodetech/core/camera";
21
17
  import { createConsentRecorder, createVideoSelfieCameraWarmer, createVideoSelfieRecordingManager, facingModeForStep, getVideoSelfieQuestions, getVoiceConsentPhrase, resolveVideoSelfieSteps, warmupVideoSelfieWasm } from "@incodetech/core/video-selfie";
@@ -246,7 +242,7 @@ var SelfieMask = ({ variant = "idle", message }) => {
246
242
  //#region src/modules/video-selfie/idFlipModal.tsx
247
243
  var animationPromise = null;
248
244
  function loadIdFlipAnimation() {
249
- animationPromise ??= import("../flip-animation-RSWxSh3p.js").then((module) => module.default);
245
+ animationPromise ??= import("../flip-animation-CulASaCy.js").then((module) => module.default);
250
246
  return animationPromise;
251
247
  }
252
248
  function preloadIdFlipAnimation() {
@@ -1032,13 +1028,14 @@ var VideoSelfieContent = ({ config, onFinish, onError }) => {
1032
1028
  *
1033
1029
  * @see {@link createVideoSelfieRecordingManager} for headless usage.
1034
1030
  */
1035
- var VideoSelfie = ({ config, onFinish, onError }) => {
1031
+ var VideoSelfieWithLocalConfig = ({ config, onFinish, onError }) => {
1036
1032
  return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(VideoSelfieContent, {
1037
1033
  config,
1038
1034
  onFinish,
1039
1035
  onError
1040
1036
  }) });
1041
1037
  };
1038
+ var VideoSelfie = withStandaloneModuleBootstrap(VideoSelfieWithLocalConfig, "VIDEO_ONBOARDING");
1042
1039
  registerIncodeModuleElement(VideoSelfie, "incode-video-selfie");
1043
1040
  //#endregion
1044
1041
  export { VideoSelfie };