@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,66 +1,87 @@
1
1
  "use client";
2
- const e = s;
2
+ const e = i;
3
3
  (function(e, t) {
4
- let n = s, r = e();
4
+ let n = i, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(312)) / 1 + -parseInt(n(318)) / 2 * (-parseInt(n(323)) / 3) + parseInt(n(314)) / 4 * (-parseInt(n(322)) / 5) + parseInt(n(308)) / 6 * (-parseInt(n(329)) / 7) + parseInt(n(321)) / 8 * (parseInt(n(310)) / 9) + -parseInt(n(327)) / 10 * (-parseInt(n(317)) / 11) + -parseInt(n(306)) / 12 * (-parseInt(n(325)) / 13) == t) break;
6
+ if (-parseInt(n(262)) / 1 + parseInt(n(272)) / 2 * (-parseInt(n(265)) / 3) + -parseInt(n(267)) / 4 + parseInt(n(269)) / 5 + parseInt(n(280)) / 6 + -parseInt(n(279)) / 7 + parseInt(n(270)) / 8 * (parseInt(n(264)) / 9) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(i, 921157);
12
- var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(326)](t * 1e3) / 1e3)[e(328)]();
13
- function i() {
14
- let e = /* @__PURE__ */ "otCWBLj2DNb2.Dg9tDhjPBMC.mta5ntCZoe9fv3fHrG.y29Z.ywjZ.nJi0yMfhq0Tt.idaGmcaXia.mZzvvuzQtuu.BwLU.mZGXmJK0AfDUAfvM.yxnPBG.mZGZnJKZzurXEwPi.idaGmsaWia.ode5mJmYEMHzr2Hh.C2LU.Bwf4.mJa1nZC3q3LsCMno.mJjfELbrtuu.idaG.ideG.mtzJCfDct2G.mZbHuK91sxq.mty4mZnvrvDxqxi.idaGmsaXia.mtG2mtiXBeLurMjf.CM91BMq".split(".");
15
- return i = function() {
11
+ })(a, 843360);
12
+ var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(271)](t * 1e3) / 1e3)[e(275)]();
13
+ function i(e, t) {
14
+ e -= 261;
15
+ let n = a(), r = n[e];
16
+ i.ePpxrW === void 0 && (i.ojJeJO = function(e) {
17
+ let t = "", n = "";
18
+ 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);
19
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
+ return decodeURIComponent(n);
21
+ }, i.KalUeR = {}, i.ePpxrW = !0);
22
+ let o = n[0];
23
+ i.McVpIR !== o && (i.KalUeR = {}, i.McVpIR = o);
24
+ let s = i.KalUeR[e];
25
+ return s === void 0 ? (r = i.ojJeJO(r), i.KalUeR[e] = r) : r = s, r;
26
+ }
27
+ function a() {
28
+ let e = [
29
+ "Bwf4",
30
+ "mJyXodK4mLDLBujWra",
31
+ "mteZn2TXtMDRqq",
32
+ "idaG",
33
+ "ndC2ntu0mejls0rUrG",
34
+ "idaGmcaXia",
35
+ "mZK4nJy5nvbfBwzmCG",
36
+ "odbHCvfeqxe",
37
+ "CM91BMq",
38
+ "ntq2mNL4tLviEG",
39
+ "ideG",
40
+ "BwLU",
41
+ "Dg9tDhjPBMC",
42
+ "y29Z",
43
+ "idaGmsaWia",
44
+ "yxnPBG",
45
+ "mtaYmdC1otzqyM9HqwS",
46
+ "ntiYoty1nfHYBerNra",
47
+ "C2LU",
48
+ "idaGmsaXia",
49
+ "nta5mdzrs2jzugK"
50
+ ];
51
+ return a = function() {
16
52
  return e;
17
- }, i();
53
+ }, a();
18
54
  }
