@marimo-team/islands 0.23.2-dev63 → 0.23.2-dev68

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.
@@ -7103,33 +7103,33 @@ try {
7103
7103
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
7104
7104
  function y(e2) {
7105
7105
  var _a2, _b, _c, _d;
7106
- 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, nj = import_react.useRef(false), q = useTheme$2(), J = import_react.useContext(f), rj = !!J && !I, Q = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7106
+ 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, oj = import_react.useRef(false), q = useTheme$2(), J = import_react.useContext(f), sj = !!J && !I, Q = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7107
7107
  h2
7108
- ]), ij = Q[t], $ = ij || Q, { colorSchemes: aj = _, components: oj = v, cssVarPrefix: sj } = $, cj = Object.keys(aj).filter((e3) => !!aj[e3]).join(","), lj = import_react.useMemo(() => cj.split(","), [
7109
- cj
7110
- ]), uj = typeof s == "string" ? s : s.light, dj = typeof s == "string" ? s : s.dark, { mode: fj, setMode: pj, systemMode: mj, lightColorScheme: hj, darkColorScheme: gj, colorScheme: _j, setColorScheme: vj } = useCurrentColorScheme({
7111
- supportedColorSchemes: lj,
7112
- defaultLightColorScheme: uj,
7113
- defaultDarkColorScheme: dj,
7108
+ ]), cj = Q[t], $ = cj || Q, { colorSchemes: lj = _, components: uj = v, cssVarPrefix: dj } = $, fj = Object.keys(lj).filter((e3) => !!lj[e3]).join(","), pj = import_react.useMemo(() => fj.split(","), [
7109
+ fj
7110
+ ]), mj = typeof s == "string" ? s : s.light, hj = typeof s == "string" ? s : s.dark, { mode: gj, setMode: _j, systemMode: vj, lightColorScheme: yj, darkColorScheme: bj, colorScheme: xj, setColorScheme: Sj } = useCurrentColorScheme({
7111
+ supportedColorSchemes: pj,
7112
+ defaultLightColorScheme: mj,
7113
+ defaultDarkColorScheme: hj,
7114
7114
  modeStorageKey: y2,
7115
7115
  colorSchemeStorageKey: S2,
7116
- defaultMode: aj[uj] && aj[dj] ? U : ((_b = (_a2 = aj[$.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = $.palette) == null ? void 0 : _c.mode),
7116
+ defaultMode: lj[mj] && lj[hj] ? U : ((_b = (_a2 = lj[$.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = $.palette) == null ? void 0 : _c.mode),
7117
7117
  storageManager: E,
7118
7118
  storageWindow: O,
7119
7119
  noSsr: K
7120
- }), yj = fj, bj = _j;
7121
- rj && (yj = J.mode, bj = J.colorScheme);
7122
- let xj = import_react.useMemo(() => {
7120
+ }), Cj = gj, wj = xj;
7121
+ sj && (Cj = J.mode, wj = J.colorScheme);
7122
+ let Tj = import_react.useMemo(() => {
7123
7123
  var _a3;
7124
- let e3 = bj || $.defaultColorScheme, t2 = ((_a3 = $.generateThemeVars) == null ? void 0 : _a3.call($)) || $.vars, n2 = {
7124
+ let e3 = wj || $.defaultColorScheme, t2 = ((_a3 = $.generateThemeVars) == null ? void 0 : _a3.call($)) || $.vars, n2 = {
7125
7125
  ...$,
7126
- components: oj,
7127
- colorSchemes: aj,
7128
- cssVarPrefix: sj,
7126
+ components: uj,
7127
+ colorSchemes: lj,
7128
+ cssVarPrefix: dj,
7129
7129
  vars: t2
7130
7130
  };
7131
7131
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
7132
- let t3 = aj[e3];
7132
+ let t3 = lj[e3];
7133
7133
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
7134
7134
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
7135
7135
  ...n2[e4],
@@ -7140,33 +7140,33 @@ try {
7140
7140
  return c ? c(n2) : n2;
7141
7141
  }, [
7142
7142
  $,
7143
- bj,
7144
- oj,
7145
- aj,
7146
- sj
7147
- ]), Sj = $.colorSchemeSelector;
7143
+ wj,
7144
+ uj,
7145
+ lj,
7146
+ dj
7147
+ ]), Ej = $.colorSchemeSelector;
7148
7148
  useEnhancedEffect_default(() => {
7149
- if (bj && M && Sj && Sj !== "media") {
7150
- let e3 = Sj, t2 = Sj;
7151
- 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(...lj.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", bj));
7149
+ if (wj && M && Ej && Ej !== "media") {
7150
+ let e3 = Ej, t2 = Ej;
7151
+ 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(...pj.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", wj));
7152
7152
  else {
7153
- let e4 = t2.replace("%s", bj).match(/\[([^\]]+)\]/);
7153
+ let e4 = t2.replace("%s", wj).match(/\[([^\]]+)\]/);
7154
7154
  if (e4) {
7155
7155
  let [t3, n2] = e4[1].split("=");
7156
- n2 || lj.forEach((e5) => {
7157
- M.removeAttribute(t3.replace(bj, e5));
7156
+ n2 || pj.forEach((e5) => {
7157
+ M.removeAttribute(t3.replace(wj, e5));
7158
7158
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
7159
- } else M.setAttribute(t2, bj);
7159
+ } else M.setAttribute(t2, wj);
7160
7160
  }
7161
7161
  }
7162
7162
  }, [
7163
- bj,
7164
- Sj,
7163
+ wj,
7164
+ Ej,
7165
7165
  M,
7166
- lj
7166
+ pj
7167
7167
  ]), import_react.useEffect(() => {
7168
7168
  let e3;
7169
- if (w2 && nj.current && A) {
7169
+ if (w2 && oj.current && A) {
7170
7170
  let t2 = A.createElement("style");
7171
7171
  t2.appendChild(A.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), A.head.appendChild(t2), window.getComputedStyle(A.body), e3 = setTimeout(() => {
7172
7172
  A.head.removeChild(t2);
@@ -7176,48 +7176,48 @@ try {
7176
7176
  clearTimeout(e3);
7177
7177
  };
7178
7178
  }, [
7179
- bj,
7179
+ wj,
7180
7180
  w2,
7181
7181
  A
7182
- ]), import_react.useEffect(() => (nj.current = true, () => {
7183
- nj.current = false;
7182
+ ]), import_react.useEffect(() => (oj.current = true, () => {
7183
+ oj.current = false;
7184
7184
  }), []);
7185
- let Cj = import_react.useMemo(() => ({
7186
- allColorSchemes: lj,
7187
- colorScheme: bj,
7188
- darkColorScheme: gj,
7189
- lightColorScheme: hj,
7190
- mode: yj,
7191
- setColorScheme: vj,
7192
- setMode: pj,
7193
- systemMode: mj
7185
+ let Dj = import_react.useMemo(() => ({
7186
+ allColorSchemes: pj,
7187
+ colorScheme: wj,
7188
+ darkColorScheme: bj,
7189
+ lightColorScheme: yj,
7190
+ mode: Cj,
7191
+ setColorScheme: Sj,
7192
+ setMode: _j,
7193
+ systemMode: vj
7194
7194
  }), [
7195
- lj,
7195
+ pj,
7196
+ wj,
7196
7197
  bj,
7197
- gj,
7198
- hj,
7199
7198
  yj,
7199
+ Cj,
7200
+ Sj,
7201
+ _j,
7200
7202
  vj,
7201
- pj,
7202
- mj,
7203
- xj.colorSchemeSelector
7204
- ]), wj = true;
7205
- (z || $.cssVariables === false || rj && (q == null ? void 0 : q.cssVarPrefix) === sj) && (wj = false);
7206
- let Tj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7203
+ Tj.colorSchemeSelector
7204
+ ]), Oj = true;
7205
+ (z || $.cssVariables === false || sj && (q == null ? void 0 : q.cssVarPrefix) === dj) && (Oj = false);
7206
+ let kj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7207
7207
  children: [
7208
7208
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
7209
- themeId: ij ? t : void 0,
7210
- theme: xj,
7209
+ themeId: cj ? t : void 0,
7210
+ theme: Tj,
7211
7211
  children: d2
7212
7212
  }),
7213
- wj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7214
- styles: ((_d = xj.generateStyleSheets) == null ? void 0 : _d.call(xj)) || []
7213
+ Oj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7214
+ styles: ((_d = Tj.generateStyleSheets) == null ? void 0 : _d.call(Tj)) || []
7215
7215
  })
7216
7216
  ]
7217
7217
  });
7218
- return rj ? Tj : (0, import_jsx_runtime.jsx)(f.Provider, {
7219
- value: Cj,
7220
- children: Tj
7218
+ return sj ? kj : (0, import_jsx_runtime.jsx)(f.Provider, {
7219
+ value: Dj,
7220
+ children: kj
7221
7221
  });
7222
7222
  }
7223
7223
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -7963,10 +7963,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
7963
7963
  disableCssColorScheme: a,
7964
7964
  shouldSkipGeneratingVar: s,
7965
7965
  getSelector: createGetSelector_default(I)
7966
- }, { vars: U, generateThemeVars: K, generateStyleSheets: nj } = prepareCssVars_default(I, z);
7966
+ }, { vars: U, generateThemeVars: K, generateStyleSheets: oj } = prepareCssVars_default(I, z);
7967
7967
  return I.vars = U, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([e2, t2]) => {
7968
7968
  I[e2] = t2;
7969
- }), I.generateThemeVars = K, I.generateStyleSheets = nj, I.generateSpacing = function() {
7969
+ }), I.generateThemeVars = K, I.generateStyleSheets = oj, I.generateSpacing = function() {
7970
7970
  return createSpacing(f.spacing, createUnarySpacing(this));
7971
7971
  }, I.getColorSchemeSelector = createGetColorSchemeSelector(c), I.spacing = I.generateSpacing(), I.shouldSkipGeneratingVar = s, I.unstable_sxConfig = {
7972
7972
  ...defaultSxConfig_default,
@@ -8717,10 +8717,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8717
8717
  let n = useDefaultProps({
8718
8718
  props: e,
8719
8719
  name: "MuiInputBase"
8720
- }), { "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: nj, onBlur: q, onChange: J, onClick: rj, onFocus: Q, onKeyDown: ij, onKeyUp: $, placeholder: aj, readOnly: oj, renderSuffix: sj, rows: cj, size: lj, slotProps: uj = {}, slots: dj = {}, startAdornment: fj, type: pj = "text", value: mj, ...hj } = n, gj = A.value == null ? mj : A.value, { current: _j } = import_react.useRef(gj != null), vj = import_react.useRef(), yj = import_react.useCallback((e2) => {
8721
- }, []), bj = useForkRef_default(vj, M, A.ref, yj), [xj, Sj] = import_react.useState(false), Cj = useFormControl(), wj = formControlState({
8720
+ }), { "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: oj, onBlur: q, onChange: J, onClick: sj, onFocus: Q, onKeyDown: cj, onKeyUp: $, placeholder: lj, readOnly: uj, renderSuffix: dj, rows: fj, size: pj, slotProps: mj = {}, slots: hj = {}, startAdornment: gj, type: _j = "text", value: vj, ...yj } = n, bj = A.value == null ? vj : A.value, { current: xj } = import_react.useRef(bj != null), Sj = import_react.useRef(), Cj = import_react.useCallback((e2) => {
8721
+ }, []), wj = useForkRef_default(Sj, M, A.ref, Cj), [Tj, Ej] = import_react.useState(false), Dj = useFormControl(), Oj = formControlState({
8722
8722
  props: n,
8723
- muiFormControl: Cj,
8723
+ muiFormControl: Dj,
8724
8724
  states: [
8725
8725
  "color",
8726
8726
  "disabled",
@@ -8731,145 +8731,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8731
8731
  "filled"
8732
8732
  ]
8733
8733
  });
8734
- wj.focused = Cj ? Cj.focused : xj, import_react.useEffect(() => {
8735
- !Cj && _ && xj && (Sj(false), q && q());
8734
+ Oj.focused = Dj ? Dj.focused : Tj, import_react.useEffect(() => {
8735
+ !Dj && _ && Tj && (Ej(false), q && q());
8736
8736
  }, [
8737
- Cj,
8737
+ Dj,
8738
8738
  _,
8739
- xj,
8739
+ Tj,
8740
8740
  q
8741
8741
  ]);
8742
- let Tj = Cj && Cj.onFilled, Ej = Cj && Cj.onEmpty, Dj = import_react.useCallback((e2) => {
8743
- isFilled(e2) ? Tj && Tj() : Ej && Ej();
8742
+ let kj = Dj && Dj.onFilled, Aj = Dj && Dj.onEmpty, jj = import_react.useCallback((e2) => {
8743
+ isFilled(e2) ? kj && kj() : Aj && Aj();
8744
8744
  }, [
8745
- Tj,
8746
- Ej
8745
+ kj,
8746
+ Aj
8747
8747
  ]);
8748
8748
  useEnhancedEffect_default$1(() => {
8749
- _j && Dj({
8750
- value: gj
8749
+ xj && jj({
8750
+ value: bj
8751
8751
  });
8752
8752
  }, [
8753
- gj,
8754
- Dj,
8755
- _j
8753
+ bj,
8754
+ jj,
8755
+ xj
8756
8756
  ]);
8757
- let Oj = (e2) => {
8758
- Q && Q(e2), A.onFocus && A.onFocus(e2), Cj && Cj.onFocus ? Cj.onFocus(e2) : Sj(true);
8759
- }, kj = (e2) => {
8760
- q && q(e2), A.onBlur && A.onBlur(e2), Cj && Cj.onBlur ? Cj.onBlur(e2) : Sj(false);
8761
- }, Aj = (e2, ...t2) => {
8762
- if (!_j) {
8763
- let t3 = e2.target || vj.current;
8757
+ let Mj = (e2) => {
8758
+ Q && Q(e2), A.onFocus && A.onFocus(e2), Dj && Dj.onFocus ? Dj.onFocus(e2) : Ej(true);
8759
+ }, Nj = (e2) => {
8760
+ q && q(e2), A.onBlur && A.onBlur(e2), Dj && Dj.onBlur ? Dj.onBlur(e2) : Ej(false);
8761
+ }, Pj = (e2, ...t2) => {
8762
+ if (!xj) {
8763
+ let t3 = e2.target || Sj.current;
8764
8764
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
8765
- Dj({
8765
+ jj({
8766
8766
  value: t3.value
8767
8767
  });
8768
8768
  }
8769
8769
  A.onChange && A.onChange(e2, ...t2), J && J(e2, ...t2);
8770
8770
  };
8771
8771
  import_react.useEffect(() => {
8772
- Dj(vj.current);
8772
+ jj(Sj.current);
8773
8773
  }, []);
8774
- let jj = (e2) => {
8775
- vj.current && e2.currentTarget === e2.target && vj.current.focus(), rj && rj(e2);
8776
- }, Mj = O, Nj = A;
8777
- K && Mj === "input" && (Nj = cj ? {
8774
+ let Fj = (e2) => {
8775
+ Sj.current && e2.currentTarget === e2.target && Sj.current.focus(), sj && sj(e2);
8776
+ }, Ij = O, Lj = A;
8777
+ K && Ij === "input" && (Lj = fj ? {
8778
8778
  type: void 0,
8779
- minRows: cj,
8780
- maxRows: cj,
8781
- ...Nj
8779
+ minRows: fj,
8780
+ maxRows: fj,
8781
+ ...Lj
8782
8782
  } : {
8783
8783
  type: void 0,
8784
8784
  maxRows: z,
8785
8785
  minRows: U,
8786
- ...Nj
8787
- }, Mj = TextareaAutosize_default);
8788
- let Pj = (e2) => {
8789
- Dj(e2.animationName === "mui-auto-fill-cancel" ? vj.current : {
8786
+ ...Lj
8787
+ }, Ij = TextareaAutosize_default);
8788
+ let Rj = (e2) => {
8789
+ jj(e2.animationName === "mui-auto-fill-cancel" ? Sj.current : {
8790
8790
  value: "x"
8791
8791
  });
8792
8792
  };
8793
8793
  import_react.useEffect(() => {
8794
- Cj && Cj.setAdornedStart(!!fj);
8794
+ Dj && Dj.setAdornedStart(!!gj);
8795
8795
  }, [
8796
- Cj,
8797
- fj
8796
+ Dj,
8797
+ gj
8798
8798
  ]);
8799
- let Fj = {
8799
+ let zj = {
8800
8800
  ...n,
8801
- color: wj.color || "primary",
8802
- disabled: wj.disabled,
8801
+ color: Oj.color || "primary",
8802
+ disabled: Oj.disabled,
8803
8803
  endAdornment: y,
8804
- error: wj.error,
8805
- focused: wj.focused,
8806
- formControl: Cj,
8804
+ error: Oj.error,
8805
+ focused: Oj.focused,
8806
+ formControl: Dj,
8807
8807
  fullWidth: w,
8808
- hiddenLabel: wj.hiddenLabel,
8808
+ hiddenLabel: Oj.hiddenLabel,
8809
8809
  multiline: K,
8810
- size: wj.size,
8811
- startAdornment: fj,
8812
- type: pj
8813
- }, Ij = useUtilityClasses(Fj), Lj = dj.root || d.Root || InputBaseRoot, Rj = uj.root || f.root || {}, zj = dj.input || d.Input || InputBaseInput;
8814
- return Nj = {
8815
- ...Nj,
8816
- ...uj.input ?? f.input
8810
+ size: Oj.size,
8811
+ startAdornment: gj,
8812
+ type: _j
8813
+ }, Bj = useUtilityClasses(zj), Vj = hj.root || d.Root || InputBaseRoot, Hj = mj.root || f.root || {}, Uj = hj.input || d.Input || InputBaseInput;
8814
+ return Lj = {
8815
+ ...Lj,
8816
+ ...mj.input ?? f.input
8817
8817
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
8818
8818
  children: [
8819
8819
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
8820
- (0, import_jsx_runtime.jsxs)(Lj, {
8821
- ...Rj,
8820
+ (0, import_jsx_runtime.jsxs)(Vj, {
8821
+ ...Hj,
8822
8822
  ref: t,
8823
- onClick: jj,
8824
- ...hj,
8825
- ...!isHostComponent_default(Lj) && {
8823
+ onClick: Fj,
8824
+ ...yj,
8825
+ ...!isHostComponent_default(Vj) && {
8826
8826
  ownerState: {
8827
- ...Fj,
8828
- ...Rj.ownerState
8827
+ ...zj,
8828
+ ...Hj.ownerState
8829
8829
  }
8830
8830
  },
8831
- className: clsx_default(Ij.root, Rj.className, s, oj && "MuiInputBase-readOnly"),
8831
+ className: clsx_default(Bj.root, Hj.className, s, uj && "MuiInputBase-readOnly"),
8832
8832
  children: [
8833
- fj,
8833
+ gj,
8834
8834
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
8835
8835
  value: null,
8836
- children: (0, import_jsx_runtime.jsx)(zj, {
8837
- "aria-invalid": wj.error,
8836
+ children: (0, import_jsx_runtime.jsx)(Uj, {
8837
+ "aria-invalid": Oj.error,
8838
8838
  "aria-describedby": i,
8839
8839
  autoComplete: a,
8840
8840
  autoFocus: o,
8841
8841
  defaultValue: h,
8842
- disabled: wj.disabled,
8842
+ disabled: Oj.disabled,
8843
8843
  id: E,
8844
- onAnimationStart: Pj,
8845
- name: nj,
8846
- placeholder: aj,
8847
- readOnly: oj,
8848
- required: wj.required,
8849
- rows: cj,
8850
- value: gj,
8851
- onKeyDown: ij,
8844
+ onAnimationStart: Rj,
8845
+ name: oj,
8846
+ placeholder: lj,
8847
+ readOnly: uj,
8848
+ required: Oj.required,
8849
+ rows: fj,
8850
+ value: bj,
8851
+ onKeyDown: cj,
8852
8852
  onKeyUp: $,
8853
- type: pj,
8854
- ...Nj,
8855
- ...!isHostComponent_default(zj) && {
8856
- as: Mj,
8853
+ type: _j,
8854
+ ...Lj,
8855
+ ...!isHostComponent_default(Uj) && {
8856
+ as: Ij,
8857
8857
  ownerState: {
8858
- ...Fj,
8859
- ...Nj.ownerState
8858
+ ...zj,
8859
+ ...Lj.ownerState
8860
8860
  }
8861
8861
  },
8862
- ref: bj,
8863
- className: clsx_default(Ij.input, Nj.className, oj && "MuiInputBase-readOnly"),
8864
- onBlur: kj,
8865
- onChange: Aj,
8866
- onFocus: Oj
8862
+ ref: wj,
8863
+ className: clsx_default(Bj.input, Lj.className, uj && "MuiInputBase-readOnly"),
8864
+ onBlur: Nj,
8865
+ onChange: Pj,
8866
+ onFocus: Mj
8867
8867
  })
8868
8868
  }),
8869
8869
  y,
8870
- sj ? sj({
8871
- ...wj,
8872
- startAdornment: fj
8870
+ dj ? dj({
8871
+ ...Oj,
8872
+ startAdornment: gj
8873
8873
  }) : null
8874
8874
  ]
8875
8875
  })
@@ -9945,28 +9945,28 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9945
9945
  M,
9946
9946
  i,
9947
9947
  a
9948
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, nj] = useInspect(i, t, a), [q, J] = (0, import_react.useState)(false), rj = useJsonViewerStore((e2) => e2.onChange), Q = useTextColor(), ij = useJsonViewerStore((e2) => e2.colorspace.base0C), $ = useJsonViewerStore((e2) => e2.colorspace.base0A), aj = useJsonViewerStore((e2) => e2.displayComma), oj = useJsonViewerStore((e2) => e2.quotesOnKeys), sj = useJsonViewerStore((e2) => e2.rootName), cj = U === t, lj = Number.isInteger(Number(A)), uj = useJsonViewerStore((e2) => e2.enableAdd), dj = useJsonViewerStore((e2) => e2.onAdd), fj = (0, import_react.useMemo)(() => !dj || a !== void 0 || uj === false || v === false ? false : typeof uj == "function" ? !!uj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
9949
- dj,
9948
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, oj] = useInspect(i, t, a), [q, J] = (0, import_react.useState)(false), sj = useJsonViewerStore((e2) => e2.onChange), Q = useTextColor(), cj = useJsonViewerStore((e2) => e2.colorspace.base0C), $ = useJsonViewerStore((e2) => e2.colorspace.base0A), lj = useJsonViewerStore((e2) => e2.displayComma), uj = useJsonViewerStore((e2) => e2.quotesOnKeys), dj = useJsonViewerStore((e2) => e2.rootName), fj = U === t, pj = Number.isInteger(Number(A)), mj = useJsonViewerStore((e2) => e2.enableAdd), hj = useJsonViewerStore((e2) => e2.onAdd), gj = (0, import_react.useMemo)(() => !hj || a !== void 0 || mj === false || v === false ? false : typeof mj == "function" ? !!mj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
9949
+ hj,
9950
9950
  a,
9951
9951
  i,
9952
- uj,
9952
+ mj,
9953
9953
  v,
9954
9954
  t
9955
- ]), pj = useJsonViewerStore((e2) => e2.enableDelete), mj = useJsonViewerStore((e2) => e2.onDelete), hj = (0, import_react.useMemo)(() => !mj || a !== void 0 || cj || pj === false || v === false ? false : typeof pj == "function" ? !!pj(i, t) : pj, [
9956
- mj,
9955
+ ]), _j = useJsonViewerStore((e2) => e2.enableDelete), vj = useJsonViewerStore((e2) => e2.onDelete), yj = (0, import_react.useMemo)(() => !vj || a !== void 0 || fj || _j === false || v === false ? false : typeof _j == "function" ? !!_j(i, t) : _j, [
9956
+ vj,
9957
9957
  a,
9958
- cj,
9958
+ fj,
9959
9959
  i,
9960
- pj,
9960
+ _j,
9961
9961
  v,
9962
9962
  t
9963
- ]), gj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: _j, copied: vj } = useClipboard(), yj = useJsonViewerStore((e2) => e2.highlightUpdates), bj = (0, import_react.useMemo)(() => !yj || 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, [
9964
- yj,
9963
+ ]), bj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: xj, copied: Sj } = useClipboard(), Cj = useJsonViewerStore((e2) => e2.highlightUpdates), wj = (0, import_react.useMemo)(() => !Cj || 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, [
9964
+ Cj,
9965
9965
  n,
9966
9966
  t
9967
- ]), xj = (0, import_react.useRef)();
9967
+ ]), Tj = (0, import_react.useRef)();
9968
9968
  (0, import_react.useEffect)(() => {
9969
- xj.current && bj && "animate" in xj.current && xj.current.animate([
9969
+ Tj.current && wj && "animate" in Tj.current && Tj.current.animate([
9970
9970
  {
9971
9971
  backgroundColor: $
9972
9972
  },
@@ -9979,39 +9979,39 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9979
9979
  });
9980
9980
  }, [
9981
9981
  $,
9982
- bj,
9982
+ wj,
9983
9983
  n,
9984
9984
  t
9985
9985
  ]);
9986
- let Sj = (0, import_react.useCallback)((e2) => {
9986
+ let Ej = (0, import_react.useCallback)((e2) => {
9987
9987
  e2.preventDefault(), h && E(h(t)), J(true);
9988
9988
  }, [
9989
9989
  h,
9990
9990
  t
9991
- ]), Cj = (0, import_react.useCallback)(() => {
9991
+ ]), Dj = (0, import_react.useCallback)(() => {
9992
9992
  J(false), E("");
9993
9993
  }, [
9994
9994
  J,
9995
9995
  E
9996
- ]), wj = (0, import_react.useCallback)((e2) => {
9996
+ ]), Oj = (0, import_react.useCallback)((e2) => {
9997
9997
  if (J(false), _) try {
9998
- rj(i, t, _(e2));
9998
+ sj(i, t, _(e2));
9999
9999
  } catch {
10000
10000
  }
10001
10001
  }, [
10002
10002
  J,
10003
10003
  _,
10004
- rj,
10004
+ sj,
10005
10005
  i,
10006
10006
  t
10007
- ]), Tj = (0, import_react.useMemo)(() => q ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10007
+ ]), kj = (0, import_react.useMemo)(() => q ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10008
10008
  children: [
10009
10009
  (0, import_jsx_runtime.jsx)(IconBox, {
10010
10010
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
10011
10011
  sx: {
10012
10012
  fontSize: ".8rem"
10013
10013
  },
10014
- onClick: Cj
10014
+ onClick: Dj
10015
10015
  })
10016
10016
  }),
10017
10017
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -10019,22 +10019,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10019
10019
  sx: {
10020
10020
  fontSize: ".8rem"
10021
10021
  },
10022
- onClick: () => wj(w)
10022
+ onClick: () => Oj(w)
10023
10023
  })
10024
10024
  })
10025
10025
  ]
10026
10026
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10027
10027
  children: [
10028
- gj && (0, import_jsx_runtime.jsx)(IconBox, {
10028
+ bj && (0, import_jsx_runtime.jsx)(IconBox, {
10029
10029
  onClick: (e2) => {
10030
10030
  e2.preventDefault();
10031
10031
  try {
10032
- _j(i, t, copyString);
10032
+ xj(i, t, copyString);
10033
10033
  } catch (e3) {
10034
10034
  console.error(e3);
10035
10035
  }
10036
10036
  },
10037
- children: vj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10037
+ children: Sj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10038
10038
  sx: {
10039
10039
  fontSize: ".8rem"
10040
10040
  }
@@ -10045,16 +10045,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10045
10045
  })
10046
10046
  }),
10047
10047
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
10048
- onClick: Sj,
10048
+ onClick: Ej,
10049
10049
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
10050
10050
  sx: {
10051
10051
  fontSize: ".8rem"
10052
10052
  }
10053
10053
  })
10054
10054
  }),
10055
- fj && (0, import_jsx_runtime.jsx)(IconBox, {
10055
+ gj && (0, import_jsx_runtime.jsx)(IconBox, {
10056
10056
  onClick: (e2) => {
10057
- e2.preventDefault(), dj == null ? void 0 : dj(i);
10057
+ e2.preventDefault(), hj == null ? void 0 : hj(i);
10058
10058
  },
10059
10059
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
10060
10060
  sx: {
@@ -10062,9 +10062,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10062
10062
  }
10063
10063
  })
10064
10064
  }),
10065
- hj && (0, import_jsx_runtime.jsx)(IconBox, {
10065
+ yj && (0, import_jsx_runtime.jsx)(IconBox, {
10066
10066
  onClick: (e2) => {
10067
- e2.preventDefault(), mj == null ? void 0 : mj(i, t);
10067
+ e2.preventDefault(), vj == null ? void 0 : vj(i, t);
10068
10068
  },
10069
10069
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
10070
10070
  sx: {
@@ -10077,34 +10077,34 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10077
10077
  f,
10078
10078
  h,
10079
10079
  _,
10080
- vj,
10081
- _j,
10080
+ Sj,
10081
+ xj,
10082
10082
  S,
10083
10083
  q,
10084
+ bj,
10084
10085
  gj,
10085
- fj,
10086
- hj,
10086
+ yj,
10087
10087
  w,
10088
10088
  i,
10089
10089
  t,
10090
- dj,
10091
- mj,
10092
- Sj,
10093
- Cj,
10094
- wj
10095
- ]), Ej = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10090
+ hj,
10091
+ vj,
10092
+ Ej,
10093
+ Dj,
10094
+ Oj
10095
+ ]), Aj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10096
10096
  t
10097
- ]), Dj = !Ej && !!(c && d), Oj = useJsonViewerStore((e2) => e2.keyRenderer), kj = (0, import_react.useMemo)(() => ({
10097
+ ]), jj = !Aj && !!(c && d), Mj = useJsonViewerStore((e2) => e2.keyRenderer), Nj = (0, import_react.useMemo)(() => ({
10098
10098
  path: i,
10099
10099
  inspect: K,
10100
- setInspect: nj,
10100
+ setInspect: oj,
10101
10101
  value: t,
10102
10102
  prevValue: n,
10103
10103
  nestedIndex: a
10104
10104
  }), [
10105
10105
  K,
10106
10106
  i,
10107
- nj,
10107
+ oj,
10108
10108
  t,
10109
10109
  n,
10110
10110
  a
@@ -10131,13 +10131,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10131
10131
  opacity: 0.8
10132
10132
  },
10133
10133
  onClick: (0, import_react.useCallback)((e2) => {
10134
- e2.isDefaultPrevented() || Ej || nj((e3) => !e3);
10134
+ e2.isDefaultPrevented() || Aj || oj((e3) => !e3);
10135
10135
  }, [
10136
- Ej,
10137
- nj
10136
+ Aj,
10137
+ oj
10138
10138
  ]),
10139
10139
  children: [
10140
- Dj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10140
+ jj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10141
10141
  className: "data-key-toggle-expanded",
10142
10142
  sx: {
10143
10143
  fontSize: ".8rem",
@@ -10155,27 +10155,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10155
10155
  }
10156
10156
  }) : null,
10157
10157
  (0, import_jsx_runtime.jsx)(Box_default, {
10158
- ref: xj,
10158
+ ref: Tj,
10159
10159
  className: "data-key-key",
10160
10160
  component: "span",
10161
- children: cj && O === 0 ? sj === false ? null : oj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10161
+ children: fj && O === 0 ? dj === false ? null : uj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10162
10162
  children: [
10163
10163
  '"',
10164
- sj,
10164
+ dj,
10165
10165
  '"'
10166
10166
  ]
10167
10167
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
10168
- children: sj
10169
- }) : Oj.when(kj) ? (0, import_jsx_runtime.jsx)(Oj, {
10170
- ...kj
10171
- }) : a === void 0 && (lj ? (0, import_jsx_runtime.jsx)(Box_default, {
10168
+ children: dj
10169
+ }) : Mj.when(Nj) ? (0, import_jsx_runtime.jsx)(Mj, {
10170
+ ...Nj
10171
+ }) : a === void 0 && (pj ? (0, import_jsx_runtime.jsx)(Box_default, {
10172
10172
  component: "span",
10173
10173
  style: {
10174
- color: ij,
10175
- userSelect: lj ? "none" : "auto"
10174
+ color: cj,
10175
+ userSelect: pj ? "none" : "auto"
10176
10176
  },
10177
10177
  children: A
10178
- }) : oj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10178
+ }) : uj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10179
10179
  children: [
10180
10180
  '"',
10181
10181
  A,
@@ -10185,7 +10185,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10185
10185
  children: A
10186
10186
  }))
10187
10187
  }),
10188
- cj ? sj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10188
+ fj ? dj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10189
10189
  className: "data-key-colon",
10190
10190
  sx: {
10191
10191
  mr: 0.5
@@ -10198,38 +10198,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10198
10198
  ".data-key-key:empty + &": {
10199
10199
  display: "none"
10200
10200
  },
10201
- userSelect: lj ? "none" : "auto"
10201
+ userSelect: pj ? "none" : "auto"
10202
10202
  },
10203
10203
  children: ":"
10204
10204
  }),
10205
10205
  c && (0, import_jsx_runtime.jsx)(c, {
10206
- ...kj
10206
+ ...Nj
10207
10207
  }),
10208
- I && Dj && K && Tj
10208
+ I && jj && K && kj
10209
10209
  ]
10210
10210
  }),
10211
10211
  q && S ? f && (0, import_jsx_runtime.jsx)(f, {
10212
10212
  path: i,
10213
10213
  value: w,
10214
10214
  setValue: E,
10215
- abortEditing: Cj,
10216
- commitEditing: wj
10215
+ abortEditing: Dj,
10216
+ commitEditing: Oj
10217
10217
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
10218
- ...kj
10218
+ ...Nj
10219
10219
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
10220
10220
  component: "span",
10221
10221
  className: "data-value-fallback",
10222
10222
  children: `fallback: ${t}`
10223
10223
  }),
10224
10224
  d && (0, import_jsx_runtime.jsx)(d, {
10225
- ...kj
10225
+ ...Nj
10226
10226
  }),
10227
- !o && aj && (0, import_jsx_runtime.jsx)(DataBox, {
10227
+ !o && lj && (0, import_jsx_runtime.jsx)(DataBox, {
10228
10228
  children: ","
10229
10229
  }),
10230
- I && Dj && !K && Tj,
10231
- I && !Dj && Tj,
10232
- !I && q && Tj
10230
+ I && jj && !K && kj,
10231
+ I && !jj && kj,
10232
+ !I && q && kj
10233
10233
  ]
10234
10234
  });
10235
10235
  }, query = "(prefers-color-scheme: dark)";
@@ -11070,17 +11070,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11070
11070
  }
11071
11071
  let _, v, y, S, w, E;
11072
11072
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11073
- let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A = n.filter(_temp9), M2 = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), nj = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), rj = n.filter(_temp15), Q = n.filter(_temp16), ij = n.filter(_temp17), $;
11073
+ let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A = n.filter(_temp9), M2 = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), oj = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), sj = n.filter(_temp15), Q = n.filter(_temp16), cj = n.filter(_temp17), $;
11074
11074
  t[15] === s ? $ = t[16] : ($ = () => {
11075
11075
  s.openApplication("scratchpad");
11076
11076
  }, t[15] = s, t[16] = $);
