@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.
Files changed (103) hide show
  1. package/dist/components/chat/blocks/BlockRenderer.js +1 -1
  2. package/dist/components/chat/blocks/CodeDiffBlock.js +56 -56
  3. package/dist/components/chat/blocks/ImageBlock.js +1 -1
  4. package/dist/components/chat/blocks/ToolCallBlock.js +57 -57
  5. package/dist/components/chat/status/ConnectionStatus.js +10 -10
  6. package/dist/components/deck/DeckCell.js +25 -25
  7. package/dist/components/deck/DeckContextMenu.js +20 -20
  8. package/dist/components/deck/DeckGrid.js +1 -1
  9. package/dist/components/deck/DeckTopBar.js +42 -42
  10. package/dist/components/deck/DropZonePreview.js +6 -6
  11. package/dist/components/deck/LayoutSelector.js +53 -53
  12. package/dist/components/deck/WidgetFrame.js +28 -28
  13. package/dist/components/deck/WidgetPalette.js +31 -31
  14. package/dist/components/deck/WidgetTypeSwitcher.js +31 -31
  15. package/dist/components/file-browser/Breadcrumb.js +27 -27
  16. package/dist/components/file-browser/DirectoryTree.js +15 -15
  17. package/dist/components/file-browser/DragPreview.js +58 -58
  18. package/dist/components/file-browser/FileBrowser.js +17 -17
  19. package/dist/components/file-browser/FileBrowserStatusBar.js +18 -18
  20. package/dist/components/file-browser/FileBrowserToolbar.js +27 -27
  21. package/dist/components/file-browser/FileContextMenu.js +47 -47
  22. package/dist/components/file-browser/FileGridView.js +53 -51
  23. package/dist/components/file-browser/FileItemDecorations.js +30 -27
  24. package/dist/components/file-browser/FileListView.js +114 -114
  25. package/dist/components/icons/index.js +1357 -1357
  26. package/dist/components/launchpad/Launchpad.js +14 -14
  27. package/dist/components/launchpad/LaunchpadGrid.js +7 -7
  28. package/dist/components/launchpad/LaunchpadItem.js +11 -11
  29. package/dist/components/launchpad/LaunchpadPagination.js +16 -16
  30. package/dist/components/launchpad/LaunchpadSearch.js +9 -9
  31. package/dist/components/layout/ActivityBar.js +52 -55
  32. package/dist/components/layout/BottomBar.js +17 -17
  33. package/dist/components/layout/MobileNavigationPanel.js +36 -36
  34. package/dist/components/layout/MobileTabBar.js +39 -39
  35. package/dist/components/layout/Panel.js +16 -16
  36. package/dist/components/layout/ResizeHandle.js +19 -19
  37. package/dist/components/layout/Shell.js +50 -50
  38. package/dist/components/layout/Sidebar.js +37 -36
  39. package/dist/components/layout/SidebarPane.js +19 -19
  40. package/dist/components/layout/TopBar.js +16 -16
  41. package/dist/components/layout/TopBarIconButton.js +15 -15
  42. package/dist/components/loading/LoadingOverlay.js +9 -9
  43. package/dist/components/loading/Skeleton.js +11 -11
  44. package/dist/components/ui/Button.js +36 -36
  45. package/dist/components/ui/Card.d.ts +11 -62
  46. package/dist/components/ui/Card.js +64 -237
  47. package/dist/components/ui/Checkbox.js +79 -79
  48. package/dist/components/ui/CommandPalette.js +56 -55
  49. package/dist/components/ui/Dialog.js +91 -93
  50. package/dist/components/ui/DirectoryInput.js +22 -22
  51. package/dist/components/ui/DirectoryPicker.js +8 -8
  52. package/dist/components/ui/Dropdown.js +89 -87
  53. package/dist/components/ui/FeedbackIndicator.js +57 -57
  54. package/dist/components/ui/FileOpenPicker.js +37 -37
  55. package/dist/components/ui/FileSavePicker.js +41 -41
  56. package/dist/components/ui/FloatingWindow.js +266 -261
  57. package/dist/components/ui/Form.js +76 -76
  58. package/dist/components/ui/HighlightBlock.js +14 -14
  59. package/dist/components/ui/Input.js +106 -109
  60. package/dist/components/ui/Pagination.js +86 -86
  61. package/dist/components/ui/Popover.d.ts +33 -0
  62. package/dist/components/ui/Popover.js +133 -0
  63. package/dist/components/ui/ProcessingIndicator.js +344 -345
  64. package/dist/components/ui/Progress.js +94 -97
  65. package/dist/components/ui/QuoteBlock.js +25 -25
  66. package/dist/components/ui/Radio.js +91 -91
  67. package/dist/components/ui/SegmentedControl.js +24 -24
  68. package/dist/components/ui/Stepper.js +68 -60
  69. package/dist/components/ui/Switch.js +25 -25
  70. package/dist/components/ui/Tabs.js +99 -87
  71. package/dist/components/ui/Tag.js +12 -9
  72. package/dist/components/ui/Tooltip.js +30 -30
  73. package/dist/components/ui/floatingPresence.d.ts +7 -0
  74. package/dist/components/ui/floatingPresence.js +80 -39
  75. package/dist/components/ui/index.d.ts +2 -1
  76. package/dist/components/ui/picker/DirectoryFavorites.js +27 -27
  77. package/dist/components/ui/picker/PickerBase.js +107 -107
  78. package/dist/context/NotificationContext.js +4 -4
  79. package/dist/context/ThemeContext.js +71 -70
  80. package/dist/floe.css +205 -43
  81. package/dist/full.js +650 -652
  82. package/dist/language.css +320 -0
  83. package/dist/primitives.css +23 -17
  84. package/dist/standalone.css +1 -0
  85. package/dist/styles/themes/classicSemanticTokens.d.ts +122 -122
  86. package/dist/styles/themes/classicSemanticTokens.js +140 -138
  87. package/dist/styles/themes/index.d.ts +3 -1
  88. package/dist/styles/themes/index.js +10 -10
  89. package/dist/styles/themes/presets.d.ts +2 -2
  90. package/dist/styles/themes/presets.js +34 -34
  91. package/dist/styles/tokens.d.ts +152 -68
  92. package/dist/styles/tokens.js +87 -49
  93. package/dist/styles.css +1 -1
  94. package/dist/surface.css +161 -116
  95. package/dist/themes/dark.css +64 -64
  96. package/dist/themes/light.css +64 -64
  97. package/dist/ui.css +171 -255
  98. package/dist/ui.js +176 -178
  99. package/dist/utils/hotInteraction.d.ts +7 -0
  100. package/dist/utils/hotInteraction.js +12 -12
  101. package/dist/widgets/TerminalWidget.js +28 -28
  102. package/dist/workbench-composition.css +15 -15
  103. package/package.json +1 -1
