@marimo-team/islands 0.23.3-dev39 → 0.23.3-dev41
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.
- package/dist/{chat-ui-BLFhPclV.js → chat-ui-DEd_Ndal.js} +82 -82
- package/dist/{html-to-image-XYwXqg2E.js → html-to-image-DBosi5GK.js} +2240 -2214
- package/dist/main.js +1044 -1057
- package/dist/{process-output-BDVjDpbu.js → process-output-k-4WHpxz.js} +1 -1
- package/dist/{reveal-component-DaX8Aj0s.js → reveal-component-agH2Be6_.js} +2 -2
- package/dist/{slide-C1t_W7WX.js → slide-CoAyRjHI.js} +560 -545
- package/package.json +1 -1
- package/src/core/static/__tests__/export-context.test.ts +122 -0
- package/src/core/static/__tests__/static-state.test.ts +80 -0
- package/src/core/static/export-context.ts +41 -0
- package/src/core/static/static-state.ts +44 -6
- package/src/plugins/core/RenderHTML.tsx +23 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +86 -1
- package/src/plugins/core/sanitize.ts +11 -5
- package/src/plugins/core/trusted-url.ts +9 -0
package/dist/main.js
CHANGED
|
@@ -22,18 +22,18 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
|
|
25
|
-
import { An as
|
|
25
|
+
import { $ as useCellActions, An as Layers, At as DeferredRequestRegistry, B as safeExtractSetUIElementMessageBuffers, Bt as getDataTypeColor, C as AccordionContent, Cn as Root2$2, Ct as customPythonLanguageSupport, Dn as PaintRoller, Dt as Paths, E as BorderAllIcon, En as Table2, Et as PathBuilder, F as base64ToDataView, Fn as Columns2, Ft as jotaiJsonStorage, Gt as convertStatsName, H as getMarimoExportContext, In as CircleX, J as getCellNames, Jt as useRequestClient, K as createActions, Kt as getRequestClient, L as dataViewToBase64, Ln as CircleAlert, Mn as FileText, Nn as Eye, Nt as repl, Pn as Database, Q as reducer, Rn as Braces, Rt as PluralWords, S as Accordion, Sn as Item$1, St as Checkbox, T as AccordionTrigger, U as hasTrustedExportContext, V as renderHTML, Vt as require_client, W as hasRunAnyCellAtom, X as notebookOutline, Y as notebookAtom, Yt as isUninstantiated, Z as numColumnsAtom, _n as atomWithStorage, a as useLastFocusedCellId, an as parseInitialValue, bt as isInternalCellName, c as Popover$1, ct as kioskModeAtom, d as PopoverTrigger, dn as OBJECT_ID_ATTR, dt as outputIsLoading, en as NotebookScopedLocalStorage, et as useCellIds, f as isOutputEmpty, fn as RANDOM_ID_ATTR, ft as outputIsStale, gn as atomWithReducer, i as useCellFocusActions, in as parseDataset, jn as Info, jt as generateUUID, k as ChevronDownIcon, kn as LoaderCircle, ln as UIElementId, mt as headingToIdentifier, nt as createCell, o as maybeAddAltairImport, ot as getInitialAppMode, p as useExpandedConsoleOutput, pn as jsonParseWithSpecialChar, pt as isErrorMime, qt as requestClientAtom, r as LazyAnyLanguageCodeMirror, rn as parseAttrValue, s as Spinner, sn as HTMLCellId, st as initialModeAtom, u as PopoverContent, un as findCellId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as MarkdownLanguageAdapter, xn as Content2, xt as normalizeName, yt as getValidName, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DBosi5GK.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-CO1e63h_.js";
|
|
27
27
|
import { o as useSize, s as Root$3, u as createLucideIcon } from "./dist-ESg7xyoD.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-BKWq0wn2.js";
|
|
29
|
-
import { $ as CommandItem, A as TableHeader, B as usePrevious$1, C as Toggle, Ct as Download, D as TableBody, Dt as ChevronsDownUp, E as Table, Et as ChevronsLeft, F as renderCellValue, G as SELECT_COLUMN_ID, H as loadTableAndRawData, I as ColumnChartContext, J as getMimeValues, K as TOO_MANY_ROWS, L as ColumnChartSpecModel, M as NAMELESS_COLUMN_PREFIX, N as generateColumns, O as TableCell, Ot as ChevronLeft, P as inferFieldTypes, Q as CommandInput, R as DelayMount, S as slotsController, St as Ellipsis, T as Provider$1, Tt as ChevronsRight, U as loadTableData, V as getPageIndexForRow, W as INDEX_COLUMN_NAME, X as Command, Y as filtersToFilterGroup, Z as CommandEmpty, _ as contextAwarePanelOpen, _t as isStaticNotebook, a as DataTable, at as TabsList, b as isCellAwareAtom, bt as Funnel, c as downloadBlob, ct as ChartInfoState, d as Filenames, dt as useOverflowDetection, et as CommandList, f as prettifyRowColumnCount, ft as RenderTextWithLinks, g as PANEL_TYPES, gt as getStaticVirtualFiles, h as ContextAwarePanelItem, ht as EmotionCacheProvider, i as OutputRenderer, it as TabsContent, j as TableRow, k as TableHead, kt as ArrowDownWideNarrow, l as downloadByURL, lt as ChartLoadingState, m as useInternalStateWithSync, mt as HtmlOutput, n as JsonOutput, nt as Maps, o as InstallPackageButton, ot as TabsTrigger, p as prettifyRowCount, pt as Kbd, q as toFieldTypes, r as OutputArea, rt as Tabs, s as ADD_PRINTING_CLASS, st as ChartErrorState, t as Slide, tt as CommandSeparator, u as downloadHTMLAsImage, ut as LazyVegaEmbed, v as contextAwarePanelOwner, vt as TextWrap, w as Fill, wt as ChevronsUpDown, x as SlotNames, y as contextAwarePanelType, yt as GripHorizontal, z as useIntersectionObserver, __tla as __tla_2 } from "./slide-
|
|
29
|
+
import { $ as CommandItem, A as TableHeader, B as usePrevious$1, C as Toggle, Ct as Download, D as TableBody, Dt as ChevronsDownUp, E as Table, Et as ChevronsLeft, F as renderCellValue, G as SELECT_COLUMN_ID, H as loadTableAndRawData, I as ColumnChartContext, J as getMimeValues, K as TOO_MANY_ROWS, L as ColumnChartSpecModel, M as NAMELESS_COLUMN_PREFIX, N as generateColumns, O as TableCell, Ot as ChevronLeft, P as inferFieldTypes, Q as CommandInput, R as DelayMount, S as slotsController, St as Ellipsis, T as Provider$1, Tt as ChevronsRight, U as loadTableData, V as getPageIndexForRow, W as INDEX_COLUMN_NAME, X as Command, Y as filtersToFilterGroup, Z as CommandEmpty, _ as contextAwarePanelOpen, _t as isStaticNotebook, a as DataTable, at as TabsList, b as isCellAwareAtom, bt as Funnel, c as downloadBlob, ct as ChartInfoState, d as Filenames, dt as useOverflowDetection, et as CommandList, f as prettifyRowColumnCount, ft as RenderTextWithLinks, g as PANEL_TYPES, gt as getStaticVirtualFiles, h as ContextAwarePanelItem, ht as EmotionCacheProvider, i as OutputRenderer, it as TabsContent, j as TableRow, k as TableHead, kt as ArrowDownWideNarrow, l as downloadByURL, lt as ChartLoadingState, m as useInternalStateWithSync, mt as HtmlOutput, n as JsonOutput, nt as Maps, o as InstallPackageButton, ot as TabsTrigger, p as prettifyRowCount, pt as Kbd, q as toFieldTypes, r as OutputArea, rt as Tabs, s as ADD_PRINTING_CLASS, st as ChartErrorState, t as Slide, tt as CommandSeparator, u as downloadHTMLAsImage, ut as LazyVegaEmbed, v as contextAwarePanelOwner, vt as TextWrap, w as Fill, wt as ChevronsUpDown, x as SlotNames, y as contextAwarePanelType, yt as GripHorizontal, z as useIntersectionObserver, __tla as __tla_2 } from "./slide-CoAyRjHI.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, r as Badge, t as useOnMount } from "./useLifecycle-smVfjLNI.js";
|
|
31
31
|
import { n as $fb18d541ea1ad717$export$ad991b66133851cf, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
|
|
32
32
|
import { t as Check } from "./check-CFM2mVDr.js";
|
|
33
33
|
import { A as Trigger$1, C as $a916eb452884faea$export$b7a616150fdb9f44, D as $b5e257d569688ac6$export$535bd6ca7f90a273, E as $18f2051aff69b9bf$export$a54013f0d02a8f82, F as X, L as ChevronDown, M as usePrevious$2, N as useDirection, P as createCollection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, a as SelectGroup, c as SelectSeparator, d as NativeSelect, f as selectStyles, i as SelectContent, j as clamp$2, k as Icon, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, x as assertNever } from "./strings-B_FOH6eV.js";
|
|
34
34
|
import { $ as $e5be200c675c3b3a$export$aca958c65c314e6c, A as $d2b4bc8c273e7be6$export$24d547caef80ccd1, At as $c87311424ea30a05$export$fedb369cb70207f1, B as $64fa3d84918910a7$export$c62b8e45d58ddad9, Bt as $431fbd86ca7dc216$export$f21a1ffae260145a, C as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Ct as $8ae05eaa5c114e9c$export$7f54fc3180508a52, D as $ee014567cb39d3f0$export$ff05c3ac10437e03, Dt as $c87311424ea30a05$export$78551043582a6a98, E as $ee014567cb39d3f0$export$f551688fc98f2e09, Et as $c87311424ea30a05$export$6446a186d09e379e, F as $64fa3d84918910a7$export$2881499e37b75b9a, Ft as $d4ee10de306f2510$export$b4f377a2b6254582, H as $64fa3d84918910a7$export$ef03459518577ad4, Ht as $bdb11010cef70236$export$b4cc09c592e8fdb8, I as $64fa3d84918910a7$export$29f1550f4b0d4415, It as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $d2e8511e6f209edf$export$e908e06f4b8e3402, K as useDebounceControlledState, L as $64fa3d84918910a7$export$4d86445c2cf5e3, Lt as $d4ee10de306f2510$export$e58f029f0fbfdb29, M as $01b77f81d0f07f68$export$75b6ee27786ba447, Mt as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $01b77f81d0f07f68$export$b04be29aa201d4f5, Nt as $3ef42575df84b30b$export$9d1611c77c2fe928, O as $514c0188e459b4c0$export$5f1af8db9871e1d6, Ot as $c87311424ea30a05$export$9ac100e40613ea10, P as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Pt as $d4ee10de306f2510$export$4282f70798064fe0, Q as $e5be200c675c3b3a$export$a763b9476acd3eb, R as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Rt as $f4e2df6bd15f8569$export$98658e8c59125e6a, S as $3985021b0ad6602f$export$f5b8910cec6cf069, St as $e9faafb641e167db$export$90fc3a17d93f704c, T as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Tt as $313b98861ee5dd6c$export$d6875122194c7b44, U as $64fa3d84918910a7$export$fabf2dc03a41866e, Ut as $bdb11010cef70236$export$f680877a34711e37, V as $64fa3d84918910a7$export$df3a06d6289f983e, Vt as $ff5963eb1fccf552$export$e08e3b67e392101e, Wt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, X as $e93e671b31057976$export$b8473d3665f3a75a, Y as $2baaea4c71418dea$export$294aa081a6c6f55d, Z as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, _t as $9446cca9a3875146$export$7d15b64cf5a3a4c4, a as NumberField, at as $6c7bd7858deea686$export$cd11ab140839f11d, b as DropdownMenuTrigger, bt as $b4b717babfbb907b$export$bebd5a1431fec25d, c as prettyNumber, cn as Item$2, ct as $6db58dc88e78b024$export$2f817fcdc4b89ae0, d as DropdownMenuContent, dt as $9ab94262bd0047c7$export$420e68273165f4ec, et as $e5be200c675c3b3a$export$dad6ae84456c676a, f as DropdownMenuGroup, fn as Circle, ft as $3ad3f6e1647bc98d$export$80f3e147d781571c, g as DropdownMenuSeparator, gt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, ht as _class_private_field_init, i as OnBlurredInput, it as $701a24aa0da5b062$export$ea18c227d4417cc3, j as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, jt as $7215afc6de606d6b$export$de79e2c695e052f3, k as $514c0188e459b4c0$export$9afb8bc826b033ea, kt as $c87311424ea30a05$export$a11b0059900ceec8, l as prettyScientificNumber, ln as Root$4, lt as $5b160d28a433310d$export$c17fa47878dc55b6, m as DropdownMenuLabel, mt as $f6c31cce2adf654f$export$45712eceda6fad21, n as DebouncedNumberInput, nt as $319e236875307eab$export$a9b970dcc4ae71a9, ot as $fca6afa0e843324b$export$87b761675e8eaa10, p as DropdownMenuItem, pn as ChevronRight, pt as $507fabe10e71c6fb$export$630ff653c5ada6a9, q as useDebouncedCallback, r as Input, rt as $f7dceffc5ad7768b$export$4e328f61c538687f, st as $fca6afa0e843324b$export$f12b703ca79dfbb1, t as DebouncedInput, tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, u as DropdownMenu, un as createRovingFocusGroupScope, ut as $6179b936705e76d3$export$ae780daf29e6d456, vt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $a049562f99e7db0e$export$f9c6924e160136d1, wt as $df56164dff5785e2$export$4338b53315abf666, x as $3985021b0ad6602f$export$37fb8590cf2c088c, xt as $99facab73266f662$export$5add1d006293d136, yt as $b4b717babfbb907b$export$4c063cf1350e6fed, z as $64fa3d84918910a7$export$c245e6201fed2f75, zt as $431fbd86ca7dc216$export$b204af158042fbac } from "./input-Drx1pguW.js";
|
|
35
35
|
import { c as asRemoteURL, f as require_cuid2, g as CircleQuestionMark, h as isWasm, m as Deferred, u as appendQueryParams } from "./toDate-yqOcZ_tY.js";
|
|
36
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Trash2, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
36
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Trash2, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-k-4WHpxz.js";
|
|
37
37
|
import { i as Pencil, n as Trash, r as Plus, t as BulkEdit } from "./types-DBtDeUKD.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BWRJ_g_k.js";
|
|
39
39
|
import { t as require_jsx_runtime } from "./jsx-runtime-COBk7ree.js";
|
|
@@ -4012,21 +4012,21 @@ Defaulting to \`null\`.`;
|
|
|
4012
4012
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, r, c = {}) {
|
|
4013
4013
|
let { block: l = "nearest", inline: u = "nearest" } = c;
|
|
4014
4014
|
if (e === r) return;
|
|
4015
|
-
let d = e.scrollTop, f = e.scrollLeft, p = r.getBoundingClientRect(), m = e.getBoundingClientRect(), h = window.getComputedStyle(r), g = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : m.top, y = e === _ ? e.clientHeight : m.bottom, b = e === _ ? 0 : m.left, S = e === _ ? e.clientWidth : m.right, w = parseInt(h.scrollMarginTop, 10) || 0, T = parseInt(h.scrollMarginBottom, 10) || 0, E = parseInt(h.scrollMarginLeft, 10) || 0, O = parseInt(h.scrollMarginRight, 10) || 0, j = parseInt(g.scrollPaddingTop, 10) || 0, M = parseInt(g.scrollPaddingBottom, 10) || 0, I = parseInt(g.scrollPaddingLeft, 10) || 0, L = parseInt(g.scrollPaddingRight, 10) || 0, R = parseInt(g.borderTopWidth, 10) || 0, z = parseInt(g.borderBottomWidth, 10) || 0, B = parseInt(g.borderLeftWidth, 10) || 0, H = parseInt(g.borderRightWidth, 10) || 0, W = p.top - w, G = p.bottom + T, q = p.left - E,
|
|
4016
|
-
g.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
4017
|
-
let
|
|
4018
|
-
if (
|
|
4019
|
-
else if (
|
|
4020
|
-
else if (
|
|
4021
|
-
else if (
|
|
4022
|
-
let e2 = W - Z, r2 = G -
|
|
4015
|
+
let d = e.scrollTop, f = e.scrollLeft, p = r.getBoundingClientRect(), m = e.getBoundingClientRect(), h = window.getComputedStyle(r), g = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : m.top, y = e === _ ? e.clientHeight : m.bottom, b = e === _ ? 0 : m.left, S = e === _ ? e.clientWidth : m.right, w = parseInt(h.scrollMarginTop, 10) || 0, T = parseInt(h.scrollMarginBottom, 10) || 0, E = parseInt(h.scrollMarginLeft, 10) || 0, O = parseInt(h.scrollMarginRight, 10) || 0, j = parseInt(g.scrollPaddingTop, 10) || 0, M = parseInt(g.scrollPaddingBottom, 10) || 0, I = parseInt(g.scrollPaddingLeft, 10) || 0, L = parseInt(g.scrollPaddingRight, 10) || 0, R = parseInt(g.borderTopWidth, 10) || 0, z = parseInt(g.borderBottomWidth, 10) || 0, B = parseInt(g.borderLeftWidth, 10) || 0, H = parseInt(g.borderRightWidth, 10) || 0, W = p.top - w, G = p.bottom + T, q = p.left - E, E2 = p.right + O, D2 = e === _ ? 0 : B + H, O2 = e === _ ? 0 : R + z, k2 = e.offsetWidth - e.clientWidth - D2, A2 = e.offsetHeight - e.clientHeight - O2, Z = v + R + j, j2 = y - z - M - A2, M2 = b + B + I, N2 = S - H - L;
|
|
4016
|
+
g.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? M2 += k2 : N2 -= k2;
|
|
4017
|
+
let P2 = W < Z || G > j2, F2 = q < M2 || E2 > N2;
|
|
4018
|
+
if (P2 && l === "start") d += W - Z;
|
|
4019
|
+
else if (P2 && l === "center") d += (W + G) / 2 - (Z + j2) / 2;
|
|
4020
|
+
else if (P2 && l === "end") d += G - j2;
|
|
4021
|
+
else if (P2 && l === "nearest") {
|
|
4022
|
+
let e2 = W - Z, r2 = G - j2;
|
|
4023
4023
|
d += Math.abs(e2) <= Math.abs(r2) ? e2 : r2;
|
|
4024
4024
|
}
|
|
4025
|
-
if (
|
|
4026
|
-
else if (
|
|
4027
|
-
else if (
|
|
4028
|
-
else if (
|
|
4029
|
-
let e2 = q -
|
|
4025
|
+
if (F2 && u === "start") f += q - M2;
|
|
4026
|
+
else if (F2 && u === "center") f += (q + E2) / 2 - (M2 + N2) / 2;
|
|
4027
|
+
else if (F2 && u === "end") f += E2 - N2;
|
|
4028
|
+
else if (F2 && u === "nearest") {
|
|
4029
|
+
let e2 = q - M2, r2 = E2 - N2;
|
|
4030
4030
|
f += Math.abs(e2) <= Math.abs(r2) ? e2 : r2;
|
|
4031
4031
|
}
|
|
4032
4032
|
e.scrollTo({
|
|
@@ -7184,11 +7184,11 @@ Defaulting to \`null\`.`;
|
|
|
7184
7184
|
R[j] += W;
|
|
7185
7185
|
let G = $edcf132a9284368a$var$getMaxHeight(R, p, h, v, u, d, c.height, H, m, w, T);
|
|
7186
7186
|
y && y < G && (G = y), c.height = Math.min(c.height, G), R = $edcf132a9284368a$var$computePosition(r, p, c, E, z, _, h, v, b, S, m), W = $edcf132a9284368a$var$getDelta(j, R[j], c[M], p, m, d, h), R[j] += W;
|
|
7187
|
-
let q = {},
|
|
7188
|
-
q[j] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(
|
|
7189
|
-
let Z = I === "left" || I === "top" ? c[O] : 0,
|
|
7190
|
-
x: I === "top" || I === "bottom" ?
|
|
7191
|
-
y: I === "left" || I === "right" ?
|
|
7187
|
+
let q = {}, E2 = r[j] - R[j] - u[$edcf132a9284368a$var$AXIS[j]], D2 = E2 + 0.5 * r[M], O2 = b / 2 + S, k2 = $edcf132a9284368a$var$AXIS[j] === "left" ? (u.left ?? 0) + (u.right ?? 0) : (u.top ?? 0) + (u.bottom ?? 0), A2 = c[M] - k2 - b / 2 - S;
|
|
7188
|
+
q[j] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(D2, r[j] + b / 2 - (R[j] + u[$edcf132a9284368a$var$AXIS[j]]), r[j] + r[M] - b / 2 - (R[j] + u[$edcf132a9284368a$var$AXIS[j]])), O2, A2), { placement: I, crossPlacement: L } = E, b ? E2 = q[j] : L === "right" ? E2 += r[M] : L === "center" && (E2 += r[M] / 2);
|
|
7189
|
+
let Z = I === "left" || I === "top" ? c[O] : 0, j2 = {
|
|
7190
|
+
x: I === "top" || I === "bottom" ? E2 : Z,
|
|
7191
|
+
y: I === "left" || I === "right" ? E2 : Z
|
|
7192
7192
|
};
|
|
7193
7193
|
return {
|
|
7194
7194
|
position: R,
|
|
@@ -7196,7 +7196,7 @@ Defaulting to \`null\`.`;
|
|
|
7196
7196
|
arrowOffsetLeft: q.left,
|
|
7197
7197
|
arrowOffsetTop: q.top,
|
|
7198
7198
|
placement: I,
|
|
7199
|
-
triggerAnchorPoint:
|
|
7199
|
+
triggerAnchorPoint: j2
|
|
7200
7200
|
};
|
|
7201
7201
|
}
|
|
7202
7202
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -9056,8 +9056,8 @@ Defaulting to \`null\`.`;
|
|
|
9056
9056
|
e !== (0, import_react.useMemo)(() => r.segments.find((e2) => e2.isEditable), [
|
|
9057
9057
|
r.segments
|
|
9058
9058
|
]) && !r.isInvalid && (h = void 0);
|
|
9059
|
-
let G = $bdb11010cef70236$export$f680877a34711e37(), q = !r.isDisabled && !r.isReadOnly && e.isEditable,
|
|
9060
|
-
"aria-label": `${
|
|
9059
|
+
let G = $bdb11010cef70236$export$f680877a34711e37(), q = !r.isDisabled && !r.isReadOnly && e.isEditable, E2 = e.type === "literal" ? "" : f.of(e.type), D2 = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
9060
|
+
"aria-label": `${E2}${p ? `, ${p}` : ""}${m ? ", " : ""}`,
|
|
9061
9061
|
"aria-labelledby": m
|
|
9062
9062
|
});
|
|
9063
9063
|
if (e.type === "literal") return {
|
|
@@ -9065,16 +9065,16 @@ Defaulting to \`null\`.`;
|
|
|
9065
9065
|
"aria-hidden": true
|
|
9066
9066
|
}
|
|
9067
9067
|
};
|
|
9068
|
-
let
|
|
9068
|
+
let O2 = {
|
|
9069
9069
|
caretColor: "transparent"
|
|
9070
9070
|
};
|
|
9071
9071
|
if (d === "rtl") {
|
|
9072
|
-
|
|
9072
|
+
O2.unicodeBidi = "embed";
|
|
9073
9073
|
let r2 = v[e.type];
|
|
9074
|
-
(r2 === "numeric" || r2 === "2-digit") && (
|
|
9074
|
+
(r2 === "numeric" || r2 === "2-digit") && (O2.direction = "ltr");
|
|
9075
9075
|
}
|
|
9076
9076
|
return {
|
|
9077
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(S,
|
|
9077
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(S, D2, {
|
|
9078
9078
|
id: G,
|
|
9079
9079
|
...W,
|
|
9080
9080
|
"aria-invalid": r.isInvalid ? "true" : void 0,
|
|
@@ -9090,7 +9090,7 @@ Defaulting to \`null\`.`;
|
|
|
9090
9090
|
tabIndex: r.isDisabled ? void 0 : 0,
|
|
9091
9091
|
onKeyDown: E,
|
|
9092
9092
|
onFocus: B,
|
|
9093
|
-
style:
|
|
9093
|
+
style: O2,
|
|
9094
9094
|
onPointerDown(e2) {
|
|
9095
9095
|
e2.stopPropagation();
|
|
9096
9096
|
},
|
|
@@ -9362,19 +9362,6 @@ Defaulting to \`null\`.`;
|
|
|
9362
9362
|
let r = e.indexOf("/@file/");
|
|
9363
9363
|
return r === -1 ? null : e.slice(r);
|
|
9364
9364
|
}
|
|
9365
|
-
function isMarimoExportContext(e) {
|
|
9366
|
-
if (typeof e != "object" || !e) return false;
|
|
9367
|
-
let r = e;
|
|
9368
|
-
return !(r.trusted !== true || r.notebookCode !== void 0 && typeof r.notebookCode != "string");
|
|
9369
|
-
}
|
|
9370
|
-
function getMarimoExportContext() {
|
|
9371
|
-
let e = window == null ? void 0 : window.__MARIMO_EXPORT_CONTEXT__;
|
|
9372
|
-
return isMarimoExportContext(e) ? e : void 0;
|
|
9373
|
-
}
|
|
9374
|
-
function hasTrustedExportContext() {
|
|
9375
|
-
var _a3;
|
|
9376
|
-
return ((_a3 = getMarimoExportContext()) == null ? void 0 : _a3.trusted) === true;
|
|
9377
|
-
}
|
|
9378
9365
|
function isTrustedVirtualFileUrl(e) {
|
|
9379
9366
|
return typeof e != "string" || e.length === 0 ? false : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || isSafeDataUrl(e));
|
|
9380
9367
|
}
|
|
@@ -10190,7 +10177,7 @@ Defaulting to \`null\`.`;
|
|
|
10190
10177
|
h,
|
|
10191
10178
|
f,
|
|
10192
10179
|
p
|
|
10193
|
-
]), G = e.isInvalid || e.validationState === "invalid" || W, q = G ? "invalid" : null,
|
|
10180
|
+
]), G = e.isInvalid || e.validationState === "invalid" || W, q = G ? "invalid" : null, E2 = (0, import_react.useMemo)(() => g === "visible" ? d : $131cf43a05231e1e$var$unitDuration(d), [
|
|
10194
10181
|
g,
|
|
10195
10182
|
d
|
|
10196
10183
|
]);
|
|
@@ -10233,12 +10220,12 @@ Defaulting to \`null\`.`;
|
|
|
10233
10220
|
}));
|
|
10234
10221
|
},
|
|
10235
10222
|
focusNextPage() {
|
|
10236
|
-
let e2 = O.add(
|
|
10237
|
-
E($f62d864046160412$export$4f5203c0d889109e(T.add(
|
|
10223
|
+
let e2 = O.add(E2);
|
|
10224
|
+
E($f62d864046160412$export$4f5203c0d889109e(T.add(E2), f, p)), j($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(T, e2, E2, l, f, p), E2, l));
|
|
10238
10225
|
},
|
|
10239
10226
|
focusPreviousPage() {
|
|
10240
|
-
let e2 = O.subtract(
|
|
10241
|
-
E($f62d864046160412$export$4f5203c0d889109e(T.subtract(
|
|
10227
|
+
let e2 = O.subtract(E2);
|
|
10228
|
+
E($f62d864046160412$export$4f5203c0d889109e(T.subtract(E2), f, p)), j($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(T, e2, E2, l, f, p), E2, l));
|
|
10242
10229
|
},
|
|
10243
10230
|
focusSectionStart() {
|
|
10244
10231
|
d.days ? B(O) : d.weeks ? B($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(T, l)) : (d.months || d.years) && B($14e0f24ef4ac5c92$export$a5a3b454ada2268e(T));
|
|
@@ -10381,7 +10368,7 @@ Defaulting to \`null\`.`;
|
|
|
10381
10368
|
v,
|
|
10382
10369
|
p,
|
|
10383
10370
|
m
|
|
10384
|
-
]),
|
|
10371
|
+
]), E2 = e.isInvalid || e.validationState === "invalid" || q, D2 = E2 ? "invalid" : null;
|
|
10385
10372
|
return {
|
|
10386
10373
|
...j,
|
|
10387
10374
|
value: g,
|
|
@@ -10389,8 +10376,8 @@ Defaulting to \`null\`.`;
|
|
|
10389
10376
|
anchorDate: v,
|
|
10390
10377
|
setAnchorDate: R,
|
|
10391
10378
|
highlightedRange: z,
|
|
10392
|
-
validationState:
|
|
10393
|
-
isValueInvalid:
|
|
10379
|
+
validationState: D2,
|
|
10380
|
+
isValueInvalid: E2,
|
|
10394
10381
|
selectFocusedDate() {
|
|
10395
10382
|
B(j.focusedDate);
|
|
10396
10383
|
},
|
|
@@ -11611,9 +11598,9 @@ Defaulting to \`null\`.`;
|
|
|
11611
11598
|
e.maxGranularity,
|
|
11612
11599
|
_,
|
|
11613
11600
|
S
|
|
11614
|
-
]), [G, q] = (0, import_react.useState)(O), [
|
|
11615
|
-
(O !== G || S !==
|
|
11616
|
-
let
|
|
11601
|
+
]), [G, q] = (0, import_react.useState)(O), [E2, D2] = (0, import_react.useState)(b), [O2, k2] = (0, import_react.useState)(S);
|
|
11602
|
+
(O !== G || S !== O2 || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(b, E2)) && (j = new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O), q(O), D2(b), k2(S), M(j));
|
|
11603
|
+
let A2 = (r2) => {
|
|
11617
11604
|
if (!(e.isDisabled || e.isReadOnly)) if (r2 == null || r2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && r2.isCleared(W)) M(new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O)), T(null);
|
|
11618
11605
|
else if (!(r2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) r2 = $11d87f3f76e88657$export$b4a036af3fc0b032(r2, (g == null ? void 0 : g.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), M(new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O)), T(r2);
|
|
11619
11606
|
else {
|
|
@@ -11634,7 +11621,7 @@ Defaulting to \`null\`.`;
|
|
|
11634
11621
|
y,
|
|
11635
11622
|
O,
|
|
11636
11623
|
H
|
|
11637
|
-
]),
|
|
11624
|
+
]), j2 = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Z, j, z, B, b, r, _), [
|
|
11638
11625
|
Z,
|
|
11639
11626
|
z,
|
|
11640
11627
|
B,
|
|
@@ -11642,57 +11629,57 @@ Defaulting to \`null\`.`;
|
|
|
11642
11629
|
b,
|
|
11643
11630
|
r,
|
|
11644
11631
|
_
|
|
11645
|
-
]),
|
|
11646
|
-
|
|
11647
|
-
},
|
|
11632
|
+
]), M2 = (e2, r2) => {
|
|
11633
|
+
A2(j.cycle(e2, r2, H, W));
|
|
11634
|
+
}, N2 = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(w, p, m, h, L), [
|
|
11648
11635
|
w,
|
|
11649
11636
|
p,
|
|
11650
11637
|
m,
|
|
11651
11638
|
h,
|
|
11652
11639
|
L
|
|
11653
|
-
]),
|
|
11640
|
+
]), P2 = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11654
11641
|
...e,
|
|
11655
11642
|
value: w,
|
|
11656
|
-
builtinValidation:
|
|
11657
|
-
}),
|
|
11643
|
+
builtinValidation: N2
|
|
11644
|
+
}), F2 = P2.displayValidation.isInvalid, I2 = e.validationState || (F2 ? "invalid" : null);
|
|
11658
11645
|
return {
|
|
11659
|
-
...
|
|
11646
|
+
...P2,
|
|
11660
11647
|
value: O,
|
|
11661
11648
|
defaultValue: e.defaultValue ?? E,
|
|
11662
11649
|
dateValue: Z,
|
|
11663
11650
|
calendar: b,
|
|
11664
|
-
setValue:
|
|
11665
|
-
segments:
|
|
11651
|
+
setValue: A2,
|
|
11652
|
+
segments: j2,
|
|
11666
11653
|
dateFormatter: z,
|
|
11667
|
-
validationState:
|
|
11668
|
-
isInvalid:
|
|
11654
|
+
validationState: I2,
|
|
11655
|
+
isInvalid: F2,
|
|
11669
11656
|
granularity: _,
|
|
11670
11657
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11671
11658
|
isDisabled: u,
|
|
11672
11659
|
isReadOnly: d,
|
|
11673
11660
|
isRequired: f,
|
|
11674
11661
|
increment(e2) {
|
|
11675
|
-
|
|
11662
|
+
M2(e2, 1);
|
|
11676
11663
|
},
|
|
11677
11664
|
decrement(e2) {
|
|
11678
|
-
|
|
11665
|
+
M2(e2, -1);
|
|
11679
11666
|
},
|
|
11680
11667
|
incrementPage(e2) {
|
|
11681
|
-
|
|
11668
|
+
M2(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11682
11669
|
},
|
|
11683
11670
|
decrementPage(e2) {
|
|
11684
|
-
|
|
11671
|
+
M2(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11685
11672
|
},
|
|
11686
11673
|
incrementToMax(e2) {
|
|
11687
11674
|
let r2 = e2 === "hour" && S === "h12" ? 11 : j.getSegmentLimits(e2).maxValue;
|
|
11688
|
-
|
|
11675
|
+
A2(j.set(e2, r2, H));
|
|
11689
11676
|
},
|
|
11690
11677
|
decrementToMin(e2) {
|
|
11691
11678
|
let r2 = e2 === "hour" && S === "h12" ? 12 : j.getSegmentLimits(e2).minValue;
|
|
11692
|
-
|
|
11679
|
+
A2(j.set(e2, r2, H));
|
|
11693
11680
|
},
|
|
11694
11681
|
setSegment(e2, r2) {
|
|
11695
|
-
|
|
11682
|
+
A2(j.set(e2, r2, H));
|
|
11696
11683
|
},
|
|
11697
11684
|
confirmPlaceholder() {
|
|
11698
11685
|
if (!(e.isDisabled || e.isReadOnly) && j.isComplete(W)) {
|
|
@@ -11702,7 +11689,7 @@ Defaulting to \`null\`.`;
|
|
|
11702
11689
|
},
|
|
11703
11690
|
clearSegment(e2) {
|
|
11704
11691
|
let r2 = j;
|
|
11705
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)),
|
|
11692
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)), A2(r2);
|
|
11706
11693
|
},
|
|
11707
11694
|
formatValue(e2) {
|
|
11708
11695
|
return O ? new $fb18d541ea1ad717$export$ad991b66133851cf(r, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, L)).format(Z) : "";
|
|
@@ -13884,7 +13871,7 @@ Defaulting to \`null\`.`;
|
|
|
13884
13871
|
};
|
|
13885
13872
|
}
|
|
13886
13873
|
};
|
|
13887
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
13874
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-DEd_Ndal.js").then((e) => ({
|
|
13888
13875
|
default: e.Chatbot
|
|
13889
13876
|
}))), messageSchema = array(object({
|
|
13890
13877
|
id: string(),
|
|
@@ -14994,7 +14981,7 @@ Defaulting to \`null\`.`;
|
|
|
14994
14981
|
let m2 = get(l, e2);
|
|
14995
14982
|
if (m2) {
|
|
14996
14983
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
14997
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
14984
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : E2(e2, l2), f.mount && w();
|
|
14998
14985
|
}
|
|
14999
14986
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
15000
14987
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -15067,14 +15054,14 @@ Defaulting to \`null\`.`;
|
|
|
15067
15054
|
}, H = () => {
|
|
15068
15055
|
for (let e2 of p.unMount) {
|
|
15069
15056
|
let r2 = get(l, e2);
|
|
15070
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
15057
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && I2(e2);
|
|
15071
15058
|
}
|
|
15072
15059
|
p.unMount = /* @__PURE__ */ new Set();
|
|
15073
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
15060
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(j2(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
15074
15061
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
15075
15062
|
[e2]: r2
|
|
15076
15063
|
} : r2
|
|
15077
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
15064
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), E2 = (e2, r2, c2 = {}) => {
|
|
15078
15065
|
let u2 = get(l, e2), f2 = r2;
|
|
15079
15066
|
if (u2) {
|
|
15080
15067
|
let c3 = u2._f;
|
|
@@ -15088,12 +15075,12 @@ Defaulting to \`null\`.`;
|
|
|
15088
15075
|
})));
|
|
15089
15076
|
}
|
|
15090
15077
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && Z(e2);
|
|
15091
|
-
},
|
|
15078
|
+
}, D2 = (e2, r2, c2) => {
|
|
15092
15079
|
for (let u2 in r2) {
|
|
15093
15080
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
15094
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
15081
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? D2(f2, d2, c2) : E2(f2, d2, c2);
|
|
15095
15082
|
}
|
|
15096
|
-
},
|
|
15083
|
+
}, O2 = (e2, r2, m2 = {}) => {
|
|
15097
15084
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
15098
15085
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
15099
15086
|
name: e2,
|
|
@@ -15104,7 +15091,7 @@ Defaulting to \`null\`.`;
|
|
|
15104
15091
|
name: e2,
|
|
15105
15092
|
dirtyFields: getDirtyFields(u, d),
|
|
15106
15093
|
isDirty: W(e2, y2)
|
|
15107
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
15094
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? D2(e2, y2, m2) : E2(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
15108
15095
|
...c
|
|
15109
15096
|
}), _.values.next({
|
|
15110
15097
|
name: f.mount ? e2 : void 0,
|
|
@@ -15112,15 +15099,15 @@ Defaulting to \`null\`.`;
|
|
|
15112
15099
|
...d
|
|
15113
15100
|
}
|
|
15114
15101
|
});
|
|
15115
|
-
},
|
|
15102
|
+
}, k2 = async (e2) => {
|
|
15116
15103
|
f.mount = true;
|
|
15117
|
-
let u2 = e2.target, h2 = u2.name, S2 = true,
|
|
15104
|
+
let u2 = e2.target, h2 = u2.name, S2 = true, E3 = get(l, h2), O3 = () => u2.type ? getFieldValue(E3._f) : getEventValue(e2), j3 = (e3) => {
|
|
15118
15105
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
15119
15106
|
};
|
|
15120
|
-
if (
|
|
15121
|
-
let u3, f2, M3 = O3(), z3 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT, H3 = !hasValidation(
|
|
15122
|
-
set(d, h2, M3), z3 ? (
|
|
15123
|
-
let
|
|
15107
|
+
if (E3) {
|
|
15108
|
+
let u3, f2, M3 = O3(), z3 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT, H3 = !hasValidation(E3._f) && !r.resolver && !get(c.errors, h2) && !E3._f.deps || skipValidation(z3, get(c.touchedFields, h2), c.isSubmitted, y, v), W3 = isWatched(h2, p, z3);
|
|
15109
|
+
set(d, h2, M3), z3 ? (E3._f.onBlur && E3._f.onBlur(e2), m && m(0)) : E3._f.onChange && E3._f.onChange(e2);
|
|
15110
|
+
let G2 = I(h2, M3, z3, false), q2 = !isEmptyObject(G2) || W3;
|
|
15124
15111
|
if (!z3 && _.values.next({
|
|
15125
15112
|
name: h2,
|
|
15126
15113
|
type: e2.type,
|
|
@@ -15129,7 +15116,7 @@ Defaulting to \`null\`.`;
|
|
|
15129
15116
|
}
|
|
15130
15117
|
}), H3) return g.isValid && (r.mode === "onBlur" && z3 ? w() : z3 || w()), q2 && _.state.next({
|
|
15131
15118
|
name: h2,
|
|
15132
|
-
...W3 ? {} :
|
|
15119
|
+
...W3 ? {} : G2
|
|
15133
15120
|
});
|
|
15134
15121
|
if (!z3 && W3 && _.state.next({
|
|
15135
15122
|
...c
|
|
@@ -15143,12 +15130,12 @@ Defaulting to \`null\`.`;
|
|
|
15143
15130
|
}
|
|
15144
15131
|
} else T([
|
|
15145
15132
|
h2
|
|
15146
|
-
], true), u3 = (await validateField(
|
|
15133
|
+
], true), u3 = (await validateField(E3, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
15147
15134
|
h2
|
|
15148
15135
|
]), j3(M3), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
15149
|
-
S2 && (
|
|
15136
|
+
S2 && (E3._f.deps && Z(E3._f.deps), L(h2, f2, u3, G2));
|
|
15150
15137
|
}
|
|
15151
|
-
},
|
|
15138
|
+
}, A2 = (e2, r2) => {
|
|
15152
15139
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
15153
15140
|
}, Z = async (e2, u2 = {}) => {
|
|
15154
15141
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
@@ -15169,23 +15156,23 @@ Defaulting to \`null\`.`;
|
|
|
15169
15156
|
isValid: d2
|
|
15170
15157
|
} : {},
|
|
15171
15158
|
errors: c.errors
|
|
15172
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
15173
|
-
},
|
|
15159
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, A2, e2 ? m2 : p.mount), f2;
|
|
15160
|
+
}, j2 = (e2) => {
|
|
15174
15161
|
let r2 = {
|
|
15175
15162
|
...f.mount ? d : u
|
|
15176
15163
|
};
|
|
15177
15164
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
15178
|
-
},
|
|
15165
|
+
}, M2 = (e2, r2) => ({
|
|
15179
15166
|
invalid: !!get((r2 || c).errors, e2),
|
|
15180
15167
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
15181
15168
|
error: get((r2 || c).errors, e2),
|
|
15182
15169
|
isValidating: !!get(c.validatingFields, e2),
|
|
15183
15170
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
15184
|
-
}),
|
|
15171
|
+
}), N2 = (e2) => {
|
|
15185
15172
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
15186
15173
|
errors: e2 ? c.errors : {}
|
|
15187
15174
|
});
|
|
15188
|
-
},
|
|
15175
|
+
}, P2 = (e2, r2, u2) => {
|
|
15189
15176
|
let d2 = (get(l, e2, {
|
|
15190
15177
|
_f: {}
|
|
15191
15178
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -15198,9 +15185,9 @@ Defaulting to \`null\`.`;
|
|
|
15198
15185
|
errors: c.errors,
|
|
15199
15186
|
isValid: false
|
|
15200
15187
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
15201
|
-
},
|
|
15188
|
+
}, F2 = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
15202
15189
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
15203
|
-
}) : G(e2, r2, true),
|
|
15190
|
+
}) : G(e2, r2, true), I2 = (e2, f2 = {}) => {
|
|
15204
15191
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
15205
15192
|
_.values.next({
|
|
15206
15193
|
values: {
|
|
@@ -15212,9 +15199,9 @@ Defaulting to \`null\`.`;
|
|
|
15212
15199
|
isDirty: W()
|
|
15213
15200
|
} : {}
|
|
15214
15201
|
}), !f2.keepIsValid && w();
|
|
15215
|
-
},
|
|
15202
|
+
}, L2 = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
15216
15203
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
15217
|
-
},
|
|
15204
|
+
}, R2 = (e2, c2 = {}) => {
|
|
15218
15205
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
15219
15206
|
return set(l, e2, {
|
|
15220
15207
|
...d2 || {},
|
|
@@ -15228,7 +15215,7 @@ Defaulting to \`null\`.`;
|
|
|
15228
15215
|
mount: true,
|
|
15229
15216
|
...c2
|
|
15230
15217
|
}
|
|
15231
|
-
}), p.mount.add(e2), d2 ?
|
|
15218
|
+
}), p.mount.add(e2), d2 ? L2({
|
|
15232
15219
|
field: d2,
|
|
15233
15220
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
15234
15221
|
name: e2
|
|
@@ -15245,11 +15232,11 @@ Defaulting to \`null\`.`;
|
|
|
15245
15232
|
pattern: getRuleValue(c2.pattern)
|
|
15246
15233
|
} : {},
|
|
15247
15234
|
name: e2,
|
|
15248
|
-
onChange:
|
|
15249
|
-
onBlur:
|
|
15235
|
+
onChange: k2,
|
|
15236
|
+
onBlur: k2,
|
|
15250
15237
|
ref: (m3) => {
|
|
15251
15238
|
if (m3) {
|
|
15252
|
-
|
|
15239
|
+
R2(e2, c2), d2 = get(l, e2);
|
|
15253
15240
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
15254
15241
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
15255
15242
|
set(l, e2, {
|
|
@@ -15275,7 +15262,7 @@ Defaulting to \`null\`.`;
|
|
|
15275
15262
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
15276
15263
|
}
|
|
15277
15264
|
};
|
|
15278
|
-
},
|
|
15265
|
+
}, z2 = () => r.shouldFocusError && iterateFieldsByAction(l, A2, p.mount), B2 = (e2) => {
|
|
15279
15266
|
isBoolean(e2) && (_.state.next({
|
|
15280
15267
|
disabled: e2
|
|
15281
15268
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -15284,7 +15271,7 @@ Defaulting to \`null\`.`;
|
|
|
15284
15271
|
r3.disabled = u2._f.disabled || e2;
|
|
15285
15272
|
}));
|
|
15286
15273
|
}, 0, false));
|
|
15287
|
-
},
|
|
15274
|
+
}, V2 = (e2, u2) => async (f2) => {
|
|
15288
15275
|
let m2;
|
|
15289
15276
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
15290
15277
|
let h2 = cloneObject(d);
|
|
@@ -15306,7 +15293,7 @@ Defaulting to \`null\`.`;
|
|
|
15306
15293
|
}
|
|
15307
15294
|
} else u2 && await u2({
|
|
15308
15295
|
...c.errors
|
|
15309
|
-
}, f2),
|
|
15296
|
+
}, f2), z2(), setTimeout(z2);
|
|
15310
15297
|
if (_.state.next({
|
|
15311
15298
|
isSubmitted: true,
|
|
15312
15299
|
isSubmitting: false,
|
|
@@ -15314,11 +15301,11 @@ Defaulting to \`null\`.`;
|
|
|
15314
15301
|
submitCount: c.submitCount + 1,
|
|
15315
15302
|
errors: c.errors
|
|
15316
15303
|
}), m2) throw m2;
|
|
15317
|
-
},
|
|
15318
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
15304
|
+
}, H2 = (e2, r2 = {}) => {
|
|
15305
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? O2(e2, cloneObject(get(u, e2))) : (O2(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
15319
15306
|
...c
|
|
15320
15307
|
}));
|
|
15321
|
-
},
|
|
15308
|
+
}, U2 = (e2, m2 = {}) => {
|
|
15322
15309
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
15323
15310
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
15324
15311
|
if (m2.keepDirtyValues) {
|
|
@@ -15326,7 +15313,7 @@ Defaulting to \`null\`.`;
|
|
|
15326
15313
|
...p.mount,
|
|
15327
15314
|
...Object.keys(getDirtyFields(u, d))
|
|
15328
15315
|
]);
|
|
15329
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
15316
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : O2(r2, get(b2, r2));
|
|
15330
15317
|
} else {
|
|
15331
15318
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
15332
15319
|
let r2 = get(l, e3);
|
|
@@ -15371,25 +15358,25 @@ Defaulting to \`null\`.`;
|
|
|
15371
15358
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
15372
15359
|
isSubmitting: false
|
|
15373
15360
|
});
|
|
15374
|
-
},
|
|
15361
|
+
}, W2 = (e2, r2) => U2(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
15375
15362
|
return {
|
|
15376
15363
|
control: {
|
|
15377
|
-
register:
|
|
15378
|
-
unregister:
|
|
15379
|
-
getFieldState:
|
|
15380
|
-
handleSubmit:
|
|
15381
|
-
setError:
|
|
15364
|
+
register: R2,
|
|
15365
|
+
unregister: I2,
|
|
15366
|
+
getFieldState: M2,
|
|
15367
|
+
handleSubmit: V2,
|
|
15368
|
+
setError: P2,
|
|
15382
15369
|
_executeSchema: R,
|
|
15383
15370
|
_getWatch: G,
|
|
15384
15371
|
_getDirty: W,
|
|
15385
15372
|
_updateValid: w,
|
|
15386
15373
|
_removeUnmounted: H,
|
|
15387
15374
|
_updateFieldArray: E,
|
|
15388
|
-
_updateDisabledField:
|
|
15375
|
+
_updateDisabledField: L2,
|
|
15389
15376
|
_getFieldArray: q,
|
|
15390
|
-
_reset:
|
|
15377
|
+
_reset: U2,
|
|
15391
15378
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
15392
|
-
|
|
15379
|
+
W2(e2, r.resetOptions), _.state.next({
|
|
15393
15380
|
isLoading: false
|
|
15394
15381
|
});
|
|
15395
15382
|
}),
|
|
@@ -15399,7 +15386,7 @@ Defaulting to \`null\`.`;
|
|
|
15399
15386
|
...e2
|
|
15400
15387
|
};
|
|
15401
15388
|
},
|
|
15402
|
-
_disableForm:
|
|
15389
|
+
_disableForm: B2,
|
|
15403
15390
|
_subjects: _,
|
|
15404
15391
|
_proxyFormState: g,
|
|
15405
15392
|
_setErrors: j,
|
|
@@ -15441,16 +15428,16 @@ Defaulting to \`null\`.`;
|
|
|
15441
15428
|
}
|
|
15442
15429
|
},
|
|
15443
15430
|
trigger: Z,
|
|
15444
|
-
register:
|
|
15445
|
-
handleSubmit:
|
|
15446
|
-
watch:
|
|
15447
|
-
setValue:
|
|
15448
|
-
getValues:
|
|
15449
|
-
reset:
|
|
15450
|
-
resetField:
|
|
15451
|
-
clearErrors:
|
|
15452
|
-
unregister:
|
|
15453
|
-
setError:
|
|
15431
|
+
register: R2,
|
|
15432
|
+
handleSubmit: V2,
|
|
15433
|
+
watch: F2,
|
|
15434
|
+
setValue: O2,
|
|
15435
|
+
getValues: j2,
|
|
15436
|
+
reset: W2,
|
|
15437
|
+
resetField: H2,
|
|
15438
|
+
clearErrors: N2,
|
|
15439
|
+
unregister: I2,
|
|
15440
|
+
setError: P2,
|
|
15454
15441
|
setFocus: (e2, r2 = {}) => {
|
|
15455
15442
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
15456
15443
|
if (u2) {
|
|
@@ -15458,7 +15445,7 @@ Defaulting to \`null\`.`;
|
|
|
15458
15445
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
15459
15446
|
}
|
|
15460
15447
|
},
|
|
15461
|
-
getFieldState:
|
|
15448
|
+
getFieldState: M2
|
|
15462
15449
|
};
|
|
15463
15450
|
}
|
|
15464
15451
|
function useForm(e = {}) {
|
|
@@ -18620,14 +18607,14 @@ ${c}
|
|
|
18620
18607
|
}), B = C({
|
|
18621
18608
|
height: 0,
|
|
18622
18609
|
width: 0
|
|
18623
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
18610
|
+
}), H = U(), W = U(), G = C(0), q = C(null), E2 = C({
|
|
18624
18611
|
column: 0,
|
|
18625
18612
|
row: 0
|
|
18626
|
-
}),
|
|
18627
|
-
Y(x(b, $(
|
|
18613
|
+
}), D2 = U(), O2 = U(), k2 = C(false), A2 = C(0), Z = C(true), j2 = C(false), M2 = C(false);
|
|
18614
|
+
Y(x(b, $(A2), P(([e2, r2]) => !!r2)), () => {
|
|
18628
18615
|
D(Z, false);
|
|
18629
|
-
}), Y(x(ut(b, Z, B, z,
|
|
18630
|
-
D(
|
|
18616
|
+
}), Y(x(ut(b, Z, B, z, A2, j2), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
18617
|
+
D(j2, true), Ue(1, () => {
|
|
18631
18618
|
D(H, e2);
|
|
18632
18619
|
}), Et(x(h), () => {
|
|
18633
18620
|
D(r, [
|
|
@@ -18635,18 +18622,18 @@ ${c}
|
|
|
18635
18622
|
0
|
|
18636
18623
|
]), D(Z, true);
|
|
18637
18624
|
});
|
|
18638
|
-
}), F(x(
|
|
18639
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
18640
|
-
D(
|
|
18625
|
+
}), F(x(O2, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(O2), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
18626
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(E2, e2.gap), e2.scrollTop > 0 && (D(k2, true), Et(x(h, Kt(1)), (e3) => {
|
|
18627
|
+
D(k2, false);
|
|
18641
18628
|
}), D(m, {
|
|
18642
18629
|
top: e2.scrollTop
|
|
18643
18630
|
})));
|
|
18644
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
18631
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(E2, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
18645
18632
|
gap: c2,
|
|
18646
18633
|
item: r2,
|
|
18647
18634
|
scrollTop: l2,
|
|
18648
18635
|
viewport: e2
|
|
18649
|
-
}))),
|
|
18636
|
+
}))), D2), F(x(ut(V(I), l, V(E2, Or), V(B, xe), V(z, xe), V(q), V(L), V(k2), V(Z), V(A2)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
18650
18637
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
18651
18638
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
18652
18639
|
if (y2 === 0) {
|
|
@@ -18655,33 +18642,33 @@ ${c}
|
|
|
18655
18642
|
}
|
|
18656
18643
|
let S2 = io(b2, y2, g2), w2, T2;
|
|
18657
18644
|
m2 ? r2 === 0 && c2 === 0 && p2 > 0 ? (w2 = 0, T2 = p2 - 1) : (w2 = S2 * we((r2 + _2) / (v2 + _2)), T2 = S2 * Rn((c2 + _2) / (v2 + _2)) - 1, T2 = Oe(e2 - 1, re(T2, S2 - 1)), w2 = Oe(T2, re(0, w2))) : (w2 = 0, T2 = -1);
|
|
18658
|
-
let
|
|
18645
|
+
let E3 = En(w2, T2, f2), { bottom: O3, top: j3 } = Bn(d2, l2, u2, E3), M3 = Rn(e2 / S2);
|
|
18659
18646
|
return {
|
|
18660
18647
|
bottom: O3,
|
|
18661
18648
|
itemHeight: v2,
|
|
18662
|
-
items:
|
|
18649
|
+
items: E3,
|
|
18663
18650
|
itemWidth: y2,
|
|
18664
18651
|
offsetBottom: M3 * v2 + (M3 - 1) * _2 - O3,
|
|
18665
18652
|
offsetTop: j3,
|
|
18666
18653
|
top: j3
|
|
18667
18654
|
};
|
|
18668
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
18655
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, E2), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
18669
18656
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
18670
18657
|
return [
|
|
18671
18658
|
d2,
|
|
18672
18659
|
u2
|
|
18673
18660
|
];
|
|
18674
18661
|
}), J(ce)), r);
|
|
18675
|
-
let
|
|
18676
|
-
F(x(h, $(
|
|
18677
|
-
let
|
|
18662
|
+
let N2 = C(false);
|
|
18663
|
+
F(x(h, $(N2), k(([e2, r2]) => r2 || e2 !== 0)), N2);
|
|
18664
|
+
let P2 = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(N2), P(([[e2, r2], c2]) => {
|
|
18678
18665
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
18679
18666
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
18680
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
18667
|
+
}), k(([[, e2]]) => e2 - 1), J())), F2 = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), I2 = bt(x(V(R), $(k2), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
18681
18668
|
endIndex: e2[e2.length - 1].index,
|
|
18682
18669
|
startIndex: e2[0].index
|
|
18683
18670
|
})), J(An), Gt(0)));
|
|
18684
|
-
F(
|
|
18671
|
+
F(I2, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, E2), k(([e2, r2, c2, l2, u2]) => {
|
|
18685
18672
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
18686
18673
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
18687
18674
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -18690,7 +18677,7 @@ ${c}
|
|
|
18690
18677
|
top: g2
|
|
18691
18678
|
};
|
|
18692
18679
|
})), m);
|
|
18693
|
-
let
|
|
18680
|
+
let L2 = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
18694
18681
|
return F(x(j, k((e2) => ({
|
|
18695
18682
|
height: e2.visibleHeight,
|
|
18696
18683
|
width: e2.visibleWidth
|
|
@@ -18699,13 +18686,13 @@ ${c}
|
|
|
18699
18686
|
data: q,
|
|
18700
18687
|
deviation: G,
|
|
18701
18688
|
footerHeight: u,
|
|
18702
|
-
gap:
|
|
18689
|
+
gap: E2,
|
|
18703
18690
|
headerHeight: d,
|
|
18704
18691
|
increaseViewportBy: e,
|
|
18705
18692
|
initialItemCount: L,
|
|
18706
18693
|
itemDimensions: B,
|
|
18707
18694
|
overscan: c,
|
|
18708
|
-
restoreStateFrom:
|
|
18695
|
+
restoreStateFrom: O2,
|
|
18709
18696
|
scrollBy: f,
|
|
18710
18697
|
scrollContainerState: p,
|
|
18711
18698
|
scrollHeight: W,
|
|
@@ -18721,16 +18708,16 @@ ${c}
|
|
|
18721
18708
|
windowViewportRect: j,
|
|
18722
18709
|
...y,
|
|
18723
18710
|
gridState: R,
|
|
18724
|
-
horizontalDirection:
|
|
18725
|
-
initialTopMostItemIndex:
|
|
18726
|
-
totalListHeight:
|
|
18711
|
+
horizontalDirection: M2,
|
|
18712
|
+
initialTopMostItemIndex: A2,
|
|
18713
|
+
totalListHeight: L2,
|
|
18727
18714
|
...v,
|
|
18728
|
-
endReached:
|
|
18715
|
+
endReached: P2,
|
|
18729
18716
|
propsReady: S,
|
|
18730
|
-
rangeChanged:
|
|
18731
|
-
startReached:
|
|
18732
|
-
stateChanged:
|
|
18733
|
-
stateRestoreInProgress:
|
|
18717
|
+
rangeChanged: I2,
|
|
18718
|
+
startReached: F2,
|
|
18719
|
+
stateChanged: D2,
|
|
18720
|
+
stateRestoreInProgress: k2,
|
|
18734
18721
|
...M
|
|
18735
18722
|
};
|
|
18736
18723
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -18968,20 +18955,20 @@ ${c}
|
|
|
18968
18955
|
defaultProp: G,
|
|
18969
18956
|
onChange: _
|
|
18970
18957
|
}, r[22] = _, r[23] = b, r[24] = G, r[25] = q) : q = r[25];
|
|
18971
|
-
let [
|
|
18972
|
-
r[26] === y ?
|
|
18958
|
+
let [E2, D2] = useControllableState(q), O2 = E2 === void 0 ? false : E2, k2;
|
|
18959
|
+
r[26] === y ? k2 = r[27] : (k2 = (e2) => {
|
|
18973
18960
|
y == null ? void 0 : y(e2);
|
|
18974
|
-
}, r[26] = y, r[27] =
|
|
18975
|
-
let
|
|
18976
|
-
r[28] !== f || r[29] !==
|
|
18961
|
+
}, r[26] = y, r[27] = k2);
|
|
18962
|
+
let A2;
|
|
18963
|
+
r[28] !== f || r[29] !== k2 || r[30] !== L ? (A2 = {
|
|
18977
18964
|
prop: L,
|
|
18978
18965
|
defaultProp: f,
|
|
18979
|
-
onChange:
|
|
18980
|
-
}, r[28] = f, r[29] =
|
|
18981
|
-
let [Z,
|
|
18982
|
-
r[32] === Z ?
|
|
18983
|
-
let
|
|
18984
|
-
r[34] !== g || r[35] !== R || r[36] !==
|
|
18966
|
+
onChange: k2
|
|
18967
|
+
}, r[28] = f, r[29] = k2, r[30] = L, r[31] = A2) : A2 = r[31];
|
|
18968
|
+
let [Z, j2] = useControllableState(A2), M2;
|
|
18969
|
+
r[32] === Z ? M2 = r[33] : (M2 = (e2) => Array.isArray(Z) ? Z.includes(e2) : Z === e2, r[32] = Z, r[33] = M2);
|
|
18970
|
+
let N2 = M2, P2;
|
|
18971
|
+
r[34] !== g || r[35] !== R || r[36] !== D2 || r[37] !== j2 || r[38] !== Z ? (P2 = (e2) => {
|
|
18985
18972
|
let r2 = e2;
|
|
18986
18973
|
if (R) if (Array.isArray(Z)) if (Z.includes(r2)) {
|
|
18987
18974
|
let c2 = Z.filter((r3) => r3 !== e2);
|
|
@@ -18994,91 +18981,91 @@ ${c}
|
|
|
18994
18981
|
r2
|
|
18995
18982
|
];
|
|
18996
18983
|
else Z === e2 && (r2 = null);
|
|
18997
|
-
|
|
18998
|
-
}, r[34] = g, r[35] = R, r[36] =
|
|
18999
|
-
let
|
|
19000
|
-
r[40] !== W || r[41] !== m || r[42] !== R || r[43] !== S || r[44] !== Z ? (
|
|
19001
|
-
let R2 =
|
|
18984
|
+
j2(r2), (g ?? R) || D2(false);
|
|
18985
|
+
}, r[34] = g, r[35] = R, r[36] = D2, r[37] = j2, r[38] = Z, r[39] = P2) : P2 = r[39];
|
|
18986
|
+
let F2 = P2, I2;
|
|
18987
|
+
r[40] !== W || r[41] !== m || r[42] !== R || r[43] !== S || r[44] !== Z ? (I2 = () => R && W && S ? S : Z == null ? S ?? "--" : Array.isArray(Z) ? Z.length === 0 ? S ?? "--" : Z.length === 1 && m !== void 0 ? m(Z[0]) : `${Z.length} selected` : m === void 0 ? S ?? "--" : m(Z), r[40] = W, r[41] = m, r[42] = R, r[43] = S, r[44] = Z, r[45] = I2) : I2 = r[45];
|
|
18988
|
+
let R2 = I2, z2;
|
|
19002
18989
|
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z2 = cn("relative"), r[46] = z2) : z2 = r[46];
|
|
19003
18990
|
let B2;
|
|
19004
18991
|
r[47] === u ? B2 = r[48] : (B2 = 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", u), r[47] = u, r[48] = B2);
|
|
18992
|
+
let V2;
|
|
18993
|
+
r[49] === R2 ? V2 = r[50] : (V2 = R2(), r[49] = R2, r[50] = V2);
|
|
19005
18994
|
let H2;
|
|
19006
|
-
r[
|
|
19007
|
-
let U2;
|
|
19008
|
-
r[51] === H2 ? U2 = r[52] : (U2 = (0, import_jsx_runtime.jsx)("span", {
|
|
18995
|
+
r[51] === V2 ? H2 = r[52] : (H2 = (0, import_jsx_runtime.jsx)("span", {
|
|
19009
18996
|
className: "truncate flex-1 min-w-0",
|
|
19010
|
-
children:
|
|
19011
|
-
}), r[51] =
|
|
19012
|
-
let
|
|
19013
|
-
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18997
|
+
children: V2
|
|
18998
|
+
}), r[51] = V2, r[52] = H2);
|
|
18999
|
+
let U2;
|
|
19000
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U2 = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
19014
19001
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
19015
|
-
}), r[53] =
|
|
19016
|
-
let
|
|
19017
|
-
r[54] !==
|
|
19002
|
+
}), r[53] = U2) : U2 = r[53];
|
|
19003
|
+
let W2;
|
|
19004
|
+
r[54] !== O2 || r[55] !== B2 || r[56] !== H2 ? (W2 = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
19018
19005
|
asChild: true,
|
|
19019
19006
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
19020
19007
|
className: B2,
|
|
19021
|
-
"aria-expanded":
|
|
19008
|
+
"aria-expanded": O2,
|
|
19022
19009
|
children: [
|
|
19023
|
-
|
|
19024
|
-
|
|
19010
|
+
H2,
|
|
19011
|
+
U2
|
|
19025
19012
|
]
|
|
19026
19013
|
})
|
|
19027
|
-
}), r[54] =
|
|
19028
|
-
let
|
|
19029
|
-
r[58] !== B || r[59] !== v || r[60] !== T ? (
|
|
19014
|
+
}), r[54] = O2, r[55] = B2, r[56] = H2, r[57] = W2) : W2 = r[57];
|
|
19015
|
+
let G2;
|
|
19016
|
+
r[58] !== B || r[59] !== v || r[60] !== T ? (G2 = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
19030
19017
|
placeholder: B,
|
|
19031
19018
|
rootClassName: "px-1 h-8",
|
|
19032
19019
|
autoFocus: true,
|
|
19033
19020
|
value: T,
|
|
19034
19021
|
onValueChange: v
|
|
19035
|
-
}), r[58] = B, r[59] = v, r[60] = T, r[61] =
|
|
19036
|
-
let
|
|
19037
|
-
r[62] === H ?
|
|
19022
|
+
}), r[58] = B, r[59] = v, r[60] = T, r[61] = G2) : G2 = r[61];
|
|
19023
|
+
let K2;
|
|
19024
|
+
r[62] === H ? K2 = r[63] : (K2 = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
19038
19025
|
children: H
|
|
19039
|
-
}), r[62] = H, r[63] =
|
|
19026
|
+
}), r[62] = H, r[63] = K2);
|
|
19027
|
+
let q2;
|
|
19028
|
+
r[64] !== F2 || r[65] !== N2 ? (q2 = {
|
|
19029
|
+
isSelected: N2,
|
|
19030
|
+
onSelect: F2
|
|
19031
|
+
}, r[64] = F2, r[65] = N2, r[66] = q2) : q2 = r[66];
|
|
19040
19032
|
let J2;
|
|
19041
|
-
r[
|
|
19042
|
-
|
|
19043
|
-
onSelect: I2
|
|
19044
|
-
}, r[64] = I2, r[65] = P2, r[66] = J2) : J2 = r[66];
|
|
19045
|
-
let Y2;
|
|
19046
|
-
r[67] !== c || r[68] !== J2 ? (Y2 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
19047
|
-
value: J2,
|
|
19033
|
+
r[67] !== c || r[68] !== q2 ? (J2 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
19034
|
+
value: q2,
|
|
19048
19035
|
children: c
|
|
19049
|
-
}), r[67] = c, r[68] =
|
|
19050
|
-
let
|
|
19051
|
-
r[70] !==
|
|
19036
|
+
}), r[67] = c, r[68] = q2, r[69] = J2) : J2 = r[69];
|
|
19037
|
+
let Y2;
|
|
19038
|
+
r[70] !== K2 || r[71] !== J2 ? (Y2 = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
19052
19039
|
className: "max-h-60 py-.5",
|
|
19053
19040
|
children: [
|
|
19054
|
-
|
|
19055
|
-
|
|
19041
|
+
K2,
|
|
19042
|
+
J2
|
|
19056
19043
|
]
|
|
19057
|
-
}), r[70] =
|
|
19058
|
-
let
|
|
19059
|
-
r[73] !== h || r[74] !== z || r[75] !==
|
|
19044
|
+
}), r[70] = K2, r[71] = J2, r[72] = Y2) : Y2 = r[72];
|
|
19045
|
+
let X2;
|
|
19046
|
+
r[73] !== h || r[74] !== z || r[75] !== G2 || r[76] !== Y2 ? (X2 = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
19060
19047
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
19061
19048
|
align: "start",
|
|
19062
19049
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
19063
19050
|
filter: h,
|
|
19064
19051
|
shouldFilter: z,
|
|
19065
19052
|
children: [
|
|
19066
|
-
|
|
19067
|
-
|
|
19053
|
+
G2,
|
|
19054
|
+
Y2
|
|
19068
19055
|
]
|
|
19069
19056
|
})
|
|
19070
|
-
}), r[73] = h, r[74] = z, r[75] =
|
|
19071
|
-
let
|
|
19072
|
-
r[78] !==
|
|
19073
|
-
open:
|
|
19074
|
-
onOpenChange:
|
|
19057
|
+
}), r[73] = h, r[74] = z, r[75] = G2, r[76] = Y2, r[77] = X2) : X2 = r[77];
|
|
19058
|
+
let Z2;
|
|
19059
|
+
r[78] !== O2 || r[79] !== D2 || r[80] !== W2 || r[81] !== X2 ? (Z2 = (0, import_jsx_runtime.jsxs)(Popover$1, {
|
|
19060
|
+
open: O2,
|
|
19061
|
+
onOpenChange: D2,
|
|
19075
19062
|
children: [
|
|
19076
|
-
|
|
19077
|
-
|
|
19063
|
+
W2,
|
|
19064
|
+
X2
|
|
19078
19065
|
]
|
|
19079
|
-
}), r[78] =
|
|
19080
|
-
let
|
|
19081
|
-
r[83] !== W || r[84] !== l || r[85] !== m || r[86] !==
|
|
19066
|
+
}), r[78] = O2, r[79] = D2, r[80] = W2, r[81] = X2, r[82] = Z2) : Z2 = r[82];
|
|
19067
|
+
let Q2;
|
|
19068
|
+
r[83] !== W || r[84] !== l || r[85] !== m || r[86] !== F2 || r[87] !== R || r[88] !== Z ? (Q2 = R && W && (0, import_jsx_runtime.jsx)("div", {
|
|
19082
19069
|
className: cn("flex flex-col gap-1 items-start", l),
|
|
19083
19070
|
children: Array.isArray(Z) && Z.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
19084
19071
|
variant: "secondary",
|
|
@@ -19086,22 +19073,22 @@ ${c}
|
|
|
19086
19073
|
(m == null ? void 0 : m(e2)) ?? String(e2),
|
|
19087
19074
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
19088
19075
|
onClick: () => {
|
|
19089
|
-
|
|
19076
|
+
F2(e2);
|
|
19090
19077
|
},
|
|
19091
19078
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
19092
19079
|
})
|
|
19093
19080
|
]
|
|
19094
19081
|
}, String(e2)))
|
|
19095
|
-
}), r[83] = W, r[84] = l, r[85] = m, r[86] =
|
|
19096
|
-
let
|
|
19097
|
-
return r[90] !== w || r[91] !==
|
|
19082
|
+
}), r[83] = W, r[84] = l, r[85] = m, r[86] = F2, r[87] = R, r[88] = Z, r[89] = Q2) : Q2 = r[89];
|
|
19083
|
+
let $2;
|
|
19084
|
+
return r[90] !== w || r[91] !== Z2 || r[92] !== Q2 ? ($2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
19098
19085
|
className: z2,
|
|
19099
19086
|
...w,
|
|
19100
19087
|
children: [
|
|
19101
|
-
|
|
19102
|
-
|
|
19088
|
+
Z2,
|
|
19089
|
+
Q2
|
|
19103
19090
|
]
|
|
19104
|
-
}), r[90] = w, r[91] =
|
|
19091
|
+
}), r[90] = w, r[91] = Z2, r[92] = Q2, r[93] = $2) : $2 = r[93], $2;
|
|
19105
19092
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
19106
19093
|
let c = (0, import_compiler_runtime$84.c)(17), { children: l, className: u, value: d, onSelect: f, disabled: m } = e, h = typeof d == "object" && "value" in d ? d.value : String(d), g = import_react.use(ComboboxContext), _;
|
|
19107
19094
|
c[0] === u ? _ = c[1] : (_ = cn("pl-6 m-1 py-1", u), c[0] = u, c[1] = _);
|
|
@@ -22175,53 +22162,53 @@ ${c}
|
|
|
22175
22162
|
className: "text-muted-foreground text-xs",
|
|
22176
22163
|
children: "|"
|
|
22177
22164
|
}), r[24] = q) : q = r[24];
|
|
22178
|
-
let
|
|
22179
|
-
r[25] === E ?
|
|
22180
|
-
let
|
|
22181
|
-
r[27] ===
|
|
22182
|
-
let
|
|
22183
|
-
r[29] !==
|
|
22165
|
+
let E2;
|
|
22166
|
+
r[25] === E ? E2 = r[26] : (E2 = () => E(PANEL_TYPES.COLUMN_EXPLORER), r[25] = E, r[26] = E2);
|
|
22167
|
+
let D2 = R === PANEL_TYPES.COLUMN_EXPLORER ? activeClassName : inactiveClassName, O2;
|
|
22168
|
+
r[27] === D2 ? O2 = r[28] : (O2 = cn(tabTriggerClassName, D2), r[27] = D2, r[28] = O2);
|
|
22169
|
+
let k2;
|
|
22170
|
+
r[29] !== O2 || r[30] !== E2 ? (k2 = (0, import_jsx_runtime.jsx)(Button, {
|
|
22184
22171
|
variant: "text",
|
|
22185
22172
|
size: "xs",
|
|
22186
|
-
onClick:
|
|
22187
|
-
className:
|
|
22173
|
+
onClick: E2,
|
|
22174
|
+
className: O2,
|
|
22188
22175
|
children: "Columns"
|
|
22189
|
-
}), r[29] =
|
|
22190
|
-
let
|
|
22191
|
-
r[32] !==
|
|
22176
|
+
}), r[29] = O2, r[30] = E2, r[31] = k2) : k2 = r[31];
|
|
22177
|
+
let A2;
|
|
22178
|
+
r[32] !== k2 || r[33] !== G ? (A2 = (0, import_jsx_runtime.jsx)(Fill, {
|
|
22192
22179
|
name: SlotNames.CONTEXT_AWARE_PANEL_HEADER,
|
|
22193
22180
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
22194
22181
|
className: "flex items-center gap-1",
|
|
22195
22182
|
children: [
|
|
22196
22183
|
G,
|
|
22197
22184
|
q,
|
|
22198
|
-
|
|
22185
|
+
k2
|
|
22199
22186
|
]
|
|
22200
22187
|
})
|
|
22201
|
-
}), r[32] =
|
|
22188
|
+
}), r[32] = k2, r[33] = G, r[34] = A2) : A2 = r[34];
|
|
22202
22189
|
let Z;
|
|
22203
22190
|
r[35] === M ? Z = r[36] : (Z = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
22204
22191
|
value: PANEL_TYPES.ROW_VIEWER,
|
|
22205
22192
|
className: "flex-1 overflow-auto",
|
|
22206
22193
|
children: M
|
|
22207
22194
|
}), r[35] = M, r[36] = Z);
|
|
22208
|
-
let
|
|
22209
|
-
r[37] === L ?
|
|
22195
|
+
let j2;
|
|
22196
|
+
r[37] === L ? j2 = r[38] : (j2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
22210
22197
|
value: PANEL_TYPES.COLUMN_EXPLORER,
|
|
22211
22198
|
className: "flex-1 overflow-auto",
|
|
22212
22199
|
children: L
|
|
22213
|
-
}), r[37] = L, r[38] =
|
|
22214
|
-
let
|
|
22215
|
-
return r[39] !== R || r[40] !==
|
|
22200
|
+
}), r[37] = L, r[38] = j2);
|
|
22201
|
+
let M2;
|
|
22202
|
+
return r[39] !== R || r[40] !== A2 || r[41] !== Z || r[42] !== j2 || r[43] !== z ? (M2 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
22216
22203
|
value: R,
|
|
22217
22204
|
onValueChange: z,
|
|
22218
22205
|
className: "flex flex-col min-w-[350px]",
|
|
22219
22206
|
children: [
|
|
22220
|
-
|
|
22207
|
+
A2,
|
|
22221
22208
|
Z,
|
|
22222
|
-
|
|
22209
|
+
j2
|
|
22223
22210
|
]
|
|
22224
|
-
}), r[39] = R, r[40] =
|
|
22211
|
+
}), r[39] = R, r[40] = A2, r[41] = Z, r[42] = j2, r[43] = z, r[44] = M2) : M2 = r[44], M2;
|
|
22225
22212
|
};
|
|
22226
22213
|
var import_compiler_runtime$66 = require_compiler_runtime();
|
|
22227
22214
|
function useEffectSkipFirstRender(e, r) {
|
|
@@ -22946,8 +22933,8 @@ ${c}
|
|
|
22946
22933
|
_.pageSize,
|
|
22947
22934
|
_.pageIndex
|
|
22948
22935
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
22949
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
22950
|
-
r[48] !== w || r[49] !== u || r[50] !== y || r[51] !== m ? (
|
|
22936
|
+
let { data: W, error: G, isPending: q, isFetching: E2 } = useAsyncData(z, H), D2;
|
|
22937
|
+
r[48] !== w || r[49] !== u || r[50] !== y || r[51] !== m ? (D2 = async (e2) => ({
|
|
22951
22938
|
rows: await loadTableData((await u({
|
|
22952
22939
|
page_number: e2,
|
|
22953
22940
|
page_size: 1,
|
|
@@ -22956,38 +22943,38 @@ ${c}
|
|
|
22956
22943
|
filters: filtersToFilterGroup(w),
|
|
22957
22944
|
max_columns: null
|
|
22958
22945
|
})).data)
|
|
22959
|
-
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] =
|
|
22960
|
-
let
|
|
22961
|
-
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
22946
|
+
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] = D2) : D2 = r[52];
|
|
22947
|
+
let O2 = D2, k2;
|
|
22948
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k2 = () => {
|
|
22962
22949
|
v(_temp4$6);
|
|
22963
|
-
}, r[53] =
|
|
22964
|
-
let
|
|
22965
|
-
r[54] ===
|
|
22966
|
-
|
|
22967
|
-
], r[54] =
|
|
22968
|
-
let
|
|
22969
|
-
r[56] === e ?
|
|
22950
|
+
}, r[53] = k2) : k2 = r[53];
|
|
22951
|
+
let A2 = W == null ? void 0 : W.totalRows, Z;
|
|
22952
|
+
r[54] === A2 ? Z = r[55] : (Z = [
|
|
22953
|
+
A2
|
|
22954
|
+
], r[54] = A2, r[55] = Z), (0, import_react.useEffect)(k2, Z);
|
|
22955
|
+
let j2;
|
|
22956
|
+
r[56] === e ? j2 = r[57] : (j2 = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
22970
22957
|
data: null,
|
|
22971
22958
|
stats: {},
|
|
22972
22959
|
bin_values: {},
|
|
22973
22960
|
value_counts: {},
|
|
22974
22961
|
show_charts: false
|
|
22975
|
-
} : e.get_column_summaries({}), r[56] = e, r[57] =
|
|
22976
|
-
let
|
|
22977
|
-
r[58] !== w || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== y ? (
|
|
22962
|
+
} : e.get_column_summaries({}), r[56] = e, r[57] = j2);
|
|
22963
|
+
let M2;
|
|
22964
|
+
r[58] !== w || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== y ? (M2 = [
|
|
22978
22965
|
e.get_column_summaries,
|
|
22979
22966
|
e.showColumnSummaries,
|
|
22980
22967
|
w,
|
|
22981
22968
|
y,
|
|
22982
22969
|
e.totalRows,
|
|
22983
22970
|
e.data
|
|
22984
|
-
], r[58] = w, r[59] = e.data, r[60] = e.get_column_summaries, r[61] = e.showColumnSummaries, r[62] = e.totalRows, r[63] = y, r[64] =
|
|
22985
|
-
let { data:
|
|
22986
|
-
if (r[65] ===
|
|
22987
|
-
|
|
22988
|
-
},
|
|
22989
|
-
|
|
22990
|
-
], r[65] =
|
|
22971
|
+
], r[58] = w, r[59] = e.data, r[60] = e.get_column_summaries, r[61] = e.showColumnSummaries, r[62] = e.totalRows, r[63] = y, r[64] = M2) : M2 = r[64];
|
|
22972
|
+
let { data: N2, error: P2 } = useAsyncData(j2, M2), F2, I2;
|
|
22973
|
+
if (r[65] === P2 ? (F2 = r[66], I2 = r[67]) : (F2 = () => {
|
|
22974
|
+
P2 && Logger.error(P2);
|
|
22975
|
+
}, I2 = [
|
|
22976
|
+
P2
|
|
22977
|
+
], r[65] = P2, r[66] = F2, r[67] = I2), (0, import_react.useEffect)(F2, I2), q) {
|
|
22991
22978
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
22992
22979
|
return r[68] === c2 ? l2 = r[69] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
22993
22980
|
milliseconds: 200,
|
|
@@ -22996,7 +22983,7 @@ ${c}
|
|
|
22996
22983
|
})
|
|
22997
22984
|
}), r[68] = c2, r[69] = l2), l2;
|
|
22998
22985
|
}
|
|
22999
|
-
let
|
|
22986
|
+
let L2 = null;
|
|
23000
22987
|
if (G) {
|
|
23001
22988
|
Logger.error(G);
|
|
23002
22989
|
let e2;
|
|
@@ -23012,59 +22999,59 @@ ${c}
|
|
|
23012
22999
|
children: G.message || "An unknown error occurred"
|
|
23013
23000
|
})
|
|
23014
23001
|
]
|
|
23015
|
-
}), r[70] = G, r[71] = e2),
|
|
23002
|
+
}), r[70] = G, r[71] = e2), L2 = e2;
|
|
23016
23003
|
}
|
|
23017
|
-
let
|
|
23018
|
-
r[72] === O ?
|
|
23004
|
+
let R2;
|
|
23005
|
+
r[72] === O ? R2 = r[73] : (R2 = () => {
|
|
23019
23006
|
j(!O);
|
|
23020
|
-
}, r[72] = O, r[73] =
|
|
23021
|
-
let
|
|
23022
|
-
r[74] !== l || r[75] !==
|
|
23007
|
+
}, r[72] = O, r[73] = R2);
|
|
23008
|
+
let z2 = R2, B2 = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, V2 = W == null ? void 0 : W.rawRows, H2 = E2 && !q, U2 = (W == null ? void 0 : W.totalRows) ?? e.totalRows, W2 = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, G2 = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, K2;
|
|
23009
|
+
r[74] !== l || r[75] !== N2 || r[76] !== O || r[77] !== w || r[78] !== O2 || r[79] !== _ || r[80] !== e || r[81] !== y || r[82] !== m || r[83] !== B2 || r[84] !== V2 || r[85] !== H2 || r[86] !== U2 || r[87] !== W2 || r[88] !== G2 || r[89] !== z2 ? (K2 = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
23023
23010
|
...e,
|
|
23024
|
-
data:
|
|
23025
|
-
rawData:
|
|
23026
|
-
columnSummaries:
|
|
23011
|
+
data: B2,
|
|
23012
|
+
rawData: V2,
|
|
23013
|
+
columnSummaries: N2,
|
|
23027
23014
|
sorting: m,
|
|
23028
23015
|
setSorting: h,
|
|
23029
23016
|
searchQuery: y,
|
|
23030
23017
|
setSearchQuery: b,
|
|
23031
23018
|
filters: w,
|
|
23032
23019
|
setFilters: T,
|
|
23033
|
-
reloading:
|
|
23034
|
-
totalRows:
|
|
23020
|
+
reloading: H2,
|
|
23021
|
+
totalRows: U2,
|
|
23035
23022
|
paginationState: _,
|
|
23036
23023
|
setPaginationState: v,
|
|
23037
|
-
cellStyles:
|
|
23038
|
-
cellHoverTexts:
|
|
23039
|
-
toggleDisplayHeader:
|
|
23024
|
+
cellStyles: W2,
|
|
23025
|
+
cellHoverTexts: G2,
|
|
23026
|
+
toggleDisplayHeader: z2,
|
|
23040
23027
|
isChartBuilderOpen: O,
|
|
23041
|
-
getRow:
|
|
23028
|
+
getRow: O2,
|
|
23042
23029
|
cellId: l,
|
|
23043
23030
|
maxHeight: e.maxHeight
|
|
23044
|
-
}), r[74] = l, r[75] =
|
|
23045
|
-
let
|
|
23046
|
-
r[91] !== l || r[92] !==
|
|
23031
|
+
}), r[74] = l, r[75] = N2, r[76] = O, r[77] = w, r[78] = O2, r[79] = _, r[80] = e, r[81] = y, r[82] = m, r[83] = B2, r[84] = V2, r[85] = H2, r[86] = U2, r[87] = W2, r[88] = G2, r[89] = z2, r[90] = K2) : K2 = r[90];
|
|
23032
|
+
let q2 = K2, J2;
|
|
23033
|
+
r[91] !== l || r[92] !== q2 || r[93] !== (W == null ? void 0 : W.rows) || r[94] !== O || r[95] !== e.fieldTypes || r[96] !== e.get_data_url || r[97] !== e.showChartBuilder || r[98] !== e.totalColumns || r[99] !== e.totalRows ? (J2 = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
23047
23034
|
displayHeader: O,
|
|
23048
23035
|
onCloseChartBuilder: () => j(false),
|
|
23049
23036
|
data: (W == null ? void 0 : W.rows) || [],
|
|
23050
23037
|
columns: e.totalColumns,
|
|
23051
23038
|
totalRows: e.totalRows,
|
|
23052
|
-
dataTable:
|
|
23039
|
+
dataTable: q2,
|
|
23053
23040
|
getDataUrl: e.get_data_url,
|
|
23054
23041
|
fieldTypes: e.fieldTypes,
|
|
23055
23042
|
cellId: l
|
|
23056
|
-
}) :
|
|
23057
|
-
let
|
|
23058
|
-
return r[101] !==
|
|
23043
|
+
}) : q2, r[91] = l, r[92] = q2, r[93] = W == null ? void 0 : W.rows, r[94] = O, r[95] = e.fieldTypes, r[96] = e.get_data_url, r[97] = e.showChartBuilder, r[98] = e.totalColumns, r[99] = e.totalRows, r[100] = J2) : J2 = r[100];
|
|
23044
|
+
let Y2;
|
|
23045
|
+
return r[101] !== L2 || r[102] !== J2 ? (Y2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23059
23046
|
children: [
|
|
23060
|
-
|
|
23061
|
-
|
|
23047
|
+
L2,
|
|
23048
|
+
J2
|
|
23062
23049
|
]
|
|
23063
|
-
}), r[101] =
|
|
23050
|
+
}), r[101] = L2, r[102] = J2, r[103] = Y2) : Y2 = r[103], Y2;
|
|
23064
23051
|
});
|
|
23065
23052
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
23066
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, maxColumns: u, pagination: d, selection: f, value: p, showFilters: m, showDownload: h, showPageSizeSelector: g, showColumnExplorer: _, showRowExplorer: v, showChartBuilder: y, showDataTypes: b, rowHeaders: S, fieldTypes: w, paginationState: T, setPaginationState: O, download_as: j, columnSummaries: M, className: I, setValue: L, sorting: R, setSorting: z, enableSearch: B, searchQuery: H, setSearchQuery: W, filters: G, setFilters: q, reloading:
|
|
23067
|
-
let
|
|
23053
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, maxColumns: u, pagination: d, selection: f, value: p, showFilters: m, showDownload: h, showPageSizeSelector: g, showColumnExplorer: _, showRowExplorer: v, showChartBuilder: y, showDataTypes: b, rowHeaders: S, fieldTypes: w, paginationState: T, setPaginationState: O, download_as: j, columnSummaries: M, className: I, setValue: L, sorting: R, setSorting: z, enableSearch: B, searchQuery: H, setSearchQuery: W, filters: G, setFilters: q, reloading: E2, freezeColumnsLeft: D2, freezeColumnsRight: O2, textJustifyColumns: k2, wrappedColumns: A2, headerTooltip: Z, totalColumns: j2, get_row_ids: M2, cellStyles: N2, hoverTemplate: P2, cellHoverTexts: F2, toggleDisplayHeader: I2, isChartBuilderOpen: L2, calculate_top_k_rows: R2, preview_column: z2, getRow: B2, cellId: V2, maxHeight: H2 }) => {
|
|
23054
|
+
let U2 = (0, import_react.useId)(), [W2, G2] = (0, import_react.useState)(0), { isPanelOpen: K2, isAnyPanelOpen: q2, togglePanel: J2, panelType: Y2, setPanelType: X2 } = usePanelOwnership(U2, V2), Z2 = (0, import_react.useMemo)(() => {
|
|
23068
23055
|
if (!M || !w || !M.stats) return ColumnChartSpecModel.EMPTY;
|
|
23069
23056
|
let e2 = toFieldTypes(w);
|
|
23070
23057
|
return new ColumnChartSpecModel(M.data || [], e2, M.stats, M.bin_values, M.value_counts, {
|
|
@@ -23073,13 +23060,13 @@ ${c}
|
|
|
23073
23060
|
}, [
|
|
23074
23061
|
w,
|
|
23075
23062
|
M
|
|
23076
|
-
]),
|
|
23063
|
+
]), Q2 = useDeepCompareMemoize(w ?? inferFieldTypes(r)), $2 = (0, import_react.useMemo)(() => u === "all" ? Q2 : Q2.slice(0, u), [
|
|
23077
23064
|
u,
|
|
23078
|
-
|
|
23079
|
-
]),
|
|
23065
|
+
Q2
|
|
23066
|
+
]), e4 = (0, import_react.useMemo)(() => {
|
|
23080
23067
|
let e2 = {};
|
|
23081
23068
|
if (r && r.length > 0) {
|
|
23082
|
-
for (let [c2, l2] of
|
|
23069
|
+
for (let [c2, l2] of $2) if (l2[0] === "number") {
|
|
23083
23070
|
let l3 = 0;
|
|
23084
23071
|
for (let e3 of r) {
|
|
23085
23072
|
let r2 = e3[c2];
|
|
@@ -23094,55 +23081,55 @@ ${c}
|
|
|
23094
23081
|
return e2;
|
|
23095
23082
|
}, [
|
|
23096
23083
|
r,
|
|
23097
|
-
|
|
23098
|
-
]),
|
|
23084
|
+
$2
|
|
23085
|
+
]), t4 = useDeepCompareMemoize(S), n4 = useDeepCompareMemoize(k2), r4 = useDeepCompareMemoize(A2), i4 = useDeepCompareMemoize(Z2), a4 = useDeepCompareMemoize(e4), o4 = $2.length;
|
|
23099
23086
|
w || (b = false);
|
|
23100
|
-
let
|
|
23101
|
-
rowHeaders:
|
|
23087
|
+
let s4 = (0, import_react.useMemo)(() => generateColumns({
|
|
23088
|
+
rowHeaders: t4,
|
|
23102
23089
|
selection: f,
|
|
23103
|
-
chartSpecModel:
|
|
23104
|
-
fieldTypes:
|
|
23105
|
-
textJustifyColumns:
|
|
23106
|
-
wrappedColumns:
|
|
23090
|
+
chartSpecModel: i4,
|
|
23091
|
+
fieldTypes: $2,
|
|
23092
|
+
textJustifyColumns: n4,
|
|
23093
|
+
wrappedColumns: r4,
|
|
23107
23094
|
headerTooltip: Z,
|
|
23108
23095
|
showDataTypes: b,
|
|
23109
|
-
calculateTopKRows:
|
|
23110
|
-
fractionDigitsByColumn:
|
|
23096
|
+
calculateTopKRows: R2,
|
|
23097
|
+
fractionDigitsByColumn: a4
|
|
23111
23098
|
}), [
|
|
23112
23099
|
f,
|
|
23113
23100
|
b,
|
|
23114
|
-
|
|
23101
|
+
i4,
|
|
23102
|
+
t4,
|
|
23103
|
+
$2,
|
|
23115
23104
|
n4,
|
|
23116
|
-
e4,
|
|
23117
23105
|
r4,
|
|
23118
|
-
i4,
|
|
23119
23106
|
Z,
|
|
23120
|
-
|
|
23121
|
-
|
|
23122
|
-
]),
|
|
23107
|
+
R2,
|
|
23108
|
+
a4
|
|
23109
|
+
]), c4 = (0, import_react.useMemo)(() => Object.fromEntries((p || []).map((e2) => [
|
|
23123
23110
|
e2,
|
|
23124
23111
|
true
|
|
23125
23112
|
])), [
|
|
23126
23113
|
p
|
|
23127
|
-
]),
|
|
23114
|
+
]), l4 = useEvent_default((e2) => {
|
|
23128
23115
|
if (f === "single") {
|
|
23129
23116
|
let r2 = Functions.asUpdater(e2)({});
|
|
23130
23117
|
L(Object.keys(r2).slice(0, 1));
|
|
23131
23118
|
}
|
|
23132
23119
|
if (f === "multi") {
|
|
23133
|
-
let r2 = Functions.asUpdater(e2)(
|
|
23120
|
+
let r2 = Functions.asUpdater(e2)(c4);
|
|
23134
23121
|
L(Object.keys(r2));
|
|
23135
23122
|
}
|
|
23136
|
-
}),
|
|
23137
|
-
if (
|
|
23123
|
+
}), u4 = useEvent_default((e2) => {
|
|
23124
|
+
if (G2(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
23138
23125
|
let r2 = getPageIndexForRow(e2, T.pageIndex, T.pageSize);
|
|
23139
23126
|
r2 !== null && O((e3) => ({
|
|
23140
23127
|
...e3,
|
|
23141
23128
|
pageIndex: r2
|
|
23142
23129
|
}));
|
|
23143
|
-
}),
|
|
23144
|
-
f === "single-cell" && L(Functions.asUpdater(e2)(
|
|
23145
|
-
}),
|
|
23130
|
+
}), d4 = p.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), f4 = useEvent_default((e2) => {
|
|
23131
|
+
f === "single-cell" && L(Functions.asUpdater(e2)(d4).slice(0, 1)), f === "multi-cell" && L(Functions.asUpdater(e2)(d4));
|
|
23132
|
+
}), p4 = f === "multi" || f === "single", m4 = _ && !!z2, h4 = isInVscodeExtension(), g4 = isIslands();
|
|
23146
23133
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23147
23134
|
children: [
|
|
23148
23135
|
l === "too_many" && T.pageSize === r.length && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
@@ -23153,13 +23140,13 @@ ${c}
|
|
|
23153
23140
|
" rows."
|
|
23154
23141
|
]
|
|
23155
23142
|
}),
|
|
23156
|
-
|
|
23143
|
+
o4 < j2 && o4 > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
23157
23144
|
className: "mb-1 rounded",
|
|
23158
23145
|
children: [
|
|
23159
23146
|
"Result clipped. Showing ",
|
|
23160
|
-
|
|
23147
|
+
o4,
|
|
23161
23148
|
" of ",
|
|
23162
|
-
|
|
23149
|
+
j2,
|
|
23163
23150
|
" columns."
|
|
23164
23151
|
]
|
|
23165
23152
|
}),
|
|
@@ -23167,27 +23154,27 @@ ${c}
|
|
|
23167
23154
|
className: "mb-1 rounded",
|
|
23168
23155
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
23169
23156
|
}),
|
|
23170
|
-
|
|
23157
|
+
q2 && (v || m4) && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
23171
23158
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
23172
|
-
rowIdx:
|
|
23173
|
-
setRowIdx:
|
|
23159
|
+
rowIdx: W2,
|
|
23160
|
+
setRowIdx: u4,
|
|
23174
23161
|
totalRows: l,
|
|
23175
|
-
fieldTypes:
|
|
23176
|
-
getRow:
|
|
23177
|
-
isSelectable:
|
|
23178
|
-
isRowSelected: !!
|
|
23179
|
-
handleRowSelectionChange:
|
|
23180
|
-
previewColumn:
|
|
23181
|
-
totalColumns:
|
|
23182
|
-
tableId:
|
|
23183
|
-
showRowExplorer: v && !
|
|
23184
|
-
showColumnExplorer:
|
|
23185
|
-
activeTab:
|
|
23186
|
-
onTabChange:
|
|
23162
|
+
fieldTypes: Q2,
|
|
23163
|
+
getRow: B2,
|
|
23164
|
+
isSelectable: p4,
|
|
23165
|
+
isRowSelected: !!c4[W2],
|
|
23166
|
+
handleRowSelectionChange: l4,
|
|
23167
|
+
previewColumn: z2,
|
|
23168
|
+
totalColumns: j2,
|
|
23169
|
+
tableId: U2,
|
|
23170
|
+
showRowExplorer: v && !h4,
|
|
23171
|
+
showColumnExplorer: m4 && !h4,
|
|
23172
|
+
activeTab: Y2,
|
|
23173
|
+
onTabChange: X2
|
|
23187
23174
|
})
|
|
23188
23175
|
}),
|
|
23189
23176
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
23190
|
-
value:
|
|
23177
|
+
value: Z2,
|
|
23191
23178
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
23192
23179
|
label: e,
|
|
23193
23180
|
align: "top",
|
|
@@ -23195,12 +23182,12 @@ ${c}
|
|
|
23195
23182
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
23196
23183
|
data: r,
|
|
23197
23184
|
rawData: c,
|
|
23198
|
-
columns:
|
|
23185
|
+
columns: s4,
|
|
23199
23186
|
className: I,
|
|
23200
|
-
maxHeight:
|
|
23187
|
+
maxHeight: H2,
|
|
23201
23188
|
sorting: R,
|
|
23202
23189
|
totalRows: l,
|
|
23203
|
-
totalColumns:
|
|
23190
|
+
totalColumns: j2,
|
|
23204
23191
|
manualSorting: true,
|
|
23205
23192
|
setSorting: z,
|
|
23206
23193
|
pagination: d,
|
|
@@ -23208,11 +23195,11 @@ ${c}
|
|
|
23208
23195
|
selection: f,
|
|
23209
23196
|
paginationState: T,
|
|
23210
23197
|
setPaginationState: O,
|
|
23211
|
-
rowSelection:
|
|
23212
|
-
cellSelection:
|
|
23213
|
-
cellStyling:
|
|
23214
|
-
hoverTemplate:
|
|
23215
|
-
cellHoverTexts:
|
|
23198
|
+
rowSelection: c4,
|
|
23199
|
+
cellSelection: d4,
|
|
23200
|
+
cellStyling: N2,
|
|
23201
|
+
hoverTemplate: P2,
|
|
23202
|
+
cellHoverTexts: F2,
|
|
23216
23203
|
downloadAs: h ? j : void 0,
|
|
23217
23204
|
enableSearch: B,
|
|
23218
23205
|
searchQuery: H,
|
|
@@ -23220,22 +23207,22 @@ ${c}
|
|
|
23220
23207
|
showFilters: m,
|
|
23221
23208
|
filters: G,
|
|
23222
23209
|
onFiltersChange: q,
|
|
23223
|
-
reloading:
|
|
23224
|
-
onRowSelectionChange:
|
|
23225
|
-
freezeColumnsLeft:
|
|
23226
|
-
freezeColumnsRight:
|
|
23227
|
-
onCellSelectionChange:
|
|
23228
|
-
getRowIds:
|
|
23229
|
-
toggleDisplayHeader:
|
|
23230
|
-
showChartBuilder: y && !
|
|
23231
|
-
isChartBuilderOpen:
|
|
23210
|
+
reloading: E2,
|
|
23211
|
+
onRowSelectionChange: l4,
|
|
23212
|
+
freezeColumnsLeft: D2,
|
|
23213
|
+
freezeColumnsRight: O2,
|
|
23214
|
+
onCellSelectionChange: f4,
|
|
23215
|
+
getRowIds: M2,
|
|
23216
|
+
toggleDisplayHeader: I2,
|
|
23217
|
+
showChartBuilder: y && !g4,
|
|
23218
|
+
isChartBuilderOpen: L2,
|
|
23232
23219
|
showPageSizeSelector: g,
|
|
23233
|
-
showTableExplorer: (v ||
|
|
23234
|
-
togglePanel:
|
|
23235
|
-
isPanelOpen:
|
|
23236
|
-
isAnyPanelOpen:
|
|
23237
|
-
viewedRowIdx:
|
|
23238
|
-
onViewedRowChange: (e2) =>
|
|
23220
|
+
showTableExplorer: (v || m4) && !h4 && !g4,
|
|
23221
|
+
togglePanel: J2,
|
|
23222
|
+
isPanelOpen: K2,
|
|
23223
|
+
isAnyPanelOpen: q2,
|
|
23224
|
+
viewedRowIdx: W2,
|
|
23225
|
+
onViewedRowChange: (e2) => G2(e2)
|
|
23239
23226
|
})
|
|
23240
23227
|
})
|
|
23241
23228
|
})
|
|
@@ -25884,29 +25871,29 @@ ${c}
|
|
|
25884
25871
|
], r[2] = b, r[3] = S);
|
|
25885
25872
|
let { data: w, error: T, isPending: O } = useAsyncData(y, S), j;
|
|
25886
25873
|
r[4] === w ? j = r[5] : (j = w || {}, r[4] = w, r[5] = j);
|
|
25887
|
-
let { url: M, total_rows: I, row_headers: L, field_types: R, column_types_per_step: z, python_code: B, sql_code: H } = j, W = R == null ? void 0 : R.length, [G, q] = (0, import_react.useState)(f || EMPTY),
|
|
25888
|
-
r[6] === d ?
|
|
25874
|
+
let { url: M, total_rows: I, row_headers: L, field_types: R, column_types_per_step: z, python_code: B, sql_code: H } = j, W = R == null ? void 0 : R.length, [G, q] = (0, import_react.useState)(f || EMPTY), E2 = (0, import_react.useRef)(null), D2;
|
|
25875
|
+
r[6] === d ? D2 = r[7] : (D2 = (e2) => {
|
|
25889
25876
|
var _a3;
|
|
25890
|
-
d && e2 !== "transform" && ((_a3 =
|
|
25891
|
-
}, r[6] = d, r[7] =
|
|
25892
|
-
let
|
|
25893
|
-
r[8] === G ?
|
|
25894
|
-
|
|
25895
|
-
}, r[8] = G, r[9] =
|
|
25877
|
+
d && e2 !== "transform" && ((_a3 = E2.current) == null ? void 0 : _a3.submit());
|
|
25878
|
+
}, r[6] = d, r[7] = D2);
|
|
25879
|
+
let O2 = D2, k2 = (0, import_react.useRef)(G), A2;
|
|
25880
|
+
r[8] === G ? A2 = r[9] : (A2 = () => {
|
|
25881
|
+
k2.current = G;
|
|
25882
|
+
}, r[8] = G, r[9] = A2), (0, import_react.useEffect)(A2);
|
|
25896
25883
|
let Z;
|
|
25897
25884
|
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (Z = () => {
|
|
25898
|
-
let e2 =
|
|
25885
|
+
let e2 = k2.current;
|
|
25899
25886
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
25900
25887
|
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = Z) : Z = r[12];
|
|
25901
|
-
let
|
|
25902
|
-
r[13] !== w || r[14] !== p || r[15] !==
|
|
25888
|
+
let j2 = f == null ? void 0 : f.transforms.length, M2;
|
|
25889
|
+
r[13] !== w || r[14] !== p || r[15] !== j2 ? (M2 = [
|
|
25903
25890
|
w,
|
|
25904
|
-
|
|
25905
|
-
|
|
25891
|
+
j2,
|
|
25892
|
+
k2,
|
|
25906
25893
|
p
|
|
25907
|
-
], r[13] = w, r[14] = p, r[15] =
|
|
25908
|
-
let
|
|
25909
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25894
|
+
], r[13] = w, r[14] = p, r[15] = j2, r[16] = M2) : M2 = r[16], (0, import_react.useEffect)(Z, M2);
|
|
25895
|
+
let N2;
|
|
25896
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N2 = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25910
25897
|
value: "transform",
|
|
25911
25898
|
className: "text-xs py-1",
|
|
25912
25899
|
children: [
|
|
@@ -25915,9 +25902,9 @@ ${c}
|
|
|
25915
25902
|
}),
|
|
25916
25903
|
"Transform"
|
|
25917
25904
|
]
|
|
25918
|
-
}), r[17] =
|
|
25919
|
-
let
|
|
25920
|
-
r[18] === B ?
|
|
25905
|
+
}), r[17] = N2) : N2 = r[17];
|
|
25906
|
+
let P2;
|
|
25907
|
+
r[18] === B ? P2 = r[19] : (P2 = B && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25921
25908
|
value: "python-code",
|
|
25922
25909
|
className: "text-xs py-1",
|
|
25923
25910
|
children: [
|
|
@@ -25926,9 +25913,9 @@ ${c}
|
|
|
25926
25913
|
}),
|
|
25927
25914
|
"Python Code"
|
|
25928
25915
|
]
|
|
25929
|
-
}), r[18] = B, r[19] =
|
|
25930
|
-
let
|
|
25931
|
-
r[20] === H ?
|
|
25916
|
+
}), r[18] = B, r[19] = P2);
|
|
25917
|
+
let F2;
|
|
25918
|
+
r[20] === H ? F2 = r[21] : (F2 = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25932
25919
|
value: "sql-code",
|
|
25933
25920
|
className: "text-xs py-1",
|
|
25934
25921
|
children: [
|
|
@@ -25937,54 +25924,54 @@ ${c}
|
|
|
25937
25924
|
}),
|
|
25938
25925
|
"SQL Code"
|
|
25939
25926
|
]
|
|
25940
|
-
}), r[20] = H, r[21] =
|
|
25941
|
-
let
|
|
25942
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25927
|
+
}), r[20] = H, r[21] = F2);
|
|
25928
|
+
let I2;
|
|
25929
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I2 = (0, import_jsx_runtime.jsx)("div", {
|
|
25943
25930
|
className: "grow"
|
|
25944
|
-
}), r[22] =
|
|
25945
|
-
let
|
|
25946
|
-
r[23] !==
|
|
25931
|
+
}), r[22] = I2) : I2 = r[22];
|
|
25932
|
+
let L2;
|
|
25933
|
+
r[23] !== P2 || r[24] !== F2 ? (L2 = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
25947
25934
|
className: "h-8",
|
|
25948
25935
|
children: [
|
|
25936
|
+
N2,
|
|
25949
25937
|
P2,
|
|
25950
25938
|
F2,
|
|
25951
|
-
|
|
25952
|
-
R2
|
|
25939
|
+
I2
|
|
25953
25940
|
]
|
|
25954
|
-
}), r[23] =
|
|
25955
|
-
let
|
|
25956
|
-
r[26] === O ?
|
|
25941
|
+
}), r[23] = P2, r[24] = F2, r[25] = L2) : L2 = r[25];
|
|
25942
|
+
let R2;
|
|
25943
|
+
r[26] === O ? R2 = r[27] : (R2 = O && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
25957
25944
|
size: "small"
|
|
25958
|
-
}), r[26] = O, r[27] =
|
|
25959
|
-
let
|
|
25960
|
-
r[28] !==
|
|
25945
|
+
}), r[26] = O, r[27] = R2);
|
|
25946
|
+
let z2;
|
|
25947
|
+
r[28] !== L2 || r[29] !== R2 ? (z2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
25961
25948
|
className: "flex items-center gap-2",
|
|
25962
25949
|
children: [
|
|
25963
|
-
|
|
25964
|
-
|
|
25950
|
+
L2,
|
|
25951
|
+
R2
|
|
25965
25952
|
]
|
|
25966
|
-
}), r[28] =
|
|
25967
|
-
let
|
|
25968
|
-
r[31] !== p || r[32] !== f ? (
|
|
25953
|
+
}), r[28] = L2, r[29] = R2, r[30] = z2) : z2 = r[30];
|
|
25954
|
+
let B2;
|
|
25955
|
+
r[31] !== p || r[32] !== f ? (B2 = (e2) => {
|
|
25969
25956
|
dequal(e2, f) || (p(e2), q(e2));
|
|
25970
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
25971
|
-
let
|
|
25972
|
-
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !==
|
|
25957
|
+
}, r[31] = p, r[32] = f, r[33] = B2) : B2 = r[33];
|
|
25958
|
+
let V2;
|
|
25959
|
+
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !== B2 ? (V2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25973
25960
|
value: "transform",
|
|
25974
25961
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25975
25962
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
25976
|
-
ref:
|
|
25963
|
+
ref: E2,
|
|
25977
25964
|
initialValue: G,
|
|
25978
25965
|
columns: c,
|
|
25979
|
-
onChange:
|
|
25966
|
+
onChange: B2,
|
|
25980
25967
|
onInvalidChange: q,
|
|
25981
25968
|
getColumnValues: h,
|
|
25982
25969
|
columnTypesPerStep: z,
|
|
25983
25970
|
lazy: d
|
|
25984
25971
|
})
|
|
25985
|
-
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] =
|
|
25986
|
-
let
|
|
25987
|
-
r[41] === B ?
|
|
25972
|
+
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] = B2, r[40] = V2) : V2 = r[40];
|
|
25973
|
+
let H2;
|
|
25974
|
+
r[41] === B ? H2 = r[42] : (H2 = B && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25988
25975
|
value: "python-code",
|
|
25989
25976
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25990
25977
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25993,9 +25980,9 @@ ${c}
|
|
|
25993
25980
|
code: B,
|
|
25994
25981
|
language: "python"
|
|
25995
25982
|
})
|
|
25996
|
-
}), r[41] = B, r[42] =
|
|
25997
|
-
let
|
|
25998
|
-
r[43] === H ?
|
|
25983
|
+
}), r[41] = B, r[42] = H2);
|
|
25984
|
+
let U2;
|
|
25985
|
+
r[43] === H ? U2 = r[44] : (U2 = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25999
25986
|
value: "sql-code",
|
|
26000
25987
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
26001
25988
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -26004,35 +25991,35 @@ ${c}
|
|
|
26004
25991
|
code: H,
|
|
26005
25992
|
language: "sql"
|
|
26006
25993
|
})
|
|
26007
|
-
}), r[43] = H, r[44] =
|
|
26008
|
-
let
|
|
26009
|
-
r[45] !==
|
|
25994
|
+
}), r[43] = H, r[44] = U2);
|
|
25995
|
+
let W2;
|
|
25996
|
+
r[45] !== O2 || r[46] !== z2 || r[47] !== V2 || r[48] !== H2 || r[49] !== U2 ? (W2 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
26010
25997
|
defaultValue: "transform",
|
|
26011
|
-
onValueChange:
|
|
25998
|
+
onValueChange: O2,
|
|
26012
25999
|
children: [
|
|
26000
|
+
z2,
|
|
26013
26001
|
V2,
|
|
26014
|
-
|
|
26015
|
-
|
|
26016
|
-
G2
|
|
26002
|
+
H2,
|
|
26003
|
+
U2
|
|
26017
26004
|
]
|
|
26018
|
-
}), r[45] =
|
|
26019
|
-
let
|
|
26020
|
-
r[51] === T ?
|
|
26005
|
+
}), r[45] = O2, r[46] = z2, r[47] = V2, r[48] = H2, r[49] = U2, r[50] = W2) : W2 = r[50];
|
|
26006
|
+
let G2;
|
|
26007
|
+
r[51] === T ? G2 = r[52] : (G2 = T && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
26021
26008
|
error: T
|
|
26022
|
-
}), r[51] = T, r[52] =
|
|
26023
|
-
let
|
|
26024
|
-
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !==
|
|
26009
|
+
}), r[51] = T, r[52] = G2);
|
|
26010
|
+
let K2 = M || "", J2 = I ?? 0, Y2 = W ?? 0, X2 = L || Arrays.EMPTY, Z2 = I && I > 5 || false, Q2;
|
|
26011
|
+
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !== K2 || r[60] !== J2 || r[61] !== Y2 || r[62] !== X2 || r[63] !== Z2 ? (Q2 = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
26025
26012
|
label: null,
|
|
26026
26013
|
className: "rounded-b border-x border-b",
|
|
26027
|
-
data:
|
|
26014
|
+
data: K2,
|
|
26028
26015
|
hasStableRowId: false,
|
|
26029
|
-
totalRows:
|
|
26030
|
-
totalColumns:
|
|
26016
|
+
totalRows: J2,
|
|
26017
|
+
totalColumns: Y2,
|
|
26031
26018
|
maxColumns: "all",
|
|
26032
26019
|
pageSize: l,
|
|
26033
26020
|
pagination: true,
|
|
26034
26021
|
fieldTypes: R,
|
|
26035
|
-
rowHeaders:
|
|
26022
|
+
rowHeaders: X2,
|
|
26036
26023
|
showDownload: u,
|
|
26037
26024
|
download_as: _,
|
|
26038
26025
|
enableSearch: false,
|
|
@@ -26041,7 +26028,7 @@ ${c}
|
|
|
26041
26028
|
showColumnSummaries: false,
|
|
26042
26029
|
showDataTypes: true,
|
|
26043
26030
|
get_column_summaries: getColumnSummaries,
|
|
26044
|
-
showPageSizeSelector:
|
|
26031
|
+
showPageSizeSelector: Z2,
|
|
26045
26032
|
showColumnExplorer: false,
|
|
26046
26033
|
showRowExplorer: true,
|
|
26047
26034
|
showChartBuilder: false,
|
|
@@ -26050,15 +26037,15 @@ ${c}
|
|
|
26050
26037
|
selection: null,
|
|
26051
26038
|
lazy: false,
|
|
26052
26039
|
host: v
|
|
26053
|
-
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] =
|
|
26054
|
-
let
|
|
26055
|
-
return r[65] !==
|
|
26040
|
+
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] = K2, r[60] = J2, r[61] = Y2, r[62] = X2, r[63] = Z2, r[64] = Q2) : Q2 = r[64];
|
|
26041
|
+
let $2;
|
|
26042
|
+
return r[65] !== W2 || r[66] !== G2 || r[67] !== Q2 ? ($2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26056
26043
|
children: [
|
|
26057
|
-
|
|
26058
|
-
|
|
26059
|
-
|
|
26044
|
+
W2,
|
|
26045
|
+
G2,
|
|
26046
|
+
Q2
|
|
26060
26047
|
]
|
|
26061
|
-
}), r[65] =
|
|
26048
|
+
}), r[65] = W2, r[66] = G2, r[67] = Q2, r[68] = $2) : $2 = r[68], $2;
|
|
26062
26049
|
});
|
|
26063
26050
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
26064
26051
|
function getColumnSummaries() {
|
|
@@ -26246,16 +26233,16 @@ ${c}
|
|
|
26246
26233
|
}, W = [
|
|
26247
26234
|
B
|
|
26248
26235
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
26249
|
-
let G, q, D2, O2,
|
|
26236
|
+
let G, q, E2, D2, O2, A2, Z, M2, N2;
|
|
26250
26237
|
if (r[11] !== R || r[12] !== z || r[13] !== u || r[14] !== b || r[15] !== f || r[16] !== v || r[17] !== h || r[18] !== d || r[19] !== y || r[20] !== l || r[21] !== c) {
|
|
26251
26238
|
N2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
26252
26239
|
bb0: {
|
|
26253
|
-
|
|
26240
|
+
O2 = (R == null ? void 0 : R.files) ?? [];
|
|
26254
26241
|
let e2;
|
|
26255
26242
|
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$13)), r[31] = c, r[32] = e2);
|
|
26256
26243
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
26257
26244
|
r[33] !== g2 || r[34] !== _2 ? (w = (e3) => g2 && e3.is_directory || _2 && !e3.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
26258
|
-
let T2 =
|
|
26245
|
+
let T2 = O2.filter(w);
|
|
26259
26246
|
if (G = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
26260
26247
|
let e3;
|
|
26261
26248
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -26264,8 +26251,8 @@ ${c}
|
|
|
26264
26251
|
}), r[36] = z.message, r[37] = e3), N2 = e3;
|
|
26265
26252
|
break bb0;
|
|
26266
26253
|
}
|
|
26267
|
-
let
|
|
26268
|
-
r[38] === u ?
|
|
26254
|
+
let E3;
|
|
26255
|
+
r[38] === u ? E3 = r[39] : (E3 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E3), q = E3.deliminator;
|
|
26269
26256
|
let O3;
|
|
26270
26257
|
r[40] === c ? O3 = r[41] : (O3 = c.map(_temp2$7), r[40] = c, r[41] = O3), Z = O3;
|
|
26271
26258
|
let j2;
|
|
@@ -26316,9 +26303,9 @@ ${c}
|
|
|
26316
26303
|
let H3 = B3, W2;
|
|
26317
26304
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
26318
26305
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
26319
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
26306
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], E2 = W2, A2 = function() {
|
|
26320
26307
|
let e3 = [];
|
|
26321
|
-
for (let r2 of
|
|
26308
|
+
for (let r2 of O2) {
|
|
26322
26309
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
26323
26310
|
let c2 = I3({
|
|
26324
26311
|
path: r2.path,
|
|
@@ -26331,35 +26318,35 @@ ${c}
|
|
|
26331
26318
|
...c,
|
|
26332
26319
|
...e3
|
|
26333
26320
|
]);
|
|
26334
|
-
},
|
|
26335
|
-
let
|
|
26336
|
-
r[59] === M2 ?
|
|
26337
|
-
let
|
|
26338
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
26321
|
+
}, D2 = [];
|
|
26322
|
+
let P22;
|
|
26323
|
+
r[59] === M2 ? P22 = r[60] : (P22 = () => M2(PARENT_DIRECTORY), r[59] = M2, r[60] = P22);
|
|
26324
|
+
let F22, I22;
|
|
26325
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F22 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
26339
26326
|
className: "w-[50px] pl-4",
|
|
26340
26327
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
26341
26328
|
size: 16
|
|
26342
26329
|
})
|
|
26343
|
-
}),
|
|
26330
|
+
}), I22 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
26344
26331
|
children: PARENT_DIRECTORY
|
|
26345
|
-
}), r[61] =
|
|
26346
|
-
let
|
|
26347
|
-
r[63] ===
|
|
26332
|
+
}), r[61] = F22, r[62] = I22) : (F22 = r[61], I22 = r[62]);
|
|
26333
|
+
let L22;
|
|
26334
|
+
r[63] === P22 ? L22 = r[64] : (L22 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
26348
26335
|
className: "hover:bg-accent select-none",
|
|
26349
|
-
onClick:
|
|
26336
|
+
onClick: P22,
|
|
26350
26337
|
children: [
|
|
26351
|
-
|
|
26352
|
-
|
|
26338
|
+
F22,
|
|
26339
|
+
I22
|
|
26353
26340
|
]
|
|
26354
|
-
}, "Parent directory"), r[63] =
|
|
26355
|
-
for (let e3 of
|
|
26341
|
+
}, "Parent directory"), r[63] = P22, r[64] = L22), D2.push(L22);
|
|
26342
|
+
for (let e3 of O2) {
|
|
26356
26343
|
let r2 = e3.path;
|
|
26357
26344
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
26358
26345
|
let c2 = e3.is_directory ? (e4) => {
|
|
26359
26346
|
let { path: r3 } = e4;
|
|
26360
26347
|
return M2(r3);
|
|
26361
26348
|
} : H3, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
26362
|
-
|
|
26349
|
+
D2.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
26363
26350
|
className: cn("hover:bg-accent group select-none", {
|
|
26364
26351
|
"bg-primary/25 hover:bg-primary/35": u2
|
|
26365
26352
|
}),
|
|
@@ -26389,11 +26376,11 @@ ${c}
|
|
|
26389
26376
|
}, e3.id));
|
|
26390
26377
|
}
|
|
26391
26378
|
}
|
|
26392
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] =
|
|
26393
|
-
} else G = r[22], q = r[23],
|
|
26379
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] = E2, r[25] = D2, r[26] = O2, r[27] = A2, r[28] = Z, r[29] = M2, r[30] = N2;
|
|
26380
|
+
} else G = r[22], q = r[23], E2 = r[24], D2 = r[25], O2 = r[26], A2 = r[27], Z = r[28], M2 = r[29], N2 = r[30];
|
|
26394
26381
|
if (N2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return N2;
|
|
26395
26382
|
let P2, F2, I2, L2, R2, z2, B2;
|
|
26396
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
26383
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== E2 || r[69] !== z || r[70] !== D2 || r[71] !== O2 || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== A2 || r[79] !== Z || r[80] !== d || r[81] !== M2 || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
26397
26384
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
26398
26385
|
path: v,
|
|
26399
26386
|
delimiter: q,
|
|
@@ -26420,7 +26407,7 @@ ${c}
|
|
|
26420
26407
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
26421
26408
|
size: "xs",
|
|
26422
26409
|
variant: "link",
|
|
26423
|
-
onClick: G ?
|
|
26410
|
+
onClick: G ? E2 : A2,
|
|
26424
26411
|
children: G ? "Deselect all" : "Select all"
|
|
26425
26412
|
})
|
|
26426
26413
|
})
|
|
@@ -26436,10 +26423,10 @@ ${c}
|
|
|
26436
26423
|
value: v,
|
|
26437
26424
|
onChange: _2,
|
|
26438
26425
|
children: y2
|
|
26439
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = F2) : F2 = r[99], r[100] !== R || r[101] !==
|
|
26426
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = F2) : F2 = r[99], r[100] !== R || r[101] !== O2 ? (I2 = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
26440
26427
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
26441
|
-
children: R.is_truncated ? `Showing ${
|
|
26442
|
-
}), r[100] = R, r[101] =
|
|
26428
|
+
children: R.is_truncated ? `Showing ${O2.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
26429
|
+
}), r[100] = R, r[101] = O2, r[102] = I2) : I2 = r[102];
|
|
26443
26430
|
let b2;
|
|
26444
26431
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
26445
26432
|
height: "14rem"
|
|
@@ -26457,22 +26444,22 @@ ${c}
|
|
|
26457
26444
|
})
|
|
26458
26445
|
]
|
|
26459
26446
|
}), r[104] = T, r[105] = S2);
|
|
26460
|
-
let
|
|
26461
|
-
r[106] ===
|
|
26447
|
+
let E3;
|
|
26448
|
+
r[106] === D2 ? E3 = r[107] : (E3 = (0, import_jsx_runtime.jsx)(Table, {
|
|
26462
26449
|
className: "cursor-pointer table-fixed",
|
|
26463
26450
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
26464
|
-
children:
|
|
26451
|
+
children: D2
|
|
26465
26452
|
})
|
|
26466
|
-
}), r[106] =
|
|
26453
|
+
}), r[106] = D2, r[107] = E3), r[108] !== B || r[109] !== S2 || r[110] !== E3 ? (L2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26467
26454
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
26468
26455
|
style: b2,
|
|
26469
26456
|
"aria-busy": B,
|
|
26470
26457
|
"aria-live": "polite",
|
|
26471
26458
|
children: [
|
|
26472
26459
|
S2,
|
|
26473
|
-
|
|
26460
|
+
E3
|
|
26474
26461
|
]
|
|
26475
|
-
}), r[108] = B, r[109] = S2, r[110] =
|
|
26462
|
+
}), r[108] = B, r[109] = S2, r[110] = E3, r[111] = L2) : L2 = r[111], R2 = "mt-4", z2 = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
26476
26463
|
children: [
|
|
26477
26464
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
26478
26465
|
className: "flex items-center gap-2",
|
|
@@ -26506,7 +26493,7 @@ ${c}
|
|
|
26506
26493
|
})
|
|
26507
26494
|
})
|
|
26508
26495
|
]
|
|
26509
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
26496
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = E2, r[69] = z, r[70] = D2, r[71] = O2, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = A2, r[79] = Z, r[80] = d, r[81] = M2, r[82] = l, r[83] = T, r[84] = c.length, r[85] = P2, r[86] = F2, r[87] = I2, r[88] = L2, r[89] = R2, r[90] = z2, r[91] = B2;
|
|
26510
26497
|
} else P2 = r[85], F2 = r[86], I2 = r[87], L2 = r[88], R2 = r[89], z2 = r[90], B2 = r[91];
|
|
26511
26498
|
let V2;
|
|
26512
26499
|
r[112] !== R2 || r[113] !== z2 ? (V2 = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -31913,55 +31900,55 @@ ${c}
|
|
|
31913
31900
|
return typeof S == "function" ? S : noop$2;
|
|
31914
31901
|
}, [
|
|
31915
31902
|
S
|
|
31916
|
-
]), q = (0, import_react.useRef)(null),
|
|
31917
|
-
!
|
|
31918
|
-
|
|
31903
|
+
]), q = (0, import_react.useRef)(null), E2 = (0, import_react.useRef)(null), D2 = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), O2 = D2[0], k2 = D2[1], A2 = O2.isFocused, Z = O2.isFileDialogActive, j2 = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), M2 = function() {
|
|
31904
|
+
!j2.current && Z && setTimeout(function() {
|
|
31905
|
+
E2.current && (E2.current.files.length || (k2({
|
|
31919
31906
|
type: "closeDialog"
|
|
31920
31907
|
}), G()));
|
|
31921
31908
|
}, 300);
|
|
31922
31909
|
};
|
|
31923
31910
|
(0, import_react.useEffect)(function() {
|
|
31924
|
-
return window.addEventListener("focus",
|
|
31925
|
-
window.removeEventListener("focus",
|
|
31911
|
+
return window.addEventListener("focus", M2, false), function() {
|
|
31912
|
+
window.removeEventListener("focus", M2, false);
|
|
31926
31913
|
};
|
|
31927
31914
|
}, [
|
|
31928
|
-
|
|
31915
|
+
E2,
|
|
31929
31916
|
Z,
|
|
31930
31917
|
G,
|
|
31931
|
-
|
|
31918
|
+
j2
|
|
31932
31919
|
]);
|
|
31933
|
-
var
|
|
31934
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
31920
|
+
var N2 = (0, import_react.useRef)([]), P2 = (0, import_react.useRef)([]), F2 = function(e2) {
|
|
31921
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), N2.current = []);
|
|
31935
31922
|
};
|
|
31936
31923
|
(0, import_react.useEffect)(function() {
|
|
31937
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
31938
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
31924
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", F2, false)), function() {
|
|
31925
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", F2));
|
|
31939
31926
|
};
|
|
31940
31927
|
}, [
|
|
31941
31928
|
q,
|
|
31942
31929
|
O
|
|
31943
31930
|
]), (0, import_react.useEffect)(function() {
|
|
31944
31931
|
var e2 = function(e3) {
|
|
31945
|
-
|
|
31932
|
+
P2.current = [].concat(_toConsumableArray(P2.current), [
|
|
31946
31933
|
e3.target
|
|
31947
|
-
]), isEvtWithFiles(e3) &&
|
|
31934
|
+
]), isEvtWithFiles(e3) && k2({
|
|
31948
31935
|
isDragGlobal: true,
|
|
31949
31936
|
type: "setDragGlobal"
|
|
31950
31937
|
});
|
|
31951
31938
|
}, r2 = function(e3) {
|
|
31952
|
-
|
|
31939
|
+
P2.current = P2.current.filter(function(r3) {
|
|
31953
31940
|
return r3 !== e3.target && r3 !== null;
|
|
31954
|
-
}), !(
|
|
31941
|
+
}), !(P2.current.length > 0) && k2({
|
|
31955
31942
|
isDragGlobal: false,
|
|
31956
31943
|
type: "setDragGlobal"
|
|
31957
31944
|
});
|
|
31958
31945
|
}, c2 = function() {
|
|
31959
|
-
|
|
31946
|
+
P2.current = [], k2({
|
|
31960
31947
|
isDragGlobal: false,
|
|
31961
31948
|
type: "setDragGlobal"
|
|
31962
31949
|
});
|
|
31963
31950
|
}, l2 = function() {
|
|
31964
|
-
|
|
31951
|
+
P2.current = [], k2({
|
|
31965
31952
|
isDragGlobal: false,
|
|
31966
31953
|
type: "setDragGlobal"
|
|
31967
31954
|
});
|
|
@@ -31979,12 +31966,12 @@ ${c}
|
|
|
31979
31966
|
E,
|
|
31980
31967
|
l
|
|
31981
31968
|
]);
|
|
31982
|
-
var
|
|
31969
|
+
var I2 = (0, import_react.useCallback)(function(e2) {
|
|
31983
31970
|
R ? R(e2) : console.error(e2);
|
|
31984
31971
|
}, [
|
|
31985
31972
|
R
|
|
31986
|
-
]),
|
|
31987
|
-
e2.preventDefault(), e2.persist(),
|
|
31973
|
+
]), L2 = (0, import_react.useCallback)(function(e2) {
|
|
31974
|
+
e2.preventDefault(), e2.persist(), X2(e2), N2.current = [].concat(_toConsumableArray(N2.current), [
|
|
31988
31975
|
e2.target
|
|
31989
31976
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
31990
31977
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -31997,7 +31984,7 @@ ${c}
|
|
|
31997
31984
|
maxFiles: m,
|
|
31998
31985
|
validator: z
|
|
31999
31986
|
});
|
|
32000
|
-
|
|
31987
|
+
k2({
|
|
32001
31988
|
isDragAccept: l2,
|
|
32002
31989
|
isDragReject: c2 > 0 && !l2,
|
|
32003
31990
|
isDragActive: true,
|
|
@@ -32005,12 +31992,12 @@ ${c}
|
|
|
32005
31992
|
}), h && h(e2);
|
|
32006
31993
|
}
|
|
32007
31994
|
}).catch(function(e3) {
|
|
32008
|
-
return
|
|
31995
|
+
return I2(e3);
|
|
32009
31996
|
});
|
|
32010
31997
|
}, [
|
|
32011
31998
|
u,
|
|
32012
31999
|
h,
|
|
32013
|
-
|
|
32000
|
+
I2,
|
|
32014
32001
|
L,
|
|
32015
32002
|
B,
|
|
32016
32003
|
f,
|
|
@@ -32018,8 +32005,8 @@ ${c}
|
|
|
32018
32005
|
p,
|
|
32019
32006
|
m,
|
|
32020
32007
|
z
|
|
32021
|
-
]),
|
|
32022
|
-
e2.preventDefault(), e2.persist(),
|
|
32008
|
+
]), R2 = (0, import_react.useCallback)(function(e2) {
|
|
32009
|
+
e2.preventDefault(), e2.persist(), X2(e2);
|
|
32023
32010
|
var r2 = isEvtWithFiles(e2);
|
|
32024
32011
|
if (r2 && e2.dataTransfer) try {
|
|
32025
32012
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -32029,12 +32016,12 @@ ${c}
|
|
|
32029
32016
|
}, [
|
|
32030
32017
|
_,
|
|
32031
32018
|
L
|
|
32032
|
-
]),
|
|
32033
|
-
e2.preventDefault(), e2.persist(),
|
|
32034
|
-
var r2 =
|
|
32019
|
+
]), z2 = (0, import_react.useCallback)(function(e2) {
|
|
32020
|
+
e2.preventDefault(), e2.persist(), X2(e2);
|
|
32021
|
+
var r2 = N2.current.filter(function(e3) {
|
|
32035
32022
|
return q.current && q.current.contains(e3);
|
|
32036
32023
|
}), c2 = r2.indexOf(e2.target);
|
|
32037
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
32024
|
+
c2 !== -1 && r2.splice(c2, 1), N2.current = r2, !(r2.length > 0) && (k2({
|
|
32038
32025
|
type: "setDraggedFiles",
|
|
32039
32026
|
isDragActive: false,
|
|
32040
32027
|
isDragAccept: false,
|
|
@@ -32044,7 +32031,7 @@ ${c}
|
|
|
32044
32031
|
q,
|
|
32045
32032
|
g,
|
|
32046
32033
|
L
|
|
32047
|
-
]),
|
|
32034
|
+
]), B2 = (0, import_react.useCallback)(function(e2, r2) {
|
|
32048
32035
|
var c2 = [], l2 = [];
|
|
32049
32036
|
e2.forEach(function(e3) {
|
|
32050
32037
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -32056,8 +32043,8 @@ ${c}
|
|
|
32056
32043
|
];
|
|
32057
32044
|
_2 && (v2 = v2.concat(_2)), l2.push({
|
|
32058
32045
|
file: e3,
|
|
32059
|
-
errors: v2.filter(function(
|
|
32060
|
-
return
|
|
32046
|
+
errors: v2.filter(function(e4) {
|
|
32047
|
+
return e4;
|
|
32061
32048
|
})
|
|
32062
32049
|
});
|
|
32063
32050
|
}
|
|
@@ -32068,14 +32055,14 @@ ${c}
|
|
|
32068
32055
|
TOO_MANY_FILES_REJECTION
|
|
32069
32056
|
]
|
|
32070
32057
|
});
|
|
32071
|
-
}), c2.splice(0)),
|
|
32058
|
+
}), c2.splice(0)), k2({
|
|
32072
32059
|
acceptedFiles: c2,
|
|
32073
32060
|
fileRejections: l2,
|
|
32074
32061
|
isDragReject: l2.length > 0,
|
|
32075
32062
|
type: "setFiles"
|
|
32076
32063
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
32077
32064
|
}, [
|
|
32078
|
-
|
|
32065
|
+
k2,
|
|
32079
32066
|
p,
|
|
32080
32067
|
B,
|
|
32081
32068
|
f,
|
|
@@ -32085,22 +32072,22 @@ ${c}
|
|
|
32085
32072
|
y,
|
|
32086
32073
|
b,
|
|
32087
32074
|
z
|
|
32088
|
-
]),
|
|
32089
|
-
e2.preventDefault(), e2.persist(),
|
|
32090
|
-
isPropagationStopped(e2) && !L ||
|
|
32075
|
+
]), V2 = (0, import_react.useCallback)(function(e2) {
|
|
32076
|
+
e2.preventDefault(), e2.persist(), X2(e2), N2.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
32077
|
+
isPropagationStopped(e2) && !L || B2(r2, e2);
|
|
32091
32078
|
}).catch(function(e3) {
|
|
32092
|
-
return
|
|
32093
|
-
}),
|
|
32079
|
+
return I2(e3);
|
|
32080
|
+
}), k2({
|
|
32094
32081
|
type: "reset"
|
|
32095
32082
|
});
|
|
32096
32083
|
}, [
|
|
32097
32084
|
u,
|
|
32098
|
-
|
|
32099
|
-
|
|
32085
|
+
B2,
|
|
32086
|
+
I2,
|
|
32100
32087
|
L
|
|
32101
|
-
]),
|
|
32102
|
-
if (
|
|
32103
|
-
|
|
32088
|
+
]), H2 = (0, import_react.useCallback)(function() {
|
|
32089
|
+
if (j2.current) {
|
|
32090
|
+
k2({
|
|
32104
32091
|
type: "openDialog"
|
|
32105
32092
|
}), W();
|
|
32106
32093
|
var e2 = {
|
|
@@ -32110,66 +32097,66 @@ ${c}
|
|
|
32110
32097
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
32111
32098
|
return u(e3);
|
|
32112
32099
|
}).then(function(e3) {
|
|
32113
|
-
|
|
32100
|
+
B2(e3, null), k2({
|
|
32114
32101
|
type: "closeDialog"
|
|
32115
32102
|
});
|
|
32116
32103
|
}).catch(function(e3) {
|
|
32117
|
-
isAbort(e3) ? (G(e3),
|
|
32104
|
+
isAbort(e3) ? (G(e3), k2({
|
|
32118
32105
|
type: "closeDialog"
|
|
32119
|
-
})) : isSecurityError(e3) ? (
|
|
32106
|
+
})) : isSecurityError(e3) ? (j2.current = false, E2.current ? (E2.current.value = null, E2.current.click()) : I2(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : I2(e3);
|
|
32120
32107
|
});
|
|
32121
32108
|
return;
|
|
32122
32109
|
}
|
|
32123
|
-
|
|
32110
|
+
E2.current && (k2({
|
|
32124
32111
|
type: "openDialog"
|
|
32125
|
-
}), W(),
|
|
32112
|
+
}), W(), E2.current.value = null, E2.current.click());
|
|
32126
32113
|
}, [
|
|
32127
|
-
|
|
32114
|
+
k2,
|
|
32128
32115
|
W,
|
|
32129
32116
|
G,
|
|
32130
32117
|
T,
|
|
32131
|
-
|
|
32132
|
-
|
|
32118
|
+
B2,
|
|
32119
|
+
I2,
|
|
32133
32120
|
H,
|
|
32134
32121
|
p
|
|
32135
|
-
]),
|
|
32136
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
32122
|
+
]), U2 = (0, import_react.useCallback)(function(e2) {
|
|
32123
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), H2());
|
|
32137
32124
|
}, [
|
|
32138
32125
|
q,
|
|
32139
|
-
|
|
32140
|
-
]),
|
|
32141
|
-
|
|
32126
|
+
H2
|
|
32127
|
+
]), W2 = (0, import_react.useCallback)(function() {
|
|
32128
|
+
k2({
|
|
32142
32129
|
type: "focus"
|
|
32143
32130
|
});
|
|
32144
|
-
}, []),
|
|
32145
|
-
|
|
32131
|
+
}, []), G2 = (0, import_react.useCallback)(function() {
|
|
32132
|
+
k2({
|
|
32146
32133
|
type: "blur"
|
|
32147
32134
|
});
|
|
32148
|
-
}, []),
|
|
32149
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
32135
|
+
}, []), K2 = (0, import_react.useCallback)(function() {
|
|
32136
|
+
j || (isIeOrEdge() ? setTimeout(H2, 0) : H2());
|
|
32150
32137
|
}, [
|
|
32151
32138
|
j,
|
|
32152
|
-
|
|
32153
|
-
]),
|
|
32139
|
+
H2
|
|
32140
|
+
]), q2 = function(e2) {
|
|
32154
32141
|
return l ? null : e2;
|
|
32142
|
+
}, J2 = function(e2) {
|
|
32143
|
+
return M ? null : q2(e2);
|
|
32155
32144
|
}, Y2 = function(e2) {
|
|
32156
|
-
return
|
|
32145
|
+
return I ? null : q2(e2);
|
|
32157
32146
|
}, X2 = function(e2) {
|
|
32158
|
-
return I ? null : J2(e2);
|
|
32159
|
-
}, Z2 = function(e2) {
|
|
32160
32147
|
L && e2.stopPropagation();
|
|
32161
|
-
},
|
|
32148
|
+
}, Z2 = (0, import_react.useMemo)(function() {
|
|
32162
32149
|
return function() {
|
|
32163
32150
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
32164
32151
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
32165
|
-
onKeyDown:
|
|
32166
|
-
onFocus:
|
|
32167
|
-
onBlur:
|
|
32168
|
-
onClick:
|
|
32169
|
-
onDragEnter:
|
|
32170
|
-
onDragOver:
|
|
32171
|
-
onDragLeave:
|
|
32172
|
-
onDrop:
|
|
32152
|
+
onKeyDown: J2(composeEventHandlers(d2, U2)),
|
|
32153
|
+
onFocus: J2(composeEventHandlers(f2, W2)),
|
|
32154
|
+
onBlur: J2(composeEventHandlers(p2, G2)),
|
|
32155
|
+
onClick: q2(composeEventHandlers(m2, K2)),
|
|
32156
|
+
onDragEnter: Y2(composeEventHandlers(h2, L2)),
|
|
32157
|
+
onDragOver: Y2(composeEventHandlers(g2, R2)),
|
|
32158
|
+
onDragLeave: Y2(composeEventHandlers(_2, z2)),
|
|
32159
|
+
onDrop: Y2(composeEventHandlers(v2, V2)),
|
|
32173
32160
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
32174
32161
|
}, c2, q), !l && !M ? {
|
|
32175
32162
|
tabIndex: 0
|
|
@@ -32177,20 +32164,20 @@ ${c}
|
|
|
32177
32164
|
};
|
|
32178
32165
|
}, [
|
|
32179
32166
|
q,
|
|
32167
|
+
U2,
|
|
32180
32168
|
W2,
|
|
32181
32169
|
G2,
|
|
32182
32170
|
K2,
|
|
32183
|
-
|
|
32171
|
+
L2,
|
|
32184
32172
|
R2,
|
|
32185
32173
|
z2,
|
|
32186
|
-
|
|
32187
|
-
H2,
|
|
32174
|
+
V2,
|
|
32188
32175
|
M,
|
|
32189
32176
|
I,
|
|
32190
32177
|
l
|
|
32191
|
-
]),
|
|
32178
|
+
]), Q2 = (0, import_react.useCallback)(function(e2) {
|
|
32192
32179
|
e2.stopPropagation();
|
|
32193
|
-
}, []),
|
|
32180
|
+
}, []), $2 = (0, import_react.useMemo)(function() {
|
|
32194
32181
|
return function() {
|
|
32195
32182
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
32196
32183
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -32209,25 +32196,25 @@ ${c}
|
|
|
32209
32196
|
width: "1px",
|
|
32210
32197
|
whiteSpace: "nowrap"
|
|
32211
32198
|
},
|
|
32212
|
-
onChange:
|
|
32213
|
-
onClick:
|
|
32199
|
+
onChange: q2(composeEventHandlers(l2, V2)),
|
|
32200
|
+
onClick: q2(composeEventHandlers(u2, Q2)),
|
|
32214
32201
|
tabIndex: -1
|
|
32215
|
-
}, c2,
|
|
32202
|
+
}, c2, E2)), d2);
|
|
32216
32203
|
};
|
|
32217
32204
|
}, [
|
|
32218
|
-
|
|
32205
|
+
E2,
|
|
32219
32206
|
c,
|
|
32220
32207
|
p,
|
|
32221
|
-
|
|
32208
|
+
V2,
|
|
32222
32209
|
l
|
|
32223
32210
|
]);
|
|
32224
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
32225
|
-
isFocused:
|
|
32226
|
-
getRootProps:
|
|
32227
|
-
getInputProps:
|
|
32211
|
+
return _objectSpread$7(_objectSpread$7({}, O2), {}, {
|
|
32212
|
+
isFocused: A2 && !l,
|
|
32213
|
+
getRootProps: Z2,
|
|
32214
|
+
getInputProps: $2,
|
|
32228
32215
|
rootRef: q,
|
|
32229
|
-
inputRef:
|
|
32230
|
-
open:
|
|
32216
|
+
inputRef: E2,
|
|
32217
|
+
open: q2(H2)
|
|
32231
32218
|
});
|
|
32232
32219
|
}
|
|
32233
32220
|
function reducer$2(e, r) {
|
|
@@ -32459,47 +32446,47 @@ ${c}
|
|
|
32459
32446
|
html: I
|
|
32460
32447
|
})
|
|
32461
32448
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
32462
|
-
let q = w && "text-primary",
|
|
32463
|
-
r[48] !== q || r[49] !==
|
|
32464
|
-
let
|
|
32465
|
-
r[51] ===
|
|
32449
|
+
let q = w && "text-primary", E2 = T && "text-destructive", D2;
|
|
32450
|
+
r[48] !== q || r[49] !== E2 ? (D2 = cn(q, E2), r[48] = q, r[49] = E2, r[50] = D2) : D2 = r[50];
|
|
32451
|
+
let O2;
|
|
32452
|
+
r[51] === D2 ? O2 = r[52] : (O2 = (0, import_jsx_runtime.jsx)(Upload, {
|
|
32466
32453
|
strokeWidth: 1.4,
|
|
32467
|
-
className:
|
|
32468
|
-
}), r[51] =
|
|
32469
|
-
let
|
|
32470
|
-
r[53] !==
|
|
32471
|
-
let
|
|
32472
|
-
r[56] === Z ?
|
|
32454
|
+
className: D2
|
|
32455
|
+
}), r[51] = D2, r[52] = O2);
|
|
32456
|
+
let k2 = w && "text-primary", A2 = T && "text-destructive", Z;
|
|
32457
|
+
r[53] !== k2 || r[54] !== A2 ? (Z = cn(k2, A2), r[53] = k2, r[54] = A2, r[55] = Z) : Z = r[55];
|
|
32458
|
+
let j2;
|
|
32459
|
+
r[56] === Z ? j2 = r[57] : (j2 = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
32473
32460
|
strokeWidth: 1.4,
|
|
32474
32461
|
className: Z
|
|
32475
|
-
}), r[56] = Z, r[57] =
|
|
32476
|
-
let
|
|
32477
|
-
r[58] !==
|
|
32462
|
+
}), r[56] = Z, r[57] = j2);
|
|
32463
|
+
let M2;
|
|
32464
|
+
r[58] !== O2 || r[59] !== j2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32478
32465
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
32479
32466
|
children: [
|
|
32480
|
-
|
|
32481
|
-
|
|
32467
|
+
O2,
|
|
32468
|
+
j2
|
|
32482
32469
|
]
|
|
32483
|
-
}), r[58] =
|
|
32484
|
-
let
|
|
32485
|
-
r[61] !== G || r[62] !==
|
|
32470
|
+
}), r[58] = O2, r[59] = j2, r[60] = M2) : M2 = r[60];
|
|
32471
|
+
let N2;
|
|
32472
|
+
r[61] !== G || r[62] !== M2 ? (N2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32486
32473
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
32487
32474
|
children: [
|
|
32488
32475
|
G,
|
|
32489
|
-
|
|
32476
|
+
M2
|
|
32490
32477
|
]
|
|
32491
|
-
}), r[61] = G, r[62] =
|
|
32492
|
-
let
|
|
32493
|
-
r[64] !== W || r[65] !==
|
|
32478
|
+
}), r[61] = G, r[62] = M2, r[63] = N2) : N2 = r[63];
|
|
32479
|
+
let P2;
|
|
32480
|
+
r[64] !== W || r[65] !== N2 || r[66] !== z || r[67] !== B ? (P2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32494
32481
|
className: z,
|
|
32495
32482
|
...B,
|
|
32496
32483
|
children: [
|
|
32497
32484
|
W,
|
|
32498
|
-
|
|
32485
|
+
N2
|
|
32499
32486
|
]
|
|
32500
|
-
}), r[64] = W, r[65] =
|
|
32501
|
-
let
|
|
32502
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
32487
|
+
}), r[64] = W, r[65] = N2, r[66] = z, r[67] = B, r[68] = P2) : P2 = r[68];
|
|
32488
|
+
let F2;
|
|
32489
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (F2 = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
32503
32490
|
className: "flex flex-row gap-1",
|
|
32504
32491
|
children: [
|
|
32505
32492
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -32535,17 +32522,17 @@ ${c}
|
|
|
32535
32522
|
})
|
|
32536
32523
|
})
|
|
32537
32524
|
]
|
|
32538
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
32539
|
-
let
|
|
32540
|
-
return r[75] !==
|
|
32525
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = F2) : F2 = r[74];
|
|
32526
|
+
let I2;
|
|
32527
|
+
return r[75] !== P2 || r[76] !== F2 ? (I2 = (0, import_jsx_runtime.jsx)("section", {
|
|
32541
32528
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
32542
32529
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
32543
32530
|
children: [
|
|
32544
|
-
|
|
32545
|
-
|
|
32531
|
+
P2,
|
|
32532
|
+
F2
|
|
32546
32533
|
]
|
|
32547
32534
|
})
|
|
32548
|
-
}), r[75] =
|
|
32535
|
+
}), r[75] = P2, r[76] = F2, r[77] = I2) : I2 = r[77], I2;
|
|
32549
32536
|
};
|
|
32550
32537
|
function _temp$12(e) {
|
|
32551
32538
|
Logger.error(e), toast({
|
|
@@ -32632,84 +32619,84 @@ ${c}
|
|
|
32632
32619
|
}
|
|
32633
32620
|
R(null), d(u), y && B();
|
|
32634
32621
|
}, r[1] = y, r[2] = u, r[3] = d, r[4] = O, r[5] = E, r[6] = H) : H = r[6];
|
|
32635
|
-
let
|
|
32636
|
-
r[7] !== m || r[8] !==
|
|
32622
|
+
let W = !M && m, G;
|
|
32623
|
+
r[7] !== m || r[8] !== W ? (G = cn("flex flex-col gap-4 rounded-lg py-4 px-8", {
|
|
32637
32624
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
32638
|
-
"bg-(--amber-1) border-(--amber-7)":
|
|
32639
|
-
}), r[7] = m, r[8] =
|
|
32640
|
-
let
|
|
32641
|
-
r[10] !== u || r[11] !== d ? (
|
|
32625
|
+
"bg-(--amber-1) border-(--amber-7)": W
|
|
32626
|
+
}), r[7] = m, r[8] = W, r[9] = G) : G = r[9];
|
|
32627
|
+
let q;
|
|
32628
|
+
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
32642
32629
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
32643
|
-
}, r[10] = u, r[11] = d, r[12] =
|
|
32644
|
-
let
|
|
32645
|
-
r[13] === f ?
|
|
32630
|
+
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
32631
|
+
let E2;
|
|
32632
|
+
r[13] === f ? E2 = r[14] : (E2 = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
32646
32633
|
className: "text-center",
|
|
32647
32634
|
children: renderHTML({
|
|
32648
32635
|
html: f
|
|
32649
32636
|
})
|
|
32650
|
-
}), r[13] = f, r[14] =
|
|
32651
|
-
let
|
|
32652
|
-
r[15] === L ?
|
|
32637
|
+
}), r[13] = f, r[14] = E2);
|
|
32638
|
+
let D2;
|
|
32639
|
+
r[15] === L ? D2 = r[16] : (D2 = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
32653
32640
|
kind: "danger",
|
|
32654
32641
|
className: "rounded",
|
|
32655
32642
|
children: L ?? "Invalid input"
|
|
32656
|
-
}), r[15] = L, r[16] =
|
|
32657
|
-
let
|
|
32658
|
-
r[17] === c ?
|
|
32643
|
+
}), r[15] = L, r[16] = D2);
|
|
32644
|
+
let O2;
|
|
32645
|
+
r[17] === c ? O2 = r[18] : (O2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32659
32646
|
children: c
|
|
32660
|
-
}), r[17] = c, r[18] =
|
|
32661
|
-
let
|
|
32662
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
32647
|
+
}), r[17] = c, r[18] = O2);
|
|
32648
|
+
let k2;
|
|
32649
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (k2 = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
32663
32650
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
32664
32651
|
variant: "text",
|
|
32665
32652
|
onClick: (e2) => {
|
|
32666
32653
|
e2.preventDefault(), B();
|
|
32667
32654
|
},
|
|
32668
32655
|
children: S
|
|
32669
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
32670
|
-
let
|
|
32671
|
-
r[23] === h ?
|
|
32656
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = k2) : k2 = r[22];
|
|
32657
|
+
let A2 = v || h, Z;
|
|
32658
|
+
r[23] === h ? Z = r[24] : (Z = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
32672
32659
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
32673
|
-
}), r[23] = h, r[24] =
|
|
32674
|
-
let
|
|
32675
|
-
r[25] !== g || r[26] !==
|
|
32660
|
+
}), r[23] = h, r[24] = Z);
|
|
32661
|
+
let j2;
|
|
32662
|
+
r[25] !== g || r[26] !== A2 || r[27] !== Z || r[28] !== I ? (j2 = (0, import_jsx_runtime.jsxs)(Button, {
|
|
32676
32663
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
32677
32664
|
variant: I,
|
|
32678
|
-
disabled:
|
|
32665
|
+
disabled: A2,
|
|
32679
32666
|
type: "submit",
|
|
32680
32667
|
children: [
|
|
32681
|
-
|
|
32668
|
+
Z,
|
|
32682
32669
|
g
|
|
32683
32670
|
]
|
|
32684
|
-
}), r[25] = g, r[26] =
|
|
32685
|
-
let
|
|
32686
|
-
r[30] !== _ || r[31] !==
|
|
32687
|
-
let
|
|
32688
|
-
r[33] !==
|
|
32671
|
+
}), r[25] = g, r[26] = A2, r[27] = Z, r[28] = I, r[29] = j2) : j2 = r[29];
|
|
32672
|
+
let M2;
|
|
32673
|
+
r[30] !== _ || r[31] !== j2 ? (M2 = withTooltip(j2, _), r[30] = _, r[31] = j2, r[32] = M2) : M2 = r[32];
|
|
32674
|
+
let N2;
|
|
32675
|
+
r[33] !== M2 || r[34] !== k2 ? (N2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32689
32676
|
className: "flex justify-end gap-2 font-code",
|
|
32690
32677
|
children: [
|
|
32691
|
-
|
|
32692
|
-
|
|
32678
|
+
k2,
|
|
32679
|
+
M2
|
|
32693
32680
|
]
|
|
32694
|
-
}), r[33] =
|
|
32695
|
-
let
|
|
32696
|
-
r[36] !==
|
|
32697
|
-
className:
|
|
32698
|
-
onKeyDown:
|
|
32681
|
+
}), r[33] = M2, r[34] = k2, r[35] = N2) : N2 = r[35];
|
|
32682
|
+
let P2;
|
|
32683
|
+
r[36] !== N2 || r[37] !== G || r[38] !== q || r[39] !== E2 || r[40] !== D2 || r[41] !== O2 ? (P2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32684
|
+
className: G,
|
|
32685
|
+
onKeyDown: q,
|
|
32699
32686
|
children: [
|
|
32687
|
+
E2,
|
|
32688
|
+
D2,
|
|
32700
32689
|
O2,
|
|
32701
|
-
|
|
32702
|
-
A2,
|
|
32703
|
-
F2
|
|
32690
|
+
N2
|
|
32704
32691
|
]
|
|
32705
|
-
}), r[36] =
|
|
32706
|
-
let
|
|
32707
|
-
return r[43] !==
|
|
32692
|
+
}), r[36] = N2, r[37] = G, r[38] = q, r[39] = E2, r[40] = D2, r[41] = O2, r[42] = P2) : P2 = r[42];
|
|
32693
|
+
let F2;
|
|
32694
|
+
return r[43] !== P2 || r[44] !== H ? (F2 = (0, import_jsx_runtime.jsx)("form", {
|
|
32708
32695
|
className: "contents",
|
|
32709
32696
|
ref: j,
|
|
32710
32697
|
onSubmit: H,
|
|
32711
|
-
children:
|
|
32712
|
-
}), r[43] =
|
|
32698
|
+
children: P2
|
|
32699
|
+
}), r[43] = P2, r[44] = H, r[45] = F2) : F2 = r[45], F2;
|
|
32713
32700
|
};
|
|
32714
32701
|
var Form = (e) => {
|
|
32715
32702
|
let r = (0, import_compiler_runtime$43.c)(24), c, l, u, d, f, p;
|
|
@@ -34469,8 +34456,8 @@ ${c}
|
|
|
34469
34456
|
points: extractSunburstPoints(e2.points)
|
|
34470
34457
|
}));
|
|
34471
34458
|
}, r[29] = u, r[30] = G);
|
|
34472
|
-
let q = useEvent_default(G),
|
|
34473
|
-
r[31] === u ?
|
|
34459
|
+
let q = useEvent_default(G), E2;
|
|
34460
|
+
r[31] === u ? E2 = r[32] : (E2 = (e2) => {
|
|
34474
34461
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
34475
34462
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
34476
34463
|
u((e3) => ({
|
|
@@ -34481,9 +34468,9 @@ ${c}
|
|
|
34481
34468
|
points: r2,
|
|
34482
34469
|
indices: c2
|
|
34483
34470
|
}));
|
|
34484
|
-
}, r[31] = u, r[32] =
|
|
34485
|
-
let
|
|
34486
|
-
r[33] === u ?
|
|
34471
|
+
}, r[31] = u, r[32] = E2);
|
|
34472
|
+
let D2 = useEvent_default(E2), O2;
|
|
34473
|
+
r[33] === u ? O2 = r[34] : (O2 = (e2) => {
|
|
34487
34474
|
e2 && u((r2) => ({
|
|
34488
34475
|
...r2,
|
|
34489
34476
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -34492,9 +34479,9 @@ ${c}
|
|
|
34492
34479
|
range: e2.range,
|
|
34493
34480
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
34494
34481
|
}));
|
|
34495
|
-
}, r[33] = u, r[34] =
|
|
34496
|
-
let
|
|
34497
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
34482
|
+
}, r[33] = u, r[34] = O2);
|
|
34483
|
+
let k2 = useEvent_default(O2), A2 = m.frames ?? void 0, Z = useEvent_default(_temp3$3), j2;
|
|
34484
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== D2 || r[42] !== k2 || r[43] !== A2 || r[44] !== Z || r[45] !== R ? (j2 = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
34498
34485
|
...m,
|
|
34499
34486
|
layout: h,
|
|
34500
34487
|
onRelayout: R,
|
|
@@ -34502,13 +34489,13 @@ ${c}
|
|
|
34502
34489
|
onTreemapClick: W,
|
|
34503
34490
|
onSunburstClick: q,
|
|
34504
34491
|
config: L,
|
|
34505
|
-
onClick:
|
|
34506
|
-
onSelected:
|
|
34492
|
+
onClick: D2,
|
|
34493
|
+
onSelected: k2,
|
|
34507
34494
|
className: "w-full",
|
|
34508
34495
|
useResizeHandler: true,
|
|
34509
|
-
frames:
|
|
34496
|
+
frames: A2,
|
|
34510
34497
|
onError: Z
|
|
34511
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
34498
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = D2, r[42] = k2, r[43] = A2, r[44] = Z, r[45] = R, r[46] = j2) : j2 = r[46], j2;
|
|
34512
34499
|
});
|
|
34513
34500
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
34514
34501
|
function _temp$9(e) {
|
|
@@ -34620,7 +34607,7 @@ ${c}
|
|
|
34620
34607
|
let c3 = r2.width;
|
|
34621
34608
|
p = (e2.clientX - _.current) / c3 * f2;
|
|
34622
34609
|
}
|
|
34623
|
-
let [m2, h2] = b.current, y2 = h2 - m2, S2 = u.steps, T2 = S2 && S2.length > 1 ? Math.min(...S2.slice(1).map((e3, r3) => e3 - S2[r3])) : u.step ?? 1,
|
|
34610
|
+
let [m2, h2] = b.current, y2 = h2 - m2, S2 = u.steps, T2 = S2 && S2.length > 1 ? Math.min(...S2.slice(1).map((e3, r3) => e3 - S2[r3])) : u.step ?? 1, E3 = Math.round(p / T2) * T2, j3 = m2 + Math.max(l2 - m2, Math.min(d2 - h2, E3)), M3 = j3 + y2;
|
|
34624
34611
|
w.current = [
|
|
34625
34612
|
j3,
|
|
34626
34613
|
M3
|
|
@@ -34640,8 +34627,8 @@ ${c}
|
|
|
34640
34627
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
34641
34628
|
let q;
|
|
34642
34629
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
34643
|
-
let
|
|
34644
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
34630
|
+
let E2;
|
|
34631
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (E2 = (0, import_jsx_runtime.jsx)(Track, {
|
|
34645
34632
|
ref: E,
|
|
34646
34633
|
"data-testid": "track",
|
|
34647
34634
|
className: G,
|
|
@@ -34652,9 +34639,9 @@ ${c}
|
|
|
34652
34639
|
onPointerMove: z,
|
|
34653
34640
|
onPointerUp: H
|
|
34654
34641
|
})
|
|
34655
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
34656
|
-
let
|
|
34657
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
34642
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = E2) : E2 = c[22];
|
|
34643
|
+
let D2;
|
|
34644
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (D2 = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34658
34645
|
asChild: true,
|
|
34659
34646
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
34660
34647
|
"data-testid": "thumb",
|
|
@@ -34664,28 +34651,28 @@ ${c}
|
|
|
34664
34651
|
onMouseEnter: m.setTrue,
|
|
34665
34652
|
onMouseLeave: m.setFalse
|
|
34666
34653
|
})
|
|
34667
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
34668
|
-
let
|
|
34669
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
34654
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = D2) : D2 = c[25];
|
|
34655
|
+
let O2;
|
|
34656
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (O2 = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
34670
34657
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
34671
34658
|
locale: h
|
|
34672
34659
|
})
|
|
34673
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
34660
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = O2) : O2 = c[29];
|
|
34661
|
+
let k2;
|
|
34662
|
+
c[30] === O2 ? k2 = c[31] : (k2 = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
34663
|
+
children: O2
|
|
34664
|
+
}), c[30] = O2, c[31] = k2);
|
|
34674
34665
|
let A2;
|
|
34675
|
-
c[
|
|
34676
|
-
children: k2
|
|
34677
|
-
}), c[30] = k2, c[31] = A2);
|
|
34678
|
-
let j2;
|
|
34679
|
-
c[32] !== f || c[33] !== O2 || c[34] !== A2 ? (j2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34666
|
+
c[32] !== f || c[33] !== D2 || c[34] !== k2 ? (A2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34680
34667
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34681
34668
|
delayDuration: 0,
|
|
34682
34669
|
open: f,
|
|
34683
34670
|
children: [
|
|
34684
|
-
|
|
34685
|
-
|
|
34671
|
+
D2,
|
|
34672
|
+
k2
|
|
34686
34673
|
]
|
|
34687
34674
|
})
|
|
34688
|
-
}), c[32] = f, c[33] =
|
|
34675
|
+
}), c[32] = f, c[33] = D2, c[34] = k2, c[35] = A2) : A2 = c[35];
|
|
34689
34676
|
let Z;
|
|
34690
34677
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34691
34678
|
asChild: true,
|
|
@@ -34698,38 +34685,38 @@ ${c}
|
|
|
34698
34685
|
onMouseLeave: m.setFalse
|
|
34699
34686
|
})
|
|
34700
34687
|
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = Z) : Z = c[38];
|
|
34701
|
-
let
|
|
34702
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
34688
|
+
let j2;
|
|
34689
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (j2 = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
34703
34690
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
34704
34691
|
locale: h
|
|
34705
34692
|
})
|
|
34706
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
34693
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = j2) : j2 = c[42];
|
|
34694
|
+
let M2;
|
|
34695
|
+
c[43] === j2 ? M2 = c[44] : (M2 = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
34696
|
+
children: j2
|
|
34697
|
+
}), c[43] = j2, c[44] = M2);
|
|
34707
34698
|
let N2;
|
|
34708
|
-
c[
|
|
34709
|
-
children: M2
|
|
34710
|
-
}), c[43] = M2, c[44] = N2);
|
|
34711
|
-
let P2;
|
|
34712
|
-
c[45] !== f || c[46] !== Z || c[47] !== N2 ? (P2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34699
|
+
c[45] !== f || c[46] !== Z || c[47] !== M2 ? (N2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34713
34700
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34714
34701
|
delayDuration: 0,
|
|
34715
34702
|
open: f,
|
|
34716
34703
|
children: [
|
|
34717
34704
|
Z,
|
|
34718
|
-
|
|
34705
|
+
M2
|
|
34719
34706
|
]
|
|
34720
34707
|
})
|
|
34721
|
-
}), c[45] = f, c[46] = Z, c[47] =
|
|
34722
|
-
let
|
|
34723
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
34708
|
+
}), c[45] = f, c[46] = Z, c[47] = M2, c[48] = N2) : N2 = c[48];
|
|
34709
|
+
let P2;
|
|
34710
|
+
return c[49] !== M || c[50] !== u || c[51] !== E2 || c[52] !== A2 || c[53] !== N2 || c[54] !== W ? (P2 = (0, import_jsx_runtime.jsxs)(Root$1, {
|
|
34724
34711
|
ref: M,
|
|
34725
34712
|
className: W,
|
|
34726
34713
|
...u,
|
|
34727
34714
|
children: [
|
|
34728
|
-
|
|
34729
|
-
|
|
34730
|
-
|
|
34715
|
+
E2,
|
|
34716
|
+
A2,
|
|
34717
|
+
N2
|
|
34731
34718
|
]
|
|
34732
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
34719
|
+
}), c[49] = M, c[50] = u, c[51] = E2, c[52] = A2, c[53] = N2, c[54] = W, c[55] = P2) : P2 = c[55], P2;
|
|
34733
34720
|
});
|
|
34734
34721
|
RangeSlider.displayName = Root$1.displayName;
|
|
34735
34722
|
var import_compiler_runtime$31 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -34780,14 +34767,14 @@ ${c}
|
|
|
34780
34767
|
}, q = (e2) => {
|
|
34781
34768
|
h && l(e2);
|
|
34782
34769
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
34783
|
-
let
|
|
34784
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
34770
|
+
let E2, D2;
|
|
34771
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (E2 = () => {
|
|
34785
34772
|
h && !dequal(T, u) && l(T);
|
|
34786
|
-
},
|
|
34773
|
+
}, D2 = () => {
|
|
34787
34774
|
h && !dequal(T, u) && l(T);
|
|
34788
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
34789
|
-
let
|
|
34790
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
34775
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = E2, r[19] = D2) : (E2 = r[18], D2 = r[19]);
|
|
34776
|
+
let O2;
|
|
34777
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== E2 || r[31] !== D2 || r[32] !== b ? (O2 = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
34791
34778
|
id: S,
|
|
34792
34779
|
className: W,
|
|
34793
34780
|
value: T,
|
|
@@ -34798,36 +34785,36 @@ ${c}
|
|
|
34798
34785
|
disabled: y,
|
|
34799
34786
|
onValueChange: G,
|
|
34800
34787
|
onValueCommit: q,
|
|
34801
|
-
onPointerUp:
|
|
34802
|
-
onMouseUp:
|
|
34788
|
+
onPointerUp: E2,
|
|
34789
|
+
onMouseUp: D2,
|
|
34803
34790
|
valueMap: b
|
|
34804
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
34805
|
-
let
|
|
34806
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
34791
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = E2, r[31] = D2, r[32] = b, r[33] = O2) : O2 = r[33];
|
|
34792
|
+
let k2;
|
|
34793
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (k2 = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
34807
34794
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
34808
34795
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
34809
34796
|
locale: w
|
|
34810
34797
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
34811
34798
|
locale: w
|
|
34812
34799
|
})}`
|
|
34813
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
34814
|
-
let
|
|
34815
|
-
r[39] !==
|
|
34800
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = k2) : k2 = r[38];
|
|
34801
|
+
let A2;
|
|
34802
|
+
r[39] !== O2 || r[40] !== k2 || r[41] !== B ? (A2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
34816
34803
|
className: B,
|
|
34817
34804
|
children: [
|
|
34818
|
-
|
|
34819
|
-
|
|
34805
|
+
O2,
|
|
34806
|
+
k2
|
|
34820
34807
|
]
|
|
34821
|
-
}), r[39] =
|
|
34808
|
+
}), r[39] = O2, r[40] = k2, r[41] = B, r[42] = A2) : A2 = r[42];
|
|
34822
34809
|
let Z;
|
|
34823
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
34810
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== A2 || r[47] !== M || r[48] !== L ? (Z = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
34824
34811
|
label: c,
|
|
34825
34812
|
id: S,
|
|
34826
34813
|
align: M,
|
|
34827
34814
|
className: L,
|
|
34828
34815
|
fullWidth: v,
|
|
34829
|
-
children:
|
|
34830
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
34816
|
+
children: A2
|
|
34817
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = A2, r[47] = M, r[48] = L, r[49] = Z) : Z = r[49], Z;
|
|
34831
34818
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
34832
34819
|
r.exports = u;
|
|
34833
34820
|
var c = {
|
|
@@ -35055,16 +35042,16 @@ ${c}
|
|
|
35055
35042
|
r[9] === E ? G = r[10] : (G = [
|
|
35056
35043
|
E
|
|
35057
35044
|
], r[9] = E, r[10] = G);
|
|
35058
|
-
let q,
|
|
35045
|
+
let q, E2;
|
|
35059
35046
|
r[11] !== h || r[12] !== l ? (q = (e2) => {
|
|
35060
35047
|
let [r2] = e2;
|
|
35061
35048
|
O(r2), h || l(r2);
|
|
35062
|
-
},
|
|
35049
|
+
}, E2 = (e2) => {
|
|
35063
35050
|
let [r2] = e2;
|
|
35064
35051
|
h && l(r2);
|
|
35065
|
-
}, r[11] = h, r[12] = l, r[13] = q, r[14] =
|
|
35066
|
-
let
|
|
35067
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !==
|
|
35052
|
+
}, r[11] = h, r[12] = l, r[13] = q, r[14] = E2) : (q = r[13], E2 = r[14]);
|
|
35053
|
+
let D2;
|
|
35054
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !== E2 || r[24] !== W || r[25] !== y ? (D2 = (0, import_jsx_runtime.jsx)(Slider, {
|
|
35068
35055
|
id: w,
|
|
35069
35056
|
className: W,
|
|
35070
35057
|
value: G,
|
|
@@ -35073,19 +35060,19 @@ ${c}
|
|
|
35073
35060
|
step: m,
|
|
35074
35061
|
orientation: g,
|
|
35075
35062
|
onValueChange: q,
|
|
35076
|
-
onValueCommit:
|
|
35063
|
+
onValueCommit: E2,
|
|
35077
35064
|
valueMap: y,
|
|
35078
35065
|
disabled: S
|
|
35079
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] =
|
|
35080
|
-
let
|
|
35081
|
-
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (
|
|
35066
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] = E2, r[24] = W, r[25] = y, r[26] = D2) : D2 = r[26];
|
|
35067
|
+
let O2;
|
|
35068
|
+
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (O2 = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
35082
35069
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
35083
35070
|
children: prettyScientificNumber(y(E), {
|
|
35084
35071
|
locale: T
|
|
35085
35072
|
})
|
|
35086
|
-
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] =
|
|
35087
|
-
let
|
|
35088
|
-
r[32] !== S || r[33] !== b || r[34] !== E || r[35] !== c || r[36] !== l || r[37] !== d || r[38] !== m || r[39] !== f || r[40] !== y ? (
|
|
35073
|
+
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = O2) : O2 = r[31];
|
|
35074
|
+
let k2;
|
|
35075
|
+
r[32] !== S || r[33] !== b || r[34] !== E || r[35] !== c || r[36] !== l || r[37] !== d || r[38] !== m || r[39] !== f || r[40] !== y ? (k2 = b && (0, import_jsx_runtime.jsx)(NumberField, {
|
|
35089
35076
|
value: y(E),
|
|
35090
35077
|
onChange: (e2) => {
|
|
35091
35078
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -35096,25 +35083,25 @@ ${c}
|
|
|
35096
35083
|
className: "w-24",
|
|
35097
35084
|
"aria-label": `${c || "Slider"} value input`,
|
|
35098
35085
|
isDisabled: S
|
|
35099
|
-
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] =
|
|
35100
|
-
let
|
|
35101
|
-
r[42] !==
|
|
35086
|
+
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] = k2) : k2 = r[41];
|
|
35087
|
+
let A2;
|
|
35088
|
+
r[42] !== D2 || r[43] !== O2 || r[44] !== k2 || r[45] !== B ? (A2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35102
35089
|
className: B,
|
|
35103
35090
|
children: [
|
|
35091
|
+
D2,
|
|
35104
35092
|
O2,
|
|
35105
|
-
k2
|
|
35106
|
-
A2
|
|
35093
|
+
k2
|
|
35107
35094
|
]
|
|
35108
|
-
}), r[42] =
|
|
35095
|
+
}), r[42] = D2, r[43] = O2, r[44] = k2, r[45] = B, r[46] = A2) : A2 = r[46];
|
|
35109
35096
|
let Z;
|
|
35110
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
35097
|
+
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !== A2 || r[51] !== I || r[52] !== R ? (Z = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
35111
35098
|
label: c,
|
|
35112
35099
|
id: w,
|
|
35113
35100
|
align: I,
|
|
35114
35101
|
fullWidth: v,
|
|
35115
35102
|
className: R,
|
|
35116
|
-
children:
|
|
35117
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
35103
|
+
children: A2
|
|
35104
|
+
}), r[47] = v, r[48] = w, r[49] = c, r[50] = A2, r[51] = I, r[52] = R, r[53] = Z) : Z = r[53], Z;
|
|
35118
35105
|
}, import_compiler_runtime$29 = require_compiler_runtime(), switchVariants = cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", {
|
|
35119
35106
|
variants: {
|
|
35120
35107
|
size: {
|
|
@@ -38023,17 +38010,17 @@ ${c}
|
|
|
38023
38010
|
}
|
|
38024
38011
|
var p = "[object Arguments]", m = "[object Boolean]", h = "[object Date]", g = "[object RegExp]", _ = "[object Map]", v = "[object Number]", y = "[object Object]", b = "[object Set]", S = "[object String]", w = Object.prototype.toString;
|
|
38025
38012
|
function T(e3) {
|
|
38026
|
-
var r3 = e3.areArraysEqual, c2 = e3.areDatesEqual, l2 = e3.areMapsEqual, T2 = e3.areObjectsEqual,
|
|
38027
|
-
function
|
|
38013
|
+
var r3 = e3.areArraysEqual, c2 = e3.areDatesEqual, l2 = e3.areMapsEqual, T2 = e3.areObjectsEqual, E3 = e3.areRegExpsEqual, O3 = e3.areSetsEqual, j3 = e3.createIsNestedEqual, M3 = j3(I2);
|
|
38014
|
+
function I2(e4, j4, I3) {
|
|
38028
38015
|
if (e4 === j4) return true;
|
|
38029
38016
|
if (!e4 || !j4 || typeof e4 != "object" || typeof j4 != "object") return e4 !== e4 && j4 !== j4;
|
|
38030
|
-
if (u(e4) && u(j4)) return T2(e4, j4, M3,
|
|
38017
|
+
if (u(e4) && u(j4)) return T2(e4, j4, M3, I3);
|
|
38031
38018
|
var L2 = Array.isArray(e4), R2 = Array.isArray(j4);
|
|
38032
|
-
if (L2 || R2) return L2 === R2 && r3(e4, j4, M3,
|
|
38019
|
+
if (L2 || R2) return L2 === R2 && r3(e4, j4, M3, I3);
|
|
38033
38020
|
var z2 = w.call(e4);
|
|
38034
|
-
return z2 === w.call(j4) ? z2 === h ? c2(e4, j4, M3,
|
|
38021
|
+
return z2 === w.call(j4) ? z2 === h ? c2(e4, j4, M3, I3) : z2 === g ? E3(e4, j4, M3, I3) : z2 === _ ? l2(e4, j4, M3, I3) : z2 === b ? O3(e4, j4, M3, I3) : z2 === y || z2 === p ? d(e4) || d(j4) ? false : T2(e4, j4, M3, I3) : z2 === m || z2 === v || z2 === S ? f(e4.valueOf(), j4.valueOf()) : false : false;
|
|
38035
38022
|
}
|
|
38036
|
-
return
|
|
38023
|
+
return I2;
|
|
38037
38024
|
}
|
|
38038
38025
|
function E(e3, r3, c2, l2) {
|
|
38039
38026
|
var u2 = e3.length;
|
|
@@ -38098,7 +38085,7 @@ ${c}
|
|
|
38098
38085
|
areRegExpsEqual: H,
|
|
38099
38086
|
areSetsEqual: W,
|
|
38100
38087
|
createIsNestedEqual: r2
|
|
38101
|
-
}),
|
|
38088
|
+
}), E2 = Object.freeze({
|
|
38102
38089
|
areArraysEqual: O,
|
|
38103
38090
|
areDatesEqual: j,
|
|
38104
38091
|
areMapsEqual: I,
|
|
@@ -38106,40 +38093,40 @@ ${c}
|
|
|
38106
38093
|
areRegExpsEqual: H,
|
|
38107
38094
|
areSetsEqual: G,
|
|
38108
38095
|
createIsNestedEqual: r2
|
|
38109
|
-
}),
|
|
38110
|
-
function
|
|
38111
|
-
return
|
|
38096
|
+
}), D2 = T(q);
|
|
38097
|
+
function O2(e3, r3) {
|
|
38098
|
+
return D2(e3, r3, void 0);
|
|
38112
38099
|
}
|
|
38113
|
-
var
|
|
38100
|
+
var k2 = T(l(q, {
|
|
38114
38101
|
createIsNestedEqual: function() {
|
|
38115
38102
|
return f;
|
|
38116
38103
|
}
|
|
38117
38104
|
}));
|
|
38118
|
-
function
|
|
38119
|
-
return
|
|
38105
|
+
function A2(e3, r3) {
|
|
38106
|
+
return k2(e3, r3, void 0);
|
|
38120
38107
|
}
|
|
38121
|
-
var Z = T(
|
|
38122
|
-
function
|
|
38108
|
+
var Z = T(E2);
|
|
38109
|
+
function j2(e3, r3) {
|
|
38123
38110
|
return Z(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
38124
38111
|
}
|
|
38125
|
-
var
|
|
38112
|
+
var M2 = T(l(E2, {
|
|
38126
38113
|
createIsNestedEqual: function() {
|
|
38127
38114
|
return f;
|
|
38128
38115
|
}
|
|
38129
38116
|
}));
|
|
38130
|
-
function
|
|
38131
|
-
return
|
|
38117
|
+
function N2(e3, r3) {
|
|
38118
|
+
return M2(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
38132
38119
|
}
|
|
38133
|
-
function
|
|
38120
|
+
function P2(e3) {
|
|
38134
38121
|
return T(l(q, e3(q)));
|
|
38135
38122
|
}
|
|
38136
|
-
function
|
|
38137
|
-
var r3 = T(l(
|
|
38123
|
+
function F2(e3) {
|
|
38124
|
+
var r3 = T(l(E2, e3(E2)));
|
|
38138
38125
|
return (function(e4, c2, l2) {
|
|
38139
38126
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
38140
38127
|
});
|
|
38141
38128
|
}
|
|
38142
|
-
e2.circularDeepEqual =
|
|
38129
|
+
e2.circularDeepEqual = j2, e2.circularShallowEqual = N2, e2.createCustomCircularEqual = F2, e2.createCustomEqual = P2, e2.deepEqual = O2, e2.sameValueZeroEqual = f, e2.shallowEqual = A2, Object.defineProperty(e2, "__esModule", {
|
|
38143
38130
|
value: true
|
|
38144
38131
|
});
|
|
38145
38132
|
}));
|
|
@@ -38165,7 +38152,7 @@ ${c}
|
|
|
38165
38152
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
38166
38153
|
Object.defineProperty(e, "__esModule", {
|
|
38167
38154
|
value: true
|
|
38168
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
38155
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = V2, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = N2, e.setTopLeft = F2, e.setTransform = P2, e.sortLayoutItems = I2, e.sortLayoutItemsByColRow = R2, e.sortLayoutItemsByRowCol = L2, e.synchronizeLayoutWithChildren = z2, e.validateLayout = B2, e.withLayoutItem = v;
|
|
38169
38156
|
var r = require_fast_equals(), c = l(require_react());
|
|
38170
38157
|
function l(e2) {
|
|
38171
38158
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -38270,7 +38257,7 @@ ${c}
|
|
|
38270
38257
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
38271
38258
|
}
|
|
38272
38259
|
function T(e2, r2, c2, l2) {
|
|
38273
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
38260
|
+
let u2 = B(e2), d2 = h(u2), f2 = I2(e2, r2), p2 = Array(e2.length);
|
|
38274
38261
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
38275
38262
|
let h3 = y(f2[m2]);
|
|
38276
38263
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -38328,7 +38315,7 @@ ${c}
|
|
|
38328
38315
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
38329
38316
|
let h2 = r2.x, _2 = r2.y;
|
|
38330
38317
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
38331
|
-
let v2 =
|
|
38318
|
+
let v2 = I2(e2, f2);
|
|
38332
38319
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
38333
38320
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
38334
38321
|
if (b2 && m2) return g(e2);
|
|
@@ -38362,61 +38349,61 @@ ${c}
|
|
|
38362
38349
|
function G(e2) {
|
|
38363
38350
|
return e2 * 100 + "%";
|
|
38364
38351
|
}
|
|
38365
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
38352
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, E2 = (e2, r2, c2) => e2 < 0 ? r2 : c2, D2 = (e2) => Math.max(0, e2), O2 = (e2) => Math.max(0, e2), k2 = (e2, r2, c2) => {
|
|
38366
38353
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
38367
38354
|
return {
|
|
38368
38355
|
left: l2,
|
|
38369
38356
|
width: d2,
|
|
38370
|
-
height:
|
|
38371
|
-
top:
|
|
38357
|
+
height: E2(f2, e2.height, u2),
|
|
38358
|
+
top: O2(f2)
|
|
38372
38359
|
};
|
|
38373
|
-
},
|
|
38360
|
+
}, A2 = (e2, r2, c2) => {
|
|
38374
38361
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
38375
38362
|
return {
|
|
38376
38363
|
top: l2,
|
|
38377
38364
|
height: d2,
|
|
38378
38365
|
width: q(e2.left, e2.width, f2, c2),
|
|
38379
|
-
left:
|
|
38366
|
+
left: D2(u2)
|
|
38380
38367
|
};
|
|
38381
38368
|
}, Z = (e2, r2, c2) => {
|
|
38382
38369
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
38383
38370
|
return {
|
|
38384
38371
|
height: u2,
|
|
38385
38372
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
38386
|
-
top:
|
|
38387
|
-
left:
|
|
38373
|
+
top: O2(l2),
|
|
38374
|
+
left: D2(f2)
|
|
38388
38375
|
};
|
|
38389
|
-
},
|
|
38376
|
+
}, j2 = (e2, r2, c2) => {
|
|
38390
38377
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
38391
38378
|
return {
|
|
38392
38379
|
width: f2,
|
|
38393
38380
|
left: u2,
|
|
38394
|
-
height:
|
|
38395
|
-
top:
|
|
38381
|
+
height: E2(l2, e2.height, d2),
|
|
38382
|
+
top: O2(l2)
|
|
38396
38383
|
};
|
|
38397
|
-
},
|
|
38398
|
-
n:
|
|
38384
|
+
}, M2 = {
|
|
38385
|
+
n: k2,
|
|
38399
38386
|
ne: function() {
|
|
38400
|
-
return
|
|
38387
|
+
return k2(arguments.length <= 0 ? void 0 : arguments[0], A2(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38401
38388
|
},
|
|
38402
|
-
e:
|
|
38389
|
+
e: A2,
|
|
38403
38390
|
se: function() {
|
|
38404
|
-
return
|
|
38391
|
+
return j2(arguments.length <= 0 ? void 0 : arguments[0], A2(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38405
38392
|
},
|
|
38406
|
-
s:
|
|
38393
|
+
s: j2,
|
|
38407
38394
|
sw: function() {
|
|
38408
|
-
return
|
|
38395
|
+
return j2(arguments.length <= 0 ? void 0 : arguments[0], Z(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38409
38396
|
},
|
|
38410
38397
|
w: Z,
|
|
38411
38398
|
nw: function() {
|
|
38412
|
-
return
|
|
38399
|
+
return k2(arguments.length <= 0 ? void 0 : arguments[0], Z(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38413
38400
|
}
|
|
38414
38401
|
};
|
|
38415
|
-
function
|
|
38416
|
-
let u2 =
|
|
38402
|
+
function N2(e2, r2, c2, l2) {
|
|
38403
|
+
let u2 = M2[e2];
|
|
38417
38404
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
38418
38405
|
}
|
|
38419
|
-
function
|
|
38406
|
+
function P2(e2) {
|
|
38420
38407
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
38421
38408
|
return {
|
|
38422
38409
|
transform: d2,
|
|
@@ -38429,7 +38416,7 @@ ${c}
|
|
|
38429
38416
|
position: "absolute"
|
|
38430
38417
|
};
|
|
38431
38418
|
}
|
|
38432
|
-
function
|
|
38419
|
+
function F2(e2) {
|
|
38433
38420
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
38434
38421
|
return {
|
|
38435
38422
|
top: `${r2}px`,
|
|
@@ -38439,20 +38426,20 @@ ${c}
|
|
|
38439
38426
|
position: "absolute"
|
|
38440
38427
|
};
|
|
38441
38428
|
}
|
|
38442
|
-
function
|
|
38443
|
-
return r2 === "horizontal" ?
|
|
38429
|
+
function I2(e2, r2) {
|
|
38430
|
+
return r2 === "horizontal" ? R2(e2) : r2 === "vertical" ? L2(e2) : e2;
|
|
38444
38431
|
}
|
|
38445
|
-
function
|
|
38432
|
+
function L2(e2) {
|
|
38446
38433
|
return e2.slice(0).sort(function(e3, r2) {
|
|
38447
38434
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
38448
38435
|
});
|
|
38449
38436
|
}
|
|
38450
|
-
function
|
|
38437
|
+
function R2(e2) {
|
|
38451
38438
|
return e2.slice(0).sort(function(e3, r2) {
|
|
38452
38439
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
38453
38440
|
});
|
|
38454
38441
|
}
|
|
38455
|
-
function
|
|
38442
|
+
function z2(e2, r2, l2, u2, f2) {
|
|
38456
38443
|
e2 || (e2 = []);
|
|
38457
38444
|
let p2 = [];
|
|
38458
38445
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -38473,7 +38460,7 @@ ${c}
|
|
|
38473
38460
|
});
|
|
38474
38461
|
return f2 ? m2 : T(m2, u2, l2);
|
|
38475
38462
|
}
|
|
38476
|
-
function
|
|
38463
|
+
function B2(e2) {
|
|
38477
38464
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
38478
38465
|
"x",
|
|
38479
38466
|
"y",
|
|
@@ -38490,7 +38477,7 @@ ${c}
|
|
|
38490
38477
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
38491
38478
|
}
|
|
38492
38479
|
}
|
|
38493
|
-
function
|
|
38480
|
+
function V2(e2) {
|
|
38494
38481
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
38495
38482
|
return r2 === false ? null : c2;
|
|
38496
38483
|
}
|
|
@@ -41295,7 +41282,7 @@ ${c}
|
|
|
41295
41282
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
41296
41283
|
let E = useIsDragging(), O, j;
|
|
41297
41284
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
41298
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, D2, O2, k2, A2,
|
|
41285
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, E2, D2, O2, k2, A2, Z, j2, M2, N2, P2, F2, I2, L2, R2, z2, B2, V2;
|
|
41299
41286
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
41300
41287
|
let e2 = Maps.keyBy(c.cells, _temp2$2), m2;
|
|
41301
41288
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -41314,23 +41301,23 @@ ${c}
|
|
|
41314
41301
|
});
|
|
41315
41302
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
41316
41303
|
let y2 = v2;
|
|
41317
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
41304
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, R2 = "lg", r[58] === c.cells ? z2 = r[59] : (z2 = {
|
|
41318
41305
|
lg: c.cells
|
|
41319
|
-
}, r[58] = c.cells, r[59] =
|
|
41306
|
+
}, r[58] = c.cells, r[59] = z2), B2 = L, V2 = S, R = false;
|
|
41320
41307
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
41321
41308
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
41322
41309
|
20,
|
|
41323
41310
|
20
|
|
41324
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
41311
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, E2 = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (D2 = (e3) => {
|
|
41325
41312
|
f || l({
|
|
41326
41313
|
...c,
|
|
41327
41314
|
cells: e3
|
|
41328
41315
|
});
|
|
41329
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
41316
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = D2) : D2 = r[69], r[70] === g ? O2 = r[71] : (O2 = g ? {
|
|
41330
41317
|
i: g.i,
|
|
41331
41318
|
w: g.w || 2,
|
|
41332
41319
|
h: g.h || 2
|
|
41333
|
-
} : void 0, r[70] = g, r[71] =
|
|
41320
|
+
} : void 0, r[70] = g, r[71] = O2), r[72] !== O || r[73] !== c || r[74] !== l ? (k2 = (e3, r2, u2) => {
|
|
41334
41321
|
O.onDragStop(), r2 && l({
|
|
41335
41322
|
...c,
|
|
41336
41323
|
cells: [
|
|
@@ -41338,15 +41325,15 @@ ${c}
|
|
|
41338
41325
|
r2
|
|
41339
41326
|
]
|
|
41340
41327
|
});
|
|
41341
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
41328
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = k2) : k2 = r[75], r[76] === O ? (A2 = r[77], Z = r[78], j2 = r[79]) : (A2 = (e3, r2, c2, l2, u2) => {
|
|
41342
41329
|
O.onDragStart(u2);
|
|
41343
41330
|
}, Z = (e3, r2, c2, l2, u2) => {
|
|
41344
41331
|
O.onDragMove(u2);
|
|
41345
|
-
},
|
|
41332
|
+
}, j2 = () => {
|
|
41346
41333
|
O.onDragStop();
|
|
41347
|
-
}, r[76] = O, r[77] =
|
|
41348
|
-
let
|
|
41349
|
-
r[80] === h ?
|
|
41334
|
+
}, r[76] = O, r[77] = A2, r[78] = Z, r[79] = j2), M2 = _temp3$2, N2 = M, P2 = M, F2 = M, I2 = M ? `.${DRAG_HANDLE}` : "noop";
|
|
41335
|
+
let E3;
|
|
41336
|
+
r[80] === h ? E3 = r[81] : (E3 = (e3) => h.has(e3.id), r[80] = h, r[81] = E3), L2 = u.filter(E3).map((r2) => {
|
|
41350
41337
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
41351
41338
|
code: r2.code,
|
|
41352
41339
|
mode: d,
|
|
@@ -41375,14 +41362,14 @@ ${c}
|
|
|
41375
41362
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
41376
41363
|
children: m3
|
|
41377
41364
|
}, r2.id);
|
|
41378
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
41379
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
41380
|
-
let
|
|
41381
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
41382
|
-
breakpoint:
|
|
41383
|
-
layouts:
|
|
41384
|
-
style:
|
|
41385
|
-
cols:
|
|
41365
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = E2, r[31] = D2, r[32] = O2, r[33] = k2, r[34] = A2, r[35] = Z, r[36] = j2, r[37] = M2, r[38] = N2, r[39] = P2, r[40] = F2, r[41] = I2, r[42] = L2, r[43] = R2, r[44] = z2, r[45] = B2, r[46] = V2;
|
|
41366
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], E2 = r[30], D2 = r[31], O2 = r[32], k2 = r[33], A2 = r[34], Z = r[35], j2 = r[36], M2 = r[37], N2 = r[38], P2 = r[39], F2 = r[40], I2 = r[41], L2 = r[42], R2 = r[43], z2 = r[44], B2 = r[45], V2 = r[46];
|
|
41367
|
+
let H2;
|
|
41368
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== E2 || r[91] !== D2 || r[92] !== O2 || r[93] !== k2 || r[94] !== A2 || r[95] !== Z || r[96] !== j2 || r[97] !== M2 || r[98] !== N2 || r[99] !== P2 || r[100] !== F2 || r[101] !== I2 || r[102] !== L2 || r[103] !== R2 || r[104] !== z2 || r[105] !== B2 || r[106] !== V2 ? (H2 = (0, import_jsx_runtime.jsx)(I, {
|
|
41369
|
+
breakpoint: R2,
|
|
41370
|
+
layouts: z2,
|
|
41371
|
+
style: B2,
|
|
41372
|
+
cols: V2,
|
|
41386
41373
|
allowOverlap: R,
|
|
41387
41374
|
className: z,
|
|
41388
41375
|
containerPadding: B,
|
|
@@ -41390,51 +41377,51 @@ ${c}
|
|
|
41390
41377
|
isBounded: W,
|
|
41391
41378
|
compactType: G,
|
|
41392
41379
|
preventCollision: q,
|
|
41393
|
-
rowHeight:
|
|
41394
|
-
onLayoutChange:
|
|
41395
|
-
droppingItem:
|
|
41396
|
-
onDrop:
|
|
41397
|
-
onDragStart:
|
|
41380
|
+
rowHeight: E2,
|
|
41381
|
+
onLayoutChange: D2,
|
|
41382
|
+
droppingItem: O2,
|
|
41383
|
+
onDrop: k2,
|
|
41384
|
+
onDragStart: A2,
|
|
41398
41385
|
onDrag: Z,
|
|
41399
|
-
onDragStop:
|
|
41400
|
-
onResizeStop:
|
|
41401
|
-
isDraggable:
|
|
41402
|
-
isDroppable:
|
|
41403
|
-
isResizable:
|
|
41404
|
-
draggableHandle:
|
|
41405
|
-
children:
|
|
41406
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
41407
|
-
let
|
|
41408
|
-
if (r[108] !== u || r[109] !==
|
|
41409
|
-
|
|
41386
|
+
onDragStop: j2,
|
|
41387
|
+
onResizeStop: M2,
|
|
41388
|
+
isDraggable: N2,
|
|
41389
|
+
isDroppable: P2,
|
|
41390
|
+
isResizable: F2,
|
|
41391
|
+
draggableHandle: I2,
|
|
41392
|
+
children: L2
|
|
41393
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = E2, r[91] = D2, r[92] = O2, r[93] = k2, r[94] = A2, r[95] = Z, r[96] = j2, r[97] = M2, r[98] = N2, r[99] = P2, r[100] = F2, r[101] = I2, r[102] = L2, r[103] = R2, r[104] = z2, r[105] = B2, r[106] = V2, r[107] = H2) : H2 = r[107];
|
|
41394
|
+
let U2 = H2, W2, G2, K2, q2, J2, Y2, X2;
|
|
41395
|
+
if (r[108] !== u || r[109] !== U2 || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
41396
|
+
X2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
41410
41397
|
bb0: {
|
|
41411
41398
|
let e2;
|
|
41412
41399
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
41413
41400
|
let m2 = u.filter(e2);
|
|
41414
41401
|
if (f) {
|
|
41415
41402
|
if (c.bordered) {
|
|
41416
|
-
let
|
|
41417
|
-
r[127] !==
|
|
41403
|
+
let e4;
|
|
41404
|
+
r[127] !== U2 || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
41418
41405
|
className: "flex flex-1 flex-col items-center",
|
|
41419
41406
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
41420
41407
|
style: L,
|
|
41421
41408
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
41422
|
-
children:
|
|
41409
|
+
children: U2
|
|
41423
41410
|
})
|
|
41424
|
-
}), r[127] =
|
|
41411
|
+
}), r[127] = U2, r[128] = L, r[129] = e4) : e4 = r[129], U2 = e4;
|
|
41425
41412
|
}
|
|
41426
41413
|
let e3 = m2.filter(_temp4$2), l2;
|
|
41427
|
-
r[130] === d ? l2 = r[131] : (l2 = (
|
|
41428
|
-
code:
|
|
41414
|
+
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
41415
|
+
code: e4.code,
|
|
41429
41416
|
mode: d,
|
|
41430
|
-
cellId:
|
|
41431
|
-
output:
|
|
41432
|
-
status:
|
|
41417
|
+
cellId: e4.id,
|
|
41418
|
+
output: e4.output,
|
|
41419
|
+
status: e4.status,
|
|
41433
41420
|
isScrollable: false,
|
|
41434
41421
|
hidden: false
|
|
41435
|
-
},
|
|
41422
|
+
}, e4.id), r[130] = d, r[131] = l2), X2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41436
41423
|
children: [
|
|
41437
|
-
|
|
41424
|
+
U2,
|
|
41438
41425
|
(0, import_jsx_runtime.jsx)("div", {
|
|
41439
41426
|
className: "hidden",
|
|
41440
41427
|
children: e3.map(l2)
|
|
@@ -41445,31 +41432,31 @@ ${c}
|
|
|
41445
41432
|
}
|
|
41446
41433
|
if (c.bordered) {
|
|
41447
41434
|
let e3;
|
|
41448
|
-
r[132] ===
|
|
41435
|
+
r[132] === U2 ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
41449
41436
|
className: "h-full overflow-auto",
|
|
41450
|
-
children:
|
|
41451
|
-
}), r[132] =
|
|
41437
|
+
children: U2
|
|
41438
|
+
}), r[132] = U2, r[133] = e3);
|
|
41452
41439
|
let c2;
|
|
41453
41440
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41454
41441
|
style: L,
|
|
41455
41442
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
41456
41443
|
children: e3
|
|
41457
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
41444
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], U2 = c2;
|
|
41458
41445
|
}
|
|
41459
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
41446
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (Y2 = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
41460
41447
|
layout: c,
|
|
41461
41448
|
setLayout: l,
|
|
41462
41449
|
isLocked: v,
|
|
41463
41450
|
setIsLocked: y
|
|
41464
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
41451
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = Y2) : Y2 = r[140];
|
|
41465
41452
|
let g2;
|
|
41466
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
41453
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q2 = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = q2, r[142] = g2) : (q2 = r[141], g2 = r[142]), r[143] === U2 ? J2 = r[144] : (J2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41467
41454
|
className: g2,
|
|
41468
|
-
children:
|
|
41469
|
-
}), r[143] =
|
|
41455
|
+
children: U2
|
|
41456
|
+
}), r[143] = U2, r[144] = J2), W2 = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41470
41457
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
41471
41458
|
children: "Outputs"
|
|
41472
|
-
}), r[145] =
|
|
41459
|
+
}), r[145] = G2) : G2 = r[145];
|
|
41473
41460
|
let b2;
|
|
41474
41461
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
41475
41462
|
draggable: true,
|
|
@@ -41494,34 +41481,34 @@ ${c}
|
|
|
41494
41481
|
status: e3.status,
|
|
41495
41482
|
hidden: false
|
|
41496
41483
|
})
|
|
41497
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
41484
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], K2 = m2.map(b2);
|
|
41498
41485
|
}
|
|
41499
|
-
r[108] = u, r[109] =
|
|
41500
|
-
} else
|
|
41501
|
-
if (
|
|
41486
|
+
r[108] = u, r[109] = U2, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = W2, r[118] = G2, r[119] = K2, r[120] = q2, r[121] = J2, r[122] = Y2, r[123] = X2, r[124] = U2;
|
|
41487
|
+
} else W2 = r[117], G2 = r[118], K2 = r[119], q2 = r[120], J2 = r[121], Y2 = r[122], X2 = r[123], U2 = r[124];
|
|
41488
|
+
if (X2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return X2;
|
|
41489
|
+
let Z2;
|
|
41490
|
+
r[150] !== W2 || r[151] !== G2 || r[152] !== K2 ? (Z2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41491
|
+
className: W2,
|
|
41492
|
+
children: [
|
|
41493
|
+
G2,
|
|
41494
|
+
K2
|
|
41495
|
+
]
|
|
41496
|
+
}), r[150] = W2, r[151] = G2, r[152] = K2, r[153] = Z2) : Z2 = r[153];
|
|
41502
41497
|
let Q2;
|
|
41503
|
-
r[
|
|
41504
|
-
className:
|
|
41498
|
+
r[154] !== q2 || r[155] !== J2 || r[156] !== Z2 ? (Q2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41499
|
+
className: q2,
|
|
41505
41500
|
children: [
|
|
41506
|
-
|
|
41507
|
-
|
|
41501
|
+
J2,
|
|
41502
|
+
Z2
|
|
41508
41503
|
]
|
|
41509
|
-
}), r[
|
|
41504
|
+
}), r[154] = q2, r[155] = J2, r[156] = Z2, r[157] = Q2) : Q2 = r[157];
|
|
41510
41505
|
let $2;
|
|
41511
|
-
|
|
41512
|
-
className: J2,
|
|
41506
|
+
return r[158] !== Y2 || r[159] !== Q2 ? ($2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41513
41507
|
children: [
|
|
41514
41508
|
Y2,
|
|
41515
41509
|
Q2
|
|
41516
41510
|
]
|
|
41517
|
-
}), r[
|
|
41518
|
-
let e4;
|
|
41519
|
-
return r[158] !== X2 || r[159] !== $2 ? (e4 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41520
|
-
children: [
|
|
41521
|
-
X2,
|
|
41522
|
-
$2
|
|
41523
|
-
]
|
|
41524
|
-
}), r[158] = X2, r[159] = $2, r[160] = e4) : e4 = r[160], e4;
|
|
41511
|
+
}), r[158] = Y2, r[159] = Q2, r[160] = $2) : $2 = r[160], $2;
|
|
41525
41512
|
};
|
|
41526
41513
|
var GridCell = (0, import_react.memo)((e) => {
|
|
41527
41514
|
let r = (0, import_compiler_runtime$12.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -41822,25 +41809,25 @@ ${c}
|
|
|
41822
41809
|
G
|
|
41823
41810
|
]
|
|
41824
41811
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
41825
|
-
let
|
|
41826
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
41812
|
+
let E2;
|
|
41813
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E2 = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
41827
41814
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
41828
|
-
}), r[35] =
|
|
41829
|
-
let
|
|
41830
|
-
r[36] === l ?
|
|
41815
|
+
}), r[35] = E2) : E2 = r[35];
|
|
41816
|
+
let D2;
|
|
41817
|
+
r[36] === l ? D2 = r[37] : (D2 = (0, import_jsx_runtime.jsx)(X, {
|
|
41831
41818
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
41832
41819
|
onClick: () => l()
|
|
41833
|
-
}), r[36] = l, r[37] =
|
|
41834
|
-
let
|
|
41835
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
41820
|
+
}), r[36] = l, r[37] = D2);
|
|
41821
|
+
let O2;
|
|
41822
|
+
return r[38] !== I || r[39] !== q || r[40] !== D2 || r[41] !== w ? (O2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41836
41823
|
className: w,
|
|
41837
41824
|
children: [
|
|
41838
41825
|
I,
|
|
41839
41826
|
q,
|
|
41840
|
-
|
|
41841
|
-
|
|
41827
|
+
E2,
|
|
41828
|
+
D2
|
|
41842
41829
|
]
|
|
41843
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
41830
|
+
}), r[38] = I, r[39] = q, r[40] = D2, r[41] = w, r[42] = O2) : O2 = r[42], O2;
|
|
41844
41831
|
};
|
|
41845
41832
|
function isSidebarCell(e) {
|
|
41846
41833
|
var _a3;
|
|
@@ -43768,31 +43755,31 @@ ${c}
|
|
|
43768
43755
|
}, [
|
|
43769
43756
|
T,
|
|
43770
43757
|
M
|
|
43771
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
43758
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), E2 = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
43772
43759
|
j
|
|
43773
|
-
]),
|
|
43760
|
+
]), D2 = useMeasuringConfiguration(p), { droppableRects: O2, measureDroppableContainers: k2, measuringScheduled: A2 } = useDroppableMeasuring(E2, {
|
|
43774
43761
|
dragging: w,
|
|
43775
43762
|
dependencies: [
|
|
43776
43763
|
O.x,
|
|
43777
43764
|
O.y
|
|
43778
43765
|
],
|
|
43779
|
-
config:
|
|
43780
|
-
}), Z = useCachedNode(E, T),
|
|
43766
|
+
config: D2.droppable
|
|
43767
|
+
}), Z = useCachedNode(E, T), j2 = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
43781
43768
|
H
|
|
43782
|
-
]),
|
|
43769
|
+
]), M2 = l4(), N2 = useInitialRect(Z, D2.draggable.measure);
|
|
43783
43770
|
useLayoutShiftScrollCompensation({
|
|
43784
43771
|
activeNode: T == null ? null : E.get(T),
|
|
43785
|
-
config:
|
|
43786
|
-
initialRect:
|
|
43787
|
-
measure:
|
|
43772
|
+
config: M2.layoutShiftCompensation,
|
|
43773
|
+
initialRect: N2,
|
|
43774
|
+
measure: D2.draggable.measure
|
|
43788
43775
|
});
|
|
43789
|
-
let
|
|
43776
|
+
let P2 = useRect(Z, D2.draggable.measure, N2), F2 = useRect(Z ? Z.parentElement : null), I2 = (0, import_react.useRef)({
|
|
43790
43777
|
activatorEvent: null,
|
|
43791
43778
|
active: null,
|
|
43792
43779
|
activeNode: Z,
|
|
43793
43780
|
collisionRect: null,
|
|
43794
43781
|
collisions: null,
|
|
43795
|
-
droppableRects:
|
|
43782
|
+
droppableRects: O2,
|
|
43796
43783
|
draggableNodes: E,
|
|
43797
43784
|
draggingNode: null,
|
|
43798
43785
|
draggingNodeRect: null,
|
|
@@ -43800,45 +43787,45 @@ ${c}
|
|
|
43800
43787
|
over: null,
|
|
43801
43788
|
scrollableAncestors: [],
|
|
43802
43789
|
scrollAdjustedTranslate: null
|
|
43803
|
-
}),
|
|
43804
|
-
measure:
|
|
43805
|
-
}),
|
|
43790
|
+
}), L2 = j.getNodeFor((_a3 = I2.current.over) == null ? void 0 : _a3.id), R2 = useDragOverlayMeasuring({
|
|
43791
|
+
measure: D2.dragOverlay.measure
|
|
43792
|
+
}), z2 = R2.nodeRef.current ?? Z, B2 = w ? R2.rect ?? P2 : null, V2 = !!(R2.nodeRef.current && R2.rect), H2 = useRectDelta(V2 ? null : P2), U2 = useWindowRect(z2 ? getWindow(z2) : null), W2 = useScrollableAncestors(w ? L2 ?? Z : null), G2 = useRects(W2), K2 = applyModifiers(m, {
|
|
43806
43793
|
transform: {
|
|
43807
|
-
x: O.x -
|
|
43808
|
-
y: O.y -
|
|
43794
|
+
x: O.x - H2.x,
|
|
43795
|
+
y: O.y - H2.y,
|
|
43809
43796
|
scaleX: 1,
|
|
43810
43797
|
scaleY: 1
|
|
43811
43798
|
},
|
|
43812
43799
|
activatorEvent: H,
|
|
43813
43800
|
active: L,
|
|
43814
|
-
activeNodeRect:
|
|
43815
|
-
containerNodeRect:
|
|
43816
|
-
draggingNodeRect:
|
|
43817
|
-
over:
|
|
43818
|
-
overlayNodeRect:
|
|
43819
|
-
scrollableAncestors:
|
|
43820
|
-
scrollableAncestorRects:
|
|
43821
|
-
windowRect:
|
|
43822
|
-
}),
|
|
43823
|
-
|
|
43824
|
-
]),
|
|
43801
|
+
activeNodeRect: P2,
|
|
43802
|
+
containerNodeRect: F2,
|
|
43803
|
+
draggingNodeRect: B2,
|
|
43804
|
+
over: I2.current.over,
|
|
43805
|
+
overlayNodeRect: R2.rect,
|
|
43806
|
+
scrollableAncestors: W2,
|
|
43807
|
+
scrollableAncestorRects: G2,
|
|
43808
|
+
windowRect: U2
|
|
43809
|
+
}), q2 = j2 ? add(j2, O) : null, J2 = useScrollOffsets(W2), Y2 = useScrollOffsetsDelta(J2), X2 = useScrollOffsetsDelta(J2, [
|
|
43810
|
+
P2
|
|
43811
|
+
]), Z2 = add(K2, Y2), Q2 = B2 ? getAdjustedRect(B2, K2) : null, $2 = L && Q2 ? f({
|
|
43825
43812
|
active: L,
|
|
43826
|
-
collisionRect:
|
|
43827
|
-
droppableRects:
|
|
43828
|
-
droppableContainers:
|
|
43829
|
-
pointerCoordinates:
|
|
43830
|
-
}) : null,
|
|
43813
|
+
collisionRect: Q2,
|
|
43814
|
+
droppableRects: O2,
|
|
43815
|
+
droppableContainers: E2,
|
|
43816
|
+
pointerCoordinates: q2
|
|
43817
|
+
}) : null, e4 = getFirstCollision($2, "id"), [t4, n4] = (0, import_react.useState)(null), r4 = adjustScale(V2 ? K2 : add(K2, X2), (t4 == null ? void 0 : t4.rect) ?? null, P2), i4 = (0, import_react.useRef)(null), a4 = (0, import_react.useCallback)((e2, r2) => {
|
|
43831
43818
|
let { sensor: c2, options: l2 } = r2;
|
|
43832
43819
|
if (R.current == null) return;
|
|
43833
43820
|
let u2 = E.get(R.current);
|
|
43834
43821
|
if (!u2) return;
|
|
43835
43822
|
let d2 = e2.nativeEvent;
|
|
43836
|
-
|
|
43823
|
+
i4.current = new c2({
|
|
43837
43824
|
active: R.current,
|
|
43838
43825
|
activeNode: u2,
|
|
43839
43826
|
event: d2,
|
|
43840
43827
|
options: l2,
|
|
43841
|
-
context:
|
|
43828
|
+
context: I2,
|
|
43842
43829
|
onAbort(e3) {
|
|
43843
43830
|
if (!E.get(e3)) return;
|
|
43844
43831
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -43883,7 +43870,7 @@ ${c}
|
|
|
43883
43870
|
}), v({
|
|
43884
43871
|
type: "onDragStart",
|
|
43885
43872
|
event: u3
|
|
43886
|
-
}), B(
|
|
43873
|
+
}), B(i4.current), W(d2);
|
|
43887
43874
|
});
|
|
43888
43875
|
},
|
|
43889
43876
|
onMove(e3) {
|
|
@@ -43897,7 +43884,7 @@ ${c}
|
|
|
43897
43884
|
});
|
|
43898
43885
|
function f2(e3) {
|
|
43899
43886
|
return async function() {
|
|
43900
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
43887
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = I2.current, f3 = null;
|
|
43901
43888
|
if (r3 && u3) {
|
|
43902
43889
|
let { cancelDrop: p2 } = G.current;
|
|
43903
43890
|
f3 = {
|
|
@@ -43911,7 +43898,7 @@ ${c}
|
|
|
43911
43898
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43912
43899
|
_({
|
|
43913
43900
|
type: e3
|
|
43914
|
-
}), S(Status.Uninitialized),
|
|
43901
|
+
}), S(Status.Uninitialized), n4(null), B(null), W(null), i4.current = null;
|
|
43915
43902
|
let r5 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
43916
43903
|
if (f3) {
|
|
43917
43904
|
let e5 = G.current[r5];
|
|
@@ -43925,7 +43912,7 @@ ${c}
|
|
|
43925
43912
|
}
|
|
43926
43913
|
}, [
|
|
43927
43914
|
E
|
|
43928
|
-
]),
|
|
43915
|
+
]), o4 = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
43929
43916
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
43930
43917
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
43931
43918
|
let f2 = {
|
|
@@ -43933,26 +43920,26 @@ ${c}
|
|
|
43933
43920
|
};
|
|
43934
43921
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
43935
43922
|
capturedBy: r2.sensor
|
|
43936
|
-
}, R.current = l2,
|
|
43923
|
+
}, R.current = l2, a4(c2, r2));
|
|
43937
43924
|
}, [
|
|
43938
43925
|
E,
|
|
43939
|
-
|
|
43926
|
+
a4
|
|
43940
43927
|
]));
|
|
43941
43928
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
43942
|
-
|
|
43929
|
+
P2 && b === Status.Initializing && S(Status.Initialized);
|
|
43943
43930
|
}, [
|
|
43944
|
-
|
|
43931
|
+
P2,
|
|
43945
43932
|
b
|
|
43946
43933
|
]), (0, import_react.useEffect)(() => {
|
|
43947
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
43934
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = I2.current;
|
|
43948
43935
|
if (!r2 || !c2) return;
|
|
43949
43936
|
let d2 = {
|
|
43950
43937
|
active: r2,
|
|
43951
43938
|
activatorEvent: c2,
|
|
43952
43939
|
collisions: l2,
|
|
43953
43940
|
delta: {
|
|
43954
|
-
x:
|
|
43955
|
-
y:
|
|
43941
|
+
x: Z2.x,
|
|
43942
|
+
y: Z2.y
|
|
43956
43943
|
},
|
|
43957
43944
|
over: u2
|
|
43958
43945
|
};
|
|
@@ -43963,12 +43950,12 @@ ${c}
|
|
|
43963
43950
|
});
|
|
43964
43951
|
});
|
|
43965
43952
|
}, [
|
|
43966
|
-
|
|
43967
|
-
|
|
43953
|
+
Z2.x,
|
|
43954
|
+
Z2.y
|
|
43968
43955
|
]), (0, import_react.useEffect)(() => {
|
|
43969
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
43956
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = I2.current;
|
|
43970
43957
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
43971
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
43958
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(e4), p2 = f2 && f2.rect.current ? {
|
|
43972
43959
|
id: f2.id,
|
|
43973
43960
|
rect: f2.rect.current,
|
|
43974
43961
|
data: f2.data,
|
|
@@ -43984,127 +43971,127 @@ ${c}
|
|
|
43984
43971
|
over: p2
|
|
43985
43972
|
};
|
|
43986
43973
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43987
|
-
|
|
43974
|
+
n4(p2), d2 == null ? void 0 : d2(m2), v({
|
|
43988
43975
|
type: "onDragOver",
|
|
43989
43976
|
event: m2
|
|
43990
43977
|
});
|
|
43991
43978
|
});
|
|
43992
43979
|
}, [
|
|
43993
|
-
|
|
43980
|
+
e4
|
|
43994
43981
|
]), useIsomorphicLayoutEffect(() => {
|
|
43995
|
-
|
|
43982
|
+
I2.current = {
|
|
43996
43983
|
activatorEvent: H,
|
|
43997
43984
|
active: L,
|
|
43998
43985
|
activeNode: Z,
|
|
43999
|
-
collisionRect:
|
|
44000
|
-
collisions:
|
|
44001
|
-
droppableRects:
|
|
43986
|
+
collisionRect: Q2,
|
|
43987
|
+
collisions: $2,
|
|
43988
|
+
droppableRects: O2,
|
|
44002
43989
|
draggableNodes: E,
|
|
44003
|
-
draggingNode:
|
|
44004
|
-
draggingNodeRect:
|
|
43990
|
+
draggingNode: z2,
|
|
43991
|
+
draggingNodeRect: B2,
|
|
44005
43992
|
droppableContainers: j,
|
|
44006
|
-
over:
|
|
44007
|
-
scrollableAncestors:
|
|
44008
|
-
scrollAdjustedTranslate:
|
|
43993
|
+
over: t4,
|
|
43994
|
+
scrollableAncestors: W2,
|
|
43995
|
+
scrollAdjustedTranslate: Z2
|
|
44009
43996
|
}, I.current = {
|
|
44010
|
-
initial:
|
|
44011
|
-
translated:
|
|
43997
|
+
initial: B2,
|
|
43998
|
+
translated: Q2
|
|
44012
43999
|
};
|
|
44013
44000
|
}, [
|
|
44014
44001
|
L,
|
|
44015
44002
|
Z,
|
|
44016
|
-
e4,
|
|
44017
44003
|
$2,
|
|
44004
|
+
Q2,
|
|
44018
44005
|
E,
|
|
44006
|
+
z2,
|
|
44019
44007
|
B2,
|
|
44020
|
-
|
|
44021
|
-
k2,
|
|
44008
|
+
O2,
|
|
44022
44009
|
j,
|
|
44023
|
-
|
|
44024
|
-
|
|
44025
|
-
|
|
44010
|
+
t4,
|
|
44011
|
+
W2,
|
|
44012
|
+
Z2
|
|
44026
44013
|
]), useAutoScroller({
|
|
44027
|
-
...
|
|
44014
|
+
...M2,
|
|
44028
44015
|
delta: O,
|
|
44029
|
-
draggingRect:
|
|
44030
|
-
pointerCoordinates:
|
|
44031
|
-
scrollableAncestors:
|
|
44032
|
-
scrollableAncestorRects:
|
|
44016
|
+
draggingRect: Q2,
|
|
44017
|
+
pointerCoordinates: q2,
|
|
44018
|
+
scrollableAncestors: W2,
|
|
44019
|
+
scrollableAncestorRects: G2
|
|
44033
44020
|
});
|
|
44034
|
-
let
|
|
44021
|
+
let s4 = (0, import_react.useMemo)(() => ({
|
|
44035
44022
|
active: L,
|
|
44036
44023
|
activeNode: Z,
|
|
44037
|
-
activeNodeRect:
|
|
44024
|
+
activeNodeRect: P2,
|
|
44038
44025
|
activatorEvent: H,
|
|
44039
|
-
collisions:
|
|
44040
|
-
containerNodeRect:
|
|
44041
|
-
dragOverlay:
|
|
44026
|
+
collisions: $2,
|
|
44027
|
+
containerNodeRect: F2,
|
|
44028
|
+
dragOverlay: R2,
|
|
44042
44029
|
draggableNodes: E,
|
|
44043
44030
|
droppableContainers: j,
|
|
44044
|
-
droppableRects:
|
|
44045
|
-
over:
|
|
44046
|
-
measureDroppableContainers:
|
|
44047
|
-
scrollableAncestors:
|
|
44048
|
-
scrollableAncestorRects:
|
|
44049
|
-
measuringConfiguration:
|
|
44050
|
-
measuringScheduled:
|
|
44051
|
-
windowRect:
|
|
44031
|
+
droppableRects: O2,
|
|
44032
|
+
over: t4,
|
|
44033
|
+
measureDroppableContainers: k2,
|
|
44034
|
+
scrollableAncestors: W2,
|
|
44035
|
+
scrollableAncestorRects: G2,
|
|
44036
|
+
measuringConfiguration: D2,
|
|
44037
|
+
measuringScheduled: A2,
|
|
44038
|
+
windowRect: U2
|
|
44052
44039
|
}), [
|
|
44053
44040
|
L,
|
|
44054
44041
|
Z,
|
|
44055
|
-
|
|
44042
|
+
P2,
|
|
44056
44043
|
H,
|
|
44057
|
-
|
|
44058
|
-
|
|
44059
|
-
|
|
44044
|
+
$2,
|
|
44045
|
+
F2,
|
|
44046
|
+
R2,
|
|
44060
44047
|
E,
|
|
44061
44048
|
j,
|
|
44049
|
+
O2,
|
|
44050
|
+
t4,
|
|
44062
44051
|
k2,
|
|
44063
|
-
|
|
44064
|
-
A2,
|
|
44052
|
+
W2,
|
|
44065
44053
|
G2,
|
|
44066
|
-
|
|
44067
|
-
|
|
44068
|
-
|
|
44069
|
-
|
|
44070
|
-
]), l4 = (0, import_react.useMemo)(() => ({
|
|
44054
|
+
D2,
|
|
44055
|
+
A2,
|
|
44056
|
+
U2
|
|
44057
|
+
]), c4 = (0, import_react.useMemo)(() => ({
|
|
44071
44058
|
activatorEvent: H,
|
|
44072
|
-
activators:
|
|
44059
|
+
activators: o4,
|
|
44073
44060
|
active: L,
|
|
44074
|
-
activeNodeRect:
|
|
44061
|
+
activeNodeRect: P2,
|
|
44075
44062
|
ariaDescribedById: {
|
|
44076
44063
|
draggable: q
|
|
44077
44064
|
},
|
|
44078
44065
|
dispatch: _,
|
|
44079
44066
|
draggableNodes: E,
|
|
44080
|
-
over:
|
|
44081
|
-
measureDroppableContainers:
|
|
44067
|
+
over: t4,
|
|
44068
|
+
measureDroppableContainers: k2
|
|
44082
44069
|
}), [
|
|
44083
44070
|
H,
|
|
44084
|
-
|
|
44071
|
+
o4,
|
|
44085
44072
|
L,
|
|
44086
|
-
|
|
44073
|
+
P2,
|
|
44087
44074
|
_,
|
|
44088
44075
|
q,
|
|
44089
44076
|
E,
|
|
44090
|
-
|
|
44091
|
-
|
|
44077
|
+
t4,
|
|
44078
|
+
k2
|
|
44092
44079
|
]);
|
|
44093
44080
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
44094
44081
|
value: y
|
|
44095
44082
|
}, import_react.createElement(InternalContext.Provider, {
|
|
44096
|
-
value: l4
|
|
44097
|
-
}, import_react.createElement(PublicContext.Provider, {
|
|
44098
44083
|
value: c4
|
|
44084
|
+
}, import_react.createElement(PublicContext.Provider, {
|
|
44085
|
+
value: s4
|
|
44099
44086
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
44100
|
-
value:
|
|
44087
|
+
value: r4
|
|
44101
44088
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
44102
44089
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
44103
44090
|
})), import_react.createElement(Accessibility, {
|
|
44104
44091
|
...c,
|
|
44105
44092
|
hiddenTextDescribedById: q
|
|
44106
44093
|
}));
|
|
44107
|
-
function
|
|
44094
|
+
function l4() {
|
|
44108
44095
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
44109
44096
|
return typeof l == "object" ? {
|
|
44110
44097
|
...l,
|
|
@@ -44632,7 +44619,7 @@ ${c}
|
|
|
44632
44619
|
updateMeasurementsFor: I,
|
|
44633
44620
|
...m
|
|
44634
44621
|
}
|
|
44635
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
44622
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: E2, listeners: D2, isDragging: O2, over: k2, setActivatorNodeRef: A2, transform: Z } = useDraggable({
|
|
44636
44623
|
id: f,
|
|
44637
44624
|
data: M,
|
|
44638
44625
|
attributes: {
|
|
@@ -44640,60 +44627,60 @@ ${c}
|
|
|
44640
44627
|
...c
|
|
44641
44628
|
},
|
|
44642
44629
|
disabled: O.draggable
|
|
44643
|
-
}),
|
|
44630
|
+
}), j2 = useCombinedRefs(B, E2), M2 = !!H, N2 = M2 && !b && isValidIndex(v) && isValidIndex(w), P2 = !T && O2, F2 = N2 ? (P2 && N2 ? Z : null) ?? (p ?? E)({
|
|
44644
44631
|
rects: S,
|
|
44645
44632
|
activeNodeRect: G,
|
|
44646
44633
|
activeIndex: v,
|
|
44647
44634
|
overIndex: w,
|
|
44648
44635
|
index: j
|
|
44649
|
-
}) : null,
|
|
44636
|
+
}) : null, I2 = isValidIndex(v) && isValidIndex(w) ? d({
|
|
44650
44637
|
id: f,
|
|
44651
44638
|
items: g,
|
|
44652
44639
|
activeIndex: v,
|
|
44653
44640
|
overIndex: w
|
|
44654
|
-
}) : j,
|
|
44655
|
-
activeId:
|
|
44641
|
+
}) : j, L2 = H == null ? void 0 : H.id, R2 = (0, import_react.useRef)({
|
|
44642
|
+
activeId: L2,
|
|
44656
44643
|
items: g,
|
|
44657
|
-
newIndex:
|
|
44644
|
+
newIndex: I2,
|
|
44658
44645
|
containerId: _
|
|
44659
|
-
}),
|
|
44646
|
+
}), z2 = g !== R2.current.items, B2 = r({
|
|
44660
44647
|
active: H,
|
|
44661
44648
|
containerId: _,
|
|
44662
|
-
isDragging:
|
|
44663
|
-
isSorting:
|
|
44649
|
+
isDragging: O2,
|
|
44650
|
+
isSorting: M2,
|
|
44664
44651
|
id: f,
|
|
44665
44652
|
index: j,
|
|
44666
44653
|
items: g,
|
|
44667
|
-
newIndex:
|
|
44668
|
-
previousItems:
|
|
44669
|
-
previousContainerId:
|
|
44654
|
+
newIndex: R2.current.newIndex,
|
|
44655
|
+
previousItems: R2.current.items,
|
|
44656
|
+
previousContainerId: R2.current.containerId,
|
|
44670
44657
|
transition: h,
|
|
44671
|
-
wasDragging:
|
|
44672
|
-
}),
|
|
44673
|
-
disabled: !
|
|
44658
|
+
wasDragging: R2.current.activeId != null
|
|
44659
|
+
}), V2 = useDerivedTransform({
|
|
44660
|
+
disabled: !B2,
|
|
44674
44661
|
index: j,
|
|
44675
44662
|
node: R,
|
|
44676
44663
|
rect: L
|
|
44677
44664
|
});
|
|
44678
44665
|
return (0, import_react.useEffect)(() => {
|
|
44679
|
-
|
|
44666
|
+
M2 && R2.current.newIndex !== I2 && (R2.current.newIndex = I2), _ !== R2.current.containerId && (R2.current.containerId = _), g !== R2.current.items && (R2.current.items = g);
|
|
44680
44667
|
}, [
|
|
44681
|
-
|
|
44682
|
-
|
|
44668
|
+
M2,
|
|
44669
|
+
I2,
|
|
44683
44670
|
_,
|
|
44684
44671
|
g
|
|
44685
44672
|
]), (0, import_react.useEffect)(() => {
|
|
44686
|
-
if (
|
|
44687
|
-
if (
|
|
44688
|
-
|
|
44673
|
+
if (L2 === R2.current.activeId) return;
|
|
44674
|
+
if (L2 != null && R2.current.activeId == null) {
|
|
44675
|
+
R2.current.activeId = L2;
|
|
44689
44676
|
return;
|
|
44690
44677
|
}
|
|
44691
44678
|
let e2 = setTimeout(() => {
|
|
44692
|
-
|
|
44679
|
+
R2.current.activeId = L2;
|
|
44693
44680
|
}, 50);
|
|
44694
44681
|
return () => clearTimeout(e2);
|
|
44695
44682
|
}, [
|
|
44696
|
-
|
|
44683
|
+
L2
|
|
44697
44684
|
]), {
|
|
44698
44685
|
active: H,
|
|
44699
44686
|
activeIndex: v,
|
|
@@ -44701,25 +44688,25 @@ ${c}
|
|
|
44701
44688
|
data: M,
|
|
44702
44689
|
rect: L,
|
|
44703
44690
|
index: j,
|
|
44704
|
-
newIndex:
|
|
44691
|
+
newIndex: I2,
|
|
44705
44692
|
items: g,
|
|
44706
44693
|
isOver: z,
|
|
44707
|
-
isSorting:
|
|
44708
|
-
isDragging:
|
|
44709
|
-
listeners:
|
|
44694
|
+
isSorting: M2,
|
|
44695
|
+
isDragging: O2,
|
|
44696
|
+
listeners: D2,
|
|
44710
44697
|
node: R,
|
|
44711
44698
|
overIndex: w,
|
|
44712
|
-
over:
|
|
44713
|
-
setNodeRef:
|
|
44714
|
-
setActivatorNodeRef:
|
|
44699
|
+
over: k2,
|
|
44700
|
+
setNodeRef: j2,
|
|
44701
|
+
setActivatorNodeRef: A2,
|
|
44715
44702
|
setDroppableNodeRef: B,
|
|
44716
|
-
setDraggableNodeRef:
|
|
44717
|
-
transform:
|
|
44718
|
-
transition:
|
|
44703
|
+
setDraggableNodeRef: E2,
|
|
44704
|
+
transform: V2 ?? F2,
|
|
44705
|
+
transition: H2()
|
|
44719
44706
|
};
|
|
44720
|
-
function
|
|
44721
|
-
if (
|
|
44722
|
-
if (!(
|
|
44707
|
+
function H2() {
|
|
44708
|
+
if (V2 || z2 && R2.current.newIndex === j) return disabledTransition;
|
|
44709
|
+
if (!(P2 && !isKeyboardEvent(W) || !h) && (M2 || B2)) return CSS$1.Transition.toString({
|
|
44723
44710
|
...h,
|
|
44724
44711
|
property: transitionProperty
|
|
44725
44712
|
});
|
|
@@ -45008,7 +44995,7 @@ ${c}
|
|
|
45008
44995
|
function asCellId(e) {
|
|
45009
44996
|
return typeof e == "string" ? e : null;
|
|
45010
44997
|
}
|
|
45011
|
-
var import_compiler_runtime$10 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
44998
|
+
var import_compiler_runtime$10 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./reveal-component-agH2Be6_.js"));
|
|
45012
44999
|
const SlidesLayoutRenderer = (e) => {
|
|
45013
45000
|
var _a3;
|
|
45014
45001
|
let r = (0, import_compiler_runtime$10.c)(20), { cells: c, mode: l } = e, u = l === "read", d = useAtomValue(numColumnsAtom) > 1, [f, p] = (0, import_react.useState)(null), m = (0, import_react.useRef)(null), h, g;
|
|
@@ -45342,7 +45329,7 @@ ${c}
|
|
|
45342
45329
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
45343
45330
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
45344
45331
|
}, r[2] = z) : z = r[2], (0, import_react.useLayoutEffect)(z), !I && isInternalCellName(b)) return null;
|
|
45345
|
-
let B, H, W, G, q, D2, O2, k2, A2
|
|
45332
|
+
let B, H, W, G, q, E2, D2, O2, k2, A2;
|
|
45346
45333
|
if (r[3] !== S || r[4] !== j || r[5] !== M || r[6] !== I || r[7] !== _ || r[8] !== d || r[9] !== R || r[10] !== E || r[11] !== O || r[12] !== T || r[13] !== L || r[14] !== f || r[15] !== u || r[16] !== y || r[17] !== m || r[18] !== l) {
|
|
45347
45334
|
let e2 = M.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), b2;
|
|
45348
45335
|
r[29] === M ? b2 = r[30] : (b2 = () => M.filter(_temp3$1).map(_temp4$1).join("\n"), r[29] = M, r[30] = b2);
|
|
@@ -45388,11 +45375,11 @@ ${c}
|
|
|
45388
45375
|
})
|
|
45389
45376
|
})
|
|
45390
45377
|
]
|
|
45391
|
-
}), r[31] = z2, r[32] = I, r[33] = d, r[34] = R, r[35] = f, r[36] = u, r[37] = l, r[38] = H) : H = r[38], W = y ? "This console output is stale" : void 0, G = "console-output-area", q = c,
|
|
45392
|
-
let Z2 = y && "marimo-output-stale",
|
|
45393
|
-
r[39] !== j || r[40] !== Z2 || r[41] !==
|
|
45378
|
+
}), r[31] = z2, r[32] = I, r[33] = d, r[34] = R, r[35] = f, r[36] = u, r[37] = l, r[38] = H) : H = r[38], W = y ? "This console output is stale" : void 0, G = "console-output-area", q = c, E2 = L, D2 = 0;
|
|
45379
|
+
let Z2 = y && "marimo-output-stale", j22 = I ? "p-5" : "p-3";
|
|
45380
|
+
r[39] !== j || r[40] !== Z2 || r[41] !== j22 ? (O2 = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", Z2, j22, j), r[39] = j, r[40] = Z2, r[41] = j22, r[42] = O2) : O2 = r[42], r[43] === d ? k2 = r[44] : (k2 = d ? {
|
|
45394
45381
|
maxHeight: "none"
|
|
45395
|
-
} : void 0, r[43] = d, r[44] =
|
|
45382
|
+
} : void 0, r[43] = d, r[44] = k2), A2 = e2.map((e3, r2) => {
|
|
45396
45383
|
if (e3.channel === "pdb") return null;
|
|
45397
45384
|
if (e3.channel === "stdin") {
|
|
45398
45385
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -45420,36 +45407,36 @@ ${c}
|
|
|
45420
45407
|
wrapText: l
|
|
45421
45408
|
})
|
|
45422
45409
|
}, r2);
|
|
45423
|
-
}), r[3] = S, r[4] = j, r[5] = M, r[6] = I, r[7] = _, r[8] = d, r[9] = R, r[10] = E, r[11] = O, r[12] = T, r[13] = L, r[14] = f, r[15] = u, r[16] = y, r[17] = m, r[18] = l, r[19] = B, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
45424
|
-
} else B = r[19], H = r[20], W = r[21], G = r[22], q = r[23],
|
|
45410
|
+
}), r[3] = S, r[4] = j, r[5] = M, r[6] = I, r[7] = _, r[8] = d, r[9] = R, r[10] = E, r[11] = O, r[12] = T, r[13] = L, r[14] = f, r[15] = u, r[16] = y, r[17] = m, r[18] = l, r[19] = B, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = E2, r[25] = D2, r[26] = O2, r[27] = k2, r[28] = A2;
|
|
45411
|
+
} else B = r[19], H = r[20], W = r[21], G = r[22], q = r[23], E2 = r[24], D2 = r[25], O2 = r[26], k2 = r[27], A2 = r[28];
|
|
45425
45412
|
let Z;
|
|
45426
45413
|
r[45] !== S || r[46] !== b ? (Z = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
45427
45414
|
value: b,
|
|
45428
45415
|
cellId: S,
|
|
45429
45416
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
45430
45417
|
}), r[45] = S, r[46] = b, r[47] = Z) : Z = r[47];
|
|
45431
|
-
let
|
|
45432
|
-
r[48] !== Z || r[49] !== W || r[50] !== G || r[51] !== q || r[52] !==
|
|
45418
|
+
let j2;
|
|
45419
|
+
r[48] !== Z || r[49] !== W || r[50] !== G || r[51] !== q || r[52] !== E2 || r[53] !== D2 || r[54] !== O2 || r[55] !== k2 || r[56] !== A2 ? (j2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45433
45420
|
title: W,
|
|
45434
45421
|
"data-testid": G,
|
|
45435
45422
|
ref: q,
|
|
45436
|
-
...
|
|
45437
|
-
tabIndex:
|
|
45438
|
-
className:
|
|
45439
|
-
style:
|
|
45423
|
+
...E2,
|
|
45424
|
+
tabIndex: D2,
|
|
45425
|
+
className: O2,
|
|
45426
|
+
style: k2,
|
|
45440
45427
|
children: [
|
|
45441
|
-
|
|
45428
|
+
A2,
|
|
45442
45429
|
Z
|
|
45443
45430
|
]
|
|
45444
|
-
}), r[48] = Z, r[49] = W, r[50] = G, r[51] = q, r[52] =
|
|
45445
|
-
let
|
|
45446
|
-
return r[58] !== B || r[59] !== H || r[60] !==
|
|
45431
|
+
}), r[48] = Z, r[49] = W, r[50] = G, r[51] = q, r[52] = E2, r[53] = D2, r[54] = O2, r[55] = k2, r[56] = A2, r[57] = j2) : j2 = r[57];
|
|
45432
|
+
let M2;
|
|
45433
|
+
return r[58] !== B || r[59] !== H || r[60] !== j2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45447
45434
|
className: B,
|
|
45448
45435
|
children: [
|
|
45449
45436
|
H,
|
|
45450
|
-
|
|
45437
|
+
j2
|
|
45451
45438
|
]
|
|
45452
|
-
}), r[58] = B, r[59] = H, r[60] =
|
|
45439
|
+
}), r[58] = B, r[59] = H, r[60] = j2, r[61] = M2) : M2 = r[61], M2;
|
|
45453
45440
|
}, StdInput = (e) => {
|
|
45454
45441
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
45455
45442
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -45541,7 +45528,7 @@ ${c}
|
|
|
45541
45528
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
45542
45529
|
}
|
|
45543
45530
|
}
|
|
45544
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.3-
|
|
45531
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.3-dev41"), showCodeInRunModeAtom = atom(true);
|
|
45545
45532
|
atom(null);
|
|
45546
45533
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
45547
45534
|
constructor() {
|
|
@@ -45719,8 +45706,8 @@ ${c}
|
|
|
45719
45706
|
}), r[27] = T, r[28] = u, r[29] = b, r[30] = B) : B = r[30];
|
|
45720
45707
|
let H;
|
|
45721
45708
|
r[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = (0, import_jsx_runtime.jsx)(FloatingOutline, {}), r[31] = H) : H = r[31];
|
|
45722
|
-
let
|
|
45723
|
-
return r[32] !== l || r[33] !== d || r[34] !== B || r[35] !== z ? (
|
|
45709
|
+
let W;
|
|
45710
|
+
return r[32] !== l || r[33] !== d || r[34] !== B || r[35] !== z ? (W = (0, import_jsx_runtime.jsxs)(VerticalLayoutWrapper, {
|
|
45724
45711
|
invisible: d,
|
|
45725
45712
|
appConfig: l,
|
|
45726
45713
|
children: [
|
|
@@ -45728,7 +45715,7 @@ ${c}
|
|
|
45728
45715
|
B,
|
|
45729
45716
|
H
|
|
45730
45717
|
]
|
|
45731
|
-
}), r[32] = l, r[33] = d, r[34] = B, r[35] = z, r[36] =
|
|
45718
|
+
}), r[32] = l, r[33] = d, r[34] = B, r[35] = z, r[36] = W) : W = r[36], W;
|
|
45732
45719
|
}, ActionButtons = (e) => {
|
|
45733
45720
|
let r = (0, import_compiler_runtime$3.c)(26), { canShowCode: c, showCode: l, onToggleShowCode: u } = e, { readCode: d } = useRequestClient(), f = _temp3, m = _temp4, h;
|
|
45734
45721
|
r[0] === d ? h = r[1] : (h = async () => {
|
|
@@ -45919,23 +45906,23 @@ ${c}
|
|
|
45919
45906
|
if ((h || _ || m || W) && !G) return null;
|
|
45920
45907
|
let q;
|
|
45921
45908
|
r[42] !== d || r[43] !== T ? (q = cellDomProps(d, T), r[42] = d, r[43] = T, r[44] = q) : q = r[44];
|
|
45922
|
-
let
|
|
45923
|
-
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !==
|
|
45924
|
-
allowExpand:
|
|
45909
|
+
let E2 = w === "edit", D2;
|
|
45910
|
+
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !== E2 ? (D2 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
45911
|
+
allowExpand: E2,
|
|
45925
45912
|
output: c,
|
|
45926
45913
|
className: CSSClasses.outputArea,
|
|
45927
45914
|
cellId: d,
|
|
45928
45915
|
stale: I,
|
|
45929
45916
|
loading: R
|
|
45930
|
-
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] =
|
|
45931
|
-
let
|
|
45932
|
-
return r[51] !== H || r[52] !== q || r[53] !==
|
|
45917
|
+
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] = E2, r[50] = D2) : D2 = r[50];
|
|
45918
|
+
let O2;
|
|
45919
|
+
return r[51] !== H || r[52] !== q || r[53] !== D2 ? (O2 = (0, import_jsx_runtime.jsx)("div", {
|
|
45933
45920
|
tabIndex: -1,
|
|
45934
45921
|
ref: j,
|
|
45935
45922
|
className: H,
|
|
45936
45923
|
...q,
|
|
45937
|
-
children:
|
|
45938
|
-
}), r[51] = H, r[52] = q, r[53] =
|
|
45924
|
+
children: D2
|
|
45925
|
+
}), r[51] = H, r[52] = q, r[53] = D2, r[54] = O2) : O2 = r[54], O2;
|
|
45939
45926
|
});
|
|
45940
45927
|
VerticalCell.displayName = "VerticalCell";
|
|
45941
45928
|
const VerticalLayoutPlugin = {
|