11077
- let aj = $, oj = () => {
11077
+ let lj = $, uj = () => {
11078
11078
  let t2 = [];
11079
- if (rj.length > 0 || Q.length > 0) {
11080
- let e3 = rj.some(_temp18), n2 = !e3 && rj.some(_temp19);
11079
+ if (sj.length > 0 || Q.length > 0) {
11080
+ let e3 = sj.some(_temp18), n2 = !e3 && sj.some(_temp19);
11081
11081
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11082
11082
  children: [
11083
- rj.map(_temp20),
11083
+ sj.map(_temp20),
11084
11084
  Q.map(_temp21),
11085
11085
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
11086
11086
  size: "xs",
@@ -11112,7 +11112,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11112
11112
  }),
11113
11113
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11114
11114
  errors: [
11115
- ...rj,
11115
+ ...sj,
11116
11116
  ...Q
11117
11117
  ],
11118
11118
  cellId: i
@@ -11274,7 +11274,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11274
11274
  size: "xs",
11275
11275
  variant: "link",
11276
11276
  className: "my-2 font-normal mx-0 px-0",
11277
- onClick: aj,
11277
+ onClick: lj,
11278
11278
  children: [
11279
11279
  (0, import_jsx_runtime.jsx)(NotebookPen, {
11280
11280
  className: "h-3"
@@ -11365,11 +11365,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11365
11365
  children: U.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
11366
11366
  })
11367
11367
  ]
11368
- }, "strict-exception")), nj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11368
+ }, "strict-exception")), oj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11369
11369
  children: [
11370
- nj.map(_temp32),
11370
+ oj.map(_temp32),
11371
11371
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11372
- errors: nj,
11372
+ errors: oj,
11373
11373
  cellId: i
11374
11374
  })
