@iamfiro/design 0.3.2 → 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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,176 +1,163 @@
1
1
  "use client";
2
- const e = a;
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 = a, r = e();
10
+ let n = b, r = e();
5
11
  for (;;) try {
6
- if (parseInt(n(373)) / 1 * (parseInt(n(408)) / 2) + parseInt(n(365)) / 3 * (parseInt(n(417)) / 4) + parseInt(n(377)) / 5 + -parseInt(n(380)) / 6 + parseInt(n(366)) / 7 * (-parseInt(n(357)) / 8) + parseInt(n(405)) / 9 + -parseInt(n(410)) / 10 * (parseInt(n(386)) / 11) == t) break;
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;
7
13
  r.push(r.shift());
8
14
  } catch {
9
15
  r.push(r.shift());
10
16
  }
11
- })(n, 644576);
12
- import { TIMING as t } from "../../hooks/timing.js";
13
- function n() {
14
- let e = /* @__PURE__ */ "BM9Uzq.CM9Szq.zhmTDhjLzs12Awv3x19PDgvT.zxzLCNK.BgvHzgLUzW.z3jVDxa.rw50zxi.C2LUz2XL.CgfYzw50swq.Bwv0yuTLEq.mJiZmtaXowzYww5iqq.AgfZ.DhjHAwXPBMC.nJuXnZjqtwvqEMO.DhjLzwL0zw0.mZK4nZy0mgHuDNjJBa.zM9YrwfJAa.zhmTDhjLzs12Awv3x19YB3C.BgfIzwW.AgfZq2HPBgrYzw4.Dg9mB3DLCKnHC2u.z2v0.mtiZmJy1nK5TuMXZwG.BwfW.zhmTDhjLzs12Awv3ls1NDwLKzxm.zhmTDhjLzs12Awv3x19SzwfKAw5N.zhmTDhjLzs12Awv3x19MB2XKlwLUBMvY.BMf0AxzLrxzLBNq.y3rYBeTLEq.qxjYB3DsAwDODa.y2XLyxjuAw1LB3v0.ChvZAa.AxndB21WB3nPBMC.Dgv4DfzHBhvL.C3bHBG.DgfYz2v0.DgLTzxi.y3vYCMvUDa.zM9JDxm.nZC1mtjmzvvQu2K.zhmTDhjLzs12Awv3x190B2DNBgu.C2v0.BM9Kzq.zgvSzxrL.Dgv4Da.DhLWzq.zhmTDhjLzs12Awv3x19SywjLBa.nKv1uLvbuq.mZe1ywXbDLz5.zgLZywjSzwq.DMfYkc0TCW.DhjLzq.ChjVChm.zMLUzeLUzgv4.qxjYB3DvCa.mJn2yxvKD3i.BgvUz3rO.qxjYB3Dmzwz0.zxHWyw5Kzwq.nde1mdm5mgTjEMjIBa.sxrLBq.zhmTDhjLzs12Awv3ls1ZDgf0Awm.ntC4nJu4mfn3y0XdCa.y2HPBgrYzw4.mhb4.C3rYAw5N.y3vYCMvUDfrHCMDLDa.C3rVCfbYB3bHz2f0Aw9U.mtf2vKLhwvm.ywX0s2v5.zgL2.zhmTDhjLzs12Awv3.rw5K.zMLSDgvY.A2v5.zgvZy3jPChrPB24.zhmTDhjLzs12Awv3x190zxH0".split(".");
15
- return n = function() {
16
- return e;
17
- }, n();
18
- }
17
+ })(e, 413511);
18
+ import { TIMING as n } from "../../hooks/timing.js";
19
19
  import { useControllableState as r } from "../../hooks/useControllableState.js";
20
20
  import { cx as i } from "../../primitives/index.js";
21
- function a(e, t) {
22
- e -= 346;
23
- let r = n(), i = r[e];
24
- a.GaRUQn === void 0 && (a.KvUGqW = function(e) {
25
- let t = "", n = "";
26
- 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);
27
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
- return decodeURIComponent(n);
29
- }, a.edMiRu = {}, a.GaRUQn = !0);
30
- let o = r[0];
31
- a.eselhn !== o && (a.edMiRu = {}, a.eselhn = o);
32
- let s = a.edMiRu[e];
33
- return s === void 0 ? (i = a.KvUGqW(i), a.edMiRu[e] = i) : i = s, i;
34
- }
35
21
  /* empty css */
