@viglet/viglet-design-system 2026.3.15 → 2026.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bento.es.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { t as e } from "./utils-Fk5jmzzb.js";
3
3
  import { a as t, c as n, d as r, g as i, o as a, p as o, u as s } from "./badge-locale-Bx7m7tg2.js";
4
- import { B as c, C as l, D as u, F as d, H as f, I as p, J as m, L as h, M as g, N as _, P as v, R as y, S as b, T as x, V as S, Y as C, _ as w, b as T, d as E, f as D, g as O, h as k, i as A, j, l as M, m as N, n as P, o as ee, q as F, r as te, s as ne, u as I, v as re, w as ie, y as ae } from "./user.context-DUs2lT6D.js";
5
- import { r as oe, t as se } from "./loading-provider-D-_5G-08.js";
6
- import { Children as ce, Fragment as L, isValidElement as le, useEffect as R, useId as ue, useMemo as de, useRef as z, useState as B, useSyncExternalStore as V } from "react";
7
- import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
8
- import { useTranslation as G } from "react-i18next";
9
- import { IconAdjustmentsHorizontal as fe, IconAlertTriangle as pe, IconArrowBackUp as K, IconArrowDown as me, IconArrowLeft as he, IconArrowRight as ge, IconArrowUp as _e, IconArrowsSort as ve, IconBuildingCommunity as ye, IconBuildingSkyscraper as be, IconChevronDown as xe, IconChevronLeft as Se, IconChevronRight as q, IconColumns3 as Ce, IconDeviceFloppy as J, IconDotsVertical as we, IconExternalLink as Te, IconGripVertical as Ee, IconHome as De, IconKeyboard as Oe, IconLayoutGrid as ke, IconLogout as Ae, IconPalette as je, IconPlus as Me, IconRobot as Ne, IconSearch as Pe, IconSparkles as Fe, IconTrash as Ie, IconUser as Le, IconUserCircle as Re, IconUsers as ze, IconX as Be } from "@tabler/icons-react";
4
+ import { B as c, C as l, D as u, F as d, H as f, I as p, J as m, L as h, M as g, N as _, P as v, R as y, S as b, T as x, V as S, Y as C, _ as w, b as T, d as E, f as D, g as O, h as k, i as A, j, l as M, m as N, n as P, o as ee, q as F, r as I, s as L, u as R, v as te, w as ne, y as re } from "./user.context-DUs2lT6D.js";
5
+ import { r as ie, t as ae } from "./loading-provider-D-_5G-08.js";
6
+ import { Children as oe, Fragment as z, isValidElement as se, useEffect as B, useId as ce, useMemo as le, useRef as V, useState as H, useSyncExternalStore as U } from "react";
7
+ import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
8
+ import { useTranslation as q } from "react-i18next";
9
+ import { IconAdjustmentsHorizontal as ue, IconAlertTriangle as de, IconArrowBackUp as J, IconArrowDown as fe, IconArrowLeft as pe, IconArrowRight as me, IconArrowUp as he, IconArrowsSort as ge, IconBuildingCommunity as _e, IconBuildingSkyscraper as ve, IconChevronDown as ye, IconChevronLeft as be, IconChevronRight as xe, IconColumns3 as Se, IconDeviceFloppy as Ce, IconDotsVertical as we, IconExternalLink as Te, IconGripVertical as Ee, IconHome as De, IconKeyboard as Oe, IconLayoutGrid as ke, IconLogout as Ae, IconPalette as je, IconPlus as Me, IconRobot as Ne, IconSearch as Pe, IconSparkles as Fe, IconTrash as Ie, IconUser as Le, IconUserCircle as Re, IconUsers as ze, IconX as Be } from "@tabler/icons-react";
10
10
  import { Icon as Ve } from "@iconify/react";
11
11
  import { useDefaultLayout as He } from "react-resizable-panels";
12
12
  import { Link as Ue, useInRouterContext as We, useLocation as Ge, useNavigate as Ke } from "react-router-dom";
@@ -23,29 +23,29 @@ function ut(e) {
23
23
  process.env.NODE_ENV === "production" || lt.has(e) || (lt.add(e), console.warn(`BentoActionsMenu: the action "${e}" has no id. Give it a stable name, such as "post.delete": it is rendered as data-action-id so a console verb can be matched to an agent verb, and it becomes required in the next release.`));
24
24
  }