11375
11375
  ]
@@ -11389,23 +11389,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11389
11389
  cellId: i
11390
11390
  })
11391
11391
  ]
11392
- }, "ancestor-stopped")), ij.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11392
+ }, "ancestor-stopped")), cj.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
11393
11393
  children: [
11394
- ij.map(_temp35),
11394
+ cj.map(_temp35),
11395
11395
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11396
- errors: ij,
11396
+ errors: cj,
11397
11397
  cellId: i,
11398
11398
  className: "mt-2.5"
11399
11399
  })
11400
11400
  ]
11401
11401
  }, "sql-errors")), t2;
11402
- }, sj = `font-code font-medium tracking-wide ${h}`, cj;
11403
- t[17] !== sj || t[18] !== c ? (cj = (0, import_jsx_runtime.jsx)(AlertTitle, {
11404
- className: sj,
11402
+ }, dj = `font-code font-medium tracking-wide ${h}`, fj;
11403
+ t[17] !== dj || t[18] !== c ? (fj = (0, import_jsx_runtime.jsx)(AlertTitle, {
11404
+ className: dj,
11405
11405
  children: c
11406
- }), t[17] = sj, t[18] = c, t[19] = cj) : cj = t[19];
11407
- let lj = cj;
11408
- _ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = lj, v = "flex flex-col gap-8", y = oj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11406
+ }), t[17] = dj, t[18] = c, t[19] = fj) : fj = t[19];
11407
+ let pj = fj;
11408
+ _ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = pj, v = "flex flex-col gap-8", y = uj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11409
11409
  } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
