@iamfiro/design 0.3.0 → 0.3.1

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 (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,66 +1,90 @@
1
1
  "use client";
2
- const e = s;
3
- (function(e, t) {
4
- let n = s, r = e();
2
+ function e() {
3
+ let t = [
4
+ "BwLU",
5
+ "ideG",
6
+ "Dg9tDhjPBMC",
7
+ "C3fYDa",
8
+ "mtm1ndbWzvbXEfi",
9
+ "oxDsBLHeAG",
10
+ "nZeXody3mLjiDLjUyq",
11
+ "mJGYnZK3mtbuDMPQsKS",
12
+ "idaG",
13
+ "idaGmsaXia",
14
+ "yxnPBG",
15
+ "otuWs1Lfq0j1",
16
+ "y29Z",
17
+ "ywjZ",
18
+ "nJK2mdq2mKXfDfjrra",
19
+ "ntqZotG0mhHArgn5sW",
20
+ "C2LU",
21
+ "Bwf4",
22
+ "mtq5mZzVEhnrDMS",
23
+ "idaGmcaXia",
24
+ "idaGmsaWia",
25
+ "mZbluw9xAva",
26
+ "ndq1nZHyuwLsDwm"
27
+ ];
28
+ return e = function() {
29
+ return t;
30
+ }, e();
31
+ }
32
+ function t(n, r) {
33
+ n -= 455;
34
+ let i = e(), a = i[n];
35
+ t.zyhgXy === void 0 && (t.pWQklO = function(e) {
36
+ let t = "", n = "";
37
+ 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);
38
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
39
+ return decodeURIComponent(n);
40
+ }, t.lHPWPl = {}, t.zyhgXy = !0);
41
+ let o = i[0];
42
+ t.aTPOXA !== o && (t.lHPWPl = {}, t.aTPOXA = o);
43
+ let s = t.lHPWPl[n];
44
+ return s === void 0 ? (a = t.pWQklO(a), t.lHPWPl[n] = a) : a = s, a;
45
+ }
46
+ const n = t;
47
+ (function(e, n) {
48
+ let r = t, i = e();
5
49
  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;
7
- r.push(r.shift());
50
+ if (parseInt(r(477)) / 1 + parseInt(r(458)) / 2 * (-parseInt(r(457)) / 3) + parseInt(r(463)) / 4 * (-parseInt(r(470)) / 5) + -parseInt(r(473)) / 6 + parseInt(r(474)) / 7 + -parseInt(r(465)) / 8 + parseInt(r(464)) / 9 * (parseInt(r(466)) / 10) == n) break;
51
+ i.push(i.shift());
8
52
  } catch {
9
- r.push(r.shift());
53
+ i.push(i.shift());
10
54
  }
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() {
16
- return e;
17
- }, i();
18
- }
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;
21
- 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));
23
- 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";
55
+ })(e, 704076);
56
+ var r = Math.PI * 2, i = 1e-6, a = (e) => (Math.round(e * 1e3) / 1e3)[n(461)]();
57
+ function o({ cx: e, cy: t, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
58
+ let f = n, p = Math[f(476)](0, o), m = Math[f(476)](0, Math[f(459)](s, p)), h = l - c;
59
+ if (!(h > i) || p <= i) return "";
60
+ let g = (n, r) => a(e + n * Math[f(475)](r)) + "," + a(t - n * Math[f(471)](r));
61
+ if (h >= r - i) {
62
+ let e = "M" + g(p, 0) + "A" + a(p) + "," + a(p) + f(468) + g(p, Math.PI) + "A" + a(p) + "," + a(p) + f(468) + g(p, 0) + "Z";
63
+ return m <= i ? e : e + "M" + g(m, 0) + "A" + a(m) + "," + a(m) + f(456) + g(m, Math.PI) + "A" + a(m) + "," + a(m) + f(456) + g(m, 0) + "Z";
26
64
  }
27
- let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(315)](_), y = Math.max(0, u / 2);
28
- 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);
31
- 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";
34
- 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";
65
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(475)](_), y = Math[f(476)](0, u / 2);
66
+ if (p * v <= y + i) return "";
67
+ let b = p - m, x = m * v <= y + i, S = x ? y / Math[f(475)](_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math.min(d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(476)](0, Math[f(459)](d, b / 2, w)), D = (n, r, i, o) => {
68
+ let s = f, c = e + i * Math.sin(n) + r * o * Math[s(471)](n), l = t - i * Math.cos(n) + r * o * Math[s(475)](n);
69
+ return a(c) + "," + a(l);
70
+ }, O = (e) => Math[f(459)](1, Math[f(476)](0, e)), k = (e) => Math[f(462)](Math.max(0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(469)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
71
+ if (T > i && (P += "A" + a(T) + "," + a(T) + f(455) + g(p, M)), N - M > i && (P += "A" + a(p) + "," + a(p) + f(467) + +(N - M > Math.PI) + f(460) + g(p, N)), T > i && (P += "A" + a(T) + "," + a(T) + f(455) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
72
+ let F = k((m + E) ** 2 - (y + E) ** 2), I = Math[f(469)](O((y + E) / (m + E))), L = c + I, R = l - I;
73
+ return P += "L" + D(l, -1, F, y), E > i && (P += "A" + a(E) + "," + a(E) + f(455) + g(m, R)), R - L > i && (P += "A" + a(m) + "," + a(m) + f(467) + +(R - L > Math.PI) + f(467) + g(m, L)), E > i && (P += "A" + a(E) + "," + a(E) + " 0 0 1 " + D(c, 1, F, y)), P + "Z";
36
74
  }
37
- function o(e, t, n, r) {
38
- let i = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
39
- return (a) => {
40
- let o = s;
41
- if (a <= 0) return 0;
42
- if (a >= 1) return 1;
43
- let c = 0, l = 1, u = a;
75
+ function s(e, n, r, i) {
76
+ let a = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
77
+ return (o) => {
78
+ let s = t;
79
+ if (o <= 0) return 0;
80
+ if (o >= 1) return 1;
81
+ let c = 0, l = 1, u = o;
44
82
  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;
83
+ let t = a(e, r, u);
84
+ if (Math[s(472)](t - o) < 1e-5) break;
85
+ t < o ? c = u : l = u, u = (c + l) / 2;
48
86
  }
49
- return i(t, r, u);
87
+ return a(n, i, u);
50
88
  };
51
89
  }
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 };
90
+ export { s as cubicBezier, o as segmentPath };
@@ -1,93 +1,91 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let n = s, r = e();
2
+ function e(t, r) {
3
+ t -= 142;
4
+ let i = n(), a = i[t];
5
+ e.iqUhwS === void 0 && (e.beTAiG = function(e) {
6
+ let t = "", n = "";
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);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.HvqaCc = {}, e.iqUhwS = !0);
11
+ let o = i[0];
12
+ e.xFLykm !== o && (e.HvqaCc = {}, e.xFLykm = o);
13
+ let s = e.HvqaCc[t];
14
+ return s === void 0 ? (a = e.beTAiG(a), e.HvqaCc[t] = a) : a = s, a;
15
+ }
16
+ (function(t, n) {
17
+ let r = e, i = t();
4
18
  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;
6
- r.push(r.shift());
19
+ if (parseInt(r(145)) / 1 * (-parseInt(r(144)) / 2) + -parseInt(r(150)) / 3 * (-parseInt(r(149)) / 4) + parseInt(r(158)) / 5 + -parseInt(r(148)) / 6 * (parseInt(r(153)) / 7) + -parseInt(r(159)) / 8 + -parseInt(r(146)) / 9 + parseInt(r(142)) / 10 == n) break;
20
+ i.push(i.shift());
7
21
  } catch {
8
- r.push(r.shift());
22
+ i.push(i.shift());
9
23
  }
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() {
24
+ })(n, 681100);
25
+ import { cubicBezier as t } from "./arc.js";
26
+ function n() {
15
27
  let e = [
16
- "mJr1DfjiA0e",
17
- "Dg9gAxHLza",
18
- "BwLU",
19
- "mJjPwuzLrNe",
20
- "mZmXmtfTsNfiywq",
21
- "mZeYmteYBLfhvMrY",
22
- "nJu2nZzfr3jzq1C",
23
- "nw9vt1nNAq",
24
- "odq3otG4AeTzzhzo",
25
- "otb5zuzjtvG",
26
- "zMLSDgvY",
27
- "mtK3ndyZmePiEezXCq",
28
- "y3vYCMvUDa",
29
- "A2v5",
28
+ "mJi2mJm5tePRrNDP",
30
29
  "AM9PBG",
31
- "mJi1nJC5mePvqK1oBa",
32
- "n1bfv3z2EG",
33
- "mZq1mJyZnM1tDK9Pzq",
34
30
  "BwfW",
31
+ "ndjovg1dzMy",
32
+ "y3vYCMvUDa",
35
33
  "z2v0",
36
- "AgfZ"
34
+ "Dg9gAxHLza",
35
+ "AgfZ",
36
+ "nta0ntC3mgrowuzjvq",
37
+ "mJe4mtq0z1HYDu9L",
38
+ "ntm0ntGXme5euvzYCW",
39
+ "A2v5",
40
+ "mtm0oefNvNfYrq",
41
+ "nde3vxrfz3H3",
42
+ "mJG0nZy1ne1YDunjAW",
43
+ "y29SB3i",
44
+ "ote2nJiWAwnUu3bQ",
45
+ "mZzgs0fbqNu"
37
46
  ];
38
- return o = function() {
47
+ return n = function() {
39
48
  return e;
40
- }, o();
41
- }
42
- function s(e, t) {
43
- e -= 307;
44
- let n = o(), r = n[e];
45
- s.jqNekE === void 0 && (s.lbQNuc = function(e) {
46
- let t = "", n = "";
47
- 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
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
49
- 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;
49
+ }, n();
55
50
  }
56
- function c(e, { enter: o = 900, update: c = 600 } = {}) {
57
- let l = s, [u, d] = i(() => e.map((e) => ({
51
+ import { useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
52
+ var s = t(.32, .72, 0, 1);
53
+ function c(t, { enter: n = 900, update: c = 600 } = {}) {
54
+ let l = e, [u, d] = o(() => t[l(152)]((e) => ({
58
55
  ...e,
59
56
  a0: 0,
60
57
  a1: 0
61
- }))), f = r(u), p = r(e);
62
- n(() => {
63
- p.current = e;
58
+ }))), f = a(u), p = a(t);
59
+ i(() => {
60
+ let e = l;
61
+ p[e(154)] = t;
64
62
  });
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) => {
63
+ let m = a(!1), h = t[l(152)]((e) => e[l(143)] + ":" + e.a0[l(156)](5) + ":" + e.a1[l(156)](5) + ":" + e[l(147)])[l(151)]("|");
64
+ return r(() => {
65
+ let e = l, t = p[e(154)], r = !m[e(154)], i = new Map(f[e(154)][e(152)]((e) => [e.key, e])), a = new Set(t.map((t) => t[e(143)])), o = f[e(154)].filter((t) => !a[e(157)](t[e(143)]) && t.a1 - t.a0 > 1e-4)[e(152)]((e) => {
68
66
  let t = (e.a0 + e.a1) / 2;
69
67
  return {
70
68
  ...e,
71
69
  a0: t,
72
70
  a1: t
73
71
  };
74
- }), u = [...t, ...s], h = u.map((t) => r[e(322)](t[e(316)]) ?? {
72
+ }), u = [...t, ...o], h = u[e(152)]((t) => i[e(155)](t[e(143)]) ?? {
75
73
  ...t,
76
74
  a1: t.a0
77
- }), g = n ? o : c, _ = 0, v = 0, y = (n) => {
75
+ }), g = r ? n : c, _ = 0, v = 0, y = (n) => {
78
76
  let r = e;
79
77
  v ||= n;
80
- let i = Math[r(326)](1, (n - v) / g), o = a(i), s = i < 1 ? u[r(321)]((e, t) => ({
78
+ let i = Math.min(1, (n - v) / g), a = s(i), o = i < 1 ? u[r(152)]((e, t) => ({
81
79
  ...e,
82
- a0: h[t].a0 + (e.a0 - h[t].a0) * o,
83
- a1: h[t].a1 + (e.a1 - h[t].a1) * o
80
+ a0: h[t].a0 + (e.a0 - h[t].a0) * a,
81
+ a1: h[t].a1 + (e.a1 - h[t].a1) * a
84
82
  })) : t;
85
- f.current = s, d(s), i < 1 ? _ = requestAnimationFrame(y) : m[r(315)] = !0;
83
+ f.current = o, d(o), i < 1 ? _ = requestAnimationFrame(y) : m[r(154)] = !0;
86
84
  };
87
85
  return _ = requestAnimationFrame(() => _ = requestAnimationFrame(y)), () => cancelAnimationFrame(_);
88
86
  }, [
89
87
  h,
90
- o,
88
+ n,
91
89
  c
92
90
  ]), u;
93
91
  }
@@ -1,112 +1,111 @@
1
1
  "use client";
2
- const e = l;
3
2
  (function(e, t) {
4
- let n = l, r = e();
3
+ let n = i, r = e();
5
4
  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;
5
+ if (parseInt(n(176)) / 1 + -parseInt(n(181)) / 2 + parseInt(n(180)) / 3 + -parseInt(n(160)) / 4 * (parseInt(n(189)) / 5) + parseInt(n(169)) / 6 + parseInt(n(166)) / 7 + -parseInt(n(171)) / 8 == t) break;
7
6
  r.push(r.shift());
8
7
  } catch {
9
8
  r.push(r.shift());
10
9
  }
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) {
10
+ })(h, 474237);
11
+ import { TIMING as e } from "../../hooks/timing.js";
12
+ import { usePresence as t } from "../../hooks/usePresence.js";
13
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
14
+ import { cx as r } from "../../primitives/index.js";
15
+ function i(e, t) {
16
+ e -= 158;
17
+ let n = h(), r = n[e];
18
+ i.aWBxIk === void 0 && (i.vPExGf = function(e) {
29
19
  let t = "", n = "";
30
20
  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
21
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
32
22
  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;
23
+ }, i.BPJCMx = {}, i.aWBxIk = !0);
24
+ let a = n[0];
25
+ i.SGeYxq !== a && (i.BPJCMx = {}, i.SGeYxq = a);
26
+ let o = i.BPJCMx[e];
27
+ return o === void 0 ? (r = i.vPExGf(r), i.BPJCMx[e] = r) : r = o, r;
38
28
  }
29
+ import { useFloating as a } from "../../hooks/useFloating.js";
30
+ import { useDismiss as o } from "../../hooks/useDismiss.js";
31
+ import { focusableIn as s } from "../../hooks/useFocusTrap.js";
39
32
  /* empty css */
40
- import { useEffect as u, useRef as d } from "react";
41
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
42
- import { createPortal as h } from "react-dom";
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)], {
33
+ import { useEffect as c, useRef as l } from "react";
34
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
35
+ import { createPortal as p } from "react-dom";
36
+ var m = 160;
37
+ function h() {
38
+ let e = /* @__PURE__ */ "zNvUy3rPB24.C2v0vgLTzw91Da.zhmTzMXVyxrPBMC.Ag92zxi.zM9JDxm.mJG3nJGXmuLeshzSqG.A2v5.CMvSyxrLzfrHCMDLDa.ndu5oda1mMf6thLoEG.C3bHBG.nZiZodq4meLSvKTyyW.y29UDgfPBNm.ChjLDMvUDerLzMf1Bhq.DgfYz2v0.Bwf0y2HLCW.ndKYnZCWBw1QyKTq.Ag92zxjhCMfJzq.B3bLBG.Cg9PBNrLCLr5Cgu.nda3mZKXDevwAfv6.mJGZodj0ELvhqvi.y2XLyxjuAw1LB3v0.zhmTzMXVyxrPBMCTlxbHzc0.y2XVC2vK.zgLHBg9N.Bw91C2u.ywn0AxzLrwXLBwvUDa.y2XPy2S.mZqZodCWEM9VwNbL.Bw91BNrLza.zgvMyxvSDfbYzxzLBNrLza.yM9KEq.y3vYCMvUDa.mJrzBK9hzee".split(".");
39
+ return h = function() {
40
+ return e;
41
+ }, h();
42
+ }
43
+ function g({ trigger: h, children: g, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = "click", align: x = "start", width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
44
+ let D = i, [O, k] = n(_, v, y), A = t(O, m), j = l(null), M = l(null), N = l(0), { style: P, side: F } = a(j, A[D(190)], {
46
45
  matchWidth: !1,
47
46
  align: x,
48
47
  panelRef: M,
49
48
  maxHeight: 560
50
49
  });
51
- s(O, [j, M], () => k(!1)), u(() => () => window[D(515)](N[D(486)]), []), u(() => {
50
+ o(O, [j, M], () => k(!1)), c(() => () => window.clearTimeout(N.current), []), c(() => {
52
51
  let e = D;
53
- if (!O || b !== e(518) || !w) return;
52
+ if (!O || b !== e(188) || !w) return;
54
53
  let t = requestAnimationFrame(() => {
55
54
  let t = e, n = M.current;
56
- n && (c(n)[0] ?? n)[t(483)]({ preventScroll: !0 });
55
+ n && (s(n)[0] ?? n)[t(165)]({ preventScroll: !0 });
57
56
  });
58
57
  return () => cancelAnimationFrame(t);
59
58
  }, [
60
59
  O,
61
60
  b,
62
61
  w
63
- ]), u(() => {
62
+ ]), c(() => {
64
63
  let e = D;
65
- !O && M[e(486)]?.[e(488)](document.activeElement) && j.current && c(j[e(486)])[0]?.focus({ preventScroll: !0 });
64
+ !O && M[e(159)]?.contains(document[e(187)]) && j[e(159)] && s(j[e(159)])[0]?.[e(165)]({ preventScroll: !0 });
66
65
  }, [O]);
67
66
  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);
67
+ let t = D, n = e[t(168)];
68
+ j[t(159)]?.[t(172)](n) || M[t(159)]?.[t(172)](n) || k(!1);
70
69
  }, R = (e) => {
71
70
  let t = D;
72
- e[t(517)] === t(501) && O && !e[t(485)] && (e[t(507)](), I());
73
- }, z = b === D(513) ? {
74
- onPointerEnter: (e) => {
71
+ e[t(167)] === "Escape" && O && !e[t(191)] && (e[t(173)](), I());
72
+ }, z = b === D(164) ? {
73
+ onPointerEnter: (t) => {
75
74
  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
+ t[n(179)] === n(186) && (window[n(182)](N.current), N[n(159)] = window[n(162)](() => k(!0), O ? 0 : e.hoverIntent));
77
76
  },
78
- onPointerLeave: (e) => {
77
+ onPointerLeave: (t) => {
79
78
  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
+ t[n(179)] === n(186) && (window[n(182)](N.current), N[n(159)] = window.setTimeout(() => k(!1), e[n(177)]));
81
80
  }
82
81
  } : {};
83
- return m(f, { children: [p(D(514), {
82
+ return f(u, { children: [d(D(170), {
84
83
  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,
84
+ className: "ds-popover-anchor",
85
+ onClick: b === "click" ? () => k(!O) : void 0,
86
+ onFocus: b === "hover" ? (e) => e[D(174)][D(175)](":focus-visible") && k(!0) : void 0,
87
+ onBlur: b === "hover" ? L : void 0,
89
88
  onKeyDown: R,
90
89
  "aria-expanded": O,
91
90
  ...z,
92
- children: o
93
- }), A[D(495)] && h(p(D(506), {
91
+ children: h
92
+ }), A[D(190)] && p(d("div", {
94
93
  ref: M,
95
- role: "dialog",
94
+ role: D(185),
96
95
  "aria-label": E,
97
96
  tabIndex: -1,
98
- className: i(D(497), "ds-scroll", D(508) + C, T),
97
+ className: r(D(163), "ds-scroll", D(183) + C, T),
99
98
  "data-side": F,
100
- "data-state": A[D(509)] ? "closed" : D(484),
99
+ "data-state": A.closing ? D(184) : D(178),
101
100
  style: {
102
101
  ...P,
103
102
  width: S,
104
- maxWidth: D(516)
103
+ maxWidth: "calc(100vw - 16px)"
105
104
  },
106
105
  onKeyDown: R,
107
- onBlur: b === D(513) ? L : void 0,
106
+ onBlur: b === "hover" ? L : void 0,
108
107
  ...z,
109
- children: typeof l == "function" ? l(() => I()) : l
110
- }), document[D(498)])] });
108
+ children: typeof g === D(161) ? g(() => I()) : g
109
+ }), document[D(158)])] });
111
110
  }
112
- export { _ as Popover };
111
+ export { g as Popover };