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