@floegence/floe-webapp-core 0.36.74 → 0.36.76

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,113 +1,129 @@
1
- import { createComponent as o, Dynamic as T, insert as c, memo as p, effect as N, className as h, setAttribute as L, setStyleProperty as ie, template as x, use as ne, delegateEvents as oe } from "solid-js/web";
2
- import { createSignal as D, createEffect as I, createMemo as w, For as P, Show as S } from "solid-js";
3
- import { useLayout as ae } from "../../context/LayoutContext.js";
4
- import { useResolvedFloeConfig as le } from "../../context/FloeConfigContext.js";
5
- import { useMediaQuery as se } from "../../hooks/useMediaQuery.js";
6
- import { useOverlayMask as de } from "../../hooks/useOverlayMask.js";
1
+ import { createComponent as a, Dynamic as L, insert as c, memo as O, effect as z, className as S, setAttribute as $, setStyleProperty as ae, template as k, use as le, delegateEvents as se } from "solid-js/web";
2
+ import { createSignal as Q, batch as de, createEffect as I, createMemo as M, For as W, Show as y } from "solid-js";
3
+ import { useLayout as ce } from "../../context/LayoutContext.js";
4
+ import { useResolvedFloeConfig as be } from "../../context/FloeConfigContext.js";
5
+ import { useMediaQuery as ue } from "../../hooks/useMediaQuery.js";
6
+ import { useOverlayMask as me } from "../../hooks/useOverlayMask.js";
7
7
  import { cn as C } from "../../utils/cn.js";
