eidotter 0.41.0 → 0.41.1
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/README.md +2 -2
- package/dist/components/DecayStrip/components/DecayStrip.js +1 -6
- package/dist/components/DosDialog/components/DosDialog.d.ts +13 -0
- package/dist/components/DosDialog/components/DosDialog.js +13 -4
- package/dist/components/Gauge/components/Gauge.js +1 -7
- package/dist/components/Icon/components/Icon.d.ts +7 -0
- package/dist/components/Icon/components/Icon.js +2 -2
- package/dist/components/IconButton/components/IconButton.js +1 -1
- package/dist/components/RangeBar/components/RangeBar.js +8 -5
- package/dist/components/SeriesBars/components/SeriesBars.d.ts +9 -1
- package/dist/components/SeriesBars/components/SeriesBars.js +15 -4
- package/dist/components/Stat/components/Stat.js +1 -1
- package/dist/components/VitalsStrip/components/VitalsStrip.js +2 -3
- package/dist/components/registry.js +9 -0
- package/dist/eidotter.css +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +861 -768
- package/dist/index.umd.js +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +33 -1
- package/dist/utils/dosFontSizes.d.ts +2 -0
- package/dist/utils/dosFontSizes.js +17 -0
- package/llms.txt +1 -1
- package/migrations/0.41.0.md +3 -1
- package/package.json +2 -2
- package/src/styles/dos-utilities.css +6 -3
- package/src/styles/shadcn.css +28 -27
- package/src/styles/tokens.css +1 -1
package/dist/index.es.js
CHANGED
|
@@ -9479,7 +9479,7 @@ var _f = /*#__PURE__*/ r({}), vf = /*#__PURE__*/ r(null), yf = /*#__PURE__*/ Wn(
|
|
|
9479
9479
|
}, Fp = (e, t, n = !1) => {
|
|
9480
9480
|
let r = tp.exec(e);
|
|
9481
9481
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
9482
|
-
}, Ip = (e) => e === "position" || e === "percentage", Lp = (e) => e === "image" || e === "url", Rp = (e) => e === "length" || e === "size" || e === "bg-size", zp = (e) => e === "length", Bp = (e) => e === "number", Vp = (e) => e === "family-name", Hp = (e) => e === "number" || e === "weight", Up = (e) => e === "shadow", Wp =
|
|
9482
|
+
}, Ip = (e) => e === "position" || e === "percentage", Lp = (e) => e === "image" || e === "url", Rp = (e) => e === "length" || e === "size" || e === "bg-size", zp = (e) => e === "length", Bp = (e) => e === "number", Vp = (e) => e === "family-name", Hp = (e) => e === "number" || e === "weight", Up = (e) => e === "shadow", Wp = () => {
|
|
9483
9483
|
let e = $f("color"), t = $f("font"), n = $f("text"), r = $f("font-weight"), i = $f("tracking"), a = $f("leading"), o = $f("breakpoint"), s = $f("container"), c = $f("spacing"), l = $f("radius"), u = $f("shadow"), d = $f("inset-shadow"), f = $f("text-shadow"), p = $f("drop-shadow"), m = $f("blur"), h = $f("perspective"), g = $f("aspect"), _ = $f("ease"), v = $f("animate"), y = () => [
|
|
9484
9484
|
"auto",
|
|
9485
9485
|
"avoid",
|
|
@@ -10954,44 +10954,70 @@ var _f = /*#__PURE__*/ r({}), vf = /*#__PURE__*/ r(null), yf = /*#__PURE__*/ Wn(
|
|
|
10954
10954
|
"selection"
|
|
10955
10955
|
]
|
|
10956
10956
|
};
|
|
10957
|
-
})
|
|
10958
|
-
|
|
10959
|
-
|
|
10957
|
+
}, Gp = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Kp(e, "cacheSize", t), Kp(e, "prefix", n), Kp(e, "experimentalParseClassName", r), qp(e.theme, a.theme), qp(e.classGroups, a.classGroups), qp(e.conflictingClassGroups, a.conflictingClassGroups), qp(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Kp(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Kp(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Jp(e.theme, i.theme), Jp(e.classGroups, i.classGroups), Jp(e.conflictingClassGroups, i.conflictingClassGroups), Jp(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Yp(e, i, "postfixLookupClassGroups"), Yp(e, i, "orderSensitiveModifiers"), e), Kp = (e, t, n) => {
|
|
10958
|
+
n !== void 0 && (e[t] = n);
|
|
10959
|
+
}, qp = (e, t) => {
|
|
10960
|
+
if (t) for (let n in t) Kp(e, n, t[n]);
|
|
10961
|
+
}, Jp = (e, t) => {
|
|
10962
|
+
if (t) for (let n in t) Yp(e, t, n);
|
|
10963
|
+
}, Yp = (e, t, n) => {
|
|
10964
|
+
let r = t[n];
|
|
10965
|
+
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
|
|
10966
|
+
}, Xp = ((e, ...t) => typeof e == "function" ? Zf(Wp, e, ...t) : Zf(() => Gp(Wp(), e), ...t))({ extend: {
|
|
10967
|
+
classGroups: { "dos-font-size": [{ text: [
|
|
10968
|
+
"dos-text-base",
|
|
10969
|
+
"dos-text-xs",
|
|
10970
|
+
"dos-text-sm",
|
|
10971
|
+
"dos-text-md",
|
|
10972
|
+
"dos-text-lg",
|
|
10973
|
+
"dos-text-xl",
|
|
10974
|
+
"dos-display-xs",
|
|
10975
|
+
"dos-display-sm",
|
|
10976
|
+
"dos-display-md",
|
|
10977
|
+
"dos-display-lg",
|
|
10978
|
+
"dos-display-xl",
|
|
10979
|
+
"dos-display-2xl"
|
|
10980
|
+
] }] },
|
|
10981
|
+
conflictingClassGroups: {
|
|
10982
|
+
"dos-font-size": ["font-size"],
|
|
10983
|
+
"font-size": ["dos-font-size"]
|
|
10984
|
+
}
|
|
10985
|
+
} });
|
|
10960
10986
|
function $(...e) {
|
|
10961
|
-
return
|
|
10987
|
+
return Xp(e.filter(Boolean));
|
|
10962
10988
|
}
|
|
10963
10989
|
//#endregion
|
|
10964
10990
|
//#region node_modules/pixelarticons/react/InfoBox.js
|
|
10965
|
-
var
|
|
10991
|
+
var Zp = (t) => e.createElement("svg", Object.assign({
|
|
10966
10992
|
viewBox: "0 0 24 24",
|
|
10967
10993
|
width: "24",
|
|
10968
10994
|
height: "24",
|
|
10969
10995
|
fill: "currentColor",
|
|
10970
10996
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10971
|
-
}, t), e.createElement("path", { d: "M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z" })),
|
|
10997
|
+
}, t), e.createElement("path", { d: "M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z" })), Qp = (t) => e.createElement("svg", Object.assign({
|
|
10972
10998
|
viewBox: "0 0 24 24",
|
|
10973
10999
|
width: "24",
|
|
10974
11000
|
height: "24",
|
|
10975
11001
|
fill: "currentColor",
|
|
10976
11002
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10977
|
-
}, t), e.createElement("path", { d: "M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z" })),
|
|
11003
|
+
}, t), e.createElement("path", { d: "M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z" })), $p = (t) => e.createElement("svg", Object.assign({
|
|
10978
11004
|
viewBox: "0 0 24 24",
|
|
10979
11005
|
width: "24",
|
|
10980
11006
|
height: "24",
|
|
10981
11007
|
fill: "currentColor",
|
|
10982
11008
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10983
|
-
}, t), e.createElement("path", { d: "M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z" })),
|
|
11009
|
+
}, t), e.createElement("path", { d: "M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z" })), em = (t) => e.createElement("svg", Object.assign({
|
|
10984
11010
|
viewBox: "0 0 24 24",
|
|
10985
11011
|
width: "24",
|
|
10986
11012
|
height: "24",
|
|
10987
11013
|
fill: "currentColor",
|
|
10988
11014
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10989
|
-
}, t), e.createElement("path", { d: "M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z" })),
|
|
10990
|
-
Info:
|
|
10991
|
-
Warning:
|
|
10992
|
-
Error:
|
|
10993
|
-
Done:
|
|
10994
|
-
Check:
|
|
11015
|
+
}, t), e.createElement("path", { d: "M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z" })), tm = {
|
|
11016
|
+
Info: Zp,
|
|
11017
|
+
Warning: Qp,
|
|
11018
|
+
Error: $p,
|
|
11019
|
+
Done: em,
|
|
11020
|
+
Check: em,
|
|
10995
11021
|
Close: (e) => /* @__PURE__ */ x("svg", {
|
|
10996
11022
|
viewBox: "0 0 24 24",
|
|
10997
11023
|
width: "24",
|
|
@@ -11058,33 +11084,34 @@ var Gp = (t) => e.createElement("svg", Object.assign({
|
|
|
11058
11084
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11059
11085
|
}, t), e.createElement("path", { d: "M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z" }))
|
|
11060
11086
|
};
|
|
11061
|
-
function
|
|
11062
|
-
return e in
|
|
11087
|
+
function nm(e) {
|
|
11088
|
+
return e in tm;
|
|
11063
11089
|
}
|
|
11064
|
-
var
|
|
11090
|
+
var rm = {
|
|
11065
11091
|
L: 56,
|
|
11066
11092
|
S: 24
|
|
11067
|
-
},
|
|
11068
|
-
let
|
|
11069
|
-
if (!
|
|
11070
|
-
let
|
|
11093
|
+
}, im = ({ name: e, size: t = "L", className: n = "", onClick: r, color: i, role: a, "aria-label": o, decorative: s = !1 }) => {
|
|
11094
|
+
let c = tm[e];
|
|
11095
|
+
if (!c) return null;
|
|
11096
|
+
let l = rm[t], u = a ?? "img", d = a === "button", f = d ? (e) => {
|
|
11071
11097
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), r?.());
|
|
11072
11098
|
} : void 0;
|
|
11073
11099
|
return /* @__PURE__ */ x("span", {
|
|
11074
|
-
className: $("icon",
|
|
11100
|
+
className: $("icon", d && "icon--button", n),
|
|
11075
11101
|
onClick: r,
|
|
11076
|
-
onKeyDown:
|
|
11077
|
-
role:
|
|
11078
|
-
tabIndex:
|
|
11079
|
-
"aria-label": o || `${e} icon`,
|
|
11102
|
+
onKeyDown: f,
|
|
11103
|
+
role: s ? void 0 : u,
|
|
11104
|
+
tabIndex: d ? 0 : void 0,
|
|
11105
|
+
"aria-label": s ? void 0 : o || `${e} icon`,
|
|
11106
|
+
"aria-hidden": s ? "true" : void 0,
|
|
11080
11107
|
style: i ? { color: i } : void 0,
|
|
11081
|
-
children: /* @__PURE__ */ x(
|
|
11082
|
-
width:
|
|
11083
|
-
height:
|
|
11108
|
+
children: /* @__PURE__ */ x(c, {
|
|
11109
|
+
width: l,
|
|
11110
|
+
height: l,
|
|
11084
11111
|
className: "icon__svg"
|
|
11085
11112
|
})
|
|
11086
11113
|
});
|
|
11087
|
-
},
|
|
11114
|
+
}, am = i(({ icon: e, label: t, size: n = "md", variant: r = "outline", isDisabled: i, onPress: a, excludeFromTabOrder: o, className: s }, c) => /* @__PURE__ */ x(pi, {
|
|
11088
11115
|
ref: c,
|
|
11089
11116
|
"aria-label": t,
|
|
11090
11117
|
isDisabled: i,
|
|
@@ -11094,27 +11121,28 @@ var Zp = {
|
|
|
11094
11121
|
children: /* @__PURE__ */ x("span", {
|
|
11095
11122
|
className: "eidotter-icon-button__glyph",
|
|
11096
11123
|
"aria-hidden": "true",
|
|
11097
|
-
children: /* @__PURE__ */ x(
|
|
11124
|
+
children: /* @__PURE__ */ x(im, {
|
|
11098
11125
|
name: e,
|
|
11099
|
-
size: "S"
|
|
11126
|
+
size: "S",
|
|
11127
|
+
decorative: !0
|
|
11100
11128
|
})
|
|
11101
11129
|
})
|
|
11102
11130
|
}));
|
|
11103
|
-
|
|
11131
|
+
am.displayName = "IconButton";
|
|
11104
11132
|
//#endregion
|
|
11105
11133
|
//#region src/utils/prefersReducedMotion.ts
|
|
11106
|
-
function
|
|
11134
|
+
function om() {
|
|
11107
11135
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
11108
11136
|
}
|
|
11109
11137
|
//#endregion
|
|
11110
11138
|
//#region src/hooks/useAnimatedDismiss.ts
|
|
11111
|
-
function
|
|
11139
|
+
function sm(e, t) {
|
|
11112
11140
|
let [n, r] = m(!1), i = p(!1);
|
|
11113
11141
|
return {
|
|
11114
11142
|
isClosing: n,
|
|
11115
11143
|
triggerClose: o(() => {
|
|
11116
11144
|
if (!(i.current || !t)) {
|
|
11117
|
-
if (
|
|
11145
|
+
if (om()) {
|
|
11118
11146
|
t();
|
|
11119
11147
|
return;
|
|
11120
11148
|
}
|
|
@@ -11128,14 +11156,14 @@ function tm(e, t) {
|
|
|
11128
11156
|
}
|
|
11129
11157
|
//#endregion
|
|
11130
11158
|
//#region src/components/Alert/components/Alert.tsx
|
|
11131
|
-
var
|
|
11159
|
+
var cm = {
|
|
11132
11160
|
info: "default",
|
|
11133
11161
|
success: "success",
|
|
11134
11162
|
warning: "warning",
|
|
11135
11163
|
error: "error",
|
|
11136
11164
|
default: "default",
|
|
11137
11165
|
brand: "brand"
|
|
11138
|
-
},
|
|
11166
|
+
}, lm = {
|
|
11139
11167
|
brand: "Info",
|
|
11140
11168
|
gray: "Info",
|
|
11141
11169
|
default: "Info",
|
|
@@ -11143,14 +11171,14 @@ var nm = {
|
|
|
11143
11171
|
warning: "Warning",
|
|
11144
11172
|
success: "Done"
|
|
11145
11173
|
};
|
|
11146
|
-
function
|
|
11147
|
-
return e ||
|
|
11174
|
+
function um(e, t) {
|
|
11175
|
+
return e || cm[t || "info"] || "default";
|
|
11148
11176
|
}
|
|
11149
|
-
function
|
|
11177
|
+
function dm(e) {
|
|
11150
11178
|
return e === "full-width" ? "full-width" : "floating";
|
|
11151
11179
|
}
|
|
11152
|
-
var
|
|
11153
|
-
let u =
|
|
11180
|
+
var fm = i(({ color: e, size: t = "floating", type: n, title: r, children: i, actions: a, onClose: o, onClickHere: s, className: c }, l) => {
|
|
11181
|
+
let u = um(e, n), d = dm(t), { isClosing: f, triggerClose: p, handleAnimationEnd: m } = sm("eidotter-pop-out", o), h = [...a || [], ...s ? [{
|
|
11154
11182
|
label: "Click here",
|
|
11155
11183
|
onClick: s
|
|
11156
11184
|
}] : []];
|
|
@@ -11164,8 +11192,8 @@ var om = i(({ color: e, size: t = "floating", type: n, title: r, children: i, ac
|
|
|
11164
11192
|
children: [
|
|
11165
11193
|
/* @__PURE__ */ x("div", {
|
|
11166
11194
|
className: "eidotter-alert__icon",
|
|
11167
|
-
children: /* @__PURE__ */ x(
|
|
11168
|
-
name:
|
|
11195
|
+
children: /* @__PURE__ */ x(im, {
|
|
11196
|
+
name: lm[u] || "Info",
|
|
11169
11197
|
size: "S",
|
|
11170
11198
|
"aria-label": `${u} alert`
|
|
11171
11199
|
})
|
|
@@ -11190,7 +11218,7 @@ var om = i(({ color: e, size: t = "floating", type: n, title: r, children: i, ac
|
|
|
11190
11218
|
}, t))
|
|
11191
11219
|
})]
|
|
11192
11220
|
}),
|
|
11193
|
-
o && /* @__PURE__ */ x(
|
|
11221
|
+
o && /* @__PURE__ */ x(am, {
|
|
11194
11222
|
icon: "Close",
|
|
11195
11223
|
label: "Close alert",
|
|
11196
11224
|
className: "eidotter-alert__close",
|
|
@@ -11199,10 +11227,10 @@ var om = i(({ color: e, size: t = "floating", type: n, title: r, children: i, ac
|
|
|
11199
11227
|
]
|
|
11200
11228
|
});
|
|
11201
11229
|
});
|
|
11202
|
-
|
|
11230
|
+
fm.displayName = "Alert";
|
|
11203
11231
|
//#endregion
|
|
11204
11232
|
//#region src/components/Accordion/components/Section.tsx
|
|
11205
|
-
var
|
|
11233
|
+
var pm = ({ title: e, children: t, defaultExpanded: n = !1, isHovered: r = !1, isActive: i = !1, onToggle: a }) => {
|
|
11206
11234
|
let [o, s] = m(n);
|
|
11207
11235
|
return c(() => {
|
|
11208
11236
|
s(n);
|
|
@@ -11220,7 +11248,7 @@ var sm = ({ title: e, children: t, defaultExpanded: n = !1, isHovered: r = !1, i
|
|
|
11220
11248
|
children: e
|
|
11221
11249
|
}), /* @__PURE__ */ x("div", {
|
|
11222
11250
|
className: "eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",
|
|
11223
|
-
children: /* @__PURE__ */ x(
|
|
11251
|
+
children: /* @__PURE__ */ x(im, {
|
|
11224
11252
|
name: o ? "Chevron Up" : "Chevron Down",
|
|
11225
11253
|
size: "S"
|
|
11226
11254
|
})
|
|
@@ -11234,20 +11262,20 @@ var sm = ({ title: e, children: t, defaultExpanded: n = !1, isHovered: r = !1, i
|
|
|
11234
11262
|
})
|
|
11235
11263
|
})]
|
|
11236
11264
|
});
|
|
11237
|
-
},
|
|
11265
|
+
}, mm = ({ sections: e, defaultExpandedIndex: t = -1, className: n }) => {
|
|
11238
11266
|
let [, r] = m(t), i = (e, t) => {
|
|
11239
11267
|
r(t ? e : -1);
|
|
11240
11268
|
};
|
|
11241
11269
|
return /* @__PURE__ */ x("div", {
|
|
11242
11270
|
className: $("w-full flex flex-col items-stretch gap-2 text-left text-dos-text-base leading-6 font-dos text-dos-text-brand", "eidotter-accordion-fill", n),
|
|
11243
|
-
children: e.map((e, n) => /* @__PURE__ */ x(
|
|
11271
|
+
children: e.map((e, n) => /* @__PURE__ */ x(pm, {
|
|
11244
11272
|
title: e.title,
|
|
11245
11273
|
defaultExpanded: n === t,
|
|
11246
11274
|
onToggle: (e) => i(n, e),
|
|
11247
11275
|
children: e.content
|
|
11248
11276
|
}, n))
|
|
11249
11277
|
});
|
|
11250
|
-
},
|
|
11278
|
+
}, hm = {
|
|
11251
11279
|
xs: "text-dos-text-xs px-2 py-1 min-h-6 gap-1",
|
|
11252
11280
|
sm: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",
|
|
11253
11281
|
md: "text-dos-text-md px-3 py-2 min-h-8 gap-1.5",
|
|
@@ -11256,14 +11284,14 @@ var sm = ({ title: e, children: t, defaultExpanded: n = !1, isHovered: r = !1, i
|
|
|
11256
11284
|
small: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",
|
|
11257
11285
|
medium: "text-dos-text-md px-3 py-2 min-h-8 gap-1.5",
|
|
11258
11286
|
large: "text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"
|
|
11259
|
-
},
|
|
11287
|
+
}, gm = {
|
|
11260
11288
|
primary: "eidotter-btn--primary",
|
|
11261
11289
|
secondary: "eidotter-btn--secondary",
|
|
11262
11290
|
tertiary: "eidotter-btn--tertiary",
|
|
11263
11291
|
destructive: "eidotter-btn--destructive",
|
|
11264
11292
|
ghost: "eidotter-btn--ghost",
|
|
11265
11293
|
link: "eidotter-btn--link"
|
|
11266
|
-
},
|
|
11294
|
+
}, _m = i(({ variant: e = "primary", size: t = "md", type: n = "button", disabled: r = !1, loading: i = !1, children: a, onPress: o, onClick: s, className: c, fullWidth: l = !1, iconOnly: u = !1, ...d }, f) => {
|
|
11267
11295
|
let p = r || i;
|
|
11268
11296
|
return /* @__PURE__ */ S(pi, {
|
|
11269
11297
|
ref: f,
|
|
@@ -11279,7 +11307,7 @@ var sm = ({ title: e, children: t, defaultExpanded: n = !1, isHovered: r = !1, i
|
|
|
11279
11307
|
stopPropagation: () => {}
|
|
11280
11308
|
});
|
|
11281
11309
|
},
|
|
11282
|
-
className: $("eidotter-btn", "inline-flex items-center justify-center relative", "border-2 border-solid", "font-dos leading-none whitespace-nowrap select-none", "outline-none cursor-pointer", "transition-all duration-100 ease-linear",
|
|
11310
|
+
className: $("eidotter-btn", "inline-flex items-center justify-center relative", "border-2 border-solid", "font-dos leading-none whitespace-nowrap select-none", "outline-none cursor-pointer", "transition-all duration-100 ease-linear", hm[t] || hm.md, gm[e] || gm.primary, p && "opacity-50 cursor-not-allowed", i && "cursor-wait", l && "w-full", u && "aspect-square !px-0", "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus", c),
|
|
11283
11311
|
"data-loading": i || void 0,
|
|
11284
11312
|
"data-variant": e,
|
|
11285
11313
|
...d,
|
|
@@ -11293,10 +11321,10 @@ var sm = ({ title: e, children: t, defaultExpanded: n = !1, isHovered: r = !1, i
|
|
|
11293
11321
|
})]
|
|
11294
11322
|
});
|
|
11295
11323
|
});
|
|
11296
|
-
|
|
11324
|
+
_m.displayName = "Button";
|
|
11297
11325
|
//#endregion
|
|
11298
11326
|
//#region src/components/DosWindow/components/DosWindow.tsx
|
|
11299
|
-
var
|
|
11327
|
+
var vm = i(({ title: e, marker: t = !0, active: n = !0, controls: r, footer: i, className: a, children: o, ...s }, c) => {
|
|
11300
11328
|
let l = e != null && e !== !1 && e !== "", u = r != null && r !== !1;
|
|
11301
11329
|
return /* @__PURE__ */ S("div", {
|
|
11302
11330
|
ref: c,
|
|
@@ -11332,10 +11360,10 @@ var fm = i(({ title: e, marker: t = !0, active: n = !0, controls: r, footer: i,
|
|
|
11332
11360
|
]
|
|
11333
11361
|
});
|
|
11334
11362
|
});
|
|
11335
|
-
|
|
11363
|
+
vm.displayName = "DosWindow";
|
|
11336
11364
|
//#endregion
|
|
11337
11365
|
//#region src/components/Card/components/Card.tsx
|
|
11338
|
-
var
|
|
11366
|
+
var ym = {
|
|
11339
11367
|
default: "eidotter-card--default",
|
|
11340
11368
|
elevated: "eidotter-card--elevated",
|
|
11341
11369
|
bordered: "eidotter-card--bordered",
|
|
@@ -11343,18 +11371,18 @@ var pm = {
|
|
|
11343
11371
|
interactive: "eidotter-card--interactive",
|
|
11344
11372
|
minimal: "eidotter-card--minimal",
|
|
11345
11373
|
callout: "eidotter-card--callout"
|
|
11346
|
-
},
|
|
11374
|
+
}, bm = i(({ title: e, children: t, footer: n, variant: r = "default", className: i, ...a }, o) => /* @__PURE__ */ x(vm, {
|
|
11347
11375
|
ref: o,
|
|
11348
11376
|
title: e,
|
|
11349
11377
|
footer: n || void 0,
|
|
11350
|
-
className: $("font-dos text-dos-text-brand", "eidotter-card",
|
|
11378
|
+
className: $("font-dos text-dos-text-brand", "eidotter-card", ym[r] || ym.default, i),
|
|
11351
11379
|
...a,
|
|
11352
11380
|
children: t
|
|
11353
11381
|
}));
|
|
11354
|
-
|
|
11382
|
+
bm.displayName = "Card";
|
|
11355
11383
|
//#endregion
|
|
11356
11384
|
//#region src/components/Checkbox/components/Checkbox.tsx
|
|
11357
|
-
var
|
|
11385
|
+
var xm = i(({ checked: e, defaultChecked: t, onChange: n, indeterminate: r = !1, label: i, disabled: a = !1, size: o = "md", name: s, value: c, className: l, "aria-label": u, ...d }, f) => /* @__PURE__ */ x(sa, {
|
|
11358
11386
|
ref: f,
|
|
11359
11387
|
isSelected: e,
|
|
11360
11388
|
defaultSelected: t,
|
|
@@ -11375,10 +11403,10 @@ var hm = i(({ checked: e, defaultChecked: t, onChange: n, indeterminate: r = !1,
|
|
|
11375
11403
|
children: i
|
|
11376
11404
|
})] })
|
|
11377
11405
|
}));
|
|
11378
|
-
|
|
11406
|
+
xm.displayName = "Checkbox";
|
|
11379
11407
|
//#endregion
|
|
11380
11408
|
//#region src/components/CommandPrompt/components/CommandPrompt.tsx
|
|
11381
|
-
var
|
|
11409
|
+
var Sm = ({ prompt: e = "C:\\>", onCommand: t, autoFocus: n = !1, className: r = "", placeholder: i, disabled: a = !1 }) => {
|
|
11382
11410
|
let [o, s] = m(""), l = p(null);
|
|
11383
11411
|
return c(() => {
|
|
11384
11412
|
n && l.current && l.current.focus();
|
|
@@ -11417,41 +11445,41 @@ var gm = ({ prompt: e = "C:\\>", onCommand: t, autoFocus: n = !1, className: r =
|
|
|
11417
11445
|
})]
|
|
11418
11446
|
})]
|
|
11419
11447
|
});
|
|
11420
|
-
},
|
|
11448
|
+
}, Cm = "█", wm = "░", Tm = "▓", Em = "▒", Dm = {
|
|
11421
11449
|
sm: "text-dos-text-base",
|
|
11422
11450
|
md: "text-dos-text-sm",
|
|
11423
11451
|
lg: "text-dos-text-md",
|
|
11424
11452
|
small: "text-dos-text-base",
|
|
11425
11453
|
medium: "text-dos-text-sm",
|
|
11426
11454
|
large: "text-dos-text-md"
|
|
11427
|
-
},
|
|
11455
|
+
}, Om = {
|
|
11428
11456
|
default: "eidotter-progress--default",
|
|
11429
11457
|
success: "eidotter-progress--success",
|
|
11430
11458
|
warning: "eidotter-progress--warning",
|
|
11431
11459
|
error: "eidotter-progress--error"
|
|
11432
11460
|
};
|
|
11433
|
-
function
|
|
11461
|
+
function km(e, t, n) {
|
|
11434
11462
|
let r = t - e;
|
|
11435
11463
|
if (n === "gradient" && e > 0 && e < t) {
|
|
11436
|
-
let t = Math.min(2, r), n = r - t, i = (t >= 1 ?
|
|
11464
|
+
let t = Math.min(2, r), n = r - t, i = (t >= 1 ? Tm : "") + (t >= 2 ? Em : "");
|
|
11437
11465
|
return {
|
|
11438
|
-
filled:
|
|
11466
|
+
filled: Cm.repeat(e),
|
|
11439
11467
|
transition: i,
|
|
11440
|
-
empty:
|
|
11468
|
+
empty: wm.repeat(n)
|
|
11441
11469
|
};
|
|
11442
11470
|
}
|
|
11443
11471
|
return {
|
|
11444
|
-
filled:
|
|
11472
|
+
filled: Cm.repeat(e),
|
|
11445
11473
|
transition: "",
|
|
11446
|
-
empty:
|
|
11474
|
+
empty: wm.repeat(r)
|
|
11447
11475
|
};
|
|
11448
11476
|
}
|
|
11449
|
-
var
|
|
11450
|
-
let h = Math.min(80, Math.max(3, Math.floor(o))), g = Math.min(100, Math.max(0, e / t * 100)), _ = Math.round(g / 100 * h), v = $("inline-flex items-center gap-2 font-dos", "eidotter-progress",
|
|
11477
|
+
var Am = i(({ value: e = 0, max: t = 100, indeterminate: n = !1, variant: r = "default", size: i = "md", trackStyle: a = "block", blocks: o = 20, showLabel: s = !1, fullWidth: c = !1, glow: l = !1, valueText: u, className: d, "aria-label": f, ...p }, m) => {
|
|
11478
|
+
let h = Math.min(80, Math.max(3, Math.floor(o))), g = Math.min(100, Math.max(0, e / t * 100)), _ = Math.round(g / 100 * h), v = $("inline-flex items-center gap-2 font-dos", "eidotter-progress", Dm[i] || Dm.md, Om[r] || Om.default, l && "eidotter-progress--glow", c && "eidotter-progress--full-width", n && "eidotter-progress--indeterminate", a === "bordered" && "eidotter-progress--bordered", d), y = { "aria-label": f || `Progress: ${n ? "loading" : `${Math.round(g)}%`}` };
|
|
11451
11479
|
n || (y["aria-valuenow"] = e, y["aria-valuemin"] = 0, y["aria-valuemax"] = t), u && (y["aria-valuetext"] = u);
|
|
11452
11480
|
let b = a === "bordered", C = $("eidotter-progress__track", b && "eidotter-progress__track--borderless");
|
|
11453
11481
|
if (n) {
|
|
11454
|
-
let e =
|
|
11482
|
+
let e = wm.repeat(h);
|
|
11455
11483
|
return /* @__PURE__ */ S("div", {
|
|
11456
11484
|
ref: m,
|
|
11457
11485
|
className: v,
|
|
@@ -11473,9 +11501,9 @@ var wm = i(({ value: e = 0, max: t = 100, indeterminate: n = !1, variant: r = "d
|
|
|
11473
11501
|
}), /* @__PURE__ */ S("span", {
|
|
11474
11502
|
className: "eidotter-progress__scanner",
|
|
11475
11503
|
children: [
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11504
|
+
Tm,
|
|
11505
|
+
Cm,
|
|
11506
|
+
Tm
|
|
11479
11507
|
]
|
|
11480
11508
|
})]
|
|
11481
11509
|
}),
|
|
@@ -11490,7 +11518,7 @@ var wm = i(({ value: e = 0, max: t = 100, indeterminate: n = !1, variant: r = "d
|
|
|
11490
11518
|
})]
|
|
11491
11519
|
});
|
|
11492
11520
|
}
|
|
11493
|
-
let w =
|
|
11521
|
+
let w = Cm.repeat(h), T = wm.repeat(h), { transition: E } = km(_, h, a);
|
|
11494
11522
|
return /* @__PURE__ */ S("div", {
|
|
11495
11523
|
ref: m,
|
|
11496
11524
|
className: v,
|
|
@@ -11534,11 +11562,11 @@ var wm = i(({ value: e = 0, max: t = 100, indeterminate: n = !1, variant: r = "d
|
|
|
11534
11562
|
})]
|
|
11535
11563
|
});
|
|
11536
11564
|
});
|
|
11537
|
-
|
|
11565
|
+
Am.displayName = "Progress";
|
|
11538
11566
|
//#endregion
|
|
11539
11567
|
//#region src/components/ProgressRing/components/ProgressRing.tsx
|
|
11540
|
-
var
|
|
11541
|
-
let p = Math.max(1, Math.floor(i)), m =
|
|
11568
|
+
var jm = (e, t, n) => Math.min(n, Math.max(t, e)), Mm = i(({ value: e = 0, max: t = 100, size: n = 64, thickness: r = 8, segments: i = 16, color: a, showLabel: o = !1, glow: s = !1, decorative: c = !1, className: l, "aria-label": u, ...d }, f) => {
|
|
11569
|
+
let p = Math.max(1, Math.floor(i)), m = jm(t === 0 ? 0 : e / t, 0, 1), h = Math.floor(m * p), g = Math.round(h / p * 100), _ = (n - r) / 2, v = n / 2, y = n / 2, b = 2 * Math.PI * _, C = b / p, w = Math.max(2, C / 6), T = Math.max(.5, C - w), E = a ?? "currentColor", D = Array.from({ length: p }, (e, t) => {
|
|
11542
11570
|
let n = t < h;
|
|
11543
11571
|
return /* @__PURE__ */ x("circle", {
|
|
11544
11572
|
cx: v,
|
|
@@ -11584,43 +11612,43 @@ var Tm = (e, t, n) => Math.min(n, Math.max(t, e)), Em = i(({ value: e = 0, max:
|
|
|
11584
11612
|
})]
|
|
11585
11613
|
});
|
|
11586
11614
|
});
|
|
11587
|
-
|
|
11615
|
+
Mm.displayName = "ProgressRing";
|
|
11588
11616
|
//#endregion
|
|
11589
11617
|
//#region src/components/Skeleton/components/Skeleton.tsx
|
|
11590
|
-
var
|
|
11618
|
+
var Nm = "░░░░▒░░░░░░░▒░░░▒▒░░░░░░▒░░░░░░░▒░░░░▒░░", Pm = "▒▒▓▒▒▒▒▓▒▒▒▒▒▓▒▒▒▒▒▒▓▒▒▒▒▓▒▒▒▒▒▓▒▒▒▒▒▓▒", Fm = 6, Im = {
|
|
11591
11619
|
text: 3,
|
|
11592
11620
|
card: 3,
|
|
11593
11621
|
figure: 4,
|
|
11594
11622
|
timeline: 2
|
|
11595
|
-
},
|
|
11623
|
+
}, Lm = ({ dense: e = !1, width: t = "full" }) => /* @__PURE__ */ x("span", {
|
|
11596
11624
|
className: $("eidotter-skeleton__line", t === "short" && "eidotter-skeleton__line--short", t === "meta" && "eidotter-skeleton__line--meta"),
|
|
11597
|
-
children: (e ?
|
|
11625
|
+
children: (e ? Pm : Nm).repeat(Fm)
|
|
11598
11626
|
});
|
|
11599
|
-
function
|
|
11600
|
-
return Array.from({ length: e }, (r, i) => /* @__PURE__ */ x(
|
|
11627
|
+
function Rm(e, t = !1, n = !0) {
|
|
11628
|
+
return Array.from({ length: e }, (r, i) => /* @__PURE__ */ x(Lm, {
|
|
11601
11629
|
dense: t,
|
|
11602
11630
|
width: n && i === e - 1 && e > 1 ? "short" : "full"
|
|
11603
11631
|
}, i));
|
|
11604
11632
|
}
|
|
11605
|
-
var
|
|
11606
|
-
let a = Math.max(1, t ??
|
|
11633
|
+
var zm = ({ variant: e = "text", lines: t, animated: n = !0, label: r = "Loading", className: i }) => {
|
|
11634
|
+
let a = Math.max(1, t ?? Im[e]), o;
|
|
11607
11635
|
switch (e) {
|
|
11608
11636
|
case "card":
|
|
11609
|
-
o = /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(
|
|
11637
|
+
o = /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Lm, {
|
|
11610
11638
|
dense: !0,
|
|
11611
11639
|
width: "meta"
|
|
11612
|
-
}),
|
|
11640
|
+
}), Rm(a)] });
|
|
11613
11641
|
break;
|
|
11614
11642
|
case "figure":
|
|
11615
|
-
o =
|
|
11643
|
+
o = Rm(a, !0, !1);
|
|
11616
11644
|
break;
|
|
11617
11645
|
case "timeline":
|
|
11618
11646
|
o = /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", { className: "eidotter-skeleton__marker border-2 border-dos-border-default" }), /* @__PURE__ */ S("span", {
|
|
11619
11647
|
className: "eidotter-skeleton__entry",
|
|
11620
|
-
children: [/* @__PURE__ */ x(
|
|
11648
|
+
children: [/* @__PURE__ */ x(Lm, { width: "meta" }), Rm(a)]
|
|
11621
11649
|
})] });
|
|
11622
11650
|
break;
|
|
11623
|
-
default: o =
|
|
11651
|
+
default: o = Rm(a);
|
|
11624
11652
|
}
|
|
11625
11653
|
return /* @__PURE__ */ x("div", {
|
|
11626
11654
|
role: "status",
|
|
@@ -11633,10 +11661,10 @@ var Nm = ({ variant: e = "text", lines: t, animated: n = !0, label: r = "Loading
|
|
|
11633
11661
|
})
|
|
11634
11662
|
});
|
|
11635
11663
|
};
|
|
11636
|
-
|
|
11664
|
+
zm.displayName = "Skeleton";
|
|
11637
11665
|
//#endregion
|
|
11638
11666
|
//#region src/utils/health/labels.ts
|
|
11639
|
-
var
|
|
11667
|
+
var Bm = {
|
|
11640
11668
|
unknown: "unknown",
|
|
11641
11669
|
stale: "stale",
|
|
11642
11670
|
offline: "offline",
|
|
@@ -11646,22 +11674,22 @@ var Pm = {
|
|
|
11646
11674
|
estimated: "estimated",
|
|
11647
11675
|
modelled: "modelled"
|
|
11648
11676
|
};
|
|
11649
|
-
function
|
|
11677
|
+
function Vm(e) {
|
|
11650
11678
|
return {
|
|
11651
|
-
...
|
|
11679
|
+
...Bm,
|
|
11652
11680
|
...e
|
|
11653
11681
|
};
|
|
11654
11682
|
}
|
|
11655
|
-
function
|
|
11683
|
+
function Hm(e, t) {
|
|
11656
11684
|
return t === "estimated" || t === "modelled" ? e[t] : null;
|
|
11657
11685
|
}
|
|
11658
|
-
var
|
|
11659
|
-
function
|
|
11686
|
+
var Um = "−";
|
|
11687
|
+
function Wm(e) {
|
|
11660
11688
|
return typeof e == "number" && Number.isFinite(e);
|
|
11661
11689
|
}
|
|
11662
|
-
var
|
|
11663
|
-
function
|
|
11664
|
-
let i = `${e}|${t ?? ""}|${n}|${r}|${n ? "percent" : ""}`, a =
|
|
11690
|
+
var Gm = 64, Km = /* @__PURE__ */ new Map();
|
|
11691
|
+
function qm(e, t, n, r) {
|
|
11692
|
+
let i = `${e}|${t ?? ""}|${n}|${r}|${n ? "percent" : ""}`, a = Km.get(i);
|
|
11665
11693
|
return a || (a = new Intl.NumberFormat(e, {
|
|
11666
11694
|
...t !== void 0 && {
|
|
11667
11695
|
minimumFractionDigits: t,
|
|
@@ -11672,33 +11700,33 @@ function Vm(e, t, n, r) {
|
|
|
11672
11700
|
unit: "percent"
|
|
11673
11701
|
},
|
|
11674
11702
|
...r && { signDisplay: "exceptZero" }
|
|
11675
|
-
}),
|
|
11703
|
+
}), Km.size >= Gm && Km.clear(), Km.set(i, a)), a;
|
|
11676
11704
|
}
|
|
11677
|
-
function
|
|
11678
|
-
if (!
|
|
11705
|
+
function Jm(e, t = {}) {
|
|
11706
|
+
if (!Wm(e)) return {
|
|
11679
11707
|
text: "--",
|
|
11680
11708
|
status: "unknown"
|
|
11681
11709
|
};
|
|
11682
|
-
let { locale: n = "en", digits: r, percent: i, max: a, unit: o, signed: s } = t, c = (e, t) =>
|
|
11683
|
-
return
|
|
11710
|
+
let { locale: n = "en", digits: r, percent: i, max: a, unit: o, signed: s } = t, c = (e, t) => qm(n, r, !!i, t).format(e).replace("-", Um), l = c(e, !!s);
|
|
11711
|
+
return Wm(a) && (l += `/${c(a, !1)}`), o && (l += ` ${o}`), {
|
|
11684
11712
|
text: l,
|
|
11685
11713
|
status: "ok"
|
|
11686
11714
|
};
|
|
11687
11715
|
}
|
|
11688
11716
|
//#endregion
|
|
11689
11717
|
//#region src/utils/health/resolveBand.ts
|
|
11690
|
-
var
|
|
11691
|
-
function
|
|
11718
|
+
var Ym = /* @__PURE__ */ new Set();
|
|
11719
|
+
function Xm(e, t) {
|
|
11692
11720
|
if (!(process.env.NODE_ENV === "production" || !t)) {
|
|
11693
11721
|
for (let n of e) if (n.unit && n.unit !== t) {
|
|
11694
11722
|
let e = `${n.unit}|${t}`;
|
|
11695
|
-
if (
|
|
11696
|
-
|
|
11723
|
+
if (Ym.has(e)) continue;
|
|
11724
|
+
Ym.add(e), console.warn(`[eidotter] Band unit "${n.unit}" differs from value unit "${t}".`);
|
|
11697
11725
|
}
|
|
11698
11726
|
}
|
|
11699
11727
|
}
|
|
11700
|
-
function
|
|
11701
|
-
if (!t || t.length === 0 || (
|
|
11728
|
+
function Zm(e, t, n) {
|
|
11729
|
+
if (!t || t.length === 0 || (Xm(t, n), !Wm(e))) return { tone: "neutral" };
|
|
11702
11730
|
let r = t.find((t) => e >= t.from && e < t.to);
|
|
11703
11731
|
return r ? {
|
|
11704
11732
|
tone: r.tone,
|
|
@@ -11708,46 +11736,46 @@ function Gm(e, t, n) {
|
|
|
11708
11736
|
}
|
|
11709
11737
|
//#endregion
|
|
11710
11738
|
//#region src/components/Gauge/components/Gauge.tsx
|
|
11711
|
-
var
|
|
11739
|
+
var Qm = {
|
|
11712
11740
|
sm: "eidotter-gauge--sm text-dos-text-xs",
|
|
11713
11741
|
md: "eidotter-gauge--md text-dos-text-sm",
|
|
11714
11742
|
lg: "eidotter-gauge--lg text-dos-text-md"
|
|
11715
|
-
},
|
|
11743
|
+
}, $m = {
|
|
11716
11744
|
sm: "text-dos-text-sm",
|
|
11717
11745
|
md: "text-dos-display-xs",
|
|
11718
11746
|
lg: "text-dos-display-sm"
|
|
11719
|
-
},
|
|
11747
|
+
}, eh = {
|
|
11720
11748
|
sm: 72,
|
|
11721
11749
|
md: 104,
|
|
11722
11750
|
lg: 136
|
|
11723
11751
|
};
|
|
11724
|
-
function
|
|
11752
|
+
function th(e) {
|
|
11725
11753
|
let t = e.indexOf(" ");
|
|
11726
11754
|
return t > 0 ? [e.slice(0, t), e.slice(t + 1)] : [e, null];
|
|
11727
11755
|
}
|
|
11728
|
-
var
|
|
11756
|
+
var nh = {
|
|
11729
11757
|
neutral: "eidotter-tone--neutral",
|
|
11730
11758
|
info: "eidotter-tone--info",
|
|
11731
11759
|
success: "eidotter-tone--success",
|
|
11732
11760
|
warning: "eidotter-tone--warning",
|
|
11733
11761
|
critical: "eidotter-tone--critical"
|
|
11734
|
-
},
|
|
11762
|
+
}, rh = {
|
|
11735
11763
|
neutral: 16,
|
|
11736
11764
|
info: 12,
|
|
11737
11765
|
success: 16,
|
|
11738
11766
|
warning: 20,
|
|
11739
11767
|
critical: 24
|
|
11740
|
-
},
|
|
11768
|
+
}, ih = {
|
|
11741
11769
|
ok: "",
|
|
11742
11770
|
loading: "eidotter-gauge--loading",
|
|
11743
11771
|
empty: "eidotter-gauge--empty",
|
|
11744
11772
|
stale: "eidotter-gauge--stale",
|
|
11745
11773
|
unknown: "eidotter-gauge--unknown"
|
|
11746
|
-
},
|
|
11747
|
-
let v =
|
|
11774
|
+
}, ah = i(({ label: e, shortLabel: t, value: n, max: r = 100, unit: i, secondary: a, size: o = "md", tone: s, status: c = "ok", provenance: l, bands: u, locale: d = "en", labels: f, glow: p = !1, className: m, "aria-label": h, ...g }, _) => {
|
|
11775
|
+
let v = Vm(f), y = c === "loading", C = !Wm(n) || !(r > 0) || !Number.isFinite(r) || c === "empty" || c === "unknown", w = C ? 0 : n / r * 100, T = !C && n > r, E = Zm(C ? null : n, u, i), D = s ?? E.tone, O = C ? "--" : Jm(w, {
|
|
11748
11776
|
locale: d,
|
|
11749
11777
|
percent: !0
|
|
11750
|
-
}).text, k = c === "stale" && !C, A = [C || y ? v.unknown : O, k && v.stale].filter(Boolean).join(", "), j = `${h ?? e}: ${A}`, M = o in
|
|
11778
|
+
}).text, k = c === "stale" && !C, A = [C || y ? v.unknown : O, k && v.stale].filter(Boolean).join(", "), j = `${h ?? e}: ${A}`, M = o in eh ? o : "md", N = eh[M], P = Math.round(N / 8), F = M === "sm", [I, L] = th(a ?? ""), ee = a && !C && !y ? /* @__PURE__ */ S("span", {
|
|
11751
11779
|
className: "eidotter-gauge__secondary text-dos-text-brand text-dos-text-xs tabular-nums leading-none",
|
|
11752
11780
|
children: [/* @__PURE__ */ x("span", {
|
|
11753
11781
|
className: "eidotter-gauge__secondary-head",
|
|
@@ -11756,10 +11784,10 @@ var Xm = {
|
|
|
11756
11784
|
className: "eidotter-gauge__secondary-tail",
|
|
11757
11785
|
children: L
|
|
11758
11786
|
})] })]
|
|
11759
|
-
}) : null, R =
|
|
11787
|
+
}) : null, R = Hm(v, l);
|
|
11760
11788
|
return /* @__PURE__ */ S("div", {
|
|
11761
11789
|
ref: _,
|
|
11762
|
-
className: $("eidotter-gauge eidotter-health flex flex-col items-center gap-1 w-full font-dos",
|
|
11790
|
+
className: $("eidotter-gauge eidotter-health flex flex-col items-center gap-1 w-full font-dos", Qm[o] ?? Qm.md, nh[D], ih[c], m),
|
|
11763
11791
|
style: { minWidth: N },
|
|
11764
11792
|
"data-size": M,
|
|
11765
11793
|
"data-has-short": t ? "true" : "false",
|
|
@@ -11774,13 +11802,13 @@ var Xm = {
|
|
|
11774
11802
|
children: [
|
|
11775
11803
|
/* @__PURE__ */ S("div", {
|
|
11776
11804
|
className: "relative inline-flex items-center justify-center",
|
|
11777
|
-
children: [/* @__PURE__ */ x(
|
|
11805
|
+
children: [/* @__PURE__ */ x(Mm, {
|
|
11778
11806
|
decorative: !0,
|
|
11779
11807
|
value: y ? 0 : w,
|
|
11780
11808
|
max: 100,
|
|
11781
11809
|
size: N,
|
|
11782
11810
|
thickness: P,
|
|
11783
|
-
segments:
|
|
11811
|
+
segments: rh[D] ?? 16,
|
|
11784
11812
|
color: D === "neutral" ? void 0 : "var(--eidotter-fill)",
|
|
11785
11813
|
glow: !1,
|
|
11786
11814
|
className: $(p && "eidotter-health-glow")
|
|
@@ -11790,17 +11818,13 @@ var Xm = {
|
|
|
11790
11818
|
children: y ? /* @__PURE__ */ x("div", {
|
|
11791
11819
|
"aria-hidden": "true",
|
|
11792
11820
|
className: "eidotter-gauge__skeleton w-full overflow-hidden",
|
|
11793
|
-
children: /* @__PURE__ */ x(
|
|
11821
|
+
children: /* @__PURE__ */ x(zm, {
|
|
11794
11822
|
variant: "figure",
|
|
11795
11823
|
lines: 2,
|
|
11796
11824
|
animated: !1
|
|
11797
11825
|
})
|
|
11798
11826
|
}) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
|
|
11799
|
-
className: [
|
|
11800
|
-
"eidotter-gauge__value text-dos-text-accent tabular-nums",
|
|
11801
|
-
qm[M],
|
|
11802
|
-
k && "opacity-60"
|
|
11803
|
-
].filter(Boolean).join(" "),
|
|
11827
|
+
className: $("eidotter-gauge__value text-dos-text-accent tabular-nums", $m[M], k && "opacity-60"),
|
|
11804
11828
|
children: O
|
|
11805
11829
|
}), !F && ee] })
|
|
11806
11830
|
})]
|
|
@@ -11847,51 +11871,51 @@ var Xm = {
|
|
|
11847
11871
|
]
|
|
11848
11872
|
});
|
|
11849
11873
|
});
|
|
11850
|
-
|
|
11874
|
+
ah.displayName = "Gauge";
|
|
11851
11875
|
//#endregion
|
|
11852
11876
|
//#region src/components/Meter/components/Meter.tsx
|
|
11853
|
-
var
|
|
11877
|
+
var oh = {
|
|
11854
11878
|
vertical: "eidotter-meter--vertical flex-col items-center gap-1",
|
|
11855
11879
|
horizontal: "eidotter-meter--horizontal flex-row items-center gap-2"
|
|
11856
|
-
},
|
|
11880
|
+
}, sh = {
|
|
11857
11881
|
xs: "eidotter-meter--xs text-dos-text-xs",
|
|
11858
11882
|
sm: "eidotter-meter--sm text-dos-text-xs",
|
|
11859
11883
|
md: "eidotter-meter--md text-dos-text-sm"
|
|
11860
|
-
},
|
|
11884
|
+
}, ch = {
|
|
11861
11885
|
neutral: "eidotter-tone--neutral",
|
|
11862
11886
|
info: "eidotter-tone--info",
|
|
11863
11887
|
success: "eidotter-tone--success",
|
|
11864
11888
|
warning: "eidotter-tone--warning",
|
|
11865
11889
|
critical: "eidotter-tone--critical"
|
|
11866
|
-
},
|
|
11890
|
+
}, lh = {
|
|
11867
11891
|
solid: "eidotter-fill--solid",
|
|
11868
11892
|
dither: "eidotter-fill--dither",
|
|
11869
11893
|
hatch: "eidotter-fill--hatch",
|
|
11870
11894
|
dotted: "eidotter-fill--dotted"
|
|
11871
|
-
},
|
|
11895
|
+
}, uh = {
|
|
11872
11896
|
neutral: "solid",
|
|
11873
11897
|
info: "solid",
|
|
11874
11898
|
success: "dither",
|
|
11875
11899
|
warning: "hatch",
|
|
11876
11900
|
critical: "dotted"
|
|
11877
|
-
},
|
|
11878
|
-
function
|
|
11901
|
+
}, dh = (e) => Math.round(e * 1e4) / 1e4, fh = (e) => Math.min(1, Math.max(0, e));
|
|
11902
|
+
function ph(e, t) {
|
|
11879
11903
|
if (e !== void 0) {
|
|
11880
11904
|
if (Array.isArray(e)) {
|
|
11881
|
-
let n =
|
|
11905
|
+
let n = fh(e[0] / t), r = fh(e[1] / t);
|
|
11882
11906
|
return {
|
|
11883
|
-
"--eidotter-meter-optimal-start": String(
|
|
11884
|
-
"--eidotter-meter-optimal-size": String(
|
|
11907
|
+
"--eidotter-meter-optimal-start": String(dh(n)),
|
|
11908
|
+
"--eidotter-meter-optimal-size": String(dh(r - n))
|
|
11885
11909
|
};
|
|
11886
11910
|
}
|
|
11887
|
-
return { "--eidotter-meter-optimal": String(
|
|
11911
|
+
return { "--eidotter-meter-optimal": String(dh(fh(e / t))) };
|
|
11888
11912
|
}
|
|
11889
11913
|
}
|
|
11890
|
-
var
|
|
11891
|
-
let y =
|
|
11914
|
+
var mh = i(({ label: e, shortLabel: t, value: n, max: r = 100, unit: i, optimal: a, orientation: o = "vertical", size: s = "sm", tone: c, pattern: l, segments: u, bands: d, locale: f = "en", labels: p, showValue: m = !0, className: h, "aria-label": g, ..._ }, v) => {
|
|
11915
|
+
let y = Vm(p), C = r > 0 && Number.isFinite(r), w = !Wm(n) || !C, T = w ? 0 : fh(n / r), E = !w && n > r, D = Zm(w ? null : n, d, i), O = c ?? D.tone, k = lh[l ?? uh[O] ?? "solid"] ?? lh.solid, A = w ? "--" : Jm(n, {
|
|
11892
11916
|
locale: f,
|
|
11893
11917
|
unit: i
|
|
11894
|
-
}).text, j = w ? "--" :
|
|
11918
|
+
}).text, j = w ? "--" : Jm(n, { locale: f }).text, M = w ? void 0 : i || void 0, N = w ? y.unknown : A, P = `${g ?? e}: ${N}`, F = Array.isArray(a), I = C ? ph(a, r) : void 0, L = u === void 0 ? 0 : Math.max(0, Math.floor(u)), ee = Math.round(T * L), R = m || E ? /* @__PURE__ */ S("div", {
|
|
11895
11919
|
className: "eidotter-meter__readout flex items-center gap-1 leading-none",
|
|
11896
11920
|
children: [m && /* @__PURE__ */ S("span", {
|
|
11897
11921
|
className: "eidotter-meter__value text-dos-text-accent tabular-nums text-center",
|
|
@@ -11915,7 +11939,7 @@ var ch = i(({ label: e, shortLabel: t, value: n, max: r = 100, unit: i, optimal:
|
|
|
11915
11939
|
children: Array.from({ length: L }, (e, t) => /* @__PURE__ */ x("span", { className: $("eidotter-meter__segment", t < ee && `eidotter-meter__segment--filled ${k}`) }, t))
|
|
11916
11940
|
}) : /* @__PURE__ */ x("div", {
|
|
11917
11941
|
className: $("eidotter-meter__fill", k),
|
|
11918
|
-
style: { "--eidotter-meter-fill": String(
|
|
11942
|
+
style: { "--eidotter-meter-fill": String(dh(T)) }
|
|
11919
11943
|
}), I && /* @__PURE__ */ x("div", {
|
|
11920
11944
|
"aria-hidden": "true",
|
|
11921
11945
|
className: $("eidotter-meter__optimal", F && "eidotter-meter__optimal--range"),
|
|
@@ -11948,7 +11972,7 @@ var ch = i(({ label: e, shortLabel: t, value: n, max: r = 100, unit: i, optimal:
|
|
|
11948
11972
|
});
|
|
11949
11973
|
return /* @__PURE__ */ x("div", {
|
|
11950
11974
|
ref: v,
|
|
11951
|
-
className: $("eidotter-meter eidotter-health flex font-dos",
|
|
11975
|
+
className: $("eidotter-meter eidotter-health flex font-dos", oh[o] ?? oh.vertical, sh[s] ?? sh.sm, ch[O], h),
|
|
11952
11976
|
"data-has-short": t ? "true" : "false",
|
|
11953
11977
|
role: "meter",
|
|
11954
11978
|
"aria-valuemin": 0,
|
|
@@ -11968,20 +11992,20 @@ var ch = i(({ label: e, shortLabel: t, value: n, max: r = 100, unit: i, optimal:
|
|
|
11968
11992
|
] })
|
|
11969
11993
|
});
|
|
11970
11994
|
});
|
|
11971
|
-
|
|
11995
|
+
mh.displayName = "Meter";
|
|
11972
11996
|
//#endregion
|
|
11973
11997
|
//#region src/components/EmptyState/components/EmptyState.tsx
|
|
11974
|
-
var
|
|
11998
|
+
var hh = {
|
|
11975
11999
|
default: "text-dos-text-primary",
|
|
11976
12000
|
error: "text-dos-error",
|
|
11977
12001
|
warning: "text-dos-warning",
|
|
11978
12002
|
info: "text-dos-info"
|
|
11979
|
-
},
|
|
12003
|
+
}, gh = ({ title: e, description: t, tone: n = "default", action: r, className: i }) => /* @__PURE__ */ S("div", {
|
|
11980
12004
|
className: $("eidotter-empty-state", "flex flex-col gap-2 py-6 text-center", i),
|
|
11981
12005
|
role: "status",
|
|
11982
12006
|
children: [
|
|
11983
12007
|
/* @__PURE__ */ x("p", {
|
|
11984
|
-
className: $("font-dos text-dos-text-sm",
|
|
12008
|
+
className: $("font-dos text-dos-text-sm", hh[n]),
|
|
11985
12009
|
children: e
|
|
11986
12010
|
}),
|
|
11987
12011
|
t && /* @__PURE__ */ x("p", {
|
|
@@ -11994,108 +12018,108 @@ var lh = {
|
|
|
11994
12018
|
})
|
|
11995
12019
|
]
|
|
11996
12020
|
});
|
|
11997
|
-
|
|
12021
|
+
gh.displayName = "EmptyState";
|
|
11998
12022
|
//#endregion
|
|
11999
12023
|
//#region src/components/Meter/components/MeterGroup.tsx
|
|
12000
|
-
var
|
|
12024
|
+
var _h = {
|
|
12001
12025
|
row: "eidotter-meter-group--row",
|
|
12002
12026
|
grid: "eidotter-meter-group--grid"
|
|
12003
|
-
},
|
|
12027
|
+
}, vh = i(({ layout: t = "row", columns: n, sharedMax: r = !1, items: i, children: a, labels: o, className: s, ...c }, l) => {
|
|
12004
12028
|
let u = e.Children.count(a) > 0;
|
|
12005
|
-
if ((!i || i.length === 0) && !u) return /* @__PURE__ */ x(
|
|
12006
|
-
title:
|
|
12029
|
+
if ((!i || i.length === 0) && !u) return /* @__PURE__ */ x(gh, {
|
|
12030
|
+
title: Vm(o).unknown,
|
|
12007
12031
|
className: s
|
|
12008
12032
|
});
|
|
12009
12033
|
let d = r && i ? Math.max(...i.map((e) => e.max ?? 100)) : void 0, f = t === "grid" && n !== void 0;
|
|
12010
12034
|
return /* @__PURE__ */ x("div", {
|
|
12011
12035
|
ref: l,
|
|
12012
12036
|
role: "group",
|
|
12013
|
-
className: $("eidotter-meter-group",
|
|
12037
|
+
className: $("eidotter-meter-group", _h[t] ?? _h.row, f && "eidotter-meter-group--columns", s),
|
|
12014
12038
|
style: f ? { "--eidotter-meter-columns": String(n) } : void 0,
|
|
12015
12039
|
...c,
|
|
12016
12040
|
children: /* @__PURE__ */ x("div", {
|
|
12017
12041
|
className: "eidotter-meter-group__layout",
|
|
12018
|
-
children: i ? i.map((e, t) => /* @__PURE__ */ x(
|
|
12042
|
+
children: i ? i.map((e, t) => /* @__PURE__ */ x(mh, {
|
|
12019
12043
|
...e,
|
|
12020
12044
|
...d !== void 0 && { max: d }
|
|
12021
12045
|
}, `${e.label}-${t}`)) : a
|
|
12022
12046
|
})
|
|
12023
12047
|
});
|
|
12024
12048
|
});
|
|
12025
|
-
|
|
12049
|
+
vh.displayName = "MeterGroup";
|
|
12026
12050
|
//#endregion
|
|
12027
12051
|
//#region src/components/RangeBar/components/RangeBar.tsx
|
|
12028
|
-
var
|
|
12052
|
+
var yh = {
|
|
12029
12053
|
vertical: "eidotter-range-bar--vertical",
|
|
12030
12054
|
horizontal: "eidotter-range-bar--horizontal"
|
|
12031
|
-
},
|
|
12055
|
+
}, bh = {
|
|
12032
12056
|
sm: "eidotter-range-bar--sm text-dos-text-xs",
|
|
12033
12057
|
md: "eidotter-range-bar--md text-dos-text-sm",
|
|
12034
12058
|
lg: "eidotter-range-bar--lg text-dos-text-md"
|
|
12035
|
-
},
|
|
12059
|
+
}, xh = {
|
|
12036
12060
|
"vertical-sm": "w-[1rem] h-[8rem]",
|
|
12037
12061
|
"vertical-md": "w-[1.5rem] h-[12rem]",
|
|
12038
12062
|
"vertical-lg": "w-[2rem] h-[16rem]",
|
|
12039
12063
|
"horizontal-sm": "h-[1rem] w-full",
|
|
12040
12064
|
"horizontal-md": "h-[1.5rem] w-full",
|
|
12041
12065
|
"horizontal-lg": "h-[2rem] w-full"
|
|
12042
|
-
},
|
|
12066
|
+
}, Sh = {
|
|
12043
12067
|
neutral: "eidotter-tone--neutral",
|
|
12044
12068
|
info: "eidotter-tone--info",
|
|
12045
12069
|
success: "eidotter-tone--success",
|
|
12046
12070
|
warning: "eidotter-tone--warning",
|
|
12047
12071
|
critical: "eidotter-tone--critical"
|
|
12048
|
-
},
|
|
12072
|
+
}, Ch = "var(--color-semantic-text-muted)", wh = "__eidotter-other", Th = {
|
|
12049
12073
|
neutral: "none",
|
|
12050
12074
|
info: "solid",
|
|
12051
12075
|
success: "dither",
|
|
12052
12076
|
warning: "hatch",
|
|
12053
12077
|
critical: "dotted"
|
|
12054
|
-
},
|
|
12078
|
+
}, Eh = {
|
|
12055
12079
|
none: "eidotter-fill--none",
|
|
12056
12080
|
solid: "eidotter-fill--solid",
|
|
12057
12081
|
dither: "eidotter-fill--dither",
|
|
12058
12082
|
hatch: "eidotter-fill--hatch",
|
|
12059
12083
|
dotted: "eidotter-fill--dotted"
|
|
12060
|
-
},
|
|
12061
|
-
let n =
|
|
12084
|
+
}, Dh = (e, t) => {
|
|
12085
|
+
let n = Sh[e.tone] ? e.tone : "neutral", r = e.pattern ?? Th[n];
|
|
12062
12086
|
return {
|
|
12063
12087
|
...e,
|
|
12064
12088
|
weight: t,
|
|
12065
12089
|
toneKey: n,
|
|
12066
|
-
patternClass:
|
|
12090
|
+
patternClass: Eh[r] ?? Eh.solid
|
|
12067
12091
|
};
|
|
12068
|
-
},
|
|
12069
|
-
let f =
|
|
12070
|
-
m < 100 && !e.some((e) => e.id ===
|
|
12071
|
-
id:
|
|
12092
|
+
}, Oh = (e) => Math.round(e * 1e6) / 1e6, kh = i(({ segments: e, orientation: t = "vertical", size: n = "md", showLegend: r = !0, target: i, minSegmentShare: a = .6, labelThreshold: o = 8, locale: s = "en", labels: c, className: l, ...u }, d) => {
|
|
12093
|
+
let f = Vm(c), p = e.map((e) => Number.isFinite(e.share) && e.share > 0 ? e.share : 0), m = Oh(p.reduce((e, t) => e + t, 0)), h = e.map((e, t) => Dh(e, Oh(m > 100 ? p[t] / m * 100 : p[t])));
|
|
12094
|
+
m < 100 && !e.some((e) => e.id === wh) && h.push(Dh({
|
|
12095
|
+
id: wh,
|
|
12072
12096
|
label: f.other,
|
|
12073
12097
|
share: 0,
|
|
12074
12098
|
tone: "neutral"
|
|
12075
|
-
},
|
|
12076
|
-
let g = (e) =>
|
|
12099
|
+
}, Oh(100 - m)));
|
|
12100
|
+
let g = (e) => Jm(e, {
|
|
12077
12101
|
locale: s,
|
|
12078
12102
|
percent: !0
|
|
12079
12103
|
}).text, _ = h.map((e) => `${e.label} ${g(e.weight)}`).join(", ");
|
|
12080
12104
|
return /* @__PURE__ */ S("div", {
|
|
12081
12105
|
ref: d,
|
|
12082
|
-
className: $("eidotter-range-bar eidotter-health flex gap-3 font-dos", t === "horizontal" ? "flex-col" : "flex-row items-start",
|
|
12106
|
+
className: $("eidotter-range-bar eidotter-health flex gap-3 font-dos", t === "horizontal" ? "flex-col" : "flex-row flex-wrap items-start", yh[t] ?? yh.vertical, bh[n] ?? bh.md, l),
|
|
12083
12107
|
...u,
|
|
12084
12108
|
children: [/* @__PURE__ */ S("div", {
|
|
12085
12109
|
className: $("eidotter-range-bar__track flex gap-1", t === "horizontal" ? "flex-col w-full" : "flex-row"),
|
|
12086
12110
|
children: [/* @__PURE__ */ x("div", {
|
|
12087
12111
|
role: "img",
|
|
12088
12112
|
"aria-label": _,
|
|
12089
|
-
className: $("eidotter-range-bar__bar flex shrink-0", t === "horizontal" ? "flex-row" : "flex-col",
|
|
12113
|
+
className: $("eidotter-range-bar__bar flex shrink-0", t === "horizontal" ? "flex-row" : "flex-col", xh[`${t}-${n}`] ?? xh["vertical-md"]),
|
|
12090
12114
|
children: h.map((e) => {
|
|
12091
12115
|
let n = i?.segmentId === e.id;
|
|
12092
12116
|
return /* @__PURE__ */ x("div", {
|
|
12093
12117
|
"data-segment-id": e.id,
|
|
12094
|
-
className: $("eidotter-range-bar__seg relative",
|
|
12118
|
+
className: $("eidotter-range-bar__seg relative", Sh[e.toneKey], e.patternClass),
|
|
12095
12119
|
style: {
|
|
12096
12120
|
flexGrow: Math.max(e.weight, a),
|
|
12097
12121
|
flexBasis: 0,
|
|
12098
|
-
...e.toneKey === "neutral" && { "--eidotter-fill":
|
|
12122
|
+
...e.toneKey === "neutral" && { "--eidotter-fill": Ch }
|
|
12099
12123
|
},
|
|
12100
12124
|
children: n && i && /* @__PURE__ */ x("span", {
|
|
12101
12125
|
"aria-hidden": "true",
|
|
@@ -12108,37 +12132,40 @@ var ph = {
|
|
|
12108
12132
|
"aria-hidden": "true",
|
|
12109
12133
|
className: $("eidotter-range-bar__lane flex tabular-nums text-dos-text-accent", t === "horizontal" ? "flex-row w-full" : "flex-col"),
|
|
12110
12134
|
children: h.map((e) => /* @__PURE__ */ S("div", {
|
|
12111
|
-
className: $("eidotter-range-bar__cell flex items-center justify-center gap-1 min-w-0", t === "horizontal" ? "flex-col" : "flex-row justify-start"),
|
|
12135
|
+
className: $("eidotter-range-bar__cell flex items-center justify-center gap-x-2 gap-y-1 min-w-0", t === "horizontal" ? "flex-col" : "flex-row justify-start"),
|
|
12112
12136
|
style: {
|
|
12113
12137
|
flexGrow: Math.max(e.weight, a),
|
|
12114
12138
|
flexBasis: 0
|
|
12115
12139
|
},
|
|
12116
|
-
children: [
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12140
|
+
children: [
|
|
12141
|
+
e.weight >= o && /* @__PURE__ */ x("span", {
|
|
12142
|
+
className: "eidotter-range-bar__pct",
|
|
12143
|
+
children: g(e.weight)
|
|
12144
|
+
}),
|
|
12145
|
+
e.weight >= o && i?.segmentId === e.id && " ",
|
|
12146
|
+
i?.segmentId === e.id && /* @__PURE__ */ x("span", {
|
|
12147
|
+
className: "eidotter-range-bar__target-label text-dos-text-brand whitespace-nowrap",
|
|
12148
|
+
children: i.label
|
|
12149
|
+
})
|
|
12150
|
+
]
|
|
12123
12151
|
}, e.id))
|
|
12124
12152
|
})]
|
|
12125
12153
|
}), r && /* @__PURE__ */ x("ul", {
|
|
12126
|
-
className: "eidotter-range-bar__legend flex flex-col gap-1 list-none p-0 m-0 min-w-0",
|
|
12154
|
+
className: "eidotter-range-bar__legend flex flex-col gap-1 list-none p-0 m-0 min-w-0 max-w-full",
|
|
12127
12155
|
children: h.map((e) => /* @__PURE__ */ S("li", {
|
|
12128
|
-
className: "eidotter-range-bar__row grid grid-cols-[
|
|
12156
|
+
className: "eidotter-range-bar__row grid grid-cols-[auto_minmax(0,1fr)_auto_auto] items-baseline gap-2",
|
|
12129
12157
|
children: [
|
|
12130
12158
|
/* @__PURE__ */ x("span", {
|
|
12131
12159
|
"aria-hidden": "true",
|
|
12132
|
-
className: $("eidotter-range-bar__swatch inline-block w-[0.75rem] h-[0.75rem]",
|
|
12133
|
-
style: { ...e.toneKey === "neutral" && { "--eidotter-fill":
|
|
12160
|
+
className: $("eidotter-range-bar__swatch inline-block w-[0.75rem] h-[0.75rem]", Sh[e.toneKey], e.patternClass),
|
|
12161
|
+
style: { ...e.toneKey === "neutral" && { "--eidotter-fill": Ch } }
|
|
12134
12162
|
}),
|
|
12135
12163
|
/* @__PURE__ */ S("span", {
|
|
12136
|
-
className: "text-dos-text-primary
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
})]
|
|
12164
|
+
className: "eidotter-range-bar__name text-dos-text-primary min-w-0 break-words",
|
|
12165
|
+
children: [e.label, e.bound && /* @__PURE__ */ S(b, { children: [" ", /* @__PURE__ */ x("span", {
|
|
12166
|
+
className: "eidotter-range-bar__bound text-dos-text-muted whitespace-nowrap",
|
|
12167
|
+
children: e.bound
|
|
12168
|
+
})] })]
|
|
12142
12169
|
}),
|
|
12143
12170
|
/* @__PURE__ */ x("span", {
|
|
12144
12171
|
className: "text-dos-text-accent tabular-nums",
|
|
@@ -12153,63 +12180,69 @@ var ph = {
|
|
|
12153
12180
|
})]
|
|
12154
12181
|
});
|
|
12155
12182
|
});
|
|
12156
|
-
|
|
12183
|
+
kh.displayName = "RangeBar";
|
|
12157
12184
|
//#endregion
|
|
12158
12185
|
//#region src/components/SeriesBars/components/SeriesBars.tsx
|
|
12159
|
-
var
|
|
12186
|
+
var Ah = {
|
|
12160
12187
|
sm: "eidotter-series-bars--sm text-dos-text-xs",
|
|
12161
12188
|
md: "eidotter-series-bars--md text-dos-text-sm",
|
|
12162
12189
|
lg: "eidotter-series-bars--lg text-dos-text-md"
|
|
12163
|
-
},
|
|
12190
|
+
}, jh = {
|
|
12164
12191
|
sm: "h-[6rem]",
|
|
12165
12192
|
md: "h-[10rem]",
|
|
12166
12193
|
lg: "h-[14rem]"
|
|
12167
|
-
},
|
|
12194
|
+
}, Mh = {
|
|
12168
12195
|
neutral: "eidotter-tone--neutral",
|
|
12169
12196
|
info: "eidotter-tone--info",
|
|
12170
12197
|
success: "eidotter-tone--success",
|
|
12171
12198
|
warning: "eidotter-tone--warning",
|
|
12172
12199
|
critical: "eidotter-tone--critical"
|
|
12173
|
-
},
|
|
12200
|
+
}, Nh = "var(--color-semantic-text-muted)", Ph = {
|
|
12174
12201
|
neutral: "eidotter-fill--none",
|
|
12175
12202
|
info: "eidotter-fill--solid",
|
|
12176
12203
|
success: "eidotter-fill--dither",
|
|
12177
12204
|
warning: "eidotter-fill--hatch",
|
|
12178
12205
|
critical: "eidotter-fill--dotted"
|
|
12179
|
-
},
|
|
12180
|
-
let
|
|
12206
|
+
}, Fh = i(({ points: e, max: t, goal: n, goalLabel: r, toneFor: i, tickEvery: a = 1, size: o = "md", locale: s = "en", unit: c, format: l, labels: u, className: d, ...f }, p) => {
|
|
12207
|
+
let m = Vm(u), h = e.map((e) => e.value).filter(Wm), g = t ?? Math.max(...h, n ?? 0, 0), _ = g > 0 ? g : 1, v = i ?? (n === void 0 ? [] : [{
|
|
12181
12208
|
from: n,
|
|
12182
12209
|
tone: "success"
|
|
12183
|
-
}]),
|
|
12210
|
+
}]), y = (e) => v.filter((t) => e >= t.from).reduce((e, t) => !e || t.from > e.from ? t : e, void 0)?.tone ?? "neutral", b = n !== void 0 && !!r, C = (e) => Wm(e) ? Jm(e, {
|
|
12211
|
+
digits: l?.digits,
|
|
12212
|
+
percent: l?.percent,
|
|
12213
|
+
signed: l?.signed,
|
|
12214
|
+
locale: s,
|
|
12215
|
+
unit: c
|
|
12216
|
+
}).text : m.unknown, w = n === void 0 ? "" : C(n), T = (e) => ` ${e.replace(/\s+/g, " ")} `, E = r && T(r).includes(T(w)) ? r : `${r ?? ""} ${w}`.trim(), D = [...e.map((e) => `${e.label} ${C(e.value)}`), ...n === void 0 ? [] : [E]].join(", "), O = Math.max(a, 1), k = e.length - 1;
|
|
12184
12217
|
return /* @__PURE__ */ S("div", {
|
|
12185
|
-
ref:
|
|
12186
|
-
className: $("eidotter-series-bars eidotter-health relative font-dos",
|
|
12187
|
-
...
|
|
12218
|
+
ref: p,
|
|
12219
|
+
className: $("eidotter-series-bars eidotter-health relative font-dos", Ah[o] ?? Ah.md, d),
|
|
12220
|
+
...f,
|
|
12188
12221
|
children: [/* @__PURE__ */ S("div", {
|
|
12189
12222
|
role: "img",
|
|
12190
|
-
"aria-label":
|
|
12223
|
+
"aria-label": D,
|
|
12191
12224
|
children: [/* @__PURE__ */ S("div", {
|
|
12192
|
-
className: $("eidotter-series-bars__frame relative",
|
|
12193
|
-
children: [
|
|
12225
|
+
className: $("eidotter-series-bars__frame relative", b && "eidotter-series-bars__frame--goal-band"),
|
|
12226
|
+
children: [b && /* @__PURE__ */ x("span", {
|
|
12194
12227
|
className: "eidotter-series-bars__goal-tag text-dos-text-brand",
|
|
12195
12228
|
children: r
|
|
12196
12229
|
}), /* @__PURE__ */ S("div", {
|
|
12197
|
-
className: $("eidotter-series-bars__plot relative",
|
|
12230
|
+
className: $("eidotter-series-bars__plot relative", jh[o] ?? jh.md),
|
|
12198
12231
|
children: [n !== void 0 && /* @__PURE__ */ x("div", {
|
|
12199
12232
|
className: "eidotter-series-bars__goal absolute inset-x-0",
|
|
12200
|
-
style: { bottom: `${Math.min(n,
|
|
12233
|
+
style: { bottom: `${Math.min(n, _) / _ * 100}%` }
|
|
12201
12234
|
}), /* @__PURE__ */ x("div", {
|
|
12202
12235
|
className: "eidotter-series-bars__cols flex items-end gap-1 h-full",
|
|
12203
12236
|
children: e.map((e, t) => {
|
|
12204
|
-
let n = e.value, r =
|
|
12237
|
+
let n = e.value, r = Wm(n) ? y(n) : "neutral";
|
|
12205
12238
|
return /* @__PURE__ */ x("div", {
|
|
12206
12239
|
className: "eidotter-series-bars__col flex flex-col justify-end flex-1 min-w-0 h-full",
|
|
12207
|
-
title: `${e.label}: ${
|
|
12208
|
-
children:
|
|
12209
|
-
className: $("eidotter-series-bars__bar w-full",
|
|
12240
|
+
title: `${e.label}: ${C(n)}`,
|
|
12241
|
+
children: Wm(n) ? /* @__PURE__ */ x("div", {
|
|
12242
|
+
className: $("eidotter-series-bars__bar w-full", Mh[r], Ph[r]),
|
|
12210
12243
|
style: {
|
|
12211
|
-
height: `${Math.min(Math.max(n, 0),
|
|
12212
|
-
...r === "neutral" && { "--eidotter-fill":
|
|
12244
|
+
height: `${Math.min(Math.max(n, 0), _) / _ * 100}%`,
|
|
12245
|
+
...r === "neutral" && { "--eidotter-fill": Nh }
|
|
12213
12246
|
}
|
|
12214
12247
|
}) : /* @__PURE__ */ x("span", {
|
|
12215
12248
|
className: "eidotter-series-bars__gap text-dos-text-muted text-center",
|
|
@@ -12221,10 +12254,13 @@ var wh = {
|
|
|
12221
12254
|
})]
|
|
12222
12255
|
}), /* @__PURE__ */ x("div", {
|
|
12223
12256
|
"aria-hidden": "true",
|
|
12224
|
-
className: "flex gap-1 text-dos-text-muted",
|
|
12257
|
+
className: "eidotter-series-bars__ticks flex gap-1 text-dos-text-muted",
|
|
12225
12258
|
children: e.map((e, t) => /* @__PURE__ */ x("span", {
|
|
12226
|
-
className: "eidotter-series-bars__tick flex-1 min-w-0
|
|
12227
|
-
children: t %
|
|
12259
|
+
className: $("eidotter-series-bars__tick-cell flex flex-1 min-w-0", t === 0 ? "justify-start" : t === k ? "justify-end" : "justify-center"),
|
|
12260
|
+
children: t % O === 0 && /* @__PURE__ */ x("span", {
|
|
12261
|
+
className: $("eidotter-series-bars__tick whitespace-nowrap tabular-nums", O === 1 && "min-w-0 truncate"),
|
|
12262
|
+
children: e.label
|
|
12263
|
+
})
|
|
12228
12264
|
}, t))
|
|
12229
12265
|
})]
|
|
12230
12266
|
}), /* @__PURE__ */ x("table", {
|
|
@@ -12232,47 +12268,47 @@ var wh = {
|
|
|
12232
12268
|
children: /* @__PURE__ */ S("tbody", { children: [e.map((e, t) => /* @__PURE__ */ S("tr", { children: [/* @__PURE__ */ x("th", {
|
|
12233
12269
|
scope: "row",
|
|
12234
12270
|
children: e.label
|
|
12235
|
-
}), /* @__PURE__ */ x("td", { children:
|
|
12271
|
+
}), /* @__PURE__ */ x("td", { children: C(e.value) })] }, t)), n !== void 0 && /* @__PURE__ */ S("tr", { children: [/* @__PURE__ */ x("th", {
|
|
12236
12272
|
scope: "row",
|
|
12237
12273
|
children: r
|
|
12238
|
-
}), /* @__PURE__ */ x("td", { children:
|
|
12274
|
+
}), /* @__PURE__ */ x("td", { children: C(n) })] })] })
|
|
12239
12275
|
})]
|
|
12240
12276
|
});
|
|
12241
12277
|
});
|
|
12242
|
-
|
|
12278
|
+
Fh.displayName = "SeriesBars";
|
|
12243
12279
|
//#endregion
|
|
12244
12280
|
//#region src/components/VitalsStrip/components/VitalsStrip.tsx
|
|
12245
|
-
var
|
|
12281
|
+
var Ih = {
|
|
12246
12282
|
sm: "eidotter-vitals-strip--sm gap-1 text-dos-text-xs",
|
|
12247
12283
|
md: "eidotter-vitals-strip--md gap-2 text-dos-text-sm",
|
|
12248
12284
|
lg: "eidotter-vitals-strip--lg gap-2 text-dos-text-md"
|
|
12249
|
-
},
|
|
12285
|
+
}, Lh = {
|
|
12250
12286
|
neutral: "eidotter-tone--neutral",
|
|
12251
12287
|
info: "eidotter-tone--info",
|
|
12252
12288
|
success: "eidotter-tone--success",
|
|
12253
12289
|
warning: "eidotter-tone--warning",
|
|
12254
12290
|
critical: "eidotter-tone--critical"
|
|
12255
|
-
},
|
|
12291
|
+
}, Rh = {
|
|
12256
12292
|
ok: "",
|
|
12257
12293
|
loading: "eidotter-vitals-strip__tile--loading",
|
|
12258
12294
|
empty: "eidotter-vitals-strip__tile--empty",
|
|
12259
12295
|
stale: "eidotter-vitals-strip__tile--stale",
|
|
12260
12296
|
unknown: "eidotter-vitals-strip__tile--unknown"
|
|
12261
12297
|
};
|
|
12262
|
-
function
|
|
12298
|
+
function zh(e, t) {
|
|
12263
12299
|
return e.loading ? t.unknown : e.offline ? t.offline : e.unknown ? t.unknown : null;
|
|
12264
12300
|
}
|
|
12265
|
-
var
|
|
12266
|
-
let s =
|
|
12301
|
+
var Bh = i(({ tiles: e, size: t = "md", locale: n = "en", labels: r, className: i, ...a }, o) => {
|
|
12302
|
+
let s = Vm(r);
|
|
12267
12303
|
return /* @__PURE__ */ x("div", {
|
|
12268
12304
|
ref: o,
|
|
12269
|
-
className: $("eidotter-vitals-strip eidotter-health flex flex-wrap w-full font-dos",
|
|
12305
|
+
className: $("eidotter-vitals-strip eidotter-health flex flex-wrap w-full font-dos", Ih[t] ?? Ih.md, i),
|
|
12270
12306
|
...a,
|
|
12271
12307
|
children: e.map((e) => {
|
|
12272
|
-
let t = e.status ?? "ok", r = t === "loading", i = e.pair ? e.pair[0] : e.value, a = e.pair ?
|
|
12308
|
+
let t = e.status ?? "ok", r = t === "loading", i = e.pair ? e.pair[0] : e.value, a = e.pair ? Wm(e.pair[0]) && Wm(e.pair[1]) : Wm(e.value), o = t === "empty" || t === "ok" && !e.pair && e.value === null, c = o || t === "unknown" || !a, l = t === "stale" && !c, u = Zm(c ? null : i, e.bands, e.unit), d = e.tone ?? u.tone, f = c ? null : e.pair ? Jm(e.pair[0], {
|
|
12273
12309
|
locale: n,
|
|
12274
12310
|
max: e.pair[1]
|
|
12275
|
-
}).text :
|
|
12311
|
+
}).text : Jm(e.value, { locale: n }).text, p = zh({
|
|
12276
12312
|
loading: r,
|
|
12277
12313
|
offline: o,
|
|
12278
12314
|
unknown: c
|
|
@@ -12281,7 +12317,7 @@ var Ph = i(({ tiles: e, size: t = "md", locale: n = "en", labels: r, className:
|
|
|
12281
12317
|
role: "group",
|
|
12282
12318
|
"aria-label": [`${e.label}: ${p ?? [f, e.unit].filter(Boolean).join(" ")}`, l && s.stale].filter(Boolean).join(", "),
|
|
12283
12319
|
"aria-busy": r || void 0,
|
|
12284
|
-
className: $("eidotter-vitals-strip__tile flex flex-col gap-0.5 border border-dos-border-default p-2",
|
|
12320
|
+
className: $("eidotter-vitals-strip__tile flex flex-col gap-0.5 border border-dos-border-default p-2", Lh[d], Rh[t], d === "critical" && "eidotter-vitals-strip__marker border-l-4 border-dos-border-error"),
|
|
12285
12321
|
children: [
|
|
12286
12322
|
/* @__PURE__ */ S("span", {
|
|
12287
12323
|
className: "flex items-center gap-1 text-dos-text-brand uppercase tracking-wider leading-tight",
|
|
@@ -12298,7 +12334,7 @@ var Ph = i(({ tiles: e, size: t = "md", locale: n = "en", labels: r, className:
|
|
|
12298
12334
|
r ? /* @__PURE__ */ x("div", {
|
|
12299
12335
|
"aria-hidden": "true",
|
|
12300
12336
|
className: "w-full overflow-hidden",
|
|
12301
|
-
children: /* @__PURE__ */ x(
|
|
12337
|
+
children: /* @__PURE__ */ x(zm, {
|
|
12302
12338
|
variant: "figure",
|
|
12303
12339
|
lines: 1,
|
|
12304
12340
|
animated: !1
|
|
@@ -12336,20 +12372,20 @@ var Ph = i(({ tiles: e, size: t = "md", locale: n = "en", labels: r, className:
|
|
|
12336
12372
|
})
|
|
12337
12373
|
});
|
|
12338
12374
|
});
|
|
12339
|
-
|
|
12375
|
+
Bh.displayName = "VitalsStrip";
|
|
12340
12376
|
//#endregion
|
|
12341
12377
|
//#region src/components/DecayStrip/components/resample.ts
|
|
12342
|
-
function
|
|
12378
|
+
function Vh(e) {
|
|
12343
12379
|
return typeof e == "number" ? e : Date.parse(e);
|
|
12344
12380
|
}
|
|
12345
|
-
function
|
|
12381
|
+
function Hh(e) {
|
|
12346
12382
|
return e.map((e) => ({
|
|
12347
|
-
t:
|
|
12383
|
+
t: Vh(e.t),
|
|
12348
12384
|
v: e.remaining
|
|
12349
12385
|
})).filter((e) => Number.isFinite(e.t) && Number.isFinite(e.v)).sort((e, t) => e.t - t.t);
|
|
12350
12386
|
}
|
|
12351
|
-
function
|
|
12352
|
-
let r =
|
|
12387
|
+
function Uh(e, t, n) {
|
|
12388
|
+
let r = Vh(t.from), i = Vh(t.to), a = (i - r) / n, o = Hh(e), s = [], c = 0, l = null;
|
|
12353
12389
|
for (let e = 0; e < n; e++) {
|
|
12354
12390
|
let t = r + e * a, u = e === n - 1 ? i : r + (e + 1) * a, d = e === n - 1;
|
|
12355
12391
|
for (; c < o.length && o[c].t < t;) l = o[c++].v;
|
|
@@ -12365,27 +12401,27 @@ function Lh(e, t, n) {
|
|
|
12365
12401
|
}
|
|
12366
12402
|
//#endregion
|
|
12367
12403
|
//#region src/components/DecayStrip/components/DecayStrip.tsx
|
|
12368
|
-
var
|
|
12404
|
+
var Wh = {
|
|
12369
12405
|
sm: "eidotter-decay-strip--sm text-dos-text-xs",
|
|
12370
12406
|
md: "eidotter-decay-strip--md text-dos-text-sm",
|
|
12371
12407
|
lg: "eidotter-decay-strip--lg text-dos-text-md"
|
|
12372
|
-
},
|
|
12408
|
+
}, Gh = {
|
|
12373
12409
|
neutral: "eidotter-tone--neutral",
|
|
12374
12410
|
info: "eidotter-tone--info",
|
|
12375
12411
|
success: "eidotter-tone--success",
|
|
12376
12412
|
warning: "eidotter-tone--warning",
|
|
12377
12413
|
critical: "eidotter-tone--critical"
|
|
12378
|
-
},
|
|
12414
|
+
}, Kh = [
|
|
12379
12415
|
"░",
|
|
12380
12416
|
"▒",
|
|
12381
12417
|
"▓",
|
|
12382
12418
|
"█"
|
|
12383
|
-
],
|
|
12384
|
-
function
|
|
12385
|
-
return e === null ?
|
|
12419
|
+
], qh = "│", Jh = "·";
|
|
12420
|
+
function Yh(e) {
|
|
12421
|
+
return e === null ? Jh : Kh[Math.round(Math.min(1, Math.max(0, e)) * (Kh.length - 1))];
|
|
12386
12422
|
}
|
|
12387
|
-
function
|
|
12388
|
-
let r =
|
|
12423
|
+
function Xh(e, t, n) {
|
|
12424
|
+
let r = Hh(e), i = -1;
|
|
12389
12425
|
r.forEach((e, t) => {
|
|
12390
12426
|
e.v > 0 && (i = t);
|
|
12391
12427
|
});
|
|
@@ -12394,29 +12430,29 @@ function Wh(e, t, n) {
|
|
|
12394
12430
|
let o = (a.t - t) / 6e4, s = new Intl.RelativeTimeFormat(n, { numeric: "always" });
|
|
12395
12431
|
return o < 60 ? s.format(Math.round(o), "minute") : s.format(Math.round(o / 6) / 10, "hour");
|
|
12396
12432
|
}
|
|
12397
|
-
var
|
|
12398
|
-
let h =
|
|
12433
|
+
var Zh = i(({ items: e, samples: t, now: n, window: r, provenance: i, size: a = "md", tone: o = "neutral", columns: s = 24, locale: c = "en", timeZone: l, labels: u, announce: d = !1, className: f, ...p }, m) => {
|
|
12434
|
+
let h = Vm(u), g = Vh(n), _ = Uh(t, r, s), v = new Intl.DateTimeFormat(c, {
|
|
12399
12435
|
timeStyle: "short",
|
|
12400
12436
|
...l && { timeZone: l }
|
|
12401
|
-
}), y = (e) => Number.isFinite(e) ? v.format(e) : "--", C = y(
|
|
12437
|
+
}), y = (e) => Number.isFinite(e) ? v.format(e) : "--", C = y(Vh(r.from)), w = y(Vh(r.to)), T = (e) => Hm(h, e), E = Jm(0, {
|
|
12402
12438
|
locale: c,
|
|
12403
12439
|
percent: !0
|
|
12404
12440
|
}).text, D = e.map((e) => {
|
|
12405
|
-
let t =
|
|
12441
|
+
let t = Jm(e.amount, {
|
|
12406
12442
|
locale: c,
|
|
12407
12443
|
unit: e.unit
|
|
12408
|
-
}).text, n =
|
|
12444
|
+
}).text, n = Wm(e.remainingShare) ? e.remainingShare : null;
|
|
12409
12445
|
return {
|
|
12410
12446
|
item: e,
|
|
12411
12447
|
amountText: t,
|
|
12412
12448
|
share: n,
|
|
12413
|
-
shareText: n === null ? h.unknown : `${
|
|
12449
|
+
shareText: n === null ? h.unknown : `${Jm(n * 100, {
|
|
12414
12450
|
locale: c,
|
|
12415
12451
|
percent: !0
|
|
12416
12452
|
}).text} ${h.remaining}`,
|
|
12417
12453
|
tagText: T(e.provenance)
|
|
12418
12454
|
};
|
|
12419
|
-
}), O =
|
|
12455
|
+
}), O = Xh(t, g, c), k = T(i), A = [
|
|
12420
12456
|
...D.map((e) => `${e.item.label} ${e.amountText}: ${e.shareText}${e.tagText ? `, ${e.tagText}` : ""}`),
|
|
12421
12457
|
`${C}–${w}`,
|
|
12422
12458
|
Number.isFinite(g) && `${h.now} ${v.format(g)}`,
|
|
@@ -12425,10 +12461,10 @@ var Gh = i(({ items: e, samples: t, now: n, window: r, provenance: i, size: a =
|
|
|
12425
12461
|
].filter(Boolean).join("; "), j = a === "sm";
|
|
12426
12462
|
return /* @__PURE__ */ S("div", {
|
|
12427
12463
|
ref: m,
|
|
12428
|
-
className:
|
|
12464
|
+
className: $("eidotter-decay-strip eidotter-health flex flex-col gap-2 w-full min-w-0 font-dos text-dos-text-brand", Gh[o], Wh[a] ?? Wh.md, f),
|
|
12429
12465
|
...p,
|
|
12430
12466
|
children: [
|
|
12431
|
-
e.length === 0 ? /* @__PURE__ */ x(
|
|
12467
|
+
e.length === 0 ? /* @__PURE__ */ x(gh, {
|
|
12432
12468
|
title: `${E} ${h.remaining}`,
|
|
12433
12469
|
className: "py-2"
|
|
12434
12470
|
}) : /* @__PURE__ */ x("ul", {
|
|
@@ -12447,7 +12483,7 @@ var Gh = i(({ items: e, samples: t, now: n, window: r, provenance: i, size: a =
|
|
|
12447
12483
|
className: "eidotter-decay-strip__item-provenance border border-dos-border-brand px-1",
|
|
12448
12484
|
children: e.tagText
|
|
12449
12485
|
})
|
|
12450
|
-
] }) : /* @__PURE__ */ x(
|
|
12486
|
+
] }) : /* @__PURE__ */ x(ah, {
|
|
12451
12487
|
label: e.item.label,
|
|
12452
12488
|
value: e.share === null ? null : e.share * 100,
|
|
12453
12489
|
secondary: e.item.amount === null ? void 0 : e.amountText,
|
|
@@ -12475,7 +12511,7 @@ var Gh = i(({ items: e, samples: t, now: n, window: r, provenance: i, size: a =
|
|
|
12475
12511
|
let n = t === _.length - 1, r = g >= e.start && (g < e.end || n && g === e.end), i = !r && g < e.start && g >= _[0].start;
|
|
12476
12512
|
return /* @__PURE__ */ x("span", {
|
|
12477
12513
|
className: $("eidotter-decay-strip__cell", `eidotter-decay-strip__cell--${r ? "now" : i ? "future" : "past"}`, i && "opacity-50", r && "text-dos-text-accent", r && d && "eidotter-health-pulse"),
|
|
12478
|
-
children: r ?
|
|
12514
|
+
children: r ? qh : Yh(e.value)
|
|
12479
12515
|
}, t);
|
|
12480
12516
|
})
|
|
12481
12517
|
}),
|
|
@@ -12497,26 +12533,26 @@ var Gh = i(({ items: e, samples: t, now: n, window: r, provenance: i, size: a =
|
|
|
12497
12533
|
]
|
|
12498
12534
|
});
|
|
12499
12535
|
});
|
|
12500
|
-
|
|
12536
|
+
Zh.displayName = "DecayStrip";
|
|
12501
12537
|
//#endregion
|
|
12502
12538
|
//#region src/components/CalendarHeatmap/components/CalendarHeatmap.tsx
|
|
12503
|
-
var
|
|
12539
|
+
var Qh = {
|
|
12504
12540
|
success: "█",
|
|
12505
12541
|
fail: "░",
|
|
12506
12542
|
skip: "·",
|
|
12507
12543
|
pending: "▒",
|
|
12508
12544
|
empty: " "
|
|
12509
|
-
},
|
|
12545
|
+
}, $h = [
|
|
12510
12546
|
"success",
|
|
12511
12547
|
"fail",
|
|
12512
12548
|
"skip",
|
|
12513
12549
|
"pending"
|
|
12514
|
-
],
|
|
12550
|
+
], eg = {
|
|
12515
12551
|
success: "DONE",
|
|
12516
12552
|
fail: "MISS",
|
|
12517
12553
|
skip: "OFF",
|
|
12518
12554
|
pending: "TODAY"
|
|
12519
|
-
},
|
|
12555
|
+
}, tg = [
|
|
12520
12556
|
"MO",
|
|
12521
12557
|
"TU",
|
|
12522
12558
|
"WE",
|
|
@@ -12524,7 +12560,7 @@ var Kh = {
|
|
|
12524
12560
|
"FR",
|
|
12525
12561
|
"SA",
|
|
12526
12562
|
"SU"
|
|
12527
|
-
],
|
|
12563
|
+
], ng = [
|
|
12528
12564
|
"SU",
|
|
12529
12565
|
"MO",
|
|
12530
12566
|
"TU",
|
|
@@ -12532,7 +12568,7 @@ var Kh = {
|
|
|
12532
12568
|
"TH",
|
|
12533
12569
|
"FR",
|
|
12534
12570
|
"SA"
|
|
12535
|
-
],
|
|
12571
|
+
], rg = [
|
|
12536
12572
|
"January",
|
|
12537
12573
|
"February",
|
|
12538
12574
|
"March",
|
|
@@ -12545,16 +12581,16 @@ var Kh = {
|
|
|
12545
12581
|
"October",
|
|
12546
12582
|
"November",
|
|
12547
12583
|
"December"
|
|
12548
|
-
],
|
|
12584
|
+
], ig = {
|
|
12549
12585
|
sm: "eidotter-calendar-heatmap--sm",
|
|
12550
12586
|
md: "eidotter-calendar-heatmap--md",
|
|
12551
12587
|
lg: "eidotter-calendar-heatmap--lg"
|
|
12552
|
-
},
|
|
12588
|
+
}, ag = (e) => String(e).padStart(2, "0"), og = i(({ month: e, statuses: t = {}, defaultStatus: n = "skip", weekStart: r = "monday", size: i = "md", successColor: a, showLegend: o = !0, legendLabels: s, glyphs: c, className: l, "aria-label": u, ...d }, f) => {
|
|
12553
12589
|
let p = Number(e.slice(0, 4)), m = Number(e.slice(5, 7)) - 1, h = Number.isFinite(p) && m >= 0 && m <= 11, g = {
|
|
12554
|
-
...
|
|
12590
|
+
...Qh,
|
|
12555
12591
|
...c
|
|
12556
12592
|
}, _ = {
|
|
12557
|
-
...
|
|
12593
|
+
...eg,
|
|
12558
12594
|
...s
|
|
12559
12595
|
}, v = [], y = 0, b = 0;
|
|
12560
12596
|
if (h) {
|
|
@@ -12565,7 +12601,7 @@ var Kh = {
|
|
|
12565
12601
|
status: "empty"
|
|
12566
12602
|
});
|
|
12567
12603
|
for (let r = 1; r <= e; r++) {
|
|
12568
|
-
let e = `${p}-${
|
|
12604
|
+
let e = `${p}-${ag(m + 1)}-${ag(r)}`, i = t[e] ?? n;
|
|
12569
12605
|
i === "success" && y++, i === "fail" && b++, o.push({
|
|
12570
12606
|
key: e,
|
|
12571
12607
|
day: r,
|
|
@@ -12579,10 +12615,10 @@ var Kh = {
|
|
|
12579
12615
|
});
|
|
12580
12616
|
for (let e = 0; e < o.length; e += 7) v.push(o.slice(e, e + 7));
|
|
12581
12617
|
}
|
|
12582
|
-
let C = r === "monday" ?
|
|
12618
|
+
let C = r === "monday" ? tg : ng, w = h ? `${rg[m]} ${p}` : e, T = u ?? `${w}: ${y} done, ${b} missed`, E = a ? { "--heatmap-success": a } : void 0;
|
|
12583
12619
|
return /* @__PURE__ */ S("div", {
|
|
12584
12620
|
ref: f,
|
|
12585
|
-
className: $("eidotter-calendar-heatmap font-dos",
|
|
12621
|
+
className: $("eidotter-calendar-heatmap font-dos", ig[i], l),
|
|
12586
12622
|
style: E,
|
|
12587
12623
|
...d,
|
|
12588
12624
|
children: [/* @__PURE__ */ S("div", {
|
|
@@ -12607,7 +12643,7 @@ var Kh = {
|
|
|
12607
12643
|
}), o && /* @__PURE__ */ x("div", {
|
|
12608
12644
|
className: "eidotter-calendar-heatmap__legend",
|
|
12609
12645
|
"aria-hidden": "true",
|
|
12610
|
-
children:
|
|
12646
|
+
children: $h.map((e) => /* @__PURE__ */ S("span", {
|
|
12611
12647
|
className: `eidotter-calendar-heatmap__cell--${e}`,
|
|
12612
12648
|
children: [
|
|
12613
12649
|
g[e],
|
|
@@ -12618,10 +12654,10 @@ var Kh = {
|
|
|
12618
12654
|
})]
|
|
12619
12655
|
});
|
|
12620
12656
|
});
|
|
12621
|
-
|
|
12657
|
+
og.displayName = "CalendarHeatmap";
|
|
12622
12658
|
//#endregion
|
|
12623
12659
|
//#region src/components/HoldToComplete/components/HoldToComplete.tsx
|
|
12624
|
-
var
|
|
12660
|
+
var sg = (e) => e * e, cg = .02, lg = 120, ug = i(({ onHold: e, onTap: t, onHoldProgress: n, holdDuration: r = 700, ringColor: i, ringScale: a = .72, disabled: s = !1, "aria-label": l, className: u, children: d }, f) => {
|
|
12625
12661
|
let [h, g] = m(0), [_, v] = m(0), y = p(null), b = p(null), C = p(0), w = p(0), T = p(0), E = p(0), D = p(r), O = p(!1), k = p(e), A = p(n);
|
|
12626
12662
|
k.current = e, A.current = n;
|
|
12627
12663
|
let j = o((e) => {
|
|
@@ -12629,7 +12665,7 @@ var tg = (e) => e * e, ng = .02, rg = 120, ig = i(({ onHold: e, onTap: t, onHold
|
|
|
12629
12665
|
}, []), M = o(() => {
|
|
12630
12666
|
b.current != null && (cancelAnimationFrame(b.current), b.current = null);
|
|
12631
12667
|
}, []), N = o((e) => {
|
|
12632
|
-
let t = e - E.current, n = D.current, r = n <= 0 ? 1 : Math.min(1, t / n), i = T.current === 1 ?
|
|
12668
|
+
let t = e - E.current, n = D.current, r = n <= 0 ? 1 : Math.min(1, t / n), i = T.current === 1 ? sg(r) : r, a = w.current + (T.current - w.current) * i;
|
|
12633
12669
|
if (j(a), r >= 1) {
|
|
12634
12670
|
b.current = null, T.current === 1 && (O.current = !0, j(0), k.current());
|
|
12635
12671
|
return;
|
|
@@ -12655,7 +12691,7 @@ var tg = (e) => e * e, ng = .02, rg = 120, ig = i(({ onHold: e, onTap: t, onHold
|
|
|
12655
12691
|
M();
|
|
12656
12692
|
return;
|
|
12657
12693
|
}
|
|
12658
|
-
|
|
12694
|
+
om() ? (M(), j(0)) : P(0, lg);
|
|
12659
12695
|
}
|
|
12660
12696
|
}, [
|
|
12661
12697
|
P,
|
|
@@ -12677,7 +12713,7 @@ var tg = (e) => e * e, ng = .02, rg = 120, ig = i(({ onHold: e, onTap: t, onHold
|
|
|
12677
12713
|
}, []), c(() => M, [M]);
|
|
12678
12714
|
let R = o((e) => {
|
|
12679
12715
|
y.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
|
|
12680
|
-
}, [f]), te = h >
|
|
12716
|
+
}, [f]), te = h > cg && _ > 0;
|
|
12681
12717
|
return /* @__PURE__ */ S("div", {
|
|
12682
12718
|
ref: R,
|
|
12683
12719
|
className: $("eidotter-hold", s && "eidotter-hold--disabled", u),
|
|
@@ -12692,7 +12728,7 @@ var tg = (e) => e * e, ng = .02, rg = 120, ig = i(({ onHold: e, onTap: t, onHold
|
|
|
12692
12728
|
onKeyDown: ee,
|
|
12693
12729
|
children: [d, te && /* @__PURE__ */ x("div", {
|
|
12694
12730
|
className: "eidotter-hold__overlay",
|
|
12695
|
-
children: /* @__PURE__ */ x(
|
|
12731
|
+
children: /* @__PURE__ */ x(Mm, {
|
|
12696
12732
|
value: h * 100,
|
|
12697
12733
|
size: Math.floor(_ * a),
|
|
12698
12734
|
color: i,
|
|
@@ -12701,13 +12737,13 @@ var tg = (e) => e * e, ng = .02, rg = 120, ig = i(({ onHold: e, onTap: t, onHold
|
|
|
12701
12737
|
})]
|
|
12702
12738
|
});
|
|
12703
12739
|
});
|
|
12704
|
-
|
|
12740
|
+
ug.displayName = "HoldToComplete";
|
|
12705
12741
|
//#endregion
|
|
12706
12742
|
//#region src/components/Input/components/Input.tsx
|
|
12707
|
-
var
|
|
12743
|
+
var dg = {
|
|
12708
12744
|
default: "eidotter-input--default",
|
|
12709
12745
|
error: "eidotter-input--error"
|
|
12710
|
-
},
|
|
12746
|
+
}, fg = i(({ variant: e = "default", label: t, description: n, errorMessage: r, disabled: i, className: a, onChange: o, isRequired: s, ...c }, l) => {
|
|
12711
12747
|
let u = e === "error";
|
|
12712
12748
|
return /* @__PURE__ */ S(yf, {
|
|
12713
12749
|
isDisabled: i,
|
|
@@ -12721,7 +12757,7 @@ var ag = {
|
|
|
12721
12757
|
}),
|
|
12722
12758
|
/* @__PURE__ */ x(fa, {
|
|
12723
12759
|
ref: l,
|
|
12724
|
-
className: $("w-full bg-transparent text-dos-text-brand font-dos text-dos-text-base p-2", "border-2 border-dos-border-default outline-none box-border", "eidotter-input",
|
|
12760
|
+
className: $("w-full bg-transparent text-dos-text-brand font-dos text-dos-text-base p-2", "border-2 border-dos-border-default outline-none box-border", "eidotter-input", dg[e] || dg.default, i && "eidotter-input--disabled"),
|
|
12725
12761
|
onChange: o,
|
|
12726
12762
|
...c
|
|
12727
12763
|
}),
|
|
@@ -12738,10 +12774,10 @@ var ag = {
|
|
|
12738
12774
|
]
|
|
12739
12775
|
});
|
|
12740
12776
|
});
|
|
12741
|
-
|
|
12777
|
+
fg.displayName = "Input";
|
|
12742
12778
|
//#endregion
|
|
12743
12779
|
//#region src/components/Terminal/components/Terminal.tsx
|
|
12744
|
-
var
|
|
12780
|
+
var pg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", resizable: r = !0, minimizable: i = !1, maximizable: a = !1, closeable: o = !1, children: s, onMinimize: l, onMaximize: u, onClose: d, onFocus: f, className: h = "", autoFocus: g = !1 }) => {
|
|
12745
12781
|
let _ = {
|
|
12746
12782
|
sm: "small",
|
|
12747
12783
|
md: "medium",
|
|
@@ -12765,7 +12801,7 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12765
12801
|
"aria-label": `Restore ${t} window`,
|
|
12766
12802
|
children: /* @__PURE__ */ S("div", {
|
|
12767
12803
|
className: "terminal__taskbar-item",
|
|
12768
|
-
children: [/* @__PURE__ */ x(
|
|
12804
|
+
children: [/* @__PURE__ */ x(im, {
|
|
12769
12805
|
name: "App",
|
|
12770
12806
|
size: "S"
|
|
12771
12807
|
}), /* @__PURE__ */ x("span", {
|
|
@@ -12788,7 +12824,7 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12788
12824
|
className: "terminal__title-bar",
|
|
12789
12825
|
children: [/* @__PURE__ */ S("div", {
|
|
12790
12826
|
className: "terminal__title",
|
|
12791
|
-
children: [/* @__PURE__ */ x(
|
|
12827
|
+
children: [/* @__PURE__ */ x(im, {
|
|
12792
12828
|
name: "App",
|
|
12793
12829
|
size: "S",
|
|
12794
12830
|
"aria-hidden": "true"
|
|
@@ -12803,7 +12839,7 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12803
12839
|
className: "terminal__control terminal__control--minimize",
|
|
12804
12840
|
onPress: T,
|
|
12805
12841
|
"aria-label": "Minimize window",
|
|
12806
|
-
children: /* @__PURE__ */ x(
|
|
12842
|
+
children: /* @__PURE__ */ x(im, {
|
|
12807
12843
|
name: "Cancel",
|
|
12808
12844
|
size: "S"
|
|
12809
12845
|
})
|
|
@@ -12812,7 +12848,7 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12812
12848
|
className: "terminal__control terminal__control--maximize",
|
|
12813
12849
|
onPress: E,
|
|
12814
12850
|
"aria-label": b ? "Restore window" : "Maximize window",
|
|
12815
|
-
children: /* @__PURE__ */ x(
|
|
12851
|
+
children: /* @__PURE__ */ x(im, {
|
|
12816
12852
|
name: b ? "Fullscreen" : "Add",
|
|
12817
12853
|
size: "S"
|
|
12818
12854
|
})
|
|
@@ -12821,7 +12857,7 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12821
12857
|
className: "terminal__control terminal__control--close",
|
|
12822
12858
|
onPress: D,
|
|
12823
12859
|
"aria-label": "Close window",
|
|
12824
|
-
children: /* @__PURE__ */ x(
|
|
12860
|
+
children: /* @__PURE__ */ x(im, {
|
|
12825
12861
|
name: "Close",
|
|
12826
12862
|
size: "S"
|
|
12827
12863
|
})
|
|
@@ -12852,17 +12888,17 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12852
12888
|
})
|
|
12853
12889
|
]
|
|
12854
12890
|
});
|
|
12855
|
-
},
|
|
12891
|
+
}, mg = {
|
|
12856
12892
|
sm: "eidotter-tabs--sm",
|
|
12857
12893
|
md: "eidotter-tabs--md",
|
|
12858
12894
|
lg: "eidotter-tabs--lg",
|
|
12859
12895
|
small: "eidotter-tabs--sm",
|
|
12860
12896
|
medium: "eidotter-tabs--md",
|
|
12861
12897
|
large: "eidotter-tabs--lg"
|
|
12862
|
-
},
|
|
12898
|
+
}, hg = {
|
|
12863
12899
|
underline: "eidotter-tabs--underline",
|
|
12864
12900
|
pills: "eidotter-tabs--pills"
|
|
12865
|
-
},
|
|
12901
|
+
}, gg = i(({ tabs: e, variant: t = "underline", size: n = "md", activeTab: r, defaultActiveTab: i, onSelectionChange: a, onTabChange: s, className: c, ...l }, d) => {
|
|
12866
12902
|
let f = p(null), h = p(r ?? i ?? e[0]?.id ?? ""), [g, _] = m(r ?? i ?? e[0]?.id ?? ""), v = a ?? s, y = o((e) => {
|
|
12867
12903
|
let t = String(e), n = r ?? h.current;
|
|
12868
12904
|
h.current = t, _(t), v?.(t, n);
|
|
@@ -12886,7 +12922,7 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12886
12922
|
selectedKey: r,
|
|
12887
12923
|
defaultSelectedKey: i ?? e[0]?.id,
|
|
12888
12924
|
onSelectionChange: y,
|
|
12889
|
-
className: $("eidotter-tabs",
|
|
12925
|
+
className: $("eidotter-tabs", hg[t], mg[n] || mg.md, c),
|
|
12890
12926
|
children: [/* @__PURE__ */ S("div", {
|
|
12891
12927
|
ref: f,
|
|
12892
12928
|
className: "relative",
|
|
@@ -12909,16 +12945,16 @@ var sg = ({ size: e = "md", title: t = "MS-DOS Terminal", state: n = "active", r
|
|
|
12909
12945
|
}, e.id))]
|
|
12910
12946
|
});
|
|
12911
12947
|
});
|
|
12912
|
-
|
|
12948
|
+
gg.displayName = "Tabs";
|
|
12913
12949
|
//#endregion
|
|
12914
12950
|
//#region src/components/Badge/components/Badge.tsx
|
|
12915
|
-
var
|
|
12951
|
+
var _g = {
|
|
12916
12952
|
sm: "text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",
|
|
12917
12953
|
md: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",
|
|
12918
12954
|
lg: "text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",
|
|
12919
12955
|
small: "text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",
|
|
12920
12956
|
medium: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"
|
|
12921
|
-
},
|
|
12957
|
+
}, vg = {
|
|
12922
12958
|
default: "eidotter-badge--default",
|
|
12923
12959
|
success: "eidotter-badge--success",
|
|
12924
12960
|
warning: "eidotter-badge--warning",
|
|
@@ -12932,9 +12968,9 @@ var dg = {
|
|
|
12932
12968
|
purple: "eidotter-badge--info",
|
|
12933
12969
|
pink: "eidotter-badge--error",
|
|
12934
12970
|
orange: "eidotter-badge--warning"
|
|
12935
|
-
},
|
|
12971
|
+
}, yg = i(({ variant: e = "default", size: t = "md", dot: n = !1, children: r, className: i, ...a }, o) => /* @__PURE__ */ S("span", {
|
|
12936
12972
|
ref: o,
|
|
12937
|
-
className: $("inline-flex items-center justify-center", "font-dos leading-none whitespace-nowrap select-none", "uppercase tracking-wider", "rounded-dos-sm", "eidotter-badge",
|
|
12973
|
+
className: $("inline-flex items-center justify-center", "font-dos leading-none whitespace-nowrap select-none", "uppercase tracking-wider", "rounded-dos-sm", "eidotter-badge", _g[t] || _g.md, vg[e] || vg.default, i),
|
|
12938
12974
|
"data-variant": e,
|
|
12939
12975
|
...a,
|
|
12940
12976
|
children: [n && /* @__PURE__ */ x("span", {
|
|
@@ -12945,10 +12981,10 @@ var dg = {
|
|
|
12945
12981
|
children: r
|
|
12946
12982
|
})]
|
|
12947
12983
|
}));
|
|
12948
|
-
|
|
12984
|
+
yg.displayName = "Badge";
|
|
12949
12985
|
//#endregion
|
|
12950
12986
|
//#region src/components/Switch/components/Switch.tsx
|
|
12951
|
-
var
|
|
12987
|
+
var bg = i(({ checked: e, defaultChecked: t = !1, onChange: n, onCheckedChange: r, disabled: i = !1, size: a = "md", type: o = "default", label: s, name: c, value: l, className: u, ...d }, f) => /* @__PURE__ */ x(Yd, {
|
|
12952
12988
|
ref: f,
|
|
12953
12989
|
isSelected: e,
|
|
12954
12990
|
defaultSelected: t,
|
|
@@ -12968,18 +13004,18 @@ var mg = i(({ checked: e, defaultChecked: t = !1, onChange: n, onCheckedChange:
|
|
|
12968
13004
|
children: s
|
|
12969
13005
|
})] })
|
|
12970
13006
|
}));
|
|
12971
|
-
|
|
13007
|
+
bg.displayName = "Switch";
|
|
12972
13008
|
//#endregion
|
|
12973
13009
|
//#region src/utils/isSafeHref.ts
|
|
12974
|
-
var
|
|
12975
|
-
function
|
|
13010
|
+
var xg = /^(?:https?:|mailto:)/i, Sg = /^([a-z][a-z0-9+\-.]*):/i;
|
|
13011
|
+
function Cg(e, t) {
|
|
12976
13012
|
if (typeof e != "string") return !1;
|
|
12977
13013
|
let n = e.trim();
|
|
12978
13014
|
if (n.length === 0) return !1;
|
|
12979
13015
|
let r = n.replace(/[\t\n\r]/g, "");
|
|
12980
13016
|
if (r.length === 0) return !1;
|
|
12981
|
-
let i =
|
|
12982
|
-
if (!i ||
|
|
13017
|
+
let i = Sg.exec(r);
|
|
13018
|
+
if (!i || xg.test(r)) return !0;
|
|
12983
13019
|
let a = t?.extraSchemes;
|
|
12984
13020
|
if (a && a.length > 0) {
|
|
12985
13021
|
let e = i[1].toLowerCase();
|
|
@@ -12989,7 +13025,7 @@ function _g(e, t) {
|
|
|
12989
13025
|
}
|
|
12990
13026
|
//#endregion
|
|
12991
13027
|
//#region src/components/Breadcrumb/components/Breadcrumb.tsx
|
|
12992
|
-
var
|
|
13028
|
+
var wg = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline", Tg = ({ trail: e = [], currentLabel: t, showBackArrow: n = !0, separator: r = "/", linkComponent: i, className: a }) => {
|
|
12993
13029
|
let o = (e, t) => {
|
|
12994
13030
|
let r = /* @__PURE__ */ S(b, { children: [n && t && /* @__PURE__ */ x("span", {
|
|
12995
13031
|
className: "text-[1em] leading-none",
|
|
@@ -12997,17 +13033,17 @@ var vg = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
12997
13033
|
children: "<"
|
|
12998
13034
|
}), /* @__PURE__ */ x("span", { children: e.label })] });
|
|
12999
13035
|
if (e.onClick) return /* @__PURE__ */ x(pi, {
|
|
13000
|
-
className: $(
|
|
13036
|
+
className: $(wg, "bg-transparent border-0 cursor-pointer font-[inherit] p-0"),
|
|
13001
13037
|
onPress: e.onClick,
|
|
13002
13038
|
children: r
|
|
13003
13039
|
});
|
|
13004
|
-
let a = e.href &&
|
|
13040
|
+
let a = e.href && Cg(e.href) ? e.href : void 0;
|
|
13005
13041
|
return a ? x(i || "a", {
|
|
13006
13042
|
href: a,
|
|
13007
|
-
className:
|
|
13043
|
+
className: wg,
|
|
13008
13044
|
children: r
|
|
13009
13045
|
}) : /* @__PURE__ */ x("span", {
|
|
13010
|
-
className:
|
|
13046
|
+
className: wg,
|
|
13011
13047
|
children: r
|
|
13012
13048
|
});
|
|
13013
13049
|
};
|
|
@@ -13047,18 +13083,18 @@ var vg = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
13047
13083
|
]
|
|
13048
13084
|
})
|
|
13049
13085
|
});
|
|
13050
|
-
},
|
|
13086
|
+
}, Eg = "eidotter:retro-boot", Dg = "1", Og = (e) => {
|
|
13051
13087
|
if (typeof window > "u") return !1;
|
|
13052
13088
|
try {
|
|
13053
|
-
return window.sessionStorage.getItem(e) ===
|
|
13089
|
+
return window.sessionStorage.getItem(e) === Dg;
|
|
13054
13090
|
} catch {
|
|
13055
13091
|
return !1;
|
|
13056
13092
|
}
|
|
13057
|
-
},
|
|
13093
|
+
}, kg = (e) => {
|
|
13058
13094
|
if (!(typeof window > "u")) try {
|
|
13059
|
-
window.sessionStorage.setItem(e,
|
|
13095
|
+
window.sessionStorage.setItem(e, Dg);
|
|
13060
13096
|
} catch {}
|
|
13061
|
-
},
|
|
13097
|
+
}, Ag = ({ scanlines: e = !0, glow: t = !0, flicker: n = !0, bloom: r = !1, powered: i = !0, boot: a = !1, bootOnce: o = !1, bootStorageKey: s = Eg, intensity: l = 1, className: u, onPowerStateChange: d, onPowerOn: f, onPowerOff: h, onBootComplete: g }) => {
|
|
13062
13098
|
let _ = p(i), [v, y] = m(i ? "on" : "off"), [C, w] = m(a), T = p(!1), E = p(s), D = p(g);
|
|
13063
13099
|
c(() => {
|
|
13064
13100
|
D.current = g;
|
|
@@ -13066,16 +13102,16 @@ var vg = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
13066
13102
|
let O = () => {
|
|
13067
13103
|
T.current || (T.current = !0, D.current?.());
|
|
13068
13104
|
}, k = () => {
|
|
13069
|
-
w(!1), o &&
|
|
13105
|
+
w(!1), o && kg(E.current), O();
|
|
13070
13106
|
};
|
|
13071
13107
|
c(() => {
|
|
13072
|
-
if (!(!a || !o) &&
|
|
13108
|
+
if (!(!a || !o) && Og(E.current)) {
|
|
13073
13109
|
w(!1), O();
|
|
13074
13110
|
return;
|
|
13075
13111
|
}
|
|
13076
13112
|
}, []), c(() => {
|
|
13077
13113
|
if (!C || T.current) return;
|
|
13078
|
-
if (
|
|
13114
|
+
if (om()) {
|
|
13079
13115
|
k();
|
|
13080
13116
|
return;
|
|
13081
13117
|
}
|
|
@@ -13123,32 +13159,32 @@ var vg = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
13123
13159
|
]
|
|
13124
13160
|
})]
|
|
13125
13161
|
});
|
|
13126
|
-
},
|
|
13162
|
+
}, jg = {
|
|
13127
13163
|
sm: "small",
|
|
13128
13164
|
md: "medium",
|
|
13129
13165
|
lg: "large",
|
|
13130
13166
|
small: "small",
|
|
13131
13167
|
medium: "medium",
|
|
13132
13168
|
large: "large"
|
|
13133
|
-
},
|
|
13169
|
+
}, Mg = {
|
|
13134
13170
|
circle: "eidotter-timeline-node--circle",
|
|
13135
13171
|
square: "eidotter-timeline-node--square",
|
|
13136
13172
|
diamond: "eidotter-timeline-node--diamond"
|
|
13137
|
-
},
|
|
13173
|
+
}, Ng = {
|
|
13138
13174
|
default: "eidotter-timeline-node--default",
|
|
13139
13175
|
primary: "eidotter-timeline-node--primary",
|
|
13140
13176
|
secondary: "eidotter-timeline-node--secondary",
|
|
13141
13177
|
accent: "eidotter-timeline-node--accent"
|
|
13142
|
-
},
|
|
13178
|
+
}, Pg = {
|
|
13143
13179
|
left: "eidotter-timeline-node--label-left",
|
|
13144
13180
|
right: "eidotter-timeline-node--label-right",
|
|
13145
13181
|
top: "eidotter-timeline-node--label-top",
|
|
13146
13182
|
bottom: "eidotter-timeline-node--label-bottom"
|
|
13147
|
-
},
|
|
13148
|
-
let u =
|
|
13183
|
+
}, Fg = i(({ shape: e = "circle", variant: t = "default", isActive: n = !1, label: r, labelPosition: i = "right", size: a = "md", className: o, onClick: s, ...c }, l) => {
|
|
13184
|
+
let u = jg[a] ?? "medium";
|
|
13149
13185
|
return /* @__PURE__ */ S("div", {
|
|
13150
13186
|
ref: l,
|
|
13151
|
-
className: $("inline-flex items-center gap-2 font-dos", "eidotter-timeline-node",
|
|
13187
|
+
className: $("inline-flex items-center gap-2 font-dos", "eidotter-timeline-node", Mg[e], Ng[t], `eidotter-timeline-node--${u}`, Pg[i], n && "eidotter-timeline-node--active", s && "eidotter-timeline-node--interactive", o),
|
|
13152
13188
|
onClick: () => {
|
|
13153
13189
|
s && s();
|
|
13154
13190
|
},
|
|
@@ -13183,10 +13219,10 @@ var vg = "eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text
|
|
|
13183
13219
|
]
|
|
13184
13220
|
});
|
|
13185
13221
|
});
|
|
13186
|
-
|
|
13222
|
+
Fg.displayName = "TimelineNode";
|
|
13187
13223
|
//#endregion
|
|
13188
13224
|
//#region src/components/TimelineContainer/components/types.ts
|
|
13189
|
-
var
|
|
13225
|
+
var Ig = [
|
|
13190
13226
|
"year",
|
|
13191
13227
|
"month",
|
|
13192
13228
|
"day",
|
|
@@ -13194,12 +13230,12 @@ var Ag = [
|
|
|
13194
13230
|
];
|
|
13195
13231
|
//#endregion
|
|
13196
13232
|
//#region src/components/TimelineContainer/components/useDrillDown.ts
|
|
13197
|
-
function
|
|
13233
|
+
function Lg({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {}) {
|
|
13198
13234
|
let r = e === void 0, [i, a] = m(t), [s, l] = m([]), u = p(r);
|
|
13199
13235
|
c(() => {
|
|
13200
13236
|
u.current && !r && l([]), u.current = r;
|
|
13201
13237
|
}, [r]);
|
|
13202
|
-
let d = e ?? i, f =
|
|
13238
|
+
let d = e ?? i, f = Ig.indexOf(d), h = f < Ig.length - 1, g = f > 0, _ = s.length > 0 ? s[s.length - 1].periodStart : null, v = p(r), y = p(h), b = p(f), x = p(s), S = p(n);
|
|
13203
13239
|
c(() => {
|
|
13204
13240
|
v.current = r, y.current = h, b.current = f, x.current = s, S.current = n;
|
|
13205
13241
|
});
|
|
@@ -13215,7 +13251,7 @@ function jg({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {
|
|
|
13215
13251
|
isDrillDownEnabled: r,
|
|
13216
13252
|
drillDown: o((e, t) => {
|
|
13217
13253
|
if (!v.current || !y.current) return;
|
|
13218
|
-
let n =
|
|
13254
|
+
let n = Ig[b.current + 1];
|
|
13219
13255
|
n !== void 0 && (l((n) => [...n, {
|
|
13220
13256
|
periodStart: e,
|
|
13221
13257
|
label: t
|
|
@@ -13223,7 +13259,7 @@ function jg({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {
|
|
|
13223
13259
|
}, [C]),
|
|
13224
13260
|
drillUp: o(() => {
|
|
13225
13261
|
if (!v.current || x.current.length === 0) return;
|
|
13226
|
-
let e =
|
|
13262
|
+
let e = Ig[b.current - 1];
|
|
13227
13263
|
e !== void 0 && (l((e) => e.slice(0, -1)), C(e));
|
|
13228
13264
|
}, [C]),
|
|
13229
13265
|
reset: o(() => {
|
|
@@ -13233,7 +13269,7 @@ function jg({ zoomLevel: e, defaultZoomLevel: t = "month", onZoomChange: n } = {
|
|
|
13233
13269
|
}
|
|
13234
13270
|
//#endregion
|
|
13235
13271
|
//#region src/components/TimelineContainer/components/useSelection.ts
|
|
13236
|
-
function
|
|
13272
|
+
function Rg({ selectedEntryId: e, defaultSelectedEntryId: t = null, onSelectEntry: n } = {}) {
|
|
13237
13273
|
let [r, i] = m(t), a = e !== void 0, s = e === void 0 ? r : e, l = p(s), u = p(a), d = p(n);
|
|
13238
13274
|
c(() => {
|
|
13239
13275
|
l.current = s, u.current = a, d.current = n;
|
|
@@ -13259,7 +13295,7 @@ function Mg({ selectedEntryId: e, defaultSelectedEntryId: t = null, onSelectEntr
|
|
|
13259
13295
|
}
|
|
13260
13296
|
//#endregion
|
|
13261
13297
|
//#region src/components/TimelineContainer/components/timelineUtils.ts
|
|
13262
|
-
var
|
|
13298
|
+
var zg = [
|
|
13263
13299
|
"January",
|
|
13264
13300
|
"February",
|
|
13265
13301
|
"March",
|
|
@@ -13272,7 +13308,7 @@ var Ng = [
|
|
|
13272
13308
|
"October",
|
|
13273
13309
|
"November",
|
|
13274
13310
|
"December"
|
|
13275
|
-
],
|
|
13311
|
+
], Bg = [
|
|
13276
13312
|
"Jan",
|
|
13277
13313
|
"Feb",
|
|
13278
13314
|
"Mar",
|
|
@@ -13286,48 +13322,48 @@ var Ng = [
|
|
|
13286
13322
|
"Nov",
|
|
13287
13323
|
"Dec"
|
|
13288
13324
|
];
|
|
13289
|
-
function
|
|
13325
|
+
function Vg(e) {
|
|
13290
13326
|
return new Date(e).getUTCFullYear();
|
|
13291
13327
|
}
|
|
13292
|
-
function
|
|
13328
|
+
function Hg(e) {
|
|
13293
13329
|
return new Date(e).getUTCMonth();
|
|
13294
13330
|
}
|
|
13295
|
-
function
|
|
13331
|
+
function Ug(e) {
|
|
13296
13332
|
return new Date(e).getUTCDate();
|
|
13297
13333
|
}
|
|
13298
|
-
function
|
|
13334
|
+
function Wg(e) {
|
|
13299
13335
|
return new Date(e).getUTCHours();
|
|
13300
13336
|
}
|
|
13301
|
-
function
|
|
13337
|
+
function Gg(e) {
|
|
13302
13338
|
return String(e);
|
|
13303
13339
|
}
|
|
13304
|
-
function
|
|
13305
|
-
return `${
|
|
13340
|
+
function Kg(e, t) {
|
|
13341
|
+
return `${zg[t]} ${e}`;
|
|
13306
13342
|
}
|
|
13307
|
-
function
|
|
13308
|
-
return `${
|
|
13343
|
+
function qg(e, t, n) {
|
|
13344
|
+
return `${Bg[t]} ${n}`;
|
|
13309
13345
|
}
|
|
13310
|
-
function
|
|
13346
|
+
function Jg(e, t, n, r) {
|
|
13311
13347
|
let i = r >= 12 ? "pm" : "am", a = r === 0 ? 12 : r > 12 ? r - 12 : r;
|
|
13312
|
-
return `${
|
|
13348
|
+
return `${Bg[t]} ${n}, ${a}${i}`;
|
|
13313
13349
|
}
|
|
13314
|
-
function
|
|
13315
|
-
let t = new Date(e), n =
|
|
13350
|
+
function Yg(e) {
|
|
13351
|
+
let t = new Date(e), n = Bg[t.getUTCMonth()], r = t.getUTCDate(), i = t.getUTCFullYear(), a = t.getUTCHours(), o = t.getUTCMinutes(), s = a >= 12 ? "pm" : "am";
|
|
13316
13352
|
return `${n} ${r}, ${i} at ${a === 0 ? 12 : a > 12 ? a - 12 : a}${o > 0 ? `:${String(o).padStart(2, "0")}` : ""}${s}`;
|
|
13317
13353
|
}
|
|
13318
|
-
function
|
|
13354
|
+
function Xg(e) {
|
|
13319
13355
|
return new Date(Date.UTC(e, 0, 1)).toISOString();
|
|
13320
13356
|
}
|
|
13321
|
-
function
|
|
13357
|
+
function Zg(e, t) {
|
|
13322
13358
|
return new Date(Date.UTC(e, t, 1)).toISOString();
|
|
13323
13359
|
}
|
|
13324
|
-
function
|
|
13360
|
+
function Qg(e, t, n) {
|
|
13325
13361
|
return new Date(Date.UTC(e, t, n)).toISOString();
|
|
13326
13362
|
}
|
|
13327
|
-
function
|
|
13363
|
+
function $g(e, t, n, r) {
|
|
13328
13364
|
return new Date(Date.UTC(e, t, n, r)).toISOString();
|
|
13329
13365
|
}
|
|
13330
|
-
function
|
|
13366
|
+
function e_(e, t, n, r, i) {
|
|
13331
13367
|
let a = /* @__PURE__ */ new Map(), o = [];
|
|
13332
13368
|
for (let n of e) {
|
|
13333
13369
|
let e = t(n), r = a.get(e);
|
|
@@ -13344,32 +13380,32 @@ function Jg(e, t, n, r, i) {
|
|
|
13344
13380
|
entries: a.get(e) ?? []
|
|
13345
13381
|
}));
|
|
13346
13382
|
}
|
|
13347
|
-
function
|
|
13348
|
-
return String(
|
|
13383
|
+
function t_(e) {
|
|
13384
|
+
return String(Vg(e.date));
|
|
13349
13385
|
}
|
|
13350
|
-
function
|
|
13351
|
-
let t =
|
|
13386
|
+
function n_(e) {
|
|
13387
|
+
let t = Vg(e.date), n = Hg(e.date);
|
|
13352
13388
|
return `${t}-${String(n).padStart(2, "0")}`;
|
|
13353
13389
|
}
|
|
13354
|
-
function
|
|
13355
|
-
let t =
|
|
13390
|
+
function r_(e) {
|
|
13391
|
+
let t = Vg(e.date), n = Hg(e.date), r = Ug(e.date);
|
|
13356
13392
|
return `${t}-${String(n).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
|
|
13357
13393
|
}
|
|
13358
|
-
function
|
|
13359
|
-
let t =
|
|
13394
|
+
function i_(e) {
|
|
13395
|
+
let t = Vg(e.date), n = Hg(e.date), r = Ug(e.date), i = Wg(e.date);
|
|
13360
13396
|
return `${t}-${String(n).padStart(2, "0")}-${String(r).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
|
|
13361
13397
|
}
|
|
13362
|
-
function
|
|
13398
|
+
function a_(e) {
|
|
13363
13399
|
return { year: parseInt(e) };
|
|
13364
13400
|
}
|
|
13365
|
-
function
|
|
13401
|
+
function o_(e) {
|
|
13366
13402
|
let [t, n] = e.split("-");
|
|
13367
13403
|
return {
|
|
13368
13404
|
year: parseInt(t),
|
|
13369
13405
|
month: parseInt(n)
|
|
13370
13406
|
};
|
|
13371
13407
|
}
|
|
13372
|
-
function
|
|
13408
|
+
function s_(e) {
|
|
13373
13409
|
let [t, n, r] = e.split("-");
|
|
13374
13410
|
return {
|
|
13375
13411
|
year: parseInt(t),
|
|
@@ -13377,7 +13413,7 @@ function t_(e) {
|
|
|
13377
13413
|
day: parseInt(r)
|
|
13378
13414
|
};
|
|
13379
13415
|
}
|
|
13380
|
-
function
|
|
13416
|
+
function c_(e) {
|
|
13381
13417
|
let [t, n, r, i] = e.split("-");
|
|
13382
13418
|
return {
|
|
13383
13419
|
year: parseInt(t),
|
|
@@ -13386,63 +13422,63 @@ function n_(e) {
|
|
|
13386
13422
|
hour: parseInt(i)
|
|
13387
13423
|
};
|
|
13388
13424
|
}
|
|
13389
|
-
var
|
|
13425
|
+
var l_ = {
|
|
13390
13426
|
year: 4,
|
|
13391
13427
|
month: 7,
|
|
13392
13428
|
day: 10
|
|
13393
13429
|
};
|
|
13394
|
-
function
|
|
13430
|
+
function u_(e, t, n) {
|
|
13395
13431
|
if (t === null || n === "hour") return e;
|
|
13396
|
-
let r =
|
|
13432
|
+
let r = l_[n];
|
|
13397
13433
|
if (r === void 0) return e;
|
|
13398
13434
|
let i = t.slice(0, r);
|
|
13399
13435
|
return e.filter((e) => e.periodStart.slice(0, r) === i);
|
|
13400
13436
|
}
|
|
13401
|
-
function
|
|
13437
|
+
function d_(e, t, n = "desc") {
|
|
13402
13438
|
if (e.length === 0) return [];
|
|
13403
13439
|
let r = e.filter((e) => !isNaN(new Date(e.date).getTime()));
|
|
13404
13440
|
if (r.length === 0) return [];
|
|
13405
13441
|
switch (t) {
|
|
13406
|
-
case "year": return
|
|
13407
|
-
let { year: t } =
|
|
13408
|
-
return
|
|
13442
|
+
case "year": return e_(r, t_, (e) => {
|
|
13443
|
+
let { year: t } = a_(e);
|
|
13444
|
+
return Gg(t);
|
|
13409
13445
|
}, (e) => {
|
|
13410
|
-
let { year: t } =
|
|
13411
|
-
return
|
|
13446
|
+
let { year: t } = a_(e);
|
|
13447
|
+
return Xg(t);
|
|
13412
13448
|
}, n);
|
|
13413
|
-
case "month": return
|
|
13414
|
-
let { year: t, month: n } =
|
|
13415
|
-
return
|
|
13449
|
+
case "month": return e_(r, n_, (e) => {
|
|
13450
|
+
let { year: t, month: n } = o_(e);
|
|
13451
|
+
return Kg(t, n);
|
|
13416
13452
|
}, (e) => {
|
|
13417
|
-
let { year: t, month: n } =
|
|
13418
|
-
return
|
|
13453
|
+
let { year: t, month: n } = o_(e);
|
|
13454
|
+
return Zg(t, n);
|
|
13419
13455
|
}, n);
|
|
13420
|
-
case "day": return
|
|
13421
|
-
let { year: t, month: n, day: r } =
|
|
13422
|
-
return
|
|
13456
|
+
case "day": return e_(r, r_, (e) => {
|
|
13457
|
+
let { year: t, month: n, day: r } = s_(e);
|
|
13458
|
+
return qg(t, n, r);
|
|
13423
13459
|
}, (e) => {
|
|
13424
|
-
let { year: t, month: n, day: r } =
|
|
13425
|
-
return
|
|
13460
|
+
let { year: t, month: n, day: r } = s_(e);
|
|
13461
|
+
return Qg(t, n, r);
|
|
13426
13462
|
}, n);
|
|
13427
|
-
case "hour": return
|
|
13428
|
-
let { year: t, month: n, day: r, hour: i } =
|
|
13429
|
-
return
|
|
13463
|
+
case "hour": return e_(r, i_, (e) => {
|
|
13464
|
+
let { year: t, month: n, day: r, hour: i } = c_(e);
|
|
13465
|
+
return Jg(t, n, r, i);
|
|
13430
13466
|
}, (e) => {
|
|
13431
|
-
let { year: t, month: n, day: r, hour: i } =
|
|
13432
|
-
return
|
|
13467
|
+
let { year: t, month: n, day: r, hour: i } = c_(e);
|
|
13468
|
+
return $g(t, n, r, i);
|
|
13433
13469
|
}, n);
|
|
13434
13470
|
}
|
|
13435
13471
|
}
|
|
13436
13472
|
//#endregion
|
|
13437
13473
|
//#region src/components/TimelineContainer/components/ZoomControls.tsx
|
|
13438
|
-
var
|
|
13474
|
+
var f_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i, onReset: a, breadcrumbs: o = [], onBreadcrumbClick: s }) => {
|
|
13439
13475
|
let c = o.length > 0;
|
|
13440
13476
|
return /* @__PURE__ */ S("div", {
|
|
13441
13477
|
className: "timeline-zoom-controls",
|
|
13442
13478
|
role: "toolbar",
|
|
13443
13479
|
"aria-label": "Timeline zoom controls",
|
|
13444
13480
|
children: [
|
|
13445
|
-
/* @__PURE__ */ x(
|
|
13481
|
+
/* @__PURE__ */ x(_m, {
|
|
13446
13482
|
variant: "secondary",
|
|
13447
13483
|
size: "small",
|
|
13448
13484
|
onClick: i,
|
|
@@ -13450,7 +13486,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13450
13486
|
"aria-label": "Zoom out",
|
|
13451
13487
|
children: "[-]"
|
|
13452
13488
|
}),
|
|
13453
|
-
c ? /* @__PURE__ */ x(
|
|
13489
|
+
c ? /* @__PURE__ */ x(Tg, {
|
|
13454
13490
|
trail: [{
|
|
13455
13491
|
label: "ALL",
|
|
13456
13492
|
onClick: a
|
|
@@ -13466,13 +13502,13 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13466
13502
|
className: "timeline-zoom-controls__level",
|
|
13467
13503
|
onPress: a,
|
|
13468
13504
|
"aria-label": `Current zoom: ${e}. Click to reset.`,
|
|
13469
|
-
children: /* @__PURE__ */ x(
|
|
13505
|
+
children: /* @__PURE__ */ x(yg, {
|
|
13470
13506
|
variant: "accent",
|
|
13471
13507
|
size: "medium",
|
|
13472
13508
|
children: e.toUpperCase()
|
|
13473
13509
|
})
|
|
13474
13510
|
}),
|
|
13475
|
-
/* @__PURE__ */ x(
|
|
13511
|
+
/* @__PURE__ */ x(_m, {
|
|
13476
13512
|
variant: "secondary",
|
|
13477
13513
|
size: "small",
|
|
13478
13514
|
onClick: r,
|
|
@@ -13482,7 +13518,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13482
13518
|
})
|
|
13483
13519
|
]
|
|
13484
13520
|
});
|
|
13485
|
-
},
|
|
13521
|
+
}, p_ = ({ children: e }) => /* @__PURE__ */ S("div", {
|
|
13486
13522
|
className: "timeline-axis",
|
|
13487
13523
|
children: [/* @__PURE__ */ x("div", {
|
|
13488
13524
|
className: "timeline-axis__line",
|
|
@@ -13491,7 +13527,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13491
13527
|
className: "timeline-axis__content",
|
|
13492
13528
|
children: e
|
|
13493
13529
|
})]
|
|
13494
|
-
}),
|
|
13530
|
+
}), m_ = e.memo(({ buckets: e, onBucketClick: t }) => /* @__PURE__ */ x("div", {
|
|
13495
13531
|
className: "timeline-view timeline-view--year",
|
|
13496
13532
|
role: "list",
|
|
13497
13533
|
children: e.map((e) => /* @__PURE__ */ x("div", {
|
|
@@ -13502,7 +13538,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13502
13538
|
onPress: () => t(e),
|
|
13503
13539
|
children: [/* @__PURE__ */ x("div", {
|
|
13504
13540
|
className: "timeline-view__node",
|
|
13505
|
-
children: /* @__PURE__ */ x(
|
|
13541
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
13506
13542
|
shape: "circle",
|
|
13507
13543
|
size: "medium",
|
|
13508
13544
|
variant: "default",
|
|
@@ -13511,7 +13547,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13511
13547
|
})
|
|
13512
13548
|
}), /* @__PURE__ */ x("div", {
|
|
13513
13549
|
className: "timeline-view__content",
|
|
13514
|
-
children: /* @__PURE__ */ S(
|
|
13550
|
+
children: /* @__PURE__ */ S(yg, {
|
|
13515
13551
|
variant: "default",
|
|
13516
13552
|
size: "small",
|
|
13517
13553
|
children: [
|
|
@@ -13523,7 +13559,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13523
13559
|
})]
|
|
13524
13560
|
}) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
13525
13561
|
className: "timeline-view__node",
|
|
13526
|
-
children: /* @__PURE__ */ x(
|
|
13562
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
13527
13563
|
shape: "circle",
|
|
13528
13564
|
size: "medium",
|
|
13529
13565
|
variant: "default",
|
|
@@ -13532,7 +13568,7 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13532
13568
|
})
|
|
13533
13569
|
}), /* @__PURE__ */ x("div", {
|
|
13534
13570
|
className: "timeline-view__content",
|
|
13535
|
-
children: /* @__PURE__ */ S(
|
|
13571
|
+
children: /* @__PURE__ */ S(yg, {
|
|
13536
13572
|
variant: "default",
|
|
13537
13573
|
size: "small",
|
|
13538
13574
|
children: [
|
|
@@ -13544,21 +13580,21 @@ var o_ = ({ zoomLevel: e, canZoomIn: t, canZoomOut: n, onZoomIn: r, onZoomOut: i
|
|
|
13544
13580
|
})] })
|
|
13545
13581
|
}, e.periodStart))
|
|
13546
13582
|
}));
|
|
13547
|
-
|
|
13583
|
+
m_.displayName = "YearView";
|
|
13548
13584
|
//#endregion
|
|
13549
13585
|
//#region src/components/DosDialog/components/DosDialog.tsx
|
|
13550
|
-
function
|
|
13586
|
+
function h_(e) {
|
|
13551
13587
|
return typeof e == "object" && !!e && !a(e) && !Array.isArray(e) && "title" in e;
|
|
13552
13588
|
}
|
|
13553
|
-
var
|
|
13554
|
-
let
|
|
13589
|
+
var g_ = i(({ open: e, onOpenChange: t, inline: n = !1, placement: r = "center", size: i = "md", head: a, footer: o, isDismissable: s = !0, "aria-label": u, "aria-labelledby": d, className: f, children: p }, m) => {
|
|
13590
|
+
let h = l(), g = om(), _ = h_(a) ? a : null, v = d ?? (!u && _ && !_.decorative ? h : void 0), y = e && !n && !u && !v;
|
|
13555
13591
|
c(() => {
|
|
13556
|
-
|
|
13557
|
-
}, [
|
|
13558
|
-
let
|
|
13559
|
-
if (
|
|
13560
|
-
let { title: e, end: t, marker: n = !0, decorative: r = !1 } =
|
|
13561
|
-
|
|
13592
|
+
y && process.env.NODE_ENV !== "production" && console.warn("[eidotter] DosDialog has no accessible name. A ReactNode or decorative head does not name the dialog: pass aria-label or aria-labelledby.");
|
|
13593
|
+
}, [y]);
|
|
13594
|
+
let C = null;
|
|
13595
|
+
if (_) {
|
|
13596
|
+
let { title: e, end: t, marker: n = !0, decorative: r = !1 } = _;
|
|
13597
|
+
C = /* @__PURE__ */ S("div", {
|
|
13562
13598
|
className: "eidotter-dialog__head",
|
|
13563
13599
|
"aria-hidden": r || void 0,
|
|
13564
13600
|
children: [/* @__PURE__ */ S("div", {
|
|
@@ -13568,7 +13604,7 @@ var u_ = i(({ open: e, onOpenChange: t, placement: n = "center", size: r = "md",
|
|
|
13568
13604
|
"aria-hidden": "true",
|
|
13569
13605
|
children: "▸"
|
|
13570
13606
|
}), /* @__PURE__ */ x(r ? "span" : "h2", {
|
|
13571
|
-
id:
|
|
13607
|
+
id: h,
|
|
13572
13608
|
className: "eidotter-dialog__title",
|
|
13573
13609
|
children: e
|
|
13574
13610
|
})]
|
|
@@ -13577,41 +13613,52 @@ var u_ = i(({ open: e, onOpenChange: t, placement: n = "center", size: r = "md",
|
|
|
13577
13613
|
children: t
|
|
13578
13614
|
})]
|
|
13579
13615
|
});
|
|
13580
|
-
} else
|
|
13616
|
+
} else a != null && a !== !1 && (C = /* @__PURE__ */ x("div", {
|
|
13581
13617
|
className: "eidotter-dialog__head",
|
|
13582
|
-
children:
|
|
13618
|
+
children: a
|
|
13583
13619
|
}));
|
|
13584
|
-
|
|
13620
|
+
let w = /* @__PURE__ */ S(b, { children: [
|
|
13621
|
+
C,
|
|
13622
|
+
/* @__PURE__ */ x("div", {
|
|
13623
|
+
className: "eidotter-dialog__body",
|
|
13624
|
+
children: p
|
|
13625
|
+
}),
|
|
13626
|
+
o != null && o !== !1 && /* @__PURE__ */ x("div", {
|
|
13627
|
+
className: "eidotter-dialog__footer",
|
|
13628
|
+
children: o
|
|
13629
|
+
})
|
|
13630
|
+
] });
|
|
13631
|
+
return n ? e ? /* @__PURE__ */ x("div", {
|
|
13632
|
+
className: $("eidotter-dialog", `eidotter-dialog--${i}`, `eidotter-dialog--${r}`, "eidotter-dialog--inline"),
|
|
13633
|
+
children: /* @__PURE__ */ x("div", {
|
|
13634
|
+
ref: m,
|
|
13635
|
+
role: "group",
|
|
13636
|
+
"aria-label": u,
|
|
13637
|
+
"aria-labelledby": v,
|
|
13638
|
+
className: $("eidotter-dialog__container outline-none", f),
|
|
13639
|
+
children: w
|
|
13640
|
+
})
|
|
13641
|
+
}) : null : /* @__PURE__ */ x(kd, {
|
|
13585
13642
|
isOpen: e,
|
|
13586
13643
|
onOpenChange: t,
|
|
13587
|
-
isDismissable:
|
|
13588
|
-
className: ({ isEntering: e, isExiting: t }) => $("eidotter-dialog__overlay", `eidotter-dialog__overlay--${
|
|
13644
|
+
isDismissable: s,
|
|
13645
|
+
className: ({ isEntering: e, isExiting: t }) => $("eidotter-dialog__overlay", `eidotter-dialog__overlay--${r}`, !g && e && "eidotter-dialog__overlay--entering", !g && t && "eidotter-dialog__overlay--exiting"),
|
|
13589
13646
|
children: /* @__PURE__ */ x(Dd, {
|
|
13590
|
-
className: ({ isEntering: e, isExiting: t }) => $("eidotter-dialog", `eidotter-dialog--${
|
|
13591
|
-
children: /* @__PURE__ */
|
|
13592
|
-
ref:
|
|
13593
|
-
"aria-label":
|
|
13594
|
-
"aria-labelledby":
|
|
13595
|
-
className: $("eidotter-dialog__container outline-none",
|
|
13596
|
-
children:
|
|
13597
|
-
y,
|
|
13598
|
-
/* @__PURE__ */ x("div", {
|
|
13599
|
-
className: "eidotter-dialog__body",
|
|
13600
|
-
children: f
|
|
13601
|
-
}),
|
|
13602
|
-
a != null && a !== !1 && /* @__PURE__ */ x("div", {
|
|
13603
|
-
className: "eidotter-dialog__footer",
|
|
13604
|
-
children: a
|
|
13605
|
-
})
|
|
13606
|
-
]
|
|
13647
|
+
className: ({ isEntering: e, isExiting: t }) => $("eidotter-dialog", `eidotter-dialog--${i}`, `eidotter-dialog--${r}`, !g && e && "eidotter-dialog--entering", !g && t && "eidotter-dialog--exiting"),
|
|
13648
|
+
children: /* @__PURE__ */ x(Su, {
|
|
13649
|
+
ref: m,
|
|
13650
|
+
"aria-label": u,
|
|
13651
|
+
"aria-labelledby": v,
|
|
13652
|
+
className: $("eidotter-dialog__container outline-none", f),
|
|
13653
|
+
children: w
|
|
13607
13654
|
})
|
|
13608
13655
|
})
|
|
13609
13656
|
});
|
|
13610
13657
|
});
|
|
13611
|
-
|
|
13658
|
+
g_.displayName = "DosDialog";
|
|
13612
13659
|
//#endregion
|
|
13613
13660
|
//#region src/components/Lightbox/components/Lightbox.tsx
|
|
13614
|
-
var
|
|
13661
|
+
var __ = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange: a }) => {
|
|
13615
13662
|
let s = t.length === 0 ? 0 : Math.max(0, Math.min(n, t.length - 1)), [l, u] = m(s);
|
|
13616
13663
|
c(() => {
|
|
13617
13664
|
r && u(s);
|
|
@@ -13644,7 +13691,7 @@ var d_ = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange
|
|
|
13644
13691
|
p
|
|
13645
13692
|
]), t.length === 0) return null;
|
|
13646
13693
|
let v = Math.max(0, Math.min(l, t.length - 1)), y = t[v], b = v > 0, C = v < t.length - 1;
|
|
13647
|
-
return /* @__PURE__ */ x(
|
|
13694
|
+
return /* @__PURE__ */ x(g_, {
|
|
13648
13695
|
open: r,
|
|
13649
13696
|
onOpenChange: (e) => {
|
|
13650
13697
|
e || i();
|
|
@@ -13665,7 +13712,7 @@ var d_ = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange
|
|
|
13665
13712
|
" ]"
|
|
13666
13713
|
]
|
|
13667
13714
|
}),
|
|
13668
|
-
end: /* @__PURE__ */ x(
|
|
13715
|
+
end: /* @__PURE__ */ x(am, {
|
|
13669
13716
|
icon: "Close",
|
|
13670
13717
|
label: "Close lightbox",
|
|
13671
13718
|
className: "eidotter-lightbox__close",
|
|
@@ -13684,14 +13731,14 @@ var d_ = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange
|
|
|
13684
13731
|
onTouchStart: g,
|
|
13685
13732
|
onTouchEnd: _
|
|
13686
13733
|
}),
|
|
13687
|
-
/* @__PURE__ */ x(
|
|
13734
|
+
/* @__PURE__ */ x(am, {
|
|
13688
13735
|
icon: "Chevron Left",
|
|
13689
13736
|
label: "Previous image",
|
|
13690
13737
|
className: "eidotter-lightbox__nav eidotter-lightbox__nav--prev",
|
|
13691
13738
|
onPress: f,
|
|
13692
13739
|
isDisabled: !b
|
|
13693
13740
|
}),
|
|
13694
|
-
/* @__PURE__ */ x(
|
|
13741
|
+
/* @__PURE__ */ x(am, {
|
|
13695
13742
|
icon: "Chevron Right",
|
|
13696
13743
|
label: "Next image",
|
|
13697
13744
|
className: "eidotter-lightbox__nav eidotter-lightbox__nav--next",
|
|
@@ -13706,11 +13753,11 @@ var d_ = ({ images: t, initialIndex: n = 0, isOpen: r, onClose: i, onIndexChange
|
|
|
13706
13753
|
})
|
|
13707
13754
|
});
|
|
13708
13755
|
};
|
|
13709
|
-
|
|
13756
|
+
__.displayName = "Lightbox";
|
|
13710
13757
|
//#endregion
|
|
13711
13758
|
//#region src/components/TimelineContainer/components/variants/TimelineEntryCardImage.tsx
|
|
13712
|
-
var
|
|
13713
|
-
let [r, i] = m(!1), { image: a } = e, o = a.thumbnail || a.src, s = a.link &&
|
|
13759
|
+
var v_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
13760
|
+
let [r, i] = m(!1), { image: a } = e, o = a.thumbnail || a.src, s = a.link && Cg(a.link) ? a.link : void 0;
|
|
13714
13761
|
return c(() => {
|
|
13715
13762
|
t || i(!1);
|
|
13716
13763
|
}, [t]), s ? /* @__PURE__ */ S("a", {
|
|
@@ -13758,13 +13805,13 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13758
13805
|
height: a.height
|
|
13759
13806
|
})
|
|
13760
13807
|
}),
|
|
13761
|
-
/* @__PURE__ */ x(
|
|
13808
|
+
/* @__PURE__ */ x(__, {
|
|
13762
13809
|
images: [a],
|
|
13763
13810
|
isOpen: r,
|
|
13764
13811
|
onClose: () => i(!1)
|
|
13765
13812
|
})
|
|
13766
13813
|
] });
|
|
13767
|
-
},
|
|
13814
|
+
}, y_ = ({ images: e, isExpanded: t }) => {
|
|
13768
13815
|
let [n, r] = m({ phase: "grid" });
|
|
13769
13816
|
if (c(() => {
|
|
13770
13817
|
t || r({ phase: "grid" });
|
|
@@ -13772,7 +13819,7 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13772
13819
|
r((t) => t.phase === "grid" ? t : t.index >= e.length ? { phase: "grid" } : t);
|
|
13773
13820
|
}, [e.length]), e.length === 0) return null;
|
|
13774
13821
|
let i = (e, t) => {
|
|
13775
|
-
t.link &&
|
|
13822
|
+
t.link && Cg(t.link) || r((t) => t.phase === "focused" && t.index === e ? {
|
|
13776
13823
|
phase: "lightbox",
|
|
13777
13824
|
index: e
|
|
13778
13825
|
} : {
|
|
@@ -13783,12 +13830,12 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13783
13830
|
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
13784
13831
|
className: "eidotter-timeline-card-gallery__grid",
|
|
13785
13832
|
role: "list",
|
|
13786
|
-
children: e.map((e, t) => /* @__PURE__ */ x(
|
|
13833
|
+
children: e.map((e, t) => /* @__PURE__ */ x(b_, {
|
|
13787
13834
|
image: e,
|
|
13788
13835
|
isFocused: a === t,
|
|
13789
13836
|
onClick: () => i(t, e)
|
|
13790
13837
|
}, t))
|
|
13791
|
-
}), /* @__PURE__ */ x(
|
|
13838
|
+
}), /* @__PURE__ */ x(__, {
|
|
13792
13839
|
images: e,
|
|
13793
13840
|
isOpen: n.phase === "lightbox",
|
|
13794
13841
|
initialIndex: n.phase === "lightbox" ? n.index : 0,
|
|
@@ -13805,8 +13852,8 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13805
13852
|
} : t);
|
|
13806
13853
|
}
|
|
13807
13854
|
})] });
|
|
13808
|
-
},
|
|
13809
|
-
let r = e.thumbnail || e.src, i = e.link &&
|
|
13855
|
+
}, b_ = ({ image: e, isFocused: t, onClick: n }) => {
|
|
13856
|
+
let r = e.thumbnail || e.src, i = e.link && Cg(e.link) ? e.link : void 0;
|
|
13810
13857
|
return i ? /* @__PURE__ */ x("div", {
|
|
13811
13858
|
role: "listitem",
|
|
13812
13859
|
className: "eidotter-timeline-card-gallery__cell eidotter-timeline-card-gallery__cell--link",
|
|
@@ -13840,7 +13887,7 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13840
13887
|
})
|
|
13841
13888
|
})
|
|
13842
13889
|
});
|
|
13843
|
-
},
|
|
13890
|
+
}, x_ = ({ entry: e, isExpanded: t, onSelect: n }) => e.images.length === 0 ? (process.env.NODE_ENV !== "production" && console.error(`[eidotter] TimelineEntryCard kind="gallery" entry "${e.id}" has no images.`), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("p", {
|
|
13844
13891
|
className: "eidotter-timeline-card__title",
|
|
13845
13892
|
children: e.title
|
|
13846
13893
|
}), /* @__PURE__ */ x("p", {
|
|
@@ -13854,11 +13901,11 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13854
13901
|
className: "eidotter-timeline-card__title",
|
|
13855
13902
|
children: e.title
|
|
13856
13903
|
})
|
|
13857
|
-
}), /* @__PURE__ */ x(
|
|
13904
|
+
}), /* @__PURE__ */ x(y_, {
|
|
13858
13905
|
images: e.images,
|
|
13859
13906
|
isExpanded: t
|
|
13860
|
-
})] }),
|
|
13861
|
-
let { summary: i, content: a, href: o, hrefLabel: s } = e, c = e.images ?? [], l = c.length > 0, u = o &&
|
|
13907
|
+
})] }), S_ = 4, C_ = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
13908
|
+
let { summary: i, content: a, href: o, hrefLabel: s } = e, c = e.images ?? [], l = c.length > 0, u = o && Cg(o) ? o : void 0, d = l || a != null || u !== void 0, f = c.slice(0, S_), p = c.length - f.length;
|
|
13862
13909
|
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S(pi, {
|
|
13863
13910
|
className: "eidotter-timeline-card__trigger",
|
|
13864
13911
|
onPress: () => n?.(e.id),
|
|
@@ -13908,7 +13955,7 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13908
13955
|
className: "eidotter-timeline-card__body-inner",
|
|
13909
13956
|
inert: !t || void 0,
|
|
13910
13957
|
children: [
|
|
13911
|
-
l && /* @__PURE__ */ x(
|
|
13958
|
+
l && /* @__PURE__ */ x(y_, {
|
|
13912
13959
|
images: c,
|
|
13913
13960
|
isExpanded: t
|
|
13914
13961
|
}),
|
|
@@ -13928,45 +13975,45 @@ var f_ = ({ entry: e, isExpanded: t, onSelect: n }) => {
|
|
|
13928
13975
|
]
|
|
13929
13976
|
})
|
|
13930
13977
|
})] });
|
|
13931
|
-
},
|
|
13978
|
+
}, w_ = e.memo(({ entry: e, isSelected: t, isExpanded: n = !1, onSelect: r, footer: i, children: a }) => /* @__PURE__ */ S("div", {
|
|
13932
13979
|
className: $("eidotter-timeline-card", t && "eidotter-timeline-card--selected", n && "eidotter-timeline-card--expanded"),
|
|
13933
|
-
children: [
|
|
13980
|
+
children: [T_(e, n, r, a), i && /* @__PURE__ */ x("div", {
|
|
13934
13981
|
className: "eidotter-timeline-card__footer",
|
|
13935
13982
|
children: i
|
|
13936
13983
|
})]
|
|
13937
13984
|
}));
|
|
13938
|
-
|
|
13939
|
-
function
|
|
13985
|
+
w_.displayName = "TimelineEntryCard";
|
|
13986
|
+
function T_(e, t, n, r) {
|
|
13940
13987
|
switch (e.kind) {
|
|
13941
|
-
case "text": return /* @__PURE__ */ x(
|
|
13988
|
+
case "text": return /* @__PURE__ */ x(D_, {
|
|
13942
13989
|
entry: e,
|
|
13943
13990
|
isExpanded: t,
|
|
13944
13991
|
onSelect: n,
|
|
13945
13992
|
children: r
|
|
13946
13993
|
});
|
|
13947
|
-
case "image": return /* @__PURE__ */ x(
|
|
13994
|
+
case "image": return /* @__PURE__ */ x(v_, {
|
|
13948
13995
|
entry: e,
|
|
13949
13996
|
isExpanded: t,
|
|
13950
13997
|
onSelect: n
|
|
13951
13998
|
});
|
|
13952
|
-
case "gallery": return /* @__PURE__ */ x(
|
|
13999
|
+
case "gallery": return /* @__PURE__ */ x(x_, {
|
|
13953
14000
|
entry: e,
|
|
13954
14001
|
isExpanded: t,
|
|
13955
14002
|
onSelect: n
|
|
13956
14003
|
});
|
|
13957
|
-
case "article": return /* @__PURE__ */ x(
|
|
14004
|
+
case "article": return /* @__PURE__ */ x(C_, {
|
|
13958
14005
|
entry: e,
|
|
13959
14006
|
isExpanded: t,
|
|
13960
14007
|
onSelect: n,
|
|
13961
14008
|
children: r
|
|
13962
14009
|
});
|
|
13963
|
-
default: return
|
|
14010
|
+
default: return E_(e);
|
|
13964
14011
|
}
|
|
13965
14012
|
}
|
|
13966
|
-
function
|
|
14013
|
+
function E_(e) {
|
|
13967
14014
|
throw Error(`TimelineEntryCard: unhandled entry kind: ${JSON.stringify(e)}`);
|
|
13968
14015
|
}
|
|
13969
|
-
var
|
|
14016
|
+
var D_ = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
13970
14017
|
let i = typeof e.content == "string", a = e.content != null;
|
|
13971
14018
|
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S(pi, {
|
|
13972
14019
|
className: "eidotter-timeline-card__trigger",
|
|
@@ -14004,7 +14051,7 @@ var x_ = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
14004
14051
|
children: e.content
|
|
14005
14052
|
})
|
|
14006
14053
|
})] });
|
|
14007
|
-
},
|
|
14054
|
+
}, O_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, onBucketClick: i, renderEntry: a }) => /* @__PURE__ */ x("div", {
|
|
14008
14055
|
className: "timeline-view timeline-view--month",
|
|
14009
14056
|
role: "list",
|
|
14010
14057
|
children: t.map((t) => /* @__PURE__ */ S("div", {
|
|
@@ -14012,7 +14059,7 @@ var x_ = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
14012
14059
|
role: "listitem",
|
|
14013
14060
|
children: [/* @__PURE__ */ x("div", {
|
|
14014
14061
|
className: "timeline-view__node",
|
|
14015
|
-
children: /* @__PURE__ */ x(
|
|
14062
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
14016
14063
|
shape: "circle",
|
|
14017
14064
|
size: "medium",
|
|
14018
14065
|
variant: "default",
|
|
@@ -14023,7 +14070,7 @@ var x_ = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
14023
14070
|
}), /* @__PURE__ */ x("div", {
|
|
14024
14071
|
className: "timeline-view__content",
|
|
14025
14072
|
children: t.entries.map((t) => {
|
|
14026
|
-
let i = n === t.id, o = () => /* @__PURE__ */ x(
|
|
14073
|
+
let i = n === t.id, o = () => /* @__PURE__ */ x(w_, {
|
|
14027
14074
|
entry: t,
|
|
14028
14075
|
isSelected: i,
|
|
14029
14076
|
isExpanded: i,
|
|
@@ -14038,23 +14085,23 @@ var x_ = ({ entry: e, isExpanded: t, onSelect: n, children: r }) => {
|
|
|
14038
14085
|
})]
|
|
14039
14086
|
}, t.periodStart))
|
|
14040
14087
|
}));
|
|
14041
|
-
|
|
14088
|
+
O_.displayName = "MonthView";
|
|
14042
14089
|
//#endregion
|
|
14043
14090
|
//#region src/components/Tag/components/Tag.tsx
|
|
14044
|
-
var
|
|
14091
|
+
var k_ = {
|
|
14045
14092
|
sm: "text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",
|
|
14046
14093
|
md: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",
|
|
14047
14094
|
lg: "text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",
|
|
14048
14095
|
small: "text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",
|
|
14049
14096
|
medium: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"
|
|
14050
|
-
},
|
|
14051
|
-
let f = !!s && !o, { isClosing: p, triggerClose: m, handleAnimationEnd: h } =
|
|
14097
|
+
}, A_ = ({ 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 }) => {
|
|
14098
|
+
let f = !!s && !o, { isClosing: p, triggerClose: m, handleAnimationEnd: h } = sm("eidotter-pop-out", c), g = (e) => {
|
|
14052
14099
|
o || ((e.key === "Enter" || e.key === " ") && s && (e.preventDefault(), s(e)), (e.key === "Delete" || e.key === "Backspace") && a && c && (e.preventDefault(), m()));
|
|
14053
14100
|
}, _ = () => {
|
|
14054
14101
|
o || m();
|
|
14055
14102
|
}, v = r ? { "--tag-color": "var(" + r + ")" } : void 0;
|
|
14056
14103
|
return /* @__PURE__ */ S("span", {
|
|
14057
|
-
className: $("inline-flex items-center justify-center", "font-dos leading-none whitespace-nowrap select-none", "rounded-dos-sm uppercase tracking-wider",
|
|
14104
|
+
className: $("inline-flex items-center justify-center", "font-dos leading-none whitespace-nowrap select-none", "rounded-dos-sm uppercase tracking-wider", k_[n] || k_.md, "eidotter-tag", "eidotter-tag--" + t, i && "eidotter-tag--selected", o && "opacity-50 cursor-not-allowed", p && "eidotter-tag--closing", f && "cursor-pointer", l),
|
|
14058
14105
|
style: v,
|
|
14059
14106
|
onClick: f ? (e) => !o && s?.(e) : void 0,
|
|
14060
14107
|
onKeyDown: g,
|
|
@@ -14071,7 +14118,7 @@ var C_ = {
|
|
|
14071
14118
|
children: [/* @__PURE__ */ x("span", {
|
|
14072
14119
|
className: "eidotter-tag__content",
|
|
14073
14120
|
children: e
|
|
14074
|
-
}), a && /* @__PURE__ */ x(
|
|
14121
|
+
}), a && /* @__PURE__ */ x(am, {
|
|
14075
14122
|
icon: "Close",
|
|
14076
14123
|
label: "Remove " + (typeof e == "string" ? e : "tag"),
|
|
14077
14124
|
variant: "bare",
|
|
@@ -14081,17 +14128,17 @@ var C_ = {
|
|
|
14081
14128
|
isDisabled: o
|
|
14082
14129
|
})]
|
|
14083
14130
|
});
|
|
14084
|
-
},
|
|
14131
|
+
}, j_ = {
|
|
14085
14132
|
tight: "gap-1",
|
|
14086
14133
|
normal: "gap-2",
|
|
14087
14134
|
loose: "gap-3"
|
|
14088
|
-
},
|
|
14089
|
-
className: $("flex", n ? "flex-wrap" : "flex-nowrap",
|
|
14135
|
+
}, M_ = ({ children: e, gap: t = "normal", wrap: n = !0, className: r, "aria-label": i, ...a }) => /* @__PURE__ */ x("div", {
|
|
14136
|
+
className: $("flex", n ? "flex-wrap" : "flex-nowrap", j_[t] || j_.normal, r),
|
|
14090
14137
|
role: "group",
|
|
14091
14138
|
"aria-label": i,
|
|
14092
14139
|
...a,
|
|
14093
14140
|
children: e
|
|
14094
|
-
}),
|
|
14141
|
+
}), N_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry: i }) => /* @__PURE__ */ x("div", {
|
|
14095
14142
|
className: "timeline-view timeline-view--day",
|
|
14096
14143
|
role: "list",
|
|
14097
14144
|
children: t.map((t) => /* @__PURE__ */ S("div", {
|
|
@@ -14099,7 +14146,7 @@ var C_ = {
|
|
|
14099
14146
|
role: "listitem",
|
|
14100
14147
|
children: [/* @__PURE__ */ x("div", {
|
|
14101
14148
|
className: "timeline-view__node",
|
|
14102
|
-
children: /* @__PURE__ */ x(
|
|
14149
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
14103
14150
|
shape: "circle",
|
|
14104
14151
|
size: "medium",
|
|
14105
14152
|
variant: "default",
|
|
@@ -14109,15 +14156,15 @@ var C_ = {
|
|
|
14109
14156
|
}), /* @__PURE__ */ x("div", {
|
|
14110
14157
|
className: "timeline-view__content",
|
|
14111
14158
|
children: t.entries.map((t) => {
|
|
14112
|
-
let a = n === t.id, o = () => /* @__PURE__ */ x(
|
|
14159
|
+
let a = n === t.id, o = () => /* @__PURE__ */ x(w_, {
|
|
14113
14160
|
entry: t,
|
|
14114
14161
|
isSelected: a,
|
|
14115
14162
|
isExpanded: a,
|
|
14116
14163
|
onSelect: r,
|
|
14117
|
-
footer: t.tags && t.tags.length > 0 ? /* @__PURE__ */ x(
|
|
14164
|
+
footer: t.tags && t.tags.length > 0 ? /* @__PURE__ */ x(M_, {
|
|
14118
14165
|
gap: "tight",
|
|
14119
14166
|
"aria-label": `Tags for ${t.title}`,
|
|
14120
|
-
children: t.tags.map((e) => /* @__PURE__ */ x(
|
|
14167
|
+
children: t.tags.map((e) => /* @__PURE__ */ x(A_, {
|
|
14121
14168
|
size: "small",
|
|
14122
14169
|
variant: "outlined",
|
|
14123
14170
|
children: e
|
|
@@ -14133,10 +14180,10 @@ var C_ = {
|
|
|
14133
14180
|
})]
|
|
14134
14181
|
}, t.periodStart))
|
|
14135
14182
|
}));
|
|
14136
|
-
|
|
14183
|
+
N_.displayName = "DayView";
|
|
14137
14184
|
//#endregion
|
|
14138
14185
|
//#region src/components/TimelineContainer/components/views/HourView.tsx
|
|
14139
|
-
var
|
|
14186
|
+
var P_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry: i }) => /* @__PURE__ */ x("div", {
|
|
14140
14187
|
className: "timeline-view timeline-view--hour",
|
|
14141
14188
|
role: "list",
|
|
14142
14189
|
children: t.map((t) => /* @__PURE__ */ S("div", {
|
|
@@ -14144,7 +14191,7 @@ var O_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
14144
14191
|
role: "listitem",
|
|
14145
14192
|
children: [/* @__PURE__ */ x("div", {
|
|
14146
14193
|
className: "timeline-view__node",
|
|
14147
|
-
children: /* @__PURE__ */ x(
|
|
14194
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
14148
14195
|
shape: "circle",
|
|
14149
14196
|
size: "medium",
|
|
14150
14197
|
variant: "default",
|
|
@@ -14154,22 +14201,22 @@ var O_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
14154
14201
|
}), /* @__PURE__ */ x("div", {
|
|
14155
14202
|
className: "timeline-view__content",
|
|
14156
14203
|
children: t.entries.map((t) => {
|
|
14157
|
-
let a = n === t.id, o = () => /* @__PURE__ */ S(
|
|
14204
|
+
let a = n === t.id, o = () => /* @__PURE__ */ S(w_, {
|
|
14158
14205
|
entry: t,
|
|
14159
14206
|
isSelected: a,
|
|
14160
14207
|
isExpanded: !0,
|
|
14161
14208
|
onSelect: r,
|
|
14162
14209
|
footer: /* @__PURE__ */ S("div", {
|
|
14163
14210
|
className: "timeline-view__entry-footer",
|
|
14164
|
-
children: [t.tags && t.tags.length > 0 && /* @__PURE__ */ x(
|
|
14211
|
+
children: [t.tags && t.tags.length > 0 && /* @__PURE__ */ x(M_, {
|
|
14165
14212
|
gap: "tight",
|
|
14166
14213
|
"aria-label": `Tags for ${t.title}`,
|
|
14167
|
-
children: t.tags.map((e) => /* @__PURE__ */ x(
|
|
14214
|
+
children: t.tags.map((e) => /* @__PURE__ */ x(A_, {
|
|
14168
14215
|
size: "small",
|
|
14169
14216
|
variant: "outlined",
|
|
14170
14217
|
children: e
|
|
14171
14218
|
}, e))
|
|
14172
|
-
}), t.type && /* @__PURE__ */ x(
|
|
14219
|
+
}), t.type && /* @__PURE__ */ x(yg, {
|
|
14173
14220
|
variant: "default",
|
|
14174
14221
|
size: "small",
|
|
14175
14222
|
children: t.type
|
|
@@ -14179,7 +14226,7 @@ var O_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
14179
14226
|
/* @__PURE__ */ x("time", {
|
|
14180
14227
|
className: "timeline-view__timestamp",
|
|
14181
14228
|
dateTime: t.date,
|
|
14182
|
-
children:
|
|
14229
|
+
children: Yg(t.date)
|
|
14183
14230
|
}),
|
|
14184
14231
|
t.kind === "text" && t.content !== void 0 && /* @__PURE__ */ x("div", {
|
|
14185
14232
|
className: "timeline-view__entry-content",
|
|
@@ -14200,29 +14247,29 @@ var O_ = e.memo(({ buckets: t, selectedEntryId: n, onEntrySelect: r, renderEntry
|
|
|
14200
14247
|
})]
|
|
14201
14248
|
}, t.periodStart))
|
|
14202
14249
|
}));
|
|
14203
|
-
|
|
14250
|
+
P_.displayName = "HourView";
|
|
14204
14251
|
//#endregion
|
|
14205
14252
|
//#region src/components/TimelineContainer/components/TimelineContent.tsx
|
|
14206
|
-
var
|
|
14253
|
+
var F_ = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBucketClick: i, renderEntry: a }) => {
|
|
14207
14254
|
switch (e) {
|
|
14208
|
-
case "year": return /* @__PURE__ */ x(
|
|
14255
|
+
case "year": return /* @__PURE__ */ x(m_, {
|
|
14209
14256
|
buckets: t,
|
|
14210
14257
|
onBucketClick: i
|
|
14211
14258
|
});
|
|
14212
|
-
case "month": return /* @__PURE__ */ x(
|
|
14259
|
+
case "month": return /* @__PURE__ */ x(O_, {
|
|
14213
14260
|
buckets: t,
|
|
14214
14261
|
selectedEntryId: n,
|
|
14215
14262
|
onEntrySelect: r,
|
|
14216
14263
|
onBucketClick: i,
|
|
14217
14264
|
renderEntry: a
|
|
14218
14265
|
});
|
|
14219
|
-
case "day": return /* @__PURE__ */ x(
|
|
14266
|
+
case "day": return /* @__PURE__ */ x(N_, {
|
|
14220
14267
|
buckets: t,
|
|
14221
14268
|
selectedEntryId: n,
|
|
14222
14269
|
onEntrySelect: r,
|
|
14223
14270
|
renderEntry: a
|
|
14224
14271
|
});
|
|
14225
|
-
case "hour": return /* @__PURE__ */ x(
|
|
14272
|
+
case "hour": return /* @__PURE__ */ x(P_, {
|
|
14226
14273
|
buckets: t,
|
|
14227
14274
|
selectedEntryId: n,
|
|
14228
14275
|
onEntrySelect: r,
|
|
@@ -14230,7 +14277,7 @@ var k_ = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
14230
14277
|
});
|
|
14231
14278
|
default: return e;
|
|
14232
14279
|
}
|
|
14233
|
-
},
|
|
14280
|
+
}, I_ = ({ entries: e, selectedEntryId: t, onSelect: n, onDeselect: r, renderEntry: i, formatDate: a }) => {
|
|
14234
14281
|
let s = e.find((e) => e.id === t) ?? null, l = p(null), u = p(null), d = p(t);
|
|
14235
14282
|
c(() => {
|
|
14236
14283
|
let e = d.current;
|
|
@@ -14275,7 +14322,7 @@ var k_ = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
14275
14322
|
children: [/* @__PURE__ */ x("span", {
|
|
14276
14323
|
className: "eidotter-timeline-md__rail-node",
|
|
14277
14324
|
"aria-hidden": "true",
|
|
14278
|
-
children: /* @__PURE__ */ x(
|
|
14325
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
14279
14326
|
shape: "circle",
|
|
14280
14327
|
size: "sm",
|
|
14281
14328
|
variant: "default",
|
|
@@ -14309,7 +14356,7 @@ var k_ = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
14309
14356
|
}), /* @__PURE__ */ x("div", {
|
|
14310
14357
|
className: "eidotter-timeline-md__detail-body",
|
|
14311
14358
|
children: ((e) => {
|
|
14312
|
-
let t = () => /* @__PURE__ */ x(
|
|
14359
|
+
let t = () => /* @__PURE__ */ x(w_, {
|
|
14313
14360
|
entry: e,
|
|
14314
14361
|
isSelected: !0,
|
|
14315
14362
|
isExpanded: !0
|
|
@@ -14328,19 +14375,19 @@ var k_ = ({ zoomLevel: e, buckets: t, selectedEntryId: n, onEntrySelect: r, onBu
|
|
|
14328
14375
|
})]
|
|
14329
14376
|
});
|
|
14330
14377
|
};
|
|
14331
|
-
|
|
14378
|
+
I_.displayName = "MasterDetailLayout";
|
|
14332
14379
|
//#endregion
|
|
14333
14380
|
//#region src/components/TimelineContainer/components/TimelineContainer.tsx
|
|
14334
|
-
var
|
|
14335
|
-
let b = t === "static", C = t === "feed", w = b || C, T = t === "master-detail", E = p(null), D = p(null), [O, k] = m(""), { zoomLevel: A, canZoomIn: j, canZoomOut: M, breadcrumbs: N, currentPeriod: P, isDrillDownEnabled: F, drillDown: I, drillUp: L, reset: ee } =
|
|
14381
|
+
var L_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel: r = "month", onZoomChange: i, selectedEntryId: a, defaultSelectedEntryId: s, onSelectEntry: l, sortOrder: u = "desc", scrollToZoom: f = !0, keyboardShortcuts: h = !0, renderEntry: g, pageSize: _ = 10, onLoadMore: v, ...y }) => {
|
|
14382
|
+
let b = t === "static", C = t === "feed", w = b || C, T = t === "master-detail", E = p(null), D = p(null), [O, k] = m(""), { zoomLevel: A, canZoomIn: j, canZoomOut: M, breadcrumbs: N, currentPeriod: P, isDrillDownEnabled: F, drillDown: I, drillUp: L, reset: ee } = Lg({
|
|
14336
14383
|
zoomLevel: n,
|
|
14337
14384
|
defaultZoomLevel: r,
|
|
14338
14385
|
onZoomChange: i
|
|
14339
|
-
}), { selectedEntryId: R, select: te, toggle: z, deselect: B } =
|
|
14386
|
+
}), { selectedEntryId: R, select: te, toggle: z, deselect: B } = Rg({
|
|
14340
14387
|
selectedEntryId: a,
|
|
14341
14388
|
defaultSelectedEntryId: s,
|
|
14342
14389
|
onSelectEntry: l
|
|
14343
|
-
}), ne = d(() =>
|
|
14390
|
+
}), ne = d(() => d_(e, A, u), [
|
|
14344
14391
|
e,
|
|
14345
14392
|
A,
|
|
14346
14393
|
u
|
|
@@ -14349,7 +14396,7 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14349
14396
|
"month",
|
|
14350
14397
|
"day",
|
|
14351
14398
|
"hour"
|
|
14352
|
-
][N.length - 1] : null, V = d(() => P && re ?
|
|
14399
|
+
][N.length - 1] : null, V = d(() => P && re ? u_(ne, P, re) : ne, [
|
|
14353
14400
|
ne,
|
|
14354
14401
|
P,
|
|
14355
14402
|
re
|
|
@@ -14463,7 +14510,7 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14463
14510
|
"aria-atomic": "true",
|
|
14464
14511
|
children: O
|
|
14465
14512
|
}),
|
|
14466
|
-
!w && !T && /* @__PURE__ */ x(
|
|
14513
|
+
!w && !T && /* @__PURE__ */ x(f_, {
|
|
14467
14514
|
zoomLevel: A,
|
|
14468
14515
|
canZoomIn: j,
|
|
14469
14516
|
canZoomOut: M,
|
|
@@ -14482,12 +14529,12 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14482
14529
|
className: "eidotter-timeline-container__empty",
|
|
14483
14530
|
role: "status",
|
|
14484
14531
|
children: [/* @__PURE__ */ x("p", { children: "C:\\TIMELINE> No entries found." }), /* @__PURE__ */ x("p", { children: "_" })]
|
|
14485
|
-
}) : b ? /* @__PURE__ */ x(
|
|
14532
|
+
}) : b ? /* @__PURE__ */ x(p_, { children: /* @__PURE__ */ x("div", {
|
|
14486
14533
|
className: "eidotter-timeline-container__static",
|
|
14487
14534
|
role: "list",
|
|
14488
14535
|
"aria-label": "Timeline",
|
|
14489
14536
|
children: U.map((e) => {
|
|
14490
|
-
let t = () => /* @__PURE__ */ x(
|
|
14537
|
+
let t = () => /* @__PURE__ */ x(w_, {
|
|
14491
14538
|
entry: e,
|
|
14492
14539
|
isSelected: !1,
|
|
14493
14540
|
isExpanded: !0
|
|
@@ -14497,7 +14544,7 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14497
14544
|
role: "listitem",
|
|
14498
14545
|
children: [/* @__PURE__ */ x("div", {
|
|
14499
14546
|
className: "timeline-view__node",
|
|
14500
|
-
children: /* @__PURE__ */ x(
|
|
14547
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
14501
14548
|
shape: "circle",
|
|
14502
14549
|
size: "medium",
|
|
14503
14550
|
variant: "default",
|
|
@@ -14511,12 +14558,12 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14511
14558
|
}) : t()]
|
|
14512
14559
|
}, e.id);
|
|
14513
14560
|
})
|
|
14514
|
-
}) }) : C ? /* @__PURE__ */ S(
|
|
14561
|
+
}) }) : C ? /* @__PURE__ */ S(p_, { children: [/* @__PURE__ */ x("div", {
|
|
14515
14562
|
className: "eidotter-timeline-container__feed",
|
|
14516
14563
|
role: "list",
|
|
14517
14564
|
"aria-label": "Timeline",
|
|
14518
14565
|
children: le.map((e) => {
|
|
14519
|
-
let t = R === e.id, n = () => /* @__PURE__ */ x(
|
|
14566
|
+
let t = R === e.id, n = () => /* @__PURE__ */ x(w_, {
|
|
14520
14567
|
entry: e,
|
|
14521
14568
|
isSelected: t,
|
|
14522
14569
|
isExpanded: t,
|
|
@@ -14527,7 +14574,7 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14527
14574
|
role: "listitem",
|
|
14528
14575
|
children: [/* @__PURE__ */ x("div", {
|
|
14529
14576
|
className: "timeline-view__node",
|
|
14530
|
-
children: /* @__PURE__ */ x(
|
|
14577
|
+
children: /* @__PURE__ */ x(Fg, {
|
|
14531
14578
|
shape: "circle",
|
|
14532
14579
|
size: "medium",
|
|
14533
14580
|
variant: "default",
|
|
@@ -14547,14 +14594,14 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14547
14594
|
onClick: de,
|
|
14548
14595
|
"aria-label": `Load more entries (showing ${ce} of ${U.length})`,
|
|
14549
14596
|
children: "LOAD MORE..."
|
|
14550
|
-
})] }) : T ? /* @__PURE__ */ x(
|
|
14597
|
+
})] }) : T ? /* @__PURE__ */ x(I_, {
|
|
14551
14598
|
entries: U,
|
|
14552
14599
|
selectedEntryId: R,
|
|
14553
14600
|
onSelect: te,
|
|
14554
14601
|
onDeselect: B,
|
|
14555
14602
|
renderEntry: g,
|
|
14556
14603
|
formatDate: pe
|
|
14557
|
-
}) : V.length === 0 && P ? /* @__PURE__ */ x(
|
|
14604
|
+
}) : V.length === 0 && P ? /* @__PURE__ */ x(p_, { children: /* @__PURE__ */ S("div", {
|
|
14558
14605
|
className: "eidotter-timeline-container__empty",
|
|
14559
14606
|
role: "status",
|
|
14560
14607
|
children: [/* @__PURE__ */ S("p", { children: [
|
|
@@ -14562,7 +14609,7 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14562
14609
|
N[N.length - 1]?.label ?? "this period",
|
|
14563
14610
|
"."
|
|
14564
14611
|
] }), /* @__PURE__ */ x("p", { children: "_" })]
|
|
14565
|
-
}) }) : /* @__PURE__ */ x(
|
|
14612
|
+
}) }) : /* @__PURE__ */ x(p_, { children: /* @__PURE__ */ x(F_, {
|
|
14566
14613
|
zoomLevel: A,
|
|
14567
14614
|
buckets: V,
|
|
14568
14615
|
selectedEntryId: R,
|
|
@@ -14573,15 +14620,15 @@ var j_ = ({ entries: e, mode: t = "interactive", zoomLevel: n, defaultZoomLevel:
|
|
|
14573
14620
|
})
|
|
14574
14621
|
]
|
|
14575
14622
|
});
|
|
14576
|
-
},
|
|
14623
|
+
}, R_ = {
|
|
14577
14624
|
milestone: "milestone",
|
|
14578
14625
|
project: "project",
|
|
14579
14626
|
event: "event"
|
|
14580
|
-
},
|
|
14581
|
-
function
|
|
14627
|
+
}, z_ = (e) => e.tags?.[0];
|
|
14628
|
+
function B_(e) {
|
|
14582
14629
|
return e.kind === "article" ? e.href : void 0;
|
|
14583
14630
|
}
|
|
14584
|
-
function
|
|
14631
|
+
function V_({ entries: e, categories: t, categoryOf: n = z_, activeCategory: r, defaultCategory: i = null, onCategoryChange: a, linkComponent: o, className: s, ...c }) {
|
|
14585
14632
|
let l = o ?? "a", u = r !== void 0, [f, p] = m(i), h = u ? r : f, g = (e) => {
|
|
14586
14633
|
u || p(e), a?.(e);
|
|
14587
14634
|
}, _ = d(() => {
|
|
@@ -14638,7 +14685,7 @@ function F_({ entries: e, categories: t, categoryOf: n = N_, activeCategory: r,
|
|
|
14638
14685
|
className: "eidotter-feed__list",
|
|
14639
14686
|
"aria-label": c["aria-label"] ?? "Timeline feed",
|
|
14640
14687
|
children: b.map((e) => {
|
|
14641
|
-
let t = n(e), r = t ? _.get(t) : void 0, i =
|
|
14688
|
+
let t = n(e), r = t ? _.get(t) : void 0, i = B_(e), a = i && Cg(i) ? i : void 0, o = e.type ? R_[e.type] : void 0;
|
|
14642
14689
|
return /* @__PURE__ */ S("li", {
|
|
14643
14690
|
className: "eidotter-feed__row",
|
|
14644
14691
|
children: [
|
|
@@ -14672,20 +14719,20 @@ function F_({ entries: e, categories: t, categoryOf: n = N_, activeCategory: r,
|
|
|
14672
14719
|
}
|
|
14673
14720
|
//#endregion
|
|
14674
14721
|
//#region src/components/TimelinePage/components/TimelinePage.tsx
|
|
14675
|
-
var
|
|
14676
|
-
function
|
|
14722
|
+
var H_ = (e) => e.tags?.[0], U_ = (e) => e.kind === "article" ? e.summary : void 0;
|
|
14723
|
+
function W_(e) {
|
|
14677
14724
|
if (e.kind === "image") return e.image;
|
|
14678
14725
|
if (e.kind === "gallery") return e.images[0];
|
|
14679
14726
|
if (e.kind === "article") return e.images?.[0];
|
|
14680
14727
|
}
|
|
14681
|
-
function
|
|
14728
|
+
function G_(e) {
|
|
14682
14729
|
return e.kind === "article" ? e.href : void 0;
|
|
14683
14730
|
}
|
|
14684
|
-
function
|
|
14731
|
+
function K_(e) {
|
|
14685
14732
|
let t = new Date(e).getFullYear();
|
|
14686
14733
|
return Number.isNaN(t) ? e.slice(0, 4) : String(t);
|
|
14687
14734
|
}
|
|
14688
|
-
function
|
|
14735
|
+
function q_({ entries: e, categories: t, categoryOf: n = H_, descriptionOf: r = U_, activeCategory: i, defaultCategory: a = null, onCategoryChange: o, brand: s, preview: c = !0, linkComponent: l, className: u, ...f }) {
|
|
14689
14736
|
let p = l ?? "a", h = i !== void 0, [g, _] = m(a), v = h ? i : g, y = (e) => {
|
|
14690
14737
|
h || _(e), o?.(e);
|
|
14691
14738
|
}, b = d(() => new Intl.DateTimeFormat("en-US", {
|
|
@@ -14704,14 +14751,14 @@ function V_({ entries: e, categories: t, categoryOf: n = I_, descriptionOf: r =
|
|
|
14704
14751
|
]), T = d(() => {
|
|
14705
14752
|
let e = /* @__PURE__ */ new Map();
|
|
14706
14753
|
for (let t of w) {
|
|
14707
|
-
let n =
|
|
14754
|
+
let n = K_(t.date), r = e.get(n);
|
|
14708
14755
|
r ? r.push(t) : e.set(n, [t]);
|
|
14709
14756
|
}
|
|
14710
14757
|
return Array.from(e.entries()).map(([e, t]) => ({
|
|
14711
14758
|
year: e,
|
|
14712
14759
|
entries: [...t].sort((e, t) => t.date.localeCompare(e.date))
|
|
14713
14760
|
})).sort((e, t) => t.year.localeCompare(e.year));
|
|
14714
|
-
}, [w]), [E, D] = m(null), O = d(() => w.find((e) => e.id === E) ?? w[0], [w, E]), k = O ?
|
|
14761
|
+
}, [w]), [E, D] = m(null), O = d(() => w.find((e) => e.id === E) ?? w[0], [w, E]), k = O ? W_(O) : void 0;
|
|
14715
14762
|
return /* @__PURE__ */ S("section", {
|
|
14716
14763
|
className: $("eidotter-blog font-dos", u),
|
|
14717
14764
|
...f,
|
|
@@ -14765,7 +14812,7 @@ function V_({ entries: e, categories: t, categoryOf: n = I_, descriptionOf: r =
|
|
|
14765
14812
|
}), /* @__PURE__ */ x("ol", {
|
|
14766
14813
|
className: "eidotter-blog__entries",
|
|
14767
14814
|
children: e.entries.map((e) => {
|
|
14768
|
-
let t =
|
|
14815
|
+
let t = G_(e), n = t && Cg(t) ? t : void 0, i = r(e), a = () => D(e.id);
|
|
14769
14816
|
return /* @__PURE__ */ S("li", {
|
|
14770
14817
|
className: $("eidotter-blog__entry", O?.id === e.id && "eidotter-blog__entry--focused"),
|
|
14771
14818
|
onMouseEnter: a,
|
|
@@ -14827,7 +14874,7 @@ function V_({ entries: e, categories: t, categoryOf: n = I_, descriptionOf: r =
|
|
|
14827
14874
|
}
|
|
14828
14875
|
//#endregion
|
|
14829
14876
|
//#region src/components/Modal/components/Modal.tsx
|
|
14830
|
-
var
|
|
14877
|
+
var J_ = i(({ isOpen: e, onOpenChange: t, onClose: n, title: r, children: i, footer: a, size: o = "md", isDismissable: s = !0, className: l }, u) => {
|
|
14831
14878
|
let d = p(e), f = p(!1);
|
|
14832
14879
|
c(() => {
|
|
14833
14880
|
e !== d.current && (d.current = e, f.current || (t?.(e), e || n?.()), f.current = !1);
|
|
@@ -14839,7 +14886,7 @@ var H_ = i(({ isOpen: e, onOpenChange: t, onClose: n, title: r, children: i, foo
|
|
|
14839
14886
|
let m = (e) => {
|
|
14840
14887
|
f.current = !0, t?.(e), e || n?.();
|
|
14841
14888
|
};
|
|
14842
|
-
return /* @__PURE__ */ x(
|
|
14889
|
+
return /* @__PURE__ */ x(g_, {
|
|
14843
14890
|
ref: u,
|
|
14844
14891
|
open: e,
|
|
14845
14892
|
onOpenChange: m,
|
|
@@ -14849,7 +14896,7 @@ var H_ = i(({ isOpen: e, onOpenChange: t, onClose: n, title: r, children: i, foo
|
|
|
14849
14896
|
className: $("eidotter-modal__container", l),
|
|
14850
14897
|
head: {
|
|
14851
14898
|
title: r,
|
|
14852
|
-
end: /* @__PURE__ */ x(
|
|
14899
|
+
end: /* @__PURE__ */ x(am, {
|
|
14853
14900
|
icon: "Close",
|
|
14854
14901
|
label: "Close modal",
|
|
14855
14902
|
className: "eidotter-modal__close",
|
|
@@ -14866,19 +14913,19 @@ var H_ = i(({ isOpen: e, onOpenChange: t, onClose: n, title: r, children: i, foo
|
|
|
14866
14913
|
})
|
|
14867
14914
|
});
|
|
14868
14915
|
});
|
|
14869
|
-
|
|
14916
|
+
J_.displayName = "Modal";
|
|
14870
14917
|
//#endregion
|
|
14871
14918
|
//#region src/hooks/useTextScramble.ts
|
|
14872
|
-
var
|
|
14873
|
-
function
|
|
14874
|
-
let { speed: n = 40, characters: r =
|
|
14875
|
-
if (!i ||
|
|
14919
|
+
var Y_ = "░▒▓█│┤┐└┴┬├─┼", X_ = 4;
|
|
14920
|
+
function Z_(e, t) {
|
|
14921
|
+
let { speed: n = 40, characters: r = Y_, enabled: i = !0, delay: a = 0 } = t ?? {}, [o, s] = m(() => {
|
|
14922
|
+
if (!i || om()) return e;
|
|
14876
14923
|
let t = "";
|
|
14877
14924
|
for (let n = 0; n < e.length; n++) e[n] === " " ? t += " " : t += r[Math.floor(Math.random() * r.length)];
|
|
14878
14925
|
return t;
|
|
14879
14926
|
}), [l, u] = m(!1), d = p(0);
|
|
14880
14927
|
return c(() => {
|
|
14881
|
-
if (!i ||
|
|
14928
|
+
if (!i || om()) {
|
|
14882
14929
|
s(e), u(!1);
|
|
14883
14930
|
return;
|
|
14884
14931
|
}
|
|
@@ -14892,7 +14939,7 @@ function G_(e, t) {
|
|
|
14892
14939
|
return;
|
|
14893
14940
|
}
|
|
14894
14941
|
if (a >= n) {
|
|
14895
|
-
if (c = i, o++, o >=
|
|
14942
|
+
if (c = i, o++, o >= X_ && (t++, o = 0), t >= e.length) {
|
|
14896
14943
|
s(e), u(!1);
|
|
14897
14944
|
return;
|
|
14898
14945
|
}
|
|
@@ -14918,7 +14965,7 @@ function G_(e, t) {
|
|
|
14918
14965
|
}
|
|
14919
14966
|
//#endregion
|
|
14920
14967
|
//#region src/components/Stat/components/Stat.tsx
|
|
14921
|
-
var
|
|
14968
|
+
var Q_ = {
|
|
14922
14969
|
sm: {
|
|
14923
14970
|
root: "gap-0.5",
|
|
14924
14971
|
label: "text-dos-text-xs",
|
|
@@ -14955,23 +15002,23 @@ var K_ = {
|
|
|
14955
15002
|
value: "text-dos-display-md",
|
|
14956
15003
|
trend: "text-dos-text-md"
|
|
14957
15004
|
}
|
|
14958
|
-
},
|
|
15005
|
+
}, $_ = {
|
|
14959
15006
|
up: "text-dos-text-success",
|
|
14960
15007
|
down: "text-dos-text-error",
|
|
14961
15008
|
neutral: "text-dos-text-brand"
|
|
14962
|
-
},
|
|
15009
|
+
}, ev = {
|
|
14963
15010
|
up: "▲",
|
|
14964
15011
|
down: "▼",
|
|
14965
15012
|
neutral: "►"
|
|
14966
|
-
},
|
|
15013
|
+
}, tv = {
|
|
14967
15014
|
up: "increasing",
|
|
14968
15015
|
down: "decreasing",
|
|
14969
15016
|
neutral: "unchanged"
|
|
14970
|
-
},
|
|
14971
|
-
let { text: f } =
|
|
15017
|
+
}, nv = i(({ label: e, value: t, trend: n, trendValue: r, size: i = "md", scramble: a = !1, unit: o, note: s, target: c, className: l, ...u }, d) => {
|
|
15018
|
+
let { text: f } = Z_(String(t), {
|
|
14972
15019
|
speed: 30,
|
|
14973
15020
|
enabled: a
|
|
14974
|
-
}), p = a ? f : String(t), m =
|
|
15021
|
+
}), p = a ? f : String(t), m = Q_[i] || Q_.md;
|
|
14975
15022
|
return /* @__PURE__ */ S("div", {
|
|
14976
15023
|
ref: d,
|
|
14977
15024
|
className: $("flex flex-col font-dos", "eidotter-stat", m.root, l),
|
|
@@ -14983,9 +15030,9 @@ var K_ = {
|
|
|
14983
15030
|
}),
|
|
14984
15031
|
/* @__PURE__ */ S("span", {
|
|
14985
15032
|
className: $("text-dos-text-accent font-bold leading-none tabular-nums", m.value),
|
|
14986
|
-
children: [p, o && /* @__PURE__ */
|
|
14987
|
-
className: "eidotter-stat__unit
|
|
14988
|
-
children: o
|
|
15033
|
+
children: [p, o && /* @__PURE__ */ S("span", {
|
|
15034
|
+
className: "eidotter-stat__unit text-[0.5em] font-normal text-dos-text-brand",
|
|
15035
|
+
children: [" ", o]
|
|
14989
15036
|
})]
|
|
14990
15037
|
}),
|
|
14991
15038
|
s && /* @__PURE__ */ x("span", {
|
|
@@ -14997,12 +15044,12 @@ var K_ = {
|
|
|
14997
15044
|
children: c
|
|
14998
15045
|
}),
|
|
14999
15046
|
n && /* @__PURE__ */ S("span", {
|
|
15000
|
-
className: $("inline-flex items-center gap-1 leading-none",
|
|
15001
|
-
"aria-label": `Trend: ${
|
|
15047
|
+
className: $("inline-flex items-center gap-1 leading-none", $_[n], m.trend),
|
|
15048
|
+
"aria-label": `Trend: ${tv[n]}${r ? `, ${r}` : ""}`,
|
|
15002
15049
|
children: [/* @__PURE__ */ x("span", {
|
|
15003
15050
|
className: "text-[0.8em]",
|
|
15004
15051
|
"aria-hidden": "true",
|
|
15005
|
-
children:
|
|
15052
|
+
children: ev[n]
|
|
15006
15053
|
}), r && /* @__PURE__ */ x("span", {
|
|
15007
15054
|
className: "tabular-nums",
|
|
15008
15055
|
children: r
|
|
@@ -15011,17 +15058,17 @@ var K_ = {
|
|
|
15011
15058
|
]
|
|
15012
15059
|
});
|
|
15013
15060
|
});
|
|
15014
|
-
|
|
15061
|
+
nv.displayName = "Stat";
|
|
15015
15062
|
//#endregion
|
|
15016
15063
|
//#region src/components/FilterBar/components/FilterBar.tsx
|
|
15017
|
-
var
|
|
15064
|
+
var rv = {
|
|
15018
15065
|
sm: "eidotter-filter-bar--sm",
|
|
15019
15066
|
md: "eidotter-filter-bar--md",
|
|
15020
15067
|
lg: "eidotter-filter-bar--lg",
|
|
15021
15068
|
small: "eidotter-filter-bar--sm",
|
|
15022
15069
|
medium: "eidotter-filter-bar--md",
|
|
15023
15070
|
large: "eidotter-filter-bar--lg"
|
|
15024
|
-
},
|
|
15071
|
+
}, iv = ({ items: e, activeIds: t, defaultActiveIds: n = [], mode: r = "multi", showAll: i = !1, allLabel: a = "All", size: s = "md", onChange: c, className: l, ...u }) => {
|
|
15025
15072
|
let [d, f] = m(n), h = p(null), g = t !== void 0, _ = g ? t : d, v = e.filter((e) => !e.disabled).map((e) => e.id), y = _.length === 0, b = o((e) => {
|
|
15026
15073
|
g || f(e), c?.(e);
|
|
15027
15074
|
}, [g, c]), C = o((e) => {
|
|
@@ -15062,7 +15109,7 @@ var Z_ = {
|
|
|
15062
15109
|
}, [T]), D = i && y ? "__all__" : _.length > 0 ? _[0] : i ? "__all__" : v[0] || null;
|
|
15063
15110
|
return /* @__PURE__ */ S("div", {
|
|
15064
15111
|
ref: h,
|
|
15065
|
-
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",
|
|
15112
|
+
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", rv[s] || rv.md, l),
|
|
15066
15113
|
role: "toolbar",
|
|
15067
15114
|
onKeyDown: E,
|
|
15068
15115
|
...u,
|
|
@@ -15095,7 +15142,7 @@ var Z_ = {
|
|
|
15095
15142
|
}, e.id);
|
|
15096
15143
|
})]
|
|
15097
15144
|
});
|
|
15098
|
-
},
|
|
15145
|
+
}, av = (e) => {
|
|
15099
15146
|
if (!e) return !1;
|
|
15100
15147
|
try {
|
|
15101
15148
|
let t = new URL(e);
|
|
@@ -15110,7 +15157,7 @@ var Z_ = {
|
|
|
15110
15157
|
};
|
|
15111
15158
|
//#endregion
|
|
15112
15159
|
//#region src/components/InlineExpand/components/InlineExpand.tsx
|
|
15113
|
-
function
|
|
15160
|
+
function ov(e) {
|
|
15114
15161
|
try {
|
|
15115
15162
|
let { hostname: t } = new URL(e);
|
|
15116
15163
|
return `https://www.google.com/s2/favicons?domain=${encodeURIComponent(t)}&sz=32`;
|
|
@@ -15118,7 +15165,7 @@ function ev(e) {
|
|
|
15118
15165
|
return null;
|
|
15119
15166
|
}
|
|
15120
15167
|
}
|
|
15121
|
-
var
|
|
15168
|
+
var sv = ({ children: e, content: t, defaultExpanded: n = !1, expanded: r, onToggle: i, sources: a = [], className: o, ...s }) => {
|
|
15122
15169
|
let [c, u] = m(n), [d, f] = m({}), h = l(), g = p(null), _ = r !== void 0, v = _ ? r : c, y = () => {
|
|
15123
15170
|
let e = !v;
|
|
15124
15171
|
_ || u(e), i?.(e);
|
|
@@ -15164,7 +15211,7 @@ var tv = ({ children: e, content: t, defaultExpanded: n = !1, expanded: r, onTog
|
|
|
15164
15211
|
className: "eidotter-inline-expand__source-item",
|
|
15165
15212
|
role: "listitem",
|
|
15166
15213
|
children: /* @__PURE__ */ x("a", {
|
|
15167
|
-
href:
|
|
15214
|
+
href: av(e.url) ? e.url : void 0,
|
|
15168
15215
|
className: "eidotter-inline-expand__source-link",
|
|
15169
15216
|
target: "_blank",
|
|
15170
15217
|
rel: "noopener noreferrer",
|
|
@@ -15177,7 +15224,7 @@ var tv = ({ children: e, content: t, defaultExpanded: n = !1, expanded: r, onTog
|
|
|
15177
15224
|
"aria-hidden": "true",
|
|
15178
15225
|
children: "[→]"
|
|
15179
15226
|
});
|
|
15180
|
-
let n = !!e.favicon &&
|
|
15227
|
+
let n = !!e.favicon && av(e.favicon);
|
|
15181
15228
|
if (!t && n) return /* @__PURE__ */ x("img", {
|
|
15182
15229
|
className: "eidotter-inline-expand__source-favicon",
|
|
15183
15230
|
src: e.favicon,
|
|
@@ -15190,7 +15237,7 @@ var tv = ({ children: e, content: t, defaultExpanded: n = !1, expanded: r, onTog
|
|
|
15190
15237
|
[e.url]: "google"
|
|
15191
15238
|
}))
|
|
15192
15239
|
});
|
|
15193
|
-
let r =
|
|
15240
|
+
let r = ov(e.url);
|
|
15194
15241
|
return r ? /* @__PURE__ */ x("img", {
|
|
15195
15242
|
className: "eidotter-inline-expand__source-favicon",
|
|
15196
15243
|
src: r,
|
|
@@ -15214,34 +15261,34 @@ var tv = ({ children: e, content: t, defaultExpanded: n = !1, expanded: r, onTog
|
|
|
15214
15261
|
]
|
|
15215
15262
|
})] })]
|
|
15216
15263
|
});
|
|
15217
|
-
},
|
|
15264
|
+
}, cv = {
|
|
15218
15265
|
horizontal: "h-px w-full",
|
|
15219
15266
|
vertical: "w-px h-full"
|
|
15220
|
-
},
|
|
15267
|
+
}, lv = ({ orientation: e = "horizontal", className: t }) => /* @__PURE__ */ x("div", {
|
|
15221
15268
|
role: "separator",
|
|
15222
15269
|
"aria-orientation": e,
|
|
15223
|
-
className: $("shrink-0 bg-dos-border-default", "eidotter-separator",
|
|
15224
|
-
}),
|
|
15270
|
+
className: $("shrink-0 bg-dos-border-default", "eidotter-separator", cv[e], t)
|
|
15271
|
+
}), uv = {
|
|
15225
15272
|
default: "text-dos-text-primary",
|
|
15226
15273
|
error: "text-dos-error",
|
|
15227
15274
|
warning: "text-dos-warning",
|
|
15228
15275
|
info: "text-dos-info"
|
|
15229
|
-
},
|
|
15230
|
-
className: $("eidotter-section-heading", "font-dos uppercase tracking-wider mb-2 text-dos-text-sm",
|
|
15276
|
+
}, dv = ({ title: e, count: t, tone: n = "default", children: r, className: i }) => /* @__PURE__ */ S("h3", {
|
|
15277
|
+
className: $("eidotter-section-heading", "font-dos uppercase tracking-wider mb-2 text-dos-text-sm", uv[n], i),
|
|
15231
15278
|
children: [
|
|
15232
15279
|
e,
|
|
15233
15280
|
t !== void 0 && ` (${t})`,
|
|
15234
15281
|
r
|
|
15235
15282
|
]
|
|
15236
15283
|
});
|
|
15237
|
-
|
|
15284
|
+
dv.displayName = "SectionHeading";
|
|
15238
15285
|
//#endregion
|
|
15239
15286
|
//#region src/components/ChecklistRow/components/ChecklistRow.tsx
|
|
15240
|
-
var
|
|
15287
|
+
var fv = {
|
|
15241
15288
|
default: "text-dos-text-primary",
|
|
15242
15289
|
muted: "text-dos-text-muted line-through",
|
|
15243
15290
|
error: "text-dos-error"
|
|
15244
|
-
},
|
|
15291
|
+
}, pv = ({ checked: e, onToggle: t, disabled: n, pending: r, ariaLabel: i, labelTone: a = "default", label: o, children: s, note: c, leading: l, trailing: u, className: d }) => /* @__PURE__ */ S("div", {
|
|
15245
15292
|
className: $("eidotter-checklist-row", "flex items-start gap-3 py-2 border-b border-dos-border-disabled", r && "opacity-50", d),
|
|
15246
15293
|
children: [
|
|
15247
15294
|
/* @__PURE__ */ x("button", {
|
|
@@ -15262,7 +15309,7 @@ var ov = {
|
|
|
15262
15309
|
children: l
|
|
15263
15310
|
}),
|
|
15264
15311
|
o !== void 0 && /* @__PURE__ */ x("div", {
|
|
15265
|
-
className: $("font-dos text-dos-text-sm",
|
|
15312
|
+
className: $("font-dos text-dos-text-sm", fv[a]),
|
|
15266
15313
|
children: o
|
|
15267
15314
|
}),
|
|
15268
15315
|
s,
|
|
@@ -15278,10 +15325,10 @@ var ov = {
|
|
|
15278
15325
|
})
|
|
15279
15326
|
]
|
|
15280
15327
|
});
|
|
15281
|
-
|
|
15328
|
+
pv.displayName = "ChecklistRow";
|
|
15282
15329
|
//#endregion
|
|
15283
15330
|
//#region src/components/CopyButton/components/CopyButton.tsx
|
|
15284
|
-
var
|
|
15331
|
+
var mv = ({ value: e, label: t = "[cp]", copiedLabel: n = "[OK]", title: r = "Copy to clipboard", copiedTitle: i = "Copied!", className: a }) => {
|
|
15285
15332
|
let [s, c] = m(!1), l = p(null), u = o(() => {
|
|
15286
15333
|
c(!0), l.current && clearTimeout(l.current), l.current = setTimeout(() => c(!1), 1500);
|
|
15287
15334
|
}, []), d = o(() => {
|
|
@@ -15311,22 +15358,22 @@ var cv = ({ value: e, label: t = "[cp]", copiedLabel: n = "[OK]", title: r = "Co
|
|
|
15311
15358
|
children: s ? n : t
|
|
15312
15359
|
});
|
|
15313
15360
|
};
|
|
15314
|
-
|
|
15361
|
+
mv.displayName = "CopyButton";
|
|
15315
15362
|
//#endregion
|
|
15316
15363
|
//#region src/components/Select/components/Select.tsx
|
|
15317
|
-
var
|
|
15364
|
+
var hv = {
|
|
15318
15365
|
sm: "text-dos-text-sm px-2.5 py-1 min-h-7 gap-2",
|
|
15319
15366
|
md: "text-dos-text-md px-3 py-2 min-h-8 gap-2",
|
|
15320
15367
|
lg: "text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"
|
|
15321
|
-
},
|
|
15368
|
+
}, gv = (e = "md") => ({
|
|
15322
15369
|
small: "sm",
|
|
15323
15370
|
medium: "md",
|
|
15324
15371
|
large: "lg"
|
|
15325
|
-
})[e] ?? e,
|
|
15326
|
-
let g = a === "error", _ = s !== void 0, v =
|
|
15372
|
+
})[e] ?? e, _v = "eidotter-select__label text-dos-text-brand font-dos text-dos-text-xs uppercase tracking-wider", vv = "eidotter-select__description text-dos-text-muted font-dos text-dos-text-xs", yv = "eidotter-select__error text-dos-text-error font-dos text-dos-text-xs", bv = "eidotter-select__trigger flex items-center w-full bg-transparent text-dos-text-brand font-dos border-2 border-dos-border-default outline-none box-border", xv = "eidotter-select__option font-dos", Sv = "NO MATCHES", Cv = (e) => e == null || e === "" ? null : e, wv = ({ options: e, label: t, placeholder: n, description: r, errorMessage: i, variant: a = "default", size: o, value: s, defaultValue: c, onChange: l, disabled: u, isRequired: d, name: f, id: p, className: m, "aria-label": h }) => {
|
|
15373
|
+
let g = a === "error", _ = s !== void 0, v = gv(o);
|
|
15327
15374
|
return /* @__PURE__ */ S(Vd, {
|
|
15328
15375
|
"aria-label": t ? void 0 : h,
|
|
15329
|
-
selectedKey: _ ?
|
|
15376
|
+
selectedKey: _ ? Cv(s) : void 0,
|
|
15330
15377
|
defaultSelectedKey: _ ? void 0 : c,
|
|
15331
15378
|
onSelectionChange: (e) => l?.(e == null ? "" : String(e)),
|
|
15332
15379
|
isDisabled: u,
|
|
@@ -15337,12 +15384,12 @@ var lv = {
|
|
|
15337
15384
|
className: $("eidotter-select flex flex-col gap-1", m),
|
|
15338
15385
|
children: [
|
|
15339
15386
|
t && /* @__PURE__ */ x(ri, {
|
|
15340
|
-
className:
|
|
15387
|
+
className: _v,
|
|
15341
15388
|
children: t
|
|
15342
15389
|
}),
|
|
15343
15390
|
/* @__PURE__ */ S(pi, {
|
|
15344
15391
|
id: p,
|
|
15345
|
-
className: $(
|
|
15392
|
+
className: $(bv, hv[v]),
|
|
15346
15393
|
children: [/* @__PURE__ */ x(Gd, { className: "eidotter-select__value flex-1 text-left truncate" }), /* @__PURE__ */ x("span", {
|
|
15347
15394
|
"aria-hidden": "true",
|
|
15348
15395
|
className: "eidotter-select__arrow",
|
|
@@ -15351,12 +15398,12 @@ var lv = {
|
|
|
15351
15398
|
}),
|
|
15352
15399
|
r && !g && /* @__PURE__ */ x(vi, {
|
|
15353
15400
|
slot: "description",
|
|
15354
|
-
className:
|
|
15401
|
+
className: vv,
|
|
15355
15402
|
children: r
|
|
15356
15403
|
}),
|
|
15357
15404
|
i && g && /* @__PURE__ */ x(vi, {
|
|
15358
15405
|
slot: "errorMessage",
|
|
15359
|
-
className:
|
|
15406
|
+
className: yv,
|
|
15360
15407
|
children: i
|
|
15361
15408
|
}),
|
|
15362
15409
|
/* @__PURE__ */ x(Nl, {
|
|
@@ -15368,19 +15415,19 @@ var lv = {
|
|
|
15368
15415
|
id: e.value,
|
|
15369
15416
|
textValue: e.label,
|
|
15370
15417
|
isDisabled: e.disabled,
|
|
15371
|
-
className:
|
|
15418
|
+
className: xv,
|
|
15372
15419
|
children: e.label
|
|
15373
15420
|
})
|
|
15374
15421
|
})
|
|
15375
15422
|
})
|
|
15376
15423
|
]
|
|
15377
15424
|
});
|
|
15378
|
-
},
|
|
15379
|
-
let _ = a === "error", v = s !== void 0, y =
|
|
15425
|
+
}, Tv = ({ options: e, label: t, placeholder: n, description: r, errorMessage: i, variant: a = "default", size: o, value: s, defaultValue: c, onChange: l, disabled: u, isRequired: d, name: f, id: p, className: m, emptyMessage: h = Sv, "aria-label": g }) => {
|
|
15426
|
+
let _ = a === "error", v = s !== void 0, y = gv(o);
|
|
15380
15427
|
return /* @__PURE__ */ S(gd, {
|
|
15381
15428
|
"aria-label": t ? void 0 : g,
|
|
15382
15429
|
defaultItems: e,
|
|
15383
|
-
selectedKey: v ?
|
|
15430
|
+
selectedKey: v ? Cv(s) : void 0,
|
|
15384
15431
|
defaultSelectedKey: v ? void 0 : c,
|
|
15385
15432
|
onSelectionChange: (e) => l?.(e == null ? "" : String(e)),
|
|
15386
15433
|
isDisabled: u,
|
|
@@ -15392,11 +15439,11 @@ var lv = {
|
|
|
15392
15439
|
className: $("eidotter-select eidotter-select--searchable flex flex-col gap-1", m),
|
|
15393
15440
|
children: [
|
|
15394
15441
|
t && /* @__PURE__ */ x(ri, {
|
|
15395
|
-
className:
|
|
15442
|
+
className: _v,
|
|
15396
15443
|
children: t
|
|
15397
15444
|
}),
|
|
15398
15445
|
/* @__PURE__ */ S("div", {
|
|
15399
|
-
className: $(
|
|
15446
|
+
className: $(bv, hv[y]),
|
|
15400
15447
|
children: [/* @__PURE__ */ x(fa, {
|
|
15401
15448
|
id: p,
|
|
15402
15449
|
placeholder: n,
|
|
@@ -15413,12 +15460,12 @@ var lv = {
|
|
|
15413
15460
|
}),
|
|
15414
15461
|
r && !_ && /* @__PURE__ */ x(vi, {
|
|
15415
15462
|
slot: "description",
|
|
15416
|
-
className:
|
|
15463
|
+
className: vv,
|
|
15417
15464
|
children: r
|
|
15418
15465
|
}),
|
|
15419
15466
|
i && _ && /* @__PURE__ */ x(vi, {
|
|
15420
15467
|
slot: "errorMessage",
|
|
15421
|
-
className:
|
|
15468
|
+
className: yv,
|
|
15422
15469
|
children: i
|
|
15423
15470
|
}),
|
|
15424
15471
|
/* @__PURE__ */ x(Nl, {
|
|
@@ -15433,15 +15480,15 @@ var lv = {
|
|
|
15433
15480
|
id: e.value,
|
|
15434
15481
|
textValue: e.label,
|
|
15435
15482
|
isDisabled: e.disabled,
|
|
15436
|
-
className:
|
|
15483
|
+
className: xv,
|
|
15437
15484
|
children: e.label
|
|
15438
15485
|
})
|
|
15439
15486
|
})
|
|
15440
15487
|
})
|
|
15441
15488
|
]
|
|
15442
15489
|
});
|
|
15443
|
-
},
|
|
15444
|
-
let T = a === "error", E = s !== void 0, D =
|
|
15490
|
+
}, Ev = ({ options: e, label: t, placeholder: n = "Select…", description: r, errorMessage: i, variant: a = "default", size: o, value: s, defaultValue: c, onChange: u, disabled: f, name: h, id: g, className: _, searchable: v, searchPlaceholder: y = "FILTER…", emptyMessage: C = Sv, "aria-label": w }) => {
|
|
15491
|
+
let T = a === "error", E = s !== void 0, D = gv(o), O = p(null), [k, A] = m(!1), [j, M] = m(""), [N, P] = m(c ?? []), F = E ? s ?? [] : N, I = `${l()}-label`, L = d(() => new Set(E ? s ?? [] : N), [
|
|
15445
15492
|
E,
|
|
15446
15493
|
s,
|
|
15447
15494
|
N
|
|
@@ -15464,7 +15511,7 @@ var lv = {
|
|
|
15464
15511
|
children: [
|
|
15465
15512
|
t && /* @__PURE__ */ x("span", {
|
|
15466
15513
|
id: I,
|
|
15467
|
-
className:
|
|
15514
|
+
className: _v,
|
|
15468
15515
|
children: t
|
|
15469
15516
|
}),
|
|
15470
15517
|
/* @__PURE__ */ S(pi, {
|
|
@@ -15476,7 +15523,7 @@ var lv = {
|
|
|
15476
15523
|
"aria-haspopup": "listbox",
|
|
15477
15524
|
"aria-expanded": k,
|
|
15478
15525
|
onPress: () => z(!k),
|
|
15479
|
-
className: $(
|
|
15526
|
+
className: $(bv, hv[D], T && "eidotter-select__trigger--error"),
|
|
15480
15527
|
children: [/* @__PURE__ */ x("span", {
|
|
15481
15528
|
className: $("eidotter-select__value flex-1 text-left truncate", F.length === 0 && "eidotter-select__value--placeholder text-dos-text-muted"),
|
|
15482
15529
|
children: B
|
|
@@ -15487,11 +15534,11 @@ var lv = {
|
|
|
15487
15534
|
})]
|
|
15488
15535
|
}),
|
|
15489
15536
|
r && !T && /* @__PURE__ */ x("span", {
|
|
15490
|
-
className:
|
|
15537
|
+
className: vv,
|
|
15491
15538
|
children: r
|
|
15492
15539
|
}),
|
|
15493
15540
|
i && T && /* @__PURE__ */ x("span", {
|
|
15494
|
-
className:
|
|
15541
|
+
className: yv,
|
|
15495
15542
|
children: i
|
|
15496
15543
|
}),
|
|
15497
15544
|
h && F.map((e) => /* @__PURE__ */ x("input", {
|
|
@@ -15528,7 +15575,7 @@ var lv = {
|
|
|
15528
15575
|
id: e.value,
|
|
15529
15576
|
textValue: e.label,
|
|
15530
15577
|
isDisabled: e.disabled,
|
|
15531
|
-
className: $(
|
|
15578
|
+
className: $(xv, "eidotter-select__option--multi"),
|
|
15532
15579
|
children: ({ isSelected: t }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
|
|
15533
15580
|
"aria-hidden": "true",
|
|
15534
15581
|
className: "eidotter-select__check",
|
|
@@ -15542,11 +15589,11 @@ var lv = {
|
|
|
15542
15589
|
})
|
|
15543
15590
|
]
|
|
15544
15591
|
});
|
|
15545
|
-
},
|
|
15546
|
-
|
|
15592
|
+
}, Dv = (e) => e.multiple ? /* @__PURE__ */ x(Ev, { ...e }) : e.searchable ? /* @__PURE__ */ x(Tv, { ...e }) : /* @__PURE__ */ x(wv, { ...e });
|
|
15593
|
+
Dv.displayName = "Select";
|
|
15547
15594
|
//#endregion
|
|
15548
15595
|
//#region src/components/LedgerRow/components/LedgerRow.tsx
|
|
15549
|
-
var
|
|
15596
|
+
var Ov = ({ label: e, note: t, value: n, copyValue: r, trailing: i, pending: a, className: o }) => /* @__PURE__ */ S("div", {
|
|
15550
15597
|
className: $("eidotter-ledger-row", "flex items-center gap-3 py-2 border-b border-dos-border-disabled", a && "opacity-50", o),
|
|
15551
15598
|
children: [/* @__PURE__ */ S("div", {
|
|
15552
15599
|
className: "flex-1 min-w-0",
|
|
@@ -15564,15 +15611,15 @@ var Sv = ({ label: e, note: t, value: n, copyValue: r, trailing: i, pending: a,
|
|
|
15564
15611
|
className: "font-dos text-dos-text-sm text-dos-text-accent tabular-nums",
|
|
15565
15612
|
children: n
|
|
15566
15613
|
}),
|
|
15567
|
-
r !== void 0 && /* @__PURE__ */ x(
|
|
15614
|
+
r !== void 0 && /* @__PURE__ */ x(mv, { value: r }),
|
|
15568
15615
|
i
|
|
15569
15616
|
]
|
|
15570
15617
|
})]
|
|
15571
15618
|
});
|
|
15572
|
-
|
|
15619
|
+
Ov.displayName = "LedgerRow";
|
|
15573
15620
|
//#endregion
|
|
15574
15621
|
//#region src/components/LabeledProgress/components/LabeledProgress.tsx
|
|
15575
|
-
var
|
|
15622
|
+
var kv = ({ label: e, value: t, max: n = 100, valueSuffix: r = "%", showValue: i = !0, className: a, "aria-label": o }) => {
|
|
15576
15623
|
let s = n === 0 ? 0 : Math.min(100, Math.max(0, Math.round(t / n * 100)));
|
|
15577
15624
|
return /* @__PURE__ */ S("div", {
|
|
15578
15625
|
className: $("eidotter-labeled-progress", "flex items-center gap-3", a),
|
|
@@ -15600,11 +15647,11 @@ var Cv = ({ label: e, value: t, max: n = 100, valueSuffix: r = "%", showValue: i
|
|
|
15600
15647
|
]
|
|
15601
15648
|
});
|
|
15602
15649
|
};
|
|
15603
|
-
|
|
15650
|
+
kv.displayName = "LabeledProgress";
|
|
15604
15651
|
//#endregion
|
|
15605
15652
|
//#region src/components/TextScramble/components/TextScramble.tsx
|
|
15606
|
-
var
|
|
15607
|
-
let { text: s, isScrambling: c } =
|
|
15653
|
+
var Av = i(({ children: e, speed: t, characters: n, delay: r, className: i, ...a }, o) => {
|
|
15654
|
+
let { text: s, isScrambling: c } = Z_(e, {
|
|
15608
15655
|
speed: t,
|
|
15609
15656
|
characters: n,
|
|
15610
15657
|
delay: r
|
|
@@ -15616,21 +15663,21 @@ var wv = i(({ children: e, speed: t, characters: n, delay: r, className: i, ...a
|
|
|
15616
15663
|
children: s
|
|
15617
15664
|
});
|
|
15618
15665
|
});
|
|
15619
|
-
|
|
15666
|
+
Av.displayName = "TextScramble";
|
|
15620
15667
|
//#endregion
|
|
15621
15668
|
//#region src/components/Nav/components/Nav.tsx
|
|
15622
|
-
var
|
|
15669
|
+
var jv = {
|
|
15623
15670
|
retro: "eidotter-nav--retro",
|
|
15624
15671
|
modern: "eidotter-nav--modern"
|
|
15625
|
-
},
|
|
15672
|
+
}, Mv = ({ items: e, activeHref: t, variant: n = "retro", linkComponent: r, className: i }) => {
|
|
15626
15673
|
let a = r || "a";
|
|
15627
15674
|
return /* @__PURE__ */ x("nav", {
|
|
15628
|
-
className: $("eidotter-nav eidotter-nav--desktop",
|
|
15675
|
+
className: $("eidotter-nav eidotter-nav--desktop", jv[n], i),
|
|
15629
15676
|
"aria-label": "Main navigation",
|
|
15630
15677
|
children: /* @__PURE__ */ x("ul", {
|
|
15631
15678
|
className: "eidotter-nav__desktop-list",
|
|
15632
15679
|
children: e.map((e) => {
|
|
15633
|
-
let r =
|
|
15680
|
+
let r = Cg(e.href) ? e.href : void 0, i = $("eidotter-nav__link", n === "retro" && "uppercase", t === e.href && "eidotter-nav__link--active");
|
|
15634
15681
|
return /* @__PURE__ */ x("li", {
|
|
15635
15682
|
className: "eidotter-nav__desktop-item",
|
|
15636
15683
|
children: r ? /* @__PURE__ */ x(a, {
|
|
@@ -15646,7 +15693,7 @@ var Tv = {
|
|
|
15646
15693
|
})
|
|
15647
15694
|
})
|
|
15648
15695
|
});
|
|
15649
|
-
},
|
|
15696
|
+
}, Nv = ({ items: e, activeHref: t, variant: n = "retro", linkComponent: r, className: i }) => {
|
|
15650
15697
|
let [a, s] = m(!1), l = r || "a", u = p(null), d = p(null), f = p(null), h = p(!1), g = o(() => s((e) => !e), []), _ = o(() => s(!1), []);
|
|
15651
15698
|
return c(() => {
|
|
15652
15699
|
if (!a) return;
|
|
@@ -15657,7 +15704,7 @@ var Tv = {
|
|
|
15657
15704
|
}, [a, _]), c(() => {
|
|
15658
15705
|
a ? d.current?.focus() : h.current && u.current?.focus(), h.current = a;
|
|
15659
15706
|
}, [a]), /* @__PURE__ */ S("div", {
|
|
15660
|
-
className: $("eidotter-nav eidotter-nav--mobile",
|
|
15707
|
+
className: $("eidotter-nav eidotter-nav--mobile", jv[n], i),
|
|
15661
15708
|
children: [
|
|
15662
15709
|
/* @__PURE__ */ x("button", {
|
|
15663
15710
|
ref: u,
|
|
@@ -15688,7 +15735,7 @@ var Tv = {
|
|
|
15688
15735
|
},
|
|
15689
15736
|
children: [/* @__PURE__ */ x("div", {
|
|
15690
15737
|
className: "eidotter-nav__panel-header",
|
|
15691
|
-
children: /* @__PURE__ */ x(
|
|
15738
|
+
children: /* @__PURE__ */ x(am, {
|
|
15692
15739
|
ref: d,
|
|
15693
15740
|
icon: "Close",
|
|
15694
15741
|
label: "Close menu",
|
|
@@ -15698,7 +15745,7 @@ var Tv = {
|
|
|
15698
15745
|
}), /* @__PURE__ */ x("ul", {
|
|
15699
15746
|
className: "eidotter-nav__list",
|
|
15700
15747
|
children: e.map((e) => {
|
|
15701
|
-
let r =
|
|
15748
|
+
let r = Cg(e.href) ? e.href : void 0, i = $("eidotter-nav__link", n === "retro" && "uppercase", t === e.href && "eidotter-nav__link--active");
|
|
15702
15749
|
return /* @__PURE__ */ x("li", {
|
|
15703
15750
|
className: "eidotter-nav__item",
|
|
15704
15751
|
children: r ? /* @__PURE__ */ x(l, {
|
|
@@ -15717,14 +15764,14 @@ var Tv = {
|
|
|
15717
15764
|
})
|
|
15718
15765
|
]
|
|
15719
15766
|
});
|
|
15720
|
-
},
|
|
15767
|
+
}, Pv = (e) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Nv, { ...e }), /* @__PURE__ */ x(Mv, { ...e })] }), Fv = {
|
|
15721
15768
|
user: "eidotter-chat-message--user",
|
|
15722
15769
|
assistant: "eidotter-chat-message--assistant",
|
|
15723
15770
|
system: "eidotter-chat-message--system"
|
|
15724
|
-
},
|
|
15771
|
+
}, Iv = ({ role: e, content: t, isStreaming: n = !1, userPrefix: r = ">", assistantPrefix: i = "C:\\>", className: a, ...o }) => {
|
|
15725
15772
|
let s = e === "user" ? r : e === "assistant" ? i : "";
|
|
15726
15773
|
return /* @__PURE__ */ S("div", {
|
|
15727
|
-
className: $("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",
|
|
15774
|
+
className: $("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words", Fv[e], n && "eidotter-chat-message--streaming", a),
|
|
15728
15775
|
...o,
|
|
15729
15776
|
children: [
|
|
15730
15777
|
s && /* @__PURE__ */ x("span", {
|
|
@@ -15743,7 +15790,7 @@ var Tv = {
|
|
|
15743
15790
|
})
|
|
15744
15791
|
]
|
|
15745
15792
|
});
|
|
15746
|
-
},
|
|
15793
|
+
}, Lv = ({ messages: e, isStreaming: t = !1, userPrefix: n, assistantPrefix: r, className: i, ...a }) => {
|
|
15747
15794
|
let o = p(null);
|
|
15748
15795
|
c(() => {
|
|
15749
15796
|
o.current?.scrollIntoView?.({ behavior: "smooth" });
|
|
@@ -15772,7 +15819,7 @@ var Tv = {
|
|
|
15772
15819
|
className: "flex flex-col",
|
|
15773
15820
|
children: [e.map((i, a) => {
|
|
15774
15821
|
let o = t && i.role === "assistant" && a === e.length - 1;
|
|
15775
|
-
return /* @__PURE__ */ x(
|
|
15822
|
+
return /* @__PURE__ */ x(Iv, {
|
|
15776
15823
|
role: i.role,
|
|
15777
15824
|
content: i.content,
|
|
15778
15825
|
isStreaming: o,
|
|
@@ -15782,7 +15829,7 @@ var Tv = {
|
|
|
15782
15829
|
}), /* @__PURE__ */ x("div", { ref: o })]
|
|
15783
15830
|
})
|
|
15784
15831
|
});
|
|
15785
|
-
},
|
|
15832
|
+
}, Rv = ({ onSend: e, prompt: t = ">", placeholder: n, disabled: r = !1, className: i, ...a }) => {
|
|
15786
15833
|
let [o, s] = m(""), c = p(null);
|
|
15787
15834
|
u(() => {
|
|
15788
15835
|
let e = c.current;
|
|
@@ -15824,30 +15871,30 @@ var Tv = {
|
|
|
15824
15871
|
})]
|
|
15825
15872
|
})]
|
|
15826
15873
|
});
|
|
15827
|
-
},
|
|
15874
|
+
}, zv = ({ messages: e, onSend: t, isStreaming: n = !1, inputPrompt: r, userPrefix: i, assistantPrefix: a, placeholder: o, disabled: s = !1, className: c, ...l }) => /* @__PURE__ */ S("div", {
|
|
15828
15875
|
className: $("flex flex-col h-full min-h-0", c),
|
|
15829
15876
|
...l,
|
|
15830
|
-
children: [/* @__PURE__ */ x(
|
|
15877
|
+
children: [/* @__PURE__ */ x(Lv, {
|
|
15831
15878
|
className: "flex-1 min-h-0",
|
|
15832
15879
|
messages: e,
|
|
15833
15880
|
isStreaming: n,
|
|
15834
15881
|
userPrefix: i,
|
|
15835
15882
|
assistantPrefix: a
|
|
15836
|
-
}), /* @__PURE__ */ x(
|
|
15883
|
+
}), /* @__PURE__ */ x(Rv, {
|
|
15837
15884
|
className: "shrink-0",
|
|
15838
15885
|
onSend: t,
|
|
15839
15886
|
prompt: r,
|
|
15840
15887
|
placeholder: o,
|
|
15841
15888
|
disabled: s
|
|
15842
15889
|
})]
|
|
15843
|
-
}),
|
|
15890
|
+
}), Bv = [{
|
|
15844
15891
|
label: "Impressum",
|
|
15845
15892
|
href: "/impressum"
|
|
15846
15893
|
}, {
|
|
15847
15894
|
label: "Datenschutz",
|
|
15848
15895
|
href: "/datenschutz"
|
|
15849
|
-
}],
|
|
15850
|
-
let s = n ??
|
|
15896
|
+
}], Vv = ({ copyright: t, links: n, linkComponent: r, children: i, className: a, ...o }) => {
|
|
15897
|
+
let s = n ?? Bv, c = r ?? "a", l = "eidotter-footer__link text-dos-text-brand no-underline";
|
|
15851
15898
|
return /* @__PURE__ */ S("footer", {
|
|
15852
15899
|
className: $("font-dos text-dos-text-base py-4 px-2 text-center", "eidotter-footer", a),
|
|
15853
15900
|
...o,
|
|
@@ -15864,7 +15911,7 @@ var Tv = {
|
|
|
15864
15911
|
className: "flex justify-center items-center flex-wrap gap-2 mb-2",
|
|
15865
15912
|
"aria-label": "Footer links",
|
|
15866
15913
|
children: s.map((t, n) => {
|
|
15867
|
-
let r =
|
|
15914
|
+
let r = Cg(t.href) ? t.href : void 0;
|
|
15868
15915
|
return /* @__PURE__ */ S(e.Fragment, { children: [n > 0 && /* @__PURE__ */ x("span", {
|
|
15869
15916
|
className: "text-dos-text-muted select-none eidotter-footer__dot",
|
|
15870
15917
|
"aria-hidden": "true",
|
|
@@ -15891,9 +15938,9 @@ var Tv = {
|
|
|
15891
15938
|
})
|
|
15892
15939
|
]
|
|
15893
15940
|
});
|
|
15894
|
-
},
|
|
15895
|
-
|
|
15896
|
-
var
|
|
15941
|
+
}, Hv = /* @__PURE__ */ "M20.375 9.0625H17.625V9.75H20.375V9.0625Z,M16.9375 9.75H15.5625V10.4375H16.9375V9.75Z,M17.625 9.75H16.9375V10.4375H17.625V9.75Z,M22.4375 9.75H20.375V10.4375H22.4375V9.75Z,M15.5625 10.4375H14.1875V11.125H15.5625V10.4375Z,M23.8125 10.4375H22.4375V11.125H23.8125V10.4375Z,M14.1875 11.125H13.5V11.8125H14.1875V11.125Z,M25.1875 11.125H23.8125V11.8125H25.1875V11.125Z,M13.5 11.8125H12.8125V12.5H13.5V11.8125Z,M25.875 11.8125H25.1875V13.1875H25.875V11.8125Z,M12.8125 12.5H12.125V13.875H12.8125V12.5Z,M12.125 13.875H11.4375V15.9375H12.125V13.875Z,M11.4375 15.9375H10.75V18H11.4375V15.9375Z,M10.75 18H10.0625V19.375H10.75V18Z,M11.4375 19.375H10.75V20.75H11.4375V19.375Z,M12.125 20.75H11.4375V22.125H12.125V20.75Z,M12.8125 22.125H12.125V23.5H12.8125V22.125Z,M26.5625 13.1875H25.875V15.25H26.5625V13.1875Z,M27.25 15.25H26.5625V17.3125H27.25V15.25Z,M27.9375 17.3125H27.25V19.375H27.9375V17.3125Z,M27.25 19.375H26.5625V20.75H27.25V19.375Z,M26.5625 20.75H25.875V22.125H26.5625V20.75Z,M25.875 22.125H25.1875V23.5H25.875V22.125Z,M14.1875 23.5H12.8125V24.1875H14.1875V23.5Z,M16.25 24.1875H14.1875V24.875H16.25V24.1875Z,M18.3125 24.875H16.25V25.5625H18.3125V24.875Z,M20.375 25.5625H18.3125V26.25H20.375V25.5625Z,M22.4375 24.875H20.375V25.5625H22.4375V24.875Z,M24.5 24.1875H22.4375V24.875H24.5V24.1875Z,M25.1875 23.5H24.5V24.1875H25.1875V23.5Z,M10.0625 15.9375H9.375V16.625H10.0625V15.9375Z,M29.3125 16.625H28.625V17.3125H29.3125V16.625Z,M28.625 20.75H27.9375V21.4375H28.625V20.75Z,M10.75 21.4375H10.0625V22.125H10.75V21.4375Z".split(",");
|
|
15942
|
+
Hv.length - 4;
|
|
15943
|
+
var Uv = "M19 29C25.0751 29 30 24.0751 30 18C30 11.9249 25.0751 7 19 7C12.9249 7 8 11.9249 8 18C8 24.0751 12.9249 29 19 29Z", Wv = "M19 27C23.9706 27 28 22.9706 28 18C28 13.0294 23.9706 9 19 9C14.0294 9 10 13.0294 10 18C10 22.9706 14.0294 27 19 27Z", Gv = "M18.4375 21C20.6466 21 22.4375 19.2091 22.4375 17C22.4375 14.7909 20.6466 13 18.4375 13C16.2284 13 14.4375 14.7909 14.4375 17C14.4375 19.2091 16.2284 21 18.4375 21Z", Kv = ["M16.25 15.25H15.5625V17.3125H16.25V15.25Z", "M18.3125 13.875H16.25V14.5625H18.3125V13.875Z"], qv = "M17.5 15C17.7761 15 18 14.7761 18 14.5C18 14.2239 17.7761 14 17.5 14C17.2239 14 17 14.2239 17 14.5C17 14.7761 17.2239 15 17.5 15Z", Jv = i(({ size: e = 32, title: t = "eiDotter", ...n }, r) => {
|
|
15897
15944
|
let i = l(), a = `eidotter-logo-halo-${i}`, o = `eidotter-logo-core-${i}`, s = `eidotter-logo-yolk-${i}`;
|
|
15898
15945
|
return /* @__PURE__ */ S("svg", {
|
|
15899
15946
|
ref: r,
|
|
@@ -15968,48 +16015,48 @@ var Lv = "M19 29C25.0751 29 30 24.0751 30 18C30 11.9249 25.0751 7 19 7C12.9249 7
|
|
|
15968
16015
|
})
|
|
15969
16016
|
] }),
|
|
15970
16017
|
/* @__PURE__ */ x("path", {
|
|
15971
|
-
d:
|
|
16018
|
+
d: Uv,
|
|
15972
16019
|
fill: `url(#${a})`
|
|
15973
16020
|
}),
|
|
15974
16021
|
/* @__PURE__ */ x("path", {
|
|
15975
|
-
d:
|
|
16022
|
+
d: Wv,
|
|
15976
16023
|
fill: `url(#${o})`
|
|
15977
16024
|
}),
|
|
15978
|
-
|
|
16025
|
+
Hv.map((e) => /* @__PURE__ */ x("path", {
|
|
15979
16026
|
d: e,
|
|
15980
16027
|
fill: "#FFB000"
|
|
15981
16028
|
}, e)),
|
|
15982
16029
|
/* @__PURE__ */ x("path", {
|
|
15983
|
-
d:
|
|
16030
|
+
d: Gv,
|
|
15984
16031
|
fill: `url(#${s})`
|
|
15985
16032
|
}),
|
|
15986
|
-
|
|
16033
|
+
Kv.map((e) => /* @__PURE__ */ x("path", {
|
|
15987
16034
|
d: e,
|
|
15988
16035
|
fill: "#FFE8A8",
|
|
15989
16036
|
opacity: "0.8"
|
|
15990
16037
|
}, e)),
|
|
15991
16038
|
/* @__PURE__ */ x("path", {
|
|
15992
|
-
d:
|
|
16039
|
+
d: qv,
|
|
15993
16040
|
fill: "#FFFFFF",
|
|
15994
16041
|
opacity: "0.9"
|
|
15995
16042
|
})
|
|
15996
16043
|
]
|
|
15997
16044
|
});
|
|
15998
16045
|
});
|
|
15999
|
-
|
|
16046
|
+
Jv.displayName = "LogoGeometry";
|
|
16000
16047
|
//#endregion
|
|
16001
16048
|
//#region src/components/Brand/components/Logo.tsx
|
|
16002
|
-
var
|
|
16049
|
+
var Yv = i(({ size: e = 32, glow: t = !0, title: n = "eiDotter", className: r, ...i }, a) => /* @__PURE__ */ x(Jv, {
|
|
16003
16050
|
ref: a,
|
|
16004
16051
|
size: e,
|
|
16005
16052
|
title: n,
|
|
16006
16053
|
className: $("eidotter-logo", t && "eidotter-logo--glow", r),
|
|
16007
16054
|
...i
|
|
16008
16055
|
}));
|
|
16009
|
-
|
|
16056
|
+
Yv.displayName = "Logo";
|
|
16010
16057
|
//#endregion
|
|
16011
16058
|
//#region src/components/Brand/components/Wordmark.tsx
|
|
16012
|
-
var
|
|
16059
|
+
var Xv = i(({ glow: e = !0, className: t, ...n }, r) => /* @__PURE__ */ S("span", {
|
|
16013
16060
|
ref: r,
|
|
16014
16061
|
className: $("eidotter-wordmark font-dos", e && "eidotter-wordmark--glow", t),
|
|
16015
16062
|
role: "img",
|
|
@@ -16025,29 +16072,29 @@ var Wv = i(({ glow: e = !0, className: t, ...n }, r) => /* @__PURE__ */ S("span"
|
|
|
16025
16072
|
children: "Dotter"
|
|
16026
16073
|
})]
|
|
16027
16074
|
}));
|
|
16028
|
-
|
|
16075
|
+
Xv.displayName = "Wordmark";
|
|
16029
16076
|
//#endregion
|
|
16030
16077
|
//#region src/components/Brand/components/BrandLockup.tsx
|
|
16031
|
-
var
|
|
16078
|
+
var Zv = i(({ logoSize: e = 32, iconOnly: t = !1, wordmarkOnly: n = !1, glow: r = !0, className: i, ...a }, o) => /* @__PURE__ */ S("div", {
|
|
16032
16079
|
ref: o,
|
|
16033
16080
|
className: $("eidotter-brand-lockup inline-flex items-center gap-3", i),
|
|
16034
16081
|
role: "img",
|
|
16035
16082
|
"aria-label": "eiDotter",
|
|
16036
16083
|
...a,
|
|
16037
|
-
children: [!n && /* @__PURE__ */ x(
|
|
16084
|
+
children: [!n && /* @__PURE__ */ x(Yv, {
|
|
16038
16085
|
size: e,
|
|
16039
16086
|
glow: r,
|
|
16040
16087
|
title: ""
|
|
16041
|
-
}), !t && /* @__PURE__ */ x(
|
|
16088
|
+
}), !t && /* @__PURE__ */ x(Xv, {
|
|
16042
16089
|
glow: r,
|
|
16043
16090
|
"aria-hidden": "true"
|
|
16044
16091
|
})]
|
|
16045
16092
|
}));
|
|
16046
|
-
|
|
16093
|
+
Zv.displayName = "BrandLockup";
|
|
16047
16094
|
//#endregion
|
|
16048
16095
|
//#region src/components/Brand/components/markGeometry.ts
|
|
16049
|
-
var
|
|
16050
|
-
function
|
|
16096
|
+
var Qv = 9.25 / 22, $v = (e) => Math.round(e * 100) / 100;
|
|
16097
|
+
function ey(e, t, n = {}) {
|
|
16051
16098
|
let { curvature: r = 24, startRadius: i = 0 } = n;
|
|
16052
16099
|
if (e.width === 0 || e.height === 0) return [];
|
|
16053
16100
|
let a = t.filter((e) => !(e.width === 0 && e.height === 0));
|
|
@@ -16057,24 +16104,24 @@ function Jv(e, t, n = {}) {
|
|
|
16057
16104
|
let a = t.x - e.x, l = t.y - e.y, u = a + t.width / 2 >= o ? a : a + t.width, d = l + t.height / 2, f = u - o, p = d - s, m = Math.hypot(f, p);
|
|
16058
16105
|
if (m - i < 1) return;
|
|
16059
16106
|
let h = o + f / m * i, g = s + p / m * i, _ = u - h, v = d - g, y = Math.hypot(_, v), b = (n % 2 == 0 ? 1 : -1) * Math.min(r, y / 3), x = (h + u) / 2, S = (g + d) / 2, C = x + -v / y * b, w = S + _ / y * b;
|
|
16060
|
-
c.push(`M ${
|
|
16107
|
+
c.push(`M ${$v(h)} ${$v(g)} Q ${$v(C)} ${$v(w)} ${$v(u)} ${$v(d)}`);
|
|
16061
16108
|
}), c;
|
|
16062
16109
|
}
|
|
16063
16110
|
//#endregion
|
|
16064
16111
|
//#region src/components/Brand/components/Mark.tsx
|
|
16065
|
-
var
|
|
16066
|
-
let d = p(null), [f, h] = m(
|
|
16112
|
+
var ty = [], ny = i(({ size: e = 48, label: t = "eiDotter", morph: n = !0, glow: r = !0, arms: i, className: a, style: s, ...l }, u) => {
|
|
16113
|
+
let d = p(null), [f, h] = m(ty), g = o((e) => {
|
|
16067
16114
|
d.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
|
|
16068
16115
|
}, [u]);
|
|
16069
16116
|
return c(() => {
|
|
16070
16117
|
if (!i) {
|
|
16071
|
-
h(
|
|
16118
|
+
h(ty);
|
|
16072
16119
|
return;
|
|
16073
16120
|
}
|
|
16074
16121
|
let e = d.current, t = i.scopeRef.current;
|
|
16075
16122
|
if (!e) return;
|
|
16076
16123
|
let n = [], r = () => {
|
|
16077
|
-
let t = e.getBoundingClientRect(), r =
|
|
16124
|
+
let t = e.getBoundingClientRect(), r = ey(t, n.map((e) => e.getBoundingClientRect()), { startRadius: t.width * Qv });
|
|
16078
16125
|
h((e) => e.length === r.length && e.every((e, t) => e === r[t]) ? e : r);
|
|
16079
16126
|
}, a = () => i.targetRefs ? i.targetRefs.map((e) => e.current).filter((e) => !!e) : t ? Array.from(t.querySelectorAll(i.targetSelector ?? ".eidotter-header__category")) : [], o = typeof ResizeObserver < "u" ? new ResizeObserver(r) : void 0, s = () => {
|
|
16080
16127
|
o?.disconnect(), n = a(), o?.observe(e), t && o?.observe(t), n.forEach((e) => o?.observe(e)), r();
|
|
@@ -16115,7 +16162,7 @@ var Yv = [], Xv = i(({ size: e = 48, label: t = "eiDotter", morph: n = !0, glow:
|
|
|
16115
16162
|
stroke: "currentColor",
|
|
16116
16163
|
strokeWidth: 2
|
|
16117
16164
|
}, t))
|
|
16118
|
-
}), /* @__PURE__ */ x(
|
|
16165
|
+
}), /* @__PURE__ */ x(Jv, {
|
|
16119
16166
|
size: "100%",
|
|
16120
16167
|
title: "",
|
|
16121
16168
|
focusable: "false",
|
|
@@ -16123,12 +16170,12 @@ var Yv = [], Xv = i(({ size: e = 48, label: t = "eiDotter", morph: n = !0, glow:
|
|
|
16123
16170
|
})]
|
|
16124
16171
|
});
|
|
16125
16172
|
});
|
|
16126
|
-
|
|
16173
|
+
ny.displayName = "Mark";
|
|
16127
16174
|
//#endregion
|
|
16128
16175
|
//#region src/components/Header/components/HeaderContextRow.tsx
|
|
16129
|
-
var
|
|
16130
|
-
function
|
|
16131
|
-
let r = t ?? "a", { categories: i, returnTo: a } = e, o = a &&
|
|
16176
|
+
var ry = $("eidotter-header__return", "inline-flex items-center gap-1 no-underline", "border border-dos-border-default rounded-dos-base", "px-2 py-0.5 text-dos-text-xs uppercase tracking-wider");
|
|
16177
|
+
function iy({ context: e, linkComponent: t, activeHref: n }) {
|
|
16178
|
+
let r = t ?? "a", { categories: i, returnTo: a } = e, o = a && Cg(a.href) ? a.href : void 0, s = (e, t) => {
|
|
16132
16179
|
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
16133
16180
|
let n = window.open(t, "rizomorf-shell");
|
|
16134
16181
|
n && (e.preventDefault(), n.focus());
|
|
@@ -16139,16 +16186,16 @@ function Qv({ context: e, linkComponent: t, activeHref: n }) {
|
|
|
16139
16186
|
return /* @__PURE__ */ S("div", {
|
|
16140
16187
|
className: $("eidotter-header__context", "flex w-full flex-wrap items-center gap-x-4 gap-y-2"),
|
|
16141
16188
|
children: [a && (o === void 0 ? /* @__PURE__ */ x("span", {
|
|
16142
|
-
className:
|
|
16189
|
+
className: ry,
|
|
16143
16190
|
children: c
|
|
16144
16191
|
}) : a.reuseTab ? /* @__PURE__ */ x("a", {
|
|
16145
16192
|
href: o,
|
|
16146
16193
|
onClick: (e) => s(e, o),
|
|
16147
|
-
className:
|
|
16194
|
+
className: ry,
|
|
16148
16195
|
children: c
|
|
16149
16196
|
}) : /* @__PURE__ */ x(r, {
|
|
16150
16197
|
href: o,
|
|
16151
|
-
className:
|
|
16198
|
+
className: ry,
|
|
16152
16199
|
children: c
|
|
16153
16200
|
})), i.length > 0 && /* @__PURE__ */ x("nav", {
|
|
16154
16201
|
"aria-label": "Categories",
|
|
@@ -16156,13 +16203,13 @@ function Qv({ context: e, linkComponent: t, activeHref: n }) {
|
|
|
16156
16203
|
children: /* @__PURE__ */ x("ul", {
|
|
16157
16204
|
className: $("eidotter-header__categories", "m-0 flex list-none flex-wrap items-center gap-2 p-0"),
|
|
16158
16205
|
children: i.map((e) => {
|
|
16159
|
-
let t =
|
|
16206
|
+
let t = Cg(e.href) ? e.href : void 0, i = n !== void 0 && e.href === n, a = $("eidotter-header__category inline-flex no-underline", i && "eidotter-header__category--active"), o = /* @__PURE__ */ S(yg, {
|
|
16160
16207
|
size: "sm",
|
|
16161
16208
|
variant: "default",
|
|
16162
|
-
children: [
|
|
16209
|
+
children: [nm(e.icon) && /* @__PURE__ */ x("span", {
|
|
16163
16210
|
"aria-hidden": "true",
|
|
16164
16211
|
className: "me-1 inline-flex",
|
|
16165
|
-
children: /* @__PURE__ */ x(
|
|
16212
|
+
children: /* @__PURE__ */ x(im, {
|
|
16166
16213
|
name: e.icon,
|
|
16167
16214
|
size: "S",
|
|
16168
16215
|
className: "eidotter-header__category-icon"
|
|
@@ -16189,15 +16236,15 @@ function Qv({ context: e, linkComponent: t, activeHref: n }) {
|
|
|
16189
16236
|
}
|
|
16190
16237
|
//#endregion
|
|
16191
16238
|
//#region src/components/Header/components/Header.tsx
|
|
16192
|
-
var
|
|
16239
|
+
var ay = {
|
|
16193
16240
|
retro: "eidotter-header--retro",
|
|
16194
16241
|
modern: "eidotter-header--modern"
|
|
16195
|
-
},
|
|
16196
|
-
let g = s ?? "a", _ =
|
|
16242
|
+
}, oy = i(({ brandName: t, brandHref: n = "/", items: r, activeHref: i, variant: a = "retro", sticky: o = !0, linkComponent: s, context: c, brand: l = "lockup", end: u, skipLinkTarget: d, children: f, className: p, ...m }, h) => {
|
|
16243
|
+
let g = s ?? "a", _ = Cg(n) ? n : "/", v = !!c && (c.categories.length > 0 || !!c.returnTo), y = d && Cg(d) ? d : void 0, C = !f && !!t && l !== "text", w = f || (C ? /* @__PURE__ */ S(b, { children: [l === "mark" ? /* @__PURE__ */ x(ny, {
|
|
16197
16244
|
size: 28,
|
|
16198
16245
|
label: "",
|
|
16199
16246
|
className: "eidotter-header__brand-icon"
|
|
16200
|
-
}) : /* @__PURE__ */ x(
|
|
16247
|
+
}) : /* @__PURE__ */ x(Yv, {
|
|
16201
16248
|
size: 28,
|
|
16202
16249
|
glow: !0,
|
|
16203
16250
|
title: "",
|
|
@@ -16212,7 +16259,7 @@ var $v = {
|
|
|
16212
16259
|
}), /* @__PURE__ */ S(E, {
|
|
16213
16260
|
...D,
|
|
16214
16261
|
children: [
|
|
16215
|
-
/* @__PURE__ */ x(
|
|
16262
|
+
/* @__PURE__ */ x(Mv, {
|
|
16216
16263
|
items: r,
|
|
16217
16264
|
activeHref: i,
|
|
16218
16265
|
variant: a,
|
|
@@ -16222,7 +16269,7 @@ var $v = {
|
|
|
16222
16269
|
className: "eidotter-header__end flex items-center",
|
|
16223
16270
|
children: u
|
|
16224
16271
|
}),
|
|
16225
|
-
/* @__PURE__ */ x(
|
|
16272
|
+
/* @__PURE__ */ x(Nv, {
|
|
16226
16273
|
items: r,
|
|
16227
16274
|
activeHref: i,
|
|
16228
16275
|
variant: a,
|
|
@@ -16236,22 +16283,22 @@ var $v = {
|
|
|
16236
16283
|
}) : null;
|
|
16237
16284
|
return /* @__PURE__ */ S("header", {
|
|
16238
16285
|
ref: h,
|
|
16239
|
-
className: $(v ? "flex flex-col gap-2 px-4 py-3 font-dos" : "flex items-center justify-between px-4 py-3 font-dos", "eidotter-header",
|
|
16286
|
+
className: $(v ? "flex flex-col gap-2 px-4 py-3 font-dos" : "flex items-center justify-between px-4 py-3 font-dos", "eidotter-header", ay[a], o && "sticky top-0 z-50 bg-dos-bg-primary", p),
|
|
16240
16287
|
...m,
|
|
16241
16288
|
children: [k, v ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
16242
16289
|
className: "eidotter-header__main flex w-full items-center justify-between",
|
|
16243
16290
|
children: O
|
|
16244
|
-
}), /* @__PURE__ */ x(
|
|
16291
|
+
}), /* @__PURE__ */ x(iy, {
|
|
16245
16292
|
context: c,
|
|
16246
16293
|
linkComponent: s,
|
|
16247
16294
|
activeHref: i
|
|
16248
16295
|
})] }) : O]
|
|
16249
16296
|
});
|
|
16250
16297
|
});
|
|
16251
|
-
|
|
16298
|
+
oy.displayName = "Header";
|
|
16252
16299
|
//#endregion
|
|
16253
16300
|
//#region src/components/Connector/components/connectorGeometry.ts
|
|
16254
|
-
var
|
|
16301
|
+
var sy = {
|
|
16255
16302
|
delicate: {
|
|
16256
16303
|
base: 5,
|
|
16257
16304
|
mid: 3.2,
|
|
@@ -16264,11 +16311,11 @@ var ty = {
|
|
|
16264
16311
|
tip: 5,
|
|
16265
16312
|
curvature: 30
|
|
16266
16313
|
}
|
|
16267
|
-
},
|
|
16268
|
-
function
|
|
16269
|
-
return e < .5 ?
|
|
16314
|
+
}, cy = 28, ly = (e) => Math.round(e * 100) / 100, uy = (e, t, n) => e + (t - e) * n, dy = (e) => e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
16315
|
+
function fy(e, t) {
|
|
16316
|
+
return e < .5 ? uy(t.base, t.mid, dy(e / .5)) : uy(t.mid, t.tip, dy((e - .5) / .5));
|
|
16270
16317
|
}
|
|
16271
|
-
function
|
|
16318
|
+
function py(e, t, n) {
|
|
16272
16319
|
let r = t.x - e.x, i = t.y - e.y, a = n.width / 2, o = n.height / 2, s = r === 0 ? Infinity : a / Math.abs(r), c = i === 0 ? Infinity : o / Math.abs(i), l = Math.min(s, c);
|
|
16273
16320
|
return Number.isFinite(l) ? {
|
|
16274
16321
|
x: e.x + r * l,
|
|
@@ -16278,21 +16325,21 @@ function sy(e, t, n) {
|
|
|
16278
16325
|
y: e.y
|
|
16279
16326
|
};
|
|
16280
16327
|
}
|
|
16281
|
-
function
|
|
16328
|
+
function my(e, t, n, r, i) {
|
|
16282
16329
|
let a = 1 - i, o = a * a * a, s = 3 * a * a * i, c = 3 * a * i * i, l = i * i * i;
|
|
16283
16330
|
return {
|
|
16284
16331
|
x: o * e.x + s * t.x + c * n.x + l * r.x,
|
|
16285
16332
|
y: o * e.y + s * t.y + c * n.y + l * r.y
|
|
16286
16333
|
};
|
|
16287
16334
|
}
|
|
16288
|
-
function
|
|
16335
|
+
function hy(e, t, n, r, i) {
|
|
16289
16336
|
let a = 1 - i, o = 3 * a * a, s = 6 * a * i, c = 3 * i * i;
|
|
16290
16337
|
return {
|
|
16291
16338
|
x: o * (t.x - e.x) + s * (n.x - t.x) + c * (r.x - n.x),
|
|
16292
16339
|
y: o * (t.y - e.y) + s * (n.y - t.y) + c * (r.y - n.y)
|
|
16293
16340
|
};
|
|
16294
16341
|
}
|
|
16295
|
-
function
|
|
16342
|
+
function gy(e, t, n, r = {}) {
|
|
16296
16343
|
let { sign: i = 1, sway: a = 0 } = r, o = t.x - e.x, s = t.y - e.y, c = Math.hypot(o, s);
|
|
16297
16344
|
if (c < .5) return "";
|
|
16298
16345
|
let l = -s / c, u = o / c, d = Math.min(n.curvature, c / 3), f = (d + a) * i, p = (d * .5 - a * .6) * i, m = {
|
|
@@ -16302,8 +16349,8 @@ function uy(e, t, n, r = {}) {
|
|
|
16302
16349
|
x: e.x + o * .66 + l * p,
|
|
16303
16350
|
y: e.y + s * .66 + u * p
|
|
16304
16351
|
}, g = [], _ = [];
|
|
16305
|
-
for (let r = 0; r <=
|
|
16306
|
-
let i = r /
|
|
16352
|
+
for (let r = 0; r <= cy; r++) {
|
|
16353
|
+
let i = r / cy, a = my(e, m, h, t, i), o = hy(e, m, h, t, i), s = Math.hypot(o.x, o.y) || 1, c = -o.y / s, l = o.x / s, u = fy(i, n);
|
|
16307
16354
|
g.push({
|
|
16308
16355
|
x: a.x + c * u,
|
|
16309
16356
|
y: a.y + l * u
|
|
@@ -16312,14 +16359,14 @@ function uy(e, t, n, r = {}) {
|
|
|
16312
16359
|
y: a.y - l * u
|
|
16313
16360
|
});
|
|
16314
16361
|
}
|
|
16315
|
-
let v = `M ${
|
|
16316
|
-
for (let e = 1; e <=
|
|
16317
|
-
for (let e =
|
|
16362
|
+
let v = `M ${ly(g[0].x)} ${ly(g[0].y)}`;
|
|
16363
|
+
for (let e = 1; e <= cy; e++) v += ` L ${ly(g[e].x)} ${ly(g[e].y)}`;
|
|
16364
|
+
for (let e = cy; e >= 0; e--) v += ` L ${ly(_[e].x)} ${ly(_[e].y)}`;
|
|
16318
16365
|
return v += " Z", v;
|
|
16319
16366
|
}
|
|
16320
16367
|
//#endregion
|
|
16321
16368
|
//#region src/components/Connector/components/Connector.tsx
|
|
16322
|
-
var
|
|
16369
|
+
var _y = .0011, vy = 4, yy = i(({ sourceRef: e, targets: t, weight: n = "delicate", sway: r = !0, refreshKey: i, className: a, ...s }, u) => {
|
|
16323
16370
|
let d = l().replace(/[:]/g, ""), f = p(null), m = p([]), h = p([]), g = p(null), _ = p(t);
|
|
16324
16371
|
_.current = t;
|
|
16325
16372
|
let v = p(n);
|
|
@@ -16336,7 +16383,7 @@ var dy = .0011, fy = 4, py = i(({ sourceRef: e, targets: t, weight: n = "delicat
|
|
|
16336
16383
|
let o = a.getBoundingClientRect(), s = {
|
|
16337
16384
|
x: o.left - i.left + o.width / 2,
|
|
16338
16385
|
y: o.top - i.top + o.height / 2
|
|
16339
|
-
}, c =
|
|
16386
|
+
}, c = sy[v.current] ?? sy.delicate, l = r && !om();
|
|
16340
16387
|
_.current.forEach((e, t) => {
|
|
16341
16388
|
let r = e.ref.current, a = m.current[t];
|
|
16342
16389
|
if (!a) return;
|
|
@@ -16354,11 +16401,11 @@ var dy = .0011, fy = 4, py = i(({ sourceRef: e, targets: t, weight: n = "delicat
|
|
|
16354
16401
|
y: o.top - i.top,
|
|
16355
16402
|
width: o.width,
|
|
16356
16403
|
height: o.height
|
|
16357
|
-
}, d =
|
|
16404
|
+
}, d = py({
|
|
16358
16405
|
x: u.x + u.width / 2,
|
|
16359
16406
|
y: u.y + u.height / 2
|
|
16360
|
-
}, s, u), f = t % 2 == 0 ? 1 : -1, p = l ? Math.sin(n *
|
|
16361
|
-
a.setAttribute("d",
|
|
16407
|
+
}, s, u), f = t % 2 == 0 ? 1 : -1, p = l ? Math.sin(n * _y + t * 1.7) * vy : 0;
|
|
16408
|
+
a.setAttribute("d", gy(s, d, c, {
|
|
16362
16409
|
sign: f,
|
|
16363
16410
|
sway: p
|
|
16364
16411
|
}));
|
|
@@ -16370,7 +16417,7 @@ var dy = .0011, fy = 4, py = i(({ sourceRef: e, targets: t, weight: n = "delicat
|
|
|
16370
16417
|
}, o = (e) => {
|
|
16371
16418
|
n(e), i && typeof requestAnimationFrame < "u" && (g.current = requestAnimationFrame(o));
|
|
16372
16419
|
}, s = () => {
|
|
16373
|
-
r && !
|
|
16420
|
+
r && !om() && typeof requestAnimationFrame < "u" ? i || (i = !0, g.current = requestAnimationFrame(o)) : n(0);
|
|
16374
16421
|
}, c = () => {
|
|
16375
16422
|
i || n(0);
|
|
16376
16423
|
}, l = typeof ResizeObserver < "u" ? new ResizeObserver(c) : void 0, u = () => {
|
|
@@ -16420,17 +16467,17 @@ var dy = .0011, fy = 4, py = i(({ sourceRef: e, targets: t, weight: n = "delicat
|
|
|
16420
16467
|
}, t))]
|
|
16421
16468
|
});
|
|
16422
16469
|
});
|
|
16423
|
-
|
|
16470
|
+
yy.displayName = "Connector";
|
|
16424
16471
|
//#endregion
|
|
16425
16472
|
//#region src/components/Notification/components/Notification.tsx
|
|
16426
|
-
var
|
|
16473
|
+
var by = {
|
|
16427
16474
|
primary: "Info",
|
|
16428
16475
|
gray: "Info",
|
|
16429
16476
|
success: "Done",
|
|
16430
16477
|
warning: "Warning",
|
|
16431
16478
|
error: "Error"
|
|
16432
|
-
},
|
|
16433
|
-
let { isClosing: p, triggerClose: m, handleAnimationEnd: h } =
|
|
16479
|
+
}, xy = ({ type: e = "primary", title: t, children: n, actions: r, onClose: i, avatar: a, image: o, progress: s, progressLabel: l, duration: u, showIcon: d = !0, className: f }) => {
|
|
16480
|
+
let { isClosing: p, triggerClose: m, handleAnimationEnd: h } = sm("eidotter-pop-out", i);
|
|
16434
16481
|
c(() => {
|
|
16435
16482
|
if (u == null || !i) return;
|
|
16436
16483
|
let e = setTimeout(() => m(), u);
|
|
@@ -16458,8 +16505,8 @@ var my = {
|
|
|
16458
16505
|
}),
|
|
16459
16506
|
g && /* @__PURE__ */ x("div", {
|
|
16460
16507
|
className: "eidotter-notification__icon",
|
|
16461
|
-
children: /* @__PURE__ */ x(
|
|
16462
|
-
name:
|
|
16508
|
+
children: /* @__PURE__ */ x(im, {
|
|
16509
|
+
name: by[e] || "Info",
|
|
16463
16510
|
size: "S",
|
|
16464
16511
|
"aria-label": `${e} notification`
|
|
16465
16512
|
})
|
|
@@ -16479,7 +16526,7 @@ var my = {
|
|
|
16479
16526
|
}),
|
|
16480
16527
|
_ && /* @__PURE__ */ S("div", {
|
|
16481
16528
|
className: "flex flex-col gap-1",
|
|
16482
|
-
children: [/* @__PURE__ */ x(
|
|
16529
|
+
children: [/* @__PURE__ */ x(Am, {
|
|
16483
16530
|
value: s,
|
|
16484
16531
|
max: 100,
|
|
16485
16532
|
size: "sm",
|
|
@@ -16500,7 +16547,7 @@ var my = {
|
|
|
16500
16547
|
})
|
|
16501
16548
|
]
|
|
16502
16549
|
}),
|
|
16503
|
-
i && /* @__PURE__ */ x(
|
|
16550
|
+
i && /* @__PURE__ */ x(am, {
|
|
16504
16551
|
icon: "Close",
|
|
16505
16552
|
label: "Close notification",
|
|
16506
16553
|
className: "eidotter-notification__close",
|
|
@@ -16512,22 +16559,22 @@ var my = {
|
|
|
16512
16559
|
};
|
|
16513
16560
|
//#endregion
|
|
16514
16561
|
//#region src/components/InlineLink/components/InlineLink.tsx
|
|
16515
|
-
function
|
|
16562
|
+
function Sy(e) {
|
|
16516
16563
|
let t = e.trim();
|
|
16517
|
-
return t === "" ||
|
|
16564
|
+
return t === "" || Cg(t, { extraSchemes: [
|
|
16518
16565
|
"tel",
|
|
16519
16566
|
"ftp",
|
|
16520
16567
|
"sms"
|
|
16521
16568
|
] }) ? t : "#";
|
|
16522
16569
|
}
|
|
16523
|
-
function
|
|
16570
|
+
function Cy(e, t) {
|
|
16524
16571
|
if (t.length === 0) return e;
|
|
16525
16572
|
let n = new Set((e ?? "").split(/\s+/).map((e) => e.trim().toLowerCase()).filter(Boolean));
|
|
16526
16573
|
for (let e of t) n.add(e.toLowerCase());
|
|
16527
16574
|
return Array.from(n).join(" ");
|
|
16528
16575
|
}
|
|
16529
|
-
var
|
|
16530
|
-
let l =
|
|
16576
|
+
var wy = i(({ children: e, href: t, showGlyph: n = !0, external: r = !1, className: i, target: a, rel: o, ...s }, c) => {
|
|
16577
|
+
let l = Sy(t), u = a ?? (r ? "_blank" : void 0), d = u === "_blank", f = d ? Cy(o, ["noopener", "noreferrer"]) : o, p = r && d ? "↗" : "▸";
|
|
16531
16578
|
return /* @__PURE__ */ S("a", {
|
|
16532
16579
|
ref: c,
|
|
16533
16580
|
href: l,
|
|
@@ -16545,10 +16592,10 @@ var vy = i(({ children: e, href: t, showGlyph: n = !0, external: r = !1, classNa
|
|
|
16545
16592
|
})]
|
|
16546
16593
|
});
|
|
16547
16594
|
});
|
|
16548
|
-
|
|
16595
|
+
wy.displayName = "InlineLink";
|
|
16549
16596
|
//#endregion
|
|
16550
16597
|
//#region src/components/DosFigure/components/DosFigure.tsx
|
|
16551
|
-
var
|
|
16598
|
+
var Ty = i(({ title: e, resolution: t, subject: n, caption: r, pins: i = [], animated: a = !0, "aria-label": o, className: s }, c) => {
|
|
16552
16599
|
let u = l(), d = r ? u : void 0;
|
|
16553
16600
|
return /* @__PURE__ */ S("figure", {
|
|
16554
16601
|
ref: c,
|
|
@@ -16556,7 +16603,7 @@ var yy = i(({ title: e, resolution: t, subject: n, caption: r, pins: i = [], ani
|
|
|
16556
16603
|
role: "img",
|
|
16557
16604
|
"aria-label": o,
|
|
16558
16605
|
"aria-describedby": d,
|
|
16559
|
-
children: [/* @__PURE__ */ x(
|
|
16606
|
+
children: [/* @__PURE__ */ x(vm, {
|
|
16560
16607
|
title: e && /* @__PURE__ */ x("span", {
|
|
16561
16608
|
"aria-hidden": "true",
|
|
16562
16609
|
children: e
|
|
@@ -16608,11 +16655,11 @@ var yy = i(({ title: e, resolution: t, subject: n, caption: r, pins: i = [], ani
|
|
|
16608
16655
|
})]
|
|
16609
16656
|
});
|
|
16610
16657
|
});
|
|
16611
|
-
|
|
16658
|
+
Ty.displayName = "DosFigure";
|
|
16612
16659
|
//#endregion
|
|
16613
16660
|
//#region src/components/CmdPalette/components/CmdPalette.tsx
|
|
16614
|
-
var
|
|
16615
|
-
function
|
|
16661
|
+
var Ey = /* @__PURE__ */ x(b, { children: "↑/↓ NAVIGATE · ↵ OPEN · ESC CLOSE" });
|
|
16662
|
+
function Dy(e) {
|
|
16616
16663
|
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");
|
|
16617
16664
|
return (e) => {
|
|
16618
16665
|
if (e.key.toLowerCase() !== n) return !1;
|
|
@@ -16620,15 +16667,15 @@ function xy(e) {
|
|
|
16620
16667
|
return !(!(r ? t ? e.metaKey : e.ctrlKey : !(e.metaKey || e.ctrlKey)) || i !== e.shiftKey || a !== e.altKey);
|
|
16621
16668
|
};
|
|
16622
16669
|
}
|
|
16623
|
-
function
|
|
16670
|
+
function Oy(e, t) {
|
|
16624
16671
|
if (!t) return 0;
|
|
16625
16672
|
let n = t.toLowerCase(), r = e.label.toLowerCase(), i = (e.keywords || []).map((e) => e.toLowerCase());
|
|
16626
16673
|
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;
|
|
16627
16674
|
}
|
|
16628
|
-
var
|
|
16675
|
+
var ky = i(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TYPE · ▸", hotkey: i = "mod+k", emptyMessage: a = "NO MATCHES", footerHint: s = Ey, renderItem: u, maxResults: f = 20, className: h, "aria-label": g = "Command palette" }, _) => {
|
|
16629
16676
|
let v = l(), y = `${v}-listbox`, [C, w] = m(""), [T, E] = m(0), D = p(null), O = p(null), k = p(!1), A = d(() => C.trim() ? n.map((e) => ({
|
|
16630
16677
|
item: e,
|
|
16631
|
-
score:
|
|
16678
|
+
score: Oy(e, C.trim())
|
|
16632
16679
|
})).filter((e) => e.score >= 0).sort((e, t) => t.score - e.score).slice(0, f).map((e) => e.item) : n.slice(0, f), [
|
|
16633
16680
|
n,
|
|
16634
16681
|
C,
|
|
@@ -16653,7 +16700,7 @@ var Cy = i(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TY
|
|
|
16653
16700
|
M.current = t;
|
|
16654
16701
|
}, [t]), c(() => {
|
|
16655
16702
|
if (i === !1) return;
|
|
16656
|
-
let e =
|
|
16703
|
+
let e = Dy(i), t = (t) => {
|
|
16657
16704
|
e(t) && (t.preventDefault(), M.current(!j.current));
|
|
16658
16705
|
};
|
|
16659
16706
|
return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
|
|
@@ -16675,7 +16722,7 @@ var Cy = i(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TY
|
|
|
16675
16722
|
let N = o((e) => {
|
|
16676
16723
|
e.onSelect?.(e), t(!1);
|
|
16677
16724
|
}, [t]);
|
|
16678
|
-
return /* @__PURE__ */ S(
|
|
16725
|
+
return /* @__PURE__ */ S(g_, {
|
|
16679
16726
|
ref: _,
|
|
16680
16727
|
open: e,
|
|
16681
16728
|
onOpenChange: t,
|
|
@@ -16754,10 +16801,10 @@ var Cy = i(({ open: e, onOpenChange: t, items: n, placeholder: r = "SEARCH · TY
|
|
|
16754
16801
|
})]
|
|
16755
16802
|
});
|
|
16756
16803
|
});
|
|
16757
|
-
|
|
16804
|
+
ky.displayName = "CmdPalette";
|
|
16758
16805
|
//#endregion
|
|
16759
16806
|
//#region src/components/AIText/components/AIText.tsx
|
|
16760
|
-
var
|
|
16807
|
+
var Ay = ({ children: e, className: t, title: n = "AI-assisted text — being rewritten" }) => /* @__PURE__ */ S("span", {
|
|
16761
16808
|
"data-provenance": "ai-draft",
|
|
16762
16809
|
className: $("eidotter-ai-text", t),
|
|
16763
16810
|
title: n,
|
|
@@ -16766,10 +16813,10 @@ var wy = ({ children: e, className: t, title: n = "AI-assisted text — being re
|
|
|
16766
16813
|
children: "AI-assisted: "
|
|
16767
16814
|
}), e]
|
|
16768
16815
|
});
|
|
16769
|
-
|
|
16816
|
+
Ay.displayName = "AIText";
|
|
16770
16817
|
//#endregion
|
|
16771
16818
|
//#region src/components/LegalPage/components/LegalPage.tsx
|
|
16772
|
-
var
|
|
16819
|
+
var jy = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...o }) => /* @__PURE__ */ S("div", {
|
|
16773
16820
|
className: $("eidotter-legal-page", a),
|
|
16774
16821
|
...o,
|
|
16775
16822
|
children: [r && /* @__PURE__ */ x("div", {
|
|
@@ -16792,13 +16839,13 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
16792
16839
|
className: "eidotter-legal-page__body",
|
|
16793
16840
|
children: i
|
|
16794
16841
|
})] })]
|
|
16795
|
-
}),
|
|
16842
|
+
}), My = /* @__PURE__ */ S(b, { children: [
|
|
16796
16843
|
"Haus-Endt-Str. 149A",
|
|
16797
16844
|
/* @__PURE__ */ x("br", {}),
|
|
16798
16845
|
"40593 Düsseldorf",
|
|
16799
16846
|
/* @__PURE__ */ x("br", {}),
|
|
16800
16847
|
"Deutschland"
|
|
16801
|
-
] }),
|
|
16848
|
+
] }), Ny = "Dominic Kennedy", Py = ({ email: e, address: t = My, name: n = Ny }) => /* @__PURE__ */ S("address", { children: [
|
|
16802
16849
|
n,
|
|
16803
16850
|
/* @__PURE__ */ x("br", {}),
|
|
16804
16851
|
t,
|
|
@@ -16810,16 +16857,16 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
16810
16857
|
children: e
|
|
16811
16858
|
})
|
|
16812
16859
|
] })
|
|
16813
|
-
] }),
|
|
16860
|
+
] }), Fy = (e) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Angaben gemäß § 5 DDG" }), /* @__PURE__ */ x(Py, { ...e })] }), Iy = ({ email: e }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Kontakt" }), /* @__PURE__ */ S("p", { children: ["E-Mail: ", /* @__PURE__ */ x("a", {
|
|
16814
16861
|
href: `mailto:${e}`,
|
|
16815
16862
|
children: e
|
|
16816
|
-
})] })] }),
|
|
16863
|
+
})] })] }), Ly = ({ name: e = Ny }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Inhaltlich verantwortlich (§ 18 Abs. 2 MStV)" }), /* @__PURE__ */ S("address", { children: [
|
|
16817
16864
|
e,
|
|
16818
16865
|
/* @__PURE__ */ x("br", {}),
|
|
16819
16866
|
"Haus-Endt-Str. 149A",
|
|
16820
16867
|
/* @__PURE__ */ x("br", {}),
|
|
16821
16868
|
"40593 Düsseldorf"
|
|
16822
|
-
] })] }),
|
|
16869
|
+
] })] }), Ry = () => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Haftung für Inhalte" }), /* @__PURE__ */ x("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." })] }), zy = () => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Haftung für Links" }), /* @__PURE__ */ x("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." })] }), By = ({ email: e, name: t = Ny }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Verantwortlicher" }), /* @__PURE__ */ S("address", { children: [
|
|
16823
16870
|
t,
|
|
16824
16871
|
/* @__PURE__ */ x("br", {}),
|
|
16825
16872
|
"Haus-Endt-Str. 149A",
|
|
@@ -16831,14 +16878,14 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
16831
16878
|
href: `mailto:${e}`,
|
|
16832
16879
|
children: e
|
|
16833
16880
|
})
|
|
16834
|
-
] })] }),
|
|
16881
|
+
] })] }), Vy = () => /* @__PURE__ */ S(b, { children: [
|
|
16835
16882
|
/* @__PURE__ */ x("h2", { children: "Hosting" }),
|
|
16836
16883
|
/* @__PURE__ */ x("p", { children: "Cloudflare Pages stellt diese Website bereit. Beim Seitenaufruf erhebt Cloudflare automatisch technische Zugriffsdaten (darunter Ihre IP-Adresse), um die Seite auszuliefern." }),
|
|
16837
16884
|
/* @__PURE__ */ x("p", {
|
|
16838
16885
|
className: "eidotter-legal-page__basis",
|
|
16839
16886
|
children: "Anbieter: Cloudflare, Inc., 101 Townsend St, San Francisco, CA 94107, USA. Rechtsgrundlage: Art. 6 Abs. 1 lit. f DSGVO (berechtigtes Interesse)."
|
|
16840
16887
|
})
|
|
16841
|
-
] }),
|
|
16888
|
+
] }), Hy = ({ proxyHost: e = "e.dmnc.tech" }) => /* @__PURE__ */ S(b, { children: [
|
|
16842
16889
|
/* @__PURE__ */ x("h2", { children: "Webanalyse — PostHog" }),
|
|
16843
16890
|
/* @__PURE__ */ S("p", { children: [
|
|
16844
16891
|
"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 ",
|
|
@@ -16855,7 +16902,7 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
16855
16902
|
className: "eidotter-legal-page__basis",
|
|
16856
16903
|
children: "Rechtsgrundlage: Art. 6 Abs. 1 lit. f DSGVO (berechtigtes Interesse)."
|
|
16857
16904
|
})
|
|
16858
|
-
] }),
|
|
16905
|
+
] }), Uy = () => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Schriftarten" }), /* @__PURE__ */ x("p", { children: "Die Schriftart „Perfect DOS VGA 437“ wird lokal von diesem Server ausgeliefert. Es findet keine Verbindung zu externen Schriftarten-Diensten statt." })] }), Wy = () => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h2", { children: "Verschlüsselung" }), /* @__PURE__ */ x("p", { children: "Diese Website nutzt SSL-/TLS-Verschlüsselung. Eine verschlüsselte Verbindung erkennen Sie am „https://“ in der Adresszeile Ihres Browsers." })] }), Gy = ({ email: e, supervisoryAuthority: t = "die Landesbeauftragte für Datenschutz und Informationsfreiheit Nordrhein-Westfalen" }) => /* @__PURE__ */ S(b, { children: [
|
|
16859
16906
|
/* @__PURE__ */ x("h2", { children: "Ihre Rechte" }),
|
|
16860
16907
|
/* @__PURE__ */ x("p", { children: "Die DSGVO gewährt Ihnen folgende Rechte:" }),
|
|
16861
16908
|
/* @__PURE__ */ S("ul", { children: [
|
|
@@ -16880,7 +16927,7 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
16880
16927
|
t,
|
|
16881
16928
|
"."
|
|
16882
16929
|
] })
|
|
16883
|
-
] }),
|
|
16930
|
+
] }), Ky = {
|
|
16884
16931
|
eidotter: { displayName: "eiDotter" },
|
|
16885
16932
|
spacewar: { displayName: "Spacewar!" },
|
|
16886
16933
|
rizomorf: { displayName: "rizomorf" },
|
|
@@ -16900,7 +16947,7 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
16900
16947
|
},
|
|
16901
16948
|
"doctor-portal": { displayName: "Doctor Portal" },
|
|
16902
16949
|
dosbts: { displayName: "DOSBTS" }
|
|
16903
|
-
},
|
|
16950
|
+
}, qy = {
|
|
16904
16951
|
Alert: {
|
|
16905
16952
|
origin: "eidotter",
|
|
16906
16953
|
consumers: ["rizomorf", "steuerdash"],
|
|
@@ -18003,6 +18050,11 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
18003
18050
|
swiftui: { status: "planned" }
|
|
18004
18051
|
},
|
|
18005
18052
|
changelog: [
|
|
18053
|
+
{
|
|
18054
|
+
version: "0.42.0",
|
|
18055
|
+
type: "changed",
|
|
18056
|
+
description: "The unit can drop under the value in a narrow card (a space before the unit is the break opportunity; was a 4px margin with no break) (DMNC-1610)"
|
|
18057
|
+
},
|
|
18006
18058
|
{
|
|
18007
18059
|
version: "0.40.0",
|
|
18008
18060
|
type: "changed",
|
|
@@ -18807,17 +18859,37 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
18807
18859
|
"size:full": {
|
|
18808
18860
|
description: "Viewport width minus 2x spacing-4 (Lightbox)",
|
|
18809
18861
|
since: "0.41.0"
|
|
18862
|
+
},
|
|
18863
|
+
"inline:false": {
|
|
18864
|
+
description: "Modal overlay: React Aria ModalOverlay, portal, scrim, focus trap (default)",
|
|
18865
|
+
since: "0.41.0"
|
|
18866
|
+
},
|
|
18867
|
+
"inline:true": {
|
|
18868
|
+
description: "Same chrome in document flow: no overlay, portal or focus trap; role=group, no aria-modal (docs, static previews)",
|
|
18869
|
+
since: "0.42.0"
|
|
18810
18870
|
}
|
|
18811
18871
|
},
|
|
18812
18872
|
platforms: { react: {
|
|
18813
18873
|
path: "src/components/DosDialog",
|
|
18814
18874
|
status: "canonical"
|
|
18815
18875
|
} },
|
|
18816
|
-
changelog: [
|
|
18817
|
-
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
|
|
18876
|
+
changelog: [
|
|
18877
|
+
{
|
|
18878
|
+
version: "0.42.0",
|
|
18879
|
+
type: "added",
|
|
18880
|
+
description: "inline prop: renders the same frame, strip, head, body, footer and end control in place without ModalOverlay, portal or focus trap, as a role=group with no aria-modal; server HTML carries the chrome (DMNC-1605)"
|
|
18881
|
+
},
|
|
18882
|
+
{
|
|
18883
|
+
version: "0.42.0",
|
|
18884
|
+
type: "changed",
|
|
18885
|
+
description: "Last end IconButton docks flush in the frame corner (0px top, 0px right, was 0px top, 4px right), the same rule as DosWindow controls (DMNC-1605)"
|
|
18886
|
+
},
|
|
18887
|
+
{
|
|
18888
|
+
version: "0.41.0",
|
|
18889
|
+
type: "added",
|
|
18890
|
+
description: "Initial DosDialog: open/onOpenChange, placement, size, head strip (title/end/marker/decorative or ReactNode), footer, isDismissable, pop-in/out panel (150ms) over a fading scrim, reduced-motion bypass"
|
|
18891
|
+
}
|
|
18892
|
+
]
|
|
18821
18893
|
},
|
|
18822
18894
|
IconButton: {
|
|
18823
18895
|
origin: "eidotter",
|
|
@@ -18872,6 +18944,10 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
18872
18944
|
status: "canonical"
|
|
18873
18945
|
} },
|
|
18874
18946
|
changelog: [{
|
|
18947
|
+
version: "0.42.0",
|
|
18948
|
+
type: "changed",
|
|
18949
|
+
description: "Last control IconButton docks flush in the frame corner (0px top, 0px right, was 0px top, 4px right); the inline-end overhang moved from the controls container to the last IconButton, so non-IconButton controls keep the strip padding (DMNC-1605)"
|
|
18950
|
+
}, {
|
|
18875
18951
|
version: "0.41.0",
|
|
18876
18952
|
type: "added",
|
|
18877
18953
|
description: "Initial DosWindow: title, marker, active, controls, footer, className; stable classes eidotter-window, __strip, __title, __controls, __body, __footer (DMNC-1592)"
|
|
@@ -19368,6 +19444,10 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
19368
19444
|
version: "0.40.0",
|
|
19369
19445
|
type: "added",
|
|
19370
19446
|
description: "Initial RangeBar (health metabolism family)"
|
|
19447
|
+
}, {
|
|
19448
|
+
version: "0.42.0",
|
|
19449
|
+
type: "changed",
|
|
19450
|
+
description: "Vertical legend wraps under the bar in a narrow container; legend names wrap instead of truncating and a bound moves to the next line whole; percent and target label separated by a gap and a space; lane and legend text print black on white (DMNC-1610)"
|
|
19371
19451
|
}]
|
|
19372
19452
|
},
|
|
19373
19453
|
SeriesBars: {
|
|
@@ -19416,15 +19496,28 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
19416
19496
|
},
|
|
19417
19497
|
swiftui: { status: "planned" }
|
|
19418
19498
|
},
|
|
19419
|
-
changelog: [
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19499
|
+
changelog: [
|
|
19500
|
+
{
|
|
19501
|
+
version: "0.40.0",
|
|
19502
|
+
type: "added",
|
|
19503
|
+
description: "Initial SeriesBars (health metabolism family)"
|
|
19504
|
+
},
|
|
19505
|
+
{
|
|
19506
|
+
version: "0.41.0",
|
|
19507
|
+
type: "changed",
|
|
19508
|
+
description: "Goal label moved into a reserved band above the plot so it never paints over a bar (DMNC-1573)"
|
|
19509
|
+
},
|
|
19510
|
+
{
|
|
19511
|
+
version: "0.42.0",
|
|
19512
|
+
type: "added",
|
|
19513
|
+
description: "Additive unit and format (formatValue digits/percent/signed) props: values and the goal carry the unit in the summary, value table and bar titles; a goal label that already holds the goal value is not repeated (DMNC-1610)"
|
|
19514
|
+
},
|
|
19515
|
+
{
|
|
19516
|
+
version: "0.42.0",
|
|
19517
|
+
type: "changed",
|
|
19518
|
+
description: "Sparse ticks (tickEvery > 1) overflow into empty neighbour columns instead of truncating; first and last labels pinned to the plot edges; goal tag and ticks print black on white (DMNC-1610)"
|
|
19519
|
+
}
|
|
19520
|
+
]
|
|
19428
19521
|
},
|
|
19429
19522
|
DecayStrip: {
|
|
19430
19523
|
origin: "eidotter",
|
|
@@ -19559,21 +19652,21 @@ var Ty = ({ title: e, date: t, intro: n, home: r, children: i, className: a, ...
|
|
|
19559
19652
|
}]
|
|
19560
19653
|
}
|
|
19561
19654
|
};
|
|
19562
|
-
function
|
|
19563
|
-
return
|
|
19655
|
+
function Jy(e) {
|
|
19656
|
+
return qy[e];
|
|
19564
19657
|
}
|
|
19565
|
-
function
|
|
19566
|
-
return Object.entries(
|
|
19658
|
+
function Yy(e) {
|
|
19659
|
+
return Object.entries(qy).filter(([, t]) => t.origin === e).map(([e]) => e);
|
|
19567
19660
|
}
|
|
19568
|
-
function
|
|
19569
|
-
return Object.entries(
|
|
19661
|
+
function Xy(e) {
|
|
19662
|
+
return Object.entries(qy).filter(([, t]) => t.consumers.includes(e)).map(([e]) => e);
|
|
19570
19663
|
}
|
|
19571
|
-
function
|
|
19572
|
-
let n =
|
|
19664
|
+
function Zy(e, t) {
|
|
19665
|
+
let n = qy[e];
|
|
19573
19666
|
return n?.variants ? Object.entries(n.variants).filter(([, e]) => e.usedBy?.includes(t)).map(([e]) => e) : [];
|
|
19574
19667
|
}
|
|
19575
|
-
function
|
|
19576
|
-
let t =
|
|
19668
|
+
function Qy(e) {
|
|
19669
|
+
let t = qy[e];
|
|
19577
19670
|
if (!t?.variants) return {};
|
|
19578
19671
|
let n = {};
|
|
19579
19672
|
for (let [e, r] of Object.entries(t.variants)) n[e] = r.usedBy ?? [];
|
|
@@ -19581,6 +19674,6 @@ function Ky(e) {
|
|
|
19581
19674
|
}
|
|
19582
19675
|
//#endregion
|
|
19583
19676
|
//#region src/index.ts
|
|
19584
|
-
var
|
|
19677
|
+
var $y = "0.41.1";
|
|
19585
19678
|
//#endregion
|
|
19586
|
-
export {
|
|
19679
|
+
export { Ay as AIText, mm as AccordionFill, Py as AddressBlock, fm as Alert, yg as Badge, Zv as BrandLockup, Tg as Breadcrumb, _m as Button, og as CalendarHeatmap, bm as Card, zv as ChatContainer, Lv as ChatHistory, Rv as ChatInput, Iv as ChatMessage, xm as Checkbox, pv as ChecklistRow, ky as CmdPalette, Sm as CommandPrompt, yy as Connector, mv as CopyButton, By as DatenschutzController, Wy as DatenschutzEncryption, Uy as DatenschutzFonts, Vy as DatenschutzHosting, Hy as DatenschutzPostHog, Gy as DatenschutzRights, Zh as DecayStrip, Mv as DesktopNav, g_ as DosDialog, Ty as DosFigure, vm as DosWindow, gh as EmptyState, iv as FilterBar, Vv as Footer, ah as Gauge, oy as Header, ug as HoldToComplete, im as Icon, am as IconButton, Fy as ImpressumAddress, Iy as ImpressumContact, Ry as ImpressumLiabilityContent, zy as ImpressumLiabilityLinks, Ly as ImpressumResponsible, sv as InlineExpand, wy as InlineLink, fg as Input, kv as LabeledProgress, Ov as LedgerRow, jy as LegalPage, __ as Lightbox, Yv as Logo, ny as Mark, mh as Meter, vh as MeterGroup, Nv as MobileNav, J_ as Modal, Pv as Nav, xy as Notification, Am as Progress, Mm as ProgressRing, kh as RangeBar, Ag as RetroEffects, pm as Section, dv as SectionHeading, Dv as Select, lv as Separator, Fh as SeriesBars, zm as Skeleton, nv as Stat, bg as Switch, gg as Tabs, A_ as Tag, M_ as TagGroup, pg as Terminal, Av as TextScramble, L_ as TimelineContainer, V_ as TimelineFeed, Fg as TimelineNode, q_ as TimelinePage, Bh as VitalsStrip, Xv as Wordmark, Ig as ZOOM_LEVELS, qy as componentRegistry, Bv as defaultLegalLinks, Jy as getComponentMeta, Xy as getComponentsByConsumer, Yy as getComponentsByOrigin, Qy as getVariantConsumerMap, Zy as getVariantsUsedBy, Cg as isSafeHref, av as isSafeUrl, Ky as projects, Z_ as useTextScramble, $y as version };
|