@iamfiro/design 0.3.4 → 0.3.5

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.
Files changed (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,190 +1,175 @@
1
1
  "use client";
2
- const e = r;
2
+ function e() {
3
+ let t = /* @__PURE__ */ "DgLTzxi.z2v0qxr0CMLIDxrL.z2v0.BMf0AxzLrxzLBNq.zhmTDhjLzs12Awv3ls0.qxjYB3DeB3DU.mJu5mdDVELH0EgG.AM9PBG.y3vYCMvUDa.zxzLCNK.BNvTyMvY.C3rVCfbYB3bHz2f0Aw9U.zhmTDhjLzs12Awv3x190zxH0.zhmTDhjLzs12Awv3x19PDgvT.ndm1ntuYvKLYCxvA.ntuXnZu1rNDutMPk.C2LUz2XL.C2v0.zxHWyw5Kzwq.odm0qxryrMXv.zhmTDhjLzs12Awv3ls1ZDgf0Awm.odGYotK2sNrbwLHY.DgfYz2v0.zM9JDxm.AxndB21WB3nPBMC.z3jVDxa.DMfYkc0TCW.A2v5.C3rHCNrZv2L0Aa.zhmTDhjLzs12Awv3x19MB2XK.zhmTDhjLzs12Awv3x19MB2XKlwLUBMvY.DhLWzq.zhmTDhjLzs12Awv3x19KzxnJ.sxrLBq.zgvSzxrL.BgfIzwW.ntrtr2frC2u.ChvZAa.y2XLyxjuAw1LB3v0.zhmTDhjLzs12Awv3x19NCM91Ca.CM9Szq.DhjLzwL0zw0.BM9Kzq.ywX0s2v5.AgfZq2HPBgrYzw4.DhjHAwXPBMC.zhmTDhjLzs12Awv3.mhb4.nte0mJu3C1j0vwr2.C2v0vgLTzw91Da.rw5K.DhjLzq.zgLZywjSzwq.AgfZ.C3bHBG.BgvHzgLUzW.Dgv4Da.mJiYodi2otb2sMzfrfi.DhLWzwfOzwfK.y2HPBgrYzw4.y3rYBeTLEq.zhmTDhjLzs12Awv3x190CMfPBgLUzW.zMLUzeLUzgv4.qxjYB3Dmzwz0.Dgv4DfzHBhvL.ChjVChm.zhmTDhjLzs12Awv3x19YB3C.rw50zxi.nhrfBuXMCa.BM9Uzq.zgvZy3jPChrPB24.BgvUz3rO.mty4mJyZmwToAw5YEG.Dg9mB3DLCKnHC2u.CgfYzw50swq.y3vYCMvUDfrHCMDLDa.zMLSDgvY.BwfW.zgL2.zhmTDhjLzs12Awv3x190B2DNBgu".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
7
+ }
8
+ const t = b;
3
9
  (function(e, t) {
4
- let n = r, i = e();
10
+ let n = b, r = e();
5
11
  for (;;) try {
6
- if (-parseInt(n(241)) / 1 + -parseInt(n(282)) / 2 * (parseInt(n(247)) / 3) + -parseInt(n(278)) / 4 * (parseInt(n(296)) / 5) + parseInt(n(301)) / 6 * (parseInt(n(234)) / 7) + -parseInt(n(256)) / 8 + -parseInt(n(299)) / 9 * (parseInt(n(240)) / 10) + parseInt(n(245)) / 11 == t) break;
7
- i.push(i.shift());
12
+ if (-parseInt(n(461)) / 1 + -parseInt(n(434)) / 2 + -parseInt(n(485)) / 3 * (parseInt(n(481)) / 4) + -parseInt(n(508)) / 5 + -parseInt(n(432)) / 6 * (parseInt(n(499)) / 7) + -parseInt(n(507)) / 8 * (-parseInt(n(449)) / 9) + parseInt(n(470)) / 10 == t) break;
13
+ r.push(r.shift());
8
14
  } catch {
9
- i.push(i.shift());
15
+ r.push(r.shift());
10
16
  }
11
- })(m, 615581);
12
- import { TIMING as t } from "../../hooks/timing.js";
13
- import { useControllableState as n } from "../../hooks/useControllableState.js";
14
- function r(e, t) {
15
- e -= 225;
16
- let n = m(), i = n[e];
17
- r.hyfoQn === void 0 && (r.IOGHND = function(e) {
18
- let t = "", n = "";
19
- 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);
20
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
- return decodeURIComponent(n);
22
- }, r.aQEIoD = {}, r.hyfoQn = !0);
23
- let a = n[0];
24
- r.OairHa !== a && (r.aQEIoD = {}, r.OairHa = a);
25
- let o = r.aQEIoD[e];
26
- return o === void 0 ? (i = r.IOGHND(i), r.aQEIoD[e] = i) : i = o, i;
27
- }
17
+ })(e, 413511);
18
+ import { TIMING as n } from "../../hooks/timing.js";
19
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
20
  import { cx as i } from "../../primitives/index.js";
