@marimo-team/islands 0.23.17-dev41 → 0.23.17-dev45

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.
@@ -22,6 +22,7 @@ import { $ as StyleNamespace, J as MAX_HEIGHT_OFFSET, X as withFullScreenAsRoot,
22
22
  import { a as prettyError, c as Portal$1, l as Root$4, n as ErrorBanner, o as Content$1, s as Overlay, t as Banner } from "./error-banner-dmkbm21G.js";
23
23
  import { a as TooltipRoot, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-CkCWlUOf.js";
24
24
  import { f as CopyClipboardIcon, t as _extends } from "./extends-DDOVg_b8.js";
25
+ import { t as merge_default } from "./merge-Be1CqGnU.js";
25
26
  import { A as useEvent_default, C as useSetAtom, D as buildStore, O as getBuildingBlocks, S as useAtomValue, T as atom, _ as useJotaiEffect, a as KnownQueryParams, b as Provider, d as resolvedMarimoConfigAtom, g as store, k as dequal, n as useTheme, o as aiFeaturesEnabledAtom, p as userConfigAtom, s as aiModelConfiguredAtom, w as useStore, x as useAtom } from "./useTheme-Dur2p3iC.js";
26
27
  import { $ as EditorView } from "./dist-Cds3J-EE.js";
27
28
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
@@ -2061,21 +2062,21 @@ Defaulting to \`null\`.`;
2061
2062
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2062
2063
  let { block: i = "nearest", inline: a = "nearest" } = n;
2063
2064
  if (e === t) return;
2064
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, pJ = c.top - E, mJ = c.bottom + O, hJ = c.left - A, gJ = c.right + M, _J = e === _ ? 0 : Q + $, vJ = e === _ ? 0 : q + J, yJ = e.offsetWidth - e.clientWidth - _J, bJ = e.offsetHeight - e.clientHeight - vJ, xJ = v + q + I, SJ = y - J - z - bJ, CJ = S + Q + U, wJ = w - $ - K;
2065
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? CJ += yJ : wJ -= yJ;
2066
- let TJ = pJ < xJ || mJ > SJ, EJ = hJ < CJ || gJ > wJ;
2067
- if (TJ && i === "start") o += pJ - xJ;
2068
- else if (TJ && i === "center") o += (pJ + mJ) / 2 - (xJ + SJ) / 2;
2069
- else if (TJ && i === "end") o += mJ - SJ;
2070
- else if (TJ && i === "nearest") {
2071
- let e2 = pJ - xJ, t2 = mJ - SJ;
2065
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, mJ = c.top - E, hJ = c.bottom + O, gJ = c.left - A, _J = c.right + M, vJ = e === _ ? 0 : Q + $, yJ = e === _ ? 0 : q + J, bJ = e.offsetWidth - e.clientWidth - vJ, xJ = e.offsetHeight - e.clientHeight - yJ, SJ = v + q + I, CJ = y - J - z - xJ, wJ = S + Q + U, TJ = w - $ - K;
2066
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? wJ += bJ : TJ -= bJ;
2067
+ let EJ = mJ < SJ || hJ > CJ, DJ = gJ < wJ || _J > TJ;
2068
+ if (EJ && i === "start") o += mJ - SJ;
2069
+ else if (EJ && i === "center") o += (mJ + hJ) / 2 - (SJ + CJ) / 2;
2070
+ else if (EJ && i === "end") o += hJ - CJ;
2071
+ else if (EJ && i === "nearest") {
2072
+ let e2 = mJ - SJ, t2 = hJ - CJ;
2072
2073
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2073
2074
  }
2074
- if (EJ && a === "start") s += hJ - CJ;
2075
- else if (EJ && a === "center") s += (hJ + gJ) / 2 - (CJ + wJ) / 2;
2076
- else if (EJ && a === "end") s += gJ - wJ;
2077
- else if (EJ && a === "nearest") {
2078
- let e2 = hJ - CJ, t2 = gJ - wJ;
2075
+ if (DJ && a === "start") s += gJ - wJ;
2076
+ else if (DJ && a === "center") s += (gJ + _J) / 2 - (wJ + TJ) / 2;
2077
+ else if (DJ && a === "end") s += _J - TJ;
2078
+ else if (DJ && a === "nearest") {
2079
+ let e2 = gJ - wJ, t2 = _J - TJ;
2079
2080
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2080
2081
  }
2081
2082
  e.scrollTo({
@@ -5185,23 +5186,23 @@ Defaulting to \`null\`.`;
5185
5186
  }
5186
5187
  let $ = "bottom";
5187
5188
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5188
- let pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
- q[I] += pJ;
5190
- let mJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
- y && y < mJ && (mJ = y), n.height = Math.min(n.height, mJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += pJ;
5192
- let hJ = {}, gJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], _J = gJ + 0.5 * t[z], vJ = S / 2 + w, yJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), bJ = n[z] - yJ - S / 2 - w;
5193
- hJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(_J, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), vJ, bJ), { placement: U, crossPlacement: K } = A, S ? gJ = hJ[I] : K === "right" ? gJ += t[z] : K === "center" && (gJ += t[z] / 2);
5194
- let xJ = U === "left" || U === "top" ? n[M] : 0, SJ = {
5195
- x: U === "top" || U === "bottom" ? gJ : xJ,
5196
- y: U === "left" || U === "right" ? gJ : xJ
5189
+ let mJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5190
+ q[I] += mJ;
5191
+ let hJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5192
+ y && y < hJ && (hJ = y), n.height = Math.min(n.height, hJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), mJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += mJ;
5193
+ let gJ = {}, _J = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], vJ = _J + 0.5 * t[z], yJ = S / 2 + w, bJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), xJ = n[z] - bJ - S / 2 - w;
5194
+ gJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(vJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), yJ, xJ), { placement: U, crossPlacement: K } = A, S ? _J = gJ[I] : K === "right" ? _J += t[z] : K === "center" && (_J += t[z] / 2);
5195
+ let SJ = U === "left" || U === "top" ? n[M] : 0, CJ = {
5196
+ x: U === "top" || U === "bottom" ? _J : SJ,
5197
+ y: U === "left" || U === "right" ? _J : SJ
5197
5198
  };
5198
5199
  return {
5199
5200
  position: q,
5200
- maxHeight: mJ,
5201
- arrowOffsetLeft: hJ.left,
5202
- arrowOffsetTop: hJ.top,
5201
+ maxHeight: hJ,
5202
+ arrowOffsetLeft: gJ.left,
5203
+ arrowOffsetTop: gJ.top,
5203
5204
  placement: U,
5204
- triggerAnchorPoint: SJ
5205
+ triggerAnchorPoint: CJ
5205
5206
  };
5206
5207
  }
5207
5208
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7056,7 +7057,7 @@ Defaulting to \`null\`.`;
7056
7057
  n,
7057
7058
  h
7058
7059
  ]);
7059
- let pJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7060
+ let mJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7060
7061
  role: "textbox",
7061
7062
  "aria-valuemax": null,
7062
7063
  "aria-valuemin": null,
@@ -7066,8 +7067,8 @@ Defaulting to \`null\`.`;
7066
7067
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7067
7068
  t.segments
7068
7069
  ]) && !t.isInvalid && (f = void 0);
7069
- let mJ = $bdb11010cef70236$export$f680877a34711e37(), hJ = !t.isDisabled && !t.isReadOnly && e.isEditable, gJ = e.type === "literal" ? "" : s.of(e.type), _J = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
- "aria-label": `${gJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7070
+ let hJ = $bdb11010cef70236$export$f680877a34711e37(), gJ = !t.isDisabled && !t.isReadOnly && e.isEditable, _J = e.type === "literal" ? "" : s.of(e.type), vJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7071
+ "aria-label": `${_J}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7071
7072
  "aria-labelledby": d
7072
7073
  });
7073
7074
  if (e.type === "literal") return {
@@ -7075,32 +7076,32 @@ Defaulting to \`null\`.`;
7075
7076
  "aria-hidden": true
7076
7077
  }
7077
7078
  };
7078
- let vJ = {
7079
+ let yJ = {
7079
7080
  caretColor: "transparent"
7080
7081
  };
7081
7082
  if (o === "rtl") {
7082
- vJ.unicodeBidi = "embed";
7083
+ yJ.unicodeBidi = "embed";
7083
7084
  let t2 = v[e.type];
7084
- (t2 === "numeric" || t2 === "2-digit") && (vJ.direction = "ltr");
7085
+ (t2 === "numeric" || t2 === "2-digit") && (yJ.direction = "ltr");
7085
7086
  }
7086
7087
  return {
7087
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, _J, {
7088
- id: mJ,
7089
- ...pJ,
7088
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, vJ, {
7089
+ id: hJ,
7090
+ ...mJ,
7090
7091
  "aria-invalid": t.isInvalid ? "true" : void 0,
7091
7092
  "aria-describedby": f,
7092
7093
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7093
7094
  "data-placeholder": e.isPlaceholder || void 0,
7094
- contentEditable: hJ,
7095
- suppressContentEditableWarning: hJ,
7096
- spellCheck: hJ ? "false" : void 0,
7097
- autoCorrect: hJ ? "off" : void 0,
7098
- enterKeyHint: hJ ? "next" : void 0,
7099
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !hJ ? void 0 : "numeric",
7095
+ contentEditable: gJ,
7096
+ suppressContentEditableWarning: gJ,
7097
+ spellCheck: gJ ? "false" : void 0,
7098
+ autoCorrect: gJ ? "off" : void 0,
7099
+ enterKeyHint: gJ ? "next" : void 0,
7100
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !gJ ? void 0 : "numeric",
7100
7101
  tabIndex: t.isDisabled ? void 0 : 0,
7101
7102
  onKeyDown: A,
7102
7103
  onFocus: Q,
7103
- style: vJ,
7104
+ style: yJ,
7104
7105
  onPointerDown(e2) {
7105
7106
  e2.stopPropagation();
7106
7107
  },
@@ -10343,12 +10344,12 @@ Defaulting to \`null\`.`;
10343
10344
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10344
10345
  }
10345
10346
  }
10346
- let pJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10347
+ let mJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10347
10348
  w,
10348
10349
  f,
10349
10350
  s,
10350
10351
  c
10351
- ]), mJ = e.isInvalid || e.validationState === "invalid" || pJ, hJ = mJ ? "invalid" : null, gJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10352
+ ]), hJ = e.isInvalid || e.validationState === "invalid" || mJ, gJ = hJ ? "invalid" : null, _J = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10352
10353
  h,
10353
10354
  o
10354
10355
  ]);
@@ -10365,8 +10366,8 @@ Defaulting to \`null\`.`;
10365
10366
  maxValue: c,
10366
10367
  focusedDate: O,
10367
10368
  timeZone: E,
10368
- validationState: hJ,
10369
- isValueInvalid: mJ,
10369
+ validationState: gJ,
10370
+ isValueInvalid: hJ,
10370
10371
  setFocusedDate(e2) {
10371
10372
  Q(e2);
10372
10373
  },
@@ -10391,12 +10392,12 @@ Defaulting to \`null\`.`;
10391
10392
  }));
10392
10393
  },
10393
10394
  focusNextPage() {
10394
- let e2 = M.add(gJ);
10395
- A($f62d864046160412$export$4f5203c0d889109e(O.add(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
10395
+ let e2 = M.add(_J);
10396
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(_J), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, _J, i, s, c), _J, i));
10396
10397
  },
10397
10398
  focusPreviousPage() {
10398
- let e2 = M.subtract(gJ);
10399
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
10399
+ let e2 = M.subtract(_J);
10400
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(_J), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, _J, i, s, c), _J, i));
10400
10401
  },
10401
10402
  focusSectionStart() {
10402
10403
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10533,13 +10534,13 @@ Defaulting to \`null\`.`;
10533
10534
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10534
10535
  }), q(null);
10535
10536
  }
10536
- }, [$, pJ] = (0, import_react.useState)(false), { isDateUnavailable: mJ } = e, hJ = (0, import_react.useMemo)(() => !h || v ? false : mJ && (mJ(h.start) || mJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10537
- mJ,
10537
+ }, [$, mJ] = (0, import_react.useState)(false), { isDateUnavailable: hJ } = e, gJ = (0, import_react.useMemo)(() => !h || v ? false : hJ && (hJ(h.start) || hJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10538
+ hJ,
10538
10539
  h,
10539
10540
  v,
10540
10541
  c,
10541
10542
  d
10542
- ]), gJ = e.isInvalid || e.validationState === "invalid" || hJ, _J = gJ ? "invalid" : null;
10543
+ ]), _J = e.isInvalid || e.validationState === "invalid" || gJ, vJ = _J ? "invalid" : null;
10543
10544
  return {
10544
10545
  ...I,
10545
10546
  value: h,
@@ -10547,8 +10548,8 @@ Defaulting to \`null\`.`;
10547
10548
  anchorDate: v,
10548
10549
  setAnchorDate: q,
10549
10550
  highlightedRange: J,
10550
- validationState: _J,
10551
- isValueInvalid: gJ,
10551
+ validationState: vJ,
10552
+ isValueInvalid: _J,
10552
10553
  selectFocusedDate() {
10553
10554
  Q(I.focusedDate);
10554
10555
  },
@@ -10564,7 +10565,7 @@ Defaulting to \`null\`.`;
10564
10565
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10565
10566
  },
10566
10567
  isDragging: $,
10567
- setDragging: pJ
10568
+ setDragging: mJ
10568
10569
  };
10569
10570
  }
10570
10571
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11751,7 +11752,7 @@ Defaulting to \`null\`.`;
11751
11752
  _,
11752
11753
  S,
11753
11754
  v
11754
- ]), pJ = (0, import_react.useMemo)(() => {
11755
+ ]), mJ = (0, import_react.useMemo)(() => {
11755
11756
  let t2 = w === "h11" || w === "h12", n2 = [
11756
11757
  "era",
11757
11758
  "year",
@@ -11769,15 +11770,15 @@ Defaulting to \`null\`.`;
11769
11770
  e.maxGranularity,
11770
11771
  _,
11771
11772
  w
11772
- ]), [mJ, hJ] = (0, import_react.useState)(M), [gJ, _J] = (0, import_react.useState)(S), [vJ, yJ] = (0, import_react.useState)(w);
11773
- (M !== mJ || w !== vJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, gJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), hJ(M), _J(S), yJ(w), z(I));
11774
- let bJ = (t2) => {
11775
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(pJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11773
+ ]), [hJ, gJ] = (0, import_react.useState)(M), [_J, vJ] = (0, import_react.useState)(S), [yJ, bJ] = (0, import_react.useState)(w);
11774
+ (M !== hJ || w !== yJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, _J)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), gJ(M), vJ(S), bJ(w), z(I));
11775
+ let xJ = (t2) => {
11776
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(mJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11776
11777
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11777
11778
  else {
11778
- if (t2.isComplete(pJ)) {
11779
+ if (t2.isComplete(mJ)) {
11779
11780
  let e2 = t2.toValue(M ?? $);
11780
- if (t2.validate(e2, pJ)) {
11781
+ if (t2.validate(e2, mJ)) {
11781
11782
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11782
11783
  if (!E || t3.compare(E) !== 0) {
11783
11784
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11787,83 +11788,83 @@ Defaulting to \`null\`.`;
11787
11788
  }
11788
11789
  z(t2);
11789
11790
  }
11790
- }, xJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11791
+ }, SJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11791
11792
  I,
11792
11793
  y,
11793
11794
  M,
11794
11795
  $
11795
- ]), SJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(xJ, I, J, Q, S, t, _), [
11796
- xJ,
11796
+ ]), CJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(SJ, I, J, Q, S, t, _), [
11797
+ SJ,
11797
11798
  J,
11798
11799
  Q,
11799
11800
  I,
11800
11801
  S,
11801
11802
  t,
11802
11803
  _
11803
- ]), CJ = (e2, t2) => {
11804
- bJ(I.cycle(e2, t2, $, pJ));
11805
- }, wJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11804
+ ]), wJ = (e2, t2) => {
11805
+ xJ(I.cycle(e2, t2, $, mJ));
11806
+ }, TJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11806
11807
  E,
11807
11808
  c,
11808
11809
  d,
11809
11810
  f,
11810
11811
  K
11811
- ]), TJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11812
+ ]), EJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11812
11813
  ...e,
11813
11814
  value: E,
