react-semaphor 0.0.494 → 0.0.495

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.
@@ -14,7 +14,7 @@ var Bh = (e, t, n, r) => ({
14
14
  }
15
15
  });
16
16
  import * as S from "react";
17
- import J, { createContext as Lt, useState as ue, useEffect as de, useContext as yt, forwardRef as Ln, useCallback as Me, createElement as rn, Component as Vz, useRef as pe, useMemo as Ie, useLayoutEffect as gu, Suspense as jz, Fragment as qs, isValidElement as ig, cloneElement as zA, useId as Pl, useReducer as qx, useSyncExternalStore as Hz, createRef as Wz, memo as qf, useDebugValue as qz } from "react";
17
+ import J, { createContext as Lt, useState as ue, useEffect as de, useContext as yt, forwardRef as Ln, useCallback as Me, createElement as rn, Component as Vz, useRef as pe, useMemo as Te, useLayoutEffect as gu, Suspense as jz, Fragment as qs, isValidElement as ig, cloneElement as zA, useId as Pl, useReducer as qx, useSyncExternalStore as Hz, createRef as Wz, memo as qf, useDebugValue as qz } from "react";
18
18
  import * as sl from "react-dom";
19
19
  import mu, { createPortal as Ux, flushSync as Rs, unstable_batchedUpdates as Vh } from "react-dom";
20
20
  import * as XE from "react/jsx-runtime";
@@ -5243,7 +5243,7 @@ Og.exports;
5243
5243
  function Wn() {
5244
5244
  this.__data__ = Pi ? Pi(null) : {}, this.size = 0;
5245
5245
  }
5246
- function Te(H) {
5246
+ function Fe(H) {
5247
5247
  var Z = this.has(H) && delete this.__data__[H];
5248
5248
  return this.size -= Z ? 1 : 0, Z;
5249
5249
  }
@@ -5263,7 +5263,7 @@ Og.exports;
5263
5263
  var ie = this.__data__;
5264
5264
  return this.size += this.has(H) ? 0 : 1, ie[H] = Pi && Z === void 0 ? r : Z, this;
5265
5265
  }
5266
- At.prototype.clear = Wn, At.prototype.delete = Te, At.prototype.get = Qe, At.prototype.has = lt, At.prototype.set = on;
5266
+ At.prototype.clear = Wn, At.prototype.delete = Fe, At.prototype.get = Qe, At.prototype.has = lt, At.prototype.set = on;
5267
5267
  function Vt(H) {
5268
5268
  var Z = -1, ie = H == null ? 0 : H.length;
5269
5269
  for (this.clear(); ++Z < ie; ) {
@@ -14241,7 +14241,7 @@ const J2 = {}, RU = (e) => ({
14241
14241
  }
14242
14242
  });
14243
14243
  }
