@chaibuilder/pages 0.15.24 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2AITGKQY-wLnL_T-W.cjs → 2AITGKQY-CD9A6oc6.cjs} +1 -1
- package/dist/{2AITGKQY-B6ojx8vV.js → 2AITGKQY-Z1XcJ6Q7.js} +2 -2
- package/dist/{NCMVHL6D-DGH2CRR6.cjs → NCMVHL6D-CkpM-3og.cjs} +1 -1
- package/dist/{NCMVHL6D-vsNnIwmV.js → NCMVHL6D-DoK0XoIo.js} +4 -4
- package/dist/{ZDWCUMSJ-3BnFdOH2.cjs → ZDWCUMSJ-D32swpGV.cjs} +1 -1
- package/dist/{ZDWCUMSJ-CoYx1TP5.js → ZDWCUMSJ-hGXNxbOK.js} +1 -1
- package/dist/{add-new-language-page-d0-cAxlt.js → add-new-language-page-BZPoqdX-.js} +2 -2
- package/dist/{add-new-language-page-VDZSKD95.cjs → add-new-language-page-D65TpIwK.cjs} +1 -1
- package/dist/{add-new-page-D4IkZL8h.cjs → add-new-page-CQ0aj4RJ.cjs} +1 -1
- package/dist/{add-new-page-Bcoxw6U5.js → add-new-page-DK25Y0zS.js} +1 -1
- package/dist/ai-panel-content-BSGJqnTM.cjs +1 -0
- package/dist/ai-panel-content-DYRZnMgV.js +52 -0
- package/dist/ai-panel-default-lang-BOZrL5Xe.cjs +1 -0
- package/dist/ai-panel-default-lang-DZUqC79y.js +173 -0
- package/dist/ai-panel-message-bubble-Bl-aUeU4.cjs +1 -0
- package/dist/ai-panel-message-bubble-DPAaAMAZ.js +38 -0
- package/dist/ai-panel-other-lang-CCyiE6ha.js +145 -0
- package/dist/ai-panel-other-lang-CNtlT5dM.cjs +1 -0
- package/dist/ai-panel-quick-prompts-DeS7L1f0.cjs +1 -0
- package/dist/ai-panel-quick-prompts-Ds0Ndz7g.js +46 -0
- package/dist/ai-prompt-input-Ch_PLEPN.js +133 -0
- package/dist/ai-prompt-input-Zg6lN1Lo.cjs +1 -0
- package/dist/ai-translation-prompt-BUFjo_om.cjs +1 -0
- package/dist/ai-translation-prompt-BiJ5B_an.js +28 -0
- package/dist/{delete-page-KS6p6b8f.js → delete-page-B95T2Prd.js} +1 -1
- package/dist/{delete-page-DeKAD4Ld.cjs → delete-page-BSop1jNg.cjs} +1 -1
- package/dist/{digital-asset-manager-Dfe9SS09.js → digital-asset-manager-BQNSwfKs.js} +1 -1
- package/dist/{digital-asset-manager-C9gYL2SF.cjs → digital-asset-manager-Bn58WzM6.cjs} +1 -1
- package/dist/{duplicate-page-CKr-HNs-.cjs → duplicate-page-BLxkSiug.cjs} +1 -1
- package/dist/{duplicate-page-vCgYnw4H.js → duplicate-page-CrzzObAj.js} +9 -9
- package/dist/{dynamic-page-selector-A4fqWqZZ.js → dynamic-page-selector-D6wQnNfH.js} +1 -1
- package/dist/{dynamic-page-selector-C7w3TOdK.cjs → dynamic-page-selector-D8UZ63LW.cjs} +1 -1
- package/dist/index-W0r4o5Ro.cjs +5 -0
- package/dist/{index-NSqs69Op.js → index-yhKyIbgs.js} +1035 -1031
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +7 -7
- package/dist/{json-diff-viewer-7TGemUrn.js → json-diff-viewer-ISJS7lHK.js} +1 -1
- package/dist/{json-diff-viewer-nLLX6kJK.cjs → json-diff-viewer-ZeJ3Rp2y.cjs} +1 -1
- package/dist/{lang-panel-C6KxjKn_.js → lang-panel-Bj11IL7k.js} +33 -33
- package/dist/{lang-panel-dc9uBMtE.cjs → lang-panel-DqN_J3vz.cjs} +1 -1
- package/dist/{mark-as-template-CJ9SiEBl.cjs → mark-as-template-CcwAAdrd.cjs} +1 -1
- package/dist/{mark-as-template-CRUOQ_FZ.js → mark-as-template-CmCCMaQg.js} +1 -1
- package/dist/{no-language-page-content--8a37nsW.cjs → no-language-page-content-BXm1k1Aa.cjs} +1 -1
- package/dist/{no-language-page-content-ByHFQjkV.js → no-language-page-content-Cme-zo4R.js} +1 -1
- package/dist/{page-creator-CzUQicdh.cjs → page-creator-ByhjXyHP.cjs} +1 -1
- package/dist/{page-creator-J_CNgdj5.js → page-creator-Zbv4d4H8.js} +2 -2
- package/dist/{page-lock-request-BE9-Oego.cjs → page-lock-request-Cln-EE6Z.cjs} +1 -1
- package/dist/{page-lock-request-CD93n5pq.js → page-lock-request-DDQJb8IA.js} +10 -10
- package/dist/{page-locked-by-dialog-1Lm9dcT6.cjs → page-locked-by-dialog-BIXYITEu.cjs} +1 -1
- package/dist/{page-locked-by-dialog-noDLCQWF.js → page-locked-by-dialog-Csn56a3n.js} +1 -1
- package/dist/{page-manager-new-BoTBCqZF.cjs → page-manager-new-BJaTBpih.cjs} +1 -1
- package/dist/{page-manager-new-D-U4B9y9.js → page-manager-new-BrRxZDfT.js} +67 -67
- package/dist/{page-manager-search-and-filter-BJmETYq-.cjs → page-manager-search-and-filter-Bk3PUjha.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-h-YzJVcH.js → page-manager-search-and-filter-_Hvk3bU3.js} +1 -1
- package/dist/{page-revisions-content-C7DXjFls.js → page-revisions-content-B6fRCBX_.js} +10 -10
- package/dist/{page-revisions-content-BNBb2qYh.cjs → page-revisions-content-C_Ha3tFu.cjs} +1 -1
- package/dist/prompt-helper-Csgu8Rfb.js +187 -0
- package/dist/prompt-helper-DgI1lgGV.cjs +51 -0
- package/dist/{publish-pages-content-DAKh_sSW.js → publish-pages-content-CFEIxKQD.js} +2 -2
- package/dist/{publish-pages-content-DsOVOiBD.cjs → publish-pages-content-DQDNxwHD.cjs} +1 -1
- package/dist/{save-to-lib-BR1Qhw3Q.cjs → save-to-lib-Bl22umTa.cjs} +1 -1
- package/dist/{save-to-lib-BPR_--qN.js → save-to-lib-YyYkF6c6.js} +1 -1
- package/dist/{seo-panel-C7XC-XRg.js → seo-panel-BZlMea1L.js} +1 -1
- package/dist/{seo-panel-CUqtdGoF.cjs → seo-panel-BhxikAkG.cjs} +1 -1
- package/dist/server.cjs +241 -1
- package/dist/server.d.ts +50 -6
- package/dist/server.js +10327 -290
- package/dist/{shared-json-ld-CDffP4G3.cjs → shared-json-ld-BfkH76U3.cjs} +1 -1
- package/dist/{shared-json-ld-0JD8sokD.js → shared-json-ld-E4Ckwlbr.js} +41 -41
- package/dist/{slug-input-BYH90lv1.cjs → slug-input--VmQG0S1.cjs} +1 -1
- package/dist/{slug-input-CvIDihGn.js → slug-input-CKKkqGj4.js} +1 -1
- package/dist/{theme-panel-footer-DPpLzCDu.js → theme-panel-footer-2ERfMsET.js} +1 -1
- package/dist/{theme-panel-footer-CUSfduTK.cjs → theme-panel-footer-CagxEZEO.cjs} +1 -1
- package/dist/{unmark-as-template-CjqRfFDL.js → unmark-as-template-BJ5CTNAe.js} +1 -1
- package/dist/{unmark-as-template-Bxw4t_Xi.cjs → unmark-as-template-CeWpo9wD.cjs} +1 -1
- package/dist/{unpublish-page-BjiB3d7l.cjs → unpublish-page-DmZSVxFj.cjs} +1 -1
- package/dist/{unpublish-page-CKKU1St1.js → unpublish-page-DvOWVBIf.js} +1 -1
- package/dist/{web-preview-D0OpieXz.js → web-preview-DTkIggV7.js} +1 -1
- package/dist/{web-preview-CNMYCWxW.cjs → web-preview-DlSKpPUZ.cjs} +1 -1
- package/package.json +3 -3
- package/dist/ai-panel-content-Cn3SA_Sr.cjs +0 -46
- package/dist/ai-panel-content-qmOJKjkE.js +0 -524
- package/dist/index-LfuCMBwI.cjs +0 -5
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Pr = Object.defineProperty;
|
|
2
2
|
var Bn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { get as V, reverse as
|
|
5
|
+
var vr = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var ve = (e, t, n) => vr(e, typeof t != "symbol" ? t + "" : t, n), Mn = (e, t, n) => t.has(e) || Bn("Cannot " + n);
|
|
7
|
+
var _ = (e, t, n) => (Mn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? Bn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), O = (e, t, n, s) => (Mn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
|
|
8
|
+
import { jsx as l, jsxs as m, Fragment as ge } from "react/jsx-runtime";
|
|
9
|
+
import { get as V, reverse as wr, sortBy as br, each as Ir, find as re, isEmpty as he, groupBy as Cr, minBy as Nr, noop as ds, keyBy as Lr, map as Bt, compact as fs, upperCase as Fn, filter as hs, includes as kr, has as jt, pick as vn, keys as Or, pickBy as Dr, endsWith as Gr, isArray as xr, startCase as Rr, isFunction as Ur, cloneDeep as Br, isEqual as Mr } from "lodash-es";
|
|
10
10
|
import * as z from "react";
|
|
11
|
-
import
|
|
11
|
+
import Fr, { useMemo as Q, useCallback as j, useState as K, useEffect as se, useRef as at, lazy as F, Suspense as H, createContext as qr, Component as Kr, createElement as qn } from "react";
|
|
12
12
|
import { atom as Ee, useAtom as te } from "jotai";
|
|
13
|
-
import { useQuery as ae, useQueryClient as W, useMutation as X, onlineManager as gs, QueryClient as
|
|
14
|
-
import { useLanguages as Se, useSavePage as Ge, useTranslation as
|
|
13
|
+
import { useQuery as ae, useQueryClient as W, useMutation as X, onlineManager as gs, QueryClient as Vr, QueryClientProvider as Hr } from "@tanstack/react-query";
|
|
14
|
+
import { useLanguages as Se, useSavePage as Ge, useTranslation as _e, mergeClasses as Mt, usePermissions as ms, PERMISSIONS as Qr, useRightPanel as $r, useChaiFeatureFlag as jr, useIsPageLoaded as zr, registerChaiLibrary as Wr, getBlocksFromHTML as Yr, registerChaiSidebarPanel as Ct, registerChaiFeatureFlag as tn, registerChaiTopBar as Jr, registerChaiMediaManager as Xr, registerChaiSaveToLibrary as Zr, ChaiBuilderEditor as ea } from "@chaibuilder/sdk";
|
|
15
15
|
import { toast as R } from "sonner";
|
|
16
|
-
import { Tooltip as zt, TooltipTrigger as Wt, Button as
|
|
17
|
-
import { LogsIcon as Ia, Folder as Ca, Languages as Vn, ChevronDown as hn, Star as Na, Plus as
|
|
16
|
+
import { Tooltip as zt, TooltipTrigger as Wt, Button as U, TooltipContent as Yt, Sheet as Es, SheetContent as ps, SheetHeader as ta, SheetTitle as na, SheetDescription as sa, DropdownMenu as wn, DropdownMenuTrigger as bn, DropdownMenuContent as In, DropdownMenuItem as ue, Separator as ra, TooltipProvider as ys, SheetTrigger as aa, Skeleton as Nt, Dialog as As, HoverCard as ia, HoverCardTrigger as oa, HoverCardContent as la, AlertDialog as ca, AlertDialogTrigger as ua, AlertDialogContent as da, AlertDialogHeader as fa, AlertDialogTitle as ha, AlertDialogDescription as ga, AlertDialogFooter as ma, AlertDialogCancel as Ea, AlertDialogAction as pa, Popover as ya, PopoverTrigger as Aa, DialogContent as Ta, DialogHeader as Sa, DialogTitle as _a, Tabs as Pa, TabsList as va, TabsTrigger as nn, TabsContent as sn, Textarea as Kn, Alert as wa, AlertDescription as ba } from "@chaibuilder/sdk/ui";
|
|
17
|
+
import { LogsIcon as Ia, Folder as Ca, Languages as Vn, ChevronDown as hn, Star as Na, Plus as Ts, History as La, Play as ka, Palette as Oa, CheckCircle as Da, Loader as Ft, Save as Ga, Send as Hn, Rocket as Qn, CopyPlusIcon as xa, Pencil as Ra, Power as Ua, Trash as Ba, SquareLibrary as $n, Hash as Ma, File as Fa, MoreHorizontal as jn, ExternalLink as qa, LanguagesIcon as Ka, User as Va, X as zn, Trash2 as Ha, ImageIcon as Wn, Code as Qa, Eye as $a, Share2 as ja, FileCode2 as za, AlertTriangle as Wa } from "lucide-react";
|
|
18
18
|
import { useRegisteredChaiBlocks as Ya, getDefaultBlockProps as Ja } from "@chaibuilder/runtime";
|
|
19
19
|
import { loadWebBlocks as Xa } from "@chaibuilder/sdk/web-blocks";
|
|
20
20
|
const E = {
|
|
@@ -84,7 +84,7 @@ const E = {
|
|
|
84
84
|
}, Za = Ee({}), Cn = () => te(Za), oe = (e, t) => {
|
|
85
85
|
const [n] = Cn();
|
|
86
86
|
return Q(() => V(n, e, t), [n, e, t]);
|
|
87
|
-
},
|
|
87
|
+
}, L = () => oe("apiUrl", "/chai/api"), Ss = () => oe("usersApiUrl", "/chai/users"), Oc = () => oe("assetsApiUrl", "/chai/assets"), ei = () => oe("websocket", null), _s = async (e, t, n = {}) => await fetch(e, {
|
|
88
88
|
method: "POST",
|
|
89
89
|
headers: {
|
|
90
90
|
"Content-Type": "application/json",
|
|
@@ -95,48 +95,51 @@ const E = {
|
|
|
95
95
|
if (import.meta.vitest) {
|
|
96
96
|
const { it: e, expect: t } = import.meta.vitest;
|
|
97
97
|
e("should fetch API", async () => {
|
|
98
|
-
const n = await
|
|
98
|
+
const n = await _s("/v1/api/chai", {
|
|
99
99
|
action: "test"
|
|
100
100
|
});
|
|
101
101
|
t(n).toBeDefined();
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
const Dc = () => {
|
|
105
|
-
const e =
|
|
105
|
+
const e = C(), t = L();
|
|
106
106
|
return j(
|
|
107
107
|
async ({
|
|
108
108
|
body: n,
|
|
109
109
|
headers: s = {},
|
|
110
|
-
url: r = t
|
|
111
|
-
|
|
110
|
+
url: r = t,
|
|
111
|
+
streamResponse: a = !1
|
|
112
|
+
}) => e(r, n, s, a),
|
|
112
113
|
[e]
|
|
113
114
|
);
|
|
114
|
-
},
|
|
115
|
-
const e = oe("onLogout"), t = oe("getAccessToken"), n =
|
|
115
|
+
}, C = () => {
|
|
116
|
+
const e = oe("onLogout"), t = oe("getAccessToken"), n = L();
|
|
116
117
|
return j(
|
|
117
|
-
async (s = n, r, a = {}) => {
|
|
118
|
-
const
|
|
119
|
-
if (!
|
|
118
|
+
async (s = n, r, a = {}, i = !1) => {
|
|
119
|
+
const o = await t();
|
|
120
|
+
if (!o)
|
|
120
121
|
return console.error("No auth token found"), null;
|
|
121
122
|
try {
|
|
122
|
-
const
|
|
123
|
+
const c = V(r, "action", "").toLowerCase(), u = await _s(s + (c ? `?action=${c}` : ""), r, {
|
|
123
124
|
...a,
|
|
124
|
-
Authorization: `Bearer ${
|
|
125
|
+
Authorization: `Bearer ${o}`
|
|
125
126
|
});
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
if (i)
|
|
128
|
+
return u;
|
|
129
|
+
if (u.status === 401)
|
|
130
|
+
return console.log("401 Response", u), e(), window.location.reload(), null;
|
|
131
|
+
if (!u.ok) {
|
|
132
|
+
const d = await u.json();
|
|
133
|
+
throw console.error(`API Error (${u.status}):`, d), {
|
|
134
|
+
status: u.status,
|
|
135
|
+
statusText: u.statusText,
|
|
136
|
+
...d,
|
|
137
|
+
message: d.error || d.message || `Server error: ${u.status}`
|
|
135
138
|
};
|
|
136
139
|
}
|
|
137
|
-
return await
|
|
138
|
-
} catch (
|
|
139
|
-
throw console.error("API request failed:", r,
|
|
140
|
+
return await u.json();
|
|
141
|
+
} catch (c) {
|
|
142
|
+
throw console.error("API request failed:", r, c), c;
|
|
140
143
|
}
|
|
141
144
|
},
|
|
142
145
|
[e, t]
|
|
@@ -156,7 +159,7 @@ function le() {
|
|
|
156
159
|
}, []), [e, t];
|
|
157
160
|
}
|
|
158
161
|
const xe = (e) => {
|
|
159
|
-
const t =
|
|
162
|
+
const t = L(), [n] = le(), s = e ?? n.get("page"), r = C();
|
|
160
163
|
return ae({
|
|
161
164
|
queryKey: [E.GET_LANGUAGE_PAGES, s],
|
|
162
165
|
staleTime: 1 / 0,
|
|
@@ -168,12 +171,12 @@ const xe = (e) => {
|
|
|
168
171
|
action: E.GET_LANGUAGE_PAGES,
|
|
169
172
|
data: { id: s }
|
|
170
173
|
});
|
|
171
|
-
return br(
|
|
174
|
+
return wr(br(a, "primaryPage"));
|
|
172
175
|
},
|
|
173
176
|
enabled: !!s
|
|
174
177
|
});
|
|
175
178
|
}, Re = () => {
|
|
176
|
-
const e =
|
|
179
|
+
const e = L(), t = C();
|
|
177
180
|
return ae({
|
|
178
181
|
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
|
|
179
182
|
staleTime: 5 * 60 * 1e3,
|
|
@@ -188,44 +191,44 @@ const xe = (e) => {
|
|
|
188
191
|
data: { draft: !0 }
|
|
189
192
|
})
|
|
190
193
|
});
|
|
191
|
-
},
|
|
194
|
+
}, Ps = (e) => {
|
|
192
195
|
const { fallbackLang: t } = Se(), { data: n } = Re(), { data: s, isFetching: r } = xe(), a = Q(() => {
|
|
193
196
|
const i = { [t]: !0 };
|
|
194
|
-
return
|
|
195
|
-
const
|
|
196
|
-
i[o] = !!
|
|
197
|
+
return Ir(V(n, "languages"), (o) => {
|
|
198
|
+
const c = re(s, { lang: o });
|
|
199
|
+
i[o] = !!c;
|
|
197
200
|
}), i;
|
|
198
201
|
}, [t, s, n]);
|
|
199
202
|
return r || he(e) || e && a[e];
|
|
200
203
|
};
|
|
201
204
|
class ti {
|
|
202
205
|
constructor(t, n, s, r) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
var a, i, o,
|
|
211
|
-
this.userId = s, this.websocket = t, this.clientId = this.getClientId(), this.channelId = `WEBSITE:${n}`, this.callback = r, this.channel = this.websocket.channel(this.channelId, { config: { presence: { key: this.clientId } } }), (
|
|
212
|
-
this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC",
|
|
213
|
-
})) == null ? void 0 : i.on("presence", { event: "leave" }, (
|
|
214
|
-
this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC",
|
|
215
|
-
})) == null ? void 0 : o.on("presence", { event: "join" }, (
|
|
216
|
-
this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC",
|
|
217
|
-
})) == null ? void 0 :
|
|
206
|
+
ve(this, "channelId");
|
|
207
|
+
ve(this, "websocket");
|
|
208
|
+
ve(this, "channel", null);
|
|
209
|
+
ve(this, "userId", null);
|
|
210
|
+
ve(this, "clientId", null);
|
|
211
|
+
ve(this, "pageId", null);
|
|
212
|
+
ve(this, "callback");
|
|
213
|
+
var a, i, o, c, u, d;
|
|
214
|
+
this.userId = s, this.websocket = t, this.clientId = this.getClientId(), this.channelId = `WEBSITE:${n}`, this.callback = r, this.channel = this.websocket.channel(this.channelId, { config: { presence: { key: this.clientId } } }), (d = (u = (c = (o = (i = (a = this.channel) == null ? void 0 : a.on("presence", { event: "sync" }, (f) => {
|
|
215
|
+
this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC", f);
|
|
216
|
+
})) == null ? void 0 : i.on("presence", { event: "leave" }, (f) => {
|
|
217
|
+
this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC", f);
|
|
218
|
+
})) == null ? void 0 : o.on("presence", { event: "join" }, (f) => {
|
|
219
|
+
this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC", f);
|
|
220
|
+
})) == null ? void 0 : c.on(
|
|
218
221
|
"broadcast",
|
|
219
222
|
{ event: "TAKE_OVER_REQUESTED" },
|
|
220
|
-
({ payload:
|
|
223
|
+
({ payload: f }) => this.onReceiveEvent("TAKE_OVER_REQUESTED", f)
|
|
221
224
|
)) == null ? void 0 : u.on(
|
|
222
225
|
"broadcast",
|
|
223
226
|
{ event: "TAKE_OVER_REQUEST_ACCEPTED" },
|
|
224
|
-
({ payload:
|
|
225
|
-
)) == null ||
|
|
227
|
+
({ payload: f }) => this.onReceiveEvent("TAKE_OVER_REQUEST_ACCEPTED", f)
|
|
228
|
+
)) == null || d.on(
|
|
226
229
|
"broadcast",
|
|
227
230
|
{ event: "TAKE_OVER_REQUEST_REJECTED" },
|
|
228
|
-
({ payload:
|
|
231
|
+
({ payload: f }) => this.onReceiveEvent("TAKE_OVER_REQUEST_REJECTED", f)
|
|
229
232
|
).subscribe();
|
|
230
233
|
}
|
|
231
234
|
getClientId() {
|
|
@@ -242,10 +245,10 @@ class ti {
|
|
|
242
245
|
return t.length > 0 ? t[0] : null;
|
|
243
246
|
}
|
|
244
247
|
getPageUserMapping() {
|
|
245
|
-
const t = this.getOnlineUsers({}), n =
|
|
248
|
+
const t = this.getOnlineUsers({}), n = Cr(t, "pageId"), s = {};
|
|
246
249
|
return Object.keys(n).forEach((r) => {
|
|
247
250
|
var i;
|
|
248
|
-
const a = (i =
|
|
251
|
+
const a = (i = Nr(n[r], "onlineAt")) == null ? void 0 : i.userId;
|
|
249
252
|
a !== this.userId && (s[r] = a);
|
|
250
253
|
}), s;
|
|
251
254
|
}
|
|
@@ -307,8 +310,8 @@ class ti {
|
|
|
307
310
|
}
|
|
308
311
|
const ni = Ee(
|
|
309
312
|
null
|
|
310
|
-
),
|
|
311
|
-
const [e] =
|
|
313
|
+
), vs = () => te(ni), Nn = () => {
|
|
314
|
+
const [e] = vs();
|
|
312
315
|
return (e == null ? void 0 : e.slug) || "";
|
|
313
316
|
};
|
|
314
317
|
function si(e, t) {
|
|
@@ -319,7 +322,7 @@ function si(e, t) {
|
|
|
319
322
|
}, [e, t]), n;
|
|
320
323
|
}
|
|
321
324
|
const ri = ({ query: e, uuid: t }) => {
|
|
322
|
-
const { selectedLang: n, fallbackLang: s } = Se(), { data: r } = ie(), a = r == null ? void 0 : r.pageType, i =
|
|
325
|
+
const { selectedLang: n, fallbackLang: s } = Se(), { data: r } = ie(), a = r == null ? void 0 : r.pageType, i = L(), o = C(), { data: c, isFetching: u } = ae({
|
|
323
326
|
queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
|
|
324
327
|
staleTime: 60 * 60 * 1e3,
|
|
325
328
|
placeholderData: [],
|
|
@@ -328,25 +331,25 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
328
331
|
data: { query: e, pageType: a, uuid: t }
|
|
329
332
|
}) || [],
|
|
330
333
|
enabled: !!a
|
|
331
|
-
}),
|
|
332
|
-
return { allLangPages:
|
|
334
|
+
}), d = Q(() => n === "" ? c.filter((f) => f.lang === "" || f.lang === s) : c.filter((f) => f.lang === n), [n, s, c]);
|
|
335
|
+
return { allLangPages: c, data: d, isFetching: u };
|
|
333
336
|
}, ai = () => {
|
|
334
|
-
const { selectedLang: e, fallbackLang: t } = Se(), [n, s] =
|
|
337
|
+
const { selectedLang: e, fallbackLang: t } = Se(), [n, s] = vs(), [r, a] = K(""), i = si(r, 500), { allLangPages: o, data: c, isFetching: u } = ri({ query: i }), d = j((g) => s(g), [s]), f = j((g) => a(g), [a]), h = j(() => {
|
|
335
338
|
if (!n) return;
|
|
336
|
-
const g = !(n != null && n.primaryPage),
|
|
337
|
-
(
|
|
338
|
-
).find((
|
|
339
|
-
s(
|
|
339
|
+
const g = !(n != null && n.primaryPage), p = e.length === 0, S = g ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, T = o.filter(
|
|
340
|
+
(y) => (y == null ? void 0 : y.primaryPage) === S || y.id === S
|
|
341
|
+
).find((y) => p ? y.lang === e || y.lang === t : y.lang === e);
|
|
342
|
+
s(T || n);
|
|
340
343
|
}, [n, e, o, s, t]);
|
|
341
344
|
return {
|
|
342
345
|
isFetching: u,
|
|
343
346
|
dynamicPage: n,
|
|
344
347
|
searchQuery: r,
|
|
345
348
|
selectedLang: e,
|
|
346
|
-
dynamicPages:
|
|
349
|
+
dynamicPages: c,
|
|
347
350
|
allLangPages: o,
|
|
348
|
-
updateDynamicPage:
|
|
349
|
-
updateSearchQuery:
|
|
351
|
+
updateDynamicPage: d,
|
|
352
|
+
updateSearchQuery: f,
|
|
350
353
|
onChangeLanguage: h
|
|
351
354
|
};
|
|
352
355
|
}, ii = Ee({ lastSaved: void 0 }), Ln = () => te(ii), ie = () => {
|
|
@@ -366,7 +369,7 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
366
369
|
logout: t
|
|
367
370
|
};
|
|
368
371
|
}, ui = (e) => {
|
|
369
|
-
const t =
|
|
372
|
+
const t = Ss(), n = C();
|
|
370
373
|
return ae({
|
|
371
374
|
queryKey: [E.GET_CHAI_USER, e],
|
|
372
375
|
queryFn: async () => {
|
|
@@ -386,34 +389,34 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
386
389
|
requestingClientId: "",
|
|
387
390
|
isActiveInOtherTab: !1
|
|
388
391
|
}), fi = Ee(""), hi = Ee(null), kn = Ee({}), Gc = () => te(kn), Ie = () => {
|
|
389
|
-
const [e] = le(), t = e.get("page"), [n, s] = te(di), [r, a] = te(hi), [i, o] = te(fi), [
|
|
392
|
+
const [e] = le(), t = e.get("page"), [n, s] = te(di), [r, a] = te(hi), [i, o] = te(fi), [c] = te(kn);
|
|
390
393
|
return {
|
|
391
394
|
pageLock: n,
|
|
392
|
-
pageToUser:
|
|
395
|
+
pageToUser: c,
|
|
393
396
|
lockingStatus: i,
|
|
394
397
|
realtimeInstance: r,
|
|
395
398
|
setPageLock: s,
|
|
396
399
|
setLockingStatus: o,
|
|
397
400
|
setRealtimeInstance: a,
|
|
398
401
|
realtimePageLockEnabled: !!r,
|
|
399
|
-
currentEditor:
|
|
402
|
+
currentEditor: c[t || ""],
|
|
400
403
|
isLocked: t && n.status === "locked"
|
|
401
404
|
};
|
|
402
405
|
}, gi = () => {
|
|
403
|
-
const e = ei(), { data: t } = ie(), { user: n } = Jt(), s = t == null ? void 0 : t.id, { data: r } = Re(), { pageLock: a, setPageLock: i, setLockingStatus: o, realtimeInstance:
|
|
406
|
+
const e = ei(), { data: t } = ie(), { user: n } = Jt(), s = t == null ? void 0 : t.id, { data: r } = Re(), { pageLock: a, setPageLock: i, setLockingStatus: o, realtimeInstance: c, setRealtimeInstance: u } = Ie(), [, d] = te(kn), f = at(!1), h = at(a), g = at(!1);
|
|
404
407
|
return se(() => {
|
|
405
|
-
if (n != null && n.id && e && !
|
|
408
|
+
if (n != null && n.id && e && !c && (r != null && r.appKey) && !g.current) {
|
|
406
409
|
g.current = !0;
|
|
407
|
-
const
|
|
408
|
-
var
|
|
409
|
-
switch (
|
|
410
|
+
const p = async (P, T) => {
|
|
411
|
+
var y, A;
|
|
412
|
+
switch (P) {
|
|
410
413
|
/**
|
|
411
414
|
* When user joins
|
|
412
415
|
* @payload : { pageToUser: { [pageId: string]: [userId: string] } }
|
|
413
416
|
* - Update page user mapping
|
|
414
417
|
*/
|
|
415
418
|
case "UPDATE_ONLINE_USERS":
|
|
416
|
-
|
|
419
|
+
d((T == null ? void 0 : T.pageToUser) || {});
|
|
417
420
|
break;
|
|
418
421
|
/**
|
|
419
422
|
* When page is locked
|
|
@@ -425,7 +428,7 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
425
428
|
...h == null ? void 0 : h.current,
|
|
426
429
|
requestedBy: "",
|
|
427
430
|
status: "locked",
|
|
428
|
-
isActiveInOtherTab:
|
|
431
|
+
isActiveInOtherTab: T == null ? void 0 : T.isActiveInOtherTab
|
|
429
432
|
});
|
|
430
433
|
break;
|
|
431
434
|
/**
|
|
@@ -434,12 +437,12 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
434
437
|
* - User will be owner of this page
|
|
435
438
|
*/
|
|
436
439
|
case "USER_JOINED":
|
|
437
|
-
if (((
|
|
438
|
-
((
|
|
440
|
+
if (((y = h == null ? void 0 : h.current) == null ? void 0 : y.status) === "editing") return;
|
|
441
|
+
((A = h == null ? void 0 : h.current) == null ? void 0 : A.status) === "locked" && o("can_edit_now"), i({
|
|
439
442
|
...h == null ? void 0 : h.current,
|
|
440
443
|
requestedBy: "",
|
|
441
444
|
status: "editing",
|
|
442
|
-
isActiveInOtherTab:
|
|
445
|
+
isActiveInOtherTab: T == null ? void 0 : T.isActiveInOtherTab
|
|
443
446
|
});
|
|
444
447
|
break;
|
|
445
448
|
/**
|
|
@@ -453,8 +456,8 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
453
456
|
case "TAKE_OVER_REQUESTED":
|
|
454
457
|
i({
|
|
455
458
|
...h == null ? void 0 : h.current,
|
|
456
|
-
requestingClientId:
|
|
457
|
-
requestedBy:
|
|
459
|
+
requestingClientId: T == null ? void 0 : T.requestingClientId,
|
|
460
|
+
requestedBy: T != null && T.isRequestedFromAnotherTab ? "ANOTHER_TAB" : T == null ? void 0 : T.requestedBy
|
|
458
461
|
});
|
|
459
462
|
break;
|
|
460
463
|
/**
|
|
@@ -464,7 +467,7 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
464
467
|
* - update state for editing page
|
|
465
468
|
*/
|
|
466
469
|
case "TAKE_OVER_REQUEST_ACCEPTED":
|
|
467
|
-
|
|
470
|
+
T != null && T.isTakingOverFromAnotherTab || (o("take_over_request_accepted"), R.success("Your Page Take Over Request Accepted", { position: "top-center" })), i({
|
|
468
471
|
...h == null ? void 0 : h.current,
|
|
469
472
|
status: "editing",
|
|
470
473
|
requestedBy: "",
|
|
@@ -484,32 +487,32 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
484
487
|
});
|
|
485
488
|
break;
|
|
486
489
|
}
|
|
487
|
-
},
|
|
490
|
+
}, S = new ti(
|
|
488
491
|
e,
|
|
489
492
|
r == null ? void 0 : r.appKey,
|
|
490
493
|
n == null ? void 0 : n.id,
|
|
491
|
-
|
|
494
|
+
p
|
|
492
495
|
);
|
|
493
|
-
u(
|
|
496
|
+
u(S);
|
|
494
497
|
}
|
|
495
498
|
}, [u, e, r == null ? void 0 : r.appKey]), se(() => {
|
|
496
499
|
h.current = a;
|
|
497
500
|
}, [a]), se(() => {
|
|
498
|
-
if (!(!
|
|
499
|
-
return
|
|
500
|
-
|
|
501
|
+
if (!(!c || !s || !(n != null && n.id) || f.current))
|
|
502
|
+
return f.current = !0, c == null || c.joinPage(s), () => {
|
|
503
|
+
c && f.current && (f.current = !1, h.current = {
|
|
501
504
|
requestedBy: "",
|
|
502
505
|
status: "checking",
|
|
503
506
|
requestingClientId: "",
|
|
504
507
|
isActiveInOtherTab: !1,
|
|
505
508
|
isTakeOverRequested: !1
|
|
506
|
-
}, o(""), i(h.current),
|
|
509
|
+
}, o(""), i(h.current), c == null || c.leavePage());
|
|
507
510
|
};
|
|
508
|
-
}, [s,
|
|
511
|
+
}, [s, c]), a == null ? void 0 : a.status;
|
|
509
512
|
}, mi = () => {
|
|
510
513
|
const { data: e } = ie(), { user: t } = Jt(), n = e == null ? void 0 : e.id, { pageLock: s, setPageLock: r, realtimeInstance: a } = Ie(), { savePageAsync: i } = Ge(), o = j(() => {
|
|
511
514
|
!a || !n || !(t != null && t.id) || (r({ ...s, isTakeOverRequested: !0 }), a == null || a.sendEvent("TAKE_OVER_REQUESTED"));
|
|
512
|
-
}, [a, n, t == null ? void 0 : t.id, r, s]),
|
|
515
|
+
}, [a, n, t == null ? void 0 : t.id, r, s]), c = j(async () => {
|
|
513
516
|
!a || !n || !(t != null && t.id) || (await i(), a == null || a.sendEvent("TAKE_OVER_REQUEST_ACCEPTED", {
|
|
514
517
|
requestingClientId: s == null ? void 0 : s.requestingClientId
|
|
515
518
|
}), r({
|
|
@@ -533,15 +536,15 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
533
536
|
}, [n, a, t == null ? void 0 : t.id, r, s]);
|
|
534
537
|
return {
|
|
535
538
|
pageLock: s,
|
|
536
|
-
acceptTakeOver:
|
|
539
|
+
acceptTakeOver: c,
|
|
537
540
|
rejectTakeOver: u,
|
|
538
541
|
requestTakeOver: o
|
|
539
542
|
};
|
|
540
|
-
}, Ei = F(() => import("./no-language-page-content-
|
|
541
|
-
const { pageLock: t, requestTakeOver: n } = mi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching:
|
|
543
|
+
}, Ei = F(() => import("./no-language-page-content-Cme-zo4R.js")), pi = F(() => import("./page-locked-by-dialog-Csn56a3n.js")), rn = F(() => import("./page-lock-request-DDQJb8IA.js")), yi = ({ isFetchingPage: e }) => {
|
|
544
|
+
const { pageLock: t, requestTakeOver: n } = mi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching: c } = ui(s), [u] = le(), d = u.get("page"), [f] = Ln(), h = W(), g = j(() => {
|
|
542
545
|
n();
|
|
543
546
|
}, [n]);
|
|
544
|
-
return !
|
|
547
|
+
return !d || e || !i || (t == null ? void 0 : t.status) === "checking" ? null : t != null && t.requestedBy ? /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
545
548
|
rn,
|
|
546
549
|
{
|
|
547
550
|
lockingStatus: "",
|
|
@@ -549,7 +552,7 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
549
552
|
n();
|
|
550
553
|
}
|
|
551
554
|
}
|
|
552
|
-
) }) : (t == null ? void 0 : t.status) !== "locked" ? r === "take_over_request_accepted" || r === "can_edit_now" ? /* @__PURE__ */
|
|
555
|
+
) }) : (t == null ? void 0 : t.status) !== "locked" ? r === "take_over_request_accepted" || r === "can_edit_now" ? /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
553
556
|
rn,
|
|
554
557
|
{
|
|
555
558
|
lockingStatus: r,
|
|
@@ -559,14 +562,14 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
559
562
|
}), a("");
|
|
560
563
|
}
|
|
561
564
|
}
|
|
562
|
-
) }) : null : t != null && t.isActiveInOtherTab ? /* @__PURE__ */
|
|
565
|
+
) }) : null : t != null && t.isActiveInOtherTab ? /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(rn, { lockingStatus: "page_is_active_in_other_tab", onContinue: n }) }) : /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
563
566
|
pi,
|
|
564
567
|
{
|
|
565
568
|
...o,
|
|
566
|
-
isFetchingUserInfo:
|
|
569
|
+
isFetchingUserInfo: c,
|
|
567
570
|
name: (o == null ? void 0 : o.name) || "Unknown User",
|
|
568
571
|
email: (o == null ? void 0 : o.email) || "",
|
|
569
|
-
lastSaved: (
|
|
572
|
+
lastSaved: (f == null ? void 0 : f.lastSaved) || "",
|
|
570
573
|
onTakeOver: g,
|
|
571
574
|
realtimePageLockEnabled: i,
|
|
572
575
|
isRequestRejected: r === "take_over_request_rejected"
|
|
@@ -574,7 +577,7 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
574
577
|
) });
|
|
575
578
|
}, Ai = () => {
|
|
576
579
|
const [e] = le(), t = e.get("lang");
|
|
577
|
-
return
|
|
580
|
+
return Ps(t) ? null : /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ei, {}) });
|
|
578
581
|
}, Lt = {
|
|
579
582
|
ab: "Abkhazian",
|
|
580
583
|
aa: "Afar",
|
|
@@ -764,7 +767,7 @@ const ri = ({ query: e, uuid: t }) => {
|
|
|
764
767
|
za: "Zhuang, Chuang",
|
|
765
768
|
zu: "Zulu"
|
|
766
769
|
};
|
|
767
|
-
function
|
|
770
|
+
function ws(e, t, n = !1) {
|
|
768
771
|
const s = e.toString() ? `?${e.toString()}` : "/";
|
|
769
772
|
n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
770
773
|
}
|
|
@@ -774,8 +777,8 @@ const On = Ee(null), Dn = () => {
|
|
|
774
777
|
() => (e == null ? void 0 : e.fallbackLang) || "en",
|
|
775
778
|
[e]
|
|
776
779
|
);
|
|
777
|
-
},
|
|
778
|
-
const e =
|
|
780
|
+
}, bs = () => {
|
|
781
|
+
const e = C(), t = L();
|
|
779
782
|
return ae({
|
|
780
783
|
queryKey: [E.GET_WEBSITE_PAGES],
|
|
781
784
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -783,7 +786,7 @@ const On = Ee(null), Dn = () => {
|
|
|
783
786
|
placeholderData: (n) => n || []
|
|
784
787
|
});
|
|
785
788
|
}, xc = (e) => {
|
|
786
|
-
const t =
|
|
789
|
+
const t = C(), n = L(), s = Dn();
|
|
787
790
|
return ae({
|
|
788
791
|
queryKey: [E.GET_WEBSITE_PAGES, e, s],
|
|
789
792
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -791,167 +794,168 @@ const On = Ee(null), Dn = () => {
|
|
|
791
794
|
queryFn: async () => {
|
|
792
795
|
if (s === e) return {};
|
|
793
796
|
const r = await t(n, { action: E.GET_WEBSITE_PAGES, data: { lang: e } }) || [];
|
|
794
|
-
return
|
|
797
|
+
return Lr(
|
|
795
798
|
Bt(r, (a) => ({ ...a, lang: e })),
|
|
796
799
|
"primaryPage"
|
|
797
800
|
);
|
|
798
801
|
},
|
|
799
802
|
placeholderData: (r) => r || {}
|
|
800
803
|
});
|
|
801
|
-
}, Ti = F(() => import("./page-manager-new-
|
|
802
|
-
const { t } =
|
|
803
|
-
if (!o ||
|
|
804
|
-
const
|
|
805
|
-
return
|
|
806
|
-
}, [o,
|
|
804
|
+
}, Ti = F(() => import("./page-manager-new-BrRxZDfT.js")), Is = ({ children: e }) => {
|
|
805
|
+
const { t } = _e(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: c } = bs(), [u, d] = K(!1), [f, h] = K(!0), { savePage: g } = Ge(), p = !!r && !he(a), S = Q(() => {
|
|
806
|
+
if (!o || c) return !1;
|
|
807
|
+
const A = o.find((b) => b.slug === "/");
|
|
808
|
+
return A == null ? void 0 : A.id;
|
|
809
|
+
}, [o, c]);
|
|
807
810
|
se(() => {
|
|
808
|
-
if (
|
|
809
|
-
const
|
|
810
|
-
|
|
811
|
-
}, [r,
|
|
812
|
-
const
|
|
811
|
+
if (c || !S || o.some((M) => M.id === r)) return;
|
|
812
|
+
const b = new URLSearchParams({ page: S });
|
|
813
|
+
ws(b, s), !c && o && h(!1);
|
|
814
|
+
}, [r, c, o, S, s]);
|
|
815
|
+
const P = !f && !r, T = !f && !i && he(a), y = u || P || T;
|
|
813
816
|
return /* @__PURE__ */ m(ge, { children: [
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ l("div", { className: "relative", children: /* @__PURE__ */ m(zt, { children: [
|
|
818
|
+
/* @__PURE__ */ l(
|
|
816
819
|
Wt,
|
|
817
820
|
{
|
|
818
821
|
asChild: !0,
|
|
819
822
|
onClick: () => {
|
|
820
|
-
g(),
|
|
823
|
+
g(), d(!0);
|
|
821
824
|
},
|
|
822
|
-
children: e || /* @__PURE__ */
|
|
825
|
+
children: e || /* @__PURE__ */ l(U, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ l(Ia, { className: "h-4 w-4" }) }, "template-viewer")
|
|
823
826
|
}
|
|
824
827
|
),
|
|
825
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ l(Yt, { side: "right", children: /* @__PURE__ */ l("p", { children: t("Open pages manager") }) })
|
|
826
829
|
] }) }) }),
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
|
|
830
|
+
/* @__PURE__ */ l(Es, { open: y, onOpenChange: (A) => !A && p && d(!1), children: /* @__PURE__ */ m(
|
|
831
|
+
ps,
|
|
829
832
|
{
|
|
830
833
|
side: "left",
|
|
831
834
|
"aria-describedby": "pages-manager-description",
|
|
832
|
-
className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${
|
|
835
|
+
className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${p ? "" : "sheet-hide-close-btn"}`,
|
|
833
836
|
children: [
|
|
834
837
|
/* @__PURE__ */ m(ta, { className: "mb-3 px-4 pt-4", children: [
|
|
835
838
|
/* @__PURE__ */ m(na, { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
836
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ l("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ l(Ca, { className: "h-4 w-4" }) }),
|
|
837
840
|
/* @__PURE__ */ m("div", { className: "flex flex-col", children: [
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-semibold", children: t("Pages") }),
|
|
842
|
+
/* @__PURE__ */ l("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
|
|
840
843
|
] })
|
|
841
844
|
] }),
|
|
842
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ l(sa, { className: "sr-only", children: t("Manage your site structure") })
|
|
843
846
|
] }),
|
|
844
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ l("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: y && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ti, { close: () => d(!1) }) }) })
|
|
845
848
|
]
|
|
846
849
|
}
|
|
847
850
|
) })
|
|
848
851
|
] });
|
|
849
|
-
}, Si = F(() => import("./add-new-language-page-
|
|
852
|
+
}, Si = F(() => import("./add-new-language-page-BZPoqdX-.js")), _i = () => {
|
|
850
853
|
const e = oe("topLeftCorner", null);
|
|
851
|
-
return e ? /* @__PURE__ */
|
|
854
|
+
return e ? /* @__PURE__ */ l("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Fr.createElement(e, {}) }) : null;
|
|
852
855
|
}, Pi = ({
|
|
853
856
|
showAdd: e = !0,
|
|
854
|
-
variant: t = "ghost"
|
|
857
|
+
variant: t = "ghost",
|
|
858
|
+
goToDefaultLang: n = !1
|
|
855
859
|
}) => {
|
|
856
|
-
const { fallbackLang:
|
|
860
|
+
const { fallbackLang: s, languages: r, selectedLang: a, setSelectedLang: i } = Se(), o = he(a) ? s : a, [, c] = le(), { isLocked: u } = Ie(), { t: d } = _e();
|
|
857
861
|
se(() => {
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
}, [
|
|
861
|
-
const [,
|
|
862
|
-
const
|
|
863
|
-
Bt(V(
|
|
864
|
-
const
|
|
862
|
+
const y = new URLSearchParams(window.location.search), A = y.get("lang");
|
|
863
|
+
A && (r.includes(A) ? i(A) : (y.delete("lang"), c(y), i("")));
|
|
864
|
+
}, [r, c, i]);
|
|
865
|
+
const [, f] = te(On), { data: h } = ie(), { data: g } = Re(), { data: p } = xe(), S = Q(() => {
|
|
866
|
+
const y = fs(
|
|
867
|
+
Bt(V(g, "languages"), (A) => {
|
|
868
|
+
const b = re(p, { lang: A });
|
|
865
869
|
return {
|
|
866
|
-
key:
|
|
867
|
-
value: V(Lt,
|
|
868
|
-
isLangPageAdded: !!
|
|
870
|
+
key: A,
|
|
871
|
+
value: V(Lt, A, A),
|
|
872
|
+
isLangPageAdded: !!b
|
|
869
873
|
};
|
|
870
874
|
})
|
|
871
875
|
).filter(Boolean);
|
|
872
876
|
return [
|
|
873
877
|
{
|
|
874
|
-
key:
|
|
875
|
-
value: V(Lt,
|
|
878
|
+
key: s,
|
|
879
|
+
value: V(Lt, s),
|
|
876
880
|
isLangPageAdded: !0
|
|
877
881
|
},
|
|
878
|
-
...
|
|
882
|
+
...y
|
|
879
883
|
];
|
|
880
|
-
}, [
|
|
884
|
+
}, [s, p, g]), P = (y) => {
|
|
881
885
|
if (document.querySelector('[data-panel-id="seo"]')) {
|
|
882
|
-
const
|
|
886
|
+
const b = new CustomEvent("seo-language-switch-check", {
|
|
883
887
|
detail: {
|
|
884
|
-
fromLang:
|
|
885
|
-
toLang:
|
|
886
|
-
switchHandler: () => T(
|
|
888
|
+
fromLang: o,
|
|
889
|
+
toLang: y,
|
|
890
|
+
switchHandler: () => T(y)
|
|
887
891
|
}
|
|
888
892
|
});
|
|
889
|
-
window.dispatchEvent(
|
|
893
|
+
window.dispatchEvent(b);
|
|
890
894
|
return;
|
|
891
895
|
}
|
|
892
|
-
T(
|
|
893
|
-
}, T = (
|
|
894
|
-
|
|
895
|
-
const
|
|
896
|
-
|
|
896
|
+
T(y);
|
|
897
|
+
}, T = (y) => {
|
|
898
|
+
i(y);
|
|
899
|
+
const A = new URLSearchParams(window.location.search);
|
|
900
|
+
y === s ? A.delete("lang") : A.set("lang", y), ws(A, c);
|
|
897
901
|
};
|
|
898
|
-
return he(
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
-
V(Lt,
|
|
901
|
-
/* @__PURE__ */
|
|
902
|
-
] }) : /* @__PURE__ */
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
|
|
902
|
+
return he(r) ? null : u ? /* @__PURE__ */ m(U, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
|
|
903
|
+
/* @__PURE__ */ l(Vn, { className: "h-4 w-4" }),
|
|
904
|
+
V(Lt, o, o),
|
|
905
|
+
/* @__PURE__ */ l(hn, { className: "h-4 w-4" })
|
|
906
|
+
] }) : n ? /* @__PURE__ */ l(U, { onClick: () => T(s), variant: "link", size: "sm", children: d("Switch to default language") }) : /* @__PURE__ */ l(ge, { children: /* @__PURE__ */ m(wn, { children: [
|
|
907
|
+
/* @__PURE__ */ l(bn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
908
|
+
U,
|
|
905
909
|
{
|
|
906
|
-
disabled: !!
|
|
910
|
+
disabled: !!u,
|
|
907
911
|
variant: t,
|
|
908
912
|
size: "sm",
|
|
909
913
|
className: "ml-px h-max gap-2 py-1.5",
|
|
910
914
|
children: [
|
|
911
|
-
/* @__PURE__ */
|
|
912
|
-
V(Lt,
|
|
913
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ l(Vn, { className: "h-4 w-4" }),
|
|
916
|
+
V(Lt, o, o),
|
|
917
|
+
/* @__PURE__ */ l(hn, { className: "h-4 w-4" })
|
|
914
918
|
]
|
|
915
919
|
}
|
|
916
920
|
) }),
|
|
917
921
|
/* @__PURE__ */ m(In, { className: "space-y-1 border-border", children: [
|
|
918
922
|
Bt(
|
|
919
|
-
|
|
920
|
-
(
|
|
923
|
+
S.filter((y) => y.isLangPageAdded),
|
|
924
|
+
(y) => /* @__PURE__ */ m(
|
|
921
925
|
ue,
|
|
922
926
|
{
|
|
923
927
|
className: Mt(
|
|
924
928
|
"flex cursor-pointer items-center justify-between text-xs font-medium text-gray-800",
|
|
925
|
-
|
|
929
|
+
y.key === o && "!bg-gray-200 text-gray-700"
|
|
926
930
|
),
|
|
927
|
-
onClick: () =>
|
|
931
|
+
onClick: () => P(y.key),
|
|
928
932
|
children: [
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
|
|
931
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ l("div", { className: "text-slate-600", children: y.value }),
|
|
934
|
+
y.key === s && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
|
|
935
|
+
/* @__PURE__ */ l(Na, { fill: "orange", className: "h-2 w-2" }),
|
|
932
936
|
"Primary"
|
|
933
937
|
] })
|
|
934
938
|
]
|
|
935
939
|
},
|
|
936
|
-
|
|
940
|
+
y.value
|
|
937
941
|
)
|
|
938
942
|
),
|
|
939
|
-
e && !he(
|
|
940
|
-
/* @__PURE__ */
|
|
943
|
+
e && !he(S.filter((y) => !y.isLangPageAdded)) && /* @__PURE__ */ m(ge, { children: [
|
|
944
|
+
/* @__PURE__ */ l(ra, {}),
|
|
941
945
|
/* @__PURE__ */ m(
|
|
942
|
-
|
|
946
|
+
U,
|
|
943
947
|
{
|
|
944
948
|
size: "sm",
|
|
945
949
|
variant: "ghost",
|
|
946
950
|
onClick: () => {
|
|
947
|
-
|
|
951
|
+
h && f({
|
|
948
952
|
edit: !1,
|
|
949
|
-
primaryPage:
|
|
953
|
+
primaryPage: h.id
|
|
950
954
|
});
|
|
951
955
|
},
|
|
952
956
|
className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
|
|
953
957
|
children: [
|
|
954
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ l(Ts, { className: "mr-1 h-3 w-3" }),
|
|
955
959
|
" Add Langauge"
|
|
956
960
|
]
|
|
957
961
|
}
|
|
@@ -963,9 +967,9 @@ const On = Ee(null), Dn = () => {
|
|
|
963
967
|
function vi() {
|
|
964
968
|
const [e, t] = te(On);
|
|
965
969
|
return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
e && /* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ l(_i, {}),
|
|
971
|
+
/* @__PURE__ */ l(Is, {}),
|
|
972
|
+
e && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
969
973
|
Si,
|
|
970
974
|
{
|
|
971
975
|
isOpen: !0,
|
|
@@ -979,30 +983,30 @@ function vi() {
|
|
|
979
983
|
] });
|
|
980
984
|
}
|
|
981
985
|
function wi() {
|
|
982
|
-
return /* @__PURE__ */
|
|
986
|
+
return /* @__PURE__ */ l("div", { className: "mt-2 space-y-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3 rounded-md border p-2", children: [
|
|
983
987
|
/* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
|
|
984
|
-
/* @__PURE__ */
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ l(Nt, { className: "h-4 w-3/4" }),
|
|
989
|
+
/* @__PURE__ */ l(Nt, { className: "h-3 w-1/2" }),
|
|
990
|
+
/* @__PURE__ */ l(Nt, { className: "mt-1 h-5 w-20" })
|
|
987
991
|
] }),
|
|
988
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ l(Nt, { className: "h-8 w-8 rounded-full" })
|
|
989
993
|
] }, t)) });
|
|
990
994
|
}
|
|
991
|
-
const bi = z.lazy(() => import("./page-revisions-content-
|
|
995
|
+
const bi = z.lazy(() => import("./page-revisions-content-B6fRCBX_.js"));
|
|
992
996
|
function Ii() {
|
|
993
997
|
const [e, t] = z.useState(!1);
|
|
994
|
-
return /* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */ m(
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */ m(
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
-
/* @__PURE__ */
|
|
998
|
+
return /* @__PURE__ */ l(ys, { children: /* @__PURE__ */ m(zt, { delayDuration: 0, children: [
|
|
999
|
+
/* @__PURE__ */ m(Es, { open: e, onOpenChange: t, children: [
|
|
1000
|
+
/* @__PURE__ */ l(aa, { asChild: !0, children: /* @__PURE__ */ l(Wt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
|
|
1001
|
+
/* @__PURE__ */ m(U, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
|
|
1002
|
+
/* @__PURE__ */ l(La, { className: "h-4 w-4" }),
|
|
1003
|
+
/* @__PURE__ */ l("span", { className: "sr-only", children: "View revision history" })
|
|
1000
1004
|
] }),
|
|
1001
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ l("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1002
1006
|
] }) }) }),
|
|
1003
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ l(ps, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ l(wi, {}), children: /* @__PURE__ */ l(bi, { isOpen: e }) }) })
|
|
1004
1008
|
] }),
|
|
1005
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ l(Yt, { side: "bottom", children: /* @__PURE__ */ l("p", { children: "Revision history" }) })
|
|
1006
1010
|
] }) });
|
|
1007
1011
|
}
|
|
1008
1012
|
const an = ({
|
|
@@ -1016,7 +1020,7 @@ const an = ({
|
|
|
1016
1020
|
}, Ci = {
|
|
1017
1021
|
SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
|
|
1018
1022
|
}, Ce = () => {
|
|
1019
|
-
const e =
|
|
1023
|
+
const e = L(), t = C();
|
|
1020
1024
|
return ae({
|
|
1021
1025
|
queryKey: [E.GET_PAGE_TYPES],
|
|
1022
1026
|
staleTime: 1 / 0,
|
|
@@ -1027,7 +1031,7 @@ const an = ({
|
|
|
1027
1031
|
const { data: t } = Ce();
|
|
1028
1032
|
return Q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
|
|
1029
1033
|
}, Li = () => {
|
|
1030
|
-
const e =
|
|
1034
|
+
const e = L(), t = C();
|
|
1031
1035
|
return X({
|
|
1032
1036
|
mutationFn: async ({ pageType: n, query: s }) => {
|
|
1033
1037
|
try {
|
|
@@ -1044,7 +1048,7 @@ const an = ({
|
|
|
1044
1048
|
}
|
|
1045
1049
|
});
|
|
1046
1050
|
}, Rc = () => {
|
|
1047
|
-
const e =
|
|
1051
|
+
const e = L(), t = W(), n = C(), { data: s } = Ce();
|
|
1048
1052
|
return X({
|
|
1049
1053
|
mutationFn: async (r) => await n(e, {
|
|
1050
1054
|
action: E.CREATE_PAGE,
|
|
@@ -1070,7 +1074,7 @@ const an = ({
|
|
|
1070
1074
|
}
|
|
1071
1075
|
});
|
|
1072
1076
|
}, Uc = () => {
|
|
1073
|
-
const e =
|
|
1077
|
+
const e = L(), t = W(), n = C(), { data: s } = be(), { data: r } = Ce();
|
|
1074
1078
|
return X({
|
|
1075
1079
|
mutationFn: async (a) => await n(e, {
|
|
1076
1080
|
action: E.UPDATE_PAGE,
|
|
@@ -1095,7 +1099,7 @@ const an = ({
|
|
|
1095
1099
|
}
|
|
1096
1100
|
});
|
|
1097
1101
|
}, Bc = () => {
|
|
1098
|
-
const e =
|
|
1102
|
+
const e = L(), t = W(), n = C(), { data: s } = Ce();
|
|
1099
1103
|
return X({
|
|
1100
1104
|
mutationFn: async (r) => n(e, {
|
|
1101
1105
|
action: E.DELETE_PAGE,
|
|
@@ -1124,7 +1128,7 @@ const an = ({
|
|
|
1124
1128
|
}
|
|
1125
1129
|
});
|
|
1126
1130
|
}, Mc = () => {
|
|
1127
|
-
const e =
|
|
1131
|
+
const e = L(), t = W(), n = C(), { data: s } = Ce();
|
|
1128
1132
|
return X({
|
|
1129
1133
|
mutationFn: async (r) => n(e, {
|
|
1130
1134
|
action: E.TAKE_OFFLINE,
|
|
@@ -1148,8 +1152,8 @@ const an = ({
|
|
|
1148
1152
|
});
|
|
1149
1153
|
}
|
|
1150
1154
|
});
|
|
1151
|
-
},
|
|
1152
|
-
const e =
|
|
1155
|
+
}, Cs = () => {
|
|
1156
|
+
const e = L(), t = C(), n = W(), { data: s } = ie(), { savePageAsync: r } = Ge();
|
|
1153
1157
|
return X({
|
|
1154
1158
|
mutationFn: async ({ ids: a }) => (await r(), t(e, {
|
|
1155
1159
|
action: E.PUBLISH_CHANGES,
|
|
@@ -1169,7 +1173,7 @@ const an = ({
|
|
|
1169
1173
|
}
|
|
1170
1174
|
});
|
|
1171
1175
|
}, Fc = () => {
|
|
1172
|
-
const e =
|
|
1176
|
+
const e = L(), t = C(), n = W();
|
|
1173
1177
|
return X({
|
|
1174
1178
|
mutationFn: async (s) => {
|
|
1175
1179
|
var r;
|
|
@@ -1194,7 +1198,7 @@ const an = ({
|
|
|
1194
1198
|
}
|
|
1195
1199
|
});
|
|
1196
1200
|
}, qc = () => {
|
|
1197
|
-
const e =
|
|
1201
|
+
const e = L(), t = C(), n = W();
|
|
1198
1202
|
return X({
|
|
1199
1203
|
mutationFn: async (s) => t(e, {
|
|
1200
1204
|
action: E.UNMARK_AS_TEMPLATE,
|
|
@@ -1210,7 +1214,7 @@ const an = ({
|
|
|
1210
1214
|
}
|
|
1211
1215
|
});
|
|
1212
1216
|
}, Kc = () => {
|
|
1213
|
-
const e =
|
|
1217
|
+
const e = L(), t = C(), n = W();
|
|
1214
1218
|
return X({
|
|
1215
1219
|
mutationFn: async ({ id: s, slug: r }) => t(e, {
|
|
1216
1220
|
action: E.CHANGE_SLUG,
|
|
@@ -1227,17 +1231,17 @@ const an = ({
|
|
|
1227
1231
|
R.error("Failed to change slug");
|
|
1228
1232
|
}
|
|
1229
1233
|
});
|
|
1230
|
-
}, ki = F(() => import("./publish-pages-content-
|
|
1234
|
+
}, ki = F(() => import("./publish-pages-content-CFEIxKQD.js"));
|
|
1231
1235
|
function Oi({
|
|
1232
1236
|
showModal: e = !1,
|
|
1233
1237
|
onClose: t = () => console.log("Cancelled")
|
|
1234
1238
|
}) {
|
|
1235
|
-
const { mutate: n, isPending: s } =
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
} : t, children: e && /* @__PURE__ */
|
|
1239
|
+
const { mutate: n, isPending: s } = Cs();
|
|
1240
|
+
return /* @__PURE__ */ l(As, { open: e, onOpenChange: s ? () => {
|
|
1241
|
+
} : t, children: e && /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ l("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ l(ki, { onClose: t, isPending: s, publishPage: n }) }) });
|
|
1238
1242
|
}
|
|
1239
1243
|
const ce = {
|
|
1240
|
-
|
|
1244
|
+
...Qr,
|
|
1241
1245
|
//pages
|
|
1242
1246
|
ADD_PAGE: "add_page",
|
|
1243
1247
|
EDIT_PAGE: "edit_page",
|
|
@@ -1303,169 +1307,169 @@ function Gn({
|
|
|
1303
1307
|
delayDuration: s = 700,
|
|
1304
1308
|
showTooltip: r = !0
|
|
1305
1309
|
}) {
|
|
1306
|
-
return r ? /* @__PURE__ */
|
|
1307
|
-
/* @__PURE__ */
|
|
1308
|
-
/* @__PURE__ */
|
|
1310
|
+
return r ? /* @__PURE__ */ l(ys, { children: /* @__PURE__ */ m(zt, { delayDuration: s, children: [
|
|
1311
|
+
/* @__PURE__ */ l(Wt, { asChild: !0, children: e }),
|
|
1312
|
+
/* @__PURE__ */ l(Yt, { side: n, sideOffset: 10, children: /* @__PURE__ */ l("p", { children: t }) })
|
|
1309
1313
|
] }) }) : e;
|
|
1310
1314
|
}
|
|
1311
|
-
const Ri = F(() => import("./unpublish-page-
|
|
1312
|
-
const { t: e } =
|
|
1315
|
+
const Ri = F(() => import("./unpublish-page-DvOWVBIf.js")), Ui = F(() => import("./translation-warning-modal-DalBhNQy.js")), Bi = () => {
|
|
1316
|
+
const { t: e } = _e(), { selectedLang: t, fallbackLang: n } = Se(), s = oe("getPreviewUrl", async (h) => h), [r, a] = K(""), { data: i } = ie(), { data: o } = xe(), { data: c } = Ce(), u = Q(
|
|
1313
1317
|
() => {
|
|
1314
1318
|
var h;
|
|
1315
1319
|
return (h = o == null ? void 0 : o.find((g) => (g == null ? void 0 : g.lang) === t)) == null ? void 0 : h.slug;
|
|
1316
1320
|
},
|
|
1317
1321
|
[t, o]
|
|
1318
|
-
),
|
|
1322
|
+
), d = j((h) => {
|
|
1319
1323
|
var g;
|
|
1320
|
-
return (g = re(
|
|
1321
|
-
}, [
|
|
1324
|
+
return (g = re(c, { key: h })) == null ? void 0 : g.hasSlug;
|
|
1325
|
+
}, [c]), f = t === n ? "" : t;
|
|
1322
1326
|
return se(() => {
|
|
1323
1327
|
(async () => {
|
|
1324
1328
|
if (typeof s == "function") {
|
|
1325
|
-
const h = !
|
|
1326
|
-
h ? `${
|
|
1329
|
+
const h = !d(i == null ? void 0 : i.pageType), g = await s(
|
|
1330
|
+
h ? `${f !== "" ? f + "/" : ""}${i == null ? void 0 : i.id}` : u || ""
|
|
1327
1331
|
);
|
|
1328
1332
|
a(g);
|
|
1329
1333
|
} else
|
|
1330
1334
|
a("");
|
|
1331
1335
|
})();
|
|
1332
|
-
}, [s, u, i == null ? void 0 : i.pageType,
|
|
1336
|
+
}, [s, u, i == null ? void 0 : i.pageType, d, i == null ? void 0 : i.id, f]), /* @__PURE__ */ l(ge, { children: /* @__PURE__ */ l(Gn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ l("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ l(U, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ l(ka, { className: "h-4 w-4" }) }) }) }) });
|
|
1333
1337
|
}, Mi = () => {
|
|
1334
|
-
const { t: e } =
|
|
1338
|
+
const { t: e } = _e(), [t, n] = $r();
|
|
1335
1339
|
return /* @__PURE__ */ m(ge, { children: [
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
|
|
1340
|
+
/* @__PURE__ */ l(Gn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ l(
|
|
1341
|
+
U,
|
|
1338
1342
|
{
|
|
1339
1343
|
variant: t === "theme" ? "outline" : "ghost",
|
|
1340
1344
|
size: "icon",
|
|
1341
1345
|
className: "gap-2",
|
|
1342
1346
|
onClick: () => n(t === "theme" ? "block" : "theme"),
|
|
1343
|
-
children: /* @__PURE__ */
|
|
1347
|
+
children: /* @__PURE__ */ l(Oa, { className: "h-4 w-4" })
|
|
1344
1348
|
}
|
|
1345
1349
|
) }),
|
|
1346
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ l("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1347
1351
|
] });
|
|
1348
1352
|
}, Fi = () => {
|
|
1349
|
-
const { t: e } =
|
|
1353
|
+
const { t: e } = _e(), [t, n] = K(!1), { isLocked: s } = Ie(), { savePageAsync: r, saveState: a } = Ge();
|
|
1350
1354
|
se(() => {
|
|
1351
|
-
const
|
|
1352
|
-
a === "UNSAVED" && (
|
|
1355
|
+
const d = (f) => {
|
|
1356
|
+
a === "UNSAVED" && (f.preventDefault(), f.returnValue = !1);
|
|
1353
1357
|
};
|
|
1354
|
-
return a === "UNSAVED" && window.addEventListener("beforeunload",
|
|
1355
|
-
window.removeEventListener("beforeunload",
|
|
1358
|
+
return a === "UNSAVED" && window.addEventListener("beforeunload", d), () => {
|
|
1359
|
+
window.removeEventListener("beforeunload", d);
|
|
1356
1360
|
};
|
|
1357
1361
|
}, [a]);
|
|
1358
1362
|
const i = j(async () => {
|
|
1359
1363
|
t || (n(!0), await r(), n(!1));
|
|
1360
|
-
}, [r, t]), { buttonIcon: o, buttonClass:
|
|
1364
|
+
}, [r, t]), { buttonIcon: o, buttonClass: c, tooltipContent: u } = Q(() => {
|
|
1361
1365
|
switch (a) {
|
|
1362
1366
|
case "UNSAVED":
|
|
1363
1367
|
return {
|
|
1364
1368
|
tooltipContent: e("Save draft"),
|
|
1365
|
-
buttonIcon: /* @__PURE__ */
|
|
1369
|
+
buttonIcon: /* @__PURE__ */ l(Ga, { className: "h-4 w-4" }),
|
|
1366
1370
|
buttonClass: "gap-x-1"
|
|
1367
1371
|
};
|
|
1368
1372
|
case "SAVING":
|
|
1369
1373
|
return {
|
|
1370
1374
|
tooltipContent: e("Saving"),
|
|
1371
|
-
buttonIcon: /* @__PURE__ */
|
|
1375
|
+
buttonIcon: /* @__PURE__ */ l(Ft, { className: "h-4 w-4 animate-spin text-sky-700" }),
|
|
1372
1376
|
buttonClass: "gap-x-1"
|
|
1373
1377
|
};
|
|
1374
1378
|
case "SAVED":
|
|
1375
1379
|
return {
|
|
1376
1380
|
tooltipContent: e("Saved"),
|
|
1377
|
-
buttonIcon: /* @__PURE__ */
|
|
1381
|
+
buttonIcon: /* @__PURE__ */ l(Da, { className: "h-4 w-4" }),
|
|
1378
1382
|
buttonClass: "text-green-500 gap-x-1"
|
|
1379
1383
|
};
|
|
1380
1384
|
}
|
|
1381
1385
|
}, [a, e]);
|
|
1382
|
-
return s ? null : /* @__PURE__ */ m(
|
|
1386
|
+
return s ? null : /* @__PURE__ */ m(U, { size: "sm", variant: "ghost", onClick: i, className: `${c} w-24 max-w-24`, children: [
|
|
1383
1387
|
o,
|
|
1384
1388
|
" ",
|
|
1385
1389
|
u
|
|
1386
1390
|
] });
|
|
1387
1391
|
}, qi = () => {
|
|
1388
|
-
const { t: e } =
|
|
1389
|
-
const
|
|
1392
|
+
const { t: e } = _e(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = xe(), [r, a] = K(!1), [i, o] = K(!1), [c, u] = K(null), { savePageAsync: d } = Ge(), [f, h] = K(!1), { data: g } = ie(), { mutate: p, isPending: S } = Cs(), { needTranslations: P } = Ge(), T = P(), { buttonText: y, buttonClassName: A, isPublished: b } = Q(() => {
|
|
1393
|
+
const w = g && (g == null ? void 0 : g.online);
|
|
1390
1394
|
return {
|
|
1391
|
-
buttonClassName:
|
|
1392
|
-
isPublished:
|
|
1393
|
-
buttonText: e(
|
|
1395
|
+
buttonClassName: w ? "hover:bg-green-600 bg-green-500" : "",
|
|
1396
|
+
isPublished: w,
|
|
1397
|
+
buttonText: e(w ? "Published" : "Publish")
|
|
1394
1398
|
};
|
|
1395
1399
|
}, [g, e]), M = async () => {
|
|
1396
|
-
if (
|
|
1400
|
+
if (T) {
|
|
1397
1401
|
h(!0);
|
|
1398
1402
|
return;
|
|
1399
1403
|
}
|
|
1400
|
-
|
|
1401
|
-
},
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1404
|
+
k();
|
|
1405
|
+
}, k = () => {
|
|
1406
|
+
const w = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
|
|
1407
|
+
p({ ids: fs(w) }, { onSuccess: () => on("TOP_RIGHT") });
|
|
1404
1408
|
}, pe = () => {
|
|
1405
|
-
h(!1),
|
|
1409
|
+
h(!1), k();
|
|
1406
1410
|
}, ye = async () => {
|
|
1407
|
-
h(!1), await
|
|
1408
|
-
},
|
|
1411
|
+
h(!1), await d();
|
|
1412
|
+
}, B = Q(() => Bt(s ?? [], "id"), [s]);
|
|
1409
1413
|
return /* @__PURE__ */ m(ge, { children: [
|
|
1410
1414
|
/* @__PURE__ */ m("div", { className: "flex", children: [
|
|
1411
1415
|
/* @__PURE__ */ m(
|
|
1412
|
-
|
|
1416
|
+
U,
|
|
1413
1417
|
{
|
|
1414
1418
|
size: "sm",
|
|
1415
1419
|
onClick: M,
|
|
1416
|
-
disabled:
|
|
1417
|
-
className: `relative flex items-center gap-1 overflow-hidden rounded-r-none text-white transition-all duration-300 ease-in-out ${
|
|
1420
|
+
disabled: S || !(g != null && g.id),
|
|
1421
|
+
className: `relative flex items-center gap-1 overflow-hidden rounded-r-none text-white transition-all duration-300 ease-in-out ${A}`,
|
|
1418
1422
|
onMouseEnter: () => o(!0),
|
|
1419
1423
|
onMouseLeave: () => o(!1),
|
|
1420
1424
|
children: [
|
|
1421
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ l(
|
|
1422
1426
|
"span",
|
|
1423
1427
|
{
|
|
1424
1428
|
className: `flex items-center transition-transform duration-300 ease-in-out ${i ? "-translate-y-10" : ""}`,
|
|
1425
|
-
children:
|
|
1429
|
+
children: b ? /* @__PURE__ */ l(Hn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Qn, { className: "h-4 w-4" })
|
|
1426
1430
|
}
|
|
1427
1431
|
),
|
|
1428
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ l(
|
|
1429
1433
|
"span",
|
|
1430
1434
|
{
|
|
1431
1435
|
className: `absolute inset-0 left-3 flex items-center transition-transform duration-300 ease-in-out ${i ? "" : "translate-y-10"}`,
|
|
1432
|
-
children:
|
|
1436
|
+
children: b ? /* @__PURE__ */ l(Qn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Hn, { className: "h-4 w-4" })
|
|
1433
1437
|
}
|
|
1434
1438
|
),
|
|
1435
|
-
/* @__PURE__ */
|
|
1439
|
+
/* @__PURE__ */ l("span", { children: y }),
|
|
1436
1440
|
t ? `(${Fn(t)})` : ""
|
|
1437
1441
|
]
|
|
1438
1442
|
}
|
|
1439
1443
|
),
|
|
1440
1444
|
/* @__PURE__ */ m(wn, { children: [
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
|
|
1445
|
+
/* @__PURE__ */ l(bn, { asChild: !0, children: /* @__PURE__ */ l(
|
|
1446
|
+
U,
|
|
1443
1447
|
{
|
|
1444
1448
|
size: "sm",
|
|
1445
|
-
disabled:
|
|
1446
|
-
className: `rounded-l-none border-l border-white/50 px-2 text-white ${
|
|
1447
|
-
children: /* @__PURE__ */
|
|
1449
|
+
disabled: S || !(g != null && g.id),
|
|
1450
|
+
className: `rounded-l-none border-l border-white/50 px-2 text-white ${A}`,
|
|
1451
|
+
children: /* @__PURE__ */ l(hn, { className: "h-4 w-4" })
|
|
1448
1452
|
}
|
|
1449
1453
|
) }),
|
|
1450
1454
|
/* @__PURE__ */ m(In, { align: "end", className: "w-52", children: [
|
|
1451
1455
|
/* @__PURE__ */ m(
|
|
1452
1456
|
ue,
|
|
1453
1457
|
{
|
|
1454
|
-
disabled:
|
|
1458
|
+
disabled: S,
|
|
1455
1459
|
className: "cursor-pointer text-xs",
|
|
1456
|
-
onClick: () =>
|
|
1460
|
+
onClick: () => p({ ids: B }, { onSuccess: () => on("TOP_RIGHT") }),
|
|
1457
1461
|
children: [
|
|
1458
1462
|
e("Publish"),
|
|
1459
1463
|
" with translation pages"
|
|
1460
1464
|
]
|
|
1461
1465
|
}
|
|
1462
1466
|
),
|
|
1463
|
-
!
|
|
1467
|
+
!b && /* @__PURE__ */ m(
|
|
1464
1468
|
ue,
|
|
1465
1469
|
{
|
|
1466
|
-
disabled:
|
|
1470
|
+
disabled: S,
|
|
1467
1471
|
className: "cursor-pointer text-xs",
|
|
1468
|
-
onClick: () =>
|
|
1472
|
+
onClick: () => p({ ids: [g == null ? void 0 : g.id] }, { onSuccess: () => on("TOP_RIGHT") }),
|
|
1469
1473
|
children: [
|
|
1470
1474
|
e("Publish"),
|
|
1471
1475
|
" page"
|
|
@@ -1476,7 +1480,7 @@ const Ri = F(() => import("./unpublish-page-CKKU1St1.js")), Ui = F(() => import(
|
|
|
1476
1480
|
e("Open"),
|
|
1477
1481
|
" publish menu"
|
|
1478
1482
|
] }),
|
|
1479
|
-
|
|
1483
|
+
b && /* @__PURE__ */ m(ue, { onClick: () => u(n), className: "cursor-pointer text-xs", children: [
|
|
1480
1484
|
e("Unpublish"),
|
|
1481
1485
|
" page ",
|
|
1482
1486
|
t ? `(${Fn(t)})` : ""
|
|
@@ -1484,27 +1488,27 @@ const Ri = F(() => import("./unpublish-page-CKKU1St1.js")), Ui = F(() => import(
|
|
|
1484
1488
|
] })
|
|
1485
1489
|
] })
|
|
1486
1490
|
] }),
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
|
|
1489
|
-
|
|
1491
|
+
/* @__PURE__ */ l(Oi, { showModal: r, onClose: () => a(!1) }),
|
|
1492
|
+
c && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ri, { page: c, onClose: () => u(null) }) }),
|
|
1493
|
+
f && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
1490
1494
|
Ui,
|
|
1491
1495
|
{
|
|
1492
|
-
isOpen:
|
|
1496
|
+
isOpen: f,
|
|
1493
1497
|
onClose: ye,
|
|
1494
1498
|
onContinue: pe,
|
|
1495
|
-
isPending:
|
|
1499
|
+
isPending: S
|
|
1496
1500
|
}
|
|
1497
1501
|
) })
|
|
1498
1502
|
] });
|
|
1499
1503
|
};
|
|
1500
1504
|
function Ki() {
|
|
1501
|
-
const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s =
|
|
1502
|
-
return e || !s ? /* @__PURE__ */
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
/* @__PURE__ */
|
|
1505
|
+
const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = Ps(n);
|
|
1506
|
+
return e || !s ? /* @__PURE__ */ l("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
|
|
1507
|
+
/* @__PURE__ */ l(Ii, {}),
|
|
1508
|
+
/* @__PURE__ */ l(an, { permission: ce.EDIT_THEME, children: /* @__PURE__ */ l(Mi, {}) }),
|
|
1509
|
+
/* @__PURE__ */ l(Bi, {}),
|
|
1510
|
+
/* @__PURE__ */ l(an, { permission: ce.SAVE_PAGE, children: /* @__PURE__ */ l(Fi, {}) }),
|
|
1511
|
+
/* @__PURE__ */ l(an, { permission: ce.PUBLISH_PAGE, children: /* @__PURE__ */ l(qi, {}) })
|
|
1508
1512
|
] });
|
|
1509
1513
|
}
|
|
1510
1514
|
const Vi = ({
|
|
@@ -1516,76 +1520,76 @@ const Vi = ({
|
|
|
1516
1520
|
setMarkAsTemplate: a,
|
|
1517
1521
|
setUnmarkAsTemplate: i,
|
|
1518
1522
|
children: o,
|
|
1519
|
-
isLanguagePage:
|
|
1523
|
+
isLanguagePage: c
|
|
1520
1524
|
}) => {
|
|
1521
|
-
const { t: u } =
|
|
1522
|
-
return !
|
|
1523
|
-
/* @__PURE__ */
|
|
1525
|
+
const { t: u } = _e(), { hasPermission: d } = ms(), { data: f } = Ce(), h = Q(() => re(f, { key: e.pageType }), [f, e.pageType]), g = Q(() => !!e.isTemplate, [e.isTemplate]), p = Q(() => !!(h != null && h.hasSlug), [h == null ? void 0 : h.hasSlug]);
|
|
1526
|
+
return !d(ce.EDIT_PAGE) && !d(ce.DELETE_PAGE) && !d(ce.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(wn, { children: [
|
|
1527
|
+
/* @__PURE__ */ l(bn, { asChild: !0, onClick: (P) => P.stopPropagation(), children: o }),
|
|
1524
1528
|
/* @__PURE__ */ m(In, { align: "center", className: "text-sm", children: [
|
|
1525
|
-
|
|
1529
|
+
d(ce.ADD_PAGE) && !c && /* @__PURE__ */ m(
|
|
1526
1530
|
ue,
|
|
1527
1531
|
{
|
|
1528
1532
|
className: "flex cursor-pointer items-center gap-2",
|
|
1529
|
-
onClick: (
|
|
1530
|
-
|
|
1533
|
+
onClick: (P) => {
|
|
1534
|
+
P.stopPropagation(), t(e);
|
|
1531
1535
|
},
|
|
1532
1536
|
children: [
|
|
1533
|
-
/* @__PURE__ */
|
|
1537
|
+
/* @__PURE__ */ l(xa, { className: "size-3" }),
|
|
1534
1538
|
"Duplicate page"
|
|
1535
1539
|
]
|
|
1536
1540
|
}
|
|
1537
1541
|
),
|
|
1538
|
-
|
|
1542
|
+
d(ce.EDIT_PAGE) && /* @__PURE__ */ m(
|
|
1539
1543
|
ue,
|
|
1540
1544
|
{
|
|
1541
1545
|
className: "flex cursor-pointer items-center gap-2",
|
|
1542
|
-
onClick: (
|
|
1543
|
-
|
|
1546
|
+
onClick: (P) => {
|
|
1547
|
+
P.stopPropagation(), n({
|
|
1544
1548
|
...e,
|
|
1545
1549
|
global: !(h != null && h.hasSlug)
|
|
1546
1550
|
});
|
|
1547
1551
|
},
|
|
1548
1552
|
children: [
|
|
1549
|
-
/* @__PURE__ */
|
|
1553
|
+
/* @__PURE__ */ l(Ra, { className: "size-3" }),
|
|
1550
1554
|
"Edit"
|
|
1551
1555
|
]
|
|
1552
1556
|
}
|
|
1553
1557
|
),
|
|
1554
|
-
(e == null ? void 0 : e.online) &&
|
|
1558
|
+
(e == null ? void 0 : e.online) && d(ce.UNPUBLISH_PAGE) && /* @__PURE__ */ m(
|
|
1555
1559
|
ue,
|
|
1556
1560
|
{
|
|
1557
1561
|
className: "flex cursor-pointer items-center gap-2",
|
|
1558
|
-
onClick: (
|
|
1559
|
-
|
|
1562
|
+
onClick: (P) => {
|
|
1563
|
+
P.stopPropagation(), s(e);
|
|
1560
1564
|
},
|
|
1561
1565
|
children: [
|
|
1562
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ l(Ua, { className: "size-3" }),
|
|
1563
1567
|
u("Unpublish")
|
|
1564
1568
|
]
|
|
1565
1569
|
}
|
|
1566
1570
|
),
|
|
1567
|
-
|
|
1571
|
+
d(ce.DELETE_PAGE) && /* @__PURE__ */ m(
|
|
1568
1572
|
ue,
|
|
1569
1573
|
{
|
|
1570
1574
|
className: "flex cursor-pointer items-center gap-2",
|
|
1571
|
-
onClick: (
|
|
1572
|
-
|
|
1575
|
+
onClick: (P) => {
|
|
1576
|
+
P.stopPropagation(), r(e);
|
|
1573
1577
|
},
|
|
1574
1578
|
children: [
|
|
1575
|
-
/* @__PURE__ */
|
|
1579
|
+
/* @__PURE__ */ l(Ba, { className: "size-3" }),
|
|
1576
1580
|
u("Delete")
|
|
1577
1581
|
]
|
|
1578
1582
|
}
|
|
1579
1583
|
),
|
|
1580
|
-
|
|
1584
|
+
d(ce.MARK_AS_TEMPLATE) && p && !c && /* @__PURE__ */ l(ge, { children: g ? /* @__PURE__ */ m(
|
|
1581
1585
|
ue,
|
|
1582
1586
|
{
|
|
1583
1587
|
className: "flex cursor-pointer items-center gap-2",
|
|
1584
|
-
onClick: (
|
|
1585
|
-
|
|
1588
|
+
onClick: (P) => {
|
|
1589
|
+
P.stopPropagation(), i(e);
|
|
1586
1590
|
},
|
|
1587
1591
|
children: [
|
|
1588
|
-
/* @__PURE__ */
|
|
1592
|
+
/* @__PURE__ */ l($n, { className: "size-3" }),
|
|
1589
1593
|
u("Unmark as template")
|
|
1590
1594
|
]
|
|
1591
1595
|
}
|
|
@@ -1593,87 +1597,87 @@ const Vi = ({
|
|
|
1593
1597
|
ue,
|
|
1594
1598
|
{
|
|
1595
1599
|
className: "flex cursor-pointer items-center gap-2",
|
|
1596
|
-
onClick: (
|
|
1597
|
-
|
|
1600
|
+
onClick: (P) => {
|
|
1601
|
+
P.stopPropagation(), a(e);
|
|
1598
1602
|
},
|
|
1599
1603
|
children: [
|
|
1600
|
-
/* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ l($n, { className: "size-3" }),
|
|
1601
1605
|
u("Mark as template")
|
|
1602
1606
|
]
|
|
1603
1607
|
}
|
|
1604
1608
|
) })
|
|
1605
1609
|
] })
|
|
1606
1610
|
] });
|
|
1607
|
-
}, Hi = F(() => import("./add-new-page-
|
|
1608
|
-
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [
|
|
1611
|
+
}, Hi = F(() => import("./add-new-page-DK25Y0zS.js")), Qi = F(() => import("./delete-page-B95T2Prd.js")), $i = F(() => import("./duplicate-page-CrzzObAj.js")), ji = F(() => import("./mark-as-template-CmCCMaQg.js")), zi = F(() => import("./unmark-as-template-BJ5CTNAe.js")), Wi = F(() => import("./unpublish-page-DvOWVBIf.js")), Yi = () => {
|
|
1612
|
+
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [c, u] = K(null), [d, f] = K(null), { data: h, isFetching: g } = be(), { selectedLang: p, fallbackLang: S } = Se(), { data: P } = xe(), T = P == null ? void 0 : P.find((k) => k.lang === p), { isLocked: y } = Ie(), A = !(h != null && h.slug), [, b] = te(On);
|
|
1609
1613
|
if (!h) return null;
|
|
1610
|
-
const M = (
|
|
1611
|
-
|
|
1614
|
+
const M = (k) => {
|
|
1615
|
+
p.length > 0 && p !== S ? b({
|
|
1612
1616
|
edit: !0,
|
|
1613
|
-
id:
|
|
1614
|
-
primaryPage:
|
|
1615
|
-
}) :
|
|
1617
|
+
id: k == null ? void 0 : k.id,
|
|
1618
|
+
primaryPage: k == null ? void 0 : k.primaryPage
|
|
1619
|
+
}) : f(k);
|
|
1616
1620
|
};
|
|
1617
1621
|
return /* @__PURE__ */ m(ge, { children: [
|
|
1618
1622
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
|
|
1623
|
+
/* @__PURE__ */ l(Is, { children: /* @__PURE__ */ l(
|
|
1624
|
+
U,
|
|
1621
1625
|
{
|
|
1622
1626
|
className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
|
|
1623
1627
|
variant: "ghost",
|
|
1624
|
-
children: g ? /* @__PURE__ */
|
|
1625
|
-
|
|
1626
|
-
V(
|
|
1628
|
+
children: g ? /* @__PURE__ */ l(Ft, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
|
|
1629
|
+
A ? /* @__PURE__ */ l(Ma, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ l(Fa, { className: "mr-1 h-4 w-4" }),
|
|
1630
|
+
V(T || h, "name") ?? ""
|
|
1627
1631
|
] })
|
|
1628
1632
|
}
|
|
1629
1633
|
) }),
|
|
1630
|
-
|
|
1631
|
-
|
|
1634
|
+
y ? /* @__PURE__ */ l(
|
|
1635
|
+
U,
|
|
1632
1636
|
{
|
|
1633
1637
|
variant: "ghost",
|
|
1634
1638
|
size: "icon",
|
|
1635
1639
|
className: "h-7 w-7 cursor-not-allowed rounded opacity-50 hover:bg-transparent",
|
|
1636
|
-
children: /* @__PURE__ */
|
|
1640
|
+
children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" })
|
|
1637
1641
|
}
|
|
1638
|
-
) : /* @__PURE__ */
|
|
1642
|
+
) : /* @__PURE__ */ l(
|
|
1639
1643
|
Vi,
|
|
1640
1644
|
{
|
|
1641
1645
|
page: h,
|
|
1642
|
-
setDuplicatePage: (
|
|
1643
|
-
setAddEditPage: (
|
|
1644
|
-
setUnpublishPage: (
|
|
1645
|
-
setDeletePage: (
|
|
1646
|
-
setMarkAsTemplate: (
|
|
1647
|
-
setUnmarkAsTemplate: (
|
|
1648
|
-
isLanguagePage:
|
|
1649
|
-
children: /* @__PURE__ */
|
|
1646
|
+
setDuplicatePage: (k) => u(k),
|
|
1647
|
+
setAddEditPage: (k) => M(k),
|
|
1648
|
+
setUnpublishPage: (k) => s(k),
|
|
1649
|
+
setDeletePage: (k) => t(k),
|
|
1650
|
+
setMarkAsTemplate: (k) => a(k),
|
|
1651
|
+
setUnmarkAsTemplate: (k) => o(k),
|
|
1652
|
+
isLanguagePage: p.length > 0 && p !== S,
|
|
1653
|
+
children: /* @__PURE__ */ l(U, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" }) })
|
|
1650
1654
|
}
|
|
1651
1655
|
)
|
|
1652
1656
|
] }),
|
|
1653
|
-
|
|
1657
|
+
d && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
1654
1658
|
Hi,
|
|
1655
1659
|
{
|
|
1656
|
-
closePanel: () =>
|
|
1660
|
+
closePanel: () => f(null),
|
|
1657
1661
|
editPage: () => {
|
|
1658
1662
|
},
|
|
1659
|
-
addEditPage:
|
|
1660
|
-
setAddEditPage:
|
|
1663
|
+
addEditPage: d,
|
|
1664
|
+
setAddEditPage: f
|
|
1661
1665
|
}
|
|
1662
1666
|
) }),
|
|
1663
|
-
e && /* @__PURE__ */
|
|
1664
|
-
n && /* @__PURE__ */
|
|
1665
|
-
r && /* @__PURE__ */
|
|
1666
|
-
i && /* @__PURE__ */
|
|
1667
|
-
|
|
1667
|
+
e && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Qi, { page: e, onClose: () => t(null) }) }),
|
|
1668
|
+
n && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Wi, { page: n, onClose: () => s(null) }) }),
|
|
1669
|
+
r && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(ji, { page: r, onClose: () => a(null) }) }),
|
|
1670
|
+
i && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(zi, { page: i, onClose: () => o(null) }) }),
|
|
1671
|
+
c && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
1668
1672
|
$i,
|
|
1669
1673
|
{
|
|
1670
|
-
page:
|
|
1674
|
+
page: c,
|
|
1671
1675
|
onClose: () => u(null),
|
|
1672
|
-
closePanel: () =>
|
|
1676
|
+
closePanel: () => f(null)
|
|
1673
1677
|
}
|
|
1674
1678
|
) })
|
|
1675
1679
|
] });
|
|
1676
|
-
},
|
|
1680
|
+
}, Ns = ({ children: e, className: t = "" }) => /* @__PURE__ */ l(
|
|
1677
1681
|
"div",
|
|
1678
1682
|
{
|
|
1679
1683
|
className: Mt(
|
|
@@ -1682,60 +1686,60 @@ const Vi = ({
|
|
|
1682
1686
|
),
|
|
1683
1687
|
children: e
|
|
1684
1688
|
}
|
|
1685
|
-
), Ji = ({ hasDynamicPage: e }) => /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1687
|
-
/* @__PURE__ */
|
|
1688
|
-
] }) }), Xi = F(() => import("./dynamic-page-selector-
|
|
1689
|
+
), Ji = ({ hasDynamicPage: e }) => /* @__PURE__ */ l(Ns, { children: /* @__PURE__ */ m("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
|
|
1690
|
+
/* @__PURE__ */ l("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
1691
|
+
/* @__PURE__ */ l("p", { className: "pt-2 text-center text-sm font-light text-gray-600", children: e ? "Please select a page from the list in the top header. This will enable you to edit the page." : "Please add a new page" })
|
|
1692
|
+
] }) }), Xi = F(() => import("./dynamic-page-selector-D6wQnNfH.js")), Zi = () => {
|
|
1689
1693
|
const { dynamicPage: e, allLangPages: t, isFetching: n } = ai(), s = t.length > 0;
|
|
1690
1694
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1691
|
-
!e && /* @__PURE__ */
|
|
1692
|
-
/* @__PURE__ */
|
|
1695
|
+
!e && /* @__PURE__ */ l(Ji, { hasDynamicPage: s }),
|
|
1696
|
+
/* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Xi, {}) })
|
|
1693
1697
|
] });
|
|
1694
1698
|
}, eo = () => {
|
|
1695
|
-
const { data: e, isFetching: t } = be(), { data: n, isFetching: s } = ie(), r = V(n, "dynamic", !1), a = Nn(), i =
|
|
1699
|
+
const { data: e, isFetching: t } = be(), { data: n, isFetching: s } = ie(), r = V(n, "dynamic", !1), a = Nn(), i = jr("dynamic-page-selector"), o = e == null ? void 0 : e.slug, c = !o, u = ci(), d = t || s, h = (c ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
|
|
1696
1700
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center gap-x-1", children: [
|
|
1697
|
-
/* @__PURE__ */
|
|
1701
|
+
/* @__PURE__ */ l(
|
|
1698
1702
|
"div",
|
|
1699
1703
|
{
|
|
1700
1704
|
className: Mt(
|
|
1701
1705
|
"flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
|
|
1702
|
-
|
|
1706
|
+
d && "max-w-0 overflow-hidden opacity-0"
|
|
1703
1707
|
),
|
|
1704
|
-
children: /* @__PURE__ */
|
|
1708
|
+
children: /* @__PURE__ */ l(Yi, {})
|
|
1705
1709
|
}
|
|
1706
1710
|
),
|
|
1707
1711
|
/* @__PURE__ */ m(
|
|
1708
1712
|
"div",
|
|
1709
1713
|
{
|
|
1710
1714
|
className: Mt(
|
|
1711
|
-
"flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (
|
|
1712
|
-
|
|
1715
|
+
"flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (c ? " pr-2" : ""),
|
|
1716
|
+
d && "max-w-0 overflow-hidden opacity-0"
|
|
1713
1717
|
),
|
|
1714
1718
|
children: [
|
|
1715
|
-
/* @__PURE__ */
|
|
1719
|
+
/* @__PURE__ */ l(Pi, {}),
|
|
1716
1720
|
/* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
|
|
1717
|
-
/* @__PURE__ */
|
|
1721
|
+
/* @__PURE__ */ l(
|
|
1718
1722
|
"div",
|
|
1719
1723
|
{
|
|
1720
|
-
className: `w-full max-w-[200px] overflow-hidden overflow-ellipsis whitespace-nowrap pl-1 text-xs ${
|
|
1724
|
+
className: `w-full max-w-[200px] overflow-hidden overflow-ellipsis whitespace-nowrap pl-1 text-xs ${c ? "italic text-gray-400" : "font-mono text-gray-500"}`,
|
|
1721
1725
|
children: h === "/" ? /* @__PURE__ */ m("span", { className: "text-gray-900", children: [
|
|
1722
1726
|
"/",
|
|
1723
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ l("span", { className: "text-[11px] font-light italic text-gray-400", children: "(Homepage)" })
|
|
1724
1728
|
] }) : h
|
|
1725
1729
|
}
|
|
1726
1730
|
),
|
|
1727
|
-
!
|
|
1731
|
+
!c && /* @__PURE__ */ l("a", { href: u, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ l("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ l(qa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
|
|
1728
1732
|
] })
|
|
1729
1733
|
]
|
|
1730
1734
|
}
|
|
1731
1735
|
),
|
|
1732
|
-
r && i && /* @__PURE__ */
|
|
1736
|
+
r && i && /* @__PURE__ */ l(Zi, {})
|
|
1733
1737
|
] });
|
|
1734
1738
|
}, to = () => /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-between px-2", children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1736
|
-
/* @__PURE__ */
|
|
1737
|
-
/* @__PURE__ */
|
|
1738
|
-
] }),
|
|
1739
|
+
/* @__PURE__ */ l(vi, {}),
|
|
1740
|
+
/* @__PURE__ */ l(eo, {}),
|
|
1741
|
+
/* @__PURE__ */ l(Ki, {})
|
|
1742
|
+
] }), Ls = () => {
|
|
1739
1743
|
const e = W(), { data: t } = ae({
|
|
1740
1744
|
queryKey: [E.AI_CONTEXT],
|
|
1741
1745
|
initialData: "",
|
|
@@ -1749,7 +1753,7 @@ const Vi = ({
|
|
|
1749
1753
|
[e]
|
|
1750
1754
|
), aiContext: t };
|
|
1751
1755
|
}, no = () => {
|
|
1752
|
-
const e =
|
|
1756
|
+
const e = L(), { aiContext: t } = Ls(), n = C();
|
|
1753
1757
|
return j(
|
|
1754
1758
|
async (s, r, a, i) => n(e, {
|
|
1755
1759
|
action: E.ASK_AI,
|
|
@@ -1763,14 +1767,14 @@ const Vi = ({
|
|
|
1763
1767
|
return {
|
|
1764
1768
|
...s,
|
|
1765
1769
|
...vn(n, [
|
|
1766
|
-
...
|
|
1770
|
+
...Or(s),
|
|
1767
1771
|
"_type",
|
|
1768
1772
|
"_id",
|
|
1769
1773
|
"_name",
|
|
1770
1774
|
"_parent",
|
|
1771
1775
|
"_bindings"
|
|
1772
1776
|
]),
|
|
1773
|
-
...
|
|
1777
|
+
...Dr(n, (r, a) => Gr(a, "_attrs")),
|
|
1774
1778
|
...n
|
|
1775
1779
|
};
|
|
1776
1780
|
}
|
|
@@ -1781,28 +1785,28 @@ const Vi = ({
|
|
|
1781
1785
|
if (!e || he(e)) return { blocks: [] };
|
|
1782
1786
|
const n = hs(
|
|
1783
1787
|
e,
|
|
1784
|
-
(s) => !
|
|
1788
|
+
(s) => !kr(s == null ? void 0 : s._type, "@chai/")
|
|
1785
1789
|
);
|
|
1786
1790
|
return { blocks: so(t, n) };
|
|
1787
1791
|
}, [e, t]);
|
|
1788
1792
|
}, ao = () => {
|
|
1789
|
-
const [e] = le(), t = e.get("page"), n =
|
|
1793
|
+
const [e] = le(), t = e.get("page"), n = L(), { setAiContext: s } = Ls(), [, r] = Ln(), [, a] = li(), [, i] = zr(), o = C();
|
|
1790
1794
|
return ae({
|
|
1791
1795
|
queryKey: [E.GET_DRAFT_PAGE, t],
|
|
1792
1796
|
staleTime: 1 / 0,
|
|
1793
1797
|
gcTime: 0,
|
|
1794
1798
|
queryFn: async () => {
|
|
1795
1799
|
i(!1);
|
|
1796
|
-
const
|
|
1800
|
+
const c = await o(n, {
|
|
1797
1801
|
action: E.GET_DRAFT_PAGE,
|
|
1798
1802
|
data: { id: t, draft: !0 }
|
|
1799
|
-
}), u =
|
|
1800
|
-
return s(V(
|
|
1803
|
+
}), u = c.blocks ?? [], d = re(u, { _type: "@chai/ai-context" });
|
|
1804
|
+
return s(V(d, "_value", "") || ""), r((f) => ({ ...f, lastSaved: c.lastSaved })), a(V(c, "metadata", {})), setTimeout(() => i(!0), 500), u;
|
|
1801
1805
|
},
|
|
1802
1806
|
enabled: !!t
|
|
1803
1807
|
});
|
|
1804
1808
|
}, io = () => {
|
|
1805
|
-
const { data: e } = ie(), { data: t } = be(), n =
|
|
1809
|
+
const { data: e } = ie(), { data: t } = be(), n = L(), s = C(), r = Dn(), a = Nn();
|
|
1806
1810
|
return ae({
|
|
1807
1811
|
queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
|
|
1808
1812
|
staleTime: 1 / 0,
|
|
@@ -1832,7 +1836,7 @@ const Vi = ({
|
|
|
1832
1836
|
enabled: !!(e != null && e.pageType) && !!t.id
|
|
1833
1837
|
});
|
|
1834
1838
|
}, oo = () => {
|
|
1835
|
-
const e =
|
|
1839
|
+
const e = L(), t = W(), n = C();
|
|
1836
1840
|
return X({
|
|
1837
1841
|
mutationFn: async (s) => n(e, {
|
|
1838
1842
|
action: E.UPDATE_WEBSITE_SETTINGS,
|
|
@@ -1851,7 +1855,7 @@ const Vi = ({
|
|
|
1851
1855
|
}
|
|
1852
1856
|
});
|
|
1853
1857
|
}, Vc = () => {
|
|
1854
|
-
const e =
|
|
1858
|
+
const e = L(), t = W(), n = C(), { selectedLang: s } = Se();
|
|
1855
1859
|
return X({
|
|
1856
1860
|
mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
1857
1861
|
onSuccess: () => {
|
|
@@ -1866,7 +1870,7 @@ const Vi = ({
|
|
|
1866
1870
|
}
|
|
1867
1871
|
});
|
|
1868
1872
|
}, Hc = () => {
|
|
1869
|
-
const e =
|
|
1873
|
+
const e = L(), t = W(), n = C(), { selectedLang: s } = Se();
|
|
1870
1874
|
return X({
|
|
1871
1875
|
mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
1872
1876
|
onSuccess: () => {
|
|
@@ -1881,7 +1885,7 @@ const Vi = ({
|
|
|
1881
1885
|
}
|
|
1882
1886
|
});
|
|
1883
1887
|
}, Qc = () => {
|
|
1884
|
-
const e =
|
|
1888
|
+
const e = L(), t = W(), n = C();
|
|
1885
1889
|
return X({
|
|
1886
1890
|
mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
|
|
1887
1891
|
onSuccess: () => {
|
|
@@ -1896,7 +1900,7 @@ const Vi = ({
|
|
|
1896
1900
|
}
|
|
1897
1901
|
});
|
|
1898
1902
|
}, $c = () => {
|
|
1899
|
-
const e =
|
|
1903
|
+
const e = L(), t = C();
|
|
1900
1904
|
return X({
|
|
1901
1905
|
mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
1902
1906
|
onError: (n) => {
|
|
@@ -1906,7 +1910,7 @@ const Vi = ({
|
|
|
1906
1910
|
}
|
|
1907
1911
|
});
|
|
1908
1912
|
}, jc = () => {
|
|
1909
|
-
const e =
|
|
1913
|
+
const e = L(), t = C();
|
|
1910
1914
|
return X({
|
|
1911
1915
|
mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
1912
1916
|
onSuccess: (n) => {
|
|
@@ -1919,7 +1923,7 @@ const Vi = ({
|
|
|
1919
1923
|
}
|
|
1920
1924
|
});
|
|
1921
1925
|
}, zc = () => {
|
|
1922
|
-
const e =
|
|
1926
|
+
const e = L(), t = C();
|
|
1923
1927
|
return X({
|
|
1924
1928
|
mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
1925
1929
|
onSuccess: (n) => {
|
|
@@ -1937,7 +1941,7 @@ const Vi = ({
|
|
|
1937
1941
|
action: "GET_LIBRARY_ITEM",
|
|
1938
1942
|
data: { id: e.id }
|
|
1939
1943
|
}), r = V(s, "html", ""), a = V(s, "blocks", []);
|
|
1940
|
-
return
|
|
1944
|
+
return xr(a) ? a : Yr(r);
|
|
1941
1945
|
},
|
|
1942
1946
|
async getUILibraryBlocks(e, t, n) {
|
|
1943
1947
|
try {
|
|
@@ -1952,7 +1956,7 @@ const Vi = ({
|
|
|
1952
1956
|
}
|
|
1953
1957
|
}
|
|
1954
1958
|
}, lo = () => {
|
|
1955
|
-
const e =
|
|
1959
|
+
const e = L(), t = C();
|
|
1956
1960
|
return ae({
|
|
1957
1961
|
queryKey: ["uiLibraries"],
|
|
1958
1962
|
staleTime: "static",
|
|
@@ -1971,7 +1975,7 @@ const Vi = ({
|
|
|
1971
1975
|
}
|
|
1972
1976
|
});
|
|
1973
1977
|
}, co = () => {
|
|
1974
|
-
const e =
|
|
1978
|
+
const e = Ss(), t = C(), { user: n } = Jt(), s = n == null ? void 0 : n.id;
|
|
1975
1979
|
return ae({
|
|
1976
1980
|
queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
|
|
1977
1981
|
queryFn: () => t(e, {
|
|
@@ -1982,7 +1986,7 @@ const Vi = ({
|
|
|
1982
1986
|
staleTime: 1 / 0
|
|
1983
1987
|
});
|
|
1984
1988
|
}, uo = () => {
|
|
1985
|
-
const e =
|
|
1989
|
+
const e = L(), t = C(), [, n] = Ln();
|
|
1986
1990
|
return { onSave: async ({
|
|
1987
1991
|
page: r,
|
|
1988
1992
|
blocks: a,
|
|
@@ -1993,8 +1997,8 @@ const Vi = ({
|
|
|
1993
1997
|
action: "UPDATE_PAGE",
|
|
1994
1998
|
data: { id: r, blocks: a, needTranslations: i }
|
|
1995
1999
|
});
|
|
1996
|
-
return o.code === "PAGE_LOCKED" ? !0 : (n((
|
|
1997
|
-
...
|
|
2000
|
+
return o.code === "PAGE_LOCKED" ? !0 : (n((c) => ({
|
|
2001
|
+
...c,
|
|
1998
2002
|
lastSaved: (/* @__PURE__ */ new Date()).toISOString()
|
|
1999
2003
|
})), o);
|
|
2000
2004
|
} catch (o) {
|
|
@@ -2002,14 +2006,14 @@ const Vi = ({
|
|
|
2002
2006
|
}
|
|
2003
2007
|
} };
|
|
2004
2008
|
}, fo = () => {
|
|
2005
|
-
const { data: e } =
|
|
2009
|
+
const { data: e } = bs(), t = L(), n = C();
|
|
2006
2010
|
return {
|
|
2007
2011
|
getPartialBlocks: j(async () => {
|
|
2008
2012
|
const s = {};
|
|
2009
2013
|
for (const r of e ?? [])
|
|
2010
2014
|
he(r == null ? void 0 : r.slug) && (s[r.id] = {
|
|
2011
2015
|
type: r.pageType,
|
|
2012
|
-
name:
|
|
2016
|
+
name: Rr(r.name ?? r.slug),
|
|
2013
2017
|
description: ""
|
|
2014
2018
|
});
|
|
2015
2019
|
return s;
|
|
@@ -2030,26 +2034,26 @@ const Vi = ({
|
|
|
2030
2034
|
[n, t]
|
|
2031
2035
|
)
|
|
2032
2036
|
};
|
|
2033
|
-
}, ho = F(() => import("./ai-panel-content-
|
|
2034
|
-
id:
|
|
2037
|
+
}, ho = F(() => import("./ai-panel-content-DYRZnMgV.js")), ks = "chai-chat-panel", go = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ l("svg", { className: e, viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ l("path", { d: "m198.39 128.986-52.16-19.216-19.216-52.16a16 16 0 0 0-30.028 0L77.77 109.77l-52.16 19.216a16 16 0 0 0 0 30.028l52.16 19.216 19.216 52.16a16 16 0 0 0 30.028 0l19.216-52.16 52.16-19.216a16 16 0 0 0 0-30.028m-57.69 34.23a15.97 15.97 0 0 0-9.483 9.483l-19.22 52.152-19.214-52.15a15.97 15.97 0 0 0-9.482-9.484l-52.152-19.22 52.15-19.214a15.97 15.97 0 0 0 9.484-9.482l19.22-52.152 19.214 52.15a15.97 15.97 0 0 0 9.482 9.484l52.152 19.22ZM144 40a8 8 0 0 1 8-8h16V16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 0 16h-16v16a8 8 0 0 1-16 0V48h-16a8 8 0 0 1-8-8m104 48a8 8 0 0 1-8 8h-8v8a8 8 0 0 1-16 0v-8h-8a8 8 0 0 1 0-16h8v-8a8 8 0 0 1 16 0v8h8a8 8 0 0 1 8 8" }) }), mo = ({ isActive: e, show: t }) => /* @__PURE__ */ l(U, { size: "icon", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ l(go, { className: "h-4 w-4" }) }), Eo = {
|
|
2038
|
+
id: ks,
|
|
2035
2039
|
label: "AI Assistant",
|
|
2036
2040
|
button: mo,
|
|
2037
2041
|
panel: ho,
|
|
2038
2042
|
position: "top"
|
|
2039
|
-
}, po = F(() => import("./lang-panel-
|
|
2043
|
+
}, po = F(() => import("./lang-panel-Bj11IL7k.js")), yo = ({ isActive: e, show: t }) => {
|
|
2040
2044
|
const { data: n } = Re();
|
|
2041
|
-
return !jt(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */
|
|
2042
|
-
},
|
|
2043
|
-
id:
|
|
2045
|
+
return !jt(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */ l(U, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ l(Ka, { className: "h-4 w-4" }) });
|
|
2046
|
+
}, Os = "lang", Ao = {
|
|
2047
|
+
id: Os,
|
|
2044
2048
|
label: "Languages",
|
|
2045
2049
|
position: "top",
|
|
2046
2050
|
panel: po,
|
|
2047
2051
|
button: yo,
|
|
2048
2052
|
view: "modal",
|
|
2049
2053
|
width: 400
|
|
2050
|
-
}, To = F(() => import("./seo-panel-
|
|
2054
|
+
}, To = F(() => import("./seo-panel-BZlMea1L.js")), Ds = "seo", So = ({ isActive: e, show: t }) => {
|
|
2051
2055
|
const { data: n } = ie(), s = Ni(n == null ? void 0 : n.pageType);
|
|
2052
|
-
return !jt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */
|
|
2056
|
+
return !jt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ l(U, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
2053
2057
|
"svg",
|
|
2054
2058
|
{
|
|
2055
2059
|
stroke: "currentColor",
|
|
@@ -2060,42 +2064,42 @@ const Vi = ({
|
|
|
2060
2064
|
strokeLinecap: "round",
|
|
2061
2065
|
strokeLinejoin: "round",
|
|
2062
2066
|
children: [
|
|
2063
|
-
/* @__PURE__ */
|
|
2064
|
-
/* @__PURE__ */
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ l("path", { d: "M7 8h-3a1 1 0 0 0 -1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-3" }),
|
|
2068
|
+
/* @__PURE__ */ l("path", { d: "M14 16h-4v-8h4" }),
|
|
2069
|
+
/* @__PURE__ */ l("path", { d: "M11 12h2" }),
|
|
2070
|
+
/* @__PURE__ */ l("path", { d: "M17 8m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z" })
|
|
2067
2071
|
]
|
|
2068
2072
|
}
|
|
2069
2073
|
) });
|
|
2070
2074
|
}, _o = {
|
|
2071
|
-
id:
|
|
2075
|
+
id: Ds,
|
|
2072
2076
|
label: "SEO",
|
|
2073
2077
|
panel: To,
|
|
2074
2078
|
button: So,
|
|
2075
2079
|
position: "top",
|
|
2076
2080
|
width: 600,
|
|
2077
2081
|
view: "modal"
|
|
2078
|
-
},
|
|
2079
|
-
const { t: e } =
|
|
2082
|
+
}, Gs = "user-info", Po = () => {
|
|
2083
|
+
const { t: e } = _e(), { user: t, logout: n } = Jt(), s = oe("onLogout", ds);
|
|
2080
2084
|
return t ? /* @__PURE__ */ m(ia, { children: [
|
|
2081
|
-
/* @__PURE__ */
|
|
2085
|
+
/* @__PURE__ */ l(oa, { asChild: !0, children: /* @__PURE__ */ l(U, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ l(Va, { className: "h-4 w-4" }) }) }),
|
|
2082
2086
|
/* @__PURE__ */ m(la, { className: "w-auto space-y-2 p-4", children: [
|
|
2083
|
-
/* @__PURE__ */
|
|
2084
|
-
/* @__PURE__ */
|
|
2087
|
+
/* @__PURE__ */ l("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
|
|
2088
|
+
/* @__PURE__ */ l("div", { className: "text-xs text-muted-foreground", children: t.email }),
|
|
2085
2089
|
/* @__PURE__ */ m(ca, { children: [
|
|
2086
|
-
/* @__PURE__ */
|
|
2090
|
+
/* @__PURE__ */ l(ua, { asChild: !0, children: /* @__PURE__ */ l(U, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
|
|
2087
2091
|
/* @__PURE__ */ m(da, { children: [
|
|
2088
2092
|
/* @__PURE__ */ m(fa, { children: [
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2093
|
+
/* @__PURE__ */ l(ha, { children: e("Are you sure you want to logout?") }),
|
|
2094
|
+
/* @__PURE__ */ l(ga, { children: e("You will be redirected to the login page.") })
|
|
2091
2095
|
] }),
|
|
2092
2096
|
/* @__PURE__ */ m(ma, { children: [
|
|
2093
|
-
/* @__PURE__ */
|
|
2094
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ l(Ea, { children: e("Cancel") }),
|
|
2098
|
+
/* @__PURE__ */ l(
|
|
2095
2099
|
pa,
|
|
2096
2100
|
{
|
|
2097
2101
|
onClick: () => {
|
|
2098
|
-
n(),
|
|
2102
|
+
n(), Ur(s) && s();
|
|
2099
2103
|
},
|
|
2100
2104
|
children: e("Logout")
|
|
2101
2105
|
}
|
|
@@ -2106,14 +2110,14 @@ const Vi = ({
|
|
|
2106
2110
|
] })
|
|
2107
2111
|
] }) : null;
|
|
2108
2112
|
}, vo = {
|
|
2109
|
-
id:
|
|
2113
|
+
id: Gs,
|
|
2110
2114
|
label: "User Info",
|
|
2111
2115
|
button: Po,
|
|
2112
2116
|
position: "bottom"
|
|
2113
2117
|
}, wo = () => {
|
|
2114
|
-
Ct(
|
|
2118
|
+
Ct(Ds, _o), Ct(Os, Ao), Ct(Gs, vo), (localStorage.getItem("chai-feature-flags") ?? "").includes("enable-ai-chat-panel") && (console.log("enable-ai-chat-panel"), Ct(ks, Eo));
|
|
2115
2119
|
};
|
|
2116
|
-
var
|
|
2120
|
+
var v = {
|
|
2117
2121
|
context: void 0,
|
|
2118
2122
|
registry: void 0,
|
|
2119
2123
|
effects: void 0,
|
|
@@ -2127,31 +2131,31 @@ var _ = {
|
|
|
2127
2131
|
};
|
|
2128
2132
|
function Jn(e) {
|
|
2129
2133
|
const t = String(e), n = t.length - 1;
|
|
2130
|
-
return
|
|
2134
|
+
return v.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
|
|
2131
2135
|
}
|
|
2132
2136
|
function rt(e) {
|
|
2133
|
-
|
|
2137
|
+
v.context = e;
|
|
2134
2138
|
}
|
|
2135
|
-
var
|
|
2139
|
+
var xs = !1, bo = (e, t) => e === t, qt = Symbol("solid-proxy"), Rs = typeof Proxy == "function", Us = Symbol("solid-track"), Kt = {
|
|
2136
2140
|
equals: bo
|
|
2137
|
-
},
|
|
2141
|
+
}, Bs = Qs, Pe = 1, Vt = 2, Ms = {
|
|
2138
2142
|
owned: null,
|
|
2139
2143
|
cleanups: null,
|
|
2140
2144
|
context: null,
|
|
2141
2145
|
owner: null
|
|
2142
|
-
}, ln = {},
|
|
2146
|
+
}, ln = {}, N = null, cn = null, Io = null, G = null, ee = null, Te = null, Xt = 0;
|
|
2143
2147
|
function Oe(e, t) {
|
|
2144
|
-
const n = G, s =
|
|
2148
|
+
const n = G, s = N, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Ms : {
|
|
2145
2149
|
owned: null,
|
|
2146
2150
|
cleanups: null,
|
|
2147
2151
|
context: a ? a.context : null,
|
|
2148
2152
|
owner: a
|
|
2149
2153
|
}, o = r ? e : () => e(() => Z(() => ct(i)));
|
|
2150
|
-
|
|
2154
|
+
N = i, G = null;
|
|
2151
2155
|
try {
|
|
2152
2156
|
return me(o, !0);
|
|
2153
2157
|
} finally {
|
|
2154
|
-
G = n,
|
|
2158
|
+
G = n, N = s;
|
|
2155
2159
|
}
|
|
2156
2160
|
}
|
|
2157
2161
|
function q(e, t) {
|
|
@@ -2161,26 +2165,26 @@ function q(e, t) {
|
|
|
2161
2165
|
observers: null,
|
|
2162
2166
|
observerSlots: null,
|
|
2163
2167
|
comparator: t.equals || void 0
|
|
2164
|
-
}, s = (r) => (typeof r == "function" && (r = r(n.value)),
|
|
2165
|
-
return [
|
|
2168
|
+
}, s = (r) => (typeof r == "function" && (r = r(n.value)), Hs(n, r));
|
|
2169
|
+
return [Vs.bind(n), s];
|
|
2166
2170
|
}
|
|
2167
2171
|
function Co(e, t, n) {
|
|
2168
|
-
const s = Zt(e, t, !0,
|
|
2172
|
+
const s = Zt(e, t, !0, Pe);
|
|
2169
2173
|
st(s);
|
|
2170
2174
|
}
|
|
2171
2175
|
function De(e, t, n) {
|
|
2172
|
-
const s = Zt(e, t, !1,
|
|
2176
|
+
const s = Zt(e, t, !1, Pe);
|
|
2173
2177
|
st(s);
|
|
2174
2178
|
}
|
|
2175
|
-
function
|
|
2176
|
-
|
|
2177
|
-
const s = Zt(e, t, !1,
|
|
2179
|
+
function Fs(e, t, n) {
|
|
2180
|
+
Bs = Uo;
|
|
2181
|
+
const s = Zt(e, t, !1, Pe);
|
|
2178
2182
|
(!n || !n.render) && (s.user = !0), Te ? Te.push(s) : st(s);
|
|
2179
2183
|
}
|
|
2180
2184
|
function J(e, t, n) {
|
|
2181
2185
|
n = n ? Object.assign({}, Kt, n) : Kt;
|
|
2182
2186
|
const s = Zt(e, t, !0, 0);
|
|
2183
|
-
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s),
|
|
2187
|
+
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Vs.bind(s);
|
|
2184
2188
|
}
|
|
2185
2189
|
function No(e) {
|
|
2186
2190
|
return e && typeof e == "object" && "then" in e;
|
|
@@ -2188,82 +2192,82 @@ function No(e) {
|
|
|
2188
2192
|
function Lo(e, t, n) {
|
|
2189
2193
|
let s, r, a;
|
|
2190
2194
|
s = !0, r = e, a = {};
|
|
2191
|
-
let i = null, o = ln,
|
|
2192
|
-
const h = /* @__PURE__ */ new Set(), [g,
|
|
2195
|
+
let i = null, o = ln, c = null, u = !1, d = "initialValue" in a, f = typeof s == "function" && J(s);
|
|
2196
|
+
const h = /* @__PURE__ */ new Set(), [g, p] = (a.storage || q)(a.initialValue), [S, P] = q(void 0), [T, y] = q(void 0, {
|
|
2193
2197
|
equals: !1
|
|
2194
|
-
}), [
|
|
2195
|
-
|
|
2196
|
-
function M(
|
|
2197
|
-
return i ===
|
|
2198
|
-
value:
|
|
2199
|
-
})), o = ln,
|
|
2198
|
+
}), [A, b] = q(d ? "ready" : "unresolved");
|
|
2199
|
+
v.context && (c = v.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : v.load && v.has(c) && (o = v.load(c)));
|
|
2200
|
+
function M(w, I, Y, $) {
|
|
2201
|
+
return i === w && (i = null, $ !== void 0 && (d = !0), (w === o || I === o) && a.onHydrated && queueMicrotask(() => a.onHydrated($, {
|
|
2202
|
+
value: I
|
|
2203
|
+
})), o = ln, k(I, Y)), I;
|
|
2200
2204
|
}
|
|
2201
|
-
function
|
|
2205
|
+
function k(w, I) {
|
|
2202
2206
|
me(() => {
|
|
2203
|
-
|
|
2207
|
+
I === void 0 && p(() => w), b(I !== void 0 ? "errored" : d ? "ready" : "unresolved"), P(I);
|
|
2204
2208
|
for (const Y of h.keys()) Y.decrement();
|
|
2205
2209
|
h.clear();
|
|
2206
2210
|
}, !1);
|
|
2207
2211
|
}
|
|
2208
2212
|
function pe() {
|
|
2209
|
-
const
|
|
2213
|
+
const w = Go, I = g(), Y = S();
|
|
2210
2214
|
if (Y !== void 0 && !i) throw Y;
|
|
2211
|
-
return G && G.user,
|
|
2215
|
+
return G && G.user, I;
|
|
2212
2216
|
}
|
|
2213
|
-
function ye(
|
|
2214
|
-
if (
|
|
2217
|
+
function ye(w = !0) {
|
|
2218
|
+
if (w !== !1 && u) return;
|
|
2215
2219
|
u = !1;
|
|
2216
|
-
const
|
|
2217
|
-
if (
|
|
2220
|
+
const I = f ? f() : s;
|
|
2221
|
+
if (I == null || I === !1) {
|
|
2218
2222
|
M(i, Z(g));
|
|
2219
2223
|
return;
|
|
2220
2224
|
}
|
|
2221
2225
|
let Y;
|
|
2222
2226
|
const $ = o !== ln ? o : Z(() => {
|
|
2223
2227
|
try {
|
|
2224
|
-
return r(
|
|
2228
|
+
return r(I, {
|
|
2225
2229
|
value: g(),
|
|
2226
|
-
refetching:
|
|
2230
|
+
refetching: w
|
|
2227
2231
|
});
|
|
2228
2232
|
} catch (de) {
|
|
2229
2233
|
Y = de;
|
|
2230
2234
|
}
|
|
2231
2235
|
});
|
|
2232
2236
|
if (Y !== void 0) {
|
|
2233
|
-
M(i, void 0, Rt(Y),
|
|
2237
|
+
M(i, void 0, Rt(Y), I);
|
|
2234
2238
|
return;
|
|
2235
2239
|
} else if (!No($))
|
|
2236
|
-
return M(i, $, void 0,
|
|
2237
|
-
return i = $, "v" in $ ? ($.s === 1 ? M(i, $.v, void 0,
|
|
2238
|
-
|
|
2239
|
-
}, !1), $.then((de) => M($, de, void 0,
|
|
2240
|
+
return M(i, $, void 0, I), $;
|
|
2241
|
+
return i = $, "v" in $ ? ($.s === 1 ? M(i, $.v, void 0, I) : M(i, void 0, Rt($.v), I), $) : (u = !0, queueMicrotask(() => u = !1), me(() => {
|
|
2242
|
+
b(d ? "refreshing" : "pending"), y();
|
|
2243
|
+
}, !1), $.then((de) => M($, de, void 0, I), (de) => M($, void 0, Rt(de), I)));
|
|
2240
2244
|
}
|
|
2241
2245
|
Object.defineProperties(pe, {
|
|
2242
2246
|
state: {
|
|
2243
|
-
get: () =>
|
|
2247
|
+
get: () => A()
|
|
2244
2248
|
},
|
|
2245
2249
|
error: {
|
|
2246
|
-
get: () =>
|
|
2250
|
+
get: () => S()
|
|
2247
2251
|
},
|
|
2248
2252
|
loading: {
|
|
2249
2253
|
get() {
|
|
2250
|
-
const
|
|
2251
|
-
return
|
|
2254
|
+
const w = A();
|
|
2255
|
+
return w === "pending" || w === "refreshing";
|
|
2252
2256
|
}
|
|
2253
2257
|
},
|
|
2254
2258
|
latest: {
|
|
2255
2259
|
get() {
|
|
2256
|
-
if (!
|
|
2257
|
-
const
|
|
2258
|
-
if (
|
|
2260
|
+
if (!d) return pe();
|
|
2261
|
+
const w = S();
|
|
2262
|
+
if (w && !i) throw w;
|
|
2259
2263
|
return g();
|
|
2260
2264
|
}
|
|
2261
2265
|
}
|
|
2262
2266
|
});
|
|
2263
|
-
let
|
|
2264
|
-
return
|
|
2265
|
-
refetch: (
|
|
2266
|
-
mutate:
|
|
2267
|
+
let B = N;
|
|
2268
|
+
return f ? Co(() => (B = N, ye(!1))) : ye(!1), [pe, {
|
|
2269
|
+
refetch: (w) => qs(B, () => ye(w)),
|
|
2270
|
+
mutate: p
|
|
2267
2271
|
}];
|
|
2268
2272
|
}
|
|
2269
2273
|
function Wc(e) {
|
|
@@ -2290,36 +2294,36 @@ function Yc(e, t, n) {
|
|
|
2290
2294
|
} else o = e();
|
|
2291
2295
|
if (a)
|
|
2292
2296
|
return a = !1, i;
|
|
2293
|
-
const
|
|
2294
|
-
return r = o,
|
|
2297
|
+
const c = Z(() => t(o, r, i));
|
|
2298
|
+
return r = o, c;
|
|
2295
2299
|
};
|
|
2296
2300
|
}
|
|
2297
2301
|
function ko(e) {
|
|
2298
|
-
|
|
2302
|
+
Fs(() => Z(e));
|
|
2299
2303
|
}
|
|
2300
2304
|
function lt(e) {
|
|
2301
|
-
return
|
|
2305
|
+
return N === null || (N.cleanups === null ? N.cleanups = [e] : N.cleanups.push(e)), e;
|
|
2302
2306
|
}
|
|
2303
2307
|
function Xn() {
|
|
2304
|
-
return
|
|
2308
|
+
return N;
|
|
2305
2309
|
}
|
|
2306
|
-
function
|
|
2307
|
-
const n =
|
|
2308
|
-
|
|
2310
|
+
function qs(e, t) {
|
|
2311
|
+
const n = N, s = G;
|
|
2312
|
+
N = e, G = null;
|
|
2309
2313
|
try {
|
|
2310
2314
|
return me(t, !0);
|
|
2311
2315
|
} catch (r) {
|
|
2312
2316
|
xn(r);
|
|
2313
2317
|
} finally {
|
|
2314
|
-
|
|
2318
|
+
N = n, G = s;
|
|
2315
2319
|
}
|
|
2316
2320
|
}
|
|
2317
2321
|
function Oo(e) {
|
|
2318
|
-
const t = G, n =
|
|
2322
|
+
const t = G, n = N;
|
|
2319
2323
|
return Promise.resolve().then(() => {
|
|
2320
|
-
G = t,
|
|
2324
|
+
G = t, N = n;
|
|
2321
2325
|
let s;
|
|
2322
|
-
return me(e, !1), G =
|
|
2326
|
+
return me(e, !1), G = N = null, s ? s.done : void 0;
|
|
2323
2327
|
});
|
|
2324
2328
|
}
|
|
2325
2329
|
var [Do, Jc] = /* @__PURE__ */ q(!1);
|
|
@@ -2336,9 +2340,9 @@ function Zc(e, t) {
|
|
|
2336
2340
|
}
|
|
2337
2341
|
function eu(e) {
|
|
2338
2342
|
let t;
|
|
2339
|
-
return
|
|
2343
|
+
return N && N.context && (t = N.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
2340
2344
|
}
|
|
2341
|
-
function
|
|
2345
|
+
function Ks(e) {
|
|
2342
2346
|
const t = J(e), n = J(() => gn(t()));
|
|
2343
2347
|
return n.toArray = () => {
|
|
2344
2348
|
const s = n();
|
|
@@ -2346,9 +2350,9 @@ function Vs(e) {
|
|
|
2346
2350
|
}, n;
|
|
2347
2351
|
}
|
|
2348
2352
|
var Go;
|
|
2349
|
-
function
|
|
2353
|
+
function Vs() {
|
|
2350
2354
|
if (this.sources && this.state)
|
|
2351
|
-
if (this.state ===
|
|
2355
|
+
if (this.state === Pe) st(this);
|
|
2352
2356
|
else {
|
|
2353
2357
|
const e = ee;
|
|
2354
2358
|
ee = null, me(() => Qt(this), !1), ee = e;
|
|
@@ -2359,12 +2363,12 @@ function Hs() {
|
|
|
2359
2363
|
}
|
|
2360
2364
|
return this.value;
|
|
2361
2365
|
}
|
|
2362
|
-
function
|
|
2366
|
+
function Hs(e, t, n) {
|
|
2363
2367
|
let s = e.value;
|
|
2364
2368
|
return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && me(() => {
|
|
2365
2369
|
for (let r = 0; r < e.observers.length; r += 1) {
|
|
2366
2370
|
const a = e.observers[r], i = cn && cn.running;
|
|
2367
|
-
i && cn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers &&
|
|
2371
|
+
i && cn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && $s(a)), i || (a.state = Pe);
|
|
2368
2372
|
}
|
|
2369
2373
|
if (ee.length > 1e6)
|
|
2370
2374
|
throw ee = [], new Error();
|
|
@@ -2378,18 +2382,18 @@ function st(e) {
|
|
|
2378
2382
|
}
|
|
2379
2383
|
function xo(e, t, n) {
|
|
2380
2384
|
let s;
|
|
2381
|
-
const r =
|
|
2382
|
-
G =
|
|
2385
|
+
const r = N, a = G;
|
|
2386
|
+
G = N = e;
|
|
2383
2387
|
try {
|
|
2384
2388
|
s = e.fn(t);
|
|
2385
2389
|
} catch (i) {
|
|
2386
|
-
return e.pure && (e.state =
|
|
2390
|
+
return e.pure && (e.state = Pe, e.owned && e.owned.forEach(ct), e.owned = null), e.updatedAt = n + 1, xn(i);
|
|
2387
2391
|
} finally {
|
|
2388
|
-
G = a,
|
|
2392
|
+
G = a, N = r;
|
|
2389
2393
|
}
|
|
2390
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
2394
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Hs(e, s) : e.value = s, e.updatedAt = n);
|
|
2391
2395
|
}
|
|
2392
|
-
function Zt(e, t, n, s =
|
|
2396
|
+
function Zt(e, t, n, s = Pe, r) {
|
|
2393
2397
|
const a = {
|
|
2394
2398
|
fn: e,
|
|
2395
2399
|
state: s,
|
|
@@ -2399,11 +2403,11 @@ function Zt(e, t, n, s = _e, r) {
|
|
|
2399
2403
|
sourceSlots: null,
|
|
2400
2404
|
cleanups: null,
|
|
2401
2405
|
value: t,
|
|
2402
|
-
owner:
|
|
2403
|
-
context:
|
|
2406
|
+
owner: N,
|
|
2407
|
+
context: N ? N.context : null,
|
|
2404
2408
|
pure: n
|
|
2405
2409
|
};
|
|
2406
|
-
return
|
|
2410
|
+
return N === null || N !== Ms && (N.owned ? N.owned.push(a) : N.owned = [a]), a;
|
|
2407
2411
|
}
|
|
2408
2412
|
function Ht(e) {
|
|
2409
2413
|
if (e.state === 0) return;
|
|
@@ -2413,7 +2417,7 @@ function Ht(e) {
|
|
|
2413
2417
|
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Xt); )
|
|
2414
2418
|
e.state && t.push(e);
|
|
2415
2419
|
for (let n = t.length - 1; n >= 0; n--)
|
|
2416
|
-
if (e = t[n], e.state ===
|
|
2420
|
+
if (e = t[n], e.state === Pe)
|
|
2417
2421
|
st(e);
|
|
2418
2422
|
else if (e.state === Vt) {
|
|
2419
2423
|
const s = ee;
|
|
@@ -2432,11 +2436,11 @@ function me(e, t) {
|
|
|
2432
2436
|
}
|
|
2433
2437
|
}
|
|
2434
2438
|
function Ro(e) {
|
|
2435
|
-
if (ee && (
|
|
2439
|
+
if (ee && (Qs(ee), ee = null), e) return;
|
|
2436
2440
|
const t = Te;
|
|
2437
|
-
Te = null, t.length && me(() =>
|
|
2441
|
+
Te = null, t.length && me(() => Bs(t), !1);
|
|
2438
2442
|
}
|
|
2439
|
-
function
|
|
2443
|
+
function Qs(e) {
|
|
2440
2444
|
for (let t = 0; t < e.length; t++) Ht(e[t]);
|
|
2441
2445
|
}
|
|
2442
2446
|
function Uo(e) {
|
|
@@ -2445,14 +2449,14 @@ function Uo(e) {
|
|
|
2445
2449
|
const s = e[t];
|
|
2446
2450
|
s.user ? e[n++] = s : Ht(s);
|
|
2447
2451
|
}
|
|
2448
|
-
if (
|
|
2449
|
-
if (
|
|
2450
|
-
|
|
2452
|
+
if (v.context) {
|
|
2453
|
+
if (v.count) {
|
|
2454
|
+
v.effects || (v.effects = []), v.effects.push(...e.slice(0, n));
|
|
2451
2455
|
return;
|
|
2452
2456
|
}
|
|
2453
2457
|
rt();
|
|
2454
2458
|
}
|
|
2455
|
-
for (
|
|
2459
|
+
for (v.effects && (v.done || !v.count) && (e = [...v.effects, ...e], n += v.effects.length, delete v.effects), t = 0; t < n; t++) Ht(e[t]);
|
|
2456
2460
|
}
|
|
2457
2461
|
function Qt(e, t) {
|
|
2458
2462
|
e.state = 0;
|
|
@@ -2460,14 +2464,14 @@ function Qt(e, t) {
|
|
|
2460
2464
|
const s = e.sources[n];
|
|
2461
2465
|
if (s.sources) {
|
|
2462
2466
|
const r = s.state;
|
|
2463
|
-
r ===
|
|
2467
|
+
r === Pe ? s !== t && (!s.updatedAt || s.updatedAt < Xt) && Ht(s) : r === Vt && Qt(s, t);
|
|
2464
2468
|
}
|
|
2465
2469
|
}
|
|
2466
2470
|
}
|
|
2467
|
-
function
|
|
2471
|
+
function $s(e) {
|
|
2468
2472
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
2469
2473
|
const n = e.observers[t];
|
|
2470
|
-
n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers &&
|
|
2474
|
+
n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers && $s(n));
|
|
2471
2475
|
}
|
|
2472
2476
|
}
|
|
2473
2477
|
function ct(e) {
|
|
@@ -2499,7 +2503,7 @@ function Rt(e) {
|
|
|
2499
2503
|
cause: e
|
|
2500
2504
|
});
|
|
2501
2505
|
}
|
|
2502
|
-
function xn(e, t =
|
|
2506
|
+
function xn(e, t = N) {
|
|
2503
2507
|
throw Rt(e);
|
|
2504
2508
|
}
|
|
2505
2509
|
function gn(e) {
|
|
@@ -2517,10 +2521,10 @@ function gn(e) {
|
|
|
2517
2521
|
function Bo(e, t) {
|
|
2518
2522
|
return function(s) {
|
|
2519
2523
|
let r;
|
|
2520
|
-
return De(() => r = Z(() => (
|
|
2521
|
-
...
|
|
2524
|
+
return De(() => r = Z(() => (N.context = {
|
|
2525
|
+
...N.context,
|
|
2522
2526
|
[e]: s.value
|
|
2523
|
-
},
|
|
2527
|
+
}, Ks(() => s.children))), void 0), r;
|
|
2524
2528
|
};
|
|
2525
2529
|
}
|
|
2526
2530
|
var mn = Symbol("fallback");
|
|
@@ -2530,59 +2534,59 @@ function $t(e) {
|
|
|
2530
2534
|
function Mo(e, t, n = {}) {
|
|
2531
2535
|
let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
|
|
2532
2536
|
return lt(() => $t(a)), () => {
|
|
2533
|
-
let
|
|
2534
|
-
return
|
|
2535
|
-
let g,
|
|
2537
|
+
let c = e() || [], u = c.length, d, f;
|
|
2538
|
+
return c[Us], Z(() => {
|
|
2539
|
+
let g, p, S, P, T, y, A, b, M;
|
|
2536
2540
|
if (u === 0)
|
|
2537
|
-
i !== 0 && ($t(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [mn], r[0] = Oe((
|
|
2541
|
+
i !== 0 && ($t(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [mn], r[0] = Oe((k) => (a[0] = k, n.fallback())), i = 1);
|
|
2538
2542
|
else if (i === 0) {
|
|
2539
|
-
for (r = new Array(u),
|
|
2540
|
-
s[
|
|
2543
|
+
for (r = new Array(u), f = 0; f < u; f++)
|
|
2544
|
+
s[f] = c[f], r[f] = Oe(h);
|
|
2541
2545
|
i = u;
|
|
2542
2546
|
} else {
|
|
2543
|
-
for (
|
|
2544
|
-
for (
|
|
2545
|
-
|
|
2546
|
-
for (g = /* @__PURE__ */ new Map(),
|
|
2547
|
-
M =
|
|
2548
|
-
for (
|
|
2549
|
-
M = s[
|
|
2550
|
-
for (
|
|
2551
|
-
|
|
2552
|
-
r = r.slice(0, i = u), s =
|
|
2547
|
+
for (S = new Array(u), P = new Array(u), o && (T = new Array(u)), y = 0, A = Math.min(i, u); y < A && s[y] === c[y]; y++) ;
|
|
2548
|
+
for (A = i - 1, b = u - 1; A >= y && b >= y && s[A] === c[b]; A--, b--)
|
|
2549
|
+
S[b] = r[A], P[b] = a[A], o && (T[b] = o[A]);
|
|
2550
|
+
for (g = /* @__PURE__ */ new Map(), p = new Array(b + 1), f = b; f >= y; f--)
|
|
2551
|
+
M = c[f], d = g.get(M), p[f] = d === void 0 ? -1 : d, g.set(M, f);
|
|
2552
|
+
for (d = y; d <= A; d++)
|
|
2553
|
+
M = s[d], f = g.get(M), f !== void 0 && f !== -1 ? (S[f] = r[d], P[f] = a[d], o && (T[f] = o[d]), f = p[f], g.set(M, f)) : a[d]();
|
|
2554
|
+
for (f = y; f < u; f++)
|
|
2555
|
+
f in S ? (r[f] = S[f], a[f] = P[f], o && (o[f] = T[f], o[f](f))) : r[f] = Oe(h);
|
|
2556
|
+
r = r.slice(0, i = u), s = c.slice(0);
|
|
2553
2557
|
}
|
|
2554
2558
|
return r;
|
|
2555
2559
|
});
|
|
2556
2560
|
function h(g) {
|
|
2557
|
-
if (a[
|
|
2558
|
-
const [
|
|
2559
|
-
return o[
|
|
2561
|
+
if (a[f] = g, o) {
|
|
2562
|
+
const [p, S] = q(f);
|
|
2563
|
+
return o[f] = S, t(c[f], p);
|
|
2560
2564
|
}
|
|
2561
|
-
return t(
|
|
2565
|
+
return t(c[f]);
|
|
2562
2566
|
}
|
|
2563
2567
|
};
|
|
2564
2568
|
}
|
|
2565
2569
|
function Fo(e, t, n = {}) {
|
|
2566
|
-
let s = [], r = [], a = [], i = [], o = 0,
|
|
2570
|
+
let s = [], r = [], a = [], i = [], o = 0, c;
|
|
2567
2571
|
return lt(() => $t(a)), () => {
|
|
2568
|
-
const u = e() || [],
|
|
2569
|
-
return u[
|
|
2570
|
-
if (
|
|
2572
|
+
const u = e() || [], d = u.length;
|
|
2573
|
+
return u[Us], Z(() => {
|
|
2574
|
+
if (d === 0)
|
|
2571
2575
|
return o !== 0 && ($t(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [mn], r[0] = Oe((h) => (a[0] = h, n.fallback())), o = 1), r;
|
|
2572
|
-
for (s[0] === mn && (a[0](), a = [], s = [], r = [], o = 0),
|
|
2573
|
-
|
|
2574
|
-
for (;
|
|
2575
|
-
a[
|
|
2576
|
-
return o = i.length = a.length =
|
|
2576
|
+
for (s[0] === mn && (a[0](), a = [], s = [], r = [], o = 0), c = 0; c < d; c++)
|
|
2577
|
+
c < s.length && s[c] !== u[c] ? i[c](() => u[c]) : c >= s.length && (r[c] = Oe(f));
|
|
2578
|
+
for (; c < s.length; c++)
|
|
2579
|
+
a[c]();
|
|
2580
|
+
return o = i.length = a.length = d, s = u.slice(0), r = r.slice(0, o);
|
|
2577
2581
|
});
|
|
2578
|
-
function
|
|
2579
|
-
a[
|
|
2580
|
-
const [g,
|
|
2581
|
-
return i[
|
|
2582
|
+
function f(h) {
|
|
2583
|
+
a[c] = h;
|
|
2584
|
+
const [g, p] = q(u[c]);
|
|
2585
|
+
return i[c] = p, t(g, c);
|
|
2582
2586
|
}
|
|
2583
2587
|
};
|
|
2584
2588
|
}
|
|
2585
|
-
function
|
|
2589
|
+
function js(e, t) {
|
|
2586
2590
|
return Z(() => e(t || {}));
|
|
2587
2591
|
}
|
|
2588
2592
|
function kt() {
|
|
@@ -2621,18 +2625,18 @@ function qo() {
|
|
|
2621
2625
|
if (n !== void 0) return n;
|
|
2622
2626
|
}
|
|
2623
2627
|
}
|
|
2624
|
-
function
|
|
2628
|
+
function zs(...e) {
|
|
2625
2629
|
let t = !1;
|
|
2626
2630
|
for (let i = 0; i < e.length; i++) {
|
|
2627
2631
|
const o = e[i];
|
|
2628
2632
|
t = t || !!o && qt in o, e[i] = typeof o == "function" ? (t = !0, J(o)) : o;
|
|
2629
2633
|
}
|
|
2630
|
-
if (
|
|
2634
|
+
if (Rs && t)
|
|
2631
2635
|
return new Proxy({
|
|
2632
2636
|
get(i) {
|
|
2633
2637
|
for (let o = e.length - 1; o >= 0; o--) {
|
|
2634
|
-
const
|
|
2635
|
-
if (
|
|
2638
|
+
const c = un(e[o])[i];
|
|
2639
|
+
if (c !== void 0) return c;
|
|
2636
2640
|
}
|
|
2637
2641
|
},
|
|
2638
2642
|
has(i) {
|
|
@@ -2650,32 +2654,32 @@ function Ws(...e) {
|
|
|
2650
2654
|
for (let i = e.length - 1; i >= 0; i--) {
|
|
2651
2655
|
const o = e[i];
|
|
2652
2656
|
if (!o) continue;
|
|
2653
|
-
const
|
|
2654
|
-
for (let u =
|
|
2655
|
-
const
|
|
2656
|
-
if (
|
|
2657
|
-
const
|
|
2658
|
-
if (!s[
|
|
2659
|
-
s[
|
|
2657
|
+
const c = Object.getOwnPropertyNames(o);
|
|
2658
|
+
for (let u = c.length - 1; u >= 0; u--) {
|
|
2659
|
+
const d = c[u];
|
|
2660
|
+
if (d === "__proto__" || d === "constructor") continue;
|
|
2661
|
+
const f = Object.getOwnPropertyDescriptor(o, d);
|
|
2662
|
+
if (!s[d])
|
|
2663
|
+
s[d] = f.get ? {
|
|
2660
2664
|
enumerable: !0,
|
|
2661
2665
|
configurable: !0,
|
|
2662
|
-
get: qo.bind(n[
|
|
2663
|
-
} :
|
|
2666
|
+
get: qo.bind(n[d] = [f.get.bind(o)])
|
|
2667
|
+
} : f.value !== void 0 ? f : void 0;
|
|
2664
2668
|
else {
|
|
2665
|
-
const h = n[
|
|
2666
|
-
h && (
|
|
2669
|
+
const h = n[d];
|
|
2670
|
+
h && (f.get ? h.push(f.get.bind(o)) : f.value !== void 0 && h.push(() => f.value));
|
|
2667
2671
|
}
|
|
2668
2672
|
}
|
|
2669
2673
|
}
|
|
2670
2674
|
const r = {}, a = Object.keys(s);
|
|
2671
2675
|
for (let i = a.length - 1; i >= 0; i--) {
|
|
2672
|
-
const o = a[i],
|
|
2673
|
-
|
|
2676
|
+
const o = a[i], c = s[o];
|
|
2677
|
+
c && c.get ? Object.defineProperty(r, o, c) : r[o] = c ? c.value : void 0;
|
|
2674
2678
|
}
|
|
2675
2679
|
return r;
|
|
2676
2680
|
}
|
|
2677
2681
|
function Ko(e, ...t) {
|
|
2678
|
-
if (
|
|
2682
|
+
if (Rs && qt in e) {
|
|
2679
2683
|
const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
|
|
2680
2684
|
get(o) {
|
|
2681
2685
|
return i.includes(o) ? e[o] : void 0;
|
|
@@ -2702,42 +2706,42 @@ function Ko(e, ...t) {
|
|
|
2702
2706
|
const n = {}, s = t.map(() => ({}));
|
|
2703
2707
|
for (const r of Object.getOwnPropertyNames(e)) {
|
|
2704
2708
|
const a = Object.getOwnPropertyDescriptor(e, r), i = !a.get && !a.set && a.enumerable && a.writable && a.configurable;
|
|
2705
|
-
let o = !1,
|
|
2709
|
+
let o = !1, c = 0;
|
|
2706
2710
|
for (const u of t)
|
|
2707
|
-
u.includes(r) && (o = !0, i ? s[
|
|
2711
|
+
u.includes(r) && (o = !0, i ? s[c][r] = a.value : Object.defineProperty(s[c], r, a)), ++c;
|
|
2708
2712
|
o || (i ? n[r] = a.value : Object.defineProperty(n, r, a));
|
|
2709
2713
|
}
|
|
2710
2714
|
return [...s, n];
|
|
2711
2715
|
}
|
|
2712
|
-
function
|
|
2716
|
+
function Ws(e) {
|
|
2713
2717
|
let t, n;
|
|
2714
2718
|
const s = (r) => {
|
|
2715
|
-
const a =
|
|
2719
|
+
const a = v.context;
|
|
2716
2720
|
if (a) {
|
|
2717
|
-
const [o,
|
|
2718
|
-
|
|
2719
|
-
!
|
|
2721
|
+
const [o, c] = q();
|
|
2722
|
+
v.count || (v.count = 0), v.count++, (n || (n = e())).then((u) => {
|
|
2723
|
+
!v.done && rt(a), v.count--, c(() => u.default), rt();
|
|
2720
2724
|
}), t = o;
|
|
2721
2725
|
} else if (!t) {
|
|
2722
|
-
const [o] = Lo(() => (n || (n = e())).then((
|
|
2726
|
+
const [o] = Lo(() => (n || (n = e())).then((c) => c.default));
|
|
2723
2727
|
t = o;
|
|
2724
2728
|
}
|
|
2725
2729
|
let i;
|
|
2726
2730
|
return J(() => (i = t()) ? Z(() => {
|
|
2727
|
-
if (!a ||
|
|
2728
|
-
const o =
|
|
2731
|
+
if (!a || v.done) return i(r);
|
|
2732
|
+
const o = v.context;
|
|
2729
2733
|
rt(a);
|
|
2730
|
-
const
|
|
2731
|
-
return rt(o),
|
|
2734
|
+
const c = i(r);
|
|
2735
|
+
return rt(o), c;
|
|
2732
2736
|
}) : "");
|
|
2733
2737
|
};
|
|
2734
2738
|
return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
|
|
2735
2739
|
}
|
|
2736
2740
|
var Vo = 0;
|
|
2737
2741
|
function tu() {
|
|
2738
|
-
return
|
|
2742
|
+
return v.context ? v.getNextContextId() : `cl-${Vo++}`;
|
|
2739
2743
|
}
|
|
2740
|
-
var
|
|
2744
|
+
var Ys = (e) => `Stale read from <${e}>.`;
|
|
2741
2745
|
function nu(e) {
|
|
2742
2746
|
const t = "fallback" in e && {
|
|
2743
2747
|
fallback: () => e.fallback
|
|
@@ -2759,7 +2763,7 @@ function ru(e) {
|
|
|
2759
2763
|
if (r) {
|
|
2760
2764
|
const a = e.children;
|
|
2761
2765
|
return typeof a == "function" && a.length > 0 ? Z(() => a(t ? r : () => {
|
|
2762
|
-
if (!Z(s)) throw
|
|
2766
|
+
if (!Z(s)) throw Ys("Show");
|
|
2763
2767
|
return n();
|
|
2764
2768
|
})) : a;
|
|
2765
2769
|
}
|
|
@@ -2767,15 +2771,15 @@ function ru(e) {
|
|
|
2767
2771
|
}, void 0, void 0);
|
|
2768
2772
|
}
|
|
2769
2773
|
function au(e) {
|
|
2770
|
-
const t =
|
|
2774
|
+
const t = Ks(() => e.children), n = J(() => {
|
|
2771
2775
|
const s = t(), r = Array.isArray(s) ? s : [s];
|
|
2772
2776
|
let a = () => {
|
|
2773
2777
|
};
|
|
2774
2778
|
for (let i = 0; i < r.length; i++) {
|
|
2775
|
-
const o = i,
|
|
2779
|
+
const o = i, c = r[i], u = a, d = J(() => u() ? void 0 : c.when, void 0, void 0), f = c.keyed ? d : J(d, void 0, {
|
|
2776
2780
|
equals: (h, g) => !h == !g
|
|
2777
2781
|
});
|
|
2778
|
-
a = () => u() || (
|
|
2782
|
+
a = () => u() || (f() ? [o, d, c] : void 0);
|
|
2779
2783
|
}
|
|
2780
2784
|
return a;
|
|
2781
2785
|
});
|
|
@@ -2785,7 +2789,7 @@ function au(e) {
|
|
|
2785
2789
|
const [r, a, i] = s, o = i.children;
|
|
2786
2790
|
return typeof o == "function" && o.length > 0 ? Z(() => o(i.keyed ? a() : () => {
|
|
2787
2791
|
var u;
|
|
2788
|
-
if (((u = Z(n)()) == null ? void 0 : u[0]) !== r) throw
|
|
2792
|
+
if (((u = Z(n)()) == null ? void 0 : u[0]) !== r) throw Ys("Match");
|
|
2789
2793
|
return a();
|
|
2790
2794
|
})) : o;
|
|
2791
2795
|
}, void 0, void 0);
|
|
@@ -2912,7 +2916,7 @@ var Yo = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
|
2912
2916
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
2913
2917
|
}, ou = (e) => J(() => e());
|
|
2914
2918
|
function Zo(e, t, n) {
|
|
2915
|
-
let s = n.length, r = t.length, a = s, i = 0, o = 0,
|
|
2919
|
+
let s = n.length, r = t.length, a = s, i = 0, o = 0, c = t[r - 1].nextSibling, u = null;
|
|
2916
2920
|
for (; i < r || o < a; ) {
|
|
2917
2921
|
if (t[i] === n[o]) {
|
|
2918
2922
|
i++, o++;
|
|
@@ -2921,29 +2925,29 @@ function Zo(e, t, n) {
|
|
|
2921
2925
|
for (; t[r - 1] === n[a - 1]; )
|
|
2922
2926
|
r--, a--;
|
|
2923
2927
|
if (r === i) {
|
|
2924
|
-
const
|
|
2925
|
-
for (; o < a; ) e.insertBefore(n[o++],
|
|
2928
|
+
const d = a < s ? o ? n[o - 1].nextSibling : n[a - o] : c;
|
|
2929
|
+
for (; o < a; ) e.insertBefore(n[o++], d);
|
|
2926
2930
|
} else if (a === o)
|
|
2927
2931
|
for (; i < r; )
|
|
2928
2932
|
(!u || !u.has(t[i])) && t[i].remove(), i++;
|
|
2929
2933
|
else if (t[i] === n[a - 1] && n[o] === t[r - 1]) {
|
|
2930
|
-
const
|
|
2931
|
-
e.insertBefore(n[o++], t[i++].nextSibling), e.insertBefore(n[--a],
|
|
2934
|
+
const d = t[--r].nextSibling;
|
|
2935
|
+
e.insertBefore(n[o++], t[i++].nextSibling), e.insertBefore(n[--a], d), t[r] = n[a];
|
|
2932
2936
|
} else {
|
|
2933
2937
|
if (!u) {
|
|
2934
2938
|
u = /* @__PURE__ */ new Map();
|
|
2935
|
-
let
|
|
2936
|
-
for (;
|
|
2939
|
+
let f = o;
|
|
2940
|
+
for (; f < a; ) u.set(n[f], f++);
|
|
2937
2941
|
}
|
|
2938
|
-
const
|
|
2939
|
-
if (
|
|
2940
|
-
if (o <
|
|
2941
|
-
let
|
|
2942
|
-
for (; ++
|
|
2942
|
+
const d = u.get(t[i]);
|
|
2943
|
+
if (d != null)
|
|
2944
|
+
if (o < d && d < a) {
|
|
2945
|
+
let f = i, h = 1, g;
|
|
2946
|
+
for (; ++f < r && f < a && !((g = u.get(t[f])) == null || g !== d + h); )
|
|
2943
2947
|
h++;
|
|
2944
|
-
if (h >
|
|
2945
|
-
const
|
|
2946
|
-
for (; o <
|
|
2948
|
+
if (h > d - o) {
|
|
2949
|
+
const p = t[i];
|
|
2950
|
+
for (; o < d; ) e.insertBefore(n[o++], p);
|
|
2947
2951
|
} else e.replaceChild(n[o++], t[i++]);
|
|
2948
2952
|
} else i++;
|
|
2949
2953
|
else t[i++].remove();
|
|
@@ -2951,7 +2955,7 @@ function Zo(e, t, n) {
|
|
|
2951
2955
|
}
|
|
2952
2956
|
}
|
|
2953
2957
|
var it = "_$DX_DELEGATE";
|
|
2954
|
-
function
|
|
2958
|
+
function Js(e, t, n, s = {}) {
|
|
2955
2959
|
let r;
|
|
2956
2960
|
return Oe((a) => {
|
|
2957
2961
|
r = a, t === document ? e() : yn(t, e(), t.firstChild ? null : void 0, n);
|
|
@@ -2971,12 +2975,12 @@ function el(e, t = window.document) {
|
|
|
2971
2975
|
const n = t[it] || (t[it] = /* @__PURE__ */ new Set());
|
|
2972
2976
|
for (let s = 0, r = e.length; s < r; s++) {
|
|
2973
2977
|
const a = e[s];
|
|
2974
|
-
n.has(a) || (n.add(a), t.addEventListener(a,
|
|
2978
|
+
n.has(a) || (n.add(a), t.addEventListener(a, Xs));
|
|
2975
2979
|
}
|
|
2976
2980
|
}
|
|
2977
2981
|
function cu(e = window.document) {
|
|
2978
2982
|
if (e[it]) {
|
|
2979
|
-
for (let t of e[it].keys()) e.removeEventListener(t,
|
|
2983
|
+
for (let t of e[it].keys()) e.removeEventListener(t, Xs);
|
|
2980
2984
|
delete e[it];
|
|
2981
2985
|
}
|
|
2982
2986
|
}
|
|
@@ -3008,8 +3012,8 @@ function al(e, t, n = {}) {
|
|
|
3008
3012
|
!o || o === "undefined" || t[o] || (Zn(e, o, !1), delete n[o]);
|
|
3009
3013
|
}
|
|
3010
3014
|
for (a = 0, i = s.length; a < i; a++) {
|
|
3011
|
-
const o = s[a],
|
|
3012
|
-
!o || o === "undefined" || n[o] ===
|
|
3015
|
+
const o = s[a], c = !!t[o];
|
|
3016
|
+
!o || o === "undefined" || n[o] === c || !c || (Zn(e, o, !0), n[o] = c);
|
|
3013
3017
|
}
|
|
3014
3018
|
return n;
|
|
3015
3019
|
}
|
|
@@ -3052,10 +3056,10 @@ function cl(e, t, n, s, r = {}, a = !1) {
|
|
|
3052
3056
|
}
|
|
3053
3057
|
function ul(e) {
|
|
3054
3058
|
let t, n;
|
|
3055
|
-
return !Ue() || !(t =
|
|
3059
|
+
return !Ue() || !(t = v.registry.get(n = fl())) ? e() : (v.completed && v.completed.add(t), v.registry.delete(n), t);
|
|
3056
3060
|
}
|
|
3057
3061
|
function Ue(e) {
|
|
3058
|
-
return !!
|
|
3062
|
+
return !!v.context && !v.done && (!e || e.isConnected);
|
|
3059
3063
|
}
|
|
3060
3064
|
function dl(e) {
|
|
3061
3065
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
@@ -3065,7 +3069,7 @@ function Zn(e, t, n) {
|
|
|
3065
3069
|
for (let r = 0, a = s.length; r < a; r++) e.classList.toggle(s[r], n);
|
|
3066
3070
|
}
|
|
3067
3071
|
function es(e, t, n, s, r, a, i) {
|
|
3068
|
-
let o,
|
|
3072
|
+
let o, c, u, d, f;
|
|
3069
3073
|
if (t === "style") return il(e, n, s);
|
|
3070
3074
|
if (t === "classList") return al(e, n, s);
|
|
3071
3075
|
if (n === s) return s;
|
|
@@ -3080,37 +3084,37 @@ function es(e, t, n, s, r, a, i) {
|
|
|
3080
3084
|
} else if (t.slice(0, 2) === "on") {
|
|
3081
3085
|
const h = t.slice(2).toLowerCase(), g = Yo.has(h);
|
|
3082
3086
|
if (!g && s) {
|
|
3083
|
-
const
|
|
3084
|
-
e.removeEventListener(h,
|
|
3087
|
+
const p = Array.isArray(s) ? s[0] : s;
|
|
3088
|
+
e.removeEventListener(h, p);
|
|
3085
3089
|
}
|
|
3086
3090
|
(g || n) && (rl(e, h, n, g), g && el([h]));
|
|
3087
3091
|
} else if (t.slice(0, 5) === "attr:")
|
|
3088
3092
|
pn(e, t.slice(5), n);
|
|
3089
3093
|
else if (t.slice(0, 5) === "bool:")
|
|
3090
3094
|
nl(e, t.slice(5), n);
|
|
3091
|
-
else if ((
|
|
3092
|
-
if (
|
|
3093
|
-
t = t.slice(5),
|
|
3095
|
+
else if ((f = t.slice(0, 5) === "prop:") || (u = $o.has(t)) || !r && ((d = Wo(t, e.tagName)) || (c = Qo.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
|
|
3096
|
+
if (f)
|
|
3097
|
+
t = t.slice(5), c = !0;
|
|
3094
3098
|
else if (Ue(e)) return n;
|
|
3095
|
-
t === "class" || t === "className" ? sl(e, n) : o && !
|
|
3099
|
+
t === "class" || t === "className" ? sl(e, n) : o && !c && !u ? e[dl(t)] = n : e[d || t] = n;
|
|
3096
3100
|
} else {
|
|
3097
3101
|
const h = r && t.indexOf(":") > -1 && Xo[t.split(":")[0]];
|
|
3098
3102
|
h ? tl(e, h, t, n) : pn(e, jo[t] || t, n);
|
|
3099
3103
|
}
|
|
3100
3104
|
return n;
|
|
3101
3105
|
}
|
|
3102
|
-
function
|
|
3103
|
-
if (
|
|
3106
|
+
function Xs(e) {
|
|
3107
|
+
if (v.registry && v.events && v.events.find(([c, u]) => u === e))
|
|
3104
3108
|
return;
|
|
3105
3109
|
let t = e.target;
|
|
3106
|
-
const n = `$$${e.type}`, s = e.target, r = e.currentTarget, a = (
|
|
3110
|
+
const n = `$$${e.type}`, s = e.target, r = e.currentTarget, a = (c) => Object.defineProperty(e, "target", {
|
|
3107
3111
|
configurable: !0,
|
|
3108
|
-
value:
|
|
3112
|
+
value: c
|
|
3109
3113
|
}), i = () => {
|
|
3110
|
-
const
|
|
3111
|
-
if (
|
|
3114
|
+
const c = t[n];
|
|
3115
|
+
if (c && !t.disabled) {
|
|
3112
3116
|
const u = t[`${n}Data`];
|
|
3113
|
-
if (u !== void 0 ?
|
|
3117
|
+
if (u !== void 0 ? c.call(t, u, e) : c.call(t, e), e.cancelBubble) return;
|
|
3114
3118
|
}
|
|
3115
3119
|
return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && a(t.host), !0;
|
|
3116
3120
|
}, o = () => {
|
|
@@ -3121,10 +3125,10 @@ function Zs(e) {
|
|
|
3121
3125
|
get() {
|
|
3122
3126
|
return t || document;
|
|
3123
3127
|
}
|
|
3124
|
-
}),
|
|
3125
|
-
const
|
|
3126
|
-
a(
|
|
3127
|
-
for (let u = 0; u <
|
|
3128
|
+
}), v.registry && !v.done && (v.done = _$HY.done = !0), e.composedPath) {
|
|
3129
|
+
const c = e.composedPath();
|
|
3130
|
+
a(c[0]);
|
|
3131
|
+
for (let u = 0; u < c.length - 2 && (t = c[u], !!i()); u++) {
|
|
3128
3132
|
if (t._$host) {
|
|
3129
3133
|
t = t._$host, o();
|
|
3130
3134
|
break;
|
|
@@ -3139,12 +3143,12 @@ function ut(e, t, n, s, r) {
|
|
|
3139
3143
|
const a = Ue(e);
|
|
3140
3144
|
if (a) {
|
|
3141
3145
|
!n && (n = [...e.childNodes]);
|
|
3142
|
-
let
|
|
3146
|
+
let c = [];
|
|
3143
3147
|
for (let u = 0; u < n.length; u++) {
|
|
3144
|
-
const
|
|
3145
|
-
|
|
3148
|
+
const d = n[u];
|
|
3149
|
+
d.nodeType === 8 && d.data.slice(0, 2) === "!$" ? d.remove() : c.push(d);
|
|
3146
3150
|
}
|
|
3147
|
-
n =
|
|
3151
|
+
n = c;
|
|
3148
3152
|
}
|
|
3149
3153
|
for (; typeof n == "function"; ) n = n();
|
|
3150
3154
|
if (t === n) return n;
|
|
@@ -3153,8 +3157,8 @@ function ut(e, t, n, s, r) {
|
|
|
3153
3157
|
if (a || i === "number" && (t = t.toString(), t === n))
|
|
3154
3158
|
return n;
|
|
3155
3159
|
if (o) {
|
|
3156
|
-
let
|
|
3157
|
-
|
|
3160
|
+
let c = n[0];
|
|
3161
|
+
c && c.nodeType === 3 ? c.data !== t && (c.data = t) : c = document.createTextNode(t), n = Me(e, n, s, c);
|
|
3158
3162
|
} else
|
|
3159
3163
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
3160
3164
|
} else if (t == null || i === "boolean") {
|
|
@@ -3163,27 +3167,27 @@ function ut(e, t, n, s, r) {
|
|
|
3163
3167
|
} else {
|
|
3164
3168
|
if (i === "function")
|
|
3165
3169
|
return De(() => {
|
|
3166
|
-
let
|
|
3167
|
-
for (; typeof
|
|
3168
|
-
n = ut(e,
|
|
3170
|
+
let c = t();
|
|
3171
|
+
for (; typeof c == "function"; ) c = c();
|
|
3172
|
+
n = ut(e, c, n, s);
|
|
3169
3173
|
}), () => n;
|
|
3170
3174
|
if (Array.isArray(t)) {
|
|
3171
|
-
const
|
|
3172
|
-
if (An(
|
|
3173
|
-
return De(() => n = ut(e,
|
|
3175
|
+
const c = [], u = n && Array.isArray(n);
|
|
3176
|
+
if (An(c, t, n, r))
|
|
3177
|
+
return De(() => n = ut(e, c, n, s, !0)), () => n;
|
|
3174
3178
|
if (a) {
|
|
3175
|
-
if (!
|
|
3179
|
+
if (!c.length) return n;
|
|
3176
3180
|
if (s === void 0) return n = [...e.childNodes];
|
|
3177
|
-
let
|
|
3178
|
-
if (
|
|
3179
|
-
const
|
|
3180
|
-
for (; (
|
|
3181
|
-
return n =
|
|
3181
|
+
let d = c[0];
|
|
3182
|
+
if (d.parentNode !== e) return n;
|
|
3183
|
+
const f = [d];
|
|
3184
|
+
for (; (d = d.nextSibling) !== s; ) f.push(d);
|
|
3185
|
+
return n = f;
|
|
3182
3186
|
}
|
|
3183
|
-
if (
|
|
3187
|
+
if (c.length === 0) {
|
|
3184
3188
|
if (n = Me(e, n, s), o) return n;
|
|
3185
|
-
} else u ? n.length === 0 ? ts(e,
|
|
3186
|
-
n =
|
|
3189
|
+
} else u ? n.length === 0 ? ts(e, c, s) : Zo(e, n, c) : (n && Me(e), ts(e, c));
|
|
3190
|
+
n = c;
|
|
3187
3191
|
} else if (t.nodeType) {
|
|
3188
3192
|
if (a && t.parentNode) return n = o ? [t] : t;
|
|
3189
3193
|
if (Array.isArray(n)) {
|
|
@@ -3198,20 +3202,20 @@ function ut(e, t, n, s, r) {
|
|
|
3198
3202
|
function An(e, t, n, s) {
|
|
3199
3203
|
let r = !1;
|
|
3200
3204
|
for (let a = 0, i = t.length; a < i; a++) {
|
|
3201
|
-
let o = t[a],
|
|
3205
|
+
let o = t[a], c = n && n[e.length], u;
|
|
3202
3206
|
if (!(o == null || o === !0 || o === !1)) if ((u = typeof o) == "object" && o.nodeType)
|
|
3203
3207
|
e.push(o);
|
|
3204
3208
|
else if (Array.isArray(o))
|
|
3205
|
-
r = An(e, o,
|
|
3209
|
+
r = An(e, o, c) || r;
|
|
3206
3210
|
else if (u === "function")
|
|
3207
3211
|
if (s) {
|
|
3208
3212
|
for (; typeof o == "function"; ) o = o();
|
|
3209
|
-
r = An(e, Array.isArray(o) ? o : [o], Array.isArray(
|
|
3213
|
+
r = An(e, Array.isArray(o) ? o : [o], Array.isArray(c) ? c : [c]) || r;
|
|
3210
3214
|
} else
|
|
3211
3215
|
e.push(o), r = !0;
|
|
3212
3216
|
else {
|
|
3213
|
-
const
|
|
3214
|
-
|
|
3217
|
+
const d = String(o);
|
|
3218
|
+
c && c.nodeType === 3 && c.data === d ? e.push(c) : e.push(document.createTextNode(d));
|
|
3215
3219
|
}
|
|
3216
3220
|
}
|
|
3217
3221
|
return r;
|
|
@@ -3227,41 +3231,41 @@ function Me(e, t, n, s) {
|
|
|
3227
3231
|
for (let i = t.length - 1; i >= 0; i--) {
|
|
3228
3232
|
const o = t[i];
|
|
3229
3233
|
if (r !== o) {
|
|
3230
|
-
const
|
|
3231
|
-
!a && !i ?
|
|
3234
|
+
const c = o.parentNode === e;
|
|
3235
|
+
!a && !i ? c ? e.replaceChild(r, o) : e.insertBefore(r, n) : c && o.remove();
|
|
3232
3236
|
} else a = !0;
|
|
3233
3237
|
}
|
|
3234
3238
|
} else e.insertBefore(r, n);
|
|
3235
3239
|
return [r];
|
|
3236
3240
|
}
|
|
3237
3241
|
function fl() {
|
|
3238
|
-
return
|
|
3242
|
+
return v.getNextContextId();
|
|
3239
3243
|
}
|
|
3240
3244
|
var hl = "http://www.w3.org/2000/svg";
|
|
3241
|
-
function
|
|
3245
|
+
function Zs(e, t = !1) {
|
|
3242
3246
|
return t ? document.createElementNS(hl, e) : document.createElement(e);
|
|
3243
3247
|
}
|
|
3244
3248
|
function uu(e) {
|
|
3245
3249
|
const {
|
|
3246
3250
|
useShadow: t
|
|
3247
3251
|
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = Xn();
|
|
3248
|
-
let a, i = !!
|
|
3249
|
-
return
|
|
3250
|
-
i && (Xn().user = i = !1), a || (a =
|
|
3252
|
+
let a, i = !!v.context;
|
|
3253
|
+
return Fs(() => {
|
|
3254
|
+
i && (Xn().user = i = !1), a || (a = qs(r, () => J(() => e.children)));
|
|
3251
3255
|
const o = s();
|
|
3252
3256
|
if (o instanceof HTMLHeadElement) {
|
|
3253
|
-
const [
|
|
3254
|
-
Oe((
|
|
3257
|
+
const [c, u] = q(!1), d = () => u(!0);
|
|
3258
|
+
Oe((f) => yn(o, () => c() ? f() : a(), null)), lt(d);
|
|
3255
3259
|
} else {
|
|
3256
|
-
const
|
|
3260
|
+
const c = Zs(e.isSVG ? "g" : "div", e.isSVG), u = t && c.attachShadow ? c.attachShadow({
|
|
3257
3261
|
mode: "open"
|
|
3258
|
-
}) :
|
|
3259
|
-
Object.defineProperty(
|
|
3262
|
+
}) : c;
|
|
3263
|
+
Object.defineProperty(c, "_$host", {
|
|
3260
3264
|
get() {
|
|
3261
3265
|
return n.parentNode;
|
|
3262
3266
|
},
|
|
3263
3267
|
configurable: !0
|
|
3264
|
-
}), yn(u, a), o.appendChild(
|
|
3268
|
+
}), yn(u, a), o.appendChild(c), e.ref && e.ref(c), lt(() => o.removeChild(c));
|
|
3265
3269
|
}
|
|
3266
3270
|
}, void 0, {
|
|
3267
3271
|
render: !i
|
|
@@ -3275,7 +3279,7 @@ function gl(e, t) {
|
|
|
3275
3279
|
case "function":
|
|
3276
3280
|
return Z(() => s(t));
|
|
3277
3281
|
case "string":
|
|
3278
|
-
const r = Jo.has(s), a =
|
|
3282
|
+
const r = Jo.has(s), a = v.context ? ul() : Zs(s, r);
|
|
3279
3283
|
return ol(a, t, r), a;
|
|
3280
3284
|
}
|
|
3281
3285
|
});
|
|
@@ -3300,7 +3304,7 @@ var ml = class {
|
|
|
3300
3304
|
clear() {
|
|
3301
3305
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
3302
3306
|
}
|
|
3303
|
-
},
|
|
3307
|
+
}, er = class {
|
|
3304
3308
|
constructor(e) {
|
|
3305
3309
|
this.generateIdentifier = e, this.kv = new ml();
|
|
3306
3310
|
}
|
|
@@ -3316,7 +3320,7 @@ var ml = class {
|
|
|
3316
3320
|
getValue(e) {
|
|
3317
3321
|
return this.kv.getByKey(e);
|
|
3318
3322
|
}
|
|
3319
|
-
}, El = class extends
|
|
3323
|
+
}, El = class extends er {
|
|
3320
3324
|
constructor() {
|
|
3321
3325
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
3322
3326
|
}
|
|
@@ -3372,7 +3376,7 @@ var Al = class {
|
|
|
3372
3376
|
findByName(e) {
|
|
3373
3377
|
return this.transfomers[e];
|
|
3374
3378
|
}
|
|
3375
|
-
}, Tl = (e) => Object.prototype.toString.call(e).slice(8, -1),
|
|
3379
|
+
}, Tl = (e) => Object.prototype.toString.call(e).slice(8, -1), tr = (e) => typeof e > "u", Sl = (e) => e === null, dt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Tn = (e) => dt(e) && Object.keys(e).length === 0, we = (e) => Array.isArray(e), _l = (e) => typeof e == "string", Pl = (e) => typeof e == "number" && !isNaN(e), vl = (e) => typeof e == "boolean", wl = (e) => e instanceof RegExp, ft = (e) => e instanceof Map, ht = (e) => e instanceof Set, nr = (e) => Tl(e) === "Symbol", bl = (e) => e instanceof Date && !isNaN(e.valueOf()), Il = (e) => e instanceof Error, ss = (e) => typeof e == "number" && isNaN(e), Cl = (e) => vl(e) || Sl(e) || tr(e) || Pl(e) || _l(e) || nr(e), Nl = (e) => typeof e == "bigint", Ll = (e) => e === 1 / 0 || e === -1 / 0, kl = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ol = (e) => e instanceof URL, sr = (e) => e.replace(/\./g, "\\."), dn = (e) => e.map(String).map(sr).join("."), ot = (e) => {
|
|
3376
3380
|
const t = [];
|
|
3377
3381
|
let n = "";
|
|
3378
3382
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3398,8 +3402,8 @@ function fe(e, t, n, s) {
|
|
|
3398
3402
|
untransform: s
|
|
3399
3403
|
};
|
|
3400
3404
|
}
|
|
3401
|
-
var
|
|
3402
|
-
fe(
|
|
3405
|
+
var rr = [
|
|
3406
|
+
fe(tr, "undefined", () => null, () => {
|
|
3403
3407
|
}),
|
|
3404
3408
|
fe(Nl, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
|
|
3405
3409
|
fe(bl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
@@ -3442,7 +3446,7 @@ function en(e, t, n, s) {
|
|
|
3442
3446
|
untransform: s
|
|
3443
3447
|
};
|
|
3444
3448
|
}
|
|
3445
|
-
var
|
|
3449
|
+
var ar = en((e, t) => nr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
3446
3450
|
const s = n.symbolRegistry.getValue(t[1]);
|
|
3447
3451
|
if (!s)
|
|
3448
3452
|
throw new Error("Trying to deserialize unknown symbol");
|
|
@@ -3457,16 +3461,16 @@ var ir = en((e, t) => sr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
3457
3461
|
Float32Array,
|
|
3458
3462
|
Float64Array,
|
|
3459
3463
|
Uint8ClampedArray
|
|
3460
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
3464
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), ir = en(kl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
3461
3465
|
const n = Dl[t[1]];
|
|
3462
3466
|
if (!n)
|
|
3463
3467
|
throw new Error("Trying to deserialize unknown typed array");
|
|
3464
3468
|
return new n(e);
|
|
3465
3469
|
});
|
|
3466
|
-
function
|
|
3470
|
+
function or(e, t) {
|
|
3467
3471
|
return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
3468
3472
|
}
|
|
3469
|
-
var
|
|
3473
|
+
var lr = en(or, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
3470
3474
|
const n = t.classRegistry.getAllowedProps(e.constructor);
|
|
3471
3475
|
if (!n)
|
|
3472
3476
|
return { ...e };
|
|
@@ -3479,44 +3483,44 @@ var cr = en(lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3479
3483
|
if (!s)
|
|
3480
3484
|
throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
3481
3485
|
return Object.assign(Object.create(s.prototype), e);
|
|
3482
|
-
}),
|
|
3486
|
+
}), cr = en((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
|
|
3483
3487
|
const s = n.customTransformerRegistry.findByName(t[1]);
|
|
3484
3488
|
if (!s)
|
|
3485
3489
|
throw new Error("Trying to deserialize unknown custom value");
|
|
3486
3490
|
return s.deserialize(e);
|
|
3487
|
-
}), Gl = [
|
|
3491
|
+
}), Gl = [lr, ar, cr, ir], rs = (e, t) => {
|
|
3488
3492
|
const n = ns(Gl, (r) => r.isApplicable(e, t));
|
|
3489
3493
|
if (n)
|
|
3490
3494
|
return {
|
|
3491
3495
|
value: n.transform(e, t),
|
|
3492
3496
|
type: n.annotation(e, t)
|
|
3493
3497
|
};
|
|
3494
|
-
const s = ns(
|
|
3498
|
+
const s = ns(rr, (r) => r.isApplicable(e, t));
|
|
3495
3499
|
if (s)
|
|
3496
3500
|
return {
|
|
3497
3501
|
value: s.transform(e, t),
|
|
3498
3502
|
type: s.annotation
|
|
3499
3503
|
};
|
|
3500
|
-
},
|
|
3501
|
-
|
|
3502
|
-
|
|
3504
|
+
}, ur = {};
|
|
3505
|
+
rr.forEach((e) => {
|
|
3506
|
+
ur[e.annotation] = e;
|
|
3503
3507
|
});
|
|
3504
3508
|
var xl = (e, t, n) => {
|
|
3505
|
-
if (
|
|
3509
|
+
if (we(t))
|
|
3506
3510
|
switch (t[0]) {
|
|
3507
3511
|
case "symbol":
|
|
3508
|
-
return
|
|
3512
|
+
return ar.untransform(e, t, n);
|
|
3509
3513
|
case "class":
|
|
3510
|
-
return
|
|
3514
|
+
return lr.untransform(e, t, n);
|
|
3511
3515
|
case "custom":
|
|
3512
|
-
return
|
|
3516
|
+
return cr.untransform(e, t, n);
|
|
3513
3517
|
case "typed-array":
|
|
3514
|
-
return
|
|
3518
|
+
return ir.untransform(e, t, n);
|
|
3515
3519
|
default:
|
|
3516
3520
|
throw new Error("Unknown transformation: " + t);
|
|
3517
3521
|
}
|
|
3518
3522
|
else {
|
|
3519
|
-
const s =
|
|
3523
|
+
const s = ur[t];
|
|
3520
3524
|
if (!s)
|
|
3521
3525
|
throw new Error("Unknown transformation: " + t);
|
|
3522
3526
|
return s.untransform(e, n);
|
|
@@ -3529,7 +3533,7 @@ var xl = (e, t, n) => {
|
|
|
3529
3533
|
n.next(), t--;
|
|
3530
3534
|
return n.next().value;
|
|
3531
3535
|
};
|
|
3532
|
-
function
|
|
3536
|
+
function dr(e) {
|
|
3533
3537
|
if (Ut(e, "__proto__"))
|
|
3534
3538
|
throw new Error("__proto__ is not allowed as a property");
|
|
3535
3539
|
if (Ut(e, "prototype"))
|
|
@@ -3538,7 +3542,7 @@ function fr(e) {
|
|
|
3538
3542
|
throw new Error("constructor is not allowed as a property");
|
|
3539
3543
|
}
|
|
3540
3544
|
var Rl = (e, t) => {
|
|
3541
|
-
|
|
3545
|
+
dr(t);
|
|
3542
3546
|
for (let n = 0; n < t.length; n++) {
|
|
3543
3547
|
const s = t[n];
|
|
3544
3548
|
if (ht(e))
|
|
@@ -3558,12 +3562,12 @@ var Rl = (e, t) => {
|
|
|
3558
3562
|
}
|
|
3559
3563
|
return e;
|
|
3560
3564
|
}, Sn = (e, t, n) => {
|
|
3561
|
-
if (
|
|
3565
|
+
if (dr(t), t.length === 0)
|
|
3562
3566
|
return n(e);
|
|
3563
3567
|
let s = e;
|
|
3564
3568
|
for (let a = 0; a < t.length - 1; a++) {
|
|
3565
3569
|
const i = t[a];
|
|
3566
|
-
if (
|
|
3570
|
+
if (we(s)) {
|
|
3567
3571
|
const o = +i;
|
|
3568
3572
|
s = s[o];
|
|
3569
3573
|
} else if (dt(s))
|
|
@@ -3574,19 +3578,19 @@ var Rl = (e, t) => {
|
|
|
3574
3578
|
} else if (ft(s)) {
|
|
3575
3579
|
if (a === t.length - 2)
|
|
3576
3580
|
break;
|
|
3577
|
-
const
|
|
3581
|
+
const c = +i, u = +t[++a] == 0 ? "key" : "value", d = Fe(s, c);
|
|
3578
3582
|
switch (u) {
|
|
3579
3583
|
case "key":
|
|
3580
|
-
s =
|
|
3584
|
+
s = d;
|
|
3581
3585
|
break;
|
|
3582
3586
|
case "value":
|
|
3583
|
-
s = s.get(
|
|
3587
|
+
s = s.get(d);
|
|
3584
3588
|
break;
|
|
3585
3589
|
}
|
|
3586
3590
|
}
|
|
3587
3591
|
}
|
|
3588
3592
|
const r = t[t.length - 1];
|
|
3589
|
-
if (
|
|
3593
|
+
if (we(s) ? s[+r] = n(s[+r]) : dt(s) && (s[r] = n(s[r])), ht(s)) {
|
|
3590
3594
|
const a = Fe(s, +r), i = n(a);
|
|
3591
3595
|
a !== i && (s.delete(a), s.add(i));
|
|
3592
3596
|
}
|
|
@@ -3594,8 +3598,8 @@ var Rl = (e, t) => {
|
|
|
3594
3598
|
const a = +t[t.length - 2], i = Fe(s, a);
|
|
3595
3599
|
switch (+r == 0 ? "key" : "value") {
|
|
3596
3600
|
case "key": {
|
|
3597
|
-
const
|
|
3598
|
-
s.set(
|
|
3601
|
+
const c = n(i);
|
|
3602
|
+
s.set(c, s.get(i)), c !== i && s.delete(i);
|
|
3599
3603
|
break;
|
|
3600
3604
|
}
|
|
3601
3605
|
case "value": {
|
|
@@ -3609,7 +3613,7 @@ var Rl = (e, t) => {
|
|
|
3609
3613
|
function _n(e, t, n = []) {
|
|
3610
3614
|
if (!e)
|
|
3611
3615
|
return;
|
|
3612
|
-
if (!
|
|
3616
|
+
if (!we(e)) {
|
|
3613
3617
|
nt(e, (a, i) => _n(a, t, [...n, ...ot(i)]));
|
|
3614
3618
|
return;
|
|
3615
3619
|
}
|
|
@@ -3630,7 +3634,7 @@ function Bl(e, t) {
|
|
|
3630
3634
|
e = Sn(e, i, () => a);
|
|
3631
3635
|
});
|
|
3632
3636
|
}
|
|
3633
|
-
if (
|
|
3637
|
+
if (we(t)) {
|
|
3634
3638
|
const [s, r] = t;
|
|
3635
3639
|
s.forEach((a) => {
|
|
3636
3640
|
e = Sn(e, ot(a), () => e);
|
|
@@ -3639,7 +3643,7 @@ function Bl(e, t) {
|
|
|
3639
3643
|
nt(t, n);
|
|
3640
3644
|
return e;
|
|
3641
3645
|
}
|
|
3642
|
-
var Ml = (e, t) => dt(e) ||
|
|
3646
|
+
var Ml = (e, t) => dt(e) || we(e) || ft(e) || ht(e) || or(e, t);
|
|
3643
3647
|
function Fl(e, t, n) {
|
|
3644
3648
|
const s = n.get(e);
|
|
3645
3649
|
s ? s.push(t) : n.set(e, [t]);
|
|
@@ -3650,12 +3654,12 @@ function ql(e, t) {
|
|
|
3650
3654
|
return e.forEach((r) => {
|
|
3651
3655
|
if (r.length <= 1)
|
|
3652
3656
|
return;
|
|
3653
|
-
t || (r = r.map((o) => o.map(String)).sort((o,
|
|
3657
|
+
t || (r = r.map((o) => o.map(String)).sort((o, c) => o.length - c.length));
|
|
3654
3658
|
const [a, ...i] = r;
|
|
3655
3659
|
a.length === 0 ? s = i.map(dn) : n[dn(a)] = i.map(dn);
|
|
3656
3660
|
}), s ? Tn(n) ? [s] : [s, n] : Tn(n) ? void 0 : n;
|
|
3657
3661
|
}
|
|
3658
|
-
var
|
|
3662
|
+
var fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
3659
3663
|
const o = Cl(e);
|
|
3660
3664
|
if (!o) {
|
|
3661
3665
|
Fl(e, r, t);
|
|
@@ -3666,44 +3670,44 @@ var hr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3666
3670
|
} : g;
|
|
3667
3671
|
}
|
|
3668
3672
|
if (!Ml(e, n)) {
|
|
3669
|
-
const g = rs(e, n),
|
|
3673
|
+
const g = rs(e, n), p = g ? {
|
|
3670
3674
|
transformedValue: g.value,
|
|
3671
3675
|
annotations: [g.type]
|
|
3672
3676
|
} : {
|
|
3673
3677
|
transformedValue: e
|
|
3674
3678
|
};
|
|
3675
|
-
return o || i.set(e,
|
|
3679
|
+
return o || i.set(e, p), p;
|
|
3676
3680
|
}
|
|
3677
3681
|
if (Ut(a, e))
|
|
3678
3682
|
return {
|
|
3679
3683
|
transformedValue: null
|
|
3680
3684
|
};
|
|
3681
|
-
const
|
|
3682
|
-
nt(u, (g,
|
|
3683
|
-
if (
|
|
3684
|
-
throw new Error(`Detected property ${
|
|
3685
|
-
const
|
|
3686
|
-
|
|
3687
|
-
|
|
3685
|
+
const c = rs(e, n), u = (c == null ? void 0 : c.value) ?? e, d = we(u) ? [] : {}, f = {};
|
|
3686
|
+
nt(u, (g, p) => {
|
|
3687
|
+
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
3688
|
+
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3689
|
+
const S = fr(g, t, n, s, [...r, p], [...a, e], i);
|
|
3690
|
+
d[p] = S.transformedValue, we(S.annotations) ? f[p] = S.annotations : dt(S.annotations) && nt(S.annotations, (P, T) => {
|
|
3691
|
+
f[sr(p) + "." + T] = P;
|
|
3688
3692
|
});
|
|
3689
3693
|
});
|
|
3690
|
-
const h = Tn(
|
|
3691
|
-
transformedValue:
|
|
3692
|
-
annotations:
|
|
3694
|
+
const h = Tn(f) ? {
|
|
3695
|
+
transformedValue: d,
|
|
3696
|
+
annotations: c ? [c.type] : void 0
|
|
3693
3697
|
} : {
|
|
3694
|
-
transformedValue:
|
|
3695
|
-
annotations:
|
|
3698
|
+
transformedValue: d,
|
|
3699
|
+
annotations: c ? [c.type, f] : f
|
|
3696
3700
|
};
|
|
3697
3701
|
return o || i.set(e, h), h;
|
|
3698
3702
|
};
|
|
3699
|
-
function
|
|
3703
|
+
function hr(e) {
|
|
3700
3704
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
3701
3705
|
}
|
|
3702
3706
|
function as(e) {
|
|
3703
|
-
return
|
|
3707
|
+
return hr(e) === "Array";
|
|
3704
3708
|
}
|
|
3705
3709
|
function Kl(e) {
|
|
3706
|
-
if (
|
|
3710
|
+
if (hr(e) !== "Object")
|
|
3707
3711
|
return !1;
|
|
3708
3712
|
const t = Object.getPrototypeOf(e);
|
|
3709
3713
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
@@ -3735,10 +3739,10 @@ var x = class {
|
|
|
3735
3739
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3736
3740
|
*/
|
|
3737
3741
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3738
|
-
this.classRegistry = new El(), this.symbolRegistry = new
|
|
3742
|
+
this.classRegistry = new El(), this.symbolRegistry = new er((t) => t.description ?? ""), this.customTransformerRegistry = new Al(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3739
3743
|
}
|
|
3740
3744
|
serialize(e) {
|
|
3741
|
-
const t = /* @__PURE__ */ new Map(), n =
|
|
3745
|
+
const t = /* @__PURE__ */ new Map(), n = fr(e, t, this, this.dedupe), s = {
|
|
3742
3746
|
json: n.transformedValue
|
|
3743
3747
|
};
|
|
3744
3748
|
n.annotations && (s.meta = {
|
|
@@ -3815,13 +3819,13 @@ var yu = (e, t = !1) => {
|
|
|
3815
3819
|
json: n
|
|
3816
3820
|
} = Hl(e);
|
|
3817
3821
|
return JSON.stringify(n, null, t ? 2 : void 0);
|
|
3818
|
-
}, Ot = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Ql = (e, t) => e.queryHash.localeCompare(t.queryHash),
|
|
3822
|
+
}, Ot = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Ql = (e, t) => e.queryHash.localeCompare(t.queryHash), gr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, $l = (e, t) => Ot(e) === Ot(t) ? gr(e, t) : Ot(e) > Ot(t) ? 1 : -1, Au = {
|
|
3819
3823
|
status: $l,
|
|
3820
3824
|
"query hash": Ql,
|
|
3821
|
-
"last updated":
|
|
3822
|
-
}, Dt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3,
|
|
3825
|
+
"last updated": gr
|
|
3826
|
+
}, Dt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, mr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, jl = (e, t) => Dt(e) === Dt(t) ? mr(e, t) : Dt(e) > Dt(t) ? 1 : -1, Tu = {
|
|
3823
3827
|
status: jl,
|
|
3824
|
-
"last updated":
|
|
3828
|
+
"last updated": mr
|
|
3825
3829
|
}, Su = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), _u = () => {
|
|
3826
3830
|
const [e, t] = q("dark");
|
|
3827
3831
|
return ko(() => {
|
|
@@ -3892,7 +3896,7 @@ var yu = (e, t = !1) => {
|
|
|
3892
3896
|
return n[s] = xt(n[s], r), n;
|
|
3893
3897
|
}
|
|
3894
3898
|
return e;
|
|
3895
|
-
},
|
|
3899
|
+
}, Er = (e, t) => {
|
|
3896
3900
|
if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
|
|
3897
3901
|
const s = document.createElement("style"), r = document.createTextNode("");
|
|
3898
3902
|
s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
|
|
@@ -3920,50 +3924,50 @@ var yu = (e, t = !1) => {
|
|
|
3920
3924
|
buttonPosition: a,
|
|
3921
3925
|
position: i,
|
|
3922
3926
|
initialIsOpen: o,
|
|
3923
|
-
errorTypes:
|
|
3927
|
+
errorTypes: c,
|
|
3924
3928
|
styleNonce: u,
|
|
3925
|
-
shadowDOMTarget:
|
|
3926
|
-
hideDisabledQueries:
|
|
3929
|
+
shadowDOMTarget: d,
|
|
3930
|
+
hideDisabledQueries: f
|
|
3927
3931
|
} = e;
|
|
3928
|
-
|
|
3932
|
+
O(this, qe, q(t)), O(this, mt, n), O(this, Et, s), O(this, gt, r), O(this, pt, u), O(this, Ke, d), O(this, Ve, q(a)), O(this, He, q(i)), O(this, Qe, q(o)), O(this, $e, q(c)), O(this, yt, q(f));
|
|
3929
3933
|
}
|
|
3930
3934
|
setButtonPosition(e) {
|
|
3931
|
-
|
|
3935
|
+
_(this, Ve)[1](e);
|
|
3932
3936
|
}
|
|
3933
3937
|
setPosition(e) {
|
|
3934
|
-
|
|
3938
|
+
_(this, He)[1](e);
|
|
3935
3939
|
}
|
|
3936
3940
|
setInitialIsOpen(e) {
|
|
3937
|
-
|
|
3941
|
+
_(this, Qe)[1](e);
|
|
3938
3942
|
}
|
|
3939
3943
|
setErrorTypes(e) {
|
|
3940
|
-
|
|
3944
|
+
_(this, $e)[1](e);
|
|
3941
3945
|
}
|
|
3942
3946
|
setClient(e) {
|
|
3943
|
-
|
|
3947
|
+
_(this, qe)[1](e);
|
|
3944
3948
|
}
|
|
3945
3949
|
mount(e) {
|
|
3946
|
-
if (
|
|
3950
|
+
if (_(this, Le))
|
|
3947
3951
|
throw new Error("Devtools is already mounted");
|
|
3948
|
-
const t =
|
|
3949
|
-
const n = this, [s] =
|
|
3952
|
+
const t = Js(() => {
|
|
3953
|
+
const n = this, [s] = _(this, Ve), [r] = _(this, He), [a] = _(this, Qe), [i] = _(this, $e), [o] = _(this, yt), [c] = _(this, qe);
|
|
3950
3954
|
let u;
|
|
3951
|
-
return
|
|
3955
|
+
return _(this, je) ? u = _(this, je) : (u = Ws(() => import("./NCMVHL6D-DoK0XoIo.js")), O(this, je, u)), Er(_(this, pt), _(this, Ke)), js(u, zs({
|
|
3952
3956
|
get queryFlavor() {
|
|
3953
|
-
return
|
|
3957
|
+
return _(n, mt);
|
|
3954
3958
|
},
|
|
3955
3959
|
get version() {
|
|
3956
|
-
return
|
|
3960
|
+
return _(n, Et);
|
|
3957
3961
|
},
|
|
3958
3962
|
get onlineManager() {
|
|
3959
|
-
return
|
|
3963
|
+
return _(n, gt);
|
|
3960
3964
|
},
|
|
3961
3965
|
get shadowDOMTarget() {
|
|
3962
|
-
return
|
|
3966
|
+
return _(n, Ke);
|
|
3963
3967
|
}
|
|
3964
3968
|
}, {
|
|
3965
3969
|
get client() {
|
|
3966
|
-
return
|
|
3970
|
+
return c();
|
|
3967
3971
|
},
|
|
3968
3972
|
get buttonPosition() {
|
|
3969
3973
|
return s();
|
|
@@ -3982,13 +3986,13 @@ var yu = (e, t = !1) => {
|
|
|
3982
3986
|
}
|
|
3983
3987
|
}));
|
|
3984
3988
|
}, e);
|
|
3985
|
-
|
|
3989
|
+
O(this, Le, !0), O(this, At, t);
|
|
3986
3990
|
}
|
|
3987
3991
|
unmount() {
|
|
3988
3992
|
var e;
|
|
3989
|
-
if (!
|
|
3993
|
+
if (!_(this, Le))
|
|
3990
3994
|
throw new Error("Devtools is not mounted");
|
|
3991
|
-
(e =
|
|
3995
|
+
(e = _(this, At)) == null || e.call(this), O(this, Le, !1);
|
|
3992
3996
|
}
|
|
3993
3997
|
}, qe = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Et = new WeakMap(), Le = new WeakMap(), pt = new WeakMap(), Ke = new WeakMap(), Ve = new WeakMap(), He = new WeakMap(), Qe = new WeakMap(), $e = new WeakMap(), yt = new WeakMap(), je = new WeakMap(), At = new WeakMap(), cs), ze, Tt, St, _t, ke, Pt, We, Ye, Je, Xe, Ze, vt, et, tt, wt, us, Wl = (us = class {
|
|
3994
3998
|
constructor(e) {
|
|
@@ -4015,54 +4019,54 @@ var yu = (e, t = !1) => {
|
|
|
4015
4019
|
buttonPosition: a,
|
|
4016
4020
|
position: i,
|
|
4017
4021
|
initialIsOpen: o,
|
|
4018
|
-
errorTypes:
|
|
4022
|
+
errorTypes: c,
|
|
4019
4023
|
styleNonce: u,
|
|
4020
|
-
shadowDOMTarget:
|
|
4021
|
-
onClose:
|
|
4024
|
+
shadowDOMTarget: d,
|
|
4025
|
+
onClose: f,
|
|
4022
4026
|
hideDisabledQueries: h
|
|
4023
4027
|
} = e;
|
|
4024
|
-
|
|
4028
|
+
O(this, ze, q(t)), O(this, St, n), O(this, _t, s), O(this, Tt, r), O(this, Pt, u), O(this, We, d), O(this, Ye, q(a)), O(this, Je, q(i)), O(this, Xe, q(o)), O(this, Ze, q(c)), O(this, vt, q(h)), O(this, et, q(f));
|
|
4025
4029
|
}
|
|
4026
4030
|
setButtonPosition(e) {
|
|
4027
|
-
|
|
4031
|
+
_(this, Ye)[1](e);
|
|
4028
4032
|
}
|
|
4029
4033
|
setPosition(e) {
|
|
4030
|
-
|
|
4034
|
+
_(this, Je)[1](e);
|
|
4031
4035
|
}
|
|
4032
4036
|
setInitialIsOpen(e) {
|
|
4033
|
-
|
|
4037
|
+
_(this, Xe)[1](e);
|
|
4034
4038
|
}
|
|
4035
4039
|
setErrorTypes(e) {
|
|
4036
|
-
|
|
4040
|
+
_(this, Ze)[1](e);
|
|
4037
4041
|
}
|
|
4038
4042
|
setClient(e) {
|
|
4039
|
-
|
|
4043
|
+
_(this, ze)[1](e);
|
|
4040
4044
|
}
|
|
4041
4045
|
setOnClose(e) {
|
|
4042
|
-
|
|
4046
|
+
_(this, et)[1](() => e);
|
|
4043
4047
|
}
|
|
4044
4048
|
mount(e) {
|
|
4045
|
-
if (
|
|
4049
|
+
if (_(this, ke))
|
|
4046
4050
|
throw new Error("Devtools is already mounted");
|
|
4047
|
-
const t =
|
|
4048
|
-
const n = this, [s] =
|
|
4049
|
-
let
|
|
4050
|
-
return
|
|
4051
|
+
const t = Js(() => {
|
|
4052
|
+
const n = this, [s] = _(this, Ye), [r] = _(this, Je), [a] = _(this, Xe), [i] = _(this, Ze), [o] = _(this, vt), [c] = _(this, ze), [u] = _(this, et);
|
|
4053
|
+
let d;
|
|
4054
|
+
return _(this, tt) ? d = _(this, tt) : (d = Ws(() => import("./2AITGKQY-Z1XcJ6Q7.js")), O(this, tt, d)), Er(_(this, Pt), _(this, We)), js(d, zs({
|
|
4051
4055
|
get queryFlavor() {
|
|
4052
|
-
return
|
|
4056
|
+
return _(n, St);
|
|
4053
4057
|
},
|
|
4054
4058
|
get version() {
|
|
4055
|
-
return
|
|
4059
|
+
return _(n, _t);
|
|
4056
4060
|
},
|
|
4057
4061
|
get onlineManager() {
|
|
4058
|
-
return
|
|
4062
|
+
return _(n, Tt);
|
|
4059
4063
|
},
|
|
4060
4064
|
get shadowDOMTarget() {
|
|
4061
|
-
return
|
|
4065
|
+
return _(n, We);
|
|
4062
4066
|
}
|
|
4063
4067
|
}, {
|
|
4064
4068
|
get client() {
|
|
4065
|
-
return
|
|
4069
|
+
return c();
|
|
4066
4070
|
},
|
|
4067
4071
|
get buttonPosition() {
|
|
4068
4072
|
return s();
|
|
@@ -4084,13 +4088,13 @@ var yu = (e, t = !1) => {
|
|
|
4084
4088
|
}
|
|
4085
4089
|
}));
|
|
4086
4090
|
}, e);
|
|
4087
|
-
|
|
4091
|
+
O(this, ke, !0), O(this, wt, t);
|
|
4088
4092
|
}
|
|
4089
4093
|
unmount() {
|
|
4090
4094
|
var e;
|
|
4091
|
-
if (!
|
|
4095
|
+
if (!_(this, ke))
|
|
4092
4096
|
throw new Error("Devtools is not mounted");
|
|
4093
|
-
(e =
|
|
4097
|
+
(e = _(this, wt)) == null || e.call(this), O(this, ke, !1);
|
|
4094
4098
|
}
|
|
4095
4099
|
}, ze = new WeakMap(), Tt = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), ke = new WeakMap(), Pt = new WeakMap(), We = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Xe = new WeakMap(), Ze = new WeakMap(), vt = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), us);
|
|
4096
4100
|
function Yl(e) {
|
|
@@ -4100,9 +4104,9 @@ function Yl(e) {
|
|
|
4100
4104
|
initialIsOpen: a,
|
|
4101
4105
|
errorTypes: i,
|
|
4102
4106
|
styleNonce: o,
|
|
4103
|
-
shadowDOMTarget:
|
|
4107
|
+
shadowDOMTarget: c,
|
|
4104
4108
|
hideDisabledQueries: u
|
|
4105
|
-
} = e, [
|
|
4109
|
+
} = e, [d] = z.useState(
|
|
4106
4110
|
new zl({
|
|
4107
4111
|
client: t,
|
|
4108
4112
|
queryFlavor: "React Query",
|
|
@@ -4113,23 +4117,23 @@ function Yl(e) {
|
|
|
4113
4117
|
initialIsOpen: a,
|
|
4114
4118
|
errorTypes: i,
|
|
4115
4119
|
styleNonce: o,
|
|
4116
|
-
shadowDOMTarget:
|
|
4120
|
+
shadowDOMTarget: c,
|
|
4117
4121
|
hideDisabledQueries: u
|
|
4118
4122
|
})
|
|
4119
4123
|
);
|
|
4120
4124
|
return z.useEffect(() => {
|
|
4121
|
-
|
|
4122
|
-
}, [t,
|
|
4123
|
-
s &&
|
|
4124
|
-
}, [s,
|
|
4125
|
-
r &&
|
|
4126
|
-
}, [r,
|
|
4127
|
-
|
|
4128
|
-
}, [a,
|
|
4129
|
-
|
|
4130
|
-
}, [i,
|
|
4131
|
-
|
|
4132
|
-
}), [
|
|
4125
|
+
d.setClient(t);
|
|
4126
|
+
}, [t, d]), z.useEffect(() => {
|
|
4127
|
+
s && d.setButtonPosition(s);
|
|
4128
|
+
}, [s, d]), z.useEffect(() => {
|
|
4129
|
+
r && d.setPosition(r);
|
|
4130
|
+
}, [r, d]), z.useEffect(() => {
|
|
4131
|
+
d.setInitialIsOpen(a || !1);
|
|
4132
|
+
}, [a, d]), z.useEffect(() => {
|
|
4133
|
+
d.setErrorTypes(i || []);
|
|
4134
|
+
}, [i, d]), z.useEffect(() => (n.current && d.mount(n.current), () => {
|
|
4135
|
+
d.unmount();
|
|
4136
|
+
}), [d]), /* @__PURE__ */ l("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
|
|
4133
4137
|
}
|
|
4134
4138
|
function Jl(e) {
|
|
4135
4139
|
const t = W(e.client), n = z.useRef(null), { errorTypes: s, styleNonce: r, shadowDOMTarget: a, hideDisabledQueries: i } = e, [o] = z.useState(
|
|
@@ -4157,7 +4161,7 @@ function Jl(e) {
|
|
|
4157
4161
|
o.setErrorTypes(s || []);
|
|
4158
4162
|
}, [s, o]), z.useEffect(() => (n.current && o.mount(n.current), () => {
|
|
4159
4163
|
o.unmount();
|
|
4160
|
-
}), [o]), /* @__PURE__ */
|
|
4164
|
+
}), [o]), /* @__PURE__ */ l(
|
|
4161
4165
|
"div",
|
|
4162
4166
|
{
|
|
4163
4167
|
style: { height: "500px", ...e.style },
|
|
@@ -4179,14 +4183,14 @@ const Xl = Ee(""), Zl = () => {
|
|
|
4179
4183
|
description: "Enable AI chat panel"
|
|
4180
4184
|
});
|
|
4181
4185
|
}, ec = () => {
|
|
4182
|
-
const e =
|
|
4186
|
+
const e = L(), t = C();
|
|
4183
4187
|
return ae({
|
|
4184
4188
|
queryKey: [E.GET_COLLECTIONS],
|
|
4185
4189
|
staleTime: 1 / 0,
|
|
4186
4190
|
queryFn: async () => t(e, { action: E.GET_COLLECTIONS })
|
|
4187
4191
|
});
|
|
4188
4192
|
}, tc = () => {
|
|
4189
|
-
const { data: e } = ie(), { data: t } = be(), { data: n } = Re(), s =
|
|
4193
|
+
const { data: e } = ie(), { data: t } = be(), { data: n } = Re(), s = L(), r = C(), a = Q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]);
|
|
4190
4194
|
return X({
|
|
4191
4195
|
mutationFn: async ({ block: i }) => r(s, {
|
|
4192
4196
|
action: E.GET_BLOCK_ASYNC_PROPS,
|
|
@@ -4226,7 +4230,7 @@ const Xl = Ee(""), Zl = () => {
|
|
|
4226
4230
|
},
|
|
4227
4231
|
[e]
|
|
4228
4232
|
);
|
|
4229
|
-
}, rc = F(() => import("./digital-asset-manager-
|
|
4233
|
+
}, rc = F(() => import("./digital-asset-manager-BQNSwfKs.js")), ac = F(() => import("./save-to-lib-YyYkF6c6.js")), ic = F(() => import("./theme-panel-footer-2ERfMsET.js")), oc = F(() => import("./web-preview-DTkIggV7.js"));
|
|
4230
4234
|
Zl();
|
|
4231
4235
|
Xa();
|
|
4232
4236
|
Jr(to);
|
|
@@ -4239,42 +4243,42 @@ const lc = {
|
|
|
4239
4243
|
}, os = (e) => {
|
|
4240
4244
|
const { data: t } = lo();
|
|
4241
4245
|
gi();
|
|
4242
|
-
const n = Dn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Ce(), { data: o, isFetching:
|
|
4243
|
-
Ae.current =
|
|
4244
|
-
const [
|
|
4246
|
+
const n = Dn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: c } = ec(), { data: u, isFetching: d } = Re(), f = r || i || c || d, [h] = le(), g = h.get("page"), { data: p } = ie(), { data: S, isFetching: P } = ao(), { blocks: T } = ro(S), { lockingStatus: y, pageLock: A } = Ie(), { data: b, isFetching: M } = io(), k = no(), { onSave: pe } = uo(), { mutateAsync: ye } = tc(), { getPartialBlocks: B, getPartialBlockBlocks: w } = fo(), { mutateAsync: I } = Li(), { mutateAsync: Y } = oo(), $ = sc(), [de, bt] = K(!1), Ae = at([]), Be = Q(() => V(u, "theme", {}) || {}, [u]), Ne = he(y) && (A == null ? void 0 : A.status) === "editing", pr = (A == null ? void 0 : A.status) === "checking", Rn = P || pr || M;
|
|
4247
|
+
Ae.current = T;
|
|
4248
|
+
const [yr] = te(Xl);
|
|
4245
4249
|
se(() => {
|
|
4246
4250
|
const ne = () => {
|
|
4247
4251
|
document.hidden ? bt(!0) : bt(!1);
|
|
4248
4252
|
};
|
|
4249
4253
|
return window.addEventListener("visibilitychange", ne), () => window.removeEventListener("visibilitychange", ne);
|
|
4250
4254
|
}, []);
|
|
4251
|
-
const
|
|
4255
|
+
const Ar = Q(() => {
|
|
4252
4256
|
const ne = {};
|
|
4253
4257
|
return s && (ne.permissions = V(s, "permissions", null), ne.role = V(s, "role", "user")), ne;
|
|
4254
|
-
}, [s]),
|
|
4255
|
-
async (ne, It) => await
|
|
4256
|
-
[
|
|
4258
|
+
}, [s]), Tr = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), Sr = j(
|
|
4259
|
+
async (ne, It) => await I({ pageType: ne, query: It }),
|
|
4260
|
+
[I]
|
|
4257
4261
|
);
|
|
4258
4262
|
return /* @__PURE__ */ m(ge, { children: [
|
|
4259
|
-
Rn && /* @__PURE__ */
|
|
4260
|
-
|
|
4263
|
+
Rn && /* @__PURE__ */ l(Ns, { className: f ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ l(Ft, { className: `animate-spin text-primary ${f ? "h-6 w-6" : "h-5 w-5"}` }) }),
|
|
4264
|
+
yr && /* @__PURE__ */ l(
|
|
4261
4265
|
H,
|
|
4262
4266
|
{
|
|
4263
|
-
fallback: /* @__PURE__ */
|
|
4264
|
-
children: /* @__PURE__ */
|
|
4267
|
+
fallback: /* @__PURE__ */ l("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ l(Ft, { className: "h-6 w-6 animate-spin text-primary" }) }),
|
|
4268
|
+
children: /* @__PURE__ */ l(oc, {})
|
|
4265
4269
|
}
|
|
4266
4270
|
),
|
|
4267
|
-
/* @__PURE__ */
|
|
4271
|
+
/* @__PURE__ */ l(
|
|
4268
4272
|
ea,
|
|
4269
4273
|
{
|
|
4270
|
-
_tempProps: { librarySite:
|
|
4274
|
+
_tempProps: { librarySite: Tr },
|
|
4271
4275
|
gotoPage: $,
|
|
4272
4276
|
collections: o ?? [],
|
|
4273
4277
|
getBlockAsyncProps: ye,
|
|
4274
|
-
pageExternalData:
|
|
4278
|
+
pageExternalData: b,
|
|
4275
4279
|
themePresets: e.themePresets ?? [],
|
|
4276
|
-
pageId:
|
|
4277
|
-
loading:
|
|
4280
|
+
pageId: p == null ? void 0 : p.id,
|
|
4281
|
+
loading: P,
|
|
4278
4282
|
fallbackLang: n,
|
|
4279
4283
|
languages: (u == null ? void 0 : u.languages) || [],
|
|
4280
4284
|
brandingOptions: (u == null ? void 0 : u.theme) || {},
|
|
@@ -4284,29 +4288,29 @@ const lc = {
|
|
|
4284
4288
|
autoSave: !de && Ne && (e.autoSave ?? !0),
|
|
4285
4289
|
autoSaveInterval: e.autoSaveInterval ?? 15,
|
|
4286
4290
|
onError: e.onError || console.error,
|
|
4287
|
-
getPartialBlockBlocks:
|
|
4288
|
-
getPartialBlocks:
|
|
4289
|
-
blocks:
|
|
4290
|
-
theme:
|
|
4291
|
+
getPartialBlockBlocks: w,
|
|
4292
|
+
getPartialBlocks: B,
|
|
4293
|
+
blocks: P ? [] : T,
|
|
4294
|
+
theme: Br(Be),
|
|
4291
4295
|
pageTypes: a,
|
|
4292
|
-
searchPageTypeItems:
|
|
4293
|
-
askAiCallBack:
|
|
4294
|
-
onSave: async ({ blocks: ne, theme: It, needTranslations:
|
|
4296
|
+
searchPageTypeItems: Sr,
|
|
4297
|
+
askAiCallBack: k,
|
|
4298
|
+
onSave: async ({ blocks: ne, theme: It, needTranslations: _r }) => {
|
|
4295
4299
|
if (!g) return !0;
|
|
4296
4300
|
Ae.current = ne;
|
|
4297
4301
|
const Un = [...ne];
|
|
4298
|
-
return await pe({ page: g, blocks: Un, needTranslations:
|
|
4302
|
+
return await pe({ page: g, blocks: Un, needTranslations: _r }), Ae.current = Un, Mr(It, Be) || await Y({ settings: { theme: It } }), !0;
|
|
4299
4303
|
},
|
|
4300
4304
|
themePanelComponent: ic,
|
|
4301
|
-
...
|
|
4305
|
+
...Ar
|
|
4302
4306
|
}
|
|
4303
4307
|
),
|
|
4304
4308
|
/* @__PURE__ */ m("div", { children: [
|
|
4305
|
-
/* @__PURE__ */
|
|
4306
|
-
/* @__PURE__ */
|
|
4309
|
+
/* @__PURE__ */ l(yi, { isFetchingPage: Rn }),
|
|
4310
|
+
/* @__PURE__ */ l(Ai, {})
|
|
4307
4311
|
] })
|
|
4308
4312
|
] });
|
|
4309
|
-
}, cc = new
|
|
4313
|
+
}, cc = new Vr({
|
|
4310
4314
|
defaultOptions: {
|
|
4311
4315
|
queries: {
|
|
4312
4316
|
refetchOnWindowFocus: !1,
|
|
@@ -4336,19 +4340,19 @@ const lc = {
|
|
|
4336
4340
|
}, 200), () => {
|
|
4337
4341
|
s(!1), t({});
|
|
4338
4342
|
}), [e, t]), n ? V(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(ge, { children: [
|
|
4339
|
-
/* @__PURE__ */
|
|
4340
|
-
/* @__PURE__ */
|
|
4341
|
-
] }) : /* @__PURE__ */ m(
|
|
4342
|
-
/* @__PURE__ */
|
|
4343
|
-
/* @__PURE__ */
|
|
4344
|
-
] }) : /* @__PURE__ */
|
|
4343
|
+
/* @__PURE__ */ l(os, { ...e }),
|
|
4344
|
+
/* @__PURE__ */ l(is, {})
|
|
4345
|
+
] }) : /* @__PURE__ */ m(Hr, { client: cc, children: [
|
|
4346
|
+
/* @__PURE__ */ l(os, { ...e }),
|
|
4347
|
+
/* @__PURE__ */ l(is, {})
|
|
4348
|
+
] }) : /* @__PURE__ */ l("div", {});
|
|
4345
4349
|
}, uc = z.lazy(() => import("./nested-path-selector-content-DvIL_EoN.js"));
|
|
4346
4350
|
function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
4347
4351
|
const [r, a] = z.useState(!1);
|
|
4348
4352
|
return /* @__PURE__ */ m(ya, { open: r, onOpenChange: a, children: [
|
|
4349
4353
|
/* @__PURE__ */ m(zt, { children: [
|
|
4350
|
-
/* @__PURE__ */
|
|
4351
|
-
|
|
4354
|
+
/* @__PURE__ */ l(Wt, { asChild: !0, children: /* @__PURE__ */ l(Aa, { asChild: !0, children: /* @__PURE__ */ l(
|
|
4355
|
+
U,
|
|
4352
4356
|
{
|
|
4353
4357
|
size: "sm",
|
|
4354
4358
|
variant: "outline",
|
|
@@ -4356,7 +4360,7 @@ function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4356
4360
|
role: "combobox",
|
|
4357
4361
|
"aria-expanded": r,
|
|
4358
4362
|
disabled: s,
|
|
4359
|
-
children: /* @__PURE__ */
|
|
4363
|
+
children: /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24px", height: "24px", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
4360
4364
|
"path",
|
|
4361
4365
|
{
|
|
4362
4366
|
d: "M9.5 5H9C7.89543 5 7 5.89543 7 7V9C7 10 6.4 12 4 12C5 12 7 12.6 7 15V17.0002C7 18.1048 7.89543 19 9 19H9.5M14.5 5H15C16.1046 5 17 5.89543 17 7V9C17 10 17.6 12 20 12C19 12 17 12.6 17 15V17.0002C17 18.1048 16.1046 19 15 19H14.5",
|
|
@@ -4368,9 +4372,9 @@ function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4368
4372
|
) })
|
|
4369
4373
|
}
|
|
4370
4374
|
) }) }),
|
|
4371
|
-
/* @__PURE__ */
|
|
4375
|
+
/* @__PURE__ */ l(Yt, { children: "Add field" })
|
|
4372
4376
|
] }),
|
|
4373
|
-
r && /* @__PURE__ */
|
|
4377
|
+
r && /* @__PURE__ */ l(z.Suspense, { children: /* @__PURE__ */ l(
|
|
4374
4378
|
uc,
|
|
4375
4379
|
{
|
|
4376
4380
|
data: e,
|
|
@@ -4393,7 +4397,7 @@ const vu = () => {
|
|
|
4393
4397
|
e.clear();
|
|
4394
4398
|
}, [e]);
|
|
4395
4399
|
}, bu = () => {
|
|
4396
|
-
const e =
|
|
4400
|
+
const e = L(), t = C(), { data: n } = be(), s = W();
|
|
4397
4401
|
return X({
|
|
4398
4402
|
mutationFn: async (r) => {
|
|
4399
4403
|
if (!(n != null && n.id))
|
|
@@ -4417,7 +4421,7 @@ const vu = () => {
|
|
|
4417
4421
|
console.error("Failed to update metadata");
|
|
4418
4422
|
}
|
|
4419
4423
|
});
|
|
4420
|
-
}, fc = F(() => import("./digital-asset-manager-
|
|
4424
|
+
}, fc = F(() => import("./digital-asset-manager-BQNSwfKs.js")), Iu = ({
|
|
4421
4425
|
assetId: e,
|
|
4422
4426
|
assetUrl: t,
|
|
4423
4427
|
onChange: n,
|
|
@@ -4425,19 +4429,19 @@ const vu = () => {
|
|
|
4425
4429
|
placeholder: r = "Select an image",
|
|
4426
4430
|
disabled: a = !1
|
|
4427
4431
|
}) => {
|
|
4428
|
-
const { t: i } =
|
|
4429
|
-
a ||
|
|
4430
|
-
},
|
|
4431
|
-
|
|
4432
|
-
},
|
|
4433
|
-
const
|
|
4434
|
-
|
|
4432
|
+
const { t: i } = _e(), [o, c] = K(!1), u = () => {
|
|
4433
|
+
a || c(!0);
|
|
4434
|
+
}, d = () => {
|
|
4435
|
+
c(!1);
|
|
4436
|
+
}, f = (p) => {
|
|
4437
|
+
const S = Array.isArray(p) ? p[0] : p;
|
|
4438
|
+
S != null && S.url && n(vn(S, ["url", "id"])), c(!1);
|
|
4435
4439
|
}, h = () => {
|
|
4436
4440
|
n({ url: "", id: "" });
|
|
4437
4441
|
}, g = (t == null ? void 0 : t.startsWith("{{")) && (t == null ? void 0 : t.endsWith("}}"));
|
|
4438
4442
|
return /* @__PURE__ */ m("div", { className: `w-full ${s}`, children: [
|
|
4439
4443
|
t ? /* @__PURE__ */ m("div", { className: "relative overflow-hidden rounded-md border", children: [
|
|
4440
|
-
g ? /* @__PURE__ */
|
|
4444
|
+
g ? /* @__PURE__ */ l("div", { className: "flex h-12 items-center bg-gray-100 px-4", children: /* @__PURE__ */ l("p", { className: "text-xs text-gray-500", children: t }) }) : /* @__PURE__ */ l(
|
|
4441
4445
|
"img",
|
|
4442
4446
|
{
|
|
4443
4447
|
onClick: u,
|
|
@@ -4447,8 +4451,8 @@ const vu = () => {
|
|
|
4447
4451
|
}
|
|
4448
4452
|
),
|
|
4449
4453
|
/* @__PURE__ */ m("div", { className: "absolute right-2 top-2 flex gap-2", children: [
|
|
4450
|
-
/* @__PURE__ */
|
|
4451
|
-
|
|
4454
|
+
/* @__PURE__ */ l(
|
|
4455
|
+
U,
|
|
4452
4456
|
{
|
|
4453
4457
|
type: "button",
|
|
4454
4458
|
variant: "outline",
|
|
@@ -4456,11 +4460,11 @@ const vu = () => {
|
|
|
4456
4460
|
className: "h-8 w-8 rounded-full bg-white text-red-500",
|
|
4457
4461
|
onClick: h,
|
|
4458
4462
|
disabled: a,
|
|
4459
|
-
children: g ? /* @__PURE__ */
|
|
4463
|
+
children: g ? /* @__PURE__ */ l(zn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Ha, { className: "h-4 w-4" })
|
|
4460
4464
|
}
|
|
4461
4465
|
),
|
|
4462
|
-
!g && /* @__PURE__ */
|
|
4463
|
-
|
|
4466
|
+
!g && /* @__PURE__ */ l(
|
|
4467
|
+
U,
|
|
4464
4468
|
{
|
|
4465
4469
|
type: "button",
|
|
4466
4470
|
variant: "outline",
|
|
@@ -4468,52 +4472,52 @@ const vu = () => {
|
|
|
4468
4472
|
className: "h-8 w-8 rounded-full bg-white/80 hover:bg-white/90",
|
|
4469
4473
|
onClick: u,
|
|
4470
4474
|
disabled: a,
|
|
4471
|
-
children: /* @__PURE__ */
|
|
4475
|
+
children: /* @__PURE__ */ l(Wn, { className: "h-4 w-4" })
|
|
4472
4476
|
}
|
|
4473
4477
|
)
|
|
4474
4478
|
] })
|
|
4475
|
-
] }) : /* @__PURE__ */
|
|
4479
|
+
] }) : /* @__PURE__ */ l(
|
|
4476
4480
|
"div",
|
|
4477
4481
|
{
|
|
4478
4482
|
className: `flex cursor-pointer items-center justify-center rounded-md border border-dashed p-6 ${a ? "cursor-not-allowed opacity-50" : "hover:border-gray-400"}`,
|
|
4479
4483
|
onClick: u,
|
|
4480
4484
|
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-2", children: [
|
|
4481
|
-
/* @__PURE__ */
|
|
4482
|
-
/* @__PURE__ */
|
|
4485
|
+
/* @__PURE__ */ l(Wn, { className: "h-10 w-10 text-gray-400" }),
|
|
4486
|
+
/* @__PURE__ */ l("p", { className: "text-sm text-gray-500", children: r })
|
|
4483
4487
|
] })
|
|
4484
4488
|
}
|
|
4485
4489
|
),
|
|
4486
|
-
/* @__PURE__ */
|
|
4490
|
+
/* @__PURE__ */ l(As, { open: o, onOpenChange: c, children: /* @__PURE__ */ m(Ta, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
|
|
4487
4491
|
/* @__PURE__ */ m(Sa, { className: "hidden border-b px-4 py-2", children: [
|
|
4488
|
-
/* @__PURE__ */
|
|
4489
|
-
/* @__PURE__ */
|
|
4490
|
-
|
|
4492
|
+
/* @__PURE__ */ l(_a, { children: i("Select Image") }),
|
|
4493
|
+
/* @__PURE__ */ l(
|
|
4494
|
+
U,
|
|
4491
4495
|
{
|
|
4492
4496
|
type: "button",
|
|
4493
4497
|
variant: "ghost",
|
|
4494
4498
|
size: "icon",
|
|
4495
4499
|
className: "absolute right-4 top-2",
|
|
4496
|
-
onClick:
|
|
4497
|
-
children: /* @__PURE__ */
|
|
4500
|
+
onClick: d,
|
|
4501
|
+
children: /* @__PURE__ */ l(zn, { className: "h-4 w-4" })
|
|
4498
4502
|
}
|
|
4499
4503
|
)
|
|
4500
4504
|
] }),
|
|
4501
|
-
/* @__PURE__ */
|
|
4505
|
+
/* @__PURE__ */ l("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
|
|
4502
4506
|
fc,
|
|
4503
4507
|
{
|
|
4504
|
-
close:
|
|
4505
|
-
onSelect:
|
|
4508
|
+
close: d,
|
|
4509
|
+
onSelect: f,
|
|
4506
4510
|
mode: "image",
|
|
4507
4511
|
assetId: e
|
|
4508
4512
|
}
|
|
4509
4513
|
) }) })
|
|
4510
4514
|
] }) })
|
|
4511
4515
|
] });
|
|
4512
|
-
}, hc =
|
|
4516
|
+
}, hc = qr(null), fn = {
|
|
4513
4517
|
didCatch: !1,
|
|
4514
4518
|
error: null
|
|
4515
4519
|
};
|
|
4516
|
-
class gc extends
|
|
4520
|
+
class gc extends Kr {
|
|
4517
4521
|
constructor(t) {
|
|
4518
4522
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = fn;
|
|
4519
4523
|
}
|
|
@@ -4567,14 +4571,14 @@ class gc extends Vr {
|
|
|
4567
4571
|
} = this.state;
|
|
4568
4572
|
let o = t;
|
|
4569
4573
|
if (a) {
|
|
4570
|
-
const
|
|
4574
|
+
const c = {
|
|
4571
4575
|
error: i,
|
|
4572
4576
|
resetErrorBoundary: this.resetErrorBoundary
|
|
4573
4577
|
};
|
|
4574
4578
|
if (typeof n == "function")
|
|
4575
|
-
o = n(
|
|
4579
|
+
o = n(c);
|
|
4576
4580
|
else if (s)
|
|
4577
|
-
o = qn(s,
|
|
4581
|
+
o = qn(s, c);
|
|
4578
4582
|
else if (r !== void 0)
|
|
4579
4583
|
o = r;
|
|
4580
4584
|
else
|
|
@@ -4609,12 +4613,12 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4609
4613
|
try {
|
|
4610
4614
|
return { isValid: !0, parsed: JSON.parse(s), error: null, placeholders: n };
|
|
4611
4615
|
} catch (a) {
|
|
4612
|
-
const i = a, o = i.message.match(/position (\d+)/),
|
|
4613
|
-
let u,
|
|
4614
|
-
if (
|
|
4615
|
-
const
|
|
4616
|
+
const i = a, o = i.message.match(/position (\d+)/), c = o ? parseInt(o[1]) : void 0;
|
|
4617
|
+
let u, d;
|
|
4618
|
+
if (c !== void 0) {
|
|
4619
|
+
const f = s.substring(0, c).split(`
|
|
4616
4620
|
`);
|
|
4617
|
-
u =
|
|
4621
|
+
u = f.length, d = f[f.length - 1].length + 1;
|
|
4618
4622
|
}
|
|
4619
4623
|
return {
|
|
4620
4624
|
isValid: !1,
|
|
@@ -4623,8 +4627,8 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4623
4627
|
error: {
|
|
4624
4628
|
message: i.message,
|
|
4625
4629
|
line: u,
|
|
4626
|
-
column:
|
|
4627
|
-
position:
|
|
4630
|
+
column: d,
|
|
4631
|
+
position: c
|
|
4628
4632
|
}
|
|
4629
4633
|
};
|
|
4630
4634
|
}
|
|
@@ -4644,7 +4648,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4644
4648
|
n = n.replace(r[0], i);
|
|
4645
4649
|
}
|
|
4646
4650
|
return n;
|
|
4647
|
-
}, Ac = F(() => import("./shared-json-ld-
|
|
4651
|
+
}, Ac = F(() => import("./shared-json-ld-E4Ckwlbr.js")), Cu = ({
|
|
4648
4652
|
value: e,
|
|
4649
4653
|
onChange: t,
|
|
4650
4654
|
disabled: n = !1,
|
|
@@ -4653,110 +4657,110 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4653
4657
|
rows: a = 6,
|
|
4654
4658
|
id: i = "json-input",
|
|
4655
4659
|
pageData: o = {},
|
|
4656
|
-
handleFieldInsert:
|
|
4660
|
+
handleFieldInsert: c,
|
|
4657
4661
|
hasJsonLdForSelectedLang: u,
|
|
4658
|
-
copyJsonLDFromDefaultPage:
|
|
4662
|
+
copyJsonLDFromDefaultPage: d
|
|
4659
4663
|
}) => {
|
|
4660
|
-
const [
|
|
4664
|
+
const [f, h] = K("edit"), [g, p] = K(null), [S, P] = K(""), T = at(null), [y] = Cn(), A = i === "jsonLD" && V(y, "features.sharedJsonLD", !1), b = i === "jsonLD" && !u && !!d;
|
|
4661
4665
|
se(() => {
|
|
4662
4666
|
e.trim() === "" && t("{}");
|
|
4663
4667
|
}, [e, t]);
|
|
4664
|
-
const M = (
|
|
4668
|
+
const M = (B) => {
|
|
4665
4669
|
if (s) return;
|
|
4666
|
-
const
|
|
4667
|
-
t(
|
|
4668
|
-
},
|
|
4669
|
-
if (
|
|
4670
|
-
|
|
4671
|
-
const
|
|
4672
|
-
if (
|
|
4673
|
-
const de = e.substring(
|
|
4670
|
+
const w = B.target.value;
|
|
4671
|
+
t(w);
|
|
4672
|
+
}, k = (B) => {
|
|
4673
|
+
if (B.key === "Tab") {
|
|
4674
|
+
B.preventDefault();
|
|
4675
|
+
const w = B.currentTarget, I = w.selectionStart, Y = w.selectionEnd;
|
|
4676
|
+
if (I !== Y) {
|
|
4677
|
+
const de = e.substring(I, Y).split(`
|
|
4674
4678
|
`);
|
|
4675
|
-
if (
|
|
4679
|
+
if (B.shiftKey) {
|
|
4676
4680
|
const Ae = de.map((Ne) => Ne.startsWith(" ") ? Ne.substring(2) : Ne).join(`
|
|
4677
|
-
`), Be = e.substring(0,
|
|
4681
|
+
`), Be = e.substring(0, I) + Ae + e.substring(Y);
|
|
4678
4682
|
t(Be), setTimeout(() => {
|
|
4679
|
-
|
|
4683
|
+
w.selectionStart = I, w.selectionEnd = I + Ae.length;
|
|
4680
4684
|
}, 0);
|
|
4681
4685
|
} else {
|
|
4682
4686
|
const Ae = de.map((Ne) => ` ${Ne}`).join(`
|
|
4683
|
-
`), Be = e.substring(0,
|
|
4687
|
+
`), Be = e.substring(0, I) + Ae + e.substring(Y);
|
|
4684
4688
|
t(Be), setTimeout(() => {
|
|
4685
|
-
|
|
4689
|
+
w.selectionStart = I, w.selectionEnd = I + Ae.length;
|
|
4686
4690
|
}, 0);
|
|
4687
4691
|
}
|
|
4688
4692
|
} else {
|
|
4689
|
-
const $ = e.substring(0,
|
|
4693
|
+
const $ = e.substring(0, I) + " " + e.substring(Y);
|
|
4690
4694
|
t($), setTimeout(() => {
|
|
4691
|
-
|
|
4695
|
+
w.selectionStart = w.selectionEnd = I + 2;
|
|
4692
4696
|
}, 0);
|
|
4693
4697
|
}
|
|
4694
4698
|
}
|
|
4695
4699
|
};
|
|
4696
4700
|
se(() => {
|
|
4697
|
-
const
|
|
4698
|
-
if (
|
|
4699
|
-
if (
|
|
4700
|
-
const
|
|
4701
|
-
|
|
4701
|
+
const B = ls(e);
|
|
4702
|
+
if (B.isValid)
|
|
4703
|
+
if (p(null), B.parsed) {
|
|
4704
|
+
const w = yc(B.parsed, o);
|
|
4705
|
+
P(w);
|
|
4702
4706
|
} else
|
|
4703
|
-
|
|
4707
|
+
P("");
|
|
4704
4708
|
else
|
|
4705
|
-
|
|
4709
|
+
p(B.error), P("");
|
|
4706
4710
|
}, [e, o]);
|
|
4707
4711
|
const pe = () => {
|
|
4708
|
-
const
|
|
4709
|
-
if (
|
|
4710
|
-
const
|
|
4711
|
-
t(
|
|
4712
|
+
const B = ls(e);
|
|
4713
|
+
if (B.isValid && B.parsed) {
|
|
4714
|
+
const w = pc(B.parsed, B.placeholders);
|
|
4715
|
+
t(w);
|
|
4712
4716
|
}
|
|
4713
4717
|
}, ye = () => {
|
|
4714
|
-
g != null && g.position &&
|
|
4718
|
+
g != null && g.position && T.current && (T.current.focus(), T.current.setSelectionRange(g.position, g.position + 1));
|
|
4715
4719
|
};
|
|
4716
|
-
return /* @__PURE__ */
|
|
4720
|
+
return /* @__PURE__ */ l(gc, { fallback: /* @__PURE__ */ l("div", { children: "Some error" }), children: /* @__PURE__ */ l("div", { className: "space-y-2", children: /* @__PURE__ */ m(Pa, { value: f, onValueChange: h, className: "w-full", children: [
|
|
4717
4721
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
4718
4722
|
/* @__PURE__ */ m(va, { className: "w-max", children: [
|
|
4719
4723
|
/* @__PURE__ */ m(nn, { value: "edit", className: "flex items-center gap-1", children: [
|
|
4720
|
-
/* @__PURE__ */
|
|
4721
|
-
/* @__PURE__ */
|
|
4724
|
+
/* @__PURE__ */ l(Qa, { className: "h-4 w-4" }),
|
|
4725
|
+
/* @__PURE__ */ l("span", { children: "Edit" })
|
|
4722
4726
|
] }),
|
|
4723
4727
|
/* @__PURE__ */ m(
|
|
4724
4728
|
nn,
|
|
4725
4729
|
{
|
|
4726
4730
|
value: "preview",
|
|
4727
4731
|
className: "flex items-center gap-1",
|
|
4728
|
-
disabled: !e.trim() || g !== null ||
|
|
4732
|
+
disabled: !e.trim() || g !== null || b,
|
|
4729
4733
|
children: [
|
|
4730
|
-
/* @__PURE__ */
|
|
4731
|
-
/* @__PURE__ */
|
|
4734
|
+
/* @__PURE__ */ l($a, { className: "h-4 w-4" }),
|
|
4735
|
+
/* @__PURE__ */ l("span", { children: "Preview" })
|
|
4732
4736
|
]
|
|
4733
4737
|
}
|
|
4734
4738
|
),
|
|
4735
|
-
|
|
4739
|
+
A && /* @__PURE__ */ m(
|
|
4736
4740
|
nn,
|
|
4737
4741
|
{
|
|
4738
4742
|
value: "shared",
|
|
4739
4743
|
className: "flex items-center gap-1",
|
|
4740
4744
|
disabled: !e.trim() || g !== null,
|
|
4741
4745
|
children: [
|
|
4742
|
-
/* @__PURE__ */
|
|
4743
|
-
/* @__PURE__ */
|
|
4746
|
+
/* @__PURE__ */ l(ja, { className: "h-4 w-4" }),
|
|
4747
|
+
/* @__PURE__ */ l("span", { children: "Shared" })
|
|
4744
4748
|
]
|
|
4745
4749
|
}
|
|
4746
4750
|
)
|
|
4747
4751
|
] }),
|
|
4748
|
-
|
|
4752
|
+
b ? null : f === "edit" && !s && /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ l(
|
|
4749
4753
|
dc,
|
|
4750
4754
|
{
|
|
4751
4755
|
dataType: "value",
|
|
4752
4756
|
data: o ?? {},
|
|
4753
|
-
onSelect: (
|
|
4757
|
+
onSelect: (B) => c && c(B, i)
|
|
4754
4758
|
}
|
|
4755
4759
|
) })
|
|
4756
4760
|
] }),
|
|
4757
4761
|
/* @__PURE__ */ m(sn, { value: "edit", className: "relative mt-0", children: [
|
|
4758
|
-
!
|
|
4759
|
-
|
|
4762
|
+
!b && f === "edit" && /* @__PURE__ */ l(Gn, { content: "Format JSON", side: "right", showTooltip: !n && !g, children: /* @__PURE__ */ l(
|
|
4763
|
+
U,
|
|
4760
4764
|
{
|
|
4761
4765
|
type: "button",
|
|
4762
4766
|
variant: "outline",
|
|
@@ -4764,24 +4768,24 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4764
4768
|
onClick: pe,
|
|
4765
4769
|
className: "absolute right-1 top-1 h-6 w-6 p-1",
|
|
4766
4770
|
disabled: !e.trim() || n || g !== null,
|
|
4767
|
-
children: /* @__PURE__ */
|
|
4771
|
+
children: /* @__PURE__ */ l(za, {})
|
|
4768
4772
|
}
|
|
4769
4773
|
) }),
|
|
4770
|
-
|
|
4771
|
-
/* @__PURE__ */
|
|
4772
|
-
/* @__PURE__ */ m(
|
|
4773
|
-
/* @__PURE__ */
|
|
4774
|
+
b ? /* @__PURE__ */ l("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
|
|
4775
|
+
/* @__PURE__ */ l("div", { className: "max-w-xl text-center text-xs text-gray-500", children: "JSON-LD for is not added for selected language. JSON LD will be used from default language." }),
|
|
4776
|
+
/* @__PURE__ */ m(U, { type: "button", variant: "default", size: "sm", onClick: d, children: [
|
|
4777
|
+
/* @__PURE__ */ l(Ts, {}),
|
|
4774
4778
|
"Copy & Edit from default language"
|
|
4775
4779
|
] })
|
|
4776
|
-
] }) }) : /* @__PURE__ */
|
|
4780
|
+
] }) }) : /* @__PURE__ */ l(
|
|
4777
4781
|
Kn,
|
|
4778
4782
|
{
|
|
4779
|
-
ref:
|
|
4783
|
+
ref: T,
|
|
4780
4784
|
id: i,
|
|
4781
4785
|
name: i,
|
|
4782
4786
|
className: `rounded-md border border-input text-xs ${g ? "border-red-500" : ""}`,
|
|
4783
4787
|
onChange: M,
|
|
4784
|
-
onKeyDown:
|
|
4788
|
+
onKeyDown: k,
|
|
4785
4789
|
value: e,
|
|
4786
4790
|
placeholder: r,
|
|
4787
4791
|
rows: a,
|
|
@@ -4790,18 +4794,18 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4790
4794
|
}
|
|
4791
4795
|
),
|
|
4792
4796
|
g && /* @__PURE__ */ m(wa, { variant: "destructive", className: "mt-2", children: [
|
|
4793
|
-
/* @__PURE__ */
|
|
4797
|
+
/* @__PURE__ */ l(Wa, { className: "h-4 w-4" }),
|
|
4794
4798
|
/* @__PURE__ */ m(ba, { className: "flex flex-col", children: [
|
|
4795
|
-
/* @__PURE__ */
|
|
4796
|
-
/* @__PURE__ */
|
|
4799
|
+
/* @__PURE__ */ l("span", { className: "font-medium", children: "Invalid JSON" }),
|
|
4800
|
+
/* @__PURE__ */ l("span", { className: "text-sm", children: g.message }),
|
|
4797
4801
|
g.line && g.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
|
|
4798
4802
|
"Error at line ",
|
|
4799
4803
|
g.line,
|
|
4800
4804
|
", column ",
|
|
4801
4805
|
g.column
|
|
4802
4806
|
] }),
|
|
4803
|
-
/* @__PURE__ */
|
|
4804
|
-
|
|
4807
|
+
/* @__PURE__ */ l(
|
|
4808
|
+
U,
|
|
4805
4809
|
{
|
|
4806
4810
|
type: "button",
|
|
4807
4811
|
variant: "link",
|
|
@@ -4815,104 +4819,104 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
|
|
|
4815
4819
|
] })
|
|
4816
4820
|
] }),
|
|
4817
4821
|
/* @__PURE__ */ m(sn, { value: "preview", className: "mt-0", children: [
|
|
4818
|
-
/* @__PURE__ */
|
|
4819
|
-
/* @__PURE__ */
|
|
4822
|
+
/* @__PURE__ */ l(Kn, { rows: a, value: S, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
|
|
4823
|
+
/* @__PURE__ */ l("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
|
|
4820
4824
|
] }),
|
|
4821
|
-
|
|
4825
|
+
A && /* @__PURE__ */ l(sn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ac, {}) }) })
|
|
4822
4826
|
] }) }) });
|
|
4823
4827
|
};
|
|
4824
4828
|
if (typeof window > "u")
|
|
4825
4829
|
throw new Error("@chaibuilder/pages is not available on the server");
|
|
4826
4830
|
export {
|
|
4827
|
-
|
|
4831
|
+
yu as $,
|
|
4828
4832
|
E as A,
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4833
|
+
Ns as B,
|
|
4834
|
+
Fs as C,
|
|
4835
|
+
zs as D,
|
|
4836
|
+
Ko as E,
|
|
4837
|
+
Zc as F,
|
|
4838
|
+
eu as G,
|
|
4839
|
+
De as H,
|
|
4840
|
+
pn as I,
|
|
4841
|
+
tu as J,
|
|
4842
|
+
Yc as K,
|
|
4839
4843
|
Lt as L,
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4844
|
+
ou as M,
|
|
4845
|
+
lt as N,
|
|
4846
|
+
du as O,
|
|
4843
4847
|
uu as P,
|
|
4844
|
-
|
|
4845
|
-
|
|
4848
|
+
lu as Q,
|
|
4849
|
+
ko as R,
|
|
4846
4850
|
ru as S,
|
|
4847
4851
|
Gn as T,
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4852
|
+
ll as U,
|
|
4853
|
+
yn as V,
|
|
4854
|
+
sl as W,
|
|
4855
|
+
mu as X,
|
|
4856
|
+
Eu as Y,
|
|
4857
|
+
ol as Z,
|
|
4858
|
+
pu as _,
|
|
4855
4859
|
oo as a,
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4860
|
+
nu as a0,
|
|
4861
|
+
Wc as a1,
|
|
4862
|
+
cu as a2,
|
|
4863
|
+
Z as a3,
|
|
4864
|
+
Co as a4,
|
|
4865
|
+
Hl as a5,
|
|
4866
|
+
su as a6,
|
|
4867
|
+
Gt as a7,
|
|
4868
|
+
Su as a8,
|
|
4869
|
+
gu as a9,
|
|
4870
|
+
Hc as aA,
|
|
4871
|
+
jc as aB,
|
|
4872
|
+
zc as aC,
|
|
4873
|
+
Qc as aD,
|
|
4874
|
+
Vi as aE,
|
|
4875
|
+
xc as aF,
|
|
4876
|
+
ws as aG,
|
|
4877
|
+
io as aH,
|
|
4878
|
+
Ni as aI,
|
|
4879
|
+
Cn as aJ,
|
|
4880
|
+
dc as aK,
|
|
4881
|
+
Iu as aL,
|
|
4882
|
+
Oc as aM,
|
|
4883
|
+
gc as aN,
|
|
4884
|
+
Pu as aO,
|
|
4885
|
+
be as aP,
|
|
4886
|
+
wu as aQ,
|
|
4887
|
+
sc as aR,
|
|
4888
|
+
vu as aS,
|
|
4889
|
+
bu as aT,
|
|
4890
|
+
Jt as aU,
|
|
4891
|
+
co as aV,
|
|
4888
4892
|
ti as aW,
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4893
|
+
hu as aa,
|
|
4894
|
+
Us as ab,
|
|
4895
|
+
Oe as ac,
|
|
4896
|
+
rl as ad,
|
|
4897
|
+
fu as ae,
|
|
4898
|
+
iu as af,
|
|
4899
|
+
au as ag,
|
|
4900
|
+
xt as ah,
|
|
4901
|
+
Xc as ai,
|
|
4902
|
+
Pi as aj,
|
|
4903
|
+
ui as ak,
|
|
4904
|
+
mi as al,
|
|
4905
|
+
L as am,
|
|
4906
|
+
C as an,
|
|
4907
|
+
nc as ao,
|
|
4908
|
+
Kc as ap,
|
|
4909
|
+
On as aq,
|
|
4910
|
+
ie as ar,
|
|
4911
|
+
an as as,
|
|
4912
|
+
ce as at,
|
|
4913
|
+
Ln as au,
|
|
4914
|
+
Gc as av,
|
|
4915
|
+
Vc as aw,
|
|
4916
|
+
$c as ax,
|
|
4917
|
+
Cu as ay,
|
|
4918
|
+
ls as az,
|
|
4919
|
+
bs as b,
|
|
4916
4920
|
Rc as c,
|
|
4917
4921
|
Uc as d,
|
|
4918
4922
|
Re as e,
|
|
@@ -4920,21 +4924,21 @@ export {
|
|
|
4920
4924
|
xe as g,
|
|
4921
4925
|
Ce as h,
|
|
4922
4926
|
le as i,
|
|
4923
|
-
|
|
4927
|
+
Ps as j,
|
|
4924
4928
|
ai as k,
|
|
4925
4929
|
Mc as l,
|
|
4926
4930
|
Bc as m,
|
|
4927
4931
|
Fc as n,
|
|
4928
4932
|
qc as o,
|
|
4929
4933
|
Xl as p,
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4934
|
+
Dc as q,
|
|
4935
|
+
_u as r,
|
|
4936
|
+
J as s,
|
|
4933
4937
|
on as t,
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4938
|
+
Cs as u,
|
|
4939
|
+
js as v,
|
|
4940
|
+
Au as w,
|
|
4941
|
+
Tu as x,
|
|
4942
|
+
q as y,
|
|
4943
|
+
el as z
|
|
4940
4944
|
};
|