11814
- builtinValidation: wJ
11815
- }), EJ = TJ.displayValidation.isInvalid, DJ = e.validationState || (EJ ? "invalid" : null);
11815
+ builtinValidation: TJ
11816
+ }), DJ = EJ.displayValidation.isInvalid, OJ = e.validationState || (DJ ? "invalid" : null);
11816
11817
  return {
11817
- ...TJ,
11818
+ ...EJ,
11818
11819
  value: M,
11819
11820
  defaultValue: e.defaultValue ?? A,
11820
- dateValue: xJ,
11821
+ dateValue: SJ,
11821
11822
  calendar: S,
11822
- setValue: bJ,
11823
- segments: SJ,
11823
+ setValue: xJ,
11824
+ segments: CJ,
11824
11825
  dateFormatter: J,
11825
- validationState: DJ,
11826
- isInvalid: EJ,
11826
+ validationState: OJ,
11827
+ isInvalid: DJ,
11827
11828
  granularity: _,
11828
11829
  maxGranularity: e.maxGranularity ?? "year",
11829
11830
  isDisabled: a,
11830
11831
  isReadOnly: o,
11831
11832
  isRequired: s,
11832
11833
  increment(e2) {
11833
- CJ(e2, 1);
11834
+ wJ(e2, 1);
11834
11835
  },
11835
11836
  decrement(e2) {
11836
- CJ(e2, -1);
11837
+ wJ(e2, -1);
11837
11838
  },
11838
11839
  incrementPage(e2) {
11839
- CJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11840
+ wJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11840
11841
  },
11841
11842
  decrementPage(e2) {
11842
- CJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11843
+ wJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11843
11844
  },
11844
11845
  incrementToMax(e2) {
11845
11846
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11846
- bJ(I.set(e2, t2, $));
11847
+ xJ(I.set(e2, t2, $));
11847
11848
  },
11848
11849
  decrementToMin(e2) {
11849
11850
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11850
- bJ(I.set(e2, t2, $));
11851
+ xJ(I.set(e2, t2, $));
11851
11852
  },
11852
11853
  setSegment(e2, t2) {
11853
- bJ(I.set(e2, t2, $));
11854
+ xJ(I.set(e2, t2, $));
11854
11855
  },
11855
11856
  confirmPlaceholder() {
11856
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(pJ)) {
11857
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(mJ)) {
11857
11858
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11858
11859
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11859
11860
  }
11860
11861
  },
11861
11862
  clearSegment(e2) {
11862
11863
  let t2 = I;
11863
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), bJ(t2);
11864
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), xJ(t2);
11864
11865
  },
11865
11866
  formatValue(e2) {
11866
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(xJ) : "";
11867
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(SJ) : "";
11867
11868
  },
11868
11869
  getDateFormatter(e2, t2) {
11869
11870
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11983,7 +11984,7 @@ Defaulting to \`null\`.`;
11983
11984
  e.endName
11984
11985
  ]),
11985
11986
  builtinValidation: J
11986
- }), $ = Q.displayValidation.isInvalid, pJ = e.validationState || ($ ? "invalid" : null);
11987
+ }), $ = Q.displayValidation.isInvalid, mJ = e.validationState || ($ ? "invalid" : null);
11987
11988
  return {
11988
11989
  ...Q,
11989
11990
  value: c,
@@ -12029,7 +12030,7 @@ Defaulting to \`null\`.`;
12029
12030
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
12030
12031
  }), t.setOpen(n2);
12031
12032
  },
12032
- validationState: pJ,
12033
+ validationState: mJ,
12033
12034
  isInvalid: $,
12034
12035
  formatValue(t2, n2) {
12035
12036
  if (!c || !c.start || !c.end) return null;
@@ -14352,7 +14353,7 @@ Defaulting to \`null\`.`;
14352
14353
  clone: false
14353
14354
  }) : e;
14354
14355
  }
14355
- var merge_default = merge;
14356
+ var merge_default$1 = merge;
14356
14357
  const values = {
14357
14358
  xs: 0,
14358
14359
  sm: 600,
@@ -14552,7 +14553,7 @@ Defaulting to \`null\`.`;
14552
14553
  }
14553
14554
  function style(e, t) {
14554
14555
  let n = createUnarySpacing(e.theme);
14555
- return Object.keys(e).map((i) => resolveCssProperty(e, t, i, n)).reduce(merge_default, {});
14556
+ return Object.keys(e).map((i) => resolveCssProperty(e, t, i, n)).reduce(merge_default$1, {});
14556
14557
  }
14557
14558
  function margin(e) {
14558
14559
  return style(e, marginKeys);
@@ -14581,7 +14582,7 @@ Defaulting to \`null\`.`;
14581
14582
  function compose(...e) {
14582
14583
  let t = e.reduce((e2, t2) => (t2.filterProps.forEach((n2) => {
14583
14584
  e2[n2] = t2;
14584
- }), e2), {}), n = (e2) => Object.keys(e2).reduce((n2, i) => t[i] ? merge_default(n2, t[i](e2)) : n2, {});
14585
+ }), e2), {}), n = (e2) => Object.keys(e2).reduce((n2, i) => t[i] ? merge_default$1(n2, t[i](e2)) : n2, {});
14585
14586
  return n.propTypes = {}, n.filterProps = e.reduce((e2, t2) => e2.concat(t2.filterProps), []), n;
14586
14587
  }
14587
14588
  var compose_default = compose;
@@ -15041,7 +15042,7 @@ Defaulting to \`null\`.`;
15041
15042
  let c2 = createEmptyBreakpointObject(a.breakpoints), d = Object.keys(c2), f = c2;
15042
15043
  return Object.keys(i2).forEach((n3) => {
15043
15044
  let o2 = callIfFn(i2[n3], a);
15044
- if (o2 != null) if (typeof o2 == "object") if (s[n3]) f = merge_default(f, e(n3, o2, a, s));
15045
+ if (o2 != null) if (typeof o2 == "object") if (s[n3]) f = merge_default$1(f, e(n3, o2, a, s));
15045
15046
  else {
15046
15047
  let e2 = handleBreakpoints({
15047
15048
  theme: a
@@ -15052,9 +15053,9 @@ Defaulting to \`null\`.`;
15052
15053
  sx: o2,
15053
15054
  theme: a,
15054
15055
  nested: true
15055
- }) : f = merge_default(f, e2);
15056
+ }) : f = merge_default$1(f, e2);
15056
15057
  }
15057
- else f = merge_default(f, e(n3, o2, a, s));
15058
+ else f = merge_default$1(f, e(n3, o2, a, s));
15058
15059
  }), !o && a.modularCssLayers ? {
15059
15060
  "@layer sx": sortContainerQueries(a, removeUnusedBreakpoints(d, f))
15060
15061
  } : sortContainerQueries(a, removeUnusedBreakpoints(d, f));
@@ -15923,33 +15924,33 @@ try {
15923
15924
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15924
15925
  function y(e2) {
15925
15926
  var _a2, _b, _c, _d;
15926
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, pJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15927
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, mJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15927
15928
  h2
15928
- ]), mJ = pJ[t], hJ = mJ || pJ, { colorSchemes: gJ = _, components: _J = v, cssVarPrefix: vJ } = hJ, yJ = Object.keys(gJ).filter((e3) => !!gJ[e3]).join(","), bJ = import_react.useMemo(() => yJ.split(","), [
15929
- yJ
15930
- ]), xJ = typeof s == "string" ? s : s.light, SJ = typeof s == "string" ? s : s.dark, { mode: CJ, setMode: wJ, systemMode: TJ, lightColorScheme: EJ, darkColorScheme: DJ, colorScheme: OJ, setColorScheme: kJ } = useCurrentColorScheme({
15931
- supportedColorSchemes: bJ,
15932
- defaultLightColorScheme: xJ,
15933
- defaultDarkColorScheme: SJ,
15929
+ ]), hJ = mJ[t], gJ = hJ || mJ, { colorSchemes: _J = _, components: vJ = v, cssVarPrefix: yJ } = gJ, bJ = Object.keys(_J).filter((e3) => !!_J[e3]).join(","), xJ = import_react.useMemo(() => bJ.split(","), [
15930
+ bJ
15931
+ ]), SJ = typeof s == "string" ? s : s.light, CJ = typeof s == "string" ? s : s.dark, { mode: wJ, setMode: TJ, systemMode: EJ, lightColorScheme: DJ, darkColorScheme: OJ, colorScheme: kJ, setColorScheme: AJ } = useCurrentColorScheme({
15932
+ supportedColorSchemes: xJ,
15933
+ defaultLightColorScheme: SJ,
15934
+ defaultDarkColorScheme: CJ,
15934
15935
  modeStorageKey: y2,
15935
15936
  colorSchemeStorageKey: S2,
15936
- defaultMode: gJ[xJ] && gJ[SJ] ? U : ((_b = (_a2 = gJ[hJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = hJ.palette) == null ? void 0 : _c.mode),
15937
+ defaultMode: _J[SJ] && _J[CJ] ? U : ((_b = (_a2 = _J[gJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = gJ.palette) == null ? void 0 : _c.mode),
15937
15938
  storageManager: E,
15938
15939
  storageWindow: O,
15939
15940
  noSsr: K
15940
- }), AJ = CJ, jJ = OJ;
15941
- $ && (AJ = Q.mode, jJ = Q.colorScheme);
15942
- let MJ = import_react.useMemo(() => {
15941
+ }), jJ = wJ, MJ = kJ;
15942
+ $ && (jJ = Q.mode, MJ = Q.colorScheme);
15943
+ let NJ = import_react.useMemo(() => {
15943
15944
  var _a3;
15944
- let e3 = jJ || hJ.defaultColorScheme, t2 = ((_a3 = hJ.generateThemeVars) == null ? void 0 : _a3.call(hJ)) || hJ.vars, n2 = {
15945
- ...hJ,
15946
- components: _J,
15947
- colorSchemes: gJ,
15948
- cssVarPrefix: vJ,
15945
+ let e3 = MJ || gJ.defaultColorScheme, t2 = ((_a3 = gJ.generateThemeVars) == null ? void 0 : _a3.call(gJ)) || gJ.vars, n2 = {
15946
+ ...gJ,
15947
+ components: vJ,
15948
+ colorSchemes: _J,
15949
+ cssVarPrefix: yJ,
15949
15950
  vars: t2
15950
15951
  };
15951
15952
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15952
- let t3 = gJ[e3];
15953
+ let t3 = _J[e3];
15953
15954
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15954
15955
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15955
15956
  ...n2[e4],
@@ -15959,31 +15960,31 @@ try {
15959
15960
  }
15960
15961
  return c ? c(n2) : n2;
15961
15962
  }, [
15962
- hJ,
15963
- jJ,
15964
- _J,
15965
15963
  gJ,
15966
- vJ
15967
- ]), NJ = hJ.colorSchemeSelector;
15964
+ MJ,
15965
+ vJ,
15966
+ _J,
15967
+ yJ
15968
+ ]), PJ = gJ.colorSchemeSelector;
15968
15969
  useEnhancedEffect_default(() => {
15969
- if (jJ && M && NJ && NJ !== "media") {
15970
- let e3 = NJ, t2 = NJ;
15971
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...bJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", jJ));
15970
+ if (MJ && M && PJ && PJ !== "media") {
15971
+ let e3 = PJ, t2 = PJ;
15972
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...xJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", MJ));
15972
15973
  else {
15973
- let e4 = t2.replace("%s", jJ).match(/\[([^\]]+)\]/);
15974
+ let e4 = t2.replace("%s", MJ).match(/\[([^\]]+)\]/);
15974
15975
  if (e4) {
15975
15976
  let [t3, n2] = e4[1].split("=");
15976
- n2 || bJ.forEach((e5) => {
15977
- M.removeAttribute(t3.replace(jJ, e5));
15977
+ n2 || xJ.forEach((e5) => {
15978
+ M.removeAttribute(t3.replace(MJ, e5));
15978
15979
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15979
- } else M.setAttribute(t2, jJ);
15980
+ } else M.setAttribute(t2, MJ);
15980
15981
  }
15981
15982
  }
15982
15983
  }, [
15983
- jJ,
15984
- NJ,
15984
+ MJ,
15985
+ PJ,
15985
15986
  M,
15986
- bJ
15987
+ xJ
15987
15988
  ]), import_react.useEffect(() => {
15988
15989
  let e3;
15989
15990
  if (w2 && q.current && A) {
@@ -15996,48 +15997,48 @@ try {
15996
15997
  clearTimeout(e3);
15997
15998
  };
15998
15999
  }, [
15999
- jJ,
16000
+ MJ,
16000
16001
  w2,
16001
16002
  A
16002
16003
  ]), import_react.useEffect(() => (q.current = true, () => {
16003
16004
  q.current = false;
16004
16005
  }), []);
16005
- let PJ = import_react.useMemo(() => ({
16006
- allColorSchemes: bJ,
16007
- colorScheme: jJ,
16008
- darkColorScheme: DJ,
16009
- lightColorScheme: EJ,
16010
- mode: AJ,
16011
- setColorScheme: kJ,
16012
- setMode: wJ,
16013
- systemMode: TJ
16006
+ let FJ = import_react.useMemo(() => ({
16007
+ allColorSchemes: xJ,
16008
+ colorScheme: MJ,
16009
+ darkColorScheme: OJ,
16010
+ lightColorScheme: DJ,
16011
+ mode: jJ,
16012
+ setColorScheme: AJ,
16013
+ setMode: TJ,
16014
+ systemMode: EJ
16014
16015
  }), [
16015
- bJ,
16016
- jJ,
16016
+ xJ,
16017
+ MJ,
16018
+ OJ,
16017
16019
  DJ,
16018
- EJ,
16020
+ jJ,
16019
16021
  AJ,
16020
- kJ,
16021
- wJ,
16022
16022
  TJ,
16023
- MJ.colorSchemeSelector
16024
- ]), FJ = true;
16025
- (z || hJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === vJ) && (FJ = false);
16026
- let IJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16023
+ EJ,
16024
+ NJ.colorSchemeSelector
16025
+ ]), IJ = true;
16026
+ (z || gJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === yJ) && (IJ = false);
16027
+ let LJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16027
16028
  children: [
16028
16029
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
16029
- themeId: mJ ? t : void 0,
16030
- theme: MJ,
16030
+ themeId: hJ ? t : void 0,
16031
+ theme: NJ,
16031
16032
  children: d2
16032
16033
  }),
16033
- FJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16034
- styles: ((_d = MJ.generateStyleSheets) == null ? void 0 : _d.call(MJ)) || []
16034
+ IJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16035
+ styles: ((_d = NJ.generateStyleSheets) == null ? void 0 : _d.call(NJ)) || []
16035
16036
  })
16036
16037
  ]
16037
16038
  });
16038
- return $ ? IJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16039
- value: PJ,
16040
- children: IJ
16039
+ return $ ? LJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16040
+ value: FJ,
16041
+ children: LJ
16041
16042
  });
16042
16043
  }
