@photon-ai/pho-ui 4.15.0 → 4.16.1
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-BHK781ky.js → basic-page-C0C8NDjG.js} +643 -626
- package/dist/chunks/{basic-page-BHK781ky.js.map → basic-page-C0C8NDjG.js.map} +1 -1
- package/dist/components/scope.js +1 -1
- package/dist/components/scope.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/sections/basic-page.js +1 -1
- package/dist/src/sections/basic-page/basic-page.d.ts +12 -1
- package/package.json +1 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as u } from "./cn-ChIgwEl3.js";
|
|
3
|
-
import { n as
|
|
4
|
-
import { FADE_ENTRANCE as
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as
|
|
7
|
-
import { f as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
3
|
+
import { n as aa } from "./link-provider-DXzDQ08N.js";
|
|
4
|
+
import { FADE_ENTRANCE as Fa, FADE_SWAP as Ha, SPRING_ENTRANCE as za, TRAVEL_LINEAR as Ga, fadeThroughBlur as Q, revealIn as $a } from "../motion.js";
|
|
5
|
+
import { a as re, o as Re } from "./button-C9VqBBIr.js";
|
|
6
|
+
import { t as Wa } from "./error-D5SzZ0ev.js";
|
|
7
|
+
import { f as Va, p as ja, t as qa } from "./code-block-CbcE994O.js";
|
|
8
|
+
import { t as ce } from "./IconChevronLeft-CSWMKQ4C.js";
|
|
9
|
+
import { t as Ka } from "./IconChevronRight-CzoJnYNI.js";
|
|
10
|
+
import { t as Xa } from "./IconSearch-BKAHkLyX.js";
|
|
11
|
+
import { a as Qa, n as Ua, r as Se, t as Ya } from "./data-table-hzZb7Otx.js";
|
|
12
|
+
import { t as ta } from "./IconX-pZ9vrtSr.js";
|
|
13
|
+
import { t as Ja } from "./toast-BACxYsv6.js";
|
|
14
|
+
import { n as Za, t as na } from "./animated-height-zr7BmFY1.js";
|
|
15
15
|
import { n as Te, t as te } from "./scroll-area-DSwD9th7.js";
|
|
16
|
-
import { i as
|
|
17
|
-
import { t as
|
|
16
|
+
import { i as ra } from "./checkbox-CwvoEJhd.js";
|
|
17
|
+
import { t as et } from "./form-AiHbbw4m.js";
|
|
18
18
|
import { i as Y } from "./menu-BQeprfxB.js";
|
|
19
|
-
import { t as
|
|
19
|
+
import { t as at } from "./ghost-search-8PzP73zS.js";
|
|
20
20
|
import { t as X } from "./tooltip-BTF7GChl.js";
|
|
21
21
|
import { t as Ge } from "./description-list-8qm83WZB.js";
|
|
22
|
-
import { t as
|
|
23
|
-
import { Children as U, Fragment as
|
|
22
|
+
import { t as tt } from "./box-search-C9EVZgcb.js";
|
|
23
|
+
import { Children as U, Fragment as nt, createContext as B, isValidElement as de, useCallback as Pe, useContext as k, useEffect as L, useId as Ie, useLayoutEffect as H, useMemo as V, useRef as C, useState as _, useSyncExternalStore as ge } from "react";
|
|
24
24
|
import { Fragment as Z, jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
25
|
-
import { AnimatePresence as z, motion as N, useIsPresent as
|
|
26
|
-
import { Dialog as
|
|
25
|
+
import { AnimatePresence as z, motion as N, useIsPresent as ia, useReducedMotion as I } from "motion/react";
|
|
26
|
+
import { Dialog as le } from "@base-ui/react/dialog";
|
|
27
27
|
import { createPortal as $e } from "react-dom";
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var ne = "rounded-base border border-pho-secondary bg-pho-primary [--choice-card-inset:0.75rem]", ue = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", sa = `${ne} ${ue} gap-0`, We = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5 [--choice-card-inset:0.75rem]", rt = "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", it = "flex flex-col gap-3 px-5 py-4", st = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", lt = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", P = za, F = Fa, j = 12, la = B(null), Oe = B(!1), ot = 768;
|
|
29
|
+
function ct(e, t = "default") {
|
|
30
30
|
return Math.round(t === "wide" ? Math.min(Math.max(e * (2 / 3), 448), 768) : Math.min(Math.max(e * 0.4, 320), 448));
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
const [t, n] = _(null), [r,
|
|
32
|
+
var oa = B(null), ca = B(null);
|
|
33
|
+
function dt(e) {
|
|
34
|
+
const [t, n] = _(null), [r, l] = _(!1), [i, o] = _(!1), [p, s] = _(!1), [d, m] = _(() => ({
|
|
35
35
|
width: typeof window > "u" ? 0 : window.innerWidth,
|
|
36
36
|
height: null
|
|
37
37
|
}));
|
|
38
38
|
return H(() => {
|
|
39
|
-
const
|
|
40
|
-
if (!r ||
|
|
41
|
-
const h = Me(
|
|
42
|
-
const y =
|
|
39
|
+
const c = e.current;
|
|
40
|
+
if (!r || c == null) return;
|
|
41
|
+
const h = Me(c), g = () => {
|
|
42
|
+
const y = c.offsetWidth, w = h?.clientHeight ?? null;
|
|
43
43
|
m((f) => f.width === y && f.height === w ? f : {
|
|
44
44
|
width: y,
|
|
45
45
|
height: w
|
|
@@ -47,49 +47,49 @@ function ct(e) {
|
|
|
47
47
|
};
|
|
48
48
|
if (g(), typeof ResizeObserver > "u") return;
|
|
49
49
|
const v = new ResizeObserver(g);
|
|
50
|
-
return v.observe(
|
|
50
|
+
return v.observe(c), h != null && v.observe(h), () => v.disconnect();
|
|
51
51
|
}, [e, r]), {
|
|
52
52
|
host: V(() => ({
|
|
53
53
|
slot: t,
|
|
54
|
-
paneNarrow: d.width <
|
|
54
|
+
paneNarrow: d.width < ot,
|
|
55
55
|
paneWidth: d.width,
|
|
56
56
|
paneHeight: d.height,
|
|
57
|
-
setOpen:
|
|
58
|
-
setAsPage:
|
|
59
|
-
setPresent:
|
|
57
|
+
setOpen: o,
|
|
58
|
+
setAsPage: s,
|
|
59
|
+
setPresent: l
|
|
60
60
|
}), [t, d]),
|
|
61
61
|
setSlot: n,
|
|
62
|
-
open:
|
|
62
|
+
open: i,
|
|
63
63
|
asPage: p
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ut(e) {
|
|
67
67
|
return e == null ? window.scrollY : e.scrollTop;
|
|
68
68
|
}
|
|
69
69
|
function Ve(e, t) {
|
|
70
70
|
e == null ? window.scrollTo({ top: t }) : e.scrollTop = t;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
const p = k(
|
|
74
|
-
h.current += q ? 1 : -1,
|
|
75
|
-
}, []), v = t === "full" &&
|
|
72
|
+
function pt({ condense: e = !0, width: t, prerendered: n = !1, className: r, children: l, ref: i, ...o }) {
|
|
73
|
+
const p = k(ie)?.adopt ?? !1, s = k(ca), d = e === "pinned", [m, c] = _(!1), h = C(0), g = Pe((q) => {
|
|
74
|
+
h.current += q ? 1 : -1, c(h.current > 0);
|
|
75
|
+
}, []), v = t === "full" && s == null, y = t === "wide" || t == null && m, [w] = _(Qa), f = C(null), A = V(() => ({
|
|
76
76
|
ref: f,
|
|
77
77
|
prerendered: n
|
|
78
78
|
}), [n]), [x, E] = _(null), [S, O] = _(null);
|
|
79
79
|
L(() => {
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
}, [
|
|
83
|
-
const { host: M, setSlot: D, open: W, asPage:
|
|
80
|
+
if (s != null)
|
|
81
|
+
return s.setBack(S), () => s.setBack(null);
|
|
82
|
+
}, [s, S]);
|
|
83
|
+
const { host: M, setSlot: D, open: W, asPage: se } = dt(f), G = W && se, ye = V(() => ({
|
|
84
84
|
setTitle: E,
|
|
85
85
|
setTail: O,
|
|
86
86
|
pinned: d
|
|
87
87
|
}), [d]), T = V(() => ({
|
|
88
|
-
tail:
|
|
89
|
-
silent: G ||
|
|
88
|
+
tail: s == null ? S : null,
|
|
89
|
+
silent: G || s != null
|
|
90
90
|
}), [
|
|
91
91
|
S,
|
|
92
|
-
|
|
92
|
+
s,
|
|
93
93
|
G
|
|
94
94
|
]), R = C(!1), K = C(0);
|
|
95
95
|
H(() => {
|
|
@@ -97,22 +97,22 @@ function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
97
97
|
if (G === R.current || q == null) return;
|
|
98
98
|
R.current = G;
|
|
99
99
|
const we = Me(q);
|
|
100
|
-
G ? (K.current =
|
|
100
|
+
G ? (K.current = ut(we), Ve(we, 0)) : Ve(we, K.current);
|
|
101
101
|
}, [G]);
|
|
102
|
-
const $ = e && !d ? /* @__PURE__ */ a(
|
|
102
|
+
const $ = e && !d ? /* @__PURE__ */ a(da, {
|
|
103
103
|
title: x,
|
|
104
|
-
tail:
|
|
105
|
-
silent: G ||
|
|
104
|
+
tail: s == null ? S : null,
|
|
105
|
+
silent: G || s != null
|
|
106
106
|
}) : null, xe = /* @__PURE__ */ a("div", {
|
|
107
107
|
"data-basic-page-column": "",
|
|
108
|
-
className: u("mx-auto flex w-full min-w-0 flex-1 flex-col px-5 pt-12 pb-12 *:min-w-0",
|
|
108
|
+
className: u("mx-auto flex w-full min-w-0 flex-1 flex-col px-5 pt-12 pb-12 *:min-w-0", s == null && (v ? "px-0 pb-0" : y ? "max-w-[84rem] md:px-8" : "max-w-[44.5rem]"), d ? "pt-0 [&_[data-basic-page-back]]:hidden" : p || s != null ? "[&_[data-basic-page-back]]:hidden" : "has-[[data-basic-page-back]]:pt-16"),
|
|
109
109
|
children: e ? /* @__PURE__ */ a(Be.Provider, {
|
|
110
110
|
value: ye,
|
|
111
|
-
children: /* @__PURE__ */ a(
|
|
111
|
+
children: /* @__PURE__ */ a(ma.Provider, {
|
|
112
112
|
value: T,
|
|
113
|
-
children:
|
|
113
|
+
children: l
|
|
114
114
|
})
|
|
115
|
-
}) :
|
|
115
|
+
}) : l
|
|
116
116
|
});
|
|
117
117
|
return /* @__PURE__ */ a("div", {
|
|
118
118
|
"data-basic-page-root": "",
|
|
@@ -120,15 +120,15 @@ function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
120
120
|
"data-basic-page-prerendered": n ? "" : void 0,
|
|
121
121
|
"data-basic-page-pinned": d ? "" : void 0,
|
|
122
122
|
className: u("relative flex min-h-full w-full min-w-0 flex-row", r),
|
|
123
|
-
...
|
|
123
|
+
...o,
|
|
124
124
|
ref: (q) => {
|
|
125
|
-
f.current = q, typeof
|
|
125
|
+
f.current = q, typeof i == "function" ? i(q) : i != null && (i.current = q);
|
|
126
126
|
},
|
|
127
|
-
children: /* @__PURE__ */ a(
|
|
127
|
+
children: /* @__PURE__ */ a(la.Provider, {
|
|
128
128
|
value: A,
|
|
129
|
-
children: /* @__PURE__ */ a(
|
|
129
|
+
children: /* @__PURE__ */ a(oa.Provider, {
|
|
130
130
|
value: M,
|
|
131
|
-
children: /* @__PURE__ */ a(
|
|
131
|
+
children: /* @__PURE__ */ a(Ua.Provider, {
|
|
132
132
|
value: g,
|
|
133
133
|
children: /* @__PURE__ */ b(Se.Provider, {
|
|
134
134
|
value: w,
|
|
@@ -147,40 +147,40 @@ function ut({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
var Ne = /* @__PURE__ */ new Set();
|
|
150
|
-
function
|
|
151
|
-
const
|
|
150
|
+
function da({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: l }) {
|
|
151
|
+
const i = I(), [o, p] = _(() => r || !n && Ne.size > 0), s = k(ie), d = Ie();
|
|
152
152
|
H(() => {
|
|
153
|
-
if (!(!
|
|
153
|
+
if (!(!o || n))
|
|
154
154
|
return Ne.add(d), () => {
|
|
155
155
|
Ne.delete(d);
|
|
156
156
|
};
|
|
157
157
|
}, [
|
|
158
158
|
d,
|
|
159
|
-
|
|
159
|
+
o,
|
|
160
160
|
n
|
|
161
161
|
]), L(() => {
|
|
162
|
-
if (
|
|
162
|
+
if (s != null) {
|
|
163
163
|
if (n) {
|
|
164
|
-
|
|
164
|
+
s.store.clear(d);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
condensed:
|
|
167
|
+
s.store.set(d, {
|
|
168
|
+
condensed: o,
|
|
169
169
|
title: e?.label ?? null,
|
|
170
170
|
back: t
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
}, [
|
|
174
|
-
|
|
174
|
+
s,
|
|
175
175
|
d,
|
|
176
|
-
|
|
176
|
+
o,
|
|
177
177
|
e,
|
|
178
178
|
t,
|
|
179
179
|
n
|
|
180
180
|
]), L(() => {
|
|
181
|
-
if (
|
|
182
|
-
return () =>
|
|
183
|
-
}, [
|
|
181
|
+
if (s != null)
|
|
182
|
+
return () => s.store.clear(d);
|
|
183
|
+
}, [s, d]);
|
|
184
184
|
const m = e?.el ?? null;
|
|
185
185
|
L(() => {
|
|
186
186
|
if (r) return;
|
|
@@ -192,17 +192,17 @@ function oa({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: s })
|
|
|
192
192
|
const g = new IntersectionObserver(([v]) => p(v != null && !v.isIntersecting), { root: Me(m) });
|
|
193
193
|
return g.observe(m), () => g.disconnect();
|
|
194
194
|
}, [m, r]);
|
|
195
|
-
const
|
|
195
|
+
const c = i ? 0 : -At, h = i ? "blur(0px)" : `blur(${Te}px)`;
|
|
196
196
|
return /* @__PURE__ */ a("div", {
|
|
197
197
|
"data-basic-page-condense": "",
|
|
198
|
-
className: u("sticky top-0 z-20 h-0 overflow-visible",
|
|
198
|
+
className: u("sticky top-0 z-20 h-0 overflow-visible", l),
|
|
199
199
|
children: /* @__PURE__ */ a(z, {
|
|
200
200
|
initial: !1,
|
|
201
|
-
children:
|
|
201
|
+
children: o && !(s?.adopt ?? !1) && /* @__PURE__ */ b(N.div, {
|
|
202
202
|
initial: { opacity: 0 },
|
|
203
203
|
animate: { opacity: 1 },
|
|
204
204
|
exit: { opacity: 0 },
|
|
205
|
-
transition:
|
|
205
|
+
transition: pe,
|
|
206
206
|
className: "border-pho-secondary bg-pho-page/85 relative grid h-12 grid-cols-[1fr_minmax(0,auto)_1fr] items-center border-b px-3 backdrop-blur",
|
|
207
207
|
children: [/* @__PURE__ */ a("div", {
|
|
208
208
|
className: "flex min-w-0 items-center justify-start",
|
|
@@ -213,7 +213,7 @@ function oa({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: s })
|
|
|
213
213
|
onClick: t.onClick,
|
|
214
214
|
prefix: /* @__PURE__ */ a("span", {
|
|
215
215
|
className: "inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0",
|
|
216
|
-
children: /* @__PURE__ */ a(
|
|
216
|
+
children: /* @__PURE__ */ a(ce, {})
|
|
217
217
|
}),
|
|
218
218
|
className: "min-w-max",
|
|
219
219
|
children: t.label
|
|
@@ -221,7 +221,7 @@ function oa({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: s })
|
|
|
221
221
|
}), /* @__PURE__ */ a(N.span, {
|
|
222
222
|
initial: {
|
|
223
223
|
opacity: 0,
|
|
224
|
-
y:
|
|
224
|
+
y: c,
|
|
225
225
|
filter: h
|
|
226
226
|
},
|
|
227
227
|
animate: {
|
|
@@ -231,12 +231,12 @@ function oa({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: s })
|
|
|
231
231
|
},
|
|
232
232
|
exit: {
|
|
233
233
|
opacity: 0,
|
|
234
|
-
y:
|
|
234
|
+
y: c,
|
|
235
235
|
filter: h
|
|
236
236
|
},
|
|
237
237
|
transition: {
|
|
238
|
-
...
|
|
239
|
-
y:
|
|
238
|
+
...pe,
|
|
239
|
+
y: _t
|
|
240
240
|
},
|
|
241
241
|
className: "text-pho-primary block max-w-full min-w-0 truncate text-center text-base font-medium",
|
|
242
242
|
children: e?.label
|
|
@@ -245,36 +245,36 @@ function oa({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: s })
|
|
|
245
245
|
})
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function mt(e) {
|
|
249
249
|
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ft(e) {
|
|
252
252
|
if (!(typeof e != "string" && typeof e != "number"))
|
|
253
|
-
return
|
|
253
|
+
return mt(String(e)) || void 0;
|
|
254
254
|
}
|
|
255
255
|
function Le(e, t) {
|
|
256
256
|
if (e !== "")
|
|
257
|
-
return e ??
|
|
257
|
+
return e ?? ft(t);
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var ht = (e) => `basic-page-morph-${e}`, gt = { layout: P }, je = 10, qe = {
|
|
260
260
|
delay: 0.2,
|
|
261
261
|
duration: 0.12,
|
|
262
262
|
ease: "easeOut"
|
|
263
|
-
},
|
|
263
|
+
}, bt = {
|
|
264
264
|
duration: 0.18,
|
|
265
265
|
ease: "easeOut"
|
|
266
|
-
},
|
|
266
|
+
}, vt = -8, yt = {
|
|
267
267
|
duration: 0.16,
|
|
268
268
|
ease: "easeOut"
|
|
269
|
-
},
|
|
269
|
+
}, xt = {
|
|
270
270
|
delay: 0.14,
|
|
271
271
|
duration: 0.16,
|
|
272
272
|
ease: "easeOut"
|
|
273
|
-
},
|
|
273
|
+
}, ua = {
|
|
274
274
|
duration: 0.12,
|
|
275
275
|
ease: "easeOut"
|
|
276
276
|
}, J = [];
|
|
277
|
-
function
|
|
277
|
+
function wt(e) {
|
|
278
278
|
const t = C({ labels: e });
|
|
279
279
|
t.current.labels = e, H(() => {
|
|
280
280
|
const n = t.current;
|
|
@@ -283,54 +283,54 @@ function xt(e) {
|
|
|
283
283
|
};
|
|
284
284
|
}, []);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function pa() {
|
|
287
287
|
const [e] = _(() => {
|
|
288
288
|
const t = J[J.length - 1];
|
|
289
289
|
return t ? { labels: [...t.labels] } : null;
|
|
290
290
|
});
|
|
291
291
|
return e;
|
|
292
292
|
}
|
|
293
|
-
var Be = B(null),
|
|
293
|
+
var Be = B(null), ma = B({
|
|
294
294
|
tail: null,
|
|
295
295
|
silent: !1
|
|
296
296
|
}), Ce = {
|
|
297
297
|
condensed: !1,
|
|
298
298
|
title: null,
|
|
299
299
|
back: null
|
|
300
|
-
},
|
|
300
|
+
}, ie = B(null), be = () => () => {
|
|
301
301
|
}, Ke = () => Ce;
|
|
302
|
-
function
|
|
302
|
+
function Nt({ adopt: e = !0, children: t }) {
|
|
303
303
|
const [n] = _(() => {
|
|
304
|
-
let
|
|
305
|
-
const
|
|
306
|
-
for (const
|
|
304
|
+
let l = Ce, i = null;
|
|
305
|
+
const o = /* @__PURE__ */ new Set(), p = () => {
|
|
306
|
+
for (const s of o) s();
|
|
307
307
|
};
|
|
308
308
|
return {
|
|
309
|
-
get: () =>
|
|
310
|
-
set(
|
|
311
|
-
|
|
309
|
+
get: () => l,
|
|
310
|
+
set(s, d) {
|
|
311
|
+
i = s, l = d, p();
|
|
312
312
|
},
|
|
313
|
-
clear(
|
|
314
|
-
|
|
313
|
+
clear(s) {
|
|
314
|
+
i === s && (i = null, l = Ce, p());
|
|
315
315
|
},
|
|
316
|
-
subscribe(
|
|
317
|
-
return
|
|
316
|
+
subscribe(s) {
|
|
317
|
+
return o.add(s), () => o.delete(s);
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
}), r = V(() => ({
|
|
321
321
|
store: n,
|
|
322
322
|
adopt: e
|
|
323
323
|
}), [n, e]);
|
|
324
|
-
return /* @__PURE__ */ a(
|
|
324
|
+
return /* @__PURE__ */ a(ie.Provider, {
|
|
325
325
|
value: r,
|
|
326
326
|
children: t
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
function hr() {
|
|
330
|
-
const e = k(
|
|
331
|
-
return
|
|
330
|
+
const e = k(ie);
|
|
331
|
+
return ge(e?.store.subscribe ?? be, e?.store.get ?? Ke, e?.store.get ?? Ke);
|
|
332
332
|
}
|
|
333
|
-
var
|
|
333
|
+
var pe = Ha, _t = Ga, At = -8;
|
|
334
334
|
function Me(e) {
|
|
335
335
|
if (typeof getComputedStyle != "function") return null;
|
|
336
336
|
for (let t = e.parentElement; t != null && t !== document.body; t = t.parentElement) {
|
|
@@ -339,36 +339,36 @@ function Me(e) {
|
|
|
339
339
|
}
|
|
340
340
|
return null;
|
|
341
341
|
}
|
|
342
|
-
var _e = /* @__PURE__ */ new Map(),
|
|
343
|
-
function
|
|
342
|
+
var _e = /* @__PURE__ */ new Map(), Ct = 96;
|
|
343
|
+
function Et(e) {
|
|
344
344
|
const t = e.closest("[data-basic-page-root]"), n = t?.querySelector("[data-basic-page-column]");
|
|
345
345
|
return !t || !n ? 0 : n.getBoundingClientRect().left - t.getBoundingClientRect().left;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function fa(e) {
|
|
348
348
|
const [t] = _(() => {
|
|
349
349
|
if (e == null) return !1;
|
|
350
350
|
const r = _e.get(e);
|
|
351
|
-
return r != null && r.visible && r.el.isConnected &&
|
|
351
|
+
return r != null && r.visible && r.el.isConnected && Et(r.el) <= Ct;
|
|
352
352
|
}), n = C(null);
|
|
353
353
|
return L(() => {
|
|
354
354
|
if (e == null || typeof IntersectionObserver > "u") return;
|
|
355
355
|
const r = n.current;
|
|
356
356
|
if (!r) return;
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
visible:
|
|
357
|
+
const l = new IntersectionObserver(([i]) => {
|
|
358
|
+
i && _e.set(e, {
|
|
359
|
+
visible: i.isIntersecting,
|
|
360
360
|
el: r
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
return
|
|
364
|
-
|
|
363
|
+
return l.observe(r), () => {
|
|
364
|
+
l.disconnect(), _e.delete(e);
|
|
365
365
|
};
|
|
366
366
|
}, [e]), {
|
|
367
367
|
fly: t,
|
|
368
368
|
ref: n
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var kt = {
|
|
372
372
|
fade: {
|
|
373
373
|
initial: { opacity: 0 },
|
|
374
374
|
animate: { opacity: 1 },
|
|
@@ -391,72 +391,72 @@ var Et = {
|
|
|
391
391
|
slide: {
|
|
392
392
|
initial: { x: "-100%" },
|
|
393
393
|
animate: { x: 0 },
|
|
394
|
-
transition: { x:
|
|
394
|
+
transition: { x: xt }
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
|
-
function
|
|
398
|
-
const [p,
|
|
397
|
+
function ha({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: l, className: i, children: o }) {
|
|
398
|
+
const [p, s] = _(!1), d = !n && l != null ? kt[l] : null;
|
|
399
399
|
return /* @__PURE__ */ b(N.span, {
|
|
400
400
|
ref: r,
|
|
401
|
-
layoutId:
|
|
401
|
+
layoutId: ht(e),
|
|
402
402
|
initial: d?.initial,
|
|
403
403
|
animate: d?.animate,
|
|
404
|
-
transition: n ?
|
|
404
|
+
transition: n ? gt : {
|
|
405
405
|
layout: { duration: 0 },
|
|
406
406
|
...d?.transition
|
|
407
407
|
},
|
|
408
408
|
onLayoutAnimationStart: () => {
|
|
409
|
-
n &&
|
|
409
|
+
n && s(!0);
|
|
410
410
|
},
|
|
411
|
-
onLayoutAnimationComplete: () =>
|
|
412
|
-
className: u("relative inline-block",
|
|
413
|
-
children: [
|
|
411
|
+
onLayoutAnimationComplete: () => s(!1),
|
|
412
|
+
className: u("relative inline-block", i),
|
|
413
|
+
children: [o, p && /* @__PURE__ */ a(N.span, {
|
|
414
414
|
"aria-hidden": !0,
|
|
415
415
|
initial: { opacity: 1 },
|
|
416
416
|
animate: { opacity: 0 },
|
|
417
|
-
transition:
|
|
418
|
-
onAnimationComplete: () =>
|
|
417
|
+
transition: bt,
|
|
418
|
+
onAnimationComplete: () => s(!1),
|
|
419
419
|
className: u("absolute inset-0", t),
|
|
420
|
-
children:
|
|
420
|
+
children: o
|
|
421
421
|
})]
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
|
-
var Xe = "max-w-full min-w-0 truncate align-top", Qe = "flex shrink-0 items-center",
|
|
424
|
+
var Xe = "max-w-full min-w-0 truncate align-top", Qe = "flex shrink-0 items-center", ga = B(!1);
|
|
425
425
|
function Ue(e) {
|
|
426
|
-
return typeof e == "string" || typeof e == "number" ? e : /* @__PURE__ */ a(
|
|
426
|
+
return typeof e == "string" || typeof e == "number" ? e : /* @__PURE__ */ a(ga.Provider, {
|
|
427
427
|
value: !0,
|
|
428
428
|
children: e
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return k(
|
|
431
|
+
function Rt({ inBar: e = !0, children: t }) {
|
|
432
|
+
return k(ga) && !e ? null : /* @__PURE__ */ a(Z, { children: t });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
const p = Le(e,
|
|
434
|
+
function St({ id: e, morphId: t, enter: n, trailing: r, className: l, children: i, ...o }) {
|
|
435
|
+
const p = Le(e, i), s = I(), d = ve(n === !0), m = fa(t), c = pa(), h = !s && (t != null || d === !0), g = d || c != null ? "rise" : void 0, v = k(Be), y = v?.pinned ?? !1, w = k(ie)?.adopt ?? !1, f = k(ma), A = C(null);
|
|
436
436
|
H(() => {
|
|
437
437
|
if (!(v == null || y))
|
|
438
438
|
return v.setTitle({
|
|
439
|
-
label: Ue(
|
|
439
|
+
label: Ue(i),
|
|
440
440
|
el: A.current
|
|
441
441
|
}), () => v.setTitle(null);
|
|
442
442
|
}, [
|
|
443
443
|
v,
|
|
444
444
|
y,
|
|
445
|
-
|
|
445
|
+
i
|
|
446
446
|
]);
|
|
447
|
-
const [x, E] = _(m.fly &&
|
|
447
|
+
const [x, E] = _(m.fly && c != null);
|
|
448
448
|
H(() => {
|
|
449
449
|
J.length > 0 && E(!1);
|
|
450
450
|
}, []);
|
|
451
|
-
const S = r != null && r !== !1, O = !
|
|
451
|
+
const S = r != null && r !== !1, O = !s && (t != null ? m.fly || g != null : d === !0), M = t != null && !s ? /* @__PURE__ */ a(ha, {
|
|
452
452
|
morphId: t,
|
|
453
453
|
fromClassName: "text-pho-secondary",
|
|
454
454
|
fly: m.fly,
|
|
455
455
|
morphRef: m.ref,
|
|
456
456
|
arrival: g,
|
|
457
457
|
className: Xe,
|
|
458
|
-
children:
|
|
459
|
-
}) : d && !
|
|
458
|
+
children: i
|
|
459
|
+
}) : d && !s ? /* @__PURE__ */ a(N.span, {
|
|
460
460
|
initial: {
|
|
461
461
|
opacity: 0,
|
|
462
462
|
y: j
|
|
@@ -470,14 +470,14 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
|
|
|
470
470
|
opacity: F
|
|
471
471
|
},
|
|
472
472
|
className: u("inline-block", Xe),
|
|
473
|
-
children:
|
|
473
|
+
children: i
|
|
474
474
|
}) : S ? /* @__PURE__ */ a("span", {
|
|
475
475
|
className: "min-w-0 truncate",
|
|
476
|
-
children:
|
|
477
|
-
}) :
|
|
478
|
-
return /* @__PURE__ */ b(Z, { children: [y && v != null && /* @__PURE__ */ a(
|
|
476
|
+
children: i
|
|
477
|
+
}) : i;
|
|
478
|
+
return /* @__PURE__ */ b(Z, { children: [y && v != null && /* @__PURE__ */ a(da, {
|
|
479
479
|
title: {
|
|
480
|
-
label: Ue(
|
|
480
|
+
label: Ue(i),
|
|
481
481
|
el: A.current
|
|
482
482
|
},
|
|
483
483
|
tail: f.tail,
|
|
@@ -487,11 +487,11 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
|
|
|
487
487
|
}), /* @__PURE__ */ b("h1", {
|
|
488
488
|
id: p,
|
|
489
489
|
"data-basic-page-title": "",
|
|
490
|
-
className: u("text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-medium", !y && "min-h-[1lh]", h ? "whitespace-nowrap" : "truncate", y && "sr-only",
|
|
491
|
-
...
|
|
490
|
+
className: u("text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-medium", !y && "min-h-[1lh]", h ? "whitespace-nowrap" : "truncate", y && "sr-only", l),
|
|
491
|
+
...o,
|
|
492
492
|
ref: (D) => {
|
|
493
493
|
A.current = D;
|
|
494
|
-
const W =
|
|
494
|
+
const W = o.ref;
|
|
495
495
|
typeof W == "function" ? W(D) : W != null && (W.current = D);
|
|
496
496
|
},
|
|
497
497
|
children: [S ? /* @__PURE__ */ b("span", {
|
|
@@ -521,25 +521,25 @@ function Rt({ id: e, morphId: t, enter: n, trailing: r, className: s, children:
|
|
|
521
521
|
"aria-hidden": !0,
|
|
522
522
|
initial: { opacity: 1 },
|
|
523
523
|
animate: { opacity: 0 },
|
|
524
|
-
transition:
|
|
524
|
+
transition: ua,
|
|
525
525
|
onAnimationComplete: () => E(!1),
|
|
526
526
|
className: u("text-pho-secondary pointer-events-none absolute inline-flex items-center", En),
|
|
527
|
-
children: /* @__PURE__ */ a(
|
|
527
|
+
children: /* @__PURE__ */ a(ce, {})
|
|
528
528
|
})]
|
|
529
529
|
})] });
|
|
530
530
|
}
|
|
531
531
|
var De = B(!1);
|
|
532
|
-
function
|
|
532
|
+
function Tt() {
|
|
533
533
|
const e = k(De), t = I(), [n] = _(() => e && !t);
|
|
534
534
|
return n;
|
|
535
535
|
}
|
|
536
|
-
var
|
|
536
|
+
var Pt = {
|
|
537
537
|
height: 0,
|
|
538
538
|
opacity: 0,
|
|
539
539
|
paddingTop: 0,
|
|
540
540
|
paddingBottom: 0,
|
|
541
541
|
borderTopWidth: 0
|
|
542
|
-
},
|
|
542
|
+
}, It = {
|
|
543
543
|
y: P,
|
|
544
544
|
opacity: F,
|
|
545
545
|
height: P,
|
|
@@ -548,7 +548,7 @@ var Tt = {
|
|
|
548
548
|
borderTopWidth: P
|
|
549
549
|
};
|
|
550
550
|
function ee() {
|
|
551
|
-
const e =
|
|
551
|
+
const e = Tt(), t = ia(), n = I();
|
|
552
552
|
return {
|
|
553
553
|
initial: e ? {
|
|
554
554
|
opacity: 0,
|
|
@@ -558,57 +558,57 @@ function ee() {
|
|
|
558
558
|
opacity: 1,
|
|
559
559
|
y: 0
|
|
560
560
|
},
|
|
561
|
-
exit:
|
|
562
|
-
transition: n ? { duration: 0 } :
|
|
561
|
+
exit: Pt,
|
|
562
|
+
transition: n ? { duration: 0 } : It,
|
|
563
563
|
leaving: !t
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
function
|
|
566
|
+
var Ot = typeof process < "u" && process.env.NODE_ENV !== "production";
|
|
567
|
+
function ba(e, t, n, r) {
|
|
568
568
|
L(() => {
|
|
569
|
-
if (!
|
|
570
|
-
const
|
|
571
|
-
const p = getComputedStyle(
|
|
569
|
+
if (!Ot || e.current == null || typeof getComputedStyle != "function") return;
|
|
570
|
+
const l = (o) => {
|
|
571
|
+
const p = getComputedStyle(o).rowGap;
|
|
572
572
|
return p === "" || p === "normal" ? null : parseFloat(p);
|
|
573
|
-
},
|
|
574
|
-
|
|
575
|
-
for (const
|
|
576
|
-
const p = r(
|
|
577
|
-
if (p == null || getComputedStyle(
|
|
578
|
-
const
|
|
579
|
-
|
|
573
|
+
}, i = l(e.current);
|
|
574
|
+
i != null && i !== n && console.warn(`[BasicPage.${t}] spaced at ${i}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);
|
|
575
|
+
for (const o of Array.from(e.current.children)) {
|
|
576
|
+
const p = r(o);
|
|
577
|
+
if (p == null || getComputedStyle(o).display === "contents") continue;
|
|
578
|
+
const s = l(o);
|
|
579
|
+
s != null && s !== p && console.warn(`[BasicPage.${t}] a child is spaced at ${s}px instead of ${p}px. Spacing is the system's: Stack gap-10 between blocks, a block gap-3, Fields gap-5. Remove the class and move the wrapper instead.`, o);
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Lt(e) {
|
|
584
584
|
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);
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return
|
|
586
|
+
var Bt = () => !1, Mt = () => !0;
|
|
587
|
+
function Dt() {
|
|
588
|
+
return ge(be, Bt, Mt);
|
|
589
589
|
}
|
|
590
590
|
function ve(e, t = !1) {
|
|
591
|
-
const n = k(
|
|
592
|
-
if (
|
|
591
|
+
const n = k(la), r = k(Oe), l = Dt(), [i] = _(() => {
|
|
592
|
+
if (l || !e || n?.prerendered || r) return !1;
|
|
593
593
|
if (t) return !0;
|
|
594
594
|
if (document.querySelector("[data-basic-page-prerendered]") != null) return !1;
|
|
595
|
-
const
|
|
596
|
-
return
|
|
595
|
+
const o = n ? n.ref.current : document;
|
|
596
|
+
return o == null || !Lt(o);
|
|
597
597
|
});
|
|
598
|
-
return
|
|
598
|
+
return i;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
const p = ve(e ?? !0, e === !0),
|
|
600
|
+
function oe({ enter: e, className: t, children: n, ref: r, ...l }) {
|
|
601
|
+
const i = I(), o = C(null);
|
|
602
|
+
ba(o, "Stack", 40, (h) => h.hasAttribute("data-basic-page-fields") ? 20 : h.hasAttribute("data-basic-page-card") || h.hasAttribute("data-basic-page-onboard") || h.hasAttribute("data-basic-page-receipt") || h.hasAttribute("data-basic-page-header") || h.hasAttribute("data-basic-page-columns") || h.hasAttribute("data-data-table") || h.hasAttribute("data-code-block") ? null : 12);
|
|
603
|
+
const p = ve(e ?? !0, e === !0), s = l["aria-busy"], d = s === !0 || s === "true", m = C(d), c = m.current && !d;
|
|
604
604
|
return L(() => {
|
|
605
605
|
m.current = d;
|
|
606
606
|
}), /* @__PURE__ */ a(N.div, {
|
|
607
607
|
ref: (h) => {
|
|
608
|
-
|
|
608
|
+
o.current = h, typeof r == "function" ? r(h) : r != null && (r.current = h);
|
|
609
609
|
},
|
|
610
610
|
"data-basic-page-stack": "",
|
|
611
|
-
initial:
|
|
611
|
+
initial: i || !p ? !1 : {
|
|
612
612
|
opacity: 0,
|
|
613
613
|
y: j
|
|
614
614
|
},
|
|
@@ -621,15 +621,15 @@ function le({ enter: e, className: t, children: n, ref: r, ...s }) {
|
|
|
621
621
|
opacity: F
|
|
622
622
|
},
|
|
623
623
|
className: u("mt-7 flex min-w-0 flex-col gap-10 [--choice-card-inset:1.25rem]", "[&:has(>*:first-child:not([data-basic-page-callout])>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child:not([data-basic-page-callout])>h2:first-child)]:mt-6 [&:has(>[data-basic-page-header]:first-child)]:mt-6 [&:has(>h2:first-child)]:mt-6", "[&:has(>*:first-child>[data-basic-page-form-body]>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child>[data-basic-page-form-body]>h2:first-child)]:mt-6", "[[data-basic-page-pinned]:not([data-basic-page-width=full])_[data-basic-page-column]_&]:mt-3 [[data-basic-page-pinned][data-basic-page-width=full]_[data-basic-page-column]_&]:mt-0", "*:min-w-0 [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-receipt]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table]):not([data-code-block])]:flex [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-receipt]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table]):not([data-code-block])]:flex-col [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-receipt]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table]):not([data-code-block])]:gap-3", t),
|
|
624
|
-
...
|
|
624
|
+
...l,
|
|
625
625
|
children: /* @__PURE__ */ a(De.Provider, {
|
|
626
|
-
value:
|
|
626
|
+
value: c,
|
|
627
627
|
children: n
|
|
628
628
|
})
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
var Ye = "@container grid min-w-0 grid-cols-[minmax(0,1fr)_auto_auto] mb-3 gap-y-0 [&>:not([data-basic-page-search]):not([data-basic-page-header-action])]:col-start-1 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:row-span-2 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:self-center [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):not(:nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-end [&>:not([data-basic-page-search]):not([data-basic-page-header-action]):not(:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-start [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0";
|
|
632
|
-
function
|
|
632
|
+
function Ft({ enter: e, className: t, ...n }) {
|
|
633
633
|
const r = I();
|
|
634
634
|
return ve(e === !0) && !r ? /* @__PURE__ */ a(N.div, {
|
|
635
635
|
initial: {
|
|
@@ -653,83 +653,83 @@ function Dt({ enter: e, className: t, ...n }) {
|
|
|
653
653
|
"data-basic-page-header": ""
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Ht({ className: e, ...t }) {
|
|
657
657
|
return /* @__PURE__ */ a("div", {
|
|
658
658
|
"data-basic-page-header-action": "",
|
|
659
659
|
className: u("flex items-center gap-2", "[[data-basic-page-header]>&]:col-start-3 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:mr-5 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:self-center [[data-basic-page-header]>&]:justify-self-end", "[[data-basic-page-callout]_[data-basic-page-header]>&]:mr-0", e),
|
|
660
660
|
...t
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const
|
|
663
|
+
function zt({ id: e, className: t, children: n, ...r }) {
|
|
664
|
+
const l = Le(e, n);
|
|
665
665
|
return /* @__PURE__ */ a("h2", {
|
|
666
|
-
id:
|
|
666
|
+
id: l,
|
|
667
667
|
className: u("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", "mb-3 [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-header]>&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0", t),
|
|
668
668
|
...r,
|
|
669
669
|
children: n
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function va({ className: e, ...t }) {
|
|
673
673
|
return /* @__PURE__ */ a("p", {
|
|
674
674
|
className: u("text-display-xs text-pho-description px-5 font-normal", e),
|
|
675
675
|
...t
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
const r = k(Se),
|
|
680
|
-
if (
|
|
681
|
-
const
|
|
682
|
-
return /* @__PURE__ */ a(
|
|
678
|
+
function Gt({ one: e, other: t, ...n }) {
|
|
679
|
+
const r = k(Se), l = ge(r?.subscribe ?? be, () => r?.get().api ?? null, () => null);
|
|
680
|
+
if (l == null) return null;
|
|
681
|
+
const i = l.query.trim() !== "" ? `${l.matched} of ${l.total}.` : `${l.total} ${l.total === 1 ? e : t}.`;
|
|
682
|
+
return /* @__PURE__ */ a(va, {
|
|
683
683
|
...n,
|
|
684
|
-
children:
|
|
684
|
+
children: i
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function $t({ className: e, ...t }) {
|
|
688
688
|
return /* @__PURE__ */ a("p", {
|
|
689
689
|
className: u("text-pho-description px-5 text-xs font-normal", "mt-3 [[data-basic-page-callout]_&]:mt-0 [[data-basic-page-stack]>*>&]:mt-0 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mt-0", e),
|
|
690
690
|
...t
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
const
|
|
693
|
+
function Wt({ animateHeight: e, className: t, children: n, ...r }) {
|
|
694
|
+
const l = /* @__PURE__ */ a(z, { children: U.toArray(n) });
|
|
695
695
|
return e ? /* @__PURE__ */ a("div", {
|
|
696
|
-
className: u(
|
|
696
|
+
className: u(ne, "min-h-0 gap-0", t),
|
|
697
697
|
...r,
|
|
698
698
|
"data-basic-page-card": "",
|
|
699
|
-
children: /* @__PURE__ */ a(
|
|
699
|
+
children: /* @__PURE__ */ a(na, {
|
|
700
700
|
transition: P,
|
|
701
|
-
className:
|
|
702
|
-
children:
|
|
701
|
+
className: ue,
|
|
702
|
+
children: l
|
|
703
703
|
})
|
|
704
704
|
}) : /* @__PURE__ */ a("div", {
|
|
705
|
-
className: u(
|
|
705
|
+
className: u(sa, t),
|
|
706
706
|
...r,
|
|
707
707
|
"data-basic-page-card": "",
|
|
708
|
-
children:
|
|
708
|
+
children: l
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Vt({ className: e, ...t }) {
|
|
712
712
|
const { leaving: n, ...r } = ee();
|
|
713
713
|
return /* @__PURE__ */ a(N.div, {
|
|
714
714
|
...r,
|
|
715
|
-
className: u(
|
|
715
|
+
className: u(it, n && "overflow-hidden", e),
|
|
716
716
|
...t
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function jt({ divided: e = !1, className: t, ...n }) {
|
|
720
720
|
return /* @__PURE__ */ a("div", {
|
|
721
|
-
className: u(e ?
|
|
721
|
+
className: u(e ? lt : st, t),
|
|
722
722
|
...n
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function qt({ className: e, icon: t, children: n, ...r }) {
|
|
726
726
|
if (t == null || t === !1 || t === !0) return /* @__PURE__ */ a("div", {
|
|
727
727
|
className: u(We, e),
|
|
728
728
|
...r,
|
|
729
729
|
"data-basic-page-callout": "",
|
|
730
730
|
children: n
|
|
731
731
|
});
|
|
732
|
-
const [
|
|
732
|
+
const [l, ...i] = U.toArray(n);
|
|
733
733
|
return /* @__PURE__ */ b("div", {
|
|
734
734
|
className: u(We, e),
|
|
735
735
|
...r,
|
|
@@ -738,78 +738,78 @@ function jt({ className: e, icon: t, children: n, ...r }) {
|
|
|
738
738
|
className: "relative",
|
|
739
739
|
children: [/* @__PURE__ */ a("div", {
|
|
740
740
|
className: "min-w-0 pr-16",
|
|
741
|
-
children:
|
|
741
|
+
children: l
|
|
742
742
|
}), /* @__PURE__ */ a("div", {
|
|
743
743
|
"aria-hidden": !0,
|
|
744
744
|
className: "text-pho-primary pointer-events-none absolute top-0 right-0 size-14 opacity-[0.275] [&>svg]:size-full",
|
|
745
745
|
children: t
|
|
746
746
|
})]
|
|
747
|
-
}),
|
|
747
|
+
}), i]
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
const
|
|
750
|
+
function Kt({ id: e, className: t, children: n, ...r }) {
|
|
751
|
+
const l = Le(e, n);
|
|
752
752
|
return /* @__PURE__ */ a("h2", {
|
|
753
|
-
id:
|
|
753
|
+
id: l,
|
|
754
754
|
className: u("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
|
|
755
755
|
...r,
|
|
756
756
|
children: n
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Xt({ className: e, ...t }) {
|
|
760
760
|
return /* @__PURE__ */ a("p", {
|
|
761
761
|
className: u("text-display-xs text-pho-description font-normal", e),
|
|
762
762
|
...t
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
|
-
var Fe = B(null),
|
|
766
|
-
function
|
|
765
|
+
var Fe = B(null), ya = B(!1);
|
|
766
|
+
function xa(e) {
|
|
767
767
|
return e === "current" || e === "working" || e === "pending";
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Qt(e) {
|
|
770
770
|
let t = -1;
|
|
771
771
|
return {
|
|
772
772
|
steps: U.toArray(e).map((n, r) => {
|
|
773
|
-
if (!
|
|
773
|
+
if (!de(n)) return {
|
|
774
774
|
node: n,
|
|
775
775
|
key: r,
|
|
776
776
|
index: r,
|
|
777
777
|
state: null,
|
|
778
778
|
page: null
|
|
779
779
|
};
|
|
780
|
-
let
|
|
781
|
-
return n.props.done ?
|
|
780
|
+
let l;
|
|
781
|
+
return n.props.done ? l = "done" : t !== -1 ? l = "upcoming" : (t = r, l = n.props.working ? "working" : n.props.pending ? "pending" : "current"), {
|
|
782
782
|
node: n,
|
|
783
783
|
key: n.key ?? r,
|
|
784
784
|
index: r,
|
|
785
|
-
state:
|
|
785
|
+
state: l,
|
|
786
786
|
page: n.props.children
|
|
787
787
|
};
|
|
788
788
|
}),
|
|
789
789
|
atHand: t
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
const { steps:
|
|
794
|
-
return e ? /* @__PURE__ */ a(
|
|
795
|
-
steps:
|
|
796
|
-
atHand:
|
|
792
|
+
function Ut({ paged: e, className: t, children: n, ...r }) {
|
|
793
|
+
const { steps: l, atHand: i } = Qt(n);
|
|
794
|
+
return e ? /* @__PURE__ */ a(Zt, {
|
|
795
|
+
steps: l,
|
|
796
|
+
atHand: i,
|
|
797
797
|
className: t,
|
|
798
798
|
...r
|
|
799
799
|
}) : /* @__PURE__ */ a("ol", {
|
|
800
|
-
className: u(
|
|
800
|
+
className: u(sa, "m-0 list-none p-0", t),
|
|
801
801
|
...r,
|
|
802
802
|
"data-basic-page-onboard": "",
|
|
803
|
-
children:
|
|
803
|
+
children: l.map((o) => o.state == null ? o.node : /* @__PURE__ */ a(Fe.Provider, {
|
|
804
804
|
value: {
|
|
805
|
-
number:
|
|
806
|
-
state:
|
|
805
|
+
number: o.index + 1,
|
|
806
|
+
state: o.state
|
|
807
807
|
},
|
|
808
|
-
children:
|
|
809
|
-
},
|
|
808
|
+
children: o.node
|
|
809
|
+
}, o.key))
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Yt(e) {
|
|
813
813
|
const t = Q(e);
|
|
814
814
|
return {
|
|
815
815
|
enter: (n) => ({
|
|
@@ -832,21 +832,21 @@ function Ut(e) {
|
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
const t =
|
|
835
|
+
function Jt(e) {
|
|
836
|
+
const t = ia();
|
|
837
837
|
return /* @__PURE__ */ a(N.section, {
|
|
838
838
|
...e,
|
|
839
839
|
inert: !t,
|
|
840
840
|
"data-basic-page-onboard-page": ""
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
const
|
|
843
|
+
function Zt({ steps: e, atHand: t, className: n, ref: r, ...l }) {
|
|
844
|
+
const i = I(), o = ve(!0), p = Ie(), s = C(null), d = C(null), m = C(null), [c, h] = _({
|
|
845
845
|
from: t,
|
|
846
846
|
direction: 1
|
|
847
847
|
});
|
|
848
|
-
let g =
|
|
849
|
-
|
|
848
|
+
let g = c.direction;
|
|
849
|
+
c.from !== t && (g = t > c.from ? 1 : -1, h({
|
|
850
850
|
from: t,
|
|
851
851
|
direction: g
|
|
852
852
|
}));
|
|
@@ -854,7 +854,7 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
|
|
|
854
854
|
H(() => {
|
|
855
855
|
if (v.current === t) return;
|
|
856
856
|
v.current = t;
|
|
857
|
-
const f =
|
|
857
|
+
const f = s.current, A = d.current, x = m.current;
|
|
858
858
|
if (t === -1 || f == null || A == null || x == null) return;
|
|
859
859
|
typeof A.scrollIntoView == "function" && A.scrollIntoView({ block: "nearest" });
|
|
860
860
|
const E = document.activeElement;
|
|
@@ -862,9 +862,9 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
|
|
|
862
862
|
}, [t]);
|
|
863
863
|
const y = e.filter((f) => f.state != null).at(-1)?.index, w = t === -1 ? null : e[t];
|
|
864
864
|
return /* @__PURE__ */ b(N.div, {
|
|
865
|
-
ref:
|
|
865
|
+
ref: s,
|
|
866
866
|
"data-basic-page-onboard": "paged",
|
|
867
|
-
initial:
|
|
867
|
+
initial: i || !o ? !1 : {
|
|
868
868
|
opacity: 0,
|
|
869
869
|
y: j
|
|
870
870
|
},
|
|
@@ -882,7 +882,7 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
|
|
|
882
882
|
d.current = f, typeof r == "function" ? r(f) : r != null && (r.current = f);
|
|
883
883
|
},
|
|
884
884
|
className: u("m-0 flex min-w-0 scroll-mt-12 list-none items-center gap-3 p-0 px-5", n),
|
|
885
|
-
...
|
|
885
|
+
...l,
|
|
886
886
|
"data-basic-page-onboard-row": "",
|
|
887
887
|
children: e.map((f) => f.state == null ? f.node : /* @__PURE__ */ a(Fe.Provider, {
|
|
888
888
|
value: {
|
|
@@ -898,12 +898,12 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
|
|
|
898
898
|
}), /* @__PURE__ */ a(z, {
|
|
899
899
|
initial: !1,
|
|
900
900
|
mode: "popLayout",
|
|
901
|
-
children: w != null ? /* @__PURE__ */ a(
|
|
901
|
+
children: w != null ? /* @__PURE__ */ a(Jt, {
|
|
902
902
|
ref: (f) => {
|
|
903
903
|
f != null && (m.current = f);
|
|
904
904
|
},
|
|
905
905
|
custom: g,
|
|
906
|
-
variants:
|
|
906
|
+
variants: Yt(i),
|
|
907
907
|
initial: "enter",
|
|
908
908
|
animate: "rest",
|
|
909
909
|
exit: "leave",
|
|
@@ -918,93 +918,93 @@ function Jt({ steps: e, atHand: t, className: n, ref: r, ...s }) {
|
|
|
918
918
|
})]
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
var
|
|
921
|
+
var wa = "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]", Na = {
|
|
922
922
|
done: "border-pho-ink text-pho-primary",
|
|
923
923
|
current: "bg-pho-brand-solid text-pho-on-brand border-transparent",
|
|
924
924
|
working: "border-transparent text-pho-primary",
|
|
925
925
|
pending: "border-pho-ink text-pho-primary border-dashed",
|
|
926
926
|
upcoming: "border-pho-primary text-pho-description"
|
|
927
|
-
},
|
|
927
|
+
}, _a = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink opacity-30", Aa = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink border-r-transparent border-b-transparent border-l-transparent animate-pho-spinner", Ca = {
|
|
928
928
|
done: "Done.",
|
|
929
929
|
working: "In progress.",
|
|
930
930
|
pending: "Waiting."
|
|
931
931
|
};
|
|
932
|
-
function
|
|
933
|
-
const
|
|
932
|
+
function Ea({ state: e, number: t, glyph: n, className: r }) {
|
|
933
|
+
const l = I();
|
|
934
934
|
return /* @__PURE__ */ b("span", {
|
|
935
935
|
"aria-hidden": !0,
|
|
936
|
-
className: u(
|
|
936
|
+
className: u(wa, Na[e], r),
|
|
937
937
|
children: [/* @__PURE__ */ a(z, {
|
|
938
938
|
initial: !1,
|
|
939
939
|
children: e === "done" ? /* @__PURE__ */ a(N.span, {
|
|
940
|
-
...Q(
|
|
940
|
+
...Q(l),
|
|
941
941
|
className: "flex [&>svg]:size-3",
|
|
942
|
-
children: n ?? /* @__PURE__ */ a(
|
|
942
|
+
children: n ?? /* @__PURE__ */ a(ra, { className: "size-3" })
|
|
943
943
|
}, "check") : /* @__PURE__ */ a(N.span, {
|
|
944
|
-
...Q(
|
|
944
|
+
...Q(l),
|
|
945
945
|
children: t
|
|
946
946
|
}, "number")
|
|
947
|
-
}), e === "working" ? /* @__PURE__ */ b(Z, { children: [/* @__PURE__ */ a("span", { className:
|
|
947
|
+
}), e === "working" ? /* @__PURE__ */ b(Z, { children: [/* @__PURE__ */ a("span", { className: _a }), /* @__PURE__ */ a("span", { className: Aa })] }) : null]
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
|
-
var
|
|
950
|
+
var ka = {
|
|
951
951
|
done: "Done",
|
|
952
952
|
working: "In progress",
|
|
953
953
|
pending: "Waiting",
|
|
954
954
|
upcoming: "Not yet",
|
|
955
955
|
failed: null
|
|
956
|
-
},
|
|
957
|
-
function
|
|
956
|
+
}, Ra = B(!1);
|
|
957
|
+
function en(e) {
|
|
958
958
|
const t = e.findIndex((n) => n === "failed" || n === "pending" || n === "working");
|
|
959
959
|
return t === -1 ? e.lastIndexOf("done") : t;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
const r = U.toArray(t),
|
|
961
|
+
function an({ className: e, children: t, ...n }) {
|
|
962
|
+
const r = U.toArray(t), l = en(r.map((i) => de(i) ? i.props.state ?? "upcoming" : null));
|
|
963
963
|
return /* @__PURE__ */ a("ul", {
|
|
964
964
|
"data-basic-page-checklist": "",
|
|
965
965
|
className: u("m-0 flex list-none flex-col gap-1.5 p-0", e),
|
|
966
966
|
...n,
|
|
967
|
-
children: r.map((
|
|
968
|
-
value:
|
|
969
|
-
children:
|
|
970
|
-
},
|
|
967
|
+
children: r.map((i, o) => /* @__PURE__ */ a(Ra.Provider, {
|
|
968
|
+
value: o === l,
|
|
969
|
+
children: i
|
|
970
|
+
}, de(i) && i.key != null ? i.key : o))
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function Sa({ state: e }) {
|
|
974
974
|
const t = I();
|
|
975
|
-
return e === "failed" ? /* @__PURE__ */ a(
|
|
975
|
+
return e === "failed" ? /* @__PURE__ */ a(ta, {
|
|
976
976
|
"aria-hidden": !0,
|
|
977
977
|
className: "text-pho-error size-4 shrink-0"
|
|
978
978
|
}) : /* @__PURE__ */ b("span", {
|
|
979
979
|
"aria-hidden": !0,
|
|
980
|
-
className: u(
|
|
980
|
+
className: u(wa, "size-4", Na[e]),
|
|
981
981
|
children: [/* @__PURE__ */ a(z, {
|
|
982
982
|
initial: !1,
|
|
983
983
|
children: e === "done" ? /* @__PURE__ */ a(N.span, {
|
|
984
984
|
...Q(t),
|
|
985
985
|
className: "flex",
|
|
986
|
-
children: /* @__PURE__ */ a(
|
|
986
|
+
children: /* @__PURE__ */ a(ra, { className: "size-2.5" })
|
|
987
987
|
}, "check") : null
|
|
988
|
-
}), e === "working" ? /* @__PURE__ */ b(Z, { children: [/* @__PURE__ */ a("span", { className:
|
|
988
|
+
}), e === "working" ? /* @__PURE__ */ b(Z, { children: [/* @__PURE__ */ a("span", { className: _a }), /* @__PURE__ */ a("span", { className: Aa })] }) : null]
|
|
989
989
|
});
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
const p = k(
|
|
991
|
+
function tn({ state: e = "upcoming", value: t, description: n, failure: r = "Failed", className: l, children: i, ...o }) {
|
|
992
|
+
const p = k(Ra), s = ka[e], d = e === "failed";
|
|
993
993
|
return /* @__PURE__ */ b("li", {
|
|
994
994
|
"data-basic-page-check": e,
|
|
995
995
|
"data-current": p ? "" : void 0,
|
|
996
996
|
"aria-current": p ? "step" : void 0,
|
|
997
|
-
className: u("text-pho-secondary m-0 grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-1.5 text-base",
|
|
998
|
-
...
|
|
997
|
+
className: u("text-pho-secondary m-0 grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-1.5 text-base", l),
|
|
998
|
+
...o,
|
|
999
999
|
children: [
|
|
1000
|
-
/* @__PURE__ */ a(
|
|
1000
|
+
/* @__PURE__ */ a(Sa, { state: e }),
|
|
1001
1001
|
/* @__PURE__ */ b("span", {
|
|
1002
1002
|
className: u("flex min-w-0 items-center gap-1.5", p && "font-medium"),
|
|
1003
1003
|
children: [/* @__PURE__ */ b("span", {
|
|
1004
1004
|
className: "min-w-0",
|
|
1005
|
-
children: [
|
|
1005
|
+
children: [i, s ? /* @__PURE__ */ a("span", {
|
|
1006
1006
|
className: "sr-only",
|
|
1007
|
-
children: `, ${
|
|
1007
|
+
children: `, ${s}`
|
|
1008
1008
|
}) : null]
|
|
1009
1009
|
}), d ? /* @__PURE__ */ a("span", {
|
|
1010
1010
|
className: "text-pho-error",
|
|
@@ -1022,19 +1022,19 @@ function an({ state: e = "upcoming", value: t, description: n, failure: r = "Fai
|
|
|
1022
1022
|
]
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function nn({ className: e, ...t }) {
|
|
1026
1026
|
return /* @__PURE__ */ a("ol", {
|
|
1027
1027
|
"data-basic-page-timeline": "",
|
|
1028
1028
|
className: u("m-0 flex list-none flex-col p-0", e),
|
|
1029
1029
|
...t
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const
|
|
1032
|
+
function rn({ state: e = "done", title: t, time: n, className: r, children: l, ...i }) {
|
|
1033
|
+
const o = ka[e] ?? (e === "failed" ? "Failed" : null);
|
|
1034
1034
|
return /* @__PURE__ */ b("li", {
|
|
1035
1035
|
"data-basic-page-timeline-item": e,
|
|
1036
1036
|
className: u("group/timeline text-pho-secondary relative m-0 grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-x-2.5 pb-5 text-base last:pb-0", r),
|
|
1037
|
-
...
|
|
1037
|
+
...i,
|
|
1038
1038
|
children: [
|
|
1039
1039
|
/* @__PURE__ */ a("span", {
|
|
1040
1040
|
"aria-hidden": !0,
|
|
@@ -1042,53 +1042,53 @@ function nn({ state: e = "done", title: t, time: n, className: r, children: s, .
|
|
|
1042
1042
|
}),
|
|
1043
1043
|
/* @__PURE__ */ a("span", {
|
|
1044
1044
|
className: "flex h-5 items-center",
|
|
1045
|
-
children: /* @__PURE__ */ a(
|
|
1045
|
+
children: /* @__PURE__ */ a(Sa, { state: e })
|
|
1046
1046
|
}),
|
|
1047
1047
|
/* @__PURE__ */ b("div", {
|
|
1048
1048
|
className: "min-w-0",
|
|
1049
1049
|
children: [
|
|
1050
1050
|
/* @__PURE__ */ b("div", {
|
|
1051
1051
|
className: "text-pho-primary",
|
|
1052
|
-
children: [t,
|
|
1052
|
+
children: [t, o ? /* @__PURE__ */ a("span", {
|
|
1053
1053
|
className: "sr-only",
|
|
1054
|
-
children: `, ${
|
|
1054
|
+
children: `, ${o}`
|
|
1055
1055
|
}) : null]
|
|
1056
1056
|
}),
|
|
1057
1057
|
n != null ? /* @__PURE__ */ a("div", {
|
|
1058
1058
|
className: "text-pho-description text-xs tabular-nums",
|
|
1059
1059
|
children: n
|
|
1060
1060
|
}) : null,
|
|
1061
|
-
|
|
1061
|
+
l != null ? /* @__PURE__ */ a("div", {
|
|
1062
1062
|
className: "text-pho-description mt-1.5 text-xs",
|
|
1063
|
-
children:
|
|
1063
|
+
children: l
|
|
1064
1064
|
}) : null
|
|
1065
1065
|
]
|
|
1066
1066
|
})
|
|
1067
1067
|
]
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const { state:
|
|
1070
|
+
function sn({ seat: e, title: t, icon: n, className: r, ...l }) {
|
|
1071
|
+
const { state: i, row: o } = e, p = I(), s = C(null), d = C(null), m = Za("width", s, d, P), c = xa(i), h = Ca[i], g = typeof t == "string" || typeof t == "number" ? `title:${t}` : `state:${i === "done"}`;
|
|
1072
1072
|
return /* @__PURE__ */ b("li", {
|
|
1073
|
-
"data-basic-page-step":
|
|
1074
|
-
"aria-current":
|
|
1075
|
-
className: u("m-0 flex min-w-0 items-center", !
|
|
1076
|
-
...
|
|
1073
|
+
"data-basic-page-step": i,
|
|
1074
|
+
"aria-current": c ? "step" : void 0,
|
|
1075
|
+
className: u("m-0 flex min-w-0 items-center", !o.last && "flex-auto", r),
|
|
1076
|
+
...l,
|
|
1077
1077
|
children: [
|
|
1078
|
-
/* @__PURE__ */ a(
|
|
1079
|
-
state:
|
|
1078
|
+
/* @__PURE__ */ a(Ea, {
|
|
1079
|
+
state: i,
|
|
1080
1080
|
number: e.number,
|
|
1081
1081
|
glyph: n != null && n !== !1 ? n : void 0
|
|
1082
1082
|
}),
|
|
1083
1083
|
/* @__PURE__ */ a(N.span, {
|
|
1084
|
-
ref:
|
|
1085
|
-
id:
|
|
1084
|
+
ref: s,
|
|
1085
|
+
id: o.labelId,
|
|
1086
1086
|
"data-basic-page-step-title": "",
|
|
1087
1087
|
style: { width: m },
|
|
1088
|
-
className: u("min-w-0 overflow-x-clip text-base font-medium transition-colors duration-200 ease-out",
|
|
1088
|
+
className: u("min-w-0 overflow-x-clip text-base font-medium transition-colors duration-200 ease-out", i === "upcoming" ? "text-pho-description" : "text-pho-primary"),
|
|
1089
1089
|
children: /* @__PURE__ */ a("span", {
|
|
1090
1090
|
ref: d,
|
|
1091
|
-
className: u("relative block w-max pl-3 whitespace-nowrap", !
|
|
1091
|
+
className: u("relative block w-max pl-3 whitespace-nowrap", !c && "max-sm:w-0 max-sm:pl-0"),
|
|
1092
1092
|
children: /* @__PURE__ */ a(z, {
|
|
1093
1093
|
initial: !1,
|
|
1094
1094
|
mode: "popLayout",
|
|
@@ -1103,17 +1103,17 @@ function rn({ seat: e, title: t, icon: n, className: r, ...s }) {
|
|
|
1103
1103
|
})
|
|
1104
1104
|
})
|
|
1105
1105
|
}),
|
|
1106
|
-
|
|
1106
|
+
o.last ? null : /* @__PURE__ */ a("span", {
|
|
1107
1107
|
"aria-hidden": !0,
|
|
1108
1108
|
"data-basic-page-step-line": "",
|
|
1109
|
-
className: u("ml-3 h-0 min-w-3 flex-1 border-t transition-[border-color] duration-200 ease-out",
|
|
1109
|
+
className: u("ml-3 h-0 min-w-3 flex-1 border-t transition-[border-color] duration-200 ease-out", i === "done" ? "border-pho-ink" : "border-pho-primary")
|
|
1110
1110
|
})
|
|
1111
1111
|
]
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
const m = k(Fe),
|
|
1116
|
-
if (m?.row != null) return /* @__PURE__ */ a(
|
|
1114
|
+
function ln({ icon: e, aside: t, title: n, description: r, done: l, working: i, pending: o, className: p, children: s, ...d }) {
|
|
1115
|
+
const m = k(Fe), c = m?.state ?? (l ? "done" : i ? "working" : o ? "pending" : "current"), h = I();
|
|
1116
|
+
if (m?.row != null) return /* @__PURE__ */ a(sn, {
|
|
1117
1117
|
seat: {
|
|
1118
1118
|
...m,
|
|
1119
1119
|
row: m.row
|
|
@@ -1123,17 +1123,17 @@ function sn({ icon: e, aside: t, title: n, description: r, done: s, working: l,
|
|
|
1123
1123
|
className: p,
|
|
1124
1124
|
...d
|
|
1125
1125
|
});
|
|
1126
|
-
const g =
|
|
1126
|
+
const g = xa(c), v = c === "upcoming", y = Ca[c], w = s != null && s !== !1, f = e != null && e !== !1, A = t != null && t !== !1;
|
|
1127
1127
|
return /* @__PURE__ */ a("li", {
|
|
1128
|
-
"data-basic-page-step":
|
|
1128
|
+
"data-basic-page-step": c,
|
|
1129
1129
|
"aria-current": g ? "step" : void 0,
|
|
1130
1130
|
className: u("relative m-0 grid min-w-0 grid-cols-[auto_minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)] items-center gap-x-3 px-5 py-4", "transition-[background-color] duration-200 ease-out first:rounded-t-[calc(0.75rem-1px)] last:rounded-b-[calc(0.75rem-1px)] motion-reduce:transition-none", g && "bg-pho-page", p),
|
|
1131
1131
|
...d,
|
|
1132
|
-
children: /* @__PURE__ */ b(
|
|
1132
|
+
children: /* @__PURE__ */ b(ya.Provider, {
|
|
1133
1133
|
value: !0,
|
|
1134
1134
|
children: [
|
|
1135
|
-
/* @__PURE__ */ a(
|
|
1136
|
-
state:
|
|
1135
|
+
/* @__PURE__ */ a(Ea, {
|
|
1136
|
+
state: c,
|
|
1137
1137
|
number: m?.number ?? 1,
|
|
1138
1138
|
className: "col-start-1 row-start-1"
|
|
1139
1139
|
}),
|
|
@@ -1158,13 +1158,13 @@ function sn({ icon: e, aside: t, title: n, description: r, done: s, working: l,
|
|
|
1158
1158
|
children: r
|
|
1159
1159
|
}) : null, w ? /* @__PURE__ */ a("div", {
|
|
1160
1160
|
className: "mt-auto flex flex-wrap items-center gap-2 pt-3",
|
|
1161
|
-
children:
|
|
1161
|
+
children: s
|
|
1162
1162
|
}) : null]
|
|
1163
1163
|
})
|
|
1164
1164
|
}),
|
|
1165
|
-
|
|
1165
|
+
c === "done" && w ? /* @__PURE__ */ a("div", {
|
|
1166
1166
|
className: "col-start-3 row-start-1 flex min-w-0 items-center gap-2",
|
|
1167
|
-
children:
|
|
1167
|
+
children: s
|
|
1168
1168
|
}) : A ? /* @__PURE__ */ a(z, {
|
|
1169
1169
|
initial: !1,
|
|
1170
1170
|
children: g ? /* @__PURE__ */ a(N.div, {
|
|
@@ -1188,12 +1188,12 @@ function sn({ icon: e, aside: t, title: n, description: r, done: s, working: l,
|
|
|
1188
1188
|
})
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
const { leaving: p, ...
|
|
1191
|
+
function on({ label: e, description: t, htmlFor: n, stacked: r = !1, className: l, children: i, ...o }) {
|
|
1192
|
+
const { leaving: p, ...s } = ee();
|
|
1193
1193
|
return /* @__PURE__ */ b(N.div, {
|
|
1194
|
-
...
|
|
1195
|
-
className: u(
|
|
1196
|
-
...
|
|
1194
|
+
...s,
|
|
1195
|
+
className: u(rt, r && "sm:flex-col sm:items-stretch sm:justify-start sm:gap-3", p && "overflow-hidden", l),
|
|
1196
|
+
...o,
|
|
1197
1197
|
children: [/* @__PURE__ */ b("div", {
|
|
1198
1198
|
className: "min-w-0",
|
|
1199
1199
|
children: [n ? /* @__PURE__ */ a("label", {
|
|
@@ -1209,47 +1209,47 @@ function ln({ label: e, description: t, htmlFor: n, stacked: r = !1, className:
|
|
|
1209
1209
|
}) : null]
|
|
1210
1210
|
}), /* @__PURE__ */ a("div", {
|
|
1211
1211
|
className: u("flex w-full min-w-0 items-center gap-2 sm:w-auto", r && "sm:w-full"),
|
|
1212
|
-
children:
|
|
1212
|
+
children: i
|
|
1213
1213
|
})]
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1217
|
-
const n = k(
|
|
1216
|
+
function cn({ className: e, ...t }) {
|
|
1217
|
+
const n = k(ya);
|
|
1218
1218
|
return /* @__PURE__ */ a("p", {
|
|
1219
1219
|
className: u("text-pho-description max-w-full min-w-0 truncate", n ? "text-display-xs font-normal" : "text-base", e),
|
|
1220
1220
|
...t
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1224
|
-
function
|
|
1225
|
-
const
|
|
1223
|
+
var dn = "grid grid-cols-[minmax(0,1fr)_auto] gap-x-6 sm:grid-cols-[minmax(0,1fr)_auto_auto]", me = "col-span-full grid grid-cols-subgrid", un = "[[data-basic-page-receipt]>&:not([data-basic-page-receipt-line]+&)]:pt-5 [[data-basic-page-receipt]>&:not(:has(+[data-basic-page-receipt-line]))]:pb-5 [[data-basic-page-receipt]>&:not(:first-child):not([data-basic-page-receipt-line]+&)]:border-t", pn = "[[data-basic-page-receipt]>&:not([data-basic-page-receipt-total]+&)]:pt-5 [[data-basic-page-receipt]>&:not(:has(+[data-basic-page-receipt-total]))]:pb-5 [[data-basic-page-receipt]>&:not(:first-child):not([data-basic-page-receipt-total]+&)]:border-t", He = "flex min-h-5 min-w-0 items-center gap-2 [overflow-wrap:anywhere]", Ee = "flex min-h-5 items-center justify-end whitespace-nowrap tabular-nums", Ta = "col-start-1 row-start-1", mn = "col-start-1 row-start-2 justify-start text-xs sm:col-start-2 sm:row-start-1 sm:justify-end sm:text-base", Pa = "col-start-2 row-start-1 sm:col-start-3", fe = (e) => e != null && e !== !1 && e !== !0;
|
|
1224
|
+
function fn({ empty: e, className: t, children: n, ...r }) {
|
|
1225
|
+
const l = U.toArray(n).length === 0;
|
|
1226
1226
|
return /* @__PURE__ */ a("ul", {
|
|
1227
|
-
className: u(
|
|
1227
|
+
className: u(ne, dn, "m-0 list-none p-0", t),
|
|
1228
1228
|
...r,
|
|
1229
1229
|
"data-basic-page-receipt": "",
|
|
1230
|
-
children:
|
|
1230
|
+
children: l && fe(e) ? /* @__PURE__ */ a("li", {
|
|
1231
1231
|
"data-basic-page-receipt-empty": "",
|
|
1232
1232
|
className: "text-pho-description col-span-full m-0 px-5 py-5 text-base",
|
|
1233
1233
|
children: e
|
|
1234
1234
|
}) : n
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const { initial:
|
|
1237
|
+
function hn({ label: e, className: t, children: n, ...r }) {
|
|
1238
|
+
const { initial: l, animate: i, transition: o } = ee(), p = Ie(), s = fe(e);
|
|
1239
1239
|
return /* @__PURE__ */ b(N.li, {
|
|
1240
|
-
initial:
|
|
1241
|
-
animate:
|
|
1242
|
-
transition:
|
|
1243
|
-
className: u(
|
|
1240
|
+
initial: l,
|
|
1241
|
+
animate: i,
|
|
1242
|
+
transition: o,
|
|
1243
|
+
className: u(me, "border-pho-secondary m-0 py-4", "[[data-basic-page-receipt]>&:not(:first-child)]:border-t", t),
|
|
1244
1244
|
...r,
|
|
1245
1245
|
"data-basic-page-receipt-group": "",
|
|
1246
|
-
children: [
|
|
1246
|
+
children: [s ? /* @__PURE__ */ a("div", {
|
|
1247
1247
|
id: p,
|
|
1248
1248
|
className: u(He, "text-pho-primary col-span-full min-h-7 px-5 py-1 text-base font-medium"),
|
|
1249
1249
|
children: e
|
|
1250
1250
|
}) : null, /* @__PURE__ */ a("ul", {
|
|
1251
|
-
"aria-labelledby":
|
|
1252
|
-
className: u(
|
|
1251
|
+
"aria-labelledby": s ? p : void 0,
|
|
1252
|
+
className: u(me, "m-0 list-none p-0"),
|
|
1253
1253
|
children: /* @__PURE__ */ a(De.Provider, {
|
|
1254
1254
|
value: !1,
|
|
1255
1255
|
children: n
|
|
@@ -1257,51 +1257,51 @@ function fn({ label: e, className: t, children: n, ...r }) {
|
|
|
1257
1257
|
})]
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
const { initial:
|
|
1260
|
+
function gn({ label: e, quantity: t, amount: n, className: r, ...l }) {
|
|
1261
|
+
const { initial: i, animate: o, transition: p } = ee(), s = fe(t), d = fe(n);
|
|
1262
1262
|
return /* @__PURE__ */ b(N.li, {
|
|
1263
|
-
initial:
|
|
1264
|
-
animate:
|
|
1263
|
+
initial: i,
|
|
1264
|
+
animate: o,
|
|
1265
1265
|
transition: p,
|
|
1266
|
-
className: u(
|
|
1267
|
-
...
|
|
1266
|
+
className: u(me, "border-pho-secondary m-0 items-start px-5 py-1 text-base", un, r),
|
|
1267
|
+
...l,
|
|
1268
1268
|
"data-basic-page-receipt-line": "",
|
|
1269
1269
|
children: [
|
|
1270
1270
|
/* @__PURE__ */ a("div", {
|
|
1271
|
-
className: u(He,
|
|
1271
|
+
className: u(He, Ta, "text-pho-secondary", !d && "col-end-3", s ? "sm:col-end-2" : d ? "sm:col-end-3" : "sm:col-end-4"),
|
|
1272
1272
|
children: e
|
|
1273
1273
|
}),
|
|
1274
|
-
|
|
1275
|
-
className: u(Ee,
|
|
1274
|
+
s ? /* @__PURE__ */ a("div", {
|
|
1275
|
+
className: u(Ee, mn, "text-pho-description"),
|
|
1276
1276
|
children: t
|
|
1277
1277
|
}) : null,
|
|
1278
1278
|
d ? /* @__PURE__ */ a("div", {
|
|
1279
|
-
className: u(Ee,
|
|
1279
|
+
className: u(Ee, Pa, "text-pho-secondary"),
|
|
1280
1280
|
children: n
|
|
1281
1281
|
}) : null
|
|
1282
1282
|
]
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1286
|
-
const { initial:
|
|
1285
|
+
function bn({ label: e, amount: t, className: n, ...r }) {
|
|
1286
|
+
const { initial: l, animate: i, transition: o } = ee();
|
|
1287
1287
|
return /* @__PURE__ */ b(N.li, {
|
|
1288
|
-
initial:
|
|
1289
|
-
animate:
|
|
1290
|
-
transition:
|
|
1291
|
-
className: u(
|
|
1288
|
+
initial: l,
|
|
1289
|
+
animate: i,
|
|
1290
|
+
transition: o,
|
|
1291
|
+
className: u(me, "border-pho-secondary text-pho-primary m-0 items-start px-5 py-1 text-base font-medium", pn, n),
|
|
1292
1292
|
...r,
|
|
1293
1293
|
"data-basic-page-receipt-total": "",
|
|
1294
1294
|
children: [/* @__PURE__ */ a("div", {
|
|
1295
|
-
className: u(He,
|
|
1295
|
+
className: u(He, Ta, "sm:col-end-3"),
|
|
1296
1296
|
children: e
|
|
1297
1297
|
}), /* @__PURE__ */ a("div", {
|
|
1298
|
-
className: u(Ee,
|
|
1298
|
+
className: u(Ee, Pa),
|
|
1299
1299
|
children: t
|
|
1300
1300
|
})]
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1304
|
-
const
|
|
1303
|
+
function vn({ error: e, show: t, className: n, children: r, ...l }) {
|
|
1304
|
+
const i = I(), o = k(ae), p = e ?? o?.error ?? void 0;
|
|
1305
1305
|
return /* @__PURE__ */ a(z, {
|
|
1306
1306
|
initial: !1,
|
|
1307
1307
|
children: (t ?? !0) && (p != null || r != null) ? /* @__PURE__ */ a(N.div, {
|
|
@@ -1319,14 +1319,14 @@ function bn({ error: e, show: t, className: n, children: r, ...s }) {
|
|
|
1319
1319
|
height: 0,
|
|
1320
1320
|
opacity: 0
|
|
1321
1321
|
},
|
|
1322
|
-
transition:
|
|
1322
|
+
transition: i ? { duration: 0 } : {
|
|
1323
1323
|
height: P,
|
|
1324
1324
|
opacity: F
|
|
1325
1325
|
},
|
|
1326
|
-
children: /* @__PURE__ */ a(
|
|
1326
|
+
children: /* @__PURE__ */ a(Wa, {
|
|
1327
1327
|
error: p,
|
|
1328
1328
|
className: u("px-5 pb-3", n),
|
|
1329
|
-
...
|
|
1329
|
+
...l,
|
|
1330
1330
|
children: r
|
|
1331
1331
|
})
|
|
1332
1332
|
}) : null
|
|
@@ -1335,9 +1335,9 @@ function bn({ error: e, show: t, className: n, children: r, ...s }) {
|
|
|
1335
1335
|
function gr() {
|
|
1336
1336
|
return k(ae)?.requestSave ?? null;
|
|
1337
1337
|
}
|
|
1338
|
-
var br = 800, Ae =
|
|
1339
|
-
function
|
|
1340
|
-
const [
|
|
1338
|
+
var br = 800, Ae = Ja.createToastManager(), ae = B(null);
|
|
1339
|
+
function yn({ action: e, errors: t, autoSave: n = !1, className: r, children: l, onChange: i, onBlur: o, ...p }) {
|
|
1340
|
+
const [s, d] = _(!1), [m, c] = _(!1), [h, g] = _(null), [v, y] = _(t ?? {}), [w, f] = _(null), A = C(null), x = C(null), E = C(null), S = C(!1), O = C(!1), M = C(null), D = C(async () => {
|
|
1341
1341
|
});
|
|
1342
1342
|
L(() => () => {
|
|
1343
1343
|
x.current != null && clearTimeout(x.current);
|
|
@@ -1361,7 +1361,7 @@ function vn({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
|
|
|
1361
1361
|
y($), f(null);
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
|
-
y({}),
|
|
1364
|
+
y({}), c(!1), f({
|
|
1365
1365
|
field: K,
|
|
1366
1366
|
phase: "saved"
|
|
1367
1367
|
}), M.current != null && (Ae.close(M.current), M.current = null);
|
|
@@ -1383,20 +1383,20 @@ function vn({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
|
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
1385
1385
|
D.current = W;
|
|
1386
|
-
const
|
|
1386
|
+
const se = () => {
|
|
1387
1387
|
x.current != null && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
1388
1388
|
x.current = null, D.current();
|
|
1389
1389
|
}, 800);
|
|
1390
1390
|
}, G = V(() => n ? (T) => {
|
|
1391
|
-
T != null && (E.current = T),
|
|
1391
|
+
T != null && (E.current = T), c(!0), se();
|
|
1392
1392
|
} : null, [n]), ye = V(() => ({
|
|
1393
|
-
pending:
|
|
1393
|
+
pending: s,
|
|
1394
1394
|
dirty: m,
|
|
1395
1395
|
error: h,
|
|
1396
1396
|
auto: w,
|
|
1397
1397
|
requestSave: G
|
|
1398
1398
|
}), [
|
|
1399
|
-
|
|
1399
|
+
s,
|
|
1400
1400
|
m,
|
|
1401
1401
|
h,
|
|
1402
1402
|
w,
|
|
@@ -1404,7 +1404,7 @@ function vn({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
|
|
|
1404
1404
|
]);
|
|
1405
1405
|
return /* @__PURE__ */ a(ae.Provider, {
|
|
1406
1406
|
value: ye,
|
|
1407
|
-
children: /* @__PURE__ */ a(
|
|
1407
|
+
children: /* @__PURE__ */ a(et, {
|
|
1408
1408
|
errors: v,
|
|
1409
1409
|
onFormSubmit: async (T) => {
|
|
1410
1410
|
if (e != null) {
|
|
@@ -1415,7 +1415,7 @@ function vn({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
|
|
|
1415
1415
|
y(R);
|
|
1416
1416
|
return;
|
|
1417
1417
|
}
|
|
1418
|
-
y({}),
|
|
1418
|
+
y({}), c(!1);
|
|
1419
1419
|
} catch (R) {
|
|
1420
1420
|
g(R);
|
|
1421
1421
|
} finally {
|
|
@@ -1424,15 +1424,15 @@ function vn({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
|
|
|
1424
1424
|
}
|
|
1425
1425
|
},
|
|
1426
1426
|
onChange: (T) => {
|
|
1427
|
-
|
|
1427
|
+
c(!0), g(null);
|
|
1428
1428
|
const R = T.target.name;
|
|
1429
1429
|
R && R in v && y((K) => {
|
|
1430
1430
|
const { [R]: $, ...xe } = K;
|
|
1431
1431
|
return xe;
|
|
1432
|
-
}), n && (R && (E.current = R),
|
|
1432
|
+
}), n && (R && (E.current = R), se()), i?.(T);
|
|
1433
1433
|
},
|
|
1434
1434
|
onBlur: (T) => {
|
|
1435
|
-
n && m && x.current != null && (clearTimeout(x.current), x.current = null, D.current()),
|
|
1435
|
+
n && m && x.current != null && (clearTimeout(x.current), x.current = null, D.current()), o?.(T);
|
|
1436
1436
|
},
|
|
1437
1437
|
className: u("contents [[data-basic-page-stack]>&]:flex [[data-basic-page-stack]>&]:min-w-0 [[data-basic-page-stack]>&]:flex-col", r),
|
|
1438
1438
|
...p,
|
|
@@ -1442,24 +1442,24 @@ function vn({ action: e, errors: t, autoSave: n = !1, className: r, children: s,
|
|
|
1442
1442
|
typeof R == "function" ? R(T) : R != null && (R.current = T);
|
|
1443
1443
|
},
|
|
1444
1444
|
children: /* @__PURE__ */ a("fieldset", {
|
|
1445
|
-
disabled:
|
|
1446
|
-
"aria-busy":
|
|
1445
|
+
disabled: s,
|
|
1446
|
+
"aria-busy": s || void 0,
|
|
1447
1447
|
className: "contents",
|
|
1448
1448
|
"data-basic-page-form-body": "",
|
|
1449
|
-
children:
|
|
1449
|
+
children: l
|
|
1450
1450
|
})
|
|
1451
1451
|
})
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const r = k(ae),
|
|
1454
|
+
function xn({ name: e, className: t, ...n }) {
|
|
1455
|
+
const r = k(ae), l = I(), i = r?.auto ?? null, o = i != null && (e == null || i.field === e), [p, s] = _(!1), d = o ? i.phase : null;
|
|
1456
1456
|
L(() => {
|
|
1457
1457
|
if (d !== "saved") return;
|
|
1458
|
-
|
|
1459
|
-
const h = setTimeout(() =>
|
|
1458
|
+
s(!0);
|
|
1459
|
+
const h = setTimeout(() => s(!1), 1800);
|
|
1460
1460
|
return () => clearTimeout(h);
|
|
1461
|
-
}, [d,
|
|
1462
|
-
const m = d === "saving" ? "Saving…" : d === "saved" && p ? "Saved" : null,
|
|
1461
|
+
}, [d, i]);
|
|
1462
|
+
const m = d === "saving" ? "Saving…" : d === "saved" && p ? "Saved" : null, c = l ? "blur(0px)" : `blur(${Te}px)`;
|
|
1463
1463
|
return /* @__PURE__ */ a("span", {
|
|
1464
1464
|
className: "grid justify-items-end",
|
|
1465
1465
|
children: /* @__PURE__ */ a(z, {
|
|
@@ -1467,7 +1467,7 @@ function yn({ name: e, className: t, ...n }) {
|
|
|
1467
1467
|
children: m != null && /* @__PURE__ */ a(N.output, {
|
|
1468
1468
|
initial: {
|
|
1469
1469
|
opacity: 0,
|
|
1470
|
-
filter:
|
|
1470
|
+
filter: c
|
|
1471
1471
|
},
|
|
1472
1472
|
animate: {
|
|
1473
1473
|
opacity: 1,
|
|
@@ -1475,9 +1475,9 @@ function yn({ name: e, className: t, ...n }) {
|
|
|
1475
1475
|
},
|
|
1476
1476
|
exit: {
|
|
1477
1477
|
opacity: 0,
|
|
1478
|
-
filter:
|
|
1478
|
+
filter: c
|
|
1479
1479
|
},
|
|
1480
|
-
transition:
|
|
1480
|
+
transition: pe,
|
|
1481
1481
|
className: u("text-pho-description pl-8 [grid-area:1/1]", t),
|
|
1482
1482
|
style: { background: "linear-gradient(to left, var(--background-color-pho-primary) calc(100% - 2rem), transparent)" },
|
|
1483
1483
|
...n,
|
|
@@ -1486,18 +1486,35 @@ function yn({ name: e, className: t, ...n }) {
|
|
|
1486
1486
|
})
|
|
1487
1487
|
});
|
|
1488
1488
|
}
|
|
1489
|
-
var
|
|
1490
|
-
function wn({
|
|
1491
|
-
const
|
|
1492
|
-
return
|
|
1493
|
-
className: u(
|
|
1494
|
-
...
|
|
1495
|
-
ref: (
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1489
|
+
var Je = "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";
|
|
1490
|
+
function wn({ animateHeight: e = !0, className: t, children: n, ...r }) {
|
|
1491
|
+
const l = C(null);
|
|
1492
|
+
return ba(l, "Fields", 20, () => null), e ? /* @__PURE__ */ a("div", {
|
|
1493
|
+
className: u(ne, "min-h-0", t),
|
|
1494
|
+
...r,
|
|
1495
|
+
ref: (i) => {
|
|
1496
|
+
const o = r.ref;
|
|
1497
|
+
typeof o == "function" ? o(i) : o != null && (o.current = i);
|
|
1498
|
+
},
|
|
1499
|
+
"data-basic-page-fields": "",
|
|
1500
|
+
children: /* @__PURE__ */ a(na, {
|
|
1501
|
+
transition: P,
|
|
1502
|
+
children: /* @__PURE__ */ a("div", {
|
|
1503
|
+
ref: l,
|
|
1504
|
+
className: Je,
|
|
1505
|
+
children: n
|
|
1506
|
+
})
|
|
1507
|
+
})
|
|
1508
|
+
}) : /* @__PURE__ */ a("div", {
|
|
1509
|
+
className: u(ne, Je, t),
|
|
1510
|
+
...r,
|
|
1511
|
+
ref: (i) => {
|
|
1512
|
+
l.current = i;
|
|
1513
|
+
const o = r.ref;
|
|
1514
|
+
typeof o == "function" ? o(i) : o != null && (o.current = i);
|
|
1499
1515
|
},
|
|
1500
|
-
"data-basic-page-fields": ""
|
|
1516
|
+
"data-basic-page-fields": "",
|
|
1517
|
+
children: n
|
|
1501
1518
|
});
|
|
1502
1519
|
}
|
|
1503
1520
|
function Nn({ className: e, ...t }) {
|
|
@@ -1508,7 +1525,7 @@ function Nn({ className: e, ...t }) {
|
|
|
1508
1525
|
}
|
|
1509
1526
|
function _n({ children: e = "Save changes", ...t }) {
|
|
1510
1527
|
const n = k(ae);
|
|
1511
|
-
return /* @__PURE__ */ a(
|
|
1528
|
+
return /* @__PURE__ */ a(re, {
|
|
1512
1529
|
type: "submit",
|
|
1513
1530
|
variant: "effect",
|
|
1514
1531
|
size: "sm",
|
|
@@ -1518,16 +1535,16 @@ function _n({ children: e = "Save changes", ...t }) {
|
|
|
1518
1535
|
});
|
|
1519
1536
|
}
|
|
1520
1537
|
function An({ show: e, className: t, ...n }) {
|
|
1521
|
-
const r = k(ae),
|
|
1538
|
+
const r = k(ae), l = e === "dirty" ? r?.dirty ?? !1 : e, i = /* @__PURE__ */ a("div", {
|
|
1522
1539
|
"data-basic-page-footer": "",
|
|
1523
1540
|
className: u("flex items-center justify-end gap-3 pr-[calc(1.25rem+2.5px)]", t),
|
|
1524
1541
|
...n
|
|
1525
1542
|
});
|
|
1526
|
-
return
|
|
1527
|
-
show:
|
|
1543
|
+
return l === void 0 ? i : /* @__PURE__ */ a(ze, {
|
|
1544
|
+
show: l,
|
|
1528
1545
|
gap: "block",
|
|
1529
1546
|
clip: !1,
|
|
1530
|
-
children:
|
|
1547
|
+
children: i
|
|
1531
1548
|
});
|
|
1532
1549
|
}
|
|
1533
1550
|
var Cn = {
|
|
@@ -1536,18 +1553,18 @@ var Cn = {
|
|
|
1536
1553
|
fields: "-1.25rem",
|
|
1537
1554
|
none: "0px"
|
|
1538
1555
|
};
|
|
1539
|
-
function ze({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className:
|
|
1540
|
-
const
|
|
1556
|
+
function ze({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: l, ...i }) {
|
|
1557
|
+
const o = I(), p = Cn[r ? "none" : n], s = C(null), d = C(e !== !0);
|
|
1541
1558
|
L(() => {
|
|
1542
1559
|
d.current = !0;
|
|
1543
1560
|
}, []);
|
|
1544
1561
|
const m = () => {
|
|
1545
|
-
t &&
|
|
1546
|
-
},
|
|
1547
|
-
|
|
1562
|
+
t && s.current && (s.current.style.overflow = "hidden");
|
|
1563
|
+
}, c = () => {
|
|
1564
|
+
s.current && (s.current.style.overflow = "");
|
|
1548
1565
|
};
|
|
1549
1566
|
return e === void 0 ? /* @__PURE__ */ a(N.div, {
|
|
1550
|
-
initial:
|
|
1567
|
+
initial: o ? !1 : {
|
|
1551
1568
|
opacity: 0,
|
|
1552
1569
|
y: j
|
|
1553
1570
|
},
|
|
@@ -1559,20 +1576,20 @@ function ze({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: s
|
|
|
1559
1576
|
y: P,
|
|
1560
1577
|
opacity: F
|
|
1561
1578
|
},
|
|
1562
|
-
className: u(r &&
|
|
1563
|
-
...
|
|
1579
|
+
className: u(r && ue, l),
|
|
1580
|
+
...i
|
|
1564
1581
|
}) : /* @__PURE__ */ a(z, {
|
|
1565
1582
|
initial: !1,
|
|
1566
1583
|
children: e ? /* @__PURE__ */ a(N.div, {
|
|
1567
1584
|
"data-basic-page-reveal": "",
|
|
1568
1585
|
ref: (h) => {
|
|
1569
|
-
|
|
1586
|
+
s.current = h, t && h && d.current && (h.style.overflow = "hidden");
|
|
1570
1587
|
},
|
|
1571
1588
|
onAnimationStart: m,
|
|
1572
|
-
onAnimationComplete:
|
|
1573
|
-
|
|
1574
|
-
className: u(r &&
|
|
1575
|
-
...
|
|
1589
|
+
onAnimationComplete: c,
|
|
1590
|
+
...$a(o, p),
|
|
1591
|
+
className: u(r && ue, l),
|
|
1592
|
+
...i
|
|
1576
1593
|
}) : null
|
|
1577
1594
|
});
|
|
1578
1595
|
}
|
|
@@ -1580,25 +1597,25 @@ var En = "top-4 left-5 h-8 text-base [&>svg]:size-[1.125em] [&>svg]:shrink-0", k
|
|
|
1580
1597
|
function Rn() {
|
|
1581
1598
|
return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(kn).matches;
|
|
1582
1599
|
}
|
|
1583
|
-
var
|
|
1584
|
-
function
|
|
1585
|
-
const r = U.toArray(t).filter(
|
|
1586
|
-
|
|
1587
|
-
const [
|
|
1600
|
+
var Ia = B(null);
|
|
1601
|
+
function Oa({ className: e, children: t, ...n }) {
|
|
1602
|
+
const r = U.toArray(t).filter(de), l = r.map((A) => A.props.children ?? null), i = pa();
|
|
1603
|
+
wt(l);
|
|
1604
|
+
const [o] = _(Rn), p = I(), s = r.length, d = aa(), m = !o && s >= Sn, c = k(Be), h = s > 0 ? r[s - 1]?.props : null, g = h?.children ?? "Back", v = h?.href, y = h?.onClick;
|
|
1588
1605
|
H(() => {
|
|
1589
|
-
if (!(
|
|
1590
|
-
return
|
|
1606
|
+
if (!(c == null || v == null))
|
|
1607
|
+
return c.setTail({
|
|
1591
1608
|
label: g,
|
|
1592
1609
|
href: v,
|
|
1593
1610
|
onClick: y
|
|
1594
|
-
}), () =>
|
|
1611
|
+
}), () => c.setTail(null);
|
|
1595
1612
|
}, [
|
|
1596
|
-
|
|
1613
|
+
c,
|
|
1597
1614
|
g,
|
|
1598
1615
|
v,
|
|
1599
1616
|
y
|
|
1600
1617
|
]);
|
|
1601
|
-
const [w, f] = _(!p && !
|
|
1618
|
+
const [w, f] = _(!p && !o && i != null && i.labels.length > s);
|
|
1602
1619
|
return /* @__PURE__ */ a("nav", {
|
|
1603
1620
|
"aria-label": "Breadcrumb",
|
|
1604
1621
|
"data-basic-page-back": "",
|
|
@@ -1606,13 +1623,13 @@ function Pa({ className: e, children: t, ...n }) {
|
|
|
1606
1623
|
...n,
|
|
1607
1624
|
children: /* @__PURE__ */ b("ol", {
|
|
1608
1625
|
className: "m-0 flex list-none items-center p-0",
|
|
1609
|
-
children: [r.map((A, x) => m && x > 0 && x <
|
|
1626
|
+
children: [r.map((A, x) => m && x > 0 && x < s - 2 ? null : /* @__PURE__ */ b(nt, { children: [m && x === s - 2 && /* @__PURE__ */ b("li", {
|
|
1610
1627
|
className: "m-0 flex items-center max-sm:hidden",
|
|
1611
1628
|
children: [/* @__PURE__ */ a("span", {
|
|
1612
1629
|
"aria-hidden": !0,
|
|
1613
1630
|
className: ke,
|
|
1614
|
-
children:
|
|
1615
|
-
}), /* @__PURE__ */ b(Y.Root, { children: [/* @__PURE__ */ a(Y.Trigger, { render: /* @__PURE__ */ a(
|
|
1631
|
+
children: he
|
|
1632
|
+
}), /* @__PURE__ */ b(Y.Root, { children: [/* @__PURE__ */ a(Y.Trigger, { render: /* @__PURE__ */ a(re, {
|
|
1616
1633
|
variant: "ghost",
|
|
1617
1634
|
size: "sm",
|
|
1618
1635
|
"aria-label": "Hidden pages",
|
|
@@ -1621,7 +1638,7 @@ function Pa({ className: e, children: t, ...n }) {
|
|
|
1621
1638
|
}) }), /* @__PURE__ */ a(Y.Portal, { children: /* @__PURE__ */ a(Y.Positioner, {
|
|
1622
1639
|
align: "start",
|
|
1623
1640
|
sideOffset: 4,
|
|
1624
|
-
children: /* @__PURE__ */ a(Y.Popup, { children: r.slice(1,
|
|
1641
|
+
children: /* @__PURE__ */ a(Y.Popup, { children: r.slice(1, s - 2).map((E, S) => {
|
|
1625
1642
|
const O = E.props;
|
|
1626
1643
|
return /* @__PURE__ */ a(Y.LinkItem, {
|
|
1627
1644
|
render: /* @__PURE__ */ a(d, {
|
|
@@ -1633,13 +1650,13 @@ function Pa({ className: e, children: t, ...n }) {
|
|
|
1633
1650
|
}) })
|
|
1634
1651
|
}) })] })]
|
|
1635
1652
|
}), /* @__PURE__ */ a("li", {
|
|
1636
|
-
className: u("m-0 flex items-center", x <
|
|
1637
|
-
children: /* @__PURE__ */ a(
|
|
1653
|
+
className: u("m-0 flex items-center", x < s - 1 && "max-sm:hidden"),
|
|
1654
|
+
children: /* @__PURE__ */ a(Ia.Provider, {
|
|
1638
1655
|
value: {
|
|
1639
1656
|
index: x,
|
|
1640
|
-
count:
|
|
1641
|
-
departing:
|
|
1642
|
-
narrow:
|
|
1657
|
+
count: s,
|
|
1658
|
+
departing: i,
|
|
1659
|
+
narrow: o
|
|
1643
1660
|
},
|
|
1644
1661
|
children: A
|
|
1645
1662
|
})
|
|
@@ -1649,65 +1666,65 @@ function Pa({ className: e, children: t, ...n }) {
|
|
|
1649
1666
|
children: /* @__PURE__ */ a(N.span, {
|
|
1650
1667
|
initial: { opacity: 1 },
|
|
1651
1668
|
animate: { opacity: 0 },
|
|
1652
|
-
transition:
|
|
1669
|
+
transition: ua,
|
|
1653
1670
|
onAnimationComplete: () => f(!1),
|
|
1654
1671
|
className: ke,
|
|
1655
|
-
children:
|
|
1672
|
+
children: he
|
|
1656
1673
|
})
|
|
1657
1674
|
})]
|
|
1658
1675
|
})
|
|
1659
1676
|
});
|
|
1660
1677
|
}
|
|
1661
|
-
var ke = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none",
|
|
1662
|
-
function
|
|
1663
|
-
const
|
|
1664
|
-
if (
|
|
1665
|
-
const { index: d, count: m, departing:
|
|
1678
|
+
var ke = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", he = "/", Sn = 4, Tn = "…";
|
|
1679
|
+
function La({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
1680
|
+
const i = k(Ia), o = I(), p = n != null && !o, s = fa(p ? n : void 0);
|
|
1681
|
+
if (i == null) throw new Error("BasicPage.Crumb must be rendered inside BasicPage.Breadcrumbs");
|
|
1682
|
+
const { index: d, count: m, departing: c, narrow: h } = i, g = d === 0, v = d === m - 1, y = c != null && c.labels.length < m, w = c != null && c.labels.length > m, f = v && (c == null || y || h), A = g || v, x = g && v ? "" : g ? "max-sm:hidden" : "sm:hidden", E = c != null, S = v ? h ? w ? "slide" : "fade" : f ? "fade" : void 0 : void 0, [O, M] = _(p && h && s.fly && c != null && !w ? c.labels[c.labels.length - 1] : null), D = p && A && !E, W = p && !g && v && (c == null || y);
|
|
1666
1683
|
return /* @__PURE__ */ b(Z, { children: [!g && /* @__PURE__ */ a("span", {
|
|
1667
1684
|
"aria-hidden": !0,
|
|
1668
1685
|
className: u(ke, "max-sm:hidden"),
|
|
1669
1686
|
children: W ? /* @__PURE__ */ a(N.span, {
|
|
1670
|
-
initial:
|
|
1687
|
+
initial: s.fly ? {
|
|
1671
1688
|
opacity: 0,
|
|
1672
1689
|
x: je
|
|
1673
1690
|
} : { opacity: 0 },
|
|
1674
|
-
animate:
|
|
1691
|
+
animate: s.fly ? {
|
|
1675
1692
|
opacity: 1,
|
|
1676
1693
|
x: 0
|
|
1677
1694
|
} : { opacity: 1 },
|
|
1678
|
-
transition:
|
|
1695
|
+
transition: s.fly ? qe : F,
|
|
1679
1696
|
className: "inline-flex",
|
|
1680
|
-
children:
|
|
1681
|
-
}) :
|
|
1697
|
+
children: he
|
|
1698
|
+
}) : he
|
|
1682
1699
|
}), /* @__PURE__ */ a(Re, {
|
|
1683
1700
|
variant: "ghost",
|
|
1684
1701
|
size: "sm",
|
|
1685
1702
|
href: e,
|
|
1686
1703
|
prefix: A ? D ? /* @__PURE__ */ a(N.span, {
|
|
1687
|
-
initial:
|
|
1704
|
+
initial: s.fly ? {
|
|
1688
1705
|
opacity: 0,
|
|
1689
1706
|
x: je
|
|
1690
1707
|
} : { opacity: 0 },
|
|
1691
|
-
animate:
|
|
1708
|
+
animate: s.fly ? {
|
|
1692
1709
|
opacity: 1,
|
|
1693
1710
|
x: 0
|
|
1694
1711
|
} : { opacity: 1 },
|
|
1695
|
-
transition:
|
|
1712
|
+
transition: s.fly ? qe : F,
|
|
1696
1713
|
className: u("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", x),
|
|
1697
|
-
children: /* @__PURE__ */ a(
|
|
1714
|
+
children: /* @__PURE__ */ a(ce, {})
|
|
1698
1715
|
}) : /* @__PURE__ */ a("span", {
|
|
1699
1716
|
className: u("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", x),
|
|
1700
|
-
children: /* @__PURE__ */ a(
|
|
1717
|
+
children: /* @__PURE__ */ a(ce, {})
|
|
1701
1718
|
}) : /* @__PURE__ */ a("span", { className: "hidden" }),
|
|
1702
1719
|
className: u("min-w-max", t),
|
|
1703
|
-
...
|
|
1720
|
+
...l,
|
|
1704
1721
|
children: p && n != null ? /* @__PURE__ */ b("span", {
|
|
1705
|
-
className: u("relative block", !
|
|
1706
|
-
children: [/* @__PURE__ */ a(
|
|
1722
|
+
className: u("relative block", !s.fly && S === "slide" && "overflow-hidden", !v && "max-w-40 truncate"),
|
|
1723
|
+
children: [/* @__PURE__ */ a(ha, {
|
|
1707
1724
|
morphId: n,
|
|
1708
1725
|
fromClassName: "text-pho-primary",
|
|
1709
|
-
fly:
|
|
1710
|
-
morphRef:
|
|
1726
|
+
fly: s.fly,
|
|
1727
|
+
morphRef: s.ref,
|
|
1711
1728
|
arrival: S,
|
|
1712
1729
|
children: r
|
|
1713
1730
|
}), O != null && /* @__PURE__ */ a(N.span, {
|
|
@@ -1717,10 +1734,10 @@ function Ia({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
|
|
|
1717
1734
|
opacity: 1
|
|
1718
1735
|
},
|
|
1719
1736
|
animate: {
|
|
1720
|
-
x:
|
|
1737
|
+
x: vt,
|
|
1721
1738
|
opacity: 0
|
|
1722
1739
|
},
|
|
1723
|
-
transition:
|
|
1740
|
+
transition: yt,
|
|
1724
1741
|
onAnimationComplete: () => M(null),
|
|
1725
1742
|
className: "pointer-events-none absolute inset-y-0 left-0 whitespace-nowrap",
|
|
1726
1743
|
children: O
|
|
@@ -1732,18 +1749,18 @@ function Ia({ href: e, className: t, morphId: n, children: r = "Back", ...s }) {
|
|
|
1732
1749
|
})] });
|
|
1733
1750
|
}
|
|
1734
1751
|
function Pn({ className: e, ...t }) {
|
|
1735
|
-
return /* @__PURE__ */ a(
|
|
1752
|
+
return /* @__PURE__ */ a(Oa, {
|
|
1736
1753
|
className: e,
|
|
1737
|
-
children: /* @__PURE__ */ a(
|
|
1754
|
+
children: /* @__PURE__ */ a(La, { ...t })
|
|
1738
1755
|
});
|
|
1739
1756
|
}
|
|
1740
|
-
function In({ label: e, description: t, leading: n, href: r, className:
|
|
1741
|
-
const p =
|
|
1742
|
-
return /* @__PURE__ */ b(
|
|
1757
|
+
function In({ label: e, description: t, leading: n, href: r, className: l, children: i, ...o }) {
|
|
1758
|
+
const p = aa(), s = V(() => N.create(p), [p]), { leaving: d, ...m } = ee();
|
|
1759
|
+
return /* @__PURE__ */ b(s, {
|
|
1743
1760
|
href: r,
|
|
1744
1761
|
...m,
|
|
1745
|
-
...
|
|
1746
|
-
className: u("flex min-h-[4.25rem] min-w-0 flex-row items-center justify-between gap-6 px-5 py-4", "group outline-pho-brand hover:bg-pho-primary-hover cursor-pointer transition-colors focus-visible:outline-2 focus-visible:-outline-offset-2", "aria-[current=page]:bg-pho-primary-hover", "first:rounded-t-[calc(var(--radius-base)-1px)] last:rounded-b-[calc(var(--radius-base)-1px)]", d && "overflow-hidden",
|
|
1762
|
+
...o,
|
|
1763
|
+
className: u("flex min-h-[4.25rem] min-w-0 flex-row items-center justify-between gap-6 px-5 py-4", "group outline-pho-brand hover:bg-pho-primary-hover cursor-pointer transition-colors focus-visible:outline-2 focus-visible:-outline-offset-2", "aria-[current=page]:bg-pho-primary-hover", "first:rounded-t-[calc(var(--radius-base)-1px)] last:rounded-b-[calc(var(--radius-base)-1px)]", d && "overflow-hidden", l),
|
|
1747
1764
|
children: [/* @__PURE__ */ b("div", {
|
|
1748
1765
|
className: u("flex min-w-0 flex-1 items-center", n != null && "gap-3"),
|
|
1749
1766
|
children: [n, /* @__PURE__ */ b("div", {
|
|
@@ -1761,24 +1778,24 @@ function In({ label: e, description: t, leading: n, href: r, className: s, child
|
|
|
1761
1778
|
})]
|
|
1762
1779
|
}), /* @__PURE__ */ b("div", {
|
|
1763
1780
|
className: "flex min-w-0 items-center justify-end gap-2",
|
|
1764
|
-
children: [
|
|
1781
|
+
children: [i != null ? /* @__PURE__ */ a("div", {
|
|
1765
1782
|
className: "min-w-0",
|
|
1766
|
-
children:
|
|
1767
|
-
}) : null, /* @__PURE__ */ a(
|
|
1783
|
+
children: i
|
|
1784
|
+
}) : null, /* @__PURE__ */ a(Ka, {
|
|
1768
1785
|
"aria-hidden": !0,
|
|
1769
1786
|
className: "text-pho-secondary group-hover:text-pho-secondary-hover size-4 shrink-0 transition-colors"
|
|
1770
1787
|
})]
|
|
1771
1788
|
})]
|
|
1772
1789
|
});
|
|
1773
1790
|
}
|
|
1774
|
-
function On({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, onClose:
|
|
1775
|
-
const
|
|
1791
|
+
function On({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, onClose: l, width: i = "default", presentation: o, defaultPresentation: p, onPresentationChange: s, expandable: d = !0, children: m }) {
|
|
1792
|
+
const c = k(oa), h = c != null ? ct(c.paneWidth, i) : 0, g = e ?? U.toArray(m).length > 0, { presentation: v, setPresentation: y, canChoose: w } = Ln({
|
|
1776
1793
|
isOpen: g,
|
|
1777
|
-
paneNarrow:
|
|
1778
|
-
presentation:
|
|
1794
|
+
paneNarrow: c?.paneNarrow ?? !1,
|
|
1795
|
+
presentation: o,
|
|
1779
1796
|
defaultPresentation: p,
|
|
1780
|
-
onPresentationChange:
|
|
1781
|
-
}), f =
|
|
1797
|
+
onPresentationChange: s
|
|
1798
|
+
}), f = c?.setOpen, A = c?.setAsPage, x = c?.setPresent;
|
|
1782
1799
|
if (H(() => {
|
|
1783
1800
|
if (x != null)
|
|
1784
1801
|
return x(!0), () => x(!1);
|
|
@@ -1789,79 +1806,79 @@ function On({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
|
|
|
1789
1806
|
if (A != null)
|
|
1790
1807
|
return A(v === "page"), () => A(!1);
|
|
1791
1808
|
}, [A, v]), L(() => {
|
|
1792
|
-
|
|
1793
|
-
}, [
|
|
1809
|
+
c == null && typeof process < "u" && process.env.NODE_ENV !== "production" && console.warn("BasicPage.Aside: needs a `BasicPage.Root` around it.");
|
|
1810
|
+
}, [c]), c == null || c.slot == null) return null;
|
|
1794
1811
|
const E = d && w ? () => y("page") : void 0;
|
|
1795
1812
|
if (v === "page") {
|
|
1796
|
-
const S = d && w && !
|
|
1813
|
+
const S = d && w && !c.paneNarrow ? () => y("panel") : void 0;
|
|
1797
1814
|
return $e(g ? /* @__PURE__ */ b("div", {
|
|
1798
1815
|
"data-basic-page-aside": "page",
|
|
1799
|
-
"data-basic-page-aside-expanded":
|
|
1816
|
+
"data-basic-page-aside-expanded": c.paneNarrow ? void 0 : "",
|
|
1800
1817
|
className: "relative flex min-w-0 flex-1 flex-col",
|
|
1801
1818
|
children: [S != null ? /* @__PURE__ */ a("span", {
|
|
1802
1819
|
className: "absolute top-2 right-2 z-30",
|
|
1803
|
-
children: /* @__PURE__ */ a(X.Provider, { children: /* @__PURE__ */ a(
|
|
1820
|
+
children: /* @__PURE__ */ a(X.Provider, { children: /* @__PURE__ */ a(Ma, {
|
|
1804
1821
|
label: "Show as panel",
|
|
1805
|
-
icon: /* @__PURE__ */ a(
|
|
1822
|
+
icon: /* @__PURE__ */ a(Va, {}),
|
|
1806
1823
|
onClick: S
|
|
1807
1824
|
}) })
|
|
1808
1825
|
}) : null, m]
|
|
1809
|
-
}) : null,
|
|
1826
|
+
}) : null, c.slot);
|
|
1810
1827
|
}
|
|
1811
1828
|
return t === "inline" ? $e(/* @__PURE__ */ a(Bn, {
|
|
1812
1829
|
width: h,
|
|
1813
|
-
paneHeight:
|
|
1814
|
-
onClose:
|
|
1830
|
+
paneHeight: c.paneHeight,
|
|
1831
|
+
onClose: l,
|
|
1815
1832
|
onExpand: E,
|
|
1816
1833
|
open: g,
|
|
1817
1834
|
placeholder: r,
|
|
1818
1835
|
children: m
|
|
1819
|
-
}),
|
|
1820
|
-
container:
|
|
1836
|
+
}), c.slot) : /* @__PURE__ */ a(Mn, {
|
|
1837
|
+
container: c.slot,
|
|
1821
1838
|
width: h,
|
|
1822
|
-
paneHeight:
|
|
1823
|
-
onClose:
|
|
1839
|
+
paneHeight: c.paneHeight,
|
|
1840
|
+
onClose: l,
|
|
1824
1841
|
onExpand: E,
|
|
1825
1842
|
open: g,
|
|
1826
1843
|
modal: n,
|
|
1827
1844
|
children: m
|
|
1828
1845
|
});
|
|
1829
1846
|
}
|
|
1830
|
-
function Ln({ isOpen: e, paneNarrow: t, presentation: n, defaultPresentation: r, onPresentationChange:
|
|
1831
|
-
const [
|
|
1847
|
+
function Ln({ isOpen: e, paneNarrow: t, presentation: n, defaultPresentation: r, onPresentationChange: l }) {
|
|
1848
|
+
const [i, o] = _(e), [p, s] = _(null);
|
|
1832
1849
|
H(() => {
|
|
1833
|
-
e || (
|
|
1850
|
+
e || (o(!1), s(null));
|
|
1834
1851
|
}, [e]);
|
|
1835
1852
|
const d = n != null;
|
|
1836
1853
|
return {
|
|
1837
|
-
presentation: t ? "page" : n ?? p ?? r ?? (
|
|
1854
|
+
presentation: t ? "page" : n ?? p ?? r ?? (i ? "page" : "panel"),
|
|
1838
1855
|
setPresentation: Pe((m) => {
|
|
1839
|
-
d ||
|
|
1840
|
-
}, [d,
|
|
1841
|
-
canChoose: !d ||
|
|
1856
|
+
d || s(m), l?.(m);
|
|
1857
|
+
}, [d, l]),
|
|
1858
|
+
canChoose: !d || l != null
|
|
1842
1859
|
};
|
|
1843
1860
|
}
|
|
1844
|
-
function
|
|
1861
|
+
function Ba() {
|
|
1845
1862
|
const [e, t] = _(null), n = V(() => ({ setBack: t }), []), r = C(null);
|
|
1846
1863
|
return {
|
|
1847
1864
|
back: e,
|
|
1848
1865
|
panel: n,
|
|
1849
1866
|
closeRef: r,
|
|
1850
1867
|
leave: Pe(() => {
|
|
1851
|
-
const
|
|
1852
|
-
return
|
|
1868
|
+
const l = r.current?.querySelector("a, button");
|
|
1869
|
+
return l == null ? !1 : (l.click(), !0);
|
|
1853
1870
|
}, [])
|
|
1854
1871
|
};
|
|
1855
1872
|
}
|
|
1856
|
-
var
|
|
1873
|
+
var Ze = {
|
|
1857
1874
|
variant: "ghost",
|
|
1858
1875
|
size: "sm",
|
|
1859
1876
|
svgOnly: !0,
|
|
1860
1877
|
"aria-label": "Close",
|
|
1861
|
-
children: /* @__PURE__ */ a(
|
|
1878
|
+
children: /* @__PURE__ */ a(ta, {})
|
|
1862
1879
|
};
|
|
1863
|
-
function
|
|
1864
|
-
return /* @__PURE__ */ b(X.Root, { children: [/* @__PURE__ */ a(X.Trigger, { render: /* @__PURE__ */ a(
|
|
1880
|
+
function Ma({ label: e, icon: t, onClick: n }) {
|
|
1881
|
+
return /* @__PURE__ */ b(X.Root, { children: [/* @__PURE__ */ a(X.Trigger, { render: /* @__PURE__ */ a(re, {
|
|
1865
1882
|
variant: "ghost",
|
|
1866
1883
|
size: "sm",
|
|
1867
1884
|
svgOnly: !0,
|
|
@@ -1870,22 +1887,22 @@ function La({ label: e, icon: t, onClick: n }) {
|
|
|
1870
1887
|
children: t
|
|
1871
1888
|
}) }), /* @__PURE__ */ a(X.Portal, { children: /* @__PURE__ */ a(X.Positioner, { children: /* @__PURE__ */ a(X.Popup, { children: e }) }) })] });
|
|
1872
1889
|
}
|
|
1873
|
-
function
|
|
1890
|
+
function Da({ back: e, onClose: t, onExpand: n, closeRef: r, panel: l, children: i }) {
|
|
1874
1891
|
return /* @__PURE__ */ b(Z, { children: [/* @__PURE__ */ b("span", {
|
|
1875
1892
|
className: "absolute top-2 right-2 z-30 flex items-center gap-0.5",
|
|
1876
|
-
children: [n != null ? /* @__PURE__ */ a(X.Provider, { children: /* @__PURE__ */ a(
|
|
1893
|
+
children: [n != null ? /* @__PURE__ */ a(X.Provider, { children: /* @__PURE__ */ a(Ma, {
|
|
1877
1894
|
label: "Expand",
|
|
1878
|
-
icon: /* @__PURE__ */ a(
|
|
1895
|
+
icon: /* @__PURE__ */ a(ja, {}),
|
|
1879
1896
|
onClick: n
|
|
1880
1897
|
}) }) : null, /* @__PURE__ */ a("span", {
|
|
1881
1898
|
ref: r,
|
|
1882
1899
|
className: "contents",
|
|
1883
1900
|
children: e != null ? /* @__PURE__ */ a(Re, {
|
|
1884
|
-
...
|
|
1901
|
+
...Ze,
|
|
1885
1902
|
href: e.href,
|
|
1886
1903
|
onClick: e.onClick
|
|
1887
|
-
}) : t != null ? /* @__PURE__ */ a(
|
|
1888
|
-
...
|
|
1904
|
+
}) : t != null ? /* @__PURE__ */ a(re, {
|
|
1905
|
+
...Ze,
|
|
1889
1906
|
onClick: t
|
|
1890
1907
|
}) : null
|
|
1891
1908
|
})]
|
|
@@ -1901,25 +1918,25 @@ function Ba({ back: e, onClose: t, onExpand: n, closeRef: r, panel: s, children:
|
|
|
1901
1918
|
width: "100%",
|
|
1902
1919
|
maxWidth: "100%"
|
|
1903
1920
|
},
|
|
1904
|
-
children: /* @__PURE__ */ a(
|
|
1905
|
-
value:
|
|
1921
|
+
children: /* @__PURE__ */ a(ca.Provider, {
|
|
1922
|
+
value: l,
|
|
1906
1923
|
children: /* @__PURE__ */ a(Oe.Provider, {
|
|
1907
1924
|
value: !0,
|
|
1908
|
-
children:
|
|
1925
|
+
children: i
|
|
1909
1926
|
})
|
|
1910
1927
|
})
|
|
1911
1928
|
})
|
|
1912
1929
|
}), /* @__PURE__ */ a(te.Scrollbar, { children: /* @__PURE__ */ a(te.Thumb, {}) })]
|
|
1913
1930
|
})] });
|
|
1914
1931
|
}
|
|
1915
|
-
function Bn({ width: e, paneHeight: t, onClose: n, onExpand: r, open:
|
|
1916
|
-
const p = I(), { back:
|
|
1932
|
+
function Bn({ width: e, paneHeight: t, onClose: n, onExpand: r, open: l, placeholder: i, children: o }) {
|
|
1933
|
+
const p = I(), { back: s, panel: d, closeRef: m, leave: c } = Ba(), h = p ? "blur(0px)" : `blur(${Te}px)`, g = t ?? "100dvh";
|
|
1917
1934
|
L(() => {
|
|
1918
1935
|
const y = (w) => {
|
|
1919
|
-
w.key !== "Escape" || w.defaultPrevented ||
|
|
1936
|
+
w.key !== "Escape" || w.defaultPrevented || c() && w.preventDefault();
|
|
1920
1937
|
};
|
|
1921
1938
|
return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
|
|
1922
|
-
}, [
|
|
1939
|
+
}, [c]);
|
|
1923
1940
|
const v = {
|
|
1924
1941
|
initial: {
|
|
1925
1942
|
opacity: 0,
|
|
@@ -1933,7 +1950,7 @@ function Bn({ width: e, paneHeight: t, onClose: n, onExpand: r, open: s, placeho
|
|
|
1933
1950
|
opacity: 0,
|
|
1934
1951
|
filter: h
|
|
1935
1952
|
},
|
|
1936
|
-
transition: p ? { duration: 0 } :
|
|
1953
|
+
transition: p ? { duration: 0 } : pe
|
|
1937
1954
|
};
|
|
1938
1955
|
return /* @__PURE__ */ a("aside", {
|
|
1939
1956
|
"data-basic-page-aside": "panel",
|
|
@@ -1950,47 +1967,47 @@ function Bn({ width: e, paneHeight: t, onClose: n, onExpand: r, open: s, placeho
|
|
|
1950
1967
|
style: { height: g },
|
|
1951
1968
|
children: /* @__PURE__ */ a(z, {
|
|
1952
1969
|
initial: !1,
|
|
1953
|
-
children:
|
|
1970
|
+
children: l ? /* @__PURE__ */ a(N.div, {
|
|
1954
1971
|
...v,
|
|
1955
1972
|
className: "relative flex min-w-0 flex-col",
|
|
1956
|
-
children: /* @__PURE__ */ a(
|
|
1957
|
-
back:
|
|
1973
|
+
children: /* @__PURE__ */ a(Da, {
|
|
1974
|
+
back: s,
|
|
1958
1975
|
onClose: n,
|
|
1959
1976
|
onExpand: r,
|
|
1960
1977
|
closeRef: m,
|
|
1961
1978
|
panel: d,
|
|
1962
|
-
children:
|
|
1979
|
+
children: o
|
|
1963
1980
|
})
|
|
1964
1981
|
}, "page") : /* @__PURE__ */ a(N.div, {
|
|
1965
1982
|
...v,
|
|
1966
1983
|
className: "flex flex-col",
|
|
1967
|
-
children:
|
|
1984
|
+
children: i
|
|
1968
1985
|
}, "empty")
|
|
1969
1986
|
})
|
|
1970
1987
|
})
|
|
1971
1988
|
});
|
|
1972
1989
|
}
|
|
1973
|
-
function Mn({ container: e, width: t, paneHeight: n, onClose: r, onExpand:
|
|
1974
|
-
const { back:
|
|
1975
|
-
return /* @__PURE__ */ a(
|
|
1976
|
-
open:
|
|
1977
|
-
modal:
|
|
1990
|
+
function Mn({ container: e, width: t, paneHeight: n, onClose: r, onExpand: l, open: i, modal: o, children: p }) {
|
|
1991
|
+
const { back: s, panel: d, closeRef: m, leave: c } = Ba(), h = n ?? "100dvh";
|
|
1992
|
+
return /* @__PURE__ */ a(le.Root, {
|
|
1993
|
+
open: i,
|
|
1994
|
+
modal: o ? "trap-focus" : !1,
|
|
1978
1995
|
disablePointerDismissal: !0,
|
|
1979
1996
|
onOpenChange: (g, v) => {
|
|
1980
|
-
g || (v.cancel(),
|
|
1997
|
+
g || (v.cancel(), c());
|
|
1981
1998
|
},
|
|
1982
|
-
children: /* @__PURE__ */ b(
|
|
1999
|
+
children: /* @__PURE__ */ b(le.Portal, {
|
|
1983
2000
|
container: e,
|
|
1984
2001
|
className: "contents",
|
|
1985
|
-
children: [
|
|
2002
|
+
children: [o ? /* @__PURE__ */ a(le.Backdrop, {
|
|
1986
2003
|
"data-basic-page-aside-backdrop": "",
|
|
1987
2004
|
className: u("bg-pho-overlay absolute inset-0 z-30 transition-opacity duration-200 ease-out motion-reduce:transition-none", "data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"),
|
|
1988
|
-
onClick:
|
|
1989
|
-
}) : null, /* @__PURE__ */ a(
|
|
2005
|
+
onClick: c
|
|
2006
|
+
}) : null, /* @__PURE__ */ a(le.Popup, {
|
|
1990
2007
|
"data-basic-page-aside": "panel",
|
|
1991
2008
|
"data-basic-page-aside-variant": "overlay",
|
|
1992
|
-
initialFocus:
|
|
1993
|
-
finalFocus:
|
|
2009
|
+
initialFocus: o ? void 0 : !1,
|
|
2010
|
+
finalFocus: o ? void 0 : !1,
|
|
1994
2011
|
className: u("absolute inset-y-0 right-0 z-30 flex min-w-0 flex-col outline-none", "transition-[translate,opacity] duration-250 ease-out motion-reduce:transition-none", "data-[ending-style]:translate-x-3 data-[ending-style]:opacity-0 data-[ending-style]:duration-200 data-[starting-style]:translate-x-3 data-[starting-style]:opacity-0"),
|
|
1995
2012
|
style: {
|
|
1996
2013
|
width: t,
|
|
@@ -2000,10 +2017,10 @@ function Mn({ container: e, width: t, paneHeight: n, onClose: r, onExpand: s, op
|
|
|
2000
2017
|
children: /* @__PURE__ */ a("div", {
|
|
2001
2018
|
className: "border-pho-secondary bg-pho-primary shadow-pho-xl sticky top-0 flex min-w-0 flex-col overflow-hidden border-l",
|
|
2002
2019
|
style: { height: h },
|
|
2003
|
-
children: /* @__PURE__ */ a(
|
|
2004
|
-
back:
|
|
2020
|
+
children: /* @__PURE__ */ a(Da, {
|
|
2021
|
+
back: s,
|
|
2005
2022
|
onClose: r,
|
|
2006
|
-
onExpand:
|
|
2023
|
+
onExpand: l,
|
|
2007
2024
|
closeRef: m,
|
|
2008
2025
|
panel: d,
|
|
2009
2026
|
children: p
|
|
@@ -2013,24 +2030,24 @@ function Mn({ container: e, width: t, paneHeight: n, onClose: r, onExpand: s, op
|
|
|
2013
2030
|
})
|
|
2014
2031
|
});
|
|
2015
2032
|
}
|
|
2016
|
-
var Dn = "14rem", Fn = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none",
|
|
2017
|
-
function Hn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r, placeholder:
|
|
2018
|
-
const
|
|
2033
|
+
var Dn = "14rem", Fn = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none", ea = "transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none";
|
|
2034
|
+
function Hn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r, placeholder: l, label: i, className: o, ...p }) {
|
|
2035
|
+
const s = k(Se), d = ge(s?.subscribe ?? be, () => s?.get().api ?? null, () => null), m = n != null;
|
|
2019
2036
|
L(() => {
|
|
2020
|
-
if (!(
|
|
2021
|
-
return
|
|
2022
|
-
}, [
|
|
2023
|
-
const
|
|
2037
|
+
if (!(s == null || m))
|
|
2038
|
+
return s.adopt(!0), () => s.adopt(!1);
|
|
2039
|
+
}, [s, m]);
|
|
2040
|
+
const c = m ? {
|
|
2024
2041
|
query: n,
|
|
2025
2042
|
setQuery: r,
|
|
2026
|
-
placeholder:
|
|
2027
|
-
label:
|
|
2043
|
+
placeholder: l ?? "Search",
|
|
2044
|
+
label: i ?? l ?? "Search"
|
|
2028
2045
|
} : d == null ? null : {
|
|
2029
2046
|
query: d.query,
|
|
2030
2047
|
setQuery: d.setQuery,
|
|
2031
2048
|
placeholder: d.placeholder,
|
|
2032
|
-
label:
|
|
2033
|
-
}, [h, g] = _(!1), v = C(null), y = h || (
|
|
2049
|
+
label: i ?? d.placeholder
|
|
2050
|
+
}, [h, g] = _(!1), v = C(null), y = h || (c?.query ?? "") !== "";
|
|
2034
2051
|
if (L(() => {
|
|
2035
2052
|
if (!h) return;
|
|
2036
2053
|
let f = 0, A = 0;
|
|
@@ -2042,16 +2059,16 @@ function Hn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
2042
2059
|
}, [h]), e === "ghost") return /* @__PURE__ */ a("div", {
|
|
2043
2060
|
"data-basic-page-search": "",
|
|
2044
2061
|
"data-variant": "ghost",
|
|
2045
|
-
className: u("flex min-w-0 flex-1",
|
|
2062
|
+
className: u("flex min-w-0 flex-1", c == null && "hidden", o),
|
|
2046
2063
|
...p,
|
|
2047
|
-
children:
|
|
2048
|
-
value:
|
|
2049
|
-
onChange:
|
|
2050
|
-
onClear: () =>
|
|
2051
|
-
placeholder:
|
|
2052
|
-
"aria-label":
|
|
2064
|
+
children: c != null && /* @__PURE__ */ a(at, {
|
|
2065
|
+
value: c.query,
|
|
2066
|
+
onChange: c.setQuery,
|
|
2067
|
+
onClear: () => c.setQuery(""),
|
|
2068
|
+
placeholder: c.placeholder,
|
|
2069
|
+
"aria-label": c.label,
|
|
2053
2070
|
onKeyDown: (f) => {
|
|
2054
|
-
f.key === "Escape" && (f.preventDefault(),
|
|
2071
|
+
f.key === "Escape" && (f.preventDefault(), c.setQuery(""), f.currentTarget.blur());
|
|
2055
2072
|
}
|
|
2056
2073
|
})
|
|
2057
2074
|
});
|
|
@@ -2059,70 +2076,70 @@ function Hn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
2059
2076
|
return /* @__PURE__ */ a("div", {
|
|
2060
2077
|
"data-basic-page-search": "",
|
|
2061
2078
|
"data-expanded": y || void 0,
|
|
2062
|
-
className: u("grid min-w-0 content-center", "[[data-basic-page-header]>&]:col-start-2 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:justify-items-end [[data-basic-page-header]>&]:self-start",
|
|
2079
|
+
className: u("grid min-w-0 content-center", "[[data-basic-page-header]>&]:col-start-2 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:justify-items-end [[data-basic-page-header]>&]:self-start", c == null && "hidden", o),
|
|
2063
2080
|
...p,
|
|
2064
|
-
children:
|
|
2081
|
+
children: c != null && /* @__PURE__ */ b("div", {
|
|
2065
2082
|
className: u("grid w-9 max-w-full justify-items-end *:[grid-area:1/1]", Fn, w && "@[36rem]:w-56"),
|
|
2066
2083
|
style: y ? { width: Dn } : void 0,
|
|
2067
|
-
children: [/* @__PURE__ */ a(
|
|
2084
|
+
children: [/* @__PURE__ */ a(re, {
|
|
2068
2085
|
variant: "outlined",
|
|
2069
2086
|
size: "sm",
|
|
2070
2087
|
shape: "circle",
|
|
2071
2088
|
svgOnly: !0,
|
|
2072
|
-
"aria-label":
|
|
2089
|
+
"aria-label": c.label,
|
|
2073
2090
|
"aria-hidden": y || void 0,
|
|
2074
2091
|
tabIndex: y ? -1 : void 0,
|
|
2075
2092
|
onClick: () => g(!0),
|
|
2076
|
-
className: u(
|
|
2077
|
-
children: /* @__PURE__ */ a(
|
|
2093
|
+
className: u(ea, y ? "pointer-events-none invisible opacity-0" : "visible opacity-100", w && "@[36rem]:pointer-events-none @[36rem]:invisible @[36rem]:opacity-0"),
|
|
2094
|
+
children: /* @__PURE__ */ a(Xa, {})
|
|
2078
2095
|
}), /* @__PURE__ */ a("div", {
|
|
2079
2096
|
inert: !w && !y,
|
|
2080
|
-
className: u("w-full min-w-0",
|
|
2081
|
-
children: /* @__PURE__ */ a(
|
|
2097
|
+
className: u("w-full min-w-0", ea, y ? "visible opacity-100" : "pointer-events-none invisible opacity-0", w && "@[36rem]:pointer-events-auto @[36rem]:visible @[36rem]:opacity-100"),
|
|
2098
|
+
children: /* @__PURE__ */ a(tt, {
|
|
2082
2099
|
ref: v,
|
|
2083
|
-
value:
|
|
2084
|
-
onChange: (f) =>
|
|
2085
|
-
onClear: () =>
|
|
2100
|
+
value: c.query,
|
|
2101
|
+
onChange: (f) => c.setQuery(f.target.value),
|
|
2102
|
+
onClear: () => c.setQuery(""),
|
|
2086
2103
|
onBlur: () => {
|
|
2087
|
-
|
|
2104
|
+
c.query === "" && g(!1);
|
|
2088
2105
|
},
|
|
2089
2106
|
onKeyDown: (f) => {
|
|
2090
|
-
f.key === "Escape" && (f.preventDefault(),
|
|
2107
|
+
f.key === "Escape" && (f.preventDefault(), c.setQuery(""), g(!1), f.currentTarget.blur());
|
|
2091
2108
|
},
|
|
2092
|
-
placeholder:
|
|
2093
|
-
"aria-label":
|
|
2109
|
+
placeholder: c.placeholder,
|
|
2110
|
+
"aria-label": c.label,
|
|
2094
2111
|
className: "w-full"
|
|
2095
2112
|
})
|
|
2096
2113
|
})]
|
|
2097
2114
|
})
|
|
2098
2115
|
});
|
|
2099
2116
|
}
|
|
2100
|
-
function zn({ header: e, main: t, side: n, foot: r, enter:
|
|
2101
|
-
const
|
|
2117
|
+
function zn({ header: e, main: t, side: n, foot: r, enter: l }) {
|
|
2118
|
+
const i = n != null;
|
|
2102
2119
|
return /* @__PURE__ */ a("div", {
|
|
2103
2120
|
"data-basic-page-columns": "",
|
|
2104
2121
|
className: "@container w-full min-w-0",
|
|
2105
2122
|
children: /* @__PURE__ */ b("div", {
|
|
2106
|
-
className: u("mx-auto w-full max-w-[42rem]",
|
|
2123
|
+
className: u("mx-auto w-full max-w-[42rem]", i && "@min-[73.5rem]:max-w-none"),
|
|
2107
2124
|
children: [e, /* @__PURE__ */ b("div", {
|
|
2108
|
-
className: u("grid gap-x-10 gap-y-4",
|
|
2125
|
+
className: u("grid gap-x-10 gap-y-4", i && "@min-[73.5rem]:grid-cols-[minmax(42rem,1fr)_minmax(29rem,32rem)] @min-[73.5rem]:grid-rows-[auto_minmax(0,1fr)]", i && "[&>[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"),
|
|
2109
2126
|
children: [
|
|
2110
|
-
/* @__PURE__ */ a(
|
|
2111
|
-
enter:
|
|
2127
|
+
/* @__PURE__ */ a(oe, {
|
|
2128
|
+
enter: l,
|
|
2112
2129
|
"data-basic-page-columns-main": "",
|
|
2113
|
-
className: u("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0",
|
|
2130
|
+
className: u("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0", i && "@min-[73.5rem]:col-start-1 @min-[73.5rem]:row-span-2 @min-[73.5rem]:row-start-1"),
|
|
2114
2131
|
children: t
|
|
2115
2132
|
}),
|
|
2116
|
-
|
|
2117
|
-
enter:
|
|
2133
|
+
i ? /* @__PURE__ */ a(oe, {
|
|
2134
|
+
enter: l,
|
|
2118
2135
|
"data-basic-page-columns-side": "",
|
|
2119
2136
|
className: u("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0", "@min-[73.5rem]:col-start-2 @min-[73.5rem]:row-start-1"),
|
|
2120
2137
|
children: n
|
|
2121
2138
|
}) : null,
|
|
2122
|
-
r != null ? /* @__PURE__ */ a(
|
|
2123
|
-
enter:
|
|
2139
|
+
r != null ? /* @__PURE__ */ a(oe, {
|
|
2140
|
+
enter: l,
|
|
2124
2141
|
"data-basic-page-columns-foot": "",
|
|
2125
|
-
className: u("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0",
|
|
2142
|
+
className: u("[[data-basic-page-stack]>[data-basic-page-columns]_&]:mt-0", i && "@min-[73.5rem]:col-start-2 @min-[73.5rem]:row-start-2 @min-[73.5rem]:self-start"),
|
|
2126
2143
|
children: r
|
|
2127
2144
|
}) : null
|
|
2128
2145
|
]
|
|
@@ -2131,70 +2148,70 @@ function zn({ header: e, main: t, side: n, foot: r, enter: s }) {
|
|
|
2131
2148
|
});
|
|
2132
2149
|
}
|
|
2133
2150
|
var vr = {
|
|
2134
|
-
Root:
|
|
2151
|
+
Root: pt,
|
|
2135
2152
|
Aside: On,
|
|
2136
2153
|
Search: Hn,
|
|
2137
|
-
Table:
|
|
2138
|
-
Code:
|
|
2139
|
-
CondenseScope:
|
|
2140
|
-
Breadcrumbs:
|
|
2141
|
-
Crumb:
|
|
2154
|
+
Table: Ya,
|
|
2155
|
+
Code: qa,
|
|
2156
|
+
CondenseScope: Nt,
|
|
2157
|
+
Breadcrumbs: Oa,
|
|
2158
|
+
Crumb: La,
|
|
2142
2159
|
Back: Pn,
|
|
2143
|
-
Title:
|
|
2144
|
-
TitleAccessory:
|
|
2145
|
-
Stack:
|
|
2160
|
+
Title: St,
|
|
2161
|
+
TitleAccessory: Rt,
|
|
2162
|
+
Stack: oe,
|
|
2146
2163
|
Columns: zn,
|
|
2147
|
-
Header:
|
|
2148
|
-
HeaderAction:
|
|
2149
|
-
SectionTitle:
|
|
2150
|
-
Description:
|
|
2151
|
-
TableCount:
|
|
2152
|
-
SectionFooter:
|
|
2153
|
-
Card:
|
|
2154
|
-
Item:
|
|
2155
|
-
ItemPanel:
|
|
2156
|
-
Callout:
|
|
2157
|
-
CalloutTitle:
|
|
2158
|
-
CalloutDescription:
|
|
2159
|
-
Onboard:
|
|
2160
|
-
Step:
|
|
2161
|
-
Checklist:
|
|
2162
|
-
Check:
|
|
2163
|
-
Timeline:
|
|
2164
|
-
TimelineItem:
|
|
2165
|
-
Row:
|
|
2164
|
+
Header: Ft,
|
|
2165
|
+
HeaderAction: Ht,
|
|
2166
|
+
SectionTitle: zt,
|
|
2167
|
+
Description: va,
|
|
2168
|
+
TableCount: Gt,
|
|
2169
|
+
SectionFooter: $t,
|
|
2170
|
+
Card: Wt,
|
|
2171
|
+
Item: Vt,
|
|
2172
|
+
ItemPanel: jt,
|
|
2173
|
+
Callout: qt,
|
|
2174
|
+
CalloutTitle: Kt,
|
|
2175
|
+
CalloutDescription: Xt,
|
|
2176
|
+
Onboard: Ut,
|
|
2177
|
+
Step: ln,
|
|
2178
|
+
Checklist: an,
|
|
2179
|
+
Check: tn,
|
|
2180
|
+
Timeline: nn,
|
|
2181
|
+
TimelineItem: rn,
|
|
2182
|
+
Row: on,
|
|
2166
2183
|
RowLink: In,
|
|
2167
|
-
Value:
|
|
2184
|
+
Value: cn,
|
|
2168
2185
|
Meta: Ge.Root,
|
|
2169
2186
|
MetaItem: Ge.Item,
|
|
2170
|
-
Receipt:
|
|
2171
|
-
ReceiptGroup:
|
|
2172
|
-
ReceiptLine:
|
|
2173
|
-
ReceiptTotal:
|
|
2174
|
-
Alert:
|
|
2187
|
+
Receipt: fn,
|
|
2188
|
+
ReceiptGroup: hn,
|
|
2189
|
+
ReceiptLine: gn,
|
|
2190
|
+
ReceiptTotal: bn,
|
|
2191
|
+
Alert: vn,
|
|
2175
2192
|
Footer: An,
|
|
2176
|
-
Form:
|
|
2177
|
-
Saved:
|
|
2193
|
+
Form: yn,
|
|
2194
|
+
Saved: xn,
|
|
2178
2195
|
Fields: wn,
|
|
2179
2196
|
Inline: Nn,
|
|
2180
2197
|
Submit: _n,
|
|
2181
2198
|
Reveal: ze
|
|
2182
2199
|
};
|
|
2183
2200
|
export {
|
|
2184
|
-
|
|
2201
|
+
st as a,
|
|
2185
2202
|
vr as c,
|
|
2186
|
-
|
|
2203
|
+
_t as d,
|
|
2187
2204
|
Ae as f,
|
|
2188
|
-
|
|
2189
|
-
|
|
2205
|
+
it as i,
|
|
2206
|
+
pe as l,
|
|
2190
2207
|
hr as m,
|
|
2191
2208
|
We as n,
|
|
2192
|
-
|
|
2209
|
+
lt as o,
|
|
2193
2210
|
gr as p,
|
|
2194
|
-
|
|
2195
|
-
|
|
2211
|
+
sa as r,
|
|
2212
|
+
rt as s,
|
|
2196
2213
|
br as t,
|
|
2197
|
-
|
|
2214
|
+
At as u
|
|
2198
2215
|
};
|
|
2199
2216
|
|
|
2200
|
-
//# sourceMappingURL=basic-page-
|
|
2217
|
+
//# sourceMappingURL=basic-page-C0C8NDjG.js.map
|