@incodetech/web 2.0.0-alpha.1 → 2.0.0-alpha.3
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/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 +20 -17
- package/dev/README.md +0 -163
- package/dev/getToken.ts +0 -36
- package/dev/headless.html +0 -875
- package/dev/index.html +0 -366
- package/dev/main-headless.tsx +0 -1332
- package/dev/main-orchestrated-flow.tsx +0 -1158
- package/dev/main-preact.tsx +0 -323
- package/dev/main-simplified.tsx +0 -123
- package/dev/main-web-component.tsx +0 -256
- package/dev/main.tsx +0 -332
- package/dev/manual.html +0 -27
- package/dev/orchestrated-flow.html +0 -64
- package/dev/simplified.html +0 -64
- package/dev/tiktok-logo.svg +0 -7
- package/src/defineCustomElement.tsx +0 -30
- package/src/email/email.test.tsx +0 -368
- package/src/email/email.tsx +0 -255
- package/src/email/emailInput.test.tsx +0 -264
- package/src/email/emailInput.tsx +0 -85
- package/src/email/styles.css +0 -59
- package/src/flow/flow.test.tsx +0 -796
- package/src/flow/flow.tsx +0 -292
- package/src/flow/flowCompleted.css +0 -30
- package/src/flow/flowCompleted.test.tsx +0 -331
- package/src/flow/flowCompleted.tsx +0 -121
- package/src/flow/flowInit.test.ts +0 -264
- package/src/flow/flowInit.ts +0 -94
- package/src/flow/flowStart.css +0 -58
- package/src/flow/flowStart.test.tsx +0 -49
- package/src/flow/flowStart.tsx +0 -41
- package/src/flow/incode-logo.svg +0 -8
- package/src/flow/index.ts +0 -7
- package/src/flow/preloadFlow.test.ts +0 -421
- package/src/flow/preloadFlow.ts +0 -171
- package/src/flow/styles.css +0 -9
- package/src/flow/unsupportedModule.css +0 -21
- package/src/flow/unsupportedModule.tsx +0 -39
- package/src/flow/useFlowInitialization.test.tsx +0 -292
- package/src/flow/useFlowInitialization.ts +0 -128
- package/src/flow/useModuleLoader.test.tsx +0 -212
- package/src/flow/useModuleLoader.ts +0 -92
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useManager.test.ts +0 -91
- package/src/hooks/useManager.ts +0 -40
- package/src/i18n/index.ts +0 -3
- package/src/i18n/instance.ts +0 -16
- package/src/i18n/setup.ts +0 -184
- package/src/i18n/useTranslation.ts +0 -42
- package/src/index.ts +0 -27
- package/src/permissions/assets/android-dots-icon.svg +0 -7
- package/src/permissions/assets/android-settings-icon.svg +0 -16
- package/src/permissions/assets/android-toggle-icon.svg +0 -20
- package/src/permissions/assets/bank-card-icon.svg +0 -14
- package/src/permissions/assets/camera-icon.svg +0 -12
- package/src/permissions/assets/camera-ios.svg +0 -53
- package/src/permissions/assets/check-icon.svg +0 -8
- package/src/permissions/assets/chrome-icon.svg +0 -43
- package/src/permissions/assets/password-icon.svg +0 -11
- package/src/permissions/assets/permissions-img.svg +0 -51
- package/src/permissions/assets/safari-icon.svg +0 -37
- package/src/permissions/assets/settings-icon.svg +0 -33
- package/src/permissions/assets/toggle-icon.svg +0 -19
- package/src/permissions/assets/warning-icon.svg +0 -6
- package/src/permissions/boldWithArrow.css +0 -9
- package/src/permissions/boldWithArrow.tsx +0 -41
- package/src/permissions/denied.css +0 -37
- package/src/permissions/denied.tsx +0 -29
- package/src/permissions/deniedAndroid.tsx +0 -56
- package/src/permissions/deniedDesktop.css +0 -9
- package/src/permissions/deniedDesktop.tsx +0 -64
- package/src/permissions/deniedIOS.tsx +0 -73
- package/src/permissions/deniedInstructions.tsx +0 -19
- package/src/permissions/iconWrapper.css +0 -9
- package/src/permissions/iconWrapper.tsx +0 -15
- package/src/permissions/learnMore.css +0 -37
- package/src/permissions/learnMore.tsx +0 -85
- package/src/permissions/numberedStep.css +0 -13
- package/src/permissions/numberedStep.tsx +0 -14
- package/src/permissions/permissions.css +0 -13
- package/src/permissions/permissions.tsx +0 -68
- package/src/phone/phone.tsx +0 -246
- package/src/phone/phoneInput.test.tsx +0 -275
- package/src/phone/phoneInput.tsx +0 -249
- package/src/phone/styles.css +0 -158
- package/src/selfie/cameraButton.css +0 -13
- package/src/selfie/cameraButton.tsx +0 -35
- package/src/selfie/capture.css +0 -57
- package/src/selfie/capture.tsx +0 -232
- package/src/selfie/errorModal.tsx +0 -218
- package/src/selfie/errorModalContent.css +0 -33
- package/src/selfie/errorModalContent.tsx +0 -44
- package/src/selfie/faceOutline.css +0 -5
- package/src/selfie/faceOutline.tsx +0 -22
- package/src/selfie/loadingBorder.css +0 -12
- package/src/selfie/loadingBorder.tsx +0 -77
- package/src/selfie/manualCaptureButton.css +0 -13
- package/src/selfie/manualCaptureButton.tsx +0 -35
- package/src/selfie/noMoreAttemptsModal.tsx +0 -44
- package/src/selfie/notification.css +0 -9
- package/src/selfie/notification.tsx +0 -36
- package/src/selfie/retryErrorModal.tsx +0 -56
- package/src/selfie/selfie.test.tsx +0 -458
- package/src/selfie/selfie.tsx +0 -83
- package/src/selfie/selfieTutorial.json +0 -2626
- package/src/selfie/styles.css +0 -1
- package/src/selfie/tutorial.test.tsx +0 -200
- package/src/selfie/tutorial.tsx +0 -43
- package/src/setup.ts +0 -33
- package/src/shared/baseTutorial/baseTutorial.css +0 -21
- package/src/shared/baseTutorial/baseTutorial.test.tsx +0 -184
- package/src/shared/baseTutorial/baseTutorial.tsx +0 -55
- package/src/shared/baseTutorial/replaceBaseTutorial.test.ts +0 -267
- package/src/shared/baseTutorial/replaceBaseTutorial.ts +0 -68
- package/src/shared/button/button.css +0 -55
- package/src/shared/button/button.test.tsx +0 -101
- package/src/shared/button/button.tsx +0 -47
- package/src/shared/componentRoot/incodeComponent.tsx +0 -12
- package/src/shared/countries/countries.test.ts +0 -75
- package/src/shared/countries/countries.ts +0 -139
- package/src/shared/countries/index.ts +0 -6
- package/src/shared/icons/chevronDown.tsx +0 -22
- package/src/shared/icons/index.ts +0 -2
- package/src/shared/icons/successIcon.css +0 -5
- package/src/shared/icons/successIcon.test.tsx +0 -40
- package/src/shared/icons/successIcon.tsx +0 -26
- package/src/shared/loader/loadingIcon.css +0 -28
- package/src/shared/loader/loadingIcon.tsx +0 -67
- package/src/shared/lottie/lottie.tsx +0 -108
- package/src/shared/otpInput/otpInput.css +0 -85
- package/src/shared/otpInput/otpInput.test.tsx +0 -356
- package/src/shared/otpInput/otpInput.tsx +0 -241
- package/src/shared/page/incode-logo.svg +0 -3
- package/src/shared/page/page.css +0 -47
- package/src/shared/page/page.test.tsx +0 -97
- package/src/shared/page/page.tsx +0 -91
- package/src/shared/page/pageUiConfig.test.ts +0 -112
- package/src/shared/page/pageUiConfig.ts +0 -64
- package/src/shared/page/verifiedByIncode.css +0 -5
- package/src/shared/page/verifiedByIncode.tsx +0 -75
- package/src/shared/spacer/spacer.css +0 -149
- package/src/shared/spacer/spacer.test.tsx +0 -143
- package/src/shared/spacer/spacer.tsx +0 -88
- package/src/shared/spinner/index.ts +0 -2
- package/src/shared/spinner/spinner.css +0 -28
- package/src/shared/spinner/spinner.test.tsx +0 -82
- package/src/shared/spinner/spinner.tsx +0 -65
- package/src/shared/title/title.css +0 -7
- package/src/shared/title/title.tsx +0 -12
- package/src/shared/uiConfig/uiConfig.ts +0 -36
- package/src/shared/webComponent/incodeModule.ts +0 -29
- package/src/shared/webComponent/registerIncodeElement.ts +0 -15
- package/src/styles/__mocks__/fetchTheme.ts +0 -19
- package/src/styles/applyTheme.ts +0 -37
- package/src/styles/cn.test.tsx +0 -57
- package/src/styles/cn.tsx +0 -21
- package/src/styles/core.css +0 -12
- package/src/styles/fetchTheme.test.ts +0 -390
- package/src/styles/fetchTheme.ts +0 -88
- package/src/styles/generatePalette.ts +0 -111
- package/src/styles/reset.css +0 -65
- package/src/styles/resolveCssVariableToHex.ts +0 -28
- package/src/styles/tailwind.css +0 -291
- package/src/styles/themeTypes.ts +0 -18
- package/src/styles/tokens/colors.css +0 -190
- package/src/styles/tokens/components.css +0 -174
- package/src/styles/tokens/index.css +0 -4
- package/src/styles/tokens/primitives.css +0 -129
- package/src/styles/tokens/semantic.css +0 -51
- package/src/svg.d.ts +0 -4
- package/src/types/assets.d.ts +0 -1
- package/src/types/custom-elements.d.ts +0 -104
- package/tsconfig.json +0 -22
- package/vite.config.ts +0 -260
- package/vitest.config.ts +0 -40
- package/vitest.setup.ts +0 -16
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
var O, s, N_, S, u_, E_, U_, T_, t_, Q, X, M = {}, A_ = [], q_ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, F = Array.isArray;
|
|
2
|
+
function w(_, e) {
|
|
3
|
+
for (var t in e) _[t] = e[t];
|
|
4
|
+
return _;
|
|
5
|
+
}
|
|
6
|
+
function n_(_) {
|
|
7
|
+
_ && _.parentNode && _.parentNode.removeChild(_);
|
|
8
|
+
}
|
|
9
|
+
function Y(_, e, t) {
|
|
10
|
+
var n, r, o, i = {};
|
|
11
|
+
for (o in e) o == "key" ? n = e[o] : o == "ref" ? r = e[o] : i[o] = e[o];
|
|
12
|
+
if (arguments.length > 2 && (i.children = arguments.length > 3 ? O.call(arguments, 2) : t), typeof _ == "function" && _.defaultProps != null) for (o in _.defaultProps) i[o] === void 0 && (i[o] = _.defaultProps[o]);
|
|
13
|
+
return D(_, i, n, r, null);
|
|
14
|
+
}
|
|
15
|
+
function D(_, e, t, n, r) {
|
|
16
|
+
var o = { type: _, props: e, key: t, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r ?? ++N_, __i: -1, __u: 0 };
|
|
17
|
+
return r == null && s.vnode != null && s.vnode(o), o;
|
|
18
|
+
}
|
|
19
|
+
function E(_) {
|
|
20
|
+
return _.children;
|
|
21
|
+
}
|
|
22
|
+
function P(_, e) {
|
|
23
|
+
this.props = _, this.context = e;
|
|
24
|
+
}
|
|
25
|
+
function U(_, e) {
|
|
26
|
+
if (e == null) return _.__ ? U(_.__, _.__i + 1) : null;
|
|
27
|
+
for (var t; e < _.__k.length; e++) if ((t = _.__k[e]) != null && t.__e != null) return t.__e;
|
|
28
|
+
return typeof _.type == "function" ? U(_) : null;
|
|
29
|
+
}
|
|
30
|
+
function D_(_) {
|
|
31
|
+
var e, t;
|
|
32
|
+
if ((_ = _.__) != null && _.__c != null) {
|
|
33
|
+
for (_.__e = _.__c.base = null, e = 0; e < _.__k.length; e++) if ((t = _.__k[e]) != null && t.__e != null) {
|
|
34
|
+
_.__e = _.__c.base = t.__e;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return D_(_);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function a_(_) {
|
|
41
|
+
(!_.__d && (_.__d = !0) && S.push(_) && !V.__r++ || u_ != s.debounceRendering) && ((u_ = s.debounceRendering) || E_)(V);
|
|
42
|
+
}
|
|
43
|
+
function V() {
|
|
44
|
+
for (var _, e, t, n, r, o, i, a = 1; S.length; ) S.length > a && S.sort(U_), _ = S.shift(), a = S.length, _.__d && (t = void 0, n = void 0, r = (n = (e = _).__v).__e, o = [], i = [], e.__P && ((t = w({}, n)).__v = n.__v + 1, s.vnode && s.vnode(t), r_(e.__P, t, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [r] : null, o, r ?? U(n), !!(32 & n.__u), i), t.__v = n.__v, t.__.__k[t.__i] = t, F_(o, t, i), n.__e = n.__ = null, t.__e != r && D_(t)));
|
|
45
|
+
V.__r = 0;
|
|
46
|
+
}
|
|
47
|
+
function M_(_, e, t, n, r, o, i, a, c, u, p) {
|
|
48
|
+
var l, h, f, g, k, b, v, d = n && n.__k || A_, H = e.length;
|
|
49
|
+
for (c = z_(t, e, d, c, H), l = 0; l < H; l++) (f = t.__k[l]) != null && (h = f.__i == -1 ? M : d[f.__i] || M, f.__i = l, b = r_(_, f, h, r, o, i, a, c, u, p), g = f.__e, f.ref && h.ref != f.ref && (h.ref && o_(h.ref, null, f), p.push(f.ref, f.__c || g, f)), k == null && g != null && (k = g), (v = !!(4 & f.__u)) || h.__k === f.__k ? c = O_(f, c, _, v) : typeof f.type == "function" && b !== void 0 ? c = b : g && (c = g.nextSibling), f.__u &= -7);
|
|
50
|
+
return t.__e = k, c;
|
|
51
|
+
}
|
|
52
|
+
function z_(_, e, t, n, r) {
|
|
53
|
+
var o, i, a, c, u, p = t.length, l = p, h = 0;
|
|
54
|
+
for (_.__k = new Array(r), o = 0; o < r; o++) (i = e[o]) != null && typeof i != "boolean" && typeof i != "function" ? (c = o + h, (i = _.__k[o] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? D(null, i, null, null, null) : F(i) ? D(E, { children: i }, null, null, null) : i.constructor == null && i.__b > 0 ? D(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = _, i.__b = _.__b + 1, a = null, (u = i.__i = G_(i, t, c, l)) != -1 && (l--, (a = t[u]) && (a.__u |= 2)), a == null || a.__v == null ? (u == -1 && (r > p ? h-- : r < p && h++), typeof i.type != "function" && (i.__u |= 4)) : u != c && (u == c - 1 ? h-- : u == c + 1 ? h++ : (u > c ? h-- : h++, i.__u |= 4))) : _.__k[o] = null;
|
|
55
|
+
if (l) for (o = 0; o < p; o++) (a = t[o]) != null && (2 & a.__u) == 0 && (a.__e == n && (n = U(a)), L_(a, a));
|
|
56
|
+
return n;
|
|
57
|
+
}
|
|
58
|
+
function O_(_, e, t, n) {
|
|
59
|
+
var r, o;
|
|
60
|
+
if (typeof _.type == "function") {
|
|
61
|
+
for (r = _.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = _, e = O_(r[o], e, t, n));
|
|
62
|
+
return e;
|
|
63
|
+
}
|
|
64
|
+
_.__e != e && (n && (e && _.type && !e.parentNode && (e = U(_)), t.insertBefore(_.__e, e || null)), e = _.__e);
|
|
65
|
+
do
|
|
66
|
+
e = e && e.nextSibling;
|
|
67
|
+
while (e != null && e.nodeType == 8);
|
|
68
|
+
return e;
|
|
69
|
+
}
|
|
70
|
+
function q(_, e) {
|
|
71
|
+
return e = e || [], _ == null || typeof _ == "boolean" || (F(_) ? _.some(function(t) {
|
|
72
|
+
q(t, e);
|
|
73
|
+
}) : e.push(_)), e;
|
|
74
|
+
}
|
|
75
|
+
function G_(_, e, t, n) {
|
|
76
|
+
var r, o, i, a = _.key, c = _.type, u = e[t], p = u != null && (2 & u.__u) == 0;
|
|
77
|
+
if (u === null && _.key == null || p && a == u.key && c == u.type) return t;
|
|
78
|
+
if (n > (p ? 1 : 0)) {
|
|
79
|
+
for (r = t - 1, o = t + 1; r >= 0 || o < e.length; ) if ((u = e[i = r >= 0 ? r-- : o++]) != null && (2 & u.__u) == 0 && a == u.key && c == u.type) return i;
|
|
80
|
+
}
|
|
81
|
+
return -1;
|
|
82
|
+
}
|
|
83
|
+
function c_(_, e, t) {
|
|
84
|
+
e[0] == "-" ? _.setProperty(e, t ?? "") : _[e] = t == null ? "" : typeof t != "number" || q_.test(e) ? t : t + "px";
|
|
85
|
+
}
|
|
86
|
+
function j(_, e, t, n, r) {
|
|
87
|
+
var o, i;
|
|
88
|
+
_: if (e == "style") if (typeof t == "string") _.style.cssText = t;
|
|
89
|
+
else {
|
|
90
|
+
if (typeof n == "string" && (_.style.cssText = n = ""), n) for (e in n) t && e in t || c_(_.style, e, "");
|
|
91
|
+
if (t) for (e in t) n && t[e] == n[e] || c_(_.style, e, t[e]);
|
|
92
|
+
}
|
|
93
|
+
else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(T_, "$1")), i = e.toLowerCase(), e = i in _ || e == "onFocusOut" || e == "onFocusIn" ? i.slice(2) : e.slice(2), _.l || (_.l = {}), _.l[e + o] = t, t ? n ? t.u = n.u : (t.u = t_, _.addEventListener(e, o ? X : Q, o)) : _.removeEventListener(e, o ? X : Q, o);
|
|
94
|
+
else {
|
|
95
|
+
if (r == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
96
|
+
else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in _) try {
|
|
97
|
+
_[e] = t ?? "";
|
|
98
|
+
break _;
|
|
99
|
+
} catch {
|
|
100
|
+
}
|
|
101
|
+
typeof t == "function" || (t == null || t === !1 && e[4] != "-" ? _.removeAttribute(e) : _.setAttribute(e, e == "popover" && t == 1 ? "" : t));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function f_(_) {
|
|
105
|
+
return function(e) {
|
|
106
|
+
if (this.l) {
|
|
107
|
+
var t = this.l[e.type + _];
|
|
108
|
+
if (e.t == null) e.t = t_++;
|
|
109
|
+
else if (e.t < t.u) return;
|
|
110
|
+
return t(s.event ? s.event(e) : e);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function r_(_, e, t, n, r, o, i, a, c, u) {
|
|
115
|
+
var p, l, h, f, g, k, b, v, d, H, x, L, T, i_, R, A, G, $ = e.type;
|
|
116
|
+
if (e.constructor != null) return null;
|
|
117
|
+
128 & t.__u && (c = !!(32 & t.__u), o = [a = e.__e = t.__e]), (p = s.__b) && p(e);
|
|
118
|
+
_: if (typeof $ == "function") try {
|
|
119
|
+
if (v = e.props, d = "prototype" in $ && $.prototype.render, H = (p = $.contextType) && n[p.__c], x = p ? H ? H.props.value : p.__ : n, t.__c ? b = (l = e.__c = t.__c).__ = l.__E : (d ? e.__c = l = new $(v, x) : (e.__c = l = new P(v, x), l.constructor = $, l.render = K_), H && H.sub(l), l.props = v, l.state || (l.state = {}), l.context = x, l.__n = n, h = l.__d = !0, l.__h = [], l._sb = []), d && l.__s == null && (l.__s = l.state), d && $.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = w({}, l.__s)), w(l.__s, $.getDerivedStateFromProps(v, l.__s))), f = l.props, g = l.state, l.__v = e, h) d && $.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), d && l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
120
|
+
else {
|
|
121
|
+
if (d && $.getDerivedStateFromProps == null && v !== f && l.componentWillReceiveProps != null && l.componentWillReceiveProps(v, x), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(v, l.__s, x) === !1 || e.__v == t.__v) {
|
|
122
|
+
for (e.__v != t.__v && (l.props = v, l.state = l.__s, l.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.some(function(N) {
|
|
123
|
+
N && (N.__ = e);
|
|
124
|
+
}), L = 0; L < l._sb.length; L++) l.__h.push(l._sb[L]);
|
|
125
|
+
l._sb = [], l.__h.length && i.push(l);
|
|
126
|
+
break _;
|
|
127
|
+
}
|
|
128
|
+
l.componentWillUpdate != null && l.componentWillUpdate(v, l.__s, x), d && l.componentDidUpdate != null && l.__h.push(function() {
|
|
129
|
+
l.componentDidUpdate(f, g, k);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (l.context = x, l.props = v, l.__P = _, l.__e = !1, T = s.__r, i_ = 0, d) {
|
|
133
|
+
for (l.state = l.__s, l.__d = !1, T && T(e), p = l.render(l.props, l.state, l.context), R = 0; R < l._sb.length; R++) l.__h.push(l._sb[R]);
|
|
134
|
+
l._sb = [];
|
|
135
|
+
} else do
|
|
136
|
+
l.__d = !1, T && T(e), p = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
137
|
+
while (l.__d && ++i_ < 25);
|
|
138
|
+
l.state = l.__s, l.getChildContext != null && (n = w(w({}, n), l.getChildContext())), d && !h && l.getSnapshotBeforeUpdate != null && (k = l.getSnapshotBeforeUpdate(f, g)), A = p, p != null && p.type === E && p.key == null && (A = W_(p.props.children)), a = M_(_, F(A) ? A : [A], e, t, n, r, o, i, a, c, u), l.base = e.__e, e.__u &= -161, l.__h.length && i.push(l), b && (l.__E = l.__ = null);
|
|
139
|
+
} catch (N) {
|
|
140
|
+
if (e.__v = null, c || o != null) if (N.then) {
|
|
141
|
+
for (e.__u |= c ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
142
|
+
o[o.indexOf(a)] = null, e.__e = a;
|
|
143
|
+
} else {
|
|
144
|
+
for (G = o.length; G--; ) n_(o[G]);
|
|
145
|
+
__(e);
|
|
146
|
+
}
|
|
147
|
+
else e.__e = t.__e, e.__k = t.__k, N.then || __(e);
|
|
148
|
+
s.__e(N, e, t);
|
|
149
|
+
}
|
|
150
|
+
else o == null && e.__v == t.__v ? (e.__k = t.__k, e.__e = t.__e) : a = e.__e = J_(t.__e, e, t, n, r, o, i, c, u);
|
|
151
|
+
return (p = s.diffed) && p(e), 128 & e.__u ? void 0 : a;
|
|
152
|
+
}
|
|
153
|
+
function __(_) {
|
|
154
|
+
_ && _.__c && (_.__c.__e = !0), _ && _.__k && _.__k.forEach(__);
|
|
155
|
+
}
|
|
156
|
+
function F_(_, e, t) {
|
|
157
|
+
for (var n = 0; n < t.length; n++) o_(t[n], t[++n], t[++n]);
|
|
158
|
+
s.__c && s.__c(e, _), _.some(function(r) {
|
|
159
|
+
try {
|
|
160
|
+
_ = r.__h, r.__h = [], _.some(function(o) {
|
|
161
|
+
o.call(r);
|
|
162
|
+
});
|
|
163
|
+
} catch (o) {
|
|
164
|
+
s.__e(o, r.__v);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function W_(_) {
|
|
169
|
+
return typeof _ != "object" || _ == null || _.__b && _.__b > 0 ? _ : F(_) ? _.map(W_) : w({}, _);
|
|
170
|
+
}
|
|
171
|
+
function J_(_, e, t, n, r, o, i, a, c) {
|
|
172
|
+
var u, p, l, h, f, g, k, b = t.props, v = e.props, d = e.type;
|
|
173
|
+
if (d == "svg" ? r = "http://www.w3.org/2000/svg" : d == "math" ? r = "http://www.w3.org/1998/Math/MathML" : r || (r = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
174
|
+
for (u = 0; u < o.length; u++) if ((f = o[u]) && "setAttribute" in f == !!d && (d ? f.localName == d : f.nodeType == 3)) {
|
|
175
|
+
_ = f, o[u] = null;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
if (_ == null) {
|
|
180
|
+
if (d == null) return document.createTextNode(v);
|
|
181
|
+
_ = document.createElementNS(r, d, v.is && v), a && (s.__m && s.__m(e, o), a = !1), o = null;
|
|
182
|
+
}
|
|
183
|
+
if (d == null) b === v || a && _.data == v || (_.data = v);
|
|
184
|
+
else {
|
|
185
|
+
if (o = o && O.call(_.childNodes), b = t.props || M, !a && o != null) for (b = {}, u = 0; u < _.attributes.length; u++) b[(f = _.attributes[u]).name] = f.value;
|
|
186
|
+
for (u in b) if (f = b[u], u != "children") {
|
|
187
|
+
if (u == "dangerouslySetInnerHTML") l = f;
|
|
188
|
+
else if (!(u in v)) {
|
|
189
|
+
if (u == "value" && "defaultValue" in v || u == "checked" && "defaultChecked" in v) continue;
|
|
190
|
+
j(_, u, null, f, r);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
for (u in v) f = v[u], u == "children" ? h = f : u == "dangerouslySetInnerHTML" ? p = f : u == "value" ? g = f : u == "checked" ? k = f : a && typeof f != "function" || b[u] === f || j(_, u, f, b[u], r);
|
|
194
|
+
if (p) a || l && (p.__html == l.__html || p.__html == _.innerHTML) || (_.innerHTML = p.__html), e.__k = [];
|
|
195
|
+
else if (l && (_.innerHTML = ""), M_(e.type == "template" ? _.content : _, F(h) ? h : [h], e, t, n, d == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, o, i, o ? o[0] : t.__k && U(t, 0), a, c), o != null) for (u = o.length; u--; ) n_(o[u]);
|
|
196
|
+
a || (u = "value", d == "progress" && g == null ? _.removeAttribute("value") : g != null && (g !== _[u] || d == "progress" && !g || d == "option" && g != b[u]) && j(_, u, g, b[u], r), u = "checked", k != null && k != _[u] && j(_, u, k, b[u], r));
|
|
197
|
+
}
|
|
198
|
+
return _;
|
|
199
|
+
}
|
|
200
|
+
function o_(_, e, t) {
|
|
201
|
+
try {
|
|
202
|
+
if (typeof _ == "function") {
|
|
203
|
+
var n = typeof _.__u == "function";
|
|
204
|
+
n && _.__u(), n && e == null || (_.__u = _(e));
|
|
205
|
+
} else _.current = e;
|
|
206
|
+
} catch (r) {
|
|
207
|
+
s.__e(r, t);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function L_(_, e, t) {
|
|
211
|
+
var n, r;
|
|
212
|
+
if (s.unmount && s.unmount(_), (n = _.ref) && (n.current && n.current != _.__e || o_(n, null, e)), (n = _.__c) != null) {
|
|
213
|
+
if (n.componentWillUnmount) try {
|
|
214
|
+
n.componentWillUnmount();
|
|
215
|
+
} catch (o) {
|
|
216
|
+
s.__e(o, e);
|
|
217
|
+
}
|
|
218
|
+
n.base = n.__P = null;
|
|
219
|
+
}
|
|
220
|
+
if (n = _.__k) for (r = 0; r < n.length; r++) n[r] && L_(n[r], e, t || typeof _.type != "function");
|
|
221
|
+
t || n_(_.__e), _.__c = _.__ = _.__e = void 0;
|
|
222
|
+
}
|
|
223
|
+
function K_(_, e, t) {
|
|
224
|
+
return this.constructor(_, t);
|
|
225
|
+
}
|
|
226
|
+
function Z_(_, e, t) {
|
|
227
|
+
var n, r, o, i;
|
|
228
|
+
e == document && (e = document.documentElement), s.__ && s.__(_, e), r = (n = typeof t == "function") ? null : t && t.__k || e.__k, o = [], i = [], r_(e, _ = (!n && t || e).__k = Y(E, null, [_]), r || M, M, e.namespaceURI, !n && t ? [t] : r ? null : e.firstChild ? O.call(e.childNodes) : null, o, !n && t ? t : r ? r.__e : e.firstChild, n, i), F_(o, _, i);
|
|
229
|
+
}
|
|
230
|
+
function Q_(_, e) {
|
|
231
|
+
Z_(_, e, Q_);
|
|
232
|
+
}
|
|
233
|
+
function me(_, e, t) {
|
|
234
|
+
var n, r, o, i, a = w({}, _.props);
|
|
235
|
+
for (o in _.type && _.type.defaultProps && (i = _.type.defaultProps), e) o == "key" ? n = e[o] : o == "ref" ? r = e[o] : a[o] = e[o] === void 0 && i != null ? i[o] : e[o];
|
|
236
|
+
return arguments.length > 2 && (a.children = arguments.length > 3 ? O.call(arguments, 2) : t), D(_.type, a, n || _.key, r || _.ref, null);
|
|
237
|
+
}
|
|
238
|
+
O = A_.slice, s = { __e: function(_, e, t, n) {
|
|
239
|
+
for (var r, o, i; e = e.__; ) if ((r = e.__c) && !r.__) try {
|
|
240
|
+
if ((o = r.constructor) && o.getDerivedStateFromError != null && (r.setState(o.getDerivedStateFromError(_)), i = r.__d), r.componentDidCatch != null && (r.componentDidCatch(_, n || {}), i = r.__d), i) return r.__E = r;
|
|
241
|
+
} catch (a) {
|
|
242
|
+
_ = a;
|
|
243
|
+
}
|
|
244
|
+
throw _;
|
|
245
|
+
} }, N_ = 0, P.prototype.setState = function(_, e) {
|
|
246
|
+
var t;
|
|
247
|
+
t = this.__s != null && this.__s != this.state ? this.__s : this.__s = w({}, this.state), typeof _ == "function" && (_ = _(w({}, t), this.props)), _ && w(t, _), _ != null && this.__v && (e && this._sb.push(e), a_(this));
|
|
248
|
+
}, P.prototype.forceUpdate = function(_) {
|
|
249
|
+
this.__v && (this.__e = !0, _ && this.__h.push(_), a_(this));
|
|
250
|
+
}, P.prototype.render = E, S = [], E_ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, U_ = function(_, e) {
|
|
251
|
+
return _.__v.__b - e.__v.__b;
|
|
252
|
+
}, V.__r = 0, T_ = /(PointerCapture)$|Capture$/i, t_ = 0, Q = f_(!1), X = f_(!0);
|
|
253
|
+
var C, m, J, s_, z = 0, R_ = [], y = s, p_ = y.__b, h_ = y.__r, v_ = y.diffed, d_ = y.__c, m_ = y.unmount, y_ = y.__;
|
|
254
|
+
function W(_, e) {
|
|
255
|
+
y.__h && y.__h(m, _, z || e), z = 0;
|
|
256
|
+
var t = m.__H || (m.__H = { __: [], __h: [] });
|
|
257
|
+
return _ >= t.__.length && t.__.push({}), t.__[_];
|
|
258
|
+
}
|
|
259
|
+
function X_(_) {
|
|
260
|
+
return z = 1, Y_(j_, _);
|
|
261
|
+
}
|
|
262
|
+
function Y_(_, e, t) {
|
|
263
|
+
var n = W(C++, 2);
|
|
264
|
+
if (n.t = _, !n.__c && (n.__ = [t ? t(e) : j_(void 0, e), function(a) {
|
|
265
|
+
var c = n.__N ? n.__N[0] : n.__[0], u = n.t(c, a);
|
|
266
|
+
c !== u && (n.__N = [u, n.__[1]], n.__c.setState({}));
|
|
267
|
+
}], n.__c = m, !m.__f)) {
|
|
268
|
+
var r = function(a, c, u) {
|
|
269
|
+
if (!n.__c.__H) return !0;
|
|
270
|
+
var p = n.__c.__H.__.filter(function(h) {
|
|
271
|
+
return !!h.__c;
|
|
272
|
+
});
|
|
273
|
+
if (p.every(function(h) {
|
|
274
|
+
return !h.__N;
|
|
275
|
+
})) return !o || o.call(this, a, c, u);
|
|
276
|
+
var l = n.__c.props !== a;
|
|
277
|
+
return p.forEach(function(h) {
|
|
278
|
+
if (h.__N) {
|
|
279
|
+
var f = h.__[0];
|
|
280
|
+
h.__ = h.__N, h.__N = void 0, f !== h.__[0] && (l = !0);
|
|
281
|
+
}
|
|
282
|
+
}), o && o.call(this, a, c, u) || l;
|
|
283
|
+
};
|
|
284
|
+
m.__f = !0;
|
|
285
|
+
var o = m.shouldComponentUpdate, i = m.componentWillUpdate;
|
|
286
|
+
m.componentWillUpdate = function(a, c, u) {
|
|
287
|
+
if (this.__e) {
|
|
288
|
+
var p = o;
|
|
289
|
+
o = void 0, r(a, c, u), o = p;
|
|
290
|
+
}
|
|
291
|
+
i && i.call(this, a, c, u);
|
|
292
|
+
}, m.shouldComponentUpdate = r;
|
|
293
|
+
}
|
|
294
|
+
return n.__N || n.__;
|
|
295
|
+
}
|
|
296
|
+
function _e(_, e) {
|
|
297
|
+
var t = W(C++, 3);
|
|
298
|
+
!y.__s && l_(t.__H, e) && (t.__ = _, t.u = e, m.__H.__h.push(t));
|
|
299
|
+
}
|
|
300
|
+
function ee(_, e) {
|
|
301
|
+
var t = W(C++, 4);
|
|
302
|
+
!y.__s && l_(t.__H, e) && (t.__ = _, t.u = e, m.__h.push(t));
|
|
303
|
+
}
|
|
304
|
+
function ye(_) {
|
|
305
|
+
return z = 5, te(function() {
|
|
306
|
+
return { current: _ };
|
|
307
|
+
}, []);
|
|
308
|
+
}
|
|
309
|
+
function te(_, e) {
|
|
310
|
+
var t = W(C++, 7);
|
|
311
|
+
return l_(t.__H, e) && (t.__ = _(), t.__H = e, t.__h = _), t.__;
|
|
312
|
+
}
|
|
313
|
+
function ge() {
|
|
314
|
+
var _ = W(C++, 11);
|
|
315
|
+
if (!_.__) {
|
|
316
|
+
for (var e = m.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
|
|
317
|
+
var t = e.__m || (e.__m = [0, 0]);
|
|
318
|
+
_.__ = "P" + t[0] + "-" + t[1]++;
|
|
319
|
+
}
|
|
320
|
+
return _.__;
|
|
321
|
+
}
|
|
322
|
+
function ne() {
|
|
323
|
+
for (var _; _ = R_.shift(); ) if (_.__P && _.__H) try {
|
|
324
|
+
_.__H.__h.forEach(I), _.__H.__h.forEach(e_), _.__H.__h = [];
|
|
325
|
+
} catch (e) {
|
|
326
|
+
_.__H.__h = [], y.__e(e, _.__v);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
y.__b = function(_) {
|
|
330
|
+
m = null, p_ && p_(_);
|
|
331
|
+
}, y.__ = function(_, e) {
|
|
332
|
+
_ && e.__k && e.__k.__m && (_.__m = e.__k.__m), y_ && y_(_, e);
|
|
333
|
+
}, y.__r = function(_) {
|
|
334
|
+
h_ && h_(_), C = 0;
|
|
335
|
+
var e = (m = _.__c).__H;
|
|
336
|
+
e && (J === m ? (e.__h = [], m.__h = [], e.__.forEach(function(t) {
|
|
337
|
+
t.__N && (t.__ = t.__N), t.u = t.__N = void 0;
|
|
338
|
+
})) : (e.__h.forEach(I), e.__h.forEach(e_), e.__h = [], C = 0)), J = m;
|
|
339
|
+
}, y.diffed = function(_) {
|
|
340
|
+
v_ && v_(_);
|
|
341
|
+
var e = _.__c;
|
|
342
|
+
e && e.__H && (e.__H.__h.length && (R_.push(e) !== 1 && s_ === y.requestAnimationFrame || ((s_ = y.requestAnimationFrame) || re)(ne)), e.__H.__.forEach(function(t) {
|
|
343
|
+
t.u && (t.__H = t.u), t.u = void 0;
|
|
344
|
+
})), J = m = null;
|
|
345
|
+
}, y.__c = function(_, e) {
|
|
346
|
+
e.some(function(t) {
|
|
347
|
+
try {
|
|
348
|
+
t.__h.forEach(I), t.__h = t.__h.filter(function(n) {
|
|
349
|
+
return !n.__ || e_(n);
|
|
350
|
+
});
|
|
351
|
+
} catch (n) {
|
|
352
|
+
e.some(function(r) {
|
|
353
|
+
r.__h && (r.__h = []);
|
|
354
|
+
}), e = [], y.__e(n, t.__v);
|
|
355
|
+
}
|
|
356
|
+
}), d_ && d_(_, e);
|
|
357
|
+
}, y.unmount = function(_) {
|
|
358
|
+
m_ && m_(_);
|
|
359
|
+
var e, t = _.__c;
|
|
360
|
+
t && t.__H && (t.__H.__.forEach(function(n) {
|
|
361
|
+
try {
|
|
362
|
+
I(n);
|
|
363
|
+
} catch (r) {
|
|
364
|
+
e = r;
|
|
365
|
+
}
|
|
366
|
+
}), t.__H = void 0, e && y.__e(e, t.__v));
|
|
367
|
+
};
|
|
368
|
+
var g_ = typeof requestAnimationFrame == "function";
|
|
369
|
+
function re(_) {
|
|
370
|
+
var e, t = function() {
|
|
371
|
+
clearTimeout(n), g_ && cancelAnimationFrame(e), setTimeout(_);
|
|
372
|
+
}, n = setTimeout(t, 35);
|
|
373
|
+
g_ && (e = requestAnimationFrame(t));
|
|
374
|
+
}
|
|
375
|
+
function I(_) {
|
|
376
|
+
var e = m, t = _.__c;
|
|
377
|
+
typeof t == "function" && (_.__c = void 0, t()), m = e;
|
|
378
|
+
}
|
|
379
|
+
function e_(_) {
|
|
380
|
+
var e = m;
|
|
381
|
+
_.__c = _.__(), m = e;
|
|
382
|
+
}
|
|
383
|
+
function l_(_, e) {
|
|
384
|
+
return !_ || _.length !== e.length || e.some(function(t, n) {
|
|
385
|
+
return t !== _[n];
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
function j_(_, e) {
|
|
389
|
+
return typeof e == "function" ? e(_) : e;
|
|
390
|
+
}
|
|
391
|
+
function oe(_, e) {
|
|
392
|
+
for (var t in e) _[t] = e[t];
|
|
393
|
+
return _;
|
|
394
|
+
}
|
|
395
|
+
function b_(_, e) {
|
|
396
|
+
for (var t in _) if (t !== "__source" && !(t in e)) return !0;
|
|
397
|
+
for (var n in e) if (n !== "__source" && _[n] !== e[n]) return !0;
|
|
398
|
+
return !1;
|
|
399
|
+
}
|
|
400
|
+
function be(_, e) {
|
|
401
|
+
var t = e(), n = X_({ t: { __: t, u: e } }), r = n[0].t, o = n[1];
|
|
402
|
+
return ee(function() {
|
|
403
|
+
r.__ = t, r.u = e, K(r) && o({ t: r });
|
|
404
|
+
}, [_, t, e]), _e(function() {
|
|
405
|
+
return K(r) && o({ t: r }), _(function() {
|
|
406
|
+
K(r) && o({ t: r });
|
|
407
|
+
});
|
|
408
|
+
}, [_]), t;
|
|
409
|
+
}
|
|
410
|
+
function K(_) {
|
|
411
|
+
var e, t, n = _.u, r = _.__;
|
|
412
|
+
try {
|
|
413
|
+
var o = n();
|
|
414
|
+
return !((e = r) === (t = o) && (e !== 0 || 1 / e == 1 / t) || e != e && t != t);
|
|
415
|
+
} catch {
|
|
416
|
+
return !0;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function k_(_, e) {
|
|
420
|
+
this.props = _, this.context = e;
|
|
421
|
+
}
|
|
422
|
+
(k_.prototype = new P()).isPureReactComponent = !0, k_.prototype.shouldComponentUpdate = function(_, e) {
|
|
423
|
+
return b_(this.props, _) || b_(this.state, e);
|
|
424
|
+
};
|
|
425
|
+
var $_ = s.__b;
|
|
426
|
+
s.__b = function(_) {
|
|
427
|
+
_.type && _.type.__f && _.ref && (_.props.ref = _.ref, _.ref = null), $_ && $_(_);
|
|
428
|
+
};
|
|
429
|
+
var le = s.__e;
|
|
430
|
+
s.__e = function(_, e, t, n) {
|
|
431
|
+
if (_.then) {
|
|
432
|
+
for (var r, o = e; o = o.__; ) if ((r = o.__c) && r.__c) return e.__e == null && (e.__e = t.__e, e.__k = t.__k), r.__c(_, e);
|
|
433
|
+
}
|
|
434
|
+
le(_, e, t, n);
|
|
435
|
+
};
|
|
436
|
+
var w_ = s.unmount;
|
|
437
|
+
function B_(_, e, t) {
|
|
438
|
+
return _ && (_.__c && _.__c.__H && (_.__c.__H.__.forEach(function(n) {
|
|
439
|
+
typeof n.__c == "function" && n.__c();
|
|
440
|
+
}), _.__c.__H = null), (_ = oe({}, _)).__c != null && (_.__c.__P === t && (_.__c.__P = e), _.__c.__e = !0, _.__c = null), _.__k = _.__k && _.__k.map(function(n) {
|
|
441
|
+
return B_(n, e, t);
|
|
442
|
+
})), _;
|
|
443
|
+
}
|
|
444
|
+
function I_(_, e, t) {
|
|
445
|
+
return _ && t && (_.__v = null, _.__k = _.__k && _.__k.map(function(n) {
|
|
446
|
+
return I_(n, e, t);
|
|
447
|
+
}), _.__c && _.__c.__P === e && (_.__e && t.appendChild(_.__e), _.__c.__e = !0, _.__c.__P = t)), _;
|
|
448
|
+
}
|
|
449
|
+
function Z() {
|
|
450
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
451
|
+
}
|
|
452
|
+
function V_(_) {
|
|
453
|
+
var e = _.__.__c;
|
|
454
|
+
return e && e.__a && e.__a(_);
|
|
455
|
+
}
|
|
456
|
+
function B() {
|
|
457
|
+
this.i = null, this.l = null;
|
|
458
|
+
}
|
|
459
|
+
s.unmount = function(_) {
|
|
460
|
+
var e = _.__c;
|
|
461
|
+
e && e.__R && e.__R(), e && 32 & _.__u && (_.type = null), w_ && w_(_);
|
|
462
|
+
}, (Z.prototype = new P()).__c = function(_, e) {
|
|
463
|
+
var t = e.__c, n = this;
|
|
464
|
+
n.o == null && (n.o = []), n.o.push(t);
|
|
465
|
+
var r = V_(n.__v), o = !1, i = function() {
|
|
466
|
+
o || (o = !0, t.__R = null, r ? r(a) : a());
|
|
467
|
+
};
|
|
468
|
+
t.__R = i;
|
|
469
|
+
var a = function() {
|
|
470
|
+
if (!--n.__u) {
|
|
471
|
+
if (n.state.__a) {
|
|
472
|
+
var c = n.state.__a;
|
|
473
|
+
n.__v.__k[0] = I_(c, c.__c.__P, c.__c.__O);
|
|
474
|
+
}
|
|
475
|
+
var u;
|
|
476
|
+
for (n.setState({ __a: n.__b = null }); u = n.o.pop(); ) u.forceUpdate();
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
n.__u++ || 32 & e.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), _.then(i, i);
|
|
480
|
+
}, Z.prototype.componentWillUnmount = function() {
|
|
481
|
+
this.o = [];
|
|
482
|
+
}, Z.prototype.render = function(_, e) {
|
|
483
|
+
if (this.__b) {
|
|
484
|
+
if (this.__v.__k) {
|
|
485
|
+
var t = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
486
|
+
this.__v.__k[0] = B_(this.__b, t, n.__O = n.__P);
|
|
487
|
+
}
|
|
488
|
+
this.__b = null;
|
|
489
|
+
}
|
|
490
|
+
var r = e.__a && Y(E, null, _.fallback);
|
|
491
|
+
return r && (r.__u &= -33), [Y(E, null, e.__a ? null : _.children), r];
|
|
492
|
+
};
|
|
493
|
+
var P_ = function(_, e, t) {
|
|
494
|
+
if (++t[1] === t[0] && _.l.delete(e), _.props.revealOrder && (_.props.revealOrder[0] !== "t" || !_.l.size)) for (t = _.i; t; ) {
|
|
495
|
+
for (; t.length > 3; ) t.pop()();
|
|
496
|
+
if (t[1] < t[0]) break;
|
|
497
|
+
_.i = t = t[2];
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
(B.prototype = new P()).__a = function(_) {
|
|
501
|
+
var e = this, t = V_(e.__v), n = e.l.get(_);
|
|
502
|
+
return n[0]++, function(r) {
|
|
503
|
+
var o = function() {
|
|
504
|
+
e.props.revealOrder ? (n.push(r), P_(e, _, n)) : r();
|
|
505
|
+
};
|
|
506
|
+
t ? t(o) : o();
|
|
507
|
+
};
|
|
508
|
+
}, B.prototype.render = function(_) {
|
|
509
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
510
|
+
var e = q(_.children);
|
|
511
|
+
_.revealOrder && _.revealOrder[0] === "b" && e.reverse();
|
|
512
|
+
for (var t = e.length; t--; ) this.l.set(e[t], this.i = [1, 0, this.i]);
|
|
513
|
+
return _.children;
|
|
514
|
+
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
|
515
|
+
var _ = this;
|
|
516
|
+
this.l.forEach(function(e, t) {
|
|
517
|
+
P_(_, t, e);
|
|
518
|
+
});
|
|
519
|
+
};
|
|
520
|
+
var ie = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ue = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ae = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ce = /[A-Z0-9]/g, fe = typeof document < "u", se = function(_) {
|
|
521
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(_);
|
|
522
|
+
};
|
|
523
|
+
P.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(_) {
|
|
524
|
+
Object.defineProperty(P.prototype, _, { configurable: !0, get: function() {
|
|
525
|
+
return this["UNSAFE_" + _];
|
|
526
|
+
}, set: function(e) {
|
|
527
|
+
Object.defineProperty(this, _, { configurable: !0, writable: !0, value: e });
|
|
528
|
+
} });
|
|
529
|
+
});
|
|
530
|
+
var H_ = s.event;
|
|
531
|
+
function pe() {
|
|
532
|
+
}
|
|
533
|
+
function he() {
|
|
534
|
+
return this.cancelBubble;
|
|
535
|
+
}
|
|
536
|
+
function ve() {
|
|
537
|
+
return this.defaultPrevented;
|
|
538
|
+
}
|
|
539
|
+
s.event = function(_) {
|
|
540
|
+
return H_ && (_ = H_(_)), _.persist = pe, _.isPropagationStopped = he, _.isDefaultPrevented = ve, _.nativeEvent = _;
|
|
541
|
+
};
|
|
542
|
+
var de = { enumerable: !1, configurable: !0, get: function() {
|
|
543
|
+
return this.class;
|
|
544
|
+
} }, x_ = s.vnode;
|
|
545
|
+
s.vnode = function(_) {
|
|
546
|
+
typeof _.type == "string" && (function(e) {
|
|
547
|
+
var t = e.props, n = e.type, r = {}, o = n.indexOf("-") === -1;
|
|
548
|
+
for (var i in t) {
|
|
549
|
+
var a = t[i];
|
|
550
|
+
if (!(i === "value" && "defaultValue" in t && a == null || fe && i === "children" && n === "noscript" || i === "class" || i === "className")) {
|
|
551
|
+
var c = i.toLowerCase();
|
|
552
|
+
i === "defaultValue" && "value" in t && t.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : c === "translate" && a === "no" ? a = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || se(t.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : ae.test(i) && (i = c) : c = i = "oninput" : o && ue.test(i) ? i = i.replace(ce, "-$&").toLowerCase() : a === null && (a = void 0), c === "oninput" && r[i = c] && (i = "oninputCapture"), r[i] = a;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
n == "select" && r.multiple && Array.isArray(r.value) && (r.value = q(t.children).forEach(function(u) {
|
|
556
|
+
u.props.selected = r.value.indexOf(u.props.value) != -1;
|
|
557
|
+
})), n == "select" && r.defaultValue != null && (r.value = q(t.children).forEach(function(u) {
|
|
558
|
+
u.props.selected = r.multiple ? r.defaultValue.indexOf(u.props.value) != -1 : r.defaultValue == u.props.value;
|
|
559
|
+
})), t.class && !t.className ? (r.class = t.class, Object.defineProperty(r, "className", de)) : (t.className && !t.class || t.class && t.className) && (r.class = r.className = t.className), e.props = r;
|
|
560
|
+
})(_), _.$$typeof = ie, x_ && x_(_);
|
|
561
|
+
};
|
|
562
|
+
var S_ = s.__r;
|
|
563
|
+
s.__r = function(_) {
|
|
564
|
+
S_ && S_(_), _.__c;
|
|
565
|
+
};
|
|
566
|
+
var C_ = s.diffed;
|
|
567
|
+
s.diffed = function(_) {
|
|
568
|
+
C_ && C_(_);
|
|
569
|
+
var e = _.props, t = _.__e;
|
|
570
|
+
t != null && _.type === "textarea" && "value" in e && e.value !== t.value && (t.value = e.value == null ? "" : e.value);
|
|
571
|
+
};
|
|
572
|
+
export {
|
|
573
|
+
ye as A,
|
|
574
|
+
be as C,
|
|
575
|
+
Z_ as G,
|
|
576
|
+
Q_ as J,
|
|
577
|
+
me as K,
|
|
578
|
+
Y as _,
|
|
579
|
+
X_ as d,
|
|
580
|
+
ge as g,
|
|
581
|
+
E as k,
|
|
582
|
+
s as l,
|
|
583
|
+
_e as y
|
|
584
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -44,30 +44,21 @@
|
|
|
44
44
|
"default": "./dist/flow/styles.css"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"prebuild": "bun run ../../scripts/generate-asset-manifest.ts",
|
|
51
|
-
"build": "vite build",
|
|
52
|
-
"test": "vitest run",
|
|
53
|
-
"coverage": "vitest run --coverage",
|
|
54
|
-
"lint": "biome lint .",
|
|
55
|
-
"format": "biome format . --write",
|
|
56
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
57
|
-
},
|
|
47
|
+
"files": [
|
|
48
|
+
"dist"
|
|
49
|
+
],
|
|
58
50
|
"dependencies": {
|
|
59
|
-
"@incodetech/core": "workspace:*",
|
|
60
51
|
"@tailwindcss/vite": "^4.1.17",
|
|
61
52
|
"i18next": "^25.7.1",
|
|
62
53
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
63
54
|
"i18next-http-backend": "^3.0.2",
|
|
64
55
|
"libphonenumber-js": "^1.11.0",
|
|
65
56
|
"preact-custom-element": "^4.6.0",
|
|
66
|
-
"tailwindcss": "^4.1.17"
|
|
57
|
+
"tailwindcss": "^4.1.17",
|
|
58
|
+
"@incodetech/core": "2.0.0-alpha.3"
|
|
67
59
|
},
|
|
68
60
|
"devDependencies": {
|
|
69
61
|
"@biomejs/biome": "^2.3.7",
|
|
70
|
-
"@incodetech/config": "workspace:*",
|
|
71
62
|
"@preact/preset-vite": "^2.10.2",
|
|
72
63
|
"@tailwindcss/postcss": "^4.1.17",
|
|
73
64
|
"@testing-library/preact": "^3.2.4",
|
|
@@ -80,6 +71,18 @@
|
|
|
80
71
|
"typescript": "^5.9.3",
|
|
81
72
|
"vite": "^7.2.4",
|
|
82
73
|
"vite-plugin-dts": "^4.5.4",
|
|
83
|
-
"vitest": "^4.0.13"
|
|
74
|
+
"vitest": "^4.0.13",
|
|
75
|
+
"@incodetech/config": "1.0.0"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"dev": "vite",
|
|
79
|
+
"build:dev": "vite build --watch",
|
|
80
|
+
"prebuild": "bun run ../../scripts/generate-asset-manifest.ts",
|
|
81
|
+
"build": "vite build",
|
|
82
|
+
"test": "vitest run",
|
|
83
|
+
"coverage": "vitest run --coverage",
|
|
84
|
+
"lint": "biome lint .",
|
|
85
|
+
"format": "biome format . --write",
|
|
86
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
84
87
|
}
|
|
85
|
-
}
|
|
88
|
+
}
|