16043
16044
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17537,10 +17538,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17537
17538
  let n = useDefaultProps({
17538
17539
  props: e,
17539
17540
  name: "MuiInputBase"
17540
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: pJ, onKeyDown: mJ, onKeyUp: hJ, placeholder: gJ, readOnly: _J, renderSuffix: vJ, rows: yJ, size: bJ, slotProps: xJ = {}, slots: SJ = {}, startAdornment: CJ, type: wJ = "text", value: TJ, ...EJ } = n, DJ = A.value == null ? TJ : A.value, { current: OJ } = import_react.useRef(DJ != null), kJ = import_react.useRef(), AJ = import_react.useCallback((e2) => {
17541
- }, []), jJ = useForkRef_default(kJ, M, A.ref, AJ), [MJ, NJ] = import_react.useState(false), PJ = useFormControl(), FJ = formControlState({
17541
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: mJ, onKeyDown: hJ, onKeyUp: gJ, placeholder: _J, readOnly: vJ, renderSuffix: yJ, rows: bJ, size: xJ, slotProps: SJ = {}, slots: CJ = {}, startAdornment: wJ, type: TJ = "text", value: EJ, ...DJ } = n, OJ = A.value == null ? EJ : A.value, { current: kJ } = import_react.useRef(OJ != null), AJ = import_react.useRef(), jJ = import_react.useCallback((e2) => {
17542
+ }, []), MJ = useForkRef_default(AJ, M, A.ref, jJ), [NJ, PJ] = import_react.useState(false), FJ = useFormControl(), IJ = formControlState({
17542
17543
  props: n,
17543
- muiFormControl: PJ,
17544
+ muiFormControl: FJ,
17544
17545
  states: [
17545
17546
  "color",
17546
17547
  "disabled",
@@ -17551,145 +17552,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17551
17552
  "filled"
17552
17553
  ]
17553
17554
  });
17554
- FJ.focused = PJ ? PJ.focused : MJ, import_react.useEffect(() => {
17555
- !PJ && _ && MJ && (NJ(false), J && J());
17555
+ IJ.focused = FJ ? FJ.focused : NJ, import_react.useEffect(() => {
17556
+ !FJ && _ && NJ && (PJ(false), J && J());
17556
17557
  }, [
17557
- PJ,
17558
+ FJ,
17558
17559
  _,
17559
- MJ,
17560
+ NJ,
17560
17561
  J
17561
17562
  ]);
17562
- let IJ = PJ && PJ.onFilled, LJ = PJ && PJ.onEmpty, RJ = import_react.useCallback((e2) => {
17563
- isFilled(e2) ? IJ && IJ() : LJ && LJ();
17563
+ let LJ = FJ && FJ.onFilled, RJ = FJ && FJ.onEmpty, zJ = import_react.useCallback((e2) => {
17564
+ isFilled(e2) ? LJ && LJ() : RJ && RJ();
17564
17565
  }, [
17565
- IJ,
17566
- LJ
17566
+ LJ,
17567
+ RJ
17567
17568
  ]);
17568
17569
  useEnhancedEffect_default$1(() => {
17569
- OJ && RJ({
17570
- value: DJ
17570
+ kJ && zJ({
17571
+ value: OJ
17571
17572
  });
17572
17573
  }, [
17573
- DJ,
17574
- RJ,
17575
- OJ
17574
+ OJ,
17575
+ zJ,
17576
+ kJ
17576
17577
  ]);
17577
- let zJ = (e2) => {
17578
- pJ && pJ(e2), A.onFocus && A.onFocus(e2), PJ && PJ.onFocus ? PJ.onFocus(e2) : NJ(true);
17579
- }, BJ = (e2) => {
17580
- J && J(e2), A.onBlur && A.onBlur(e2), PJ && PJ.onBlur ? PJ.onBlur(e2) : NJ(false);
17581
- }, VJ = (e2, ...t2) => {
17582
- if (!OJ) {
17583
- let t3 = e2.target || kJ.current;
17578
+ let BJ = (e2) => {
17579
+ mJ && mJ(e2), A.onFocus && A.onFocus(e2), FJ && FJ.onFocus ? FJ.onFocus(e2) : PJ(true);
17580
+ }, VJ = (e2) => {
17581
+ J && J(e2), A.onBlur && A.onBlur(e2), FJ && FJ.onBlur ? FJ.onBlur(e2) : PJ(false);
17582
+ }, HJ = (e2, ...t2) => {
17583
+ if (!kJ) {
17584
+ let t3 = e2.target || AJ.current;
17584
17585
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17585
- RJ({
17586
+ zJ({
17586
17587
  value: t3.value
17587
17588
  });
17588
17589
  }
17589
17590
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17590
17591
  };
17591
17592
  import_react.useEffect(() => {
17592
- RJ(kJ.current);
17593
+ zJ(AJ.current);
17593
17594
  }, []);
17594
- let HJ = (e2) => {
17595
- kJ.current && e2.currentTarget === e2.target && kJ.current.focus(), $ && $(e2);
17596
- }, UJ = O, WJ = A;
17597
- K && UJ === "input" && (WJ = yJ ? {
17595
+ let UJ = (e2) => {
17596
+ AJ.current && e2.currentTarget === e2.target && AJ.current.focus(), $ && $(e2);
17597
+ }, WJ = O, GJ = A;
17598
+ K && WJ === "input" && (GJ = bJ ? {
17598
17599
  type: void 0,
17599
- minRows: yJ,
17600
- maxRows: yJ,
17601
- ...WJ
17600
+ minRows: bJ,
17601
+ maxRows: bJ,
17602
+ ...GJ
17602
17603
  } : {
17603
17604
  type: void 0,
17604
17605
  maxRows: z,
17605
17606
  minRows: U,
17606
- ...WJ
17607
- }, UJ = TextareaAutosize_default);
17608
- let GJ = (e2) => {
17609
- RJ(e2.animationName === "mui-auto-fill-cancel" ? kJ.current : {
17607
+ ...GJ
17608
+ }, WJ = TextareaAutosize_default);
17609
+ let KJ = (e2) => {
17610
+ zJ(e2.animationName === "mui-auto-fill-cancel" ? AJ.current : {
17610
17611
  value: "x"
17611
17612
  });
17612
17613
  };
17613
17614
  import_react.useEffect(() => {
17614
- PJ && PJ.setAdornedStart(!!CJ);
17615
+ FJ && FJ.setAdornedStart(!!wJ);
17615
17616
  }, [
17616
- PJ,
17617
- CJ
17617
+ FJ,
17618
+ wJ
17618
17619
  ]);
17619
- let KJ = {
17620
+ let qJ = {
17620
17621
  ...n,
17621
- color: FJ.color || "primary",
17622
- disabled: FJ.disabled,
17622
+ color: IJ.color || "primary",
17623
+ disabled: IJ.disabled,
17623
17624
  endAdornment: y,
17624
- error: FJ.error,
17625
- focused: FJ.focused,
17626
- formControl: PJ,
17625
+ error: IJ.error,
17626
+ focused: IJ.focused,
17627
+ formControl: FJ,
17627
17628
  fullWidth: w,
17628
- hiddenLabel: FJ.hiddenLabel,
17629
+ hiddenLabel: IJ.hiddenLabel,
17629
17630
  multiline: K,
17630
- size: FJ.size,
17631
- startAdornment: CJ,
17632
- type: wJ
17633
- }, qJ = useUtilityClasses(KJ), JJ = SJ.root || d.Root || InputBaseRoot, YJ = xJ.root || f.root || {}, XJ = SJ.input || d.Input || InputBaseInput;
17634
- return WJ = {
17635
- ...WJ,
17636
- ...xJ.input ?? f.input
17631
+ size: IJ.size,
17632
+ startAdornment: wJ,
17633
+ type: TJ
17634
+ }, JJ = useUtilityClasses(qJ), YJ = CJ.root || d.Root || InputBaseRoot, XJ = SJ.root || f.root || {}, ZJ = CJ.input || d.Input || InputBaseInput;
17635
+ return GJ = {
17636
+ ...GJ,
17637
+ ...SJ.input ?? f.input
17637
17638
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17638
17639
  children: [
17639
17640
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17640
- (0, import_jsx_runtime.jsxs)(JJ, {
17641
- ...YJ,
17641
+ (0, import_jsx_runtime.jsxs)(YJ, {
17642
+ ...XJ,
17642
17643
  ref: t,
17643
- onClick: HJ,
17644
- ...EJ,
17645
- ...!isHostComponent_default(JJ) && {
17644
+ onClick: UJ,
17645
+ ...DJ,
17646
+ ...!isHostComponent_default(YJ) && {
17646
17647
  ownerState: {
17647
- ...KJ,
17648
- ...YJ.ownerState
17648
+ ...qJ,
17649
+ ...XJ.ownerState
17649
17650
  }
17650
17651
  },
17651
- className: clsx_default(qJ.root, YJ.className, s, _J && "MuiInputBase-readOnly"),
17652
+ className: clsx_default(JJ.root, XJ.className, s, vJ && "MuiInputBase-readOnly"),
17652
17653
  children: [
17653
- CJ,
17654
+ wJ,
17654
17655
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17655
17656
  value: null,
17656
- children: (0, import_jsx_runtime.jsx)(XJ, {
17657
- "aria-invalid": FJ.error,
17657
+ children: (0, import_jsx_runtime.jsx)(ZJ, {
17658
+ "aria-invalid": IJ.error,
17658
17659
  "aria-describedby": i,
17659
17660
  autoComplete: a,
17660
17661
  autoFocus: o,
17661
17662
  defaultValue: h,
17662
- disabled: FJ.disabled,
17663
+ disabled: IJ.disabled,
17663
17664
  id: E,
17664
- onAnimationStart: GJ,
17665
+ onAnimationStart: KJ,
17665
17666
  name: q,
17666
- placeholder: gJ,
17667
- readOnly: _J,
17668
- required: FJ.required,
17669
- rows: yJ,
17670
- value: DJ,
17671
- onKeyDown: mJ,
17672
- onKeyUp: hJ,
17673
- type: wJ,
17674
- ...WJ,
17675
- ...!isHostComponent_default(XJ) && {
17676
- as: UJ,
17667
+ placeholder: _J,
17668
+ readOnly: vJ,
17669
+ required: IJ.required,
17670
+ rows: bJ,
17671
+ value: OJ,
17672
+ onKeyDown: hJ,
17673
+ onKeyUp: gJ,
17674
+ type: TJ,
17675
+ ...GJ,
17676
+ ...!isHostComponent_default(ZJ) && {
17677
+ as: WJ,
17677
17678
  ownerState: {
17678
- ...KJ,
17679
- ...WJ.ownerState
17679
+ ...qJ,
17680
+ ...GJ.ownerState
17680
17681
  }
17681
17682
  },
17682
- ref: jJ,
17683
- className: clsx_default(qJ.input, WJ.className, _J && "MuiInputBase-readOnly"),
17684
- onBlur: BJ,
17685
- onChange: VJ,
17686
- onFocus: zJ
17683
+ ref: MJ,
17684
+ className: clsx_default(JJ.input, GJ.className, vJ && "MuiInputBase-readOnly"),
17685
+ onBlur: VJ,
17686
+ onChange: HJ,
17687
+ onFocus: BJ
17687
17688
  })
17688
17689
  }),
17689
17690
  y,
17690
- vJ ? vJ({
17691
- ...FJ,
17692
- startAdornment: CJ
17691
+ yJ ? yJ({
17692
+ ...IJ,
17693
+ startAdornment: wJ
17693
17694
  }) : null
17694
17695
  ]
17695
17696
  })
@@ -18765,30 +18766,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18765
18766
  M,
18766
18767
  i,
18767
18768
  a
18768
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), pJ = useTextColor(), mJ = useJsonViewerStore((e2) => e2.colorspace.base0C), hJ = useJsonViewerStore((e2) => e2.colorspace.base0A), gJ = useJsonViewerStore((e2) => e2.displayComma), _J = useJsonViewerStore((e2) => e2.quotesOnKeys), vJ = useJsonViewerStore((e2) => e2.rootName), yJ = U === t, bJ = Number.isInteger(Number(A)), xJ = useJsonViewerStore((e2) => e2.enableAdd), SJ = useJsonViewerStore((e2) => e2.onAdd), CJ = (0, import_react.useMemo)(() => !SJ || a !== void 0 || xJ === false || v === false ? false : typeof xJ == "function" ? !!xJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18769
- SJ,
18769
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), mJ = useTextColor(), hJ = useJsonViewerStore((e2) => e2.colorspace.base0C), gJ = useJsonViewerStore((e2) => e2.colorspace.base0A), _J = useJsonViewerStore((e2) => e2.displayComma), vJ = useJsonViewerStore((e2) => e2.quotesOnKeys), yJ = useJsonViewerStore((e2) => e2.rootName), bJ = U === t, xJ = Number.isInteger(Number(A)), SJ = useJsonViewerStore((e2) => e2.enableAdd), CJ = useJsonViewerStore((e2) => e2.onAdd), wJ = (0, import_react.useMemo)(() => !CJ || a !== void 0 || SJ === false || v === false ? false : typeof SJ == "function" ? !!SJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18770
+ CJ,
18770
18771
  a,
18771
18772
  i,
18772
- xJ,
18773
+ SJ,
18773
18774
  v,
18774
18775
  t
18775
- ]), wJ = useJsonViewerStore((e2) => e2.enableDelete), TJ = useJsonViewerStore((e2) => e2.onDelete), EJ = (0, import_react.useMemo)(() => !TJ || a !== void 0 || yJ || wJ === false || v === false ? false : typeof wJ == "function" ? !!wJ(i, t) : wJ, [
18776
- TJ,
18776
+ ]), TJ = useJsonViewerStore((e2) => e2.enableDelete), EJ = useJsonViewerStore((e2) => e2.onDelete), DJ = (0, import_react.useMemo)(() => !EJ || a !== void 0 || bJ || TJ === false || v === false ? false : typeof TJ == "function" ? !!TJ(i, t) : TJ, [
18777
+ EJ,
18777
18778
  a,
18778
- yJ,
18779
+ bJ,
18779
18780
  i,
18780
- wJ,
18781
+ TJ,
18781
18782
  v,
18782
18783
  t
18783
- ]), DJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: OJ, copied: kJ } = useClipboard(), AJ = useJsonViewerStore((e2) => e2.highlightUpdates), jJ = (0, import_react.useMemo)(() => !AJ || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18784
- AJ,
18784
+ ]), OJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: kJ, copied: AJ } = useClipboard(), jJ = useJsonViewerStore((e2) => e2.highlightUpdates), MJ = (0, import_react.useMemo)(() => !jJ || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18785
+ jJ,
18785
18786
  n,
18786
18787
  t
18787
- ]), MJ = (0, import_react.useRef)();
18788
+ ]), NJ = (0, import_react.useRef)();
18788
18789
  (0, import_react.useEffect)(() => {
18789
- MJ.current && jJ && "animate" in MJ.current && MJ.current.animate([
18790
+ NJ.current && MJ && "animate" in NJ.current && NJ.current.animate([
18790
18791
  {
18791
- backgroundColor: hJ
18792
+ backgroundColor: gJ
18792
18793
  },
18793
18794
  {
18794
18795
  backgroundColor: ""
@@ -18798,22 +18799,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18798
18799
  easing: "ease-in"
18799
18800
  });
18800
18801
  }, [
18801
- hJ,
18802
- jJ,
18802
+ gJ,
18803
+ MJ,
18803
18804
  n,
18804
18805
  t
18805
18806
  ]);
18806
- let NJ = (0, import_react.useCallback)((e2) => {
18807
+ let PJ = (0, import_react.useCallback)((e2) => {
18807
18808
  e2.preventDefault(), h && E(h(t)), Q(true);
18808
18809
  }, [
18809
18810
  h,
18810
18811
  t
18811
- ]), PJ = (0, import_react.useCallback)(() => {
18812
+ ]), FJ = (0, import_react.useCallback)(() => {
18812
18813
  Q(false), E("");
18813
18814
  }, [
18814
18815
  Q,
18815
18816
  E
18816
- ]), FJ = (0, import_react.useCallback)((e2) => {
18817
+ ]), IJ = (0, import_react.useCallback)((e2) => {
18817
18818
  if (Q(false), _) try {
18818
18819
  $(i, t, _(e2));
18819
18820
  } catch {
@@ -18824,14 +18825,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18824
18825
  $,
18825
18826
  i,
18826
18827
  t
18827
- ]), IJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18828
+ ]), LJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18828
18829
  children: [
18829
18830
  (0, import_jsx_runtime.jsx)(IconBox, {
18830
18831
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18831
18832
  sx: {
18832
18833
  fontSize: ".8rem"
18833
18834
  },
18834
- onClick: PJ
18835
+ onClick: FJ
18835
18836
  })
18836
18837
  }),
18837
18838
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18839,22 +18840,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18839
18840
  sx: {
18840
18841
  fontSize: ".8rem"
18841
18842
  },
18842
- onClick: () => FJ(w)
18843
+ onClick: () => IJ(w)
18843
18844
  })
18844
18845
  })
18845
18846
  ]
18846
18847
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18847
18848
  children: [
18848
- DJ && (0, import_jsx_runtime.jsx)(IconBox, {
18849
+ OJ && (0, import_jsx_runtime.jsx)(IconBox, {
18849
18850
  onClick: (e2) => {
18850
18851
  e2.preventDefault();
18851
18852
  try {
18852
- OJ(i, t, copyString);
18853
+ kJ(i, t, copyString);
18853
18854
  } catch (e3) {
18854
18855
  console.error(e3);
18855
18856
  }
18856
18857
  },
18857
- children: kJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18858
+ children: AJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18858
18859
  sx: {
18859
18860
  fontSize: ".8rem"
18860
18861
  }
@@ -18865,16 +18866,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18865
18866
  })
18866
18867
  }),
18867
18868
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18868
- onClick: NJ,
18869
+ onClick: PJ,
18869
18870
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18870
18871
  sx: {
18871
18872
  fontSize: ".8rem"
18872
18873
  }
18873
18874
  })
18874
18875
  }),
18875
- CJ && (0, import_jsx_runtime.jsx)(IconBox, {
18876
+ wJ && (0, import_jsx_runtime.jsx)(IconBox, {
18876
18877
  onClick: (e2) => {
18877
- e2.preventDefault(), SJ == null ? void 0 : SJ(i);
18878
+ e2.preventDefault(), CJ == null ? void 0 : CJ(i);
18878
18879
  },
18879
18880
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18880
18881
  sx: {
@@ -18882,9 +18883,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18882
18883
  }
18883
18884
  })
18884
18885
  }),
18885
- EJ && (0, import_jsx_runtime.jsx)(IconBox, {
18886
+ DJ && (0, import_jsx_runtime.jsx)(IconBox, {
18886
18887
  onClick: (e2) => {
18887
- e2.preventDefault(), TJ == null ? void 0 : TJ(i, t);
18888
+ e2.preventDefault(), EJ == null ? void 0 : EJ(i, t);
18888
18889
  },
18889
18890
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18890
18891
  sx: {
@@ -18897,24 +18898,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18897
18898
  f,
18898
18899
  h,
18899
18900
  _,
18901
+ AJ,
18900
18902
  kJ,
18901
- OJ,
18902
18903
  S,
18903
18904
  J,
18905
+ OJ,
18906
+ wJ,
18904
18907
  DJ,
18905
- CJ,
18906
- EJ,
18907
18908
  w,
18908
18909
  i,
18909
18910
  t,
18910
- SJ,
18911
- TJ,
18912
- NJ,
18911
+ CJ,
18912
+ EJ,
18913
18913
  PJ,
18914
- FJ
18915
- ]), LJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18914
+ FJ,
18915
+ IJ
18916
+ ]), RJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18916
18917
  t
18917
- ]), RJ = !LJ && !!(c && d), zJ = useJsonViewerStore((e2) => e2.keyRenderer), BJ = (0, import_react.useMemo)(() => ({
18918
+ ]), zJ = !RJ && !!(c && d), BJ = useJsonViewerStore((e2) => e2.keyRenderer), VJ = (0, import_react.useMemo)(() => ({
18918
18919
  path: i,
18919
18920
  inspect: K,
18920
18921
  setInspect: q,
@@ -18946,18 +18947,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18946
18947
  className: "data-key",
18947
18948
  sx: {
18948
18949
  lineHeight: 1.5,
18949
- color: pJ,
18950
+ color: mJ,
18950
18951
  letterSpacing: 0.5,
18951
18952
  opacity: 0.8
18952
18953
  },
18953
18954
  onClick: (0, import_react.useCallback)((e2) => {
18954
- e2.isDefaultPrevented() || LJ || q((e3) => !e3);
18955
+ e2.isDefaultPrevented() || RJ || q((e3) => !e3);
18955
18956
  }, [
18956
- LJ,
18957
+ RJ,
18957
18958
  q
18958
18959
  ]),
18959
18960
  children: [
18960
- RJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18961
+ zJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18961
18962
  className: "data-key-toggle-expanded",
18962
18963
  sx: {
18963
18964
  fontSize: ".8rem",
@@ -18975,27 +18976,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18975
18976
  }
18976
18977
  }) : null,
18977
18978
  (0, import_jsx_runtime.jsx)(Box_default, {
18978
- ref: MJ,
18979
+ ref: NJ,
18979
18980
  className: "data-key-key",
18980
18981
  component: "span",
18981
- children: yJ && O === 0 ? vJ === false ? null : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18982
+ children: bJ && O === 0 ? yJ === false ? null : vJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18982
18983
  children: [
18983
18984
  '"',
18984
- vJ,
18985
+ yJ,
18985
18986
  '"'
18986
18987
  ]
18987
18988
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18988
- children: vJ
18989
- }) : zJ.when(BJ) ? (0, import_jsx_runtime.jsx)(zJ, {
18990
- ...BJ
18991
- }) : a === void 0 && (bJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18989
+ children: yJ
18990
+ }) : BJ.when(VJ) ? (0, import_jsx_runtime.jsx)(BJ, {
18991
+ ...VJ
18992
+ }) : a === void 0 && (xJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18992
18993
  component: "span",
18993
18994
  style: {
18994
- color: mJ,
18995
- userSelect: bJ ? "none" : "auto"
18995
+ color: hJ,
18996
+ userSelect: xJ ? "none" : "auto"
18996
18997
  },
18997
18998
  children: A
18998
- }) : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18999
+ }) : vJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18999
19000
  children: [
19000
19001
  '"',
19001
19002
  A,
@@ -19005,7 +19006,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19005
19006
  children: A
19006
19007
  }))
19007
19008
  }),
19008
- yJ ? vJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19009
+ bJ ? yJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19009
19010
  className: "data-key-colon",
19010
19011
  sx: {
19011
19012
  mr: 0.5
@@ -19018,38 +19019,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19018
19019
  ".data-key-key:empty + &": {
19019
19020
  display: "none"
19020
19021
  },
19021
- userSelect: bJ ? "none" : "auto"
19022
+ userSelect: xJ ? "none" : "auto"
19022
19023
  },
19023
19024
  children: ":"
19024
19025
  }),
19025
19026
  c && (0, import_jsx_runtime.jsx)(c, {
19026
- ...BJ
19027
+ ...VJ
19027
19028
  }),
19028
- I && RJ && K && IJ
19029
+ I && zJ && K && LJ
19029
19030
  ]
19030
19031
  }),
