@incodetech/web 2.1.1 → 2.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature/ae-signature.es.js +7 -4
- package/dist/antifraud/antifraud.es.js +6 -6
- package/dist/authentication/authentication.es.js +7 -7
- package/dist/{autoFocusTitle-CuRu2lPg.js → autoFocusTitle-gLba2mgp.js} +6 -3
- package/dist/{back-horizontal-hint-xTnSQbzn.js → back-horizontal-hint-BBGuJ75y.js} +1 -1
- package/dist/{back-vertical-hint-BWWlHfX2.js → back-vertical-hint-B9usJ5lY.js} +1 -1
- package/dist/base.css +425 -3290
- package/dist/{bottomSheet-CnWbbUAM.js → bottomSheet-Cp8DLulN.js} +7 -8
- package/dist/certificate-issuance/certificate-issuance.es.js +34 -87
- package/dist/certificate-issuance/styles.css +0 -41
- package/dist/{checkbox-1wUHSoaK.js → checkbox-C38Elx0O.js} +5 -5
- package/dist/connectionError-DAeXp8sE.js +45 -0
- package/dist/consent/consent.es.js +10 -12
- package/dist/consent/styles.css +5 -4
- package/dist/{countrySelector-SvUOyPo0.js → countrySelector-2t-ZTgGo.js} +3 -3
- package/dist/cross-document-data-match/cross-document-data-match.es.js +13 -10
- package/dist/curp-validation/curp-validation.es.js +28 -29
- package/dist/curp-validation/styles.css +47 -0
- package/dist/{customFields-BDsXR7A-.js → customFields-B8HQZ7Mh.js} +13 -14
- package/dist/{customWatchlist-CYoRNCim.js → customWatchlist-_tUmZ855.js} +9 -9
- package/dist/dashboardTheme-CVliZSR-.js +223 -0
- package/dist/{dateInputComposed-DuaofcBl.js → dateInputComposed-eRcbt_SL.js} +5 -5
- package/dist/dateInputComposed-ks0-opuq.js +1 -0
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +85 -70
- package/dist/{documentCapture-DhbO-A-V.js → documentCapture-BvEGCYj-.js} +218 -136
- package/dist/documentCapture-DdHdRPzR.js +2 -0
- package/dist/{dropdownComposed-CoU0enG6.js → dropdownComposed-OHDHzt1Q.js} +18 -11
- package/dist/dropdownComposed-kjG4UblM.js +1 -0
- package/dist/dynamic-forms/styles.css +58 -6
- package/dist/{dynamicForms-BifGbC9F.js → dynamicForms-P-4E42IA.js} +53 -45
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -28
- package/dist/ekybModule-CiaxFHXo.js +2 -0
- package/dist/{ekybModule-DGnTw5UV.js → ekybModule-DmjkzVWE.js} +51 -27
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +2 -2
- package/dist/ekycModule-BVt10kgv.js +2 -0
- package/dist/{ekycModule-Dxpdd0ns.js → ekycModule-Da1Fm7ai.js} +45 -19
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{ae-signature → electronic-signature}/styles.css +2 -2
- package/dist/{electronic-signature-Ueoffasr.js → electronic-signature-yamI6zHM.js} +31 -23
- package/dist/email/email.es.js +10 -11
- package/dist/{emailInput-DsLkDtER.js → emailInput-B0P2Q-pk.js} +4 -4
- package/dist/{expiredId-BZXLrLk-.js → expiredId-BXXE3srN.js} +6 -6
- package/dist/{extensibility-7sRIN0JC.js → extensibility-iJYzpW6H.js} +440 -374
- package/dist/extensibility.es.js +24 -28
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +9 -609
- package/dist/faceMatch-D4XFihTc.js +2 -0
- package/dist/{faceMatch-DyTBoMDm.js → faceMatch-VtEZvsen.js} +71 -79
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-B_r9Bal7.js +2 -0
- package/dist/{fieldComparison-L_knHqgw.js → fieldComparison-NLdDSOEh.js} +11 -12
- package/dist/finalSuccessScreen-DryADx1n.js +500 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +12 -12
- package/dist/flip-animation-CvN8FLNc.js +6996 -0
- package/dist/flow/flow.es.js +81 -45
- package/dist/flow/styles.css +908 -5423
- package/dist/{front-horizontal-hint-B84GgTO1.js → front-horizontal-hint-D3CrWViZ.js} +1 -1
- package/dist/{front-vertical-hint-Bs_avngq.js → front-vertical-hint-BoLZvyx5.js} +1 -1
- package/dist/geolocation/geolocation.es.js +36 -13
- package/dist/geolocation/styles.css +1 -1
- package/dist/government-validation/government-validation.es.js +11 -12
- package/dist/{homeScreen-B6T0JVh8.js → homeScreen-Pv3v_0ji.js} +7 -9
- package/dist/{icons-CJJbIpBq.js → icons--ezYG2Fb.js} +92 -7
- package/dist/id/id.es.js +222 -52
- package/dist/id/styles.css +290 -10
- package/dist/id-back-of-card-DO593HH8.js +83 -0
- package/dist/id-back-of-card-vertical-DArEQ0hE.js +88 -0
- package/dist/id-front-of-card-Bcit7Pnq.js +308 -0
- package/dist/id-front-of-card-vertical-Bcr-KXcl.js +278 -0
- package/dist/id-laser-h-BaUHzX-d.js +480 -0
- package/dist/{id-laser-v-BiUXkM4x.js → id-laser-v-Dv9yEYJE.js} +7 -17
- package/dist/id-selfie-flow/id-selfie-flow.es.js +239 -0
- package/dist/id-selfie-flow/styles.css +749 -0
- package/dist/id-verification/id-verification.es.js +13 -9
- package/dist/{idOcr-WFBvqy3b.js → idOcr-gsIXHq6R.js} +14 -15
- package/dist/identity-reuse/identity-reuse.es.js +6 -8
- package/dist/identity-reuse/styles.css +1 -1
- package/dist/{incode-logo-57XFniXU.js → incode-logo-rGFjZHqi.js} +64 -1
- package/dist/incodeComponent-K9ZWg302.js +713 -0
- package/dist/incodeModule-CcLzar_X.js +25 -0
- package/dist/index.es.js +16 -5
- package/dist/{inputComposed-C1R2LAa3.js → inputComposed-BeROn635.js} +9 -9
- package/dist/inputComposed-CADVQW-o.js +1 -0
- package/dist/{mandatoryConsent-D0GTKu-H.js → mandatoryConsent-BtqB-FxY.js} +9 -11
- package/dist/{capture-CkGvdDNH.js → manualCaptureButton-quGa2ufS.js} +68 -198
- package/dist/manualCaptureButton-t_oIol88.js +300 -0
- package/dist/{modal-OxkFuuiR.js → modal-BjjJFpZu.js} +4 -4
- package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BvXzNWvY.js} +1 -1
- package/dist/{numberedStep-CEb-lFJm.js → numberedStep-DUs77Gy3.js} +1 -1
- package/dist/{optionAccessibleLabel-gfF-58Mv.js → optionAccessibleLabel-DgfHD_mx.js} +6 -6
- package/dist/{otpInput-CnDc6pQm.js → otpInput-D5dLXrmC.js} +72 -36
- package/dist/{passport-horizontal-hint-Bj0ZJY0g.js → passport-horizontal-hint-DgnU-8bl.js} +1 -1
- package/dist/{passport-vertical-hint-Dfk77xUJ.js → passport-vertical-hint-Dd2Wknw7.js} +1 -1
- package/dist/{pdf-BqtJTlor.js → pdf-BUoY_2gv.js} +1 -1
- package/dist/pdfViewer-CZb6obcZ.js +2 -0
- package/dist/{pdfViewer-B97DmT9m.js → pdfViewer-vud1VZv6.js} +5 -7
- package/dist/phone/phone.es.js +13 -12
- package/dist/{phoneInputComposed-DMiXfF-1.js → phoneInputComposed-CeVWTS_O.js} +7 -6
- package/dist/{processing-BeUMfdJJ.js → processing-BsvHyDWa.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +7 -4
- package/dist/{radioGroupComposed-DuQxslB2.js → radioGroupComposed-DzNGUbZQ.js} +16 -15
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +132 -45
- package/dist/redirect-to-mobile/styles.css +20 -10
- package/dist/{registerIncodeElement-DaNjbAwZ.js → registerIncodeElement-BduCekz5.js} +1 -1
- package/dist/{richText-CB1fmegc.js → richText-CTHBpZOw.js} +3 -1607
- package/dist/selfie/selfie.es.js +10 -10
- package/dist/selfie/styles.css +16 -949
- package/dist/signature/signature.es.js +27 -19
- package/dist/{ae-signature/styles2.css → signature/styles.css} +4 -4
- package/dist/{snackbar-DS7Mv62v.js → snackbar-C9Mqrh0e.js} +2 -2
- package/dist/spacer-CDlQd12V.js +2344 -0
- package/dist/{spinner-BMeIEK1d.js → spinner-CLZ2fz4u.js} +45 -4
- package/dist/statusPage--GVFSUJp.js +36 -0
- package/dist/{successIcon-B5mGvdx1.js → successIcon-Bj8Y9CuI.js} +1 -1
- package/dist/{tabs-C__chW-u.js → tabs-DweBZTV2.js} +4 -3
- package/dist/themes/dark.css +35 -0
- package/dist/themes/light.css +35 -0
- package/dist/{tutorial-CCfPuVKX.js → tutorial-BZZC93Ur.js} +222 -180
- package/dist/types/ae-signature.d.ts +91 -5
- package/dist/types/antifraud.d.ts +86 -3
- package/dist/types/authentication.d.ts +86 -3
- package/dist/types/certificate-issuance.d.ts +86 -3
- package/dist/types/consent.d.ts +86 -3
- package/dist/types/cross-document-data-match.d.ts +88 -4
- package/dist/types/curp-validation.d.ts +86 -3
- package/dist/types/document-capture.d.ts +88 -4
- package/dist/types/ekyb.d.ts +88 -4
- package/dist/types/ekyc.d.ts +88 -4
- package/dist/types/electronic-signature.d.ts +87 -4
- package/dist/types/email.d.ts +82 -22
- package/dist/types/extensibility.d.ts +157 -5
- package/dist/types/face-match.d.ts +84 -22
- package/dist/types/field-comparison.d.ts +86 -3
- package/dist/types/fiscal-qr.d.ts +89 -5
- package/dist/types/flow.d.ts +92 -2
- package/dist/types/geolocation.d.ts +86 -3
- package/dist/types/government-validation.d.ts +86 -3
- package/dist/types/id-selfie-flow.d.ts +161 -0
- package/dist/types/id-verification.d.ts +87 -4
- package/dist/types/id.d.ts +88 -5
- package/dist/types/identity-reuse.d.ts +82 -2
- package/dist/types/index.d.ts +106 -1
- package/dist/types/phone.d.ts +83 -24
- package/dist/types/qe-signature.d.ts +91 -5
- package/dist/types/redirect-to-mobile.d.ts +4 -1
- package/dist/types/selfie.d.ts +86 -3
- package/dist/types/signature.d.ts +91 -5
- package/dist/types/video-selfie.d.ts +83 -6
- package/dist/types/watchlist.d.ts +91 -5
- package/dist/types/workflow.d.ts +85 -2
- package/dist/{i18n-CU4xq8qC.js → uiConfig-B5ASPUL4.js} +26 -3
- package/dist/{useModuleLoader-Bi26kJbg.js → useModuleLoader-D_YpuVsS.js} +37 -248
- package/dist/{vendor-preact-DThS2ZQ_.js → vendor-preact-mvwZ8mJj.js} +1 -1
- package/dist/{verificationResult-BWWkmeiA.js → verificationResult-B8HwR07t.js} +26 -15
- package/dist/video-selfie/styles.css +349 -1202
- package/dist/video-selfie/video-selfie.es.js +120 -381
- package/dist/watchlist/watchlist.es.js +16 -13
- package/dist/{watchlistForBusiness-D2Uo_TwF.js → watchlistForBusiness-D8Is99bZ.js} +12 -13
- package/dist/workflow/styles.css +501 -3977
- package/dist/workflow/workflow.es.js +25 -18
- package/package.json +22 -20
- package/dist/button-Dz6AsbmF.js +0 -40
- package/dist/cameraView-DIEzM5ru.js +0 -47
- package/dist/cpf-ocr/cpf-ocr.es.js +0 -2
- package/dist/cpf-ocr/styles.css +0 -45
- package/dist/cpfOcr-B79245-3.js +0 -2
- package/dist/cpfOcr-BhxT-lRN.js +0 -92
- package/dist/dateInputComposed-DRzZi6uy.js +0 -1
- package/dist/documentCapture-DXYYyxZl.js +0 -2
- package/dist/dropdownComposed-BAoxIIsE.js +0 -1
- package/dist/ekybModule-C6Nttked.js +0 -2
- package/dist/ekycModule-CDIEjI6V.js +0 -2
- package/dist/errorIcon-BA4T6iy-.js +0 -26
- package/dist/faceMatch-B_HvxLm_.js +0 -2
- package/dist/fieldComparison-DfNEuEE5.js +0 -2
- package/dist/flip-animation-CZYSUtMm.js +0 -6983
- package/dist/hooks-CNu7o-v8.js +0 -186
- package/dist/id-laser-h-CzPegPMn.js +0 -467
- package/dist/incodeComponent-CfzJGETt.js +0 -64
- package/dist/incodeModule-B-4_3JrK.js +0 -13
- package/dist/inputComposed-BaY5q9WM.js +0 -1
- package/dist/loadingIcon-B0ysgiNq.js +0 -148
- package/dist/page-DidH_RkX.js +0 -171
- package/dist/spinner-BCDCoi9C.js +0 -1
- package/dist/statusPage-Bk8nJwXV.js +0 -28
- package/dist/transitionSpinner-CuNCqHNi.js +0 -30
- package/dist/types/cpf-ocr.d.ts +0 -12
- package/dist/typography-BZIpjo97.js +0 -45
- package/dist/uiConfig-D2_wawvr.js +0 -25
- /package/dist/{aligndevicelottie-DFscByAI.js → aligndevicelottie-CfoZ5Uus.js} +0 -0
- /package/dist/{back-tutorial-cI_4VHmE.js → back-tutorial-BHyRHyET.js} +0 -0
- /package/dist/{backdevicelottie-COyhTrxM.js → backdevicelottie-yKkczgFy.js} +0 -0
- /package/dist/{blurdevicelottie-BLVeJHEG.js → blurdevicelottie-8BbophdM.js} +0 -0
- /package/dist/{browser-ponyfill-Df13Th-G.js → browser-ponyfill-CBjGwwPW.js} +0 -0
- /package/dist/{defineProperty-Qjefk7Uf.js → defineProperty-BbpBna-2.js} +0 -0
- /package/dist/{frontdevicelottie-B4tE2PYQ.js → frontdevicelottie-CFcahVLk.js} +0 -0
- /package/dist/{glaredevicelottie-D1pR73sx.js → glaredevicelottie-Cnvah0kz.js} +0 -0
- /package/dist/{id-tutorial-DwO90SAm.js → id-tutorial-BOOsXlAJ.js} +0 -0
- /package/dist/{lottie_light-C6B2ec41.js → lottie_light-Bv56F2Ae.js} +0 -0
- /package/dist/{passport-tutorial-D9JNsMsM.js → passport-tutorial-CeSup6m9.js} +0 -0
- /package/dist/{requiredLabelHint-D0RhuMed.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
- /package/dist/{selfieTutorial-pB-N-fj5.js → selfieTutorial-CYa8bq6B.js} +0 -0
package/dist/types/workflow.d.ts
CHANGED
|
@@ -2,18 +2,70 @@ import { CreateSessionOptions } from '@incodetech/core/session';
|
|
|
2
2
|
import { CustomModuleCallback } from '@incodetech/core/workflow';
|
|
3
3
|
import { FC } from 'preact/compat';
|
|
4
4
|
import { FinishStatus } from '@incodetech/core/flow';
|
|
5
|
+
import { FunctionComponent } from 'preact';
|
|
6
|
+
import { SVGProps } from 'preact/compat';
|
|
5
7
|
import { WasmConfig } from '@incodetech/core/wasm';
|
|
6
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Allowlisted keys for overridable Lottie animations
|
|
11
|
+
*/
|
|
12
|
+
declare type AnimationKey = 'id.tutorial.front' | 'id.tutorial.back' | 'id.tutorial.passport' | 'id.flip' | 'id.processing' | 'selfie.tutorial' | 'loader.spinner';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A customer-supplied replacement for a built-in Lottie animation.
|
|
16
|
+
*
|
|
17
|
+
* - `LottieAnimationData` — a parsed Lottie JSON object.
|
|
18
|
+
* - `{ url }` — fetched and cached at runtime.
|
|
19
|
+
* - `{ animationData }` — explicit object form.
|
|
20
|
+
*/
|
|
21
|
+
declare type AnimationOverride = LottieAnimationData | {
|
|
22
|
+
url: string;
|
|
23
|
+
} | {
|
|
24
|
+
animationData: LottieAnimationData;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
declare type AnimationOverrides = Partial<Record<AnimationKey, AnimationOverride>>;
|
|
28
|
+
|
|
7
29
|
declare type ApiKeySessionBootstrap = {
|
|
8
30
|
apiKey: string;
|
|
9
31
|
clientId?: string;
|
|
10
32
|
};
|
|
11
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Allowlisted keys for overridable branded SVG illustrations
|
|
36
|
+
*/
|
|
37
|
+
declare type AssetKey = 'faceMatch.success' | 'faceMatch.fail' | 'documentCapture.tutorial' | 'id.uploadScreen' | 'id.ageVerification.dob' | 'id.ageVerification.scan' | 'id.ageVerification.privacy' | 'videoSelfie.success' | 'videoSelfie.fail' | 'videoSelfie.tutorial.permission' | 'videoSelfie.tutorial.selfie' | 'videoSelfie.tutorial.frontId' | 'videoSelfie.tutorial.backId' | 'videoSelfie.tutorial.poa' | 'videoSelfie.tutorial.questions' | 'videoSelfie.tutorial.speech' | 'loader.spinner';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A customer-supplied replacement for a built-in SVG illustration.
|
|
41
|
+
*
|
|
42
|
+
* - `string` — a URL, or raw `<svg …>` markup (detected by a leading `<`).
|
|
43
|
+
* - `{ url }` — fetched and rendered via `<img>`; no script execution.
|
|
44
|
+
* - `{ raw }` — inline markup; sanitized before injection.
|
|
45
|
+
* - `{ svg }` — a precompiled component, for build-time integrations.
|
|
46
|
+
*/
|
|
47
|
+
declare type AssetOverride = string | {
|
|
48
|
+
url: string;
|
|
49
|
+
} | {
|
|
50
|
+
raw: string;
|
|
51
|
+
} | {
|
|
52
|
+
svg: SvgComponent;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
56
|
+
|
|
12
57
|
declare type ClientIdSessionBootstrap = {
|
|
13
58
|
apiKey?: string;
|
|
14
59
|
clientId: string;
|
|
15
60
|
};
|
|
16
61
|
|
|
62
|
+
/**
|
|
63
|
+
* A module `config` intersected with the per-instance override maps. Typed at
|
|
64
|
+
* the UI boundary so core config types (e.g. `IdCaptureConfig`) stay untouched;
|
|
65
|
+
* `FlowConfig` also declares the maps directly.
|
|
66
|
+
*/
|
|
67
|
+
declare type ConfigWithOverrides<TConfig> = TConfig & InstanceOverrides;
|
|
68
|
+
|
|
17
69
|
/**
|
|
18
70
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
19
71
|
* how to react to the terminal state without inspecting the DOM. Only the
|
|
@@ -34,12 +86,16 @@ export declare type IncodeFinishMeta = {
|
|
|
34
86
|
sdkOwnsTerminalScreen?: boolean;
|
|
35
87
|
};
|
|
36
88
|
|
|
37
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown
|
|
89
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = ConfigWithOverrides<TConfig>> = {
|
|
38
90
|
/**
|
|
39
91
|
* Module configuration required to render the flow.
|
|
40
92
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
93
|
+
*
|
|
94
|
+
* Also carries optional per-instance `assets`/`animations` override maps;
|
|
95
|
+
* they override the global `setup({ uiConfig })` values for this
|
|
96
|
+
* element only and are ignored by the core manager.
|
|
41
97
|
*/
|
|
42
|
-
config?:
|
|
98
|
+
config?: TConfigInput;
|
|
43
99
|
/**
|
|
44
100
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
45
101
|
*/
|
|
@@ -69,6 +125,27 @@ export declare const IncodeWorkflow: FC<IncodeWorkflowProps>;
|
|
|
69
125
|
|
|
70
126
|
declare type IncodeWorkflowProps = IncodeModuleProps<WorkflowComponentConfig, FinishStatus>;
|
|
71
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Per-instance asset/animation overrides for a single mounted SDK module.
|
|
130
|
+
*
|
|
131
|
+
* These ride on the module's `config` prop and are published once at the
|
|
132
|
+
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
133
|
+
* reads them via {@link useInstanceOverrides} without any prop drilling.
|
|
134
|
+
*/
|
|
135
|
+
declare type InstanceOverrides = {
|
|
136
|
+
assets?: AssetOverrides;
|
|
137
|
+
animations?: AnimationOverrides;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare type LottieAnimationData = {
|
|
141
|
+
fr: number;
|
|
142
|
+
v: string;
|
|
143
|
+
ip: number;
|
|
144
|
+
op: number;
|
|
145
|
+
w: number;
|
|
146
|
+
h: number;
|
|
147
|
+
};
|
|
148
|
+
|
|
72
149
|
export declare function mapModuleConfig(options: MapModuleConfigOptions): Record<string, unknown>;
|
|
73
150
|
|
|
74
151
|
/**
|
|
@@ -80,6 +157,7 @@ declare type MapModuleConfigOptions = {
|
|
|
80
157
|
config: Record<string, unknown>;
|
|
81
158
|
workflowId: string;
|
|
82
159
|
authHint?: string;
|
|
160
|
+
loginHintPrefill?: string;
|
|
83
161
|
lang?: string;
|
|
84
162
|
mergeSessionRecordings?: boolean;
|
|
85
163
|
ageAssurance?: boolean;
|
|
@@ -105,6 +183,9 @@ declare type SpinnerConfig = {
|
|
|
105
183
|
|
|
106
184
|
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
107
185
|
|
|
186
|
+
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
187
|
+
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
188
|
+
|
|
108
189
|
declare type TokenWorkflowRuntimeConfig = WorkflowBaseConfig & {
|
|
109
190
|
token: string;
|
|
110
191
|
/**
|
|
@@ -140,6 +221,8 @@ declare type WorkflowBaseConfig = {
|
|
|
140
221
|
isDesktop?: boolean;
|
|
141
222
|
/** Authentication hint for AUTHENTICATION module. Required when workflow includes face authentication. */
|
|
142
223
|
authHint?: string;
|
|
224
|
+
/** Login-hint prefill forwarded to the DYNAMIC_FORMS module's `prefillValue`. Distinct from `authHint`. */
|
|
225
|
+
loginHintPrefill?: string;
|
|
143
226
|
onModuleLoading?: (moduleKey: string) => void;
|
|
144
227
|
onModuleLoaded?: (moduleKey: string) => void;
|
|
145
228
|
onUrlUuidRefreshed?: (urlUuid: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
2
|
-
import { _ as y, d as T,
|
|
2
|
+
import { S as k, _ as y, d as T, i as C, p as d, v as u, y as K } from "./vendor-preact-mvwZ8mJj.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-
|
|
2363
|
+
import("./browser-ponyfill-CBjGwwPW.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
|
-
|
|
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,231 +1,20 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { _ as y, l as A, p as d, v as u } from "./vendor-preact-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { t as ErrorIcon } from "./errorIcon-BA4T6iy-.js";
|
|
1
|
+
import { a as hasI18nInstance, o as setI18nInstance, s as createI18n } from "./uiConfig-B5ASPUL4.js";
|
|
2
|
+
import { _ as y, l as A, p as d, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
+
import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme } from "./dashboardTheme-CVliZSR-.js";
|
|
4
|
+
import "./incodeComponent-K9ZWg302.js";
|
|
5
|
+
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
7
6
|
import { initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
8
|
-
import {
|
|
7
|
+
import { isDesktopOrEmulated } from "@incodetech/core/device";
|
|
9
8
|
import { createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
10
9
|
import { getFinishStatus, initializeSession } from "@incodetech/core/session";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* Terminal error screen shown by `<incode-flow>` / `<incode-workflow>` when
|
|
15
|
-
* the SDK reaches an unrecoverable error state — both during initialization
|
|
16
|
-
* (e.g. `/omni/start` or `/omni/workflow/info` returns `4028` "not activated")
|
|
17
|
-
* and during the flow/workflow lifecycle (e.g. `/omni/workflow/process/node`,
|
|
18
|
-
* `/omni/finish-status`, or a child module's terminal error).
|
|
19
|
-
*
|
|
20
|
-
* When the error carries a backend-provided `error`/`message` (surfaced via
|
|
21
|
-
* `IncodeApiError.message` from core's service wrappers), it's rendered
|
|
22
|
-
* verbatim as the subtitle. Generic transport failures fall back to a
|
|
23
|
-
* translated default.
|
|
24
|
-
*
|
|
25
|
-
* Layout: `Page` is used for the Incode logo + optional "Verified by Incode"
|
|
26
|
-
* footer only — the title/subtitle/titleTopSlot slots are deliberately *not*
|
|
27
|
-
* used so we can vertically center the status block (icon + title + message)
|
|
28
|
-
* within the available height at every viewport size. The Try again button
|
|
29
|
-
* is anchored to the bottom of the content area. The screen intentionally
|
|
30
|
-
* has no close button — the only exit is "Try again", which delegates to
|
|
31
|
-
* `onRetry`.
|
|
32
|
-
*/
|
|
33
|
-
var TerminalErrorPage = ({ message, onRetry }) => {
|
|
34
|
-
const { t } = useTranslation();
|
|
35
|
-
const titleRef = A(null);
|
|
36
|
-
y(() => {
|
|
37
|
-
titleRef.current?.focus();
|
|
38
|
-
}, []);
|
|
39
|
-
const handleRetry = () => {
|
|
40
|
-
if (onRetry) {
|
|
41
|
-
onRetry();
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (typeof window !== "undefined") window.location.reload();
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ u(Page, {
|
|
47
|
-
className: "IncodeTerminalErrorPage",
|
|
48
|
-
"data-testid": "terminal-error-page",
|
|
49
|
-
children: /* @__PURE__ */ u("div", {
|
|
50
|
-
class: "IncodeTerminalErrorPageBody",
|
|
51
|
-
children: [/* @__PURE__ */ u("div", {
|
|
52
|
-
class: "IncodeTerminalErrorPageStatus",
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ u(ErrorIcon, { size: 64 }),
|
|
55
|
-
/* @__PURE__ */ u("h2", {
|
|
56
|
-
ref: titleRef,
|
|
57
|
-
class: "IncodeTerminalErrorPageTitle",
|
|
58
|
-
tabIndex: -1,
|
|
59
|
-
children: t("common.somethingWentWrong")
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ u("p", {
|
|
62
|
-
class: "IncodeTerminalErrorPageMessage",
|
|
63
|
-
children: message ?? t("common.unexpectedError")
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
}), /* @__PURE__ */ u("div", {
|
|
67
|
-
class: "IncodeTerminalErrorPageFooter",
|
|
68
|
-
children: /* @__PURE__ */ u(Button, {
|
|
69
|
-
onClick: handleRetry,
|
|
70
|
-
children: t("common.tryAgain")
|
|
71
|
-
})
|
|
72
|
-
})]
|
|
73
|
-
})
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/styles/generatePalette.ts
|
|
78
|
-
function hexToHsl(hex) {
|
|
79
|
-
let normalizedHex = hex.replace("#", "");
|
|
80
|
-
if (normalizedHex.length === 3) normalizedHex = normalizedHex.split("").map((char) => char + char).join("");
|
|
81
|
-
const result = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(normalizedHex);
|
|
82
|
-
if (!result) return null;
|
|
83
|
-
const r = Number.parseInt(result[1], 16) / 255;
|
|
84
|
-
const g = Number.parseInt(result[2], 16) / 255;
|
|
85
|
-
const b = Number.parseInt(result[3], 16) / 255;
|
|
86
|
-
const max = Math.max(r, g, b);
|
|
87
|
-
const min = Math.min(r, g, b);
|
|
88
|
-
let h = 0;
|
|
89
|
-
let s = 0;
|
|
90
|
-
const l = (max + min) / 2;
|
|
91
|
-
if (max !== min) {
|
|
92
|
-
const d = max - min;
|
|
93
|
-
s = l > .5 ? d / (2 - max - min) : d / (max + min);
|
|
94
|
-
switch (max) {
|
|
95
|
-
case r:
|
|
96
|
-
h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
|
|
97
|
-
break;
|
|
98
|
-
case g:
|
|
99
|
-
h = ((b - r) / d + 2) / 6;
|
|
100
|
-
break;
|
|
101
|
-
case b:
|
|
102
|
-
h = ((r - g) / d + 4) / 6;
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
h: h * 360,
|
|
108
|
-
s: s * 100,
|
|
109
|
-
l: l * 100
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function hslToHex(h, s, l) {
|
|
113
|
-
const hNorm = h / 360;
|
|
114
|
-
const sNorm = s / 100;
|
|
115
|
-
const lNorm = l / 100;
|
|
116
|
-
let r;
|
|
117
|
-
let g;
|
|
118
|
-
let b;
|
|
119
|
-
if (sNorm === 0) r = g = b = lNorm;
|
|
120
|
-
else {
|
|
121
|
-
const hue2rgb = (p, q, t) => {
|
|
122
|
-
if (t < 0) t += 1;
|
|
123
|
-
if (t > 1) t -= 1;
|
|
124
|
-
if (t < 1 / 6) return p + (q - p) * 6 * t;
|
|
125
|
-
if (t < 1 / 2) return q;
|
|
126
|
-
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
|
|
127
|
-
return p;
|
|
128
|
-
};
|
|
129
|
-
const q = lNorm < .5 ? lNorm * (1 + sNorm) : lNorm + sNorm - lNorm * sNorm;
|
|
130
|
-
const p = 2 * lNorm - q;
|
|
131
|
-
r = hue2rgb(p, q, hNorm + 1 / 3);
|
|
132
|
-
g = hue2rgb(p, q, hNorm);
|
|
133
|
-
b = hue2rgb(p, q, hNorm - 1 / 3);
|
|
134
|
-
}
|
|
135
|
-
const toHex = (n) => {
|
|
136
|
-
const hex = Math.round(n * 255).toString(16);
|
|
137
|
-
return hex.length === 1 ? `0${hex}` : hex;
|
|
138
|
-
};
|
|
139
|
-
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
140
|
-
}
|
|
141
|
-
function generateBrandPalette(mainColor) {
|
|
142
|
-
const hsl = hexToHsl(mainColor);
|
|
143
|
-
if (!hsl) throw new Error(`Invalid color format: ${mainColor}`);
|
|
144
|
-
return {
|
|
145
|
-
"50": hslToHex(hsl.h, hsl.s, 95),
|
|
146
|
-
"200": hslToHex(hsl.h, hsl.s, 80),
|
|
147
|
-
"300": hslToHex(hsl.h, hsl.s, 65),
|
|
148
|
-
"400": hslToHex(hsl.h, hsl.s, Math.min(100, hsl.l + 10)),
|
|
149
|
-
"500": mainColor,
|
|
150
|
-
"600": hslToHex(hsl.h, hsl.s, Math.max(0, hsl.l - 10)),
|
|
151
|
-
"900": hslToHex(hsl.h, hsl.s, 20)
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region src/styles/applyTheme.ts
|
|
156
|
-
function applyTheme(mainColor, buttonColor) {
|
|
157
|
-
if (typeof document === "undefined") return;
|
|
158
|
-
const palette = generateBrandPalette(mainColor);
|
|
159
|
-
let styleElement = document.getElementById("incode-theme");
|
|
160
|
-
if (!styleElement) {
|
|
161
|
-
styleElement = document.createElement("style");
|
|
162
|
-
styleElement.id = "incode-theme";
|
|
163
|
-
document.head.appendChild(styleElement);
|
|
164
|
-
}
|
|
165
|
-
const buttonTextColor = buttonColor || "#ffffff";
|
|
166
|
-
const css = `
|
|
167
|
-
:root,
|
|
168
|
-
:host {
|
|
169
|
-
--primitive-color-brand-50: ${palette["50"]};
|
|
170
|
-
--primitive-color-brand-200: ${palette["200"]};
|
|
171
|
-
--primitive-color-brand-300: ${palette["300"]};
|
|
172
|
-
--primitive-color-brand-400: ${palette["400"]};
|
|
173
|
-
--primitive-color-brand-500: ${palette["500"]};
|
|
174
|
-
--primitive-color-brand-600: ${palette["600"]};
|
|
175
|
-
--primitive-color-brand-900: ${palette["900"]};
|
|
176
|
-
--button-primary-text-default: ${buttonTextColor};
|
|
177
|
-
}
|
|
178
|
-
`;
|
|
179
|
-
styleElement.textContent = css;
|
|
180
|
-
}
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region src/styles/fetchTheme.ts
|
|
183
|
-
async function fetchAssets() {
|
|
184
|
-
return (await api.get("/omni/asset/fetch-all")).data;
|
|
185
|
-
}
|
|
186
|
-
var dataUrlCache = /* @__PURE__ */ new Map();
|
|
187
|
-
async function urlToDataUrl(url) {
|
|
188
|
-
if (url.startsWith("data:")) return url;
|
|
189
|
-
const cached = dataUrlCache.get(url);
|
|
190
|
-
if (cached) return cached;
|
|
191
|
-
const blob = await (await fetch(url)).blob();
|
|
192
|
-
const dataUrl = await new Promise((resolve, reject) => {
|
|
193
|
-
const reader = new FileReader();
|
|
194
|
-
reader.onloadend = () => resolve(reader.result);
|
|
195
|
-
reader.onerror = reject;
|
|
196
|
-
reader.readAsDataURL(blob);
|
|
197
|
-
});
|
|
198
|
-
dataUrlCache.set(url, dataUrl);
|
|
199
|
-
return dataUrl;
|
|
200
|
-
}
|
|
201
|
-
async function fetchTheme$1() {
|
|
202
|
-
const assets = await fetchAssets();
|
|
203
|
-
if (!assets.theme) throw new Error("Theme URL not found in assets response");
|
|
204
|
-
const themeUrl = assets.theme;
|
|
205
|
-
const isAbsoluteUrl = themeUrl.startsWith("http://") || themeUrl.startsWith("https://");
|
|
206
|
-
let theme;
|
|
207
|
-
if (isAbsoluteUrl) {
|
|
208
|
-
const themeResponse = await fetch(themeUrl);
|
|
209
|
-
if (!themeResponse.ok) throw new Error(`Failed to fetch theme: ${themeResponse.statusText}`);
|
|
210
|
-
theme = await themeResponse.json();
|
|
211
|
-
} else theme = (await api.get(themeUrl)).data;
|
|
212
|
-
const logoUrl = assets["logo.png"] || assets["logo.svg"] || assets["logo.jpg"] || assets["logo.jpeg"] || assets["logo.webp"] || theme.logo;
|
|
213
|
-
let cachedLogoUrl = logoUrl;
|
|
214
|
-
if (logoUrl) cachedLogoUrl = await urlToDataUrl(logoUrl);
|
|
215
|
-
return {
|
|
216
|
-
...theme,
|
|
217
|
-
logo: cachedLogoUrl
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
async function fetchAndApplyTheme() {
|
|
221
|
-
const theme = await fetchTheme$1();
|
|
222
|
-
if (theme.main) applyTheme(theme.main, theme.buttonColor);
|
|
223
|
-
return theme;
|
|
10
|
+
//#region src/shared/device/redirectDeviceClassification.ts
|
|
11
|
+
function isDesktopOrEmulated$1() {
|
|
12
|
+
return isDesktopOrEmulated();
|
|
224
13
|
}
|
|
225
14
|
//#endregion
|
|
226
15
|
//#region src/modules/flow/flowInit.ts
|
|
227
16
|
var lazyIdModule = () => import("./id/id.es.js").then((m) => m.Id);
|
|
228
|
-
var loadLazyHomeScreen = () => import("./homeScreen-
|
|
17
|
+
var loadLazyHomeScreen = () => import("./homeScreen-Pv3v_0ji.js").then((m) => m.HomeScreen);
|
|
229
18
|
var homeScreenPreloadPromise;
|
|
230
19
|
/**
|
|
231
20
|
* Headless flow keys: backend-only steps with no UI. `<incode-flow>` renders
|
|
@@ -245,7 +34,6 @@ function getLazyCoreMachineLoader(moduleKey) {
|
|
|
245
34
|
if (moduleKey === "AUTHENTICATION") return () => import("@incodetech/core/authentication").then((m) => m.authenticationMachine);
|
|
246
35
|
if (moduleKey === "ID" || moduleKey === "TUTORIAL_ID" || moduleKey === "SECOND_ID") return () => import("@incodetech/core/id").then((m) => m.idCaptureMachine);
|
|
247
36
|
if (moduleKey === "ID_OCR") return () => import("@incodetech/core/id-ocr").then((m) => m.idOcrStateMachine);
|
|
248
|
-
if (moduleKey === "CPF_OCR") return () => import("@incodetech/core/cpf-ocr").then((m) => m.cpfOcrMachine);
|
|
249
37
|
if (moduleKey === "FACE_MATCH") return () => import("@incodetech/core/face-match").then((m) => m.faceMatchMachine);
|
|
250
38
|
if (moduleKey === "CURP_VALIDATION") return () => import("@incodetech/core/curp-validation").then((m) => m.curpValidationMachine);
|
|
251
39
|
if (moduleKey === "GOVT_VALIDATION_PROVISIONING" || moduleKey === "INE_VALIDATION") return () => import("@incodetech/core/government-validation").then((m) => m.governmentValidationMachine);
|
|
@@ -290,32 +78,31 @@ var LAZY_UI_MODULES = {
|
|
|
290
78
|
ID_CAPTURE: lazyIdModule,
|
|
291
79
|
TUTORIAL_ID: lazyIdModule,
|
|
292
80
|
SECOND_ID: lazyIdModule,
|
|
293
|
-
FACE_MATCH: () => import("./faceMatch-
|
|
81
|
+
FACE_MATCH: () => import("./faceMatch-D4XFihTc.js").then((m) => m.FaceMatch),
|
|
294
82
|
CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((m) => m.CurpValidation),
|
|
295
83
|
GOVT_VALIDATION_PROVISIONING: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
296
84
|
INE_VALIDATION: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
297
85
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((m) => m.Geolocation),
|
|
298
|
-
EXTERNAL_VERIFICATION: () => import("./ekycModule-
|
|
299
|
-
EKYB: () => import("./ekybModule-
|
|
300
|
-
DOCUMENT_CAPTURE: () => import("./documentCapture-
|
|
301
|
-
ADDRESS: () => import("./documentCapture-
|
|
86
|
+
EXTERNAL_VERIFICATION: () => import("./ekycModule-BVt10kgv.js").then((m) => m.EkycModule),
|
|
87
|
+
EKYB: () => import("./ekybModule-CiaxFHXo.js").then((m) => m.EkybModule),
|
|
88
|
+
DOCUMENT_CAPTURE: () => import("./documentCapture-DdHdRPzR.js").then((m) => m.DocumentCapture),
|
|
89
|
+
ADDRESS: () => import("./documentCapture-DdHdRPzR.js").then((m) => m.DocumentCapture),
|
|
302
90
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((m) => m.Consent),
|
|
303
|
-
MANDATORY_CONSENT: () => import("./mandatoryConsent-
|
|
304
|
-
ML_CONSENT: () => import("./mandatoryConsent-
|
|
91
|
+
MANDATORY_CONSENT: () => import("./mandatoryConsent-BtqB-FxY.js").then((m) => m.MandatoryConsent),
|
|
92
|
+
ML_CONSENT: () => import("./mandatoryConsent-BtqB-FxY.js").then((m) => m.MandatoryConsent),
|
|
305
93
|
SIGNATURE: () => import("./signature/signature.es.js").then((m) => m.Signature),
|
|
306
|
-
ID_OCR: () => import("./idOcr-
|
|
307
|
-
CPF_OCR: () => import("./cpfOcr-B79245-3.js").then((m) => m.CpfOcr),
|
|
94
|
+
ID_OCR: () => import("./idOcr-gsIXHq6R.js").then((m) => m.IdOcr),
|
|
308
95
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
|
|
309
|
-
CUSTOM_FIELDS: () => import("./customFields-
|
|
96
|
+
CUSTOM_FIELDS: () => import("./customFields-B8HQZ7Mh.js").then((m) => m.CustomFields),
|
|
310
97
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
|
|
311
|
-
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-
|
|
312
|
-
INCODE_WATCHLIST: () => import("./customWatchlist-
|
|
98
|
+
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-D8Is99bZ.js").then((m) => m.WatchlistForBusiness),
|
|
99
|
+
INCODE_WATCHLIST: () => import("./customWatchlist-_tUmZ855.js").then((m) => m.CustomWatchlist),
|
|
313
100
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
|
|
314
101
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
|
|
315
102
|
CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((m) => m.CrossDocumentDataMatch),
|
|
316
|
-
DYNAMIC_FORMS: () => import("./dynamicForms-
|
|
103
|
+
DYNAMIC_FORMS: () => import("./dynamicForms-P-4E42IA.js").then((m) => m.DynamicForms),
|
|
317
104
|
CERTIFICATE_ISSUANCE: () => import("./certificate-issuance/certificate-issuance.es.js").then((m) => m.CertificateIssuance),
|
|
318
|
-
FIELD_COMPARISON: () => import("./fieldComparison-
|
|
105
|
+
FIELD_COMPARISON: () => import("./fieldComparison-B_r9Bal7.js").then((m) => m.FieldComparison),
|
|
319
106
|
FISCAL_QR: () => import("./fiscal-qr/fiscal-qr.es.js").then((m) => m.FiscalQr),
|
|
320
107
|
VIDEO_ONBOARDING: () => import("./video-selfie/video-selfie.es.js").then((m) => m.VideoSelfie)
|
|
321
108
|
};
|
|
@@ -349,7 +136,7 @@ function preloadRedirectToMobile() {
|
|
|
349
136
|
}
|
|
350
137
|
function createFlowManager(options = {}) {
|
|
351
138
|
const scopedLazyModules = {};
|
|
352
|
-
const isDesktop = options.isDesktop ??
|
|
139
|
+
const isDesktop = options.isDesktop ?? isDesktopOrEmulated$1();
|
|
353
140
|
const { enableHome, ...flowFetchOptions } = options;
|
|
354
141
|
let endScreen = {
|
|
355
142
|
endScreenTitle: null,
|
|
@@ -383,7 +170,9 @@ function createFlowManager(options = {}) {
|
|
|
383
170
|
} });
|
|
384
171
|
}
|
|
385
172
|
async function setupSDK(options) {
|
|
386
|
-
|
|
173
|
+
const sessionOptions = { token: options.token };
|
|
174
|
+
if (options.preloadFlow !== void 0) sessionOptions.preloadFlow = options.preloadFlow;
|
|
175
|
+
await initializeSession(sessionOptions);
|
|
387
176
|
if (hasI18nInstance()) return;
|
|
388
177
|
setI18nInstance(createI18n(options.lang ? { lang: options.lang } : void 0));
|
|
389
178
|
}
|
|
@@ -395,18 +184,18 @@ async function initializeFlowManager(options) {
|
|
|
395
184
|
});
|
|
396
185
|
flowManager.load();
|
|
397
186
|
}
|
|
398
|
-
async function fetchTheme() {
|
|
187
|
+
async function fetchTheme(token) {
|
|
399
188
|
try {
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
subtitle: theme.subtitle,
|
|
404
|
-
hideFooterBranding: theme.hideFooterBranding
|
|
405
|
-
};
|
|
406
|
-
setUiConfig(uiConfig);
|
|
189
|
+
const activeToken = token ?? getStandaloneSetupPolicy().token;
|
|
190
|
+
if (!activeToken) return {};
|
|
191
|
+
const theme = await preloadDashboardTheme(activeToken);
|
|
407
192
|
return {
|
|
408
193
|
theme,
|
|
409
|
-
uiConfig
|
|
194
|
+
uiConfig: {
|
|
195
|
+
logoSrc: theme.logo,
|
|
196
|
+
subtitle: theme.subtitle,
|
|
197
|
+
hideFooterBranding: theme.hideFooterBranding
|
|
198
|
+
}
|
|
410
199
|
};
|
|
411
200
|
} catch {
|
|
412
201
|
return {};
|
|
@@ -673,4 +462,4 @@ function usePrefetchNextModule(steps, currentStepIndex, modules, currentModuleLo
|
|
|
673
462
|
]);
|
|
674
463
|
}
|
|
675
464
|
//#endregion
|
|
676
|
-
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,
|
|
465
|
+
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 };
|
|
@@ -952,4 +952,4 @@ var preact_markup_module_default = function(t) {
|
|
|
952
952
|
}, i;
|
|
953
953
|
}(x$2);
|
|
954
954
|
//#endregion
|
|
955
|
-
export { y as _, D as a, Q$1 as b, z as c, T$1 as d, _ as f, x$1 as g, q$1 as h, C as i, A$1 as l, g$1 as m, c as n, P as o, d$1 as p, $ as r, gn as s, preact_markup_module_default as t, F$1 as u, u$2 as v,
|
|
955
|
+
export { k$2 as S, y as _, D as a, Q$1 as b, z as c, T$1 as d, _ as f, x$1 as g, q$1 as h, C as i, A$1 as l, g$1 as m, c as n, P as o, d$1 as p, $ as r, gn as s, preact_markup_module_default as t, F$1 as u, u$2 as v, _$1 as x, K$1 as y };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
9
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-B5ASPUL4.js";
|
|
2
|
+
import { S as k, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
+
import { o as Page } from "./incodeComponent-K9ZWg302.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-CDlQd12V.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-CLZ2fz4u.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
7
|
+
import { v as WarningIcon } from "./icons--ezYG2Fb.js";
|
|
8
|
+
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
9
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-gLba2mgp.js";
|
|
10
10
|
//#region src/shared/verificationResult/verificationResult.tsx
|
|
11
|
-
var
|
|
11
|
+
var SUBTITLE_ID = "IncodeVerificationResultSubtitle";
|
|
12
|
+
var VerificationResult = ({ status, submittingTitle, successTitle, failureTitle, warningTitle, submittingSubtitle, errorMessage, onRetry, onSkip, retryLabel, skipLabel, hideFooterBranding = true, footerBrandingSlot }) => {
|
|
12
13
|
const { t } = useTranslation();
|
|
13
14
|
const hasActions = Boolean(onRetry || onSkip);
|
|
14
15
|
const buildResultContent = () => {
|
|
@@ -21,7 +22,7 @@ var VerificationResult = ({ status, submittingTitle, successTitle, failureTitle,
|
|
|
21
22
|
};
|
|
22
23
|
const iconByStatus = {
|
|
23
24
|
success: /* @__PURE__ */ u(SuccessIcon, { size: 64 }),
|
|
24
|
-
warning: /* @__PURE__ */ u(WarningIcon, { size:
|
|
25
|
+
warning: /* @__PURE__ */ u(WarningIcon, { size: 64 }),
|
|
25
26
|
failure: /* @__PURE__ */ u(ErrorIcon, { size: 64 })
|
|
26
27
|
};
|
|
27
28
|
const titleByStatus = {
|
|
@@ -30,10 +31,20 @@ var VerificationResult = ({ status, submittingTitle, successTitle, failureTitle,
|
|
|
30
31
|
failure: failureTitle ?? t("verification.failureTitle")
|
|
31
32
|
};
|
|
32
33
|
return {
|
|
33
|
-
mainContent: /* @__PURE__ */ u(k, { children: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
mainContent: /* @__PURE__ */ u(k, { children: [
|
|
35
|
+
iconByStatus[status],
|
|
36
|
+
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
37
|
+
/* @__PURE__ */ u(AutoFocusTitle, {
|
|
38
|
+
className: "IncodeVerificationResult__title",
|
|
39
|
+
describedById: errorMessage ? SUBTITLE_ID : void 0,
|
|
40
|
+
children: titleByStatus[status]
|
|
41
|
+
}),
|
|
42
|
+
errorMessage ? /* @__PURE__ */ u("p", {
|
|
43
|
+
id: SUBTITLE_ID,
|
|
44
|
+
className: "IncodeVerificationResult__subtitle",
|
|
45
|
+
children: errorMessage
|
|
46
|
+
}) : null
|
|
47
|
+
] }),
|
|
37
48
|
showActions: status === "warning" || status === "failure"
|
|
38
49
|
};
|
|
39
50
|
};
|