dgz-ui-shared 1.1.19 → 1.1.21

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 (82) hide show
  1. package/dist/{Actions-1AyyAnYT.js → Actions-CKVu3P3q.js} +6 -6
  2. package/dist/Actions-uGf1oq7E.cjs +1 -0
  3. package/dist/{DateRangePicker-kaBfJaKY.cjs → DateRangePicker-C1c1mofH.cjs} +3 -3
  4. package/dist/{DateRangePicker-D57HSCpq.js → DateRangePicker-DFsQ10c7.js} +5 -5
  5. package/dist/{ExportData-dSwR1N1v.js → ExportData-1xS2UAoq.js} +6 -6
  6. package/dist/ExportData-ApStkEWC.cjs +1 -0
  7. package/dist/{FilterWrapper-DeQRSTAc.js → FilterWrapper-Dk18nVPy.js} +31 -31
  8. package/dist/{FilterWrapper-B6p9fJWb.cjs → FilterWrapper-DvNjUQih.cjs} +5 -5
  9. package/dist/{MyInput-BzXWiSVj.cjs → MyInput-9MnlVZ4h.cjs} +1 -1
  10. package/dist/{MyInput-CkiPA3UG.js → MyInput-B-QCpehg.js} +57 -57
  11. package/dist/{MyLimitSelect-DHyIJawN.cjs → MyLimitSelect-BU1FClXt.cjs} +2 -2
  12. package/dist/{MyLimitSelect-XMVeSEqs.js → MyLimitSelect-D5ZWDY-s.js} +13 -13
  13. package/dist/{MySelect-Bmw1Krye.js → MySelect-C5uWRVJh.js} +7 -7
  14. package/dist/MySelect-DNK997Bi.cjs +1 -0
  15. package/dist/{button-2punbuN6-BBVynxVj.cjs → button-CdZDBhmr-3yMPCRDo.cjs} +1 -1
  16. package/dist/{button-2punbuN6-Bxlf8sMg.js → button-CdZDBhmr-BT_j3ig5.js} +7 -7
  17. package/dist/{chevron-right-HWBijj-I-Bdcofm_0.cjs → chevron-right-HWBijj-I-CZBu0GKg.cjs} +1 -1
  18. package/dist/{chevron-right-HWBijj-I-Bkp_tbGM.js → chevron-right-HWBijj-I-DsFUufdU.js} +1 -1
  19. package/dist/components/actions/index.cjs.js +1 -1
  20. package/dist/components/actions/index.es.js +1 -1
  21. package/dist/components/confirm/index.cjs.js +1 -1
  22. package/dist/components/confirm/index.es.js +1 -1
  23. package/dist/components/datatable/index.cjs.js +5 -5
  24. package/dist/components/datatable/index.es.js +204 -201
  25. package/dist/components/datepicker/index.cjs.js +1 -1
  26. package/dist/components/datepicker/index.es.js +1 -1
  27. package/dist/components/export/index.cjs.js +1 -1
  28. package/dist/components/export/index.es.js +1 -1
  29. package/dist/components/filters/index.cjs.js +1 -1
  30. package/dist/components/filters/index.es.js +6 -6
  31. package/dist/components/form/index.cjs.js +2 -2
  32. package/dist/components/form/index.es.js +33 -33
  33. package/dist/components/modal/index.cjs.js +2 -2
  34. package/dist/components/modal/index.es.js +7 -7
  35. package/dist/components/pagination/index.cjs.js +1 -1
  36. package/dist/components/pagination/index.es.js +1 -1
  37. package/dist/components/theme/index.cjs.js +3 -3
  38. package/dist/components/theme/index.es.js +4 -4
  39. package/dist/components/tooltip/index.cjs.js +1 -1
  40. package/dist/components/tooltip/index.es.js +44 -44
  41. package/dist/{createLucideIcon-B950nf2d-Brk4LIHH.js → createLucideIcon-B950nf2d-9wLYOF5y.js} +1 -1
  42. package/dist/{createLucideIcon-B950nf2d-BaIaB_Fz.cjs → createLucideIcon-B950nf2d-DrrWmvZU.cjs} +4 -4
  43. package/dist/dropdown-menu-TWRSm6RK-DQ03CnVw.cjs +1 -0
  44. package/dist/{dropdown-menu-lArmcWbC-jIg7CHSO.js → dropdown-menu-TWRSm6RK-D_FJpI4C.js} +83 -83
  45. package/dist/hooks/index.cjs.js +1 -1
  46. package/dist/hooks/index.es.js +2 -2
  47. package/dist/{index-CiR6yUKf-BEMUeikM.js → index-BL59b1Bz-C9bJE_xn.js} +90 -90
  48. package/dist/{index-CiR6yUKf-B1h5S0LB.cjs → index-BL59b1Bz-COeLljOH.cjs} +4 -4
  49. package/dist/{index-DUK8Bn0m-Clp83x2_.js → index-C4qYhCZt-BZQduTld.js} +29 -29
  50. package/dist/index-C4qYhCZt-DWBiWQ93.cjs +5 -0
  51. package/dist/index-CbK6da4c-QXbo5Vgb.cjs +1 -0
  52. package/dist/{index-Dp0y0FJw-B42jTfO0.js → index-CbK6da4c-d_6FdYZH.js} +1 -1
  53. package/dist/{index-GjjxAtgk-Dl4JPPHK.js → index-Cths1nBq-BUfZy21E.js} +71 -71
  54. package/dist/index-Cths1nBq-DzDn15YE.cjs +11 -0
  55. package/dist/{index-CMHo7s91-D6S6dZoG.cjs → index-ZsCkaYy6-Bjyf2SZs.cjs} +1 -1
  56. package/dist/{index-CMHo7s91-BRFfxKgJ.js → index-ZsCkaYy6-Cw9HUeiu.js} +1 -1
  57. package/dist/index.esm-CQEA7FC8.js +1007 -0
  58. package/dist/index.esm-TI7V1a5F.cjs +1 -0
  59. package/dist/{input-mask-Chc-UIWX-Br4gXX2T.js → input-mask-DBLFIvhN-BBxoZxnd.js} +3738 -3687
  60. package/dist/input-mask-DBLFIvhN-C_0RAR2l.cjs +190 -0
  61. package/dist/{popover-Dvg-QyCn-CJ3lAD8Q.js → popover-OZcfKDD9-C2PVWPLS.js} +17 -17
  62. package/dist/popover-OZcfKDD9-KUWOsIOs.cjs +1 -0
  63. package/dist/{react-select-CKazfTiF-1EhjhhlL.js → react-select-DVPHHTAP-D2u3DqGr.js} +2 -2
  64. package/dist/{react-select-CKazfTiF-Bb-Uf4tM.cjs → react-select-DVPHHTAP-DKDInFsM.cjs} +9 -9
  65. package/dist/types/components/datatable/DataTable.d.ts +1 -1
  66. package/dist/types/components/datatable/DataTable.d.ts.map +1 -1
  67. package/dist/{unstyled-4GbbDand.cjs → unstyled-BFCMBSGZ.cjs} +2 -2
  68. package/dist/{unstyled-Cmnf9U5U.js → unstyled-BMbrfzye.js} +42 -42
  69. package/dist/{useFilter-CiORTEHP.cjs → useFilter-Cwz8oftI.cjs} +1 -1
  70. package/dist/{useFilter-DMpxv27U.js → useFilter-DJunNBm2.js} +1 -1
  71. package/package.json +2 -2
  72. package/dist/Actions-Dg5LYo56.cjs +0 -1
  73. package/dist/ExportData-DUuHYzA-.cjs +0 -1
  74. package/dist/MySelect-lSICw49W.cjs +0 -1
  75. package/dist/dropdown-menu-lArmcWbC-DCwGoXng.cjs +0 -1
  76. package/dist/index-DUK8Bn0m-BIulOZIQ.cjs +0 -5
  77. package/dist/index-Dp0y0FJw-DVwS4FcV.cjs +0 -1
  78. package/dist/index-GjjxAtgk-DaxZek3n.cjs +0 -11
  79. package/dist/index.esm-CpcLzfLZ.cjs +0 -1
  80. package/dist/index.esm-lbl2HgR1.js +0 -970
  81. package/dist/input-mask-Chc-UIWX-DimBl_dd.cjs +0 -190
  82. package/dist/popover-Dvg-QyCn-Dr2o9oAG.cjs +0 -1