19031
19032
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
19032
19033
  path: i,
19033
19034
  value: w,
19034
19035
  setValue: E,
19035
- abortEditing: PJ,
19036
- commitEditing: FJ
19036
+ abortEditing: FJ,
19037
+ commitEditing: IJ
19037
19038
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
19038
- ...BJ
19039
+ ...VJ
19039
19040
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
19040
19041
  component: "span",
19041
19042
  className: "data-value-fallback",
19042
19043
  children: `fallback: ${t}`
19043
19044
  }),
19044
19045
  d && (0, import_jsx_runtime.jsx)(d, {
19045
- ...BJ
19046
+ ...VJ
19046
19047
  }),
19047
- !o && gJ && (0, import_jsx_runtime.jsx)(DataBox, {
19048
+ !o && _J && (0, import_jsx_runtime.jsx)(DataBox, {
19048
19049
  children: ","
19049
19050
  }),
19050
- I && RJ && !K && IJ,
19051
- I && !RJ && IJ,
19052
- !I && J && IJ
19051
+ I && zJ && !K && LJ,
19052
+ I && !zJ && LJ,
19053
+ !I && J && LJ
19053
19054
  ]
19054
19055
  });
19055
19056
  }, query = "(prefers-color-scheme: dark)";
@@ -19264,7 +19265,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19264
19265
  };
19265
19266
  var KEY = "marimo:ai:chatState:v5";
19266
19267
  const aiCompletionCellAtom = atom(null), pendingAiPromptAtom = atom(null);
19267
- atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
19268
+ atomWithStorage("marimo:ai:chatOptions", {
19269
+ webSearch: false
19270
+ }, jotaiJsonStorage), atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
19268
19271
  function removeEmptyChats(e) {
19269
19272
  let t = /* @__PURE__ */ new Map();
19270
19273
  for (let [n, i] of e.entries()) {
@@ -19440,48 +19443,38 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19440
19443
  return "edit_model";
19441
19444
  }
19442
19445
  };
19443
- const useModelChange = () => {
19444
- let e = (0, import_compiler_runtime$63.c)(12), [t, n] = useAtom(userConfigAtom), { saveUserConfig: i } = useRequestClient(), a;
19445
- e[0] !== i || e[1] !== n ? (a = async (e2) => {
19446
- await i({
19447
- config: e2
19446
+ const useAIConfigActions = () => {
19447
+ let e = (0, import_compiler_runtime$63.c)(10), t = useSetAtom(userConfigAtom), { saveUserConfig: n } = useRequestClient(), i;
19448
+ e[0] !== n || e[1] !== t ? (i = async (e2) => {
19449
+ let i2 = {
19450
+ ai: e2
19451
+ };
19452
+ await n({
19453
+ config: i2
19448
19454
  }).then(() => {
19449
- n((t2) => ({
19450
- ...t2,
19451
- ...e2
19452
- }));
19455
+ t((e3) => merge_default({}, e3, i2));
19453
19456
  });
19454
- }, e[0] = i, e[1] = n, e[2] = a) : a = e[2];
19455
- let o = a, s;
19456
- e[3] !== o || e[4] !== t ? (s = async (e2, n2) => {
19457
- var _a2, _b, _c, _d, _e2;
19458
- let i2 = getModelKeyForRole(n2);
19459
- i2 && await o({
19460
- ai: {
19461
- ...t.ai,
19462
- models: {
19463
- custom_models: ((_b = (_a2 = t.ai) == null ? void 0 : _a2.models) == null ? void 0 : _b.custom_models) ?? [],
19464
- displayed_models: ((_d = (_c = t.ai) == null ? void 0 : _c.models) == null ? void 0 : _d.displayed_models) ?? [],
19465
- ...(_e2 = t.ai) == null ? void 0 : _e2.models,
19466
- [i2]: e2
19467
- }
19457
+ }, e[0] = n, e[1] = t, e[2] = i) : i = e[2];
19458
+ let a = i, o;
19459
+ e[3] === a ? o = e[4] : (o = async (e2, t2) => {
19460
+ let n2 = getModelKeyForRole(t2);
19461
+ n2 && await a({
19462
+ models: {
19463
+ [n2]: e2
19468
19464
  }
19469
19465
  });
19470
- }, e[3] = o, e[4] = t, e[5] = s) : s = e[5];
19471
- let c = s, d;
19472
- e[6] !== o || e[7] !== t ? (d = async (e2) => {
19473
- await o({
19474
- ai: {
19475
- ...t.ai,
19476
- mode: e2
19477
- }
19466
+ }, e[3] = a, e[4] = o);
19467
+ let s = o, c;
19468
+ e[5] === a ? c = e[6] : (c = async (e2) => {
19469
+ await a({
19470
+ mode: e2
19478
19471
  });
19479
- }, e[6] = o, e[7] = t, e[8] = d) : d = e[8];
19480
- let f = d, h;
19481
- return e[9] !== f || e[10] !== c ? (h = {
19482
- saveModelChange: c,
19483
- saveModeChange: f
19484
- }, e[9] = f, e[10] = c, e[11] = h) : h = e[11], h;
19472
+ }, e[5] = a, e[6] = c);
19473
+ let d = c, f;
19474
+ return e[7] !== d || e[8] !== s ? (f = {
19475
+ saveModelChange: s,
19476
+ saveModeChange: d
19477
+ }, e[7] = d, e[8] = s, e[9] = f) : f = e[9], f;
19485
19478
  };
19486
19479
  var import_compiler_runtime$62 = require_compiler_runtime();
19487
19480
  const aiPanelTabAtom = atomWithStorage("marimo:chrome:ai-panel-tab", "chat", jotaiJsonStorage);
@@ -19497,7 +19490,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19497
19490
  return e || (getFeatureFlag("external_agents") ? t : "chat");
19498
19491
  }
19499
19492
  function useOpenAiAssistant() {
19500
- let e = (0, import_compiler_runtime$61.c)(6), { openApplication: t } = useChromeActions(), { setAiPanelTab: n } = useAiPanelTab(), { saveModeChange: i } = useModelChange(), a = useSetAtom(pendingAiPromptAtom), o = useStore(), s;
19493
+ let e = (0, import_compiler_runtime$61.c)(6), { openApplication: t } = useChromeActions(), { setAiPanelTab: n } = useAiPanelTab(), { saveModeChange: i } = useAIConfigActions(), a = useSetAtom(pendingAiPromptAtom), o = useStore(), s;
19501
19494
  return e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== o ? (s = async (e2) => {
19502
19495
  let s2 = resolveAiPanelTab(e2.panel, o.get(aiPanelTabAtom)), c = o.get(aiModelConfiguredAtom), d = getFeatureFlag("external_agents") && o.get(agentSessionStateAtom).sessions.length > 0;
19503
19496
  if (!(s2 === "agents" ? d : c)) {
@@ -20137,18 +20130,18 @@ ${n}` : "Please fix this error.";
20137
20130
  }
20138
20131
  let y, S, w, E, O, A;
20139
20132
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
20140
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), mJ = n.filter(_temp16), hJ = n.filter(_temp17), gJ = n.filter(_temp18), _J;
20141
- t[17] === s ? _J = t[18] : (_J = () => {
20133
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), hJ = n.filter(_temp16), gJ = n.filter(_temp17), _J = n.filter(_temp18), vJ;
20134
+ t[17] === s ? vJ = t[18] : (vJ = () => {
20142
20135
  s.openApplication("scratchpad");
20143
- }, t[17] = s, t[18] = _J);
20144
- let vJ = _J, yJ = () => {
20136
+ }, t[17] = s, t[18] = vJ);
20137
+ let yJ = vJ, bJ = () => {
20145
20138
  let t2 = [];
20146
- if (mJ.length > 0 || hJ.length > 0) {
20147
- let e3 = mJ.some(_temp19), n2 = !e3 && mJ.some(_temp20);
20139
+ if (hJ.length > 0 || gJ.length > 0) {
20140
+ let e3 = hJ.some(_temp19), n2 = !e3 && hJ.some(_temp20);
20148
20141
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20149
20142
  children: [
20150
- mJ.map(_temp21),
20151
- hJ.map(_temp22),
20143
+ hJ.map(_temp21),
20144
+ gJ.map(_temp22),
20152
20145
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20153
20146
  size: "xs",
20154
20147
  variant: "outline",
@@ -20179,8 +20172,8 @@ ${n}` : "Please fix this error.";
20179
20172
  }),
20180
20173
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20181
20174
  errors: [
20182
- ...mJ,
20183
- ...hJ
20175
+ ...hJ,
20176
+ ...gJ
20184
20177
  ],
20185
20178
  cellId: i
20186
20179
  })
@@ -20341,7 +20334,7 @@ ${n}` : "Please fix this error.";
20341
20334
  size: "xs",
20342
20335
  variant: "link",
20343
20336
  className: "my-2 font-normal mx-0 px-0",
20344
- onClick: vJ,
20337
+ onClick: yJ,
20345
20338
  children: [
20346
20339
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20347
20340
  className: "h-3"
@@ -20540,18 +20533,18 @@ ${n}` : "Please fix this error.";
20540
20533
  cellId: i
20541
20534
  })
20542
20535
  ]
20543
- }, "ancestor-stopped")), gJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20536
+ }, "ancestor-stopped")), _J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20544
20537
  children: [
20545
- gJ.map(_temp35),
20538
+ _J.map(_temp35),
20546
20539
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20547
- errors: gJ,
20540
+ errors: _J,
20548
20541
  cellId: i,
20549
20542
  className: "mt-2.5"
20550
20543
  })
20551
20544
  ]
20552
20545
  }, "sql-errors")), t2;
