sanity 3.74.2-corel.18 → 3.74.2-coreui.20
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/lib/_chunks-cjs/runtime.js +8 -4
- package/lib/_chunks-cjs/runtime.js.map +1 -1
- package/lib/_chunks-cjs/version.js +1 -1
- package/lib/_chunks-es/version.mjs +1 -1
- package/lib/_legacy/version.esm.js +1 -1
- package/package.json +10 -11
- package/src/_internal/cli/server/renderDocument.tsx +12 -0
- package/src/_internal/cli/server/runtime.ts +13 -10
- package/src/_internal/cli/server/vite/plugin-sanity-build-entries.ts +14 -12
- package/dist/BroadcastDisplayedDocument-BHYI8o6u.mjs +0 -19
- package/dist/BroadcastDisplayedDocument-BHYI8o6u.mjs.map +0 -1
- package/dist/DisplayedDocumentBroadcaster-DfHPxc7C.mjs +0 -58
- package/dist/DisplayedDocumentBroadcaster-DfHPxc7C.mjs.map +0 -1
- package/dist/LiveQueries-sYvgBCKh.mjs +0 -267
- package/dist/LiveQueries-sYvgBCKh.mjs.map +0 -1
- package/dist/LoaderQueries-AQneabiG.mjs +0 -581
- package/dist/LoaderQueries-AQneabiG.mjs.map +0 -1
- package/dist/Observable-wwWYwtkh.mjs +0 -551
- package/dist/Observable-wwWYwtkh.mjs.map +0 -1
- package/dist/PostMessageDocuments-DLMdHDk6.mjs +0 -75
- package/dist/PostMessageDocuments-DLMdHDk6.mjs.map +0 -1
- package/dist/PostMessageFeatures-CazMQz3f.mjs +0 -21
- package/dist/PostMessageFeatures-CazMQz3f.mjs.map +0 -1
- package/dist/PostMessagePerspective-m4uZ6sI5.mjs +0 -23
- package/dist/PostMessagePerspective-m4uZ6sI5.mjs.map +0 -1
- package/dist/PostMessagePreviewSnapshots-Dr7CEAiM.mjs +0 -66
- package/dist/PostMessagePreviewSnapshots-Dr7CEAiM.mjs.map +0 -1
- package/dist/PostMessageRefreshMutations-CWb9UqSy.mjs +0 -66
- package/dist/PostMessageRefreshMutations-CWb9UqSy.mjs.map +0 -1
- package/dist/PostMessageSchema-BVFyZOH1.mjs +0 -514
- package/dist/PostMessageSchema-BVFyZOH1.mjs.map +0 -1
- package/dist/PostMessageTelemetry-CSluBvcC.mjs +0 -51
- package/dist/PostMessageTelemetry-CSluBvcC.mjs.map +0 -1
- package/dist/PresentationToolGrantsCheck-4zo266wj.mjs +0 -3919
- package/dist/PresentationToolGrantsCheck-4zo266wj.mjs.map +0 -1
- package/dist/QRCodeSVG-D6VfGEbM.mjs +0 -648
- package/dist/QRCodeSVG-D6VfGEbM.mjs.map +0 -1
- package/dist/SourceContext-T8zcpOpp.mjs +0 -33
- package/dist/SourceContext-T8zcpOpp.mjs.map +0 -1
- package/dist/StructureToolProvider-BMLps71e.mjs +0 -13815
- package/dist/StructureToolProvider-BMLps71e.mjs.map +0 -1
- package/dist/Subject-DP0DoUP_.mjs +0 -108
- package/dist/Subject-DP0DoUP_.mjs.map +0 -1
- package/dist/ViteDevServerStopped-DdibXNvO.mjs +0 -44
- package/dist/ViteDevServerStopped-DdibXNvO.mjs.map +0 -1
- package/dist/_createContext.mjs +0 -36
- package/dist/_createContext.mjs.map +0 -1
- package/dist/_singletons.mjs +0 -195
- package/dist/_singletons.mjs.map +0 -1
- package/dist/browser-BzDH2pyp.mjs +0 -455
- package/dist/browser-BzDH2pyp.mjs.map +0 -1
- package/dist/browser-DWCoWoiH.mjs +0 -3988
- package/dist/browser-DWCoWoiH.mjs.map +0 -1
- package/dist/debounceTime-BeoKrERE.mjs +0 -130
- package/dist/debounceTime-BeoKrERE.mjs.map +0 -1
- package/dist/desk.mjs +0 -52
- package/dist/desk.mjs.map +0 -1
- package/dist/first-Di4GZDIY.mjs +0 -42
- package/dist/first-Di4GZDIY.mjs.map +0 -1
- package/dist/get-psIoeD-z.mjs +0 -327
- package/dist/get-psIoeD-z.mjs.map +0 -1
- package/dist/hooks-4sgcd521.mjs +0 -90
- package/dist/hooks-4sgcd521.mjs.map +0 -1
- package/dist/index-9PJcXUTv.mjs +0 -87
- package/dist/index-9PJcXUTv.mjs.map +0 -1
- package/dist/index-ByFK-IwD.mjs +0 -528
- package/dist/index-ByFK-IwD.mjs.map +0 -1
- package/dist/index-C2OAo3To.mjs +0 -7079
- package/dist/index-C2OAo3To.mjs.map +0 -1
- package/dist/index-C3OvVLVP.mjs +0 -4636
- package/dist/index-C3OvVLVP.mjs.map +0 -1
- package/dist/index-DBPVDKJN.mjs +0 -1198
- package/dist/index-DBPVDKJN.mjs.map +0 -1
- package/dist/index-DkvUNBNf.mjs +0 -73
- package/dist/index-DkvUNBNf.mjs.map +0 -1
- package/dist/index-Sp9w8lMg.mjs +0 -118
- package/dist/index-Sp9w8lMg.mjs.map +0 -1
- package/dist/index.browser-BxT2qp9y.mjs +0 -104
- package/dist/index.browser-BxT2qp9y.mjs.map +0 -1
- package/dist/index.mjs +0 -129019
- package/dist/index.mjs.map +0 -1
- package/dist/isObservable-ByOheaM8.mjs +0 -8
- package/dist/isObservable-ByOheaM8.mjs.map +0 -1
- package/dist/never-ChKjLemk.mjs +0 -6
- package/dist/never-ChKjLemk.mjs.map +0 -1
- package/dist/pane-C4tskUPg.mjs +0 -5
- package/dist/pane-C4tskUPg.mjs.map +0 -1
- package/dist/pane-Dhx8FvsK.mjs +0 -5
- package/dist/pane-Dhx8FvsK.mjs.map +0 -1
- package/dist/presentation-CSS9GR9X.mjs +0 -984
- package/dist/presentation-CSS9GR9X.mjs.map +0 -1
- package/dist/presentation.mjs +0 -14
- package/dist/presentation.mjs.map +0 -1
- package/dist/resources-4cbq8YlR.mjs +0 -124
- package/dist/resources-4cbq8YlR.mjs.map +0 -1
- package/dist/resources-BVETz6Ur.mjs +0 -57
- package/dist/resources-BVETz6Ur.mjs.map +0 -1
- package/dist/resources-D4AaU75F.mjs +0 -434
- package/dist/resources-D4AaU75F.mjs.map +0 -1
- package/dist/resources-Dc-6ZcPg.mjs +0 -157
- package/dist/resources-Dc-6ZcPg.mjs.map +0 -1
- package/dist/resources-DgU0prBM.mjs +0 -179
- package/dist/resources-DgU0prBM.mjs.map +0 -1
- package/dist/resources-MD8RsYhH.mjs +0 -288
- package/dist/resources-MD8RsYhH.mjs.map +0 -1
- package/dist/router.mjs +0 -689
- package/dist/router.mjs.map +0 -1
- package/dist/share-bcOpIdQz.mjs +0 -71
- package/dist/share-bcOpIdQz.mjs.map +0 -1
- package/dist/shareReplay-Dj1O6fKV.mjs +0 -43
- package/dist/shareReplay-Dj1O6fKV.mjs.map +0 -1
- package/dist/stegaEncodeSourceMap-DXdUZQye.mjs +0 -342
- package/dist/stegaEncodeSourceMap-DXdUZQye.mjs.map +0 -1
- package/dist/structure.mjs +0 -56
- package/dist/structure.mjs.map +0 -1
- package/dist/takeUntil-CgZP1bze.mjs +0 -111
- package/dist/takeUntil-CgZP1bze.mjs.map +0 -1
- package/dist/v4-C78sE4Gb.mjs +0 -27082
- package/dist/v4-C78sE4Gb.mjs.map +0 -1
- package/dist/version-D7UZEoYI.mjs +0 -5
- package/dist/version-D7UZEoYI.mjs.map +0 -1
package/dist/index-DBPVDKJN.mjs
DELETED
@@ -1,1198 +0,0 @@
|
|
1
|
-
var je = Object.defineProperty;
|
2
|
-
var Ue = (r, e, n) => e in r ? je(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
|
3
|
-
var re = (r, e, n) => Ue(r, typeof e != "symbol" ? e + "" : e, n);
|
4
|
-
import { jsx as g, jsxs as O } from "react/jsx-runtime";
|
5
|
-
import { c as T } from "./index-DkvUNBNf.mjs";
|
6
|
-
import { forwardRef as ge, useContext as ze, useState as Y, useEffect as A, memo as Pe, lazy as se, Suspense as qe, Fragment as Je } from "react";
|
7
|
-
import { useUnique as _e, isRecord as Ie, useDocumentStore as Ye, useTranslation as ce, Translate as Re, usePerspective as Xe, useEditState as Ze, useSchema as Ne, unstable_useValuePreview as Qe, _isCustomDocumentTypeDefinition as et, useWorkspace as tt, SourceProvider as nt } from "sanity";
|
8
|
-
import { a0 as rt, Z as st, X as de, a3 as Z, s as ue, S as me, $ as ot, a as at, P as it, a4 as xe, b as lt, a5 as we, W as ct } from "./StructureToolProvider-BMLps71e.mjs";
|
9
|
-
import { t as Me, f as Oe, s as dt, d as ut, c as pt, g as Be, B as ft, i as mt, E as ht } from "./index-C2OAo3To.mjs";
|
10
|
-
import { l as yt, n as gt, h as Pt, s as be, o as oe, e as J, k as ke, v as It, S as ye, T as W, R as Te, B as ie, H as xt, ai as wt, C as le, a as We, W as bt, F as Ce, U as vt, aj as St, ak as $t } from "./v4-C78sE4Gb.mjs";
|
11
|
-
import { styled as Ve } from "styled-components";
|
12
|
-
import { StateLink as Ae, useRouter as ve, useRouterState as Se } from "sanity/router";
|
13
|
-
import { l as Q } from "./browser-DWCoWoiH.mjs";
|
14
|
-
import { n as _t, p as Rt, r as kt } from "./index.browser-BxT2qp9y.mjs";
|
15
|
-
import { i as Tt } from "./isObservable-ByOheaM8.mjs";
|
16
|
-
import { N as Ct } from "./never-ChKjLemk.mjs";
|
17
|
-
import { R as Et } from "./shareReplay-Dj1O6fKV.mjs";
|
18
|
-
import { PaneRouterContext as $e } from "sanity/_singletons";
|
19
|
-
function Dt() {
|
20
|
-
return yt(function(r, e) {
|
21
|
-
var n, t = !1;
|
22
|
-
r.subscribe(gt(e, function(a) {
|
23
|
-
var o = n;
|
24
|
-
n = a, t && e.next([o, a]), t = !0;
|
25
|
-
}));
|
26
|
-
});
|
27
|
-
}
|
28
|
-
const Ge = ge(function(e, n) {
|
29
|
-
const t = T(19);
|
30
|
-
let a, o, i, s;
|
31
|
-
t[0] !== e ? ({
|
32
|
-
childId: a,
|
33
|
-
childPayload: i,
|
34
|
-
childParameters: o,
|
35
|
-
...s
|
36
|
-
} = e, t[0] = e, t[1] = a, t[2] = o, t[3] = i, t[4] = s) : (a = t[1], o = t[2], i = t[3], s = t[4]);
|
37
|
-
const {
|
38
|
-
routerPanesState: c,
|
39
|
-
groupIndex: l
|
40
|
-
} = ze($e);
|
41
|
-
let d;
|
42
|
-
t[5] !== l || t[6] !== c ? (d = c.slice(0, l + 1), t[5] = l, t[6] = c, t[7] = d) : d = t[7];
|
43
|
-
let u;
|
44
|
-
t[8] !== a || t[9] !== o || t[10] !== i ? (u = [{
|
45
|
-
id: a,
|
46
|
-
params: o,
|
47
|
-
payload: i
|
48
|
-
}], t[8] = a, t[9] = o, t[10] = i, t[11] = u) : u = t[11];
|
49
|
-
let f;
|
50
|
-
t[12] !== d || t[13] !== u ? (f = {
|
51
|
-
panes: [...d, u]
|
52
|
-
}, t[12] = d, t[13] = u, t[14] = f) : f = t[14];
|
53
|
-
let p;
|
54
|
-
return t[15] !== n || t[16] !== s || t[17] !== f ? (p = /* @__PURE__ */ g(Ae, { ...s, ref: n, state: f }), t[15] = n, t[16] = s, t[17] = f, t[18] = p) : p = t[18], p;
|
55
|
-
}), Lt = ge(function(e, n) {
|
56
|
-
const t = T(34), {
|
57
|
-
routerPanesState: a,
|
58
|
-
groupIndex: o,
|
59
|
-
siblingIndex: i
|
60
|
-
} = ze($e);
|
61
|
-
let s, c, l;
|
62
|
-
t[0] !== e ? ({
|
63
|
-
params: s,
|
64
|
-
payload: c,
|
65
|
-
...l
|
66
|
-
} = e, t[0] = e, t[1] = s, t[2] = c, t[3] = l) : (s = t[1], c = t[2], l = t[3]);
|
67
|
-
const d = _e(s), u = _e(c);
|
68
|
-
let f;
|
69
|
-
const p = a[o], m = p[i], h = d ?? m.params, I = u ?? m.payload;
|
70
|
-
let x;
|
71
|
-
t[4] !== m || t[5] !== h || t[6] !== I ? (x = {
|
72
|
-
...m,
|
73
|
-
params: h,
|
74
|
-
payload: I
|
75
|
-
}, t[4] = m, t[5] = h, t[6] = I, t[7] = x) : x = t[7];
|
76
|
-
const y = x;
|
77
|
-
let w;
|
78
|
-
t[8] !== p || t[9] !== i ? (w = p.slice(0, i), t[8] = p, t[9] = i, t[10] = w) : w = t[10];
|
79
|
-
let b;
|
80
|
-
t[11] !== p || t[12] !== i ? (b = p.slice(i + 1), t[11] = p, t[12] = i, t[13] = b) : b = t[13];
|
81
|
-
let $;
|
82
|
-
t[14] !== y || t[15] !== w || t[16] !== b ? ($ = [...w, y, ...b], t[14] = y, t[15] = w, t[16] = b, t[17] = $) : $ = t[17];
|
83
|
-
const P = $;
|
84
|
-
let _;
|
85
|
-
t[18] !== a || t[19] !== o ? (_ = a.slice(0, o), t[18] = a, t[19] = o, t[20] = _) : _ = t[20];
|
86
|
-
let R;
|
87
|
-
t[21] !== a || t[22] !== o ? (R = a.slice(o + 1), t[21] = a, t[22] = o, t[23] = R) : R = t[23];
|
88
|
-
let D;
|
89
|
-
t[24] !== P || t[25] !== _ || t[26] !== R ? (D = [..._, P, ...R], t[24] = P, t[25] = _, t[26] = R, t[27] = D) : D = t[27];
|
90
|
-
const z = D;
|
91
|
-
let C;
|
92
|
-
t[28] !== z ? (C = {
|
93
|
-
panes: z
|
94
|
-
}, t[28] = z, t[29] = C) : C = t[29], f = C;
|
95
|
-
const k = f;
|
96
|
-
let E;
|
97
|
-
return t[30] !== k || t[31] !== n || t[32] !== l ? (E = /* @__PURE__ */ g(Ae, { ref: n, ...l, state: k }), t[30] = k, t[31] = n, t[32] = l, t[33] = E) : E = t[33], E;
|
98
|
-
}), zt = ge(function(e, n) {
|
99
|
-
const t = T(22);
|
100
|
-
let a, o, i, s, c, l;
|
101
|
-
t[0] !== e ? ({
|
102
|
-
documentId: o,
|
103
|
-
documentType: i,
|
104
|
-
parentRefPath: s,
|
105
|
-
children: a,
|
106
|
-
template: l,
|
107
|
-
...c
|
108
|
-
} = e, t[0] = e, t[1] = a, t[2] = o, t[3] = i, t[4] = s, t[5] = c, t[6] = l) : (a = t[1], o = t[2], i = t[3], s = t[4], c = t[5], l = t[6]);
|
109
|
-
const d = l == null ? void 0 : l.params;
|
110
|
-
let u;
|
111
|
-
t[7] !== s ? (u = Me(s), t[7] = s, t[8] = u) : u = t[8];
|
112
|
-
let f;
|
113
|
-
t[9] !== l ? (f = l && {
|
114
|
-
template: l == null ? void 0 : l.id
|
115
|
-
}, t[9] = l, t[10] = f) : f = t[10];
|
116
|
-
let p;
|
117
|
-
t[11] !== i || t[12] !== u || t[13] !== f ? (p = {
|
118
|
-
type: i,
|
119
|
-
parentRefPath: u,
|
120
|
-
...f
|
121
|
-
}, t[11] = i, t[12] = u, t[13] = f, t[14] = p) : p = t[14];
|
122
|
-
let m;
|
123
|
-
return t[15] !== a || t[16] !== o || t[17] !== n || t[18] !== c || t[19] !== d || t[20] !== p ? (m = /* @__PURE__ */ g(Ge, { ...c, ref: n, childId: o, childPayload: d, childParameters: p, children: a }), t[15] = a, t[16] = o, t[17] = n, t[18] = c, t[19] = d, t[20] = p, t[21] = m) : m = t[21], m;
|
124
|
-
}), Nt = [];
|
125
|
-
function Mt(r) {
|
126
|
-
const e = T(60), {
|
127
|
-
children: n,
|
128
|
-
flatIndex: t,
|
129
|
-
index: a,
|
130
|
-
params: o,
|
131
|
-
payload: i,
|
132
|
-
siblingIndex: s
|
133
|
-
} = r, {
|
134
|
-
navigate: c,
|
135
|
-
navigateIntent: l,
|
136
|
-
resolvePathFromState: d
|
137
|
-
} = ve(), u = Se(), {
|
138
|
-
panes: f,
|
139
|
-
expand: p
|
140
|
-
} = rt();
|
141
|
-
u == null || u.panes;
|
142
|
-
let m;
|
143
|
-
m = (u == null ? void 0 : u.panes) || Nt;
|
144
|
-
const h = m;
|
145
|
-
let I;
|
146
|
-
I = f == null ? void 0 : f[f.length - 2];
|
147
|
-
const x = I, y = a - 1;
|
148
|
-
let w;
|
149
|
-
e[0] !== y || e[1] !== h || e[2] !== u || e[3] !== s ? (w = (v) => {
|
150
|
-
const S = h[y] || [], L = S[s], H = v(S, L), ne = [...h.slice(0, y), H, ...h.slice(y + 1)];
|
151
|
-
return {
|
152
|
-
...u || {},
|
153
|
-
panes: ne
|
154
|
-
};
|
155
|
-
}, e[0] = y, e[1] = h, e[2] = u, e[3] = s, e[4] = w) : w = e[4];
|
156
|
-
const b = w;
|
157
|
-
let $;
|
158
|
-
e[5] !== b || e[6] !== c ? ($ = (v) => {
|
159
|
-
const S = b(v);
|
160
|
-
return setTimeout(() => c(S), 0), S;
|
161
|
-
}, e[5] = b, e[6] = c, e[7] = $) : $ = e[7];
|
162
|
-
const P = $;
|
163
|
-
let _;
|
164
|
-
e[8] !== b || e[9] !== d || e[10] !== s ? (_ = (v) => {
|
165
|
-
const S = b((L, H) => [...L.slice(0, s), {
|
166
|
-
...H,
|
167
|
-
params: v
|
168
|
-
}, ...L.slice(s + 1)]);
|
169
|
-
return d(S);
|
170
|
-
}, e[8] = b, e[9] = d, e[10] = s, e[11] = _) : _ = e[11];
|
171
|
-
const R = _;
|
172
|
-
let D;
|
173
|
-
e[12] !== P || e[13] !== s ? (D = (v) => {
|
174
|
-
P((S, L) => [...S.slice(0, s), {
|
175
|
-
...L,
|
176
|
-
payload: v
|
177
|
-
}, ...S.slice(s + 1)]);
|
178
|
-
}, e[12] = P, e[13] = s, e[14] = D) : D = e[14];
|
179
|
-
const z = D;
|
180
|
-
let C;
|
181
|
-
e[15] !== P || e[16] !== s ? (C = (v) => {
|
182
|
-
P((S, L) => [...S.slice(0, s), {
|
183
|
-
...L,
|
184
|
-
params: v
|
185
|
-
}, ...S.slice(s + 1)]);
|
186
|
-
}, e[15] = P, e[16] = s, e[17] = C) : C = e[17];
|
187
|
-
const k = C;
|
188
|
-
let E;
|
189
|
-
e[18] !== y || e[19] !== c || e[20] !== h ? (E = (v) => {
|
190
|
-
const {
|
191
|
-
id: S,
|
192
|
-
parentRefPath: L,
|
193
|
-
type: H,
|
194
|
-
template: ne
|
195
|
-
} = v;
|
196
|
-
c({
|
197
|
-
panes: [...h.slice(0, y + 1), [{
|
198
|
-
id: S,
|
199
|
-
params: {
|
200
|
-
template: ne.id,
|
201
|
-
parentRefPath: Me(L),
|
202
|
-
type: H
|
203
|
-
},
|
204
|
-
payload: ne.params
|
205
|
-
}]]
|
206
|
-
});
|
207
|
-
}, e[18] = y, e[19] = c, e[20] = h, e[21] = E) : E = e[21];
|
208
|
-
const M = E;
|
209
|
-
let G;
|
210
|
-
const V = h[y] ? h[y].length > 1 : !1, K = h[y] ? h[y].length : 0, N = t ? st : void 0;
|
211
|
-
let B, F;
|
212
|
-
e[22] !== P ? (B = (v) => {
|
213
|
-
const S = v === void 0 ? {} : v;
|
214
|
-
P(() => [{
|
215
|
-
id: S.id || "",
|
216
|
-
payload: S.payload,
|
217
|
-
params: S.params || {}
|
218
|
-
}]);
|
219
|
-
}, F = () => {
|
220
|
-
P(Ot);
|
221
|
-
}, e[22] = P, e[23] = B, e[24] = F) : (B = e[23], F = e[24]);
|
222
|
-
let j;
|
223
|
-
e[25] !== p || e[26] !== y || e[27] !== x || e[28] !== c || e[29] !== h ? (j = (v) => {
|
224
|
-
(v === void 0 ? !0 : v) && x && p(x.element), c({
|
225
|
-
panes: [...h.slice(0, y)]
|
226
|
-
});
|
227
|
-
}, e[25] = p, e[26] = y, e[27] = x, e[28] = c, e[29] = h, e[30] = j) : j = e[30];
|
228
|
-
let U;
|
229
|
-
e[31] !== P || e[32] !== s ? (U = (v) => {
|
230
|
-
P((S, L) => {
|
231
|
-
const H = {
|
232
|
-
...L,
|
233
|
-
payload: (v == null ? void 0 : v.payload) || L.payload,
|
234
|
-
params: (v == null ? void 0 : v.params) || L.params
|
235
|
-
};
|
236
|
-
return [...S.slice(0, s), H, ...S.slice(s)];
|
237
|
-
});
|
238
|
-
}, e[31] = P, e[32] = s, e[33] = U) : U = e[33];
|
239
|
-
let q;
|
240
|
-
e[34] !== o || e[35] !== k ? (q = (v) => {
|
241
|
-
const S = Q.omit(o, "view");
|
242
|
-
return k(v ? {
|
243
|
-
...S,
|
244
|
-
view: v
|
245
|
-
} : S);
|
246
|
-
}, e[34] = o, e[35] = k, e[36] = q) : q = e[36];
|
247
|
-
let ee;
|
248
|
-
e[37] !== R || e[38] !== t || e[39] !== y || e[40] !== M || e[41] !== l || e[42] !== o || e[43] !== i || e[44] !== h || e[45] !== k || e[46] !== z || e[47] !== s || e[48] !== K || e[49] !== N || e[50] !== B || e[51] !== F || e[52] !== j || e[53] !== U || e[54] !== q || e[55] !== V ? (ee = {
|
249
|
-
index: t,
|
250
|
-
groupIndex: y,
|
251
|
-
siblingIndex: s,
|
252
|
-
payload: i,
|
253
|
-
params: o,
|
254
|
-
hasGroupSiblings: V,
|
255
|
-
groupLength: K,
|
256
|
-
routerPanesState: h,
|
257
|
-
ChildLink: Ge,
|
258
|
-
BackLink: N,
|
259
|
-
ReferenceChildLink: zt,
|
260
|
-
handleEditReference: M,
|
261
|
-
ParameterizedLink: Lt,
|
262
|
-
replaceCurrent: B,
|
263
|
-
closeCurrent: F,
|
264
|
-
closeCurrentAndAfter: j,
|
265
|
-
duplicateCurrent: U,
|
266
|
-
setView: q,
|
267
|
-
setParams: k,
|
268
|
-
setPayload: z,
|
269
|
-
createPathWithParams: R,
|
270
|
-
navigateIntent: l
|
271
|
-
}, e[37] = R, e[38] = t, e[39] = y, e[40] = M, e[41] = l, e[42] = o, e[43] = i, e[44] = h, e[45] = k, e[46] = z, e[47] = s, e[48] = K, e[49] = N, e[50] = B, e[51] = F, e[52] = j, e[53] = U, e[54] = q, e[55] = V, e[56] = ee) : ee = e[56], G = ee;
|
272
|
-
const fe = G;
|
273
|
-
let te;
|
274
|
-
return e[57] !== n || e[58] !== fe ? (te = /* @__PURE__ */ g($e.Provider, { value: fe, children: n }), e[57] = n, e[58] = fe, e[59] = te) : te = e[59], te;
|
275
|
-
}
|
276
|
-
function Ot(r, e) {
|
277
|
-
return r.length > 1 ? r.filter((n) => n !== e) : r;
|
278
|
-
}
|
279
|
-
class X extends Error {
|
280
|
-
constructor({
|
281
|
-
message: n,
|
282
|
-
context: t,
|
283
|
-
helpId: a,
|
284
|
-
cause: o
|
285
|
-
}) {
|
286
|
-
super(n);
|
287
|
-
re(this, "cause");
|
288
|
-
re(this, "context");
|
289
|
-
re(this, "helpId");
|
290
|
-
this.name = "PaneResolutionError", this.context = t, this.helpId = a, this.cause = o;
|
291
|
-
}
|
292
|
-
}
|
293
|
-
const Ee = /* @__PURE__ */ new WeakMap();
|
294
|
-
function pe(r) {
|
295
|
-
const e = Ee.get(r);
|
296
|
-
if (e) return e;
|
297
|
-
const n = _t();
|
298
|
-
return Ee.set(r, n), n;
|
299
|
-
}
|
300
|
-
const Bt = (r) => !!r && typeof (r == null ? void 0 : r.then) == "function", Wt = (r) => Ie(r) ? typeof r.serialize == "function" : !1, Vt = (r) => (e, n, t) => {
|
301
|
-
try {
|
302
|
-
return r(e, n, t);
|
303
|
-
} catch (a) {
|
304
|
-
throw a instanceof X ? a : new X({
|
305
|
-
message: typeof (a == null ? void 0 : a.message) == "string" ? a.message : "",
|
306
|
-
context: n,
|
307
|
-
cause: a
|
308
|
-
});
|
309
|
-
}
|
310
|
-
}, At = (r) => (...e) => r(...e).pipe(
|
311
|
-
// need to add publishReplay + refCount to ensure new subscribers always
|
312
|
-
// get an emission. without this, memoized observables may get stuck
|
313
|
-
// waiting for their first emissions resulting in a loading pane
|
314
|
-
Rt(1),
|
315
|
-
kt()
|
316
|
-
);
|
317
|
-
function He(r) {
|
318
|
-
const e = Vt(At(r((n, t, a) => {
|
319
|
-
if (!n)
|
320
|
-
throw new X({
|
321
|
-
message: "Pane returned no child",
|
322
|
-
context: t,
|
323
|
-
helpId: "structure-item-returned-no-child"
|
324
|
-
});
|
325
|
-
return Bt(n) || Tt(n) ? Pt(n).pipe(be((o) => e(o, t, a))) : Wt(n) ? e(n.serialize(t), t, a) : typeof n == "function" ? e(n(t.id, t), t, a) : oe(n);
|
326
|
-
})));
|
327
|
-
return e;
|
328
|
-
}
|
329
|
-
const De = /* @__PURE__ */ new WeakMap();
|
330
|
-
function Ke(r, e) {
|
331
|
-
const n = De.get(r) || /* @__PURE__ */ new Map();
|
332
|
-
if (n) {
|
333
|
-
const o = n.get(e);
|
334
|
-
if (o) return o;
|
335
|
-
}
|
336
|
-
const t = r[e];
|
337
|
-
if (typeof t != "function")
|
338
|
-
throw new Error(`Expected property \`${e}\` to be a function but got ${typeof t} instead.`);
|
339
|
-
const a = t.bind(r);
|
340
|
-
return n.set(e, a), De.set(r, n), a;
|
341
|
-
}
|
342
|
-
async function Gt(r) {
|
343
|
-
const e = /* @__PURE__ */ new Map(), t = He((c) => (l, d, u) => {
|
344
|
-
const f = l && `${pe(l)}-${d.path.join("__")}`, p = f && e.get(f);
|
345
|
-
if (p) return p;
|
346
|
-
const m = c(l, d, u);
|
347
|
-
return f && e.set(f, m), m;
|
348
|
-
}), a = [[{
|
349
|
-
id: `__edit__${r.params.id}`,
|
350
|
-
params: {
|
351
|
-
...Q.omit(r.params, ["id"]),
|
352
|
-
type: r.params.type
|
353
|
-
},
|
354
|
-
payload: r.payload
|
355
|
-
}]];
|
356
|
-
async function o({
|
357
|
-
currentId: c,
|
358
|
-
flatIndex: l,
|
359
|
-
intent: d,
|
360
|
-
params: u,
|
361
|
-
parent: f,
|
362
|
-
path: p,
|
363
|
-
payload: m,
|
364
|
-
unresolvedPane: h,
|
365
|
-
levelIndex: I,
|
366
|
-
structureContext: x
|
367
|
-
}) {
|
368
|
-
var _;
|
369
|
-
if (!h) return [];
|
370
|
-
const {
|
371
|
-
id: y,
|
372
|
-
type: w,
|
373
|
-
...b
|
374
|
-
} = u, P = await Oe(t(h, {
|
375
|
-
id: c,
|
376
|
-
splitIndex: 0,
|
377
|
-
parent: f,
|
378
|
-
path: p,
|
379
|
-
index: l,
|
380
|
-
params: {},
|
381
|
-
payload: void 0,
|
382
|
-
structureContext: x
|
383
|
-
}, l));
|
384
|
-
return P.type === "document" && P.id === y ? [{
|
385
|
-
panes: [...p.slice(0, p.length - 1).map((R) => [{
|
386
|
-
id: R
|
387
|
-
}]), [{
|
388
|
-
id: y,
|
389
|
-
params: b,
|
390
|
-
payload: m
|
391
|
-
}]],
|
392
|
-
depthIndex: p.length,
|
393
|
-
levelIndex: I
|
394
|
-
}] : (
|
395
|
-
// if the resolve pane's `canHandleIntent` returns true, then resolve
|
396
|
-
(_ = P.canHandleIntent) != null && _.call(P, d, u, {
|
397
|
-
pane: P,
|
398
|
-
index: l
|
399
|
-
}) || // if the pane's `canHandleIntent` did not return true, then match against
|
400
|
-
// this default case. we will resolve the intent if:
|
401
|
-
P.type === "documentList" && // 1. the schema type matches (this required for the document to render)
|
402
|
-
P.schemaTypeName === w && // 2. the filter is the default filter.
|
403
|
-
//
|
404
|
-
// NOTE: this case is to prevent false positive matches where the user
|
405
|
-
// has configured a more specific filter for a particular type. In that
|
406
|
-
// case, the user can implement their own `canHandleIntent` function
|
407
|
-
P.options.filter === "_type == $type" ? [{
|
408
|
-
panes: [
|
409
|
-
// map the current path to router panes
|
410
|
-
...p.map((R) => [{
|
411
|
-
id: R
|
412
|
-
}]),
|
413
|
-
// then augment with the intents IDs and params
|
414
|
-
[{
|
415
|
-
id: u.id,
|
416
|
-
params: b,
|
417
|
-
payload: m
|
418
|
-
}]
|
419
|
-
],
|
420
|
-
depthIndex: p.length,
|
421
|
-
levelIndex: I
|
422
|
-
}] : P.type === "list" && P.child && P.items ? (await Promise.all(P.items.map((R, D) => R.type === "divider" ? Promise.resolve([]) : o({
|
423
|
-
currentId: R._id || R.id,
|
424
|
-
flatIndex: l + 1,
|
425
|
-
intent: d,
|
426
|
-
params: u,
|
427
|
-
parent: P,
|
428
|
-
path: [...p, R.id],
|
429
|
-
payload: m,
|
430
|
-
unresolvedPane: typeof P.child == "function" ? Ke(P, "child") : P.child,
|
431
|
-
levelIndex: D,
|
432
|
-
structureContext: x
|
433
|
-
})))).flat() : []
|
434
|
-
);
|
435
|
-
}
|
436
|
-
const s = (await o({
|
437
|
-
currentId: "root",
|
438
|
-
flatIndex: 0,
|
439
|
-
levelIndex: 0,
|
440
|
-
intent: r.intent,
|
441
|
-
params: r.params,
|
442
|
-
parent: null,
|
443
|
-
path: [],
|
444
|
-
payload: r.payload,
|
445
|
-
unresolvedPane: r.rootPaneNode,
|
446
|
-
structureContext: r.structureContext
|
447
|
-
})).sort((c, l) => c.depthIndex === l.depthIndex ? c.levelIndex - l.levelIndex : c.depthIndex - l.depthIndex)[0];
|
448
|
-
return s ? s.panes : a;
|
449
|
-
}
|
450
|
-
const Ht = (r, e) => {
|
451
|
-
const n = r.replace(/^__edit__/, ""), {
|
452
|
-
params: t,
|
453
|
-
payload: a,
|
454
|
-
structureContext: {
|
455
|
-
resolveDocumentNode: o
|
456
|
-
}
|
457
|
-
} = e, {
|
458
|
-
type: i,
|
459
|
-
template: s
|
460
|
-
} = t;
|
461
|
-
if (!i)
|
462
|
-
throw new Error(`Document type for document with ID ${n} was not provided in the router params.`);
|
463
|
-
let c = o({
|
464
|
-
schemaType: i,
|
465
|
-
documentId: n
|
466
|
-
}).id("editor");
|
467
|
-
return s && (c = c.initialValueTemplate(s, a)), c.serialize();
|
468
|
-
};
|
469
|
-
function Kt(r) {
|
470
|
-
var e, n;
|
471
|
-
return `contextHash(${JSON.stringify({
|
472
|
-
id: r.id,
|
473
|
-
parentId: parent && pe(parent),
|
474
|
-
path: r.path,
|
475
|
-
index: r.index,
|
476
|
-
splitIndex: r.splitIndex,
|
477
|
-
serializeOptionsIndex: (e = r.serializeOptions) == null ? void 0 : e.index,
|
478
|
-
serializeOptionsPath: (n = r.serializeOptions) == null ? void 0 : n.path
|
479
|
-
})})`;
|
480
|
-
}
|
481
|
-
const Le = (r) => {
|
482
|
-
const e = {
|
483
|
-
type: r.type,
|
484
|
-
id: r.routerPaneSibling.id,
|
485
|
-
params: r.routerPaneSibling.params || {},
|
486
|
-
payload: r.routerPaneSibling.payload || null,
|
487
|
-
flatIndex: r.flatIndex,
|
488
|
-
groupIndex: r.groupIndex,
|
489
|
-
siblingIndex: r.siblingIndex,
|
490
|
-
path: r.path,
|
491
|
-
paneNode: r.type === "resolvedMeta" ? pe(r.paneNode) : null
|
492
|
-
};
|
493
|
-
return `metaHash(${JSON.stringify(e)})`;
|
494
|
-
};
|
495
|
-
function ae({
|
496
|
-
unresolvedPane: r,
|
497
|
-
flattenedRouterPanes: e,
|
498
|
-
parent: n,
|
499
|
-
path: t,
|
500
|
-
resolvePane: a,
|
501
|
-
structureContext: o
|
502
|
-
}) {
|
503
|
-
const [i, ...s] = e, c = s[0], l = {
|
504
|
-
id: i.routerPaneSibling.id,
|
505
|
-
splitIndex: i.siblingIndex,
|
506
|
-
parent: n,
|
507
|
-
path: [...t, i.routerPaneSibling.id],
|
508
|
-
index: i.flatIndex,
|
509
|
-
params: i.routerPaneSibling.params || {},
|
510
|
-
payload: i.routerPaneSibling.payload,
|
511
|
-
structureContext: o
|
512
|
-
};
|
513
|
-
try {
|
514
|
-
return a(r, l, i.flatIndex).pipe(
|
515
|
-
// this switch map receives a resolved pane
|
516
|
-
be((d) => {
|
517
|
-
const u = {
|
518
|
-
type: "resolvedMeta",
|
519
|
-
...i,
|
520
|
-
paneNode: d,
|
521
|
-
path: l.path
|
522
|
-
}, f = s.map((m, h) => ({
|
523
|
-
type: "loading",
|
524
|
-
path: [...l.path, ...s.slice(h).map((y, w) => `[${m.flatIndex + w}]`)],
|
525
|
-
paneNode: null,
|
526
|
-
...m
|
527
|
-
}));
|
528
|
-
if (!s.length)
|
529
|
-
return oe([u]);
|
530
|
-
let p;
|
531
|
-
return /* the fallback editor case */ c != null && c.routerPaneSibling.id.startsWith("__edit__") ? p = ae({
|
532
|
-
unresolvedPane: Ht,
|
533
|
-
flattenedRouterPanes: s,
|
534
|
-
parent: n,
|
535
|
-
path: l.path,
|
536
|
-
resolvePane: a,
|
537
|
-
structureContext: o
|
538
|
-
}) : i.groupIndex === (c == null ? void 0 : c.groupIndex) ? p = ae({
|
539
|
-
unresolvedPane: r,
|
540
|
-
flattenedRouterPanes: s,
|
541
|
-
parent: n,
|
542
|
-
path: t,
|
543
|
-
resolvePane: a,
|
544
|
-
structureContext: o
|
545
|
-
}) : p = ae({
|
546
|
-
unresolvedPane: typeof d.child == "function" ? Ke(d, "child") : d.child,
|
547
|
-
flattenedRouterPanes: s,
|
548
|
-
parent: d,
|
549
|
-
path: l.path,
|
550
|
-
resolvePane: a,
|
551
|
-
structureContext: o
|
552
|
-
}), pt(
|
553
|
-
// we emit the loading panes first in a concat (this emits immediately)
|
554
|
-
oe([u, ...f]),
|
555
|
-
// then whenever the next stream is done, the results will be combined.
|
556
|
-
p.pipe(J((m) => [u, ...m]))
|
557
|
-
);
|
558
|
-
})
|
559
|
-
);
|
560
|
-
} catch (d) {
|
561
|
-
if (d instanceof X && (d.context && console.warn(`Pane resolution error at index ${d.context.index}${d.context.splitIndex > 0 ? ` for split pane index ${d.context.splitIndex}` : ""}: ${d.message}${d.helpId ? ` - see ${Be(d.helpId)}` : ""}`, d), d.helpId === "structure-item-returned-no-child"))
|
562
|
-
return oe([]);
|
563
|
-
throw d;
|
564
|
-
}
|
565
|
-
}
|
566
|
-
function Ft({
|
567
|
-
routerPanesStream: r,
|
568
|
-
rootPaneNode: e,
|
569
|
-
initialCacheState: n = {
|
570
|
-
cacheKeysByFlatIndex: [],
|
571
|
-
flattenedRouterPanes: [],
|
572
|
-
resolvedPaneCache: /* @__PURE__ */ new Map(),
|
573
|
-
resolvePane: () => Ct
|
574
|
-
},
|
575
|
-
structureContext: t
|
576
|
-
}) {
|
577
|
-
return r.pipe(
|
578
|
-
// add in implicit "root" router pane
|
579
|
-
J((o) => [[{
|
580
|
-
id: "root"
|
581
|
-
}], ...o]),
|
582
|
-
// create flattened router panes
|
583
|
-
J((o) => o.flatMap((s, c) => s.map((l, d) => ({
|
584
|
-
routerPaneSibling: l,
|
585
|
-
groupIndex: c,
|
586
|
-
siblingIndex: d
|
587
|
-
}))).map((s, c) => ({
|
588
|
-
...s,
|
589
|
-
flatIndex: c
|
590
|
-
}))),
|
591
|
-
// calculate a "diffIndex" used for clearing the memo cache
|
592
|
-
dt([]),
|
593
|
-
Dt(),
|
594
|
-
J(([o, i]) => {
|
595
|
-
for (let s = 0; s < i.length; s++) {
|
596
|
-
const c = o[s], l = i[s];
|
597
|
-
if (!Q.isEqual(c, l))
|
598
|
-
return {
|
599
|
-
flattenedRouterPanes: i,
|
600
|
-
diffIndex: s
|
601
|
-
};
|
602
|
-
}
|
603
|
-
return {
|
604
|
-
flattenedRouterPanes: i,
|
605
|
-
diffIndex: i.length
|
606
|
-
};
|
607
|
-
}),
|
608
|
-
// create the memoized `resolvePane` function and manage the memo cache
|
609
|
-
ke((o, i) => {
|
610
|
-
const {
|
611
|
-
cacheKeysByFlatIndex: s,
|
612
|
-
resolvedPaneCache: c
|
613
|
-
} = o, {
|
614
|
-
flattenedRouterPanes: l,
|
615
|
-
diffIndex: d
|
616
|
-
} = i, u = s.slice(0, d + 1), f = s.slice(d + 1), p = new Set(u.flatMap((I) => Array.from(I))), m = f.flatMap((I) => Array.from(I)).filter((I) => !p.has(I));
|
617
|
-
for (const I of m)
|
618
|
-
c.delete(I);
|
619
|
-
return {
|
620
|
-
flattenedRouterPanes: l,
|
621
|
-
cacheKeysByFlatIndex: s,
|
622
|
-
resolvedPaneCache: c,
|
623
|
-
resolvePane: He((I) => (x, y, w) => {
|
624
|
-
const b = x && `${pe(x)}-${Kt(y)}`, $ = b && c.get(b);
|
625
|
-
if ($) return $;
|
626
|
-
const P = I(x, y, w);
|
627
|
-
if (!b) return P;
|
628
|
-
const _ = s[w] || /* @__PURE__ */ new Set();
|
629
|
-
return _.add(b), s[w] = _, c.set(b, P), P;
|
630
|
-
})
|
631
|
-
};
|
632
|
-
}, n),
|
633
|
-
// run the memoized, recursive resolving
|
634
|
-
be(({
|
635
|
-
flattenedRouterPanes: o,
|
636
|
-
resolvePane: i
|
637
|
-
}) => ae({
|
638
|
-
unresolvedPane: e,
|
639
|
-
flattenedRouterPanes: o,
|
640
|
-
parent: null,
|
641
|
-
path: [],
|
642
|
-
resolvePane: i,
|
643
|
-
structureContext: t
|
644
|
-
}))
|
645
|
-
).pipe(
|
646
|
-
// this diffs the previous emission with the current one. if there is a new
|
647
|
-
// loading pane at the same position where a previous pane already had a
|
648
|
-
// resolved value (looking at the IDs to compare), then return the previous
|
649
|
-
// pane instead of the loading pane
|
650
|
-
ke((o, i) => i.map((s, c) => {
|
651
|
-
const l = o[c];
|
652
|
-
return !l || s.type !== "loading" ? s : l.routerPaneSibling.id === s.routerPaneSibling.id ? l : s;
|
653
|
-
}), []),
|
654
|
-
// this prevents duplicate emissions
|
655
|
-
ut((o, i) => {
|
656
|
-
if (o.length !== i.length) return !1;
|
657
|
-
for (let s = 0; s < i.length; s++) {
|
658
|
-
const c = o[s], l = i[s];
|
659
|
-
if (Le(c) !== Le(l))
|
660
|
-
return !1;
|
661
|
-
}
|
662
|
-
return !0;
|
663
|
-
})
|
664
|
-
);
|
665
|
-
}
|
666
|
-
function jt() {
|
667
|
-
const r = T(6), [e] = Y(qt);
|
668
|
-
let n, t;
|
669
|
-
r[0] !== e ? (t = e.asObservable().pipe(J(Ut)), r[0] = e, r[1] = t) : t = r[1], n = t;
|
670
|
-
const a = n, {
|
671
|
-
state: o
|
672
|
-
} = ve();
|
673
|
-
let i, s;
|
674
|
-
return r[2] !== o || r[3] !== e ? (i = () => {
|
675
|
-
e.next(o);
|
676
|
-
}, s = [o, e], r[2] = o, r[3] = e, r[4] = i, r[5] = s) : (i = r[4], s = r[5]), A(i, s), a;
|
677
|
-
}
|
678
|
-
function Ut(r) {
|
679
|
-
return (r == null ? void 0 : r.panes) || [];
|
680
|
-
}
|
681
|
-
function qt() {
|
682
|
-
return new Et(1);
|
683
|
-
}
|
684
|
-
function Jt() {
|
685
|
-
const r = T(6), [e, n] = Y();
|
686
|
-
if (e)
|
687
|
-
throw e;
|
688
|
-
const {
|
689
|
-
structureContext: t,
|
690
|
-
rootPaneNode: a
|
691
|
-
} = de();
|
692
|
-
let o;
|
693
|
-
r[0] === Symbol.for("react.memo_cache_sentinel") ? (o = {
|
694
|
-
paneDataItems: [],
|
695
|
-
resolvedPanes: [],
|
696
|
-
routerPanes: []
|
697
|
-
}, r[0] = o) : o = r[0];
|
698
|
-
const [i, s] = Y(o), c = jt();
|
699
|
-
let l, d;
|
700
|
-
return r[1] !== a || r[2] !== c || r[3] !== t ? (l = () => {
|
701
|
-
const f = Ft({
|
702
|
-
rootPaneNode: a,
|
703
|
-
routerPanesStream: c,
|
704
|
-
structureContext: t
|
705
|
-
}).pipe(J(Yt)).subscribe({
|
706
|
-
next: (p) => s(p),
|
707
|
-
error: (p) => n(p)
|
708
|
-
});
|
709
|
-
return () => f.unsubscribe();
|
710
|
-
}, d = [a, c, t], r[1] = a, r[2] = c, r[3] = t, r[4] = l, r[5] = d) : (l = r[4], d = r[5]), A(l, d), i;
|
711
|
-
}
|
712
|
-
function Yt(r) {
|
713
|
-
const e = r.reduce(Zt, []), n = e.length, t = r.map((a) => {
|
714
|
-
const {
|
715
|
-
groupIndex: o,
|
716
|
-
flatIndex: i,
|
717
|
-
siblingIndex: s,
|
718
|
-
routerPaneSibling: c,
|
719
|
-
path: l
|
720
|
-
} = a, d = c.id, u = e[o + 1];
|
721
|
-
return {
|
722
|
-
active: o === n - 2,
|
723
|
-
childItemId: (u == null ? void 0 : u[0].id) ?? null,
|
724
|
-
index: i,
|
725
|
-
itemId: c.id,
|
726
|
-
groupIndex: o,
|
727
|
-
key: `${a.type === "loading" ? "unknown" : a.paneNode.id}-${d}-${s}`,
|
728
|
-
pane: a.type === "loading" ? Z : a.paneNode,
|
729
|
-
params: c.params || {},
|
730
|
-
path: l.join(";"),
|
731
|
-
payload: c.payload,
|
732
|
-
selected: i === r.length - 1,
|
733
|
-
siblingIndex: s
|
734
|
-
};
|
735
|
-
});
|
736
|
-
return {
|
737
|
-
paneDataItems: t,
|
738
|
-
routerPanes: e,
|
739
|
-
resolvedPanes: t.map(Xt)
|
740
|
-
};
|
741
|
-
}
|
742
|
-
function Xt(r) {
|
743
|
-
return r.pane;
|
744
|
-
}
|
745
|
-
function Zt(r, e) {
|
746
|
-
const n = r[e.groupIndex] || [];
|
747
|
-
return n[e.siblingIndex] = e.routerPaneSibling, r[e.groupIndex] = n, r;
|
748
|
-
}
|
749
|
-
async function Qt(r, e, n) {
|
750
|
-
if (e && n) return {
|
751
|
-
id: e,
|
752
|
-
type: n
|
753
|
-
};
|
754
|
-
if (!e && n) return {
|
755
|
-
id: It(),
|
756
|
-
type: n
|
757
|
-
};
|
758
|
-
if (e && !n) {
|
759
|
-
const t = await Oe(r.resolveTypeForDocument(e));
|
760
|
-
return {
|
761
|
-
id: e,
|
762
|
-
type: t
|
763
|
-
};
|
764
|
-
}
|
765
|
-
throw new X({
|
766
|
-
message: "Neither document `id` or `type` was provided when trying to resolve intent."
|
767
|
-
});
|
768
|
-
}
|
769
|
-
const en = {}, tn = Pe(function() {
|
770
|
-
const e = T(7), {
|
771
|
-
navigate: n
|
772
|
-
} = ve(), t = Se(nn), {
|
773
|
-
rootPaneNode: a,
|
774
|
-
structureContext: o
|
775
|
-
} = de(), i = Ye(), [s, c] = Y(null);
|
776
|
-
if (s)
|
777
|
-
throw s;
|
778
|
-
let l, d;
|
779
|
-
return e[0] !== i || e[1] !== t || e[2] !== n || e[3] !== a || e[4] !== o ? (l = () => {
|
780
|
-
if (t) {
|
781
|
-
const {
|
782
|
-
intent: u,
|
783
|
-
params: f,
|
784
|
-
payload: p
|
785
|
-
} = t;
|
786
|
-
let m;
|
787
|
-
return m = !1, async function() {
|
788
|
-
const {
|
789
|
-
id: x,
|
790
|
-
type: y
|
791
|
-
} = await Qt(i, typeof f.id == "string" ? f.id : void 0, typeof f.type == "string" ? f.type : void 0);
|
792
|
-
if (m)
|
793
|
-
return;
|
794
|
-
const w = await Gt({
|
795
|
-
intent: u,
|
796
|
-
params: {
|
797
|
-
...f,
|
798
|
-
id: x,
|
799
|
-
type: y
|
800
|
-
},
|
801
|
-
payload: p,
|
802
|
-
rootPaneNode: a,
|
803
|
-
structureContext: o
|
804
|
-
});
|
805
|
-
m || n({
|
806
|
-
panes: w
|
807
|
-
}, {
|
808
|
-
replace: !0
|
809
|
-
});
|
810
|
-
}().catch(c), () => {
|
811
|
-
m = !0;
|
812
|
-
};
|
813
|
-
}
|
814
|
-
}, d = [i, t, n, a, o], e[0] = i, e[1] = t, e[2] = n, e[3] = a, e[4] = o, e[5] = l, e[6] = d) : (l = e[5], d = e[6]), A(l, d), null;
|
815
|
-
});
|
816
|
-
function nn(r) {
|
817
|
-
const e = typeof r.intent == "string" ? r.intent : void 0;
|
818
|
-
return e ? {
|
819
|
-
intent: e,
|
820
|
-
params: Ie(r.params) ? r.params : en,
|
821
|
-
payload: r.payload
|
822
|
-
} : void 0;
|
823
|
-
}
|
824
|
-
const rn = Ve.span`
|
825
|
-
&:not(:last-child)::after {
|
826
|
-
content: ' ➝ ';
|
827
|
-
opacity: 0.5;
|
828
|
-
}
|
829
|
-
`;
|
830
|
-
function sn(r) {
|
831
|
-
return r.replace(/\(\.\.\.\)\./g, `(...)
|
832
|
-
.`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g, "").replace(/___default\./g, ".").replace(new RegExp(` \\(https?:\\/\\/${window.location.host}`, "g"), " (");
|
833
|
-
}
|
834
|
-
function on(r) {
|
835
|
-
const e = T(37), {
|
836
|
-
error: n
|
837
|
-
} = r;
|
838
|
-
if (!(n instanceof X))
|
839
|
-
throw n;
|
840
|
-
const {
|
841
|
-
cause: t
|
842
|
-
} = n, {
|
843
|
-
t: a
|
844
|
-
} = ce(ue), o = (t == null ? void 0 : t.stack) || n.stack, i = o && !(t instanceof me) && !n.message.includes("Module build failed:");
|
845
|
-
let s;
|
846
|
-
e[0] !== t ? (s = t instanceof me ? t.path : [], e[0] = t, e[1] = s) : s = e[1];
|
847
|
-
const c = s, l = t instanceof me && t.helpId || n.helpId, d = ln;
|
848
|
-
let u;
|
849
|
-
e[2] !== a ? (u = a("structure-error.header.text"), e[2] = a, e[3] = u) : u = e[3];
|
850
|
-
let f;
|
851
|
-
e[4] !== u ? (f = /* @__PURE__ */ g(xt, { as: "h2", children: u }), e[4] = u, e[5] = f) : f = e[5];
|
852
|
-
let p;
|
853
|
-
e[6] !== c || e[7] !== a ? (p = c.length > 0 && /* @__PURE__ */ O(ye, { space: 2, children: [
|
854
|
-
/* @__PURE__ */ g(W, { size: 1, weight: "medium", children: a("structure-error.structure-path.label") }),
|
855
|
-
/* @__PURE__ */ g(Te, { children: c.slice(1).map(an) })
|
856
|
-
] }), e[6] = c, e[7] = a, e[8] = p) : p = e[8];
|
857
|
-
let m;
|
858
|
-
e[9] !== a ? (m = a("structure-error.error.label"), e[9] = a, e[10] = m) : m = e[10];
|
859
|
-
let h;
|
860
|
-
e[11] !== m ? (h = /* @__PURE__ */ g(W, { size: 1, weight: "medium", children: m }), e[11] = m, e[12] = h) : h = e[12];
|
861
|
-
let I;
|
862
|
-
e[13] !== n.message || e[14] !== i || e[15] !== o ? (I = i ? sn(o) : n.message, e[13] = n.message, e[14] = i, e[15] = o, e[16] = I) : I = e[16];
|
863
|
-
let x;
|
864
|
-
e[17] !== I ? (x = /* @__PURE__ */ g(Te, { children: I }), e[17] = I, e[18] = x) : x = e[18];
|
865
|
-
let y;
|
866
|
-
e[19] !== h || e[20] !== x ? (y = /* @__PURE__ */ O(ye, { marginTop: 4, space: 2, children: [
|
867
|
-
h,
|
868
|
-
x
|
869
|
-
] }), e[19] = h, e[20] = x, e[21] = y) : y = e[21];
|
870
|
-
let w;
|
871
|
-
e[22] !== l || e[23] !== a ? (w = l && /* @__PURE__ */ g(ie, { marginTop: 4, children: /* @__PURE__ */ g(W, { children: /* @__PURE__ */ g("a", { href: Be(l), rel: "noopener noreferrer", target: "_blank", children: a("structure-error.docs-link.text") }) }) }), e[22] = l, e[23] = a, e[24] = w) : w = e[24];
|
872
|
-
let b;
|
873
|
-
e[25] !== a ? (b = a("structure-error.reload-button.text"), e[25] = a, e[26] = b) : b = e[26];
|
874
|
-
let $;
|
875
|
-
e[27] !== b ? ($ = /* @__PURE__ */ g(ie, { marginTop: 4, children: /* @__PURE__ */ g(ft, { text: b, icon: wt, tone: "primary", onClick: d }) }), e[27] = b, e[28] = $) : $ = e[28];
|
876
|
-
let P;
|
877
|
-
e[29] !== w || e[30] !== $ || e[31] !== p || e[32] !== y ? (P = /* @__PURE__ */ O(le, { marginTop: 4, padding: 4, radius: 2, overflow: "auto", shadow: 1, tone: "inherit", children: [
|
878
|
-
p,
|
879
|
-
y,
|
880
|
-
w,
|
881
|
-
$
|
882
|
-
] }), e[29] = w, e[30] = $, e[31] = p, e[32] = y, e[33] = P) : P = e[33];
|
883
|
-
let _;
|
884
|
-
return e[34] !== P || e[35] !== f ? (_ = /* @__PURE__ */ g(le, { height: "fill", overflow: "auto", padding: 4, sizing: "border", tone: "critical", children: /* @__PURE__ */ O(We, { children: [
|
885
|
-
f,
|
886
|
-
P
|
887
|
-
] }) }), e[34] = P, e[35] = f, e[36] = _) : _ = e[36], _;
|
888
|
-
}
|
889
|
-
function an(r, e) {
|
890
|
-
return /* @__PURE__ */ g(rn, { children: r }, `${r}-${e}`);
|
891
|
-
}
|
892
|
-
function ln() {
|
893
|
-
window.location.reload();
|
894
|
-
}
|
895
|
-
function cn(r) {
|
896
|
-
const e = T(14), {
|
897
|
-
isSelected: n,
|
898
|
-
pane: t,
|
899
|
-
paneKey: a
|
900
|
-
} = r;
|
901
|
-
let o;
|
902
|
-
e[0] !== t ? (o = Ie(t) && t.type || null, e[0] = t, e[1] = o) : o = e[1];
|
903
|
-
const i = o, {
|
904
|
-
t: s
|
905
|
-
} = ce(ue);
|
906
|
-
let c;
|
907
|
-
e[2] !== s ? (c = s("panes.unknown-pane-type.title"), e[2] = s, e[3] = c) : c = e[3];
|
908
|
-
let l;
|
909
|
-
e[4] !== c ? (l = /* @__PURE__ */ g(ot, { title: c }), e[4] = c, e[5] = l) : l = e[5];
|
910
|
-
let d;
|
911
|
-
e[6] !== s || e[7] !== i ? (d = /* @__PURE__ */ g(at, { children: /* @__PURE__ */ g(ie, { padding: 4, children: typeof i == "string" ? /* @__PURE__ */ g(W, { as: "p", muted: !0, children: /* @__PURE__ */ g(Re, { t: s, i18nKey: "panes.unknown-pane-type.unknown-type.text", values: {
|
912
|
-
type: i
|
913
|
-
} }) }) : /* @__PURE__ */ g(W, { as: "p", muted: !0, children: /* @__PURE__ */ g(Re, { t: s, i18nKey: "panes.unknown-pane-type.missing-type.text" }) }) }) }), e[6] = s, e[7] = i, e[8] = d) : d = e[8];
|
914
|
-
let u;
|
915
|
-
return e[9] !== n || e[10] !== a || e[11] !== l || e[12] !== d ? (u = /* @__PURE__ */ O(it, { id: a, selected: n, children: [
|
916
|
-
l,
|
917
|
-
d
|
918
|
-
] }), e[9] = n, e[10] = a, e[11] = l, e[12] = d, e[13] = u) : u = e[13], u;
|
919
|
-
}
|
920
|
-
const dn = {
|
921
|
-
component: se(() => import("./index-9PJcXUTv.mjs")),
|
922
|
-
document: se(() => import("./pane-Dhx8FvsK.mjs")),
|
923
|
-
documentList: se(() => import("./pane-C4tskUPg.mjs")),
|
924
|
-
list: se(() => import("./index-Sp9w8lMg.mjs"))
|
925
|
-
}, un = Pe(function(e) {
|
926
|
-
const n = T(23), {
|
927
|
-
active: t,
|
928
|
-
childItemId: a,
|
929
|
-
groupIndex: o,
|
930
|
-
index: i,
|
931
|
-
itemId: s,
|
932
|
-
pane: c,
|
933
|
-
paneKey: l,
|
934
|
-
params: d,
|
935
|
-
payload: u,
|
936
|
-
path: f,
|
937
|
-
selected: p,
|
938
|
-
siblingIndex: m
|
939
|
-
} = e, h = dn[c.type] || cn;
|
940
|
-
let I;
|
941
|
-
n[0] !== l || n[1] !== f || n[2] !== p ? (I = /* @__PURE__ */ g(xe, { paneKey: l, path: f, selected: p }), n[0] = l, n[1] = f, n[2] = p, n[3] = I) : I = n[3];
|
942
|
-
const x = a || "";
|
943
|
-
let y;
|
944
|
-
n[4] !== h || n[5] !== t || n[6] !== i || n[7] !== s || n[8] !== c || n[9] !== l || n[10] !== p || n[11] !== x ? (y = /* @__PURE__ */ g(h, { childItemId: x, index: i, itemId: s, isActive: t, isSelected: p, paneKey: l, pane: c }), n[4] = h, n[5] = t, n[6] = i, n[7] = s, n[8] = c, n[9] = l, n[10] = p, n[11] = x, n[12] = y) : y = n[12];
|
945
|
-
let w;
|
946
|
-
n[13] !== I || n[14] !== y ? (w = /* @__PURE__ */ g(qe, { fallback: I, children: y }), n[13] = I, n[14] = y, n[15] = w) : w = n[15];
|
947
|
-
let b;
|
948
|
-
return n[16] !== o || n[17] !== i || n[18] !== d || n[19] !== u || n[20] !== m || n[21] !== w ? (b = /* @__PURE__ */ g(Mt, { flatIndex: i, index: o, params: d, payload: u, siblingIndex: m, children: w }), n[16] = o, n[17] = i, n[18] = d, n[19] = u, n[20] = m, n[21] = w, n[22] = b) : b = n[22], b;
|
949
|
-
}, ({
|
950
|
-
params: r = {},
|
951
|
-
payload: e = null,
|
952
|
-
...n
|
953
|
-
}, {
|
954
|
-
params: t = {},
|
955
|
-
payload: a = null,
|
956
|
-
...o
|
957
|
-
}) => {
|
958
|
-
if (!Q.isEqual(r, t) || !Q.isEqual(e, a)) return !1;
|
959
|
-
const i = /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(o)]);
|
960
|
-
for (const s of i)
|
961
|
-
if (n[s] !== o[s]) return !1;
|
962
|
-
return !0;
|
963
|
-
});
|
964
|
-
function pn() {
|
965
|
-
const r = T(17), {
|
966
|
-
t: e
|
967
|
-
} = ce(ue);
|
968
|
-
let n;
|
969
|
-
r[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ g(ie, { children: /* @__PURE__ */ g(W, { size: 1, children: /* @__PURE__ */ g(bt, {}) }) }), r[0] = n) : n = r[0];
|
970
|
-
let t;
|
971
|
-
r[1] !== e ? (t = e("no-document-types-screen.title"), r[1] = e, r[2] = t) : t = r[2];
|
972
|
-
let a;
|
973
|
-
r[3] !== t ? (a = /* @__PURE__ */ g(W, { as: "h1", size: 1, weight: "medium", children: t }), r[3] = t, r[4] = a) : a = r[4];
|
974
|
-
let o;
|
975
|
-
r[5] !== e ? (o = e("no-document-types-screen.subtitle"), r[5] = e, r[6] = o) : o = r[6];
|
976
|
-
let i;
|
977
|
-
r[7] !== o ? (i = /* @__PURE__ */ g(W, { as: "p", muted: !0, size: 1, children: o }), r[7] = o, r[8] = i) : i = r[8];
|
978
|
-
let s;
|
979
|
-
r[9] !== e ? (s = e("no-document-types-screen.link-text"), r[9] = e, r[10] = s) : s = r[10];
|
980
|
-
let c;
|
981
|
-
r[11] !== s ? (c = /* @__PURE__ */ g(W, { as: "p", muted: !0, size: 1, children: /* @__PURE__ */ g("a", { href: "https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio", target: "_blank", rel: "noreferrer", children: s }) }), r[11] = s, r[12] = c) : c = r[12];
|
982
|
-
let l;
|
983
|
-
return r[13] !== a || r[14] !== i || r[15] !== c ? (l = /* @__PURE__ */ g(le, { height: "fill", children: /* @__PURE__ */ g(Ce, { align: "center", height: "fill", justify: "center", padding: 4, sizing: "border", children: /* @__PURE__ */ g(We, { width: 0, children: /* @__PURE__ */ g(le, { padding: 4, radius: 2, shadow: 1, tone: "caution", children: /* @__PURE__ */ O(Ce, { children: [
|
984
|
-
n,
|
985
|
-
/* @__PURE__ */ O(ye, { flex: 1, marginLeft: 3, space: 3, children: [
|
986
|
-
a,
|
987
|
-
i,
|
988
|
-
c
|
989
|
-
] })
|
990
|
-
] }) }) }) }) }), r[13] = a, r[14] = i, r[15] = c, r[16] = l) : l = r[16], l;
|
991
|
-
}
|
992
|
-
const fn = (r) => {
|
993
|
-
const e = T(7), {
|
994
|
-
documentId: n,
|
995
|
-
documentType: t
|
996
|
-
} = r, {
|
997
|
-
selectedReleaseId: a
|
998
|
-
} = Xe(), o = Ze(n, t, "default", a), i = Ne(), {
|
999
|
-
t: s
|
1000
|
-
} = ce(ue), c = !(o != null && o.published) && !(o != null && o.draft), l = (o == null ? void 0 : o.version) || (o == null ? void 0 : o.draft) || (o == null ? void 0 : o.published), d = i.get(t), {
|
1001
|
-
value: u,
|
1002
|
-
isLoading: f
|
1003
|
-
} = Qe({
|
1004
|
-
enabled: !0,
|
1005
|
-
schemaType: d,
|
1006
|
-
value: l
|
1007
|
-
}), p = c ? s("browser-document-title.new-document", {
|
1008
|
-
schemaType: (d == null ? void 0 : d.title) || (d == null ? void 0 : d.name)
|
1009
|
-
}) : (u == null ? void 0 : u.title) || s("browser-document-title.untitled-document"), m = o.ready && !f, h = Fe(p);
|
1010
|
-
let I;
|
1011
|
-
e[0] !== h || e[1] !== m ? (I = () => {
|
1012
|
-
m && (document.title = h);
|
1013
|
-
}, e[0] = h, e[1] = m, e[2] = I) : I = e[2];
|
1014
|
-
let x;
|
1015
|
-
return e[3] !== p || e[4] !== h || e[5] !== m ? (x = [p, m, h], e[3] = p, e[4] = h, e[5] = m, e[6] = x) : x = e[6], A(I, x), null;
|
1016
|
-
}, he = (r) => {
|
1017
|
-
const e = T(5), {
|
1018
|
-
title: n
|
1019
|
-
} = r, t = Fe(n);
|
1020
|
-
let a;
|
1021
|
-
e[0] !== t ? (a = () => {
|
1022
|
-
document.title = t;
|
1023
|
-
}, e[0] = t, e[1] = a) : a = e[1];
|
1024
|
-
let o;
|
1025
|
-
return e[2] !== t || e[3] !== n ? (o = [t, n], e[2] = t, e[3] = n, e[4] = o) : o = e[4], A(a, o), null;
|
1026
|
-
}, mn = (r) => {
|
1027
|
-
const e = T(8), {
|
1028
|
-
resolvedPanes: n
|
1029
|
-
} = r;
|
1030
|
-
if (!(n != null && n.length))
|
1031
|
-
return null;
|
1032
|
-
const t = n[n.length - 1];
|
1033
|
-
if (gn(t)) {
|
1034
|
-
let i;
|
1035
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ g(he, {}), e[0] = i) : i = e[0], i;
|
1036
|
-
}
|
1037
|
-
if (yn(t)) {
|
1038
|
-
if (t != null && t.title) {
|
1039
|
-
let s;
|
1040
|
-
return e[1] !== t.title ? (s = /* @__PURE__ */ g(he, { title: t.title }), e[1] = t.title, e[2] = s) : s = e[2], s;
|
1041
|
-
}
|
1042
|
-
let i;
|
1043
|
-
return e[3] !== t.options.id || e[4] !== t.options.type ? (i = /* @__PURE__ */ g(fn, { documentId: t.options.id, documentType: t.options.type }), e[3] = t.options.id, e[4] = t.options.type, e[5] = i) : i = e[5], i;
|
1044
|
-
}
|
1045
|
-
const a = t == null ? void 0 : t.title;
|
1046
|
-
let o;
|
1047
|
-
return e[6] !== a ? (o = /* @__PURE__ */ g(he, { title: a }), e[6] = a, e[7] = o) : o = e[7], o;
|
1048
|
-
};
|
1049
|
-
function Fe(r) {
|
1050
|
-
const e = T(3), n = de().structureContext.title;
|
1051
|
-
let t;
|
1052
|
-
return e[0] !== r || e[1] !== n ? (t = [r, n].filter(hn), e[0] = r, e[1] = n, e[2] = t) : t = e[2], t.join(" | ");
|
1053
|
-
}
|
1054
|
-
function hn(r) {
|
1055
|
-
return r;
|
1056
|
-
}
|
1057
|
-
function yn(r) {
|
1058
|
-
return r !== Z && r.type === "document";
|
1059
|
-
}
|
1060
|
-
function gn(r) {
|
1061
|
-
return r === Z;
|
1062
|
-
}
|
1063
|
-
const Pn = Ve(lt)`
|
1064
|
-
min-height: 100%;
|
1065
|
-
min-width: 320px;
|
1066
|
-
`, In = mt("mod+s"), xn = Pe(function(e) {
|
1067
|
-
var K;
|
1068
|
-
const n = T(31), {
|
1069
|
-
onPaneChange: t
|
1070
|
-
} = e, {
|
1071
|
-
push: a
|
1072
|
-
} = vt(), o = Ne(), {
|
1073
|
-
layoutCollapsed: i,
|
1074
|
-
setLayoutCollapsed: s
|
1075
|
-
} = de(), {
|
1076
|
-
paneDataItems: c,
|
1077
|
-
resolvedPanes: l
|
1078
|
-
} = Jt(), d = Se(wn), {
|
1079
|
-
sanity: u
|
1080
|
-
} = St(), {
|
1081
|
-
media: f
|
1082
|
-
} = u, [p, m] = Y(null);
|
1083
|
-
let h;
|
1084
|
-
n[0] !== s ? (h = () => s(!0), n[0] = s, n[1] = h) : h = n[1];
|
1085
|
-
const I = h;
|
1086
|
-
let x;
|
1087
|
-
n[2] !== s ? (x = () => s(!1), n[2] = s, n[3] = x) : x = n[3];
|
1088
|
-
const y = x;
|
1089
|
-
let w, b;
|
1090
|
-
n[4] !== t || n[5] !== l ? (w = () => {
|
1091
|
-
l.length && t(l);
|
1092
|
-
}, b = [t, l], n[4] = t, n[5] = l, n[6] = w, n[7] = b) : (w = n[6], b = n[7]), A(w, b);
|
1093
|
-
let $, P;
|
1094
|
-
if (n[8] !== a ? ($ = () => {
|
1095
|
-
const N = (B) => {
|
1096
|
-
In(B) && (B.preventDefault(), a({
|
1097
|
-
closable: !0,
|
1098
|
-
id: "auto-save-message",
|
1099
|
-
status: "info",
|
1100
|
-
title: "Your work is automatically saved!",
|
1101
|
-
duration: 4e3
|
1102
|
-
}));
|
1103
|
-
};
|
1104
|
-
return window.addEventListener("keydown", N), () => window.removeEventListener("keydown", N);
|
1105
|
-
}, P = [a], n[8] = a, n[9] = $, n[10] = P) : ($ = n[9], P = n[10]), A($, P), !((K = o._original) == null ? void 0 : K.types.some(et))) {
|
1106
|
-
let N;
|
1107
|
-
return n[11] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ g(pn, {}), n[11] = N) : N = n[11], N;
|
1108
|
-
}
|
1109
|
-
const R = p || null, D = i ? void 0 : "fill", z = f[1];
|
1110
|
-
let C;
|
1111
|
-
n[12] !== c ? (C = c.map(bn), n[12] = c, n[13] = C) : C = n[13];
|
1112
|
-
let k;
|
1113
|
-
n[14] !== d || n[15] !== c.length ? (k = c.length <= 1 && d && /* @__PURE__ */ g(xe, { paneKey: "intent-resolver" }), n[14] = d, n[15] = c.length, n[16] = k) : k = n[16];
|
1114
|
-
let E;
|
1115
|
-
n[17] !== I || n[18] !== y || n[19] !== z || n[20] !== C || n[21] !== k || n[22] !== D ? (E = /* @__PURE__ */ O(Pn, { flex: 1, height: D, minWidth: z, onCollapse: I, onExpand: y, children: [
|
1116
|
-
C,
|
1117
|
-
k
|
1118
|
-
] }), n[17] = I, n[18] = y, n[19] = z, n[20] = C, n[21] = k, n[22] = D, n[23] = E) : E = n[23];
|
1119
|
-
let M;
|
1120
|
-
n[24] !== l ? (M = /* @__PURE__ */ g(mn, { resolvedPanes: l }), n[24] = l, n[25] = M) : M = n[25];
|
1121
|
-
let G;
|
1122
|
-
n[26] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ g("div", { "data-portal": "", ref: m }), n[26] = G) : G = n[26];
|
1123
|
-
let V;
|
1124
|
-
return n[27] !== E || n[28] !== M || n[29] !== R ? (V = /* @__PURE__ */ O($t, { element: R, children: [
|
1125
|
-
E,
|
1126
|
-
M,
|
1127
|
-
G
|
1128
|
-
] }), n[27] = E, n[28] = M, n[29] = R, n[30] = V) : V = n[30], V;
|
1129
|
-
});
|
1130
|
-
function wn(r) {
|
1131
|
-
return typeof r.intent == "string";
|
1132
|
-
}
|
1133
|
-
function bn(r) {
|
1134
|
-
const {
|
1135
|
-
active: e,
|
1136
|
-
childItemId: n,
|
1137
|
-
groupIndex: t,
|
1138
|
-
itemId: a,
|
1139
|
-
key: o,
|
1140
|
-
pane: i,
|
1141
|
-
index: s,
|
1142
|
-
params: c,
|
1143
|
-
path: l,
|
1144
|
-
payload: d,
|
1145
|
-
siblingIndex: u,
|
1146
|
-
selected: f
|
1147
|
-
} = r;
|
1148
|
-
return /* @__PURE__ */ g(Je, { children: i === Z ? /* @__PURE__ */ g(xe, { paneKey: o, path: l, selected: f }) : /* @__PURE__ */ g(un, { active: e, groupIndex: t, index: s, pane: i, childItemId: n, itemId: a, paneKey: o, params: c, payload: d, path: l, selected: f, siblingIndex: u }) }, `${i === Z ? "loading" : i.type}-${s}`);
|
1149
|
-
}
|
1150
|
-
function Gn(r) {
|
1151
|
-
const e = T(14), {
|
1152
|
-
tool: n
|
1153
|
-
} = r, {
|
1154
|
-
options: t
|
1155
|
-
} = n, {
|
1156
|
-
unstable_sources: a
|
1157
|
-
} = tt(), [o] = a;
|
1158
|
-
let i;
|
1159
|
-
e[0] !== t ? (i = t || {}, e[0] = t, e[1] = i) : i = e[1];
|
1160
|
-
const {
|
1161
|
-
source: s,
|
1162
|
-
defaultDocumentNode: c,
|
1163
|
-
structure: l
|
1164
|
-
} = i;
|
1165
|
-
let d;
|
1166
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (d = [], e[2] = d) : d = e[2], A(vn, d);
|
1167
|
-
let u;
|
1168
|
-
e[3] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
1169
|
-
error: null
|
1170
|
-
}, e[3] = u) : u = e[3];
|
1171
|
-
const [f, p] = Y(u), {
|
1172
|
-
error: m
|
1173
|
-
} = f;
|
1174
|
-
if (m) {
|
1175
|
-
let b;
|
1176
|
-
return e[4] !== m ? (b = /* @__PURE__ */ g(on, { error: m }), e[4] = m, e[5] = b) : b = e[5], b;
|
1177
|
-
}
|
1178
|
-
const h = s || o.name;
|
1179
|
-
let I, x;
|
1180
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ g(xn, { onPaneChange: we }), x = /* @__PURE__ */ g(tn, {}), e[6] = I, e[7] = x) : (I = e[6], x = e[7]);
|
1181
|
-
let y;
|
1182
|
-
e[8] !== c || e[9] !== l ? (y = /* @__PURE__ */ O(ct, { defaultDocumentNode: c, structure: l, children: [
|
1183
|
-
I,
|
1184
|
-
x
|
1185
|
-
] }), e[8] = c, e[9] = l, e[10] = y) : y = e[10];
|
1186
|
-
let w;
|
1187
|
-
return e[11] !== h || e[12] !== y ? (w = /* @__PURE__ */ g(ht, { onCatch: p, children: /* @__PURE__ */ g(nt, { name: h, children: y }) }), e[11] = h, e[12] = y, e[13] = w) : w = e[13], w;
|
1188
|
-
}
|
1189
|
-
function vn() {
|
1190
|
-
return we([]), Sn;
|
1191
|
-
}
|
1192
|
-
function Sn() {
|
1193
|
-
return we([]);
|
1194
|
-
}
|
1195
|
-
export {
|
1196
|
-
Gn as default
|
1197
|
-
};
|
1198
|
-
//# sourceMappingURL=index-DBPVDKJN.mjs.map
|