@synnaxlabs/pluto 0.52.7 → 0.53.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 (99) hide show
  1. package/dist/{Animated-C4AcIYpH.cjs → Animated-B_N04fe6.cjs} +1 -1
  2. package/dist/{Animated-BhCfNN8N.cjs → Animated-BsbNkFLg.cjs} +1 -1
  3. package/dist/{Animated-C1yZ_uus.js → Animated-CLo1CLgn.js} +2 -2
  4. package/dist/{Animated-BU-7FzeV.js → Animated-CO--9HPM.js} +3 -3
  5. package/dist/{Copy-6Mur4EW2.cjs → Copy-BgRUUzWz.cjs} +1 -1
  6. package/dist/{Copy-eucLPEWo.js → Copy-COWBkO_v.js} +3 -3
  7. package/dist/{Dialog-dxzsEWgY.js → Dialog-Bj7FiHJD.js} +1 -1
  8. package/dist/{Dialog-DKMROHkj.cjs → Dialog-DBm6Fap1.cjs} +1 -1
  9. package/dist/{Haul-Dv-7aC_g.js → Haul-CnZK3e-n.js} +1 -1
  10. package/dist/{Haul-BShXYNxx.cjs → Haul-DlwI4b25.cjs} +1 -1
  11. package/dist/{Items-806FU8Ig.cjs → Items-CXBBG9Ip.cjs} +1 -1
  12. package/dist/{Items-CPIJP3y9.js → Items-DQba1BFQ.js} +4 -4
  13. package/dist/{Menu-ZISpSd-o.cjs → Menu-BZ6ZGIv3.cjs} +1 -1
  14. package/dist/{Menu-C2vz25UP.js → Menu-CniMpPmC.js} +4 -4
  15. package/dist/{Provider-B1JpVCIg.cjs → Provider-cSwm-2e_.cjs} +1 -1
  16. package/dist/{Provider-CfgP1iWx.js → Provider-jFWpR0CX.js} +1 -1
  17. package/dist/{Tags-BE6wPgNv.cjs → Tags-CxzMdPpm.cjs} +1 -1
  18. package/dist/{Tags-BTbNRoip.js → Tags-DvfGhiWv.js} +7 -7
  19. package/dist/{Text-BIGgPTpY.js → Text-2MISZsc5.js} +329 -331
  20. package/dist/{Text-_KoMj9Wf.cjs → Text-XHBXXDRS.cjs} +1 -1
  21. package/dist/button.cjs +1 -1
  22. package/dist/button.js +1 -1
  23. package/dist/color.cjs +1 -1
  24. package/dist/color.js +1 -1
  25. package/dist/dialog.cjs +1 -1
  26. package/dist/dialog.js +1 -1
  27. package/dist/ether.js +2 -2
  28. package/dist/{external-VtOg79_6.cjs → external-4jf1Bv96.cjs} +1 -1
  29. package/dist/{external-DUYMFee8.cjs → external-B2YeNEwd.cjs} +1 -1
  30. package/dist/{external-CfHgwpZG.js → external-B9PnwQOL.js} +1 -1
  31. package/dist/{external-Dn55rCp_.js → external-BBbkXXN0.js} +4 -4
  32. package/dist/{external-9dcu01v6.cjs → external-BByOkVID.cjs} +1 -1
  33. package/dist/{external-Cd6J4yXU.js → external-BrEnYrZV.js} +1 -1
  34. package/dist/{external-CROdzUNR.cjs → external-C65vBow6.cjs} +1 -1
  35. package/dist/{external-ByPmlfc-.cjs → external-CCcIJ20u.cjs} +1 -1
  36. package/dist/{external-CsOIr_FG.js → external-CF4uh-dm.js} +8 -8
  37. package/dist/{external-Bzko45Io.cjs → external-Cn6EfkLd.cjs} +1 -1
  38. package/dist/{external-DOHVmFq6.cjs → external-CovFw1fv.cjs} +1 -1
  39. package/dist/{external-CdFqxvDi.js → external-D2Zb9O5J.js} +2 -2
  40. package/dist/{external-Ciq_Ux5w.js → external-D6aLGjMg.js} +7 -7
  41. package/dist/{external-DCvZU09g.js → external-DDvmnE2k.js} +9 -9
  42. package/dist/{external-RARODBsH.cjs → external-DTi9a-iK.cjs} +1 -1
  43. package/dist/{external-auCyrXJv.js → external-DYP1_xpd.js} +2 -2
  44. package/dist/{external-BnrrTvLw.js → external-DxsuBuKe.js} +5 -5
  45. package/dist/{external-Dvn_KRPF.js → external-DysGdnTb.js} +3 -3
  46. package/dist/{external-DCkEHk2F.js → external-N2L8ffzi.js} +3 -3
  47. package/dist/{external-qZkew-g7.cjs → external-_Ht_yCRf.cjs} +1 -1
  48. package/dist/{external-BY9Nw2gP.cjs → external-igNfmRSB.cjs} +1 -1
  49. package/dist/{external-C0FbiHkb.cjs → external-uUEGzmui.cjs} +1 -1
  50. package/dist/header.cjs +1 -1
  51. package/dist/header.js +1 -1
  52. package/dist/{hooks-DmaLjPZJ.cjs → hooks-Co6IVYNw.cjs} +1 -1
  53. package/dist/{hooks-DPk_YYCv.js → hooks-QNj6PdUo.js} +1 -1
  54. package/dist/index.cjs +9 -9
  55. package/dist/index.js +7205 -7219
  56. package/dist/input.cjs +1 -1
  57. package/dist/input.js +1 -1
  58. package/dist/list.cjs +1 -1
  59. package/dist/list.js +1 -1
  60. package/dist/menu.cjs +1 -1
  61. package/dist/menu.js +1 -1
  62. package/dist/src/arc/queries.d.ts +1 -10
  63. package/dist/src/arc/queries.d.ts.map +1 -1
  64. package/dist/src/channel/Select.d.ts +0 -2
  65. package/dist/src/channel/Select.d.ts.map +1 -1
  66. package/dist/src/channel/external.d.ts +1 -0
  67. package/dist/src/channel/external.d.ts.map +1 -1
  68. package/dist/src/channel/queries.d.ts +1 -3
  69. package/dist/src/channel/queries.d.ts.map +1 -1
  70. package/dist/src/channel/resolveIcon.d.ts +4 -0
  71. package/dist/src/channel/resolveIcon.d.ts.map +1 -0
  72. package/dist/src/channel/resolveIcon.spec.d.ts +2 -0
  73. package/dist/src/channel/resolveIcon.spec.d.ts.map +1 -0
  74. package/dist/src/device/Select.d.ts.map +1 -1
  75. package/dist/src/header/Actions.d.ts +3 -3
  76. package/dist/src/icon/registry.d.ts +0 -1
  77. package/dist/src/icon/registry.d.ts.map +1 -1
  78. package/dist/src/task/queries.d.ts +18 -17
  79. package/dist/src/task/queries.d.ts.map +1 -1
  80. package/dist/src/telem/SelectDataType.d.ts +3 -1
  81. package/dist/src/telem/SelectDataType.d.ts.map +1 -1
  82. package/dist/src/telem/SelectDataType.spec.d.ts +2 -0
  83. package/dist/src/telem/SelectDataType.spec.d.ts.map +1 -0
  84. package/dist/src/telem/external.d.ts +1 -0
  85. package/dist/src/telem/external.d.ts.map +1 -1
  86. package/dist/src/telem/resolveDataTypeIcon.d.ts +4 -0
  87. package/dist/src/telem/resolveDataTypeIcon.d.ts.map +1 -0
  88. package/dist/src/telem/resolveDataTypeIcon.spec.d.ts +2 -0
  89. package/dist/src/telem/resolveDataTypeIcon.spec.d.ts.map +1 -0
  90. package/dist/tabs.cjs +1 -1
  91. package/dist/tabs.js +1 -1
  92. package/dist/theming.cjs +1 -1
  93. package/dist/theming.js +2 -2
  94. package/dist/tree.cjs +1 -1
  95. package/dist/tree.js +1 -1
  96. package/dist/triggers.cjs +1 -1
  97. package/dist/triggers.js +1 -1
  98. package/dist/{value-CmePQIAC.js → value-D0vfKEY3.js} +4 -4
  99. package/package.json +9 -9
package/dist/button.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-CROdzUNR.cjs");exports.Button=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-C65vBow6.cjs");exports.Button=e.external;
package/dist/button.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-Cd6J4yXU.js";
1
+ import { e } from "./external-BrEnYrZV.js";
2
2
  export {
3
3
  e as Button
4
4
  };
package/dist/color.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BY9Nw2gP.cjs");exports.Color=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-igNfmRSB.cjs");exports.Color=e.external;
package/dist/color.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-Ciq_Ux5w.js";
1
+ import { e } from "./external-D6aLGjMg.js";
2
2
  export {
3
3
  e as Color
4
4
  };
package/dist/dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Bzko45Io.cjs");exports.Dialog=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Cn6EfkLd.cjs");exports.Dialog=e.external;
package/dist/dialog.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-Dn55rCp_.js";
1
+ import { e } from "./external-BBbkXXN0.js";
2
2
  export {
3
3
  e as Dialog
4
4
  };
package/dist/ether.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { P as R, R as s, S, a as n, b as E, f as T, t as i, u as l, c as _, r as I } from "./provider-Bt-E2O6g.js";
2
2
  import { d as Xe } from "./provider-Bt-E2O6g.js";
3
- import { c as G, r as Y, u as m, a as $, L as O, R as a, X as p, Y as u, l as f, b as g, x as c, y as d, d as L, e as F, f as b, g as N, h as X, i as x, j as P, k as y, m as U, n as C, o as A, p as j, q as v, s as h, t as M, v as K, w as Z, z as w, A as z, B as H, C as q, F as k, D, E as W, G as B, H as J, I as Q, J as V, K as ee, M as se, N as ae } from "./value-CmePQIAC.js";
4
- import { O as Pe, P as ye, Q as Ue, S as Ce, T as Ae, U as je, V as ve, W as he } from "./value-CmePQIAC.js";
3
+ import { c as G, r as Y, u as m, a as $, L as O, R as a, X as p, Y as u, l as f, b as g, x as c, y as d, d as L, e as F, f as b, g as N, h as X, i as x, j as P, k as y, m as U, n as C, o as A, p as j, q as v, s as h, t as M, v as K, w as Z, z as w, A as z, B as H, C as q, F as k, D, E as W, G as B, H as J, I as Q, J as V, K as ee, M as se, N as ae } from "./value-D0vfKEY3.js";
4
+ import { O as Pe, P as ye, Q as Ue, S as Ce, T as Ae, U as je, V as ve, W as he } from "./value-D0vfKEY3.js";
5
5
  import { Instrumentation as te, Logger as oe, logThresholdFilter as re } from "@synnaxlabs/alamos";
