@incodetech/web 2.0.0-alpha.8 → 2.0.0-rc.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 (182) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +5218 -639
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -145
  50. package/dist/email/styles.css +5 -116
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +910 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +646 -542
  61. package/dist/flow/styles.css +4524 -440
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -6
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -3441
  104. package/dist/phone/styles.css +3 -297
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +42 -892
  115. package/dist/selfie/styles.css +298 -184
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +846 -151
  125. package/dist/themes/light.css +798 -116
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/consent.d.ts +41 -0
  132. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  133. package/dist/types/cross-document-data-match.d.ts +34 -0
  134. package/dist/types/curp-validation.d.ts +40 -0
  135. package/dist/types/custom-fields/styles.d.ts +1 -0
  136. package/dist/types/document-capture/styles.d.ts +1 -0
  137. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  138. package/dist/types/ekyb.d.ts +34 -0
  139. package/dist/types/ekyc.d.ts +34 -0
  140. package/dist/types/electronic-signature.d.ts +43 -0
  141. package/dist/types/email.d.ts +14 -4
  142. package/dist/types/extensibility.d.ts +981 -0
  143. package/dist/types/face-match.d.ts +59 -0
  144. package/dist/types/flow.d.ts +81 -13
  145. package/dist/types/geolocation.d.ts +41 -0
  146. package/dist/types/governmentValidation.d.ts +34 -0
  147. package/dist/types/id-ocr/styles.d.ts +1 -0
  148. package/dist/types/id-verification.d.ts +40 -0
  149. package/dist/types/id.d.ts +41 -0
  150. package/dist/types/identity-reuse.d.ts +43 -0
  151. package/dist/types/index.d.ts +6 -12
  152. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  153. package/dist/types/phone.d.ts +14 -4
  154. package/dist/types/qe-signature.d.ts +40 -0
  155. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  156. package/dist/types/selfie.d.ts +14 -4
  157. package/dist/types/signature.d.ts +40 -0
  158. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  159. package/dist/types/watchlist.d.ts +40 -0
  160. package/dist/types/workflow.d.ts +91 -0
  161. package/dist/typography-CxjaknHN.js +28 -0
  162. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  163. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  164. package/dist/vendor-preact-D6SntenC.js +958 -0
  165. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  166. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  167. package/dist/watchlist/watchlist.es.js +33 -0
  168. package/dist/watchlist-for-business/styles.css +18 -0
  169. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  170. package/dist/workflow/styles.css +4612 -0
  171. package/dist/workflow/workflow.es.js +244 -0
  172. package/package.json +211 -15
  173. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  174. package/dist/incodeModule-Dv8Qllrv.js +0 -254
  175. package/dist/instance-B-q0ZREN.js +0 -2140
  176. package/dist/otpInput-BtoZe0Wz.js +0 -151
  177. package/dist/page-D9ijzlSn.js +0 -234
  178. package/dist/selfieTutorial-C-u5GufD.js +0 -29
  179. package/dist/setup-wNL83jmW.js +0 -20
  180. package/dist/title-BfO5Dlzk.js +0 -25
  181. package/dist/uiConfig-CQ1W9cUD.js +0 -23
  182. package/dist/vendor-preact-CK0WeTOR.js +0 -584