11410
11410
  let O;
11411
11411
  t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
@@ -12294,7 +12294,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12294
12294
  }, [
12295
12295
  h
12296
12296
  ]), k(() => {
12297
- U(6, ij);
12297
+ U(6, cj);
12298
12298
  }, []);
12299
12299
  let K = import_react.useMemo(() => ({
12300
12300
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -12303,7 +12303,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12303
12303
  var _a2;
12304
12304
  var a2, o2, s2;
12305
12305
  if (!Object.is(n.current[e2], t2)) {
12306
- if (n.current[e2] = t2, e2 === "search") Q(), J(), U(1, rj);
12306
+ if (n.current[e2] = t2, e2 === "search") Q(), J(), U(1, sj);
12307
12307
  else if (e2 === "value") {
12308
12308
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
12309
12309
  let e3 = document.getElementById(I);
@@ -12312,7 +12312,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12312
12312
  if (U(7, () => {
12313
12313
  var _a3;
12314
12314
  n.current.selectedItemId = (_a3 = $()) == null ? void 0 : _a3.id, K.emit();
12315
- }), i2 || U(5, ij), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12315
+ }), i2 || U(5, cj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12316
12316
  let e3 = t2 ?? "";
12317
12317
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
12318
12318
  return;
@@ -12324,7 +12324,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12324
12324
  emit: () => {
12325
12325
  s.current.forEach((e2) => e2());
12326
12326
  }
12327
- }), []), nj = import_react.useMemo(() => ({
12327
+ }), []), oj = import_react.useMemo(() => ({
12328
12328
  value: (e2, t2, i2) => {
12329
12329
  var _a2;
12330
12330
  t2 !== ((_a2 = o.current.get(e2)) == null ? void 0 : _a2.value) && (o.current.set(e2, {
@@ -12337,12 +12337,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12337
12337
  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([
12338
12338
  e2
12339
12339
  ]))), U(3, () => {
12340
- Q(), J(), n.current.value || rj(), K.emit();
12340
+ Q(), J(), n.current.value || sj(), K.emit();
12341
12341
  }), () => {
12342
12342
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
12343
12343
  let t3 = $();
12344
12344
  U(4, () => {
12345
- Q(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && rj(), K.emit();
12345
+ Q(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && sj(), K.emit();
12346
12346
  });
12347
12347
  }),
12348
12348
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -12375,7 +12375,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12375
12375
  ]);
12376
12376
  });
12377
12377
  let i2 = z.current;
12378
- aj().sort((t3, n2) => {
12378
+ lj().sort((t3, n2) => {
12379
12379
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
12380
12380
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
12381
12381
  }).forEach((e3) => {
@@ -12387,9 +12387,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12387
12387
  t3 == null ? void 0 : t3.parentElement.appendChild(t3);
12388
12388
  });
12389
12389
  }
12390
- function rj() {
12390
+ function sj() {
12391
12391
  var _a2;
12392
- let e2 = (_a2 = aj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12392
+ let e2 = (_a2 = lj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12393
12393
  K.setState("value", e2 || void 0);
12394
12394
  }
12395
12395
  function Q() {
@@ -12410,7 +12410,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12410
12410
  }
12411
12411
  n.current.filtered.count = e2;
12412
12412
  }
12413
- function ij() {
12413
+ function cj() {
12414
12414
  var _a2, _b;
12415
12415
  var e2;
12416
12416
  let t2 = $();
@@ -12424,29 +12424,29 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12424
12424
  var _a2;
12425
12425
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
12426
12426
  }
12427
- function aj() {
12427
+ function lj() {
12428
12428
  var _a2;
12429
12429
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
12430
12430
  }
12431
- function oj(e2) {
12432
- let t2 = aj()[e2];
12431
+ function uj(e2) {
12432
+ let t2 = lj()[e2];
12433
12433
  t2 && K.setState("value", t2.getAttribute(T));
12434
12434
  }
12435
- function sj(e2) {
12435
+ function dj(e2) {
12436
12436
  var t2;
12437
- let n2 = $(), i2 = aj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12437
+ let n2 = $(), i2 = lj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12438
12438
  (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));
12439
12439
  }
12440
- function cj(e2) {
12440
+ function fj(e2) {
12441
12441
  var _a2;
12442
12442
  let t2 = (_a2 = $()) == null ? void 0 : _a2.closest(N$1), n2;
12443
12443
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
12444
- n2 ? K.setState("value", n2.getAttribute(T)) : sj(e2);
12444
+ n2 ? K.setState("value", n2.getAttribute(T)) : dj(e2);
12445
12445
  }
12446
- let lj = () => oj(aj().length - 1), uj = (e2) => {
12447
- e2.preventDefault(), e2.metaKey ? lj() : e2.altKey ? cj(1) : sj(1);
12448
- }, dj = (e2) => {
12449
- e2.preventDefault(), e2.metaKey ? oj(0) : e2.altKey ? cj(-1) : sj(-1);
12446
+ let pj = () => uj(lj().length - 1), mj = (e2) => {
12447
+ e2.preventDefault(), e2.metaKey ? pj() : e2.altKey ? fj(1) : dj(1);
12448
+ }, hj = (e2) => {
12449
+ e2.preventDefault(), e2.metaKey ? uj(0) : e2.altKey ? fj(-1) : dj(-1);
12450
12450
  };
12451
12451
  return import_react.createElement(Primitive.div, {
12452
12452
  ref: t,
@@ -12460,23 +12460,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12460
12460
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
12461
12461
  case "n":
12462
12462
  case "j":
12463
- E && e2.ctrlKey && uj(e2);
12463
+ E && e2.ctrlKey && mj(e2);
12464
12464
  break;
12465
12465
  case "ArrowDown":
12466
- uj(e2);
12466
+ mj(e2);
12467
12467
  break;
12468
12468
  case "p":
12469
12469
  case "k":
12470
- E && e2.ctrlKey && dj(e2);
12470
+ E && e2.ctrlKey && hj(e2);
12471
12471
  break;
12472
12472
  case "ArrowUp":
12473
- dj(e2);
12473
+ hj(e2);
12474
12474
  break;
12475
12475
  case "Home":
12476
- e2.preventDefault(), oj(0);
12476
+ e2.preventDefault(), uj(0);
12477
12477
  break;
12478
12478
  case "End":
12479
- e2.preventDefault(), lj();
12479
+ e2.preventDefault(), pj();
12480
12480
  break;
12481
12481
  case "Enter": {
12482
12482
  e2.preventDefault();
@@ -12490,13 +12490,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12490
12490
  }
12491
12491
  }, import_react.createElement("label", {
12492
12492
  "cmdk-label": "",
12493
- htmlFor: nj.inputId,
12494
- id: nj.labelId,
12493
+ htmlFor: oj.inputId,
12494
+ id: oj.labelId,
12495
12495
  style: Te
12496
12496
  }, d), B(e, (e2) => import_react.createElement(de.Provider, {
12497
12497
  value: K
12498
12498
  }, import_react.createElement(ue$1.Provider, {
12499
- value: nj
12499
+ value: oj
12500
12500
  }, e2))));
12501
12501
  }), he$1 = import_react.forwardRef((e, t) => {
12502
12502
  var _a2;
@@ -13137,22 +13137,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13137
13137
  },
13138
13138
  "\r": {
13139
13139
  marker: "\\r",
13140
- name: "newline"
13140
+ name: "carriage return"
13141
13141
  }
13142
13142
  };
13143
13143
  function renderWhitespaceMarkers(e) {
13144
13144
  return [
13145
13145
  ...e
13146
- ].map((e2) => {
13147
- var _a2;
13148
- return ((_a2 = WHITESPACE_CHARS[e2]) == null ? void 0 : _a2.marker) ?? e2;
13149
- }).join("");
13146
+ ].map((e2, t) => {
13147
+ let n = WHITESPACE_CHARS[e2];
13148
+ return (0, import_jsx_runtime.jsx)("span", {
13149
+ className: "mr-0.5 last:mr-0",
13150
+ children: n ? n.marker : `\\u${(e2.codePointAt(0) ?? 0).toString(16).padStart(4, "0")}`
13151
+ }, t);
13152
+ });
13150
13153
  }
13151
13154
  function describeWhitespace(e) {
13152
13155
  var _a2;
13153
13156
  let t = {};
13154
13157
  for (let n of e) {
13155
- let e2 = ((_a2 = WHITESPACE_CHARS[n]) == null ? void 0 : _a2.name) ?? "character";
13158
+ let e2 = ((_a2 = WHITESPACE_CHARS[n]) == null ? void 0 : _a2.name) ?? "unicode whitespace";
13156
13159
  t[e2] = (t[e2] ?? 0) + 1;
13157
13160
  }
13158
13161
  return Object.entries(t).map(([e2, t2]) => `${t2} ${e2}${t2 > 1 ? "s" : ""}`).join(", ");
@@ -13194,6 +13197,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13194
13197
  ariaLabel: () => "Not a Time"
13195
13198
  }
13196
13199
  };
13200
+ function WhitespaceMarkers(e) {
13201
+ let t = (0, import_compiler_runtime$26.c)(7), { value: n } = e;
13202
+ if (!n) return null;
13203
+ let i;
13204
+ t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
13205
+ let a = i, o;
13206
+ t[2] === n ? o = t[3] : (o = renderWhitespaceMarkers(n), t[2] = n, t[3] = o);
13207
+ let s;
13208
+ return t[4] !== a || t[5] !== o ? (s = (0, import_jsx_runtime.jsx)("span", {
13209
+ className: "text-muted-foreground opacity-60",
13210
+ "aria-label": a,
13211
+ title: a,
13212
+ children: o
13213
+ }), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
13214
+ }
13197
13215
  function SentinelCell(e) {
13198
13216
  let t = (0, import_compiler_runtime$26.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
13199
13217
  t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
@@ -15566,7 +15584,19 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15566
15584
  var _a2, _b;
15567
15585
  if (e) return (_b = (_a2 = /^datetime(?:64)?\[[^,]+,([^,]+)]$/.exec(e)) == null ? void 0 : _a2[1]) == null ? void 0 : _b.trim();
15568
15586
  }
15569
- var WHITESPACE_ONLY_RE = /^[\s]+$/;
15587
+ var WHITESPACE_ONLY_RE = /^[\s]+$/, WHITESPACE_CHAR_RE = /\s/, EDGE_WHITESPACE_RE = /^(\s*)([\s\S]*?)(\s*)$/;
15588
+ function splitLeadingTrailingWhitespace(e) {
15589
+ let t = {
15590
+ leading: "",
15591
+ middle: "",
15592
+ trailing: ""
15593
+ };
15594
+ if (e.length === 0) return t;
15595
+ let n = WHITESPACE_CHAR_RE.test(e[0]), i = WHITESPACE_CHAR_RE.test(e[e.length - 1]);
15596
+ if (!n && !i) return t.middle = e, t;
15597
+ let a = EDGE_WHITESPACE_RE.exec(e);
15598
+ return a ? (t.leading = a[1] ?? "", t.middle = a[2] ?? "", t.trailing = a[3] ?? "", t) : (t.middle = e, t);
15599
+ }
15570
15600
  loadTableData = async function(e) {
15571
15601
  return Array.isArray(e) ? e : e.startsWith("{") || e.startsWith("[") ? jsonParseWithSpecialChar(e) : (e = await vegaLoadData(e, {
15572
15602
  type: "json"
@@ -16213,11 +16243,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16213
16243
  }, U = [
16214
16244
  n
16215
16245
  ], t[7] = n, t[8] = z, t[9] = U), (0, import_react.useEffect)(z, U);
16216
- let K = d && !y ? false : _, nj = d ? E : null, q = K ? i : a, J;
16217
- return t[10] !== nj || t[11] !== q ? (J = (0, import_jsx_runtime.jsx)("div", {
16218
- ref: nj,
16246
+ let K = d && !y ? false : _, oj = d ? E : null, q = K ? i : a, J;
16247
+ return t[10] !== oj || t[11] !== q ? (J = (0, import_jsx_runtime.jsx)("div", {
16248
+ ref: oj,
16219
16249
  children: q
16220
- }), t[10] = nj, t[11] = q, t[12] = J) : J = t[12], J;
16250
+ }), t[10] = oj, t[11] = q, t[12] = J) : J = t[12], J;
16221
16251
  };
16222
16252
  var import_compiler_runtime$22 = require_compiler_runtime();
16223
16253
  const DatePopover = (e) => {
@@ -17906,50 +17936,61 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17906
17936
  enableHiding: false
17907
17937
  }), O;
17908
17938
  };
17909
- var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, contentClassName: i, buttonText: o, wrapped: s, children: c }) => (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
17910
- container: null,
17911
- children: (0, import_jsx_runtime.jsxs)(Popover, {
17912
- children: [
17913
- (0, import_jsx_runtime.jsx)(PopoverTrigger, {
17914
- className: cn(e, "max-w-fit outline-hidden"),
17915
- onClick: t,
17916
- onMouseDown: (e2) => {
17917
- e2.stopPropagation();
17918
- },
17919
- children: (0, import_jsx_runtime.jsx)("span", {
17920
- className: cn("cursor-pointer hover:text-link", s && "whitespace-pre-wrap min-w-[200px]"),
17921
- title: n,
17922
- children: n
17923
- })
17924
- }),
17925
- (0, import_jsx_runtime.jsxs)(PopoverContent, {
17926
- className: i,
17927
- align: "start",
17928
- alignOffset: 10,
17929
- children: [
17930
- (0, import_jsx_runtime.jsxs)("div", {
17931
- className: "absolute top-2 right-2",
17939
+ var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: o, buttonText: s, wrapped: c, children: f }) => {
17940
+ let h = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
17941
+ return (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
17942
+ container: null,
17943
+ children: (0, import_jsx_runtime.jsxs)(Popover, {
17944
+ children: [
17945
+ (0, import_jsx_runtime.jsx)(PopoverTrigger, {
17946
+ className: cn(e, "max-w-fit outline-hidden"),
17947
+ onClick: t,
17948
+ onMouseDown: (e2) => {
17949
+ e2.stopPropagation();
17950
+ },
17951
+ children: (0, import_jsx_runtime.jsxs)("span", {
17952
+ className: cn("cursor-pointer hover:text-link", c && "whitespace-pre-wrap min-w-[200px]"),
17953
+ title: n,
17932
17954
  children: [
17933
- (0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
17934
- value: n,
17935
- className: "w-2.5 h-2.5",
17936
- tooltip: false
17937
- }),
17938
- (0, import_jsx_runtime.jsx)(PopoverClose, {
17939
- children: (0, import_jsx_runtime.jsx)(Button, {
17940
- variant: "link",
17941
- size: "xs",
17942
- children: o ?? "Close"
17943
- })
17944
- })
17955
+ i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
17956
+ value: i.leading
17957
+ }) : null,
17958
+ h,
17959
+ i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
17960
+ value: i.trailing
17961
+ }) : null
17945
17962
  ]
17946
- }),
17947
- c
17948
- ]
17949
- })
17950
- ]
17951
- })
17952
- });
17963
+ })
17964
+ }),
17965
+ (0, import_jsx_runtime.jsxs)(PopoverContent, {
17966
+ className: o,
17967
+ align: "start",
17968
+ alignOffset: 10,
17969
+ children: [
17970
+ (0, import_jsx_runtime.jsxs)("div", {
17971
+ className: "absolute top-2 right-2",
17972
+ children: [
17973
+ (0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
17974
+ value: n,
17975
+ className: "w-2.5 h-2.5",
17976
+ tooltip: false
17977
+ }),
17978
+ (0, import_jsx_runtime.jsx)(PopoverClose, {
17979
+ children: (0, import_jsx_runtime.jsx)(Button, {
17980
+ variant: "link",
17981
+ size: "xs",
17982
+ children: s ?? "Close"
17983
+ })
17984
+ })
17985
+ ]
17986
+ }),
17987
+ f
17988
+ ]
17989
+ })
17990
+ ]
17991
+ })
17992
+ });
17993
+ };
17953
17994
  function isPrimitiveOrNullish(e) {
17954
17995
  return e == null ? true : typeof e != "object";
17955
17996
  }
