@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.
- package/dist/ae-signature/ae-signature.es.js +5 -3
- package/dist/antifraud/antifraud.es.js +6 -5
- package/dist/authentication/authentication.es.js +7 -6
- package/dist/{autoFocusTitle-IN4TR7QN.js → autoFocusTitle-DIuy3fAL.js} +1 -1
- package/dist/{bottomSheet-DIxxFBUN.js → bottomSheet-DLa3gA9I.js} +1 -1
- package/dist/{captureNotification-DatgEL_T.js → captureNotification-CYNo5vI6.js} +8 -8
- package/dist/certificate-issuance/certificate-issuance.es.js +13 -13
- package/dist/{checkbox-BZ3Vuawq.js → checkbox-CWH3awlJ.js} +3 -3
- package/dist/{connectionError-BILGlQvh.js → connectionError-CkMyPEEa.js} +3 -3
- package/dist/consent/consent.es.js +10 -11
- package/dist/{countrySelector-DSCcBRMz.js → countrySelector-7r0JHTbz.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/{cpfOcr-DCIXCw5X.js → cpfOcr-C7oATNXA.js} +9 -10
- package/dist/cpfOcr-O8X5O6z1.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +6 -5
- package/dist/curp-validation/curp-validation.es.js +17 -19
- package/dist/{customFields-CFRWCs3I.js → customFields-BgFMUeIp.js} +13 -13
- package/dist/{customWatchlist-CAGzLeIU.js → customWatchlist-DMz7aerw.js} +9 -8
- package/dist/dashboardTheme-C6I2WQPK.js +223 -0
- package/dist/dateInputComposed-6wvZi6m1.js +1 -0
- package/dist/{dateInputComposed-Dy8s_pst.js → dateInputComposed-BBgQB4tl.js} +4 -4
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Cdksl5DR.js → documentCapture-BC6DBpAG.js} +19 -19
- package/dist/documentCapture-diUvht9m.js +2 -0
- package/dist/{dropdownComposed-BHoaSeXB.js → dropdownComposed-C0IZ1uRF.js} +4 -4
- package/dist/dropdownComposed-DBnwuqE4.js +1 -0
- package/dist/{dynamicForms-CujcVUvG.js → dynamicForms-skhwHeCx.js} +14 -14
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-CtJT7I0D.js → ekybModule-bGDvjIj7.js} +17 -17
- package/dist/ekybModule-bUgBSy9a.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-D-ZKad8r.js +2 -0
- package/dist/{ekycModule-Clgu1ydz.js → ekycModule-DVVAasG2.js} +15 -15
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-C-eiNR8V.js → electronic-signature-Dy0hN6lu.js} +11 -12
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BIXyslAC.js → emailInput-CGDc3flM.js} +3 -3
- package/dist/{expiredId-DE_SO8Iy.js → expiredId-CDxPLhiW.js} +5 -5
- package/dist/{extensibility-Dv0Z50OE.js → extensibility-DMroM1OU.js} +37 -42
- package/dist/extensibility.es.js +24 -28
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DxRtNWtc.js +2 -0
- package/dist/{faceMatch-DVkAPLup.js → faceMatch-si9UUQ3_.js} +10 -11
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-BbgIcdF5.js → fieldComparison-CR15MASU.js} +11 -11
- package/dist/fieldComparison-MLm7cnmM.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +12 -11
- package/dist/flow/flow.es.js +10 -13
- package/dist/geolocation/geolocation.es.js +11 -11
- package/dist/government-validation/government-validation.es.js +11 -11
- package/dist/{homeScreen-CqhuW7le.js → homeScreen-0T3uPq2I.js} +6 -8
- package/dist/{page-DidH_RkX.js → hooks-Bl4BccV8.js} +374 -5
- package/dist/{icons-w6luRFtW.js → icons-CqDMnQ1g.js} +2 -2
- package/dist/id/id.es.js +22 -25
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Y8dKRIN4.js → idOcr-C9Cj1ino.js} +13 -13
- package/dist/identity-reuse/identity-reuse.es.js +6 -7
- package/dist/{incode-logo-57XFniXU.js → incode-logo-DasIBJw8.js} +64 -1
- package/dist/{incodeComponent-BCd_bJev.js → incodeComponent-DHbfYA-r.js} +2 -2
- package/dist/{incodeModule-Bgg06vwW.js → incodeModule-BiwGYtcv.js} +1 -1
- package/dist/index.es.js +14 -5
- package/dist/{inputComposed-DzyxybSu.js → inputComposed-C1Z4OxHI.js} +4 -4
- package/dist/inputComposed-DL1YD59E.js +1 -0
- package/dist/{mandatoryConsent-DnoDgtOT.js → mandatoryConsent-DEGcSJhx.js} +9 -10
- package/dist/{modal-C-Q9km3s.js → modal-BgjeiOv5.js} +3 -3
- package/dist/{optionAccessibleLabel-RW68xECf.js → optionAccessibleLabel-DAvz9vdG.js} +5 -5
- package/dist/{otpInput-H_Y9R8B8.js → otpInput-DLnLXnJo.js} +5 -5
- package/dist/{pdf-BAb2ezmC.js → pdf-BYHLDKvG.js} +1 -1
- package/dist/{pdfViewer-XeOSCt-S.js → pdfViewer-BVnrfnFA.js} +3 -3
- package/dist/{permissions-J6qPq98P.js → permissions-Bcn-2yHb.js} +9 -11
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-DaBNd-wY.js → phoneInputComposed-CJavLkBe.js} +5 -5
- package/dist/{processing-BN2Mgw0p.js → processing-DBuq4_4J.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +5 -3
- package/dist/{radioGroupComposed-D2qsp3Vx.js → radioGroupComposed-YO_U82bM.js} +5 -5
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +15 -17
- package/dist/{richText-D-G1XXAw.js → richText-Bbp3TPzi.js} +1 -1
- package/dist/selfie/selfie.es.js +9 -9
- package/dist/signature/signature.es.js +11 -11
- package/dist/{snackbar-BsV5S3Z7.js → snackbar-CSODaFW4.js} +1 -1
- package/dist/{loadingIcon-B0ysgiNq.js → spacer-I8ILMQiA.js} +68 -68
- package/dist/{spinner-BMeIEK1d.js → spinner-YXqSOUqg.js} +45 -4
- package/dist/{statusPage-DPNU-L3H.js → statusPage-DUejG583.js} +3 -3
- package/dist/{tabs-CYtIZmR0.js → tabs-CG7W9rbn.js} +1 -1
- package/dist/{tutorial-CTCp3mrv.js → tutorial-hXqxb0q5.js} +10 -12
- package/dist/types/ae-signature.d.ts +6 -3
- package/dist/types/antifraud.d.ts +6 -3
- package/dist/types/authentication.d.ts +6 -3
- package/dist/types/certificate-issuance.d.ts +6 -3
- package/dist/types/consent.d.ts +6 -3
- package/dist/types/cpf-ocr.d.ts +56 -5
- package/dist/types/cross-document-data-match.d.ts +6 -3
- package/dist/types/curp-validation.d.ts +6 -3
- package/dist/types/document-capture.d.ts +6 -3
- package/dist/types/ekyb.d.ts +6 -3
- package/dist/types/ekyc.d.ts +6 -3
- package/dist/types/electronic-signature.d.ts +2 -2
- package/dist/types/email.d.ts +6 -26
- package/dist/types/extensibility.d.ts +2 -2
- package/dist/types/face-match.d.ts +6 -25
- package/dist/types/field-comparison.d.ts +6 -3
- package/dist/types/fiscal-qr.d.ts +9 -5
- package/dist/types/flow.d.ts +2 -2
- package/dist/types/geolocation.d.ts +6 -3
- package/dist/types/government-validation.d.ts +6 -3
- package/dist/types/id-verification.d.ts +2 -2
- package/dist/types/id.d.ts +6 -3
- package/dist/types/identity-reuse.d.ts +2 -2
- package/dist/types/index.d.ts +23 -1
- package/dist/types/phone.d.ts +6 -27
- package/dist/types/qe-signature.d.ts +6 -3
- package/dist/types/redirect-to-mobile.d.ts +4 -1
- package/dist/types/selfie.d.ts +6 -3
- package/dist/types/signature.d.ts +6 -3
- package/dist/types/video-selfie.d.ts +6 -9
- package/dist/types/watchlist.d.ts +6 -3
- package/dist/types/workflow.d.ts +2 -2
- package/dist/{i18n-CushpmmJ.js → uiConfig-DSGyRMSC.js} +26 -3
- package/dist/{useModuleLoader-BTo4NZuV.js → useModuleLoader-V8kW4raN.js} +32 -180
- package/dist/{verificationResult-xubIOKNi.js → verificationResult-4X7V8KzA.js} +8 -9
- package/dist/video-selfie/video-selfie.es.js +16 -19
- package/dist/watchlist/watchlist.es.js +9 -8
- package/dist/{watchlistForBusiness-BWaVfgeV.js → watchlistForBusiness-DWg7G4IB.js} +12 -12
- package/dist/workflow/workflow.es.js +17 -14
- package/package.json +2 -2
- package/dist/button-Dz6AsbmF.js +0 -40
- package/dist/cpfOcr-BToIikZC.js +0 -2
- package/dist/dateInputComposed-DDtUFSrC.js +0 -1
- package/dist/documentCapture-CgBRyZHX.js +0 -2
- package/dist/dropdownComposed-4RQ6KcIz.js +0 -1
- package/dist/ekybModule-CIhe-NjG.js +0 -2
- package/dist/ekycModule-CYdRFXyJ.js +0 -2
- package/dist/errorIcon-BA4T6iy-.js +0 -26
- package/dist/faceMatch-BnDfDC5l.js +0 -2
- package/dist/fieldComparison-DeH3dh5a.js +0 -2
- package/dist/hooks-CxG4XS7P.js +0 -175
- package/dist/inputComposed-CrmMDnMp.js +0 -1
- package/dist/spinner-BCDCoi9C.js +0 -1
- package/dist/terminalErrorPage-DwH-JDg0.js +0 -71
- package/dist/transitionSpinner-B7mmwUrc.js +0 -30
- package/dist/typography-BZIpjo97.js +0 -45
- package/dist/uiConfig-D2_wawvr.js +0 -25
- /package/dist/{aligndevicelottie-C9Mrj6AB.js → aligndevicelottie-t8IVRvKe.js} +0 -0
- /package/dist/{back-horizontal-hint-B-EHEYFx.js → back-horizontal-hint-Dk3Qx2Jy.js} +0 -0
- /package/dist/{back-tutorial-Bkm8BMI-.js → back-tutorial-Sa9INxfJ.js} +0 -0
- /package/dist/{back-vertical-hint-Yo_1LFB2.js → back-vertical-hint-BSXiELAo.js} +0 -0
- /package/dist/{backdevicelottie-FrU5aQgi.js → backdevicelottie--JZVcmsk.js} +0 -0
- /package/dist/{blurdevicelottie-jfRWrBAA.js → blurdevicelottie-D8d1O-r6.js} +0 -0
- /package/dist/{browser-ponyfill-vwGrGxYJ.js → browser-ponyfill-R_VWu0FU.js} +0 -0
- /package/dist/{defineProperty-BZW5EcGC.js → defineProperty-BsIK7Gws.js} +0 -0
- /package/dist/{flip-animation-RSWxSh3p.js → flip-animation-CulASaCy.js} +0 -0
- /package/dist/{front-horizontal-hint-BxmjB6HQ.js → front-horizontal-hint-GlNgmYkY.js} +0 -0
- /package/dist/{front-vertical-hint-BS4R8Ge4.js → front-vertical-hint-Bn2FOrKQ.js} +0 -0
- /package/dist/{frontdevicelottie-CvMs7jnY.js → frontdevicelottie-DGU1DFsb.js} +0 -0
- /package/dist/{glaredevicelottie-B_g3-Xay.js → glaredevicelottie-Dqjzhp2v.js} +0 -0
- /package/dist/{id-laser-h-DS31CxU-.js → id-laser-h-BXX4SvZX.js} +0 -0
- /package/dist/{id-laser-v-Cb982xnA.js → id-laser-v-BXUywa3r.js} +0 -0
- /package/dist/{id-tutorial-D2hF8yoN.js → id-tutorial-Dss1CIkf.js} +0 -0
- /package/dist/{lottie_light-B0mE6Bs2.js → lottie_light-XgO-x03h.js} +0 -0
- /package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BbFC-AOq.js} +0 -0
- /package/dist/{numberedStep-BOfeDZfJ.js → numberedStep-DtIEG6uM.js} +0 -0
- /package/dist/{passport-horizontal-hint-B0YSV7zH.js → passport-horizontal-hint-C0gW3Rvi.js} +0 -0
- /package/dist/{passport-tutorial-DvynHyve.js → passport-tutorial-B6e9nM9w.js} +0 -0
- /package/dist/{passport-vertical-hint-g5QGlFT5.js → passport-vertical-hint-lrBhacG3.js} +0 -0
- /package/dist/{registerIncodeElement-ClG0mgIF.js → registerIncodeElement-C9y6CNCw.js} +0 -0
- /package/dist/{requiredLabelHint-DmD8ZCH-.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
- /package/dist/{selfieTutorial-eySh67am.js → selfieTutorial-DfjgQ9w5.js} +0 -0
- /package/dist/{successIcon-B5mGvdx1.js → successIcon-BshEyvXA.js} +0 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { t as setUiConfig } from "./uiConfig-DSGyRMSC.js";
|
|
2
|
+
import { api } from "@incodetech/core/http";
|
|
3
|
+
//#region src/shared/dashboard/dashboardPolicy.ts
|
|
4
|
+
var standaloneSetupPolicy = Object.freeze({
|
|
5
|
+
flow: Object.freeze({
|
|
6
|
+
enabled: true,
|
|
7
|
+
preload: false,
|
|
8
|
+
mergeConfig: false
|
|
9
|
+
}),
|
|
10
|
+
theme: Object.freeze({
|
|
11
|
+
enabled: true,
|
|
12
|
+
preload: false
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
function resolveStandaloneSetupPolicy(flow, theme, token) {
|
|
16
|
+
const flowEnabled = flow !== false;
|
|
17
|
+
const themeEnabled = theme !== false;
|
|
18
|
+
const flowOptions = typeof flow === "object" ? flow : {};
|
|
19
|
+
const themeOptions = typeof theme === "object" ? theme : {};
|
|
20
|
+
return Object.freeze({
|
|
21
|
+
flow: Object.freeze({
|
|
22
|
+
enabled: flowEnabled,
|
|
23
|
+
preload: flowEnabled && flowOptions.preload === true,
|
|
24
|
+
mergeConfig: flowEnabled && flowOptions.mergeConfig === true
|
|
25
|
+
}),
|
|
26
|
+
theme: Object.freeze({
|
|
27
|
+
enabled: themeEnabled,
|
|
28
|
+
preload: themeEnabled && themeOptions.preload === true
|
|
29
|
+
}),
|
|
30
|
+
token
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function setStandaloneSetupPolicy(policy) {
|
|
34
|
+
standaloneSetupPolicy = policy;
|
|
35
|
+
}
|
|
36
|
+
function getStandaloneSetupPolicy() {
|
|
37
|
+
return standaloneSetupPolicy;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/styles/generatePalette.ts
|
|
41
|
+
function hexToHsl(hex) {
|
|
42
|
+
let normalizedHex = hex.replace("#", "");
|
|
43
|
+
if (normalizedHex.length === 3) normalizedHex = normalizedHex.split("").map((char) => char + char).join("");
|
|
44
|
+
const result = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(normalizedHex);
|
|
45
|
+
if (!result) return null;
|
|
46
|
+
const r = Number.parseInt(result[1], 16) / 255;
|
|
47
|
+
const g = Number.parseInt(result[2], 16) / 255;
|
|
48
|
+
const b = Number.parseInt(result[3], 16) / 255;
|
|
49
|
+
const max = Math.max(r, g, b);
|
|
50
|
+
const min = Math.min(r, g, b);
|
|
51
|
+
let h = 0;
|
|
52
|
+
let s = 0;
|
|
53
|
+
const l = (max + min) / 2;
|
|
54
|
+
if (max !== min) {
|
|
55
|
+
const d = max - min;
|
|
56
|
+
s = l > .5 ? d / (2 - max - min) : d / (max + min);
|
|
57
|
+
switch (max) {
|
|
58
|
+
case r:
|
|
59
|
+
h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
|
|
60
|
+
break;
|
|
61
|
+
case g:
|
|
62
|
+
h = ((b - r) / d + 2) / 6;
|
|
63
|
+
break;
|
|
64
|
+
case b:
|
|
65
|
+
h = ((r - g) / d + 4) / 6;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
h: h * 360,
|
|
71
|
+
s: s * 100,
|
|
72
|
+
l: l * 100
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function hslToHex(h, s, l) {
|
|
76
|
+
const hNorm = h / 360;
|
|
77
|
+
const sNorm = s / 100;
|
|
78
|
+
const lNorm = l / 100;
|
|
79
|
+
let r;
|
|
80
|
+
let g;
|
|
81
|
+
let b;
|
|
82
|
+
if (sNorm === 0) r = g = b = lNorm;
|
|
83
|
+
else {
|
|
84
|
+
const hue2rgb = (p, q, t) => {
|
|
85
|
+
if (t < 0) t += 1;
|
|
86
|
+
if (t > 1) t -= 1;
|
|
87
|
+
if (t < 1 / 6) return p + (q - p) * 6 * t;
|
|
88
|
+
if (t < 1 / 2) return q;
|
|
89
|
+
if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
|
|
90
|
+
return p;
|
|
91
|
+
};
|
|
92
|
+
const q = lNorm < .5 ? lNorm * (1 + sNorm) : lNorm + sNorm - lNorm * sNorm;
|
|
93
|
+
const p = 2 * lNorm - q;
|
|
94
|
+
r = hue2rgb(p, q, hNorm + 1 / 3);
|
|
95
|
+
g = hue2rgb(p, q, hNorm);
|
|
96
|
+
b = hue2rgb(p, q, hNorm - 1 / 3);
|
|
97
|
+
}
|
|
98
|
+
const toHex = (n) => {
|
|
99
|
+
const hex = Math.round(n * 255).toString(16);
|
|
100
|
+
return hex.length === 1 ? `0${hex}` : hex;
|
|
101
|
+
};
|
|
102
|
+
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
103
|
+
}
|
|
104
|
+
function generateBrandPalette(mainColor) {
|
|
105
|
+
const hsl = hexToHsl(mainColor);
|
|
106
|
+
if (!hsl) throw new Error(`Invalid color format: ${mainColor}`);
|
|
107
|
+
return {
|
|
108
|
+
"50": hslToHex(hsl.h, hsl.s, 95),
|
|
109
|
+
"200": hslToHex(hsl.h, hsl.s, 80),
|
|
110
|
+
"300": hslToHex(hsl.h, hsl.s, 65),
|
|
111
|
+
"400": hslToHex(hsl.h, hsl.s, Math.min(100, hsl.l + 10)),
|
|
112
|
+
"500": mainColor,
|
|
113
|
+
"600": hslToHex(hsl.h, hsl.s, Math.max(0, hsl.l - 10)),
|
|
114
|
+
"900": hslToHex(hsl.h, hsl.s, 20)
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/styles/applyTheme.ts
|
|
119
|
+
function applyTheme(mainColor, buttonColor) {
|
|
120
|
+
if (typeof document === "undefined") return;
|
|
121
|
+
const palette = generateBrandPalette(mainColor);
|
|
122
|
+
let styleElement = document.getElementById("incode-theme");
|
|
123
|
+
if (!styleElement) {
|
|
124
|
+
styleElement = document.createElement("style");
|
|
125
|
+
styleElement.id = "incode-theme";
|
|
126
|
+
document.head.appendChild(styleElement);
|
|
127
|
+
}
|
|
128
|
+
const buttonTextColor = buttonColor || "#ffffff";
|
|
129
|
+
const css = `
|
|
130
|
+
:root,
|
|
131
|
+
:host {
|
|
132
|
+
--primitive-color-brand-50: ${palette["50"]};
|
|
133
|
+
--primitive-color-brand-200: ${palette["200"]};
|
|
134
|
+
--primitive-color-brand-300: ${palette["300"]};
|
|
135
|
+
--primitive-color-brand-400: ${palette["400"]};
|
|
136
|
+
--primitive-color-brand-500: ${palette["500"]};
|
|
137
|
+
--primitive-color-brand-600: ${palette["600"]};
|
|
138
|
+
--primitive-color-brand-900: ${palette["900"]};
|
|
139
|
+
--button-primary-text-default: ${buttonTextColor};
|
|
140
|
+
}
|
|
141
|
+
`;
|
|
142
|
+
styleElement.textContent = css;
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/styles/fetchTheme.ts
|
|
146
|
+
async function fetchAssets() {
|
|
147
|
+
return (await api.get("/omni/asset/fetch-all")).data;
|
|
148
|
+
}
|
|
149
|
+
var dataUrlCache = /* @__PURE__ */ new Map();
|
|
150
|
+
async function urlToDataUrl(url) {
|
|
151
|
+
if (url.startsWith("data:")) return url;
|
|
152
|
+
const cached = dataUrlCache.get(url);
|
|
153
|
+
if (cached) return cached;
|
|
154
|
+
const blob = await (await fetch(url)).blob();
|
|
155
|
+
const dataUrl = await new Promise((resolve, reject) => {
|
|
156
|
+
const reader = new FileReader();
|
|
157
|
+
reader.onloadend = () => resolve(reader.result);
|
|
158
|
+
reader.onerror = reject;
|
|
159
|
+
reader.readAsDataURL(blob);
|
|
160
|
+
});
|
|
161
|
+
dataUrlCache.set(url, dataUrl);
|
|
162
|
+
return dataUrl;
|
|
163
|
+
}
|
|
164
|
+
async function fetchTheme() {
|
|
165
|
+
const assets = await fetchAssets();
|
|
166
|
+
if (!assets.theme) throw new Error("Theme URL not found in assets response");
|
|
167
|
+
const themeUrl = assets.theme;
|
|
168
|
+
const isAbsoluteUrl = themeUrl.startsWith("http://") || themeUrl.startsWith("https://");
|
|
169
|
+
let theme;
|
|
170
|
+
if (isAbsoluteUrl) {
|
|
171
|
+
const themeResponse = await fetch(themeUrl);
|
|
172
|
+
if (!themeResponse.ok) throw new Error(`Failed to fetch theme: ${themeResponse.statusText}`);
|
|
173
|
+
theme = await themeResponse.json();
|
|
174
|
+
} else theme = (await api.get(themeUrl)).data;
|
|
175
|
+
const logoUrl = assets["logo.png"] || assets["logo.svg"] || assets["logo.jpg"] || assets["logo.jpeg"] || assets["logo.webp"] || theme.logo;
|
|
176
|
+
let cachedLogoUrl = logoUrl;
|
|
177
|
+
if (logoUrl) cachedLogoUrl = await urlToDataUrl(logoUrl);
|
|
178
|
+
return {
|
|
179
|
+
...theme,
|
|
180
|
+
logo: cachedLogoUrl
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
async function fetchAndApplyTheme() {
|
|
184
|
+
const theme = await fetchTheme();
|
|
185
|
+
if (theme.main) applyTheme(theme.main, theme.buttonColor);
|
|
186
|
+
return theme;
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/shared/dashboard/dashboardTheme.ts
|
|
190
|
+
var dashboardThemeCache;
|
|
191
|
+
function preloadDashboardTheme(token) {
|
|
192
|
+
if (dashboardThemeCache?.token === token) return dashboardThemeCache.promise;
|
|
193
|
+
const request = fetchTheme();
|
|
194
|
+
const cache = {
|
|
195
|
+
token,
|
|
196
|
+
promise: request
|
|
197
|
+
};
|
|
198
|
+
const promise = request.then((theme) => {
|
|
199
|
+
if (dashboardThemeCache !== cache) return theme;
|
|
200
|
+
if (theme.main) applyTheme(theme.main, theme.buttonColor);
|
|
201
|
+
setUiConfig({
|
|
202
|
+
logoSrc: theme.logo,
|
|
203
|
+
subtitle: theme.subtitle,
|
|
204
|
+
hideFooterBranding: theme.hideFooterBranding
|
|
205
|
+
});
|
|
206
|
+
return theme;
|
|
207
|
+
}).catch((error) => {
|
|
208
|
+
if (dashboardThemeCache === cache) dashboardThemeCache = void 0;
|
|
209
|
+
throw error;
|
|
210
|
+
});
|
|
211
|
+
cache.promise = promise;
|
|
212
|
+
dashboardThemeCache = cache;
|
|
213
|
+
return promise;
|
|
214
|
+
}
|
|
215
|
+
function getDashboardTheme(token) {
|
|
216
|
+
if (dashboardThemeCache?.token !== token) return;
|
|
217
|
+
return dashboardThemeCache.promise;
|
|
218
|
+
}
|
|
219
|
+
function resetDashboardThemeCache() {
|
|
220
|
+
dashboardThemeCache = void 0;
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
export { getStandaloneSetupPolicy as a, fetchAndApplyTheme as i, preloadDashboardTheme as n, resolveStandaloneSetupPolicy as o, resetDashboardThemeCache as r, setStandaloneSetupPolicy as s, getDashboardTheme as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dateInputComposed-BBgQB4tl.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as D, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as CalendarIcon } from "./icons-
|
|
4
|
-
import { t as InputComposed } from "./inputComposed-
|
|
5
|
-
import "./inputComposed-
|
|
2
|
+
import { r as cn } from "./spacer-I8ILMQiA.js";
|
|
3
|
+
import { _ as CalendarIcon } from "./icons-CqDMnQ1g.js";
|
|
4
|
+
import { t as InputComposed } from "./inputComposed-C1Z4OxHI.js";
|
|
5
|
+
import "./inputComposed-DL1YD59E.js";
|
|
6
6
|
//#region src/shared/dateInputComposed/dateInputComposed.tsx
|
|
7
7
|
var DateInputComposed = D(({ id, label, disabled, class: className, onInput, onBlur, ...restProps }, ref) => {
|
|
8
8
|
const tryShowPicker = (input) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DocumentCapture } from "../documentCapture-
|
|
1
|
+
import { t as DocumentCapture } from "../documentCapture-BC6DBpAG.js";
|
|
2
2
|
export { DocumentCapture };
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { c as z, h as q, l as A, m as g, o as P, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-Bgg06vwW.js";
|
|
3
|
+
import { d as useIsMobileDeviceWidth, g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { r as cn, t as Spacer } from "./spacer-I8ILMQiA.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-YXqSOUqg.js";
|
|
6
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
7
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
8
|
+
import { d as CameraOverlay, l as CaptureFooter, u as CameraOverlayHeader, v as ProgressBar } from "./extensibility-DMroM1OU.js";
|
|
9
|
+
import { a as FileIcon, g as CameraIcon, r as LockIcon } from "./icons-CqDMnQ1g.js";
|
|
10
|
+
import { t as SuccessIcon } from "./successIcon-BshEyvXA.js";
|
|
11
|
+
import { t as Modal } from "./modal-BgjeiOv5.js";
|
|
12
|
+
import { i as ErrorContent } from "./tutorial-hXqxb0q5.js";
|
|
13
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-DIuy3fAL.js";
|
|
14
|
+
import { t as BottomSheet } from "./bottomSheet-DLa3gA9I.js";
|
|
15
|
+
import { a as CameraFrame, i as CameraView } from "./captureNotification-CYNo5vI6.js";
|
|
16
|
+
import { t as Permissions } from "./permissions-Bcn-2yHb.js";
|
|
17
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
19
18
|
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
|
|
20
19
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
21
20
|
function captureFrameFromVideo(video) {
|
|
@@ -334,7 +333,7 @@ var UploadingHeader = ({ progress, isFilePdf }) => {
|
|
|
334
333
|
};
|
|
335
334
|
//#endregion
|
|
336
335
|
//#region src/modules/document-capture/documentReview.tsx
|
|
337
|
-
var PdfViewer = z(() => import("./pdfViewer-
|
|
336
|
+
var PdfViewer = z(() => import("./pdfViewer-BVnrfnFA.js").then((n) => n.n).then((m) => ({ default: m.PdfViewer })));
|
|
338
337
|
var DocumentReview = ({ state, manager }) => {
|
|
339
338
|
const { t } = useTranslation();
|
|
340
339
|
if (state.status === "failure") {
|
|
@@ -944,7 +943,7 @@ var DocumentCaptureContent = ({ config, manager: externalManager, onFinish, onEr
|
|
|
944
943
|
});
|
|
945
944
|
return null;
|
|
946
945
|
};
|
|
947
|
-
var
|
|
946
|
+
var DocumentCaptureWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
948
947
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(DocumentCaptureContent, {
|
|
949
948
|
config,
|
|
950
949
|
manager,
|
|
@@ -952,6 +951,7 @@ var DocumentCapture = ({ config, manager, onFinish, onError }) => {
|
|
|
952
951
|
onError
|
|
953
952
|
}) : null });
|
|
954
953
|
};
|
|
954
|
+
var DocumentCapture = withStandaloneModuleBootstrap(DocumentCaptureWithLocalConfig, "DOCUMENT_CAPTURE", { supportsExternalManager: true });
|
|
955
955
|
registerIncodeModuleElement(DocumentCapture, "incode-document-capture");
|
|
956
956
|
//#endregion
|
|
957
957
|
export { DocumentCapture as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as y, l as A, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { f as ChevronDown, l as CloseIcon, n as SearchIcon, p as CheckmarkCompactIcon } from "./icons-
|
|
5
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
2
|
+
import { r as cn } from "./spacer-I8ILMQiA.js";
|
|
3
|
+
import { n as ErrorIcon } from "./incode-logo-DasIBJw8.js";
|
|
4
|
+
import { f as ChevronDown, l as CloseIcon, n as SearchIcon, p as CheckmarkCompactIcon } from "./icons-CqDMnQ1g.js";
|
|
5
|
+
import { t as SuccessIcon } from "./successIcon-BshEyvXA.js";
|
|
6
6
|
//#region src/shared/dropdownComposed/dropdownComposed.tsx
|
|
7
7
|
var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option", value, options, onChange, error, helper, showErrorIcon, showHelperIcon, suppressMessages = false, disabled = false, required, searchable = false, searchPlaceholder = "Search...", noResultsText = "No results found", name, tabIndex, onKeyDown, onBlur, renderSelectedLabel, siblingElement, class: className, "aria-label": ariaLabel, "data-testid": dataTestId }) => {
|
|
8
8
|
const [isOpen, setIsOpen] = d(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dropdownComposed-C0IZ1uRF.js";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { d as T, m as g, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as EmailInput } from "./emailInput-BIXyslAC.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
5
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
6
|
+
import { t as VerificationResult } from "./verificationResult-4X7V8KzA.js";
|
|
7
|
+
import { t as InputComposed } from "./inputComposed-C1Z4OxHI.js";
|
|
8
|
+
import { n as countries, t as PhoneInputComposed } from "./phoneInputComposed-CJavLkBe.js";
|
|
9
|
+
import { t as DropdownComposed } from "./dropdownComposed-C0IZ1uRF.js";
|
|
10
|
+
import { t as DateInputComposed } from "./dateInputComposed-BBgQB4tl.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
12
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-Dx0WS2cR.js";
|
|
13
|
+
import { t as EmailInput } from "./emailInput-CGDc3flM.js";
|
|
15
14
|
import { formatCPF, isValidCPF } from "@incodetech/core/cpf-ocr";
|
|
16
15
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
17
16
|
//#region src/modules/dynamic-forms/dynamicForms.tsx
|
|
@@ -350,13 +349,14 @@ var DynamicFormsContent = ({ config, manager: externalManager, onFinish }) => {
|
|
|
350
349
|
*
|
|
351
350
|
* @see {@link createDynamicFormsManager} for headless usage
|
|
352
351
|
*/
|
|
353
|
-
var
|
|
352
|
+
var DynamicFormsWithLocalConfig = ({ config, manager, onFinish }) => {
|
|
354
353
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(DynamicFormsContent, {
|
|
355
354
|
config,
|
|
356
355
|
manager,
|
|
357
356
|
onFinish
|
|
358
357
|
}) : null });
|
|
359
358
|
};
|
|
359
|
+
var DynamicForms = withStandaloneModuleBootstrap(DynamicFormsWithLocalConfig, "DYNAMIC_FORMS", { supportsExternalManager: true });
|
|
360
360
|
registerIncodeModuleElement(DynamicForms, "incode-dynamic-forms");
|
|
361
361
|
//#endregion
|
|
362
362
|
export { DynamicForms };
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-bGDvjIj7.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as
|
|
16
|
-
import {
|
|
17
|
-
import { t as CountrySelector$1 } from "./countrySelector-DSCcBRMz.js";
|
|
3
|
+
import { f as useFormScrollable, g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-I8ILMQiA.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-YXqSOUqg.js";
|
|
6
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
7
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
8
|
+
import "./extensibility-DMroM1OU.js";
|
|
9
|
+
import { t as VerificationResult } from "./verificationResult-4X7V8KzA.js";
|
|
10
|
+
import { t as InputComposed } from "./inputComposed-C1Z4OxHI.js";
|
|
11
|
+
import { i as translateError, r as FormField } from "./radioGroupComposed-YO_U82bM.js";
|
|
12
|
+
import { t as DropdownComposed } from "./dropdownComposed-C0IZ1uRF.js";
|
|
13
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
14
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-Dx0WS2cR.js";
|
|
15
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-DAvz9vdG.js";
|
|
16
|
+
import { t as CountrySelector$1 } from "./countrySelector-7r0JHTbz.js";
|
|
18
17
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
19
18
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
20
19
|
var CountrySelector = ({ value, onChange }) => {
|
|
@@ -292,13 +291,14 @@ var EkybForm = ({ state, manager }) => {
|
|
|
292
291
|
})]
|
|
293
292
|
});
|
|
294
293
|
};
|
|
295
|
-
var
|
|
294
|
+
var EkybModuleWithLocalConfig = ({ config, manager, onFinish }) => {
|
|
296
295
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(EkybContent, {
|
|
297
296
|
config,
|
|
298
297
|
manager,
|
|
299
298
|
onFinish
|
|
300
299
|
}) : null });
|
|
301
300
|
};
|
|
301
|
+
var EkybModule = withStandaloneModuleBootstrap(EkybModuleWithLocalConfig, "EKYB", { supportsExternalManager: true });
|
|
302
302
|
registerIncodeModuleElement(EkybModule, "incode-ekyb");
|
|
303
303
|
//#endregion
|
|
304
304
|
export { EkybModule as t };
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-DVVAasG2.js";
|
|
2
2
|
export { EkycModule };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-RW68xECf.js";
|
|
3
|
+
import { f as useFormScrollable, g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { t as Spinner } from "./spinner-YXqSOUqg.js";
|
|
5
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
6
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-4X7V8KzA.js";
|
|
8
|
+
import { i as translateError, r as FormField, t as RadioGroupComposed } from "./radioGroupComposed-YO_U82bM.js";
|
|
9
|
+
import { t as PhoneInputComposed } from "./phoneInputComposed-CJavLkBe.js";
|
|
10
|
+
import { t as DropdownComposed } from "./dropdownComposed-C0IZ1uRF.js";
|
|
11
|
+
import { t as DateInputComposed } from "./dateInputComposed-BBgQB4tl.js";
|
|
12
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
13
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-Dx0WS2cR.js";
|
|
14
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-DAvz9vdG.js";
|
|
16
15
|
import { createEkycManager } from "@incodetech/core/ekyc";
|
|
17
16
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
18
17
|
/**
|
|
@@ -272,13 +271,14 @@ var EkycForm = ({ state, manager }) => {
|
|
|
272
271
|
})]
|
|
273
272
|
});
|
|
274
273
|
};
|
|
275
|
-
var
|
|
274
|
+
var EkycModuleWithLocalConfig = ({ config, manager, onFinish }) => {
|
|
276
275
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(EkycContent, {
|
|
277
276
|
config,
|
|
278
277
|
manager,
|
|
279
278
|
onFinish
|
|
280
279
|
}) : null });
|
|
281
280
|
};
|
|
281
|
+
var EkycModule = withStandaloneModuleBootstrap(EkycModuleWithLocalConfig, "EXTERNAL_VERIFICATION", { supportsExternalManager: true });
|
|
282
282
|
registerIncodeModuleElement(EkycModule, "incode-ekyc");
|
|
283
283
|
//#endregion
|
|
284
284
|
export { EkycModule as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-
|
|
1
|
+
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-Dy0hN6lu.js";
|
|
2
2
|
export { AeSignature, ElectronicSignature };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation, r as Trans } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, h as q, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-Bgg06vwW.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
5
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
6
|
+
import { d as ChevronLeftIcon, r as LockIcon } from "./icons-CqDMnQ1g.js";
|
|
7
|
+
import { t as SuccessIcon } from "./successIcon-BshEyvXA.js";
|
|
8
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-DIuy3fAL.js";
|
|
9
|
+
import { t as VerificationResult } from "./verificationResult-4X7V8KzA.js";
|
|
10
|
+
import { t as Checkbox } from "./checkbox-CWH3awlJ.js";
|
|
11
|
+
import { t as PdfViewer } from "./pdfViewer-BVnrfnFA.js";
|
|
12
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
14
13
|
import { createElectronicSignatureManager } from "@incodetech/core/electronic-signature";
|
|
15
14
|
//#region src/modules/electronic-signature/documentIllustration.tsx
|
|
16
15
|
var DocumentIllustration = () => /* @__PURE__ */ u("svg", {
|
package/dist/email/email.es.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "../uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, p as d, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { r as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as EmailInput } from "../emailInput-BIXyslAC.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks, p as isTerminalModuleState, t as withStandaloneModuleBootstrap } from "../hooks-Bl4BccV8.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-I8ILMQiA.js";
|
|
5
|
+
import { r as Button } from "../incode-logo-DasIBJw8.js";
|
|
6
|
+
import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
|
|
7
|
+
import { t as OtpInput } from "../otpInput-DLnLXnJo.js";
|
|
8
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
|
|
9
|
+
import { t as EmailInput } from "../emailInput-CGDc3flM.js";
|
|
11
10
|
import { createEmailManager } from "@incodetech/core/email";
|
|
12
11
|
//#region src/modules/email/email.tsx
|
|
13
12
|
/**
|
|
@@ -207,7 +206,7 @@ var EmailContent = ({ config, manager: externalManager, onFinish, onError }) =>
|
|
|
207
206
|
*
|
|
208
207
|
* @see {@link createEmailManager} for headless usage
|
|
209
208
|
*/
|
|
210
|
-
var
|
|
209
|
+
var EmailWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
211
210
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(EmailContent, {
|
|
212
211
|
config,
|
|
213
212
|
manager,
|
|
@@ -215,6 +214,7 @@ var Email = ({ config, manager, onFinish, onError }) => {
|
|
|
215
214
|
onError
|
|
216
215
|
}) : null });
|
|
217
216
|
};
|
|
217
|
+
var Email = withStandaloneModuleBootstrap(EmailWithLocalConfig, "EMAIL", { supportsExternalManager: true });
|
|
218
218
|
registerIncodeModuleElement(Email, "incode-email");
|
|
219
219
|
//#endregion
|
|
220
220
|
export { Email };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import "./extensibility-
|
|
4
|
-
import { t as InputComposed } from "./inputComposed-
|
|
3
|
+
import "./extensibility-DMroM1OU.js";
|
|
4
|
+
import { t as InputComposed } from "./inputComposed-C1Z4OxHI.js";
|
|
5
5
|
//#region src/modules/email/emailInput.tsx
|
|
6
6
|
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
|
7
7
|
var EmailInput = ({ value, emailError, label, labelHint, disabled = false, required = false, id = "email-input", "data-testid": dataTestId, onEmailChange, onBlur }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { i as Page } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-I8ILMQiA.js";
|
|
5
|
+
import { n as Title } from "./spinner-YXqSOUqg.js";
|
|
6
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
7
7
|
//#region src/shared/icons/redStrikeIcon.tsx
|
|
8
8
|
var RedStrikeIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
|
|
9
9
|
class: className,
|