@incodetech/web 2.0.0-rc.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/package.json +3 -3
  2. package/dist/ae-signature/ae-signature.es.js +0 -15
  3. package/dist/ae-signature/styles.css +0 -348
  4. package/dist/ae-signature/styles2.css +0 -107
  5. package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
  6. package/dist/antifraud/antifraud.es.js +0 -18
  7. package/dist/antifraud/styles.css +0 -2
  8. package/dist/authentication/authentication.es.js +0 -29
  9. package/dist/autoFocusTitle-QexamZ4i.js +0 -16
  10. package/dist/back-horizontal-hint-B8Brxh3U.js +0 -137
  11. package/dist/back-tutorial-1NOQobGO.js +0 -14585
  12. package/dist/back-vertical-hint-BBo36dxn.js +0 -128
  13. package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
  14. package/dist/base.css +0 -5818
  15. package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
  16. package/dist/bottomSheet-DE_8TFEC.js +0 -31
  17. package/dist/browser-ponyfill-jOkuz57z.js +0 -299
  18. package/dist/button-DcCUEn2n.js +0 -24
  19. package/dist/checkbox-Cl57ltq_.js +0 -85
  20. package/dist/consent/consent.es.js +0 -90
  21. package/dist/consent/styles.css +0 -116
  22. package/dist/countrySelector-CE-JgIsv.js +0 -58
  23. package/dist/cpf-ocr/styles.css +0 -45
  24. package/dist/cpfOcr-D_tbwbvh.js +0 -78
  25. package/dist/cross-document-data-match/cross-document-data-match.es.js +0 -18
  26. package/dist/curp-validation/curp-validation.es.js +0 -279
  27. package/dist/curp-validation/styles.css +0 -82
  28. package/dist/custom-fields/styles.css +0 -22
  29. package/dist/customFields-CW38fQUv.js +0 -127
  30. package/dist/customWatchlist-D9_yjEQd.js +0 -33
  31. package/dist/dateInputComposed-BpAGsjN6.js +0 -55
  32. package/dist/dateInputComposed-DU3o6PAV.js +0 -1
  33. package/dist/defineProperty-Dh8nSJpJ.js +0 -39
  34. package/dist/document-capture/styles.css +0 -367
  35. package/dist/documentCapture-xX-JT7ZY.js +0 -763
  36. package/dist/dropdownComposed-DFRBG22E.js +0 -284
  37. package/dist/dropdownComposed-DwTzc2YU.js +0 -1
  38. package/dist/dynamic-forms/styles.css +0 -36
  39. package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
  40. package/dist/ekyb/ekyb.es.js +0 -2
  41. package/dist/ekyb/styles.css +0 -137
  42. package/dist/ekybModule-BSs7mndb.js +0 -280
  43. package/dist/ekybModule-D9M3E2Gm.js +0 -2
  44. package/dist/ekyc/ekyc.es.js +0 -2
  45. package/dist/ekyc/styles.css +0 -106
  46. package/dist/ekycModule-CU9pt5YN.js +0 -246
  47. package/dist/ekycModule-CZw9cLno.js +0 -2
  48. package/dist/electronic-signature/electronic-signature.es.js +0 -2
  49. package/dist/electronic-signature-COYXjGdd.js +0 -410
  50. package/dist/email/email.es.js +0 -87
  51. package/dist/email/styles.css +0 -12
  52. package/dist/emailInput-DppGf9pv.js +0 -37
  53. package/dist/expiredId-BnmzE8T3.js +0 -70
  54. package/dist/extensibility-CzEJfRwo.js +0 -2586
  55. package/dist/extensibility.es.js +0 -25
  56. package/dist/face-match/face-match.es.js +0 -2
  57. package/dist/face-match/styles.css +0 -910
  58. package/dist/faceMatch-B8j0g0Yo.js +0 -2
  59. package/dist/faceMatch-BV8UD7tj.js +0 -201
  60. package/dist/flip-animation-CgwRsEmK.js +0 -6983
  61. package/dist/flow/flow.es.js +0 -661
  62. package/dist/flow/styles.css +0 -5205
  63. package/dist/front-horizontal-hint-DGGGi8e1.js +0 -380
  64. package/dist/front-vertical-hint-CNr5mE6Q.js +0 -420
  65. package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
  66. package/dist/geolocation/geolocation.es.js +0 -857
  67. package/dist/geolocation/styles.css +0 -158
  68. package/dist/glaredevicelottie-B10axYs_.js +0 -14466
  69. package/dist/governmentValidation/governmentValidation.es.js +0 -98
  70. package/dist/governmentValidation/styles.css +0 -58
  71. package/dist/homeScreen-DnP1jw9A.js +0 -227
  72. package/dist/hooks-BVnGysT7.js +0 -80
  73. package/dist/i18n-9s4OSqwi.js +0 -2010
  74. package/dist/icons-Cc7zwchP.js +0 -310
  75. package/dist/id/id.es.js +0 -832
  76. package/dist/id/styles.css +0 -1287
  77. package/dist/id-laser-h-mBAzHVOK.js +0 -467
  78. package/dist/id-laser-v-CrFg4bcJ.js +0 -483
  79. package/dist/id-ocr/styles.css +0 -46
  80. package/dist/id-tutorial-BCr42Pnn.js +0 -13153
  81. package/dist/id-verification/id-verification.es.js +0 -20
  82. package/dist/idOcr-CCjfWQvH.js +0 -94
  83. package/dist/identity-reuse/identity-reuse.es.js +0 -198
  84. package/dist/identity-reuse/styles.css +0 -163
  85. package/dist/incode-logo-DX016usY.js +0 -4
  86. package/dist/incodeComponent-C1o4M0ZK.js +0 -50
  87. package/dist/incodeModule-BqCjVgEI.js +0 -18
  88. package/dist/index.es.js +0 -16
  89. package/dist/inputComposed-APSw8C7o.js +0 -89
  90. package/dist/inputComposed-XYrarFxS.js +0 -1
  91. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  92. package/dist/mandatoryConsent-DssKMC3v.js +0 -100
  93. package/dist/modal-NMxsQHAO.js +0 -135
  94. package/dist/modal.hooks-CAjcIFZK.js +0 -126
  95. package/dist/numberedStep-CT-alrK5.js +0 -11
  96. package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
  97. package/dist/otpInput-DqRA_egd.js +0 -145
  98. package/dist/page-C1yT4DLb.js +0 -69
  99. package/dist/passport-horizontal-hint-Bgquwtac.js +0 -293
  100. package/dist/passport-tutorial-DwRwtPVX.js +0 -11689
  101. package/dist/passport-vertical-hint-BT1D5BrW.js +0 -267
  102. package/dist/pdf-BurGZ08w.js +0 -14967
  103. package/dist/pdfViewer-BGBNL1Ea.js +0 -63
  104. package/dist/phone/phone.es.js +0 -98
  105. package/dist/phone/styles.css +0 -11
  106. package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
  107. package/dist/processing-G_y3o32b.js +0 -6
  108. package/dist/qe-signature/qe-signature.es.js +0 -15
  109. package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
  110. package/dist/redirect-to-mobile/styles.css +0 -588
  111. package/dist/redirectToMobile-C3k1gloW.js +0 -1514
  112. package/dist/requiredLabelHint-BLwgqozE.js +0 -13
  113. package/dist/richText-DbJ5sl2n.js +0 -1973
  114. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  115. package/dist/selfie/selfie.es.js +0 -43
  116. package/dist/selfie/styles.css +0 -706
  117. package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
  118. package/dist/signature/signature.es.js +0 -546
  119. package/dist/snackbar-BDp8x7Cv.js +0 -14
  120. package/dist/spinner-B4dcie2T.js +0 -1
  121. package/dist/spinner-CKnjVHxw.js +0 -39
  122. package/dist/statusPage-CUI7ApcU.js +0 -28
  123. package/dist/successIcon-DbILeIz_.js +0 -28
  124. package/dist/tabs-DaPyP71c.js +0 -78
  125. package/dist/themes/dark.css +0 -1347
  126. package/dist/themes/light.css +0 -1225
  127. package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
  128. package/dist/tutorial-9vHAHvMK.js +0 -2587
  129. package/dist/types/ae-signature.d.ts +0 -40
  130. package/dist/types/antifraud.d.ts +0 -40
  131. package/dist/types/authentication.d.ts +0 -45
  132. package/dist/types/base.d.ts +0 -1
  133. package/dist/types/consent.d.ts +0 -41
  134. package/dist/types/cpf-ocr/styles.d.ts +0 -1
  135. package/dist/types/cross-document-data-match.d.ts +0 -34
  136. package/dist/types/curp-validation.d.ts +0 -40
  137. package/dist/types/custom-fields/styles.d.ts +0 -1
  138. package/dist/types/dark.d.ts +0 -1
  139. package/dist/types/document-capture/styles.d.ts +0 -1
  140. package/dist/types/dynamic-forms/styles.d.ts +0 -1
  141. package/dist/types/ekyb.d.ts +0 -34
  142. package/dist/types/ekyc.d.ts +0 -34
  143. package/dist/types/electronic-signature.d.ts +0 -43
  144. package/dist/types/email.d.ts +0 -67
  145. package/dist/types/extensibility.d.ts +0 -981
  146. package/dist/types/face-match.d.ts +0 -59
  147. package/dist/types/flow.d.ts +0 -137
  148. package/dist/types/geolocation.d.ts +0 -41
  149. package/dist/types/governmentValidation.d.ts +0 -34
  150. package/dist/types/id-ocr/styles.d.ts +0 -1
  151. package/dist/types/id-verification.d.ts +0 -40
  152. package/dist/types/id.d.ts +0 -41
  153. package/dist/types/identity-reuse.d.ts +0 -43
  154. package/dist/types/index.d.ts +0 -32
  155. package/dist/types/light.d.ts +0 -1
  156. package/dist/types/mandatory-consent/styles.d.ts +0 -1
  157. package/dist/types/phone.d.ts +0 -68
  158. package/dist/types/qe-signature.d.ts +0 -40
  159. package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
  160. package/dist/types/selfie.d.ts +0 -41
  161. package/dist/types/signature.d.ts +0 -40
  162. package/dist/types/styles.d.ts +0 -1
  163. package/dist/types/themes/dark.d.ts +0 -1
  164. package/dist/types/themes/light.d.ts +0 -1
  165. package/dist/types/watchlist-for-business/styles.d.ts +0 -1
  166. package/dist/types/watchlist.d.ts +0 -40
  167. package/dist/types/workflow.d.ts +0 -91
  168. package/dist/typography-CxjaknHN.js +0 -28
  169. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  170. package/dist/useModuleLoader-BFiVA41N.js +0 -432
  171. package/dist/vendor-preact-D6SntenC.js +0 -958
  172. package/dist/verificationResult-BrVbUJ4U.js +0 -97
  173. package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
  174. package/dist/watchlist/watchlist.es.js +0 -33
  175. package/dist/watchlist-for-business/styles.css +0 -18
  176. package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
  177. package/dist/workflow/styles.css +0 -4612
  178. package/dist/workflow/workflow.es.js +0 -244
