@photon-ai/pho-ui 4.3.0 → 4.4.0

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.
Files changed (89) hide show
  1. package/dist/chunks/animated-height-I44sUq0n.js +48 -0
  2. package/dist/chunks/animated-height-I44sUq0n.js.map +1 -0
  3. package/dist/chunks/{basic-page-65eFgq8o.js → basic-page-ijv-ijUB.js} +534 -519
  4. package/dist/chunks/basic-page-ijv-ijUB.js.map +1 -0
  5. package/dist/chunks/bubble-eaoLJP4N.js +88 -0
  6. package/dist/chunks/bubble-eaoLJP4N.js.map +1 -0
  7. package/dist/chunks/{button-CdqS_t5a.js → button-CgUS0j3D.js} +4 -4
  8. package/dist/chunks/button-CgUS0j3D.js.map +1 -0
  9. package/dist/chunks/chat-DUqWlXqt.js +619 -0
  10. package/dist/chunks/chat-DUqWlXqt.js.map +1 -0
  11. package/dist/chunks/{code-block-BuDIo8Q0.js → code-block-BGgbp-6Q.js} +12 -12
  12. package/dist/chunks/{code-block-BuDIo8Q0.js.map → code-block-BGgbp-6Q.js.map} +1 -1
  13. package/dist/chunks/collapsible-Dv306QOT.js +40 -0
  14. package/dist/chunks/collapsible-Dv306QOT.js.map +1 -0
  15. package/dist/chunks/command-BfCCRaoc.js +225 -0
  16. package/dist/chunks/command-BfCCRaoc.js.map +1 -0
  17. package/dist/chunks/{copy-button-B_B15mEi.js → copy-button-D8XyP0oR.js} +10 -10
  18. package/dist/chunks/copy-button-D8XyP0oR.js.map +1 -0
  19. package/dist/chunks/{data-table-BeUwsjmX.js → data-table-Mog6m3d9.js} +2 -2
  20. package/dist/chunks/{data-table-BeUwsjmX.js.map → data-table-Mog6m3d9.js.map} +1 -1
  21. package/dist/chunks/{description-list-C-mwe4ki.js → description-list-8qm83WZB.js} +17 -17
  22. package/dist/chunks/description-list-8qm83WZB.js.map +1 -0
  23. package/dist/chunks/{dialog-BYiAFetB.js → dialog-DeM4axJ6.js} +47 -51
  24. package/dist/chunks/{dialog-BYiAFetB.js.map → dialog-DeM4axJ6.js.map} +1 -1
  25. package/dist/chunks/{error-BAQgnde7.js → error-VvHnteyf.js} +2 -2
  26. package/dist/chunks/{error-BAQgnde7.js.map → error-VvHnteyf.js.map} +1 -1
  27. package/dist/chunks/{filter-bar-DTaLgQr0.js → filter-bar-BcpeTKCC.js} +38 -36
  28. package/dist/chunks/filter-bar-BcpeTKCC.js.map +1 -0
  29. package/dist/chunks/{log-list-BERiO4UJ.js → log-list-Didt-MV4.js} +2 -2
  30. package/dist/chunks/{log-list-BERiO4UJ.js.map → log-list-Didt-MV4.js.map} +1 -1
  31. package/dist/chunks/message-CTml-TrB.js +89 -0
  32. package/dist/chunks/message-CTml-TrB.js.map +1 -0
  33. package/dist/chunks/{scroll-area-Zik8t1Mk.js → scroll-area-DSwD9th7.js} +2 -2
  34. package/dist/chunks/{scroll-area-Zik8t1Mk.js.map → scroll-area-DSwD9th7.js.map} +1 -1
  35. package/dist/chunks/{sidebar-DRPe5CAh.js → sidebar-BmloUwJQ.js} +57 -57
  36. package/dist/chunks/sidebar-BmloUwJQ.js.map +1 -0
  37. package/dist/chunks/{toast-72Wwlzg9.js → toast-DUvjSZF7.js} +3 -3
  38. package/dist/chunks/{toast-72Wwlzg9.js.map → toast-DUvjSZF7.js.map} +1 -1
  39. package/dist/chunks/{trace-Hku-rImp.js → trace-CjOi3_IP.js} +2 -2
  40. package/dist/chunks/{trace-Hku-rImp.js.map → trace-CjOi3_IP.js.map} +1 -1
  41. package/dist/components/accordion.js +3 -3
  42. package/dist/components/accordion.js.map +1 -1
  43. package/dist/components/bubble.js +6 -0
  44. package/dist/components/button.js +1 -1
  45. package/dist/components/chat.js +5 -0
  46. package/dist/components/code-block.js +1 -1
  47. package/dist/components/collapsible.js +1 -1
  48. package/dist/components/command.js +1 -1
  49. package/dist/components/copy-button.js +1 -1
  50. package/dist/components/data-table.js +1 -1
  51. package/dist/components/description-list.js +1 -1
  52. package/dist/components/dialog.js +1 -1
  53. package/dist/components/error.js +1 -1
  54. package/dist/components/filter-bar.js +1 -1
  55. package/dist/components/log-list.js +1 -1
  56. package/dist/components/message.js +7 -0
  57. package/dist/components/scroll-area.js +1 -1
  58. package/dist/components/toast.js +1 -1
  59. package/dist/components/trace.js +1 -1
  60. package/dist/index.js +145 -136
  61. package/dist/sections/basic-page.js +2 -2
  62. package/dist/sections/sidebar.js +1 -1
  63. package/dist/src/components/bubble/bubble.d.ts +112 -0
  64. package/dist/src/components/bubble/index.d.ts +1 -0
  65. package/dist/src/components/chat/chat.d.ts +301 -0
  66. package/dist/src/components/chat/index.d.ts +1 -0
  67. package/dist/src/components/collapsible/collapsible.d.ts +1 -1
  68. package/dist/src/components/command/command.d.ts +14 -4
  69. package/dist/src/components/command/index.d.ts +1 -1
  70. package/dist/src/components/filter-bar/filter-bar.d.ts +5 -0
  71. package/dist/src/components/message/index.d.ts +2 -0
  72. package/dist/src/components/message/message-status.d.ts +22 -0
  73. package/dist/src/components/message/message.d.ts +78 -0
  74. package/dist/src/index.d.ts +3 -0
  75. package/dist/src/sections/sidebar/sidebar.d.ts +10 -1
  76. package/dist/src/utils/animated-height.d.ts +6 -0
  77. package/package.json +13 -1
  78. package/dist/chunks/animated-height-CCO-Ocoz.js +0 -48
  79. package/dist/chunks/animated-height-CCO-Ocoz.js.map +0 -1
  80. package/dist/chunks/basic-page-65eFgq8o.js.map +0 -1
  81. package/dist/chunks/button-CdqS_t5a.js.map +0 -1
  82. package/dist/chunks/collapsible-if7ncPbI.js +0 -28
  83. package/dist/chunks/collapsible-if7ncPbI.js.map +0 -1
  84. package/dist/chunks/command-ZagVyDx7.js +0 -192
  85. package/dist/chunks/command-ZagVyDx7.js.map +0 -1
  86. package/dist/chunks/copy-button-B_B15mEi.js.map +0 -1
  87. package/dist/chunks/description-list-C-mwe4ki.js.map +0 -1
  88. package/dist/chunks/filter-bar-DTaLgQr0.js.map +0 -1
  89. package/dist/chunks/sidebar-DRPe5CAh.js.map +0 -1
@@ -1,43 +1,43 @@
1
1
  "use client";
2
2
  import { t as p } from "./cn-ChIgwEl3.js";
3
- import { n as Ge } from "./link-provider-DXzDQ08N.js";
4
- import { FADE_ENTRANCE as ca, FADE_SWAP as ua, SPRING_ENTRANCE as da, TRAVEL_LINEAR as pa, fadeThroughBlur as te } from "../motion.js";
5
- import { a as Z, o as ve } from "./button-CdqS_t5a.js";
6
- import { t as ma } from "./error-BAQgnde7.js";
7
- import { n as fa, t as ha } from "./IconArrowsMinimize-BfPUGuCB.js";
3
+ import { n as We } from "./link-provider-DXzDQ08N.js";
4
+ import { FADE_ENTRANCE as ut, FADE_SWAP as dt, SPRING_ENTRANCE as pt, TRAVEL_LINEAR as mt, fadeThroughBlur as ae } from "../motion.js";
5
+ import { a as Z, o as ve } from "./button-CgUS0j3D.js";
6
+ import { t as ft } from "./error-VvHnteyf.js";
7
+ import { n as ht, t as gt } from "./IconArrowsMinimize-BfPUGuCB.js";
8
8
  import { t as ie } from "./IconChevronLeft-CSWMKQ4C.js";
9
- import { t as ga } from "./IconChevronRight-CzoJnYNI.js";
10
- import { t as Te } from "./IconSearch-BKAHkLyX.js";
11
- import { i as ye, n as ba, o as va, r as ya } from "./data-table-BeUwsjmX.js";
12
- import { t as xa } from "./IconX-pZ9vrtSr.js";
13
- import { t as wa } from "./toast-72Wwlzg9.js";
9
+ import { t as bt } from "./IconChevronRight-CzoJnYNI.js";
10
+ import { t as Re } from "./IconSearch-BKAHkLyX.js";
11
+ import { i as ye, n as vt, o as yt, r as xt } from "./data-table-Mog6m3d9.js";
12
+ import { t as wt } from "./IconX-pZ9vrtSr.js";
13
+ import { t as Nt } from "./toast-DUvjSZF7.js";
14
14
  import { t as pe } from "./input-group-fc9_jD4d.js";
15
- import { t as Na } from "./animated-height-CCO-Ocoz.js";
16
- import { n as xe, t as J } from "./scroll-area-Zik8t1Mk.js";
17
- import { i as Aa } from "./checkbox-CLPmblNA.js";
18
- import { t as _a } from "./form-AiHbbw4m.js";
15
+ import { t as At } from "./animated-height-I44sUq0n.js";
16
+ import { n as xe, t as J } from "./scroll-area-DSwD9th7.js";
17
+ import { i as _t } from "./checkbox-CLPmblNA.js";
18
+ import { t as Et } from "./form-AiHbbw4m.js";
19
19
  import { i as K } from "./menu-BQeprfxB.js";
20
- import { t as Ca } from "./ghost-search-AmVXd0zE.js";
21
- import { t as W } from "./tooltip-BTF7GChl.js";
22
- import { Children as ee, Fragment as Ea, createContext as z, isValidElement as Ve, useCallback as we, useContext as R, useEffect as O, useId as ka, useLayoutEffect as H, useMemo as q, useRef as C, useState as w, useSyncExternalStore as ce } from "react";
23
- import { Fragment as Ne, jsx as a, jsxs as y } from "react/jsx-runtime";
24
- import { AnimatePresence as $, motion as A, useIsPresent as Sa, useReducedMotion as M } from "motion/react";
20
+ import { t as Ct } from "./ghost-search-AmVXd0zE.js";
21
+ import { t as q } from "./tooltip-BTF7GChl.js";
22
+ import { Children as ee, Fragment as St, createContext as z, isValidElement as Ve, useCallback as we, useContext as T, useEffect as O, useId as kt, useLayoutEffect as H, useMemo as $, useRef as E, useState as w, useSyncExternalStore as ce } from "react";
23
+ import { Fragment as Ne, jsx as t, jsxs as y } from "react/jsx-runtime";
24
+ import { AnimatePresence as V, motion as A, useIsPresent as Tt, useReducedMotion as M } from "motion/react";
25
25
  import { Dialog as ne } from "@base-ui/react/dialog";
26
26
  import { createPortal as Pe } from "react-dom";