@@ -18034,23 +18075,35 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18034
18075
  children: c.toString()
18035
18076
  });
18036
18077
  if (typeof c == "string") {
18037
- let n = d ? String(e.applyColumnFormatting(c)) : String(t()), i2 = parseContent(n);
18038
- return i2.every((e2) => e2.type !== "text") || n.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsx)("div", {
18078
+ let n = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: i2, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n), v2 = parseContent(i2.length > 0 || h2.length > 0 ? f2 : n);
18079
+ return v2.every((e2) => e2.type !== "text") || n.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsxs)("div", {
18039
18080
  onClick: o,
18040
18081
  className: cn(s, _ && "whitespace-pre-wrap min-w-[200px]"),
18041
- children: (0, import_jsx_runtime.jsx)(UrlDetector, {
18042
- parts: i2
18043
- })
18082
+ children: [
18083
+ (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
18084
+ value: i2
18085
+ }),
18086
+ (0, import_jsx_runtime.jsx)(UrlDetector, {
18087
+ parts: v2
18088
+ }),
18089
+ (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
18090
+ value: h2
18091
+ })
18092
+ ]
18044
18093
  }) : (0, import_jsx_runtime.jsx)(PopoutColumn, {
18045
18094
  cellStyles: s,
18046
18095
  selectCell: o,
18047
18096
  rawStringValue: n,
18097
+ edges: {
18098
+ leading: i2,
18099
+ trailing: h2
18100
+ },
18048
18101
  contentClassName: "max-h-64 overflow-auto whitespace-pre-wrap break-words text-sm w-96",
18049
18102
  buttonText: "X",
18050
18103
  wrapped: _,
18051
18104
  children: (0, import_jsx_runtime.jsx)(MarkdownUrlDetector, {
18052
18105
  content: n,
18053
- parts: i2
18106
+ parts: parseContent(n)
18054
18107
  })
18055
18108
  });
18056
18109
  }
