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