14244
- }), Fe = Xx()(
14244
+ }), Ie = Xx()(
14245
14245
  JA((e, t) => ({
14246
14246
  isDevMode: !1,
14247
14247
  userInputForAI: "",
@@ -14953,10 +14953,10 @@ const J2 = {}, RU = (e) => ({
14953
14953
  }
14954
14954
  }
14955
14955
  }))
14956
- ), bo = () => Fe((e) => e.actions);
14956
+ ), bo = () => Ie((e) => e.actions);
14957
14957
  function To(e) {
14958
14958
  var R, M, I;
14959
- const { authToken: t } = wr(), n = oe(($) => $.filteringCards), r = Fe(($) => $.isDevMode), o = e.queryConfig, i = e.config, a = e.dataSource, s = oe(($) => $.isVisualEditing), l = oe(($) => $.actions.getCardFrame), c = oe(($) => $.authToken), u = (n == null ? void 0 : n.some(($) => $.id === e.id)) || !1, d = l(e.id), f = (d == null ? void 0 : d.cards) || [], h = (f == null ? void 0 : f.length) == 1, p = wU((e == null ? void 0 : e.refreshInterval) || "0"), { queryKey: g, sql: m, sheetFilterValues: y } = WO(e);
14959
+ const { authToken: t } = wr(), n = oe(($) => $.filteringCards), r = Ie(($) => $.isDevMode), o = e.queryConfig, i = e.config, a = e.dataSource, s = oe(($) => $.isVisualEditing), l = oe(($) => $.actions.getCardFrame), c = oe(($) => $.authToken), u = (n == null ? void 0 : n.some(($) => $.id === e.id)) || !1, d = l(e.id), f = (d == null ? void 0 : d.cards) || [], h = (f == null ? void 0 : f.length) == 1, p = wU((e == null ? void 0 : e.refreshInterval) || "0"), { queryKey: g, sql: m, sheetFilterValues: y } = WO(e);
14960
14960
  let v = {};
14961
14961
  s || (v = {
14962
14962
  refetchInterval: p
@@ -15275,7 +15275,7 @@ function Jf(e, t) {
15275
15275
  return e.map((n) => n[t] ? n[t] : "BLANK");
15276
15276
  }
15277
15277
  function hb(e) {
15278
- const t = oe((c) => c.authToken) || e, n = Fe(
15278
+ const t = oe((c) => c.authToken) || e, n = Ie(
15279
15279
  (c) => c.selectedConnectionId
15280
15280
  ), {
15281
15281
  refetch: r,
@@ -15307,7 +15307,7 @@ function hb(e) {
15307
15307
  };
15308
15308
  }
15309
15309
  function CMe(e) {
15310
- const { connections: t } = hb(e), n = Fe(
15310
+ const { connections: t } = hb(e), n = Ie(
15311
15311
  (i) => i.selectedConnectionId
15312
15312
  ), r = t.find(
15313
15313
  (i) => i.id === n
@@ -15334,9 +15334,9 @@ function TU(e) {
15334
15334
  selectedDatamodelId: s
15335
15335
  } = YRe(), { removeFrame: l } = oe((M) => M.actions), c = oe(
15336
15336
  (M) => M.actions.setIsVisualEditing
15337
- ), u = Fe(
15337
+ ), u = Ie(
15338
15338
  (M) => M.actions.setFilterValues
15339
- ), d = Fe(
15339
+ ), d = Ie(
15340
15340
  (M) => M.actions.setApplyFilters
15341
15341
  ), {
15342
15342
  setCard: f,
@@ -15346,15 +15346,15 @@ function TU(e) {
15346
15346
  setIsDevMode: m,
15347
15347
  setQueryConfig: y,
15348
15348
  updateDataSource: v
15349
- } = bo(), w = Fe(
15349
+ } = bo(), w = Ie(
15350
15350
  (M) => M.actions.setSelectedConnectionId
15351
- ), _ = Fe(
15351
+ ), _ = Ie(
15352
15352
  (M) => M.actions.setSelectedDatamodelId
15353
- ), C = Fe(
15353
+ ), C = Ie(
15354
15354
  (M) => M.actions.setSelectedDatabaseName
15355
- ), x = Fe(
15355
+ ), x = Ie(
15356
15356
  (M) => M.actions.setSelectedSchemaName
15357
- ), E = Fe(
15357
+ ), E = Ie(
15358
15358
  (M) => M.actions.setSelectedTableName
15359
15359
  ), k = e.cards.find((M) => M.id === e.activeCardId), { data: D } = To(k);
15360
15360
  function R(M = !1) {
@@ -29146,7 +29146,7 @@ function U5(e) {
29146
29146
  isSingleCardFrame: x
29147
29147
  } = To(e), { data: E } = cte(e);
29148
29148
  let k;
29149
- k = Ie(() => {
29149
+ k = Te(() => {
29150
29150
  if (!(!(g != null && g.records) || !(g != null && g.records.length)))
29151
29151
  return q5({
29152
29152
  card: e,
@@ -29417,8 +29417,8 @@ function S1({
29417
29417
  var x, E, k, D, R, M, I, $, L, N, O, T, B, V, A, q, z, P;
29418
29418
  const r = oe((j) => j.actions.setCardTitle), o = oe(
29419
29419
  (j) => j.actions.setCardDescription
29420
- ), i = oe((j) => j.isVisualEditing), a = Fe((j) => j.card), s = Fe((j) => j.actions.setCard);
29421
- Fe(
29420
+ ), i = oe((j) => j.isVisualEditing), a = Ie((j) => j.card), s = Ie((j) => j.actions.setCard);
29421
+ Ie(
29422
29422
  (j) => j.actions.setNumberFormat
29423
29423
  );
29424
29424
  const { getCurrency: l, getLocale: c } = G5(e), u = oe((j) => j.selectedSheetId), d = (E = (x = e.preferences) == null ? void 0 : x.formatNumber) == null ? void 0 : E.colorRanges, { keys: f } = Fn(t), h = (k = t == null ? void 0 : t[0]) == null ? void 0 : k[f == null ? void 0 : f[0]], p = (D = t == null ? void 0 : t[0]) == null ? void 0 : D[f == null ? void 0 : f[1]], g = t && t.length > 0;
@@ -29484,8 +29484,8 @@ function fte({
29484
29484
  }) {
29485
29485
  const d = oe(
29486
29486
  (g) => g.isDashboardEditing
29487
- ), f = oe((g) => g.isVisualEditing), h = Fe((g) => g.card);
29488
- Fe((g) => g.actions.setCard);
29487
+ ), f = oe((g) => g.isVisualEditing), h = Ie((g) => g.card);
29488
+ Ie((g) => g.actions.setCard);
29489
29489
  let p = r || "";
29490
29490
  return f && (p = r || "from description"), // <div className="@container min-w-[320px]">
29491
29491
  /* @__PURE__ */ F("div", { className: "kpi-card flex grow flex-col overflow-auto", children: [
@@ -29567,7 +29567,7 @@ function X5({
29567
29567
  );
29568
29568
  }
29569
29569
  function hte() {
29570
- const e = Fe(
29570
+ const e = Ie(
29571
29571
  (n) => {
29572
29572
  var r, o;
29573
29573
  return (o = (r = n.card.preferences) == null ? void 0 : r.kpiVisualOptions) == null ? void 0 : o.lowerIsBetter;
@@ -36347,7 +36347,7 @@ function sae({
36347
36347
  columnIndex: e,
36348
36348
  columnName: t
36349
36349
  }) {
36350
- const [n, r] = ue(!1), o = Fe((O) => {
36350
+ const [n, r] = ue(!1), o = Ie((O) => {
36351
36351
  var T;
36352
36352
  return (T = O.card) == null ? void 0 : T.preferences;
36353
36353
  }), [i, a] = ue(
@@ -36366,7 +36366,7 @@ function sae({
36366
36366
  nae(o, e).toString()
36367
36367
  ), [C, x] = ue(
36368
36368
  oae(o, e)
36369
- ), [E, k] = ue(""), D = Fe(
36369
+ ), [E, k] = ue(""), D = Ie(
36370
36370
  (O) => O.actions.setCardPreferences
36371
36371
  );
36372
36372
  function R() {
@@ -41008,16 +41008,17 @@ function Ple({
41008
41008
  sortState: r
41009
41009
  }) {
41010
41010
  var C, x, E, k, D, R, M, I, $;
41011
- const o = (x = (C = t == null ? void 0 : t.preferences) == null ? void 0 : C.tablePrefs) == null ? void 0 : x.columnSettingsMap, i = (k = (E = t == null ? void 0 : t.preferences) == null ? void 0 : E.tablePrefs) == null ? void 0 : k.columnVisibility, a = (R = (D = t == null ? void 0 : t.preferences) == null ? void 0 : D.tablePrefs) == null ? void 0 : R.selectColumnVisible, s = (I = (M = t == null ? void 0 : t.preferences) == null ? void 0 : M.tablePrefs) == null ? void 0 : I.pageSize, {
41012
- updateColumnSettingsMap: l,
41013
- updateColumnVisibility: c,
41014
- showAllColumns: u,
41015
- hideAllColumns: d,
41016
- toggleSelectColumn: f
41017
- } = Fe((L) => L.actions), [h, p] = J.useState([]);
41018
- oe((L) => L.themeStyle);
41019
- const g = oe((L) => L.isVisualEditing);
41020
- ($ = t == null ? void 0 : t.preferences) == null || $.onClickFilter, t == null || t.preferences;
41011
+ const o = oe((L) => L.isVisualEditing), i = (x = (C = t == null ? void 0 : t.preferences) == null ? void 0 : C.tablePrefs) == null ? void 0 : x.columnSettingsMap, a = (k = (E = t == null ? void 0 : t.preferences) == null ? void 0 : E.tablePrefs) == null ? void 0 : k.columnVisibility, s = (R = (D = t == null ? void 0 : t.preferences) == null ? void 0 : D.tablePrefs) == null ? void 0 : R.selectColumnVisible;
41012
+ let l = (I = (M = t == null ? void 0 : t.preferences) == null ? void 0 : M.tablePrefs) == null ? void 0 : I.pageSize;
41013
+ o && !l && (l = 50);
41014
+ const {
41015
+ updateColumnSettingsMap: c,
41016
+ updateColumnVisibility: u,
41017
+ showAllColumns: d,
41018
+ hideAllColumns: f,
41019
+ toggleSelectColumn: h
41020
+ } = Ie((L) => L.actions), [p, g] = J.useState([]);
41021
+ oe((L) => L.themeStyle), ($ = t == null ? void 0 : t.preferences) == null || $.onClickFilter, t == null || t.preferences;
41021
41022
  const { keys: m } = Fn(e), y = m.map((L, N) => ({
41022
41023
  accessorKey: L,
41023
41024
  header: ({ column: O }) => /* @__PURE__ */ b(
@@ -41035,11 +41036,11 @@ function Ple({
41035
41036
  columns: y,
41036
41037
  getCoreRowModel: o4(),
41037
41038
  getPaginationRowModel: i4(),
41038
- onSortingChange: p,
41039
+ onSortingChange: g,
41039
41040
  getSortedRowModel: a4(),
41040
41041
  manualPagination: !0,
41041
41042
  state: {
41042
- sorting: h
41043
+ sorting: p
41043
41044
  }
41044
41045
  });
41045
41046
  return dae(t, v), // <div>
@@ -41048,26 +41049,26 @@ function Ple({
41048
41049
  {
41049
41050
  sortState: r,
41050
41051
  onSortChange: n,
41051
- ...g ? {
41052
+ ...o ? {
41052
41053
  card: t,
41053
41054
  data: e,
41054
- pageSize: s,
41055
- columnSettings: o,
41056
- onColumnSettingsChange: l,
41057
- columnVisibility: i,
41058
- onColumnVisibilityChange: c,
41059
- onShowAllColumns: u,
41060
- onHideAllColumns: d,
41061
- defaultSelectColumnVisible: a,
41062
- onSelectColumnVisibleChange: f,
41055
+ pageSize: l,
41056
+ columnSettings: i,
41057
+ onColumnSettingsChange: c,
41058
+ columnVisibility: a,
41059
+ onColumnVisibilityChange: u,
41060
+ onShowAllColumns: d,
41061
+ onHideAllColumns: f,
41062
+ defaultSelectColumnVisible: s,
41063
+ onSelectColumnVisibleChange: h,
41063
41064
  exportFileName: "export"
41064
41065
  } : {
41065
41066
  card: t,
41066
41067
  data: e,
41067
- pageSize: s,
41068
- columnSettings: o,
41069
- initialColumnVisibility: i,
41070
- defaultSelectColumnVisible: a,
41068
+ pageSize: l,
41069
+ columnSettings: i,
41070
+ initialColumnVisibility: a,
41071
+ defaultSelectColumnVisible: s,
41071
41072
  exportFileName: "export"
41072
41073
  }
41073
41074
  }
@@ -41128,7 +41129,7 @@ const Nle = (e) => {
41128
41129
  });
41129
41130
  });
41130
41131
  }, [e, r]);
41131
- const s = Ie(
41132
+ const s = Te(
41132
41133
  () => (t == null ? void 0 : t.map((c) => {
41133
41134
  const { name: u, component: d, dataInputs: f } = c;
41134
41135
  return {
@@ -46386,7 +46387,7 @@ function qMe(e) {
46386
46387
  function O_(e) {
46387
46388
  const [t, n] = ue(
46388
46389
  []
46389
- ), [r, o] = ue(""), i = oe((x) => x.filterValues), a = oe((x) => x.selectedSheetId), { addOrUpdateFilterValue: s, removeFilterValues: l } = wn(), { data: c, isLoading: u, isFetching: d, isError: f } = r8(e), h = Ie(() => {
46390
+ ), [r, o] = ue(""), i = oe((x) => x.filterValues), a = oe((x) => x.selectedSheetId), { addOrUpdateFilterValue: s, removeFilterValues: l } = wn(), { data: c, isLoading: u, isFetching: d, isError: f } = r8(e), h = Te(() => {
46390
46391
  var E;
46391
46392
  return e.column ? (E = c == null ? void 0 : c.records) == null ? void 0 : E.map((k) => {
46392
46393
  let D = e.column.split(".").slice(-1)[0].replace(/"/g, "");
@@ -46756,7 +46757,7 @@ function O8(e) {
46756
46757
  target: null
46757
46758
  }).current;
46758
46759
  de(bpe, []);
46759
- let { hoverProps: l, triggerHoverEnd: c } = Ie(() => {
46760
+ let { hoverProps: l, triggerHoverEnd: c } = Te(() => {
46760
46761
  let u = (h, p) => {
46761
46762
  if (s.pointerType = p, o || p === "touch" || s.isHovered || !h.currentTarget.contains(h.target)) return;
46762
46763
  s.isHovered = !0;
@@ -47176,7 +47177,7 @@ let Hpe = "p";
47176
47177
  function Wpe(e, t) {
47177
47178
  let n = Pl(), r = T_(), { id: o = `headlessui-description-${n}`, ...i } = e, a = H8(), s = aa(t);
47178
47179
  cn(() => a.register(o), [o, a.register]);
47179
- let l = r || !1, c = Ie(() => ({ ...a.slot, disabled: l }), [a.slot, l]), u = { ref: s, ...a.props, id: o };
47180
+ let l = r || !1, c = Te(() => ({ ...a.slot, disabled: l }), [a.slot, l]), u = { ref: s, ...a.props, id: o };
47180
47181
  return Wo()({ ourProps: u, theirProps: i, slot: c, defaultTag: Hpe, name: a.name || "Description" });
47181
47182
  }
47182
47183
  let qpe = qo(Wpe);
@@ -47199,11 +47200,11 @@ function i0(e) {
47199
47200
  }
47200
47201
  function Upe({ inherit: e = !1 } = {}) {
47201
47202
  let t = i0(), [n, r] = ue([]), o = e ? [t, ...n].filter(Boolean) : n;
47202
- return [o.length > 0 ? o.join(" ") : void 0, Ie(() => function(i) {
47203
+ return [o.length > 0 ? o.join(" ") : void 0, Te(() => function(i) {
47203
47204
  let a = tt((l) => (r((c) => [...c, l]), () => r((c) => {
47204
47205
  let u = c.slice(), d = u.indexOf(l);
47205
47206
  return d !== -1 && u.splice(d, 1), u;
47206
- }))), s = Ie(() => ({ register: a, slot: i.slot, name: i.name, props: i.props, value: i.value }), [a, i.slot, i.name, i.props, i.value]);
47207
+ }))), s = Te(() => ({ register: a, slot: i.slot, name: i.name, props: i.props, value: i.value }), [a, i.slot, i.name, i.props, i.value]);
47207
47208
  return J.createElement(o0.Provider, { value: s }, i.children);
47208
47209
  }, [r])];
47209
47210
  }
@@ -47224,7 +47225,7 @@ function Ype(e, t) {
47224
47225
  (v instanceof HTMLInputElement && (v.type === "radio" || v.type === "checkbox") || v.role === "radio" || v.role === "checkbox" || v.role === "switch") && v.click(), v.focus({ preventScroll: !0 });
47225
47226
  }
47226
47227
  }
47227
- }), h = a || !1, p = Ie(() => ({ ...o.slot, disabled: h }), [o.slot, h]), g = { ref: d, ...o.props, id: s, htmlFor: l, onClick: f };
47228
+ }), h = a || !1, p = Te(() => ({ ...o.slot, disabled: h }), [o.slot, h]), g = { ref: d, ...o.props, id: s, htmlFor: l, onClick: f };
47228
47229
  return c && ("onClick" in g && (delete g.htmlFor, delete g.onClick), "onClick" in u && delete u.onClick), Wo()({ ourProps: g, theirProps: u, slot: p, defaultTag: l ? Gpe : "div", name: o.name || "Label" });
47229
47230
  }
47230
47231
  let Kpe = qo(Ype), Xpe = Object.assign(Kpe, {});
@@ -47754,7 +47755,7 @@ function dge(e) {
47754
47755
  return { width: t, height: n };
47755
47756
  }
47756
47757
  function vD(e, t = !1) {
47757
- let [n, r] = qx(() => ({}), {}), o = Ie(() => dge(e), [e, n]);
47758
+ let [n, r] = qx(() => ({}), {}), o = Te(() => dge(e), [e, n]);
47758
47759
  return cn(() => {
47759
47760
  if (!e) return;
47760
47761
  let i = new ResizeObserver(r);
@@ -47945,7 +47946,7 @@ function _ge(e, t, n) {
47945
47946
  }, !0), Cge(r, "blur", (l) => i(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
47946
47947
  }
47947
47948
  function a0(...e) {
47948
- return Ie(() => Sh(...e), [...e]);
47949
+ return Te(() => Sh(...e), [...e]);
47949
47950
  }
47950
47951
  function Ege(e, t, n, r) {
47951
47952
  let o = Fl(n);
@@ -47974,7 +47975,7 @@ function Q8(e) {
47974
47975
  });
47975
47976
  }
47976
47977
  function kge(e, t) {
47977
- return Ie(() => {
47978
+ return Te(() => {
47978
47979
  var n;
47979
47980
  if (e.type) return e.type;
47980
47981
  let r = (n = e.as) != null ? n : "button";
@@ -48531,7 +48532,7 @@ _h.displayName = "FloatingContext";
48531
48532
  let B_ = Lt(null);
48532
48533
  B_.displayName = "PlacementContext";
48533
48534
  function lme(e) {
48534
- return Ie(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
48535
+ return Te(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
48535
48536
  }
48536
48537
  function cme() {
48537
48538
  return yt(_h).setReference;
@@ -48542,7 +48543,7 @@ function ume() {
48542
48543
  }
48543
48544
  function dme(e = null) {
48544
48545
  e === !1 && (e = null), typeof e == "string" && (e = { to: e });
48545
- let t = yt(B_), n = Ie(() => e, [JSON.stringify(e, (o, i) => {
48546
+ let t = yt(B_), n = Te(() => e, [JSON.stringify(e, (o, i) => {
48546
48547
  var a;
48547
48548
  return (a = i == null ? void 0 : i.outerHTML) != null ? a : i;
48548
48549
  })]);
@@ -48550,7 +48551,7 @@ function dme(e = null) {
48550
48551
  t == null || t(n ?? null);
48551
48552
  }, [t, n]);
48552
48553
  let r = yt(_h);
48553
- return Ie(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
48554
+ return Te(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
48554
48555
  }
48555
48556
  let ND = 4;
48556
48557
  function fme({ children: e, enabled: t = !0 }) {
@@ -48582,7 +48583,7 @@ function fme({ children: e, enabled: t = !0 }) {
48582
48583
  Object.assign($.floating.style, { overflow: "auto", maxWidth: `${M}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${I}px)` });
48583
48584
  } })].filter(Boolean), whileElementsMounted: aT }), [_ = g, C = m] = w.placement.split("-");
48584
48585
  g === "selection" && (_ = "selection");
48585
- let x = Ie(() => ({ anchor: [_, C].filter(Boolean).join(" ") }), [_, C]), E = sme(w, { overflowRef: a, onChange: i }), { getReferenceProps: k, getFloatingProps: D } = ime([E]), R = tt((M) => {
48586
+ let x = Te(() => ({ anchor: [_, C].filter(Boolean).join(" ") }), [_, C]), E = sme(w, { overflowRef: a, onChange: i }), { getReferenceProps: k, getFloatingProps: D } = ime([E]), R = tt((M) => {
48586
48587
  l(M), y.setFloating(M);
48587
48588
  });
48588
48589
  return S.createElement(B_.Provider, { value: r }, S.createElement(_h.Provider, { value: { setFloating: R, setReference: y.setReference, styles: v, getReferenceProps: k, getFloatingProps: D, slot: x } }, e));
@@ -48636,7 +48637,7 @@ function vv(e, t, n = void 0) {
48636
48637
  }];
48637
48638
  }
48638
48639
  return [n, null];
48639
- }), i = Ie(() => o(e, t)[0], [e, t]), [a = i, s] = ue();
48640
+ }), i = Te(() => o(e, t)[0], [e, t]), [a = i, s] = ue();
48640
48641
  return cn(() => {
48641
48642
  let [l, c] = o(e, t);
48642
48643
  if (s(l), !!c) return c(s);
@@ -48869,7 +48870,7 @@ function Eh(e) {
48869
48870
  }
48870
48871
  let rL = Lt(null);
48871
48872
  function zme(e) {
48872
- let t = Tu("VirtualProvider"), { options: n } = t.virtual, [r, o] = Ie(() => {
48873
+ let t = Tu("VirtualProvider"), { options: n } = t.virtual, [r, o] = Te(() => {
48873
48874
  let c = t.optionsElement;
48874
48875
  if (!c) return [0, 0];
48875
48876
  let u = window.getComputedStyle(c);
@@ -48906,7 +48907,7 @@ function Bme(e, t) {
48906
48907
  let Vme = qs;
48907
48908
  function jme(e, t) {
48908
48909
  var n, r;
48909
- let o = T_(), { value: i, defaultValue: a, onChange: s, form: l, name: c, by: u, disabled: d = o || !1, onClose: f, __demoMode: h = !1, multiple: p = !1, immediate: g = !1, virtual: m = null, nullable: y, ...v } = e, w = Ape(a), [_ = p ? [] : void 0, C] = Mpe(i, s, w), [x, E] = qx(Bme, { dataRef: Wz(), comboboxState: h ? 0 : 1, isTyping: !1, options: [], virtual: m ? { options: m.options, disabled: (n = m.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: h }), k = pe(!1), D = pe({ static: !1, hold: !1 }), R = uge(u), M = tt((ne) => m ? u === null ? m.options.indexOf(ne) : m.options.findIndex((fe) => R(fe, ne)) : x.options.findIndex((fe) => R(fe.dataRef.current.value, ne))), I = Me((ne) => ea(L.mode, { 1: () => _.some((fe) => R(fe, ne)), 0: () => R(_, ne) }), [_]), $ = tt((ne) => x.activeOptionIndex === M(ne)), L = Ie(() => ({ ...x, immediate: g, optionsPropsRef: D, value: _, defaultValue: w, disabled: d, mode: p ? 1 : 0, virtual: m ? x.virtual : null, get activeOptionIndex() {
48910
+ let o = T_(), { value: i, defaultValue: a, onChange: s, form: l, name: c, by: u, disabled: d = o || !1, onClose: f, __demoMode: h = !1, multiple: p = !1, immediate: g = !1, virtual: m = null, nullable: y, ...v } = e, w = Ape(a), [_ = p ? [] : void 0, C] = Mpe(i, s, w), [x, E] = qx(Bme, { dataRef: Wz(), comboboxState: h ? 0 : 1, isTyping: !1, options: [], virtual: m ? { options: m.options, disabled: (n = m.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: h }), k = pe(!1), D = pe({ static: !1, hold: !1 }), R = uge(u), M = tt((ne) => m ? u === null ? m.options.indexOf(ne) : m.options.findIndex((fe) => R(fe, ne)) : x.options.findIndex((fe) => R(fe.dataRef.current.value, ne))), I = Me((ne) => ea(L.mode, { 1: () => _.some((fe) => R(fe, ne)), 0: () => R(_, ne) }), [_]), $ = tt((ne) => x.activeOptionIndex === M(ne)), L = Te(() => ({ ...x, immediate: g, optionsPropsRef: D, value: _, defaultValue: w, disabled: d, mode: p ? 1 : 0, virtual: m ? x.virtual : null, get activeOptionIndex() {
48910
48911
  if (k.current && x.activeOptionIndex === null && (m ? m.options.length > 0 : x.options.length > 0)) {
48911
48912
  if (m) {
48912
48913
  let fe = m.options.findIndex((ge) => {
@@ -48928,7 +48929,7 @@ function jme(e, t) {
48928
48929
  }, [L]);
48929
48930
  let N = L.comboboxState === 0;
48930
48931
  _ge(N, [L.buttonElement, L.inputElement, L.optionsElement], () => U.closeCombobox());
48931
- let O = Ie(() => {
48932
+ let O = Te(() => {
48932
48933
  var ne, fe, ge;
48933
48934
  return { open: L.comboboxState === 0, disabled: d, activeIndex: L.activeOptionIndex, activeOption: L.activeOptionIndex === null ? null : L.virtual ? L.virtual.options[(ne = L.activeOptionIndex) != null ? ne : 0] : (ge = (fe = L.options[L.activeOptionIndex]) == null ? void 0 : fe.dataRef.current.value) != null ? ge : null, value: _ };
48934
48935
  }, [L, d, _]), T = tt(() => {
@@ -48961,7 +48962,7 @@ function jme(e, t) {
48961
48962
  E({ type: 9, element: ne });
48962
48963
  }), W = tt((ne) => {
48963
48964
  E({ type: 10, element: ne });
48964
- }), U = Ie(() => ({ onChange: P, registerOption: z, goToOption: q, setIsTyping: A, closeCombobox: V, openCombobox: B, setActivationTrigger: j, selectActiveOption: T, setInputElement: G, setButtonElement: Y, setOptionsElement: W }), []), [K, ee] = Upe(), re = t === null ? {} : { ref: t }, Q = Me(() => {
48965
+ }), U = Te(() => ({ onChange: P, registerOption: z, goToOption: q, setIsTyping: A, closeCombobox: V, openCombobox: B, setActivationTrigger: j, selectActiveOption: T, setInputElement: G, setButtonElement: Y, setOptionsElement: W }), []), [K, ee] = Upe(), re = t === null ? {} : { ref: t }, Q = Me(() => {
48965
48966
  if (w !== void 0) return C == null ? void 0 : C(w);
48966
48967
  }, [C, w]), ae = Wo();
48967
48968
  return J.createElement(ee, { value: K, props: { htmlFor: (r = L.inputElement) == null ? void 0 : r.id }, slot: { open: L.comboboxState === 0, disabled: d } }, J.createElement(fme, null, J.createElement(H_.Provider, { value: U }, J.createElement(Ef.Provider, { value: L }, J.createElement(bme, { value: ea(L.comboboxState, { 0: _f.Open, 1: _f.Closed }) }, c != null && J.createElement(Fpe, { disabled: d, data: _ != null ? { [c]: _ } : {}, form: l, onReset: Q }), ae({ ourProps: re, theirProps: v, slot: O, defaultTag: Vme, name: "Combobox" }))))));
@@ -48971,7 +48972,7 @@ function Wme(e, t) {
48971
48972
  var n, r, o, i, a;
48972
48973
  let s = Tu("Combobox.Input"), l = Eh("Combobox.Input"), c = Pl(), u = V8(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: h, disabled: p = s.disabled || !1, autoFocus: g = !1, type: m = "text", ...y } = e, v = pe(null), w = aa(v, t, cme(), l.setInputElement), _ = a0(s.inputElement), C = Ch(), x = tt(() => {
48973
48974
  l.onChange(null), s.optionsElement && (s.optionsElement.scrollTop = 0), l.goToOption(Pn.Nothing);
48974
- }), E = Ie(() => {
48975
+ }), E = Te(() => {
48975
48976
  var P;
48976
48977
  return typeof h == "function" && s.value !== void 0 ? (P = h(s.value)) != null ? P : "" : typeof s.value == "string" ? s.value : "";
48977
48978
  }, [s.value, h]);
@@ -49043,7 +49044,7 @@ function Wme(e, t) {
49043
49044
  (G = s.buttonElement) != null && G.contains(W) || (Y = s.optionsElement) != null && Y.contains(W) || s.disabled || s.immediate && s.comboboxState !== 0 && C.microTask(() => {
49044
49045
  Rs(() => l.openCombobox()), l.setActivationTrigger(1);
49045
49046
  });
49046
- }), N = i0(), O = jpe(), { isFocused: T, focusProps: B } = I8({ autoFocus: g }), { isHovered: V, hoverProps: A } = O8({ isDisabled: p }), q = Ie(() => ({ open: s.comboboxState === 0, disabled: p, hover: V, focus: T, autofocus: g }), [s, V, T, g, p]), z = F_({ ref: w, id: d, role: "combobox", type: m, "aria-controls": (n = s.optionsElement) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null ? void 0 : s.virtual ? (r = s.options.find((P) => !P.dataRef.current.disabled && s.compare(P.dataRef.current.value, s.virtual.options[s.activeOptionIndex]))) == null ? void 0 : r.id : (o = s.options[s.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": N, "aria-describedby": O, "aria-autocomplete": "list", defaultValue: (a = (i = e.defaultValue) != null ? i : s.defaultValue !== void 0 ? h == null ? void 0 : h(s.defaultValue) : null) != null ? a : s.defaultValue, disabled: p || void 0, autoFocus: g, onCompositionStart: D, onCompositionEnd: R, onKeyDown: M, onChange: I, onFocus: L, onBlur: $ }, B, A);
49047
+ }), N = i0(), O = jpe(), { isFocused: T, focusProps: B } = I8({ autoFocus: g }), { isHovered: V, hoverProps: A } = O8({ isDisabled: p }), q = Te(() => ({ open: s.comboboxState === 0, disabled: p, hover: V, focus: T, autofocus: g }), [s, V, T, g, p]), z = F_({ ref: w, id: d, role: "combobox", type: m, "aria-controls": (n = s.optionsElement) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null ? void 0 : s.virtual ? (r = s.options.find((P) => !P.dataRef.current.disabled && s.compare(P.dataRef.current.value, s.virtual.options[s.activeOptionIndex]))) == null ? void 0 : r.id : (o = s.options[s.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": N, "aria-describedby": O, "aria-autocomplete": "list", defaultValue: (a = (i = e.defaultValue) != null ? i : s.defaultValue !== void 0 ? h == null ? void 0 : h(s.defaultValue) : null) != null ? a : s.defaultValue, disabled: p || void 0, autoFocus: g, onCompositionStart: D, onCompositionEnd: R, onKeyDown: M, onChange: I, onFocus: L, onBlur: $ }, B, A);
49047
49048
  return Wo()({ ourProps: z, theirProps: y, slot: q, defaultTag: Hme, name: "Combobox.Input" });
49048
49049
  }
49049
49050
  let qme = "button";
@@ -49070,7 +49071,7 @@ function Ume(e, t) {
49070
49071
  }
49071
49072
  }), h = tt((E) => {
49072
49073
  E.preventDefault(), !zpe(E.currentTarget) && (E.button === j_.Left && (r.comboboxState === 0 ? o.closeCombobox() : o.openCombobox()), d());
49073
- }), p = i0([s]), { isFocusVisible: g, focusProps: m } = I8({ autoFocus: c }), { isHovered: y, hoverProps: v } = O8({ isDisabled: l }), { pressed: w, pressProps: _ } = Cpe({ disabled: l }), C = Ie(() => ({ open: r.comboboxState === 0, active: w || r.comboboxState === 0, disabled: l, value: r.value, hover: y, focus: g }), [r, y, g, w, l]), x = F_({ ref: i, id: s, type: kge(e, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": p, disabled: l || void 0, autoFocus: c, onMouseDown: h, onKeyDown: f }, m, v, _);
49074
+ }), p = i0([s]), { isFocusVisible: g, focusProps: m } = I8({ autoFocus: c }), { isHovered: y, hoverProps: v } = O8({ isDisabled: l }), { pressed: w, pressProps: _ } = Cpe({ disabled: l }), C = Te(() => ({ open: r.comboboxState === 0, active: w || r.comboboxState === 0, disabled: l, value: r.value, hover: y, focus: g }), [r, y, g, w, l]), x = F_({ ref: i, id: s, type: kge(e, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": p, disabled: l || void 0, autoFocus: c, onMouseDown: h, onKeyDown: f }, m, v, _);
49074
49075
  return Wo()({ ourProps: x, theirProps: u, slot: C, defaultTag: qme, name: "Combobox.Button" });
49075
49076
  }
49076
49077
  let Gme = "div", Yme = ix.RenderStrategy | ix.Static;
@@ -49093,7 +49094,7 @@ function Kme(e, t) {
49093
49094
  }, walk(z) {
49094
49095
  z.setAttribute("role", "none");
49095
49096
  } });
49096
- let I = i0([(n = h.buttonElement) == null ? void 0 : n.id]), $ = Ie(() => ({ open: h.comboboxState === 0, option: void 0 }), [h.comboboxState]), L = tt(() => {
49097
+ let I = i0([(n = h.buttonElement) == null ? void 0 : n.id]), $ = Te(() => ({ open: h.comboboxState === 0, option: void 0 }), [h.comboboxState]), L = tt(() => {
49097
49098
  p.setActivationTrigger(0);
49098
49099
  }), N = tt((z) => {
49099
49100
  z.preventDefault(), p.setActivationTrigger(0);
@@ -49135,7 +49136,7 @@ function Qme(e, t) {
49135
49136
  s.goToOption(Pn.Specific, O, 0);
49136
49137
  }), I = tt((N) => {
49137
49138
  D.wasMoved(N) && (d || g && (a.optionsPropsRef.current.hold || s.goToOption(Pn.Nothing)));
49138
- }), $ = Ie(() => ({ active: g, focus: g, selected: m, disabled: d }), [g, m, d]), L = { id: c, ref: _, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onMouseDown: E, onFocus: k, onPointerEnter: R, onMouseEnter: R, onPointerMove: M, onMouseMove: M, onPointerLeave: I, onMouseLeave: I };
49139
+ }), $ = Te(() => ({ active: g, focus: g, selected: m, disabled: d }), [g, m, d]), L = { id: c, ref: _, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onMouseDown: E, onFocus: k, onPointerEnter: R, onMouseEnter: R, onPointerMove: M, onMouseMove: M, onPointerLeave: I, onMouseLeave: I };
49139
49140
  return Wo()({ ourProps: L, theirProps: h, slot: $, defaultTag: Xme, name: "Combobox.Option" });
49140
49141
  }
49141
49142
  let Zme = qo(jme), oL = qo(Ume), iL = qo(Wme), Jme = Xpe, aL = qo(Kme), sL = qo(Qme), ebe = Object.assign(Zme, { Input: iL, Button: oL, Label: Jme, Options: aL, Option: sL });
@@ -61501,7 +61502,7 @@ var cxe = {
61501
61502
  a--, t.pop(), n.pop(), r.pop(), o.pop();
61502
61503
  }
61503
61504
  return LM(s), l;
61504
- }, zM = Qxe, Zxe = ({ prism: e, code: t, grammar: n, language: r }) => Ie(() => {
61505
+ }, zM = Qxe, Zxe = ({ prism: e, code: t, grammar: n, language: r }) => Te(() => {
61505
61506
  if (n == null)
61506
61507
  return zM([t]);
61507
61508
  const o = {
@@ -65591,7 +65592,7 @@ const Hv = J.use || // This extra generic is to avoid TypeScript mixing up the g
65591
65592
  return !1;
65592
65593
  }
65593
65594
  return !0;
65594
- }, T = Ie(() => {
65595
+ }, T = Te(() => {
65595
65596
  const ae = !y || !t ? !1 : Et(s) ? k().isPaused() || i ? !1 : l !== !1 : s, ne = (Ne) => {
65596
65597
  const Je = Ga(Ne);
65597
65598
  return delete Je._k, ae ? {
@@ -65807,7 +65808,7 @@ function JEe({
65807
65808
  keepLastMessageOnError: y = !0,
65808
65809
  experimental_throttle: v
65809
65810
  } = {}) {
65810
- const [w] = ue(g), _ = t ?? w, C = typeof e == "string" ? [e, _] : _, x = ZEe(n ?? []), E = Ie(
65811
+ const [w] = ue(g), _ = t ?? w, C = typeof e == "string" ? [e, _] : _, x = ZEe(n ?? []), E = Te(
65811
65812
  () => $v(x),
65812
65813
  [x]
65813
65814
  ), { data: k, mutate: D } = Kp(
@@ -66597,83 +66598,83 @@ function O2e(e) {
66597
66598
  }
66598
66599
  var I2e = (e) => {
66599
66600
  var t, n, r, o, i, a, s, l, c, u, d;
66600
- let { invert: f, toast: h, unstyled: p, interacting: g, setHeights: m, visibleToasts: y, heights: v, index: w, toasts: _, expanded: C, removeToast: x, defaultRichColors: E, closeButton: k, style: D, cancelButtonStyle: R, actionButtonStyle: M, className: I = "", descriptionClassName: $ = "", duration: L, position: N, gap: O, loadingIcon: T, expandByDefault: B, classNames: V, icons: A, closeButtonAriaLabel: q = "Close toast", pauseWhenPageIsHidden: z } = e, [P, j] = J.useState(null), [G, Y] = J.useState(null), [W, U] = J.useState(!1), [K, ee] = J.useState(!1), [re, Q] = J.useState(!1), [ae, ne] = J.useState(!1), [fe, ge] = J.useState(!1), [Re, xe] = J.useState(0), [Se, Ne] = J.useState(0), Je = J.useRef(h.duration || L || iA), Mt = J.useRef(null), ye = J.useRef(null), $e = w === 0, Oe = w + 1 <= y, te = h.type, ce = h.dismissible !== !1, ke = h.className || "", Ae = h.descriptionClassName || "", Ke = J.useMemo(() => v.findIndex((Te) => Te.toastId === h.id) || 0, [v, h.id]), zt = J.useMemo(() => {
66601
- var Te;
66602
- return (Te = h.closeButton) != null ? Te : k;
66603
- }, [h.closeButton, k]), On = J.useMemo(() => h.duration || L || iA, [h.duration, L]), xn = J.useRef(0), ve = J.useRef(0), Sn = J.useRef(0), Bt = J.useRef(null), [ro, Hn] = N.split("-"), $l = J.useMemo(() => v.reduce((Te, Qe, lt) => lt >= Ke ? Te : Te + Qe.height, 0), [v, Ke]), is = b2e(), Pi = h.invert || f, un = te === "loading";
66601
+ let { invert: f, toast: h, unstyled: p, interacting: g, setHeights: m, visibleToasts: y, heights: v, index: w, toasts: _, expanded: C, removeToast: x, defaultRichColors: E, closeButton: k, style: D, cancelButtonStyle: R, actionButtonStyle: M, className: I = "", descriptionClassName: $ = "", duration: L, position: N, gap: O, loadingIcon: T, expandByDefault: B, classNames: V, icons: A, closeButtonAriaLabel: q = "Close toast", pauseWhenPageIsHidden: z } = e, [P, j] = J.useState(null), [G, Y] = J.useState(null), [W, U] = J.useState(!1), [K, ee] = J.useState(!1), [re, Q] = J.useState(!1), [ae, ne] = J.useState(!1), [fe, ge] = J.useState(!1), [Re, xe] = J.useState(0), [Se, Ne] = J.useState(0), Je = J.useRef(h.duration || L || iA), Mt = J.useRef(null), ye = J.useRef(null), $e = w === 0, Oe = w + 1 <= y, te = h.type, ce = h.dismissible !== !1, ke = h.className || "", Ae = h.descriptionClassName || "", Ke = J.useMemo(() => v.findIndex((Fe) => Fe.toastId === h.id) || 0, [v, h.id]), zt = J.useMemo(() => {
66602
+ var Fe;
66603
+ return (Fe = h.closeButton) != null ? Fe : k;
66604
+ }, [h.closeButton, k]), On = J.useMemo(() => h.duration || L || iA, [h.duration, L]), xn = J.useRef(0), ve = J.useRef(0), Sn = J.useRef(0), Bt = J.useRef(null), [ro, Hn] = N.split("-"), $l = J.useMemo(() => v.reduce((Fe, Qe, lt) => lt >= Ke ? Fe : Fe + Qe.height, 0), [v, Ke]), is = b2e(), Pi = h.invert || f, un = te === "loading";
66604
66605
  ve.current = J.useMemo(() => Ke * O + $l, [Ke, $l]), J.useEffect(() => {
66605
66606
  Je.current = On;
66606
66607
  }, [On]), J.useEffect(() => {
66607
66608
  U(!0);
66608
66609
  }, []), J.useEffect(() => {
66609
- let Te = ye.current;
66610
- if (Te) {
66611
- let Qe = Te.getBoundingClientRect().height;
66610
+ let Fe = ye.current;
66611
+ if (Fe) {
66612
+ let Qe = Fe.getBoundingClientRect().height;
66612
66613
  return Ne(Qe), m((lt) => [{ toastId: h.id, height: Qe, position: h.position }, ...lt]), () => m((lt) => lt.filter((on) => on.toastId !== h.id));
66613
66614
  }
66614
66615
  }, [m, h.id]), J.useLayoutEffect(() => {
66615
66616
  if (!W) return;
66616
- let Te = ye.current, Qe = Te.style.height;
66617
- Te.style.height = "auto";
66618
- let lt = Te.getBoundingClientRect().height;
66619
- Te.style.height = Qe, Ne(lt), m((on) => on.find((Vt) => Vt.toastId === h.id) ? on.map((Vt) => Vt.toastId === h.id ? { ...Vt, height: lt } : Vt) : [{ toastId: h.id, height: lt, position: h.position }, ...on]);
66617
+ let Fe = ye.current, Qe = Fe.style.height;
66618
+ Fe.style.height = "auto";
66619
+ let lt = Fe.getBoundingClientRect().height;
66620
+ Fe.style.height = Qe, Ne(lt), m((on) => on.find((Vt) => Vt.toastId === h.id) ? on.map((Vt) => Vt.toastId === h.id ? { ...Vt, height: lt } : Vt) : [{ toastId: h.id, height: lt, position: h.position }, ...on]);
66620
66621
  }, [W, h.title, h.description, m, h.id]);
66621
66622
  let At = J.useCallback(() => {
66622
- ee(!0), xe(ve.current), m((Te) => Te.filter((Qe) => Qe.toastId !== h.id)), setTimeout(() => {
66623
+ ee(!0), xe(ve.current), m((Fe) => Fe.filter((Qe) => Qe.toastId !== h.id)), setTimeout(() => {
66623
66624
  x(h);
66624
66625
  }, N2e);
66625
66626
  }, [h, x, m, ve]);
66626
66627
  J.useEffect(() => {
66627
66628
  if (h.promise && te === "loading" || h.duration === 1 / 0 || h.type === "loading") return;
66628
- let Te;
66629
+ let Fe;
66629
66630
  return C || g || z && is ? (() => {
66630
66631
  if (Sn.current < xn.current) {
66631
66632
  let Qe = (/* @__PURE__ */ new Date()).getTime() - xn.current;
66632
66633
  Je.current = Je.current - Qe;
66633
66634
  }
66634
66635
  Sn.current = (/* @__PURE__ */ new Date()).getTime();
66635
- })() : Je.current !== 1 / 0 && (xn.current = (/* @__PURE__ */ new Date()).getTime(), Te = setTimeout(() => {
66636
+ })() : Je.current !== 1 / 0 && (xn.current = (/* @__PURE__ */ new Date()).getTime(), Fe = setTimeout(() => {
66636
66637
  var Qe;
66637
66638
  (Qe = h.onAutoClose) == null || Qe.call(h, h), At();
66638
- }, Je.current)), () => clearTimeout(Te);
66639
+ }, Je.current)), () => clearTimeout(Fe);
66639
66640
  }, [C, g, h, te, z, is, At]), J.useEffect(() => {
66640
66641
  h.delete && At();
66641
66642
  }, [At, h.delete]);
66642
66643
  function Wn() {
66643
- var Te, Qe, lt;
66644
- return A != null && A.loading ? J.createElement("div", { className: So(V == null ? void 0 : V.loader, (Te = h == null ? void 0 : h.classNames) == null ? void 0 : Te.loader, "sonner-loader"), "data-visible": te === "loading" }, A.loading) : T ? J.createElement("div", { className: So(V == null ? void 0 : V.loader, (Qe = h == null ? void 0 : h.classNames) == null ? void 0 : Qe.loader, "sonner-loader"), "data-visible": te === "loading" }, T) : J.createElement(d2e, { className: So(V == null ? void 0 : V.loader, (lt = h == null ? void 0 : h.classNames) == null ? void 0 : lt.loader), visible: te === "loading" });
66644
+ var Fe, Qe, lt;
66645
+ return A != null && A.loading ? J.createElement("div", { className: So(V == null ? void 0 : V.loader, (Fe = h == null ? void 0 : h.classNames) == null ? void 0 : Fe.loader, "sonner-loader"), "data-visible": te === "loading" }, A.loading) : T ? J.createElement("div", { className: So(V == null ? void 0 : V.loader, (Qe = h == null ? void 0 : h.classNames) == null ? void 0 : Qe.loader, "sonner-loader"), "data-visible": te === "loading" }, T) : J.createElement(d2e, { className: So(V == null ? void 0 : V.loader, (lt = h == null ? void 0 : h.classNames) == null ? void 0 : lt.loader), visible: te === "loading" });
66645
66646
  }
66646
66647
  return J.createElement("li", { tabIndex: 0, ref: ye, className: So(I, 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[te], (n = h == null ? void 0 : h.classNames) == null ? void 0 : n[te]), "data-sonner-toast": "", "data-rich-colors": (r = h.richColors) != null ? r : E, "data-styled": !(h.jsx || h.unstyled || p), "data-mounted": W, "data-promise": !!h.promise, "data-swiped": fe, "data-removed": K, "data-visible": Oe, "data-y-position": ro, "data-x-position": Hn, "data-index": w, "data-front": $e, "data-swiping": re, "data-dismissible": ce, "data-type": te, "data-invert": Pi, "data-swipe-out": ae, "data-swipe-direction": G, "data-expanded": !!(C || B && W), style: { "--index": w, "--toasts-before": w, "--z-index": _.length - w, "--offset": `${K ? Re : ve.current}px`, "--initial-height": B ? "auto" : `${Se}px`, ...D, ...h.style }, onDragEnd: () => {
66647
66648
  Q(!1), j(null), Bt.current = null;
66648
- }, onPointerDown: (Te) => {
66649
- un || !ce || (Mt.current = /* @__PURE__ */ new Date(), xe(ve.current), Te.target.setPointerCapture(Te.pointerId), Te.target.tagName !== "BUTTON" && (Q(!0), Bt.current = { x: Te.clientX, y: Te.clientY }));
66649
+ }, onPointerDown: (Fe) => {
66650
+ un || !ce || (Mt.current = /* @__PURE__ */ new Date(), xe(ve.current), Fe.target.setPointerCapture(Fe.pointerId), Fe.target.tagName !== "BUTTON" && (Q(!0), Bt.current = { x: Fe.clientX, y: Fe.clientY }));
66650
66651
  }, onPointerUp: () => {
66651
- var Te, Qe, lt, on;
66652
+ var Fe, Qe, lt, on;
66652
66653
  if (ae || !ce) return;
66653
66654
  Bt.current = null;
66654
- let Vt = Number(((Te = ye.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), jt = Number(((Qe = ye.current) == null ? void 0 : Qe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), zn = (/* @__PURE__ */ new Date()).getTime() - ((lt = Mt.current) == null ? void 0 : lt.getTime()), an = P === "x" ? Vt : jt, Cn = Math.abs(an) / zn;
66655
+ let Vt = Number(((Fe = ye.current) == null ? void 0 : Fe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), jt = Number(((Qe = ye.current) == null ? void 0 : Qe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), zn = (/* @__PURE__ */ new Date()).getTime() - ((lt = Mt.current) == null ? void 0 : lt.getTime()), an = P === "x" ? Vt : jt, Cn = Math.abs(an) / zn;
66655
66656
  if (Math.abs(an) >= A2e || Cn > 0.11) {
66656
66657
  xe(ve.current), (on = h.onDismiss) == null || on.call(h, h), Y(P === "x" ? Vt > 0 ? "right" : "left" : jt > 0 ? "down" : "up"), At(), ne(!0), ge(!1);
66657
66658
  return;
66658
66659
  }
66659
66660
  Q(!1), j(null);
66660
- }, onPointerMove: (Te) => {
66661
+ }, onPointerMove: (Fe) => {
66661
66662
  var Qe, lt, on, Vt;
66662
66663
  if (!Bt.current || !ce || ((Qe = window.getSelection()) == null ? void 0 : Qe.toString().length) > 0) return;
66663
- let jt = Te.clientY - Bt.current.y, zn = Te.clientX - Bt.current.x, an = (lt = e.swipeDirections) != null ? lt : O2e(N);
66664
+ let jt = Fe.clientY - Bt.current.y, zn = Fe.clientX - Bt.current.x, an = (lt = e.swipeDirections) != null ? lt : O2e(N);
66664
66665
  !P && (Math.abs(zn) > 1 || Math.abs(jt) > 1) && j(Math.abs(zn) > Math.abs(jt) ? "x" : "y");
66665
66666
  let Cn = { x: 0, y: 0 };
66666
66667
  P === "y" ? (an.includes("top") || an.includes("bottom")) && (an.includes("top") && jt < 0 || an.includes("bottom") && jt > 0) && (Cn.y = jt) : P === "x" && (an.includes("left") || an.includes("right")) && (an.includes("left") && zn < 0 || an.includes("right") && zn > 0) && (Cn.x = zn), (Math.abs(Cn.x) > 0 || Math.abs(Cn.y) > 0) && ge(!0), (on = ye.current) == null || on.style.setProperty("--swipe-amount-x", `${Cn.x}px`), (Vt = ye.current) == null || Vt.style.setProperty("--swipe-amount-y", `${Cn.y}px`);
66667
66668
  } }, zt && !h.jsx ? J.createElement("button", { "aria-label": q, "data-disabled": un, "data-close-button": !0, onClick: un || !ce ? () => {
66668
66669
  } : () => {
66669
- var Te;
66670
- At(), (Te = h.onDismiss) == null || Te.call(h, h);
66671
- }, className: So(V == null ? void 0 : V.closeButton, (o = h == null ? void 0 : h.classNames) == null ? void 0 : o.closeButton) }, (i = A == null ? void 0 : A.close) != null ? i : m2e) : null, h.jsx || ig(h.title) ? h.jsx ? h.jsx : typeof h.title == "function" ? h.title() : h.title : J.createElement(J.Fragment, null, te || h.icon || h.promise ? J.createElement("div", { "data-icon": "", className: So(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 || Wn() : null, h.type !== "loading" ? h.icon || (A == null ? void 0 : A[te]) || c2e(te) : null) : null, J.createElement("div", { "data-content": "", className: So(V == null ? void 0 : V.content, (s = h == null ? void 0 : h.classNames) == null ? void 0 : s.content) }, J.createElement("div", { "data-title": "", className: So(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: So($, Ae, 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), ig(h.cancel) ? h.cancel : h.cancel && Xp(h.cancel) ? J.createElement("button", { "data-button": !0, "data-cancel": !0, style: h.cancelButtonStyle || R, onClick: (Te) => {
66670
+ var Fe;
66671
+ At(), (Fe = h.onDismiss) == null || Fe.call(h, h);
66672
+ }, className: So(V == null ? void 0 : V.closeButton, (o = h == null ? void 0 : h.classNames) == null ? void 0 : o.closeButton) }, (i = A == null ? void 0 : A.close) != null ? i : m2e) : null, h.jsx || ig(h.title) ? h.jsx ? h.jsx : typeof h.title == "function" ? h.title() : h.title : J.createElement(J.Fragment, null, te || h.icon || h.promise ? J.createElement("div", { "data-icon": "", className: So(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 || Wn() : null, h.type !== "loading" ? h.icon || (A == null ? void 0 : A[te]) || c2e(te) : null) : null, J.createElement("div", { "data-content": "", className: So(V == null ? void 0 : V.content, (s = h == null ? void 0 : h.classNames) == null ? void 0 : s.content) }, J.createElement("div", { "data-title": "", className: So(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: So($, Ae, 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), ig(h.cancel) ? h.cancel : h.cancel && Xp(h.cancel) ? J.createElement("button", { "data-button": !0, "data-cancel": !0, style: h.cancelButtonStyle || R, onClick: (Fe) => {
66672
66673
  var Qe, lt;
66673
- Xp(h.cancel) && ce && ((lt = (Qe = h.cancel).onClick) == null || lt.call(Qe, Te), At());
66674
- }, className: So(V == null ? void 0 : V.cancelButton, (u = h == null ? void 0 : h.classNames) == null ? void 0 : u.cancelButton) }, h.cancel.label) : null, ig(h.action) ? h.action : h.action && Xp(h.action) ? J.createElement("button", { "data-button": !0, "data-action": !0, style: h.actionButtonStyle || M, onClick: (Te) => {
66674
+ Xp(h.cancel) && ce && ((lt = (Qe = h.cancel).onClick) == null || lt.call(Qe, Fe), At());
66675
+ }, className: So(V == null ? void 0 : V.cancelButton, (u = h == null ? void 0 : h.classNames) == null ? void 0 : u.cancelButton) }, h.cancel.label) : null, ig(h.action) ? h.action : h.action && Xp(h.action) ? J.createElement("button", { "data-button": !0, "data-action": !0, style: h.actionButtonStyle || M, onClick: (Fe) => {
66675
66676
  var Qe, lt;
66676
- Xp(h.action) && ((lt = (Qe = h.action).onClick) == null || lt.call(Qe, Te), !Te.defaultPrevented && At());
66677
+ Xp(h.action) && ((lt = (Qe = h.action).onClick) == null || lt.call(Qe, Fe), !Fe.defaultPrevented && At());
66677
66678
  }, className: So(V == null ? void 0 : V.actionButton, (d = h == null ? void 0 : h.classNames) == null ? void 0 : d.actionButton) }, h.action.label) : null));
66678
66679
  };
66679
66680
  function aA() {
@@ -67415,7 +67416,7 @@ const yke = Xx((e) => ({
67415
67416
  function vke() {
67416
67417
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
67417
67418
  t[n] = arguments[n];
67418
- return Ie(
67419
+ return Te(
67419
67420
  () => (r) => {
67420
67421
  t.forEach((o) => o(r));
67421
67422
  },
@@ -67479,7 +67480,7 @@ function Lf(e, t) {
67479
67480
  }
67480
67481
  function Nh(e, t) {
67481
67482
  const n = pe();
67482
- return Ie(
67483
+ return Te(
67483
67484
  () => {
67484
67485
  const r = e(n.current);
67485
67486
  return n.current = r, r;
@@ -67506,7 +67507,7 @@ function $m(e) {
67506
67507
  }
67507
67508
  let Yv = {};
67508
67509
  function Oh(e, t) {
67509
- return Ie(() => {
67510
+ return Te(() => {
67510
67511
  if (t)
67511
67512
  return t;
67512
67513
  const n = Yv[e] == null ? 0 : Yv[e] + 1;
@@ -67738,7 +67739,7 @@ function Nke(e) {
67738
67739
  } = Rke(), s = Oh("DndLiveRegion"), [l, c] = ue(!1);
67739
67740
  if (de(() => {
67740
67741
  c(!0);
67741
- }, []), Pke(Ie(() => ({
67742
+ }, []), Pke(Te(() => ({
67742
67743
  onDragStart(d) {
67743
67744
  let {
67744
67745
  active: f
@@ -67805,7 +67806,7 @@ var In;
67805
67806
  function Bm() {
67806
67807
  }
67807
67808
  function tAe(e, t) {
67808
- return Ie(
67809
+ return Te(
67809
67810
  () => ({
67810
67811
  sensor: e,
67811
67812
  options: t ?? {}
@@ -67817,7 +67818,7 @@ function tAe(e, t) {
67817
67818
  function nAe() {
67818
67819
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
67819
67820
  t[n] = arguments[n];
67820
- return Ie(
67821
+ return Te(
67821
67822
  () => [...t].filter((r) => r != null),
67822
67823
  // eslint-disable-next-line react-hooks/exhaustive-deps
67823
67824
  [...t]
@@ -68743,7 +68744,7 @@ function iRe(e) {
68743
68744
  }), y = pe({
68744
68745
  x: 0,
68745
68746
  y: 0
68746
- }), v = Ie(() => {
68747
+ }), v = Te(() => {
68747
68748
  switch (n) {
68748
68749
  case Yd.Pointer:
68749
68750
  return l ? {
@@ -68761,7 +68762,7 @@ function iRe(e) {
68761
68762
  return;
68762
68763
  const E = m.current.x * y.current.x, k = m.current.y * y.current.y;
68763
68764
  x.scrollBy(E, k);
68764
- }, []), C = Ie(() => s === Vm.TreeOrder ? [...c].reverse() : c, [s, c]);
68765
+ }, []), C = Te(() => s === Vm.TreeOrder ? [...c].reverse() : c, [s, c]);
68765
68766
  de(
68766
68767
  () => {
68767
68768
  if (!i || !c.length || !v) {
@@ -68857,7 +68858,7 @@ function lRe(e, t) {
68857
68858
  }, [r, t]);
68858
68859
  }
68859
68860
  function cRe(e, t) {
68860
- return Ie(() => e.reduce((n, r) => {
68861
+ return Te(() => e.reduce((n, r) => {
68861
68862
  const {
68862
68863
  sensor: o
68863
68864
  } = r, i = o.activators.map((a) => ({
@@ -68956,7 +68957,7 @@ function fRe(e) {
68956
68957
  callback: t,
68957
68958
  disabled: n
68958
68959
  } = e;
68959
- const r = x0(t), o = Ie(() => {
68960
+ const r = x0(t), o = Te(() => {
68960
68961
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
68961
68962
  return;
68962
68963
  const {
@@ -68971,7 +68972,7 @@ function _0(e) {
68971
68972
  callback: t,
68972
68973
  disabled: n
68973
68974
  } = e;
68974
- const r = x0(t), o = Ie(
68975
+ const r = x0(t), o = Te(
68975
68976
  () => {
68976
68977
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
68977
68978
  return;
@@ -69064,7 +69065,7 @@ function mRe(e) {
69064
69065
  c == null || c.removeEventListener("scroll", o);
69065
69066
  });
69066
69067
  }
69067
- }, [o, e]), Ie(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Rc(i, a), Vo) : d$(e) : Vo, [e, t]);
69068
+ }, [o, e]), Te(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Rc(i, a), Vo) : d$(e) : Vo, [e, t]);
69068
69069
  }
69069
69070
  function wA(e, t) {
69070
69071
  t === void 0 && (t = []);
@@ -69107,7 +69108,7 @@ function bRe(e) {
69107
69108
  );
69108
69109
  }
69109
69110
  function yRe(e, t) {
69110
- return Ie(() => e.reduce((n, r) => {
69111
+ return Te(() => e.reduce((n, r) => {
69111
69112
  let {
69112
69113
  eventName: o,
69113
69114
  handler: i
@@ -69118,7 +69119,7 @@ function yRe(e, t) {
69118
69119
  }, {}), [e, t]);
69119
69120
  }
69120
69121
  function m$(e) {
69121
- return Ie(() => e ? Hke(e) : null, [e]);
69122
+ return Te(() => e ? Hke(e) : null, [e]);
69122
69123
  }
69123
69124
  const xA = [];
69124
69125
  function vRe(e, t) {
@@ -69167,7 +69168,7 @@ function wRe(e) {
69167
69168
  const u = b$(c);
69168
69169
  i == null || i.disconnect(), u && (i == null || i.observe(u)), r(u ? t(u) : null);
69169
69170
  }, [t, i]), [s, l] = Lm(a);
69170
- return Ie(() => ({
69171
+ return Te(() => ({
69171
69172
  nodeRef: s,
69172
69173
  rect: n,
69173
69174
  setRef: l
@@ -69411,7 +69412,7 @@ function w$(e, t) {
69411
69412
  }), n) : n;
69412
69413
  }
69413
69414
  function RRe(e) {
69414
- return Ie(
69415
+ return Te(
69415
69416
  () => ({
69416
69417
  draggable: {
69417
69418
  ...Rg.draggable,
@@ -69498,7 +69499,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69498
69499
  } = m, M = E != null ? k.get(E) : null, I = pe({
69499
69500
  initial: null,
69500
69501
  translated: null
69501
- }), $ = Ie(() => {
69502
+ }), $ = Te(() => {
69502
69503
  var un;
69503
69504
  return E != null ? {
69504
69505
  id: E,
@@ -69506,7 +69507,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69506
69507
  data: (un = M == null ? void 0 : M.data) != null ? un : SRe,
69507
69508
  rect: I
69508
69509
  } : null;
69509
- }, [E, M]), L = pe(null), [N, O] = ue(null), [T, B] = ue(null), V = Lf(p, Object.values(p)), A = Oh("DndDescribedBy", a), q = Ie(() => R.getEnabled(), [R]), z = RRe(f), {
69510
+ }, [E, M]), L = pe(null), [N, O] = ue(null), [T, B] = ue(null), V = Lf(p, Object.values(p)), A = Oh("DndDescribedBy", a), q = Te(() => R.getEnabled(), [R]), z = RRe(f), {
69510
69511
  droppableRects: P,
69511
69512
  measureDroppableContainers: j,
69512
69513
  measuringScheduled: G
@@ -69514,7 +69515,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69514
69515
  dragging: x,
69515
69516
  dependencies: [D.x, D.y],
69516
69517
  config: z.droppable
69517
- }), Y = lRe(k, E), W = Ie(() => T ? zm(T) : null, [T]), U = Pi(), K = dRe(Y, z.draggable.measure);
69518
+ }), Y = lRe(k, E), W = Te(() => T ? zm(T) : null, [T]), U = Pi(), K = dRe(Y, z.draggable.measure);
69518
69519
  PRe({
69519
69520
  activeNode: E != null ? k.get(E) : null,
69520
69521
  config: U.layoutShiftCompensation,
@@ -69564,7 +69565,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69564
69565
  (un, At) => {
69565
69566
  let {
69566
69567
  sensor: Wn,
69567
- options: Te
69568
+ options: Fe
69568
69569
  } = At;
69569
69570
  if (L.current == null)
69570
69571
  return;
@@ -69575,7 +69576,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69575
69576
  active: L.current,
69576
69577
  activeNode: Qe,
69577
69578
  event: lt,
69578
- options: Te,
69579
+ options: Fe,
69579
69580
  // Sensors need to be instantiated with refs for arguments that change over time
69580
69581
  // otherwise they are frozen in time with the stale arguments
69581
69582
  context: Q,
@@ -69685,8 +69686,8 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69685
69686
  },
69686
69687
  // eslint-disable-next-line react-hooks/exhaustive-deps
69687
69688
  [k]
69688
- ), ro = Me((un, At) => (Wn, Te) => {
69689
- const Qe = Wn.nativeEvent, lt = k.get(Te);
69689
+ ), ro = Me((un, At) => (Wn, Fe) => {
69690
+ const Qe = Wn.nativeEvent, lt = k.get(Fe);
69690
69691
  if (
69691
69692
  // Another sensor is already instantiating
69692
69693
  L.current !== null || // No active draggable
@@ -69699,7 +69700,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69699
69700
  };
69700
69701
  un(Wn, At.options, on) === !0 && (Qe.dndKit = {
69701
69702
  capturedBy: At.sensor
69702
- }, L.current = Te, Bt(Wn, At));
69703
+ }, L.current = Fe, Bt(Wn, At));
69703
69704
  }, [k, Bt]), Hn = cRe(u, ro);
69704
69705
  bRe(u), Bo(() => {
69705
69706
  ee && _ === ya.Initializing && C(ya.Initialized);
@@ -69710,7 +69711,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69710
69711
  } = V.current, {
69711
69712
  active: At,
69712
69713
  activatorEvent: Wn,
69713
- collisions: Te,
69714
+ collisions: Fe,
69714
69715
  over: Qe
69715
69716
  } = Q.current;
69716
69717
  if (!At || !Wn)
@@ -69718,7 +69719,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69718
69719
  const lt = {
69719
69720
  active: At,
69720
69721
  activatorEvent: Wn,
69721
- collisions: Te,
69722
+ collisions: Fe,
69722
69723
  delta: {
69723
69724
  x: ce.x,
69724
69725
  y: ce.y
@@ -69740,14 +69741,14 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69740
69741
  active: un,
69741
69742
  activatorEvent: At,
69742
69743
  collisions: Wn,
69743
- droppableContainers: Te,
69744
+ droppableContainers: Fe,
69744
69745
  scrollAdjustedTranslate: Qe
69745
69746
  } = Q.current;
69746
69747
  if (!un || L.current == null || !At || !Qe)
69747
69748
  return;
69748
69749
  const {
69749
69750
  onDragOver: lt
69750
- } = V.current, on = Te.get(Ke), Vt = on && on.rect.current ? {
69751
+ } = V.current, on = Fe.get(Ke), Vt = on && on.rect.current ? {
69751
69752
  id: on.id,
69752
69753
  rect: on.rect.current,
69753
69754
  data: on.data,
@@ -69798,7 +69799,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69798
69799
  scrollableAncestors: Ne,
69799
69800
  scrollableAncestorRects: Je
69800
69801
  });
69801
- const $l = Ie(() => ({
69802
+ const $l = Te(() => ({
69802
69803
  active: $,
69803
69804
  activeNode: Y,
69804
69805
  activeNodeRect: ee,
@@ -69816,7 +69817,7 @@ const oAe = /* @__PURE__ */ qf(function(t) {
69816
69817
  measuringConfiguration: z,
69817
69818
  measuringScheduled: G,
69818
69819
  windowRect: Se
69819
- }), [$, Y, ee, T, Ae, re, ne, k, R, P, zt, j, Ne, Je, z, G, Se]), is = Ie(() => ({
69820
+ }), [$, Y, ee, T, Ae, re, ne, k, R, P, zt, j, Ne, Je, z, G, Se]), is = Te(() => ({
69820
69821
  activatorEvent: T,
69821
69822
  activators: Hn,
69822
69823
  active: $,
@@ -69887,7 +69888,7 @@ function ARe(e) {
69887
69888
  // eslint-disable-next-line react-hooks/exhaustive-deps
69888
69889
  [d, t]
69889
69890
  );
69890
- const k = Ie(() => ({
69891
+ const k = Te(() => ({
69891
69892
  role: h,
69892
69893
  tabIndex: g,
69893
69894
  "aria-disabled": r,
@@ -70209,7 +70210,7 @@ function qRe(e) {
70209
70210
  }
70210
70211
  let CA = 0;
70211
70212
  function URe(e) {
70212
- return Ie(() => {
70213
+ return Te(() => {
70213
70214
  if (e != null)
70214
70215
  return CA++, CA;
70215
70216
  }, [e]);
@@ -70278,15 +70279,15 @@ const iAe = /* @__PURE__ */ J.memo((e) => {
70278
70279
  });
70279
70280
  function GRe(e) {
70280
70281
  var m;
70281
- const t = oe((y) => y.authToken) || e, n = Fe(
70282
+ const t = oe((y) => y.authToken) || e, n = Ie(
70282
70283
  (y) => y.selectedConnectionId
70283
- ), r = Fe(
70284
+ ), r = Ie(
70284
70285
  (y) => y.selectedDatabaseName
70285
- ), o = Fe(
70286
+ ), o = Ie(
70286
70287
  (y) => y.selectedDatamodelId
70287
- ), i = Fe(
70288
+ ), i = Ie(
70288
70289
  (y) => y.selectedSchemaName
70289
- ), a = Fe((y) => y.selectedTableName), { currentConnection: s } = hb(), l = s == null ? void 0 : s.type, {
70290
+ ), a = Ie((y) => y.selectedTableName), { currentConnection: s } = hb(), l = s == null ? void 0 : s.type, {
70290
70291
  data: c,
70291
70292
  isLoading: u,
70292
70293
  isFetching: d,
@@ -70341,26 +70342,26 @@ function GRe(e) {
70341
70342
  }
70342
70343
  function YRe(e, t) {
70343
70344
  var Ae, Ke, zt, On, xn;
70344
- const n = Gf(), r = wr().authToken || e, o = Fe(
70345
+ const n = Gf(), r = wr().authToken || e, o = Ie(
70345
70346
  (ve) => ve.selectedConnectionId
70346
- ), i = Fe((ve) => ve.card), { queryKey: a } = WO(i), s = Fe(
70347
+ ), i = Ie((ve) => ve.card), { queryKey: a } = WO(i), s = Ie(
70347
70348
  (ve) => ve.selectedDatamodelId
70348
- ), l = Fe((ve) => ve.isDevMode), c = Fe(
70349
+ ), l = Ie((ve) => ve.isDevMode), c = Ie(
70349
70350
  (ve) => ve.selectedDatabaseName
70350
- ), u = Fe(
70351
+ ), u = Ie(
70351
70352
  (ve) => ve.selectedSchemaName
70352
- ), d = Fe((ve) => ve.selectedTableName), f = Fe(
70353
+ ), d = Ie((ve) => ve.selectedTableName), f = Ie(
70353
70354
  (ve) => ve.actions.setSelectedConnectionId
70354
- ), h = Fe(
70355
+ ), h = Ie(
70355
70356
  (ve) => ve.actions.setSelectedDatamodelId
70356
- ), p = Fe(
70357
+ ), p = Ie(
70357
70358
  (ve) => ve.actions.setSelectedDatabaseName
70358
- ), g = Fe(
70359
+ ), g = Ie(
70359
70360
  (ve) => ve.actions.setSelectedSchemaName
70360
- ), m = Fe(
70361
+ ), m = Ie(
70361
70362
  (ve) => ve.actions.setSelectedTableName
70362
70363
  );
70363
- Fe((ve) => ve.actions.setCardSql);
70364
+ Ie((ve) => ve.actions.setCardSql);
70364
70365
  const { setQueryConfig: y } = bo();
70365
70366
  function v(ve) {
70366
70367
  return o && c && u && c !== "NA" ? !0 : o && ve === "API" ? !1 : !!(o && ve === "S3");
@@ -71252,15 +71253,15 @@ const sDe = {
71252
71253
  function lDe({
71253
71254
  variant: e = "secondary"
71254
71255
  }) {
71255
- const { setCardSql: t } = bo(), n = Fe((h) => h.frame), r = Fe((h) => h.card), o = Fe(
71256
+ const { setCardSql: t } = bo(), n = Ie((h) => h.frame), r = Ie((h) => h.card), o = Ie(
71256
71257
  (h) => h.selectedSchemaName
71257
- ), i = Fe(
71258
+ ), i = Ie(
71258
71259
  (h) => h.selectedDatamodelId
71259
- ), a = Fe(
71260
+ ), a = Ie(
71260
71261
  (h) => h.selectedDatabaseName
71261
- ), s = Fe((h) => h.selectedTableName), l = Fe(
71262
+ ), s = Ie((h) => h.selectedTableName), l = Ie(
71262
71263
  (h) => h.selectedConnectionId
71263
- ), c = Fe((h) => h.isShowingVisual), u = r.sql, d = Fe((h) => h.onSave);
71264
+ ), c = Ie((h) => h.isShowingVisual), u = r.sql, d = Ie((h) => h.onSave);
71264
71265
  function f() {
71265
71266
  let h = u;
71266
71267
  u && !u.includes("{{") && (h = aDe(u), t(h));
@@ -71299,7 +71300,7 @@ function lDe({
71299
71300
  );
71300
71301
  }
71301
71302
  function cDe() {
71302
- const { setTempQueryData: e, setSqlGen: t } = bo(), n = Gf(), r = Fe((l) => l.tempQueryData), o = Fe((l) => l.onClose), i = Fe((l) => l.card), { queryKey: a } = To(i);
71303
+ const { setTempQueryData: e, setSqlGen: t } = bo(), n = Gf(), r = Ie((l) => l.tempQueryData), o = Ie((l) => l.onClose), i = Ie((l) => l.card), { queryKey: a } = To(i);
71303
71304
  function s() {
71304
71305
  if (r) {
71305
71306
  const { queryKey: l, queryData: c } = r;
@@ -71322,27 +71323,27 @@ function cDe() {
71322
71323
  );
71323
71324
  }
71324
71325
  function uDe() {
71325
- const { setTempQueryData: e } = bo(), t = Gf(), n = Fe((p) => p.tempQueryData), r = Fe((p) => p.card), { queryKey: o } = To(r), {
71326
- setCardSql: i,
71327
- setSqlGen: a,
71328
- setCardPython: s,
71329
- setCardCustomCfg: l,
71330
- setCardPreferences: c,
71331
- updateDataSource: u,
71332
- clearQueryConfig: d,
71333
- setCardConfig: f
71326
+ const { setTempQueryData: e } = bo(), t = Gf(), n = Ie((g) => g.isDevMode), r = Ie((g) => g.tempQueryData), o = Ie((g) => g.card), { queryKey: i } = To(o), {
71327
+ setCardSql: a,
71328
+ setSqlGen: s,
71329
+ setCardPython: l,
71330
+ setCardCustomCfg: c,
71331
+ setCardPreferences: u,
71332
+ updateDataSource: d,
71333
+ clearQueryConfig: f,
71334
+ setCardConfig: h
71334
71335
  } = bo();
71335
- function h() {
71336
- const p = t.getQueryData(o);
71337
- n != null && n.queryData || e({
71338
- queryKey: o,
71339
- queryData: p
71340
- }), t.setQueryData(o, null), t.removeQueries({ queryKey: o, exact: !0 }), u(sDe), i(""), a({}), d(), f(void 0), s(""), l(""), c({});
71336
+ function p() {
71337
+ const g = t.getQueryData(i);
71338
+ r != null && r.queryData || e({
71339
+ queryKey: i,
71340
+ queryData: g
71341
+ }), t.setQueryData(i, null), t.removeQueries({ queryKey: i, exact: !0 }), n && d(sDe), a(""), s({}), f(), h(void 0), l(""), c(""), u({});
71341
71342
  }
71342
71343
  return /* @__PURE__ */ F(
71343
71344
  Ue,
71344
71345
  {
71345
- onClick: h,
71346
+ onClick: p,
71346
71347
  className: "h-8",
71347
71348
  size: "sm",
71348
71349
  variant: "secondary",
@@ -71773,13 +71774,13 @@ function fAe(e) {
71773
71774
  droppableRects: l,
71774
71775
  over: c,
71775
71776
  measureDroppableContainers: u
71776
- } = x$(), d = Oh(K$, n), f = s.rect !== null, h = Ie(() => r.map((x) => typeof x == "object" && "id" in x ? x.id : x), [r]), p = a != null, g = a ? h.indexOf(a.id) : -1, m = c ? h.indexOf(c.id) : -1, y = pe(h), v = !DDe(h, y.current), w = m !== -1 && g === -1 || v, _ = MDe(i);
71777
+ } = x$(), d = Oh(K$, n), f = s.rect !== null, h = Te(() => r.map((x) => typeof x == "object" && "id" in x ? x.id : x), [r]), p = a != null, g = a ? h.indexOf(a.id) : -1, m = c ? h.indexOf(c.id) : -1, y = pe(h), v = !DDe(h, y.current), w = m !== -1 && g === -1 || v, _ = MDe(i);
71777
71778
  Bo(() => {
71778
71779
  v && p && u(h);
71779
71780
  }, [v, h, p, u]), de(() => {
71780
71781
  y.current = h;
71781
71782
  }, [h]);
71782
- const C = Ie(
71783
+ const C = Te(
71783
71784
  () => ({
71784
71785
  activeIndex: g,
71785
71786
  containerId: d,
@@ -71879,14 +71880,14 @@ function hAe(e) {
71879
71880
  overIndex: m,
71880
71881
  useDragOverlay: y,
71881
71882
  strategy: v
71882
- } = yt(X$), w = $De(r, h), _ = u.indexOf(a), C = Ie(() => ({
71883
+ } = yt(X$), w = $De(r, h), _ = u.indexOf(a), C = Te(() => ({
71883
71884
  sortable: {
71884
71885
  containerId: d,
71885
71886
  index: _,
71886
71887
  items: u
71887
71888
  },
71888
71889
  ...o
71889
- }), [d, o, _, u]), x = Ie(() => u.slice(u.indexOf(a)), [u, a]), {
71890
+ }), [d, o, _, u]), x = Te(() => u.slice(u.indexOf(a)), [u, a]), {
71890
71891
  rect: E,
71891
71892
  node: k,
71892
71893
  isOver: D,
@@ -72091,8 +72092,8 @@ function VDe({
72091
72092
  onAccept: n,
72092
72093
  onClear: r
72093
72094
  }) {
72094
- const o = Fe((s) => s.isDevMode), { setIsDevMode: i } = bo();
72095
- Fe((s) => s.showAIDialog);
72095
+ const o = Ie((s) => s.isDevMode), { setIsDevMode: i } = bo();
72096
+ Ie((s) => s.showAIDialog);
72096
72097
  const { setShowAIDialog: a } = bo();
72097
72098
  return /* @__PURE__ */ F("div", { className: "flex items-center justify-between px-6 py-4", children: [
72098
72099
  e && /* @__PURE__ */ F("div", { className: "flex items-center space-x-2", children: [
@@ -72467,10 +72468,10 @@ export {
72467
72468
  O$ as cd,
72468
72469
  jq as ce,
72469
72470
  EMe as cf,
72470
- ube as cg,
72471
- S1 as ch,
72472
- M1 as ci,
72473
- Jq as cj,
72471
+ S1 as cg,
72472
+ M1 as ch,
72473
+ Jq as ci,
72474
+ ube as cj,
72474
72475
  uAe as ck,
72475
72476
  EDe as cl,
72476
72477
  kDe as cm,
@@ -72522,7 +72523,7 @@ export {
72522
72523
  HMe as u,
72523
72524
  oe as v,
72524
72525
  wn as w,
72525
- Fe as x,
72526
+ Ie as x,
72526
72527
  bo as y,
72527
72528
  Uf as z
72528
72529
  };