@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.
Files changed (162) hide show
  1. package/dist/AsYouType-D1H_js4X.js +2607 -0
  2. package/dist/Trans-aTzdT_SA.js +55 -0
  3. package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
  4. package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
  5. package/dist/antifraud/antifraud.es.js +18 -17
  6. package/dist/antifraud/styles.css +1 -1
  7. package/dist/authentication/authentication.es.js +50 -28
  8. package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
  9. package/dist/back-tutorial-An9AcMSe.js +29 -0
  10. package/dist/back-vertical-hint-CNieqiCr.js +5 -0
  11. package/dist/backdevicelottie-B4NgyWmX.js +29 -0
  12. package/dist/base.css +67 -327
  13. package/dist/blurdevicelottie-_BZRug1c.js +29 -0
  14. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  15. package/dist/button-CE9kRlem.js +184 -0
  16. package/dist/cameraView-C2X7klNb.js +55 -0
  17. package/dist/captureOverlay-tCb4R4WE.js +592 -0
  18. package/dist/checkbox-B5X-mfqq.js +137 -0
  19. package/dist/chevronDown-DSHaPKbi.js +23 -0
  20. package/dist/closeIcon-9Hc97omv.js +28 -0
  21. package/dist/consent/consent.es.js +89 -82
  22. package/dist/consent/styles.css +1 -1
  23. package/dist/countries-DfLkrF0x.js +616 -0
  24. package/dist/curp-validation/curp-validation.es.js +313 -271
  25. package/dist/curp-validation/styles.css +1 -1
  26. package/dist/dateInputComposed-C7PCzh-U.js +173 -0
  27. package/dist/document-capture/styles.css +1 -1
  28. package/dist/documentCapture-C0mO-RGE.js +692 -0
  29. package/dist/dropdownComposed-BpinYlrx.js +367 -0
  30. package/dist/ekyb/styles.css +1 -1
  31. package/dist/ekybModule-Dr6LJUg-.js +357 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-C3mswduI.js +291 -0
  34. package/dist/email/email.es.js +154 -110
  35. package/dist/email/styles.css +1 -1
  36. package/dist/errorContent-Cb8nmQAE.js +44 -0
  37. package/dist/errorIcon-DEARBrGx.js +26 -0
  38. package/dist/extensibility.es.js +150 -22
  39. package/dist/face-match/styles.css +73 -147
  40. package/dist/faceMatch-DbDp7D3d.js +237 -0
  41. package/dist/fileIcon-CCSvS10T.js +52 -0
  42. package/dist/flip-animation-COR596wy.js +29 -0
  43. package/dist/flipAnimation-BqV462TA.js +2059 -0
  44. package/dist/flow/flow.es.js +2613 -2273
  45. package/dist/flow/styles.css +73 -432
  46. package/dist/formField-CP6wDdfA.js +106 -0
  47. package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
  48. package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
  49. package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
  50. package/dist/geolocation/geolocation.es.js +832 -852
  51. package/dist/geolocation/styles.css +1 -1
  52. package/dist/glaredevicelottie-DLuIStvb.js +29 -0
  53. package/dist/governmentValidation/governmentValidation.es.js +106 -100
  54. package/dist/governmentValidation/styles.css +1 -1
  55. package/dist/id/id.es.js +59 -53
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BBV3r3rz.js +29 -0
  58. package/dist/id-laser-v-BTHJaSfx.js +29 -0
  59. package/dist/id-tutorial-B-F5Q28m.js +29 -0
  60. package/dist/incodeModule-C4XIllao.js +96 -0
  61. package/dist/index.es.js +25 -4
  62. package/dist/inputComposed-fUbAGrDy.js +103 -0
  63. package/dist/instance-BWYzq8dk.js +2163 -0
  64. package/dist/loadingIcon-DmuPXh70.js +195 -0
  65. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  66. package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
  67. package/dist/numberedStep-DwUB__mh.js +5 -0
  68. package/dist/otpInput-BFXhqFRT.js +156 -0
  69. package/dist/page-SrUl0qtN.js +69 -0
  70. package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
  71. package/dist/passport-tutorial-CaYBFTqt.js +29 -0
  72. package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
  73. package/dist/permissions-DT4Fz9MR.js +709 -0
  74. package/dist/phone/phone.es.js +121 -87
  75. package/dist/phone/styles.css +1 -1
  76. package/dist/phoneInput-CGr8TxOO.js +158 -0
  77. package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
  78. package/dist/processing-szVOCQwZ.js +19 -0
  79. package/dist/redirect-to-mobile/styles.css +1 -1
  80. package/dist/richText-cspvNz2a.js +1807 -0
  81. package/dist/selfie/selfie.es.js +50 -29
  82. package/dist/selfie/styles.css +66 -170
  83. package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
  84. package/dist/signature/signature.es.js +707 -557
  85. package/dist/signature/styles.css +1 -1
  86. package/dist/spinner-DygONskw.js +60 -0
  87. package/dist/successIcon-Bjsdc4lF.js +26 -0
  88. package/dist/tutorial-Cdz1025D.js +473 -0
  89. package/dist/types/ekyb/styles.d.ts +1 -0
  90. package/dist/types/ekyc/styles.d.ts +1 -0
  91. package/dist/types/index.d.ts +8 -0
  92. package/dist/typography-BDACYR5i.js +14 -0
  93. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  94. package/dist/useMediaQuery-lJdQBmC2.js +18 -0
  95. package/dist/vendor-preact-BoMmvSgn.js +694 -0
  96. package/dist/warningIcon-DQq_MrOB.js +26 -0
  97. package/package.json +11 -8
  98. package/dist/AsYouType-DPWqJvFu.js +0 -2482
  99. package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
  100. package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
  101. package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
  102. package/dist/back-tutorial-BNTyW-1N.js +0 -14584
  103. package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
  104. package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
  105. package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
  106. package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
  107. package/dist/button-DhL5eRT3.js +0 -123
  108. package/dist/checkbox-l8NxPf4o.js +0 -85
  109. package/dist/countries-y2ydYDhN.js +0 -8323
  110. package/dist/dateInputComposed-B9WqdYx9.js +0 -2
  111. package/dist/dateInputComposed-ndsGHX1M.js +0 -94
  112. package/dist/defineProperty-brqHEHA_.js +0 -39
  113. package/dist/documentCapture-wDgRLdon.js +0 -784
  114. package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
  115. package/dist/ekyb/ekyb.es.js +0 -2
  116. package/dist/ekybModule-BBOm1y49.js +0 -2
  117. package/dist/ekybModule-fz6i9ZRt.js +0 -286
  118. package/dist/ekyc/ekyc.es.js +0 -2
  119. package/dist/ekycModule-SeTFG3AJ.js +0 -233
  120. package/dist/ekycModule-hxIcNX8n.js +0 -2
  121. package/dist/extensibility-DJihqIzM.js +0 -2248
  122. package/dist/faceMatch-DH8sLx34.js +0 -191
  123. package/dist/flip-animation-DOJzdXB-.js +0 -6983
  124. package/dist/formField-BRTbY8w9.js +0 -100
  125. package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
  126. package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
  127. package/dist/frontdevicelottie-DadDp6be.js +0 -17302
  128. package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
  129. package/dist/i18n-DZOHbK9q.js +0 -1916
  130. package/dist/icons-BHbofCgJ.js +0 -245
  131. package/dist/id-laser-h-BWyU3VgL.js +0 -467
  132. package/dist/id-laser-v-JiWXUlv0.js +0 -467
  133. package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
  134. package/dist/incodeModule-Bf6yJ8RB.js +0 -18
  135. package/dist/inputComposed-BhbfD8Ru.js +0 -77
  136. package/dist/loadingIcon-CeQt7Zgb.js +0 -146
  137. package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
  138. package/dist/numberedStep-CQVRixRP.js +0 -11
  139. package/dist/otpInput-CDIG9el7.js +0 -143
  140. package/dist/page-SvlJWUfz.js +0 -61
  141. package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
  142. package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
  143. package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
  144. package/dist/phoneInput-C9T_8FJt.js +0 -138
  145. package/dist/phoneInputComposed-B-0zieIW.js +0 -407
  146. package/dist/processing-B5zhNH6I.js +0 -15
  147. package/dist/richText-Db0PfpkE.js +0 -1973
  148. package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
  149. package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
  150. package/dist/setup-Dq2bzNKH.js +0 -15
  151. package/dist/spacer-DCljE53A.js +0 -59
  152. package/dist/spinner-Bk0YuoLu.js +0 -1
  153. package/dist/spinner-snIGzmm8.js +0 -41
  154. package/dist/successIcon-AHrfmJvv.js +0 -17
  155. package/dist/tutorial-DNOd11tg.js +0 -2780
  156. package/dist/types/ekyb.d.ts +0 -29
  157. package/dist/types/ekyc.d.ts +0 -29
  158. package/dist/typography-BNbFNFek.js +0 -1
  159. package/dist/typography-DvHeVWfY.js +0 -29
  160. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  161. package/dist/vendor-preact-D6SntenC.js +0 -958
  162. 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 { n as e } from "../i18n-DZOHbK9q.js";
