@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da
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/AsYouType-D1H_js4X.js +2607 -0
- package/dist/Trans-aTzdT_SA.js +55 -0
- package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
- package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
- package/dist/antifraud/antifraud.es.js +18 -17
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +50 -28
- package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
- package/dist/back-tutorial-An9AcMSe.js +29 -0
- package/dist/back-vertical-hint-CNieqiCr.js +5 -0
- package/dist/backdevicelottie-B4NgyWmX.js +29 -0
- package/dist/base.css +67 -327
- package/dist/blurdevicelottie-_BZRug1c.js +29 -0
- package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/cameraView-C2X7klNb.js +55 -0
- package/dist/captureOverlay-tCb4R4WE.js +592 -0
- package/dist/checkbox-B5X-mfqq.js +137 -0
- package/dist/chevronDown-DSHaPKbi.js +23 -0
- package/dist/closeIcon-9Hc97omv.js +28 -0
- package/dist/consent/consent.es.js +89 -82
- package/dist/consent/styles.css +1 -1
- package/dist/countries-DfLkrF0x.js +616 -0
- package/dist/curp-validation/curp-validation.es.js +313 -271
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-C7PCzh-U.js +173 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-C0mO-RGE.js +692 -0
- package/dist/dropdownComposed-BpinYlrx.js +367 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-Dr6LJUg-.js +357 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-C3mswduI.js +291 -0
- package/dist/email/email.es.js +154 -110
- package/dist/email/styles.css +1 -1
- package/dist/errorContent-Cb8nmQAE.js +44 -0
- package/dist/errorIcon-DEARBrGx.js +26 -0
- package/dist/extensibility.es.js +150 -22
- package/dist/face-match/styles.css +73 -147
- package/dist/faceMatch-DbDp7D3d.js +237 -0
- package/dist/fileIcon-CCSvS10T.js +52 -0
- package/dist/flip-animation-COR596wy.js +29 -0
- package/dist/flipAnimation-BqV462TA.js +2059 -0
- package/dist/flow/flow.es.js +2613 -2273
- package/dist/flow/styles.css +73 -432
- package/dist/formField-CP6wDdfA.js +106 -0
- package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
- package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
- package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
- package/dist/geolocation/geolocation.es.js +832 -852
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-DLuIStvb.js +29 -0
- package/dist/governmentValidation/governmentValidation.es.js +106 -100
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/id/id.es.js +59 -53
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BBV3r3rz.js +29 -0
- package/dist/id-laser-v-BTHJaSfx.js +29 -0
- package/dist/id-tutorial-B-F5Q28m.js +29 -0
- package/dist/incodeModule-C4XIllao.js +96 -0
- package/dist/index.es.js +25 -4
- package/dist/inputComposed-fUbAGrDy.js +103 -0
- package/dist/instance-BWYzq8dk.js +2163 -0
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
- package/dist/numberedStep-DwUB__mh.js +5 -0
- package/dist/otpInput-BFXhqFRT.js +156 -0
- package/dist/page-SrUl0qtN.js +69 -0
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
- package/dist/passport-tutorial-CaYBFTqt.js +29 -0
- package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
- package/dist/permissions-DT4Fz9MR.js +709 -0
- package/dist/phone/phone.es.js +121 -87
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-CGr8TxOO.js +158 -0
- package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
- package/dist/processing-szVOCQwZ.js +19 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-cspvNz2a.js +1807 -0
- package/dist/selfie/selfie.es.js +50 -29
- package/dist/selfie/styles.css +66 -170
- package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
- package/dist/signature/signature.es.js +707 -557
- package/dist/signature/styles.css +1 -1
- package/dist/spinner-DygONskw.js +60 -0
- package/dist/successIcon-Bjsdc4lF.js +26 -0
- package/dist/tutorial-Cdz1025D.js +473 -0
- package/dist/types/ekyb/styles.d.ts +1 -0
- package/dist/types/ekyc/styles.d.ts +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/typography-BDACYR5i.js +14 -0
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/useMediaQuery-lJdQBmC2.js +18 -0
- package/dist/vendor-preact-BoMmvSgn.js +694 -0
- package/dist/warningIcon-DQq_MrOB.js +26 -0
- package/package.json +11 -8
- package/dist/AsYouType-DPWqJvFu.js +0 -2482
- package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
- package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
- package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
- package/dist/back-tutorial-BNTyW-1N.js +0 -14584
- package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
- package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
- package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
- package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
- package/dist/button-DhL5eRT3.js +0 -123
- package/dist/checkbox-l8NxPf4o.js +0 -85
- package/dist/countries-y2ydYDhN.js +0 -8323
- package/dist/dateInputComposed-B9WqdYx9.js +0 -2
- package/dist/dateInputComposed-ndsGHX1M.js +0 -94
- package/dist/defineProperty-brqHEHA_.js +0 -39
- package/dist/documentCapture-wDgRLdon.js +0 -784
- package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekybModule-BBOm1y49.js +0 -2
- package/dist/ekybModule-fz6i9ZRt.js +0 -286
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekycModule-SeTFG3AJ.js +0 -233
- package/dist/ekycModule-hxIcNX8n.js +0 -2
- package/dist/extensibility-DJihqIzM.js +0 -2248
- package/dist/faceMatch-DH8sLx34.js +0 -191
- package/dist/flip-animation-DOJzdXB-.js +0 -6983
- package/dist/formField-BRTbY8w9.js +0 -100
- package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
- package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
- package/dist/frontdevicelottie-DadDp6be.js +0 -17302
- package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
- package/dist/i18n-DZOHbK9q.js +0 -1916
- package/dist/icons-BHbofCgJ.js +0 -245
- package/dist/id-laser-h-BWyU3VgL.js +0 -467
- package/dist/id-laser-v-JiWXUlv0.js +0 -467
- package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
- package/dist/incodeModule-Bf6yJ8RB.js +0 -18
- package/dist/inputComposed-BhbfD8Ru.js +0 -77
- package/dist/loadingIcon-CeQt7Zgb.js +0 -146
- package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
- package/dist/numberedStep-CQVRixRP.js +0 -11
- package/dist/otpInput-CDIG9el7.js +0 -143
- package/dist/page-SvlJWUfz.js +0 -61
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
- package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
- package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
- package/dist/phoneInput-C9T_8FJt.js +0 -138
- package/dist/phoneInputComposed-B-0zieIW.js +0 -407
- package/dist/processing-B5zhNH6I.js +0 -15
- package/dist/richText-Db0PfpkE.js +0 -1973
- package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
- package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
- package/dist/setup-Dq2bzNKH.js +0 -15
- package/dist/spacer-DCljE53A.js +0 -59
- package/dist/spinner-Bk0YuoLu.js +0 -1
- package/dist/spinner-snIGzmm8.js +0 -41
- package/dist/successIcon-AHrfmJvv.js +0 -17
- package/dist/tutorial-DNOd11tg.js +0 -2780
- package/dist/types/ekyb.d.ts +0 -29
- package/dist/types/ekyc.d.ts +0 -29
- package/dist/typography-BNbFNFek.js +0 -1
- package/dist/typography-DvHeVWfY.js +0 -29
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/warningIcon-Cvj-ayg1.js +0 -17
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { u as e, c as a } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { D as R, d as S } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { E as j } from "./errorIcon-DEARBrGx.js";
|
|
4
|
+
const q = ({ size: c = 28 }) => /* @__PURE__ */ e(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
width: c,
|
|
8
|
+
height: c,
|
|
9
|
+
viewBox: "0 0 28 28",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
"aria-hidden": "true",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ e("title", { children: "checkmark" }),
|
|
15
|
+
/* @__PURE__ */ e(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
"fill-rule": "evenodd",
|
|
19
|
+
"clip-rule": "evenodd",
|
|
20
|
+
d: "M19.3321 10.2929C19.7226 10.6834 19.7226 11.3166 19.3321 11.7071L13.3321 17.7071C12.9416 18.0976 12.3084 18.0976 11.9179 17.7071L9.29289 15.0821C8.90237 14.6916 8.90237 14.0584 9.29289 13.6679C9.68342 13.2774 10.3166 13.2774 10.7071 13.6679L12.625 15.5858L17.9179 10.2929C18.3084 9.90237 18.9416 9.90237 19.3321 10.2929Z",
|
|
21
|
+
fill: "var(--checkbox-icon-default)"
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
), z = R(
|
|
27
|
+
({
|
|
28
|
+
id: c,
|
|
29
|
+
label: l,
|
|
30
|
+
size: t = "m",
|
|
31
|
+
checked: i,
|
|
32
|
+
defaultChecked: h,
|
|
33
|
+
disabled: b = !1,
|
|
34
|
+
required: n = !1,
|
|
35
|
+
name: u,
|
|
36
|
+
value: f,
|
|
37
|
+
onChange: m,
|
|
38
|
+
error: o,
|
|
39
|
+
helper: d,
|
|
40
|
+
showErrorIcon: g = !0,
|
|
41
|
+
class: x,
|
|
42
|
+
"aria-label": w,
|
|
43
|
+
"aria-labelledby": C,
|
|
44
|
+
"aria-describedby": T,
|
|
45
|
+
"aria-invalid": y,
|
|
46
|
+
...D
|
|
47
|
+
}, L) => {
|
|
48
|
+
const [E, M] = S(!!h), r = i !== void 0, k = r ? !!i : E, s = !!b, V = !!n, $ = typeof x == "string" ? x : void 0, W = (v) => {
|
|
49
|
+
r || M(v.target.checked), m?.(v);
|
|
50
|
+
}, p = d ? `${c}-helper` : void 0, I = o ? `${c}-error` : void 0, B = [T, I, p].filter(Boolean).join(" ") || void 0;
|
|
51
|
+
return /* @__PURE__ */ e("div", { class: a("IncodeCheckbox", $), children: [
|
|
52
|
+
/* @__PURE__ */ e(
|
|
53
|
+
"label",
|
|
54
|
+
{
|
|
55
|
+
class: a("IncodeCheckboxLabel", {
|
|
56
|
+
IncodeCheckboxLabelDisabled: s
|
|
57
|
+
}),
|
|
58
|
+
htmlFor: c,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ e("div", { class: "relative inline-flex", children: [
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
"input",
|
|
63
|
+
{
|
|
64
|
+
ref: L,
|
|
65
|
+
type: "checkbox",
|
|
66
|
+
class: "IncodeCheckboxInput",
|
|
67
|
+
id: c,
|
|
68
|
+
name: u,
|
|
69
|
+
value: f,
|
|
70
|
+
...r ? { checked: i } : { defaultChecked: h },
|
|
71
|
+
disabled: b,
|
|
72
|
+
required: n,
|
|
73
|
+
onChange: W,
|
|
74
|
+
"aria-label": w,
|
|
75
|
+
"aria-labelledby": C,
|
|
76
|
+
"aria-describedby": B,
|
|
77
|
+
"aria-invalid": y || !!o,
|
|
78
|
+
"aria-required": V,
|
|
79
|
+
...D
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ e(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
class: a("IncodeCheckboxVisual", {
|
|
86
|
+
IncodeCheckboxVisualChecked: k,
|
|
87
|
+
IncodeCheckboxVisualDisabled: s,
|
|
88
|
+
IncodeCheckboxVisualError: !!o
|
|
89
|
+
}),
|
|
90
|
+
children: k && /* @__PURE__ */ e(q, { size: 28 })
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] }),
|
|
94
|
+
l && /* @__PURE__ */ e(
|
|
95
|
+
"span",
|
|
96
|
+
{
|
|
97
|
+
class: a("IncodeCheckboxText", {
|
|
98
|
+
IncodeCheckboxTextS: t === "s",
|
|
99
|
+
IncodeCheckboxTextM: t === "m",
|
|
100
|
+
IncodeCheckboxTextDisabled: s
|
|
101
|
+
}),
|
|
102
|
+
"aria-hidden": C ? "true" : void 0,
|
|
103
|
+
children: [
|
|
104
|
+
l,
|
|
105
|
+
n && /* @__PURE__ */ e("span", { class: "IncodeCheckboxRequired", "aria-hidden": "true", children: "*" })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
o && /* @__PURE__ */ e(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
class: "IncodeCheckboxMessageWrapper",
|
|
116
|
+
"data-testid": `${c}-error-wrapper`,
|
|
117
|
+
children: [
|
|
118
|
+
g && /* @__PURE__ */ e("div", { class: "IncodeCheckboxIconWrapper", children: /* @__PURE__ */ e(j, { size: 17 }) }),
|
|
119
|
+
/* @__PURE__ */ e("p", { id: I, class: "IncodeCheckboxErrorText", children: o })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
d && !o && /* @__PURE__ */ e(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
class: "IncodeCheckboxMessageWrapper",
|
|
127
|
+
"data-testid": `${c}-helper-wrapper`,
|
|
128
|
+
children: /* @__PURE__ */ e("p", { id: p, class: "IncodeCheckboxHelperText", children: d })
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
] });
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
export {
|
|
135
|
+
z as C,
|
|
136
|
+
q as a
|
|
137
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { u as o } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
const e = ({ class: r }) => /* @__PURE__ */ o(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: "24",
|
|
6
|
+
height: "24",
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
class: r,
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
children: /* @__PURE__ */ o(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M4.76734 9.18066C4.39163 8.77605 4.41468 8.14342 4.8191 7.76758C5.22371 7.39187 5.85635 7.41491 6.23219 7.81934L11.9998 14.0312L17.7673 7.81934L17.8406 7.74805C18.2212 7.41355 18.8011 7.41532 19.1804 7.76758C19.5849 8.14341 19.6079 8.77605 19.2322 9.18066L12.7322 16.1807C12.543 16.3842 12.2777 16.5 11.9998 16.5C11.7218 16.5 11.4565 16.3842 11.2673 16.1807L4.76734 9.18066Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
e as C
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { u as o } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
const C = ({
|
|
3
|
+
width: n = 14,
|
|
4
|
+
height: e = 14,
|
|
5
|
+
class: l,
|
|
6
|
+
fillColor: r = "var(--icon-neutral-800)"
|
|
7
|
+
}) => /* @__PURE__ */ o(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
width: n,
|
|
11
|
+
height: e,
|
|
12
|
+
viewBox: "0 0 32 32",
|
|
13
|
+
fill: "none",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
class: `IncodeCloseIcon ${l || ""}`,
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
children: /* @__PURE__ */ o(
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
20
|
+
d: "M24.0578 6.05722C24.5785 5.53676 25.422 5.53667 25.9426 6.05722C26.4633 6.57792 26.4633 7.42226 25.9426 7.94296L17.885 15.9996L25.9426 24.0572C26.4633 24.5779 26.4633 25.4223 25.9426 25.943C25.422 26.4633 24.5785 26.4632 24.0578 25.943L16.0002 17.8853L7.94259 25.943C7.422 26.4633 6.57847 26.4632 6.05782 25.943C5.53712 25.4223 5.53712 24.5779 6.05782 24.0572L14.1145 15.9996L6.05782 7.94296C5.53712 7.42226 5.53712 6.57792 6.05782 6.05722C6.57851 5.53677 7.42196 5.53667 7.94259 6.05722L16.0002 14.1148L24.0578 6.05722Z",
|
|
21
|
+
fill: r
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
C
|
|
28
|
+
};
|
|
@@ -1,82 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
1
|
+
import { u as e, I as u, b as C, a as h } from "../loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { createConsentManager as g } from "@incodetech/core/consent";
|
|
3
|
+
import "../instance-BWYzq8dk.js";
|
|
4
|
+
import "../vendor-preact-BoMmvSgn.js";
|
|
5
|
+
import "@incodetech/core";
|
|
6
|
+
import { C as p } from "../checkbox-B5X-mfqq.js";
|
|
7
|
+
import { P as d } from "../page-SrUl0qtN.js";
|
|
8
|
+
import { S as f } from "../spinner-DygONskw.js";
|
|
9
|
+
import { R as l } from "../richText-cspvNz2a.js";
|
|
10
|
+
import { r as I } from "../incodeModule-C4XIllao.js";
|
|
11
|
+
import { B as b } from "../button-CE9kRlem.js";
|
|
12
|
+
const T = ({
|
|
13
|
+
config: o,
|
|
14
|
+
manager: s,
|
|
15
|
+
onFinish: r,
|
|
16
|
+
onError: i
|
|
17
|
+
}) => {
|
|
18
|
+
const { t: m } = C(), [n, a] = h(
|
|
19
|
+
() => {
|
|
20
|
+
if (s) return s;
|
|
21
|
+
if (!o)
|
|
22
|
+
throw new Error("Consent config is required");
|
|
23
|
+
return g({ config: o });
|
|
24
|
+
},
|
|
25
|
+
{ manageLifecycle: !s }
|
|
26
|
+
);
|
|
27
|
+
return n.status === "finished" ? (r?.(), null) : n.status === "error" ? (i?.(n.error), null) : n.status === "idle" || n.status === "loading" ? /* @__PURE__ */ e(d, { className: "IncodeConsentPage", children: /* @__PURE__ */ e("div", { class: "IncodeConsentCentered", children: /* @__PURE__ */ e(f, {}) }) }) : /* @__PURE__ */ e(d, { className: "IncodeConsentPage", hideFooterBranding: !0, hideHeader: !0, children: /* @__PURE__ */ e("div", { class: "IncodeConsentContent", children: [
|
|
28
|
+
/* @__PURE__ */ e("div", { class: "IncodeConsentBody", children: [
|
|
29
|
+
/* @__PURE__ */ e("h1", { class: "IncodeConsentTitle", children: n.title }),
|
|
30
|
+
/* @__PURE__ */ e(l, { content: n.richText, class: "IncodeRichText" }),
|
|
31
|
+
/* @__PURE__ */ e("div", { class: "IncodeConsentCheckboxList", children: n.checkboxes.map((t) => /* @__PURE__ */ e(
|
|
32
|
+
p,
|
|
33
|
+
{
|
|
34
|
+
id: `consent-checkbox-${t.id}`,
|
|
35
|
+
class: "IncodeConsentCheckbox",
|
|
36
|
+
size: "s",
|
|
37
|
+
checked: t.checked,
|
|
38
|
+
required: t.required,
|
|
39
|
+
onChange: () => a.toggleCheckbox(t.id),
|
|
40
|
+
label: /* @__PURE__ */ e(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
class: "IncodeConsentCheckboxLabel",
|
|
44
|
+
onClick: (c) => {
|
|
45
|
+
c.target.closest("a") && c.stopPropagation();
|
|
46
|
+
},
|
|
47
|
+
children: /* @__PURE__ */ e(
|
|
48
|
+
l,
|
|
49
|
+
{
|
|
50
|
+
content: t.label,
|
|
51
|
+
class: "IncodeRichText",
|
|
52
|
+
disallowedTags: ["img"]
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
},
|
|
58
|
+
t.id
|
|
59
|
+
)) })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
b,
|
|
63
|
+
{
|
|
64
|
+
"data-testid": "consent-submit",
|
|
65
|
+
onClick: () => a.submit(),
|
|
66
|
+
disabled: !n.canSubmit,
|
|
67
|
+
isLoading: n.status === "submitting",
|
|
68
|
+
children: m("biometricConsent.button.continue")
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }) });
|
|
72
|
+
}, k = ({
|
|
73
|
+
config: o,
|
|
74
|
+
manager: s,
|
|
75
|
+
onFinish: r,
|
|
76
|
+
onError: i
|
|
77
|
+
}) => /* @__PURE__ */ e(u, { children: o ? /* @__PURE__ */ e(
|
|
78
|
+
T,
|
|
79
|
+
{
|
|
80
|
+
config: o,
|
|
81
|
+
manager: s,
|
|
82
|
+
onFinish: r,
|
|
83
|
+
onError: i
|
|
84
|
+
}
|
|
85
|
+
) : null });
|
|
86
|
+
I(k, "incode-consent");
|
|
87
|
+
export {
|
|
88
|
+
k as Consent
|
|
89
|
+
};
|
package/dist/consent/styles.css
CHANGED