@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.
Files changed (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,37 +1,37 @@
1
1
  "use client";
2
- const e = r;
2
+ const e = a;
3
3
  (function(e, t) {
4
- let n = r, i = e();
4
+ let n = a, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(245)) / 1 * (parseInt(n(241)) / 2) + -parseInt(n(232)) / 3 * (parseInt(n(237)) / 4) + -parseInt(n(197)) / 5 * (parseInt(n(181)) / 6) + -parseInt(n(211)) / 7 + parseInt(n(190)) / 8 * (-parseInt(n(189)) / 9) + -parseInt(n(183)) / 10 + parseInt(n(236)) / 11 * (parseInt(n(242)) / 12) == t) break;
7
- i.push(i.shift());
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;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(t, 895198);
12
- function t() {
13
- let e = /* @__PURE__ */ "otyZnuT4zuvJwa.Bwv0yuTLEq.rw5K.zhmTDhjLzs12Awv3x19SzwfKAw5N.Dg9mB3DLCKnHC2u.zhmTDhjLzs12Awv3x19KzxnJ.BMf0AxzLrxzLBNq.DgLTzxi.y3rYBeTLEq.C2v0.zgvMyxvSDa.ChvZAa.Dgv4Da.zxzLCNK.mJeWrePvqNjL.z2v0qxr0CMLIDxrL.mtaYmZm2mtbnwe1RENy.BgfIzwW.DhLWzwfOzwfK.zxHWyw5Kzwq.AgfZq2HPBgrYzw4.zhmTDhjLzs12Awv3.oda2ndLRsgn0vfq.mta0ofnds1DkAW.zhmTDhjLzs12Awv3x19MB2XKlwLUBMvY.rw50zxi.CM9Szq.AM9PBG.y3vYCMvUDa.zgL2.mtC0nZK1seX1rwrz.zhmTDhjLzs12Awv3x19SywjLBa.BgvHzgLUzW.zM9YrwfJAa.DhjHAwXPBMC.qxjYB3Dmzwz0.C3rVCfbYB3bHz2f0Aw9U.zgLZywjSzwq.DhjLzwL0zw0.CgfYzw50swq.C2v0vgLTzw91Da.AgfZ.zhmTDhjLzs12Awv3x190zxH0.zM9JDxm.mti1mtCYnJDpsxn5vMG.zgvZy3jPChrPB24.ChjVChm.BNvTyMvY.zhmTDhjLzs12Awv3x190CMfPBgLUzW.sg9Tzq.zgvSzxrL.ChjLDMvUDerLzMf1Bhq.AxndB21WB3nPBMC.qxjYB3DvCa.mhb4.C3bHBG.A2v5.y3vYCMvUDfrHCMDLDa.DgfYz2v0.C2LUz2XL.DhjLzq.DMfYkc0TCW.C3rYAw5N.z2v0.zMLUzeLUzgv4.ndC2nZC1zwnIrg51.y2HPBgrYzw4.zMLSDgvY.zhmTDhjLzs12Awv3x19YB3C.mtKWnJnLuLDHtMC.mJrpD2LnvNi.BM9Kzq.DhLWzq.BwfW.mKPhEvPcwG.ndG4mdrfu3H3thy.BgvUz3rO.y2XLyxjuAw1LB3v0".split(".");
14
- return t = function() {
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() {
15
16
  return e;
16
- }, t();
17
+ }, n();
17
18
  }
18
- import { TIMING as n } from "../../hooks/timing.js";
19
- function r(e, n) {
20
- e -= 176;
21
- let i = t(), a = i[e];
22
- r.luYwdw === void 0 && (r.JsVqMQ = function(e) {
19
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
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) {
23
25
  let t = "", n = "";
24
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);
25
27
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
28
  return decodeURIComponent(n);
27
- }, r.glVlnE = {}, r.luYwdw = !0);
28
- let o = i[0];
29
- r.SsZMCG !== o && (r.glVlnE = {}, r.SsZMCG = o);
30
- let s = r.glVlnE[e];
31
- return s === void 0 ? (a = r.JsVqMQ(a), r.glVlnE[e] = a) : a = s, a;
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;
32
34
  }
