@floegence/floe-webapp-core 0.86.58 → 0.86.62
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/components/chat/blocks/BlockRenderer.js +1 -1
- package/dist/components/chat/blocks/CodeDiffBlock.js +56 -56
- package/dist/components/chat/blocks/ImageBlock.js +1 -1
- package/dist/components/chat/blocks/ToolCallBlock.js +57 -57
- package/dist/components/chat/status/ConnectionStatus.js +10 -10
- package/dist/components/deck/DeckCell.js +25 -25
- package/dist/components/deck/DeckContextMenu.js +20 -20
- package/dist/components/deck/DeckGrid.js +1 -1
- package/dist/components/deck/DeckTopBar.js +42 -42
- package/dist/components/deck/DropZonePreview.js +6 -6
- package/dist/components/deck/LayoutSelector.js +53 -53
- package/dist/components/deck/WidgetFrame.js +28 -28
- package/dist/components/deck/WidgetPalette.js +31 -31
- package/dist/components/deck/WidgetTypeSwitcher.js +31 -31
- package/dist/components/file-browser/Breadcrumb.js +27 -27
- package/dist/components/file-browser/DirectoryTree.js +15 -15
- package/dist/components/file-browser/DragPreview.js +58 -58
- package/dist/components/file-browser/FileBrowser.js +17 -17
- package/dist/components/file-browser/FileBrowserStatusBar.js +18 -18
- package/dist/components/file-browser/FileBrowserToolbar.js +27 -27
- package/dist/components/file-browser/FileContextMenu.js +47 -47
- package/dist/components/file-browser/FileGridView.js +53 -51
- package/dist/components/file-browser/FileItemDecorations.js +30 -27
- package/dist/components/file-browser/FileListView.js +114 -114
- package/dist/components/icons/index.js +1357 -1357
- package/dist/components/launchpad/Launchpad.js +14 -14
- package/dist/components/launchpad/LaunchpadGrid.js +7 -7
- package/dist/components/launchpad/LaunchpadItem.js +11 -11
- package/dist/components/launchpad/LaunchpadPagination.js +16 -16
- package/dist/components/launchpad/LaunchpadSearch.js +9 -9
- package/dist/components/layout/ActivityBar.js +52 -55
- package/dist/components/layout/BottomBar.js +17 -17
- package/dist/components/layout/MobileNavigationPanel.js +36 -36
- package/dist/components/layout/MobileTabBar.js +39 -39
- package/dist/components/layout/Panel.js +16 -16
- package/dist/components/layout/ResizeHandle.js +19 -19
- package/dist/components/layout/Shell.js +50 -50
- package/dist/components/layout/Sidebar.js +37 -36
- package/dist/components/layout/SidebarPane.js +19 -19
- package/dist/components/layout/TopBar.js +16 -16
- package/dist/components/layout/TopBarIconButton.js +15 -15
- package/dist/components/loading/LoadingOverlay.js +9 -9
- package/dist/components/loading/Skeleton.js +11 -11
- package/dist/components/ui/Button.js +36 -36
- package/dist/components/ui/Card.d.ts +11 -62
- package/dist/components/ui/Card.js +64 -237
- package/dist/components/ui/Checkbox.js +79 -79
- package/dist/components/ui/CommandPalette.js +56 -55
- package/dist/components/ui/Dialog.js +91 -93
- package/dist/components/ui/DirectoryInput.js +22 -22
- package/dist/components/ui/DirectoryPicker.js +8 -8
- package/dist/components/ui/Dropdown.js +89 -87
- package/dist/components/ui/FeedbackIndicator.js +57 -57
- package/dist/components/ui/FileOpenPicker.js +37 -37
- package/dist/components/ui/FileSavePicker.js +41 -41
- package/dist/components/ui/FloatingWindow.js +266 -261
- package/dist/components/ui/Form.js +76 -76
- package/dist/components/ui/HighlightBlock.js +14 -14
- package/dist/components/ui/Input.js +106 -109
- package/dist/components/ui/Pagination.js +86 -86
- package/dist/components/ui/Popover.d.ts +33 -0
- package/dist/components/ui/Popover.js +133 -0
- package/dist/components/ui/ProcessingIndicator.js +344 -345
- package/dist/components/ui/Progress.js +94 -97
- package/dist/components/ui/QuoteBlock.js +25 -25
- package/dist/components/ui/Radio.js +91 -91
- package/dist/components/ui/SegmentedControl.js +24 -24
- package/dist/components/ui/Stepper.js +68 -60
- package/dist/components/ui/Switch.js +25 -25
- package/dist/components/ui/Tabs.js +99 -87
- package/dist/components/ui/Tag.js +12 -9
- package/dist/components/ui/Tooltip.js +30 -30
- package/dist/components/ui/floatingPresence.d.ts +7 -0
- package/dist/components/ui/floatingPresence.js +80 -39
- package/dist/components/ui/index.d.ts +2 -1
- package/dist/components/ui/picker/DirectoryFavorites.js +27 -27
- package/dist/components/ui/picker/PickerBase.js +107 -107
- package/dist/context/NotificationContext.js +4 -4
- package/dist/context/ThemeContext.js +71 -70
- package/dist/floe.css +205 -43
- package/dist/full.js +650 -652
- package/dist/language.css +320 -0
- package/dist/primitives.css +23 -17
- package/dist/standalone.css +1 -0
- package/dist/styles/themes/classicSemanticTokens.d.ts +122 -122
- package/dist/styles/themes/classicSemanticTokens.js +140 -138
- package/dist/styles/themes/index.d.ts +3 -1
- package/dist/styles/themes/index.js +10 -10
- package/dist/styles/themes/presets.d.ts +2 -2
- package/dist/styles/themes/presets.js +34 -34
- package/dist/styles/tokens.d.ts +152 -68
- package/dist/styles/tokens.js +87 -49
- package/dist/styles.css +1 -1
- package/dist/surface.css +161 -116
- package/dist/themes/dark.css +64 -64
- package/dist/themes/light.css +64 -64
- package/dist/ui.css +171 -255
- package/dist/ui.js +176 -178
- package/dist/utils/hotInteraction.d.ts +7 -0
- package/dist/utils/hotInteraction.js +12 -12
- package/dist/widgets/TerminalWidget.js +28 -28
- package/dist/workbench-composition.css +15 -15
- package/package.json +1 -1
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
import { createComponent as l, Portal as
|
|
2
|
-
import { createSignal as x, createUniqueId as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { useOptionalLayout as
|
|
5
|
-
import { useResolvedFloeConfig as
|
|
6
|
-
import { useMediaQuery as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { Restore as
|
|
9
|
-
import { startHotInteraction as
|
|
10
|
-
import { startPointerSession as
|
|
11
|
-
import { resolveFloatingWindowViewport as
|
|
12
|
-
import { observeViewport as
|
|
13
|
-
import { createFloatingPresence as
|
|
14
|
-
import { LOCAL_INTERACTION_SURFACE_ATTR as
|
|
15
|
-
import { resolveFloatingBoundary as
|
|
16
|
-
import { SURFACE_PORTAL_LAYER_ATTR as
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
const
|
|
1
|
+
import { createComponent as l, Portal as rt, use as Q, spread as ke, mergeProps as Oe, memo as Z, insert as f, effect as w, setAttribute as at, addEventListener as P, className as v, template as d, delegateEvents as lt } from "solid-js/web";
|
|
2
|
+
import { createSignal as x, createUniqueId as st, onCleanup as D, onMount as dt, createEffect as I, untrack as W, Show as y, batch as he } from "solid-js";
|
|
3
|
+
import { cn as J } from "../../utils/cn.js";
|
|
4
|
+
import { useOptionalLayout as ct } from "../../context/LayoutContext.js";
|
|
5
|
+
import { useResolvedFloeConfig as ut } from "../../context/FloeConfigContext.js";
|
|
6
|
+
import { useMediaQuery as ft } from "../../hooks/useMediaQuery.js";
|
|
7
|
+
import { Button as Te } from "./Button.js";
|
|
8
|
+
import { Restore as ht, Maximize as wt, X as gt } from "../icons/index.js";
|
|
9
|
+
import { startHotInteraction as mt } from "../../utils/hotInteraction.js";
|
|
10
|
+
import { startPointerSession as vt } from "./pointerSession.js";
|
|
11
|
+
import { resolveFloatingWindowViewport as we, normalizeFloatingWindowRect as ge, resolveFloatingWindowRect as xt } from "./floatingWindowGeometry.js";
|
|
12
|
+
import { observeViewport as yt } from "../../viewport.js";
|
|
13
|
+
import { createFloatingPresence as bt } from "./floatingPresence.js";
|
|
14
|
+
import { LOCAL_INTERACTION_SURFACE_ATTR as Le } from "./localInteractionSurface.js";
|
|
15
|
+
import { resolveFloatingBoundary as pt } from "./surfaceFloatingBoundary.js";
|
|
16
|
+
import { SURFACE_PORTAL_LAYER_ATTR as zt, resolveSurfacePortalHost as $t } from "./dialogSurfaceScope.js";
|
|
17
|
+
var _t = /* @__PURE__ */ d("<span hidden>"), St = /* @__PURE__ */ d('<span data-floe-floating-window-title-icon=true aria-hidden=true class="flex size-4 shrink-0 items-center justify-center">'), Pt = /* @__PURE__ */ d('<h2 class="flex min-w-0 items-center gap-2 text-xs leading-none font-medium select-none"><span class="min-w-0 truncate">'), It = /* @__PURE__ */ d('<div data-floe-floating-window-header-actions=true class="flex shrink-0 cursor-default items-center gap-1"><span aria-hidden=true class="mx-2 h-4 w-px shrink-0 bg-border">'), Rt = /* @__PURE__ */ d('<div data-floe-floating-window-footer=true class="flex items-center justify-end gap-2 p-3 border-t border-[var(--floe-line)]">'), Ct = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=n style=touch-action:none>"), At = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=s style=touch-action:none>"), Et = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=e style=touch-action:none>"), Mt = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=w style=touch-action:none>"), Ft = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=ne style=touch-action:none>"), kt = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=nw style=touch-action:none>"), Ot = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=se style=touch-action:none>"), Tt = /* @__PURE__ */ d("<div data-floe-floating-window-resize-handle=sw style=touch-action:none>"), Lt = /* @__PURE__ */ d('<div data-floe-geometry-surface=floating-window><div data-floe-dialog-surface-host=true><div data-floe-floating-window-titlebar=true style=touch-action:none><div class="flex-1 min-w-0 px-2"></div><div class="flex h-full shrink-0 items-stretch"></div></div><div data-floe-floating-window-content=true class="min-h-0 flex-1 overflow-auto overscroll-contain p-3">');
|
|
18
|
+
function en(n) {
|
|
19
|
+
const me = () => n.resizable ?? !0, K = () => n.maximizable ?? !0, ve = () => n.draggable ?? !0, q = () => n.minSize ?? {
|
|
20
20
|
width: 200,
|
|
21
21
|
height: 150
|
|
22
|
-
},
|
|
22
|
+
}, H = () => n.maxSize ?? {
|
|
23
23
|
width: 1 / 0,
|
|
24
24
|
height: 1 / 0
|
|
25
25
|
};
|
|
26
|
-
let
|
|
27
|
-
const [
|
|
26
|
+
let ee;
|
|
27
|
+
const [O, Be] = x(), [R, De] = x({
|
|
28
28
|
x: 0,
|
|
29
29
|
y: 0,
|
|
30
30
|
width: 0,
|
|
31
31
|
height: 0
|
|
32
32
|
}, {
|
|
33
33
|
equals: (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height
|
|
34
|
-
}), [
|
|
35
|
-
x: (e.x + (
|
|
36
|
-
y: (e.y + (
|
|
37
|
-
}), qe = () => n.zIndex ?? 100, He =
|
|
34
|
+
}), [te, We] = x(!0), g = () => !!(n.compactBelow && R().width < n.compactBelow), b = () => n.viewportInsets, T = () => O()?.fixedScale ?? 1, ne = (e) => ({
|
|
35
|
+
x: (e.x + (O()?.fixedOffset.left ?? 0)) / T(),
|
|
36
|
+
y: (e.y + (O()?.fixedOffset.top ?? 0)) / T()
|
|
37
|
+
}), qe = () => n.zIndex ?? 100, He = st(), Xe = ct(), Ye = ut(), E = Xe?.isMobile ?? ft(() => Ye.config.layout.mobileQuery), X = 16, xe = () => `floating-window-${He}-title`, [Ne, Ve] = x(n.defaultPosition ?? {
|
|
38
38
|
x: 0,
|
|
39
39
|
y: 0
|
|
40
|
-
}), [
|
|
40
|
+
}), [je, Ue] = x(n.defaultSize ?? {
|
|
41
41
|
width: 400,
|
|
42
42
|
height: 300
|
|
43
|
-
}), [
|
|
44
|
-
open: () => n.open
|
|
43
|
+
}), [c, ie] = x(!1), [L, ye] = x(!1), [Y, be] = x(!1), [Ge, oe] = x(!1), M = bt({
|
|
44
|
+
open: () => n.open,
|
|
45
|
+
element: () => ae
|
|
45
46
|
});
|
|
46
|
-
let
|
|
47
|
+
let p = {
|
|
47
48
|
x: 0,
|
|
48
49
|
y: 0
|
|
49
|
-
},
|
|
50
|
+
}, F = {
|
|
50
51
|
x: 0,
|
|
51
52
|
y: 0,
|
|
52
53
|
width: 0,
|
|
53
54
|
height: 0
|
|
54
|
-
},
|
|
55
|
+
}, re = 32, pe = {
|
|
55
56
|
x: 0,
|
|
56
57
|
y: 0
|
|
57
|
-
},
|
|
58
|
+
}, ze = {
|
|
58
59
|
x: 0,
|
|
59
60
|
y: 0,
|
|
60
61
|
width: 0,
|
|
61
62
|
height: 0
|
|
62
|
-
},
|
|
63
|
+
}, $e = "se", s, ae, le, h = null, N, u = null, C = {
|
|
63
64
|
x: 0,
|
|
64
65
|
y: 0
|
|
65
|
-
}, k = null, V = null,
|
|
66
|
+
}, k = null, V = null, z, se = !1, a = {
|
|
66
67
|
x: n.defaultPosition?.x ?? 0,
|
|
67
68
|
y: n.defaultPosition?.y ?? 0,
|
|
68
69
|
width: n.defaultSize?.width ?? 400,
|
|
69
70
|
height: n.defaultSize?.height ?? 300
|
|
70
|
-
},
|
|
71
|
-
...
|
|
71
|
+
}, m = {
|
|
72
|
+
...a
|
|
72
73
|
}, A;
|
|
73
|
-
const
|
|
74
|
-
|
|
74
|
+
const _e = (e) => {
|
|
75
|
+
m = {
|
|
75
76
|
...e
|
|
76
77
|
};
|
|
77
|
-
const t =
|
|
78
|
+
const t = we(R(), b());
|
|
78
79
|
A = {
|
|
79
80
|
x: t.width > e.width ? (e.x - t.x) / (t.width - e.width) : A?.x ?? 0.5,
|
|
80
81
|
y: t.height > e.height ? (e.y - t.y) / (t.height - e.height) : A?.y ?? 0.5
|
|
81
82
|
};
|
|
82
|
-
},
|
|
83
|
+
}, Qe = {
|
|
83
84
|
n: "ns-resize",
|
|
84
85
|
s: "ns-resize",
|
|
85
86
|
e: "ew-resize",
|
|
@@ -88,52 +89,57 @@ function Kt(n) {
|
|
|
88
89
|
nw: "nwse-resize",
|
|
89
90
|
se: "nwse-resize",
|
|
90
91
|
sw: "nesw-resize"
|
|
91
|
-
},
|
|
92
|
+
}, de = (e, t) => {
|
|
92
93
|
if (!e) {
|
|
93
94
|
V?.(), V = null;
|
|
94
95
|
return;
|
|
95
96
|
}
|
|
96
|
-
V?.(), V =
|
|
97
|
-
kind:
|
|
97
|
+
V?.(), V = mt({
|
|
98
|
+
kind: u === "resize" ? "resize" : "drag",
|
|
98
99
|
cursor: t,
|
|
99
|
-
lockUserSelect: !0
|
|
100
|
+
lockUserSelect: !0,
|
|
101
|
+
// The titlebar declares its own cursor and travels with the pointer, so a
|
|
102
|
+
// document-wide lock shows nothing at the pointer while restyling the whole
|
|
103
|
+
// document. Resize handles are a few pixels wide and the pointer can leave
|
|
104
|
+
// them at the size limits, so they keep the lock.
|
|
105
|
+
lockDocumentStyles: u !== "drag"
|
|
100
106
|
});
|
|
101
|
-
},
|
|
102
|
-
if (
|
|
103
|
-
const t =
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
const e =
|
|
107
|
+
}, j = (e) => {
|
|
108
|
+
if ((e.x !== a.x || e.y !== a.y || e.width !== a.width || e.height !== a.height) && (z?.cancel(), z = void 0), a = e, !s) return;
|
|
109
|
+
const t = ne(e);
|
|
110
|
+
s.style.transform = `translate3d(${t.x}px, ${t.y}px, 0)`, s.style.width = `${e.width / T()}px`, s.style.height = `${e.height / T()}px`;
|
|
111
|
+
}, Se = () => {
|
|
112
|
+
const e = Ne(), t = je();
|
|
107
113
|
return {
|
|
108
114
|
x: e.x,
|
|
109
115
|
y: e.y,
|
|
110
116
|
width: t.width,
|
|
111
117
|
height: t.height
|
|
112
118
|
};
|
|
113
|
-
},
|
|
114
|
-
|
|
119
|
+
}, ce = (e) => {
|
|
120
|
+
(e.x !== a.x || e.y !== a.y || e.width !== a.width || e.height !== a.height) && (z?.cancel(), z = void 0), a = e, Ve((t) => t.x === e.x && t.y === e.y ? t : {
|
|
115
121
|
x: e.x,
|
|
116
122
|
y: e.y
|
|
117
|
-
}),
|
|
123
|
+
}), Ue((t) => t.width === e.width && t.height === e.height ? t : {
|
|
118
124
|
width: e.width,
|
|
119
125
|
height: e.height
|
|
120
126
|
});
|
|
121
|
-
},
|
|
127
|
+
}, Ze = () => {
|
|
122
128
|
try {
|
|
123
|
-
|
|
129
|
+
s?.focus({
|
|
124
130
|
preventScroll: !0
|
|
125
131
|
});
|
|
126
132
|
} catch {
|
|
127
133
|
}
|
|
128
|
-
},
|
|
134
|
+
}, Je = (e) => {
|
|
129
135
|
const t = e instanceof Element ? e : null;
|
|
130
136
|
return t ? t.closest('button, input, select, textarea, a, [role="button"], [tabindex]:not([tabindex="-1"])') === null : !0;
|
|
131
|
-
},
|
|
137
|
+
}, ue = (e) => !!s && e instanceof Node && s.contains(e), Ke = (e) => {
|
|
132
138
|
const o = (e instanceof Element ? e : null)?.closest('[role="menu"], [role="dialog"]')?.closest('[data-floe-surface-floating-layer="true"], [data-floe-dropdown]');
|
|
133
|
-
return !!(o &&
|
|
134
|
-
},
|
|
135
|
-
if (!
|
|
136
|
-
const e =
|
|
139
|
+
return !!(o && s?.contains(o));
|
|
140
|
+
}, et = () => {
|
|
141
|
+
if (!s) return null;
|
|
142
|
+
const e = s.getBoundingClientRect();
|
|
137
143
|
return {
|
|
138
144
|
x: e.left,
|
|
139
145
|
y: e.top,
|
|
@@ -141,100 +147,98 @@ function Kt(n) {
|
|
|
141
147
|
height: e.height
|
|
142
148
|
};
|
|
143
149
|
}, Pe = () => {
|
|
144
|
-
if (n.open && !(
|
|
145
|
-
if (
|
|
146
|
-
if (Math.hypot(
|
|
147
|
-
const e =
|
|
148
|
-
rect:
|
|
149
|
-
minSize:
|
|
150
|
-
maxSize:
|
|
151
|
-
viewport:
|
|
152
|
-
viewportInsets:
|
|
153
|
-
mobile: n.boundary === void 0 &&
|
|
154
|
-
mobilePadding:
|
|
155
|
-
}), t = Math.max(0, Math.min(1, (
|
|
156
|
-
|
|
150
|
+
if (n.open && !(h === null || u === null) && !(typeof window > "u")) {
|
|
151
|
+
if (u === "drag" && c()) {
|
|
152
|
+
if (Math.hypot(C.x - p.x, C.y - p.y) < 4) return;
|
|
153
|
+
const e = ge({
|
|
154
|
+
rect: m,
|
|
155
|
+
minSize: q(),
|
|
156
|
+
maxSize: H(),
|
|
157
|
+
viewport: R(),
|
|
158
|
+
viewportInsets: b(),
|
|
159
|
+
mobile: n.boundary === void 0 && E(),
|
|
160
|
+
mobilePadding: X
|
|
161
|
+
}), t = Math.max(0, Math.min(1, (p.x - F.x) / Math.max(1, F.width))), r = Math.max(0, Math.min(re, p.y - F.y));
|
|
162
|
+
F = {
|
|
157
163
|
...e,
|
|
158
|
-
x:
|
|
159
|
-
y:
|
|
160
|
-
},
|
|
161
|
-
re(!1), j(I);
|
|
162
|
-
});
|
|
164
|
+
x: p.x - e.width * t,
|
|
165
|
+
y: p.y - r
|
|
166
|
+
}, ie(!1);
|
|
163
167
|
}
|
|
164
|
-
|
|
165
|
-
mode:
|
|
166
|
-
pointer:
|
|
167
|
-
dragStartPos:
|
|
168
|
-
dragStartRect:
|
|
169
|
-
dragTitlebarHeight:
|
|
170
|
-
resizeStartPos:
|
|
171
|
-
resizeStartRect:
|
|
172
|
-
resizeHandle:
|
|
173
|
-
minSize:
|
|
174
|
-
maxSize:
|
|
175
|
-
viewport:
|
|
176
|
-
viewportInsets:
|
|
177
|
-
mobile: n.boundary === void 0 &&
|
|
178
|
-
mobilePadding:
|
|
168
|
+
j(xt({
|
|
169
|
+
mode: u,
|
|
170
|
+
pointer: C,
|
|
171
|
+
dragStartPos: p,
|
|
172
|
+
dragStartRect: F,
|
|
173
|
+
dragTitlebarHeight: re,
|
|
174
|
+
resizeStartPos: pe,
|
|
175
|
+
resizeStartRect: ze,
|
|
176
|
+
resizeHandle: $e,
|
|
177
|
+
minSize: q(),
|
|
178
|
+
maxSize: H(),
|
|
179
|
+
viewport: R(),
|
|
180
|
+
viewportInsets: b(),
|
|
181
|
+
mobile: n.boundary === void 0 && E(),
|
|
182
|
+
mobilePadding: X
|
|
179
183
|
}));
|
|
180
184
|
}
|
|
181
|
-
},
|
|
185
|
+
}, B = (e) => {
|
|
182
186
|
if (typeof window > "u") return;
|
|
183
|
-
const t =
|
|
184
|
-
if (
|
|
185
|
-
|
|
187
|
+
const t = R();
|
|
188
|
+
if (c() || g()) {
|
|
189
|
+
ce(we(t, b()));
|
|
186
190
|
return;
|
|
187
191
|
}
|
|
188
|
-
let r =
|
|
189
|
-
rect:
|
|
190
|
-
minSize:
|
|
191
|
-
maxSize:
|
|
192
|
+
let r = ge({
|
|
193
|
+
rect: m,
|
|
194
|
+
minSize: q(),
|
|
195
|
+
maxSize: H(),
|
|
192
196
|
viewport: t,
|
|
193
|
-
viewportInsets:
|
|
194
|
-
mobile: n.boundary === void 0 &&
|
|
195
|
-
mobilePadding:
|
|
197
|
+
viewportInsets: b(),
|
|
198
|
+
mobile: n.boundary === void 0 && E(),
|
|
199
|
+
mobilePadding: X,
|
|
196
200
|
center: e?.center ?? !1
|
|
197
201
|
});
|
|
198
202
|
if (n.boundary !== void 0 && A && !e?.center) {
|
|
199
|
-
const o =
|
|
203
|
+
const o = we(t, b());
|
|
200
204
|
r = {
|
|
201
205
|
...r,
|
|
202
206
|
x: o.x + A.x * Math.max(0, o.width - r.width),
|
|
203
207
|
y: o.y + A.y * Math.max(0, o.height - r.height)
|
|
204
208
|
};
|
|
205
209
|
}
|
|
206
|
-
if (
|
|
210
|
+
if (ce(r), !A) {
|
|
207
211
|
const o = {
|
|
208
|
-
width:
|
|
209
|
-
height:
|
|
212
|
+
width: m.width,
|
|
213
|
+
height: m.height
|
|
210
214
|
};
|
|
211
|
-
|
|
215
|
+
_e(r), Object.assign(m, o);
|
|
212
216
|
}
|
|
213
217
|
}, Ie = (e) => {
|
|
214
218
|
k !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(k), k = null), e && Pe();
|
|
215
|
-
const t =
|
|
219
|
+
const t = u === "drag", r = e && !(t && c()) ? et() ?? a : null, o = r ? ge({
|
|
216
220
|
rect: r,
|
|
217
|
-
minSize:
|
|
218
|
-
maxSize:
|
|
219
|
-
viewport:
|
|
220
|
-
viewportInsets:
|
|
221
|
-
mobile: n.boundary === void 0 &&
|
|
222
|
-
mobilePadding:
|
|
221
|
+
minSize: q(),
|
|
222
|
+
maxSize: H(),
|
|
223
|
+
viewport: R(),
|
|
224
|
+
viewportInsets: b(),
|
|
225
|
+
mobile: n.boundary === void 0 && E(),
|
|
226
|
+
mobilePadding: X
|
|
223
227
|
}) : null;
|
|
224
|
-
if (
|
|
228
|
+
if (he(() => {
|
|
225
229
|
if (o) {
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
width:
|
|
229
|
-
height:
|
|
230
|
+
ce(o);
|
|
231
|
+
const S = {
|
|
232
|
+
width: m.width,
|
|
233
|
+
height: m.height
|
|
230
234
|
};
|
|
231
|
-
|
|
235
|
+
_e(o), u === "drag" && Object.assign(m, S);
|
|
232
236
|
}
|
|
233
|
-
|
|
234
|
-
}),
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
transform: `translate3d(${
|
|
237
|
+
h = null, u = null, ye(!1), be(!1);
|
|
238
|
+
}), de(!1, ""), N = void 0, o && (j(o), t && r && s?.animate && (r.x !== o.x || r.y !== o.y) && !window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)) {
|
|
239
|
+
const S = ne(r), U = ne(o);
|
|
240
|
+
z = s.animate([{
|
|
241
|
+
transform: `translate3d(${S.x}px, ${S.y}px, 0)`
|
|
238
242
|
}, {
|
|
239
243
|
transform: `translate3d(${U.x}px, ${U.y}px, 0)`
|
|
240
244
|
}], {
|
|
@@ -242,22 +246,22 @@ function Kt(n) {
|
|
|
242
246
|
easing: "cubic-bezier(0.2, 0.8, 0.2, 1)"
|
|
243
247
|
});
|
|
244
248
|
}
|
|
245
|
-
},
|
|
249
|
+
}, fe = (e = !1) => {
|
|
246
250
|
N ? N.stop({
|
|
247
251
|
commit: e
|
|
248
252
|
}) : Ie(e);
|
|
249
253
|
};
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}),
|
|
254
|
+
D(() => {
|
|
255
|
+
fe(!1), z?.cancel();
|
|
256
|
+
}), dt(() => {
|
|
253
257
|
const e = () => {
|
|
254
|
-
const t =
|
|
258
|
+
const t = O(), r = n.boundary === void 0 ? {
|
|
255
259
|
boundaryHost: null,
|
|
256
260
|
mode: "global"
|
|
257
|
-
} :
|
|
258
|
-
owner:
|
|
259
|
-
}), o =
|
|
260
|
-
|
|
261
|
+
} : $t({
|
|
262
|
+
owner: ee
|
|
263
|
+
}), o = pt(r, n.boundary, t?.safeArea);
|
|
264
|
+
he(() => {
|
|
261
265
|
We(!!(o && o.width > 16 && o.height > 16)), De(o ? {
|
|
262
266
|
x: o.left,
|
|
263
267
|
y: o.top,
|
|
@@ -271,98 +275,98 @@ function Kt(n) {
|
|
|
271
275
|
});
|
|
272
276
|
});
|
|
273
277
|
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
Be(t),
|
|
278
|
+
D(yt(window, (t) => {
|
|
279
|
+
he(() => {
|
|
280
|
+
Be(t), W(e);
|
|
277
281
|
});
|
|
278
|
-
})),
|
|
282
|
+
})), I(() => {
|
|
279
283
|
if (!n.open || n.boundary === void 0) return;
|
|
280
284
|
let t = 0;
|
|
281
285
|
const r = () => {
|
|
282
|
-
|
|
286
|
+
W(e), t = requestAnimationFrame(r);
|
|
283
287
|
};
|
|
284
|
-
r(),
|
|
285
|
-
}), n.open ||
|
|
288
|
+
r(), D(() => cancelAnimationFrame(t));
|
|
289
|
+
}), n.open || B({
|
|
286
290
|
center: !n.defaultPosition
|
|
287
291
|
});
|
|
288
|
-
}),
|
|
292
|
+
}), I(() => {
|
|
289
293
|
if (!n.open) return;
|
|
290
|
-
|
|
291
|
-
const e = !
|
|
292
|
-
|
|
294
|
+
E();
|
|
295
|
+
const e = !se && !n.defaultPosition, t = () => {
|
|
296
|
+
B({
|
|
293
297
|
center: e
|
|
294
|
-
}),
|
|
298
|
+
}), se = !0;
|
|
295
299
|
};
|
|
296
300
|
if (typeof requestAnimationFrame > "u") {
|
|
297
301
|
t();
|
|
298
302
|
return;
|
|
299
303
|
}
|
|
300
304
|
requestAnimationFrame(t);
|
|
301
|
-
}),
|
|
302
|
-
|
|
305
|
+
}), I(() => {
|
|
306
|
+
b(), R(), g(), !(!n.open || !se || h !== null) && W(() => B({
|
|
303
307
|
center: !1
|
|
304
308
|
}));
|
|
305
|
-
}),
|
|
306
|
-
|
|
307
|
-
|
|
309
|
+
}), I(() => {
|
|
310
|
+
K() || !c() || W(() => {
|
|
311
|
+
ie(!1), B({
|
|
308
312
|
center: !1
|
|
309
313
|
});
|
|
310
314
|
});
|
|
311
|
-
}),
|
|
315
|
+
}), I(() => {
|
|
312
316
|
if (!n.open) return;
|
|
313
317
|
const e = (t) => {
|
|
314
318
|
if (t.key !== "Escape") return;
|
|
315
319
|
const r = typeof document < "u" ? document.activeElement : null;
|
|
316
|
-
!
|
|
320
|
+
!ue(t.target) && !ue(r) || Ke(t.target) || (t.preventDefault(), typeof t.stopImmediatePropagation == "function" ? t.stopImmediatePropagation() : t.stopPropagation(), n.onOpenChange(!1));
|
|
317
321
|
};
|
|
318
|
-
document.addEventListener("keydown", e, !0),
|
|
319
|
-
}),
|
|
322
|
+
document.addEventListener("keydown", e, !0), D(() => document.removeEventListener("keydown", e, !0));
|
|
323
|
+
}), I(() => {
|
|
320
324
|
if (!n.open) {
|
|
321
|
-
|
|
325
|
+
oe(!1), fe(!1);
|
|
322
326
|
return;
|
|
323
327
|
}
|
|
324
|
-
|
|
325
|
-
}),
|
|
328
|
+
oe(!0);
|
|
329
|
+
}), I(() => {
|
|
326
330
|
if (!n.open) return;
|
|
327
331
|
const e = (o) => {
|
|
328
|
-
|
|
332
|
+
oe(ue(o));
|
|
329
333
|
}, t = (o) => {
|
|
330
334
|
e(o.target);
|
|
331
335
|
}, r = (o) => {
|
|
332
336
|
e(o.target);
|
|
333
337
|
};
|
|
334
|
-
document.addEventListener("pointerdown", t), document.addEventListener("focusin", r),
|
|
338
|
+
document.addEventListener("pointerdown", t), document.addEventListener("focusin", r), D(() => {
|
|
335
339
|
document.removeEventListener("pointerdown", t), document.removeEventListener("focusin", r);
|
|
336
340
|
});
|
|
337
|
-
}),
|
|
341
|
+
}), I(() => {
|
|
338
342
|
if (!n.open) return;
|
|
339
|
-
const e =
|
|
340
|
-
|
|
343
|
+
const e = Se();
|
|
344
|
+
T(), O()?.fixedOffset, j(h === null ? e : a);
|
|
341
345
|
});
|
|
342
|
-
const
|
|
343
|
-
!ve() ||
|
|
346
|
+
const tt = (e) => {
|
|
347
|
+
!ve() || g() || h !== null || e.pointerType === "mouse" && e.button !== 0 || e.target?.closest('button, input, select, textarea, a, [role="button"], [data-floe-floating-window-header-actions]') || (e.preventDefault(), z?.cancel(), z = void 0, re = e.currentTarget instanceof HTMLElement && e.currentTarget.getBoundingClientRect().height || 32, h = e.pointerId, u = "drag", ye(!0), p = {
|
|
344
348
|
x: e.clientX,
|
|
345
349
|
y: e.clientY
|
|
346
|
-
},
|
|
347
|
-
...
|
|
348
|
-
},
|
|
350
|
+
}, F = {
|
|
351
|
+
...a
|
|
352
|
+
}, C = {
|
|
349
353
|
x: e.clientX,
|
|
350
354
|
y: e.clientY
|
|
351
|
-
},
|
|
352
|
-
},
|
|
353
|
-
!
|
|
355
|
+
}, de(!0, "grabbing"), Ce(e));
|
|
356
|
+
}, $ = (e) => (t) => {
|
|
357
|
+
!me() || c() || g() || h !== null || t.pointerType === "mouse" && t.button !== 0 || (t.preventDefault(), t.stopPropagation(), h = t.pointerId, u = "resize", be(!0), $e = e, pe = {
|
|
354
358
|
x: t.clientX,
|
|
355
359
|
y: t.clientY
|
|
356
|
-
},
|
|
357
|
-
...
|
|
358
|
-
},
|
|
360
|
+
}, ze = {
|
|
361
|
+
...a
|
|
362
|
+
}, C = {
|
|
359
363
|
x: t.clientX,
|
|
360
364
|
y: t.clientY
|
|
361
|
-
},
|
|
365
|
+
}, de(!0, Qe[e]), Ce(t));
|
|
362
366
|
}, Re = () => {
|
|
363
367
|
k = null, Pe();
|
|
364
|
-
},
|
|
365
|
-
if (!(
|
|
368
|
+
}, nt = (e) => {
|
|
369
|
+
if (!(h === null || e.pointerId !== h) && u !== null && (C = {
|
|
366
370
|
x: e.clientX,
|
|
367
371
|
y: e.clientY
|
|
368
372
|
}, k === null)) {
|
|
@@ -373,29 +377,29 @@ function Kt(n) {
|
|
|
373
377
|
k = requestAnimationFrame(Re);
|
|
374
378
|
}
|
|
375
379
|
}, Ce = (e) => {
|
|
376
|
-
N =
|
|
380
|
+
N = vt({
|
|
377
381
|
pointerEvent: e,
|
|
378
382
|
// Keep click/double-click targeting on the titlebar while retaining capture.
|
|
379
|
-
captureEl:
|
|
380
|
-
onMove:
|
|
383
|
+
captureEl: u === "drag" ? le : s,
|
|
384
|
+
onMove: nt,
|
|
381
385
|
onEnd: ({
|
|
382
386
|
commit: t,
|
|
383
387
|
reason: r,
|
|
384
388
|
snapshot: o
|
|
385
389
|
}) => {
|
|
386
|
-
|
|
390
|
+
C = {
|
|
387
391
|
x: o.latestClientX,
|
|
388
392
|
y: o.latestClientY
|
|
389
393
|
}, Ie(t || r === "pointer_cancel");
|
|
390
394
|
}
|
|
391
395
|
});
|
|
392
396
|
}, Ae = () => {
|
|
393
|
-
!
|
|
394
|
-
}, nt = (e) => {
|
|
395
|
-
e.target?.closest("button, [data-floe-floating-window-header-actions]") || Ae();
|
|
397
|
+
!K() || g() || (h !== null && fe(!0), ie(!c()), B());
|
|
396
398
|
}, it = (e) => {
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
+
e.target?.closest("button, [data-floe-floating-window-header-actions]") || Ae();
|
|
400
|
+
}, ot = (e) => {
|
|
401
|
+
Je(e.target) && Ze();
|
|
402
|
+
}, _ = (e) => J("absolute z-10", {
|
|
399
403
|
n: "cursor-ns-resize top-0 left-2 right-2 h-1",
|
|
400
404
|
s: "cursor-ns-resize bottom-0 left-2 right-2 h-1",
|
|
401
405
|
e: "cursor-ew-resize right-0 top-2 bottom-2 w-1",
|
|
@@ -406,108 +410,109 @@ function Kt(n) {
|
|
|
406
410
|
sw: "cursor-nesw-resize bottom-0 left-0 w-2 h-2"
|
|
407
411
|
}[e]);
|
|
408
412
|
return [(() => {
|
|
409
|
-
var e =
|
|
410
|
-
return typeof t == "function" ?
|
|
411
|
-
})(), l(
|
|
413
|
+
var e = _t(), t = ee;
|
|
414
|
+
return typeof t == "function" ? Q(t, e) : ee = e, e;
|
|
415
|
+
})(), l(y, {
|
|
412
416
|
get when() {
|
|
413
|
-
return
|
|
417
|
+
return M.mounted();
|
|
414
418
|
},
|
|
415
419
|
get children() {
|
|
416
|
-
return l(
|
|
420
|
+
return l(rt, {
|
|
417
421
|
get children() {
|
|
418
|
-
var e = Lt(), t = e.firstChild, r = t.firstChild, o = r.firstChild,
|
|
419
|
-
|
|
422
|
+
var e = Lt(), t = e.firstChild, r = t.firstChild, o = r.firstChild, S = o.nextSibling, U = r.nextSibling;
|
|
423
|
+
Q((i) => {
|
|
424
|
+
s = i, W(() => j(Se()));
|
|
425
|
+
}, e), ke(e, Oe({
|
|
420
426
|
get "data-floating-presence"() {
|
|
421
|
-
return
|
|
427
|
+
return M.state();
|
|
422
428
|
},
|
|
423
429
|
get "aria-hidden"() {
|
|
424
|
-
return
|
|
430
|
+
return M.exiting() || !te() ? "true" : void 0;
|
|
425
431
|
},
|
|
426
432
|
get inert() {
|
|
427
|
-
return
|
|
433
|
+
return M.exiting() || !te();
|
|
428
434
|
},
|
|
429
435
|
get "data-floe-floating-window-compact"() {
|
|
430
|
-
return
|
|
436
|
+
return g() ? "true" : void 0;
|
|
431
437
|
}
|
|
432
438
|
}, {
|
|
433
|
-
[
|
|
439
|
+
[Le]: "true"
|
|
434
440
|
}, {
|
|
435
441
|
get class() {
|
|
436
|
-
return
|
|
442
|
+
return J("fixed left-0 top-0 z-[100] flex flex-col", (L() || Y()) && "select-none", M.exiting() && "pointer-events-none");
|
|
437
443
|
},
|
|
438
444
|
get style() {
|
|
439
445
|
return {
|
|
440
|
-
visibility:
|
|
441
|
-
width: `${oe().width / E()}px`,
|
|
442
|
-
height: `${oe().height / E()}px`,
|
|
443
|
-
transform: `translate3d(${L(ie()).x}px, ${L(ie()).y}px, 0)`,
|
|
446
|
+
visibility: te() ? void 0 : "hidden",
|
|
444
447
|
"z-index": qe(),
|
|
445
|
-
"will-change":
|
|
448
|
+
"will-change": L() ? "transform" : Y() ? "transform, width, height" : void 0
|
|
446
449
|
};
|
|
447
450
|
},
|
|
448
451
|
role: "dialog",
|
|
449
452
|
get "aria-labelledby"() {
|
|
450
|
-
return
|
|
453
|
+
return Z(() => !!n.title)() ? xe() : void 0;
|
|
451
454
|
},
|
|
452
455
|
tabIndex: -1,
|
|
453
|
-
onPointerDown:
|
|
454
|
-
}), !1, !0)
|
|
455
|
-
|
|
456
|
+
onPointerDown: ot
|
|
457
|
+
}), !1, !0);
|
|
458
|
+
var Ee = ae;
|
|
459
|
+
typeof Ee == "function" ? Q(Ee, t) : ae = t, ke(t, Oe({
|
|
460
|
+
[zt]: "true"
|
|
456
461
|
}, {
|
|
457
462
|
"data-floe-floating-window-surface": "true",
|
|
458
463
|
"data-floe-surface": "floating",
|
|
459
464
|
get "data-floe-surface-interacting"() {
|
|
460
|
-
return
|
|
465
|
+
return L() || Y() ? "true" : void 0;
|
|
461
466
|
},
|
|
462
467
|
get "data-floe-floating-window-state"() {
|
|
463
|
-
return
|
|
468
|
+
return Ge() ? "active" : "inactive";
|
|
464
469
|
}
|
|
465
470
|
}, {
|
|
466
|
-
[
|
|
471
|
+
[Le]: "true"
|
|
467
472
|
}, {
|
|
468
473
|
get class() {
|
|
469
|
-
return
|
|
474
|
+
return J("relative flex h-full w-full flex-col overflow-hidden", "text-card-foreground rounded-panel", "border", "floe-floating-presence floe-floating-window-motion", (L() || Y()) && "floe-floating-presence--suspended", c() && "rounded-none", n.class);
|
|
470
475
|
},
|
|
471
476
|
get style() {
|
|
472
477
|
return {
|
|
473
|
-
"border-radius":
|
|
478
|
+
"border-radius": c() ? "0" : "var(--floe-radius-floating)"
|
|
474
479
|
};
|
|
475
480
|
},
|
|
476
481
|
get "data-floating-presence"() {
|
|
477
|
-
return
|
|
482
|
+
return M.state();
|
|
478
483
|
}
|
|
479
|
-
}), !1, !0), r.$$dblclick =
|
|
480
|
-
var Me =
|
|
481
|
-
return typeof Me == "function" ?
|
|
484
|
+
}), !1, !0), r.$$dblclick = it, r.$$pointerdown = tt;
|
|
485
|
+
var Me = le;
|
|
486
|
+
return typeof Me == "function" ? Q(Me, r) : le = r, f(o, l(y, {
|
|
482
487
|
get when() {
|
|
483
488
|
return n.title;
|
|
484
489
|
},
|
|
485
490
|
get children() {
|
|
486
|
-
var i =
|
|
487
|
-
return
|
|
491
|
+
var i = Pt(), G = i.firstChild;
|
|
492
|
+
return f(i, l(y, {
|
|
488
493
|
get when() {
|
|
489
494
|
return n.titleIcon;
|
|
490
495
|
},
|
|
491
496
|
get children() {
|
|
492
|
-
var Fe =
|
|
493
|
-
return
|
|
497
|
+
var Fe = St();
|
|
498
|
+
return f(Fe, () => n.titleIcon), Fe;
|
|
494
499
|
}
|
|
495
|
-
}), G),
|
|
500
|
+
}), G), f(G, () => n.title), w(() => at(i, "id", xe())), i;
|
|
496
501
|
}
|
|
497
|
-
})),
|
|
502
|
+
})), f(r, l(y, {
|
|
498
503
|
get when() {
|
|
499
504
|
return n.headerActions;
|
|
500
505
|
},
|
|
501
506
|
get children() {
|
|
502
|
-
var i =
|
|
503
|
-
return
|
|
507
|
+
var i = It(), G = i.firstChild;
|
|
508
|
+
return f(i, () => n.headerActions, G), i;
|
|
504
509
|
}
|
|
505
|
-
}),
|
|
510
|
+
}), S), f(S, l(y, {
|
|
506
511
|
get when() {
|
|
507
|
-
return
|
|
512
|
+
return Z(() => !!K())() && !g();
|
|
508
513
|
},
|
|
509
514
|
get children() {
|
|
510
|
-
return l(
|
|
515
|
+
return l(Te, {
|
|
511
516
|
variant: "ghost",
|
|
512
517
|
size: "icon",
|
|
513
518
|
"data-floe-floating-window-control": "maximize",
|
|
@@ -516,20 +521,20 @@ function Kt(n) {
|
|
|
516
521
|
i.stopPropagation(), Ae();
|
|
517
522
|
},
|
|
518
523
|
get "aria-label"() {
|
|
519
|
-
return
|
|
524
|
+
return Z(() => !!c())() ? n.labels?.restore ?? "Restore" : n.labels?.maximize ?? "Maximize";
|
|
520
525
|
},
|
|
521
526
|
get children() {
|
|
522
|
-
return l(
|
|
527
|
+
return l(y, {
|
|
523
528
|
get when() {
|
|
524
|
-
return
|
|
529
|
+
return c();
|
|
525
530
|
},
|
|
526
531
|
get fallback() {
|
|
527
|
-
return l(
|
|
532
|
+
return l(wt, {
|
|
528
533
|
class: "w-3 h-3"
|
|
529
534
|
});
|
|
530
535
|
},
|
|
531
536
|
get children() {
|
|
532
|
-
return l(
|
|
537
|
+
return l(ht, {
|
|
533
538
|
class: "w-3 h-3"
|
|
534
539
|
});
|
|
535
540
|
}
|
|
@@ -537,7 +542,7 @@ function Kt(n) {
|
|
|
537
542
|
}
|
|
538
543
|
});
|
|
539
544
|
}
|
|
540
|
-
}), null),
|
|
545
|
+
}), null), f(S, l(Te, {
|
|
541
546
|
variant: "ghost-destructive",
|
|
542
547
|
size: "icon",
|
|
543
548
|
"data-floe-floating-window-control": "close",
|
|
@@ -549,63 +554,63 @@ function Kt(n) {
|
|
|
549
554
|
return n.labels?.close ?? "Close";
|
|
550
555
|
},
|
|
551
556
|
get children() {
|
|
552
|
-
return l(
|
|
557
|
+
return l(gt, {
|
|
553
558
|
class: "w-3.5 h-3.5"
|
|
554
559
|
});
|
|
555
560
|
}
|
|
556
|
-
}), null),
|
|
561
|
+
}), null), f(U, () => n.children), f(t, l(y, {
|
|
557
562
|
get when() {
|
|
558
563
|
return n.footer;
|
|
559
564
|
},
|
|
560
565
|
get children() {
|
|
561
|
-
var i =
|
|
562
|
-
return
|
|
566
|
+
var i = Rt();
|
|
567
|
+
return f(i, () => n.footer), i;
|
|
563
568
|
}
|
|
564
|
-
}), null),
|
|
569
|
+
}), null), f(t, l(y, {
|
|
565
570
|
get when() {
|
|
566
|
-
return
|
|
571
|
+
return Z(() => !!(me() && !c()))() && !g();
|
|
567
572
|
},
|
|
568
573
|
get children() {
|
|
569
574
|
return [(() => {
|
|
570
|
-
var i = Rt();
|
|
571
|
-
return _(i, "pointerdown", p("n"), !0), h(() => m(i, z("n"))), i;
|
|
572
|
-
})(), (() => {
|
|
573
575
|
var i = Ct();
|
|
574
|
-
return
|
|
575
|
-
})(),
|
|
576
|
+
return P(i, "pointerdown", $("n"), !0), w(() => v(i, _("n"))), i;
|
|
577
|
+
})(), (() => {
|
|
578
|
+
var i = At();
|
|
579
|
+
return P(i, "pointerdown", $("s"), !0), w(() => v(i, _("s"))), i;
|
|
580
|
+
})(), l(y, {
|
|
576
581
|
get when() {
|
|
577
|
-
return !
|
|
582
|
+
return !E();
|
|
578
583
|
},
|
|
579
584
|
get children() {
|
|
580
585
|
return [(() => {
|
|
581
|
-
var i = At();
|
|
582
|
-
return _(i, "pointerdown", p("e"), !0), h(() => m(i, z("e"))), i;
|
|
583
|
-
})(), (() => {
|
|
584
586
|
var i = Et();
|
|
585
|
-
return
|
|
587
|
+
return P(i, "pointerdown", $("e"), !0), w(() => v(i, _("e"))), i;
|
|
586
588
|
})(), (() => {
|
|
587
589
|
var i = Mt();
|
|
588
|
-
return
|
|
590
|
+
return P(i, "pointerdown", $("w"), !0), w(() => v(i, _("w"))), i;
|
|
589
591
|
})(), (() => {
|
|
590
592
|
var i = Ft();
|
|
591
|
-
return
|
|
593
|
+
return P(i, "pointerdown", $("ne"), !0), w(() => v(i, _("ne"))), i;
|
|
592
594
|
})(), (() => {
|
|
593
595
|
var i = kt();
|
|
594
|
-
return
|
|
596
|
+
return P(i, "pointerdown", $("nw"), !0), w(() => v(i, _("nw"))), i;
|
|
597
|
+
})(), (() => {
|
|
598
|
+
var i = Ot();
|
|
599
|
+
return P(i, "pointerdown", $("se"), !0), w(() => v(i, _("se"))), i;
|
|
595
600
|
})(), (() => {
|
|
596
601
|
var i = Tt();
|
|
597
|
-
return
|
|
602
|
+
return P(i, "pointerdown", $("sw"), !0), w(() => v(i, _("sw"))), i;
|
|
598
603
|
})()];
|
|
599
604
|
}
|
|
600
605
|
})];
|
|
601
606
|
}
|
|
602
|
-
}), null),
|
|
607
|
+
}), null), w(() => v(r, J("flex shrink-0 items-center justify-between h-8", "border-b", c() ? "rounded-none" : "rounded-t-panel", ve() && !g() && (L() ? "cursor-grabbing" : "cursor-move")))), e;
|
|
603
608
|
}
|
|
604
609
|
});
|
|
605
610
|
}
|
|
606
611
|
})];
|
|
607
612
|
}
|
|
608
|
-
|
|
613
|
+
lt(["pointerdown", "dblclick"]);
|
|
609
614
|
export {
|
|
610
|
-
|
|
615
|
+
en as FloatingWindow
|
|
611
616
|
};
|