@synnaxlabs/pluto 0.21.7 → 0.21.9

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 (147) hide show
  1. package/dist/{Center-hbwH7rg9.js → Center-BK9Rcaa0.js} +2 -2
  2. package/dist/{Center-hbwH7rg9.js.map → Center-BK9Rcaa0.js.map} +1 -1
  3. package/dist/{Center-5NJ61qfA.cjs → Center-Cc_rR5pQ.cjs} +2 -2
  4. package/dist/{Center-5NJ61qfA.cjs.map → Center-Cc_rR5pQ.cjs.map} +1 -1
  5. package/dist/{Keyboard-DaFraUsQ.cjs → Keyboard-Byx8rGZt.cjs} +3 -3
  6. package/dist/{Keyboard-DaFraUsQ.cjs.map → Keyboard-Byx8rGZt.cjs.map} +1 -1
  7. package/dist/{Keyboard-nDIAR7Rj.js → Keyboard-D31SwhYT.js} +3 -3
  8. package/dist/{Keyboard-nDIAR7Rj.js.map → Keyboard-D31SwhYT.js.map} +1 -1
  9. package/dist/{LinePlot-BZDm4uxJ.cjs → LinePlot-Bnb8Ufob.cjs} +96 -65
  10. package/dist/LinePlot-Bnb8Ufob.cjs.map +1 -0
  11. package/dist/{LinePlot-tOiSUMjC.js → LinePlot-KYwy1D7H.js} +281 -250
  12. package/dist/LinePlot-KYwy1D7H.js.map +1 -0
  13. package/dist/{Link-BdWFvK8v.cjs → Link-Bq38h1dw.cjs} +2 -2
  14. package/dist/{Link-BdWFvK8v.cjs.map → Link-Bq38h1dw.cjs.map} +1 -1
  15. package/dist/{Link-d3CXVSaO.js → Link-DQKdkwWL.js} +2 -2
  16. package/dist/{Link-d3CXVSaO.js.map → Link-DQKdkwWL.js.map} +1 -1
  17. package/dist/{List-DcsWFiLT.js → List-BmP_se57.js} +3 -3
  18. package/dist/{List-DcsWFiLT.js.map → List-BmP_se57.js.map} +1 -1
  19. package/dist/{List-PlMTfEHi.cjs → List-BnB-C5vQ.cjs} +3 -3
  20. package/dist/{List-PlMTfEHi.cjs.map → List-BnB-C5vQ.cjs.map} +1 -1
  21. package/dist/{Toggle-C6Z8WPT3.cjs → Toggle-D3iCEbO1.cjs} +46 -46
  22. package/dist/{Toggle-C6Z8WPT3.cjs.map → Toggle-D3iCEbO1.cjs.map} +1 -1
  23. package/dist/{Toggle-DGLgYCOX.js → Toggle-bT5RpwfA.js} +399 -399
  24. package/dist/{Toggle-DGLgYCOX.js.map → Toggle-bT5RpwfA.js.map} +1 -1
  25. package/dist/Video-B4sma9fk.cjs +14 -0
  26. package/dist/Video-B4sma9fk.cjs.map +1 -0
  27. package/dist/Video-Cp6XjjOK.js +15 -0
  28. package/dist/Video-Cp6XjjOK.js.map +1 -0
  29. package/dist/{aggregator-BgImZc4o.js → aggregator-B8fg7W2s.js} +106 -106
  30. package/dist/aggregator-B8fg7W2s.js.map +1 -0
  31. package/dist/{aggregator-BpfMBUD1.cjs → aggregator-Bh2Kyzkg.cjs} +100 -100
  32. package/dist/aggregator-Bh2Kyzkg.cjs.map +1 -0
  33. package/dist/align.cjs +1 -1
  34. package/dist/align.js +1 -1
  35. package/dist/button.cjs +1 -1
  36. package/dist/button.js +1 -1
  37. package/dist/{color-DV-YGUvp.js → color-CjdRh-aN.js} +2 -2
  38. package/dist/{color-DV-YGUvp.js.map → color-CjdRh-aN.js.map} +1 -1
  39. package/dist/{color-BVVyrgRF.cjs → color-DBNbbjJy.cjs} +2 -2
  40. package/dist/{color-BVVyrgRF.cjs.map → color-DBNbbjJy.cjs.map} +1 -1
  41. package/dist/color.cjs +1 -1
  42. package/dist/color.js +1 -1
  43. package/dist/{css-Pf9qxhQ4.cjs → css-Ci8WUD5E.cjs} +112 -108
  44. package/dist/css-Ci8WUD5E.cjs.map +1 -0
  45. package/dist/{css-DoalWJF6.js → css-DKKmdhSr.js} +114 -110
  46. package/dist/css-DKKmdhSr.js.map +1 -0
  47. package/dist/css.cjs +2 -2
  48. package/dist/css.js +2 -2
  49. package/dist/dropdown.cjs +1 -1
  50. package/dist/dropdown.js +1 -1
  51. package/dist/ether.cjs +3 -3
  52. package/dist/ether.js +5 -5
  53. package/dist/{external-Cu6T11fi.cjs → external-9_cqFQy3.cjs} +6 -6
  54. package/dist/{external-Cu6T11fi.cjs.map → external-9_cqFQy3.cjs.map} +1 -1
  55. package/dist/{external-Blx0rtt2.cjs → external-B-zN2e5z.cjs} +6 -6
  56. package/dist/{external-Blx0rtt2.cjs.map → external-B-zN2e5z.cjs.map} +1 -1
  57. package/dist/{external-DeheWVb-.js → external-BM82B8W2.js} +6 -6
  58. package/dist/{external-DeheWVb-.js.map → external-BM82B8W2.js.map} +1 -1
  59. package/dist/{external-96EinZfY.js → external-BYqTC99W.js} +3 -3
  60. package/dist/external-BYqTC99W.js.map +1 -0
  61. package/dist/{external-5przQjJD.js → external-BfZYUV3z.js} +11 -11
  62. package/dist/{external-5przQjJD.js.map → external-BfZYUV3z.js.map} +1 -1
  63. package/dist/{external-SxB9IH0p.js → external-BpqCp_M1.js} +2 -2
  64. package/dist/external-BpqCp_M1.js.map +1 -0
  65. package/dist/{external-C6GmnG49.js → external-BrW40HJx.js} +6 -6
  66. package/dist/{external-C6GmnG49.js.map → external-BrW40HJx.js.map} +1 -1
  67. package/dist/{external-1osPryUV.js → external-CAOQcoqL.js} +5 -5
  68. package/dist/{external-1osPryUV.js.map → external-CAOQcoqL.js.map} +1 -1
  69. package/dist/{external-D8dWmF4U.cjs → external-CIVsFXOp.cjs} +2 -2
  70. package/dist/external-CIVsFXOp.cjs.map +1 -0
  71. package/dist/{external-BAdU6u03.js → external-CnNdgPsB.js} +5 -5
  72. package/dist/{external-BAdU6u03.js.map → external-CnNdgPsB.js.map} +1 -1
  73. package/dist/{external-DiFhWWS-.js → external-CwjCCHPi.js} +7 -7
  74. package/dist/{external-DiFhWWS-.js.map → external-CwjCCHPi.js.map} +1 -1
  75. package/dist/{external-DarqsFzT.js → external-DNHMAfGi.js} +5 -5
  76. package/dist/{external-DarqsFzT.js.map → external-DNHMAfGi.js.map} +1 -1
  77. package/dist/{external-0PM7JrzG.cjs → external-DVQ2SRoH.cjs} +5 -5
  78. package/dist/{external-0PM7JrzG.cjs.map → external-DVQ2SRoH.cjs.map} +1 -1
  79. package/dist/{external-16K8slq8.cjs → external-D_yXh8rn.cjs} +11 -11
  80. package/dist/{external-16K8slq8.cjs.map → external-D_yXh8rn.cjs.map} +1 -1
  81. package/dist/{external-CPx8XA9-.cjs → external-Df0D1YYb.cjs} +7 -7
  82. package/dist/{external-CPx8XA9-.cjs.map → external-Df0D1YYb.cjs.map} +1 -1
  83. package/dist/{external-DvGqQHd8.cjs → external-DhPBdJpR.cjs} +3 -3
  84. package/dist/external-DhPBdJpR.cjs.map +1 -0
  85. package/dist/{external-D7XrxOVE.cjs → external-DhiN6pEk.cjs} +4 -4
  86. package/dist/{external-D7XrxOVE.cjs.map → external-DhiN6pEk.cjs.map} +1 -1
  87. package/dist/{external-CsO29OsF.cjs → external-DjYXzP7v.cjs} +7 -7
  88. package/dist/{external-CsO29OsF.cjs.map → external-DjYXzP7v.cjs.map} +1 -1
  89. package/dist/{external-B3ly2-jy.js → external-FWIwgLzc.js} +7 -7
  90. package/dist/{external-B3ly2-jy.js.map → external-FWIwgLzc.js.map} +1 -1
  91. package/dist/{external-B0z7uXZV.cjs → external-Iv2mRce8.cjs} +5 -5
  92. package/dist/{external-B0z7uXZV.cjs.map → external-Iv2mRce8.cjs.map} +1 -1
  93. package/dist/{external-CzJYG1hX.cjs → external-P6zP6dBA.cjs} +3 -3
  94. package/dist/external-P6zP6dBA.cjs.map +1 -0
  95. package/dist/{external-D4ur_D1S.cjs → external-d-vI8EHK.cjs} +5 -5
  96. package/dist/{external-D4ur_D1S.cjs.map → external-d-vI8EHK.cjs.map} +1 -1
  97. package/dist/{external-DQkw1ko0.js → external-giUMrk8w.js} +4 -4
  98. package/dist/{external-DQkw1ko0.js.map → external-giUMrk8w.js.map} +1 -1
  99. package/dist/{external-CgMwmBnF.js → external-zG96smqq.js} +3 -3
  100. package/dist/external-zG96smqq.js.map +1 -0
  101. package/dist/header.cjs +1 -1
  102. package/dist/header.js +1 -1
  103. package/dist/index.cjs +30 -30
  104. package/dist/index.js +55 -55
  105. package/dist/index.js.map +1 -1
  106. package/dist/input.cjs +1 -1
  107. package/dist/input.js +1 -1
  108. package/dist/list.cjs +1 -1
  109. package/dist/list.js +1 -1
  110. package/dist/menu.cjs +1 -1
  111. package/dist/menu.js +1 -1
  112. package/dist/src/telem/client/cache/cache.d.ts +3 -8
  113. package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
  114. package/dist/src/telem/client/cache/dynamic.d.ts +13 -3
  115. package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
  116. package/dist/src/telem/client/client.d.ts +1 -1
  117. package/dist/src/video/Video.d.ts +2 -2
  118. package/dist/src/video/Video.d.ts.map +1 -1
  119. package/dist/tabs.cjs +1 -1
  120. package/dist/tabs.js +1 -1
  121. package/dist/text.cjs +2 -2
  122. package/dist/text.js +2 -2
  123. package/dist/theming.cjs +2 -2
  124. package/dist/theming.js +2 -2
  125. package/dist/tree.cjs +1 -1
  126. package/dist/tree.js +1 -1
  127. package/dist/triggers.cjs +1 -1
  128. package/dist/triggers.js +1 -1
  129. package/dist/video.cjs +1 -1
  130. package/dist/video.js +1 -1
  131. package/package.json +1 -1
  132. package/dist/LinePlot-BZDm4uxJ.cjs.map +0 -1
  133. package/dist/LinePlot-tOiSUMjC.js.map +0 -1
  134. package/dist/Video-B1oW8NLd.js +0 -11
  135. package/dist/Video-B1oW8NLd.js.map +0 -1
  136. package/dist/Video-BGNx94bQ.cjs +0 -10
  137. package/dist/Video-BGNx94bQ.cjs.map +0 -1
  138. package/dist/aggregator-BgImZc4o.js.map +0 -1
  139. package/dist/aggregator-BpfMBUD1.cjs.map +0 -1
  140. package/dist/css-DoalWJF6.js.map +0 -1
  141. package/dist/css-Pf9qxhQ4.cjs.map +0 -1
  142. package/dist/external-96EinZfY.js.map +0 -1
  143. package/dist/external-CgMwmBnF.js.map +0 -1
  144. package/dist/external-CzJYG1hX.cjs.map +0 -1
  145. package/dist/external-D8dWmF4U.cjs.map +0 -1
  146. package/dist/external-DvGqQHd8.cjs.map +0 -1
  147. package/dist/external-SxB9IH0p.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
