@olonjs/core 1.0.96 → 1.0.97

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.
@@ -325,7 +325,7 @@ const Hl = (e, t) => {
325
325
  }, ar = (e, t, r = !1) => {
326
326
  const n = qa.exec(e);
327
327
  return n ? n[1] ? t(n[1]) : r : !1;
328
- }, Ja = (e) => e === "position" || e === "percentage", Za = (e) => e === "image" || e === "url", Qa = (e) => e === "length" || e === "size" || e === "bg-size", es = (e) => e === "length", Rd = (e) => e === "number", Ad = (e) => e === "family-name", ts = (e) => e === "shadow", Td = () => {
328
+ }, Ja = (e) => e === "position" || e === "percentage", Za = (e) => e === "image" || e === "url", Qa = (e) => e === "length" || e === "size" || e === "bg-size", es = (e) => e === "length", Rd = (e) => e === "number", Ad = (e) => e === "family-name", ts = (e) => e === "shadow", zd = () => {
329
329
  const e = Pe("color"), t = Pe("font"), r = Pe("text"), n = Pe("font-weight"), o = Pe("tracking"), i = Pe("leading"), a = Pe("breakpoint"), s = Pe("container"), c = Pe("spacing"), d = Pe("radius"), u = Pe("shadow"), f = Pe("inset-shadow"), h = Pe("text-shadow"), p = Pe("drop-shadow"), x = Pe("blur"), m = Pe("perspective"), b = Pe("aspect"), w = Pe("ease"), y = Pe("animate"), v = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
330
330
  "center",
331
331
  "top",
@@ -360,7 +360,7 @@ const Hl = (e, t) => {
360
360
  d,
361
361
  K,
362
362
  V
363
- ], H = () => ["", ce, vr, Dt], ve = () => ["solid", "dashed", "dotted", "double"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [ce, no, _i, Mi], J = () => [
363
+ ], H = () => ["", ce, vr, Dt], ve = () => ["solid", "dashed", "dotted", "double"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => [ce, no, _i, Mi], J = () => [
364
364
  // Deprecated since Tailwind CSS v4.0.0
365
365
  "",
366
366
  "none",
@@ -1852,10 +1852,10 @@ const Hl = (e, t) => {
1852
1852
  "mask-linear": [ce]
1853
1853
  }],
1854
1854
  "mask-image-linear-from-pos": [{
1855
- "mask-linear-from": T()
1855
+ "mask-linear-from": z()
1856
1856
  }],
1857
1857
  "mask-image-linear-to-pos": [{
1858
- "mask-linear-to": T()
1858
+ "mask-linear-to": z()
1859
1859
  }],
1860
1860
  "mask-image-linear-from-color": [{
1861
1861
  "mask-linear-from": R()
@@ -1864,10 +1864,10 @@ const Hl = (e, t) => {
1864
1864
  "mask-linear-to": R()
1865
1865
  }],
1866
1866
  "mask-image-t-from-pos": [{
1867
- "mask-t-from": T()
1867
+ "mask-t-from": z()
1868
1868
  }],
1869
1869
  "mask-image-t-to-pos": [{
1870
- "mask-t-to": T()
1870
+ "mask-t-to": z()
1871
1871
  }],
1872
1872
  "mask-image-t-from-color": [{
1873
1873
  "mask-t-from": R()
@@ -1876,10 +1876,10 @@ const Hl = (e, t) => {
1876
1876
  "mask-t-to": R()
1877
1877
  }],
1878
1878
  "mask-image-r-from-pos": [{
1879
- "mask-r-from": T()
1879
+ "mask-r-from": z()
1880
1880
  }],
1881
1881
  "mask-image-r-to-pos": [{
1882
- "mask-r-to": T()
1882
+ "mask-r-to": z()
1883
1883
  }],
1884
1884
  "mask-image-r-from-color": [{
1885
1885
  "mask-r-from": R()
@@ -1888,10 +1888,10 @@ const Hl = (e, t) => {
1888
1888
  "mask-r-to": R()
1889
1889
  }],
1890
1890
  "mask-image-b-from-pos": [{
1891
- "mask-b-from": T()
1891
+ "mask-b-from": z()
1892
1892
  }],
1893
1893
  "mask-image-b-to-pos": [{
1894
- "mask-b-to": T()
1894
+ "mask-b-to": z()
1895
1895
  }],
1896
1896
  "mask-image-b-from-color": [{
1897
1897
  "mask-b-from": R()
@@ -1900,10 +1900,10 @@ const Hl = (e, t) => {
1900
1900
  "mask-b-to": R()
1901
1901
  }],
1902
1902
  "mask-image-l-from-pos": [{
1903
- "mask-l-from": T()
1903
+ "mask-l-from": z()
1904
1904
  }],
1905
1905
  "mask-image-l-to-pos": [{
1906
- "mask-l-to": T()
1906
+ "mask-l-to": z()
1907
1907
  }],
1908
1908
  "mask-image-l-from-color": [{
1909
1909
  "mask-l-from": R()
@@ -1912,10 +1912,10 @@ const Hl = (e, t) => {
1912
1912
  "mask-l-to": R()
1913
1913
  }],
1914
1914
  "mask-image-x-from-pos": [{
1915
- "mask-x-from": T()
1915
+ "mask-x-from": z()
1916
1916
  }],
1917
1917
  "mask-image-x-to-pos": [{
1918
- "mask-x-to": T()
1918
+ "mask-x-to": z()
1919
1919
  }],
1920
1920
  "mask-image-x-from-color": [{
1921
1921
  "mask-x-from": R()
@@ -1924,10 +1924,10 @@ const Hl = (e, t) => {
1924
1924
  "mask-x-to": R()
1925
1925
  }],
1926
1926
  "mask-image-y-from-pos": [{
1927
- "mask-y-from": T()
1927
+ "mask-y-from": z()
1928
1928
  }],
1929
1929
  "mask-image-y-to-pos": [{
1930
- "mask-y-to": T()
1930
+ "mask-y-to": z()
1931
1931
  }],
1932
1932
  "mask-image-y-from-color": [{
1933
1933
  "mask-y-from": R()
@@ -1939,10 +1939,10 @@ const Hl = (e, t) => {
1939
1939
  "mask-radial": [K, V]
1940
1940
  }],
1941
1941
  "mask-image-radial-from-pos": [{
1942
- "mask-radial-from": T()
1942
+ "mask-radial-from": z()
1943
1943
  }],
1944
1944
  "mask-image-radial-to-pos": [{
1945
- "mask-radial-to": T()
1945
+ "mask-radial-to": z()
1946
1946
  }],
1947
1947
  "mask-image-radial-from-color": [{
1948
1948
  "mask-radial-from": R()
@@ -1966,10 +1966,10 @@ const Hl = (e, t) => {
1966
1966
  "mask-conic": [ce]
1967
1967
  }],
1968
1968
  "mask-image-conic-from-pos": [{
1969
- "mask-conic-from": T()
1969
+ "mask-conic-from": z()
1970
1970
  }],
1971
1971
  "mask-image-conic-to-pos": [{
1972
- "mask-conic-to": T()
1972
+ "mask-conic-to": z()
1973
1973
  }],
1974
1974
  "mask-image-conic-from-color": [{
1975
1975
  "mask-conic-from": R()
@@ -2795,9 +2795,9 @@ const Hl = (e, t) => {
2795
2795
  },
2796
2796
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2797
2797
  };
2798
- }, zd = /* @__PURE__ */ dd(Td);
2798
+ }, Td = /* @__PURE__ */ dd(zd);
2799
2799
  function ae(...e) {
2800
- return zd(Bl(e));
2800
+ return Td(Bl(e));
2801
2801
  }
2802
2802
  var Xr = { exports: {} }, xr = {};
2803
2803
  /**
@@ -2951,14 +2951,14 @@ function Od() {
2951
2951
  )), N = this.props.ref, N !== void 0 ? N : null;
2952
2952
  }
2953
2953
  function d(N, F, G, H, ve, se) {
2954
- var T = G.ref;
2954
+ var z = G.ref;
2955
2955
  return N = {
2956
2956
  $$typeof: x,
2957
2957
  type: N,
2958
2958
  key: F,
2959
2959
  props: G,
2960
2960
  _owner: H
2961
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(N, "ref", {
2961
+ }, (z !== void 0 ? z : null) !== null ? Object.defineProperty(N, "ref", {
2962
2962
  enumerable: !1,
2963
2963
  get: c
2964
2964
  }) : Object.defineProperty(N, "ref", { enumerable: !1, value: null }), N._store = {}, Object.defineProperty(N._store, "validated", {
@@ -2984,24 +2984,24 @@ function Od() {
2984
2984
  }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
2985
2985
  }
2986
2986
  function u(N, F, G, H, ve, se) {
2987
- var T = F.children;
2988
- if (T !== void 0)
2987
+ var z = F.children;
2988
+ if (z !== void 0)
2989
2989
  if (H)
2990
- if (Y(T)) {
2991
- for (H = 0; H < T.length; H++)
2992
- f(T[H]);
2993
- Object.freeze && Object.freeze(T);
2990
+ if (Y(z)) {
2991
+ for (H = 0; H < z.length; H++)
2992
+ f(z[H]);
2993
+ Object.freeze && Object.freeze(z);
2994
2994
  } else
2995
2995
  console.error(
2996
2996
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2997
2997
  );
2998
- else f(T);
2998
+ else f(z);
2999
2999
  if (D.call(F, "key")) {
3000
- T = e(N);
3000
+ z = e(N);
3001
3001
  var J = Object.keys(F).filter(function($) {
3002
3002
  return $ !== "key";
3003
3003
  });
3004
- H = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", ne[T + H] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
3004
+ H = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", ne[z + H] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
3005
3005
  `A props object containing a "key" prop is being spread into JSX:
3006
3006
  let props = %s;
3007
3007
  <%s {...props} />
@@ -3009,22 +3009,22 @@ React keys must be passed directly to JSX without using spread:
3009
3009
  let props = %s;
3010
3010
  <%s key={someKey} {...props} />`,
3011
3011
  H,
3012
- T,
3012
+ z,
3013
3013
  J,
3014
- T
3015
- ), ne[T + H] = !0);
3014
+ z
3015
+ ), ne[z + H] = !0);
3016
3016
  }
3017
- if (T = null, G !== void 0 && (r(G), T = "" + G), a(F) && (r(F.key), T = "" + F.key), "key" in F) {
3017
+ if (z = null, G !== void 0 && (r(G), z = "" + G), a(F) && (r(F.key), z = "" + F.key), "key" in F) {
3018
3018
  G = {};
3019
3019
  for (var re in F)
3020
3020
  re !== "key" && (G[re] = F[re]);
3021
3021
  } else G = F;
3022
- return T && s(
3022
+ return z && s(
3023
3023
  G,
3024
3024
  typeof N == "function" ? N.displayName || N.name || "Unknown" : N
3025
3025
  ), d(
3026
3026
  N,
3027
- T,
3027
+ z,
3028
3028
  G,
3029
3029
  o(),
3030
3030
  ve,
@@ -3545,7 +3545,7 @@ const Ru = [
3545
3545
  }
3546
3546
  ]
3547
3547
  ], Au = xe("Zap", Ru);
3548
- class Tu extends Fa {
3548
+ class zu extends Fa {
3549
3549
  constructor(t) {
3550
3550
  super(t), this.state = { hasError: !1 };
3551
3551
  }
@@ -3569,7 +3569,7 @@ class Tu extends Fa {
3569
3569
  ] }) : this.props.children;
3570
3570
  }
3571
3571
  }
3572
- const zu = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o = 0, totalSections: i = 0, onReorder: a }) => {
3572
+ const Tu = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o = 0, totalSections: i = 0, onReorder: a }) => {
3573
3573
  const s = typeof o == "number" && o > 0 && a, c = typeof o == "number" && o < i - 1 && a;
3574
3574
  return /* @__PURE__ */ l.jsx(
3575
3575
  "div",
@@ -3664,9 +3664,9 @@ const zu = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
3664
3664
  f && "z-[70]"
3665
3665
  ),
3666
3666
  children: [
3667
- /* @__PURE__ */ l.jsx("div", { className: e.type === "header" ? "relative" : "relative z-0", children: /* @__PURE__ */ l.jsx(Tu, { type: e.type, children: b() }) }),
3667
+ /* @__PURE__ */ l.jsx("div", { className: e.type === "header" ? "relative" : "relative z-0", children: /* @__PURE__ */ l.jsx(zu, { type: e.type, children: b() }) }),
3668
3668
  u && !x && /* @__PURE__ */ l.jsx(
3669
- zu,
3669
+ Tu,
3670
3670
  {
3671
3671
  type: e.type,
3672
3672
  scope: p,
@@ -4139,7 +4139,7 @@ function Uu() {
4139
4139
  }, []);
4140
4140
  return [t, r];
4141
4141
  }
4142
- function Tr(e, t) {
4142
+ function zr(e, t) {
4143
4143
  t === void 0 && (t = [e]);
4144
4144
  const r = ue(e);
4145
4145
  return it(() => {
@@ -4198,7 +4198,7 @@ function ls(e) {
4198
4198
  });
4199
4199
  };
4200
4200
  }
4201
- const Xt = /* @__PURE__ */ ls(1), zr = /* @__PURE__ */ ls(-1);
4201
+ const Xt = /* @__PURE__ */ ls(1), Tr = /* @__PURE__ */ ls(-1);
4202
4202
  function Bu(e) {
4203
4203
  return "clientX" in e && "clientY" in e;
4204
4204
  }
@@ -4797,7 +4797,7 @@ function bs(e) {
4797
4797
  function vs(e) {
4798
4798
  return sr(e) ? e.scrollY : e.scrollTop;
4799
4799
  }
4800
- function To(e) {
4800
+ function zo(e) {
4801
4801
  return {
4802
4802
  x: bs(e),
4803
4803
  y: vs(e)
@@ -4896,7 +4896,7 @@ function xf(e) {
4896
4896
  };
4897
4897
  }
4898
4898
  function ys(e) {
4899
- return e.reduce((t, r) => Xt(t, To(r)), at);
4899
+ return e.reduce((t, r) => Xt(t, zo(r)), at);
4900
4900
  }
4901
4901
  function wf(e) {
4902
4902
  return e.reduce((t, r) => t + bs(r), 0);
@@ -5063,7 +5063,7 @@ class li {
5063
5063
  currentCoordinates: u
5064
5064
  });
5065
5065
  if (f) {
5066
- const h = zr(f, u), p = {
5066
+ const h = Tr(f, u), p = {
5067
5067
  x: 0,
5068
5068
  y: 0
5069
5069
  }, {
@@ -5111,7 +5111,7 @@ class li {
5111
5111
  break;
5112
5112
  }
5113
5113
  }
5114
- this.handleMove(t, Xt(zr(f, this.referenceCoordinates), p));
5114
+ this.handleMove(t, Xt(Tr(f, this.referenceCoordinates), p));
5115
5115
  }
5116
5116
  }
5117
5117
  }
@@ -5239,7 +5239,7 @@ class di {
5239
5239
  } = i;
5240
5240
  if (!o)
5241
5241
  return;
5242
- const c = (r = xn(t)) != null ? r : at, d = zr(o, c);
5242
+ const c = (r = xn(t)) != null ? r : at, d = Tr(o, c);
5243
5243
  if (!n && s) {
5244
5244
  if (qi(s)) {
5245
5245
  if (s.tolerance != null && uo(d, s.tolerance))
@@ -5316,10 +5316,10 @@ const Nf = {
5316
5316
  name: "mouseup"
5317
5317
  }
5318
5318
  };
5319
- var zo;
5319
+ var To;
5320
5320
  (function(e) {
5321
5321
  e[e.RightClick = 2] = "RightClick";
5322
- })(zo || (zo = {}));
5322
+ })(To || (To = {}));
5323
5323
  class Rf extends di {
5324
5324
  constructor(t) {
5325
5325
  super(t, Nf, cr(t.event.target));
@@ -5333,7 +5333,7 @@ Rf.activators = [{
5333
5333
  } = e, {
5334
5334
  onActivation: n
5335
5335
  } = t;
5336
- return r.button === zo.RightClick ? !1 : (n == null || n({
5336
+ return r.button === To.RightClick ? !1 : (n == null || n({
5337
5337
  event: r
5338
5338
  }), !0);
5339
5339
  }
@@ -5403,7 +5403,7 @@ function Af(e) {
5403
5403
  delta: f,
5404
5404
  threshold: h
5405
5405
  } = e;
5406
- const p = zf({
5406
+ const p = Tf({
5407
5407
  delta: f,
5408
5408
  disabled: !i
5409
5409
  }), [x, m] = Uu(), b = ue({
@@ -5483,7 +5483,7 @@ function Af(e) {
5483
5483
  ]
5484
5484
  );
5485
5485
  }
5486
- const Tf = {
5486
+ const zf = {
5487
5487
  x: {
5488
5488
  [_e.Backward]: !1,
5489
5489
  [_e.Forward]: !1
@@ -5493,7 +5493,7 @@ const Tf = {
5493
5493
  [_e.Forward]: !1
5494
5494
  }
5495
5495
  };
5496
- function zf(e) {
5496
+ function Tf(e) {
5497
5497
  let {
5498
5498
  delta: t,
5499
5499
  disabled: r
@@ -5501,7 +5501,7 @@ function zf(e) {
5501
5501
  const n = vn(t);
5502
5502
  return Lr((o) => {
5503
5503
  if (r || !n || !o)
5504
- return Tf;
5504
+ return zf;
5505
5505
  const i = {
5506
5506
  x: Math.sign(t.x - n.x),
5507
5507
  y: Math.sign(t.y - n.y)
@@ -5555,7 +5555,7 @@ function If(e, t) {
5555
5555
  frequency: s,
5556
5556
  measure: c,
5557
5557
  strategy: d
5558
- } = o, u = ue(e), f = b(), h = Tr(f), p = ge(function(w) {
5558
+ } = o, u = ue(e), f = b(), h = zr(f), p = ge(function(w) {
5559
5559
  w === void 0 && (w = []), !h.current && a((y) => y === null ? w : y.concat(w.filter((v) => !y.includes(v))));
5560
5560
  }, [h]), x = ue(null), m = Lr((w) => {
5561
5561
  if (f && !r)
@@ -5710,7 +5710,7 @@ function $f(e) {
5710
5710
  function Ff(e) {
5711
5711
  const [t, r] = Q(null), n = ue(e), o = ge((i) => {
5712
5712
  const a = lo(i.target);
5713
- a && r((s) => s ? (s.set(a, To(a)), new Map(s)) : null);
5713
+ a && r((s) => s ? (s.set(a, zo(a)), new Map(s)) : null);
5714
5714
  }, []);
5715
5715
  return X(() => {
5716
5716
  const i = n.current;
@@ -5720,7 +5720,7 @@ function Ff(e) {
5720
5720
  const d = lo(c);
5721
5721
  return d ? (d.addEventListener("scroll", o, {
5722
5722
  passive: !0
5723
- }), [d, To(d)]) : null;
5723
+ }), [d, zo(d)]) : null;
5724
5724
  }).filter((c) => c != null);
5725
5725
  r(s.length ? new Map(s) : null), n.current = e;
5726
5726
  }
@@ -5747,7 +5747,7 @@ function ea(e, t) {
5747
5747
  ), X(() => {
5748
5748
  const n = e !== at;
5749
5749
  n && !r.current && (r.current = e), !n && r.current && (r.current = null);
5750
- }, [e]), r.current ? zr(e, r.current) : at;
5750
+ }, [e]), r.current ? Tr(e, r.current) : at;
5751
5751
  }
5752
5752
  function Wf(e) {
5753
5753
  X(
@@ -6175,7 +6175,7 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6175
6175
  data: (Re = P == null ? void 0 : P.data) != null ? Re : Kf,
6176
6176
  rect: _
6177
6177
  } : null;
6178
- }, [j, P]), Y = ue(null), [B, W] = Q(null), [U, R] = Q(null), q = Tr(x, Object.values(x)), ne = $r("DndDescribedBy", a), N = he(() => M.getEnabled(), [M]), F = Jf(h), {
6178
+ }, [j, P]), Y = ue(null), [B, W] = Q(null), [U, R] = Q(null), q = zr(x, Object.values(x)), ne = $r("DndDescribedBy", a), N = he(() => M.getEnabled(), [M]), F = Jf(h), {
6179
6179
  droppableRects: G,
6180
6180
  measureDroppableContainers: H,
6181
6181
  measuringScheduled: ve
@@ -6183,7 +6183,7 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6183
6183
  dragging: E,
6184
6184
  dependencies: [O.x, O.y],
6185
6185
  config: F.droppable
6186
- }), se = Pf(S, j), T = he(() => U ? xn(U) : null, [U]), J = nt(), re = Df(se, F.draggable.measure);
6186
+ }), se = Pf(S, j), z = he(() => U ? xn(U) : null, [U]), J = nt(), re = Df(se, F.draggable.measure);
6187
6187
  Zf({
6188
6188
  activeNode: j != null ? S.get(j) : null,
6189
6189
  config: J.layoutShiftCompensation,
@@ -6206,7 +6206,7 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6206
6206
  scrollAdjustedTranslate: null
6207
6207
  }), ke = M.getNodeFor((r = ee.current.over) == null ? void 0 : r.id), we = Hf({
6208
6208
  measure: F.dragOverlay.measure
6209
- }), ze = (n = we.nodeRef.current) != null ? n : se, De = E ? (o = we.rect) != null ? o : $ : null, Ye = !!(we.nodeRef.current && we.rect), yt = Lf(Ye ? null : $), Je = Es(ze ? Ke(ze) : null), Ge = $f(E ? ke ?? se : null), qe = Bf(Ge), gt = As(p, {
6209
+ }), Te = (n = we.nodeRef.current) != null ? n : se, De = E ? (o = we.rect) != null ? o : $ : null, Ye = !!(we.nodeRef.current && we.rect), yt = Lf(Ye ? null : $), Je = Es(Te ? Ke(Te) : null), Ge = $f(E ? ke ?? se : null), qe = Bf(Ge), gt = As(p, {
6210
6210
  transform: {
6211
6211
  x: O.x - yt.x,
6212
6212
  y: O.y - yt.y,
@@ -6223,13 +6223,13 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6223
6223
  scrollableAncestors: Ge,
6224
6224
  scrollableAncestorRects: qe,
6225
6225
  windowRect: Je
6226
- }), rt = T ? Xt(T, O) : null, kt = Ff(Ge), hr = ea(kt), I = ea(kt, [$]), te = Xt(gt, hr), ie = De ? uf(De, gt) : null, me = D && ie ? f({
6226
+ }), rt = z ? Xt(z, O) : null, kt = Ff(Ge), hr = ea(kt), I = ea(kt, [$]), te = Xt(gt, hr), ie = De ? uf(De, gt) : null, me = D && ie ? f({
6227
6227
  active: D,
6228
6228
  collisionRect: ie,
6229
6229
  droppableRects: G,
6230
6230
  droppableContainers: N,
6231
6231
  pointerCoordinates: rt
6232
- }) : null, Me = ps(me, "id"), [Ce, Ae] = Q(null), A = Ye ? gt : Xt(gt, I), z = lf(A, (i = Ce == null ? void 0 : Ce.rect) != null ? i : null, $), L = ue(null), Z = ge(
6232
+ }) : null, Me = ps(me, "id"), [Ce, Ae] = Q(null), A = Ye ? gt : Xt(gt, I), T = lf(A, (i = Ce == null ? void 0 : Ce.rect) != null ? i : null, $), L = ue(null), Z = ge(
6233
6233
  (Re, Fe) => {
6234
6234
  let {
6235
6235
  sensor: We,
@@ -6449,7 +6449,7 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6449
6449
  collisions: me,
6450
6450
  droppableRects: G,
6451
6451
  draggableNodes: S,
6452
- draggingNode: ze,
6452
+ draggingNode: Te,
6453
6453
  draggingNodeRect: De,
6454
6454
  droppableContainers: M,
6455
6455
  over: Ce,
@@ -6459,7 +6459,7 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6459
6459
  initial: De,
6460
6460
  translated: ie
6461
6461
  };
6462
- }, [D, se, me, ie, S, ze, De, G, M, Ce, Ge, te]), Af({
6462
+ }, [D, se, me, ie, S, Te, De, G, M, Ce, Ge, te]), Af({
6463
6463
  ...J,
6464
6464
  delta: O,
6465
6465
  draggingRect: ie,
@@ -6485,7 +6485,7 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6485
6485
  measuringConfiguration: F,
6486
6486
  measuringScheduled: ve,
6487
6487
  windowRect: Je
6488
- }), [D, se, $, U, me, oe, we, S, M, G, Ce, H, Ge, qe, F, ve, Je]), Te = he(() => ({
6488
+ }), [D, se, $, U, me, oe, we, S, M, G, Ce, H, Ge, qe, F, ve, Je]), ze = he(() => ({
6489
6489
  activatorEvent: U,
6490
6490
  activators: de,
6491
6491
  active: D,
@@ -6501,11 +6501,11 @@ const Qf = /* @__PURE__ */ Il(function(t) {
6501
6501
  return pe.createElement(ds.Provider, {
6502
6502
  value: v
6503
6503
  }, pe.createElement(Fr.Provider, {
6504
- value: Te
6504
+ value: ze
6505
6505
  }, pe.createElement(Rs.Provider, {
6506
6506
  value: ye
6507
6507
  }, pe.createElement(Wn.Provider, {
6508
- value: z
6508
+ value: T
6509
6509
  }, d)), pe.createElement(Xf, {
6510
6510
  disabled: (s == null ? void 0 : s.restoreFocus) === !1
6511
6511
  })), pe.createElement(ef, {
@@ -6541,7 +6541,7 @@ function rp(e) {
6541
6541
  role: p = ra,
6542
6542
  roleDescription: x = "draggable",
6543
6543
  tabIndex: m = 0
6544
- } = o ?? {}, b = (c == null ? void 0 : c.id) === t, w = pt(b ? Wn : ep), [y, v] = bn(), [k, C] = bn(), E = Uf(a, t), j = Tr(r);
6544
+ } = o ?? {}, b = (c == null ? void 0 : c.id) === t, w = pt(b ? Wn : ep), [y, v] = bn(), [k, C] = bn(), E = Uf(a, t), j = zr(r);
6545
6545
  it(
6546
6546
  () => (f.set(t, {
6547
6547
  id: t,
@@ -6578,7 +6578,7 @@ function rp(e) {
6578
6578
  transform: w
6579
6579
  };
6580
6580
  }
6581
- function Ts() {
6581
+ function zs() {
6582
6582
  return pt(Rs);
6583
6583
  }
6584
6584
  const np = "Droppable", op = {
@@ -6605,7 +6605,7 @@ function ip(e) {
6605
6605
  } = {
6606
6606
  ...op,
6607
6607
  ...o
6608
- }, w = Tr(m ?? n), y = ge(
6608
+ }, w = zr(m ?? n), y = ge(
6609
6609
  () => {
6610
6610
  if (!f.current) {
6611
6611
  f.current = !0;
@@ -6622,7 +6622,7 @@ function ip(e) {
6622
6622
  disabled: x || !a
6623
6623
  }), k = ge((S, O) => {
6624
6624
  v && (O && (v.unobserve(O), f.current = !1), S && v.observe(S));
6625
- }, [v]), [C, E] = bn(k), j = Tr(t);
6625
+ }, [v]), [C, E] = bn(k), j = zr(t);
6626
6626
  return X(() => {
6627
6627
  !v || !C.current || (v.disconnect(), f.current = !1, v.observe(C.current));
6628
6628
  }, [C, v]), X(
@@ -6908,7 +6908,7 @@ const vp = /* @__PURE__ */ pe.memo((e) => {
6908
6908
  scrollableAncestors: v,
6909
6909
  scrollableAncestorRects: k,
6910
6910
  windowRect: C
6911
- } = Ts(), E = pt(Wn), j = bp(f == null ? void 0 : f.id), S = As(a, {
6911
+ } = zs(), E = pt(Wn), j = bp(f == null ? void 0 : f.id), S = As(a, {
6912
6912
  activatorEvent: u,
6913
6913
  active: f,
6914
6914
  activeNodeRect: h,
@@ -6953,7 +6953,7 @@ const vp = /* @__PURE__ */ pe.memo((e) => {
6953
6953
  x: 0
6954
6954
  };
6955
6955
  };
6956
- function zs(e, t, r) {
6956
+ function Ts(e, t, r) {
6957
6957
  const n = e.slice();
6958
6958
  return n.splice(r < 0 ? n.length + r : r, 0, n.splice(t, 1)[0]), n;
6959
6959
  }
@@ -6989,7 +6989,7 @@ const Ps = (e) => {
6989
6989
  overIndex: n,
6990
6990
  index: o
6991
6991
  } = e;
6992
- const i = zs(t, n, r), a = t[o], s = i[o];
6992
+ const i = Ts(t, n, r), a = t[o], s = i[o];
6993
6993
  return !s || !a ? null : {
6994
6994
  x: s.left - a.left,
6995
6995
  y: s.top - a.top,
@@ -7066,7 +7066,7 @@ function Ep(e) {
7066
7066
  droppableRects: c,
7067
7067
  over: d,
7068
7068
  measureDroppableContainers: u
7069
- } = Ts(), f = $r(Os, r), h = s.rect !== null, p = he(() => n.map((E) => typeof E == "object" && "id" in E ? E.id : E), [n]), x = a != null, m = a ? p.indexOf(a.id) : -1, b = d ? p.indexOf(d.id) : -1, w = ue(p), y = !yp(p, w.current), v = b !== -1 && m === -1 || y, k = kp(i);
7069
+ } = zs(), f = $r(Os, r), h = s.rect !== null, p = he(() => n.map((E) => typeof E == "object" && "id" in E ? E.id : E), [n]), x = a != null, m = a ? p.indexOf(a.id) : -1, b = d ? p.indexOf(d.id) : -1, w = ue(p), y = !yp(p, w.current), v = b !== -1 && m === -1 || y, k = kp(i);
7070
7070
  it(() => {
7071
7071
  y && x && u(p);
7072
7072
  }, [y, p, x, u]), X(() => {
@@ -7098,7 +7098,7 @@ const jp = (e) => {
7098
7098
  activeIndex: n,
7099
7099
  overIndex: o
7100
7100
  } = e;
7101
- return zs(r, n, o).indexOf(t);
7101
+ return Ts(r, n, o).indexOf(t);
7102
7102
  }, Np = (e) => {
7103
7103
  let {
7104
7104
  containerId: t,
@@ -7119,10 +7119,10 @@ const jp = (e) => {
7119
7119
  property: Ds,
7120
7120
  duration: 0,
7121
7121
  easing: "linear"
7122
- }), Tp = {
7122
+ }), zp = {
7123
7123
  roleDescription: "sortable"
7124
7124
  };
7125
- function zp(e) {
7125
+ function Tp(e) {
7126
7126
  let {
7127
7127
  disabled: t,
7128
7128
  index: r,
@@ -7207,11 +7207,11 @@ function Pp(e) {
7207
7207
  id: a,
7208
7208
  data: C,
7209
7209
  attributes: {
7210
- ...Tp,
7210
+ ...zp,
7211
7211
  ...r
7212
7212
  },
7213
7213
  disabled: v.draggable
7214
- }), N = Wu(M, B), F = !!P, G = F && !x && Qr(h) && Qr(b), H = !w && U, ve = H && G ? ne : null, T = G ? ve ?? (s ?? y)({
7214
+ }), N = Wu(M, B), F = !!P, G = F && !x && Qr(h) && Qr(b), H = !w && U, ve = H && G ? ne : null, z = G ? ve ?? (s ?? y)({
7215
7215
  rects: m,
7216
7216
  activeNodeRect: D,
7217
7217
  activeIndex: h,
@@ -7240,7 +7240,7 @@ function Pp(e) {
7240
7240
  previousContainerId: $.current.containerId,
7241
7241
  transition: d,
7242
7242
  wasDragging: $.current.activeId != null
7243
- }), ke = zp({
7243
+ }), ke = Tp({
7244
7244
  disabled: !ee,
7245
7245
  index: k,
7246
7246
  node: S,
@@ -7255,10 +7255,10 @@ function Pp(e) {
7255
7255
  $.current.activeId = re;
7256
7256
  return;
7257
7257
  }
7258
- const ze = setTimeout(() => {
7258
+ const Te = setTimeout(() => {
7259
7259
  $.current.activeId = re;
7260
7260
  }, 50);
7261
- return () => clearTimeout(ze);
7261
+ return () => clearTimeout(Te);
7262
7262
  }, [re]), {
7263
7263
  active: P,
7264
7264
  activeIndex: h,
@@ -7279,7 +7279,7 @@ function Pp(e) {
7279
7279
  setActivatorNodeRef: q,
7280
7280
  setDroppableNodeRef: M,
7281
7281
  setDraggableNodeRef: B,
7282
- transform: ke ?? T,
7282
+ transform: ke ?? z,
7283
7283
  transition: we()
7284
7284
  };
7285
7285
  function we() {
@@ -7367,7 +7367,7 @@ const Ip = [fe.Down, fe.Right, fe.Up, fe.Left], Dp = (e, t) => {
7367
7367
  x: p.left,
7368
7368
  y: p.top
7369
7369
  };
7370
- return v.x && v.y ? k : zr(k, v);
7370
+ return v.x && v.y ? k : Tr(k, v);
7371
7371
  }
7372
7372
  }
7373
7373
  }
@@ -8354,7 +8354,7 @@ const Ah = function(e) {
8354
8354
  }
8355
8355
  };
8356
8356
  }, Hs = /* @__PURE__ */ new Set(["left", "top"]);
8357
- async function Th(e, t) {
8357
+ async function zh(e, t) {
8358
8358
  const {
8359
8359
  placement: r,
8360
8360
  platform: n,
@@ -8381,7 +8381,7 @@ async function Th(e, t) {
8381
8381
  y: p * u
8382
8382
  };
8383
8383
  }
8384
- const zh = function(e) {
8384
+ const Th = function(e) {
8385
8385
  return e === void 0 && (e = 0), {
8386
8386
  name: "offset",
8387
8387
  options: e,
@@ -8392,7 +8392,7 @@ const zh = function(e) {
8392
8392
  y: i,
8393
8393
  placement: a,
8394
8394
  middlewareData: s
8395
- } = t, c = await Th(t, e);
8395
+ } = t, c = await zh(t, e);
8396
8396
  return a === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
8397
8397
  x: o + c.x,
8398
8398
  y: i + c.y,
@@ -8599,13 +8599,13 @@ function vi(e) {
8599
8599
  return $h.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || Fh.some((n) => (r.willChange || "").includes(n)) || Wh.some((n) => (r.contain || "").includes(n));
8600
8600
  }
8601
8601
  function Uh(e) {
8602
- let t = Tt(e);
8602
+ let t = zt(e);
8603
8603
  for (; ht(t) && !rr(t); ) {
8604
8604
  if (vi(t))
8605
8605
  return t;
8606
8606
  if (Hn(t))
8607
8607
  return null;
8608
- t = Tt(t);
8608
+ t = zt(t);
8609
8609
  }
8610
8610
  return null;
8611
8611
  }
@@ -8628,7 +8628,7 @@ function Vn(e) {
8628
8628
  scrollTop: e.scrollY
8629
8629
  };
8630
8630
  }
8631
- function Tt(e) {
8631
+ function zt(e) {
8632
8632
  if (ur(e) === "html")
8633
8633
  return e;
8634
8634
  const t = (
@@ -8641,7 +8641,7 @@ function Tt(e) {
8641
8641
  return va(t) ? t.host : t;
8642
8642
  }
8643
8643
  function Ks(e) {
8644
- const t = Tt(e);
8644
+ const t = zt(e);
8645
8645
  return rr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ht(t) && Br(t) ? t : Ks(t);
8646
8646
  }
8647
8647
  function Or(e, t, r) {
@@ -8821,7 +8821,7 @@ function wa(e, t, r) {
8821
8821
  return En(n);
8822
8822
  }
8823
8823
  function Xs(e, t) {
8824
- const r = Tt(e);
8824
+ const r = zt(e);
8825
8825
  return r === t || !st(r) || rr(r) ? !1 : ct(r).position === "fixed" || Xs(r, t);
8826
8826
  }
8827
8827
  function Zh(e, t) {
@@ -8830,10 +8830,10 @@ function Zh(e, t) {
8830
8830
  return r;
8831
8831
  let n = Or(e, [], !1).filter((s) => st(s) && ur(s) !== "body"), o = null;
8832
8832
  const i = ct(e).position === "fixed";
8833
- let a = i ? Tt(e) : e;
8833
+ let a = i ? zt(e) : e;
8834
8834
  for (; st(a) && !rr(a); ) {
8835
8835
  const s = ct(a), c = vi(a);
8836
- !c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && !!o && Xh.has(o.position) || Br(a) && !c && Xs(e, a)) ? n = n.filter((u) => u !== a) : o = s, a = Tt(a);
8836
+ !c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && !!o && Xh.has(o.position) || Br(a) && !c && Xs(e, a)) ? n = n.filter((u) => u !== a) : o = s, a = zt(a);
8837
8837
  }
8838
8838
  return t.set(e, n), n;
8839
8839
  }
@@ -8905,11 +8905,11 @@ function Js(e, t) {
8905
8905
  if (Hn(e))
8906
8906
  return r;
8907
8907
  if (!ht(e)) {
8908
- let o = Tt(e);
8908
+ let o = zt(e);
8909
8909
  for (; o && !rr(o); ) {
8910
8910
  if (st(o) && !go(o))
8911
8911
  return o;
8912
- o = Tt(o);
8912
+ o = zt(o);
8913
8913
  }
8914
8914
  return r;
8915
8915
  }
@@ -9030,7 +9030,7 @@ function am(e, t, r, n) {
9030
9030
  }), f == null || f(), (w = p) == null || w.disconnect(), p = null, c && cancelAnimationFrame(x);
9031
9031
  };
9032
9032
  }
9033
- const sm = zh, cm = Ph, lm = Rh, dm = Ih, um = Ah, ka = Nh, fm = Oh, pm = (e, t, r) => {
9033
+ const sm = Th, cm = Ph, lm = Rh, dm = Ih, um = Ah, ka = Nh, fm = Oh, pm = (e, t, r) => {
9034
9034
  const n = /* @__PURE__ */ new Map(), o = {
9035
9035
  platform: om,
9036
9036
  ...r
@@ -9287,9 +9287,9 @@ var oc = "PopperAnchor", ic = g.forwardRef(
9287
9287
  }
9288
9288
  );
9289
9289
  ic.displayName = oc;
9290
- var ki = "PopperContent", [Am, Tm] = tc(ki), ac = g.forwardRef(
9290
+ var ki = "PopperContent", [Am, zm] = tc(ki), ac = g.forwardRef(
9291
9291
  (e, t) => {
9292
- var T, J, re, $, oe, ee;
9292
+ var z, J, re, $, oe, ee;
9293
9293
  const {
9294
9294
  __scopePopper: r,
9295
9295
  side: n = "bottom",
@@ -9331,9 +9331,9 @@ var ki = "PopperContent", [Am, Tm] = tc(ki), ac = g.forwardRef(
9331
9331
  c && ym({ ...D }),
9332
9332
  km({
9333
9333
  ...D,
9334
- apply: ({ elements: ke, rects: we, availableWidth: ze, availableHeight: De }) => {
9334
+ apply: ({ elements: ke, rects: we, availableWidth: Te, availableHeight: De }) => {
9335
9335
  const { width: Ye, height: yt } = we.reference, Je = ke.floating.style;
9336
- Je.setProperty("--radix-popper-available-width", `${ze}px`), Je.setProperty("--radix-popper-available-height", `${De}px`), Je.setProperty("--radix-popper-anchor-width", `${Ye}px`), Je.setProperty("--radix-popper-anchor-height", `${yt}px`);
9336
+ Je.setProperty("--radix-popper-available-width", `${Te}px`), Je.setProperty("--radix-popper-available-height", `${De}px`), Je.setProperty("--radix-popper-anchor-width", `${Ye}px`), Je.setProperty("--radix-popper-anchor-height", `${yt}px`);
9337
9337
  }
9338
9338
  }),
9339
9339
  k && Sm({ element: k, padding: s }),
@@ -9344,7 +9344,7 @@ var ki = "PopperContent", [Am, Tm] = tc(ki), ac = g.forwardRef(
9344
9344
  Be(() => {
9345
9345
  U && (N == null || N());
9346
9346
  }, [U, N]);
9347
- const F = (T = R.arrow) == null ? void 0 : T.x, G = (J = R.arrow) == null ? void 0 : J.y, H = ((re = R.arrow) == null ? void 0 : re.centerOffset) !== 0, [ve, se] = g.useState();
9347
+ const F = (z = R.arrow) == null ? void 0 : z.x, G = (J = R.arrow) == null ? void 0 : J.y, H = ((re = R.arrow) == null ? void 0 : re.centerOffset) !== 0, [ve, se] = g.useState();
9348
9348
  return Be(() => {
9349
9349
  w && se(window.getComputedStyle(w).zIndex);
9350
9350
  }, [w]), /* @__PURE__ */ l.jsx(
@@ -9402,13 +9402,13 @@ var ki = "PopperContent", [Am, Tm] = tc(ki), ac = g.forwardRef(
9402
9402
  }
9403
9403
  );
9404
9404
  ac.displayName = ki;
9405
- var sc = "PopperArrow", zm = {
9405
+ var sc = "PopperArrow", Tm = {
9406
9406
  top: "bottom",
9407
9407
  right: "left",
9408
9408
  bottom: "top",
9409
9409
  left: "right"
9410
9410
  }, cc = g.forwardRef(function(t, r) {
9411
- const { __scopePopper: n, ...o } = t, i = Tm(sc, n), a = zm[i.placedSide];
9411
+ const { __scopePopper: n, ...o } = t, i = zm(sc, n), a = Tm[i.placedSide];
9412
9412
  return (
9413
9413
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
9414
9414
  // doesn't report size as we'd expect on SVG elements.
@@ -10080,7 +10080,7 @@ ji.classNames = qn.classNames;
10080
10080
  var jg = [" ", "Enter", "ArrowUp", "ArrowDown"], Ng = [" ", "Enter"], Ft = "Select", [Xn, Jn, Rg] = Kp(Ft), [pr] = Wr(Ft, [
10081
10081
  Rg,
10082
10082
  fr
10083
- ]), Zn = fr(), [Ag, zt] = pr(Ft), [Tg, zg] = pr(Ft), yc = (e) => {
10083
+ ]), Zn = fr(), [Ag, Tt] = pr(Ft), [zg, Tg] = pr(Ft), yc = (e) => {
10084
10084
  const {
10085
10085
  __scopeSelect: t,
10086
10086
  children: r,
@@ -10128,7 +10128,7 @@ var jg = [" ", "Enter", "ArrowUp", "ArrowDown"], Ng = [" ", "Enter"], Ft = "Sele
10128
10128
  disabled: h,
10129
10129
  children: [
10130
10130
  /* @__PURE__ */ l.jsx(Xn.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(
10131
- Tg,
10131
+ zg,
10132
10132
  {
10133
10133
  scope: e.__scopeSelect,
10134
10134
  onNativeOptionAdd: g.useCallback((W) => {
@@ -10169,7 +10169,7 @@ var jg = [" ", "Enter", "ArrowUp", "ArrowDown"], Ng = [" ", "Enter"], Ft = "Sele
10169
10169
  yc.displayName = Ft;
10170
10170
  var kc = "SelectTrigger", Cc = g.forwardRef(
10171
10171
  (e, t) => {
10172
- const { __scopeSelect: r, disabled: n = !1, ...o } = e, i = Zn(r), a = zt(kc, r), s = a.disabled || n, c = Ne(t, a.onTriggerChange), d = Jn(r), u = g.useRef("touch"), [f, h, p] = Bc((m) => {
10172
+ const { __scopeSelect: r, disabled: n = !1, ...o } = e, i = Zn(r), a = Tt(kc, r), s = a.disabled || n, c = Ne(t, a.onTriggerChange), d = Jn(r), u = g.useRef("touch"), [f, h, p] = Bc((m) => {
10173
10173
  const b = d().filter((v) => !v.disabled), w = b.find((v) => v.value === a.value), y = Hc(b, m, w);
10174
10174
  y !== void 0 && a.onValueChange(y.value);
10175
10175
  }), x = (m) => {
@@ -10213,7 +10213,7 @@ var kc = "SelectTrigger", Cc = g.forwardRef(
10213
10213
  Cc.displayName = kc;
10214
10214
  var Sc = "SelectValue", Ec = g.forwardRef(
10215
10215
  (e, t) => {
10216
- const { __scopeSelect: r, className: n, style: o, children: i, placeholder: a = "", ...s } = e, c = zt(Sc, r), { onValueNodeHasChildrenChange: d } = c, u = i !== void 0, f = Ne(t, c.onValueNodeChange);
10216
+ const { __scopeSelect: r, className: n, style: o, children: i, placeholder: a = "", ...s } = e, c = Tt(Sc, r), { onValueNodeHasChildrenChange: d } = c, u = i !== void 0, f = Ne(t, c.onValueNodeChange);
10217
10217
  return Be(() => {
10218
10218
  d(u);
10219
10219
  }, [d, u]), /* @__PURE__ */ l.jsx(
@@ -10239,7 +10239,7 @@ var Og = "SelectPortal", Nc = (e) => /* @__PURE__ */ l.jsx(Gn, { asChild: !0, ..
10239
10239
  Nc.displayName = Og;
10240
10240
  var Wt = "SelectContent", Rc = g.forwardRef(
10241
10241
  (e, t) => {
10242
- const r = zt(Wt, e.__scopeSelect), [n, o] = g.useState();
10242
+ const r = Tt(Wt, e.__scopeSelect), [n, o] = g.useState();
10243
10243
  if (Be(() => {
10244
10244
  o(new DocumentFragment());
10245
10245
  }, []), !r.open) {
@@ -10249,11 +10249,11 @@ var Wt = "SelectContent", Rc = g.forwardRef(
10249
10249
  i
10250
10250
  ) : null;
10251
10251
  }
10252
- return /* @__PURE__ */ l.jsx(Tc, { ...e, ref: t });
10252
+ return /* @__PURE__ */ l.jsx(zc, { ...e, ref: t });
10253
10253
  }
10254
10254
  );
10255
10255
  Rc.displayName = Wt;
10256
- var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ tr("SelectContent.RemoveScroll"), Tc = g.forwardRef(
10256
+ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ tr("SelectContent.RemoveScroll"), zc = g.forwardRef(
10257
10257
  (e, t) => {
10258
10258
  const {
10259
10259
  __scopeSelect: r,
@@ -10275,16 +10275,16 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10275
10275
  avoidCollisions: b,
10276
10276
  //
10277
10277
  ...w
10278
- } = e, y = zt(Wt, r), [v, k] = g.useState(null), [C, E] = g.useState(null), j = Ne(t, (T) => k(T)), [S, O] = g.useState(null), [M, P] = g.useState(
10278
+ } = e, y = Tt(Wt, r), [v, k] = g.useState(null), [C, E] = g.useState(null), j = Ne(t, (z) => k(z)), [S, O] = g.useState(null), [M, P] = g.useState(
10279
10279
  null
10280
10280
  ), _ = Jn(r), [D, Y] = g.useState(!1), B = g.useRef(!1);
10281
10281
  g.useEffect(() => {
10282
10282
  if (v) return pc(v);
10283
10283
  }, [v]), Ws();
10284
10284
  const W = g.useCallback(
10285
- (T) => {
10285
+ (z) => {
10286
10286
  const [J, ...re] = _().map((ee) => ee.ref.current), [$] = re.slice(-1), oe = document.activeElement;
10287
- for (const ee of T)
10287
+ for (const ee of z)
10288
10288
  if (ee === oe || (ee == null || ee.scrollIntoView({ block: "nearest" }), ee === J && C && (C.scrollTop = 0), ee === $ && C && (C.scrollTop = C.scrollHeight), ee == null || ee.focus(), document.activeElement !== oe)) return;
10289
10289
  },
10290
10290
  [_, C]
@@ -10298,42 +10298,42 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10298
10298
  const { onOpenChange: R, triggerPointerDownPosRef: q } = y;
10299
10299
  g.useEffect(() => {
10300
10300
  if (v) {
10301
- let T = { x: 0, y: 0 };
10301
+ let z = { x: 0, y: 0 };
10302
10302
  const J = ($) => {
10303
10303
  var oe, ee;
10304
- T = {
10304
+ z = {
10305
10305
  x: Math.abs(Math.round($.pageX) - (((oe = q.current) == null ? void 0 : oe.x) ?? 0)),
10306
10306
  y: Math.abs(Math.round($.pageY) - (((ee = q.current) == null ? void 0 : ee.y) ?? 0))
10307
10307
  };
10308
10308
  }, re = ($) => {
10309
- T.x <= 10 && T.y <= 10 ? $.preventDefault() : v.contains($.target) || R(!1), document.removeEventListener("pointermove", J), q.current = null;
10309
+ z.x <= 10 && z.y <= 10 ? $.preventDefault() : v.contains($.target) || R(!1), document.removeEventListener("pointermove", J), q.current = null;
10310
10310
  };
10311
10311
  return q.current !== null && (document.addEventListener("pointermove", J), document.addEventListener("pointerup", re, { capture: !0, once: !0 })), () => {
10312
10312
  document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", re, { capture: !0 });
10313
10313
  };
10314
10314
  }
10315
10315
  }, [v, R, q]), g.useEffect(() => {
10316
- const T = () => R(!1);
10317
- return window.addEventListener("blur", T), window.addEventListener("resize", T), () => {
10318
- window.removeEventListener("blur", T), window.removeEventListener("resize", T);
10316
+ const z = () => R(!1);
10317
+ return window.addEventListener("blur", z), window.addEventListener("resize", z), () => {
10318
+ window.removeEventListener("blur", z), window.removeEventListener("resize", z);
10319
10319
  };
10320
10320
  }, [R]);
10321
- const [ne, N] = Bc((T) => {
10322
- const J = _().filter((oe) => !oe.disabled), re = J.find((oe) => oe.ref.current === document.activeElement), $ = Hc(J, T, re);
10321
+ const [ne, N] = Bc((z) => {
10322
+ const J = _().filter((oe) => !oe.disabled), re = J.find((oe) => oe.ref.current === document.activeElement), $ = Hc(J, z, re);
10323
10323
  $ && setTimeout(() => $.ref.current.focus());
10324
10324
  }), F = g.useCallback(
10325
- (T, J, re) => {
10325
+ (z, J, re) => {
10326
10326
  const $ = !B.current && !re;
10327
- (y.value !== void 0 && y.value === J || $) && (O(T), $ && (B.current = !0));
10327
+ (y.value !== void 0 && y.value === J || $) && (O(z), $ && (B.current = !0));
10328
10328
  },
10329
10329
  [y.value]
10330
10330
  ), G = g.useCallback(() => v == null ? void 0 : v.focus(), [v]), H = g.useCallback(
10331
- (T, J, re) => {
10331
+ (z, J, re) => {
10332
10332
  const $ = !B.current && !re;
10333
- (y.value !== void 0 && y.value === J || $) && P(T);
10333
+ (y.value !== void 0 && y.value === J || $) && P(z);
10334
10334
  },
10335
10335
  [y.value]
10336
- ), ve = n === "popper" ? Lo : zc, se = ve === Lo ? {
10336
+ ), ve = n === "popper" ? Lo : Tc, se = ve === Lo ? {
10337
10337
  side: s,
10338
10338
  sideOffset: c,
10339
10339
  align: d,
@@ -10366,12 +10366,12 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10366
10366
  {
10367
10367
  asChild: !0,
10368
10368
  trapped: y.open,
10369
- onMountAutoFocus: (T) => {
10370
- T.preventDefault();
10369
+ onMountAutoFocus: (z) => {
10370
+ z.preventDefault();
10371
10371
  },
10372
- onUnmountAutoFocus: be(o, (T) => {
10372
+ onUnmountAutoFocus: be(o, (z) => {
10373
10373
  var J;
10374
- (J = y.trigger) == null || J.focus({ preventScroll: !0 }), T.preventDefault();
10374
+ (J = y.trigger) == null || J.focus({ preventScroll: !0 }), z.preventDefault();
10375
10375
  }),
10376
10376
  children: /* @__PURE__ */ l.jsx(
10377
10377
  Un,
@@ -10380,7 +10380,7 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10380
10380
  disableOutsidePointerEvents: !0,
10381
10381
  onEscapeKeyDown: i,
10382
10382
  onPointerDownOutside: a,
10383
- onFocusOutside: (T) => T.preventDefault(),
10383
+ onFocusOutside: (z) => z.preventDefault(),
10384
10384
  onDismiss: () => y.onOpenChange(!1),
10385
10385
  children: /* @__PURE__ */ l.jsx(
10386
10386
  ve,
@@ -10389,7 +10389,7 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10389
10389
  id: y.contentId,
10390
10390
  "data-state": y.open ? "open" : "closed",
10391
10391
  dir: y.dir,
10392
- onContextMenu: (T) => T.preventDefault(),
10392
+ onContextMenu: (z) => z.preventDefault(),
10393
10393
  ...w,
10394
10394
  ...se,
10395
10395
  onPlaced: () => Y(!0),
@@ -10402,15 +10402,15 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10402
10402
  outline: "none",
10403
10403
  ...w.style
10404
10404
  },
10405
- onKeyDown: be(w.onKeyDown, (T) => {
10406
- const J = T.ctrlKey || T.altKey || T.metaKey;
10407
- if (T.key === "Tab" && T.preventDefault(), !J && T.key.length === 1 && N(T.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(T.key)) {
10405
+ onKeyDown: be(w.onKeyDown, (z) => {
10406
+ const J = z.ctrlKey || z.altKey || z.metaKey;
10407
+ if (z.key === "Tab" && z.preventDefault(), !J && z.key.length === 1 && N(z.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(z.key)) {
10408
10408
  let $ = _().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
10409
- if (["ArrowUp", "End"].includes(T.key) && ($ = $.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(T.key)) {
10410
- const oe = T.target, ee = $.indexOf(oe);
10409
+ if (["ArrowUp", "End"].includes(z.key) && ($ = $.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(z.key)) {
10410
+ const oe = z.target, ee = $.indexOf(oe);
10411
10411
  $ = $.slice(ee + 1);
10412
10412
  }
10413
- setTimeout(() => W($)), T.preventDefault();
10413
+ setTimeout(() => W($)), z.preventDefault();
10414
10414
  }
10415
10415
  })
10416
10416
  }
@@ -10423,30 +10423,30 @@ var ot = 10, [Ac, Pt] = pr(Wt), Ig = "SelectContentImpl", Dg = /* @__PURE__ */ t
10423
10423
  );
10424
10424
  }
10425
10425
  );
10426
- Tc.displayName = Ig;
10427
- var Mg = "SelectItemAlignedPosition", zc = g.forwardRef((e, t) => {
10428
- const { __scopeSelect: r, onPlaced: n, ...o } = e, i = zt(Wt, r), a = Pt(Wt, r), [s, c] = g.useState(null), [d, u] = g.useState(null), f = Ne(t, (j) => u(j)), h = Jn(r), p = g.useRef(!1), x = g.useRef(!0), { viewport: m, selectedItem: b, selectedItemText: w, focusSelectedItem: y } = a, v = g.useCallback(() => {
10426
+ zc.displayName = Ig;
10427
+ var Mg = "SelectItemAlignedPosition", Tc = g.forwardRef((e, t) => {
10428
+ const { __scopeSelect: r, onPlaced: n, ...o } = e, i = Tt(Wt, r), a = Pt(Wt, r), [s, c] = g.useState(null), [d, u] = g.useState(null), f = Ne(t, (j) => u(j)), h = Jn(r), p = g.useRef(!1), x = g.useRef(!0), { viewport: m, selectedItem: b, selectedItemText: w, focusSelectedItem: y } = a, v = g.useCallback(() => {
10429
10429
  if (i.trigger && i.valueNode && s && d && m && b && w) {
10430
10430
  const j = i.trigger.getBoundingClientRect(), S = d.getBoundingClientRect(), O = i.valueNode.getBoundingClientRect(), M = w.getBoundingClientRect();
10431
10431
  if (i.dir !== "rtl") {
10432
- const oe = M.left - S.left, ee = O.left - oe, ke = j.left - ee, we = j.width + ke, ze = Math.max(we, S.width), De = window.innerWidth - ot, Ye = oa(ee, [
10432
+ const oe = M.left - S.left, ee = O.left - oe, ke = j.left - ee, we = j.width + ke, Te = Math.max(we, S.width), De = window.innerWidth - ot, Ye = oa(ee, [
10433
10433
  ot,
10434
10434
  // Prevents the content from going off the starting edge of the
10435
10435
  // viewport. It may still go off the ending edge, but this can be
10436
10436
  // controlled by the user since they may want to manage overflow in a
10437
10437
  // specific way.
10438
10438
  // https://github.com/radix-ui/primitives/issues/2049
10439
- Math.max(ot, De - ze)
10439
+ Math.max(ot, De - Te)
10440
10440
  ]);
10441
10441
  s.style.minWidth = we + "px", s.style.left = Ye + "px";
10442
10442
  } else {
10443
- const oe = S.right - M.right, ee = window.innerWidth - O.right - oe, ke = window.innerWidth - j.right - ee, we = j.width + ke, ze = Math.max(we, S.width), De = window.innerWidth - ot, Ye = oa(ee, [
10443
+ const oe = S.right - M.right, ee = window.innerWidth - O.right - oe, ke = window.innerWidth - j.right - ee, we = j.width + ke, Te = Math.max(we, S.width), De = window.innerWidth - ot, Ye = oa(ee, [
10444
10444
  ot,
10445
- Math.max(ot, De - ze)
10445
+ Math.max(ot, De - Te)
10446
10446
  ]);
10447
10447
  s.style.minWidth = we + "px", s.style.right = Ye + "px";
10448
10448
  }
10449
- const P = h(), _ = window.innerHeight - ot * 2, D = m.scrollHeight, Y = window.getComputedStyle(d), B = parseInt(Y.borderTopWidth, 10), W = parseInt(Y.paddingTop, 10), U = parseInt(Y.borderBottomWidth, 10), R = parseInt(Y.paddingBottom, 10), q = B + W + D + R + U, ne = Math.min(b.offsetHeight * 5, q), N = window.getComputedStyle(m), F = parseInt(N.paddingTop, 10), G = parseInt(N.paddingBottom, 10), H = j.top + j.height / 2 - ot, ve = _ - H, se = b.offsetHeight / 2, T = b.offsetTop + se, J = B + W + T, re = q - J;
10449
+ const P = h(), _ = window.innerHeight - ot * 2, D = m.scrollHeight, Y = window.getComputedStyle(d), B = parseInt(Y.borderTopWidth, 10), W = parseInt(Y.paddingTop, 10), U = parseInt(Y.borderBottomWidth, 10), R = parseInt(Y.paddingBottom, 10), q = B + W + D + R + U, ne = Math.min(b.offsetHeight * 5, q), N = window.getComputedStyle(m), F = parseInt(N.paddingTop, 10), G = parseInt(N.paddingBottom, 10), H = j.top + j.height / 2 - ot, ve = _ - H, se = b.offsetHeight / 2, z = b.offsetTop + se, J = B + W + z, re = q - J;
10450
10450
  if (J <= H) {
10451
10451
  const oe = P.length > 0 && b === P[P.length - 1].ref.current;
10452
10452
  s.style.bottom = "0px";
@@ -10528,7 +10528,7 @@ var Mg = "SelectItemAlignedPosition", zc = g.forwardRef((e, t) => {
10528
10528
  }
10529
10529
  );
10530
10530
  });
10531
- zc.displayName = Mg;
10531
+ Tc.displayName = Mg;
10532
10532
  var _g = "SelectPopperPosition", Lo = g.forwardRef((e, t) => {
10533
10533
  const {
10534
10534
  __scopeSelect: r,
@@ -10633,7 +10633,7 @@ var Rn = "SelectItem", [Bg, Dc] = pr(Rn), Mc = g.forwardRef(
10633
10633
  disabled: o = !1,
10634
10634
  textValue: i,
10635
10635
  ...a
10636
- } = e, s = zt(Rn, r), c = Pt(Rn, r), d = s.value === n, [u, f] = g.useState(i ?? ""), [h, p] = g.useState(!1), x = Ne(
10636
+ } = e, s = Tt(Rn, r), c = Pt(Rn, r), d = s.value === n, [u, f] = g.useState(i ?? ""), [h, p] = g.useState(!1), x = Ne(
10637
10637
  t,
10638
10638
  (y) => {
10639
10639
  var v;
@@ -10711,7 +10711,7 @@ var Rn = "SelectItem", [Bg, Dc] = pr(Rn), Mc = g.forwardRef(
10711
10711
  Mc.displayName = Rn;
10712
10712
  var Cr = "SelectItemText", _c = g.forwardRef(
10713
10713
  (e, t) => {
10714
- const { __scopeSelect: r, className: n, style: o, ...i } = e, a = zt(Cr, r), s = Pt(Cr, r), c = Dc(Cr, r), d = zg(Cr, r), [u, f] = g.useState(null), h = Ne(
10714
+ const { __scopeSelect: r, className: n, style: o, ...i } = e, a = Tt(Cr, r), s = Pt(Cr, r), c = Dc(Cr, r), d = Tg(Cr, r), [u, f] = g.useState(null), h = Ne(
10715
10715
  t,
10716
10716
  (w) => f(w),
10717
10717
  c.onItemTextChange,
@@ -10821,7 +10821,7 @@ var Fc = g.forwardRef((e, t) => {
10821
10821
  Yg.displayName = Kg;
10822
10822
  var Uo = "SelectArrow", Gg = g.forwardRef(
10823
10823
  (e, t) => {
10824
- const { __scopeSelect: r, ...n } = e, o = Zn(r), i = zt(Uo, r), a = Pt(Uo, r);
10824
+ const { __scopeSelect: r, ...n } = e, o = Zn(r), i = Tt(Uo, r), a = Pt(Uo, r);
10825
10825
  return i.open && a.position === "popper" ? /* @__PURE__ */ l.jsx(Ei, { ...o, ...n, ref: t }) : null;
10826
10826
  }
10827
10827
  );
@@ -11683,7 +11683,7 @@ const f0 = ({
11683
11683
  return t._def.description;
11684
11684
  const r = An(e);
11685
11685
  return r !== e ? ol(r) : null;
11686
- }, cn = (e, t) => e && !t ? "opacity-10" : "opacity-100", Yt = (e, t) => e != null && t.toLowerCase() === e.toLowerCase(), ko = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()), Tn = ({ schema: e, data: t, onChange: r, keys: n, expandedItemPath: o, onSidebarExpandedItemChange: i }) => {
11686
+ }, cn = (e, t) => e && !t ? "opacity-10" : "opacity-100", Yt = (e, t) => e != null && t.toLowerCase() === e.toLowerCase(), ko = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()), zn = ({ schema: e, data: t, onChange: r, keys: n, expandedItemPath: o, onSidebarExpandedItemChange: i }) => {
11687
11687
  const a = e.shape, s = n != null ? Object.keys(a).filter((f) => n.includes(f)) : Object.keys(a), c = o == null ? void 0 : o[0], d = (c == null ? void 0 : c.fieldKey) ?? null, u = d != null;
11688
11688
  return /* @__PURE__ */ l.jsx("div", { className: "space-y-4", children: s.map((f) => {
11689
11689
  const h = a[f];
@@ -11722,7 +11722,7 @@ const f0 = ({
11722
11722
  /* @__PURE__ */ l.jsx("h4", { className: "text-[11px] font-semibold text-zinc-300 tracking-[0.02em]", children: ko(f) })
11723
11723
  ] }),
11724
11724
  /* @__PURE__ */ l.jsx(
11725
- Tn,
11725
+ zn,
11726
11726
  {
11727
11727
  schema: p,
11728
11728
  data: k,
@@ -11790,7 +11790,7 @@ const f0 = ({
11790
11790
  onMoveUp: () => E(P, P - 1),
11791
11791
  onMoveDown: () => E(P, P + 1),
11792
11792
  children: C instanceof Oe.ZodObject ? /* @__PURE__ */ l.jsx(
11793
- Tn,
11793
+ zn,
11794
11794
  {
11795
11795
  schema: C,
11796
11796
  data: _ || {},
@@ -12106,7 +12106,7 @@ var nr = "TooltipContent", dl = g.forwardRef(
12106
12106
  s(null), f(!1);
12107
12107
  }, [f]), p = g.useCallback(
12108
12108
  (x, m) => {
12109
- const b = x.currentTarget, w = { x: x.clientX, y: x.clientY }, y = A0(w, b.getBoundingClientRect()), v = T0(w, y), k = z0(m.getBoundingClientRect()), C = O0([...v, ...k]);
12109
+ const b = x.currentTarget, w = { x: x.clientX, y: x.clientY }, y = A0(w, b.getBoundingClientRect()), v = z0(w, y), k = T0(m.getBoundingClientRect()), C = O0([...v, ...k]);
12110
12110
  s(C), f(!0);
12111
12111
  },
12112
12112
  [f]
@@ -12205,7 +12205,7 @@ function A0(e, t) {
12205
12205
  throw new Error("unreachable");
12206
12206
  }
12207
12207
  }
12208
- function T0(e, t, r = 5) {
12208
+ function z0(e, t, r = 5) {
12209
12209
  const n = [];
12210
12210
  switch (t) {
12211
12211
  case "top":
@@ -12235,7 +12235,7 @@ function T0(e, t, r = 5) {
12235
12235
  }
12236
12236
  return n;
12237
12237
  }
12238
- function z0(e) {
12238
+ function T0(e) {
12239
12239
  const { top: t, right: r, bottom: n, left: o } = e;
12240
12240
  return [
12241
12241
  { x: o, y: t },
@@ -12357,13 +12357,13 @@ var bl = "PopoverTrigger", vl = g.forwardRef(
12357
12357
  }
12358
12358
  );
12359
12359
  vl.displayName = bl;
12360
- var Ti = "PopoverPortal", [U0, B0] = hl(Ti, {
12360
+ var zi = "PopoverPortal", [U0, B0] = hl(zi, {
12361
12361
  forceMount: void 0
12362
12362
  }), xl = (e) => {
12363
- const { __scopePopover: t, forceMount: r, children: n, container: o } = e, i = Ot(Ti, t);
12363
+ const { __scopePopover: t, forceMount: r, children: n, container: o } = e, i = Ot(zi, t);
12364
12364
  return /* @__PURE__ */ l.jsx(U0, { scope: t, forceMount: r, children: /* @__PURE__ */ l.jsx(Hr, { present: r || i.open, children: /* @__PURE__ */ l.jsx(Gn, { asChild: !0, container: o, children: n }) }) });
12365
12365
  };
12366
- xl.displayName = Ti;
12366
+ xl.displayName = zi;
12367
12367
  var or = "PopoverContent", wl = g.forwardRef(
12368
12368
  (e, t) => {
12369
12369
  const r = B0(or, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, i = Ot(or, e.__scopePopover);
@@ -12527,7 +12527,7 @@ const Q0 = X0, eb = J0, El = g.forwardRef(({ className: e, align: t = "start", s
12527
12527
  }
12528
12528
  ) }));
12529
12529
  El.displayName = Sl.displayName;
12530
- const Ta = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "Select page", tb = ({
12530
+ const za = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "Select page", tb = ({
12531
12531
  pageSlugs: e,
12532
12532
  currentSlug: t,
12533
12533
  onPageChange: r,
@@ -12536,7 +12536,7 @@ const Ta = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "Select page", tb
12536
12536
  className: i,
12537
12537
  currentPageLabel: a
12538
12538
  }) => {
12539
- const [s, c] = Q(!1), d = a ?? Ta(t), u = (f) => {
12539
+ const [s, c] = Q(!1), d = a ?? za(t), u = (f) => {
12540
12540
  r(f), c(!1);
12541
12541
  };
12542
12542
  return /* @__PURE__ */ l.jsx("div", { className: ae("mx-3 mt-2 mb-2", i), children: /* @__PURE__ */ l.jsxs(Q0, { open: s, onOpenChange: c, children: [
@@ -12569,7 +12569,7 @@ const Ta = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "Select page", tb
12569
12569
  "aria-label": "Page list",
12570
12570
  children: [
12571
12571
  e.map((f) => {
12572
- const h = f === t, p = Ta(f);
12572
+ const h = f === t, p = za(f);
12573
12573
  return /* @__PURE__ */ l.jsxs(
12574
12574
  "button",
12575
12575
  {
@@ -12611,7 +12611,7 @@ const Ta = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "Select page", tb
12611
12611
  }
12612
12612
  )
12613
12613
  ] }) });
12614
- }, Co = /* @__PURE__ */ new Set(["anchorId", "paddingTop", "paddingBottom", "theme", "container"]), za = /* @__PURE__ */ new Set(["ui:editorial-markdown"]), jl = (e) => e instanceof Oe.ZodOptional || e instanceof Oe.ZodDefault || e instanceof Oe.ZodNullable ? jl(e._def.innerType) : e, Ko = (e) => {
12614
+ }, Co = /* @__PURE__ */ new Set(["anchorId", "paddingTop", "paddingBottom", "theme", "container"]), Ta = /* @__PURE__ */ new Set(["ui:editorial-markdown"]), jl = (e) => e instanceof Oe.ZodOptional || e instanceof Oe.ZodDefault || e instanceof Oe.ZodNullable ? jl(e._def.innerType) : e, Ko = (e) => {
12615
12615
  var i;
12616
12616
  if (!e) return "";
12617
12617
  const t = e, r = typeof e.description == "string" ? e.description : null;
@@ -12723,7 +12723,7 @@ const ib = ({
12723
12723
  co(ui, rb),
12724
12724
  co(Ss, nb),
12725
12725
  co(li, { coordinateGetter: Dp })
12726
- ), H = _l(e), ve = e != null && (H == null ? void 0 : H.id) !== e.id, se = a && a.length > 0 ? a : U ? [U] : null, T = se != null && se.length ? {
12726
+ ), H = _l(e), ve = e != null && (H == null ? void 0 : H.id) !== e.id, se = a && a.length > 0 ? a : U ? [U] : null, z = se != null && se.length ? {
12727
12727
  fieldKey: se[se.length - 1].fieldKey,
12728
12728
  itemId: se[se.length - 1].itemId
12729
12729
  } : null, J = ue(a);
@@ -12748,7 +12748,7 @@ const ib = ({
12748
12748
  }
12749
12749
  $.current = P;
12750
12750
  }, [P]), X(() => {
12751
- if (!T) return;
12751
+ if (!z) return;
12752
12752
  const I = N.current;
12753
12753
  if (!I) return;
12754
12754
  const te = requestAnimationFrame(() => {
@@ -12756,7 +12756,7 @@ const ib = ({
12756
12756
  ie && ie.scrollIntoView({ behavior: "smooth", block: "start" });
12757
12757
  });
12758
12758
  return () => cancelAnimationFrame(te);
12759
- }, [T]);
12759
+ }, [z]);
12760
12760
  const oe = (I) => {
12761
12761
  _(!1), u == null || u(I);
12762
12762
  }, ee = () => {
@@ -12776,10 +12776,10 @@ const ib = ({
12776
12776
  }, [q]);
12777
12777
  const we = (I) => {
12778
12778
  D === I ? (f == null || f(I), Y(null)) : (Y(I), setTimeout(() => Y(null), 3e3));
12779
- }, ze = he(
12779
+ }, Te = he(
12780
12780
  () => c.filter((I) => I.scope === "local").map((I) => I.id),
12781
12781
  [c]
12782
- ), De = !!s && ze.length > 0, Ye = (I) => {
12782
+ ), De = !!s && Te.length > 0, Ye = (I) => {
12783
12783
  W(I.active.id);
12784
12784
  }, yt = (I) => {
12785
12785
  W(null);
@@ -12792,7 +12792,7 @@ const ib = ({
12792
12792
  }, Je = e ? t.sections.find((I) => I.id === e.id) : void 0, Ge = H ? t.sections.find((I) => I.id === H.id) : void 0, qe = H ? M[H.type] : void 0, gt = he(() => {
12793
12793
  if (!qe) return !1;
12794
12794
  const I = qe.shape, te = Object.keys(I).filter((ie) => !Co.has(ie));
12795
- return te.length === 0 ? !1 : te.every((ie) => za.has(Ko(I[ie])));
12795
+ return te.length === 0 ? !1 : te.every((ie) => Ta.has(Ko(I[ie])));
12796
12796
  }, [qe]);
12797
12797
  X(() => {
12798
12798
  (e == null ? void 0 : e.id) != null && gt && _(!0);
@@ -12885,13 +12885,13 @@ const ib = ({
12885
12885
  accessibility: {
12886
12886
  announcements: {
12887
12887
  onDragStart: () => "Sezione presa in carico. Usa i tasti freccia per spostare, Spazio per rilasciare.",
12888
- onDragOver: ({ over: I }) => I ? `Posizione ${ze.indexOf(String(I.id)) + 1} di ${ze.length}.` : void 0,
12888
+ onDragOver: ({ over: I }) => I ? `Posizione ${Te.indexOf(String(I.id)) + 1} di ${Te.length}.` : void 0,
12889
12889
  onDragEnd: ({ over: I }) => I ? "Sezione rilasciata in nuova posizione." : "Riposizionamento annullato.",
12890
12890
  onDragCancel: () => "Riposizionamento annullato."
12891
12891
  }
12892
12892
  },
12893
12893
  children: [
12894
- /* @__PURE__ */ l.jsx(Ep, { items: ze, strategy: Cp, children: /* @__PURE__ */ l.jsx("div", { className: "px-2 space-y-0.5", children: hr.map(({ layer: I, showSeparatorAbove: te }) => /* @__PURE__ */ l.jsxs(pe.Fragment, { children: [
12894
+ /* @__PURE__ */ l.jsx(Ep, { items: Te, strategy: Cp, children: /* @__PURE__ */ l.jsx("div", { className: "px-2 space-y-0.5", children: hr.map(({ layer: I, showSeparatorAbove: te }) => /* @__PURE__ */ l.jsxs(pe.Fragment, { children: [
12895
12895
  te && /* @__PURE__ */ l.jsx("div", { className: "mx-3 border-t border-zinc-800/60 my-1" }),
12896
12896
  I.scope === "local" && De ? /* @__PURE__ */ l.jsx(
12897
12897
  ob,
@@ -12957,7 +12957,7 @@ const ib = ({
12957
12957
  /* @__PURE__ */ l.jsx("p", { className: "text-[10px] text-amber-500 font-medium", children: "Click delete again to confirm" })
12958
12958
  ] })
12959
12959
  ] }) }),
12960
- T && Je && (() => {
12960
+ z && Je && (() => {
12961
12961
  const I = Je.data || {};
12962
12962
  let te;
12963
12963
  if (se && se.length > 0) {
@@ -12965,15 +12965,15 @@ const ib = ({
12965
12965
  for (const Ce of se) {
12966
12966
  const Ae = ie == null ? void 0 : ie[Ce.fieldKey];
12967
12967
  Ce.itemId != null && Array.isArray(Ae) ? ie = Ae.find(
12968
- (z) => String(z == null ? void 0 : z.id) === String(Ce.itemId)
12968
+ (T) => String(T == null ? void 0 : T.id) === String(Ce.itemId)
12969
12969
  ) ?? null : ie = Ae;
12970
12970
  }
12971
- const me = ie || {}, Me = T.fieldKey;
12971
+ const me = ie || {}, Me = z.fieldKey;
12972
12972
  te = (typeof me.name == "string" ? me.name : null) ?? (typeof me.title == "string" ? me.title : null) ?? (typeof me.label == "string" ? me.label : null) ?? So(Me);
12973
12973
  } else {
12974
- const ie = T.fieldKey;
12975
- if (T.itemId != null) {
12976
- const Ce = (Array.isArray(I[ie]) ? I[ie] : []).find((Ae) => String(Ae == null ? void 0 : Ae.id) === String(T.itemId)) || {};
12974
+ const ie = z.fieldKey;
12975
+ if (z.itemId != null) {
12976
+ const Ce = (Array.isArray(I[ie]) ? I[ie] : []).find((Ae) => String(Ae == null ? void 0 : Ae.id) === String(z.itemId)) || {};
12977
12977
  te = (typeof Ce.name == "string" ? Ce.name : null) ?? (typeof Ce.title == "string" ? Ce.title : null) ?? (typeof Ce.label == "string" ? Ce.label : null) ?? So(ie);
12978
12978
  } else
12979
12979
  te = So(ie);
@@ -12996,10 +12996,10 @@ const ib = ({
12996
12996
  /* @__PURE__ */ l.jsx("div", { className: "h-10 rounded bg-zinc-800/60" })
12997
12997
  ] }) : qe ? (() => {
12998
12998
  const te = Object.keys(qe.shape).filter(
12999
- (me) => !Co.has(me) && !za.has(Ko(qe.shape[me]))
12999
+ (me) => !Co.has(me) && !Ta.has(Ko(qe.shape[me]))
13000
13000
  ), ie = (Ge == null ? void 0 : Ge.data) || {};
13001
13001
  return te.length === 0 ? /* @__PURE__ */ l.jsx("p", { className: "text-xs text-zinc-500", children: "Inline editorial section: edit content directly on the canvas." }) : /* @__PURE__ */ l.jsx(
13002
- Tn,
13002
+ zn,
13003
13003
  {
13004
13004
  schema: qe,
13005
13005
  data: ie,
@@ -13077,9 +13077,9 @@ const ib = ({
13077
13077
  )
13078
13078
  ] }) }),
13079
13079
  q != null && r.length > 0 && o != null && (() => {
13080
- const I = r.find((z) => z.id === q), te = c.find((z) => z.id === q);
13080
+ const I = r.find((T) => T.id === q), te = c.find((T) => T.id === q);
13081
13081
  if (!I) return null;
13082
- const ie = (te == null ? void 0 : te.scope) === "global" ? "global" : "local", me = I.type, Me = M[me], Ae = (Me ? Object.keys(Me.shape) : []).filter((z) => Co.has(z)), A = I.data ?? {};
13082
+ const ie = (te == null ? void 0 : te.scope) === "global" ? "global" : "local", me = I.type, Me = M[me], Ae = (Me ? Object.keys(Me.shape) : []).filter((T) => Co.has(T)), A = I.data ?? {};
13083
13083
  return Ae.length === 0 ? /* @__PURE__ */ l.jsx(
13084
13084
  "div",
13085
13085
  {
@@ -13093,7 +13093,7 @@ const ib = ({
13093
13093
  {
13094
13094
  ref: F,
13095
13095
  className: "relative rounded-lg border border-zinc-700 bg-zinc-900 shadow-xl max-w-md w-full overflow-hidden",
13096
- onClick: (z) => z.stopPropagation(),
13096
+ onClick: (T) => T.stopPropagation(),
13097
13097
  children: [
13098
13098
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-b border-zinc-800", children: [
13099
13099
  /* @__PURE__ */ l.jsxs("h2", { id: "section-settings-modal-title", className: "text-sm font-bold text-white", children: [
@@ -13123,13 +13123,13 @@ const ib = ({
13123
13123
  role: "dialog",
13124
13124
  "aria-modal": "true",
13125
13125
  "aria-labelledby": "section-settings-modal-title",
13126
- onClick: (z) => z.target === z.currentTarget && ne(null),
13126
+ onClick: (T) => T.target === T.currentTarget && ne(null),
13127
13127
  children: /* @__PURE__ */ l.jsxs(
13128
13128
  "div",
13129
13129
  {
13130
13130
  ref: F,
13131
13131
  className: "relative rounded-lg border border-zinc-700 bg-zinc-900 shadow-xl max-w-md w-full max-h-[85vh] flex flex-col overflow-hidden",
13132
- onClick: (z) => z.stopPropagation(),
13132
+ onClick: (T) => T.stopPropagation(),
13133
13133
  children: [
13134
13134
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-b border-zinc-800 shrink-0", children: [
13135
13135
  /* @__PURE__ */ l.jsxs("h2", { id: "section-settings-modal-title", className: "text-sm font-bold text-white", children: [
@@ -13148,12 +13148,12 @@ const ib = ({
13148
13148
  )
13149
13149
  ] }),
13150
13150
  /* @__PURE__ */ l.jsx("div", { className: "flex-1 overflow-y-auto p-4 custom-scrollbar", children: /* @__PURE__ */ l.jsx(
13151
- Tn,
13151
+ zn,
13152
13152
  {
13153
13153
  schema: Me,
13154
13154
  data: A,
13155
- onChange: (z) => {
13156
- const L = { ...I.data, ...z };
13155
+ onChange: (T) => {
13156
+ const L = { ...I.data, ...T };
13157
13157
  o(q, ie, me, L);
13158
13158
  },
13159
13159
  keys: Ae
@@ -13310,7 +13310,7 @@ function cb(e) {
13310
13310
  t["--theme-border-radius-lg"]
13311
13311
  ), r;
13312
13312
  }
13313
- const zi = {
13313
+ const Ti = {
13314
13314
  setTheme: (e) => {
13315
13315
  const t = document.documentElement, r = cb(e);
13316
13316
  Eo.forEach((n) => {
@@ -13345,7 +13345,7 @@ const db = '[data-jp-ignore-select="true"],[data-jp-interactive="true"],.ProseMi
13345
13345
  if (X(() => {
13346
13346
  const p = (x) => {
13347
13347
  var m;
13348
- if (!(x.origin !== window.location.origin || x.source !== window.parent) && (x.data.type === Se.UPDATE_DRAFTS && (t(x.data.draft), n(x.data.globalDraft), (m = x.data.menuConfig) != null && m.main && i({ main: x.data.menuConfig.main }), x.data.themeConfig && zi.setTheme(x.data.themeConfig)), x.data.type === Se.SYNC_SELECTION && s(x.data.selectedId), x.data.type === Se.REQUEST_SCROLL_TO_SECTION && d(x.data.sectionId ?? null), x.data.type === Se.REQUEST_INLINE_FLUSH)) {
13348
+ if (!(x.origin !== window.location.origin || x.source !== window.parent) && (x.data.type === Se.UPDATE_DRAFTS && (t(x.data.draft), n(x.data.globalDraft), (m = x.data.menuConfig) != null && m.main && i({ main: x.data.menuConfig.main }), x.data.themeConfig && Ti.setTheme(x.data.themeConfig)), x.data.type === Se.SYNC_SELECTION && s(x.data.selectedId), x.data.type === Se.REQUEST_SCROLL_TO_SECTION && d(x.data.sectionId ?? null), x.data.type === Se.REQUEST_INLINE_FLUSH)) {
13349
13349
  const b = typeof x.data.requestId == "string" ? x.data.requestId : null;
13350
13350
  window.dispatchEvent(new CustomEvent(Se.REQUEST_INLINE_FLUSH, { detail: { requestId: b } })), setTimeout(() => {
13351
13351
  window.parent.postMessage(
@@ -13649,15 +13649,15 @@ function Pi() {
13649
13649
  e.set(r.name, r);
13650
13650
  }, t.modelContext.unregisterTool = function(r) {
13651
13651
  e.delete(r);
13652
- }, t.modelContext.readResource = Ma, t.modelContextTesting || (t.modelContextTesting = {}), t.modelContextTesting.listTools = function() {
13652
+ }, t.modelContext.readResource = Ma, t.modelContextProtocol || (t.modelContextProtocol = {}), t.modelContextProtocol.listTools = function() {
13653
13653
  return Array.from(e.values()).map(({ execute: r, ...n }) => n);
13654
- }, t.modelContextTesting.executeTool = async function(r, n) {
13654
+ }, t.modelContextProtocol.executeTool = async function(r, n) {
13655
13655
  const o = e.get(r);
13656
13656
  if (!o)
13657
13657
  throw new Error(`Unknown WebMCP tool: ${r}`);
13658
13658
  const i = n ? JSON.parse(n) : {}, a = await o.execute(i);
13659
13659
  return JSON.stringify(a);
13660
- }, t.modelContextTesting.readResource = async function(r) {
13660
+ }, t.modelContextProtocol.readResource = async function(r) {
13661
13661
  const n = await Ma(r);
13662
13662
  return JSON.stringify(n);
13663
13663
  };
@@ -13725,7 +13725,7 @@ class wb extends Fa {
13725
13725
  function Dr(e) {
13726
13726
  return e.split("/").map((t) => t.trim()).filter(Boolean).join("/");
13727
13727
  }
13728
- function Tl(e, t = "") {
13728
+ function zl(e, t = "") {
13729
13729
  const r = Dr(t);
13730
13730
  let o = e.replace(/\/+/g, "/");
13731
13731
  if (r) {
@@ -13744,13 +13744,13 @@ function jo(e, t) {
13744
13744
  function No(e) {
13745
13745
  return typeof e == "object" && e !== null && !Array.isArray(e);
13746
13746
  }
13747
- function zn(e, t) {
13747
+ function Tn(e, t) {
13748
13748
  if (typeof document > "u") return;
13749
13749
  const r = `link[rel="${e}"]`;
13750
13750
  let n = document.head.querySelector(r);
13751
13751
  n || (n = document.createElement("link"), n.rel = e, document.head.appendChild(n)), n.href = t;
13752
13752
  }
13753
- function zl(e, t, r) {
13753
+ function Tl(e, t, r) {
13754
13754
  if (typeof document > "u") return;
13755
13755
  const n = "olonjs-webmcp-jsonld";
13756
13756
  let o = document.getElementById(n);
@@ -13778,7 +13778,7 @@ const _a = ({
13778
13778
  adminCss: a,
13779
13779
  NotFoundComponent: s
13780
13780
  }) => {
13781
- const c = Wa(), d = Tl(c.pathname), u = he(
13781
+ const c = Wa(), d = zl(c.pathname), u = he(
13782
13782
  () => Gt({
13783
13783
  pages: e,
13784
13784
  siteConfig: t,
@@ -13791,7 +13791,7 @@ const _a = ({
13791
13791
  return X(() => {
13792
13792
  var h;
13793
13793
  try {
13794
- (h = u.themeConfig) != null && h.tokens && zi.setTheme(u.themeConfig);
13794
+ (h = u.themeConfig) != null && h.tokens && Ti.setTheme(u.themeConfig);
13795
13795
  } catch (p) {
13796
13796
  console.warn("[JsonPages] visitor theme resolution failed", p);
13797
13797
  }
@@ -13799,7 +13799,7 @@ const _a = ({
13799
13799
  var x, m;
13800
13800
  if (!f) return;
13801
13801
  const h = typeof ((x = f.meta) == null ? void 0 : x.title) == "string" ? f.meta.title : d, p = typeof ((m = f.meta) == null ? void 0 : m.description) == "string" ? f.meta.description : "";
13802
- zn("mcp-manifest", Pl(d)), zn("olon-contract", Ol(d)), zl(h, p, d === "home" ? "/" : `/${d}`);
13802
+ Tn("mcp-manifest", Pl(d)), Tn("olon-contract", Ol(d)), Tl(h, p, d === "home" ? "/" : `/${d}`);
13803
13803
  }, [f, d]), f ? /* @__PURE__ */ l.jsx(ii, { mode: "tenant", tenantCss: i, adminCss: a, children: /* @__PURE__ */ l.jsx(Qo, { mode: "visitor", children: /* @__PURE__ */ l.jsx(
13804
13804
  ss,
13805
13805
  {
@@ -13826,8 +13826,8 @@ const _a = ({
13826
13826
  showHotSave: x = !1
13827
13827
  }) => {
13828
13828
  var Ae;
13829
- const m = Wa(), b = Tl(m.pathname, "admin"), w = Fl(), y = Object.keys(e).sort(
13830
- (A, z) => A === "home" ? -1 : z === "home" ? 1 : A.localeCompare(z)
13829
+ const m = Wa(), b = zl(m.pathname, "admin"), w = Fl(), y = Object.keys(e).sort(
13830
+ (A, T) => A === "home" ? -1 : T === "home" ? 1 : A.localeCompare(T)
13831
13831
  ), [v, k] = Q(null), [C, E] = Q(!1), [j, S] = Q(!1), [O, M] = Q(!1), [P, _] = Q(!1), [D, Y] = Q(() => {
13832
13832
  try {
13833
13833
  const A = JSON.parse(JSON.stringify(r ?? {}));
@@ -13838,7 +13838,7 @@ const _a = ({
13838
13838
  pages: []
13839
13839
  };
13840
13840
  }
13841
- }), [B, W] = Q(null), [U, R] = Q(null), [q, ne] = Q(null), [N, F] = Q(null), [G, H] = Q(!1), [ve, se] = Q(400), T = he(
13841
+ }), [B, W] = Q(null), [U, R] = Q(null), [q, ne] = Q(null), [N, F] = Q(null), [G, H] = Q(!1), [ve, se] = Q(400), z = he(
13842
13842
  () => Gt({
13843
13843
  pages: v ? { [b]: v } : {},
13844
13844
  siteConfig: D,
@@ -13847,7 +13847,7 @@ const _a = ({
13847
13847
  refDocuments: i
13848
13848
  }),
13849
13849
  [v, D, o, n, i, b]
13850
- ), J = v ? T.pages[b] ?? v : null, re = ue(v), $ = ue(D), oe = 360, ee = 920;
13850
+ ), J = v ? z.pages[b] ?? v : null, re = ue(v), $ = ue(D), oe = 360, ee = 920;
13851
13851
  X(() => {
13852
13852
  re.current = v;
13853
13853
  }, [v]), X(() => {
@@ -13855,24 +13855,24 @@ const _a = ({
13855
13855
  }, [D]);
13856
13856
  const ke = ge((A) => {
13857
13857
  A.preventDefault();
13858
- const z = A.currentTarget;
13859
- z.setPointerCapture(A.pointerId);
13858
+ const T = A.currentTarget;
13859
+ T.setPointerCapture(A.pointerId);
13860
13860
  const L = A.clientX, Z = ve, le = (ye) => {
13861
- const Te = L - ye.clientX, nt = Math.min(ee, Math.max(oe, Z + Te));
13861
+ const ze = L - ye.clientX, nt = Math.min(ee, Math.max(oe, Z + ze));
13862
13862
  se(nt);
13863
13863
  }, de = () => {
13864
- z.releasePointerCapture(A.pointerId), z.removeEventListener("pointermove", le), z.removeEventListener("pointerup", de), z.removeEventListener("pointercancel", de), document.body.style.cursor = "", document.body.style.userSelect = "";
13864
+ T.releasePointerCapture(A.pointerId), T.removeEventListener("pointermove", le), T.removeEventListener("pointerup", de), T.removeEventListener("pointercancel", de), document.body.style.cursor = "", document.body.style.userSelect = "";
13865
13865
  };
13866
- document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", z.addEventListener("pointermove", le), z.addEventListener("pointerup", de), z.addEventListener("pointercancel", de);
13866
+ document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", T.addEventListener("pointermove", le), T.addEventListener("pointerup", de), T.addEventListener("pointercancel", de);
13867
13867
  }, [ve]), we = v ? [
13868
13868
  ...D.header ? [{ id: D.header.id, type: D.header.type, scope: "global", title: "Header" }] : [],
13869
13869
  ...v.sections.map((A) => {
13870
- var z, L;
13870
+ var T, L;
13871
13871
  return {
13872
13872
  id: A.id,
13873
13873
  type: A.type,
13874
13874
  scope: "local",
13875
- title: ((z = A.data) == null ? void 0 : z.title) ?? ((L = A.data) == null ? void 0 : L.titleHighlight)
13875
+ title: ((T = A.data) == null ? void 0 : T.title) ?? ((L = A.data) == null ? void 0 : L.titleHighlight)
13876
13876
  };
13877
13877
  }),
13878
13878
  ...D.footer ? [{ id: D.footer.id, type: D.footer.type, scope: "global", title: "Footer" }] : []
@@ -13881,14 +13881,14 @@ const _a = ({
13881
13881
  const A = qo(e, b);
13882
13882
  A && k(JSON.parse(JSON.stringify(A))), W(null), R(null), E(!1);
13883
13883
  }, [b, e]);
13884
- const ze = ge(() => {
13884
+ const Te = ge(() => {
13885
13885
  const A = qo(e, b);
13886
13886
  A && k(JSON.parse(JSON.stringify(A))), W(null), R(null), E(!1);
13887
13887
  }, [b, e]), De = ge(
13888
- (A, z, L) => {
13889
- const Z = [...L.sections], le = Z.findIndex((Te) => Te.id === A);
13890
- if (le === -1 || z < 0 || z >= Z.length) return;
13891
- const [de] = Z.splice(le, 1), ye = z > le ? z - 1 : z;
13888
+ (A, T, L) => {
13889
+ const Z = [...L.sections], le = Z.findIndex((ze) => ze.id === A);
13890
+ if (le === -1 || T < 0 || T >= Z.length) return;
13891
+ const [de] = Z.splice(le, 1), ye = T > le ? T - 1 : T;
13892
13892
  Z.splice(Math.min(ye, Z.length), 0, de), k({ ...L, sections: Z }), E(!0);
13893
13893
  },
13894
13894
  []
@@ -13897,20 +13897,20 @@ const _a = ({
13897
13897
  if (A.origin === window.location.origin) {
13898
13898
  if (A.data.type === Se.SECTION_SELECT) {
13899
13899
  W(A.data.section);
13900
- const z = A.data.itemPath;
13901
- Array.isArray(z) && z.length > 0 ? R(z.map((L) => ({
13900
+ const T = A.data.itemPath;
13901
+ Array.isArray(T) && T.length > 0 ? R(T.map((L) => ({
13902
13902
  fieldKey: L.fieldKey,
13903
13903
  ...L.itemId != null ? { itemId: String(L.itemId) } : {}
13904
13904
  }))) : R(null);
13905
13905
  }
13906
13906
  if (A.data.type === Se.INLINE_FIELD_UPDATE) {
13907
- const z = typeof A.data.sectionId == "string" ? A.data.sectionId : null, L = typeof A.data.fieldKey == "string" ? A.data.fieldKey : null;
13908
- z && L && (k((Z) => {
13907
+ const T = typeof A.data.sectionId == "string" ? A.data.sectionId : null, L = typeof A.data.fieldKey == "string" ? A.data.fieldKey : null;
13908
+ T && L && (k((Z) => {
13909
13909
  if (!Z) return Z;
13910
13910
  const le = {
13911
13911
  ...Z,
13912
13912
  sections: Z.sections.map(
13913
- (de) => de.id === z ? {
13913
+ (de) => de.id === T ? {
13914
13914
  ...de,
13915
13915
  data: {
13916
13916
  ...de.data,
@@ -13923,14 +13923,14 @@ const _a = ({
13923
13923
  }), E(!0));
13924
13924
  }
13925
13925
  if (A.data.type === Se.ACTIVE_SECTION_CHANGED && ne(A.data.activeSectionId ?? null), A.data.type === "jsonpages:section-reorder" && re.current) {
13926
- const { sectionId: z, newIndex: L } = A.data;
13927
- typeof z == "string" && typeof L == "number" && L >= 0 && De(z, L, re.current);
13926
+ const { sectionId: T, newIndex: L } = A.data;
13927
+ typeof T == "string" && typeof L == "number" && L >= 0 && De(T, L, re.current);
13928
13928
  }
13929
13929
  if (A.data.type === Se.WEBMCP_TOOL_CALL) {
13930
- const z = typeof A.data.requestId == "string" ? A.data.requestId : crypto.randomUUID(), L = typeof A.data.toolName == "string" ? A.data.toolName : "";
13930
+ const T = typeof A.data.requestId == "string" ? A.data.requestId : crypto.randomUUID(), L = typeof A.data.toolName == "string" ? A.data.toolName : "";
13931
13931
  I(L, A.data.args).then((Z) => {
13932
13932
  window.postMessage(
13933
- { type: Se.WEBMCP_TOOL_RESULT, requestId: z, toolName: L, result: Z, ok: !0 },
13933
+ { type: Se.WEBMCP_TOOL_RESULT, requestId: T, toolName: L, result: Z, ok: !0 },
13934
13934
  window.location.origin
13935
13935
  );
13936
13936
  }).catch((Z) => {
@@ -13938,7 +13938,7 @@ const _a = ({
13938
13938
  window.postMessage(
13939
13939
  {
13940
13940
  type: Se.WEBMCP_TOOL_RESULT,
13941
- requestId: z,
13941
+ requestId: T,
13942
13942
  toolName: L,
13943
13943
  ok: !1,
13944
13944
  error: le
@@ -13975,13 +13975,13 @@ const _a = ({
13975
13975
  };
13976
13976
  }, [u == null ? void 0 : u.enabled, b, v, D, I]);
13977
13977
  const yt = ge((A) => {
13978
- const z = we.find((L) => L.id === A);
13979
- z && W({ id: z.id, type: z.type, scope: z.scope }), R(null), F(A);
13978
+ const T = we.find((L) => L.id === A);
13979
+ T && W({ id: T.id, type: T.type, scope: T.scope }), R(null), F(A);
13980
13980
  }, [we]), Je = ge(() => {
13981
13981
  F(null);
13982
13982
  }, []), Ge = ge(
13983
13983
  (A) => {
13984
- k((z) => z && { ...z, sections: z.sections.filter((L) => L.id !== A) }), E(!0), W((z) => (z == null ? void 0 : z.id) === A ? null : z);
13984
+ k((T) => T && { ...T, sections: T.sections.filter((L) => L.id !== A) }), E(!0), W((T) => (T == null ? void 0 : T.id) === A ? null : T);
13985
13985
  },
13986
13986
  []
13987
13987
  ), qe = (A) => {
@@ -13989,19 +13989,19 @@ const _a = ({
13989
13989
  if (E(!0), B.scope === "global")
13990
13990
  B.type === "header" && D.header != null ? Y({ ...D, header: { ...D.header, data: A } }) : B.type === "footer" && D.footer != null && Y({ ...D, footer: { ...D.footer, data: A } });
13991
13991
  else {
13992
- const z = v.sections.map(
13992
+ const T = v.sections.map(
13993
13993
  (L) => L.id === B.id ? { ...L, data: A } : L
13994
13994
  );
13995
- k({ ...v, sections: z });
13995
+ k({ ...v, sections: T });
13996
13996
  }
13997
13997
  }, gt = ge(
13998
- (A, z, L, Z) => {
13998
+ (A, T, L, Z) => {
13999
13999
  var le, de;
14000
- if (E(!0), z === "global")
14000
+ if (E(!0), T === "global")
14001
14001
  ((le = D.header) == null ? void 0 : le.id) === A ? Y({ ...D, header: { ...D.header, data: Z } }) : ((de = D.footer) == null ? void 0 : de.id) === A && Y({ ...D, footer: { ...D.footer, data: Z } });
14002
14002
  else if (v) {
14003
14003
  const ye = v.sections.map(
14004
- (Te) => Te.id === A ? { ...Te, data: Z } : Te
14004
+ (ze) => ze.id === A ? { ...ze, data: Z } : ze
14005
14005
  );
14006
14006
  k({ ...v, sections: ye });
14007
14007
  }
@@ -14010,32 +14010,32 @@ const _a = ({
14010
14010
  ), rt = ge(async () => {
14011
14011
  const A = document.querySelector("iframe");
14012
14012
  if (!(A != null && A.contentWindow)) return;
14013
- const z = crypto.randomUUID();
14013
+ const T = crypto.randomUUID();
14014
14014
  await new Promise((L) => {
14015
14015
  var de;
14016
14016
  let Z = !1;
14017
14017
  const le = (ye) => {
14018
- var Te, nt;
14019
- ye.origin === window.location.origin && ((Te = ye.data) == null ? void 0 : Te.type) === Se.INLINE_FLUSHED && ((nt = ye.data) == null ? void 0 : nt.requestId) === z && (Z = !0, window.removeEventListener("message", le), L());
14018
+ var ze, nt;
14019
+ ye.origin === window.location.origin && ((ze = ye.data) == null ? void 0 : ze.type) === Se.INLINE_FLUSHED && ((nt = ye.data) == null ? void 0 : nt.requestId) === T && (Z = !0, window.removeEventListener("message", le), L());
14020
14020
  };
14021
- window.addEventListener("message", le), (de = A.contentWindow) == null || de.postMessage({ type: Se.REQUEST_INLINE_FLUSH, requestId: z }, "*"), window.setTimeout(() => {
14021
+ window.addEventListener("message", le), (de = A.contentWindow) == null || de.postMessage({ type: Se.REQUEST_INLINE_FLUSH, requestId: T }, "*"), window.setTimeout(() => {
14022
14022
  Z || (window.removeEventListener("message", le), L());
14023
14023
  }, 400);
14024
14024
  });
14025
14025
  }, []), kt = ge(
14026
- async (A, z) => {
14026
+ async (A, T) => {
14027
14027
  var de;
14028
14028
  if (!f)
14029
14029
  throw new Error("saveToFile is not configured for this tenant.");
14030
14030
  const L = Gt({
14031
14031
  pages: { [b]: A },
14032
- siteConfig: z,
14032
+ siteConfig: T,
14033
14033
  themeConfig: o,
14034
14034
  menuConfig: n,
14035
14035
  refDocuments: i
14036
14036
  }), Z = (de = L.siteConfig.header) == null ? void 0 : de.data, le = {
14037
14037
  page: A,
14038
- site: z,
14038
+ site: T,
14039
14039
  menu: { main: jo(Z, n.main) },
14040
14040
  theme: L.themeConfig
14041
14041
  };
@@ -14043,13 +14043,13 @@ const _a = ({
14043
14043
  },
14044
14044
  [f, b, o, n, i]
14045
14045
  ), hr = ge(
14046
- async (A, z) => {
14046
+ async (A, T) => {
14047
14047
  var Fe, We;
14048
14048
  if (!f)
14049
14049
  throw new Error("WebMCP requires saveToFile persistence in Studio mode.");
14050
- if (!No(z) || typeof z.sectionId != "string")
14050
+ if (!No(T) || typeof T.sectionId != "string")
14051
14051
  throw new Error("WebMCP mutation requires a sectionId.");
14052
- const L = z, Z = typeof L.slug == "string" ? Dr(L.slug) : b;
14052
+ const L = T, Z = typeof L.slug == "string" ? Dr(L.slug) : b;
14053
14053
  if (Z !== b)
14054
14054
  throw new Error(`WebMCP slug mismatch. Active Studio slug is "${b}", received "${Z}".`);
14055
14055
  await rt();
@@ -14059,9 +14059,9 @@ const _a = ({
14059
14059
  const ye = t[A];
14060
14060
  if (!ye || typeof ye.parse != "function")
14061
14061
  throw new Error(`Missing schema for section type "${A}".`);
14062
- const Te = L.scope === "global" ? "global" : "local";
14062
+ const ze = L.scope === "global" ? "global" : "local";
14063
14063
  let nt = le, Re = de;
14064
- if (Te === "global") {
14064
+ if (ze === "global") {
14065
14065
  const je = ((Fe = de.header) == null ? void 0 : Fe.id) === L.sectionId ? de.header : ((We = de.footer) == null ? void 0 : We.id) === L.sectionId ? de.footer : null;
14066
14066
  if (!je)
14067
14067
  throw new Error(`Global section "${L.sectionId}" was not found.`);
@@ -14086,7 +14086,7 @@ const _a = ({
14086
14086
  )
14087
14087
  }, re.current = nt, k(nt);
14088
14088
  }
14089
- return W({ id: L.sectionId, type: A, scope: Te }), R(Array.isArray(L.itemPath) ? L.itemPath : null), E(!0), await kt(nt, Re), {
14089
+ return W({ id: L.sectionId, type: A, scope: ze }), R(Array.isArray(L.itemPath) ? L.itemPath : null), E(!0), await kt(nt, Re), {
14090
14090
  content: [
14091
14091
  {
14092
14092
  type: "text",
@@ -14095,7 +14095,7 @@ const _a = ({
14095
14095
  slug: b,
14096
14096
  sectionId: L.sectionId,
14097
14097
  sectionType: A,
14098
- scope: Te
14098
+ scope: ze
14099
14099
  })
14100
14100
  }
14101
14101
  ],
@@ -14104,27 +14104,27 @@ const _a = ({
14104
14104
  },
14105
14105
  [f, b, rt, t, kt]
14106
14106
  );
14107
- async function I(A, z) {
14107
+ async function I(A, T) {
14108
14108
  const L = gb(A);
14109
14109
  if (!L)
14110
14110
  throw new Error(`Unknown WebMCP tool "${A}".`);
14111
- return hr(L, z);
14111
+ return hr(L, T);
14112
14112
  }
14113
14113
  const te = async () => {
14114
14114
  var de;
14115
14115
  if (!f) return;
14116
14116
  await rt();
14117
- const A = re.current, z = $.current;
14117
+ const A = re.current, T = $.current;
14118
14118
  if (!A) return;
14119
14119
  const L = Gt({
14120
14120
  pages: { [b]: A },
14121
- siteConfig: z,
14121
+ siteConfig: T,
14122
14122
  themeConfig: o,
14123
14123
  menuConfig: n,
14124
14124
  refDocuments: i
14125
14125
  }), Z = (de = L.siteConfig.header) == null ? void 0 : de.data, le = {
14126
14126
  page: A,
14127
- site: z,
14127
+ site: T,
14128
14128
  menu: { main: jo(Z, n.main) },
14129
14129
  theme: L.themeConfig
14130
14130
  };
@@ -14132,24 +14132,24 @@ const _a = ({
14132
14132
  E(!1), S(!0), typeof window < "u" && window.setTimeout(() => S(!1), 2500);
14133
14133
  }).catch((ye) => {
14134
14134
  console.error("[JsonPages] saveToFile failed", ye);
14135
- const Te = ye instanceof Error ? ye.message : String(ye);
14136
- alert(`Save to file failed: ${Te}`);
14135
+ const ze = ye instanceof Error ? ye.message : String(ye);
14136
+ alert(`Save to file failed: ${ze}`);
14137
14137
  });
14138
14138
  }, ie = async () => {
14139
14139
  var de;
14140
14140
  if (!h) return;
14141
14141
  await rt();
14142
- const A = re.current, z = $.current;
14142
+ const A = re.current, T = $.current;
14143
14143
  if (!A) return;
14144
14144
  const L = Gt({
14145
14145
  pages: { [b]: A },
14146
- siteConfig: z,
14146
+ siteConfig: T,
14147
14147
  themeConfig: o,
14148
14148
  menuConfig: n,
14149
14149
  refDocuments: i
14150
14150
  }), Z = (de = L.siteConfig.header) == null ? void 0 : de.data, le = {
14151
14151
  page: A,
14152
- site: z,
14152
+ site: T,
14153
14153
  menu: { main: jo(Z, n.main) },
14154
14154
  theme: L.themeConfig
14155
14155
  };
@@ -14157,18 +14157,18 @@ const _a = ({
14157
14157
  E(!1), M(!0), typeof window < "u" && window.setTimeout(() => M(!1), 2500);
14158
14158
  }).catch((ye) => {
14159
14159
  console.error("[JsonPages] hotSave failed", ye);
14160
- const Te = ye instanceof Error ? ye.message : String(ye);
14161
- alert(`Hot save failed: ${Te}`);
14160
+ const ze = ye instanceof Error ? ye.message : String(ye);
14161
+ alert(`Hot save failed: ${ze}`);
14162
14162
  }).finally(() => {
14163
14163
  _(!1);
14164
14164
  });
14165
14165
  }, me = (A) => {
14166
14166
  var Z;
14167
14167
  if (!v) return;
14168
- const z = ((Z = c == null ? void 0 : c.getDefaultSectionData) == null ? void 0 : Z.call(c, A)) ?? {}, L = {
14168
+ const T = ((Z = c == null ? void 0 : c.getDefaultSectionData) == null ? void 0 : Z.call(c, A)) ?? {}, L = {
14169
14169
  id: crypto.randomUUID(),
14170
14170
  type: A,
14171
- data: z,
14171
+ data: T,
14172
14172
  settings: void 0
14173
14173
  };
14174
14174
  k({
@@ -14178,17 +14178,17 @@ const _a = ({
14178
14178
  };
14179
14179
  if (X(() => {
14180
14180
  var Z, le;
14181
- const A = J ?? v, z = typeof ((Z = A == null ? void 0 : A.meta) == null ? void 0 : Z.title) == "string" ? A.meta.title : b, L = typeof ((le = A == null ? void 0 : A.meta) == null ? void 0 : le.description) == "string" ? A.meta.description : "";
14182
- zn("mcp-manifest", Pl(b)), zn("olon-contract", Ol(b)), zl(z, L, `/admin${b === "home" ? "" : `/${b}`}`);
14181
+ const A = J ?? v, T = typeof ((Z = A == null ? void 0 : A.meta) == null ? void 0 : Z.title) == "string" ? A.meta.title : b, L = typeof ((le = A == null ? void 0 : A.meta) == null ? void 0 : le.description) == "string" ? A.meta.description : "";
14182
+ Tn("mcp-manifest", Pl(b)), Tn("olon-contract", Ol(b)), Tl(T, L, `/admin${b === "home" ? "" : `/${b}`}`);
14183
14183
  }, [v, J, b]), !v) return /* @__PURE__ */ l.jsx("div", { children: "Loading Studio..." });
14184
14184
  const Me = (B == null ? void 0 : B.scope) === "global" ? {
14185
- sections: [T.siteConfig.header, T.siteConfig.footer].filter(
14185
+ sections: [z.siteConfig.header, z.siteConfig.footer].filter(
14186
14186
  (A) => A != null
14187
14187
  )
14188
14188
  } : J ?? v, Ce = [
14189
- ...T.siteConfig.header ? [T.siteConfig.header] : [],
14189
+ ...z.siteConfig.header ? [z.siteConfig.header] : [],
14190
14190
  ...((Ae = J ?? v) == null ? void 0 : Ae.sections) ?? [],
14191
- ...T.siteConfig.footer ? [T.siteConfig.footer] : []
14191
+ ...z.siteConfig.footer ? [z.siteConfig.footer] : []
14192
14192
  ];
14193
14193
  return /* @__PURE__ */ l.jsx(ii, { mode: "admin", tenantCss: a, adminCss: s, children: /* @__PURE__ */ l.jsx(Qo, { mode: "studio", children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col h-screen w-screen bg-background text-foreground overflow-hidden", children: [
14194
14194
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-1 min-h-0 overflow-hidden", children: [
@@ -14196,9 +14196,9 @@ const _a = ({
14196
14196
  ab,
14197
14197
  {
14198
14198
  draft: J ?? v,
14199
- globalDraft: T.siteConfig,
14200
- menuConfig: T.menuConfig,
14201
- themeConfig: T.themeConfig,
14199
+ globalDraft: z.siteConfig,
14200
+ menuConfig: z.menuConfig,
14201
+ themeConfig: z.themeConfig,
14202
14202
  slug: b,
14203
14203
  selectedId: B == null ? void 0 : B.id,
14204
14204
  scrollToSectionId: N,
@@ -14233,7 +14233,7 @@ const _a = ({
14233
14233
  W(null), R(null);
14234
14234
  },
14235
14235
  expandedItemPath: U,
14236
- onReorderSection: v ? (A, z) => De(A, z, v) : void 0,
14236
+ onReorderSection: v ? (A, T) => De(A, T, v) : void 0,
14237
14237
  allLayers: we,
14238
14238
  activeSectionId: q,
14239
14239
  onRequestScrollToSection: yt,
@@ -14247,12 +14247,12 @@ const _a = ({
14247
14247
  hotSaveInProgress: P,
14248
14248
  showLegacySave: p,
14249
14249
  showHotSave: x,
14250
- onResetToFile: ze,
14250
+ onResetToFile: Te,
14251
14251
  pageSlugs: y,
14252
14252
  currentSlug: b,
14253
14253
  onPageChange: y.length > 1 ? (A) => {
14254
- const z = Dr(A);
14255
- w(z === "home" ? "/admin" : `/admin/${z}`);
14254
+ const T = Dr(A);
14255
+ w(T === "home" ? "/admin" : `/admin/${T}`);
14256
14256
  } : void 0
14257
14257
  }
14258
14258
  )
@@ -14303,7 +14303,7 @@ function Eb({ config: e }) {
14303
14303
  return X(() => {
14304
14304
  var j, S;
14305
14305
  try {
14306
- (j = m.themeConfig) != null && j.tokens && zi.setTheme(m.themeConfig);
14306
+ (j = m.themeConfig) != null && j.tokens && Ti.setTheme(m.themeConfig);
14307
14307
  } catch (O) {
14308
14308
  console.warn("[JsonPages] setTheme failed", O);
14309
14309
  }
@@ -14448,7 +14448,7 @@ export {
14448
14448
  ib as AdminSidebar,
14449
14449
  Dd as ConfigProvider,
14450
14450
  mb as DefaultNotFound,
14451
- Tn as FormFactory,
14451
+ zn as FormFactory,
14452
14452
  kr as InputWidgets,
14453
14453
  Eb as JsonPagesEngine,
14454
14454
  ss as PageRenderer,
@@ -14471,7 +14471,7 @@ export {
14471
14471
  ao as resolveSectionMenuItems,
14472
14472
  Da as resolveWebMcpMutationData,
14473
14473
  Ul as shouldRenderSiteGlobalHeader,
14474
- zi as themeManager,
14474
+ Ti as themeManager,
14475
14475
  On as useConfig,
14476
14476
  Md as useStudio
14477
14477
  };