eidotter 0.28.0 → 0.30.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.
- package/dist/components/CmdPalette/components/CmdPalette.d.ts +1 -0
- package/dist/components/FilterBar/components/FilterBar.d.ts +7 -1
- package/dist/components/Lightbox/components/Lightbox.d.ts +1 -0
- package/dist/components/Modal/components/Modal.d.ts +1 -0
- package/dist/components/RetroEffects/components/RetroEffects.d.ts +22 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +598 -548
- package/dist/index.umd.js +3 -3
- package/guidelines/design-principles.md +49 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -72,20 +72,20 @@ function ne(e) {
|
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region node_modules/react-aria/dist/private/utils/useId.mjs
|
|
75
|
-
var re = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
76
|
-
typeof FinalizationRegistry < "u" && (
|
|
77
|
-
|
|
75
|
+
var re = !!(typeof window < "u" && window.document && window.document.createElement), ie = /* @__PURE__ */ new Map(), ae;
|
|
76
|
+
typeof FinalizationRegistry < "u" && (ae = new FinalizationRegistry((e) => {
|
|
77
|
+
ie.delete(e);
|
|
78
78
|
}));
|
|
79
|
-
function
|
|
79
|
+
function F(e) {
|
|
80
80
|
let [t, n] = p(e), r = f(null), i = M(t), a = f(null);
|
|
81
|
-
if (
|
|
82
|
-
let e =
|
|
83
|
-
e && !e.includes(r) ? e.push(r) :
|
|
81
|
+
if (ae && ae.register(a, i), re) {
|
|
82
|
+
let e = ie.get(i);
|
|
83
|
+
e && !e.includes(r) ? e.push(r) : ie.set(i, [r]);
|
|
84
84
|
}
|
|
85
85
|
return C(() => {
|
|
86
86
|
let e = i;
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
ae && ae.unregister(a), ie.delete(e);
|
|
89
89
|
};
|
|
90
90
|
}, [i]), s(() => {
|
|
91
91
|
let e = r.current;
|
|
@@ -94,15 +94,15 @@ function I(e) {
|
|
|
94
94
|
};
|
|
95
95
|
}), i;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function I(e, t) {
|
|
98
98
|
if (e === t) return e;
|
|
99
|
-
let n =
|
|
99
|
+
let n = ie.get(e);
|
|
100
100
|
if (n) return n.forEach((e) => e.current = t), t;
|
|
101
|
-
let r =
|
|
101
|
+
let r = ie.get(t);
|
|
102
102
|
return r ? (r.forEach((t) => t.current = e), e) : t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
let t =
|
|
104
|
+
function oe(e = []) {
|
|
105
|
+
let t = F(), [n, r] = ne(t), i = a(() => {
|
|
106
106
|
r(function* () {
|
|
107
107
|
yield t, yield document.getElementById(t) ? t : void 0;
|
|
108
108
|
});
|
|
@@ -115,54 +115,54 @@ function ae(e = []) {
|
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
|
|
118
|
-
function
|
|
118
|
+
function se(...e) {
|
|
119
119
|
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
120
120
|
let n = !1, r = e.map((e) => {
|
|
121
|
-
let r =
|
|
121
|
+
let r = L(e, t);
|
|
122
122
|
return n ||= typeof r == "function", r;
|
|
123
123
|
});
|
|
124
124
|
if (n) return () => {
|
|
125
125
|
r.forEach((t, n) => {
|
|
126
|
-
typeof t == "function" ? t() :
|
|
126
|
+
typeof t == "function" ? t() : L(e[n], null);
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function L(e, t) {
|
|
132
132
|
if (typeof e == "function") return e(t);
|
|
133
133
|
e != null && (e.current = t);
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
137
|
-
function
|
|
137
|
+
function ce(e) {
|
|
138
138
|
var t, n, r = "";
|
|
139
139
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
140
140
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
141
141
|
var i = e.length;
|
|
142
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
142
|
+
for (t = 0; t < i; t++) e[t] && (n = ce(e[t])) && (r && (r += " "), r += n);
|
|
143
143
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
144
144
|
return r;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
146
|
+
function le() {
|
|
147
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = ce(e)) && (r && (r += " "), r += t);
|
|
148
148
|
return r;
|
|
149
149
|
}
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
|
|
152
|
-
function
|
|
152
|
+
function R(...e) {
|
|
153
153
|
let t = { ...e[0] };
|
|
154
154
|
for (let n = 1; n < e.length; n++) {
|
|
155
155
|
let r = e[n];
|
|
156
156
|
for (let e in r) {
|
|
157
157
|
let n = t[e], i = r[e];
|
|
158
|
-
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = S(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] =
|
|
158
|
+
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = S(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = le(n, i) : e === "id" && n && i ? t.id = I(n, i) : e === "ref" && n && i ? t.ref = se(n, i) : t[e] = i === void 0 ? n : i;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
return t;
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
|
|
165
|
-
function
|
|
165
|
+
function z(e) {
|
|
166
166
|
let t = f(null), n = f(void 0), r = a((t) => {
|
|
167
167
|
if (typeof e == "function") {
|
|
168
168
|
let n = e, r = n(t);
|
|
@@ -237,7 +237,7 @@ function pe(e, t) {
|
|
|
237
237
|
return n;
|
|
238
238
|
}
|
|
239
239
|
function me(e, t, n) {
|
|
240
|
-
let { ref: r, ...i } = pe(n, e.slot) || {}, a =
|
|
240
|
+
let { ref: r, ...i } = pe(n, e.slot) || {}, a = z(u(() => se(t, r), [t, r])), o = R(i, e);
|
|
241
241
|
return "style" in i && i.style && "style" in e && e.style && (typeof i.style == "function" || typeof e.style == "function" ? o.style = (t) => {
|
|
242
242
|
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
243
243
|
...t.defaultStyle,
|
|
@@ -269,7 +269,7 @@ function ge(e) {
|
|
|
269
269
|
return n;
|
|
270
270
|
}
|
|
271
271
|
function _e(t, n, r) {
|
|
272
|
-
let { render: i, ...a } = n, o = f(null), s = u(() =>
|
|
272
|
+
let { render: i, ...a } = n, o = f(null), s = u(() => se(r, o), [r, o]);
|
|
273
273
|
C(() => {
|
|
274
274
|
process.env.NODE_ENV !== "production" && i && (o.current ? o.current.localName !== t && console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`) : console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));
|
|
275
275
|
}, [t, i]);
|
|
@@ -739,7 +739,7 @@ function Wt(e, t, n, r) {
|
|
|
739
739
|
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
|
|
740
740
|
function Gt(e, t) {
|
|
741
741
|
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
|
|
742
|
-
return n =
|
|
742
|
+
return n = F(n), i && r ? i = [...new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
|
|
743
743
|
id: n,
|
|
744
744
|
"aria-label": r,
|
|
745
745
|
"aria-labelledby": i
|
|
@@ -1407,12 +1407,12 @@ function Bn(e) {
|
|
|
1407
1407
|
return r;
|
|
1408
1408
|
}
|
|
1409
1409
|
function Vn(e, t) {
|
|
1410
|
-
let { focusProps: n } = Fn(e), { keyboardProps: r } = Ln(e), i =
|
|
1410
|
+
let { focusProps: n } = Fn(e), { keyboardProps: r } = Ln(e), i = R(n, r), a = Bn(t), o = e.isDisabled ? {} : a, c = f(e.autoFocus);
|
|
1411
1411
|
s(() => {
|
|
1412
1412
|
c.current && t.current && Pn(t.current), c.current = !1;
|
|
1413
1413
|
}, [t]);
|
|
1414
1414
|
let l = e.excludeFromTabOrder ? -1 : 0;
|
|
1415
|
-
return e.isDisabled && (l = void 0), { focusableProps:
|
|
1415
|
+
return e.isDisabled && (l = void 0), { focusableProps: R({
|
|
1416
1416
|
...i,
|
|
1417
1417
|
tabIndex: l
|
|
1418
1418
|
}, o) };
|
|
@@ -1697,7 +1697,7 @@ function Dr(e) {
|
|
|
1697
1697
|
let t = o(Tr);
|
|
1698
1698
|
if (t) {
|
|
1699
1699
|
let { register: n, ref: r, ...i } = t;
|
|
1700
|
-
e =
|
|
1700
|
+
e = R(i, e), n();
|
|
1701
1701
|
}
|
|
1702
1702
|
return Rn(t, e.ref), e;
|
|
1703
1703
|
}
|
|
@@ -1984,7 +1984,7 @@ function Mr(e) {
|
|
|
1984
1984
|
};
|
|
1985
1985
|
}, [g]), {
|
|
1986
1986
|
isPressed: d || b,
|
|
1987
|
-
pressProps:
|
|
1987
|
+
pressProps: R(y, te, { [jr]: !0 })
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
1990
|
function Nr(e) {
|
|
@@ -2223,8 +2223,8 @@ var ei = /*#__PURE__*/ n({}), ti = /*#__PURE__*/ Wn(function(t, n) {
|
|
|
2223
2223
|
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
|
|
2224
2224
|
function ni(e) {
|
|
2225
2225
|
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
|
|
2226
|
-
t =
|
|
2227
|
-
let o =
|
|
2226
|
+
t = F(t);
|
|
2227
|
+
let o = F(), s = {};
|
|
2228
2228
|
n ? (r = r ? `${o} ${r}` : o, s = {
|
|
2229
2229
|
id: o,
|
|
2230
2230
|
htmlFor: a === "label" ? t : void 0
|
|
@@ -2319,10 +2319,10 @@ function ci(e, t) {
|
|
|
2319
2319
|
ref: t
|
|
2320
2320
|
}), { focusableProps: y } = Vn(e, t);
|
|
2321
2321
|
u && (y.tabIndex = r ? -1 : y.tabIndex);
|
|
2322
|
-
let b =
|
|
2322
|
+
let b = R(y, _, G(e, { labelable: !0 }));
|
|
2323
2323
|
return {
|
|
2324
2324
|
isPressed: v,
|
|
2325
|
-
buttonProps:
|
|
2325
|
+
buttonProps: R(g, b, {
|
|
2326
2326
|
"aria-haspopup": e["aria-haspopup"],
|
|
2327
2327
|
"aria-expanded": e["aria-expanded"],
|
|
2328
2328
|
"aria-controls": e["aria-controls"],
|
|
@@ -2352,7 +2352,7 @@ var li = /*#__PURE__*/ n({}), K = /*#__PURE__*/ Wn(function(t, n) {
|
|
|
2352
2352
|
...t,
|
|
2353
2353
|
values: m,
|
|
2354
2354
|
defaultClassName: "react-aria-Button"
|
|
2355
|
-
}), g =
|
|
2355
|
+
}), g = F(a.id), _ = F(), v = a["aria-labelledby"];
|
|
2356
2356
|
i && (v ? v = `${v} ${_}` : a["aria-label"] && (v = `${g} ${_}`));
|
|
2357
2357
|
let y = f(i);
|
|
2358
2358
|
s(() => {
|
|
@@ -2366,7 +2366,7 @@ var li = /*#__PURE__*/ n({}), K = /*#__PURE__*/ Wn(function(t, n) {
|
|
|
2366
2366
|
]);
|
|
2367
2367
|
let b = G(t, { global: !0 });
|
|
2368
2368
|
return delete b.onClick, /*#__PURE__*/ e.createElement(B.button, {
|
|
2369
|
-
...
|
|
2369
|
+
...R(b, h, a, c, d),
|
|
2370
2370
|
type: a.type === "submit" && i ? "button" : a.type,
|
|
2371
2371
|
id: g,
|
|
2372
2372
|
ref: n,
|
|
@@ -2425,21 +2425,21 @@ function _i(e, t) {
|
|
|
2425
2425
|
function vi(e, t, n = {}) {
|
|
2426
2426
|
let { block: r = "nearest", inline: i = "nearest" } = n;
|
|
2427
2427
|
if (e === t) return;
|
|
2428
|
-
let a = e.scrollTop, o = e.scrollLeft, s = t.getBoundingClientRect(), c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = s.top - _, A = s.bottom + v, j = s.left - y, M = s.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P,
|
|
2429
|
-
u.direction === "rtl" && !rt() ?
|
|
2430
|
-
let
|
|
2431
|
-
if (
|
|
2432
|
-
else if (
|
|
2433
|
-
else if (
|
|
2434
|
-
else if (
|
|
2428
|
+
let a = e.scrollTop, o = e.scrollLeft, s = t.getBoundingClientRect(), c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = s.top - _, A = s.bottom + v, j = s.left - y, M = s.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;
|
|
2429
|
+
u.direction === "rtl" && !rt() ? ie += te : ae -= te;
|
|
2430
|
+
let F = k < ne || A > re, I = j < ie || M > ae;
|
|
2431
|
+
if (F && r === "start") a += k - ne;
|
|
2432
|
+
else if (F && r === "center") a += (k + A) / 2 - (ne + re) / 2;
|
|
2433
|
+
else if (F && r === "end") a += A - re;
|
|
2434
|
+
else if (F && r === "nearest") {
|
|
2435
2435
|
let e = k - ne, t = A - re;
|
|
2436
2436
|
a += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
2437
2437
|
}
|
|
2438
|
-
if (
|
|
2439
|
-
else if (
|
|
2440
|
-
else if (
|
|
2441
|
-
else if (
|
|
2442
|
-
let e = j -
|
|
2438
|
+
if (I && i === "start") o += j - ie;
|
|
2439
|
+
else if (I && i === "center") o += (j + M) / 2 - (ie + ae) / 2;
|
|
2440
|
+
else if (I && i === "end") o += M - ae;
|
|
2441
|
+
else if (I && i === "nearest") {
|
|
2442
|
+
let e = j - ie, t = M - ae;
|
|
2443
2443
|
o += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
2444
2444
|
}
|
|
2445
2445
|
if (process.env.NODE_ENV === "test") {
|
|
@@ -2530,7 +2530,7 @@ function wi(e = {}) {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
function Ti(t) {
|
|
2532
2532
|
let { children: n, elementType: r = "div", isFocusable: i, style: a, ...o } = t, { visuallyHiddenProps: s } = wi(t);
|
|
2533
|
-
return /*#__PURE__*/ e.createElement(r,
|
|
2533
|
+
return /*#__PURE__*/ e.createElement(r, R(o, s), n);
|
|
2534
2534
|
}
|
|
2535
2535
|
//#endregion
|
|
2536
2536
|
//#region node_modules/react-aria-components/dist/private/FieldError.mjs
|
|
@@ -2626,18 +2626,18 @@ var Ri = /*#__PURE__*/ n(null), zi = /* @__PURE__ */ new WeakMap();
|
|
|
2626
2626
|
//#endregion
|
|
2627
2627
|
//#region node_modules/react-aria/dist/private/label/useField.mjs
|
|
2628
2628
|
function Bi(e) {
|
|
2629
|
-
let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ni(e), s =
|
|
2629
|
+
let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ni(e), s = oe([
|
|
2630
2630
|
!!t,
|
|
2631
2631
|
!!n,
|
|
2632
2632
|
r,
|
|
2633
2633
|
i
|
|
2634
|
-
]), c =
|
|
2634
|
+
]), c = oe([
|
|
2635
2635
|
!!t,
|
|
2636
2636
|
!!n,
|
|
2637
2637
|
r,
|
|
2638
2638
|
i
|
|
2639
2639
|
]);
|
|
2640
|
-
return o =
|
|
2640
|
+
return o = R(o, { "aria-describedby": [
|
|
2641
2641
|
s,
|
|
2642
2642
|
c,
|
|
2643
2643
|
e["aria-describedby"]
|
|
@@ -2732,7 +2732,7 @@ function Ki(e = !0) {
|
|
|
2732
2732
|
}, []), [i, t];
|
|
2733
2733
|
}
|
|
2734
2734
|
function qi(e = !0) {
|
|
2735
|
-
let t =
|
|
2735
|
+
let t = F(), [n, r] = Ki(e);
|
|
2736
2736
|
return {
|
|
2737
2737
|
id: r ? t : void 0,
|
|
2738
2738
|
ref: n
|
|
@@ -2791,12 +2791,12 @@ function Ji(e, t, n) {
|
|
|
2791
2791
|
a();
|
|
2792
2792
|
},
|
|
2793
2793
|
isDisabled: r || i
|
|
2794
|
-
}), { focusableProps: j } = Vn(e, n), M =
|
|
2794
|
+
}), { focusableProps: j } = Vn(e, n), M = R(E, j), N = G(e, { labelable: !0 });
|
|
2795
2795
|
Vi(n, t.defaultSelected, t.setSelected);
|
|
2796
2796
|
let ee = qi(), te = qi();
|
|
2797
2797
|
return {
|
|
2798
|
-
labelProps:
|
|
2799
|
-
inputProps:
|
|
2798
|
+
labelProps: R(A, { onClick: (e) => e.preventDefault() }),
|
|
2799
|
+
inputProps: R(N, {
|
|
2800
2800
|
checked: t.isSelected,
|
|
2801
2801
|
"aria-required": l && u === "aria" || void 0,
|
|
2802
2802
|
required: l && u === "native",
|
|
@@ -2835,7 +2835,7 @@ function Yi(e, t, n) {
|
|
|
2835
2835
|
return s(() => {
|
|
2836
2836
|
n.current && (n.current.indeterminate = !!g);
|
|
2837
2837
|
}), {
|
|
2838
|
-
labelProps:
|
|
2838
|
+
labelProps: R(r, u(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
|
|
2839
2839
|
inputProps: i,
|
|
2840
2840
|
descriptionProps: a,
|
|
2841
2841
|
errorMessageProps: o,
|
|
@@ -2920,7 +2920,7 @@ function Zi(e, t, n) {
|
|
|
2920
2920
|
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
|
|
2921
2921
|
var Qi = /*#__PURE__*/ n(null), $i = /*#__PURE__*/ n(null), ea = /*#__PURE__*/ n(null);
|
|
2922
2922
|
function ta(e, t) {
|
|
2923
|
-
let { validationBehavior: n } = pe(Ri) || {}, r = e.validationBehavior ?? n ?? "native", i = o($i), a =
|
|
2923
|
+
let { validationBehavior: n } = pe(Ri) || {}, r = e.validationBehavior ?? n ?? "native", i = o($i), a = z(u(() => se(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), s = {
|
|
2924
2924
|
...ge(e),
|
|
2925
2925
|
children: typeof e.children == "function" ? !0 : e.children,
|
|
2926
2926
|
value: e.value,
|
|
@@ -2963,7 +2963,7 @@ var na = /*#__PURE__*/ r(function(t, n) {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
}), S = G(t, { global: !0 });
|
|
2965
2965
|
return delete S.id, delete S.onClick, /*#__PURE__*/ e.createElement(B.label, {
|
|
2966
|
-
...
|
|
2966
|
+
...R(S, r, y, x),
|
|
2967
2967
|
ref: n,
|
|
2968
2968
|
slot: t.slot || void 0,
|
|
2969
2969
|
"data-selected": a || void 0,
|
|
@@ -2977,7 +2977,7 @@ var na = /*#__PURE__*/ r(function(t, n) {
|
|
|
2977
2977
|
"data-invalid": u || void 0,
|
|
2978
2978
|
"data-required": m || void 0
|
|
2979
2979
|
}, /*#__PURE__*/ e.createElement(Ti, { elementType: "span" }, /*#__PURE__*/ e.createElement("input", {
|
|
2980
|
-
...
|
|
2980
|
+
...R(i, _),
|
|
2981
2981
|
ref: d
|
|
2982
2982
|
})), x.children);
|
|
2983
2983
|
}), ia = /*#__PURE__*/ n({}), aa = /*#__PURE__*/ n({}), oa = (e) => {
|
|
@@ -3003,7 +3003,7 @@ var na = /*#__PURE__*/ r(function(t, n) {
|
|
|
3003
3003
|
defaultClassName: "react-aria-Input"
|
|
3004
3004
|
});
|
|
3005
3005
|
return /*#__PURE__*/ e.createElement(B.input, {
|
|
3006
|
-
...
|
|
3006
|
+
...R(oa(t), s, r),
|
|
3007
3007
|
...l,
|
|
3008
3008
|
ref: n,
|
|
3009
3009
|
"data-focused": a || void 0,
|
|
@@ -3029,7 +3029,7 @@ function ca(t, n) {
|
|
|
3029
3029
|
}, [C] = p(l);
|
|
3030
3030
|
return Vi(n, t.defaultValue ?? C, u), Hi(t, f, n), {
|
|
3031
3031
|
labelProps: _,
|
|
3032
|
-
inputProps:
|
|
3032
|
+
inputProps: R(x, r === "input" ? S : void 0, {
|
|
3033
3033
|
disabled: i,
|
|
3034
3034
|
readOnly: o,
|
|
3035
3035
|
required: a && c === "native",
|
|
@@ -3531,7 +3531,7 @@ function Ba(e, t) {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
var Va = /* @__PURE__ */ new WeakMap();
|
|
3533
3533
|
function Ha(e) {
|
|
3534
|
-
let t =
|
|
3534
|
+
let t = F();
|
|
3535
3535
|
return Va.set(e, t), t;
|
|
3536
3536
|
}
|
|
3537
3537
|
function Ua(e) {
|
|
@@ -3749,11 +3749,11 @@ function Ja(e) {
|
|
|
3749
3749
|
keyboardDelegate: n,
|
|
3750
3750
|
selectionManager: t
|
|
3751
3751
|
});
|
|
3752
|
-
d || (k =
|
|
3752
|
+
d || (k = R(A, k));
|
|
3753
3753
|
let j;
|
|
3754
3754
|
p || (j = t.focusedKey == null ? 0 : -1);
|
|
3755
3755
|
let M = Ha(t.collection);
|
|
3756
|
-
return { collectionProps:
|
|
3756
|
+
return { collectionProps: R(k, {
|
|
3757
3757
|
tabIndex: j,
|
|
3758
3758
|
"data-collection": M
|
|
3759
3759
|
}) };
|
|
@@ -3791,13 +3791,13 @@ function Xa(e) {
|
|
|
3791
3791
|
});
|
|
3792
3792
|
}
|
|
3793
3793
|
});
|
|
3794
|
-
return { longPressProps:
|
|
3794
|
+
return { longPressProps: R(u, Si(i && !t ? o : void 0)) };
|
|
3795
3795
|
}
|
|
3796
3796
|
//#endregion
|
|
3797
3797
|
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
|
|
3798
3798
|
function Za(e) {
|
|
3799
3799
|
let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: c, isDisabled: l, onAction: u, allowsDifferentPressOrigin: d, linkBehavior: p = "action" } = e, m = ft();
|
|
3800
|
-
t =
|
|
3800
|
+
t = F(t);
|
|
3801
3801
|
let h = (e) => {
|
|
3802
3802
|
if (e.pointerType === "keyboard" && za(e)) n.toggleSelection(r);
|
|
3803
3803
|
else {
|
|
@@ -3855,7 +3855,7 @@ function Za(e) {
|
|
|
3855
3855
|
E.current = e.pointerType, O.current = D, k.current = C, b && (e.pointerType === "mouse" && !C || e.pointerType === "keyboard" && (!x || $a(e.key))) && h(e);
|
|
3856
3856
|
}, M.onPress = (e) => {
|
|
3857
3857
|
(e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && T && Qa(e.key) || e.pointerType === "mouse" && k.current) && (T ? j(e) : b && h(e));
|
|
3858
|
-
}), g["data-collection"] = Ua(n.collection), g["data-key"] = r, M.preventFocusOnPress = o, o && (M =
|
|
3858
|
+
}), g["data-collection"] = Ua(n.collection), g["data-key"] = r, M.preventFocusOnPress = o, o && (M = R(M, {
|
|
3859
3859
|
onPressStart(e) {
|
|
3860
3860
|
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
|
|
3861
3861
|
},
|
|
@@ -3883,7 +3883,7 @@ function Za(e) {
|
|
|
3883
3883
|
pt.isOpening || e.preventDefault();
|
|
3884
3884
|
} : void 0;
|
|
3885
3885
|
return {
|
|
3886
|
-
itemProps:
|
|
3886
|
+
itemProps: R(g, b || C || o && !l ? N : {}, D ? P : {}, {
|
|
3887
3887
|
onDoubleClick: te,
|
|
3888
3888
|
onDragStartCapture: ne,
|
|
3889
3889
|
onClick: re,
|
|
@@ -4985,7 +4985,7 @@ function js(e, t, n) {
|
|
|
4985
4985
|
//#endregion
|
|
4986
4986
|
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
|
|
4987
4987
|
function Ms(e, t) {
|
|
4988
|
-
let { role: n = "dialog" } = e, r =
|
|
4988
|
+
let { role: n = "dialog" } = e, r = oe();
|
|
4989
4989
|
r = e["aria-label"] ? void 0 : r;
|
|
4990
4990
|
let i = f(!1);
|
|
4991
4991
|
s(() => {
|
|
@@ -5036,7 +5036,7 @@ var Ns = /*#__PURE__*/ n(null), Ps = /*#__PURE__*/ n(null), Fs = /*#__PURE__*/ r
|
|
|
5036
5036
|
values: { close: s?.close || (() => {}) }
|
|
5037
5037
|
}), l = G(t, { global: !0 });
|
|
5038
5038
|
return /*#__PURE__*/ e.createElement(B.section, {
|
|
5039
|
-
...
|
|
5039
|
+
...R(l, c, i),
|
|
5040
5040
|
render: t.render,
|
|
5041
5041
|
ref: n,
|
|
5042
5042
|
slot: t.slot || void 0
|
|
@@ -5084,7 +5084,7 @@ function Ls(e, t, n) {
|
|
|
5084
5084
|
return Mo({ isDisabled: !t.isOpen }), Ds(), s(() => {
|
|
5085
5085
|
if (t.isOpen && n.current) return wo([n.current], { shouldUseInert: !0 });
|
|
5086
5086
|
}, [t.isOpen, n]), {
|
|
5087
|
-
modalProps:
|
|
5087
|
+
modalProps: R(r),
|
|
5088
5088
|
underlayProps: i
|
|
5089
5089
|
};
|
|
5090
5090
|
}
|
|
@@ -5164,7 +5164,7 @@ function Ws(t, n) {
|
|
|
5164
5164
|
[t, n] = me(t, n, Vs);
|
|
5165
5165
|
let r = o(Ps), i = Os(t), a = t.isOpen != null || t.defaultOpen != null || !r ? i : r;
|
|
5166
5166
|
a === r && process.env.NODE_ENV !== "production" && (t.onOpenChange || t.defaultOpen !== void 0 || t.isOpen !== void 0) && console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");
|
|
5167
|
-
let s =
|
|
5167
|
+
let s = z(n), c = f(null), l = As(s, a.isOpen), u = As(c, a.isOpen), d = l || u || t.isExiting || !1, p = P();
|
|
5168
5168
|
return !a.isOpen && !d || p ? null : /*#__PURE__*/ e.createElement(Ks, {
|
|
5169
5169
|
...t,
|
|
5170
5170
|
state: a,
|
|
@@ -5199,7 +5199,7 @@ function Ks({ UNSTABLE_portalContainer: t, ...n }) {
|
|
|
5199
5199
|
isExiting: n.isExiting,
|
|
5200
5200
|
portalContainer: t
|
|
5201
5201
|
}, /*#__PURE__*/ e.createElement(B.div, {
|
|
5202
|
-
...
|
|
5202
|
+
...R(G(n, { global: !0 }), o),
|
|
5203
5203
|
...c,
|
|
5204
5204
|
style: f,
|
|
5205
5205
|
ref: n.overlayRef,
|
|
@@ -5213,7 +5213,7 @@ function Ks({ UNSTABLE_portalContainer: t, ...n }) {
|
|
|
5213
5213
|
}], [Ps, i]] }, c.children)));
|
|
5214
5214
|
}
|
|
5215
5215
|
function qs(t) {
|
|
5216
|
-
let { modalProps: n, modalRef: r, isExiting: i, isDismissable: a } = o(Hs), s = o(Ps), c =
|
|
5216
|
+
let { modalProps: n, modalRef: r, isExiting: i, isDismissable: a } = o(Hs), s = o(Ps), c = z(u(() => se(t.modalRef, r), [t.modalRef, r])), l = ks(c), d = fe({
|
|
5217
5217
|
...t,
|
|
5218
5218
|
defaultClassName: "react-aria-Modal",
|
|
5219
5219
|
values: {
|
|
@@ -5223,7 +5223,7 @@ function qs(t) {
|
|
|
5223
5223
|
}
|
|
5224
5224
|
});
|
|
5225
5225
|
return /*#__PURE__*/ e.createElement(B.div, {
|
|
5226
|
-
...
|
|
5226
|
+
...R(G(t, { global: !0 }), n),
|
|
5227
5227
|
...d,
|
|
5228
5228
|
ref: c,
|
|
5229
5229
|
"data-entering": l || void 0,
|
|
@@ -5250,7 +5250,7 @@ function Js(e, t, n) {
|
|
|
5250
5250
|
var Ys = /*#__PURE__*/ n(null), Xs = /*#__PURE__*/ n(null), Zs = /*#__PURE__*/ r(function(t, n) {
|
|
5251
5251
|
let { inputRef: r = null, ...i } = t;
|
|
5252
5252
|
[t, n] = me(i, n, Ys);
|
|
5253
|
-
let a =
|
|
5253
|
+
let a = z(se(r, t.inputRef === void 0 ? null : t.inputRef)), o = Xi(t), s = Js({
|
|
5254
5254
|
...ge(t),
|
|
5255
5255
|
children: typeof t.children == "function" ? !0 : t.children
|
|
5256
5256
|
}, o, a);
|
|
@@ -5283,7 +5283,7 @@ var Ys = /*#__PURE__*/ n(null), Xs = /*#__PURE__*/ n(null), Zs = /*#__PURE__*/ r
|
|
|
5283
5283
|
}
|
|
5284
5284
|
}), S = G(t, { global: !0 });
|
|
5285
5285
|
return delete S.id, delete S.onClick, /*#__PURE__*/ e.createElement(B.label, {
|
|
5286
|
-
...
|
|
5286
|
+
...R(S, r, y, x),
|
|
5287
5287
|
ref: n,
|
|
5288
5288
|
slot: t.slot || void 0,
|
|
5289
5289
|
"data-selected": a || void 0,
|
|
@@ -5296,7 +5296,7 @@ var Ys = /*#__PURE__*/ n(null), Xs = /*#__PURE__*/ n(null), Zs = /*#__PURE__*/ r
|
|
|
5296
5296
|
"data-invalid": u || void 0,
|
|
5297
5297
|
"data-required": p || void 0
|
|
5298
5298
|
}, /*#__PURE__*/ e.createElement(Ti, { elementType: "span" }, /*#__PURE__*/ e.createElement("input", {
|
|
5299
|
-
...
|
|
5299
|
+
...R(i, g),
|
|
5300
5300
|
ref: d
|
|
5301
5301
|
})), x.children);
|
|
5302
5302
|
}), ec = /* @__PURE__ */ new WeakMap();
|
|
@@ -5323,7 +5323,7 @@ function nc(e, t, n) {
|
|
|
5323
5323
|
isDisabled: l
|
|
5324
5324
|
}, n);
|
|
5325
5325
|
return {
|
|
5326
|
-
tabProps:
|
|
5326
|
+
tabProps: R(g, v, _, d, {
|
|
5327
5327
|
id: p,
|
|
5328
5328
|
"aria-selected": c,
|
|
5329
5329
|
"aria-disabled": l || void 0,
|
|
@@ -5340,7 +5340,7 @@ function nc(e, t, n) {
|
|
|
5340
5340
|
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
|
|
5341
5341
|
function rc(e, t, n) {
|
|
5342
5342
|
let r = Is(n) ? void 0 : 0, i = tc(t, e.id ?? t?.selectedKey, "tabpanel");
|
|
5343
|
-
return { tabPanelProps:
|
|
5343
|
+
return { tabPanelProps: R(Gt({
|
|
5344
5344
|
...e,
|
|
5345
5345
|
id: i,
|
|
5346
5346
|
"aria-labelledby": tc(t, t?.selectedKey, "tab")
|
|
@@ -5411,9 +5411,9 @@ function ac(e, t, n) {
|
|
|
5411
5411
|
disallowEmptySelection: !0,
|
|
5412
5412
|
scrollRef: n,
|
|
5413
5413
|
linkBehavior: "selection"
|
|
5414
|
-
}), d =
|
|
5414
|
+
}), d = F();
|
|
5415
5415
|
return ec.set(t, d), { tabListProps: {
|
|
5416
|
-
...
|
|
5416
|
+
...R(l, Gt({
|
|
5417
5417
|
...e,
|
|
5418
5418
|
id: d
|
|
5419
5419
|
})),
|
|
@@ -5506,7 +5506,7 @@ function fc({ props: t, tabsRef: n, collection: r }) {
|
|
|
5506
5506
|
values: l
|
|
5507
5507
|
}), f = G(t, { global: !0 });
|
|
5508
5508
|
return /*#__PURE__*/ e.createElement(B.div, {
|
|
5509
|
-
...
|
|
5509
|
+
...R(f, d, o),
|
|
5510
5510
|
ref: n,
|
|
5511
5511
|
slot: t.slot || void 0,
|
|
5512
5512
|
"data-focused": s || void 0,
|
|
@@ -5522,7 +5522,7 @@ var pc = /*#__PURE__*/ r(function(t, n) {
|
|
|
5522
5522
|
}) : /*#__PURE__*/ e.createElement(ir, t);
|
|
5523
5523
|
});
|
|
5524
5524
|
function mc({ props: t, forwardedRef: n }) {
|
|
5525
|
-
let r = o(uc), { CollectionRoot: i } = o(lr), { orientation: a = "horizontal", keyboardActivation: s = "automatic" } = pe(lc), c =
|
|
5525
|
+
let r = o(uc), { CollectionRoot: i } = o(lr), { orientation: a = "horizontal", keyboardActivation: s = "automatic" } = pe(lc), c = z(n), { tabListProps: l } = ac({
|
|
5526
5526
|
...t,
|
|
5527
5527
|
orientation: a,
|
|
5528
5528
|
keyboardActivation: s
|
|
@@ -5536,7 +5536,7 @@ function mc({ props: t, forwardedRef: n }) {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
}), d = G(t, { global: !0 });
|
|
5538
5538
|
return delete d.id, /*#__PURE__*/ e.createElement(B.div, {
|
|
5539
|
-
...
|
|
5539
|
+
...R(d, u, l),
|
|
5540
5540
|
ref: c,
|
|
5541
5541
|
"data-orientation": a || void 0
|
|
5542
5542
|
}, /*#__PURE__*/ e.createElement(ua, null, /*#__PURE__*/ e.createElement(i, {
|
|
@@ -5549,7 +5549,7 @@ var hc = /*#__PURE__*/ tr(class extends bn {
|
|
|
5549
5549
|
this.type = "item";
|
|
5550
5550
|
}
|
|
5551
5551
|
}, (t, n, r) => {
|
|
5552
|
-
let i = o(uc), a =
|
|
5552
|
+
let i = o(uc), a = z(n), { tabProps: s, isSelected: c, isDisabled: l, isPressed: u } = nc({
|
|
5553
5553
|
key: r.key,
|
|
5554
5554
|
...t
|
|
5555
5555
|
}, i, a), { focusProps: d, isFocused: f, isFocusVisible: p } = qr(), { hoverProps: m, isHovered: h } = $r({
|
|
@@ -5572,7 +5572,7 @@ var hc = /*#__PURE__*/ tr(class extends bn {
|
|
|
5572
5572
|
}
|
|
5573
5573
|
}), _ = r.props.href ? B.a : B.div, v = G(t, { global: !0 });
|
|
5574
5574
|
return delete v.id, delete v.onClick, /*#__PURE__*/ e.createElement(_, {
|
|
5575
|
-
...
|
|
5575
|
+
...R(v, g, s, d, m),
|
|
5576
5576
|
ref: a,
|
|
5577
5577
|
"data-selected": c || void 0,
|
|
5578
5578
|
"data-disabled": l || void 0,
|
|
@@ -5582,7 +5582,7 @@ var hc = /*#__PURE__*/ tr(class extends bn {
|
|
|
5582
5582
|
"data-hovered": h || void 0
|
|
5583
5583
|
}, /*#__PURE__*/ e.createElement(da.Provider, { value: { isSelected: c } }, g.children));
|
|
5584
5584
|
}), gc = /*#__PURE__*/ Wn(function(t, n) {
|
|
5585
|
-
let r = o(uc), i =
|
|
5585
|
+
let r = o(uc), i = z(n), a = r.selectedKey === t.id, [s, c] = p(r.selectedKey == null ? null : a);
|
|
5586
5586
|
s == null && r.selectedKey != null ? c(a) : !a && s && c(!1);
|
|
5587
5587
|
let l = As(i, a);
|
|
5588
5588
|
return !a && !t.shouldForceMount && !l ? null : /*#__PURE__*/ e.createElement(_c, {
|
|
@@ -5606,7 +5606,7 @@ function _c(t) {
|
|
|
5606
5606
|
}
|
|
5607
5607
|
}), g = G(c, { global: !0 });
|
|
5608
5608
|
delete g.id;
|
|
5609
|
-
let _ = p ?
|
|
5609
|
+
let _ = p ? R(g, l, u, h) : R(g, h);
|
|
5610
5610
|
return /*#__PURE__*/ e.createElement(B.div, {
|
|
5611
5611
|
..._,
|
|
5612
5612
|
ref: i,
|
|
@@ -6055,35 +6055,35 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6055
6055
|
"y",
|
|
6056
6056
|
"space",
|
|
6057
6057
|
"round"
|
|
6058
|
-
] }],
|
|
6058
|
+
] }], ie = () => [
|
|
6059
6059
|
"auto",
|
|
6060
6060
|
"cover",
|
|
6061
6061
|
"contain",
|
|
6062
6062
|
Al,
|
|
6063
6063
|
yl,
|
|
6064
6064
|
{ size: [Q, Z] }
|
|
6065
|
-
],
|
|
6065
|
+
], ae = () => [
|
|
6066
6066
|
ul,
|
|
6067
6067
|
Dl,
|
|
6068
6068
|
bl
|
|
6069
|
-
],
|
|
6069
|
+
], F = () => [
|
|
6070
6070
|
"",
|
|
6071
6071
|
"none",
|
|
6072
6072
|
"full",
|
|
6073
6073
|
l,
|
|
6074
6074
|
Q,
|
|
6075
6075
|
Z
|
|
6076
|
-
],
|
|
6076
|
+
], I = () => [
|
|
6077
6077
|
"",
|
|
6078
6078
|
X,
|
|
6079
6079
|
Dl,
|
|
6080
6080
|
bl
|
|
6081
|
-
],
|
|
6081
|
+
], oe = () => [
|
|
6082
6082
|
"solid",
|
|
6083
6083
|
"dashed",
|
|
6084
6084
|
"dotted",
|
|
6085
6085
|
"double"
|
|
6086
|
-
],
|
|
6086
|
+
], se = () => [
|
|
6087
6087
|
"normal",
|
|
6088
6088
|
"multiply",
|
|
6089
6089
|
"screen",
|
|
@@ -6100,28 +6100,28 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6100
6100
|
"saturation",
|
|
6101
6101
|
"color",
|
|
6102
6102
|
"luminosity"
|
|
6103
|
-
],
|
|
6103
|
+
], L = () => [
|
|
6104
6104
|
X,
|
|
6105
6105
|
ul,
|
|
6106
6106
|
kl,
|
|
6107
6107
|
wl
|
|
6108
|
-
],
|
|
6108
|
+
], ce = () => [
|
|
6109
6109
|
"",
|
|
6110
6110
|
"none",
|
|
6111
6111
|
m,
|
|
6112
6112
|
Q,
|
|
6113
6113
|
Z
|
|
6114
|
-
],
|
|
6114
|
+
], le = () => [
|
|
6115
6115
|
"none",
|
|
6116
6116
|
X,
|
|
6117
6117
|
Q,
|
|
6118
6118
|
Z
|
|
6119
|
-
],
|
|
6119
|
+
], R = () => [
|
|
6120
6120
|
"none",
|
|
6121
6121
|
X,
|
|
6122
6122
|
Q,
|
|
6123
6123
|
Z
|
|
6124
|
-
],
|
|
6124
|
+
], z = () => [
|
|
6125
6125
|
X,
|
|
6126
6126
|
Q,
|
|
6127
6127
|
Z
|
|
@@ -6542,7 +6542,7 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6542
6542
|
"line-through",
|
|
6543
6543
|
"no-underline"
|
|
6544
6544
|
],
|
|
6545
|
-
"text-decoration-style": [{ decoration: [...
|
|
6545
|
+
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
|
|
6546
6546
|
"text-decoration-thickness": [{ decoration: [
|
|
6547
6547
|
X,
|
|
6548
6548
|
"from-font",
|
|
@@ -6639,7 +6639,7 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6639
6639
|
] }],
|
|
6640
6640
|
"bg-position": [{ bg: ne() }],
|
|
6641
6641
|
"bg-repeat": [{ bg: re() }],
|
|
6642
|
-
"bg-size": [{ bg:
|
|
6642
|
+
"bg-size": [{ bg: ie() }],
|
|
6643
6643
|
"bg-image": [{ bg: [
|
|
6644
6644
|
"none",
|
|
6645
6645
|
{
|
|
@@ -6673,49 +6673,49 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6673
6673
|
Tl
|
|
6674
6674
|
] }],
|
|
6675
6675
|
"bg-color": [{ bg: P() }],
|
|
6676
|
-
"gradient-from-pos": [{ from:
|
|
6677
|
-
"gradient-via-pos": [{ via:
|
|
6678
|
-
"gradient-to-pos": [{ to:
|
|
6676
|
+
"gradient-from-pos": [{ from: ae() }],
|
|
6677
|
+
"gradient-via-pos": [{ via: ae() }],
|
|
6678
|
+
"gradient-to-pos": [{ to: ae() }],
|
|
6679
6679
|
"gradient-from": [{ from: P() }],
|
|
6680
6680
|
"gradient-via": [{ via: P() }],
|
|
6681
6681
|
"gradient-to": [{ to: P() }],
|
|
6682
|
-
rounded: [{ rounded:
|
|
6683
|
-
"rounded-s": [{ "rounded-s":
|
|
6684
|
-
"rounded-e": [{ "rounded-e":
|
|
6685
|
-
"rounded-t": [{ "rounded-t":
|
|
6686
|
-
"rounded-r": [{ "rounded-r":
|
|
6687
|
-
"rounded-b": [{ "rounded-b":
|
|
6688
|
-
"rounded-l": [{ "rounded-l":
|
|
6689
|
-
"rounded-ss": [{ "rounded-ss":
|
|
6690
|
-
"rounded-se": [{ "rounded-se":
|
|
6691
|
-
"rounded-ee": [{ "rounded-ee":
|
|
6692
|
-
"rounded-es": [{ "rounded-es":
|
|
6693
|
-
"rounded-tl": [{ "rounded-tl":
|
|
6694
|
-
"rounded-tr": [{ "rounded-tr":
|
|
6695
|
-
"rounded-br": [{ "rounded-br":
|
|
6696
|
-
"rounded-bl": [{ "rounded-bl":
|
|
6697
|
-
"border-w": [{ border:
|
|
6698
|
-
"border-w-x": [{ "border-x":
|
|
6699
|
-
"border-w-y": [{ "border-y":
|
|
6700
|
-
"border-w-s": [{ "border-s":
|
|
6701
|
-
"border-w-e": [{ "border-e":
|
|
6702
|
-
"border-w-bs": [{ "border-bs":
|
|
6703
|
-
"border-w-be": [{ "border-be":
|
|
6704
|
-
"border-w-t": [{ "border-t":
|
|
6705
|
-
"border-w-r": [{ "border-r":
|
|
6706
|
-
"border-w-b": [{ "border-b":
|
|
6707
|
-
"border-w-l": [{ "border-l":
|
|
6708
|
-
"divide-x": [{ "divide-x":
|
|
6682
|
+
rounded: [{ rounded: F() }],
|
|
6683
|
+
"rounded-s": [{ "rounded-s": F() }],
|
|
6684
|
+
"rounded-e": [{ "rounded-e": F() }],
|
|
6685
|
+
"rounded-t": [{ "rounded-t": F() }],
|
|
6686
|
+
"rounded-r": [{ "rounded-r": F() }],
|
|
6687
|
+
"rounded-b": [{ "rounded-b": F() }],
|
|
6688
|
+
"rounded-l": [{ "rounded-l": F() }],
|
|
6689
|
+
"rounded-ss": [{ "rounded-ss": F() }],
|
|
6690
|
+
"rounded-se": [{ "rounded-se": F() }],
|
|
6691
|
+
"rounded-ee": [{ "rounded-ee": F() }],
|
|
6692
|
+
"rounded-es": [{ "rounded-es": F() }],
|
|
6693
|
+
"rounded-tl": [{ "rounded-tl": F() }],
|
|
6694
|
+
"rounded-tr": [{ "rounded-tr": F() }],
|
|
6695
|
+
"rounded-br": [{ "rounded-br": F() }],
|
|
6696
|
+
"rounded-bl": [{ "rounded-bl": F() }],
|
|
6697
|
+
"border-w": [{ border: I() }],
|
|
6698
|
+
"border-w-x": [{ "border-x": I() }],
|
|
6699
|
+
"border-w-y": [{ "border-y": I() }],
|
|
6700
|
+
"border-w-s": [{ "border-s": I() }],
|
|
6701
|
+
"border-w-e": [{ "border-e": I() }],
|
|
6702
|
+
"border-w-bs": [{ "border-bs": I() }],
|
|
6703
|
+
"border-w-be": [{ "border-be": I() }],
|
|
6704
|
+
"border-w-t": [{ "border-t": I() }],
|
|
6705
|
+
"border-w-r": [{ "border-r": I() }],
|
|
6706
|
+
"border-w-b": [{ "border-b": I() }],
|
|
6707
|
+
"border-w-l": [{ "border-l": I() }],
|
|
6708
|
+
"divide-x": [{ "divide-x": I() }],
|
|
6709
6709
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
6710
|
-
"divide-y": [{ "divide-y":
|
|
6710
|
+
"divide-y": [{ "divide-y": I() }],
|
|
6711
6711
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
6712
6712
|
"border-style": [{ border: [
|
|
6713
|
-
...
|
|
6713
|
+
...oe(),
|
|
6714
6714
|
"hidden",
|
|
6715
6715
|
"none"
|
|
6716
6716
|
] }],
|
|
6717
6717
|
"divide-style": [{ divide: [
|
|
6718
|
-
...
|
|
6718
|
+
...oe(),
|
|
6719
6719
|
"hidden",
|
|
6720
6720
|
"none"
|
|
6721
6721
|
] }],
|
|
@@ -6732,7 +6732,7 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6732
6732
|
"border-color-l": [{ "border-l": P() }],
|
|
6733
6733
|
"divide-color": [{ divide: P() }],
|
|
6734
6734
|
"outline-style": [{ outline: [
|
|
6735
|
-
...
|
|
6735
|
+
...oe(),
|
|
6736
6736
|
"none",
|
|
6737
6737
|
"hidden"
|
|
6738
6738
|
] }],
|
|
@@ -6763,12 +6763,12 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6763
6763
|
El
|
|
6764
6764
|
] }],
|
|
6765
6765
|
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
6766
|
-
"ring-w": [{ ring:
|
|
6766
|
+
"ring-w": [{ ring: I() }],
|
|
6767
6767
|
"ring-w-inset": ["ring-inset"],
|
|
6768
6768
|
"ring-color": [{ ring: P() }],
|
|
6769
6769
|
"ring-offset-w": [{ "ring-offset": [X, bl] }],
|
|
6770
6770
|
"ring-offset-color": [{ "ring-offset": P() }],
|
|
6771
|
-
"inset-ring-w": [{ "inset-ring":
|
|
6771
|
+
"inset-ring-w": [{ "inset-ring": I() }],
|
|
6772
6772
|
"inset-ring-color": [{ "inset-ring": P() }],
|
|
6773
6773
|
"text-shadow": [{ "text-shadow": [
|
|
6774
6774
|
"none",
|
|
@@ -6783,11 +6783,11 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6783
6783
|
Z
|
|
6784
6784
|
] }],
|
|
6785
6785
|
"mix-blend": [{ "mix-blend": [
|
|
6786
|
-
...
|
|
6786
|
+
...se(),
|
|
6787
6787
|
"plus-darker",
|
|
6788
6788
|
"plus-lighter"
|
|
6789
6789
|
] }],
|
|
6790
|
-
"bg-blend": [{ "bg-blend":
|
|
6790
|
+
"bg-blend": [{ "bg-blend": se() }],
|
|
6791
6791
|
"mask-clip": [{ "mask-clip": [
|
|
6792
6792
|
"border",
|
|
6793
6793
|
"padding",
|
|
@@ -6803,37 +6803,37 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6803
6803
|
"exclude"
|
|
6804
6804
|
] }],
|
|
6805
6805
|
"mask-image-linear-pos": [{ "mask-linear": [X] }],
|
|
6806
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
6807
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
6806
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
|
|
6807
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
|
|
6808
6808
|
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
6809
6809
|
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
6810
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
6811
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
6810
|
+
"mask-image-t-from-pos": [{ "mask-t-from": L() }],
|
|
6811
|
+
"mask-image-t-to-pos": [{ "mask-t-to": L() }],
|
|
6812
6812
|
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
6813
6813
|
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
6814
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
6815
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
6814
|
+
"mask-image-r-from-pos": [{ "mask-r-from": L() }],
|
|
6815
|
+
"mask-image-r-to-pos": [{ "mask-r-to": L() }],
|
|
6816
6816
|
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
6817
6817
|
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
6818
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
6819
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
6818
|
+
"mask-image-b-from-pos": [{ "mask-b-from": L() }],
|
|
6819
|
+
"mask-image-b-to-pos": [{ "mask-b-to": L() }],
|
|
6820
6820
|
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
6821
6821
|
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
6822
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
6823
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
6822
|
+
"mask-image-l-from-pos": [{ "mask-l-from": L() }],
|
|
6823
|
+
"mask-image-l-to-pos": [{ "mask-l-to": L() }],
|
|
6824
6824
|
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
6825
6825
|
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
6826
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
6827
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
6826
|
+
"mask-image-x-from-pos": [{ "mask-x-from": L() }],
|
|
6827
|
+
"mask-image-x-to-pos": [{ "mask-x-to": L() }],
|
|
6828
6828
|
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
6829
6829
|
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
6830
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
6831
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
6830
|
+
"mask-image-y-from-pos": [{ "mask-y-from": L() }],
|
|
6831
|
+
"mask-image-y-to-pos": [{ "mask-y-to": L() }],
|
|
6832
6832
|
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
6833
6833
|
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
6834
6834
|
"mask-image-radial": [{ "mask-radial": [Q, Z] }],
|
|
6835
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
6836
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
6835
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
|
|
6836
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
|
|
6837
6837
|
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
6838
6838
|
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
6839
6839
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
@@ -6843,8 +6843,8 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6843
6843
|
}] }],
|
|
6844
6844
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
6845
6845
|
"mask-image-conic-pos": [{ "mask-conic": [X] }],
|
|
6846
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
6847
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
6846
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
|
|
6847
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
|
|
6848
6848
|
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
6849
6849
|
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
6850
6850
|
"mask-mode": [{ mask: [
|
|
@@ -6862,7 +6862,7 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6862
6862
|
] }],
|
|
6863
6863
|
"mask-position": [{ mask: ne() }],
|
|
6864
6864
|
"mask-repeat": [{ mask: re() }],
|
|
6865
|
-
"mask-size": [{ mask:
|
|
6865
|
+
"mask-size": [{ mask: ie() }],
|
|
6866
6866
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
6867
6867
|
"mask-image": [{ mask: [
|
|
6868
6868
|
"none",
|
|
@@ -6875,7 +6875,7 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6875
6875
|
Q,
|
|
6876
6876
|
Z
|
|
6877
6877
|
] }],
|
|
6878
|
-
blur: [{ blur:
|
|
6878
|
+
blur: [{ blur: ce() }],
|
|
6879
6879
|
brightness: [{ brightness: [
|
|
6880
6880
|
X,
|
|
6881
6881
|
Q,
|
|
@@ -6928,7 +6928,7 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
6928
6928
|
Q,
|
|
6929
6929
|
Z
|
|
6930
6930
|
] }],
|
|
6931
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
6931
|
+
"backdrop-blur": [{ "backdrop-blur": ce() }],
|
|
6932
6932
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
6933
6933
|
X,
|
|
6934
6934
|
Q,
|
|
@@ -7021,18 +7021,18 @@ var vc = /*#__PURE__*/ n({}), yc = /*#__PURE__*/ n(null), bc = /*#__PURE__*/ Wn(
|
|
|
7021
7021
|
Z
|
|
7022
7022
|
] }],
|
|
7023
7023
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
7024
|
-
rotate: [{ rotate:
|
|
7025
|
-
"rotate-x": [{ "rotate-x":
|
|
7026
|
-
"rotate-y": [{ "rotate-y":
|
|
7027
|
-
"rotate-z": [{ "rotate-z":
|
|
7028
|
-
scale: [{ scale:
|
|
7029
|
-
"scale-x": [{ "scale-x":
|
|
7030
|
-
"scale-y": [{ "scale-y":
|
|
7031
|
-
"scale-z": [{ "scale-z":
|
|
7024
|
+
rotate: [{ rotate: le() }],
|
|
7025
|
+
"rotate-x": [{ "rotate-x": le() }],
|
|
7026
|
+
"rotate-y": [{ "rotate-y": le() }],
|
|
7027
|
+
"rotate-z": [{ "rotate-z": le() }],
|
|
7028
|
+
scale: [{ scale: R() }],
|
|
7029
|
+
"scale-x": [{ "scale-x": R() }],
|
|
7030
|
+
"scale-y": [{ "scale-y": R() }],
|
|
7031
|
+
"scale-z": [{ "scale-z": R() }],
|
|
7032
7032
|
"scale-3d": ["scale-3d"],
|
|
7033
|
-
skew: [{ skew:
|
|
7034
|
-
"skew-x": [{ "skew-x":
|
|
7035
|
-
"skew-y": [{ "skew-y":
|
|
7033
|
+
skew: [{ skew: z() }],
|
|
7034
|
+
"skew-x": [{ "skew-x": z() }],
|
|
7035
|
+
"skew-y": [{ "skew-y": z() }],
|
|
7036
7036
|
transform: [{ transform: [
|
|
7037
7037
|
Q,
|
|
7038
7038
|
Z,
|
|
@@ -7479,11 +7479,15 @@ var Gl = (t) => e.createElement("svg", Object.assign({
|
|
|
7479
7479
|
}, Zl = ({ name: e, size: t = "L", className: n = "", onClick: r, color: i, role: a, "aria-label": o }) => {
|
|
7480
7480
|
let s = Yl[e];
|
|
7481
7481
|
if (!s) return null;
|
|
7482
|
-
let c = Xl[t], l = a ?? "img"
|
|
7482
|
+
let c = Xl[t], l = a ?? "img", u = a === "button", d = u ? (e) => {
|
|
7483
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), r?.());
|
|
7484
|
+
} : void 0;
|
|
7483
7485
|
return /* @__PURE__ */ b("span", {
|
|
7484
|
-
className: $("icon",
|
|
7486
|
+
className: $("icon", u && "icon--button", n),
|
|
7485
7487
|
onClick: r,
|
|
7488
|
+
onKeyDown: d,
|
|
7486
7489
|
role: l,
|
|
7490
|
+
tabIndex: u ? 0 : void 0,
|
|
7487
7491
|
"aria-label": o || `${e} icon`,
|
|
7488
7492
|
style: i ? { color: i } : void 0,
|
|
7489
7493
|
children: /* @__PURE__ */ b(s, {
|
|
@@ -7757,8 +7761,6 @@ var pu = ({ prompt: e = "C:\\>", onCommand: t, autoFocus: n = !1, className: r =
|
|
|
7757
7761
|
onClick: () => {
|
|
7758
7762
|
!a && l.current && l.current.focus();
|
|
7759
7763
|
},
|
|
7760
|
-
role: "textbox",
|
|
7761
|
-
"aria-label": "Command prompt",
|
|
7762
7764
|
children: [/* @__PURE__ */ b("span", {
|
|
7763
7765
|
className: "command-prompt__prompt",
|
|
7764
7766
|
"aria-hidden": "true",
|
|
@@ -8232,50 +8234,77 @@ var Mu = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
8232
8234
|
]
|
|
8233
8235
|
})
|
|
8234
8236
|
});
|
|
8235
|
-
}, Pu =
|
|
8236
|
-
|
|
8237
|
+
}, Pu = "eidotter:retro-boot", Fu = "1", Iu = (e) => {
|
|
8238
|
+
if (typeof window > "u") return !1;
|
|
8239
|
+
try {
|
|
8240
|
+
return window.sessionStorage.getItem(e) === Fu;
|
|
8241
|
+
} catch {
|
|
8242
|
+
return !1;
|
|
8243
|
+
}
|
|
8244
|
+
}, Lu = (e) => {
|
|
8245
|
+
if (!(typeof window > "u")) try {
|
|
8246
|
+
window.sessionStorage.setItem(e, Fu);
|
|
8247
|
+
} catch {}
|
|
8248
|
+
}, Ru = ({ scanlines: e = !0, glow: t = !0, flicker: n = !0, bloom: r = !1, powered: i = !0, boot: a = !1, bootOnce: o = !1, bootStorageKey: c = Pu, intensity: l = 1, className: u, onPowerStateChange: d, onPowerOn: m, onPowerOff: h, onBootComplete: g }) => {
|
|
8249
|
+
let _ = f(i), [v, S] = p(i ? "on" : "off"), [C, w] = p(a && !o), T = f(!1), E = f(c), D = f(g);
|
|
8237
8250
|
s(() => {
|
|
8238
|
-
|
|
8251
|
+
D.current = g;
|
|
8252
|
+
});
|
|
8253
|
+
let O = () => {
|
|
8254
|
+
T.current || (T.current = !0, D.current?.());
|
|
8255
|
+
}, k = () => {
|
|
8256
|
+
w(!1), o && Lu(E.current), O();
|
|
8257
|
+
};
|
|
8258
|
+
s(() => {
|
|
8259
|
+
if (!(!a || !o)) {
|
|
8260
|
+
if (Iu(E.current)) {
|
|
8261
|
+
O();
|
|
8262
|
+
return;
|
|
8263
|
+
}
|
|
8264
|
+
w(!0);
|
|
8265
|
+
}
|
|
8266
|
+
}, []), s(() => {
|
|
8267
|
+
if (!C) return;
|
|
8239
8268
|
if (Ql()) {
|
|
8240
|
-
|
|
8269
|
+
k();
|
|
8241
8270
|
return;
|
|
8242
8271
|
}
|
|
8243
8272
|
let e = window.setTimeout(() => {
|
|
8244
|
-
|
|
8273
|
+
k();
|
|
8245
8274
|
}, 1200);
|
|
8246
8275
|
return () => window.clearTimeout(e);
|
|
8247
|
-
}, [
|
|
8248
|
-
let
|
|
8249
|
-
e.animationName === "eidotter-retro-boot-glow" && (
|
|
8276
|
+
}, [C]);
|
|
8277
|
+
let A = (e) => {
|
|
8278
|
+
e.animationName === "eidotter-retro-boot-glow" && k();
|
|
8250
8279
|
};
|
|
8251
8280
|
s(() => {
|
|
8252
|
-
let e =
|
|
8253
|
-
if (
|
|
8281
|
+
let e = _.current;
|
|
8282
|
+
if (_.current = i, e !== i) {
|
|
8254
8283
|
let e = i ? "powering-on" : "powering-off";
|
|
8255
|
-
|
|
8284
|
+
S(e), d?.(e);
|
|
8256
8285
|
}
|
|
8257
|
-
}, [i,
|
|
8258
|
-
let
|
|
8259
|
-
|
|
8260
|
-
},
|
|
8261
|
-
e.animationName !== "retro-power-on" && e.animationName !== "retro-power-off" ||
|
|
8262
|
-
},
|
|
8263
|
-
e.propertyName === "opacity" && (
|
|
8264
|
-
},
|
|
8286
|
+
}, [i, d]);
|
|
8287
|
+
let j = () => {
|
|
8288
|
+
v === "powering-on" ? (S("on"), d?.("on"), m?.()) : v === "powering-off" && (S("off"), d?.("off"), h?.());
|
|
8289
|
+
}, M = (e) => {
|
|
8290
|
+
e.animationName !== "retro-power-on" && e.animationName !== "retro-power-off" || j();
|
|
8291
|
+
}, N = (e) => {
|
|
8292
|
+
e.propertyName === "opacity" && (v !== "powering-on" && v !== "powering-off" || j());
|
|
8293
|
+
}, ee = { "--retro-intensity": l }, te = v !== "off";
|
|
8265
8294
|
return /* @__PURE__ */ x("div", {
|
|
8266
|
-
className: $("fixed inset-0 pointer-events-none z-[9999]", "eidotter-retro-effects",
|
|
8267
|
-
style:
|
|
8295
|
+
className: $("fixed inset-0 pointer-events-none z-[9999]", "eidotter-retro-effects", v === "powering-off" && "eidotter-retro-effects--powering-off", v === "powering-on" && "eidotter-retro-effects--powering-on", v === "off" && "eidotter-retro-effects--off", u),
|
|
8296
|
+
style: ee,
|
|
8268
8297
|
"aria-hidden": "true",
|
|
8269
|
-
onAnimationEnd:
|
|
8270
|
-
onTransitionEnd:
|
|
8271
|
-
children: [
|
|
8298
|
+
onAnimationEnd: M,
|
|
8299
|
+
onTransitionEnd: N,
|
|
8300
|
+
children: [te && /* @__PURE__ */ x(y, { children: [
|
|
8272
8301
|
e && /* @__PURE__ */ b("div", { className: "eidotter-retro-effects__scanlines" }),
|
|
8273
8302
|
t && /* @__PURE__ */ b("div", { className: "eidotter-retro-effects__glow" }),
|
|
8274
8303
|
n && /* @__PURE__ */ b("div", { className: "eidotter-retro-effects__flicker" }),
|
|
8275
8304
|
r && /* @__PURE__ */ b("div", { className: "eidotter-retro-effects__bloom" })
|
|
8276
|
-
] }),
|
|
8305
|
+
] }), C && /* @__PURE__ */ x("div", {
|
|
8277
8306
|
className: "eidotter-retro-effects__boot",
|
|
8278
|
-
onAnimationEnd:
|
|
8307
|
+
onAnimationEnd: A,
|
|
8279
8308
|
children: [
|
|
8280
8309
|
/* @__PURE__ */ b("div", { className: "eidotter-retro-effects__boot-panel eidotter-retro-effects__boot-panel--top" }),
|
|
8281
8310
|
/* @__PURE__ */ b("div", { className: "eidotter-retro-effects__boot-panel eidotter-retro-effects__boot-panel--bottom" }),
|
|
@@ -8284,32 +8313,32 @@ var Mu = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
8284
8313
|
]
|
|
8285
8314
|
})]
|
|
8286
8315
|
});
|
|
8287
|
-
},
|
|
8316
|
+
}, zu = {
|
|
8288
8317
|
sm: "small",
|
|
8289
8318
|
md: "medium",
|
|
8290
8319
|
lg: "large",
|
|
8291
8320
|
small: "small",
|
|
8292
8321
|
medium: "medium",
|
|
8293
8322
|
large: "large"
|
|
8294
|
-
},
|
|
8323
|
+
}, Bu = {
|
|
8295
8324
|
circle: "eidotter-timeline-node--circle",
|
|
8296
8325
|
square: "eidotter-timeline-node--square",
|
|
8297
8326
|
diamond: "eidotter-timeline-node--diamond"
|
|
8298
|
-
},
|
|
8327
|
+
}, Vu = {
|
|
8299
8328
|
default: "eidotter-timeline-node--default",
|
|
8300
8329
|
primary: "eidotter-timeline-node--primary",
|
|
8301
8330
|
secondary: "eidotter-timeline-node--secondary",
|
|
8302
8331
|
accent: "eidotter-timeline-node--accent"
|
|
8303
|
-
},
|
|
8332
|
+
}, Hu = {
|
|
8304
8333
|
left: "eidotter-timeline-node--label-left",
|
|
8305
8334
|
right: "eidotter-timeline-node--label-right",
|
|
8306
8335
|
top: "eidotter-timeline-node--label-top",
|
|
8307
8336
|
bottom: "eidotter-timeline-node--label-bottom"
|
|
8308
|
-
},
|
|
8309
|
-
let u =
|
|
8337
|
+
}, Uu = r(({ shape: e = "circle", variant: t = "default", isActive: n = !1, label: r, labelPosition: i = "right", size: a = "md", className: o, onClick: s, ...c }, l) => {
|
|
8338
|
+
let u = zu[a] ?? "medium";
|
|
8310
8339
|
return /* @__PURE__ */ x("div", {
|
|
8311
8340
|
ref: l,
|
|
8312
|
-
className: $("inline-flex items-center gap-2 font-dos", "eidotter-timeline-node",
|
|
8341
|
+
className: $("inline-flex items-center gap-2 font-dos", "eidotter-timeline-node", Bu[e], Vu[t], `eidotter-timeline-node--${u}`, Hu[i], n && "eidotter-timeline-node--active", s && "eidotter-timeline-node--interactive", o),
|
|
8313
8342
|
onClick: () => {
|
|
8314
8343
|
s && s();
|
|
8315
8344
|
},
|
|
@@ -8344,10 +8373,10 @@ var Mu = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
8344
8373
|
]
|
|
8345
8374
|
});
|
|
8346
8375
|
});
|
|
8347
|
-
|
|
8376
|
+
Uu.displayName = "TimelineNode";
|
|
8348
8377
|
//#endregion
|
|
8349
8378
|
//#region src/components/TimelineContainer/components/types.ts
|
|
8350
|
-
var
|
|
8379
|
+
var Wu = [
|
|
8351
8380
|
"year",
|
|
8352
8381
|
"month",
|
|
8353
8382
|
"day",
|
|
@@ -8355,12 +8384,12 @@ var Bu = [
|
|
|
8355
8384
|
];
|
|
8356
8385
|
//#endregion
|
|
8357
8386
|
//#region src/components/TimelineContainer/components/useDrillDown.ts
|
|
8358
|
-
function
|
|
8387
|
+
function Gu({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {}) {
|
|
8359
8388
|
let r = e === void 0, [i, o] = p(t), [c, l] = p([]), u = f(r);
|
|
8360
8389
|
s(() => {
|
|
8361
8390
|
u.current && !r && l([]), u.current = r;
|
|
8362
8391
|
}, [r]);
|
|
8363
|
-
let d = e ?? i, m =
|
|
8392
|
+
let d = e ?? i, m = Wu.indexOf(d), h = m < Wu.length - 1, g = m > 0, _ = c.length > 0 ? c[c.length - 1].periodStart : null, v = f(r), y = f(h), b = f(m), x = f(c), S = f(n);
|
|
8364
8393
|
s(() => {
|
|
8365
8394
|
v.current = r, y.current = h, b.current = m, x.current = c, S.current = n;
|
|
8366
8395
|
});
|
|
@@ -8376,7 +8405,7 @@ function Vu({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {
|
|
|
8376
8405
|
isDrillDownEnabled: r,
|
|
8377
8406
|
drillDown: a((e, t) => {
|
|
8378
8407
|
if (!v.current || !y.current) return;
|
|
8379
|
-
let n =
|
|
8408
|
+
let n = Wu[b.current + 1];
|
|
8380
8409
|
n !== void 0 && (l((n) => [...n, {
|
|
8381
8410
|
periodStart: e,
|
|
8382
8411
|
label: t
|
|
@@ -8384,7 +8413,7 @@ function Vu({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {
|
|
|
8384
8413
|
}, [C]),
|
|
8385
8414
|
drillUp: a(() => {
|
|
8386
8415
|
if (!v.current || x.current.length === 0) return;
|
|
8387
|
-
let e =
|
|
8416
|
+
let e = Wu[b.current - 1];
|
|
8388
8417
|
e !== void 0 && (l((e) => e.slice(0, -1)), C(e));
|
|
8389
8418
|
}, [C]),
|
|
8390
8419
|
reset: a(() => {
|
|
@@ -8394,7 +8423,7 @@ function Vu({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {
|
|
|
8394
8423
|
}
|
|
8395
8424
|
//#endregion
|
|
8396
8425
|
//#region src/components/TimelineContainer/components/useSelection.ts
|
|
8397
|
-
function
|
|
8426
|
+
function Ku({ selectedEntryId: e, defaultSelectedEntryId: t = null, onSelectEntry: n } = {}) {
|
|
8398
8427
|
let [r, i] = p(t), o = e !== void 0, c = e === void 0 ? r : e, l = f(c), u = f(o), d = f(n);
|
|
8399
8428
|
s(() => {
|
|
8400
8429
|
l.current = c, u.current = o, d.current = n;
|
|
@@ -8420,7 +8449,7 @@ function Hu({ selectedEntryId: e, defaultSelectedEntryId: t = null, onSelectEntr
|
|
|
8420
8449
|
}
|
|
8421
8450
|
//#endregion
|
|
8422
8451
|
//#region src/components/TimelineContainer/components/timelineUtils.ts
|
|
8423
|
-
var
|
|
8452
|
+
var qu = [
|
|
8424
8453
|
"January",
|
|
8425
8454
|
"February",
|
|
8426
8455
|
"March",
|
|
@@ -8433,7 +8462,7 @@ var Uu = [
|
|
|
8433
8462
|
"October",
|
|
8434
8463
|
"November",
|
|
8435
8464
|
"December"
|
|
8436
|
-
],
|
|
8465
|
+
], Ju = [
|
|
8437
8466
|
"Jan",
|
|
8438
8467
|
"Feb",
|
|
8439
8468
|
"Mar",
|
|
@@ -8447,48 +8476,48 @@ var Uu = [
|
|
|
8447
8476
|
"Nov",
|
|
8448
8477
|
"Dec"
|
|
8449
8478
|
];
|
|
8450
|
-
function
|
|
8479
|
+
function Yu(e) {
|
|
8451
8480
|
return new Date(e).getUTCFullYear();
|
|
8452
8481
|
}
|
|
8453
|
-
function
|
|
8482
|
+
function Xu(e) {
|
|
8454
8483
|
return new Date(e).getUTCMonth();
|
|
8455
8484
|
}
|
|
8456
|
-
function
|
|
8485
|
+
function Zu(e) {
|
|
8457
8486
|
return new Date(e).getUTCDate();
|
|
8458
8487
|
}
|
|
8459
|
-
function
|
|
8488
|
+
function Qu(e) {
|
|
8460
8489
|
return new Date(e).getUTCHours();
|
|
8461
8490
|
}
|
|
8462
|
-
function
|
|
8491
|
+
function $u(e) {
|
|
8463
8492
|
return String(e);
|
|
8464
8493
|
}
|
|
8465
|
-
function
|
|
8466
|
-
return `${
|
|
8494
|
+
function ed(e, t) {
|
|
8495
|
+
return `${qu[t]} ${e}`;
|
|
8467
8496
|
}
|
|
8468
|
-
function
|
|
8469
|
-
return `${
|
|
8497
|
+
function td(e, t, n) {
|
|
8498
|
+
return `${Ju[t]} ${n}`;
|
|
8470
8499
|
}
|
|
8471
|
-
function
|
|
8500
|
+
function nd(e, t, n, r) {
|
|
8472
8501
|
let i = r >= 12 ? "pm" : "am", a = r === 0 ? 12 : r > 12 ? r - 12 : r;
|
|
8473
|
-
return `${
|
|
8502
|
+
return `${Ju[t]} ${n}, ${a}${i}`;
|
|
8474
8503
|
}
|
|
8475
|
-
function
|
|
8476
|
-
let t = new Date(e), n =
|
|
8504
|
+
function rd(e) {
|
|
8505
|
+
let t = new Date(e), n = Ju[t.getUTCMonth()], r = t.getUTCDate(), i = t.getUTCFullYear(), a = t.getUTCHours(), o = t.getUTCMinutes(), s = a >= 12 ? "pm" : "am";
|
|
8477
8506
|
return `${n} ${r}, ${i} at ${a === 0 ? 12 : a > 12 ? a - 12 : a}${o > 0 ? `:${String(o).padStart(2, "0")}` : ""}${s}`;
|
|
8478
8507
|
}
|
|
8479
|
-
function
|
|
8508
|
+
function id(e) {
|
|
8480
8509
|
return new Date(Date.UTC(e, 0, 1)).toISOString();
|
|
8481
8510
|
}
|
|
8482
|
-
function
|
|
8511
|
+
function ad(e, t) {
|
|
8483
8512
|
return new Date(Date.UTC(e, t, 1)).toISOString();
|
|
8484
8513
|
}
|
|
8485
|
-
function
|
|
8514
|
+
function od(e, t, n) {
|
|
8486
8515
|
return new Date(Date.UTC(e, t, n)).toISOString();
|
|
8487
8516
|
}
|
|
8488
|
-
function
|
|
8517
|
+
function sd(e, t, n, r) {
|
|
8489
8518
|
return new Date(Date.UTC(e, t, n, r)).toISOString();
|
|
8490
8519
|
}
|
|
8491
|
-
function
|
|
8520
|
+
function cd(e, t, n, r, i) {
|
|
8492
8521
|
let a = /* @__PURE__ */ new Map(), o = [];
|
|
8493
8522
|
for (let n of e) {
|
|
8494
8523
|
let e = t(n), r = a.get(e);
|
|
@@ -8505,32 +8534,32 @@ function id(e, t, n, r, i) {
|
|
|
8505
8534
|
entries: a.get(e) ?? []
|
|
8506
8535
|
}));
|
|
8507
8536
|
}
|
|
8508
|
-
function
|
|
8509
|
-
return String(
|
|
8537
|
+
function ld(e) {
|
|
8538
|
+
return String(Yu(e.date));
|
|
8510
8539
|
}
|
|
8511
|
-
function
|
|
8512
|
-
let t =
|
|
8540
|
+
function ud(e) {
|
|
8541
|
+
let t = Yu(e.date), n = Xu(e.date);
|
|
8513
8542
|
return `${t}-${String(n).padStart(2, "0")}`;
|
|
8514
8543
|
}
|
|
8515
|
-
function
|
|
8516
|
-
let t =
|
|
8544
|
+
function dd(e) {
|
|
8545
|
+
let t = Yu(e.date), n = Xu(e.date), r = Zu(e.date);
|
|
8517
8546
|
return `${t}-${String(n).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
|
|
8518
8547
|
}
|
|
8519
|
-
function
|
|
8520
|
-
let t =
|
|
8548
|
+
function fd(e) {
|
|
8549
|
+
let t = Yu(e.date), n = Xu(e.date), r = Zu(e.date), i = Qu(e.date);
|
|
8521
8550
|
return `${t}-${String(n).padStart(2, "0")}-${String(r).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
|
|
8522
8551
|
}
|
|
8523
|
-
function
|
|
8552
|
+
function pd(e) {
|
|
8524
8553
|
return { year: parseInt(e) };
|
|
8525
8554
|
}
|
|
8526
|
-
function
|
|
8555
|
+
function md(e) {
|
|
8527
8556
|
let [t, n] = e.split("-");
|
|
8528
8557
|
return {
|
|
8529
8558
|
year: parseInt(t),
|
|
8530
8559
|
month: parseInt(n)
|
|
8531
8560
|
};
|
|
8532
8561
|
}
|
|
8533
|
-
function
|
|
8562
|
+
function hd(e) {
|
|
8534
8563
|
let [t, n, r] = e.split("-");
|
|
8535
8564
|
return {
|
|
8536
8565
|
year: parseInt(t),
|
|
@@ -8538,7 +8567,7 @@ function dd(e) {
|
|
|
8538
8567
|
day: parseInt(r)
|
|
8539
8568
|
};
|
|
8540
8569
|
}
|
|
8541
|
-
function
|
|
8570
|
+
function gd(e) {
|
|
8542
8571
|
let [t, n, r, i] = e.split("-");
|
|
8543
8572
|
return {
|
|
8544
8573
|
year: parseInt(t),
|
|
@@ -8547,56 +8576,56 @@ function fd(e) {
|
|
|
8547
8576
|
hour: parseInt(i)
|
|
8548
8577
|
};
|
|
8549
8578
|
}
|
|
8550
|
-
var
|
|
8579
|
+
var _d = {
|
|
8551
8580
|
year: 4,
|
|
8552
8581
|
month: 7,
|
|
8553
8582
|
day: 10
|
|
8554
8583
|
};
|
|
8555
|
-
function
|
|
8584
|
+
function vd(e, t, n) {
|
|
8556
8585
|
if (t === null || n === "hour") return e;
|
|
8557
|
-
let r =
|
|
8586
|
+
let r = _d[n];
|
|
8558
8587
|
if (r === void 0) return e;
|
|
8559
8588
|
let i = t.slice(0, r);
|
|
8560
8589
|
return e.filter((e) => e.periodStart.slice(0, r) === i);
|
|
8561
8590
|
}
|
|
8562
|
-
function
|
|
8591
|
+
function yd(e, t, n = "desc") {
|
|
8563
8592
|
if (e.length === 0) return [];
|
|
8564
8593
|
let r = e.filter((e) => !isNaN(new Date(e.date).getTime()));
|
|
8565
8594
|
if (r.length === 0) return [];
|
|
8566
8595
|
switch (t) {
|
|
8567
|
-
case "year": return
|
|
8568
|
-
let { year: t } =
|
|
8569
|
-
return
|
|
8596
|
+
case "year": return cd(r, ld, (e) => {
|
|
8597
|
+
let { year: t } = pd(e);
|
|
8598
|
+
return $u(t);
|
|
8570
8599
|
}, (e) => {
|
|
8571
|
-
let { year: t } =
|
|
8572
|
-
return
|
|
8600
|
+
let { year: t } = pd(e);
|
|
8601
|
+
return id(t);
|
|
8573
8602
|
}, n);
|
|
8574
|
-
case "month": return
|
|
8575
|
-
let { year: t, month: n } =
|
|
8576
|
-
return
|
|
8603
|
+
case "month": return cd(r, ud, (e) => {
|
|
8604
|
+
let { year: t, month: n } = md(e);
|
|
8605
|
+
return ed(t, n);
|
|
8577
8606
|
}, (e) => {
|
|
8578
|
-
let { year: t, month: n } =
|
|
8579
|
-
return
|
|
8607
|
+
let { year: t, month: n } = md(e);
|
|
8608
|
+
return ad(t, n);
|
|
8580
8609
|
}, n);
|
|
8581
|
-
case "day": return
|
|
8582
|
-
let { year: t, month: n, day: r } =
|
|
8583
|
-
return
|
|
8610
|
+
case "day": return cd(r, dd, (e) => {
|
|
8611
|
+
let { year: t, month: n, day: r } = hd(e);
|
|
8612
|
+
return td(t, n, r);
|
|
8584
8613
|
}, (e) => {
|
|
8585
|
-
let { year: t, month: n, day: r } =
|
|
8586
|
-
return
|
|
8614
|
+
let { year: t, month: n, day: r } = hd(e);
|
|
8615
|
+
return od(t, n, r);
|
|
8587
8616
|
}, n);
|
|
8588
|
-
case "hour": return
|
|
8589
|
-
let { year: t, month: n, day: r, hour: i } =
|
|
8590
|
-
return
|
|
8617
|
+
case "hour": return cd(r, fd, (e) => {
|
|
8618
|
+
let { year: t, month: n, day: r, hour: i } = gd(e);
|
|
8619
|
+
return nd(t, n, r, i);
|
|
8591
8620
|
}, (e) => {
|
|
8592
|
-
let { year: t, month: n, day: r, hour: i } =
|
|
8593
|
-
return
|
|
8621
|
+
let { year: t, month: n, day: r, hour: i } = gd(e);
|
|
8622
|
+
return sd(t, n, r, i);
|
|
8594
8623
|
}, n);
|
|
8595
8624
|
}
|
|
8596
8625
|
}
|
|
8597
8626
|
//#endregion
|
|
8598
8627
|
//#region src/components/TimelineContainer/components/ZoomControls.tsx
|
|
8599
|
-
var
|
|
8628
|
+
var bd = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i, onReset: a, breadcrumbs: o = [], onBreadcrumbClick: s }) => {
|
|
8600
8629
|
let c = o.length > 0;
|
|
8601
8630
|
return /* @__PURE__ */ x("div", {
|
|
8602
8631
|
className: "timeline-zoom-controls",
|
|
@@ -8643,7 +8672,7 @@ var gd = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
8643
8672
|
})
|
|
8644
8673
|
]
|
|
8645
8674
|
});
|
|
8646
|
-
},
|
|
8675
|
+
}, xd = ({ children: e }) => /* @__PURE__ */ x("div", {
|
|
8647
8676
|
className: "timeline-axis",
|
|
8648
8677
|
children: [/* @__PURE__ */ b("div", {
|
|
8649
8678
|
className: "timeline-axis__line",
|
|
@@ -8652,7 +8681,7 @@ var gd = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
8652
8681
|
className: "timeline-axis__content",
|
|
8653
8682
|
children: e
|
|
8654
8683
|
})]
|
|
8655
|
-
}),
|
|
8684
|
+
}), Sd = e.memo(({ buckets: e, onBucketClick: t }) => /* @__PURE__ */ b("div", {
|
|
8656
8685
|
className: "timeline-view timeline-view--year",
|
|
8657
8686
|
role: "list",
|
|
8658
8687
|
children: e.map((e) => /* @__PURE__ */ b("div", {
|
|
@@ -8663,7 +8692,7 @@ var gd = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
8663
8692
|
onPress: () => t(e),
|
|
8664
8693
|
children: [/* @__PURE__ */ b("div", {
|
|
8665
8694
|
className: "timeline-view__node",
|
|
8666
|
-
children: /* @__PURE__ */ b(
|
|
8695
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
8667
8696
|
shape: "circle",
|
|
8668
8697
|
size: "medium",
|
|
8669
8698
|
variant: "default",
|
|
@@ -8684,7 +8713,7 @@ var gd = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
8684
8713
|
})]
|
|
8685
8714
|
}) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
|
|
8686
8715
|
className: "timeline-view__node",
|
|
8687
|
-
children: /* @__PURE__ */ b(
|
|
8716
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
8688
8717
|
shape: "circle",
|
|
8689
8718
|
size: "medium",
|
|
8690
8719
|
variant: "default",
|
|
@@ -8705,10 +8734,10 @@ var gd = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
8705
8734
|
})] })
|
|
8706
8735
|
}, e.periodStart))
|
|
8707
8736
|
}));
|
|
8708
|
-
|
|
8737
|
+
Sd.displayName = "YearView";
|
|
8709
8738
|
//#endregion
|
|
8710
8739
|
//#region src/components/Lightbox/components/Lightbox.tsx
|
|
8711
|
-
var
|
|
8740
|
+
var Cd = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange: o }) => {
|
|
8712
8741
|
let c = t.length === 0 ? 0 : Math.max(0, Math.min(n, t.length - 1)), [l, u] = p(c);
|
|
8713
8742
|
s(() => {
|
|
8714
8743
|
r && u(c);
|
|
@@ -8808,19 +8837,19 @@ var yd = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange
|
|
|
8808
8837
|
})
|
|
8809
8838
|
});
|
|
8810
8839
|
};
|
|
8811
|
-
|
|
8840
|
+
Cd.displayName = "Lightbox";
|
|
8812
8841
|
//#endregion
|
|
8813
8842
|
//#region src/utils/isSafeHref.ts
|
|
8814
|
-
var
|
|
8815
|
-
function
|
|
8843
|
+
var wd = /^(?:https?:|mailto:)/i;
|
|
8844
|
+
function Td(e) {
|
|
8816
8845
|
if (typeof e != "string") return !1;
|
|
8817
8846
|
let t = e.trim();
|
|
8818
|
-
return t.length === 0 ? !1 : /^[a-z][a-z0-9+\-.]*:/i.test(t) ?
|
|
8847
|
+
return t.length === 0 ? !1 : /^[a-z][a-z0-9+\-.]*:/i.test(t) ? wd.test(t) : !0;
|
|
8819
8848
|
}
|
|
8820
8849
|
//#endregion
|
|
8821
8850
|
//#region src/components/TimelineContainer/components/variants/TimelineEntryCardImage.tsx
|
|
8822
|
-
var
|
|
8823
|
-
let [r, i] = p(!1), { image: a } = e, o = a.thumbnail || a.src, c = a.link &&
|
|
8851
|
+
var Ed = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
8852
|
+
let [r, i] = p(!1), { image: a } = e, o = a.thumbnail || a.src, c = a.link && Td(a.link) ? a.link : void 0;
|
|
8824
8853
|
return s(() => {
|
|
8825
8854
|
t || i(!1);
|
|
8826
8855
|
}, [t]), c ? /* @__PURE__ */ x("a", {
|
|
@@ -8868,13 +8897,13 @@ var Sd = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
8868
8897
|
height: a.height
|
|
8869
8898
|
})
|
|
8870
8899
|
}),
|
|
8871
|
-
/* @__PURE__ */ b(
|
|
8900
|
+
/* @__PURE__ */ b(Cd, {
|
|
8872
8901
|
images: [a],
|
|
8873
8902
|
isOpen: r,
|
|
8874
8903
|
onClose: () => i(!1)
|
|
8875
8904
|
})
|
|
8876
8905
|
] });
|
|
8877
|
-
},
|
|
8906
|
+
}, Dd = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
8878
8907
|
let [r, i] = p({ phase: "grid" });
|
|
8879
8908
|
if (s(() => {
|
|
8880
8909
|
t || i({ phase: "grid" });
|
|
@@ -8888,7 +8917,7 @@ var Sd = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
8888
8917
|
children: "No images."
|
|
8889
8918
|
})] });
|
|
8890
8919
|
let a = (e, t) => {
|
|
8891
|
-
t.link &&
|
|
8920
|
+
t.link && Td(t.link) || i((t) => t.phase === "focused" && t.index === e ? {
|
|
8892
8921
|
phase: "lightbox",
|
|
8893
8922
|
index: e
|
|
8894
8923
|
} : {
|
|
@@ -8909,13 +8938,13 @@ var Sd = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
8909
8938
|
/* @__PURE__ */ b("div", {
|
|
8910
8939
|
className: "eidotter-timeline-card-gallery__grid",
|
|
8911
8940
|
role: "list",
|
|
8912
|
-
children: e.images.map((e, t) => /* @__PURE__ */ b(
|
|
8941
|
+
children: e.images.map((e, t) => /* @__PURE__ */ b(Od, {
|
|
8913
8942
|
image: e,
|
|
8914
8943
|
isFocused: o === t,
|
|
8915
8944
|
onClick: () => a(t, e)
|
|
8916
8945
|
}, t))
|
|
8917
8946
|
}),
|
|
8918
|
-
/* @__PURE__ */ b(
|
|
8947
|
+
/* @__PURE__ */ b(Cd, {
|
|
8919
8948
|
images: e.images,
|
|
8920
8949
|
isOpen: r.phase === "lightbox",
|
|
8921
8950
|
initialIndex: r.phase === "lightbox" ? r.index : 0,
|
|
@@ -8933,8 +8962,8 @@ var Sd = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
8933
8962
|
}
|
|
8934
8963
|
})
|
|
8935
8964
|
] });
|
|
8936
|
-
},
|
|
8937
|
-
let r = e.thumbnail || e.src, i = e.link &&
|
|
8965
|
+
}, Od = ({ image: e, isFocused: t, onClick: n }) => {
|
|
8966
|
+
let r = e.thumbnail || e.src, i = e.link && Td(e.link) ? e.link : void 0;
|
|
8938
8967
|
return i ? /* @__PURE__ */ b("div", {
|
|
8939
8968
|
role: "listitem",
|
|
8940
8969
|
className: "eidotter-timeline-card-gallery__cell eidotter-timeline-card-gallery__cell--link",
|
|
@@ -8967,39 +8996,39 @@ var Sd = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
8967
8996
|
})
|
|
8968
8997
|
})
|
|
8969
8998
|
});
|
|
8970
|
-
},
|
|
8999
|
+
}, kd = e.memo(({ entry: e, isSelected: t, isExpanded: n = !1, onSelect: r, footer: i, children: a }) => /* @__PURE__ */ x("div", {
|
|
8971
9000
|
className: $("eidotter-timeline-card", t && "eidotter-timeline-card--selected", n && "eidotter-timeline-card--expanded"),
|
|
8972
|
-
children: [
|
|
9001
|
+
children: [Ad(e, n, r, a), i && /* @__PURE__ */ b("div", {
|
|
8973
9002
|
className: "eidotter-timeline-card__footer",
|
|
8974
9003
|
children: i
|
|
8975
9004
|
})]
|
|
8976
9005
|
}));
|
|
8977
|
-
|
|
8978
|
-
function
|
|
9006
|
+
kd.displayName = "TimelineEntryCard";
|
|
9007
|
+
function Ad(e, t, n, r) {
|
|
8979
9008
|
switch (e.kind) {
|
|
8980
|
-
case "text": return /* @__PURE__ */ b(
|
|
9009
|
+
case "text": return /* @__PURE__ */ b(Md, {
|
|
8981
9010
|
entry: e,
|
|
8982
9011
|
isExpanded: t,
|
|
8983
9012
|
onSelect: n,
|
|
8984
9013
|
children: r
|
|
8985
9014
|
});
|
|
8986
|
-
case "image": return /* @__PURE__ */ b(
|
|
9015
|
+
case "image": return /* @__PURE__ */ b(Ed, {
|
|
8987
9016
|
entry: e,
|
|
8988
9017
|
isExpanded: t,
|
|
8989
9018
|
onSelect: n
|
|
8990
9019
|
});
|
|
8991
|
-
case "gallery": return /* @__PURE__ */ b(
|
|
9020
|
+
case "gallery": return /* @__PURE__ */ b(Dd, {
|
|
8992
9021
|
entry: e,
|
|
8993
9022
|
isExpanded: t,
|
|
8994
9023
|
onSelect: n
|
|
8995
9024
|
});
|
|
8996
|
-
default: return
|
|
9025
|
+
default: return jd(e);
|
|
8997
9026
|
}
|
|
8998
9027
|
}
|
|
8999
|
-
function
|
|
9028
|
+
function jd(e) {
|
|
9000
9029
|
throw Error(`TimelineEntryCard: unhandled entry kind: ${JSON.stringify(e)}`);
|
|
9001
9030
|
}
|
|
9002
|
-
var
|
|
9031
|
+
var Md = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
9003
9032
|
let i = typeof e.content == "string", a = e.content != null;
|
|
9004
9033
|
return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x(K, {
|
|
9005
9034
|
className: "eidotter-timeline-card__trigger",
|
|
@@ -9037,7 +9066,7 @@ var Od = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
9037
9066
|
children: e.content
|
|
9038
9067
|
})
|
|
9039
9068
|
})] });
|
|
9040
|
-
},
|
|
9069
|
+
}, Nd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, onBucketClick: i, renderEntry: a }) => /* @__PURE__ */ b("div", {
|
|
9041
9070
|
className: "timeline-view timeline-view--month",
|
|
9042
9071
|
role: "list",
|
|
9043
9072
|
children: t.map((t) => /* @__PURE__ */ x("div", {
|
|
@@ -9045,7 +9074,7 @@ var Od = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
9045
9074
|
role: "listitem",
|
|
9046
9075
|
children: [/* @__PURE__ */ b("div", {
|
|
9047
9076
|
className: "timeline-view__node",
|
|
9048
|
-
children: /* @__PURE__ */ b(
|
|
9077
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
9049
9078
|
shape: "circle",
|
|
9050
9079
|
size: "medium",
|
|
9051
9080
|
variant: "default",
|
|
@@ -9056,7 +9085,7 @@ var Od = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
9056
9085
|
}), /* @__PURE__ */ b("div", {
|
|
9057
9086
|
className: "timeline-view__content",
|
|
9058
9087
|
children: t.entries.map((t) => {
|
|
9059
|
-
let i = n === t.id, o = () => /* @__PURE__ */ b(
|
|
9088
|
+
let i = n === t.id, o = () => /* @__PURE__ */ b(kd, {
|
|
9060
9089
|
entry: t,
|
|
9061
9090
|
isSelected: i,
|
|
9062
9091
|
isExpanded: i,
|
|
@@ -9071,23 +9100,23 @@ var Od = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
9071
9100
|
})]
|
|
9072
9101
|
}, t.periodStart))
|
|
9073
9102
|
}));
|
|
9074
|
-
|
|
9103
|
+
Nd.displayName = "MonthView";
|
|
9075
9104
|
//#endregion
|
|
9076
9105
|
//#region src/components/Tag/components/Tag.tsx
|
|
9077
|
-
var
|
|
9106
|
+
var Pd = {
|
|
9078
9107
|
sm: "text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",
|
|
9079
9108
|
md: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",
|
|
9080
9109
|
lg: "text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",
|
|
9081
9110
|
small: "text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",
|
|
9082
9111
|
medium: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"
|
|
9083
|
-
},
|
|
9112
|
+
}, Fd = ({ children: e, variant: t = "default", size: n = "md", color: r, selected: i = !1, closeable: a = !1, disabled: o = !1, onClick: s, onClose: c, className: l, "aria-label": u, ...d }) => {
|
|
9084
9113
|
let f = !!s && !o, { isClosing: p, triggerClose: m, handleAnimationEnd: h } = $l("tag-exit", c), g = (e) => {
|
|
9085
9114
|
o || ((e.key === "Enter" || e.key === " ") && s && (e.preventDefault(), s(e)), (e.key === "Delete" || e.key === "Backspace") && a && c && (e.preventDefault(), m()));
|
|
9086
9115
|
}, _ = () => {
|
|
9087
9116
|
o || m();
|
|
9088
9117
|
}, v = r ? { "--tag-color": "var(" + r + ")" } : void 0;
|
|
9089
9118
|
return /* @__PURE__ */ x("span", {
|
|
9090
|
-
className: $("inline-flex items-center justify-center", "font-dos leading-none whitespace-nowrap select-none", "rounded-dos-sm uppercase tracking-wider",
|
|
9119
|
+
className: $("inline-flex items-center justify-center", "font-dos leading-none whitespace-nowrap select-none", "rounded-dos-sm uppercase tracking-wider", Pd[n] || Pd.md, "eidotter-tag", "eidotter-tag--" + t, i && "eidotter-tag--selected", o && "opacity-50 cursor-not-allowed", p && "eidotter-tag--closing", f && "cursor-pointer", l),
|
|
9091
9120
|
style: v,
|
|
9092
9121
|
onClick: f ? (e) => !o && s?.(e) : void 0,
|
|
9093
9122
|
onKeyDown: g,
|
|
@@ -9107,23 +9136,23 @@ var Ad = {
|
|
|
9107
9136
|
}), a && /* @__PURE__ */ b(K, {
|
|
9108
9137
|
className: "eidotter-tag__close",
|
|
9109
9138
|
"aria-label": "Remove " + (typeof e == "string" ? e : "tag"),
|
|
9110
|
-
excludeFromTabOrder:
|
|
9139
|
+
excludeFromTabOrder: f,
|
|
9111
9140
|
onPress: _,
|
|
9112
9141
|
isDisabled: o,
|
|
9113
9142
|
children: "[x]"
|
|
9114
9143
|
})]
|
|
9115
9144
|
});
|
|
9116
|
-
},
|
|
9145
|
+
}, Id = {
|
|
9117
9146
|
tight: "gap-1",
|
|
9118
9147
|
normal: "gap-2",
|
|
9119
9148
|
loose: "gap-3"
|
|
9120
|
-
},
|
|
9121
|
-
className: $("flex", n ? "flex-wrap" : "flex-nowrap",
|
|
9149
|
+
}, Ld = ({ children: e, gap: t = "normal", wrap: n = !0, className: r, "aria-label": i, ...a }) => /* @__PURE__ */ b("div", {
|
|
9150
|
+
className: $("flex", n ? "flex-wrap" : "flex-nowrap", Id[t] || Id.normal, r),
|
|
9122
9151
|
role: "group",
|
|
9123
9152
|
"aria-label": i,
|
|
9124
9153
|
...a,
|
|
9125
9154
|
children: e
|
|
9126
|
-
}),
|
|
9155
|
+
}), Rd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry: i }) => /* @__PURE__ */ b("div", {
|
|
9127
9156
|
className: "timeline-view timeline-view--day",
|
|
9128
9157
|
role: "list",
|
|
9129
9158
|
children: t.map((t) => /* @__PURE__ */ x("div", {
|
|
@@ -9131,7 +9160,7 @@ var Ad = {
|
|
|
9131
9160
|
role: "listitem",
|
|
9132
9161
|
children: [/* @__PURE__ */ b("div", {
|
|
9133
9162
|
className: "timeline-view__node",
|
|
9134
|
-
children: /* @__PURE__ */ b(
|
|
9163
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
9135
9164
|
shape: "circle",
|
|
9136
9165
|
size: "medium",
|
|
9137
9166
|
variant: "default",
|
|
@@ -9141,15 +9170,15 @@ var Ad = {
|
|
|
9141
9170
|
}), /* @__PURE__ */ b("div", {
|
|
9142
9171
|
className: "timeline-view__content",
|
|
9143
9172
|
children: t.entries.map((t) => {
|
|
9144
|
-
let a = n === t.id, o = () => /* @__PURE__ */ b(
|
|
9173
|
+
let a = n === t.id, o = () => /* @__PURE__ */ b(kd, {
|
|
9145
9174
|
entry: t,
|
|
9146
9175
|
isSelected: a,
|
|
9147
9176
|
isExpanded: a,
|
|
9148
9177
|
onSelect: r,
|
|
9149
|
-
footer: t.tags && t.tags.length > 0 ? /* @__PURE__ */ b(
|
|
9178
|
+
footer: t.tags && t.tags.length > 0 ? /* @__PURE__ */ b(Ld, {
|
|
9150
9179
|
gap: "tight",
|
|
9151
9180
|
"aria-label": `Tags for ${t.title}`,
|
|
9152
|
-
children: t.tags.map((e) => /* @__PURE__ */ b(
|
|
9181
|
+
children: t.tags.map((e) => /* @__PURE__ */ b(Fd, {
|
|
9153
9182
|
size: "small",
|
|
9154
9183
|
variant: "outlined",
|
|
9155
9184
|
children: e
|
|
@@ -9165,10 +9194,10 @@ var Ad = {
|
|
|
9165
9194
|
})]
|
|
9166
9195
|
}, t.periodStart))
|
|
9167
9196
|
}));
|
|
9168
|
-
|
|
9197
|
+
Rd.displayName = "DayView";
|
|
9169
9198
|
//#endregion
|
|
9170
9199
|
//#region src/components/TimelineContainer/components/views/HourView.tsx
|
|
9171
|
-
var
|
|
9200
|
+
var zd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry: i }) => /* @__PURE__ */ b("div", {
|
|
9172
9201
|
className: "timeline-view timeline-view--hour",
|
|
9173
9202
|
role: "list",
|
|
9174
9203
|
children: t.map((t) => /* @__PURE__ */ x("div", {
|
|
@@ -9176,7 +9205,7 @@ var Fd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
9176
9205
|
role: "listitem",
|
|
9177
9206
|
children: [/* @__PURE__ */ b("div", {
|
|
9178
9207
|
className: "timeline-view__node",
|
|
9179
|
-
children: /* @__PURE__ */ b(
|
|
9208
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
9180
9209
|
shape: "circle",
|
|
9181
9210
|
size: "medium",
|
|
9182
9211
|
variant: "default",
|
|
@@ -9186,17 +9215,17 @@ var Fd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
9186
9215
|
}), /* @__PURE__ */ b("div", {
|
|
9187
9216
|
className: "timeline-view__content",
|
|
9188
9217
|
children: t.entries.map((t) => {
|
|
9189
|
-
let a = n === t.id, o = () => /* @__PURE__ */ x(
|
|
9218
|
+
let a = n === t.id, o = () => /* @__PURE__ */ x(kd, {
|
|
9190
9219
|
entry: t,
|
|
9191
9220
|
isSelected: a,
|
|
9192
9221
|
isExpanded: !0,
|
|
9193
9222
|
onSelect: r,
|
|
9194
9223
|
footer: /* @__PURE__ */ x("div", {
|
|
9195
9224
|
className: "timeline-view__entry-footer",
|
|
9196
|
-
children: [t.tags && t.tags.length > 0 && /* @__PURE__ */ b(
|
|
9225
|
+
children: [t.tags && t.tags.length > 0 && /* @__PURE__ */ b(Ld, {
|
|
9197
9226
|
gap: "tight",
|
|
9198
9227
|
"aria-label": `Tags for ${t.title}`,
|
|
9199
|
-
children: t.tags.map((e) => /* @__PURE__ */ b(
|
|
9228
|
+
children: t.tags.map((e) => /* @__PURE__ */ b(Fd, {
|
|
9200
9229
|
size: "small",
|
|
9201
9230
|
variant: "outlined",
|
|
9202
9231
|
children: e
|
|
@@ -9210,7 +9239,7 @@ var Fd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
9210
9239
|
children: [/* @__PURE__ */ b("time", {
|
|
9211
9240
|
className: "timeline-view__timestamp",
|
|
9212
9241
|
dateTime: t.date,
|
|
9213
|
-
children:
|
|
9242
|
+
children: rd(t.date)
|
|
9214
9243
|
}), t.kind === "text" && t.content !== void 0 && /* @__PURE__ */ b("div", {
|
|
9215
9244
|
className: "timeline-view__entry-content",
|
|
9216
9245
|
children: t.content
|
|
@@ -9225,29 +9254,29 @@ var Fd = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
9225
9254
|
})]
|
|
9226
9255
|
}, t.periodStart))
|
|
9227
9256
|
}));
|
|
9228
|
-
|
|
9257
|
+
zd.displayName = "HourView";
|
|
9229
9258
|
//#endregion
|
|
9230
9259
|
//#region src/components/TimelineContainer/components/TimelineContent.tsx
|
|
9231
|
-
var
|
|
9260
|
+
var Bd = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBucketClick: i, renderEntry: a }) => {
|
|
9232
9261
|
switch (e) {
|
|
9233
|
-
case "year": return /* @__PURE__ */ b(
|
|
9262
|
+
case "year": return /* @__PURE__ */ b(Sd, {
|
|
9234
9263
|
buckets: t,
|
|
9235
9264
|
onBucketClick: i
|
|
9236
9265
|
});
|
|
9237
|
-
case "month": return /* @__PURE__ */ b(
|
|
9266
|
+
case "month": return /* @__PURE__ */ b(Nd, {
|
|
9238
9267
|
buckets: t,
|
|
9239
9268
|
selectedEntryId: n,
|
|
9240
9269
|
onEntrySelect: r,
|
|
9241
9270
|
onBucketClick: i,
|
|
9242
9271
|
renderEntry: a
|
|
9243
9272
|
});
|
|
9244
|
-
case "day": return /* @__PURE__ */ b(
|
|
9273
|
+
case "day": return /* @__PURE__ */ b(Rd, {
|
|
9245
9274
|
buckets: t,
|
|
9246
9275
|
selectedEntryId: n,
|
|
9247
9276
|
onEntrySelect: r,
|
|
9248
9277
|
renderEntry: a
|
|
9249
9278
|
});
|
|
9250
|
-
case "hour": return /* @__PURE__ */ b(
|
|
9279
|
+
case "hour": return /* @__PURE__ */ b(zd, {
|
|
9251
9280
|
buckets: t,
|
|
9252
9281
|
selectedEntryId: n,
|
|
9253
9282
|
onEntrySelect: r,
|
|
@@ -9255,29 +9284,37 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9255
9284
|
});
|
|
9256
9285
|
default: return e;
|
|
9257
9286
|
}
|
|
9258
|
-
},
|
|
9259
|
-
let S = t === "static", C = t === "feed", w = S || C, T = f(null), E = f(null), [D, O] = p(""), { zoomLevel: k, canZoomIn: A, canZoomOut: j, breadcrumbs: M, currentPeriod: N, isDrillDownEnabled: ee, drillDown: te, drillUp: P, reset: ne } =
|
|
9287
|
+
}, Vd = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel: r = "month", onZoomChange: i, selectedEntryId: o, defaultSelectedEntryId: c, onSelectEntry: l, sortOrder: d = "desc", scrollToZoom: m = !0, keyboardShortcuts: h = !0, renderEntry: g, pageSize: _ = 10, onLoadMore: v, ...y }) => {
|
|
9288
|
+
let S = t === "static", C = t === "feed", w = S || C, T = f(null), E = f(null), [D, O] = p(""), { zoomLevel: k, canZoomIn: A, canZoomOut: j, breadcrumbs: M, currentPeriod: N, isDrillDownEnabled: ee, drillDown: te, drillUp: P, reset: ne } = Gu({
|
|
9260
9289
|
zoomLevel: n,
|
|
9261
9290
|
defaultZoomLevel: r,
|
|
9262
9291
|
onZoomChange: i
|
|
9263
|
-
}), { selectedEntryId: re, toggle:
|
|
9292
|
+
}), { selectedEntryId: re, toggle: ie, deselect: ae } = Ku({
|
|
9264
9293
|
selectedEntryId: o,
|
|
9265
9294
|
defaultSelectedEntryId: c,
|
|
9266
9295
|
onSelectEntry: l
|
|
9267
|
-
}),
|
|
9296
|
+
}), F = u(() => yd(e, k, d), [
|
|
9268
9297
|
e,
|
|
9269
9298
|
k,
|
|
9270
9299
|
d
|
|
9271
|
-
]),
|
|
9300
|
+
]), I = M.length > 0 ? [
|
|
9272
9301
|
"year",
|
|
9273
9302
|
"month",
|
|
9274
9303
|
"day",
|
|
9275
9304
|
"hour"
|
|
9276
|
-
][M.length - 1] : null,
|
|
9277
|
-
|
|
9305
|
+
][M.length - 1] : null, oe = u(() => N && I ? vd(F, N, I) : F, [
|
|
9306
|
+
F,
|
|
9278
9307
|
N,
|
|
9279
|
-
|
|
9280
|
-
])
|
|
9308
|
+
I
|
|
9309
|
+
]), se = a((e) => {
|
|
9310
|
+
A && (te(e.periodStart, e.label), O(`Showing ${k === "year" ? "months" : k === "month" ? "days" : "hours"} in ${e.label}`));
|
|
9311
|
+
}, [
|
|
9312
|
+
A,
|
|
9313
|
+
te,
|
|
9314
|
+
k
|
|
9315
|
+
]), L = a(() => {
|
|
9316
|
+
oe.length > 0 && se(oe[0]);
|
|
9317
|
+
}, [oe, se]);
|
|
9281
9318
|
s(() => {
|
|
9282
9319
|
if (w || !m) return;
|
|
9283
9320
|
let e = T.current;
|
|
@@ -9301,67 +9338,62 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9301
9338
|
let e = (e) => {
|
|
9302
9339
|
if (!T.current?.contains(document.activeElement) && document.activeElement !== T.current) return;
|
|
9303
9340
|
let t = e.ctrlKey || e.metaKey;
|
|
9304
|
-
t && e.key === "-" ? (e.preventDefault(), P()) : t && e.key === "0" ? (e.preventDefault(), ne(), O("Showing all years")) : e.key === "Escape" && (e.preventDefault(),
|
|
9341
|
+
t && (e.key === "=" || e.key === "+") ? (e.preventDefault(), L()) : t && e.key === "-" ? (e.preventDefault(), P()) : t && e.key === "0" ? (e.preventDefault(), ne(), O("Showing all years")) : e.key === "Escape" && (e.preventDefault(), ae());
|
|
9305
9342
|
};
|
|
9306
9343
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
9307
9344
|
}, [
|
|
9308
9345
|
w,
|
|
9309
9346
|
h,
|
|
9347
|
+
L,
|
|
9310
9348
|
P,
|
|
9311
9349
|
ne,
|
|
9312
|
-
|
|
9350
|
+
ae
|
|
9313
9351
|
]);
|
|
9314
|
-
let
|
|
9315
|
-
A && (te(e.periodStart, e.label), O(`Showing ${k === "year" ? "months" : k === "month" ? "days" : "hours"} in ${e.label}`));
|
|
9316
|
-
}, [
|
|
9317
|
-
A,
|
|
9318
|
-
te,
|
|
9319
|
-
k
|
|
9320
|
-
]), R = f(M.length);
|
|
9352
|
+
let ce = a((e) => se(e), [se]), le = f(M.length);
|
|
9321
9353
|
s(() => {
|
|
9322
|
-
if (M.length !==
|
|
9323
|
-
|
|
9354
|
+
if (M.length !== le.current) {
|
|
9355
|
+
le.current = M.length;
|
|
9324
9356
|
let e = E.current?.querySelector(".eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role=\"button\"]");
|
|
9325
9357
|
e && requestAnimationFrame(() => e.focus());
|
|
9326
9358
|
}
|
|
9327
9359
|
}, [M.length]);
|
|
9328
|
-
let
|
|
9360
|
+
let R = u(() => w ? [...e].sort((e, t) => {
|
|
9329
9361
|
let n = e.date.localeCompare(t.date);
|
|
9330
9362
|
return d === "desc" ? -n : n;
|
|
9331
9363
|
}) : e, [
|
|
9332
9364
|
w,
|
|
9333
9365
|
e,
|
|
9334
9366
|
d
|
|
9335
|
-
]),
|
|
9367
|
+
]), z = Math.max(1, _), [ue, de] = p(z);
|
|
9336
9368
|
s(() => {
|
|
9337
|
-
C &&
|
|
9338
|
-
let t =
|
|
9339
|
-
return t === 0 ?
|
|
9369
|
+
C && de((e) => {
|
|
9370
|
+
let t = R.length;
|
|
9371
|
+
return t === 0 ? z : e > t ? Math.max(z, t) : e;
|
|
9340
9372
|
});
|
|
9341
9373
|
}, [
|
|
9342
9374
|
C,
|
|
9343
|
-
|
|
9344
|
-
|
|
9375
|
+
z,
|
|
9376
|
+
R.length
|
|
9345
9377
|
]);
|
|
9346
|
-
let
|
|
9378
|
+
let fe = u(() => C ? R.slice(0, ue) : R, [
|
|
9347
9379
|
C,
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
]),
|
|
9351
|
-
let e = Math.min(
|
|
9352
|
-
e <=
|
|
9380
|
+
R,
|
|
9381
|
+
ue
|
|
9382
|
+
]), pe = C && ue < R.length, me = a(() => {
|
|
9383
|
+
let e = Math.min(ue + z, R.length);
|
|
9384
|
+
e <= ue || (de(e), v?.(e));
|
|
9353
9385
|
}, [
|
|
9386
|
+
ue,
|
|
9354
9387
|
z,
|
|
9355
|
-
|
|
9356
|
-
se.length,
|
|
9388
|
+
R.length,
|
|
9357
9389
|
v
|
|
9358
|
-
]),
|
|
9390
|
+
]), he = u(() => new Intl.DateTimeFormat("en-US", {
|
|
9359
9391
|
year: "numeric",
|
|
9360
9392
|
month: "short",
|
|
9361
9393
|
day: "numeric"
|
|
9362
|
-
}), []),
|
|
9394
|
+
}), []), ge = (e) => {
|
|
9363
9395
|
try {
|
|
9364
|
-
return
|
|
9396
|
+
return he.format(new Date(e));
|
|
9365
9397
|
} catch {
|
|
9366
9398
|
return e;
|
|
9367
9399
|
}
|
|
@@ -9381,11 +9413,11 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9381
9413
|
"aria-atomic": "true",
|
|
9382
9414
|
children: D
|
|
9383
9415
|
}),
|
|
9384
|
-
!w && /* @__PURE__ */ b(
|
|
9416
|
+
!w && /* @__PURE__ */ b(bd, {
|
|
9385
9417
|
zoomLevel: k,
|
|
9386
9418
|
canZoomIn: A,
|
|
9387
9419
|
canZoomOut: j,
|
|
9388
|
-
onZoomIn:
|
|
9420
|
+
onZoomIn: L,
|
|
9389
9421
|
onZoomOut: P,
|
|
9390
9422
|
onReset: ne,
|
|
9391
9423
|
breadcrumbs: ee ? M : [],
|
|
@@ -9400,12 +9432,12 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9400
9432
|
className: "eidotter-timeline-container__empty",
|
|
9401
9433
|
role: "status",
|
|
9402
9434
|
children: [/* @__PURE__ */ b("p", { children: "C:\\TIMELINE> No entries found." }), /* @__PURE__ */ b("p", { children: "_" })]
|
|
9403
|
-
}) : S ? /* @__PURE__ */ b(
|
|
9435
|
+
}) : S ? /* @__PURE__ */ b(xd, { children: /* @__PURE__ */ b("div", {
|
|
9404
9436
|
className: "eidotter-timeline-container__static",
|
|
9405
9437
|
role: "list",
|
|
9406
9438
|
"aria-label": "Timeline",
|
|
9407
|
-
children:
|
|
9408
|
-
let t = () => /* @__PURE__ */ b(
|
|
9439
|
+
children: R.map((e) => {
|
|
9440
|
+
let t = () => /* @__PURE__ */ b(kd, {
|
|
9409
9441
|
entry: e,
|
|
9410
9442
|
isSelected: !1,
|
|
9411
9443
|
isExpanded: !0
|
|
@@ -9415,11 +9447,11 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9415
9447
|
role: "listitem",
|
|
9416
9448
|
children: [/* @__PURE__ */ b("div", {
|
|
9417
9449
|
className: "timeline-view__node",
|
|
9418
|
-
children: /* @__PURE__ */ b(
|
|
9450
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
9419
9451
|
shape: "circle",
|
|
9420
9452
|
size: "medium",
|
|
9421
9453
|
variant: "default",
|
|
9422
|
-
label:
|
|
9454
|
+
label: ge(e.date),
|
|
9423
9455
|
labelPosition: "right"
|
|
9424
9456
|
})
|
|
9425
9457
|
}), g ? g(e, {
|
|
@@ -9429,27 +9461,27 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9429
9461
|
}) : t()]
|
|
9430
9462
|
}, e.id);
|
|
9431
9463
|
})
|
|
9432
|
-
}) }) : C ? /* @__PURE__ */ x(
|
|
9464
|
+
}) }) : C ? /* @__PURE__ */ x(xd, { children: [/* @__PURE__ */ b("div", {
|
|
9433
9465
|
className: "eidotter-timeline-container__feed",
|
|
9434
9466
|
role: "list",
|
|
9435
9467
|
"aria-label": "Timeline",
|
|
9436
|
-
children:
|
|
9437
|
-
let t = re === e.id, n = () => /* @__PURE__ */ b(
|
|
9468
|
+
children: fe.map((e) => {
|
|
9469
|
+
let t = re === e.id, n = () => /* @__PURE__ */ b(kd, {
|
|
9438
9470
|
entry: e,
|
|
9439
9471
|
isSelected: t,
|
|
9440
9472
|
isExpanded: t,
|
|
9441
|
-
onSelect:
|
|
9473
|
+
onSelect: ie
|
|
9442
9474
|
});
|
|
9443
9475
|
return /* @__PURE__ */ x("div", {
|
|
9444
9476
|
className: "eidotter-timeline-container__feed-entry",
|
|
9445
9477
|
role: "listitem",
|
|
9446
9478
|
children: [/* @__PURE__ */ b("div", {
|
|
9447
9479
|
className: "timeline-view__node",
|
|
9448
|
-
children: /* @__PURE__ */ b(
|
|
9480
|
+
children: /* @__PURE__ */ b(Uu, {
|
|
9449
9481
|
shape: "circle",
|
|
9450
9482
|
size: "medium",
|
|
9451
9483
|
variant: "default",
|
|
9452
|
-
label:
|
|
9484
|
+
label: ge(e.date),
|
|
9453
9485
|
labelPosition: "right"
|
|
9454
9486
|
})
|
|
9455
9487
|
}), g ? g(e, {
|
|
@@ -9459,13 +9491,13 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9459
9491
|
}) : n()]
|
|
9460
9492
|
}, e.id);
|
|
9461
9493
|
})
|
|
9462
|
-
}),
|
|
9494
|
+
}), pe && /* @__PURE__ */ b("button", {
|
|
9463
9495
|
type: "button",
|
|
9464
9496
|
className: "eidotter-timeline-container__load-more",
|
|
9465
|
-
onClick:
|
|
9466
|
-
"aria-label": `Load more entries (showing ${
|
|
9497
|
+
onClick: me,
|
|
9498
|
+
"aria-label": `Load more entries (showing ${ue} of ${R.length})`,
|
|
9467
9499
|
children: "LOAD MORE..."
|
|
9468
|
-
})] }) :
|
|
9500
|
+
})] }) : oe.length === 0 && N ? /* @__PURE__ */ b(xd, { children: /* @__PURE__ */ x("div", {
|
|
9469
9501
|
className: "eidotter-timeline-container__empty",
|
|
9470
9502
|
role: "status",
|
|
9471
9503
|
children: [/* @__PURE__ */ x("p", { children: [
|
|
@@ -9473,18 +9505,18 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9473
9505
|
M[M.length - 1]?.label ?? "this period",
|
|
9474
9506
|
"."
|
|
9475
9507
|
] }), /* @__PURE__ */ b("p", { children: "_" })]
|
|
9476
|
-
}) }) : /* @__PURE__ */ b(
|
|
9508
|
+
}) }) : /* @__PURE__ */ b(xd, { children: /* @__PURE__ */ b(Bd, {
|
|
9477
9509
|
zoomLevel: k,
|
|
9478
|
-
buckets:
|
|
9510
|
+
buckets: oe,
|
|
9479
9511
|
selectedEntryId: re,
|
|
9480
|
-
onEntrySelect:
|
|
9481
|
-
onBucketClick:
|
|
9512
|
+
onEntrySelect: ie,
|
|
9513
|
+
onBucketClick: ce,
|
|
9482
9514
|
renderEntry: g
|
|
9483
9515
|
}) })
|
|
9484
9516
|
})
|
|
9485
9517
|
]
|
|
9486
9518
|
});
|
|
9487
|
-
},
|
|
9519
|
+
}, Hd = r(({ isOpen: e, onOpenChange: t, onClose: n, title: r, children: i, footer: a, className: o }, c) => {
|
|
9488
9520
|
let l = f(e), u = f(!1);
|
|
9489
9521
|
s(() => {
|
|
9490
9522
|
e !== l.current && (l.current = e, u.current || (t?.(e), e || n?.()), u.current = !1);
|
|
@@ -9536,12 +9568,12 @@ var Id = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
9536
9568
|
})
|
|
9537
9569
|
});
|
|
9538
9570
|
});
|
|
9539
|
-
|
|
9571
|
+
Hd.displayName = "Modal";
|
|
9540
9572
|
//#endregion
|
|
9541
9573
|
//#region src/hooks/useTextScramble.ts
|
|
9542
|
-
var
|
|
9543
|
-
function
|
|
9544
|
-
let { speed: n = 40, characters: r =
|
|
9574
|
+
var Ud = "░▒▓█│┤┐└┴┬├─┼", Wd = 4;
|
|
9575
|
+
function Gd(e, t) {
|
|
9576
|
+
let { speed: n = 40, characters: r = Ud, enabled: i = !0, delay: a = 0 } = t ?? {}, [o, c] = p(() => {
|
|
9545
9577
|
if (!i || Ql()) return e;
|
|
9546
9578
|
let t = "";
|
|
9547
9579
|
for (let n = 0; n < e.length; n++) e[n] === " " ? t += " " : t += r[Math.floor(Math.random() * r.length)];
|
|
@@ -9562,7 +9594,7 @@ function Vd(e, t) {
|
|
|
9562
9594
|
return;
|
|
9563
9595
|
}
|
|
9564
9596
|
if (a >= n) {
|
|
9565
|
-
if (s = i, o++, o >=
|
|
9597
|
+
if (s = i, o++, o >= Wd && (t++, o = 0), t >= e.length) {
|
|
9566
9598
|
c(e), u(!1);
|
|
9567
9599
|
return;
|
|
9568
9600
|
}
|
|
@@ -9588,7 +9620,7 @@ function Vd(e, t) {
|
|
|
9588
9620
|
}
|
|
9589
9621
|
//#endregion
|
|
9590
9622
|
//#region src/components/Stat/components/Stat.tsx
|
|
9591
|
-
var
|
|
9623
|
+
var Kd = {
|
|
9592
9624
|
sm: {
|
|
9593
9625
|
root: "gap-0.5",
|
|
9594
9626
|
label: "text-dos-text-xs",
|
|
@@ -9625,23 +9657,23 @@ var Hd = {
|
|
|
9625
9657
|
value: "text-dos-display-md",
|
|
9626
9658
|
trend: "text-dos-text-md"
|
|
9627
9659
|
}
|
|
9628
|
-
},
|
|
9660
|
+
}, qd = {
|
|
9629
9661
|
up: "text-cga-bright-green",
|
|
9630
9662
|
down: "text-cga-bright-red",
|
|
9631
9663
|
neutral: "text-cga-amber"
|
|
9632
|
-
},
|
|
9664
|
+
}, Jd = {
|
|
9633
9665
|
up: "▲",
|
|
9634
9666
|
down: "▼",
|
|
9635
9667
|
neutral: "►"
|
|
9636
|
-
},
|
|
9668
|
+
}, Yd = {
|
|
9637
9669
|
up: "increasing",
|
|
9638
9670
|
down: "decreasing",
|
|
9639
9671
|
neutral: "unchanged"
|
|
9640
|
-
},
|
|
9641
|
-
let { text: l } =
|
|
9672
|
+
}, Xd = r(({ label: e, value: t, trend: n, trendValue: r, size: i = "md", scramble: a = !1, className: o, ...s }, c) => {
|
|
9673
|
+
let { text: l } = Gd(String(t), {
|
|
9642
9674
|
speed: 30,
|
|
9643
9675
|
enabled: a
|
|
9644
|
-
}), u = a ? l : String(t), d =
|
|
9676
|
+
}), u = a ? l : String(t), d = Kd[i] || Kd.md;
|
|
9645
9677
|
return /* @__PURE__ */ x("div", {
|
|
9646
9678
|
ref: c,
|
|
9647
9679
|
className: $("flex flex-col font-dos", "eidotter-stat", d.root, o),
|
|
@@ -9656,12 +9688,12 @@ var Hd = {
|
|
|
9656
9688
|
children: u
|
|
9657
9689
|
}),
|
|
9658
9690
|
n && /* @__PURE__ */ x("span", {
|
|
9659
|
-
className: $("inline-flex items-center gap-1 leading-none",
|
|
9660
|
-
"aria-label": `Trend: ${
|
|
9691
|
+
className: $("inline-flex items-center gap-1 leading-none", qd[n], d.trend),
|
|
9692
|
+
"aria-label": `Trend: ${Yd[n]}${r ? `, ${r}` : ""}`,
|
|
9661
9693
|
children: [/* @__PURE__ */ b("span", {
|
|
9662
9694
|
className: "text-[0.8em]",
|
|
9663
9695
|
"aria-hidden": "true",
|
|
9664
|
-
children:
|
|
9696
|
+
children: Jd[n]
|
|
9665
9697
|
}), r && /* @__PURE__ */ b("span", {
|
|
9666
9698
|
className: "tabular-nums",
|
|
9667
9699
|
children: r
|
|
@@ -9670,17 +9702,17 @@ var Hd = {
|
|
|
9670
9702
|
]
|
|
9671
9703
|
});
|
|
9672
9704
|
});
|
|
9673
|
-
|
|
9705
|
+
Xd.displayName = "Stat";
|
|
9674
9706
|
//#endregion
|
|
9675
9707
|
//#region src/components/FilterBar/components/FilterBar.tsx
|
|
9676
|
-
var
|
|
9708
|
+
var Zd = {
|
|
9677
9709
|
sm: "eidotter-filter-bar--sm",
|
|
9678
9710
|
md: "eidotter-filter-bar--md",
|
|
9679
9711
|
lg: "eidotter-filter-bar--lg",
|
|
9680
9712
|
small: "eidotter-filter-bar--sm",
|
|
9681
9713
|
medium: "eidotter-filter-bar--md",
|
|
9682
9714
|
large: "eidotter-filter-bar--lg"
|
|
9683
|
-
},
|
|
9715
|
+
}, Qd = ({ items: e, activeIds: t, defaultActiveIds: n = [], mode: r = "multi", showAll: i = !1, allLabel: o = "All", size: s = "md", onChange: c, className: l, ...u }) => {
|
|
9684
9716
|
let [d, m] = p(n), h = f(null), g = t !== void 0, _ = g ? t : d, v = e.filter((e) => !e.disabled).map((e) => e.id), y = _.length === 0, S = a((e) => {
|
|
9685
9717
|
g || m(e), c?.(e);
|
|
9686
9718
|
}, [g, c]), C = a((e) => {
|
|
@@ -9715,7 +9747,7 @@ var qd = {
|
|
|
9715
9747
|
}, [T]), D = i && y ? "__all__" : _.length > 0 ? _[0] : i ? "__all__" : v[0] || null;
|
|
9716
9748
|
return /* @__PURE__ */ x("div", {
|
|
9717
9749
|
ref: h,
|
|
9718
|
-
className: $("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full", "bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm", "eidotter-filter-bar",
|
|
9750
|
+
className: $("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full", "bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm", "eidotter-filter-bar", Zd[s] || Zd.md, l),
|
|
9719
9751
|
role: "toolbar",
|
|
9720
9752
|
onKeyDown: E,
|
|
9721
9753
|
...u,
|
|
@@ -9748,7 +9780,7 @@ var qd = {
|
|
|
9748
9780
|
}, e.id);
|
|
9749
9781
|
})]
|
|
9750
9782
|
});
|
|
9751
|
-
},
|
|
9783
|
+
}, $d = (e) => {
|
|
9752
9784
|
if (!e) return !1;
|
|
9753
9785
|
try {
|
|
9754
9786
|
let t = new URL(e);
|
|
@@ -9760,7 +9792,7 @@ var qd = {
|
|
|
9760
9792
|
} catch {
|
|
9761
9793
|
return !1;
|
|
9762
9794
|
}
|
|
9763
|
-
},
|
|
9795
|
+
}, ef = ({ children: e, content: t, defaultExpanded: n = !1, expanded: r, onToggle: i, sources: a = [], className: o, ...s }) => {
|
|
9764
9796
|
let [l, u] = p(n), [d, m] = p(/* @__PURE__ */ new Set()), h = f(n), g = c(), _ = f(null), v = r !== void 0, y = v ? r : l;
|
|
9765
9797
|
y && (h.current = !0);
|
|
9766
9798
|
let S = () => {
|
|
@@ -9784,56 +9816,59 @@ var qd = {
|
|
|
9784
9816
|
"aria-hidden": "true",
|
|
9785
9817
|
children: y ? "[-]" : "[+]"
|
|
9786
9818
|
})]
|
|
9787
|
-
}), /* @__PURE__ */
|
|
9819
|
+
}), /* @__PURE__ */ b("span", {
|
|
9788
9820
|
id: g,
|
|
9789
9821
|
className: "eidotter-inline-expand__content",
|
|
9790
9822
|
role: "region",
|
|
9791
9823
|
inert: !y,
|
|
9792
|
-
children:
|
|
9793
|
-
className: "eidotter-inline-
|
|
9794
|
-
children:
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9824
|
+
children: /* @__PURE__ */ x("span", {
|
|
9825
|
+
className: "eidotter-inline-expand__content-clip",
|
|
9826
|
+
children: [/* @__PURE__ */ b("span", {
|
|
9827
|
+
className: "eidotter-inline-expand__inner",
|
|
9828
|
+
children: t
|
|
9829
|
+
}), a.length > 0 && /* @__PURE__ */ b("span", {
|
|
9830
|
+
className: "eidotter-inline-expand__sources",
|
|
9831
|
+
role: "list",
|
|
9832
|
+
children: a.map((e) => /* @__PURE__ */ b("span", {
|
|
9833
|
+
className: "eidotter-inline-expand__source-item",
|
|
9834
|
+
role: "listitem",
|
|
9835
|
+
children: /* @__PURE__ */ x("a", {
|
|
9836
|
+
href: $d(e.url) ? e.url : void 0,
|
|
9837
|
+
className: "eidotter-inline-expand__source-link",
|
|
9838
|
+
target: "_blank",
|
|
9839
|
+
rel: "noopener noreferrer",
|
|
9840
|
+
"aria-label": `${e.title} (opens external website)`,
|
|
9841
|
+
children: [h.current && e.favicon && $d(e.favicon) && !d.has(e.url) ? /* @__PURE__ */ b("img", {
|
|
9842
|
+
className: "eidotter-inline-expand__source-favicon",
|
|
9843
|
+
src: e.favicon,
|
|
9844
|
+
alt: "",
|
|
9845
|
+
width: 16,
|
|
9846
|
+
height: 16,
|
|
9847
|
+
decoding: "async",
|
|
9848
|
+
onError: () => m((t) => new Set(t).add(e.url))
|
|
9849
|
+
}) : /* @__PURE__ */ b("span", {
|
|
9850
|
+
className: "eidotter-inline-expand__source-icon",
|
|
9851
|
+
"aria-hidden": "true",
|
|
9852
|
+
children: "[→]"
|
|
9853
|
+
}), /* @__PURE__ */ b("span", {
|
|
9854
|
+
className: "eidotter-inline-expand__source-title",
|
|
9855
|
+
children: e.title
|
|
9856
|
+
})]
|
|
9857
|
+
})
|
|
9858
|
+
}, e.url))
|
|
9859
|
+
})]
|
|
9860
|
+
})
|
|
9826
9861
|
})]
|
|
9827
9862
|
});
|
|
9828
|
-
},
|
|
9863
|
+
}, tf = {
|
|
9829
9864
|
horizontal: "h-px w-full",
|
|
9830
9865
|
vertical: "w-px h-full"
|
|
9831
|
-
},
|
|
9866
|
+
}, nf = ({ orientation: e = "horizontal", className: t }) => /* @__PURE__ */ b("div", {
|
|
9832
9867
|
role: "separator",
|
|
9833
9868
|
"aria-orientation": e,
|
|
9834
|
-
className: $("shrink-0 bg-dos-border-default", "eidotter-separator",
|
|
9835
|
-
}),
|
|
9836
|
-
let { text: s, isScrambling: c } =
|
|
9869
|
+
className: $("shrink-0 bg-dos-border-default", "eidotter-separator", tf[e], t)
|
|
9870
|
+
}), rf = r(({ children: e, speed: t, characters: n, delay: r, className: i, ...a }, o) => {
|
|
9871
|
+
let { text: s, isScrambling: c } = Gd(e, {
|
|
9837
9872
|
speed: t,
|
|
9838
9873
|
characters: n,
|
|
9839
9874
|
delay: r
|
|
@@ -9845,16 +9880,16 @@ var qd = {
|
|
|
9845
9880
|
children: s
|
|
9846
9881
|
});
|
|
9847
9882
|
});
|
|
9848
|
-
|
|
9883
|
+
rf.displayName = "TextScramble";
|
|
9849
9884
|
//#endregion
|
|
9850
9885
|
//#region src/components/Nav/components/Nav.tsx
|
|
9851
|
-
var
|
|
9886
|
+
var af = {
|
|
9852
9887
|
retro: "eidotter-nav--retro",
|
|
9853
9888
|
modern: "eidotter-nav--modern"
|
|
9854
|
-
},
|
|
9889
|
+
}, of = ({ items: e, activeHref: t, variant: n = "retro", linkComponent: r, className: i }) => {
|
|
9855
9890
|
let a = r || "a";
|
|
9856
9891
|
return /* @__PURE__ */ b("nav", {
|
|
9857
|
-
className: $("eidotter-nav eidotter-nav--desktop",
|
|
9892
|
+
className: $("eidotter-nav eidotter-nav--desktop", af[n], i),
|
|
9858
9893
|
"aria-label": "Main navigation",
|
|
9859
9894
|
children: /* @__PURE__ */ b("ul", {
|
|
9860
9895
|
className: "eidotter-nav__desktop-list",
|
|
@@ -9863,24 +9898,28 @@ var ef = {
|
|
|
9863
9898
|
children: /* @__PURE__ */ b(a, {
|
|
9864
9899
|
href: e.href,
|
|
9865
9900
|
className: $("eidotter-nav__link", t === e.href && "eidotter-nav__link--active"),
|
|
9901
|
+
"aria-current": t === e.href ? "page" : void 0,
|
|
9866
9902
|
children: e.label
|
|
9867
9903
|
})
|
|
9868
9904
|
}, e.href))
|
|
9869
9905
|
})
|
|
9870
9906
|
});
|
|
9871
|
-
},
|
|
9872
|
-
let [o, c] = p(!1), l = r || "a", u = a(() => c((e) => !e), []),
|
|
9907
|
+
}, sf = ({ items: e, activeHref: t, variant: n = "retro", linkComponent: r, className: i }) => {
|
|
9908
|
+
let [o, c] = p(!1), l = r || "a", u = f(null), d = f(null), m = f(null), h = f(!1), g = a(() => c((e) => !e), []), _ = a(() => c(!1), []);
|
|
9873
9909
|
return s(() => {
|
|
9874
9910
|
if (!o) return;
|
|
9875
9911
|
let e = (e) => {
|
|
9876
|
-
e.key === "Escape" &&
|
|
9912
|
+
e.key === "Escape" && _();
|
|
9877
9913
|
};
|
|
9878
9914
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
9879
|
-
}, [o,
|
|
9880
|
-
|
|
9915
|
+
}, [o, _]), s(() => {
|
|
9916
|
+
o ? d.current?.focus() : h.current && u.current?.focus(), h.current = o;
|
|
9917
|
+
}, [o]), /* @__PURE__ */ x("div", {
|
|
9918
|
+
className: $("eidotter-nav eidotter-nav--mobile", af[n], i),
|
|
9881
9919
|
children: [
|
|
9882
9920
|
/* @__PURE__ */ b("button", {
|
|
9883
|
-
|
|
9921
|
+
ref: u,
|
|
9922
|
+
onClick: g,
|
|
9884
9923
|
className: "eidotter-nav__menu-trigger",
|
|
9885
9924
|
"aria-label": o ? "Close menu" : "Open menu",
|
|
9886
9925
|
"aria-expanded": o,
|
|
@@ -9889,17 +9928,27 @@ var ef = {
|
|
|
9889
9928
|
}),
|
|
9890
9929
|
o && /* @__PURE__ */ b("div", {
|
|
9891
9930
|
className: "eidotter-nav__overlay",
|
|
9892
|
-
onClick:
|
|
9931
|
+
onClick: _,
|
|
9893
9932
|
"aria-hidden": "true"
|
|
9894
9933
|
}),
|
|
9895
9934
|
/* @__PURE__ */ x("nav", {
|
|
9935
|
+
ref: m,
|
|
9896
9936
|
id: "eidotter-mobile-nav-panel",
|
|
9897
9937
|
className: $("eidotter-nav__panel", o && "eidotter-nav__panel--open"),
|
|
9898
9938
|
"aria-label": "Mobile navigation",
|
|
9939
|
+
inert: !o,
|
|
9940
|
+
onKeyDown: (e) => {
|
|
9941
|
+
if (e.key !== "Tab" || !o) return;
|
|
9942
|
+
let t = m.current?.querySelectorAll("a[href], button:not([disabled])");
|
|
9943
|
+
if (!t || t.length === 0) return;
|
|
9944
|
+
let n = t[0], r = t[t.length - 1];
|
|
9945
|
+
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
9946
|
+
},
|
|
9899
9947
|
children: [/* @__PURE__ */ b("div", {
|
|
9900
9948
|
className: "eidotter-nav__panel-header",
|
|
9901
9949
|
children: /* @__PURE__ */ b("button", {
|
|
9902
|
-
|
|
9950
|
+
ref: d,
|
|
9951
|
+
onClick: _,
|
|
9903
9952
|
className: "eidotter-nav__close",
|
|
9904
9953
|
"aria-label": "Close menu",
|
|
9905
9954
|
children: /* @__PURE__ */ b(Zl, {
|
|
@@ -9914,7 +9963,8 @@ var ef = {
|
|
|
9914
9963
|
children: /* @__PURE__ */ b(l, {
|
|
9915
9964
|
href: e.href,
|
|
9916
9965
|
className: $("eidotter-nav__link", t === e.href && "eidotter-nav__link--active"),
|
|
9917
|
-
|
|
9966
|
+
"aria-current": t === e.href ? "page" : void 0,
|
|
9967
|
+
onClick: _,
|
|
9918
9968
|
children: e.label
|
|
9919
9969
|
})
|
|
9920
9970
|
}, e.href))
|
|
@@ -9922,14 +9972,14 @@ var ef = {
|
|
|
9922
9972
|
})
|
|
9923
9973
|
]
|
|
9924
9974
|
});
|
|
9925
|
-
},
|
|
9975
|
+
}, cf = (e) => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(sf, { ...e }), /* @__PURE__ */ b(of, { ...e })] }), lf = {
|
|
9926
9976
|
user: "eidotter-chat-message--user",
|
|
9927
9977
|
assistant: "eidotter-chat-message--assistant",
|
|
9928
9978
|
system: "eidotter-chat-message--system"
|
|
9929
|
-
},
|
|
9979
|
+
}, uf = ({ role: e, content: t, isStreaming: n = !1, userPrefix: r = ">", assistantPrefix: i = "C:\\>", className: a, ...o }) => {
|
|
9930
9980
|
let s = e === "user" ? r : e === "assistant" ? i : "";
|
|
9931
9981
|
return /* @__PURE__ */ x("div", {
|
|
9932
|
-
className: $("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",
|
|
9982
|
+
className: $("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words", lf[e], n && "eidotter-chat-message--streaming", a),
|
|
9933
9983
|
...o,
|
|
9934
9984
|
children: [
|
|
9935
9985
|
s && /* @__PURE__ */ b("span", {
|
|
@@ -9948,7 +9998,7 @@ var ef = {
|
|
|
9948
9998
|
})
|
|
9949
9999
|
]
|
|
9950
10000
|
});
|
|
9951
|
-
},
|
|
10001
|
+
}, df = ({ messages: e, isStreaming: t = !1, userPrefix: n, assistantPrefix: r, className: i, ...a }) => {
|
|
9952
10002
|
let o = f(null);
|
|
9953
10003
|
s(() => {
|
|
9954
10004
|
o.current?.scrollIntoView?.({ behavior: "smooth" });
|
|
@@ -9977,7 +10027,7 @@ var ef = {
|
|
|
9977
10027
|
className: "flex flex-col",
|
|
9978
10028
|
children: [e.map((i, a) => {
|
|
9979
10029
|
let o = t && i.role === "assistant" && a === e.length - 1;
|
|
9980
|
-
return /* @__PURE__ */ b(
|
|
10030
|
+
return /* @__PURE__ */ b(uf, {
|
|
9981
10031
|
role: i.role,
|
|
9982
10032
|
content: i.content,
|
|
9983
10033
|
isStreaming: o,
|
|
@@ -9987,7 +10037,7 @@ var ef = {
|
|
|
9987
10037
|
}), /* @__PURE__ */ b("div", { ref: o })]
|
|
9988
10038
|
})
|
|
9989
10039
|
});
|
|
9990
|
-
},
|
|
10040
|
+
}, ff = ({ onSend: e, prompt: t = ">", placeholder: n, disabled: r = !1, className: i, ...a }) => {
|
|
9991
10041
|
let [o, s] = p(""), c = f(null);
|
|
9992
10042
|
l(() => {
|
|
9993
10043
|
let e = c.current;
|
|
@@ -10029,30 +10079,30 @@ var ef = {
|
|
|
10029
10079
|
})]
|
|
10030
10080
|
})]
|
|
10031
10081
|
});
|
|
10032
|
-
},
|
|
10082
|
+
}, pf = ({ messages: e, onSend: t, isStreaming: n = !1, inputPrompt: r, userPrefix: i, assistantPrefix: a, placeholder: o, disabled: s = !1, className: c, ...l }) => /* @__PURE__ */ x("div", {
|
|
10033
10083
|
className: $("flex flex-col h-full min-h-0", c),
|
|
10034
10084
|
...l,
|
|
10035
|
-
children: [/* @__PURE__ */ b(
|
|
10085
|
+
children: [/* @__PURE__ */ b(df, {
|
|
10036
10086
|
className: "flex-1 min-h-0",
|
|
10037
10087
|
messages: e,
|
|
10038
10088
|
isStreaming: n,
|
|
10039
10089
|
userPrefix: i,
|
|
10040
10090
|
assistantPrefix: a
|
|
10041
|
-
}), /* @__PURE__ */ b(
|
|
10091
|
+
}), /* @__PURE__ */ b(ff, {
|
|
10042
10092
|
className: "shrink-0",
|
|
10043
10093
|
onSend: t,
|
|
10044
10094
|
prompt: r,
|
|
10045
10095
|
placeholder: o,
|
|
10046
10096
|
disabled: s
|
|
10047
10097
|
})]
|
|
10048
|
-
}),
|
|
10098
|
+
}), mf = [{
|
|
10049
10099
|
label: "Impressum",
|
|
10050
10100
|
href: "/impressum"
|
|
10051
10101
|
}, {
|
|
10052
10102
|
label: "Datenschutz",
|
|
10053
10103
|
href: "/datenschutz"
|
|
10054
|
-
}],
|
|
10055
|
-
let s = n ??
|
|
10104
|
+
}], hf = ({ copyright: t, links: n, linkComponent: r, children: i, className: a, ...o }) => {
|
|
10105
|
+
let s = n ?? mf, c = r ?? "a", l = "eidotter-footer__link text-cga-amber no-underline";
|
|
10056
10106
|
return /* @__PURE__ */ x("footer", {
|
|
10057
10107
|
className: $("font-dos text-sm py-4 px-2 text-center", "eidotter-footer", a),
|
|
10058
10108
|
...o,
|
|
@@ -10090,14 +10140,14 @@ var ef = {
|
|
|
10090
10140
|
})
|
|
10091
10141
|
]
|
|
10092
10142
|
});
|
|
10093
|
-
},
|
|
10143
|
+
}, gf = {
|
|
10094
10144
|
retro: "eidotter-header--retro",
|
|
10095
10145
|
modern: "eidotter-header--modern"
|
|
10096
|
-
},
|
|
10146
|
+
}, _f = r(({ brandName: e, brandHref: t = "/", items: n, activeHref: r, variant: i = "retro", sticky: a = !0, linkComponent: o, children: s, className: c, ...l }, u) => {
|
|
10097
10147
|
let d = o ?? "a";
|
|
10098
10148
|
return /* @__PURE__ */ x("header", {
|
|
10099
10149
|
ref: u,
|
|
10100
|
-
className: $("flex items-center justify-between px-4 py-3 font-dos", "eidotter-header",
|
|
10150
|
+
className: $("flex items-center justify-between px-4 py-3 font-dos", "eidotter-header", gf[i], a && "sticky top-0 z-50 bg-dos-bg-primary", c),
|
|
10101
10151
|
...l,
|
|
10102
10152
|
children: [
|
|
10103
10153
|
/* @__PURE__ */ b(d, {
|
|
@@ -10105,13 +10155,13 @@ var ef = {
|
|
|
10105
10155
|
className: $("no-underline text-base font-bold tracking-wide", "eidotter-header__branding"),
|
|
10106
10156
|
children: s || e
|
|
10107
10157
|
}),
|
|
10108
|
-
/* @__PURE__ */ b(
|
|
10158
|
+
/* @__PURE__ */ b(of, {
|
|
10109
10159
|
items: n,
|
|
10110
10160
|
activeHref: r,
|
|
10111
10161
|
variant: i,
|
|
10112
10162
|
linkComponent: o
|
|
10113
10163
|
}),
|
|
10114
|
-
/* @__PURE__ */ b(
|
|
10164
|
+
/* @__PURE__ */ b(sf, {
|
|
10115
10165
|
items: n,
|
|
10116
10166
|
activeHref: r,
|
|
10117
10167
|
variant: i,
|
|
@@ -10120,16 +10170,16 @@ var ef = {
|
|
|
10120
10170
|
]
|
|
10121
10171
|
});
|
|
10122
10172
|
});
|
|
10123
|
-
|
|
10173
|
+
_f.displayName = "Header";
|
|
10124
10174
|
//#endregion
|
|
10125
10175
|
//#region src/components/Notification/components/Notification.tsx
|
|
10126
|
-
var
|
|
10176
|
+
var vf = {
|
|
10127
10177
|
primary: "Info",
|
|
10128
10178
|
gray: "Info",
|
|
10129
10179
|
success: "Done",
|
|
10130
10180
|
warning: "Warning",
|
|
10131
10181
|
error: "Error"
|
|
10132
|
-
},
|
|
10182
|
+
}, yf = ({ type: e = "primary", title: t, children: n, actions: r, onClose: i, avatar: a, image: o, progress: c, progressLabel: l, duration: u, showIcon: d = !0, className: f }) => {
|
|
10133
10183
|
let { isClosing: p, triggerClose: m, handleAnimationEnd: h } = $l("notification-exit", i);
|
|
10134
10184
|
s(() => {
|
|
10135
10185
|
if (u == null || !i) return;
|
|
@@ -10159,7 +10209,7 @@ var mf = {
|
|
|
10159
10209
|
g && /* @__PURE__ */ b("div", {
|
|
10160
10210
|
className: "eidotter-notification__icon",
|
|
10161
10211
|
children: /* @__PURE__ */ b(Zl, {
|
|
10162
|
-
name:
|
|
10212
|
+
name: vf[e] || "Info",
|
|
10163
10213
|
size: "S",
|
|
10164
10214
|
"aria-label": `${e} notification`
|
|
10165
10215
|
})
|
|
@@ -10215,7 +10265,7 @@ var mf = {
|
|
|
10215
10265
|
};
|
|
10216
10266
|
//#endregion
|
|
10217
10267
|
//#region src/components/InlineLink/components/InlineLink.tsx
|
|
10218
|
-
function
|
|
10268
|
+
function bf(e) {
|
|
10219
10269
|
let t = e.trim();
|
|
10220
10270
|
if (t === "" || /^[#?/]/.test(t)) return t;
|
|
10221
10271
|
let n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
|
|
@@ -10230,14 +10280,14 @@ function gf(e) {
|
|
|
10230
10280
|
"sms"
|
|
10231
10281
|
].includes(r) ? t : "#";
|
|
10232
10282
|
}
|
|
10233
|
-
function
|
|
10283
|
+
function xf(e, t) {
|
|
10234
10284
|
if (t.length === 0) return e;
|
|
10235
10285
|
let n = new Set((e ?? "").split(/\s+/).map((e) => e.trim().toLowerCase()).filter(Boolean));
|
|
10236
10286
|
for (let e of t) n.add(e.toLowerCase());
|
|
10237
10287
|
return Array.from(n).join(" ");
|
|
10238
10288
|
}
|
|
10239
|
-
var
|
|
10240
|
-
let l =
|
|
10289
|
+
var Sf = r(({ children: e, href: t, showGlyph: n = !0, external: r = !1, className: i, target: a, rel: o, ...s }, c) => {
|
|
10290
|
+
let l = bf(t), u = a ?? (r ? "_blank" : void 0), d = u === "_blank", f = d ? xf(o, ["noopener", "noreferrer"]) : o, p = r && d ? "↗" : "▸";
|
|
10241
10291
|
return /* @__PURE__ */ x("a", {
|
|
10242
10292
|
ref: c,
|
|
10243
10293
|
href: l,
|
|
@@ -10255,10 +10305,10 @@ var vf = r(({ children: e, href: t, showGlyph: n = !0, external: r = !1, classNa
|
|
|
10255
10305
|
})]
|
|
10256
10306
|
});
|
|
10257
10307
|
});
|
|
10258
|
-
|
|
10308
|
+
Sf.displayName = "InlineLink";
|
|
10259
10309
|
//#endregion
|
|
10260
10310
|
//#region src/components/DosFigure/components/DosFigure.tsx
|
|
10261
|
-
var
|
|
10311
|
+
var Cf = r(({ title: e, resolution: t, subject: n, caption: r, pins: i = [], animated: a = !0, "aria-label": o, className: s }, l) => {
|
|
10262
10312
|
let u = c(), d = r ? u : void 0;
|
|
10263
10313
|
return /* @__PURE__ */ x("figure", {
|
|
10264
10314
|
ref: l,
|
|
@@ -10319,11 +10369,11 @@ var yf = r(({ title: e, resolution: t, subject: n, caption: r, pins: i = [], ani
|
|
|
10319
10369
|
]
|
|
10320
10370
|
});
|
|
10321
10371
|
});
|
|
10322
|
-
|
|
10372
|
+
Cf.displayName = "DosFigure";
|
|
10323
10373
|
//#endregion
|
|
10324
10374
|
//#region src/components/CmdPalette/components/CmdPalette.tsx
|
|
10325
|
-
var
|
|
10326
|
-
function
|
|
10375
|
+
var wf = /* @__PURE__ */ b(y, { children: "↑/↓ NAVIGATE · ↵ OPEN · ESC CLOSE" });
|
|
10376
|
+
function Tf(e) {
|
|
10327
10377
|
let t = e.toLowerCase().split("+").map((e) => e.trim()), n = t[t.length - 1], r = t.includes("mod"), i = t.includes("shift"), a = t.includes("alt");
|
|
10328
10378
|
return (e) => {
|
|
10329
10379
|
if (e.key.toLowerCase() !== n) return !1;
|
|
@@ -10331,15 +10381,15 @@ function xf(e) {
|
|
|
10331
10381
|
return !(!(r ? t ? e.metaKey : e.ctrlKey : !(e.metaKey || e.ctrlKey)) || i !== e.shiftKey || a !== e.altKey);
|
|
10332
10382
|
};
|
|
10333
10383
|
}
|
|
10334
|
-
function
|
|
10384
|
+
function Ef(e, t) {
|
|
10335
10385
|
if (!t) return 0;
|
|
10336
10386
|
let n = t.toLowerCase(), r = e.label.toLowerCase(), i = (e.keywords || []).map((e) => e.toLowerCase());
|
|
10337
10387
|
return r.startsWith(n) ? 100 : i.some((e) => e.startsWith(n)) ? 80 : r.includes(n) ? 50 : i.some((e) => e.includes(n)) ? 30 : (e.type || "").toLowerCase().includes(n) ? 10 : -1;
|
|
10338
10388
|
}
|
|
10339
|
-
var
|
|
10389
|
+
var Df = r(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TYPE · ▸", hotkey: i = "mod+k", emptyMessage: o = "NO MATCHES", footerHint: l = wf, renderItem: d, maxResults: m = 20, className: h, "aria-label": g = "Command palette" }, _) => {
|
|
10340
10390
|
let v = c(), S = `${v}-listbox`, [C, w] = p(""), [T, E] = p(0), D = f(null), O = f(null), k = f(!1), A = u(() => C.trim() ? n.map((e) => ({
|
|
10341
10391
|
item: e,
|
|
10342
|
-
score:
|
|
10392
|
+
score: Ef(e, C.trim())
|
|
10343
10393
|
})).filter((e) => e.score >= 0).sort((e, t) => t.score - e.score).slice(0, m).map((e) => e.item) : n.slice(0, m), [
|
|
10344
10394
|
n,
|
|
10345
10395
|
C,
|
|
@@ -10364,7 +10414,7 @@ var Cf = r(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TY
|
|
|
10364
10414
|
M.current = t;
|
|
10365
10415
|
}, [t]), s(() => {
|
|
10366
10416
|
if (i === !1) return;
|
|
10367
|
-
let e =
|
|
10417
|
+
let e = Tf(i), t = (t) => {
|
|
10368
10418
|
e(t) && (t.preventDefault(), M.current(!j.current));
|
|
10369
10419
|
};
|
|
10370
10420
|
return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
|
|
@@ -10473,10 +10523,10 @@ var Cf = r(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TY
|
|
|
10473
10523
|
})
|
|
10474
10524
|
});
|
|
10475
10525
|
});
|
|
10476
|
-
|
|
10526
|
+
Df.displayName = "CmdPalette";
|
|
10477
10527
|
//#endregion
|
|
10478
10528
|
//#region src/components/Brand/components/Logo.tsx
|
|
10479
|
-
var
|
|
10529
|
+
var Of = r(({ size: e = 32, glow: t = !0, title: n = "eiDotter", className: r, ...i }, a) => {
|
|
10480
10530
|
let o = c(), s = `eidotter-logo-halo-${o}`, l = `eidotter-logo-core-${o}`;
|
|
10481
10531
|
return /* @__PURE__ */ x("svg", {
|
|
10482
10532
|
ref: a,
|
|
@@ -10700,10 +10750,10 @@ var wf = r(({ size: e = 32, glow: t = !0, title: n = "eiDotter", className: r, .
|
|
|
10700
10750
|
]
|
|
10701
10751
|
});
|
|
10702
10752
|
});
|
|
10703
|
-
|
|
10753
|
+
Of.displayName = "Logo";
|
|
10704
10754
|
//#endregion
|
|
10705
10755
|
//#region src/components/Brand/components/Wordmark.tsx
|
|
10706
|
-
var
|
|
10756
|
+
var kf = r(({ glow: e = !0, className: t, ...n }, r) => /* @__PURE__ */ x("span", {
|
|
10707
10757
|
ref: r,
|
|
10708
10758
|
className: $("eidotter-wordmark font-dos", e && "eidotter-wordmark--glow", t),
|
|
10709
10759
|
"aria-label": "eiDotter",
|
|
@@ -10718,28 +10768,28 @@ var Tf = r(({ glow: e = !0, className: t, ...n }, r) => /* @__PURE__ */ x("span"
|
|
|
10718
10768
|
children: "Dotter"
|
|
10719
10769
|
})]
|
|
10720
10770
|
}));
|
|
10721
|
-
|
|
10771
|
+
kf.displayName = "Wordmark";
|
|
10722
10772
|
//#endregion
|
|
10723
10773
|
//#region src/components/Brand/components/BrandLockup.tsx
|
|
10724
|
-
var
|
|
10774
|
+
var Af = r(({ logoSize: e = 32, iconOnly: t = !1, wordmarkOnly: n = !1, glow: r = !0, className: i, ...a }, o) => /* @__PURE__ */ x("div", {
|
|
10725
10775
|
ref: o,
|
|
10726
10776
|
className: $("eidotter-brand-lockup inline-flex items-center gap-3", i),
|
|
10727
10777
|
role: "img",
|
|
10728
10778
|
"aria-label": "eiDotter",
|
|
10729
10779
|
...a,
|
|
10730
|
-
children: [!n && /* @__PURE__ */ b(
|
|
10780
|
+
children: [!n && /* @__PURE__ */ b(Of, {
|
|
10731
10781
|
size: e,
|
|
10732
10782
|
glow: r,
|
|
10733
10783
|
title: ""
|
|
10734
|
-
}), !t && /* @__PURE__ */ b(
|
|
10784
|
+
}), !t && /* @__PURE__ */ b(kf, {
|
|
10735
10785
|
glow: r,
|
|
10736
10786
|
"aria-hidden": "true"
|
|
10737
10787
|
})]
|
|
10738
10788
|
}));
|
|
10739
|
-
|
|
10789
|
+
Af.displayName = "BrandLockup";
|
|
10740
10790
|
//#endregion
|
|
10741
10791
|
//#region src/components/AIText/components/AIText.tsx
|
|
10742
|
-
var
|
|
10792
|
+
var jf = ({ children: e, className: t, title: n = "AI-assisted text — being rewritten" }) => /* @__PURE__ */ x("span", {
|
|
10743
10793
|
"data-provenance": "ai-draft",
|
|
10744
10794
|
className: $("eidotter-ai-text", t),
|
|
10745
10795
|
title: n,
|
|
@@ -10748,43 +10798,43 @@ var Df = ({ children: e, className: t, title: n = "AI-assisted text — being re
|
|
|
10748
10798
|
children: "AI-assisted: "
|
|
10749
10799
|
}), e]
|
|
10750
10800
|
});
|
|
10751
|
-
|
|
10801
|
+
jf.displayName = "AIText";
|
|
10752
10802
|
//#endregion
|
|
10753
10803
|
//#region src/components/Skeleton/components/Skeleton.tsx
|
|
10754
|
-
var
|
|
10804
|
+
var Mf = "░░░░▒░░░░░░░▒░░░▒▒░░░░░░▒░░░░░░░▒░░░░▒░░", Nf = "▒▒▓▒▒▒▒▓▒▒▒▒▒▓▒▒▒▒▒▒▓▒▒▒▒▓▒▒▒▒▒▓▒▒▒▒▒▓▒", Pf = 6, Ff = {
|
|
10755
10805
|
text: 3,
|
|
10756
10806
|
card: 3,
|
|
10757
10807
|
figure: 4,
|
|
10758
10808
|
timeline: 2
|
|
10759
|
-
},
|
|
10809
|
+
}, If = ({ dense: e = !1, width: t = "full" }) => /* @__PURE__ */ b("span", {
|
|
10760
10810
|
className: $("eidotter-skeleton__line", t === "short" && "eidotter-skeleton__line--short", t === "meta" && "eidotter-skeleton__line--meta"),
|
|
10761
|
-
children: (e ?
|
|
10811
|
+
children: (e ? Nf : Mf).repeat(Pf)
|
|
10762
10812
|
});
|
|
10763
|
-
function
|
|
10764
|
-
return Array.from({ length: e }, (r, i) => /* @__PURE__ */ b(
|
|
10813
|
+
function Lf(e, t = !1, n = !0) {
|
|
10814
|
+
return Array.from({ length: e }, (r, i) => /* @__PURE__ */ b(If, {
|
|
10765
10815
|
dense: t,
|
|
10766
10816
|
width: n && i === e - 1 && e > 1 ? "short" : "full"
|
|
10767
10817
|
}, i));
|
|
10768
10818
|
}
|
|
10769
|
-
var
|
|
10770
|
-
let a = Math.max(1, t ??
|
|
10819
|
+
var Rf = ({ variant: e = "text", lines: t, animated: n = !0, label: r = "Loading", className: i }) => {
|
|
10820
|
+
let a = Math.max(1, t ?? Ff[e]), o;
|
|
10771
10821
|
switch (e) {
|
|
10772
10822
|
case "card":
|
|
10773
|
-
o = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
10823
|
+
o = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(If, {
|
|
10774
10824
|
dense: !0,
|
|
10775
10825
|
width: "meta"
|
|
10776
|
-
}),
|
|
10826
|
+
}), Lf(a)] });
|
|
10777
10827
|
break;
|
|
10778
10828
|
case "figure":
|
|
10779
|
-
o =
|
|
10829
|
+
o = Lf(a, !0, !1);
|
|
10780
10830
|
break;
|
|
10781
10831
|
case "timeline":
|
|
10782
10832
|
o = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("span", { className: "eidotter-skeleton__marker border-2 border-dos-border-default" }), /* @__PURE__ */ x("span", {
|
|
10783
10833
|
className: "eidotter-skeleton__entry",
|
|
10784
|
-
children: [/* @__PURE__ */ b(
|
|
10834
|
+
children: [/* @__PURE__ */ b(If, { width: "meta" }), Lf(a)]
|
|
10785
10835
|
})] });
|
|
10786
10836
|
break;
|
|
10787
|
-
default: o =
|
|
10837
|
+
default: o = Lf(a);
|
|
10788
10838
|
}
|
|
10789
10839
|
return /* @__PURE__ */ b("div", {
|
|
10790
10840
|
role: "status",
|
|
@@ -10797,10 +10847,10 @@ var Pf = ({ variant: e = "text", lines: t, animated: n = !0, label: r = "Loading
|
|
|
10797
10847
|
})
|
|
10798
10848
|
});
|
|
10799
10849
|
};
|
|
10800
|
-
|
|
10850
|
+
Rf.displayName = "Skeleton";
|
|
10801
10851
|
//#endregion
|
|
10802
10852
|
//#region src/components/LegalPage/components/LegalPage.tsx
|
|
10803
|
-
var
|
|
10853
|
+
var zf = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...o }) => /* @__PURE__ */ x("div", {
|
|
10804
10854
|
className: $("eidotter-legal-page", a),
|
|
10805
10855
|
...o,
|
|
10806
10856
|
children: [r && /* @__PURE__ */ b("div", {
|
|
@@ -10823,13 +10873,13 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
10823
10873
|
className: "eidotter-legal-page__body",
|
|
10824
10874
|
children: i
|
|
10825
10875
|
})] })]
|
|
10826
|
-
}),
|
|
10876
|
+
}), Bf = /* @__PURE__ */ x(y, { children: [
|
|
10827
10877
|
"Haus-Endt-Str. 149A",
|
|
10828
10878
|
/* @__PURE__ */ b("br", {}),
|
|
10829
10879
|
"40593 Düsseldorf",
|
|
10830
10880
|
/* @__PURE__ */ b("br", {}),
|
|
10831
10881
|
"Deutschland"
|
|
10832
|
-
] }),
|
|
10882
|
+
] }), Vf = "Dominic Kennedy", Hf = ({ email: e, address: t = Bf, name: n = Vf }) => /* @__PURE__ */ x("address", { children: [
|
|
10833
10883
|
n,
|
|
10834
10884
|
/* @__PURE__ */ b("br", {}),
|
|
10835
10885
|
t,
|
|
@@ -10841,16 +10891,16 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
10841
10891
|
children: e
|
|
10842
10892
|
})
|
|
10843
10893
|
] })
|
|
10844
|
-
] }),
|
|
10894
|
+
] }), Uf = (e) => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Angaben gemäß § 5 DDG" }), /* @__PURE__ */ b(Hf, { ...e })] }), Wf = ({ email: e }) => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Kontakt" }), /* @__PURE__ */ x("p", { children: ["E-Mail: ", /* @__PURE__ */ b("a", {
|
|
10845
10895
|
href: `mailto:${e}`,
|
|
10846
10896
|
children: e
|
|
10847
|
-
})] })] }),
|
|
10897
|
+
})] })] }), Gf = ({ name: e = Vf }) => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Inhaltlich verantwortlich (§ 18 Abs. 2 MStV)" }), /* @__PURE__ */ x("address", { children: [
|
|
10848
10898
|
e,
|
|
10849
10899
|
/* @__PURE__ */ b("br", {}),
|
|
10850
10900
|
"Haus-Endt-Str. 149A",
|
|
10851
10901
|
/* @__PURE__ */ b("br", {}),
|
|
10852
10902
|
"40593 Düsseldorf"
|
|
10853
|
-
] })] }),
|
|
10903
|
+
] })] }), Kf = () => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Haftung für Inhalte" }), /* @__PURE__ */ b("p", { children: "Ich erstelle die Inhalte dieser Seiten mit größter Sorgfalt, übernehme jedoch keine Gewähr für Richtigkeit, Vollständigkeit oder Aktualität. Als Diensteanbieter bin ich gemäß § 7 Abs. 1 DDG für eigene Inhalte verantwortlich. Eine Pflicht zur Überwachung fremder Informationen besteht gemäß §§ 8–10 DDG nicht." })] }), qf = () => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Haftung für Links" }), /* @__PURE__ */ b("p", { children: "Diese Website verlinkt auf externe Seiten Dritter, auf deren Inhalte ich keinen Einfluss habe. Für verlinkte Inhalte haftet der jeweilige Anbieter. Eine dauerhafte Kontrolle ist ohne Anhaltspunkte für Rechtsverletzungen nicht zumutbar. Bei Bekanntwerden von Verstößen entferne ich solche Links umgehend." })] }), Jf = ({ email: e, name: t = Vf }) => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Verantwortlicher" }), /* @__PURE__ */ x("address", { children: [
|
|
10854
10904
|
t,
|
|
10855
10905
|
/* @__PURE__ */ b("br", {}),
|
|
10856
10906
|
"Haus-Endt-Str. 149A",
|
|
@@ -10862,14 +10912,14 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
10862
10912
|
href: `mailto:${e}`,
|
|
10863
10913
|
children: e
|
|
10864
10914
|
})
|
|
10865
|
-
] })] }),
|
|
10915
|
+
] })] }), Yf = () => /* @__PURE__ */ x(y, { children: [
|
|
10866
10916
|
/* @__PURE__ */ b("h2", { children: "Hosting" }),
|
|
10867
10917
|
/* @__PURE__ */ b("p", { children: "Cloudflare Pages stellt diese Website bereit. Beim Seitenaufruf erhebt Cloudflare automatisch technische Zugriffsdaten (darunter Ihre IP-Adresse), um die Seite auszuliefern." }),
|
|
10868
10918
|
/* @__PURE__ */ b("p", {
|
|
10869
10919
|
className: "eidotter-legal-page__basis",
|
|
10870
10920
|
children: "Anbieter: Cloudflare, Inc., 101 Townsend St, San Francisco, CA 94107, USA. Rechtsgrundlage: Art. 6 Abs. 1 lit. f DSGVO (berechtigtes Interesse)."
|
|
10871
10921
|
})
|
|
10872
|
-
] }),
|
|
10922
|
+
] }), Xf = ({ proxyHost: e = "e.dmnc.tech" }) => /* @__PURE__ */ x(y, { children: [
|
|
10873
10923
|
/* @__PURE__ */ b("h2", { children: "Webanalyse — PostHog" }),
|
|
10874
10924
|
/* @__PURE__ */ x("p", { children: [
|
|
10875
10925
|
"Diese Website nutzt PostHog zur Analyse des Nutzungsverhaltens. PostHog läuft auf EU-Servern (eu.posthog.com). Die Datenübertragung erfolgt über einen Reverse-Proxy auf der Domain ",
|
|
@@ -10886,7 +10936,7 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
10886
10936
|
className: "eidotter-legal-page__basis",
|
|
10887
10937
|
children: "Rechtsgrundlage: Art. 6 Abs. 1 lit. f DSGVO (berechtigtes Interesse)."
|
|
10888
10938
|
})
|
|
10889
|
-
] }),
|
|
10939
|
+
] }), Zf = () => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Schriftarten" }), /* @__PURE__ */ b("p", { children: "Die Schriftart „Perfect DOS VGA 437“ wird lokal von diesem Server ausgeliefert. Es findet keine Verbindung zu externen Schriftarten-Diensten statt." })] }), Qf = () => /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("h2", { children: "Verschlüsselung" }), /* @__PURE__ */ b("p", { children: "Diese Website nutzt SSL-/TLS-Verschlüsselung. Eine verschlüsselte Verbindung erkennen Sie am „https://“ in der Adresszeile Ihres Browsers." })] }), $f = ({ email: e, supervisoryAuthority: t = "die Landesbeauftragte für Datenschutz und Informationsfreiheit Nordrhein-Westfalen" }) => /* @__PURE__ */ x(y, { children: [
|
|
10890
10940
|
/* @__PURE__ */ b("h2", { children: "Ihre Rechte" }),
|
|
10891
10941
|
/* @__PURE__ */ b("p", { children: "Die DSGVO gewährt Ihnen folgende Rechte:" }),
|
|
10892
10942
|
/* @__PURE__ */ x("ul", { children: [
|
|
@@ -10911,7 +10961,7 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
10911
10961
|
t,
|
|
10912
10962
|
"."
|
|
10913
10963
|
] })
|
|
10914
|
-
] }),
|
|
10964
|
+
] }), ep = {
|
|
10915
10965
|
eidotter: { displayName: "eiDotter" },
|
|
10916
10966
|
spacewar: { displayName: "Spacewar!" },
|
|
10917
10967
|
rizomorf: { displayName: "rizomorf" },
|
|
@@ -10925,7 +10975,7 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
10925
10975
|
displayName: "dmnc.tech",
|
|
10926
10976
|
url: "https://dmnc.tech"
|
|
10927
10977
|
}
|
|
10928
|
-
},
|
|
10978
|
+
}, tp = {
|
|
10929
10979
|
Alert: {
|
|
10930
10980
|
origin: "eidotter",
|
|
10931
10981
|
consumers: ["rizomorf", "steuerdash"],
|
|
@@ -11473,21 +11523,21 @@ var Ff = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
11473
11523
|
}]
|
|
11474
11524
|
}
|
|
11475
11525
|
};
|
|
11476
|
-
function
|
|
11477
|
-
return
|
|
11526
|
+
function np(e) {
|
|
11527
|
+
return tp[e];
|
|
11478
11528
|
}
|
|
11479
|
-
function
|
|
11480
|
-
return Object.entries(
|
|
11529
|
+
function rp(e) {
|
|
11530
|
+
return Object.entries(tp).filter(([, t]) => t.origin === e).map(([e]) => e);
|
|
11481
11531
|
}
|
|
11482
|
-
function
|
|
11483
|
-
return Object.entries(
|
|
11532
|
+
function ip(e) {
|
|
11533
|
+
return Object.entries(tp).filter(([, t]) => t.consumers.includes(e)).map(([e]) => e);
|
|
11484
11534
|
}
|
|
11485
|
-
function
|
|
11486
|
-
let n =
|
|
11535
|
+
function ap(e, t) {
|
|
11536
|
+
let n = tp[e];
|
|
11487
11537
|
return n?.variants ? Object.entries(n.variants).filter(([, e]) => e.usedBy?.includes(t)).map(([e]) => e) : [];
|
|
11488
11538
|
}
|
|
11489
|
-
function
|
|
11490
|
-
let t =
|
|
11539
|
+
function op(e) {
|
|
11540
|
+
let t = tp[e];
|
|
11491
11541
|
if (!t?.variants) return {};
|
|
11492
11542
|
let n = {};
|
|
11493
11543
|
for (let [e, r] of Object.entries(t.variants)) n[e] = r.usedBy ?? [];
|
|
@@ -11495,6 +11545,6 @@ function np(e) {
|
|
|
11495
11545
|
}
|
|
11496
11546
|
//#endregion
|
|
11497
11547
|
//#region src/index.ts
|
|
11498
|
-
var
|
|
11548
|
+
var sp = "0.30.0";
|
|
11499
11549
|
//#endregion
|
|
11500
|
-
export {
|
|
11550
|
+
export { jf as AIText, ou as AccordionFill, Hf as AddressBlock, iu as Alert, Au as Badge, Af as BrandLockup, Nu as Breadcrumb, lu as Button, du as Card, pf as ChatContainer, df as ChatHistory, ff as ChatInput, uf as ChatMessage, fu as Checkbox, Df as CmdPalette, pu as CommandPrompt, Jf as DatenschutzController, Qf as DatenschutzEncryption, Zf as DatenschutzFonts, Yf as DatenschutzHosting, Xf as DatenschutzPostHog, $f as DatenschutzRights, of as DesktopNav, Cf as DosFigure, Qd as FilterBar, hf as Footer, _f as Header, Zl as Icon, Uf as ImpressumAddress, Wf as ImpressumContact, Kf as ImpressumLiabilityContent, qf as ImpressumLiabilityLinks, Gf as ImpressumResponsible, ef as InlineExpand, Sf as InlineLink, Cu as Input, zf as LegalPage, Cd as Lightbox, Of as Logo, sf as MobileNav, Hd as Modal, cf as Nav, yf as Notification, xu as Progress, Ru as RetroEffects, au as Section, nf as Separator, Rf as Skeleton, Xd as Stat, ju as Switch, Du as Tabs, Fd as Tag, Ld as TagGroup, wu as Terminal, rf as TextScramble, Vd as TimelineContainer, Uu as TimelineNode, kf as Wordmark, Wu as ZOOM_LEVELS, tp as componentRegistry, mf as defaultLegalLinks, np as getComponentMeta, ip as getComponentsByConsumer, rp as getComponentsByOrigin, op as getVariantConsumerMap, ap as getVariantsUsedBy, $d as isSafeUrl, ep as projects, Gd as useTextScramble, sp as version };
|