@photon-ai/pho-ui 4.13.1 → 4.15.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,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as u } from "./cn-ChIgwEl3.js";
3
- import { n as Ze } from "./link-provider-DXzDQ08N.js";
3
+ import { n as ea } from "./link-provider-DXzDQ08N.js";
4
4
  import { FADE_ENTRANCE as Ma, FADE_SWAP as Da, SPRING_ENTRANCE as Fa, TRAVEL_LINEAR as Ha, fadeThroughBlur as Q, revealIn as za } from "../motion.js";
5
5
  import { a as ne, o as Re } from "./button-C9VqBBIr.js";
6
6
  import { t as Ga } from "./error-D5SzZ0ev.js";
@@ -9,23 +9,23 @@ import { t as oe } from "./IconChevronLeft-CSWMKQ4C.js";
9
9
  import { t as ja } from "./IconChevronRight-CzoJnYNI.js";
10
10
  import { t as qa } from "./IconSearch-BKAHkLyX.js";
11
11
  import { a as Ka, n as Xa, r as Se, t as Qa } from "./data-table-hzZb7Otx.js";
12
- import { t as ea } from "./IconX-pZ9vrtSr.js";
12
+ import { t as aa } from "./IconX-pZ9vrtSr.js";
13
13
  import { t as Ua } from "./toast-BACxYsv6.js";
14
14
  import { n as Ya, t as Ja } from "./animated-height-zr7BmFY1.js";
15
15
  import { n as Te, t as te } from "./scroll-area-DSwD9th7.js";
16
- import { i as aa } from "./checkbox-CwvoEJhd.js";
16
+ import { i as ta } from "./checkbox-CwvoEJhd.js";
17
17
  import { t as Za } from "./form-AiHbbw4m.js";
18
18
  import { i as Y } from "./menu-BQeprfxB.js";
19
19
  import { t as et } from "./ghost-search-8PzP73zS.js";
20
20
  import { t as X } from "./tooltip-BTF7GChl.js";
21
- import { t as ze } from "./description-list-8qm83WZB.js";
21
+ import { t as Ge } from "./description-list-8qm83WZB.js";
22
22
  import { t as at } from "./box-search-C9EVZgcb.js";
23
23
  import { Children as U, Fragment as tt, createContext as B, isValidElement as ce, useCallback as Pe, useContext as k, useEffect as L, useId as Ie, useLayoutEffect as H, useMemo as V, useRef as C, useState as _, useSyncExternalStore as he } from "react";
24
24
  import { Fragment as Z, jsx as a, jsxs as b } from "react/jsx-runtime";
25
- import { AnimatePresence as z, motion as N, useIsPresent as ta, useReducedMotion as I } from "motion/react";
25
+ import { AnimatePresence as z, motion as N, useIsPresent as na, useReducedMotion as I } from "motion/react";
26
26
  import { Dialog as se } from "@base-ui/react/dialog";
27
- import { createPortal as Ge } from "react-dom";
28
- var ge = "rounded-base border border-pho-secondary bg-pho-primary [--choice-card-inset:0.75rem]", de = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", na = `${ge} ${de} gap-0`, $e = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5 [--choice-card-inset:0.75rem]", nt = "flex min-h-[4.25rem] min-w-0 flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6", rt = "flex flex-col gap-3 px-5 py-4", it = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", st = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", P = Fa, F = Ma, j = 12, ra = B(null), ia = B(!1), lt = 768;
27
+ import { createPortal as $e } from "react-dom";
28
+ var ge = "rounded-base border border-pho-secondary bg-pho-primary [--choice-card-inset:0.75rem]", de = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", ra = `${ge} ${de} gap-0`, We = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5 [--choice-card-inset:0.75rem]", nt = "flex min-h-[4.25rem] min-w-0 flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6", rt = "flex flex-col gap-3 px-5 py-4", it = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", st = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", P = Fa, F = Ma, j = 12, ia = B(null), Oe = B(!1), lt = 768;
29
29
  function ot(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
  }
