@marimo-team/islands 0.23.6-dev10 → 0.23.6-dev12
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.
|
@@ -45,7 +45,7 @@ let __tla = Promise.all([
|
|
|
45
45
|
})()
|
|
46
46
|
]).then(async () => {
|
|
47
47
|
var _a;
|
|
48
|
-
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, LayoutTemplate, ListFilterPlus, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
|
|
48
|
+
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, Keyboard, LayoutTemplate, ListFilterPlus, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
|
|
49
49
|
ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
|
|
50
50
|
[
|
|
51
51
|
"path",
|
|
@@ -670,6 +670,75 @@ let __tla = Promise.all([
|
|
|
670
670
|
}
|
|
671
671
|
]
|
|
672
672
|
]);
|
|
673
|
+
Keyboard = createLucideIcon("keyboard", [
|
|
674
|
+
[
|
|
675
|
+
"path",
|
|
676
|
+
{
|
|
677
|
+
d: "M10 8h.01",
|
|
678
|
+
key: "1r9ogq"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
[
|
|
682
|
+
"path",
|
|
683
|
+
{
|
|
684
|
+
d: "M12 12h.01",
|
|
685
|
+
key: "1mp3jc"
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
[
|
|
689
|
+
"path",
|
|
690
|
+
{
|
|
691
|
+
d: "M14 8h.01",
|
|
692
|
+
key: "1primd"
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
[
|
|
696
|
+
"path",
|
|
697
|
+
{
|
|
698
|
+
d: "M16 12h.01",
|
|
699
|
+
key: "1l6xoz"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
[
|
|
703
|
+
"path",
|
|
704
|
+
{
|
|
705
|
+
d: "M18 8h.01",
|
|
706
|
+
key: "emo2bl"
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
[
|
|
710
|
+
"path",
|
|
711
|
+
{
|
|
712
|
+
d: "M6 8h.01",
|
|
713
|
+
key: "x9i8wu"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
[
|
|
717
|
+
"path",
|
|
718
|
+
{
|
|
719
|
+
d: "M7 16h10",
|
|
720
|
+
key: "wp8him"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
[
|
|
724
|
+
"path",
|
|
725
|
+
{
|
|
726
|
+
d: "M8 12h.01",
|
|
727
|
+
key: "czm47f"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
[
|
|
731
|
+
"rect",
|
|
732
|
+
{
|
|
733
|
+
width: "20",
|
|
734
|
+
height: "16",
|
|
735
|
+
x: "2",
|
|
736
|
+
y: "4",
|
|
737
|
+
rx: "2",
|
|
738
|
+
key: "18n3k1"
|
|
739
|
+
}
|
|
740
|
+
]
|
|
741
|
+
]);
|
|
673
742
|
LayoutTemplate = createLucideIcon("layout-template", [
|
|
674
743
|
[
|
|
675
744
|
"rect",
|
|
@@ -7481,33 +7550,33 @@ try {
|
|
|
7481
7550
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7482
7551
|
function y(e2) {
|
|
7483
7552
|
var _a2, _b, _c, _d;
|
|
7484
|
-
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),
|
|
7553
|
+
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), rN = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7485
7554
|
h2
|
|
7486
|
-
]),
|
|
7487
|
-
|
|
7488
|
-
]),
|
|
7489
|
-
supportedColorSchemes:
|
|
7490
|
-
defaultLightColorScheme:
|
|
7491
|
-
defaultDarkColorScheme:
|
|
7555
|
+
]), iN = $[t], aN = iN || $, { colorSchemes: oN = _, components: sN = v, cssVarPrefix: cN } = aN, lN = Object.keys(oN).filter((e3) => !!oN[e3]).join(","), uN = import_react.useMemo(() => lN.split(","), [
|
|
7556
|
+
lN
|
|
7557
|
+
]), dN = typeof s == "string" ? s : s.light, fN = typeof s == "string" ? s : s.dark, { mode: pN, setMode: mN, systemMode: hN, lightColorScheme: gN, darkColorScheme: _N, colorScheme: vN, setColorScheme: yN } = useCurrentColorScheme({
|
|
7558
|
+
supportedColorSchemes: uN,
|
|
7559
|
+
defaultLightColorScheme: dN,
|
|
7560
|
+
defaultDarkColorScheme: fN,
|
|
7492
7561
|
modeStorageKey: y2,
|
|
7493
7562
|
colorSchemeStorageKey: S2,
|
|
7494
|
-
defaultMode:
|
|
7563
|
+
defaultMode: oN[dN] && oN[fN] ? U : ((_b = (_a2 = oN[aN.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = aN.palette) == null ? void 0 : _c.mode),
|
|
7495
7564
|
storageManager: E,
|
|
7496
7565
|
storageWindow: O,
|
|
7497
7566
|
noSsr: K
|
|
7498
|
-
}),
|
|
7499
|
-
|
|
7500
|
-
let
|
|
7567
|
+
}), bN = pN, xN = vN;
|
|
7568
|
+
rN && (bN = Q.mode, xN = Q.colorScheme);
|
|
7569
|
+
let SN = import_react.useMemo(() => {
|
|
7501
7570
|
var _a3;
|
|
7502
|
-
let e3 =
|
|
7503
|
-
|
|
7504
|
-
components:
|
|
7505
|
-
colorSchemes:
|
|
7506
|
-
cssVarPrefix:
|
|
7571
|
+
let e3 = xN || aN.defaultColorScheme, t2 = ((_a3 = aN.generateThemeVars) == null ? void 0 : _a3.call(aN)) || aN.vars, n2 = {
|
|
7572
|
+
...aN,
|
|
7573
|
+
components: sN,
|
|
7574
|
+
colorSchemes: oN,
|
|
7575
|
+
cssVarPrefix: cN,
|
|
7507
7576
|
vars: t2
|
|
7508
7577
|
};
|
|
7509
7578
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7510
|
-
let t3 =
|
|
7579
|
+
let t3 = oN[e3];
|
|
7511
7580
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7512
7581
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7513
7582
|
...n2[e4],
|
|
@@ -7517,31 +7586,31 @@ try {
|
|
|
7517
7586
|
}
|
|
7518
7587
|
return c ? c(n2) : n2;
|
|
7519
7588
|
}, [
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
]),
|
|
7589
|
+
aN,
|
|
7590
|
+
xN,
|
|
7591
|
+
sN,
|
|
7592
|
+
oN,
|
|
7593
|
+
cN
|
|
7594
|
+
]), CN = aN.colorSchemeSelector;
|
|
7526
7595
|
useEnhancedEffect_default(() => {
|
|
7527
|
-
if (
|
|
7528
|
-
let e3 =
|
|
7529
|
-
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(...
|
|
7596
|
+
if (xN && M && CN && CN !== "media") {
|
|
7597
|
+
let e3 = CN, t2 = CN;
|
|
7598
|
+
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(...uN.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", xN));
|
|
7530
7599
|
else {
|
|
7531
|
-
let e4 = t2.replace("%s",
|
|
7600
|
+
let e4 = t2.replace("%s", xN).match(/\[([^\]]+)\]/);
|
|
7532
7601
|
if (e4) {
|
|
7533
7602
|
let [t3, n2] = e4[1].split("=");
|
|
7534
|
-
n2 ||
|
|
7535
|
-
M.removeAttribute(t3.replace(
|
|
7603
|
+
n2 || uN.forEach((e5) => {
|
|
7604
|
+
M.removeAttribute(t3.replace(xN, e5));
|
|
7536
7605
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7537
|
-
} else M.setAttribute(t2,
|
|
7606
|
+
} else M.setAttribute(t2, xN);
|
|
7538
7607
|
}
|
|
7539
7608
|
}
|
|
7540
7609
|
}, [
|
|
7541
|
-
|
|
7542
|
-
|
|
7610
|
+
xN,
|
|
7611
|
+
CN,
|
|
7543
7612
|
M,
|
|
7544
|
-
|
|
7613
|
+
uN
|
|
7545
7614
|
]), import_react.useEffect(() => {
|
|
7546
7615
|
let e3;
|
|
7547
7616
|
if (w2 && q.current && A) {
|
|
@@ -7554,48 +7623,48 @@ try {
|
|
|
7554
7623
|
clearTimeout(e3);
|
|
7555
7624
|
};
|
|
7556
7625
|
}, [
|
|
7557
|
-
|
|
7626
|
+
xN,
|
|
7558
7627
|
w2,
|
|
7559
7628
|
A
|
|
7560
7629
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7561
7630
|
q.current = false;
|
|
7562
7631
|
}), []);
|
|
7563
|
-
let
|
|
7564
|
-
allColorSchemes:
|
|
7565
|
-
colorScheme:
|
|
7566
|
-
darkColorScheme:
|
|
7567
|
-
lightColorScheme:
|
|
7568
|
-
mode:
|
|
7569
|
-
setColorScheme:
|
|
7570
|
-
setMode:
|
|
7571
|
-
systemMode:
|
|
7632
|
+
let wN = import_react.useMemo(() => ({
|
|
7633
|
+
allColorSchemes: uN,
|
|
7634
|
+
colorScheme: xN,
|
|
7635
|
+
darkColorScheme: _N,
|
|
7636
|
+
lightColorScheme: gN,
|
|
7637
|
+
mode: bN,
|
|
7638
|
+
setColorScheme: yN,
|
|
7639
|
+
setMode: mN,
|
|
7640
|
+
systemMode: hN
|
|
7572
7641
|
}), [
|
|
7573
|
-
iN,
|
|
7574
|
-
hN,
|
|
7575
|
-
dN,
|
|
7576
7642
|
uN,
|
|
7643
|
+
xN,
|
|
7644
|
+
_N,
|
|
7645
|
+
gN,
|
|
7646
|
+
bN,
|
|
7647
|
+
yN,
|
|
7577
7648
|
mN,
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
(z || $M.cssVariables === false || ZM && (J == null ? void 0 : J.cssVarPrefix) === nN) && (yN = false);
|
|
7584
|
-
let bN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7649
|
+
hN,
|
|
7650
|
+
SN.colorSchemeSelector
|
|
7651
|
+
]), TN = true;
|
|
7652
|
+
(z || aN.cssVariables === false || rN && (J == null ? void 0 : J.cssVarPrefix) === cN) && (TN = false);
|
|
7653
|
+
let EN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7585
7654
|
children: [
|
|
7586
7655
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7587
|
-
themeId:
|
|
7588
|
-
theme:
|
|
7656
|
+
themeId: iN ? t : void 0,
|
|
7657
|
+
theme: SN,
|
|
7589
7658
|
children: d2
|
|
7590
7659
|
}),
|
|
7591
|
-
|
|
7592
|
-
styles: ((_d =
|
|
7660
|
+
TN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7661
|
+
styles: ((_d = SN.generateStyleSheets) == null ? void 0 : _d.call(SN)) || []
|
|
7593
7662
|
})
|
|
7594
7663
|
]
|
|
7595
7664
|
});
|
|
7596
|
-
return
|
|
7597
|
-
value:
|
|
7598
|
-
children:
|
|
7665
|
+
return rN ? EN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7666
|
+
value: wN,
|
|
7667
|
+
children: EN
|
|
7599
7668
|
});
|
|
7600
7669
|
}
|
|
7601
7670
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9095,10 +9164,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9095
9164
|
let n = useDefaultProps({
|
|
9096
9165
|
props: e,
|
|
9097
9166
|
name: "MuiInputBase"
|
|
9098
|
-
}), { "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:
|
|
9099
|
-
}, []),
|
|
9167
|
+
}), { "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: rN, onFocus: $, onKeyDown: iN, onKeyUp: aN, placeholder: oN, readOnly: sN, renderSuffix: cN, rows: lN, size: uN, slotProps: dN = {}, slots: fN = {}, startAdornment: pN, type: mN = "text", value: hN, ...gN } = n, _N = A.value == null ? hN : A.value, { current: vN } = import_react.useRef(_N != null), yN = import_react.useRef(), bN = import_react.useCallback((e2) => {
|
|
9168
|
+
}, []), xN = useForkRef_default(yN, M, A.ref, bN), [SN, CN] = import_react.useState(false), wN = useFormControl(), TN = formControlState({
|
|
9100
9169
|
props: n,
|
|
9101
|
-
muiFormControl:
|
|
9170
|
+
muiFormControl: wN,
|
|
9102
9171
|
states: [
|
|
9103
9172
|
"color",
|
|
9104
9173
|
"disabled",
|
|
@@ -9109,145 +9178,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9109
9178
|
"filled"
|
|
9110
9179
|
]
|
|
9111
9180
|
});
|
|
9112
|
-
|
|
9113
|
-
!
|
|
9181
|
+
TN.focused = wN ? wN.focused : SN, import_react.useEffect(() => {
|
|
9182
|
+
!wN && _ && SN && (CN(false), J && J());
|
|
9114
9183
|
}, [
|
|
9115
|
-
|
|
9184
|
+
wN,
|
|
9116
9185
|
_,
|
|
9117
|
-
|
|
9186
|
+
SN,
|
|
9118
9187
|
J
|
|
9119
9188
|
]);
|
|
9120
|
-
let
|
|
9121
|
-
isFilled(e2) ?
|
|
9189
|
+
let EN = wN && wN.onFilled, DN = wN && wN.onEmpty, ON = import_react.useCallback((e2) => {
|
|
9190
|
+
isFilled(e2) ? EN && EN() : DN && DN();
|
|
9122
9191
|
}, [
|
|
9123
|
-
|
|
9124
|
-
|
|
9192
|
+
EN,
|
|
9193
|
+
DN
|
|
9125
9194
|
]);
|
|
9126
9195
|
useEnhancedEffect_default$1(() => {
|
|
9127
|
-
|
|
9128
|
-
value:
|
|
9196
|
+
vN && ON({
|
|
9197
|
+
value: _N
|
|
9129
9198
|
});
|
|
9130
9199
|
}, [
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9200
|
+
_N,
|
|
9201
|
+
ON,
|
|
9202
|
+
vN
|
|
9134
9203
|
]);
|
|
9135
|
-
let
|
|
9136
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9137
|
-
},
|
|
9138
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9139
|
-
},
|
|
9140
|
-
if (!
|
|
9141
|
-
let t3 = e2.target ||
|
|
9204
|
+
let kN = (e2) => {
|
|
9205
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), wN && wN.onFocus ? wN.onFocus(e2) : CN(true);
|
|
9206
|
+
}, AN = (e2) => {
|
|
9207
|
+
J && J(e2), A.onBlur && A.onBlur(e2), wN && wN.onBlur ? wN.onBlur(e2) : CN(false);
|
|
9208
|
+
}, jN = (e2, ...t2) => {
|
|
9209
|
+
if (!vN) {
|
|
9210
|
+
let t3 = e2.target || yN.current;
|
|
9142
9211
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9143
|
-
|
|
9212
|
+
ON({
|
|
9144
9213
|
value: t3.value
|
|
9145
9214
|
});
|
|
9146
9215
|
}
|
|
9147
9216
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9148
9217
|
};
|
|
9149
9218
|
import_react.useEffect(() => {
|
|
9150
|
-
|
|
9219
|
+
ON(yN.current);
|
|
9151
9220
|
}, []);
|
|
9152
|
-
let
|
|
9153
|
-
|
|
9154
|
-
},
|
|
9155
|
-
K &&
|
|
9221
|
+
let MN = (e2) => {
|
|
9222
|
+
yN.current && e2.currentTarget === e2.target && yN.current.focus(), rN && rN(e2);
|
|
9223
|
+
}, NN = O, PN = A;
|
|
9224
|
+
K && NN === "input" && (PN = lN ? {
|
|
9156
9225
|
type: void 0,
|
|
9157
|
-
minRows:
|
|
9158
|
-
maxRows:
|
|
9159
|
-
...
|
|
9226
|
+
minRows: lN,
|
|
9227
|
+
maxRows: lN,
|
|
9228
|
+
...PN
|
|
9160
9229
|
} : {
|
|
9161
9230
|
type: void 0,
|
|
9162
9231
|
maxRows: z,
|
|
9163
9232
|
minRows: U,
|
|
9164
|
-
...
|
|
9165
|
-
},
|
|
9166
|
-
let
|
|
9167
|
-
|
|
9233
|
+
...PN
|
|
9234
|
+
}, NN = TextareaAutosize_default);
|
|
9235
|
+
let FN = (e2) => {
|
|
9236
|
+
ON(e2.animationName === "mui-auto-fill-cancel" ? yN.current : {
|
|
9168
9237
|
value: "x"
|
|
9169
9238
|
});
|
|
9170
9239
|
};
|
|
9171
9240
|
import_react.useEffect(() => {
|
|
9172
|
-
|
|
9241
|
+
wN && wN.setAdornedStart(!!pN);
|
|
9173
9242
|
}, [
|
|
9174
|
-
|
|
9175
|
-
|
|
9243
|
+
wN,
|
|
9244
|
+
pN
|
|
9176
9245
|
]);
|
|
9177
|
-
let
|
|
9246
|
+
let IN = {
|
|
9178
9247
|
...n,
|
|
9179
|
-
color:
|
|
9180
|
-
disabled:
|
|
9248
|
+
color: TN.color || "primary",
|
|
9249
|
+
disabled: TN.disabled,
|
|
9181
9250
|
endAdornment: y,
|
|
9182
|
-
error:
|
|
9183
|
-
focused:
|
|
9184
|
-
formControl:
|
|
9251
|
+
error: TN.error,
|
|
9252
|
+
focused: TN.focused,
|
|
9253
|
+
formControl: wN,
|
|
9185
9254
|
fullWidth: w,
|
|
9186
|
-
hiddenLabel:
|
|
9255
|
+
hiddenLabel: TN.hiddenLabel,
|
|
9187
9256
|
multiline: K,
|
|
9188
|
-
size:
|
|
9189
|
-
startAdornment:
|
|
9190
|
-
type:
|
|
9191
|
-
},
|
|
9192
|
-
return
|
|
9193
|
-
...
|
|
9194
|
-
...
|
|
9257
|
+
size: TN.size,
|
|
9258
|
+
startAdornment: pN,
|
|
9259
|
+
type: mN
|
|
9260
|
+
}, LN = useUtilityClasses(IN), RN = fN.root || d.Root || InputBaseRoot, zN = dN.root || f.root || {}, BN = fN.input || d.Input || InputBaseInput;
|
|
9261
|
+
return PN = {
|
|
9262
|
+
...PN,
|
|
9263
|
+
...dN.input ?? f.input
|
|
9195
9264
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9196
9265
|
children: [
|
|
9197
9266
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9198
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9199
|
-
...
|
|
9267
|
+
(0, import_jsx_runtime.jsxs)(RN, {
|
|
9268
|
+
...zN,
|
|
9200
9269
|
ref: t,
|
|
9201
|
-
onClick:
|
|
9202
|
-
...
|
|
9203
|
-
...!isHostComponent_default(
|
|
9270
|
+
onClick: MN,
|
|
9271
|
+
...gN,
|
|
9272
|
+
...!isHostComponent_default(RN) && {
|
|
9204
9273
|
ownerState: {
|
|
9205
|
-
...
|
|
9206
|
-
...
|
|
9274
|
+
...IN,
|
|
9275
|
+
...zN.ownerState
|
|
9207
9276
|
}
|
|
9208
9277
|
},
|
|
9209
|
-
className: clsx_default(
|
|
9278
|
+
className: clsx_default(LN.root, zN.className, s, sN && "MuiInputBase-readOnly"),
|
|
9210
9279
|
children: [
|
|
9211
|
-
|
|
9280
|
+
pN,
|
|
9212
9281
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9213
9282
|
value: null,
|
|
9214
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9215
|
-
"aria-invalid":
|
|
9283
|
+
children: (0, import_jsx_runtime.jsx)(BN, {
|
|
9284
|
+
"aria-invalid": TN.error,
|
|
9216
9285
|
"aria-describedby": i,
|
|
9217
9286
|
autoComplete: a,
|
|
9218
9287
|
autoFocus: o,
|
|
9219
9288
|
defaultValue: h,
|
|
9220
|
-
disabled:
|
|
9289
|
+
disabled: TN.disabled,
|
|
9221
9290
|
id: E,
|
|
9222
|
-
onAnimationStart:
|
|
9291
|
+
onAnimationStart: FN,
|
|
9223
9292
|
name: q,
|
|
9224
|
-
placeholder:
|
|
9225
|
-
readOnly:
|
|
9226
|
-
required:
|
|
9227
|
-
rows:
|
|
9228
|
-
value:
|
|
9229
|
-
onKeyDown:
|
|
9230
|
-
onKeyUp:
|
|
9231
|
-
type:
|
|
9232
|
-
...
|
|
9233
|
-
...!isHostComponent_default(
|
|
9234
|
-
as:
|
|
9293
|
+
placeholder: oN,
|
|
9294
|
+
readOnly: sN,
|
|
9295
|
+
required: TN.required,
|
|
9296
|
+
rows: lN,
|
|
9297
|
+
value: _N,
|
|
9298
|
+
onKeyDown: iN,
|
|
9299
|
+
onKeyUp: aN,
|
|
9300
|
+
type: mN,
|
|
9301
|
+
...PN,
|
|
9302
|
+
...!isHostComponent_default(BN) && {
|
|
9303
|
+
as: NN,
|
|
9235
9304
|
ownerState: {
|
|
9236
|
-
...
|
|
9237
|
-
...
|
|
9305
|
+
...IN,
|
|
9306
|
+
...PN.ownerState
|
|
9238
9307
|
}
|
|
9239
9308
|
},
|
|
9240
|
-
ref:
|
|
9241
|
-
className: clsx_default(
|
|
9242
|
-
onBlur:
|
|
9243
|
-
onChange:
|
|
9244
|
-
onFocus:
|
|
9309
|
+
ref: xN,
|
|
9310
|
+
className: clsx_default(LN.input, PN.className, sN && "MuiInputBase-readOnly"),
|
|
9311
|
+
onBlur: AN,
|
|
9312
|
+
onChange: jN,
|
|
9313
|
+
onFocus: kN
|
|
9245
9314
|
})
|
|
9246
9315
|
}),
|
|
9247
9316
|
y,
|
|
9248
|
-
|
|
9249
|
-
...
|
|
9250
|
-
startAdornment:
|
|
9317
|
+
cN ? cN({
|
|
9318
|
+
...TN,
|
|
9319
|
+
startAdornment: pN
|
|
9251
9320
|
}) : null
|
|
9252
9321
|
]
|
|
9253
9322
|
})
|
|
@@ -10323,30 +10392,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10323
10392
|
M,
|
|
10324
10393
|
i,
|
|
10325
10394
|
a
|
|
10326
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10327
|
-
|
|
10395
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), rN = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), iN = useJsonViewerStore((e2) => e2.colorspace.base0C), aN = useJsonViewerStore((e2) => e2.colorspace.base0A), oN = useJsonViewerStore((e2) => e2.displayComma), sN = useJsonViewerStore((e2) => e2.quotesOnKeys), cN = useJsonViewerStore((e2) => e2.rootName), lN = U === t, uN = Number.isInteger(Number(A)), dN = useJsonViewerStore((e2) => e2.enableAdd), fN = useJsonViewerStore((e2) => e2.onAdd), pN = (0, import_react.useMemo)(() => !fN || a !== void 0 || dN === false || v === false ? false : typeof dN == "function" ? !!dN(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
10396
|
+
fN,
|
|
10328
10397
|
a,
|
|
10329
10398
|
i,
|
|
10330
|
-
|
|
10399
|
+
dN,
|
|
10331
10400
|
v,
|
|
10332
10401
|
t
|
|
10333
|
-
]),
|
|
10334
|
-
|
|
10402
|
+
]), mN = useJsonViewerStore((e2) => e2.enableDelete), hN = useJsonViewerStore((e2) => e2.onDelete), gN = (0, import_react.useMemo)(() => !hN || a !== void 0 || lN || mN === false || v === false ? false : typeof mN == "function" ? !!mN(i, t) : mN, [
|
|
10403
|
+
hN,
|
|
10335
10404
|
a,
|
|
10336
|
-
|
|
10405
|
+
lN,
|
|
10337
10406
|
i,
|
|
10338
|
-
|
|
10407
|
+
mN,
|
|
10339
10408
|
v,
|
|
10340
10409
|
t
|
|
10341
|
-
]),
|
|
10342
|
-
|
|
10410
|
+
]), _N = useJsonViewerStore((e2) => e2.enableClipboard), { copy: vN, copied: yN } = useClipboard(), bN = useJsonViewerStore((e2) => e2.highlightUpdates), xN = (0, import_react.useMemo)(() => !bN || 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, [
|
|
10411
|
+
bN,
|
|
10343
10412
|
n,
|
|
10344
10413
|
t
|
|
10345
|
-
]),
|
|
10414
|
+
]), SN = (0, import_react.useRef)();
|
|
10346
10415
|
(0, import_react.useEffect)(() => {
|
|
10347
|
-
|
|
10416
|
+
SN.current && xN && "animate" in SN.current && SN.current.animate([
|
|
10348
10417
|
{
|
|
10349
|
-
backgroundColor:
|
|
10418
|
+
backgroundColor: aN
|
|
10350
10419
|
},
|
|
10351
10420
|
{
|
|
10352
10421
|
backgroundColor: ""
|
|
@@ -10356,40 +10425,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10356
10425
|
easing: "ease-in"
|
|
10357
10426
|
});
|
|
10358
10427
|
}, [
|
|
10359
|
-
|
|
10360
|
-
|
|
10428
|
+
aN,
|
|
10429
|
+
xN,
|
|
10361
10430
|
n,
|
|
10362
10431
|
t
|
|
10363
10432
|
]);
|
|
10364
|
-
let
|
|
10433
|
+
let CN = (0, import_react.useCallback)((e2) => {
|
|
10365
10434
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10366
10435
|
}, [
|
|
10367
10436
|
h,
|
|
10368
10437
|
t
|
|
10369
|
-
]),
|
|
10438
|
+
]), wN = (0, import_react.useCallback)(() => {
|
|
10370
10439
|
Q(false), E("");
|
|
10371
10440
|
}, [
|
|
10372
10441
|
Q,
|
|
10373
10442
|
E
|
|
10374
|
-
]),
|
|
10443
|
+
]), TN = (0, import_react.useCallback)((e2) => {
|
|
10375
10444
|
if (Q(false), _) try {
|
|
10376
|
-
|
|
10445
|
+
rN(i, t, _(e2));
|
|
10377
10446
|
} catch {
|
|
10378
10447
|
}
|
|
10379
10448
|
}, [
|
|
10380
10449
|
Q,
|
|
10381
10450
|
_,
|
|
10382
|
-
|
|
10451
|
+
rN,
|
|
10383
10452
|
i,
|
|
10384
10453
|
t
|
|
10385
|
-
]),
|
|
10454
|
+
]), EN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10386
10455
|
children: [
|
|
10387
10456
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10388
10457
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10389
10458
|
sx: {
|
|
10390
10459
|
fontSize: ".8rem"
|
|
10391
10460
|
},
|
|
10392
|
-
onClick:
|
|
10461
|
+
onClick: wN
|
|
10393
10462
|
})
|
|
10394
10463
|
}),
|
|
10395
10464
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10397,22 +10466,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10397
10466
|
sx: {
|
|
10398
10467
|
fontSize: ".8rem"
|
|
10399
10468
|
},
|
|
10400
|
-
onClick: () =>
|
|
10469
|
+
onClick: () => TN(w)
|
|
10401
10470
|
})
|
|
10402
10471
|
})
|
|
10403
10472
|
]
|
|
10404
10473
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10405
10474
|
children: [
|
|
10406
|
-
|
|
10475
|
+
_N && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10407
10476
|
onClick: (e2) => {
|
|
10408
10477
|
e2.preventDefault();
|
|
10409
10478
|
try {
|
|
10410
|
-
|
|
10479
|
+
vN(i, t, copyString);
|
|
10411
10480
|
} catch (e3) {
|
|
10412
10481
|
console.error(e3);
|
|
10413
10482
|
}
|
|
10414
10483
|
},
|
|
10415
|
-
children:
|
|
10484
|
+
children: yN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10416
10485
|
sx: {
|
|
10417
10486
|
fontSize: ".8rem"
|
|
10418
10487
|
}
|
|
@@ -10423,16 +10492,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10423
10492
|
})
|
|
10424
10493
|
}),
|
|
10425
10494
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10426
|
-
onClick:
|
|
10495
|
+
onClick: CN,
|
|
10427
10496
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10428
10497
|
sx: {
|
|
10429
10498
|
fontSize: ".8rem"
|
|
10430
10499
|
}
|
|
10431
10500
|
})
|
|
10432
10501
|
}),
|
|
10433
|
-
|
|
10502
|
+
pN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10434
10503
|
onClick: (e2) => {
|
|
10435
|
-
e2.preventDefault(),
|
|
10504
|
+
e2.preventDefault(), fN == null ? void 0 : fN(i);
|
|
10436
10505
|
},
|
|
10437
10506
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10438
10507
|
sx: {
|
|
@@ -10440,9 +10509,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10440
10509
|
}
|
|
10441
10510
|
})
|
|
10442
10511
|
}),
|
|
10443
|
-
|
|
10512
|
+
gN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10444
10513
|
onClick: (e2) => {
|
|
10445
|
-
e2.preventDefault(),
|
|
10514
|
+
e2.preventDefault(), hN == null ? void 0 : hN(i, t);
|
|
10446
10515
|
},
|
|
10447
10516
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10448
10517
|
sx: {
|
|
@@ -10455,24 +10524,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10455
10524
|
f,
|
|
10456
10525
|
h,
|
|
10457
10526
|
_,
|
|
10458
|
-
|
|
10459
|
-
|
|
10527
|
+
yN,
|
|
10528
|
+
vN,
|
|
10460
10529
|
S,
|
|
10461
10530
|
J,
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10531
|
+
_N,
|
|
10532
|
+
pN,
|
|
10533
|
+
gN,
|
|
10465
10534
|
w,
|
|
10466
10535
|
i,
|
|
10467
10536
|
t,
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
]),
|
|
10537
|
+
fN,
|
|
10538
|
+
hN,
|
|
10539
|
+
CN,
|
|
10540
|
+
wN,
|
|
10541
|
+
TN
|
|
10542
|
+
]), DN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10474
10543
|
t
|
|
10475
|
-
]),
|
|
10544
|
+
]), ON = !DN && !!(c && d), kN = useJsonViewerStore((e2) => e2.keyRenderer), AN = (0, import_react.useMemo)(() => ({
|
|
10476
10545
|
path: i,
|
|
10477
10546
|
inspect: K,
|
|
10478
10547
|
setInspect: q,
|
|
@@ -10509,13 +10578,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10509
10578
|
opacity: 0.8
|
|
10510
10579
|
},
|
|
10511
10580
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10512
|
-
e2.isDefaultPrevented() ||
|
|
10581
|
+
e2.isDefaultPrevented() || DN || q((e3) => !e3);
|
|
10513
10582
|
}, [
|
|
10514
|
-
|
|
10583
|
+
DN,
|
|
10515
10584
|
q
|
|
10516
10585
|
]),
|
|
10517
10586
|
children: [
|
|
10518
|
-
|
|
10587
|
+
ON ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10519
10588
|
className: "data-key-toggle-expanded",
|
|
10520
10589
|
sx: {
|
|
10521
10590
|
fontSize: ".8rem",
|
|
@@ -10533,27 +10602,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10533
10602
|
}
|
|
10534
10603
|
}) : null,
|
|
10535
10604
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10536
|
-
ref:
|
|
10605
|
+
ref: SN,
|
|
10537
10606
|
className: "data-key-key",
|
|
10538
10607
|
component: "span",
|
|
10539
|
-
children:
|
|
10608
|
+
children: lN && O === 0 ? cN === false ? null : sN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10540
10609
|
children: [
|
|
10541
10610
|
'"',
|
|
10542
|
-
|
|
10611
|
+
cN,
|
|
10543
10612
|
'"'
|
|
10544
10613
|
]
|
|
10545
10614
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10546
|
-
children:
|
|
10547
|
-
}) :
|
|
10548
|
-
...
|
|
10549
|
-
}) : a === void 0 && (
|
|
10615
|
+
children: cN
|
|
10616
|
+
}) : kN.when(AN) ? (0, import_jsx_runtime.jsx)(kN, {
|
|
10617
|
+
...AN
|
|
10618
|
+
}) : a === void 0 && (uN ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10550
10619
|
component: "span",
|
|
10551
10620
|
style: {
|
|
10552
|
-
color:
|
|
10553
|
-
userSelect:
|
|
10621
|
+
color: iN,
|
|
10622
|
+
userSelect: uN ? "none" : "auto"
|
|
10554
10623
|
},
|
|
10555
10624
|
children: A
|
|
10556
|
-
}) :
|
|
10625
|
+
}) : sN ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10557
10626
|
children: [
|
|
10558
10627
|
'"',
|
|
10559
10628
|
A,
|
|
@@ -10563,7 +10632,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10563
10632
|
children: A
|
|
10564
10633
|
}))
|
|
10565
10634
|
}),
|
|
10566
|
-
|
|
10635
|
+
lN ? cN !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10567
10636
|
className: "data-key-colon",
|
|
10568
10637
|
sx: {
|
|
10569
10638
|
mr: 0.5
|
|
@@ -10576,38 +10645,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10576
10645
|
".data-key-key:empty + &": {
|
|
10577
10646
|
display: "none"
|
|
10578
10647
|
},
|
|
10579
|
-
userSelect:
|
|
10648
|
+
userSelect: uN ? "none" : "auto"
|
|
10580
10649
|
},
|
|
10581
10650
|
children: ":"
|
|
10582
10651
|
}),
|
|
10583
10652
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10584
|
-
...
|
|
10653
|
+
...AN
|
|
10585
10654
|
}),
|
|
10586
|
-
I &&
|
|
10655
|
+
I && ON && K && EN
|
|
10587
10656
|
]
|
|
10588
10657
|
}),
|
|
10589
10658
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10590
10659
|
path: i,
|
|
10591
10660
|
value: w,
|
|
10592
10661
|
setValue: E,
|
|
10593
|
-
abortEditing:
|
|
10594
|
-
commitEditing:
|
|
10662
|
+
abortEditing: wN,
|
|
10663
|
+
commitEditing: TN
|
|
10595
10664
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10596
|
-
...
|
|
10665
|
+
...AN
|
|
10597
10666
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10598
10667
|
component: "span",
|
|
10599
10668
|
className: "data-value-fallback",
|
|
10600
10669
|
children: `fallback: ${t}`
|
|
10601
10670
|
}),
|
|
10602
10671
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10603
|
-
...
|
|
10672
|
+
...AN
|
|
10604
10673
|
}),
|
|
10605
|
-
!o &&
|
|
10674
|
+
!o && oN && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10606
10675
|
children: ","
|
|
10607
10676
|
}),
|
|
10608
|
-
I &&
|
|
10609
|
-
I && !
|
|
10610
|
-
!I && J &&
|
|
10677
|
+
I && ON && !K && EN,
|
|
10678
|
+
I && !ON && EN,
|
|
10679
|
+
!I && J && EN
|
|
10611
10680
|
]
|
|
10612
10681
|
});
|
|
10613
10682
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -11437,8 +11506,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11437
11506
|
let t = (0, import_compiler_runtime$39.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", d = "destructive", h = "text-error";
|
|
11438
11507
|
if (n.some(_temp$5)) c = "Interrupted";
|
|
11439
11508
|
else if (n.some(_temp2$3)) c = "An internal error occurred";
|
|
11440
|
-
else if (n.some(_temp3$
|
|
11441
|
-
else if (n.some(_temp4)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
|
|
11509
|
+
else if (n.some(_temp3$2)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
|
|
11510
|
+
else if (n.some(_temp4$1)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
|
|
11442
11511
|
else if (n.some(_temp5)) c = "SQL error";
|
|
11443
11512
|
else {
|
|
11444
11513
|
let e2;
|
|
@@ -11448,18 +11517,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11448
11517
|
}
|
|
11449
11518
|
let _, v, y, S, w, E;
|
|
11450
11519
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11451
|
-
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
11452
|
-
t[15] === s ?
|
|
11520
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), rN = n.filter(_temp16), $ = n.filter(_temp17), iN;
|
|
11521
|
+
t[15] === s ? iN = t[16] : (iN = () => {
|
|
11453
11522
|
s.openApplication("scratchpad");
|
|
11454
|
-
}, t[15] = s, t[16] =
|
|
11455
|
-
let
|
|
11523
|
+
}, t[15] = s, t[16] = iN);
|
|
11524
|
+
let aN = iN, oN = () => {
|
|
11456
11525
|
let t2 = [];
|
|
11457
|
-
if (Q.length > 0 ||
|
|
11526
|
+
if (Q.length > 0 || rN.length > 0) {
|
|
11458
11527
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11459
11528
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11460
11529
|
children: [
|
|
11461
11530
|
Q.map(_temp20),
|
|
11462
|
-
|
|
11531
|
+
rN.map(_temp21),
|
|
11463
11532
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11464
11533
|
size: "xs",
|
|
11465
11534
|
variant: "outline",
|
|
@@ -11491,7 +11560,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11491
11560
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11492
11561
|
errors: [
|
|
11493
11562
|
...Q,
|
|
11494
|
-
...
|
|
11563
|
+
...rN
|
|
11495
11564
|
],
|
|
11496
11565
|
cellId: i
|
|
11497
11566
|
})
|
|
@@ -11652,7 +11721,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11652
11721
|
size: "xs",
|
|
11653
11722
|
variant: "link",
|
|
11654
11723
|
className: "my-2 font-normal mx-0 px-0",
|
|
11655
|
-
onClick:
|
|
11724
|
+
onClick: aN,
|
|
11656
11725
|
children: [
|
|
11657
11726
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11658
11727
|
className: "h-3"
|
|
@@ -11777,13 +11846,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11777
11846
|
})
|
|
11778
11847
|
]
|
|
11779
11848
|
}, "sql-errors")), t2;
|
|
11780
|
-
},
|
|
11781
|
-
t[17] !==
|
|
11782
|
-
className:
|
|
11849
|
+
}, sN = `font-code font-medium tracking-wide ${h}`, cN;
|
|
11850
|
+
t[17] !== sN || t[18] !== c ? (cN = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11851
|
+
className: sN,
|
|
11783
11852
|
children: c
|
|
11784
|
-
}), t[17] =
|
|
11785
|
-
let
|
|
11786
|
-
_ = Alert, S = d, 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 =
|
|
11853
|
+
}), t[17] = sN, t[18] = c, t[19] = cN) : cN = t[19];
|
|
11854
|
+
let lN = cN;
|
|
11855
|
+
_ = Alert, S = d, 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 = lN, v = "flex flex-col gap-8", y = oN(), t[2] = d, 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;
|
|
11787
11856
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11788
11857
|
let O;
|
|
11789
11858
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -11808,10 +11877,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11808
11877
|
function _temp2$3(e) {
|
|
11809
11878
|
return e.type === "internal";
|
|
11810
11879
|
}
|
|
11811
|
-
function _temp3$
|
|
11880
|
+
function _temp3$2(e) {
|
|
11812
11881
|
return e.type === "ancestor-prevented";
|
|
11813
11882
|
}
|
|
11814
|
-
function _temp4(e) {
|
|
11883
|
+
function _temp4$1(e) {
|
|
11815
11884
|
return e.type === "ancestor-stopped";
|
|
11816
11885
|
}
|
|
11817
11886
|
function _temp5(e) {
|
|
@@ -12770,7 +12839,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12770
12839
|
}, [
|
|
12771
12840
|
h
|
|
12772
12841
|
]), k(() => {
|
|
12773
|
-
U(6,
|
|
12842
|
+
U(6, iN);
|
|
12774
12843
|
}, []);
|
|
12775
12844
|
let K = import_react.useMemo(() => ({
|
|
12776
12845
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12779,7 +12848,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12779
12848
|
var _a2;
|
|
12780
12849
|
var a2, o2, s2;
|
|
12781
12850
|
if (!Object.is(n.current[e2], t2)) {
|
|
12782
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12851
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, rN);
|
|
12783
12852
|
else if (e2 === "value") {
|
|
12784
12853
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12785
12854
|
let e3 = document.getElementById(I);
|
|
@@ -12787,8 +12856,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12787
12856
|
}
|
|
12788
12857
|
if (U(7, () => {
|
|
12789
12858
|
var _a3;
|
|
12790
|
-
n.current.selectedItemId = (_a3 =
|
|
12791
|
-
}), i2 || U(5,
|
|
12859
|
+
n.current.selectedItemId = (_a3 = aN()) == null ? void 0 : _a3.id, K.emit();
|
|
12860
|
+
}), i2 || U(5, iN), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12792
12861
|
let e3 = t2 ?? "";
|
|
12793
12862
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12794
12863
|
return;
|
|
@@ -12813,12 +12882,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12813
12882
|
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([
|
|
12814
12883
|
e2
|
|
12815
12884
|
]))), U(3, () => {
|
|
12816
|
-
$(), Q(), n.current.value ||
|
|
12885
|
+
$(), Q(), n.current.value || rN(), K.emit();
|
|
12817
12886
|
}), () => {
|
|
12818
12887
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12819
|
-
let t3 =
|
|
12888
|
+
let t3 = aN();
|
|
12820
12889
|
U(4, () => {
|
|
12821
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12890
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && rN(), K.emit();
|
|
12822
12891
|
});
|
|
12823
12892
|
}),
|
|
12824
12893
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12851,7 +12920,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12851
12920
|
]);
|
|
12852
12921
|
});
|
|
12853
12922
|
let i2 = z.current;
|
|
12854
|
-
|
|
12923
|
+
oN().sort((t3, n2) => {
|
|
12855
12924
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12856
12925
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12857
12926
|
}).forEach((e3) => {
|
|
@@ -12863,9 +12932,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12863
12932
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12864
12933
|
});
|
|
12865
12934
|
}
|
|
12866
|
-
function
|
|
12935
|
+
function rN() {
|
|
12867
12936
|
var _a2;
|
|
12868
|
-
let e2 = (_a2 =
|
|
12937
|
+
let e2 = (_a2 = oN().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12869
12938
|
K.setState("value", e2 || void 0);
|
|
12870
12939
|
}
|
|
12871
12940
|
function $() {
|
|
@@ -12886,43 +12955,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12886
12955
|
}
|
|
12887
12956
|
n.current.filtered.count = e2;
|
|
12888
12957
|
}
|
|
12889
|
-
function
|
|
12958
|
+
function iN() {
|
|
12890
12959
|
var _a2, _b;
|
|
12891
12960
|
var e2;
|
|
12892
|
-
let t2 =
|
|
12961
|
+
let t2 = aN();
|
|
12893
12962
|
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({
|
|
12894
12963
|
block: "nearest"
|
|
12895
12964
|
})), t2.scrollIntoView({
|
|
12896
12965
|
block: "nearest"
|
|
12897
12966
|
}));
|
|
12898
12967
|
}
|
|
12899
|
-
function
|
|
12968
|
+
function aN() {
|
|
12900
12969
|
var _a2;
|
|
12901
12970
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12902
12971
|
}
|
|
12903
|
-
function
|
|
12972
|
+
function oN() {
|
|
12904
12973
|
var _a2;
|
|
12905
12974
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12906
12975
|
}
|
|
12907
|
-
function
|
|
12908
|
-
let t2 =
|
|
12976
|
+
function sN(e2) {
|
|
12977
|
+
let t2 = oN()[e2];
|
|
12909
12978
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12910
12979
|
}
|
|
12911
|
-
function
|
|
12980
|
+
function cN(e2) {
|
|
12912
12981
|
var t2;
|
|
12913
|
-
let n2 =
|
|
12982
|
+
let n2 = aN(), i2 = oN(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12914
12983
|
(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));
|
|
12915
12984
|
}
|
|
12916
|
-
function
|
|
12985
|
+
function lN(e2) {
|
|
12917
12986
|
var _a2;
|
|
12918
|
-
let t2 = (_a2 =
|
|
12987
|
+
let t2 = (_a2 = aN()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12919
12988
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12920
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12989
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : cN(e2);
|
|
12921
12990
|
}
|
|
12922
|
-
let
|
|
12923
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12924
|
-
},
|
|
12925
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12991
|
+
let uN = () => sN(oN().length - 1), dN = (e2) => {
|
|
12992
|
+
e2.preventDefault(), e2.metaKey ? uN() : e2.altKey ? lN(1) : cN(1);
|
|
12993
|
+
}, fN = (e2) => {
|
|
12994
|
+
e2.preventDefault(), e2.metaKey ? sN(0) : e2.altKey ? lN(-1) : cN(-1);
|
|
12926
12995
|
};
|
|
12927
12996
|
return import_react.createElement(Primitive.div, {
|
|
12928
12997
|
ref: t,
|
|
@@ -12936,27 +13005,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12936
13005
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12937
13006
|
case "n":
|
|
12938
13007
|
case "j":
|
|
12939
|
-
E && e2.ctrlKey &&
|
|
13008
|
+
E && e2.ctrlKey && dN(e2);
|
|
12940
13009
|
break;
|
|
12941
13010
|
case "ArrowDown":
|
|
12942
|
-
|
|
13011
|
+
dN(e2);
|
|
12943
13012
|
break;
|
|
12944
13013
|
case "p":
|
|
12945
13014
|
case "k":
|
|
12946
|
-
E && e2.ctrlKey &&
|
|
13015
|
+
E && e2.ctrlKey && fN(e2);
|
|
12947
13016
|
break;
|
|
12948
13017
|
case "ArrowUp":
|
|
12949
|
-
|
|
13018
|
+
fN(e2);
|
|
12950
13019
|
break;
|
|
12951
13020
|
case "Home":
|
|
12952
|
-
e2.preventDefault(),
|
|
13021
|
+
e2.preventDefault(), sN(0);
|
|
12953
13022
|
break;
|
|
12954
13023
|
case "End":
|
|
12955
|
-
e2.preventDefault(),
|
|
13024
|
+
e2.preventDefault(), uN();
|
|
12956
13025
|
break;
|
|
12957
13026
|
case "Enter": {
|
|
12958
13027
|
e2.preventDefault();
|
|
12959
|
-
let t3 =
|
|
13028
|
+
let t3 = aN();
|
|
12960
13029
|
if (t3) {
|
|
12961
13030
|
let e3 = new Event(Z);
|
|
12962
13031
|
t3.dispatchEvent(e3);
|
|
@@ -18946,7 +19015,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18946
19015
|
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 }) {
|
|
18947
19016
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18948
19017
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18949
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
19018
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, rN = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
18950
19019
|
callbacks: {
|
|
18951
19020
|
onCollapse: f,
|
|
18952
19021
|
onExpand: h,
|
|
@@ -18959,7 +19028,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18959
19028
|
maxSize: c,
|
|
18960
19029
|
minSize: d
|
|
18961
19030
|
},
|
|
18962
|
-
id:
|
|
19031
|
+
id: rN,
|
|
18963
19032
|
idIsFromProps: s !== void 0,
|
|
18964
19033
|
order: v
|
|
18965
19034
|
});
|
|
@@ -18969,7 +19038,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18969
19038
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18970
19039
|
...t2
|
|
18971
19040
|
};
|
|
18972
|
-
$.current.id =
|
|
19041
|
+
$.current.id = rN, $.current.idIsFromProps = s !== void 0, $.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($.current, o2);
|
|
18973
19042
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18974
19043
|
let e2 = $.current;
|
|
18975
19044
|
return q(e2), () => {
|
|
@@ -18977,7 +19046,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18977
19046
|
};
|
|
18978
19047
|
}, [
|
|
18979
19048
|
v,
|
|
18980
|
-
|
|
19049
|
+
rN,
|
|
18981
19050
|
q,
|
|
18982
19051
|
Q
|
|
18983
19052
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -18988,7 +19057,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18988
19057
|
A($.current, e2);
|
|
18989
19058
|
},
|
|
18990
19059
|
getId() {
|
|
18991
|
-
return
|
|
19060
|
+
return rN;
|
|
18992
19061
|
},
|
|
18993
19062
|
getSize() {
|
|
18994
19063
|
return M($.current);
|
|
@@ -19007,24 +19076,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19007
19076
|
A,
|
|
19008
19077
|
M,
|
|
19009
19078
|
U,
|
|
19010
|
-
|
|
19079
|
+
rN,
|
|
19011
19080
|
J
|
|
19012
19081
|
]);
|
|
19013
|
-
let
|
|
19082
|
+
let iN = I($.current, a);
|
|
19014
19083
|
return (0, import_react.createElement)(S, {
|
|
19015
19084
|
...w,
|
|
19016
19085
|
children: e,
|
|
19017
19086
|
className: t,
|
|
19018
|
-
id:
|
|
19087
|
+
id: rN,
|
|
19019
19088
|
style: {
|
|
19020
|
-
...
|
|
19089
|
+
...iN,
|
|
19021
19090
|
...y
|
|
19022
19091
|
},
|
|
19023
19092
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
19024
19093
|
[DATA_ATTRIBUTES.panel]: "",
|
|
19025
19094
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
19026
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
19027
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19095
|
+
[DATA_ATTRIBUTES.panelId]: rN,
|
|
19096
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + iN.flexGrow).toFixed(1)
|
|
19028
19097
|
});
|
|
19029
19098
|
}
|
|
19030
19099
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19797,7 +19866,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19797
19866
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19798
19867
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19799
19868
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19800
|
-
}, []),
|
|
19869
|
+
}, []), rN = (0, import_react.useCallback)((e2, t2) => {
|
|
19801
19870
|
let { panelDataArray: n2 } = K.current;
|
|
19802
19871
|
return computePanelFlexBoxStyle({
|
|
19803
19872
|
defaultSize: t2,
|
|
@@ -19812,10 +19881,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19812
19881
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19813
19882
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19814
19883
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19815
|
-
}, []),
|
|
19884
|
+
}, []), iN = (0, import_react.useCallback)((e2) => {
|
|
19816
19885
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19817
19886
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19818
|
-
}, []),
|
|
19887
|
+
}, []), aN = (0, import_react.useCallback)((e2) => {
|
|
19819
19888
|
let { panelDataArray: t2 } = K.current;
|
|
19820
19889
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19821
19890
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19847,7 +19916,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19847
19916
|
e2.layout = [];
|
|
19848
19917
|
};
|
|
19849
19918
|
}, []);
|
|
19850
|
-
let
|
|
19919
|
+
let oN = (0, import_react.useCallback)((e2) => {
|
|
19851
19920
|
let t2 = false, n2 = y.current;
|
|
19852
19921
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19853
19922
|
n3.preventDefault();
|
|
@@ -19865,7 +19934,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19865
19934
|
}), I2 = !compareLayouts(f2, A2);
|
|
19866
19935
|
(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));
|
|
19867
19936
|
};
|
|
19868
|
-
}, []),
|
|
19937
|
+
}, []), sN = (0, import_react.useCallback)((e2, t2) => {
|
|
19869
19938
|
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);
|
|
19870
19939
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19871
19940
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19877,12 +19946,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19877
19946
|
trigger: "imperative-api"
|
|
19878
19947
|
});
|
|
19879
19948
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19880
|
-
}, []),
|
|
19949
|
+
}, []), cN = (0, import_react.useCallback)((e2, t2) => {
|
|
19881
19950
|
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);
|
|
19882
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19951
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || sN(e2, s2) : h2 < f2 ? sN(e2, f2) : h2 > d2 && sN(e2, d2));
|
|
19883
19952
|
}, [
|
|
19884
|
-
|
|
19885
|
-
]),
|
|
19953
|
+
sN
|
|
19954
|
+
]), lN = (0, import_react.useCallback)((e2, t2) => {
|
|
19886
19955
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19887
19956
|
if (!y.current) return;
|
|
19888
19957
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19894,30 +19963,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19894
19963
|
initialCursorPosition: o2,
|
|
19895
19964
|
initialLayout: i2
|
|
19896
19965
|
});
|
|
19897
|
-
}, []),
|
|
19966
|
+
}, []), uN = (0, import_react.useCallback)(() => {
|
|
19898
19967
|
w(null);
|
|
19899
|
-
}, []),
|
|
19968
|
+
}, []), dN = (0, import_react.useCallback)((e2) => {
|
|
19900
19969
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19901
19970
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19902
19971
|
}, [
|
|
19903
19972
|
A
|
|
19904
|
-
]),
|
|
19973
|
+
]), fN = (0, import_react.useMemo)(() => ({
|
|
19905
19974
|
collapsePanel: q,
|
|
19906
19975
|
direction: i,
|
|
19907
19976
|
dragState: S,
|
|
19908
19977
|
expandPanel: J,
|
|
19909
19978
|
getPanelSize: Q,
|
|
19910
|
-
getPanelStyle:
|
|
19979
|
+
getPanelStyle: rN,
|
|
19911
19980
|
groupId: v,
|
|
19912
19981
|
isPanelCollapsed: $,
|
|
19913
|
-
isPanelExpanded:
|
|
19914
|
-
reevaluatePanelConstraints:
|
|
19915
|
-
registerPanel:
|
|
19916
|
-
registerResizeHandle:
|
|
19917
|
-
resizePanel:
|
|
19918
|
-
startDragging:
|
|
19919
|
-
stopDragging:
|
|
19920
|
-
unregisterPanel:
|
|
19982
|
+
isPanelExpanded: iN,
|
|
19983
|
+
reevaluatePanelConstraints: cN,
|
|
19984
|
+
registerPanel: aN,
|
|
19985
|
+
registerResizeHandle: oN,
|
|
19986
|
+
resizePanel: sN,
|
|
19987
|
+
startDragging: lN,
|
|
19988
|
+
stopDragging: uN,
|
|
19989
|
+
unregisterPanel: dN,
|
|
19921
19990
|
panelGroupElement: y.current
|
|
19922
19991
|
}), [
|
|
19923
19992
|
q,
|
|
@@ -19925,18 +19994,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19925
19994
|
i,
|
|
19926
19995
|
J,
|
|
19927
19996
|
Q,
|
|
19928
|
-
|
|
19997
|
+
rN,
|
|
19929
19998
|
v,
|
|
19930
19999
|
$,
|
|
19931
|
-
QM,
|
|
19932
|
-
nN,
|
|
19933
|
-
$M,
|
|
19934
|
-
eN,
|
|
19935
|
-
tN,
|
|
19936
|
-
rN,
|
|
19937
20000
|
iN,
|
|
19938
|
-
|
|
19939
|
-
|
|
20001
|
+
cN,
|
|
20002
|
+
aN,
|
|
20003
|
+
oN,
|
|
20004
|
+
sN,
|
|
20005
|
+
lN,
|
|
20006
|
+
uN,
|
|
20007
|
+
dN
|
|
20008
|
+
]), pN = {
|
|
19940
20009
|
display: "flex",
|
|
19941
20010
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19942
20011
|
height: "100%",
|
|
@@ -19944,7 +20013,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19944
20013
|
width: "100%"
|
|
19945
20014
|
};
|
|
19946
20015
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19947
|
-
value:
|
|
20016
|
+
value: fN
|
|
19948
20017
|
}, (0, import_react.createElement)(h, {
|
|
19949
20018
|
..._,
|
|
19950
20019
|
children: t,
|
|
@@ -19952,7 +20021,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19952
20021
|
id: o,
|
|
19953
20022
|
ref: y,
|
|
19954
20023
|
style: {
|
|
19955
|
-
...
|
|
20024
|
+
...pN,
|
|
19956
20025
|
...f
|
|
19957
20026
|
},
|
|
19958
20027
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -20029,31 +20098,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20029
20098
|
});
|
|
20030
20099
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
20031
20100
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
20032
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
20101
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [rN, $] = (0, import_react.useState)(false), [iN, aN] = (0, import_react.useState)(null), oN = (0, import_react.useRef)({
|
|
20033
20102
|
state: J
|
|
20034
20103
|
});
|
|
20035
20104
|
useIsomorphicLayoutEffect$1(() => {
|
|
20036
|
-
|
|
20105
|
+
oN.current.state = J;
|
|
20037
20106
|
}), (0, import_react.useEffect)(() => {
|
|
20038
|
-
if (n)
|
|
20107
|
+
if (n) aN(null);
|
|
20039
20108
|
else {
|
|
20040
20109
|
let e2 = I(q);
|
|
20041
|
-
|
|
20110
|
+
aN(() => e2);
|
|
20042
20111
|
}
|
|
20043
20112
|
}, [
|
|
20044
20113
|
n,
|
|
20045
20114
|
q,
|
|
20046
20115
|
I
|
|
20047
20116
|
]);
|
|
20048
|
-
let
|
|
20117
|
+
let sN = (i == null ? void 0 : i.coarse) ?? 15, cN = (i == null ? void 0 : i.fine) ?? 5;
|
|
20049
20118
|
(0, import_react.useEffect)(() => {
|
|
20050
|
-
if (n ||
|
|
20119
|
+
if (n || iN == null) return;
|
|
20051
20120
|
let e2 = w.current;
|
|
20052
20121
|
assert(e2, "Element ref not attached");
|
|
20053
20122
|
let t2 = false;
|
|
20054
20123
|
return registerResizeHandle(q, e2, A, {
|
|
20055
|
-
coarse:
|
|
20056
|
-
fine:
|
|
20124
|
+
coarse: sN,
|
|
20125
|
+
fine: cN
|
|
20057
20126
|
}, (e3, n2, i2) => {
|
|
20058
20127
|
if (!n2) {
|
|
20059
20128
|
Q("inactive");
|
|
@@ -20067,8 +20136,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20067
20136
|
break;
|
|
20068
20137
|
}
|
|
20069
20138
|
case "move": {
|
|
20070
|
-
let { state: e4 } =
|
|
20071
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
20139
|
+
let { state: e4 } = oN.current;
|
|
20140
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), iN(i2);
|
|
20072
20141
|
break;
|
|
20073
20142
|
}
|
|
20074
20143
|
case "up": {
|
|
@@ -20080,22 +20149,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20080
20149
|
}
|
|
20081
20150
|
});
|
|
20082
20151
|
}, [
|
|
20083
|
-
|
|
20152
|
+
sN,
|
|
20084
20153
|
A,
|
|
20085
20154
|
n,
|
|
20086
|
-
|
|
20155
|
+
cN,
|
|
20087
20156
|
I,
|
|
20088
20157
|
q,
|
|
20089
|
-
|
|
20158
|
+
iN,
|
|
20090
20159
|
z,
|
|
20091
20160
|
U
|
|
20092
20161
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
20093
20162
|
disabled: n,
|
|
20094
20163
|
handleId: q,
|
|
20095
|
-
resizeHandler:
|
|
20164
|
+
resizeHandler: iN,
|
|
20096
20165
|
panelGroupElement: K
|
|
20097
20166
|
});
|
|
20098
|
-
let
|
|
20167
|
+
let lN = {
|
|
20099
20168
|
touchAction: "none",
|
|
20100
20169
|
userSelect: "none"
|
|
20101
20170
|
};
|
|
@@ -20113,14 +20182,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20113
20182
|
ref: w,
|
|
20114
20183
|
role: "separator",
|
|
20115
20184
|
style: {
|
|
20116
|
-
...
|
|
20185
|
+
...lN,
|
|
20117
20186
|
..._
|
|
20118
20187
|
},
|
|
20119
20188
|
tabIndex: v,
|
|
20120
20189
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20121
20190
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20122
20191
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20123
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20192
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : rN ? "keyboard" : void 0,
|
|
20124
20193
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20125
20194
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20126
20195
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -20287,147 +20356,147 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20287
20356
|
Combobox = (e) => {
|
|
20288
20357
|
let t = (0, import_compiler_runtime$19.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
|
|
20289
20358
|
t[0] === e ? (n = t[1], i = t[2], o = 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]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: q, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, 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);
|
|
20290
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20291
|
-
t[23] !== v || t[24] !== w || t[25] !==
|
|
20359
|
+
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, rN = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, iN = K === void 0 ? false : K, aN = s ?? false, oN;
|
|
20360
|
+
t[23] !== v || t[24] !== w || t[25] !== aN ? (oN = {
|
|
20292
20361
|
prop: w,
|
|
20293
|
-
defaultProp:
|
|
20362
|
+
defaultProp: aN,
|
|
20294
20363
|
onChange: v
|
|
20295
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20296
|
-
let [
|
|
20297
|
-
t[27] === S ?
|
|
20364
|
+
}, t[23] = v, t[24] = w, t[25] = aN, t[26] = oN) : oN = t[26];
|
|
20365
|
+
let [sN, cN] = useControllableState(oN), lN = sN === void 0 ? false : sN, uN;
|
|
20366
|
+
t[27] === S ? uN = t[28] : (uN = (e2) => {
|
|
20298
20367
|
S == null ? void 0 : S(e2);
|
|
20299
|
-
}, t[27] = S, t[28] =
|
|
20300
|
-
let
|
|
20301
|
-
t[29] !== c || t[30] !==
|
|
20368
|
+
}, t[27] = S, t[28] = uN);
|
|
20369
|
+
let dN;
|
|
20370
|
+
t[29] !== c || t[30] !== uN || t[31] !== q ? (dN = {
|
|
20302
20371
|
prop: q,
|
|
20303
20372
|
defaultProp: c,
|
|
20304
|
-
onChange:
|
|
20305
|
-
}, t[29] = c, t[30] =
|
|
20306
|
-
let [
|
|
20307
|
-
t[33] ===
|
|
20308
|
-
let
|
|
20309
|
-
t[35] !== _ || t[36] !== J || t[37] !==
|
|
20373
|
+
onChange: uN
|
|
20374
|
+
}, t[29] = c, t[30] = uN, t[31] = q, t[32] = dN) : dN = t[32];
|
|
20375
|
+
let [pN, mN] = useControllableState(dN), hN;
|
|
20376
|
+
t[33] === pN ? hN = t[34] : (hN = (e2) => Array.isArray(pN) ? pN.includes(e2) : pN === e2, t[33] = pN, t[34] = hN);
|
|
20377
|
+
let gN = hN, _N;
|
|
20378
|
+
t[35] !== _ || t[36] !== J || t[37] !== cN || t[38] !== mN || t[39] !== pN ? (_N = (e2) => {
|
|
20310
20379
|
let t2 = e2;
|
|
20311
|
-
if (J) if (Array.isArray(
|
|
20312
|
-
let n2 =
|
|
20380
|
+
if (J) if (Array.isArray(pN)) if (pN.includes(t2)) {
|
|
20381
|
+
let n2 = pN.filter((t3) => t3 !== e2);
|
|
20313
20382
|
t2 = n2.length > 0 ? n2 : [];
|
|
20314
20383
|
} else t2 = [
|
|
20315
|
-
...
|
|
20384
|
+
...pN,
|
|
20316
20385
|
t2
|
|
20317
20386
|
];
|
|
20318
20387
|
else t2 = [
|
|
20319
20388
|
t2
|
|
20320
20389
|
];
|
|
20321
|
-
else
|
|
20322
|
-
|
|
20323
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20324
|
-
let
|
|
20325
|
-
t[41] !==
|
|
20326
|
-
let
|
|
20327
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20328
|
-
let
|
|
20329
|
-
t[48] === o ?
|
|
20330
|
-
let
|
|
20331
|
-
t[50] ===
|
|
20332
|
-
let
|
|
20333
|
-
t[52] ===
|
|
20390
|
+
else pN === e2 && (t2 = null);
|
|
20391
|
+
mN(t2), (_ ?? J) || cN(false);
|
|
20392
|
+
}, t[35] = _, t[36] = J, t[37] = cN, t[38] = mN, t[39] = pN, t[40] = _N) : _N = t[40];
|
|
20393
|
+
let vN = _N, yN;
|
|
20394
|
+
t[41] !== iN || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== pN ? (yN = () => J && iN && E ? E : pN == null ? E ?? "--" : Array.isArray(pN) ? pN.length === 0 ? E ?? "--" : pN.length === 1 && d !== void 0 ? d(pN[0]) : `${pN.length} selected` : d === void 0 ? E ?? "--" : d(pN), t[41] = iN, t[42] = d, t[43] = J, t[44] = E, t[45] = pN, t[46] = yN) : yN = t[46];
|
|
20395
|
+
let bN = yN, xN;
|
|
20396
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xN = cn("relative"), t[47] = xN) : xN = t[47];
|
|
20397
|
+
let SN;
|
|
20398
|
+
t[48] === o ? SN = t[49] : (SN = 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 disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = SN);
|
|
20399
|
+
let CN;
|
|
20400
|
+
t[50] === bN ? CN = t[51] : (CN = bN(), t[50] = bN, t[51] = CN);
|
|
20401
|
+
let wN;
|
|
20402
|
+
t[52] === CN ? wN = t[53] : (wN = (0, import_jsx_runtime.jsx)("span", {
|
|
20334
20403
|
className: "truncate flex-1 min-w-0",
|
|
20335
|
-
children:
|
|
20336
|
-
}), t[52] =
|
|
20337
|
-
let
|
|
20338
|
-
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20404
|
+
children: CN
|
|
20405
|
+
}), t[52] = CN, t[53] = wN);
|
|
20406
|
+
let EN;
|
|
20407
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (EN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20339
20408
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20340
|
-
}), t[54] =
|
|
20341
|
-
let
|
|
20342
|
-
t[55] !== h || t[56] !==
|
|
20409
|
+
}), t[54] = EN) : EN = t[54];
|
|
20410
|
+
let DN;
|
|
20411
|
+
t[55] !== h || t[56] !== lN || t[57] !== SN || t[58] !== wN ? (DN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20343
20412
|
asChild: true,
|
|
20344
20413
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20345
20414
|
id: h,
|
|
20346
|
-
className:
|
|
20347
|
-
"aria-expanded":
|
|
20415
|
+
className: SN,
|
|
20416
|
+
"aria-expanded": lN,
|
|
20348
20417
|
children: [
|
|
20349
|
-
|
|
20350
|
-
|
|
20418
|
+
wN,
|
|
20419
|
+
EN
|
|
20351
20420
|
]
|
|
20352
20421
|
})
|
|
20353
|
-
}), t[55] = h, t[56] =
|
|
20354
|
-
let
|
|
20355
|
-
t[60] !==
|
|
20356
|
-
placeholder:
|
|
20422
|
+
}), t[55] = h, t[56] = lN, t[57] = SN, t[58] = wN, t[59] = DN) : DN = t[59];
|
|
20423
|
+
let kN;
|
|
20424
|
+
t[60] !== rN || t[61] !== y || t[62] !== A ? (kN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20425
|
+
placeholder: rN,
|
|
20357
20426
|
rootClassName: "px-1 h-8",
|
|
20358
20427
|
autoFocus: true,
|
|
20359
20428
|
value: A,
|
|
20360
20429
|
onValueChange: y
|
|
20361
|
-
}), t[60] =
|
|
20362
|
-
let
|
|
20363
|
-
t[64] === $ ?
|
|
20430
|
+
}), t[60] = rN, t[61] = y, t[62] = A, t[63] = kN) : kN = t[63];
|
|
20431
|
+
let AN;
|
|
20432
|
+
t[64] === $ ? AN = t[65] : (AN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20364
20433
|
children: $
|
|
20365
|
-
}), t[64] = $, t[65] =
|
|
20366
|
-
let
|
|
20367
|
-
t[66] !==
|
|
20368
|
-
isSelected:
|
|
20369
|
-
onSelect:
|
|
20370
|
-
}, t[66] =
|
|
20371
|
-
let
|
|
20372
|
-
t[69] !== n || t[70] !==
|
|
20373
|
-
value:
|
|
20434
|
+
}), t[64] = $, t[65] = AN);
|
|
20435
|
+
let jN;
|
|
20436
|
+
t[66] !== vN || t[67] !== gN ? (jN = {
|
|
20437
|
+
isSelected: gN,
|
|
20438
|
+
onSelect: vN
|
|
20439
|
+
}, t[66] = vN, t[67] = gN, t[68] = jN) : jN = t[68];
|
|
20440
|
+
let MN;
|
|
20441
|
+
t[69] !== n || t[70] !== jN ? (MN = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20442
|
+
value: jN,
|
|
20374
20443
|
children: n
|
|
20375
|
-
}), t[69] = n, t[70] =
|
|
20376
|
-
let
|
|
20377
|
-
t[72] !==
|
|
20444
|
+
}), t[69] = n, t[70] = jN, t[71] = MN) : MN = t[71];
|
|
20445
|
+
let NN;
|
|
20446
|
+
t[72] !== AN || t[73] !== MN ? (NN = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20378
20447
|
className: "max-h-60 py-.5",
|
|
20379
20448
|
children: [
|
|
20380
|
-
|
|
20381
|
-
|
|
20449
|
+
AN,
|
|
20450
|
+
MN
|
|
20382
20451
|
]
|
|
20383
|
-
}), t[72] =
|
|
20384
|
-
let
|
|
20385
|
-
t[75] !== f || t[76] !== Q || t[77] !==
|
|
20452
|
+
}), t[72] = AN, t[73] = MN, t[74] = NN) : NN = t[74];
|
|
20453
|
+
let PN;
|
|
20454
|
+
t[75] !== f || t[76] !== Q || t[77] !== kN || t[78] !== NN ? (PN = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20386
20455
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20387
20456
|
align: "start",
|
|
20388
20457
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20389
20458
|
filter: f,
|
|
20390
20459
|
shouldFilter: Q,
|
|
20391
20460
|
children: [
|
|
20392
|
-
|
|
20393
|
-
|
|
20461
|
+
kN,
|
|
20462
|
+
NN
|
|
20394
20463
|
]
|
|
20395
20464
|
})
|
|
20396
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20397
|
-
let
|
|
20398
|
-
t[80] !==
|
|
20399
|
-
open:
|
|
20400
|
-
onOpenChange:
|
|
20465
|
+
}), t[75] = f, t[76] = Q, t[77] = kN, t[78] = NN, t[79] = PN) : PN = t[79];
|
|
20466
|
+
let FN;
|
|
20467
|
+
t[80] !== lN || t[81] !== cN || t[82] !== DN || t[83] !== PN ? (FN = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20468
|
+
open: lN,
|
|
20469
|
+
onOpenChange: cN,
|
|
20401
20470
|
children: [
|
|
20402
|
-
|
|
20403
|
-
|
|
20471
|
+
DN,
|
|
20472
|
+
PN
|
|
20404
20473
|
]
|
|
20405
|
-
}), t[80] =
|
|
20406
|
-
let
|
|
20407
|
-
t[85] !==
|
|
20474
|
+
}), t[80] = lN, t[81] = cN, t[82] = DN, t[83] = PN, t[84] = FN) : FN = t[84];
|
|
20475
|
+
let IN;
|
|
20476
|
+
t[85] !== iN || t[86] !== i || t[87] !== d || t[88] !== vN || t[89] !== J || t[90] !== pN ? (IN = J && iN && (0, import_jsx_runtime.jsx)("div", {
|
|
20408
20477
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20409
|
-
children: Array.isArray(
|
|
20478
|
+
children: Array.isArray(pN) && pN.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20410
20479
|
variant: "secondary",
|
|
20411
20480
|
children: [
|
|
20412
20481
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20413
20482
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20414
20483
|
onClick: () => {
|
|
20415
|
-
|
|
20484
|
+
vN(e2);
|
|
20416
20485
|
},
|
|
20417
20486
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20418
20487
|
})
|
|
20419
20488
|
]
|
|
20420
20489
|
}, String(e2)))
|
|
20421
|
-
}), t[85] =
|
|
20422
|
-
let
|
|
20423
|
-
return t[92] !== O || t[93] !==
|
|
20424
|
-
className:
|
|
20490
|
+
}), t[85] = iN, t[86] = i, t[87] = d, t[88] = vN, t[89] = J, t[90] = pN, t[91] = IN) : IN = t[91];
|
|
20491
|
+
let LN;
|
|
20492
|
+
return t[92] !== O || t[93] !== FN || t[94] !== IN ? (LN = (0, import_jsx_runtime.jsxs)("div", {
|
|
20493
|
+
className: xN,
|
|
20425
20494
|
...O,
|
|
20426
20495
|
children: [
|
|
20427
|
-
|
|
20428
|
-
|
|
20496
|
+
FN,
|
|
20497
|
+
IN
|
|
20429
20498
|
]
|
|
20430
|
-
}), t[92] = O, t[93] =
|
|
20499
|
+
}), t[92] = O, t[93] = FN, t[94] = IN, t[95] = LN) : LN = t[95], LN;
|
|
20431
20500
|
};
|
|
20432
20501
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20433
20502
|
let n = (0, import_compiler_runtime$19.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -23454,7 +23523,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23454
23523
|
filename: i2.filename
|
|
23455
23524
|
};
|
|
23456
23525
|
}, t[5] = e, t[6] = v);
|
|
23457
|
-
let y = v, E, O, A, M, I, z, U, K, q, J, Q,
|
|
23526
|
+
let y = v, E, O, A, M, I, z, U, K, q, J, Q, rN, $;
|
|
23458
23527
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23459
23528
|
let e2 = async (t2) => {
|
|
23460
23529
|
let n2 = await y(t2, () => {
|
|
@@ -23511,7 +23580,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23511
23580
|
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
23512
23581
|
className: "text-xs text-muted-foreground",
|
|
23513
23582
|
children: "Download"
|
|
23514
|
-
}), t[29] = Q) : Q = t[29],
|
|
23583
|
+
}), t[29] = Q) : Q = t[29], rN = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23515
23584
|
onSelect: () => {
|
|
23516
23585
|
e2(t2.format);
|
|
23517
23586
|
},
|
|
@@ -23564,30 +23633,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23564
23633
|
]
|
|
23565
23634
|
})
|
|
23566
23635
|
]
|
|
23567
|
-
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, 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] = q, t[20] = J, t[21] = Q, t[22] =
|
|
23568
|
-
} 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], q = t[19], J = t[20], Q = t[21],
|
|
23569
|
-
let
|
|
23570
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !==
|
|
23636
|
+
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, 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] = q, t[20] = J, t[21] = Q, t[22] = rN, t[23] = $;
|
|
23637
|
+
} 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], q = t[19], J = t[20], Q = t[21], rN = t[22], $ = t[23];
|
|
23638
|
+
let iN;
|
|
23639
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== rN || t[39] !== $ ? (iN = (0, import_jsx_runtime.jsxs)(E, {
|
|
23571
23640
|
side: q,
|
|
23572
23641
|
className: J,
|
|
23573
23642
|
children: [
|
|
23574
23643
|
Q,
|
|
23575
|
-
|
|
23644
|
+
rN,
|
|
23576
23645
|
$,
|
|
23577
23646
|
A,
|
|
23578
23647
|
M
|
|
23579
23648
|
]
|
|
23580
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23581
|
-
let
|
|
23582
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
23649
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = rN, t[39] = $, t[40] = iN) : iN = t[40];
|
|
23650
|
+
let aN;
|
|
23651
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== iN ? (aN = (0, import_jsx_runtime.jsxs)(O, {
|
|
23583
23652
|
modal: I,
|
|
23584
23653
|
open: z,
|
|
23585
23654
|
onOpenChange: U,
|
|
23586
23655
|
children: [
|
|
23587
23656
|
K,
|
|
23588
|
-
|
|
23657
|
+
iN
|
|
23589
23658
|
]
|
|
23590
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
23659
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = iN, t[47] = aN) : aN = t[47], aN;
|
|
23591
23660
|
};
|
|
23592
23661
|
function fetchJson(e) {
|
|
23593
23662
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23678,22 +23747,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23678
23747
|
]
|
|
23679
23748
|
}) : null;
|
|
23680
23749
|
};
|
|
23681
|
-
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: q, getRowIds: J, enableSearch: Q = false, searchQuery:
|
|
23682
|
-
let [
|
|
23750
|
+
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: q, getRowIds: J, enableSearch: Q = false, searchQuery: rN, onSearchQueryChange: $, showFilters: iN = false, filters: aN, onFiltersChange: oN, calculateTopKRows: sN, reloading: cN, freezeColumnsLeft: lN, freezeColumnsRight: uN, toggleDisplayHeader: dN, showChartBuilder: fN, isChartBuilderOpen: pN, showPageSizeSelector: mN, showTableExplorer: hN, togglePanel: gN, isPanelOpen: _N, isAnyPanelOpen: vN, viewedRowIdx: yN, onViewedRowChange: bN }) => {
|
|
23751
|
+
let [xN, SN] = import_react.useState(false), { locale: CN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: wN, setColumnPinning: TN } = useColumnPinning(lN, uN);
|
|
23683
23752
|
import_react.useEffect(() => {
|
|
23684
23753
|
let e2;
|
|
23685
|
-
return
|
|
23686
|
-
|
|
23687
|
-
}, 300) :
|
|
23754
|
+
return cN ? e2 = setTimeout(() => {
|
|
23755
|
+
SN(true);
|
|
23756
|
+
}, 300) : SN(false), () => {
|
|
23688
23757
|
e2 && clearTimeout(e2);
|
|
23689
23758
|
};
|
|
23690
23759
|
}, [
|
|
23691
|
-
|
|
23760
|
+
cN
|
|
23692
23761
|
]);
|
|
23693
|
-
function
|
|
23762
|
+
function EN(e2, t2) {
|
|
23694
23763
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23695
23764
|
}
|
|
23696
|
-
let
|
|
23765
|
+
let DN = useReactTable({
|
|
23697
23766
|
_features: [
|
|
23698
23767
|
ColumnPinning,
|
|
23699
23768
|
ColumnWrappingFeature,
|
|
@@ -23717,11 +23786,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23717
23786
|
getRowId: (e2, t2) => {
|
|
23718
23787
|
let n2 = getStableRowId(e2);
|
|
23719
23788
|
if (n2) return n2;
|
|
23720
|
-
let i2 =
|
|
23789
|
+
let i2 = EN(e2, t2);
|
|
23721
23790
|
return String(i2);
|
|
23722
23791
|
}
|
|
23723
23792
|
} : {},
|
|
23724
|
-
locale:
|
|
23793
|
+
locale: CN,
|
|
23725
23794
|
manualPagination: z,
|
|
23726
23795
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23727
23796
|
...v ? {
|
|
@@ -23731,21 +23800,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23731
23800
|
enableMultiSort: true,
|
|
23732
23801
|
getSortedRowModel: getSortedRowModel(),
|
|
23733
23802
|
manualFiltering: true,
|
|
23734
|
-
enableColumnFilters:
|
|
23803
|
+
enableColumnFilters: iN,
|
|
23735
23804
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23736
|
-
onColumnFiltersChange:
|
|
23805
|
+
onColumnFiltersChange: oN,
|
|
23737
23806
|
onRowSelectionChange: K,
|
|
23738
23807
|
onCellSelectionChange: q,
|
|
23739
23808
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23740
23809
|
enableMultiCellSelection: c === "multi-cell",
|
|
23741
|
-
onColumnPinningChange:
|
|
23810
|
+
onColumnPinningChange: TN,
|
|
23742
23811
|
enableFocusRow: true,
|
|
23743
|
-
onFocusRowChange:
|
|
23812
|
+
onFocusRowChange: bN,
|
|
23744
23813
|
state: {
|
|
23745
23814
|
..._ ? {
|
|
23746
23815
|
sorting: _
|
|
23747
23816
|
} : {},
|
|
23748
|
-
columnFilters:
|
|
23817
|
+
columnFilters: aN,
|
|
23749
23818
|
...A ? {
|
|
23750
23819
|
pagination: A
|
|
23751
23820
|
} : U && !A ? {} : {
|
|
@@ -23757,21 +23826,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23757
23826
|
rowSelection: y ?? {},
|
|
23758
23827
|
cellSelection: S ?? [],
|
|
23759
23828
|
cellStyling: w,
|
|
23760
|
-
columnPinning:
|
|
23829
|
+
columnPinning: wN,
|
|
23761
23830
|
cellHoverTemplate: E,
|
|
23762
23831
|
cellHoverTexts: O ?? {}
|
|
23763
23832
|
}
|
|
23764
|
-
}),
|
|
23833
|
+
}), ON = (_N == null ? void 0 : _N(PANEL_TYPES.ROW_VIEWER)) ?? false, kN = !U && o.length > 100, AN = useScrollContainerHeight({
|
|
23765
23834
|
maxHeight: n,
|
|
23766
|
-
virtualize:
|
|
23835
|
+
virtualize: kN
|
|
23767
23836
|
});
|
|
23768
23837
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23769
23838
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23770
23839
|
children: [
|
|
23771
23840
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23772
|
-
filters:
|
|
23773
|
-
table:
|
|
23774
|
-
calculateTopKRows:
|
|
23841
|
+
filters: aN,
|
|
23842
|
+
table: DN,
|
|
23843
|
+
calculateTopKRows: sN
|
|
23775
23844
|
}),
|
|
23776
23845
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23777
23846
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23780,32 +23849,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23780
23849
|
children: [
|
|
23781
23850
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23782
23851
|
enableSearch: Q,
|
|
23783
|
-
searchQuery:
|
|
23852
|
+
searchQuery: rN,
|
|
23784
23853
|
onSearchQueryChange: $,
|
|
23785
|
-
reloading:
|
|
23786
|
-
showChartBuilder:
|
|
23787
|
-
isChartBuilderOpen:
|
|
23788
|
-
toggleDisplayHeader:
|
|
23789
|
-
showTableExplorer:
|
|
23790
|
-
togglePanel:
|
|
23791
|
-
isAnyPanelOpen:
|
|
23854
|
+
reloading: cN,
|
|
23855
|
+
showChartBuilder: fN,
|
|
23856
|
+
isChartBuilderOpen: pN,
|
|
23857
|
+
toggleDisplayHeader: dN,
|
|
23858
|
+
showTableExplorer: hN,
|
|
23859
|
+
togglePanel: gN,
|
|
23860
|
+
isAnyPanelOpen: vN,
|
|
23792
23861
|
downloadAs: I
|
|
23793
23862
|
}),
|
|
23794
23863
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23795
23864
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23796
|
-
ref:
|
|
23865
|
+
ref: AN,
|
|
23797
23866
|
children: [
|
|
23798
|
-
|
|
23867
|
+
xN && (0, import_jsx_runtime.jsx)("thead", {
|
|
23799
23868
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23800
23869
|
}),
|
|
23801
|
-
renderTableHeader(
|
|
23870
|
+
renderTableHeader(DN, kN || !!n),
|
|
23802
23871
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23803
|
-
table:
|
|
23872
|
+
table: DN,
|
|
23804
23873
|
columns: i,
|
|
23805
|
-
rowViewerPanelOpen:
|
|
23806
|
-
getRowIndex:
|
|
23807
|
-
viewedRowIdx:
|
|
23808
|
-
virtualize:
|
|
23874
|
+
rowViewerPanelOpen: ON,
|
|
23875
|
+
getRowIndex: EN,
|
|
23876
|
+
viewedRowIdx: yN,
|
|
23877
|
+
virtualize: kN
|
|
23809
23878
|
})
|
|
23810
23879
|
]
|
|
23811
23880
|
}),
|
|
@@ -23816,10 +23885,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23816
23885
|
pagination: U,
|
|
23817
23886
|
selection: c,
|
|
23818
23887
|
onRowSelectionChange: K,
|
|
23819
|
-
table:
|
|
23888
|
+
table: DN,
|
|
23820
23889
|
getRowIds: J,
|
|
23821
|
-
showPageSizeSelector:
|
|
23822
|
-
tableLoading:
|
|
23890
|
+
showPageSizeSelector: mN,
|
|
23891
|
+
tableLoading: cN
|
|
23823
23892
|
})
|
|
23824
23893
|
]
|
|
23825
23894
|
})
|
|
@@ -23909,67 +23978,67 @@ ${_}`,
|
|
|
23909
23978
|
});
|
|
23910
23979
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23911
23980
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$3), t[10] = $) : $ = t[10];
|
|
23912
|
-
let
|
|
23913
|
-
t[11] ===
|
|
23914
|
-
let
|
|
23915
|
-
t[13] ===
|
|
23916
|
-
className:
|
|
23917
|
-
}), t[13] =
|
|
23918
|
-
let
|
|
23919
|
-
t[15] ===
|
|
23981
|
+
let iN = d ? "rotate-180" : "rotate-0", aN;
|
|
23982
|
+
t[11] === iN ? aN = t[12] : (aN = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", iN), t[11] = iN, t[12] = aN);
|
|
23983
|
+
let oN;
|
|
23984
|
+
t[13] === aN ? oN = t[14] : (oN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
23985
|
+
className: aN
|
|
23986
|
+
}), t[13] = aN, t[14] = oN);
|
|
23987
|
+
let sN = q || "Error", cN;
|
|
23988
|
+
t[15] === sN ? cN = t[16] : (cN = (0, import_jsx_runtime.jsxs)("span", {
|
|
23920
23989
|
className: "text-destructive",
|
|
23921
23990
|
children: [
|
|
23922
|
-
|
|
23991
|
+
sN,
|
|
23923
23992
|
":"
|
|
23924
23993
|
]
|
|
23925
|
-
}), t[15] =
|
|
23926
|
-
let
|
|
23927
|
-
t[17] !== J || t[18] !==
|
|
23994
|
+
}), t[15] = sN, t[16] = cN);
|
|
23995
|
+
let lN;
|
|
23996
|
+
t[17] !== J || t[18] !== cN ? (lN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23928
23997
|
className: "text-sm inline font-mono",
|
|
23929
23998
|
children: [
|
|
23930
|
-
|
|
23999
|
+
cN,
|
|
23931
24000
|
" ",
|
|
23932
24001
|
J
|
|
23933
24002
|
]
|
|
23934
|
-
}), t[17] = J, t[18] =
|
|
23935
|
-
let
|
|
23936
|
-
t[20] !==
|
|
24003
|
+
}), t[17] = J, t[18] = cN, t[19] = lN) : lN = t[19];
|
|
24004
|
+
let dN;
|
|
24005
|
+
t[20] !== lN || t[21] !== oN ? (dN = (0, import_jsx_runtime.jsxs)("div", {
|
|
23937
24006
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23938
24007
|
onClick: $,
|
|
23939
24008
|
children: [
|
|
23940
|
-
|
|
23941
|
-
|
|
24009
|
+
oN,
|
|
24010
|
+
lN
|
|
23942
24011
|
]
|
|
23943
|
-
}), t[20] =
|
|
23944
|
-
let
|
|
23945
|
-
t[23] === c ?
|
|
24012
|
+
}), t[20] = lN, t[21] = oN, t[22] = dN) : dN = t[22];
|
|
24013
|
+
let fN;
|
|
24014
|
+
t[23] === c ? fN = t[24] : (fN = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
23946
24015
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23947
24016
|
children: c
|
|
23948
|
-
}), t[23] = c, t[24] =
|
|
23949
|
-
let
|
|
23950
|
-
t[25] !==
|
|
24017
|
+
}), t[23] = c, t[24] = fN);
|
|
24018
|
+
let mN;
|
|
24019
|
+
t[25] !== dN || t[26] !== fN ? (mN = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
23951
24020
|
value: KEY,
|
|
23952
24021
|
className: "border-none",
|
|
23953
24022
|
children: [
|
|
23954
|
-
|
|
23955
|
-
|
|
24023
|
+
dN,
|
|
24024
|
+
fN
|
|
23956
24025
|
]
|
|
23957
|
-
}), t[25] =
|
|
23958
|
-
let
|
|
23959
|
-
t[28] !==
|
|
24026
|
+
}), t[25] = dN, t[26] = fN, t[27] = mN) : mN = t[27];
|
|
24027
|
+
let hN;
|
|
24028
|
+
t[28] !== mN || t[29] !== Q ? (hN = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
23960
24029
|
type: "single",
|
|
23961
24030
|
collapsible: true,
|
|
23962
24031
|
value: Q,
|
|
23963
|
-
children:
|
|
23964
|
-
}), t[28] =
|
|
23965
|
-
let
|
|
23966
|
-
t[31] !== K || t[32] !== I ? (
|
|
24032
|
+
children: mN
|
|
24033
|
+
}), t[28] = mN, t[29] = Q, t[30] = hN) : hN = t[30];
|
|
24034
|
+
let gN;
|
|
24035
|
+
t[31] !== K || t[32] !== I ? (gN = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
23967
24036
|
tooltip: "Fix with AI",
|
|
23968
24037
|
openPrompt: () => K(false),
|
|
23969
24038
|
applyAutofix: () => K(true)
|
|
23970
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
23971
|
-
let
|
|
23972
|
-
t[34] !== A || t[35] !== E ? (
|
|
24039
|
+
}), t[31] = K, t[32] = I, t[33] = gN) : gN = t[33];
|
|
24040
|
+
let vN;
|
|
24041
|
+
t[34] !== A || t[35] !== E ? (vN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
23973
24042
|
content: "Attach pdb to the exception point.",
|
|
23974
24043
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
23975
24044
|
size: "xs",
|
|
@@ -23986,9 +24055,9 @@ ${_}`,
|
|
|
23986
24055
|
"Launch debugger"
|
|
23987
24056
|
]
|
|
23988
24057
|
})
|
|
23989
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
23990
|
-
let
|
|
23991
|
-
t[37] !== _ || t[38] !== i ? (
|
|
24058
|
+
}), t[34] = A, t[35] = E, t[36] = vN) : vN = t[36];
|
|
24059
|
+
let yN;
|
|
24060
|
+
t[37] !== _ || t[38] !== i ? (yN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
23992
24061
|
children: [
|
|
23993
24062
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
23994
24063
|
asChild: true,
|
|
@@ -24056,24 +24125,24 @@ ${_}`,
|
|
|
24056
24125
|
]
|
|
24057
24126
|
})
|
|
24058
24127
|
]
|
|
24059
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24060
|
-
let
|
|
24061
|
-
t[40] !==
|
|
24128
|
+
}), t[37] = _, t[38] = i, t[39] = yN) : yN = t[39];
|
|
24129
|
+
let bN;
|
|
24130
|
+
t[40] !== gN || t[41] !== vN || t[42] !== yN ? (bN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24062
24131
|
className: "flex gap-2",
|
|
24063
24132
|
children: [
|
|
24064
|
-
|
|
24065
|
-
|
|
24066
|
-
|
|
24133
|
+
gN,
|
|
24134
|
+
vN,
|
|
24135
|
+
yN
|
|
24067
24136
|
]
|
|
24068
|
-
}), t[40] =
|
|
24069
|
-
let
|
|
24070
|
-
return t[44] !==
|
|
24137
|
+
}), t[40] = gN, t[41] = vN, t[42] = yN, t[43] = bN) : bN = t[43];
|
|
24138
|
+
let xN;
|
|
24139
|
+
return t[44] !== hN || t[45] !== bN ? (xN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24071
24140
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24072
24141
|
children: [
|
|
24073
|
-
|
|
24074
|
-
|
|
24142
|
+
hN,
|
|
24143
|
+
bN
|
|
24075
24144
|
]
|
|
24076
|
-
}), t[44] =
|
|
24145
|
+
}), t[44] = hN, t[45] = bN, t[46] = xN) : xN = t[46], xN;
|
|
24077
24146
|
};
|
|
24078
24147
|
function lastLine(e) {
|
|
24079
24148
|
var _a2, _b;
|
|
@@ -24408,7 +24477,7 @@ ${_}`,
|
|
|
24408
24477
|
let d2 = f && "mt-4", M2;
|
|
24409
24478
|
t[13] === d2 ? M2 = t[14] : (M2 = cn("self-start max-h-none flex flex-col gap-2 mr-3 shrink-0", d2), t[13] = d2, t[14] = M2), w = (0, import_jsx_runtime.jsx)(TabsList, {
|
|
24410
24479
|
className: M2,
|
|
24411
|
-
children: e2.map(_temp3)
|
|
24480
|
+
children: e2.map(_temp3$1)
|
|
24412
24481
|
}), v = "flex-1 w-full";
|
|
24413
24482
|
let I2;
|
|
24414
24483
|
t[15] !== s || t[16] !== o || t[17] !== h ? (I2 = (e3) => {
|
|
@@ -24583,7 +24652,7 @@ ${_}`,
|
|
|
24583
24652
|
n
|
|
24584
24653
|
];
|
|
24585
24654
|
}
|
|
24586
|
-
function _temp3(e) {
|
|
24655
|
+
function _temp3$1(e) {
|
|
24587
24656
|
let [t] = e;
|
|
24588
24657
|
return (0, import_jsx_runtime.jsx)(TabsTrigger, {
|
|
24589
24658
|
value: t,
|
|
@@ -25131,7 +25200,7 @@ ${_}`,
|
|
|
25131
25200
|
description: "Zoom into the next slide."
|
|
25132
25201
|
}
|
|
25133
25202
|
], SlidesForm = (e) => {
|
|
25134
|
-
let t = (0, import_compiler_runtime$1.c)(
|
|
25203
|
+
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: a } = e, o;
|
|
25135
25204
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
25136
25205
|
className: "grid grid-cols-2",
|
|
25137
25206
|
children: [
|
|
@@ -25164,16 +25233,64 @@ ${_}`,
|
|
|
25164
25233
|
setLayout: i
|
|
25165
25234
|
})
|
|
25166
25235
|
}), t[5] = n, t[6] = i, t[7] = c) : c = t[7];
|
|
25167
|
-
let d;
|
|
25168
|
-
|
|
25236
|
+
let d, f;
|
|
25237
|
+
t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)("hr", {}), f = (0, import_jsx_runtime.jsx)(KeyboardTips, {}), t[8] = d, t[9] = f) : (d = t[8], f = t[9]);
|
|
25238
|
+
let h;
|
|
25239
|
+
return t[10] !== s || t[11] !== c ? (h = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
25169
25240
|
defaultValue: "slide",
|
|
25170
25241
|
className: "flex flex-col flex-1 p-3 gap-3",
|
|
25171
25242
|
children: [
|
|
25172
25243
|
o,
|
|
25173
25244
|
s,
|
|
25174
|
-
c
|
|
25245
|
+
c,
|
|
25246
|
+
d,
|
|
25247
|
+
f
|
|
25175
25248
|
]
|
|
25176
|
-
}), t[
|
|
25249
|
+
}), t[10] = s, t[11] = c, t[12] = h) : h = t[12], h;
|
|
25250
|
+
}, KEYBOARD_TIPS = [
|
|
25251
|
+
{
|
|
25252
|
+
keys: [
|
|
25253
|
+
"F"
|
|
25254
|
+
],
|
|
25255
|
+
description: "Enter fullscreen"
|
|
25256
|
+
},
|
|
25257
|
+
{
|
|
25258
|
+
keys: [
|
|
25259
|
+
"C"
|
|
25260
|
+
],
|
|
25261
|
+
description: "Toggle code editor"
|
|
25262
|
+
}
|
|
25263
|
+
], KEYBOARD_SHORTCUTS_URL = "https://vlaaad.github.io/reveal/keyboard-shortcuts", KeyboardTips = () => {
|
|
25264
|
+
let e = (0, import_compiler_runtime$1.c)(2), t;
|
|
25265
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
|
|
25266
|
+
className: "flex items-center gap-1.5 font-medium text-foreground/80",
|
|
25267
|
+
children: [
|
|
25268
|
+
(0, import_jsx_runtime.jsx)(Keyboard, {
|
|
25269
|
+
className: "h-3.5 w-3.5"
|
|
25270
|
+
}),
|
|
25271
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
25272
|
+
children: "Shortcuts"
|
|
25273
|
+
})
|
|
25274
|
+
]
|
|
25275
|
+
}), e[0] = t) : t = e[0];
|
|
25276
|
+
let n;
|
|
25277
|
+
return e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = (0, import_jsx_runtime.jsxs)("div", {
|
|
25278
|
+
className: "flex flex-col gap-2 text-xs text-muted-foreground",
|
|
25279
|
+
children: [
|
|
25280
|
+
t,
|
|
25281
|
+
(0, import_jsx_runtime.jsx)("ul", {
|
|
25282
|
+
className: "flex flex-col gap-1.5",
|
|
25283
|
+
children: KEYBOARD_TIPS.map(_temp2)
|
|
25284
|
+
}),
|
|
25285
|
+
(0, import_jsx_runtime.jsx)("a", {
|
|
25286
|
+
href: KEYBOARD_SHORTCUTS_URL,
|
|
25287
|
+
target: "_blank",
|
|
25288
|
+
rel: "noopener noreferrer",
|
|
25289
|
+
className: "text-link hover:underline",
|
|
25290
|
+
children: "See all shortcuts"
|
|
25291
|
+
})
|
|
25292
|
+
]
|
|
25293
|
+
}), e[1] = n) : n = e[1], n;
|
|
25177
25294
|
}, SlideConfigForm = (e) => {
|
|
25178
25295
|
var _a2;
|
|
25179
25296
|
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: o } = e, s = ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.type) ?? "slide", c;
|
|
@@ -25269,7 +25386,7 @@ ${_}`,
|
|
|
25269
25386
|
}), t[8] = _) : _ = t[8];
|
|
25270
25387
|
let v;
|
|
25271
25388
|
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
25272
|
-
children: DECK_TRANSITION_OPTIONS.map(
|
|
25389
|
+
children: DECK_TRANSITION_OPTIONS.map(_temp3)
|
|
25273
25390
|
}), t[9] = v) : v = t[9];
|
|
25274
25391
|
let y;
|
|
25275
25392
|
t[10] !== a || t[11] !== h ? (y = (0, import_jsx_runtime.jsxs)(Select, {
|
|
@@ -25367,7 +25484,7 @@ ${_}`,
|
|
|
25367
25484
|
className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
|
|
25368
25485
|
style: _,
|
|
25369
25486
|
"aria-label": "Slide configuration",
|
|
25370
|
-
onKeyDown:
|
|
25487
|
+
onKeyDown: _temp4,
|
|
25371
25488
|
children: [
|
|
25372
25489
|
I,
|
|
25373
25490
|
z
|
|
@@ -25375,13 +25492,33 @@ ${_}`,
|
|
|
25375
25492
|
}), t[26] = I, t[27] = z, t[28] = _, t[29] = U) : U = t[29], U;
|
|
25376
25493
|
};
|
|
25377
25494
|
function _temp$1(e) {
|
|
25495
|
+
return (0, import_jsx_runtime.jsx)(Kbd, {
|
|
25496
|
+
children: e
|
|
25497
|
+
}, e);
|
|
25498
|
+
}
|
|
25499
|
+
function _temp2(e) {
|
|
25500
|
+
let { keys: t, description: n } = e;
|
|
25501
|
+
return (0, import_jsx_runtime.jsxs)("li", {
|
|
25502
|
+
className: "flex items-center justify-between",
|
|
25503
|
+
children: [
|
|
25504
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
25505
|
+
children: n
|
|
25506
|
+
}),
|
|
25507
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
25508
|
+
className: "flex gap-1",
|
|
25509
|
+
children: t.map(_temp$1)
|
|
25510
|
+
})
|
|
25511
|
+
]
|
|
25512
|
+
}, n);
|
|
25513
|
+
}
|
|
25514
|
+
function _temp3(e) {
|
|
25378
25515
|
let { value: t, label: n } = e;
|
|
25379
25516
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
25380
25517
|
value: t,
|
|
25381
25518
|
children: n
|
|
25382
25519
|
}, t);
|
|
25383
25520
|
}
|
|
25384
|
-
function
|
|
25521
|
+
function _temp4(e) {
|
|
25385
25522
|
return e.stopPropagation();
|
|
25386
25523
|
}
|
|
25387
25524
|
function getVersionFromMountConfig() {
|
|
@@ -25391,7 +25528,7 @@ ${_}`,
|
|
|
25391
25528
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
25392
25529
|
}
|
|
25393
25530
|
}
|
|
25394
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.6-
|
|
25531
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.6-dev12");
|
|
25395
25532
|
showCodeInRunModeAtom = atom(true);
|
|
25396
25533
|
atom(null);
|
|
25397
25534
|
var import_compiler_runtime = require_compiler_runtime();
|