- const Toggle = require("./Toggle-C6Z8WPT3.cjs");
3
+ const Toggle = require("./Toggle-D3iCEbO1.cjs");
4
4
  const Link = ({
5
5
  href,
6
6
  target,
@@ -9,4 +9,4 @@ const Link = ({
9
9
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Button, { el: "a", href, ...props });
10
10
  };
11
11
  exports.Link = Link;
12
- //# sourceMappingURL=Link-BdWFvK8v.cjs.map
12
+ //# sourceMappingURL=Link-Bq38h1dw.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-BdWFvK8v.cjs","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":["Button"],"mappings":";;;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,0DAAQA,OAAY,QAAA,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;;"}
1
+ {"version":3,"file":"Link-Bq38h1dw.cjs","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":["Button"],"mappings":";;;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,0DAAQA,OAAY,QAAA,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;;"}
@@ -1,5 +1,5 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
- import { B as Button } from "./Toggle-DGLgYCOX.js";
2
+ import { B as Button } from "./Toggle-bT5RpwfA.js";
3
3
  const Link = ({
4
4
  href,
5
5
  target,
@@ -10,4 +10,4 @@ const Link = ({
10
10
  export {
11
11
  Link as L
12
12
  };
13
- //# sourceMappingURL=Link-d3CXVSaO.js.map
13
+ //# sourceMappingURL=Link-DQKdkwWL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-d3CXVSaO.js","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":[],"mappings":";;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,+CAAQ,QAAY,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;"}
1
+ {"version":3,"file":"Link-DQKdkwWL.js","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":[],"mappings":";;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,+CAAQ,QAAY,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;"}
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
- import { c as S } from "./aggregator-BgImZc4o.js";
3
- import { f as useMemoCompare, g as InfiniteProvider, h as DataProvider } from "./Toggle-DGLgYCOX.js";
2
+ import { c as S } from "./aggregator-B8fg7W2s.js";
3
+ import { f as useMemoCompare, g as InfiniteProvider, h as DataProvider } from "./Toggle-bT5RpwfA.js";
4
4
  const List = ({
5
5
  children,
6
6
  data,
@@ -24,4 +24,4 @@ const List = ({
24
24
  export {
25
25
  List as L
26
26
  };
27
- //# sourceMappingURL=List-DcsWFiLT.js.map
27
+ //# sourceMappingURL=List-BmP_se57.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-DcsWFiLT.js","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["omit","data","compare","jsx"],"mappings":";;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAc;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACA,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,EAAQ,yBAAyB,UAAUF,KAAI,MAAME,EAAQ;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,kCAAA,IAAC,oBACC,UAACA,kCAAA,IAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;"}
1
+ {"version":3,"file":"List-BmP_se57.js","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["omit","data","compare","jsx"],"mappings":";;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAc;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACA,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,EAAQ,yBAAyB,UAAUF,KAAI,MAAME,EAAQ;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,kCAAA,IAAC,oBACC,UAACA,kCAAA,IAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
- const aggregator = require("./aggregator-BpfMBUD1.cjs");
4
- const Toggle = require("./Toggle-C6Z8WPT3.cjs");
3
+ const aggregator = require("./aggregator-Bh2Kyzkg.cjs");
4
+ const Toggle = require("./Toggle-D3iCEbO1.cjs");
5
5
  const List = ({
6
6
  children,
7
7
  data,
@@ -23,4 +23,4 @@ const List = ({
23
23
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.InfiniteProvider, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.DataProvider, { data: omittedData, emptyContent, children }) });
24
24
  };
25
25
  exports.List = List;
26
- //# sourceMappingURL=List-PlMTfEHi.cjs.map
26
+ //# sourceMappingURL=List-BnB-C5vQ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-PlMTfEHi.cjs","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["useMemoCompare","omit","data","compare","jsx","InfiniteProvider","DataProvider"],"mappings":";;;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAcA,OAAA;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACC,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,WAAQ,EAAA,yBAAyB,UAAUF,KAAI,MAAME,WAAQ,EAAA;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,2BAAA,kBAAA,IAACC,2BACC,UAACD,2BAAA,kBAAA,IAAAE,OAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;;"}
1
+ {"version":3,"file":"List-BnB-C5vQ.cjs","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["useMemoCompare","omit","data","compare","jsx","InfiniteProvider","DataProvider"],"mappings":";;;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAcA,OAAA;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACC,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,WAAQ,EAAA,yBAAyB,UAAUF,KAAI,MAAME,WAAQ,EAAA;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,2BAAA,kBAAA,IAACC,2BACC,UAACD,2BAAA,kBAAA,IAAAE,OAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;;"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
3
  const React = require("react");
4
- const aggregator = require("./aggregator-BpfMBUD1.cjs");
5
- const css = require("./css-Pf9qxhQ4.cjs");
4
+ const aggregator = require("./aggregator-Bh2Kyzkg.cjs");
5
+ const css = require("./css-Ci8WUD5E.cjs");
6
6
  const reactDom = require("react-dom");
7
- const Center = require("./Center-5NJ61qfA.cjs");
7
+ const Center = require("./Center-Cc_rR5pQ.cjs");
8
8
  const zod = require("zod");
9
- const color$1 = require("./color-BVVyrgRF.cjs");
9
+ const color$1 = require("./color-DBNbbjJy.cjs");
10
10
  function _interopNamespaceDefault(e2) {
11
11
  const n3 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
12
12
  if (e2) {
@@ -11444,7 +11444,7 @@ const useContext$3 = () => React.useContext(Context$8);
11444
11444
  const ZERO_REF_STATE = {
11445
11445
  next: [],
11446
11446
  prev: [],
11447
- last: new aggregator.w(0)
11447
+ last: new aggregator.m(0)
11448
11448
  };
11449
11449
  const EXCLUDE_TRIGGERS = ["CapsLock"];
11450
11450
  const shouldNotTriggerOnKeyDown = (key, e2) => {
@@ -11482,12 +11482,12 @@ const Provider$4 = ({
11482
11482
  const next = [...prev.next, key];
11483
11483
  if (prev.next.includes(key))
11484
11484
  return prev;
11485
- if (prev.prev.includes(key) && aggregator.w.since(prev.last).valueOf() < aggregator.y.milliseconds(300).valueOf())
11485
+ if (prev.prev.includes(key) && aggregator.m.since(prev.last).valueOf() < aggregator.w.milliseconds(300).valueOf())
11486
11486
  next.push(key);
11487
11487
  const nextState = {
11488
11488
  next,
11489
11489
  prev: prev.next,
11490
- last: new aggregator.w()
11490
+ last: new aggregator.m()
11491
11491
  };
11492
11492
  if (shouldPreventDefault(next, preventDefaultOn))
11493
11493
  e2.preventDefault();
@@ -11687,7 +11687,7 @@ const CoreDateTime = ({
11687
11687
  ...props
11688
11688
  }, ref) => (
11689
11689
  // @ts-expect-error
11690
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Text$2, { ref, ...props, children: new aggregator.w(children, suppliedTZ).fString(format2, displayTZ) })
11690
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Text$2, { ref, ...props, children: new aggregator.m(children, suppliedTZ).fString(format2, displayTZ) })
11691
11691
  );
11692
11692
  const DateTime = React.forwardRef(CoreDateTime);
11693
11693
  const CoreLink = ({ href, download, target, rel, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
@@ -12972,26 +12972,26 @@ const Text$1 = React.forwardRef(
12972
12972
  );
12973
12973
  Text$1.displayName = "Input";
12974
12974
  const DRAG_SCALE$1 = {
12975
- x: Number(aggregator.w.HOUR.valueOf()),
12976
- y: Number(aggregator.w.days(0.75).valueOf())
12975
+ x: Number(aggregator.m.HOUR.valueOf()),
12976
+ y: Number(aggregator.m.days(0.75).valueOf())
12977
12977
  };
12978
12978
  const useDate = ({ value, onChange }) => {
12979
- const ts = new aggregator.w(value, "UTC");
12979
+ const ts = new aggregator.m(value, "UTC");
12980
12980
  React.useLayoutEffect(() => {
12981
- const local = ts.sub(aggregator.w.utcOffset);
12982
- if (local.remainder(aggregator.w.DAY).isZero)
12981
+ const local = ts.sub(aggregator.m.utcOffset);
12982
+ if (local.remainder(aggregator.m.DAY).isZero)
12983
12983
  return;
12984
- const tsV = local.sub(local.remainder(aggregator.w.DAY));
12985
- onChange(Number(new aggregator.w(tsV, "local").valueOf()));
12984
+ const tsV = local.sub(local.remainder(aggregator.m.DAY));
12985
+ onChange(Number(new aggregator.m(tsV, "local").valueOf()));
12986
12986
  }, [value]);
12987
12987
  const handleChange = (value2) => {
12988
12988
  let ts2;
12989
12989
  if (typeof value2 === "number")
12990
- ts2 = new aggregator.w(value2, "UTC");
12990
+ ts2 = new aggregator.m(value2, "UTC");
12991
12991
  else if (value2.length === 0)
12992
12992
  return;
12993
12993
  else
12994
- ts2 = new aggregator.w(value2, "local");
12994
+ ts2 = new aggregator.m(value2, "local");
12995
12995
  onChange(Number(ts2.valueOf()));
12996
12996
  };
12997
12997
  const inputValue = ts.fString("ISODate", "local");
@@ -56891,7 +56891,7 @@ const Numeric = React.forwardRef(
56891
56891
  showDragHandle = true,
56892
56892
  dragScale,
56893
56893
  selectOnFocus = true,
56894
- bounds: propsBounds = css.L.INFINITE,
56894
+ bounds: propsBounds = css.C.INFINITE,
56895
56895
  resetValue,
56896
56896
  style,
56897
56897
  variant = "outlined",
@@ -56918,7 +56918,7 @@ const Numeric = React.forwardRef(
56918
56918
  ok2 = false;
56919
56919
  }
56920
56920
  if (ok2)
56921
- onChange == null ? void 0 : onChange(css.L.clamp(propsBounds, v));
56921
+ onChange == null ? void 0 : onChange(css.C.clamp(propsBounds, v));
56922
56922
  else
56923
56923
  setInternalValue(valueRef.current.toString());
56924
56924
  }, [onChange, setInternalValue]);
@@ -56942,21 +56942,21 @@ const Numeric = React.forwardRef(
56942
56942
  const onDragChange = React.useCallback(
56943
56943
  (value2) => {
56944
56944
  setIsValueValid(false);
56945
- setInternalValue(Math.round(css.L.clamp(propsBounds, value2)).toString());
56945
+ setInternalValue(Math.round(css.C.clamp(propsBounds, value2)).toString());
56946
56946
  },
56947
56947
  [setInternalValue, setIsValueValid]
56948
56948
  );
56949
56949
  const onDragEnd = React.useCallback(
56950
56950
  (value2) => {
56951
56951
  setIsValueValid(true);
56952
- onChange == null ? void 0 : onChange(css.L.clamp(propsBounds, Math.round(value2)));
56952
+ onChange == null ? void 0 : onChange(css.C.clamp(propsBounds, Math.round(value2)));
56953
56953
  },
56954
56954
  [onChange, setIsValueValid]
56955
56955
  );
56956
- if (dragScale == null && css.L.isFinite(propsBounds)) {
56956
+ if (dragScale == null && css.C.isFinite(propsBounds)) {
56957
56957
  dragScale = {
56958
- x: css.L.span(propsBounds) * 0.01,
56959
- y: css.L.span(propsBounds) * 0.02
56958
+ x: css.C.span(propsBounds) * 0.01,
56959
+ y: css.C.span(propsBounds) * 0.02
56960
56960
  };
56961
56961
  }
56962
56962
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
@@ -57016,27 +57016,27 @@ const Switch$1 = React.forwardRef(
57016
57016
  ] }) })
57017
57017
  );
57018
57018
  Switch$1.displayName = "InputSwitch";
57019
- const combineDateAndTimeValue = (date, time) => new aggregator.w(date).add(time).sub(aggregator.w.utcOffset);
57019
+ const combineDateAndTimeValue = (date, time) => new aggregator.m(date).add(time).sub(aggregator.m.utcOffset);
57020
57020
  const DRAG_SCALE = {
57021
- x: Number(aggregator.y.SECOND.valueOf()) * 0.5,
57022
- y: Number(aggregator.y.MINUTE.valueOf())
57021
+ x: Number(aggregator.w.SECOND.valueOf()) * 0.5,
57022
+ y: Number(aggregator.w.MINUTE.valueOf())
57023
57023
  };
57024
57024
  const useTime = ({ value, onChange, tzInfo }) => {
57025
- const ts = new aggregator.w(value, "UTC");
57026
- const local = ts.sub(aggregator.w.utcOffset);
57027
- if (local.after(aggregator.w.DAY)) {
57028
- const tsV = local.remainder(aggregator.w.DAY);
57029
- onChange(Number(new aggregator.w(tsV, "local").valueOf()));
57025
+ const ts = new aggregator.m(value, "UTC");
57026
+ const local = ts.sub(aggregator.m.utcOffset);
57027
+ if (local.after(aggregator.m.DAY)) {
57028
+ const tsV = local.remainder(aggregator.m.DAY);
57029
+ onChange(Number(new aggregator.m(tsV, "local").valueOf()));
57030
57030
  }
57031
57031
  const handleChange = React.useCallback(
57032
57032
  (value2) => {
57033
57033
  let ts2;
57034
57034
  if (typeof value2 === "number")
57035
- ts2 = new aggregator.w(value2, "UTC");
57035
+ ts2 = new aggregator.m(value2, "UTC");
57036
57036
  else if (value2.length === 0)
57037
57037
  return;
57038
57038
  else
57039
- ts2 = new aggregator.w(value2, "local");
57039
+ ts2 = new aggregator.m(value2, "local");
57040
57040
  onChange(Number(ts2.valueOf()));
57041
57041
  },
57042
57042
  [onChange, tzInfo]
@@ -58285,7 +58285,7 @@ const scrollToRelevantChild = (hover3, prevHover, ref) => {
58285
58285
  const dirMultiplier = hover3 > prevHover ? 1 : -1;
58286
58286
  let scrollTo = hover3;
58287
58287
  const idealHover = hover3 + dirMultiplier * 2;
58288
- if (css.L.contains({ lower: 0, upper: ref.children.length }, idealHover))
58288
+ if (css.C.contains({ lower: 0, upper: ref.children.length }, idealHover))
58289
58289
  scrollTo = hover3 + dirMultiplier * 2;
58290
58290
  else
58291
58291
  scrollTo = hover3;
@@ -58463,7 +58463,7 @@ const Aggregator = wrap$1(
58463
58463
  }
58464
58464
  const handleAdd = React.useCallback(
58465
58465
  (status2) => {
58466
- const t = aggregator.w.now();
58466
+ const t = aggregator.m.now();
58467
58467
  const spec = { time: t, key: t.toString(), ...status2 };
58468
58468
  setState((state) => ({ ...state, statuses: [spec, ...state.statuses] }));
58469
58469
  },
@@ -58477,12 +58477,12 @@ const Aggregator = wrap$1(
58477
58477
  }
58478
58478
  );
58479
58479
  const useAggregator = () => useContext$1(Context$2).add;
58480
- const DEFAULT_EXPIRATION = aggregator.y.seconds(5);
58480
+ const DEFAULT_EXPIRATION = aggregator.w.seconds(5);
58481
58481
  const useNotifications = (props = {}) => {
58482
58482
  const { statuses } = useContext$1(Context$2);
58483
58483
  const { expiration = DEFAULT_EXPIRATION } = props;
58484
58484
  const statusesRef = useSyncedRef(statuses);
58485
- const [threshold, setThreshold] = React.useState(() => aggregator.w.now());
58485
+ const [threshold, setThreshold] = React.useState(() => aggregator.m.now());
58486
58486
  const [silenced, setSilenced] = React.useState([]);
58487
58487
  const filtered = statuses.filter((status2) => {
58488
58488
  const new_ = status2.time.after(threshold);
@@ -58972,18 +58972,18 @@ const color = (variant, disabled, color2, shade) => {
58972
58972
  return "var(--pluto-text-color)";
58973
58973
  };
58974
58974
  const ZERO_TOOLTIP_CONFIG = {
58975
- delay: aggregator.y.milliseconds(750),
58975
+ delay: aggregator.w.milliseconds(750),
58976
58976
  startAccelerating: () => {
58977
58977
  }
58978
58978
  };
58979
58979
  const Context = React.createContext(ZERO_TOOLTIP_CONFIG);
58980
58980
  const useConfig = () => React.useContext(Context);
58981
58981
  const Config = ({
58982
- delay = aggregator.y.milliseconds(700),
58982
+ delay = aggregator.w.milliseconds(700),
58983
58983
  accelerate = true,
58984
58984
  // Disabling this for now because it's annoying.
58985
- acceleratedDelay = aggregator.y.minutes(60),
58986
- accelerationDelay = aggregator.y.seconds(0),
58985
+ acceleratedDelay = aggregator.w.minutes(60),
58986
+ accelerationDelay = aggregator.w.seconds(0),
58987
58987
  children
58988
58988
  }) => {
58989
58989
  const [accelerating, setAccelerating] = React.useState(false);
@@ -58994,7 +58994,7 @@ const Config = ({
58994
58994
  setAccelerating(true);
58995
58995
  timeoutRef.current = setTimeout(() => {
58996
58996
  setAccelerating(false);
58997
- }, new aggregator.y(accelerationDelay).milliseconds);
58997
+ }, new aggregator.w(accelerationDelay).milliseconds);
58998
58998
  }, [accelerating, accelerationDelay]);
58999
58999
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
59000
59000
  Context.Provider,
@@ -59078,7 +59078,7 @@ const Dialog = ({
59078
59078
  hide = false
59079
59079
  }) => {
59080
59080
  const { startAccelerating, delay: configDelay } = useConfig();
59081
- const parsedDelay = new aggregator.y(delay ?? configDelay);
59081
+ const parsedDelay = new aggregator.w(delay ?? configDelay);
59082
59082
  const [state, setState] = React.useState(null);
59083
59083
  const timeoutRef = React.useRef(null);
59084
59084
  const id = React.useId();
@@ -59235,7 +59235,7 @@ const Button = wrap(
59235
59235
  const handleClick = (e2) => {
59236
59236
  if (disabled)
59237
59237
  return;
59238
- const span = delay instanceof aggregator.y ? delay : aggregator.y.milliseconds(delay);
59238
+ const span = delay instanceof aggregator.w ? delay : aggregator.w.milliseconds(delay);
59239
59239
  if (span.isZero)
59240
59240
  return onClick == null ? void 0 : onClick(e2);
59241
59241
  };
@@ -59477,4 +59477,4 @@ exports.useUniqueKey = useUniqueKey;
59477
59477
  exports.variantColors = variantColors;
59478
59478
  exports.wrap = wrap;
59479
59479
  exports.wrap$1 = wrap$1;
59480
- //# sourceMappingURL=Toggle-C6Z8WPT3.cjs.map
59480
+ //# sourceMappingURL=Toggle-D3iCEbO1.cjs.map