20553
- }, bJ;
20554
- t[19] === v ? bJ = t[20] : (bJ = v && (0, import_jsx_runtime.jsxs)("div", {
20546
+ }, xJ;
20547
+ t[19] === v ? xJ = t[20] : (xJ = v && (0, import_jsx_runtime.jsxs)("div", {
20555
20548
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20556
20549
  children: [
20557
20550
  v,
@@ -20563,22 +20556,22 @@ ${n}` : "Please fix this error.";
20563
20556
  })
20564
20557
  })
20565
20558
  ]
20566
- }), t[19] = v, t[20] = bJ);
20567
- let xJ;
20568
- t[21] !== _ || t[22] !== d ? (xJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20559
+ }), t[19] = v, t[20] = xJ);
20560
+ let SJ;
20561
+ t[21] !== _ || t[22] !== d ? (SJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20569
20562
  className: `font-code font-medium ${_}`,
20570
20563
  children: d
20571
- }), t[21] = _, t[22] = d, t[23] = xJ) : xJ = t[23];
20572
- let SJ;
20573
- t[24] !== bJ || t[25] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
20564
+ }), t[21] = _, t[22] = d, t[23] = SJ) : SJ = t[23];
20565
+ let CJ;
20566
+ t[24] !== xJ || t[25] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
20574
20567
  className: "space-y-0.5",
20575
20568
  children: [
20576
- bJ,
20577
- xJ
20569
+ xJ,
20570
+ SJ
20578
20571
  ]
20579
- }), t[24] = bJ, t[25] = xJ, t[26] = SJ) : SJ = t[26];
20580
- let CJ = SJ;
20581
- y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = CJ, S = "flex flex-col gap-4", w = yJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20572
+ }), t[24] = xJ, t[25] = SJ, t[26] = CJ) : CJ = t[26];
20573
+ let wJ = CJ;
20574
+ y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = wJ, S = "flex flex-col gap-4", w = bJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20582
20575
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20583
20576
  let M;
20584
20577
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -26654,7 +26647,7 @@ ${n}` : "Please fix this error.";
26654
26647
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
26655
26648
  let E = (0, import_react.useContext)(PanelGroupContext);
26656
26649
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26657
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), pJ = (0, import_react.useRef)({
26650
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), mJ = (0, import_react.useRef)({
26658
26651
  callbacks: {
26659
26652
  onCollapse: f,
26660
26653
  onExpand: h,
@@ -26674,12 +26667,12 @@ ${n}` : "Please fix this error.";
26674
26667
  (0, import_react.useRef)({
26675
26668
  didLogMissingDefaultSizeWarning: false
26676
26669
  }), useIsomorphicLayoutEffect$1(() => {
26677
- let { callbacks: e2, constraints: t2 } = pJ.current, o2 = {
26670
+ let { callbacks: e2, constraints: t2 } = mJ.current, o2 = {
26678
26671
  ...t2
26679
26672
  };
26680
- pJ.current.id = $, pJ.current.idIsFromProps = s !== void 0, pJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(pJ.current, o2);
26673
+ mJ.current.id = $, mJ.current.idIsFromProps = s !== void 0, mJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(mJ.current, o2);
26681
26674
  }), useIsomorphicLayoutEffect$1(() => {
26682
- let e2 = pJ.current;
26675
+ let e2 = mJ.current;
26683
26676
  return q(e2), () => {
26684
26677
  Q(e2);
26685
26678
  };
@@ -26690,25 +26683,25 @@ ${n}` : "Please fix this error.";
26690
26683
  Q
26691
26684
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26692
26685
  collapse: () => {
26693
- O(pJ.current);
26686
+ O(mJ.current);
26694
26687
  },
26695
26688
  expand: (e2) => {
26696
- A(pJ.current, e2);
26689
+ A(mJ.current, e2);
26697
26690
  },
26698
26691
  getId() {
26699
26692
  return $;
26700
26693
  },
26701
26694
  getSize() {
26702
- return M(pJ.current);
26695
+ return M(mJ.current);
26703
26696
  },
26704
26697
  isCollapsed() {
26705
- return U(pJ.current);
26698
+ return U(mJ.current);
26706
26699
  },
26707
26700
  isExpanded() {
26708
- return !U(pJ.current);
26701
+ return !U(mJ.current);
26709
26702
  },
26710
26703
  resize: (e2) => {
26711
- J(pJ.current, e2);
26704
+ J(mJ.current, e2);
26712
26705
  }
26713
26706
  }), [
26714
26707
  O,
@@ -26718,21 +26711,21 @@ ${n}` : "Please fix this error.";
26718
26711
  $,
26719
26712
  J
26720
26713
  ]);
26721
- let mJ = I(pJ.current, a);
26714
+ let hJ = I(mJ.current, a);
26722
26715
  return (0, import_react.createElement)(S, {
26723
26716
  ...w,
26724
26717
  children: e,
26725
26718
  className: t,
26726
26719
  id: $,
26727
26720
  style: {
26728
- ...mJ,
26721
+ ...hJ,
26729
26722
  ...y
26730
26723
  },
26731
26724
  [DATA_ATTRIBUTES.groupId]: z,
26732
26725
  [DATA_ATTRIBUTES.panel]: "",
26733
26726
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26734
26727
  [DATA_ATTRIBUTES.panelId]: $,
26735
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + mJ.flexGrow).toFixed(1)
26728
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + hJ.flexGrow).toFixed(1)
26736
26729
  });
26737
26730
  }
26738
26731
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27517,13 +27510,13 @@ ${n}` : "Please fix this error.";
27517
27510
  }, [
27518
27511
  S,
27519
27512
  E
27520
- ]), pJ = (0, import_react.useCallback)((e2) => {
27513
+ ]), mJ = (0, import_react.useCallback)((e2) => {
27521
27514
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27522
27515
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27523
- }, []), mJ = (0, import_react.useCallback)((e2) => {
27516
+ }, []), hJ = (0, import_react.useCallback)((e2) => {
27524
27517
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27525
27518
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27526
- }, []), hJ = (0, import_react.useCallback)((e2) => {
27519
+ }, []), gJ = (0, import_react.useCallback)((e2) => {
27527
27520
  let { panelDataArray: t2 } = K.current;
27528
27521
  t2.push(e2), t2.sort((e3, t3) => {
27529
27522
  let n2 = e3.order, i2 = t3.order;
@@ -27555,7 +27548,7 @@ ${n}` : "Please fix this error.";
27555
27548
  e2.layout = [];
27556
27549
  };
27557
27550
  }, []);
27558
- let gJ = (0, import_react.useCallback)((e2) => {
27551
+ let _J = (0, import_react.useCallback)((e2) => {
27559
27552
  let t2 = false, n2 = y.current;
27560
27553
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27561
27554
  n3.preventDefault();
@@ -27573,7 +27566,7 @@ ${n}` : "Please fix this error.";
27573
27566
  }), I2 = !compareLayouts(f2, A2);
27574
27567
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
27575
27568
  };
27576
- }, []), _J = (0, import_react.useCallback)((e2, t2) => {
27569
+ }, []), vJ = (0, import_react.useCallback)((e2, t2) => {
27577
27570
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
27578
27571
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27579
27572
  let d2 = adjustLayoutByDelta({
@@ -27585,12 +27578,12 @@ ${n}` : "Please fix this error.";
27585
27578
  trigger: "imperative-api"
27586
27579
  });
27587
27580
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27588
- }, []), vJ = (0, import_react.useCallback)((e2, t2) => {
27581
+ }, []), yJ = (0, import_react.useCallback)((e2, t2) => {
27589
27582
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
27590
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || _J(e2, s2) : h2 < f2 ? _J(e2, f2) : h2 > d2 && _J(e2, d2));
27583
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || vJ(e2, s2) : h2 < f2 ? vJ(e2, f2) : h2 > d2 && vJ(e2, d2));
27591
27584
  }, [
27592
- _J
27593
- ]), yJ = (0, import_react.useCallback)((e2, t2) => {
27585
+ vJ
27586
+ ]), bJ = (0, import_react.useCallback)((e2, t2) => {
27594
27587
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27595
27588
  if (!y.current) return;
27596
27589
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27602,14 +27595,14 @@ ${n}` : "Please fix this error.";
27602
27595
  initialCursorPosition: o2,
27603
27596
  initialLayout: i2
27604
27597
  });
27605
- }, []), bJ = (0, import_react.useCallback)(() => {
27598
+ }, []), xJ = (0, import_react.useCallback)(() => {
27606
27599
  w(null);
27607
- }, []), xJ = (0, import_react.useCallback)((e2) => {
27600
+ }, []), SJ = (0, import_react.useCallback)((e2) => {
27608
27601
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27609
27602
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27610
27603
  }, [
27611
27604
  A
27612
- ]), SJ = (0, import_react.useMemo)(() => ({
27605
+ ]), CJ = (0, import_react.useMemo)(() => ({
27613
27606
  collapsePanel: q,
27614
27607
  direction: i,
27615
27608
  dragState: S,
@@ -27617,15 +27610,15 @@ ${n}` : "Please fix this error.";
27617
27610
  getPanelSize: Q,
27618
27611
  getPanelStyle: $,
27619
27612
  groupId: v,
27620
- isPanelCollapsed: pJ,
27621
- isPanelExpanded: mJ,
27622
- reevaluatePanelConstraints: vJ,
27623
- registerPanel: hJ,
27624
- registerResizeHandle: gJ,
27625
- resizePanel: _J,
27626
- startDragging: yJ,
27627
- stopDragging: bJ,
27628
- unregisterPanel: xJ,
27613
+ isPanelCollapsed: mJ,
27614
+ isPanelExpanded: hJ,
27615
+ reevaluatePanelConstraints: yJ,
27616
+ registerPanel: gJ,
27617
+ registerResizeHandle: _J,
27618
+ resizePanel: vJ,
27619
+ startDragging: bJ,
27620
+ stopDragging: xJ,
27621
+ unregisterPanel: SJ,
27629
27622
  panelGroupElement: y.current
27630
27623
  }), [
27631
27624
  q,
@@ -27635,16 +27628,16 @@ ${n}` : "Please fix this error.";
27635
27628
  Q,
27636
27629
  $,
27637
27630
  v,
27638
- pJ,
27639
27631
  mJ,
27640
- vJ,
27641
27632
  hJ,
27633
+ yJ,
27642
27634
  gJ,
27643
27635
  _J,
27644
- yJ,
27636
+ vJ,
27645
27637
  bJ,
27646
- xJ
27647
- ]), CJ = {
27638
+ xJ,
27639
+ SJ
27640
+ ]), wJ = {
27648
27641
  display: "flex",
27649
27642
  flexDirection: i === "horizontal" ? "row" : "column",
27650
27643
  height: "100%",
@@ -27652,7 +27645,7 @@ ${n}` : "Please fix this error.";
27652
27645
  width: "100%"
27653
27646
  };
27654
27647
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27655
- value: SJ
27648
+ value: CJ
27656
27649
  }, (0, import_react.createElement)(h, {
27657
27650
  ..._,
27658
27651
  children: t,
@@ -27660,7 +27653,7 @@ ${n}` : "Please fix this error.";
27660
27653
  id: o,
27661
27654
  ref: y,
27662
27655
  style: {
27663
- ...CJ,
27656
+ ...wJ,
27664
27657
  ...f
27665
27658
  },
27666
27659
  [DATA_ATTRIBUTES.group]: "",
@@ -27737,31 +27730,31 @@ ${n}` : "Please fix this error.";
27737
27730
  });
27738
27731
  let O = (0, import_react.useContext)(PanelGroupContext);
27739
27732
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27740
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, pJ] = (0, import_react.useState)(false), [mJ, hJ] = (0, import_react.useState)(null), gJ = (0, import_react.useRef)({
27733
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, mJ] = (0, import_react.useState)(false), [hJ, gJ] = (0, import_react.useState)(null), _J = (0, import_react.useRef)({
27741
27734
  state: J
27742
27735
  });
27743
27736
  useIsomorphicLayoutEffect$1(() => {
27744
- gJ.current.state = J;
27737
+ _J.current.state = J;
27745
27738
  }), (0, import_react.useEffect)(() => {
27746
- if (n) hJ(null);
27739
+ if (n) gJ(null);
27747
27740
  else {
27748
27741
  let e2 = I(q);
27749
- hJ(() => e2);
27742
+ gJ(() => e2);
27750
27743
  }
27751
27744
  }, [
27752
27745
  n,
27753
27746
  q,
27754
27747
  I
27755
27748
  ]);
27756
- let _J = (i == null ? void 0 : i.coarse) ?? 15, vJ = (i == null ? void 0 : i.fine) ?? 5;
27749
+ let vJ = (i == null ? void 0 : i.coarse) ?? 15, yJ = (i == null ? void 0 : i.fine) ?? 5;
27757
27750
  (0, import_react.useEffect)(() => {
27758
- if (n || mJ == null) return;
27751
+ if (n || hJ == null) return;
27759
27752
  let e2 = w.current;
27760
27753
  assert(e2, "Element ref not attached");
27761
27754
  let t2 = false;
27762
27755
  return registerResizeHandle(q, e2, A, {
27763
- coarse: _J,
27764
- fine: vJ
27756
+ coarse: vJ,
27757
+ fine: yJ
27765
27758
  }, (e3, n2, i2) => {
27766
27759
  if (!n2) {
27767
27760
  Q("inactive");
@@ -27775,8 +27768,8 @@ ${n}` : "Please fix this error.";
27775
27768
  break;
27776
27769
  }
27777
27770
  case "move": {
27778
- let { state: e4 } = gJ.current;
27779
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), mJ(i2);
27771
+ let { state: e4 } = _J.current;
27772
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), hJ(i2);
27780
27773
  break;
27781
27774
  }
27782
27775
  case "up": {
@@ -27788,22 +27781,22 @@ ${n}` : "Please fix this error.";
27788
27781
  }
27789
27782
  });
27790
27783
  }, [
27791
- _J,
27784
+ vJ,
27792
27785
  A,
27793
27786
  n,
27794
- vJ,
27787
+ yJ,
27795
27788
  I,
27796
27789
  q,
27797
- mJ,
27790
+ hJ,
27798
27791
  z,
27799
27792
  U
27800
27793
  ]), useWindowSplitterResizeHandlerBehavior({
27801
27794
  disabled: n,
27802
27795
  handleId: q,
27803
- resizeHandler: mJ,
27796
+ resizeHandler: hJ,
27804
27797
  panelGroupElement: K
27805
27798
  });
27806
- let yJ = {
27799
+ let bJ = {
27807
27800
  touchAction: "none",
27808
27801
  userSelect: "none"
27809
27802
  };
@@ -27813,15 +27806,15 @@ ${n}` : "Please fix this error.";
27813
27806
  className: t,
27814
27807
  id: a,
27815
27808
  onBlur: () => {
27816
- pJ(false), o == null ? void 0 : o();
27809
+ mJ(false), o == null ? void 0 : o();
27817
27810
  },
27818
27811
  onFocus: () => {
27819
- pJ(true), d == null ? void 0 : d();
27812
+ mJ(true), d == null ? void 0 : d();
27820
27813
  },
27821
27814
  ref: w,
27822
27815
  role: "separator",
27823
27816
  style: {
27824
- ...yJ,
27817
+ ...bJ,
27825
27818
  ..._
27826
27819
  },
27827
27820
  tabIndex: v,
@@ -28120,7 +28113,7 @@ ${n}` : "Please fix this error.";
28120
28113
  }, [
28121
28114
  h
28122
28115
  ]), k(() => {
28123
- U(6, mJ);
28116
+ U(6, hJ);
28124
28117
  }, []);
28125
28118
  let K = import_react.useMemo(() => ({
28126
28119
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -28129,7 +28122,7 @@ ${n}` : "Please fix this error.";
28129
28122
  var _a2;
28130
28123
  var a2, o2, s2;
28131
28124
  if (!Object.is(n.current[e2], t2)) {
28132
- if (n.current[e2] = t2, e2 === "search") pJ(), Q(), U(1, $);
28125
+ if (n.current[e2] = t2, e2 === "search") mJ(), Q(), U(1, $);
28133
28126
  else if (e2 === "value") {
28134
28127
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
28135
28128
  let e3 = document.getElementById(I);
@@ -28137,8 +28130,8 @@ ${n}` : "Please fix this error.";
28137
28130
  }
28138
28131
  if (U(7, () => {
28139
28132
  var _a3;
28140
- n.current.selectedItemId = (_a3 = hJ()) == null ? void 0 : _a3.id, K.emit();
28141
- }), i2 || U(5, mJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28133
+ n.current.selectedItemId = (_a3 = gJ()) == null ? void 0 : _a3.id, K.emit();
28134
+ }), i2 || U(5, hJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28142
28135
  let e3 = t2 ?? "";
28143
28136
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
28144
28137
  return;
@@ -28163,12 +28156,12 @@ ${n}` : "Please fix this error.";
28163
28156
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
28164
28157
  e2
28165
28158
  ]))), U(3, () => {
28166
- pJ(), Q(), n.current.value || $(), K.emit();
28159
+ mJ(), Q(), n.current.value || $(), K.emit();
28167
28160
  }), () => {
28168
28161
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
28169
- let t3 = hJ();
28162
+ let t3 = gJ();
28170
28163
  U(4, () => {
28171
- pJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28164
+ mJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28172
28165
  });
28173
28166
  }),
28174
28167
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -28201,7 +28194,7 @@ ${n}` : "Please fix this error.";
28201
28194
  ]);
28202
28195
  });
28203
28196
  let i2 = z.current;
28204
- gJ().sort((t3, n2) => {
28197
+ _J().sort((t3, n2) => {
28205
28198
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
28206
28199
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
28207
28200
  }).forEach((e3) => {
@@ -28215,10 +28208,10 @@ ${n}` : "Please fix this error.";
28215
28208
  }
28216
28209
  function $() {
28217
28210
  var _a2;
28218
- let e2 = (_a2 = gJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28211
+ let e2 = (_a2 = _J().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28219
28212
  K.setState("value", e2 || void 0);
28220
28213
  }
28221
- function pJ() {
28214
+ function mJ() {
28222
28215
  var _a2, _b;
28223
28216
  if (!n.current.search || c.current.shouldFilter === false) {
28224
28217
  n.current.filtered.count = i.current.size;
@@ -28236,43 +28229,43 @@ ${n}` : "Please fix this error.";
28236
28229
  }
28237
28230
  n.current.filtered.count = e2;
28238
28231
  }
28239
- function mJ() {
28232
+ function hJ() {
28240
28233
  var _a2, _b;
28241
28234
  var e2;
28242
- let t2 = hJ();
28235
+ let t2 = gJ();
28243
28236
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
28244
28237
  block: "nearest"
28245
28238
  })), t2.scrollIntoView({
28246
28239
  block: "nearest"
28247
28240
  }));
28248
28241
  }
28249
- function hJ() {
28242
+ function gJ() {
28250
28243
  var _a2;
28251
28244
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28252
28245
  }
28253
- function gJ() {
28246
+ function _J() {
28254
28247
  var _a2;
28255
28248
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28256
28249
  }
28257
- function _J(e2) {
28258
- let t2 = gJ()[e2];
28250
+ function vJ(e2) {
28251
+ let t2 = _J()[e2];
28259
28252
  t2 && K.setState("value", t2.getAttribute(T));
28260
28253
  }
28261
- function vJ(e2) {
28254
+ function yJ(e2) {
28262
28255
  var t2;
28263
- let n2 = hJ(), i2 = gJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28256
+ let n2 = gJ(), i2 = _J(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28264
28257
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
28265
28258
  }
28266
- function yJ(e2) {
28259
+ function bJ(e2) {
28267
28260
  var _a2;
28268
- let t2 = (_a2 = hJ()) == null ? void 0 : _a2.closest(N$1), n2;
28261
+ let t2 = (_a2 = gJ()) == null ? void 0 : _a2.closest(N$1), n2;
28269
28262
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28270
- n2 ? K.setState("value", n2.getAttribute(T)) : vJ(e2);
28263
+ n2 ? K.setState("value", n2.getAttribute(T)) : yJ(e2);
28271
28264
  }
28272
- let bJ = () => _J(gJ().length - 1), xJ = (e2) => {
28273
- e2.preventDefault(), e2.metaKey ? bJ() : e2.altKey ? yJ(1) : vJ(1);
28274
- }, SJ = (e2) => {
28275
- e2.preventDefault(), e2.metaKey ? _J(0) : e2.altKey ? yJ(-1) : vJ(-1);
28265
+ let xJ = () => vJ(_J().length - 1), SJ = (e2) => {
28266
+ e2.preventDefault(), e2.metaKey ? xJ() : e2.altKey ? bJ(1) : yJ(1);
28267
+ }, CJ = (e2) => {
28268
+ e2.preventDefault(), e2.metaKey ? vJ(0) : e2.altKey ? bJ(-1) : yJ(-1);
28276
28269
  };
28277
28270
  return import_react.createElement(Primitive.div, {
28278
28271
  ref: t,
@@ -28286,27 +28279,27 @@ ${n}` : "Please fix this error.";
28286
28279
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28287
28280
  case "n":
28288
28281
  case "j":
28289
- E && e2.ctrlKey && xJ(e2);
28282
+ E && e2.ctrlKey && SJ(e2);
28290
28283
  break;
28291
28284
  case "ArrowDown":
28292
- xJ(e2);
28285
+ SJ(e2);
28293
28286
  break;
28294
28287
  case "p":
28295
28288
  case "k":
28296
- E && e2.ctrlKey && SJ(e2);
28289
+ E && e2.ctrlKey && CJ(e2);
28297
28290
  break;
28298
28291
  case "ArrowUp":
28299
- SJ(e2);
28292
+ CJ(e2);
28300
28293
  break;
28301
28294
  case "Home":
28302
- e2.preventDefault(), _J(0);
28295
+ e2.preventDefault(), vJ(0);
28303
28296
  break;
28304
28297
  case "End":
28305
- e2.preventDefault(), bJ();
28298
+ e2.preventDefault(), xJ();
28306
28299
  break;
28307
28300
  case "Enter": {
28308
28301
  e2.preventDefault();
28309
- let t3 = hJ();
28302
+ let t3 = gJ();
28310
28303
  if (t3) {
28311
28304
  let e3 = new Event(Z);
28312
28305
  t3.dispatchEvent(e3);
@@ -28715,153 +28708,153 @@ ${n}` : "Please fix this error.";
28715
28708
  Combobox = (e) => {
28716
28709
  let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28717
28710
  t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28718
- let $ = I === void 0 ? false : I, pJ = z === void 0 ? true : z, mJ = U === void 0 ? "Search..." : U, hJ = K === void 0 ? "Nothing found." : K, gJ = q === void 0 ? false : q, _J = J === void 0 ? false : J, vJ = s ?? false, yJ;
28719
- t[25] !== v || t[26] !== w || t[27] !== vJ ? (yJ = {
28711
+ let $ = I === void 0 ? false : I, mJ = z === void 0 ? true : z, hJ = U === void 0 ? "Search..." : U, gJ = K === void 0 ? "Nothing found." : K, _J = q === void 0 ? false : q, vJ = J === void 0 ? false : J, yJ = s ?? false, bJ;
28712
+ t[25] !== v || t[26] !== w || t[27] !== yJ ? (bJ = {
28720
28713
  prop: w,
28721
- defaultProp: vJ,
28714
+ defaultProp: yJ,
28722
28715
  onChange: v
28723
- }, t[25] = v, t[26] = w, t[27] = vJ, t[28] = yJ) : yJ = t[28];
28724
- let [bJ, xJ] = useControllableState(yJ), SJ = bJ === void 0 ? false : bJ, CJ;
28725
- t[29] === S ? CJ = t[30] : (CJ = (e2) => {
28716
+ }, t[25] = v, t[26] = w, t[27] = yJ, t[28] = bJ) : bJ = t[28];
28717
+ let [xJ, SJ] = useControllableState(bJ), CJ = xJ === void 0 ? false : xJ, wJ;
28718
+ t[29] === S ? wJ = t[30] : (wJ = (e2) => {
28726
28719
  S == null ? void 0 : S(e2);
28727
- }, t[29] = S, t[30] = CJ);
28728
- let wJ;
28729
- t[31] !== c || t[32] !== CJ || t[33] !== Q ? (wJ = {
28720
+ }, t[29] = S, t[30] = wJ);
28721
+ let TJ;
28722
+ t[31] !== c || t[32] !== wJ || t[33] !== Q ? (TJ = {
28730
28723
  prop: Q,
28731
28724
  defaultProp: c,
28732
- onChange: CJ
28733
- }, t[31] = c, t[32] = CJ, t[33] = Q, t[34] = wJ) : wJ = t[34];
28734
- let [TJ, EJ] = useControllableState(wJ), DJ;
28735
- t[35] === TJ ? DJ = t[36] : (DJ = (e2) => Array.isArray(TJ) ? TJ.includes(e2) : TJ === e2, t[35] = TJ, t[36] = DJ);
28736
- let OJ = DJ, kJ;
28737
- t[37] !== _ || t[38] !== $ || t[39] !== xJ || t[40] !== EJ || t[41] !== TJ ? (kJ = (e2) => {
28725
+ onChange: wJ
28726
+ }, t[31] = c, t[32] = wJ, t[33] = Q, t[34] = TJ) : TJ = t[34];
28727
+ let [EJ, DJ] = useControllableState(TJ), OJ;
28728
+ t[35] === EJ ? OJ = t[36] : (OJ = (e2) => Array.isArray(EJ) ? EJ.includes(e2) : EJ === e2, t[35] = EJ, t[36] = OJ);
28729
+ let kJ = OJ, AJ;
28730
+ t[37] !== _ || t[38] !== $ || t[39] !== SJ || t[40] !== DJ || t[41] !== EJ ? (AJ = (e2) => {
28738
28731
  let t2 = e2;
28739
- if ($) if (Array.isArray(TJ)) if (TJ.includes(t2)) {
28740
- let n2 = TJ.filter((t3) => t3 !== e2);
28732
+ if ($) if (Array.isArray(EJ)) if (EJ.includes(t2)) {
28733
+ let n2 = EJ.filter((t3) => t3 !== e2);
28741
28734
  t2 = n2.length > 0 ? n2 : [];
28742
28735
  } else t2 = [
28743
- ...TJ,
28736
+ ...EJ,
28744
28737
  t2
28745
28738
  ];
28746
28739
  else t2 = [
28747
28740
  t2
28748
28741
  ];
28749
- else TJ === e2 && (t2 = null);
28750
- EJ(t2), (_ ?? $) || xJ(false);
28751
- }, t[37] = _, t[38] = $, t[39] = xJ, t[40] = EJ, t[41] = TJ, t[42] = kJ) : kJ = t[42];
28752
- let AJ = kJ, jJ;
28753
- t[43] !== gJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== TJ ? (jJ = () => $ && gJ && E ? E : TJ == null ? E ?? "--" : Array.isArray(TJ) ? TJ.length === 0 ? E ?? "--" : TJ.length === 1 && d !== void 0 ? d(TJ[0]) : `${TJ.length} selected` : d === void 0 ? E ?? "--" : d(TJ), t[43] = gJ, t[44] = d, t[45] = $, t[46] = E, t[47] = TJ, t[48] = jJ) : jJ = t[48];
28754
- let MJ = jJ, NJ;
28755
- t[49] !== AJ || t[50] !== OJ ? (NJ = {
28756
- isSelected: OJ,
28757
- onSelect: AJ
28758
- }, t[49] = AJ, t[50] = OJ, t[51] = NJ) : NJ = t[51];
28759
- let PJ = NJ, FJ;
28760
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FJ = cn("relative"), t[52] = FJ) : FJ = t[52];
28761
- let IJ;
28762
- t[53] !== _J || t[54] !== xJ ? (IJ = (e2) => {
28763
- _J && e2 || xJ(e2);
28764
- }, t[53] = _J, t[54] = xJ, t[55] = IJ) : IJ = t[55];
28765
- let LJ = _J && "cursor-not-allowed opacity-50", RJ;
28766
- t[56] !== a || t[57] !== LJ ? (RJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", LJ, a), t[56] = a, t[57] = LJ, t[58] = RJ) : RJ = t[58];
28767
- let zJ;
28768
- t[59] !== O || t[60] !== MJ || t[61] !== TJ ? (zJ = O ? O(TJ ?? null) : MJ(), t[59] = O, t[60] = MJ, t[61] = TJ, t[62] = zJ) : zJ = t[62];
28742
+ else EJ === e2 && (t2 = null);
28743
+ DJ(t2), (_ ?? $) || SJ(false);
28744
+ }, t[37] = _, t[38] = $, t[39] = SJ, t[40] = DJ, t[41] = EJ, t[42] = AJ) : AJ = t[42];
28745
+ let jJ = AJ, MJ;
28746
+ t[43] !== _J || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== EJ ? (MJ = () => $ && _J && E ? E : EJ == null ? E ?? "--" : Array.isArray(EJ) ? EJ.length === 0 ? E ?? "--" : EJ.length === 1 && d !== void 0 ? d(EJ[0]) : `${EJ.length} selected` : d === void 0 ? E ?? "--" : d(EJ), t[43] = _J, t[44] = d, t[45] = $, t[46] = E, t[47] = EJ, t[48] = MJ) : MJ = t[48];
28747
+ let NJ = MJ, PJ;
28748
+ t[49] !== jJ || t[50] !== kJ ? (PJ = {
28749
+ isSelected: kJ,
28750
+ onSelect: jJ
28751
+ }, t[49] = jJ, t[50] = kJ, t[51] = PJ) : PJ = t[51];
28752
+ let FJ = PJ, IJ;
28753
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (IJ = cn("relative"), t[52] = IJ) : IJ = t[52];
28754
+ let LJ;
28755
+ t[53] !== vJ || t[54] !== SJ ? (LJ = (e2) => {
28756
+ vJ && e2 || SJ(e2);
28757
+ }, t[53] = vJ, t[54] = SJ, t[55] = LJ) : LJ = t[55];
28758
+ let RJ = vJ && "cursor-not-allowed opacity-50", zJ;
28759
+ t[56] !== a || t[57] !== RJ ? (zJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", RJ, a), t[56] = a, t[57] = RJ, t[58] = zJ) : zJ = t[58];
28769
28760
  let BJ;
28770
- t[63] === zJ ? BJ = t[64] : (BJ = (0, import_jsx_runtime.jsx)("span", {
28771
- className: "truncate flex-1 min-w-0",
28772
- children: zJ
28773
- }), t[63] = zJ, t[64] = BJ);
28761
+ t[59] !== O || t[60] !== NJ || t[61] !== EJ ? (BJ = O ? O(EJ ?? null) : NJ(), t[59] = O, t[60] = NJ, t[61] = EJ, t[62] = BJ) : BJ = t[62];
28774
28762
  let VJ;
28775
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (VJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28763
+ t[63] === BJ ? VJ = t[64] : (VJ = (0, import_jsx_runtime.jsx)("span", {
28764
+ className: "truncate flex-1 min-w-0",
28765
+ children: BJ
28766
+ }), t[63] = BJ, t[64] = VJ);
28767
+ let HJ;
28768
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (HJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28776
28769
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28777
- }), t[65] = VJ) : VJ = t[65];
28778
- let UJ;
28779
- t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== RJ || t[70] !== BJ ? (UJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28770
+ }), t[65] = HJ) : HJ = t[65];
28771
+ let WJ;
28772
+ t[66] !== vJ || t[67] !== h || t[68] !== CJ || t[69] !== zJ || t[70] !== VJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28780
28773
  asChild: true,
28781
28774
  children: (0, import_jsx_runtime.jsxs)("button", {
28782
28775
  id: h,
28783
28776
  type: "button",
28784
- className: RJ,
28785
- "aria-expanded": SJ,
28786
- "aria-disabled": _J,
28777
+ className: zJ,
28778
+ "aria-expanded": CJ,
28779
+ "aria-disabled": vJ,
28787
28780
  children: [
28788
- BJ,
28789
- VJ
28781
+ VJ,
28782
+ HJ
28790
28783
  ]
28791
28784
  })
28792
- }), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = RJ, t[70] = BJ, t[71] = UJ) : UJ = t[71];
28793
- let WJ;
28794
- t[72] !== mJ || t[73] !== y || t[74] !== M ? (WJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28795
- placeholder: mJ,
28785
+ }), t[66] = vJ, t[67] = h, t[68] = CJ, t[69] = zJ, t[70] = VJ, t[71] = WJ) : WJ = t[71];
28786
+ let GJ;
28787
+ t[72] !== hJ || t[73] !== y || t[74] !== M ? (GJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28788
+ placeholder: hJ,
28796
28789
  rootClassName: "px-1 h-8",
28797
28790
  autoFocus: true,
28798
28791
  value: M,
28799
28792
  onValueChange: y
28800
- }), t[72] = mJ, t[73] = y, t[74] = M, t[75] = WJ) : WJ = t[75];
28801
- let KJ;
28802
- t[76] === hJ ? KJ = t[77] : (KJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28803
- children: hJ
28804
- }), t[76] = hJ, t[77] = KJ);
28793
+ }), t[72] = hJ, t[73] = y, t[74] = M, t[75] = GJ) : GJ = t[75];
28805
28794
  let qJ;
28806
- t[78] !== n || t[79] !== PJ ? (qJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28807
- value: PJ,
28808
- children: n
28809
- }), t[78] = n, t[79] = PJ, t[80] = qJ) : qJ = t[80];
28795
+ t[76] === gJ ? qJ = t[77] : (qJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28796
+ children: gJ
28797
+ }), t[76] = gJ, t[77] = qJ);
28810
28798
  let JJ;
28811
- t[81] !== KJ || t[82] !== qJ ? (JJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28799
+ t[78] !== n || t[79] !== FJ ? (JJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28800
+ value: FJ,
28801
+ children: n
28802
+ }), t[78] = n, t[79] = FJ, t[80] = JJ) : JJ = t[80];
28803
+ let YJ;
28804
+ t[81] !== qJ || t[82] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28812
28805
  className: "max-h-60 py-.5",
28813
28806
  children: [
28814
- KJ,
28815
- qJ
28807
+ qJ,
28808
+ JJ
28816
28809
  ]
28817
- }), t[81] = KJ, t[82] = qJ, t[83] = JJ) : JJ = t[83];
28818
- let YJ;
28819
- t[84] !== f || t[85] !== pJ || t[86] !== WJ || t[87] !== JJ ? (YJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28810
+ }), t[81] = qJ, t[82] = JJ, t[83] = YJ) : YJ = t[83];
28811
+ let XJ;
28812
+ t[84] !== f || t[85] !== mJ || t[86] !== GJ || t[87] !== YJ ? (XJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28820
28813
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28821
28814
  align: "start",
28822
28815
  children: (0, import_jsx_runtime.jsxs)(Command, {
28823
28816
  filter: f,
28824
- shouldFilter: pJ,
28817
+ shouldFilter: mJ,
28825
28818
  children: [
28826
- WJ,
28827
- JJ
28819
+ GJ,
28820
+ YJ
28828
28821
  ]
28829
28822
  })
28830
- }), t[84] = f, t[85] = pJ, t[86] = WJ, t[87] = JJ, t[88] = YJ) : YJ = t[88];
28831
- let XJ;
28832
- t[89] !== SJ || t[90] !== IJ || t[91] !== UJ || t[92] !== YJ ? (XJ = (0, import_jsx_runtime.jsxs)(Popover, {
28833
- open: SJ,
28834
- onOpenChange: IJ,
28823
+ }), t[84] = f, t[85] = mJ, t[86] = GJ, t[87] = YJ, t[88] = XJ) : XJ = t[88];
28824
+ let ZJ;
28825
+ t[89] !== CJ || t[90] !== LJ || t[91] !== WJ || t[92] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)(Popover, {
28826
+ open: CJ,
28827
+ onOpenChange: LJ,
28835
28828
  children: [
28836
- UJ,
28837
- YJ
28829
+ WJ,
28830
+ XJ
28838
28831
  ]
28839
- }), t[89] = SJ, t[90] = IJ, t[91] = UJ, t[92] = YJ, t[93] = XJ) : XJ = t[93];
28840
- let ZJ;
28841
- t[94] !== gJ || t[95] !== i || t[96] !== _J || t[97] !== d || t[98] !== AJ || t[99] !== $ || t[100] !== TJ ? (ZJ = $ && gJ && (0, import_jsx_runtime.jsx)("div", {
28832
+ }), t[89] = CJ, t[90] = LJ, t[91] = WJ, t[92] = XJ, t[93] = ZJ) : ZJ = t[93];
28833
+ let QJ;
28834
+ t[94] !== _J || t[95] !== i || t[96] !== vJ || t[97] !== d || t[98] !== jJ || t[99] !== $ || t[100] !== EJ ? (QJ = $ && _J && (0, import_jsx_runtime.jsx)("div", {
28842
28835
  className: cn("flex flex-col gap-1 items-start", i),
28843
- children: Array.isArray(TJ) && TJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28836
+ children: Array.isArray(EJ) && EJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28844
28837
  variant: "secondary",
28845
28838
  children: [
28846
28839
  (d == null ? void 0 : d(e2)) ?? String(e2),
28847
28840
  (0, import_jsx_runtime.jsx)(CircleX, {
28848
28841
  onClick: () => {
28849
- _J || AJ(e2);
28842
+ vJ || jJ(e2);
28850
28843
  },
28851
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", _J && "pointer-events-none")
28844
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", vJ && "pointer-events-none")
28852
28845
  })
28853
28846
  ]
28854
28847
  }, String(e2)))
28855
- }), t[94] = gJ, t[95] = i, t[96] = _J, t[97] = d, t[98] = AJ, t[99] = $, t[100] = TJ, t[101] = ZJ) : ZJ = t[101];
28856
- let QJ;
28857
- return t[102] !== A || t[103] !== XJ || t[104] !== ZJ ? (QJ = (0, import_jsx_runtime.jsxs)("div", {
28858
- className: FJ,
28848
+ }), t[94] = _J, t[95] = i, t[96] = vJ, t[97] = d, t[98] = jJ, t[99] = $, t[100] = EJ, t[101] = QJ) : QJ = t[101];
28849
+ let $J;
28850
+ return t[102] !== A || t[103] !== ZJ || t[104] !== QJ ? ($J = (0, import_jsx_runtime.jsxs)("div", {
28851
+ className: IJ,
28859
28852
  ...A,
28860
28853
  children: [
28861
- XJ,
28862
- ZJ
28854
+ ZJ,
28855
+ QJ
28863
28856
  ]
28864
- }), t[102] = A, t[103] = XJ, t[104] = ZJ, t[105] = QJ) : QJ = t[105], QJ;
28857
+ }), t[102] = A, t[103] = ZJ, t[104] = QJ, t[105] = $J) : $J = t[105], $J;
28865
28858
  };
28866
28859
  ComboboxItem = import_react.forwardRef((e, t) => {
28867
28860
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29917,17 +29910,17 @@ ${n}` : "Please fix this error.";
29917
29910
  searchQuery: M,
29918
29911
  filteredOptions: z
29919
29912
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29920
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), pJ;
29921
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (pJ = {
29913
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), mJ;
29914
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (mJ = {
29922
29915
  value: i,
29923
29916
  onChange: a,
29924
29917
  multiple: o,
29925
29918
  maxSelections: s,
29926
29919
  allowSelectNone: c,
29927
29920
  selected: y
29928
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = pJ) : pJ = t[21];
29929
- let { isChecked: mJ, toggle: hJ } = useToggle(pJ), gJ;
29930
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (gJ = {
29921
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = mJ) : mJ = t[21];
29922
+ let { isChecked: hJ, toggle: gJ } = useToggle(mJ), _J;
29923
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (_J = {
29931
29924
  value: i,
29932
29925
  onChange: a,
29933
29926
  multiple: o,
@@ -29935,24 +29928,24 @@ ${n}` : "Please fix this error.";
29935
29928
  filteredOptions: z,
29936
29929
  searchQuery: M,
29937
29930
  maxSelections: s
29938
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = gJ) : gJ = t[29];
29939
- let { bulkActions: _J } = useBulk(gJ), vJ;
29940
- t[30] !== J || t[31] !== I ? (vJ = (e2) => {
29931
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = _J) : _J = t[29];
29932
+ let { bulkActions: vJ } = useBulk(_J), yJ;
29933
+ t[30] !== J || t[31] !== I ? (yJ = (e2) => {
29941
29934
  I(e2), e2 === "" && J();
29942
- }, t[30] = J, t[31] = I, t[32] = vJ) : vJ = t[32];
29943
- let yJ = vJ, bJ;
29944
- return t[33] !== _J || t[34] !== mJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== yJ || t[41] !== hJ || t[42] !== Q ? (bJ = {
29935
+ }, t[30] = J, t[31] = I, t[32] = yJ) : yJ = t[32];
29936
+ let bJ = yJ, xJ;
29937
+ return t[33] !== vJ || t[34] !== hJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== bJ || t[41] !== gJ || t[42] !== Q ? (xJ = {
29945
29938
  searchQuery: M,
29946
- setSearchQuery: yJ,
29939
+ setSearchQuery: bJ,
29947
29940
  open: K,
29948
29941
  setOpen: q,
29949
29942
  visibleOptions: Q,
29950
29943
  pinnedCount: $,
29951
- isChecked: mJ,
29952
- toggle: hJ,
29953
- bulkActions: _J,
29944
+ isChecked: hJ,
29945
+ toggle: gJ,
29946
+ bulkActions: vJ,
29954
29947
  labelOf: O
29955
- }, t[33] = _J, t[34] = mJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = yJ, t[41] = hJ, t[42] = Q, t[43] = bJ) : bJ = t[43], bJ;
29948
+ }, t[33] = vJ, t[34] = hJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = bJ, t[41] = gJ, t[42] = Q, t[43] = xJ) : xJ = t[43], xJ;
29956
29949
  };
29957
29950
  const Sets = {
29958
29951
  merge(...e) {
@@ -30281,7 +30274,7 @@ ${n}` : "Please fix this error.";
30281
30274
  type: S,
30282
30275
  operator: E,
30283
30276
  draft: mergeNumberTextDraft(A, I)
30284
- }), $ = Q === void 0, pJ = $ ? getMissingValueMessage(S, E) : "Apply filter", mJ = () => {
30277
+ }), $ = Q === void 0, mJ = $ ? getMissingValueMessage(S, E) : "Apply filter", hJ = () => {
30285
30278
  if (!Q) return;
30286
30279
  let e2 = Q;
30287
30280
  t.setColumnFilters((t2) => {
@@ -30300,20 +30293,20 @@ ${n}` : "Please fix this error.";
30300
30293
  value: e2
30301
30294
  }, n2;
30302
30295
  }), i();
30303
- }, hJ = () => {
30296
+ }, gJ = () => {
30304
30297
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30305
- }, gJ = !OPERATORS_WITHOUT_VALUE.has(E), _J = OPERATORS_BY_TYPE[S], vJ = (0, import_react.useRef)(null), yJ = (0, import_react.useRef)(null);
30298
+ }, _J = !OPERATORS_WITHOUT_VALUE.has(E), vJ = OPERATORS_BY_TYPE[S], yJ = (0, import_react.useRef)(null), bJ = (0, import_react.useRef)(null);
30306
30299
  return (0, import_react.useEffect)(() => {
30307
30300
  var _a2, _b;
30308
- let e2 = (_a2 = vJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30309
- e2 ? e2.focus() : (_b = yJ.current) == null ? void 0 : _b.focus();
30301
+ let e2 = (_a2 = yJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30302
+ e2 ? e2.focus() : (_b = bJ.current) == null ? void 0 : _b.focus();
30310
30303
  }, [
30311
30304
  S,
30312
30305
  E
30313
30306
  ]), (0, import_jsx_runtime.jsxs)("form", {
30314
30307
  className: "flex flex-row gap-4 items-end p-3",
30315
30308
  onSubmit: (e2) => {
30316
- e2.preventDefault(), mJ();
30309
+ e2.preventDefault(), hJ();
30317
30310
  },
30318
30311
  onKeyDownCapture: (e2) => {
30319
30312
  e2.key === "Tab" && e2.stopPropagation();
@@ -30354,13 +30347,13 @@ ${n}` : "Please fix this error.";
30354
30347
  onValueChange: (e2) => J(e2),
30355
30348
  children: [
30356
30349
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30357
- ref: yJ,
30350
+ ref: bJ,
30358
30351
  id: s,
30359
30352
  className: "h-6 mb-1 bg-transparent",
30360
30353
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30361
30354
  }),
30362
30355
  (0, import_jsx_runtime.jsx)(SelectContent, {
30363
- children: _J.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30356
+ children: vJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30364
30357
  value: e2,
30365
30358
  children: OPERATOR_LABELS[e2]
30366
30359
  }, e2))
@@ -30369,8 +30362,8 @@ ${n}` : "Please fix this error.";
30369
30362
  }, S)
30370
30363
  ]
30371
30364
  }),
30372
- gJ && (0, import_jsx_runtime.jsxs)("div", {
30373
- ref: vJ,
30365
+ _J && (0, import_jsx_runtime.jsxs)("div", {
30366
+ ref: yJ,
30374
30367
  className: "flex flex-col gap-1",
30375
30368
  children: [
30376
30369
  (0, import_jsx_runtime.jsx)("label", {
@@ -30397,7 +30390,7 @@ ${n}` : "Please fix this error.";
30397
30390
  className: "flex gap-1 mb-1",
30398
30391
  children: [
30399
30392
  (0, import_jsx_runtime.jsx)(Tooltip, {
30400
- content: pJ,
30393
+ content: mJ,
30401
30394
  children: (0, import_jsx_runtime.jsx)("span", {
30402
30395
  className: "inline-flex",
30403
30396
  children: (0, import_jsx_runtime.jsx)(Button, {
@@ -30436,7 +30429,7 @@ ${n}` : "Please fix this error.";
30436
30429
  size: "icon",
30437
30430
  variant: "ghost",
30438
30431
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30439
- onClick: hJ,
30432
+ onClick: gJ,
30440
30433
  "aria-label": "Remove filter",
30441
30434
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30442
30435
  className: "h-3.5 w-3.5",
@@ -32644,29 +32637,29 @@ ${n}` : "Please fix this error.";
32644
32637
  }, t[16] = a, t[17] = J);
32645
32638
  let Q = useEvent_default(J), $;
32646
32639
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32647
- let pJ = useEvent_default($), mJ, hJ;
32648
- t[20] === S ? (mJ = t[21], hJ = t[22]) : (mJ = () => (window.addEventListener("scroll", S, {
32640
+ let mJ = useEvent_default($), hJ, gJ;
32641
+ t[20] === S ? (hJ = t[21], gJ = t[22]) : (hJ = () => (window.addEventListener("scroll", S, {
32649
32642
  passive: true,
32650
32643
  capture: true
32651
32644
  }), window.addEventListener("resize", S), () => {
32652
32645
  window.removeEventListener("scroll", S, {
32653
32646
  capture: true
32654
32647
  }), window.removeEventListener("resize", S);
32655
- }), hJ = [
32648
+ }), gJ = [
32656
32649
  S
32657
- ], t[20] = S, t[21] = mJ, t[22] = hJ), (0, import_react.useEffect)(mJ, hJ);
32658
- let gJ, _J;
32659
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = () => v, _J = [], t[23] = gJ, t[24] = _J) : (gJ = t[23], _J = t[24]), (0, import_react.useEffect)(gJ, _J);
32660
- let vJ;
32661
- return t[25] !== pJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (vJ = {
32650
+ ], t[20] = S, t[21] = hJ, t[22] = gJ), (0, import_react.useEffect)(hJ, gJ);
32651
+ let _J, vJ;
32652
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = () => v, vJ = [], t[23] = _J, t[24] = vJ) : (_J = t[23], vJ = t[24]), (0, import_react.useEffect)(_J, vJ);
32653
+ let yJ;
32654
+ return t[25] !== mJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (yJ = {
32662
32655
  tooltipState: o,
32663
32656
  tooltipContentId: d,
32664
32657
  hideTooltip: S,
32665
32658
  handleCellMouseOver: U,
32666
32659
  handleCellMouseLeave: q,
32667
32660
  handleCellFocus: Q,
32668
- handleCellBlur: pJ
32669
- }, t[25] = pJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = vJ) : vJ = t[32], vJ;
32661
+ handleCellBlur: mJ
32662
+ }, t[25] = mJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = yJ) : yJ = t[32], yJ;
32670
32663
  }
32671
32664
  var import_compiler_runtime$18 = require_compiler_runtime();
32672
32665
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -34111,7 +34104,7 @@ ${n}` : "Please fix this error.";
34111
34104
  filename: i2.filename
34112
34105
  };
34113
34106
  }, t[6] = e, t[7] = O);
34114
- let A = O, I, z, U, K, q, J, Q, $, pJ, mJ, hJ, gJ, _J;
34107
+ let A = O, I, z, U, K, q, J, Q, $, mJ, hJ, gJ, _J, vJ;
34115
34108
  if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34116
34109
  let e2 = async (t2) => {
34117
34110
  let n2 = labelForDownloadFormat(t2);
@@ -34177,10 +34170,10 @@ ${n}` : "Please fix this error.";
34177
34170
  content: d,
34178
34171
  open: o,
34179
34172
  children: h
34180
- }), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, pJ = "bottom", mJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34173
+ }), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, mJ = "bottom", hJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34181
34174
  className: "text-xs text-muted-foreground",
34182
34175
  children: "Download"
34183
- }), t[36] = hJ) : hJ = t[36], gJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34176
+ }), t[36] = gJ) : gJ = t[36], _J = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34184
34177
  onSelect: () => {
34185
34178
  e2(t2.format);
34186
34179
  },
@@ -34201,10 +34194,10 @@ ${n}` : "Please fix this error.";
34201
34194
  ]
34202
34195
  })
34203
34196
  ]
34204
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34197
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34205
34198
  className: "text-xs text-muted-foreground",
34206
34199
  children: "Copy to clipboard"
34207
- }), t[37] = U, t[38] = _J) : (U = t[37], _J = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34200
+ }), t[37] = U, t[38] = vJ) : (U = t[37], vJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34208
34201
  onSelect: async () => {
34209
34202
  try {
34210
34203
  await a2(e3.format);
@@ -34233,30 +34226,30 @@ ${n}` : "Please fix this error.";
34233
34226
  ]
34234
34227
  })
