@incodetech/web 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +58 -0
- package/.turbo/turbo-coverage.log +23 -0
- package/.turbo/turbo-format.log +6 -0
- package/.turbo/turbo-lint$colon$fix.log +6 -0
- package/.turbo/turbo-lint.log +6 -0
- package/.turbo/turbo-test.log +1033 -0
- package/.turbo/turbo-typecheck.log +5 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/email/email.tsx.html +850 -0
- package/coverage/email/emailInput.tsx.html +340 -0
- package/coverage/email/index.html +131 -0
- package/coverage/favicon.png +0 -0
- package/coverage/flow/flow.tsx.html +961 -0
- package/coverage/flow/flowCompleted.tsx.html +448 -0
- package/coverage/flow/flowInit.ts.html +367 -0
- package/coverage/flow/flowStart.tsx.html +208 -0
- package/coverage/flow/index.html +221 -0
- package/coverage/flow/preloadFlow.ts.html +598 -0
- package/coverage/flow/unsupportedModule.tsx.html +202 -0
- package/coverage/flow/useFlowInitialization.ts.html +469 -0
- package/coverage/flow/useModuleLoader.ts.html +361 -0
- package/coverage/hooks/index.html +116 -0
- package/coverage/hooks/useManager.ts.html +205 -0
- package/coverage/index.html +401 -0
- package/coverage/permissions/boldWithArrow.tsx.html +208 -0
- package/coverage/permissions/denied.tsx.html +172 -0
- package/coverage/permissions/deniedAndroid.tsx.html +253 -0
- package/coverage/permissions/deniedDesktop.tsx.html +277 -0
- package/coverage/permissions/deniedIOS.tsx.html +304 -0
- package/coverage/permissions/deniedInstructions.tsx.html +142 -0
- package/coverage/permissions/iconWrapper.tsx.html +130 -0
- package/coverage/permissions/index.html +251 -0
- package/coverage/permissions/learnMore.tsx.html +340 -0
- package/coverage/permissions/numberedStep.tsx.html +127 -0
- package/coverage/permissions/permissions.tsx.html +289 -0
- package/coverage/phone/index.html +116 -0
- package/coverage/phone/phoneInput.tsx.html +832 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/selfie/index.html +131 -0
- package/coverage/selfie/selfie.tsx.html +334 -0
- package/coverage/selfie/tutorial.tsx.html +214 -0
- package/coverage/shared/baseTutorial/baseTutorial.tsx.html +250 -0
- package/coverage/shared/baseTutorial/index.html +131 -0
- package/coverage/shared/baseTutorial/replaceBaseTutorial.ts.html +289 -0
- package/coverage/shared/button/button.tsx.html +226 -0
- package/coverage/shared/button/index.html +116 -0
- package/coverage/shared/componentRoot/incodeComponent.tsx.html +121 -0
- package/coverage/shared/componentRoot/index.html +116 -0
- package/coverage/shared/countries/countries.ts.html +502 -0
- package/coverage/shared/countries/index.html +116 -0
- package/coverage/shared/icons/chevronDown.tsx.html +151 -0
- package/coverage/shared/icons/index.html +131 -0
- package/coverage/shared/icons/successIcon.tsx.html +163 -0
- package/coverage/shared/loader/index.html +116 -0
- package/coverage/shared/loader/loadingIcon.tsx.html +286 -0
- package/coverage/shared/otpInput/index.html +116 -0
- package/coverage/shared/otpInput/otpInput.tsx.html +808 -0
- package/coverage/shared/page/index.html +146 -0
- package/coverage/shared/page/page.tsx.html +358 -0
- package/coverage/shared/page/pageUiConfig.ts.html +277 -0
- package/coverage/shared/page/verifiedByIncode.tsx.html +310 -0
- package/coverage/shared/spacer/index.html +116 -0
- package/coverage/shared/spacer/spacer.tsx.html +349 -0
- package/coverage/shared/spinner/index.html +116 -0
- package/coverage/shared/spinner/spinner.tsx.html +280 -0
- package/coverage/shared/title/index.html +116 -0
- package/coverage/shared/title/title.tsx.html +121 -0
- package/coverage/shared/uiConfig/index.html +116 -0
- package/coverage/shared/uiConfig/uiConfig.ts.html +193 -0
- package/coverage/shared/webComponent/incodeModule.ts.html +172 -0
- package/coverage/shared/webComponent/index.html +131 -0
- package/coverage/shared/webComponent/registerIncodeElement.ts.html +130 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/coverage/styles/cn.tsx.html +148 -0
- package/coverage/styles/fetchTheme.ts.html +349 -0
- package/coverage/styles/index.html +131 -0
- package/dist/asset-manifest.json +18 -0
- package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
- package/dist/button-DeMZ_34N.js +266 -0
- package/dist/button.css +335 -0
- package/dist/email/email.es.js +145 -0
- package/dist/email/styles.css +123 -0
- package/dist/flow/flow.es.js +9 -0
- package/dist/flow/styles.css +204 -0
- package/dist/flow-ZK6OBsa3.js +568 -0
- package/dist/incodeModule-BF5MX9GT.js +243 -0
- package/dist/incodeModule.css +119 -0
- package/dist/index.es.js +101 -0
- package/dist/otpInput-BUrV4IAF.js +151 -0
- package/dist/otpInput.css +167 -0
- package/dist/phone/phone.es.js +3442 -0
- package/dist/phone/styles.css +305 -0
- package/dist/selfie/selfie.es.js +893 -0
- package/dist/selfie/styles.css +1163 -0
- package/dist/selfieTutorial-C-u5GufD.js +29 -0
- package/dist/styles/core.css +1013 -0
- package/dist/styles/tokens.css +543 -0
- package/dist/successIcon.css +4 -0
- package/dist/title-ng7q7YDh.js +2161 -0
- package/dist/title.css +38 -0
- package/dist/types/core.d.ts +1 -0
- package/dist/types/email/email.d.ts +2 -0
- package/dist/types/email.d.ts +50 -0
- package/dist/types/flow/flow.d.ts +2 -0
- package/dist/types/flow.d.ts +46 -0
- package/dist/types/index.d.ts +223 -0
- package/dist/types/phone/phone.d.ts +2 -0
- package/dist/types/phone.d.ts +51 -0
- package/dist/types/selfie/selfie.d.ts +2 -0
- package/dist/types/selfie.d.ts +24 -0
- package/dist/types/styles/core.d.ts +1 -0
- package/dist/vendor-preact-CK0WeTOR.js +584 -0
- package/package.json +17 -17
|
@@ -0,0 +1,344 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { l as m, _ as u, J as V, G as h, K as b, k as z, d as I, y as L, C as k } from "./vendor-preact-CK0WeTOR.js";
|
|
2
|
+
var x = 0;
|
|
3
|
+
function s(e, t, n, r, c, o) {
|
|
4
|
+
t || (t = {});
|
|
5
|
+
var a, i, l = t;
|
|
6
|
+
if ("ref" in l) for (i in l = {}, t) i == "ref" ? a = t[i] : l[i] = t[i];
|
|
7
|
+
var d = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --x, __i: -1, __u: 0, __source: c, __self: o };
|
|
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 p() {
|
|
12
|
+
return p = Object.assign ? Object.assign.bind() : function(e) {
|
|
13
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
14
|
+
var n = arguments[t];
|
|
15
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
16
|
+
}
|
|
17
|
+
return e;
|
|
18
|
+
}, p.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
function g(e, t) {
|
|
21
|
+
if (e == null) return {};
|
|
22
|
+
var n, r, c = {}, o = Object.keys(e);
|
|
23
|
+
for (r = 0; r < o.length; r++) t.indexOf(n = o[r]) >= 0 || (c[n] = e[n]);
|
|
24
|
+
return c;
|
|
25
|
+
}
|
|
26
|
+
var O = ["context", "children"], j = ["useFragment"];
|
|
27
|
+
function K(e, t, n, r) {
|
|
28
|
+
function c() {
|
|
29
|
+
var o, a = Reflect.construct(HTMLElement, [], c);
|
|
30
|
+
return a._vdomComponent = e, r && r.shadow ? (a._root = a.attachShadow({ mode: r.mode || "open", serializable: (o = r.serializable) != null && o }), r.adoptedStyleSheets && (a._root.adoptedStyleSheets = r.adoptedStyleSheets)) : a._root = a, a;
|
|
31
|
+
}
|
|
32
|
+
return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
|
|
33
|
+
B.call(this, r);
|
|
34
|
+
}, c.prototype.attributeChangedCallback = E, c.prototype.disconnectedCallback = P, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), c.observedAttributes = n, e.formAssociated && (c.formAssociated = !0), n.forEach(function(o) {
|
|
35
|
+
Object.defineProperty(c.prototype, o, { get: function() {
|
|
36
|
+
return this._vdom ? this._vdom.props[o] : this._props[o];
|
|
37
|
+
}, set: function(a) {
|
|
38
|
+
this._vdom ? this.attributeChangedCallback(o, null, a) : (this._props || (this._props = {}), this._props[o] = a);
|
|
39
|
+
var i = typeof a;
|
|
40
|
+
a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(o, a);
|
|
41
|
+
} });
|
|
42
|
+
}), customElements.define(t || e.tagName || e.displayName || e.name, c), c;
|
|
43
|
+
}
|
|
44
|
+
function $(e) {
|
|
45
|
+
this.getChildContext = function() {
|
|
46
|
+
return e.context;
|
|
47
|
+
};
|
|
48
|
+
var t = e.children, n = g(e, O);
|
|
49
|
+
return b(t, n);
|
|
50
|
+
}
|
|
51
|
+
function B(e) {
|
|
52
|
+
var t = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
53
|
+
this.dispatchEvent(t), this._vdom = u($, p({}, this._props, { context: t.detail.context }), C(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? V : h)(this._vdom, this._root);
|
|
54
|
+
}
|
|
55
|
+
function y(e) {
|
|
56
|
+
return e.replace(/-(\w)/g, function(t, n) {
|
|
57
|
+
return n ? n.toUpperCase() : "";
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function E(e, t, n) {
|
|
61
|
+
if (this._vdom) {
|
|
62
|
+
var r = {};
|
|
63
|
+
r[e] = n = n ?? void 0, r[y(e)] = n, this._vdom = b(this._vdom, r), h(this._vdom, this._root);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function P() {
|
|
67
|
+
h(this._vdom = null, this._root);
|
|
68
|
+
}
|
|
69
|
+
function _(e, t) {
|
|
70
|
+
var n = this, r = e.useFragment, c = g(e, j);
|
|
71
|
+
return u(r ? z : "slot", p({}, c, { ref: function(o) {
|
|
72
|
+
o ? (n.ref = o, n._listener || (n._listener = function(a) {
|
|
73
|
+
a.stopPropagation(), a.detail.context = t;
|
|
74
|
+
}, o.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
|
|
75
|
+
} }));
|
|
76
|
+
}
|
|
77
|
+
function C(e, t, n) {
|
|
78
|
+
if (e.nodeType === 3) return e.data;
|
|
79
|
+
if (e.nodeType !== 1) return null;
|
|
80
|
+
var r = [], c = {}, o = 0, a = e.attributes, i = e.childNodes;
|
|
81
|
+
for (o = a.length; o--; ) a[o].name !== "slot" && (c[a[o].name] = a[o].value, c[y(a[o].name)] = a[o].value);
|
|
82
|
+
for (o = i.length; o--; ) {
|
|
83
|
+
var l = C(i[o], null, n), d = i[o].slot;
|
|
84
|
+
d ? c[d] = u(_, { name: d }, l) : r[o] = l;
|
|
85
|
+
}
|
|
86
|
+
var S = !(!n || !n.shadow), H = t ? u(_, { useFragment: !S }, r) : r;
|
|
87
|
+
return !S && t && (e.innerHTML = ""), u(t || e.nodeName.toLowerCase(), c, H);
|
|
88
|
+
}
|
|
89
|
+
function R(e, t = {}) {
|
|
90
|
+
const { autoLoad: n = !0 } = t, [r] = I(e), [c, o] = I(
|
|
91
|
+
() => r.getState()
|
|
92
|
+
);
|
|
93
|
+
return L(() => (n && r.load && r.load(), r.subscribe(o)), [r, n]), [c, r];
|
|
94
|
+
}
|
|
95
|
+
const v = (...e) => {
|
|
96
|
+
const t = [];
|
|
97
|
+
for (const n of e)
|
|
98
|
+
if (n) {
|
|
99
|
+
if (typeof n == "string")
|
|
100
|
+
t.push(n);
|
|
101
|
+
else if (typeof n == "object")
|
|
102
|
+
for (const [r, c] of Object.entries(n))
|
|
103
|
+
c && t.push(r);
|
|
104
|
+
}
|
|
105
|
+
return t.join(" ");
|
|
106
|
+
}, T = ({
|
|
107
|
+
size: e,
|
|
108
|
+
className: t
|
|
109
|
+
}) => /* @__PURE__ */ s(
|
|
110
|
+
"svg",
|
|
111
|
+
{
|
|
112
|
+
width: e,
|
|
113
|
+
height: e,
|
|
114
|
+
viewBox: "0 0 31 31",
|
|
115
|
+
fill: "none",
|
|
116
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
+
class: v("IncodeLoadingIconPrimaryIcon", t),
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ s("title", { children: "Spinner Inner part" }),
|
|
120
|
+
/* @__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" })
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
), M = ({
|
|
124
|
+
size: e,
|
|
125
|
+
className: t
|
|
126
|
+
}) => /* @__PURE__ */ s(
|
|
127
|
+
"svg",
|
|
128
|
+
{
|
|
129
|
+
width: e,
|
|
130
|
+
height: e,
|
|
131
|
+
viewBox: "0 0 31 31",
|
|
132
|
+
fill: "none",
|
|
133
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
134
|
+
class: v("IncodeLoadingIconSecondaryIcon", t),
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ s("title", { children: "Spinner Outer part" }),
|
|
137
|
+
/* @__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" })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
), A = ({
|
|
141
|
+
size: e = 30,
|
|
142
|
+
secondaryClass: t,
|
|
143
|
+
primaryClass: n
|
|
144
|
+
}) => /* @__PURE__ */ s("div", { class: "IncodeLoadingIcon", children: [
|
|
145
|
+
/* @__PURE__ */ s(M, { size: e, className: t }),
|
|
146
|
+
/* @__PURE__ */ s("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ s(T, { size: e, className: n }) })
|
|
147
|
+
] }), N = /* @__PURE__ */ new Set([
|
|
148
|
+
0,
|
|
149
|
+
2,
|
|
150
|
+
4,
|
|
151
|
+
8,
|
|
152
|
+
12,
|
|
153
|
+
16,
|
|
154
|
+
20,
|
|
155
|
+
24,
|
|
156
|
+
32,
|
|
157
|
+
40,
|
|
158
|
+
48,
|
|
159
|
+
64,
|
|
160
|
+
80,
|
|
161
|
+
96,
|
|
162
|
+
104,
|
|
163
|
+
120,
|
|
164
|
+
160,
|
|
165
|
+
200
|
|
166
|
+
]), F = (e, t) => t === "horizontal" ? {
|
|
167
|
+
0: "IncodeSpacerHorizontal0",
|
|
168
|
+
2: "IncodeSpacerHorizontal2",
|
|
169
|
+
4: "IncodeSpacerHorizontal4",
|
|
170
|
+
8: "IncodeSpacerHorizontal8",
|
|
171
|
+
12: "IncodeSpacerHorizontal12",
|
|
172
|
+
16: "IncodeSpacerHorizontal16",
|
|
173
|
+
20: "IncodeSpacerHorizontal20",
|
|
174
|
+
24: "IncodeSpacerHorizontal24",
|
|
175
|
+
32: "IncodeSpacerHorizontal32",
|
|
176
|
+
40: "IncodeSpacerHorizontal40",
|
|
177
|
+
48: "IncodeSpacerHorizontal48",
|
|
178
|
+
64: "IncodeSpacerHorizontal64",
|
|
179
|
+
80: "IncodeSpacerHorizontal80",
|
|
180
|
+
96: "IncodeSpacerHorizontal96",
|
|
181
|
+
104: "IncodeSpacerHorizontal104",
|
|
182
|
+
120: "IncodeSpacerHorizontal120",
|
|
183
|
+
160: "IncodeSpacerHorizontal160",
|
|
184
|
+
200: "IncodeSpacerHorizontal200"
|
|
185
|
+
}[e] : {
|
|
186
|
+
0: "IncodeSpacerVertical0",
|
|
187
|
+
2: "IncodeSpacerVertical2",
|
|
188
|
+
4: "IncodeSpacerVertical4",
|
|
189
|
+
8: "IncodeSpacerVertical8",
|
|
190
|
+
12: "IncodeSpacerVertical12",
|
|
191
|
+
16: "IncodeSpacerVertical16",
|
|
192
|
+
20: "IncodeSpacerVertical20",
|
|
193
|
+
24: "IncodeSpacerVertical24",
|
|
194
|
+
32: "IncodeSpacerVertical32",
|
|
195
|
+
40: "IncodeSpacerVertical40",
|
|
196
|
+
48: "IncodeSpacerVertical48",
|
|
197
|
+
64: "IncodeSpacerVertical64",
|
|
198
|
+
80: "IncodeSpacerVertical80",
|
|
199
|
+
96: "IncodeSpacerVertical96",
|
|
200
|
+
104: "IncodeSpacerVertical104",
|
|
201
|
+
120: "IncodeSpacerVertical120",
|
|
202
|
+
160: "IncodeSpacerVertical160",
|
|
203
|
+
200: "IncodeSpacerVertical200"
|
|
204
|
+
}[e], q = ({
|
|
205
|
+
size: e,
|
|
206
|
+
className: t,
|
|
207
|
+
direction: n = "vertical"
|
|
208
|
+
}) => e === void 0 ? /* @__PURE__ */ s("div", { class: `IncodeSpacerFlex ${t || ""}` }) : (n === "horizontal" ? "w" : n === "vertical" ? "h" : void 0) ? typeof e == "number" && N.has(e) ? /* @__PURE__ */ s("div", { class: `${F(e, n)} ${t || ""}` }) : /* @__PURE__ */ s("div", { class: `${t || ""}` }) : /* @__PURE__ */ s("div", { class: `${t || ""}` });
|
|
209
|
+
let w = {};
|
|
210
|
+
const f = /* @__PURE__ */ new Set();
|
|
211
|
+
function U(e) {
|
|
212
|
+
return f.add(e), () => {
|
|
213
|
+
f.delete(e);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function Z() {
|
|
217
|
+
return w;
|
|
218
|
+
}
|
|
219
|
+
function D(e) {
|
|
220
|
+
w = e;
|
|
221
|
+
for (const t of f)
|
|
222
|
+
t();
|
|
223
|
+
}
|
|
224
|
+
function Q() {
|
|
225
|
+
return k(U, Z);
|
|
226
|
+
}
|
|
227
|
+
const G = {
|
|
228
|
+
primary: "IncodeButtonPrimary",
|
|
229
|
+
link: "IncodeButtonLink"
|
|
230
|
+
}, W = (e) => {
|
|
231
|
+
const {
|
|
232
|
+
isLoading: t = !1,
|
|
233
|
+
variant: n = "primary",
|
|
234
|
+
class: r,
|
|
235
|
+
type: c = "button",
|
|
236
|
+
children: o,
|
|
237
|
+
disabled: a,
|
|
238
|
+
...i
|
|
239
|
+
} = e;
|
|
240
|
+
return /* @__PURE__ */ s(
|
|
241
|
+
"button",
|
|
242
|
+
{
|
|
243
|
+
...i,
|
|
244
|
+
class: v(
|
|
245
|
+
"IncodeButton",
|
|
246
|
+
t ? "IncodeButtonLoading" : "",
|
|
247
|
+
G[n],
|
|
248
|
+
r
|
|
249
|
+
),
|
|
250
|
+
disabled: a || t,
|
|
251
|
+
type: c,
|
|
252
|
+
children: t ? /* @__PURE__ */ s(A, { size: 30 }) : o
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
};
|
|
256
|
+
export {
|
|
257
|
+
W as B,
|
|
258
|
+
A as L,
|
|
259
|
+
q as S,
|
|
260
|
+
R as a,
|
|
261
|
+
v as b,
|
|
262
|
+
K as c,
|
|
263
|
+
Q as d,
|
|
264
|
+
D as s,
|
|
265
|
+
s as u
|
|
266
|
+
};
|