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