@iamfiro/design 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/avatar/AGENTS.md +29 -1
- package/agents/tooltip/AGENTS.md +1 -1
- package/lib/components/Accordion/Accordion2.js +76 -76
- package/lib/components/ActionBar/ActionBar2.js +43 -43
- package/lib/components/Alert/Alert2.js +46 -46
- package/lib/components/AppShell/AppShell2.js +58 -58
- package/lib/components/AreaChart/AreaChart.js +39 -40
- package/lib/components/BarChart/BarChart2.js +169 -169
- package/lib/components/BarList/BarList2.js +99 -99
- package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
- package/lib/components/Calendar/Calendar2.js +172 -171
- package/lib/components/Calendar/DatePicker2.js +101 -102
- package/lib/components/Calendar/date.js +71 -71
- package/lib/components/Card/Card2.js +55 -56
- package/lib/components/CardFrame/CardFrame2.js +52 -52
- package/lib/components/Chart/ChartParts.js +90 -90
- package/lib/components/Chart/chart2.js +52 -52
- package/lib/components/Chart/useChartInteraction.js +44 -44
- package/lib/components/ChatBubble/ChatBubble2.js +112 -112
- package/lib/components/ChatBubble/formatChatTime.js +44 -42
- package/lib/components/ChatComposer/ChatComposer2.js +94 -94
- package/lib/components/CodeBlock/CodeBlock2.js +66 -66
- package/lib/components/CodeBlock/highlight.js +67 -70
- package/lib/components/ColorPicker/ColorPicker2.js +404 -405
- package/lib/components/ColorPicker/color.js +81 -81
- package/lib/components/ColorPicker/presets.js +44 -43
- package/lib/components/Combobox/Combobox2.js +128 -128
- package/lib/components/CommandMenu/CommandMenu.js +137 -137
- package/lib/components/Comment/Comment2.js +55 -80
- package/lib/components/ContextMenu/ContextMenu2.js +93 -94
- package/lib/components/DataGrid/DataGrid2.js +1181 -1180
- package/lib/components/DataGrid/GridPopover.js +112 -112
- package/lib/components/DataGrid/anchor.js +23 -25
- package/lib/components/DataGrid/model.js +274 -275
- package/lib/components/DataGrid/panels.js +423 -423
- package/lib/components/DataGrid/typeMeta.js +21 -22
- package/lib/components/DataGrid/types.js +38 -37
- package/lib/components/DescriptionList/DescriptionList2.js +107 -107
- package/lib/components/Dialog/AlertDialog.js +53 -53
- package/lib/components/Dialog/Dialog2.js +71 -70
- package/lib/components/Dialog/modal.js +59 -58
- package/lib/components/Drawer/Drawer2.js +123 -124
- package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
- package/lib/components/DropdownMenu/menuCore.js +46 -47
- package/lib/components/Dropzone/Dropzone2.js +77 -77
- package/lib/components/EmptyState/EmptyState2.js +57 -56
- package/lib/components/FileChip/FileChip2.js +71 -71
- package/lib/components/FileUpload/FileUpload.js +119 -119
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +141 -141
- package/lib/components/FunnelChart/funnel.js +51 -51
- package/lib/components/Highlight/Highlight2.js +54 -54
- package/lib/components/HoverCard/HoverCard.js +108 -83
- package/lib/components/InlineDiff/InlineDiff2.js +126 -126
- package/lib/components/InlineDiff/diff.js +82 -82
- package/lib/components/InlineDiff/useDiffReview.js +62 -60
- package/lib/components/Kanban/Kanban2.js +382 -382
- package/lib/components/Kanban/KanbanCard.js +92 -92
- package/lib/components/Kanban/move.js +45 -49
- package/lib/components/LineChart/LineChart2.js +207 -207
- package/lib/components/List/List2.js +71 -71
- package/lib/components/Listbox/Listbox2.js +115 -115
- package/lib/components/Marker/Marker2.js +67 -60
- package/lib/components/Menubar/Menubar2.js +130 -133
- package/lib/components/MultiSelect/MultiSelect2.js +104 -104
- package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
- package/lib/components/NoticeStack/NoticeStack2.js +105 -105
- package/lib/components/NumberStepper/NumberStepper2.js +67 -67
- package/lib/components/OtpInput/OtpInput2.js +66 -67
- package/lib/components/Pagination/Pagination2.js +90 -90
- package/lib/components/Pagination/paginationRange.js +24 -24
- package/lib/components/PhoneInput/PhoneInput.js +74 -74
- package/lib/components/PieChart/PieChart2.js +119 -119
- package/lib/components/PieChart/arc.js +63 -42
- package/lib/components/PieChart/useArcTween.js +56 -54
- package/lib/components/Popover/Popover2.js +61 -61
- package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
- package/lib/components/Rating/Rating2.js +81 -81
- package/lib/components/Resizable/Resizable2.js +112 -110
- package/lib/components/Resizable/layout.js +50 -50
- package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
- package/lib/components/ScatterChart/ScatterChart2.js +226 -227
- package/lib/components/ScatterChart/scatter.js +59 -57
- package/lib/components/ScrollArea/ScrollArea2.js +112 -112
- package/lib/components/Select/Select2.js +79 -79
- package/lib/components/Sidebar/Sidebar2.js +79 -79
- package/lib/components/Skeleton/Skeleton2.js +68 -68
- package/lib/components/Slider/Slider2.js +78 -77
- package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
- package/lib/components/SparkChart/SparkChart2.js +146 -145
- package/lib/components/SparkChart/spark.js +41 -67
- package/lib/components/Sparkbar/Sparkbar2.js +61 -60
- package/lib/components/SplitView/SplitView2.js +53 -53
- package/lib/components/Stat/Stat2.js +94 -94
- package/lib/components/StepList/StepList2.js +70 -70
- package/lib/components/Table/Table2.js +63 -63
- package/lib/components/Tabs/Tabs2.js +70 -70
- package/lib/components/TagInput/TagInput2.js +236 -239
- package/lib/components/TimePicker/TimePicker2.js +231 -232
- package/lib/components/TimePicker/time.js +63 -65
- package/lib/components/Timeline/Timeline2.js +167 -167
- package/lib/components/Timeline/scale.js +55 -55
- package/lib/components/Toast/Toaster.js +151 -152
- package/lib/components/Toast/store.js +90 -87
- package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
- package/lib/components/Toolbar/Toolbar2.js +145 -145
- package/lib/components/Tracker/Tracker2.js +76 -76
- package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
- package/lib/components/TreeView/TreeView2.js +124 -124
- package/lib/hooks/timing.js +30 -29
- package/lib/hooks/useControllableState.js +37 -36
- package/lib/hooks/useCountdown.js +56 -59
- package/lib/hooks/useDigitInput.js +52 -78
- package/lib/hooks/useDismiss.js +58 -57
- package/lib/hooks/useElapsed.js +54 -54
- package/lib/hooks/useFloating.js +26 -26
- package/lib/hooks/useFocusTrap.js +42 -42
- package/lib/hooks/usePresence.js +49 -48
- package/lib/hooks/usePressToOpen.js +42 -41
- package/lib/hooks/useScrollLock.js +45 -44
- package/lib/hooks/useSelection.js +45 -39
- package/lib/index.js +71 -71
- package/lib/primitives/AspectRatio2.js +60 -60
- package/lib/primitives/BrandIcon.js +161 -161
- package/lib/primitives/ColorDot2.js +42 -45
- package/lib/primitives/CopyButton2.js +57 -56
- package/lib/primitives/CountBadge2.js +55 -51
- package/lib/primitives/Countdown2.js +41 -46
- package/lib/primitives/Delta2.js +36 -36
- package/lib/primitives/Elapsed.js +49 -49
- package/lib/primitives/FileIcon2.js +96 -96
- package/lib/primitives/Flag2.js +135 -135
- package/lib/primitives/IconStack2.js +38 -60
- package/lib/primitives/IconTile2.js +28 -29
- package/lib/primitives/Kbd2.js +50 -50
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +32 -31
- package/lib/primitives/MaskedText2.js +49 -74
- package/lib/primitives/Progress2.js +65 -66
- package/lib/primitives/RelativeTime.js +58 -57
- package/lib/primitives/SearchInput2.js +65 -65
- package/lib/primitives/SelectorButton2.js +74 -73
- package/lib/primitives/Spinner2.js +50 -50
- package/lib/primitives/StatusIcon2.js +68 -68
- package/lib/primitives/Swatch2.js +59 -55
- package/lib/primitives/Tooltip2.js +81 -81
- package/lib/primitives/Typography2.js +53 -53
- package/lib/primitives/formatCountdown.js +21 -22
- package/lib/primitives/formatElapsed.js +43 -42
- package/lib/primitives/formatRelativeTime.js +50 -50
- package/lib/primitives/hotkey.js +82 -82
- package/lib/primitives/index.js +193 -174
- package/lib/primitives/maskValue.js +28 -28
- package/lib/style.css +1 -1
- package/lib/types/primitives/index.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,61 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = D;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = D, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (-parseInt(n(
|
|
6
|
+
if (-parseInt(n(290)) / 1 + -parseInt(n(320)) / 2 + -parseInt(n(339)) / 3 + -parseInt(n(337)) / 4 + parseInt(n(307)) / 5 * (-parseInt(n(318)) / 6) + -parseInt(n(277)) / 7 + parseInt(n(292)) / 8 == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(O, 320036);
|
|
12
12
|
import { cx as t } from "../../primitives/index.js";
|
|
13
13
|
import { collapseLayout as n, expandLayout as r, initialLayout as i, isCollapsed as a, loadLayout as o, resetPair as s, resizeLayout as c, sameLayout as l, saveLayout as u } from "./layout.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import { Children as d, Fragment as f, createContext as p, isValidElement as m, useContext as h, useEffect as g, useId as _, useRef as v, useState as y } from "react";
|
|
16
16
|
import { jsx as b } from "react/jsx-runtime";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let n = k(), r = n[e];
|
|
20
|
-
x.OiMIUJ === void 0 && (x.HBJiSF = function(e) {
|
|
21
|
-
let t = "", n = "";
|
|
22
|
-
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
23
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
24
|
-
return decodeURIComponent(n);
|
|
25
|
-
}, x.qerQNm = {}, x.OiMIUJ = !0);
|
|
26
|
-
let i = n[0];
|
|
27
|
-
x.OoTsvd !== i && (x.qerQNm = {}, x.OoTsvd = i);
|
|
28
|
-
let a = x.qerQNm[e];
|
|
29
|
-
return a === void 0 ? (r = x.HBJiSF(r), x.qerQNm[e] = r) : r = a, r;
|
|
30
|
-
}
|
|
31
|
-
var S = p(null), C = p(-1), w = (e) => {
|
|
32
|
-
let t = h(S);
|
|
17
|
+
var x = p(null), S = p(-1), C = (e) => {
|
|
18
|
+
let t = h(x);
|
|
33
19
|
if (!t) throw Error(e + " must be inside a ResizablePanelGroup");
|
|
34
20
|
return t;
|
|
35
|
-
},
|
|
21
|
+
}, w = (t, n = "") => d.toArray(t)[e(312)]((t) => {
|
|
36
22
|
let r = e;
|
|
37
23
|
if (!m(t)) return [];
|
|
38
|
-
let i = "" + n + String(t[r(
|
|
39
|
-
return t[r(
|
|
24
|
+
let i = "" + n + String(t[r(282)]);
|
|
25
|
+
return t[r(279)] === f ? w(t[r(294)][r(313)], i + "/") : [{
|
|
40
26
|
el: t,
|
|
41
27
|
key: i
|
|
42
28
|
}];
|
|
43
|
-
}),
|
|
44
|
-
let n = e, r = t
|
|
29
|
+
}), T = 16, E = (t) => {
|
|
30
|
+
let n = e, r = t[n(302)] ?? 0, i = Math[n(317)](t[n(319)] ?? 10, r);
|
|
45
31
|
return {
|
|
46
32
|
min: i,
|
|
47
|
-
max: Math
|
|
48
|
-
collapsible: !!t[n(
|
|
33
|
+
max: Math.max(i, t[n(303)] ?? 100),
|
|
34
|
+
collapsible: !!t[n(297)],
|
|
49
35
|
collapsedSize: r,
|
|
50
|
-
defaultSize: t[n(
|
|
36
|
+
defaultSize: t[n(334)]
|
|
51
37
|
};
|
|
52
38
|
};
|
|
53
|
-
function D(
|
|
54
|
-
|
|
39
|
+
function D(e, t) {
|
|
40
|
+
e -= 275;
|
|
41
|
+
let n = O(), r = n[e];
|
|
42
|
+
D.oZisrq === void 0 && (D.agBuTs = function(e) {
|
|
43
|
+
let t = "", n = "";
|
|
44
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
45
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
46
|
+
return decodeURIComponent(n);
|
|
47
|
+
}, D.FZFZZz = {}, D.oZisrq = !0);
|
|
48
|
+
let i = n[0];
|
|
49
|
+
D.eOGVUx !== i && (D.FZFZZz = {}, D.eOGVUx = i);
|
|
50
|
+
let a = D.FZFZZz[e];
|
|
51
|
+
return a === void 0 ? (r = D.agBuTs(r), D.FZFZZz[e] = r) : r = a, r;
|
|
52
|
+
}
|
|
53
|
+
function O() {
|
|
54
|
+
let e = /* @__PURE__ */ "zgL2.y29TBwL0.zw5KrhjHzW.mtq2nZm1nhveDfzrzq.z2v0qM91BMrPBMDdBgLLBNrszwn0.DhLWzq.ChjLDMvUDerLzMf1Bhq.yNv0Dg9U.A2v5.D2LKDgG.rw5K.qxjYB3DvCa.AgvPz2H0.y3vYCMvUDa.rxnJyxbL.B25dB2XSyxbZzwrdAgfUz2u.nJe1mJKZrLPnEg94.zhmTCMvZAxPHyMXLx19NCMLW.mtG4mJmZnJHJD2rjwMS.rw50zxi.ChjVChm.AM9PBG.y29SBgfWC2vK.y29SBgfWC2LIBgu.y2XPzw50wq.CgfUzwXjzhm.Cg9PBNrLCKLK.C2v0ug9PBNrLCKnHChr1CMu.y29SBgfWC2vKu2L6zq.Bwf4u2L6zq.7yYO64sqio2bRoQ4ScdSOBdSOiG.zhmTCMvZAxPHyMXL.qxjYB3DsAwDODa.otq1odbqBKXmsxi.BwfW.uMvZAxPHyMXLsgfUzgXL.C3rHCNreCMfN.uhjVDMLKzxi.zMXHDe1HCa.y2HPBgrYzw4.zMLSDgvY.Ag9YAxPVBNrHBa.C3rHCNq.Bwf4.mZznreHOwfe.BwLUu2L6zq.mti0otq2r25nDhDj.zM9YrwfJAa.C2L6zxm.y3vYCMvUDfrHCMDLDa.zgLYzwn0Aw9U.BwLU.zhmTCMvZAxPHyMXLx19Wyw5LBa.uMvZAxPHyMXLugfUzwW.sg9Tzq.Bw92zurYywC.CM91BMq.BgfZDa.AgfUzgXL.lxbHBMvSlq.zgvMyxvSDfnPEMu.Cg9PBNrLCG.Dg9Nz2XL.mJaXmJG4ngzArNHwBa.zM9JDxm.mtu4nJm0mhLAzKLVAq.CgfUzwXZ".split(".");
|
|
55
|
+
return O = function() {
|
|
56
|
+
return e;
|
|
57
|
+
}, O();
|
|
58
|
+
}
|
|
59
|
+
function k({ direction: d = e(315), children: f, autoSaveId: p, onLayoutChange: m, onLayout: h, className: C, style: D, ...O }) {
|
|
60
|
+
let k = e, M = v(null), ee = _(), N = w(f), P = N[k(314)](({ el: e }) => e[k(279)] === A)[k(308)](({ el: e }) => e), F = P[k(308)]((e) => E(e[k(294)])), I = P[k(308)]((e, t) => e.props.id ?? ee + k(333) + t), L = F.map((e, t) => I[t] + ":" + (e[k(334)] ?? "") + ":" + e[k(325)] + ":" + e[k(317)])[k(295)]("|"), R = () => i(F, P[k(308)]((e) => !!(e[k(294)][k(296)] ?? e.props.defaultCollapsed))), [z, B] = y(() => ({
|
|
55
61
|
signature: L,
|
|
56
|
-
sizes: p && o(p, F
|
|
62
|
+
sizes: p && o(p, F.length) || R()
|
|
57
63
|
})), V = z.sizes;
|
|
58
|
-
z
|
|
64
|
+
z.signature !== L && (V = R(), B({
|
|
59
65
|
signature: L,
|
|
60
66
|
sizes: V
|
|
61
67
|
}));
|
|
@@ -68,7 +74,8 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
68
74
|
autoSaveId: p
|
|
69
75
|
});
|
|
70
76
|
g(() => {
|
|
71
|
-
|
|
77
|
+
let e = k;
|
|
78
|
+
K[e(287)] = {
|
|
72
79
|
sizes: V,
|
|
73
80
|
panels: F,
|
|
74
81
|
panelEls: P,
|
|
@@ -81,82 +88,83 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
81
88
|
...t,
|
|
82
89
|
sizes: e
|
|
83
90
|
})), J = (e, t, n = !0) => {
|
|
84
|
-
let r = k, { panels: i, panelEls: o, onLayout: s, autoSaveId: c } = K
|
|
85
|
-
q(e), !l(e, t) && (i[r(
|
|
91
|
+
let r = k, { panels: i, panelEls: o, onLayout: s, autoSaveId: c } = K[r(287)];
|
|
92
|
+
q(e), !l(e, t) && (i[r(321)]((s, c) => {
|
|
86
93
|
let l = r, u = a(t, i, c), d = a(e, i, c);
|
|
87
|
-
d && !u && (G[l(
|
|
94
|
+
d && !u && (G[l(287)][c] = t[c]), d !== u && n && o[c]?.[l(294)][l(289)]?.(d);
|
|
88
95
|
}), s?.(e), c && u(c, e));
|
|
89
96
|
}, Y = () => {
|
|
90
|
-
let e = k, t =
|
|
91
|
-
return Math[e(
|
|
92
|
-
}, te = (e) => G
|
|
97
|
+
let e = k, t = M[e(287)]?.[e(278)]();
|
|
98
|
+
return Math[e(317)](1, (d === e(315) ? t?.[e(283)] : t?.[e(286)]) ?? 1);
|
|
99
|
+
}, te = (e) => G[k(287)][e] ?? F[e][k(334)] ?? F[e][k(325)], X = (e, t, i) => i ? n(e, F, t) : r(e, F, t, te(t)), Z = v({
|
|
93
100
|
commit: J,
|
|
94
101
|
foldOrOpen: X
|
|
95
102
|
});
|
|
96
103
|
g(() => {
|
|
97
|
-
|
|
104
|
+
let e = k;
|
|
105
|
+
Z[e(287)] = {
|
|
98
106
|
commit: J,
|
|
99
107
|
foldOrOpen: X
|
|
100
108
|
};
|
|
101
109
|
});
|
|
102
|
-
let ne = P[k(
|
|
110
|
+
let ne = P[k(308)]((e) => e[k(294)][k(296)] === void 0 ? "" : e[k(294)][k(296)] ? "1" : "0")[k(295)]("");
|
|
103
111
|
g(() => {
|
|
104
112
|
let e = k;
|
|
105
|
-
if (W[e(
|
|
106
|
-
let { sizes: t, panels: n, panelEls: r } = K
|
|
107
|
-
r[e(
|
|
108
|
-
let o = e, s = t
|
|
109
|
-
s !== void 0 && n[r]
|
|
110
|
-
}), i !== t && Z.current[e(
|
|
113
|
+
if (W[e(287)]) return;
|
|
114
|
+
let { sizes: t, panels: n, panelEls: r } = K.current, i = t;
|
|
115
|
+
r[e(321)]((t, r) => {
|
|
116
|
+
let o = e, s = t[o(294)][o(296)];
|
|
117
|
+
s !== void 0 && n[r].collapsible && s !== a(i, n, r) && (i = Z.current.foldOrOpen(i, r, s));
|
|
118
|
+
}), i !== t && Z.current[e(275)](i, t, !1);
|
|
111
119
|
}, [ne, H]);
|
|
112
120
|
let re = (e, t) => {
|
|
113
121
|
let n = k;
|
|
114
|
-
t[n(
|
|
122
|
+
t[n(281)] === 0 && (t.preventDefault(), t[n(323)][n(301)](t[n(300)]), t[n(323)][n(338)]({ preventScroll: !0 }), W.current = {
|
|
115
123
|
handle: e,
|
|
116
|
-
pointer: d === n(
|
|
124
|
+
pointer: d === n(315) ? t.clientX : t.clientY,
|
|
117
125
|
start: V,
|
|
118
126
|
last: V,
|
|
119
127
|
px: Y()
|
|
120
128
|
}, U(e));
|
|
121
129
|
}, ie = (e) => {
|
|
122
|
-
let t = k, n = W[t(
|
|
130
|
+
let t = k, n = W[t(287)];
|
|
123
131
|
if (!n) return;
|
|
124
|
-
let r = ((d === t(
|
|
125
|
-
l(i, n
|
|
132
|
+
let r = ((d === t(315) ? e.clientX : e[t(298)]) - n[t(335)]) / n.px * 100, i = c(n[t(316)], F, n[t(332)], r, .5);
|
|
133
|
+
l(i, n[t(331)]) || (n.last = i, q(i), m?.(i));
|
|
126
134
|
}, ae = () => {
|
|
127
|
-
let e = k, t = W[e(
|
|
128
|
-
t && (W[e(
|
|
135
|
+
let e = k, t = W[e(287)];
|
|
136
|
+
t && (W[e(287)] = null, U(null), J(t[e(331)], t[e(316)]));
|
|
129
137
|
}, oe = () => {
|
|
130
|
-
let e = k, t = W[e(
|
|
131
|
-
t && (W[e(
|
|
138
|
+
let e = k, t = W[e(287)];
|
|
139
|
+
t && (W[e(287)] = null, U(null), q(t.start), m?.(t.start));
|
|
132
140
|
}, Q = (e) => {
|
|
133
141
|
let t = F[e].collapsible ? e : F[e + 1]?.collapsible ? e + 1 : -1;
|
|
134
142
|
J(t >= 0 ? X(V, t, !a(V, F, t)) : s(V, F, e, R()), V);
|
|
135
143
|
}, se = (e, t) => {
|
|
136
144
|
let n = k;
|
|
137
|
-
if (t
|
|
138
|
-
t[n(
|
|
145
|
+
if (t.key === n(288) && W[n(287)]) {
|
|
146
|
+
t[n(280)](), oe();
|
|
139
147
|
return;
|
|
140
148
|
}
|
|
141
|
-
if (W
|
|
142
|
-
let r = d === n(
|
|
143
|
-
if (t[n(
|
|
144
|
-
else if (t[n(
|
|
145
|
-
else if (t[n(
|
|
146
|
-
else if (t[n(
|
|
147
|
-
else if (t
|
|
148
|
-
t
|
|
149
|
+
if (W.current) return;
|
|
150
|
+
let r = d === n(315) ? "ArrowLeft" : n(285), i = d === n(315) ? n(306) : "ArrowDown", a = (t.shiftKey ? 64 : T) / Y() * 100, o = F[e], s = F[e + 1], l = null;
|
|
151
|
+
if (t[n(282)] === r) l = -a;
|
|
152
|
+
else if (t[n(282)] === i) l = a;
|
|
153
|
+
else if (t[n(282)] === n(328)) l = -Math.max(0, V[e] - o[n(325)]);
|
|
154
|
+
else if (t[n(282)] === n(284)) l = Math.max(0, Math[n(325)](o.max - V[e], V[e + 1] - s.min));
|
|
155
|
+
else if (t[n(282)] === n(293)) {
|
|
156
|
+
t[n(280)](), Q(e);
|
|
149
157
|
return;
|
|
150
158
|
}
|
|
151
|
-
l !== null && (t[n(
|
|
152
|
-
}, $ = -1, ce = N
|
|
159
|
+
l !== null && (t[n(280)](), J(c(V, F, e, l, 0), V));
|
|
160
|
+
}, $ = -1, ce = N[k(308)](({ el: e, key: t }) => {
|
|
153
161
|
let n = k, r = -1;
|
|
154
|
-
return e[n(
|
|
162
|
+
return e[n(279)] === A ? r = ++$ : e[n(279)] === j && (r = $), b(S.Provider, {
|
|
155
163
|
value: r,
|
|
156
164
|
children: e
|
|
157
165
|
}, t);
|
|
158
166
|
});
|
|
159
|
-
return b(
|
|
167
|
+
return b(x[k(311)], {
|
|
160
168
|
value: {
|
|
161
169
|
direction: d,
|
|
162
170
|
sizes: V,
|
|
@@ -169,25 +177,25 @@ function D({ direction: d = "horizontal", children: f, autoSaveId: p, onLayoutCh
|
|
|
169
177
|
onHandleKey: se,
|
|
170
178
|
toggle: Q
|
|
171
179
|
},
|
|
172
|
-
children: b(k(
|
|
173
|
-
ref:
|
|
174
|
-
className: t(k(
|
|
180
|
+
children: b(k(341), {
|
|
181
|
+
ref: M,
|
|
182
|
+
className: t(k(305), C),
|
|
175
183
|
"data-direction": d,
|
|
176
184
|
"data-dragging": H !== null || void 0,
|
|
177
|
-
style:
|
|
178
|
-
...
|
|
185
|
+
style: D,
|
|
186
|
+
...O,
|
|
179
187
|
children: ce
|
|
180
188
|
})
|
|
181
189
|
});
|
|
182
190
|
}
|
|
183
|
-
function
|
|
184
|
-
let _ = e, v =
|
|
185
|
-
return b(_(
|
|
186
|
-
id: v
|
|
187
|
-
className: t(_(
|
|
191
|
+
function A({ defaultSize: n, minSize: r, maxSize: i, collapsible: o, collapsedSize: s, collapsed: c, defaultCollapsed: l, onCollapsedChange: u, id: d, className: f, style: p, children: m, ...g }) {
|
|
192
|
+
let _ = e, v = C(_(327)), y = h(S), x = v[_(322)][y] ?? 0, w = v.panels[y], T = !!w && a(v[_(322)], v.panels, y);
|
|
193
|
+
return b(_(341), {
|
|
194
|
+
id: v[_(299)][y],
|
|
195
|
+
className: t(_(326), f),
|
|
188
196
|
"data-collapsed": T || void 0,
|
|
189
|
-
"data-size": Math
|
|
190
|
-
inert: T &&
|
|
197
|
+
"data-size": Math[_(330)](x),
|
|
198
|
+
inert: T && w[_(302)] === 0 ? !0 : void 0,
|
|
191
199
|
style: {
|
|
192
200
|
flexGrow: x,
|
|
193
201
|
...p
|
|
@@ -196,41 +204,35 @@ function O({ defaultSize: n, minSize: r, maxSize: i, collapsible: o, collapsedSi
|
|
|
196
204
|
children: m
|
|
197
205
|
});
|
|
198
206
|
}
|
|
199
|
-
function
|
|
200
|
-
let e =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
function A({ withGrip: n, disabled: r, className: i, "aria-label": a, ...o }) {
|
|
206
|
-
let s = e, c = w(s(159)), l = h(C), u = c[s(170)][l];
|
|
207
|
-
if (!u || !c[s(170)][l + 1]) return null;
|
|
208
|
-
let d = c[s(180)][l], f = c[s(183)] === l;
|
|
209
|
-
return b(s(119), {
|
|
210
|
-
role: s(121),
|
|
207
|
+
function j({ withGrip: n, disabled: r, className: i, "aria-label": a, ...o }) {
|
|
208
|
+
let s = e, c = C(s(309)), l = h(S), u = c[s(340)][l];
|
|
209
|
+
if (!u || !c.panels[l + 1]) return null;
|
|
210
|
+
let d = c[s(322)][l], f = c.dragging === l;
|
|
211
|
+
return b("div", {
|
|
212
|
+
role: "separator",
|
|
211
213
|
tabIndex: r ? void 0 : 0,
|
|
212
|
-
"aria-orientation": c[s(
|
|
213
|
-
"aria-label": a ?? s(
|
|
214
|
-
"aria-controls": c[
|
|
215
|
-
"aria-valuenow": Math[s(
|
|
216
|
-
"aria-valuemin": Math[s(
|
|
217
|
-
"aria-valuemax": Math[s(
|
|
214
|
+
"aria-orientation": c[s(324)] === s(315) ? "vertical" : "horizontal",
|
|
215
|
+
"aria-label": a ?? s(304),
|
|
216
|
+
"aria-controls": c.panelIds[l],
|
|
217
|
+
"aria-valuenow": Math[s(330)](d),
|
|
218
|
+
"aria-valuemin": Math.round(u[s(297)] ? u[s(302)] : u[s(325)]),
|
|
219
|
+
"aria-valuemax": Math[s(330)](u[s(317)]),
|
|
218
220
|
"aria-disabled": r || void 0,
|
|
219
|
-
className: t(
|
|
221
|
+
className: t("ds-resizable__handle", i),
|
|
220
222
|
"data-dragging": f || void 0,
|
|
221
223
|
"data-disabled": r || void 0,
|
|
222
|
-
onPointerDown: r ? void 0 : (e) => c[s(
|
|
223
|
-
onPointerMove: c[s(
|
|
224
|
-
onPointerUp: c[s(
|
|
225
|
-
onPointerCancel: c[s(
|
|
226
|
-
onLostPointerCapture: c[s(
|
|
227
|
-
onDoubleClick: r ? void 0 : () => c[s(
|
|
228
|
-
onKeyDown: r ? void 0 : (e) => c
|
|
224
|
+
onPointerDown: r ? void 0 : (e) => c[s(310)](l, e),
|
|
225
|
+
onPointerMove: c[s(329)],
|
|
226
|
+
onPointerUp: c[s(276)],
|
|
227
|
+
onPointerCancel: c[s(276)],
|
|
228
|
+
onLostPointerCapture: c[s(276)],
|
|
229
|
+
onDoubleClick: r ? void 0 : () => c[s(336)](l),
|
|
230
|
+
onKeyDown: r ? void 0 : (e) => c.onHandleKey(l, e),
|
|
229
231
|
...o,
|
|
230
232
|
children: n && b("span", {
|
|
231
|
-
className: s(
|
|
233
|
+
className: s(291),
|
|
232
234
|
"aria-hidden": !0
|
|
233
235
|
})
|
|
234
236
|
});
|
|
235
237
|
}
|
|
236
|
-
export {
|
|
238
|
+
export { j as ResizableHandle, A as ResizablePanel, k as ResizablePanelGroup };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = u;
|
|
3
3
|
function t() {
|
|
4
|
-
let e = /* @__PURE__ */ "
|
|
4
|
+
let e = /* @__PURE__ */ "ndCWnJa3mfz4ue1xzW.mJe0ogzZwe9Vta.AxngAw5PDgu.ntqYofnVrKn0uq.BgvUz3rO.zMLSDgvY.mZe1mKvkv3Hyra.mZKYCwDKvw5R.mZG0mtyZnvrzr2rSAa.BwfW.zNjVBq.Bwf4.y29SBgfWC2vKu2L6zq.ywjZ.otG3mdn5wKPSuKq.nNDXELvttG.y29SBgfWC2LIBgu.z2v0sxrLBq.zgvMyxvSDfnPEMu.nJa1me5yvhH2DG.C2v0sxrLBq.ntK0ndyXmeffquztsq.zxzLCNK.BwLU.CMvKDwnL.C2XPy2u.mZuWrgTJAKnc.Bg9JywXtDg9YywDL.mtK4mer6ugL3AG.BhvTzw46CMvZAxPHyMXLoG".split(".");
|
|
5
5
|
return t = function() {
|
|
6
6
|
return e;
|
|
7
7
|
}, t();
|
|
8
8
|
}
|
|
9
9
|
(function(e, t) {
|
|
10
|
-
let n =
|
|
10
|
+
let n = u, r = e();
|
|
11
11
|
for (;;) try {
|
|
12
|
-
if (
|
|
12
|
+
if (parseInt(n(524)) / 1 * (-parseInt(n(504)) / 2) + parseInt(n(499)) / 3 * (parseInt(n(501)) / 4) + -parseInt(n(506)) / 5 * (parseInt(n(513)) / 6) + parseInt(n(519)) / 7 + -parseInt(n(505)) / 8 * (-parseInt(n(512)) / 9) + -parseInt(n(498)) / 10 + -parseInt(n(517)) / 11 * (-parseInt(n(526)) / 12) == t) break;
|
|
13
13
|
r.push(r.shift());
|
|
14
14
|
} catch {
|
|
15
15
|
r.push(r.shift());
|
|
16
16
|
}
|
|
17
|
-
})(t,
|
|
18
|
-
var n = .01, r = (t, n, r) => Math[e(
|
|
17
|
+
})(t, 658441);
|
|
18
|
+
var n = .01, r = (t, n, r) => Math[e(521)](r, Math[e(509)](n, t)), i = (t, r, i) => r[i].collapsible && t[i] <= r[i][e(510)] + n, a = (t) => t[e(522)]((e, t) => e + t, 0), o = (t, n) => [...Array.from({ length: t - n - 1 }, (e, t) => n + 1 + t), ...Array[e(508)]({ length: n }, (e, t) => n - 1 - t)];
|
|
19
19
|
function s(t, i) {
|
|
20
|
-
let o = e, s = a(t.map((e) => e[o(
|
|
20
|
+
let o = e, s = a(t.map((e) => e[o(516)] ?? 0)), c = t[o(503)]((e) => e.defaultSize === void 0).length, l = c ? Math[o(509)](0, 100 - s) / c : 0, u = t[o(507)]((e, t) => i[t] && e[o(514)] ? e[o(510)] : r(e[o(516)] ?? l, e[o(521)], e[o(509)])), d = 100 - a(u), f = [...t.map((e, t) => t)[o(503)]((e) => t[e][o(516)] === void 0), ...t[o(507)]((e, t) => t)[o(503)]((e) => t[e][o(516)] !== void 0)][o(503)]((e) => !(i[e] && t[e].collapsible));
|
|
21
21
|
for (let e of f) {
|
|
22
|
-
if (Math[o(
|
|
23
|
-
let i = r(u[e] + d, t[e]
|
|
22
|
+
if (Math[o(511)](d) <= n) break;
|
|
23
|
+
let i = r(u[e] + d, t[e][o(521)], t[e].max);
|
|
24
24
|
d -= i - u[e], u[e] = i;
|
|
25
25
|
}
|
|
26
|
-
return Math
|
|
26
|
+
return Math[o(511)](d) > n && f[o(502)] && (u[f[f[o(502)] - 1]] += d), u;
|
|
27
27
|
}
|
|
28
28
|
function c(t, r, a, o, s = .5) {
|
|
29
29
|
let c = e;
|
|
30
30
|
if (Math.abs(o) < n) return t;
|
|
31
|
-
let l = r
|
|
31
|
+
let l = r[c(502)], u = t.slice(), d = o > 0 ? a : a + 1, f = o > 0 ? Array[c(508)]({ length: l - a - 1 }, (e, t) => a + 1 + t) : Array[c(508)]({ length: a + 1 }, (e, t) => a - t), p = r[d], m = Math.abs(o), h = 0;
|
|
32
32
|
if (i(t, r, d)) {
|
|
33
|
-
let e = p
|
|
33
|
+
let e = p[c(521)] - p[c(510)];
|
|
34
34
|
if (m < e * s) return t;
|
|
35
|
-
m = Math[c(
|
|
35
|
+
m = Math[c(509)](m, e), h = e;
|
|
36
36
|
}
|
|
37
|
-
let g = p[c(
|
|
38
|
-
if (m = Math[c(
|
|
37
|
+
let g = p[c(509)] - t[d];
|
|
38
|
+
if (m = Math[c(521)](m, g), m <= n) return t;
|
|
39
39
|
let _ = 0;
|
|
40
40
|
for (let e of f) {
|
|
41
41
|
let a = m - _;
|
|
42
42
|
if (a <= n) break;
|
|
43
43
|
let o = r[e];
|
|
44
44
|
if (i(t, r, e)) continue;
|
|
45
|
-
let l = Math
|
|
46
|
-
if (o
|
|
45
|
+
let l = Math.max(0, u[e] - o[c(521)]);
|
|
46
|
+
if (o.collapsible && a > l + (o[c(521)] - o[c(510)]) * s && _ + u[e] - o[c(510)] <= g + n) _ += u[e] - o[c(510)], u[e] = o.collapsedSize;
|
|
47
47
|
else {
|
|
48
|
-
let t = Math
|
|
48
|
+
let t = Math[c(521)](l, a);
|
|
49
49
|
u[e] -= t, _ += t;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -53,55 +53,55 @@ function c(t, r, a, o, s = .5) {
|
|
|
53
53
|
}
|
|
54
54
|
function l(t, r, a) {
|
|
55
55
|
let s = e, c = r[a];
|
|
56
|
-
if (!c
|
|
57
|
-
let l = t[s(
|
|
58
|
-
l[a] = c
|
|
59
|
-
for (let e of o(r
|
|
56
|
+
if (!c[s(514)] || i(t, r, a)) return t;
|
|
57
|
+
let l = t[s(523)](), u = l[a] - c[s(510)];
|
|
58
|
+
l[a] = c[s(510)];
|
|
59
|
+
for (let e of o(r[s(502)], a)) {
|
|
60
60
|
if (u <= n) break;
|
|
61
61
|
if (i(t, r, e)) continue;
|
|
62
|
-
let a = Math
|
|
62
|
+
let a = Math.min(u, Math[s(509)](0, r[e][s(509)] - l[e]));
|
|
63
63
|
l[e] += a, u -= a;
|
|
64
64
|
}
|
|
65
65
|
return u > n ? t : l;
|
|
66
66
|
}
|
|
67
|
-
function u(
|
|
68
|
-
|
|
67
|
+
function u(e, n) {
|
|
68
|
+
e -= 498;
|
|
69
|
+
let r = t(), i = r[e];
|
|
70
|
+
u.kIMKiX === void 0 && (u.pqkvSn = function(e) {
|
|
71
|
+
let t = "", n = "";
|
|
72
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
73
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
74
|
+
return decodeURIComponent(n);
|
|
75
|
+
}, u.RWQATk = {}, u.kIMKiX = !0);
|
|
76
|
+
let a = r[0];
|
|
77
|
+
u.CYZdJb !== a && (u.RWQATk = {}, u.CYZdJb = a);
|
|
78
|
+
let o = u.RWQATk[e];
|
|
79
|
+
return o === void 0 ? (i = u.pqkvSn(i), u.RWQATk[e] = i) : i = o, i;
|
|
80
|
+
}
|
|
81
|
+
function d(t, a, s, c) {
|
|
82
|
+
let l = e, u = a[s], d = t[l(523)](), f = r(c, u.min, u[l(509)]) - d[s];
|
|
69
83
|
if (f <= n) return t;
|
|
70
84
|
let p = 0;
|
|
71
|
-
for (let e of o(a[l(
|
|
85
|
+
for (let e of o(a[l(502)], s)) {
|
|
72
86
|
if (f - p <= n) break;
|
|
73
87
|
if (i(t, a, e)) continue;
|
|
74
|
-
let r = Math[l(
|
|
88
|
+
let r = Math[l(521)](f - p, Math[l(509)](0, d[e] - a[e][l(521)]));
|
|
75
89
|
d[e] -= r, p += r;
|
|
76
90
|
}
|
|
77
|
-
return d[s] + p < u
|
|
91
|
+
return d[s] + p < u.min - n ? t : (d[s] += p, d);
|
|
78
92
|
}
|
|
79
|
-
function
|
|
80
|
-
let s = e, c = a, l = a + 1, u = t[c] + t[l], d = r(u * (o[c] / Math
|
|
93
|
+
function f(t, i, a, o) {
|
|
94
|
+
let s = e, c = a, l = a + 1, u = t[c] + t[l], d = r(u * (o[c] / Math[s(509)](n, o[c] + o[l])), Math[s(509)](i[c][s(521)], u - i[l][s(509)]), Math[s(521)](i[c][s(509)], u - i[l][s(521)])), f = t[s(523)]();
|
|
81
95
|
return f[c] = d, f[l] = u - d, f;
|
|
82
96
|
}
|
|
83
|
-
var
|
|
84
|
-
function m(e, n) {
|
|
85
|
-
e -= 121;
|
|
86
|
-
let r = t(), i = r[e];
|
|
87
|
-
m.CYjxsl === void 0 && (m.ThKkyL = function(e) {
|
|
88
|
-
let t = "", n = "";
|
|
89
|
-
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
90
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
91
|
-
return decodeURIComponent(n);
|
|
92
|
-
}, m.zeCORE = {}, m.CYjxsl = !0);
|
|
93
|
-
let a = r[0];
|
|
94
|
-
m.IhrrGQ !== a && (m.zeCORE = {}, m.IhrrGQ = a);
|
|
95
|
-
let o = m.zeCORE[e];
|
|
96
|
-
return o === void 0 ? (i = m.ThKkyL(i), m.zeCORE[e] = i) : i = o, i;
|
|
97
|
-
}
|
|
97
|
+
var p = (t, r) => t[e(502)] === r.length && t.every((e, t) => Math.abs(e - r[t]) <= n), m = e(527);
|
|
98
98
|
function h(t, n) {
|
|
99
99
|
let r = e;
|
|
100
100
|
try {
|
|
101
|
-
let e = window[r(
|
|
101
|
+
let e = window[r(525)][r(515)](m + t);
|
|
102
102
|
if (!e) return null;
|
|
103
|
-
let i = JSON
|
|
104
|
-
return !Array
|
|
103
|
+
let i = JSON.parse(e);
|
|
104
|
+
return !Array.isArray(i) || i[r(502)] !== n || !i[r(520)]((e) => typeof e == "number" && Number[r(500)](e) && e >= 0) || Math[r(511)](a(i) - 100) > .5 ? null : i;
|
|
105
105
|
} catch {
|
|
106
106
|
return null;
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ function h(t, n) {
|
|
|
109
109
|
function g(t, n) {
|
|
110
110
|
let r = e;
|
|
111
111
|
try {
|
|
112
|
-
window.localStorage
|
|
112
|
+
window.localStorage[r(518)](m + t, JSON.stringify(n.map((e) => Math.round(e * 100) / 100)));
|
|
113
113
|
} catch {}
|
|
114
114
|
}
|
|
115
|
-
export { l as collapseLayout,
|
|
115
|
+
export { l as collapseLayout, d as expandLayout, s as initialLayout, i as isCollapsed, h as loadLayout, f as resetPair, c as resizeLayout, p as sameLayout, g as saveLayout };
|