@@ -38,7 +38,7 @@ function ct(e) {
38
38
  return H(() => {
39
39
  const o = e.current;
40
40
  if (!r || o == null) return;
41
- const h = Be(o), g = () => {
41
+ const h = Me(o), g = () => {
42
42
  const y = o.offsetWidth, w = h?.clientHeight ?? null;
43
43
  m((f) => f.width === y && f.height === w ? f : {
44
44
  width: y,
@@ -66,7 +66,7 @@ function ct(e) {
66
66
  function dt(e) {
67
67
  return e == null ? window.scrollY : e.scrollTop;
68
68
  }
69
- function We(e, t) {
69
+ function Ve(e, t) {
70
70
  e == null ? window.scrollTo({ top: t }) : e.scrollTop = t;
71
71
  }
72
72
  function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, children: s, ref: l, ...c }) {
@@ -96,8 +96,8 @@ function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
96
96
  const q = f.current;
97
97
  if (G === R.current || q == null) return;
98
98
  R.current = G;
99
- const we = Be(q);
100
- G ? (K.current = dt(we), We(we, 0)) : We(we, K.current);
99
+ const we = Me(q);
100
+ G ? (K.current = dt(we), Ve(we, 0)) : Ve(we, K.current);
101
101
  }, [G]);
102
102
  const $ = e && !d ? /* @__PURE__ */ a(oa, {
103
103
  title: x,
@@ -106,7 +106,7 @@ function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
106
106
  }) : null, xe = /* @__PURE__ */ a("div", {
107
107
  "data-basic-page-column": "",
108
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 && (v ? "px-0 pb-0" : y ? "max-w-[84rem] md:px-8" : "max-w-[44.5rem]"), d ? "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(Le.Provider, {
109
+ children: e ? /* @__PURE__ */ a(Be.Provider, {
110
110
  value: ye,
111
111
  children: /* @__PURE__ */ a(ua.Provider, {
112
112
  value: T,
@@ -124,7 +124,7 @@ function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
124
124
  ref: (q) => {
125
125
  f.current = q, typeof l == "function" ? l(q) : l != null && (l.current = q);
126
126
  },
127
- children: /* @__PURE__ */ a(ra.Provider, {
127
+ children: /* @__PURE__ */ a(ia.Provider, {
128
128
  value: A,
129
129
  children: /* @__PURE__ */ a(sa.Provider, {
130
130
  value: M,
@@ -189,7 +189,7 @@ function oa({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: s })
189
189
  const v = requestAnimationFrame(() => p(!1));
190
190
  return () => cancelAnimationFrame(v);
191
191
  }
192
- const g = new IntersectionObserver(([v]) => p(v != null && !v.isIntersecting), { root: Be(m) });
192
+ const g = new IntersectionObserver(([v]) => p(v != null && !v.isIntersecting), { root: Me(m) });
193
193
  return g.observe(m), () => g.disconnect();
194
194
  }, [m, r]);
195
195
  const o = l ? 0 : -_t, h = l ? "blur(0px)" : `blur(${Te}px)`;
@@ -252,11 +252,11 @@ function mt(e) {
252
252
  if (!(typeof e != "string" && typeof e != "number"))
253
253
  return pt(String(e)) || void 0;
254
254
  }
255
- function Oe(e, t) {
255
+ function Le(e, t) {
256
256
  if (e !== "")
257
257
  return e ?? mt(t);
258
258
  }
259
- var ft = (e) => `basic-page-morph-${e}`, ht = { layout: P }, Ve = 10, je = {
259
+ var ft = (e) => `basic-page-morph-${e}`, ht = { layout: P }, je = 10, qe = {
260
260
  delay: 0.2,
261
261
  duration: 0.12,
262
262
  ease: "easeOut"
@@ -290,7 +290,7 @@ function da() {
290
290
  });
291
291
  return e;
292
292
  }
293
- var Le = B(null), ua = B({
293
+ var Be = B(null), ua = B({
294
294
  tail: null,
295
295
  silent: !1
296
296
  }), Ce = {
@@ -298,7 +298,7 @@ var Le = B(null), ua = B({
298
298
  title: null,
299
299
  back: null
300
300
  }, re = B(null), be = () => () => {
301
- }, qe = () => Ce;
301
+ }, Ke = () => Ce;
302
302
  function wt({ adopt: e = !0, children: t }) {
303
303
  const [n] = _(() => {
304
304
  let s = Ce, l = null;
@@ -328,10 +328,10 @@ function wt({ adopt: e = !0, children: t }) {
328
328
  }
329
329
  function hr() {
330
330
  const e = k(re);
331
- return he(e?.store.subscribe ?? be, e?.store.get ?? qe, e?.store.get ?? qe);
331
+ return he(e?.store.subscribe ?? be, e?.store.get ?? Ke, e?.store.get ?? Ke);
332
332
  }
333
333
  var ue = Da, Nt = Ha, _t = -8;
334
- function Be(e) {
334
+ function Me(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);
@@ -421,8 +421,8 @@ function ma({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: s, cla
421
421
  })]
422
422
  });
423
423
  }
424
- var Ke = "max-w-full min-w-0 truncate align-top", Xe = "flex shrink-0 items-center", fa = B(!1);
425
- function Qe(e) {
424
+ var Xe = "max-w-full min-w-0 truncate align-top", Qe = "flex shrink-0 items-center", fa = B(!1);
425
+ function Ue(e) {
426
426
  return typeof e == "string" || typeof e == "number" ? e : /* @__PURE__ */ a(fa.Provider, {
427
427
  value: !0,
428
428
  children: e
@@ -432,11 +432,11 @@ function kt({ inBar: e = !0, children: t }) {
432
432
  return k(fa) && !e ? null : /* @__PURE__ */ a(Z, { children: t });
433
433
  }
434
434
  function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children: l, ...c }) {
435
- const p = Oe(e, l), i = I(), d = ve(n === !0), m = pa(t), o = da(), h = !i && (t != null || d === !0), g = d || o != null ? "rise" : void 0, v = k(Le), y = v?.pinned ?? !1, w = k(re)?.adopt ?? !1, f = k(ua), A = C(null);
435
+ const p = Le(e, l), i = I(), d = ve(n === !0), m = pa(t), o = da(), h = !i && (t != null || d === !0), g = d || o != null ? "rise" : void 0, v = k(Be), y = v?.pinned ?? !1, w = k(re)?.adopt ?? !1, f = k(ua), A = C(null);
436
436
  H(() => {
437
437
  if (!(v == null || y))
438
438
  return v.setTitle({
439
- label: Qe(l),
439
+ label: Ue(l),
440
440
  el: A.current
441
441
  }), () => v.setTitle(null);
442
442
  }, [
@@ -454,7 +454,7 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
454
454
  fly: m.fly,
455
455
  morphRef: m.ref,
456
456
  arrival: g,
457
- className: Ke,
457
+ className: Xe,
458
458
  children: l
459
459
  }) : d && !i ? /* @__PURE__ */ a(N.span, {
460
460
  initial: {
@@ -469,7 +469,7 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
469
469
  y: P,
470
470
  opacity: F
471
471
  },
472
- className: u("inline-block", Ke),
472
+ className: u("inline-block", Xe),
473
473
  children: l
474
474
  }) : S ? /* @__PURE__ */ a("span", {
475
475
  className: "min-w-0 truncate",
@@ -477,7 +477,7 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
477
477
  }) : l;
478
478
  return /* @__PURE__ */ b(Z, { children: [y && v != null && /* @__PURE__ */ a(oa, {
479
479
  title: {
480
- label: Qe(l),
480
+ label: Ue(l),
481
481
  el: A.current
482
482
  },
483
483
  tail: f.tail,
@@ -510,11 +510,11 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
510
510
  y: P,
511
511
  opacity: F
512
512
  },
513
- className: Xe,
513
+ className: Qe,
514
514
  children: r
515
515
  }) : /* @__PURE__ */ a("span", {
516
516
  "data-basic-page-title-trailing": "",
517
- className: Xe,
517
+ className: Qe,
518
518
  children: r
519
519
  })]
520
520
  }) : M, x && /* @__PURE__ */ a(N.span, {
@@ -528,9 +528,9 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
528
528
  })]
529
529
  })] });
530
530
  }
531
- var Me = B(!1);
531
+ var De = B(!1);
532
532
  function St() {
533
- const e = k(Me), t = I(), [n] = _(() => e && !t);
533
+ const e = k(De), t = I(), [n] = _(() => e && !t);
534
534
  return n;
535
535
  }
536
536
  var Tt = {
@@ -548,7 +548,7 @@ var Tt = {
548
548
  borderTopWidth: P
549
549
  };
550
550
  function ee() {
551
- const e = St(), t = ta(), n = I();
551
+ const e = St(), t = na(), n = I();
552
552
  return {
553
553
  initial: e ? {
554
554
  opacity: 0,
@@ -588,7 +588,7 @@ function Mt() {
588
588
  return he(be, Lt, Bt);
589
589
  }
590
590
  function ve(e, t = !1) {
591
- const n = k(ra), r = k(ia), s = Mt(), [l] = _(() => {
591
+ const n = k(ia), r = k(Oe), s = Mt(), [l] = _(() => {
592
592
  if (s || !e || n?.prerendered || r) return !1;
593
593
  if (t) return !0;
594
594
  if (document.querySelector("[data-basic-page-prerendered]") != null) return !1;
@@ -622,13 +622,13 @@ function le({ enter: e, className: t, children: n, ref: r, ...s }) {
622
622
  },
623
623
  className: u("mt-7 flex min-w-0 flex-col gap-10 [--choice-card-inset:1.25rem]", "[&: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", "[&:has(>*:first-child>[data-basic-page-form-body]>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child>[data-basic-page-form-body]>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),
624
624
  ...s,
625
- children: /* @__PURE__ */ a(Me.Provider, {
625
+ children: /* @__PURE__ */ a(De.Provider, {
626
626
  value: o,
627
627
  children: n
628
628
  })
629
629
  });
630
630
  }
631
- var Ue = "@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 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0";
631
+ var Ye = "@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 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0";
632
632
  function Dt({ enter: e, className: t, ...n }) {
633
633
  const r = I();
634
634
  return ve(e === !0) && !r ? /* @__PURE__ */ a(N.div, {
@@ -644,11 +644,11 @@ function Dt({ enter: e, className: t, ...n }) {
644
644
  y: P,
645
645
  opacity: F
646
646
  },
647
- className: u(Ue, t),
647
+ className: u(Ye, t),
648
648
  ...n,
649
649
  "data-basic-page-header": ""
650
650
  }) : /* @__PURE__ */ a("div", {
651
- className: u(Ue, t),
651
+ className: u(Ye, t),
652
652
  ...n,
653
653
  "data-basic-page-header": ""
654
654
  });
@@ -661,7 +661,7 @@ function Ft({ className: e, ...t }) {
661
661
  });
662
662
  }
663
663
  function Ht({ id: e, className: t, children: n, ...r }) {
664
- const s = Oe(e, n);
664
+ const s = Le(e, n);
665
665
  return /* @__PURE__ */ a("h2", {
666
666
  id: s,
667
667
  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 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0", t),
@@ -702,7 +702,7 @@ function $t({ animateHeight: e, className: t, children: n, ...r }) {
702
702
  children: s
703
703
  })
704
704
  }) : /* @__PURE__ */ a("div", {
705
- className: u(na, t),
705
+ className: u(ra, t),
706
706
  ...r,
707
707
  "data-basic-page-card": "",
708
708
  children: s
@@ -724,14 +724,14 @@ function Vt({ divided: e = !1, className: t, ...n }) {
724
724
  }
725
725
  function jt({ className: e, icon: t, children: n, ...r }) {
726
726
  if (t == null || t === !1 || t === !0) return /* @__PURE__ */ a("div", {
727
- className: u($e, e),
727
+ className: u(We, e),
728
728
  ...r,
729
729
  "data-basic-page-callout": "",
730
730
  children: n
731
731
  });
732
732
  const [s, ...l] = U.toArray(n);
733
733
  return /* @__PURE__ */ b("div", {
734
- className: u($e, e),
734
+ className: u(We, e),
735
735
  ...r,
736
736
  "data-basic-page-callout": "",
737
737
  children: [/* @__PURE__ */ b("div", {
@@ -748,7 +748,7 @@ function jt({ className: e, icon: t, children: n, ...r }) {
748
748
  });
749
749
  }
750
750
  function qt({ id: e, className: t, children: n, ...r }) {
751
- const s = Oe(e, n);
751
+ const s = Le(e, n);
752
752
  return /* @__PURE__ */ a("h2", {
753
753
  id: s,
754
754
  className: u("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
@@ -762,7 +762,7 @@ function Kt({ className: e, ...t }) {
762
762
  ...t
763
763
  });
764
764
  }
765
- var De = B(null), ba = B(!1);
765
+ var Fe = B(null), ba = B(!1);
766
766
  function va(e) {
767
767
  return e === "current" || e === "working" || e === "pending";
768
768
  }
@@ -797,10 +797,10 @@ function Qt({ paged: e, className: t, children: n, ...r }) {
797
797
  className: t,
798
798
  ...r
799
799
  }) : /* @__PURE__ */ a("ol", {
800
- className: u(na, "m-0 list-none p-0", t),
800
+ className: u(ra, "m-0 list-none p-0", t),
801
801
  ...r,
802
802
  "data-basic-page-onboard": "",
803
- children: s.map((c) => c.state == null ? c.node : /* @__PURE__ */ a(De.Provider, {
803
+ children: s.map((c) => c.state == null ? c.node : /* @__PURE__ */ a(Fe.Provider, {
804
804
  value: {
805
805
  number: c.index + 1,
806
806
  state: c.state
@@ -833,7 +833,7 @@ function Ut(e) {
833
833
  };
834
834
  }
835
835
  function Yt(e) {
836
- const t = ta();
836
+ const t = na();
837
837
  return /* @__PURE__ */ a(N.section, {
838
838
  ...e,
839
839
  inert: !t,
@@ -884,7 +884,7 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
884
884
  className: u("m-0 flex min-w-0 scroll-mt-12 list-none items-center gap-3 p-0 px-5", n),
885
885
  ...s,
886
886
  "data-basic-page-onboard-row": "",
887
- children: e.map((f) => f.state == null ? f.node : /* @__PURE__ */ a(De.Provider, {
887
+ children: e.map((f) => f.state == null ? f.node : /* @__PURE__ */ a(Fe.Provider, {
888
888
  value: {
889
889
  number: f.index + 1,
890
890
  state: f.state,
@@ -910,7 +910,7 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
910
910
  "aria-labelledby": `${p}-${w.index}`,
911
911
  tabIndex: -1,
912
912
  className: "min-w-0 outline-none",
913
- children: /* @__PURE__ */ a(ia.Provider, {
913
+ children: /* @__PURE__ */ a(Oe.Provider, {
914
914
  value: !0,
915
915
  children: w.page
916
916
  })
@@ -939,7 +939,7 @@ function Aa({ state: e, number: t, glyph: n, className: r }) {
939
939
  children: e === "done" ? /* @__PURE__ */ a(N.span, {
940
940
  ...Q(s),
941
941
  className: "flex [&>svg]:size-3",
942
- children: n ?? /* @__PURE__ */ a(aa, { className: "size-3" })
942
+ children: n ?? /* @__PURE__ */ a(ta, { className: "size-3" })
943
943
  }, "check") : /* @__PURE__ */ a(N.span, {
944
944
  ...Q(s),
945
945
  children: t
@@ -972,7 +972,7 @@ function en({ className: e, children: t, ...n }) {
972
972
  }
973
973
  function ka({ state: e }) {
974
974
  const t = I();
975
- return e === "failed" ? /* @__PURE__ */ a(ea, {
975
+ return e === "failed" ? /* @__PURE__ */ a(aa, {
976
976
  "aria-hidden": !0,
977
977
  className: "text-pho-error size-4 shrink-0"
978
978
  }) : /* @__PURE__ */ b("span", {
@@ -983,7 +983,7 @@ function ka({ state: e }) {
983
983
  children: e === "done" ? /* @__PURE__ */ a(N.span, {
984
984
  ...Q(t),
985
985
  className: "flex",
986
- children: /* @__PURE__ */ a(aa, { className: "size-2.5" })
986
+ children: /* @__PURE__ */ a(ta, { className: "size-2.5" })
987
987
  }, "check") : null
988
988
  }), e === "working" ? /* @__PURE__ */ b(Z, { children: [/* @__PURE__ */ a("span", { className: wa }), /* @__PURE__ */ a("span", { className: Na })] }) : null]
989
989
  });
@@ -1112,7 +1112,7 @@ function rn({ seat: e, title: t, icon: n, className: r, ...s }) {
1112
1112
  });
1113
1113
  }
1114
1114
  function sn({ icon: e, aside: t, title: n, description: r, done: s, working: l, pending: c, className: p, children: i, ...d }) {
1115
- const m = k(De), o = m?.state ?? (s ? "done" : l ? "working" : c ? "pending" : "current"), h = I();
1115
+ const m = k(Fe), o = m?.state ?? (s ? "done" : l ? "working" : c ? "pending" : "current"), h = I();
1116
1116
  if (m?.row != null) return /* @__PURE__ */ a(rn, {
1117
1117
  seat: {
1118
1118
  ...m,
@@ -1145,7 +1145,7 @@ function sn({ icon: e, aside: t, title: n, description: r, done: s, working: l,
1145
1145
  children: [y, " "]
1146
1146
  }) : null, n]
1147
1147
  }),
1148
- /* @__PURE__ */ a(He, {
1148
+ /* @__PURE__ */ a(ze, {
1149
1149
  show: g,
1150
1150
  gap: "none",
1151
1151
  clip: !1,
@@ -1220,7 +1220,7 @@ function on({ className: e, ...t }) {
1220
1220
  ...t
1221
1221
  });
1222
1222
  }
1223
- var cn = "grid grid-cols-[minmax(0,1fr)_auto] gap-x-6 sm:grid-cols-[minmax(0,1fr)_auto_auto]", pe = "col-span-full grid grid-cols-subgrid", dn = "[[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", un = "[[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", Fe = "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", Ra = "col-start-1 row-start-1", pn = "col-start-1 row-start-2 justify-start text-xs sm:col-start-2 sm:row-start-1 sm:justify-end sm:text-base", Sa = "col-start-2 row-start-1 sm:col-start-3", me = (e) => e != null && e !== !1 && e !== !0;
1223
+ var cn = "grid grid-cols-[minmax(0,1fr)_auto] gap-x-6 sm:grid-cols-[minmax(0,1fr)_auto_auto]", pe = "col-span-full grid grid-cols-subgrid", dn = "[[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", un = "[[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", He = "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", Ra = "col-start-1 row-start-1", pn = "col-start-1 row-start-2 justify-start text-xs sm:col-start-2 sm:row-start-1 sm:justify-end sm:text-base", Sa = "col-start-2 row-start-1 sm:col-start-3", me = (e) => e != null && e !== !1 && e !== !0;
1224
1224
  function mn({ empty: e, className: t, children: n, ...r }) {
1225
1225
  const s = U.toArray(n).length === 0;
1226
1226
  return /* @__PURE__ */ a("ul", {
@@ -1245,12 +1245,12 @@ function fn({ label: e, className: t, children: n, ...r }) {
1245
1245
  "data-basic-page-receipt-group": "",
1246
1246
  children: [i ? /* @__PURE__ */ a("div", {
1247
1247
  id: p,
1248
- className: u(Fe, "text-pho-primary col-span-full min-h-7 px-5 py-1 text-base font-medium"),
1248
+ className: u(He, "text-pho-primary col-span-full min-h-7 px-5 py-1 text-base font-medium"),
1249
1249
  children: e
1250
1250
  }) : null, /* @__PURE__ */ a("ul", {
1251
1251
  "aria-labelledby": i ? p : void 0,
1252
1252
  className: u(pe, "m-0 list-none p-0"),
1253
- children: /* @__PURE__ */ a(Me.Provider, {
1253
+ children: /* @__PURE__ */ a(De.Provider, {
1254
1254
  value: !1,
1255
1255
  children: n
1256
1256
  })
@@ -1268,7 +1268,7 @@ function hn({ label: e, quantity: t, amount: n, className: r, ...s }) {
1268
1268
  "data-basic-page-receipt-line": "",
1269
1269
  children: [
1270
1270
  /* @__PURE__ */ a("div", {
1271
- className: u(Fe, Ra, "text-pho-secondary", !d && "col-end-3", i ? "sm:col-end-2" : d ? "sm:col-end-3" : "sm:col-end-4"),
1271
+ className: u(He, Ra, "text-pho-secondary", !d && "col-end-3", i ? "sm:col-end-2" : d ? "sm:col-end-3" : "sm:col-end-4"),
1272
1272
  children: e
1273
1273
  }),
1274
1274
  i ? /* @__PURE__ */ a("div", {
@@ -1292,7 +1292,7 @@ function gn({ label: e, amount: t, className: n, ...r }) {
1292
1292
  ...r,
1293
1293
  "data-basic-page-receipt-total": "",
1294
1294
  children: [/* @__PURE__ */ a("div", {
1295
- className: u(Fe, Ra, "sm:col-end-3"),
1295
+ className: u(He, Ra, "sm:col-end-3"),
1296
1296
  children: e
1297
1297
  }), /* @__PURE__ */ a("div", {
1298
1298
  className: u(Ee, Sa),
@@ -1523,7 +1523,7 @@ function An({ show: e, className: t, ...n }) {
1523
1523
  className: u("flex items-center justify-end gap-3 pr-[calc(1.25rem+2.5px)]", t),
1524
1524
  ...n
1525
1525
  });
1526
- return s === void 0 ? l : /* @__PURE__ */ a(He, {
1526
+ return s === void 0 ? l : /* @__PURE__ */ a(ze, {
1527
1527
  show: s,
1528
1528
  gap: "block",
1529
1529
  clip: !1,
@@ -1536,7 +1536,7 @@ var Cn = {
1536
1536
  fields: "-1.25rem",
1537
1537
  none: "0px"
1538
1538
  };
1539
- function He({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: s, ...l }) {
1539
+ function ze({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: s, ...l }) {
1540
1540
  const c = I(), p = Cn[r ? "none" : n], i = C(null), d = C(e !== !0);
1541
1541
  L(() => {
1542
1542
  d.current = !0;
@@ -1584,7 +1584,7 @@ var Ta = B(null);
1584
1584
  function Pa({ className: e, children: t, ...n }) {
1585
1585
  const r = U.toArray(t).filter(ce), s = r.map((A) => A.props.children ?? null), l = da();
1586
1586
  xt(s);
1587
- const [c] = _(Rn), p = I(), i = r.length, d = Ze(), m = !c && i >= Sn, o = k(Le), h = i > 0 ? r[i - 1]?.props : null, g = h?.children ?? "Back", v = h?.href, y = h?.onClick;
1587
+ const [c] = _(Rn), p = I(), i = r.length, d = ea(), m = !c && i >= Sn, o = k(Be), h = i > 0 ? r[i - 1]?.props : null, g = h?.children ?? "Back", v = h?.href, y = h?.onClick;
1588
1588
  H(() => {
1589
1589
  if (!(o == null || v == null))
1590
1590
  return o.setTail({
@@ -1669,13 +1669,13 @@ function Ia({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
1669
1669
  children: W ? /* @__PURE__ */ a(N.span, {
1670
1670
  initial: i.fly ? {
1671
1671
  opacity: 0,
1672
- x: Ve
1672
+ x: je
1673
1673
  } : { opacity: 0 },
1674
1674
  animate: i.fly ? {
1675
1675
  opacity: 1,
1676
1676
  x: 0
1677
1677
  } : { opacity: 1 },
1678
- transition: i.fly ? je : F,
1678
+ transition: i.fly ? qe : F,
1679
1679
  className: "inline-flex",
1680
1680
  children: fe
1681
1681
  }) : fe
@@ -1686,13 +1686,13 @@ function Ia({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
1686
1686
  prefix: A ? D ? /* @__PURE__ */ a(N.span, {
1687
1687
  initial: i.fly ? {
1688
1688
  opacity: 0,
1689
- x: Ve
1689
+ x: je
1690
1690
  } : { opacity: 0 },
1691
1691
  animate: i.fly ? {
1692
1692
  opacity: 1,
1693
1693
  x: 0
1694
1694
  } : { opacity: 1 },
1695
- transition: i.fly ? je : F,
1695
+ transition: i.fly ? qe : F,
1696
1696
  className: u("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", x),
1697
1697
  children: /* @__PURE__ */ a(oe, {})
1698
1698
  }) : /* @__PURE__ */ a("span", {
@@ -1738,7 +1738,7 @@ function Pn({ className: e, ...t }) {
1738
1738
  });
1739
1739
  }
1740
1740
  function In({ label: e, description: t, leading: n, href: r, className: s, children: l, ...c }) {
1741
- const p = Ze(), i = V(() => N.create(p), [p]), { leaving: d, ...m } = ee();
1741
+ const p = ea(), i = V(() => N.create(p), [p]), { leaving: d, ...m } = ee();
1742
1742
  return /* @__PURE__ */ b(i, {
1743
1743
  href: r,
1744
1744
  ...m,
@@ -1794,7 +1794,7 @@ function On({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
1794
1794
  const E = d && w ? () => y("page") : void 0;
1795
1795
  if (v === "page") {
1796
1796
  const S = d && w && !o.paneNarrow ? () => y("panel") : void 0;
1797
- return Ge(g ? /* @__PURE__ */ b("div", {
1797
+ return $e(g ? /* @__PURE__ */ b("div", {
1798
1798
  "data-basic-page-aside": "page",
1799
1799
  "data-basic-page-aside-expanded": o.paneNarrow ? void 0 : "",
1800
1800
  className: "relative flex min-w-0 flex-1 flex-col",
@@ -1808,7 +1808,7 @@ function On({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
1808
1808
  }) : null, m]
1809
1809
  }) : null, o.slot);
1810
1810
  }
1811
- return t === "inline" ? Ge(/* @__PURE__ */ a(Bn, {
1811
+ return t === "inline" ? $e(/* @__PURE__ */ a(Bn, {
1812
1812
  width: h,
1813
1813
  paneHeight: o.paneHeight,
1814
1814
  onClose: s,
@@ -1853,12 +1853,12 @@ function Oa() {
1853
1853
  }, [])
1854
1854
  };
1855
1855
  }
1856
- var Ye = {
1856
+ var Je = {
1857
1857
  variant: "ghost",
1858
1858
  size: "sm",
1859
1859
  svgOnly: !0,
1860
1860
  "aria-label": "Close",
1861
- children: /* @__PURE__ */ a(ea, {})
1861
+ children: /* @__PURE__ */ a(aa, {})
1862
1862
  };
1863
1863
  function La({ label: e, icon: t, onClick: n }) {
1864
1864
  return /* @__PURE__ */ b(X.Root, { children: [/* @__PURE__ */ a(X.Trigger, { render: /* @__PURE__ */ a(ne, {
@@ -1881,11 +1881,11 @@ function Ba({ back: e, onClose: t, onExpand: n, closeRef: r, panel: s, children:
1881
1881
  ref: r,
1882
1882
  className: "contents",
1883
1883
  children: e != null ? /* @__PURE__ */ a(Re, {
1884
- ...Ye,
1884
+ ...Je,
1885
1885
  href: e.href,
1886
1886
  onClick: e.onClick
1887
1887
  }) : t != null ? /* @__PURE__ */ a(ne, {
1888
- ...Ye,
1888
+ ...Je,
1889
1889
  onClick: t
1890
1890
  }) : null
1891
1891
  })]
@@ -1903,7 +1903,10 @@ function Ba({ back: e, onClose: t, onExpand: n, closeRef: r, panel: s, children:
1903
1903
  },
1904
1904
  children: /* @__PURE__ */ a(la.Provider, {
1905
1905
  value: s,
1906
- children: l
1906
+ children: /* @__PURE__ */ a(Oe.Provider, {
1907
+ value: !0,
1908
+ children: l
1909
+ })
1907
1910
  })
1908
1911
  })
1909
1912
  }), /* @__PURE__ */ a(te.Scrollbar, { children: /* @__PURE__ */ a(te.Thumb, {}) })]
@@ -2010,7 +2013,7 @@ function Mn({ container: e, width: t, paneHeight: n, onClose: r, onExpand: s, op
2010
2013
  })
2011
2014
  });
2012
2015
  }
2013
- var Dn = "14rem", Fn = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none", Je = "transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none";
2016
+ var Dn = "14rem", Fn = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none", Ze = "transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none";
2014
2017
  function Hn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r, placeholder: s, label: l, className: c, ...p }) {
2015
2018
  const i = k(Se), d = he(i?.subscribe ?? be, () => i?.get().api ?? null, () => null), m = n != null;
2016
2019
  L(() => {
@@ -2070,11 +2073,11 @@ function Hn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
2070
2073
  "aria-hidden": y || void 0,
2071
2074
  tabIndex: y ? -1 : void 0,
2072
2075
  onClick: () => g(!0),
2073
- className: u(Je, y ? "pointer-events-none invisible opacity-0" : "visible opacity-100", w && "@[36rem]:pointer-events-none @[36rem]:invisible @[36rem]:opacity-0"),
2076
+ className: u(Ze, y ? "pointer-events-none invisible opacity-0" : "visible opacity-100", w && "@[36rem]:pointer-events-none @[36rem]:invisible @[36rem]:opacity-0"),
2074
2077
  children: /* @__PURE__ */ a(qa, {})
2075
2078
  }), /* @__PURE__ */ a("div", {
2076
2079
  inert: !w && !y,
2077
- className: u("w-full min-w-0", Je, y ? "visible opacity-100" : "pointer-events-none invisible opacity-0", w && "@[36rem]:pointer-events-auto @[36rem]:visible @[36rem]:opacity-100"),
2080
+ className: u("w-full min-w-0", Ze, y ? "visible opacity-100" : "pointer-events-none invisible opacity-0", w && "@[36rem]:pointer-events-auto @[36rem]:visible @[36rem]:opacity-100"),
2078
2081
  children: /* @__PURE__ */ a(at, {
2079
2082
  ref: v,
2080
2083
  value: o.query,
@@ -2162,8 +2165,8 @@ var vr = {
2162
2165
  Row: ln,
2163
2166
  RowLink: In,
2164
2167
  Value: on,
2165
- Meta: ze.Root,
2166
- MetaItem: ze.Item,
2168
+ Meta: Ge.Root,
2169
+ MetaItem: Ge.Item,
2167
2170
  Receipt: mn,
2168
2171
  ReceiptGroup: fn,
2169
2172
  ReceiptLine: hn,
@@ -2175,7 +2178,7 @@ var vr = {
2175
2178
  Fields: wn,
2176
2179
  Inline: Nn,
2177
2180
  Submit: _n,
2178
- Reveal: He
2181
+ Reveal: ze
2179
2182
  };
2180
2183
  export {
2181
2184
  it as a,
@@ -2185,13 +2188,13 @@ export {
2185
2188
  rt as i,
2186
2189
  ue as l,
2187
2190
  hr as m,
2188
- $e as n,
2191
+ We as n,
2189
2192
  st as o,
2190
2193
  gr as p,
2191
- na as r,
2194
+ ra as r,
2192
2195
  nt as s,
2193
2196
  br as t,
2194
2197
  _t as u
2195
2198
  };
2196
2199
 
2197
- //# sourceMappingURL=basic-page-6dDfY33L.js.map
2200
+ //# sourceMappingURL=basic-page-BHK781ky.js.map