@@ -1,31 +0,0 @@
1
- import { h as e, l as t, v as n } from "./vendor-preact-D6SntenC.js";
2
- import { i as r, n as i, o as a, r as o, s } from "./modal.hooks-CAjcIFZK.js";
3
- //#region src/shared/bottomSheet/bottomSheet.tsx
4
- var c = ({ isOpen: c = !1, onClose: l, labelledById: u, children: d }) => {
5
- let f = t(null), p = t(null), m = e(() => {
6
- l?.();
7
- }, [l]);
8
- return i(c), o(c, !0, m), r(c, f), a(c, f), s(c, p), c ? /* @__PURE__ */ n("div", {
9
- ref: p,
10
- class: "IncodeBottomSheetOverlay",
11
- onClick: (e) => {
12
- e.target === e.currentTarget && m();
13
- },
14
- children: /* @__PURE__ */ n("div", {
15
- class: "IncodeBottomSheetContainer",
16
- onClick: m,
17
- children: /* @__PURE__ */ n("div", {
18
- ref: f,
19
- class: "IncodeBottomSheet",
20
- role: "dialog",
21
- "aria-modal": "true",
22
- "aria-labelledby": u,
23
- tabIndex: -1,
24
- onClick: (e) => e.stopPropagation(),
25
- children: d
26
- })
27
- })
28
- }) : null;
29
- };
30
- //#endregion
31
- export { c as t };
@@ -1,299 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CYMK-g2i.js";
2
- //#region ../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/browser-ponyfill.js
3
- var t = /* @__PURE__ */ e(((e, t) => {
4
- var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof global < "u" && global, r = (function() {
5
- function e() {
6
- this.fetch = !1, this.DOMException = n.DOMException;
7
- }
8
- return e.prototype = n, new e();
9
- })();
10
- (function(e) {
11
- (function(t) {
12
- var n = e !== void 0 && e || typeof self < "u" && self || n !== void 0 && n, r = {
13
- searchParams: "URLSearchParams" in n,
14
- iterable: "Symbol" in n && "iterator" in Symbol,
15
- blob: "FileReader" in n && "Blob" in n && (function() {
16
- try {
17
- return new Blob(), !0;
18
- } catch {
19
- return !1;
20
- }
21
- })(),
22
- formData: "FormData" in n,
23
- arrayBuffer: "ArrayBuffer" in n
24
- };
25
- function i(e) {
26
- return e && DataView.prototype.isPrototypeOf(e);
27
- }
28
- if (r.arrayBuffer) var a = [
29
- "[object Int8Array]",
30
- "[object Uint8Array]",
31
- "[object Uint8ClampedArray]",
32
- "[object Int16Array]",
33
- "[object Uint16Array]",
34
- "[object Int32Array]",
35
- "[object Uint32Array]",
36
- "[object Float32Array]",
37
- "[object Float64Array]"
38
- ], o = ArrayBuffer.isView || function(e) {
39
- return e && a.indexOf(Object.prototype.toString.call(e)) > -1;
40
- };
41
- function s(e) {
42
- if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "") throw TypeError("Invalid character in header field name: \"" + e + "\"");
43
- return e.toLowerCase();
44
- }
45
- function c(e) {
46
- return typeof e != "string" && (e = String(e)), e;
47
- }
48
- function l(e) {
49
- var t = { next: function() {
50
- var t = e.shift();
51
- return {
52
- done: t === void 0,
53
- value: t
54
- };
55
- } };
56
- return r.iterable && (t[Symbol.iterator] = function() {
57
- return t;
58
- }), t;
59
- }
60
- function u(e) {
61
- this.map = {}, e instanceof u ? e.forEach(function(e, t) {
62
- this.append(t, e);
63
- }, this) : Array.isArray(e) ? e.forEach(function(e) {
64
- this.append(e[0], e[1]);
65
- }, this) : e && Object.getOwnPropertyNames(e).forEach(function(t) {
66
- this.append(t, e[t]);
67
- }, this);
68
- }
69
- u.prototype.append = function(e, t) {
70
- e = s(e), t = c(t);
71
- var n = this.map[e];
72
- this.map[e] = n ? n + ", " + t : t;
73
- }, u.prototype.delete = function(e) {
74
- delete this.map[s(e)];
75
- }, u.prototype.get = function(e) {
76
- return e = s(e), this.has(e) ? this.map[e] : null;
77
- }, u.prototype.has = function(e) {
78
- return this.map.hasOwnProperty(s(e));
79
- }, u.prototype.set = function(e, t) {
80
- this.map[s(e)] = c(t);
81
- }, u.prototype.forEach = function(e, t) {
82
- for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
83
- }, u.prototype.keys = function() {
84
- var e = [];
85
- return this.forEach(function(t, n) {
86
- e.push(n);
87
- }), l(e);
88
- }, u.prototype.values = function() {
89
- var e = [];
90
- return this.forEach(function(t) {
91
- e.push(t);
92
- }), l(e);
93
- }, u.prototype.entries = function() {
94
- var e = [];
95
- return this.forEach(function(t, n) {
96
- e.push([n, t]);
97
- }), l(e);
98
- }, r.iterable && (u.prototype[Symbol.iterator] = u.prototype.entries);
99
- function d(e) {
100
- if (e.bodyUsed) return Promise.reject(/* @__PURE__ */ TypeError("Already read"));
101
- e.bodyUsed = !0;
102
- }
103
- function f(e) {
104
- return new Promise(function(t, n) {
105
- e.onload = function() {
106
- t(e.result);
107
- }, e.onerror = function() {
108
- n(e.error);
109
- };
110
- });
111
- }
112
- function p(e) {
113
- var t = new FileReader(), n = f(t);
114
- return t.readAsArrayBuffer(e), n;
115
- }
116
- function m(e) {
117
- var t = new FileReader(), n = f(t);
118
- return t.readAsText(e), n;
119
- }
120
- function h(e) {
121
- for (var t = new Uint8Array(e), n = Array(t.length), r = 0; r < t.length; r++) n[r] = String.fromCharCode(t[r]);
122
- return n.join("");
123
- }
124
- function g(e) {
125
- if (e.slice) return e.slice(0);
126
- var t = new Uint8Array(e.byteLength);
127
- return t.set(new Uint8Array(e)), t.buffer;
128
- }
129
- function _() {
130
- return this.bodyUsed = !1, this._initBody = function(e) {
131
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : r.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : r.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : r.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : r.arrayBuffer && r.blob && i(e) ? (this._bodyArrayBuffer = g(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : r.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || o(e)) ? this._bodyArrayBuffer = g(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : r.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
132
- }, r.blob && (this.blob = function() {
133
- var e = d(this);
134
- if (e) return e;
135
- if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
136
- if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
137
- if (this._bodyFormData) throw Error("could not read FormData body as blob");
138
- return Promise.resolve(new Blob([this._bodyText]));
139
- }, this.arrayBuffer = function() {
140
- return this._bodyArrayBuffer ? d(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(p);
141
- }), this.text = function() {
142
- var e = d(this);
143
- if (e) return e;
144
- if (this._bodyBlob) return m(this._bodyBlob);
145
- if (this._bodyArrayBuffer) return Promise.resolve(h(this._bodyArrayBuffer));
146
- if (this._bodyFormData) throw Error("could not read FormData body as text");
147
- return Promise.resolve(this._bodyText);
148
- }, r.formData && (this.formData = function() {
149
- return this.text().then(x);
150
- }), this.json = function() {
151
- return this.text().then(JSON.parse);
152
- }, this;
153
- }
154
- var v = [
155
- "DELETE",
156
- "GET",
157
- "HEAD",
158
- "OPTIONS",
159
- "POST",
160
- "PUT"
161
- ];
162
- function y(e) {
163
- var t = e.toUpperCase();
164
- return v.indexOf(t) > -1 ? t : e;
165
- }
166
- function b(e, t) {
167
- if (!(this instanceof b)) throw TypeError("Please use the \"new\" operator, this DOM object constructor cannot be called as a function.");
168
- t ||= {};
169
- var n = t.body;
170
- if (e instanceof b) {
171
- if (e.bodyUsed) throw TypeError("Already read");
172
- this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new u(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !n && e._bodyInit != null && (n = e._bodyInit, e.bodyUsed = !0);
173
- } else this.url = String(e);
174
- if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new u(t.headers)), this.method = y(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && n) throw TypeError("Body not allowed for GET or HEAD requests");
175
- if (this._initBody(n), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
176
- var r = /([?&])_=[^&]*/;
177
- r.test(this.url) ? this.url = this.url.replace(r, "$1_=" + (/* @__PURE__ */ new Date()).getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
178
- }
179
- }
180
- b.prototype.clone = function() {
181
- return new b(this, { body: this._bodyInit });
182
- };
183
- function x(e) {
184
- var t = new FormData();
185
- return e.trim().split("&").forEach(function(e) {
186
- if (e) {
187
- var n = e.split("="), r = n.shift().replace(/\+/g, " "), i = n.join("=").replace(/\+/g, " ");
188
- t.append(decodeURIComponent(r), decodeURIComponent(i));
189
- }
190
- }), t;
191
- }
192
- function S(e) {
193
- var t = new u();
194
- return e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function(e) {
195
- return e.indexOf("\n") === 0 ? e.substr(1, e.length) : e;
196
- }).forEach(function(e) {
197
- var n = e.split(":"), r = n.shift().trim();
198
- if (r) {
199
- var i = n.join(":").trim();
200
- t.append(r, i);
201
- }
202
- }), t;
203
- }
204
- _.call(b.prototype);
205
- function C(e, t) {
206
- if (!(this instanceof C)) throw TypeError("Please use the \"new\" operator, this DOM object constructor cannot be called as a function.");
207
- t ||= {}, this.type = "default", this.status = t.status === void 0 ? 200 : t.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new u(t.headers), this.url = t.url || "", this._initBody(e);
208
- }
209
- _.call(C.prototype), C.prototype.clone = function() {
210
- return new C(this._bodyInit, {
211
- status: this.status,
212
- statusText: this.statusText,
213
- headers: new u(this.headers),
214
- url: this.url
215
- });
216
- }, C.error = function() {
217
- var e = new C(null, {
218
- status: 0,
219
- statusText: ""
220
- });
221
- return e.type = "error", e;
222
- };
223
- var w = [
224
- 301,
225
- 302,
226
- 303,
227
- 307,
228
- 308
229
- ];
230
- C.redirect = function(e, t) {
231
- if (w.indexOf(t) === -1) throw RangeError("Invalid status code");
232
- return new C(null, {
233
- status: t,
234
- headers: { location: e }
235
- });
236
- }, t.DOMException = n.DOMException;
237
- try {
238
- new t.DOMException();
239
- } catch {
240
- t.DOMException = function(e, t) {
241
- this.message = e, this.name = t, this.stack = Error(e).stack;
242
- }, t.DOMException.prototype = Object.create(Error.prototype), t.DOMException.prototype.constructor = t.DOMException;
243
- }
244
- function T(e, i) {
245
- return new Promise(function(a, o) {
246
- var s = new b(e, i);
247
- if (s.signal && s.signal.aborted) return o(new t.DOMException("Aborted", "AbortError"));
248
- var l = new XMLHttpRequest();
249
- function d() {
250
- l.abort();
251
- }
252
- l.onload = function() {
253
- var e = {
254
- status: l.status,
255
- statusText: l.statusText,
256
- headers: S(l.getAllResponseHeaders() || "")
257
- };
258
- e.url = "responseURL" in l ? l.responseURL : e.headers.get("X-Request-URL");
259
- var t = "response" in l ? l.response : l.responseText;
260
- setTimeout(function() {
261
- a(new C(t, e));
262
- }, 0);
263
- }, l.onerror = function() {
264
- setTimeout(function() {
265
- o(/* @__PURE__ */ TypeError("Network request failed"));
266
- }, 0);
267
- }, l.ontimeout = function() {
268
- setTimeout(function() {
269
- o(/* @__PURE__ */ TypeError("Network request failed"));
270
- }, 0);
271
- }, l.onabort = function() {
272
- setTimeout(function() {
273
- o(new t.DOMException("Aborted", "AbortError"));
274
- }, 0);
275
- };
276
- function f(e) {
277
- try {
278
- return e === "" && n.location.href ? n.location.href : e;
279
- } catch {
280
- return e;
281
- }
282
- }
283
- l.open(s.method, f(s.url), !0), s.credentials === "include" ? l.withCredentials = !0 : s.credentials === "omit" && (l.withCredentials = !1), "responseType" in l && (r.blob ? l.responseType = "blob" : r.arrayBuffer && s.headers.get("Content-Type") && s.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (l.responseType = "arraybuffer")), i && typeof i.headers == "object" && !(i.headers instanceof u) ? Object.getOwnPropertyNames(i.headers).forEach(function(e) {
284
- l.setRequestHeader(e, c(i.headers[e]));
285
- }) : s.headers.forEach(function(e, t) {
286
- l.setRequestHeader(t, e);
287
- }), s.signal && (s.signal.addEventListener("abort", d), l.onreadystatechange = function() {
288
- l.readyState === 4 && s.signal.removeEventListener("abort", d);
289
- }), l.send(s._bodyInit === void 0 ? null : s._bodyInit);
290
- });
291
- }
292
- return T.polyfill = !0, n.fetch || (n.fetch = T, n.Headers = u, n.Request = b, n.Response = C), t.Headers = u, t.Request = b, t.Response = C, t.fetch = T, t;
293
- })({});
294
- })(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
295
- var i = n.fetch ? n : r;
296
- e = i.fetch, e.default = i.fetch, e.fetch = i.fetch, e.Headers = i.Headers, e.Request = i.Request, e.Response = i.Response, t.exports = e;
297
- }));
298
- //#endregion
299
- export default t();
@@ -1,24 +0,0 @@
1
- import { S as e, a as t, v as n } from "./vendor-preact-D6SntenC.js";
2
- import { n as r, t as i } from "./loadingIcon-BN5YRQUb.js";
3
- //#region src/shared/button/button.tsx
4
- var a = 30, o = {
5
- primary: "IncodeButtonPrimary",
6
- secondary: "IncodeButtonSecondary",
7
- link: "IncodeButtonLink"
8
- }, s = {
9
- L: "IncodeButtonL",
10
- M: "IncodeButtonM",
11
- S: "IncodeButtonS"
12
- }, c = t((t, c) => {
13
- let { isLoading: l = !1, variant: u = "primary", size: d = "L", icon: f, class: p, type: m = "button", children: h, disabled: g, ..._ } = t, v = !h && !!f, y = l && d === "L", b = () => y ? /* @__PURE__ */ n(i, { size: a }) : v ? f : f ? /* @__PURE__ */ n(e, { children: [h, f] }) : h;
14
- return /* @__PURE__ */ n("button", {
15
- ref: c,
16
- ..._,
17
- class: r("IncodeButton", o[u], s[d], y ? "IncodeButtonLoading" : "", v ? "IncodeButtonIconOnly" : "", p),
18
- disabled: g || y,
19
- type: m,
20
- children: b()
21
- });
22
- });
23
- //#endregion
24
- export { c as t };
@@ -1,85 +0,0 @@
1
- import { a as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
2
- import { n as r } from "./loadingIcon-BN5YRQUb.js";
3
- import { d as i, g as a } from "./icons-Cc7zwchP.js";
4
- //#region src/shared/checkbox/checkbox.tsx
5
- var o = e(({ id: e, label: o, labelHint: s, size: c = "m", checked: l, defaultChecked: u, disabled: d = !1, required: f = !1, name: p, value: m, onChange: h, error: g, helper: _, showErrorIcon: v = !0, class: y, "aria-label": b, "aria-labelledby": x, "aria-describedby": S, "aria-invalid": C, ...w }, T) => {
6
- let [E, D] = t(!!u), O = l !== void 0, k = O ? !!l : E, A = !!d, j = !!f, M = typeof y == "string" ? y : void 0, N = (e) => {
7
- O || D(e.target.checked), h?.(e);
8
- }, P = _ ? `${e}-helper` : void 0, F = g ? `${e}-error` : void 0, I = [
9
- S,
10
- F,
11
- P
12
- ].filter(Boolean).join(" ") || void 0;
13
- return /* @__PURE__ */ n("div", {
14
- class: r("IncodeCheckbox", M),
15
- children: [
16
- /* @__PURE__ */ n("label", {
17
- class: r("IncodeCheckboxLabel", { IncodeCheckboxLabelDisabled: A }),
18
- htmlFor: e,
19
- children: [/* @__PURE__ */ n("div", {
20
- class: "relative inline-flex",
21
- children: [/* @__PURE__ */ n("input", {
22
- ref: T,
23
- type: "checkbox",
24
- class: "IncodeCheckboxInput",
25
- id: e,
26
- name: p,
27
- value: m,
28
- ...O ? { checked: l } : { defaultChecked: u },
29
- disabled: d,
30
- required: f,
31
- onChange: N,
32
- "aria-label": b,
33
- "aria-labelledby": x,
34
- "aria-describedby": I,
35
- "aria-invalid": C || !!g,
36
- "aria-required": j,
37
- ...w
38
- }), /* @__PURE__ */ n("div", {
39
- class: r("IncodeCheckboxVisual", {
40
- IncodeCheckboxVisualChecked: k,
41
- IncodeCheckboxVisualDisabled: A,
42
- IncodeCheckboxVisualError: !!g
43
- }),
44
- children: k && /* @__PURE__ */ n(i, { size: 28 })
45
- })]
46
- }), o && /* @__PURE__ */ n("span", {
47
- class: r("IncodeCheckboxText", {
48
- IncodeCheckboxTextS: c === "s",
49
- IncodeCheckboxTextM: c === "m",
50
- IncodeCheckboxTextDisabled: A
51
- }),
52
- "aria-hidden": x ? "true" : void 0,
53
- children: [o, s && /* @__PURE__ */ n("span", {
54
- class: "IncodeCheckboxLabelHint",
55
- "data-testid": `${e}-label-hint`,
56
- children: s
57
- })]
58
- })]
59
- }),
60
- g && /* @__PURE__ */ n("div", {
61
- class: "IncodeCheckboxMessageWrapper",
62
- "data-testid": `${e}-error-wrapper`,
63
- children: [v && /* @__PURE__ */ n("div", {
64
- class: "IncodeCheckboxIconWrapper",
65
- children: /* @__PURE__ */ n(a, { size: 17 })
66
- }), /* @__PURE__ */ n("p", {
67
- id: F,
68
- class: "IncodeCheckboxErrorText",
69
- children: g
70
- })]
71
- }),
72
- _ && !g && /* @__PURE__ */ n("div", {
73
- class: "IncodeCheckboxMessageWrapper",
74
- "data-testid": `${e}-helper-wrapper`,
75
- children: /* @__PURE__ */ n("p", {
76
- id: P,
77
- class: "IncodeCheckboxHelperText",
78
- children: _
79
- })
80
- })
81
- ]
82
- });
83
- });
84
- //#endregion
85
- export { o as t };
@@ -1,90 +0,0 @@
1
- import { n as e } from "../i18n-9s4OSqwi.js";
2
- import { _ as t, d as n, l as r, v as i } from "../vendor-preact-D6SntenC.js";
3
- import { o as a } from "../hooks-BVnGysT7.js";
4
- import { t as o } from "../incodeComponent-C1o4M0ZK.js";
5
- import { t as s } from "../page-C1yT4DLb.js";
6
- import { n as c } from "../typography-CxjaknHN.js";
7
- import { t as l } from "../transitionSpinner-PIEPU2Vx.js";
8
- import { t as u } from "../button-DcCUEn2n.js";
9
- import { t as d } from "../checkbox-Cl57ltq_.js";
10
- import { t as f } from "../incodeModule-BqCjVgEI.js";
11
- import { t as p } from "../richText-DbJ5sl2n.js";
12
- import { n as m, t as h } from "../requiredLabelHint-BLwgqozE.js";
13
- import { createConsentManager as g } from "@incodetech/core/consent";
14
- //#region src/modules/consent/consent.tsx
15
- var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
16
- let { t: y } = e(), b = r(null), [x, S] = a(() => {
17
- if (f) return f;
18
- if (!o) throw Error("Consent config is required");
19
- return g({ config: o });
20
- }, { manageLifecycle: !f });
21
- t(() => {
22
- x.status === "display" && b.current?.focus();
23
- }, [x.status]);
24
- let C = "checkboxes" in x ? x.checkboxes : void 0, w = n(() => m(C?.map((e) => e.required) ?? []), [C]);
25
- return x.status === "finished" ? (_?.(), null) : x.status === "error" ? (v?.(x.error), null) : x.status === "idle" || x.status === "loading" ? /* @__PURE__ */ i(l, { hideText: !0 }) : /* @__PURE__ */ i(s, {
26
- className: "IncodeConsentPage",
27
- hideFooterBranding: !0,
28
- hideHeader: !0,
29
- children: /* @__PURE__ */ i("div", {
30
- class: "IncodeConsentContent",
31
- children: [/* @__PURE__ */ i("div", {
32
- class: "IncodeConsentBody",
33
- children: [
34
- /* @__PURE__ */ i(c, {
35
- ref: b,
36
- className: "IncodeConsentTitle",
37
- tabIndex: -1,
38
- children: x.title
39
- }),
40
- /* @__PURE__ */ i(p, {
41
- content: x.richText,
42
- class: "IncodeRichText"
43
- }),
44
- /* @__PURE__ */ i("div", {
45
- class: "IncodeConsentCheckboxList",
46
- role: "group",
47
- "aria-label": y("biometricConsent.consentOptions"),
48
- children: x.checkboxes.map((e) => {
49
- let t = h(w, e.required), n = t ? y(`forms.label.${t}`) : void 0;
50
- return /* @__PURE__ */ i(d, {
51
- id: `consent-checkbox-${e.id}`,
52
- class: "IncodeConsentCheckbox",
53
- size: "s",
54
- checked: e.checked,
55
- required: e.required,
56
- labelHint: n,
57
- onChange: () => S.toggleCheckbox(e.id),
58
- label: /* @__PURE__ */ i("span", {
59
- class: "IncodeConsentCheckboxLabel",
60
- onClick: (e) => {
61
- e.target.closest("a") && e.stopPropagation();
62
- },
63
- children: /* @__PURE__ */ i(p, {
64
- content: e.label,
65
- class: "IncodeRichText",
66
- disallowedTags: ["img"]
67
- })
68
- })
69
- }, e.id);
70
- })
71
- })
72
- ]
73
- }), /* @__PURE__ */ i(u, {
74
- "data-testid": "consent-submit",
75
- onClick: () => S.submit(),
76
- disabled: !x.canSubmit,
77
- isLoading: x.status === "submitting",
78
- children: y("biometricConsent.button.continue")
79
- })]
80
- })
81
- }, "ready");
82
- }, v = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(o, { children: e ? /* @__PURE__ */ i(_, {
83
- config: e,
84
- manager: t,
85
- onFinish: n,
86
- onError: r
87
- }) : null });
88
- f(v, "incode-consent");
89
- //#endregion
90
- export { v as Consent };
@@ -1,116 +0,0 @@
1
- /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
- .IncodeConsentPage {
3
- height: 100%;
4
- }
5
-
6
- .IncodeConsentPage .IncodePageInner {
7
- padding: var(--spacing-24, var(--spacing-24, 24px));
8
- }
9
-
10
- .IncodeConsentPage .IncodePageContent {
11
- min-height: var(--spacing-0, var(--spacing-none, 0px));
12
- }
13
-
14
- .IncodeConsentPage .IncodeConsentContent {
15
- height: 100%;
16
- min-height: var(--spacing-0, var(--spacing-none, 0px));
17
- justify-content: space-between;
18
- gap: var(--spacing-24, var(--spacing-24, 24px));
19
- flex-direction: column;
20
- display: flex;
21
- }
22
-
23
- .IncodeConsentPage .IncodeConsentBody {
24
- min-height: var(--spacing-0, var(--spacing-none, 0px));
25
- gap: var(--spacing-16, var(--spacing-16, 16px));
26
- flex-direction: column;
27
- flex: 1;
28
- display: flex;
29
- overflow-y: auto;
30
- }
31
-
32
- .IncodeConsentPage .IncodeConsentBody .IncodeRichText .markup h2, .IncodeConsentPage .IncodeConsentBody .IncodeRichText h2 {
33
- margin-bottom: var(--spacing-12, var(--spacing-12, 12px));
34
- font-family: var(--typography-headline-family);
35
- font-size: var(--typography-headline-h2-size);
36
- font-weight: var(--typography-headline-h2-weight);
37
- line-height: var(--typography-headline-h2-line-height);
38
- letter-spacing: var(--typography-headline-h2-letter-spacing);
39
- }
40
-
41
- .IncodeConsentPage .IncodeConsentTitle {
42
- font-family: var(--typography-headline-family);
43
- font-size: var(--typography-headline-h1-size);
44
- font-weight: var(--typography-headline-h1-weight);
45
- line-height: var(--typography-headline-h1-line-height);
46
- letter-spacing: var(--typography-headline-h1-letter-spacing);
47
- color: var(--color-text-body-primary, var(--text-body-800-primary));
48
- }
49
-
50
- .IncodeConsentPage .IncodeConsentSubtitle {
51
- color: var(--color-text-body-secondary, var(--text-body-500-secondary));
52
- }
53
-
54
- .IncodeConsentPage .IncodeConsentCheckboxList {
55
- gap: var(--spacing-12, var(--spacing-12, 12px));
56
- flex-direction: column;
57
- display: flex;
58
- }
59
-
60
- .IncodeConsentPage .IncodeConsentCheckbox {
61
- border-radius: var(--radius-medium, var(--border-radius-medium));
62
- background-color: var(--color-surface-brand-50, var(--surface-brand-50));
63
- width: 100%;
64
- padding: var(--spacing-16, var(--spacing-16, 16px));
65
- }
66
-
67
- .IncodeConsentPage .IncodeConsentCheckbox .IncodeCheckboxLabel {
68
- align-items: flex-start;
69
- }
70
-
71
- .IncodeConsentPage .IncodeConsentCheckbox .IncodeCheckboxText {
72
- font-family: var(--typography-checkbox-radio-family);
73
- font-size: var(--typography-checkbox-radio-s-size);
74
- font-weight: var(--typography-checkbox-radio-s-weight);
75
- line-height: var(--typography-checkbox-radio-s-line-height);
76
- letter-spacing: var(--typography-checkbox-radio-s-letter-spacing);
77
- }
78
-
79
- .IncodeConsentPage .IncodeConsentCheckboxLabel {
80
- font-family: var(--typography-checkbox-radio-family);
81
- font-size: var(--typography-checkbox-radio-s-size);
82
- font-weight: var(--typography-checkbox-radio-s-weight);
83
- line-height: var(--typography-checkbox-radio-s-line-height);
84
- letter-spacing: var(--typography-checkbox-radio-s-letter-spacing);
85
- color: var(--color-text-body-primary, var(--text-body-800-primary));
86
- }
87
-
88
- .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText, .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText .markup {
89
- display: inline;
90
- }
91
-
92
- .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText .markup p, .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText p {
93
- margin-bottom: var(--spacing-0, var(--spacing-none, 0px));
94
- font-family: var(--typography-checkbox-radio-family);
95
- font-size: var(--typography-checkbox-radio-s-size);
96
- font-weight: var(--typography-checkbox-radio-s-weight);
97
- line-height: var(--typography-checkbox-radio-s-line-height);
98
- letter-spacing: var(--typography-checkbox-radio-s-letter-spacing);
99
- display: inline;
100
- }
101
-
102
- .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText .markup a, .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText a {
103
- color: var(--color-surface-brand-600, var(--surface-brand-600-static));
104
- }
105
-
106
- .IncodeConsentPage .IncodeConsentButton {
107
- width: 100%;
108
- }
109
-
110
- .IncodeConsentPage .IncodeConsentActions {
111
- align-items: center;
112
- gap: var(--spacing-8, var(--spacing-8, 8px));
113
- flex-direction: column;
114
- width: 100%;
115
- display: flex;
116
- }