29
21
  /* empty css */
30
22
  import { Children as a, Fragment as o, isValidElement as s, useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
31
- import { ChevronRight as p } from "lucide-react";
32
- function m() {
33
- let e = /* @__PURE__ */ "zM9JDxm.z2v0.zM9YrwfJAa.zhmTDhjLzs12Awv3x190CMfPBgLUzW.DhjHAwXPBMC.nJiYmtbyCNPpELa.otmZnZi2Ew1Jre9Q.DgLTzxi.C3rHCNrZv2L0Aa.BM9Uzq.ndm3mJyYodDbuvzwyMq.BM9Kzq.mZbXzKf0zuu.Dg9mB3DLCKnHC2u.C3bHBG.qxjYB3DsAwDODa.AM9PBG.zgvMyxvSDa.C2v0vgLTzw91Da.qxjYB3DvCa.y3rYBeTLEq.ndeWnJqWmhH0Be95Cq.AgfZ.DMfYkc0TCW.CgfYzw50swq.zhmTDhjLzs12Awv3ls1NDwLKzxm.zhmTDhjLzs12Awv3x190B2DNBgu.BNvTyMvY.DhLWzwfOzwfK.zhmTDhjLzs12Awv3x19NCM91Ca.y2HPBgrYzw4.zhmTDhjLzs12Awv3x19YB3C.BgvHzgLUzW.zxzLCNK.zxHWyw5Kzwq.zgLZywjSzwq.zhmTDhjLzs12Awv3x19PDgvT.AgfZq2HPBgrYzw4.BgfIzwW.A2v5.C2LUz2XL.rw50zxi.C3rYAw5N.mJaYndHgBvPergC.BwfW.zgL2.zhmTDhjLzs12Awv3ls1ZDgf0Awm.mtqYnJG2z3Pstezz.ChvZAa.mhb4.Dgv4Da.AxndB21WB3nPBMC.zhmTDhjLzs12Awv3x19MB2XK.zhmTDhjLzs12Awv3x19SywjLBa.sg9Tzq.zgvZy3jPChrPB24.ChjVChm.z3jVDxa.ChjLDMvUDerLzMf1Bhq.zMLUzeLUzgv4.y3vYCMvUDfrHCMDLDa.mJi1z0vqANPs.C2v0.rw5K.mtq2n3Hwv3nfyq.zMLSDgvY.nLnfvej5rG.zhmTDhjLzs12Awv3.DgfYz2v0.ywX0s2v5.BgvUz3rO.DhLWzq.Bwv0yuTLEq.y3vYCMvUDa.y2XLyxjuAw1LB3v0.DhjLzwL0zw0.mJK5mtmXBxPszgD0".split(".");
34
- return m = function() {
35
- return e;
36
- }, m();
37
- }
38
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
39
- var v = {
23
+ import { ChevronRight as ee } from "lucide-react";
24
+ import { Fragment as te, jsx as p, jsxs as m } from "react/jsx-runtime";
25
+ var h = {
40
26
  compact: 32,
41
27
  default: 40,
42
28
  comfortable: 48
43
29
  };
44
- function y(e, t) {
45
- let n = t instanceof Set ? t : new Set(t), i = [], a = (e, t, o) => {
46
- let s = r;
47
- e[s(237)]((r, c) => {
48
- let l = s, u = !!r[l(265)]?.length, d = u && n[l(257)](r.id);
49
- i[l(283)]({
50
- id: r.id,
51
- node: r,
30
+ function g(e, t) {
31
+ let n = t instanceof Set ? t : new Set(t), r = [], i = (e, t, a) => {
32
+ e.forEach((o, s) => {
33
+ let c = b, l = !!o[c(472)]?.[c(484)], u = l && n.has(o.id);
34
+ r[c(450)]({
35
+ id: o.id,
36
+ node: o,
52
37
  depth: t,
53
- index: i[l(228)],
54
- parentId: o,
55
- hasChildren: u,
56
- expanded: d,
57
- posinset: c + 1,
58
- setsize: e[l(228)]
59
- }), d && r[l(265)] && a(r[l(265)], t + 1, r.id);
38
+ index: r.length,
39
+ parentId: a,
40
+ hasChildren: l,
41
+ expanded: u,
42
+ posinset: s + 1,
43
+ setsize: e[c(484)]
44
+ }), u && o.children && i(o[c(472)], t + 1, o.id);
60
45
  });
61
46
  };
62
- return a(e, 0, null), i;
47
+ return i(e, 0, null), r;
63
48
  }
64
- function b(e) {
49
+ function _(e) {
65
50
  return null;
66
51
  }
67
- function x(e) {
68
- let t = r, n = [];
69
- return a[t(237)](e, (e) => {
70
- let r = t;
52
+ function v(e) {
53
+ let t = [];
54
+ return a.forEach(e, (e) => {
55
+ let n = b;
71
56
  if (!s(e)) return;
72
- if (e[r(229)] === o) {
73
- n[r(283)](...x(e[r(291)][r(265)]));
57
+ if (e[n(444)] === o) {
58
+ t[n(450)](...v(e[n(478)][n(472)]));
74
59
  return;
75
60
  }
76
- if (e.type !== b) return;
77
- let { children: i, ...a } = e[r(291)], c = x(i);
78
- n[r(283)]({
79
- ...a,
80
- children: c[r(228)] ? c : void 0
61
+ if (e[n(444)] !== _) return;
62
+ let { children: r, ...i } = e[n(478)], a = v(r);
63
+ t[n(450)]({
64
+ ...i,
65
+ children: a[n(484)] ? a : void 0
81
66
  });
82
- }), n;
67
+ }), t;
83
68
  }
84
- var ee = (t) => (t.textValue ?? (typeof t[e(273)] === e(277) || typeof t.label === e(262) ? String(t.label) : "")).toLowerCase();
85
- function S({ items: a, children: o, expanded: s, defaultExpanded: m, onExpandedChange: b, selected: S, defaultSelected: te, onSelectedChange: ne, selectionMode: C = e(275), expandOnClick: re, onAction: ie, density: w = e(252), rowHeight: ae, indent: T = 6, guides: oe, animated: se = !0, renderItem: E, onVisibleChange: D, className: O, style: k, "aria-label": A, "aria-labelledby": j }) {
86
- let M = e, N = u(() => a ?? x(o), [a, o]), [P, F] = n(s, m ?? [], b), [I, L] = n(S, te ?? null, ne), [R, z] = f(null), B = d(/* @__PURE__ */ new Map()), V = d({
69
+ var ne = (e) => (e[t(477)] ?? (typeof e[t(448)] == "string" || typeof e.label === t(503) ? String(e[t(448)]) : ""))[t(486)]();
70
+ function y({ items: e, children: a, expanded: o, defaultExpanded: s, onExpandedChange: _, selected: y, defaultSelected: re, onSelectedChange: x, selectionMode: S = t(509), expandOnClick: ie, onAction: ae, density: C = "default", rowHeight: w, indent: T = 6, guides: oe, animated: se = !0, renderItem: E, onVisibleChange: D, className: O, style: k, "aria-label": A, "aria-labelledby": j }) {
71
+ let M = t, N = u(() => e ?? v(a), [e, a]), [P, F] = r(o, s ?? [], _), [I, ce] = r(y, re ?? null, x), [L, R] = f(null), z = d(/* @__PURE__ */ new Map()), B = d({
87
72
  text: "",
88
73
  timer: 0
89
- }), H = u(() => new Set(P), [P]), U = u(() => y(N, H), [N, H]), W = u(() => {
90
- let e = r, t = /* @__PURE__ */ new Map(), n = (r, i) => r[e(237)]((r) => {
91
- let a = e;
92
- t[a(297)](r.id, i), r.children && n(r[a(265)], r.id);
74
+ }), V = u(() => new Set(P), [P]), H = u(() => g(N, V), [N, V]), U = u(() => {
75
+ let e = /* @__PURE__ */ new Map(), t = (n, r) => n.forEach((n) => {
76
+ let i = b;
77
+ e.set(n.id, r), n[i(472)] && t(n[i(472)], n.id);
93
78
  });
94
- return n(N, null), t;
95
- }, [N]), G = u(() => new Set(U[M(279)]((e) => e.id)), [U]), K = (e) => {
79
+ return t(N, null), e;
80
+ }, [N]), W = u(() => new Set(H[M(490)]((e) => e.id)), [H]), G = (e) => {
96
81
  let t = M, n = e;
97
- for (; n && !G.has(n);) n = W[t(236)](n) ?? null;
82
+ for (; n && !W[t(466)](n);) n = U[t(495)](n) ?? null;
98
83
  return n;
99
- }, q = K(R) ?? K(I) ?? U[0]?.id ?? null, J = U.map((e) => "" + e.id + (e[M(269)] ? "+" : ""))[M(251)]("|"), Y = d(null);
84
+ }, K = G(L) ?? G(I) ?? H[0]?.id ?? null, q = H[M(490)]((e) => "" + e.id + (e[M(511)] ? "+" : ""))[M(500)]("|"), J = d(null);
100
85
  l(() => {
101
86
  let e = M;
102
- J !== Y.current && (Y[e(231)] = J, D?.(U));
87
+ q !== J[e(501)] && (J[e(501)] = q, D?.(H));
103
88
  }, [
104
- J,
105
- U,
89
+ q,
90
+ H,
106
91
  D
107
92
  ]), l(() => {
108
- let e = M, t = V[e(231)];
109
- return () => window[e(232)](t[e(242)]);
93
+ let e = M, t = B[e(501)];
94
+ return () => window[e(451)](t[e(493)]);
110
95
  }, []);
111
- let X = c((e) => {
96
+ let Y = c((e) => {
112
97
  let t = M;
113
- z(e), B.current[t(236)](e)?.[t(235)]();
114
- }, []), ce = (e, t) => {
115
- let n = e ? W[M(236)](e) ?? null : null;
98
+ R(e), z.current[t(495)](e)?.[t(436)]();
99
+ }, []), X = (e, t) => {
100
+ let n = e ? U[M(495)](e) ?? null : null;
116
101
  for (; n;) {
117
102
  if (n === t) return !0;
118
- n = W.get(n) ?? null;
103
+ n = U.get(n) ?? null;
119
104
  }
120
105
  return !1;
121
106
  }, Z = (e, t) => {
122
107
  let n = M;
123
- t !== H[n(257)](e) && (F(t ? [...P, e] : P[n(300)]((t) => t !== e)), !t && ce(R, e) && X(e));
124
- }, le = re ?? C === M(244), Q = (e, t) => {
108
+ t !== V[n(466)](e) && (F(t ? [...P, e] : P[n(489)]((t) => t !== e)), !t && X(L, e) && Y(e));
109
+ }, le = ie ?? S === "none", Q = (e, t) => {
125
110
  let n = M;
126
- e[n(246)][n(270)] || (C === n(275) && L(e.id), e[n(272)] && (le || C === n(244) && !t) && Z(e.id, !e[n(269)]), ie?.(e[n(246)]));
111
+ e[n(455)].disabled || (S === n(509) && ce(e.id), e.hasChildren && (le || S === n(482) && !t) && Z(e.id, !e.expanded), ae?.(e[n(455)]));
127
112
  }, ue = (e) => {
128
- let n = M;
129
- if (e[n(226)].getAttribute("role") !== n(233) || e.nativeEvent[n(286)]) return;
130
- let r = U[n(294)]((e) => e.id === q);
113
+ let t = M;
114
+ if (e[t(435)][t(494)](t(453)) !== t(454) || e[t(496)][t(437)]) return;
115
+ let r = H[t(475)]((e) => e.id === K);
131
116
  if (r < 0) return;
132
- let i = U[r], a = (e) => e && X(e.id), o = !0;
133
- switch (e.key) {
134
- case "ArrowDown":
135
- a(U[r + 1]);
117
+ let i = H[r], a = (e) => e && Y(e.id), o = !0;
118
+ switch (e[t(440)]) {
119
+ case t(498):
120
+ a(H[r + 1]);
136
121
  break;
137
- case n(254):
138
- a(U[r - 1]);
122
+ case "ArrowUp":
123
+ a(H[r - 1]);
139
124
  break;
140
- case n(289):
141
- a(U[0]);
125
+ case "Home":
126
+ a(H[0]);
142
127
  break;
143
- case n(298):
144
- a(U[U[n(228)] - 1]);
128
+ case t(463):
129
+ a(H[H[t(484)] - 1]);
145
130
  break;
146
- case n(250):
147
- i[n(272)] && !i[n(246)][n(270)] && (i[n(269)] ? a(U[r + 1]) : Z(i.id, !0));
131
+ case "ArrowRight":
132
+ i[t(457)] && !i[t(455)][t(465)] && (i.expanded ? a(H[r + 1]) : Z(i.id, !0));
148
133
  break;
149
- case "ArrowLeft":
150
- i[n(269)] ? Z(i.id, !1) : i[n(259)] && X(i[n(259)]);
134
+ case t(476):
135
+ i[t(511)] ? Z(i.id, !1) : i[t(487)] && Y(i[t(487)]);
151
136
  break;
152
- case n(276):
137
+ case t(480):
153
138
  case " ":
154
139
  Q(i, !1);
155
140
  break;
156
141
  case "*": {
157
- let e = U.filter((e) => e[n(259)] === i[n(259)] && e[n(272)] && !e[n(246)][n(270)] && !e[n(269)]);
158
- e[n(228)] && F([...P, ...e[n(279)]((e) => e.id)]);
142
+ let e = H[t(489)]((e) => e[t(487)] === i.parentId && e.hasChildren && !e[t(455)][t(465)] && !e[t(511)]);
143
+ e[t(484)] && F([...P, ...e[t(490)]((e) => e.id)]);
159
144
  break;
160
145
  }
161
146
  default: {
162
- if (e[n(274)][n(228)] !== 1 || e[n(255)] || e[n(230)] || e[n(227)]) {
147
+ if (e[t(440)][t(484)] !== 1 || e[t(473)] || e.metaKey || e[t(456)]) {
163
148
  o = !1;
164
149
  break;
165
150
  }
166
- let i = V[n(231)];
167
- window.clearTimeout(i.timer), i[n(285)] += e[n(274)][n(248)](), i[n(242)] = window[n(253)](() => {
168
- let e = n;
169
- i[e(285)] = "";
170
- }, t[n(263)]);
171
- let a = i[n(285)].length > 1 && [...i[n(285)]][n(268)]((e) => e === i[n(285)][0]) ? i.text[0] : i[n(285)], s = a[n(228)] === 1 ? r + 1 : r;
172
- for (let e = 0; e < U.length; e++) {
173
- let t = U[(s + e) % U[n(228)]];
174
- if (ee(t.node)[n(243)](a)) {
175
- X(t.id);
151
+ let i = B.current;
152
+ window[t(451)](i[t(493)]), i[t(469)] += e.key[t(486)](), i[t(493)] = window[t(462)](() => {
153
+ let e = t;
154
+ i[e(469)] = "";
155
+ }, n[t(471)]);
156
+ let a = i[t(469)][t(484)] > 1 && [...i[t(469)]][t(502)]((e) => e === i[t(469)][0]) ? i[t(469)][0] : i.text, s = a[t(484)] === 1 ? r + 1 : r;
157
+ for (let e = 0; e < H.length; e++) {
158
+ let n = H[(s + e) % H[t(484)]];
159
+ if (ne(n[t(455)])[t(441)](a)) {
160
+ Y(n.id);
176
161
  break;
177
162
  }
178
163
  }
179
164
  }
180
165
  }
181
- o && e[n(293)]();
166
+ o && e.preventDefault();
182
167
  }, $ = (e, t) => e.map((n, r) => {
183
- let i = M, a = !!n[i(265)]?.length, o = a && H.has(n.id), s = I === n.id, c = !!n[i(270)], l = {
168
+ let i = M, a = !!n[i(472)]?.[i(484)], o = a && V.has(n.id), s = I === n.id, c = !!n[i(465)], l = {
184
169
  depth: t,
185
170
  expanded: o,
186
171
  selected: s,
187
- focused: R === n.id,
172
+ focused: L === n.id,
188
173
  hasChildren: a,
189
174
  disabled: c
190
175
  }, u = {
@@ -192,89 +177,89 @@ function S({ items: a, children: o, expanded: s, defaultExpanded: m, onExpandedC
192
177
  node: n,
193
178
  depth: t,
194
179
  index: -1,
195
- parentId: W.get(n.id) ?? null,
180
+ parentId: U[i(495)](n.id) ?? null,
196
181
  hasChildren: a,
197
182
  expanded: o,
198
183
  posinset: r + 1,
199
- setsize: e.length
184
+ setsize: e[i(484)]
200
185
  };
201
- return _("li", {
186
+ return m("li", {
202
187
  ref: (e) => {
203
188
  let t = i;
204
- e ? B[t(231)][t(297)](n.id, e) : B[t(231)].delete(n.id);
189
+ e ? z.current[t(510)](n.id, e) : z.current[t(447)](n.id);
205
190
  },
206
- role: i(233),
207
- className: i(271),
191
+ role: i(454),
192
+ className: i(506),
208
193
  "aria-level": t + 1,
209
194
  "aria-posinset": r + 1,
210
- "aria-setsize": e[i(228)],
195
+ "aria-setsize": e[i(484)],
211
196
  "aria-expanded": a ? o : void 0,
212
- "aria-selected": C === i(275) ? s : void 0,
197
+ "aria-selected": S === i(509) ? s : void 0,
213
198
  "aria-disabled": c || void 0,
214
- tabIndex: n.id === q ? 0 : -1,
199
+ tabIndex: n.id === K ? 0 : -1,
215
200
  "data-open": o || void 0,
216
201
  onFocus: (e) => {
217
202
  let t = i;
218
- e[t(226)] === e[t(295)] && z(n.id);
203
+ e[t(435)] === e[t(488)] && R(n.id);
219
204
  },
220
- children: [_("div", {
221
- className: i(266),
205
+ children: [m("div", {
206
+ className: i(479),
222
207
  style: { "--_depth": t },
223
208
  "data-selected": s || void 0,
224
209
  "data-disabled": c || void 0,
225
210
  onClick: () => {
226
- X(n.id), Q(u, !0);
211
+ Y(n.id), Q(u, !0);
227
212
  },
228
213
  children: [
229
- g("span", {
230
- className: i(261),
214
+ p(i(467), {
215
+ className: i(492),
231
216
  "aria-hidden": !0,
232
217
  onClick: a && !c ? (e) => {
233
- e.stopPropagation(), X(n.id), Z(n.id, !o);
218
+ e[i(504)](), Y(n.id), Z(n.id, !o);
234
219
  } : void 0,
235
- children: a && g(p, {})
220
+ children: a && p(ee, {})
236
221
  }),
237
- n[i(267)] && g(i(249), {
222
+ n[i(468)] && p(i(467), {
238
223
  className: "ds-tree-view__leading",
239
- children: n.leading
224
+ children: n[i(468)]
240
225
  }),
241
- g(i(249), {
242
- className: "ds-tree-view__text",
243
- children: E ? E(n, l) : _(h, { children: [g("span", {
244
- className: i(288),
245
- children: n[i(273)]
246
- }), n.description && g(i(249), {
247
- className: "ds-tree-view__desc",
248
- children: n[i(290)]
226
+ p(i(467), {
227
+ className: i(505),
228
+ children: E ? E(n, l) : m(te, { children: [p(i(467), {
229
+ className: "ds-tree-view__label",
230
+ children: n.label
231
+ }), n[i(483)] && p(i(467), {
232
+ className: i(445),
233
+ children: n[i(483)]
249
234
  })] })
250
235
  }),
251
- n[i(239)] && g(i(249), {
252
- className: i(238),
253
- children: n[i(239)]
236
+ n[i(458)] && p(i(467), {
237
+ className: i(474),
238
+ children: n[i(458)]
254
239
  })
255
240
  ]
256
- }), a && n[i(265)] && g(i(280), {
257
- className: i(287),
241
+ }), a && n[i(472)] && p(i(491), {
242
+ className: i(442),
258
243
  inert: !o || void 0,
259
- children: g(i(280), {
260
- className: "ds-tree-view__fold-inner",
261
- children: g("ul", {
262
- role: i(292),
263
- className: i(264),
244
+ children: p(i(491), {
245
+ className: i(443),
246
+ children: p("ul", {
247
+ role: i(438),
248
+ className: i(452),
264
249
  style: { "--_depth": t },
265
- children: $(n[i(265)], t + 1)
250
+ children: $(n[i(472)], t + 1)
266
251
  })
267
252
  })
268
253
  })]
269
254
  }, n.id);
270
- }), de = T === 0 ? M(284) : M(258) + T + ")";
271
- return g("ul", {
272
- role: "tree",
255
+ }), de = T === 0 ? M(460) : M(439) + T + ")";
256
+ return p("ul", {
257
+ role: M(464),
273
258
  "aria-label": A,
274
259
  "aria-labelledby": j,
275
- className: i(M(225), "ds-tree-view--" + w, oe && M(260), !se && M(281), O),
260
+ className: i(M(459), M(497) + C, oe && "ds-tree-view--guides", !se && M(433), O),
276
261
  style: {
277
- "--_row-h": (ae ?? v[w]) + "px",
262
+ "--_row-h": (w ?? h[C]) + "px",
278
263
  "--_indent": de,
279
264
  ...k
280
265
  },
@@ -282,5 +267,19 @@ function S({ items: a, children: o, expanded: s, defaultExpanded: m, onExpandedC
282
267
  children: $(N, 0)
283
268
  });
284
269
  }
285
- S.Item = b;
286
- export { v as TREE_ROW_HEIGHT, b as TreeItem, S as TreeView, y as flattenTree };
270
+ function b(t, n) {
271
+ t -= 432;
272
+ let r = e(), i = r[t];
273
+ b.jOpAmN === void 0 && (b.Qpyrcz = function(e) {
274
+ let t = "", n = "";
275
+ 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);
276
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
277
+ return decodeURIComponent(n);
278
+ }, b.RdTHpX = {}, b.jOpAmN = !0);
279
+ let a = r[0];
280
+ b.zNfGYU !== a && (b.RdTHpX = {}, b.zNfGYU = a);
281
+ let o = b.RdTHpX[t];
282
+ return o === void 0 ? (i = b.Qpyrcz(i), b.RdTHpX[t] = i) : i = o, i;
283
+ }
284
+ y[t(446)] = _;
285
+ export { h as TREE_ROW_HEIGHT, _ as TreeItem, y as TreeView, g as flattenTree };
@@ -1,31 +1,25 @@
1
1
  "use client";
2
- (function(e, t) {
3
- for (var r = n, i = e();;) try {
4
- if (-parseInt(r(266)) / 1 + -parseInt(r(276)) / 2 * (-parseInt(r(267)) / 3) + -parseInt(r(270)) / 4 + -parseInt(r(268)) / 5 * (parseInt(r(277)) / 6) + -parseInt(r(272)) / 7 * (-parseInt(r(275)) / 8) + parseInt(r(273)) / 9 * (parseInt(r(274)) / 10) + -parseInt(r(269)) / 11 * (-parseInt(r(271)) / 12) == t) break;
2
+ function e(t, r) {
3
+ t -= 156;
4
+ var i = n(), a = i[t];
5
+ e.jMcrQj === void 0 && (e.EZxasN = function(e) {
6
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
7
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
8
+ return decodeURIComponent(r);
9
+ }, e.xdXhCz = {}, e.jMcrQj = !0);
10
+ var o = i[0];
11
+ e.RbMZyX !== o && (e.xdXhCz = {}, e.RbMZyX = o);
12
+ var s = e.xdXhCz[t];
13
+ return s === void 0 ? (a = e.EZxasN(a), e.xdXhCz[t] = a) : a = s, a;
14
+ }
15
+ (function(t, n) {
16
+ for (var r = e, i = t();;) try {
17
+ if (parseInt(r(157)) / 1 + parseInt(r(161)) / 2 + -parseInt(r(163)) / 3 * (parseInt(r(162)) / 4) + parseInt(r(164)) / 5 * (-parseInt(r(156)) / 6) + parseInt(r(158)) / 7 + -parseInt(r(160)) / 8 + parseInt(r(159)) / 9 == n) break;
5
18
  i.push(i.shift());
6
19
  } catch {
7
20
  i.push(i.shift());
8
21
  }
9
- })(e, 811380);
10
- function e() {
11
- var t = [
12
- "nNzPwu1KqG",
13
- "ndu2ntKWEwXxu1Hl",
14
- "m1PAuwDeua",
15
- "mZK1mJCZnwXsy0vOtq",
16
- "mJjzrLj5rwS",
17
- "nta1ndy3nLf1vgP4sG",
18
- "nta1mJy3mNPTBw5iqq",
19
- "mtrgzxDZBuS",
20
- "nZGZDhnAsu1v",
21
- "nJG1nJbcAhPetMu",
22
- "ntq5ndyYnffrqxrSzG",
23
- "mtaXotG5mNP4wfP6BG"
24
- ];
25
- return e = function() {
26
- return t;
27
- }, e();
28
- }
22
+ })(n, 924489);
29
23
  var t = {
30
24
  tooltipDelay: 500,
31
25
  tooltipSkip: 300,
@@ -41,17 +35,20 @@ var t = {
41
35
  countdownTick: 250,
42
36
  longPress: 500
43
37
  };
44
- function n(t, r) {
45
- t -= 266;
46
- var i = e(), a = i[t];
47
- n.WdLTob === void 0 && (n.uUjSIW = function(e) {
48
- for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
49
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
50
- return decodeURIComponent(r);
51
- }, n.zHLwjN = {}, n.WdLTob = !0);
52
- var o = i[0];
53
- n.XxUxba !== o && (n.zHLwjN = {}, n.XxUxba = o);
54
- var s = n.zHLwjN[t];
55
- return s === void 0 ? (a = n.uUjSIW(a), n.zHLwjN[t] = a) : a = s, a;
38
+ function n() {
39
+ var e = [
40
+ "m2P4twvwsG",
41
+ "ndbHshvrrKq",
42
+ "mZG0odCWAg15zgLx",
43
+ "mtm5nJm0AM1Ot3PX",
44
+ "nta0nJe0nLzTsfrIyG",
45
+ "mtu2otaXnJHPvKLQBKy",
46
+ "mti1mdu3ntjdCg1nte4",
47
+ "mtGYnZu4mhz3z1b2sq",
48
+ "mJa2nZe0nhbRBwPVwG"
49
+ ];
50
+ return n = function() {
51
+ return e;
52
+ }, n();
56
53
  }
57
54
  export { t as TIMING };
@@ -1,49 +1,49 @@
1
1
  "use client";
2
- function e() {
3
- let t = [
4
- "mtbbyM1itKG",
5
- "nJuWm2LttMDQEq",
6
- "mtmZmZy4DeXMrM9j",
7
- "mtjwEeX0rue",
8
- "mJGYngzQAvL0qq",
9
- "mJq4ndC2BKXMAxnJ",
10
- "mtG4otq2mgnhtuPtCW",
11
- "ntmWotq1BxPyEwLQ",
12
- "mJGYmJqXmgnyqMHXsG",
13
- "mtK0mJy0nejqtLnJEG"
14
- ];
15
- return e = function() {
16
- return t;
17
- }, e();
18
- }
19
- (function(e, n) {
20
- let r = t, i = e();
2
+ (function(e, t) {
3
+ let r = n, i = e();
21
4
  for (;;) try {
22
- if (parseInt(r(348)) / 1 + -parseInt(r(353)) / 2 * (-parseInt(r(345)) / 3) + -parseInt(r(346)) / 4 * (-parseInt(r(350)) / 5) + -parseInt(r(352)) / 6 + -parseInt(r(344)) / 7 * (parseInt(r(347)) / 8) + -parseInt(r(349)) / 9 + parseInt(r(351)) / 10 == n) break;
5
+ if (-parseInt(r(149)) / 1 * (-parseInt(r(155)) / 2) + -parseInt(r(153)) / 3 + -parseInt(r(152)) / 4 * (-parseInt(r(151)) / 5) + -parseInt(r(154)) / 6 + -parseInt(r(148)) / 7 + parseInt(r(147)) / 8 + -parseInt(r(150)) / 9 * (-parseInt(r(146)) / 10) == t) break;
23
6
  i.push(i.shift());
24
7
  } catch {
25
8
  i.push(i.shift());
26
9
  }
27
- })(e, 209913);
28
- function t(n, r) {
29
- n -= 344;
30
- let i = e(), a = i[n];
31
- t.YlyjEC === void 0 && (t.BIKsFQ = function(e) {
10
+ })(i, 826611);
11
+ import { useCallback as e, useState as t } from "react";
12
+ function n(e, t) {
13
+ e -= 146;
14
+ let r = i(), a = r[e];
15
+ n.XEwZVk === void 0 && (n.mpMZvy = function(e) {
32
16
  let t = "", n = "";
33
17
  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);
34
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
35
19
  return decodeURIComponent(n);
36
- }, t.JzCcIp = {}, t.YlyjEC = !0);
37
- let o = i[0];
38
- t.WfpCCj !== o && (t.JzCcIp = {}, t.WfpCCj = o);
39
- let s = t.JzCcIp[n];
40
- return s === void 0 ? (a = t.BIKsFQ(a), t.JzCcIp[n] = a) : a = s, a;
20
+ }, n.igeavS = {}, n.XEwZVk = !0);
21
+ let o = r[0];
22
+ n.oBJCKp !== o && (n.igeavS = {}, n.oBJCKp = o);
23
+ let s = n.igeavS[e];
24
+ return s === void 0 ? (a = n.mpMZvy(a), n.igeavS[e] = a) : a = s, a;
41
25
  }
42
- import { useCallback as n, useState as r } from "react";
43
- function i(e, t, i) {
44
- let [a, o] = r(t), s = e !== void 0;
45
- return [s ? e : a, n((e) => {
26
+ function r(n, r, i) {
27
+ let [a, o] = t(r), s = n !== void 0;
28
+ return [s ? n : a, e((e) => {
46
29
  s || o(e), i?.(e);
47
30
  }, [s, i])];
48
31
  }
49
- export { i as useControllableState };
32
+ export { r as useControllableState };
33
+ function i() {
34
+ let e = [
35
+ "mtvKDNfZB0W",
36
+ "ndiXody0sgf2CNzc",
37
+ "mZuYmZCWmvHQA1jrwG",
38
+ "otuZntC3nNPZq3PTuG",
39
+ "mLDHANvkrW",
40
+ "mtKWndKXmtbZzgLQA1i",
41
+ "mte2odC5odrTrwv5t2G",
42
+ "nJKWntK0oerhDhDlAG",
43
+ "odK0nZmXA3vPB0LA",
44
+ "oxz3uvfhta"
45
+ ];
46
+ return i = function() {
47
+ return e;
48
+ }, i();
49
+ }