25
25
  function dt({ actions: e, triggerLabel: t }) {
26
- let { t: n } = G();
26
+ let { t: n } = q();
27
27
  if (e.length === 0) return null;
28
28
  for (let t of e) t.id || ut(t.label);
29
- return /* @__PURE__ */ W(_, { children: [/* @__PURE__ */ U(F, {
29
+ return /* @__PURE__ */ K(_, { children: [/* @__PURE__ */ G(F, {
30
30
  asChild: !0,
31
- children: /* @__PURE__ */ U("button", {
31
+ children: /* @__PURE__ */ G("button", {
32
32
  type: "button",
33
33
  "aria-label": t ?? n("forms.formActions.moreActions", { defaultValue: "More actions" }),
34
34
  className: "bento-tile-clickable inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/60 bg-card/60 text-muted-foreground backdrop-blur transition-colors duration-200 hover:text-foreground",
35
- children: /* @__PURE__ */ U(we, { size: 18 })
35
+ children: /* @__PURE__ */ G(we, { size: 18 })
36
36
  })
37
- }), /* @__PURE__ */ U(d, {
37
+ }), /* @__PURE__ */ G(d, {
38
38
  align: "end",
39
39
  sideOffset: 8,
40
40
  className: "bento-dropdown min-w-44 p-1.5",
41
41
  children: e.map((e) => {
42
42
  let t = e.icon, n = ct[e.tone ?? "default"];
43
- return /* @__PURE__ */ W(h, {
43
+ return /* @__PURE__ */ K(h, {
44
44
  "data-action-id": e.id,
45
45
  onSelect: e.onSelect,
46
46
  disabled: e.disabled,
47
47
  className: `bento-dropdown-item cursor-pointer gap-2 px-3 py-2 ${n}`,
48
- children: [/* @__PURE__ */ U(t, { size: 16 }), e.label]
48
+ children: [/* @__PURE__ */ G(t, { size: 16 }), e.label]
49
49
  }, e.id ?? e.label);
50
50
  })
51
51
  })] });
@@ -67,21 +67,21 @@ function Y(e) {
67
67
  //#endregion
68
68
  //#region src/bento/bento-count-tile.tsx
69
69
  function mt({ to: e, icon: t, tone: n, label: r, count: i, span: a }) {
70
- let o = /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U("span", {
70
+ let o = /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("span", {
71
71
  className: `grid h-9 w-9 place-items-center rounded-2xl text-white shadow-md ${Y(n)}`,
72
- children: /* @__PURE__ */ U(t, { size: 18 })
73
- }), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("div", {
72
+ children: /* @__PURE__ */ G(t, { size: 18 })
73
+ }), /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G("div", {
74
74
  className: "text-3xl font-semibold tabular-nums tracking-tight",
75
75
  children: i
76
- }), /* @__PURE__ */ U("div", {
76
+ }), /* @__PURE__ */ G("div", {
77
77
  className: "text-[11px] uppercase tracking-wider text-muted-foreground",
78
78
  children: r
79
79
  })] })] }), s = `bento-tile bento-glass group relative flex flex-col justify-between overflow-hidden p-4 ${a}${e ? " bento-tile-clickable" : ""}`;
80
- return e ? /* @__PURE__ */ U(Ue, {
80
+ return e ? /* @__PURE__ */ G(Ue, {
81
81
  to: e,
82
82
  className: s,
83
83
  children: o
84
- }) : /* @__PURE__ */ U("div", {
84
+ }) : /* @__PURE__ */ G("div", {
85
85
  className: s,
86
86
  children: o
87
87
  });
@@ -94,108 +94,108 @@ var ht = 6, gt = {
94
94
  sortedRowModel: Je()
95
95
  };
96
96
  function _t({ rows: t, getRowId: n, columns: r, label: i, getRowLabel: a, rowActions: o, selectionActions: s, selectedIds: c, onSelectionChange: l, selectionScope: u, layout: f, onLayoutChange: p, onRowOpen: h, rowHeight: g = 44, height: y = 480, empty: b }) {
97
- let { t: x } = G(), [S, w] = B([]), [T, E] = B({ hidden: [] }), [D, O] = B(/* @__PURE__ */ new Set()), [k, A] = B(null), [j, M] = B(u), [N, P] = B(void 0);
97
+ let { t: x } = q(), [S, w] = H([]), [T, E] = H({ hidden: [] }), [D, O] = H(/* @__PURE__ */ new Set()), [k, A] = H(null), [j, M] = H(u), [N, P] = H(void 0);
98
98
  j !== u && (M(u), O(/* @__PURE__ */ new Set()), P(c), A(null));
99
- let ee = de(() => new Set(c ?? []), [c]), te = D;
100
- c !== void 0 && (te = c === N ? /* @__PURE__ */ new Set() : ee);
101
- let ne = z(u);
102
- R(() => {
103
- ne.current !== u && (ne.current = u, l?.([]));
99
+ let ee = le(() => new Set(c ?? []), [c]), I = D;
100
+ c !== void 0 && (I = c === N ? /* @__PURE__ */ new Set() : ee);
101
+ let L = V(u);
102
+ B(() => {
103
+ L.current !== u && (L.current = u, l?.([]));
104
104
  }, [u, l]);
105
- let [I, re] = B(0), [ie, ae] = B(0), oe = z(null), se = z(/* @__PURE__ */ new Map()), ce = z(!1), L = (s?.length ?? 0) > 0, le = (e) => a?.(e) ?? n(e), ue = de(() => r.map((e) => ({
105
+ let [R, te] = H(0), [ne, re] = H(0), ie = V(null), ae = V(/* @__PURE__ */ new Map()), oe = V(!1), z = (s?.length ?? 0) > 0, se = (e) => a?.(e) ?? n(e), ce = le(() => r.map((e) => ({
106
106
  id: e.id,
107
107
  accessorFn: (t) => e.sortValue?.(t) ?? null,
108
108
  enableSorting: e.sortValue !== void 0
109
- })), [r]), V = Xe({
109
+ })), [r]), U = Xe({
110
110
  features: gt,
111
111
  data: t,
112
- columns: ue,
112
+ columns: ce,
113
113
  state: { sorting: S },
114
114
  onSortingChange: w
115
- }).getRowModel().rows.map((e) => e.original), H = f ?? T, fe = r.filter((e) => e.hideable === !1 || !H.hidden.includes(e.id)), pe = [
116
- L ? "2.75rem" : null,
117
- ...fe.map((e) => e.width ?? "minmax(8rem, 1fr)"),
115
+ }).getRowModel().rows.map((e) => e.original), W = f ?? T, ue = r.filter((e) => e.hideable === !1 || !W.hidden.includes(e.id)), de = [
116
+ z ? "2.75rem" : null,
117
+ ...ue.map((e) => e.width ?? "minmax(8rem, 1fr)"),
118
118
  o?.length ? "3.25rem" : null
119
- ].filter(Boolean).join(" "), K = V.length, he = Math.max(1, Math.floor(y / g)), ge = Math.max(0, Math.floor(ie / g) - ht), ye = Math.min(K, Math.ceil((ie + y) / g) + ht), be = Math.min(I, Math.max(0, K - 1));
120
- R(() => {
121
- ce.current && (ce.current = !1, se.current.get(be)?.focus());
122
- }, [be, ge]);
123
- function xe(e) {
119
+ ].filter(Boolean).join(" "), J = U.length, pe = Math.min(y, J * g), me = Math.max(1, Math.floor(pe / g)), _e = Math.max(0, Math.floor(ne / g) - ht), ve = Math.min(J, Math.ceil((ne + pe) / g) + ht), ye = Math.min(R, Math.max(0, J - 1));
120
+ B(() => {
121
+ oe.current && (oe.current = !1, ae.current.get(ye)?.focus());
122
+ }, [ye, _e]);
123
+ function be(e) {
124
124
  c === void 0 && O(e), l?.([...e]);
125
125
  }
126
- function Se(e, t) {
126
+ function xe(e, t) {
127
127
  let [r, i] = e <= t ? [e, t] : [t, e];
128
- xe(new Set(V.slice(r, i + 1).map(n)));
128
+ be(new Set(U.slice(r, i + 1).map(n)));
129
129
  }
130
- function q(e) {
131
- let t = n(V[e]), r = new Set(te);
132
- r.has(t) ? r.delete(t) : r.add(t), xe(r), A(e);
130
+ function Ce(e) {
131
+ let t = n(U[e]), r = new Set(I);
132
+ r.has(t) ? r.delete(t) : r.add(t), be(r), A(e);
133
133
  }
134
- function J(e, t) {
135
- let n = Math.max(0, Math.min(K - 1, e));
136
- if (t && L) {
137
- let e = k ?? be;
138
- A(e), Se(e, n);
134
+ function we(e, t) {
135
+ let n = Math.max(0, Math.min(J - 1, e));
136
+ if (t && z) {
137
+ let e = k ?? ye;
138
+ A(e), xe(e, n);
139
139
  }
140
- let r = oe.current, i = n * g;
140
+ let r = ie.current, i = n * g;
141
141
  if (r) {
142
142
  let e = r.scrollTop;
143
- i < e ? e = i : i + g > e + y && (e = i + g - y), e !== r.scrollTop && (r.scrollTop = e, ae(e));
143
+ i < e ? e = i : i + g > e + pe && (e = i + g - pe), e !== r.scrollTop && (r.scrollTop = e, re(e));
144
144
  }
145
- ce.current = !0, re(n);
145
+ oe.current = !0, te(n);
146
146
  }
147
- function we(e, t) {
147
+ function Te(e, t) {
148
148
  if (e.target !== e.currentTarget) return;
149
149
  let r = e.shiftKey;
150
150
  switch (e.key) {
151
151
  case "ArrowDown":
152
- J(t + 1, r);
152
+ we(t + 1, r);
153
153
  break;
154
154
  case "ArrowUp":
155
- J(t - 1, r);
155
+ we(t - 1, r);
156
156
  break;
157
157
  case "PageDown":
158
- J(t + he, r);
158
+ we(t + me, r);
159
159
  break;
160
160
  case "PageUp":
161
- J(t - he, r);
161
+ we(t - me, r);
162
162
  break;
163
163
  case "Home":
164
- J(0, r);
164
+ we(0, r);
165
165
  break;
166
166
  case "End":
167
- J(K - 1, r);
167
+ we(J - 1, r);
168
168
  break;
169
169
  case " ":
170
- if (!L) return;
171
- q(t);
170
+ if (!z) return;
171
+ Ce(t);
172
172
  break;
173
173
  case "Enter":
174
174
  if (!h) return;
175
- h(V[t]);
175
+ h(U[t]);
176
176
  break;
177
177
  case "Escape":
178
- if (!L || te.size === 0) return;
179
- xe(/* @__PURE__ */ new Set()), A(null);
178
+ if (!z || I.size === 0) return;
179
+ be(/* @__PURE__ */ new Set()), A(null);
180
180
  break;
181
181
  case "a":
182
182
  case "A":
183
- if (!L || !(e.ctrlKey || e.metaKey)) return;
184
- xe(new Set(V.map(n)));
183
+ if (!z || !(e.ctrlKey || e.metaKey)) return;
184
+ be(new Set(U.map(n)));
185
185
  break;
186
186
  default: return;
187
187
  }
188
188
  e.preventDefault();
189
189
  }
190
- function Te(e, t) {
191
- if (!e.target.closest("button, a, input, [role='checkbox']") && (re(t), L)) {
190
+ function Ee(e, t) {
191
+ if (!e.target.closest("button, a, input, [role='checkbox']") && (te(t), z)) {
192
192
  if (e.shiftKey) {
193
- let e = k ?? be;
194
- A(e), Se(e, t);
195
- } else e.metaKey || e.ctrlKey ? q(t) : (xe(/* @__PURE__ */ new Set([n(V[t])])), A(t));
193
+ let e = k ?? ye;
194
+ A(e), xe(e, t);
195
+ } else e.metaKey || e.ctrlKey ? Ce(t) : (be(/* @__PURE__ */ new Set([n(U[t])])), A(t));
196
196
  }
197
197
  }
198
- function Ee(e) {
198
+ function De(e) {
199
199
  let t = S.find((t) => t.id === e);
200
200
  t ? t.desc ? w([]) : w([{
201
201
  id: e,
@@ -205,203 +205,203 @@ function _t({ rows: t, getRowId: n, columns: r, label: i, getRowLabel: a, rowAct
205
205
  desc: !1
206
206
  }]);
207
207
  }
208
- function De(e, t) {
209
- let n = { hidden: t ? [...H.hidden, e] : H.hidden.filter((t) => t !== e) };
208
+ function Oe(e, t) {
209
+ let n = { hidden: t ? [...W.hidden, e] : W.hidden.filter((t) => t !== e) };
210
210
  f === void 0 && E(n), p?.(n);
211
211
  }
212
- let Oe = V.filter((e) => te.has(n(e))), ke = K > 0 && Oe.length === K, Ae = r.filter((e) => e.hideable !== !1);
213
- return /* @__PURE__ */ W("div", {
212
+ let ke = U.filter((e) => I.has(n(e))), Ae = J > 0 && ke.length === J, je = r.filter((e) => e.hideable !== !1);
213
+ return /* @__PURE__ */ K("div", {
214
214
  "data-slot": "bento-data-table",
215
215
  className: "bento-glass overflow-hidden rounded-2xl",
216
- children: [/* @__PURE__ */ W("div", {
216
+ children: [/* @__PURE__ */ K("div", {
217
217
  className: "flex min-h-12 flex-wrap items-center gap-2 border-b border-border/50 px-3 py-2",
218
218
  children: [
219
- /* @__PURE__ */ U("span", {
219
+ /* @__PURE__ */ G("span", {
220
220
  "aria-live": "polite",
221
221
  className: "text-sm font-medium",
222
- children: Oe.length > 0 ? x("bento.table.selected", {
222
+ children: ke.length > 0 ? x("bento.table.selected", {
223
223
  defaultValue: "{{count}} selected",
224
- count: Oe.length
224
+ count: ke.length
225
225
  }) : ""
226
226
  }),
227
- Oe.length > 0 && /* @__PURE__ */ W("div", {
227
+ ke.length > 0 && /* @__PURE__ */ K("div", {
228
228
  role: "toolbar",
229
229
  "aria-label": x("bento.table.selectionActions", { defaultValue: "Actions on the selection" }),
230
230
  className: "flex flex-wrap items-center gap-2",
231
231
  children: [s?.map((t) => {
232
232
  let n = t.icon;
233
- return /* @__PURE__ */ W(C, {
233
+ return /* @__PURE__ */ K(C, {
234
234
  variant: "outline",
235
235
  size: "sm",
236
236
  className: e("gap-1.5", t.tone === "destructive" && "bento-item-danger"),
237
- onClick: () => t.onSelect(Oe),
238
- children: [/* @__PURE__ */ U(n, { size: 16 }), t.label]
237
+ onClick: () => t.onSelect(ke),
238
+ children: [/* @__PURE__ */ G(n, { size: 16 }), t.label]
239
239
  }, t.id);
240
- }), /* @__PURE__ */ U(C, {
240
+ }), /* @__PURE__ */ G(C, {
241
241
  variant: "ghost",
242
242
  size: "sm",
243
- onClick: () => xe(/* @__PURE__ */ new Set()),
243
+ onClick: () => be(/* @__PURE__ */ new Set()),
244
244
  children: x("bento.table.clearSelection", { defaultValue: "Clear selection" })
245
245
  })]
246
246
  }),
247
- Ae.length > 0 && /* @__PURE__ */ W(_, { children: [/* @__PURE__ */ U(F, {
247
+ je.length > 0 && /* @__PURE__ */ K(_, { children: [/* @__PURE__ */ G(F, {
248
248
  asChild: !0,
249
- children: /* @__PURE__ */ W(C, {
249
+ children: /* @__PURE__ */ K(C, {
250
250
  variant: "ghost",
251
251
  size: "sm",
252
252
  className: "ml-auto gap-1.5",
253
- children: [/* @__PURE__ */ U(Ce, {
253
+ children: [/* @__PURE__ */ G(Se, {
254
254
  size: 16,
255
255
  "aria-hidden": "true"
256
256
  }), x("bento.table.columns", { defaultValue: "Columns" })]
257
257
  })
258
- }), /* @__PURE__ */ U(d, {
258
+ }), /* @__PURE__ */ G(d, {
259
259
  align: "end",
260
260
  className: "bento-dropdown min-w-44 p-1.5",
261
- children: Ae.map((e) => /* @__PURE__ */ U(v, {
262
- checked: !H.hidden.includes(e.id),
263
- onCheckedChange: (t) => De(e.id, t !== !0),
261
+ children: je.map((e) => /* @__PURE__ */ G(v, {
262
+ checked: !W.hidden.includes(e.id),
263
+ onCheckedChange: (t) => Oe(e.id, t !== !0),
264
264
  onSelect: (e) => e.preventDefault(),
265
265
  children: e.header
266
266
  }, e.id))
267
267
  })] })
268
268
  ]
269
- }), /* @__PURE__ */ W("div", {
269
+ }), /* @__PURE__ */ K("div", {
270
270
  role: "grid",
271
271
  "aria-label": i,
272
- "aria-rowcount": K + 1,
273
- "aria-colcount": fe.length + +!!L + +!!o?.length,
274
- "aria-multiselectable": L ? "true" : void 0,
275
- children: [/* @__PURE__ */ U("div", {
272
+ "aria-rowcount": J + 1,
273
+ "aria-colcount": ue.length + +!!z + +!!o?.length,
274
+ "aria-multiselectable": z ? "true" : void 0,
275
+ children: [/* @__PURE__ */ G("div", {
276
276
  role: "rowgroup",
277
- children: /* @__PURE__ */ W("div", {
277
+ children: /* @__PURE__ */ K("div", {
278
278
  role: "row",
279
279
  "aria-rowindex": 1,
280
280
  className: "grid items-center border-b border-border/50 px-1 text-xs font-medium text-muted-foreground",
281
281
  style: {
282
- gridTemplateColumns: pe,
282
+ gridTemplateColumns: de,
283
283
  minHeight: g
284
284
  },
285
285
  children: [
286
- L && /* @__PURE__ */ U("div", {
286
+ z && /* @__PURE__ */ G("div", {
287
287
  role: "columnheader",
288
288
  className: "grid place-items-center",
289
- children: /* @__PURE__ */ U(m, {
289
+ children: /* @__PURE__ */ G(m, {
290
290
  "aria-label": x("bento.table.selectAll", { defaultValue: "Select all rows" }),
291
- checked: ke ? !0 : Oe.length > 0 && "indeterminate",
292
- onCheckedChange: () => xe(ke ? /* @__PURE__ */ new Set() : new Set(V.map(n)))
291
+ checked: Ae ? !0 : ke.length > 0 && "indeterminate",
292
+ onCheckedChange: () => be(Ae ? /* @__PURE__ */ new Set() : new Set(U.map(n)))
293
293
  })
294
294
  }),
295
- fe.map((e) => {
295
+ ue.map((e) => {
296
296
  let t = S.find((t) => t.id === e.id), n = t ? t.desc ? "descending" : "ascending" : "none";
297
- return /* @__PURE__ */ U("div", {
297
+ return /* @__PURE__ */ G("div", {
298
298
  role: "columnheader",
299
299
  "aria-sort": e.sortValue ? n : void 0,
300
300
  className: "min-w-0 px-2",
301
- children: e.sortValue ? /* @__PURE__ */ W("button", {
301
+ children: e.sortValue ? /* @__PURE__ */ K("button", {
302
302
  type: "button",
303
- onClick: () => Ee(e.id),
303
+ onClick: () => De(e.id),
304
304
  className: "inline-flex max-w-full items-center gap-1 rounded-md py-1 hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",
305
305
  children: [
306
- /* @__PURE__ */ U("span", {
306
+ /* @__PURE__ */ G("span", {
307
307
  className: "truncate",
308
308
  children: e.header
309
309
  }),
310
- n === "ascending" && /* @__PURE__ */ U(_e, {
310
+ n === "ascending" && /* @__PURE__ */ G(he, {
311
311
  size: 14,
312
312
  "aria-hidden": "true"
313
313
  }),
314
- n === "descending" && /* @__PURE__ */ U(me, {
314
+ n === "descending" && /* @__PURE__ */ G(fe, {
315
315
  size: 14,
316
316
  "aria-hidden": "true"
317
317
  }),
318
- n === "none" && /* @__PURE__ */ U(ve, {
318
+ n === "none" && /* @__PURE__ */ G(ge, {
319
319
  size: 14,
320
320
  "aria-hidden": "true",
321
321
  className: "opacity-40"
322
322
  })
323
323
  ]
324
- }) : /* @__PURE__ */ U("span", {
324
+ }) : /* @__PURE__ */ G("span", {
325
325
  className: "block truncate py-1",
326
326
  children: e.header
327
327
  })
328
328
  }, e.id);
329
329
  }),
330
- o?.length ? /* @__PURE__ */ U("div", {
330
+ o?.length ? /* @__PURE__ */ G("div", {
331
331
  role: "columnheader",
332
332
  className: "px-2",
333
- children: /* @__PURE__ */ U("span", {
333
+ children: /* @__PURE__ */ G("span", {
334
334
  className: "sr-only",
335
335
  children: x("bento.table.actions", { defaultValue: "Actions" })
336
336
  })
337
337
  }) : null
338
338
  ]
339
339
  })
340
- }), K === 0 ? /* @__PURE__ */ U("div", {
340
+ }), J === 0 ? /* @__PURE__ */ G("div", {
341
341
  role: "rowgroup",
342
- children: /* @__PURE__ */ U("div", {
342
+ children: /* @__PURE__ */ G("div", {
343
343
  role: "row",
344
344
  "aria-rowindex": 2,
345
- children: /* @__PURE__ */ U("div", {
345
+ children: /* @__PURE__ */ G("div", {
346
346
  role: "gridcell",
347
347
  className: "px-4 py-10 text-center text-sm text-muted-foreground",
348
348
  children: b ?? x("bento.table.empty", { defaultValue: "Nothing to show" })
349
349
  })
350
350
  })
351
- }) : /* @__PURE__ */ U("div", {
351
+ }) : /* @__PURE__ */ G("div", {
352
352
  role: "rowgroup",
353
- ref: oe,
354
- onScroll: (e) => ae(e.currentTarget.scrollTop),
353
+ ref: ie,
354
+ onScroll: (e) => re(e.currentTarget.scrollTop),
355
355
  className: "relative overflow-y-auto",
356
- style: { height: y },
357
- children: /* @__PURE__ */ U("div", {
358
- style: { height: K * g },
356
+ style: { height: pe },
357
+ children: /* @__PURE__ */ G("div", {
358
+ style: { height: J * g },
359
359
  className: "relative",
360
- children: V.slice(ge, ye).map((t, r) => {
361
- let i = ge + r, a = n(t), s = te.has(a), c = le(t);
362
- return /* @__PURE__ */ W("div", {
360
+ children: U.slice(_e, ve).map((t, r) => {
361
+ let i = _e + r, a = n(t), s = I.has(a), c = se(t);
362
+ return /* @__PURE__ */ K("div", {
363
363
  ref: (e) => {
364
- e ? se.current.set(i, e) : se.current.delete(i);
364
+ e ? ae.current.set(i, e) : ae.current.delete(i);
365
365
  },
366
366
  role: "row",
367
367
  "aria-rowindex": i + 2,
368
- "aria-selected": L ? s ? "true" : "false" : void 0,
369
- tabIndex: i === be ? 0 : -1,
370
- onKeyDown: (e) => we(e, i),
371
- onClick: (e) => Te(e, i),
368
+ "aria-selected": z ? s ? "true" : "false" : void 0,
369
+ tabIndex: i === ye ? 0 : -1,
370
+ onKeyDown: (e) => Te(e, i),
371
+ onClick: (e) => Ee(e, i),
372
372
  onDoubleClick: () => h?.(t),
373
373
  onFocus: (e) => {
374
- e.target === e.currentTarget && re(i);
374
+ e.target === e.currentTarget && te(i);
375
375
  },
376
376
  className: e("absolute inset-x-0 grid items-center border-b border-border/30 px-1 text-sm outline-none transition-colors", "hover:bg-muted/40 focus-visible:bg-muted/60 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", s && "bg-primary/10 hover:bg-primary/15"),
377
377
  style: {
378
378
  top: i * g,
379
379
  height: g,
380
- gridTemplateColumns: pe
380
+ gridTemplateColumns: de
381
381
  },
382
382
  children: [
383
- L && /* @__PURE__ */ U("div", {
383
+ z && /* @__PURE__ */ G("div", {
384
384
  role: "gridcell",
385
385
  className: "grid place-items-center",
386
- children: /* @__PURE__ */ U(m, {
386
+ children: /* @__PURE__ */ G(m, {
387
387
  tabIndex: -1,
388
388
  "aria-label": x("bento.table.selectRow", {
389
389
  defaultValue: "Select {{row}}",
390
390
  row: c
391
391
  }),
392
392
  checked: s,
393
- onCheckedChange: () => q(i)
393
+ onCheckedChange: () => Ce(i)
394
394
  })
395
395
  }),
396
- fe.map((e) => /* @__PURE__ */ U("div", {
396
+ ue.map((e) => /* @__PURE__ */ G("div", {
397
397
  role: "gridcell",
398
398
  className: "min-w-0 truncate px-2",
399
399
  children: e.cell(t)
400
400
  }, e.id)),
401
- o?.length ? /* @__PURE__ */ U("div", {
401
+ o?.length ? /* @__PURE__ */ G("div", {
402
402
  role: "gridcell",
403
403
  className: "grid place-items-center",
404
- children: /* @__PURE__ */ U(dt, {
404
+ children: /* @__PURE__ */ G(dt, {
405
405
  triggerLabel: x("bento.table.rowActions", {
406
406
  defaultValue: "Actions for {{row}}",
407
407
  row: c
@@ -427,22 +427,22 @@ function _t({ rows: t, getRowId: n, columns: r, label: i, getRowLabel: a, rowAct
427
427
  //#region src/bento/bento-empty-state.tsx
428
428
  function vt({ icon: t = Fe, tone: n = "indigo", title: r, description: i, action: a, align: o = "center", titleLevel: s = 2, className: c }) {
429
429
  let l = Y(n), u = o === "center", d = `h${s}`;
430
- return /* @__PURE__ */ W("div", {
430
+ return /* @__PURE__ */ K("div", {
431
431
  className: e("bento-tile bento-glass flex flex-col gap-3 rounded-3xl p-8", u ? "items-center text-center" : "items-start text-left", c),
432
432
  children: [
433
- /* @__PURE__ */ U("span", {
433
+ /* @__PURE__ */ G("span", {
434
434
  className: `grid h-12 w-12 place-items-center rounded-2xl ${l} text-white shadow-md`,
435
- children: /* @__PURE__ */ U(t, { size: 24 })
435
+ children: /* @__PURE__ */ G(t, { size: 24 })
436
436
  }),
437
- /* @__PURE__ */ U(d, {
437
+ /* @__PURE__ */ G(d, {
438
438
  className: "m-0 text-lg font-semibold tracking-tight",
439
439
  children: r
440
440
  }),
441
- i && /* @__PURE__ */ U("p", {
441
+ i && /* @__PURE__ */ G("p", {
442
442
  className: e("max-w-md text-sm text-muted-foreground", u && "mx-auto"),
443
443
  children: i
444
444
  }),
445
- a && /* @__PURE__ */ U("div", {
445
+ a && /* @__PURE__ */ G("div", {
446
446
  className: e("mt-1", u && "mx-auto"),
447
447
  children: a
448
448
  })
@@ -453,29 +453,29 @@ function vt({ icon: t = Fe, tone: n = "indigo", title: r, description: i, action
453
453
  //#region src/bento/bento-trail.tsx
454
454
  var yt = 4;
455
455
  function bt({ steps: e }) {
456
- let { t } = G(), n = e.length > yt, r = (t) => n && t > 0 && t < e.length - 2;
457
- return /* @__PURE__ */ U("nav", {
456
+ let { t } = q(), n = e.length > yt, r = (t) => n && t > 0 && t < e.length - 2;
457
+ return /* @__PURE__ */ G("nav", {
458
458
  "aria-label": t("bento.trail.label", { defaultValue: "Location" }),
459
459
  "data-slot": "bento-trail",
460
- children: /* @__PURE__ */ U("ol", {
460
+ children: /* @__PURE__ */ G("ol", {
461
461
  className: "flex min-w-0 flex-wrap items-center gap-1",
462
- children: e.map((e, t) => /* @__PURE__ */ W("li", {
462
+ children: e.map((e, t) => /* @__PURE__ */ K("li", {
463
463
  className: r(t) ? "sr-only" : "inline-flex min-w-0 items-center gap-1",
464
464
  children: [
465
- t > 0 && !r(t) && /* @__PURE__ */ U(q, {
465
+ t > 0 && !r(t) && /* @__PURE__ */ G(xe, {
466
466
  size: 12,
467
467
  "aria-hidden": !0,
468
468
  className: "shrink-0 opacity-60"
469
469
  }),
470
- /* @__PURE__ */ U(Ue, {
470
+ /* @__PURE__ */ G(Ue, {
471
471
  to: e.to,
472
472
  className: "max-w-[16ch] truncate hover:text-foreground",
473
473
  children: e.label
474
474
  }),
475
- n && t === 0 && /* @__PURE__ */ W("span", {
475
+ n && t === 0 && /* @__PURE__ */ K("span", {
476
476
  "aria-hidden": !0,
477
477
  className: "inline-flex items-center gap-1",
478
- children: [/* @__PURE__ */ U(q, {
478
+ children: [/* @__PURE__ */ G(xe, {
479
479
  size: 12,
480
480
  className: "shrink-0 opacity-60"
481
481
  }), "…"]
@@ -488,53 +488,53 @@ function bt({ steps: e }) {
488
488
  //#endregion
489
489
  //#region src/bento/bento-hero.tsx
490
490
  function xt({ to: e, children: t }) {
491
- return /* @__PURE__ */ W(Ue, {
491
+ return /* @__PURE__ */ K(Ue, {
492
492
  to: e,
493
493
  className: "inline-flex items-center gap-1 hover:text-foreground",
494
- children: [/* @__PURE__ */ U(he, {
494
+ children: [/* @__PURE__ */ G(pe, {
495
495
  size: 14,
496
496
  "aria-hidden": !0
497
497
  }), t]
498
498
  });
499
499
  }
500
500
  function St(e, t, n) {
501
- return e && e.length > 1 ? /* @__PURE__ */ U(bt, { steps: e }) : e && e.length === 1 ? /* @__PURE__ */ U(xt, {
501
+ return e && e.length > 1 ? /* @__PURE__ */ G(bt, { steps: e }) : e && e.length === 1 ? /* @__PURE__ */ G(xt, {
502
502
  to: e[0].to,
503
503
  children: e[0].label
504
- }) : t == null ? null : /* @__PURE__ */ U(xt, {
504
+ }) : t == null ? null : /* @__PURE__ */ G(xt, {
505
505
  to: t,
506
506
  children: n
507
507
  });
508
508
  }
509
509
  function Ct({ eyebrow: e, backTo: t, backLabel: n, trail: r, title: i, subtitle: a, leading: o, trailing: s }) {
510
510
  let c = e ?? St(r, t, n);
511
- return /* @__PURE__ */ U("header", {
511
+ return /* @__PURE__ */ G("header", {
512
512
  className: "bento-shell-header mb-6 flex flex-col items-start gap-3 md:mb-10",
513
- children: /* @__PURE__ */ W("div", {
513
+ children: /* @__PURE__ */ K("div", {
514
514
  className: "flex w-full items-start gap-4",
515
515
  children: [
516
- o && /* @__PURE__ */ U("div", {
516
+ o && /* @__PURE__ */ G("div", {
517
517
  className: "shrink-0",
518
518
  children: o
519
519
  }),
520
- /* @__PURE__ */ W("div", {
520
+ /* @__PURE__ */ K("div", {
521
521
  className: "flex flex-1 flex-col gap-1",
522
522
  children: [
523
- c && /* @__PURE__ */ U("span", {
523
+ c && /* @__PURE__ */ G("span", {
524
524
  className: "text-xs uppercase tracking-[0.18em] text-muted-foreground",
525
525
  children: c
526
526
  }),
527
- /* @__PURE__ */ U("h1", {
527
+ /* @__PURE__ */ G("h1", {
528
528
  className: "text-3xl font-semibold tracking-tight md:text-4xl",
529
529
  children: i
530
530
  }),
531
- a && /* @__PURE__ */ U("p", {
531
+ a && /* @__PURE__ */ G("p", {
532
532
  className: "max-w-2xl text-sm text-muted-foreground",
533
533
  children: a
534
534
  })
535
535
  ]
536
536
  }),
537
- s && /* @__PURE__ */ U("div", {
537
+ s && /* @__PURE__ */ G("div", {
538
538
  className: "ml-auto flex shrink-0 items-center gap-2",
539
539
  children: s
540
540
  })
@@ -545,30 +545,30 @@ function Ct({ eyebrow: e, backTo: t, backLabel: n, trail: r, title: i, subtitle:
545
545
  //#endregion
546
546
  //#region src/bento/bento-hero-icon-picker.tsx
547
547
  function wt({ value: e, onChange: t, onClear: n, defaultIcon: r, tone: i, title: a, description: o, readOnly: s = !1 }) {
548
- let { t: c } = G(), [l, u] = B(!1);
549
- return s ? /* @__PURE__ */ U("span", {
548
+ let { t: c } = q(), [l, u] = H(!1);
549
+ return s ? /* @__PURE__ */ G("span", {
550
550
  className: `grid h-12 w-12 place-items-center rounded-2xl ${Y(i)} text-white shadow-md`,
551
- children: e ? /* @__PURE__ */ U(Ve, {
551
+ children: e ? /* @__PURE__ */ G(Ve, {
552
552
  icon: e,
553
553
  className: "size-6 text-white"
554
- }) : /* @__PURE__ */ U(r, { size: 24 })
555
- }) : /* @__PURE__ */ W("div", {
554
+ }) : /* @__PURE__ */ G(r, { size: 24 })
555
+ }) : /* @__PURE__ */ K("div", {
556
556
  className: "group relative",
557
557
  children: [
558
- /* @__PURE__ */ W("button", {
558
+ /* @__PURE__ */ K("button", {
559
559
  type: "button",
560
560
  onClick: () => u(!0),
561
561
  "aria-label": c("forms.iconPicker.chooseAnIcon"),
562
562
  className: `group/icon relative grid h-12 w-12 cursor-pointer place-items-center overflow-hidden rounded-2xl ${Y(i)} text-white shadow-md outline-none transition-all duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] hover:scale-105 focus-visible:ring-2 focus-visible:ring-ring active:scale-95`,
563
- children: [e ? /* @__PURE__ */ U(Ve, {
563
+ children: [e ? /* @__PURE__ */ G(Ve, {
564
564
  icon: e,
565
565
  className: "size-6 text-white"
566
- }) : /* @__PURE__ */ U(r, { size: 24 }), /* @__PURE__ */ U("span", {
566
+ }) : /* @__PURE__ */ G(r, { size: 24 }), /* @__PURE__ */ G("span", {
567
567
  className: "pointer-events-none absolute inset-0 grid place-items-center bg-black/40 opacity-0 transition-opacity duration-200 group-hover/icon:opacity-100",
568
- children: /* @__PURE__ */ U(je, { className: "size-5 text-white" })
568
+ children: /* @__PURE__ */ G(je, { className: "size-5 text-white" })
569
569
  })]
570
570
  }),
571
- e && n && /* @__PURE__ */ U("button", {
571
+ e && n && /* @__PURE__ */ G("button", {
572
572
  type: "button",
573
573
  onClick: (e) => {
574
574
  e.stopPropagation(), n();
@@ -576,9 +576,9 @@ function wt({ value: e, onChange: t, onClear: n, defaultIcon: r, tone: i, title:
576
576
  "aria-label": c("forms.common.remove"),
577
577
  title: c("forms.common.remove"),
578
578
  className: "absolute -right-1.5 -top-1.5 grid h-5 w-5 cursor-pointer place-items-center rounded-full border border-border/60 bg-card/90 text-foreground opacity-0 shadow-md backdrop-blur transition-opacity duration-200 bento-clear focus-visible:opacity-100 group-hover:opacity-100",
579
- children: /* @__PURE__ */ U(Be, { size: 12 })
579
+ children: /* @__PURE__ */ G(Be, { size: 12 })
580
580
  }),
581
- /* @__PURE__ */ U(g, {
581
+ /* @__PURE__ */ G(g, {
582
582
  open: l,
583
583
  onOpenChange: u,
584
584
  value: e,
@@ -593,8 +593,8 @@ function wt({ value: e, onChange: t, onClear: n, defaultIcon: r, tone: i, title:
593
593
  //#endregion
594
594
  //#region src/bento/bento-inline-edit.tsx
595
595
  function Tt({ value: n, onSave: r, multiline: i = !1, placeholder: a, className: o, ariaLabel: s, autoFocus: c = !1, readOnly: l = !1, commitOnChange: u = !1 }) {
596
- let { t: d } = G(), [f, p] = B(c), [m, h] = B(n), [g, _] = B(!1), v = z(null), y = z(null), b = z(!1), x = z(!1), [S, C] = B(n);
597
- !f && n !== S && (C(n), h(n)), R(() => {
596
+ let { t: d } = q(), [f, p] = H(c), [m, h] = H(n), [g, _] = H(!1), v = V(null), y = V(null), b = V(!1), x = V(!1), [S, C] = H(n);
597
+ !f && n !== S && (C(n), h(n)), B(() => {
598
598
  f && v.current ? (v.current.focus(), v.current.select()) : !f && x.current && (x.current = !1, y.current?.focus());
599
599
  }, [f]);
600
600
  function w() {
@@ -627,22 +627,22 @@ function Tt({ value: n, onSave: r, multiline: i = !1, placeholder: a, className:
627
627
  h(e), u && r(e);
628
628
  }
629
629
  let O = !n;
630
- if (l) return /* @__PURE__ */ U("span", {
630
+ if (l) return /* @__PURE__ */ G("span", {
631
631
  className: e("block w-full", o),
632
632
  "aria-label": s,
633
- children: n || /* @__PURE__ */ U("span", {
633
+ children: n || /* @__PURE__ */ G("span", {
634
634
  className: "text-muted-foreground",
635
635
  children: a ?? "—"
636
636
  })
637
637
  });
638
638
  let k = "w-full bg-transparent outline-none border-b transition-colors duration-200", A = e(k, "cursor-text rounded-sm", O ? "border-dashed border-border/70 hover:border-foreground/40" : "border-transparent hover:border-border/60 focus-visible:border-border/80"), j = e(k, "bento-editing");
639
- if (!f) return /* @__PURE__ */ U("button", {
639
+ if (!f) return /* @__PURE__ */ G("button", {
640
640
  ref: y,
641
641
  type: "button",
642
642
  onClick: () => p(!0),
643
643
  className: e(A, "text-left", o),
644
644
  "aria-label": s ?? d("forms.formActions.edit"),
645
- children: n || /* @__PURE__ */ U("span", {
645
+ children: n || /* @__PURE__ */ G("span", {
646
646
  className: "text-muted-foreground",
647
647
  children: a ?? "—"
648
648
  })
@@ -654,7 +654,7 @@ function Tt({ value: n, onSave: r, multiline: i = !1, placeholder: a, className:
654
654
  }
655
655
  e.key === "Enter" && (!i || e.metaKey || e.ctrlKey) && (e.preventDefault(), T());
656
656
  }
657
- return i ? /* @__PURE__ */ U("textarea", {
657
+ return i ? /* @__PURE__ */ G("textarea", {
658
658
  ref: v,
659
659
  value: m,
660
660
  onChange: (e) => D(e.target.value),
@@ -665,7 +665,7 @@ function Tt({ value: n, onSave: r, multiline: i = !1, placeholder: a, className:
665
665
  "aria-busy": g || void 0,
666
666
  rows: 3,
667
667
  className: e(j, "resize-none py-0.5 leading-snug", o)
668
- }) : /* @__PURE__ */ U(t, {
668
+ }) : /* @__PURE__ */ G(t, {
669
669
  ref: v,
670
670
  value: m,
671
671
  onChange: (e) => D(e.target.value),
@@ -680,21 +680,21 @@ function Tt({ value: n, onSave: r, multiline: i = !1, placeholder: a, className:
680
680
  //#endregion
681
681
  //#region src/bento/bento-status-marker.tsx
682
682
  function Et({ titleMissing: t, dirty: n, className: r }) {
683
- let { t: i } = G();
683
+ let { t: i } = q();
684
684
  if (!t && !n) return null;
685
685
  let a = "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-medium normal-case leading-none tracking-normal";
686
- return t ? /* @__PURE__ */ W("span", {
686
+ return t ? /* @__PURE__ */ K("span", {
687
687
  className: e(a, "bento-status bento-status-error", r),
688
- children: [/* @__PURE__ */ U(pe, { className: "size-3" }), i("bento.saveBar.titleRequired", { defaultValue: "Title required" })]
689
- }) : /* @__PURE__ */ W("span", {
688
+ children: [/* @__PURE__ */ G(de, { className: "size-3" }), i("bento.saveBar.titleRequired", { defaultValue: "Title required" })]
689
+ }) : /* @__PURE__ */ K("span", {
690
690
  className: e(a, "bento-status bento-status-warn", r),
691
- children: [/* @__PURE__ */ U("span", { className: "h-1.5 w-1.5 rounded-full bento-status-dot bento-pulse" }), i("bento.saveBar.unsaved", { defaultValue: "Unsaved changes" })]
691
+ children: [/* @__PURE__ */ G("span", { className: "h-1.5 w-1.5 rounded-full bento-status-dot bento-pulse" }), i("bento.saveBar.unsaved", { defaultValue: "Unsaved changes" })]
692
692
  });
693
693
  }
694
694
  //#endregion
695
695
  //#region src/bento/bento-scroll-fade.ts
696
696
  function Dt(e) {
697
- R(() => {
697
+ B(() => {
698
698
  let t = e.current;
699
699
  if (!t) return;
700
700
  let n = document.documentElement, r = 0, i = () => {
@@ -717,17 +717,17 @@ function Ot(e, t) {
717
717
  return n;
718
718
  }
719
719
  function kt({ entity: e, isNew: t, headlineFallback: n, eyebrow: r, listRoute: i, trail: o, icon: s, tone: c, formId: l, feature: u, hasStatus: d = !1, hideIcon: f = !1, readOnly: p = !1, autosaveOnly: m = !1, badge: h, notice: g, onUpdate: _, onDelete: v, extraActions: y, children: b }) {
720
- let { t: x } = G(), S = Ke(), [C, w] = B(!1), [T, E] = B({
720
+ let { t: x } = q(), S = Ke(), [C, w] = H(!1), [T, E] = H({
721
721
  isDirty: !1,
722
722
  isSubmitting: !1
723
- }), D = z(null);
723
+ }), D = V(null);
724
724
  Dt(D);
725
725
  let O = {
726
726
  title: e.title ?? "",
727
727
  description: e.description ?? "",
728
728
  icon: e.icon ?? null,
729
729
  enabled: e.enabled ?? 1
730
- }, [k, A] = B(O), [j, M] = B(O);
730
+ }, [k, A] = H(O), [j, M] = H(O);
731
731
  (O.title !== j.title || O.description !== j.description || O.icon !== j.icon || O.enabled !== j.enabled) && (M(O), A(O));
732
732
  async function P(n) {
733
733
  if (A((e) => ({
@@ -772,26 +772,26 @@ function kt({ entity: e, isNew: t, headlineFallback: n, eyebrow: r, listRoute: i
772
772
  w(!1);
773
773
  }
774
774
  }
775
- let F = k.enabled === 1, te = !p, ne = !(m && !t), I = !k.title.trim(), re = !t && !T.isDirty, ie = I || re, ae = [...y ?? [], ...v && !p ? [{
775
+ let F = k.enabled === 1, I = !p, L = !(m && !t), R = !k.title.trim(), te = !t && !T.isDirty, ne = R || te, re = [...y ?? [], ...v && !p ? [{
776
776
  id: "entity.delete",
777
777
  label: x("forms.formActions.delete"),
778
778
  icon: Ie,
779
779
  tone: "destructive",
780
780
  onSelect: () => w(!0)
781
781
  }] : []];
782
- return /* @__PURE__ */ W(H, { children: [
783
- /* @__PURE__ */ U(Ct, {
784
- eyebrow: /* @__PURE__ */ W("span", {
782
+ return /* @__PURE__ */ K(W, { children: [
783
+ /* @__PURE__ */ G(Ct, {
784
+ eyebrow: /* @__PURE__ */ K("span", {
785
785
  className: "inline-flex items-center gap-2",
786
- children: [o && o.length > 1 ? /* @__PURE__ */ U(bt, { steps: o }) : /* @__PURE__ */ U(xt, {
786
+ children: [o && o.length > 1 ? /* @__PURE__ */ G(bt, { steps: o }) : /* @__PURE__ */ G(xt, {
787
787
  to: i,
788
788
  children: r
789
- }), !p && /* @__PURE__ */ U(Et, {
790
- titleMissing: I,
789
+ }), !p && /* @__PURE__ */ G(Et, {
790
+ titleMissing: R,
791
791
  dirty: t || T.isDirty
792
792
  })]
793
793
  }),
794
- leading: /* @__PURE__ */ U(wt, {
794
+ leading: /* @__PURE__ */ G(wt, {
795
795
  value: k.icon,
796
796
  onChange: (e) => P({ icon: e }),
797
797
  onClear: () => P({ icon: null }),
@@ -801,7 +801,7 @@ function kt({ entity: e, isNew: t, headlineFallback: n, eyebrow: r, listRoute: i
801
801
  description: k.description,
802
802
  readOnly: p || f
803
803
  }),
804
- title: /* @__PURE__ */ U(Tt, {
804
+ title: /* @__PURE__ */ G(Tt, {
805
805
  value: k.title,
806
806
  onSave: (e) => P({ title: e }),
807
807
  placeholder: n,
@@ -811,7 +811,7 @@ function kt({ entity: e, isNew: t, headlineFallback: n, eyebrow: r, listRoute: i
811
811
  commitOnChange: t,
812
812
  readOnly: p
813
813
  }),
814
- subtitle: /* @__PURE__ */ U(Tt, {
814
+ subtitle: /* @__PURE__ */ G(Tt, {
815
815
  value: k.description,
816
816
  onSave: (e) => P({ description: e }),
817
817
  multiline: !0,
@@ -821,52 +821,52 @@ function kt({ entity: e, isNew: t, headlineFallback: n, eyebrow: r, listRoute: i
821
821
  commitOnChange: t,
822
822
  readOnly: p
823
823
  }),
824
- trailing: /* @__PURE__ */ W(H, { children: [
825
- te && /* @__PURE__ */ W("div", {
824
+ trailing: /* @__PURE__ */ K(W, { children: [
825
+ I && /* @__PURE__ */ K("div", {
826
826
  className: "bento-fade-out flex shrink-0 items-center gap-2",
827
- children: [ne && /* @__PURE__ */ W(a, {
827
+ children: [L && /* @__PURE__ */ K(a, {
828
828
  type: "submit",
829
829
  form: l,
830
830
  size: "sm",
831
831
  loading: T.isSubmitting,
832
- "aria-disabled": ie ? "true" : void 0,
833
- children: [/* @__PURE__ */ U(J, { className: "size-4" }), x("forms.formActions.saveChanges")]
834
- }), /* @__PURE__ */ W(a, {
832
+ "aria-disabled": ne ? "true" : void 0,
833
+ children: [/* @__PURE__ */ G(Ce, { className: "size-4" }), x("forms.formActions.saveChanges")]
834
+ }), /* @__PURE__ */ K(a, {
835
835
  type: "button",
836
836
  size: "sm",
837
837
  variant: "outline",
838
838
  onClick: () => S(i),
839
- children: [/* @__PURE__ */ U(Be, { className: "size-4" }), x("forms.formActions.cancel")]
839
+ children: [/* @__PURE__ */ G(Be, { className: "size-4" }), x("forms.formActions.cancel")]
840
840
  })]
841
841
  }),
842
842
  h,
843
- d && (p ? /* @__PURE__ */ W("span", {
843
+ d && (p ? /* @__PURE__ */ K("span", {
844
844
  className: `flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[10px] uppercase tracking-wider ${F ? "bento-status bento-status-on" : "border-border bg-muted text-muted-foreground"}`,
845
- children: [/* @__PURE__ */ U("span", { className: `h-1.5 w-1.5 rounded-full ${F ? "bento-status-dot bento-pulse" : "bg-muted-foreground/60"}` }), F ? x("common.active", { defaultValue: "Active" }) : x("common.idle", { defaultValue: "Idle" })]
846
- }) : /* @__PURE__ */ W("button", {
845
+ children: [/* @__PURE__ */ G("span", { className: `h-1.5 w-1.5 rounded-full ${F ? "bento-status-dot bento-pulse" : "bg-muted-foreground/60"}` }), F ? x("common.active", { defaultValue: "Active" }) : x("common.idle", { defaultValue: "Idle" })]
846
+ }) : /* @__PURE__ */ K("button", {
847
847
  type: "button",
848
848
  onClick: () => P({ enabled: +!F }),
849
849
  "aria-label": x("forms.common.enabled"),
850
850
  title: x(F ? "common.activeToggleHint" : "common.idleToggleHint"),
851
851
  className: `bento-tile-clickable flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[10px] uppercase tracking-wider transition-colors duration-200 ${F ? "bento-status bento-status-on" : "border-border bg-muted text-muted-foreground hover:bg-muted/80"}`,
852
- children: [/* @__PURE__ */ U("span", { className: `h-1.5 w-1.5 rounded-full ${F ? "bento-status-dot bento-pulse" : "bg-muted-foreground/60"}` }), F ? x("common.active", { defaultValue: "Active" }) : x("common.idle", { defaultValue: "Idle" })]
852
+ children: [/* @__PURE__ */ G("span", { className: `h-1.5 w-1.5 rounded-full ${F ? "bento-status-dot bento-pulse" : "bg-muted-foreground/60"}` }), F ? x("common.active", { defaultValue: "Active" }) : x("common.idle", { defaultValue: "Idle" })]
853
853
  })),
854
- !t && ae.length > 0 && /* @__PURE__ */ U(dt, { actions: ae })
854
+ !t && re.length > 0 && /* @__PURE__ */ G(dt, { actions: re })
855
855
  ] })
856
856
  }),
857
- /* @__PURE__ */ U("div", {
857
+ /* @__PURE__ */ G("div", {
858
858
  ref: D,
859
859
  "aria-hidden": !0,
860
860
  className: "h-px"
861
861
  }),
862
862
  g,
863
- !t && v && /* @__PURE__ */ U(oe, {
863
+ !t && v && /* @__PURE__ */ G(ie, {
864
864
  feature: u,
865
865
  name: k.title,
866
866
  onDelete: ee,
867
867
  open: C,
868
868
  setOpen: w,
869
- trigger: /* @__PURE__ */ U("span", {
869
+ trigger: /* @__PURE__ */ G("span", {
870
870
  className: "hidden",
871
871
  "aria-hidden": !0
872
872
  })
@@ -886,13 +886,13 @@ var At = {
886
886
  unchanged: !1
887
887
  };
888
888
  function jt({ state: t, compact: n = !1, className: r }) {
889
- let { t: i } = G(), a = {
889
+ let { t: i } = q(), a = {
890
890
  added: i("bento.diff.added", { defaultValue: "Added" }),
891
891
  removed: i("bento.diff.removed", { defaultValue: "Removed" }),
892
892
  changed: i("bento.diff.changed", { defaultValue: "Changed" }),
893
893
  unchanged: i("bento.diff.unchanged", { defaultValue: "Unchanged" })
894
894
  }[t], o = e("rounded-full border px-1.5 leading-4", n && "font-mono", At[t], r);
895
- if (!n) return /* @__PURE__ */ U("span", {
895
+ if (!n) return /* @__PURE__ */ G("span", {
896
896
  "data-slot": "bento-change-mark",
897
897
  "data-state": t,
898
898
  className: o,
@@ -904,15 +904,15 @@ function jt({ state: t, compact: n = !1, className: r }) {
904
904
  changed: i("bento.diff.changedLetter", { defaultValue: "M" }),
905
905
  unchanged: i("bento.diff.unchangedLetter", { defaultValue: "·" })
906
906
  }[t];
907
- return /* @__PURE__ */ W("span", {
907
+ return /* @__PURE__ */ K("span", {
908
908
  "data-slot": "bento-change-mark",
909
909
  "data-state": t,
910
910
  title: a,
911
911
  className: o,
912
- children: [/* @__PURE__ */ U("span", {
912
+ children: [/* @__PURE__ */ G("span", {
913
913
  "aria-hidden": "true",
914
914
  children: s
915
- }), /* @__PURE__ */ U("span", {
915
+ }), /* @__PURE__ */ G("span", {
916
916
  className: "sr-only",
917
917
  children: a
918
918
  })]
@@ -945,7 +945,7 @@ function Pt(e) {
945
945
  }
946
946
  var X = (e) => e == null ? "" : String(e);
947
947
  function Ft({ before: t, after: n, fields: r, showUnchanged: i = !1, layout: a = "inline" }) {
948
- let { t: o } = G(), [s, c] = B(i), l = r.map((e) => {
948
+ let { t: o } = q(), [s, c] = H(i), l = r.map((e) => {
949
949
  let r = t?.[e.id], i = n?.[e.id], a = e.kind ?? "text", o = a === "rich" ? Pt(X(r)).join("\n") === Pt(X(i)).join("\n") : a === "value" ? JSON.stringify(r ?? null) === JSON.stringify(i ?? null) : X(r) === X(i), s = "changed";
950
950
  return t === null || (r == null || r === "") && !o ? s = "added" : n === null || (i == null || i === "") && !o ? s = "removed" : o && (s = "unchanged"), {
951
951
  field: e,
@@ -955,37 +955,37 @@ function Ft({ before: t, after: n, fields: r, showUnchanged: i = !1, layout: a =
955
955
  state: s
956
956
  };
957
957
  }), u = l.filter((e) => e.state !== "unchanged"), d = l.filter((e) => e.state === "unchanged");
958
- return /* @__PURE__ */ W("div", {
958
+ return /* @__PURE__ */ K("div", {
959
959
  "data-slot": "bento-diff",
960
960
  className: "flex flex-col gap-3",
961
961
  children: [
962
- (t === null || n === null) && /* @__PURE__ */ U("p", {
962
+ (t === null || n === null) && /* @__PURE__ */ G("p", {
963
963
  className: "m-0 text-sm font-medium",
964
964
  children: t === null ? o("bento.diff.created", { defaultValue: "Created in this version" }) : o("bento.diff.deleted", { defaultValue: "Deleted in this version" })
965
965
  }),
966
- u.length === 0 && /* @__PURE__ */ U("p", {
966
+ u.length === 0 && /* @__PURE__ */ G("p", {
967
967
  className: "m-0 text-sm text-muted-foreground",
968
968
  children: o("bento.diff.noChanges", { defaultValue: "No field changed" })
969
969
  }),
970
- /* @__PURE__ */ U("dl", {
970
+ /* @__PURE__ */ G("dl", {
971
971
  className: "m-0 flex flex-col gap-3",
972
- children: u.map((e) => /* @__PURE__ */ U(It, {
972
+ children: u.map((e) => /* @__PURE__ */ G(It, {
973
973
  label: e.field.label,
974
974
  state: e.state,
975
- children: /* @__PURE__ */ U(Lt, {
975
+ children: /* @__PURE__ */ G(Lt, {
976
976
  row: e,
977
977
  layout: a
978
978
  })
979
979
  }, e.field.id))
980
980
  }),
981
- d.length > 0 && /* @__PURE__ */ W("div", {
981
+ d.length > 0 && /* @__PURE__ */ K("div", {
982
982
  className: "flex flex-col gap-3",
983
- children: [/* @__PURE__ */ W("button", {
983
+ children: [/* @__PURE__ */ K("button", {
984
984
  type: "button",
985
985
  "aria-expanded": s ? "true" : "false",
986
986
  onClick: () => c(!s),
987
987
  className: "inline-flex items-center gap-1 self-start rounded-md text-sm text-muted-foreground hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",
988
- children: [/* @__PURE__ */ U(q, {
988
+ children: [/* @__PURE__ */ G(xe, {
989
989
  size: 14,
990
990
  "aria-hidden": "true",
991
991
  className: e("transition-transform", s && "rotate-90")
@@ -993,12 +993,12 @@ function Ft({ before: t, after: n, fields: r, showUnchanged: i = !1, layout: a =
993
993
  defaultValue: "{{count}} unchanged",
994
994
  count: d.length
995
995
  })]
996
- }), s && /* @__PURE__ */ U("dl", {
996
+ }), s && /* @__PURE__ */ G("dl", {
997
997
  className: "m-0 flex flex-col gap-3",
998
- children: d.map((t) => /* @__PURE__ */ U(It, {
998
+ children: d.map((t) => /* @__PURE__ */ G(It, {
999
999
  label: t.field.label,
1000
1000
  state: "unchanged",
1001
- children: /* @__PURE__ */ U("p", {
1001
+ children: /* @__PURE__ */ G("p", {
1002
1002
  className: e("m-0 whitespace-pre-wrap text-sm text-muted-foreground", t.kind === "lines" && "font-mono text-xs"),
1003
1003
  children: t.kind === "rich" ? Pt(X(t.b)).join("\n\n") : t.field.format ? t.field.format(t.b) : X(t.b)
1004
1004
  })
@@ -1009,20 +1009,20 @@ function Ft({ before: t, after: n, fields: r, showUnchanged: i = !1, layout: a =
1009
1009
  });
1010
1010
  }
1011
1011
  function It({ label: e, state: t, children: n }) {
1012
- return /* @__PURE__ */ W("div", {
1012
+ return /* @__PURE__ */ K("div", {
1013
1013
  className: "rounded-xl border border-border/60 bg-card/40 p-3",
1014
- children: [/* @__PURE__ */ W("dt", {
1014
+ children: [/* @__PURE__ */ K("dt", {
1015
1015
  className: "mb-1.5 flex items-center gap-2 text-xs font-medium text-muted-foreground",
1016
- children: [/* @__PURE__ */ U("span", { children: e }), /* @__PURE__ */ U(jt, { state: t })]
1017
- }), /* @__PURE__ */ U("dd", {
1016
+ children: [/* @__PURE__ */ G("span", { children: e }), /* @__PURE__ */ G(jt, { state: t })]
1017
+ }), /* @__PURE__ */ G("dd", {
1018
1018
  className: "m-0",
1019
1019
  children: n
1020
1020
  })]
1021
1021
  });
1022
1022
  }
1023
1023
  function Lt({ row: e, layout: t }) {
1024
- let { t: n } = G(), { field: r, a: i, b: a, kind: o, state: s } = e;
1025
- if (o === "lines") return /* @__PURE__ */ U(Ut, {
1024
+ let { t: n } = q(), { field: r, a: i, b: a, kind: o, state: s } = e;
1025
+ if (o === "lines") return /* @__PURE__ */ G(Ut, {
1026
1026
  label: r.label,
1027
1027
  before: X(i),
1028
1028
  after: X(a),
@@ -1030,15 +1030,15 @@ function Lt({ row: e, layout: t }) {
1030
1030
  });
1031
1031
  if (o === "value") {
1032
1032
  let e = (e) => r.format ? r.format(e) : X(e);
1033
- return /* @__PURE__ */ W("p", {
1033
+ return /* @__PURE__ */ K("p", {
1034
1034
  className: "m-0 flex flex-wrap items-center gap-2 text-sm",
1035
1035
  children: [
1036
- s !== "added" && /* @__PURE__ */ U(tn, { children: e(i) }),
1037
- s === "changed" && /* @__PURE__ */ U("span", {
1036
+ s !== "added" && /* @__PURE__ */ G(tn, { children: e(i) }),
1037
+ s === "changed" && /* @__PURE__ */ G("span", {
1038
1038
  "aria-hidden": "true",
1039
1039
  children: "→"
1040
1040
  }),
1041
- s !== "removed" && /* @__PURE__ */ U(en, { children: e(a) })
1041
+ s !== "removed" && /* @__PURE__ */ G(en, { children: e(a) })
1042
1042
  ]
1043
1043
  });
1044
1044
  }
@@ -1053,23 +1053,23 @@ function Lt({ row: e, layout: t }) {
1053
1053
  let t = u[e], n = u[e + 1];
1054
1054
  if (t.op === "remove" && n?.op === "add") {
1055
1055
  let r = Mt(Nt(t.text), Nt(n.text));
1056
- d.push(/* @__PURE__ */ U("p", {
1056
+ d.push(/* @__PURE__ */ G("p", {
1057
1057
  className: "m-0 whitespace-pre-wrap text-sm leading-relaxed",
1058
- children: r ? r.map((e, t) => e.op === "same" ? /* @__PURE__ */ U("span", { children: e.text }, t) : e.op === "add" ? /* @__PURE__ */ U(en, { children: e.text }, t) : /* @__PURE__ */ U(tn, { children: e.text }, t)) : [
1059
- /* @__PURE__ */ U(tn, { children: t.text }, "r"),
1058
+ children: r ? r.map((e, t) => e.op === "same" ? /* @__PURE__ */ G("span", { children: e.text }, t) : e.op === "add" ? /* @__PURE__ */ G(en, { children: e.text }, t) : /* @__PURE__ */ G(tn, { children: e.text }, t)) : [
1059
+ /* @__PURE__ */ G(tn, { children: t.text }, "r"),
1060
1060
  " ",
1061
- /* @__PURE__ */ U(en, { children: n.text }, "a")
1061
+ /* @__PURE__ */ G(en, { children: n.text }, "a")
1062
1062
  ]
1063
1063
  }, e)), e++;
1064
- } else d.push(/* @__PURE__ */ U("p", {
1064
+ } else d.push(/* @__PURE__ */ G("p", {
1065
1065
  className: "m-0 whitespace-pre-wrap text-sm leading-relaxed",
1066
- children: t.op === "same" ? t.text : t.op === "add" ? /* @__PURE__ */ U(en, { children: t.text }) : /* @__PURE__ */ U(tn, { children: t.text })
1066
+ children: t.op === "same" ? t.text : t.op === "add" ? /* @__PURE__ */ G(en, { children: t.text }) : /* @__PURE__ */ G(tn, { children: t.text })
1067
1067
  }, e));
1068
1068
  }
1069
- return d.length === 0 ? /* @__PURE__ */ U("p", {
1069
+ return d.length === 0 ? /* @__PURE__ */ G("p", {
1070
1070
  className: "m-0 text-sm text-muted-foreground",
1071
1071
  children: n("bento.diff.empty", { defaultValue: "Empty" })
1072
- }) : /* @__PURE__ */ U("div", {
1072
+ }) : /* @__PURE__ */ G("div", {
1073
1073
  className: "flex flex-col gap-2",
1074
1074
  children: d
1075
1075
  });
@@ -1148,12 +1148,12 @@ function Ht(e, t, n) {
1148
1148
  return i;
1149
1149
  }
1150
1150
  function Ut({ label: t, before: n, after: r, layout: i }) {
1151
- let { t: a } = G(), [o, s] = B(/* @__PURE__ */ new Set()), c = Bt(n, r);
1152
- if (c === null) return /* @__PURE__ */ U("p", {
1151
+ let { t: a } = q(), [o, s] = H(/* @__PURE__ */ new Set()), c = Bt(n, r);
1152
+ if (c === null) return /* @__PURE__ */ G("p", {
1153
1153
  className: "m-0 text-sm text-muted-foreground",
1154
1154
  children: a("bento.diff.tooLarge", { defaultValue: "Too many lines changed to compare them here" })
1155
1155
  });
1156
- if (c.length === 0) return /* @__PURE__ */ U("p", {
1156
+ if (c.length === 0) return /* @__PURE__ */ G("p", {
1157
1157
  className: "m-0 text-sm text-muted-foreground",
1158
1158
  children: a("bento.diff.empty", { defaultValue: "Empty" })
1159
1159
  });
@@ -1163,15 +1163,15 @@ function Ut({ label: t, before: n, after: r, layout: i }) {
1163
1163
  };
1164
1164
  function u(t, n, r) {
1165
1165
  let i = o.has(t.key);
1166
- return [/* @__PURE__ */ U("tr", { children: /* @__PURE__ */ U("td", {
1166
+ return [/* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", {
1167
1167
  colSpan: n,
1168
1168
  className: "bg-muted/40 px-2",
1169
- children: /* @__PURE__ */ W("button", {
1169
+ children: /* @__PURE__ */ K("button", {
1170
1170
  type: "button",
1171
1171
  "aria-expanded": i ? "true" : "false",
1172
1172
  onClick: () => l(t.key),
1173
1173
  className: "inline-flex items-center gap-1 rounded-md font-sans text-muted-foreground hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",
1174
- children: [/* @__PURE__ */ U(q, {
1174
+ children: [/* @__PURE__ */ G(xe, {
1175
1175
  size: 12,
1176
1176
  "aria-hidden": "true",
1177
1177
  className: e("transition-transform", i && "rotate-90")
@@ -1182,30 +1182,30 @@ function Ut({ label: t, before: n, after: r, layout: i }) {
1182
1182
  })
1183
1183
  }) }, `fold-${t.key}`), ...i ? t.items.map(r) : []];
1184
1184
  }
1185
- let d = (t) => /* @__PURE__ */ U("table", {
1185
+ let d = (t) => /* @__PURE__ */ G("table", {
1186
1186
  "data-layout": "inline",
1187
1187
  className: e("min-w-full border-collapse font-mono text-xs leading-5", t),
1188
- children: /* @__PURE__ */ U("tbody", { children: Ht(c, (e) => e.op !== "same", Wt).map((e) => {
1189
- let t = (e) => /* @__PURE__ */ U(Xt, { row: e }, Wt(e));
1188
+ children: /* @__PURE__ */ G("tbody", { children: Ht(c, (e) => e.op !== "same", Wt).map((e) => {
1189
+ let t = (e) => /* @__PURE__ */ G(Xt, { row: e }, Wt(e));
1190
1190
  return e.fold ? u(e, 4, t) : e.items.map(t);
1191
1191
  }) })
1192
1192
  });
1193
- return /* @__PURE__ */ U("section", {
1193
+ return /* @__PURE__ */ G("section", {
1194
1194
  "aria-label": t,
1195
1195
  tabIndex: 0,
1196
1196
  className: "@container/diff overflow-x-auto rounded-md border border-border/60 focus-visible:outline-2 focus-visible:outline-ring",
1197
- children: i === "split" ? /* @__PURE__ */ W(H, { children: [d("@3xl/diff:hidden"), ((t) => /* @__PURE__ */ W("table", {
1197
+ children: i === "split" ? /* @__PURE__ */ K(W, { children: [d("@3xl/diff:hidden"), ((t) => /* @__PURE__ */ K("table", {
1198
1198
  "data-layout": "split",
1199
1199
  className: e("w-full table-fixed border-collapse font-mono text-xs leading-5", t),
1200
- children: [/* @__PURE__ */ W("colgroup", { children: [
1201
- /* @__PURE__ */ U("col", { className: "w-14" }),
1202
- /* @__PURE__ */ U("col", { className: "w-5" }),
1203
- /* @__PURE__ */ U("col", {}),
1204
- /* @__PURE__ */ U("col", { className: "w-14" }),
1205
- /* @__PURE__ */ U("col", { className: "w-5" }),
1206
- /* @__PURE__ */ U("col", {})
1207
- ] }), /* @__PURE__ */ U("tbody", { children: Ht(Vt(c), (e) => e.left?.op !== "same", Gt).map((e) => {
1208
- let t = (e) => /* @__PURE__ */ U(Zt, { pair: e }, Gt(e));
1200
+ children: [/* @__PURE__ */ K("colgroup", { children: [
1201
+ /* @__PURE__ */ G("col", { className: "w-14" }),
1202
+ /* @__PURE__ */ G("col", { className: "w-5" }),
1203
+ /* @__PURE__ */ G("col", {}),
1204
+ /* @__PURE__ */ G("col", { className: "w-14" }),
1205
+ /* @__PURE__ */ G("col", { className: "w-5" }),
1206
+ /* @__PURE__ */ G("col", {})
1207
+ ] }), /* @__PURE__ */ G("tbody", { children: Ht(Vt(c), (e) => e.left?.op !== "same", Gt).map((e) => {
1208
+ let t = (e) => /* @__PURE__ */ G(Zt, { pair: e }, Gt(e));
1209
1209
  return e.fold ? u(e, 6, t) : e.items.map(t);
1210
1210
  }) })]
1211
1211
  }))("hidden @3xl/diff:table")] }) : d()
@@ -1213,7 +1213,7 @@ function Ut({ label: t, before: n, after: r, layout: i }) {
1213
1213
  }
1214
1214
  var Wt = (e) => `${e.old ?? ""}:${e.new ?? ""}`, Gt = (e) => `${e.left?.old ?? ""}:${e.right?.new ?? ""}`, Kt = (t) => e(t.op === "add" && "bento-status bento-status-on", t.op === "remove" && "bento-status bento-status-error");
1215
1215
  function qt(e) {
1216
- return e.parts ? e.parts.map((e, t) => e.op === "add" ? /* @__PURE__ */ U(en, { children: e.text }, t) : e.op === "remove" ? /* @__PURE__ */ U(tn, { children: e.text }, t) : /* @__PURE__ */ U("span", { children: e.text }, t)) : e.op === "same" ? e.text : /* @__PURE__ */ U($t, {
1216
+ return e.parts ? e.parts.map((e, t) => e.op === "add" ? /* @__PURE__ */ G(en, { children: e.text }, t) : e.op === "remove" ? /* @__PURE__ */ G(tn, { children: e.text }, t) : /* @__PURE__ */ G("span", { children: e.text }, t)) : e.op === "same" ? e.text : /* @__PURE__ */ G($t, {
1217
1217
  op: e.op,
1218
1218
  children: e.text
1219
1219
  });
@@ -1225,23 +1225,23 @@ var Jt = {
1225
1225
  }, Yt = "select-none px-2 text-right align-top text-muted-foreground tabular-nums";
1226
1226
  function Xt({ row: t }) {
1227
1227
  let n = Kt(t);
1228
- return /* @__PURE__ */ W("tr", {
1228
+ return /* @__PURE__ */ K("tr", {
1229
1229
  "data-op": t.op,
1230
1230
  children: [
1231
- /* @__PURE__ */ U("td", {
1231
+ /* @__PURE__ */ G("td", {
1232
1232
  className: e("w-px", Yt, n),
1233
1233
  children: t.old
1234
1234
  }),
1235
- /* @__PURE__ */ U("td", {
1235
+ /* @__PURE__ */ G("td", {
1236
1236
  className: e("w-px", Yt, n),
1237
1237
  children: t.new
1238
1238
  }),
1239
- /* @__PURE__ */ U("td", {
1239
+ /* @__PURE__ */ G("td", {
1240
1240
  "aria-hidden": "true",
1241
1241
  className: e("w-px select-none pr-1", n),
1242
1242
  children: Jt[t.op]
1243
1243
  }),
1244
- /* @__PURE__ */ U("td", {
1244
+ /* @__PURE__ */ G("td", {
1245
1245
  className: e("whitespace-pre pr-3", !t.parts && n),
1246
1246
  children: qt(t)
1247
1247
  })
@@ -1249,12 +1249,12 @@ function Xt({ row: t }) {
1249
1249
  });
1250
1250
  }
1251
1251
  function Zt({ pair: e }) {
1252
- return /* @__PURE__ */ W("tr", {
1252
+ return /* @__PURE__ */ K("tr", {
1253
1253
  "data-op": e.left?.op === "same" ? "same" : "change",
1254
- children: [/* @__PURE__ */ U(Qt, {
1254
+ children: [/* @__PURE__ */ G(Qt, {
1255
1255
  row: e.left,
1256
1256
  number: e.left?.old
1257
- }), /* @__PURE__ */ U(Qt, {
1257
+ }), /* @__PURE__ */ G(Qt, {
1258
1258
  row: e.right,
1259
1259
  number: e.right?.new,
1260
1260
  right: !0
@@ -1262,53 +1262,53 @@ function Zt({ pair: e }) {
1262
1262
  });
1263
1263
  }
1264
1264
  function Qt({ row: t, number: n, right: r = !1 }) {
1265
- if (t === null) return /* @__PURE__ */ U("td", {
1265
+ if (t === null) return /* @__PURE__ */ G("td", {
1266
1266
  colSpan: 3,
1267
1267
  "data-empty": "",
1268
1268
  className: e("[background-image:repeating-linear-gradient(-45deg,var(--color-border)_0_1px,transparent_0_6px)]", r && "border-l border-border/60")
1269
1269
  });
1270
1270
  let i = Kt(t);
1271
- return /* @__PURE__ */ W(H, { children: [
1272
- /* @__PURE__ */ U("td", {
1271
+ return /* @__PURE__ */ K(W, { children: [
1272
+ /* @__PURE__ */ G("td", {
1273
1273
  className: e(Yt, i, r && "border-l border-border/60"),
1274
1274
  children: n
1275
1275
  }),
1276
- /* @__PURE__ */ U("td", {
1276
+ /* @__PURE__ */ G("td", {
1277
1277
  "aria-hidden": "true",
1278
1278
  className: e("select-none align-top", i),
1279
1279
  children: Jt[t.op]
1280
1280
  }),
1281
- /* @__PURE__ */ U("td", {
1281
+ /* @__PURE__ */ G("td", {
1282
1282
  className: e("whitespace-pre-wrap pr-3 [overflow-wrap:anywhere]", !t.parts && i),
1283
1283
  children: qt(t)
1284
1284
  })
1285
1285
  ] });
1286
1286
  }
1287
1287
  function $t({ op: e, children: t }) {
1288
- let { t: n } = G();
1289
- return /* @__PURE__ */ W(e === "add" ? "ins" : "del", {
1288
+ let { t: n } = q();
1289
+ return /* @__PURE__ */ K(e === "add" ? "ins" : "del", {
1290
1290
  className: "no-underline",
1291
- children: [/* @__PURE__ */ W("span", {
1291
+ children: [/* @__PURE__ */ K("span", {
1292
1292
  className: "sr-only",
1293
1293
  children: [e === "add" ? n("bento.diff.addedStart", { defaultValue: "added:" }) : n("bento.diff.removedStart", { defaultValue: "removed:" }), " "]
1294
1294
  }), t]
1295
1295
  });
1296
1296
  }
1297
1297
  function en({ children: e }) {
1298
- let { t } = G();
1299
- return /* @__PURE__ */ W("ins", {
1298
+ let { t } = q();
1299
+ return /* @__PURE__ */ K("ins", {
1300
1300
  className: "bento-status bento-status-on rounded-sm px-0.5 underline decoration-2 underline-offset-2",
1301
- children: [/* @__PURE__ */ W("span", {
1301
+ children: [/* @__PURE__ */ K("span", {
1302
1302
  className: "sr-only",
1303
1303
  children: [t("bento.diff.addedStart", { defaultValue: "added:" }), " "]
1304
1304
  }), e]
1305
1305
  });
1306
1306
  }
1307
1307
  function tn({ children: e }) {
1308
- let { t } = G();
1309
- return /* @__PURE__ */ W("del", {
1308
+ let { t } = q();
1309
+ return /* @__PURE__ */ K("del", {
1310
1310
  className: "bento-status bento-status-error rounded-sm px-0.5 line-through decoration-2",
1311
- children: [/* @__PURE__ */ W("span", {
1311
+ children: [/* @__PURE__ */ K("span", {
1312
1312
  className: "sr-only",
1313
1313
  children: [t("bento.diff.removedStart", { defaultValue: "removed:" }), " "]
1314
1314
  }), e]
@@ -1334,64 +1334,64 @@ var nn = ["primary", "secondary"], rn = {
1334
1334
  setItem: () => {}
1335
1335
  };
1336
1336
  function on({ primary: t, secondary: n, primaryLabel: r, secondaryLabel: i, storageKey: a, defaultRatio: o = 50, className: s }) {
1337
- let { t: c } = G(), u = k(), d = He({
1337
+ let { t: c } = q(), u = k(), d = He({
1338
1338
  id: a ?? "bento-split-page",
1339
1339
  panelIds: nn,
1340
1340
  storage: a ? rn : an
1341
1341
  });
1342
- return u ? /* @__PURE__ */ W(M, {
1342
+ return u ? /* @__PURE__ */ K(M, {
1343
1343
  "data-slot": "bento-split-page",
1344
1344
  defaultValue: "primary",
1345
1345
  className: e("flex flex-col gap-3", s),
1346
1346
  children: [
1347
- /* @__PURE__ */ W(E, {
1347
+ /* @__PURE__ */ K(E, {
1348
1348
  "aria-label": c("bento.split.switch", { defaultValue: "Show" }),
1349
1349
  className: "self-start",
1350
- children: [/* @__PURE__ */ U(D, {
1350
+ children: [/* @__PURE__ */ G(D, {
1351
1351
  value: "primary",
1352
1352
  children: r
1353
- }), /* @__PURE__ */ U(D, {
1353
+ }), /* @__PURE__ */ G(D, {
1354
1354
  value: "secondary",
1355
1355
  children: i
1356
1356
  })]
1357
1357
  }),
1358
- /* @__PURE__ */ U(I, {
1358
+ /* @__PURE__ */ G(R, {
1359
1359
  value: "primary",
1360
1360
  forceMount: !0,
1361
1361
  className: "data-[state=inactive]:hidden",
1362
1362
  children: t
1363
1363
  }),
1364
- /* @__PURE__ */ U(I, {
1364
+ /* @__PURE__ */ G(R, {
1365
1365
  value: "secondary",
1366
1366
  forceMount: !0,
1367
1367
  className: "data-[state=inactive]:hidden",
1368
1368
  children: n
1369
1369
  })
1370
1370
  ]
1371
- }) : /* @__PURE__ */ U("div", {
1371
+ }) : /* @__PURE__ */ G("div", {
1372
1372
  "data-slot": "bento-split-page",
1373
1373
  className: e("h-[var(--bento-split-height,calc(100dvh-12rem))] min-h-80", s),
1374
- children: /* @__PURE__ */ W(ie, {
1374
+ children: /* @__PURE__ */ K(ne, {
1375
1375
  orientation: "horizontal",
1376
1376
  defaultLayout: d.defaultLayout,
1377
1377
  onLayoutChanged: d.onLayoutChanged,
1378
1378
  children: [
1379
- /* @__PURE__ */ U(l, {
1379
+ /* @__PURE__ */ G(l, {
1380
1380
  id: "primary",
1381
1381
  defaultSize: `${o}`,
1382
1382
  minSize: "25",
1383
- children: /* @__PURE__ */ U("section", {
1383
+ children: /* @__PURE__ */ G("section", {
1384
1384
  "aria-label": r,
1385
1385
  className: "h-full overflow-y-auto pr-3",
1386
1386
  children: t
1387
1387
  })
1388
1388
  }),
1389
- /* @__PURE__ */ U(b, { withHandle: !0 }),
1390
- /* @__PURE__ */ U(l, {
1389
+ /* @__PURE__ */ G(b, { withHandle: !0 }),
1390
+ /* @__PURE__ */ G(l, {
1391
1391
  id: "secondary",
1392
1392
  defaultSize: `${100 - o}`,
1393
1393
  minSize: "25",
1394
- children: /* @__PURE__ */ U("section", {
1394
+ children: /* @__PURE__ */ G("section", {
1395
1395
  "aria-label": i,
1396
1396
  className: "h-full overflow-y-auto pl-3",
1397
1397
  children: n
@@ -1451,70 +1451,70 @@ var fn = {
1451
1451
  error: "bento-status bento-status-error"
1452
1452
  };
1453
1453
  function pn({ entries: t, view: n, defaultView: r = "month", onViewChange: i, defaultDate: a, timeZone: o = Intl.DateTimeFormat().resolvedOptions().timeZone, weekStartsOn: s = 0, onEntryMove: c, onEntrySelect: l, onRangeChange: u, label: d, className: f }) {
1454
- let { t: p, i18n: m } = G(), h = m?.resolvedLanguage ?? m?.language, g = (e) => {
1454
+ let { t: p, i18n: m } = q(), h = m?.resolvedLanguage ?? m?.language, g = (e) => {
1455
1455
  let t = un(new Date(e).getTime(), o);
1456
1456
  return {
1457
1457
  y: t.y,
1458
1458
  m: t.m,
1459
1459
  d: t.d
1460
1460
  };
1461
- }, [_, v] = B(r), y = n ?? _, [b, x] = B(() => g(a ?? Date.now())), [S, C] = B(null), [w, T] = B(null), [E, D] = B(""), O = z(/* @__PURE__ */ new Map()), k = z(!1), A = ue(), [j] = B(() => Z(g(Date.now()))), M = (e) => $(e, -((ln(e) - s + 7) % 7)), N = M(y === "month" ? {
1461
+ }, [_, v] = H(r), y = n ?? _, [b, x] = H(() => g(a ?? Date.now())), [S, C] = H(null), [w, T] = H(null), [E, D] = H(""), O = V(/* @__PURE__ */ new Map()), k = V(!1), A = ce(), [j] = H(() => Z(g(Date.now()))), M = (e) => $(e, -((ln(e) - s + 7) % 7)), N = M(y === "month" ? {
1462
1462
  ...b,
1463
1463
  d: 1
1464
1464
  } : b), P = y === "month" ? Math.ceil((Q(cn({
1465
1465
  ...b,
1466
1466
  d: 1
1467
- }, 1)) - Q(N)) / 6048e5) : 1, ee = Array.from({ length: P }, (e, t) => Array.from({ length: 7 }, (e, n) => $(N, t * 7 + n))), F = $(N, P * 7), te = `${Z(N)}/${Z(F)}`;
1468
- R(() => {
1467
+ }, 1)) - Q(N)) / 6048e5) : 1, ee = Array.from({ length: P }, (e, t) => Array.from({ length: 7 }, (e, n) => $(N, t * 7 + n))), F = $(N, P * 7), I = `${Z(N)}/${Z(F)}`;
1468
+ B(() => {
1469
1469
  u?.({
1470
1470
  start: dn(N, 0, 0, 0, 0, o),
1471
1471
  end: dn(F, 0, 0, 0, 0, o)
1472
1472
  });
1473
- }, [te, o]), R(() => {
1473
+ }, [I, o]), B(() => {
1474
1474
  k.current && (k.current = !1, O.current.get(Z(b))?.focus());
1475
1475
  });
1476
- let ne = /* @__PURE__ */ new Map();
1476
+ let L = /* @__PURE__ */ new Map();
1477
1477
  for (let e of t) {
1478
1478
  let t = new Date(e.start).getTime();
1479
1479
  if (Number.isNaN(t)) continue;
1480
- let n = Z(g(t)), r = ne.get(n) ?? [];
1480
+ let n = Z(g(t)), r = L.get(n) ?? [];
1481
1481
  r.push({
1482
1482
  entry: e,
1483
1483
  time: t
1484
- }), ne.set(n, r);
1484
+ }), L.set(n, r);
1485
1485
  }
1486
- for (let e of ne.values()) e.sort((e, t) => e.time - t.time);
1487
- let I = (e) => new Intl.DateTimeFormat(h, {
1486
+ for (let e of L.values()) e.sort((e, t) => e.time - t.time);
1487
+ let R = (e) => new Intl.DateTimeFormat(h, {
1488
1488
  ...e,
1489
1489
  timeZone: "UTC"
1490
- }), re = (e) => I({ dateStyle: "full" }).format(Q(e)), ie = (e) => new Intl.DateTimeFormat(h, {
1490
+ }), te = (e) => R({ dateStyle: "full" }).format(Q(e)), ne = (e) => new Intl.DateTimeFormat(h, {
1491
1491
  timeStyle: "short",
1492
1492
  timeZone: o
1493
- }).format(e), ae = y === "month" ? I({
1493
+ }).format(e), re = y === "month" ? R({
1494
1494
  month: "long",
1495
1495
  year: "numeric"
1496
1496
  }).format(Q({
1497
1497
  ...b,
1498
1498
  d: 1
1499
- })) : `${I({ dateStyle: "medium" }).format(Q(N))} – ${I({ dateStyle: "medium" }).format(Q($(F, -1)))}`;
1500
- function oe(e) {
1499
+ })) : `${R({ dateStyle: "medium" }).format(Q(N))} – ${R({ dateStyle: "medium" }).format(Q($(F, -1)))}`;
1500
+ function ie(e) {
1501
1501
  k.current = !0, x(e);
1502
1502
  }
1503
- function se(e) {
1503
+ function ae(e) {
1504
1504
  n === void 0 && v(e), i?.(e);
1505
1505
  }
1506
- let ce = (e) => y === "month" ? cn(b, e) : $(b, 7 * e);
1507
- function L(e, n) {
1506
+ let oe = (e) => y === "month" ? cn(b, e) : $(b, 7 * e);
1507
+ function z(e, n) {
1508
1508
  let r = t.find((t) => t.id === e);
1509
1509
  if (!r || !c) return;
1510
1510
  let i = new Date(r.start).getTime(), a = un(i, o);
1511
1511
  Z(a) !== Z(n) && c(e, dn(n, a.h, a.mi, a.s, i % 1e3, o)), D(p("bento.calendar.moved", {
1512
1512
  defaultValue: "Moved {{label}} to {{day}}.",
1513
1513
  label: r.label,
1514
- day: re(n)
1514
+ day: te(n)
1515
1515
  }));
1516
1516
  }
1517
- function le(e, n) {
1517
+ function se(e, n) {
1518
1518
  let r = {
1519
1519
  ArrowLeft: () => $(n, -1),
1520
1520
  ArrowRight: () => $(n, 1),
@@ -1522,14 +1522,14 @@ function pn({ entries: t, view: n, defaultView: r = "month", onViewChange: i, de
1522
1522
  ArrowDown: () => $(n, 7),
1523
1523
  Home: () => M(n),
1524
1524
  End: () => $(M(n), 6),
1525
- PageUp: () => ce(-1),
1526
- PageDown: () => ce(1)
1525
+ PageUp: () => oe(-1),
1526
+ PageDown: () => oe(1)
1527
1527
  }[e.key];
1528
1528
  if (r) {
1529
- e.preventDefault(), oe(r());
1529
+ e.preventDefault(), ie(r());
1530
1530
  return;
1531
1531
  }
1532
- if (S && (e.key === "Enter" || e.key === " ")) e.preventDefault(), L(S, n), C(null);
1532
+ if (S && (e.key === "Enter" || e.key === " ")) e.preventDefault(), z(S, n), C(null);
1533
1533
  else if (S && e.key === "Escape") {
1534
1534
  e.preventDefault();
1535
1535
  let n = t.find((e) => e.id === S);
@@ -1539,7 +1539,7 @@ function pn({ entries: t, view: n, defaultView: r = "month", onViewChange: i, de
1539
1539
  }));
1540
1540
  } else e.key === "Enter" && (e.preventDefault(), e.currentTarget.querySelector("button")?.focus());
1541
1541
  }
1542
- function de(e, t) {
1542
+ function le(e, t) {
1543
1543
  let n = e.currentTarget.closest("td"), r = n ? [...n.querySelectorAll("button")] : [], i = r.indexOf(e.currentTarget), a = c && (e.key === " " || e.key === "Enter" && !l);
1544
1544
  if (e.key === "ArrowDown" || e.key === "ArrowUp") r[i + (e.key === "ArrowDown" ? 1 : -1)]?.focus();
1545
1545
  else if (e.key === "Escape") n?.focus();
@@ -1551,129 +1551,129 @@ function pn({ entries: t, view: n, defaultView: r = "month", onViewChange: i, de
1551
1551
  else return;
1552
1552
  e.preventDefault(), e.stopPropagation();
1553
1553
  }
1554
- function V(e, t) {
1554
+ function U(e, t) {
1555
1555
  let n = w ?? e.dataTransfer.getData("text/plain");
1556
- T(null), n && (e.preventDefault(), L(n, t));
1556
+ T(null), n && (e.preventDefault(), z(n, t));
1557
1557
  }
1558
- let H = c ? A : void 0;
1559
- return /* @__PURE__ */ W("div", {
1558
+ let W = c ? A : void 0;
1559
+ return /* @__PURE__ */ K("div", {
1560
1560
  "data-slot": "bento-calendar",
1561
1561
  className: e("flex flex-col gap-3", f),
1562
1562
  children: [
1563
- /* @__PURE__ */ W("div", {
1563
+ /* @__PURE__ */ K("div", {
1564
1564
  className: "flex flex-wrap items-center justify-between gap-2",
1565
- children: [/* @__PURE__ */ W("div", {
1565
+ children: [/* @__PURE__ */ K("div", {
1566
1566
  className: "flex items-center gap-1",
1567
1567
  children: [
1568
- /* @__PURE__ */ U(mn, {
1568
+ /* @__PURE__ */ G(mn, {
1569
1569
  label: p("bento.calendar.previous", { defaultValue: "Previous" }),
1570
- onClick: () => x(ce(-1)),
1571
- children: /* @__PURE__ */ U(Se, {
1570
+ onClick: () => x(oe(-1)),
1571
+ children: /* @__PURE__ */ G(be, {
1572
1572
  size: 16,
1573
1573
  "aria-hidden": "true"
1574
1574
  })
1575
1575
  }),
1576
- /* @__PURE__ */ U(mn, {
1576
+ /* @__PURE__ */ G(mn, {
1577
1577
  label: p("bento.calendar.next", { defaultValue: "Next" }),
1578
- onClick: () => x(ce(1)),
1579
- children: /* @__PURE__ */ U(q, {
1578
+ onClick: () => x(oe(1)),
1579
+ children: /* @__PURE__ */ G(xe, {
1580
1580
  size: 16,
1581
1581
  "aria-hidden": "true"
1582
1582
  })
1583
1583
  }),
1584
- /* @__PURE__ */ U("button", {
1584
+ /* @__PURE__ */ G("button", {
1585
1585
  type: "button",
1586
1586
  onClick: () => x(g(Date.now())),
1587
1587
  className: "rounded-md border border-border px-2 py-1 text-sm hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring",
1588
1588
  children: p("bento.calendar.today", { defaultValue: "Today" })
1589
1589
  }),
1590
- /* @__PURE__ */ U("h2", {
1590
+ /* @__PURE__ */ G("h2", {
1591
1591
  className: "m-0 ml-2 text-base font-semibold",
1592
1592
  "aria-live": "polite",
1593
- children: ae
1593
+ children: re
1594
1594
  })
1595
1595
  ]
1596
- }), /* @__PURE__ */ U("div", {
1596
+ }), /* @__PURE__ */ G("div", {
1597
1597
  role: "group",
1598
1598
  "aria-label": p("bento.calendar.views", { defaultValue: "View" }),
1599
1599
  className: "flex rounded-md border border-border p-0.5",
1600
- children: ["month", "week"].map((t) => /* @__PURE__ */ U("button", {
1600
+ children: ["month", "week"].map((t) => /* @__PURE__ */ G("button", {
1601
1601
  type: "button",
1602
1602
  "aria-pressed": y === t ? "true" : "false",
1603
- onClick: () => se(t),
1603
+ onClick: () => ae(t),
1604
1604
  className: e("rounded px-2 py-0.5 text-sm focus-visible:outline-2 focus-visible:outline-ring", y === t ? "bg-primary text-primary-foreground" : "hover:bg-muted/50"),
1605
1605
  children: t === "month" ? p("bento.calendar.month", { defaultValue: "Month" }) : p("bento.calendar.week", { defaultValue: "Week" })
1606
1606
  }, t))
1607
1607
  })]
1608
1608
  }),
1609
- /* @__PURE__ */ U("span", {
1609
+ /* @__PURE__ */ G("span", {
1610
1610
  role: "status",
1611
1611
  "aria-live": "polite",
1612
1612
  className: "sr-only",
1613
1613
  children: E
1614
1614
  }),
1615
- H && /* @__PURE__ */ U("span", {
1616
- id: H,
1615
+ W && /* @__PURE__ */ G("span", {
1616
+ id: W,
1617
1617
  className: "sr-only",
1618
1618
  children: p("bento.calendar.moveHint", { defaultValue: "Space picks this up to move it: the arrow keys choose a day, Enter drops it and Escape cancels." })
1619
1619
  }),
1620
- /* @__PURE__ */ W("table", {
1620
+ /* @__PURE__ */ K("table", {
1621
1621
  role: "grid",
1622
- "aria-label": d ?? ae,
1622
+ "aria-label": d ?? re,
1623
1623
  className: "w-full table-fixed border-collapse text-sm",
1624
- children: [/* @__PURE__ */ U("thead", { children: /* @__PURE__ */ U("tr", { children: ee[0].map((e) => /* @__PURE__ */ U("th", {
1624
+ children: [/* @__PURE__ */ G("thead", { children: /* @__PURE__ */ G("tr", { children: ee[0].map((e) => /* @__PURE__ */ G("th", {
1625
1625
  scope: "col",
1626
- abbr: I({ weekday: "long" }).format(Q(e)),
1626
+ abbr: R({ weekday: "long" }).format(Q(e)),
1627
1627
  className: "pb-1 text-xs font-medium text-muted-foreground",
1628
- children: I({ weekday: "short" }).format(Q(e))
1629
- }, Z(e))) }) }), /* @__PURE__ */ U("tbody", { children: ee.map((t) => /* @__PURE__ */ U("tr", { children: t.map((t) => {
1630
- let n = Z(t), r = ne.get(n) ?? [], i = n === Z(b), a = y === "month" && t.m !== b.m, o = r.length;
1631
- return /* @__PURE__ */ W("td", {
1628
+ children: R({ weekday: "short" }).format(Q(e))
1629
+ }, Z(e))) }) }), /* @__PURE__ */ G("tbody", { children: ee.map((t) => /* @__PURE__ */ G("tr", { children: t.map((t) => {
1630
+ let n = Z(t), r = L.get(n) ?? [], i = n === Z(b), a = y === "month" && t.m !== b.m, o = r.length;
1631
+ return /* @__PURE__ */ K("td", {
1632
1632
  ref: (e) => {
1633
1633
  e ? O.current.set(n, e) : O.current.delete(n);
1634
1634
  },
1635
1635
  role: "gridcell",
1636
1636
  tabIndex: i ? 0 : -1,
1637
- "aria-label": o > 0 ? `${re(t)}, ${p("bento.calendar.entries", {
1637
+ "aria-label": o > 0 ? `${te(t)}, ${p("bento.calendar.entries", {
1638
1638
  defaultValue: "{{count}} scheduled",
1639
1639
  count: o
1640
- })}` : re(t),
1640
+ })}` : te(t),
1641
1641
  "aria-current": n === j ? "date" : void 0,
1642
1642
  "data-day": n,
1643
- onKeyDown: (e) => le(e, t),
1643
+ onKeyDown: (e) => se(e, t),
1644
1644
  onFocus: () => {
1645
1645
  i || x(t);
1646
1646
  },
1647
1647
  onDragOver: (e) => {
1648
1648
  w && e.preventDefault();
1649
1649
  },
1650
- onDrop: (e) => V(e, t),
1650
+ onDrop: (e) => U(e, t),
1651
1651
  className: e("border border-border/60 p-1 align-top outline-none", y === "month" ? "h-24" : "h-48", "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", S && i && "bg-primary/10"),
1652
- children: [/* @__PURE__ */ U("span", {
1652
+ children: [/* @__PURE__ */ G("span", {
1653
1653
  "aria-hidden": "true",
1654
1654
  className: e("mb-1 inline-grid size-6 place-items-center rounded-full text-xs", n === j && "bg-primary font-semibold text-primary-foreground", n !== j && a && "text-muted-foreground"),
1655
1655
  children: t.d
1656
- }), /* @__PURE__ */ U("ul", {
1656
+ }), /* @__PURE__ */ G("ul", {
1657
1657
  className: "m-0 flex list-none flex-col gap-0.5 p-0",
1658
- children: r.map(({ entry: t, time: n }) => /* @__PURE__ */ U("li", { children: /* @__PURE__ */ W("button", {
1658
+ children: r.map(({ entry: t, time: n }) => /* @__PURE__ */ G("li", { children: /* @__PURE__ */ K("button", {
1659
1659
  type: "button",
1660
1660
  tabIndex: -1,
1661
1661
  draggable: c ? !0 : void 0,
1662
- "aria-describedby": H,
1662
+ "aria-describedby": W,
1663
1663
  "aria-pressed": c ? S === t.id ? "true" : "false" : void 0,
1664
1664
  "data-entry": t.id,
1665
- onKeyDown: (e) => de(e, t),
1665
+ onKeyDown: (e) => le(e, t),
1666
1666
  onClick: () => l?.(t.id),
1667
1667
  onDragStart: (e) => {
1668
1668
  e.dataTransfer.setData("text/plain", t.id), e.dataTransfer.effectAllowed = "move", T(t.id);
1669
1669
  },
1670
1670
  onDragEnd: () => T(null),
1671
1671
  className: e("flex w-full min-w-0 items-baseline gap-1 rounded-md px-1 py-0.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring", t.tone ? fn[t.tone] : "bg-muted", S === t.id && "outline-2 outline-dashed outline-primary"),
1672
- children: [/* @__PURE__ */ U("time", {
1672
+ children: [/* @__PURE__ */ G("time", {
1673
1673
  dateTime: new Date(n).toISOString(),
1674
1674
  className: "flex-none tabular-nums",
1675
- children: ie(n)
1676
- }), /* @__PURE__ */ U("span", {
1675
+ children: ne(n)
1676
+ }), /* @__PURE__ */ G("span", {
1677
1677
  className: "truncate",
1678
1678
  children: t.label
1679
1679
  })]
@@ -1686,7 +1686,7 @@ function pn({ entries: t, view: n, defaultView: r = "month", onViewChange: i, de
1686
1686
  });
1687
1687
  }
1688
1688
  function mn({ label: e, onClick: t, children: n }) {
1689
- return /* @__PURE__ */ U("button", {
1689
+ return /* @__PURE__ */ G("button", {
1690
1690
  type: "button",
1691
1691
  "aria-label": e,
1692
1692
  onClick: t,
@@ -1736,44 +1736,44 @@ function vn(e) {
1736
1736
  //#endregion
1737
1737
  //#region src/bento/bento-entity-tile.tsx
1738
1738
  function yn({ to: e, emphasis: t, featured: n, defaultIcon: r, icon: i, tone: a = "indigo", title: o, description: s, meta: c, enabled: l, hasStatus: u = !1, viewTransitionName: d }) {
1739
- let { t: f } = G(), p = Y(a), m = t ?? (n ? "LARGE" : "MEDIUM"), h = m === "LARGE", g = m === "SMALL", _ = hn[m], v = l === 1, y = h ? "p-6 md:p-7" : g ? "p-4" : "p-5", b = h ? "h-14 w-14" : g ? "h-8 w-8" : "h-9 w-9", x = h ? 28 : g ? 16 : 18, S = h ? "text-xl md:text-2xl" : g ? "text-sm" : "text-base md:text-lg";
1740
- return /* @__PURE__ */ W(Ue, {
1739
+ let { t: f } = q(), p = Y(a), m = t ?? (n ? "LARGE" : "MEDIUM"), h = m === "LARGE", g = m === "SMALL", _ = hn[m], v = l === 1, y = h ? "p-6 md:p-7" : g ? "p-4" : "p-5", b = h ? "h-14 w-14" : g ? "h-8 w-8" : "h-9 w-9", x = h ? 28 : g ? 16 : 18, S = h ? "text-xl md:text-2xl" : g ? "text-sm" : "text-base md:text-lg";
1740
+ return /* @__PURE__ */ K(Ue, {
1741
1741
  to: e,
1742
1742
  className: `bento-tile bento-tile-clickable bento-glass group relative flex flex-col ${h ? "gap-5" : "gap-4"} overflow-hidden ${y} ${_}`,
1743
1743
  style: d ? { viewTransitionName: d } : void 0,
1744
1744
  children: [
1745
- h && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U("div", {
1745
+ h && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
1746
1746
  "aria-hidden": !0,
1747
1747
  className: `pointer-events-none absolute -bottom-10 -right-10 h-64 w-64 rounded-full ${p} opacity-40 blur-2xl dark:opacity-50`
1748
- }), /* @__PURE__ */ U("div", {
1748
+ }), /* @__PURE__ */ G("div", {
1749
1749
  "aria-hidden": !0,
1750
1750
  className: `pointer-events-none absolute right-12 top-1/3 h-32 w-32 rounded-full ${p} bento-chip-tr opacity-20 blur-2xl dark:opacity-30`
1751
1751
  })] }),
1752
- /* @__PURE__ */ W("div", {
1752
+ /* @__PURE__ */ K("div", {
1753
1753
  className: "relative z-1 flex items-center justify-between",
1754
- children: [/* @__PURE__ */ U("span", {
1754
+ children: [/* @__PURE__ */ G("span", {
1755
1755
  className: `grid place-items-center rounded-2xl ${p} text-white shadow-md ${b}`,
1756
- children: i ? /* @__PURE__ */ U(Ve, {
1756
+ children: i ? /* @__PURE__ */ G(Ve, {
1757
1757
  icon: i,
1758
1758
  className: h ? "size-7 text-white" : "size-4.5 text-white"
1759
- }) : /* @__PURE__ */ U(r, { size: x })
1760
- }), u && /* @__PURE__ */ W("span", {
1759
+ }) : /* @__PURE__ */ G(r, { size: x })
1760
+ }), u && /* @__PURE__ */ K("span", {
1761
1761
  className: `flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[10px] uppercase tracking-wider ${v ? "bento-status bento-status-on" : "border-border bg-muted text-muted-foreground"}`,
1762
- children: [/* @__PURE__ */ U("span", { className: `h-1.5 w-1.5 rounded-full ${v ? "bento-status-dot bento-pulse" : "bg-muted-foreground/60"}` }), v ? f("common.active", { defaultValue: "Active" }) : f("common.idle", { defaultValue: "Idle" })]
1762
+ children: [/* @__PURE__ */ G("span", { className: `h-1.5 w-1.5 rounded-full ${v ? "bento-status-dot bento-pulse" : "bg-muted-foreground/60"}` }), v ? f("common.active", { defaultValue: "Active" }) : f("common.idle", { defaultValue: "Idle" })]
1763
1763
  })]
1764
1764
  }),
1765
- /* @__PURE__ */ W("div", {
1765
+ /* @__PURE__ */ K("div", {
1766
1766
  className: "relative z-1",
1767
1767
  children: [
1768
- /* @__PURE__ */ U("div", {
1768
+ /* @__PURE__ */ G("div", {
1769
1769
  className: `font-semibold tracking-tight ${S}`,
1770
1770
  children: o
1771
1771
  }),
1772
- !g && c && /* @__PURE__ */ U("div", {
1772
+ !g && c && /* @__PURE__ */ G("div", {
1773
1773
  className: "mt-1 flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground",
1774
1774
  children: c
1775
1775
  }),
1776
- !g && s && /* @__PURE__ */ U("p", {
1776
+ !g && s && /* @__PURE__ */ G("p", {
1777
1777
  className: "mt-2 text-sm text-muted-foreground",
1778
1778
  children: s
1779
1779
  })
@@ -1796,14 +1796,14 @@ function Cn(e, t, n) {
1796
1796
  };
1797
1797
  }
1798
1798
  function wn({ value: e, onChange: n, facets: r, queryLabel: i, queryDelay: a = 300, views: o }) {
1799
- let { t: s } = G(), [c, l] = B({
1799
+ let { t: s } = q(), [c, l] = H({
1800
1800
  source: e.query,
1801
1801
  text: e.query
1802
- }), [u, d] = B(null);
1802
+ }), [u, d] = H(null);
1803
1803
  c.source !== e.query && l({
1804
1804
  source: e.query,
1805
1805
  text: e.query === u ? c.text : e.query
1806
- }), R(() => {
1806
+ }), B(() => {
1807
1807
  if (c.text === e.query) return;
1808
1808
  let t = setTimeout(() => {
1809
1809
  d(c.text), n({
@@ -1836,21 +1836,21 @@ function wn({ value: e, onChange: n, facets: r, queryLabel: i, queryDelay: a = 3
1836
1836
  });
1837
1837
  }
1838
1838
  let p = f.length > 0 || e.query !== "", m = i ?? s("bento.filters.search", { defaultValue: "Search" });
1839
- return /* @__PURE__ */ W("div", {
1839
+ return /* @__PURE__ */ K("div", {
1840
1840
  role: "search",
1841
1841
  "aria-label": s("bento.filters.label", { defaultValue: "Filters" }),
1842
1842
  "data-slot": "bento-filter-bar",
1843
1843
  className: "flex flex-col gap-2",
1844
- children: [/* @__PURE__ */ W("div", {
1844
+ children: [/* @__PURE__ */ K("div", {
1845
1845
  className: "flex flex-wrap items-center gap-2",
1846
1846
  children: [
1847
- /* @__PURE__ */ W("div", {
1847
+ /* @__PURE__ */ K("div", {
1848
1848
  className: "relative min-w-48 flex-1",
1849
- children: [/* @__PURE__ */ U(Pe, {
1849
+ children: [/* @__PURE__ */ G(Pe, {
1850
1850
  size: 16,
1851
1851
  "aria-hidden": "true",
1852
1852
  className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
1853
- }), /* @__PURE__ */ U(t, {
1853
+ }), /* @__PURE__ */ G(t, {
1854
1854
  type: "search",
1855
1855
  value: c.text,
1856
1856
  placeholder: m,
@@ -1862,21 +1862,21 @@ function wn({ value: e, onChange: n, facets: r, queryLabel: i, queryDelay: a = 3
1862
1862
  className: "pl-9"
1863
1863
  })]
1864
1864
  }),
1865
- r.map((t) => t.kind === "choice" ? /* @__PURE__ */ U(En, {
1865
+ r.map((t) => t.kind === "choice" ? /* @__PURE__ */ G(En, {
1866
1866
  facet: t,
1867
1867
  value: e,
1868
1868
  onChange: n
1869
- }, t.id) : /* @__PURE__ */ U(Dn, {
1869
+ }, t.id) : /* @__PURE__ */ G(Dn, {
1870
1870
  facet: t,
1871
1871
  value: e,
1872
1872
  onChange: n
1873
1873
  }, t.id)),
1874
1874
  o
1875
1875
  ]
1876
- }), p && /* @__PURE__ */ W("ul", {
1876
+ }), p && /* @__PURE__ */ K("ul", {
1877
1877
  className: "m-0 flex list-none flex-wrap items-center gap-1.5 p-0",
1878
1878
  "aria-label": s("bento.filters.active", { defaultValue: "Active filters" }),
1879
- children: [f.map((e) => /* @__PURE__ */ U("li", { children: /* @__PURE__ */ W("button", {
1879
+ children: [f.map((e) => /* @__PURE__ */ G("li", { children: /* @__PURE__ */ K("button", {
1880
1880
  type: "button",
1881
1881
  "aria-label": s("bento.filters.remove", {
1882
1882
  defaultValue: "Remove filter {{filter}}",
@@ -1884,11 +1884,11 @@ function wn({ value: e, onChange: n, facets: r, queryLabel: i, queryDelay: a = 3
1884
1884
  }),
1885
1885
  onClick: () => n(e.remove()),
1886
1886
  className: "bento-clear inline-flex items-center gap-1 rounded-full border border-border/60 bg-card/60 py-0.5 pl-2.5 pr-1.5 text-xs",
1887
- children: [e.text, /* @__PURE__ */ U(Be, {
1887
+ children: [e.text, /* @__PURE__ */ G(Be, {
1888
1888
  size: 12,
1889
1889
  "aria-hidden": "true"
1890
1890
  })]
1891
- }) }, e.key)), /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(C, {
1891
+ }) }, e.key)), /* @__PURE__ */ G("li", { children: /* @__PURE__ */ G(C, {
1892
1892
  variant: "ghost",
1893
1893
  size: "sm",
1894
1894
  className: "h-6 px-2 text-xs",
@@ -1904,18 +1904,18 @@ function wn({ value: e, onChange: n, facets: r, queryLabel: i, queryDelay: a = 3
1904
1904
  });
1905
1905
  }
1906
1906
  function Tn({ label: e, count: t, ...n }) {
1907
- return /* @__PURE__ */ W(C, {
1907
+ return /* @__PURE__ */ K(C, {
1908
1908
  variant: "outline",
1909
1909
  size: "sm",
1910
1910
  className: "gap-1.5",
1911
1911
  ...n,
1912
1912
  children: [
1913
1913
  e,
1914
- t > 0 && /* @__PURE__ */ U("span", {
1914
+ t > 0 && /* @__PURE__ */ G("span", {
1915
1915
  className: "rounded-full bg-primary px-1.5 text-[0.6875rem] leading-4 text-primary-foreground",
1916
1916
  children: t
1917
1917
  }),
1918
- /* @__PURE__ */ U(xe, {
1918
+ /* @__PURE__ */ G(ye, {
1919
1919
  size: 14,
1920
1920
  "aria-hidden": "true"
1921
1921
  })
@@ -1924,24 +1924,24 @@ function Tn({ label: e, count: t, ...n }) {
1924
1924
  }
1925
1925
  function En({ facet: e, value: t, onChange: n }) {
1926
1926
  let r = Sn(t.facets[e.id]);
1927
- return /* @__PURE__ */ W(_, { children: [/* @__PURE__ */ U(F, {
1927
+ return /* @__PURE__ */ K(_, { children: [/* @__PURE__ */ G(F, {
1928
1928
  asChild: !0,
1929
- children: /* @__PURE__ */ U(Tn, {
1929
+ children: /* @__PURE__ */ G(Tn, {
1930
1930
  label: e.label,
1931
1931
  count: r.length
1932
1932
  })
1933
- }), /* @__PURE__ */ U(d, {
1933
+ }), /* @__PURE__ */ G(d, {
1934
1934
  align: "start",
1935
1935
  className: "bento-dropdown min-w-44 p-1.5",
1936
- children: e.multiple ? e.options.map((i) => /* @__PURE__ */ U(v, {
1936
+ children: e.multiple ? e.options.map((i) => /* @__PURE__ */ G(v, {
1937
1937
  checked: r.includes(i.value),
1938
1938
  onCheckedChange: (a) => n(Cn(t, e.id, a === !0 ? [...r, i.value] : r.filter((e) => e !== i.value))),
1939
1939
  onSelect: (e) => e.preventDefault(),
1940
1940
  children: i.label
1941
- }, i.value)) : /* @__PURE__ */ U(c, {
1941
+ }, i.value)) : /* @__PURE__ */ G(c, {
1942
1942
  value: r[0] ?? "",
1943
1943
  onValueChange: (i) => n(Cn(t, e.id, i === r[0] ? [] : [i])),
1944
- children: e.options.map((e) => /* @__PURE__ */ U(S, {
1944
+ children: e.options.map((e) => /* @__PURE__ */ G(S, {
1945
1945
  value: e.value,
1946
1946
  children: e.label
1947
1947
  }, e.value))
@@ -1949,22 +1949,22 @@ function En({ facet: e, value: t, onChange: n }) {
1949
1949
  })] });
1950
1950
  }
1951
1951
  function Dn({ facet: e, value: n, onChange: r }) {
1952
- let { t: i } = G(), a = n.facets[e.id], o = xn(a) ? a : {}, [s, c] = B(!1), [l, d] = B(o.from ?? ""), [f, p] = B(o.to ?? ""), m = ue(), h = ue();
1953
- return /* @__PURE__ */ W(x, {
1952
+ let { t: i } = q(), a = n.facets[e.id], o = xn(a) ? a : {}, [s, c] = H(!1), [l, d] = H(o.from ?? ""), [f, p] = H(o.to ?? ""), m = ce(), h = ce();
1953
+ return /* @__PURE__ */ K(x, {
1954
1954
  open: s,
1955
1955
  onOpenChange: (e) => {
1956
1956
  e && (d(o.from ?? ""), p(o.to ?? "")), c(e);
1957
1957
  },
1958
- children: [/* @__PURE__ */ U(j, {
1958
+ children: [/* @__PURE__ */ G(j, {
1959
1959
  asChild: !0,
1960
- children: /* @__PURE__ */ U(Tn, {
1960
+ children: /* @__PURE__ */ G(Tn, {
1961
1961
  label: e.label,
1962
1962
  count: o.from || o.to ? 1 : 0
1963
1963
  })
1964
- }), /* @__PURE__ */ U(u, {
1964
+ }), /* @__PURE__ */ G(u, {
1965
1965
  align: "start",
1966
1966
  className: "bento-dropdown w-64 p-3",
1967
- children: /* @__PURE__ */ W("form", {
1967
+ children: /* @__PURE__ */ K("form", {
1968
1968
  className: "flex flex-col gap-2",
1969
1969
  onSubmit: (t) => {
1970
1970
  t.preventDefault(), r(Cn(n, e.id, {
@@ -1973,31 +1973,31 @@ function Dn({ facet: e, value: n, onChange: r }) {
1973
1973
  })), c(!1);
1974
1974
  },
1975
1975
  children: [
1976
- /* @__PURE__ */ U("label", {
1976
+ /* @__PURE__ */ G("label", {
1977
1977
  htmlFor: m,
1978
1978
  className: "text-xs text-muted-foreground",
1979
1979
  children: i("bento.filters.from", { defaultValue: "From" })
1980
1980
  }),
1981
- /* @__PURE__ */ U(t, {
1981
+ /* @__PURE__ */ G(t, {
1982
1982
  id: m,
1983
1983
  type: "date",
1984
1984
  value: l,
1985
1985
  max: f || void 0,
1986
1986
  onChange: (e) => d(e.target.value)
1987
1987
  }),
1988
- /* @__PURE__ */ U("label", {
1988
+ /* @__PURE__ */ G("label", {
1989
1989
  htmlFor: h,
1990
1990
  className: "text-xs text-muted-foreground",
1991
1991
  children: i("bento.filters.to", { defaultValue: "To" })
1992
1992
  }),
1993
- /* @__PURE__ */ U(t, {
1993
+ /* @__PURE__ */ G(t, {
1994
1994
  id: h,
1995
1995
  type: "date",
1996
1996
  value: f,
1997
1997
  min: l || void 0,
1998
1998
  onChange: (e) => p(e.target.value)
1999
1999
  }),
2000
- /* @__PURE__ */ U(C, {
2000
+ /* @__PURE__ */ G(C, {
2001
2001
  type: "submit",
2002
2002
  size: "sm",
2003
2003
  className: "mt-1",
@@ -2012,20 +2012,20 @@ function Dn({ facet: e, value: n, onChange: r }) {
2012
2012
  //#region src/bento/bento-list-page.tsx
2013
2013
  var On = _t, kn = "bento-grid grid auto-rows-[minmax(140px,auto)] grid-cols-2 gap-4 md:grid-cols-4 md:gap-5 lg:grid-cols-6";
2014
2014
  function An({ items: e, error: t, tryAgainUrl: n, listId: r, eyebrow: i, backTo: a, backLabel: o, trail: s, heroIcon: c, title: l, subtitle: u, tone: d = "indigo", headerAction: f, newRoute: p, newLabel: m, newSubtitle: h, hideNew: g = !1, itemKey: _, columns: v, rowActions: y, onRowOpen: b, getRowLabel: x, columnLayout: S, onColumnLayoutChange: w, renderTile: T, emptyTitle: E, emptyDescription: D, layout: O }) {
2015
- let { t: k } = G(), A = Y(d), [j, M] = B(!1), N = de(() => _n(e ?? [], _, O?.data?.entries), [
2015
+ let { t: k } = q(), A = Y(d), [j, M] = H(!1), N = le(() => _n(e ?? [], _, O?.data?.entries), [
2016
2016
  e,
2017
2017
  _,
2018
2018
  O?.data?.entries
2019
- ]), P = c ? /* @__PURE__ */ U("span", {
2019
+ ]), P = c ? /* @__PURE__ */ G("span", {
2020
2020
  className: `grid h-12 w-12 place-items-center rounded-2xl ${A} text-white shadow-md`,
2021
- children: /* @__PURE__ */ U(c, { size: 24 })
2021
+ children: /* @__PURE__ */ G(c, { size: 24 })
2022
2022
  }) : void 0;
2023
- if (!T) return /* @__PURE__ */ W(se, {
2023
+ if (!T) return /* @__PURE__ */ K(ae, {
2024
2024
  checkIsNotUndefined: e,
2025
2025
  error: t ?? null,
2026
2026
  tryAgainUrl: n,
2027
2027
  children: [
2028
- /* @__PURE__ */ U(Ct, {
2028
+ /* @__PURE__ */ G(Ct, {
2029
2029
  eyebrow: i,
2030
2030
  backTo: a,
2031
2031
  backLabel: o,
@@ -2033,24 +2033,24 @@ function An({ items: e, error: t, tryAgainUrl: n, listId: r, eyebrow: i, backTo:
2033
2033
  leading: P,
2034
2034
  title: l,
2035
2035
  subtitle: u,
2036
- trailing: g ? void 0 : /* @__PURE__ */ U(C, {
2036
+ trailing: g ? void 0 : /* @__PURE__ */ G(C, {
2037
2037
  asChild: !0,
2038
2038
  className: "gap-2",
2039
- children: /* @__PURE__ */ W(Ue, {
2039
+ children: /* @__PURE__ */ K(Ue, {
2040
2040
  to: p,
2041
- children: [/* @__PURE__ */ U(Me, { size: 16 }), m]
2041
+ children: [/* @__PURE__ */ G(Me, { size: 16 }), m]
2042
2042
  })
2043
2043
  })
2044
2044
  }),
2045
- f && /* @__PURE__ */ U("div", {
2045
+ f && /* @__PURE__ */ G("div", {
2046
2046
  className: "mb-4 flex flex-wrap items-center gap-2",
2047
2047
  children: f
2048
2048
  }),
2049
- e?.length === 0 ? /* @__PURE__ */ U(vt, {
2049
+ e?.length === 0 ? /* @__PURE__ */ G(vt, {
2050
2050
  icon: Fe,
2051
2051
  title: E,
2052
2052
  description: D
2053
- }) : /* @__PURE__ */ U(On, {
2053
+ }) : /* @__PURE__ */ G(On, {
2054
2054
  rows: e ?? [],
2055
2055
  getRowId: _,
2056
2056
  columns: v ?? [],
@@ -2064,12 +2064,12 @@ function An({ items: e, error: t, tryAgainUrl: n, listId: r, eyebrow: i, backTo:
2064
2064
  ]
2065
2065
  });
2066
2066
  let ee = !!r && !!O && (e?.length ?? 0) > 0;
2067
- return /* @__PURE__ */ W(se, {
2067
+ return /* @__PURE__ */ K(ae, {
2068
2068
  checkIsNotUndefined: e,
2069
2069
  error: t ?? null,
2070
2070
  tryAgainUrl: n,
2071
2071
  children: [
2072
- /* @__PURE__ */ U(Ct, {
2072
+ /* @__PURE__ */ G(Ct, {
2073
2073
  eyebrow: i,
2074
2074
  backTo: a,
2075
2075
  backLabel: o,
@@ -2078,17 +2078,17 @@ function An({ items: e, error: t, tryAgainUrl: n, listId: r, eyebrow: i, backTo:
2078
2078
  title: l,
2079
2079
  subtitle: u
2080
2080
  }),
2081
- (f || ee && !j) && /* @__PURE__ */ W("div", {
2081
+ (f || ee && !j) && /* @__PURE__ */ K("div", {
2082
2082
  className: "mb-4 flex flex-wrap items-center gap-2",
2083
- children: [f, ee && !j && /* @__PURE__ */ W(C, {
2083
+ children: [f, ee && !j && /* @__PURE__ */ K(C, {
2084
2084
  variant: "outline",
2085
2085
  size: "sm",
2086
2086
  onClick: () => M(!0),
2087
2087
  className: "ml-auto gap-2",
2088
- children: [/* @__PURE__ */ U(fe, { size: 16 }), k("bento.layout.customize", { defaultValue: "Customize layout" })]
2088
+ children: [/* @__PURE__ */ G(ue, { size: 16 }), k("bento.layout.customize", { defaultValue: "Customize layout" })]
2089
2089
  })]
2090
2090
  }),
2091
- j && r && O ? /* @__PURE__ */ U(Nn, {
2091
+ j && r && O ? /* @__PURE__ */ G(Nn, {
2092
2092
  layout: O,
2093
2093
  resolved: N,
2094
2094
  canEditGlobal: O?.data?.canEditGlobal ?? !1,
@@ -2100,7 +2100,7 @@ function An({ items: e, error: t, tryAgainUrl: n, listId: r, eyebrow: i, backTo:
2100
2100
  newLabel: m,
2101
2101
  newSubtitle: h,
2102
2102
  onClose: () => M(!1)
2103
- }) : /* @__PURE__ */ U(Mn, {
2103
+ }) : /* @__PURE__ */ G(Mn, {
2104
2104
  resolved: N,
2105
2105
  renderTile: T,
2106
2106
  chip: A,
@@ -2117,25 +2117,25 @@ function An({ items: e, error: t, tryAgainUrl: n, listId: r, eyebrow: i, backTo:
2117
2117
  }
2118
2118
  function jn({ items: e, error: t, tryAgainUrl: n, tone: r = "indigo", newRoute: i, newLabel: a, newSubtitle: o, hideNew: s = !1, itemKey: c, renderTile: l, emptyTitle: u, emptyDescription: d }) {
2119
2119
  let f = Y(r);
2120
- return /* @__PURE__ */ U(se, {
2120
+ return /* @__PURE__ */ G(ae, {
2121
2121
  checkIsNotUndefined: e,
2122
2122
  error: t ?? null,
2123
2123
  tryAgainUrl: n,
2124
- children: /* @__PURE__ */ W("div", {
2124
+ children: /* @__PURE__ */ K("div", {
2125
2125
  "data-slot": "bento-list-tiles",
2126
2126
  className: kn,
2127
2127
  children: [
2128
- !s && i && a ? /* @__PURE__ */ U(Ln, {
2128
+ !s && i && a ? /* @__PURE__ */ G(Ln, {
2129
2129
  route: i,
2130
2130
  label: a,
2131
2131
  subtitle: o,
2132
2132
  chip: f
2133
2133
  }) : null,
2134
- (e ?? []).map((e) => /* @__PURE__ */ U("span", {
2134
+ (e ?? []).map((e) => /* @__PURE__ */ G("span", {
2135
2135
  className: "contents",
2136
2136
  children: l(e)
2137
2137
  }, c(e))),
2138
- e?.length === 0 && /* @__PURE__ */ U(Rn, {
2138
+ e?.length === 0 && /* @__PURE__ */ G(Rn, {
2139
2139
  title: u,
2140
2140
  description: d
2141
2141
  })
@@ -2145,21 +2145,21 @@ function jn({ items: e, error: t, tryAgainUrl: n, tone: r = "indigo", newRoute:
2145
2145
  }
2146
2146
  function Mn({ resolved: t, renderTile: n, chip: r, hideNew: i, newRoute: a, newLabel: o, newSubtitle: s, isEmpty: c, emptyTitle: l, emptyDescription: u }) {
2147
2147
  let d = t.some((e) => e.emphasis === "SMALL");
2148
- return /* @__PURE__ */ W("div", {
2148
+ return /* @__PURE__ */ K("div", {
2149
2149
  "data-slot": "bento-list-tiles",
2150
2150
  className: e(kn, d && "grid-flow-dense"),
2151
2151
  children: [
2152
- !i && /* @__PURE__ */ U(Ln, {
2152
+ !i && /* @__PURE__ */ G(Ln, {
2153
2153
  route: a,
2154
2154
  label: o,
2155
2155
  subtitle: s,
2156
2156
  chip: r
2157
2157
  }),
2158
- t.map(({ item: e, key: t, emphasis: r }) => /* @__PURE__ */ U("span", {
2158
+ t.map(({ item: e, key: t, emphasis: r }) => /* @__PURE__ */ G("span", {
2159
2159
  className: "contents",
2160
2160
  children: n(e, r)
2161
2161
  }, t)),
2162
- c && /* @__PURE__ */ U(Rn, {
2162
+ c && /* @__PURE__ */ G(Rn, {
2163
2163
  title: l,
2164
2164
  description: u
2165
2165
  })
@@ -2167,7 +2167,7 @@ function Mn({ resolved: t, renderTile: n, chip: r, hideNew: i, newRoute: a, newL
2167
2167
  });
2168
2168
  }
2169
2169
  function Nn({ layout: t, resolved: n, canEditGlobal: r, isCustomized: i, renderTile: a, chip: o, hideNew: s, newRoute: c, newLabel: l, newSubtitle: u, onClose: d }) {
2170
- let { t: f } = G(), [p, m] = B(n), [h, g] = B(null), _ = (t.saving ?? !1) || h !== null, v = (e) => _ && h === e ? { loading: !0 } : { "aria-disabled": _ || void 0 }, [y, b] = B(!1), x = (e, t) => async () => {
2170
+ let { t: f } = q(), [p, m] = H(n), [h, g] = H(null), _ = (t.saving ?? !1) || h !== null, v = (e) => _ && h === e ? { loading: !0 } : { "aria-disabled": _ || void 0 }, [y, b] = H(!1), x = (e, t) => async () => {
2171
2171
  if (t) {
2172
2172
  g(e), b(!1);
2173
2173
  try {
@@ -2192,67 +2192,67 @@ function Nn({ layout: t, resolved: n, canEditGlobal: r, isCustomized: i, renderT
2192
2192
  emphasis: t
2193
2193
  } : n));
2194
2194
  }
2195
- let E = de(() => vn(p), [p]), D = p.some((e) => e.emphasis === "SMALL");
2196
- return /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("div", {
2195
+ let E = le(() => vn(p), [p]), D = p.some((e) => e.emphasis === "SMALL");
2196
+ return /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("div", {
2197
2197
  className: "mb-4 flex flex-wrap items-center gap-2 rounded-2xl border border-border/60 bg-card/40 p-3 backdrop-blur-md",
2198
2198
  children: [
2199
- /* @__PURE__ */ U("span", {
2199
+ /* @__PURE__ */ G("span", {
2200
2200
  className: "mr-auto text-sm text-muted-foreground",
2201
2201
  children: f("bento.layout.editHint", { defaultValue: "Drag tiles to reorder · tap the size button to resize" })
2202
2202
  }),
2203
- i && t.onReset && /* @__PURE__ */ W(C, {
2203
+ i && t.onReset && /* @__PURE__ */ K(C, {
2204
2204
  variant: "ghost",
2205
2205
  size: "sm",
2206
2206
  className: "gap-2",
2207
2207
  ...v("reset"),
2208
2208
  onClick: x("reset", t.onReset),
2209
- children: [h !== "reset" && /* @__PURE__ */ U(K, { size: 16 }), f("bento.layout.reset", { defaultValue: "Reset to default" })]
2209
+ children: [h !== "reset" && /* @__PURE__ */ G(J, { size: 16 }), f("bento.layout.reset", { defaultValue: "Reset to default" })]
2210
2210
  }),
2211
- r && t.onSaveGlobal && /* @__PURE__ */ W(C, {
2211
+ r && t.onSaveGlobal && /* @__PURE__ */ K(C, {
2212
2212
  variant: "outline",
2213
2213
  size: "sm",
2214
2214
  className: "gap-2",
2215
2215
  ...v("global"),
2216
2216
  onClick: x("global", () => t.onSaveGlobal?.(E)),
2217
- children: [h !== "global" && /* @__PURE__ */ U(ze, { size: 16 }), f("bento.layout.saveGlobal", { defaultValue: "Set as default for everyone" })]
2217
+ children: [h !== "global" && /* @__PURE__ */ G(ze, { size: 16 }), f("bento.layout.saveGlobal", { defaultValue: "Set as default for everyone" })]
2218
2218
  }),
2219
- /* @__PURE__ */ W(C, {
2219
+ /* @__PURE__ */ K(C, {
2220
2220
  variant: "ghost",
2221
2221
  size: "sm",
2222
2222
  className: "gap-2",
2223
2223
  ...v("cancel"),
2224
2224
  onClick: d,
2225
- children: [/* @__PURE__ */ U(Be, { size: 16 }), f("common.cancel", { defaultValue: "Cancel" })]
2225
+ children: [/* @__PURE__ */ G(Be, { size: 16 }), f("common.cancel", { defaultValue: "Cancel" })]
2226
2226
  }),
2227
- /* @__PURE__ */ W(C, {
2227
+ /* @__PURE__ */ K(C, {
2228
2228
  size: "sm",
2229
2229
  className: "gap-2",
2230
2230
  ...v("save"),
2231
2231
  onClick: x("save", () => t.onSave(E)),
2232
- children: [h !== "save" && /* @__PURE__ */ U(J, { size: 16 }), f("bento.layout.save", { defaultValue: "Save layout" })]
2232
+ children: [h !== "save" && /* @__PURE__ */ G(Ce, { size: 16 }), f("bento.layout.save", { defaultValue: "Save layout" })]
2233
2233
  }),
2234
- y && /* @__PURE__ */ U("p", {
2234
+ y && /* @__PURE__ */ G("p", {
2235
2235
  role: "alert",
2236
2236
  className: "w-full text-sm text-destructive",
2237
2237
  children: f("bento.layout.saveFailed", { defaultValue: "The layout could not be saved. Nothing has changed — try again." })
2238
2238
  })
2239
2239
  ]
2240
- }), /* @__PURE__ */ U(Ze, {
2240
+ }), /* @__PURE__ */ G(Ze, {
2241
2241
  sensors: S,
2242
2242
  collisionDetection: et,
2243
2243
  onDragEnd: w,
2244
- children: /* @__PURE__ */ U(rt, {
2244
+ children: /* @__PURE__ */ G(rt, {
2245
2245
  items: p.map((e) => e.key),
2246
2246
  strategy: at,
2247
- children: /* @__PURE__ */ W("div", {
2247
+ children: /* @__PURE__ */ K("div", {
2248
2248
  "data-slot": "bento-list-tiles",
2249
2249
  className: e(kn, D && "grid-flow-dense"),
2250
- children: [!s && /* @__PURE__ */ U(Ln, {
2250
+ children: [!s && /* @__PURE__ */ G(Ln, {
2251
2251
  route: c,
2252
2252
  label: l,
2253
2253
  subtitle: u,
2254
2254
  chip: o
2255
- }), p.map(({ item: e, key: t, emphasis: n }) => /* @__PURE__ */ U(In, {
2255
+ }), p.map(({ item: e, key: t, emphasis: n }) => /* @__PURE__ */ G(In, {
2256
2256
  id: t,
2257
2257
  emphasis: n,
2258
2258
  onSetEmphasis: (e) => T(t, e),
@@ -2281,28 +2281,28 @@ var Pn = [
2281
2281
  }
2282
2282
  };
2283
2283
  function In({ id: t, emphasis: n, onSetEmphasis: r, children: i }) {
2284
- let { t: a } = G(), { attributes: o, listeners: s, setNodeRef: c, transform: l, transition: u, isDragging: d } = ot({ id: t }), f = {
2284
+ let { t: a } = q(), { attributes: o, listeners: s, setNodeRef: c, transform: l, transition: u, isDragging: d } = ot({ id: t }), f = {
2285
2285
  transform: st.Translate.toString(l),
2286
2286
  transition: u,
2287
2287
  opacity: d ? .6 : 1,
2288
2288
  zIndex: d ? 50 : void 0
2289
2289
  };
2290
- return /* @__PURE__ */ W("div", {
2290
+ return /* @__PURE__ */ K("div", {
2291
2291
  ref: c,
2292
2292
  style: f,
2293
2293
  className: e("relative h-full", hn[n]),
2294
- children: [/* @__PURE__ */ U("div", {
2294
+ children: [/* @__PURE__ */ G("div", {
2295
2295
  className: "pointer-events-none h-full select-none [&>*]:h-full [&>*]:w-full",
2296
2296
  children: i
2297
- }), /* @__PURE__ */ W("div", {
2297
+ }), /* @__PURE__ */ K("div", {
2298
2298
  className: "absolute right-2 top-2 z-10 flex items-center gap-1",
2299
- children: [/* @__PURE__ */ U("div", {
2299
+ children: [/* @__PURE__ */ G("div", {
2300
2300
  role: "group",
2301
2301
  "aria-label": a("bento.layout.sizeGroup", { defaultValue: "Tile size" }),
2302
2302
  className: "flex items-center gap-0.5 rounded-full border border-border/60 bg-background/80 p-0.5 shadow-sm backdrop-blur",
2303
2303
  children: Pn.map((t) => {
2304
2304
  let i = t === n, o = a(Fn[t].key, { defaultValue: Fn[t].def });
2305
- return /* @__PURE__ */ U("button", {
2305
+ return /* @__PURE__ */ G("button", {
2306
2306
  type: "button",
2307
2307
  onClick: () => r(t),
2308
2308
  "aria-pressed": i,
@@ -2312,13 +2312,13 @@ function In({ id: t, emphasis: n, onSetEmphasis: r, children: i }) {
2312
2312
  children: o.charAt(0)
2313
2313
  }, t);
2314
2314
  })
2315
- }), /* @__PURE__ */ U("button", {
2315
+ }), /* @__PURE__ */ G("button", {
2316
2316
  type: "button",
2317
2317
  ...o,
2318
2318
  ...s,
2319
2319
  "aria-label": a("bento.layout.dragToReorder", { defaultValue: "Drag to reorder" }),
2320
2320
  className: "grid h-7 w-7 cursor-grab place-items-center rounded-full border border-border/60 bg-background/80 shadow-sm backdrop-blur hover:bg-background active:cursor-grabbing",
2321
- children: /* @__PURE__ */ U(Ee, {
2321
+ children: /* @__PURE__ */ G(Ee, {
2322
2322
  size: 14,
2323
2323
  className: "text-muted-foreground"
2324
2324
  })
@@ -2327,33 +2327,33 @@ function In({ id: t, emphasis: n, onSetEmphasis: r, children: i }) {
2327
2327
  });
2328
2328
  }
2329
2329
  function Ln({ route: e, label: t, subtitle: n, chip: r }) {
2330
- let { t: i } = G();
2331
- return /* @__PURE__ */ W(Ue, {
2330
+ let { t: i } = q();
2331
+ return /* @__PURE__ */ K(Ue, {
2332
2332
  to: e,
2333
2333
  className: "bento-tile bento-tile-clickable col-span-2 row-span-1 flex flex-col gap-3 rounded-3xl border-2 border-dashed border-border/60 bg-card/30 p-5 backdrop-blur-md bento-new-tile hover:bg-card/50 md:col-span-2 md:row-span-1 lg:col-span-2 lg:row-span-1",
2334
- children: [/* @__PURE__ */ W("div", {
2334
+ children: [/* @__PURE__ */ K("div", {
2335
2335
  className: "flex items-center gap-3",
2336
- children: [/* @__PURE__ */ U("span", {
2336
+ children: [/* @__PURE__ */ G("span", {
2337
2337
  className: `bento-pulse grid h-10 w-10 place-items-center rounded-2xl ${r} text-white shadow-md`,
2338
- children: /* @__PURE__ */ U(Me, { size: 20 })
2339
- }), /* @__PURE__ */ U("span", {
2338
+ children: /* @__PURE__ */ G(Me, { size: 20 })
2339
+ }), /* @__PURE__ */ G("span", {
2340
2340
  className: "text-[11px] uppercase tracking-wider text-muted-foreground",
2341
2341
  children: i("forms.formActions.new", { defaultValue: "New" })
2342
2342
  })]
2343
- }), /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("div", {
2343
+ }), /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G("div", {
2344
2344
  className: "text-base font-semibold tracking-tight md:text-lg",
2345
- children: /* @__PURE__ */ U("span", {
2345
+ children: /* @__PURE__ */ G("span", {
2346
2346
  className: `${r} bg-clip-text text-transparent`,
2347
2347
  children: t
2348
2348
  })
2349
- }), n && /* @__PURE__ */ U("p", {
2349
+ }), n && /* @__PURE__ */ G("p", {
2350
2350
  className: "mt-1 text-sm text-muted-foreground",
2351
2351
  children: n
2352
2352
  })] })]
2353
2353
  });
2354
2354
  }
2355
2355
  function Rn({ title: e, description: t }) {
2356
- return /* @__PURE__ */ U(vt, {
2356
+ return /* @__PURE__ */ G(vt, {
2357
2357
  icon: Fe,
2358
2358
  title: e,
2359
2359
  description: t,
@@ -2364,45 +2364,45 @@ function Rn({ title: e, description: t }) {
2364
2364
  //#endregion
2365
2365
  //#region src/bento/bento-save-bar.tsx
2366
2366
  function zn({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: o, dirty: s, titleMissing: c }) {
2367
- let { t: l } = G();
2368
- return /* @__PURE__ */ W("div", {
2367
+ let { t: l } = q();
2368
+ return /* @__PURE__ */ K("div", {
2369
2369
  className: "bento-glass flex items-center justify-between gap-4 rounded-2xl px-4 py-3 shadow-md backdrop-blur-xl",
2370
- children: [/* @__PURE__ */ W("div", {
2370
+ children: [/* @__PURE__ */ K("div", {
2371
2371
  className: "flex min-w-0 items-center gap-3",
2372
2372
  children: [
2373
- e && /* @__PURE__ */ U("p", {
2373
+ e && /* @__PURE__ */ G("p", {
2374
2374
  className: "truncate text-base font-semibold tracking-tight md:text-lg",
2375
2375
  children: e
2376
2376
  }),
2377
- /* @__PURE__ */ U(Et, {
2377
+ /* @__PURE__ */ G(Et, {
2378
2378
  titleMissing: c,
2379
2379
  dirty: s
2380
2380
  }),
2381
- t && /* @__PURE__ */ U("div", {
2381
+ t && /* @__PURE__ */ G("div", {
2382
2382
  className: "flex shrink-0 items-center gap-1.5",
2383
2383
  children: t
2384
2384
  })
2385
2385
  ]
2386
- }), /* @__PURE__ */ U("div", {
2386
+ }), /* @__PURE__ */ G("div", {
2387
2387
  className: "flex shrink-0 gap-2",
2388
- children: n ?? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W(a, {
2388
+ children: n ?? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ K(a, {
2389
2389
  type: "submit",
2390
2390
  size: "sm",
2391
2391
  loading: i,
2392
2392
  "aria-disabled": o ? "true" : void 0,
2393
- children: [/* @__PURE__ */ U(J, { className: "size-4" }), l("forms.formActions.saveChanges")]
2394
- }), r && /* @__PURE__ */ W(a, {
2393
+ children: [/* @__PURE__ */ G(Ce, { className: "size-4" }), l("forms.formActions.saveChanges")]
2394
+ }), r && /* @__PURE__ */ K(a, {
2395
2395
  type: "button",
2396
2396
  variant: "outline",
2397
2397
  size: "sm",
2398
2398
  onClick: r,
2399
- children: [/* @__PURE__ */ U(Be, { className: "size-4" }), l("forms.formActions.cancel")]
2399
+ children: [/* @__PURE__ */ G(Be, { className: "size-4" }), l("forms.formActions.cancel")]
2400
2400
  })] })
2401
2401
  })]
2402
2402
  });
2403
2403
  }
2404
2404
  function Bn({ children: e }) {
2405
- return /* @__PURE__ */ U("span", {
2405
+ return /* @__PURE__ */ G("span", {
2406
2406
  className: "rounded-full border border-border/60 bg-card/50 px-2 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground backdrop-blur",
2407
2407
  children: e
2408
2408
  });
@@ -2411,49 +2411,49 @@ zn.Badge = Bn;
2411
2411
  //#endregion
2412
2412
  //#region src/bento/bento-scroll-save-bar.tsx
2413
2413
  function Vn(e) {
2414
- let t = z(null);
2415
- return Dt(t), /* @__PURE__ */ W(H, { children: [
2416
- /* @__PURE__ */ U("div", {
2414
+ let t = V(null);
2415
+ return Dt(t), /* @__PURE__ */ K(W, { children: [
2416
+ /* @__PURE__ */ G("div", {
2417
2417
  ref: t,
2418
2418
  "aria-hidden": !0,
2419
2419
  className: "h-px"
2420
2420
  }),
2421
- /* @__PURE__ */ U("div", {
2421
+ /* @__PURE__ */ G("div", {
2422
2422
  "aria-hidden": !0,
2423
2423
  className: "bento-save-bar-spacer"
2424
2424
  }),
2425
- /* @__PURE__ */ U("div", {
2425
+ /* @__PURE__ */ G("div", {
2426
2426
  className: "bento-fade-in fixed inset-x-0 top-20 z-20 mx-auto w-full max-w-7xl px-4 md:px-8",
2427
- children: /* @__PURE__ */ U(zn, { ...e })
2427
+ children: /* @__PURE__ */ G(zn, { ...e })
2428
2428
  })
2429
2429
  ] });
2430
2430
  }
2431
2431
  //#endregion
2432
2432
  //#region src/bento/bento-form-hero.tsx
2433
2433
  function Hn({ eyebrow: e, backTo: t, backLabel: n, trail: r, leading: i, title: o, subtitle: s, trailing: c, onCancel: l, actions: u, loading: d, dirty: f, titleMissing: p, saveDisabled: m, stickyTitle: h, stickyBadges: g }) {
2434
- let { t: _ } = G(), v = m ?? (!!p || !f), y = St(r, t, n) ?? e;
2435
- return /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(Ct, {
2434
+ let { t: _ } = q(), v = m ?? (!!p || !f), y = St(r, t, n) ?? e;
2435
+ return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Ct, {
2436
2436
  eyebrow: y,
2437
2437
  leading: i,
2438
2438
  title: o,
2439
2439
  subtitle: s,
2440
- trailing: /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U("div", {
2440
+ trailing: /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
2441
2441
  className: "bento-fade-out flex shrink-0 items-center gap-2",
2442
- children: u ?? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W(a, {
2442
+ children: u ?? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ K(a, {
2443
2443
  type: "submit",
2444
2444
  size: "sm",
2445
2445
  loading: d,
2446
2446
  "aria-disabled": v ? "true" : void 0,
2447
- children: [/* @__PURE__ */ U(J, { className: "size-4" }), _("forms.formActions.saveChanges")]
2448
- }), /* @__PURE__ */ W(a, {
2447
+ children: [/* @__PURE__ */ G(Ce, { className: "size-4" }), _("forms.formActions.saveChanges")]
2448
+ }), /* @__PURE__ */ K(a, {
2449
2449
  type: "button",
2450
2450
  variant: "outline",
2451
2451
  size: "sm",
2452
2452
  onClick: l,
2453
- children: [/* @__PURE__ */ U(Be, { className: "size-4" }), _("forms.formActions.cancel")]
2453
+ children: [/* @__PURE__ */ G(Be, { className: "size-4" }), _("forms.formActions.cancel")]
2454
2454
  })] })
2455
2455
  }), c] })
2456
- }), /* @__PURE__ */ U(Vn, {
2456
+ }), /* @__PURE__ */ G(Vn, {
2457
2457
  title: h,
2458
2458
  badges: g,
2459
2459
  actions: u,
@@ -2468,30 +2468,30 @@ function Hn({ eyebrow: e, backTo: t, backLabel: n, trail: r, leading: i, title:
2468
2468
  //#region src/bento/bento-form-section.tsx
2469
2469
  var Un = "bento-tile bento-glass relative flex flex-col gap-5 overflow-hidden rounded-3xl p-5 md:p-6";
2470
2470
  function Wn({ icon: t, tone: n, title: r, description: i, children: a, trailing: o, as: s = "h2", className: c }) {
2471
- return /* @__PURE__ */ W("section", {
2471
+ return /* @__PURE__ */ K("section", {
2472
2472
  className: e(Un, c),
2473
- children: [/* @__PURE__ */ W("header", {
2473
+ children: [/* @__PURE__ */ K("header", {
2474
2474
  className: "flex items-start justify-between gap-3",
2475
- children: [/* @__PURE__ */ W("div", {
2475
+ children: [/* @__PURE__ */ K("div", {
2476
2476
  className: "flex items-center gap-3",
2477
- children: [/* @__PURE__ */ U("span", {
2477
+ children: [/* @__PURE__ */ G("span", {
2478
2478
  className: `grid h-10 w-10 place-items-center rounded-2xl text-white shadow-md ${Y(n)}`,
2479
- children: /* @__PURE__ */ U(t, { size: 20 })
2480
- }), /* @__PURE__ */ W("div", {
2479
+ children: /* @__PURE__ */ G(t, { size: 20 })
2480
+ }), /* @__PURE__ */ K("div", {
2481
2481
  className: "flex flex-col gap-0.5",
2482
- children: [/* @__PURE__ */ U(s, {
2482
+ children: [/* @__PURE__ */ G(s, {
2483
2483
  className: "text-base font-semibold tracking-tight md:text-lg",
2484
2484
  children: r
2485
- }), i && /* @__PURE__ */ U("p", {
2485
+ }), i && /* @__PURE__ */ G("p", {
2486
2486
  className: "text-sm text-muted-foreground",
2487
2487
  children: i
2488
2488
  })]
2489
2489
  })]
2490
- }), o && /* @__PURE__ */ U("div", {
2490
+ }), o && /* @__PURE__ */ G("div", {
2491
2491
  className: "shrink-0",
2492
2492
  children: o
2493
2493
  })]
2494
- }), /* @__PURE__ */ U("div", {
2494
+ }), /* @__PURE__ */ G("div", {
2495
2495
  className: "flex flex-col gap-5",
2496
2496
  children: a
2497
2497
  })]
@@ -2500,9 +2500,9 @@ function Wn({ icon: t, tone: n, title: r, description: i, children: a, trailing:
2500
2500
  //#endregion
2501
2501
  //#region src/bento/bento-panel.tsx
2502
2502
  function Gn({ children: t, className: n, contentClassName: r }) {
2503
- return /* @__PURE__ */ U("div", {
2503
+ return /* @__PURE__ */ G("div", {
2504
2504
  className: e("bento-glass rounded-2xl shadow-md", n),
2505
- children: /* @__PURE__ */ U("div", {
2505
+ children: /* @__PURE__ */ G("div", {
2506
2506
  className: r,
2507
2507
  children: t
2508
2508
  })
@@ -2518,8 +2518,8 @@ function Jn() {
2518
2518
  return window.scrollY > Kn;
2519
2519
  }
2520
2520
  function Yn({ inline: e = !1 } = {}) {
2521
- let { t } = G(), n = ee(), r = e || n, i = V(qn, Jn, () => !1);
2522
- return /* @__PURE__ */ U("button", {
2521
+ let { t } = q(), n = ee(), r = e || n, i = U(qn, Jn, () => !1);
2522
+ return /* @__PURE__ */ G("button", {
2523
2523
  type: "button",
2524
2524
  "aria-label": t("bento.backToTop", { defaultValue: "Back to top" }),
2525
2525
  tabIndex: i ? 0 : -1,
@@ -2528,7 +2528,7 @@ function Yn({ inline: e = !1 } = {}) {
2528
2528
  behavior: "smooth"
2529
2529
  }),
2530
2530
  className: `${r ? "relative" : "fixed bottom-6 right-6 z-40"} grid h-11 w-11 place-items-center rounded-full border border-border/60 bg-card/80 text-foreground shadow-lg backdrop-blur-xl transition-all duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] hover:-translate-y-0.5 hover:shadow-xl active:scale-95 ${i ? "pointer-events-auto translate-y-0 scale-100 opacity-100" : "pointer-events-none translate-y-4 scale-90 opacity-0"}`,
2531
- children: /* @__PURE__ */ U(_e, { size: 18 })
2531
+ children: /* @__PURE__ */ G(he, { size: 18 })
2532
2532
  });
2533
2533
  }
2534
2534
  //#endregion
@@ -2539,17 +2539,17 @@ function Xn(e) {
2539
2539
  //#endregion
2540
2540
  //#region src/bento/bento-command-palette.tsx
2541
2541
  function Zn({ label: e, children: t }) {
2542
- return e ? /* @__PURE__ */ W("div", {
2542
+ return e ? /* @__PURE__ */ K("div", {
2543
2543
  role: "group",
2544
2544
  "aria-label": e,
2545
- children: [/* @__PURE__ */ U("p", {
2545
+ children: [/* @__PURE__ */ G("p", {
2546
2546
  className: "px-3 pt-2 pb-1 text-xs font-medium text-muted-foreground",
2547
2547
  children: e
2548
2548
  }), t]
2549
- }) : /* @__PURE__ */ U(H, { children: t });
2549
+ }) : /* @__PURE__ */ G(W, { children: t });
2550
2550
  }
2551
2551
  function Qn({ index: e, active: t, icon: n, label: r, description: i, trailing: a, onActivate: o, onChoose: s }) {
2552
- return /* @__PURE__ */ W("button", {
2552
+ return /* @__PURE__ */ K("button", {
2553
2553
  type: "button",
2554
2554
  id: `bento-palette-opt-${e}`,
2555
2555
  "data-index": e,
@@ -2559,18 +2559,18 @@ function Qn({ index: e, active: t, icon: n, label: r, description: i, trailing:
2559
2559
  onClick: s,
2560
2560
  className: `flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${t ? "bg-accent text-accent-foreground" : "text-foreground"}`,
2561
2561
  children: [
2562
- n && /* @__PURE__ */ U(n, {
2562
+ n && /* @__PURE__ */ G(n, {
2563
2563
  size: 18,
2564
2564
  className: "shrink-0 text-muted-foreground"
2565
2565
  }),
2566
- /* @__PURE__ */ W("span", {
2566
+ /* @__PURE__ */ K("span", {
2567
2567
  className: "flex-1 truncate",
2568
- children: [r, i && /* @__PURE__ */ U("span", {
2568
+ children: [r, i && /* @__PURE__ */ G("span", {
2569
2569
  className: "ml-2 text-muted-foreground",
2570
2570
  children: i
2571
2571
  })]
2572
2572
  }),
2573
- a ?? (t && /* @__PURE__ */ U(ge, {
2573
+ a ?? (t && /* @__PURE__ */ G(me, {
2574
2574
  "aria-hidden": !0,
2575
2575
  size: 15,
2576
2576
  className: "shrink-0 text-muted-foreground"
@@ -2579,7 +2579,7 @@ function Qn({ index: e, active: t, icon: n, label: r, description: i, trailing:
2579
2579
  });
2580
2580
  }
2581
2581
  function $n({ open: e, onOpenChange: t, items: a, group: o, onQueryChange: c }) {
2582
- let { t: l } = G(), u = Ke(), [d, f] = B(""), [p, m] = B(0), h = z(null), g = de(() => {
2582
+ let { t: l } = q(), u = Ke(), [d, f] = H(""), [p, m] = H(0), h = V(null), g = le(() => {
2583
2583
  let e = d.trim().toLowerCase(), t = a.map((e) => ({
2584
2584
  item: e,
2585
2585
  label: l(e.titleKey),
@@ -2593,22 +2593,22 @@ function $n({ open: e, onOpenChange: t, items: a, group: o, onQueryChange: c })
2593
2593
  a,
2594
2594
  d,
2595
2595
  l
2596
- ]), _ = de(() => [...g.map((e) => ({
2596
+ ]), _ = le(() => [...g.map((e) => ({
2597
2597
  kind: "nav",
2598
2598
  entry: e
2599
2599
  })), ...(o?.items ?? []).map((e) => ({
2600
2600
  kind: "supplied",
2601
2601
  item: e
2602
- }))], [g, o]), v = z(c);
2603
- R(() => {
2602
+ }))], [g, o]), v = V(c);
2603
+ B(() => {
2604
2604
  v.current = c;
2605
- }), R(() => {
2605
+ }), B(() => {
2606
2606
  v.current?.(d);
2607
2607
  }, [d]);
2608
- let [y, b] = B(e);
2608
+ let [y, b] = H(e);
2609
2609
  e !== y && (b(e), e && (f(""), m(0)));
2610
2610
  let x = _.length === 0 ? 0 : _.length - 1;
2611
- p > x && m(x), R(() => {
2611
+ p > x && m(x), B(() => {
2612
2612
  (h.current?.querySelector(`[data-index="${p}"]`))?.scrollIntoView({ block: "nearest" });
2613
2613
  }, [p]);
2614
2614
  function S(e) {
@@ -2623,28 +2623,28 @@ function $n({ open: e, onOpenChange: t, items: a, group: o, onQueryChange: c })
2623
2623
  t && S(t);
2624
2624
  }
2625
2625
  }
2626
- return /* @__PURE__ */ U(n, {
2626
+ return /* @__PURE__ */ G(n, {
2627
2627
  open: e,
2628
2628
  onOpenChange: t,
2629
- children: /* @__PURE__ */ W(s, {
2629
+ children: /* @__PURE__ */ K(s, {
2630
2630
  showCloseButton: !1,
2631
2631
  className: "top-[15%] max-w-xl translate-y-0 gap-0 overflow-hidden p-0",
2632
2632
  onKeyDown: C,
2633
2633
  children: [
2634
- /* @__PURE__ */ U(i, {
2634
+ /* @__PURE__ */ G(i, {
2635
2635
  className: "sr-only",
2636
2636
  children: l("bento.palette.title", { defaultValue: "Command palette" })
2637
2637
  }),
2638
- /* @__PURE__ */ U(r, {
2638
+ /* @__PURE__ */ G(r, {
2639
2639
  className: "sr-only",
2640
2640
  children: l("bento.palette.description", { defaultValue: "Search and jump to any area" })
2641
2641
  }),
2642
- /* @__PURE__ */ W("div", {
2642
+ /* @__PURE__ */ K("div", {
2643
2643
  className: "flex items-center gap-3 border-b border-border/60 px-4",
2644
- children: [/* @__PURE__ */ U(Pe, {
2644
+ children: [/* @__PURE__ */ G(Pe, {
2645
2645
  size: 18,
2646
2646
  className: "shrink-0 text-muted-foreground"
2647
- }), /* @__PURE__ */ U("input", {
2647
+ }), /* @__PURE__ */ G("input", {
2648
2648
  autoFocus: !0,
2649
2649
  type: "text",
2650
2650
  role: "combobox",
@@ -2657,41 +2657,41 @@ function $n({ open: e, onOpenChange: t, items: a, group: o, onQueryChange: c })
2657
2657
  className: "h-12 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"
2658
2658
  })]
2659
2659
  }),
2660
- /* @__PURE__ */ W("div", {
2660
+ /* @__PURE__ */ K("div", {
2661
2661
  ref: h,
2662
2662
  id: "bento-palette-list",
2663
2663
  role: "listbox",
2664
2664
  "aria-label": l("bento.palette.title", { defaultValue: "Command palette" }),
2665
2665
  className: "max-h-80 overflow-y-auto p-2",
2666
2666
  children: [
2667
- _.length === 0 && !o?.pending && /* @__PURE__ */ U("p", {
2667
+ _.length === 0 && !o?.pending && /* @__PURE__ */ G("p", {
2668
2668
  className: "px-3 py-6 text-center text-sm text-muted-foreground",
2669
2669
  children: l("bento.palette.noResults", { defaultValue: "No matches" })
2670
2670
  }),
2671
- /* @__PURE__ */ U(Zn, {
2671
+ /* @__PURE__ */ G(Zn, {
2672
2672
  label: o && g.length > 0 ? l("bento.palette.areas", { defaultValue: "Areas" }) : void 0,
2673
- children: g.map(({ item: e, label: t }, n) => /* @__PURE__ */ U(Qn, {
2673
+ children: g.map(({ item: e, label: t }, n) => /* @__PURE__ */ G(Qn, {
2674
2674
  index: n,
2675
2675
  active: n === p,
2676
2676
  icon: e.icon,
2677
2677
  label: t,
2678
2678
  onActivate: () => m(n),
2679
2679
  onChoose: () => S(_[n]),
2680
- trailing: e.bentoRoute ? void 0 : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(Te, {
2680
+ trailing: e.bentoRoute ? void 0 : /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Te, {
2681
2681
  "aria-hidden": !0,
2682
2682
  size: 15,
2683
2683
  className: "shrink-0 text-muted-foreground/70"
2684
- }), /* @__PURE__ */ U("span", {
2684
+ }), /* @__PURE__ */ G("span", {
2685
2685
  className: "sr-only",
2686
2686
  children: l("bento.palette.opensConsole", { defaultValue: "Opens in console" })
2687
2687
  })] })
2688
2688
  }, e.id))
2689
2689
  }),
2690
- o && /* @__PURE__ */ W(Zn, {
2690
+ o && /* @__PURE__ */ K(Zn, {
2691
2691
  label: o.label,
2692
2692
  children: [o.items.map((e, t) => {
2693
2693
  let n = g.length + t;
2694
- return /* @__PURE__ */ U(Qn, {
2694
+ return /* @__PURE__ */ G(Qn, {
2695
2695
  index: n,
2696
2696
  active: n === p,
2697
2697
  icon: e.icon,
@@ -2700,7 +2700,7 @@ function $n({ open: e, onOpenChange: t, items: a, group: o, onQueryChange: c })
2700
2700
  onActivate: () => m(n),
2701
2701
  onChoose: () => S(_[n])
2702
2702
  }, e.id);
2703
- }), o.pending && /* @__PURE__ */ U("p", {
2703
+ }), o.pending && /* @__PURE__ */ G("p", {
2704
2704
  className: "px-3 py-2.5 text-sm text-muted-foreground",
2705
2705
  children: l("bento.palette.searching", { defaultValue: "Searching…" })
2706
2706
  })]
@@ -2714,21 +2714,21 @@ function $n({ open: e, onOpenChange: t, items: a, group: o, onQueryChange: c })
2714
2714
  //#endregion
2715
2715
  //#region src/bento/bento-shell.tsx
2716
2716
  function er({ rail: t, headerStart: n, headerEnd: r, column: i = "default", dock: a, backToTop: o = !0, children: s }) {
2717
- let { t: c } = G(), l = We(), u = ue(), d = z(null), f = z(null), p = i === "full", m = n != null || r != null, h = k(), g = null;
2717
+ let { t: c } = q(), l = We(), u = ce(), d = V(null), f = V(null), p = i === "full", m = n != null || r != null, h = k(), g = null;
2718
2718
  a != null && (g = h ? m ? "header" : "corner" : t == null ? "corner" : "rail");
2719
- let _ = o || g === "corner", v = (e) => /* @__PURE__ */ U(te.Provider, {
2719
+ let _ = o || g === "corner", v = (e) => /* @__PURE__ */ G(I.Provider, {
2720
2720
  value: !0,
2721
- children: /* @__PURE__ */ U(A.Provider, {
2721
+ children: /* @__PURE__ */ G(A.Provider, {
2722
2722
  value: e,
2723
2723
  children: a
2724
2724
  })
2725
2725
  });
2726
- return /* @__PURE__ */ W("div", {
2726
+ return /* @__PURE__ */ K("div", {
2727
2727
  "data-slot": "bento-shell",
2728
2728
  className: e("relative w-full bg-background text-foreground", t != null && "bento-rail-gutter", p ? "flex h-svh flex-col overflow-hidden" : "min-h-svh"),
2729
2729
  style: g === "rail" ? { "--bento-rail-foot": "4.5rem" } : void 0,
2730
2730
  children: [
2731
- /* @__PURE__ */ U("a", {
2731
+ /* @__PURE__ */ G("a", {
2732
2732
  href: `#${u}`,
2733
2733
  onClick: (e) => {
2734
2734
  e.preventDefault(), d.current?.focus();
@@ -2736,37 +2736,37 @@ function er({ rail: t, headerStart: n, headerEnd: r, column: i = "default", dock
2736
2736
  className: "sr-only rounded-full border border-border/60 bg-card px-4 py-2 text-sm shadow-lg focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[60]",
2737
2737
  children: c("bento.shell.skip", { defaultValue: "Skip to content" })
2738
2738
  }),
2739
- /* @__PURE__ */ U("span", {
2739
+ /* @__PURE__ */ G("span", {
2740
2740
  ref: f,
2741
2741
  role: "status",
2742
2742
  "aria-live": "polite",
2743
2743
  className: "sr-only"
2744
2744
  }),
2745
- l && /* @__PURE__ */ U(tr, {
2745
+ l && /* @__PURE__ */ G(tr, {
2746
2746
  main: d,
2747
2747
  announcer: f
2748
2748
  }),
2749
2749
  t,
2750
- g === "rail" && /* @__PURE__ */ U("div", {
2750
+ g === "rail" && /* @__PURE__ */ G("div", {
2751
2751
  "data-slot": "bento-shell-dock",
2752
2752
  className: "pointer-events-none fixed bottom-4 left-[18px] z-50 flex flex-col items-start",
2753
2753
  children: v("rail")
2754
2754
  }),
2755
- m && /* @__PURE__ */ W("header", {
2755
+ m && /* @__PURE__ */ K("header", {
2756
2756
  className: "bento-shell-header bento-shell-bar sticky top-0 z-30 flex shrink-0 items-center justify-between gap-3 border-b border-border/40 bg-background/55 py-3 backdrop-blur-xl backdrop-saturate-150",
2757
- children: [/* @__PURE__ */ U("div", {
2757
+ children: [/* @__PURE__ */ G("div", {
2758
2758
  className: "flex min-w-0 items-center gap-3",
2759
2759
  children: n
2760
- }), /* @__PURE__ */ W("div", {
2760
+ }), /* @__PURE__ */ K("div", {
2761
2761
  className: "flex items-center gap-2",
2762
- children: [r, g === "header" && /* @__PURE__ */ U("div", {
2762
+ children: [r, g === "header" && /* @__PURE__ */ G("div", {
2763
2763
  "data-slot": "bento-shell-dock",
2764
2764
  className: "relative flex",
2765
2765
  children: v("header")
2766
2766
  })]
2767
2767
  })]
2768
2768
  }),
2769
- /* @__PURE__ */ U("main", {
2769
+ /* @__PURE__ */ G("main", {
2770
2770
  ref: d,
2771
2771
  id: u,
2772
2772
  tabIndex: -1,
@@ -2775,20 +2775,20 @@ function er({ rail: t, headerStart: n, headerEnd: r, column: i = "default", dock
2775
2775
  className: "bento-shell-main",
2776
2776
  children: s
2777
2777
  }),
2778
- _ && /* @__PURE__ */ U("div", {
2778
+ _ && /* @__PURE__ */ G("div", {
2779
2779
  "data-slot": "bento-shell-corner",
2780
2780
  className: "pointer-events-none fixed bottom-5 right-5 z-50 flex flex-col items-end gap-3",
2781
- children: /* @__PURE__ */ W(te.Provider, {
2781
+ children: /* @__PURE__ */ K(I.Provider, {
2782
2782
  value: !0,
2783
- children: [o && /* @__PURE__ */ U(Yn, {}), g === "corner" && v("corner")]
2783
+ children: [o && /* @__PURE__ */ G(Yn, {}), g === "corner" && v("corner")]
2784
2784
  })
2785
2785
  })
2786
2786
  ]
2787
2787
  });
2788
2788
  }
2789
2789
  function tr({ main: e, announcer: t }) {
2790
- let { pathname: n } = Ge(), r = z(n);
2791
- return R(() => {
2790
+ let { pathname: n } = Ge(), r = V(n);
2791
+ return B(() => {
2792
2792
  if (r.current === n) return;
2793
2793
  r.current = n;
2794
2794
  let i = 0, a, o = () => {
@@ -2846,16 +2846,16 @@ function or(e, t) {
2846
2846
  return nr.find((r) => n === r.key ? r.mod ? (t ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey) && !e.altKey && !e.shiftKey : e.metaKey || ar(e.target) ? !1 : e.ctrlKey === e.altKey : !1);
2847
2847
  }
2848
2848
  function sr({ onPalette: e, onShortcuts: t, isMac: n = rr() }) {
2849
- let r = z({
2849
+ let r = V({
2850
2850
  onPalette: e,
2851
2851
  onShortcuts: t
2852
2852
  });
2853
- R(() => {
2853
+ B(() => {
2854
2854
  r.current = {
2855
2855
  onPalette: e,
2856
2856
  onShortcuts: t
2857
2857
  };
2858
- }), R(() => {
2858
+ }), B(() => {
2859
2859
  function e(e) {
2860
2860
  let t = or(e, n), i = t?.action === "palette" ? r.current.onPalette : t && r.current.onShortcuts;
2861
2861
  i && (e.preventDefault(), i());
@@ -2866,22 +2866,22 @@ function sr({ onPalette: e, onShortcuts: t, isMac: n = rr() }) {
2866
2866
  //#endregion
2867
2867
  //#region src/bento/bento-palette-trigger.tsx
2868
2868
  function cr({ onClick: t, isMac: n = rr(), className: r }) {
2869
- let { t: i } = G(), a = nr.filter((e) => e.action === "palette"), o = a.find((e) => e.mod);
2870
- return /* @__PURE__ */ W("button", {
2869
+ let { t: i } = q(), a = nr.filter((e) => e.action === "palette"), o = a.find((e) => e.mod);
2870
+ return /* @__PURE__ */ K("button", {
2871
2871
  type: "button",
2872
2872
  onClick: t,
2873
2873
  "aria-keyshortcuts": a.map((e) => e.mod ? `${n ? "Meta" : "Control"}+${e.key.toUpperCase()}` : e.key).join(" "),
2874
2874
  className: e("bento-tile bento-tile-clickable inline-flex items-center gap-2 rounded-full border border-border/60 bg-card/60 py-1.5 pl-3 pr-2 text-sm text-muted-foreground backdrop-blur hover:text-foreground", r),
2875
2875
  children: [
2876
- /* @__PURE__ */ U(Pe, {
2876
+ /* @__PURE__ */ G(Pe, {
2877
2877
  "aria-hidden": !0,
2878
2878
  size: 16
2879
2879
  }),
2880
- /* @__PURE__ */ U("span", {
2880
+ /* @__PURE__ */ G("span", {
2881
2881
  className: "sr-only sm:not-sr-only",
2882
2882
  children: i("bento.palette.search", { defaultValue: "Search" })
2883
2883
  }),
2884
- o && /* @__PURE__ */ U("kbd", {
2884
+ o && /* @__PURE__ */ G("kbd", {
2885
2885
  "aria-hidden": !0,
2886
2886
  className: "hidden rounded border border-border/60 bg-muted px-1.5 py-0.5 text-[10px] font-medium tracking-wide sm:inline",
2887
2887
  children: ir(o, n).join(n ? "" : " ")
@@ -2892,7 +2892,7 @@ function cr({ onClick: t, isMac: n = rr(), className: r }) {
2892
2892
  //#endregion
2893
2893
  //#region src/bento/bento-shortcuts-dialog.tsx
2894
2894
  function lr({ open: e, onOpenChange: t, isMac: a = rr() }) {
2895
- let { t: c } = G(), l = {
2895
+ let { t: c } = q(), l = {
2896
2896
  palette: c("bento.palette.open", { defaultValue: "Open command palette" }),
2897
2897
  shortcuts: c("bento.shortcuts.openGuide", { defaultValue: "Show keyboard shortcuts" })
2898
2898
  }, u = [...new Set(nr.map((e) => e.action))], d = [{
@@ -2922,36 +2922,36 @@ function lr({ open: e, onOpenChange: t, isMac: a = rr() }) {
2922
2922
  }
2923
2923
  ]
2924
2924
  }];
2925
- return /* @__PURE__ */ U(n, {
2925
+ return /* @__PURE__ */ G(n, {
2926
2926
  open: e,
2927
2927
  onOpenChange: t,
2928
- children: /* @__PURE__ */ W(s, {
2928
+ children: /* @__PURE__ */ K(s, {
2929
2929
  className: "max-w-md",
2930
- children: [/* @__PURE__ */ W(o, { children: [/* @__PURE__ */ W(i, {
2930
+ children: [/* @__PURE__ */ K(o, { children: [/* @__PURE__ */ K(i, {
2931
2931
  className: "flex items-center gap-2",
2932
- children: [/* @__PURE__ */ U(Oe, {
2932
+ children: [/* @__PURE__ */ G(Oe, {
2933
2933
  size: 20,
2934
2934
  className: "bento-accent-icon"
2935
2935
  }), c("bento.shortcuts.title", { defaultValue: "Keyboard shortcuts" })]
2936
- }), /* @__PURE__ */ U(r, { children: c("bento.shortcuts.description", { defaultValue: "Move around without leaving the keyboard." }) })] }), /* @__PURE__ */ U("div", {
2936
+ }), /* @__PURE__ */ G(r, { children: c("bento.shortcuts.description", { defaultValue: "Move around without leaving the keyboard." }) })] }), /* @__PURE__ */ G("div", {
2937
2937
  className: "flex flex-col gap-5",
2938
- children: d.map((e) => /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ U("h3", {
2938
+ children: d.map((e) => /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ G("h3", {
2939
2939
  className: "mb-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",
2940
2940
  children: e.heading
2941
- }), /* @__PURE__ */ U("ul", {
2941
+ }), /* @__PURE__ */ G("ul", {
2942
2942
  className: "flex flex-col gap-1.5",
2943
- children: e.rows.map((e) => /* @__PURE__ */ W("li", {
2943
+ children: e.rows.map((e) => /* @__PURE__ */ K("li", {
2944
2944
  "data-shortcut": e.id,
2945
2945
  className: "flex items-center justify-between gap-4",
2946
- children: [/* @__PURE__ */ U("span", {
2946
+ children: [/* @__PURE__ */ G("span", {
2947
2947
  className: "text-sm text-foreground",
2948
2948
  children: e.label
2949
- }), /* @__PURE__ */ U("span", {
2949
+ }), /* @__PURE__ */ G("span", {
2950
2950
  className: "flex shrink-0 items-center gap-1",
2951
- children: e.combos.map((e, t) => /* @__PURE__ */ W(L, { children: [t > 0 && /* @__PURE__ */ U("span", {
2951
+ children: e.combos.map((e, t) => /* @__PURE__ */ K(z, { children: [t > 0 && /* @__PURE__ */ G("span", {
2952
2952
  className: "px-0.5 text-[11px] text-muted-foreground",
2953
2953
  children: c("bento.shortcuts.or", { defaultValue: "or" })
2954
- }), e.map((e) => /* @__PURE__ */ U("kbd", {
2954
+ }), e.map((e) => /* @__PURE__ */ G("kbd", {
2955
2955
  className: "inline-flex min-w-6 items-center justify-center rounded-md border border-border/60 bg-muted px-1.5 py-0.5 text-[11px] font-medium tracking-wide",
2956
2956
  children: e
2957
2957
  }, e))] }, e.join("+")))
@@ -2975,25 +2975,25 @@ function pr(e) {
2975
2975
  return e.items.reduce((e, t) => e + (t.count && t.count > 0 ? t.count : 0), 0);
2976
2976
  }
2977
2977
  function mr({ groups: e, homeRoute: t, homeAliases: n, homeLabel: r }) {
2978
- let { t: i } = G(), { pathname: a } = Ge(), o = de(() => e.filter((e) => !!e.section.areaRoute), [e]), s = a === t || (n?.includes(a) ?? !1);
2979
- return /* @__PURE__ */ U(re, {
2978
+ let { t: i } = q(), { pathname: a } = Ge(), o = le(() => e.filter((e) => !!e.section.areaRoute), [e]), s = a === t || (n?.includes(a) ?? !1);
2979
+ return /* @__PURE__ */ G(te, {
2980
2980
  delayDuration: 200,
2981
- children: /* @__PURE__ */ W("nav", {
2981
+ children: /* @__PURE__ */ K("nav", {
2982
2982
  "aria-label": i("bento.nav.label", { defaultValue: "Primary" }),
2983
2983
  className: "fixed inset-y-0 left-0 z-40 hidden w-20 flex-col items-center gap-1 overflow-y-auto overflow-x-hidden border-r border-border/40 bg-background/55 pt-20 pb-[calc(1rem+var(--bento-rail-foot,0px))] backdrop-blur-xl backdrop-saturate-150 md:flex",
2984
2984
  children: [
2985
- /* @__PURE__ */ U(hr, {
2985
+ /* @__PURE__ */ G(hr, {
2986
2986
  to: t,
2987
2987
  icon: De,
2988
2988
  label: r ?? i("home.title", { defaultValue: "Home" }),
2989
2989
  shown: !0,
2990
2990
  active: s
2991
2991
  }),
2992
- o.length > 0 && /* @__PURE__ */ U("span", {
2992
+ o.length > 0 && /* @__PURE__ */ G("span", {
2993
2993
  "aria-hidden": !0,
2994
2994
  className: "my-1 h-px w-6 bg-border/60"
2995
2995
  }),
2996
- o.map((e) => /* @__PURE__ */ U(hr, {
2996
+ o.map((e) => /* @__PURE__ */ G(hr, {
2997
2997
  to: e.section.areaRoute,
2998
2998
  icon: e.section.icon ?? ur,
2999
2999
  label: e.section.labelKey ? i(e.section.labelKey) : e.section.id,
@@ -3006,33 +3006,33 @@ function mr({ groups: e, homeRoute: t, homeAliases: n, homeLabel: r }) {
3006
3006
  });
3007
3007
  }
3008
3008
  function hr({ to: e, icon: t, label: n, shown: r, count: i = 0, active: a }) {
3009
- let { t: o } = G(), s = i > 0 ? o("bento.nav.count", {
3009
+ let { t: o } = q(), s = i > 0 ? o("bento.nav.count", {
3010
3010
  count: i,
3011
3011
  defaultValue: "{{count}} waiting"
3012
- }) : null, c = /* @__PURE__ */ W(Ue, {
3012
+ }) : null, c = /* @__PURE__ */ K(Ue, {
3013
3013
  to: e,
3014
3014
  "aria-label": s ? `${n}, ${s}` : n,
3015
3015
  "aria-current": a ? "page" : void 0,
3016
3016
  className: `group flex w-full shrink-0 flex-col items-center gap-1 px-1 py-0.5 ${a ? "text-primary" : "text-muted-foreground hover:text-foreground"}`,
3017
- children: [/* @__PURE__ */ W("span", {
3017
+ children: [/* @__PURE__ */ K("span", {
3018
3018
  className: `bento-tile-clickable relative grid h-11 w-11 place-items-center rounded-2xl border transition-colors duration-200 ${a ? "bento-rail-active" : "border-transparent group-hover:border-border/60 group-hover:bg-card/60"}`,
3019
- children: [/* @__PURE__ */ U(t, { size: 20 }), i > 0 && /* @__PURE__ */ U("span", {
3019
+ children: [/* @__PURE__ */ G(t, { size: 20 }), i > 0 && /* @__PURE__ */ G("span", {
3020
3020
  "aria-hidden": !0,
3021
3021
  "data-slot": "bento-rail-count",
3022
3022
  className: "absolute -right-1 -top-1 min-w-4 rounded-full bg-primary px-1 text-center text-[0.6875rem] leading-4 text-primary-foreground",
3023
3023
  children: i > 99 ? "99+" : i
3024
3024
  })]
3025
- }), r && /* @__PURE__ */ U("span", {
3025
+ }), r && /* @__PURE__ */ G("span", {
3026
3026
  "aria-hidden": !0,
3027
3027
  title: n,
3028
3028
  className: "w-full truncate text-center text-[0.6875rem] leading-4",
3029
3029
  children: n
3030
3030
  })]
3031
3031
  });
3032
- return r ? c : /* @__PURE__ */ W(O, { children: [/* @__PURE__ */ U(ae, {
3032
+ return r ? c : /* @__PURE__ */ K(O, { children: [/* @__PURE__ */ G(re, {
3033
3033
  asChild: !0,
3034
3034
  children: c
3035
- }), /* @__PURE__ */ U(w, {
3035
+ }), /* @__PURE__ */ G(w, {
3036
3036
  side: "right",
3037
3037
  children: n
3038
3038
  })] });
@@ -3040,17 +3040,17 @@ function hr({ to: e, icon: t, label: n, shown: r, count: i = 0, active: a }) {
3040
3040
  //#endregion
3041
3041
  //#region src/bento/bento-user-menu.tsx
3042
3042
  function gr({ accountRoute: e, logoutUrl: t, organizationsRoute: n, tenantAdminRoute: r, onOpenShortcuts: i, onReplayTour: a }) {
3043
- let { user: o, status: s } = P(), { t: c } = G(), l = Ke(), u = `${o.firstName ?? ""} ${o.lastName ?? ""}`.trim() || o.username || "";
3044
- return s === "loading" ? /* @__PURE__ */ U("div", {
3043
+ let { user: o, status: s } = P(), { t: c } = q(), l = Ke(), u = `${o.firstName ?? ""} ${o.lastName ?? ""}`.trim() || o.username || "";
3044
+ return s === "loading" ? /* @__PURE__ */ G("div", {
3045
3045
  className: "h-9 w-9 rounded-full bg-muted/40",
3046
3046
  "aria-hidden": !0
3047
- }) : /* @__PURE__ */ W(_, { children: [/* @__PURE__ */ U(F, {
3047
+ }) : /* @__PURE__ */ K(_, { children: [/* @__PURE__ */ G(F, {
3048
3048
  asChild: !0,
3049
- children: /* @__PURE__ */ U("button", {
3049
+ children: /* @__PURE__ */ G("button", {
3050
3050
  type: "button",
3051
3051
  title: u || o.username,
3052
3052
  className: "bento-tile-clickable cursor-pointer rounded-full p-0.5 ring-1 ring-border/60 outline-none transition-shadow duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] bento-ring hover:ring-2 focus-visible:ring-2 focus-visible:ring-ring",
3053
- children: /* @__PURE__ */ U(ne, {
3053
+ children: /* @__PURE__ */ G(L, {
3054
3054
  givenName: o.firstName,
3055
3055
  familyName: o.lastName,
3056
3056
  name: u || o.username,
@@ -3058,70 +3058,70 @@ function gr({ accountRoute: e, logoutUrl: t, organizationsRoute: n, tenantAdminR
3058
3058
  alt: o.username
3059
3059
  })
3060
3060
  })
3061
- }), /* @__PURE__ */ W(d, {
3061
+ }), /* @__PURE__ */ K(d, {
3062
3062
  align: "end",
3063
3063
  sideOffset: 10,
3064
3064
  className: "bento-dropdown min-w-64 p-2",
3065
3065
  children: [
3066
- /* @__PURE__ */ U(y, {
3066
+ /* @__PURE__ */ G(y, {
3067
3067
  className: "p-0 font-normal",
3068
- children: /* @__PURE__ */ W("div", {
3068
+ children: /* @__PURE__ */ K("div", {
3069
3069
  className: "flex items-center gap-3 rounded-xl px-2 py-2 text-left text-sm",
3070
- children: [/* @__PURE__ */ U("span", {
3070
+ children: [/* @__PURE__ */ G("span", {
3071
3071
  className: "rounded-full p-0.5 ring-1 ring-border/60",
3072
- children: /* @__PURE__ */ U(ne, {
3072
+ children: /* @__PURE__ */ G(L, {
3073
3073
  givenName: o.firstName,
3074
3074
  familyName: o.lastName,
3075
3075
  name: u || o.username,
3076
3076
  src: o.avatarUrl || void 0,
3077
3077
  alt: o.username
3078
3078
  })
3079
- }), /* @__PURE__ */ W("div", {
3079
+ }), /* @__PURE__ */ K("div", {
3080
3080
  className: "grid flex-1 text-left text-sm leading-tight",
3081
- children: [u && /* @__PURE__ */ U("span", {
3081
+ children: [u && /* @__PURE__ */ G("span", {
3082
3082
  className: "truncate font-medium",
3083
3083
  children: u
3084
- }), o.email && /* @__PURE__ */ U("span", {
3084
+ }), o.email && /* @__PURE__ */ G("span", {
3085
3085
  className: "truncate text-xs text-muted-foreground",
3086
3086
  children: o.email
3087
3087
  })]
3088
3088
  })]
3089
3089
  })
3090
3090
  }),
3091
- /* @__PURE__ */ U(f, { className: "my-1.5 bg-border/50" }),
3092
- /* @__PURE__ */ W(p, { children: [
3093
- /* @__PURE__ */ W(h, {
3091
+ /* @__PURE__ */ G(f, { className: "my-1.5 bg-border/50" }),
3092
+ /* @__PURE__ */ K(p, { children: [
3093
+ /* @__PURE__ */ K(h, {
3094
3094
  onSelect: () => l(e),
3095
3095
  className: "bento-dropdown-item cursor-pointer gap-2 px-3 py-2",
3096
- children: [/* @__PURE__ */ U(Re, { size: 18 }), c("nav.account")]
3096
+ children: [/* @__PURE__ */ G(Re, { size: 18 }), c("nav.account")]
3097
3097
  }),
3098
- n && /* @__PURE__ */ W(h, {
3098
+ n && /* @__PURE__ */ K(h, {
3099
3099
  onSelect: () => l(n),
3100
3100
  className: "bento-dropdown-item cursor-pointer gap-2 px-3 py-2",
3101
- children: [/* @__PURE__ */ U(ye, { size: 18 }), c("nav.organizations", { defaultValue: "Organizations" })]
3101
+ children: [/* @__PURE__ */ G(_e, { size: 18 }), c("nav.organizations", { defaultValue: "Organizations" })]
3102
3102
  }),
3103
- r && /* @__PURE__ */ W(h, {
3103
+ r && /* @__PURE__ */ K(h, {
3104
3104
  onSelect: () => l(r),
3105
3105
  className: "bento-dropdown-item cursor-pointer gap-2 px-3 py-2",
3106
- children: [/* @__PURE__ */ U(be, { size: 18 }), c("nav.tenantAdmin", { defaultValue: "Tenant administration" })]
3106
+ children: [/* @__PURE__ */ G(ve, { size: 18 }), c("nav.tenantAdmin", { defaultValue: "Tenant administration" })]
3107
3107
  })
3108
3108
  ] }),
3109
- (i || a) && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(f, { className: "my-1.5 bg-border/50" }), /* @__PURE__ */ W(p, { children: [a && /* @__PURE__ */ W(h, {
3109
+ (i || a) && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(f, { className: "my-1.5 bg-border/50" }), /* @__PURE__ */ K(p, { children: [a && /* @__PURE__ */ K(h, {
3110
3110
  onSelect: () => a(),
3111
3111
  className: "bento-dropdown-item cursor-pointer gap-2 px-3 py-2",
3112
- children: [/* @__PURE__ */ U(Fe, { size: 18 }), c("bento.tour.replay", { defaultValue: "Take the tour" })]
3113
- }), i && /* @__PURE__ */ W(h, {
3112
+ children: [/* @__PURE__ */ G(Fe, { size: 18 }), c("bento.tour.replay", { defaultValue: "Take the tour" })]
3113
+ }), i && /* @__PURE__ */ K(h, {
3114
3114
  onSelect: () => i(),
3115
3115
  className: "bento-dropdown-item cursor-pointer gap-2 px-3 py-2",
3116
- children: [/* @__PURE__ */ U(Oe, { size: 18 }), c("bento.shortcuts.title", { defaultValue: "Keyboard shortcuts" })]
3116
+ children: [/* @__PURE__ */ G(Oe, { size: 18 }), c("bento.shortcuts.title", { defaultValue: "Keyboard shortcuts" })]
3117
3117
  })] })] }),
3118
- /* @__PURE__ */ U(f, { className: "my-1.5 bg-border/50" }),
3119
- /* @__PURE__ */ W(h, {
3118
+ /* @__PURE__ */ G(f, { className: "my-1.5 bg-border/50" }),
3119
+ /* @__PURE__ */ K(h, {
3120
3120
  onSelect: () => {
3121
3121
  globalThis.location.href = t;
3122
3122
  },
3123
3123
  className: "bento-dropdown-item cursor-pointer gap-2 px-3 py-2 bento-item-danger",
3124
- children: [/* @__PURE__ */ U(Ae, { size: 18 }), c("nav.logOut")]
3124
+ children: [/* @__PURE__ */ G(Ae, { size: 18 }), c("nav.logOut")]
3125
3125
  })
3126
3126
  ]
3127
3127
  })] });
@@ -3140,24 +3140,24 @@ var _r = {
3140
3140
  };
3141
3141
  function vr({ variant: t = "blue", className: n, children: r }) {
3142
3142
  let i;
3143
- ce.forEach(r, (e) => {
3144
- if (!le(e)) return;
3143
+ oe.forEach(r, (e) => {
3144
+ if (!se(e)) return;
3145
3145
  let { type: t } = e;
3146
3146
  (t === T.Header || t === T.StaticHeader) && (i ??= e.props);
3147
3147
  });
3148
- let a = ce.map(r, (e) => {
3149
- if (!le(e)) return e;
3148
+ let a = oe.map(r, (e) => {
3149
+ if (!se(e)) return e;
3150
3150
  let { type: t } = e;
3151
3151
  return t === T.Header || t === T.StaticHeader ? null : t === T.Content ? e.props.children : e;
3152
3152
  });
3153
- return i ? /* @__PURE__ */ U(Wn, {
3153
+ return i ? /* @__PURE__ */ G(Wn, {
3154
3154
  icon: i.icon,
3155
3155
  tone: _r[t] ?? "blue",
3156
3156
  title: i.title,
3157
3157
  description: i.description,
3158
3158
  className: n,
3159
3159
  children: a
3160
- }) : /* @__PURE__ */ U("section", {
3160
+ }) : /* @__PURE__ */ G("section", {
3161
3161
  className: e(Un, n),
3162
3162
  children: a
3163
3163
  });
@@ -3167,33 +3167,33 @@ vr.Header = T.Header, vr.StaticHeader = T.StaticHeader, vr.Content = T.Content;
3167
3167
  //#region src/bento/bento-section.tsx
3168
3168
  var yr = "bento-grid grid auto-rows-[minmax(140px,auto)] grid-cols-2 gap-4 md:grid-cols-4 md:gap-5 lg:grid-cols-6";
3169
3169
  function br({ eyebrow: e, title: t, description: n, titleHref: r, children: i, gridClassName: a = yr }) {
3170
- let o = /* @__PURE__ */ U("h2", {
3170
+ let o = /* @__PURE__ */ G("h2", {
3171
3171
  className: "text-xl font-semibold tracking-tight md:text-2xl",
3172
3172
  children: t
3173
3173
  });
3174
- return /* @__PURE__ */ W("section", {
3174
+ return /* @__PURE__ */ K("section", {
3175
3175
  className: "mb-8 md:mb-10",
3176
- children: [/* @__PURE__ */ W("header", {
3176
+ children: [/* @__PURE__ */ K("header", {
3177
3177
  className: "bento-shell-header mb-4 flex flex-col gap-0.5",
3178
3178
  children: [
3179
- e && /* @__PURE__ */ U("span", {
3179
+ e && /* @__PURE__ */ G("span", {
3180
3180
  className: "text-xs uppercase tracking-[0.18em] text-muted-foreground",
3181
3181
  children: e
3182
3182
  }),
3183
- r ? /* @__PURE__ */ W(Ue, {
3183
+ r ? /* @__PURE__ */ K(Ue, {
3184
3184
  to: r,
3185
3185
  className: "group inline-flex w-fit items-center gap-1 text-foreground transition-colors hover:text-primary",
3186
- children: [o, /* @__PURE__ */ U(q, {
3186
+ children: [o, /* @__PURE__ */ G(xe, {
3187
3187
  size: 20,
3188
3188
  className: "text-muted-foreground transition-transform duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] group-hover:translate-x-1"
3189
3189
  })]
3190
3190
  }) : o,
3191
- n && /* @__PURE__ */ U("p", {
3191
+ n && /* @__PURE__ */ G("p", {
3192
3192
  className: "max-w-2xl text-sm text-muted-foreground",
3193
3193
  children: n
3194
3194
  })
3195
3195
  ]
3196
- }), /* @__PURE__ */ U("div", {
3196
+ }), /* @__PURE__ */ G("div", {
3197
3197
  className: a,
3198
3198
  children: i
3199
3199
  })]
@@ -3202,57 +3202,57 @@ function br({ eyebrow: e, title: t, description: n, titleHref: r, children: i, g
3202
3202
  //#endregion
3203
3203
  //#region src/bento/bento-tile.tsx
3204
3204
  function xr({ to: t, onClick: n, disabled: r = !1, disabledHint: i, icon: a, tone: o, eyebrow: s, title: c, span: l, featured: u = !1, children: d }) {
3205
- let f = !r && !!(t || n), p = u ? "h-14 w-14 rounded-2xl" : "h-9 w-9 rounded-2xl", m = u ? 28 : 18, h = u ? "text-xl font-semibold tracking-tight md:text-2xl" : "text-base font-semibold tracking-tight md:text-lg", g = /* @__PURE__ */ W(H, { children: [
3206
- u && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U("div", {
3205
+ let f = !r && !!(t || n), p = u ? "h-14 w-14 rounded-2xl" : "h-9 w-9 rounded-2xl", m = u ? 28 : 18, h = u ? "text-xl font-semibold tracking-tight md:text-2xl" : "text-base font-semibold tracking-tight md:text-lg", g = /* @__PURE__ */ K(W, { children: [
3206
+ u && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
3207
3207
  "aria-hidden": !0,
3208
3208
  className: `pointer-events-none absolute -bottom-10 -right-10 h-64 w-64 rounded-full ${Y(o)} opacity-40 blur-2xl dark:opacity-50`
3209
- }), /* @__PURE__ */ U("div", {
3209
+ }), /* @__PURE__ */ G("div", {
3210
3210
  "aria-hidden": !0,
3211
3211
  className: `pointer-events-none absolute right-12 top-1/3 h-32 w-32 rounded-full ${Y(o)} bento-chip-tr opacity-20 blur-2xl dark:opacity-30`
3212
3212
  })] }),
3213
- /* @__PURE__ */ W("div", {
3213
+ /* @__PURE__ */ K("div", {
3214
3214
  className: "relative z-1 flex items-center justify-between",
3215
- children: [/* @__PURE__ */ U("span", {
3215
+ children: [/* @__PURE__ */ G("span", {
3216
3216
  className: `grid place-items-center ${Y(o)} text-white shadow-md ${p}`,
3217
- children: /* @__PURE__ */ U(a, { size: m })
3218
- }), f && /* @__PURE__ */ U(q, {
3217
+ children: /* @__PURE__ */ G(a, { size: m })
3218
+ }), f && /* @__PURE__ */ G(xe, {
3219
3219
  size: u ? 18 : 16,
3220
3220
  className: "text-muted-foreground transition-transform duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] group-hover:translate-x-1"
3221
3221
  })]
3222
3222
  }),
3223
- /* @__PURE__ */ W("div", {
3223
+ /* @__PURE__ */ K("div", {
3224
3224
  className: "relative z-1",
3225
3225
  children: [
3226
- /* @__PURE__ */ U("div", {
3226
+ /* @__PURE__ */ G("div", {
3227
3227
  className: "text-[11px] uppercase tracking-wider text-muted-foreground",
3228
3228
  children: s
3229
3229
  }),
3230
- /* @__PURE__ */ U("div", {
3230
+ /* @__PURE__ */ G("div", {
3231
3231
  className: `mt-0.5 ${h}`,
3232
3232
  children: c
3233
3233
  }),
3234
- d && /* @__PURE__ */ U("div", {
3234
+ d && /* @__PURE__ */ G("div", {
3235
3235
  className: "mt-2",
3236
3236
  children: d
3237
3237
  })
3238
3238
  ]
3239
3239
  })
3240
3240
  ] }), _ = `bento-tile bento-glass group relative flex flex-col ${u ? "gap-5" : "gap-4"} overflow-hidden text-left ${u ? "p-6 md:p-7" : "p-5"} ${l}${f ? " bento-tile-clickable" : ""}${r ? " cursor-not-allowed opacity-60" : ""}`;
3241
- return r ? /* @__PURE__ */ U("div", {
3241
+ return r ? /* @__PURE__ */ G("div", {
3242
3242
  className: _,
3243
3243
  "aria-disabled": "true",
3244
3244
  title: i,
3245
3245
  children: g
3246
- }) : t ? /* @__PURE__ */ U(Ue, {
3246
+ }) : t ? /* @__PURE__ */ G(Ue, {
3247
3247
  to: t,
3248
3248
  className: _,
3249
3249
  children: g
3250
- }) : n ? /* @__PURE__ */ U("button", {
3250
+ }) : n ? /* @__PURE__ */ G("button", {
3251
3251
  type: "button",
3252
3252
  onClick: n,
3253
3253
  className: e("w-full", _),
3254
3254
  children: g
3255
- }) : /* @__PURE__ */ U("div", {
3255
+ }) : /* @__PURE__ */ G("div", {
3256
3256
  className: _,
3257
3257
  children: g
3258
3258
  });
@@ -3260,7 +3260,7 @@ function xr({ to: t, onClick: n, disabled: r = !1, disabledHint: i, icon: a, ton
3260
3260
  //#endregion
3261
3261
  //#region src/bento/bento-version-rail.tsx
3262
3262
  function Sr({ versions: t, selected: n, onSelect: r, label: i }) {
3263
- let { t: a, i18n: o } = G(), [s, c] = B(0), [l, u] = B([]), d = z(/* @__PURE__ */ new Map()), f = (e) => [...e].sort((e, n) => t.findIndex((e) => e.id === n) - t.findIndex((t) => t.id === e));
3263
+ let { t: a, i18n: o } = q(), [s, c] = H(0), [l, u] = H([]), d = V(/* @__PURE__ */ new Map()), f = (e) => [...e].sort((e, n) => t.findIndex((e) => e.id === n) - t.findIndex((t) => t.id === e));
3264
3264
  function p(e) {
3265
3265
  if (n.includes(e)) {
3266
3266
  u(l.filter((t) => t !== e)), r(n.filter((t) => t !== e));
@@ -3308,7 +3308,7 @@ function Sr({ versions: t, selected: n, onSelect: r, label: i }) {
3308
3308
  }).format(t)
3309
3309
  };
3310
3310
  };
3311
- return /* @__PURE__ */ U("ul", {
3311
+ return /* @__PURE__ */ G("ul", {
3312
3312
  role: "listbox",
3313
3313
  "aria-label": i ?? a("bento.versions.label", { defaultValue: "Versions" }),
3314
3314
  "aria-multiselectable": "true",
@@ -3316,7 +3316,7 @@ function Sr({ versions: t, selected: n, onSelect: r, label: i }) {
3316
3316
  className: "m-0 flex list-none flex-col gap-1 p-0",
3317
3317
  children: t.map((r, i) => {
3318
3318
  let o = n.includes(r.id), l = g(r.at), u = r.actor === "agent" ? Ne : Le, f = o ? "text-foreground/80" : "text-muted-foreground";
3319
- return /* @__PURE__ */ W("li", {
3319
+ return /* @__PURE__ */ K("li", {
3320
3320
  ref: (e) => {
3321
3321
  e ? d.current.set(i, e) : d.current.delete(i);
3322
3322
  },
@@ -3329,26 +3329,26 @@ function Sr({ versions: t, selected: n, onSelect: r, label: i }) {
3329
3329
  },
3330
3330
  className: e("flex cursor-pointer flex-col gap-0.5 rounded-xl border px-3 py-2 text-sm outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-ring", o ? "border-primary/50 bg-primary/10" : "border-transparent hover:bg-muted/50"),
3331
3331
  children: [
3332
- /* @__PURE__ */ W("span", {
3332
+ /* @__PURE__ */ K("span", {
3333
3333
  className: "flex items-center gap-1.5 font-medium",
3334
3334
  children: [
3335
- /* @__PURE__ */ U(u, {
3335
+ /* @__PURE__ */ G(u, {
3336
3336
  size: 14,
3337
3337
  "aria-hidden": "true"
3338
3338
  }),
3339
3339
  r.author,
3340
- /* @__PURE__ */ U("span", {
3340
+ /* @__PURE__ */ G("span", {
3341
3341
  className: e("text-xs font-normal", f),
3342
3342
  children: r.actor === "agent" ? a("bento.versions.agent", { defaultValue: "Agent" }) : a("bento.versions.human", { defaultValue: "Person" })
3343
3343
  })
3344
3344
  ]
3345
3345
  }),
3346
- /* @__PURE__ */ U("time", {
3346
+ /* @__PURE__ */ G("time", {
3347
3347
  dateTime: l.iso,
3348
3348
  className: e("text-xs", f),
3349
3349
  children: l.text
3350
3350
  }),
3351
- r.summary && /* @__PURE__ */ U("span", {
3351
+ r.summary && /* @__PURE__ */ G("span", {
3352
3352
  className: "text-xs",
3353
3353
  children: r.summary
3354
3354
  })