33
- import { useControllableState as i } from "../../hooks/useControllableState.js";
34
- import { cx as a } from "../../primitives/index.js";
35
35
  /* empty css */
36
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
37
  import { ChevronRight as m } from "lucide-react";
@@ -42,143 +42,143 @@ var _ = {
42
42
  comfortable: 48
43
43
  };
44
44
  function v(e, t) {
45
- let n = t instanceof Set ? t : new Set(t), i = [], a = (e, t, o) => {
46
- let s = r;
47
- e[s(200)]((r, c) => {
48
- let l = s, u = !!r[l(233)]?.[l(243)], d = u && n[l(208)](r.id);
49
- i[l(178)]({
50
- id: r.id,
51
- node: r,
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,
52
51
  depth: t,
53
- index: i[l(243)],
52
+ index: r[l(374)],
54
53
  parentId: o,
55
54
  hasChildren: u,
56
55
  expanded: d,
57
56
  posinset: c + 1,
58
- setsize: e[l(243)]
59
- }), d && r[l(233)] && a(r[l(233)], t + 1, r.id);
57
+ setsize: e[l(374)]
58
+ }), d && s[l(381)] && i(s[l(381)], t + 1, s.id);
60
59
  });
61
60
  };
62
- return a(e, 0, null), i;
61
+ return i(e, 0, null), r;
63
62
  }
64
63
  function y(e) {
65
64
  return null;
66
65
  }
