react-semaphor 0.0.479 → 0.0.481

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.
@@ -18,7 +18,7 @@ import J, { createContext as Ot, useState as fe, useEffect as he, useContext as
18
18
  import * as nl from "react-dom";
19
19
  import uu, { createPortal as _x, flushSync as xs, unstable_batchedUpdates as Ih } from "react-dom";
20
20
  import * as NE from "react/jsx-runtime";
21
- import { jsx as b, Fragment as Ue, jsxs as L } from "react/jsx-runtime";
21
+ import { jsx as b, Fragment as Ge, jsxs as L } from "react/jsx-runtime";
22
22
  function hN(e) {
23
23
  var t, n, r = "";
24
24
  if (typeof e == "string" || typeof e == "number") r += e;
@@ -5240,7 +5240,7 @@ Cg.exports;
5240
5240
  var Z = this.has(H) && delete this.__data__[H];
5241
5241
  return this.size -= Z ? 1 : 0, Z;
5242
5242
  }
5243
- function qe(H) {
5243
+ function Ue(H) {
5244
5244
  var Z = this.__data__;
5245
5245
  if (Ci) {
5246
5246
  var oe = Z[H];
@@ -5256,7 +5256,7 @@ Cg.exports;
5256
5256
  var oe = this.__data__;
5257
5257
  return this.size += this.has(H) ? 0 : 1, oe[H] = Ci && Z === void 0 ? r : Z, this;
5258
5258
  }
5259
- kt.prototype.clear = Hn, kt.prototype.delete = Oe, kt.prototype.get = qe, kt.prototype.has = it, kt.prototype.set = nn;
5259
+ kt.prototype.clear = Hn, kt.prototype.delete = Oe, kt.prototype.get = Ue, kt.prototype.has = it, kt.prototype.set = nn;
5260
5260
  function $t(H) {
5261
5261
  var Z = -1, oe = H == null ? 0 : H.length;
5262
5262
  for (this.clear(); ++Z < oe; ) {
@@ -7446,7 +7446,7 @@ function qB({
7446
7446
  });
7447
7447
  return o.isSemaphorClient = !0, o;
7448
7448
  });
7449
- return n ? /* @__PURE__ */ b(Ue, { children: e }) : /* @__PURE__ */ b(AB, { client: r, children: e });
7449
+ return n ? /* @__PURE__ */ b(Ge, { children: e }) : /* @__PURE__ */ b(AB, { client: r, children: e });
7450
7450
  }
7451
7451
  const Wa = Tn(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ b("div", { className: se("semaphor-scope", t), ref: r, ...n, children: e })), GB = {
7452
7452
  id: "",
@@ -7878,7 +7878,7 @@ var uw = x.forwardRef((e, t) => {
7878
7878
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
7879
7879
  });
7880
7880
  uw.displayName = "SlotClone";
7881
- var rV = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
7881
+ var rV = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
7882
7882
  function oV(e) {
7883
7883
  return x.isValidElement(e) && e.type === rV;
7884
7884
  }
@@ -7964,7 +7964,7 @@ var dw = x.forwardRef((e, t) => {
7964
7964
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
7965
7965
  });
7966
7966
  dw.displayName = "SlotClone";
7967
- var cV = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
7967
+ var cV = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
7968
7968
  function uV(e) {
7969
7969
  return x.isValidElement(e) && e.type === cV;
7970
7970
  }
@@ -31136,7 +31136,7 @@ var s1 = x.forwardRef((e, t) => {
31136
31136
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
31137
31137
  });
31138
31138
  s1.displayName = "SlotClone";
31139
- var rT = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
31139
+ var rT = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
31140
31140
  function _te(e) {
31141
31141
  return x.isValidElement(e) && e.type === rT;
31142
31142
  }
@@ -31547,7 +31547,7 @@ function u1({ card: e, isLoading: t, data: n }) {
31547
31547
  }
31548
31548
  return (
31549
31549
  // <ScrollArea className="mx-3 my-6 overflow-y-auto break-words px-3">
31550
- /* @__PURE__ */ L(Ue, { children: [
31550
+ /* @__PURE__ */ L(Ge, { children: [
31551
31551
  !s && d(),
31552
31552
  s === !0 && u()
31553
31553
  ] })
@@ -31807,7 +31807,7 @@ function oP() {
31807
31807
  C && (s == null || s(C, S));
31808
31808
  }
31809
31809
  function E() {
31810
- return /* @__PURE__ */ L(Ue, { children: [
31810
+ return /* @__PURE__ */ L(Ge, { children: [
31811
31811
  /* @__PURE__ */ b(Jc, {}),
31812
31812
  /* @__PURE__ */ L("div", { className: "space-y-3", children: [
31813
31813
  /* @__PURE__ */ b("p", { className: "text-xs text-muted-foreground", children: "Start with these filters? Set them as default." }),
@@ -34019,7 +34019,7 @@ var b1 = x.forwardRef((e, t) => {
34019
34019
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
34020
34020
  });
34021
34021
  b1.displayName = "SlotClone";
34022
- var ure = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
34022
+ var ure = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
34023
34023
  function dre(e) {
34024
34024
  return x.isValidElement(e) && e.type === ure;
34025
34025
  }
@@ -34701,7 +34701,7 @@ var WT = "SelectValue", UT = x.forwardRef(
34701
34701
  ...s,
34702
34702
  ref: d,
34703
34703
  style: { pointerEvents: "none" },
34704
- children: f4(l.value) ? /* @__PURE__ */ b(Ue, { children: a }) : i
34704
+ children: f4(l.value) ? /* @__PURE__ */ b(Ge, { children: a }) : i
34705
34705
  }
34706
34706
  );
34707
34707
  }
@@ -35040,7 +35040,7 @@ v1.displayName = coe;
35040
35040
  var [uoe, wC] = xu(gl, {}), w1 = "SelectViewport", ZT = x.forwardRef(
35041
35041
  (e, t) => {
35042
35042
  const { __scopeSelect: n, nonce: r, ...o } = e, i = Ka(w1, n), a = wC(w1, n), s = je(t, i.onViewportChange), l = x.useRef(0);
35043
- return /* @__PURE__ */ L(Ue, { children: [
35043
+ return /* @__PURE__ */ L(Ge, { children: [
35044
35044
  /* @__PURE__ */ b(
35045
35045
  "style",
35046
35046
  {
@@ -35202,7 +35202,7 @@ var md = "SelectItemText", i4 = x.forwardRef(
35202
35202
  () => /* @__PURE__ */ b("option", { value: l.value, disabled: l.disabled, children: h }, l.value),
35203
35203
  [l.disabled, l.value, h]
35204
35204
  ), { onNativeOptionAdd: g, onNativeOptionRemove: m } = c;
35205
- return Yn(() => (g(p), () => m(p)), [g, m, p]), /* @__PURE__ */ L(Ue, { children: [
35205
+ return Yn(() => (g(p), () => m(p)), [g, m, p]), /* @__PURE__ */ L(Ge, { children: [
35206
35206
  /* @__PURE__ */ b(_e.span, { id: l.textId, ...i, ref: f }),
35207
35207
  l.isSelected && a.valueNode && !a.valueNodeHasChildren ? nl.createPortal(i.children, a.valueNode) : null
35208
35208
  ] });
@@ -35488,7 +35488,7 @@ var _1 = x.forwardRef((e, t) => {
35488
35488
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
35489
35489
  });
35490
35490
  _1.displayName = "SlotClone";
35491
- var Eoe = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
35491
+ var Eoe = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
35492
35492
  function Roe(e) {
35493
35493
  return x.isValidElement(e) && e.type === Eoe;
35494
35494
  }
@@ -35973,7 +35973,7 @@ function Zoe({
35973
35973
  (I) => I.actions.setCardPreferences
35974
35974
  );
35975
35975
  function P() {
35976
- return /* @__PURE__ */ L(Ue, { children: [
35976
+ return /* @__PURE__ */ L(Ge, { children: [
35977
35977
  /* @__PURE__ */ L("div", { className: "grid grid-cols-9 items-center gap-2", children: [
35978
35978
  /* @__PURE__ */ b(Me, { className: "col-span-3", htmlFor: "format", children: "Text Align" }),
35979
35979
  /* @__PURE__ */ L(
@@ -36012,7 +36012,7 @@ function Zoe({
36012
36012
  const I = [
36013
36013
  ...new Set(YE.map((T) => T.currency))
36014
36014
  ];
36015
- return /* @__PURE__ */ b(Ue, { children: /* @__PURE__ */ L("div", { className: "grid grid-cols-9 items-center gap-2", children: [
36015
+ return /* @__PURE__ */ b(Ge, { children: /* @__PURE__ */ L("div", { className: "grid grid-cols-9 items-center gap-2", children: [
36016
36016
  /* @__PURE__ */ b(Me, { className: "col-span-3", htmlFor: "format", children: "Locale" }),
36017
36017
  /* @__PURE__ */ L(gn, { value: h, onValueChange: (T) => p(T), children: [
36018
36018
  /* @__PURE__ */ b(un, { className: "col-span-6 h-8 w-full focus:ring-1 focus:ring-offset-0", children: /* @__PURE__ */ b(mn, {}) }),
@@ -36063,7 +36063,7 @@ function Zoe({
36063
36063
  ] }) });
36064
36064
  }
36065
36065
  function O() {
36066
- return /* @__PURE__ */ b(Ue, { children: /* @__PURE__ */ L("div", { className: "grid grid-cols-9 items-center gap-2", children: [
36066
+ return /* @__PURE__ */ b(Ge, { children: /* @__PURE__ */ L("div", { className: "grid grid-cols-9 items-center gap-2", children: [
36067
36067
  /* @__PURE__ */ b(Me, { className: "col-span-3", htmlFor: "format", children: "Locale" }),
36068
36068
  /* @__PURE__ */ L(
36069
36069
  gn,
@@ -36244,7 +36244,7 @@ function Zoe({
36244
36244
  /* @__PURE__ */ b(dg, {}),
36245
36245
  i === "number" && A(),
36246
36246
  i === "date" && O(),
36247
- i === "number" && /* @__PURE__ */ L(Ue, { children: [
36247
+ i === "number" && /* @__PURE__ */ L(Ge, { children: [
36248
36248
  /* @__PURE__ */ b(dg, {}),
36249
36249
  /* @__PURE__ */ b(
36250
36250
  joe,
@@ -36482,7 +36482,7 @@ L4.displayName = CC;
36482
36482
  var $4 = "ScrollAreaViewport", z4 = x.forwardRef(
36483
36483
  (e, t) => {
36484
36484
  const { __scopeScrollArea: n, children: r, nonce: o, ...i } = e, a = bo($4, n), s = x.useRef(null), l = je(t, s, a.onViewportChange);
36485
- return /* @__PURE__ */ L(Ue, { children: [
36485
+ return /* @__PURE__ */ L(Ge, { children: [
36486
36486
  /* @__PURE__ */ b(
36487
36487
  "style",
36488
36488
  {
@@ -37031,7 +37031,7 @@ function pie({
37031
37031
  className: "h-9 max-w-sm"
37032
37032
  }
37033
37033
  ) }),
37034
- /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: n > 5 && /* @__PURE__ */ L(Ob, { children: [
37034
+ /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ L(Ob, { children: [
37035
37035
  /* @__PURE__ */ b(Ib, { asChild: !0, children: /* @__PURE__ */ b(
37036
37036
  ot,
37037
37037
  {
@@ -37072,10 +37072,7 @@ function pie({
37072
37072
  style: { borderRadius: f || 2 },
37073
37073
  className: "w-full justify-start px-2 py-1.5 text-sm font-normal capitalize hover:bg-muted",
37074
37074
  onClick: () => {
37075
- typeof h.id == "string" && (a == null || a(
37076
- h.id,
37077
- !p
37078
- ));
37075
+ typeof h.id == "string" && (a == null || a(h.id, !p));
37079
37076
  },
37080
37077
  children: /* @__PURE__ */ L("div", { className: "flex w-full items-center", children: [
37081
37078
  /* @__PURE__ */ b("div", { className: "mr-2 flex h-4 w-4 items-center justify-center", children: p ? /* @__PURE__ */ b(Xi, { className: "h-4 w-4" }) : null }),
@@ -37092,95 +37089,92 @@ function pie({
37092
37089
  ] });
37093
37090
  }
37094
37091
  function gie({
37095
- totalColumns: e,
37096
- pageCount: t,
37097
- pageIndex: n,
37098
- pageSize: r,
37099
- rowCount: o,
37100
- selectedRowCount: i,
37101
- setPageIndex: a,
37102
- setPageSize: s,
37103
- canPreviousPage: l,
37104
- canNextPage: c,
37105
- previousPage: u,
37106
- nextPage: d,
37107
- onClearSelection: f
37092
+ pageCount: e,
37093
+ pageIndex: t,
37094
+ pageSize: n,
37095
+ rowCount: r,
37096
+ selectedRowCount: o,
37097
+ setPageIndex: i,
37098
+ setPageSize: a,
37099
+ canPreviousPage: s,
37100
+ canNextPage: l,
37101
+ previousPage: c,
37102
+ nextPage: u,
37103
+ onClearSelection: d
37108
37104
  }) {
37109
- const h = ie((g) => g.themeStyle), p = h == null ? void 0 : h.controlInputRadius;
37105
+ const f = ie((p) => p.themeStyle), h = f == null ? void 0 : f.controlInputRadius;
37110
37106
  return /* @__PURE__ */ L("div", { className: "flex items-center justify-between", children: [
37111
37107
  /* @__PURE__ */ L("div", { className: "hidden flex-1 items-center gap-2 text-sm text-muted-foreground md:flex", children: [
37112
- i > 0 && /* @__PURE__ */ L(Ue, { children: [
37113
- i,
37114
- " of ",
37108
+ o > 0 && /* @__PURE__ */ L(Ge, { children: [
37115
37109
  o,
37110
+ " of ",
37111
+ r,
37116
37112
  " row(s) selected",
37117
37113
  " "
37118
37114
  ] }),
37119
- i === 0 && /* @__PURE__ */ L(Ue, { children: [
37120
- o,
37115
+ o === 0 && /* @__PURE__ */ L(Ge, { children: [
37116
+ r,
37121
37117
  " rows"
37122
37118
  ] }),
37123
- i > 0 && /* @__PURE__ */ b(
37119
+ o > 0 && /* @__PURE__ */ b(
37124
37120
  ot,
37125
37121
  {
37126
37122
  variant: "outline",
37127
37123
  size: "sm",
37128
- style: { borderRadius: p },
37129
- onClick: f,
37124
+ style: { borderRadius: h },
37125
+ onClick: d,
37130
37126
  className: "h-8 text-foreground",
37131
37127
  children: "Clear"
37132
37128
  }
37133
37129
  )
37134
37130
  ] }),
37135
37131
  /* @__PURE__ */ L("div", { className: "flex w-full items-center gap-8 md:w-fit", children: [
37136
- e > 3 && /* @__PURE__ */ L(Ue, { children: [
37137
- /* @__PURE__ */ L("div", { className: "hidden items-center gap-2 md:flex", children: [
37138
- /* @__PURE__ */ b(
37139
- Me,
37140
- {
37141
- htmlFor: "rows-per-page",
37142
- className: "text-sm font-normal text-muted-foreground",
37143
- children: "Rows per page"
37144
- }
37145
- ),
37146
- /* @__PURE__ */ L(
37147
- gn,
37148
- {
37149
- value: `${r}`,
37150
- onValueChange: (g) => {
37151
- s(Number(g));
37152
- },
37153
- children: [
37154
- /* @__PURE__ */ b(
37155
- un,
37156
- {
37157
- style: { borderRadius: p },
37158
- className: `h-8 w-16 ${Sr}`,
37159
- id: "rows-per-page",
37160
- children: /* @__PURE__ */ b(mn, { placeholder: r })
37161
- }
37162
- ),
37163
- /* @__PURE__ */ b(dn, { side: "top", children: [10, 20, 30, 40, 50].map((g) => /* @__PURE__ */ b(Re, { value: `${g}`, children: g }, g)) })
37164
- ]
37165
- }
37166
- )
37167
- ] }),
37168
- /* @__PURE__ */ L("div", { className: "flex w-fit items-center justify-center text-sm font-normal text-muted-foreground", children: [
37169
- "Page ",
37170
- n + 1,
37171
- " of ",
37172
- t
37173
- ] })
37132
+ /* @__PURE__ */ L("div", { className: "hidden items-center gap-2 md:flex", children: [
37133
+ /* @__PURE__ */ b(
37134
+ Me,
37135
+ {
37136
+ htmlFor: "rows-per-page",
37137
+ className: "text-sm font-normal text-muted-foreground",
37138
+ children: "Rows per page"
37139
+ }
37140
+ ),
37141
+ /* @__PURE__ */ L(
37142
+ gn,
37143
+ {
37144
+ value: `${n}`,
37145
+ onValueChange: (p) => {
37146
+ a(Number(p));
37147
+ },
37148
+ children: [
37149
+ /* @__PURE__ */ b(
37150
+ un,
37151
+ {
37152
+ style: { borderRadius: h },
37153
+ className: `h-8 w-16 ${Sr}`,
37154
+ id: "rows-per-page",
37155
+ children: /* @__PURE__ */ b(mn, { placeholder: n })
37156
+ }
37157
+ ),
37158
+ /* @__PURE__ */ b(dn, { side: "top", children: [10, 20, 30, 40, 50].map((p) => /* @__PURE__ */ b(Re, { value: `${p}`, children: p }, p)) })
37159
+ ]
37160
+ }
37161
+ )
37162
+ ] }),
37163
+ /* @__PURE__ */ L("div", { className: "flex w-fit items-center justify-center text-sm font-normal text-muted-foreground", children: [
37164
+ "Page ",
37165
+ t + 1,
37166
+ " of ",
37167
+ e
37174
37168
  ] }),
37175
37169
  /* @__PURE__ */ L("div", { className: "ml-auto flex items-center gap-2 md:ml-0", children: [
37176
37170
  /* @__PURE__ */ L(
37177
37171
  ot,
37178
37172
  {
37179
- style: { borderRadius: p },
37173
+ style: { borderRadius: h },
37180
37174
  variant: "outline",
37181
37175
  className: "hidden h-8 w-8 p-0 md:flex",
37182
- onClick: () => a(0),
37183
- disabled: !l,
37176
+ onClick: () => i(0),
37177
+ disabled: !s,
37184
37178
  children: [
37185
37179
  /* @__PURE__ */ b("span", { className: "sr-only", children: "Go to first page" }),
37186
37180
  /* @__PURE__ */ b(LW, { className: "h-4 w-4" })
@@ -37190,11 +37184,11 @@ function gie({
37190
37184
  /* @__PURE__ */ L(
37191
37185
  ot,
37192
37186
  {
37193
- style: { borderRadius: p },
37187
+ style: { borderRadius: h },
37194
37188
  variant: "outline",
37195
37189
  className: "h-8 w-8 p-0",
37196
- onClick: u,
37197
- disabled: !l,
37190
+ onClick: c,
37191
+ disabled: !s,
37198
37192
  children: [
37199
37193
  /* @__PURE__ */ b("span", { className: "sr-only", children: "Go to previous page" }),
37200
37194
  /* @__PURE__ */ b(cA, { className: "h-4 w-4" })
@@ -37204,11 +37198,11 @@ function gie({
37204
37198
  /* @__PURE__ */ L(
37205
37199
  ot,
37206
37200
  {
37207
- style: { borderRadius: p },
37201
+ style: { borderRadius: h },
37208
37202
  variant: "outline",
37209
37203
  className: "h-8 w-8 p-0",
37210
- onClick: d,
37211
- disabled: !c,
37204
+ onClick: u,
37205
+ disabled: !l,
37212
37206
  children: [
37213
37207
  /* @__PURE__ */ b("span", { className: "sr-only", children: "Go to next page" }),
37214
37208
  /* @__PURE__ */ b(mS, { className: "h-4 w-4" })
@@ -37218,11 +37212,11 @@ function gie({
37218
37212
  /* @__PURE__ */ L(
37219
37213
  ot,
37220
37214
  {
37221
- style: { borderRadius: p },
37215
+ style: { borderRadius: h },
37222
37216
  variant: "outline",
37223
37217
  className: "hidden h-8 w-8 p-0 md:flex",
37224
- onClick: () => a(t - 1),
37225
- disabled: !c,
37218
+ onClick: () => i(e - 1),
37219
+ disabled: !l,
37226
37220
  children: [
37227
37221
  /* @__PURE__ */ b("span", { className: "sr-only", children: "Go to last page" }),
37228
37222
  /* @__PURE__ */ b($W, { className: "h-4 w-4" })
@@ -37613,7 +37607,7 @@ var E1 = x.forwardRef((e, t) => {
37613
37607
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
37614
37608
  });
37615
37609
  E1.displayName = "SlotClone";
37616
- var Nie = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
37610
+ var Nie = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
37617
37611
  function Aie(e) {
37618
37612
  return x.isValidElement(e) && e.type === Nie;
37619
37613
  }
@@ -37774,7 +37768,7 @@ var $ie = x.forwardRef(
37774
37768
  ), _3 = x.forwardRef(
37775
37769
  (e, t) => {
37776
37770
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = $o(ml, n), l = x.useRef(null), c = je(t, l);
37777
- return Eb(), /* @__PURE__ */ L(Ue, { children: [
37771
+ return Eb(), /* @__PURE__ */ L(Ge, { children: [
37778
37772
  /* @__PURE__ */ b(
37779
37773
  nh,
37780
37774
  {
@@ -37798,7 +37792,7 @@ var $ie = x.forwardRef(
37798
37792
  )
37799
37793
  }
37800
37794
  ),
37801
- /* @__PURE__ */ L(Ue, { children: [
37795
+ /* @__PURE__ */ L(Ge, { children: [
37802
37796
  /* @__PURE__ */ b(Vie, { titleId: s.titleId }),
37803
37797
  /* @__PURE__ */ b(Hie, { contentRef: l, descriptionId: s.descriptionId })
37804
37798
  ] })
@@ -37958,7 +37952,7 @@ var R1 = x.forwardRef((e, t) => {
37958
37952
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
37959
37953
  });
37960
37954
  R1.displayName = "SlotClone";
37961
- var qie = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
37955
+ var qie = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
37962
37956
  function Gie(e) {
37963
37957
  return x.isValidElement(e) && e.type === qie;
37964
37958
  }
@@ -39153,7 +39147,7 @@ function dse({
39153
39147
  }
39154
39148
  )
39155
39149
  ] }),
39156
- !t.dateFormat.useRelativeTime && /* @__PURE__ */ L(Ue, { children: [
39150
+ !t.dateFormat.useRelativeTime && /* @__PURE__ */ L(Ge, { children: [
39157
39151
  /* @__PURE__ */ L("div", { className: "grid grid-cols-4 items-center gap-4", children: [
39158
39152
  /* @__PURE__ */ b(Me, { htmlFor: "date-format", className: "text-right", children: "Date Format" }),
39159
39153
  /* @__PURE__ */ L(
@@ -39464,7 +39458,7 @@ function dse({
39464
39458
  /* @__PURE__ */ b(Me, { htmlFor: "show-databar", className: "ml-2", children: "Display value with a data bar" })
39465
39459
  ] })
39466
39460
  ] }),
39467
- t.numberFormat.showDataBar && /* @__PURE__ */ L(Ue, { children: [
39461
+ t.numberFormat.showDataBar && /* @__PURE__ */ L(Ge, { children: [
39468
39462
  /* @__PURE__ */ L("div", { className: "grid grid-cols-4 items-center gap-4", children: [
39469
39463
  /* @__PURE__ */ b(Me, { htmlFor: "databar-color", className: "text-right", children: "Bar Color" }),
39470
39464
  /* @__PURE__ */ b("div", { className: "col-span-3", children: /* @__PURE__ */ b(
@@ -40758,7 +40752,7 @@ function xse({
40758
40752
  e == null || e(o);
40759
40753
  }, [r, o, e]), he(() => {
40760
40754
  t(n.id, (i == null ? void 0 : i.records) || []);
40761
- }, [i == null ? void 0 : i.records, n.id, s, t]), /* @__PURE__ */ b(Ue, {});
40755
+ }, [i == null ? void 0 : i.records, n.id, s, t]), /* @__PURE__ */ b(Ge, {});
40762
40756
  }
40763
40757
  function Sse({
40764
40758
  card: e,
@@ -40790,7 +40784,7 @@ function Sse({
40790
40784
  return /* @__PURE__ */ b("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ L(
40791
40785
  T$,
40792
40786
  {
40793
- fallback: /* @__PURE__ */ b(Ue, {}),
40787
+ fallback: /* @__PURE__ */ b(Ge, {}),
40794
40788
  children: [
40795
40789
  g && d === "single" && /* @__PURE__ */ b(
40796
40790
  g,
@@ -41489,7 +41483,7 @@ const et = (e, t = null) => e.length >= 3 ? Array.prototype.slice.call(e) : ut(e
41489
41483
  function XF(e) {
41490
41484
  return [...e.slice(0, 3).reverse(), ...e.slice(3)];
41491
41485
  }
41492
- const Ge = {
41486
+ const qe = {
41493
41487
  format: {},
41494
41488
  autodetect: []
41495
41489
  };
@@ -41500,12 +41494,12 @@ class ye {
41500
41494
  return t[0];
41501
41495
  let r = Cu(t), o = !1;
41502
41496
  if (!r) {
41503
- o = !0, Ge.sorted || (Ge.autodetect = Ge.autodetect.sort((i, a) => a.p - i.p), Ge.sorted = !0);
41504
- for (let i of Ge.autodetect)
41497
+ o = !0, qe.sorted || (qe.autodetect = qe.autodetect.sort((i, a) => a.p - i.p), qe.sorted = !0);
41498
+ for (let i of qe.autodetect)
41505
41499
  if (r = i.test(...t), r) break;
41506
41500
  }
41507
- if (Ge.format[r]) {
41508
- const i = Ge.format[r].apply(
41501
+ if (qe.format[r]) {
41502
+ const i = qe.format[r].apply(
41509
41503
  null,
41510
41504
  o ? t : t.slice(0, -1)
41511
41505
  );
@@ -41708,11 +41702,11 @@ ye.prototype.name = function() {
41708
41702
  if (ou[t] === e) return t.toLowerCase();
41709
41703
  return e;
41710
41704
  };
41711
- Ge.format.named = (e) => {
41705
+ qe.format.named = (e) => {
41712
41706
  if (e = e.toLowerCase(), ou[e]) return QF(ou[e]);
41713
41707
  throw new Error("unknown color name: " + e);
41714
41708
  };
41715
- Ge.autodetect.push({
41709
+ qe.autodetect.push({
41716
41710
  p: 5,
41717
41711
  test: (e, ...t) => {
41718
41712
  if (!t.length && ut(e) === "string" && ou[e.toLowerCase()])
@@ -41866,8 +41860,8 @@ ye.prototype.lab = function() {
41866
41860
  };
41867
41861
  const tle = (...e) => new ye(...e, "lab");
41868
41862
  Object.assign(ht, { lab: tle, getLabWhitePoint: mf, setLabWhitePoint: Ui });
41869
- Ge.format.lab = QC;
41870
- Ge.autodetect.push({
41863
+ qe.format.lab = QC;
41864
+ qe.autodetect.push({
41871
41865
  p: 2,
41872
41866
  test: (...e) => {
41873
41867
  if (e = et(e, "lab"), ut(e) === "array" && e.length === 3)
@@ -41949,10 +41943,10 @@ ye.prototype.hcl = function() {
41949
41943
  };
41950
41944
  const fle = (...e) => new ye(...e, "lch"), hle = (...e) => new ye(...e, "hcl");
41951
41945
  Object.assign(ht, { lch: fle, hcl: hle });
41952
- Ge.format.lch = JC;
41953
- Ge.format.hcl = lle;
41946
+ qe.format.lch = JC;
41947
+ qe.format.hcl = lle;
41954
41948
  ["lch", "hcl"].forEach(
41955
- (e) => Ge.autodetect.push({
41949
+ (e) => qe.autodetect.push({
41956
41950
  p: 2,
41957
41951
  test: (...t) => {
41958
41952
  if (t = et(t, e), ut(t) === "array" && t.length === 3)
@@ -42061,8 +42055,8 @@ ye.prototype.num = function() {
42061
42055
  };
42062
42056
  const vle = (...e) => new ye(...e, "num");
42063
42057
  Object.assign(ht, { num: vle });
42064
- Ge.format.num = ble;
42065
- Ge.autodetect.push({
42058
+ qe.format.num = ble;
42059
+ qe.autodetect.push({
42066
42060
  p: 5,
42067
42061
  test: (...e) => {
42068
42062
  if (e.length === 1 && ut(e[0]) === "number" && e[0] >= 0 && e[0] <= 16777215)
@@ -42116,8 +42110,8 @@ ye.prototype.hcg = function() {
42116
42110
  };
42117
42111
  const _le = (...e) => new ye(...e, "hcg");
42118
42112
  ht.hcg = _le;
42119
- Ge.format.hcg = Sle;
42120
- Ge.autodetect.push({
42113
+ qe.format.hcg = Sle;
42114
+ qe.autodetect.push({
42121
42115
  p: 1,
42122
42116
  test: (...e) => {
42123
42117
  if (e = et(e, "hcg"), ut(e) === "array" && e.length === 3)
@@ -42142,8 +42136,8 @@ ye.prototype.hsi = function() {
42142
42136
  };
42143
42137
  const Nle = (...e) => new ye(...e, "hsi");
42144
42138
  ht.hsi = Nle;
42145
- Ge.format.hsi = Rle;
42146
- Ge.autodetect.push({
42139
+ qe.format.hsi = Rle;
42140
+ qe.autodetect.push({
42147
42141
  p: 2,
42148
42142
  test: (...e) => {
42149
42143
  if (e = et(e, "hsi"), ut(e) === "array" && e.length === 3)
@@ -42179,8 +42173,8 @@ ye.prototype.hsl = function() {
42179
42173
  };
42180
42174
  const Ole = (...e) => new ye(...e, "hsl");
42181
42175
  ht.hsl = Ole;
42182
- Ge.format.hsl = D1;
42183
- Ge.autodetect.push({
42176
+ qe.format.hsl = D1;
42177
+ qe.autodetect.push({
42184
42178
  p: 2,
42185
42179
  test: (...e) => {
42186
42180
  if (e = et(e, "hsl"), ut(e) === "array" && e.length === 3)
@@ -42231,8 +42225,8 @@ ye.prototype.hsv = function() {
42231
42225
  };
42232
42226
  const Ble = (...e) => new ye(...e, "hsv");
42233
42227
  ht.hsv = Ble;
42234
- Ge.format.hsv = Fle;
42235
- Ge.autodetect.push({
42228
+ qe.format.hsv = Fle;
42229
+ qe.autodetect.push({
42236
42230
  p: 2,
42237
42231
  test: (...e) => {
42238
42232
  if (e = et(e, "hsv"), ut(e) === "array" && e.length === 3)
@@ -42293,8 +42287,8 @@ ye.prototype.oklab = function() {
42293
42287
  };
42294
42288
  const Wle = (...e) => new ye(...e, "oklab");
42295
42289
  Object.assign(ht, { oklab: Wle });
42296
- Ge.format.oklab = t_;
42297
- Ge.autodetect.push({
42290
+ qe.format.oklab = t_;
42291
+ qe.autodetect.push({
42298
42292
  p: 2,
42299
42293
  test: (...e) => {
42300
42294
  if (e = et(e, "oklab"), ut(e) === "array" && e.length === 3)
@@ -42573,11 +42567,11 @@ ye.prototype.rgba = function(e = !0) {
42573
42567
  };
42574
42568
  const tce = (...e) => new ye(...e, "rgb");
42575
42569
  Object.assign(ht, { rgb: tce });
42576
- Ge.format.rgb = (...e) => {
42570
+ qe.format.rgb = (...e) => {
42577
42571
  const t = et(e, "rgba");
42578
42572
  return t[3] === void 0 && (t[3] = 1), t;
42579
42573
  };
42580
- Ge.autodetect.push({
42574
+ qe.autodetect.push({
42581
42575
  p: 3,
42582
42576
  test: (...e) => {
42583
42577
  if (e = et(e, "rgba"), ut(e) === "array" && (e.length === 3 || e.length === 4 && ut(e[3]) == "number" && e[3] >= 0 && e[3] <= 1))
@@ -42862,8 +42856,8 @@ ye.prototype.cmyk = function() {
42862
42856
  };
42863
42857
  const Tce = (...e) => new ye(...e, "cmyk");
42864
42858
  Object.assign(ht, { cmyk: Tce });
42865
- Ge.format.cmyk = Oce;
42866
- Ge.autodetect.push({
42859
+ qe.format.cmyk = Oce;
42860
+ qe.autodetect.push({
42867
42861
  p: 2,
42868
42862
  test: (...e) => {
42869
42863
  if (e = et(e, "cmyk"), ut(e) === "array" && e.length === 4)
@@ -42935,9 +42929,9 @@ const Fce = (...e) => {
42935
42929
  if (e = e.toLowerCase().trim(), e === "transparent")
42936
42930
  return [0, 0, 0, 0];
42937
42931
  let t;
42938
- if (Ge.format.named)
42932
+ if (qe.format.named)
42939
42933
  try {
42940
- return Ge.format.named(e);
42934
+ return qe.format.named(e);
42941
42935
  } catch {
42942
42936
  }
42943
42937
  if ((t = e.match(d6)) || (t = e.match(f6))) {
@@ -43011,15 +43005,15 @@ ye.prototype.css = function(e) {
43011
43005
  };
43012
43006
  const jce = (...e) => new ye(...e, "css");
43013
43007
  ht.css = jce;
43014
- Ge.format.css = o_;
43015
- Ge.autodetect.push({
43008
+ qe.format.css = o_;
43009
+ qe.autodetect.push({
43016
43010
  p: 5,
43017
43011
  test: (e, ...t) => {
43018
43012
  if (!t.length && ut(e) === "string" && o_.test(e))
43019
43013
  return "css";
43020
43014
  }
43021
43015
  });
43022
- Ge.format.gl = (...e) => {
43016
+ qe.format.gl = (...e) => {
43023
43017
  const t = et(e, "rgba");
43024
43018
  return t[0] *= 255, t[1] *= 255, t[2] *= 255, t;
43025
43019
  };
@@ -43034,8 +43028,8 @@ ye.prototype.hex = function(e) {
43034
43028
  };
43035
43029
  const Wce = (...e) => new ye(...e, "hex");
43036
43030
  ht.hex = Wce;
43037
- Ge.format.hex = QF;
43038
- Ge.autodetect.push({
43031
+ qe.format.hex = QF;
43032
+ qe.autodetect.push({
43039
43033
  p: 4,
43040
43034
  test: (e, ...t) => {
43041
43035
  if (!t.length && ut(e) === "string" && [3, 4, 5, 6, 7, 8, 9].indexOf(e.length) >= 0)
@@ -43063,14 +43057,14 @@ ye.prototype.temp = ye.prototype.kelvin = ye.prototype.temperature = function()
43063
43057
  };
43064
43058
  const Hy = (...e) => new ye(...e, "temp");
43065
43059
  Object.assign(ht, { temp: Hy, kelvin: Hy, temperature: Hy });
43066
- Ge.format.temp = Ge.format.kelvin = Ge.format.temperature = S6;
43060
+ qe.format.temp = qe.format.kelvin = qe.format.temperature = S6;
43067
43061
  ye.prototype.oklch = function() {
43068
43062
  return c6(this._rgb);
43069
43063
  };
43070
43064
  const Gce = (...e) => new ye(...e, "oklch");
43071
43065
  Object.assign(ht, { oklch: Gce });
43072
- Ge.format.oklch = u6;
43073
- Ge.autodetect.push({
43066
+ qe.format.oklch = u6;
43067
+ qe.autodetect.push({
43074
43068
  p: 2,
43075
43069
  test: (...e) => {
43076
43070
  if (e = et(e, "oklch"), ut(e) === "array" && e.length === 3)
@@ -43090,7 +43084,7 @@ Object.assign(ht, {
43090
43084
  cubehelix: hce,
43091
43085
  deltaE: Pce,
43092
43086
  distance: Mce,
43093
- input: Ge,
43087
+ input: qe,
43094
43088
  interpolate: iu,
43095
43089
  limits: s6,
43096
43090
  mix: iu,
@@ -44997,9 +44991,9 @@ function $6(e) {
44997
44991
  function Dde(e) {
44998
44992
  var t, n = Yt(), r = n.fromDate, o = n.toDate, i = n.styles, a = n.locale, s = n.formatters.formatMonthCaption, l = n.classNames, c = n.components, u = n.labels.labelMonthDropdown;
44999
44993
  if (!r)
45000
- return b(Ue, {});
44994
+ return b(Ge, {});
45001
44995
  if (!o)
45002
- return b(Ue, {});
44996
+ return b(Ge, {});
45003
44997
  var d = [];
45004
44998
  if (sde(r, o))
45005
44999
  for (var f = Or(r), h = r.getMonth(); h <= o.getMonth(); h++)
@@ -45018,9 +45012,9 @@ function Dde(e) {
45018
45012
  function Nde(e) {
45019
45013
  var t, n = e.displayMonth, r = Yt(), o = r.fromDate, i = r.toDate, a = r.locale, s = r.styles, l = r.classNames, c = r.components, u = r.formatters.formatYearCaption, d = r.labels.labelYearDropdown, f = [];
45020
45014
  if (!o)
45021
- return b(Ue, {});
45015
+ return b(Ge, {});
45022
45016
  if (!i)
45023
- return b(Ue, {});
45017
+ return b(Ge, {});
45024
45018
  for (var h = o.getFullYear(), p = i.getFullYear(), g = h; g <= p; g++)
45025
45019
  f.push(HP(R6(/* @__PURE__ */ new Date()), g));
45026
45020
  var m = function(v) {
@@ -45126,7 +45120,7 @@ var ym = Tn(function(e, t) {
45126
45120
  function Vde(e) {
45127
45121
  var t, n, r = Yt(), o = r.dir, i = r.locale, a = r.classNames, s = r.styles, l = r.labels, c = l.labelPrevious, u = l.labelNext, d = r.components;
45128
45122
  if (!e.nextMonth && !e.previousMonth)
45129
- return b(Ue, {});
45123
+ return b(Ge, {});
45130
45124
  var f = c(e.previousMonth, { locale: i }), h = [
45131
45125
  a.nav_button,
45132
45126
  a.nav_button_previous
@@ -45148,11 +45142,11 @@ function UP(e) {
45148
45142
  }
45149
45143
  function jde(e) {
45150
45144
  var t, n = Yt(), r = n.classNames, o = n.disableNavigation, i = n.styles, a = n.captionLayout, s = n.components, l = (t = s == null ? void 0 : s.CaptionLabel) !== null && t !== void 0 ? t : L6, c;
45151
- return o ? c = b(l, { id: e.id, displayMonth: e.displayMonth }) : a === "dropdown" ? c = b(WP, { displayMonth: e.displayMonth, id: e.id }) : a === "dropdown-buttons" ? c = L(Ue, { children: [b(WP, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), b(UP, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = L(Ue, { children: [b(l, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), b(UP, { displayMonth: e.displayMonth, id: e.id })] }), b("div", { className: r.caption, style: i.caption, children: c });
45145
+ return o ? c = b(l, { id: e.id, displayMonth: e.displayMonth }) : a === "dropdown" ? c = b(WP, { displayMonth: e.displayMonth, id: e.id }) : a === "dropdown-buttons" ? c = L(Ge, { children: [b(WP, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), b(UP, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = L(Ge, { children: [b(l, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), b(UP, { displayMonth: e.displayMonth, id: e.id })] }), b("div", { className: r.caption, style: i.caption, children: c });
45152
45146
  }
45153
45147
  function Hde(e) {
45154
45148
  var t = Yt(), n = t.footer, r = t.styles, o = t.classNames.tfoot;
45155
- return n ? b("tfoot", { className: o, style: r.tfoot, children: b("tr", { children: b("td", { colSpan: 8, children: n }) }) }) : b(Ue, {});
45149
+ return n ? b("tfoot", { className: o, style: r.tfoot, children: b("tr", { children: b("td", { colSpan: 8, children: n }) }) }) : b(Ge, {});
45156
45150
  }
45157
45151
  function Wde(e, t, n) {
45158
45152
  for (var r = n ? bl(/* @__PURE__ */ new Date()) : hi(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: t }), o = [], i = 0; i < 7; i++) {
@@ -45173,7 +45167,7 @@ function qde() {
45173
45167
  }
45174
45168
  function Gde(e) {
45175
45169
  var t = Yt(), n = t.locale, r = t.formatters.formatDay;
45176
- return b(Ue, { children: r(e.date, { locale: n }) });
45170
+ return b(Ge, { children: r(e.date, { locale: n }) });
45177
45171
  }
45178
45172
  var u_ = Ot(void 0);
45179
45173
  function Yde(e) {
@@ -45857,7 +45851,7 @@ function Vfe({
45857
45851
  ),
45858
45852
  children: [
45859
45853
  /* @__PURE__ */ b(FW, { className: "mr-2 h-4 w-4" }),
45860
- n != null && n.from ? n.to ? /* @__PURE__ */ L(Ue, { children: [
45854
+ n != null && n.from ? n.to ? /* @__PURE__ */ L(Ge, { children: [
45861
45855
  si(n.from, "LLL dd, y"),
45862
45856
  " -",
45863
45857
  " ",
@@ -48796,7 +48790,7 @@ function Wge({
48796
48790
  value: n,
48797
48791
  onChange: g,
48798
48792
  onClose: () => d(""),
48799
- children: ({ open: v }) => /* @__PURE__ */ L(Ue, { children: [
48793
+ children: ({ open: v }) => /* @__PURE__ */ L(Ge, { children: [
48800
48794
  /* @__PURE__ */ L("div", { className: "relative flex items-center gap-0.5", children: [
48801
48795
  c && /* @__PURE__ */ b("div", { className: "h-8 w-0.5 bg-red-400" }),
48802
48796
  /* @__PURE__ */ b(
@@ -49172,7 +49166,7 @@ function Kge({ card: e, frame: t }) {
49172
49166
  renderFilterInfo: () => /* @__PURE__ */ b(oP, {}),
49173
49167
  card: N
49174
49168
  }
49175
- ) }) : /* @__PURE__ */ L(Ue, { children: [
49169
+ ) }) : /* @__PURE__ */ L(Ge, { children: [
49176
49170
  /* @__PURE__ */ L("div", { role: "card-title-container", className: "flex items-center gap-2", children: [
49177
49171
  /* @__PURE__ */ b(
49178
49172
  Gi,
@@ -49231,7 +49225,7 @@ function Kge({ card: e, frame: t }) {
49231
49225
  ] });
49232
49226
  }
49233
49227
  if (!e.id) return null;
49234
- const A = /* @__PURE__ */ L(Ue, { children: [
49228
+ const A = /* @__PURE__ */ L(Ge, { children: [
49235
49229
  p ? /* @__PURE__ */ b(Bx, { children: /* @__PURE__ */ L("div", { className: "flex flex-wrap items-start justify-between gap-2", children: [
49236
49230
  /* @__PURE__ */ b("div", { className: "grow", role: "header-container", children: P() }),
49237
49231
  /* @__PURE__ */ L("div", { className: "flex flex-wrap items-center gap-2", children: [
@@ -49689,7 +49683,7 @@ function nme({ sheet: e }) {
49689
49683
  const m = ((y = r == null ? void 0 : r.gridLayout) == null ? void 0 : y.margin) || [10, 10];
49690
49684
  return (
49691
49685
  //Use version 1.4.2 of react-grid-layout for this to work. https://github.com/react-grid-layout/react-grid-layout/issues/1980
49692
- /* @__PURE__ */ b(Ue, { children: /* @__PURE__ */ L(
49686
+ /* @__PURE__ */ b(Ge, { children: /* @__PURE__ */ L(
49693
49687
  tme,
49694
49688
  {
49695
49689
  margin: m,
@@ -51286,7 +51280,7 @@ var W1 = x.forwardRef((e, t) => {
51286
51280
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
51287
51281
  });
51288
51282
  W1.displayName = "SlotClone";
51289
- var J8 = ({ children: e }) => /* @__PURE__ */ b(Ue, { children: e });
51283
+ var J8 = ({ children: e }) => /* @__PURE__ */ b(Ge, { children: e });
51290
51284
  function Fme(e) {
51291
51285
  return x.isValidElement(e) && e.type === J8;
51292
51286
  }
@@ -58299,7 +58293,7 @@ function jwe(e, t) {
58299
58293
  e.type === "root" ? e.children : [e]
58300
58294
  )
58301
58295
  }), u9(e, c), Jbe(e, {
58302
- Fragment: Ue,
58296
+ Fragment: Ge,
58303
58297
  // @ts-expect-error
58304
58298
  // React components are allowed to return numbers,
58305
58299
  // but not according to the types in hast-util-to-jsx-runtime
@@ -64203,7 +64197,7 @@ var yCe = (e) => {
64203
64197
  let { invert: f, toast: h, unstyled: p, interacting: g, setHeights: m, visibleToasts: y, heights: v, index: w, toasts: _, expanded: E, removeToast: S, defaultRichColors: C, closeButton: R, style: M, cancelButtonStyle: P, actionButtonStyle: A, className: O = "", descriptionClassName: $ = "", duration: F, position: N, gap: I, loadingIcon: T, expandByDefault: B, classNames: V, icons: D, closeButtonAriaLabel: W = "Close toast", pauseWhenPageIsHidden: z } = e, [k, j] = J.useState(null), [q, Y] = J.useState(null), [U, G] = J.useState(!1), [X, ee] = J.useState(!1), [ne, Q] = J.useState(!1), [ae, te] = J.useState(!1), [pe, be] = J.useState(!1), [de, ce] = J.useState(0), [ve, Ce] = J.useState(0), Ye = J.useRef(h.duration || F || ID), jt = J.useRef(null), Ke = J.useRef(null), Ln = w === 0, It = w + 1 <= y, re = h.type, ue = h.dismissible !== !1, ke = h.className || "", Ne = h.descriptionClassName || "", We = J.useMemo(() => v.findIndex((Oe) => Oe.toastId === h.id) || 0, [v, h.id]), Ft = J.useMemo(() => {
64204
64198
  var Oe;
64205
64199
  return (Oe = h.closeButton) != null ? Oe : R;
64206
- }, [h.closeButton, R]), Nn = J.useMemo(() => h.duration || F || ID, [h.duration, F]), vn = J.useRef(0), xe = J.useRef(0), wn = J.useRef(0), Lt = J.useRef(null), [to, jn] = N.split("-"), Ol = J.useMemo(() => v.reduce((Oe, qe, it) => it >= We ? Oe : Oe + qe.height, 0), [v, We]), es = tCe(), Ci = h.invert || f, ln = re === "loading";
64200
+ }, [h.closeButton, R]), Nn = J.useMemo(() => h.duration || F || ID, [h.duration, F]), vn = J.useRef(0), xe = J.useRef(0), wn = J.useRef(0), Lt = J.useRef(null), [to, jn] = N.split("-"), Ol = J.useMemo(() => v.reduce((Oe, Ue, it) => it >= We ? Oe : Oe + Ue.height, 0), [v, We]), es = tCe(), Ci = h.invert || f, ln = re === "loading";
64207
64201
  xe.current = J.useMemo(() => We * I + Ol, [We, Ol]), J.useEffect(() => {
64208
64202
  Ye.current = Nn;
64209
64203
  }, [Nn]), J.useEffect(() => {
@@ -64211,18 +64205,18 @@ var yCe = (e) => {
64211
64205
  }, []), J.useEffect(() => {
64212
64206
  let Oe = Ke.current;
64213
64207
  if (Oe) {
64214
- let qe = Oe.getBoundingClientRect().height;
64215
- return Ce(qe), m((it) => [{ toastId: h.id, height: qe, position: h.position }, ...it]), () => m((it) => it.filter((nn) => nn.toastId !== h.id));
64208
+ let Ue = Oe.getBoundingClientRect().height;
64209
+ return Ce(Ue), m((it) => [{ toastId: h.id, height: Ue, position: h.position }, ...it]), () => m((it) => it.filter((nn) => nn.toastId !== h.id));
64216
64210
  }
64217
64211
  }, [m, h.id]), J.useLayoutEffect(() => {
64218
64212
  if (!U) return;
64219
- let Oe = Ke.current, qe = Oe.style.height;
64213
+ let Oe = Ke.current, Ue = Oe.style.height;
64220
64214
  Oe.style.height = "auto";
64221
64215
  let it = Oe.getBoundingClientRect().height;
64222
- Oe.style.height = qe, Ce(it), m((nn) => nn.find(($t) => $t.toastId === h.id) ? nn.map(($t) => $t.toastId === h.id ? { ...$t, height: it } : $t) : [{ toastId: h.id, height: it, position: h.position }, ...nn]);
64216
+ Oe.style.height = Ue, Ce(it), m((nn) => nn.find(($t) => $t.toastId === h.id) ? nn.map(($t) => $t.toastId === h.id ? { ...$t, height: it } : $t) : [{ toastId: h.id, height: it, position: h.position }, ...nn]);
64223
64217
  }, [U, h.title, h.description, m, h.id]);
64224
64218
  let kt = J.useCallback(() => {
64225
- ee(!0), ce(xe.current), m((Oe) => Oe.filter((qe) => qe.toastId !== h.id)), setTimeout(() => {
64219
+ ee(!0), ce(xe.current), m((Oe) => Oe.filter((Ue) => Ue.toastId !== h.id)), setTimeout(() => {
64226
64220
  S(h);
64227
64221
  }, mCe);
64228
64222
  }, [h, S, m, xe]);
@@ -64231,38 +64225,38 @@ var yCe = (e) => {
64231
64225
  let Oe;
64232
64226
  return E || g || z && es ? (() => {
64233
64227
  if (wn.current < vn.current) {
64234
- let qe = (/* @__PURE__ */ new Date()).getTime() - vn.current;
64235
- Ye.current = Ye.current - qe;
64228
+ let Ue = (/* @__PURE__ */ new Date()).getTime() - vn.current;
64229
+ Ye.current = Ye.current - Ue;
64236
64230
  }
64237
64231
  wn.current = (/* @__PURE__ */ new Date()).getTime();
64238
64232
  })() : Ye.current !== 1 / 0 && (vn.current = (/* @__PURE__ */ new Date()).getTime(), Oe = setTimeout(() => {
64239
- var qe;
64240
- (qe = h.onAutoClose) == null || qe.call(h, h), kt();
64233
+ var Ue;
64234
+ (Ue = h.onAutoClose) == null || Ue.call(h, h), kt();
64241
64235
  }, Ye.current)), () => clearTimeout(Oe);
64242
64236
  }, [E, g, h, re, z, es, kt]), J.useEffect(() => {
64243
64237
  h.delete && kt();
64244
64238
  }, [kt, h.delete]);
64245
64239
  function Hn() {
64246
- var Oe, qe, it;
64247
- return D != null && D.loading ? J.createElement("div", { className: vo(V == null ? void 0 : V.loader, (Oe = h == null ? void 0 : h.classNames) == null ? void 0 : Oe.loader, "sonner-loader"), "data-visible": re === "loading" }, D.loading) : T ? J.createElement("div", { className: vo(V == null ? void 0 : V.loader, (qe = h == null ? void 0 : h.classNames) == null ? void 0 : qe.loader, "sonner-loader"), "data-visible": re === "loading" }, T) : J.createElement(KSe, { className: vo(V == null ? void 0 : V.loader, (it = h == null ? void 0 : h.classNames) == null ? void 0 : it.loader), visible: re === "loading" });
64240
+ var Oe, Ue, it;
64241
+ return D != null && D.loading ? J.createElement("div", { className: vo(V == null ? void 0 : V.loader, (Oe = h == null ? void 0 : h.classNames) == null ? void 0 : Oe.loader, "sonner-loader"), "data-visible": re === "loading" }, D.loading) : T ? J.createElement("div", { className: vo(V == null ? void 0 : V.loader, (Ue = h == null ? void 0 : h.classNames) == null ? void 0 : Ue.loader, "sonner-loader"), "data-visible": re === "loading" }, T) : J.createElement(KSe, { className: vo(V == null ? void 0 : V.loader, (it = h == null ? void 0 : h.classNames) == null ? void 0 : it.loader), visible: re === "loading" });
64248
64242
  }
64249
64243
  return J.createElement("li", { tabIndex: 0, ref: Ke, className: vo(O, ke, V == null ? void 0 : V.toast, (t = h == null ? void 0 : h.classNames) == null ? void 0 : t.toast, V == null ? void 0 : V.default, V == null ? void 0 : V[re], (n = h == null ? void 0 : h.classNames) == null ? void 0 : n[re]), "data-sonner-toast": "", "data-rich-colors": (r = h.richColors) != null ? r : C, "data-styled": !(h.jsx || h.unstyled || p), "data-mounted": U, "data-promise": !!h.promise, "data-swiped": pe, "data-removed": X, "data-visible": It, "data-y-position": to, "data-x-position": jn, "data-index": w, "data-front": Ln, "data-swiping": ne, "data-dismissible": ue, "data-type": re, "data-invert": Ci, "data-swipe-out": ae, "data-swipe-direction": q, "data-expanded": !!(E || B && U), style: { "--index": w, "--toasts-before": w, "--z-index": _.length - w, "--offset": `${X ? de : xe.current}px`, "--initial-height": B ? "auto" : `${ve}px`, ...M, ...h.style }, onDragEnd: () => {
64250
64244
  Q(!1), j(null), Lt.current = null;
64251
64245
  }, onPointerDown: (Oe) => {
64252
64246
  ln || !ue || (jt.current = /* @__PURE__ */ new Date(), ce(xe.current), Oe.target.setPointerCapture(Oe.pointerId), Oe.target.tagName !== "BUTTON" && (Q(!0), Lt.current = { x: Oe.clientX, y: Oe.clientY }));
64253
64247
  }, onPointerUp: () => {
64254
- var Oe, qe, it, nn;
64248
+ var Oe, Ue, it, nn;
64255
64249
  if (ae || !ue) return;
64256
64250
  Lt.current = null;
64257
- let $t = Number(((Oe = Ke.current) == null ? void 0 : Oe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), zt = Number(((qe = Ke.current) == null ? void 0 : qe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), $n = (/* @__PURE__ */ new Date()).getTime() - ((it = jt.current) == null ? void 0 : it.getTime()), rn = k === "x" ? $t : zt, xn = Math.abs(rn) / $n;
64251
+ let $t = Number(((Oe = Ke.current) == null ? void 0 : Oe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), zt = Number(((Ue = Ke.current) == null ? void 0 : Ue.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), $n = (/* @__PURE__ */ new Date()).getTime() - ((it = jt.current) == null ? void 0 : it.getTime()), rn = k === "x" ? $t : zt, xn = Math.abs(rn) / $n;
64258
64252
  if (Math.abs(rn) >= gCe || xn > 0.11) {
64259
64253
  ce(xe.current), (nn = h.onDismiss) == null || nn.call(h, h), Y(k === "x" ? $t > 0 ? "right" : "left" : zt > 0 ? "down" : "up"), kt(), te(!0), be(!1);
64260
64254
  return;
64261
64255
  }
64262
64256
  Q(!1), j(null);
64263
64257
  }, onPointerMove: (Oe) => {
64264
- var qe, it, nn, $t;
64265
- if (!Lt.current || !ue || ((qe = window.getSelection()) == null ? void 0 : qe.toString().length) > 0) return;
64258
+ var Ue, it, nn, $t;
64259
+ if (!Lt.current || !ue || ((Ue = window.getSelection()) == null ? void 0 : Ue.toString().length) > 0) return;
64266
64260
  let zt = Oe.clientY - Lt.current.y, $n = Oe.clientX - Lt.current.x, rn = (it = e.swipeDirections) != null ? it : bCe(N);
64267
64261
  !k && (Math.abs($n) > 1 || Math.abs(zt) > 1) && j(Math.abs($n) > Math.abs(zt) ? "x" : "y");
64268
64262
  let xn = { x: 0, y: 0 };
@@ -64272,11 +64266,11 @@ var yCe = (e) => {
64272
64266
  var Oe;
64273
64267
  kt(), (Oe = h.onDismiss) == null || Oe.call(h, h);
64274
64268
  }, className: vo(V == null ? void 0 : V.closeButton, (o = h == null ? void 0 : h.classNames) == null ? void 0 : o.closeButton) }, (i = D == null ? void 0 : D.close) != null ? i : eCe) : null, h.jsx || Xp(h.title) ? h.jsx ? h.jsx : typeof h.title == "function" ? h.title() : h.title : J.createElement(J.Fragment, null, re || h.icon || h.promise ? J.createElement("div", { "data-icon": "", className: vo(V == null ? void 0 : V.icon, (a = h == null ? void 0 : h.classNames) == null ? void 0 : a.icon) }, h.promise || h.type === "loading" && !h.icon ? h.icon || Hn() : null, h.type !== "loading" ? h.icon || (D == null ? void 0 : D[re]) || GSe(re) : null) : null, J.createElement("div", { "data-content": "", className: vo(V == null ? void 0 : V.content, (s = h == null ? void 0 : h.classNames) == null ? void 0 : s.content) }, J.createElement("div", { "data-title": "", className: vo(V == null ? void 0 : V.title, (l = h == null ? void 0 : h.classNames) == null ? void 0 : l.title) }, typeof h.title == "function" ? h.title() : h.title), h.description ? J.createElement("div", { "data-description": "", className: vo($, Ne, V == null ? void 0 : V.description, (c = h == null ? void 0 : h.classNames) == null ? void 0 : c.description) }, typeof h.description == "function" ? h.description() : h.description) : null), Xp(h.cancel) ? h.cancel : h.cancel && jp(h.cancel) ? J.createElement("button", { "data-button": !0, "data-cancel": !0, style: h.cancelButtonStyle || P, onClick: (Oe) => {
64275
- var qe, it;
64276
- jp(h.cancel) && ue && ((it = (qe = h.cancel).onClick) == null || it.call(qe, Oe), kt());
64269
+ var Ue, it;
64270
+ jp(h.cancel) && ue && ((it = (Ue = h.cancel).onClick) == null || it.call(Ue, Oe), kt());
64277
64271
  }, className: vo(V == null ? void 0 : V.cancelButton, (u = h == null ? void 0 : h.classNames) == null ? void 0 : u.cancelButton) }, h.cancel.label) : null, Xp(h.action) ? h.action : h.action && jp(h.action) ? J.createElement("button", { "data-button": !0, "data-action": !0, style: h.actionButtonStyle || A, onClick: (Oe) => {
64278
- var qe, it;
64279
- jp(h.action) && ((it = (qe = h.action).onClick) == null || it.call(qe, Oe), !Oe.defaultPrevented && kt());
64272
+ var Ue, it;
64273
+ jp(h.action) && ((it = (Ue = h.action).onClick) == null || it.call(Ue, Oe), !Oe.defaultPrevented && kt());
64280
64274
  }, className: vo(V == null ? void 0 : V.actionButton, (d = h == null ? void 0 : h.classNames) == null ? void 0 : d.actionButton) }, h.action.label) : null));
64281
64275
  };
64282
64276
  function TD() {
@@ -64580,7 +64574,7 @@ function SCe() {
64580
64574
  }
64581
64575
  return l ? /* @__PURE__ */ L(Ome, { className: "grow", direction: "horizontal", children: [
64582
64576
  /* @__PURE__ */ b(_M, { children: R() }),
64583
- e === !0 && /* @__PURE__ */ L(Ue, { children: [
64577
+ e === !0 && /* @__PURE__ */ L(Ge, { children: [
64584
64578
  /* @__PURE__ */ b(
64585
64579
  Ime,
64586
64580
  {
@@ -67082,12 +67076,12 @@ const Dke = /* @__PURE__ */ $f(function(t) {
67082
67076
  } = kt;
67083
67077
  if (F.current == null)
67084
67078
  return;
67085
- const qe = R.get(F.current);
67086
- if (!qe)
67079
+ const Ue = R.get(F.current);
67080
+ if (!Ue)
67087
67081
  return;
67088
67082
  const it = ln.nativeEvent, nn = new Hn({
67089
67083
  active: F.current,
67090
- activeNode: qe,
67084
+ activeNode: Ue,
67091
67085
  event: it,
67092
67086
  options: Oe,
67093
67087
  // Sensors need to be instantiated with refs for arguments that change over time
@@ -67200,18 +67194,18 @@ const Dke = /* @__PURE__ */ $f(function(t) {
67200
67194
  // eslint-disable-next-line react-hooks/exhaustive-deps
67201
67195
  [R]
67202
67196
  ), to = De((ln, kt) => (Hn, Oe) => {
67203
- const qe = Hn.nativeEvent, it = R.get(Oe);
67197
+ const Ue = Hn.nativeEvent, it = R.get(Oe);
67204
67198
  if (
67205
67199
  // Another sensor is already instantiating
67206
67200
  F.current !== null || // No active draggable
67207
67201
  !it || // Event has already been captured
67208
- qe.dndKit || qe.defaultPrevented
67202
+ Ue.dndKit || Ue.defaultPrevented
67209
67203
  )
67210
67204
  return;
67211
67205
  const nn = {
67212
67206
  active: it
67213
67207
  };
67214
- ln(Hn, kt.options, nn) === !0 && (qe.dndKit = {
67208
+ ln(Hn, kt.options, nn) === !0 && (Ue.dndKit = {
67215
67209
  capturedBy: kt.sensor
67216
67210
  }, F.current = Oe, Lt(Hn, kt));
67217
67211
  }, [R, Lt]), jn = G_e(u, to);
@@ -67225,7 +67219,7 @@ const Dke = /* @__PURE__ */ $f(function(t) {
67225
67219
  active: kt,
67226
67220
  activatorEvent: Hn,
67227
67221
  collisions: Oe,
67228
- over: qe
67222
+ over: Ue
67229
67223
  } = Q.current;
67230
67224
  if (!kt || !Hn)
67231
67225
  return;
@@ -67237,7 +67231,7 @@ const Dke = /* @__PURE__ */ $f(function(t) {
67237
67231
  x: ue.x,
67238
67232
  y: ue.y
67239
67233
  },
67240
- over: qe
67234
+ over: Ue
67241
67235
  };
67242
67236
  Ih(() => {
67243
67237
  ln == null || ln(it), v({
@@ -67255,9 +67249,9 @@ const Dke = /* @__PURE__ */ $f(function(t) {
67255
67249
  activatorEvent: kt,
67256
67250
  collisions: Hn,
67257
67251
  droppableContainers: Oe,
67258
- scrollAdjustedTranslate: qe
67252
+ scrollAdjustedTranslate: Ue
67259
67253
  } = Q.current;
67260
- if (!ln || F.current == null || !kt || !qe)
67254
+ if (!ln || F.current == null || !kt || !Ue)
67261
67255
  return;
67262
67256
  const {
67263
67257
  onDragOver: it
@@ -67271,8 +67265,8 @@ const Dke = /* @__PURE__ */ $f(function(t) {
67271
67265
  activatorEvent: kt,
67272
67266
  collisions: Hn,
67273
67267
  delta: {
67274
- x: qe.x,
67275
- y: qe.y
67268
+ x: Ue.x,
67269
+ y: Ue.y
67276
67270
  },
67277
67271
  over: $t
67278
67272
  };