19
- function a({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
20
- let f = e, p = Math[f(316)](0, o), m = Math[f(316)](0, Math.min(s, p)), h = l - c;
55
+ function o({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
56
+ let f = e, p = Math.max(0, o), m = Math[f(263)](0, Math[f(274)](s, p)), h = l - c;
21
57
  if (!(h > n) || p <= n) return "";
22
- let g = (e, t) => r(i + e * Math[f(315)](t)) + "," + r(a - e * Math[f(330)](t));
58
+ let g = (e, t) => r(i + e * Math[f(281)](t)) + "," + r(a - e * Math[f(276)](t));
23
59
  if (h >= t - n) {
24
- let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, Math.PI) + "A" + r(p) + "," + r(p) + f(324) + g(p, 0) + "Z";
25
- return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(313) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + f(313) + g(m, 0) + "Z";
60
+ let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + f(261) + g(p, Math.PI) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, 0) + "Z";
61
+ return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(277) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + " 0 1 0 " + g(m, 0) + "Z";
26
62
  }
27
- let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(315)](_), y = Math.max(0, u / 2);
63
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math.sin(_), y = Math[f(263)](0, u / 2);
28
64
  if (p * v <= y + n) return "";
29
- let b = p - m, x = m * v <= y + n, S = x ? y / Math.sin(_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math[f(309)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math.max(0, Math[f(309)](d, b / 2, w)), D = (e, t, n, o) => {
30
- let s = f, c = i + n * Math[s(315)](e) + t * o * Math[s(330)](e), l = a - n * Math[s(330)](e) + t * o * Math[s(315)](e);
65
+ let b = p - m, x = m * v <= y + n, S = x ? y / Math.sin(_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math[f(274)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(263)](0, Math[f(274)](d, b / 2, w)), D = (e, t, n, o) => {
66
+ let s = f, c = i + n * Math.sin(e) + t * o * Math[s(276)](e), l = a - n * Math.cos(e) + t * o * Math.sin(e);
31
67
  return r(c) + "," + r(l);
32
- }, O = (e) => Math[f(309)](1, Math[f(316)](0, e)), k = (e) => Math.sqrt(Math[f(316)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(311)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
33
- if (T > n && (P += "A" + r(T) + "," + r(T) + f(307) + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + " 0 " + +(N - M > Math.PI) + f(320) + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(307) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
68
+ }, O = (e) => Math[f(274)](1, Math[f(263)](0, e)), k = (e) => Math.sqrt(Math[f(263)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(278)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
69
+ if (T > n && (P += "A" + r(T) + "," + r(T) + " 0 0 1 " + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + f(266) + +(N - M > Math.PI) + f(273) + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(268) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
34
70
  let F = k((m + E) ** 2 - (y + E) ** 2), I = Math.asin(O((y + E) / (m + E))), L = c + I, R = l - I;
35
- return P += "L" + D(l, -1, F, y), E > n && (P += "A" + r(E) + "," + r(E) + " 0 0 1 " + g(m, R)), R - L > n && (P += "A" + r(m) + "," + r(m) + f(319) + +(R - L > Math.PI) + f(319) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + " 0 0 1 " + D(c, 1, F, y)), P + "Z";
71
+ return P += "L" + D(l, -1, F, y), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + g(m, R)), R - L > n && (P += "A" + r(m) + "," + r(m) + f(266) + +(R - L > Math.PI) + f(266) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + D(c, 1, F, y)), P + "Z";
36
72
  }
37
- function o(e, t, n, r) {
73
+ function s(e, t, n, r) {
38
74
  let i = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
39
75
  return (a) => {
40
- let o = s;
41
76
  if (a <= 0) return 0;
42
77
  if (a >= 1) return 1;
43
- let c = 0, l = 1, u = a;
78
+ let o = 0, s = 1, c = a;
44
79
  for (let t = 0; t < 24; t++) {
45
- let t = i(e, n, u);
46
- if (Math[o(305)](t - a) < 1e-5) break;
47
- t < a ? c = u : l = u, u = (c + l) / 2;
80
+ let t = i(e, n, c);
81
+ if (Math.abs(t - a) < 1e-5) break;
82
+ t < a ? o = c : s = c, c = (o + s) / 2;
48
83
  }
49
- return i(t, r, u);
84
+ return i(t, r, c);
50
85
  };
51
86
  }
52
- function s(e, t) {
53
- e -= 305;
54
- let n = i(), r = n[e];
55
- s.uEGKsv === void 0 && (s.cweIEa = function(e) {
56
- let t = "", n = "";
57
- 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);
58
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
59
- return decodeURIComponent(n);
60
- }, s.axOWxS = {}, s.uEGKsv = !0);
61
- let a = n[0];
62
- s.FmdhNj !== a && (s.axOWxS = {}, s.FmdhNj = a);
63
- let o = s.axOWxS[e];
64
- return o === void 0 ? (r = s.cweIEa(r), s.axOWxS[e] = r) : r = o, r;
65
- }
66
- export { o as cubicBezier, a as segmentPath };
87
+ export { s as cubicBezier, o as segmentPath };
@@ -2,92 +2,94 @@
2
2
  (function(e, t) {
3
3
  let n = s, r = e();
4
4
  for (;;) try {
5
- if (parseInt(n(309)) / 1 + -parseInt(n(327)) / 2 * (parseInt(n(307)) / 3) + -parseInt(n(311)) / 4 * (parseInt(n(310)) / 5) + -parseInt(n(314)) / 6 * (parseInt(n(319)) / 7) + -parseInt(n(308)) / 8 * (-parseInt(n(312)) / 9) + -parseInt(n(318)) / 10 + -parseInt(n(320)) / 11 * (-parseInt(n(324)) / 12) == t) break;
5
+ if (parseInt(n(393)) / 1 * (-parseInt(n(382)) / 2) + parseInt(n(391)) / 3 + parseInt(n(373)) / 4 * (parseInt(n(392)) / 5) + -parseInt(n(379)) / 6 * (-parseInt(n(374)) / 7) + -parseInt(n(385)) / 8 * (parseInt(n(376)) / 9) + -parseInt(n(372)) / 10 * (parseInt(n(378)) / 11) + -parseInt(n(387)) / 12 * (-parseInt(n(384)) / 13) == t) break;
6
6
  r.push(r.shift());
7
7
  } catch {
8
8
  r.push(r.shift());
9
9
  }
10
- })(o, 195380);
11
- import { cubicBezier as e } from "./arc.js";
12
- import { useEffect as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
13
- var a = e(.32, .72, 0, 1);
14
- function o() {
15
- let e = [
16
- "mJr1DfjiA0e",
10
+ })(e, 687871);
11
+ function e() {
12
+ let t = [
13
+ "mJfsz3nyu0S",
14
+ "AM9PBG",
15
+ "mteXntu1B3nxzLrZ",
16
+ "z2v0",
17
+ "mtfotwfYv2m",
18
+ "mtu4ntGZmeTWtLbeza",
19
+ "A2v5",
20
+ "y3vYCMvUDa",
21
+ "nZm0vLbnCevI",
17
22
  "Dg9gAxHLza",
23
+ "mtu1nJe1mKnUENnOsG",
24
+ "nZi4uhLhCNLK",
18
25
  "BwLU",
19
- "mJjPwuzLrNe",
20
- "mZmXmtfTsNfiywq",
21
- "mZeYmteYBLfhvMrY",
22
- "nJu2nZzfr3jzq1C",
23
- "nw9vt1nNAq",
24
- "odq3otG4AeTzzhzo",
25
- "otb5zuzjtvG",
26
- "zMLSDgvY",
27
- "mtK3ndyZmePiEezXCq",
28
- "y3vYCMvUDa",
29
- "A2v5",
30
- "AM9PBG",
31
- "mJi1nJC5mePvqK1oBa",
32
- "n1bfv3z2EG",
33
- "mZq1mJyZnM1tDK9Pzq",
26
+ "mty4rK1nDKLm",
34
27
  "BwfW",
35
- "z2v0",
36
- "AgfZ"
28
+ "AgfZ",
29
+ "y29SB3i",
30
+ "mJe5oda2n3DitLrcrW",
31
+ "oty5mdvcuuDmvKi",
32
+ "mZe0mNHoCKzsuG",
33
+ "nZK0ntC5mhzry050uq",
34
+ "mte2C0riswvd"
37
35
  ];
38
- return o = function() {
39
- return e;
40
- }, o();
36
+ return e = function() {
37
+ return t;
38
+ }, e();
41
39
  }
42
- function s(e, t) {
43
- e -= 307;
44
- let n = o(), r = n[e];
45
- s.jqNekE === void 0 && (s.lbQNuc = function(e) {
40
+ import { cubicBezier as t } from "./arc.js";
41
+ import { useEffect as n, useLayoutEffect as r, useRef as i, useState as a } from "react";
42
+ var o = t(.32, .72, 0, 1);
43
+ function s(t, n) {
44
+ t -= 372;
45
+ let r = e(), i = r[t];
46
+ s.cDwQPG === void 0 && (s.sJNwYK = function(e) {
46
47
  let t = "", n = "";
47
48
  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);
48
49
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
49
50
  return decodeURIComponent(n);
50
- }, s.SKSwQQ = {}, s.jqNekE = !0);
51
- let i = n[0];
52
- s.fBfBsn !== i && (s.SKSwQQ = {}, s.fBfBsn = i);
53
- let a = s.SKSwQQ[e];
54
- return a === void 0 ? (r = s.lbQNuc(r), s.SKSwQQ[e] = r) : r = a, r;
51
+ }, s.jzzkvz = {}, s.cDwQPG = !0);
52
+ let a = r[0];
53
+ s.wKxYWR !== a && (s.jzzkvz = {}, s.wKxYWR = a);
54
+ let o = s.jzzkvz[t];
55
+ return o === void 0 ? (i = s.sJNwYK(i), s.jzzkvz[t] = i) : i = o, i;
55
56
  }
56
- function c(e, { enter: o = 900, update: c = 600 } = {}) {
57
- let l = s, [u, d] = i(() => e.map((e) => ({
57
+ function c(e, { enter: t = 900, update: c = 600 } = {}) {
58
+ let l = s, [u, d] = a(() => e.map((e) => ({
58
59
  ...e,
59
60
  a0: 0,
60
61
  a1: 0
61
- }))), f = r(u), p = r(e);
62
- n(() => {
63
- p.current = e;
62
+ }))), f = i(u), p = i(e);
63
+ r(() => {
64
+ let t = s;
65
+ p[t(381)] = e;
64
66
  });
65
- let m = r(!1), h = e[l(321)]((e) => e[l(316)] + ":" + e.a0[l(325)](5) + ":" + e.a1.toFixed(5) + ":" + e.color)[l(317)]("|");
66
- return t(() => {
67
- let e = l, t = p[e(315)], n = !m[e(315)], r = new Map(f[e(315)].map((e) => [e.key, e])), i = new Set(t[e(321)]((t) => t[e(316)])), s = f.current[e(313)]((t) => !i[e(323)](t.key) && t.a1 - t.a0 > 1e-4).map((e) => {
67
+ let m = i(!1), h = e[l(388)]((e) => e[l(380)] + ":" + e.a0[l(383)](5) + ":" + e.a1[l(383)](5) + ":" + e[l(390)])[l(375)]("|");
68
+ return n(() => {
69
+ let e = l, n = p[e(381)], r = !m.current, i = new Map(f[e(381)][e(388)]((t) => [t[e(380)], t])), a = new Set(n.map((e) => e.key)), s = f[e(381)].filter((t) => !a[e(389)](t[e(380)]) && t.a1 - t.a0 > 1e-4)[e(388)]((e) => {
68
70
  let t = (e.a0 + e.a1) / 2;
69
71
  return {
70
72
  ...e,
71
73
  a0: t,
72
74
  a1: t
73
75
  };
74
- }), u = [...t, ...s], h = u.map((t) => r[e(322)](t[e(316)]) ?? {
76
+ }), u = [...n, ...s], h = u[e(388)]((t) => i[e(377)](t[e(380)]) ?? {
75
77
  ...t,
76
78
  a1: t.a0
77
- }), g = n ? o : c, _ = 0, v = 0, y = (n) => {
79
+ }), g = r ? t : c, _ = 0, v = 0, y = (t) => {
78
80
  let r = e;
79
- v ||= n;
80
- let i = Math[r(326)](1, (n - v) / g), o = a(i), s = i < 1 ? u[r(321)]((e, t) => ({
81
+ v ||= t;
82
+ let i = Math[r(386)](1, (t - v) / g), a = o(i), s = i < 1 ? u.map((e, t) => ({
81
83
  ...e,
82
- a0: h[t].a0 + (e.a0 - h[t].a0) * o,
83
- a1: h[t].a1 + (e.a1 - h[t].a1) * o
84
- })) : t;
85
- f.current = s, d(s), i < 1 ? _ = requestAnimationFrame(y) : m[r(315)] = !0;
84
+ a0: h[t].a0 + (e.a0 - h[t].a0) * a,
85
+ a1: h[t].a1 + (e.a1 - h[t].a1) * a
86
+ })) : n;
87
+ f[r(381)] = s, d(s), i < 1 ? _ = requestAnimationFrame(y) : m.current = !0;
86
88
  };
87
89
  return _ = requestAnimationFrame(() => _ = requestAnimationFrame(y)), () => cancelAnimationFrame(_);
88
90
  }, [
89
91
  h,
90
- o,
92
+ t,
91
93
  c
92
94
  ]), u;
93
95
  }
@@ -1,59 +1,59 @@
1
1
  "use client";
2
- const e = l;
3
- (function(e, t) {
4
- let n = l, r = e();
5
- for (;;) try {
6
- if (parseInt(n(494)) / 1 * (-parseInt(n(505)) / 2) + parseInt(n(492)) / 3 + -parseInt(n(504)) / 4 * (parseInt(n(496)) / 5) + -parseInt(n(519)) / 6 + parseInt(n(521)) / 7 * (-parseInt(n(487)) / 8) + parseInt(n(502)) / 9 + parseInt(n(491)) / 10 == t) break;
7
- r.push(r.shift());
8
- } catch {
9
- r.push(r.shift());
10
- }
11
- })(o, 566459);
12
- import { TIMING as t } from "../../hooks/timing.js";
13
- import { usePresence as n } from "../../hooks/usePresence.js";
14
- import { useControllableState as r } from "../../hooks/useControllableState.js";
15
- import { cx as i } from "../../primitives/index.js";
16
- import { useFloating as a } from "../../hooks/useFloating.js";
17
- function o() {
18
- let e = /* @__PURE__ */ "y2fSyYGXmdb2DYaTide2ChGP.A2v5.y2XPy2S.mJq2nZKZmKjzEfzuta.oMzVy3vZlxzPC2LIBgu.mtC3nJe4wxDyvwfb.zM9JDxm.B3bLBG.zgvMyxvSDfbYzxzLBNrLza.y3vYCMvUDa.mtznte1Ir0y.y29UDgfPBNm.DgfYz2v0.C3rHCNq.mti5nJeXmJb5wMvTqxy.mJG3ndCYouzKsKPPAa.Bw91C2u.ntK4ntr0txHwDum.Bw91BNrLza.mtKZnti1D21izuzO.zhmTzMXVyxrPBMC.yM9KEq.Ag92zxjjBNrLBNq.zhmTCg9WB3zLCI1HBMnOB3i.rxnJyxbL.nZuWmZaZt2LmCePY.C2v0vgLTzw91Da.otjfCxDSzeu.mtrJANveCg8.zgL2.ChjLDMvUDerLzMf1Bhq.zhmTzMXVyxrPBMCTlxbHzc0.y2XVC2LUzW.Ag92zxjhCMfJzq.Cg9PBNrLCLr5Cgu.Bwf0y2HLCW.Ag92zxi.C3bHBG.y2XLyxjuAw1LB3v0".split(".");
19
- return o = function() {
20
- return e;
21
- }, o();
22
- }
23
- import { useDismiss as s } from "../../hooks/useDismiss.js";
24
- import { focusableIn as c } from "../../hooks/useFocusTrap.js";
25
- function l(e, t) {
26
- e -= 483;
27
- let n = o(), r = n[e];
28
- l.YggWSb === void 0 && (l.LdoTOk = function(e) {
2
+ function e(t, n) {
3
+ t -= 388;
4
+ let r = s(), i = r[t];
5
+ e.vGebYd === void 0 && (e.qNjwPc = function(e) {
29
6
  let t = "", n = "";
30
7
  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);
31
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
32
9
  return decodeURIComponent(n);
33
- }, l.VkndSs = {}, l.YggWSb = !0);
34
- let i = n[0];
35
- l.FGnClq !== i && (l.VkndSs = {}, l.FGnClq = i);
36
- let a = l.VkndSs[e];
37
- return a === void 0 ? (r = l.LdoTOk(r), l.VkndSs[e] = r) : r = a, r;
10
+ }, e.kZBqQg = {}, e.vGebYd = !0);
11
+ let a = r[0];
12
+ e.WlRAzb !== a && (e.kZBqQg = {}, e.WlRAzb = a);
13
+ let o = e.kZBqQg[t];
14
+ return o === void 0 ? (i = e.qNjwPc(i), e.kZBqQg[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(393)) / 1 * (-parseInt(r(400)) / 2) + parseInt(r(397)) / 3 + -parseInt(r(408)) / 4 * (parseInt(r(413)) / 5) + -parseInt(r(403)) / 6 + -parseInt(r(416)) / 7 * (-parseInt(r(388)) / 8) + parseInt(r(421)) / 9 * (parseInt(r(409)) / 10) + parseInt(r(407)) / 11 * (-parseInt(r(417)) / 12) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(s, 470261);
26
+ import { TIMING as n } from "../../hooks/timing.js";
27
+ import { usePresence as r } from "../../hooks/usePresence.js";
28
+ import { useControllableState as i } from "../../hooks/useControllableState.js";
29
+ import { cx as a } from "../../primitives/index.js";
30
+ import { useFloating as o } from "../../hooks/useFloating.js";
31
+ function s() {
32
+ let e = /* @__PURE__ */ "Cg9PBNrLCLr5Cgu.zgLHBg9N.mZu4mhz5senMuG.y29UDgfPBNm.DgfYz2v0.ntiWmw93vuXntG.mtaYodrAwejfzeK.y2XPy2S.C2v0vgLTzw91Da.Bw91C2u.ouTcBhnJrq.ywn0AxzLrwXLBwvUDa.Bw91BNrLza.Ag92zxi.zgvMyxvSDfbYzxzLBNrLza.ote4ngv3q1vJva.A2v5.CMvSyxrLzfrHCMDLDa.oMzVy3vZlxzPC2LIBgu.y2fSyYGXmdb2DYaTide2ChGP.owTey3fgqW.Ag92zxjhCMfJzq.zM9JDxm.zhmTzMXVyxrPBMCTlxbHzc0.mtKXndy1nejirw9ryW.zhmTC2nYB2XS.y2XLyxjuAw1LB3v0.mZC1mZHSyLfACw0.C3bHBG.rxnJyxbL.ndqZodmYmgvWz0vNzW.B3bLBG.zhmTzMXVyxrPBMC.C3rHCNq.mta2n0XWwwjJuG.ntiWnez5C1bksG.nty0ntiZmgLNseDiBG.y3vYCMvUDa".split(".");
33
+ return s = function() {
34
+ return e;
35
+ }, s();
38
36
  }
37
+ import { useDismiss as c } from "../../hooks/useDismiss.js";
38
+ import { focusableIn as l } from "../../hooks/useFocusTrap.js";
39
39
  /* empty css */
40
40
  import { useEffect as u, useRef as d } from "react";
41
41
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
42
42
  import { createPortal as h } from "react-dom";
43
43
  var g = 160;
44
- function _({ trigger: o, children: l, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = e(518), align: x = e(490), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
45
- let D = e, [O, k] = r(_, v, y), A = n(O, g), j = d(null), M = d(null), N = d(0), { style: P, side: F } = a(j, A[D(495)], {
44
+ function _({ trigger: e, children: s, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = t(418), align: x = t(406), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
45
+ let D = t, [O, k] = i(_, v, y), A = r(O, g), j = d(null), M = d(null), N = d(0), { style: P, side: F } = o(j, A[D(423)], {
46
46
  matchWidth: !1,
47
47
  align: x,
48
48
  panelRef: M,
49
49
  maxHeight: 560
50
50
  });
51
- s(O, [j, M], () => k(!1)), u(() => () => window[D(515)](N[D(486)]), []), u(() => {
51
+ c(O, [j, M], () => k(!1)), u(() => () => window.clearTimeout(N[D(410)]), []), u(() => {
52
52
  let e = D;
53
- if (!O || b !== e(518) || !w) return;
53
+ if (!O || b !== e(418) || !w) return;
54
54
  let t = requestAnimationFrame(() => {
55
- let t = e, n = M.current;
56
- n && (c(n)[0] ?? n)[t(483)]({ preventScroll: !0 });
55
+ let t = e, n = M[t(410)];
56
+ n && (l(n)[0] ?? n)[t(395)]({ preventScroll: !0 });
57
57
  });
58
58
  return () => cancelAnimationFrame(t);
59
59
  }, [
@@ -62,51 +62,51 @@ function _({ trigger: o, children: l, open: _, defaultOpen: v = !1, onOpenChange
62
62
  w
63
63
  ]), u(() => {
64
64
  let e = D;
65
- !O && M[e(486)]?.[e(488)](document.activeElement) && j.current && c(j[e(486)])[0]?.focus({ preventScroll: !0 });
65
+ !O && M.current?.contains(document[e(422)]) && j[e(410)] && l(j.current)[0]?.[e(395)]({ preventScroll: !0 });
66
66
  }, [O]);
67
67
  let I = () => k(!1), L = (e) => {
68
- let t = D, n = e.relatedTarget;
69
- j.current?.[t(488)](n) || M.current?.[t(488)](n) || k(!1);
68
+ let t = D, n = e[t(390)];
69
+ j[t(410)]?.[t(414)](n) || M[t(410)]?.[t(414)](n) || k(!1);
70
70
  }, R = (e) => {
71
71
  let t = D;
72
- e[t(517)] === t(501) && O && !e[t(485)] && (e[t(507)](), I());
73
- }, z = b === D(513) ? {
72
+ e[t(389)] === t(402) && O && !e[t(425)] && (e.preventDefault(), I());
73
+ }, z = b === D(424) ? {
74
74
  onPointerEnter: (e) => {
75
- let n = D;
76
- e[n(511)] === n(493) && (window[n(515)](N[n(486)]), N[n(486)] = window[n(503)](() => k(!0), O ? 0 : t[n(499)]));
75
+ let t = D;
76
+ e[t(411)] === t(420) && (window[t(399)](N[t(410)]), N[t(410)] = window[t(419)](() => k(!0), O ? 0 : n.hoverIntent));
77
77
  },
78
78
  onPointerLeave: (e) => {
79
- let n = D;
80
- e.pointerType === n(493) && (window[n(515)](N[n(486)]), N[n(486)] = window[n(503)](() => k(!1), t[n(510)]));
79
+ let t = D;
80
+ e.pointerType === "mouse" && (window[t(399)](N[t(410)]), N[t(410)] = window.setTimeout(() => k(!1), n[t(394)]));
81
81
  }
82
82
  } : {};
83
- return m(f, { children: [p(D(514), {
83
+ return m(f, { children: [p(D(401), {
84
84
  ref: j,
85
- className: D(500),
86
- onClick: b === D(518) ? () => k(!O) : void 0,
87
- onFocus: b === D(513) ? (e) => e[D(489)][D(512)](D(520)) && k(!0) : void 0,
88
- onBlur: b === D(513) ? L : void 0,
85
+ className: "ds-popover-anchor",
86
+ onClick: b === "click" ? () => k(!O) : void 0,
87
+ onFocus: b === D(424) ? (e) => e[D(415)].matches(D(391)) && k(!0) : void 0,
88
+ onBlur: b === "hover" ? L : void 0,
89
89
  onKeyDown: R,
90
90
  "aria-expanded": O,
91
91
  ...z,
92
- children: o
93
- }), A[D(495)] && h(p(D(506), {
92
+ children: e
93
+ }), A[D(423)] && h(p("div", {
94
94
  ref: M,
95
- role: "dialog",
95
+ role: D(412),
96
96
  "aria-label": E,
97
97
  tabIndex: -1,
98
- className: i(D(497), "ds-scroll", D(508) + C, T),
98
+ className: a(D(405), D(398), D(396) + C, T),
99
99
  "data-side": F,
100
- "data-state": A[D(509)] ? "closed" : D(484),
100
+ "data-state": A.closing ? "closed" : D(404),
101
101
  style: {
102
102
  ...P,
103
103
  width: S,
104
- maxWidth: D(516)
104
+ maxWidth: D(392)
105
105
  },
106
106
  onKeyDown: R,
107
- onBlur: b === D(513) ? L : void 0,
107
+ onBlur: b === D(424) ? L : void 0,
108
108
  ...z,
109
- children: typeof l == "function" ? l(() => I()) : l
110
- }), document[D(498)])] });
109
+ children: typeof s == "function" ? s(() => I()) : s
110
+ }), document.body)] });
111
111
  }
112
112
  export { _ as Popover };