@@ -18420,7 +18473,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18420
18473
  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 }) {
18421
18474
  let E = (0, import_react.useContext)(PanelGroupContext);
18422
18475
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
18423
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: nj, resizePanel: q, unregisterPanel: J } = E, rj = useUniqueId(s), Q = (0, import_react.useRef)({
18476
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: oj, resizePanel: q, unregisterPanel: J } = E, sj = useUniqueId(s), Q = (0, import_react.useRef)({
18424
18477
  callbacks: {
18425
18478
  onCollapse: f,
18426
18479
  onExpand: h,
@@ -18433,7 +18486,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18433
18486
  maxSize: c,
18434
18487
  minSize: d
18435
18488
  },
18436
- id: rj,
18489
+ id: sj,
18437
18490
  idIsFromProps: s !== void 0,
18438
18491
  order: v
18439
18492
  });
@@ -18443,16 +18496,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18443
18496
  let { callbacks: e2, constraints: t2 } = Q.current, o2 = {
18444
18497
  ...t2
18445
18498
  };
18446
- Q.current.id = rj, Q.current.idIsFromProps = s !== void 0, Q.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(Q.current, o2);
18499
+ Q.current.id = sj, Q.current.idIsFromProps = s !== void 0, Q.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(Q.current, o2);
18447
18500
  }), useIsomorphicLayoutEffect$1(() => {
18448
18501
  let e2 = Q.current;
18449
- return nj(e2), () => {
18502
+ return oj(e2), () => {
18450
18503
  J(e2);
18451
18504
  };
18452
18505
  }, [
18453
18506
  v,
18454
- rj,
18455
- nj,
18507
+ sj,
18508
+ oj,
18456
18509
  J
18457
18510
  ]), (0, import_react.useImperativeHandle)(o, () => ({
18458
18511
  collapse: () => {
@@ -18462,7 +18515,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18462
18515
  A(Q.current, e2);
18463
18516
  },
18464
18517
  getId() {
18465
- return rj;
18518
+ return sj;
18466
18519
  },
18467
18520
  getSize() {
18468
18521
  return M(Q.current);
@@ -18481,24 +18534,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18481
18534
  A,
18482
18535
  M,
18483
18536
  U,
18484
- rj,
18537
+ sj,
18485
18538
  q
18486
18539
  ]);
18487
- let ij = I(Q.current, a);
18540
+ let cj = I(Q.current, a);
18488
18541
  return (0, import_react.createElement)(S, {
18489
18542
  ...w,
18490
18543
  children: e,
18491
18544
  className: t,
18492
- id: rj,
18545
+ id: sj,
18493
18546
  style: {
18494
- ...ij,
18547
+ ...cj,
18495
18548
  ...y
18496
18549
  },
18497
18550
  [DATA_ATTRIBUTES.groupId]: z,
18498
18551
  [DATA_ATTRIBUTES.panel]: "",
18499
18552
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
18500
- [DATA_ATTRIBUTES.panelId]: rj,
18501
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + ij.flexGrow).toFixed(1)
18553
+ [DATA_ATTRIBUTES.panelId]: sj,
18554
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + cj.flexGrow).toFixed(1)
18502
18555
  });
18503
18556
  }
18504
18557
  var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -19235,7 +19288,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19235
19288
  d
19236
19289
  ]), (0, import_react.useEffect)(() => {
19237
19290
  });
19238
- let nj = (0, import_react.useCallback)((e2) => {
19291
+ let oj = (0, import_react.useCallback)((e2) => {
19239
19292
  let { onLayout: t2 } = U.current, { layout: n2, panelDataArray: i2 } = K.current;
19240
19293
  if (e2.constraints.collapsible) {
19241
19294
  let a2 = i2.map((e3) => e3.constraints), { collapsedSize: o2 = 0, panelSize: s2, pivotIndices: c2 } = panelDataHelper(i2, e2, n2);
@@ -19271,7 +19324,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19271
19324
  }, []), J = (0, import_react.useCallback)((e2) => {
19272
19325
  let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
19273
19326
  return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
19274
- }, []), rj = (0, import_react.useCallback)((e2, t2) => {
19327
+ }, []), sj = (0, import_react.useCallback)((e2, t2) => {
19275
19328
  let { panelDataArray: n2 } = K.current;
19276
19329
  return computePanelFlexBoxStyle({
19277
19330
  defaultSize: t2,
@@ -19286,7 +19339,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19286
19339
  ]), Q = (0, import_react.useCallback)((e2) => {
19287
19340
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19288
19341
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
19289
- }, []), ij = (0, import_react.useCallback)((e2) => {
19342
+ }, []), cj = (0, import_react.useCallback)((e2) => {
19290
19343
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19291
19344
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
19292
19345
  }, []), $ = (0, import_react.useCallback)((e2) => {
@@ -19321,7 +19374,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19321
19374
  e2.layout = [];
19322
19375
  };
19323
19376
  }, []);
19324
- let aj = (0, import_react.useCallback)((e2) => {
19377
+ let lj = (0, import_react.useCallback)((e2) => {
19325
19378
  let t2 = false, n2 = y.current;
19326
19379
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
19327
19380
  n3.preventDefault();
@@ -19339,7 +19392,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19339
19392
  }), I2 = !compareLayouts(f2, A2);
19340
19393
  (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));
19341
19394
  };
19342
- }, []), oj = (0, import_react.useCallback)((e2, t2) => {
19395
+ }, []), uj = (0, import_react.useCallback)((e2, t2) => {
19343
19396
  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);
19344
19397
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
19345
19398
  let d2 = adjustLayoutByDelta({
@@ -19351,12 +19404,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19351
19404
  trigger: "imperative-api"
19352
19405
  });
19353
19406
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
19354
- }, []), sj = (0, import_react.useCallback)((e2, t2) => {
19407
+ }, []), dj = (0, import_react.useCallback)((e2, t2) => {
19355
19408
  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);
19356
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || oj(e2, s2) : h2 < f2 ? oj(e2, f2) : h2 > d2 && oj(e2, d2));
19409
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || uj(e2, s2) : h2 < f2 ? uj(e2, f2) : h2 > d2 && uj(e2, d2));
19357
19410
  }, [
19358
- oj
19359
- ]), cj = (0, import_react.useCallback)((e2, t2) => {
19411
+ uj
19412
+ ]), fj = (0, import_react.useCallback)((e2, t2) => {
19360
19413
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
19361
19414
  if (!y.current) return;
19362
19415
  let a2 = getResizeHandleElement(e2, y.current);
@@ -19368,49 +19421,49 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19368
19421
  initialCursorPosition: o2,
19369
19422
  initialLayout: i2
19370
19423
  });
19371
- }, []), lj = (0, import_react.useCallback)(() => {
19424
+ }, []), pj = (0, import_react.useCallback)(() => {
19372
19425
  w(null);
19373
- }, []), uj = (0, import_react.useCallback)((e2) => {
19426
+ }, []), mj = (0, import_react.useCallback)((e2) => {
19374
19427
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
19375
19428
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
19376
19429
  }, [
19377
19430
  A
19378
- ]), dj = (0, import_react.useMemo)(() => ({
19379
- collapsePanel: nj,
19431
+ ]), hj = (0, import_react.useMemo)(() => ({
19432
+ collapsePanel: oj,
19380
19433
  direction: i,
19381
19434
  dragState: S,
19382
19435
  expandPanel: q,
19383
19436
  getPanelSize: J,
19384
- getPanelStyle: rj,
19437
+ getPanelStyle: sj,
19385
19438
  groupId: v,
19386
19439
  isPanelCollapsed: Q,
19387
- isPanelExpanded: ij,
19388
- reevaluatePanelConstraints: sj,
19440
+ isPanelExpanded: cj,
19441
+ reevaluatePanelConstraints: dj,
19389
19442
  registerPanel: $,
19390
- registerResizeHandle: aj,
19391
- resizePanel: oj,
19392
- startDragging: cj,
19393
- stopDragging: lj,
19394
- unregisterPanel: uj,
19443
+ registerResizeHandle: lj,
19444
+ resizePanel: uj,
19445
+ startDragging: fj,
19446
+ stopDragging: pj,
19447
+ unregisterPanel: mj,
19395
19448
  panelGroupElement: y.current
19396
19449
  }), [
19397
- nj,
19450
+ oj,
19398
19451
  S,
19399
19452
  i,
19400
19453
  q,
19401
19454
  J,
19402
- rj,
19455
+ sj,
19403
19456
  v,
19404
19457
  Q,
19405
- ij,
19406
- sj,
19407
- $,
19408
- aj,
19409
- oj,
19410
19458
  cj,
19459
+ dj,
19460
+ $,
19411
19461
  lj,
19412
- uj
19413
- ]), fj = {
19462
+ uj,
19463
+ fj,
19464
+ pj,
19465
+ mj
19466
+ ]), gj = {
19414
19467
  display: "flex",
19415
19468
  flexDirection: i === "horizontal" ? "row" : "column",
19416
19469
  height: "100%",
@@ -19418,7 +19471,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19418
19471
  width: "100%"
19419
19472
  };
19420
19473
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
19421
- value: dj
19474
+ value: hj
19422
19475
  }, (0, import_react.createElement)(h, {
19423
19476
  ..._,
19424
19477
  children: t,
@@ -19426,7 +19479,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19426
19479
  id: o,
19427
19480
  ref: y,
19428
19481
  style: {
19429
- ...fj,
19482
+ ...gj,
19430
19483
  ...f
19431
19484
  },
19432
19485
  [DATA_ATTRIBUTES.group]: "",
@@ -19503,31 +19556,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19503
19556
  });
19504
19557
  let O = (0, import_react.useContext)(PanelGroupContext);