27
- var Ae = "rounded-base border border-pho-secondary bg-pho-primary", se = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", $e = `${Ae} ${se} gap-0`, Ie = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5", Ra = "flex min-h-[4.25rem] min-w-0 flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6", Ta = "flex flex-col gap-3 px-5 py-4", Pa = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", Ia = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", I = da, D = ca, j = 12, qe = z(null), Oa = 768;
28
- function Ba(e, t = "default") {
29
- return Math.round(t === "wide" ? Math.min(Math.max(e * (2 / 3), 448), 768) : Math.min(Math.max(e * 0.4, 320), 448));
27
+ var Ae = "rounded-base border border-pho-secondary bg-pho-primary", se = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", $e = `${Ae} ${se} gap-0`, Ie = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5", Rt = "flex min-h-[4.25rem] min-w-0 flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6", Pt = "flex flex-col gap-3 px-5 py-4", It = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", Ot = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", I = pt, D = ut, j = 12, qe = z(null), Bt = 768;
28
+ function Lt(e, a = "default") {
29
+ return Math.round(a === "wide" ? Math.min(Math.max(e * (2 / 3), 448), 768) : Math.min(Math.max(e * 0.4, 320), 448));
30
30
  }
31
- var We = z(null), je = z(null);
32
- function La(e) {
33
- const [t, n] = w(null), [r, s] = w(!1), [l, u] = w(!1), [c, i] = w(!1), [d, f] = w(() => ({
31
+ var je = z(null), Ke = z(null);
32
+ function Mt(e) {
33
+ const [a, n] = w(null), [r, s] = w(!1), [l, u] = w(!1), [c, i] = w(!1), [d, f] = w(() => ({
34
34
  width: typeof window > "u" ? 0 : window.innerWidth,
35
35
  height: null
36
36
  }));
37
37
  return H(() => {
38
38
  const o = e.current;
39
39
  if (!r || o == null) return;
40
- const m = Ee(o), h = () => {
40
+ const m = Ce(o), h = () => {
41
41
  const b = o.offsetWidth, N = m?.clientHeight ?? null;
42
42
  f((v) => v.width === b && v.height === N ? v : {
43
43
  width: b,
@@ -48,61 +48,61 @@ function La(e) {
48
48
  const g = new ResizeObserver(h);
49
49
  return g.observe(o), m != null && g.observe(m), () => g.disconnect();
50
50
  }, [e, r]), {
51
- host: q(() => ({
52
- slot: t,
53
- paneNarrow: d.width < Oa,
51
+ host: $(() => ({
52
+ slot: a,
53
+ paneNarrow: d.width < Bt,
54
54
  paneWidth: d.width,
55
55
  paneHeight: d.height,
56
56
  setOpen: u,
57
57
  setAsPage: i,
58
58
  setPresent: s
59
- }), [t, d]),
59
+ }), [a, d]),
60
60
  setSlot: n,
61
61
  open: l,
62
62
  asPage: c
63
63
  };
64
64
  }
65
- function Ma(e) {
65
+ function Dt(e) {
66
66
  return e == null ? window.scrollY : e.scrollTop;
67
67
  }
68
- function Oe(e, t) {
69
- e == null ? window.scrollTo({ top: t }) : e.scrollTop = t;
68
+ function Oe(e, a) {
69
+ e == null ? window.scrollTo({ top: a }) : e.scrollTop = a;
70
70
  }
71
- function Da({ condense: e = !0, width: t, prerendered: n = !1, className: r, children: s, ref: l, ...u }) {
72
- const c = R(ue)?.adopt ?? !1, i = R(je), [d, f] = w(!1), o = C(0), m = we((B) => {
71
+ function Ht({ condense: e = !0, width: a, prerendered: n = !1, className: r, children: s, ref: l, ...u }) {
72
+ const c = T(ue)?.adopt ?? !1, i = T(Ke), [d, f] = w(!1), o = E(0), m = we((B) => {
73
73
  o.current += B ? 1 : -1, f(o.current > 0);
74
- }, []), h = t === "wide" || t == null && d, [g] = w(va), b = C(null), N = q(() => ({
74
+ }, []), h = a === "wide" || a == null && d, [g] = w(yt), b = E(null), N = $(() => ({
75
75
  ref: b,
76
76
  prerendered: n
77
- }), [n]), [v, _] = w(null), [x, E] = w(null), T = q(() => ({
77
+ }), [n]), [v, _] = w(null), [x, C] = w(null), R = $(() => ({
78
78
  setTitle: _,
79
- setTail: E
79
+ setTail: C
80
80
  }), []);
81
81
  O(() => {
82
82
  if (i != null)
83
83
  return i.setBack(x), () => i.setBack(null);
84
84
  }, [i, x]);
85
- const { host: P, setSlot: F, open: G, asPage: Y } = La(b), V = G && Y, U = C(!1), ae = C(0);
85
+ const { host: P, setSlot: F, open: G, asPage: Y } = Mt(b), W = G && Y, U = E(!1), te = E(0);
86
86
  H(() => {
87
87
  const B = b.current;
88
- if (V === U.current || B == null) return;
89
- U.current = V;
90
- const L = Ee(B);
91
- V ? (ae.current = Ma(L), Oe(L, 0)) : Oe(L, ae.current);
92
- }, [V]);
93
- const S = e ? /* @__PURE__ */ a(Ha, {
88
+ if (W === U.current || B == null) return;
89
+ U.current = W;
90
+ const L = Ce(B);
91
+ W ? (te.current = Dt(L), Oe(L, 0)) : Oe(L, te.current);
92
+ }, [W]);
93
+ const k = e ? /* @__PURE__ */ t(Ft, {
94
94
  title: v,
95
95
  tail: i == null ? x : null,
96
- silent: V || i != null
97
- }) : null, k = /* @__PURE__ */ a("div", {
96
+ silent: W || i != null
97
+ }) : null, S = /* @__PURE__ */ t("div", {
98
98
  "data-basic-page-column": "",
99
- className: p("mx-auto flex w-full min-w-0 flex-1 flex-col px-5 pt-12 pb-12 *:min-w-0", h ? "max-w-[84rem] md:px-8" : "max-w-[44.5rem]", c || i != null ? "[&_[data-basic-page-back]]:hidden" : "has-[[data-basic-page-back]]:pt-16"),
100
- children: e ? /* @__PURE__ */ a(Ce.Provider, {
101
- value: T,
99
+ className: p("mx-auto flex w-full min-w-0 flex-1 flex-col px-5 pt-12 pb-12 *:min-w-0", i == null && (h ? "max-w-[84rem] md:px-8" : "max-w-[44.5rem]"), c || i != null ? "[&_[data-basic-page-back]]:hidden" : "has-[[data-basic-page-back]]:pt-16"),
100
+ children: e ? /* @__PURE__ */ t(Ee.Provider, {
101
+ value: R,
102
102
  children: s
103
103
  }) : s
104
104
  });
105
- return /* @__PURE__ */ a("div", {
105
+ return /* @__PURE__ */ t("div", {
106
106
  "data-basic-page-root": "",
107
107
  "data-basic-page-width": h ? "wide" : void 0,
108
108
  "data-basic-page-prerendered": n ? "" : void 0,
@@ -111,19 +111,19 @@ function Da({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
111
111
  ref: (B) => {
112
112
  b.current = B, typeof l == "function" ? l(B) : l != null && (l.current = B);
113
113
  },
114
- children: /* @__PURE__ */ a(qe.Provider, {
114
+ children: /* @__PURE__ */ t(qe.Provider, {
115
115
  value: N,
116
- children: /* @__PURE__ */ a(We.Provider, {
116
+ children: /* @__PURE__ */ t(je.Provider, {
117
117
  value: P,
118
- children: /* @__PURE__ */ a(ya.Provider, {
118
+ children: /* @__PURE__ */ t(xt.Provider, {
119
119
  value: m,
120
120
  children: /* @__PURE__ */ y(ye.Provider, {
121
121
  value: g,
122
122
  children: [/* @__PURE__ */ y("div", {
123
123
  "data-basic-page-main": "",
124
- className: p("flex min-w-0 flex-1 flex-col", V && "hidden"),
125
- children: [S, k]
126
- }), /* @__PURE__ */ a("div", {
124
+ className: p("flex min-w-0 flex-1 flex-col", W && "hidden"),
125
+ children: [k, S]
126
+ }), /* @__PURE__ */ t("div", {
127
127
  ref: F,
128
128
  className: "contents"
129
129
  })]
@@ -134,8 +134,8 @@ function Da({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
134
134
  });
135
135
  }
136
136
  var me = /* @__PURE__ */ new Set();
137
- function Ha({ title: e, tail: t, silent: n = !1 }) {
138
- const r = M(), [s, l] = w(() => !n && me.size > 0), u = R(ue), c = ka();
137
+ function Ft({ title: e, tail: a, silent: n = !1 }) {
138
+ const r = M(), [s, l] = w(() => !n && me.size > 0), u = T(ue), c = kt();
139
139
  H(() => {
140
140
  if (!(!s || n))
141
141
  return me.add(c), () => {
@@ -154,7 +154,7 @@ function Ha({ title: e, tail: t, silent: n = !1 }) {
154
154
  u.store.set(c, {
155
155
  condensed: s,
156
156
  title: e?.label ?? null,
157
- back: t
157
+ back: a
158
158
  });
159
159
  }
160
160
  }, [
@@ -162,7 +162,7 @@ function Ha({ title: e, tail: t, silent: n = !1 }) {
162
162
  c,
163
163
  s,
164
164
  e,
165
- t,
165
+ a,
166
166
  n
167
167
  ]), O(() => {
168
168
  if (u != null)
@@ -175,14 +175,14 @@ function Ha({ title: e, tail: t, silent: n = !1 }) {
175
175
  const m = requestAnimationFrame(() => l(!1));
176
176
  return () => cancelAnimationFrame(m);
177
177
  }
178
- const o = new IntersectionObserver(([m]) => l(m != null && !m.isIntersecting), { root: Ee(i) });
178
+ const o = new IntersectionObserver(([m]) => l(m != null && !m.isIntersecting), { root: Ce(i) });
179
179
  return o.observe(i), () => o.disconnect();
180
180
  }, [i]);
181
- const d = r ? 0 : -Ya, f = r ? "blur(0px)" : `blur(${xe}px)`;
182
- return /* @__PURE__ */ a("div", {
181
+ const d = r ? 0 : -Ut, f = r ? "blur(0px)" : `blur(${xe}px)`;
182
+ return /* @__PURE__ */ t("div", {
183
183
  "data-basic-page-condense": "",
184
184
  className: "sticky top-0 z-20 h-0 overflow-visible",
185
- children: /* @__PURE__ */ a($, {
185
+ children: /* @__PURE__ */ t(V, {
186
186
  initial: !1,
187
187
  children: s && !(u?.adopt ?? !1) && /* @__PURE__ */ y(A.div, {
188
188
  initial: { opacity: 0 },
@@ -190,21 +190,21 @@ function Ha({ title: e, tail: t, silent: n = !1 }) {
190
190
  exit: { opacity: 0 },
191
191
  transition: le,
192
192
  className: "border-pho-secondary bg-pho-page/85 relative grid h-12 grid-cols-[1fr_minmax(0,auto)_1fr] items-center border-b px-3 backdrop-blur",
193
- children: [/* @__PURE__ */ a("div", {
193
+ children: [/* @__PURE__ */ t("div", {
194
194
  className: "flex min-w-0 items-center justify-start",
195
- children: t != null && /* @__PURE__ */ a(ve, {
195
+ children: a != null && /* @__PURE__ */ t(ve, {
196
196
  variant: "ghost",
197
197
  size: "sm",
198
- href: t.href,
199
- onClick: t.onClick,
200
- prefix: /* @__PURE__ */ a("span", {
198
+ href: a.href,
199
+ onClick: a.onClick,
200
+ prefix: /* @__PURE__ */ t("span", {
201
201
  className: "inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0",
202
- children: /* @__PURE__ */ a(ie, {})
202
+ children: /* @__PURE__ */ t(ie, {})
203
203
  }),
204
204
  className: "min-w-max",
205
- children: t.label
205
+ children: a.label
206
206
  })
207
- }), /* @__PURE__ */ a(A.span, {
207
+ }), /* @__PURE__ */ t(A.span, {
208
208
  initial: {
209
209
  opacity: 0,
210
210
  y: d,
@@ -222,7 +222,7 @@ function Ha({ title: e, tail: t, silent: n = !1 }) {
222
222
  },
223
223
  transition: {
224
224
  ...le,
225
- y: Qa
225
+ y: Yt
226
226
  },
227
227
  className: "text-pho-primary block max-w-full min-w-0 truncate text-center text-base font-medium",
228
228
  children: e?.label
@@ -231,58 +231,58 @@ function Ha({ title: e, tail: t, silent: n = !1 }) {
231
231
  })
232
232
  });
233
233
  }
234
- function Fa(e) {
234
+ function zt(e) {
235
235
  return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
236
236
  }
237
- function za(e) {
237
+ function Gt(e) {
238
238
  if (!(typeof e != "string" && typeof e != "number"))
239
- return Fa(String(e)) || void 0;
239
+ return zt(String(e)) || void 0;
240
240
  }
241
- function _e(e, t) {
241
+ function _e(e, a) {
242
242
  if (e !== "")
243
- return e ?? za(t);
243
+ return e ?? Gt(a);
244
244
  }
245
- var Ga = (e) => `basic-page-morph-${e}`, Va = { layout: I }, Be = 10, Le = {
245
+ var Wt = (e) => `basic-page-morph-${e}`, Vt = { layout: I }, Be = 10, Le = {
246
246
  delay: 0.2,
247
247
  duration: 0.12,
248
248
  ease: "easeOut"
249
- }, $a = {
249
+ }, $t = {
250
250
  duration: 0.18,
251
251
  ease: "easeOut"
252
- }, qa = -8, Wa = {
252
+ }, qt = -8, jt = {
253
253
  duration: 0.16,
254
254
  ease: "easeOut"
255
- }, ja = {
255
+ }, Kt = {
256
256
  delay: 0.14,
257
257
  duration: 0.16,
258
258
  ease: "easeOut"
259
- }, Ke = {
259
+ }, Xe = {
260
260
  duration: 0.12,
261
261
  ease: "easeOut"
262
262
  }, X = [];
263
- function Ka(e) {
264
- const t = C({ labels: e });
265
- t.current.labels = e, H(() => {
266
- const n = t.current;
263
+ function Xt(e) {
264
+ const a = E({ labels: e });
265
+ a.current.labels = e, H(() => {
266
+ const n = a.current;
267
267
  return X.push(n), () => {
268
268
  X.splice(X.indexOf(n), 1);
269
269
  };
270
270
  }, []);
271
271
  }
272
- function Xe() {
272
+ function Qe() {
273
273
  const [e] = w(() => {
274
- const t = X[X.length - 1];
275
- return t ? { labels: [...t.labels] } : null;
274
+ const a = X[X.length - 1];
275
+ return a ? { labels: [...a.labels] } : null;
276
276
  });
277
277
  return e;
278
278
  }
279
- var Ce = z(null), ge = {
279
+ var Ee = z(null), ge = {
280
280
  condensed: !1,
281
281
  title: null,
282
282
  back: null
283
283
  }, ue = z(null), de = () => () => {
284
284
  }, Me = () => ge;
285
- function Xa({ adopt: e = !0, children: t }) {
285
+ function Qt({ adopt: e = !0, children: a }) {
286
286
  const [n] = w(() => {
287
287
  let s = ge, l = null;
288
288
  const u = /* @__PURE__ */ new Set(), c = () => {
@@ -300,39 +300,39 @@ function Xa({ adopt: e = !0, children: t }) {
300
300
  return u.add(i), () => u.delete(i);
301
301
  }
302
302
  };
303
- }), r = q(() => ({
303
+ }), r = $(() => ({
304
304
  store: n,
305
305
  adopt: e
306
306
  }), [n, e]);
307
- return /* @__PURE__ */ a(ue.Provider, {
307
+ return /* @__PURE__ */ t(ue.Provider, {
308
308
  value: r,
309
- children: t
309
+ children: a
310
310
  });
311
311
  }
312
312
  function kn() {
313
- const e = R(ue);
313
+ const e = T(ue);
314
314
  return ce(e?.store.subscribe ?? de, e?.store.get ?? Me, e?.store.get ?? Me);
315
315
  }
316
- var le = ua, Qa = pa, Ya = -8;
317
- function Ee(e) {
316
+ var le = dt, Yt = mt, Ut = -8;
317
+ function Ce(e) {
318
318
  if (typeof getComputedStyle != "function") return null;
319
- for (let t = e.parentElement; t != null && t !== document.body; t = t.parentElement) {
320
- const { overflowY: n } = getComputedStyle(t);
321
- if (n === "auto" || n === "scroll") return t;
319
+ for (let a = e.parentElement; a != null && a !== document.body; a = a.parentElement) {
320
+ const { overflowY: n } = getComputedStyle(a);
321
+ if (n === "auto" || n === "scroll") return a;
322
322
  }
323
323
  return null;
324
324
  }
325
- var fe = /* @__PURE__ */ new Map(), Ua = 96;
326
- function Ja(e) {
327
- const t = e.closest("[data-basic-page-root]"), n = t?.querySelector("[data-basic-page-column]");
328
- return !t || !n ? 0 : n.getBoundingClientRect().left - t.getBoundingClientRect().left;
325
+ var fe = /* @__PURE__ */ new Map(), Jt = 96;
326
+ function Zt(e) {
327
+ const a = e.closest("[data-basic-page-root]"), n = a?.querySelector("[data-basic-page-column]");
328
+ return !a || !n ? 0 : n.getBoundingClientRect().left - a.getBoundingClientRect().left;
329
329
  }
330
- function Qe(e) {
331
- const [t] = w(() => {
330
+ function Ye(e) {
331
+ const [a] = w(() => {
332
332
  if (e == null) return !1;
333
333
  const r = fe.get(e);
334
- return r != null && r.visible && r.el.isConnected && Ja(r.el) <= Ua;
335
- }), n = C(null);
334
+ return r != null && r.visible && r.el.isConnected && Zt(r.el) <= Jt;
335
+ }), n = E(null);
336
336
  return O(() => {
337
337
  if (e == null || typeof IntersectionObserver > "u") return;
338
338
  const r = n.current;
@@ -347,11 +347,11 @@ function Qe(e) {
347
347
  s.disconnect(), fe.delete(e);
348
348
  };
349
349
  }, [e]), {
350
- fly: t,
350
+ fly: a,
351
351
  ref: n
352
352
  };
353
353
  }
354
- var Za = {
354
+ var ea = {
355
355
  fade: {
356
356
  initial: { opacity: 0 },
357
357
  animate: { opacity: 1 },
@@ -374,17 +374,17 @@ var Za = {
374
374
  slide: {
375
375
  initial: { x: "-100%" },
376
376
  animate: { x: 0 },
377
- transition: { x: ja }
377
+ transition: { x: Kt }
378
378
  }
379
379
  };
380
- function Ye({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: s, className: l, children: u }) {
381
- const [c, i] = w(!1), d = !n && s != null ? Za[s] : null;
380
+ function Ue({ morphId: e, fromClassName: a, fly: n, morphRef: r, arrival: s, className: l, children: u }) {
381
+ const [c, i] = w(!1), d = !n && s != null ? ea[s] : null;
382
382
  return /* @__PURE__ */ y(A.span, {
383
383
  ref: r,
384
- layoutId: Ga(e),
384
+ layoutId: Wt(e),
385
385
  initial: d?.initial,
386
386
  animate: d?.animate,
387
- transition: n ? Va : {
387
+ transition: n ? Vt : {
388
388
  layout: { duration: 0 },
389
389
  ...d?.transition
390
390
  },
@@ -393,20 +393,20 @@ function Ye({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: s, cla
393
393
  },
394
394
  onLayoutAnimationComplete: () => i(!1),
395
395
  className: p("relative inline-block", l),
396
- children: [u, c && /* @__PURE__ */ a(A.span, {
396
+ children: [u, c && /* @__PURE__ */ t(A.span, {
397
397
  "aria-hidden": !0,
398
398
  initial: { opacity: 1 },
399
399
  animate: { opacity: 0 },
400
- transition: $a,
400
+ transition: $t,
401
401
  onAnimationComplete: () => i(!1),
402
- className: p("absolute inset-0", t),
402
+ className: p("absolute inset-0", a),
403
403
  children: u
404
404
  })]
405
405
  });
406
406
  }
407
- var De = "max-w-full min-w-0 truncate align-top";
408
- function et({ id: e, morphId: t, enter: n, trailing: r, className: s, children: l, ...u }) {
409
- const c = _e(e, l), i = M(), d = Se(n === !0), f = Qe(t), o = Xe(), m = !i && (t != null || d === !0), h = d || o != null ? "rise" : void 0, g = R(Ce), b = C(null);
407
+ var De = "max-w-full min-w-0 truncate align-top", He = "flex shrink-0 items-center";
408
+ function ta({ id: e, morphId: a, enter: n, trailing: r, className: s, children: l, ...u }) {
409
+ const c = _e(e, l), i = M(), d = ke(n === !0), f = Ye(a), o = Qe(), m = !i && (a != null || d === !0), h = d || o != null ? "rise" : void 0, g = T(Ee), b = E(null);
410
410
  H(() => {
411
411
  if (g != null)
412
412
  return g.setTitle({
@@ -418,15 +418,15 @@ function et({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
418
418
  H(() => {
419
419
  X.length > 0 && v(!1);
420
420
  }, []);
421
- const _ = r != null && r !== !1, x = !i && (t != null ? f.fly || h != null : d === !0), E = t != null && !i ? /* @__PURE__ */ a(Ye, {
422
- morphId: t,
421
+ const _ = r != null && r !== !1, x = !i && (a != null ? f.fly || h != null : d === !0), C = a != null && !i ? /* @__PURE__ */ t(Ue, {
422
+ morphId: a,
423
423
  fromClassName: "text-pho-secondary",
424
424
  fly: f.fly,
425
425
  morphRef: f.ref,
426
426
  arrival: h,
427
427
  className: De,
428
428
  children: l
429
- }) : d && !i ? /* @__PURE__ */ a(A.span, {
429
+ }) : d && !i ? /* @__PURE__ */ t(A.span, {
430
430
  initial: {
431
431
  opacity: 0,
432
432
  y: j
@@ -441,7 +441,7 @@ function et({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
441
441
  },
442
442
  className: p("inline-block", De),
443
443
  children: l
444
- }) : _ ? /* @__PURE__ */ a("span", {
444
+ }) : _ ? /* @__PURE__ */ t("span", {
445
445
  className: "min-w-0 truncate",
446
446
  children: l
447
447
  }) : l;
@@ -450,14 +450,14 @@ function et({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
450
450
  "data-basic-page-title": "",
451
451
  className: p("text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-medium", m ? "whitespace-nowrap" : "truncate", s),
452
452
  ...u,
453
- ref: (T) => {
454
- b.current = T;
453
+ ref: (R) => {
454
+ b.current = R;
455
455
  const P = u.ref;
456
- typeof P == "function" ? P(T) : P != null && (P.current = T);
456
+ typeof P == "function" ? P(R) : P != null && (P.current = R);
457
457
  },
458
458
  children: [_ ? /* @__PURE__ */ y("span", {
459
459
  className: "flex max-w-full min-w-0 items-center gap-2",
460
- children: [E, x ? /* @__PURE__ */ a(A.span, {
460
+ children: [C, x ? /* @__PURE__ */ t(A.span, {
461
461
  "data-basic-page-title-trailing": "",
462
462
  initial: {
463
463
  opacity: 0,
@@ -471,36 +471,36 @@ function et({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
471
471
  y: I,
472
472
  opacity: D
473
473
  },
474
- className: "shrink-0",
474
+ className: He,
475
475
  children: r
476
- }) : /* @__PURE__ */ a("span", {
476
+ }) : /* @__PURE__ */ t("span", {
477
477
  "data-basic-page-title-trailing": "",
478
- className: "shrink-0",
478
+ className: He,
479
479
  children: r
480
480
  })]
481
- }) : E, N && /* @__PURE__ */ a(A.span, {
481
+ }) : C, N && /* @__PURE__ */ t(A.span, {
482
482
  "aria-hidden": !0,
483
483
  initial: { opacity: 1 },
484
484
  animate: { opacity: 0 },
485
- transition: Ke,
485
+ transition: Xe,
486
486
  onAnimationComplete: () => v(!1),
487
- className: p("text-pho-secondary pointer-events-none absolute inline-flex items-center", Ht),
488
- children: /* @__PURE__ */ a(ie, {})
487
+ className: p("text-pho-secondary pointer-events-none absolute inline-flex items-center", Fa),
488
+ children: /* @__PURE__ */ t(ie, {})
489
489
  })]
490
490
  });
491
491
  }
492
- var Ue = z(!1);
493
- function at() {
494
- const e = R(Ue), t = M(), [n] = w(() => e && !t);
492
+ var Je = z(!1);
493
+ function aa() {
494
+ const e = T(Je), a = M(), [n] = w(() => e && !a);
495
495
  return n;
496
496
  }
497
- var tt = {
497
+ var na = {
498
498
  height: 0,
499
499
  opacity: 0,
500
500
  paddingTop: 0,
501
501
  paddingBottom: 0,
502
502
  borderTopWidth: 0
503
- }, nt = {
503
+ }, ra = {
504
504
  y: I,
505
505
  opacity: D,
506
506
  height: I,
@@ -508,8 +508,8 @@ var tt = {
508
508
  paddingBottom: I,
509
509
  borderTopWidth: I
510
510
  };
511
- function ke() {
512
- const e = at(), t = Sa(), n = M();
511
+ function Se() {
512
+ const e = aa(), a = Tt(), n = M();
513
513
  return {
514
514
  initial: e ? {
515
515
  opacity: 0,
@@ -519,52 +519,52 @@ function ke() {
519
519
  opacity: 1,
520
520
  y: 0
521
521
  },
522
- exit: tt,
523
- transition: n ? { duration: 0 } : nt,
524
- leaving: !t
522
+ exit: na,
523
+ transition: n ? { duration: 0 } : ra,
524
+ leaving: !a
525
525
  };
526
526
  }
527
- var rt = typeof process < "u" && process.env.NODE_ENV !== "production";
528
- function Je(e, t, n, r) {
527
+ var ia = typeof process < "u" && process.env.NODE_ENV !== "production";
528
+ function Ze(e, a, n, r) {
529
529
  O(() => {
530
- if (!rt || e.current == null || typeof getComputedStyle != "function") return;
530
+ if (!ia || e.current == null || typeof getComputedStyle != "function") return;
531
531
  const s = (u) => {
532
532
  const c = getComputedStyle(u).rowGap;
533
533
  return c === "" || c === "normal" ? null : parseFloat(c);
534
534
  }, l = s(e.current);
535
- l != null && l !== n && console.warn(`[BasicPage.${t}] spaced at ${l}px instead of ${n}px. Spacing is the system's: Stack gap-10 between blocks, a block gap-3, Fields gap-5. Remove the class and move the wrapper instead.`, e.current);
535
+ l != null && l !== n && console.warn(`[BasicPage.${a}] spaced at ${l}px instead of ${n}px. Spacing is the system's: Stack gap-10 between blocks, a block gap-3, Fields gap-5. Remove the class and move the wrapper instead.`, e.current);
536
536
  for (const u of Array.from(e.current.children)) {
537
537
  const c = r(u);
538
538
  if (c == null || getComputedStyle(u).display === "contents") continue;
539
539
  const i = s(u);
540
- i != null && i !== c && console.warn(`[BasicPage.${t}] a child is spaced at ${i}px instead of ${c}px. Spacing is the system's: Stack gap-10 between blocks, a block gap-3, Fields gap-5. Remove the class and move the wrapper instead.`, u);
540
+ i != null && i !== c && console.warn(`[BasicPage.${a}] a child is spaced at ${i}px instead of ${c}px. Spacing is the system's: Stack gap-10 between blocks, a block gap-3, Fields gap-5. Remove the class and move the wrapper instead.`, u);
541
541
  }
542
542
  });
543
543
  }
544
- function it(e) {
545
- return Array.from(e.querySelectorAll("[data-basic-page-stack], [data-basic-page-title], [data-basic-page-header]")).some((t) => t.closest('[aria-busy="true"]') != null);
544
+ function sa(e) {
545
+ return Array.from(e.querySelectorAll("[data-basic-page-stack], [data-basic-page-title], [data-basic-page-header]")).some((a) => a.closest('[aria-busy="true"]') != null);
546
546
  }
547
- var st = () => !1, lt = () => !0;
548
- function ot() {
549
- return ce(de, st, lt);
547
+ var la = () => !1, oa = () => !0;
548
+ function ca() {
549
+ return ce(de, la, oa);
550
550
  }
551
- function Se(e, t = !1) {
552
- const n = R(qe), r = ot(), [s] = w(() => {
551
+ function ke(e, a = !1) {
552
+ const n = T(qe), r = ca(), [s] = w(() => {
553
553
  if (r || !e || n?.prerendered) return !1;
554
- if (t) return !0;
554
+ if (a) return !0;
555
555
  if (document.querySelector("[data-basic-page-prerendered]") != null) return !1;
556
556
  const l = n ? n.ref.current : document;
557
- return l == null || !it(l);
557
+ return l == null || !sa(l);
558
558
  });
559
559
  return s;
560
560
  }
561
- function re({ enter: e, className: t, children: n, ref: r, ...s }) {
562
- const l = M(), u = C(null);
563
- Je(u, "Stack", 40, (m) => m.hasAttribute("data-basic-page-fields") ? 20 : m.hasAttribute("data-basic-page-card") || m.hasAttribute("data-basic-page-onboard") || m.hasAttribute("data-basic-page-header") || m.hasAttribute("data-basic-page-columns") || m.hasAttribute("data-data-table") ? null : 12);
564
- const c = Se(e ?? !0, e === !0), i = s["aria-busy"], d = i === !0 || i === "true", f = C(d), o = f.current && !d;
561
+ function re({ enter: e, className: a, children: n, ref: r, ...s }) {
562
+ const l = M(), u = E(null);
563
+ Ze(u, "Stack", 40, (m) => m.hasAttribute("data-basic-page-fields") ? 20 : m.hasAttribute("data-basic-page-card") || m.hasAttribute("data-basic-page-onboard") || m.hasAttribute("data-basic-page-header") || m.hasAttribute("data-basic-page-columns") || m.hasAttribute("data-data-table") ? null : 12);
564
+ const c = ke(e ?? !0, e === !0), i = s["aria-busy"], d = i === !0 || i === "true", f = E(d), o = f.current && !d;
565
565
  return O(() => {
566
566
  f.current = d;
567
- }), /* @__PURE__ */ a(A.div, {
567
+ }), /* @__PURE__ */ t(A.div, {
568
568
  ref: (m) => {
569
569
  u.current = m, typeof r == "function" ? r(m) : r != null && (r.current = m);
570
570
  },
@@ -581,18 +581,18 @@ function re({ enter: e, className: t, children: n, ref: r, ...s }) {
581
581
  y: I,
582
582
  opacity: D
583
583
  },
584
- className: p("mt-7 flex min-w-0 flex-col gap-10", "[&:has(>*:first-child:not([data-basic-page-callout])>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child:not([data-basic-page-callout])>h2:first-child)]:mt-6 [&:has(>[data-basic-page-header]:first-child)]:mt-6 [&:has(>h2:first-child)]:mt-6", "*:min-w-0 [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:flex [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:flex-col [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:gap-3", t),
584
+ className: p("mt-7 flex min-w-0 flex-col gap-10", "[&:has(>*:first-child:not([data-basic-page-callout])>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child:not([data-basic-page-callout])>h2:first-child)]:mt-6 [&:has(>[data-basic-page-header]:first-child)]:mt-6 [&:has(>h2:first-child)]:mt-6", "*:min-w-0 [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:flex [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:flex-col [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:gap-3", a),
585
585
  ...s,
586
- children: /* @__PURE__ */ a(Ue.Provider, {
586
+ children: /* @__PURE__ */ t(Je.Provider, {
587
587
  value: o,
588
588
  children: n
589
589
  })
590
590
  });
591
591
  }
592
- var He = "@container grid min-w-0 grid-cols-[minmax(0,1fr)_auto_auto] mb-3 gap-y-0 [&>:not([data-basic-page-search]):not([data-basic-page-header-action])]:col-start-1 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:row-span-2 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:self-center [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):not(:nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-end [&>:not([data-basic-page-search]):not([data-basic-page-header-action]):not(:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-start [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0";
593
- function ct({ enter: e, className: t, ...n }) {
592
+ var Fe = "@container grid min-w-0 grid-cols-[minmax(0,1fr)_auto_auto] mb-3 gap-y-0 [&>:not([data-basic-page-search]):not([data-basic-page-header-action])]:col-start-1 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:row-span-2 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:self-center [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):not(:nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-end [&>:not([data-basic-page-search]):not([data-basic-page-header-action]):not(:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-start [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0";
593
+ function ua({ enter: e, className: a, ...n }) {
594
594
  const r = M();
595
- return Se(e === !0) && !r ? /* @__PURE__ */ a(A.div, {
595
+ return ke(e === !0) && !r ? /* @__PURE__ */ t(A.div, {
596
596
  initial: {
597
597
  opacity: 0,
598
598
  y: j
@@ -605,86 +605,86 @@ function ct({ enter: e, className: t, ...n }) {
605
605
  y: I,
606
606
  opacity: D
607
607
  },
608
- className: p(He, t),
608
+ className: p(Fe, a),
609
609
  ...n,
610
610
  "data-basic-page-header": ""
611
- }) : /* @__PURE__ */ a("div", {
612
- className: p(He, t),
611
+ }) : /* @__PURE__ */ t("div", {
612
+ className: p(Fe, a),
613
613
  ...n,
614
614
  "data-basic-page-header": ""
615
615
  });
616
616
  }
617
- function ut({ className: e, ...t }) {
618
- return /* @__PURE__ */ a("div", {
617
+ function da({ className: e, ...a }) {
618
+ return /* @__PURE__ */ t("div", {
619
619
  "data-basic-page-header-action": "",
620
620
  className: p("flex items-center gap-2", "[[data-basic-page-header]>&]:col-start-3 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:mr-5 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:self-start [[data-basic-page-header]>&]:justify-self-end", "[[data-basic-page-callout]_[data-basic-page-header]>&]:mr-0", e),
621
- ...t
621
+ ...a
622
622
  });
623
623
  }
624
- function dt({ id: e, className: t, children: n, ...r }) {
624
+ function pa({ id: e, className: a, children: n, ...r }) {
625
625
  const s = _e(e, n);
626
- return /* @__PURE__ */ a("h2", {
626
+ return /* @__PURE__ */ t("h2", {
627
627
  id: s,
628
- className: p("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", "mb-3 [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-header]>&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0", t),
628
+ className: p("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", "mb-3 [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-header]>&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0", a),
629
629
  ...r,
630
630
  children: n
631
631
  });
632
632
  }
633
- function Ze({ className: e, ...t }) {
634
- return /* @__PURE__ */ a("p", {
633
+ function et({ className: e, ...a }) {
634
+ return /* @__PURE__ */ t("p", {
635
635
  className: p("text-display-xs text-pho-description px-5 font-normal", e),
636
- ...t
636
+ ...a
637
637
  });
638
638
  }
639
- function pt({ one: e, other: t, ...n }) {
640
- const r = R(ye), s = ce(r?.subscribe ?? de, () => r?.get().api ?? null, () => null);
639
+ function ma({ one: e, other: a, ...n }) {
640
+ const r = T(ye), s = ce(r?.subscribe ?? de, () => r?.get().api ?? null, () => null);
641
641
  if (s == null) return null;
642
- const l = s.query.trim() !== "" ? `${s.matched} of ${s.total}.` : `${s.total} ${s.total === 1 ? e : t}.`;
643
- return /* @__PURE__ */ a(Ze, {
642
+ const l = s.query.trim() !== "" ? `${s.matched} of ${s.total}.` : `${s.total} ${s.total === 1 ? e : a}.`;
643
+ return /* @__PURE__ */ t(et, {
644
644
  ...n,
645
645
  children: l
646
646
  });
647
647
  }
648
- function mt({ className: e, ...t }) {
649
- return /* @__PURE__ */ a("p", {
648
+ function fa({ className: e, ...a }) {
649
+ return /* @__PURE__ */ t("p", {
650
650
  className: p("text-pho-description px-5 text-xs font-normal", "mt-3 [[data-basic-page-callout]_&]:mt-0 [[data-basic-page-stack]>*>&]:mt-0", e),
651
- ...t
651
+ ...a
652
652
  });
653
653
  }
654
- function ft({ animateHeight: e, className: t, children: n, ...r }) {
655
- const s = /* @__PURE__ */ a($, { children: ee.toArray(n) });
656
- return e ? /* @__PURE__ */ a("div", {
657
- className: p(Ae, "min-h-0 gap-0 overflow-hidden", t),
654
+ function ha({ animateHeight: e, className: a, children: n, ...r }) {
655
+ const s = /* @__PURE__ */ t(V, { children: ee.toArray(n) });
656
+ return e ? /* @__PURE__ */ t("div", {
657
+ className: p(Ae, "min-h-0 gap-0", a),
658
658
  ...r,
659
659
  "data-basic-page-card": "",
660
- children: /* @__PURE__ */ a(Na, {
660
+ children: /* @__PURE__ */ t(At, {
661
661
  transition: I,
662
662
  className: se,
663
663
  children: s
664
664
  })
665
- }) : /* @__PURE__ */ a("div", {
666
- className: p($e, t),
665
+ }) : /* @__PURE__ */ t("div", {
666
+ className: p($e, a),
667
667
  ...r,
668
668
  "data-basic-page-card": "",
669
669
  children: s
670
670
  });
671
671
  }
672
- function ht({ className: e, ...t }) {
673
- const { leaving: n, ...r } = ke();
674
- return /* @__PURE__ */ a(A.div, {
672
+ function ga({ className: e, ...a }) {
673
+ const { leaving: n, ...r } = Se();
674
+ return /* @__PURE__ */ t(A.div, {
675
675
  ...r,
676
- className: p(Ta, n && "overflow-hidden", e),
677
- ...t
676
+ className: p(Pt, n && "overflow-hidden", e),
677
+ ...a
678
678
  });
679
679
  }
680
- function gt({ divided: e = !1, className: t, ...n }) {
681
- return /* @__PURE__ */ a("div", {
682
- className: p(e ? Ia : Pa, t),
680
+ function ba({ divided: e = !1, className: a, ...n }) {
681
+ return /* @__PURE__ */ t("div", {
682
+ className: p(e ? Ot : It, a),
683
683
  ...n
684
684
  });
685
685
  }
686
- function bt({ className: e, icon: t, children: n, ...r }) {
687
- if (t == null || t === !1 || t === !0) return /* @__PURE__ */ a("div", {
686
+ function va({ className: e, icon: a, children: n, ...r }) {
687
+ if (a == null || a === !1 || a === !0) return /* @__PURE__ */ t("div", {
688
688
  className: p(Ie, e),
689
689
  ...r,
690
690
  "data-basic-page-callout": "",
@@ -697,39 +697,39 @@ function bt({ className: e, icon: t, children: n, ...r }) {
697
697
  "data-basic-page-callout": "",
698
698
  children: [/* @__PURE__ */ y("div", {
699
699
  className: "relative",
700
- children: [/* @__PURE__ */ a("div", {
700
+ children: [/* @__PURE__ */ t("div", {
701
701
  className: "min-w-0 pr-16",
702
702
  children: s
703
- }), /* @__PURE__ */ a("div", {
703
+ }), /* @__PURE__ */ t("div", {
704
704
  "aria-hidden": !0,
705
705
  className: "text-pho-primary pointer-events-none absolute top-0 right-0 size-14 opacity-[0.275] [&>svg]:size-full",
706
- children: t
706
+ children: a
707
707
  })]
708
708
  }), l]
709
709
  });
710
710
  }
711
- function vt({ id: e, className: t, children: n, ...r }) {
711
+ function ya({ id: e, className: a, children: n, ...r }) {
712
712
  const s = _e(e, n);
713
- return /* @__PURE__ */ a("h2", {
713
+ return /* @__PURE__ */ t("h2", {
714
714
  id: s,
715
- className: p("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
715
+ className: p("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", a),
716
716
  ...r,
717
717
  children: n
718
718
  });
719
719
  }
720
- function yt({ className: e, ...t }) {
721
- return /* @__PURE__ */ a("p", {
720
+ function xa({ className: e, ...a }) {
721
+ return /* @__PURE__ */ t("p", {
722
722
  className: p("text-display-xs text-pho-description font-normal", e),
723
- ...t
723
+ ...a
724
724
  });
725
725
  }
726
- var ea = z(null), aa = z(!1);
727
- function xt({ className: e, children: t, ...n }) {
726
+ var tt = z(null), at = z(!1);
727
+ function wa({ className: e, children: a, ...n }) {
728
728
  let r = !1;
729
- const s = ee.toArray(t).map((l, u) => {
729
+ const s = ee.toArray(a).map((l, u) => {
730
730
  if (!Ve(l)) return l;
731
731
  let c;
732
- return l.props.done ? c = "done" : r ? c = "upcoming" : (r = !0, c = l.props.working ? "working" : l.props.pending ? "pending" : "current"), /* @__PURE__ */ a(ea.Provider, {
732
+ return l.props.done ? c = "done" : r ? c = "upcoming" : (r = !0, c = l.props.working ? "working" : l.props.pending ? "pending" : "current"), /* @__PURE__ */ t(tt.Provider, {
733
733
  value: {
734
734
  number: u + 1,
735
735
  state: c
@@ -737,48 +737,48 @@ function xt({ className: e, children: t, ...n }) {
737
737
  children: l
738
738
  }, l.key ?? u);
739
739
  });
740
- return /* @__PURE__ */ a("ol", {
740
+ return /* @__PURE__ */ t("ol", {
741
741
  className: p($e, "m-0 list-none p-0", e),
742
742
  ...n,
743
743
  "data-basic-page-onboard": "",
744
744
  children: s
745
745
  });
746
746
  }
747
- var wt = "relative grid size-5 shrink-0 place-items-center rounded-full border text-xs font-medium tabular-nums transition-[background-color,border-color,color] duration-200 ease-out *:[grid-area:1/1]", Nt = {
747
+ var Na = "relative grid size-5 shrink-0 place-items-center rounded-full border text-xs font-medium tabular-nums transition-[background-color,border-color,color] duration-200 ease-out *:[grid-area:1/1]", Aa = {
748
748
  done: "border-pho-ink text-pho-primary",
749
749
  current: "bg-pho-brand-solid text-pho-on-brand border-transparent",
750
750
  working: "border-transparent text-pho-primary",
751
751
  pending: "border-pho-ink text-pho-primary border-dashed",
752
752
  upcoming: "border-pho-primary text-pho-description"
753
- }, At = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink opacity-30", _t = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink border-r-transparent border-b-transparent border-l-transparent animate-pho-spinner", Ct = {
753
+ }, _a = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink opacity-30", Ea = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink border-r-transparent border-b-transparent border-l-transparent animate-pho-spinner", Ca = {
754
754
  done: "Done.",
755
755
  working: "In progress.",
756
756
  pending: "Waiting."
757
757
  };
758
- function Et({ icon: e, aside: t, title: n, description: r, done: s, working: l, pending: u, className: c, children: i, ...d }) {
759
- const f = R(ea), o = f?.state ?? (s ? "done" : l ? "working" : u ? "pending" : "current"), m = M(), h = o === "current" || o === "working" || o === "pending", g = o === "upcoming", b = Ct[o], N = i != null && i !== !1, v = e != null && e !== !1, _ = t != null && t !== !1;
760
- return /* @__PURE__ */ a("li", {
758
+ function Sa({ icon: e, aside: a, title: n, description: r, done: s, working: l, pending: u, className: c, children: i, ...d }) {
759
+ const f = T(tt), o = f?.state ?? (s ? "done" : l ? "working" : u ? "pending" : "current"), m = M(), h = o === "current" || o === "working" || o === "pending", g = o === "upcoming", b = Ca[o], N = i != null && i !== !1, v = e != null && e !== !1, _ = a != null && a !== !1;
760
+ return /* @__PURE__ */ t("li", {
761
761
  "data-basic-page-step": o,
762
762
  "aria-current": h ? "step" : void 0,
763
763
  className: p("relative m-0 grid min-w-0 grid-cols-[auto_minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)] items-center gap-x-3 px-5 py-4", "transition-[background-color] duration-200 ease-out first:rounded-t-[calc(0.75rem-1px)] last:rounded-b-[calc(0.75rem-1px)] motion-reduce:transition-none", h && "bg-pho-page", c),
764
764
  ...d,
765
- children: /* @__PURE__ */ y(aa.Provider, {
765
+ children: /* @__PURE__ */ y(at.Provider, {
766
766
  value: !0,
767
767
  children: [
768
768
  /* @__PURE__ */ y("span", {
769
769
  "aria-hidden": !0,
770
- className: p(wt, Nt[o], "col-start-1 row-start-1"),
771
- children: [/* @__PURE__ */ a($, {
770
+ className: p(Na, Aa[o], "col-start-1 row-start-1"),
771
+ children: [/* @__PURE__ */ t(V, {
772
772
  initial: !1,
773
- children: o === "done" ? /* @__PURE__ */ a(A.span, {
774
- ...te(m),
773
+ children: o === "done" ? /* @__PURE__ */ t(A.span, {
774
+ ...ae(m),
775
775
  className: "flex",
776
- children: /* @__PURE__ */ a(Aa, { className: "size-3" })
777
- }, "check") : /* @__PURE__ */ a(A.span, {
778
- ...te(m),
776
+ children: /* @__PURE__ */ t(_t, { className: "size-3" })
777
+ }, "check") : /* @__PURE__ */ t(A.span, {
778
+ ...ae(m),
779
779
  children: f?.number ?? 1
780
780
  }, "number")
781
- }), o === "working" ? /* @__PURE__ */ y(Ne, { children: [/* @__PURE__ */ a("span", { className: At }), /* @__PURE__ */ a("span", { className: _t })] }) : null]
781
+ }), o === "working" ? /* @__PURE__ */ y(Ne, { children: [/* @__PURE__ */ t("span", { className: _a }), /* @__PURE__ */ t("span", { className: Ea })] }) : null]
782
782
  }),
783
783
  /* @__PURE__ */ y("div", {
784
784
  "data-basic-page-step-title": "",
@@ -788,7 +788,7 @@ function Et({ icon: e, aside: t, title: n, description: r, done: s, working: l,
788
788
  children: [b, " "]
789
789
  }) : null, n]
790
790
  }),
791
- /* @__PURE__ */ a(Re, {
791
+ /* @__PURE__ */ t(Te, {
792
792
  show: h,
793
793
  gap: "none",
794
794
  clip: !1,
@@ -796,32 +796,32 @@ function Et({ icon: e, aside: t, title: n, description: r, done: s, working: l,
796
796
  children: /* @__PURE__ */ y("div", {
797
797
  "data-basic-page-step-body": "",
798
798
  className: "flex min-w-0 flex-1 flex-col",
799
- children: [r ? /* @__PURE__ */ a("div", {
799
+ children: [r ? /* @__PURE__ */ t("div", {
800
800
  className: "text-display-xs text-pho-description font-normal",
801
801
  children: r
802
- }) : null, N ? /* @__PURE__ */ a("div", {
802
+ }) : null, N ? /* @__PURE__ */ t("div", {
803
803
  className: "mt-auto flex flex-wrap items-center gap-2 pt-3",
804
804
  children: i
805
805
  }) : null]
806
806
  })
807
807
  }),
808
- o === "done" && N ? /* @__PURE__ */ a("div", {
808
+ o === "done" && N ? /* @__PURE__ */ t("div", {
809
809
  className: "col-start-3 row-start-1 flex min-w-0 items-center gap-2",
810
810
  children: i
811
- }) : _ ? /* @__PURE__ */ a($, {
811
+ }) : _ ? /* @__PURE__ */ t(V, {
812
812
  initial: !1,
813
- children: h ? /* @__PURE__ */ a(A.div, {
814
- ...te(m),
813
+ children: h ? /* @__PURE__ */ t(A.div, {
814
+ ...ae(m),
815
815
  className: "col-start-3 row-span-2 row-start-1 self-start",
816
- children: t
816
+ children: a
817
817
  }, "aside") : null
818
- }) : v ? /* @__PURE__ */ a($, {
818
+ }) : v ? /* @__PURE__ */ t(V, {
819
819
  initial: !1,
820
- children: h ? /* @__PURE__ */ a(A.div, {
820
+ children: h ? /* @__PURE__ */ t(A.div, {
821
821
  "aria-hidden": !0,
822
- ...te(m),
822
+ ...ae(m),
823
823
  className: "pointer-events-none col-start-3 row-span-2 row-start-1 size-14 self-start",
824
- children: /* @__PURE__ */ a("div", {
824
+ children: /* @__PURE__ */ t("div", {
825
825
  className: "text-pho-primary size-full opacity-[0.275] [&>svg]:size-full",
826
826
  children: e
827
827
  })
@@ -831,43 +831,43 @@ function Et({ icon: e, aside: t, title: n, description: r, done: s, working: l,
831
831
  })
832
832
  });
833
833
  }
834
- function kt({ label: e, description: t, htmlFor: n, stacked: r = !1, className: s, children: l, ...u }) {
835
- const { leaving: c, ...i } = ke();
834
+ function ka({ label: e, description: a, htmlFor: n, stacked: r = !1, className: s, children: l, ...u }) {
835
+ const { leaving: c, ...i } = Se();
836
836
  return /* @__PURE__ */ y(A.div, {
837
837
  ...i,
838
- className: p(Ra, r && "sm:flex-col sm:items-stretch sm:justify-start sm:gap-3", c && "overflow-hidden", s),
838
+ className: p(Rt, r && "sm:flex-col sm:items-stretch sm:justify-start sm:gap-3", c && "overflow-hidden", s),
839
839
  ...u,
840
840
  children: [/* @__PURE__ */ y("div", {
841
841
  className: "min-w-0",
842
- children: [n ? /* @__PURE__ */ a("label", {
842
+ children: [n ? /* @__PURE__ */ t("label", {
843
843
  htmlFor: n,
844
844
  className: "text-pho-primary block text-base font-normal",
845
845
  children: e
846
- }) : /* @__PURE__ */ a("div", {
846
+ }) : /* @__PURE__ */ t("div", {
847
847
  className: "text-pho-primary text-base font-normal",
848
848
  children: e
849
- }), t ? /* @__PURE__ */ a("p", {
849
+ }), a ? /* @__PURE__ */ t("p", {
850
850
  className: "text-pho-description text-xs",
851
- children: t
851
+ children: a
852
852
  }) : null]
853
- }), /* @__PURE__ */ a("div", {
853
+ }), /* @__PURE__ */ t("div", {
854
854
  className: p("flex w-full min-w-0 items-center gap-2 sm:w-auto", r && "sm:w-full"),
855
855
  children: l
856
856
  })]
857
857
  });
858
858
  }
859
- function St({ className: e, ...t }) {
860
- const n = R(aa);
861
- return /* @__PURE__ */ a("p", {
859
+ function Ta({ className: e, ...a }) {
860
+ const n = T(at);
861
+ return /* @__PURE__ */ t("p", {
862
862
  className: p("text-pho-description max-w-full min-w-0 truncate", n ? "text-display-xs font-normal" : "text-base", e),
863
- ...t
863
+ ...a
864
864
  });
865
865
  }
866
- function Rt({ error: e, show: t, className: n, children: r, ...s }) {
867
- const l = M(), u = R(Q), c = e ?? u?.error ?? void 0;
868
- return /* @__PURE__ */ a($, {
866
+ function Ra({ error: e, show: a, className: n, children: r, ...s }) {
867
+ const l = M(), u = T(Q), c = e ?? u?.error ?? void 0;
868
+ return /* @__PURE__ */ t(V, {
869
869
  initial: !1,
870
- children: (t ?? !0) && (c != null || r != null) ? /* @__PURE__ */ a(A.div, {
870
+ children: (a ?? !0) && (c != null || r != null) ? /* @__PURE__ */ t(A.div, {
871
871
  "data-basic-page-alert": "",
872
872
  className: "overflow-hidden",
873
873
  initial: {
@@ -886,7 +886,7 @@ function Rt({ error: e, show: t, className: n, children: r, ...s }) {
886
886
  height: I,
887
887
  opacity: D
888
888
  },
889
- children: /* @__PURE__ */ a(ma, {
889
+ children: /* @__PURE__ */ t(ft, {
890
890
  error: c,
891
891
  className: p("px-5 pb-3", n),
892
892
  ...s,
@@ -895,31 +895,31 @@ function Rt({ error: e, show: t, className: n, children: r, ...s }) {
895
895
  }) : null
896
896
  });
897
897
  }
898
- function Sn() {
899
- return R(Q)?.requestSave ?? null;
898
+ function Tn() {
899
+ return T(Q)?.requestSave ?? null;
900
900
  }
901
- var Rn = 800, he = wa.createToastManager(), Q = z(null);
902
- function Tt({ action: e, errors: t, autoSave: n = !1, className: r, children: s, onChange: l, onBlur: u, ...c }) {
903
- const [i, d] = w(!1), [f, o] = w(!1), [m, h] = w(null), [g, b] = w(t ?? {}), [N, v] = w(null), _ = C(null), x = C(null), E = C(null), T = C(!1), P = C(!1), F = C(null), G = C(async () => {
901
+ var Rn = 800, he = Nt.createToastManager(), Q = z(null);
902
+ function Pa({ action: e, errors: a, autoSave: n = !1, className: r, children: s, onChange: l, onBlur: u, ...c }) {
903
+ const [i, d] = w(!1), [f, o] = w(!1), [m, h] = w(null), [g, b] = w(a ?? {}), [N, v] = w(null), _ = E(null), x = E(null), C = E(null), R = E(!1), P = E(!1), F = E(null), G = E(async () => {
904
904
  });
905
905
  O(() => () => {
906
906
  x.current != null && clearTimeout(x.current);
907
907
  }, []);
908
908
  const Y = async () => {
909
- const S = _.current;
910
- if (S == null || e == null) return;
911
- if (T.current) {
909
+ const k = _.current;
910
+ if (k == null || e == null) return;
911
+ if (R.current) {
912
912
  P.current = !0;
913
913
  return;
914
914
  }
915
- if (!S.checkValidity()) return;
916
- const k = Object.fromEntries(new FormData(S).entries()), B = E.current;
917
- T.current = !0, v({
915
+ if (!k.checkValidity()) return;
916
+ const S = Object.fromEntries(new FormData(k).entries()), B = C.current;
917
+ R.current = !0, v({
918
918
  field: B,
919
919
  phase: "saving"
920
920
  }), h(null);
921
921
  try {
922
- const L = (await e(k))?.errors;
922
+ const L = (await e(S))?.errors;
923
923
  if (L != null && Object.keys(L).length > 0) {
924
924
  b(L), v(null);
925
925
  return;
@@ -942,17 +942,17 @@ function Tt({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
942
942
  }
943
943
  });
944
944
  } finally {
945
- T.current = !1, P.current && (P.current = !1, G.current());
945
+ R.current = !1, P.current && (P.current = !1, G.current());
946
946
  }
947
947
  };
948
948
  G.current = Y;
949
- const V = () => {
949
+ const W = () => {
950
950
  x.current != null && clearTimeout(x.current), x.current = setTimeout(() => {
951
951
  x.current = null, G.current();
952
952
  }, 800);
953
- }, U = q(() => n ? (S) => {
954
- S != null && (E.current = S), o(!0), V();
955
- } : null, [n]), ae = q(() => ({
953
+ }, U = $(() => n ? (k) => {
954
+ k != null && (C.current = k), o(!0), W();
955
+ } : null, [n]), te = $(() => ({
956
956
  pending: i,
957
957
  dirty: f,
958
958
  error: m,
@@ -965,46 +965,46 @@ function Tt({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
965
965
  N,
966
966
  U
967
967
  ]);
968
- return /* @__PURE__ */ a(Q.Provider, {
969
- value: ae,
970
- children: /* @__PURE__ */ a(_a, {
968
+ return /* @__PURE__ */ t(Q.Provider, {
969
+ value: te,
970
+ children: /* @__PURE__ */ t(Et, {
971
971
  errors: g,
972
- onFormSubmit: async (S) => {
972
+ onFormSubmit: async (k) => {
973
973
  if (e != null) {
974
974
  d(!0), h(null);
975
975
  try {
976
- const k = (await e(S))?.errors;
977
- if (k != null && Object.keys(k).length > 0) {
978
- b(k);
976
+ const S = (await e(k))?.errors;
977
+ if (S != null && Object.keys(S).length > 0) {
978
+ b(S);
979
979
  return;
980
980
  }
981
981
  b({}), o(!1);
982
- } catch (k) {
983
- h(k);
982
+ } catch (S) {
983
+ h(S);
984
984
  } finally {
985
985
  d(!1);
986
986
  }
987
987
  }
988
988
  },
989
- onChange: (S) => {
989
+ onChange: (k) => {
990
990
  o(!0), h(null);
991
- const k = S.target.name;
992
- k && k in g && b((B) => {
993
- const { [k]: L, ...oa } = B;
994
- return oa;
995
- }), n && (k && (E.current = k), V()), l?.(S);
991
+ const S = k.target.name;
992
+ S && S in g && b((B) => {
993
+ const { [S]: L, ...ct } = B;
994
+ return ct;
995
+ }), n && (S && (C.current = S), W()), l?.(k);
996
996
  },
997
- onBlur: (S) => {
998
- n && f && x.current != null && (clearTimeout(x.current), x.current = null, G.current()), u?.(S);
997
+ onBlur: (k) => {
998
+ n && f && x.current != null && (clearTimeout(x.current), x.current = null, G.current()), u?.(k);
999
999
  },
1000
1000
  className: p("contents [[data-basic-page-stack]>&]:flex [[data-basic-page-stack]>&]:min-w-0 [[data-basic-page-stack]>&]:flex-col", r),
1001
1001
  ...c,
1002
- ref: (S) => {
1003
- _.current = S;
1004
- const k = c.ref;
1005
- typeof k == "function" ? k(S) : k != null && (k.current = S);
1002
+ ref: (k) => {
1003
+ _.current = k;
1004
+ const S = c.ref;
1005
+ typeof S == "function" ? S(k) : S != null && (S.current = k);
1006
1006
  },
1007
- children: /* @__PURE__ */ a("fieldset", {
1007
+ children: /* @__PURE__ */ t("fieldset", {
1008
1008
  disabled: i,
1009
1009
  "aria-busy": i || void 0,
1010
1010
  className: "contents",
@@ -1013,8 +1013,8 @@ function Tt({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
1013
1013
  })
1014
1014
  });
1015
1015
  }
1016
- function Pt({ name: e, className: t, ...n }) {
1017
- const r = R(Q), s = M(), l = r?.auto ?? null, u = l != null && (e == null || l.field === e), [c, i] = w(!1), d = u ? l.phase : null;
1016
+ function Ia({ name: e, className: a, ...n }) {
1017
+ const r = T(Q), s = M(), l = r?.auto ?? null, u = l != null && (e == null || l.field === e), [c, i] = w(!1), d = u ? l.phase : null;
1018
1018
  O(() => {
1019
1019
  if (d !== "saved") return;
1020
1020
  i(!0);
@@ -1022,11 +1022,11 @@ function Pt({ name: e, className: t, ...n }) {
1022
1022
  return () => clearTimeout(m);
1023
1023
  }, [d, l]);
1024
1024
  const f = d === "saving" ? "Saving…" : d === "saved" && c ? "Saved" : null, o = s ? "blur(0px)" : `blur(${xe}px)`;
1025
- return /* @__PURE__ */ a("span", {
1025
+ return /* @__PURE__ */ t("span", {
1026
1026
  className: "grid justify-items-end",
1027
- children: /* @__PURE__ */ a($, {
1027
+ children: /* @__PURE__ */ t(V, {
1028
1028
  initial: !1,
1029
- children: f != null && /* @__PURE__ */ a(A.output, {
1029
+ children: f != null && /* @__PURE__ */ t(A.output, {
1030
1030
  initial: {
1031
1031
  opacity: 0,
1032
1032
  filter: o
@@ -1040,7 +1040,7 @@ function Pt({ name: e, className: t, ...n }) {
1040
1040
  filter: o
1041
1041
  },
1042
1042
  transition: le,
1043
- className: p("text-pho-description pl-8 [grid-area:1/1]", t),
1043
+ className: p("text-pho-description pl-8 [grid-area:1/1]", a),
1044
1044
  style: { background: "linear-gradient(to left, var(--background-color-pho-primary) calc(100% - 2rem), transparent)" },
1045
1045
  ...n,
1046
1046
  children: f
@@ -1048,67 +1048,67 @@ function Pt({ name: e, className: t, ...n }) {
1048
1048
  })
1049
1049
  });
1050
1050
  }
1051
- var It = "flex min-w-0 flex-col gap-5 p-5 [&>[data-basic-page-alert]]:-mx-5 [&>[data-basic-page-alert]]:-mt-2 [&>[data-basic-page-alert]]:-mb-5 [&>[data-basic-page-footer]]:pr-0 [&>[data-basic-page-reveal]]:flex [&>[data-basic-page-reveal]]:flex-col [&>[data-basic-page-reveal]]:gap-5";
1052
- function Ot({ className: e, ...t }) {
1053
- const n = C(null);
1054
- return Je(n, "Fields", 20, () => null), /* @__PURE__ */ a("div", {
1055
- className: p(Ae, It, e),
1056
- ...t,
1051
+ var Oa = "flex min-w-0 flex-col gap-5 p-5 [&>[data-basic-page-alert]]:-mx-5 [&>[data-basic-page-alert]]:-mt-2 [&>[data-basic-page-alert]]:-mb-5 [&>[data-basic-page-footer]]:pr-0 [&>[data-basic-page-reveal]]:flex [&>[data-basic-page-reveal]]:flex-col [&>[data-basic-page-reveal]]:gap-5";
1052
+ function Ba({ className: e, ...a }) {
1053
+ const n = E(null);
1054
+ return Ze(n, "Fields", 20, () => null), /* @__PURE__ */ t("div", {
1055
+ className: p(Ae, Oa, e),
1056
+ ...a,
1057
1057
  ref: (r) => {
1058
1058
  n.current = r;
1059
- const s = t.ref;
1059
+ const s = a.ref;
1060
1060
  typeof s == "function" ? s(r) : s != null && (s.current = r);
1061
1061
  },
1062
1062
  "data-basic-page-fields": ""
1063
1063
  });
1064
1064
  }
1065
- function Bt({ className: e, ...t }) {
1066
- return /* @__PURE__ */ a("div", {
1065
+ function La({ className: e, ...a }) {
1066
+ return /* @__PURE__ */ t("div", {
1067
1067
  className: p("flex min-w-0 flex-col gap-5 *:min-w-0 sm:flex-row sm:gap-3 sm:*:flex-1", e),
1068
- ...t
1068
+ ...a
1069
1069
  });
1070
1070
  }
1071
- function Lt({ children: e = "Save changes", ...t }) {
1072
- const n = R(Q);
1073
- return /* @__PURE__ */ a(Z, {
1071
+ function Ma({ children: e = "Save changes", ...a }) {
1072
+ const n = T(Q);
1073
+ return /* @__PURE__ */ t(Z, {
1074
1074
  type: "submit",
1075
1075
  variant: "effect",
1076
1076
  size: "sm",
1077
1077
  loading: n?.pending,
1078
- ...t,
1078
+ ...a,
1079
1079
  children: e
1080
1080
  });
1081
1081
  }
1082
- function Mt({ show: e, className: t, ...n }) {
1083
- const r = R(Q), s = e === "dirty" ? r?.dirty ?? !1 : e, l = /* @__PURE__ */ a("div", {
1082
+ function Da({ show: e, className: a, ...n }) {
1083
+ const r = T(Q), s = e === "dirty" ? r?.dirty ?? !1 : e, l = /* @__PURE__ */ t("div", {
1084
1084
  "data-basic-page-footer": "",
1085
- className: p("flex items-center justify-end gap-3 pr-[calc(1.25rem+2.5px)]", t),
1085
+ className: p("flex items-center justify-end gap-3 pr-[calc(1.25rem+2.5px)]", a),
1086
1086
  ...n
1087
1087
  });
1088
- return s === void 0 ? l : /* @__PURE__ */ a(Re, {
1088
+ return s === void 0 ? l : /* @__PURE__ */ t(Te, {
1089
1089
  show: s,
1090
1090
  gap: "block",
1091
1091
  clip: !1,
1092
1092
  children: l
1093
1093
  });
1094
1094
  }
1095
- var Dt = {
1095
+ var Ha = {
1096
1096
  stack: "-2.5rem",
1097
1097
  block: "-0.75rem",
1098
1098
  fields: "-1.25rem",
1099
1099
  none: "0px"
1100
1100
  };
1101
- function Re({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: s, ...l }) {
1102
- const u = M(), c = Dt[r ? "none" : n], i = C(null), d = C(e !== !0);
1101
+ function Te({ show: e, clip: a = !0, gap: n = "stack", dividers: r, className: s, ...l }) {
1102
+ const u = M(), c = Ha[r ? "none" : n], i = E(null), d = E(e !== !0);
1103
1103
  O(() => {
1104
1104
  d.current = !0;
1105
1105
  }, []);
1106
1106
  const f = () => {
1107
- t && i.current && (i.current.style.overflow = "hidden");
1107
+ a && i.current && (i.current.style.overflow = "hidden");
1108
1108
  }, o = () => {
1109
1109
  i.current && (i.current.style.overflow = "");
1110
1110
  };
1111
- return e === void 0 ? /* @__PURE__ */ a(A.div, {
1111
+ return e === void 0 ? /* @__PURE__ */ t(A.div, {
1112
1112
  initial: u ? !1 : {
1113
1113
  opacity: 0,
1114
1114
  y: j
@@ -1123,12 +1123,12 @@ function Re({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: s
1123
1123
  },
1124
1124
  className: p(r && se, s),
1125
1125
  ...l
1126
- }) : /* @__PURE__ */ a($, {
1126
+ }) : /* @__PURE__ */ t(V, {
1127
1127
  initial: !1,
1128
- children: e ? /* @__PURE__ */ a(A.div, {
1128
+ children: e ? /* @__PURE__ */ t(A.div, {
1129
1129
  "data-basic-page-reveal": "",
1130
1130
  ref: (m) => {
1131
- i.current = m, t && m && d.current && (m.style.overflow = "hidden");
1131
+ i.current = m, a && m && d.current && (m.style.overflow = "hidden");
1132
1132
  },
1133
1133
  onAnimationStart: f,
1134
1134
  onAnimationComplete: o,
@@ -1157,15 +1157,15 @@ function Re({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: s
1157
1157
  }) : null
1158
1158
  });
1159
1159
  }
1160
- var Ht = "top-4 left-5 h-8 text-base [&>svg]:size-[1.125em] [&>svg]:shrink-0", Ft = "(min-width: 40rem)";
1161
- function zt() {
1162
- return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(Ft).matches;
1160
+ var Fa = "top-4 left-5 h-8 text-base [&>svg]:size-[1.125em] [&>svg]:shrink-0", za = "(min-width: 40rem)";
1161
+ function Ga() {
1162
+ return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(za).matches;
1163
1163
  }
1164
- var ta = z(null);
1165
- function na({ className: e, children: t, ...n }) {
1166
- const r = ee.toArray(t).filter(Ve), s = r.map((_) => _.props.children ?? null), l = Xe();
1167
- Ka(s);
1168
- const [u] = w(zt), c = M(), i = r.length, d = Ge(), f = !u && i >= Gt, o = R(Ce), m = i > 0 ? r[i - 1]?.props : null, h = m?.children ?? "Back", g = m?.href, b = m?.onClick;
1164
+ var nt = z(null);
1165
+ function rt({ className: e, children: a, ...n }) {
1166
+ const r = ee.toArray(a).filter(Ve), s = r.map((_) => _.props.children ?? null), l = Qe();
1167
+ Xt(s);
1168
+ const [u] = w(Ga), c = M(), i = r.length, d = We(), f = !u && i >= Wa, o = T(Ee), m = i > 0 ? r[i - 1]?.props : null, h = m?.children ?? "Back", g = m?.href, b = m?.onClick;
1169
1169
  H(() => {
1170
1170
  if (!(o == null || g == null))
1171
1171
  return o.setTail({
@@ -1180,42 +1180,42 @@ function na({ className: e, children: t, ...n }) {
1180
1180
  b
1181
1181
  ]);
1182
1182
  const [N, v] = w(!c && !u && l != null && l.labels.length > i);
1183
- return /* @__PURE__ */ a("nav", {
1183
+ return /* @__PURE__ */ t("nav", {
1184
1184
  "aria-label": "Breadcrumb",
1185
1185
  "data-basic-page-back": "",
1186
1186
  className: p("absolute top-4 left-3 flex min-w-max items-center", e),
1187
1187
  ...n,
1188
1188
  children: /* @__PURE__ */ y("ol", {
1189
1189
  className: "m-0 flex list-none items-center p-0",
1190
- children: [r.map((_, x) => f && x > 0 && x < i - 2 ? null : /* @__PURE__ */ y(Ea, { children: [f && x === i - 2 && /* @__PURE__ */ y("li", {
1190
+ children: [r.map((_, x) => f && x > 0 && x < i - 2 ? null : /* @__PURE__ */ y(St, { children: [f && x === i - 2 && /* @__PURE__ */ y("li", {
1191
1191
  className: "m-0 flex items-center max-sm:hidden",
1192
- children: [/* @__PURE__ */ a("span", {
1192
+ children: [/* @__PURE__ */ t("span", {
1193
1193
  "aria-hidden": !0,
1194
1194
  className: be,
1195
1195
  children: oe
1196
- }), /* @__PURE__ */ y(K.Root, { children: [/* @__PURE__ */ a(K.Trigger, { render: /* @__PURE__ */ a(Z, {
1196
+ }), /* @__PURE__ */ y(K.Root, { children: [/* @__PURE__ */ t(K.Trigger, { render: /* @__PURE__ */ t(Z, {
1197
1197
  variant: "ghost",
1198
1198
  size: "sm",
1199
1199
  "aria-label": "Hidden pages",
1200
1200
  className: "px-2",
1201
- children: Vt
1202
- }) }), /* @__PURE__ */ a(K.Portal, { children: /* @__PURE__ */ a(K.Positioner, {
1201
+ children: Va
1202
+ }) }), /* @__PURE__ */ t(K.Portal, { children: /* @__PURE__ */ t(K.Positioner, {
1203
1203
  align: "start",
1204
1204
  sideOffset: 4,
1205
- children: /* @__PURE__ */ a(K.Popup, { children: r.slice(1, i - 2).map((E, T) => {
1206
- const P = E.props;
1207
- return /* @__PURE__ */ a(K.LinkItem, {
1208
- render: /* @__PURE__ */ a(d, {
1205
+ children: /* @__PURE__ */ t(K.Popup, { children: r.slice(1, i - 2).map((C, R) => {
1206
+ const P = C.props;
1207
+ return /* @__PURE__ */ t(K.LinkItem, {
1208
+ render: /* @__PURE__ */ t(d, {
1209
1209
  href: P.href,
1210
1210
  onClick: P.onClick
1211
1211
  }),
1212
1212
  children: P.children ?? "Back"
1213
- }, E.key ?? T);
1213
+ }, C.key ?? R);
1214
1214
  }) })
1215
1215
  }) })] })]
1216
- }), /* @__PURE__ */ a("li", {
1216
+ }), /* @__PURE__ */ t("li", {
1217
1217
  className: p("m-0 flex items-center", x < i - 1 && "max-sm:hidden"),
1218
- children: /* @__PURE__ */ a(ta.Provider, {
1218
+ children: /* @__PURE__ */ t(nt.Provider, {
1219
1219
  value: {
1220
1220
  index: x,
1221
1221
  count: i,
@@ -1224,13 +1224,13 @@ function na({ className: e, children: t, ...n }) {
1224
1224
  },
1225
1225
  children: _
1226
1226
  })
1227
- })] }, _.key ?? x)), N && /* @__PURE__ */ a("li", {
1227
+ })] }, _.key ?? x)), N && /* @__PURE__ */ t("li", {
1228
1228
  "aria-hidden": !0,
1229
1229
  className: "m-0 flex items-center max-sm:hidden",
1230
- children: /* @__PURE__ */ a(A.span, {
1230
+ children: /* @__PURE__ */ t(A.span, {
1231
1231
  initial: { opacity: 1 },
1232
1232
  animate: { opacity: 0 },
1233
- transition: Ke,
1233
+ transition: Xe,
1234
1234
  onAnimationComplete: () => v(!1),
1235
1235
  className: be,
1236
1236
  children: oe
@@ -1239,15 +1239,15 @@ function na({ className: e, children: t, ...n }) {
1239
1239
  })
1240
1240
  });
1241
1241
  }
1242
- var be = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", oe = "/", Gt = 4, Vt = "…";
1243
- function ra({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
1244
- const l = R(ta), u = M(), c = n != null && !u, i = Qe(c ? n : void 0);
1242
+ var be = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", oe = "/", Wa = 4, Va = "…";
1243
+ function it({ href: e, className: a, morphId: n, children: r = "Back", ...s }) {
1244
+ const l = T(nt), u = M(), c = n != null && !u, i = Ye(c ? n : void 0);
1245
1245
  if (l == null) throw new Error("BasicPage.Crumb must be rendered inside BasicPage.Breadcrumbs");
1246
- const { index: d, count: f, departing: o, narrow: m } = l, h = d === 0, g = d === f - 1, b = o != null && o.labels.length < f, N = o != null && o.labels.length > f, v = g && (o == null || b || m), _ = h || g, x = h && g ? "" : h ? "max-sm:hidden" : "sm:hidden", E = o != null, T = g ? m ? N ? "slide" : "fade" : v ? "fade" : void 0 : void 0, [P, F] = w(c && m && i.fly && o != null && !N ? o.labels[o.labels.length - 1] : null), G = c && _ && !E, Y = c && !h && g && (o == null || b);
1247
- return /* @__PURE__ */ y(Ne, { children: [!h && /* @__PURE__ */ a("span", {
1246
+ const { index: d, count: f, departing: o, narrow: m } = l, h = d === 0, g = d === f - 1, b = o != null && o.labels.length < f, N = o != null && o.labels.length > f, v = g && (o == null || b || m), _ = h || g, x = h && g ? "" : h ? "max-sm:hidden" : "sm:hidden", C = o != null, R = g ? m ? N ? "slide" : "fade" : v ? "fade" : void 0 : void 0, [P, F] = w(c && m && i.fly && o != null && !N ? o.labels[o.labels.length - 1] : null), G = c && _ && !C, Y = c && !h && g && (o == null || b);
1247
+ return /* @__PURE__ */ y(Ne, { children: [!h && /* @__PURE__ */ t("span", {
1248
1248
  "aria-hidden": !0,
1249
1249
  className: p(be, "max-sm:hidden"),
1250
- children: Y ? /* @__PURE__ */ a(A.span, {
1250
+ children: Y ? /* @__PURE__ */ t(A.span, {
1251
1251
  initial: i.fly ? {
1252
1252
  opacity: 0,
1253
1253
  x: Be
@@ -1260,11 +1260,11 @@ function ra({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
1260
1260
  className: "inline-flex",
1261
1261
  children: oe
1262
1262
  }) : oe
1263
- }), /* @__PURE__ */ a(ve, {
1263
+ }), /* @__PURE__ */ t(ve, {
1264
1264
  variant: "ghost",
1265
1265
  size: "sm",
1266
1266
  href: e,
1267
- prefix: _ ? G ? /* @__PURE__ */ a(A.span, {
1267
+ prefix: _ ? G ? /* @__PURE__ */ t(A.span, {
1268
1268
  initial: i.fly ? {
1269
1269
  opacity: 0,
1270
1270
  x: Be
@@ -1275,51 +1275,51 @@ function ra({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
1275
1275
  } : { opacity: 1 },
1276
1276
  transition: i.fly ? Le : D,
1277
1277
  className: p("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", x),
1278
- children: /* @__PURE__ */ a(ie, {})
1279
- }) : /* @__PURE__ */ a("span", {
1278
+ children: /* @__PURE__ */ t(ie, {})
1279
+ }) : /* @__PURE__ */ t("span", {
1280
1280
  className: p("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", x),
1281
- children: /* @__PURE__ */ a(ie, {})
1282
- }) : /* @__PURE__ */ a("span", { className: "hidden" }),
1283
- className: p("min-w-max", t),
1281
+ children: /* @__PURE__ */ t(ie, {})
1282
+ }) : /* @__PURE__ */ t("span", { className: "hidden" }),
1283
+ className: p("min-w-max", a),
1284
1284
  ...s,
1285
1285
  children: c && n != null ? /* @__PURE__ */ y("span", {
1286
- className: p("relative block", !i.fly && T === "slide" && "overflow-hidden", !g && "max-w-40 truncate"),
1287
- children: [/* @__PURE__ */ a(Ye, {
1286
+ className: p("relative block", !i.fly && R === "slide" && "overflow-hidden", !g && "max-w-40 truncate"),
1287
+ children: [/* @__PURE__ */ t(Ue, {
1288
1288
  morphId: n,
1289
1289
  fromClassName: "text-pho-primary",
1290
1290
  fly: i.fly,
1291
1291
  morphRef: i.ref,
1292
- arrival: T,
1292
+ arrival: R,
1293
1293
  children: r
1294
- }), P != null && /* @__PURE__ */ a(A.span, {
1294
+ }), P != null && /* @__PURE__ */ t(A.span, {
1295
1295
  "aria-hidden": !0,
1296
1296
  initial: {
1297
1297
  x: 0,
1298
1298
  opacity: 1
1299
1299
  },
1300
1300
  animate: {
1301
- x: qa,
1301
+ x: qt,
1302
1302
  opacity: 0
1303
1303
  },
1304
- transition: Wa,
1304
+ transition: jt,
1305
1305
  onAnimationComplete: () => F(null),
1306
1306
  className: "pointer-events-none absolute inset-y-0 left-0 whitespace-nowrap",
1307
1307
  children: P
1308
1308
  })]
1309
- }) : /* @__PURE__ */ a("span", {
1309
+ }) : /* @__PURE__ */ t("span", {
1310
1310
  className: p("block", !g && "max-w-40 truncate"),
1311
1311
  children: r
1312
1312
  })
1313
1313
  })] });
1314
1314
  }
1315
- function $t({ className: e, ...t }) {
1316
- return /* @__PURE__ */ a(na, {
1315
+ function $a({ className: e, ...a }) {
1316
+ return /* @__PURE__ */ t(rt, {
1317
1317
  className: e,
1318
- children: /* @__PURE__ */ a(ra, { ...t })
1318
+ children: /* @__PURE__ */ t(it, { ...a })
1319
1319
  });
1320
1320
  }
1321
- function qt({ label: e, description: t, leading: n, href: r, className: s, children: l, ...u }) {
1322
- const c = Ge(), i = q(() => A.create(c), [c]), { leaving: d, ...f } = ke();
1321
+ function qa({ label: e, description: a, leading: n, href: r, className: s, children: l, ...u }) {
1322
+ const c = We(), i = $(() => A.create(c), [c]), { leaving: d, ...f } = Se();
1323
1323
  return /* @__PURE__ */ y(i, {
1324
1324
  href: r,
1325
1325
  ...f,
@@ -1329,31 +1329,31 @@ function qt({ label: e, description: t, leading: n, href: r, className: s, child
1329
1329
  className: p("flex min-w-0 flex-1 items-center", n != null && "gap-3"),
1330
1330
  children: [n, /* @__PURE__ */ y("div", {
1331
1331
  className: "min-w-0",
1332
- children: [/* @__PURE__ */ a("div", {
1332
+ children: [/* @__PURE__ */ t("div", {
1333
1333
  className: "flex min-w-0 items-center gap-1",
1334
- children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ a("p", {
1334
+ children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ t("p", {
1335
1335
  className: "text-pho-primary truncate text-base font-medium",
1336
1336
  children: e
1337
1337
  }) : e
1338
- }), t ? /* @__PURE__ */ a("div", {
1338
+ }), a ? /* @__PURE__ */ t("div", {
1339
1339
  className: "text-pho-description truncate text-xs",
1340
- children: t
1340
+ children: a
1341
1341
  }) : null]
1342
1342
  })]
1343
1343
  }), /* @__PURE__ */ y("div", {
1344
1344
  className: "flex min-w-0 items-center justify-end gap-2",
1345
- children: [l != null ? /* @__PURE__ */ a("div", {
1345
+ children: [l != null ? /* @__PURE__ */ t("div", {
1346
1346
  className: "min-w-0",
1347
1347
  children: l
1348
- }) : null, /* @__PURE__ */ a(ga, {
1348
+ }) : null, /* @__PURE__ */ t(bt, {
1349
1349
  "aria-hidden": !0,
1350
1350
  className: "text-pho-secondary group-hover:text-pho-secondary-hover size-4 shrink-0 transition-colors"
1351
1351
  })]
1352
1352
  })]
1353
1353
  });
1354
1354
  }
1355
- function Wt({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, onClose: s, width: l = "default", presentation: u, defaultPresentation: c, onPresentationChange: i, expandable: d = !0, children: f }) {
1356
- const o = R(We), m = o != null ? Ba(o.paneWidth, l) : 0, h = e ?? ee.toArray(f).length > 0, { presentation: g, setPresentation: b, canChoose: N } = jt({
1355
+ function ja({ open: e, variant: a = "overlay", modal: n = !1, placeholder: r, onClose: s, width: l = "default", presentation: u, defaultPresentation: c, onPresentationChange: i, expandable: d = !0, children: f }) {
1356
+ const o = T(je), m = o != null ? Lt(o.paneWidth, l) : 0, h = e ?? ee.toArray(f).length > 0, { presentation: g, setPresentation: b, canChoose: N } = Ka({
1357
1357
  isOpen: h,
1358
1358
  paneNarrow: o?.paneNarrow ?? !1,
1359
1359
  presentation: u,
@@ -1372,58 +1372,58 @@ function Wt({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
1372
1372
  }, [_, g]), O(() => {
1373
1373
  o == null && typeof process < "u" && process.env.NODE_ENV !== "production" && console.warn("BasicPage.Aside: needs a `BasicPage.Root` around it.");
1374
1374
  }, [o]), o == null || o.slot == null) return null;
1375
- const E = d && N ? () => b("page") : void 0;
1375
+ const C = d && N ? () => b("page") : void 0;
1376
1376
  if (g === "page") {
1377
- const T = d && N && !o.paneNarrow ? () => b("panel") : void 0;
1377
+ const R = d && N && !o.paneNarrow ? () => b("panel") : void 0;
1378
1378
  return Pe(h ? /* @__PURE__ */ y("div", {
1379
1379
  "data-basic-page-aside": "page",
1380
1380
  "data-basic-page-aside-expanded": o.paneNarrow ? void 0 : "",
1381
1381
  className: "relative flex min-w-0 flex-1 flex-col",
1382
- children: [T != null ? /* @__PURE__ */ a("span", {
1382
+ children: [R != null ? /* @__PURE__ */ t("span", {
1383
1383
  className: "absolute top-2 right-2 z-30",
1384
- children: /* @__PURE__ */ a(W.Provider, { children: /* @__PURE__ */ a(sa, {
1384
+ children: /* @__PURE__ */ t(q.Provider, { children: /* @__PURE__ */ t(lt, {
1385
1385
  label: "Show as panel",
1386
- icon: /* @__PURE__ */ a(ha, {}),
1387
- onClick: T
1386
+ icon: /* @__PURE__ */ t(gt, {}),
1387
+ onClick: R
1388
1388
  }) })
1389
1389
  }) : null, f]
1390
1390
  }) : null, o.slot);
1391
1391
  }
1392
- return t === "inline" ? Pe(/* @__PURE__ */ a(Kt, {
1392
+ return a === "inline" ? Pe(/* @__PURE__ */ t(Xa, {
1393
1393
  width: m,
1394
1394
  paneHeight: o.paneHeight,
1395
1395
  onClose: s,
1396
- onExpand: E,
1396
+ onExpand: C,
1397
1397
  open: h,
1398
1398
  placeholder: r,
1399
1399
  children: f
1400
- }), o.slot) : /* @__PURE__ */ a(Xt, {
1400
+ }), o.slot) : /* @__PURE__ */ t(Qa, {
1401
1401
  container: o.slot,
1402
1402
  width: m,
1403
1403
  paneHeight: o.paneHeight,
1404
1404
  onClose: s,
1405
- onExpand: E,
1405
+ onExpand: C,
1406
1406
  open: h,
1407
1407
  modal: n,
1408
1408
  children: f
1409
1409
  });
1410
1410
  }
1411
- function jt({ isOpen: e, paneNarrow: t, presentation: n, defaultPresentation: r, onPresentationChange: s }) {
1411
+ function Ka({ isOpen: e, paneNarrow: a, presentation: n, defaultPresentation: r, onPresentationChange: s }) {
1412
1412
  const [l, u] = w(e), [c, i] = w(null);
1413
1413
  H(() => {
1414
1414
  e || (u(!1), i(null));
1415
1415
  }, [e]);
1416
1416
  const d = n != null;
1417
1417
  return {
1418
- presentation: t ? "page" : n ?? c ?? r ?? (l ? "page" : "panel"),
1418
+ presentation: a ? "page" : n ?? c ?? r ?? (l ? "page" : "panel"),
1419
1419
  setPresentation: we((f) => {
1420
1420
  d || i(f), s?.(f);
1421
1421
  }, [d, s]),
1422
1422
  canChoose: !d || s != null
1423
1423
  };
1424
1424
  }
1425
- function ia() {
1426
- const [e, t] = w(null), n = q(() => ({ setBack: t }), []), r = C(null);
1425
+ function st() {
1426
+ const [e, a] = w(null), n = $(() => ({ setBack: a }), []), r = E(null);
1427
1427
  return {
1428
1428
  back: e,
1429
1429
  panel: n,
@@ -1434,55 +1434,64 @@ function ia() {
1434
1434
  }, [])
1435
1435
  };
1436
1436
  }
1437
- var Fe = {
1437
+ var ze = {
1438
1438
  variant: "ghost",
1439
1439
  size: "sm",
1440
1440
  svgOnly: !0,
1441
1441
  "aria-label": "Close",
1442
- children: /* @__PURE__ */ a(xa, {})
1442
+ children: /* @__PURE__ */ t(wt, {})
1443
1443
  };
1444
- function sa({ label: e, icon: t, onClick: n }) {
1445
- return /* @__PURE__ */ y(W.Root, { children: [/* @__PURE__ */ a(W.Trigger, { render: /* @__PURE__ */ a(Z, {
1444
+ function lt({ label: e, icon: a, onClick: n }) {
1445
+ return /* @__PURE__ */ y(q.Root, { children: [/* @__PURE__ */ t(q.Trigger, { render: /* @__PURE__ */ t(Z, {
1446
1446
  variant: "ghost",
1447
1447
  size: "sm",
1448
1448
  svgOnly: !0,
1449
1449
  "aria-label": e,
1450
1450
  onClick: n,
1451
- children: t
1452
- }) }), /* @__PURE__ */ a(W.Portal, { children: /* @__PURE__ */ a(W.Positioner, { children: /* @__PURE__ */ a(W.Popup, { children: e }) }) })] });
1451
+ children: a
1452
+ }) }), /* @__PURE__ */ t(q.Portal, { children: /* @__PURE__ */ t(q.Positioner, { children: /* @__PURE__ */ t(q.Popup, { children: e }) }) })] });
1453
1453
  }
1454
- function la({ back: e, onClose: t, onExpand: n, closeRef: r, panel: s, children: l }) {
1454
+ function ot({ back: e, onClose: a, onExpand: n, closeRef: r, panel: s, children: l }) {
1455
1455
  return /* @__PURE__ */ y(Ne, { children: [/* @__PURE__ */ y("span", {
1456
1456
  className: "absolute top-2 right-2 z-30 flex items-center gap-0.5",
1457
- children: [n != null ? /* @__PURE__ */ a(W.Provider, { children: /* @__PURE__ */ a(sa, {
1457
+ children: [n != null ? /* @__PURE__ */ t(q.Provider, { children: /* @__PURE__ */ t(lt, {
1458
1458
  label: "Expand",
1459
- icon: /* @__PURE__ */ a(fa, {}),
1459
+ icon: /* @__PURE__ */ t(ht, {}),
1460
1460
  onClick: n
1461
- }) }) : null, /* @__PURE__ */ a("span", {
1461
+ }) }) : null, /* @__PURE__ */ t("span", {
1462
1462
  ref: r,
1463
1463
  className: "contents",
1464
- children: e != null ? /* @__PURE__ */ a(ve, {
1465
- ...Fe,
1464
+ children: e != null ? /* @__PURE__ */ t(ve, {
1465
+ ...ze,
1466
1466
  href: e.href,
1467
1467
  onClick: e.onClick
1468
- }) : t != null ? /* @__PURE__ */ a(Z, {
1469
- ...Fe,
1470
- onClick: t
1468
+ }) : a != null ? /* @__PURE__ */ t(Z, {
1469
+ ...ze,
1470
+ onClick: a
1471
1471
  }) : null
1472
1472
  })]
1473
1473
  }), /* @__PURE__ */ y(J.Root, {
1474
- className: "min-h-0 flex-1",
1475
- children: [/* @__PURE__ */ a(J.Viewport, { children: /* @__PURE__ */ a(J.Content, {
1476
- className: "flex min-h-full flex-col",
1477
- children: /* @__PURE__ */ a(je.Provider, {
1478
- value: s,
1479
- children: l
1474
+ className: "min-h-0 min-w-0 flex-1",
1475
+ children: [/* @__PURE__ */ t(J.Viewport, {
1476
+ className: "overflow-x-hidden",
1477
+ style: { overflowX: "hidden" },
1478
+ children: /* @__PURE__ */ t(J.Content, {
1479
+ className: "flex min-h-full w-full min-w-0 flex-col",
1480
+ style: {
1481
+ minWidth: 0,
1482
+ width: "100%",
1483
+ maxWidth: "100%"
1484
+ },
1485
+ children: /* @__PURE__ */ t(Ke.Provider, {
1486
+ value: s,
1487
+ children: l
1488
+ })
1480
1489
  })
1481
- }) }), /* @__PURE__ */ a(J.Scrollbar, { children: /* @__PURE__ */ a(J.Thumb, {}) })]
1490
+ }), /* @__PURE__ */ t(J.Scrollbar, { children: /* @__PURE__ */ t(J.Thumb, {}) })]
1482
1491
  })] });
1483
1492
  }
1484
- function Kt({ width: e, paneHeight: t, onClose: n, onExpand: r, open: s, placeholder: l, children: u }) {
1485
- const c = M(), { back: i, panel: d, closeRef: f, leave: o } = ia(), m = c ? "blur(0px)" : `blur(${xe}px)`, h = t ?? "100dvh";
1493
+ function Xa({ width: e, paneHeight: a, onClose: n, onExpand: r, open: s, placeholder: l, children: u }) {
1494
+ const c = M(), { back: i, panel: d, closeRef: f, leave: o } = st(), m = c ? "blur(0px)" : `blur(${xe}px)`, h = a ?? "100dvh";
1486
1495
  O(() => {
1487
1496
  const b = (N) => {
1488
1497
  N.key !== "Escape" || N.defaultPrevented || o() && N.preventDefault();
@@ -1504,23 +1513,25 @@ function Kt({ width: e, paneHeight: t, onClose: n, onExpand: r, open: s, placeho
1504
1513
  },
1505
1514
  transition: c ? { duration: 0 } : le
1506
1515
  };
1507
- return /* @__PURE__ */ a("aside", {
1516
+ return /* @__PURE__ */ t("aside", {
1508
1517
  "data-basic-page-aside": "panel",
1509
1518
  "data-basic-page-aside-variant": "inline",
1510
- className: "relative flex shrink-0 flex-col",
1519
+ className: "relative flex min-w-0 shrink-0 flex-col",
1511
1520
  style: {
1512
1521
  width: e,
1522
+ minWidth: 0,
1523
+ maxWidth: e,
1513
1524
  minHeight: h
1514
1525
  },
1515
- children: /* @__PURE__ */ a("div", {
1516
- className: "border-pho-secondary bg-pho-primary sticky top-0 grid border-l *:min-h-0 *:[grid-area:1/1]",
1526
+ children: /* @__PURE__ */ t("div", {
1527
+ className: "border-pho-secondary bg-pho-primary sticky top-0 grid min-w-0 overflow-hidden border-l *:min-h-0 *:[grid-area:1/1]",
1517
1528
  style: { height: h },
1518
- children: /* @__PURE__ */ a($, {
1529
+ children: /* @__PURE__ */ t(V, {
1519
1530
  initial: !1,
1520
- children: s ? /* @__PURE__ */ a(A.div, {
1531
+ children: s ? /* @__PURE__ */ t(A.div, {
1521
1532
  ...g,
1522
- className: "relative flex flex-col",
1523
- children: /* @__PURE__ */ a(la, {
1533
+ className: "relative flex min-w-0 flex-col",
1534
+ children: /* @__PURE__ */ t(ot, {
1524
1535
  back: i,
1525
1536
  onClose: n,
1526
1537
  onExpand: r,
@@ -1528,7 +1539,7 @@ function Kt({ width: e, paneHeight: t, onClose: n, onExpand: r, open: s, placeho
1528
1539
  panel: d,
1529
1540
  children: u
1530
1541
  })
1531
- }, "page") : /* @__PURE__ */ a(A.div, {
1542
+ }, "page") : /* @__PURE__ */ t(A.div, {
1532
1543
  ...g,
1533
1544
  className: "flex flex-col",
1534
1545
  children: l
@@ -1537,9 +1548,9 @@ function Kt({ width: e, paneHeight: t, onClose: n, onExpand: r, open: s, placeho
1537
1548
  })
1538
1549
  });
1539
1550
  }
1540
- function Xt({ container: e, width: t, paneHeight: n, onClose: r, onExpand: s, open: l, modal: u, children: c }) {
1541
- const { back: i, panel: d, closeRef: f, leave: o } = ia(), m = n ?? "100dvh";
1542
- return /* @__PURE__ */ a(ne.Root, {
1551
+ function Qa({ container: e, width: a, paneHeight: n, onClose: r, onExpand: s, open: l, modal: u, children: c }) {
1552
+ const { back: i, panel: d, closeRef: f, leave: o } = st(), m = n ?? "100dvh";
1553
+ return /* @__PURE__ */ t(ne.Root, {
1543
1554
  open: l,
1544
1555
  modal: u ? "trap-focus" : !1,
1545
1556
  disablePointerDismissal: !0,
@@ -1549,21 +1560,25 @@ function Xt({ container: e, width: t, paneHeight: n, onClose: r, onExpand: s, op
1549
1560
  children: /* @__PURE__ */ y(ne.Portal, {
1550
1561
  container: e,
1551
1562
  className: "contents",
1552
- children: [u ? /* @__PURE__ */ a(ne.Backdrop, {
1563
+ children: [u ? /* @__PURE__ */ t(ne.Backdrop, {
1553
1564
  "data-basic-page-aside-backdrop": "",
1554
1565
  className: p("bg-pho-overlay absolute inset-0 z-30 transition-opacity duration-200 ease-out motion-reduce:transition-none", "data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"),
1555
1566
  onClick: o
1556
- }) : null, /* @__PURE__ */ a(ne.Popup, {
1567
+ }) : null, /* @__PURE__ */ t(ne.Popup, {
1557
1568
  "data-basic-page-aside": "panel",
1558
1569
  "data-basic-page-aside-variant": "overlay",
1559
1570
  initialFocus: u ? void 0 : !1,
1560
1571
  finalFocus: u ? void 0 : !1,
1561
- className: p("absolute inset-y-0 right-0 z-30 flex flex-col outline-none", "transition-[translate,opacity] duration-250 ease-out motion-reduce:transition-none", "data-[ending-style]:translate-x-3 data-[ending-style]:opacity-0 data-[ending-style]:duration-200 data-[starting-style]:translate-x-3 data-[starting-style]:opacity-0"),
1562
- style: { width: t },
1563
- children: /* @__PURE__ */ a("div", {
1564
- className: "border-pho-secondary bg-pho-primary shadow-pho-xl sticky top-0 flex flex-col border-l",
1572
+ className: p("absolute inset-y-0 right-0 z-30 flex min-w-0 flex-col outline-none", "transition-[translate,opacity] duration-250 ease-out motion-reduce:transition-none", "data-[ending-style]:translate-x-3 data-[ending-style]:opacity-0 data-[ending-style]:duration-200 data-[starting-style]:translate-x-3 data-[starting-style]:opacity-0"),
1573
+ style: {
1574
+ width: a,
1575
+ minWidth: 0,
1576
+ maxWidth: a
1577
+ },
1578
+ children: /* @__PURE__ */ t("div", {
1579
+ className: "border-pho-secondary bg-pho-primary shadow-pho-xl sticky top-0 flex min-w-0 flex-col overflow-hidden border-l",
1565
1580
  style: { height: m },
1566
- children: /* @__PURE__ */ a(la, {
1581
+ children: /* @__PURE__ */ t(ot, {
1567
1582
  back: i,
1568
1583
  onClose: r,
1569
1584
  onExpand: s,
@@ -1576,9 +1591,9 @@ function Xt({ container: e, width: t, paneHeight: n, onClose: r, onExpand: s, op
1576
1591
  })
1577
1592
  });
1578
1593
  }
1579
- var Qt = "14rem", Yt = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none", ze = "transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none";
1580
- function Ut({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r, placeholder: s, label: l, className: u, ...c }) {
1581
- const i = R(ye), d = ce(i?.subscribe ?? de, () => i?.get().api ?? null, () => null), f = n != null;
1594
+ var Ya = "14rem", Ua = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none", Ge = "transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none";
1595
+ function Ja({ variant: e = "box", fold: a = "auto", value: n, onValueChange: r, placeholder: s, label: l, className: u, ...c }) {
1596
+ const i = T(ye), d = ce(i?.subscribe ?? de, () => i?.get().api ?? null, () => null), f = n != null;
1582
1597
  O(() => {
1583
1598
  if (!(i == null || f))
1584
1599
  return i.adopt(!0), () => i.adopt(!1);
@@ -1593,21 +1608,21 @@ function Ut({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
1593
1608
  setQuery: d.setQuery,
1594
1609
  placeholder: d.placeholder,
1595
1610
  label: l ?? d.placeholder
1596
- }, [m, h] = w(!1), g = C(null), b = m || (o?.query ?? "") !== "";
1611
+ }, [m, h] = w(!1), g = E(null), b = m || (o?.query ?? "") !== "";
1597
1612
  if (O(() => {
1598
1613
  if (!m) return;
1599
1614
  let v = 0, _ = 0;
1600
1615
  const x = () => {
1601
- const E = g.current;
1602
- E != null && (E.focus(), document.activeElement !== E && _++ < 5 && (v = requestAnimationFrame(x)));
1616
+ const C = g.current;
1617
+ C != null && (C.focus(), document.activeElement !== C && _++ < 5 && (v = requestAnimationFrame(x)));
1603
1618
  };
1604
1619
  return v = requestAnimationFrame(x), () => cancelAnimationFrame(v);
1605
- }, [m]), e === "ghost") return /* @__PURE__ */ a("div", {
1620
+ }, [m]), e === "ghost") return /* @__PURE__ */ t("div", {
1606
1621
  "data-basic-page-search": "",
1607
1622
  "data-variant": "ghost",
1608
1623
  className: p("flex min-w-0 flex-1", o == null && "hidden", u),
1609
1624
  ...c,
1610
- children: o != null && /* @__PURE__ */ a(Ca, {
1625
+ children: o != null && /* @__PURE__ */ t(Ct, {
1611
1626
  value: o.query,
1612
1627
  onChange: o.setQuery,
1613
1628
  placeholder: o.placeholder,
@@ -1617,16 +1632,16 @@ function Ut({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
1617
1632
  }
1618
1633
  })
1619
1634
  });
1620
- const N = t === "auto";
1621
- return /* @__PURE__ */ a("div", {
1635
+ const N = a === "auto";
1636
+ return /* @__PURE__ */ t("div", {
1622
1637
  "data-basic-page-search": "",
1623
1638
  "data-expanded": b || void 0,
1624
1639
  className: p("grid min-w-0 content-center", "[[data-basic-page-header]>&]:col-start-2 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:justify-items-end [[data-basic-page-header]>&]:self-start", o == null && "hidden", u),
1625
1640
  ...c,
1626
1641
  children: o != null && /* @__PURE__ */ y("div", {
1627
- className: p("grid w-9 max-w-full justify-items-end *:[grid-area:1/1]", Yt, N && "@[36rem]:w-56"),
1628
- style: b ? { width: Qt } : void 0,
1629
- children: [/* @__PURE__ */ a(Z, {
1642
+ className: p("grid w-9 max-w-full justify-items-end *:[grid-area:1/1]", Ua, N && "@[36rem]:w-56"),
1643
+ style: b ? { width: Ya } : void 0,
1644
+ children: [/* @__PURE__ */ t(Z, {
1630
1645
  variant: "outlined",
1631
1646
  size: "sm",
1632
1647
  shape: "circle",
@@ -1635,15 +1650,15 @@ function Ut({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
1635
1650
  "aria-hidden": b || void 0,
1636
1651
  tabIndex: b ? -1 : void 0,
1637
1652
  onClick: () => h(!0),
1638
- className: p(ze, b ? "pointer-events-none invisible opacity-0" : "visible opacity-100", N && "@[36rem]:pointer-events-none @[36rem]:invisible @[36rem]:opacity-0"),
1639
- children: /* @__PURE__ */ a(Te, {})
1640
- }), /* @__PURE__ */ a("div", {
1653
+ className: p(Ge, b ? "pointer-events-none invisible opacity-0" : "visible opacity-100", N && "@[36rem]:pointer-events-none @[36rem]:invisible @[36rem]:opacity-0"),
1654
+ children: /* @__PURE__ */ t(Re, {})
1655
+ }), /* @__PURE__ */ t("div", {
1641
1656
  inert: !N && !b,
1642
- className: p("w-full min-w-0", ze, b ? "visible opacity-100" : "pointer-events-none invisible opacity-0", N && "@[36rem]:pointer-events-auto @[36rem]:visible @[36rem]:opacity-100"),
1657
+ className: p("w-full min-w-0", Ge, b ? "visible opacity-100" : "pointer-events-none invisible opacity-0", N && "@[36rem]:pointer-events-auto @[36rem]:visible @[36rem]:opacity-100"),
1643
1658
  children: /* @__PURE__ */ y(pe.Root, {
1644
1659
  size: "sm",
1645
1660
  className: "w-full",
1646
- children: [/* @__PURE__ */ a(pe.Addon, { children: /* @__PURE__ */ a(Te, {}) }), /* @__PURE__ */ a(pe.Input, {
1661
+ children: [/* @__PURE__ */ t(pe.Addon, { children: /* @__PURE__ */ t(Re, {}) }), /* @__PURE__ */ t(pe.Input, {
1647
1662
  ref: g,
1648
1663
  type: "search",
1649
1664
  value: o.query,
@@ -1662,9 +1677,9 @@ function Ut({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
1662
1677
  })
1663
1678
  });
1664
1679
  }
1665
- function Jt({ header: e, main: t, side: n, foot: r, enter: s }) {
1680
+ function Za({ header: e, main: a, side: n, foot: r, enter: s }) {
1666
1681
  const l = n != null;
1667
- return /* @__PURE__ */ a("div", {
1682
+ return /* @__PURE__ */ t("div", {
1668
1683
  "data-basic-page-columns": "",
1669
1684
  className: "@container w-full min-w-0",
1670
1685
  children: /* @__PURE__ */ y("div", {
@@ -1672,19 +1687,19 @@ function Jt({ header: e, main: t, side: n, foot: r, enter: s }) {
1672
1687
  children: [e, /* @__PURE__ */ y("div", {
1673
1688
  className: p("grid gap-x-10 gap-y-4", l && "@min-[73.5rem]:grid-cols-[minmax(42rem,1fr)_minmax(29rem,32rem)] @min-[73.5rem]:grid-rows-[auto_minmax(0,1fr)]", l && "[&>[data-basic-page-columns-side]]:mt-6 @min-[73.5rem]:[&>[data-basic-page-columns-side]]:mt-7", r != null && "[&>[data-basic-page-columns-foot]]:mt-6"),
1674
1689
  children: [
1675
- /* @__PURE__ */ a(re, {
1690
+ /* @__PURE__ */ t(re, {
1676
1691
  enter: s,
1677
1692
  "data-basic-page-columns-main": "",
1678
1693
  className: p("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0", l && "@min-[73.5rem]:col-start-1 @min-[73.5rem]:row-span-2 @min-[73.5rem]:row-start-1"),
1679
- children: t
1694
+ children: a
1680
1695
  }),
1681
- l ? /* @__PURE__ */ a(re, {
1696
+ l ? /* @__PURE__ */ t(re, {
1682
1697
  enter: s,
1683
1698
  "data-basic-page-columns-side": "",
1684
1699
  className: p("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0", "@min-[73.5rem]:col-start-2 @min-[73.5rem]:row-start-1"),
1685
1700
  children: n
1686
1701
  }) : null,
1687
- r != null ? /* @__PURE__ */ a(re, {
1702
+ r != null ? /* @__PURE__ */ t(re, {
1688
1703
  enter: s,
1689
1704
  "data-basic-page-columns-foot": "",
1690
1705
  className: p("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0", l && "@min-[73.5rem]:col-start-2 @min-[73.5rem]:row-start-2 @min-[73.5rem]:self-start"),
@@ -1695,59 +1710,59 @@ function Jt({ header: e, main: t, side: n, foot: r, enter: s }) {
1695
1710
  })
1696
1711
  });
1697
1712
  }
1698
- var Tn = {
1699
- Root: Da,
1700
- Aside: Wt,
1701
- Search: Ut,
1702
- Table: ba,
1703
- CondenseScope: Xa,
1704
- Breadcrumbs: na,
1705
- Crumb: ra,
1706
- Back: $t,
1707
- Title: et,
1713
+ var Pn = {
1714
+ Root: Ht,
1715
+ Aside: ja,
1716
+ Search: Ja,
1717
+ Table: vt,
1718
+ CondenseScope: Qt,
1719
+ Breadcrumbs: rt,
1720
+ Crumb: it,
1721
+ Back: $a,
1722
+ Title: ta,
1708
1723
  Stack: re,
1709
- Columns: Jt,
1710
- Header: ct,
1711
- HeaderAction: ut,
1712
- SectionTitle: dt,
1713
- Description: Ze,
1714
- TableCount: pt,
1715
- SectionFooter: mt,
1716
- Card: ft,
1717
- Item: ht,
1718
- ItemPanel: gt,
1719
- Callout: bt,
1720
- CalloutTitle: vt,
1721
- CalloutDescription: yt,
1722
- Onboard: xt,
1723
- Step: Et,
1724
- Row: kt,
1725
- RowLink: qt,
1726
- Value: St,
1727
- Alert: Rt,
1728
- Footer: Mt,
1729
- Form: Tt,
1730
- Saved: Pt,
1731
- Fields: Ot,
1732
- Inline: Bt,
1733
- Submit: Lt,
1734
- Reveal: Re
1724
+ Columns: Za,
1725
+ Header: ua,
1726
+ HeaderAction: da,
1727
+ SectionTitle: pa,
1728
+ Description: et,
1729
+ TableCount: ma,
1730
+ SectionFooter: fa,
1731
+ Card: ha,
1732
+ Item: ga,
1733
+ ItemPanel: ba,
1734
+ Callout: va,
1735
+ CalloutTitle: ya,
1736
+ CalloutDescription: xa,
1737
+ Onboard: wa,
1738
+ Step: Sa,
1739
+ Row: ka,
1740
+ RowLink: qa,
1741
+ Value: Ta,
1742
+ Alert: Ra,
1743
+ Footer: Da,
1744
+ Form: Pa,
1745
+ Saved: Ia,
1746
+ Fields: Ba,
1747
+ Inline: La,
1748
+ Submit: Ma,
1749
+ Reveal: Te
1735
1750
  };
1736
1751
  export {
1737
- Pa as a,
1738
- Tn as c,
1739
- Qa as d,
1752
+ It as a,
1753
+ Pn as c,
1754
+ Yt as d,
1740
1755
  he as f,
1741
- Ta as i,
1756
+ Pt as i,
1742
1757
  le as l,
1743
1758
  kn as m,
1744
1759
  Ie as n,
1745
- Ia as o,
1746
- Sn as p,
1760
+ Ot as o,
1761
+ Tn as p,
1747
1762
  $e as r,
1748
- Ra as s,
1763
+ Rt as s,
1749
1764
  Rn as t,
1750
- Ya as u
1765
+ Ut as u
1751
1766
  };
1752
1767
 
1753
- //# sourceMappingURL=basic-page-65eFgq8o.js.map
1768
+ //# sourceMappingURL=basic-page-ijv-ijUB.js.map