@synopackageland/ui 0.17.3 → 0.17.4

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.
@@ -60,13 +60,13 @@ function ov(e) {
60
60
  }
61
61
  }), t;
62
62
  }
63
- function ne(e) {
63
+ function oe(e) {
64
64
  let t = "";
65
65
  if (Ue(e))
66
66
  t = e;
67
67
  else if (be(e))
68
68
  for (let n = 0; n < e.length; n++) {
69
- const o = ne(e[n]);
69
+ const o = oe(e[n]);
70
70
  o && (t += o + " ");
71
71
  }
72
72
  else if (Me(e))
@@ -77,7 +77,7 @@ function ne(e) {
77
77
  function dt(e) {
78
78
  if (!e) return null;
79
79
  let { class: t, style: n } = e;
80
- return t && !Ue(t) && (e.class = ne(t)), n && (e.style = ze(n)), e;
80
+ return t && !Ue(t) && (e.class = oe(t)), n && (e.style = ze(n)), e;
81
81
  }
82
82
  const rv = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", iv = /* @__PURE__ */ yl(rv);
83
83
  function Hd(e) {
@@ -2186,10 +2186,10 @@ function og(e) {
2186
2186
  });
2187
2187
  }
2188
2188
  u && zu(u, e, "c");
2189
- function oe(ce, pe) {
2189
+ function re(ce, pe) {
2190
2190
  be(pe) ? pe.forEach((Fe) => ce(Fe.bind(n))) : pe && ce(pe.bind(n));
2191
2191
  }
2192
- if (oe(Yv, d), oe(Ge, f), oe(If, h), oe(Pl, m), oe(Hv, v), oe(Gv, g), oe(Rf, T), oe(eg, A), oe(Qv, x), oe(Kt, _), oe(rn, b), oe(Xv, I), be(F))
2192
+ if (re(Yv, d), re(Ge, f), re(If, h), re(Pl, m), re(Hv, v), re(Gv, g), re(Rf, T), re(eg, A), re(Qv, x), re(Kt, _), re(rn, b), re(Xv, I), be(F))
2193
2193
  if (F.length) {
2194
2194
  const ce = e.exposed || (e.exposed = {});
2195
2195
  F.forEach((pe) => {
@@ -3205,12 +3205,12 @@ function kg(e, t) {
3205
3205
  B
3206
3206
  );
3207
3207
  if (El(S) && (Y.ctx.renderer = ht), Ig(Y, !1, Q), Y.asyncDep) {
3208
- if (B && B.registerDep(Y, oe, Q), !S.el) {
3208
+ if (B && B.registerDep(Y, re, Q), !S.el) {
3209
3209
  const J = Y.subTree = Z(Wt);
3210
3210
  w(null, J, $, z), S.placeholder = J.el;
3211
3211
  }
3212
3212
  } else
3213
- oe(
3213
+ re(
3214
3214
  Y,
3215
3215
  S,
3216
3216
  $,
@@ -3229,7 +3229,7 @@ function kg(e, t) {
3229
3229
  G.next = $, G.update();
3230
3230
  else
3231
3231
  $.el = S.el, G.vnode = $;
3232
- }, oe = (S, $, z, G, B, j, Q) => {
3232
+ }, re = (S, $, z, G, B, j, Q) => {
3233
3233
  const Y = () => {
3234
3234
  if (S.isMounted) {
3235
3235
  let { next: ae, bu: me, u: _e, parent: H, vnode: ue } = S;
@@ -3741,7 +3741,7 @@ function rp(e) {
3741
3741
  }
3742
3742
  function E(e, t, n, o, r, i) {
3743
3743
  return rp(
3744
- re(
3744
+ ne(
3745
3745
  e,
3746
3746
  t,
3747
3747
  n,
@@ -3775,7 +3775,7 @@ const ip = ({ key: e }) => e ?? null, Si = ({
3775
3775
  ref_key: t,
3776
3776
  ref_for: n
3777
3777
  }) => (typeof e == "number" && (e = "" + e), e != null ? Ue(e) || /* @__PURE__ */ Ke(e) || Se(e) ? { i: gt, r: e, k: t, f: !!n } : e : null);
3778
- function re(e, t = null, n = null, o = 0, r = null, i = e === xe ? 0 : 1, a = !1, s = !1) {
3778
+ function ne(e, t = null, n = null, o = 0, r = null, i = e === xe ? 0 : 1, a = !1, s = !1) {
3779
3779
  const l = {
3780
3780
  __v_isVNode: !0,
3781
3781
  __v_skip: !0,
@@ -3829,10 +3829,10 @@ function $g(e, t = null, n = null, o = 0, r = null, i = !1) {
3829
3829
  if (Mg(e) && (e = e.__vccOpts), t) {
3830
3830
  t = wt(t);
3831
3831
  let { class: s, style: l } = t;
3832
- s && !Ue(s) && (t.class = ne(s)), Me(l) && (/* @__PURE__ */ fa(l) && !be(l) && (l = st({}, l)), t.style = ze(l));
3832
+ s && !Ue(s) && (t.class = oe(s)), Me(l) && (/* @__PURE__ */ fa(l) && !be(l) && (l = st({}, l)), t.style = ze(l));
3833
3833
  }
3834
3834
  const a = Ue(e) ? 1 : op(e) ? 128 : ha(e) ? 64 : Me(e) ? 4 : Se(e) ? 2 : 0;
3835
- return re(
3835
+ return ne(
3836
3836
  e,
3837
3837
  t,
3838
3838
  n,
@@ -3947,7 +3947,7 @@ function ie(...e) {
3947
3947
  const o = e[n];
3948
3948
  for (const r in o)
3949
3949
  if (r === "class")
3950
- t.class !== o.class && (t.class = ne([t.class, o.class]));
3950
+ t.class !== o.class && (t.class = oe([t.class, o.class]));
3951
3951
  else if (r === "style")
3952
3952
  t.style = ze([t.style, o.style]);
3953
3953
  else if (ea(r)) {
@@ -9994,8 +9994,8 @@ Note: state patches appear right after the elements that use them, so the UI fil
9994
9994
  ), a.push(
9995
9995
  "IMPORTANT: `watch` is a top-level field on the element (sibling of type/props/children), NOT inside props. Watchers only fire when the value changes, not on initial render."
9996
9996
  ), a.push(""));
9997
- const oe = t.editModes;
9998
- oe && oe.length > 0 && a.push(Wx({ modes: oe })), a.push("RULES:");
9997
+ const re = t.editModes;
9998
+ re && re.length > 0 && a.push(Wx({ modes: re })), a.push("RULES:");
9999
9999
  const ce = i === "inline" ? [
10000
10000
  "When generating UI, wrap all JSONL patches in a ```spec code fence - one JSON object per line inside the fence",
10001
10001
  "Write a brief conversational response before any JSONL output",
@@ -12967,19 +12967,19 @@ const Ek = ["aria-label"], $h = /* @__PURE__ */ D({
12967
12967
  "--ui-spin-stroke": n.inline ? Math.max(2, 32 / Math.max(1, n.size)) : Math.max(2, 36 / Math.max(1, n.size))
12968
12968
  }));
12969
12969
  return (r, i) => (y(), E("span", {
12970
- class: ne(["ui-spin", { "ui-spin-inline": p(n).inline }]),
12970
+ class: oe(["ui-spin", { "ui-spin-inline": p(n).inline }]),
12971
12971
  role: "status",
12972
12972
  "aria-label": p(n).label,
12973
12973
  style: ze(o.value),
12974
12974
  "data-syno-pkg-land-ui": ""
12975
12975
  }, [...i[0] || (i[0] = [
12976
- re("svg", {
12976
+ ne("svg", {
12977
12977
  class: "ui-spin-ring",
12978
12978
  viewBox: "0 0 16 16",
12979
12979
  "aria-hidden": "true",
12980
12980
  focusable: "false"
12981
12981
  }, [
12982
- re("circle", {
12982
+ ne("circle", {
12983
12983
  class: "ui-spin-arc",
12984
12984
  cx: "8",
12985
12985
  cy: "8",
@@ -13056,7 +13056,7 @@ const Dk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
13056
13056
  ref_key: "buttonEl",
13057
13057
  ref: s,
13058
13058
  type: e.type,
13059
- class: ne(f.value),
13059
+ class: oe(f.value),
13060
13060
  disabled: e.disabled || r.value,
13061
13061
  "data-disabled": e.disabled || void 0,
13062
13062
  "data-loading": r.value || void 0,
@@ -13070,10 +13070,10 @@ const Dk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
13070
13070
  r.value ? (y(), E("span", Nk, [
13071
13071
  Z($h, { size: 16 })
13072
13072
  ])) : V("", !0),
13073
- re("span", {
13073
+ ne("span", {
13074
13074
  ref_key: "labelEl",
13075
13075
  ref: a,
13076
- class: ne(["min-w-0 truncate [&>svg]:inline-block [&>svg]:shrink-0 [&>svg]:align-middle", !l.value && "[&>svg:first-child]:mr-2 [&>svg:not(:first-child)]:ml-2"]),
13076
+ class: oe(["min-w-0 truncate [&>svg]:inline-block [&>svg]:shrink-0 [&>svg]:align-middle", !l.value && "[&>svg:first-child]:mr-2 [&>svg:not(:first-child)]:ml-2"]),
13077
13077
  "data-icon-only": l.value || void 0
13078
13078
  }, [
13079
13079
  R(h.$slots, "default")
@@ -13441,7 +13441,7 @@ const SC = {
13441
13441
  class: "relative inline-flex w-full min-w-0 items-center",
13442
13442
  "data-syno-pkg-land-ui": ""
13443
13443
  }), [
13444
- re("input", ie(p(c)(), {
13444
+ ne("input", ie(p(c)(), {
13445
13445
  value: e.modelValue,
13446
13446
  type: s.value,
13447
13447
  name: n.name,
@@ -13453,7 +13453,7 @@ const SC = {
13453
13453
  p(d)(v.target.value), o("update:modelValue", v.target.value);
13454
13454
  })
13455
13455
  }), null, 16, xC),
13456
- re("button", {
13456
+ ne("button", {
13457
13457
  type: "button",
13458
13458
  "data-ui-password-toggle": "",
13459
13459
  disabled: e.disabled,
@@ -16390,14 +16390,14 @@ const NA = 50, MA = async (e, t, n) => {
16390
16390
  }, h = fu(r), m = du(h), v = await a.getDimensions(c), g = h === "y", w = g ? "top" : "left", _ = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", b = i.reference[m] + i.reference[h] - f[h] - i.floating[m], k = f[h] - i.reference[h], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
16391
16391
  let x = A ? A[C] : 0;
16392
16392
  (!x || !await (a.isElement == null ? void 0 : a.isElement(A))) && (x = s.floating[C] || i.floating[m]);
16393
- const T = b / 2 - k / 2, I = x / 2 - v[m] / 2 - 1, F = oo(d[w], I), W = oo(d[_], I), X = x - v[m] - W, te = x / 2 - v[m] / 2 + T, fe = Gh(F, te, X), K = !l.arrow && dr(r) != null && te !== fe && i.reference[m] / 2 - (te < F ? F : W) - v[m] / 2 < 0, oe = K ? te < F ? te - F : te - X : 0;
16393
+ const T = b / 2 - k / 2, I = x / 2 - v[m] / 2 - 1, F = oo(d[w], I), W = oo(d[_], I), X = x - v[m] - W, te = x / 2 - v[m] / 2 + T, fe = Gh(F, te, X), K = !l.arrow && dr(r) != null && te !== fe && i.reference[m] / 2 - (te < F ? F : W) - v[m] / 2 < 0, re = K ? te < F ? te - F : te - X : 0;
16394
16394
  return {
16395
- [h]: f[h] + oe,
16395
+ [h]: f[h] + re,
16396
16396
  data: {
16397
16397
  [h]: fe,
16398
- centerOffset: te - fe - oe,
16398
+ centerOffset: te - fe - re,
16399
16399
  ...K && {
16400
- alignmentOffset: oe
16400
+ alignmentOffset: re
16401
16401
  }
16402
16402
  },
16403
16403
  reset: K
@@ -16453,8 +16453,8 @@ const NA = 50, MA = async (e, t, n) => {
16453
16453
  placement: K
16454
16454
  }
16455
16455
  };
16456
- let oe = (X = F.filter((ce) => ce.overflows[0] <= 0).sort((ce, pe) => ce.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : X.placement;
16457
- if (!oe)
16456
+ let re = (X = F.filter((ce) => ce.overflows[0] <= 0).sort((ce, pe) => ce.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : X.placement;
16457
+ if (!re)
16458
16458
  switch (h) {
16459
16459
  case "bestFit": {
16460
16460
  var te;
@@ -16467,17 +16467,17 @@ const NA = 50, MA = async (e, t, n) => {
16467
16467
  }
16468
16468
  return !0;
16469
16469
  }).map((pe) => [pe.placement, pe.overflows.filter((Fe) => Fe > 0).reduce((Fe, ye) => Fe + ye, 0)]).sort((pe, Fe) => pe[1] - Fe[1])[0]) == null ? void 0 : te[0];
16470
- ce && (oe = ce);
16470
+ ce && (re = ce);
16471
16471
  break;
16472
16472
  }
16473
16473
  case "initialPlacement":
16474
- oe = s;
16474
+ re = s;
16475
16475
  break;
16476
16476
  }
16477
- if (r !== oe)
16477
+ if (r !== re)
16478
16478
  return {
16479
16479
  reset: {
16480
- placement: oe
16480
+ placement: re
16481
16481
  }
16482
16482
  };
16483
16483
  }
@@ -17341,7 +17341,7 @@ const SO = ["dir"], im = {
17341
17341
  positionStrategy: "fixed",
17342
17342
  updatePositionStrategy: "optimized",
17343
17343
  prioritizePosition: !1
17344
- }, [kN, xO] = /* @__PURE__ */ We("PopperContent");
17344
+ }, [AN, xO] = /* @__PURE__ */ We("PopperContent");
17345
17345
  var kO = /* @__PURE__ */ D({
17346
17346
  inheritAttrs: !1,
17347
17347
  __name: "PopperContent",
@@ -17471,9 +17471,9 @@ var kO = /* @__PURE__ */ D({
17471
17471
  }),
17472
17472
  hO({
17473
17473
  ...g.value,
17474
- apply: ({ elements: fe, rects: K, availableWidth: oe, availableHeight: ce }) => {
17474
+ apply: ({ elements: fe, rects: K, availableWidth: re, availableHeight: ce }) => {
17475
17475
  const { width: pe, height: Fe } = K.reference, ye = fe.floating.style;
17476
- ye.setProperty("--reka-popper-available-width", `${oe}px`), ye.setProperty("--reka-popper-available-height", `${ce}px`), ye.setProperty("--reka-popper-anchor-width", `${pe}px`), ye.setProperty("--reka-popper-anchor-height", `${Fe}px`);
17476
+ ye.setProperty("--reka-popper-available-width", `${re}px`), ye.setProperty("--reka-popper-available-height", `${ce}px`), ye.setProperty("--reka-popper-anchor-width", `${pe}px`), ye.setProperty("--reka-popper-anchor-height", `${Fe}px`);
17477
17477
  }
17478
17478
  }),
17479
17479
  u.value && wO({
@@ -18165,14 +18165,14 @@ var UO = /* @__PURE__ */ D({
18165
18165
  Vh(), nu(s.value);
18166
18166
  const c = /* @__PURE__ */ M(""), u = /* @__PURE__ */ M(0), d = /* @__PURE__ */ M(0), f = /* @__PURE__ */ M(null), h = /* @__PURE__ */ M("right"), m = /* @__PURE__ */ M(0), v = /* @__PURE__ */ M(null), g = /* @__PURE__ */ M(), { forwardRef: w, currentElement: _ } = we(), { handleTypeaheadSearch: C } = ru(), b = /* @__PURE__ */ M();
18167
18167
  function k(K) {
18168
- const oe = sd(K, b.value || ot(), _.value, {
18168
+ const re = sd(K, b.value || ot(), _.value, {
18169
18169
  loop: l.value,
18170
18170
  arrowKeyOptions: "vertical",
18171
18171
  dir: i?.dir.value,
18172
18172
  focus: !1,
18173
18173
  attributeName: "[data-reka-collection-item]:not([data-disabled])"
18174
18174
  });
18175
- oe && (b.value = oe, oe.scrollIntoView({ block: "nearest" }));
18175
+ re && (b.value = re, re.scrollIntoView({ block: "nearest" }));
18176
18176
  }
18177
18177
  function A() {
18178
18178
  b.value && b.value.click();
@@ -18196,7 +18196,7 @@ var UO = /* @__PURE__ */ D({
18196
18196
  }
18197
18197
  function W(K) {
18198
18198
  if (K.defaultPrevented) return;
18199
- const oe = K.target, ce = oe.closest("[data-reka-menu-content]") === K.currentTarget, pe = ["input", "textarea"].includes(oe.tagName.toLowerCase()), Fe = K.ctrlKey || K.altKey || K.metaKey, ye = K.key.length === 1, Ae = sd(K, ot(), _.value, {
18199
+ const re = K.target, ce = re.closest("[data-reka-menu-content]") === K.currentTarget, pe = ["input", "textarea"].includes(re.tagName.toLowerCase()), Fe = K.ctrlKey || K.altKey || K.metaKey, ye = K.key.length === 1, Ae = sd(K, ot(), _.value, {
18200
18200
  loop: l.value,
18201
18201
  arrowKeyOptions: "vertical",
18202
18202
  dir: i?.dir.value,
@@ -18216,8 +18216,8 @@ var UO = /* @__PURE__ */ D({
18216
18216
  }
18217
18217
  function te(K) {
18218
18218
  if (!nr(K)) return;
18219
- const oe = K.target, ce = m.value !== K.clientX;
18220
- if (K?.currentTarget?.contains(oe) && ce) {
18219
+ const re = K.target, ce = m.value !== K.clientX;
18220
+ if (K?.currentTarget?.contains(re) && ce) {
18221
18221
  const pe = K.clientX > m.value ? "right" : "left";
18222
18222
  h.value = pe, m.value = K.clientX;
18223
18223
  }
@@ -18242,31 +18242,31 @@ var UO = /* @__PURE__ */ D({
18242
18242
  onPointerGraceIntentChange: (K) => {
18243
18243
  f.value = K;
18244
18244
  }
18245
- }), (K, oe) => (y(), N(p(iu), {
18245
+ }), (K, re) => (y(), N(p(iu), {
18246
18246
  "as-child": "",
18247
18247
  trapped: p(a),
18248
18248
  onMountAutoFocus: F,
18249
- onUnmountAutoFocus: oe[7] || (oe[7] = (ce) => o("closeAutoFocus", ce))
18249
+ onUnmountAutoFocus: re[7] || (re[7] = (ce) => o("closeAutoFocus", ce))
18250
18250
  }, {
18251
18251
  default: P(() => [Z(p($a), {
18252
18252
  "as-child": "",
18253
18253
  "disable-outside-pointer-events": p(s),
18254
- onEscapeKeyDown: oe[2] || (oe[2] = (ce) => o("escapeKeyDown", ce)),
18255
- onPointerDownOutside: oe[3] || (oe[3] = (ce) => o("pointerDownOutside", ce)),
18256
- onFocusOutside: oe[4] || (oe[4] = (ce) => o("focusOutside", ce)),
18257
- onInteractOutside: oe[5] || (oe[5] = (ce) => o("interactOutside", ce)),
18258
- onDismiss: oe[6] || (oe[6] = (ce) => o("dismiss"))
18254
+ onEscapeKeyDown: re[2] || (re[2] = (ce) => o("escapeKeyDown", ce)),
18255
+ onPointerDownOutside: re[3] || (re[3] = (ce) => o("pointerDownOutside", ce)),
18256
+ onFocusOutside: re[4] || (re[4] = (ce) => o("focusOutside", ce)),
18257
+ onInteractOutside: re[5] || (re[5] = (ce) => o("interactOutside", ce)),
18258
+ onDismiss: re[6] || (re[6] = (ce) => o("dismiss"))
18259
18259
  }, {
18260
18260
  default: P(() => [Z(p(am), {
18261
18261
  ref_key: "rovingFocusGroupRef",
18262
18262
  ref: g,
18263
18263
  "current-tab-stop-id": v.value,
18264
- "onUpdate:currentTabStopId": oe[0] || (oe[0] = (ce) => v.value = ce),
18264
+ "onUpdate:currentTabStopId": re[0] || (re[0] = (ce) => v.value = ce),
18265
18265
  "as-child": "",
18266
18266
  orientation: "vertical",
18267
18267
  dir: p(i).dir.value,
18268
18268
  loop: p(l),
18269
- onEntryFocus: oe[1] || (oe[1] = (ce) => {
18269
+ onEntryFocus: re[1] || (re[1] = (ce) => {
18270
18270
  o("entryFocus", ce), p(i).isUsingKeyboardRef.value || ce.preventDefault();
18271
18271
  })
18272
18272
  }, {
@@ -18880,7 +18880,7 @@ var HO = /* @__PURE__ */ D({
18880
18880
  }, 8, ["present"]));
18881
18881
  }
18882
18882
  }), o$ = n$;
18883
- const [CN, r$] = /* @__PURE__ */ We("MenuGroup");
18883
+ const [ON, r$] = /* @__PURE__ */ We("MenuGroup");
18884
18884
  var i$ = /* @__PURE__ */ D({
18885
18885
  __name: "MenuGroup",
18886
18886
  props: {
@@ -20489,7 +20489,7 @@ var pE = /* @__PURE__ */ D({
20489
20489
  o.onValueChange(i.target.value);
20490
20490
  }
20491
20491
  return (i, a) => (y(), N(p(lu), { "as-child": "" }, {
20492
- default: P(() => [re("select", ie({
20492
+ default: P(() => [ne("select", ie({
20493
20493
  ref_key: "selectElement",
20494
20494
  ref: n
20495
20495
  }, t, { onInput: r }), [R(i.$slots, "default")], 16)]),
@@ -20892,7 +20892,7 @@ var kE = /* @__PURE__ */ D({
20892
20892
  const Ye = b.right - A.right, _t = window.innerWidth - k.right - Ye, It = window.innerWidth - C.right - _t, ht = C.width + It, Wn = Math.max(ht, b.width), S = window.innerWidth - Gt, $ = rd(_t, Gt, Math.max(Gt, S - Wn));
20893
20893
  c.value.style.minWidth = `${ht}px`, c.value.style.right = `${$}px`;
20894
20894
  }
20895
- const x = r().map((Ye) => Ye.ref), T = window.innerHeight - Gt * 2, I = f.value.scrollHeight, F = window.getComputedStyle(d.value), W = Number.parseInt(F.borderTopWidth, 10), X = Number.parseInt(F.paddingTop, 10), te = Number.parseInt(F.borderBottomWidth, 10), fe = Number.parseInt(F.paddingBottom, 10), K = W + X + I + fe + te, oe = Math.min(h.value.offsetHeight * 5, K), ce = window.getComputedStyle(f.value), pe = Number.parseInt(ce.paddingTop, 10), Fe = Number.parseInt(ce.paddingBottom, 10), ye = C.top + C.height / 2 - Gt, Ae = T - ye, je = h.value.offsetHeight / 2, ft = h.value.offsetTop + je, ve = W + X + ft, rt = K - ve;
20895
+ const x = r().map((Ye) => Ye.ref), T = window.innerHeight - Gt * 2, I = f.value.scrollHeight, F = window.getComputedStyle(d.value), W = Number.parseInt(F.borderTopWidth, 10), X = Number.parseInt(F.paddingTop, 10), te = Number.parseInt(F.borderBottomWidth, 10), fe = Number.parseInt(F.paddingBottom, 10), K = W + X + I + fe + te, re = Math.min(h.value.offsetHeight * 5, K), ce = window.getComputedStyle(f.value), pe = Number.parseInt(ce.paddingTop, 10), Fe = Number.parseInt(ce.paddingBottom, 10), ye = C.top + C.height / 2 - Gt, Ae = T - ye, je = h.value.offsetHeight / 2, ft = h.value.offsetTop + je, ve = W + X + ft, rt = K - ve;
20896
20896
  if (ve <= ye) {
20897
20897
  const Ye = h.value === x.at(-1);
20898
20898
  c.value.style.bottom = "0px";
@@ -20904,7 +20904,7 @@ var kE = /* @__PURE__ */ D({
20904
20904
  const It = Math.max(ye, W + f.value.offsetTop + (Ye ? pe : 0) + je) + rt;
20905
20905
  c.value.style.height = `${It}px`, f.value.scrollTop = ve - ye + f.value.offsetTop;
20906
20906
  }
20907
- c.value.style.margin = `${Gt}px 0`, c.value.style.minHeight = `${oe}px`, c.value.style.maxHeight = `${T}px`, o("placed"), requestAnimationFrame(() => s.value = !0);
20907
+ c.value.style.margin = `${Gt}px 0`, c.value.style.minHeight = `${re}px`, c.value.style.maxHeight = `${T}px`, o("placed"), requestAnimationFrame(() => s.value = !0);
20908
20908
  }
20909
20909
  }
20910
20910
  const w = /* @__PURE__ */ M("");
@@ -22317,12 +22317,12 @@ const vP = ["for"], gP = {
22317
22317
  c.value ? (y(), E("label", {
22318
22318
  key: 0,
22319
22319
  for: l.value,
22320
- class: ne(["ui-checkbox-text min-w-0 break-words font-normal [overflow-wrap:anywhere]", n.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
22320
+ class: oe(["ui-checkbox-text min-w-0 break-words font-normal [overflow-wrap:anywhere]", n.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
22321
22321
  }, [
22322
22322
  n.label ? (y(), E("span", gP, ee(n.label), 1)) : V("", !0),
22323
22323
  n.description ? (y(), E("span", {
22324
22324
  key: 1,
22325
- class: ne(["mt-0.5 block text-[12px] leading-4", n.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
22325
+ class: oe(["mt-0.5 block text-[12px] leading-4", n.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
22326
22326
  }, ee(n.description), 3)) : V("", !0)
22327
22327
  ], 10, vP)) : V("", !0)
22328
22328
  ], 16));
@@ -22388,7 +22388,7 @@ const vP = ["for"], gP = {
22388
22388
  default: P(() => [
22389
22389
  (y(!0), E(xe, null, nt(n.options, (c) => (y(), E("label", {
22390
22390
  key: c.value,
22391
- class: ne(["flex min-w-0 items-start gap-[var(--ui-choice-box-gap)] text-[13px] [@media(pointer:coarse)]:min-h-8 [@media(pointer:coarse)]:items-center text-[var(--ui-text)]", n.disabled || c.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
22391
+ class: oe(["flex min-w-0 items-start gap-[var(--ui-choice-box-gap)] text-[13px] [@media(pointer:coarse)]:min-h-8 [@media(pointer:coarse)]:items-center text-[var(--ui-text)]", n.disabled || c.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
22392
22392
  }, [
22393
22393
  Z(p(aE), {
22394
22394
  value: c.value,
@@ -22400,11 +22400,11 @@ const vP = ["for"], gP = {
22400
22400
  ]),
22401
22401
  _: 1
22402
22402
  }, 8, ["value", "disabled"]),
22403
- re("span", _P, [
22404
- re("span", SP, ee(c.label), 1),
22403
+ ne("span", _P, [
22404
+ ne("span", SP, ee(c.label), 1),
22405
22405
  c.description ? (y(), E("span", {
22406
22406
  key: 0,
22407
- class: ne(["mt-0.5 block text-[12px] leading-4", n.disabled || c.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
22407
+ class: oe(["mt-0.5 block text-[12px] leading-4", n.disabled || c.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
22408
22408
  }, ee(c.description), 3)) : V("", !0)
22409
22409
  ])
22410
22410
  ], 2))), 128))
@@ -22589,7 +22589,7 @@ const $P = { key: 0 }, EP = { key: 1 }, PP = { key: 2 }, TP = {
22589
22589
  }, {
22590
22590
  default: P(() => [
22591
22591
  u.value ? (y(), E("div", TP, [
22592
- xo(re("input", {
22592
+ xo(ne("input", {
22593
22593
  ref_key: "searchInput",
22594
22594
  ref: s,
22595
22595
  "onUpdate:modelValue": T[0] || (T[0] = (I) => i.value = I),
@@ -22627,10 +22627,10 @@ const $P = { key: 0 }, EP = { key: 1 }, PP = { key: 2 }, TP = {
22627
22627
  value: F.value,
22628
22628
  "text-value": F.label,
22629
22629
  disabled: F.disabled,
22630
- class: ne(["relative flex h-8 select-none items-center rounded-[var(--ui-radius-sm)] py-1 pr-8 text-[13px] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-neutral-soft)] data-[state=checked]:bg-[var(--ui-surface-selected)] data-[disabled]:opacity-40", I.label && I.indent ? "pl-5" : "pl-2.5"])
22630
+ class: oe(["relative flex h-8 select-none items-center rounded-[var(--ui-radius-sm)] py-1 pr-8 text-[13px] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-neutral-soft)] data-[state=checked]:bg-[var(--ui-surface-selected)] data-[disabled]:opacity-40", I.label && I.indent ? "pl-5" : "pl-2.5"])
22631
22631
  }, {
22632
22632
  default: P(() => [
22633
- re("span", DP, [
22633
+ ne("span", DP, [
22634
22634
  Z(p(jE), null, {
22635
22635
  default: P(() => [
22636
22636
  Ne(ee(F.label), 1)
@@ -22833,7 +22833,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
22833
22833
  align: e.align,
22834
22834
  "side-offset": 4,
22835
22835
  "collision-padding": 8,
22836
- class: ne(p(Tm)),
22836
+ class: oe(p(Tm)),
22837
22837
  "data-ui-tooltip": "",
22838
22838
  "data-ui-overflow-tooltip": "",
22839
22839
  "data-syno-pkg-land-ui": ""
@@ -22866,7 +22866,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
22866
22866
  },
22867
22867
  setup(e) {
22868
22868
  return (t, n) => (y(), E("span", {
22869
- class: ne([
22869
+ class: oe([
22870
22870
  "inline-flex min-h-5 items-center gap-1.5 rounded-full px-2 py-0.5 text-[12px] font-normal leading-4 tabular-nums",
22871
22871
  e.tone === "neutral" && "bg-[var(--ui-neutral-soft)] text-[var(--ui-neutral-text)]",
22872
22872
  e.tone === "info" && "bg-[var(--ui-info-soft)] text-[var(--ui-info-text)]",
@@ -22957,15 +22957,15 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
22957
22957
  danger: "bg-[var(--ui-danger)]"
22958
22958
  }, i = O(() => o.max <= 0 ? 0 : Math.min(100, Math.max(0, o.value / o.max * 100)));
22959
22959
  return (a, s) => (y(), E("div", {
22960
- class: ne(p(t).class),
22960
+ class: oe(p(t).class),
22961
22961
  style: ze(p(t).style),
22962
22962
  "data-syno-pkg-land-ui": ""
22963
22963
  }, [
22964
22964
  e.label || e.valueLabel ? (y(), E("div", tT, [
22965
- re("span", null, ee(e.label), 1),
22966
- re("span", nT, ee(e.valueLabel ?? `${Math.round(i.value)}%`), 1)
22965
+ ne("span", null, ee(e.label), 1),
22966
+ ne("span", nT, ee(e.valueLabel ?? `${Math.round(i.value)}%`), 1)
22967
22967
  ])) : V("", !0),
22968
- re("div", ie({
22968
+ ne("div", ie({
22969
22969
  class: ["overflow-hidden rounded-full bg-[var(--ui-border-subtle)]", e.size === "sm" ? "h-1" : "h-1.5"],
22970
22970
  role: "progressbar",
22971
22971
  "aria-valuenow": o.value,
@@ -22974,8 +22974,8 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
22974
22974
  "aria-label": e.label,
22975
22975
  "data-tone": e.tone
22976
22976
  }, n()), [
22977
- re("div", {
22978
- class: ne(["h-full rounded-full transition-[width] duration-[var(--ui-motion-normal)]", r[e.tone]]),
22977
+ ne("div", {
22978
+ class: oe(["h-full rounded-full transition-[width] duration-[var(--ui-motion-normal)]", r[e.tone]]),
22979
22979
  style: ze({ width: `${i.value}%` })
22980
22980
  }, null, 6)
22981
22981
  ], 16, oT)
@@ -23007,7 +23007,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23007
23007
  setup(e) {
23008
23008
  const t = Vn();
23009
23009
  return (n, o) => (y(), E("div", iT, [
23010
- re("span", aT, ee(p(t)("Loading…")), 1),
23010
+ ne("span", aT, ee(p(t)("Loading…")), 1),
23011
23011
  (y(!0), E(xe, null, nt(e.lines, (r) => (y(), N(rT, {
23012
23012
  key: r,
23013
23013
  "data-ui-skeleton-line": "",
@@ -23026,7 +23026,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23026
23026
  setup(e) {
23027
23027
  const t = e, n = { none: "", sm: "p-3", md: "p-4", lg: "p-6" }, o = O(() => t.variant === "inset"), r = O(() => t.padding ? n[t.padding] : o.value ? "px-4 py-3" : n.md);
23028
23028
  return (i, a) => (y(), E("section", {
23029
- class: ne([
23029
+ class: oe([
23030
23030
  "rounded-[var(--ui-radius-md)]",
23031
23031
  o.value ? "bg-[var(--ui-surface-inset)]" : "bg-[var(--ui-surface)]",
23032
23032
  e.border && !o.value && "border border-[var(--ui-border-subtle)]",
@@ -23085,7 +23085,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23085
23085
  Z(p(xm), {
23086
23086
  side: e.side,
23087
23087
  "side-offset": 4,
23088
- class: ne(p(Tm)),
23088
+ class: oe(p(Tm)),
23089
23089
  "data-ui-tooltip": "",
23090
23090
  "data-syno-pkg-land-ui": ""
23091
23091
  }, {
@@ -23160,7 +23160,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23160
23160
  default: P(() => [
23161
23161
  Z(p(K$), {
23162
23162
  disabled: u.item.disabled,
23163
- class: ne([
23163
+ class: oe([
23164
23164
  yi,
23165
23165
  "data-[state=open]:bg-[var(--ui-primary-soft)]",
23166
23166
  u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
@@ -23169,7 +23169,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23169
23169
  default: P(() => [
23170
23170
  i.value ? (y(), E("span", {
23171
23171
  key: 0,
23172
- class: ne(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
23172
+ class: oe(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
23173
23173
  }, [
23174
23174
  u.item.checked ? (y(), N(p(Vo), {
23175
23175
  key: 0,
@@ -23181,7 +23181,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23181
23181
  "aria-hidden": "true"
23182
23182
  })) : V("", !0)
23183
23183
  ], 2)) : V("", !0),
23184
- re("span", lT, ee(u.item.label), 1),
23184
+ ne("span", lT, ee(u.item.label), 1),
23185
23185
  u.item.shortcut ? (y(), E("span", uT, ee(u.item.shortcut), 1)) : V("", !0),
23186
23186
  Z(p(Ks), {
23187
23187
  class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
@@ -23223,7 +23223,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23223
23223
  key: 2,
23224
23224
  "model-value": e.checkedKeys.includes(u.item.key),
23225
23225
  disabled: u.item.disabled,
23226
- class: ne([
23226
+ class: oe([
23227
23227
  yi,
23228
23228
  u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
23229
23229
  ]),
@@ -23231,7 +23231,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23231
23231
  onSelect: kt((d) => o("select", u.item.key), ["prevent"])
23232
23232
  }, {
23233
23233
  default: P(() => [
23234
- re("span", cT, [
23234
+ ne("span", cT, [
23235
23235
  Z(p(Od), null, {
23236
23236
  default: P(() => [
23237
23237
  Z(p(Vo), {
@@ -23242,7 +23242,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23242
23242
  _: 1
23243
23243
  })
23244
23244
  ]),
23245
- re("span", dT, ee(u.item.label), 1),
23245
+ ne("span", dT, ee(u.item.label), 1),
23246
23246
  u.item.hint ? (y(), E("span", fT, ee(u.item.hint), 1)) : V("", !0),
23247
23247
  u.item.shortcut ? (y(), E("span", pT, ee(u.item.shortcut), 1)) : V("", !0)
23248
23248
  ]),
@@ -23256,14 +23256,14 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23256
23256
  key: d.key,
23257
23257
  value: d.value,
23258
23258
  disabled: d.disabled,
23259
- class: ne([
23259
+ class: oe([
23260
23260
  yi,
23261
23261
  d.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
23262
23262
  ]),
23263
23263
  onSelect: (f) => o("radio", d.value, d.key, u.group)
23264
23264
  }, {
23265
23265
  default: P(() => [
23266
- re("span", hT, [
23266
+ ne("span", hT, [
23267
23267
  Z(p(Od), null, {
23268
23268
  default: P(() => [
23269
23269
  e.radioIndicator === "check" ? (y(), N(p(Vo), {
@@ -23275,7 +23275,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23275
23275
  _: 1
23276
23276
  })
23277
23277
  ]),
23278
- re("span", vT, ee(d.label), 1),
23278
+ ne("span", vT, ee(d.label), 1),
23279
23279
  d.shortcut ? (y(), E("span", gT, ee(d.shortcut), 1)) : V("", !0)
23280
23280
  ]),
23281
23281
  _: 2
@@ -23285,7 +23285,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23285
23285
  }, 1032, ["model-value"])) : (y(), N(p(I$), {
23286
23286
  key: 4,
23287
23287
  disabled: u.item.disabled,
23288
- class: ne([
23288
+ class: oe([
23289
23289
  yi,
23290
23290
  u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
23291
23291
  ]),
@@ -23294,7 +23294,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23294
23294
  default: P(() => [
23295
23295
  i.value ? (y(), E("span", {
23296
23296
  key: 0,
23297
- class: ne(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
23297
+ class: oe(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
23298
23298
  }, [
23299
23299
  u.item.checked ? (y(), N(p(Vo), {
23300
23300
  key: 0,
@@ -23306,7 +23306,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
23306
23306
  "aria-hidden": "true"
23307
23307
  })) : V("", !0)
23308
23308
  ], 2)) : V("", !0),
23309
- re("span", yT, ee(u.item.label), 1),
23309
+ ne("span", yT, ee(u.item.label), 1),
23310
23310
  u.item.shortcut ? (y(), E("span", bT, ee(u.item.shortcut), 1)) : V("", !0),
23311
23311
  u.item.submenu ? (y(), N(p(Ks), {
23312
23312
  key: 2,
@@ -23670,7 +23670,7 @@ const zT = /* @__PURE__ */ D({
23670
23670
  default: P(() => [
23671
23671
  Z(p(oA), {
23672
23672
  "data-ui-overlay": "",
23673
- class: ne(["fixed inset-0 z-[1200]", c[p(o).scrim]]),
23673
+ class: oe(["fixed inset-0 z-[1200]", c[p(o).scrim]]),
23674
23674
  "data-ui-scrim": p(o).scrim
23675
23675
  }, null, 8, ["class", "data-ui-scrim"]),
23676
23676
  Z(zT, { host: d.value }, {
@@ -23703,13 +23703,13 @@ const zT = /* @__PURE__ */ D({
23703
23703
  T.value ? (y(), E("header", {
23704
23704
  key: 0,
23705
23705
  ref: "handle",
23706
- class: ne(["flex min-h-10 shrink-0 items-start justify-between gap-4 pr-3", [p(o).headerDivider ? "border-b border-[var(--ui-border-subtle)] py-2.5 pl-5" : "pt-3.5 pb-0 pl-6", p(h) && "cursor-move touch-none select-none"]]),
23706
+ class: oe(["flex min-h-10 shrink-0 items-start justify-between gap-4 pr-3", [p(o).headerDivider ? "border-b border-[var(--ui-border-subtle)] py-2.5 pl-5" : "pt-3.5 pb-0 pl-6", p(h) && "cursor-move touch-none select-none"]]),
23707
23707
  "data-ui-dialog-header-divider": p(o).headerDivider ? void 0 : "none",
23708
23708
  "data-ui-drag-handle": p(h) ? "" : void 0,
23709
23709
  onPointerdown: X[1] || (X[1] = //@ts-ignore
23710
23710
  (...te) => p(m) && p(m)(...te))
23711
23711
  }, [
23712
- re("div", LT, [
23712
+ ne("div", LT, [
23713
23713
  p(o).title ? (y(), N(p(lA), ie({
23714
23714
  key: 0,
23715
23715
  class: "text-[length:var(--ui-font-size)] leading-5 font-bold text-[var(--ui-text)] [overflow-wrap:anywhere] outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]"
@@ -23750,14 +23750,14 @@ const zT = /* @__PURE__ */ D({
23750
23750
  x() ? (y(), E("div", {
23751
23751
  key: 1,
23752
23752
  "data-ui-dialog-body": "",
23753
- class: ne(["min-h-0 flex-1", p(o).flush ? "flex flex-col overflow-hidden" : ["overflow-auto", T.value ? "px-5 py-4" : "px-[30px] pt-6"]]),
23753
+ class: oe(["min-h-0 flex-1", p(o).flush ? "flex flex-col overflow-hidden" : ["overflow-auto", T.value ? "px-5 py-4" : "px-[30px] pt-6"]]),
23754
23754
  "data-ui-dialog-flush": p(o).flush ? "" : void 0
23755
23755
  }, [
23756
23756
  R(W.$slots, "default")
23757
23757
  ], 10, VT)) : V("", !0),
23758
23758
  W.$slots.footer ? (y(), E("footer", {
23759
23759
  key: 2,
23760
- class: ne(["flex shrink-0 flex-wrap items-center justify-end gap-2", T.value ? ["min-h-12 px-5 py-2.5", x() && "border-t border-[var(--ui-border-subtle)]"] : "px-[30px] pt-7 pb-5"])
23760
+ class: oe(["flex shrink-0 flex-wrap items-center justify-end gap-2", T.value ? ["min-h-12 px-5 py-2.5", x() && "border-t border-[var(--ui-border-subtle)]"] : "px-[30px] pt-7 pb-5"])
23761
23761
  }, [
23762
23762
  Z(qT, { kind: "action" }, {
23763
23763
  default: P(() => [
@@ -23860,7 +23860,7 @@ const HT = ["disabled", "aria-label", "value", "placeholder"], GT = ["disabled",
23860
23860
  class: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-[var(--ui-text-muted)]",
23861
23861
  "aria-hidden": "true"
23862
23862
  })),
23863
- re("input", ie(p(i)(), {
23863
+ ne("input", ie(p(i)(), {
23864
23864
  disabled: p(o).disabled,
23865
23865
  "aria-label": p(i)()["aria-label"] || (p(i)()["aria-labelledby"] ? void 0 : p(o).placeholder),
23866
23866
  value: p(o).modelValue,
@@ -23933,21 +23933,21 @@ const XT = ["data-direction"], QT = {
23933
23933
  ref: r,
23934
23934
  "data-direction": a.value ? "vertical" : "horizontal",
23935
23935
  style: ze(s.value),
23936
- class: ne([
23936
+ class: oe([
23937
23937
  "grid min-h-10 gap-y-1 py-1.5",
23938
23938
  n.value === "start" ? "items-start" : "items-center"
23939
23939
  ]),
23940
23940
  "data-syno-pkg-land-ui": ""
23941
23941
  }, [
23942
- re("div", {
23942
+ ne("div", {
23943
23943
  "data-settings-label": "",
23944
- class: ne(["min-w-0 break-words [word-break:keep-all] text-left text-[13px] text-[var(--ui-text)]", n.value === "start" && "pt-1"])
23944
+ class: oe(["min-w-0 break-words [word-break:keep-all] text-left text-[13px] text-[var(--ui-text)]", n.value === "start" && "pt-1"])
23945
23945
  }, [
23946
23946
  Ne(ee(e.label), 1),
23947
23947
  e.required ? (y(), E("span", QT, "*")) : V("", !0)
23948
23948
  ], 2),
23949
- re("div", eI, [
23950
- re("div", {
23949
+ ne("div", eI, [
23950
+ ne("div", {
23951
23951
  "data-field-control": "",
23952
23952
  style: ze(o.value)
23953
23953
  }, [
@@ -24011,7 +24011,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24011
24011
  "aria-busy": e.loading || void 0
24012
24012
  }, [
24013
24013
  e.collapsible ? (y(), E("div", rI, [
24014
- re("button", {
24014
+ ne("button", {
24015
24015
  type: "button",
24016
24016
  class: "group m-0 flex h-full min-w-0 flex-1 border-0 bg-transparent p-0 items-center gap-2 text-left text-[length:inherit] font-semibold text-[var(--ui-text)] outline-none enabled:hover:bg-[var(--ui-surface-hover)] focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]",
24017
24017
  "aria-expanded": p(i),
@@ -24020,10 +24020,10 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24020
24020
  (...f) => p(a) && p(a)(...f))
24021
24021
  }, [
24022
24022
  Z(p(sr), {
24023
- class: ne(["size-4 shrink-0 transition-transform", !p(i) && "-rotate-90"]),
24023
+ class: oe(["size-4 shrink-0 transition-transform", !p(i) && "-rotate-90"]),
24024
24024
  "aria-hidden": "true"
24025
24025
  }, null, 8, ["class"]),
24026
- re("span", aI, [
24026
+ ne("span", aI, [
24027
24027
  R(u.$slots, "title", {}, () => [
24028
24028
  Ne(ee(e.title), 1)
24029
24029
  ])
@@ -24033,7 +24033,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24033
24033
  R(u.$slots, "actions")
24034
24034
  ])) : V("", !0)
24035
24035
  ])) : c.value ? (y(), E("div", lI, [
24036
- re("span", uI, [
24036
+ ne("span", uI, [
24037
24037
  R(u.$slots, "title", {}, () => [
24038
24038
  Ne(ee(e.title), 1)
24039
24039
  ])
@@ -24042,9 +24042,9 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24042
24042
  R(u.$slots, "actions")
24043
24043
  ])) : V("", !0)
24044
24044
  ])) : V("", !0),
24045
- xo(re("div", {
24045
+ xo(ne("div", {
24046
24046
  id: p(r),
24047
- class: ne(["ui-settings-section-body", c.value && "pt-3"])
24047
+ class: oe(["ui-settings-section-body", c.value && "pt-3"])
24048
24048
  }, [
24049
24049
  e.description || u.$slots.description ? (y(), E("p", fI, [
24050
24050
  R(u.$slots, "description", {}, () => [
@@ -24106,8 +24106,8 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24106
24106
  class: "ui-callout-icon",
24107
24107
  "aria-hidden": "true"
24108
24108
  })),
24109
- re("div", vI, [
24110
- re("div", gI, [
24109
+ ne("div", vI, [
24110
+ ne("div", gI, [
24111
24111
  e.title ? (y(), E("div", yI, ee(e.title), 1)) : V("", !0),
24112
24112
  l.$slots.default ? (y(), E("div", bI, [
24113
24113
  R(l.$slots, "default")
@@ -24124,7 +24124,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24124
24124
  }, [
24125
24125
  Ne(ee(i.value ? p(o).lessLabel : p(o).moreLabel) + " ", 1),
24126
24126
  Z(p(sr), {
24127
- class: ne(["size-3.5 transition-transform duration-[var(--ui-motion-fast)]", i.value && "rotate-180"]),
24127
+ class: oe(["size-3.5 transition-transform duration-[var(--ui-motion-fast)]", i.value && "rotate-180"]),
24128
24128
  "aria-hidden": "true"
24129
24129
  }, null, 8, ["class"])
24130
24130
  ], 8, _I)) : V("", !0),
@@ -24184,7 +24184,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
24184
24184
  "aria-hidden": "true"
24185
24185
  }))
24186
24186
  ])) : V("", !0),
24187
- re("h3", $I, ee(e.title), 1),
24187
+ ne("h3", $I, ee(e.title), 1),
24188
24188
  e.description ? (y(), E("p", EI, ee(e.description), 1)) : V("", !0),
24189
24189
  t.$slots.actions ? (y(), E("div", PI, [
24190
24190
  R(t.$slots, "actions")
@@ -24231,11 +24231,11 @@ const NI = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-
24231
24231
  "data-edge-top": p(a) ? "" : void 0,
24232
24232
  "data-edge-bottom": p(s) ? "" : void 0
24233
24233
  }, [
24234
- re("div", {
24234
+ ne("div", {
24235
24235
  ref_key: "viewport",
24236
24236
  ref: o,
24237
24237
  "data-ui-scroll-edges-viewport": "",
24238
- class: ne(e.viewportClass),
24238
+ class: oe(e.viewportClass),
24239
24239
  style: ze(e.viewportStyle)
24240
24240
  }, [
24241
24241
  R(l.$slots, "default")
@@ -24290,13 +24290,13 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24290
24290
  class: "min-w-0 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-3 py-2.5",
24291
24291
  role: "listitem"
24292
24292
  }, [
24293
- re("dl", BI, [
24293
+ ne("dl", BI, [
24294
24294
  (y(!0), E(xe, null, nt(p(n).columns, (h) => (y(), E("div", {
24295
24295
  key: h.key,
24296
24296
  class: "grid min-w-0 grid-cols-[minmax(100px,35%)_minmax(0,1fr)] items-start gap-2"
24297
24297
  }, [
24298
- re("dt", jI, ee(h.label), 1),
24299
- re("dd", UI, [
24298
+ ne("dt", jI, ee(h.label), 1),
24299
+ ne("dd", UI, [
24300
24300
  R(c.$slots, `cell-${h.key}`, {
24301
24301
  row: d,
24302
24302
  value: d[h.key],
@@ -24313,8 +24313,8 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24313
24313
  "viewport-class": "overflow-auto border-y border-[var(--ui-border)]"
24314
24314
  }, {
24315
24315
  default: P(() => [
24316
- re("table", {
24317
- class: ne(["w-full border-collapse text-[13px]", a.value && "table-fixed"])
24316
+ ne("table", {
24317
+ class: oe(["w-full border-collapse text-[13px]", a.value && "table-fixed"])
24318
24318
  }, [
24319
24319
  a.value ? (y(), E("colgroup", WI, [
24320
24320
  (y(!0), E(xe, null, nt(p(n).columns, (d) => (y(), E("col", {
@@ -24322,18 +24322,18 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24322
24322
  style: ze(d.width ? { width: d.width } : void 0)
24323
24323
  }, null, 4))), 128))
24324
24324
  ])) : V("", !0),
24325
- re("thead", KI, [
24326
- re("tr", null, [
24325
+ ne("thead", KI, [
24326
+ ne("tr", null, [
24327
24327
  (y(!0), E(xe, null, nt(p(n).columns, (d) => (y(), E("th", {
24328
24328
  key: d.key,
24329
- class: ne(["border-b border-[var(--ui-border)] px-3 py-2 font-normal", [p(Rd)(d), a.value ? "[overflow-wrap:anywhere]" : "whitespace-nowrap"]]),
24329
+ class: oe(["border-b border-[var(--ui-border)] px-3 py-2 font-normal", [p(Rd)(d), a.value ? "[overflow-wrap:anywhere]" : "whitespace-nowrap"]]),
24330
24330
  "data-column-type": d.type ?? "text"
24331
24331
  }, ee(d.label), 11, ZI))), 128))
24332
24332
  ])
24333
24333
  ]),
24334
- re("tbody", null, [
24334
+ ne("tbody", null, [
24335
24335
  p(n).rows.length === 0 ? (y(), E("tr", HI, [
24336
- re("td", {
24336
+ ne("td", {
24337
24337
  colspan: p(n).columns.length,
24338
24338
  class: "px-3 py-10 text-center text-[var(--ui-text-secondary)]"
24339
24339
  }, ee(p(n).emptyText), 9, GI)
@@ -24343,7 +24343,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24343
24343
  }, [
24344
24344
  (y(!0), E(xe, null, nt(p(n).columns, (h) => (y(), E("td", {
24345
24345
  key: h.key,
24346
- class: ne([
24346
+ class: oe([
24347
24347
  // The padding only shows in a row a two-line cell makes taller.
24348
24348
  "px-3 py-1.5 text-[var(--ui-text)]",
24349
24349
  a.value && "[overflow-wrap:anywhere]",
@@ -24356,7 +24356,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24356
24356
  h.type === "actions" ? (y(), E("div", {
24357
24357
  key: 0,
24358
24358
  "data-grid-actions": "",
24359
- class: ne(p(qI))
24359
+ class: oe(p(qI))
24360
24360
  }, [
24361
24361
  R(c.$slots, `cell-${h.key}`, {
24362
24362
  row: d,
@@ -24398,19 +24398,19 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24398
24398
  return (i, a) => (y(), E("div", {
24399
24399
  ref_key: "root",
24400
24400
  ref: o,
24401
- class: ne(["flex min-w-0 gap-[var(--ui-space-2)]", e.wrap ? "items-start" : "items-center"]),
24401
+ class: oe(["flex min-w-0 gap-[var(--ui-space-2)]", e.wrap ? "items-start" : "items-center"]),
24402
24402
  "data-layout": e.layout,
24403
24403
  "data-wrap": e.wrap ? "" : void 0,
24404
24404
  "data-syno-pkg-land-ui": ""
24405
24405
  }, [
24406
24406
  e.icon ? (y(), N(Nt(e.icon), {
24407
24407
  key: 0,
24408
- class: ne(["size-4 shrink-0 text-[var(--ui-text-secondary)]", e.wrap && "mt-0.5"]),
24408
+ class: oe(["size-4 shrink-0 text-[var(--ui-text-secondary)]", e.wrap && "mt-0.5"]),
24409
24409
  "aria-hidden": "true"
24410
24410
  }, null, 8, ["class"])) : V("", !0),
24411
- re("div", {
24411
+ ne("div", {
24412
24412
  "data-ui-cell-lines": "",
24413
- class: ne([
24413
+ class: oe([
24414
24414
  "min-w-0 flex-1",
24415
24415
  e.layout === "inline" ? "flex items-baseline gap-x-[var(--ui-space-2)]" : "flex flex-col gap-y-0.5"
24416
24416
  ])
@@ -24421,7 +24421,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24421
24421
  "data-ui-cell-primary": "",
24422
24422
  "data-ui-tooltip-hint": e.openLabel,
24423
24423
  disabled: e.openDisabled,
24424
- class: ne([r.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-sm)] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
24424
+ class: oe([r.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-sm)] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
24425
24425
  onClick: a[0] || (a[0] = (s) => i.$emit("open"))
24426
24426
  }, [
24427
24427
  R(i.$slots, "default", {}, () => [
@@ -24430,7 +24430,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24430
24430
  ], 10, XI)) : (y(), E("span", {
24431
24431
  key: 1,
24432
24432
  "data-ui-cell-primary": "",
24433
- class: ne([r.value, "min-w-0 leading-5 text-[var(--ui-text)]"])
24433
+ class: oe([r.value, "min-w-0 leading-5 text-[var(--ui-text)]"])
24434
24434
  }, [
24435
24435
  R(i.$slots, "default", {}, () => [
24436
24436
  Ne(ee(e.text), 1)
@@ -24439,7 +24439,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24439
24439
  e.secondary || i.$slots.secondary ? (y(), E("span", {
24440
24440
  key: 2,
24441
24441
  "data-ui-cell-secondary": "",
24442
- class: ne([
24442
+ class: oe([
24443
24443
  "min-w-0 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-text-secondary)]",
24444
24444
  r.value,
24445
24445
  e.layout === "inline" && "shrink-0"
@@ -24487,17 +24487,17 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24487
24487
  return (i, a) => (y(), E("div", {
24488
24488
  ref_key: "root",
24489
24489
  ref: o,
24490
- class: ne(["flex min-w-0 flex-col gap-0.5", r.value && !(e.detail || i.$slots.detail) && "relative"]),
24490
+ class: oe(["flex min-w-0 flex-col gap-0.5", r.value && !(e.detail || i.$slots.detail) && "relative"]),
24491
24491
  "data-syno-pkg-land-ui": ""
24492
24492
  }, [
24493
- re("span", eR, [
24493
+ ne("span", eR, [
24494
24494
  Z(GP, { tone: e.tone }, null, 8, ["tone"]),
24495
24495
  e.description ? (y(), N(Mm, {
24496
24496
  key: 0,
24497
24497
  content: e.description
24498
24498
  }, {
24499
24499
  default: P(() => [
24500
- re("span", tR, ee(e.label), 1)
24500
+ ne("span", tR, ee(e.label), 1)
24501
24501
  ]),
24502
24502
  _: 1
24503
24503
  }, 8, ["content"])) : (y(), E("span", nR, ee(e.label), 1))
@@ -24507,7 +24507,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24507
24507
  value: e.progress,
24508
24508
  "aria-label": e.label,
24509
24509
  size: "sm",
24510
- class: ne(["max-w-40", !(e.detail || i.$slots.detail) && "absolute inset-x-0 top-full mt-0.5"])
24510
+ class: oe(["max-w-40", !(e.detail || i.$slots.detail) && "absolute inset-x-0 top-full mt-0.5"])
24511
24511
  }, null, 8, ["value", "aria-label", "class"])) : V("", !0),
24512
24512
  e.detail || i.$slots.detail ? (y(), E("span", oR, [
24513
24513
  R(i.$slots, "detail", {}, () => [
@@ -24524,25 +24524,29 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24524
24524
  role: "listitem",
24525
24525
  class: "ui-list-item flex flex-wrap items-start gap-x-[var(--ui-space-4)] gap-y-[var(--ui-space-2)] py-[var(--ui-space-3)]",
24526
24526
  "data-syno-pkg-land-ui": ""
24527
- }, aR = { class: "min-w-60 flex-1" }, sR = { class: "flex flex-wrap items-center gap-x-[var(--ui-space-2)] gap-y-1" }, lR = {
24527
+ }, aR = { class: "flex min-w-60 flex-1 items-start gap-[var(--ui-space-3)]" }, sR = {
24528
+ key: 0,
24529
+ "data-ui-list-item-leading": "",
24530
+ class: "flex shrink-0 items-center"
24531
+ }, lR = { class: "min-w-0 flex-1" }, uR = { class: "flex flex-wrap items-center gap-x-[var(--ui-space-2)] gap-y-1" }, cR = {
24528
24532
  "data-ui-list-item-title": "",
24529
24533
  class: "font-semibold leading-5 text-[var(--ui-text)]"
24530
- }, uR = {
24534
+ }, dR = {
24531
24535
  key: 0,
24532
24536
  "data-ui-list-item-meta": "",
24533
24537
  class: "flex flex-wrap items-center gap-[var(--ui-space-1)]"
24534
- }, cR = {
24538
+ }, fR = {
24535
24539
  key: 0,
24536
24540
  "data-ui-list-item-description": "",
24537
24541
  class: "mt-1 leading-5 text-[var(--ui-text-secondary)]"
24538
- }, dR = {
24542
+ }, pR = {
24539
24543
  key: 1,
24540
24544
  class: "mt-1 leading-5"
24541
- }, fR = {
24545
+ }, hR = {
24542
24546
  key: 0,
24543
24547
  "data-ui-list-item-actions": "",
24544
24548
  class: "flex shrink-0 flex-wrap items-center gap-[var(--ui-space-2)]"
24545
- }, pR = /* @__PURE__ */ D({
24549
+ }, mR = /* @__PURE__ */ D({
24546
24550
  __name: "ListItem",
24547
24551
  props: {
24548
24552
  title: {},
@@ -24550,35 +24554,40 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24550
24554
  },
24551
24555
  setup(e) {
24552
24556
  return (t, n) => (y(), E("div", iR, [
24553
- re("div", aR, [
24554
- re("div", sR, [
24555
- re("span", lR, [
24556
- R(t.$slots, "title", {}, () => [
24557
- Ne(ee(e.title), 1)
24558
- ])
24557
+ ne("div", aR, [
24558
+ t.$slots.leading ? (y(), E("div", sR, [
24559
+ R(t.$slots, "leading")
24560
+ ])) : V("", !0),
24561
+ ne("div", lR, [
24562
+ ne("div", uR, [
24563
+ ne("span", cR, [
24564
+ R(t.$slots, "title", {}, () => [
24565
+ Ne(ee(e.title), 1)
24566
+ ])
24567
+ ]),
24568
+ t.$slots.meta ? (y(), E("span", dR, [
24569
+ R(t.$slots, "meta")
24570
+ ])) : V("", !0)
24559
24571
  ]),
24560
- t.$slots.meta ? (y(), E("span", uR, [
24561
- R(t.$slots, "meta")
24572
+ e.description || t.$slots.description ? (y(), E("div", fR, [
24573
+ R(t.$slots, "description", {}, () => [
24574
+ Ne(ee(e.description), 1)
24575
+ ])
24576
+ ])) : V("", !0),
24577
+ t.$slots.default ? (y(), E("div", pR, [
24578
+ R(t.$slots, "default")
24562
24579
  ])) : V("", !0)
24563
- ]),
24564
- e.description || t.$slots.description ? (y(), E("div", cR, [
24565
- R(t.$slots, "description", {}, () => [
24566
- Ne(ee(e.description), 1)
24567
- ])
24568
- ])) : V("", !0),
24569
- t.$slots.default ? (y(), E("div", dR, [
24570
- R(t.$slots, "default")
24571
- ])) : V("", !0)
24580
+ ])
24572
24581
  ]),
24573
- t.$slots.actions ? (y(), E("div", fR, [
24582
+ t.$slots.actions ? (y(), E("div", hR, [
24574
24583
  R(t.$slots, "actions")
24575
24584
  ])) : V("", !0)
24576
24585
  ]));
24577
24586
  }
24578
- }), hR = ["id"], mR = {
24587
+ }), vR = ["id"], gR = {
24579
24588
  key: 1,
24580
24589
  class: "ml-auto flex shrink-0 items-center gap-1.5"
24581
- }, vR = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-label"], gR = ["id", "role", "aria-labelledby"], yR = /* @__PURE__ */ D({
24590
+ }, yR = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-label"], bR = ["id", "role", "aria-labelledby"], wR = /* @__PURE__ */ D({
24582
24591
  __name: "Card",
24583
24592
  props: {
24584
24593
  title: {},
@@ -24617,7 +24626,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24617
24626
  default: P(() => [
24618
24627
  e.hasHeader && (d.value || g.$slots["header-actions"] || e.expandable) ? (y(), E("header", {
24619
24628
  key: 0,
24620
- class: ne(m.value)
24629
+ class: oe(m.value)
24621
24630
  }, [
24622
24631
  d.value ? (y(), E("h3", {
24623
24632
  key: 0,
@@ -24627,8 +24636,8 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24627
24636
  R(g.$slots, "title", {}, () => [
24628
24637
  Ne(ee(e.title), 1)
24629
24638
  ])
24630
- ], 8, hR)) : V("", !0),
24631
- g.$slots["header-actions"] || e.expandable ? (y(), E("div", mR, [
24639
+ ], 8, vR)) : V("", !0),
24640
+ g.$slots["header-actions"] || e.expandable ? (y(), E("div", gR, [
24632
24641
  R(g.$slots, "header-actions"),
24633
24642
  e.expandable ? (y(), E("button", {
24634
24643
  key: 0,
@@ -24643,27 +24652,27 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24643
24652
  (..._) => p(u) && p(u)(..._))
24644
24653
  }, [
24645
24654
  Z(p(sr), {
24646
- class: ne(p(En)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !p(c) && "-rotate-90")),
24655
+ class: oe(p(En)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !p(c) && "-rotate-90")),
24647
24656
  "aria-hidden": "true"
24648
24657
  }, null, 8, ["class"])
24649
- ], 8, vR)) : V("", !0)
24658
+ ], 8, yR)) : V("", !0)
24650
24659
  ])) : V("", !0)
24651
24660
  ], 2)) : V("", !0),
24652
- xo(re("div", {
24661
+ xo(ne("div", {
24653
24662
  id: p(l),
24654
- class: ne(v.value),
24663
+ class: oe(v.value),
24655
24664
  role: e.expandable ? "region" : void 0,
24656
24665
  "aria-labelledby": e.expandable && d.value ? p(s) : void 0
24657
24666
  }, [
24658
24667
  e.loading ? (y(), N(Dm, { key: 0 })) : R(g.$slots, "body", {}, () => [
24659
24668
  R(g.$slots, "default")
24660
24669
  ], void 0, 1)
24661
- ], 10, gR), [
24670
+ ], 10, bR), [
24662
24671
  [Ho, h.value]
24663
24672
  ]),
24664
24673
  g.$slots.footer && !e.loading ? (y(), E("footer", {
24665
24674
  key: 1,
24666
- class: ne(p(En)("flex flex-wrap items-center gap-2 border-t border-[var(--ui-border-subtle)] py-2.5", f.value ? "px-5" : "px-[var(--ui-card-padding,20px)]", r[e.footerAlign]))
24675
+ class: oe(p(En)("flex flex-wrap items-center gap-2 border-t border-[var(--ui-border-subtle)] py-2.5", f.value ? "px-5" : "px-[var(--ui-card-padding,20px)]", r[e.footerAlign]))
24667
24676
  }, [
24668
24677
  R(g.$slots, "footer")
24669
24678
  ], 2)) : V("", !0)
@@ -24671,16 +24680,16 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
24671
24680
  _: 3
24672
24681
  }, 8, ["data-layout", "aria-busy"]));
24673
24682
  }
24674
- }), bR = /^#([\da-f]{3}|[\da-f]{6})$/i, wR = /^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:\s*[,/]\s*([\d.]+)(%?))?\s*\)$/i;
24683
+ }), _R = /^#([\da-f]{3}|[\da-f]{6})$/i, SR = /^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:\s*[,/]\s*([\d.]+)(%?))?\s*\)$/i;
24675
24684
  function ul(e) {
24676
24685
  const t = e.trim();
24677
24686
  if (t === "transparent") return [0, 0, 0, 0];
24678
- const n = bR.exec(t)?.[1];
24687
+ const n = _R.exec(t)?.[1];
24679
24688
  if (n) {
24680
24689
  const r = n.length === 3 ? [...n].map((i) => i + i).join("") : n;
24681
24690
  return [0, 2, 4].map((i) => parseInt(r.slice(i, i + 2), 16)).concat(1);
24682
24691
  }
24683
- const o = wR.exec(t);
24692
+ const o = SR.exec(t);
24684
24693
  if (o) {
24685
24694
  const r = o[4] === void 0 ? 1 : Number(o[4]) / (o[5] ? 100 : 1);
24686
24695
  return [Number(o[1]), Number(o[2]), Number(o[3]), r];
@@ -24697,43 +24706,43 @@ function cl(e, t) {
24697
24706
  function ys([e, t, n, o], r) {
24698
24707
  return [e * (1 - r), t * (1 - r), n * (1 - r), o];
24699
24708
  }
24700
- function _R([e, t, n, o], r) {
24709
+ function xR([e, t, n, o], r) {
24701
24710
  return [e + (255 - e) * r, t + (255 - t) * r, n + (255 - n) * r, o];
24702
24711
  }
24703
- function SR([e, t, n]) {
24712
+ function kR([e, t, n]) {
24704
24713
  const o = (r) => {
24705
24714
  const i = r / 255;
24706
24715
  return i <= 0.04045 ? i / 12.92 : ((i + 0.055) / 1.055) ** 2.4;
24707
24716
  };
24708
24717
  return 0.2126 * o(e) + 0.7152 * o(t) + 0.0722 * o(n);
24709
24718
  }
24710
- function xR(e, t) {
24711
- const n = cl(t, [255, 255, 255, 1]), [o, r] = [cl(e, n), n].map(SR).sort((i, a) => a - i);
24719
+ function CR(e, t) {
24720
+ const n = cl(t, [255, 255, 255, 1]), [o, r] = [cl(e, n), n].map(kR).sort((i, a) => a - i);
24712
24721
  return (o + 0.05) / (r + 0.05);
24713
24722
  }
24714
- const bs = [255, 255, 255, 1], kR = "#1b1f1c", CR = [0.02, 0.04, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7], AR = [0.04, 0.08, 0.16, 0.22, 0.28, 0.36, 0.5, 0.7], OR = 0.075, $R = 0.22, ER = 0.55, dl = (e) => ul(Oi(e));
24723
+ const bs = [255, 255, 255, 1], AR = "#1b1f1c", OR = [0.02, 0.04, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7], $R = [0.04, 0.08, 0.16, 0.22, 0.28, 0.36, 0.5, 0.7], ER = 0.075, PR = 0.22, TR = 0.55, dl = (e) => ul(Oi(e));
24715
24724
  function Nd(e, t, n, o, r) {
24716
24725
  for (let i = n; i < 1; i += 0.01) {
24717
24726
  const a = dl(t(e, i));
24718
- if (xR(...r(a)) >= o) return a;
24727
+ if (CR(...r(a)) >= o) return a;
24719
24728
  }
24720
24729
  return t(e, 1);
24721
24730
  }
24722
- function PR(e, { dark: t = !1 } = {}) {
24731
+ function IR(e, { dark: t = !1 } = {}) {
24723
24732
  const n = ul(e);
24724
24733
  if (n[3] !== 1) throw new Error(`An accent must be opaque: "${e}"`);
24725
- const o = Nd(n, ys, 0, 4.5, (u) => [bs, u]), r = t ? ul(kR) : bs, i = (t ? AR : CR).map((u) => [o[0], o[1], o[2], u]), a = i.map((u) => dl(cl(u, r))), s = (u, d) => Nd(o, t ? _R : ys, d, u, (f) => [f, a[2]]), l = t ? [s(4.5, 0), s(7, 0)] : [s(4.5, $R), s(7, ER)];
24726
- return { steps: [...a, o, dl(ys(o, OR)), ...l].map(Oi), alpha: i.map(Oi), contrast: Oi(bs) };
24734
+ const o = Nd(n, ys, 0, 4.5, (u) => [bs, u]), r = t ? ul(AR) : bs, i = (t ? $R : OR).map((u) => [o[0], o[1], o[2], u]), a = i.map((u) => dl(cl(u, r))), s = (u, d) => Nd(o, t ? xR : ys, d, u, (f) => [f, a[2]]), l = t ? [s(4.5, 0), s(7, 0)] : [s(4.5, PR), s(7, TR)];
24735
+ return { steps: [...a, o, dl(ys(o, ER)), ...l].map(Oi), alpha: i.map(Oi), contrast: Oi(bs) };
24727
24736
  }
24728
- function TR(e, t = {}) {
24729
- const { steps: n, alpha: o, contrast: r } = PR(e, t);
24737
+ function RR(e, t = {}) {
24738
+ const { steps: n, alpha: o, contrast: r } = IR(e, t);
24730
24739
  return Object.fromEntries([
24731
24740
  ...n.map((i, a) => [`--ui-accent-${a + 1}`, i]),
24732
24741
  ...o.map((i, a) => [`--ui-accent-a${a + 1}`, i]),
24733
24742
  ["--ui-accent-contrast", r]
24734
24743
  ]);
24735
24744
  }
24736
- const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "data-ui-color-scheme", "tabindex"], RR = /* @__PURE__ */ D({
24745
+ const DR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "data-ui-color-scheme", "tabindex"], NR = /* @__PURE__ */ D({
24737
24746
  __name: "AppRoot",
24738
24747
  props: {
24739
24748
  modalScope: { default: "app" },
@@ -24754,7 +24763,7 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
24754
24763
  f && d?.region(f.element), He(qm, f);
24755
24764
  const h = { position: "relative", isolation: "isolate", overflow: "hidden" }, m = O(() => ({
24756
24765
  ...u === "app" ? h : {},
24757
- ...n.accent ? TR(n.accent, { dark: n.colorScheme === "dark" }) : {}
24766
+ ...n.accent ? RR(n.accent, { dark: n.colorScheme === "dark" }) : {}
24758
24767
  }));
24759
24768
  return de(() => n.modalScope, (v) => {
24760
24769
  if (v !== u) throw new Error("AppRoot modal-scope is fixed for the mounted root; remount to change it");
@@ -24776,7 +24785,7 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
24776
24785
  }, {
24777
24786
  default: P(() => [
24778
24787
  p(u) === "app" ? (y(), E(xe, { key: 0 }, [
24779
- re("div", {
24788
+ ne("div", {
24780
24789
  ref_key: "background",
24781
24790
  ref: l,
24782
24791
  "data-ui-background": "",
@@ -24784,7 +24793,7 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
24784
24793
  }, [
24785
24794
  R(v.$slots, "default")
24786
24795
  ], 512),
24787
- re("div", {
24796
+ ne("div", {
24788
24797
  ref_key: "portal",
24789
24798
  ref: c,
24790
24799
  "data-ui-portals": ""
@@ -24793,9 +24802,9 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
24793
24802
  ]),
24794
24803
  _: 3
24795
24804
  }, 8, ["teleport-to"])
24796
- ], 12, IR));
24805
+ ], 12, DR));
24797
24806
  }
24798
- }), DR = ["src"], ws = /* @__PURE__ */ D({
24807
+ }), MR = ["src"], ws = /* @__PURE__ */ D({
24799
24808
  __name: "AppBrand",
24800
24809
  props: {
24801
24810
  name: {},
@@ -24820,18 +24829,18 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
24820
24829
  alt: "",
24821
24830
  width: "28",
24822
24831
  height: "28"
24823
- }, null, 8, DR)) : V("", !0),
24832
+ }, null, 8, MR)) : V("", !0),
24824
24833
  e.name ? (y(), E("span", {
24825
24834
  key: 1,
24826
24835
  "data-ui-brand-name": "",
24827
- class: ne(e.collapsed ? "sr-only" : "min-w-0 truncate")
24836
+ class: oe(e.collapsed ? "sr-only" : "min-w-0 truncate")
24828
24837
  }, ee(e.name), 3)) : V("", !0)
24829
24838
  ]),
24830
24839
  _: 1
24831
24840
  }, 16));
24832
24841
  }
24833
24842
  }), fl = (e) => Math.round(Math.min(ll, Math.max(sl, e)));
24834
- function NR(e) {
24843
+ function zR(e) {
24835
24844
  try {
24836
24845
  const t = JSON.parse(localStorage.getItem(e) ?? "null");
24837
24846
  return t && typeof t == "object" ? t : {};
@@ -24839,8 +24848,8 @@ function NR(e) {
24839
24848
  return {};
24840
24849
  }
24841
24850
  }
24842
- function MR(e) {
24843
- const t = e ? `${e}:app-sidebar` : void 0, n = t ? NR(t) : {}, o = /* @__PURE__ */ M(typeof n.width == "number" && Number.isFinite(n.width) ? fl(n.width) : RI), r = /* @__PURE__ */ M(n.collapsed === !0);
24851
+ function qR(e) {
24852
+ const t = e ? `${e}:app-sidebar` : void 0, n = t ? zR(t) : {}, o = /* @__PURE__ */ M(typeof n.width == "number" && Number.isFinite(n.width) ? fl(n.width) : RI), r = /* @__PURE__ */ M(n.collapsed === !0);
24844
24853
  return t && de([o, r], () => {
24845
24854
  try {
24846
24855
  localStorage.setItem(t, JSON.stringify({ width: o.value, collapsed: r.value }));
@@ -24848,25 +24857,25 @@ function MR(e) {
24848
24857
  }
24849
24858
  }), { width: o, collapsed: r };
24850
24859
  }
24851
- const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height", "data-ui-mobile-open", "data-ui-motion-ready", "data-ui-sidebar-collapsed", "data-ui-sidebar-resizing"], qR = ["id", "role", "aria-modal", "aria-label", "aria-hidden", "inert"], FR = {
24860
+ const FR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height", "data-ui-mobile-open", "data-ui-motion-ready", "data-ui-sidebar-collapsed", "data-ui-sidebar-resizing"], LR = ["id", "role", "aria-modal", "aria-label", "aria-hidden", "inert"], VR = {
24852
24861
  key: 0,
24853
24862
  "data-ui-mobile-sidebar-header": ""
24854
- }, LR = {
24863
+ }, BR = {
24855
24864
  key: 0,
24856
24865
  "data-ui-sidebar-brand": ""
24857
- }, VR = { key: 1 }, BR = ["aria-label"], jR = {
24866
+ }, jR = { key: 1 }, UR = ["aria-label"], WR = {
24858
24867
  key: 1,
24859
24868
  "data-ui-sidebar-brand": ""
24860
- }, UR = { "data-ui-sidebar-body": "" }, WR = {
24869
+ }, KR = { "data-ui-sidebar-body": "" }, ZR = {
24861
24870
  key: 2,
24862
24871
  "data-ui-sidebar-footer": ""
24863
- }, KR = ["aria-label", "title", "aria-expanded", "aria-controls"], ZR = ["aria-label", "aria-controls", "aria-valuemin", "aria-valuemax", "aria-valuenow"], HR = ["inert"], GR = {
24872
+ }, HR = ["aria-label", "title", "aria-expanded", "aria-controls"], GR = ["aria-label", "aria-controls", "aria-valuemin", "aria-valuemax", "aria-valuenow"], JR = ["inert"], YR = {
24864
24873
  key: 0,
24865
24874
  "data-ui-mobile-navigation": ""
24866
- }, JR = ["aria-label", "aria-expanded", "aria-controls"], YR = {
24875
+ }, XR = ["aria-label", "aria-expanded", "aria-controls"], QR = {
24867
24876
  key: 0,
24868
24877
  "data-ui-sidebar-brand": ""
24869
- }, XR = { key: 1 }, Md = 16, QR = /* @__PURE__ */ D({
24878
+ }, eD = { key: 1 }, Md = 16, tD = /* @__PURE__ */ D({
24870
24879
  __name: "AppLayout",
24871
24880
  props: {
24872
24881
  sidebarWidth: { default: void 0 },
@@ -24898,7 +24907,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
24898
24907
  });
24899
24908
  const _ = O(() => h.value === "web"), C = O(() => n.navigation === "top" && !m.value);
24900
24909
  He(Wm, C);
24901
- const b = MR(n.sidebarStorageKey), k = O(() => _.value && !C.value && b.collapsed.value);
24910
+ const b = qR(n.sidebarStorageKey), k = O(() => _.value && !C.value && b.collapsed.value);
24902
24911
  He(Um, k);
24903
24912
  const A = O(() => _.value && !C.value && !k.value && n.sidebarWidth === void 0), x = O(() => k.value ? "var(--ui-web-sidebar-collapsed-width, 64px)" : n.sidebarWidth !== void 0 ? n.sidebarWidth : _.value ? `${b.width.value}px` : "var(--ui-sidebar-width)"), T = /* @__PURE__ */ M({});
24904
24913
  Ge(() => {
@@ -24921,15 +24930,15 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
24921
24930
  rt !== void 0 && (ve.preventDefault(), b.width.value = fl(rt));
24922
24931
  }
24923
24932
  const K = /* @__PURE__ */ M(!1);
24924
- let oe = { x: 0, width: 0 };
24933
+ let re = { x: 0, width: 0 };
24925
24934
  function ce(ve) {
24926
- b.width.value = fl(oe.width + ve.clientX - oe.x);
24935
+ b.width.value = fl(re.width + ve.clientX - re.x);
24927
24936
  }
24928
24937
  function pe() {
24929
24938
  K.value = !1, document.removeEventListener("pointermove", ce), document.removeEventListener("pointerup", pe), document.removeEventListener("pointercancel", pe);
24930
24939
  }
24931
24940
  function Fe(ve) {
24932
- ve.button === 0 && (ve.preventDefault(), oe = { x: ve.clientX, width: b.width.value }, K.value = !0, document.addEventListener("pointermove", ce), document.addEventListener("pointerup", pe), document.addEventListener("pointercancel", pe));
24941
+ ve.button === 0 && (ve.preventDefault(), re = { x: ve.clientX, width: b.width.value }, K.value = !0, document.addEventListener("pointermove", ce), document.addEventListener("pointerup", pe), document.addEventListener("pointercancel", pe));
24933
24942
  }
24934
24943
  Kt(pe);
24935
24944
  function ye(ve = !1) {
@@ -24960,7 +24969,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
24960
24969
  return (ve, rt) => (y(), E("section", {
24961
24970
  ref_key: "root",
24962
24971
  ref: c,
24963
- class: ne(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", [
24972
+ class: oe(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", [
24964
24973
  ve.$slots.sidebar && !m.value && !C.value ? "grid-cols-[var(--ui-app-sidebar-width)_minmax(0,1fr)]" : "grid-cols-1",
24965
24974
  n.height === "fill" && "h-full grid-rows-[minmax(0,1fr)]"
24966
24975
  ]]),
@@ -24995,8 +25004,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
24995
25004
  inert: m.value && !v.value,
24996
25005
  onClick: je
24997
25006
  }, [
24998
- m.value ? (y(), E("div", FR, [
24999
- F.value ? (y(), E("div", LR, [
25007
+ m.value ? (y(), E("div", VR, [
25008
+ F.value ? (y(), E("div", BR, [
25000
25009
  R(ve.$slots, "brand", {}, () => [
25001
25010
  Z(ws, {
25002
25011
  interactive: i(),
@@ -25005,8 +25014,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25005
25014
  icon: I.value.icon
25006
25015
  }, null, 8, ["interactive", "name", "icon"])
25007
25016
  ])
25008
- ])) : (y(), E("span", VR, ee(p(l)("Application navigation")), 1)),
25009
- re("button", {
25017
+ ])) : (y(), E("span", jR, ee(p(l)("Application navigation")), 1)),
25018
+ ne("button", {
25010
25019
  "data-ui-close-navigation": "",
25011
25020
  type: "button",
25012
25021
  "aria-label": p(l)("Close"),
@@ -25016,9 +25025,9 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25016
25025
  size: 20,
25017
25026
  "aria-hidden": "true"
25018
25027
  })
25019
- ], 8, BR)
25028
+ ], 8, UR)
25020
25029
  ])) : V("", !0),
25021
- W.value ? (y(), E("div", jR, [
25030
+ W.value ? (y(), E("div", WR, [
25022
25031
  R(ve.$slots, "brand", {}, () => [
25023
25032
  Z(ws, {
25024
25033
  interactive: i(),
@@ -25029,10 +25038,10 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25029
25038
  }, null, 8, ["interactive", "name", "icon", "collapsed"])
25030
25039
  ])
25031
25040
  ])) : V("", !0),
25032
- re("div", UR, [
25041
+ ne("div", KR, [
25033
25042
  R(ve.$slots, "sidebar")
25034
25043
  ]),
25035
- X.value ? (y(), E("div", WR, [
25044
+ X.value ? (y(), E("div", ZR, [
25036
25045
  R(ve.$slots, "sidebar-footer"),
25037
25046
  _.value && !C.value ? (y(), E("button", {
25038
25047
  key: 0,
@@ -25048,7 +25057,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25048
25057
  size: 18,
25049
25058
  "aria-hidden": "true"
25050
25059
  }))
25051
- ], 8, KR)) : V("", !0)
25060
+ ], 8, HR)) : V("", !0)
25052
25061
  ])) : V("", !0),
25053
25062
  A.value ? (y(), E("div", {
25054
25063
  key: 3,
@@ -25063,15 +25072,15 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25063
25072
  "aria-valuenow": p(b).width.value,
25064
25073
  onKeydown: fe,
25065
25074
  onPointerdown: Fe
25066
- }, null, 40, ZR)) : V("", !0)
25067
- ], 8, qR)) : V("", !0),
25068
- re("div", {
25075
+ }, null, 40, GR)) : V("", !0)
25076
+ ], 8, LR)) : V("", !0),
25077
+ ne("div", {
25069
25078
  "data-ui-layout-main": "",
25070
25079
  class: "flex min-h-0 min-w-0 flex-col bg-[var(--ui-surface)]",
25071
25080
  inert: m.value && v.value
25072
25081
  }, [
25073
- m.value && ve.$slots.sidebar ? (y(), E("div", GR, [
25074
- re("button", {
25082
+ m.value && ve.$slots.sidebar ? (y(), E("div", YR, [
25083
+ ne("button", {
25075
25084
  ref_key: "menuTrigger",
25076
25085
  ref: d,
25077
25086
  "data-ui-mobile-menu": "",
@@ -25085,8 +25094,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25085
25094
  size: 20,
25086
25095
  "aria-hidden": "true"
25087
25096
  })
25088
- ], 8, JR),
25089
- F.value ? (y(), E("div", YR, [
25097
+ ], 8, XR),
25098
+ F.value ? (y(), E("div", QR, [
25090
25099
  R(ve.$slots, "brand", {}, () => [
25091
25100
  Z(ws, {
25092
25101
  interactive: i(),
@@ -25095,19 +25104,19 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25095
25104
  icon: I.value.icon
25096
25105
  }, null, 8, ["interactive", "name", "icon"])
25097
25106
  ])
25098
- ])) : (y(), E("span", XR, ee(p(l)("Application navigation")), 1))
25107
+ ])) : (y(), E("span", eD, ee(p(l)("Application navigation")), 1))
25099
25108
  ])) : V("", !0),
25100
25109
  R(ve.$slots, "toolbar"),
25101
- re("main", {
25102
- class: ne(["min-h-0 flex-1", n.height === "fill" && "flex flex-col overflow-y-auto"])
25110
+ ne("main", {
25111
+ class: oe(["min-h-0 flex-1", n.height === "fill" && "flex flex-col overflow-y-auto"])
25103
25112
  }, [
25104
25113
  R(ve.$slots, "default")
25105
25114
  ], 2),
25106
25115
  R(ve.$slots, "footer")
25107
- ], 8, HR)
25108
- ], 46, zR));
25116
+ ], 8, JR)
25117
+ ], 46, FR));
25109
25118
  }
25110
- }), eD = /* @__PURE__ */ D({
25119
+ }), nD = /* @__PURE__ */ D({
25111
25120
  __name: "ResponsiveView",
25112
25121
  props: {
25113
25122
  mode: { default: "auto" }
@@ -25119,7 +25128,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25119
25128
  });
25120
25129
  return (i, a) => R(i.$slots, r.value);
25121
25130
  }
25122
- }), tD = /* @__PURE__ */ D({
25131
+ }), oD = /* @__PURE__ */ D({
25123
25132
  __name: "AppSidebarTip",
25124
25133
  props: {
25125
25134
  label: {},
@@ -25137,20 +25146,20 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25137
25146
  _: 3
25138
25147
  }, 8, ["content"])) : R(t.$slots, "default", {}, void 0, void 0, 1);
25139
25148
  }
25140
- }), nD = ["data-nav-toggle", "data-nav-item", "disabled", "aria-current", "aria-expanded", "onClick"], oD = {
25149
+ }), rD = ["data-nav-toggle", "data-nav-item", "disabled", "aria-current", "aria-expanded", "onClick"], iD = {
25141
25150
  key: 1,
25142
25151
  "data-nav-badge": "",
25143
25152
  class: "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]"
25144
- }, rD = ["disabled", "aria-current", "onClick"], iD = {
25153
+ }, aD = ["disabled", "aria-current", "onClick"], sD = {
25145
25154
  key: 0,
25146
25155
  "data-nav-chevron-spacer": "",
25147
25156
  class: "size-3.5 shrink-0",
25148
25157
  "aria-hidden": "true"
25149
- }, aD = {
25158
+ }, lD = {
25150
25159
  key: 2,
25151
25160
  "data-nav-badge": "",
25152
25161
  class: "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]"
25153
- }, sD = ["aria-label"], zd = "min-w-0 flex-1 [overflow-wrap:anywhere] [text-wrap:pretty]", lD = /* @__PURE__ */ D({
25162
+ }, uD = ["aria-label"], zd = "min-w-0 flex-1 [overflow-wrap:anywhere] [text-wrap:pretty]", cD = /* @__PURE__ */ D({
25154
25163
  name: "AppSidebarItems",
25155
25164
  __name: "AppSidebarItems",
25156
25165
  props: {
@@ -25172,7 +25181,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25172
25181
  return y(!0), E(xe, null, nt(e.items, (m) => (y(), E(xe, {
25173
25182
  key: m.key
25174
25183
  }, [
25175
- a(m) ? V("", !0) : (y(), N(tD, {
25184
+ a(m) ? V("", !0) : (y(), N(oD, {
25176
25185
  key: 0,
25177
25186
  label: m.label,
25178
25187
  enabled: !!n.collapsed
@@ -25187,7 +25196,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25187
25196
  disabled: m.disabled,
25188
25197
  "aria-current": m.selectable && n.modelValue === m.key ? "page" : void 0,
25189
25198
  "aria-expanded": r(m),
25190
- class: ne(u(m)),
25199
+ class: oe(u(m)),
25191
25200
  style: ze(i(n.depth)),
25192
25201
  onClick: (v) => {
25193
25202
  o("toggle", m.key), m.selectable && o("select", m);
@@ -25195,7 +25204,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25195
25204
  }, [
25196
25205
  Z(p(Ks), {
25197
25206
  "data-nav-chevron": "",
25198
- class: ne(["size-3.5 shrink-0 text-[var(--ui-text-muted)] transition-transform", r(m) && "rotate-90"]),
25207
+ class: oe(["size-3.5 shrink-0 text-[var(--ui-text-muted)] transition-transform", r(m) && "rotate-90"]),
25199
25208
  "aria-hidden": "true"
25200
25209
  }, null, 8, ["class"]),
25201
25210
  m.icon ? (y(), N(Nt(m.icon), {
@@ -25203,33 +25212,33 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25203
25212
  class: "size-[var(--ui-icon-size,22px)] shrink-0",
25204
25213
  "aria-hidden": "true"
25205
25214
  })) : V("", !0),
25206
- re("span", {
25215
+ ne("span", {
25207
25216
  "data-nav-label": "",
25208
- class: ne(n.collapsed ? "sr-only" : zd)
25217
+ class: oe(n.collapsed ? "sr-only" : zd)
25209
25218
  }, ee(m.label), 3),
25210
- m.badge !== void 0 ? (y(), E("span", oD, ee(m.badge), 1)) : V("", !0)
25211
- ], 14, nD)) : (y(), E("button", {
25219
+ m.badge !== void 0 ? (y(), E("span", iD, ee(m.badge), 1)) : V("", !0)
25220
+ ], 14, rD)) : (y(), E("button", {
25212
25221
  key: 1,
25213
25222
  type: "button",
25214
25223
  "data-nav-item": "",
25215
25224
  disabled: m.disabled,
25216
25225
  "aria-current": n.modelValue === m.key ? "page" : void 0,
25217
- class: ne(u(m)),
25226
+ class: oe(u(m)),
25218
25227
  style: ze(i(n.depth)),
25219
25228
  onClick: (v) => o("select", m)
25220
25229
  }, [
25221
- c.value ? (y(), E("span", iD)) : V("", !0),
25230
+ c.value ? (y(), E("span", sD)) : V("", !0),
25222
25231
  m.icon ? (y(), N(Nt(m.icon), {
25223
25232
  key: 1,
25224
25233
  class: "size-[var(--ui-icon-size,22px)] shrink-0",
25225
25234
  "aria-hidden": "true"
25226
25235
  })) : V("", !0),
25227
- re("span", {
25236
+ ne("span", {
25228
25237
  "data-nav-label": "",
25229
- class: ne(n.collapsed ? "sr-only" : zd)
25238
+ class: oe(n.collapsed ? "sr-only" : zd)
25230
25239
  }, ee(m.label), 3),
25231
- m.badge !== void 0 ? (y(), E("span", aD, ee(m.badge), 1)) : V("", !0)
25232
- ], 14, rD))
25240
+ m.badge !== void 0 ? (y(), E("span", lD, ee(m.badge), 1)) : V("", !0)
25241
+ ], 14, aD))
25233
25242
  ]),
25234
25243
  _: 2
25235
25244
  }, 1032, ["label", "enabled"])),
@@ -25249,11 +25258,11 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25249
25258
  onSelect: f[0] || (f[0] = (v) => o("select", v)),
25250
25259
  onToggle: f[1] || (f[1] = (v) => o("toggle", v))
25251
25260
  }, null, 8, ["items", "model-value", "expanded-keys", "depth", "searching", "collapsed"])
25252
- ], 8, sD)) : V("", !0)
25261
+ ], 8, uD)) : V("", !0)
25253
25262
  ], 64))), 128);
25254
25263
  };
25255
25264
  }
25256
- }), uD = ["data-ui-top-nav-more", "data-ui-selected", "data-nav-toggle", "data-nav-item", "data-nav-contains-current", "disabled", "aria-current"], cD = { "data-nav-label": "" }, dD = ["disabled", "aria-current", "onClick"], fD = { "data-nav-label": "" }, qd = "size-[var(--ui-icon-size,18px)] shrink-0", Fd = "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]", Ld = /* @__PURE__ */ D({
25265
+ }), dD = ["data-ui-top-nav-more", "data-ui-selected", "data-nav-toggle", "data-nav-item", "data-nav-contains-current", "disabled", "aria-current"], fD = { "data-nav-label": "" }, pD = ["disabled", "aria-current", "onClick"], hD = { "data-nav-label": "" }, qd = "size-[var(--ui-icon-size,18px)] shrink-0", Fd = "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]", Ld = /* @__PURE__ */ D({
25257
25266
  __name: "AppTopNavItems",
25258
25267
  props: {
25259
25268
  items: {},
@@ -25298,7 +25307,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25298
25307
  onSelect: (f) => s(d, f)
25299
25308
  }, {
25300
25309
  trigger: P(() => [
25301
- re("button", {
25310
+ ne("button", {
25302
25311
  type: "button",
25303
25312
  "data-ui-top-nav-more": n.overflow ? "" : void 0,
25304
25313
  "data-ui-selected": n.overflow && r(d, n.modelValue) ? "true" : void 0,
@@ -25308,25 +25317,25 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25308
25317
  "data-nav-contains-current": r(d, n.modelValue) || void 0,
25309
25318
  disabled: d.disabled,
25310
25319
  "aria-current": !n.overflow && d.selectable && n.modelValue === d.key ? "page" : void 0,
25311
- class: ne(l(!n.overflow && n.modelValue === d.key || r(d, n.modelValue)))
25320
+ class: oe(l(!n.overflow && n.modelValue === d.key || r(d, n.modelValue)))
25312
25321
  }, [
25313
25322
  d.icon ? (y(), N(Nt(d.icon), {
25314
25323
  key: 0,
25315
- class: ne(qd),
25324
+ class: oe(qd),
25316
25325
  "aria-hidden": "true"
25317
25326
  })) : V("", !0),
25318
- re("span", cD, ee(d.label), 1),
25327
+ ne("span", fD, ee(d.label), 1),
25319
25328
  d.badge !== void 0 ? (y(), E("span", {
25320
25329
  key: 1,
25321
25330
  "data-nav-badge": "",
25322
- class: ne(Fd)
25331
+ class: oe(Fd)
25323
25332
  }, ee(d.badge), 1)) : V("", !0),
25324
25333
  Z(p(sr), {
25325
25334
  "data-nav-chevron": "",
25326
25335
  class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
25327
25336
  "aria-hidden": "true"
25328
25337
  })
25329
- ], 10, uD)
25338
+ ], 10, dD)
25330
25339
  ]),
25331
25340
  _: 2
25332
25341
  }, 1032, ["items", "data-ui-top-nav-overflow-menu", "onSelect"])) : (y(), E("button", {
@@ -25335,24 +25344,24 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25335
25344
  "data-nav-item": "",
25336
25345
  disabled: d.disabled,
25337
25346
  "aria-current": n.modelValue === d.key ? "page" : void 0,
25338
- class: ne(l(n.modelValue === d.key)),
25347
+ class: oe(l(n.modelValue === d.key)),
25339
25348
  onClick: (f) => o("select", d)
25340
25349
  }, [
25341
25350
  d.icon ? (y(), N(Nt(d.icon), {
25342
25351
  key: 0,
25343
- class: ne(qd),
25352
+ class: oe(qd),
25344
25353
  "aria-hidden": "true"
25345
25354
  })) : V("", !0),
25346
- re("span", fD, ee(d.label), 1),
25355
+ ne("span", hD, ee(d.label), 1),
25347
25356
  d.badge !== void 0 ? (y(), E("span", {
25348
25357
  key: 1,
25349
25358
  "data-nav-badge": "",
25350
- class: ne(Fd)
25359
+ class: oe(Fd)
25351
25360
  }, ee(d.badge), 1)) : V("", !0)
25352
- ], 10, dD))
25361
+ ], 10, pD))
25353
25362
  ], 64))), 128));
25354
25363
  }
25355
- }), pD = ["aria-label"], hD = ["aria-label", "aria-hidden", "inert"], mD = ["data-ui-overflowed", "aria-hidden", "inert"], vD = ["aria-hidden", "inert"], gD = /* @__PURE__ */ D({
25364
+ }), mD = ["aria-label"], vD = ["aria-label", "aria-hidden", "inert"], gD = ["data-ui-overflowed", "aria-hidden", "inert"], yD = ["aria-hidden", "inert"], bD = /* @__PURE__ */ D({
25356
25365
  __name: "AppTopNav",
25357
25366
  props: {
25358
25367
  groups: {},
@@ -25379,8 +25388,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25379
25388
  if (_.querySelectorAll("[data-nav-group]").forEach((W, X) => {
25380
25389
  const te = getComputedStyle(W);
25381
25390
  W.querySelectorAll("[data-ui-top-nav-item]").forEach((fe, K) => {
25382
- const oe = K === 0 ? v(te.marginLeft) + v(te.marginRight) + v(te.paddingLeft) + v(te.paddingRight) + v(te.borderLeftWidth) + v(te.borderRightWidth) + (X ? k : 0) : v(te.columnGap);
25383
- A.push(fe.getBoundingClientRect().width + oe);
25391
+ const re = K === 0 ? v(te.marginLeft) + v(te.marginRight) + v(te.paddingLeft) + v(te.paddingRight) + v(te.borderLeftWidth) + v(te.borderRightWidth) + (X ? k : 0) : v(te.columnGap);
25392
+ A.push(fe.getBoundingClientRect().width + re);
25384
25393
  });
25385
25394
  }), !A.length || A.every((W) => W === 0)) return;
25386
25395
  let x = A.length;
@@ -25420,7 +25429,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25420
25429
  inert: k[0].index >= l.value,
25421
25430
  style: ze(k[0].index >= l.value ? h : void 0),
25422
25431
  "data-nav-group": "",
25423
- class: ne(["flex shrink-0 items-center gap-[var(--ui-space-1)]", A > 0 && "ml-1 border-l border-[var(--ui-border-subtle)] pl-2"])
25432
+ class: oe(["flex shrink-0 items-center gap-[var(--ui-space-1)]", A > 0 && "ml-1 border-l border-[var(--ui-border-subtle)] pl-2"])
25424
25433
  }, [
25425
25434
  (y(!0), E(xe, null, nt(k, ({ item: x, index: T }) => (y(), E("div", {
25426
25435
  key: x.key,
@@ -25437,9 +25446,9 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25437
25446
  "model-value": n.modelValue,
25438
25447
  onSelect: C[0] || (C[0] = (I) => o("select", I))
25439
25448
  }, null, 8, ["items", "model-value"]))
25440
- ], 12, mD))), 128))
25441
- ], 14, hD))), 128)),
25442
- re("div", {
25449
+ ], 12, gD))), 128))
25450
+ ], 14, vD))), 128)),
25451
+ ne("div", {
25443
25452
  ref_key: "more",
25444
25453
  ref: a,
25445
25454
  "data-ui-top-nav-more-wrapper": "",
@@ -25455,14 +25464,14 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25455
25464
  overflow: "",
25456
25465
  onSelect: C[1] || (C[1] = (b) => o("select", b))
25457
25466
  }, null, 8, ["items", "model-value"]))
25458
- ], 12, vD)
25459
- ], 8, pD));
25467
+ ], 12, yD)
25468
+ ], 8, mD));
25460
25469
  }
25461
- }), yD = ["aria-label", "data-ui-sidebar-collapsed"], bD = ["aria-expanded", "onClick"], wD = {
25470
+ }), wD = ["aria-label", "data-ui-sidebar-collapsed"], _D = ["aria-expanded", "onClick"], SD = {
25462
25471
  key: 1,
25463
25472
  "data-nav-group-label": "",
25464
25473
  class: "flex h-6 items-center px-[11px] text-[12px] font-bold text-[var(--ui-text-secondary)]"
25465
- }, _D = /* @__PURE__ */ D({
25474
+ }, xD = /* @__PURE__ */ D({
25466
25475
  __name: "AppSidebar",
25467
25476
  props: {
25468
25477
  modelValue: {},
@@ -25521,7 +25530,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25521
25530
  function C(b) {
25522
25531
  b.disabled || (r("update:modelValue", b.key), r("select", b), w(b.key));
25523
25532
  }
25524
- return (b, k) => p(a) ? (y(), N(gD, {
25533
+ return (b, k) => p(a) ? (y(), N(bD, {
25525
25534
  key: 0,
25526
25535
  groups: p(o).groups,
25527
25536
  "model-value": p(o).modelValue,
@@ -25544,7 +25553,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25544
25553
  }, null, 8, ["modelValue", "placeholder", "clear-label"])) : V("", !0),
25545
25554
  (y(!0), E(xe, null, nt(u.value, ({ group: A, id: x, items: T }, I) => (y(), E("section", {
25546
25555
  key: x,
25547
- class: ne(I > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
25556
+ class: oe(I > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
25548
25557
  }, [
25549
25558
  A.label && p(o).collapsible && !p(i) ? (y(), E("button", {
25550
25559
  key: 0,
@@ -25556,12 +25565,12 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25556
25565
  onClick: (F) => f(x)
25557
25566
  }, [
25558
25567
  Z(p(sr), {
25559
- class: ne(["size-3 shrink-0 transition-transform", !h(x) && "-rotate-90"]),
25568
+ class: oe(["size-3 shrink-0 transition-transform", !h(x) && "-rotate-90"]),
25560
25569
  "aria-hidden": "true"
25561
25570
  }, null, 8, ["class"]),
25562
25571
  Ne(" " + ee(A.label), 1)
25563
- ], 8, bD)) : A.label && !p(i) ? (y(), E("div", wD, ee(A.label), 1)) : V("", !0),
25564
- h(x) ? (y(), N(lD, {
25572
+ ], 8, _D)) : A.label && !p(i) ? (y(), E("div", SD, ee(A.label), 1)) : V("", !0),
25573
+ h(x) ? (y(), N(cD, {
25565
25574
  key: 2,
25566
25575
  items: T,
25567
25576
  "model-value": p(o).modelValue,
@@ -25573,15 +25582,15 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25573
25582
  onToggle: _
25574
25583
  }, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) : V("", !0)
25575
25584
  ], 2))), 128))
25576
- ], 8, yD));
25585
+ ], 8, wD));
25577
25586
  }
25578
- }), SD = {
25587
+ }), kD = {
25579
25588
  key: 0,
25580
25589
  class: "flex shrink-0 items-center gap-1.5"
25581
- }, xD = { class: "min-w-0 flex-1" }, kD = {
25590
+ }, CD = { class: "min-w-0 flex-1" }, AD = {
25582
25591
  key: 1,
25583
25592
  class: "ml-auto flex shrink-0 items-center gap-2"
25584
- }, CD = /* @__PURE__ */ D({
25593
+ }, OD = /* @__PURE__ */ D({
25585
25594
  __name: "AppToolbar",
25586
25595
  props: {
25587
25596
  height: { default: "var(--ui-toolbar-height)" }
@@ -25593,29 +25602,29 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25593
25602
  style: ze({ minHeight: e.height }),
25594
25603
  "data-syno-pkg-land-ui": ""
25595
25604
  }, [
25596
- t.$slots.leading ? (y(), E("div", SD, [
25605
+ t.$slots.leading ? (y(), E("div", kD, [
25597
25606
  R(t.$slots, "leading")
25598
25607
  ])) : V("", !0),
25599
- re("div", xD, [
25608
+ ne("div", CD, [
25600
25609
  R(t.$slots, "default")
25601
25610
  ]),
25602
- t.$slots.actions ? (y(), E("div", kD, [
25611
+ t.$slots.actions ? (y(), E("div", AD, [
25603
25612
  R(t.$slots, "actions")
25604
25613
  ])) : V("", !0)
25605
25614
  ], 4));
25606
25615
  }
25607
- }), AD = { class: "min-w-0 flex-auto" }, OD = { class: "flex min-w-0 items-center gap-x-[var(--ui-space-3)]" }, $D = ["title"], ED = {
25616
+ }), $D = { class: "min-w-0 flex-auto" }, ED = { class: "flex min-w-0 items-center gap-x-[var(--ui-space-3)]" }, PD = ["title"], TD = {
25608
25617
  key: 0,
25609
25618
  "data-ui-page-header-meta": "",
25610
25619
  class: "flex shrink-0 items-center gap-2 whitespace-nowrap"
25611
- }, PD = {
25620
+ }, ID = {
25612
25621
  key: 0,
25613
25622
  class: "mt-1 max-w-3xl [contain:inline-size] text-[13px] leading-5 text-[var(--ui-text-secondary)]"
25614
- }, TD = {
25623
+ }, RD = {
25615
25624
  key: 0,
25616
25625
  "data-ui-page-header-actions": "",
25617
25626
  class: "ml-auto flex max-w-full shrink-0 flex-wrap items-center justify-end gap-2 [&>*]:w-auto [&>*]:shrink-0"
25618
- }, ID = /* @__PURE__ */ D({
25627
+ }, DD = /* @__PURE__ */ D({
25619
25628
  __name: "PageHeader",
25620
25629
  props: {
25621
25630
  title: {},
@@ -25625,27 +25634,27 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25625
25634
  setup(e) {
25626
25635
  return (t, n) => (y(), E("div", {
25627
25636
  "data-ui-page-header": "",
25628
- class: ne([e.sticky && "sticky top-0 z-[2] bg-[var(--ui-page-header-bg,var(--ui-surface))]", "flex flex-wrap items-start gap-x-[var(--ui-space-6)] gap-y-[var(--ui-space-2)] px-[var(--ui-page-padding-x)] pt-[var(--ui-page-padding-y)] pb-[var(--ui-space-3)]"]),
25637
+ class: oe([e.sticky && "sticky top-0 z-[2] bg-[var(--ui-page-header-bg,var(--ui-surface))]", "flex flex-wrap items-start gap-x-[var(--ui-space-6)] gap-y-[var(--ui-space-2)] px-[var(--ui-page-padding-x)] pt-[var(--ui-page-padding-y)] pb-[var(--ui-space-3)]"]),
25629
25638
  "data-syno-pkg-land-ui": ""
25630
25639
  }, [
25631
- re("div", AD, [
25632
- re("div", OD, [
25633
- re("h1", {
25640
+ ne("div", $D, [
25641
+ ne("div", ED, [
25642
+ ne("h1", {
25634
25643
  class: "m-0 min-w-0 truncate text-[length:var(--ui-font-size-title)] [font-weight:var(--ui-heading-weight,600)] tracking-[-0.01em] text-[var(--ui-text)]",
25635
25644
  title: e.title
25636
- }, ee(e.title), 9, $D),
25637
- t.$slots.meta ? (y(), E("div", ED, [
25645
+ }, ee(e.title), 9, PD),
25646
+ t.$slots.meta ? (y(), E("div", TD, [
25638
25647
  R(t.$slots, "meta")
25639
25648
  ])) : V("", !0)
25640
25649
  ]),
25641
- e.description ? (y(), E("p", PD, ee(e.description), 1)) : V("", !0)
25650
+ e.description ? (y(), E("p", ID, ee(e.description), 1)) : V("", !0)
25642
25651
  ]),
25643
- t.$slots.actions ? (y(), E("div", TD, [
25652
+ t.$slots.actions ? (y(), E("div", RD, [
25644
25653
  R(t.$slots, "actions")
25645
25654
  ])) : V("", !0)
25646
25655
  ], 2));
25647
25656
  }
25648
- }), RD = ["data-width", "data-height", "data-page-surface"], DD = /* @__PURE__ */ D({
25657
+ }), ND = ["data-width", "data-height", "data-page-surface"], MD = /* @__PURE__ */ D({
25649
25658
  __name: "PageContent",
25650
25659
  props: {
25651
25660
  width: { default: "fill" },
@@ -25658,7 +25667,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25658
25667
  return t.width === "readable" ? "var(--ui-page-readable-width)" : t.width;
25659
25668
  });
25660
25669
  return (r, i) => (y(), E("div", {
25661
- class: ne(["box-border w-full min-w-0", [
25670
+ class: oe(["box-border w-full min-w-0", [
25662
25671
  e.surface !== "none" && "px-[var(--ui-page-padding-x)]",
25663
25672
  n.value && "flex h-full min-h-0 flex-col overflow-hidden"
25664
25673
  ]]),
@@ -25667,16 +25676,16 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25667
25676
  "data-page-surface": e.surface,
25668
25677
  "data-syno-pkg-land-ui": ""
25669
25678
  }, [
25670
- re("div", {
25679
+ ne("div", {
25671
25680
  "data-page-content-body": "",
25672
- class: ne(["flex min-w-0 flex-col gap-[var(--ui-section-gap)] [&>[data-ui-page-header]]:mb-[calc(var(--ui-section-gap)*-1)]", n.value && "min-h-0 flex-1 [&>:last-child]:min-h-0 [&>:last-child]:flex-1"]),
25681
+ class: oe(["flex min-w-0 flex-col gap-[var(--ui-section-gap)] [&>[data-ui-page-header]]:mb-[calc(var(--ui-section-gap)*-1)]", n.value && "min-h-0 flex-1 [&>:last-child]:min-h-0 [&>:last-child]:flex-1"]),
25673
25682
  style: ze({ "--ui-page-padding-x": "0px", maxWidth: o.value })
25674
25683
  }, [
25675
25684
  R(r.$slots, "default")
25676
25685
  ], 6)
25677
- ], 10, RD));
25686
+ ], 10, ND));
25678
25687
  }
25679
- }), ND = ["aria-label", "data-overflow-start", "data-overflow-end"], MD = ["disabled", "data-ui-tab-value", "aria-current", "onClick"], zD = /* @__PURE__ */ D({
25688
+ }), zD = ["aria-label", "data-overflow-start", "data-overflow-end"], qD = ["disabled", "data-ui-tab-value", "aria-current", "onClick"], FD = /* @__PURE__ */ D({
25680
25689
  inheritAttrs: !1,
25681
25690
  __name: "SectionTabs",
25682
25691
  props: {
@@ -25697,7 +25706,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25697
25706
  !f || m < 0 || (d.preventDefault(), h[f(m, h.length)]?.focus());
25698
25707
  }
25699
25708
  return (d, f) => (y(), E(xe, null, [
25700
- re("nav", ie({
25709
+ ne("nav", ie({
25701
25710
  ref_key: "bar",
25702
25711
  ref: i,
25703
25712
  class: "ui-tab-strip relative flex w-full min-w-0 h-[30px] [@media(pointer:coarse)]:h-9 items-end",
@@ -25712,18 +25721,18 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25712
25721
  disabled: h.disabled,
25713
25722
  "data-ui-tab-value": h.value,
25714
25723
  "aria-current": o.modelValue === h.value ? "page" : void 0,
25715
- class: ne([
25724
+ class: oe([
25716
25725
  "relative h-[30px] [@media(pointer:coarse)]:h-9 shrink-0 border-0 bg-transparent px-2 first:pl-0 text-[length:var(--ui-font-size)] font-bold outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
25717
25726
  o.modelValue === h.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] enabled:hover:bg-[var(--ui-surface-hover)] enabled:hover:text-[var(--ui-text)]"
25718
25727
  ]),
25719
25728
  onClick: (m) => r("update:modelValue", h.value)
25720
- }, ee(h.label), 11, MD))), 128)),
25721
- re("span", {
25729
+ }, ee(h.label), 11, qD))), 128)),
25730
+ ne("span", {
25722
25731
  class: "ui-tab-indicator",
25723
25732
  style: ze(p(a)),
25724
25733
  "aria-hidden": "true"
25725
25734
  }, null, 4)
25726
- ], 16, ND),
25735
+ ], 16, zD),
25727
25736
  d.$slots[`panel-${o.modelValue}`] ? (y(), E("div", {
25728
25737
  key: o.modelValue,
25729
25738
  class: "ui-tab-panel",
@@ -25733,7 +25742,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
25733
25742
  ])) : V("", !0)
25734
25743
  ], 64));
25735
25744
  }
25736
- }), qD = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), FD = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
25745
+ }), LD = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), VD = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
25737
25746
  function Xi(e) {
25738
25747
  if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
25739
25748
  const t = Object.getPrototypeOf(e);
@@ -25745,18 +25754,18 @@ function Qi(e, t) {
25745
25754
  function pl(e, t, n) {
25746
25755
  e[t] = n;
25747
25756
  }
25748
- function LD(e) {
25757
+ function BD(e) {
25749
25758
  return Reflect.ownKeys(e).filter((t) => Qi(e, t) !== void 0);
25750
25759
  }
25751
25760
  function hl(e, t) {
25752
25761
  const n = { ...e };
25753
- for (const o of LD(t)) {
25762
+ for (const o of BD(t)) {
25754
25763
  const r = Qi(t, o), i = Qi(n, o);
25755
25764
  Xi(i) && Xi(r) ? pl(n, o, hl(i, r)) : pl(n, o, r);
25756
25765
  }
25757
25766
  return n;
25758
25767
  }
25759
- function VD(e) {
25768
+ function jD(e) {
25760
25769
  const t = {};
25761
25770
  for (const n of Reflect.ownKeys(e)) {
25762
25771
  const o = Qi(e, n);
@@ -25765,15 +25774,15 @@ function VD(e) {
25765
25774
  return t;
25766
25775
  }
25767
25776
  function Km(e, t, n = {}) {
25768
- const o = qe(FD, null), r = qe(qD, null);
25777
+ const o = qe(VD, null), r = qe(LD, null);
25769
25778
  return O(() => {
25770
25779
  const i = [n, r?.value?.[e], o?.value?.[e]];
25771
25780
  let a = {};
25772
25781
  for (const s of i) s && (a = hl(a, s));
25773
- return hl(a, VD(t));
25782
+ return hl(a, jD(t));
25774
25783
  });
25775
25784
  }
25776
- const BD = ["data-layout-direction"], jD = /* @__PURE__ */ D({
25785
+ const UD = ["data-layout-direction"], WD = /* @__PURE__ */ D({
25777
25786
  __name: "Form",
25778
25787
  props: {
25779
25788
  rules: {},
@@ -25849,9 +25858,9 @@ const BD = ["data-layout-direction"], jD = /* @__PURE__ */ D({
25849
25858
  onSubmit: kt(k, ["prevent"])
25850
25859
  }, [
25851
25860
  R(A.$slots, "default")
25852
- ], 44, BD));
25861
+ ], 44, UD));
25853
25862
  }
25854
- }), UD = "blur", WD = {
25863
+ }), KD = "blur", ZD = {
25855
25864
  string: "Value must be a string",
25856
25865
  number: "Value must be a number",
25857
25866
  integer: "Value must be an integer",
@@ -25864,15 +25873,15 @@ const BD = ["data-layout-direction"], jD = /* @__PURE__ */ D({
25864
25873
  function ml(e) {
25865
25874
  return e ? Array.isArray(e) ? [...e] : [e] : [];
25866
25875
  }
25867
- function KD(e, t) {
25876
+ function HD(e, t) {
25868
25877
  return e == null ? !0 : t === "array" || Array.isArray(e) ? Array.isArray(e) && e.length === 0 : typeof e == "string" ? e.trim() === "" : !1;
25869
25878
  }
25870
- function ZD(e) {
25879
+ function GD(e) {
25871
25880
  if (typeof e == "string" || Array.isArray(e)) return e.length;
25872
25881
  if (typeof e == "number") return e;
25873
25882
  if (e instanceof Date) return e.getTime();
25874
25883
  }
25875
- function HD(e, t) {
25884
+ function JD(e, t) {
25876
25885
  switch (t) {
25877
25886
  case "string":
25878
25887
  return typeof e == "string";
@@ -25897,13 +25906,13 @@ function HD(e, t) {
25897
25906
  return e instanceof Date && !Number.isNaN(e.getTime());
25898
25907
  }
25899
25908
  }
25900
- function GD(e) {
25909
+ function YD(e) {
25901
25910
  return typeof e == "object" && e !== null && typeof e.then == "function";
25902
25911
  }
25903
25912
  function yr(e, t) {
25904
25913
  return e instanceof Error ? e.message : typeof e == "string" ? e : t("Value does not match the expected format");
25905
25914
  }
25906
- async function JD(e, t, n) {
25915
+ async function XD(e, t, n) {
25907
25916
  const o = e.validator ?? e.asyncValidator;
25908
25917
  if (!o) return null;
25909
25918
  let r = null, i = !1;
@@ -25916,7 +25925,7 @@ async function JD(e, t, n) {
25916
25925
  } catch (l) {
25917
25926
  return i ? r : yr(l, n);
25918
25927
  }
25919
- if (GD(s))
25928
+ if (YD(s))
25920
25929
  try {
25921
25930
  const l = await s;
25922
25931
  i || (r = l === !0 || l === void 0 || l === null ? null : yr(l, n));
@@ -25926,35 +25935,35 @@ async function JD(e, t, n) {
25926
25935
  else !i && s !== void 0 && s !== !0 && (r = s === !1 ? e.message ?? n("Value does not match the expected format") : yr(s, n));
25927
25936
  return r;
25928
25937
  }
25929
- async function YD(e, t, n) {
25938
+ async function QD(e, t, n) {
25930
25939
  const o = e.transform ? e.transform(t) : t;
25931
- if (KD(o, e.type))
25940
+ if (HD(o, e.type))
25932
25941
  return e.required ? e.message ?? n("Value is required") : null;
25933
- if (e.type && !HD(o, e.type)) return e.message ?? n(WD[e.type]);
25934
- const r = ZD(o);
25935
- return e.len !== void 0 && r !== e.len ? e.message ?? n("Value must be exactly {len} characters", { len: e.len }) : e.min !== void 0 && r !== void 0 && r < e.min ? e.message ?? n("Value must be at least {min}", { min: e.min }) : e.max !== void 0 && r !== void 0 && r > e.max ? e.message ?? n("Value must be at most {max}", { max: e.max }) : e.pattern && (e.pattern.lastIndex = 0, !e.pattern.test(String(o))) ? e.message ?? n("Value does not match the expected format") : e.enum && !e.enum.includes(o) ? e.message ?? n("Value is not one of the allowed options") : JD(e, o, n);
25942
+ if (e.type && !JD(o, e.type)) return e.message ?? n(ZD[e.type]);
25943
+ const r = GD(o);
25944
+ return e.len !== void 0 && r !== e.len ? e.message ?? n("Value must be exactly {len} characters", { len: e.len }) : e.min !== void 0 && r !== void 0 && r < e.min ? e.message ?? n("Value must be at least {min}", { min: e.min }) : e.max !== void 0 && r !== void 0 && r > e.max ? e.message ?? n("Value must be at most {max}", { max: e.max }) : e.pattern && (e.pattern.lastIndex = 0, !e.pattern.test(String(o))) ? e.message ?? n("Value does not match the expected format") : e.enum && !e.enum.includes(o) ? e.message ?? n("Value is not one of the allowed options") : XD(e, o, n);
25936
25945
  }
25937
- function XD(e, t) {
25946
+ function eN(e, t) {
25938
25947
  return e.trigger ? Array.isArray(e.trigger) ? e.trigger : [e.trigger] : [t];
25939
25948
  }
25940
- async function QD(e, t, n = {}) {
25941
- const o = n.defaultTrigger ?? UD, r = n.trigger ?? null, i = n.text ?? ((a, s) => Oh("en", a, s));
25949
+ async function tN(e, t, n = {}) {
25950
+ const o = n.defaultTrigger ?? KD, r = n.trigger ?? null, i = n.text ?? ((a, s) => Oh("en", a, s));
25942
25951
  for (const a of ml(t)) {
25943
- if (r !== null && !XD(a, o).includes(r)) continue;
25944
- const s = await YD(a, e, i);
25952
+ if (r !== null && !eN(a, o).includes(r)) continue;
25953
+ const s = await QD(a, e, i);
25945
25954
  if (s) return s;
25946
25955
  }
25947
25956
  return null;
25948
25957
  }
25949
- const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
25958
+ const nN = ["data-direction", "data-status"], oN = ["id", "for"], rN = {
25950
25959
  key: 0,
25951
25960
  class: "ml-0.5 text-[var(--ui-danger)]",
25952
25961
  "aria-hidden": "true"
25953
- }, oN = { class: "flex items-start gap-2" }, rN = {
25962
+ }, iN = { class: "flex items-start gap-2" }, aN = {
25954
25963
  key: 0,
25955
25964
  class: "flex min-h-[var(--ui-control-md)] shrink-0 items-center",
25956
25965
  "data-field-after": ""
25957
- }, iN = ["id"], aN = ["id"], sN = /* @__PURE__ */ D({
25966
+ }, sN = ["id"], lN = ["id"], uN = /* @__PURE__ */ D({
25958
25967
  __name: "FormItem",
25959
25968
  props: {
25960
25969
  modelValue: {},
@@ -26034,7 +26043,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26034
26043
  function x() {
26035
26044
  C.value = w.value;
26036
26045
  }
26037
- const T = /* @__PURE__ */ M(""), I = /* @__PURE__ */ M(""), F = /* @__PURE__ */ M(""), W = /* @__PURE__ */ M(""), X = /* @__PURE__ */ M(!1), te = /* @__PURE__ */ M(!1), fe = O(() => r.disabled === !0 || X.value), K = O(() => W.value || s.value.validateStatus || T.value), oe = O(() => K.value === "error"), ce = O(() => F.value || I.value || s.value.help), pe = O(() => F.value ? F.value : oe.value && !s.value.hideValidateMessage && I.value || s.value.help), Fe = fr(u), ye = O(() => {
26046
+ const T = /* @__PURE__ */ M(""), I = /* @__PURE__ */ M(""), F = /* @__PURE__ */ M(""), W = /* @__PURE__ */ M(""), X = /* @__PURE__ */ M(!1), te = /* @__PURE__ */ M(!1), fe = O(() => r.disabled === !0 || X.value), K = O(() => W.value || s.value.validateStatus || T.value), re = O(() => K.value === "error"), ce = O(() => F.value || I.value || s.value.help), pe = O(() => F.value ? F.value : re.value && !s.value.hideValidateMessage && I.value || s.value.help), Fe = fr(u), ye = O(() => {
26038
26047
  const H = s.value.direction ?? l?.direction ?? "auto";
26039
26048
  return H === "auto" ? Fe.value > 0 && Fe.value < 520 ? "vertical" : "horizontal" : H;
26040
26049
  }), Ae = O(() => {
@@ -26049,10 +26058,10 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26049
26058
  }), pt = O(() => ({
26050
26059
  maxWidth: Lm(r.fieldWidth ?? l?.fieldWidth)
26051
26060
  })), Ye = O(() => ye.value === "vertical" ? void 0 : { width: s.value.labelWidth ?? "var(--ui-label-column)" }), _t = O(() => {
26052
- const H = oe.value ? "text-[var(--ui-danger)]" : K.value === "warning" ? "text-[var(--ui-warning)]" : K.value === "success" ? "text-[var(--ui-success)]" : "text-[var(--ui-text-secondary)]";
26061
+ const H = re.value ? "text-[var(--ui-danger)]" : K.value === "warning" ? "text-[var(--ui-warning)]" : K.value === "success" ? "text-[var(--ui-success)]" : "text-[var(--ui-text-secondary)]";
26053
26062
  return Ae.value === "text" ? En("mt-1 text-[12px] leading-4", H) : En(
26054
26063
  "absolute left-0 top-full z-[1100] mt-1 max-w-[min(100%,20rem)] rounded-[var(--ui-radius-md)] px-2.5 py-1.5 text-[12px] leading-4 shadow-[var(--ui-shadow-menu)]",
26055
- oe.value ? "bg-[var(--ui-danger-hover)] text-[var(--ui-danger-foreground)]" : "bg-[var(--ui-tooltip-bg)] text-[var(--ui-tooltip-fg)]",
26064
+ re.value ? "bg-[var(--ui-danger-hover)] text-[var(--ui-danger-foreground)]" : "bg-[var(--ui-tooltip-bg)] text-[var(--ui-tooltip-fg)]",
26056
26065
  "transition-opacity duration-[var(--ui-motion-fast)]",
26057
26066
  te.value ? "opacity-100" : "pointer-events-none opacity-0"
26058
26067
  );
@@ -26068,7 +26077,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26068
26077
  if (!ue.length) return null;
26069
26078
  const ke = ++Wn;
26070
26079
  T.value = "validating", i("validating");
26071
- const Ee = await QD(w.value, ue, {
26080
+ const Ee = await tN(w.value, ue, {
26072
26081
  trigger: H,
26073
26082
  defaultTrigger: s.value.defaultValidateTrigger,
26074
26083
  text: o
@@ -26134,7 +26143,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26134
26143
  describedBy: ve,
26135
26144
  required: O(() => s.value.requiredMark === !0),
26136
26145
  disabled: fe,
26137
- invalid: oe,
26146
+ invalid: re,
26138
26147
  status: K,
26139
26148
  message: ce,
26140
26149
  validate: $,
@@ -26147,7 +26156,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26147
26156
  controlProps: O(() => ({
26148
26157
  id: h.value,
26149
26158
  "aria-describedby": ve.value,
26150
- "aria-invalid": oe.value || void 0,
26159
+ "aria-invalid": re.value || void 0,
26151
26160
  "aria-required": s.value.requiredMark || void 0,
26152
26161
  onBlur: z,
26153
26162
  onInput: G
@@ -26180,7 +26189,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26180
26189
  "data-form-item": "",
26181
26190
  "data-direction": ye.value,
26182
26191
  style: ze(rt.value),
26183
- class: ne(p(En)("min-w-0", oe.value && !p(s).hideValidateStatusCls && "has-error")),
26192
+ class: oe(p(En)("min-w-0", re.value && !p(s).hideValidateStatusCls && "has-error")),
26184
26193
  "data-status": K.value || void 0,
26185
26194
  "data-syno-pkg-land-ui": "",
26186
26195
  onMouseenter: ue[1] || (ue[1] = (ke) => Ae.value === "popup" && B()),
@@ -26192,14 +26201,14 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26192
26201
  key: 0,
26193
26202
  "data-form-label": "",
26194
26203
  style: ze(Ye.value),
26195
- class: ne([
26204
+ class: oe([
26196
26205
  "min-w-0 shrink-0 break-words [word-break:keep-all] text-[13px] leading-5 text-[var(--ui-text)]",
26197
26206
  ye.value === "horizontal" ? "pt-[5px] text-left" : void 0,
26198
26207
  p(s).disableLabel || fe.value ? "opacity-40" : void 0
26199
26208
  ]),
26200
- onClick: ue[0] || (ue[0] = (ke) => Ae.value === "popup" && oe.value && B())
26209
+ onClick: ue[0] || (ue[0] = (ke) => Ae.value === "popup" && re.value && B())
26201
26210
  }, [
26202
- re("label", {
26211
+ ne("label", {
26203
26212
  id: f.label,
26204
26213
  for: p(s).textOnly ? void 0 : h.value,
26205
26214
  onClick: _e
@@ -26207,29 +26216,29 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26207
26216
  R(H.$slots, "label", {}, () => [
26208
26217
  Ne(ee(p(s).label), 1)
26209
26218
  ]),
26210
- p(s).requiredMark ? (y(), E("span", nN, "*")) : V("", !0)
26211
- ], 8, tN)
26219
+ p(s).requiredMark ? (y(), E("span", rN, "*")) : V("", !0)
26220
+ ], 8, oN)
26212
26221
  ], 6)) : V("", !0),
26213
- re("div", {
26214
- class: ne(["relative min-w-0 flex-1", p(s).disableControl ? "opacity-40" : void 0])
26222
+ ne("div", {
26223
+ class: oe(["relative min-w-0 flex-1", p(s).disableControl ? "opacity-40" : void 0])
26215
26224
  }, [
26216
- re("div", oN, [
26225
+ ne("div", iN, [
26217
26226
  R(H.$slots, "before"),
26218
- re("div", {
26227
+ ne("div", {
26219
26228
  class: "min-w-0 flex-1",
26220
26229
  "data-field-control": "",
26221
26230
  style: ze(pt.value)
26222
26231
  }, [
26223
26232
  R(H.$slots, "default", { field: me })
26224
26233
  ], 4),
26225
- H.$slots.after ? (y(), E("div", rN, [
26234
+ H.$slots.after ? (y(), E("div", aN, [
26226
26235
  R(H.$slots, "after", { classes: It })
26227
26236
  ])) : V("", !0)
26228
26237
  ]),
26229
26238
  ft.value ? (y(), E("div", {
26230
26239
  key: 0,
26231
26240
  id: f.description,
26232
- class: ne([
26241
+ class: oe([
26233
26242
  "mt-1 text-[12px] leading-4 text-[var(--ui-text-secondary)]",
26234
26243
  p(s).disableDescription || fe.value ? "opacity-40" : void 0
26235
26244
  ])
@@ -26237,19 +26246,19 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26237
26246
  R(H.$slots, "description", {}, () => [
26238
26247
  Ne(ee(p(s).description), 1)
26239
26248
  ])
26240
- ], 10, iN)) : V("", !0),
26249
+ ], 10, sN)) : V("", !0),
26241
26250
  pe.value ? (y(), E("div", {
26242
26251
  key: 1,
26243
26252
  id: f.message,
26244
26253
  role: "alert",
26245
- class: ne(_t.value)
26254
+ class: oe(_t.value)
26246
26255
  }, [
26247
26256
  R(H.$slots, "status", { field: me }, () => [
26248
26257
  Ne(ee(pe.value), 1)
26249
26258
  ])
26250
- ], 10, aN)) : V("", !0)
26259
+ ], 10, lN)) : V("", !0)
26251
26260
  ], 2)
26252
- ], 46, eN));
26261
+ ], 46, nN));
26253
26262
  }
26254
26263
  }), Zm = Gl(() => le({
26255
26264
  key: L(),
@@ -26263,7 +26272,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26263
26272
  label: L(),
26264
26273
  value: L(),
26265
26274
  disabled: Ce().optional()
26266
- }), lN = vl.extend({
26275
+ }), cN = vl.extend({
26267
26276
  description: L().optional()
26268
26277
  }), Vd = le({
26269
26278
  key: L(),
@@ -26272,7 +26281,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26272
26281
  /** Sets the alignment: DSM keeps every column left; number and date digits get one width. */
26273
26282
  type: $e(["text", "number", "date", "actions"]).optional(),
26274
26283
  align: $e(["left", "center", "right"]).optional()
26275
- }), uN = {
26284
+ }), dN = {
26276
26285
  AppRoot: {
26277
26286
  props: le({
26278
26287
  modalScope: $e(["document", "app"]).optional()
@@ -26417,7 +26426,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26417
26426
  RadioGroup: {
26418
26427
  props: le({
26419
26428
  value: L().optional(),
26420
- options: Qe(lN),
26429
+ options: Qe(cN),
26421
26430
  orientation: $e(["vertical", "horizontal"]).optional(),
26422
26431
  disabled: Ce().optional()
26423
26432
  }),
@@ -26601,17 +26610,17 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
26601
26610
  props: le({ text: L().optional() }),
26602
26611
  description: "Centered loading state for a page or bounded region."
26603
26612
  }
26604
- }, cN = ek(nk, {
26605
- components: uN,
26613
+ }, fN = ek(nk, {
26614
+ components: dN,
26606
26615
  actions: {}
26607
- }), dN = {
26616
+ }), pN = {
26608
26617
  none: "0",
26609
26618
  xs: "var(--ui-space-1)",
26610
26619
  sm: "var(--ui-space-2)",
26611
26620
  md: "var(--ui-space-3)",
26612
26621
  lg: "var(--ui-space-4)"
26613
- }, fN = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch" }, pN = { start: "flex-start", center: "center", end: "flex-end", between: "space-between" };
26614
- function hN(e) {
26622
+ }, hN = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch" }, mN = { start: "flex-start", center: "center", end: "flex-end", between: "space-between" };
26623
+ function vN(e) {
26615
26624
  return { default: () => e };
26616
26625
  }
26617
26626
  function gl(e) {
@@ -26624,27 +26633,27 @@ function Hm(e) {
26624
26633
  children: e.children?.map(Hm)
26625
26634
  };
26626
26635
  }
26627
- function mN(e) {
26636
+ function gN(e) {
26628
26637
  return e.map((t) => ({ ...t, items: t.items.map(Hm) }));
26629
26638
  }
26630
- const vN = {
26631
- AppRoot: ({ props: e, slots: t }) => se(RR, { modalScope: e.modalScope }, t),
26632
- AppShell: ({ props: e, slots: t }) => se(QR, {
26639
+ const yN = {
26640
+ AppRoot: ({ props: e, slots: t }) => se(NR, { modalScope: e.modalScope }, t),
26641
+ AppShell: ({ props: e, slots: t }) => se(tD, {
26633
26642
  sidebarWidth: e.sidebarWidth,
26634
26643
  minHeight: e.minHeight,
26635
26644
  responsive: e.responsive,
26636
26645
  wideLayout: e.wideLayout,
26637
26646
  navigation: e.navigation
26638
26647
  }, t),
26639
- ResponsiveView: ({ props: e, slots: t }) => se(eD, { mode: e.mode }, t),
26640
- Page: ({ props: e, slots: t }) => se(DD, { width: e.width ?? "fill", surface: e.surface }, t),
26641
- PageHeader: ({ props: e, slots: t }) => se(ID, e, t),
26642
- Toolbar: ({ props: e, slots: t }) => se(CD, e, t),
26648
+ ResponsiveView: ({ props: e, slots: t }) => se(nD, { mode: e.mode }, t),
26649
+ Page: ({ props: e, slots: t }) => se(MD, { width: e.width ?? "fill", surface: e.surface }, t),
26650
+ PageHeader: ({ props: e, slots: t }) => se(DD, e, t),
26651
+ Toolbar: ({ props: e, slots: t }) => se(OD, e, t),
26643
26652
  SidebarNav: ({ props: e, bindings: t, emit: n }) => {
26644
26653
  const [o, r] = cn(e.value, t?.value);
26645
- return se(_D, {
26654
+ return se(xD, {
26646
26655
  modelValue: o,
26647
- groups: mN(e.groups),
26656
+ groups: gN(e.groups),
26648
26657
  searchable: e.searchable,
26649
26658
  collapsible: e.collapsible,
26650
26659
  searchPlaceholder: e.searchPlaceholder,
@@ -26655,7 +26664,7 @@ const vN = {
26655
26664
  },
26656
26665
  Tabs: ({ props: e, bindings: t, emit: n }) => {
26657
26666
  const [o, r] = cn(e.value, t?.value);
26658
- return se(zD, {
26667
+ return se(FD, {
26659
26668
  modelValue: o ?? "",
26660
26669
  items: e.items,
26661
26670
  ariaLabel: e.ariaLabel,
@@ -26669,9 +26678,9 @@ const vN = {
26669
26678
  style: {
26670
26679
  display: "flex",
26671
26680
  flexDirection: e.direction ?? "column",
26672
- gap: dN[e.gap ?? "md"],
26673
- alignItems: fN[e.align ?? "stretch"],
26674
- justifyContent: pN[e.justify ?? "start"],
26681
+ gap: pN[e.gap ?? "md"],
26682
+ alignItems: hN[e.align ?? "stretch"],
26683
+ justifyContent: mN[e.justify ?? "start"],
26675
26684
  flexWrap: e.wrap ? "wrap" : "nowrap"
26676
26685
  }
26677
26686
  }, t),
@@ -26755,12 +26764,12 @@ const vN = {
26755
26764
  }
26756
26765
  });
26757
26766
  },
26758
- Form: ({ props: e, slots: t, emit: n }) => se(jD, {
26767
+ Form: ({ props: e, slots: t, emit: n }) => se(WD, {
26759
26768
  direction: e.direction,
26760
26769
  fieldWidth: e.fieldWidth,
26761
26770
  onSubmit: () => n("submit")
26762
26771
  }, t),
26763
- Field: ({ props: e, slots: t }) => se(sN, {
26772
+ Field: ({ props: e, slots: t }) => se(uN, {
26764
26773
  label: e.label,
26765
26774
  description: e.description,
26766
26775
  help: e.help,
@@ -26789,7 +26798,7 @@ const vN = {
26789
26798
  Surface: ({ props: e, slots: t }) => se(Nm, e, t),
26790
26799
  Card: ({ props: e, bindings: t, slots: n, emit: o }) => {
26791
26800
  const [r, i] = cn(e.expanded, t?.expanded);
26792
- return se(yR, {
26801
+ return se(wR, {
26793
26802
  title: e.title,
26794
26803
  layoutType: e.layoutType,
26795
26804
  expandable: e.expandable,
@@ -26815,7 +26824,7 @@ const vN = {
26815
26824
  icon: gl(e.icon)
26816
26825
  }, t),
26817
26826
  Progress: ({ props: e }) => se(Rm, e),
26818
- Badge: ({ props: e }) => se(ZP, { tone: e.tone }, hN(e.text)),
26827
+ Badge: ({ props: e }) => se(ZP, { tone: e.tone }, vN(e.text)),
26819
26828
  Dialog: ({ props: e, bindings: t, slots: n, emit: o }) => {
26820
26829
  const [r, i] = cn(e.open, t?.open);
26821
26830
  return se(jT, {
@@ -26837,12 +26846,12 @@ const vN = {
26837
26846
  ]),
26838
26847
  CellText: ({ props: e, emit: t }) => se(QI, { ...e, onOpen: () => t("open") }),
26839
26848
  CellStatus: ({ props: e }) => se(rR, e),
26840
- ListItem: ({ props: e, slots: t }) => se(pR, e, t),
26849
+ ListItem: ({ props: e, slots: t }) => se(mR, e, t),
26841
26850
  InputGroup: ({ slots: e }) => se($C, null, e),
26842
26851
  Loading: ({ props: e }) => se(eT, { text: e.text })
26843
- }, { registry: Bd } = xk(cN, {
26844
- components: vN
26845
- }), gN = /* @__PURE__ */ D({
26852
+ }, { registry: Bd } = xk(fN, {
26853
+ components: yN
26854
+ }), bN = /* @__PURE__ */ D({
26846
26855
  __name: "SynoJsonRenderer",
26847
26856
  props: {
26848
26857
  spec: {},
@@ -26886,18 +26895,18 @@ function $i(e) {
26886
26895
  return t.overflowX && t.overflowX !== "visible" ? t.overflowX : t.overflow.split(" ")[0] || "visible";
26887
26896
  }
26888
26897
  const Gm = (e) => e.closest("[data-jr-key]")?.getAttribute("data-jr-key") ?? void 0;
26889
- function yN(e, t) {
26898
+ function wN(e, t) {
26890
26899
  for (let n = e.parentElement; n && t.contains(n); n = n.parentElement)
26891
26900
  if ($i(n) !== "visible") return n;
26892
26901
  }
26893
- function bN(e, t, n) {
26902
+ function _N(e, t, n) {
26894
26903
  if (e.closest("[inert]")) return;
26895
26904
  const o = e.getBoundingClientRect();
26896
26905
  if (o.width <= 1) return;
26897
26906
  const r = $i(e);
26898
26907
  if ((r === "hidden" || r === "clip") && e.scrollWidth > e.clientWidth + 1 && getComputedStyle(e).textOverflow !== "ellipsis")
26899
26908
  return { kind: "clipped_content", detail: `content is ${e.scrollWidth - e.clientWidth}px wider than its box and is cut off` };
26900
- const i = yN(e, t);
26909
+ const i = wN(e, t);
26901
26910
  if (i) {
26902
26911
  if ($i(i) === "auto" || $i(i) === "scroll") return;
26903
26912
  const s = i.getBoundingClientRect(), l = Math.max(o.right - s.right, s.left - o.left), c = Gm(i);
@@ -26906,25 +26915,25 @@ function bN(e, t, n) {
26906
26915
  const a = Math.max(o.right - n, -o.left);
26907
26916
  return a > 1 ? { kind: "outside_viewport", detail: `extends ${Math.round(a)}px past the ${n}px viewport` } : void 0;
26908
26917
  }
26909
- function wN(e, t) {
26910
- const n = [...e.querySelectorAll("*")].map((i) => ({ element: i, finding: bN(i, e, t) })).filter((i) => !!i.finding), o = n.filter((i) => !n.some((a) => a !== i && a.finding.kind === i.finding.kind && i.element.contains(a.element))), r = /* @__PURE__ */ new Map();
26918
+ function SN(e, t) {
26919
+ const n = [...e.querySelectorAll("*")].map((i) => ({ element: i, finding: _N(i, e, t) })).filter((i) => !!i.finding), o = n.filter((i) => !n.some((a) => a !== i && a.finding.kind === i.finding.kind && i.element.contains(a.element))), r = /* @__PURE__ */ new Map();
26911
26920
  for (const { element: i, finding: a } of o) {
26912
26921
  const s = Gm(i), l = `${a.kind}:${s ?? ""}`;
26913
26922
  r.has(l) || r.set(l, { ...a, key: s });
26914
26923
  }
26915
26924
  return [...r.values()];
26916
26925
  }
26917
- function _N(e, t) {
26926
+ function xN(e, t) {
26918
26927
  const n = Object.hasOwn(e, t) ? e[t] : t.split(".").reduce((o, r) => o?.[r], e);
26919
26928
  return typeof n == "string" ? n : t;
26920
26929
  }
26921
- const SN = () => new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(e)));
26922
- async function xN() {
26930
+ const kN = () => new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(e)));
26931
+ async function CN() {
26923
26932
  const e = await (await fetch("/config.json")).json();
26924
26933
  $x();
26925
- const t = document.getElementById("app"), n = ({ key: o }) => _N(e.messages ?? {}, String(o));
26934
+ const t = document.getElementById("app"), n = ({ key: o }) => xN(e.messages ?? {}, String(o));
26926
26935
  return hy({
26927
- render: () => se(gN, { spec: e.spec, state: { ...e.spec.state, ...e.state }, functions: { t: n } })
26928
- }).mount(t), await Re(), await document.fonts.ready, await SN(), { issues: () => wN(t, innerWidth) };
26936
+ render: () => se(bN, { spec: e.spec, state: { ...e.spec.state, ...e.state }, functions: { t: n } })
26937
+ }).mount(t), await Re(), await document.fonts.ready, await kN(), { issues: () => SN(t, innerWidth) };
26929
26938
  }
26930
- window.synoPreview = xN();
26939
+ window.synoPreview = CN();