19505
19558
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
19506
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, nj = useUniqueId(a), [q, J] = (0, import_react.useState)("inactive"), [rj, Q] = (0, import_react.useState)(false), [ij, $] = (0, import_react.useState)(null), aj = (0, import_react.useRef)({
19559
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, oj = useUniqueId(a), [q, J] = (0, import_react.useState)("inactive"), [sj, Q] = (0, import_react.useState)(false), [cj, $] = (0, import_react.useState)(null), lj = (0, import_react.useRef)({
19507
19560
  state: q
19508
19561
  });
19509
19562
  useIsomorphicLayoutEffect$1(() => {
19510
- aj.current.state = q;
19563
+ lj.current.state = q;
19511
19564
  }), (0, import_react.useEffect)(() => {
19512
19565
  if (n) $(null);
19513
19566
  else {
19514
- let e2 = I(nj);
19567
+ let e2 = I(oj);
19515
19568
  $(() => e2);
19516
19569
  }
19517
19570
  }, [
19518
19571
  n,
19519
- nj,
19572
+ oj,
19520
19573
  I
19521
19574
  ]);
19522
- let oj = (i == null ? void 0 : i.coarse) ?? 15, sj = (i == null ? void 0 : i.fine) ?? 5;
19575
+ let uj = (i == null ? void 0 : i.coarse) ?? 15, dj = (i == null ? void 0 : i.fine) ?? 5;
19523
19576
  (0, import_react.useEffect)(() => {
19524
- if (n || ij == null) return;
19577
+ if (n || cj == null) return;
19525
19578
  let e2 = w.current;
19526
19579
  assert(e2, "Element ref not attached");
19527
19580
  let t2 = false;
19528
- return registerResizeHandle(nj, e2, A, {
19529
- coarse: oj,
19530
- fine: sj
19581
+ return registerResizeHandle(oj, e2, A, {
19582
+ coarse: uj,
19583
+ fine: dj
19531
19584
  }, (e3, n2, i2) => {
19532
19585
  if (!n2) {
19533
19586
  J("inactive");
@@ -19535,14 +19588,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19535
19588
  }
19536
19589
  switch (e3) {
19537
19590
  case "down": {
19538
- J("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(nj, i2);
19591
+ J("drag"), t2 = false, assert(i2, 'Expected event to be defined for "down" action'), z(oj, i2);
19539
19592
  let { onDragging: e4, onPointerDown: n3 } = E.current;
19540
19593
  e4 == null ? void 0 : e4(true), n3 == null ? void 0 : n3();
19541
19594
  break;
19542
19595
  }
19543
19596
  case "move": {
19544
- let { state: e4 } = aj.current;
19545
- t2 = true, e4 !== "drag" && J("hover"), assert(i2, 'Expected event to be defined for "move" action'), ij(i2);
19597
+ let { state: e4 } = lj.current;
19598
+ t2 = true, e4 !== "drag" && J("hover"), assert(i2, 'Expected event to be defined for "move" action'), cj(i2);
19546
19599
  break;
19547
19600
  }
19548
19601
  case "up": {
@@ -19554,22 +19607,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19554
19607
  }
19555
19608
  });
19556
19609
  }, [
19557
- oj,
19610
+ uj,
19558
19611
  A,
19559
19612
  n,
19560
- sj,
19613
+ dj,
19561
19614
  I,
19562
- nj,
19563
- ij,
19615
+ oj,
19616
+ cj,
19564
19617
  z,
19565
19618
  U
19566
19619
  ]), useWindowSplitterResizeHandlerBehavior({
19567
19620
  disabled: n,
19568
- handleId: nj,
19569
- resizeHandler: ij,
19621
+ handleId: oj,
19622
+ resizeHandler: cj,
19570
19623
  panelGroupElement: K
19571
19624
  });
19572
- let cj = {
19625
+ let fj = {
19573
19626
  touchAction: "none",
19574
19627
  userSelect: "none"
19575
19628
  };
@@ -19587,16 +19640,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19587
19640
  ref: w,
19588
19641
  role: "separator",
19589
19642
  style: {
19590
- ...cj,
19643
+ ...fj,
19591
19644
  ..._
19592
19645
  },
19593
19646
  tabIndex: v,
19594
19647
  [DATA_ATTRIBUTES.groupDirection]: A,
19595
19648
  [DATA_ATTRIBUTES.groupId]: M,
19596
19649
  [DATA_ATTRIBUTES.resizeHandle]: "",
19597
- [DATA_ATTRIBUTES.resizeHandleActive]: q === "drag" ? "pointer" : rj ? "keyboard" : void 0,
19650
+ [DATA_ATTRIBUTES.resizeHandleActive]: q === "drag" ? "pointer" : sj ? "keyboard" : void 0,
19598
19651
  [DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
19599
- [DATA_ATTRIBUTES.resizeHandleId]: nj,
19652
+ [DATA_ATTRIBUTES.resizeHandleId]: oj,
19600
19653
  [DATA_ATTRIBUTES.resizeHandleState]: q
19601
19654
  });
19602
19655
  }
@@ -21527,7 +21580,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21527
21580
  })
21528
21581
  ]
21529
21582
  }, e2.id);
21530
- }, nj = t.length <= 4, q = t.length + (nj ? 1 : 0);
21583
+ }, oj = t.length <= 4, q = t.length + (oj ? 1 : 0);
21531
21584
  return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
21532
21585
  tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
21533
21586
  onKeyDown: w,
@@ -22326,7 +22379,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22326
22379
  filename: i2.filename
22327
22380
  };
22328
22381
  }, t[5] = e, t[6] = v);
22329
- let w = v, E, O, A, M, I, z, U, K, nj, q, J, rj, Q;
22382
+ let w = v, E, O, A, M, I, z, U, K, oj, q, J, sj, Q;
22330
22383
  if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== w) {
22331
22384
  let e2 = async (t2) => {
22332
22385
  let n2 = await w(t2, () => {
@@ -22373,10 +22426,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22373
22426
  content: "Export",
22374
22427
  open: s2,
22375
22428
  children: c2
22376
- }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, nj = "bottom", q = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22429
+ }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, oj = "bottom", q = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22377
22430
  className: "text-xs text-muted-foreground",
22378
22431
  children: "Download"
22379
- }), t[29] = J) : J = t[29], rj = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22432
+ }), t[29] = J) : J = t[29], sj = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22380
22433
  onSelect: () => {
22381
22434
  e2(t2.format);
22382
22435
  },
@@ -22429,30 +22482,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22429
22482
  ]
22430
22483
  })
22431
22484
  ]
22432
- }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = nj, t[20] = q, t[21] = J, t[22] = rj, t[23] = Q;
22433
- } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], nj = t[19], q = t[20], J = t[21], rj = t[22], Q = t[23];
22434
- let ij;
22435
- t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== nj || t[36] !== q || t[37] !== J || t[38] !== rj || t[39] !== Q ? (ij = (0, import_jsx_runtime.jsxs)(E, {
22436
- side: nj,
22485
+ }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = oj, t[20] = q, t[21] = J, t[22] = sj, t[23] = Q;
22486
+ } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], oj = t[19], q = t[20], J = t[21], sj = t[22], Q = t[23];
22487
+ let cj;
22488
+ t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== oj || t[36] !== q || t[37] !== J || t[38] !== sj || t[39] !== Q ? (cj = (0, import_jsx_runtime.jsxs)(E, {
22489
+ side: oj,
22437
22490
  className: q,
22438
22491
  children: [
22439
22492
  J,
22440
- rj,
22493
+ sj,
22441
22494
  Q,
22442
22495
  A,
22443
22496
  M
22444
22497
  ]
22445
- }), t[32] = E, t[33] = A, t[34] = M, t[35] = nj, t[36] = q, t[37] = J, t[38] = rj, t[39] = Q, t[40] = ij) : ij = t[40];
22498
+ }), t[32] = E, t[33] = A, t[34] = M, t[35] = oj, t[36] = q, t[37] = J, t[38] = sj, t[39] = Q, t[40] = cj) : cj = t[40];
22446
22499
  let $;
22447
- return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== ij ? ($ = (0, import_jsx_runtime.jsxs)(O, {
22500
+ return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== cj ? ($ = (0, import_jsx_runtime.jsxs)(O, {
22448
22501
  modal: I,
22449
22502
  open: z,
22450
22503
  onOpenChange: U,
22451
22504
  children: [
22452
22505
  K,
22453
- ij
22506
+ cj
22454
22507
  ]
22455
- }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = ij, t[47] = $) : $ = t[47], $;
22508
+ }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = cj, t[47] = $) : $ = t[47], $;
22456
22509
  };
22457
22510
  function fetchJson(e) {
22458
22511
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -22543,22 +22596,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22543
22596
  ]
22544
22597
  }) : null;
22545
22598
  };