6
6
  import { RoutedWorker as Re } from "@synnaxlabs/x";
7
7
  import { C as Se, G as ne, L as Ee, R as Te, a as ie } from "./eraser-BShvqlBE.js";
@@ -1 +1 @@
1
- "use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs"),u=require("./Box-CNUz5BsV.cjs"),x=require("./Copy-6Mur4EW2.cjs"),S=require("react"),d=require("./Text-_KoMj9Wf.cjs"),m=require("./Editable-HUPqTaui.cjs"),p=require("./types-DI2vtOGs.cjs"),C=({children:r=[],...t})=>o.jsxRuntimeExports.jsx(u.Box$1,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...t,children:r}),[j,l]=d.create({defaultValue:{divided:!1,level:"h1"},displayName:"Header.Context"}),E=({className:r,level:t="p",divided:s=!1,bordered:n=!0,padded:a=!1,...c})=>{const i=S.useMemo(()=>({level:t,divided:s}),[t,s]);return o.jsxRuntimeExports.jsx(j,{value:i,children:o.jsxRuntimeExports.jsx(u.Box$1,{el:"header",x:!0,align:"center",justify:"between",className:e.CSS(e.CSS.B("header"),n&&e.CSS.bordered("bottom"),s&&e.CSS.BM("header","divided"),a&&e.CSS.BM("header","padded"),r),...c})})},B=({children:r="",className:t,onClick:s,...n})=>{const{level:a}=l();return o.jsxRuntimeExports.jsx(x.Button,{variant:"text",size:p.LEVEL_COMPONENT_SIZES[a],onClick:s,className:e.CSS(e.CSS.B("header-button-title"),t),sharp:!0,...n,children:r})},h=({className:r,level:t,...s})=>{const{level:n}=l();return o.jsxRuntimeExports.jsx(m.Text,{className:e.CSS(e.CSS.BE("header","text"),r),level:t??n,gap:1.5,...s})},q=Object.freeze(Object.defineProperty({__proto__:null,Actions:C,ButtonTitle:B,Header:E,Title:h,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.external=q;
1
+ "use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs"),u=require("./Box-CNUz5BsV.cjs"),x=require("./Copy-BgRUUzWz.cjs"),S=require("react"),d=require("./Text-XHBXXDRS.cjs"),m=require("./Editable-HUPqTaui.cjs"),p=require("./types-DI2vtOGs.cjs"),C=({children:r=[],...t})=>o.jsxRuntimeExports.jsx(u.Box$1,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...t,children:r}),[j,l]=d.create({defaultValue:{divided:!1,level:"h1"},displayName:"Header.Context"}),E=({className:r,level:t="p",divided:s=!1,bordered:n=!0,padded:a=!1,...c})=>{const i=S.useMemo(()=>({level:t,divided:s}),[t,s]);return o.jsxRuntimeExports.jsx(j,{value:i,children:o.jsxRuntimeExports.jsx(u.Box$1,{el:"header",x:!0,align:"center",justify:"between",className:e.CSS(e.CSS.B("header"),n&&e.CSS.bordered("bottom"),s&&e.CSS.BM("header","divided"),a&&e.CSS.BM("header","padded"),r),...c})})},B=({children:r="",className:t,onClick:s,...n})=>{const{level:a}=l();return o.jsxRuntimeExports.jsx(x.Button,{variant:"text",size:p.LEVEL_COMPONENT_SIZES[a],onClick:s,className:e.CSS(e.CSS.B("header-button-title"),t),sharp:!0,...n,children:r})},h=({className:r,level:t,...s})=>{const{level:n}=l();return o.jsxRuntimeExports.jsx(m.Text,{className:e.CSS(e.CSS.BE("header","text"),r),level:t??n,gap:1.5,...s})},q=Object.freeze(Object.defineProperty({__proto__:null,Actions:C,ButtonTitle:B,Header:E,Title:h,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.external=q;
@@ -1 +1 @@
1
- "use strict";const l=require("./Items-806FU8Ig.cjs"),n=require("react"),h=require("@synnaxlabs/x"),y=require("./Editable-HUPqTaui.cjs");require("./Text-_KoMj9Wf.cjs");require("./jsx-runtime-nZSsnGb7.cjs");require("./types-DI2vtOGs.cjs");require("./css-CloSmhZB.cjs");require("./Box-CNUz5BsV.cjs");require("./Provider-B1JpVCIg.cjs");const M=require("./useStaticData-BTwIe0Il.cjs"),C=10,d=({offset:e,searchTerm:t="",...s},c=C)=>({...s,offset:(e??-c)+c,limit:c,searchTerm:t}),g=(e,t,s=C)=>({...e,searchTerm:t,offset:0,limit:s}),q=({retrieve:e,pageSize:t=C})=>{const s=n.useCallback(()=>{e(o=>d(o,t),{mode:"append"})},[e,t]),c=n.useCallback(o=>e(a=>g(a,o,t)),[e,t]);return n.useMemo(()=>({fetchMore:s,search:c}),[s,c])},D=({first:e,second:t})=>{const s=n.useMemo(()=>[...e.data,...t.data],[e.data,t.data]),c=n.useCallback(a=>{if(Array.isArray(a)){const m=e.getItem?.(a)??[],i=t.getItem?.(a)??[];return[...m,...i]}return e.getItem?.(a)??t.getItem?.(a)},[e.getItem,t.getItem]),o=n.useCallback((a,m)=>{const i=e.subscribe?.(a,m),f=t.subscribe?.(a,m);return()=>{i?.(),f?.()}},[e.subscribe,t.subscribe]);return n.useMemo(()=>({data:s,getItem:c,subscribe:o}),[s,c,o])},A=e=>{const t=n.useCallback((s=>{if(Array.isArray(s)){const o=new Set(s);return e.filter(a=>o.has(a)).map(a=>({key:a}))}const c=e.find(o=>o===s);return c?{key:c}:void 0}),[e]);return n.useMemo(()=>({data:e,getItem:t}),[e,t])},E=({initialData:e}={})=>{const t=y.useInitializerRef(()=>{const r=new Map;return e==null||e.forEach(u=>r.set(u.key,u)),r}),s=y.useInitializerRef(()=>new Map),c=n.useCallback(r=>{const u=new Set(r);s.current.forEach((I,b)=>{u.has(I)&&b()})},[]),o=n.useCallback(r=>{const u=h.array.toArray(r),I=u.map(b=>b.key);u.forEach(b=>t.current.set(b.key,b)),c(I)},[]),a=n.useCallback(r=>{const u=h.array.toArray(r);u.forEach(I=>t.current.delete(I)),c(u)},[]),m=n.useCallback((r,u)=>u==null?()=>{}:(s.current.set(r,u),()=>{s.current.delete(r)}),[s]),i=n.useCallback((r=>{if(r!=null)return Array.isArray(r)?r.map(u=>t.current.get(u)).filter(u=>u!=null):t.current.get(r)}),[]),f=n.useCallback(r=>t.current.has(r),[]);return n.useMemo(()=>({setItem:o,deleteItem:a,subscribe:m,getItem:i,hasItem:f}),[o,a,m,i,f])},k=Object.freeze(Object.defineProperty({__proto__:null,BaseFrame:l.BaseFrame,Frame:l.Frame,Item:l.Item,Items:l.Items,createGetItem:l.createGetItem,page:d,search:g,useCombinedData:D,useData:l.useData,useItem:l.useItem,useKeysData:A,useMapData:E,usePager:q,useScroller:l.useScroller,useStaticData:M.useStaticData,useUtilContext:l.useUtilContext},Symbol.toStringTag,{value:"Module"}));exports.external=k;exports.useKeysData=A;exports.usePager=q;
1
+ "use strict";const l=require("./Items-CXBBG9Ip.cjs"),n=require("react"),h=require("@synnaxlabs/x"),y=require("./Editable-HUPqTaui.cjs");require("./Text-XHBXXDRS.cjs");require("./jsx-runtime-nZSsnGb7.cjs");require("./types-DI2vtOGs.cjs");require("./css-CloSmhZB.cjs");require("./Box-CNUz5BsV.cjs");require("./Provider-cSwm-2e_.cjs");const M=require("./useStaticData-BTwIe0Il.cjs"),C=10,d=({offset:e,searchTerm:t="",...s},c=C)=>({...s,offset:(e??-c)+c,limit:c,searchTerm:t}),g=(e,t,s=C)=>({...e,searchTerm:t,offset:0,limit:s}),q=({retrieve:e,pageSize:t=C})=>{const s=n.useCallback(()=>{e(o=>d(o,t),{mode:"append"})},[e,t]),c=n.useCallback(o=>e(a=>g(a,o,t)),[e,t]);return n.useMemo(()=>({fetchMore:s,search:c}),[s,c])},D=({first:e,second:t})=>{const s=n.useMemo(()=>[...e.data,...t.data],[e.data,t.data]),c=n.useCallback(a=>{if(Array.isArray(a)){const m=e.getItem?.(a)??[],i=t.getItem?.(a)??[];return[...m,...i]}return e.getItem?.(a)??t.getItem?.(a)},[e.getItem,t.getItem]),o=n.useCallback((a,m)=>{const i=e.subscribe?.(a,m),f=t.subscribe?.(a,m);return()=>{i?.(),f?.()}},[e.subscribe,t.subscribe]);return n.useMemo(()=>({data:s,getItem:c,subscribe:o}),[s,c,o])},A=e=>{const t=n.useCallback((s=>{if(Array.isArray(s)){const o=new Set(s);return e.filter(a=>o.has(a)).map(a=>({key:a}))}const c=e.find(o=>o===s);return c?{key:c}:void 0}),[e]);return n.useMemo(()=>({data:e,getItem:t}),[e,t])},E=({initialData:e}={})=>{const t=y.useInitializerRef(()=>{const r=new Map;return e==null||e.forEach(u=>r.set(u.key,u)),r}),s=y.useInitializerRef(()=>new Map),c=n.useCallback(r=>{const u=new Set(r);s.current.forEach((I,b)=>{u.has(I)&&b()})},[]),o=n.useCallback(r=>{const u=h.array.toArray(r),I=u.map(b=>b.key);u.forEach(b=>t.current.set(b.key,b)),c(I)},[]),a=n.useCallback(r=>{const u=h.array.toArray(r);u.forEach(I=>t.current.delete(I)),c(u)},[]),m=n.useCallback((r,u)=>u==null?()=>{}:(s.current.set(r,u),()=>{s.current.delete(r)}),[s]),i=n.useCallback((r=>{if(r!=null)return Array.isArray(r)?r.map(u=>t.current.get(u)).filter(u=>u!=null):t.current.get(r)}),[]),f=n.useCallback(r=>t.current.has(r),[]);return n.useMemo(()=>({setItem:o,deleteItem:a,subscribe:m,getItem:i,hasItem:f}),[o,a,m,i,f])},k=Object.freeze(Object.defineProperty({__proto__:null,BaseFrame:l.BaseFrame,Frame:l.Frame,Item:l.Item,Items:l.Items,createGetItem:l.createGetItem,page:d,search:g,useCombinedData:D,useData:l.useData,useItem:l.useItem,useKeysData:A,useMapData:E,usePager:q,useScroller:l.useScroller,useStaticData:M.useStaticData,useUtilContext:l.useUtilContext},Symbol.toStringTag,{value:"Module"}));exports.external=k;exports.useKeysData=A;exports.usePager=q;
@@ -1,5 +1,5 @@
1
1
  import { S as a, a as r, b as i, t as n } from "./provider-Bt-E2O6g.js";
2
- import { u as o, P as S, t as p, a as u, b } from "./Provider-CfgP1iWx.js";
2
+ import { u as o, P as S, t as p, a as u, b } from "./Provider-jFWpR0CX.js";
3
3
  import { f as m } from "./fontString-76R2eWDd.js";
4
4
  const g = (t) => {
5
5
  const { theme: e } = o(), s = e.typography[t];
@@ -1,8 +1,8 @@
1
- import { D as d } from "./Dialog-dxzsEWgY.js";
2
- import { u as s, F as b, p as x, a as g, b as j } from "./Animated-BU-7FzeV.js";
1
+ import { D as d } from "./Dialog-Bj7FiHJD.js";
2
+ import { u as s, F as b, p as x, a as g, b as j } from "./Animated-CO--9HPM.js";
3
3
  import { j as a } from "./jsx-runtime-tc70JA_2.js";
4
- import { B as v } from "./Copy-eucLPEWo.js";
5
- import { A as C } from "./Animated-C1yZ_uus.js";
4
+ import { B as v } from "./Copy-COWBkO_v.js";
5
+ import { A as C } from "./Animated-CLo1CLgn.js";
6
6
  import "@synnaxlabs/x";
7
7
  import { C as r } from "./css-D90kZTM8.js";
8
8
  const S = ({
@@ -1 +1 @@
1
- "use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs"),v=require("@synnaxlabs/x"),C=require("react"),L=require("./Copy-6Mur4EW2.cjs"),l=require("./css-CloSmhZB.cjs"),_=require("./Box-CNUz5BsV.cjs"),R=require("./Text-_KoMj9Wf.cjs"),w=require("./Menu-ZISpSd-o.cjs");;/* empty css */const $=require("./Animated-C4AcIYpH.cjs"),P=require("./Editable-HUPqTaui.cjs"),z=require("./types-DI2vtOGs.cjs");require("./Provider-B1JpVCIg.cjs");const p=require("zod"),[W,M]=R.create({defaultValue:{tabs:[]},displayName:"Tabs.Context"}),I=W,q="tabs-selector",V=({className:s,altColor:t=!1,size:e="medium",direction:r="x",contextMenu:n,addTooltip:a,actions:c,...x})=>{const{tabs:d,selected:f,onSelect:T,onClose:E,closable:h,onDragEnd:B,onDragStart:N,onDrop:j,onRename:b,onCreate:m}=M(),g=w.useContextMenu(),[O,S]=C.useState(!1);return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[n!=null&&o.jsxRuntimeExports.jsx(w.ContextMenu,{style:{height:"fit-content"},...g,menu:n}),o.jsxRuntimeExports.jsxs(_.Box$1,{className:l.CSS(l.CSS.B(q),s,g.className,O&&l.CSS.M("drag-over")),size:e,align:"center",justify:"between",empty:!0,direction:r,onContextMenu:g.open,onDrop:j,...x,children:[o.jsxRuntimeExports.jsxs(_.Box$1,{direction:r,className:l.CSS.BE(q,"tabs"),empty:!0,children:[d.map(i=>o.jsxRuntimeExports.jsx(te,{selected:f,altColor:t,onSelect:T,onClose:E,onDragStart:N,onDragEnd:B,onRename:b,closable:i.closable??h,size:e,...i},i.tabKey)),j!=null&&o.jsxRuntimeExports.jsx(_.Box$1,{onDragOver:()=>S(!0),onDragLeave:()=>S(!1),onDragEnd:()=>S(!1),onDrop:()=>S(!1),grow:!0})]}),(c!=null||m!=null)&&o.jsxRuntimeExports.jsxs(_.Box$1,{className:l.CSS.BE(q,"actions"),children:[m!=null&&o.jsxRuntimeExports.jsx(L.Button,{size:e,sharp:!0,onClick:m,tooltip:a,variant:"text",children:o.jsxRuntimeExports.jsx(R.Add,{})}),c]})]})]})},Y=({unsavedChanges:s,...t})=>{const e=o.jsxRuntimeExports.jsx(R.Close,{...t});return s?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(R.Circle,{}),e]}):e},A=l.CSS.BE("tabs-selector","btn"),K=s=>{if(!(s.target instanceof HTMLElement))return"right";const t=s.target.closest(`.${A}`);if(t==null)return"right";const e=v.box.construct(t),r=v.xy.construct(s);return v.scale.Scale.scale(v.box.left(e),v.box.right(e)).scale(0,1).pos(r.x)<.5?"left":"right"},ee=({loading:s,icon:t,level:e="p"})=>(s&&(t=o.jsxRuntimeExports.jsx(R.Loading,{})),R.resolve(t,{className:l.CSS.BE(q,"icon"),style:{color:l.CSS.colorVar(9),height:l.CSS.levelSizeVar(e),width:l.CSS.levelSizeVar(e)}})),te=({selected:s,altColor:t=!1,onSelect:e,onClose:r,tabKey:n,name:a,onDragStart:c,onDragEnd:x,onRename:d,closable:f=!0,icon:T,size:E,editable:h=!0,unsavedChanges:B=!1,loading:N=!1,onDrop:j})=>{const b=C.useCallback(u=>c?.(u,{tabKey:n,name:a}),[c,n,a]),m=C.useCallback(u=>x?.(u,{tabKey:n,name:a}),[x,n,a]),g=C.useCallback(u=>{u.preventDefault(),u.stopPropagation(),r?.(n)},[r,n]),O=C.useCallback(()=>e?.(n),[e,n]),[S,i]=C.useState(null),k=C.useCallback(u=>{i(K(u))},[i,j]),y=C.useCallback(u=>{j?.(u),i(null)},[j,i]),D=s===n,Q=z.COMPONENT_SIZE_LEVELS[E];return o.jsxRuntimeExports.jsxs(L.Button,{el:"div",size:E,id:n,variant:"text",sharp:!0,className:l.CSS($.CONTEXT_TARGET,A,D&&$.CONTEXT_SELECTED,l.CSS.selected(D),l.CSS.altColor(t),f&&r!=null&&l.CSS.M("closable"),l.CSS.editable(h&&d!=null),S!=null&&l.CSS.M("drag-over"),S!=null&&l.CSS.loc(S)),draggable:!0,justify:"center",align:"center",empty:!0,tabIndex:0,preventClick:D,onClick:O,onDragOver:k,onDrop:y,onDragLeave:()=>i(null),onDragStart:b,onDragEnd:u=>{i(null),m(u)},bordered:!1,rounded:!1,children:[o.jsxRuntimeExports.jsx(ee,{loading:N,icon:T,level:Q}),o.jsxRuntimeExports.jsx(ne,{name:a,tabKey:n,onRename:d,editable:h,level:z.COMPONENT_SIZE_LEVELS[E]}),f&&r!=null&&o.jsxRuntimeExports.jsx(L.Button,{"aria-label":"pluto-tabs__close",onClick:g,className:l.CSS.E("close"),variant:"text",sharp:!0,children:o.jsxRuntimeExports.jsx(Y,{unsavedChanges:B})})]})},ne=({onRename:s,name:t,tabKey:e,editable:r=!0,level:n})=>s==null||!r?o.jsxRuntimeExports.jsx(P.Text,{overflow:"ellipsis",level:n,children:t}):o.jsxRuntimeExports.jsx(P.Editable,{level:n,id:l.CSS.B(`tab-${e}`),onChange:a=>s?.(e,a),value:t,overflow:"ellipsis"}),Z=(s="",t=[])=>{if(t.length!==0)return t.find(e=>e.tabKey===s)!=null?s:t[t.length-1]?.tabKey},F=(s,t,e)=>{if(t=t.trim(),t.length===0)return e;const r=e.find(n=>n.tabKey===s);return r==null||r.name===t?e:e.map(n=>n.tabKey===s?{...n,name:t}:n)},X=({tabs:s,content:t,selected:e,onSelect:r})=>{const[n,a]=z.usePurePassthrough({initial:e??s[0]?.tabKey??"",value:e,onChange:r}),c=P.useSyncedRef(e??n),x=C.useCallback(d=>{a(d),c.current==null&&r?.(d)},[n,a,r]);return{tabs:s,selected:n,content:t,onSelect:x}},G=({id:s,content:t,children:e,onSelect:r,selected:n,selectedAltColor:a,closable:c,tabs:x,onClose:d,onDragStart:f,onDragEnd:T,onCreate:E,onRename:h,emptyContent:B,className:N,onDragOver:j,onDrop:b,contextMenu:m,actions:g,addTooltip:O,size:S="medium",direction:i="y",x:k,y,...D})=>o.jsxRuntimeExports.jsx(_.Box$1,{id:s,empty:!0,className:l.CSS(l.CSS.B("tabs"),N),direction:i,x:k,y,onDragOver:j,onDrop:b,...D,children:o.jsxRuntimeExports.jsxs(I,{value:{tabs:x,emptyContent:B,selected:n,closable:c,content:e??t,onSelect:r,onClose:d,onDragStart:f,onDragEnd:T,onRename:h,onCreate:E,onDrop:b},children:[o.jsxRuntimeExports.jsx(V,{size:S,direction:v.direction.swap(i),altColor:a,contextMenu:m,addTooltip:O,actions:g}),o.jsxRuntimeExports.jsx(H,{})]})}),H=()=>{const{tabs:s,selected:t,content:e,emptyContent:r,onSelect:n}=M();let a=null;const c=s.find(x=>x.tabKey===t);return t==null||c==null?a=r??null:e!=null?typeof e=="function"?a=e(c):a=e:c.content!=null&&(a=c.content),o.jsxRuntimeExports.jsx("div",{className:l.CSS.B("tabs-content"),onClick:()=>t!=null&&n?.(t),children:a})},U=p.z.object({tabKey:p.z.string(),name:p.z.string(),closable:p.z.boolean().optional(),icon:p.z.unknown().optional(),editable:p.z.boolean().optional(),visible:p.z.boolean().optional(),unsavedChanges:p.z.boolean().optional(),loading:p.z.boolean().optional()}),J=U.extend({content:p.z.unknown().optional()}),se=Object.freeze(Object.defineProperty({__proto__:null,Content:H,Provider:I,Selector:V,Tabs:G,rename:F,resetSelection:Z,specZ:U,tabZ:J,useContext:M,useStatic:X},Symbol.toStringTag,{value:"Module"}));exports.Tabs=G;exports.external=se;exports.rename=F;exports.resetSelection=Z;exports.tabZ=J;exports.useStatic=X;
1
+ "use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs"),v=require("@synnaxlabs/x"),C=require("react"),L=require("./Copy-BgRUUzWz.cjs"),l=require("./css-CloSmhZB.cjs"),_=require("./Box-CNUz5BsV.cjs"),R=require("./Text-XHBXXDRS.cjs"),w=require("./Menu-BZ6ZGIv3.cjs");;/* empty css */const $=require("./Animated-B_N04fe6.cjs"),P=require("./Editable-HUPqTaui.cjs"),z=require("./types-DI2vtOGs.cjs");require("./Provider-cSwm-2e_.cjs");const p=require("zod"),[W,M]=R.create({defaultValue:{tabs:[]},displayName:"Tabs.Context"}),I=W,q="tabs-selector",V=({className:s,altColor:t=!1,size:e="medium",direction:r="x",contextMenu:n,addTooltip:a,actions:c,...x})=>{const{tabs:d,selected:f,onSelect:T,onClose:E,closable:h,onDragEnd:B,onDragStart:N,onDrop:j,onRename:b,onCreate:m}=M(),g=w.useContextMenu(),[O,S]=C.useState(!1);return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[n!=null&&o.jsxRuntimeExports.jsx(w.ContextMenu,{style:{height:"fit-content"},...g,menu:n}),o.jsxRuntimeExports.jsxs(_.Box$1,{className:l.CSS(l.CSS.B(q),s,g.className,O&&l.CSS.M("drag-over")),size:e,align:"center",justify:"between",empty:!0,direction:r,onContextMenu:g.open,onDrop:j,...x,children:[o.jsxRuntimeExports.jsxs(_.Box$1,{direction:r,className:l.CSS.BE(q,"tabs"),empty:!0,children:[d.map(i=>o.jsxRuntimeExports.jsx(te,{selected:f,altColor:t,onSelect:T,onClose:E,onDragStart:N,onDragEnd:B,onRename:b,closable:i.closable??h,size:e,...i},i.tabKey)),j!=null&&o.jsxRuntimeExports.jsx(_.Box$1,{onDragOver:()=>S(!0),onDragLeave:()=>S(!1),onDragEnd:()=>S(!1),onDrop:()=>S(!1),grow:!0})]}),(c!=null||m!=null)&&o.jsxRuntimeExports.jsxs(_.Box$1,{className:l.CSS.BE(q,"actions"),children:[m!=null&&o.jsxRuntimeExports.jsx(L.Button,{size:e,sharp:!0,onClick:m,tooltip:a,variant:"text",children:o.jsxRuntimeExports.jsx(R.Add,{})}),c]})]})]})},Y=({unsavedChanges:s,...t})=>{const e=o.jsxRuntimeExports.jsx(R.Close,{...t});return s?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(R.Circle,{}),e]}):e},A=l.CSS.BE("tabs-selector","btn"),K=s=>{if(!(s.target instanceof HTMLElement))return"right";const t=s.target.closest(`.${A}`);if(t==null)return"right";const e=v.box.construct(t),r=v.xy.construct(s);return v.scale.Scale.scale(v.box.left(e),v.box.right(e)).scale(0,1).pos(r.x)<.5?"left":"right"},ee=({loading:s,icon:t,level:e="p"})=>(s&&(t=o.jsxRuntimeExports.jsx(R.Loading,{})),R.resolve(t,{className:l.CSS.BE(q,"icon"),style:{color:l.CSS.colorVar(9),height:l.CSS.levelSizeVar(e),width:l.CSS.levelSizeVar(e)}})),te=({selected:s,altColor:t=!1,onSelect:e,onClose:r,tabKey:n,name:a,onDragStart:c,onDragEnd:x,onRename:d,closable:f=!0,icon:T,size:E,editable:h=!0,unsavedChanges:B=!1,loading:N=!1,onDrop:j})=>{const b=C.useCallback(u=>c?.(u,{tabKey:n,name:a}),[c,n,a]),m=C.useCallback(u=>x?.(u,{tabKey:n,name:a}),[x,n,a]),g=C.useCallback(u=>{u.preventDefault(),u.stopPropagation(),r?.(n)},[r,n]),O=C.useCallback(()=>e?.(n),[e,n]),[S,i]=C.useState(null),k=C.useCallback(u=>{i(K(u))},[i,j]),y=C.useCallback(u=>{j?.(u),i(null)},[j,i]),D=s===n,Q=z.COMPONENT_SIZE_LEVELS[E];return o.jsxRuntimeExports.jsxs(L.Button,{el:"div",size:E,id:n,variant:"text",sharp:!0,className:l.CSS($.CONTEXT_TARGET,A,D&&$.CONTEXT_SELECTED,l.CSS.selected(D),l.CSS.altColor(t),f&&r!=null&&l.CSS.M("closable"),l.CSS.editable(h&&d!=null),S!=null&&l.CSS.M("drag-over"),S!=null&&l.CSS.loc(S)),draggable:!0,justify:"center",align:"center",empty:!0,tabIndex:0,preventClick:D,onClick:O,onDragOver:k,onDrop:y,onDragLeave:()=>i(null),onDragStart:b,onDragEnd:u=>{i(null),m(u)},bordered:!1,rounded:!1,children:[o.jsxRuntimeExports.jsx(ee,{loading:N,icon:T,level:Q}),o.jsxRuntimeExports.jsx(ne,{name:a,tabKey:n,onRename:d,editable:h,level:z.COMPONENT_SIZE_LEVELS[E]}),f&&r!=null&&o.jsxRuntimeExports.jsx(L.Button,{"aria-label":"pluto-tabs__close",onClick:g,className:l.CSS.E("close"),variant:"text",sharp:!0,children:o.jsxRuntimeExports.jsx(Y,{unsavedChanges:B})})]})},ne=({onRename:s,name:t,tabKey:e,editable:r=!0,level:n})=>s==null||!r?o.jsxRuntimeExports.jsx(P.Text,{overflow:"ellipsis",level:n,children:t}):o.jsxRuntimeExports.jsx(P.Editable,{level:n,id:l.CSS.B(`tab-${e}`),onChange:a=>s?.(e,a),value:t,overflow:"ellipsis"}),Z=(s="",t=[])=>{if(t.length!==0)return t.find(e=>e.tabKey===s)!=null?s:t[t.length-1]?.tabKey},F=(s,t,e)=>{if(t=t.trim(),t.length===0)return e;const r=e.find(n=>n.tabKey===s);return r==null||r.name===t?e:e.map(n=>n.tabKey===s?{...n,name:t}:n)},X=({tabs:s,content:t,selected:e,onSelect:r})=>{const[n,a]=z.usePurePassthrough({initial:e??s[0]?.tabKey??"",value:e,onChange:r}),c=P.useSyncedRef(e??n),x=C.useCallback(d=>{a(d),c.current==null&&r?.(d)},[n,a,r]);return{tabs:s,selected:n,content:t,onSelect:x}},G=({id:s,content:t,children:e,onSelect:r,selected:n,selectedAltColor:a,closable:c,tabs:x,onClose:d,onDragStart:f,onDragEnd:T,onCreate:E,onRename:h,emptyContent:B,className:N,onDragOver:j,onDrop:b,contextMenu:m,actions:g,addTooltip:O,size:S="medium",direction:i="y",x:k,y,...D})=>o.jsxRuntimeExports.jsx(_.Box$1,{id:s,empty:!0,className:l.CSS(l.CSS.B("tabs"),N),direction:i,x:k,y,onDragOver:j,onDrop:b,...D,children:o.jsxRuntimeExports.jsxs(I,{value:{tabs:x,emptyContent:B,selected:n,closable:c,content:e??t,onSelect:r,onClose:d,onDragStart:f,onDragEnd:T,onRename:h,onCreate:E,onDrop:b},children:[o.jsxRuntimeExports.jsx(V,{size:S,direction:v.direction.swap(i),altColor:a,contextMenu:m,addTooltip:O,actions:g}),o.jsxRuntimeExports.jsx(H,{})]})}),H=()=>{const{tabs:s,selected:t,content:e,emptyContent:r,onSelect:n}=M();let a=null;const c=s.find(x=>x.tabKey===t);return t==null||c==null?a=r??null:e!=null?typeof e=="function"?a=e(c):a=e:c.content!=null&&(a=c.content),o.jsxRuntimeExports.jsx("div",{className:l.CSS.B("tabs-content"),onClick:()=>t!=null&&n?.(t),children:a})},U=p.z.object({tabKey:p.z.string(),name:p.z.string(),closable:p.z.boolean().optional(),icon:p.z.unknown().optional(),editable:p.z.boolean().optional(),visible:p.z.boolean().optional(),unsavedChanges:p.z.boolean().optional(),loading:p.z.boolean().optional()}),J=U.extend({content:p.z.unknown().optional()}),se=Object.freeze(Object.defineProperty({__proto__:null,Content:H,Provider:I,Selector:V,Tabs:G,rename:F,resetSelection:Z,specZ:U,tabZ:J,useContext:M,useStatic:X},Symbol.toStringTag,{value:"Module"}));exports.Tabs=G;exports.external=se;exports.rename=F;exports.resetSelection=Z;exports.tabZ=J;exports.useStatic=X;
@@ -1,4 +1,4 @@
1
- import { B as n, C as i } from "./Copy-eucLPEWo.js";
1
+ import { B as n, C as i } from "./Copy-COWBkO_v.js";
2
2
  import { j as l } from "./jsx-runtime-tc70JA_2.js";
