@olonjs/core 1.1.12 → 1.1.15
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/index.d.ts +17 -0
- package/dist/olonjs-core-runtime.js +47 -39
- package/dist/olonjs-core.js +229 -219
- package/dist/olonjs-core.umd.cjs +27 -27
- package/dist/runtime.d.ts +17 -0
- package/package.json +1 -1
package/dist/olonjs-core.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z as q } from "zod";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import he, { forwardRef as Li, createElement as ui, Component as Oa, useEffect as X, useState as re, useRef as me, useMemo as pe, useLayoutEffect as $i, useCallback as le, memo as Hd, useReducer as Vd, useContext as At, createContext as
|
|
3
|
+
import he, { forwardRef as Li, createElement as ui, Component as Oa, useEffect as X, useState as re, useRef as me, useMemo as pe, useLayoutEffect as $i, useCallback as le, memo as Hd, useReducer as Vd, useContext as At, createContext as Mr, cloneElement as Kd, useDeferredValue as Yd } from "react";
|
|
4
4
|
import { useConfig as Ia, ConfigProvider as Da } from "./olonjs-core-runtime.js";
|
|
5
|
-
import { ConfigProvider as
|
|
5
|
+
import { ConfigProvider as Bx, useConfig as Ux } from "./olonjs-core-runtime.js";
|
|
6
6
|
import { useStudio as _a, StudioProvider as Fi } from "./olonjs-core-runtime.js";
|
|
7
|
-
import { StudioProvider as
|
|
7
|
+
import { StudioProvider as Vx, useStudio as Kx } from "./olonjs-core-runtime.js";
|
|
8
8
|
import { Link as Gd, createRoutesFromElements as Zd, createBrowserRouter as qd, RouterProvider as Xd, ScrollRestoration as Jd, Outlet as Qd, useLocation as Ma, useNavigate as eu, Route as dt } from "react-router-dom";
|
|
9
9
|
import { themeManager as Wi, buildThemeVariableMap as tu } from "./olonjs-core-runtime.js";
|
|
10
|
-
import { buildThemeVariableMap as
|
|
10
|
+
import { buildThemeVariableMap as Gx } from "./olonjs-core-runtime.js";
|
|
11
11
|
import { IconRegistryContext as ru } from "./olonjs-core-runtime.js";
|
|
12
12
|
import { StudioProvider as La, useStudio as nu } from "./olonjs-core-runtime.js";
|
|
13
13
|
import { themeManager as ou } from "./olonjs-core-runtime.js";
|
|
14
|
-
import { themeManager as
|
|
14
|
+
import { themeManager as qx } from "./olonjs-core-runtime.js";
|
|
15
15
|
import * as mo from "react-dom";
|
|
16
16
|
import iu, { unstable_batchedUpdates as Rn, createPortal as $a } from "react-dom";
|
|
17
17
|
import { useConfig as Bi } from "./olonjs-core-runtime.js";
|
|
@@ -22,12 +22,12 @@ function Ui(e, t) {
|
|
|
22
22
|
function Ke(e) {
|
|
23
23
|
return typeof e == "object" && e !== null;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function rn(e) {
|
|
26
26
|
if (!Ke(e)) return !1;
|
|
27
27
|
const t = Object.getPrototypeOf(e);
|
|
28
28
|
return t === Object.prototype || t === null;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Or(e) {
|
|
31
31
|
return Ke(e) && typeof e.$ref == "string" && e.$ref.trim().length > 0;
|
|
32
32
|
}
|
|
33
33
|
function Hi(e) {
|
|
@@ -74,7 +74,7 @@ function lu(e, t) {
|
|
|
74
74
|
return i && r.add(i), Array.from(r);
|
|
75
75
|
}
|
|
76
76
|
function Ut(e) {
|
|
77
|
-
return Array.isArray(e) ? e.map((t) => Ut(t)) :
|
|
77
|
+
return Array.isArray(e) ? e.map((t) => Ut(t)) : rn(e) ? Object.fromEntries(
|
|
78
78
|
Object.entries(e).map(([t, r]) => [t, Ut(r)])
|
|
79
79
|
) : e;
|
|
80
80
|
}
|
|
@@ -164,9 +164,9 @@ function uu(e, t, r) {
|
|
|
164
164
|
function ir(e, t, r) {
|
|
165
165
|
if (Array.isArray(e))
|
|
166
166
|
return e.map((n) => ir(n, t, r));
|
|
167
|
-
if (!
|
|
167
|
+
if (!rn(e))
|
|
168
168
|
return e;
|
|
169
|
-
if (
|
|
169
|
+
if (Or(e)) {
|
|
170
170
|
const n = `${dr(t)}::${e.$ref}`;
|
|
171
171
|
if (r.stack.includes(n))
|
|
172
172
|
return console.warn("[JsonPages] Circular $ref skipped", e.$ref), Ut(e);
|
|
@@ -176,7 +176,7 @@ function ir(e, t, r) {
|
|
|
176
176
|
const u = Object.fromEntries(
|
|
177
177
|
d.map(([f, m]) => [f, ir(m, t, r)])
|
|
178
178
|
);
|
|
179
|
-
return
|
|
179
|
+
return rn(l) ? { ...l, ...u } : l;
|
|
180
180
|
}
|
|
181
181
|
const o = uu(e.$ref, t, r);
|
|
182
182
|
if (!o)
|
|
@@ -191,7 +191,7 @@ function ir(e, t, r) {
|
|
|
191
191
|
const a = Object.fromEntries(
|
|
192
192
|
s.map(([l, d]) => [l, ir(d, t, r)])
|
|
193
193
|
);
|
|
194
|
-
return
|
|
194
|
+
return rn(i) ? { ...i, ...a } : i;
|
|
195
195
|
}
|
|
196
196
|
return Object.fromEntries(
|
|
197
197
|
Object.entries(e).map(([n, o]) => [n, ir(o, t, r)])
|
|
@@ -224,7 +224,7 @@ function fu(e) {
|
|
|
224
224
|
return Ke(e) && typeof e.label == "string" && typeof e.href == "string";
|
|
225
225
|
}
|
|
226
226
|
function pu(e) {
|
|
227
|
-
if (!
|
|
227
|
+
if (!Or(e)) return null;
|
|
228
228
|
const t = e.$ref.trim(), [r, n = ""] = t.split("#");
|
|
229
229
|
if (!/menu\.json$/i.test(r)) return null;
|
|
230
230
|
const o = n.replace(/^\//, "");
|
|
@@ -247,13 +247,13 @@ function Fa(e, t, r) {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
function qn(e, t) {
|
|
250
|
-
if (
|
|
251
|
-
if (
|
|
250
|
+
if (Or(t)) return Ut(t);
|
|
251
|
+
if (Or(e)) return Ut(e);
|
|
252
252
|
if (Array.isArray(t)) {
|
|
253
253
|
const r = Array.isArray(e) ? e : [];
|
|
254
254
|
return t.map((n, o) => qn(r[o], n));
|
|
255
255
|
}
|
|
256
|
-
if (
|
|
256
|
+
if (rn(t)) {
|
|
257
257
|
const r = Ke(e) ? e : {};
|
|
258
258
|
return Object.fromEntries(
|
|
259
259
|
Object.entries(t).map(([n, o]) => [
|
|
@@ -278,7 +278,7 @@ function ho(e, t, r) {
|
|
|
278
278
|
return { normalizedData: i, menuDraft: s };
|
|
279
279
|
}
|
|
280
280
|
function mu(e, t) {
|
|
281
|
-
if (!
|
|
281
|
+
if (!Or(e)) return null;
|
|
282
282
|
const r = e.$ref.trim();
|
|
283
283
|
if (r === "collection:current")
|
|
284
284
|
return t ? {
|
|
@@ -307,18 +307,20 @@ function Bn(e, t, r, n, o) {
|
|
|
307
307
|
for (const d of i) {
|
|
308
308
|
s[d.fieldKey] !== void 0 && (a[d.fieldKey] = s[d.fieldKey]);
|
|
309
309
|
const u = t[d.fieldKey];
|
|
310
|
-
if (
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
if (!Or(u)) {
|
|
311
|
+
if (d.itemId) {
|
|
312
|
+
const f = Ke(l[d.source]) ? l[d.source] : {}, m = f[d.itemId];
|
|
313
|
+
l[d.source] = {
|
|
314
|
+
...f,
|
|
315
|
+
[d.itemId]: qn(m, u)
|
|
316
|
+
};
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
Ke(u) && (l[d.source] = qn(
|
|
320
|
+
l[d.source],
|
|
321
|
+
u
|
|
322
|
+
));
|
|
317
323
|
}
|
|
318
|
-
Ke(u) && (l[d.source] = qn(
|
|
319
|
-
l[d.source],
|
|
320
|
-
u
|
|
321
|
-
));
|
|
322
324
|
}
|
|
323
325
|
return {
|
|
324
326
|
normalizedData: a,
|
|
@@ -735,7 +737,7 @@ function Ua(e) {
|
|
|
735
737
|
}
|
|
736
738
|
return n.trim();
|
|
737
739
|
}
|
|
738
|
-
const
|
|
740
|
+
const Ex = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
739
741
|
__proto__: null,
|
|
740
742
|
applyCollectionRefBindingsToDraft: Bn,
|
|
741
743
|
applyMenuRefBindingsToDraft: ho,
|
|
@@ -754,7 +756,7 @@ const Cx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
754
756
|
resolveSectionMenuItems: Er,
|
|
755
757
|
shouldRenderSiteGlobalHeader: Ui,
|
|
756
758
|
validateCollectionDocuments: Vi
|
|
757
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
759
|
+
}, Symbol.toStringTag, { value: "Module" })), jx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
758
760
|
__proto__: null,
|
|
759
761
|
applyMenuRefBindingsToDraft: ho,
|
|
760
762
|
applySiteMenuRefBindingsToDraft: Yi,
|
|
@@ -764,7 +766,7 @@ const Cx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
764
766
|
resolveSectionMenuItems: Er,
|
|
765
767
|
shouldRenderSiteGlobalHeader: Ui
|
|
766
768
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
767
|
-
var zn = { exports: {} },
|
|
769
|
+
var zn = { exports: {} }, Zr = {};
|
|
768
770
|
/**
|
|
769
771
|
* @license React
|
|
770
772
|
* react-jsx-runtime.production.js
|
|
@@ -776,7 +778,7 @@ var zn = { exports: {} }, Gr = {};
|
|
|
776
778
|
*/
|
|
777
779
|
var Os;
|
|
778
780
|
function Su() {
|
|
779
|
-
if (Os) return
|
|
781
|
+
if (Os) return Zr;
|
|
780
782
|
Os = 1;
|
|
781
783
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
782
784
|
function r(n, o, i) {
|
|
@@ -794,9 +796,9 @@ function Su() {
|
|
|
794
796
|
props: i
|
|
795
797
|
};
|
|
796
798
|
}
|
|
797
|
-
return
|
|
799
|
+
return Zr.Fragment = t, Zr.jsx = r, Zr.jsxs = r, Zr;
|
|
798
800
|
}
|
|
799
|
-
var
|
|
801
|
+
var qr = {};
|
|
800
802
|
/**
|
|
801
803
|
* @license React
|
|
802
804
|
* react-jsx-runtime.development.js
|
|
@@ -1014,7 +1016,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1014
1016
|
p,
|
|
1015
1017
|
i
|
|
1016
1018
|
)(), V = $(n(i)), P = {};
|
|
1017
|
-
|
|
1019
|
+
qr.Fragment = b, qr.jsx = function(N, B, te) {
|
|
1018
1020
|
var oe = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
1019
1021
|
return u(
|
|
1020
1022
|
N,
|
|
@@ -1024,7 +1026,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1024
1026
|
oe ? Error("react-stack-top-frame") : D,
|
|
1025
1027
|
oe ? $(n(N)) : V
|
|
1026
1028
|
);
|
|
1027
|
-
},
|
|
1029
|
+
}, qr.jsxs = function(N, B, te) {
|
|
1028
1030
|
var oe = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
1029
1031
|
return u(
|
|
1030
1032
|
N,
|
|
@@ -1035,7 +1037,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1035
1037
|
oe ? $(n(N)) : V
|
|
1036
1038
|
);
|
|
1037
1039
|
};
|
|
1038
|
-
})()),
|
|
1040
|
+
})()), qr;
|
|
1039
1041
|
}
|
|
1040
1042
|
var Ds;
|
|
1041
1043
|
function Eu() {
|
|
@@ -1366,7 +1368,7 @@ const tf = [
|
|
|
1366
1368
|
const rf = [
|
|
1367
1369
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1368
1370
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1369
|
-
],
|
|
1371
|
+
], nn = Pe("X", rf);
|
|
1370
1372
|
function Ga(e) {
|
|
1371
1373
|
var t, r, n = "";
|
|
1372
1374
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
@@ -1659,7 +1661,7 @@ const of = (e, t) => {
|
|
|
1659
1661
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1660
1662
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1661
1663
|
Tf.test(e) && !zf.test(e)
|
|
1662
|
-
), ts = () => !1, If = (e) => Af.test(e), Df = (e) => Pf.test(e), _f = (e) => !G(e) && !Z(e), Mf = (e) => Gt(e, ol, ts), G = (e) => Qa.test(e), nr = (e) => Gt(e, il, Of), Fs = (e) => Gt(e, Vf, fe), Lf = (e) => Gt(e, al, tl), $f = (e) => Gt(e, sl, ts), Ws = (e) => Gt(e, rl, ts), Ff = (e) => Gt(e, nl, Df), An = (e) => Gt(e, ll, If), Z = (e) => el.test(e),
|
|
1664
|
+
), ts = () => !1, If = (e) => Af.test(e), Df = (e) => Pf.test(e), _f = (e) => !G(e) && !Z(e), Mf = (e) => Gt(e, ol, ts), G = (e) => Qa.test(e), nr = (e) => Gt(e, il, Of), Fs = (e) => Gt(e, Vf, fe), Lf = (e) => Gt(e, al, tl), $f = (e) => Gt(e, sl, ts), Ws = (e) => Gt(e, rl, ts), Ff = (e) => Gt(e, nl, Df), An = (e) => Gt(e, ll, If), Z = (e) => el.test(e), Xr = (e) => vr(e, il), Wf = (e) => vr(e, sl), Bs = (e) => vr(e, rl), Bf = (e) => vr(e, ol), Uf = (e) => vr(e, nl), Pn = (e) => vr(e, ll, !0), Hf = (e) => vr(e, al, !0), Gt = (e, t, r) => {
|
|
1663
1665
|
const n = Qa.exec(e);
|
|
1664
1666
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
1665
1667
|
}, vr = (e, t, r = !1) => {
|
|
@@ -1692,7 +1694,7 @@ const of = (e, t) => {
|
|
|
1692
1694
|
repeat: ["", "x", "y", "space", "round"]
|
|
1693
1695
|
}], te = () => ["auto", "cover", "contain", Bf, Mf, {
|
|
1694
1696
|
size: [Z, G]
|
|
1695
|
-
}], oe = () => [Yo,
|
|
1697
|
+
}], oe = () => [Yo, Xr, nr], ue = () => [
|
|
1696
1698
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1697
1699
|
"",
|
|
1698
1700
|
"none",
|
|
@@ -1700,7 +1702,7 @@ const of = (e, t) => {
|
|
|
1700
1702
|
d,
|
|
1701
1703
|
Z,
|
|
1702
1704
|
G
|
|
1703
|
-
], se = () => ["", fe,
|
|
1705
|
+
], se = () => ["", fe, Xr, nr], U = () => ["solid", "dashed", "dotted", "double"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Y = () => [fe, Yo, Bs, Ws], H = () => [
|
|
1704
1706
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1705
1707
|
"",
|
|
1706
1708
|
"none",
|
|
@@ -2496,7 +2498,7 @@ const of = (e, t) => {
|
|
|
2496
2498
|
* @see https://tailwindcss.com/docs/font-size
|
|
2497
2499
|
*/
|
|
2498
2500
|
"font-size": [{
|
|
2499
|
-
text: ["base", r,
|
|
2501
|
+
text: ["base", r, Xr, nr]
|
|
2500
2502
|
}],
|
|
2501
2503
|
/**
|
|
2502
2504
|
* Font Smoothing
|
|
@@ -3166,7 +3168,7 @@ const of = (e, t) => {
|
|
|
3166
3168
|
* @see https://tailwindcss.com/docs/outline-width
|
|
3167
3169
|
*/
|
|
3168
3170
|
"outline-w": [{
|
|
3169
|
-
outline: ["", fe,
|
|
3171
|
+
outline: ["", fe, Xr, nr]
|
|
3170
3172
|
}],
|
|
3171
3173
|
/**
|
|
3172
3174
|
* Outline Color
|
|
@@ -4219,7 +4221,7 @@ const of = (e, t) => {
|
|
|
4219
4221
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4220
4222
|
*/
|
|
4221
4223
|
"stroke-w": [{
|
|
4222
|
-
stroke: [fe,
|
|
4224
|
+
stroke: [fe, Xr, nr, Fs]
|
|
4223
4225
|
}],
|
|
4224
4226
|
/**
|
|
4225
4227
|
* Stroke
|
|
@@ -4381,7 +4383,7 @@ const Zf = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
|
|
|
4381
4383
|
)
|
|
4382
4384
|
}
|
|
4383
4385
|
);
|
|
4384
|
-
},
|
|
4386
|
+
}, Qr = ({
|
|
4385
4387
|
section: e,
|
|
4386
4388
|
menu: t,
|
|
4387
4389
|
selectedId: r,
|
|
@@ -4532,7 +4534,7 @@ const Zf = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
|
|
|
4532
4534
|
}
|
|
4533
4535
|
),
|
|
4534
4536
|
/* @__PURE__ */ c.jsx(
|
|
4535
|
-
|
|
4537
|
+
Qr,
|
|
4536
4538
|
{
|
|
4537
4539
|
section: E,
|
|
4538
4540
|
menu: Er(E, r.main ?? []),
|
|
@@ -4555,7 +4557,7 @@ const Zf = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
|
|
|
4555
4557
|
"data-section-id": E.id,
|
|
4556
4558
|
onMouseEnter: () => v(E.id),
|
|
4557
4559
|
children: /* @__PURE__ */ c.jsx(
|
|
4558
|
-
|
|
4560
|
+
Qr,
|
|
4559
4561
|
{
|
|
4560
4562
|
section: E,
|
|
4561
4563
|
menu: Er(E, r.main ?? []),
|
|
@@ -4604,7 +4606,7 @@ const Zf = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
|
|
|
4604
4606
|
"data-section-id": m.id,
|
|
4605
4607
|
onMouseEnter: () => v(m.id),
|
|
4606
4608
|
children: /* @__PURE__ */ c.jsx(
|
|
4607
|
-
|
|
4609
|
+
Qr,
|
|
4608
4610
|
{
|
|
4609
4611
|
section: m,
|
|
4610
4612
|
menu: Er(m, r.main ?? []),
|
|
@@ -4623,7 +4625,7 @@ const Zf = ({ type: e, scope: t, isSelected: r, sectionId: n, sectionIndex: o =
|
|
|
4623
4625
|
"data-section-id": p.id,
|
|
4624
4626
|
onMouseEnter: () => v(p.id),
|
|
4625
4627
|
children: /* @__PURE__ */ c.jsx(
|
|
4626
|
-
|
|
4628
|
+
Qr,
|
|
4627
4629
|
{
|
|
4628
4630
|
section: p,
|
|
4629
4631
|
menu: Er(p, r.main ?? []),
|
|
@@ -4830,7 +4832,7 @@ function hi(e) {
|
|
|
4830
4832
|
o.abort(), (n == null ? void 0 : n.get(e.name)) === o && n.delete(e.name);
|
|
4831
4833
|
};
|
|
4832
4834
|
}
|
|
4833
|
-
const
|
|
4835
|
+
const Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4834
4836
|
__proto__: null,
|
|
4835
4837
|
applyValueAtSelectionPath: mi,
|
|
4836
4838
|
buildLlmsTxt: Ua,
|
|
@@ -4878,7 +4880,7 @@ function Qn(e) {
|
|
|
4878
4880
|
const n = (t.startsWith("/") ? t : `/${t}`).replace(/\/+$/, "");
|
|
4879
4881
|
return n.length > 0 ? `${n}/` : "/";
|
|
4880
4882
|
}
|
|
4881
|
-
function
|
|
4883
|
+
function en(e, t) {
|
|
4882
4884
|
const r = e.trim();
|
|
4883
4885
|
if (!r) return Qn(t);
|
|
4884
4886
|
if (Qf.test(r) || r.startsWith("#")) return r;
|
|
@@ -5244,7 +5246,7 @@ const xl = ({
|
|
|
5244
5246
|
onClick: t,
|
|
5245
5247
|
className: "p-1.5 rounded-md text-zinc-400 hover:text-white hover:bg-zinc-800 transition-colors",
|
|
5246
5248
|
"aria-label": "Close",
|
|
5247
|
-
children: /* @__PURE__ */ c.jsx(
|
|
5249
|
+
children: /* @__PURE__ */ c.jsx(nn, { size: 18 })
|
|
5248
5250
|
}
|
|
5249
5251
|
)
|
|
5250
5252
|
] }),
|
|
@@ -5285,7 +5287,7 @@ function op() {
|
|
|
5285
5287
|
);
|
|
5286
5288
|
}
|
|
5287
5289
|
const ko = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
5288
|
-
function
|
|
5290
|
+
function Lr(e) {
|
|
5289
5291
|
const t = Object.prototype.toString.call(e);
|
|
5290
5292
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
5291
5293
|
t === "[object global]";
|
|
@@ -5295,7 +5297,7 @@ function ns(e) {
|
|
|
5295
5297
|
}
|
|
5296
5298
|
function qe(e) {
|
|
5297
5299
|
var t, r;
|
|
5298
|
-
return e ?
|
|
5300
|
+
return e ? Lr(e) ? e : ns(e) && (t = (r = e.ownerDocument) == null ? void 0 : r.defaultView) != null ? t : window : window;
|
|
5299
5301
|
}
|
|
5300
5302
|
function os(e) {
|
|
5301
5303
|
const {
|
|
@@ -5304,13 +5306,13 @@ function os(e) {
|
|
|
5304
5306
|
return e instanceof t;
|
|
5305
5307
|
}
|
|
5306
5308
|
function bn(e) {
|
|
5307
|
-
return
|
|
5309
|
+
return Lr(e) ? !1 : e instanceof qe(e).HTMLElement;
|
|
5308
5310
|
}
|
|
5309
5311
|
function wl(e) {
|
|
5310
5312
|
return e instanceof qe(e).SVGElement;
|
|
5311
5313
|
}
|
|
5312
|
-
function
|
|
5313
|
-
return e ?
|
|
5314
|
+
function $r(e) {
|
|
5315
|
+
return e ? Lr(e) ? e.document : ns(e) ? os(e) ? e : bn(e) || wl(e) ? e.ownerDocument : document : document : document;
|
|
5314
5316
|
}
|
|
5315
5317
|
const ht = ko ? $i : X;
|
|
5316
5318
|
function So(e) {
|
|
@@ -5530,7 +5532,7 @@ function fp() {
|
|
|
5530
5532
|
announcement: e
|
|
5531
5533
|
};
|
|
5532
5534
|
}
|
|
5533
|
-
const kl = /* @__PURE__ */
|
|
5535
|
+
const kl = /* @__PURE__ */ Mr(null);
|
|
5534
5536
|
function pp(e) {
|
|
5535
5537
|
const t = At(kl);
|
|
5536
5538
|
X(() => {
|
|
@@ -5908,7 +5910,7 @@ function Rp(e, t, r) {
|
|
|
5908
5910
|
const Tp = {
|
|
5909
5911
|
ignoreTransform: !1
|
|
5910
5912
|
};
|
|
5911
|
-
function
|
|
5913
|
+
function Fr(e, t) {
|
|
5912
5914
|
t === void 0 && (t = Tp);
|
|
5913
5915
|
let r = e.getBoundingClientRect();
|
|
5914
5916
|
if (t.ignoreTransform) {
|
|
@@ -5936,7 +5938,7 @@ function $r(e, t) {
|
|
|
5936
5938
|
};
|
|
5937
5939
|
}
|
|
5938
5940
|
function Ys(e) {
|
|
5939
|
-
return
|
|
5941
|
+
return Fr(e, {
|
|
5940
5942
|
ignoreTransform: !0
|
|
5941
5943
|
});
|
|
5942
5944
|
}
|
|
@@ -5981,13 +5983,13 @@ function Rl(e) {
|
|
|
5981
5983
|
return t ?? null;
|
|
5982
5984
|
}
|
|
5983
5985
|
function qo(e) {
|
|
5984
|
-
return !ko || !e ? null :
|
|
5986
|
+
return !ko || !e ? null : Lr(e) ? e : ns(e) ? os(e) || e === $r(e).scrollingElement ? window : bn(e) ? e : null : null;
|
|
5985
5987
|
}
|
|
5986
5988
|
function Tl(e) {
|
|
5987
|
-
return
|
|
5989
|
+
return Lr(e) ? e.scrollX : e.scrollLeft;
|
|
5988
5990
|
}
|
|
5989
5991
|
function zl(e) {
|
|
5990
|
-
return
|
|
5992
|
+
return Lr(e) ? e.scrollY : e.scrollTop;
|
|
5991
5993
|
}
|
|
5992
5994
|
function xi(e) {
|
|
5993
5995
|
return {
|
|
@@ -6097,7 +6099,7 @@ function Mp(e) {
|
|
|
6097
6099
|
return e.reduce((t, r) => t + zl(r), 0);
|
|
6098
6100
|
}
|
|
6099
6101
|
function Il(e, t) {
|
|
6100
|
-
if (t === void 0 && (t =
|
|
6102
|
+
if (t === void 0 && (t = Fr), !e)
|
|
6101
6103
|
return;
|
|
6102
6104
|
const {
|
|
6103
6105
|
top: r,
|
|
@@ -6132,7 +6134,7 @@ class is {
|
|
|
6132
6134
|
});
|
|
6133
6135
|
}
|
|
6134
6136
|
}
|
|
6135
|
-
class
|
|
6137
|
+
class on {
|
|
6136
6138
|
constructor(t) {
|
|
6137
6139
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
6138
6140
|
this.listeners.forEach((r) => {
|
|
@@ -6150,7 +6152,7 @@ function $p(e) {
|
|
|
6150
6152
|
const {
|
|
6151
6153
|
EventTarget: t
|
|
6152
6154
|
} = qe(e);
|
|
6153
|
-
return e instanceof t ? e :
|
|
6155
|
+
return e instanceof t ? e : $r(e);
|
|
6154
6156
|
}
|
|
6155
6157
|
function Xo(e, t) {
|
|
6156
6158
|
const r = Math.abs(e.x), n = Math.abs(e.y);
|
|
@@ -6209,7 +6211,7 @@ class ss {
|
|
|
6209
6211
|
target: r
|
|
6210
6212
|
}
|
|
6211
6213
|
} = t;
|
|
6212
|
-
this.props = t, this.listeners = new
|
|
6214
|
+
this.props = t, this.listeners = new on($r(r)), this.windowListeners = new on(qe(r)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
6213
6215
|
}
|
|
6214
6216
|
attach() {
|
|
6215
6217
|
this.handleStart(), this.windowListeners.add(ut.Resize, this.handleCancel), this.windowListeners.add(ut.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ut.Keydown, this.handleKeyDown));
|
|
@@ -6365,7 +6367,7 @@ class as {
|
|
|
6365
6367
|
} = t, {
|
|
6366
6368
|
target: s
|
|
6367
6369
|
} = i;
|
|
6368
|
-
this.props = t, this.events = r, this.document =
|
|
6370
|
+
this.props = t, this.events = r, this.document = $r(s), this.documentListeners = new on(this.document), this.listeners = new on(n), this.windowListeners = new on(qe(s)), this.initialCoordinates = (o = ro(i)) != null ? o : bt, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
6369
6371
|
}
|
|
6370
6372
|
attach() {
|
|
6371
6373
|
const {
|
|
@@ -6483,7 +6485,7 @@ class ls extends as {
|
|
|
6483
6485
|
constructor(t) {
|
|
6484
6486
|
const {
|
|
6485
6487
|
event: r
|
|
6486
|
-
} = t, n =
|
|
6488
|
+
} = t, n = $r(r.target);
|
|
6487
6489
|
super(t, Bp, n);
|
|
6488
6490
|
}
|
|
6489
6491
|
}
|
|
@@ -6514,7 +6516,7 @@ var wi;
|
|
|
6514
6516
|
})(wi || (wi = {}));
|
|
6515
6517
|
class Hp extends as {
|
|
6516
6518
|
constructor(t) {
|
|
6517
|
-
super(t, Up,
|
|
6519
|
+
super(t, Up, $r(t.event.target));
|
|
6518
6520
|
}
|
|
6519
6521
|
}
|
|
6520
6522
|
Hp.activators = [{
|
|
@@ -6572,10 +6574,10 @@ _l.activators = [{
|
|
|
6572
6574
|
}), !0);
|
|
6573
6575
|
}
|
|
6574
6576
|
}];
|
|
6575
|
-
var
|
|
6577
|
+
var sn;
|
|
6576
6578
|
(function(e) {
|
|
6577
6579
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
6578
|
-
})(
|
|
6580
|
+
})(sn || (sn = {}));
|
|
6579
6581
|
var oo;
|
|
6580
6582
|
(function(e) {
|
|
6581
6583
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
@@ -6583,7 +6585,7 @@ var oo;
|
|
|
6583
6585
|
function Vp(e) {
|
|
6584
6586
|
let {
|
|
6585
6587
|
acceleration: t,
|
|
6586
|
-
activator: r =
|
|
6588
|
+
activator: r = sn.Pointer,
|
|
6587
6589
|
canScroll: n,
|
|
6588
6590
|
draggingRect: o,
|
|
6589
6591
|
enabled: i,
|
|
@@ -6606,14 +6608,14 @@ function Vp(e) {
|
|
|
6606
6608
|
y: 0
|
|
6607
6609
|
}), x = pe(() => {
|
|
6608
6610
|
switch (r) {
|
|
6609
|
-
case
|
|
6611
|
+
case sn.Pointer:
|
|
6610
6612
|
return l ? {
|
|
6611
6613
|
top: l.y,
|
|
6612
6614
|
bottom: l.y,
|
|
6613
6615
|
left: l.x,
|
|
6614
6616
|
right: l.x
|
|
6615
6617
|
} : null;
|
|
6616
|
-
case
|
|
6618
|
+
case sn.DraggableRect:
|
|
6617
6619
|
return o;
|
|
6618
6620
|
}
|
|
6619
6621
|
}, [r, o, l]), w = me(null), k = le(() => {
|
|
@@ -6847,7 +6849,7 @@ function jo(e) {
|
|
|
6847
6849
|
return X(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
|
|
6848
6850
|
}
|
|
6849
6851
|
function Qp(e) {
|
|
6850
|
-
return new is(
|
|
6852
|
+
return new is(Fr(e), e);
|
|
6851
6853
|
}
|
|
6852
6854
|
function Js(e, t, r) {
|
|
6853
6855
|
t === void 0 && (t = Qp);
|
|
@@ -6983,7 +6985,7 @@ function Ml(e) {
|
|
|
6983
6985
|
}
|
|
6984
6986
|
const ta = [];
|
|
6985
6987
|
function im(e, t) {
|
|
6986
|
-
t === void 0 && (t =
|
|
6988
|
+
t === void 0 && (t = Fr);
|
|
6987
6989
|
const [r] = e, n = Ml(r ? qe(r) : null), [o, i] = re(ta);
|
|
6988
6990
|
function s() {
|
|
6989
6991
|
i(() => e.length ? e.map((l) => Al(l) ? n : new is(t(l), l)) : ta);
|
|
@@ -7052,10 +7054,10 @@ const am = [{
|
|
|
7052
7054
|
frequency: yi.Optimized
|
|
7053
7055
|
},
|
|
7054
7056
|
dragOverlay: {
|
|
7055
|
-
measure:
|
|
7057
|
+
measure: Fr
|
|
7056
7058
|
}
|
|
7057
7059
|
};
|
|
7058
|
-
class
|
|
7060
|
+
class an extends Map {
|
|
7059
7061
|
get(t) {
|
|
7060
7062
|
var r;
|
|
7061
7063
|
return t != null && (r = super.get(t)) != null ? r : void 0;
|
|
@@ -7085,7 +7087,7 @@ const cm = {
|
|
|
7085
7087
|
containerNodeRect: null,
|
|
7086
7088
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
7087
7089
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
7088
|
-
droppableContainers: /* @__PURE__ */ new
|
|
7090
|
+
droppableContainers: /* @__PURE__ */ new an(),
|
|
7089
7091
|
over: null,
|
|
7090
7092
|
dragOverlay: {
|
|
7091
7093
|
nodeRef: {
|
|
@@ -7112,7 +7114,7 @@ const cm = {
|
|
|
7112
7114
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
7113
7115
|
over: null,
|
|
7114
7116
|
measureDroppableContainers: no
|
|
7115
|
-
}, wn = /* @__PURE__ */
|
|
7117
|
+
}, wn = /* @__PURE__ */ Mr($l), Fl = /* @__PURE__ */ Mr(cm);
|
|
7116
7118
|
function dm() {
|
|
7117
7119
|
return {
|
|
7118
7120
|
draggable: {
|
|
@@ -7128,7 +7130,7 @@ function dm() {
|
|
|
7128
7130
|
}
|
|
7129
7131
|
},
|
|
7130
7132
|
droppable: {
|
|
7131
|
-
containers: new
|
|
7133
|
+
containers: new an()
|
|
7132
7134
|
}
|
|
7133
7135
|
};
|
|
7134
7136
|
}
|
|
@@ -7176,7 +7178,7 @@ function um(e, t) {
|
|
|
7176
7178
|
element: r
|
|
7177
7179
|
} = t, {
|
|
7178
7180
|
id: n
|
|
7179
|
-
} = r, o = new
|
|
7181
|
+
} = r, o = new an(e.droppable.containers);
|
|
7180
7182
|
return o.set(n, r), {
|
|
7181
7183
|
...e,
|
|
7182
7184
|
droppable: {
|
|
@@ -7193,7 +7195,7 @@ function um(e, t) {
|
|
|
7193
7195
|
} = t, i = e.droppable.containers.get(r);
|
|
7194
7196
|
if (!i || n !== i.key)
|
|
7195
7197
|
return e;
|
|
7196
|
-
const s = new
|
|
7198
|
+
const s = new an(e.droppable.containers);
|
|
7197
7199
|
return s.set(r, {
|
|
7198
7200
|
...i,
|
|
7199
7201
|
disabled: o
|
|
@@ -7212,7 +7214,7 @@ function um(e, t) {
|
|
|
7212
7214
|
} = t, o = e.droppable.containers.get(r);
|
|
7213
7215
|
if (!o || n !== o.key)
|
|
7214
7216
|
return e;
|
|
7215
|
-
const i = new
|
|
7217
|
+
const i = new an(e.droppable.containers);
|
|
7216
7218
|
return i.delete(r), {
|
|
7217
7219
|
...e,
|
|
7218
7220
|
droppable: {
|
|
@@ -7325,7 +7327,7 @@ function mm(e) {
|
|
|
7325
7327
|
}
|
|
7326
7328
|
}, [t, s, a, n, r]);
|
|
7327
7329
|
}
|
|
7328
|
-
const No = /* @__PURE__ */
|
|
7330
|
+
const No = /* @__PURE__ */ Mr({
|
|
7329
7331
|
...bt,
|
|
7330
7332
|
scaleX: 1,
|
|
7331
7333
|
scaleY: 1
|
|
@@ -7375,7 +7377,7 @@ const gm = /* @__PURE__ */ Hd(function(t) {
|
|
|
7375
7377
|
dragging: j,
|
|
7376
7378
|
dependencies: [z.x, z.y],
|
|
7377
7379
|
config: B.droppable
|
|
7378
|
-
}), se = Gp(C, S), U = pe(() => I ? ro(I) : null, [I]), J =
|
|
7380
|
+
}), se = Gp(C, S), U = pe(() => I ? ro(I) : null, [I]), J = Kr(), Y = Xp(se, B.draggable.measure);
|
|
7379
7381
|
mm({
|
|
7380
7382
|
activeNode: S != null ? C.get(S) : null,
|
|
7381
7383
|
config: J.layoutShiftCompensation,
|
|
@@ -7704,7 +7706,7 @@ const gm = /* @__PURE__ */ Hd(function(t) {
|
|
|
7704
7706
|
...a,
|
|
7705
7707
|
hiddenTextDescribedById: P
|
|
7706
7708
|
}));
|
|
7707
|
-
function
|
|
7709
|
+
function Kr() {
|
|
7708
7710
|
const _e = ($ == null ? void 0 : $.autoScrollEnabled) === !1, He = typeof l == "object" ? l.enabled === !1 : l === !1, Me = j && !_e && !He;
|
|
7709
7711
|
return typeof l == "object" ? {
|
|
7710
7712
|
...l,
|
|
@@ -7713,7 +7715,7 @@ const gm = /* @__PURE__ */ Hd(function(t) {
|
|
|
7713
7715
|
enabled: Me
|
|
7714
7716
|
};
|
|
7715
7717
|
}
|
|
7716
|
-
}), hm = /* @__PURE__ */
|
|
7718
|
+
}), hm = /* @__PURE__ */ Mr(null), ra = "button", bm = "Draggable";
|
|
7717
7719
|
function vm(e) {
|
|
7718
7720
|
let {
|
|
7719
7721
|
id: t,
|
|
@@ -8326,7 +8328,7 @@ function Ym(e) {
|
|
|
8326
8328
|
if (!t && r !== a.current && n.current) {
|
|
8327
8329
|
const l = o.current;
|
|
8328
8330
|
if (l) {
|
|
8329
|
-
const d =
|
|
8331
|
+
const d = Fr(n.current, {
|
|
8330
8332
|
ignoreTransform: !0
|
|
8331
8333
|
}), u = {
|
|
8332
8334
|
x: l.left - d.left,
|
|
@@ -8683,7 +8685,7 @@ function ia(e, t) {
|
|
|
8683
8685
|
return e(t);
|
|
8684
8686
|
e != null && (e.current = t);
|
|
8685
8687
|
}
|
|
8686
|
-
function
|
|
8688
|
+
function Wr(...e) {
|
|
8687
8689
|
return (t) => {
|
|
8688
8690
|
let r = !1;
|
|
8689
8691
|
const n = e.map((o) => {
|
|
@@ -8700,7 +8702,7 @@ function Fr(...e) {
|
|
|
8700
8702
|
};
|
|
8701
8703
|
}
|
|
8702
8704
|
function je(...e) {
|
|
8703
|
-
return g.useCallback(
|
|
8705
|
+
return g.useCallback(Wr(...e), e);
|
|
8704
8706
|
}
|
|
8705
8707
|
// @__NO_SIDE_EFFECTS__
|
|
8706
8708
|
function sa(e) {
|
|
@@ -8720,7 +8722,7 @@ function rg(e) {
|
|
|
8720
8722
|
const { children: o, ...i } = r;
|
|
8721
8723
|
if (g.isValidElement(o)) {
|
|
8722
8724
|
const s = sg(o), a = ig(i, o.props);
|
|
8723
|
-
return o.type !== g.Fragment && (a.ref = n ?
|
|
8725
|
+
return o.type !== g.Fragment && (a.ref = n ? Wr(n, s) : s), g.cloneElement(o, a);
|
|
8724
8726
|
}
|
|
8725
8727
|
return g.Children.count(o) > 1 ? g.Children.only(null) : null;
|
|
8726
8728
|
});
|
|
@@ -8809,7 +8811,7 @@ function ug(e) {
|
|
|
8809
8811
|
const { children: o, ...i } = r;
|
|
8810
8812
|
if (g.isValidElement(o)) {
|
|
8811
8813
|
const s = gg(o), a = mg(i, o.props);
|
|
8812
|
-
return o.type !== g.Fragment && (a.ref = n ?
|
|
8814
|
+
return o.type !== g.Fragment && (a.ref = n ? Wr(n, s) : s), g.cloneElement(o, a);
|
|
8813
8815
|
}
|
|
8814
8816
|
return g.Children.count(o) > 1 ? g.Children.only(null) : null;
|
|
8815
8817
|
});
|
|
@@ -9166,7 +9168,7 @@ function Pt(e, t) {
|
|
|
9166
9168
|
function Ot(e) {
|
|
9167
9169
|
return e.split("-")[0];
|
|
9168
9170
|
}
|
|
9169
|
-
function
|
|
9171
|
+
function Br(e) {
|
|
9170
9172
|
return e.split("-")[1];
|
|
9171
9173
|
}
|
|
9172
9174
|
function fs(e) {
|
|
@@ -9184,7 +9186,7 @@ function ms(e) {
|
|
|
9184
9186
|
}
|
|
9185
9187
|
function Mg(e, t, r) {
|
|
9186
9188
|
r === void 0 && (r = !1);
|
|
9187
|
-
const n =
|
|
9189
|
+
const n = Br(e), o = ms(e), i = ps(o);
|
|
9188
9190
|
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
9189
9191
|
return t.reference[i] > t.floating[i] && (s = ao(s)), [s, ao(s)];
|
|
9190
9192
|
}
|
|
@@ -9209,7 +9211,7 @@ function Wg(e, t, r) {
|
|
|
9209
9211
|
}
|
|
9210
9212
|
}
|
|
9211
9213
|
function Bg(e, t, r, n) {
|
|
9212
|
-
const o =
|
|
9214
|
+
const o = Br(e);
|
|
9213
9215
|
let i = Wg(Ot(e), r === "start", n);
|
|
9214
9216
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ci)))), i;
|
|
9215
9217
|
}
|
|
@@ -9290,7 +9292,7 @@ function ha(e, t, r) {
|
|
|
9290
9292
|
y: n.y
|
|
9291
9293
|
};
|
|
9292
9294
|
}
|
|
9293
|
-
switch (
|
|
9295
|
+
switch (Br(t)) {
|
|
9294
9296
|
case "start":
|
|
9295
9297
|
p[s] -= m * (r && d ? -1 : 1);
|
|
9296
9298
|
break;
|
|
@@ -9433,7 +9435,7 @@ const Vg = 50, Kg = async (e, t, r) => {
|
|
|
9433
9435
|
}, p = ms(o), v = ps(p), h = await s.getDimensions(d), b = p === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", k = i.reference[v] + i.reference[p] - m[p] - i.floating[v], E = m[p] - i.reference[p], j = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
9434
9436
|
let S = j ? j[w] : 0;
|
|
9435
9437
|
(!S || !await (s.isElement == null ? void 0 : s.isElement(j))) && (S = a.floating[w] || i.floating[v]);
|
|
9436
|
-
const C = k / 2 - E / 2, z = S / 2 - h[v] / 2 - 1, A = Vt(f[y], z), M = Vt(f[x], z), F = A, W = S - h[v] - M, L = S / 2 - h[v] / 2 + C, $ = Si(F, L, W), _ = !l.arrow &&
|
|
9438
|
+
const C = k / 2 - E / 2, z = S / 2 - h[v] / 2 - 1, A = Vt(f[y], z), M = Vt(f[x], z), F = A, W = S - h[v] - M, L = S / 2 - h[v] / 2 + C, $ = Si(F, L, W), _ = !l.arrow && Br(o) != null && L !== $ && i.reference[v] / 2 - (L < F ? A : M) - h[v] / 2 < 0, I = _ ? L < F ? L - F : L - W : 0;
|
|
9437
9439
|
return {
|
|
9438
9440
|
[p]: m[p] + I,
|
|
9439
9441
|
data: {
|
|
@@ -9587,7 +9589,7 @@ async function qg(e, t) {
|
|
|
9587
9589
|
placement: r,
|
|
9588
9590
|
platform: n,
|
|
9589
9591
|
elements: o
|
|
9590
|
-
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Ot(r), a =
|
|
9592
|
+
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Ot(r), a = Br(r), l = Ct(r) === "y", d = ec.has(s) ? -1 : 1, u = i && l ? -1 : 1, f = Pt(t, e);
|
|
9591
9593
|
let {
|
|
9592
9594
|
mainAxis: m,
|
|
9593
9595
|
crossAxis: p,
|
|
@@ -9745,7 +9747,7 @@ const Xg = function(e) {
|
|
|
9745
9747
|
apply: l = () => {
|
|
9746
9748
|
},
|
|
9747
9749
|
...d
|
|
9748
|
-
} = Pt(e, t), u = await s.detectOverflow(t, d), f = Ot(o), m =
|
|
9750
|
+
} = Pt(e, t), u = await s.detectOverflow(t, d), f = Ot(o), m = Br(o), p = Ct(o) === "y", {
|
|
9749
9751
|
width: v,
|
|
9750
9752
|
height: h
|
|
9751
9753
|
} = i.floating;
|
|
@@ -9774,7 +9776,7 @@ const Xg = function(e) {
|
|
|
9774
9776
|
function To() {
|
|
9775
9777
|
return typeof window < "u";
|
|
9776
9778
|
}
|
|
9777
|
-
function
|
|
9779
|
+
function Ur(e) {
|
|
9778
9780
|
return tc(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
9779
9781
|
}
|
|
9780
9782
|
function ot(e) {
|
|
@@ -9807,7 +9809,7 @@ function Sn(e) {
|
|
|
9807
9809
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && o !== "inline" && o !== "contents";
|
|
9808
9810
|
}
|
|
9809
9811
|
function th(e) {
|
|
9810
|
-
return /^(table|td|th)$/.test(
|
|
9812
|
+
return /^(table|td|th)$/.test(Ur(e));
|
|
9811
9813
|
}
|
|
9812
9814
|
function zo(e) {
|
|
9813
9815
|
try {
|
|
@@ -9829,7 +9831,7 @@ function gs(e) {
|
|
|
9829
9831
|
}
|
|
9830
9832
|
function oh(e) {
|
|
9831
9833
|
let t = Kt(e);
|
|
9832
|
-
for (; It(t) && !
|
|
9834
|
+
for (; It(t) && !Ir(t); ) {
|
|
9833
9835
|
if (gs(t))
|
|
9834
9836
|
return t;
|
|
9835
9837
|
if (zo(t))
|
|
@@ -9841,8 +9843,8 @@ function oh(e) {
|
|
|
9841
9843
|
function hs() {
|
|
9842
9844
|
return ri == null && (ri = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ri;
|
|
9843
9845
|
}
|
|
9844
|
-
function
|
|
9845
|
-
return /^(html|body|#document)$/.test(
|
|
9846
|
+
function Ir(e) {
|
|
9847
|
+
return /^(html|body|#document)$/.test(Ur(e));
|
|
9846
9848
|
}
|
|
9847
9849
|
function xt(e) {
|
|
9848
9850
|
return ot(e).getComputedStyle(e);
|
|
@@ -9857,7 +9859,7 @@ function Ao(e) {
|
|
|
9857
9859
|
};
|
|
9858
9860
|
}
|
|
9859
9861
|
function Kt(e) {
|
|
9860
|
-
if (
|
|
9862
|
+
if (Ur(e) === "html")
|
|
9861
9863
|
return e;
|
|
9862
9864
|
const t = (
|
|
9863
9865
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -9870,7 +9872,7 @@ function Kt(e) {
|
|
|
9870
9872
|
}
|
|
9871
9873
|
function rc(e) {
|
|
9872
9874
|
const t = Kt(e);
|
|
9873
|
-
return
|
|
9875
|
+
return Ir(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : It(t) && Sn(t) ? t : rc(t);
|
|
9874
9876
|
}
|
|
9875
9877
|
function fn(e, t, r) {
|
|
9876
9878
|
var n;
|
|
@@ -9972,7 +9974,7 @@ function ah(e) {
|
|
|
9972
9974
|
scrollTop: 0
|
|
9973
9975
|
}, d = Et(1);
|
|
9974
9976
|
const u = Et(0), f = It(n);
|
|
9975
|
-
if ((f || !f && !i) && ((
|
|
9977
|
+
if ((f || !f && !i) && ((Ur(n) !== "body" || Sn(s)) && (l = Ao(n)), f)) {
|
|
9976
9978
|
const p = fr(n);
|
|
9977
9979
|
d = Ar(n), u.x = p.x + n.clientLeft, u.y = p.y + n.clientTop;
|
|
9978
9980
|
}
|
|
@@ -10049,16 +10051,16 @@ function ya(e, t, r) {
|
|
|
10049
10051
|
}
|
|
10050
10052
|
function sc(e, t) {
|
|
10051
10053
|
const r = Kt(e);
|
|
10052
|
-
return r === t || !vt(r) ||
|
|
10054
|
+
return r === t || !vt(r) || Ir(r) ? !1 : xt(r).position === "fixed" || sc(r, t);
|
|
10053
10055
|
}
|
|
10054
10056
|
function fh(e, t) {
|
|
10055
10057
|
const r = t.get(e);
|
|
10056
10058
|
if (r)
|
|
10057
10059
|
return r;
|
|
10058
|
-
let n = fn(e, [], !1).filter((a) => vt(a) &&
|
|
10060
|
+
let n = fn(e, [], !1).filter((a) => vt(a) && Ur(a) !== "body"), o = null;
|
|
10059
10061
|
const i = xt(e).position === "fixed";
|
|
10060
10062
|
let s = i ? Kt(e) : e;
|
|
10061
|
-
for (; vt(s) && !
|
|
10063
|
+
for (; vt(s) && !Ir(s); ) {
|
|
10062
10064
|
const a = xt(s), l = gs(s);
|
|
10063
10065
|
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Sn(s) && !l && sc(e, s)) ? n = n.filter((u) => u !== s) : o = a, s = Kt(s);
|
|
10064
10066
|
}
|
|
@@ -10105,7 +10107,7 @@ function gh(e, t, r) {
|
|
|
10105
10107
|
l.x = Po(o);
|
|
10106
10108
|
}
|
|
10107
10109
|
if (n || !n && !i)
|
|
10108
|
-
if ((
|
|
10110
|
+
if ((Ur(t) !== "body" || Sn(o)) && (a = Ao(t)), n) {
|
|
10109
10111
|
const p = fr(t, !0, i, t);
|
|
10110
10112
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
10111
10113
|
} else o && d();
|
|
@@ -10135,7 +10137,7 @@ function ac(e, t) {
|
|
|
10135
10137
|
return r;
|
|
10136
10138
|
if (!It(e)) {
|
|
10137
10139
|
let o = Kt(e);
|
|
10138
|
-
for (; o && !
|
|
10140
|
+
for (; o && !Ir(o); ) {
|
|
10139
10141
|
if (vt(o) && !ni(o))
|
|
10140
10142
|
return o;
|
|
10141
10143
|
o = Kt(o);
|
|
@@ -10145,7 +10147,7 @@ function ac(e, t) {
|
|
|
10145
10147
|
let n = ka(e, t);
|
|
10146
10148
|
for (; n && th(n) && ni(n); )
|
|
10147
10149
|
n = ka(n, t);
|
|
10148
|
-
return n &&
|
|
10150
|
+
return n && Ir(n) && ni(n) && !gs(n) ? r : n || oh(e) || r;
|
|
10149
10151
|
}
|
|
10150
10152
|
const hh = async function(e) {
|
|
10151
10153
|
const t = this.getOffsetParent || ac, r = this.getDimensions, n = await r(e.floating);
|
|
@@ -10525,7 +10527,7 @@ function Wh(e) {
|
|
|
10525
10527
|
r(void 0);
|
|
10526
10528
|
}, [e]), t;
|
|
10527
10529
|
}
|
|
10528
|
-
var vs = "Popper", [uc,
|
|
10530
|
+
var vs = "Popper", [uc, Hr] = yn(vs), [Bh, fc] = uc(vs), pc = (e) => {
|
|
10529
10531
|
const { __scopePopper: t, children: r } = e, [n, o] = g.useState(null);
|
|
10530
10532
|
return /* @__PURE__ */ c.jsx(Bh, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
10531
10533
|
};
|
|
@@ -10749,7 +10751,7 @@ function qh(e) {
|
|
|
10749
10751
|
const { children: o, ...i } = r;
|
|
10750
10752
|
if (g.isValidElement(o)) {
|
|
10751
10753
|
const s = eb(o), a = Qh(i, o.props);
|
|
10752
|
-
return o.type !== g.Fragment && (a.ref = n ?
|
|
10754
|
+
return o.type !== g.Fragment && (a.ref = n ? Wr(n, s) : s), g.cloneElement(o, a);
|
|
10753
10755
|
}
|
|
10754
10756
|
return g.Children.count(o) > 1 ? g.Children.only(null) : null;
|
|
10755
10757
|
});
|
|
@@ -11374,10 +11376,10 @@ var Ss = g.forwardRef(function(e, t) {
|
|
|
11374
11376
|
return g.createElement(Do, St({}, e, { ref: t, sideCar: Vb }));
|
|
11375
11377
|
});
|
|
11376
11378
|
Ss.classNames = Do.classNames;
|
|
11377
|
-
var Kb = [" ", "Enter", "ArrowUp", "ArrowDown"], Yb = [" ", "Enter"], pr = "Select", [_o, Mo, Gb] = ag(pr), [
|
|
11379
|
+
var Kb = [" ", "Enter", "ArrowUp", "ArrowDown"], Yb = [" ", "Enter"], pr = "Select", [_o, Mo, Gb] = ag(pr), [Vr] = yn(pr, [
|
|
11378
11380
|
Gb,
|
|
11379
|
-
|
|
11380
|
-
]), Lo =
|
|
11381
|
+
Hr
|
|
11382
|
+
]), Lo = Hr(), [Zb, Zt] = Vr(pr), [qb, Xb] = Vr(pr), Ac = (e) => {
|
|
11381
11383
|
const {
|
|
11382
11384
|
__scopeSelect: t,
|
|
11383
11385
|
children: r,
|
|
@@ -11550,7 +11552,7 @@ var mr = "SelectContent", Lc = g.forwardRef(
|
|
|
11550
11552
|
}
|
|
11551
11553
|
);
|
|
11552
11554
|
Lc.displayName = mr;
|
|
11553
|
-
var gt = 10, [$c, qt] =
|
|
11555
|
+
var gt = 10, [$c, qt] = Vr(mr), e0 = "SelectContentImpl", t0 = /* @__PURE__ */ Zh("SelectContent.RemoveScroll"), Fc = g.forwardRef(
|
|
11554
11556
|
(e, t) => {
|
|
11555
11557
|
const {
|
|
11556
11558
|
__scopeSelect: r,
|
|
@@ -11855,7 +11857,7 @@ var n0 = "SelectPopperPosition", Ni = g.forwardRef((e, t) => {
|
|
|
11855
11857
|
);
|
|
11856
11858
|
});
|
|
11857
11859
|
Ni.displayName = n0;
|
|
11858
|
-
var [o0, Cs] =
|
|
11860
|
+
var [o0, Cs] = Vr(mr, {}), Ri = "SelectViewport", Bc = g.forwardRef(
|
|
11859
11861
|
(e, t) => {
|
|
11860
11862
|
const { __scopeSelect: r, nonce: n, ...o } = e, i = qt(Ri, r), s = Cs(Ri, r), a = je(t, i.onViewportChange), l = g.useRef(0);
|
|
11861
11863
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -11908,7 +11910,7 @@ var [o0, Cs] = Hr(mr, {}), Ri = "SelectViewport", Bc = g.forwardRef(
|
|
|
11908
11910
|
}
|
|
11909
11911
|
);
|
|
11910
11912
|
Bc.displayName = Ri;
|
|
11911
|
-
var Uc = "SelectGroup", [i0, s0] =
|
|
11913
|
+
var Uc = "SelectGroup", [i0, s0] = Vr(Uc), a0 = g.forwardRef(
|
|
11912
11914
|
(e, t) => {
|
|
11913
11915
|
const { __scopeSelect: r, ...n } = e, o = kn();
|
|
11914
11916
|
return /* @__PURE__ */ c.jsx(i0, { scope: r, id: o, children: /* @__PURE__ */ c.jsx(Ee.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
|
|
@@ -11922,7 +11924,7 @@ var Hc = "SelectLabel", l0 = g.forwardRef(
|
|
|
11922
11924
|
}
|
|
11923
11925
|
);
|
|
11924
11926
|
l0.displayName = Hc;
|
|
11925
|
-
var fo = "SelectItem", [c0, Vc] =
|
|
11927
|
+
var fo = "SelectItem", [c0, Vc] = Vr(fo), Kc = g.forwardRef(
|
|
11926
11928
|
(e, t) => {
|
|
11927
11929
|
const {
|
|
11928
11930
|
__scopeSelect: r,
|
|
@@ -12006,9 +12008,9 @@ var fo = "SelectItem", [c0, Vc] = Hr(fo), Kc = g.forwardRef(
|
|
|
12006
12008
|
}
|
|
12007
12009
|
);
|
|
12008
12010
|
Kc.displayName = fo;
|
|
12009
|
-
var
|
|
12011
|
+
var tn = "SelectItemText", Yc = g.forwardRef(
|
|
12010
12012
|
(e, t) => {
|
|
12011
|
-
const { __scopeSelect: r, className: n, style: o, ...i } = e, s = Zt(
|
|
12013
|
+
const { __scopeSelect: r, className: n, style: o, ...i } = e, s = Zt(tn, r), a = qt(tn, r), l = Vc(tn, r), d = Xb(tn, r), [u, f] = g.useState(null), m = je(
|
|
12012
12014
|
t,
|
|
12013
12015
|
(y) => f(y),
|
|
12014
12016
|
l.onItemTextChange,
|
|
@@ -12026,7 +12028,7 @@ var en = "SelectItemText", Yc = g.forwardRef(
|
|
|
12026
12028
|
] });
|
|
12027
12029
|
}
|
|
12028
12030
|
);
|
|
12029
|
-
Yc.displayName =
|
|
12031
|
+
Yc.displayName = tn;
|
|
12030
12032
|
var Gc = "SelectItemIndicator", Zc = g.forwardRef(
|
|
12031
12033
|
(e, t) => {
|
|
12032
12034
|
const { __scopeSelect: r, ...n } = e;
|
|
@@ -12348,7 +12350,7 @@ function P0(e) {
|
|
|
12348
12350
|
let { children: o, ...i } = r;
|
|
12349
12351
|
if (md(o) && typeof po == "function" && (o = po(o._payload)), g.isValidElement(o)) {
|
|
12350
12352
|
const s = _0(o), a = D0(i, o.props);
|
|
12351
|
-
return o.type !== g.Fragment && (a.ref = n ?
|
|
12353
|
+
return o.type !== g.Fragment && (a.ref = n ? Wr(n, s) : s), g.cloneElement(o, a);
|
|
12352
12354
|
}
|
|
12353
12355
|
return g.Children.count(o) > 1 ? g.Children.only(null) : null;
|
|
12354
12356
|
});
|
|
@@ -12411,12 +12413,12 @@ const M0 = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, L0 = /^[a-zA-Z]:[
|
|
|
12411
12413
|
const n = e.trim();
|
|
12412
12414
|
if (!n || gd(n) || n.startsWith("#"))
|
|
12413
12415
|
return n;
|
|
12414
|
-
if (n.startsWith("/assets/") || n.startsWith("/uploaded-assets/")) return
|
|
12415
|
-
if (n.startsWith("assets/")) return
|
|
12416
|
+
if (n.startsWith("/assets/") || n.startsWith("/uploaded-assets/")) return en(n, r);
|
|
12417
|
+
if (n.startsWith("assets/")) return en(`/${n}`, r);
|
|
12416
12418
|
if (!M0.test(n))
|
|
12417
|
-
return
|
|
12419
|
+
return en(n.startsWith("/") ? n : `/${n}`, r);
|
|
12418
12420
|
const i = n.replace(/^\//, "");
|
|
12419
|
-
return
|
|
12421
|
+
return en(`/assets/${t}/${i}`, r);
|
|
12420
12422
|
}, F0 = ["library", "upload", "url"];
|
|
12421
12423
|
function W0({
|
|
12422
12424
|
library: e,
|
|
@@ -12761,7 +12763,7 @@ const H0 = ({
|
|
|
12761
12763
|
onClick: () => t(!1),
|
|
12762
12764
|
className: "p-1.5 rounded text-zinc-500 hover:text-white hover:bg-zinc-800 transition-colors",
|
|
12763
12765
|
"aria-label": "Chiudi",
|
|
12764
|
-
children: /* @__PURE__ */ c.jsx(
|
|
12766
|
+
children: /* @__PURE__ */ c.jsx(nn, { size: 18 })
|
|
12765
12767
|
}
|
|
12766
12768
|
)
|
|
12767
12769
|
] }),
|
|
@@ -13045,16 +13047,16 @@ const H0 = ({
|
|
|
13045
13047
|
return t;
|
|
13046
13048
|
}
|
|
13047
13049
|
return e instanceof q.ZodArray ? [] : e instanceof q.ZodString ? "" : e instanceof q.ZodNumber ? 0 : e instanceof q.ZodBoolean ? !1 : e instanceof q.ZodEnum ? e._def.values[0] : null;
|
|
13048
|
-
},
|
|
13050
|
+
}, ln = (e) => e instanceof q.ZodOptional || e instanceof q.ZodDefault || e instanceof q.ZodNullable ? ln(e._def.innerType) : e, vd = (e) => {
|
|
13049
13051
|
var n;
|
|
13050
13052
|
const t = e;
|
|
13051
13053
|
if (typeof e.description == "string" && e.description.length > 0)
|
|
13052
13054
|
return e.description;
|
|
13053
13055
|
if (typeof ((n = t._def) == null ? void 0 : n.description) == "string" && t._def.description.length > 0)
|
|
13054
13056
|
return t._def.description;
|
|
13055
|
-
const r =
|
|
13057
|
+
const r = ln(e);
|
|
13056
13058
|
return r !== e ? vd(r) : null;
|
|
13057
|
-
}, Sr = (e, t) => e && !t ? "opacity-10" : "opacity-100", zt = (e, t) => e != null && t.toLowerCase() === e.toLowerCase(),
|
|
13059
|
+
}, Sr = (e, t) => e && !t ? "opacity-10" : "opacity-100", zt = (e, t) => e != null && t.toLowerCase() === e.toLowerCase(), Jr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()), Bt = (e) => e != null && typeof e == "object" && !Array.isArray(e), K0 = (e, t) => t instanceof q.ZodRecord && Bt(e) ? Object.keys(e).length : t instanceof q.ZodObject && Bt(e) ? 1 : Array.isArray(e) ? e.length : 0, Y0 = (e) => `${e} ${e === 1 ? "item" : "items"}`, za = (e, t, r) => ((typeof t.title == "string" ? t.title : null) || (typeof t.label == "string" ? t.label : null) || (typeof t.name == "string" ? t.name : null) || (typeof t.id == "string" ? t.id : null)) ?? `Item #${r + 1} (${e})`, G0 = (e) => {
|
|
13058
13060
|
const [, , t] = e.split(":");
|
|
13059
13061
|
return (t == null ? void 0 : t.trim()) || null;
|
|
13060
13062
|
}, Z0 = (e) => {
|
|
@@ -13076,8 +13078,8 @@ const H0 = ({
|
|
|
13076
13078
|
return /* @__PURE__ */ c.jsx("div", { className: "space-y-4", children: d.map((p) => {
|
|
13077
13079
|
const v = l[p];
|
|
13078
13080
|
if (!v) return null;
|
|
13079
|
-
const h =
|
|
13080
|
-
if (b === "ui:editorial-markdown") return null;
|
|
13081
|
+
const h = ln(v), b = vd(v) || "ui:text", y = t[p];
|
|
13082
|
+
if (b === "ui:editorial-markdown" || b === "ui:hidden") return null;
|
|
13081
13083
|
if (b.startsWith("ui:collection-ref")) {
|
|
13082
13084
|
const j = zt(f, p), S = G0(b);
|
|
13083
13085
|
if (S && !(h instanceof q.ZodRecord) && !(h instanceof q.ZodObject)) {
|
|
@@ -13088,7 +13090,7 @@ const H0 = ({
|
|
|
13088
13090
|
className: `grid w-full gap-2 mb-4 transition-opacity duration-200 ${Sr(m, j)}`,
|
|
13089
13091
|
...j ? { "data-jp-focused-field": p } : {},
|
|
13090
13092
|
children: [
|
|
13091
|
-
/* @__PURE__ */ c.jsx("label", { htmlFor: $, className: "text-[11px] font-semibold tracking-[0.02em] text-zinc-300", children:
|
|
13093
|
+
/* @__PURE__ */ c.jsx("label", { htmlFor: $, className: "text-[11px] font-semibold tracking-[0.02em] text-zinc-300", children: Jr(p) }),
|
|
13092
13094
|
/* @__PURE__ */ c.jsxs(
|
|
13093
13095
|
"select",
|
|
13094
13096
|
{
|
|
@@ -13125,13 +13127,13 @@ const H0 = ({
|
|
|
13125
13127
|
children: [
|
|
13126
13128
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
13127
13129
|
/* @__PURE__ */ c.jsxs("div", { className: "min-w-0", children: [
|
|
13128
|
-
/* @__PURE__ */ c.jsx("p", { className: "text-[11px] font-semibold tracking-[0.04em] text-zinc-300", children:
|
|
13130
|
+
/* @__PURE__ */ c.jsx("p", { className: "text-[11px] font-semibold tracking-[0.04em] text-zinc-300", children: Jr(p) }),
|
|
13129
13131
|
/* @__PURE__ */ c.jsx("p", { className: "mt-1 text-[11px] leading-relaxed text-zinc-500", children: "Externally bound collection. The page keeps its reference; entity data is owned by the collection document." })
|
|
13130
13132
|
] }),
|
|
13131
13133
|
/* @__PURE__ */ c.jsx("span", { className: "shrink-0 rounded-full border border-zinc-700 px-2 py-1 text-[10px] font-semibold text-zinc-400", children: Y0(C) })
|
|
13132
13134
|
] }),
|
|
13133
13135
|
h instanceof q.ZodRecord && /* @__PURE__ */ c.jsx("div", { className: "mt-4 space-y-2", children: Object.entries(z).map(([F, W], L) => {
|
|
13134
|
-
const $ = Bt(W) ? W : {}, _ =
|
|
13136
|
+
const $ = Bt(W) ? W : {}, _ = ln(h.valueSchema), I = String($.id ?? F), D = A != null && String(A) === I, V = m && j && A != null && !D;
|
|
13135
13137
|
return /* @__PURE__ */ c.jsx(
|
|
13136
13138
|
J0,
|
|
13137
13139
|
{
|
|
@@ -13208,7 +13210,7 @@ const H0 = ({
|
|
|
13208
13210
|
children: [
|
|
13209
13211
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
13210
13212
|
/* @__PURE__ */ c.jsx("div", { className: "w-1 h-3 bg-blue-500 rounded-full" }),
|
|
13211
|
-
/* @__PURE__ */ c.jsx("h4", { className: "text-[11px] font-semibold text-zinc-300 tracking-[0.02em]", children:
|
|
13213
|
+
/* @__PURE__ */ c.jsx("h4", { className: "text-[11px] font-semibold text-zinc-300 tracking-[0.02em]", children: Jr(p) })
|
|
13212
13214
|
] }),
|
|
13213
13215
|
/* @__PURE__ */ c.jsx(
|
|
13214
13216
|
ar,
|
|
@@ -13227,7 +13229,7 @@ const H0 = ({
|
|
|
13227
13229
|
);
|
|
13228
13230
|
}
|
|
13229
13231
|
if (h instanceof q.ZodArray) {
|
|
13230
|
-
const j = Array.isArray(y) ? y : [], S =
|
|
13232
|
+
const j = Array.isArray(y) ? y : [], S = ln(h.element), C = (F, W) => {
|
|
13231
13233
|
if (W < 0 || W >= j.length) return;
|
|
13232
13234
|
const L = [...j], [$] = L.splice(F, 1);
|
|
13233
13235
|
L.splice(W, 0, $), r({ ...t, [p]: L });
|
|
@@ -13240,7 +13242,7 @@ const H0 = ({
|
|
|
13240
13242
|
children: [
|
|
13241
13243
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
13242
13244
|
/* @__PURE__ */ c.jsxs("label", { className: "text-[12px] font-semibold text-zinc-300 tracking-[0.01em]", children: [
|
|
13243
|
-
|
|
13245
|
+
Jr(p),
|
|
13244
13246
|
" (",
|
|
13245
13247
|
j.length,
|
|
13246
13248
|
")"
|
|
@@ -13262,7 +13264,7 @@ const H0 = ({
|
|
|
13262
13264
|
)
|
|
13263
13265
|
] }),
|
|
13264
13266
|
/* @__PURE__ */ c.jsx("div", { className: "space-y-2", children: j.map((F, W) => {
|
|
13265
|
-
const L = F, $ = L.id || `legacy-${W}`, _ = (typeof L.title == "string" ? L.title : null) || (typeof L.label == "string" ? L.label : null) || (typeof L.name == "string" ? L.name : null) || (typeof L.content == "string" ? L.content : null) || (typeof L.text == "string" ? L.text : null) || `${
|
|
13267
|
+
const L = F, $ = L.id || `legacy-${W}`, _ = (typeof L.title == "string" ? L.title : null) || (typeof L.label == "string" ? L.label : null) || (typeof L.name == "string" ? L.name : null) || (typeof L.content == "string" ? L.content : null) || (typeof L.text == "string" ? L.text : null) || `${Jr(p)} #${W + 1}`, I = M, D = String(L.id ?? $), V = I != null && String(I) === D, P = V && s && s.length > 1 ? s.slice(1) : void 0, N = m && z && I != null && !V;
|
|
13266
13268
|
return /* @__PURE__ */ c.jsx(
|
|
13267
13269
|
X0,
|
|
13268
13270
|
{
|
|
@@ -13510,8 +13512,8 @@ function nv(e) {
|
|
|
13510
13512
|
return t.displayName = `${e}.Slottable`, t.__radixId = rv, t;
|
|
13511
13513
|
}
|
|
13512
13514
|
var [$o] = yn("Tooltip", [
|
|
13513
|
-
|
|
13514
|
-
]), Fo =
|
|
13515
|
+
Hr
|
|
13516
|
+
]), Fo = Hr(), xd = "TooltipProvider", ov = 700, Oi = "tooltip.open", [iv, js] = $o(xd), wd = (e) => {
|
|
13515
13517
|
const {
|
|
13516
13518
|
__scopeTooltip: t,
|
|
13517
13519
|
delayDuration: r = ov,
|
|
@@ -13633,13 +13635,13 @@ var Ns = "TooltipPortal", [av, lv] = $o(Ns, {
|
|
|
13633
13635
|
return /* @__PURE__ */ c.jsx(av, { scope: t, forceMount: r, children: /* @__PURE__ */ c.jsx(Cn, { present: r || i.open, children: /* @__PURE__ */ c.jsx(Io, { asChild: !0, container: o, children: n }) }) });
|
|
13634
13636
|
};
|
|
13635
13637
|
Sd.displayName = Ns;
|
|
13636
|
-
var
|
|
13638
|
+
var Dr = "TooltipContent", Cd = g.forwardRef(
|
|
13637
13639
|
(e, t) => {
|
|
13638
|
-
const r = lv(
|
|
13640
|
+
const r = lv(Dr, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...i } = e, s = En(Dr, e.__scopeTooltip);
|
|
13639
13641
|
return /* @__PURE__ */ c.jsx(Cn, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ c.jsx(Ed, { side: o, ...i, ref: t }) : /* @__PURE__ */ c.jsx(cv, { side: o, ...i, ref: t }) });
|
|
13640
13642
|
}
|
|
13641
13643
|
), cv = g.forwardRef((e, t) => {
|
|
13642
|
-
const r = En(
|
|
13644
|
+
const r = En(Dr, e.__scopeTooltip), n = js(Dr, e.__scopeTooltip), o = g.useRef(null), i = je(t, o), [s, a] = g.useState(null), { trigger: l, onClose: d } = r, u = o.current, { onPointerInTransitChange: f } = n, m = g.useCallback(() => {
|
|
13643
13645
|
a(null), f(!1);
|
|
13644
13646
|
}, [f]), p = g.useCallback(
|
|
13645
13647
|
(v, h) => {
|
|
@@ -13673,7 +13675,7 @@ var Ir = "TooltipContent", Cd = g.forwardRef(
|
|
|
13673
13675
|
onEscapeKeyDown: i,
|
|
13674
13676
|
onPointerDownOutside: s,
|
|
13675
13677
|
...a
|
|
13676
|
-
} = e, l = En(
|
|
13678
|
+
} = e, l = En(Dr, r), d = Fo(r), { onClose: u } = l;
|
|
13677
13679
|
return g.useEffect(() => (document.addEventListener(Oi, u), () => document.removeEventListener(Oi, u)), [u]), g.useEffect(() => {
|
|
13678
13680
|
if (l.trigger) {
|
|
13679
13681
|
const f = (m) => {
|
|
@@ -13716,7 +13718,7 @@ var Ir = "TooltipContent", Cd = g.forwardRef(
|
|
|
13716
13718
|
);
|
|
13717
13719
|
}
|
|
13718
13720
|
);
|
|
13719
|
-
Cd.displayName =
|
|
13721
|
+
Cd.displayName = Dr;
|
|
13720
13722
|
var jd = "TooltipArrow", pv = g.forwardRef(
|
|
13721
13723
|
(e, t) => {
|
|
13722
13724
|
const { __scopeTooltip: r, ...n } = e, o = Fo(r);
|
|
@@ -13852,7 +13854,7 @@ function jv(e) {
|
|
|
13852
13854
|
const { children: o, ...i } = r;
|
|
13853
13855
|
if (g.isValidElement(o)) {
|
|
13854
13856
|
const s = zv(o), a = Tv(i, o.props);
|
|
13855
|
-
return o.type !== g.Fragment && (a.ref = n ?
|
|
13857
|
+
return o.type !== g.Fragment && (a.ref = n ? Wr(n, s) : s), g.cloneElement(o, a);
|
|
13856
13858
|
}
|
|
13857
13859
|
return g.Children.count(o) > 1 ? g.Children.only(null) : null;
|
|
13858
13860
|
});
|
|
@@ -13879,8 +13881,8 @@ function zv(e) {
|
|
|
13879
13881
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
13880
13882
|
}
|
|
13881
13883
|
var Wo = "Popover", [Rd] = yn(Wo, [
|
|
13882
|
-
|
|
13883
|
-
]), jn =
|
|
13884
|
+
Hr
|
|
13885
|
+
]), jn = Hr(), [Av, Xt] = Rd(Wo), Td = (e) => {
|
|
13884
13886
|
const {
|
|
13885
13887
|
__scopePopover: t,
|
|
13886
13888
|
children: r,
|
|
@@ -13945,16 +13947,16 @@ var Rs = "PopoverPortal", [Ov, Iv] = Rd(Rs, {
|
|
|
13945
13947
|
return /* @__PURE__ */ c.jsx(Ov, { scope: t, forceMount: r, children: /* @__PURE__ */ c.jsx(Cn, { present: r || i.open, children: /* @__PURE__ */ c.jsx(Io, { asChild: !0, container: o, children: n }) }) });
|
|
13946
13948
|
};
|
|
13947
13949
|
Od.displayName = Rs;
|
|
13948
|
-
var
|
|
13950
|
+
var _r = "PopoverContent", Id = g.forwardRef(
|
|
13949
13951
|
(e, t) => {
|
|
13950
|
-
const r = Iv(
|
|
13952
|
+
const r = Iv(_r, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, i = Xt(_r, e.__scopePopover);
|
|
13951
13953
|
return /* @__PURE__ */ c.jsx(Cn, { present: n || i.open, children: i.modal ? /* @__PURE__ */ c.jsx(_v, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(Mv, { ...o, ref: t }) });
|
|
13952
13954
|
}
|
|
13953
13955
|
);
|
|
13954
|
-
Id.displayName =
|
|
13956
|
+
Id.displayName = _r;
|
|
13955
13957
|
var Dv = /* @__PURE__ */ Ev("PopoverContent.RemoveScroll"), _v = g.forwardRef(
|
|
13956
13958
|
(e, t) => {
|
|
13957
|
-
const r = Xt(
|
|
13959
|
+
const r = Xt(_r, e.__scopePopover), n = g.useRef(null), o = je(t, n), i = g.useRef(!1);
|
|
13958
13960
|
return g.useEffect(() => {
|
|
13959
13961
|
const s = n.current;
|
|
13960
13962
|
if (s) return Sc(s);
|
|
@@ -13987,7 +13989,7 @@ var Dv = /* @__PURE__ */ Ev("PopoverContent.RemoveScroll"), _v = g.forwardRef(
|
|
|
13987
13989
|
}
|
|
13988
13990
|
), Mv = g.forwardRef(
|
|
13989
13991
|
(e, t) => {
|
|
13990
|
-
const r = Xt(
|
|
13992
|
+
const r = Xt(_r, e.__scopePopover), n = g.useRef(!1), o = g.useRef(!1);
|
|
13991
13993
|
return /* @__PURE__ */ c.jsx(
|
|
13992
13994
|
Dd,
|
|
13993
13995
|
{
|
|
@@ -14021,7 +14023,7 @@ var Dv = /* @__PURE__ */ Ev("PopoverContent.RemoveScroll"), _v = g.forwardRef(
|
|
|
14021
14023
|
onFocusOutside: d,
|
|
14022
14024
|
onInteractOutside: u,
|
|
14023
14025
|
...f
|
|
14024
|
-
} = e, m = Xt(
|
|
14026
|
+
} = e, m = Xt(_r, r), p = jn(r);
|
|
14025
14027
|
return Xl(), /* @__PURE__ */ c.jsx(
|
|
14026
14028
|
us,
|
|
14027
14029
|
{
|
|
@@ -14406,7 +14408,7 @@ const Bd = ({
|
|
|
14406
14408
|
" sections"
|
|
14407
14409
|
] }) })
|
|
14408
14410
|
] }),
|
|
14409
|
-
/* @__PURE__ */ c.jsx(rt, { variant: "ghost", size: "icon-sm", onClick: a, "aria-label": "Close Inspector", children: /* @__PURE__ */ c.jsx(
|
|
14411
|
+
/* @__PURE__ */ c.jsx(rt, { variant: "ghost", size: "icon-sm", onClick: a, "aria-label": "Close Inspector", children: /* @__PURE__ */ c.jsx(nn, { size: 14 }) })
|
|
14410
14412
|
] }),
|
|
14411
14413
|
M.length > 0 && W && /* @__PURE__ */ c.jsx(
|
|
14412
14414
|
Fd,
|
|
@@ -14712,7 +14714,7 @@ const Bd = ({
|
|
|
14712
14714
|
onClick: () => oe(null),
|
|
14713
14715
|
className: "p-1.5 rounded text-zinc-500 hover:text-white hover:bg-zinc-800 transition-colors",
|
|
14714
14716
|
"aria-label": "Close settings",
|
|
14715
|
-
children: /* @__PURE__ */ c.jsx(
|
|
14717
|
+
children: /* @__PURE__ */ c.jsx(nn, { size: 18 })
|
|
14716
14718
|
}
|
|
14717
14719
|
)
|
|
14718
14720
|
] }),
|
|
@@ -14748,7 +14750,7 @@ const Bd = ({
|
|
|
14748
14750
|
onClick: () => oe(null),
|
|
14749
14751
|
className: "p-1.5 rounded text-zinc-500 hover:text-white hover:bg-zinc-800 transition-colors",
|
|
14750
14752
|
"aria-label": "Close settings (Escape)",
|
|
14751
|
-
children: /* @__PURE__ */ c.jsx(
|
|
14753
|
+
children: /* @__PURE__ */ c.jsx(nn, { size: 18 })
|
|
14752
14754
|
}
|
|
14753
14755
|
)
|
|
14754
14756
|
] }),
|
|
@@ -15194,7 +15196,7 @@ const Mi = ({
|
|
|
15194
15196
|
var T;
|
|
15195
15197
|
const R = (T = cr(e, k)) == null ? void 0 : T.page;
|
|
15196
15198
|
R && C(JSON.parse(JSON.stringify(R))), se(), A(!1);
|
|
15197
|
-
}, [se, k, e]),
|
|
15199
|
+
}, [se, k, e]), Kr = le(
|
|
15198
15200
|
(R, T, K) => {
|
|
15199
15201
|
C(Zv(K, R, T)), A(!0);
|
|
15200
15202
|
},
|
|
@@ -15222,14 +15224,14 @@ const Mi = ({
|
|
|
15222
15224
|
const rr = t[Te];
|
|
15223
15225
|
if (!rr || typeof rr.parse != "function")
|
|
15224
15226
|
throw new Error(`Missing schema for section type "${Te}".`);
|
|
15225
|
-
const
|
|
15227
|
+
const Yr = ke(Ce.siteConfig, T.sectionId), Ho = Yr && Zn(Yr.data) ? Yr.data : Zn(tt.data) ? tt.data : {}, Vo = gi(Ho, T), Nn = rr.parse(Vo), { nextGlobalDraft: Gr, nextMenuDraft: Mt } = Rt(
|
|
15226
15228
|
T.sectionId,
|
|
15227
15229
|
Nn,
|
|
15228
15230
|
ee,
|
|
15229
15231
|
Ce.siteConfig,
|
|
15230
15232
|
xe
|
|
15231
15233
|
);
|
|
15232
|
-
Ue.current =
|
|
15234
|
+
Ue.current = Gr, Ge.current = Mt, _(Gr), P(Mt);
|
|
15233
15235
|
} else {
|
|
15234
15236
|
const tt = ae.sections.find((Mt) => Mt.id === T.sectionId);
|
|
15235
15237
|
if (!tt)
|
|
@@ -15241,19 +15243,19 @@ const Mi = ({
|
|
|
15241
15243
|
const rr = t[Te];
|
|
15242
15244
|
if (!rr || typeof rr.parse != "function")
|
|
15243
15245
|
throw new Error(`Missing schema for section type "${Te}".`);
|
|
15244
|
-
const
|
|
15246
|
+
const Yr = Zn(tt.data) ? tt.data : {}, Ho = gi(Yr, T), Vo = rr.parse(Ho), Nn = Bn(
|
|
15245
15247
|
tt.data,
|
|
15246
15248
|
Vo,
|
|
15247
15249
|
kt,
|
|
15248
15250
|
Ie,
|
|
15249
15251
|
s
|
|
15250
|
-
),
|
|
15252
|
+
), Gr = {
|
|
15251
15253
|
...ae,
|
|
15252
15254
|
sections: ae.sections.map(
|
|
15253
15255
|
(Mt) => Mt.id === T.sectionId ? { ...Mt, data: Nn.normalizedData } : Mt
|
|
15254
15256
|
)
|
|
15255
15257
|
};
|
|
15256
|
-
Ne(Nn.collectionsDraft), We.current =
|
|
15258
|
+
Ne(Nn.collectionsDraft), We.current = Gr, C(Gr);
|
|
15257
15259
|
}
|
|
15258
15260
|
return ve({ id: T.sectionId, type: Te, scope: Ve }), ne(Array.isArray(T.itemPath) ? T.itemPath : null), A(!0), {
|
|
15259
15261
|
content: [
|
|
@@ -15331,7 +15333,7 @@ const Mi = ({
|
|
|
15331
15333
|
}
|
|
15332
15334
|
if (R.data.type === Se.ACTIVE_SECTION_CHANGED && H(R.data.activeSectionId ?? null), R.data.type === "jsonpages:section-reorder" && We.current) {
|
|
15333
15335
|
const { sectionId: T, newIndex: K } = R.data;
|
|
15334
|
-
typeof T == "string" && typeof K == "number" && K >= 0 &&
|
|
15336
|
+
typeof T == "string" && typeof K == "number" && K >= 0 && Kr(T, K, We.current);
|
|
15335
15337
|
}
|
|
15336
15338
|
if (R.data.type === Se.WEBMCP_TOOL_CALL) {
|
|
15337
15339
|
const T = typeof R.data.requestId == "string" ? R.data.requestId : crypto.randomUUID(), K = typeof R.data.toolName == "string" ? R.data.toolName : "";
|
|
@@ -15356,7 +15358,7 @@ const Mi = ({
|
|
|
15356
15358
|
}
|
|
15357
15359
|
}
|
|
15358
15360
|
},
|
|
15359
|
-
[
|
|
15361
|
+
[Kr, Me]
|
|
15360
15362
|
);
|
|
15361
15363
|
X(() => (window.addEventListener("message", st), () => window.removeEventListener("message", st)), [st]), X(() => {
|
|
15362
15364
|
var xe, kt, Ve, Te;
|
|
@@ -15531,7 +15533,7 @@ const Mi = ({
|
|
|
15531
15533
|
onUpdateSection: Le,
|
|
15532
15534
|
onClose: se,
|
|
15533
15535
|
expandedItemPath: U,
|
|
15534
|
-
onReorderSection: S ? (R, T) =>
|
|
15536
|
+
onReorderSection: S ? (R, T) => Kr(R, T, S) : void 0,
|
|
15535
15537
|
allLayers: Re,
|
|
15536
15538
|
activeSectionId: ue,
|
|
15537
15539
|
onRequestScrollToSection: et,
|
|
@@ -15741,7 +15743,7 @@ function ax(e) {
|
|
|
15741
15743
|
collectionContext: n.collectionContext
|
|
15742
15744
|
};
|
|
15743
15745
|
}
|
|
15744
|
-
const
|
|
15746
|
+
const Rx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15745
15747
|
__proto__: null,
|
|
15746
15748
|
ConfigProvider: Da,
|
|
15747
15749
|
DefaultNotFound: ml,
|
|
@@ -15751,7 +15753,7 @@ const Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15751
15753
|
PageRenderer: rs,
|
|
15752
15754
|
PreviewRoute: vi,
|
|
15753
15755
|
STUDIO_EVENTS: Se,
|
|
15754
|
-
SectionRenderer:
|
|
15756
|
+
SectionRenderer: Qr,
|
|
15755
15757
|
StudioProvider: Fi,
|
|
15756
15758
|
StudioRoute: Mi,
|
|
15757
15759
|
ThemeLoader: yo,
|
|
@@ -15776,7 +15778,7 @@ const Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15776
15778
|
useConfig: Ia,
|
|
15777
15779
|
useDocumentMeta: cl,
|
|
15778
15780
|
useStudio: _a,
|
|
15779
|
-
withBasePath:
|
|
15781
|
+
withBasePath: en
|
|
15780
15782
|
}, Symbol.toStringTag, { value: "Module" })), lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15781
15783
|
__proto__: null,
|
|
15782
15784
|
AddSectionLibrary: xl,
|
|
@@ -15787,36 +15789,47 @@ const Nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15787
15789
|
PreviewEntry: vl,
|
|
15788
15790
|
StudioStage: Ud,
|
|
15789
15791
|
buildSelectionPath: bi
|
|
15790
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15792
|
+
}, Symbol.toStringTag, { value: "Module" })), Tx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15791
15793
|
__proto__: null,
|
|
15792
15794
|
STUDIO_EVENTS: Se,
|
|
15793
15795
|
StudioProvider: La,
|
|
15794
15796
|
admin: lx,
|
|
15795
15797
|
useStudio: nu
|
|
15796
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15798
|
+
}, Symbol.toStringTag, { value: "Module" })), zx = q.object({
|
|
15797
15799
|
url: q.string(),
|
|
15798
15800
|
alt: q.string().optional()
|
|
15799
|
-
}).describe("ui:image-picker"),
|
|
15801
|
+
}).describe("ui:image-picker"), Ax = q.object({
|
|
15800
15802
|
id: q.string().optional(),
|
|
15801
15803
|
anchorId: q.string().optional().describe("ui:text")
|
|
15802
|
-
}), Ax = q.object({
|
|
15803
|
-
id: q.string().optional()
|
|
15804
15804
|
}), Px = q.object({
|
|
15805
|
-
id: q.string()
|
|
15805
|
+
id: q.string().optional()
|
|
15806
15806
|
}), Ox = q.object({
|
|
15807
|
+
id: q.string()
|
|
15808
|
+
}), Ix = q.object({
|
|
15807
15809
|
paddingTop: q.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
|
|
15808
15810
|
paddingBottom: q.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
|
|
15809
15811
|
theme: q.enum(["dark", "light", "accent"]).default("dark").describe("ui:select"),
|
|
15810
15812
|
container: q.enum(["boxed", "fluid"]).default("boxed").describe("ui:select")
|
|
15811
|
-
}),
|
|
15813
|
+
}), Dx = q.object({
|
|
15812
15814
|
id: q.string().optional(),
|
|
15813
15815
|
label: q.string().describe("ui:text"),
|
|
15814
15816
|
href: q.string().describe("ui:text"),
|
|
15815
15817
|
variant: q.enum(["primary", "secondary", "accent"]).default("primary").describe("ui:select")
|
|
15816
|
-
}),
|
|
15818
|
+
}), _x = q.object({
|
|
15817
15819
|
recipientEmail: q.string().optional().describe("ui:text")
|
|
15818
15820
|
});
|
|
15819
15821
|
function cx(e) {
|
|
15822
|
+
return e.additionalFiles && e.additionalFiles.length > 0 ? {
|
|
15823
|
+
files: [{ path: e.path, content: e.content }, ...e.additionalFiles],
|
|
15824
|
+
...e.changedScopes ? { changedScopes: e.changedScopes } : {},
|
|
15825
|
+
message: e.message
|
|
15826
|
+
} : {
|
|
15827
|
+
path: e.path,
|
|
15828
|
+
content: e.content,
|
|
15829
|
+
message: e.message
|
|
15830
|
+
};
|
|
15831
|
+
}
|
|
15832
|
+
function dx(e) {
|
|
15820
15833
|
const t = e.split(`
|
|
15821
15834
|
`).map((o) => o.trimEnd()).filter((o) => o.length > 0);
|
|
15822
15835
|
if (t.length === 0) return null;
|
|
@@ -15832,7 +15845,7 @@ function cx(e) {
|
|
|
15832
15845
|
return { event: r, data: n.join(`
|
|
15833
15846
|
`) };
|
|
15834
15847
|
}
|
|
15835
|
-
async function
|
|
15848
|
+
async function Mx(e) {
|
|
15836
15849
|
var s;
|
|
15837
15850
|
const t = await fetch(`${e.apiBaseUrl}/save-stream`, {
|
|
15838
15851
|
method: "POST",
|
|
@@ -15840,11 +15853,7 @@ async function _x(e) {
|
|
|
15840
15853
|
"Content-Type": "application/json",
|
|
15841
15854
|
Authorization: `Bearer ${e.apiKey}`
|
|
15842
15855
|
},
|
|
15843
|
-
body: JSON.stringify(
|
|
15844
|
-
path: e.path,
|
|
15845
|
-
content: e.content,
|
|
15846
|
-
message: e.message
|
|
15847
|
-
}),
|
|
15856
|
+
body: JSON.stringify(cx(e)),
|
|
15848
15857
|
signal: e.signal
|
|
15849
15858
|
});
|
|
15850
15859
|
if (!t.ok || !t.body) {
|
|
@@ -15861,7 +15870,7 @@ async function _x(e) {
|
|
|
15861
15870
|
`);
|
|
15862
15871
|
o = l ? "" : d.pop() ?? "";
|
|
15863
15872
|
for (const u of d) {
|
|
15864
|
-
const f =
|
|
15873
|
+
const f = dx(u);
|
|
15865
15874
|
if (f && f.data) {
|
|
15866
15875
|
if (f.event === "step") {
|
|
15867
15876
|
const m = JSON.parse(f.data);
|
|
@@ -15883,7 +15892,7 @@ async function _x(e) {
|
|
|
15883
15892
|
if (!i)
|
|
15884
15893
|
throw new Error("Cloud save stream ended before completion.");
|
|
15885
15894
|
}
|
|
15886
|
-
const
|
|
15895
|
+
const Lx = [
|
|
15887
15896
|
{
|
|
15888
15897
|
id: "commit",
|
|
15889
15898
|
label: "Commit",
|
|
@@ -15920,49 +15929,50 @@ const Mx = [
|
|
|
15920
15929
|
glyph: "✦",
|
|
15921
15930
|
duration: 1600
|
|
15922
15931
|
}
|
|
15923
|
-
],
|
|
15924
|
-
function
|
|
15925
|
-
return At(
|
|
15932
|
+
], ux = { status: "idle", message: "" }, fx = Mr({});
|
|
15933
|
+
function $x(e) {
|
|
15934
|
+
return At(fx)[e] ?? ux;
|
|
15926
15935
|
}
|
|
15927
15936
|
export {
|
|
15928
15937
|
xl as AddSectionLibrary,
|
|
15929
15938
|
Bd as AdminSidebar,
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15939
|
+
Px as BaseArrayItem,
|
|
15940
|
+
Ox as BaseCollectionItem,
|
|
15941
|
+
Ax as BaseSectionData,
|
|
15942
|
+
Ix as BaseSectionSettingsSchema,
|
|
15943
|
+
Bx as ConfigProvider,
|
|
15944
|
+
Dx as CtaSchema,
|
|
15945
|
+
Lx as DEPLOY_STEPS,
|
|
15937
15946
|
ml as DefaultNotFound,
|
|
15938
15947
|
gl as EngineErrorBoundary,
|
|
15939
15948
|
ar as FormFactory,
|
|
15940
|
-
|
|
15949
|
+
zx as ImageSelectionSchema,
|
|
15941
15950
|
Cr as InputWidgets,
|
|
15942
15951
|
ox as JsonPagesEngine,
|
|
15943
|
-
|
|
15952
|
+
fx as OlonFormsContext,
|
|
15944
15953
|
sx as OlonJSEngine,
|
|
15945
15954
|
rs as PageRenderer,
|
|
15946
15955
|
vl as PreviewEntry,
|
|
15947
15956
|
vi as PreviewRoute,
|
|
15948
15957
|
Se as STUDIO_EVENTS,
|
|
15949
|
-
|
|
15950
|
-
|
|
15958
|
+
Qr as SectionRenderer,
|
|
15959
|
+
Vx as StudioProvider,
|
|
15951
15960
|
Mi as StudioRoute,
|
|
15952
15961
|
Ud as StudioStage,
|
|
15953
15962
|
yo as ThemeLoader,
|
|
15954
15963
|
gn as VisitorRoute,
|
|
15955
|
-
|
|
15964
|
+
_x as WithFormRecipient,
|
|
15956
15965
|
ho as applyMenuRefBindingsToDraft,
|
|
15957
15966
|
Yi as applySiteMenuRefBindingsToDraft,
|
|
15958
15967
|
mi as applyValueAtSelectionPath,
|
|
15959
15968
|
hr as buildPageContractHref,
|
|
15960
15969
|
br as buildPageManifestHref,
|
|
15961
|
-
|
|
15970
|
+
cx as buildSaveStreamRequestBody,
|
|
15971
|
+
Gx as buildThemeVariableMap,
|
|
15962
15972
|
Hn as buildWebMcpSaveToolName,
|
|
15963
15973
|
Un as buildWebMcpToolName,
|
|
15964
15974
|
ce as cn,
|
|
15965
|
-
|
|
15975
|
+
Ex as contract,
|
|
15966
15976
|
ul as createWebMcpSaveToolInputSchema,
|
|
15967
15977
|
pl as createWebMcpToolInputSchema,
|
|
15968
15978
|
wo as ensureWebMcpRuntime,
|
|
@@ -15970,7 +15980,7 @@ export {
|
|
|
15970
15980
|
bd as isCanonicalAssetUrl,
|
|
15971
15981
|
Zn as isRecord,
|
|
15972
15982
|
hd as isTransientAssetUrl,
|
|
15973
|
-
|
|
15983
|
+
jx as kernel,
|
|
15974
15984
|
Qn as normalizeBasePath,
|
|
15975
15985
|
Yt as normalizeSlugSegments,
|
|
15976
15986
|
fl as parseWebMcpMutationArgs,
|
|
@@ -15985,17 +15995,17 @@ export {
|
|
|
15985
15995
|
Er as resolveSectionMenuItems,
|
|
15986
15996
|
zs as resolveSlugFromPathname,
|
|
15987
15997
|
gi as resolveWebMcpMutationData,
|
|
15988
|
-
|
|
15998
|
+
Rx as runtime,
|
|
15989
15999
|
Ui as shouldRenderSiteGlobalHeader,
|
|
15990
|
-
|
|
15991
|
-
|
|
16000
|
+
Mx as startCloudSaveStream,
|
|
16001
|
+
Tx as studio,
|
|
15992
16002
|
mn as syncHeadLink,
|
|
15993
16003
|
Ts as syncWebMcpJsonLd,
|
|
15994
|
-
|
|
15995
|
-
|
|
16004
|
+
qx as themeManager,
|
|
16005
|
+
Ux as useConfig,
|
|
15996
16006
|
cl as useDocumentMeta,
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16007
|
+
$x as useFormState,
|
|
16008
|
+
Kx as useStudio,
|
|
16009
|
+
Nx as webmcp,
|
|
16010
|
+
en as withBasePath
|
|
16001
16011
|
};
|