22546
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: nj, getRowIds: q, enableSearch: J = false, searchQuery: rj, onSearchQueryChange: Q, showFilters: ij = false, filters: $, onFiltersChange: aj, reloading: oj, freezeColumnsLeft: sj, freezeColumnsRight: cj, toggleDisplayHeader: lj, showChartBuilder: uj, isChartBuilderOpen: dj, showPageSizeSelector: fj, showTableExplorer: pj, togglePanel: mj, isPanelOpen: hj, isAnyPanelOpen: gj, viewedRowIdx: _j, onViewedRowChange: vj }) => {
22547
- let [yj, bj] = import_react.useState(false), { locale: xj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: Sj, setColumnPinning: Cj } = useColumnPinning(sj, cj);
22599
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: oj, getRowIds: q, enableSearch: J = false, searchQuery: sj, onSearchQueryChange: Q, showFilters: cj = false, filters: $, onFiltersChange: lj, reloading: uj, freezeColumnsLeft: dj, freezeColumnsRight: fj, toggleDisplayHeader: pj, showChartBuilder: mj, isChartBuilderOpen: hj, showPageSizeSelector: gj, showTableExplorer: _j, togglePanel: vj, isPanelOpen: yj, isAnyPanelOpen: bj, viewedRowIdx: xj, onViewedRowChange: Sj }) => {
22600
+ let [Cj, wj] = import_react.useState(false), { locale: Tj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: Ej, setColumnPinning: Dj } = useColumnPinning(dj, fj);
22548
22601
  import_react.useEffect(() => {
22549
22602
  let e2;
22550
- return oj ? e2 = setTimeout(() => {
22551
- bj(true);
22552
- }, 300) : bj(false), () => {
22603
+ return uj ? e2 = setTimeout(() => {
22604
+ wj(true);
22605
+ }, 300) : wj(false), () => {
22553
22606
  e2 && clearTimeout(e2);
22554
22607
  };
22555
22608
  }, [
22556
- oj
22609
+ uj
22557
22610
  ]);
22558
- function wj(e2, t2) {
22611
+ function Oj(e2, t2) {
22559
22612
  return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
22560
22613
  }
22561
- let Tj = useReactTable({
22614
+ let kj = useReactTable({
22562
22615
  _features: [
22563
22616
  ColumnPinning,
22564
22617
  ColumnWrappingFeature,
@@ -22582,11 +22635,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22582
22635
  getRowId: (e2, t2) => {
22583
22636
  let n2 = getStableRowId(e2);
22584
22637
  if (n2) return n2;
22585
- let i2 = wj(e2, t2);
22638
+ let i2 = Oj(e2, t2);
22586
22639
  return String(i2);
22587
22640
  }
22588
22641
  } : {},
22589
- locale: xj,
22642
+ locale: Tj,
22590
22643
  manualPagination: z,
22591
22644
  getPaginationRowModel: getPaginationRowModel(),
22592
22645
  ...v ? {
@@ -22596,16 +22649,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22596
22649
  enableMultiSort: true,
22597
22650
  getSortedRowModel: getSortedRowModel(),
22598
22651
  manualFiltering: true,
22599
- enableColumnFilters: ij,
22652
+ enableColumnFilters: cj,
22600
22653
  getFilteredRowModel: getFilteredRowModel(),
22601
- onColumnFiltersChange: aj,
22654
+ onColumnFiltersChange: lj,
22602
22655
  onRowSelectionChange: K,
22603
- onCellSelectionChange: nj,
22656
+ onCellSelectionChange: oj,
22604
22657
  enableCellSelection: c === "single-cell" || c === "multi-cell",
22605
22658
  enableMultiCellSelection: c === "multi-cell",
22606
- onColumnPinningChange: Cj,
22659
+ onColumnPinningChange: Dj,
22607
22660
  enableFocusRow: true,
22608
- onFocusRowChange: vj,
22661
+ onFocusRowChange: Sj,
22609
22662
  state: {
22610
22663
  ..._ ? {
22611
22664
  sorting: _
@@ -22622,20 +22675,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22622
22675
  rowSelection: y ?? {},
22623
22676
  cellSelection: S ?? [],
22624
22677
  cellStyling: w,
22625
- columnPinning: Sj,
22678
+ columnPinning: Ej,
22626
22679
  cellHoverTemplate: E,
22627
22680
  cellHoverTexts: O ?? {}
22628
22681
  }
22629
- }), Ej = (hj == null ? void 0 : hj(PANEL_TYPES.ROW_VIEWER)) ?? false, Dj = !U && o.length > 100, Oj = useScrollContainerHeight({
22682
+ }), Aj = (yj == null ? void 0 : yj(PANEL_TYPES.ROW_VIEWER)) ?? false, jj = !U && o.length > 100, Mj = useScrollContainerHeight({
22630
22683
  maxHeight: n,
22631
- virtualize: Dj
22684
+ virtualize: jj
22632
22685
  });
22633
22686
  return (0, import_jsx_runtime.jsxs)("div", {
22634
22687
  className: cn(e, "flex flex-col space-y-1"),
22635
22688
  children: [
22636
22689
  (0, import_jsx_runtime.jsx)(FilterPills, {
22637
22690
  filters: $,
22638
- table: Tj
22691
+ table: kj
22639
22692
  }),
22640
22693
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
22641
22694
  children: (0, import_jsx_runtime.jsxs)("div", {
@@ -22644,32 +22697,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22644
22697
  children: [
22645
22698
  (0, import_jsx_runtime.jsx)(TableTopBar, {
22646
22699
  enableSearch: J,
22647
- searchQuery: rj,
22700
+ searchQuery: sj,
22648
22701
  onSearchQueryChange: Q,
22649
- reloading: oj,
22650
- showChartBuilder: uj,
22651
- isChartBuilderOpen: dj,
22652
- toggleDisplayHeader: lj,
22653
- showTableExplorer: pj,
22654
- togglePanel: mj,
22655
- isAnyPanelOpen: gj,
22702
+ reloading: uj,
22703
+ showChartBuilder: mj,
22704
+ isChartBuilderOpen: hj,
22705
+ toggleDisplayHeader: pj,
22706
+ showTableExplorer: _j,
22707
+ togglePanel: vj,
22708
+ isAnyPanelOpen: bj,
22656
22709
  downloadAs: I
22657
22710
  }),
22658
22711
  (0, import_jsx_runtime.jsxs)(Table, {
22659
22712
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
22660
- ref: Oj,
22713
+ ref: Mj,
22661
22714
  children: [
22662
- yj && (0, import_jsx_runtime.jsx)("thead", {
22715
+ Cj && (0, import_jsx_runtime.jsx)("thead", {
22663
22716
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
22664
22717
  }),
22665
- renderTableHeader(Tj, Dj || !!n),
22718
+ renderTableHeader(kj, jj || !!n),
22666
22719
  (0, import_jsx_runtime.jsx)(DataTableBody, {
22667
- table: Tj,
22720
+ table: kj,
22668
22721
  columns: i,
22669
- rowViewerPanelOpen: Ej,
22670
- getRowIndex: wj,
22671
- viewedRowIdx: _j,
22672
- virtualize: Dj
22722
+ rowViewerPanelOpen: Aj,
22723
+ getRowIndex: Oj,
22724
+ viewedRowIdx: xj,
22725
+ virtualize: jj
22673
22726
  })
22674
22727
  ]
22675
22728
  }),
@@ -22680,10 +22733,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22680
22733
  pagination: U,
22681
22734
  selection: c,
22682
22735
  onRowSelectionChange: K,
22683
- table: Tj,
22736
+ table: kj,
22684
22737
  getRowIds: q,
22685
- showPageSizeSelector: fj,
22686
- tableLoading: oj
22738
+ showPageSizeSelector: gj,
22739
+ tableLoading: uj
22687
22740
  })
22688
22741
  ]
22689
22742
  })
@@ -22771,69 +22824,69 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22771
22824
  ${_}`,
22772
22825
  triggerImmediately: e2
22773
22826
  });
22774
- }, [nj, q] = _.split(":", 2), J = f ? KEY : "", rj;
22775
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rj = () => h(_temp$1), t[10] = rj) : rj = t[10];
22776
- let Q = f ? "rotate-180" : "rotate-0", ij;
22777
- t[11] === Q ? ij = t[12] : (ij = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", Q), t[11] = Q, t[12] = ij);
22827
+ }, [oj, q] = _.split(":", 2), J = f ? KEY : "", sj;
22828
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (sj = () => h(_temp$1), t[10] = sj) : sj = t[10];
22829
+ let Q = f ? "rotate-180" : "rotate-0", cj;
22830
+ t[11] === Q ? cj = t[12] : (cj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", Q), t[11] = Q, t[12] = cj);
22778
22831
  let $;
22779
- t[13] === ij ? $ = t[14] : ($ = (0, import_jsx_runtime.jsx)(ChevronDown, {
22780
- className: ij
22781
- }), t[13] = ij, t[14] = $);
22782
- let aj = nj || "Error", oj;
22783
- t[15] === aj ? oj = t[16] : (oj = (0, import_jsx_runtime.jsxs)("span", {
22832
+ t[13] === cj ? $ = t[14] : ($ = (0, import_jsx_runtime.jsx)(ChevronDown, {
22833
+ className: cj
22834
+ }), t[13] = cj, t[14] = $);
22835
+ let lj = oj || "Error", uj;
22836
+ t[15] === lj ? uj = t[16] : (uj = (0, import_jsx_runtime.jsxs)("span", {
22784
22837
  className: "text-destructive",
22785
22838
  children: [
22786
- aj,
22839
+ lj,
22787
22840
  ":"
22788
22841
  ]
22789
- }), t[15] = aj, t[16] = oj);
22790
- let sj;
22791
- t[17] !== q || t[18] !== oj ? (sj = (0, import_jsx_runtime.jsxs)("div", {
22842
+ }), t[15] = lj, t[16] = uj);
22843
+ let dj;
22844
+ t[17] !== q || t[18] !== uj ? (dj = (0, import_jsx_runtime.jsxs)("div", {
22792
22845
  className: "text-sm inline font-mono",
22793
22846
  children: [
22794
- oj,
22847
+ uj,
22795
22848
  " ",
22796
22849
  q
22797
22850
  ]
22798
- }), t[17] = q, t[18] = oj, t[19] = sj) : sj = t[19];
22799
- let cj;
22800
- t[20] !== sj || t[21] !== $ ? (cj = (0, import_jsx_runtime.jsxs)("div", {
22851
+ }), t[17] = q, t[18] = uj, t[19] = dj) : dj = t[19];
22852
+ let fj;
22853
+ t[20] !== dj || t[21] !== $ ? (fj = (0, import_jsx_runtime.jsxs)("div", {
22801
22854
  className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
22802
- onClick: rj,
22855
+ onClick: sj,
22803
22856
  children: [
22804
22857
  $,
22805
- sj
22858
+ dj
22806
22859
  ]
22807
- }), t[20] = sj, t[21] = $, t[22] = cj) : cj = t[22];
22808
- let lj;
22809
- t[23] === c ? lj = t[24] : (lj = (0, import_jsx_runtime.jsx)(AccordionContent, {
22860
+ }), t[20] = dj, t[21] = $, t[22] = fj) : fj = t[22];
22861
+ let pj;
22862
+ t[23] === c ? pj = t[24] : (pj = (0, import_jsx_runtime.jsx)(AccordionContent, {
22810
22863
  className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
22811
22864
  children: c
22812
- }), t[23] = c, t[24] = lj);
22813
- let uj;
22814
- t[25] !== cj || t[26] !== lj ? (uj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
22865
+ }), t[23] = c, t[24] = pj);
22866
+ let mj;
22867
+ t[25] !== fj || t[26] !== pj ? (mj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
22815
22868
  value: KEY,
22816
22869
  className: "border-none",
22817
22870
  children: [
22818
- cj,
22819
- lj
22871
+ fj,
22872
+ pj
22820
22873
  ]
22821
- }), t[25] = cj, t[26] = lj, t[27] = uj) : uj = t[27];
22822
- let dj;
22823
- t[28] !== uj || t[29] !== J ? (dj = (0, import_jsx_runtime.jsx)(Accordion, {
22874
+ }), t[25] = fj, t[26] = pj, t[27] = mj) : mj = t[27];
22875
+ let hj;
22876
+ t[28] !== mj || t[29] !== J ? (hj = (0, import_jsx_runtime.jsx)(Accordion, {
22824
22877
  type: "single",
22825
22878
  collapsible: true,
22826
22879
  value: J,
22827
- children: uj
22828
- }), t[28] = uj, t[29] = J, t[30] = dj) : dj = t[30];
22829
- let fj;
22830
- t[31] !== K || t[32] !== z ? (fj = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
22880
+ children: mj
22881
+ }), t[28] = mj, t[29] = J, t[30] = hj) : hj = t[30];
22882
+ let gj;
22883
+ t[31] !== K || t[32] !== z ? (gj = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
22831
22884
  tooltip: "Fix with AI",
22832
22885
  openPrompt: () => K(false),
22833
22886
  applyAutofix: () => K(true)
22834
- }), t[31] = K, t[32] = z, t[33] = fj) : fj = t[33];
22835
- let mj;
22836
- t[34] !== A || t[35] !== E ? (mj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
22887
+ }), t[31] = K, t[32] = z, t[33] = gj) : gj = t[33];
22888
+ let vj;
22889
+ t[34] !== A || t[35] !== E ? (vj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
22837
22890
  content: "Attach pdb to the exception point.",
22838
22891
  children: (0, import_jsx_runtime.jsxs)(Button, {
22839
22892
  size: "xs",
@@ -22850,9 +22903,9 @@ ${_}`,
22850
22903
  "Launch debugger"
22851
22904
  ]
22852
22905
  })
22853
- }), t[34] = A, t[35] = E, t[36] = mj) : mj = t[36];
22854
- let vj;
22855
- t[37] !== _ || t[38] !== i ? (vj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
22906
+ }), t[34] = A, t[35] = E, t[36] = vj) : vj = t[36];
22907
+ let Sj;
22908
+ t[37] !== _ || t[38] !== i ? (Sj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
22856
22909
  children: [
22857
22910
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
22858
22911
  asChild: true,
@@ -22920,24 +22973,24 @@ ${_}`,
22920
22973
  ]
22921
22974
  })
22922
22975
  ]
22923
- }), t[37] = _, t[38] = i, t[39] = vj) : vj = t[39];
22924
- let yj;
22925
- t[40] !== fj || t[41] !== mj || t[42] !== vj ? (yj = (0, import_jsx_runtime.jsxs)("div", {
22976
+ }), t[37] = _, t[38] = i, t[39] = Sj) : Sj = t[39];
22977
+ let Cj;
22978
+ t[40] !== gj || t[41] !== vj || t[42] !== Sj ? (Cj = (0, import_jsx_runtime.jsxs)("div", {
22926
22979
  className: "flex gap-2",
22927
22980
  children: [
22928
- fj,
22929
- mj,
22930
- vj
22981
+ gj,
22982
+ vj,
22983
+ Sj
22931
22984
  ]
22932
- }), t[40] = fj, t[41] = mj, t[42] = vj, t[43] = yj) : yj = t[43];
22933
- let bj;
22934
- return t[44] !== dj || t[45] !== yj ? (bj = (0, import_jsx_runtime.jsxs)("div", {
22985
+ }), t[40] = gj, t[41] = vj, t[42] = Sj, t[43] = Cj) : Cj = t[43];
22986
+ let wj;
22987
+ return t[44] !== hj || t[45] !== Cj ? (wj = (0, import_jsx_runtime.jsxs)("div", {
22935
22988
  className: "flex flex-col gap-2 min-w-full w-fit",
22936
22989
  children: [
22937
- dj,
22938
- yj
22990
+ hj,
22991
+ Cj
22939
22992
  ]
22940
- }), t[44] = dj, t[45] = yj, t[46] = bj) : bj = t[46], bj;
22993
+ }), t[44] = hj, t[45] = Cj, t[46] = wj) : wj = t[46], wj;
22941
22994
  };
22942
22995
  function lastLine(e) {
22943
22996
  var _a2, _b;