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