67
66
  function b(e) {
68
- let t = r, n = [];
69
- return o[t(200)](e, (e) => {
67
+ let t = a, n = [];
68
+ return o[t(411)](e, (e) => {
70
69
  let r = t;
71
70
  if (!c(e)) return;
72
- if (e[r(239)] === s) {
73
- n[r(178)](...b(e.props[r(233)]));
71
+ if (e[r(363)] === s) {
72
+ n.push(...b(e[r(370)][r(381)]));
74
73
  return;
75
74
  }
76
- if (e.type !== y) return;
77
- let { children: i, ...a } = e[r(213)], o = b(i);
78
- n[r(178)]({
75
+ if (e[r(363)] !== y) return;
76
+ let { children: i, ...a } = e[r(370)], o = b(i);
77
+ n[r(349)]({
79
78
  ...a,
80
- children: o[r(243)] ? o : void 0
79
+ children: o[r(374)] ? o : void 0
81
80
  });
82
81
  }), n;
83
82
  }
84
- var te = (t) => (t.textValue ?? (typeof t.label === e(229) || typeof t.label === e(214) ? String(t.label) : ""))[e(249)]();
85
- function x({ items: t, children: o, expanded: s, defaultExpanded: c, onExpandedChange: y, selected: x, defaultSelected: ne, onSelectedChange: S, selectionMode: C = "single", expandOnClick: re, onAction: ie, density: w = e(177), 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 = d(() => t ?? b(o), [t, o]), [P, F] = i(s, c ?? [], y), [I, ce] = i(x, ne ?? null, S), [L, R] = p(null), z = f(/* @__PURE__ */ new Map()), B = f({
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({
87
86
  text: "",
88
87
  timer: 0
89
88
  }), V = d(() => new Set(P), [P]), H = d(() => v(N, V), [N, V]), U = d(() => {
90
- let e = r, t = /* @__PURE__ */ new Map(), n = (r, i) => r[e(200)]((r) => {
91
- let a = e;
92
- t[a(176)](r.id, i), r[a(233)] && n(r[a(233)], r.id);
89
+ 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);
93
92
  });
94
- return n(N, null), t;
95
- }, [N]), W = d(() => new Set(H[M(240)]((e) => e.id)), [H]), G = (e) => {
93
+ return t(N, null), e;
94
+ }, [N]), W = d(() => new Set(H[M(418)]((e) => e.id)), [H]), G = (e) => {
96
95
  let t = M, n = e;
97
- for (; n && !W[t(208)](n);) n = U.get(n) ?? null;
96
+ for (; n && !W.has(n);) n = U[t(416)](n) ?? null;
98
97
  return n;
99
- }, K = G(L) ?? G(I) ?? H[0]?.id ?? null, q = H[M(240)]((e) => "" + e.id + (e[M(186)] ? "+" : ""))[M(194)]("|"), J = f(null);
98
+ }, K = G(L) ?? G(I) ?? H[0]?.id ?? null, q = H[M(418)]((e) => "" + e.id + (e[M(376)] ? "+" : "")).join("|"), J = f(null);
100
99
  u(() => {
101
100
  let e = M;
102
- q !== J[e(195)] && (J[e(195)] = q, D?.(H));
101
+ q !== J[e(355)] && (J[e(355)] = q, D?.(H));
103
102
  }, [
104
103
  q,
105
104
  H,
106
105
  D
107
106
  ]), u(() => {
108
- let e = M, t = B[e(195)];
109
- return () => window[e(244)](t[e(252)]);
107
+ let e = M, t = B.current;
108
+ return () => window.clearTimeout(t[e(354)]);
110
109
  }, []);
111
110
  let Y = l((e) => {
112
111
  let t = M;
113
- R(e), z[t(195)][t(230)](e)?.[t(210)]();
112
+ R(e), z.current[t(416)](e)?.[t(356)]();
114
113
  }, []), X = (e, t) => {
115
- let n = M, r = e ? U[n(230)](e) ?? null : null;
114
+ let n = M, r = e ? U.get(e) ?? null : null;
116
115
  for (; r;) {
117
116
  if (r === t) return !0;
118
- r = U[n(230)](r) ?? null;
117
+ r = U[n(416)](r) ?? null;
119
118
  }
120
119
  return !1;
121
120
  }, Z = (e, t) => {
122
- t !== V[M(208)](e) && (F(t ? [...P, e] : P.filter((t) => t !== e)), !t && X(L, e) && Y(e));
123
- }, le = re ?? C === "none", Q = (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) => {
124
123
  let n = M;
125
- e[n(238)][n(204)] || (C === n(226) && ce(e.id), e.hasChildren && (le || C === "none" && !t) && Z(e.id, !e[n(186)]), ie?.(e[n(238)]));
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)]));
126
125
  }, ue = (e) => {
127
- let t = M;
128
- if (e[t(225)][t(182)](t(193)) !== "treeitem" || e[t(251)][t(219)]) return;
129
- let r = H[t(231)]((e) => e.id === K);
126
+ 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);
130
129
  if (r < 0) return;
131
130
  let i = H[r], a = (e) => e && Y(e.id), o = !0;
132
- switch (e[t(223)]) {
131
+ switch (e[n(392)]) {
133
132
  case "ArrowDown":
134
133
  a(H[r + 1]);
135
134
  break;
136
- case t(220):
135
+ case n(372):
137
136
  a(H[r - 1]);
138
137
  break;
139
- case t(216):
138
+ case "Home":
140
139
  a(H[0]);
141
140
  break;
142
- case t(247):
143
- a(H[H[t(243)] - 1]);
141
+ case n(390):
142
+ a(H[H[n(374)] - 1]);
144
143
  break;
145
- case "ArrowRight":
146
- i[t(187)] && !i[t(238)].disabled && (i.expanded ? a(H[r + 1]) : Z(i.id, !0));
144
+ case n(347):
145
+ i[n(414)] && !i[n(360)].disabled && (i[n(376)] ? a(H[r + 1]) : Z(i.id, !0));
147
146
  break;
148
- case t(202):
149
- i[t(186)] ? Z(i.id, !1) : i.parentId && Y(i[t(206)]);
147
+ case n(375):
148
+ i[n(376)] ? Z(i.id, !1) : i[n(403)] && Y(i[n(403)]);
150
149
  break;
151
- case t(192):
150
+ case n(401):
152
151
  case " ":
153
152
  Q(i, !1);
154
153
  break;
155
154
  case "*": {
156
- let e = H[t(234)]((e) => e[t(206)] === i[t(206)] && e[t(187)] && !e[t(238)].disabled && !e[t(186)]);
157
- e.length && F([...P, ...e.map((e) => e.id)]);
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)]);
158
157
  break;
159
158
  }
160
159
  default: {
161
- if (e[t(223)][t(243)] !== 1 || e[t(253)] || e[t(246)] || e.altKey) {
160
+ if (e[n(392)].length !== 1 || e[n(346)] || e[n(404)] || e[n(387)]) {
162
161
  o = !1;
163
162
  break;
164
163
  }
165
- let i = B[t(195)];
166
- window[t(244)](i[t(252)]), i[t(179)] += e[t(223)].toLowerCase(), i[t(252)] = window[t(207)](() => {
167
- i.text = "";
168
- }, n[t(185)]);
169
- let a = i.text.length > 1 && [...i.text][t(180)]((e) => e === i.text[0]) ? i[t(179)][0] : i[t(179)], s = a[t(243)] === 1 ? r + 1 : r;
170
- for (let e = 0; e < H[t(243)]; e++) {
171
- let n = H[(s + e) % H[t(243)]];
172
- if (te(n.node).startsWith(a)) {
173
- Y(n.id);
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);
174
174
  break;
175
175
  }
176
176
  }
177
177
  }
178
178
  }
