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