@@ -1,12 +1,12 @@
1
- import { j as _ } from "../../jsx-runtime-DS1N_tNq.js";
2
- import { j as q, g as J, y as Q, a as f, x as H, h as V, b as w, R as W, M as Z, _ as $ } from "../../index-CiR6yUKf-BEMUeikM.js";
1
+ import { j as k } from "../../jsx-runtime-DS1N_tNq.js";
2
+ import { j as $, g as q, y as J, a as f, i as H, h as Q, b as w, R as V, M as W, e as Z } from "../../index-BL59b1Bz-C9bJE_xn.js";
3
3
  import * as i from "react";
4
- import { o as A, i as ee, r as te, s as oe, c as ne } from "../../index-CMHo7s91-BRFfxKgJ.js";
5
- import { n as re } from "../../index-Dp0y0FJw-B42jTfO0.js";
4
+ import { o as A, i as ee, r as te, s as oe, c as ne } from "../../index-ZsCkaYy6-Cw9HUeiu.js";
5
+ import { n as re } from "../../index-CbK6da4c-d_6FdYZH.js";
6
6
  import { m as ie } from "../../utils-B6fNqzRf-B1_jG1K7.js";
7
- var [k, Me] = q("Tooltip", [
7
+ var [_, Me] = $("Tooltip", [
8
8
  A
9
- ]), P = A(), B = "TooltipProvider", se = 700, L = "tooltip.open", [ae, M] = k(B), z = (t) => {
9
+ ]), P = A(), B = "TooltipProvider", se = 700, L = "tooltip.open", [ae, M] = _(B), z = (t) => {
10
10
  const {
11
11
  __scopeTooltip: o,
12
12
  delayDuration: e = se,
@@ -42,7 +42,7 @@ var [k, Me] = q("Tooltip", [
42
42
  );
43
43
  };
44
44
  z.displayName = B;
45
- var j = "Tooltip", [le, D] = k(j), F = (t) => {
45
+ var R = "Tooltip", [le, D] = _(R), F = (t) => {
46
46
  const {
47
47
  __scopeTooltip: o,
48
48
  children: e,
@@ -51,18 +51,18 @@ var j = "Tooltip", [le, D] = k(j), F = (t) => {
51
51
  onOpenChange: l,
52
52
  disableHoverableContent: a,
53
53
  delayDuration: x
54
- } = t, s = M(j, t.__scopeTooltip), d = P(o), [c, p] = i.useState(null), h = J(), u = i.useRef(0), m = a ?? s.disableHoverableContent, v = x ?? s.delayDuration, g = i.useRef(!1), [b, y] = Q({
54
+ } = t, s = M(R, t.__scopeTooltip), d = P(o), [c, p] = i.useState(null), h = q(), u = i.useRef(0), m = a ?? s.disableHoverableContent, v = x ?? s.delayDuration, g = i.useRef(!1), [b, y] = J({
55
55
  prop: n,
56
56
  defaultProp: r ?? !1,
57
- onChange: (N) => {
58
- N ? (s.onOpen(), document.dispatchEvent(new CustomEvent(L))) : s.onClose(), l == null || l(N);
57
+ onChange: (I) => {
58
+ I ? (s.onOpen(), document.dispatchEvent(new CustomEvent(L))) : s.onClose(), l == null || l(I);
59
59
  },
60
- caller: j
60
+ caller: R
61
61
  }), C = i.useMemo(() => b ? g.current ? "delayed-open" : "instant-open" : "closed", [b]), E = i.useCallback(() => {
62
62
  window.clearTimeout(u.current), u.current = 0, g.current = !1, y(!0);
63
- }, [y]), R = i.useCallback(() => {
63
+ }, [y]), j = i.useCallback(() => {
64
64
  window.clearTimeout(u.current), u.current = 0, y(!1);
65
- }, [y]), I = i.useCallback(() => {
65
+ }, [y]), N = i.useCallback(() => {
66
66
  window.clearTimeout(u.current), u.current = window.setTimeout(() => {
67
67
  g.current = !0, y(!0), u.current = 0;
68
68
  }, v);
@@ -79,24 +79,24 @@ var j = "Tooltip", [le, D] = k(j), F = (t) => {
79
79
  trigger: c,
80
80
  onTriggerChange: p,
81
81
  onTriggerEnter: i.useCallback(() => {
82
- s.isOpenDelayedRef.current ? I() : E();
83
- }, [s.isOpenDelayedRef, I, E]),
82
+ s.isOpenDelayedRef.current ? N() : E();
83
+ }, [s.isOpenDelayedRef, N, E]),
84
84
  onTriggerLeave: i.useCallback(() => {
85
- m ? R() : (window.clearTimeout(u.current), u.current = 0);
86
- }, [R, m]),
85
+ m ? j() : (window.clearTimeout(u.current), u.current = 0);
86
+ }, [j, m]),
87
87
  onOpen: E,
88
- onClose: R,
88
+ onClose: j,
89
89
  disableHoverableContent: m,
90
90
  children: e
91
91
  }
92
92
  ) });
93
93
  };
94
- F.displayName = j;
94
+ F.displayName = R;
95
95
  var O = "TooltipTrigger", S = i.forwardRef(
96
96
  (t, o) => {
97
97
  const { __scopeTooltip: e, ...n } = t, r = D(O, e), l = M(O, e), a = P(e), x = i.useRef(null), s = H(o, x, r.onTriggerChange), d = i.useRef(!1), c = i.useRef(!1), p = i.useCallback(() => d.current = !1, []);
98
98
  return i.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ f.jsx(te, { asChild: !0, ...a, children: /* @__PURE__ */ f.jsx(
99
- V.button,
99
+ Q.button,
100
100
  {
101
101
  "aria-describedby": r.open ? r.contentId : void 0,
102
102
  "data-state": r.stateAttribute,
@@ -121,20 +121,20 @@ var O = "TooltipTrigger", S = i.forwardRef(
121
121
  }
122
122
  );
123
123
  S.displayName = O;
124
- var ce = "TooltipPortal", [Ie, ue] = k(ce, {
124
+ var ce = "TooltipPortal", [Ne, ue] = _(ce, {
125
125
  forceMount: void 0
126
- }), T = "TooltipContent", K = i.forwardRef(
126
+ }), T = "TooltipContent", G = i.forwardRef(
127
127
  (t, o) => {
128
128
  const e = ue(T, t.__scopeTooltip), { forceMount: n = e.forceMount, side: r = "top", ...l } = t, a = D(T, t.__scopeTooltip);
129
- return /* @__PURE__ */ f.jsx(W, { present: n || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ f.jsx(X, { side: r, ...l, ref: o }) : /* @__PURE__ */ f.jsx(de, { side: r, ...l, ref: o }) });
129
+ return /* @__PURE__ */ f.jsx(V, { present: n || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ f.jsx(K, { side: r, ...l, ref: o }) : /* @__PURE__ */ f.jsx(de, { side: r, ...l, ref: o }) });
130
130
  }
131
131
  ), de = i.forwardRef((t, o) => {
132
132
  const e = D(T, t.__scopeTooltip), n = M(T, t.__scopeTooltip), r = i.useRef(null), l = H(o, r), [a, x] = i.useState(null), { trigger: s, onClose: d } = e, c = r.current, { onPointerInTransitChange: p } = n, h = i.useCallback(() => {
133
133
  x(null), p(!1);
134
134
  }, [p]), u = i.useCallback(
135
135
  (m, v) => {
136
- const g = m.currentTarget, b = { x: m.clientX, y: m.clientY }, y = me(b, g.getBoundingClientRect()), C = ge(b, y), E = ve(v.getBoundingClientRect()), R = be([...C, ...E]);
137
- x(R), p(!0);
136
+ const g = m.currentTarget, b = { x: m.clientX, y: m.clientY }, y = me(b, g.getBoundingClientRect()), C = ge(b, y), E = ve(v.getBoundingClientRect()), j = be([...C, ...E]);
137
+ x(j), p(!0);
138
138
  },
139
139
  [p]
140
140
  );
@@ -153,8 +153,8 @@ var ce = "TooltipPortal", [Ie, ue] = k(ce, {
153
153
  };
154
154
  return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
155
155
  }
156
- }, [s, c, a, d, h]), /* @__PURE__ */ f.jsx(X, { ...t, ref: l });
157
- }), [pe, fe] = k(j, { isInside: !1 }), xe = $("TooltipContent"), X = i.forwardRef(
156
+ }, [s, c, a, d, h]), /* @__PURE__ */ f.jsx(K, { ...t, ref: l });
157
+ }), [pe, fe] = _(R, { isInside: !1 }), xe = Z("TooltipContent"), K = i.forwardRef(
158
158
  (t, o) => {
159
159
  const {
160
160
  __scopeTooltip: e,
@@ -173,7 +173,7 @@ var ce = "TooltipPortal", [Ie, ue] = k(ce, {
173
173
  return window.addEventListener("scroll", p, { capture: !0 }), () => window.removeEventListener("scroll", p, { capture: !0 });
174
174
  }
175
175
  }, [s.trigger, c]), /* @__PURE__ */ f.jsx(
176
- Z,
176
+ W,
177
177
  {
178
178
  asChild: !0,
179
179
  disableOutsidePointerEvents: !1,
@@ -206,17 +206,17 @@ var ce = "TooltipPortal", [Ie, ue] = k(ce, {
206
206
  );
207
207
  }
208
208
  );
209
- K.displayName = T;
210
- var Y = "TooltipArrow", he = i.forwardRef(
209
+ G.displayName = T;
210
+ var X = "TooltipArrow", he = i.forwardRef(
211
211
  (t, o) => {
212
212
  const { __scopeTooltip: e, ...n } = t, r = P(e);
213
213
  return fe(
214
- Y,
214
+ X,
215
215
  e
216
216
  ).isInside ? null : /* @__PURE__ */ f.jsx(ne, { ...r, ...n, ref: o });
217
217
  }
218
218
  );
219
- he.displayName = Y;
219
+ he.displayName = X;
220
220
  function me(t, o) {
221
221
  const e = Math.abs(o.top - t.y), n = Math.abs(o.bottom - t.y), r = Math.abs(o.right - t.x), l = Math.abs(o.left - t.x);
222
222
  switch (Math.min(e, n, r, l)) {
@@ -309,9 +309,9 @@ function we(t) {
309
309
  }
310
310
  return e.pop(), o.length === 1 && e.length === 1 && o[0].x === e[0].x && o[0].y === e[0].y ? o : o.concat(e);
311
311
  }
312
- var Te = z, Ce = F, Ee = S, G = K;
313
- const Re = Te, je = Ce, _e = Ee, U = i.forwardRef(({ className: t, sideOffset: o = 4, ...e }, n) => /* @__PURE__ */ f.jsx(
314
- G,
312
+ var Te = z, Ce = F, Ee = S, Y = G;
313
+ const je = Te, Re = Ce, ke = Ee, U = i.forwardRef(({ className: t, sideOffset: o = 4, ...e }, n) => /* @__PURE__ */ f.jsx(
314
+ Y,
315
315
  {
316
316
  ref: n,
317
317
  sideOffset: o,
@@ -322,20 +322,20 @@ const Re = Te, je = Ce, _e = Ee, U = i.forwardRef(({ className: t, sideOffset: o
322
322
  ...e
323
323
  }
324
324
  ));
325
- U.displayName = G.displayName;
326
- const Ne = ({
325
+ U.displayName = Y.displayName;
326
+ const Ie = ({
327
327
  content: t,
328
328
  children: o,
329
329
  show: e = !0,
330
330
  ...n
331
- }) => e ? /* @__PURE__ */ _.jsx(Re, { children: /* @__PURE__ */ _.jsxs(je, { children: [
332
- /* @__PURE__ */ _.jsx(U, { ...n, children: t }),
333
- /* @__PURE__ */ _.jsx(_e, { children: o })
331
+ }) => e ? /* @__PURE__ */ k.jsx(je, { children: /* @__PURE__ */ k.jsxs(Re, { children: [
332
+ /* @__PURE__ */ k.jsx(U, { ...n, children: t }),
333
+ /* @__PURE__ */ k.jsx(ke, { children: o })
334
334
  ] }) }) : o;
335
335
  export {
336
- Ne as MyTooltip,
337
- je as Tooltip,
336
+ Ie as MyTooltip,
337
+ Re as Tooltip,
338
338
  U as TooltipContent,
339
- Re as TooltipProvider,
340
- _e as TooltipTrigger
339
+ je as TooltipProvider,
340
+ ke as TooltipTrigger
341
341
  };
@@ -1,6 +1,6 @@
1
1
  import * as i from "react";
2
2
  import { useState as we, forwardRef as ue, createElement as Z } from "react";
3
- import { e as Ee, a as ie, h as le, n as z, x as Se } from "./index-CiR6yUKf-BEMUeikM.js";
3
+ import { d as Ee, a as ie, h as le, n as z, i as Se } from "./index-BL59b1Bz-C9bJE_xn.js";
4
4
  import Ce from "react-dom";
5
5
  var D = "focusScope.autoFocusOnMount", F = "focusScope.autoFocusOnUnmount", G = { bubbles: !1, cancelable: !0 }, Ne = "FocusScope", ke = i.forwardRef((e, t) => {
6
6
  const {
@@ -1,4 +1,4 @@
1
- "use strict";const R=require("react"),A=require("./index-CiR6yUKf-B1h5S0LB.cjs"),we=require("react-dom");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Ee(R);var K="focusScope.autoFocusOnMount",U="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},Se="FocusScope",ue=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...s}=e,[o,w]=i.useState(null),b=A.n(c),v=A.n(u),d=i.useRef(null),f=A.x(t,a=>w(a)),p=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let a=function(g){if(p.paused||!o)return;const y=g.target;o.contains(y)?d.current=y:N(d.current,{select:!0})},l=function(g){if(p.paused||!o)return;const y=g.relatedTarget;y!==null&&(o.contains(y)||N(d.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const y of g)y.removedNodes.length>0&&N(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",l);const h=new MutationObserver(m);return o&&h.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",l),h.disconnect()}}},[r,o,p.paused]),i.useEffect(()=>{if(o){Q.add(p);const a=document.activeElement;if(!o.contains(a)){const l=new CustomEvent(K,G);o.addEventListener(K,b),o.dispatchEvent(l),l.defaultPrevented||(Ce(Me(ie(o)),{select:!0}),document.activeElement===a&&N(o))}return()=>{o.removeEventListener(K,b),setTimeout(()=>{const l=new CustomEvent(U,G);o.addEventListener(U,v),o.dispatchEvent(l),l.defaultPrevented||N(a??document.body,{select:!0}),o.removeEventListener(U,v),Q.remove(p)},0)}}},[o,b,v,p]);const S=i.useCallback(a=>{if(!n&&!r||p.paused)return;const l=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,m=document.activeElement;if(l&&m){const h=a.currentTarget,[g,y]=ke(h);g&&y?!a.shiftKey&&m===y?(a.preventDefault(),n&&N(g,{select:!0})):a.shiftKey&&m===g&&(a.preventDefault(),n&&N(y,{select:!0})):m===h&&a.preventDefault()}},[n,r,p.paused]);return A.ae.jsx(A.h.div,{tabIndex:-1,...s,ref:f,onKeyDown:S})});ue.displayName=Se;function Ce(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function ke(e){const t=ie(e),n=J(t,e),r=J(t.reverse(),e);return[n,r]}function ie(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J(e,t){for(const n of e)if(!Ne(n,{upTo:t}))return n}function Ne(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ae(e){return e instanceof HTMLInputElement&&"select"in e}function N(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ae(e)&&t&&e.select()}}var Q=Re();function Re(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=V(e,t),e.unshift(t)},remove(t){var n;e=V(e,t),(n=e[0])==null||n.resume()}}}function V(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Me(e){return e.filter(t=>t.tagName!=="A")}var Te="Portal",le=i.forwardRef((e,t)=>{var n;const{container:r,...c}=e,[u,s]=i.useState(!1);A.w$1(()=>s(!0),[]);const o=r||u&&((n=globalThis==null?void 0:globalThis.document)==null?void 0:n.body);return o?we.createPortal(A.ae.jsx(A.h.div,{...c,ref:t}),o):null});le.displayName=Te;var X=0;function Le(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ee()),document.body.insertAdjacentElement("beforeend",e[1]??ee()),X++,()=>{X===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),X--}},[])}function ee(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},C.apply(this,arguments)};function se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function xe(e,t,n){for(var r=0,c=t.length,u;r<c;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var D="right-scroll-bar-position",F="width-before-scroll-bar",Oe="with-scroll-bars-hidden",Pe="--removed-body-scroll-bar-size";function Y(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function We(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var _e=typeof window<"u"?i.useLayoutEffect:i.useEffect,te=new WeakMap;function je(e,t){var n=We(null,function(r){return e.forEach(function(c){return Y(c,r)})});return _e(function(){var r=te.get(n);if(r){var c=new Set(r),u=new Set(e),s=n.current;c.forEach(function(o){u.has(o)||Y(o,null)}),u.forEach(function(o){c.has(o)||Y(o,s)})}te.set(n,e)},[e]),n}function Ie(e){return e}function De(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var s=t(u,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(u){for(r=!0;n.length;){var s=n;n=[],s.forEach(u)}n={push:function(o){return u(o)},filter:function(){return n}}},assignMedium:function(u){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(u),s=n}var w=function(){var v=s;s=[],v.forEach(u)},b=function(){return Promise.resolve().then(w)};b(),n={push:function(v){s.push(v),b()},filter:function(v){return s=s.filter(v),n}}}};return c}function Fe(e){e===void 0&&(e={});var t=De(null);return t.options=C({async:!0,ssr:!1},e),t}var de=function(e){var t=e.sideCar,n=se(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,C({},n))};de.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),de}var fe=Fe(),q=function(){},B=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),c=r[0],u=r[1],s=e.forwardProps,o=e.children,w=e.className,b=e.removeScrollBar,v=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,S=e.noIsolation,a=e.inert,l=e.allowPinchZoom,m=e.as,h=m===void 0?"div":m,g=e.gapMode,y=se(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,M=je([n,t]),k=C(C({},y),c);return i.createElement(i.Fragment,null,v&&i.createElement(E,{sideCar:fe,removeScrollBar:b,shards:d,noRelative:p,noIsolation:S,inert:a,setCallbacks:u,allowPinchZoom:!!l,lockRef:n,gapMode:g}),s?i.cloneElement(i.Children.only(o),C(C({},k),{ref:M})):i.createElement(h,C({},k,{className:w,ref:M}),o))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:F,zeroRight:D};var Ke=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ue(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ke();return t&&e.setAttribute("nonce",t),e}function Xe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ye(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ue())&&(Xe(t,n),Ye(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ze=function(){var e=qe();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ve=function(){var e=Ze(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},ze={left:0,top:0,right:0,gap:0},Z=function(e){return parseInt(e||"",10)||0},He=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[Z(n),Z(r),Z(c)]},$e=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ze;var t=He(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ge=ve(),O="data-scroll-locked",Je=function(e,t,n,r){var c=e.left,u=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
1
+ "use strict";const R=require("react"),A=require("./index-BL59b1Bz-COeLljOH.cjs"),we=require("react-dom");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Ee(R);var K="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},Se="FocusScope",ue=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...s}=e,[o,w]=i.useState(null),b=A.n(c),v=A.n(u),d=i.useRef(null),f=A.i(t,a=>w(a)),p=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let a=function(g){if(p.paused||!o)return;const y=g.target;o.contains(y)?d.current=y:N(d.current,{select:!0})},l=function(g){if(p.paused||!o)return;const y=g.relatedTarget;y!==null&&(o.contains(y)||N(d.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const y of g)y.removedNodes.length>0&&N(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",l);const h=new MutationObserver(m);return o&&h.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",l),h.disconnect()}}},[r,o,p.paused]),i.useEffect(()=>{if(o){Q.add(p);const a=document.activeElement;if(!o.contains(a)){const l=new CustomEvent(K,G);o.addEventListener(K,b),o.dispatchEvent(l),l.defaultPrevented||(Ce(Me(ie(o)),{select:!0}),document.activeElement===a&&N(o))}return()=>{o.removeEventListener(K,b),setTimeout(()=>{const l=new CustomEvent(X,G);o.addEventListener(X,v),o.dispatchEvent(l),l.defaultPrevented||N(a??document.body,{select:!0}),o.removeEventListener(X,v),Q.remove(p)},0)}}},[o,b,v,p]);const S=i.useCallback(a=>{if(!n&&!r||p.paused)return;const l=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,m=document.activeElement;if(l&&m){const h=a.currentTarget,[g,y]=ke(h);g&&y?!a.shiftKey&&m===y?(a.preventDefault(),n&&N(g,{select:!0})):a.shiftKey&&m===g&&(a.preventDefault(),n&&N(y,{select:!0})):m===h&&a.preventDefault()}},[n,r,p.paused]);return A.ae.jsx(A.h.div,{tabIndex:-1,...s,ref:f,onKeyDown:S})});ue.displayName=Se;function Ce(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function ke(e){const t=ie(e),n=J(t,e),r=J(t.reverse(),e);return[n,r]}function ie(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J(e,t){for(const n of e)if(!Ne(n,{upTo:t}))return n}function Ne(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ae(e){return e instanceof HTMLInputElement&&"select"in e}function N(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ae(e)&&t&&e.select()}}var Q=Re();function Re(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=V(e,t),e.unshift(t)},remove(t){var n;e=V(e,t),(n=e[0])==null||n.resume()}}}function V(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Me(e){return e.filter(t=>t.tagName!=="A")}var Te="Portal",le=i.forwardRef((e,t)=>{var n;const{container:r,...c}=e,[u,s]=i.useState(!1);A.w$1(()=>s(!0),[]);const o=r||u&&((n=globalThis==null?void 0:globalThis.document)==null?void 0:n.body);return o?we.createPortal(A.ae.jsx(A.h.div,{...c,ref:t}),o):null});le.displayName=Te;var Y=0;function Le(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ee()),document.body.insertAdjacentElement("beforeend",e[1]??ee()),Y++,()=>{Y===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Y--}},[])}function ee(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},C.apply(this,arguments)};function se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function xe(e,t,n){for(var r=0,c=t.length,u;r<c;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var D="right-scroll-bar-position",B="width-before-scroll-bar",Oe="with-scroll-bars-hidden",Pe="--removed-body-scroll-bar-size";function q(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function We(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var _e=typeof window<"u"?i.useLayoutEffect:i.useEffect,te=new WeakMap;function je(e,t){var n=We(null,function(r){return e.forEach(function(c){return q(c,r)})});return _e(function(){var r=te.get(n);if(r){var c=new Set(r),u=new Set(e),s=n.current;c.forEach(function(o){u.has(o)||q(o,null)}),u.forEach(function(o){c.has(o)||q(o,s)})}te.set(n,e)},[e]),n}function Ie(e){return e}function De(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var s=t(u,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(u){for(r=!0;n.length;){var s=n;n=[],s.forEach(u)}n={push:function(o){return u(o)},filter:function(){return n}}},assignMedium:function(u){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(u),s=n}var w=function(){var v=s;s=[],v.forEach(u)},b=function(){return Promise.resolve().then(w)};b(),n={push:function(v){s.push(v),b()},filter:function(v){return s=s.filter(v),n}}}};return c}function Be(e){e===void 0&&(e={});var t=De(null);return t.options=C({async:!0,ssr:!1},e),t}var de=function(e){var t=e.sideCar,n=se(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,C({},n))};de.isSideCarExport=!0;function Fe(e,t){return e.useMedium(t),de}var fe=Be(),U=function(){},F=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:U}),c=r[0],u=r[1],s=e.forwardProps,o=e.children,w=e.className,b=e.removeScrollBar,v=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,S=e.noIsolation,a=e.inert,l=e.allowPinchZoom,m=e.as,h=m===void 0?"div":m,g=e.gapMode,y=se(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,M=je([n,t]),k=C(C({},y),c);return i.createElement(i.Fragment,null,v&&i.createElement(E,{sideCar:fe,removeScrollBar:b,shards:d,noRelative:p,noIsolation:S,inert:a,setCallbacks:u,allowPinchZoom:!!l,lockRef:n,gapMode:g}),s?i.cloneElement(i.Children.only(o),C(C({},k),{ref:M})):i.createElement(h,C({},k,{className:w,ref:M}),o))});F.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};F.classNames={fullWidth:B,zeroRight:D};var Ke=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ke();return t&&e.setAttribute("nonce",t),e}function Ye(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ue=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xe())&&(Ye(t,n),qe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ze=function(){var e=Ue();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ve=function(){var e=Ze(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},ze={left:0,top:0,right:0,gap:0},Z=function(e){return parseInt(e||"",10)||0},He=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[Z(n),Z(r),Z(c)]},$e=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ze;var t=He(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ge=ve(),O="data-scroll-locked",Je=function(e,t,n,r){var c=e.left,u=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(Oe,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(o,"px ").concat(r,`;
@@ -20,7 +20,7 @@
20
20
  right: `).concat(o,"px ").concat(r,`;
21
21
  }
22
22
 
23
- .`).concat(F,` {
23
+ .`).concat(B,` {
24
24
  margin-right: `).concat(o,"px ").concat(r,`;
25
25
  }
26
26
 
@@ -28,7 +28,7 @@
28
28
  right: 0 `).concat(r,`;
29
29
  }
30
30
 
31
- .`).concat(F," .").concat(F,` {
31
+ .`).concat(B," .").concat(B,` {
32
32
  margin-right: 0 `).concat(r,`;
33
33
  }
34
34
 
@@ -38,7 +38,7 @@
38
38
  `)},ne=function(){var e=parseInt(document.body.getAttribute(O)||"0",10);return isFinite(e)?e:0},Qe=function(){i.useEffect(function(){return document.body.setAttribute(O,(ne()+1).toString()),function(){var e=ne()-1;e<=0?document.body.removeAttribute(O):document.body.setAttribute(O,e.toString())}},[])},Ve=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;Qe();var u=i.useMemo(function(){return $e(c)},[c]);return i.createElement(Ge,{styles:Je(u,!t,c,n?"":"!important")})},H=!1;if(typeof window<"u")try{var W=Object.defineProperty({},"passive",{get:function(){return H=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch{H=!1}var T=H?{passive:!1}:!1,et=function(e){return e.tagName==="TEXTAREA"},pe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!et(e)&&n[t]==="visible")},tt=function(e){return pe(e,"overflowY")},nt=function(e){return pe(e,"overflowX")},re=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=me(e,r);if(c){var u=he(e,r),s=u[1],o=u[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ot=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},me=function(e,t){return e==="v"?tt(t):nt(t)},he=function(e,t){return e==="v"?rt(t):ot(t)},at=function(e,t){return e==="h"&&t==="rtl"?-1:1},ct=function(e,t,n,r,c){var u=at(e,window.getComputedStyle(t).direction),s=u*r,o=n.target,w=t.contains(o),b=!1,v=s>0,d=0,f=0;do{if(!o)break;var p=he(e,o),S=p[0],a=p[1],l=p[2],m=a-l-u*S;(S||m)&&me(e,o)&&(d+=m,f+=S);var h=o.parentNode;o=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!w&&o!==document.body||w&&(t.contains(o)||t===o));return(v&&Math.abs(d)<1||!v&&Math.abs(f)<1)&&(b=!0),b},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oe=function(e){return[e.deltaX,e.deltaY]},ae=function(e){return e&&"current"in e?e.current:e},ut=function(e,t){return e[0]===t[0]&&e[1]===t[1]},it=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},lt=0,L=[];function st(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),c=i.useState(lt++)[0],u=i.useState(ve)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var a=xe([e.lockRef.current],(e.shards||[]).map(ae)).filter(Boolean);return a.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),a.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=i.useCallback(function(a,l){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!s.current.allowPinchZoom;var m=_(a),h=n.current,g="deltaX"in a?a.deltaX:h[0]-m[0],y="deltaY"in a?a.deltaY:h[1]-m[1],E,M=a.target,k=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in a&&k==="h"&&M.type==="range")return!1;var P=re(k,M);if(!P)return!0;if(P?E=k:(E=k==="v"?"h":"v",P=re(k,M)),!P)return!1;if(!r.current&&"changedTouches"in a&&(g||y)&&(r.current=E),!E)return!0;var $=r.current||E;return ct($,l,a,$==="h"?g:y)},[]),w=i.useCallback(function(a){var l=a;if(!(!L.length||L[L.length-1]!==u)){var m="deltaY"in l?oe(l):_(l),h=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&ut(E.delta,m)})[0];if(h&&h.should){l.cancelable&&l.preventDefault();return}if(!h){var g=(s.current.shards||[]).map(ae).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=g.length>0?o(l,g[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=i.useCallback(function(a,l,m,h){var g={name:a,delta:l,target:m,should:h,shadowParent:dt(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),v=i.useCallback(function(a){n.current=_(a),r.current=void 0},[]),d=i.useCallback(function(a){b(a.type,oe(a),a.target,o(a,e.lockRef.current))},[]),f=i.useCallback(function(a){b(a.type,_(a),a.target,o(a,e.lockRef.current))},[]);i.useEffect(function(){return L.push(u),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",w,T),document.addEventListener("touchmove",w,T),document.addEventListener("touchstart",v,T),function(){L=L.filter(function(a){return a!==u}),document.removeEventListener("wheel",w,T),document.removeEventListener("touchmove",w,T),document.removeEventListener("touchstart",v,T)}},[]);var p=e.removeScrollBar,S=e.inert;return i.createElement(i.Fragment,null,S?i.createElement(u,{styles:it(c)}):null,p?i.createElement(Ve,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ft=Be(fe,st);var ge=i.forwardRef(function(e,t){return i.createElement(B,C({},e,{ref:t,sideCar:ft}))});ge.classNames=B.classNames;var vt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},x=new WeakMap,j=new WeakMap,I={},z=0,ye=function(e){return e&&(e.host||ye(e.parentNode))},pt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ye(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},mt=function(e,t,n,r){var c=pt(t,Array.isArray(e)?e:[e]);I[n]||(I[n]=new WeakMap);var u=I[n],s=[],o=new Set,w=new Set(c),b=function(d){!d||o.has(d)||(o.add(d),b(d.parentNode))};c.forEach(b);var v=function(d){!d||w.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))v(f);else try{var p=f.getAttribute(r),S=p!==null&&p!=="false",a=(x.get(f)||0)+1,l=(u.get(f)||0)+1;x.set(f,a),u.set(f,l),s.push(f),a===1&&S&&j.set(f,!0),l===1&&f.setAttribute(n,"true"),S||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return v(t),o.clear(),z++,function(){s.forEach(function(d){var f=x.get(d)-1,p=u.get(d)-1;x.set(d,f),u.set(d,p),f||(j.has(d)||d.removeAttribute(r),j.delete(d)),p||d.removeAttribute(n)}),z--,z||(x=new WeakMap,x=new WeakMap,j=new WeakMap,I={})}},ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=vt(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),mt(r,c,n,"aria-hidden")):function(){return null}};/**
41
+ `)},lt=0,L=[];function st(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),c=i.useState(lt++)[0],u=i.useState(ve)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var a=xe([e.lockRef.current],(e.shards||[]).map(ae)).filter(Boolean);return a.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),a.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=i.useCallback(function(a,l){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!s.current.allowPinchZoom;var m=_(a),h=n.current,g="deltaX"in a?a.deltaX:h[0]-m[0],y="deltaY"in a?a.deltaY:h[1]-m[1],E,M=a.target,k=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in a&&k==="h"&&M.type==="range")return!1;var P=re(k,M);if(!P)return!0;if(P?E=k:(E=k==="v"?"h":"v",P=re(k,M)),!P)return!1;if(!r.current&&"changedTouches"in a&&(g||y)&&(r.current=E),!E)return!0;var $=r.current||E;return ct($,l,a,$==="h"?g:y)},[]),w=i.useCallback(function(a){var l=a;if(!(!L.length||L[L.length-1]!==u)){var m="deltaY"in l?oe(l):_(l),h=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&ut(E.delta,m)})[0];if(h&&h.should){l.cancelable&&l.preventDefault();return}if(!h){var g=(s.current.shards||[]).map(ae).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=g.length>0?o(l,g[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=i.useCallback(function(a,l,m,h){var g={name:a,delta:l,target:m,should:h,shadowParent:dt(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),v=i.useCallback(function(a){n.current=_(a),r.current=void 0},[]),d=i.useCallback(function(a){b(a.type,oe(a),a.target,o(a,e.lockRef.current))},[]),f=i.useCallback(function(a){b(a.type,_(a),a.target,o(a,e.lockRef.current))},[]);i.useEffect(function(){return L.push(u),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",w,T),document.addEventListener("touchmove",w,T),document.addEventListener("touchstart",v,T),function(){L=L.filter(function(a){return a!==u}),document.removeEventListener("wheel",w,T),document.removeEventListener("touchmove",w,T),document.removeEventListener("touchstart",v,T)}},[]);var p=e.removeScrollBar,S=e.inert;return i.createElement(i.Fragment,null,S?i.createElement(u,{styles:it(c)}):null,p?i.createElement(Ve,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ft=Fe(fe,st);var ge=i.forwardRef(function(e,t){return i.createElement(F,C({},e,{ref:t,sideCar:ft}))});ge.classNames=F.classNames;var vt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},x=new WeakMap,j=new WeakMap,I={},z=0,ye=function(e){return e&&(e.host||ye(e.parentNode))},pt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ye(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},mt=function(e,t,n,r){var c=pt(t,Array.isArray(e)?e:[e]);I[n]||(I[n]=new WeakMap);var u=I[n],s=[],o=new Set,w=new Set(c),b=function(d){!d||o.has(d)||(o.add(d),b(d.parentNode))};c.forEach(b);var v=function(d){!d||w.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))v(f);else try{var p=f.getAttribute(r),S=p!==null&&p!=="false",a=(x.get(f)||0)+1,l=(u.get(f)||0)+1;x.set(f,a),u.set(f,l),s.push(f),a===1&&S&&j.set(f,!0),l===1&&f.setAttribute(n,"true"),S||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return v(t),o.clear(),z++,function(){s.forEach(function(d){var f=x.get(d)-1,p=u.get(d)-1;x.set(d,f),u.set(d,p),f||(j.has(d)||d.removeAttribute(r),j.delete(d)),p||d.removeAttribute(n)}),z--,z||(x=new WeakMap,x=new WeakMap,j=new WeakMap,I={})}},ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=vt(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),mt(r,c,n,"aria-hidden")):function(){return null}};/**
42
42
  * @license lucide-react v0.511.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./index-BL59b1Bz-COeLljOH.cjs"),xn=require("react"),M=require("./index-Cths1nBq-DzDn15YE.cjs"),F=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),P=require("./index-ZsCkaYy6-Bjyf2SZs.cjs"),_n=require("./chevron-right-HWBijj-I-CZBu0GKg.cjs"),j=require("./utils-B6fNqzRf-BNysSCt9.cjs");function bn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=bn(xn);var ee=["Enter"," "],Mn=["ArrowDown","PageUp","Home"],me=["ArrowUp","PageDown","End"],jn=[...Mn,...me],Dn={ltr:[...ee,"ArrowRight"],rtl:[...ee,"ArrowLeft"]},Rn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},A="Menu",[L,Cn,Nn]=M.D(A),[D,ve]=r.j(A,[Nn,P.oo,M.be]),H=P.oo(),he=M.be(),[kn,R]=D(A),[On,K]=D(A),ge=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:c,modal:l=!0}=e,i=H(t),[m,h]=s.useState(null),p=s.useRef(!1),u=r.n(c),f=M.n(a);return s.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),r.ae.jsx(P.io,{...i,children:r.ae.jsx(kn,{scope:t,open:n,onOpenChange:u,content:m,onContentChange:h,children:r.ae.jsx(On,{scope:t,onClose:s.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:l,children:o})})})};ge.displayName=A;var Pn="MenuAnchor",ne=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=H(n);return r.ae.jsx(P.ro,{...a,...o,ref:t})});ne.displayName=Pn;var re="MenuPortal",[In,we]=D(re,{forceMount:void 0}),ye=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:a}=e,c=R(re,t);return r.ae.jsx(In,{scope:t,forceMount:n,children:r.ae.jsx(r.R,{present:n||c.open,children:r.ae.jsx(F.Me,{asChild:!0,container:a,children:o})})})};ye.displayName=re;var x="MenuContent",[En,te]=D(x),xe=s.forwardRef((e,t)=>{const n=we(x,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,c=R(x,e.__scopeMenu),l=K(x,e.__scopeMenu);return r.ae.jsx(L.Provider,{scope:e.__scopeMenu,children:r.ae.jsx(r.R,{present:o||c.open,children:r.ae.jsx(L.Slot,{scope:e.__scopeMenu,children:l.modal?r.ae.jsx(Tn,{...a,ref:t}):r.ae.jsx(Sn,{...a,ref:t})})})})}),Tn=s.forwardRef((e,t)=>{const n=R(x,e.__scopeMenu),o=s.useRef(null),a=r.i(t,o);return s.useEffect(()=>{const c=o.current;if(c)return F.Rt(c)},[]),r.ae.jsx(oe,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:r.y$1(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Sn=s.forwardRef((e,t)=>{const n=R(x,e.__scopeMenu);return r.ae.jsx(oe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Fn=r.S("MenuContent.ScrollLock"),oe=s.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...C}=e,N=R(x,n),I=K(x,n),z=H(n),B=he(n),ue=Cn(n),[pn,ie]=s.useState(null),G=s.useRef(null),fn=r.i(t,G,N.onContentChange),q=s.useRef(0),U=s.useRef(""),mn=s.useRef(0),Q=s.useRef(null),de=s.useRef("right"),J=s.useRef(0),vn=v?F.dt:s.Fragment,hn=v?{as:Fn,allowPinchZoom:!0}:void 0,gn=d=>{var w,_;const O=U.current+d,E=ue().filter(b=>!b.disabled),V=document.activeElement,T=(w=E.find(b=>b.ref.current===V))==null?void 0:w.textValue,wn=E.map(b=>b.textValue),yn=Wn(wn,O,T),le=(_=E.find(b=>b.textValue===yn))==null?void 0:_.ref.current;(function b(pe){U.current=pe,window.clearTimeout(q.current),pe!==""&&(q.current=window.setTimeout(()=>b(""),1e3))})(O),le&&setTimeout(()=>le.focus())};s.useEffect(()=>()=>window.clearTimeout(q.current),[]),F.Ct();const k=s.useCallback(d=>{var w,_;return de.current===((w=Q.current)==null?void 0:w.side)&&Yn(d,(_=Q.current)==null?void 0:_.area)},[]);return r.ae.jsx(En,{scope:n,searchRef:U,onItemEnter:s.useCallback(d=>{k(d)&&d.preventDefault()},[k]),onItemLeave:s.useCallback(d=>{var w;k(d)||((w=G.current)==null||w.focus(),ie(null))},[k]),onTriggerLeave:s.useCallback(d=>{k(d)&&d.preventDefault()},[k]),pointerGraceTimerRef:mn,onPointerGraceIntentChange:s.useCallback(d=>{Q.current=d},[]),children:r.ae.jsx(vn,{...hn,children:r.ae.jsx(F.Se,{asChild:!0,trapped:a,onMountAutoFocus:r.y$1(c,d=>{var w;d.preventDefault(),(w=G.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:r.ae.jsx(r.M,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:r.ae.jsx(M.Fe,{asChild:!0,...B,dir:I.dir,orientation:"vertical",loop:o,currentTabStopId:pn,onCurrentTabStopIdChange:ie,onEntryFocus:r.y$1(m,d=>{I.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.ae.jsx(P.so,{role:"menu","aria-orientation":"vertical","data-state":Fe(N.open),"data-radix-menu-content":"",dir:I.dir,...z,...C,ref:fn,style:{outline:"none",...C.style},onKeyDown:r.y$1(C.onKeyDown,d=>{const w=d.target.closest("[data-radix-menu-content]")===d.currentTarget,_=d.ctrlKey||d.altKey||d.metaKey,O=d.key.length===1;w&&(d.key==="Tab"&&d.preventDefault(),!_&&O&&gn(d.key));const E=G.current;if(d.target!==E||!jn.includes(d.key))return;d.preventDefault();const V=ue().filter(T=>!T.disabled).map(T=>T.ref.current);me.includes(d.key)&&V.reverse(),Vn(V)}),onBlur:r.y$1(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(q.current),U.current="")}),onPointerMove:r.y$1(e.onPointerMove,$(d=>{const w=d.target,_=J.current!==d.clientX;if(d.currentTarget.contains(w)&&_){const O=d.clientX>J.current?"right":"left";de.current=O,J.current=d.clientX}}))})})})})})})});xe.displayName=x;var Ln="MenuGroup",ae=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.ae.jsx(r.h.div,{role:"group",...o,ref:t})});ae.displayName=Ln;var $n="MenuLabel",_e=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.ae.jsx(r.h.div,{...o,ref:t})});_e.displayName=$n;var X="MenuItem",fe="menu.itemSelect",Y=s.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...a}=e,c=s.useRef(null),l=K(X,e.__scopeMenu),i=te(X,e.__scopeMenu),m=r.i(t,c),h=s.useRef(!1),p=()=>{const u=c.current;if(!n&&u){const f=new CustomEvent(fe,{bubbles:!0,cancelable:!0});u.addEventListener(fe,g=>o==null?void 0:o(g),{once:!0}),r.w(u,f),f.defaultPrevented?h.current=!1:l.onClose()}};return r.ae.jsx(be,{...a,ref:m,disabled:n,onClick:r.y$1(e.onClick,p),onPointerDown:u=>{var f;(f=e.onPointerDown)==null||f.call(e,u),h.current=!0},onPointerUp:r.y$1(e.onPointerUp,u=>{var f;h.current||(f=u.currentTarget)==null||f.click()}),onKeyDown:r.y$1(e.onKeyDown,u=>{const f=i.searchRef.current!=="";n||f&&u.key===" "||ee.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Y.displayName=X;var be=s.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:a,...c}=e,l=te(X,n),i=he(n),m=s.useRef(null),h=r.i(t,m),[p,u]=s.useState(!1),[f,g]=s.useState("");return s.useEffect(()=>{const v=m.current;v&&g((v.textContent??"").trim())},[c.children]),r.ae.jsx(L.ItemSlot,{scope:n,disabled:o,textValue:a??f,children:r.ae.jsx(M.ge,{asChild:!0,...i,focusable:!o,children:r.ae.jsx(r.h.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:h,onPointerMove:r.y$1(e.onPointerMove,$(v=>{o?l.onItemLeave(v):(l.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:r.y$1(e.onPointerLeave,$(v=>l.onItemLeave(v))),onFocus:r.y$1(e.onFocus,()=>u(!0)),onBlur:r.y$1(e.onBlur,()=>u(!1))})})})}),An="MenuCheckboxItem",Me=s.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...a}=e;return r.ae.jsx(Ne,{scope:e.__scopeMenu,checked:n,children:r.ae.jsx(Y,{role:"menuitemcheckbox","aria-checked":W(n)?"mixed":n,...a,ref:t,"data-state":ce(n),onSelect:r.y$1(a.onSelect,()=>o==null?void 0:o(W(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Me.displayName=An;var je="MenuRadioGroup",[Kn,zn]=D(je,{value:void 0,onValueChange:()=>{}}),De=s.forwardRef((e,t)=>{const{value:n,onValueChange:o,...a}=e,c=r.n(o);return r.ae.jsx(Kn,{scope:e.__scopeMenu,value:n,onValueChange:c,children:r.ae.jsx(ae,{...a,ref:t})})});De.displayName=je;var Re="MenuRadioItem",Ce=s.forwardRef((e,t)=>{const{value:n,...o}=e,a=zn(Re,e.__scopeMenu),c=n===a.value;return r.ae.jsx(Ne,{scope:e.__scopeMenu,checked:c,children:r.ae.jsx(Y,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":ce(c),onSelect:r.y$1(o.onSelect,()=>{var l;return(l=a.onValueChange)==null?void 0:l.call(a,n)},{checkForDefaultPrevented:!1})})})});Ce.displayName=Re;var se="MenuItemIndicator",[Ne,Bn]=D(se,{checked:!1}),ke=s.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...a}=e,c=Bn(se,n);return r.ae.jsx(r.R,{present:o||W(c.checked)||c.checked===!0,children:r.ae.jsx(r.h.span,{...a,ref:t,"data-state":ce(c.checked)})})});ke.displayName=se;var Gn="MenuSeparator",Oe=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.ae.jsx(r.h.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Oe.displayName=Gn;var qn="MenuArrow",Pe=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=H(n);return r.ae.jsx(P.co,{...a,...o,ref:t})});Pe.displayName=qn;var Un="MenuSub",[$r,Ie]=D(Un),S="MenuSubTrigger",Ee=s.forwardRef((e,t)=>{const n=R(S,e.__scopeMenu),o=K(S,e.__scopeMenu),a=Ie(S,e.__scopeMenu),c=te(S,e.__scopeMenu),l=s.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:m}=c,h={__scopeMenu:e.__scopeMenu},p=s.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return s.useEffect(()=>p,[p]),s.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),m(null)}},[i,m]),r.ae.jsx(ne,{asChild:!0,...h,children:r.ae.jsx(be,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":Fe(n.open),...e,ref:r.f(t,a.onTriggerChange),onClick:u=>{var f;(f=e.onClick)==null||f.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:r.y$1(e.onPointerMove,$(u=>{c.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(c.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:r.y$1(e.onPointerLeave,$(u=>{var f,g;p();const v=(f=n.content)==null?void 0:f.getBoundingClientRect();if(v){const C=(g=n.content)==null?void 0:g.dataset.side,N=C==="right",I=N?-5:5,z=v[N?"left":"right"],B=v[N?"right":"left"];c.onPointerGraceIntentChange({area:[{x:u.clientX+I,y:u.clientY},{x:z,y:v.top},{x:B,y:v.top},{x:B,y:v.bottom},{x:z,y:v.bottom}],side:C}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(u),u.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:r.y$1(e.onKeyDown,u=>{var f;const g=c.searchRef.current!=="";e.disabled||g&&u.key===" "||Dn[o.dir].includes(u.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),u.preventDefault())})})})});Ee.displayName=S;var Te="MenuSubContent",Se=s.forwardRef((e,t)=>{const n=we(x,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,c=R(x,e.__scopeMenu),l=K(x,e.__scopeMenu),i=Ie(Te,e.__scopeMenu),m=s.useRef(null),h=r.i(t,m);return r.ae.jsx(L.Provider,{scope:e.__scopeMenu,children:r.ae.jsx(r.R,{present:o||c.open,children:r.ae.jsx(L.Slot,{scope:e.__scopeMenu,children:r.ae.jsx(oe,{id:i.contentId,"aria-labelledby":i.triggerId,...a,ref:h,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var u;l.isUsingKeyboardRef.current&&((u=m.current)==null||u.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:r.y$1(e.onFocusOutside,p=>{p.target!==i.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:r.y$1(e.onEscapeKeyDown,p=>{l.onClose(),p.preventDefault()}),onKeyDown:r.y$1(e.onKeyDown,p=>{var u;const f=p.currentTarget.contains(p.target),g=Rn[l.dir].includes(p.key);f&&g&&(c.onOpenChange(!1),(u=i.trigger)==null||u.focus(),p.preventDefault())})})})})})});Se.displayName=Te;function Fe(e){return e?"open":"closed"}function W(e){return e==="indeterminate"}function ce(e){return W(e)?"indeterminate":e?"checked":"unchecked"}function Vn(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xn(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Wn(e,t,n){const o=t.length>1&&Array.from(t).every(i=>i===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Xn(e,Math.max(a,0));o.length===1&&(c=c.filter(i=>i!==n));const l=c.find(i=>i.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Hn(e,t){const{x:n,y:o}=e;let a=!1;for(let c=0,l=t.length-1;c<t.length;l=c++){const i=t[c],m=t[l],h=i.x,p=i.y,u=m.x,f=m.y;p>o!=f>o&&n<(u-h)*(o-p)/(f-p)+h&&(a=!a)}return a}function Yn(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Hn(n,t)}function $(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Zn=ge,Qn=ne,Jn=ye,er=xe,nr=ae,rr=_e,tr=Y,or=Me,ar=De,sr=Ce,cr=ke,ur=Oe,ir=Pe,dr=Ee,lr=Se,Z="DropdownMenu",[pr,Ar]=r.j(Z,[ve]),y=ve(),[fr,Le]=pr(Z),$e=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:c,onOpenChange:l,modal:i=!0}=e,m=y(t),h=s.useRef(null),[p,u]=r.y({prop:a,defaultProp:c??!1,onChange:l,caller:Z});return r.ae.jsx(fr,{scope:t,triggerId:r.g(),triggerRef:h,contentId:r.g(),open:p,onOpenChange:u,onOpenToggle:s.useCallback(()=>u(f=>!f),[u]),modal:i,children:r.ae.jsx(Zn,{...m,open:p,onOpenChange:u,dir:o,modal:i,children:n})})};$e.displayName=Z;var Ae="DropdownMenuTrigger",Ke=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...a}=e,c=Le(Ae,n),l=y(n);return r.ae.jsx(Qn,{asChild:!0,...l,children:r.ae.jsx(r.h.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:r.f(t,c.triggerRef),onPointerDown:r.y$1(e.onPointerDown,i=>{!o&&i.button===0&&i.ctrlKey===!1&&(c.onOpenToggle(),c.open||i.preventDefault())}),onKeyDown:r.y$1(e.onKeyDown,i=>{o||(["Enter"," "].includes(i.key)&&c.onOpenToggle(),i.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ke.displayName=Ae;var mr="DropdownMenuPortal",ze=e=>{const{__scopeDropdownMenu:t,...n}=e,o=y(t);return r.ae.jsx(Jn,{...o,...n})};ze.displayName=mr;var Be="DropdownMenuContent",Ge=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=Le(Be,n),c=y(n),l=s.useRef(!1);return r.ae.jsx(er,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...o,ref:t,onCloseAutoFocus:r.y$1(e.onCloseAutoFocus,i=>{var m;l.current||(m=a.triggerRef.current)==null||m.focus(),l.current=!1,i.preventDefault()}),onInteractOutside:r.y$1(e.onInteractOutside,i=>{const m=i.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0,p=m.button===2||h;(!a.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ge.displayName=Be;var vr="DropdownMenuGroup",hr=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(nr,{...a,...o,ref:t})});hr.displayName=vr;var gr="DropdownMenuLabel",qe=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(rr,{...a,...o,ref:t})});qe.displayName=gr;var wr="DropdownMenuItem",Ue=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(tr,{...a,...o,ref:t})});Ue.displayName=wr;var yr="DropdownMenuCheckboxItem",Ve=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(or,{...a,...o,ref:t})});Ve.displayName=yr;var xr="DropdownMenuRadioGroup",_r=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(ar,{...a,...o,ref:t})});_r.displayName=xr;var br="DropdownMenuRadioItem",Xe=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(sr,{...a,...o,ref:t})});Xe.displayName=br;var Mr="DropdownMenuItemIndicator",We=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(cr,{...a,...o,ref:t})});We.displayName=Mr;var jr="DropdownMenuSeparator",He=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(ur,{...a,...o,ref:t})});He.displayName=jr;var Dr="DropdownMenuArrow",Rr=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(ir,{...a,...o,ref:t})});Rr.displayName=Dr;var Cr="DropdownMenuSubTrigger",Ye=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(dr,{...a,...o,ref:t})});Ye.displayName=Cr;var Nr="DropdownMenuSubContent",Ze=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(lr,{...a,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ze.displayName=Nr;var kr=$e,Or=Ke,Pr=ze,Qe=Ge,Je=qe,en=Ue,nn=Ve,rn=Xe,tn=We,on=He,an=Ye,sn=Ze;const Ir=kr,Er=Or,Tr=s.forwardRef(({className:e,inset:t,children:n,...o},a)=>r.ae.jsxs(an,{ref:a,className:j.mo("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[n,r.ae.jsx(_n.e,{className:"ml-auto"})]}));Tr.displayName=an.displayName;const Sr=s.forwardRef(({className:e,...t},n)=>r.ae.jsx(sn,{ref:n,className:j.mo("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...t}));Sr.displayName=sn.displayName;const cn=s.forwardRef(({className:e,sideOffset:t=4,...n},o)=>r.ae.jsx(Pr,{children:r.ae.jsx(Qe,{ref:o,sideOffset:t,className:j.mo("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...n})}));cn.displayName=Qe.displayName;const un=s.forwardRef(({className:e,inset:t,...n},o)=>r.ae.jsx(en,{ref:o,className:j.mo("focus:bg-accent focus:text-accent-foreground relative flex cursor-default cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));un.displayName=en.displayName;const dn=s.forwardRef(({className:e,children:t,checked:n,...o},a)=>r.ae.jsxs(nn,{ref:a,className:j.mo("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[r.ae.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.ae.jsx(tn,{children:r.ae.jsx(M.t,{className:"h-4 w-4"})})}),t]}));dn.displayName=nn.displayName;const Fr=s.forwardRef(({className:e,children:t,...n},o)=>r.ae.jsxs(rn,{ref:o,className:j.mo("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[r.ae.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.ae.jsx(tn,{children:r.ae.jsx(M.a,{className:"h-2 w-2 fill-current"})})}),t]}));Fr.displayName=rn.displayName;const Lr=s.forwardRef(({className:e,inset:t,...n},o)=>r.ae.jsx(Je,{ref:o,className:j.mo("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Lr.displayName=Je.displayName;const ln=s.forwardRef(({className:e,...t},n)=>r.ae.jsx(on,{ref:n,className:j.mo("bg-muted -mx-1 my-1 h-px",e),...t}));ln.displayName=on.displayName;exports.At=Er;exports.Tt=Ir;exports.dt=dn;exports.ft=ln;exports.it=cn;exports.ut=un;