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