@@ -1,85 +1,86 @@
1
- import { createComponent as l, Portal as ot, spread as ke, mergeProps as Te, memo as Q, insert as c, effect as h, setAttribute as rt, addEventListener as _, className as m, template as s, use as we, delegateEvents as at } from "solid-js/web";
2
- import { createSignal as x, createUniqueId as lt, onCleanup as B, onMount as st, createEffect as S, untrack as Z, Show as v, batch as J } from "solid-js";
3
- import { cn as K } from "../../utils/cn.js";
4
- import { useOptionalLayout as dt } from "../../context/LayoutContext.js";
5
- import { useResolvedFloeConfig as ct } from "../../context/FloeConfigContext.js";
6
- import { useMediaQuery as ut } from "../../hooks/useMediaQuery.js";
7
- import { Button as Le } from "./Button.js";
8
- import { Restore as ft, Maximize as ht, X as wt } from "../icons/index.js";
9
- import { startHotInteraction as gt } from "../../utils/hotInteraction.js";
10
- import { startPointerSession as mt } from "./pointerSession.js";
11
- import { resolveFloatingWindowViewport as ge, normalizeFloatingWindowRect as me, resolveFloatingWindowRect as xt } from "./floatingWindowGeometry.js";
12
- import { observeViewport as vt } from "../../viewport.js";
13
- import { createFloatingPresence as yt } from "./floatingPresence.js";
14
- import { LOCAL_INTERACTION_SURFACE_ATTR as Oe } from "./localInteractionSurface.js";
15
- import { resolveFloatingBoundary as bt } from "./surfaceFloatingBoundary.js";
16
- import { SURFACE_PORTAL_LAYER_ATTR as pt, resolveSurfacePortalHost as zt } from "./dialogSurfaceScope.js";
17
- var $t = /* @__PURE__ */ s("<span hidden>"), _t = /* @__PURE__ */ s('<span data-floe-floating-window-title-icon=true aria-hidden=true class="flex size-4 shrink-0 items-center justify-center">'), St = /* @__PURE__ */ s('<h2 class="flex min-w-0 items-center gap-2 text-xs leading-none font-medium select-none"><span class="min-w-0 truncate">'), Pt = /* @__PURE__ */ s('<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">'), It = /* @__PURE__ */ s('<div data-floe-floating-window-footer=true class="flex items-center justify-end gap-2 p-3 border-t border-border">'), Rt = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=n style=touch-action:none>"), Ct = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=s style=touch-action:none>"), At = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=e style=touch-action:none>"), Et = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=w style=touch-action:none>"), Mt = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=ne style=touch-action:none>"), Ft = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=nw style=touch-action:none>"), kt = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=se style=touch-action:none>"), Tt = /* @__PURE__ */ s("<div data-floe-floating-window-resize-handle=sw style=touch-action:none>"), Lt = /* @__PURE__ */ s('<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 Kt(n) {
19
- const xe = () => n.resizable ?? !0, ee = () => n.maximizable ?? !0, ve = () => n.draggable ?? !0, D = () => n.minSize ?? {
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
- }, W = () => n.maxSize ?? {
22
+ }, H = () => n.maxSize ?? {
23
23
  width: 1 / 0,
24
24
  height: 1 / 0
25
25
  };