34235
34228
  ]
34236
- }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = pJ, t[22] = mJ, t[23] = hJ, t[24] = gJ, t[25] = _J;
34237
- } else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], pJ = t[21], mJ = t[22], hJ = t[23], gJ = t[24], _J = t[25];
34238
- let vJ;
34239
- t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== pJ || t[43] !== mJ || t[44] !== hJ || t[45] !== gJ || t[46] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)(I, {
34240
- side: pJ,
34241
- className: mJ,
34229
+ }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = mJ, t[22] = hJ, t[23] = gJ, t[24] = _J, t[25] = vJ;
34230
+ } else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], mJ = t[21], hJ = t[22], gJ = t[23], _J = t[24], vJ = t[25];
34231
+ let yJ;
34232
+ t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== mJ || t[43] !== hJ || t[44] !== gJ || t[45] !== _J || t[46] !== vJ ? (yJ = (0, import_jsx_runtime.jsxs)(I, {
34233
+ side: mJ,
34234
+ className: hJ,
34242
34235
  children: [
34243
- hJ,
34244
34236
  gJ,
34245
34237
  _J,
34238
+ vJ,
34246
34239
  U,
34247
34240
  K
34248
34241
  ]
34249
- }), t[39] = I, t[40] = U, t[41] = K, t[42] = pJ, t[43] = mJ, t[44] = hJ, t[45] = gJ, t[46] = _J, t[47] = vJ) : vJ = t[47];
34250
- let yJ;
34251
- return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== vJ ? (yJ = (0, import_jsx_runtime.jsxs)(z, {
34242
+ }), t[39] = I, t[40] = U, t[41] = K, t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J, t[46] = vJ, t[47] = yJ) : yJ = t[47];
34243
+ let bJ;
34244
+ return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)(z, {
34252
34245
  modal: q,
34253
34246
  open: J,
34254
34247
  onOpenChange: Q,
34255
34248
  children: [
34256
34249
  $,
34257
- vJ
34250
+ yJ
34258
34251
  ]
34259
- }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = vJ, t[54] = yJ) : yJ = t[54], yJ;
34252
+ }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = yJ, t[54] = bJ) : bJ = t[54], bJ;
34260
34253
  };
