@marimo-team/islands 0.23.3-dev4 → 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-CTt4WX0V.js → chat-ui-DEd_Ndal.js} +82 -82
- package/dist/{html-to-image-BdsDysfl.js → html-to-image-DBosi5GK.js} +2243 -2217
- package/dist/main.js +1104 -1099
- package/dist/{process-output-COL2Pf5I.js → process-output-k-4WHpxz.js} +1 -1
- package/dist/{reveal-component-Cd5Y35Ny.js → reveal-component-agH2Be6_.js} +2 -2
- package/dist/{slide-BEerfanN.js → slide-CoAyRjHI.js} +693 -574
- package/package.json +2 -2
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +84 -2
- package/src/components/editor/file-tree/file-explorer.tsx +142 -203
- package/src/components/editor/file-tree/file-name-input.tsx +41 -0
- package/src/components/editor/file-tree/file-operations.tsx +266 -0
- package/src/components/editor/file-tree/renderers.tsx +1 -1
- package/src/components/editor/file-tree/requesting-tree.tsx +68 -49
- package/src/components/editor/output/JsonOutput.tsx +157 -4
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +80 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +147 -2
- package/src/components/home/state.ts +13 -1
- package/src/components/pages/home-page.tsx +116 -10
- package/src/core/islands/__tests__/bridge.test.ts +116 -5
- package/src/core/islands/bridge.ts +5 -1
- package/src/core/network/requests-network.ts +0 -3
- 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 +84 -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/__test__/trusted-url.test.ts +130 -18
- package/src/plugins/core/sanitize.ts +11 -5
- package/src/plugins/core/trusted-url.ts +32 -10
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +29 -1
- package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +34 -0
- package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +35 -2
- package/src/utils/__tests__/path.test.ts +20 -0
- package/src/utils/pathUtils.test.ts +141 -1
- package/src/utils/pathUtils.ts +46 -0
- package/src/utils/paths.ts +9 -1
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
|
},
|
|
@@ -9363,10 +9363,13 @@ Defaulting to \`null\`.`;
|
|
|
9363
9363
|
return r === -1 ? null : e.slice(r);
|
|
9364
9364
|
}
|
|
9365
9365
|
function isTrustedVirtualFileUrl(e) {
|
|
9366
|
-
return typeof e != "string" || e.length === 0 ? false : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || isSafeDataUrl(e)
|
|
9366
|
+
return typeof e != "string" || e.length === 0 ? false : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || isSafeDataUrl(e));
|
|
9367
|
+
}
|
|
9368
|
+
function hasNotebookTrustedDataUrlContext() {
|
|
9369
|
+
return store.get(hasRunAnyCellAtom) || hasTrustedExportContext();
|
|
9367
9370
|
}
|
|
9368
9371
|
function isSafeDataUrl(e) {
|
|
9369
|
-
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,");
|
|
9372
|
+
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? hasNotebookTrustedDataUrlContext() : false;
|
|
9370
9373
|
}
|
|
9371
9374
|
const experimental = {
|
|
9372
9375
|
invoke: async () => {
|
|
@@ -10174,7 +10177,7 @@ Defaulting to \`null\`.`;
|
|
|
10174
10177
|
h,
|
|
10175
10178
|
f,
|
|
10176
10179
|
p
|
|
10177
|
-
]), 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), [
|
|
10178
10181
|
g,
|
|
10179
10182
|
d
|
|
10180
10183
|
]);
|
|
@@ -10217,12 +10220,12 @@ Defaulting to \`null\`.`;
|
|
|
10217
10220
|
}));
|
|
10218
10221
|
},
|
|
10219
10222
|
focusNextPage() {
|
|
10220
|
-
let e2 = O.add(
|
|
10221
|
-
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));
|
|
10222
10225
|
},
|
|
10223
10226
|
focusPreviousPage() {
|
|
10224
|
-
let e2 = O.subtract(
|
|
10225
|
-
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));
|
|
10226
10229
|
},
|
|
10227
10230
|
focusSectionStart() {
|
|
10228
10231
|
d.days ? B(O) : d.weeks ? B($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(T, l)) : (d.months || d.years) && B($14e0f24ef4ac5c92$export$a5a3b454ada2268e(T));
|
|
@@ -10365,7 +10368,7 @@ Defaulting to \`null\`.`;
|
|
|
10365
10368
|
v,
|
|
10366
10369
|
p,
|
|
10367
10370
|
m
|
|
10368
|
-
]),
|
|
10371
|
+
]), E2 = e.isInvalid || e.validationState === "invalid" || q, D2 = E2 ? "invalid" : null;
|
|
10369
10372
|
return {
|
|
10370
10373
|
...j,
|
|
10371
10374
|
value: g,
|
|
@@ -10373,8 +10376,8 @@ Defaulting to \`null\`.`;
|
|
|
10373
10376
|
anchorDate: v,
|
|
10374
10377
|
setAnchorDate: R,
|
|
10375
10378
|
highlightedRange: z,
|
|
10376
|
-
validationState:
|
|
10377
|
-
isValueInvalid:
|
|
10379
|
+
validationState: D2,
|
|
10380
|
+
isValueInvalid: E2,
|
|
10378
10381
|
selectFocusedDate() {
|
|
10379
10382
|
B(j.focusedDate);
|
|
10380
10383
|
},
|
|
@@ -11595,9 +11598,9 @@ Defaulting to \`null\`.`;
|
|
|
11595
11598
|
e.maxGranularity,
|
|
11596
11599
|
_,
|
|
11597
11600
|
S
|
|
11598
|
-
]), [G, q] = (0, import_react.useState)(O), [
|
|
11599
|
-
(O !== G || S !==
|
|
11600
|
-
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) => {
|
|
11601
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);
|
|
11602
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);
|
|
11603
11606
|
else {
|
|
@@ -11618,7 +11621,7 @@ Defaulting to \`null\`.`;
|
|
|
11618
11621
|
y,
|
|
11619
11622
|
O,
|
|
11620
11623
|
H
|
|
11621
|
-
]),
|
|
11624
|
+
]), j2 = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Z, j, z, B, b, r, _), [
|
|
11622
11625
|
Z,
|
|
11623
11626
|
z,
|
|
11624
11627
|
B,
|
|
@@ -11626,57 +11629,57 @@ Defaulting to \`null\`.`;
|
|
|
11626
11629
|
b,
|
|
11627
11630
|
r,
|
|
11628
11631
|
_
|
|
11629
|
-
]),
|
|
11630
|
-
|
|
11631
|
-
},
|
|
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), [
|
|
11632
11635
|
w,
|
|
11633
11636
|
p,
|
|
11634
11637
|
m,
|
|
11635
11638
|
h,
|
|
11636
11639
|
L
|
|
11637
|
-
]),
|
|
11640
|
+
]), P2 = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11638
11641
|
...e,
|
|
11639
11642
|
value: w,
|
|
11640
|
-
builtinValidation:
|
|
11641
|
-
}),
|
|
11643
|
+
builtinValidation: N2
|
|
11644
|
+
}), F2 = P2.displayValidation.isInvalid, I2 = e.validationState || (F2 ? "invalid" : null);
|
|
11642
11645
|
return {
|
|
11643
|
-
...
|
|
11646
|
+
...P2,
|
|
11644
11647
|
value: O,
|
|
11645
11648
|
defaultValue: e.defaultValue ?? E,
|
|
11646
11649
|
dateValue: Z,
|
|
11647
11650
|
calendar: b,
|
|
11648
|
-
setValue:
|
|
11649
|
-
segments:
|
|
11651
|
+
setValue: A2,
|
|
11652
|
+
segments: j2,
|
|
11650
11653
|
dateFormatter: z,
|
|
11651
|
-
validationState:
|
|
11652
|
-
isInvalid:
|
|
11654
|
+
validationState: I2,
|
|
11655
|
+
isInvalid: F2,
|
|
11653
11656
|
granularity: _,
|
|
11654
11657
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11655
11658
|
isDisabled: u,
|
|
11656
11659
|
isReadOnly: d,
|
|
11657
11660
|
isRequired: f,
|
|
11658
11661
|
increment(e2) {
|
|
11659
|
-
|
|
11662
|
+
M2(e2, 1);
|
|
11660
11663
|
},
|
|
11661
11664
|
decrement(e2) {
|
|
11662
|
-
|
|
11665
|
+
M2(e2, -1);
|
|
11663
11666
|
},
|
|
11664
11667
|
incrementPage(e2) {
|
|
11665
|
-
|
|
11668
|
+
M2(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11666
11669
|
},
|
|
11667
11670
|
decrementPage(e2) {
|
|
11668
|
-
|
|
11671
|
+
M2(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11669
11672
|
},
|
|
11670
11673
|
incrementToMax(e2) {
|
|
11671
11674
|
let r2 = e2 === "hour" && S === "h12" ? 11 : j.getSegmentLimits(e2).maxValue;
|
|
11672
|
-
|
|
11675
|
+
A2(j.set(e2, r2, H));
|
|
11673
11676
|
},
|
|
11674
11677
|
decrementToMin(e2) {
|
|
11675
11678
|
let r2 = e2 === "hour" && S === "h12" ? 12 : j.getSegmentLimits(e2).minValue;
|
|
11676
|
-
|
|
11679
|
+
A2(j.set(e2, r2, H));
|
|
11677
11680
|
},
|
|
11678
11681
|
setSegment(e2, r2) {
|
|
11679
|
-
|
|
11682
|
+
A2(j.set(e2, r2, H));
|
|
11680
11683
|
},
|
|
11681
11684
|
confirmPlaceholder() {
|
|
11682
11685
|
if (!(e.isDisabled || e.isReadOnly) && j.isComplete(W)) {
|
|
@@ -11686,7 +11689,7 @@ Defaulting to \`null\`.`;
|
|
|
11686
11689
|
},
|
|
11687
11690
|
clearSegment(e2) {
|
|
11688
11691
|
let r2 = j;
|
|
11689
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)),
|
|
11692
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)), A2(r2);
|
|
11690
11693
|
},
|
|
11691
11694
|
formatValue(e2) {
|
|
11692
11695
|
return O ? new $fb18d541ea1ad717$export$ad991b66133851cf(r, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, L)).format(Z) : "";
|
|
@@ -13868,7 +13871,7 @@ Defaulting to \`null\`.`;
|
|
|
13868
13871
|
};
|
|
13869
13872
|
}
|
|
13870
13873
|
};
|
|
13871
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
13874
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-DEd_Ndal.js").then((e) => ({
|
|
13872
13875
|
default: e.Chatbot
|
|
13873
13876
|
}))), messageSchema = array(object({
|
|
13874
13877
|
id: string(),
|
|
@@ -14978,7 +14981,7 @@ Defaulting to \`null\`.`;
|
|
|
14978
14981
|
let m2 = get(l, e2);
|
|
14979
14982
|
if (m2) {
|
|
14980
14983
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
14981
|
-
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();
|
|
14982
14985
|
}
|
|
14983
14986
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
14984
14987
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -15051,14 +15054,14 @@ Defaulting to \`null\`.`;
|
|
|
15051
15054
|
}, H = () => {
|
|
15052
15055
|
for (let e2 of p.unMount) {
|
|
15053
15056
|
let r2 = get(l, e2);
|
|
15054
|
-
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);
|
|
15055
15058
|
}
|
|
15056
15059
|
p.unMount = /* @__PURE__ */ new Set();
|
|
15057
|
-
}, 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, {
|
|
15058
15061
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
15059
15062
|
[e2]: r2
|
|
15060
15063
|
} : r2
|
|
15061
|
-
}, 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 = {}) => {
|
|
15062
15065
|
let u2 = get(l, e2), f2 = r2;
|
|
15063
15066
|
if (u2) {
|
|
15064
15067
|
let c3 = u2._f;
|
|
@@ -15072,12 +15075,12 @@ Defaulting to \`null\`.`;
|
|
|
15072
15075
|
})));
|
|
15073
15076
|
}
|
|
15074
15077
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && Z(e2);
|
|
15075
|
-
},
|
|
15078
|
+
}, D2 = (e2, r2, c2) => {
|
|
15076
15079
|
for (let u2 in r2) {
|
|
15077
15080
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
15078
|
-
(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);
|
|
15079
15082
|
}
|
|
15080
|
-
},
|
|
15083
|
+
}, O2 = (e2, r2, m2 = {}) => {
|
|
15081
15084
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
15082
15085
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
15083
15086
|
name: e2,
|
|
@@ -15088,7 +15091,7 @@ Defaulting to \`null\`.`;
|
|
|
15088
15091
|
name: e2,
|
|
15089
15092
|
dirtyFields: getDirtyFields(u, d),
|
|
15090
15093
|
isDirty: W(e2, y2)
|
|
15091
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
15094
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? D2(e2, y2, m2) : E2(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
15092
15095
|
...c
|
|
15093
15096
|
}), _.values.next({
|
|
15094
15097
|
name: f.mount ? e2 : void 0,
|
|
@@ -15096,26 +15099,26 @@ Defaulting to \`null\`.`;
|
|
|
15096
15099
|
...d
|
|
15097
15100
|
}
|
|
15098
15101
|
});
|
|
15099
|
-
},
|
|
15102
|
+
}, k2 = async (e2) => {
|
|
15100
15103
|
f.mount = true;
|
|
15101
15104
|
let u2 = e2.target, h2 = u2.name, S2 = true, E3 = get(l, h2), O3 = () => u2.type ? getFieldValue(E3._f) : getEventValue(e2), j3 = (e3) => {
|
|
15102
15105
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
15103
15106
|
};
|
|
15104
15107
|
if (E3) {
|
|
15105
|
-
let u3, f2, M3 = O3(), z3 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT,
|
|
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);
|
|
15106
15109
|
set(d, h2, M3), z3 ? (E3._f.onBlur && E3._f.onBlur(e2), m && m(0)) : E3._f.onChange && E3._f.onChange(e2);
|
|
15107
|
-
let G2 = I(h2, M3, z3, false), q2 = !isEmptyObject(G2) ||
|
|
15110
|
+
let G2 = I(h2, M3, z3, false), q2 = !isEmptyObject(G2) || W3;
|
|
15108
15111
|
if (!z3 && _.values.next({
|
|
15109
15112
|
name: h2,
|
|
15110
15113
|
type: e2.type,
|
|
15111
15114
|
values: {
|
|
15112
15115
|
...d
|
|
15113
15116
|
}
|
|
15114
|
-
}),
|
|
15117
|
+
}), H3) return g.isValid && (r.mode === "onBlur" && z3 ? w() : z3 || w()), q2 && _.state.next({
|
|
15115
15118
|
name: h2,
|
|
15116
|
-
...
|
|
15119
|
+
...W3 ? {} : G2
|
|
15117
15120
|
});
|
|
15118
|
-
if (!z3 &&
|
|
15121
|
+
if (!z3 && W3 && _.state.next({
|
|
15119
15122
|
...c
|
|
15120
15123
|
}), r.resolver) {
|
|
15121
15124
|
let { errors: e3 } = await R([
|
|
@@ -15132,7 +15135,7 @@ Defaulting to \`null\`.`;
|
|
|
15132
15135
|
]), j3(M3), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
15133
15136
|
S2 && (E3._f.deps && Z(E3._f.deps), L(h2, f2, u3, G2));
|
|
15134
15137
|
}
|
|
15135
|
-
},
|
|
15138
|
+
}, A2 = (e2, r2) => {
|
|
15136
15139
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
15137
15140
|
}, Z = async (e2, u2 = {}) => {
|
|
15138
15141
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
@@ -15153,23 +15156,23 @@ Defaulting to \`null\`.`;
|
|
|
15153
15156
|
isValid: d2
|
|
15154
15157
|
} : {},
|
|
15155
15158
|
errors: c.errors
|
|
15156
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
15157
|
-
},
|
|
15159
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, A2, e2 ? m2 : p.mount), f2;
|
|
15160
|
+
}, j2 = (e2) => {
|
|
15158
15161
|
let r2 = {
|
|
15159
15162
|
...f.mount ? d : u
|
|
15160
15163
|
};
|
|
15161
15164
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
15162
|
-
},
|
|
15165
|
+
}, M2 = (e2, r2) => ({
|
|
15163
15166
|
invalid: !!get((r2 || c).errors, e2),
|
|
15164
15167
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
15165
15168
|
error: get((r2 || c).errors, e2),
|
|
15166
15169
|
isValidating: !!get(c.validatingFields, e2),
|
|
15167
15170
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
15168
|
-
}),
|
|
15171
|
+
}), N2 = (e2) => {
|
|
15169
15172
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
15170
15173
|
errors: e2 ? c.errors : {}
|
|
15171
15174
|
});
|
|
15172
|
-
},
|
|
15175
|
+
}, P2 = (e2, r2, u2) => {
|
|
15173
15176
|
let d2 = (get(l, e2, {
|
|
15174
15177
|
_f: {}
|
|
15175
15178
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -15182,9 +15185,9 @@ Defaulting to \`null\`.`;
|
|
|
15182
15185
|
errors: c.errors,
|
|
15183
15186
|
isValid: false
|
|
15184
15187
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
15185
|
-
},
|
|
15188
|
+
}, F2 = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
15186
15189
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
15187
|
-
}) : G(e2, r2, true),
|
|
15190
|
+
}) : G(e2, r2, true), I2 = (e2, f2 = {}) => {
|
|
15188
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);
|
|
15189
15192
|
_.values.next({
|
|
15190
15193
|
values: {
|
|
@@ -15196,9 +15199,9 @@ Defaulting to \`null\`.`;
|
|
|
15196
15199
|
isDirty: W()
|
|
15197
15200
|
} : {}
|
|
15198
15201
|
}), !f2.keepIsValid && w();
|
|
15199
|
-
},
|
|
15202
|
+
}, L2 = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
15200
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));
|
|
15201
|
-
},
|
|
15204
|
+
}, R2 = (e2, c2 = {}) => {
|
|
15202
15205
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
15203
15206
|
return set(l, e2, {
|
|
15204
15207
|
...d2 || {},
|
|
@@ -15212,7 +15215,7 @@ Defaulting to \`null\`.`;
|
|
|
15212
15215
|
mount: true,
|
|
15213
15216
|
...c2
|
|
15214
15217
|
}
|
|
15215
|
-
}), p.mount.add(e2), d2 ?
|
|
15218
|
+
}), p.mount.add(e2), d2 ? L2({
|
|
15216
15219
|
field: d2,
|
|
15217
15220
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
15218
15221
|
name: e2
|
|
@@ -15229,11 +15232,11 @@ Defaulting to \`null\`.`;
|
|
|
15229
15232
|
pattern: getRuleValue(c2.pattern)
|
|
15230
15233
|
} : {},
|
|
15231
15234
|
name: e2,
|
|
15232
|
-
onChange:
|
|
15233
|
-
onBlur:
|
|
15235
|
+
onChange: k2,
|
|
15236
|
+
onBlur: k2,
|
|
15234
15237
|
ref: (m3) => {
|
|
15235
15238
|
if (m3) {
|
|
15236
|
-
|
|
15239
|
+
R2(e2, c2), d2 = get(l, e2);
|
|
15237
15240
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
15238
15241
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
15239
15242
|
set(l, e2, {
|
|
@@ -15259,7 +15262,7 @@ Defaulting to \`null\`.`;
|
|
|
15259
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);
|
|
15260
15263
|
}
|
|
15261
15264
|
};
|
|
15262
|
-
},
|
|
15265
|
+
}, z2 = () => r.shouldFocusError && iterateFieldsByAction(l, A2, p.mount), B2 = (e2) => {
|
|
15263
15266
|
isBoolean(e2) && (_.state.next({
|
|
15264
15267
|
disabled: e2
|
|
15265
15268
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -15268,7 +15271,7 @@ Defaulting to \`null\`.`;
|
|
|
15268
15271
|
r3.disabled = u2._f.disabled || e2;
|
|
15269
15272
|
}));
|
|
15270
15273
|
}, 0, false));
|
|
15271
|
-
},
|
|
15274
|
+
}, V2 = (e2, u2) => async (f2) => {
|
|
15272
15275
|
let m2;
|
|
15273
15276
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
15274
15277
|
let h2 = cloneObject(d);
|
|
@@ -15290,7 +15293,7 @@ Defaulting to \`null\`.`;
|
|
|
15290
15293
|
}
|
|
15291
15294
|
} else u2 && await u2({
|
|
15292
15295
|
...c.errors
|
|
15293
|
-
}, f2),
|
|
15296
|
+
}, f2), z2(), setTimeout(z2);
|
|
15294
15297
|
if (_.state.next({
|
|
15295
15298
|
isSubmitted: true,
|
|
15296
15299
|
isSubmitting: false,
|
|
@@ -15298,11 +15301,11 @@ Defaulting to \`null\`.`;
|
|
|
15298
15301
|
submitCount: c.submitCount + 1,
|
|
15299
15302
|
errors: c.errors
|
|
15300
15303
|
}), m2) throw m2;
|
|
15301
|
-
},
|
|
15302
|
-
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({
|
|
15303
15306
|
...c
|
|
15304
15307
|
}));
|
|
15305
|
-
},
|
|
15308
|
+
}, U2 = (e2, m2 = {}) => {
|
|
15306
15309
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
15307
15310
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
15308
15311
|
if (m2.keepDirtyValues) {
|
|
@@ -15310,7 +15313,7 @@ Defaulting to \`null\`.`;
|
|
|
15310
15313
|
...p.mount,
|
|
15311
15314
|
...Object.keys(getDirtyFields(u, d))
|
|
15312
15315
|
]);
|
|
15313
|
-
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));
|
|
15314
15317
|
} else {
|
|
15315
15318
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
15316
15319
|
let r2 = get(l, e3);
|
|
@@ -15355,25 +15358,25 @@ Defaulting to \`null\`.`;
|
|
|
15355
15358
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
15356
15359
|
isSubmitting: false
|
|
15357
15360
|
});
|
|
15358
|
-
},
|
|
15361
|
+
}, W2 = (e2, r2) => U2(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
15359
15362
|
return {
|
|
15360
15363
|
control: {
|
|
15361
|
-
register:
|
|
15362
|
-
unregister:
|
|
15363
|
-
getFieldState:
|
|
15364
|
-
handleSubmit:
|
|
15365
|
-
setError:
|
|
15364
|
+
register: R2,
|
|
15365
|
+
unregister: I2,
|
|
15366
|
+
getFieldState: M2,
|
|
15367
|
+
handleSubmit: V2,
|
|
15368
|
+
setError: P2,
|
|
15366
15369
|
_executeSchema: R,
|
|
15367
15370
|
_getWatch: G,
|
|
15368
15371
|
_getDirty: W,
|
|
15369
15372
|
_updateValid: w,
|
|
15370
15373
|
_removeUnmounted: H,
|
|
15371
15374
|
_updateFieldArray: E,
|
|
15372
|
-
_updateDisabledField:
|
|
15375
|
+
_updateDisabledField: L2,
|
|
15373
15376
|
_getFieldArray: q,
|
|
15374
|
-
_reset:
|
|
15377
|
+
_reset: U2,
|
|
15375
15378
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
15376
|
-
|
|
15379
|
+
W2(e2, r.resetOptions), _.state.next({
|
|
15377
15380
|
isLoading: false
|
|
15378
15381
|
});
|
|
15379
15382
|
}),
|
|
@@ -15383,7 +15386,7 @@ Defaulting to \`null\`.`;
|
|
|
15383
15386
|
...e2
|
|
15384
15387
|
};
|
|
15385
15388
|
},
|
|
15386
|
-
_disableForm:
|
|
15389
|
+
_disableForm: B2,
|
|
15387
15390
|
_subjects: _,
|
|
15388
15391
|
_proxyFormState: g,
|
|
15389
15392
|
_setErrors: j,
|
|
@@ -15425,16 +15428,16 @@ Defaulting to \`null\`.`;
|
|
|
15425
15428
|
}
|
|
15426
15429
|
},
|
|
15427
15430
|
trigger: Z,
|
|
15428
|
-
register:
|
|
15429
|
-
handleSubmit:
|
|
15430
|
-
watch:
|
|
15431
|
-
setValue:
|
|
15432
|
-
getValues:
|
|
15433
|
-
reset:
|
|
15434
|
-
resetField:
|
|
15435
|
-
clearErrors:
|
|
15436
|
-
unregister:
|
|
15437
|
-
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,
|
|
15438
15441
|
setFocus: (e2, r2 = {}) => {
|
|
15439
15442
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
15440
15443
|
if (u2) {
|
|
@@ -15442,7 +15445,7 @@ Defaulting to \`null\`.`;
|
|
|
15442
15445
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
15443
15446
|
}
|
|
15444
15447
|
},
|
|
15445
|
-
getFieldState:
|
|
15448
|
+
getFieldState: M2
|
|
15446
15449
|
};
|
|
15447
15450
|
}
|
|
15448
15451
|
function useForm(e = {}) {
|
|
@@ -18604,14 +18607,14 @@ ${c}
|
|
|
18604
18607
|
}), B = C({
|
|
18605
18608
|
height: 0,
|
|
18606
18609
|
width: 0
|
|
18607
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
18610
|
+
}), H = U(), W = U(), G = C(0), q = C(null), E2 = C({
|
|
18608
18611
|
column: 0,
|
|
18609
18612
|
row: 0
|
|
18610
|
-
}),
|
|
18611
|
-
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)), () => {
|
|
18612
18615
|
D(Z, false);
|
|
18613
|
-
}), Y(x(ut(b, Z, B, z,
|
|
18614
|
-
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, () => {
|
|
18615
18618
|
D(H, e2);
|
|
18616
18619
|
}), Et(x(h), () => {
|
|
18617
18620
|
D(r, [
|
|
@@ -18619,27 +18622,27 @@ ${c}
|
|
|
18619
18622
|
0
|
|
18620
18623
|
]), D(Z, true);
|
|
18621
18624
|
});
|
|
18622
|
-
}), F(x(
|
|
18623
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
18624
|
-
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);
|
|
18625
18628
|
}), D(m, {
|
|
18626
18629
|
top: e2.scrollTop
|
|
18627
18630
|
})));
|
|
18628
|
-
}), 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]) => ({
|
|
18629
18632
|
gap: c2,
|
|
18630
18633
|
item: r2,
|
|
18631
18634
|
scrollTop: l2,
|
|
18632
18635
|
viewport: e2
|
|
18633
|
-
}))),
|
|
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]) => {
|
|
18634
18637
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
18635
18638
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
18636
18639
|
if (y2 === 0) {
|
|
18637
18640
|
let r3 = Ke(h2, e2);
|
|
18638
18641
|
return zr(En(r3, r3 + Math.max(p2 - 1, 0), f2));
|
|
18639
18642
|
}
|
|
18640
|
-
let S2 = io(b2, y2, g2),
|
|
18641
|
-
m2 ? r2 === 0 && c2 === 0 && p2 > 0 ? (
|
|
18642
|
-
let E3 = En(
|
|
18643
|
+
let S2 = io(b2, y2, g2), w2, T2;
|
|
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);
|
|
18645
|
+
let E3 = En(w2, T2, f2), { bottom: O3, top: j3 } = Bn(d2, l2, u2, E3), M3 = Rn(e2 / S2);
|
|
18643
18646
|
return {
|
|
18644
18647
|
bottom: O3,
|
|
18645
18648
|
itemHeight: v2,
|
|
@@ -18649,23 +18652,23 @@ ${c}
|
|
|
18649
18652
|
offsetTop: j3,
|
|
18650
18653
|
top: j3
|
|
18651
18654
|
};
|
|
18652
|
-
})), 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]) => {
|
|
18653
18656
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
18654
18657
|
return [
|
|
18655
18658
|
d2,
|
|
18656
18659
|
u2
|
|
18657
18660
|
];
|
|
18658
18661
|
}), J(ce)), r);
|
|
18659
|
-
let
|
|
18660
|
-
F(x(h, $(
|
|
18661
|
-
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]) => {
|
|
18662
18665
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
18663
18666
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
18664
|
-
}), 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 }]) => ({
|
|
18665
18668
|
endIndex: e2[e2.length - 1].index,
|
|
18666
18669
|
startIndex: e2[0].index
|
|
18667
18670
|
})), J(An), Gt(0)));
|
|
18668
|
-
F(
|
|
18671
|
+
F(I2, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, E2), k(([e2, r2, c2, l2, u2]) => {
|
|
18669
18672
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
18670
18673
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
18671
18674
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -18674,7 +18677,7 @@ ${c}
|
|
|
18674
18677
|
top: g2
|
|
18675
18678
|
};
|
|
18676
18679
|
})), m);
|
|
18677
|
-
let
|
|
18680
|
+
let L2 = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
18678
18681
|
return F(x(j, k((e2) => ({
|
|
18679
18682
|
height: e2.visibleHeight,
|
|
18680
18683
|
width: e2.visibleWidth
|
|
@@ -18683,13 +18686,13 @@ ${c}
|
|
|
18683
18686
|
data: q,
|
|
18684
18687
|
deviation: G,
|
|
18685
18688
|
footerHeight: u,
|
|
18686
|
-
gap:
|
|
18689
|
+
gap: E2,
|
|
18687
18690
|
headerHeight: d,
|
|
18688
18691
|
increaseViewportBy: e,
|
|
18689
18692
|
initialItemCount: L,
|
|
18690
18693
|
itemDimensions: B,
|
|
18691
18694
|
overscan: c,
|
|
18692
|
-
restoreStateFrom:
|
|
18695
|
+
restoreStateFrom: O2,
|
|
18693
18696
|
scrollBy: f,
|
|
18694
18697
|
scrollContainerState: p,
|
|
18695
18698
|
scrollHeight: W,
|
|
@@ -18705,16 +18708,16 @@ ${c}
|
|
|
18705
18708
|
windowViewportRect: j,
|
|
18706
18709
|
...y,
|
|
18707
18710
|
gridState: R,
|
|
18708
|
-
horizontalDirection:
|
|
18709
|
-
initialTopMostItemIndex:
|
|
18710
|
-
totalListHeight:
|
|
18711
|
+
horizontalDirection: M2,
|
|
18712
|
+
initialTopMostItemIndex: A2,
|
|
18713
|
+
totalListHeight: L2,
|
|
18711
18714
|
...v,
|
|
18712
|
-
endReached:
|
|
18715
|
+
endReached: P2,
|
|
18713
18716
|
propsReady: S,
|
|
18714
|
-
rangeChanged:
|
|
18715
|
-
startReached:
|
|
18716
|
-
stateChanged:
|
|
18717
|
-
stateRestoreInProgress:
|
|
18717
|
+
rangeChanged: I2,
|
|
18718
|
+
startReached: F2,
|
|
18719
|
+
stateChanged: D2,
|
|
18720
|
+
stateRestoreInProgress: k2,
|
|
18718
18721
|
...M
|
|
18719
18722
|
};
|
|
18720
18723
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -18952,20 +18955,20 @@ ${c}
|
|
|
18952
18955
|
defaultProp: G,
|
|
18953
18956
|
onChange: _
|
|
18954
18957
|
}, r[22] = _, r[23] = b, r[24] = G, r[25] = q) : q = r[25];
|
|
18955
|
-
let [
|
|
18956
|
-
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) => {
|
|
18957
18960
|
y == null ? void 0 : y(e2);
|
|
18958
|
-
}, r[26] = y, r[27] =
|
|
18959
|
-
let
|
|
18960
|
-
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 = {
|
|
18961
18964
|
prop: L,
|
|
18962
18965
|
defaultProp: f,
|
|
18963
|
-
onChange:
|
|
18964
|
-
}, r[28] = f, r[29] =
|
|
18965
|
-
let [Z,
|
|
18966
|
-
r[32] === Z ?
|
|
18967
|
-
let
|
|
18968
|
-
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) => {
|
|
18969
18972
|
let r2 = e2;
|
|
18970
18973
|
if (R) if (Array.isArray(Z)) if (Z.includes(r2)) {
|
|
18971
18974
|
let c2 = Z.filter((r3) => r3 !== e2);
|
|
@@ -18978,91 +18981,91 @@ ${c}
|
|
|
18978
18981
|
r2
|
|
18979
18982
|
];
|
|
18980
18983
|
else Z === e2 && (r2 = null);
|
|
18981
|
-
|
|
18982
|
-
}, r[34] = g, r[35] = R, r[36] =
|
|
18983
|
-
let
|
|
18984
|
-
r[40] !== W || r[41] !== m || r[42] !== R || r[43] !== S || r[44] !== Z ? (
|
|
18985
|
-
let
|
|
18986
|
-
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18987
|
-
let I2;
|
|
18988
|
-
r[47] === u ? I2 = r[48] : (I2 = 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] = I2);
|
|
18989
|
-
let R2;
|
|
18990
|
-
r[49] === P2 ? R2 = r[50] : (R2 = P2(), r[49] = P2, r[50] = R2);
|
|
18991
|
-
let z2;
|
|
18992
|
-
r[51] === R2 ? z2 = r[52] : (z2 = (0, import_jsx_runtime.jsx)("span", {
|
|
18993
|
-
className: "truncate flex-1 min-w-0",
|
|
18994
|
-
children: R2
|
|
18995
|
-
}), r[51] = R2, r[52] = z2);
|
|
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;
|
|
18989
|
+
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z2 = cn("relative"), r[46] = z2) : z2 = r[46];
|
|
18996
18990
|
let B2;
|
|
18997
|
-
r[
|
|
18998
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
18999
|
-
}), r[53] = B2) : B2 = r[53];
|
|
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);
|
|
19000
18992
|
let V2;
|
|
19001
|
-
r[
|
|
18993
|
+
r[49] === R2 ? V2 = r[50] : (V2 = R2(), r[49] = R2, r[50] = V2);
|
|
18994
|
+
let H2;
|
|
18995
|
+
r[51] === V2 ? H2 = r[52] : (H2 = (0, import_jsx_runtime.jsx)("span", {
|
|
18996
|
+
className: "truncate flex-1 min-w-0",
|
|
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, {
|
|
19001
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
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, {
|
|
19002
19005
|
asChild: true,
|
|
19003
19006
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
19004
|
-
className:
|
|
19005
|
-
"aria-expanded":
|
|
19007
|
+
className: B2,
|
|
19008
|
+
"aria-expanded": O2,
|
|
19006
19009
|
children: [
|
|
19007
|
-
|
|
19008
|
-
|
|
19010
|
+
H2,
|
|
19011
|
+
U2
|
|
19009
19012
|
]
|
|
19010
19013
|
})
|
|
19011
|
-
}), r[54] =
|
|
19012
|
-
let
|
|
19013
|
-
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, {
|
|
19014
19017
|
placeholder: B,
|
|
19015
19018
|
rootClassName: "px-1 h-8",
|
|
19016
19019
|
autoFocus: true,
|
|
19017
19020
|
value: T,
|
|
19018
19021
|
onValueChange: v
|
|
19019
|
-
}), r[58] = B, r[59] = v, r[60] = T, r[61] =
|
|
19020
|
-
let
|
|
19021
|
-
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, {
|
|
19022
19025
|
children: H
|
|
19023
|
-
}), r[62] = H, r[63] =
|
|
19024
|
-
let
|
|
19025
|
-
r[64] !==
|
|
19026
|
-
isSelected:
|
|
19027
|
-
onSelect:
|
|
19028
|
-
}, r[64] =
|
|
19029
|
-
let
|
|
19030
|
-
r[67] !== c || r[68] !==
|
|
19031
|
-
value:
|
|
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];
|
|
19032
|
+
let J2;
|
|
19033
|
+
r[67] !== c || r[68] !== q2 ? (J2 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
19034
|
+
value: q2,
|
|
19032
19035
|
children: c
|
|
19033
|
-
}), r[67] = c, r[68] =
|
|
19034
|
-
let
|
|
19035
|
-
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, {
|
|
19036
19039
|
className: "max-h-60 py-.5",
|
|
19037
19040
|
children: [
|
|
19038
|
-
|
|
19039
|
-
|
|
19041
|
+
K2,
|
|
19042
|
+
J2
|
|
19040
19043
|
]
|
|
19041
|
-
}), r[70] =
|
|
19042
|
-
let
|
|
19043
|
-
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, {
|
|
19044
19047
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
19045
19048
|
align: "start",
|
|
19046
19049
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
19047
19050
|
filter: h,
|
|
19048
19051
|
shouldFilter: z,
|
|
19049
19052
|
children: [
|
|
19050
|
-
|
|
19051
|
-
|
|
19053
|
+
G2,
|
|
19054
|
+
Y2
|
|
19052
19055
|
]
|
|
19053
19056
|
})
|
|
19054
|
-
}), r[73] = h, r[74] = z, r[75] =
|
|
19055
|
-
let
|
|
19056
|
-
r[78] !==
|
|
19057
|
-
open:
|
|
19058
|
-
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,
|
|
19059
19062
|
children: [
|
|
19060
|
-
|
|
19061
|
-
|
|
19063
|
+
W2,
|
|
19064
|
+
X2
|
|
19062
19065
|
]
|
|
19063
|
-
}), r[78] =
|
|
19064
|
-
let
|
|
19065
|
-
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", {
|
|
19066
19069
|
className: cn("flex flex-col gap-1 items-start", l),
|
|
19067
19070
|
children: Array.isArray(Z) && Z.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
19068
19071
|
variant: "secondary",
|
|
@@ -19070,22 +19073,22 @@ ${c}
|
|
|
19070
19073
|
(m == null ? void 0 : m(e2)) ?? String(e2),
|
|
19071
19074
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
19072
19075
|
onClick: () => {
|
|
19073
|
-
|
|
19076
|
+
F2(e2);
|
|
19074
19077
|
},
|
|
19075
19078
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
19076
19079
|
})
|
|
19077
19080
|
]
|
|
19078
19081
|
}, String(e2)))
|
|
19079
|
-
}), r[83] = W, r[84] = l, r[85] = m, r[86] =
|
|
19080
|
-
let
|
|
19081
|
-
return r[90] !== w || r[91] !==
|
|
19082
|
-
className:
|
|
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", {
|
|
19085
|
+
className: z2,
|
|
19083
19086
|
...w,
|
|
19084
19087
|
children: [
|
|
19085
|
-
|
|
19086
|
-
|
|
19088
|
+
Z2,
|
|
19089
|
+
Q2
|
|
19087
19090
|
]
|
|
19088
|
-
}), r[90] = w, r[91] =
|
|
19091
|
+
}), r[90] = w, r[91] = Z2, r[92] = Q2, r[93] = $2) : $2 = r[93], $2;
|
|
19089
19092
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
19090
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), _;
|
|
19091
19094
|
c[0] === u ? _ = c[1] : (_ = cn("pl-6 m-1 py-1", u), c[0] = u, c[1] = _);
|
|
@@ -22159,53 +22162,53 @@ ${c}
|
|
|
22159
22162
|
className: "text-muted-foreground text-xs",
|
|
22160
22163
|
children: "|"
|
|
22161
22164
|
}), r[24] = q) : q = r[24];
|
|
22162
|
-
let C2;
|
|
22163
|
-
r[25] === E ? C2 = r[26] : (C2 = () => E(PANEL_TYPES.COLUMN_EXPLORER), r[25] = E, r[26] = C2);
|
|
22164
|
-
let w2 = R === PANEL_TYPES.COLUMN_EXPLORER ? activeClassName : inactiveClassName, T2;
|
|
22165
|
-
r[27] === w2 ? T2 = r[28] : (T2 = cn(tabTriggerClassName, w2), r[27] = w2, r[28] = T2);
|
|
22166
22165
|
let E2;
|
|
22167
|
-
r[
|
|
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, {
|
|
22168
22171
|
variant: "text",
|
|
22169
22172
|
size: "xs",
|
|
22170
|
-
onClick:
|
|
22171
|
-
className:
|
|
22173
|
+
onClick: E2,
|
|
22174
|
+
className: O2,
|
|
22172
22175
|
children: "Columns"
|
|
22173
|
-
}), r[29] =
|
|
22174
|
-
let
|
|
22175
|
-
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, {
|
|
22176
22179
|
name: SlotNames.CONTEXT_AWARE_PANEL_HEADER,
|
|
22177
22180
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
22178
22181
|
className: "flex items-center gap-1",
|
|
22179
22182
|
children: [
|
|
22180
22183
|
G,
|
|
22181
22184
|
q,
|
|
22182
|
-
|
|
22185
|
+
k2
|
|
22183
22186
|
]
|
|
22184
22187
|
})
|
|
22185
|
-
}), r[32] =
|
|
22188
|
+
}), r[32] = k2, r[33] = G, r[34] = A2) : A2 = r[34];
|
|
22186
22189
|
let Z;
|
|
22187
22190
|
r[35] === M ? Z = r[36] : (Z = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
22188
22191
|
value: PANEL_TYPES.ROW_VIEWER,
|
|
22189
22192
|
className: "flex-1 overflow-auto",
|
|
22190
22193
|
children: M
|
|
22191
22194
|
}), r[35] = M, r[36] = Z);
|
|
22192
|
-
let
|
|
22193
|
-
r[37] === L ?
|
|
22195
|
+
let j2;
|
|
22196
|
+
r[37] === L ? j2 = r[38] : (j2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
22194
22197
|
value: PANEL_TYPES.COLUMN_EXPLORER,
|
|
22195
22198
|
className: "flex-1 overflow-auto",
|
|
22196
22199
|
children: L
|
|
22197
|
-
}), r[37] = L, r[38] =
|
|
22198
|
-
let
|
|
22199
|
-
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, {
|
|
22200
22203
|
value: R,
|
|
22201
22204
|
onValueChange: z,
|
|
22202
22205
|
className: "flex flex-col min-w-[350px]",
|
|
22203
22206
|
children: [
|
|
22204
|
-
|
|
22207
|
+
A2,
|
|
22205
22208
|
Z,
|
|
22206
|
-
|
|
22209
|
+
j2
|
|
22207
22210
|
]
|
|
22208
|
-
}), 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;
|
|
22209
22212
|
};
|
|
22210
22213
|
var import_compiler_runtime$66 = require_compiler_runtime();
|
|
22211
22214
|
function useEffectSkipFirstRender(e, r) {
|
|
@@ -22930,8 +22933,8 @@ ${c}
|
|
|
22930
22933
|
_.pageSize,
|
|
22931
22934
|
_.pageIndex
|
|
22932
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];
|
|
22933
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
22934
|
-
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) => ({
|
|
22935
22938
|
rows: await loadTableData((await u({
|
|
22936
22939
|
page_number: e2,
|
|
22937
22940
|
page_size: 1,
|
|
@@ -22940,38 +22943,38 @@ ${c}
|
|
|
22940
22943
|
filters: filtersToFilterGroup(w),
|
|
22941
22944
|
max_columns: null
|
|
22942
22945
|
})).data)
|
|
22943
|
-
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] =
|
|
22944
|
-
let
|
|
22945
|
-
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 = () => {
|
|
22946
22949
|
v(_temp4$6);
|
|
22947
|
-
}, r[53] =
|
|
22948
|
-
let
|
|
22949
|
-
r[54] ===
|
|
22950
|
-
|
|
22951
|
-
], r[54] =
|
|
22952
|
-
let
|
|
22953
|
-
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 ? {
|
|
22954
22957
|
data: null,
|
|
22955
22958
|
stats: {},
|
|
22956
22959
|
bin_values: {},
|
|
22957
22960
|
value_counts: {},
|
|
22958
22961
|
show_charts: false
|
|
22959
|
-
} : e.get_column_summaries({}), r[56] = e, r[57] =
|
|
22960
|
-
let
|
|
22961
|
-
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 = [
|
|
22962
22965
|
e.get_column_summaries,
|
|
22963
22966
|
e.showColumnSummaries,
|
|
22964
22967
|
w,
|
|
22965
22968
|
y,
|
|
22966
22969
|
e.totalRows,
|
|
22967
22970
|
e.data
|
|
22968
|
-
], 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] =
|
|
22969
|
-
let { data:
|
|
22970
|
-
if (r[65] ===
|
|
22971
|
-
|
|
22972
|
-
},
|
|
22973
|
-
|
|
22974
|
-
], 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) {
|
|
22975
22978
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
22976
22979
|
return r[68] === c2 ? l2 = r[69] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
22977
22980
|
milliseconds: 200,
|
|
@@ -22980,7 +22983,7 @@ ${c}
|
|
|
22980
22983
|
})
|
|
22981
22984
|
}), r[68] = c2, r[69] = l2), l2;
|
|
22982
22985
|
}
|
|
22983
|
-
let
|
|
22986
|
+
let L2 = null;
|
|
22984
22987
|
if (G) {
|
|
22985
22988
|
Logger.error(G);
|
|
22986
22989
|
let e2;
|
|
@@ -22996,59 +22999,59 @@ ${c}
|
|
|
22996
22999
|
children: G.message || "An unknown error occurred"
|
|
22997
23000
|
})
|
|
22998
23001
|
]
|
|
22999
|
-
}), r[70] = G, r[71] = e2),
|
|
23002
|
+
}), r[70] = G, r[71] = e2), L2 = e2;
|
|
23000
23003
|
}
|
|
23001
|
-
let
|
|
23002
|
-
r[72] === O ?
|
|
23004
|
+
let R2;
|
|
23005
|
+
r[72] === O ? R2 = r[73] : (R2 = () => {
|
|
23003
23006
|
j(!O);
|
|
23004
|
-
}, r[72] = O, r[73] =
|
|
23005
|
-
let
|
|
23006
|
-
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, {
|
|
23007
23010
|
...e,
|
|
23008
|
-
data:
|
|
23009
|
-
rawData:
|
|
23010
|
-
columnSummaries:
|
|
23011
|
+
data: B2,
|
|
23012
|
+
rawData: V2,
|
|
23013
|
+
columnSummaries: N2,
|
|
23011
23014
|
sorting: m,
|
|
23012
23015
|
setSorting: h,
|
|
23013
23016
|
searchQuery: y,
|
|
23014
23017
|
setSearchQuery: b,
|
|
23015
23018
|
filters: w,
|
|
23016
23019
|
setFilters: T,
|
|
23017
|
-
reloading:
|
|
23018
|
-
totalRows:
|
|
23020
|
+
reloading: H2,
|
|
23021
|
+
totalRows: U2,
|
|
23019
23022
|
paginationState: _,
|
|
23020
23023
|
setPaginationState: v,
|
|
23021
|
-
cellStyles:
|
|
23022
|
-
cellHoverTexts:
|
|
23023
|
-
toggleDisplayHeader:
|
|
23024
|
+
cellStyles: W2,
|
|
23025
|
+
cellHoverTexts: G2,
|
|
23026
|
+
toggleDisplayHeader: z2,
|
|
23024
23027
|
isChartBuilderOpen: O,
|
|
23025
|
-
getRow:
|
|
23028
|
+
getRow: O2,
|
|
23026
23029
|
cellId: l,
|
|
23027
23030
|
maxHeight: e.maxHeight
|
|
23028
|
-
}), r[74] = l, r[75] =
|
|
23029
|
-
let
|
|
23030
|
-
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, {
|
|
23031
23034
|
displayHeader: O,
|
|
23032
23035
|
onCloseChartBuilder: () => j(false),
|
|
23033
23036
|
data: (W == null ? void 0 : W.rows) || [],
|
|
23034
23037
|
columns: e.totalColumns,
|
|
23035
23038
|
totalRows: e.totalRows,
|
|
23036
|
-
dataTable:
|
|
23039
|
+
dataTable: q2,
|
|
23037
23040
|
getDataUrl: e.get_data_url,
|
|
23038
23041
|
fieldTypes: e.fieldTypes,
|
|
23039
23042
|
cellId: l
|
|
23040
|
-
}) :
|
|
23041
|
-
let
|
|
23042
|
-
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, {
|
|
23043
23046
|
children: [
|
|
23044
|
-
|
|
23045
|
-
|
|
23047
|
+
L2,
|
|
23048
|
+
J2
|
|
23046
23049
|
]
|
|
23047
|
-
}), r[101] =
|
|
23050
|
+
}), r[101] = L2, r[102] = J2, r[103] = Y2) : Y2 = r[103], Y2;
|
|
23048
23051
|
});
|
|
23049
23052
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
23050
|
-
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:
|
|
23051
|
-
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)(() => {
|
|
23052
23055
|
if (!M || !w || !M.stats) return ColumnChartSpecModel.EMPTY;
|
|
23053
23056
|
let e2 = toFieldTypes(w);
|
|
23054
23057
|
return new ColumnChartSpecModel(M.data || [], e2, M.stats, M.bin_values, M.value_counts, {
|
|
@@ -23057,13 +23060,13 @@ ${c}
|
|
|
23057
23060
|
}, [
|
|
23058
23061
|
w,
|
|
23059
23062
|
M
|
|
23060
|
-
]),
|
|
23063
|
+
]), Q2 = useDeepCompareMemoize(w ?? inferFieldTypes(r)), $2 = (0, import_react.useMemo)(() => u === "all" ? Q2 : Q2.slice(0, u), [
|
|
23061
23064
|
u,
|
|
23062
|
-
|
|
23063
|
-
]),
|
|
23065
|
+
Q2
|
|
23066
|
+
]), e4 = (0, import_react.useMemo)(() => {
|
|
23064
23067
|
let e2 = {};
|
|
23065
23068
|
if (r && r.length > 0) {
|
|
23066
|
-
for (let [c2, l2] of
|
|
23069
|
+
for (let [c2, l2] of $2) if (l2[0] === "number") {
|
|
23067
23070
|
let l3 = 0;
|
|
23068
23071
|
for (let e3 of r) {
|
|
23069
23072
|
let r2 = e3[c2];
|
|
@@ -23078,55 +23081,55 @@ ${c}
|
|
|
23078
23081
|
return e2;
|
|
23079
23082
|
}, [
|
|
23080
23083
|
r,
|
|
23081
|
-
|
|
23082
|
-
]),
|
|
23084
|
+
$2
|
|
23085
|
+
]), t4 = useDeepCompareMemoize(S), n4 = useDeepCompareMemoize(k2), r4 = useDeepCompareMemoize(A2), i4 = useDeepCompareMemoize(Z2), a4 = useDeepCompareMemoize(e4), o4 = $2.length;
|
|
23083
23086
|
w || (b = false);
|
|
23084
|
-
let
|
|
23085
|
-
rowHeaders:
|
|
23087
|
+
let s4 = (0, import_react.useMemo)(() => generateColumns({
|
|
23088
|
+
rowHeaders: t4,
|
|
23086
23089
|
selection: f,
|
|
23087
|
-
chartSpecModel:
|
|
23088
|
-
fieldTypes:
|
|
23089
|
-
textJustifyColumns:
|
|
23090
|
-
wrappedColumns:
|
|
23090
|
+
chartSpecModel: i4,
|
|
23091
|
+
fieldTypes: $2,
|
|
23092
|
+
textJustifyColumns: n4,
|
|
23093
|
+
wrappedColumns: r4,
|
|
23091
23094
|
headerTooltip: Z,
|
|
23092
23095
|
showDataTypes: b,
|
|
23093
|
-
calculateTopKRows:
|
|
23094
|
-
fractionDigitsByColumn:
|
|
23096
|
+
calculateTopKRows: R2,
|
|
23097
|
+
fractionDigitsByColumn: a4
|
|
23095
23098
|
}), [
|
|
23096
23099
|
f,
|
|
23097
23100
|
b,
|
|
23101
|
+
i4,
|
|
23098
23102
|
t4,
|
|
23099
|
-
Q2,
|
|
23100
|
-
X2,
|
|
23101
23103
|
$2,
|
|
23102
|
-
|
|
23104
|
+
n4,
|
|
23105
|
+
r4,
|
|
23103
23106
|
Z,
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
]),
|
|
23107
|
+
R2,
|
|
23108
|
+
a4
|
|
23109
|
+
]), c4 = (0, import_react.useMemo)(() => Object.fromEntries((p || []).map((e2) => [
|
|
23107
23110
|
e2,
|
|
23108
23111
|
true
|
|
23109
23112
|
])), [
|
|
23110
23113
|
p
|
|
23111
|
-
]),
|
|
23114
|
+
]), l4 = useEvent_default((e2) => {
|
|
23112
23115
|
if (f === "single") {
|
|
23113
23116
|
let r2 = Functions.asUpdater(e2)({});
|
|
23114
23117
|
L(Object.keys(r2).slice(0, 1));
|
|
23115
23118
|
}
|
|
23116
23119
|
if (f === "multi") {
|
|
23117
|
-
let r2 = Functions.asUpdater(e2)(
|
|
23120
|
+
let r2 = Functions.asUpdater(e2)(c4);
|
|
23118
23121
|
L(Object.keys(r2));
|
|
23119
23122
|
}
|
|
23120
|
-
}),
|
|
23121
|
-
if (
|
|
23123
|
+
}), u4 = useEvent_default((e2) => {
|
|
23124
|
+
if (G2(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
23122
23125
|
let r2 = getPageIndexForRow(e2, T.pageIndex, T.pageSize);
|
|
23123
23126
|
r2 !== null && O((e3) => ({
|
|
23124
23127
|
...e3,
|
|
23125
23128
|
pageIndex: r2
|
|
23126
23129
|
}));
|
|
23127
|
-
}),
|
|
23128
|
-
f === "single-cell" && L(Functions.asUpdater(e2)(
|
|
23129
|
-
}),
|
|
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();
|
|
23130
23133
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23131
23134
|
children: [
|
|
23132
23135
|
l === "too_many" && T.pageSize === r.length && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
@@ -23137,13 +23140,13 @@ ${c}
|
|
|
23137
23140
|
" rows."
|
|
23138
23141
|
]
|
|
23139
23142
|
}),
|
|
23140
|
-
|
|
23143
|
+
o4 < j2 && o4 > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
23141
23144
|
className: "mb-1 rounded",
|
|
23142
23145
|
children: [
|
|
23143
23146
|
"Result clipped. Showing ",
|
|
23144
|
-
|
|
23147
|
+
o4,
|
|
23145
23148
|
" of ",
|
|
23146
|
-
|
|
23149
|
+
j2,
|
|
23147
23150
|
" columns."
|
|
23148
23151
|
]
|
|
23149
23152
|
}),
|
|
@@ -23151,27 +23154,27 @@ ${c}
|
|
|
23151
23154
|
className: "mb-1 rounded",
|
|
23152
23155
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
23153
23156
|
}),
|
|
23154
|
-
|
|
23157
|
+
q2 && (v || m4) && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
23155
23158
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
23156
|
-
rowIdx:
|
|
23157
|
-
setRowIdx:
|
|
23159
|
+
rowIdx: W2,
|
|
23160
|
+
setRowIdx: u4,
|
|
23158
23161
|
totalRows: l,
|
|
23159
|
-
fieldTypes:
|
|
23160
|
-
getRow:
|
|
23161
|
-
isSelectable:
|
|
23162
|
-
isRowSelected: !!
|
|
23163
|
-
handleRowSelectionChange:
|
|
23164
|
-
previewColumn:
|
|
23165
|
-
totalColumns:
|
|
23166
|
-
tableId:
|
|
23167
|
-
showRowExplorer: v && !
|
|
23168
|
-
showColumnExplorer:
|
|
23169
|
-
activeTab:
|
|
23170
|
-
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
|
|
23171
23174
|
})
|
|
23172
23175
|
}),
|
|
23173
23176
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
23174
|
-
value:
|
|
23177
|
+
value: Z2,
|
|
23175
23178
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
23176
23179
|
label: e,
|
|
23177
23180
|
align: "top",
|
|
@@ -23179,12 +23182,12 @@ ${c}
|
|
|
23179
23182
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
23180
23183
|
data: r,
|
|
23181
23184
|
rawData: c,
|
|
23182
|
-
columns:
|
|
23185
|
+
columns: s4,
|
|
23183
23186
|
className: I,
|
|
23184
|
-
maxHeight:
|
|
23187
|
+
maxHeight: H2,
|
|
23185
23188
|
sorting: R,
|
|
23186
23189
|
totalRows: l,
|
|
23187
|
-
totalColumns:
|
|
23190
|
+
totalColumns: j2,
|
|
23188
23191
|
manualSorting: true,
|
|
23189
23192
|
setSorting: z,
|
|
23190
23193
|
pagination: d,
|
|
@@ -23192,11 +23195,11 @@ ${c}
|
|
|
23192
23195
|
selection: f,
|
|
23193
23196
|
paginationState: T,
|
|
23194
23197
|
setPaginationState: O,
|
|
23195
|
-
rowSelection:
|
|
23196
|
-
cellSelection:
|
|
23197
|
-
cellStyling:
|
|
23198
|
-
hoverTemplate:
|
|
23199
|
-
cellHoverTexts:
|
|
23198
|
+
rowSelection: c4,
|
|
23199
|
+
cellSelection: d4,
|
|
23200
|
+
cellStyling: N2,
|
|
23201
|
+
hoverTemplate: P2,
|
|
23202
|
+
cellHoverTexts: F2,
|
|
23200
23203
|
downloadAs: h ? j : void 0,
|
|
23201
23204
|
enableSearch: B,
|
|
23202
23205
|
searchQuery: H,
|
|
@@ -23204,22 +23207,22 @@ ${c}
|
|
|
23204
23207
|
showFilters: m,
|
|
23205
23208
|
filters: G,
|
|
23206
23209
|
onFiltersChange: q,
|
|
23207
|
-
reloading:
|
|
23208
|
-
onRowSelectionChange:
|
|
23209
|
-
freezeColumnsLeft:
|
|
23210
|
-
freezeColumnsRight:
|
|
23211
|
-
onCellSelectionChange:
|
|
23212
|
-
getRowIds:
|
|
23213
|
-
toggleDisplayHeader:
|
|
23214
|
-
showChartBuilder: y && !
|
|
23215
|
-
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,
|
|
23216
23219
|
showPageSizeSelector: g,
|
|
23217
|
-
showTableExplorer: (v ||
|
|
23218
|
-
togglePanel:
|
|
23219
|
-
isPanelOpen:
|
|
23220
|
-
isAnyPanelOpen:
|
|
23221
|
-
viewedRowIdx:
|
|
23222
|
-
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)
|
|
23223
23226
|
})
|
|
23224
23227
|
})
|
|
23225
23228
|
})
|
|
@@ -25868,29 +25871,29 @@ ${c}
|
|
|
25868
25871
|
], r[2] = b, r[3] = S);
|
|
25869
25872
|
let { data: w, error: T, isPending: O } = useAsyncData(y, S), j;
|
|
25870
25873
|
r[4] === w ? j = r[5] : (j = w || {}, r[4] = w, r[5] = j);
|
|
25871
|
-
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),
|
|
25872
|
-
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) => {
|
|
25873
25876
|
var _a3;
|
|
25874
|
-
d && e2 !== "transform" && ((_a3 =
|
|
25875
|
-
}, r[6] = d, r[7] =
|
|
25876
|
-
let
|
|
25877
|
-
r[8] === G ?
|
|
25878
|
-
|
|
25879
|
-
}, 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);
|
|
25880
25883
|
let Z;
|
|
25881
25884
|
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (Z = () => {
|
|
25882
|
-
let e2 =
|
|
25885
|
+
let e2 = k2.current;
|
|
25883
25886
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
25884
25887
|
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = Z) : Z = r[12];
|
|
25885
|
-
let
|
|
25886
|
-
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 = [
|
|
25887
25890
|
w,
|
|
25888
|
-
|
|
25889
|
-
|
|
25891
|
+
j2,
|
|
25892
|
+
k2,
|
|
25890
25893
|
p
|
|
25891
|
-
], r[13] = w, r[14] = p, r[15] =
|
|
25892
|
-
let
|
|
25893
|
-
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, {
|
|
25894
25897
|
value: "transform",
|
|
25895
25898
|
className: "text-xs py-1",
|
|
25896
25899
|
children: [
|
|
@@ -25899,9 +25902,9 @@ ${c}
|
|
|
25899
25902
|
}),
|
|
25900
25903
|
"Transform"
|
|
25901
25904
|
]
|
|
25902
|
-
}), r[17] =
|
|
25903
|
-
let
|
|
25904
|
-
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, {
|
|
25905
25908
|
value: "python-code",
|
|
25906
25909
|
className: "text-xs py-1",
|
|
25907
25910
|
children: [
|
|
@@ -25910,9 +25913,9 @@ ${c}
|
|
|
25910
25913
|
}),
|
|
25911
25914
|
"Python Code"
|
|
25912
25915
|
]
|
|
25913
|
-
}), r[18] = B, r[19] =
|
|
25914
|
-
let
|
|
25915
|
-
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, {
|
|
25916
25919
|
value: "sql-code",
|
|
25917
25920
|
className: "text-xs py-1",
|
|
25918
25921
|
children: [
|
|
@@ -25921,54 +25924,54 @@ ${c}
|
|
|
25921
25924
|
}),
|
|
25922
25925
|
"SQL Code"
|
|
25923
25926
|
]
|
|
25924
|
-
}), r[20] = H, r[21] =
|
|
25925
|
-
let
|
|
25926
|
-
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", {
|
|
25927
25930
|
className: "grow"
|
|
25928
|
-
}), r[22] =
|
|
25929
|
-
let
|
|
25930
|
-
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, {
|
|
25931
25934
|
className: "h-8",
|
|
25932
25935
|
children: [
|
|
25933
|
-
A2,
|
|
25934
|
-
j2,
|
|
25935
25936
|
N2,
|
|
25936
|
-
P2
|
|
25937
|
+
P2,
|
|
25938
|
+
F2,
|
|
25939
|
+
I2
|
|
25937
25940
|
]
|
|
25938
|
-
}), r[23] =
|
|
25939
|
-
let
|
|
25940
|
-
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, {
|
|
25941
25944
|
size: "small"
|
|
25942
|
-
}), r[26] = O, r[27] =
|
|
25943
|
-
let
|
|
25944
|
-
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", {
|
|
25945
25948
|
className: "flex items-center gap-2",
|
|
25946
25949
|
children: [
|
|
25947
|
-
|
|
25948
|
-
|
|
25950
|
+
L2,
|
|
25951
|
+
R2
|
|
25949
25952
|
]
|
|
25950
|
-
}), r[28] =
|
|
25951
|
-
let
|
|
25952
|
-
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) => {
|
|
25953
25956
|
dequal(e2, f) || (p(e2), q(e2));
|
|
25954
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
25955
|
-
let
|
|
25956
|
-
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, {
|
|
25957
25960
|
value: "transform",
|
|
25958
25961
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25959
25962
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
25960
|
-
ref:
|
|
25963
|
+
ref: E2,
|
|
25961
25964
|
initialValue: G,
|
|
25962
25965
|
columns: c,
|
|
25963
|
-
onChange:
|
|
25966
|
+
onChange: B2,
|
|
25964
25967
|
onInvalidChange: q,
|
|
25965
25968
|
getColumnValues: h,
|
|
25966
25969
|
columnTypesPerStep: z,
|
|
25967
25970
|
lazy: d
|
|
25968
25971
|
})
|
|
25969
|
-
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] =
|
|
25970
|
-
let
|
|
25971
|
-
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, {
|
|
25972
25975
|
value: "python-code",
|
|
25973
25976
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25974
25977
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25977,9 +25980,9 @@ ${c}
|
|
|
25977
25980
|
code: B,
|
|
25978
25981
|
language: "python"
|
|
25979
25982
|
})
|
|
25980
|
-
}), r[41] = B, r[42] =
|
|
25981
|
-
let
|
|
25982
|
-
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, {
|
|
25983
25986
|
value: "sql-code",
|
|
25984
25987
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25985
25988
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25988,35 +25991,35 @@ ${c}
|
|
|
25988
25991
|
code: H,
|
|
25989
25992
|
language: "sql"
|
|
25990
25993
|
})
|
|
25991
|
-
}), r[43] = H, r[44] =
|
|
25992
|
-
let
|
|
25993
|
-
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, {
|
|
25994
25997
|
defaultValue: "transform",
|
|
25995
|
-
onValueChange:
|
|
25998
|
+
onValueChange: O2,
|
|
25996
25999
|
children: [
|
|
25997
|
-
L2,
|
|
25998
26000
|
z2,
|
|
25999
|
-
|
|
26000
|
-
|
|
26001
|
+
V2,
|
|
26002
|
+
H2,
|
|
26003
|
+
U2
|
|
26001
26004
|
]
|
|
26002
|
-
}), r[45] =
|
|
26003
|
-
let
|
|
26004
|
-
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, {
|
|
26005
26008
|
error: T
|
|
26006
|
-
}), r[51] = T, r[52] =
|
|
26007
|
-
let
|
|
26008
|
-
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, {
|
|
26009
26012
|
label: null,
|
|
26010
26013
|
className: "rounded-b border-x border-b",
|
|
26011
|
-
data:
|
|
26014
|
+
data: K2,
|
|
26012
26015
|
hasStableRowId: false,
|
|
26013
|
-
totalRows:
|
|
26014
|
-
totalColumns:
|
|
26016
|
+
totalRows: J2,
|
|
26017
|
+
totalColumns: Y2,
|
|
26015
26018
|
maxColumns: "all",
|
|
26016
26019
|
pageSize: l,
|
|
26017
26020
|
pagination: true,
|
|
26018
26021
|
fieldTypes: R,
|
|
26019
|
-
rowHeaders:
|
|
26022
|
+
rowHeaders: X2,
|
|
26020
26023
|
showDownload: u,
|
|
26021
26024
|
download_as: _,
|
|
26022
26025
|
enableSearch: false,
|
|
@@ -26025,7 +26028,7 @@ ${c}
|
|
|
26025
26028
|
showColumnSummaries: false,
|
|
26026
26029
|
showDataTypes: true,
|
|
26027
26030
|
get_column_summaries: getColumnSummaries,
|
|
26028
|
-
showPageSizeSelector:
|
|
26031
|
+
showPageSizeSelector: Z2,
|
|
26029
26032
|
showColumnExplorer: false,
|
|
26030
26033
|
showRowExplorer: true,
|
|
26031
26034
|
showChartBuilder: false,
|
|
@@ -26034,15 +26037,15 @@ ${c}
|
|
|
26034
26037
|
selection: null,
|
|
26035
26038
|
lazy: false,
|
|
26036
26039
|
host: v
|
|
26037
|
-
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] =
|
|
26038
|
-
let
|
|
26039
|
-
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", {
|
|
26040
26043
|
children: [
|
|
26041
|
-
|
|
26042
|
-
|
|
26043
|
-
|
|
26044
|
+
W2,
|
|
26045
|
+
G2,
|
|
26046
|
+
Q2
|
|
26044
26047
|
]
|
|
26045
|
-
}), r[65] =
|
|
26048
|
+
}), r[65] = W2, r[66] = G2, r[67] = Q2, r[68] = $2) : $2 = r[68], $2;
|
|
26046
26049
|
});
|
|
26047
26050
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
26048
26051
|
function getColumnSummaries() {
|
|
@@ -26230,30 +26233,30 @@ ${c}
|
|
|
26230
26233
|
}, W = [
|
|
26231
26234
|
B
|
|
26232
26235
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
26233
|
-
let G, q,
|
|
26236
|
+
let G, q, E2, D2, O2, A2, Z, M2, N2;
|
|
26234
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) {
|
|
26235
|
-
|
|
26238
|
+
N2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
26236
26239
|
bb0: {
|
|
26237
|
-
|
|
26240
|
+
O2 = (R == null ? void 0 : R.files) ?? [];
|
|
26238
26241
|
let e2;
|
|
26239
26242
|
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$13)), r[31] = c, r[32] = e2);
|
|
26240
26243
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
26241
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];
|
|
26242
|
-
let
|
|
26243
|
-
if (G =
|
|
26245
|
+
let T2 = O2.filter(w);
|
|
26246
|
+
if (G = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
26244
26247
|
let e3;
|
|
26245
26248
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
26246
26249
|
kind: "danger",
|
|
26247
26250
|
children: z.message
|
|
26248
|
-
}), r[36] = z.message, r[37] = e3),
|
|
26251
|
+
}), r[36] = z.message, r[37] = e3), N2 = e3;
|
|
26249
26252
|
break bb0;
|
|
26250
26253
|
}
|
|
26251
26254
|
let E3;
|
|
26252
26255
|
r[38] === u ? E3 = r[39] : (E3 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E3), q = E3.deliminator;
|
|
26253
26256
|
let O3;
|
|
26254
26257
|
r[40] === c ? O3 = r[41] : (O3 = c.map(_temp2$7), r[40] = c, r[41] = O3), Z = O3;
|
|
26255
|
-
let
|
|
26256
|
-
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (
|
|
26258
|
+
let j2;
|
|
26259
|
+
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
26257
26260
|
if (b) return;
|
|
26258
26261
|
if (S(true), e3 === PARENT_DIRECTORY) {
|
|
26259
26262
|
if (v === q) {
|
|
@@ -26272,7 +26275,7 @@ ${c}
|
|
|
26272
26275
|
return;
|
|
26273
26276
|
}
|
|
26274
26277
|
y(e3), S(false);
|
|
26275
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] =
|
|
26278
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], M2 = j2;
|
|
26276
26279
|
let M3;
|
|
26277
26280
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M3 = function(e3) {
|
|
26278
26281
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -26283,8 +26286,8 @@ ${c}
|
|
|
26283
26286
|
is_directory: l2
|
|
26284
26287
|
};
|
|
26285
26288
|
}, r[49] = M3) : M3 = r[49];
|
|
26286
|
-
let I3 = M3,
|
|
26287
|
-
r[50] !== f || r[51] !== m2 || r[52] !== l || r[53] !== c ? (
|
|
26289
|
+
let I3 = M3, B3;
|
|
26290
|
+
r[50] !== f || r[51] !== m2 || r[52] !== l || r[53] !== c ? (B3 = function(e3) {
|
|
26288
26291
|
let { path: r2, name: u2, isDirectory: d2 } = e3, p = I3({
|
|
26289
26292
|
path: r2,
|
|
26290
26293
|
name: u2,
|
|
@@ -26296,13 +26299,13 @@ ${c}
|
|
|
26296
26299
|
] : [
|
|
26297
26300
|
p
|
|
26298
26301
|
]);
|
|
26299
|
-
}, r[50] = f, r[51] = m2, r[52] = l, r[53] = c, r[54] =
|
|
26300
|
-
let
|
|
26302
|
+
}, r[50] = f, r[51] = m2, r[52] = l, r[53] = c, r[54] = B3) : B3 = r[54];
|
|
26303
|
+
let H3 = B3, W2;
|
|
26301
26304
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
26302
26305
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
26303
|
-
}, 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() {
|
|
26304
26307
|
let e3 = [];
|
|
26305
|
-
for (let r2 of
|
|
26308
|
+
for (let r2 of O2) {
|
|
26306
26309
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
26307
26310
|
let c2 = I3({
|
|
26308
26311
|
path: r2.path,
|
|
@@ -26315,35 +26318,35 @@ ${c}
|
|
|
26315
26318
|
...c,
|
|
26316
26319
|
...e3
|
|
26317
26320
|
]);
|
|
26318
|
-
},
|
|
26319
|
-
let
|
|
26320
|
-
r[59] ===
|
|
26321
|
-
let
|
|
26322
|
-
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, {
|
|
26323
26326
|
className: "w-[50px] pl-4",
|
|
26324
26327
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
26325
26328
|
size: 16
|
|
26326
26329
|
})
|
|
26327
|
-
}),
|
|
26330
|
+
}), I22 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
26328
26331
|
children: PARENT_DIRECTORY
|
|
26329
|
-
}), r[61] =
|
|
26330
|
-
let
|
|
26331
|
-
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, {
|
|
26332
26335
|
className: "hover:bg-accent select-none",
|
|
26333
|
-
onClick:
|
|
26336
|
+
onClick: P22,
|
|
26334
26337
|
children: [
|
|
26335
|
-
|
|
26336
|
-
|
|
26338
|
+
F22,
|
|
26339
|
+
I22
|
|
26337
26340
|
]
|
|
26338
|
-
}, "Parent directory"), r[63] =
|
|
26339
|
-
for (let e3 of
|
|
26341
|
+
}, "Parent directory"), r[63] = P22, r[64] = L22), D2.push(L22);
|
|
26342
|
+
for (let e3 of O2) {
|
|
26340
26343
|
let r2 = e3.path;
|
|
26341
26344
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
26342
26345
|
let c2 = e3.is_directory ? (e4) => {
|
|
26343
26346
|
let { path: r3 } = e4;
|
|
26344
|
-
return
|
|
26345
|
-
} :
|
|
26346
|
-
|
|
26347
|
+
return M2(r3);
|
|
26348
|
+
} : H3, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
26349
|
+
D2.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
26347
26350
|
className: cn("hover:bg-accent group select-none", {
|
|
26348
26351
|
"bg-primary/25 hover:bg-primary/35": u2
|
|
26349
26352
|
}),
|
|
@@ -26359,7 +26362,7 @@ ${c}
|
|
|
26359
26362
|
isSelected: u2,
|
|
26360
26363
|
canSelect: g2 && e3.is_directory || _2 && !e3.is_directory,
|
|
26361
26364
|
Icon: l2,
|
|
26362
|
-
onSelect: () =>
|
|
26365
|
+
onSelect: () => H3({
|
|
26363
26366
|
path: r2,
|
|
26364
26367
|
name: e3.name,
|
|
26365
26368
|
isDirectory: e3.is_directory
|
|
@@ -26373,21 +26376,21 @@ ${c}
|
|
|
26373
26376
|
}, e3.id));
|
|
26374
26377
|
}
|
|
26375
26378
|
}
|
|
26376
|
-
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] =
|
|
26377
|
-
} else G = r[22], q = r[23],
|
|
26378
|
-
if (
|
|
26379
|
-
let
|
|
26380
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
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];
|
|
26381
|
+
if (N2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return N2;
|
|
26382
|
+
let P2, F2, I2, L2, R2, z2, B2;
|
|
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) {
|
|
26381
26384
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
26382
26385
|
path: v,
|
|
26383
26386
|
delimiter: q,
|
|
26384
26387
|
initialPath: u,
|
|
26385
26388
|
restrictNavigation: h
|
|
26386
26389
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
26387
|
-
r[92] === z ?
|
|
26390
|
+
r[92] === z ? B2 = r[93] : (B2 = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
26388
26391
|
kind: "danger",
|
|
26389
26392
|
children: z.message
|
|
26390
|
-
}), r[92] = z, r[93] =
|
|
26393
|
+
}), r[92] = z, r[93] = B2), P2 = (() => {
|
|
26391
26394
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
26392
26395
|
children: renderHTML({
|
|
26393
26396
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -26404,7 +26407,7 @@ ${c}
|
|
|
26404
26407
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
26405
26408
|
size: "xs",
|
|
26406
26409
|
variant: "link",
|
|
26407
|
-
onClick: G ?
|
|
26410
|
+
onClick: G ? E2 : A2,
|
|
26408
26411
|
children: G ? "Deselect all" : "Select all"
|
|
26409
26412
|
})
|
|
26410
26413
|
})
|
|
@@ -26412,18 +26415,18 @@ ${c}
|
|
|
26412
26415
|
}) : e3;
|
|
26413
26416
|
})();
|
|
26414
26417
|
let _2;
|
|
26415
|
-
r[94] ===
|
|
26418
|
+
r[94] === M2 ? _2 = r[95] : (_2 = (e3) => M2(e3.target.value), r[94] = M2, r[95] = _2);
|
|
26416
26419
|
let y2 = e2.map(_temp3$5);
|
|
26417
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
26420
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (F2 = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
26418
26421
|
className: "mt-2 w-full",
|
|
26419
26422
|
placeholder: v,
|
|
26420
26423
|
value: v,
|
|
26421
26424
|
onChange: _2,
|
|
26422
26425
|
children: y2
|
|
26423
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
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", {
|
|
26424
26427
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
26425
|
-
children: R.is_truncated ? `Showing ${
|
|
26426
|
-
}), 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];
|
|
26427
26430
|
let b2;
|
|
26428
26431
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
26429
26432
|
height: "14rem"
|
|
@@ -26442,12 +26445,12 @@ ${c}
|
|
|
26442
26445
|
]
|
|
26443
26446
|
}), r[104] = T, r[105] = S2);
|
|
26444
26447
|
let E3;
|
|
26445
|
-
r[106] ===
|
|
26448
|
+
r[106] === D2 ? E3 = r[107] : (E3 = (0, import_jsx_runtime.jsx)(Table, {
|
|
26446
26449
|
className: "cursor-pointer table-fixed",
|
|
26447
26450
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
26448
|
-
children:
|
|
26451
|
+
children: D2
|
|
26449
26452
|
})
|
|
26450
|
-
}), 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", {
|
|
26451
26454
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
26452
26455
|
style: b2,
|
|
26453
26456
|
"aria-busy": B,
|
|
@@ -26456,7 +26459,7 @@ ${c}
|
|
|
26456
26459
|
S2,
|
|
26457
26460
|
E3
|
|
26458
26461
|
]
|
|
26459
|
-
}), r[108] = B, r[109] = S2, r[110] = E3, r[111] =
|
|
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, {
|
|
26460
26463
|
children: [
|
|
26461
26464
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
26462
26465
|
className: "flex items-center gap-2",
|
|
@@ -26490,24 +26493,24 @@ ${c}
|
|
|
26490
26493
|
})
|
|
26491
26494
|
})
|
|
26492
26495
|
]
|
|
26493
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
26494
|
-
} else
|
|
26495
|
-
let
|
|
26496
|
-
r[112] !==
|
|
26497
|
-
className:
|
|
26498
|
-
children:
|
|
26499
|
-
}), r[112] =
|
|
26500
|
-
let
|
|
26501
|
-
return r[115] !==
|
|
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;
|
|
26497
|
+
} else P2 = r[85], F2 = r[86], I2 = r[87], L2 = r[88], R2 = r[89], z2 = r[90], B2 = r[91];
|
|
26498
|
+
let V2;
|
|
26499
|
+
r[112] !== R2 || r[113] !== z2 ? (V2 = (0, import_jsx_runtime.jsx)("div", {
|
|
26500
|
+
className: R2,
|
|
26501
|
+
children: z2
|
|
26502
|
+
}), r[112] = R2, r[113] = z2, r[114] = V2) : V2 = r[114];
|
|
26503
|
+
let H2;
|
|
26504
|
+
return r[115] !== P2 || r[116] !== F2 || r[117] !== I2 || r[118] !== L2 || r[119] !== V2 || r[120] !== B2 ? (H2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26502
26505
|
children: [
|
|
26506
|
+
B2,
|
|
26507
|
+
P2,
|
|
26508
|
+
F2,
|
|
26503
26509
|
I2,
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
M2,
|
|
26507
|
-
N2,
|
|
26508
|
-
L2
|
|
26510
|
+
L2,
|
|
26511
|
+
V2
|
|
26509
26512
|
]
|
|
26510
|
-
}), r[115] =
|
|
26513
|
+
}), r[115] = P2, r[116] = F2, r[117] = I2, r[118] = L2, r[119] = V2, r[120] = B2, r[121] = H2) : H2 = r[121], H2;
|
|
26511
26514
|
};
|
|
26512
26515
|
function _temp$13(e) {
|
|
26513
26516
|
return e.path;
|
|
@@ -31897,55 +31900,55 @@ ${c}
|
|
|
31897
31900
|
return typeof S == "function" ? S : noop$2;
|
|
31898
31901
|
}, [
|
|
31899
31902
|
S
|
|
31900
|
-
]), q = (0, import_react.useRef)(null),
|
|
31901
|
-
!
|
|
31902
|
-
|
|
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({
|
|
31903
31906
|
type: "closeDialog"
|
|
31904
31907
|
}), G()));
|
|
31905
31908
|
}, 300);
|
|
31906
31909
|
};
|
|
31907
31910
|
(0, import_react.useEffect)(function() {
|
|
31908
|
-
return window.addEventListener("focus",
|
|
31909
|
-
window.removeEventListener("focus",
|
|
31911
|
+
return window.addEventListener("focus", M2, false), function() {
|
|
31912
|
+
window.removeEventListener("focus", M2, false);
|
|
31910
31913
|
};
|
|
31911
31914
|
}, [
|
|
31912
|
-
|
|
31915
|
+
E2,
|
|
31913
31916
|
Z,
|
|
31914
31917
|
G,
|
|
31915
|
-
|
|
31918
|
+
j2
|
|
31916
31919
|
]);
|
|
31917
|
-
var
|
|
31918
|
-
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 = []);
|
|
31919
31922
|
};
|
|
31920
31923
|
(0, import_react.useEffect)(function() {
|
|
31921
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
31922
|
-
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));
|
|
31923
31926
|
};
|
|
31924
31927
|
}, [
|
|
31925
31928
|
q,
|
|
31926
31929
|
O
|
|
31927
31930
|
]), (0, import_react.useEffect)(function() {
|
|
31928
31931
|
var e2 = function(e3) {
|
|
31929
|
-
|
|
31932
|
+
P2.current = [].concat(_toConsumableArray(P2.current), [
|
|
31930
31933
|
e3.target
|
|
31931
|
-
]), isEvtWithFiles(e3) &&
|
|
31934
|
+
]), isEvtWithFiles(e3) && k2({
|
|
31932
31935
|
isDragGlobal: true,
|
|
31933
31936
|
type: "setDragGlobal"
|
|
31934
31937
|
});
|
|
31935
31938
|
}, r2 = function(e3) {
|
|
31936
|
-
|
|
31939
|
+
P2.current = P2.current.filter(function(r3) {
|
|
31937
31940
|
return r3 !== e3.target && r3 !== null;
|
|
31938
|
-
}), !(
|
|
31941
|
+
}), !(P2.current.length > 0) && k2({
|
|
31939
31942
|
isDragGlobal: false,
|
|
31940
31943
|
type: "setDragGlobal"
|
|
31941
31944
|
});
|
|
31942
31945
|
}, c2 = function() {
|
|
31943
|
-
|
|
31946
|
+
P2.current = [], k2({
|
|
31944
31947
|
isDragGlobal: false,
|
|
31945
31948
|
type: "setDragGlobal"
|
|
31946
31949
|
});
|
|
31947
31950
|
}, l2 = function() {
|
|
31948
|
-
|
|
31951
|
+
P2.current = [], k2({
|
|
31949
31952
|
isDragGlobal: false,
|
|
31950
31953
|
type: "setDragGlobal"
|
|
31951
31954
|
});
|
|
@@ -31963,12 +31966,12 @@ ${c}
|
|
|
31963
31966
|
E,
|
|
31964
31967
|
l
|
|
31965
31968
|
]);
|
|
31966
|
-
var
|
|
31969
|
+
var I2 = (0, import_react.useCallback)(function(e2) {
|
|
31967
31970
|
R ? R(e2) : console.error(e2);
|
|
31968
31971
|
}, [
|
|
31969
31972
|
R
|
|
31970
|
-
]),
|
|
31971
|
-
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), [
|
|
31972
31975
|
e2.target
|
|
31973
31976
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
31974
31977
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -31981,7 +31984,7 @@ ${c}
|
|
|
31981
31984
|
maxFiles: m,
|
|
31982
31985
|
validator: z
|
|
31983
31986
|
});
|
|
31984
|
-
|
|
31987
|
+
k2({
|
|
31985
31988
|
isDragAccept: l2,
|
|
31986
31989
|
isDragReject: c2 > 0 && !l2,
|
|
31987
31990
|
isDragActive: true,
|
|
@@ -31989,12 +31992,12 @@ ${c}
|
|
|
31989
31992
|
}), h && h(e2);
|
|
31990
31993
|
}
|
|
31991
31994
|
}).catch(function(e3) {
|
|
31992
|
-
return
|
|
31995
|
+
return I2(e3);
|
|
31993
31996
|
});
|
|
31994
31997
|
}, [
|
|
31995
31998
|
u,
|
|
31996
31999
|
h,
|
|
31997
|
-
|
|
32000
|
+
I2,
|
|
31998
32001
|
L,
|
|
31999
32002
|
B,
|
|
32000
32003
|
f,
|
|
@@ -32002,8 +32005,8 @@ ${c}
|
|
|
32002
32005
|
p,
|
|
32003
32006
|
m,
|
|
32004
32007
|
z
|
|
32005
|
-
]),
|
|
32006
|
-
e2.preventDefault(), e2.persist(),
|
|
32008
|
+
]), R2 = (0, import_react.useCallback)(function(e2) {
|
|
32009
|
+
e2.preventDefault(), e2.persist(), X2(e2);
|
|
32007
32010
|
var r2 = isEvtWithFiles(e2);
|
|
32008
32011
|
if (r2 && e2.dataTransfer) try {
|
|
32009
32012
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -32013,12 +32016,12 @@ ${c}
|
|
|
32013
32016
|
}, [
|
|
32014
32017
|
_,
|
|
32015
32018
|
L
|
|
32016
|
-
]),
|
|
32017
|
-
e2.preventDefault(), e2.persist(),
|
|
32018
|
-
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) {
|
|
32019
32022
|
return q.current && q.current.contains(e3);
|
|
32020
32023
|
}), c2 = r2.indexOf(e2.target);
|
|
32021
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
32024
|
+
c2 !== -1 && r2.splice(c2, 1), N2.current = r2, !(r2.length > 0) && (k2({
|
|
32022
32025
|
type: "setDraggedFiles",
|
|
32023
32026
|
isDragActive: false,
|
|
32024
32027
|
isDragAccept: false,
|
|
@@ -32028,7 +32031,7 @@ ${c}
|
|
|
32028
32031
|
q,
|
|
32029
32032
|
g,
|
|
32030
32033
|
L
|
|
32031
|
-
]),
|
|
32034
|
+
]), B2 = (0, import_react.useCallback)(function(e2, r2) {
|
|
32032
32035
|
var c2 = [], l2 = [];
|
|
32033
32036
|
e2.forEach(function(e3) {
|
|
32034
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;
|
|
@@ -32052,14 +32055,14 @@ ${c}
|
|
|
32052
32055
|
TOO_MANY_FILES_REJECTION
|
|
32053
32056
|
]
|
|
32054
32057
|
});
|
|
32055
|
-
}), c2.splice(0)),
|
|
32058
|
+
}), c2.splice(0)), k2({
|
|
32056
32059
|
acceptedFiles: c2,
|
|
32057
32060
|
fileRejections: l2,
|
|
32058
32061
|
isDragReject: l2.length > 0,
|
|
32059
32062
|
type: "setFiles"
|
|
32060
32063
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
32061
32064
|
}, [
|
|
32062
|
-
|
|
32065
|
+
k2,
|
|
32063
32066
|
p,
|
|
32064
32067
|
B,
|
|
32065
32068
|
f,
|
|
@@ -32069,22 +32072,22 @@ ${c}
|
|
|
32069
32072
|
y,
|
|
32070
32073
|
b,
|
|
32071
32074
|
z
|
|
32072
|
-
]),
|
|
32073
|
-
e2.preventDefault(), e2.persist(),
|
|
32074
|
-
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);
|
|
32075
32078
|
}).catch(function(e3) {
|
|
32076
|
-
return
|
|
32077
|
-
}),
|
|
32079
|
+
return I2(e3);
|
|
32080
|
+
}), k2({
|
|
32078
32081
|
type: "reset"
|
|
32079
32082
|
});
|
|
32080
32083
|
}, [
|
|
32081
32084
|
u,
|
|
32082
|
-
|
|
32083
|
-
|
|
32085
|
+
B2,
|
|
32086
|
+
I2,
|
|
32084
32087
|
L
|
|
32085
|
-
]),
|
|
32086
|
-
if (
|
|
32087
|
-
|
|
32088
|
+
]), H2 = (0, import_react.useCallback)(function() {
|
|
32089
|
+
if (j2.current) {
|
|
32090
|
+
k2({
|
|
32088
32091
|
type: "openDialog"
|
|
32089
32092
|
}), W();
|
|
32090
32093
|
var e2 = {
|
|
@@ -32094,66 +32097,66 @@ ${c}
|
|
|
32094
32097
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
32095
32098
|
return u(e3);
|
|
32096
32099
|
}).then(function(e3) {
|
|
32097
|
-
|
|
32100
|
+
B2(e3, null), k2({
|
|
32098
32101
|
type: "closeDialog"
|
|
32099
32102
|
});
|
|
32100
32103
|
}).catch(function(e3) {
|
|
32101
|
-
isAbort(e3) ? (G(e3),
|
|
32104
|
+
isAbort(e3) ? (G(e3), k2({
|
|
32102
32105
|
type: "closeDialog"
|
|
32103
|
-
})) : 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);
|
|
32104
32107
|
});
|
|
32105
32108
|
return;
|
|
32106
32109
|
}
|
|
32107
|
-
|
|
32110
|
+
E2.current && (k2({
|
|
32108
32111
|
type: "openDialog"
|
|
32109
|
-
}), W(),
|
|
32112
|
+
}), W(), E2.current.value = null, E2.current.click());
|
|
32110
32113
|
}, [
|
|
32111
|
-
|
|
32114
|
+
k2,
|
|
32112
32115
|
W,
|
|
32113
32116
|
G,
|
|
32114
32117
|
T,
|
|
32115
|
-
|
|
32116
|
-
|
|
32118
|
+
B2,
|
|
32119
|
+
I2,
|
|
32117
32120
|
H,
|
|
32118
32121
|
p
|
|
32119
|
-
]),
|
|
32120
|
-
!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());
|
|
32121
32124
|
}, [
|
|
32122
32125
|
q,
|
|
32123
|
-
|
|
32124
|
-
]),
|
|
32125
|
-
|
|
32126
|
+
H2
|
|
32127
|
+
]), W2 = (0, import_react.useCallback)(function() {
|
|
32128
|
+
k2({
|
|
32126
32129
|
type: "focus"
|
|
32127
32130
|
});
|
|
32128
|
-
}, []),
|
|
32129
|
-
|
|
32131
|
+
}, []), G2 = (0, import_react.useCallback)(function() {
|
|
32132
|
+
k2({
|
|
32130
32133
|
type: "blur"
|
|
32131
32134
|
});
|
|
32132
|
-
}, []),
|
|
32133
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
32135
|
+
}, []), K2 = (0, import_react.useCallback)(function() {
|
|
32136
|
+
j || (isIeOrEdge() ? setTimeout(H2, 0) : H2());
|
|
32134
32137
|
}, [
|
|
32135
32138
|
j,
|
|
32136
|
-
|
|
32137
|
-
]),
|
|
32139
|
+
H2
|
|
32140
|
+
]), q2 = function(e2) {
|
|
32138
32141
|
return l ? null : e2;
|
|
32139
|
-
},
|
|
32140
|
-
return M ? null :
|
|
32141
|
-
},
|
|
32142
|
-
return I ? null :
|
|
32143
|
-
},
|
|
32142
|
+
}, J2 = function(e2) {
|
|
32143
|
+
return M ? null : q2(e2);
|
|
32144
|
+
}, Y2 = function(e2) {
|
|
32145
|
+
return I ? null : q2(e2);
|
|
32146
|
+
}, X2 = function(e2) {
|
|
32144
32147
|
L && e2.stopPropagation();
|
|
32145
|
-
},
|
|
32148
|
+
}, Z2 = (0, import_react.useMemo)(function() {
|
|
32146
32149
|
return function() {
|
|
32147
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);
|
|
32148
32151
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
32149
|
-
onKeyDown:
|
|
32150
|
-
onFocus:
|
|
32151
|
-
onBlur:
|
|
32152
|
-
onClick:
|
|
32153
|
-
onDragEnter:
|
|
32154
|
-
onDragOver:
|
|
32155
|
-
onDragLeave:
|
|
32156
|
-
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)),
|
|
32157
32160
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
32158
32161
|
}, c2, q), !l && !M ? {
|
|
32159
32162
|
tabIndex: 0
|
|
@@ -32161,20 +32164,20 @@ ${c}
|
|
|
32161
32164
|
};
|
|
32162
32165
|
}, [
|
|
32163
32166
|
q,
|
|
32164
|
-
B2,
|
|
32165
|
-
V2,
|
|
32166
|
-
H2,
|
|
32167
32167
|
U2,
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32168
|
+
W2,
|
|
32169
|
+
G2,
|
|
32170
|
+
K2,
|
|
32171
|
+
L2,
|
|
32171
32172
|
R2,
|
|
32173
|
+
z2,
|
|
32174
|
+
V2,
|
|
32172
32175
|
M,
|
|
32173
32176
|
I,
|
|
32174
32177
|
l
|
|
32175
|
-
]),
|
|
32178
|
+
]), Q2 = (0, import_react.useCallback)(function(e2) {
|
|
32176
32179
|
e2.stopPropagation();
|
|
32177
|
-
}, []),
|
|
32180
|
+
}, []), $2 = (0, import_react.useMemo)(function() {
|
|
32178
32181
|
return function() {
|
|
32179
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);
|
|
32180
32183
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -32193,25 +32196,25 @@ ${c}
|
|
|
32193
32196
|
width: "1px",
|
|
32194
32197
|
whiteSpace: "nowrap"
|
|
32195
32198
|
},
|
|
32196
|
-
onChange:
|
|
32197
|
-
onClick:
|
|
32199
|
+
onChange: q2(composeEventHandlers(l2, V2)),
|
|
32200
|
+
onClick: q2(composeEventHandlers(u2, Q2)),
|
|
32198
32201
|
tabIndex: -1
|
|
32199
|
-
}, c2,
|
|
32202
|
+
}, c2, E2)), d2);
|
|
32200
32203
|
};
|
|
32201
32204
|
}, [
|
|
32202
|
-
|
|
32205
|
+
E2,
|
|
32203
32206
|
c,
|
|
32204
32207
|
p,
|
|
32205
|
-
|
|
32208
|
+
V2,
|
|
32206
32209
|
l
|
|
32207
32210
|
]);
|
|
32208
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
32209
|
-
isFocused:
|
|
32210
|
-
getRootProps:
|
|
32211
|
-
getInputProps:
|
|
32211
|
+
return _objectSpread$7(_objectSpread$7({}, O2), {}, {
|
|
32212
|
+
isFocused: A2 && !l,
|
|
32213
|
+
getRootProps: Z2,
|
|
32214
|
+
getInputProps: $2,
|
|
32212
32215
|
rootRef: q,
|
|
32213
|
-
inputRef:
|
|
32214
|
-
open:
|
|
32216
|
+
inputRef: E2,
|
|
32217
|
+
open: q2(H2)
|
|
32215
32218
|
});
|
|
32216
32219
|
}
|
|
32217
32220
|
function reducer$2(e, r) {
|
|
@@ -32379,8 +32382,8 @@ ${c}
|
|
|
32379
32382
|
..._2,
|
|
32380
32383
|
type: "file"
|
|
32381
32384
|
}), r[25] = _2, r[26] = S2);
|
|
32382
|
-
let
|
|
32383
|
-
r[27] !== u || r[28] !== M || r[29] !== j || r[30] !== m.length ? (
|
|
32385
|
+
let w2;
|
|
32386
|
+
r[27] !== u || r[28] !== M || r[29] !== j || r[30] !== m.length ? (w2 = M ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32384
32387
|
children: [
|
|
32385
32388
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
32386
32389
|
content: j,
|
|
@@ -32408,16 +32411,16 @@ ${c}
|
|
|
32408
32411
|
children: "Click to clear files."
|
|
32409
32412
|
})
|
|
32410
32413
|
]
|
|
32411
|
-
}) : null, r[27] = u, r[28] = M, r[29] = j, r[30] = m.length, r[31] =
|
|
32412
|
-
let
|
|
32413
|
-
return r[32] !== S2 || r[33] !==
|
|
32414
|
+
}) : null, r[27] = u, r[28] = M, r[29] = j, r[30] = m.length, r[31] = w2) : w2 = r[31];
|
|
32415
|
+
let T2;
|
|
32416
|
+
return r[32] !== S2 || r[33] !== w2 || r[34] !== g2 ? (T2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32414
32417
|
className: "flex flex-row items-center justify-start gap-2",
|
|
32415
32418
|
children: [
|
|
32416
32419
|
g2,
|
|
32417
32420
|
S2,
|
|
32418
|
-
|
|
32421
|
+
w2
|
|
32419
32422
|
]
|
|
32420
|
-
}), r[32] = S2, r[33] =
|
|
32423
|
+
}), r[32] = S2, r[33] = w2, r[34] = g2, r[35] = T2) : T2 = r[35], T2;
|
|
32421
32424
|
}
|
|
32422
32425
|
let I = e.label ?? `Drag and drop ${f ? "files" : "a file"} here, or click to open file browser`, L = !S && "border-input/60 border-dashed", R = S && "border-solid", z;
|
|
32423
32426
|
r[36] !== L || r[37] !== R ? (z = cn("hover:text-primary", "mt-3 mb-2 w-full flex flex-col items-center justify-center ", "px-6 py-6 sm:px-8 sm:py-8 md:py-10 md:px-16", "border rounded-sm", "text-sm text-muted-foreground", "hover:cursor-pointer", "active:shadow-xs-solid", "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent", L, R), r[36] = L, r[37] = R, r[38] = z) : z = r[38];
|
|
@@ -32443,47 +32446,47 @@ ${c}
|
|
|
32443
32446
|
html: I
|
|
32444
32447
|
})
|
|
32445
32448
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
32446
|
-
let q = w && "text-primary",
|
|
32447
|
-
r[48] !== q || r[49] !==
|
|
32448
|
-
let T2;
|
|
32449
|
-
r[51] === w2 ? T2 = r[52] : (T2 = (0, import_jsx_runtime.jsx)(Upload, {
|
|
32450
|
-
strokeWidth: 1.4,
|
|
32451
|
-
className: w2
|
|
32452
|
-
}), r[51] = w2, r[52] = T2);
|
|
32453
|
-
let E2 = w && "text-primary", D2 = T && "text-destructive", Z;
|
|
32454
|
-
r[53] !== E2 || r[54] !== D2 ? (Z = cn(E2, D2), r[53] = E2, r[54] = D2, r[55] = Z) : Z = r[55];
|
|
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];
|
|
32455
32451
|
let O2;
|
|
32456
|
-
r[
|
|
32452
|
+
r[51] === D2 ? O2 = r[52] : (O2 = (0, import_jsx_runtime.jsx)(Upload, {
|
|
32453
|
+
strokeWidth: 1.4,
|
|
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, {
|
|
32457
32460
|
strokeWidth: 1.4,
|
|
32458
32461
|
className: Z
|
|
32459
|
-
}), r[56] = Z, r[57] =
|
|
32460
|
-
let
|
|
32461
|
-
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", {
|
|
32462
32465
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
32463
32466
|
children: [
|
|
32464
|
-
|
|
32465
|
-
|
|
32467
|
+
O2,
|
|
32468
|
+
j2
|
|
32466
32469
|
]
|
|
32467
|
-
}), r[58] =
|
|
32468
|
-
let
|
|
32469
|
-
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", {
|
|
32470
32473
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
32471
32474
|
children: [
|
|
32472
32475
|
G,
|
|
32473
|
-
|
|
32476
|
+
M2
|
|
32474
32477
|
]
|
|
32475
|
-
}), r[61] = G, r[62] =
|
|
32476
|
-
let
|
|
32477
|
-
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", {
|
|
32478
32481
|
className: z,
|
|
32479
32482
|
...B,
|
|
32480
32483
|
children: [
|
|
32481
32484
|
W,
|
|
32482
|
-
|
|
32485
|
+
N2
|
|
32483
32486
|
]
|
|
32484
|
-
}), r[64] = W, r[65] =
|
|
32485
|
-
let
|
|
32486
|
-
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", {
|
|
32487
32490
|
className: "flex flex-row gap-1",
|
|
32488
32491
|
children: [
|
|
32489
32492
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -32519,17 +32522,17 @@ ${c}
|
|
|
32519
32522
|
})
|
|
32520
32523
|
})
|
|
32521
32524
|
]
|
|
32522
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
32523
|
-
let
|
|
32524
|
-
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", {
|
|
32525
32528
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
32526
32529
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
32527
32530
|
children: [
|
|
32528
|
-
|
|
32529
|
-
|
|
32531
|
+
P2,
|
|
32532
|
+
F2
|
|
32530
32533
|
]
|
|
32531
32534
|
})
|
|
32532
|
-
}), r[75] =
|
|
32535
|
+
}), r[75] = P2, r[76] = F2, r[77] = I2) : I2 = r[77], I2;
|
|
32533
32536
|
};
|
|
32534
32537
|
function _temp$12(e) {
|
|
32535
32538
|
Logger.error(e), toast({
|
|
@@ -32616,84 +32619,84 @@ ${c}
|
|
|
32616
32619
|
}
|
|
32617
32620
|
R(null), d(u), y && B();
|
|
32618
32621
|
}, r[1] = y, r[2] = u, r[3] = d, r[4] = O, r[5] = E, r[6] = H) : H = r[6];
|
|
32619
|
-
let
|
|
32620
|
-
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", {
|
|
32621
32624
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
32622
|
-
"bg-(--amber-1) border-(--amber-7)":
|
|
32623
|
-
}), r[7] = m, r[8] =
|
|
32624
|
-
let
|
|
32625
|
-
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) => {
|
|
32626
32629
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
32627
|
-
}, r[10] = u, r[11] = d, r[12] =
|
|
32628
|
-
let
|
|
32629
|
-
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", {
|
|
32630
32633
|
className: "text-center",
|
|
32631
32634
|
children: renderHTML({
|
|
32632
32635
|
html: f
|
|
32633
32636
|
})
|
|
32634
|
-
}), r[13] = f, r[14] =
|
|
32635
|
-
let
|
|
32636
|
-
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, {
|
|
32637
32640
|
kind: "danger",
|
|
32638
32641
|
className: "rounded",
|
|
32639
32642
|
children: L ?? "Invalid input"
|
|
32640
|
-
}), r[15] = L, r[16] =
|
|
32641
|
-
let
|
|
32642
|
-
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", {
|
|
32643
32646
|
children: c
|
|
32644
|
-
}), r[17] = c, r[18] =
|
|
32645
|
-
let
|
|
32646
|
-
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, {
|
|
32647
32650
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
32648
32651
|
variant: "text",
|
|
32649
32652
|
onClick: (e2) => {
|
|
32650
32653
|
e2.preventDefault(), B();
|
|
32651
32654
|
},
|
|
32652
32655
|
children: S
|
|
32653
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
32654
|
-
let
|
|
32655
|
-
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, {
|
|
32656
32659
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
32657
|
-
}), r[23] = h, r[24] =
|
|
32658
|
-
let
|
|
32659
|
-
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, {
|
|
32660
32663
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
32661
32664
|
variant: I,
|
|
32662
|
-
disabled:
|
|
32665
|
+
disabled: A2,
|
|
32663
32666
|
type: "submit",
|
|
32664
32667
|
children: [
|
|
32665
|
-
|
|
32668
|
+
Z,
|
|
32666
32669
|
g
|
|
32667
32670
|
]
|
|
32668
|
-
}), r[25] = g, r[26] =
|
|
32669
|
-
let
|
|
32670
|
-
r[30] !== _ || r[31] !==
|
|
32671
|
-
let
|
|
32672
|
-
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", {
|
|
32673
32676
|
className: "flex justify-end gap-2 font-code",
|
|
32674
32677
|
children: [
|
|
32675
|
-
|
|
32676
|
-
|
|
32678
|
+
k2,
|
|
32679
|
+
M2
|
|
32677
32680
|
]
|
|
32678
|
-
}), r[33] =
|
|
32679
|
-
let
|
|
32680
|
-
r[36] !==
|
|
32681
|
-
className:
|
|
32682
|
-
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,
|
|
32683
32686
|
children: [
|
|
32684
|
-
w2,
|
|
32685
|
-
T2,
|
|
32686
32687
|
E2,
|
|
32687
|
-
|
|
32688
|
+
D2,
|
|
32689
|
+
O2,
|
|
32690
|
+
N2
|
|
32688
32691
|
]
|
|
32689
|
-
}), r[36] =
|
|
32690
|
-
let
|
|
32691
|
-
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", {
|
|
32692
32695
|
className: "contents",
|
|
32693
32696
|
ref: j,
|
|
32694
32697
|
onSubmit: H,
|
|
32695
|
-
children:
|
|
32696
|
-
}), r[43] =
|
|
32698
|
+
children: P2
|
|
32699
|
+
}), r[43] = P2, r[44] = H, r[45] = F2) : F2 = r[45], F2;
|
|
32697
32700
|
};
|
|
32698
32701
|
var Form = (e) => {
|
|
32699
32702
|
let r = (0, import_compiler_runtime$43.c)(24), c, l, u, d, f, p;
|
|
@@ -34453,8 +34456,8 @@ ${c}
|
|
|
34453
34456
|
points: extractSunburstPoints(e2.points)
|
|
34454
34457
|
}));
|
|
34455
34458
|
}, r[29] = u, r[30] = G);
|
|
34456
|
-
let q = useEvent_default(G),
|
|
34457
|
-
r[31] === u ?
|
|
34459
|
+
let q = useEvent_default(G), E2;
|
|
34460
|
+
r[31] === u ? E2 = r[32] : (E2 = (e2) => {
|
|
34458
34461
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
34459
34462
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
34460
34463
|
u((e3) => ({
|
|
@@ -34465,9 +34468,9 @@ ${c}
|
|
|
34465
34468
|
points: r2,
|
|
34466
34469
|
indices: c2
|
|
34467
34470
|
}));
|
|
34468
|
-
}, r[31] = u, r[32] =
|
|
34469
|
-
let
|
|
34470
|
-
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) => {
|
|
34471
34474
|
e2 && u((r2) => ({
|
|
34472
34475
|
...r2,
|
|
34473
34476
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -34476,9 +34479,9 @@ ${c}
|
|
|
34476
34479
|
range: e2.range,
|
|
34477
34480
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
34478
34481
|
}));
|
|
34479
|
-
}, r[33] = u, r[34] =
|
|
34480
|
-
let
|
|
34481
|
-
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, {
|
|
34482
34485
|
...m,
|
|
34483
34486
|
layout: h,
|
|
34484
34487
|
onRelayout: R,
|
|
@@ -34486,13 +34489,13 @@ ${c}
|
|
|
34486
34489
|
onTreemapClick: W,
|
|
34487
34490
|
onSunburstClick: q,
|
|
34488
34491
|
config: L,
|
|
34489
|
-
onClick:
|
|
34490
|
-
onSelected:
|
|
34492
|
+
onClick: D2,
|
|
34493
|
+
onSelected: k2,
|
|
34491
34494
|
className: "w-full",
|
|
34492
34495
|
useResizeHandler: true,
|
|
34493
|
-
frames:
|
|
34496
|
+
frames: A2,
|
|
34494
34497
|
onError: Z
|
|
34495
|
-
}), 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;
|
|
34496
34499
|
});
|
|
34497
34500
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
34498
34501
|
function _temp$9(e) {
|
|
@@ -34604,13 +34607,13 @@ ${c}
|
|
|
34604
34607
|
let c3 = r2.width;
|
|
34605
34608
|
p = (e2.clientX - _.current) / c3 * f2;
|
|
34606
34609
|
}
|
|
34607
|
-
let [m2, h2] = b.current, y2 = h2 - m2, S2 = u.steps,
|
|
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;
|
|
34608
34611
|
w.current = [
|
|
34609
34612
|
j3,
|
|
34610
|
-
|
|
34613
|
+
M3
|
|
34611
34614
|
], (_a3 = u.onValueChange) == null ? void 0 : _a3.call(u, [
|
|
34612
34615
|
j3,
|
|
34613
|
-
|
|
34616
|
+
M3
|
|
34614
34617
|
]);
|
|
34615
34618
|
}, c[11] = u, c[12] = R);
|
|
34616
34619
|
let z = R, B;
|
|
@@ -34624,8 +34627,8 @@ ${c}
|
|
|
34624
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];
|
|
34625
34628
|
let q;
|
|
34626
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];
|
|
34627
|
-
let
|
|
34628
|
-
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, {
|
|
34629
34632
|
ref: E,
|
|
34630
34633
|
"data-testid": "track",
|
|
34631
34634
|
className: G,
|
|
@@ -34636,9 +34639,9 @@ ${c}
|
|
|
34636
34639
|
onPointerMove: z,
|
|
34637
34640
|
onPointerUp: H
|
|
34638
34641
|
})
|
|
34639
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
34640
|
-
let
|
|
34641
|
-
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, {
|
|
34642
34645
|
asChild: true,
|
|
34643
34646
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
34644
34647
|
"data-testid": "thumb",
|
|
@@ -34648,28 +34651,28 @@ ${c}
|
|
|
34648
34651
|
onMouseEnter: m.setTrue,
|
|
34649
34652
|
onMouseLeave: m.setFalse
|
|
34650
34653
|
})
|
|
34651
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
34652
|
-
let
|
|
34653
|
-
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, {
|
|
34654
34657
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
34655
34658
|
locale: h
|
|
34656
34659
|
})
|
|
34657
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
34658
|
-
let
|
|
34659
|
-
c[30] ===
|
|
34660
|
-
children:
|
|
34661
|
-
}), c[30] =
|
|
34662
|
-
let
|
|
34663
|
-
c[32] !== f || c[33] !==
|
|
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);
|
|
34665
|
+
let A2;
|
|
34666
|
+
c[32] !== f || c[33] !== D2 || c[34] !== k2 ? (A2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34664
34667
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34665
34668
|
delayDuration: 0,
|
|
34666
34669
|
open: f,
|
|
34667
34670
|
children: [
|
|
34668
|
-
|
|
34669
|
-
|
|
34671
|
+
D2,
|
|
34672
|
+
k2
|
|
34670
34673
|
]
|
|
34671
34674
|
})
|
|
34672
|
-
}), c[32] = f, c[33] =
|
|
34675
|
+
}), c[32] = f, c[33] = D2, c[34] = k2, c[35] = A2) : A2 = c[35];
|
|
34673
34676
|
let Z;
|
|
34674
34677
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34675
34678
|
asChild: true,
|
|
@@ -34682,38 +34685,38 @@ ${c}
|
|
|
34682
34685
|
onMouseLeave: m.setFalse
|
|
34683
34686
|
})
|
|
34684
34687
|
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = Z) : Z = c[38];
|
|
34685
|
-
let
|
|
34686
|
-
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, {
|
|
34687
34690
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
34688
34691
|
locale: h
|
|
34689
34692
|
})
|
|
34690
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
34691
|
-
let
|
|
34692
|
-
c[43] ===
|
|
34693
|
-
children:
|
|
34694
|
-
}), c[43] =
|
|
34695
|
-
let
|
|
34696
|
-
c[45] !== f || c[46] !== Z || c[47] !==
|
|
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);
|
|
34698
|
+
let N2;
|
|
34699
|
+
c[45] !== f || c[46] !== Z || c[47] !== M2 ? (N2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34697
34700
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34698
34701
|
delayDuration: 0,
|
|
34699
34702
|
open: f,
|
|
34700
34703
|
children: [
|
|
34701
34704
|
Z,
|
|
34702
|
-
|
|
34705
|
+
M2
|
|
34703
34706
|
]
|
|
34704
34707
|
})
|
|
34705
|
-
}), c[45] = f, c[46] = Z, c[47] =
|
|
34706
|
-
let
|
|
34707
|
-
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, {
|
|
34708
34711
|
ref: M,
|
|
34709
34712
|
className: W,
|
|
34710
34713
|
...u,
|
|
34711
34714
|
children: [
|
|
34712
|
-
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
+
E2,
|
|
34716
|
+
A2,
|
|
34717
|
+
N2
|
|
34715
34718
|
]
|
|
34716
|
-
}), 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;
|
|
34717
34720
|
});
|
|
34718
34721
|
RangeSlider.displayName = Root$1.displayName;
|
|
34719
34722
|
var import_compiler_runtime$31 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -34764,14 +34767,14 @@ ${c}
|
|
|
34764
34767
|
}, q = (e2) => {
|
|
34765
34768
|
h && l(e2);
|
|
34766
34769
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
34767
|
-
let
|
|
34768
|
-
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 = () => {
|
|
34769
34772
|
h && !dequal(T, u) && l(T);
|
|
34770
|
-
},
|
|
34773
|
+
}, D2 = () => {
|
|
34771
34774
|
h && !dequal(T, u) && l(T);
|
|
34772
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
34773
|
-
let
|
|
34774
|
-
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, {
|
|
34775
34778
|
id: S,
|
|
34776
34779
|
className: W,
|
|
34777
34780
|
value: T,
|
|
@@ -34782,36 +34785,36 @@ ${c}
|
|
|
34782
34785
|
disabled: y,
|
|
34783
34786
|
onValueChange: G,
|
|
34784
34787
|
onValueCommit: q,
|
|
34785
|
-
onPointerUp:
|
|
34786
|
-
onMouseUp:
|
|
34788
|
+
onPointerUp: E2,
|
|
34789
|
+
onMouseUp: D2,
|
|
34787
34790
|
valueMap: b
|
|
34788
|
-
}), 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] =
|
|
34789
|
-
let
|
|
34790
|
-
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", {
|
|
34791
34794
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
34792
34795
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
34793
34796
|
locale: w
|
|
34794
34797
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
34795
34798
|
locale: w
|
|
34796
34799
|
})}`
|
|
34797
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
34798
|
-
let
|
|
34799
|
-
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", {
|
|
34800
34803
|
className: B,
|
|
34801
34804
|
children: [
|
|
34802
|
-
|
|
34803
|
-
|
|
34805
|
+
O2,
|
|
34806
|
+
k2
|
|
34804
34807
|
]
|
|
34805
|
-
}), r[39] =
|
|
34808
|
+
}), r[39] = O2, r[40] = k2, r[41] = B, r[42] = A2) : A2 = r[42];
|
|
34806
34809
|
let Z;
|
|
34807
|
-
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, {
|
|
34808
34811
|
label: c,
|
|
34809
34812
|
id: S,
|
|
34810
34813
|
align: M,
|
|
34811
34814
|
className: L,
|
|
34812
34815
|
fullWidth: v,
|
|
34813
|
-
children:
|
|
34814
|
-
}), 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;
|
|
34815
34818
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
34816
34819
|
r.exports = u;
|
|
34817
34820
|
var c = {
|
|
@@ -35039,16 +35042,16 @@ ${c}
|
|
|
35039
35042
|
r[9] === E ? G = r[10] : (G = [
|
|
35040
35043
|
E
|
|
35041
35044
|
], r[9] = E, r[10] = G);
|
|
35042
|
-
let q,
|
|
35045
|
+
let q, E2;
|
|
35043
35046
|
r[11] !== h || r[12] !== l ? (q = (e2) => {
|
|
35044
35047
|
let [r2] = e2;
|
|
35045
35048
|
O(r2), h || l(r2);
|
|
35046
|
-
},
|
|
35049
|
+
}, E2 = (e2) => {
|
|
35047
35050
|
let [r2] = e2;
|
|
35048
35051
|
h && l(r2);
|
|
35049
|
-
}, r[11] = h, r[12] = l, r[13] = q, r[14] =
|
|
35050
|
-
let
|
|
35051
|
-
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, {
|
|
35052
35055
|
id: w,
|
|
35053
35056
|
className: W,
|
|
35054
35057
|
value: G,
|
|
@@ -35057,19 +35060,19 @@ ${c}
|
|
|
35057
35060
|
step: m,
|
|
35058
35061
|
orientation: g,
|
|
35059
35062
|
onValueChange: q,
|
|
35060
|
-
onValueCommit:
|
|
35063
|
+
onValueCommit: E2,
|
|
35061
35064
|
valueMap: y,
|
|
35062
35065
|
disabled: S
|
|
35063
|
-
}), 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] =
|
|
35064
|
-
let
|
|
35065
|
-
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", {
|
|
35066
35069
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
35067
35070
|
children: prettyScientificNumber(y(E), {
|
|
35068
35071
|
locale: T
|
|
35069
35072
|
})
|
|
35070
|
-
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] =
|
|
35071
|
-
let
|
|
35072
|
-
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, {
|
|
35073
35076
|
value: y(E),
|
|
35074
35077
|
onChange: (e2) => {
|
|
35075
35078
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -35080,25 +35083,25 @@ ${c}
|
|
|
35080
35083
|
className: "w-24",
|
|
35081
35084
|
"aria-label": `${c || "Slider"} value input`,
|
|
35082
35085
|
isDisabled: S
|
|
35083
|
-
}), 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] =
|
|
35084
|
-
let
|
|
35085
|
-
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", {
|
|
35086
35089
|
className: B,
|
|
35087
35090
|
children: [
|
|
35088
|
-
|
|
35089
|
-
|
|
35090
|
-
|
|
35091
|
+
D2,
|
|
35092
|
+
O2,
|
|
35093
|
+
k2
|
|
35091
35094
|
]
|
|
35092
|
-
}), r[42] =
|
|
35095
|
+
}), r[42] = D2, r[43] = O2, r[44] = k2, r[45] = B, r[46] = A2) : A2 = r[46];
|
|
35093
35096
|
let Z;
|
|
35094
|
-
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, {
|
|
35095
35098
|
label: c,
|
|
35096
35099
|
id: w,
|
|
35097
35100
|
align: I,
|
|
35098
35101
|
fullWidth: v,
|
|
35099
35102
|
className: R,
|
|
35100
|
-
children:
|
|
35101
|
-
}), 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;
|
|
35102
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", {
|
|
35103
35106
|
variants: {
|
|
35104
35107
|
size: {
|
|
@@ -38007,15 +38010,15 @@ ${c}
|
|
|
38007
38010
|
}
|
|
38008
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;
|
|
38009
38012
|
function T(e3) {
|
|
38010
|
-
var r3 = e3.areArraysEqual, c2 = e3.areDatesEqual, l2 = e3.areMapsEqual,
|
|
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);
|
|
38011
38014
|
function I2(e4, j4, I3) {
|
|
38012
38015
|
if (e4 === j4) return true;
|
|
38013
38016
|
if (!e4 || !j4 || typeof e4 != "object" || typeof j4 != "object") return e4 !== e4 && j4 !== j4;
|
|
38014
|
-
if (u(e4) && u(j4)) return
|
|
38017
|
+
if (u(e4) && u(j4)) return T2(e4, j4, M3, I3);
|
|
38015
38018
|
var L2 = Array.isArray(e4), R2 = Array.isArray(j4);
|
|
38016
38019
|
if (L2 || R2) return L2 === R2 && r3(e4, j4, M3, I3);
|
|
38017
38020
|
var z2 = w.call(e4);
|
|
38018
|
-
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 :
|
|
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;
|
|
38019
38022
|
}
|
|
38020
38023
|
return I2;
|
|
38021
38024
|
}
|
|
@@ -38082,7 +38085,7 @@ ${c}
|
|
|
38082
38085
|
areRegExpsEqual: H,
|
|
38083
38086
|
areSetsEqual: W,
|
|
38084
38087
|
createIsNestedEqual: r2
|
|
38085
|
-
}),
|
|
38088
|
+
}), E2 = Object.freeze({
|
|
38086
38089
|
areArraysEqual: O,
|
|
38087
38090
|
areDatesEqual: j,
|
|
38088
38091
|
areMapsEqual: I,
|
|
@@ -38090,40 +38093,40 @@ ${c}
|
|
|
38090
38093
|
areRegExpsEqual: H,
|
|
38091
38094
|
areSetsEqual: G,
|
|
38092
38095
|
createIsNestedEqual: r2
|
|
38093
|
-
}),
|
|
38094
|
-
function
|
|
38095
|
-
return
|
|
38096
|
+
}), D2 = T(q);
|
|
38097
|
+
function O2(e3, r3) {
|
|
38098
|
+
return D2(e3, r3, void 0);
|
|
38096
38099
|
}
|
|
38097
|
-
var
|
|
38100
|
+
var k2 = T(l(q, {
|
|
38098
38101
|
createIsNestedEqual: function() {
|
|
38099
38102
|
return f;
|
|
38100
38103
|
}
|
|
38101
38104
|
}));
|
|
38102
|
-
function
|
|
38103
|
-
return
|
|
38105
|
+
function A2(e3, r3) {
|
|
38106
|
+
return k2(e3, r3, void 0);
|
|
38104
38107
|
}
|
|
38105
|
-
var Z = T(
|
|
38106
|
-
function
|
|
38108
|
+
var Z = T(E2);
|
|
38109
|
+
function j2(e3, r3) {
|
|
38107
38110
|
return Z(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
38108
38111
|
}
|
|
38109
|
-
var
|
|
38112
|
+
var M2 = T(l(E2, {
|
|
38110
38113
|
createIsNestedEqual: function() {
|
|
38111
38114
|
return f;
|
|
38112
38115
|
}
|
|
38113
38116
|
}));
|
|
38114
|
-
function
|
|
38115
|
-
return
|
|
38117
|
+
function N2(e3, r3) {
|
|
38118
|
+
return M2(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
38116
38119
|
}
|
|
38117
|
-
function
|
|
38120
|
+
function P2(e3) {
|
|
38118
38121
|
return T(l(q, e3(q)));
|
|
38119
38122
|
}
|
|
38120
|
-
function
|
|
38121
|
-
var r3 = T(l(
|
|
38123
|
+
function F2(e3) {
|
|
38124
|
+
var r3 = T(l(E2, e3(E2)));
|
|
38122
38125
|
return (function(e4, c2, l2) {
|
|
38123
38126
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
38124
38127
|
});
|
|
38125
38128
|
}
|
|
38126
|
-
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", {
|
|
38127
38130
|
value: true
|
|
38128
38131
|
});
|
|
38129
38132
|
}));
|
|
@@ -38149,7 +38152,7 @@ ${c}
|
|
|
38149
38152
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
38150
38153
|
Object.defineProperty(e, "__esModule", {
|
|
38151
38154
|
value: true
|
|
38152
|
-
}), 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;
|
|
38153
38156
|
var r = require_fast_equals(), c = l(require_react());
|
|
38154
38157
|
function l(e2) {
|
|
38155
38158
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -38254,7 +38257,7 @@ ${c}
|
|
|
38254
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);
|
|
38255
38258
|
}
|
|
38256
38259
|
function T(e2, r2, c2, l2) {
|
|
38257
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
38260
|
+
let u2 = B(e2), d2 = h(u2), f2 = I2(e2, r2), p2 = Array(e2.length);
|
|
38258
38261
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
38259
38262
|
let h3 = y(f2[m2]);
|
|
38260
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;
|
|
@@ -38312,7 +38315,7 @@ ${c}
|
|
|
38312
38315
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
38313
38316
|
let h2 = r2.x, _2 = r2.y;
|
|
38314
38317
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
38315
|
-
let v2 =
|
|
38318
|
+
let v2 = I2(e2, f2);
|
|
38316
38319
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
38317
38320
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
38318
38321
|
if (b2 && m2) return g(e2);
|
|
@@ -38346,61 +38349,61 @@ ${c}
|
|
|
38346
38349
|
function G(e2) {
|
|
38347
38350
|
return e2 * 100 + "%";
|
|
38348
38351
|
}
|
|
38349
|
-
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) => {
|
|
38350
38353
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
38351
38354
|
return {
|
|
38352
38355
|
left: l2,
|
|
38353
38356
|
width: d2,
|
|
38354
|
-
height:
|
|
38355
|
-
top:
|
|
38357
|
+
height: E2(f2, e2.height, u2),
|
|
38358
|
+
top: O2(f2)
|
|
38356
38359
|
};
|
|
38357
|
-
},
|
|
38360
|
+
}, A2 = (e2, r2, c2) => {
|
|
38358
38361
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
38359
38362
|
return {
|
|
38360
38363
|
top: l2,
|
|
38361
38364
|
height: d2,
|
|
38362
38365
|
width: q(e2.left, e2.width, f2, c2),
|
|
38363
|
-
left:
|
|
38366
|
+
left: D2(u2)
|
|
38364
38367
|
};
|
|
38365
38368
|
}, Z = (e2, r2, c2) => {
|
|
38366
38369
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
38367
38370
|
return {
|
|
38368
38371
|
height: u2,
|
|
38369
38372
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
38370
|
-
top:
|
|
38371
|
-
left:
|
|
38373
|
+
top: O2(l2),
|
|
38374
|
+
left: D2(f2)
|
|
38372
38375
|
};
|
|
38373
|
-
},
|
|
38376
|
+
}, j2 = (e2, r2, c2) => {
|
|
38374
38377
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
38375
38378
|
return {
|
|
38376
38379
|
width: f2,
|
|
38377
38380
|
left: u2,
|
|
38378
|
-
height:
|
|
38379
|
-
top:
|
|
38381
|
+
height: E2(l2, e2.height, d2),
|
|
38382
|
+
top: O2(l2)
|
|
38380
38383
|
};
|
|
38381
|
-
},
|
|
38382
|
-
n:
|
|
38384
|
+
}, M2 = {
|
|
38385
|
+
n: k2,
|
|
38383
38386
|
ne: function() {
|
|
38384
|
-
return
|
|
38387
|
+
return k2(arguments.length <= 0 ? void 0 : arguments[0], A2(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38385
38388
|
},
|
|
38386
|
-
e:
|
|
38389
|
+
e: A2,
|
|
38387
38390
|
se: function() {
|
|
38388
|
-
return
|
|
38391
|
+
return j2(arguments.length <= 0 ? void 0 : arguments[0], A2(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38389
38392
|
},
|
|
38390
|
-
s:
|
|
38393
|
+
s: j2,
|
|
38391
38394
|
sw: function() {
|
|
38392
|
-
return
|
|
38395
|
+
return j2(arguments.length <= 0 ? void 0 : arguments[0], Z(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38393
38396
|
},
|
|
38394
38397
|
w: Z,
|
|
38395
38398
|
nw: function() {
|
|
38396
|
-
return
|
|
38399
|
+
return k2(arguments.length <= 0 ? void 0 : arguments[0], Z(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38397
38400
|
}
|
|
38398
38401
|
};
|
|
38399
|
-
function
|
|
38400
|
-
let u2 =
|
|
38402
|
+
function N2(e2, r2, c2, l2) {
|
|
38403
|
+
let u2 = M2[e2];
|
|
38401
38404
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
38402
38405
|
}
|
|
38403
|
-
function
|
|
38406
|
+
function P2(e2) {
|
|
38404
38407
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
38405
38408
|
return {
|
|
38406
38409
|
transform: d2,
|
|
@@ -38413,7 +38416,7 @@ ${c}
|
|
|
38413
38416
|
position: "absolute"
|
|
38414
38417
|
};
|
|
38415
38418
|
}
|
|
38416
|
-
function
|
|
38419
|
+
function F2(e2) {
|
|
38417
38420
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
38418
38421
|
return {
|
|
38419
38422
|
top: `${r2}px`,
|
|
@@ -38423,20 +38426,20 @@ ${c}
|
|
|
38423
38426
|
position: "absolute"
|
|
38424
38427
|
};
|
|
38425
38428
|
}
|
|
38426
|
-
function
|
|
38427
|
-
return r2 === "horizontal" ?
|
|
38429
|
+
function I2(e2, r2) {
|
|
38430
|
+
return r2 === "horizontal" ? R2(e2) : r2 === "vertical" ? L2(e2) : e2;
|
|
38428
38431
|
}
|
|
38429
|
-
function
|
|
38432
|
+
function L2(e2) {
|
|
38430
38433
|
return e2.slice(0).sort(function(e3, r2) {
|
|
38431
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;
|
|
38432
38435
|
});
|
|
38433
38436
|
}
|
|
38434
|
-
function
|
|
38437
|
+
function R2(e2) {
|
|
38435
38438
|
return e2.slice(0).sort(function(e3, r2) {
|
|
38436
38439
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
38437
38440
|
});
|
|
38438
38441
|
}
|
|
38439
|
-
function
|
|
38442
|
+
function z2(e2, r2, l2, u2, f2) {
|
|
38440
38443
|
e2 || (e2 = []);
|
|
38441
38444
|
let p2 = [];
|
|
38442
38445
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -38457,7 +38460,7 @@ ${c}
|
|
|
38457
38460
|
});
|
|
38458
38461
|
return f2 ? m2 : T(m2, u2, l2);
|
|
38459
38462
|
}
|
|
38460
|
-
function
|
|
38463
|
+
function B2(e2) {
|
|
38461
38464
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
38462
38465
|
"x",
|
|
38463
38466
|
"y",
|
|
@@ -38474,7 +38477,7 @@ ${c}
|
|
|
38474
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})`);
|
|
38475
38478
|
}
|
|
38476
38479
|
}
|
|
38477
|
-
function
|
|
38480
|
+
function V2(e2) {
|
|
38478
38481
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
38479
38482
|
return r2 === false ? null : c2;
|
|
38480
38483
|
}
|
|
@@ -41279,7 +41282,7 @@ ${c}
|
|
|
41279
41282
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
41280
41283
|
let E = useIsDragging(), O, j;
|
|
41281
41284
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
41282
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
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;
|
|
41283
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) {
|
|
41284
41287
|
let e2 = Maps.keyBy(c.cells, _temp2$2), m2;
|
|
41285
41288
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -41298,23 +41301,23 @@ ${c}
|
|
|
41298
41301
|
});
|
|
41299
41302
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
41300
41303
|
let y2 = v2;
|
|
41301
|
-
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 = {
|
|
41302
41305
|
lg: c.cells
|
|
41303
|
-
}, r[58] = c.cells, r[59] =
|
|
41304
|
-
let b2 = M && "bg-(--slate-2) border-r",
|
|
41305
|
-
r[60] !== b2 || r[61] !==
|
|
41306
|
+
}, r[58] = c.cells, r[59] = z2), B2 = L, V2 = S, R = false;
|
|
41307
|
+
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
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 ? [
|
|
41306
41309
|
20,
|
|
41307
41310
|
20
|
|
41308
|
-
] : 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) => {
|
|
41309
41312
|
f || l({
|
|
41310
41313
|
...c,
|
|
41311
41314
|
cells: e3
|
|
41312
41315
|
});
|
|
41313
|
-
}, 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 ? {
|
|
41314
41317
|
i: g.i,
|
|
41315
41318
|
w: g.w || 2,
|
|
41316
41319
|
h: g.h || 2
|
|
41317
|
-
} : 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) => {
|
|
41318
41321
|
O.onDragStop(), r2 && l({
|
|
41319
41322
|
...c,
|
|
41320
41323
|
cells: [
|
|
@@ -41322,15 +41325,15 @@ ${c}
|
|
|
41322
41325
|
r2
|
|
41323
41326
|
]
|
|
41324
41327
|
});
|
|
41325
|
-
}, 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) => {
|
|
41326
41329
|
O.onDragStart(u2);
|
|
41327
41330
|
}, Z = (e3, r2, c2, l2, u2) => {
|
|
41328
41331
|
O.onDragMove(u2);
|
|
41329
|
-
},
|
|
41332
|
+
}, j2 = () => {
|
|
41330
41333
|
O.onDragStop();
|
|
41331
|
-
}, r[76] = O, r[77] =
|
|
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";
|
|
41332
41335
|
let E3;
|
|
41333
|
-
r[80] === h ? E3 = r[81] : (E3 = (e3) => h.has(e3.id), r[80] = h, r[81] = 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) => {
|
|
41334
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, {
|
|
41335
41338
|
code: r2.code,
|
|
41336
41339
|
mode: d,
|
|
@@ -41359,14 +41362,14 @@ ${c}
|
|
|
41359
41362
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
41360
41363
|
children: m3
|
|
41361
41364
|
}, r2.id);
|
|
41362
|
-
}), 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] =
|
|
41363
|
-
} 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],
|
|
41364
|
-
let
|
|
41365
|
-
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] !==
|
|
41366
|
-
breakpoint:
|
|
41367
|
-
layouts:
|
|
41368
|
-
style:
|
|
41369
|
-
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,
|
|
41370
41373
|
allowOverlap: R,
|
|
41371
41374
|
className: z,
|
|
41372
41375
|
containerPadding: B,
|
|
@@ -41374,23 +41377,23 @@ ${c}
|
|
|
41374
41377
|
isBounded: W,
|
|
41375
41378
|
compactType: G,
|
|
41376
41379
|
preventCollision: q,
|
|
41377
|
-
rowHeight:
|
|
41378
|
-
onLayoutChange:
|
|
41379
|
-
droppingItem:
|
|
41380
|
-
onDrop:
|
|
41381
|
-
onDragStart:
|
|
41380
|
+
rowHeight: E2,
|
|
41381
|
+
onLayoutChange: D2,
|
|
41382
|
+
droppingItem: O2,
|
|
41383
|
+
onDrop: k2,
|
|
41384
|
+
onDragStart: A2,
|
|
41382
41385
|
onDrag: Z,
|
|
41383
|
-
onDragStop:
|
|
41384
|
-
onResizeStop:
|
|
41385
|
-
isDraggable:
|
|
41386
|
-
isDroppable:
|
|
41387
|
-
isResizable:
|
|
41388
|
-
draggableHandle:
|
|
41389
|
-
children:
|
|
41390
|
-
}), 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] =
|
|
41391
|
-
let
|
|
41392
|
-
if (r[108] !== u || r[109] !==
|
|
41393
|
-
|
|
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");
|
|
41394
41397
|
bb0: {
|
|
41395
41398
|
let e2;
|
|
41396
41399
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -41398,14 +41401,14 @@ ${c}
|
|
|
41398
41401
|
if (f) {
|
|
41399
41402
|
if (c.bordered) {
|
|
41400
41403
|
let e4;
|
|
41401
|
-
r[127] !==
|
|
41404
|
+
r[127] !== U2 || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
41402
41405
|
className: "flex flex-1 flex-col items-center",
|
|
41403
41406
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
41404
41407
|
style: L,
|
|
41405
41408
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
41406
|
-
children:
|
|
41409
|
+
children: U2
|
|
41407
41410
|
})
|
|
41408
|
-
}), r[127] =
|
|
41411
|
+
}), r[127] = U2, r[128] = L, r[129] = e4) : e4 = r[129], U2 = e4;
|
|
41409
41412
|
}
|
|
41410
41413
|
let e3 = m2.filter(_temp4$2), l2;
|
|
41411
41414
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -41416,9 +41419,9 @@ ${c}
|
|
|
41416
41419
|
status: e4.status,
|
|
41417
41420
|
isScrollable: false,
|
|
41418
41421
|
hidden: false
|
|
41419
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
41422
|
+
}, e4.id), r[130] = d, r[131] = l2), X2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41420
41423
|
children: [
|
|
41421
|
-
|
|
41424
|
+
U2,
|
|
41422
41425
|
(0, import_jsx_runtime.jsx)("div", {
|
|
41423
41426
|
className: "hidden",
|
|
41424
41427
|
children: e3.map(l2)
|
|
@@ -41429,31 +41432,31 @@ ${c}
|
|
|
41429
41432
|
}
|
|
41430
41433
|
if (c.bordered) {
|
|
41431
41434
|
let e3;
|
|
41432
|
-
r[132] ===
|
|
41435
|
+
r[132] === U2 ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
41433
41436
|
className: "h-full overflow-auto",
|
|
41434
|
-
children:
|
|
41435
|
-
}), r[132] =
|
|
41437
|
+
children: U2
|
|
41438
|
+
}), r[132] = U2, r[133] = e3);
|
|
41436
41439
|
let c2;
|
|
41437
41440
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41438
41441
|
style: L,
|
|
41439
41442
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
41440
41443
|
children: e3
|
|
41441
|
-
}), 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;
|
|
41442
41445
|
}
|
|
41443
|
-
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, {
|
|
41444
41447
|
layout: c,
|
|
41445
41448
|
setLayout: l,
|
|
41446
41449
|
isLocked: v,
|
|
41447
41450
|
setIsLocked: y
|
|
41448
|
-
}), 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];
|
|
41449
41452
|
let g2;
|
|
41450
|
-
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", {
|
|
41451
41454
|
className: g2,
|
|
41452
|
-
children:
|
|
41453
|
-
}), 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", {
|
|
41454
41457
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
41455
41458
|
children: "Outputs"
|
|
41456
|
-
}), r[145] =
|
|
41459
|
+
}), r[145] = G2) : G2 = r[145];
|
|
41457
41460
|
let b2;
|
|
41458
41461
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
41459
41462
|
draggable: true,
|
|
@@ -41478,34 +41481,34 @@ ${c}
|
|
|
41478
41481
|
status: e3.status,
|
|
41479
41482
|
hidden: false
|
|
41480
41483
|
})
|
|
41481
|
-
}, 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);
|
|
41482
41485
|
}
|
|
41483
|
-
r[108] = u, r[109] =
|
|
41484
|
-
} else
|
|
41485
|
-
if (
|
|
41486
|
-
let
|
|
41487
|
-
r[150] !==
|
|
41488
|
-
className: V2,
|
|
41489
|
-
children: [
|
|
41490
|
-
H2,
|
|
41491
|
-
U2
|
|
41492
|
-
]
|
|
41493
|
-
}), r[150] = V2, r[151] = H2, r[152] = U2, r[153] = J2) : J2 = r[153];
|
|
41494
|
-
let Y2;
|
|
41495
|
-
r[154] !== W2 || r[155] !== G2 || r[156] !== J2 ? (Y2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
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", {
|
|
41496
41491
|
className: W2,
|
|
41497
41492
|
children: [
|
|
41498
41493
|
G2,
|
|
41499
|
-
|
|
41494
|
+
K2
|
|
41500
41495
|
]
|
|
41501
|
-
}), r[
|
|
41502
|
-
let
|
|
41503
|
-
|
|
41496
|
+
}), r[150] = W2, r[151] = G2, r[152] = K2, r[153] = Z2) : Z2 = r[153];
|
|
41497
|
+
let Q2;
|
|
41498
|
+
r[154] !== q2 || r[155] !== J2 || r[156] !== Z2 ? (Q2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41499
|
+
className: q2,
|
|
41504
41500
|
children: [
|
|
41505
|
-
|
|
41506
|
-
|
|
41501
|
+
J2,
|
|
41502
|
+
Z2
|
|
41503
|
+
]
|
|
41504
|
+
}), r[154] = q2, r[155] = J2, r[156] = Z2, r[157] = Q2) : Q2 = r[157];
|
|
41505
|
+
let $2;
|
|
41506
|
+
return r[158] !== Y2 || r[159] !== Q2 ? ($2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41507
|
+
children: [
|
|
41508
|
+
Y2,
|
|
41509
|
+
Q2
|
|
41507
41510
|
]
|
|
41508
|
-
}), r[158] =
|
|
41511
|
+
}), r[158] = Y2, r[159] = Q2, r[160] = $2) : $2 = r[160], $2;
|
|
41509
41512
|
};
|
|
41510
41513
|
var GridCell = (0, import_react.memo)((e) => {
|
|
41511
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;
|
|
@@ -41806,25 +41809,25 @@ ${c}
|
|
|
41806
41809
|
G
|
|
41807
41810
|
]
|
|
41808
41811
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
41809
|
-
let
|
|
41810
|
-
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, {
|
|
41811
41814
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
41812
|
-
}), r[35] =
|
|
41813
|
-
let
|
|
41814
|
-
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, {
|
|
41815
41818
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
41816
41819
|
onClick: () => l()
|
|
41817
|
-
}), r[36] = l, r[37] =
|
|
41818
|
-
let
|
|
41819
|
-
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", {
|
|
41820
41823
|
className: w,
|
|
41821
41824
|
children: [
|
|
41822
41825
|
I,
|
|
41823
41826
|
q,
|
|
41824
|
-
|
|
41825
|
-
|
|
41827
|
+
E2,
|
|
41828
|
+
D2
|
|
41826
41829
|
]
|
|
41827
|
-
}), 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;
|
|
41828
41831
|
};
|
|
41829
41832
|
function isSidebarCell(e) {
|
|
41830
41833
|
var _a3;
|
|
@@ -43752,31 +43755,31 @@ ${c}
|
|
|
43752
43755
|
}, [
|
|
43753
43756
|
T,
|
|
43754
43757
|
M
|
|
43755
|
-
]), 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(), [
|
|
43756
43759
|
j
|
|
43757
|
-
]),
|
|
43760
|
+
]), D2 = useMeasuringConfiguration(p), { droppableRects: O2, measureDroppableContainers: k2, measuringScheduled: A2 } = useDroppableMeasuring(E2, {
|
|
43758
43761
|
dragging: w,
|
|
43759
43762
|
dependencies: [
|
|
43760
43763
|
O.x,
|
|
43761
43764
|
O.y
|
|
43762
43765
|
],
|
|
43763
|
-
config:
|
|
43764
|
-
}), Z = useCachedNode(E, T),
|
|
43766
|
+
config: D2.droppable
|
|
43767
|
+
}), Z = useCachedNode(E, T), j2 = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
43765
43768
|
H
|
|
43766
|
-
]),
|
|
43769
|
+
]), M2 = l4(), N2 = useInitialRect(Z, D2.draggable.measure);
|
|
43767
43770
|
useLayoutShiftScrollCompensation({
|
|
43768
43771
|
activeNode: T == null ? null : E.get(T),
|
|
43769
|
-
config:
|
|
43770
|
-
initialRect:
|
|
43771
|
-
measure:
|
|
43772
|
+
config: M2.layoutShiftCompensation,
|
|
43773
|
+
initialRect: N2,
|
|
43774
|
+
measure: D2.draggable.measure
|
|
43772
43775
|
});
|
|
43773
|
-
let
|
|
43776
|
+
let P2 = useRect(Z, D2.draggable.measure, N2), F2 = useRect(Z ? Z.parentElement : null), I2 = (0, import_react.useRef)({
|
|
43774
43777
|
activatorEvent: null,
|
|
43775
43778
|
active: null,
|
|
43776
43779
|
activeNode: Z,
|
|
43777
43780
|
collisionRect: null,
|
|
43778
43781
|
collisions: null,
|
|
43779
|
-
droppableRects:
|
|
43782
|
+
droppableRects: O2,
|
|
43780
43783
|
draggableNodes: E,
|
|
43781
43784
|
draggingNode: null,
|
|
43782
43785
|
draggingNodeRect: null,
|
|
@@ -43784,45 +43787,45 @@ ${c}
|
|
|
43784
43787
|
over: null,
|
|
43785
43788
|
scrollableAncestors: [],
|
|
43786
43789
|
scrollAdjustedTranslate: null
|
|
43787
|
-
}),
|
|
43788
|
-
measure:
|
|
43789
|
-
}),
|
|
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, {
|
|
43790
43793
|
transform: {
|
|
43791
|
-
x: O.x -
|
|
43792
|
-
y: O.y -
|
|
43794
|
+
x: O.x - H2.x,
|
|
43795
|
+
y: O.y - H2.y,
|
|
43793
43796
|
scaleX: 1,
|
|
43794
43797
|
scaleY: 1
|
|
43795
43798
|
},
|
|
43796
43799
|
activatorEvent: H,
|
|
43797
43800
|
active: L,
|
|
43798
|
-
activeNodeRect:
|
|
43799
|
-
containerNodeRect:
|
|
43800
|
-
draggingNodeRect:
|
|
43801
|
-
over:
|
|
43802
|
-
overlayNodeRect:
|
|
43803
|
-
scrollableAncestors:
|
|
43804
|
-
scrollableAncestorRects:
|
|
43805
|
-
windowRect:
|
|
43806
|
-
}),
|
|
43807
|
-
|
|
43808
|
-
]),
|
|
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({
|
|
43809
43812
|
active: L,
|
|
43810
|
-
collisionRect:
|
|
43811
|
-
droppableRects:
|
|
43812
|
-
droppableContainers:
|
|
43813
|
-
pointerCoordinates:
|
|
43814
|
-
}) : 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) => {
|
|
43815
43818
|
let { sensor: c2, options: l2 } = r2;
|
|
43816
43819
|
if (R.current == null) return;
|
|
43817
43820
|
let u2 = E.get(R.current);
|
|
43818
43821
|
if (!u2) return;
|
|
43819
43822
|
let d2 = e2.nativeEvent;
|
|
43820
|
-
|
|
43823
|
+
i4.current = new c2({
|
|
43821
43824
|
active: R.current,
|
|
43822
43825
|
activeNode: u2,
|
|
43823
43826
|
event: d2,
|
|
43824
43827
|
options: l2,
|
|
43825
|
-
context:
|
|
43828
|
+
context: I2,
|
|
43826
43829
|
onAbort(e3) {
|
|
43827
43830
|
if (!E.get(e3)) return;
|
|
43828
43831
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -43867,7 +43870,7 @@ ${c}
|
|
|
43867
43870
|
}), v({
|
|
43868
43871
|
type: "onDragStart",
|
|
43869
43872
|
event: u3
|
|
43870
|
-
}), B(
|
|
43873
|
+
}), B(i4.current), W(d2);
|
|
43871
43874
|
});
|
|
43872
43875
|
},
|
|
43873
43876
|
onMove(e3) {
|
|
@@ -43881,7 +43884,7 @@ ${c}
|
|
|
43881
43884
|
});
|
|
43882
43885
|
function f2(e3) {
|
|
43883
43886
|
return async function() {
|
|
43884
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
43887
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = I2.current, f3 = null;
|
|
43885
43888
|
if (r3 && u3) {
|
|
43886
43889
|
let { cancelDrop: p2 } = G.current;
|
|
43887
43890
|
f3 = {
|
|
@@ -43895,7 +43898,7 @@ ${c}
|
|
|
43895
43898
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43896
43899
|
_({
|
|
43897
43900
|
type: e3
|
|
43898
|
-
}), S(Status.Uninitialized),
|
|
43901
|
+
}), S(Status.Uninitialized), n4(null), B(null), W(null), i4.current = null;
|
|
43899
43902
|
let r5 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
43900
43903
|
if (f3) {
|
|
43901
43904
|
let e5 = G.current[r5];
|
|
@@ -43909,7 +43912,7 @@ ${c}
|
|
|
43909
43912
|
}
|
|
43910
43913
|
}, [
|
|
43911
43914
|
E
|
|
43912
|
-
]),
|
|
43915
|
+
]), o4 = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
43913
43916
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
43914
43917
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
43915
43918
|
let f2 = {
|
|
@@ -43917,26 +43920,26 @@ ${c}
|
|
|
43917
43920
|
};
|
|
43918
43921
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
43919
43922
|
capturedBy: r2.sensor
|
|
43920
|
-
}, R.current = l2,
|
|
43923
|
+
}, R.current = l2, a4(c2, r2));
|
|
43921
43924
|
}, [
|
|
43922
43925
|
E,
|
|
43923
|
-
|
|
43926
|
+
a4
|
|
43924
43927
|
]));
|
|
43925
43928
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
43926
|
-
|
|
43929
|
+
P2 && b === Status.Initializing && S(Status.Initialized);
|
|
43927
43930
|
}, [
|
|
43928
|
-
|
|
43931
|
+
P2,
|
|
43929
43932
|
b
|
|
43930
43933
|
]), (0, import_react.useEffect)(() => {
|
|
43931
|
-
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;
|
|
43932
43935
|
if (!r2 || !c2) return;
|
|
43933
43936
|
let d2 = {
|
|
43934
43937
|
active: r2,
|
|
43935
43938
|
activatorEvent: c2,
|
|
43936
43939
|
collisions: l2,
|
|
43937
43940
|
delta: {
|
|
43938
|
-
x:
|
|
43939
|
-
y:
|
|
43941
|
+
x: Z2.x,
|
|
43942
|
+
y: Z2.y
|
|
43940
43943
|
},
|
|
43941
43944
|
over: u2
|
|
43942
43945
|
};
|
|
@@ -43947,12 +43950,12 @@ ${c}
|
|
|
43947
43950
|
});
|
|
43948
43951
|
});
|
|
43949
43952
|
}, [
|
|
43950
|
-
|
|
43951
|
-
|
|
43953
|
+
Z2.x,
|
|
43954
|
+
Z2.y
|
|
43952
43955
|
]), (0, import_react.useEffect)(() => {
|
|
43953
|
-
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;
|
|
43954
43957
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
43955
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
43958
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(e4), p2 = f2 && f2.rect.current ? {
|
|
43956
43959
|
id: f2.id,
|
|
43957
43960
|
rect: f2.rect.current,
|
|
43958
43961
|
data: f2.data,
|
|
@@ -43968,127 +43971,127 @@ ${c}
|
|
|
43968
43971
|
over: p2
|
|
43969
43972
|
};
|
|
43970
43973
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43971
|
-
|
|
43974
|
+
n4(p2), d2 == null ? void 0 : d2(m2), v({
|
|
43972
43975
|
type: "onDragOver",
|
|
43973
43976
|
event: m2
|
|
43974
43977
|
});
|
|
43975
43978
|
});
|
|
43976
43979
|
}, [
|
|
43977
|
-
|
|
43980
|
+
e4
|
|
43978
43981
|
]), useIsomorphicLayoutEffect(() => {
|
|
43979
|
-
|
|
43982
|
+
I2.current = {
|
|
43980
43983
|
activatorEvent: H,
|
|
43981
43984
|
active: L,
|
|
43982
43985
|
activeNode: Z,
|
|
43983
|
-
collisionRect:
|
|
43984
|
-
collisions:
|
|
43985
|
-
droppableRects:
|
|
43986
|
+
collisionRect: Q2,
|
|
43987
|
+
collisions: $2,
|
|
43988
|
+
droppableRects: O2,
|
|
43986
43989
|
draggableNodes: E,
|
|
43987
|
-
draggingNode:
|
|
43988
|
-
draggingNodeRect:
|
|
43990
|
+
draggingNode: z2,
|
|
43991
|
+
draggingNodeRect: B2,
|
|
43989
43992
|
droppableContainers: j,
|
|
43990
|
-
over:
|
|
43991
|
-
scrollableAncestors:
|
|
43992
|
-
scrollAdjustedTranslate:
|
|
43993
|
+
over: t4,
|
|
43994
|
+
scrollableAncestors: W2,
|
|
43995
|
+
scrollAdjustedTranslate: Z2
|
|
43993
43996
|
}, I.current = {
|
|
43994
|
-
initial:
|
|
43995
|
-
translated:
|
|
43997
|
+
initial: B2,
|
|
43998
|
+
translated: Q2
|
|
43996
43999
|
};
|
|
43997
44000
|
}, [
|
|
43998
44001
|
L,
|
|
43999
44002
|
Z,
|
|
44000
|
-
|
|
44001
|
-
|
|
44003
|
+
$2,
|
|
44004
|
+
Q2,
|
|
44002
44005
|
E,
|
|
44003
|
-
|
|
44004
|
-
|
|
44005
|
-
|
|
44006
|
+
z2,
|
|
44007
|
+
B2,
|
|
44008
|
+
O2,
|
|
44006
44009
|
j,
|
|
44007
|
-
|
|
44008
|
-
|
|
44009
|
-
|
|
44010
|
+
t4,
|
|
44011
|
+
W2,
|
|
44012
|
+
Z2
|
|
44010
44013
|
]), useAutoScroller({
|
|
44011
|
-
...
|
|
44014
|
+
...M2,
|
|
44012
44015
|
delta: O,
|
|
44013
|
-
draggingRect:
|
|
44014
|
-
pointerCoordinates:
|
|
44015
|
-
scrollableAncestors:
|
|
44016
|
-
scrollableAncestorRects:
|
|
44016
|
+
draggingRect: Q2,
|
|
44017
|
+
pointerCoordinates: q2,
|
|
44018
|
+
scrollableAncestors: W2,
|
|
44019
|
+
scrollableAncestorRects: G2
|
|
44017
44020
|
});
|
|
44018
|
-
let
|
|
44021
|
+
let s4 = (0, import_react.useMemo)(() => ({
|
|
44019
44022
|
active: L,
|
|
44020
44023
|
activeNode: Z,
|
|
44021
|
-
activeNodeRect:
|
|
44024
|
+
activeNodeRect: P2,
|
|
44022
44025
|
activatorEvent: H,
|
|
44023
|
-
collisions:
|
|
44024
|
-
containerNodeRect:
|
|
44025
|
-
dragOverlay:
|
|
44026
|
+
collisions: $2,
|
|
44027
|
+
containerNodeRect: F2,
|
|
44028
|
+
dragOverlay: R2,
|
|
44026
44029
|
draggableNodes: E,
|
|
44027
44030
|
droppableContainers: j,
|
|
44028
|
-
droppableRects:
|
|
44029
|
-
over:
|
|
44030
|
-
measureDroppableContainers:
|
|
44031
|
-
scrollableAncestors:
|
|
44032
|
-
scrollableAncestorRects:
|
|
44033
|
-
measuringConfiguration:
|
|
44034
|
-
measuringScheduled:
|
|
44035
|
-
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
|
|
44036
44039
|
}), [
|
|
44037
44040
|
L,
|
|
44038
44041
|
Z,
|
|
44039
|
-
|
|
44042
|
+
P2,
|
|
44040
44043
|
H,
|
|
44041
|
-
|
|
44042
|
-
M2,
|
|
44044
|
+
$2,
|
|
44043
44045
|
F2,
|
|
44046
|
+
R2,
|
|
44044
44047
|
E,
|
|
44045
44048
|
j,
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
|
|
44050
|
-
|
|
44051
|
-
w2,
|
|
44049
|
+
O2,
|
|
44050
|
+
t4,
|
|
44051
|
+
k2,
|
|
44052
|
+
W2,
|
|
44053
|
+
G2,
|
|
44052
44054
|
D2,
|
|
44053
|
-
|
|
44054
|
-
|
|
44055
|
+
A2,
|
|
44056
|
+
U2
|
|
44057
|
+
]), c4 = (0, import_react.useMemo)(() => ({
|
|
44055
44058
|
activatorEvent: H,
|
|
44056
|
-
activators:
|
|
44059
|
+
activators: o4,
|
|
44057
44060
|
active: L,
|
|
44058
|
-
activeNodeRect:
|
|
44061
|
+
activeNodeRect: P2,
|
|
44059
44062
|
ariaDescribedById: {
|
|
44060
44063
|
draggable: q
|
|
44061
44064
|
},
|
|
44062
44065
|
dispatch: _,
|
|
44063
44066
|
draggableNodes: E,
|
|
44064
|
-
over:
|
|
44065
|
-
measureDroppableContainers:
|
|
44067
|
+
over: t4,
|
|
44068
|
+
measureDroppableContainers: k2
|
|
44066
44069
|
}), [
|
|
44067
44070
|
H,
|
|
44068
|
-
|
|
44071
|
+
o4,
|
|
44069
44072
|
L,
|
|
44070
|
-
|
|
44073
|
+
P2,
|
|
44071
44074
|
_,
|
|
44072
44075
|
q,
|
|
44073
44076
|
E,
|
|
44074
|
-
|
|
44075
|
-
|
|
44077
|
+
t4,
|
|
44078
|
+
k2
|
|
44076
44079
|
]);
|
|
44077
44080
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
44078
44081
|
value: y
|
|
44079
44082
|
}, import_react.createElement(InternalContext.Provider, {
|
|
44080
|
-
value:
|
|
44083
|
+
value: c4
|
|
44081
44084
|
}, import_react.createElement(PublicContext.Provider, {
|
|
44082
|
-
value:
|
|
44085
|
+
value: s4
|
|
44083
44086
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
44084
|
-
value:
|
|
44087
|
+
value: r4
|
|
44085
44088
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
44086
44089
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
44087
44090
|
})), import_react.createElement(Accessibility, {
|
|
44088
44091
|
...c,
|
|
44089
44092
|
hiddenTextDescribedById: q
|
|
44090
44093
|
}));
|
|
44091
|
-
function
|
|
44094
|
+
function l4() {
|
|
44092
44095
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
44093
44096
|
return typeof l == "object" ? {
|
|
44094
44097
|
...l,
|
|
@@ -44616,7 +44619,7 @@ ${c}
|
|
|
44616
44619
|
updateMeasurementsFor: I,
|
|
44617
44620
|
...m
|
|
44618
44621
|
}
|
|
44619
|
-
}), { 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({
|
|
44620
44623
|
id: f,
|
|
44621
44624
|
data: M,
|
|
44622
44625
|
attributes: {
|
|
@@ -44624,60 +44627,60 @@ ${c}
|
|
|
44624
44627
|
...c
|
|
44625
44628
|
},
|
|
44626
44629
|
disabled: O.draggable
|
|
44627
|
-
}),
|
|
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)({
|
|
44628
44631
|
rects: S,
|
|
44629
44632
|
activeNodeRect: G,
|
|
44630
44633
|
activeIndex: v,
|
|
44631
44634
|
overIndex: w,
|
|
44632
44635
|
index: j
|
|
44633
|
-
}) : null,
|
|
44636
|
+
}) : null, I2 = isValidIndex(v) && isValidIndex(w) ? d({
|
|
44634
44637
|
id: f,
|
|
44635
44638
|
items: g,
|
|
44636
44639
|
activeIndex: v,
|
|
44637
44640
|
overIndex: w
|
|
44638
|
-
}) : j,
|
|
44639
|
-
activeId:
|
|
44641
|
+
}) : j, L2 = H == null ? void 0 : H.id, R2 = (0, import_react.useRef)({
|
|
44642
|
+
activeId: L2,
|
|
44640
44643
|
items: g,
|
|
44641
|
-
newIndex:
|
|
44644
|
+
newIndex: I2,
|
|
44642
44645
|
containerId: _
|
|
44643
|
-
}),
|
|
44646
|
+
}), z2 = g !== R2.current.items, B2 = r({
|
|
44644
44647
|
active: H,
|
|
44645
44648
|
containerId: _,
|
|
44646
|
-
isDragging:
|
|
44647
|
-
isSorting:
|
|
44649
|
+
isDragging: O2,
|
|
44650
|
+
isSorting: M2,
|
|
44648
44651
|
id: f,
|
|
44649
44652
|
index: j,
|
|
44650
44653
|
items: g,
|
|
44651
|
-
newIndex:
|
|
44652
|
-
previousItems:
|
|
44653
|
-
previousContainerId:
|
|
44654
|
+
newIndex: R2.current.newIndex,
|
|
44655
|
+
previousItems: R2.current.items,
|
|
44656
|
+
previousContainerId: R2.current.containerId,
|
|
44654
44657
|
transition: h,
|
|
44655
|
-
wasDragging:
|
|
44656
|
-
}),
|
|
44657
|
-
disabled: !
|
|
44658
|
+
wasDragging: R2.current.activeId != null
|
|
44659
|
+
}), V2 = useDerivedTransform({
|
|
44660
|
+
disabled: !B2,
|
|
44658
44661
|
index: j,
|
|
44659
44662
|
node: R,
|
|
44660
44663
|
rect: L
|
|
44661
44664
|
});
|
|
44662
44665
|
return (0, import_react.useEffect)(() => {
|
|
44663
|
-
|
|
44666
|
+
M2 && R2.current.newIndex !== I2 && (R2.current.newIndex = I2), _ !== R2.current.containerId && (R2.current.containerId = _), g !== R2.current.items && (R2.current.items = g);
|
|
44664
44667
|
}, [
|
|
44665
|
-
|
|
44666
|
-
|
|
44668
|
+
M2,
|
|
44669
|
+
I2,
|
|
44667
44670
|
_,
|
|
44668
44671
|
g
|
|
44669
44672
|
]), (0, import_react.useEffect)(() => {
|
|
44670
|
-
if (
|
|
44671
|
-
if (
|
|
44672
|
-
|
|
44673
|
+
if (L2 === R2.current.activeId) return;
|
|
44674
|
+
if (L2 != null && R2.current.activeId == null) {
|
|
44675
|
+
R2.current.activeId = L2;
|
|
44673
44676
|
return;
|
|
44674
44677
|
}
|
|
44675
44678
|
let e2 = setTimeout(() => {
|
|
44676
|
-
|
|
44679
|
+
R2.current.activeId = L2;
|
|
44677
44680
|
}, 50);
|
|
44678
44681
|
return () => clearTimeout(e2);
|
|
44679
44682
|
}, [
|
|
44680
|
-
|
|
44683
|
+
L2
|
|
44681
44684
|
]), {
|
|
44682
44685
|
active: H,
|
|
44683
44686
|
activeIndex: v,
|
|
@@ -44685,25 +44688,25 @@ ${c}
|
|
|
44685
44688
|
data: M,
|
|
44686
44689
|
rect: L,
|
|
44687
44690
|
index: j,
|
|
44688
|
-
newIndex:
|
|
44691
|
+
newIndex: I2,
|
|
44689
44692
|
items: g,
|
|
44690
44693
|
isOver: z,
|
|
44691
|
-
isSorting:
|
|
44692
|
-
isDragging:
|
|
44693
|
-
listeners:
|
|
44694
|
+
isSorting: M2,
|
|
44695
|
+
isDragging: O2,
|
|
44696
|
+
listeners: D2,
|
|
44694
44697
|
node: R,
|
|
44695
44698
|
overIndex: w,
|
|
44696
|
-
over:
|
|
44697
|
-
setNodeRef:
|
|
44698
|
-
setActivatorNodeRef:
|
|
44699
|
+
over: k2,
|
|
44700
|
+
setNodeRef: j2,
|
|
44701
|
+
setActivatorNodeRef: A2,
|
|
44699
44702
|
setDroppableNodeRef: B,
|
|
44700
|
-
setDraggableNodeRef:
|
|
44701
|
-
transform:
|
|
44702
|
-
transition:
|
|
44703
|
+
setDraggableNodeRef: E2,
|
|
44704
|
+
transform: V2 ?? F2,
|
|
44705
|
+
transition: H2()
|
|
44703
44706
|
};
|
|
44704
|
-
function
|
|
44705
|
-
if (
|
|
44706
|
-
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({
|
|
44707
44710
|
...h,
|
|
44708
44711
|
property: transitionProperty
|
|
44709
44712
|
});
|
|
@@ -44992,7 +44995,7 @@ ${c}
|
|
|
44992
44995
|
function asCellId(e) {
|
|
44993
44996
|
return typeof e == "string" ? e : null;
|
|
44994
44997
|
}
|
|
44995
|
-
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"));
|
|
44996
44999
|
const SlidesLayoutRenderer = (e) => {
|
|
44997
45000
|
var _a3;
|
|
44998
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;
|
|
@@ -45326,7 +45329,7 @@ ${c}
|
|
|
45326
45329
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
45327
45330
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
45328
45331
|
}, r[2] = z) : z = r[2], (0, import_react.useLayoutEffect)(z), !I && isInternalCellName(b)) return null;
|
|
45329
|
-
let B, H, W, G, q,
|
|
45332
|
+
let B, H, W, G, q, E2, D2, O2, k2, A2;
|
|
45330
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) {
|
|
45331
45334
|
let e2 = M.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), b2;
|
|
45332
45335
|
r[29] === M ? b2 = r[30] : (b2 = () => M.filter(_temp3$1).map(_temp4$1).join("\n"), r[29] = M, r[30] = b2);
|
|
@@ -45372,11 +45375,11 @@ ${c}
|
|
|
45372
45375
|
})
|
|
45373
45376
|
})
|
|
45374
45377
|
]
|
|
45375
|
-
}), 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,
|
|
45376
|
-
let Z2 = y && "marimo-output-stale",
|
|
45377
|
-
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 ? {
|
|
45378
45381
|
maxHeight: "none"
|
|
45379
|
-
} : void 0, r[43] = d, r[44] =
|
|
45382
|
+
} : void 0, r[43] = d, r[44] = k2), A2 = e2.map((e3, r2) => {
|
|
45380
45383
|
if (e3.channel === "pdb") return null;
|
|
45381
45384
|
if (e3.channel === "stdin") {
|
|
45382
45385
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -45404,36 +45407,36 @@ ${c}
|
|
|
45404
45407
|
wrapText: l
|
|
45405
45408
|
})
|
|
45406
45409
|
}, r2);
|
|
45407
|
-
}), 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] =
|
|
45408
|
-
} 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];
|
|
45409
45412
|
let Z;
|
|
45410
45413
|
r[45] !== S || r[46] !== b ? (Z = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
45411
45414
|
value: b,
|
|
45412
45415
|
cellId: S,
|
|
45413
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"
|
|
45414
45417
|
}), r[45] = S, r[46] = b, r[47] = Z) : Z = r[47];
|
|
45415
|
-
let
|
|
45416
|
-
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", {
|
|
45417
45420
|
title: W,
|
|
45418
45421
|
"data-testid": G,
|
|
45419
45422
|
ref: q,
|
|
45420
|
-
...
|
|
45421
|
-
tabIndex:
|
|
45422
|
-
className:
|
|
45423
|
-
style:
|
|
45423
|
+
...E2,
|
|
45424
|
+
tabIndex: D2,
|
|
45425
|
+
className: O2,
|
|
45426
|
+
style: k2,
|
|
45424
45427
|
children: [
|
|
45425
|
-
|
|
45428
|
+
A2,
|
|
45426
45429
|
Z
|
|
45427
45430
|
]
|
|
45428
|
-
}), r[48] = Z, r[49] = W, r[50] = G, r[51] = q, r[52] =
|
|
45429
|
-
let
|
|
45430
|
-
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", {
|
|
45431
45434
|
className: B,
|
|
45432
45435
|
children: [
|
|
45433
45436
|
H,
|
|
45434
|
-
|
|
45437
|
+
j2
|
|
45435
45438
|
]
|
|
45436
|
-
}), 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;
|
|
45437
45440
|
}, StdInput = (e) => {
|
|
45438
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;
|
|
45439
45442
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -45525,7 +45528,7 @@ ${c}
|
|
|
45525
45528
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
45526
45529
|
}
|
|
45527
45530
|
}
|
|
45528
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.3-
|
|
45531
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.3-dev41"), showCodeInRunModeAtom = atom(true);
|
|
45529
45532
|
atom(null);
|
|
45530
45533
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
45531
45534
|
constructor() {
|
|
@@ -45703,8 +45706,8 @@ ${c}
|
|
|
45703
45706
|
}), r[27] = T, r[28] = u, r[29] = b, r[30] = B) : B = r[30];
|
|
45704
45707
|
let H;
|
|
45705
45708
|
r[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = (0, import_jsx_runtime.jsx)(FloatingOutline, {}), r[31] = H) : H = r[31];
|
|
45706
|
-
let
|
|
45707
|
-
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, {
|
|
45708
45711
|
invisible: d,
|
|
45709
45712
|
appConfig: l,
|
|
45710
45713
|
children: [
|
|
@@ -45712,7 +45715,7 @@ ${c}
|
|
|
45712
45715
|
B,
|
|
45713
45716
|
H
|
|
45714
45717
|
]
|
|
45715
|
-
}), 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;
|
|
45716
45719
|
}, ActionButtons = (e) => {
|
|
45717
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;
|
|
45718
45721
|
r[0] === d ? h = r[1] : (h = async () => {
|
|
@@ -45885,8 +45888,8 @@ ${c}
|
|
|
45885
45888
|
cellId: d,
|
|
45886
45889
|
debuggerActive: false
|
|
45887
45890
|
}), r[30] = d, r[31] = l, r[32] = T, r[33] = I, r[34] = S2) : S2 = r[34];
|
|
45888
|
-
let
|
|
45889
|
-
return r[35] !== H || r[36] !== S2 || r[37] !== h2 || r[38] !== _2 || r[39] !== v2 || r[40] !== y2 ? (
|
|
45891
|
+
let w2;
|
|
45892
|
+
return r[35] !== H || r[36] !== S2 || r[37] !== h2 || r[38] !== _2 || r[39] !== v2 || r[40] !== y2 ? (w2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45890
45893
|
tabIndex: -1,
|
|
45891
45894
|
ref: j,
|
|
45892
45895
|
className: H,
|
|
@@ -45897,29 +45900,29 @@ ${c}
|
|
|
45897
45900
|
y2,
|
|
45898
45901
|
S2
|
|
45899
45902
|
]
|
|
45900
|
-
}), r[35] = H, r[36] = S2, r[37] = h2, r[38] = _2, r[39] = v2, r[40] = y2, r[41] =
|
|
45903
|
+
}), r[35] = H, r[36] = S2, r[37] = h2, r[38] = _2, r[39] = v2, r[40] = y2, r[41] = w2) : w2 = r[41], w2;
|
|
45901
45904
|
}
|
|
45902
45905
|
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp6);
|
|
45903
45906
|
if ((h || _ || m || W) && !G) return null;
|
|
45904
45907
|
let q;
|
|
45905
45908
|
r[42] !== d || r[43] !== T ? (q = cellDomProps(d, T), r[42] = d, r[43] = T, r[44] = q) : q = r[44];
|
|
45906
|
-
let
|
|
45907
|
-
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !==
|
|
45908
|
-
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,
|
|
45909
45912
|
output: c,
|
|
45910
45913
|
className: CSSClasses.outputArea,
|
|
45911
45914
|
cellId: d,
|
|
45912
45915
|
stale: I,
|
|
45913
45916
|
loading: R
|
|
45914
|
-
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] =
|
|
45915
|
-
let
|
|
45916
|
-
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", {
|
|
45917
45920
|
tabIndex: -1,
|
|
45918
45921
|
ref: j,
|
|
45919
45922
|
className: H,
|
|
45920
45923
|
...q,
|
|
45921
|
-
children:
|
|
45922
|
-
}), 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;
|
|
45923
45926
|
});
|
|
45924
45927
|
VerticalCell.displayName = "VerticalCell";
|
|
45925
45928
|
const VerticalLayoutPlugin = {
|
|
@@ -46964,16 +46967,18 @@ ${r}
|
|
|
46964
46967
|
});
|
|
46965
46968
|
}
|
|
46966
46969
|
startSessionsForAllApps() {
|
|
46970
|
+
var _a3;
|
|
46967
46971
|
let e = parseMarimoIslandApps(this.root);
|
|
46968
46972
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
46969
|
-
|
|
46970
|
-
|
|
46971
|
-
|
|
46973
|
+
let r = (_a3 = e.length === 1 ? getMarimoExportContext() : void 0) == null ? void 0 : _a3.notebookCode;
|
|
46974
|
+
for (let c of e) {
|
|
46975
|
+
let e2 = r || createMarimoFile(c);
|
|
46976
|
+
Logger.debug(`App ${c.id} marimo file:
|
|
46972
46977
|
`, e2), this.startSession({
|
|
46973
46978
|
code: e2,
|
|
46974
|
-
appId:
|
|
46979
|
+
appId: c.id
|
|
46975
46980
|
}).catch((e3) => {
|
|
46976
|
-
Logger.error(`Failed to start session for app ${
|
|
46981
|
+
Logger.error(`Failed to start session for app ${c.id}:`, e3);
|
|
46977
46982
|
});
|
|
46978
46983
|
}
|
|
46979
46984
|
}
|