26
- let te;
27
- const [q, Be] = x(), [P, De] = x({
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
- }), [ne, We] = x(!0), w = () => !!(n.compactBelow && P().width < n.compactBelow), y = () => n.viewportInsets, E = () => q()?.fixedScale ?? 1, L = (e) => ({
35
- x: (e.x + (q()?.fixedOffset.left ?? 0)) / E(),
36
- y: (e.y + (q()?.fixedOffset.top ?? 0)) / E()
37
- }), qe = () => n.zIndex ?? 100, He = lt(), Xe = dt(), Ye = ct(), M = Xe?.isMobile ?? ut(() => Ye.config.layout.mobileQuery), H = 16, ye = () => `floating-window-${He}-title`, [ie, Ne] = x(n.defaultPosition ?? {
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
- }), [oe, Ve] = x(n.defaultSize ?? {
40
+ }), [je, Ue] = x(n.defaultSize ?? {
41
41
  width: 400,
42
42
  height: 300
43
- }), [d, re] = x(!1), [X, be] = x(!1), [Y, pe] = x(!1), [je, ae] = x(!1), F = yt({
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 b = {
47
+ let p = {
47
48
  x: 0,
48
49
  y: 0
49
- }, I = {
50
+ }, F = {
50
51
  x: 0,
51
52
  y: 0,
52
53
  width: 0,
53
54
  height: 0
54
- }, le = 32, ze = {
55
+ }, re = 32, pe = {
55
56
  x: 0,
56
57
  y: 0
57
- }, $e = {
58
+ }, ze = {
58
59
  x: 0,
59
60
  y: 0,
60
61
  width: 0,
61
62
  height: 0
62
- }, _e = "se", a, se, u = null, N, f = null, R = {
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, T, de = !1, C = {
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
- }, g = {
71
- ...C
71
+ }, m = {
72
+ ...a
72
73
  }, A;
73
- const Se = (e) => {
74
- g = {
74
+ const _e = (e) => {
75
+ m = {
75
76
  ...e
76
77
  };
77
- const t = ge(P(), y());
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
- }, Ue = {
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
- }, ce = (e, t) => {
92
+ }, de = (e, t) => {
92
93
  if (!e) {
93
94
  V?.(), V = null;
94
95
  return;
95
96
  }
96
- V?.(), V = gt({
97
- kind: f === "resize" ? "resize" : "drag",
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
- }, ue = (e) => {
102
- if (T?.cancel(), T = void 0, C = e, !a) return;
103
- const t = L(e);
104
- a.style.transform = `translate3d(${t.x}px, ${t.y}px, 0)`, a.style.width = `${e.width / E()}px`, a.style.height = `${e.height / E()}px`;
105
- }, Ge = () => {
106
- const e = ie(), t = oe();
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
- }, j = (e) => {
114
- C = e, Ne((t) => t.x === e.x && t.y === e.y ? t : {
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
- }), Ve((t) => t.width === e.width && t.height === e.height ? t : {
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
- }, Qe = () => {
127
+ }, Ze = () => {
122
128
  try {
123
- a?.focus({
129
+ s?.focus({
124
130
  preventScroll: !0
125
131
  });
126
132
  } catch {
127
133
  }
128
- }, Ze = (e) => {
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
- }, fe = (e) => !!a && e instanceof Node && a.contains(e), Je = (e) => {
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 && a?.contains(o));
134
- }, Ke = () => {
135
- if (!a) return null;
136
- const e = a.getBoundingClientRect();
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 && !(u === null || f === null) && !(typeof window > "u")) {
145
- if (f === "drag" && d()) {
146
- if (Math.hypot(R.x - b.x, R.y - b.y) < 4) return;
147
- const e = me({
148
- rect: g,
149
- minSize: D(),
150
- maxSize: W(),
151
- viewport: P(),
152
- viewportInsets: y(),
153
- mobile: n.boundary === void 0 && M(),
154
- mobilePadding: H
155
- }), t = Math.max(0, Math.min(1, (b.x - I.x) / Math.max(1, I.width))), r = Math.max(0, Math.min(le, b.y - I.y));
156
- I = {
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: b.x - e.width * t,
159
- y: b.y - r
160
- }, J(() => {
161
- re(!1), j(I);
162
- });
164
+ x: p.x - e.width * t,
165
+ y: p.y - r
166
+ }, ie(!1);
163
167
  }
164
- ue(xt({
165
- mode: f,
166
- pointer: R,
167
- dragStartPos: b,
168
- dragStartRect: I,
169
- dragTitlebarHeight: le,
170
- resizeStartPos: ze,
171
- resizeStartRect: $e,
172
- resizeHandle: _e,
173
- minSize: D(),
174
- maxSize: W(),
175
- viewport: P(),
176
- viewportInsets: y(),
177
- mobile: n.boundary === void 0 && M(),
178
- mobilePadding: H
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
- }, O = (e) => {
185
+ }, B = (e) => {
182
186
  if (typeof window > "u") return;
183
- const t = P();
184
- if (d() || w()) {
185
- j(ge(t, y()));
187
+ const t = R();
188
+ if (c() || g()) {
189
+ ce(we(t, b()));
186
190
  return;
187
191
  }
188
- let r = me({
189
- rect: g,
190
- minSize: D(),
191
- maxSize: W(),
192
+ let r = ge({
193
+ rect: m,
194
+ minSize: q(),
195
+ maxSize: H(),
192
196
  viewport: t,
193
- viewportInsets: y(),
194
- mobile: n.boundary === void 0 && M(),
195
- mobilePadding: H,
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 = ge(t, y());
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 (j(r), !A) {
210
+ if (ce(r), !A) {
207
211
  const o = {
208
- width: g.width,
209
- height: g.height
212
+ width: m.width,
213
+ height: m.height
210
214
  };
211
- Se(r), Object.assign(g, o);
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 = f === "drag", r = e && !(t && d()) ? Ke() ?? C : null, o = r ? me({
219
+ const t = u === "drag", r = e && !(t && c()) ? et() ?? a : null, o = r ? ge({
216
220
  rect: r,
217
- minSize: D(),
218
- maxSize: W(),
219
- viewport: P(),
220
- viewportInsets: y(),
221
- mobile: n.boundary === void 0 && M(),
222
- mobilePadding: H
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 (J(() => {
228
+ if (he(() => {
225
229
  if (o) {
226
- j(o);
227
- const $ = {
228
- width: g.width,
229
- height: g.height
230
+ ce(o);
231
+ const S = {
232
+ width: m.width,
233
+ height: m.height
230
234
  };
231
- Se(o), f === "drag" && Object.assign(g, $);
235
+ _e(o), u === "drag" && Object.assign(m, S);
232
236
  }
233
- u = null, f = null, be(!1), pe(!1);
234
- }), ce(!1, ""), N = void 0, o && (ue(o), t && r && a?.animate && (r.x !== o.x || r.y !== o.y) && !window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)) {
235
- const $ = L(r), U = L(o);
236
- T = a.animate([{
237
- transform: `translate3d(${$.x}px, ${$.y}px, 0)`
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
- }, he = (e = !1) => {
249
+ }, fe = (e = !1) => {
246
250
  N ? N.stop({
247
251
  commit: e
248
252
  }) : Ie(e);
249
253
  };
250
- B(() => {
251
- he(!1), T?.cancel();
252
- }), st(() => {
254
+ D(() => {
255
+ fe(!1), z?.cancel();
256
+ }), dt(() => {
253
257
  const e = () => {
254
- const t = q(), r = n.boundary === void 0 ? {
258
+ const t = O(), r = n.boundary === void 0 ? {
255
259
  boundaryHost: null,
256
260
  mode: "global"
257
- } : zt({
258
- owner: te
259
- }), o = bt(r, n.boundary, t?.safeArea);
260
- J(() => {
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
- B(vt(window, (t) => {
275
- J(() => {
276
- Be(t), Z(e);
278
+ D(yt(window, (t) => {
279
+ he(() => {
280
+ Be(t), W(e);
277
281
  });
278
- })), S(() => {
282
+ })), I(() => {
279
283
  if (!n.open || n.boundary === void 0) return;
280
284
  let t = 0;
281
285
  const r = () => {
282
- Z(e), t = requestAnimationFrame(r);
286
+ W(e), t = requestAnimationFrame(r);
283
287
  };
284
- r(), B(() => cancelAnimationFrame(t));
285
- }), n.open || O({
288
+ r(), D(() => cancelAnimationFrame(t));
289
+ }), n.open || B({
286
290
  center: !n.defaultPosition
287
291
  });
288
- }), S(() => {
292
+ }), I(() => {
289
293
  if (!n.open) return;
290
- M();
291
- const e = !de && !n.defaultPosition, t = () => {
292
- O({
294
+ E();
295
+ const e = !se && !n.defaultPosition, t = () => {
296
+ B({
293
297
  center: e
294
- }), de = !0;
298
+ }), se = !0;
295
299
  };
296
300
  if (typeof requestAnimationFrame > "u") {
297
301
  t();
298
302
  return;
299
303
  }
300
304
  requestAnimationFrame(t);
301
- }), S(() => {
302
- y(), P(), w(), !(!n.open || !de || u !== null) && Z(() => O({
305
+ }), I(() => {
306
+ b(), R(), g(), !(!n.open || !se || h !== null) && W(() => B({
303
307
  center: !1
304
308
  }));
305
- }), S(() => {
306
- ee() || !d() || Z(() => {
307
- re(!1), O({
309
+ }), I(() => {
310
+ K() || !c() || W(() => {
311
+ ie(!1), B({
308
312
  center: !1
309
313
  });
310
314
  });
311
- }), S(() => {
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
- !fe(t.target) && !fe(r) || Je(t.target) || (t.preventDefault(), typeof t.stopImmediatePropagation == "function" ? t.stopImmediatePropagation() : t.stopPropagation(), n.onOpenChange(!1));
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), B(() => document.removeEventListener("keydown", e, !0));
319
- }), S(() => {
322
+ document.addEventListener("keydown", e, !0), D(() => document.removeEventListener("keydown", e, !0));
323
+ }), I(() => {
320
324
  if (!n.open) {
321
- ae(!1), he(!1);
325
+ oe(!1), fe(!1);
322
326
  return;
323
327
  }
324
- ae(!0);
325
- }), S(() => {
328
+ oe(!0);
329
+ }), I(() => {
326
330
  if (!n.open) return;
327
331
  const e = (o) => {
328
- ae(fe(o));
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), B(() => {
338
+ document.addEventListener("pointerdown", t), document.addEventListener("focusin", r), D(() => {
335
339
  document.removeEventListener("pointerdown", t), document.removeEventListener("focusin", r);
336
340
  });
337
- }), S(() => {
341
+ }), I(() => {
338
342
  if (!n.open) return;
339
- const e = Ge();
340
- u === null ? ue(e) : C = e;
343
+ const e = Se();
344
+ T(), O()?.fixedOffset, j(h === null ? e : a);
341
345
  });
342
- const et = (e) => {
343
- !ve() || w() || u !== 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(), T?.cancel(), T = void 0, le = e.currentTarget instanceof HTMLElement && e.currentTarget.getBoundingClientRect().height || 32, u = e.pointerId, f = "drag", be(!0), b = {
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
- }, I = {
347
- ...C
348
- }, R = {
350
+ }, F = {
351
+ ...a
352
+ }, C = {
349
353
  x: e.clientX,
350
354
  y: e.clientY
351
- }, ce(!0, "grabbing"), Ce(e));
352
- }, p = (e) => (t) => {
353
- !xe() || d() || w() || u !== null || t.pointerType === "mouse" && t.button !== 0 || (t.preventDefault(), t.stopPropagation(), u = t.pointerId, f = "resize", pe(!0), _e = e, ze = {
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
- }, $e = {
357
- ...C
358
- }, R = {
360
+ }, ze = {
361
+ ...a
362
+ }, C = {
359
363
  x: t.clientX,
360
364
  y: t.clientY
361
- }, ce(!0, Ue[e]), Ce(t));
365
+ }, de(!0, Qe[e]), Ce(t));
362
366
  }, Re = () => {
363
367
  k = null, Pe();
364
- }, tt = (e) => {
365
- if (!(u === null || e.pointerId !== u) && f !== null && (R = {
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 = mt({
380
+ N = vt({
377
381
  pointerEvent: e,
378
382
  // Keep click/double-click targeting on the titlebar while retaining capture.
379
- captureEl: f === "drag" ? se : a,
380
- onMove: tt,
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
- R = {
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
- !ee() || w() || (u !== null && he(!0), re(!d()), O());
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
- Ze(e.target) && Qe();
398
- }, z = (e) => K("absolute z-10", {
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 = $t(), t = te;
410
- return typeof t == "function" ? we(t, e) : te = e, e;
411
- })(), l(v, {
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 F.mounted();
417
+ return M.mounted();
414
418
  },
415
419
  get children() {
416
- return l(ot, {
420
+ return l(rt, {
417
421
  get children() {
418
- var e = Lt(), t = e.firstChild, r = t.firstChild, o = r.firstChild, $ = o.nextSibling, U = r.nextSibling, Ee = a;
419
- typeof Ee == "function" ? we(Ee, e) : a = e, ke(e, Te({
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 F.state();
427
+ return M.state();
422
428
  },
423
429
  get "aria-hidden"() {
424
- return F.exiting() || !ne() ? "true" : void 0;
430
+ return M.exiting() || !te() ? "true" : void 0;
425
431
  },
426
432
  get inert() {
427
- return F.exiting() || !ne();
433
+ return M.exiting() || !te();
428
434
  },
429
435
  get "data-floe-floating-window-compact"() {
430
- return w() ? "true" : void 0;
436
+ return g() ? "true" : void 0;
431
437
  }
432
438
  }, {
433
- [Oe]: "true"
439
+ [Le]: "true"
434
440
  }, {
435
441
  get class() {
436
- return K("fixed left-0 top-0 z-[100] flex flex-col", (X() || Y()) && "select-none", F.exiting() && "pointer-events-none");
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: ne() ? void 0 : "hidden",
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": X() ? "transform" : Y() ? "transform, width, height" : void 0
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 Q(() => !!n.title)() ? ye() : void 0;
453
+ return Z(() => !!n.title)() ? xe() : void 0;
451
454
  },
452
455
  tabIndex: -1,
453
- onPointerDown: it
454
- }), !1, !0), ke(t, Te({
455
- [pt]: "true"
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 X() || Y() ? "true" : void 0;
465
+ return L() || Y() ? "true" : void 0;
461
466
  },
462
467
  get "data-floe-floating-window-state"() {
463
- return je() ? "active" : "inactive";
468
+ return Ge() ? "active" : "inactive";
464
469
  }
465
470
  }, {
466
- [Oe]: "true"
471
+ [Le]: "true"
467
472
  }, {
468
473
  get class() {
469
- return K("relative flex h-full w-full flex-col overflow-hidden", "text-card-foreground rounded-md", "border", "floe-floating-presence floe-floating-window-motion", (X() || Y()) && "floe-floating-presence--suspended", d() && "rounded-none", n.class);
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": d() ? "0" : "var(--floe-radius-floating)"
478
+ "border-radius": c() ? "0" : "var(--floe-radius-floating)"
474
479
  };
475
480
  },
476
481
  get "data-floating-presence"() {
477
- return F.state();
482
+ return M.state();
478
483
  }
479
- }), !1, !0), r.$$dblclick = nt, r.$$pointerdown = et;
480
- var Me = se;
481
- return typeof Me == "function" ? we(Me, r) : se = r, c(o, l(v, {
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 = St(), G = i.firstChild;
487
- return c(i, l(v, {
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 = _t();
493
- return c(Fe, () => n.titleIcon), Fe;
497
+ var Fe = St();
498
+ return f(Fe, () => n.titleIcon), Fe;
494
499
  }
495
- }), G), c(G, () => n.title), h(() => rt(i, "id", ye())), i;
500
+ }), G), f(G, () => n.title), w(() => at(i, "id", xe())), i;
496
501
  }
497
- })), c(r, l(v, {
502
+ })), f(r, l(y, {
498
503
  get when() {
499
504
  return n.headerActions;
500
505
  },
501
506
  get children() {
502
- var i = Pt(), G = i.firstChild;
503
- return c(i, () => n.headerActions, G), i;
507
+ var i = It(), G = i.firstChild;
508
+ return f(i, () => n.headerActions, G), i;
504
509
  }
505
- }), $), c($, l(v, {
510
+ }), S), f(S, l(y, {
506
511
  get when() {
507
- return Q(() => !!ee())() && !w();
512
+ return Z(() => !!K())() && !g();
508
513
  },
509
514
  get children() {
510
- return l(Le, {
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 Q(() => !!d())() ? n.labels?.restore ?? "Restore" : n.labels?.maximize ?? "Maximize";
524
+ return Z(() => !!c())() ? n.labels?.restore ?? "Restore" : n.labels?.maximize ?? "Maximize";
520
525
  },
521
526
  get children() {
522
- return l(v, {
527
+ return l(y, {
523
528
  get when() {
524
- return d();
529
+ return c();
525
530
  },
526
531
  get fallback() {
527
- return l(ht, {
532
+ return l(wt, {
528
533
  class: "w-3 h-3"
529
534
  });
530
535
  },
531
536
  get children() {
532
- return l(ft, {
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), c($, l(Le, {
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(wt, {
557
+ return l(gt, {
553
558
  class: "w-3.5 h-3.5"
554
559
  });
555
560
  }
556
- }), null), c(U, () => n.children), c(t, l(v, {
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 = It();
562
- return c(i, () => n.footer), i;
566
+ var i = Rt();
567
+ return f(i, () => n.footer), i;
563
568
  }
564
- }), null), c(t, l(v, {
569
+ }), null), f(t, l(y, {
565
570
  get when() {
566
- return Q(() => !!(xe() && !d()))() && !w();
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 _(i, "pointerdown", p("s"), !0), h(() => m(i, z("s"))), i;
575
- })(), l(v, {
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 !M();
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 _(i, "pointerdown", p("w"), !0), h(() => m(i, z("w"))), i;
587
+ return P(i, "pointerdown", $("e"), !0), w(() => v(i, _("e"))), i;
586
588
  })(), (() => {
587
589
  var i = Mt();
588
- return _(i, "pointerdown", p("ne"), !0), h(() => m(i, z("ne"))), i;
590
+ return P(i, "pointerdown", $("w"), !0), w(() => v(i, _("w"))), i;
589
591
  })(), (() => {
590
592
  var i = Ft();
591
- return _(i, "pointerdown", p("nw"), !0), h(() => m(i, z("nw"))), i;
593
+ return P(i, "pointerdown", $("ne"), !0), w(() => v(i, _("ne"))), i;
592
594
  })(), (() => {
593
595
  var i = kt();
594
- return _(i, "pointerdown", p("se"), !0), h(() => m(i, z("se"))), i;
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 _(i, "pointerdown", p("sw"), !0), h(() => m(i, z("sw"))), i;
602
+ return P(i, "pointerdown", $("sw"), !0), w(() => v(i, _("sw"))), i;
598
603
  })()];
599
604
  }
600
605
  })];
601
606
  }
602
- }), null), h(() => m(r, K("flex shrink-0 items-center justify-between h-8", "border-b", d() ? "rounded-none" : "rounded-t-md", ve() && !w() && "cursor-move"))), e;
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
- at(["pointerdown", "dblclick"]);
613
+ lt(["pointerdown", "dblclick"]);
609
614
  export {
610
- Kt as FloatingWindow
615
+ en as FloatingWindow
611
616
  };