@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,195 @@
1
+ import { d as s, y as p, l as I, T as S, $ as h, A as g } from "./vendor-preact-BoMmvSgn.js";
2
+ import { isIPad as v } from "@incodetech/core";
3
+ import { g as m, u as C } from "./instance-BWYzq8dk.js";
4
+ function $(e, n = {}) {
5
+ const { autoLoad: c = !0, manageLifecycle: a = !0 } = n, [t] = s(e), [l, i] = s(
6
+ () => t.getState()
7
+ );
8
+ return p(() => {
9
+ const r = t.subscribe(i);
10
+ return a && c && t.load && t.load(), () => {
11
+ r(), a && t.stop?.();
12
+ };
13
+ }, [t, c, a]), [l, t];
14
+ }
15
+ var w = 0;
16
+ function o(e, n, c, a, t, l) {
17
+ n || (n = {});
18
+ var i, r, d = n;
19
+ if ("ref" in d) for (r in d = {}, n) r == "ref" ? i = n[r] : d[r] = n[r];
20
+ var u = { type: e, props: d, key: c, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --w, __i: -1, __u: 0, __source: t, __self: l };
21
+ if (typeof e == "function" && (i = e.defaultProps)) for (r in i) d[r] === void 0 && (d[r] = i[r]);
22
+ return I.vnode && I.vnode(u), u;
23
+ }
24
+ function z() {
25
+ const e = m(), [, n] = s(0), [c, a] = s(e.isInitialized);
26
+ return p(() => {
27
+ const l = () => {
28
+ n((r) => r + 1);
29
+ }, i = () => {
30
+ a(!0), n((r) => r + 1);
31
+ };
32
+ return e.on("languageChanged", l), e.on("initialized", i), e.on("loaded", l), () => {
33
+ e.off("languageChanged", l), e.off("initialized", i), e.off("loaded", l);
34
+ };
35
+ }, [e]), { t: S(
36
+ () => e.t.bind(e),
37
+ [e]
38
+ ), ready: c, i18n: e };
39
+ }
40
+ const _ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cg%20fill='%2320263D'%3e%3cpath%20d='M84.12%2027.54l-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158zm-5.524%208.617l-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%2001-2.22-5.351l8.925-8.925a3.138%203.138%200%20014.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%20013.136-3.113h.026a3.14%203.14%200%20013.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090h-.026zM38.115%200a3.135%203.135%200%20012.22%205.351l-8.925%208.925a3.125%203.125%200%2001-2.378.915%203.138%203.138%200%2001-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%2001-3.139%203.112h-.026a3.139%203.139%200%2001-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/g%3e%3c/svg%3e";
41
+ function L() {
42
+ const [e, n] = s(null), c = g(null);
43
+ return p(() => {
44
+ const a = document.createElement("div");
45
+ return a.setAttribute("data-incode-landscape-portal", ""), document.body.appendChild(a), c.current = a, n(a), () => {
46
+ a.remove(), c.current = null;
47
+ };
48
+ }, []), e;
49
+ }
50
+ function y() {
51
+ const { t: e } = z(), n = L();
52
+ return n ? h(
53
+ /* @__PURE__ */ o("div", { class: "IncodeLandscapeBlocker", children: [
54
+ /* @__PURE__ */ o(
55
+ "img",
56
+ {
57
+ class: "IncodeLandscapeBlocker-icon",
58
+ src: _,
59
+ alt: "",
60
+ "aria-hidden": !0
61
+ }
62
+ ),
63
+ /* @__PURE__ */ o("p", { class: "IncodeLandscapeBlocker-text", children: e("common.landscape") }),
64
+ /* @__PURE__ */ o("p", { class: "IncodeLandscapeBlocker-text", children: v() ? e("common.rotateIpad") : e("common.rotate") })
65
+ ] }),
66
+ n
67
+ ) : null;
68
+ }
69
+ function P({ children: e }) {
70
+ const { isLandscapeMobile: n } = C();
71
+ return /* @__PURE__ */ o("div", { class: "IncodeComponent", children: [
72
+ e,
73
+ n ? /* @__PURE__ */ o(y, {}) : null
74
+ ] });
75
+ }
76
+ const H = /* @__PURE__ */ new Set([
77
+ 0,
78
+ 2,
79
+ 4,
80
+ 8,
81
+ 12,
82
+ 16,
83
+ 20,
84
+ 24,
85
+ 32,
86
+ 40,
87
+ 48,
88
+ 64,
89
+ 80,
90
+ 96,
91
+ 104,
92
+ 120,
93
+ 200
94
+ ]), V = (e, n) => n === "horizontal" ? {
95
+ 0: "IncodeSpacerHorizontal0",
96
+ 2: "IncodeSpacerHorizontal2",
97
+ 4: "IncodeSpacerHorizontal4",
98
+ 8: "IncodeSpacerHorizontal8",
99
+ 12: "IncodeSpacerHorizontal12",
100
+ 16: "IncodeSpacerHorizontal16",
101
+ 20: "IncodeSpacerHorizontal20",
102
+ 24: "IncodeSpacerHorizontal24",
103
+ 32: "IncodeSpacerHorizontal32",
104
+ 40: "IncodeSpacerHorizontal40",
105
+ 48: "IncodeSpacerHorizontal48",
106
+ 64: "IncodeSpacerHorizontal64",
107
+ 80: "IncodeSpacerHorizontal80",
108
+ 96: "IncodeSpacerHorizontal96",
109
+ 104: "IncodeSpacerHorizontal104",
110
+ 120: "IncodeSpacerHorizontal120",
111
+ 200: "IncodeSpacerHorizontal200"
112
+ }[e] : {
113
+ 0: "IncodeSpacerVertical0",
114
+ 2: "IncodeSpacerVertical2",
115
+ 4: "IncodeSpacerVertical4",
116
+ 8: "IncodeSpacerVertical8",
117
+ 12: "IncodeSpacerVertical12",
118
+ 16: "IncodeSpacerVertical16",
119
+ 20: "IncodeSpacerVertical20",
120
+ 24: "IncodeSpacerVertical24",
121
+ 32: "IncodeSpacerVertical32",
122
+ 40: "IncodeSpacerVertical40",
123
+ 48: "IncodeSpacerVertical48",
124
+ 64: "IncodeSpacerVertical64",
125
+ 80: "IncodeSpacerVertical80",
126
+ 96: "IncodeSpacerVertical96",
127
+ 104: "IncodeSpacerVertical104",
128
+ 120: "IncodeSpacerVertical120",
129
+ 200: "IncodeSpacerVertical200"
130
+ }[e], T = ({
131
+ size: e,
132
+ className: n,
133
+ direction: c = "vertical"
134
+ }) => e === void 0 ? /* @__PURE__ */ o("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (c === "horizontal" ? "w" : c === "vertical" ? "h" : void 0) ? typeof e == "number" && H.has(e) ? /* @__PURE__ */ o("div", { class: `${V(e, c)} ${n || ""}` }) : /* @__PURE__ */ o("div", { class: `${n || ""}` }) : /* @__PURE__ */ o("div", { class: `${n || ""}` }), f = (...e) => {
135
+ const n = [];
136
+ for (const c of e)
137
+ if (c) {
138
+ if (typeof c == "string")
139
+ n.push(c);
140
+ else if (typeof c == "object")
141
+ for (const [a, t] of Object.entries(c))
142
+ t && n.push(a);
143
+ }
144
+ return n.join(" ");
145
+ }, b = ({
146
+ size: e,
147
+ className: n
148
+ }) => /* @__PURE__ */ o(
149
+ "svg",
150
+ {
151
+ width: e,
152
+ height: e,
153
+ viewBox: "0 0 31 31",
154
+ fill: "none",
155
+ xmlns: "http://www.w3.org/2000/svg",
156
+ class: f("IncodeLoadingIconPrimaryIcon", n),
157
+ "aria-hidden": "true",
158
+ children: /* @__PURE__ */ o("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
159
+ }
160
+ ), x = ({
161
+ size: e,
162
+ className: n
163
+ }) => /* @__PURE__ */ o(
164
+ "svg",
165
+ {
166
+ width: e,
167
+ height: e,
168
+ viewBox: "0 0 31 31",
169
+ fill: "none",
170
+ xmlns: "http://www.w3.org/2000/svg",
171
+ class: f("IncodeLoadingIconSecondaryIcon", n),
172
+ "aria-hidden": "true",
173
+ children: [
174
+ /* @__PURE__ */ o("title", { children: "Spinner Outer part" }),
175
+ /* @__PURE__ */ o("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })
176
+ ]
177
+ }
178
+ ), j = ({
179
+ size: e = 30,
180
+ secondaryClass: n,
181
+ primaryClass: c
182
+ }) => /* @__PURE__ */ o("div", { class: "IncodeLoadingIcon", children: [
183
+ /* @__PURE__ */ o(x, { size: e, className: n }),
184
+ /* @__PURE__ */ o("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ o(b, { size: e, className: c }) })
185
+ ] });
186
+ export {
187
+ P as I,
188
+ y as L,
189
+ T as S,
190
+ $ as a,
191
+ z as b,
192
+ f as c,
193
+ j as d,
194
+ o as u
195
+ };
@@ -0,0 +1,94 @@
1
+ import { u as t, I as u, b as C, a as h } from "./loadingIcon-DmuPXh70.js";
2
+ import { createMandatoryConsentManager as b } from "@incodetech/core/mandatory-consent";
3
+ import { y as g } from "./vendor-preact-BoMmvSgn.js";
4
+ import "@incodetech/core";
5
+ import "./instance-BWYzq8dk.js";
6
+ import { B as d } from "./button-CE9kRlem.js";
7
+ import { C as p } from "./checkbox-B5X-mfqq.js";
8
+ import { P as l } from "./page-SrUl0qtN.js";
9
+ import { R as f } from "./richText-cspvNz2a.js";
10
+ import { S as I } from "./spinner-DygONskw.js";
11
+ import { r as y } from "./incodeModule-C4XIllao.js";
12
+ const k = ({
13
+ config: o,
14
+ manager: s,
15
+ onFinish: i,
16
+ onError: e
17
+ }) => {
18
+ const { t: c } = C(), [n, r] = h(
19
+ () => s ?? b({ config: o }),
20
+ { manageLifecycle: !s }
21
+ );
22
+ if (g(() => {
23
+ if (n.status === "finished") {
24
+ i?.();
25
+ return;
26
+ }
27
+ if (n.status === "closed") {
28
+ e?.(void 0);
29
+ return;
30
+ }
31
+ n.status === "error" && e?.(n.error);
32
+ }, [n, i, e]), n.status === "finished" || n.status === "closed" || n.status === "error")
33
+ return null;
34
+ if (n.status === "idle" || n.status === "loading")
35
+ return /* @__PURE__ */ t(l, { className: "IncodeConsentPage", children: /* @__PURE__ */ t("div", { class: "IncodeConsentCentered", children: /* @__PURE__ */ t(I, {}) }) });
36
+ const m = n.text.split(`
37
+ `).filter((a) => a.trim().length > 0).join(" ");
38
+ return /* @__PURE__ */ t(l, { className: "IncodeConsentPage", hideFooterBranding: !0, hideHeader: !0, children: /* @__PURE__ */ t("div", { class: "IncodeConsentContent", children: [
39
+ /* @__PURE__ */ t("div", { class: "IncodeConsentBody", children: [
40
+ /* @__PURE__ */ t("h1", { id: "mandatory-consent-title", class: "IncodeConsentTitle", children: n.title }),
41
+ /* @__PURE__ */ t("p", { class: "IncodeConsentSubtitle", children: c("biometricConsent.subtitle") }),
42
+ /* @__PURE__ */ t("div", { class: "IncodeConsentCheckboxList", children: /* @__PURE__ */ t(
43
+ p,
44
+ {
45
+ id: "mandatory-consent-checkbox",
46
+ class: "IncodeConsentCheckbox",
47
+ checked: n.isSigned,
48
+ onChange: () => r.toggle(),
49
+ label: /* @__PURE__ */ t(
50
+ "span",
51
+ {
52
+ class: "IncodeConsentCheckboxLabel",
53
+ onClick: (a) => {
54
+ a.target.closest("a") && a.stopPropagation();
55
+ },
56
+ children: /* @__PURE__ */ t(f, { content: m, class: "IncodeRichText" })
57
+ }
58
+ )
59
+ }
60
+ ) })
61
+ ] }),
62
+ /* @__PURE__ */ t("div", { class: "IncodeConsentActions", children: [
63
+ /* @__PURE__ */ t(
64
+ d,
65
+ {
66
+ "data-testid": "mandatory-consent-submit",
67
+ class: "IncodeConsentButton",
68
+ onClick: () => r.submit(),
69
+ disabled: !n.canSubmit,
70
+ isLoading: n.status === "submitting",
71
+ children: c("biometricConsent.button.continue")
72
+ }
73
+ ),
74
+ /* @__PURE__ */ t(d, { variant: "link", onClick: () => r.cancel(), children: c("biometricConsent.button.cancel") })
75
+ ] })
76
+ ] }) });
77
+ }, x = ({
78
+ config: o,
79
+ manager: s,
80
+ onFinish: i,
81
+ onError: e
82
+ }) => /* @__PURE__ */ t(u, { children: o ? /* @__PURE__ */ t(
83
+ k,
84
+ {
85
+ config: o,
86
+ manager: s,
87
+ onFinish: i,
88
+ onError: e
89
+ }
90
+ ) : null });
91
+ y(x, "incode-mandatory-consent");
92
+ export {
93
+ x as MandatoryConsent
94
+ };
@@ -0,0 +1,372 @@
1
+ import { u as r, c as u, b as D } from "./loadingIcon-DmuPXh70.js";
2
+ import { d as S, y as f, Q as x, H as k, K as R, t as w, a as _, A as M, q as P, T as q, $ as F, b as H, D as O } from "./vendor-preact-BoMmvSgn.js";
3
+ import { C as j } from "./closeIcon-9Hc97omv.js";
4
+ import "./instance-BWYzq8dk.js";
5
+ import { B as K } from "./button-CE9kRlem.js";
6
+ const y = "IncodeModalScrollLock", L = "data-incode-modal-initial-focus", h = [
7
+ "button:not([disabled])",
8
+ "[href]",
9
+ "input:not([disabled])",
10
+ "select:not([disabled])",
11
+ "textarea:not([disabled])",
12
+ '[tabindex]:not([tabindex="-1"])'
13
+ ].join(", ");
14
+ function T(e) {
15
+ return Array.from(
16
+ e.querySelectorAll(h)
17
+ );
18
+ }
19
+ function I(e) {
20
+ try {
21
+ return e.matches(h);
22
+ } catch {
23
+ return !1;
24
+ }
25
+ }
26
+ function N(e) {
27
+ const t = e.querySelector("[autofocus]");
28
+ if (t && I(t))
29
+ return t;
30
+ const o = e.querySelector(
31
+ `[${L}]`
32
+ );
33
+ if (o) {
34
+ if (I(o))
35
+ return o;
36
+ const n = o.querySelector(h);
37
+ if (n)
38
+ return n;
39
+ }
40
+ return T(e)[0] ?? e;
41
+ }
42
+ function V(e, t) {
43
+ const [o, n] = S(null);
44
+ return f(() => {
45
+ if (!e) {
46
+ n(null);
47
+ return;
48
+ }
49
+ if (t)
50
+ return n(t), () => {
51
+ n(null);
52
+ };
53
+ const c = document.createElement("div");
54
+ return c.setAttribute("data-incode-modal-portal", ""), (document.querySelector(".IncodeComponent") ?? document.body).appendChild(c), n(c), () => {
55
+ c.remove(), n(null);
56
+ };
57
+ }, [e, t]), o;
58
+ }
59
+ function Z(e) {
60
+ f(() => {
61
+ if (!e) return;
62
+ const t = document.querySelector(".IncodeComponent");
63
+ return (t ?? document.body).classList.add(y), () => {
64
+ (t ?? document.body).classList.remove(
65
+ y
66
+ );
67
+ };
68
+ }, [e]);
69
+ }
70
+ function U(e, t, o) {
71
+ f(() => {
72
+ if (!e || !t) return;
73
+ const n = (c) => {
74
+ c.key === "Escape" && (c.preventDefault(), o());
75
+ };
76
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
77
+ }, [e, t, o]);
78
+ }
79
+ function $(e, t, o = !0) {
80
+ f(() => {
81
+ if (!e) return;
82
+ const n = document.activeElement;
83
+ if (o) {
84
+ const c = t.current;
85
+ c && N(c).focus();
86
+ }
87
+ return () => {
88
+ n && typeof n.focus == "function" && n.focus();
89
+ };
90
+ }, [e, t, o]);
91
+ }
92
+ function z(e, t) {
93
+ f(() => {
94
+ if (!e) return;
95
+ const o = (n) => {
96
+ if (n.key !== "Tab") return;
97
+ const c = t.current;
98
+ if (!c) return;
99
+ const l = T(c);
100
+ if (l.length === 0 && document.activeElement === c) {
101
+ n.preventDefault();
102
+ return;
103
+ }
104
+ if (l.length === 0) return;
105
+ const a = l[0], i = l[l.length - 1];
106
+ n.shiftKey ? document.activeElement === a && (n.preventDefault(), i.focus()) : document.activeElement === i && (n.preventDefault(), a.focus());
107
+ };
108
+ return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
109
+ }, [e, t]);
110
+ }
111
+ const g = x(null);
112
+ function A() {
113
+ const e = H(g);
114
+ if (!e)
115
+ throw new Error("Modal compound components must be used within Modal.Root");
116
+ return e;
117
+ }
118
+ function Q({
119
+ open: e,
120
+ children: t,
121
+ onOpenChange: o,
122
+ dismissible: n = !0,
123
+ portalContainer: c,
124
+ class: l,
125
+ hasBackdrop: a = !0,
126
+ manageInitialFocus: i = !0
127
+ }) {
128
+ const d = V(e, c ?? void 0), [C, s] = S(!1), m = M(null), p = P(() => {
129
+ n && o?.(!1);
130
+ }, [n, o]), E = q(
131
+ () => ({
132
+ setHasDescription: s,
133
+ dismissible: n,
134
+ requestClose: p
135
+ }),
136
+ [n, p]
137
+ ), b = e && !!d;
138
+ return Z(e), U(e, n, p), $(b, m, i), z(b, m), !d || !e ? null : F(
139
+ /* @__PURE__ */ r(g.Provider, { value: E, children: /* @__PURE__ */ r("div", { class: u("IncodeModalRoot", l), "data-incode-modal": "", children: [
140
+ a && /* @__PURE__ */ r(
141
+ "div",
142
+ {
143
+ class: "IncodeModalBackdrop",
144
+ "aria-hidden": "true",
145
+ onMouseDown: () => {
146
+ p();
147
+ }
148
+ }
149
+ ),
150
+ /* @__PURE__ */ r(
151
+ "div",
152
+ {
153
+ ref: m,
154
+ class: "IncodeModalDialog",
155
+ role: "dialog",
156
+ "aria-modal": "true",
157
+ "aria-labelledby": "incode-modal-title",
158
+ "aria-describedby": C ? "incode-modal-description" : void 0,
159
+ tabIndex: -1,
160
+ onMouseDown: (B) => {
161
+ B.stopPropagation();
162
+ },
163
+ children: t
164
+ }
165
+ )
166
+ ] }) }),
167
+ d
168
+ );
169
+ }
170
+ function G({ children: e, class: t }) {
171
+ return /* @__PURE__ */ r("div", { class: u("IncodeModalContent", t), children: e });
172
+ }
173
+ function J({
174
+ "aria-label": e = "Close",
175
+ title: t = "Close",
176
+ class: o,
177
+ onClick: n
178
+ }) {
179
+ const { dismissible: c, requestClose: l } = A();
180
+ if (!c)
181
+ return null;
182
+ const a = async () => {
183
+ n && await n(), l();
184
+ };
185
+ return /* @__PURE__ */ r(
186
+ "button",
187
+ {
188
+ type: "button",
189
+ class: u("IncodeModalClose", o),
190
+ "aria-label": e,
191
+ title: t,
192
+ onClick: a,
193
+ children: /* @__PURE__ */ r(j, { height: 32, width: 32, fillColor: "var(--icon-neutral-300)" })
194
+ }
195
+ );
196
+ }
197
+ function W({ children: e, class: t }) {
198
+ return /* @__PURE__ */ r("div", { class: u("IncodeModalIcon", t), children: e });
199
+ }
200
+ function X({
201
+ children: e,
202
+ align: t = "center"
203
+ }) {
204
+ const o = {
205
+ center: "IncodeModalTitleSectionCenter",
206
+ left: "IncodeModalTitleSectionLeft"
207
+ }[t];
208
+ return /* @__PURE__ */ r("div", { class: o, children: e });
209
+ }
210
+ function Y({ children: e, ref: t, class: o }) {
211
+ return /* @__PURE__ */ r(
212
+ "h2",
213
+ {
214
+ id: "incode-modal-title",
215
+ ref: t,
216
+ className: u("IncodeModalTitle", o),
217
+ children: e
218
+ }
219
+ );
220
+ }
221
+ function ee({ children: e, class: t }) {
222
+ const { setHasDescription: o } = A();
223
+ return _(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ r(
224
+ "h5",
225
+ {
226
+ id: "incode-modal-description",
227
+ className: u("IncodeModalSubtitle", t),
228
+ children: e
229
+ }
230
+ );
231
+ }
232
+ function te(e) {
233
+ return w(e) && e.props != null && typeof e.props == "object" && "autoFocus" in e.props;
234
+ }
235
+ function ne({
236
+ children: e,
237
+ class: t,
238
+ orientation: o = "vertical"
239
+ }) {
240
+ const n = o === "vertical" ? "IncodeModalActionsVertical" : "IncodeModalActionsHorizontal", c = k(e), l = [];
241
+ for (let a = 0; a < c.length; a++) {
242
+ const i = c[a];
243
+ if (te(i))
244
+ return /* @__PURE__ */ r("div", { class: u(n, t), role: "group", children: e });
245
+ l.push(
246
+ w(i) && a === 0 ? R(i, {
247
+ [L]: ""
248
+ }) : i
249
+ );
250
+ }
251
+ return /* @__PURE__ */ r("div", { class: u(n, t), role: "group", children: l });
252
+ }
253
+ const ue = {
254
+ Root: Q,
255
+ Content: G,
256
+ Close: J,
257
+ Icon: W,
258
+ TitleSection: X,
259
+ Title: Y,
260
+ Subtitle: ee,
261
+ Actions: ne
262
+ };
263
+ let v = null;
264
+ function oe() {
265
+ return v || (v = new Promise((e, t) => {
266
+ const o = document.createElement("script");
267
+ o.src = "https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js", o.onload = () => e(window.lottie), o.onerror = t, document.head.appendChild(o);
268
+ }), v);
269
+ }
270
+ function de({
271
+ animationData: e,
272
+ loop: t = !0,
273
+ autoplay: o = !0,
274
+ reverse: n = !1,
275
+ style: c,
276
+ className: l,
277
+ onComplete: a
278
+ }) {
279
+ const i = M(null), d = n ? !1 : o, C = M({
280
+ container: i.current,
281
+ renderer: "svg",
282
+ loop: t,
283
+ autoplay: d,
284
+ animationData: e
285
+ });
286
+ return f(() => {
287
+ C.current = {
288
+ container: i.current,
289
+ renderer: "svg",
290
+ loop: t,
291
+ autoplay: d,
292
+ animationData: e
293
+ };
294
+ }, [e, t, d]), f(() => {
295
+ if (!i.current) return;
296
+ let s;
297
+ return oe().then((m) => {
298
+ s = m.loadAnimation(C.current), n && (s.setDirection(-1), s.goToAndPlay(s.totalFrames - 1, !0)), a && s.addEventListener("complete", a);
299
+ }), () => {
300
+ s && (a && s.removeEventListener("complete", a), s.destroy());
301
+ };
302
+ }, [a, n]), /* @__PURE__ */ r(
303
+ "div",
304
+ {
305
+ ref: i,
306
+ style: c,
307
+ className: l,
308
+ "aria-hidden": "true"
309
+ }
310
+ );
311
+ }
312
+ const re = () => /* @__PURE__ */ r("div", { class: "IncodeCameraButton", children: /* @__PURE__ */ r(
313
+ "svg",
314
+ {
315
+ width: "64",
316
+ height: "64",
317
+ viewBox: "0 0 64 64",
318
+ fill: "none",
319
+ xmlns: "http://www.w3.org/2000/svg",
320
+ "aria-hidden": "true",
321
+ children: [
322
+ /* @__PURE__ */ r(
323
+ "path",
324
+ {
325
+ d: "M0 32C0 14.3269 14.3269 0 32 0C49.6731 0 64 14.3269 64 32C64 49.6731 49.6731 64 32 64C14.3269 64 0 49.6731 0 32Z",
326
+ class: "IncodeCameraButtonBackground"
327
+ }
328
+ ),
329
+ /* @__PURE__ */ r(
330
+ "path",
331
+ {
332
+ fillRule: "evenodd",
333
+ clipRule: "evenodd",
334
+ d: "M41.872 28.9792C41.872 29.6692 41.312 30.2292 40.622 30.2292C39.932 30.2292 39.372 29.6692 39.372 28.9792C39.372 28.2892 39.932 27.6808 40.622 27.6808C41.312 27.6808 41.872 28.1908 41.872 28.8808V28.9792ZM31.9987 40.7475C28.467 40.7475 25.5937 37.8742 25.5937 34.3425C25.5937 30.8108 28.467 27.9375 31.9987 27.9375C35.5303 27.9375 38.4037 30.8108 38.4037 34.3425C38.4037 37.8742 35.5303 40.7475 31.9987 40.7475ZM41.9287 23.4192C41.3237 23.3958 40.7603 23.1425 40.3553 22.7192C40.282 22.6375 39.9853 22.2692 39.2937 20.9725C38.4987 19.4858 36.9587 18.5625 35.2753 18.5625H28.7553C27.0987 18.5625 25.5703 19.4642 24.7703 20.9142C24.042 22.2325 23.7403 22.6208 23.6587 22.7108C23.2403 23.1475 22.677 23.4025 22.1037 23.4275C18.8337 23.4275 16.172 26.0875 16.167 29.3575V38.7608C16.167 42.9942 19.612 46.4392 23.8437 46.4392H40.157C44.3903 46.4392 47.8337 42.9942 47.8337 38.7608V29.3542C47.8337 26.0808 45.1703 23.4192 41.9287 23.4192Z",
335
+ class: "IncodeCameraButtonPath"
336
+ }
337
+ ),
338
+ /* @__PURE__ */ r(
339
+ "path",
340
+ {
341
+ fillRule: "evenodd",
342
+ clipRule: "evenodd",
343
+ d: "M31.9987 30.4375C29.8454 30.4375 28.0938 32.1892 28.0938 34.3425C28.0938 36.4958 29.8454 38.2475 31.9987 38.2475C34.152 38.2475 35.9037 36.4958 35.9037 34.3425C35.9037 32.1892 34.152 30.4375 31.9987 30.4375Z",
344
+ class: "IncodeCameraButtonPath"
345
+ }
346
+ )
347
+ ]
348
+ }
349
+ ) }), fe = O(({ onClick: e, disabled: t }, o) => {
350
+ const { t: n } = D();
351
+ return /* @__PURE__ */ r("div", { class: "IncodeSelfieManualCapture", "data-testid": "manual-capture-button", children: [
352
+ /* @__PURE__ */ r("p", { id: "manual-capture-instructions", class: "IncodeSelfieManualCaptureText", children: n("selfiev2.manualCapture.instructions") }),
353
+ /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
354
+ K,
355
+ {
356
+ ref: o,
357
+ id: "manual-capture-button",
358
+ variant: "link",
359
+ onClick: e,
360
+ disabled: t,
361
+ class: "IncodeSelfieManualCaptureButton",
362
+ "aria-label": n("selfiev2.manualCapture.captureButton"),
363
+ children: /* @__PURE__ */ r(re, {})
364
+ }
365
+ ) })
366
+ ] });
367
+ });
368
+ export {
369
+ de as L,
370
+ ue as M,
371
+ fe as a
372
+ };
@@ -0,0 +1,5 @@
1
+ import { u as e } from "./loadingIcon-DmuPXh70.js";
2
+ const t = ({ number: r }) => /* @__PURE__ */ e("div", { class: "IncodeNumberedStep", children: /* @__PURE__ */ e("span", { class: "IncodeNumberedStepText", children: r }) });
3
+ export {
4
+ t as N
5
+ };