34261
34254
  function fetchJson(e) {
34262
34255
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34352,22 +34345,22 @@ ${n}` : "Please fix this error.";
34352
34345
  ]
34353
34346
  });
34354
34347
  };
34355
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: pJ, showSearch: mJ = false, searchQuery: hJ, onSearchQueryChange: gJ, showFilters: _J = false, filters: vJ, onFiltersChange: yJ, calculateTopKRows: bJ, reloading: xJ, freezeColumnsLeft: SJ, freezeColumnsRight: CJ, hiddenColumns: wJ, toggleDisplayHeader: TJ, showChartBuilder: EJ, isChartBuilderOpen: DJ, showPageSizeSelector: OJ, showTableExplorer: kJ, togglePanel: AJ, isPanelOpen: jJ, isAnyPanelOpen: MJ, viewedRowIdx: NJ, onViewedRowChange: PJ, renderTableExplorerPanel: FJ }) => {
34356
- let IJ = isStaticNotebook(), LJ = !IJ, [RJ, zJ] = import_react.useState(false), { locale: BJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: VJ, setColumnPinning: HJ } = useColumnPinning(SJ, CJ), { columnVisibility: UJ, setColumnVisibility: WJ } = useColumnVisibility(wJ);
34348
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: mJ, showSearch: hJ = false, searchQuery: gJ, onSearchQueryChange: _J, showFilters: vJ = false, filters: yJ, onFiltersChange: bJ, calculateTopKRows: xJ, reloading: SJ, freezeColumnsLeft: CJ, freezeColumnsRight: wJ, hiddenColumns: TJ, toggleDisplayHeader: EJ, showChartBuilder: DJ, isChartBuilderOpen: OJ, showPageSizeSelector: kJ, showTableExplorer: AJ, togglePanel: jJ, isPanelOpen: MJ, isAnyPanelOpen: NJ, viewedRowIdx: PJ, onViewedRowChange: FJ, renderTableExplorerPanel: IJ }) => {
34349
+ let LJ = isStaticNotebook(), RJ = !LJ, [zJ, BJ] = import_react.useState(false), { locale: VJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: HJ, setColumnPinning: UJ } = useColumnPinning(CJ, wJ), { columnVisibility: WJ, setColumnVisibility: GJ } = useColumnVisibility(TJ);
34357
34350
  import_react.useEffect(() => {
34358
34351
  let e2;
34359
- return xJ ? e2 = setTimeout(() => {
34360
- zJ(true);
34361
- }, 300) : zJ(false), () => {
34352
+ return SJ ? e2 = setTimeout(() => {
34353
+ BJ(true);
34354
+ }, 300) : BJ(false), () => {
34362
34355
  e2 && clearTimeout(e2);
34363
34356
  };
34364
34357
  }, [
34365
- xJ
34358
+ SJ
34366
34359
  ]);
34367
- function GJ(e2, t2) {
34360
+ function KJ(e2, t2) {
34368
34361
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34369
34362
  }
34370
- let KJ = useReactTable({
34363
+ let qJ = useReactTable({
34371
34364
  _features: [
34372
34365
  ColumnPinning,
34373
34366
  ColumnWrappingFeature,
@@ -34391,37 +34384,37 @@ ${n}` : "Please fix this error.";
34391
34384
  getRowId: (e2, t2) => {
34392
34385
  let n2 = getStableRowId(e2);
34393
34386
  if (n2) return n2;
34394
- let i2 = GJ(e2, t2);
34387
+ let i2 = KJ(e2, t2);
34395
34388
  return String(i2);
34396
34389
  }
34397
34390
  } : {},
