@floegence/floe-webapp-core 0.78.1 → 0.78.3

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.
@@ -1,362 +1,375 @@
1
- import { use as ne, insert as c, createComponent as d, effect as R, className as B, setStyleProperty as L, addEventListener as ae, style as $e, setAttribute as Ie, template as M, spread as Me, mergeProps as De, memo as ue, delegateEvents as _e } from "solid-js/web";
2
- import { createMemo as ie, createEffect as ze, onCleanup as me, createSignal as fe, Show as y, For as re, untrack as ye } from "solid-js";
3
- import { Skeleton as U } from "../loading/Skeleton.js";
4
- import { cn as E } from "../../utils/cn.js";
5
- import { useMediaQuery as le } from "../../hooks/useMediaQuery.js";
6
- import { useResizeObserver as Re } from "../../hooks/useResizeObserver.js";
7
- import { useVirtualWindow as Pe } from "../../hooks/useVirtualWindow.js";
8
- import { useFileBrowser as ge } from "./FileBrowserContext.js";
9
- import { useFileBrowserDrag as Fe } from "../../context/FileBrowserDragContext.js";
10
- import { FileItemIcon as Te } from "./FileIcons.js";
11
- import { FileItemDecorationBadge as ke, fileItemDecorationNameClass as Ae } from "./FileItemDecorations.js";
12
- import { ChevronDown as Le } from "../icons/index.js";
13
- import { createLongPressContextMenuHandlers as Ee } from "./longPressContextMenu.js";
14
- import { ResizeHandle as se } from "../layout/ResizeHandle.js";
15
- import { fileBrowserTouchTargetAttrs as pe } from "./touchInteractionGuard.js";
16
- import { createItemContextMenuEvent as We } from "./contextMenuEvent.js";
17
- import { createFileBrowserMarqueeSelection as He, FILE_BROWSER_MARQUEE_OVERLAY_CLASS as Be } from "./useFileBrowserMarqueeSelection.js";
18
- import { isPrimaryModKeyPressed as de } from "../../utils/keybind.js";
19
- var he = /* @__PURE__ */ M("<span>"), Ne = /* @__PURE__ */ M('<mark class="bg-warning/40 text-inherit rounded-sm">'), Oe = /* @__PURE__ */ M('<div><button type=button class="group w-full flex items-center justify-start text-left px-3 py-2 cursor-pointer hover:bg-muted/50 transition-colors">Modified'), qe = /* @__PURE__ */ M('<div class=shrink-0><button type=button class="group w-full flex items-center justify-start text-left px-3 py-2 cursor-pointer hover:bg-muted/50 transition-colors">Size'), ce = /* @__PURE__ */ M("<div>"), Xe = /* @__PURE__ */ M('<div><div data-file-list-header class="flex items-center border-b border-border text-[11px] text-muted-foreground font-medium"><div><button type=button class="group w-full flex items-center min-w-0 px-3 py-2 cursor-pointer hover:bg-muted/50 transition-colors"><span class="flex items-center gap-2 min-w-0"><span class="flex-shrink-0 w-4 h-4"aria-hidden=true></span><span class="flex items-center min-w-0"><span class=truncate>Name</span></span></span></button></div></div><div class="relative flex-1 min-h-0 overflow-auto">'), Ye = /* @__PURE__ */ M("<div aria-hidden=true>"), Q = /* @__PURE__ */ M('<div class="shrink-0 px-3 py-1.5 text-left text-muted-foreground truncate">'), Ge = /* @__PURE__ */ M('<div data-file-browser-placeholder data-file-list-row class="w-full h-8 flex items-center text-xs"><div class="flex items-center gap-2 flex-1 min-w-0 px-3 py-1.5">'), Ve = /* @__PURE__ */ M('<span>No files matching "<!>"'), Ue = /* @__PURE__ */ M('<button type=button class="px-2 py-1 rounded bg-muted hover:bg-muted/80 transition-colors">Clear Filter'), Qe = /* @__PURE__ */ M('<div class="flex flex-col items-center justify-center h-32 gap-2 text-xs text-muted-foreground">'), je = /* @__PURE__ */ M("<span>This folder is empty"), Ke = /* @__PURE__ */ M('<button type=button data-file-list-row><div class="flex items-center gap-2 flex-1 min-w-0 px-3 py-1.5"><span class="relative flex-shrink-0 w-4 h-4">');
20
- const Je = "w-full h-8 flex items-center text-xs";
21
- function Ze(e) {
22
- const l = ie(() => {
1
+ import { use as K, insert as f, createComponent as d, effect as p, className as N, setStyleProperty as T, addEventListener as ue, style as _e, setAttribute as ze, template as I, spread as ye, mergeProps as Re, memo as xe, delegateEvents as Pe } from "solid-js/web";
2
+ import { createSignal as J, createEffect as me, onCleanup as ae, createMemo as se, Show as _, For as ce, untrack as pe } from "solid-js";
3
+ import { Skeleton as j } from "../loading/Skeleton.js";
4
+ import { cn as W } from "../../utils/cn.js";
5
+ import { useMediaQuery as fe } from "../../hooks/useMediaQuery.js";
6
+ import { useResizeObserver as Fe } from "../../hooks/useResizeObserver.js";
7
+ import { useVirtualWindow as ke } from "../../hooks/useVirtualWindow.js";
8
+ import { useFileBrowser as we } from "./FileBrowserContext.js";
9
+ import { useFileBrowserDrag as Te } from "../../context/FileBrowserDragContext.js";
10
+ import { FileItemIcon as Ae } from "./FileIcons.js";
11
+ import { FileItemDecorationBadge as Le, fileItemDecorationNameClass as Ee } from "./FileItemDecorations.js";
12
+ import { ChevronDown as We } from "../icons/index.js";
13
+ import { createLongPressContextMenuHandlers as He } from "./longPressContextMenu.js";
14
+ import { ResizeHandle as ge } from "../layout/ResizeHandle.js";
15
+ import { fileBrowserTouchTargetAttrs as Be } from "./touchInteractionGuard.js";
16
+ import { createItemContextMenuEvent as Ne } from "./contextMenuEvent.js";
17
+ import { createFileBrowserMarqueeSelection as Oe, FILE_BROWSER_MARQUEE_OVERLAY_CLASS as qe } from "./useFileBrowserMarqueeSelection.js";
18
+ import { isPrimaryModKeyPressed as he } from "../../utils/keybind.js";
19
+ var be = /* @__PURE__ */ I("<span>"), Xe = /* @__PURE__ */ I('<mark class="bg-warning/40 text-inherit rounded-sm">'), Ye = /* @__PURE__ */ I('<div><button type=button class="group w-full flex items-center justify-start text-left px-3 py-2 cursor-pointer hover:bg-muted/50 transition-colors">Modified'), Ve = /* @__PURE__ */ I('<div class=shrink-0><button type=button class="group w-full flex items-center justify-start text-left px-3 py-2 cursor-pointer hover:bg-muted/50 transition-colors">Size'), ve = /* @__PURE__ */ I("<div>"), Ge = /* @__PURE__ */ I('<div><div aria-hidden=true class="absolute invisible pointer-events-none w-px h-[var(--floe-row-height)]"></div><div data-file-list-header class="flex items-center border-b border-border text-[11px] text-muted-foreground font-medium"><div><button type=button class="group w-full flex items-center min-w-0 px-3 py-2 cursor-pointer hover:bg-muted/50 transition-colors"><span class="flex items-center gap-2 min-w-0"><span class="flex-shrink-0 w-4 h-4"aria-hidden=true></span><span class="flex items-center min-w-0"><span class=truncate>Name</span></span></span></button></div></div><div class="relative flex-1 min-h-0 overflow-auto">'), Ue = /* @__PURE__ */ I("<div aria-hidden=true>"), Z = /* @__PURE__ */ I('<div class="shrink-0 px-3 py-1 text-left text-muted-foreground truncate">'), Qe = /* @__PURE__ */ I('<div data-file-browser-placeholder data-file-list-row class="w-full h-[var(--floe-row-height)] flex items-center text-[length:var(--floe-type-control)] leading-[var(--floe-line-control)]"><div class="flex items-center gap-2 flex-1 min-w-0 px-3 py-1">'), je = /* @__PURE__ */ I('<span>No files matching "<!>"'), Ke = /* @__PURE__ */ I('<button type=button class="px-2 py-1 rounded bg-muted hover:bg-muted/80 transition-colors">Clear Filter'), Je = /* @__PURE__ */ I('<div class="flex flex-col items-center justify-center h-32 gap-2 text-xs text-muted-foreground">'), Ze = /* @__PURE__ */ I("<span>This folder is empty"), et = /* @__PURE__ */ I('<button type=button data-file-list-row><div class="flex items-center gap-2 flex-1 min-w-0 px-3 py-1"><span class="relative flex-shrink-0 w-4 h-4">');
20
+ const tt = "w-full h-[var(--floe-row-height)] flex items-center text-[length:var(--floe-type-control)] leading-[var(--floe-line-control)]";
21
+ function nt(e) {
22
+ const l = se(() => {
23
23
  if (!e.match || e.match.matchedIndices.length === 0)
24
24
  return [{
25
25
  text: e.name,
26
26
  highlight: !1
27
27
  }];
28
- const I = [], F = new Set(e.match.matchedIndices);
29
- let D = "", b = !1;
30
- for (let g = 0; g < e.name.length; g++) {
31
- const _ = F.has(g);
32
- g === 0 ? (b = _, D = e.name[g]) : _ === b ? D += e.name[g] : (I.push({
33
- text: D,
34
- highlight: b
35
- }), D = e.name[g], b = _);
28
+ const w = [], k = new Set(e.match.matchedIndices);
29
+ let M = "", D = !1;
30
+ for (let b = 0; b < e.name.length; b++) {
31
+ const S = k.has(b);
32
+ b === 0 ? (D = S, M = e.name[b]) : S === D ? M += e.name[b] : (w.push({
33
+ text: M,
34
+ highlight: D
35
+ }), M = e.name[b], D = S);
36
36
  }
37
- return D && I.push({
38
- text: D,
39
- highlight: b
40
- }), I;
37
+ return M && w.push({
38
+ text: M,
39
+ highlight: D
40
+ }), w;
41
41
  });
42
42
  return (() => {
43
- var I = he();
44
- return c(I, d(re, {
43
+ var w = be();
44
+ return f(w, d(ce, {
45
45
  get each() {
46
46
  return l();
47
47
  },
48
- children: (F) => d(y, {
48
+ children: (k) => d(_, {
49
49
  get when() {
50
- return F.highlight;
50
+ return k.highlight;
51
51
  },
52
52
  get fallback() {
53
- return ue(() => F.text);
53
+ return xe(() => k.text);
54
54
  },
55
55
  get children() {
56
- var D = Ne();
57
- return c(D, () => F.text), D;
56
+ var M = Xe();
57
+ return f(M, () => k.text), M;
58
58
  }
59
59
  })
60
- })), R(() => B(I, E("truncate", e.class))), I;
60
+ })), p(() => N(w, W("truncate", e.class))), w;
61
61
  })();
62
62
  }
63
- function St(e) {
64
- const l = ge(), I = Fe(), F = () => (e.enableDragDrop ?? !0) && !!I, D = () => e.instanceId ?? "default", b = 32, g = Pe({
63
+ function $t(e) {
64
+ const l = we(), w = Te(), k = () => (e.enableDragDrop ?? !0) && !!w, M = () => e.instanceId ?? "default", [D, b] = J(null), [S, O] = J(28);
65
+ me(() => {
66
+ const t = D();
67
+ if (!t) return;
68
+ const o = () => {
69
+ if (!t.getClientRects().length) return;
70
+ const u = Number.parseFloat(getComputedStyle(t).height);
71
+ u > 0 && O(u);
72
+ };
73
+ if (o(), typeof ResizeObserver > "u") return;
74
+ const a = new ResizeObserver(o);
75
+ a.observe(t), ae(() => a.disconnect());
76
+ });
77
+ const y = ke({
65
78
  count: () => l.currentFiles().length,
66
- itemSize: () => b,
79
+ itemSize: S,
67
80
  overscan: 12
68
- }), _ = ie(() => {
81
+ }), C = se(() => {
69
82
  const {
70
- start: n,
71
- end: i
72
- } = g.range();
73
- return l.currentFiles().slice(n, i);
74
- }), T = /* @__PURE__ */ new Map();
75
- let z = null, x = 0;
76
- const j = (n, i) => {
77
- if (i) {
78
- T.set(n, i);
83
+ start: t,
84
+ end: o
85
+ } = y.range();
86
+ return l.currentFiles().slice(t, o);
87
+ }), A = /* @__PURE__ */ new Map();
88
+ let R = null, z = 0;
89
+ const ee = (t, o) => {
90
+ if (o) {
91
+ A.set(t, o);
79
92
  return;
80
93
  }
81
- T.delete(n);
82
- }, K = (n) => {
83
- if (!z) return;
84
- const i = n * b, s = i + b, u = z.scrollTop, h = u + z.clientHeight;
85
- if (i < u) {
86
- z.scrollTop = i, g.onScroll();
94
+ A.delete(t);
95
+ }, G = (t) => {
96
+ if (!R) return;
97
+ const o = t * S(), a = o + S(), u = R.scrollTop, g = u + R.clientHeight;
98
+ if (o < u) {
99
+ R.scrollTop = o, y.onScroll();
87
100
  return;
88
101
  }
89
- s > h && (z.scrollTop = Math.max(0, s - z.clientHeight), g.onScroll());
102
+ a > g && (R.scrollTop = Math.max(0, a - R.clientHeight), y.onScroll());
90
103
  };
91
- ze(() => {
92
- const n = l.revealRequest(), i = l.currentFiles();
93
- if (_(), !n) return;
94
- const s = i.findIndex((w) => w.id === n.targetId);
95
- if (s < 0) return;
96
- if (!T.get(n.targetId)) {
97
- K(s);
104
+ me(() => {
105
+ const t = l.revealRequest(), o = l.currentFiles();
106
+ if (C(), !t) return;
107
+ const a = o.findIndex((h) => h.id === t.targetId);
108
+ if (a < 0) return;
109
+ if (!A.get(t.targetId)) {
110
+ G(a);
98
111
  return;
99
112
  }
100
- typeof cancelAnimationFrame == "function" && x && (cancelAnimationFrame(x), x = 0);
101
- const h = () => {
102
- l.revealRequest()?.requestId === n.requestId && (T.get(n.targetId)?.scrollIntoView({
113
+ typeof cancelAnimationFrame == "function" && z && (cancelAnimationFrame(z), z = 0);
114
+ const g = () => {
115
+ l.revealRequest()?.requestId === t.requestId && (A.get(t.targetId)?.scrollIntoView({
103
116
  block: "nearest",
104
117
  inline: "nearest"
105
- }), l.selectItem(n.targetId, !1), l.consumeRevealRequest(n.requestId));
118
+ }), l.selectItem(t.targetId, !1), l.consumeRevealRequest(t.requestId));
106
119
  };
107
120
  if (typeof requestAnimationFrame == "function") {
108
- x = requestAnimationFrame(() => {
109
- x = 0, h();
121
+ z = requestAnimationFrame(() => {
122
+ z = 0, g();
110
123
  });
111
124
  return;
112
125
  }
113
- queueMicrotask(h);
114
- }), me(() => {
115
- typeof cancelAnimationFrame == "function" && x && cancelAnimationFrame(x);
126
+ queueMicrotask(g);
127
+ }), ae(() => {
128
+ typeof cancelAnimationFrame == "function" && z && cancelAnimationFrame(z);
116
129
  });
117
- const A = (n) => {
118
- const i = l.sortConfig();
130
+ const P = (t) => {
131
+ const o = l.sortConfig();
119
132
  l.setSortConfig({
120
- field: n,
121
- direction: i.field === n && i.direction === "asc" ? "desc" : "asc"
133
+ field: t,
134
+ direction: o.field === t && o.direction === "asc" ? "desc" : "asc"
122
135
  });
123
- }, J = (n) => n === void 0 ? "-" : n < 1024 ? `${n} B` : n < 1024 * 1024 ? `${(n / 1024).toFixed(1)} KB` : `${(n / (1024 * 1024)).toFixed(1)} MB`, q = (n) => n ? n.toLocaleDateString("en-US", {
136
+ }, te = (t) => t === void 0 ? "-" : t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`, q = (t) => t ? t.toLocaleDateString("en-US", {
124
137
  month: "short",
125
138
  day: "numeric",
126
139
  year: "numeric"
127
- }) : "-", P = He({
128
- getContainer: () => z,
129
- getOverlayHost: () => z,
130
- getVisibleItemIdsInOrder: () => l.currentFiles().map((n) => n.id),
131
- getElementForId: (n) => T.get(n) ?? null,
140
+ }) : "-", X = Oe({
141
+ getContainer: () => R,
142
+ getOverlayHost: () => R,
143
+ getVisibleItemIdsInOrder: () => l.currentFiles().map((t) => t.id),
144
+ getElementForId: (t) => A.get(t) ?? null,
132
145
  getSelectedIds: () => [...l.selectedItems()],
133
- replaceSelection: (n, i) => l.replaceSelection(n, i),
146
+ replaceSelection: (t, o) => l.replaceSelection(t, o),
134
147
  clearSelection: l.clearSelection
135
- }), N = (n) => {
136
- const i = () => l.sortConfig(), s = () => i().field === n.field;
148
+ }), Y = (t) => {
149
+ const o = () => l.sortConfig(), a = () => o().field === t.field;
137
150
  return (() => {
138
- var u = he();
139
- return c(u, d(Le, {
151
+ var u = be();
152
+ return f(u, d(We, {
140
153
  get class() {
141
- return E("w-3 h-3 transition-transform duration-150", s() && i().direction === "asc" && "rotate-180");
154
+ return W("w-3 h-3 transition-transform duration-150", a() && o().direction === "asc" && "rotate-180");
142
155
  }
143
- })), R(() => B(u, E("ml-1 transition-all duration-150", s() ? "opacity-100" : "opacity-0 group-hover:opacity-40"))), u;
156
+ })), p(() => N(u, W("ml-1 transition-all duration-150", a() ? "opacity-100" : "opacity-0 group-hover:opacity-40"))), u;
144
157
  })();
145
- }, O = le("(min-width: 640px)"), X = le("(min-width: 768px)"), [Z, Y] = fe(null), ee = Re(Z, {
158
+ }, U = fe("(min-width: 640px)"), ne = fe("(min-width: 768px)"), [ie, H] = J(null), Q = Fe(ie, {
146
159
  preserveWhenHidden: !0
147
- }), p = (n, i, s) => Math.max(i, Math.min(s, n)), v = ie(() => {
148
- const n = ee()?.width ?? 0, i = O(), s = X(), u = l.listColumnRatios(), h = 160, w = 120, C = 80, $ = 128, o = 96;
149
- if (!i || n <= 0)
160
+ }), L = (t, o, a) => Math.max(o, Math.min(a, t)), v = se(() => {
161
+ const t = Q()?.width ?? 0, o = U(), a = ne(), u = l.listColumnRatios(), g = 160, h = 120, x = 80, n = 128, s = 96;
162
+ if (!o || t <= 0)
150
163
  return {
151
- width: n,
152
- showModified: i,
153
- showSize: s,
154
- minName: h,
155
- minModified: w,
156
- minSize: C,
157
- modifiedWidth: $,
158
- sizeWidth: o
164
+ width: t,
165
+ showModified: o,
166
+ showSize: a,
167
+ minName: g,
168
+ minModified: h,
169
+ minSize: x,
170
+ modifiedWidth: n,
171
+ sizeWidth: s
159
172
  };
160
- if (!s) {
161
- const m = u.size, f = Math.max(0, 1 - m);
162
- let S = (f > 0 ? u.modifiedAt / f : u.modifiedAt) * n;
163
- return S = p(S, w, Math.max(w, n - h)), {
164
- width: n,
165
- showModified: i,
166
- showSize: s,
167
- minName: h,
168
- minModified: w,
169
- minSize: C,
170
- modifiedWidth: S,
173
+ if (!a) {
174
+ const m = u.size, $ = Math.max(0, 1 - m);
175
+ let F = ($ > 0 ? u.modifiedAt / $ : u.modifiedAt) * t;
176
+ return F = L(F, h, Math.max(h, t - g)), {
177
+ width: t,
178
+ showModified: o,
179
+ showSize: a,
180
+ minName: g,
181
+ minModified: h,
182
+ minSize: x,
183
+ modifiedWidth: F,
171
184
  sizeWidth: 0
172
185
  };
173
186
  }
174
- let r = Math.max(w, u.modifiedAt * n), t = Math.max(C, u.size * n);
175
- const a = Math.max(0, n - h);
176
- if (r + t > a) {
177
- const m = r + t - a, f = Math.max(0, r - w), S = Math.max(0, t - C), k = f + S;
178
- k > 0 && (r -= m * (f / k), t -= m * (S / k));
187
+ let r = Math.max(h, u.modifiedAt * t), i = Math.max(x, u.size * t);
188
+ const c = Math.max(0, t - g);
189
+ if (r + i > c) {
190
+ const m = r + i - c, $ = Math.max(0, r - h), F = Math.max(0, i - x), E = $ + F;
191
+ E > 0 && (r -= m * ($ / E), i -= m * (F / E));
179
192
  }
180
- return r = Math.max(w, r), t = Math.max(C, t), {
181
- width: n,
182
- showModified: i,
183
- showSize: s,
184
- minName: h,
185
- minModified: w,
186
- minSize: C,
193
+ return r = Math.max(h, r), i = Math.max(x, i), {
194
+ width: t,
195
+ showModified: o,
196
+ showSize: a,
197
+ minName: g,
198
+ minModified: h,
199
+ minSize: x,
187
200
  modifiedWidth: r,
188
- sizeWidth: t
201
+ sizeWidth: i
189
202
  };
190
- }), W = () => v().modifiedWidth, H = () => v().sizeWidth, G = (n) => {
191
- const i = v();
192
- if (!i.showModified || i.width <= 0) return;
193
- if (!i.showSize) {
194
- const m = l.listColumnRatios().size, f = Math.max(0, 1 - m);
195
- if (f <= 0) return;
196
- const S = i.width, k = i.modifiedWidth, oe = Math.max(0, S - k), xe = i.minName - oe, ve = k - i.minModified, te = p(n, xe, ve);
197
- if (te === 0) return;
198
- const we = oe + te, Se = k - te, be = we / S * f, Ce = Se / S * f;
203
+ }), B = () => v().modifiedWidth, V = () => v().sizeWidth, re = (t) => {
204
+ const o = v();
205
+ if (!o.showModified || o.width <= 0) return;
206
+ if (!o.showSize) {
207
+ const m = l.listColumnRatios().size, $ = Math.max(0, 1 - m);
208
+ if ($ <= 0) return;
209
+ const F = o.width, E = o.modifiedWidth, de = Math.max(0, F - E), Se = o.minName - de, Ce = E - o.minModified, le = L(t, Se, Ce);
210
+ if (le === 0) return;
211
+ const $e = de + le, Ie = E - le, Me = $e / F * $, De = Ie / F * $;
199
212
  l.setListColumnRatios({
200
- name: be,
201
- modifiedAt: Ce,
213
+ name: Me,
214
+ modifiedAt: De,
202
215
  size: m
203
216
  });
204
217
  return;
205
218
  }
206
- const s = i.width, u = i.modifiedWidth, h = i.sizeWidth, w = Math.max(0, s - u - h), C = i.minName - w, $ = u - i.minModified, o = p(n, C, $);
207
- if (o === 0) return;
208
- const r = w + o, t = u - o;
219
+ const a = o.width, u = o.modifiedWidth, g = o.sizeWidth, h = Math.max(0, a - u - g), x = o.minName - h, n = u - o.minModified, s = L(t, x, n);
220
+ if (s === 0) return;
221
+ const r = h + s, i = u - s;
209
222
  l.setListColumnRatios({
210
- name: r / s,
211
- modifiedAt: t / s,
212
- size: h / s
223
+ name: r / a,
224
+ modifiedAt: i / a,
225
+ size: g / a
213
226
  });
214
- }, V = (n) => {
215
- const i = v();
216
- if (!i.showSize || i.width <= 0) return;
217
- const s = i.width, u = i.modifiedWidth, h = i.sizeWidth, w = i.minModified - u, C = h - i.minSize, $ = p(n, w, C);
218
- if ($ === 0) return;
219
- const o = u + $, r = h - $, t = Math.max(0, s - o - r);
227
+ }, oe = (t) => {
228
+ const o = v();
229
+ if (!o.showSize || o.width <= 0) return;
230
+ const a = o.width, u = o.modifiedWidth, g = o.sizeWidth, h = o.minModified - u, x = g - o.minSize, n = L(t, h, x);
231
+ if (n === 0) return;
232
+ const s = u + n, r = g - n, i = Math.max(0, a - s - r);
220
233
  l.setListColumnRatios({
221
- name: t / s,
222
- modifiedAt: o / s,
223
- size: r / s
234
+ name: i / a,
235
+ modifiedAt: s / a,
236
+ size: r / a
224
237
  });
225
238
  };
226
239
  return (() => {
227
- var n = Xe(), i = n.firstChild, s = i.firstChild, u = s.firstChild, h = u.firstChild, w = h.firstChild, C = w.nextSibling;
228
- C.firstChild;
229
- var $ = i.nextSibling;
230
- return ne(Y, i), u.$$click = () => A("name"), c(C, d(N, {
240
+ var t = Ge(), o = t.firstChild, a = o.nextSibling, u = a.firstChild, g = u.firstChild, h = g.firstChild, x = h.firstChild, n = x.nextSibling;
241
+ n.firstChild;
242
+ var s = a.nextSibling;
243
+ return K(b, o), K(H, a), g.$$click = () => P("name"), f(n, d(Y, {
231
244
  field: "name"
232
- }), null), c(s, d(y, {
245
+ }), null), f(u, d(_, {
233
246
  get when() {
234
247
  return v().showModified;
235
248
  },
236
249
  get children() {
237
- return d(se, {
250
+ return d(ge, {
238
251
  direction: "horizontal",
239
- onResize: G
252
+ onResize: re
240
253
  });
241
254
  }
242
- }), null), c(i, d(y, {
255
+ }), null), f(a, d(_, {
243
256
  get when() {
244
257
  return v().showModified;
245
258
  },
246
259
  get children() {
247
- var o = Oe(), r = o.firstChild;
248
- return r.firstChild, r.$$click = () => A("modifiedAt"), c(r, d(N, {
260
+ var r = Ye(), i = r.firstChild;
261
+ return i.firstChild, i.$$click = () => P("modifiedAt"), f(i, d(Y, {
249
262
  field: "modifiedAt"
250
- }), null), c(o, d(y, {
263
+ }), null), f(r, d(_, {
251
264
  get when() {
252
265
  return v().showSize;
253
266
  },
254
267
  get children() {
255
- return d(se, {
268
+ return d(ge, {
256
269
  direction: "horizontal",
257
- onResize: V
270
+ onResize: oe
258
271
  });
259
272
  }
260
- }), null), R((t) => {
261
- var a = E("relative shrink-0", v().showSize && "border-r border-border"), m = `${W()}px`;
262
- return a !== t.e && B(o, t.e = a), m !== t.t && L(o, "width", t.t = m), t;
273
+ }), null), p((c) => {
274
+ var m = W("relative shrink-0", v().showSize && "border-r border-border"), $ = `${B()}px`;
275
+ return m !== c.e && N(r, c.e = m), $ !== c.t && T(r, "width", c.t = $), c;
263
276
  }, {
264
277
  e: void 0,
265
278
  t: void 0
266
- }), o;
279
+ }), r;
267
280
  }
268
- }), null), c(i, d(y, {
281
+ }), null), f(a, d(_, {
269
282
  get when() {
270
283
  return v().showSize;
271
284
  },
272
285
  get children() {
273
- var o = qe(), r = o.firstChild;
274
- return r.firstChild, r.$$click = () => A("size"), c(r, d(N, {
286
+ var r = Ve(), i = r.firstChild;
287
+ return i.firstChild, i.$$click = () => P("size"), f(i, d(Y, {
275
288
  field: "size"
276
- }), null), R((t) => L(o, "width", `${H()}px`)), o;
289
+ }), null), p((c) => T(r, "width", `${V()}px`)), r;
277
290
  }
278
- }), null), ae($, "pointerdown", P.onPointerDown, !0), ae($, "scroll", g.onScroll), ne((o) => {
279
- z = o, g.scrollRef(o), l.setScrollContainer(o);
280
- }, $), c($, d(y, {
291
+ }), null), ue(s, "pointerdown", X.onPointerDown, !0), ue(s, "scroll", y.onScroll), K((r) => {
292
+ R = r, y.scrollRef(r), l.setScrollContainer(r);
293
+ }, s), f(s, d(_, {
281
294
  get when() {
282
295
  return !e.initializing;
283
296
  },
284
297
  get fallback() {
285
298
  return (() => {
286
- var o = Ye();
287
- return c(o, d(re, {
299
+ var r = Ue();
300
+ return f(r, d(ce, {
288
301
  get each() {
289
302
  return Array.from({
290
303
  length: 8
291
304
  });
292
305
  },
293
306
  children: () => (() => {
294
- var r = Ge(), t = r.firstChild;
295
- return c(t, d(U, {
307
+ var i = Qe(), c = i.firstChild;
308
+ return f(c, d(j, {
296
309
  class: "h-4 w-4 shrink-0"
297
- }), null), c(t, d(U, {
298
- class: "h-4 w-32 max-w-full"
299
- }), null), c(r, d(y, {
310
+ }), null), f(c, d(j, {
311
+ class: "h-[var(--floe-line-control)] w-32 max-w-full"
312
+ }), null), f(i, d(_, {
300
313
  get when() {
301
314
  return v().showModified;
302
315
  },
303
316
  get children() {
304
- var a = Q();
305
- return c(a, d(U, {
306
- class: "h-4 w-20 max-w-full"
307
- })), R((m) => L(a, "width", `${W()}px`)), a;
317
+ var m = Z();
318
+ return f(m, d(j, {
319
+ class: "h-[var(--floe-line-control)] w-20 max-w-full"
320
+ })), p(($) => T(m, "width", `${B()}px`)), m;
308
321
  }
309
- }), null), c(r, d(y, {
322
+ }), null), f(i, d(_, {
310
323
  get when() {
311
324
  return v().showSize;
312
325
  },
313
326
  get children() {
314
- var a = Q();
315
- return c(a, d(U, {
316
- class: "h-4 w-10 max-w-full"
317
- })), R((m) => L(a, "width", `${H()}px`)), a;
327
+ var m = Z();
328
+ return f(m, d(j, {
329
+ class: "h-[var(--floe-line-control)] w-10 max-w-full"
330
+ })), p(($) => T(m, "width", `${V()}px`)), m;
318
331
  }
319
- }), null), r;
332
+ }), null), i;
320
333
  })()
321
- })), o;
334
+ })), r;
322
335
  })();
323
336
  },
324
337
  get children() {
325
- return d(y, {
338
+ return d(_, {
326
339
  get when() {
327
340
  return l.currentFiles().length > 0;
328
341
  },
329
342
  get fallback() {
330
343
  return (() => {
331
- var o = Qe();
332
- return c(o, d(y, {
344
+ var r = Je();
345
+ return f(r, d(_, {
333
346
  get when() {
334
347
  return l.filterQueryApplied().trim();
335
348
  },
336
349
  get fallback() {
337
- return je();
350
+ return Ze();
338
351
  },
339
352
  get children() {
340
353
  return [(() => {
341
- var r = Ve(), t = r.firstChild, a = t.nextSibling;
342
- return a.nextSibling, c(r, () => l.filterQueryApplied(), a), r;
354
+ var i = je(), c = i.firstChild, m = c.nextSibling;
355
+ return m.nextSibling, f(i, () => l.filterQueryApplied(), m), i;
343
356
  })(), (() => {
344
- var r = Ue();
345
- return r.$$click = () => l.setFilterQuery(""), r;
357
+ var i = Ke();
358
+ return i.$$click = () => l.setFilterQuery(""), i;
346
359
  })()];
347
360
  }
348
- })), o;
361
+ })), r;
349
362
  })();
350
363
  },
351
364
  get children() {
352
- var o = ce();
353
- return c(o, d(re, {
365
+ var r = ve();
366
+ return f(r, d(ce, {
354
367
  get each() {
355
- return _();
368
+ return C();
356
369
  },
357
- children: (r) => d(et, {
358
- item: r,
359
- formatSize: J,
370
+ children: (i) => d(it, {
371
+ item: i,
372
+ formatSize: te,
360
373
  formatDate: q,
361
374
  get showModified() {
362
375
  return v().showModified;
@@ -365,80 +378,80 @@ function St(e) {
365
378
  return v().showSize;
366
379
  },
367
380
  get modifiedWidthPx() {
368
- return W();
381
+ return B();
369
382
  },
370
383
  get sizeWidthPx() {
371
- return H();
384
+ return V();
372
385
  },
373
386
  get instanceId() {
374
- return D();
387
+ return M();
375
388
  },
376
389
  get enableDragDrop() {
377
- return F();
390
+ return k();
378
391
  },
379
- dragContext: I,
380
- registerRow: j
392
+ dragContext: w,
393
+ registerRow: ee
381
394
  })
382
- })), R((r) => {
383
- var t = `${g.paddingTop()}px`, a = `${g.paddingBottom()}px`;
384
- return t !== r.e && L(o, "padding-top", r.e = t), a !== r.t && L(o, "padding-bottom", r.t = a), r;
395
+ })), p((i) => {
396
+ var c = `${y.paddingTop()}px`, m = `${y.paddingBottom()}px`;
397
+ return c !== i.e && T(r, "padding-top", i.e = c), m !== i.t && T(r, "padding-bottom", i.t = m), i;
385
398
  }, {
386
399
  e: void 0,
387
400
  t: void 0
388
- }), o;
401
+ }), r;
389
402
  }
390
403
  });
391
404
  }
392
- }), null), c($, d(y, {
405
+ }), null), f(s, d(_, {
393
406
  get when() {
394
- return P.overlayStyle();
407
+ return X.overlayStyle();
395
408
  },
396
- children: (o) => (() => {
397
- var r = ce();
398
- return B(r, Be), R((t) => $e(r, o(), t)), r;
409
+ children: (r) => (() => {
410
+ var i = ve();
411
+ return N(i, qe), p((c) => _e(i, r(), c)), i;
399
412
  })()
400
- }), null), R((o) => {
401
- var r = E("flex flex-col h-full min-h-0", e.class), t = e.initializing || void 0, a = E("relative flex-1 min-w-0", v().showModified && "border-r border-border");
402
- return r !== o.e && B(n, o.e = r), t !== o.t && Ie(n, "aria-busy", o.t = t), a !== o.a && B(s, o.a = a), o;
413
+ }), null), p((r) => {
414
+ var i = W("relative flex flex-col h-full min-h-0", e.class), c = e.initializing || void 0, m = W("relative flex-1 min-w-0", v().showModified && "border-r border-border");
415
+ return i !== r.e && N(t, r.e = i), c !== r.t && ze(t, "aria-busy", r.t = c), m !== r.a && N(u, r.a = m), r;
403
416
  }, {
404
417
  e: void 0,
405
418
  t: void 0,
406
419
  a: void 0
407
- }), n;
420
+ }), t;
408
421
  })();
409
422
  }
410
- function et(e) {
411
- const l = ge(), I = () => l.isSelected(e.item.id), F = () => l.getFilterMatchForId(e.item.id), D = ye(() => e.item), b = Ee(l, D, {
423
+ function it(e) {
424
+ const l = we(), w = () => l.isSelected(e.item.id), k = () => l.getFilterMatchForId(e.item.id), M = pe(() => e.item), D = He(l, M, {
412
425
  source: "list"
413
426
  });
414
- let g, _ = null, T = 0, z = 0, x = !1;
415
- const j = 5, K = 500;
416
- let A = null;
417
- const [J, q] = fe(!1), P = () => g === "touch" || g === "pen", N = () => e.item.type === "folder", O = () => N() && e.enableDragDrop && e.dragContext, X = () => {
418
- if (!O() || !e.dragContext) return !1;
419
- const t = e.dragContext.dragState();
420
- return t.isDragging ? e.dragContext.canDropOn(t.draggedItems, e.item.path, e.item, e.instanceId) : !1;
421
- }, Z = () => {
422
- if (!e.dragContext) return !1;
423
- const t = e.dragContext.dragState();
424
- return t.isDragging ? t.draggedItems.some((a) => a.item.id === e.item.id) : !1;
427
+ let b, S = null, O = 0, y = 0, C = !1;
428
+ const A = 5, R = 500;
429
+ let z = null;
430
+ const [ee, G] = J(!1), P = () => b === "touch" || b === "pen", te = () => e.item.type === "folder", q = () => te() && e.enableDragDrop && e.dragContext, X = () => {
431
+ if (!q() || !e.dragContext) return !1;
432
+ const n = e.dragContext.dragState();
433
+ return n.isDragging ? e.dragContext.canDropOn(n.draggedItems, e.item.path, e.item, e.instanceId) : !1;
425
434
  }, Y = () => {
426
- A !== null && (clearTimeout(A), A = null);
427
- }, ee = () => {
428
- typeof document > "u" || (document.removeEventListener("pointermove", H, !0), document.removeEventListener("pointerup", G, !0), document.removeEventListener("pointercancel", V, !0));
429
- }, p = () => {
430
- typeof document > "u" || (document.addEventListener("pointermove", H, !0), document.addEventListener("pointerup", G, !0), document.addEventListener("pointercancel", V, !0));
431
- }, v = (t) => {
432
- Y(), ee(), x && e.dragContext && e.dragContext.endDrag(t), _ = null, x = !1;
435
+ if (!e.dragContext) return !1;
436
+ const n = e.dragContext.dragState();
437
+ return n.isDragging ? n.draggedItems.some((s) => s.item.id === e.item.id) : !1;
438
+ }, U = () => {
439
+ z !== null && (clearTimeout(z), z = null);
440
+ }, ne = () => {
441
+ typeof document > "u" || (document.removeEventListener("pointermove", L, !0), document.removeEventListener("pointerup", v, !0), document.removeEventListener("pointercancel", B, !0));
442
+ }, ie = () => {
443
+ typeof document > "u" || (document.addEventListener("pointermove", L, !0), document.addEventListener("pointerup", v, !0), document.addEventListener("pointercancel", B, !0));
444
+ }, H = (n) => {
445
+ U(), ne(), C && e.dragContext && e.dragContext.endDrag(n), S = null, C = !1;
433
446
  };
434
- me(() => {
435
- e.registerRow(e.item.id, null), v(!1);
447
+ ae(() => {
448
+ e.registerRow(e.item.id, null), H(!1);
436
449
  });
437
- const W = (t, a) => {
438
- if (!e.enableDragDrop || !e.dragContext || x) return;
439
- x = !0, I() || l.selectItem(e.item.id, !1);
440
- const m = l.getSelectedItemsList(), S = (m.length > 0 && I() ? m : [e.item]).map((k) => ({
441
- item: k,
450
+ const Q = (n, s) => {
451
+ if (!e.enableDragDrop || !e.dragContext || C) return;
452
+ C = !0, w() || l.selectItem(e.item.id, !1);
453
+ const r = l.getSelectedItemsList(), c = (r.length > 0 && w() ? r : [e.item]).map((m) => ({
454
+ item: m,
442
455
  sourceInstanceId: e.instanceId,
443
456
  sourcePath: l.currentPath()
444
457
  }));
@@ -447,149 +460,149 @@ function et(e) {
447
460
  navigator.vibrate(50);
448
461
  } catch {
449
462
  }
450
- e.dragContext.startDrag(S, t, a);
451
- }, H = (t) => {
452
- if (_ !== t.pointerId) return;
453
- const a = t.clientX - T, m = t.clientY - z, f = Math.sqrt(a * a + m * m);
454
- if (P() && !x && f > 10) {
455
- v(!1);
463
+ e.dragContext.startDrag(c, n, s);
464
+ }, L = (n) => {
465
+ if (S !== n.pointerId) return;
466
+ const s = n.clientX - O, r = n.clientY - y, i = Math.sqrt(s * s + r * r);
467
+ if (P() && !C && i > 10) {
468
+ H(!1);
456
469
  return;
457
470
  }
458
- !P() && !x && f > j && W(t.clientX, t.clientY), x && e.dragContext && e.dragContext.updateDrag(t.clientX, t.clientY);
459
- }, G = (t) => {
460
- _ === t.pointerId && (b.onPointerUp(), v(!0));
461
- }, V = (t) => {
462
- _ === t.pointerId && (b.onPointerCancel(), v(!1));
463
- }, n = (t) => {
464
- g = t.pointerType, b.onPointerDown(t), !(t.pointerType === "mouse" && t.button !== 0) && (!e.enableDragDrop || !e.dragContext || (_ = t.pointerId, T = t.clientX, z = t.clientY, x = !1, p(), P() && (Y(), A = setTimeout(() => {
465
- _ !== null && !x && W(T, z);
466
- }, K))));
467
- }, i = (t) => {
468
- g = t.pointerType, b.onPointerMove(t);
469
- }, s = (t) => {
470
- if (!O() || !e.dragContext) return;
471
- const a = e.dragContext.dragState();
472
- if (!a.isDragging) return;
473
- q(!0);
474
- const m = e.dragContext.canDropOn(a.draggedItems, e.item.path, e.item, e.instanceId), S = t.currentTarget?.getBoundingClientRect() ?? null;
471
+ !P() && !C && i > A && Q(n.clientX, n.clientY), C && e.dragContext && e.dragContext.updateDrag(n.clientX, n.clientY);
472
+ }, v = (n) => {
473
+ S === n.pointerId && (D.onPointerUp(), H(!0));
474
+ }, B = (n) => {
475
+ S === n.pointerId && (D.onPointerCancel(), H(!1));
476
+ }, V = (n) => {
477
+ b = n.pointerType, D.onPointerDown(n), !(n.pointerType === "mouse" && n.button !== 0) && (!e.enableDragDrop || !e.dragContext || (S = n.pointerId, O = n.clientX, y = n.clientY, C = !1, ie(), P() && (U(), z = setTimeout(() => {
478
+ S !== null && !C && Q(O, y);
479
+ }, R))));
480
+ }, re = (n) => {
481
+ b = n.pointerType, D.onPointerMove(n);
482
+ }, oe = (n) => {
483
+ if (!q() || !e.dragContext) return;
484
+ const s = e.dragContext.dragState();
485
+ if (!s.isDragging) return;
486
+ G(!0);
487
+ const r = e.dragContext.canDropOn(s.draggedItems, e.item.path, e.item, e.instanceId), c = n.currentTarget?.getBoundingClientRect() ?? null;
475
488
  e.dragContext.setDropTarget({
476
489
  instanceId: e.instanceId,
477
490
  targetPath: e.item.path,
478
491
  targetItem: e.item
479
- }, m, S);
480
- }, u = (t) => {
492
+ }, r, c);
493
+ }, t = (n) => {
481
494
  if (!e.dragContext) return;
482
- q(!1);
483
- const a = e.dragContext.dragState();
484
- a.isDragging && a.dropTarget?.targetPath === e.item.path && e.dragContext.setDropTarget(null, !1);
485
- }, h = (t) => {
486
- if (x) {
487
- x = !1;
495
+ G(!1);
496
+ const s = e.dragContext.dragState();
497
+ s.isDragging && s.dropTarget?.targetPath === e.item.path && e.dragContext.setDropTarget(null, !1);
498
+ }, o = (n) => {
499
+ if (C) {
500
+ C = !1;
488
501
  return;
489
502
  }
490
- if (!b.consumeClickSuppression(t)) {
503
+ if (!D.consumeClickSuppression(n)) {
491
504
  if (P()) {
492
505
  l.openItem(e.item);
493
506
  return;
494
507
  }
495
- if (t.shiftKey) {
496
- l.selectRangeTo(e.item.id, de(t));
508
+ if (n.shiftKey) {
509
+ l.selectRangeTo(e.item.id, he(n));
497
510
  return;
498
511
  }
499
- l.selectItem(e.item.id, de(t));
512
+ l.selectItem(e.item.id, he(n));
500
513
  }
501
- }, w = () => {
514
+ }, a = () => {
502
515
  P() || l.openItem(e.item);
503
- }, C = (t) => {
504
- if (t.preventDefault(), t.stopPropagation(), P()) return;
516
+ }, u = (n) => {
517
+ if (n.preventDefault(), n.stopPropagation(), P()) return;
505
518
  l.ensureContextMenuSelection(e.item.id);
506
- const a = l.getSelectedItemsList(), m = a.length > 0 ? a : [e.item];
507
- l.showContextMenu(We({
508
- x: t.clientX,
509
- y: t.clientY,
519
+ const s = l.getSelectedItemsList(), r = s.length > 0 ? s : [e.item];
520
+ l.showContextMenu(Ne({
521
+ x: n.clientX,
522
+ y: n.clientY,
510
523
  triggerItem: e.item,
511
- items: m,
524
+ items: r,
512
525
  source: "list"
513
526
  }));
514
- }, $ = () => e.dragContext?.dragState(), o = () => $()?.isDragging ?? !1, r = () => J() && o() && O();
527
+ }, g = () => e.dragContext?.dragState(), h = () => g()?.isDragging ?? !1, x = () => ee() && h() && q();
515
528
  return (() => {
516
- var t = Ke(), a = t.firstChild, m = a.firstChild;
517
- return ne((f) => {
518
- e.registerRow(e.item.id, f);
519
- }, t), Me(t, De({
529
+ var n = et(), s = n.firstChild, r = s.firstChild;
530
+ return K((i) => {
531
+ e.registerRow(e.item.id, i);
532
+ }, n), ye(n, Re({
520
533
  get "data-file-browser-item-id"() {
521
534
  return e.item.id;
522
535
  },
523
536
  get "data-file-browser-item-path"() {
524
537
  return e.item.path;
525
538
  }
526
- }, pe, {
527
- onClick: h,
528
- onDblClick: w,
529
- onContextMenu: C,
530
- onPointerDown: n,
531
- onPointerMove: i,
532
- onPointerEnter: s,
533
- onPointerLeave: u,
539
+ }, Be, {
540
+ onClick: o,
541
+ onDblClick: a,
542
+ onContextMenu: u,
543
+ onPointerDown: V,
544
+ onPointerMove: re,
545
+ onPointerEnter: oe,
546
+ onPointerLeave: t,
534
547
  get class() {
535
- return E(
536
- Je,
548
+ return W(
549
+ tt,
537
550
  "group cursor-pointer",
538
551
  "transition-all duration-150 ease-out",
539
552
  "hover:bg-accent/50",
540
553
  "focus:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring",
541
- I() && "bg-accent text-accent-foreground",
554
+ w() && "bg-accent text-accent-foreground",
542
555
  // Drag state styling - being dragged items become translucent
543
- Z() && "opacity-40 scale-[0.98]",
556
+ Y() && "opacity-40 scale-[0.98]",
544
557
  // Drop target styling - enhanced visual feedback
545
- r() && X() && ["bg-primary/15 outline outline-2 outline-primary/60", "scale-[1.01] shadow-sm shadow-primary/10"],
546
- r() && !X() && ["bg-destructive/10 outline outline-2 outline-dashed outline-destructive/50"]
558
+ x() && X() && ["bg-primary/15 outline outline-2 outline-primary/60", "scale-[1.01] shadow-sm shadow-primary/10"],
559
+ x() && !X() && ["bg-destructive/10 outline outline-2 outline-dashed outline-destructive/50"]
547
560
  );
548
561
  }
549
- }), !1, !0), c(m, d(Te, {
562
+ }), !1, !0), f(r, d(Ae, {
550
563
  get item() {
551
564
  return e.item;
552
565
  },
553
566
  size: 16,
554
567
  class: "w-4 h-4"
555
- }), null), c(m, d(ke, {
568
+ }), null), f(r, d(Le, {
556
569
  get item() {
557
570
  return e.item;
558
571
  },
559
572
  size: "xs"
560
- }), null), c(a, d(Ze, {
573
+ }), null), f(s, d(nt, {
561
574
  get name() {
562
575
  return e.item.name;
563
576
  },
564
577
  get match() {
565
- return F();
578
+ return k();
566
579
  },
567
580
  get class() {
568
- return Ae(e.item);
581
+ return Ee(e.item);
569
582
  }
570
- }), null), c(t, d(y, {
583
+ }), null), f(n, d(_, {
571
584
  get when() {
572
585
  return e.showModified;
573
586
  },
574
587
  get children() {
575
- var f = Q();
576
- return c(f, () => e.formatDate(e.item.modifiedAt)), R((S) => L(f, "width", `${e.modifiedWidthPx}px`)), f;
588
+ var i = Z();
589
+ return f(i, () => e.formatDate(e.item.modifiedAt)), p((c) => T(i, "width", `${e.modifiedWidthPx}px`)), i;
577
590
  }
578
- }), null), c(t, d(y, {
591
+ }), null), f(n, d(_, {
579
592
  get when() {
580
593
  return e.showSize;
581
594
  },
582
595
  get children() {
583
- var f = Q();
584
- return c(f, (() => {
585
- var S = ue(() => e.item.type === "folder");
586
- return () => S() ? "-" : e.formatSize(e.item.size);
587
- })()), R((S) => L(f, "width", `${e.sizeWidthPx}px`)), f;
596
+ var i = Z();
597
+ return f(i, (() => {
598
+ var c = xe(() => e.item.type === "folder");
599
+ return () => c() ? "-" : e.formatSize(e.item.size);
600
+ })()), p((c) => T(i, "width", `${e.sizeWidthPx}px`)), i;
588
601
  }
589
- }), null), t;
602
+ }), null), n;
590
603
  })();
591
604
  }
592
- _e(["click", "pointerdown"]);
605
+ Pe(["click", "pointerdown"]);
593
606
  export {
594
- St as FileListView
607
+ $t as FileListView
595
608
  };