3
3
  const u = ({
4
4
  value: o,
@@ -1 +1 @@
1
- "use strict";const o=require("./Copy-6Mur4EW2.cjs"),a=require("./jsx-runtime-nZSsnGb7.cjs"),u=({value:e,onClick:s,onChange:n,checkedVariant:i="filled",uncheckedVariant:l,rightClickToggle:r=!1,...p})=>a.jsxRuntimeExports.jsx(o.Button,{onClick:t=>{s?.(t),!r&&n(!e)},onContextMenu:t=>{r&&(t.preventDefault(),t.stopPropagation(),n(!e))},variant:e?i:l,...p}),c=Object.freeze(Object.defineProperty({__proto__:null,Button:o.Button,Copy:o.Copy,Toggle:u},Symbol.toStringTag,{value:"Module"}));exports.Toggle=u;exports.external=c;
1
+ "use strict";const o=require("./Copy-BgRUUzWz.cjs"),a=require("./jsx-runtime-nZSsnGb7.cjs"),u=({value:e,onClick:s,onChange:n,checkedVariant:i="filled",uncheckedVariant:l,rightClickToggle:r=!1,...p})=>a.jsxRuntimeExports.jsx(o.Button,{onClick:t=>{s?.(t),!r&&n(!e)},onContextMenu:t=>{r&&(t.preventDefault(),t.stopPropagation(),n(!e))},variant:e?i:l,...p}),c=Object.freeze(Object.defineProperty({__proto__:null,Button:o.Button,Copy:o.Copy,Toggle:u},Symbol.toStringTag,{value:"Module"}));exports.Toggle=u;exports.external=c;
@@ -1 +1 @@
1
- "use strict";const a=require("./hooks-DmaLjPZJ.cjs"),e=require("./Text-_KoMj9Wf.cjs"),m=require("./jsx-runtime-nZSsnGb7.cjs"),u=require("react"),x=require("./Editable-HUPqTaui.cjs"),o=require("@synnaxlabs/x");require("./types-DI2vtOGs.cjs");const S=t=>{const{listen:i}=e.useContext(),[g,l]=u.useState([]);return u.useEffect(()=>i(({next:[r]})=>l(r??[])),[i,l]),m.jsxRuntimeExports.jsx(x.Text,{...t,children:g.join(" ")})},d=({onDrag:t,triggers:i=[["MouseLeft"],["MouseRight"]],bound:g,loose:l=!1})=>{const r=u.useRef(null),E=u.useRef(o.xy.ZERO),M=u.useCallback(s=>{const n=o.xy.construct(s);if(r.current===null)return;const{triggers:c}=r.current;t({box:o.box.construct(E.current,n),cursor:n,triggers:c,stage:"during"})},[t]),f=u.useCallback(s=>{const{stage:n,cursor:c}=s;n==="start"?(t({box:o.box.construct(c),...s}),window.addEventListener("mousemove",M),r.current=s,E.current=c):n==="end"&&r.current!=null&&(t({box:o.box.construct(E.current,c),...s}),window.removeEventListener("mousemove",M),r.current=null,E.current=o.xy.ZERO)},[t]);a.use({triggers:i,callback:f,region:g,loose:l})},_=Object.freeze(Object.defineProperty({__proto__:null,ALPHANUMERIC_KEYS:e.ALPHANUMERIC_KEYS,ALPHANUMERIC_KEYS_SET:e.ALPHANUMERIC_KEYS_SET,KEYS:e.KEYS,MOUSE_KEYS:e.MOUSE_KEYS,MOUSE_LEFT_NUMBER:e.MOUSE_LEFT_NUMBER,MOUSE_MIDDLE_NUMBER:e.MOUSE_MIDDLE_NUMBER,MOUSE_RIGHT_NUMBER:e.MOUSE_RIGHT_NUMBER,Provider:e.Provider,Status:S,Text:e.Text,compareModeConfigs:e.compareModeConfigs,determineMode:e.determineMode,diff:e.diff,eventKey:e.eventKey,filter:e.filter,flattenConfig:e.flattenConfig,isAlphanumericKey:e.isAlphanumericKey,keyZ:e.keyZ,keyboardKey:e.keyboardKey,match:e.match,matchCallback:e.matchCallback,mouseKey:e.mouseKey,mouseKeyZ:e.mouseKeyZ,purge:e.purge,purgeMouse:e.purgeMouse,toSymbols:e.toSymbols,triggerZ:e.triggerZ,use:a.use,useContext:e.useContext,useDrag:d,useFlattenedMemoConfig:e.useFlattenedMemoConfig,useHeld:a.useHeld,useHeldRef:a.useHeldRef},Symbol.toStringTag,{value:"Module"}));exports.external=_;exports.useDrag=d;
1
+ "use strict";const a=require("./hooks-Co6IVYNw.cjs"),e=require("./Text-XHBXXDRS.cjs"),m=require("./jsx-runtime-nZSsnGb7.cjs"),u=require("react"),x=require("./Editable-HUPqTaui.cjs"),o=require("@synnaxlabs/x");require("./types-DI2vtOGs.cjs");const S=t=>{const{listen:i}=e.useContext(),[g,l]=u.useState([]);return u.useEffect(()=>i(({next:[r]})=>l(r??[])),[i,l]),m.jsxRuntimeExports.jsx(x.Text,{...t,children:g.join(" ")})},d=({onDrag:t,triggers:i=[["MouseLeft"],["MouseRight"]],bound:g,loose:l=!1})=>{const r=u.useRef(null),E=u.useRef(o.xy.ZERO),M=u.useCallback(s=>{const n=o.xy.construct(s);if(r.current===null)return;const{triggers:c}=r.current;t({box:o.box.construct(E.current,n),cursor:n,triggers:c,stage:"during"})},[t]),f=u.useCallback(s=>{const{stage:n,cursor:c}=s;n==="start"?(t({box:o.box.construct(c),...s}),window.addEventListener("mousemove",M),r.current=s,E.current=c):n==="end"&&r.current!=null&&(t({box:o.box.construct(E.current,c),...s}),window.removeEventListener("mousemove",M),r.current=null,E.current=o.xy.ZERO)},[t]);a.use({triggers:i,callback:f,region:g,loose:l})},_=Object.freeze(Object.defineProperty({__proto__:null,ALPHANUMERIC_KEYS:e.ALPHANUMERIC_KEYS,ALPHANUMERIC_KEYS_SET:e.ALPHANUMERIC_KEYS_SET,KEYS:e.KEYS,MOUSE_KEYS:e.MOUSE_KEYS,MOUSE_LEFT_NUMBER:e.MOUSE_LEFT_NUMBER,MOUSE_MIDDLE_NUMBER:e.MOUSE_MIDDLE_NUMBER,MOUSE_RIGHT_NUMBER:e.MOUSE_RIGHT_NUMBER,Provider:e.Provider,Status:S,Text:e.Text,compareModeConfigs:e.compareModeConfigs,determineMode:e.determineMode,diff:e.diff,eventKey:e.eventKey,filter:e.filter,flattenConfig:e.flattenConfig,isAlphanumericKey:e.isAlphanumericKey,keyZ:e.keyZ,keyboardKey:e.keyboardKey,match:e.match,matchCallback:e.matchCallback,mouseKey:e.mouseKey,mouseKeyZ:e.mouseKeyZ,purge:e.purge,purgeMouse:e.purgeMouse,toSymbols:e.toSymbols,triggerZ:e.triggerZ,use:a.use,useContext:e.useContext,useDrag:d,useFlattenedMemoConfig:e.useFlattenedMemoConfig,useHeld:a.useHeld,useHeldRef:a.useHeldRef},Symbol.toStringTag,{value:"Module"}));exports.external=_;exports.useDrag=d;
@@ -1,22 +1,22 @@
1
1
  import { j as De } from "./jsx-runtime-tc70JA_2.js";
2
- import { B as sa, r as tw } from "./Copy-eucLPEWo.js";
2
+ import { B as sa, r as tw } from "./Copy-COWBkO_v.js";
3
3
  import { TimeStamp as Zt, xy as Ps, box as mn, bounds as go, location as Yc, direction as tm, TimeSpan as ji, status as YN } from "@synnaxlabs/x";
4
4
  import { C as nt } from "./css-D90kZTM8.js";
5
5
  import ZN, { useRef as yh, useMemo as bh, useCallback as ei, useLayoutEffect as QN, useEffect as XN, useState as Rl } from "react";
6
- import { d as eA } from "./Provider-CfgP1iWx.js";
7
- import { au as tA, k as rA, a8 as nA, D as aA, T as iA, C as Du } from "./Text-BIGgPTpY.js";
6
+ import { d as eA } from "./Provider-jFWpR0CX.js";
7
+ import { au as tA, k as rA, a8 as nA, D as aA, T as iA, C as Du } from "./Text-2MISZsc5.js";
8
8
  import { p as oA, g as md, a as sA } from "./event-nNH_pXSr.js";
9
- import { T as rs, F as rw, L as uA } from "./Tags-BTbNRoip.js";
10
- import { D as lA } from "./Dialog-dxzsEWgY.js";
11
- import { F as cA, u as fA } from "./Animated-BU-7FzeV.js";
9
+ import { T as rs, F as rw, L as uA } from "./Tags-DvfGhiWv.js";
10
+ import { D as lA } from "./Dialog-Bj7FiHJD.js";
11
+ import { F as cA, u as fA } from "./Animated-CO--9HPM.js";
12
12
  import { a as cr, p as mA } from "./Box-Bi280MYh.js";
13
13
  import { T as ca, f as wh, d as xh } from "./Editable-C17ILP50.js";
14
14
  import "./types-CGRCBVD4.js";
15
- import { a as nw, b as dA, I as hA } from "./Items-CPIJP3y9.js";
15
+ import { a as nw, b as dA, I as hA } from "./Items-DQba1BFQ.js";
16
16
  import { u as pA } from "./useStaticData-p8sk2VCJ.js";
17
17
  /* empty css */
18
18
  import "./eraser-BShvqlBE.js";
19
- import "./Haul-Dv-7aC_g.js";
19
+ import "./Haul-CnZK3e-n.js";
20
20
  import "./provider-Bt-E2O6g.js";
21
21
  const gA = ({
22
22
  format: e = "dateTime",
@@ -1 +1 @@
1
- "use strict";const p=require("./Dialog-DKMROHkj.cjs"),e=require("./Animated-C4AcIYpH.cjs"),r=require("./jsx-runtime-nZSsnGb7.cjs"),b=require("./Copy-6Mur4EW2.cjs"),C=require("./Animated-BhCfNN8N.cjs");require("@synnaxlabs/x");const i=require("./css-CloSmhZB.cjs"),s=({onClick:a,className:l,hideCaret:t=!1,children:u,variant:o,...c})=>{const{toggle:x,visible:d,variant:g}=e.useContext();let n;return o==="preview"&&(t=!0),g!=="modal"&&!t&&(n=r.jsxRuntimeExports.jsx(C.Animated,{enabled:d,enabledLoc:"bottom",disabledLoc:"left"})),r.jsxRuntimeExports.jsxs(b.Button,{className:i.CSS(i.CSS.BE("dialog","trigger"),l),onClick:m=>{a?.(m),x()},full:"x",variant:o,...c,children:[u,n]})},f=Object.freeze(Object.defineProperty({__proto__:null,Dialog:p.Dialog,Frame:e.Frame,Trigger:s,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=s;exports.external=f;
1
+ "use strict";const p=require("./Dialog-DBm6Fap1.cjs"),e=require("./Animated-B_N04fe6.cjs"),r=require("./jsx-runtime-nZSsnGb7.cjs"),b=require("./Copy-BgRUUzWz.cjs"),C=require("./Animated-BsbNkFLg.cjs");require("@synnaxlabs/x");const i=require("./css-CloSmhZB.cjs"),s=({onClick:a,className:l,hideCaret:t=!1,children:u,variant:o,...c})=>{const{toggle:x,visible:d,variant:g}=e.useContext();let n;return o==="preview"&&(t=!0),g!=="modal"&&!t&&(n=r.jsxRuntimeExports.jsx(C.Animated,{enabled:d,enabledLoc:"bottom",disabledLoc:"left"})),r.jsxRuntimeExports.jsxs(b.Button,{className:i.CSS(i.CSS.BE("dialog","trigger"),l),onClick:m=>{a?.(m),x()},full:"x",variant:o,...c,children:[u,n]})},f=Object.freeze(Object.defineProperty({__proto__:null,Dialog:p.Dialog,Frame:e.Frame,Trigger:s,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=s;exports.external=f;
@@ -1 +1 @@
1
- "use strict";const y=require("@synnaxlabs/x"),w=require("./Text-_KoMj9Wf.cjs"),p=require("./jsx-runtime-nZSsnGb7.cjs"),z=require("./Animated-BhCfNN8N.cjs"),d=require("./css-CloSmhZB.cjs"),T=require("./Tags-BE6wPgNv.cjs");require("./Copy-6Mur4EW2.cjs");require("./Box-CNUz5BsV.cjs");const K=require("./Items-806FU8Ig.cjs");require("./Animated-C4AcIYpH.cjs");const S=require("react"),b=require("./Editable-HUPqTaui.cjs"),U=require("./types-DI2vtOGs.cjs");require("./Provider-B1JpVCIg.cjs");require("react-dom");require("./Haul-BShXYNxx.cjs");require("./provider-DQkVj3tA.cjs");const Y=require("./hooks-DmaLjPZJ.cjs"),A=(e,n)=>n.includes(e.key),I=({nodes:e,expanded:n,sort:t,depth:s=0})=>{const r={keys:[],nodes:[]};return t!=null&&e.sort(t),e.forEach(o=>{const l=A(o,n);if(r.keys.push(o.key),r.nodes.push({depth:s,expanded:l,hasChildren:o.children!=null}),l&&o.children!=null){const{keys:c,nodes:f}=I({nodes:o.children,expanded:n,sort:t,depth:s+1});r.keys.push(...c),r.nodes.push(...f)}}),r},J=({tree:e,destination:n,keys:t})=>(t=y.array.toArray(t),n==null?[...P({tree:e,keys:t}),...e.filter(r=>!t.includes(r.key))]:(t.forEach(s=>{const r=a({tree:e,key:s});r!=null&&(M({tree:e,keys:s}),L({tree:e,destination:n,additions:r}))}),e)),M=({tree:e,keys:n,parent:t})=>{if(n=y.array.toArray(n),t!==void 0){if(t===null)return e.filter(r=>!n.includes(r.key));const s=a({tree:e,key:t});return s==null||(s.children=s.children?.filter(r=>!n.includes(r.key))),e}return n.forEach(s=>{const r=e.findIndex(o=>o.key===s);if(r!==-1)e.splice(r,1);else{const o=g({tree:e,key:s});o!=null&&(o.children=o.children?.filter(l=>l.key!==s))}}),e},L=({tree:e,destination:n,additions:t,throwOnMissing:s=!0})=>{t=y.array.toArray(t);const r=y.unique.by(t,c=>c.key,!1),o=r.map(c=>c.key);if(n==null)return[...r,...e.filter(c=>!o.includes(c.key))];const l=a({tree:e,key:n});if(l==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return l.children??=[],l.children=[...r,...l.children.filter(c=>!o.includes(c.key))],e},Q=({tree:e,key:n,updater:t,throwOnMissing:s=!0})=>{const r=a({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}const o=g({tree:e,key:n});if(o!=null){const l=o.children?.findIndex(c=>c.key===n);l!=null&&l!==-1&&o.children?.splice(l,1,t(r))}else e.splice(e.findIndex(l=>l.key===n),1,t(r));return e},V=({tree:e,parent:n,updater:t,throwOnMissing:s=!0})=>{const r=a({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return r.children=t(r.children??[]),e},a=({tree:e,key:n,depth:t=0})=>{for(let s=0;s<e.length;s++){const r=e[s];if(r.key===n)return r;if(r.children!=null){const o=a({tree:r.children,key:n,depth:t+1});if(o!=null)return o}}return null},P=({tree:e,keys:n})=>{const t=[];for(const s of n){const r=a({tree:e,key:s});r!=null&&t.push(r)}return t},g=({tree:e,key:n})=>{for(const t of e)if(t.children!=null){if(t.children.some(r=>r.key===n))return t;const s=g({tree:t.children,key:n});if(s!=null)return s}return null},D=e=>e.map(n=>({...n,children:n.children!=null?D(n.children):void 0})),H=(...e)=>{const n=[];return e.forEach(t=>{n.push(t),t.children!=null&&n.push(...H(...t.children))}),n},W=(e,n)=>{const t={keys:[],nodes:[]};return e.keys.forEach((s,r)=>{n(s,e.nodes[r].depth)&&(t.keys.push(s),t.nodes.push(e.nodes[r]))}),t},X=e=>{const n=Math.min(...e.nodes.map(t=>t.depth));return e.keys.filter((t,s)=>e.nodes[s].depth===n)},Z=(e,n)=>{const t=n.keys.findIndex(s=>s===e);return n.nodes[t].depth},O=(e,n)=>{const t=e.keys.findIndex(s=>s===n);return e.nodes[t]},[ee,$]=w.create({displayName:"Tree.Context",providerName:"Tree.Provider"}),ne=({children:e,style:n,className:t,loading:s,useMargin:r=!1,offsetMultiplier:o=2.5,...l})=>{const{index:c}=l,{expanded:f,depth:x,hasChildren:m}=$("Tree.Item")[c];return p.jsxRuntimeExports.jsxs(T.ListItem,{className:d.CSS(d.CSS.BE("tree","item"),x!==0&&d.CSS.M("show-rules"),r&&d.CSS.M("margin"),t),style:{[d.CSS.var("tree-item-offset")]:`${x*o+1.5}rem`,...n},gap:"small",align:"center",...l,children:[m&&p.jsxRuntimeExports.jsx(z.Animated,{className:d.CSS.BE("tree","expansion-indicator"),enabled:f,enabledLoc:"bottom",disabledLoc:"right"},"caret"),e,s&&p.jsxRuntimeExports.jsx(w.Loading,{})]})},te="tree-item",re=[["Shift"]],se=({onExpand:e,nodes:n,initialExpanded:t=[],selected:s,onSelectedChange:r,sort:o})=>{const[l,c,f]=b.useCombinedStateAndRef(t),[x,m]=U.usePassthrough({initial:[],value:s,onChange:r}),q=S.useMemo(()=>I({nodes:n,expanded:l,sort:o}),[n,l,o]),_=b.useSyncedRef(n),N=b.useSyncedRef(q),R=Y.useHeldRef({triggers:re}),j=S.useCallback((u,{clicked:i})=>{if(m(h=>u.length===0&&h.length>0?h.slice(0,1):u),i==null||R.current.held)return;const C=O(N.current,i);if(C==null||!C.hasChildren)return;const k=f.current,v=k.some(h=>h===i)?"contract":"expand";let E;v==="contract"?E=k.filter(h=>h!==i):E=[...k,i],c(E),e?.({current:E,action:v,clicked:i})},[e,_,c,m]),B=S.useCallback(u=>{c(i=>y.unique.unique([...i,u])),e?.({current:l,action:"expand",clicked:u})},[c]),F=S.useCallback((...u)=>{c(i=>i.filter(C=>!u.includes(C))),u.forEach(i=>{e?.({current:l,action:"contract",clicked:i})})},[c]),G=S.useCallback(()=>c([]),[c]);return{selected:x,expanded:l,contract:F,expand:B,clearExpanded:G,shape:q,onSelect:j}},oe=({shape:e,children:n,selected:t,onSelect:s,getItem:r,subscribe:o,className:l,contract:c,expand:f,expanded:x,className:m,clearExpanded:q,showRules:_=!1,virtual:N=!1,...R})=>{const{keys:j}=e;return p.jsxRuntimeExports.jsx(ee,{value:e.nodes,children:p.jsxRuntimeExports.jsx(T.Frame,{multiple:!0,value:t,replaceOnSingle:!0,data:j,onChange:s,getItem:r,subscribe:o,itemHeight:27,virtual:N,children:p.jsxRuntimeExports.jsx(K.Items,{full:"y",className:d.CSS(d.CSS.B("tree"),l,_&&d.CSS.M("show-rules")),...R,children:n})})})},le=Object.freeze(Object.defineProperty({__proto__:null,HAUL_TYPE:te,Item:ne,Tree:oe,deepCopy:D,filterShape:W,findNode:a,findNodeParent:g,findNodes:P,flatten:I,getAllNodesOfMinDepth:X,getDepth:Z,getDescendants:H,getNodeShape:O,moveNode:J,removeNode:M,setNode:L,shouldExpand:A,updateNode:Q,updateNodeChildren:V,use:se,useContext:$},Symbol.toStringTag,{value:"Module"}));exports.external=le;
1
+ "use strict";const y=require("@synnaxlabs/x"),w=require("./Text-XHBXXDRS.cjs"),p=require("./jsx-runtime-nZSsnGb7.cjs"),z=require("./Animated-BsbNkFLg.cjs"),d=require("./css-CloSmhZB.cjs"),T=require("./Tags-CxzMdPpm.cjs");require("./Copy-BgRUUzWz.cjs");require("./Box-CNUz5BsV.cjs");const K=require("./Items-CXBBG9Ip.cjs");require("./Animated-B_N04fe6.cjs");const S=require("react"),b=require("./Editable-HUPqTaui.cjs"),U=require("./types-DI2vtOGs.cjs");require("./Provider-cSwm-2e_.cjs");require("react-dom");require("./Haul-DlwI4b25.cjs");require("./provider-DQkVj3tA.cjs");const Y=require("./hooks-Co6IVYNw.cjs"),A=(e,n)=>n.includes(e.key),I=({nodes:e,expanded:n,sort:t,depth:s=0})=>{const r={keys:[],nodes:[]};return t!=null&&e.sort(t),e.forEach(o=>{const l=A(o,n);if(r.keys.push(o.key),r.nodes.push({depth:s,expanded:l,hasChildren:o.children!=null}),l&&o.children!=null){const{keys:c,nodes:f}=I({nodes:o.children,expanded:n,sort:t,depth:s+1});r.keys.push(...c),r.nodes.push(...f)}}),r},J=({tree:e,destination:n,keys:t})=>(t=y.array.toArray(t),n==null?[...P({tree:e,keys:t}),...e.filter(r=>!t.includes(r.key))]:(t.forEach(s=>{const r=a({tree:e,key:s});r!=null&&(M({tree:e,keys:s}),L({tree:e,destination:n,additions:r}))}),e)),M=({tree:e,keys:n,parent:t})=>{if(n=y.array.toArray(n),t!==void 0){if(t===null)return e.filter(r=>!n.includes(r.key));const s=a({tree:e,key:t});return s==null||(s.children=s.children?.filter(r=>!n.includes(r.key))),e}return n.forEach(s=>{const r=e.findIndex(o=>o.key===s);if(r!==-1)e.splice(r,1);else{const o=g({tree:e,key:s});o!=null&&(o.children=o.children?.filter(l=>l.key!==s))}}),e},L=({tree:e,destination:n,additions:t,throwOnMissing:s=!0})=>{t=y.array.toArray(t);const r=y.unique.by(t,c=>c.key,!1),o=r.map(c=>c.key);if(n==null)return[...r,...e.filter(c=>!o.includes(c.key))];const l=a({tree:e,key:n});if(l==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return l.children??=[],l.children=[...r,...l.children.filter(c=>!o.includes(c.key))],e},Q=({tree:e,key:n,updater:t,throwOnMissing:s=!0})=>{const r=a({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}const o=g({tree:e,key:n});if(o!=null){const l=o.children?.findIndex(c=>c.key===n);l!=null&&l!==-1&&o.children?.splice(l,1,t(r))}else e.splice(e.findIndex(l=>l.key===n),1,t(r));return e},V=({tree:e,parent:n,updater:t,throwOnMissing:s=!0})=>{const r=a({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return r.children=t(r.children??[]),e},a=({tree:e,key:n,depth:t=0})=>{for(let s=0;s<e.length;s++){const r=e[s];if(r.key===n)return r;if(r.children!=null){const o=a({tree:r.children,key:n,depth:t+1});if(o!=null)return o}}return null},P=({tree:e,keys:n})=>{const t=[];for(const s of n){const r=a({tree:e,key:s});r!=null&&t.push(r)}return t},g=({tree:e,key:n})=>{for(const t of e)if(t.children!=null){if(t.children.some(r=>r.key===n))return t;const s=g({tree:t.children,key:n});if(s!=null)return s}return null},D=e=>e.map(n=>({...n,children:n.children!=null?D(n.children):void 0})),H=(...e)=>{const n=[];return e.forEach(t=>{n.push(t),t.children!=null&&n.push(...H(...t.children))}),n},W=(e,n)=>{const t={keys:[],nodes:[]};return e.keys.forEach((s,r)=>{n(s,e.nodes[r].depth)&&(t.keys.push(s),t.nodes.push(e.nodes[r]))}),t},X=e=>{const n=Math.min(...e.nodes.map(t=>t.depth));return e.keys.filter((t,s)=>e.nodes[s].depth===n)},Z=(e,n)=>{const t=n.keys.findIndex(s=>s===e);return n.nodes[t].depth},O=(e,n)=>{const t=e.keys.findIndex(s=>s===n);return e.nodes[t]},[ee,$]=w.create({displayName:"Tree.Context",providerName:"Tree.Provider"}),ne=({children:e,style:n,className:t,loading:s,useMargin:r=!1,offsetMultiplier:o=2.5,...l})=>{const{index:c}=l,{expanded:f,depth:x,hasChildren:m}=$("Tree.Item")[c];return p.jsxRuntimeExports.jsxs(T.ListItem,{className:d.CSS(d.CSS.BE("tree","item"),x!==0&&d.CSS.M("show-rules"),r&&d.CSS.M("margin"),t),style:{[d.CSS.var("tree-item-offset")]:`${x*o+1.5}rem`,...n},gap:"small",align:"center",...l,children:[m&&p.jsxRuntimeExports.jsx(z.Animated,{className:d.CSS.BE("tree","expansion-indicator"),enabled:f,enabledLoc:"bottom",disabledLoc:"right"},"caret"),e,s&&p.jsxRuntimeExports.jsx(w.Loading,{})]})},te="tree-item",re=[["Shift"]],se=({onExpand:e,nodes:n,initialExpanded:t=[],selected:s,onSelectedChange:r,sort:o})=>{const[l,c,f]=b.useCombinedStateAndRef(t),[x,m]=U.usePassthrough({initial:[],value:s,onChange:r}),q=S.useMemo(()=>I({nodes:n,expanded:l,sort:o}),[n,l,o]),_=b.useSyncedRef(n),N=b.useSyncedRef(q),R=Y.useHeldRef({triggers:re}),j=S.useCallback((u,{clicked:i})=>{if(m(h=>u.length===0&&h.length>0?h.slice(0,1):u),i==null||R.current.held)return;const C=O(N.current,i);if(C==null||!C.hasChildren)return;const k=f.current,v=k.some(h=>h===i)?"contract":"expand";let E;v==="contract"?E=k.filter(h=>h!==i):E=[...k,i],c(E),e?.({current:E,action:v,clicked:i})},[e,_,c,m]),B=S.useCallback(u=>{c(i=>y.unique.unique([...i,u])),e?.({current:l,action:"expand",clicked:u})},[c]),F=S.useCallback((...u)=>{c(i=>i.filter(C=>!u.includes(C))),u.forEach(i=>{e?.({current:l,action:"contract",clicked:i})})},[c]),G=S.useCallback(()=>c([]),[c]);return{selected:x,expanded:l,contract:F,expand:B,clearExpanded:G,shape:q,onSelect:j}},oe=({shape:e,children:n,selected:t,onSelect:s,getItem:r,subscribe:o,className:l,contract:c,expand:f,expanded:x,className:m,clearExpanded:q,showRules:_=!1,virtual:N=!1,...R})=>{const{keys:j}=e;return p.jsxRuntimeExports.jsx(ee,{value:e.nodes,children:p.jsxRuntimeExports.jsx(T.Frame,{multiple:!0,value:t,replaceOnSingle:!0,data:j,onChange:s,getItem:r,subscribe:o,itemHeight:27,virtual:N,children:p.jsxRuntimeExports.jsx(K.Items,{full:"y",className:d.CSS(d.CSS.B("tree"),l,_&&d.CSS.M("show-rules")),...R,children:n})})})},le=Object.freeze(Object.defineProperty({__proto__:null,HAUL_TYPE:te,Item:ne,Tree:oe,deepCopy:D,filterShape:W,findNode:a,findNodeParent:g,findNodes:P,flatten:I,getAllNodesOfMinDepth:X,getDepth:Z,getDescendants:H,getNodeShape:O,moveNode:J,removeNode:M,setNode:L,shouldExpand:A,updateNode:Q,updateNodeChildren:V,use:se,useContext:$},Symbol.toStringTag,{value:"Module"}));exports.external=le;
@@ -2,9 +2,9 @@ import { j as s } from "./jsx-runtime-tc70JA_2.js";
2
2
  import "@synnaxlabs/x";
3
3
  import { C as e } from "./css-D90kZTM8.js";
4
4
  import { a as m } from "./Box-Bi280MYh.js";
5
- import { B as u } from "./Copy-eucLPEWo.js";
5
+ import { B as u } from "./Copy-COWBkO_v.js";
6
6
  import { useMemo as d } from "react";
7
- import { c as p } from "./Text-BIGgPTpY.js";
7
+ import { c as p } from "./Text-2MISZsc5.js";
8
8
  import { T as x } from "./Editable-C17ILP50.js";
9
9
  import { a as f } from "./types-CGRCBVD4.js";
10
10
  const h = ({ children: r = [], ...t }) => /* @__PURE__ */ s.jsx(
@@ -1,20 +1,20 @@
1
1
  import { j as X } from "./jsx-runtime-tc70JA_2.js";
2
2
  import { xy as xt, box as Fe, debounce as rh, color as te, TimeStamp as Dc, scale as th, id as nh, clamp as ah } from "@synnaxlabs/x";
3
3
  import f, { useCallback as Se, isValidElement as ih, PureComponent as jr, Component as Fr, useMemo as Bc, useRef as Mo } from "react";
4
- import { B as $c } from "./Copy-eucLPEWo.js";
4
+ import { B as $c } from "./Copy-COWBkO_v.js";
5
5
  import { C as J } from "./css-D90kZTM8.js";
6
- import { u as oh, f as Io, a as sh } from "./Haul-Dv-7aC_g.js";
7
- import { a as uh } from "./Provider-CfgP1iWx.js";
6
+ import { u as oh, f as Io, a as sh } from "./Haul-CnZK3e-n.js";
7
+ import { a as uh } from "./Provider-jFWpR0CX.js";
8
8
  import "./provider-Bt-E2O6g.js";
9
9
  import { b as lh } from "./types-CGRCBVD4.js";
10
10
  import { c as zr, g as nt, s as ch } from "./event-nNH_pXSr.js";
11
11
  import { z as de } from "zod";
12
- import { s as fh, c as hh, J as ph } from "./Text-BIGgPTpY.js";
12
+ import { s as fh, c as hh, J as ph } from "./Text-2MISZsc5.js";
13
13
  import { d as Lc, T as Hc, f as dh, E as gh } from "./Editable-C17ILP50.js";
14
14
  import { a as qr } from "./Box-Bi280MYh.js";
15
- import { D as vh } from "./Dialog-dxzsEWgY.js";
16
- import { F as bh } from "./Animated-BU-7FzeV.js";
17
- import { u as yh } from "./hooks-DPk_YYCv.js";
15
+ import { D as vh } from "./Dialog-Bj7FiHJD.js";
16
+ import { F as bh } from "./Animated-CO--9HPM.js";
17
+ import { u as yh } from "./hooks-QNj6PdUo.js";
18
18
  const mh = ({
19
19
  onMove: r,
20
20
  onStart: e,
@@ -1,21 +1,21 @@
1
1
  import { array as w, unique as A } from "@synnaxlabs/x";
2
- import { c as G, L as z } from "./Text-BIGgPTpY.js";
2
+ import { c as G, L as z } from "./Text-2MISZsc5.js";
3
3
  import { j as p } from "./jsx-runtime-tc70JA_2.js";
4
- import { A as K } from "./Animated-C1yZ_uus.js";
4
+ import { A as K } from "./Animated-CLo1CLgn.js";
5
5
  import { C as c } from "./css-D90kZTM8.js";
6
- import { L as U, F as Y } from "./Tags-BTbNRoip.js";
7
- import "./Copy-eucLPEWo.js";
6
+ import { L as U, F as Y } from "./Tags-DvfGhiWv.js";
7
+ import "./Copy-COWBkO_v.js";
8
8
  import "./Box-Bi280MYh.js";
9
- import { a as J } from "./Items-CPIJP3y9.js";
10
- import "./Animated-BU-7FzeV.js";
9
+ import { a as J } from "./Items-DQba1BFQ.js";
10
+ import "./Animated-CO--9HPM.js";
11
11
  import { useMemo as Q, useCallback as g } from "react";
12
12
  import { f as V, d as R } from "./Editable-C17ILP50.js";
13
13
  import { b as W } from "./types-CGRCBVD4.js";
14
- import "./Provider-CfgP1iWx.js";
14
+ import "./Provider-jFWpR0CX.js";
15
15
  import "react-dom";
16
- import "./Haul-Dv-7aC_g.js";
16
+ import "./Haul-CnZK3e-n.js";
17
17
  import "./provider-Bt-E2O6g.js";
18
- import { b as X } from "./hooks-DPk_YYCv.js";
18
+ import { b as X } from "./hooks-QNj6PdUo.js";
19
19
  const T = (e, n) => n.includes(e.key), I = ({
20
20
  nodes: e,
21
21
  expanded: n,
@@ -1 +1 @@
1
- "use strict";const r=require("./provider-DQkVj3tA.cjs"),e=require("./Provider-B1JpVCIg.cjs"),n=require("./fontString-BNnhiwug.cjs"),i=o=>{const{theme:t}=e.useContext(),s=t.typography[o];return{...s,toString:()=>n.fontString(t,{level:o}),baseSize:t.sizes.base,lineHeightPx:s.lineHeight*t.sizes.base,sizePx:s.size*t.sizes.base}},S=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:i},Symbol.toStringTag,{value:"Module"}));exports.external=S;exports.useTypography=i;
1
+ "use strict";const r=require("./provider-DQkVj3tA.cjs"),e=require("./Provider-cSwm-2e_.cjs"),n=require("./fontString-BNnhiwug.cjs"),i=o=>{const{theme:t}=e.useContext(),s=t.typography[o];return{...s,toString:()=>n.fontString(t,{level:o}),baseSize:t.sizes.base,lineHeightPx:s.lineHeight*t.sizes.base,sizePx:s.size*t.sizes.base}},S=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:i},Symbol.toStringTag,{value:"Module"}));exports.external=S;exports.useTypography=i;
@@ -1,5 +1,5 @@
1
- import { u as E, a as p, b as x } from "./hooks-DPk_YYCv.js";
2
- import { u as d, A as b, b as S, K as _, M as R, e as y, g as T, h as K, P as U, T as C, i as L, j as O, d as h, k as j, f as v, l as k, m as A, n as w, o as H, q as N, r as P, s as Z, t as I, p as Y, v as B, w as F, x as q, y as z } from "./Text-BIGgPTpY.js";
1
+ import { u as E, a as p, b as x } from "./hooks-QNj6PdUo.js";
2
+ import { u as d, A as b, b as S, K as _, M as R, e as y, g as T, h as K, P as U, T as C, i as L, j as O, d as h, k as j, f as v, l as k, m as A, n as w, o as H, q as N, r as P, s as Z, t as I, p as Y, v as B, w as F, x as q, y as z } from "./Text-2MISZsc5.js";
3
3
  import { j as G } from "./jsx-runtime-tc70JA_2.js";
4
4
  import { useState as $, useEffect as J, useRef as f, useCallback as g } from "react";
5
5
  import { T as Q } from "./Editable-C17ILP50.js";
@@ -1,16 +1,16 @@
1
1
  import { j as l } from "./jsx-runtime-tc70JA_2.js";
2
2
  import { box as P, xy as $, scale as z, direction as G } from "@synnaxlabs/x";
3
3
  import { useState as I, useCallback as v } from "react";
4
- import { B as w } from "./Copy-eucLPEWo.js";
4
+ import { B as w } from "./Copy-COWBkO_v.js";
5
5
  import { C as r } from "./css-D90kZTM8.js";
6
6
  import { a as B } from "./Box-Bi280MYh.js";
7
- import { c as H, z as U, B as q, D as J, E as Q, L as W } from "./Text-BIGgPTpY.js";
8
- import { a as Y, C as K } from "./Menu-C2vz25UP.js";
7
+ import { c as H, z as U, B as q, D as J, E as Q, L as W } from "./Text-2MISZsc5.js";
8
+ import { a as Y, C as K } from "./Menu-CniMpPmC.js";
9
9
  /* empty css */
10
- import { d as ee, c as te } from "./Animated-BU-7FzeV.js";
10
+ import { d as ee, c as te } from "./Animated-CO--9HPM.js";
11
11
  import { T as ne, E as oe, d as le } from "./Editable-C17ILP50.js";
12
12
  import { C as k, u as se } from "./types-CGRCBVD4.js";
13
- import "./Provider-CfgP1iWx.js";
13
+ import "./Provider-jFWpR0CX.js";
14
14
  import { z as p } from "zod";
15
15
  const [re, M] = H({
16
16
  defaultValue: { tabs: [] },
@@ -1,13 +1,13 @@
1
- import { B as A, F as E, I as M, a as _, c as D, u as w, b as F, d as G, e as S } from "./Items-CPIJP3y9.js";
1
+ import { B as A, F as E, I as M, a as _, c as D, u as w, b as F, d as G, e as S } from "./Items-DQba1BFQ.js";
2
2
  import { useCallback as u, useMemo as b } from "react";
3
3
  import { array as h } from "@synnaxlabs/x";
4
4
  import { c as d } from "./Editable-C17ILP50.js";
5
- import "./Text-BIGgPTpY.js";
5
+ import "./Text-2MISZsc5.js";
6
6
  import "./jsx-runtime-tc70JA_2.js";
7
7
  import "./types-CGRCBVD4.js";
8
8
  import "./css-D90kZTM8.js";
9
9
  import "./Box-Bi280MYh.js";
10
- import "./Provider-CfgP1iWx.js";
10
+ import "./Provider-jFWpR0CX.js";
11
11
  import { u as U } from "./useStaticData-p8sk2VCJ.js";
12
12
  const I = 10, y = ({ offset: t, searchTerm: e = "", ...s }, a = I) => ({
13
13
  ...s,
@@ -1,11 +1,11 @@
1
- import { u as n, C as _, M as v, a as T } from "./Menu-C2vz25UP.js";
1
+ import { u as n, C as _, M as v, a as T } from "./Menu-CniMpPmC.js";
2
2
  import { j as a } from "./jsx-runtime-tc70JA_2.js";
3
3
  import "@synnaxlabs/x";
4
4
  import { C as e } from "./css-D90kZTM8.js";
5
5
  /* empty css */
6
6
  import { a as E } from "./Box-Bi280MYh.js";
7
- import { B as j } from "./Copy-eucLPEWo.js";
8
- import { C as S, c as b, d as g } from "./Animated-BU-7FzeV.js";
7
+ import { B as j } from "./Copy-COWBkO_v.js";
8
+ import { C as S, c as b, d as g } from "./Animated-CO--9HPM.js";
9
9
  const i = ({
10
10
  className: o,
11
11
  padded: t = !1,
@@ -1 +1 @@
1
- "use strict";const r=require("./Menu-ZISpSd-o.cjs"),u=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs");;/* empty css */const v=require("./Box-CNUz5BsV.cjs"),m=require("./Copy-6Mur4EW2.cjs"),i=require("./Animated-C4AcIYpH.cjs"),c=({className:n,padded:t=!1,color:o,...s})=>(t===!0&&(t="center"),u.jsxRuntimeExports.jsx(v.Box$1,{className:e.CSS(e.CSS.B("divider"),t!==!1&&e.CSS.BM("divider","padded"),typeof t=="string"&&e.CSS.loc(t),n),borderColor:o,color:o,...s})),p=Object.freeze(Object.defineProperty({__proto__:null,Divider:c},Symbol.toStringTag,{value:"Module"})),M=()=>u.jsxRuntimeExports.jsx(c,{className:e.CSS.BE("menu","divider"),x:!0,padded:!0}),j=({itemKey:n,className:t,onClick:o,size:s,...C})=>{const{onClick:l,selected:S,level:x="p",gap:a,background:E}=r.useContext(),T=_=>{l(n),o?.(_)},d=S===n;return u.jsxRuntimeExports.jsx(m.Button,{contrast:E,level:x,overflow:"nowrap",onClick:T,variant:"text",className:e.CSS(e.CSS.B("menu-item"),e.CSS.selected(d),t),size:s,gap:a,propagateClick:!0,...C})},N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_MENU_CLASS:i.CONTEXT_MENU_CLASS,CONTEXT_SELECTED:i.CONTEXT_SELECTED,CONTEXT_TARGET:i.CONTEXT_TARGET,ContextMenu:r.ContextMenu,Divider:M,Item:j,Menu:r.Menu,useContext:r.useContext,useContextMenu:r.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.Divider=c;exports.Divider$1=p;exports.external=N;
1
+ "use strict";const r=require("./Menu-BZ6ZGIv3.cjs"),u=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs");;/* empty css */const v=require("./Box-CNUz5BsV.cjs"),m=require("./Copy-BgRUUzWz.cjs"),i=require("./Animated-B_N04fe6.cjs"),c=({className:n,padded:t=!1,color:o,...s})=>(t===!0&&(t="center"),u.jsxRuntimeExports.jsx(v.Box$1,{className:e.CSS(e.CSS.B("divider"),t!==!1&&e.CSS.BM("divider","padded"),typeof t=="string"&&e.CSS.loc(t),n),borderColor:o,color:o,...s})),p=Object.freeze(Object.defineProperty({__proto__:null,Divider:c},Symbol.toStringTag,{value:"Module"})),M=()=>u.jsxRuntimeExports.jsx(c,{className:e.CSS.BE("menu","divider"),x:!0,padded:!0}),j=({itemKey:n,className:t,onClick:o,size:s,...C})=>{const{onClick:l,selected:S,level:x="p",gap:a,background:E}=r.useContext(),T=_=>{l(n),o?.(_)},d=S===n;return u.jsxRuntimeExports.jsx(m.Button,{contrast:E,level:x,overflow:"nowrap",onClick:T,variant:"text",className:e.CSS(e.CSS.B("menu-item"),e.CSS.selected(d),t),size:s,gap:a,propagateClick:!0,...C})},N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_MENU_CLASS:i.CONTEXT_MENU_CLASS,CONTEXT_SELECTED:i.CONTEXT_SELECTED,CONTEXT_TARGET:i.CONTEXT_TARGET,ContextMenu:r.ContextMenu,Divider:M,Item:j,Menu:r.Menu,useContext:r.useContext,useContextMenu:r.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.Divider=c;exports.Divider$1=p;exports.external=N;