2
- import { v as t } from "../vendor-preact-D6SntenC.js";
3
- import { c as n, r } from "../loadingIcon-CeQt7Zgb.js";
4
- import { t as i } from "../button-DhL5eRT3.js";
5
- import { t as a } from "../page-SvlJWUfz.js";
6
- import { t as o } from "../spinner-snIGzmm8.js";
7
- import "../spinner-Bk0YuoLu.js";
8
- import { t as s } from "../checkbox-l8NxPf4o.js";
9
- import { t as c } from "../incodeModule-Bf6yJ8RB.js";
10
- import { t as l } from "../richText-Db0PfpkE.js";
11
- import { createConsentManager as u } from "@incodetech/core/consent";
12
- //#region src/modules/consent/consent.tsx
13
- var d = ({ config: r, manager: c, onFinish: d, onError: f }) => {
14
- let { t: p } = e(), [m, h] = n(() => {
15
- if (c) return c;
16
- if (!r) throw Error("Consent config is required");
17
- return u({ config: r });
18
- }, { manageLifecycle: !c });
19
- return m.status === "finished" ? (d?.(), null) : m.status === "error" ? (f?.(m.error), null) : m.status === "idle" || m.status === "loading" ? /* @__PURE__ */ t(a, {
20
- className: "IncodeConsentPage",
21
- children: /* @__PURE__ */ t("div", {
22
- class: "IncodeConsentCentered",
23
- children: /* @__PURE__ */ t(o, {})
24
- })
25
- }) : /* @__PURE__ */ t(a, {
26
- className: "IncodeConsentPage",
27
- hideFooterBranding: !0,
28
- hideHeader: !0,
29
- children: /* @__PURE__ */ t("div", {
30
- class: "IncodeConsentContent",
31
- children: [/* @__PURE__ */ t("div", {
32
- class: "IncodeConsentBody",
33
- children: [
34
- /* @__PURE__ */ t("h1", {
35
- class: "IncodeConsentTitle",
36
- children: m.title
37
- }),
38
- /* @__PURE__ */ t(l, {
39
- content: m.richText,
40
- class: "IncodeRichText"
41
- }),
42
- /* @__PURE__ */ t("div", {
43
- class: "IncodeConsentCheckboxList",
44
- children: m.checkboxes.map((e) => /* @__PURE__ */ t(s, {
45
- id: `consent-checkbox-${e.id}`,
46
- class: "IncodeConsentCheckbox",
47
- size: "s",
48
- checked: e.checked,
49
- required: e.required,
50
- onChange: () => h.toggleCheckbox(e.id),
51
- label: /* @__PURE__ */ t("span", {
52
- class: "IncodeConsentCheckboxLabel",
53
- onClick: (e) => {
54
- e.target.closest("a") && e.stopPropagation();
55
- },
56
- children: /* @__PURE__ */ t(l, {
57
- content: e.label,
58
- class: "IncodeRichText",
59
- disallowedTags: ["img"]
60
- })
61
- })
62
- }, e.id))
63
- })
64
- ]
65
- }), /* @__PURE__ */ t(i, {
66
- "data-testid": "consent-submit",
67
- onClick: () => h.submit(),
68
- disabled: !m.canSubmit,
69
- isLoading: m.status === "submitting",
70
- children: p("biometricConsent.button.continue")
71
- })]
72
- })
73
- });
74
- }, f = ({ config: e, manager: n, onFinish: i, onError: a }) => /* @__PURE__ */ t(r, { children: e ? /* @__PURE__ */ t(d, {
75
- config: e,
76
- manager: n,
77
- onFinish: i,
78
- onError: a
79
- }) : null });
80
- c(f, "incode-consent");
81
- //#endregion
82
- export { f as Consent };
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
+ };
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
2
  .IncodeConsentPage {
3
3
  height: 100%;
4
4
  }