@@ -1,344 +0,0 @@
1
- function z(c, y) {
2
- for (var w = 0; w < y.length; w++) {
3
- const p = y[w];
4
- if (typeof p != "string" && !Array.isArray(p)) {
5
- for (const l in p)
6
- if (l !== "default" && !(l in c)) {
7
- const b = Object.getOwnPropertyDescriptor(p, l);
8
- b && Object.defineProperty(c, l, b.get ? b : {
9
- enumerable: !0,
10
- get: () => p[l]
11
- });
12
- }
13
- }
14
- }
15
- return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
16
- }
17
- var R = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function X(c) {
19
- return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
20
- }
21
- var A = { exports: {} }, U;
22
- function J() {
23
- return U || (U = 1, (function(c, y) {
24
- var w = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof R < "u" && R, p = (function() {
25
- function b() {
26
- this.fetch = !1, this.DOMException = w.DOMException;
27
- }
28
- return b.prototype = w, new b();
29
- })();
30
- (function(b) {
31
- (function(u) {
32
- var a = typeof b < "u" && b || typeof self < "u" && self || typeof a < "u" && a, f = {
33
- searchParams: "URLSearchParams" in a,
34
- iterable: "Symbol" in a && "iterator" in Symbol,
35
- blob: "FileReader" in a && "Blob" in a && (function() {
36
- try {
37
- return new Blob(), !0;
38
- } catch {
39
- return !1;
40
- }
41
- })(),
42
- formData: "FormData" in a,
43
- arrayBuffer: "ArrayBuffer" in a
44
- };
45
- function S(e) {
46
- return e && DataView.prototype.isPrototypeOf(e);
47
- }
48
- if (f.arrayBuffer)
49
- var F = [
50
- "[object Int8Array]",
51
- "[object Uint8Array]",
52
- "[object Uint8ClampedArray]",
53
- "[object Int16Array]",
54
- "[object Uint16Array]",
55
- "[object Int32Array]",
56
- "[object Uint32Array]",
57
- "[object Float32Array]",
58
- "[object Float64Array]"
59
- ], M = ArrayBuffer.isView || function(e) {
60
- return e && F.indexOf(Object.prototype.toString.call(e)) > -1;
61
- };
62
- function v(e) {
63
- if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "")
64
- throw new TypeError('Invalid character in header field name: "' + e + '"');
65
- return e.toLowerCase();
66
- }
67
- function E(e) {
68
- return typeof e != "string" && (e = String(e)), e;
69
- }
70
- function T(e) {
71
- var t = {
72
- next: function() {
73
- var r = e.shift();
74
- return { done: r === void 0, value: r };
75
- }
76
- };
77
- return f.iterable && (t[Symbol.iterator] = function() {
78
- return t;
79
- }), t;
80
- }
81
- function s(e) {
82
- this.map = {}, e instanceof s ? e.forEach(function(t, r) {
83
- this.append(r, t);
84
- }, this) : Array.isArray(e) ? e.forEach(function(t) {
85
- this.append(t[0], t[1]);
86
- }, this) : e && Object.getOwnPropertyNames(e).forEach(function(t) {
87
- this.append(t, e[t]);
88
- }, this);
89
- }
90
- s.prototype.append = function(e, t) {
91
- e = v(e), t = E(t);
92
- var r = this.map[e];
93
- this.map[e] = r ? r + ", " + t : t;
94
- }, s.prototype.delete = function(e) {
95
- delete this.map[v(e)];
96
- }, s.prototype.get = function(e) {
97
- return e = v(e), this.has(e) ? this.map[e] : null;
98
- }, s.prototype.has = function(e) {
99
- return this.map.hasOwnProperty(v(e));
100
- }, s.prototype.set = function(e, t) {
101
- this.map[v(e)] = E(t);
102
- }, s.prototype.forEach = function(e, t) {
103
- for (var r in this.map)
104
- this.map.hasOwnProperty(r) && e.call(t, this.map[r], r, this);
105
- }, s.prototype.keys = function() {
106
- var e = [];
107
- return this.forEach(function(t, r) {
108
- e.push(r);
109
- }), T(e);
110
- }, s.prototype.values = function() {
111
- var e = [];
112
- return this.forEach(function(t) {
113
- e.push(t);
114
- }), T(e);
115
- }, s.prototype.entries = function() {
116
- var e = [];
117
- return this.forEach(function(t, r) {
118
- e.push([r, t]);
119
- }), T(e);
120
- }, f.iterable && (s.prototype[Symbol.iterator] = s.prototype.entries);
121
- function B(e) {
122
- if (e.bodyUsed)
123
- return Promise.reject(new TypeError("Already read"));
124
- e.bodyUsed = !0;
125
- }
126
- function P(e) {
127
- return new Promise(function(t, r) {
128
- e.onload = function() {
129
- t(e.result);
130
- }, e.onerror = function() {
131
- r(e.error);
132
- };
133
- });
134
- }
135
- function I(e) {
136
- var t = new FileReader(), r = P(t);
137
- return t.readAsArrayBuffer(e), r;
138
- }
139
- function q(e) {
140
- var t = new FileReader(), r = P(t);
141
- return t.readAsText(e), r;
142
- }
143
- function H(e) {
144
- for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++)
145
- r[n] = String.fromCharCode(t[n]);
146
- return r.join("");
147
- }
148
- function D(e) {
149
- if (e.slice)
150
- return e.slice(0);
151
- var t = new Uint8Array(e.byteLength);
152
- return t.set(new Uint8Array(e)), t.buffer;
153
- }
154
- function x() {
155
- return this.bodyUsed = !1, this._initBody = function(e) {
156
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob && S(e) ? (this._bodyArrayBuffer = D(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : f.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || M(e)) ? this._bodyArrayBuffer = D(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) : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
157
- }, f.blob && (this.blob = function() {
158
- var e = B(this);
159
- if (e)
160
- return e;
161
- if (this._bodyBlob)
162
- return Promise.resolve(this._bodyBlob);
163
- if (this._bodyArrayBuffer)
164
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
165
- if (this._bodyFormData)
166
- throw new Error("could not read FormData body as blob");
167
- return Promise.resolve(new Blob([this._bodyText]));
168
- }, this.arrayBuffer = function() {
169
- if (this._bodyArrayBuffer) {
170
- var e = B(this);
171
- return e || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
172
- this._bodyArrayBuffer.buffer.slice(
173
- this._bodyArrayBuffer.byteOffset,
174
- this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
175
- )
176
- ) : Promise.resolve(this._bodyArrayBuffer));
177
- } else
178
- return this.blob().then(I);
179
- }), this.text = function() {
180
- var e = B(this);
181
- if (e)
182
- return e;
183
- if (this._bodyBlob)
184
- return q(this._bodyBlob);
185
- if (this._bodyArrayBuffer)
186
- return Promise.resolve(H(this._bodyArrayBuffer));
187
- if (this._bodyFormData)
188
- throw new Error("could not read FormData body as text");
189
- return Promise.resolve(this._bodyText);
190
- }, f.formData && (this.formData = function() {
191
- return this.text().then(k);
192
- }), this.json = function() {
193
- return this.text().then(JSON.parse);
194
- }, this;
195
- }
196
- var L = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
197
- function C(e) {
198
- var t = e.toUpperCase();
199
- return L.indexOf(t) > -1 ? t : e;
200
- }
201
- function m(e, t) {
202
- if (!(this instanceof m))
203
- throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
204
- t = t || {};
205
- var r = t.body;
206
- if (e instanceof m) {
207
- if (e.bodyUsed)
208
- throw new TypeError("Already read");
209
- this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new s(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !r && e._bodyInit != null && (r = e._bodyInit, e.bodyUsed = !0);
210
- } else
211
- this.url = String(e);
212
- if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method = C(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") && r)
213
- throw new TypeError("Body not allowed for GET or HEAD requests");
214
- if (this._initBody(r), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
215
- var n = /([?&])_=[^&]*/;
216
- if (n.test(this.url))
217
- this.url = this.url.replace(n, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
218
- else {
219
- var i = /\?/;
220
- this.url += (i.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
221
- }
222
- }
223
- }
224
- m.prototype.clone = function() {
225
- return new m(this, { body: this._bodyInit });
226
- };
227
- function k(e) {
228
- var t = new FormData();
229
- return e.trim().split("&").forEach(function(r) {
230
- if (r) {
231
- var n = r.split("="), i = n.shift().replace(/\+/g, " "), o = n.join("=").replace(/\+/g, " ");
232
- t.append(decodeURIComponent(i), decodeURIComponent(o));
233
- }
234
- }), t;
235
- }
236
- function N(e) {
237
- var t = new s(), r = e.replace(/\r?\n[\t ]+/g, " ");
238
- return r.split("\r").map(function(n) {
239
- return n.indexOf(`
240
- `) === 0 ? n.substr(1, n.length) : n;
241
- }).forEach(function(n) {
242
- var i = n.split(":"), o = i.shift().trim();
243
- if (o) {
244
- var _ = i.join(":").trim();
245
- t.append(o, _);
246
- }
247
- }), t;
248
- }
249
- x.call(m.prototype);
250
- function d(e, t) {
251
- if (!(this instanceof d))
252
- throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
253
- t || (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 s(t.headers), this.url = t.url || "", this._initBody(e);
254
- }
255
- x.call(d.prototype), d.prototype.clone = function() {
256
- return new d(this._bodyInit, {
257
- status: this.status,
258
- statusText: this.statusText,
259
- headers: new s(this.headers),
260
- url: this.url
261
- });
262
- }, d.error = function() {
263
- var e = new d(null, { status: 0, statusText: "" });
264
- return e.type = "error", e;
265
- };
266
- var G = [301, 302, 303, 307, 308];
267
- d.redirect = function(e, t) {
268
- if (G.indexOf(t) === -1)
269
- throw new RangeError("Invalid status code");
270
- return new d(null, { status: t, headers: { location: e } });
271
- }, u.DOMException = a.DOMException;
272
- try {
273
- new u.DOMException();
274
- } catch {
275
- u.DOMException = function(t, r) {
276
- this.message = t, this.name = r;
277
- var n = Error(t);
278
- this.stack = n.stack;
279
- }, u.DOMException.prototype = Object.create(Error.prototype), u.DOMException.prototype.constructor = u.DOMException;
280
- }
281
- function O(e, t) {
282
- return new Promise(function(r, n) {
283
- var i = new m(e, t);
284
- if (i.signal && i.signal.aborted)
285
- return n(new u.DOMException("Aborted", "AbortError"));
286
- var o = new XMLHttpRequest();
287
- function _() {
288
- o.abort();
289
- }
290
- o.onload = function() {
291
- var h = {
292
- status: o.status,
293
- statusText: o.statusText,
294
- headers: N(o.getAllResponseHeaders() || "")
295
- };
296
- h.url = "responseURL" in o ? o.responseURL : h.headers.get("X-Request-URL");
297
- var g = "response" in o ? o.response : o.responseText;
298
- setTimeout(function() {
299
- r(new d(g, h));
300
- }, 0);
301
- }, o.onerror = function() {
302
- setTimeout(function() {
303
- n(new TypeError("Network request failed"));
304
- }, 0);
305
- }, o.ontimeout = function() {
306
- setTimeout(function() {
307
- n(new TypeError("Network request failed"));
308
- }, 0);
309
- }, o.onabort = function() {
310
- setTimeout(function() {
311
- n(new u.DOMException("Aborted", "AbortError"));
312
- }, 0);
313
- };
314
- function V(h) {
315
- try {
316
- return h === "" && a.location.href ? a.location.href : h;
317
- } catch {
318
- return h;
319
- }
320
- }
321
- o.open(i.method, V(i.url), !0), i.credentials === "include" ? o.withCredentials = !0 : i.credentials === "omit" && (o.withCredentials = !1), "responseType" in o && (f.blob ? o.responseType = "blob" : f.arrayBuffer && i.headers.get("Content-Type") && i.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (o.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof s) ? Object.getOwnPropertyNames(t.headers).forEach(function(h) {
322
- o.setRequestHeader(h, E(t.headers[h]));
323
- }) : i.headers.forEach(function(h, g) {
324
- o.setRequestHeader(g, h);
325
- }), i.signal && (i.signal.addEventListener("abort", _), o.onreadystatechange = function() {
326
- o.readyState === 4 && i.signal.removeEventListener("abort", _);
327
- }), o.send(typeof i._bodyInit > "u" ? null : i._bodyInit);
328
- });
329
- }
330
- return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = s, a.Request = m, a.Response = d), u.Headers = s, u.Request = m, u.Response = d, u.fetch = O, u;
331
- })({});
332
- })(p), p.fetch.ponyfill = !0, delete p.fetch.polyfill;
333
- var l = w.fetch ? w : p;
334
- y = l.fetch, y.default = l.fetch, y.fetch = l.fetch, y.Headers = l.Headers, y.Request = l.Request, y.Response = l.Response, c.exports = y;
335
- })(A, A.exports)), A.exports;
336
- }
337
- var j = J();
338
- const K = /* @__PURE__ */ X(j), Q = /* @__PURE__ */ z({
339
- __proto__: null,
340
- default: K
341
- }, [j]);
342
- export {
343
- Q as b
344
- };
@@ -1,254 +0,0 @@
1
- import { l as m, d as I, y as w, _ as p, J as H, G as f, K as _, k as V } from "./vendor-preact-CK0WeTOR.js";
2
- var z = 0;
3
- function s(e, n, t, o, c, r) {
4
- n || (n = {});
5
- var a, i, l = n;
6
- if ("ref" in l) for (i in l = {}, n) i == "ref" ? a = n[i] : l[i] = n[i];
7
- var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --z, __i: -1, __u: 0, __source: c, __self: r };
8
- if (typeof e == "function" && (a = e.defaultProps)) for (i in a) l[i] === void 0 && (l[i] = a[i]);
9
- return m.vnode && m.vnode(d), d;
10
- }
11
- function G(e, n = {}) {
12
- const { autoLoad: t = !0 } = n, [o] = I(e), [c, r] = I(
13
- () => o.getState()
14
- );
15
- return w(() => (t && o.load && o.load(), o.subscribe(r)), [o, t]), [c, o];
16
- }
17
- const h = (...e) => {
18
- const n = [];
19
- for (const t of e)
20
- if (t) {
21
- if (typeof t == "string")
22
- n.push(t);
23
- else if (typeof t == "object")
24
- for (const [o, c] of Object.entries(t))
25
- c && n.push(o);
26
- }
27
- return n.join(" ");
28
- }, L = ({
29
- size: e,
30
- className: n
31
- }) => /* @__PURE__ */ s(
32
- "svg",
33
- {
34
- width: e,
35
- height: e,
36
- viewBox: "0 0 31 31",
37
- fill: "none",
38
- xmlns: "http://www.w3.org/2000/svg",
39
- class: h("IncodeLoadingIconPrimaryIcon", n),
40
- children: [
41
- /* @__PURE__ */ s("title", { children: "Spinner Inner part" }),
42
- /* @__PURE__ */ s("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" })
43
- ]
44
- }
45
- ), k = ({
46
- size: e,
47
- className: n
48
- }) => /* @__PURE__ */ s(
49
- "svg",
50
- {
51
- width: e,
52
- height: e,
53
- viewBox: "0 0 31 31",
54
- fill: "none",
55
- xmlns: "http://www.w3.org/2000/svg",
56
- class: h("IncodeLoadingIconSecondaryIcon", n),
57
- children: [
58
- /* @__PURE__ */ s("title", { children: "Spinner Outer part" }),
59
- /* @__PURE__ */ s("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" })
60
- ]
61
- }
62
- ), x = ({
63
- size: e = 30,
64
- secondaryClass: n,
65
- primaryClass: t
66
- }) => /* @__PURE__ */ s("div", { class: "IncodeLoadingIcon", children: [
67
- /* @__PURE__ */ s(k, { size: e, className: n }),
68
- /* @__PURE__ */ s("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ s(L, { size: e, className: t }) })
69
- ] }), E = {
70
- primary: "IncodeButtonPrimary",
71
- link: "IncodeButtonLink"
72
- }, J = (e) => {
73
- const {
74
- isLoading: n = !1,
75
- variant: t = "primary",
76
- class: o,
77
- type: c = "button",
78
- children: r,
79
- disabled: a,
80
- ...i
81
- } = e;
82
- return /* @__PURE__ */ s(
83
- "button",
84
- {
85
- ...i,
86
- class: h(
87
- "IncodeButton",
88
- n ? "IncodeButtonLoading" : "",
89
- E[t],
90
- o
91
- ),
92
- disabled: a || n,
93
- type: c,
94
- children: n ? /* @__PURE__ */ s(x, { size: 30 }) : r
95
- }
96
- );
97
- }, O = /* @__PURE__ */ new Set([
98
- 0,
99
- 2,
100
- 4,
101
- 8,
102
- 12,
103
- 16,
104
- 20,
105
- 24,
106
- 32,
107
- 40,
108
- 48,
109
- 64,
110
- 80,
111
- 96,
112
- 104,
113
- 120,
114
- 160,
115
- 200
116
- ]), j = (e, n) => n === "horizontal" ? {
117
- 0: "IncodeSpacerHorizontal0",
118
- 2: "IncodeSpacerHorizontal2",
119
- 4: "IncodeSpacerHorizontal4",
120
- 8: "IncodeSpacerHorizontal8",
121
- 12: "IncodeSpacerHorizontal12",
122
- 16: "IncodeSpacerHorizontal16",
123
- 20: "IncodeSpacerHorizontal20",
124
- 24: "IncodeSpacerHorizontal24",
125
- 32: "IncodeSpacerHorizontal32",
126
- 40: "IncodeSpacerHorizontal40",
127
- 48: "IncodeSpacerHorizontal48",
128
- 64: "IncodeSpacerHorizontal64",
129
- 80: "IncodeSpacerHorizontal80",
130
- 96: "IncodeSpacerHorizontal96",
131
- 104: "IncodeSpacerHorizontal104",
132
- 120: "IncodeSpacerHorizontal120",
133
- 160: "IncodeSpacerHorizontal160",
134
- 200: "IncodeSpacerHorizontal200"
135
- }[e] : {
136
- 0: "IncodeSpacerVertical0",
137
- 2: "IncodeSpacerVertical2",
138
- 4: "IncodeSpacerVertical4",
139
- 8: "IncodeSpacerVertical8",
140
- 12: "IncodeSpacerVertical12",
141
- 16: "IncodeSpacerVertical16",
142
- 20: "IncodeSpacerVertical20",
143
- 24: "IncodeSpacerVertical24",
144
- 32: "IncodeSpacerVertical32",
145
- 40: "IncodeSpacerVertical40",
146
- 48: "IncodeSpacerVertical48",
147
- 64: "IncodeSpacerVertical64",
148
- 80: "IncodeSpacerVertical80",
149
- 96: "IncodeSpacerVertical96",
150
- 104: "IncodeSpacerVertical104",
151
- 120: "IncodeSpacerVertical120",
152
- 160: "IncodeSpacerVertical160",
153
- 200: "IncodeSpacerVertical200"
154
- }[e], R = ({
155
- size: e,
156
- className: n,
157
- direction: t = "vertical"
158
- }) => e === void 0 ? /* @__PURE__ */ s("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" && O.has(e) ? /* @__PURE__ */ s("div", { class: `${j(e, t)} ${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` });
159
- function u() {
160
- return u = Object.assign ? Object.assign.bind() : function(e) {
161
- for (var n = 1; n < arguments.length; n++) {
162
- var t = arguments[n];
163
- for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
164
- }
165
- return e;
166
- }, u.apply(this, arguments);
167
- }
168
- function g(e, n) {
169
- if (e == null) return {};
170
- var t, o, c = {}, r = Object.keys(e);
171
- for (o = 0; o < r.length; o++) n.indexOf(t = r[o]) >= 0 || (c[t] = e[t]);
172
- return c;
173
- }
174
- var M = ["context", "children"], P = ["useFragment"];
175
- function $(e, n, t, o) {
176
- function c() {
177
- var r, a = Reflect.construct(HTMLElement, [], c);
178
- return a._vdomComponent = e, o && o.shadow ? (a._root = a.attachShadow({ mode: o.mode || "open", serializable: (r = o.serializable) != null && r }), o.adoptedStyleSheets && (a._root.adoptedStyleSheets = o.adoptedStyleSheets)) : a._root = a, a;
179
- }
180
- return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
181
- T.call(this, o);
182
- }, c.prototype.attributeChangedCallback = A, c.prototype.disconnectedCallback = F, t = t || e.observedAttributes || Object.keys(e.propTypes || {}), c.observedAttributes = t, e.formAssociated && (c.formAssociated = !0), t.forEach(function(r) {
183
- Object.defineProperty(c.prototype, r, { get: function() {
184
- return this._vdom ? this._vdom.props[r] : this._props[r];
185
- }, set: function(a) {
186
- this._vdom ? this.attributeChangedCallback(r, null, a) : (this._props || (this._props = {}), this._props[r] = a);
187
- var i = typeof a;
188
- a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(r, a);
189
- } });
190
- }), customElements.define(n || e.tagName || e.displayName || e.name, c), c;
191
- }
192
- function B(e) {
193
- this.getChildContext = function() {
194
- return e.context;
195
- };
196
- var n = e.children, t = g(e, M);
197
- return _(n, t);
198
- }
199
- function T(e) {
200
- var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
201
- this.dispatchEvent(n), this._vdom = p(B, u({}, this._props, { context: n.detail.context }), y(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? H : f)(this._vdom, this._root);
202
- }
203
- function b(e) {
204
- return e.replace(/-(\w)/g, function(n, t) {
205
- return t ? t.toUpperCase() : "";
206
- });
207
- }
208
- function A(e, n, t) {
209
- if (this._vdom) {
210
- var o = {};
211
- o[e] = t = t ?? void 0, o[b(e)] = t, this._vdom = _(this._vdom, o), f(this._vdom, this._root);
212
- }
213
- }
214
- function F() {
215
- f(this._vdom = null, this._root);
216
- }
217
- function S(e, n) {
218
- var t = this, o = e.useFragment, c = g(e, P);
219
- return p(o ? V : "slot", u({}, c, { ref: function(r) {
220
- r ? (t.ref = r, t._listener || (t._listener = function(a) {
221
- a.stopPropagation(), a.detail.context = n;
222
- }, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
223
- } }));
224
- }
225
- function y(e, n, t) {
226
- if (e.nodeType === 3) return e.data;
227
- if (e.nodeType !== 1) return null;
228
- var o = [], c = {}, r = 0, a = e.attributes, i = e.childNodes;
229
- for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[b(a[r].name)] = a[r].value);
230
- for (r = i.length; r--; ) {
231
- var l = y(i[r], null, t), d = i[r].slot;
232
- d ? c[d] = p(S, { name: d }, l) : o[r] = l;
233
- }
234
- var v = !(!t || !t.shadow), C = n ? p(S, { useFragment: !v }, o) : o;
235
- return !v && n && (e.innerHTML = ""), p(n || e.nodeName.toLowerCase(), c, C);
236
- }
237
- function N(e, n, t) {
238
- $(e, n, [...t], {
239
- shadow: !1
240
- });
241
- }
242
- const Z = ["config", "onFinish", "onError"];
243
- function U(e, n) {
244
- N(e, n, Z);
245
- }
246
- export {
247
- J as B,
248
- x as L,
249
- R as S,
250
- G as a,
251
- h as c,
252
- U as r,
253
- s as u
254
- };