34398
- locale: BJ,
34391
+ locale: VJ,
34399
34392
  manualPagination: q,
34400
34393
  getPaginationRowModel: getPaginationRowModel(),
34401
34394
  ...w ? {
34402
34395
  onSortingChange: w
34403
34396
  } : {},
34404
34397
  manualSorting: y,
34405
- enableSorting: !IJ,
34398
+ enableSorting: !LJ,
34406
34399
  enableMultiSort: true,
34407
34400
  getSortedRowModel: getSortedRowModel(),
34408
34401
  manualFiltering: true,
34409
- enableColumnFilters: _J && !IJ,
34402
+ enableColumnFilters: vJ && !LJ,
34410
34403
  getFilteredRowModel: getFilteredRowModel(),
34411
- onColumnFiltersChange: yJ,
34404
+ onColumnFiltersChange: bJ,
34412
34405
  onRowSelectionChange: Q,
34413
34406
  onCellSelectionChange: $,
34414
34407
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34415
34408
  enableMultiCellSelection: c === "multi-cell",
34416
- onColumnPinningChange: HJ,
34417
- onColumnVisibilityChange: WJ,
34409
+ onColumnPinningChange: UJ,
34410
+ onColumnVisibilityChange: GJ,
34418
34411
  enableFocusRow: true,
34419
- onFocusRowChange: PJ,
34412
+ onFocusRowChange: FJ,
34420
34413
  state: {
34421
34414
  ...S ? {
34422
34415
  sorting: S
34423
34416
  } : {},
34424
- columnFilters: vJ,
34417
+ columnFilters: yJ,
34425
34418
  ...z ? {
34426
34419
  pagination: z
34427
34420
  } : J && !z ? {} : {
@@ -34432,60 +34425,60 @@ ${n}` : "Please fix this error.";
34432
34425
  },
34433
34426
  rowSelection: E ?? {},
34434
34427
  cellSelection: O ?? [],
34435
- columnVisibility: UJ,
34428
+ columnVisibility: WJ,
34436
34429
  cellStyling: A,
34437
- columnPinning: VJ,
34430
+ columnPinning: HJ,
34438
34431
  cellHoverTemplate: M,
34439
34432
  cellHoverTexts: I ?? {}
34440
34433
  }
34441
- }), qJ = (jJ == null ? void 0 : jJ(PANEL_TYPES.ROW_VIEWER)) ?? false, JJ = !J && a.length > 100, YJ = useScrollContainerHeight({
34434
+ }), JJ = (MJ == null ? void 0 : MJ(PANEL_TYPES.ROW_VIEWER)) ?? false, YJ = !J && a.length > 100, XJ = useScrollContainerHeight({
34442
34435
  maxHeight: n,
34443
- virtualize: JJ
34444
- }), [XJ, ZJ] = import_react.useState(null), QJ = import_react.useMemo(() => ({
34436
+ virtualize: YJ
34437
+ }), [ZJ, QJ] = import_react.useState(null), $J = import_react.useMemo(() => ({
34445
34438
  requestAddFilter: (e2) => {
34446
- let t2 = KJ.getColumn(e2.columnId);
34447
- t2 && ZJ(buildEditorSnapshot(t2, {
34439
+ let t2 = qJ.getColumn(e2.columnId);
34440
+ t2 && QJ(buildEditorSnapshot(t2, {
34448
34441
  operator: e2.operator
34449
34442
  }));
34450
34443
  }
34451
34444
  }), [
34452
- KJ
34453
- ]), $J = getUserColumnVisibilityCounts(KJ), eY = $J.total > 0 && $J.visible === 0;
34445
+ qJ
34446
+ ]), eY = getUserColumnVisibilityCounts(qJ), tY = eY.total > 0 && eY.visible === 0;
34454
34447
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34455
- value: QJ,
34448
+ value: $J,
34456
34449
  children: (0, import_jsx_runtime.jsxs)("div", {
34457
34450
  className: cn(e, "flex flex-col space-y-1"),
34458
34451
  children: [
34459
34452
  (0, import_jsx_runtime.jsx)(FilterPills, {
34460
- filters: vJ,
34461
- table: KJ,
34462
- calculateTopKRows: bJ,
34463
- addFilterSnapshot: XJ,
34464
- onAddFilterSnapshotChange: ZJ
34453
+ filters: yJ,
34454
+ table: qJ,
34455
+ calculateTopKRows: xJ,
34456
+ addFilterSnapshot: ZJ,
34457
+ onAddFilterSnapshotChange: QJ
34465
34458
  }),
34466
- FJ == null ? void 0 : FJ(KJ),
34459
+ IJ == null ? void 0 : IJ(qJ),
34467
34460
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34468
34461
  children: (0, import_jsx_runtime.jsxs)("div", {
34469
34462
  part: "table-wrapper",
34470
34463
  className: cn(t || "rounded-md border overflow-hidden"),
34471
34464
  children: [
34472
- LJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34473
- table: KJ,
34474
- showSearch: mJ,
34475
- searchQuery: hJ,
34476
- onSearchQueryChange: gJ,
34477
- reloading: xJ,
34478
- showChartBuilder: EJ,
34479
- isChartBuilderOpen: DJ,
34480
- toggleDisplayHeader: TJ,
34481
- showTableExplorer: kJ,
34482
- togglePanel: AJ,
34483
- isAnyPanelOpen: MJ,
34465
+ RJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34466
+ table: qJ,
34467
+ showSearch: hJ,
34468
+ searchQuery: gJ,
34469
+ onSearchQueryChange: _J,
34470
+ reloading: SJ,
34471
+ showChartBuilder: DJ,
34472
+ isChartBuilderOpen: OJ,
34473
+ toggleDisplayHeader: EJ,
34474
+ showTableExplorer: AJ,
34475
+ togglePanel: jJ,
34476
+ isAnyPanelOpen: NJ,
34484
34477
  downloadAs: K,
34485
34478
  sizeBytes: _,
34486
34479
  sizeBytesIsLoading: v
34487
34480
  }),
34488
- eY && (0, import_jsx_runtime.jsxs)(Banner, {
34481
+ tY && (0, import_jsx_runtime.jsxs)(Banner, {
34489
34482
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34490
34483
  children: [
34491
34484
  (0, import_jsx_runtime.jsx)("span", {
@@ -34494,26 +34487,26 @@ ${n}` : "Please fix this error.";
34494
34487
  (0, import_jsx_runtime.jsx)(Button, {
34495
34488
  variant: "link",
34496
34489
  size: "xs",
34497
- onClick: () => KJ.resetColumnVisibility(true),
34490
+ onClick: () => qJ.resetColumnVisibility(true),
34498
34491
  children: "Unhide all"
34499
34492
  })
34500
34493
  ]
34501
34494
  }),
34502
34495
  (0, import_jsx_runtime.jsxs)(Table, {
34503
34496
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34504
- ref: YJ,
34497
+ ref: XJ,
34505
34498
  children: [
34506
- RJ && (0, import_jsx_runtime.jsx)("thead", {
34499
+ zJ && (0, import_jsx_runtime.jsx)("thead", {
34507
34500
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34508
34501
  }),
34509
- renderTableHeader(KJ, JJ || !!n),
34502
+ renderTableHeader(qJ, YJ || !!n),
34510
34503
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34511
- table: KJ,
34504
+ table: qJ,
34512
34505
  columns: i,
34513
- rowViewerPanelOpen: qJ,
34514
- getRowIndex: GJ,
34515
- viewedRowIdx: NJ,
34516
- virtualize: JJ
34506
+ rowViewerPanelOpen: JJ,
34507
+ getRowIndex: KJ,
34508
+ viewedRowIdx: PJ,
34509
+ virtualize: YJ
34517
34510
  })
34518
34511
  ]
34519
34512
  }),
@@ -34524,10 +34517,10 @@ ${n}` : "Please fix this error.";
34524
34517
  pagination: J,
34525
34518
  selection: c,
34526
34519
  onRowSelectionChange: Q,
34527
- table: KJ,
34528
- getRowIds: pJ,
34529
- showPageSizeSelector: OJ,
34530
- tableLoading: xJ
34520
+ table: qJ,
34521
+ getRowIds: mJ,
34522
+ showPageSizeSelector: kJ,
34523
+ tableLoading: SJ
34531
34524
  })
34532
34525
  ]
34533
34526
  })
@@ -34627,45 +34620,45 @@ ${d}`,
34627
34620
  prompt: buildFixInChatPrompt(a, d)
34628
34621
  });
34629
34622
  }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34630
- let $ = Q, pJ;
34631
- t[19] === z ? pJ = t[20] : (pJ = () => K(!z), t[19] = z, t[20] = pJ);
34632
- let mJ = z ? "Collapse traceback" : "Expand traceback", hJ;
34633
- t[21] === z ? hJ = t[22] : (hJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34623
+ let $ = Q, mJ;
34624
+ t[19] === z ? mJ = t[20] : (mJ = () => K(!z), t[19] = z, t[20] = mJ);
34625
+ let hJ = z ? "Collapse traceback" : "Expand traceback", gJ;
34626
+ t[21] === z ? gJ = t[22] : (gJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34634
34627
  className: "h-3 w-3"
34635
34628
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34636
34629
  className: "h-3 w-3"
34637
- }), t[21] = z, t[22] = hJ);
34638
- let gJ;
34639
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)("span", {
34630
+ }), t[21] = z, t[22] = gJ);
34631
+ let _J;
34632
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)("span", {
34640
34633
  className: "text-[0.6875rem] uppercase tracking-wider",
34641
34634
  children: "Traceback"
34642
- }), t[23] = gJ) : gJ = t[23];
34643
- let _J;
34644
- t[24] !== z || t[25] !== hJ || t[26] !== pJ || t[27] !== mJ ? (_J = (0, import_jsx_runtime.jsxs)("button", {
34635
+ }), t[23] = _J) : _J = t[23];
34636
+ let vJ;
34637
+ t[24] !== z || t[25] !== gJ || t[26] !== mJ || t[27] !== hJ ? (vJ = (0, import_jsx_runtime.jsxs)("button", {
34645
34638
  type: "button",
34646
- onClick: pJ,
34639
+ onClick: mJ,
34647
34640
  "aria-expanded": z,
34648
- "aria-label": mJ,
34641
+ "aria-label": hJ,
34649
34642
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34650
34643
  children: [
34651
- hJ,
34652
- gJ
34644
+ gJ,
34645
+ _J
34653
34646
  ]
34654
- }), t[24] = z, t[25] = hJ, t[26] = pJ, t[27] = mJ, t[28] = _J) : _J = t[28];
34655
- let vJ;
34656
- t[29] !== s || t[30] !== z ? (vJ = z && (0, import_jsx_runtime.jsx)("div", {
34647
+ }), t[24] = z, t[25] = gJ, t[26] = mJ, t[27] = hJ, t[28] = vJ) : vJ = t[28];
34648
+ let yJ;
34649
+ t[29] !== s || t[30] !== z ? (yJ = z && (0, import_jsx_runtime.jsx)("div", {
34657
34650
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34658
34651
  children: s
34659
- }), t[29] = s, t[30] = z, t[31] = vJ) : vJ = t[31];
34660
- let yJ;
34661
- t[32] !== J || t[33] !== $ || t[34] !== M ? (yJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34652
+ }), t[29] = s, t[30] = z, t[31] = yJ) : yJ = t[31];
34653
+ let bJ;
34654
+ t[32] !== J || t[33] !== $ || t[34] !== M ? (bJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34662
34655
  tooltip: "Fix with AI",
34663
34656
  openPrompt: () => J(false),
34664
34657
  applyAutofix: () => J(true),
34665
34658
  openChat: $
34666
- }), t[32] = J, t[33] = $, t[34] = M, t[35] = yJ) : yJ = t[35];
34667
- let bJ;
34668
- t[36] !== O || t[37] !== S ? (bJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34659
+ }), t[32] = J, t[33] = $, t[34] = M, t[35] = bJ) : bJ = t[35];
34660
+ let xJ;
34661
+ t[36] !== O || t[37] !== S ? (xJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34669
34662
  content: "Attach pdb to the exception point.",
34670
34663
  children: (0, import_jsx_runtime.jsxs)(Button, {
34671
34664
  size: "xs",
@@ -34682,9 +34675,9 @@ ${d}`,
34682
34675
  "Launch debugger"
34683
34676
  ]
34684
34677
  })
34685
- }), t[36] = O, t[37] = S, t[38] = bJ) : bJ = t[38];
34686
- let xJ;
34687
- t[39] !== d || t[40] !== i ? (xJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34678
+ }), t[36] = O, t[37] = S, t[38] = xJ) : xJ = t[38];
34679
+ let SJ;
34680
+ t[39] !== d || t[40] !== i ? (SJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34688
34681
  children: [
34689
34682
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34690
34683
  asChild: true,
@@ -34752,25 +34745,25 @@ ${d}`,
34752
34745
  ]
34753
34746
  })
34754
34747
  ]
34755
- }), t[39] = d, t[40] = i, t[41] = xJ) : xJ = t[41];
34756
- let SJ;
34757
- t[42] !== yJ || t[43] !== bJ || t[44] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
34748
+ }), t[39] = d, t[40] = i, t[41] = SJ) : SJ = t[41];
34749
+ let CJ;
34750
+ t[42] !== bJ || t[43] !== xJ || t[44] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
34758
34751
  className: "flex gap-2",
34759
34752
  children: [
34760
- yJ,
34761
34753
  bJ,
34762
- xJ
34754
+ xJ,
34755
+ SJ
34763
34756
  ]
34764
- }), t[42] = yJ, t[43] = bJ, t[44] = xJ, t[45] = SJ) : SJ = t[45];
34765
- let CJ;
34766
- return t[46] !== _J || t[47] !== vJ || t[48] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
34757
+ }), t[42] = bJ, t[43] = xJ, t[44] = SJ, t[45] = CJ) : CJ = t[45];
34758
+ let wJ;
34759
+ return t[46] !== vJ || t[47] !== yJ || t[48] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
34767
34760
  className: "flex flex-col gap-2 min-w-full w-fit",
34768
34761
  children: [
34769
- _J,
34770
34762
  vJ,
34771
- SJ
34763
+ yJ,
34764
+ CJ
34772
34765
  ]
34773
- }), t[46] = _J, t[47] = vJ, t[48] = SJ, t[49] = CJ) : CJ = t[49], CJ;
34766
+ }), t[46] = vJ, t[47] = yJ, t[48] = CJ, t[49] = wJ) : wJ = t[49], wJ;
34774
34767
  };
34775
34768
  function lastLine(e) {
34776
34769
  var _a2, _b;
@@ -36206,14 +36199,14 @@ ${d}`,
36206
36199
  Q
36207
36200
  ]
36208
36201
  }), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
36209
- let pJ;
36210
- return t[36] !== I || t[37] !== $ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
36202
+ let mJ;
36203
+ return t[36] !== I || t[37] !== $ ? (mJ = (0, import_jsx_runtime.jsxs)("div", {
36211
36204
  className: "flex flex-col gap-3",
36212
36205
  children: [
36213
36206
  I,
36214
36207
  $
36215
36208
  ]
36216
- }), t[36] = I, t[37] = $, t[38] = pJ) : pJ = t[38], pJ;
36209
+ }), t[36] = I, t[37] = $, t[38] = mJ) : mJ = t[38], mJ;
36217
36210
  };
36218
36211
  SlideSidebar = (e) => {
36219
36212
  let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
@@ -36338,7 +36331,7 @@ ${d}`,
36338
36331
  return Logger.warn("Failed to get version from mount config"), null;
36339
36332
  }
36340
36333
  }
36341
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-dev41");
36334
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-dev45");
36342
36335
  showCodeInRunModeAtom = atom(true);
36343
36336
  atom(null);
36344
36337
  var import_compiler_runtime = require_compiler_runtime();