@floegence/floe-webapp-core 0.86.60 → 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 +213 -205
- 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,47 +1,48 @@
|
|
|
1
|
-
import { createComponent as l, Portal as
|
|
2
|
-
import { createSignal 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 [O,
|
|
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
|
-
}), [
|
|
34
|
+
}), [te, We] = x(!0), g = () => !!(n.compactBelow && R().width < n.compactBelow), b = () => n.viewportInsets, T = () => O()?.fixedScale ?? 1, ne = (e) => ({
|
|
35
35
|
x: (e.x + (O()?.fixedOffset.left ?? 0)) / T(),
|
|
36
36
|
y: (e.y + (O()?.fixedOffset.top ?? 0)) / T()
|
|
37
|
-
}),
|
|
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
|
-
}), [c,
|
|
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
47
|
let p = {
|
|
47
48
|
x: 0,
|
|
@@ -51,18 +52,18 @@ function Jt(n) {
|
|
|
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, z,
|
|
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,
|
|
@@ -70,16 +71,16 @@ function Jt(n) {
|
|
|
70
71
|
}, m = {
|
|
71
72
|
...a
|
|
72
73
|
}, A;
|
|
73
|
-
const
|
|
74
|
+
const _e = (e) => {
|
|
74
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,50 +89,55 @@ function Jt(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
107
|
}, j = (e) => {
|
|
102
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;
|
|
103
|
-
const t =
|
|
109
|
+
const t = ne(e);
|
|
104
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`;
|
|
105
|
-
},
|
|
106
|
-
const e =
|
|
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
|
-
(e.x !== a.x || e.y !== a.y || e.width !== a.width || e.height !== a.height) && (z?.cancel(), z = void 0), a = e,
|
|
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
139
|
return !!(o && s?.contains(o));
|
|
134
|
-
},
|
|
140
|
+
}, et = () => {
|
|
135
141
|
if (!s) return null;
|
|
136
142
|
const e = s.getBoundingClientRect();
|
|
137
143
|
return {
|
|
@@ -140,97 +146,97 @@ function Jt(n) {
|
|
|
140
146
|
width: e.width,
|
|
141
147
|
height: e.height
|
|
142
148
|
};
|
|
143
|
-
},
|
|
144
|
-
if (n.open && !(
|
|
145
|
-
if (
|
|
149
|
+
}, Pe = () => {
|
|
150
|
+
if (n.open && !(h === null || u === null) && !(typeof window > "u")) {
|
|
151
|
+
if (u === "drag" && c()) {
|
|
146
152
|
if (Math.hypot(C.x - p.x, C.y - p.y) < 4) return;
|
|
147
|
-
const e =
|
|
153
|
+
const e = ge({
|
|
148
154
|
rect: m,
|
|
149
|
-
minSize:
|
|
150
|
-
maxSize:
|
|
155
|
+
minSize: q(),
|
|
156
|
+
maxSize: H(),
|
|
151
157
|
viewport: R(),
|
|
152
158
|
viewportInsets: b(),
|
|
153
159
|
mobile: n.boundary === void 0 && E(),
|
|
154
|
-
mobilePadding:
|
|
155
|
-
}), t = Math.max(0, Math.min(1, (p.x - F.x) / Math.max(1, F.width))), r = Math.max(0, Math.min(
|
|
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));
|
|
156
162
|
F = {
|
|
157
163
|
...e,
|
|
158
164
|
x: p.x - e.width * t,
|
|
159
165
|
y: p.y - r
|
|
160
|
-
},
|
|
166
|
+
}, ie(!1);
|
|
161
167
|
}
|
|
162
|
-
j(
|
|
163
|
-
mode:
|
|
168
|
+
j(xt({
|
|
169
|
+
mode: u,
|
|
164
170
|
pointer: C,
|
|
165
171
|
dragStartPos: p,
|
|
166
172
|
dragStartRect: F,
|
|
167
|
-
dragTitlebarHeight:
|
|
168
|
-
resizeStartPos:
|
|
169
|
-
resizeStartRect:
|
|
170
|
-
resizeHandle:
|
|
171
|
-
minSize:
|
|
172
|
-
maxSize:
|
|
173
|
+
dragTitlebarHeight: re,
|
|
174
|
+
resizeStartPos: pe,
|
|
175
|
+
resizeStartRect: ze,
|
|
176
|
+
resizeHandle: $e,
|
|
177
|
+
minSize: q(),
|
|
178
|
+
maxSize: H(),
|
|
173
179
|
viewport: R(),
|
|
174
180
|
viewportInsets: b(),
|
|
175
181
|
mobile: n.boundary === void 0 && E(),
|
|
176
|
-
mobilePadding:
|
|
182
|
+
mobilePadding: X
|
|
177
183
|
}));
|
|
178
184
|
}
|
|
179
|
-
},
|
|
185
|
+
}, B = (e) => {
|
|
180
186
|
if (typeof window > "u") return;
|
|
181
187
|
const t = R();
|
|
182
188
|
if (c() || g()) {
|
|
183
|
-
|
|
189
|
+
ce(we(t, b()));
|
|
184
190
|
return;
|
|
185
191
|
}
|
|
186
|
-
let r =
|
|
192
|
+
let r = ge({
|
|
187
193
|
rect: m,
|
|
188
|
-
minSize:
|
|
189
|
-
maxSize:
|
|
194
|
+
minSize: q(),
|
|
195
|
+
maxSize: H(),
|
|
190
196
|
viewport: t,
|
|
191
197
|
viewportInsets: b(),
|
|
192
198
|
mobile: n.boundary === void 0 && E(),
|
|
193
|
-
mobilePadding:
|
|
199
|
+
mobilePadding: X,
|
|
194
200
|
center: e?.center ?? !1
|
|
195
201
|
});
|
|
196
202
|
if (n.boundary !== void 0 && A && !e?.center) {
|
|
197
|
-
const o =
|
|
203
|
+
const o = we(t, b());
|
|
198
204
|
r = {
|
|
199
205
|
...r,
|
|
200
206
|
x: o.x + A.x * Math.max(0, o.width - r.width),
|
|
201
207
|
y: o.y + A.y * Math.max(0, o.height - r.height)
|
|
202
208
|
};
|
|
203
209
|
}
|
|
204
|
-
if (
|
|
210
|
+
if (ce(r), !A) {
|
|
205
211
|
const o = {
|
|
206
212
|
width: m.width,
|
|
207
213
|
height: m.height
|
|
208
214
|
};
|
|
209
|
-
|
|
215
|
+
_e(r), Object.assign(m, o);
|
|
210
216
|
}
|
|
211
|
-
},
|
|
212
|
-
k !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(k), k = null), e &&
|
|
213
|
-
const t =
|
|
217
|
+
}, Ie = (e) => {
|
|
218
|
+
k !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(k), k = null), e && Pe();
|
|
219
|
+
const t = u === "drag", r = e && !(t && c()) ? et() ?? a : null, o = r ? ge({
|
|
214
220
|
rect: r,
|
|
215
|
-
minSize:
|
|
216
|
-
maxSize:
|
|
221
|
+
minSize: q(),
|
|
222
|
+
maxSize: H(),
|
|
217
223
|
viewport: R(),
|
|
218
224
|
viewportInsets: b(),
|
|
219
225
|
mobile: n.boundary === void 0 && E(),
|
|
220
|
-
mobilePadding:
|
|
226
|
+
mobilePadding: X
|
|
221
227
|
}) : null;
|
|
222
|
-
if (
|
|
228
|
+
if (he(() => {
|
|
223
229
|
if (o) {
|
|
224
|
-
|
|
230
|
+
ce(o);
|
|
225
231
|
const S = {
|
|
226
232
|
width: m.width,
|
|
227
233
|
height: m.height
|
|
228
234
|
};
|
|
229
|
-
|
|
235
|
+
_e(o), u === "drag" && Object.assign(m, S);
|
|
230
236
|
}
|
|
231
|
-
|
|
232
|
-
}),
|
|
233
|
-
const S =
|
|
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);
|
|
234
240
|
z = s.animate([{
|
|
235
241
|
transform: `translate3d(${S.x}px, ${S.y}px, 0)`
|
|
236
242
|
}, {
|
|
@@ -240,23 +246,23 @@ function Jt(n) {
|
|
|
240
246
|
easing: "cubic-bezier(0.2, 0.8, 0.2, 1)"
|
|
241
247
|
});
|
|
242
248
|
}
|
|
243
|
-
},
|
|
249
|
+
}, fe = (e = !1) => {
|
|
244
250
|
N ? N.stop({
|
|
245
251
|
commit: e
|
|
246
|
-
}) :
|
|
252
|
+
}) : Ie(e);
|
|
247
253
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}),
|
|
254
|
+
D(() => {
|
|
255
|
+
fe(!1), z?.cancel();
|
|
256
|
+
}), dt(() => {
|
|
251
257
|
const e = () => {
|
|
252
258
|
const t = O(), r = n.boundary === void 0 ? {
|
|
253
259
|
boundaryHost: null,
|
|
254
260
|
mode: "global"
|
|
255
|
-
} :
|
|
256
|
-
owner:
|
|
257
|
-
}), o =
|
|
258
|
-
|
|
259
|
-
|
|
261
|
+
} : $t({
|
|
262
|
+
owner: ee
|
|
263
|
+
}), o = pt(r, n.boundary, t?.safeArea);
|
|
264
|
+
he(() => {
|
|
265
|
+
We(!!(o && o.width > 16 && o.height > 16)), De(o ? {
|
|
260
266
|
x: o.left,
|
|
261
267
|
y: o.top,
|
|
262
268
|
width: o.width,
|
|
@@ -269,27 +275,27 @@ function Jt(n) {
|
|
|
269
275
|
});
|
|
270
276
|
});
|
|
271
277
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
D(yt(window, (t) => {
|
|
279
|
+
he(() => {
|
|
280
|
+
Be(t), W(e);
|
|
275
281
|
});
|
|
276
282
|
})), I(() => {
|
|
277
283
|
if (!n.open || n.boundary === void 0) return;
|
|
278
284
|
let t = 0;
|
|
279
285
|
const r = () => {
|
|
280
|
-
|
|
286
|
+
W(e), t = requestAnimationFrame(r);
|
|
281
287
|
};
|
|
282
|
-
r(),
|
|
283
|
-
}), n.open ||
|
|
288
|
+
r(), D(() => cancelAnimationFrame(t));
|
|
289
|
+
}), n.open || B({
|
|
284
290
|
center: !n.defaultPosition
|
|
285
291
|
});
|
|
286
292
|
}), I(() => {
|
|
287
293
|
if (!n.open) return;
|
|
288
294
|
E();
|
|
289
|
-
const e = !
|
|
290
|
-
|
|
295
|
+
const e = !se && !n.defaultPosition, t = () => {
|
|
296
|
+
B({
|
|
291
297
|
center: e
|
|
292
|
-
}),
|
|
298
|
+
}), se = !0;
|
|
293
299
|
};
|
|
294
300
|
if (typeof requestAnimationFrame > "u") {
|
|
295
301
|
t();
|
|
@@ -297,12 +303,12 @@ function Jt(n) {
|
|
|
297
303
|
}
|
|
298
304
|
requestAnimationFrame(t);
|
|
299
305
|
}), I(() => {
|
|
300
|
-
b(), R(), g(), !(!n.open || !
|
|
306
|
+
b(), R(), g(), !(!n.open || !se || h !== null) && W(() => B({
|
|
301
307
|
center: !1
|
|
302
308
|
}));
|
|
303
309
|
}), I(() => {
|
|
304
|
-
|
|
305
|
-
|
|
310
|
+
K() || !c() || W(() => {
|
|
311
|
+
ie(!1), B({
|
|
306
312
|
center: !1
|
|
307
313
|
});
|
|
308
314
|
});
|
|
@@ -311,34 +317,34 @@ function Jt(n) {
|
|
|
311
317
|
const e = (t) => {
|
|
312
318
|
if (t.key !== "Escape") return;
|
|
313
319
|
const r = typeof document < "u" ? document.activeElement : null;
|
|
314
|
-
!
|
|
320
|
+
!ue(t.target) && !ue(r) || Ke(t.target) || (t.preventDefault(), typeof t.stopImmediatePropagation == "function" ? t.stopImmediatePropagation() : t.stopPropagation(), n.onOpenChange(!1));
|
|
315
321
|
};
|
|
316
|
-
document.addEventListener("keydown", e, !0),
|
|
322
|
+
document.addEventListener("keydown", e, !0), D(() => document.removeEventListener("keydown", e, !0));
|
|
317
323
|
}), I(() => {
|
|
318
324
|
if (!n.open) {
|
|
319
|
-
|
|
325
|
+
oe(!1), fe(!1);
|
|
320
326
|
return;
|
|
321
327
|
}
|
|
322
|
-
|
|
328
|
+
oe(!0);
|
|
323
329
|
}), I(() => {
|
|
324
330
|
if (!n.open) return;
|
|
325
331
|
const e = (o) => {
|
|
326
|
-
|
|
332
|
+
oe(ue(o));
|
|
327
333
|
}, t = (o) => {
|
|
328
334
|
e(o.target);
|
|
329
335
|
}, r = (o) => {
|
|
330
336
|
e(o.target);
|
|
331
337
|
};
|
|
332
|
-
document.addEventListener("pointerdown", t), document.addEventListener("focusin", r),
|
|
338
|
+
document.addEventListener("pointerdown", t), document.addEventListener("focusin", r), D(() => {
|
|
333
339
|
document.removeEventListener("pointerdown", t), document.removeEventListener("focusin", r);
|
|
334
340
|
});
|
|
335
341
|
}), I(() => {
|
|
336
342
|
if (!n.open) return;
|
|
337
|
-
const e =
|
|
338
|
-
T(), O()?.fixedOffset, j(
|
|
343
|
+
const e = Se();
|
|
344
|
+
T(), O()?.fixedOffset, j(h === null ? e : a);
|
|
339
345
|
});
|
|
340
|
-
const
|
|
341
|
-
!
|
|
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 = {
|
|
342
348
|
x: e.clientX,
|
|
343
349
|
y: e.clientY
|
|
344
350
|
}, F = {
|
|
@@ -346,36 +352,36 @@ function Jt(n) {
|
|
|
346
352
|
}, C = {
|
|
347
353
|
x: e.clientX,
|
|
348
354
|
y: e.clientY
|
|
349
|
-
},
|
|
355
|
+
}, de(!0, "grabbing"), Ce(e));
|
|
350
356
|
}, $ = (e) => (t) => {
|
|
351
|
-
!
|
|
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 = {
|
|
352
358
|
x: t.clientX,
|
|
353
359
|
y: t.clientY
|
|
354
|
-
},
|
|
360
|
+
}, ze = {
|
|
355
361
|
...a
|
|
356
362
|
}, C = {
|
|
357
363
|
x: t.clientX,
|
|
358
364
|
y: t.clientY
|
|
359
|
-
},
|
|
360
|
-
},
|
|
361
|
-
k = null,
|
|
362
|
-
},
|
|
363
|
-
if (!(
|
|
365
|
+
}, de(!0, Qe[e]), Ce(t));
|
|
366
|
+
}, Re = () => {
|
|
367
|
+
k = null, Pe();
|
|
368
|
+
}, nt = (e) => {
|
|
369
|
+
if (!(h === null || e.pointerId !== h) && u !== null && (C = {
|
|
364
370
|
x: e.clientX,
|
|
365
371
|
y: e.clientY
|
|
366
372
|
}, k === null)) {
|
|
367
373
|
if (typeof requestAnimationFrame > "u") {
|
|
368
|
-
|
|
374
|
+
Re();
|
|
369
375
|
return;
|
|
370
376
|
}
|
|
371
|
-
k = requestAnimationFrame(
|
|
377
|
+
k = requestAnimationFrame(Re);
|
|
372
378
|
}
|
|
373
|
-
},
|
|
374
|
-
N =
|
|
379
|
+
}, Ce = (e) => {
|
|
380
|
+
N = vt({
|
|
375
381
|
pointerEvent: e,
|
|
376
382
|
// Keep click/double-click targeting on the titlebar while retaining capture.
|
|
377
|
-
captureEl:
|
|
378
|
-
onMove:
|
|
383
|
+
captureEl: u === "drag" ? le : s,
|
|
384
|
+
onMove: nt,
|
|
379
385
|
onEnd: ({
|
|
380
386
|
commit: t,
|
|
381
387
|
reason: r,
|
|
@@ -384,16 +390,16 @@ function Jt(n) {
|
|
|
384
390
|
C = {
|
|
385
391
|
x: o.latestClientX,
|
|
386
392
|
y: o.latestClientY
|
|
387
|
-
},
|
|
393
|
+
}, Ie(t || r === "pointer_cancel");
|
|
388
394
|
}
|
|
389
395
|
});
|
|
390
|
-
},
|
|
391
|
-
!
|
|
392
|
-
},
|
|
393
|
-
e.target?.closest("button, [data-floe-floating-window-header-actions]") ||
|
|
394
|
-
},
|
|
395
|
-
|
|
396
|
-
}, _ = (e) =>
|
|
396
|
+
}, Ae = () => {
|
|
397
|
+
!K() || g() || (h !== null && fe(!0), ie(!c()), B());
|
|
398
|
+
}, it = (e) => {
|
|
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", {
|
|
397
403
|
n: "cursor-ns-resize top-0 left-2 right-2 h-1",
|
|
398
404
|
s: "cursor-ns-resize bottom-0 left-2 right-2 h-1",
|
|
399
405
|
e: "cursor-ew-resize right-0 top-2 bottom-2 w-1",
|
|
@@ -404,66 +410,68 @@ function Jt(n) {
|
|
|
404
410
|
sw: "cursor-nesw-resize bottom-0 left-0 w-2 h-2"
|
|
405
411
|
}[e]);
|
|
406
412
|
return [(() => {
|
|
407
|
-
var e =
|
|
408
|
-
return typeof t == "function" ?
|
|
413
|
+
var e = _t(), t = ee;
|
|
414
|
+
return typeof t == "function" ? Q(t, e) : ee = e, e;
|
|
409
415
|
})(), l(y, {
|
|
410
416
|
get when() {
|
|
411
417
|
return M.mounted();
|
|
412
418
|
},
|
|
413
419
|
get children() {
|
|
414
|
-
return l(
|
|
420
|
+
return l(rt, {
|
|
415
421
|
get children() {
|
|
416
|
-
var e =
|
|
417
|
-
|
|
418
|
-
s = i,
|
|
419
|
-
}, e),
|
|
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
427
|
return M.state();
|
|
422
428
|
},
|
|
423
429
|
get "aria-hidden"() {
|
|
424
|
-
return M.exiting() || !
|
|
430
|
+
return M.exiting() || !te() ? "true" : void 0;
|
|
425
431
|
},
|
|
426
432
|
get inert() {
|
|
427
|
-
return M.exiting() || !
|
|
433
|
+
return M.exiting() || !te();
|
|
428
434
|
},
|
|
429
435
|
get "data-floe-floating-window-compact"() {
|
|
430
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
|
-
"z-index":
|
|
442
|
-
"will-change":
|
|
446
|
+
visibility: te() ? void 0 : "hidden",
|
|
447
|
+
"z-index": qe(),
|
|
448
|
+
"will-change": L() ? "transform" : Y() ? "transform, width, height" : void 0
|
|
443
449
|
};
|
|
444
450
|
},
|
|
445
451
|
role: "dialog",
|
|
446
452
|
get "aria-labelledby"() {
|
|
447
|
-
return
|
|
453
|
+
return Z(() => !!n.title)() ? xe() : void 0;
|
|
448
454
|
},
|
|
449
455
|
tabIndex: -1,
|
|
450
|
-
onPointerDown:
|
|
451
|
-
}), !1, !0)
|
|
452
|
-
|
|
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"
|
|
453
461
|
}, {
|
|
454
462
|
"data-floe-floating-window-surface": "true",
|
|
455
463
|
"data-floe-surface": "floating",
|
|
456
464
|
get "data-floe-surface-interacting"() {
|
|
457
|
-
return
|
|
465
|
+
return L() || Y() ? "true" : void 0;
|
|
458
466
|
},
|
|
459
467
|
get "data-floe-floating-window-state"() {
|
|
460
|
-
return
|
|
468
|
+
return Ge() ? "active" : "inactive";
|
|
461
469
|
}
|
|
462
470
|
}, {
|
|
463
|
-
[
|
|
471
|
+
[Le]: "true"
|
|
464
472
|
}, {
|
|
465
473
|
get class() {
|
|
466
|
-
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);
|
|
467
475
|
},
|
|
468
476
|
get style() {
|
|
469
477
|
return {
|
|
@@ -473,47 +481,47 @@ function Jt(n) {
|
|
|
473
481
|
get "data-floating-presence"() {
|
|
474
482
|
return M.state();
|
|
475
483
|
}
|
|
476
|
-
}), !1, !0), r.$$dblclick =
|
|
477
|
-
var
|
|
478
|
-
return typeof
|
|
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, {
|
|
479
487
|
get when() {
|
|
480
488
|
return n.title;
|
|
481
489
|
},
|
|
482
490
|
get children() {
|
|
483
|
-
var i =
|
|
484
|
-
return
|
|
491
|
+
var i = Pt(), G = i.firstChild;
|
|
492
|
+
return f(i, l(y, {
|
|
485
493
|
get when() {
|
|
486
494
|
return n.titleIcon;
|
|
487
495
|
},
|
|
488
496
|
get children() {
|
|
489
|
-
var
|
|
490
|
-
return
|
|
497
|
+
var Fe = St();
|
|
498
|
+
return f(Fe, () => n.titleIcon), Fe;
|
|
491
499
|
}
|
|
492
|
-
}), G),
|
|
500
|
+
}), G), f(G, () => n.title), w(() => at(i, "id", xe())), i;
|
|
493
501
|
}
|
|
494
|
-
})),
|
|
502
|
+
})), f(r, l(y, {
|
|
495
503
|
get when() {
|
|
496
504
|
return n.headerActions;
|
|
497
505
|
},
|
|
498
506
|
get children() {
|
|
499
|
-
var i =
|
|
500
|
-
return
|
|
507
|
+
var i = It(), G = i.firstChild;
|
|
508
|
+
return f(i, () => n.headerActions, G), i;
|
|
501
509
|
}
|
|
502
|
-
}), S),
|
|
510
|
+
}), S), f(S, l(y, {
|
|
503
511
|
get when() {
|
|
504
|
-
return
|
|
512
|
+
return Z(() => !!K())() && !g();
|
|
505
513
|
},
|
|
506
514
|
get children() {
|
|
507
|
-
return l(
|
|
515
|
+
return l(Te, {
|
|
508
516
|
variant: "ghost",
|
|
509
517
|
size: "icon",
|
|
510
518
|
"data-floe-floating-window-control": "maximize",
|
|
511
519
|
class: "h-full w-9 shrink-0 rounded-none border-0 px-0 active:scale-100",
|
|
512
520
|
onClick: (i) => {
|
|
513
|
-
i.stopPropagation(),
|
|
521
|
+
i.stopPropagation(), Ae();
|
|
514
522
|
},
|
|
515
523
|
get "aria-label"() {
|
|
516
|
-
return
|
|
524
|
+
return Z(() => !!c())() ? n.labels?.restore ?? "Restore" : n.labels?.maximize ?? "Maximize";
|
|
517
525
|
},
|
|
518
526
|
get children() {
|
|
519
527
|
return l(y, {
|
|
@@ -521,12 +529,12 @@ function Jt(n) {
|
|
|
521
529
|
return c();
|
|
522
530
|
},
|
|
523
531
|
get fallback() {
|
|
524
|
-
return l(
|
|
532
|
+
return l(wt, {
|
|
525
533
|
class: "w-3 h-3"
|
|
526
534
|
});
|
|
527
535
|
},
|
|
528
536
|
get children() {
|
|
529
|
-
return l(
|
|
537
|
+
return l(ht, {
|
|
530
538
|
class: "w-3 h-3"
|
|
531
539
|
});
|
|
532
540
|
}
|
|
@@ -534,7 +542,7 @@ function Jt(n) {
|
|
|
534
542
|
}
|
|
535
543
|
});
|
|
536
544
|
}
|
|
537
|
-
}), null),
|
|
545
|
+
}), null), f(S, l(Te, {
|
|
538
546
|
variant: "ghost-destructive",
|
|
539
547
|
size: "icon",
|
|
540
548
|
"data-floe-floating-window-control": "close",
|
|
@@ -546,63 +554,63 @@ function Jt(n) {
|
|
|
546
554
|
return n.labels?.close ?? "Close";
|
|
547
555
|
},
|
|
548
556
|
get children() {
|
|
549
|
-
return l(
|
|
557
|
+
return l(gt, {
|
|
550
558
|
class: "w-3.5 h-3.5"
|
|
551
559
|
});
|
|
552
560
|
}
|
|
553
|
-
}), null),
|
|
561
|
+
}), null), f(U, () => n.children), f(t, l(y, {
|
|
554
562
|
get when() {
|
|
555
563
|
return n.footer;
|
|
556
564
|
},
|
|
557
565
|
get children() {
|
|
558
|
-
var i =
|
|
559
|
-
return
|
|
566
|
+
var i = Rt();
|
|
567
|
+
return f(i, () => n.footer), i;
|
|
560
568
|
}
|
|
561
|
-
}), null),
|
|
569
|
+
}), null), f(t, l(y, {
|
|
562
570
|
get when() {
|
|
563
|
-
return
|
|
571
|
+
return Z(() => !!(me() && !c()))() && !g();
|
|
564
572
|
},
|
|
565
573
|
get children() {
|
|
566
574
|
return [(() => {
|
|
567
|
-
var i =
|
|
568
|
-
return P(i, "pointerdown", $("n"), !0), w(() =>
|
|
575
|
+
var i = Ct();
|
|
576
|
+
return P(i, "pointerdown", $("n"), !0), w(() => v(i, _("n"))), i;
|
|
569
577
|
})(), (() => {
|
|
570
|
-
var i =
|
|
571
|
-
return P(i, "pointerdown", $("s"), !0), w(() =>
|
|
578
|
+
var i = At();
|
|
579
|
+
return P(i, "pointerdown", $("s"), !0), w(() => v(i, _("s"))), i;
|
|
572
580
|
})(), l(y, {
|
|
573
581
|
get when() {
|
|
574
582
|
return !E();
|
|
575
583
|
},
|
|
576
584
|
get children() {
|
|
577
585
|
return [(() => {
|
|
578
|
-
var i = Ct();
|
|
579
|
-
return P(i, "pointerdown", $("e"), !0), w(() => x(i, _("e"))), i;
|
|
580
|
-
})(), (() => {
|
|
581
|
-
var i = At();
|
|
582
|
-
return P(i, "pointerdown", $("w"), !0), w(() => x(i, _("w"))), i;
|
|
583
|
-
})(), (() => {
|
|
584
586
|
var i = Et();
|
|
585
|
-
return P(i, "pointerdown", $("
|
|
587
|
+
return P(i, "pointerdown", $("e"), !0), w(() => v(i, _("e"))), i;
|
|
586
588
|
})(), (() => {
|
|
587
589
|
var i = Mt();
|
|
588
|
-
return P(i, "pointerdown", $("
|
|
590
|
+
return P(i, "pointerdown", $("w"), !0), w(() => v(i, _("w"))), i;
|
|
589
591
|
})(), (() => {
|
|
590
592
|
var i = Ft();
|
|
591
|
-
return P(i, "pointerdown", $("
|
|
593
|
+
return P(i, "pointerdown", $("ne"), !0), w(() => v(i, _("ne"))), i;
|
|
592
594
|
})(), (() => {
|
|
593
595
|
var i = kt();
|
|
594
|
-
return P(i, "pointerdown", $("
|
|
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;
|
|
600
|
+
})(), (() => {
|
|
601
|
+
var i = Tt();
|
|
602
|
+
return P(i, "pointerdown", $("sw"), !0), w(() => v(i, _("sw"))), i;
|
|
595
603
|
})()];
|
|
596
604
|
}
|
|
597
605
|
})];
|
|
598
606
|
}
|
|
599
|
-
}), null), w(() =>
|
|
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;
|
|
600
608
|
}
|
|
601
609
|
});
|
|
602
610
|
}
|
|
603
611
|
})];
|
|
604
612
|
}
|
|
605
|
-
|
|
613
|
+
lt(["pointerdown", "dblclick"]);
|
|
606
614
|
export {
|
|
607
|
-
|
|
615
|
+
en as FloatingWindow
|
|
608
616
|
};
|