179
- o && e[t(218)]();
180
- }, $ = (e, t) => e[M(240)]((n, r) => {
181
- let i = M, a = !!n[i(233)]?.[i(243)], o = a && V.has(n.id), s = I === n.id, c = !!n[i(204)], l = {
179
+ o && e.preventDefault();
180
+ }, $ = (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 = {
182
182
  depth: t,
183
183
  expanded: o,
184
184
  selected: s,
@@ -190,33 +190,33 @@ function x({ items: t, children: o, expanded: s, defaultExpanded: c, onExpandedC
190
190
  node: n,
191
191
  depth: t,
192
192
  index: -1,
193
- parentId: U[i(230)](n.id) ?? null,
193
+ parentId: U[i(416)](n.id) ?? null,
194
194
  hasChildren: a,
195
195
  expanded: o,
196
196
  posinset: r + 1,
197
- setsize: e[i(243)]
197
+ setsize: e.length
198
198
  };
199
199
  return g("li", {
200
200
  ref: (e) => {
201
201
  let t = i;
202
- e ? z.current.set(n.id, e) : z.current[t(217)](n.id);
202
+ e ? z[t(355)][t(359)](n.id, e) : z.current[t(361)](n.id);
203
203
  },
204
- role: i(205),
205
- className: "ds-tree-view__item",
204
+ role: i(409),
205
+ className: i(397),
206
206
  "aria-level": t + 1,
207
207
  "aria-posinset": r + 1,
208
- "aria-setsize": e[i(243)],
208
+ "aria-setsize": e[i(374)],
209
209
  "aria-expanded": a ? o : void 0,
210
- "aria-selected": C === i(226) ? s : void 0,
210
+ "aria-selected": C === "single" ? s : void 0,
211
211
  "aria-disabled": c || void 0,
212
212
  tabIndex: n.id === K ? 0 : -1,
213
213
  "data-open": o || void 0,
214
214
  onFocus: (e) => {
215
215
  let t = i;
216
- e.target === e[t(224)] && R(n.id);
216
+ e[t(353)] === e[t(384)] && R(n.id);
217
217
  },
218
- children: [g(i(196), {
219
- className: i(235),
218
+ children: [g(i(388), {
219
+ className: i(412),
220
220
  style: { "--_depth": t },
221
221
  "data-selected": s || void 0,
222
222
  "data-disabled": c || void 0,
@@ -224,53 +224,53 @@ function x({ items: t, children: o, expanded: s, defaultExpanded: c, onExpandedC
224
224
  Y(n.id), Q(u, !0);
225
225
  },
226
226
  children: [
227
- h(i(222), {
228
- className: "ds-tree-view__toggle",
227
+ h(i(352), {
228
+ className: i(358),
229
229
  "aria-hidden": !0,
230
230
  onClick: a && !c ? (e) => {
231
- e[i(203)](), Y(n.id), Z(n.id, !o);
231
+ e[i(385)](), Y(n.id), Z(n.id, !o);
232
232
  } : void 0,
233
233
  children: a && h(m, {})
234
234
  }),
235
- n[i(199)] && h("span", {
236
- className: i(248),
237
- children: n[i(199)]
235
+ n[i(399)] && h(i(352), {
236
+ className: i(420),
237
+ children: n[i(399)]
238
238
  }),
239
- h(i(222), {
240
- className: i(209),
241
- children: E ? E(n, l) : g(ee, { children: [h(i(222), {
242
- className: i(198),
243
- children: n[i(184)]
244
- }), n[i(212)] && h(i(222), {
245
- className: i(250),
246
- children: n[i(212)]
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)]
247
247
  })] })
248
248
  }),
249
- n[i(201)] && h("span", {
250
- className: i(215),
251
- children: n[i(201)]
249
+ n[i(407)] && h(i(352), {
250
+ className: "ds-tree-view__trailing",
251
+ children: n.trailing
252
252
  })
253
253
  ]
254
- }), a && n[i(233)] && h("div", {
254
+ }), a && n[i(381)] && h(i(388), {
255
255
  className: "ds-tree-view__fold",
256
256
  inert: !o || void 0,
257
- children: h("div", {
258
- className: i(191),
257
+ children: h(i(388), {
258
+ className: i(421),
259
259
  children: h("ul", {
260
- role: "group",
260
+ role: i(400),
261
261
  className: "ds-tree-view__group",
262
262
  style: { "--_depth": t },
263
- children: $(n.children, t + 1)
263
+ children: $(n[i(381)], t + 1)
264
264
  })
265
265
  })
266
266
  })]
267
267
  }, n.id);
268
- }), de = T === 0 ? M(221) : M(228) + T + ")";
268
+ }), de = T === 0 ? M(382) : M(368) + T + ")";
269
269
  return h("ul", {
270
- role: M(227),
270
+ role: M(369),
271
271
  "aria-label": A,
272
272
  "aria-labelledby": j,
273
- className: a(M(188), "ds-tree-view--" + w, oe && "ds-tree-view--guides", !se && "ds-tree-view--static", O),
273
+ className: i(M(389), "ds-tree-view--" + w, oe && M(419), !se && M(379), O),
274
274
  style: {
275
275
  "--_row-h": (ae ?? _[w]) + "px",
276
276
  "--_indent": de,
@@ -280,5 +280,5 @@ function x({ items: t, children: o, expanded: s, defaultExpanded: c, onExpandedC
280
280
  children: $(N, 0)
281
281
  });
282
282
  }
283
- x.Item = y;
283
+ x[e(378)] = y;
284
284
  export { _ as TREE_ROW_HEIGHT, y as TreeItem, x as TreeView, v as flattenTree };
@@ -1,30 +1,44 @@
1
1
  "use client";
2
- (function(e, t) {
3
- for (var r = n, i = e();;) try {
4
- if (-parseInt(r(318)) / 1 * (parseInt(r(324)) / 2) + -parseInt(r(317)) / 3 * (parseInt(r(321)) / 4) + parseInt(r(319)) / 5 + parseInt(r(320)) / 6 + parseInt(r(316)) / 7 * (parseInt(r(322)) / 8) + -parseInt(r(325)) / 9 + parseInt(r(323)) / 10 == t) break;
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
5
  i.push(i.shift());
6
6
  } catch {
7
7
  i.push(i.shift());
8
8
  }
9
- })(e, 393796);
9
+ })(e, 431636);
10
10
  function e() {
11
11
  var t = [
12
- "nZy5mdq3mefjwenmwa",
13
- "mtyWmdaYB0T4u0ne",
14
- "mtK5odK5te9VsuTj",
15
- "n1Dcvw9IBq",
16
- "mZG0mdqYwLbgtgv0",
17
- "n1fwDfHqDW",
18
- "mJe2ntuXnw5ssxbyua",
19
- "ndiWmdu0whzpD2Xx",
20
- "mtjuthLnAu4",
21
- "nZaZmtC2B0DJsNvL"
12
+ "mJi4otCWtNHqyvnz",
13
+ "otKYntm5ovjZuwPKBW",
14
+ "mJK0ntyYmKvVs1LOqW",
15
+ "owrRDeTHva",
16
+ "mZe5ntjcCunqr00",
17
+ "mti4mdm5mNrjAhb2DW",
18
+ "ntDzqvbrrLi",
19
+ "nJi1nti2mgTvvKzgrq",
20
+ "ndeZmJiYnhHqu211wG",
21
+ "n2r2AxPfDq",
22
+ "nufTqvvvAa"
22
23
  ];
23
24
  return e = function() {
24
25
  return t;
25
26
  }, e();
26
27
  }
27
- var t = {
28
+ function t(n, r) {
29
+ n -= 129;
30
+ var i = e(), a = i[n];
31
+ t.KQuoDM === void 0 && (t.CteAqt = function(e) {
32
+ 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
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
34
+ return decodeURIComponent(r);
35
+ }, t.uhREKf = {}, t.KQuoDM = !0);
36
+ 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;
40
+ }
41
+ var n = {
28
42
  tooltipDelay: 500,
29
43
  tooltipSkip: 300,
30
44
  hoverIntent: 200,
@@ -39,17 +53,4 @@ var t = {
39
53
  countdownTick: 250,
40
54
  longPress: 500
41
55
  };
42
- function n(t, r) {
43
- t -= 316;
44
- var i = e(), a = i[t];
45
- n.Njgxbh === void 0 && (n.TGQUpS = function(e) {
46
- 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);
47
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
48
- return decodeURIComponent(r);
49
- }, n.CpLATv = {}, n.Njgxbh = !0);
50
- var o = i[0];
51
- n.lpsKSh !== o && (n.CpLATv = {}, n.lpsKSh = o);
52
- var s = n.CpLATv[t];
53
- return s === void 0 ? (a = n.TGQUpS(a), n.CpLATv[t] = a) : a = s, a;
54
- }
55
- export { t as TIMING };
56
+ export { n as TIMING };
@@ -1,49 +1,50 @@
1
1
  "use client";
2
2
  (function(e, t) {
3
- let n = i, r = e();
3
+ let n = r, i = e();
4
4
  for (;;) try {
5
- if (parseInt(n(284)) / 1 * (-parseInt(n(282)) / 2) + parseInt(n(277)) / 3 + parseInt(n(279)) / 4 + parseInt(n(283)) / 5 + -parseInt(n(276)) / 6 + parseInt(n(278)) / 7 * (parseInt(n(280)) / 8) + -parseInt(n(275)) / 9 * (parseInt(n(281)) / 10) == t) break;
6
- r.push(r.shift());
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;
6
+ i.push(i.shift());
7
7
  } catch {
8
- r.push(r.shift());
8
+ i.push(i.shift());
9
9
  }
10
- })(e, 390295);
11
- function e() {
12
- let t = [
13
- "nezzD3vztW",
14
- "mZaYnJm0nwPevK9dqW",
15
- "mZG4nJe3y0Tju2P2",
16
- "ntmXsLvMrxDj",
17
- "mteXnde3nNH4u1fktW",
18
- "odeZnduWv3fKsNfl",
19
- "n3bYveD0ta",
20
- "mty0nJeZnLnVBfD2CW",
21
- "nduYnJe1mLvpEfbsBW",
22
- "odq4mZb1ze1nuhy"
23
- ];
24
- return e = function() {
25
- return t;
26
- }, e();
27
- }
28
- import { useCallback as t, useState as n } from "react";
29
- function r(e, r, i) {
30
- let [a, o] = n(r), s = e !== void 0;
31
- return [s ? e : a, t((e) => {
10
+ })(i, 843454);
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) => {
32
15
  s || o(e), i?.(e);
33
16
  }, [s, i])];
34
17
  }
35
- function i(t, n) {
36
- t -= 275;
37
- let r = e(), a = r[t];
38
- i.ttMags === void 0 && (i.lCKseP = function(e) {
18
+ function r(e, t) {
19
+ e -= 367;
20
+ let n = i(), a = n[e];
21
+ r.tIWfNC === void 0 && (r.BSorks = function(e) {
39
22
  let t = "", n = "";
40
23
  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);
41
24
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
42
25
  return decodeURIComponent(n);
43
- }, i.FlxMyQ = {}, i.ttMags = !0);
44
- let o = r[0];
45
- i.GcitwT !== o && (i.FlxMyQ = {}, i.GcitwT = o);
46
- let s = i.FlxMyQ[t];
47
- return s === void 0 ? (a = i.lCKseP(a), i.FlxMyQ[t] = a) : a = s, a;
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;
31
+ }
32
+ export { n as useControllableState };
33
+ function i() {
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"
46
+ ];
47
+ return i = function() {
48
+ return e;
49
+ }, i();
48
50
  }
49
- export { r as useControllableState };