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