36
- import { Children as o, Fragment as s, isValidElement as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
37
- import { ChevronRight as m } from "lucide-react";
38
- import { Fragment as ee, jsx as h, jsxs as g } from "react/jsx-runtime";
39
- var _ = {
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";
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 v(e, t) {
45
- let n = t instanceof Set ? t : new Set(t), r = [], i = (e, t, o) => {
46
- e.forEach((s, c) => {
47
- let l = a, u = !!s[l(381)]?.[l(374)], d = u && n.has(s.id);
48
- r[l(349)]({
49
- id: s.id,
50
- node: s,
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,
51
37
  depth: t,
52
- index: r[l(374)],
53
- parentId: o,
54
- hasChildren: u,
55
- expanded: d,
56
- posinset: c + 1,
57
- setsize: e[l(374)]
58
- }), d && s[l(381)] && i(s[l(381)], t + 1, s.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);
59
45
  });
60
46
  };
61
47
  return i(e, 0, null), r;
62
48
  }
63
- function y(e) {
49
+ function _(e) {
64
50
  return null;
65
51
  }
66
- function b(e) {
67
- let t = a, n = [];
68
- return o[t(411)](e, (e) => {
69
- let r = t;
70
- if (!c(e)) return;
71
- if (e[r(363)] === s) {
72
- n.push(...b(e[r(370)][r(381)]));
52
+ function v(e) {
53
+ let t = [];
54
+ return a.forEach(e, (e) => {
55
+ let n = b;
56
+ if (!s(e)) return;
57
+ if (e[n(444)] === o) {
58
+ t[n(450)](...v(e[n(478)][n(472)]));
73
59
  return;
74
60
  }
75
- if (e[r(363)] !== y) return;
76
- let { children: i, ...a } = e[r(370)], o = b(i);
77
- n[r(349)]({
78
- ...a,
79
- children: o[r(374)] ? o : 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
80
66
  });
81
- }), n;
67
+ }), t;
82
68
  }
83
- var te = (t) => (t[e(351)] ?? (typeof t.label === e(383) || typeof t[e(413)] == "number" ? String(t[e(413)]) : ""))[e(415)]();
84
- function x({ items: n, children: o, expanded: s, defaultExpanded: c, onExpandedChange: y, selected: x, defaultSelected: ne, onSelectedChange: S, selectionMode: C = e(402), expandOnClick: re, onAction: ie, density: w = "default", rowHeight: ae, indent: T = 6, guides: oe, animated: se = !0, renderItem: E, onVisibleChange: D, className: O, style: k, "aria-label": A, "aria-labelledby": j }) {
85
- let M = e, N = d(() => n ?? b(o), [n, o]), [P, F] = r(s, c ?? [], y), [I, ce] = r(x, ne ?? null, S), [L, R] = p(null), z = f(/* @__PURE__ */ new Map()), B = f({
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({
86
72
  text: "",
87
73
  timer: 0
88
- }), V = d(() => new Set(P), [P]), H = d(() => v(N, V), [N, V]), U = d(() => {
74
+ }), V = u(() => new Set(P), [P]), H = u(() => g(N, V), [N, V]), U = u(() => {
89
75
  let e = /* @__PURE__ */ new Map(), t = (n, r) => n.forEach((n) => {
90
- let i = a;
91
- e.set(n.id, r), n[i(381)] && t(n[i(381)], n.id);
76
+ let i = b;
77
+ e.set(n.id, r), n[i(472)] && t(n[i(472)], n.id);
92
78
  });
93
79
  return t(N, null), e;
94
- }, [N]), W = d(() => new Set(H[M(418)]((e) => e.id)), [H]), G = (e) => {
80
+ }, [N]), W = u(() => new Set(H[M(490)]((e) => e.id)), [H]), G = (e) => {
95
81
  let t = M, n = e;
96
- for (; n && !W.has(n);) n = U[t(416)](n) ?? null;
82
+ for (; n && !W[t(466)](n);) n = U[t(495)](n) ?? null;
97
83
  return n;
98
- }, K = G(L) ?? G(I) ?? H[0]?.id ?? null, q = H[M(418)]((e) => "" + e.id + (e[M(376)] ? "+" : "")).join("|"), J = f(null);
99
- u(() => {
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);
85
+ l(() => {
100
86
  let e = M;
101
- q !== J[e(355)] && (J[e(355)] = q, D?.(H));
87
+ q !== J[e(501)] && (J[e(501)] = q, D?.(H));
102
88
  }, [
103
89
  q,
104
90
  H,
105
91
  D
106
- ]), u(() => {
107
- let e = M, t = B.current;
108
- return () => window.clearTimeout(t[e(354)]);
92
+ ]), l(() => {
93
+ let e = M, t = B[e(501)];
94
+ return () => window[e(451)](t[e(493)]);
109
95
  }, []);
110
- let Y = l((e) => {
96
+ let Y = c((e) => {
111
97
  let t = M;
112
- R(e), z.current[t(416)](e)?.[t(356)]();
98
+ R(e), z.current[t(495)](e)?.[t(436)]();
113
99
  }, []), X = (e, t) => {
114
- let n = M, r = e ? U.get(e) ?? null : null;
115
- for (; r;) {
116
- if (r === t) return !0;
117
- r = U[n(416)](r) ?? null;
100
+ let n = e ? U[M(495)](e) ?? null : null;
101
+ for (; n;) {
102
+ if (n === t) return !0;
103
+ n = U.get(n) ?? null;
118
104
  }
119
105
  return !1;
120
106
  }, Z = (e, t) => {
121
- t !== V[M(406)](e) && (F(t ? [...P, e] : P.filter((t) => t !== e)), !t && X(L, e) && Y(e));
122
- }, le = re ?? C === M(395), Q = (e, t) => {
123
107
  let n = M;
124
- e[n(360)][n(367)] || (C === "single" && ce(e.id), e.hasChildren && (le || C === "none" && !t) && Z(e.id, !e[n(376)]), ie?.(e[n(360)]));
125
- }, ue = (e) => {
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) => {
126
110
  let n = M;
127
- if (e.target.getAttribute(n(396)) !== n(409) || e[n(422)][n(350)]) return;
128
- let r = H[n(371)]((e) => e.id === K);
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)]));
112
+ }, ue = (e) => {
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);
129
116
  if (r < 0) return;
130
117
  let i = H[r], a = (e) => e && Y(e.id), o = !0;
131
- switch (e[n(392)]) {
132
- case "ArrowDown":
118
+ switch (e[t(440)]) {
119
+ case t(498):
133
120
  a(H[r + 1]);
134
121
  break;
135
- case n(372):
122
+ case "ArrowUp":
136
123
  a(H[r - 1]);
137
124
  break;
138
125
  case "Home":
139
126
  a(H[0]);
140
127
  break;
141
- case n(390):
142
- a(H[H[n(374)] - 1]);
128
+ case t(463):
129
+ a(H[H[t(484)] - 1]);
143
130
  break;
144
- case n(347):
145
- i[n(414)] && !i[n(360)].disabled && (i[n(376)] ? a(H[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));
146
133
  break;
147
- case n(375):
148
- i[n(376)] ? Z(i.id, !1) : i[n(403)] && Y(i[n(403)]);
134
+ case t(476):
135
+ i[t(511)] ? Z(i.id, !1) : i[t(487)] && Y(i[t(487)]);
149
136
  break;
150
- case n(401):
137
+ case t(480):
151
138
  case " ":
152
139
  Q(i, !1);
153
140
  break;
154
141
  case "*": {
155
- let e = H[n(391)]((e) => e[n(403)] === i[n(403)] && e[n(414)] && !e[n(360)].disabled && !e[n(376)]);
156
- e.length && F([...P, ...e[n(418)]((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)]);
157
144
  break;
158
145
  }
159
146
  default: {
160
- if (e[n(392)].length !== 1 || e[n(346)] || e[n(404)] || e[n(387)]) {
147
+ if (e[t(440)][t(484)] !== 1 || e[t(473)] || e.metaKey || e[t(456)]) {
161
148
  o = !1;
162
149
  break;
163
150
  }
164
- let i = B[n(355)];
165
- window[n(348)](i[n(354)]), i[n(362)] += e[n(392)][n(415)](), i[n(354)] = window.setTimeout(() => {
166
- let e = n;
167
- i[e(362)] = "";
168
- }, t.typeahead);
169
- let a = i[n(362)][n(374)] > 1 && [...i[n(362)]][n(398)]((e) => e === i.text[0]) ? i.text[0] : i[n(362)], s = a[n(374)] === 1 ? r + 1 : r;
170
- for (let e = 0; e < H[n(374)]; e++) {
171
- let t = H[(s + e) % H.length];
172
- if (te(t[n(360)]).startsWith(a)) {
173
- Y(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);
174
161
  break;
175
162
  }
176
163
  }
@@ -178,7 +165,7 @@ function x({ items: n, children: o, expanded: s, defaultExpanded: c, onExpandedC
178
165
  }
179
166
  o && e.preventDefault();
180
167
  }, $ = (e, t) => e.map((n, r) => {
181
- let i = M, a = !!n[i(381)]?.length, o = a && V[i(406)](n.id), s = I === n.id, c = !!n[i(367)], 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 = {
182
169
  depth: t,
183
170
  expanded: o,
184
171
  selected: s,
@@ -190,33 +177,33 @@ function x({ items: n, children: o, expanded: s, defaultExpanded: c, onExpandedC
190
177
  node: n,
191
178
  depth: t,
192
179
  index: -1,
193
- parentId: U[i(416)](n.id) ?? null,
180
+ parentId: U[i(495)](n.id) ?? null,
194
181
  hasChildren: a,
195
182
  expanded: o,
196
183
  posinset: r + 1,
197
- setsize: e.length
184
+ setsize: e[i(484)]
198
185
  };
199
- return g("li", {
186
+ return m("li", {
200
187
  ref: (e) => {
201
188
  let t = i;
202
- e ? z[t(355)][t(359)](n.id, e) : z.current[t(361)](n.id);
189
+ e ? z.current[t(510)](n.id, e) : z.current[t(447)](n.id);
203
190
  },
204
- role: i(409),
205
- className: i(397),
191
+ role: i(454),
192
+ className: i(506),
206
193
  "aria-level": t + 1,
207
194
  "aria-posinset": r + 1,
208
- "aria-setsize": e[i(374)],
195
+ "aria-setsize": e[i(484)],
209
196
  "aria-expanded": a ? o : void 0,
210
- "aria-selected": C === "single" ? s : void 0,
197
+ "aria-selected": S === i(509) ? s : void 0,
211
198
  "aria-disabled": c || void 0,
212
199
  tabIndex: n.id === K ? 0 : -1,
213
200
  "data-open": o || void 0,
214
201
  onFocus: (e) => {
215
202
  let t = i;
216
- e[t(353)] === e[t(384)] && R(n.id);
203
+ e[t(435)] === e[t(488)] && R(n.id);
217
204
  },
218
- children: [g(i(388), {
219
- className: i(412),
205
+ children: [m("div", {
206
+ className: i(479),
220
207
  style: { "--_depth": t },
221
208
  "data-selected": s || void 0,
222
209
  "data-disabled": c || void 0,
@@ -224,55 +211,55 @@ function x({ items: n, children: o, expanded: s, defaultExpanded: c, onExpandedC
224
211
  Y(n.id), Q(u, !0);
225
212
  },
226
213
  children: [
227
- h(i(352), {
228
- className: i(358),
214
+ p(i(467), {
215
+ className: i(492),
229
216
  "aria-hidden": !0,
230
217
  onClick: a && !c ? (e) => {
231
- e[i(385)](), Y(n.id), Z(n.id, !o);
218
+ e[i(504)](), Y(n.id), Z(n.id, !o);
232
219
  } : void 0,
233
- children: a && h(m, {})
220
+ children: a && p(ee, {})
234
221
  }),
235
- n[i(399)] && h(i(352), {
236
- className: i(420),
237
- children: n[i(399)]
222
+ n[i(468)] && p(i(467), {
223
+ className: "ds-tree-view__leading",
224
+ children: n[i(468)]
238
225
  }),
239
- h(i(352), {
240
- className: i(394),
241
- children: E ? E(n, l) : g(ee, { children: [h(i(352), {
242
- className: i(364),
243
- children: n[i(413)]
244
- }), n.description && h("span", {
245
- className: "ds-tree-view__desc",
246
- children: n[i(393)]
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)]
247
234
  })] })
248
235
  }),
249
- n[i(407)] && h(i(352), {
250
- className: "ds-tree-view__trailing",
251
- children: n.trailing
236
+ n[i(458)] && p(i(467), {
237
+ className: i(474),
238
+ children: n[i(458)]
252
239
  })
253
240
  ]
254
- }), a && n[i(381)] && h(i(388), {
255
- className: "ds-tree-view__fold",
241
+ }), a && n[i(472)] && p(i(491), {
242
+ className: i(442),
256
243
  inert: !o || void 0,
257
- children: h(i(388), {
258
- className: i(421),
259
- children: h("ul", {
260
- role: i(400),
261
- className: "ds-tree-view__group",
244
+ children: p(i(491), {
245
+ className: i(443),
246
+ children: p("ul", {
247
+ role: i(438),
248
+ className: i(452),
262
249
  style: { "--_depth": t },
263
- children: $(n[i(381)], t + 1)
250
+ children: $(n[i(472)], t + 1)
264
251
  })
265
252
  })
266
253
  })]
267
254
  }, n.id);
268
- }), de = T === 0 ? M(382) : M(368) + T + ")";
269
- return h("ul", {
270
- role: M(369),
255
+ }), de = T === 0 ? M(460) : M(439) + T + ")";
256
+ return p("ul", {
257
+ role: M(464),
271
258
  "aria-label": A,
272
259
  "aria-labelledby": j,
273
- className: i(M(389), "ds-tree-view--" + w, oe && M(419), !se && M(379), O),
260
+ className: i(M(459), M(497) + C, oe && "ds-tree-view--guides", !se && M(433), O),
274
261
  style: {
275
- "--_row-h": (ae ?? _[w]) + "px",
262
+ "--_row-h": (w ?? h[C]) + "px",
276
263
  "--_indent": de,
277
264
  ...k
278
265
  },
@@ -280,5 +267,19 @@ function x({ items: n, children: o, expanded: s, defaultExpanded: c, onExpandedC
280
267
  children: $(N, 0)
281
268
  });
282
269
  }
283
- x[e(378)] = y;
284
- export { _ as TREE_ROW_HEIGHT, y as TreeItem, x as TreeView, v 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,44 +1,26 @@
1
1
  "use client";
2
- (function(e, n) {
3
- for (var r = t, i = e();;) try {
4
- if (-parseInt(r(133)) / 1 + -parseInt(r(137)) / 2 * (parseInt(r(139)) / 3) + parseInt(r(138)) / 4 * (-parseInt(r(132)) / 5) + -parseInt(r(135)) / 6 * (-parseInt(r(131)) / 7) + parseInt(r(130)) / 8 + -parseInt(r(136)) / 9 * (parseInt(r(129)) / 10) + parseInt(r(134)) / 11 == n) break;
5
- i.push(i.shift());
6
- } catch {
7
- i.push(i.shift());
8
- }
9
- })(e, 431636);
10
- function e() {
11
- var t = [
12
- "mJi4otCWtNHqyvnz",
13
- "otKYntm5ovjZuwPKBW",
14
- "mJK0ntyYmKvVs1LOqW",
15
- "owrRDeTHva",
16
- "mZe5ntjcCunqr00",
17
- "mti4mdm5mNrjAhb2DW",
18
- "ntDzqvbrrLi",
19
- "nJi1nti2mgTvvKzgrq",
20
- "ndeZmJiYnhHqu211wG",
21
- "n2r2AxPfDq",
22
- "nufTqvvvAa"
23
- ];
24
- return e = function() {
25
- return t;
26
- }, e();
27
- }
28
- function t(n, r) {
29
- n -= 129;
30
- var i = e(), a = i[n];
31
- t.KQuoDM === void 0 && (t.CteAqt = function(e) {
2
+ function e(t, r) {
3
+ t -= 156;
4
+ var i = n(), a = i[t];
5
+ e.jMcrQj === void 0 && (e.EZxasN = function(e) {
32
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);
33
7
  for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
34
8
  return decodeURIComponent(r);
35
- }, t.uhREKf = {}, t.KQuoDM = !0);
9
+ }, e.xdXhCz = {}, e.jMcrQj = !0);
36
10
  var o = i[0];
37
- t.ZjQafZ !== o && (t.uhREKf = {}, t.ZjQafZ = o);
38
- var s = t.uhREKf[n];
39
- return s === void 0 ? (a = t.CteAqt(a), t.uhREKf[n] = a) : a = s, a;
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;
40
14
  }
41
- var n = {
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;
18
+ i.push(i.shift());
19
+ } catch {
20
+ i.push(i.shift());
21
+ }
22
+ })(n, 924489);
23
+ var t = {
42
24
  tooltipDelay: 500,
43
25
  tooltipSkip: 300,
44
26
  hoverIntent: 200,
@@ -53,4 +35,20 @@ var n = {
53
35
  countdownTick: 250,
54
36
  longPress: 500
55
37
  };
56
- export { n as TIMING };
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();
53
+ }
54
+ export { t as TIMING };
@@ -1,48 +1,47 @@
1
1
  "use client";
2
2
  (function(e, t) {
3
- let n = r, i = e();
3
+ let r = n, i = e();
4
4
  for (;;) try {
5
- if (-parseInt(n(372)) / 1 + parseInt(n(374)) / 2 * (parseInt(n(370)) / 3) + parseInt(n(369)) / 4 * (parseInt(n(371)) / 5) + -parseInt(n(377)) / 6 + -parseInt(n(376)) / 7 * (-parseInt(n(368)) / 8) + parseInt(n(375)) / 9 * (-parseInt(n(367)) / 10) + parseInt(n(373)) / 11 == t) 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;
6
6
  i.push(i.shift());
7
7
  } catch {
8
8
  i.push(i.shift());
9
9
  }
10
- })(i, 843454);
10
+ })(i, 826611);
11
11
  import { useCallback as e, useState as t } from "react";
12
- function n(n, r, i) {
13
- let [a, o] = t(r), s = n !== void 0;
14
- return [s ? n : a, e((e) => {
15
- s || o(e), i?.(e);
16
- }, [s, i])];
17
- }
18
- function r(e, t) {
19
- e -= 367;
20
- let n = i(), a = n[e];
21
- r.tIWfNC === void 0 && (r.BSorks = function(e) {
12
+ function n(e, t) {
13
+ e -= 146;
14
+ let r = i(), a = r[e];
15
+ n.XEwZVk === void 0 && (n.mpMZvy = function(e) {
22
16
  let t = "", n = "";
23
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);
24
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
19
  return decodeURIComponent(n);
26
- }, r.tKIyjG = {}, r.tIWfNC = !0);
27
- let o = n[0];
28
- r.amkuTU !== o && (r.tKIyjG = {}, r.amkuTU = o);
29
- let s = r.tKIyjG[e];
30
- return s === void 0 ? (a = r.BSorks(a), r.tKIyjG[e] = 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;
25
+ }
26
+ function r(n, r, i) {
27
+ let [a, o] = t(r), s = n !== void 0;
28
+ return [s ? n : a, e((e) => {
29
+ s || o(e), i?.(e);
30
+ }, [s, i])];
31
31
  }
32
- export { n as useControllableState };
32
+ export { r as useControllableState };
33
33
  function i() {
34
34
  let e = [
35
- "nZu2BvDlCKLn",
36
- "mZyXoduYofnfu1H3Bq",
37
- "mteWodCWnJb3re95zLm",
38
- "mJm2mdbZChfMuLC",
39
- "mJbgt1rNr0C",
40
- "mJuZmtKXBLLWD0PZ",
41
- "ndm0mJe1quvrwuHN",
42
- "mZKYmtzyDvHsqu8",
43
- "mti4mZeYmdnIB3rgCxO",
44
- "mtz6ChnKu3u",
45
- "oxHsCvbPAW"
35
+ "mtvKDNfZB0W",
36
+ "ndiXody0sgf2CNzc",
37
+ "mZuYmZCWmvHQA1jrwG",
38
+ "otuZntC3nNPZq3PTuG",
39
+ "mLDHANvkrW",
40
+ "mtKWndKXmtbZzgLQA1i",
41
+ "mte2odC5odrTrwv5t2G",
42
+ "nJKWntK0oerhDhDlAG",
43
+ "odK0nZmXA3vPB0LA",
44
+ "oxz3uvfhta"
46
45
  ];
47
46
  return i = function() {
48
47
  return e;