8
- import { deferAfterPaint as ce, deferNonBlocking as be } from "../../utils/defer.js";
9
- import { useComponentRegistry as ue } from "../../context/ComponentRegistry.js";
10
- import { Sidebar as me } from "./Sidebar.js";
11
- import { TopBar as fe } from "./TopBar.js";
12
- import { TopBarIconButton as ve } from "./TopBarIconButton.js";
13
- import { BottomBar as ge } from "./BottomBar.js";
14
- import { MobileTabBar as he } from "./MobileTabBar.js";
15
- import { ActivityBar as Se } from "./ActivityBar.js";
16
- import { ResizeHandle as Q } from "./ResizeHandle.js";
17
- import { resolveMobileTabActiveId as Ce, resolveMobileTabSelect as ye } from "./mobileTabs.js";
18
- import { KeepAliveStack as Ie } from "./KeepAliveStack.js";
19
- import { resolveShellSidebarActiveTabChange as we } from "./sidebarVisibilityMotion.js";
20
- var q = /* @__PURE__ */ x('<div class="flex items-center gap-2">'), Be = /* @__PURE__ */ x("<div data-floe-shell-slot=mobile-sidebar-backdrop>"), Me = /* @__PURE__ */ x('<div data-floe-shell-slot=mobile-sidebar-drawer tabindex=-1 role=dialog aria-modal=true><div class="h-full overflow-auto overscroll-contain">'), ke = /* @__PURE__ */ x("<div data-floe-shell-slot=terminal-panel style=border-top-color:var(--terminal-panel-border)>"), xe = /* @__PURE__ */ x('<div data-floe-shell><a></a><div data-floe-shell-slot=main-layout class="flex-1 min-h-0 flex overflow-hidden relative"><div data-floe-shell-slot=content-area><main data-floe-shell-slot=main tabindex=-1>');
21
- function Ke(r) {
22
- const i = ae(), W = le(), s = se(W.config.layout.mobileQuery), [A, y] = D(!1), [F, z] = D(null);
23
- let $;
24
- const b = () => r.sidebarMode === "hidden", d = (() => {
8
+ import { deferAfterPaint as fe, deferNonBlocking as ve } from "../../utils/defer.js";
9
+ import { useComponentRegistry as ge } from "../../context/ComponentRegistry.js";
10
+ import { Sidebar as he } from "./Sidebar.js";
11
+ import { TopBar as Se } from "./TopBar.js";
12
+ import { TopBarIconButton as ye } from "./TopBarIconButton.js";
13
+ import { BottomBar as Ce } from "./BottomBar.js";
14
+ import { MobileTabBar as Ie } from "./MobileTabBar.js";
15
+ import { ActivityBar as Me } from "./ActivityBar.js";
16
+ import { ResizeHandle as K } from "./ResizeHandle.js";
17
+ import { resolveMobileTabActiveId as we, resolveMobileTabSelect as Be } from "./mobileTabs.js";
18
+ import { KeepAliveStack as Ae } from "./KeepAliveStack.js";
19
+ import { resolveShellSidebarActiveTabChange as ke } from "./sidebarVisibilityMotion.js";
20
+ import { createUIFirstSelection as xe } from "../../utils/uiFirstSelection.js";
21
+ var U = /* @__PURE__ */ k('<div class="flex items-center gap-2">'), Te = /* @__PURE__ */ k("<div data-floe-shell-slot=mobile-sidebar-backdrop>"), pe = /* @__PURE__ */ k('<div data-floe-shell-slot=mobile-sidebar-drawer tabindex=-1 role=dialog aria-modal=true><div class="h-full overflow-auto overscroll-contain">'), Ne = /* @__PURE__ */ k("<div data-floe-shell-slot=terminal-panel style=border-top-color:var(--terminal-panel-border)>"), Le = /* @__PURE__ */ k('<div data-floe-shell><a></a><div data-floe-shell-slot=main-layout class="flex-1 min-h-0 flex overflow-hidden relative"><div data-floe-shell-slot=content-area><main data-floe-shell-slot=main tabindex=-1>');
22
+ function Ye(r) {
23
+ const i = ce(), H = be(), d = ue(H.config.layout.mobileQuery), [x, h] = Q(!1), [V, R] = Q(null);
24
+ let F;
25
+ const b = () => r.sidebarMode === "hidden", s = (() => {
25
26
  try {
26
- return ue();
27
+ return ge();
27
28
  } catch {
28
29
  return null;
29
30
  }
30
- })(), O = (e, a) => {
31
- const l = d?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
31
+ })(), T = (e, o) => {
32
+ const l = s?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
32
33
  openSidebar: n,
33
34
  visibilityMotion: u
34
- } = we({
35
+ } = ke({
35
36
  currentActiveId: i.sidebarActiveTab(),
36
37
  nextActiveId: e,
37
- requestedOpenSidebar: a?.openSidebar,
38
+ requestedOpenSidebar: o?.openSidebar,
38
39
  sidebarHidden: b(),
39
40
  nextActiveFullScreen: l,
40
- isMobile: s(),
41
+ isMobile: d(),
41
42
  resolveSidebarVisibilityMotion: r.resolveSidebarVisibilityMotion
42
43
  });
43
44
  i.setSidebarActiveTab(e, {
44
45
  openSidebar: n,
45
46
  visibilityMotion: u
46
47
  });
48
+ }, p = xe({
49
+ committed: i.sidebarActiveTab,
50
+ commit: (e, o) => {
51
+ de(() => {
52
+ T(e, o?.opts), typeof o?.mobileSidebarOpen == "boolean" && h(o.mobileSidebarOpen);
53
+ });
54
+ }
55
+ }), N = () => r.activitySelectionMode === "ui-first" ? p.visual() : i.sidebarActiveTab(), j = (e, o) => {
56
+ if (r.activitySelectionMode === "ui-first") {
57
+ p.request(e, {
58
+ opts: o
59
+ });
60
+ return;
61
+ }
62
+ T(e, o);
47
63
  };
48
64
  I(() => {
49
- b() && y(!1);
65
+ b() && h(!1);
50
66
  }), I(() => {
51
- const e = s();
67
+ const e = d();
52
68
  i.isMobile() !== e && i.setIsMobile(e);
53
69
  }), I(() => {
54
- s() || y(!1);
70
+ d() || h(!1);
55
71
  }), I(() => {
56
- const e = i.sidebarVisibilityMotion(), a = i.sidebarVisibilityMotionRevision();
57
- e === "instant" && ce(() => i.clearSidebarVisibilityMotion(a));
72
+ const e = i.sidebarVisibilityMotion(), o = i.sidebarVisibilityMotionRevision();
73
+ e === "instant" && fe(() => i.clearSidebarVisibilityMotion(o));
58
74
  });
59
- const B = w(() => r.activityItems ? r.activityItems : d ? d.sidebarItems().filter((e) => !!e.icon).filter((e) => !(s() && e.sidebar?.hiddenOnMobile)).map((e) => ({
75
+ const w = M(() => r.activityItems ? r.activityItems : s ? s.sidebarItems().filter((e) => !!e.icon).filter((e) => !(d() && e.sidebar?.hiddenOnMobile)).map((e) => ({
60
76
  id: e.id,
61
77
  icon: e.icon,
62
78
  label: e.name,
63
79
  badge: e.sidebar?.badge,
64
80
  collapseBehavior: e.sidebar?.collapseBehavior ?? (e.sidebar?.fullScreen ? "preserve" : "toggle")
65
- })) : []), K = w(() => b() ? [] : r.sidebarContent ? [] : d ? d.sidebarItems().filter((e) => !(s() && e.sidebar?.hiddenOnMobile)).filter((e) => e.sidebar?.fullScreen !== !0 && e.sidebar?.renderIn !== "main").map((e) => ({
81
+ })) : []), G = M(() => b() ? [] : r.sidebarContent ? [] : s ? s.sidebarItems().filter((e) => !(d() && e.sidebar?.hiddenOnMobile)).filter((e) => e.sidebar?.fullScreen !== !0 && e.sidebar?.renderIn !== "main").map((e) => ({
66
82
  id: e.id,
67
- render: () => o(T, {
83
+ render: () => a(L, {
68
84
  get component() {
69
85
  return e.component;
70
86
  }
71
87
  })
72
- })) : []), H = (e) => {
88
+ })) : []), E = (e) => {
73
89
  if (!b()) {
74
90
  if (r.sidebarContent) return r.sidebarContent(e);
75
- if (d)
76
- return o(Ie, {
91
+ if (s)
92
+ return a(Ae, {
77
93
  get views() {
78
- return K();
94
+ return G();
79
95
  },
80
96
  activeId: e
81
97
  });
82
98
  }
83
- }, R = w(() => b() ? !0 : d ? d.getComponent(i.sidebarActiveTab())?.sidebar?.fullScreen ?? !1 : !1), j = w(() => {
99
+ }, P = M(() => b() ? !0 : s ? s.getComponent(i.sidebarActiveTab())?.sidebar?.fullScreen ?? !1 : !1), J = M(() => {
84
100
  if (b()) return !0;
85
- if (!d) return !1;
86
- const e = d.getComponent(i.sidebarActiveTab());
101
+ if (!s) return !1;
102
+ const e = s.getComponent(i.sidebarActiveTab());
87
103
  return e?.sidebar ? e.sidebar.fullScreen === !0 || e.sidebar.renderIn === "main" : !1;
88
104
  });
89
105
  I(() => {
90
- s() && R() && y(!1);
106
+ d() && P() && h(!1);
91
107
  });
92
- const G = w(() => {
108
+ const X = M(() => {
93
109
  if (r.bottomBarItems) return r.bottomBarItems;
94
- if (!d) return;
95
- const e = [...d.statusBarItems()].sort((n, u) => (n.order ?? 100) - (u.order ?? 100)), a = e.filter((n) => n.position === "left"), l = e.filter((n) => n.position === "right");
110
+ if (!s) return;
111
+ const e = [...s.statusBarItems()].sort((n, u) => (n.order ?? 100) - (u.order ?? 100)), o = e.filter((n) => n.position === "left"), l = e.filter((n) => n.position === "right");
96
112
  return [(() => {
97
- var n = q();
98
- return c(n, o(P, {
99
- each: a,
100
- children: (u) => o(T, {
113
+ var n = U();
114
+ return c(n, a(W, {
115
+ each: o,
116
+ children: (u) => a(L, {
101
117
  get component() {
102
118
  return u.component;
103
119
  }
104
120
  })
105
121
  })), n;
106
122
  })(), (() => {
107
- var n = q();
108
- return c(n, o(P, {
123
+ var n = U();
124
+ return c(n, a(W, {
109
125
  each: l,
110
- children: (u) => o(T, {
126
+ children: (u) => a(L, {
111
127
  get component() {
112
128
  return u.component;
113
129
  }
@@ -116,44 +132,53 @@ function Ke(r) {
116
132
  })()];
117
133
  });
118
134
  I(() => {
119
- const e = B();
135
+ const e = w();
120
136
  if (!e.length) return;
121
137
  if (!i.sidebarActiveTab()) {
122
138
  const l = e.find((n) => !n.onClick);
123
139
  if (!l) return;
124
- O(l.id);
140
+ T(l.id);
125
141
  }
126
142
  });
127
- const V = (e) => {
128
- const a = b() ? !0 : d?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
143
+ const _ = (e) => {
144
+ const o = b() ? !0 : s?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
129
145
  nextActiveId: l,
130
146
  nextMobileSidebarOpen: n
131
- } = ye({
147
+ } = Be({
132
148
  clickedId: e,
133
149
  activeId: i.sidebarActiveTab(),
134
- mobileSidebarOpen: A(),
135
- clickedIsFullScreen: a
150
+ mobileSidebarOpen: x(),
151
+ clickedIsFullScreen: o
136
152
  });
137
- i.sidebarActiveTab() !== l && O(l), y(n);
138
- }, J = (e) => {
153
+ if (i.sidebarActiveTab() !== l) {
154
+ if (r.activitySelectionMode === "ui-first") {
155
+ p.request(l, {
156
+ mobileSidebarOpen: n
157
+ });
158
+ return;
159
+ }
160
+ T(l);
161
+ }
162
+ h(n);
163
+ }, Y = (e) => {
139
164
  if (e.onClick) {
140
- be(() => e.onClick());
165
+ ve(() => e.onClick());
141
166
  return;
142
167
  }
143
- V(e.id);
144
- }, U = w(() => {
168
+ _(e.id);
169
+ }, Z = M(() => {
145
170
  const e = r.topBarActions;
146
- if (!s() || (r.activityBottomItemsMobileMode ?? "hidden") !== "topBar") return e;
171
+ if (!d() || (r.activityBottomItemsMobileMode ?? "hidden") !== "topBar") return e;
147
172
  const l = r.activityBottomItems ?? [];
148
- return l.length ? [o(P, {
173
+ return l.length ? [a(W, {
149
174
  each: l,
150
- children: (n) => o(ve, {
175
+ children: (n) => a(ye, {
151
176
  get label() {
152
177
  return n.label;
153
178
  },
154
- onClick: () => J(n),
179
+ onClick: () => Y(n),
155
180
  get children() {
156
- return o(T, {
181
+ return a(L, {
157
182
  get component() {
158
183
  return n.icon;
159
184
  },
@@ -162,18 +187,18 @@ function Ke(r) {
162
187
  }
163
188
  })
164
189
  }), e] : e;
165
- }), X = () => b() ? !0 : i.sidebarCollapsed(), Y = () => F() ?? i.sidebarWidth(), v = () => W.config.accessibility, Z = () => {
166
- z(i.sidebarWidth());
167
- }, ee = (e) => {
168
- z((a) => i.clampSidebarWidth((a ?? i.sidebarWidth()) + e));
169
- }, te = () => {
170
- const e = F();
171
- e !== null && (i.setSidebarWidth(e), z(null));
190
+ }), ee = () => b() ? !0 : i.sidebarCollapsed(), te = () => V() ?? i.sidebarWidth(), v = () => H.config.accessibility, re = () => {
191
+ R(i.sidebarWidth());
192
+ }, ie = (e) => {
193
+ R((o) => i.clampSidebarWidth((o ?? i.sidebarWidth()) + e));
194
+ }, ne = () => {
195
+ const e = V();
196
+ e !== null && (i.setSidebarWidth(e), R(null));
172
197
  };
173
- de({
174
- open: () => s() && A() && !b(),
175
- root: () => $,
176
- onClose: () => y(!1),
198
+ me({
199
+ open: () => d() && x() && !b(),
200
+ root: () => F,
201
+ onClose: () => h(!1),
177
202
  lockBodyScroll: !0,
178
203
  trapFocus: !0,
179
204
  closeOnEscape: !0,
@@ -183,7 +208,7 @@ function Ke(r) {
183
208
  autoFocus: !1,
184
209
  restoreFocus: !0
185
210
  });
186
- const re = () => {
211
+ const oe = () => {
187
212
  if (typeof document > "u") return;
188
213
  const e = document.getElementById(v().mainContentId);
189
214
  if (!(!e || !(e instanceof HTMLElement)))
@@ -193,13 +218,13 @@ function Ke(r) {
193
218
  }
194
219
  };
195
220
  return (() => {
196
- var e = xe(), a = e.firstChild, l = a.nextSibling, n = l.firstChild, u = n.firstChild;
197
- return a.$$click = () => re(), c(a, () => v().skipLinkLabel), c(e, o(fe, {
221
+ var e = Le(), o = e.firstChild, l = o.nextSibling, n = l.firstChild, u = n.firstChild;
222
+ return o.$$click = () => oe(), c(o, () => v().skipLinkLabel), c(e, a(Se, {
198
223
  get logo() {
199
224
  return r.logo;
200
225
  },
201
226
  get actions() {
202
- return U();
227
+ return Z();
203
228
  },
204
229
  get ariaLabel() {
205
230
  return v().topBarLabel;
@@ -207,32 +232,32 @@ function Ke(r) {
207
232
  get class() {
208
233
  return r.slotClassNames?.topBar;
209
234
  }
210
- }), l), c(l, o(S, {
235
+ }), l), c(l, a(y, {
211
236
  get when() {
212
- return !s();
237
+ return !d();
213
238
  },
214
239
  get children() {
215
- return [o(S, {
240
+ return [a(y, {
216
241
  get when() {
217
- return B().length > 0;
242
+ return w().length > 0;
218
243
  },
219
244
  get children() {
220
- return o(Se, {
245
+ return a(Me, {
221
246
  get items() {
222
- return B();
247
+ return w();
223
248
  },
224
249
  get bottomItems() {
225
250
  return r.activityBottomItems;
226
251
  },
227
252
  get activeId() {
228
- return i.sidebarActiveTab();
253
+ return N();
229
254
  },
230
- onActiveChange: O,
255
+ onActiveChange: j,
231
256
  get collapsed() {
232
- return X();
257
+ return ee();
233
258
  },
234
259
  get onCollapsedChange() {
235
- return p(() => !!b())() ? void 0 : i.setSidebarCollapsed;
260
+ return O(() => !!b())() ? void 0 : i.setSidebarCollapsed;
236
261
  },
237
262
  get ariaLabel() {
238
263
  return v().primaryNavigationLabel;
@@ -242,17 +267,17 @@ function Ke(r) {
242
267
  }
243
268
  });
244
269
  }
245
- }), o(S, {
270
+ }), a(y, {
246
271
  get when() {
247
272
  return !b();
248
273
  },
249
274
  get children() {
250
- return o(me, {
275
+ return a(he, {
251
276
  get width() {
252
- return Y();
277
+ return te();
253
278
  },
254
279
  get collapsed() {
255
- return i.sidebarCollapsed() || R();
280
+ return i.sidebarCollapsed() || P();
256
281
  },
257
282
  get visibilityMotion() {
258
283
  return i.sidebarVisibilityMotion();
@@ -261,65 +286,65 @@ function Ke(r) {
261
286
  return v().sidebarLabel;
262
287
  },
263
288
  get resizer() {
264
- return o(Q, {
289
+ return a(K, {
265
290
  direction: "horizontal",
266
- onResize: ee,
267
- onResizeStart: Z,
268
- onResizeEnd: te
291
+ onResize: ie,
292
+ onResizeStart: re,
293
+ onResizeEnd: ne
269
294
  });
270
295
  },
271
296
  get class() {
272
297
  return r.slotClassNames?.sidebar;
273
298
  },
274
299
  get children() {
275
- return H(i.sidebarActiveTab());
300
+ return E(i.sidebarActiveTab());
276
301
  }
277
302
  });
278
303
  }
279
304
  })];
280
305
  }
281
- }), n), c(l, o(S, {
306
+ }), n), c(l, a(y, {
282
307
  get when() {
283
- return p(() => !!(s() && A()))() && !b();
308
+ return O(() => !!(d() && x()))() && !b();
284
309
  },
285
310
  get children() {
286
311
  return [(() => {
287
- var t = Be();
288
- return t.$$click = () => y(!1), N(() => h(t, C("absolute inset-0 z-40 bg-black/30 cursor-pointer", r.slotClassNames?.mobileSidebarBackdrop))), t;
312
+ var t = Te();
313
+ return t.$$click = () => h(!1), z(() => S(t, C("absolute inset-0 z-40 bg-black/30 cursor-pointer", r.slotClassNames?.mobileSidebarBackdrop))), t;
289
314
  })(), (() => {
290
- var t = Me(), m = t.firstChild, g = $;
291
- return typeof g == "function" ? ne(g, t) : $ = t, c(m, () => H(i.sidebarActiveTab())), N((f) => {
292
- var M = C("absolute left-0 top-0 bottom-0 z-50", "w-72 max-w-[80vw]", "bg-sidebar border-r border-sidebar-border", "shadow-xl", "animate-in slide-in-from-left duration-200", r.slotClassNames?.mobileSidebarDrawer), k = v().sidebarLabel;
293
- return M !== f.e && h(t, f.e = M), k !== f.t && L(t, "aria-label", f.t = k), f;
315
+ var t = pe(), m = t.firstChild, g = F;
316
+ return typeof g == "function" ? le(g, t) : F = t, c(m, () => E(i.sidebarActiveTab())), z((f) => {
317
+ var B = C("absolute left-0 top-0 bottom-0 z-50", "w-72 max-w-[80vw]", "bg-sidebar border-r border-sidebar-border", "shadow-xl", "animate-in slide-in-from-left duration-200", r.slotClassNames?.mobileSidebarDrawer), A = v().sidebarLabel;
318
+ return B !== f.e && S(t, f.e = B), A !== f.t && $(t, "aria-label", f.t = A), f;
294
319
  }, {
295
320
  e: void 0,
296
321
  t: void 0
297
322
  }), t;
298
323
  })()];
299
324
  }
300
- }), n), c(u, () => r.children), c(n, o(S, {
325
+ }), n), c(u, () => r.children), c(n, a(y, {
301
326
  get when() {
302
- return p(() => !!(!s() && i.terminalOpened()))() && r.terminalPanel;
327
+ return O(() => !!(!d() && i.terminalOpened()))() && r.terminalPanel;
303
328
  },
304
329
  get children() {
305
- var t = ke();
306
- return c(t, o(Q, {
330
+ var t = Ne();
331
+ return c(t, a(K, {
307
332
  direction: "vertical",
308
333
  onResize: (m) => i.setTerminalHeight(i.terminalHeight() - m)
309
- }), null), c(t, () => r.terminalPanel, null), N((m) => {
334
+ }), null), c(t, () => r.terminalPanel, null), z((m) => {
310
335
  var g = C("relative shrink-0 border-t border-border bg-terminal-background overflow-hidden", r.slotClassNames?.terminalPanel), f = `${i.terminalHeight()}px`;
311
- return g !== m.e && h(t, m.e = g), f !== m.t && ie(t, "height", m.t = f), m;
336
+ return g !== m.e && S(t, m.e = g), f !== m.t && ae(t, "height", m.t = f), m;
312
337
  }, {
313
338
  e: void 0,
314
339
  t: void 0
315
340
  }), t;
316
341
  }
317
- }), null), c(e, o(S, {
342
+ }), null), c(e, a(y, {
318
343
  get when() {
319
- return !s();
344
+ return !d();
320
345
  },
321
346
  get children() {
322
- return o(ge, {
347
+ return a(Ce, {
323
348
  get class() {
324
349
  return r.slotClassNames?.bottomBar;
325
350
  },
@@ -327,28 +352,31 @@ function Ke(r) {
327
352
  return r.slotClassNames?.bottomBarHeight;
328
353
  },
329
354
  get children() {
330
- return G();
355
+ return X();
331
356
  }
332
357
  });
333
358
  }
334
- }), null), c(e, o(S, {
359
+ }), null), c(e, a(y, {
335
360
  get when() {
336
- return p(() => !!s())() && B().length > 0;
361
+ return O(() => !!d())() && w().length > 0;
337
362
  },
338
363
  get children() {
339
- return o(he, {
364
+ return a(Ie, {
340
365
  get items() {
341
- return B();
366
+ return w();
342
367
  },
343
368
  get activeId() {
344
- return Ce({
345
- activeId: i.sidebarActiveTab(),
346
- mobileSidebarOpen: A(),
347
- activeIsFullScreen: R(),
348
- activeIsPage: j()
369
+ return we({
370
+ activeId: N(),
371
+ mobileSidebarOpen: p.pending() ? !0 : x(),
372
+ activeIsFullScreen: s?.getComponent(N())?.sidebar?.fullScreen ?? P(),
373
+ activeIsPage: (() => {
374
+ const t = s?.getComponent(N())?.sidebar;
375
+ return t ? t.fullScreen === !0 || t.renderIn === "main" : J();
376
+ })()
349
377
  });
350
378
  },
351
- onSelect: V,
379
+ onSelect: _,
352
380
  get ariaLabel() {
353
381
  return v().mobileNavigationLabel;
354
382
  },
@@ -357,7 +385,7 @@ function Ke(r) {
357
385
  }
358
386
  });
359
387
  }
360
- }), null), N((t) => {
388
+ }), null), z((t) => {
361
389
  var m = C(
362
390
  // Use dvh when supported to avoid mobile browser UI causing layout jumps.
363
391
  "h-screen h-[100dvh] w-full flex flex-col overflow-hidden",
@@ -366,8 +394,8 @@ function Ke(r) {
366
394
  "overscroll-none",
367
395
  r.slotClassNames?.root,
368
396
  r.class
369
- ), g = `#${v().mainContentId}`, f = C("fixed left-3 top-3 z-[120] rounded-md bg-primary px-3 py-2 text-xs font-medium text-primary-foreground shadow-md", "transition-transform duration-150 motion-reduce:transition-none", "-translate-y-[200%] focus:translate-y-0"), M = C("flex-1 min-w-0 flex flex-col overflow-hidden", r.slotClassNames?.contentArea), k = C("flex-1 min-h-0 overflow-auto overscroll-contain", r.slotClassNames?.main), E = v().mainContentId, _ = v().mainLabel;
370
- return m !== t.e && h(e, t.e = m), g !== t.t && L(a, "href", t.t = g), f !== t.a && h(a, t.a = f), M !== t.o && h(n, t.o = M), k !== t.i && h(u, t.i = k), E !== t.n && L(u, "id", t.n = E), _ !== t.s && L(u, "aria-label", t.s = _), t;
397
+ ), g = `#${v().mainContentId}`, f = C("fixed left-3 top-3 z-[120] rounded-md bg-primary px-3 py-2 text-xs font-medium text-primary-foreground shadow-md", "transition-transform duration-150 motion-reduce:transition-none", "-translate-y-[200%] focus:translate-y-0"), B = C("flex-1 min-w-0 flex flex-col overflow-hidden", r.slotClassNames?.contentArea), A = C("flex-1 min-h-0 overflow-auto overscroll-contain", r.slotClassNames?.main), q = v().mainContentId, D = v().mainLabel;
398
+ return m !== t.e && S(e, t.e = m), g !== t.t && $(o, "href", t.t = g), f !== t.a && S(o, t.a = f), B !== t.o && S(n, t.o = B), A !== t.i && S(u, t.i = A), q !== t.n && $(u, "id", t.n = q), D !== t.s && $(u, "aria-label", t.s = D), t;
371
399
  }, {
372
400
  e: void 0,
373
401
  t: void 0,
@@ -379,7 +407,7 @@ function Ke(r) {
379
407
  }), e;
380
408
  })();
381
409
  }
382
- oe(["click"]);
410
+ se(["click"]);
383
411
  export {
384
- Ke as Shell
412
+ Ye as Shell
385
413
  };