@chaibuilder/pages 0.16.23 → 0.16.24
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-BuWtti7-.js → 2AITGKQY-Ir_ZXu1s.js} +2 -2
- package/dist/{2AITGKQY-BH_4lP5P.cjs → 2AITGKQY-UndKMj-X.cjs} +1 -1
- package/dist/{NCMVHL6D-DbC9VYfW.js → NCMVHL6D-B3xcD0Vz.js} +2 -2
- package/dist/{NCMVHL6D-CfRPe-3L.cjs → NCMVHL6D-taGMv4he.cjs} +1 -1
- package/dist/{ZDWCUMSJ-CE0Md3aC.js → ZDWCUMSJ-B1vApR00.js} +1 -1
- package/dist/{ZDWCUMSJ-BxhCnC2U.cjs → ZDWCUMSJ-Cot4ixKZ.cjs} +1 -1
- package/dist/{active-in-another-tab-SSCyhy2-.cjs → active-in-another-tab-DYU7aCUa.cjs} +1 -1
- package/dist/{active-in-another-tab-C4o8FQXv.js → active-in-another-tab-Kp8LaYW5.js} +1 -1
- package/dist/{add-new-language-page-BCu4Npk2.js → add-new-language-page-0J2KTKg6.js} +2 -2
- package/dist/{add-new-language-page-DUkVmwsT.cjs → add-new-language-page-CkyPkpzC.cjs} +1 -1
- package/dist/{add-new-page-D1pc9kLA.js → add-new-page-BjxHUGIo.js} +1 -1
- package/dist/{add-new-page-BDpRUueB.cjs → add-new-page-DPtVHa8m.cjs} +1 -1
- package/dist/{ai-panel-content-Dg6P7vk7.js → ai-panel-content-CMfopU0G.js} +2 -2
- package/dist/{ai-panel-content-Bq3BC1Dm.cjs → ai-panel-content-nmbQV7rT.cjs} +1 -1
- package/dist/{ai-panel-default-lang-BxYd_6VF.js → ai-panel-default-lang-7L9rURdC.js} +3 -3
- package/dist/{ai-panel-default-lang-C0X_Srso.cjs → ai-panel-default-lang-B5eNybL4.cjs} +2 -2
- package/dist/{ai-panel-other-lang-BOu1wJ5J.cjs → ai-panel-other-lang-DLn89TFE.cjs} +1 -1
- package/dist/{ai-panel-other-lang-CBAP_iX-.js → ai-panel-other-lang-U5XRqxbF.js} +3 -3
- package/dist/{ai-prompt-input-bqLGbsQ2.cjs → ai-prompt-input-6LzuYu5L.cjs} +1 -1
- package/dist/{ai-prompt-input-CiZCB6jc.js → ai-prompt-input-B24vn-LG.js} +2 -2
- package/dist/{ai-translation-prompt-Cas13J-r.cjs → ai-translation-prompt-CB67Sqo9.cjs} +1 -1
- package/dist/{ai-translation-prompt-D3XU5z3f.js → ai-translation-prompt-cym054ja.js} +1 -1
- package/dist/{continue-editing-in-this-client-DIpi2ZSi.js → continue-editing-in-this-client-BDYiQrbE.js} +1 -1
- package/dist/{continue-editing-in-this-client-DbHzW_zt.cjs → continue-editing-in-this-client-BYJaymOL.cjs} +1 -1
- package/dist/{delete-page-DPHNAOC6.cjs → delete-page-BXEQB0Si.cjs} +1 -1
- package/dist/{delete-page-CODOstkw.js → delete-page-CvSN4E4V.js} +1 -1
- package/dist/{digital-asset-manager-BuYVjKfQ.js → digital-asset-manager-BxbX7ji1.js} +1 -1
- package/dist/{digital-asset-manager-BllbsemN.cjs → digital-asset-manager-CF1Lyc5K.cjs} +1 -1
- package/dist/{duplicate-page-DfH67AsW.js → duplicate-page-BFnuk1nL.js} +2 -2
- package/dist/{duplicate-page-Dc6_UBNZ.cjs → duplicate-page-C32_9H41.cjs} +1 -1
- package/dist/{dynamic-page-selector-Dd8Orls1.cjs → dynamic-page-selector-CLxpglyO.cjs} +1 -1
- package/dist/{dynamic-page-selector-C2UK6qGj.js → dynamic-page-selector-CSTuQhej.js} +1 -1
- package/dist/index-Bre43r-W.cjs +5 -0
- package/dist/{index-B_T6ZeA4.js → index-tgsBai_8.js} +783 -779
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/{json-diff-viewer-D8uyTokS.js → json-diff-viewer-2gVCV5T-.js} +1 -1
- package/dist/{json-diff-viewer-1IHmR_Nt.cjs → json-diff-viewer-34Sqd4il.cjs} +1 -1
- package/dist/{lang-panel-D-Pbw2bR.cjs → lang-panel-CXIcTGVk.cjs} +1 -1
- package/dist/{lang-panel-d7376A7w.js → lang-panel-Cj0axCpE.js} +2 -2
- package/dist/{mark-as-template-Bx-MAB5M.js → mark-as-template-1TuznHtx.js} +1 -1
- package/dist/{mark-as-template-DHFkkBvV.cjs → mark-as-template-DKBwTiMJ.cjs} +1 -1
- package/dist/{no-language-page-content-DkK7mBnG.cjs → no-language-page-content-B8udZsi2.cjs} +1 -1
- package/dist/{no-language-page-content-if-qlxZz.js → no-language-page-content-C265--no.js} +1 -1
- package/dist/{no-language-page-dialog-49fBehZo.cjs → no-language-page-dialog-CctilPnb.cjs} +1 -1
- package/dist/{no-language-page-dialog-CCLWQP1E.js → no-language-page-dialog-DgaP74-Y.js} +2 -2
- package/dist/{page-creator-DRDoy3nM.js → page-creator-Cer7L7dg.js} +2 -2
- package/dist/{page-creator-DlJXKAhw.cjs → page-creator-NkF29o0S.cjs} +1 -1
- package/dist/{page-lock-DOnPhjGp.cjs → page-lock-0qEG4sLX.cjs} +1 -1
- package/dist/{page-lock-pwxPivz-.js → page-lock-DNrP3AhL.js} +2 -2
- package/dist/{page-locked-dialog-DKn93bBu.cjs → page-locked-dialog-B9p5gIGE.cjs} +1 -1
- package/dist/{page-locked-dialog-238NohyB.js → page-locked-dialog-U5eDKeBc.js} +1 -1
- package/dist/{page-manager-new-Ch0UNJM1.cjs → page-manager-new-BL5S9ccS.cjs} +1 -1
- package/dist/{page-manager-new-hEQwUorR.js → page-manager-new-DGaBkeJp.js} +2 -2
- package/dist/{page-manager-search-and-filter-B86rQEO4.js → page-manager-search-and-filter-DDdYtDF7.js} +1 -1
- package/dist/{page-manager-search-and-filter-4JatGyBT.cjs → page-manager-search-and-filter-DKrQdcb0.cjs} +1 -1
- package/dist/{page-revisions-content-V9S1rPUy.js → page-revisions-content-CoVYI0hI.js} +2 -2
- package/dist/{page-revisions-content-ChOACVs4.cjs → page-revisions-content-NE8Y5DrC.cjs} +1 -1
- package/dist/{publish-pages-content-CXKknMnI.cjs → publish-pages-content-CCUKnVTH.cjs} +1 -1
- package/dist/{publish-pages-content-GKnG7R5W.js → publish-pages-content-KgbEbRVV.js} +2 -2
- package/dist/{save-to-lib-BderZ0Qz.cjs → save-to-lib-C06RQn4k.cjs} +1 -1
- package/dist/{save-to-lib-BO3WEr-u.js → save-to-lib-CQmcDI5w.js} +1 -1
- package/dist/{selected-block-display-DAe0XQgw.js → selected-block-display-7n8S3vf1.js} +1 -1
- package/dist/{selected-block-display-yB5bvo9w.cjs → selected-block-display-DDC1_UC8.cjs} +1 -1
- package/dist/{seo-panel-DuC3gQQy.js → seo-panel-C-dqg-1A.js} +1 -1
- package/dist/{seo-panel-C2WY1dTf.cjs → seo-panel-hwJUoGfJ.cjs} +1 -1
- package/dist/server.d.ts +8 -0
- package/dist/{shared-json-ld-ChfktUpf.cjs → shared-json-ld-BP2l89h2.cjs} +1 -1
- package/dist/{shared-json-ld-DMpCm3M4.js → shared-json-ld-BUPafGh_.js} +1 -1
- package/dist/{slug-input-CrjrFrxP.cjs → slug-input-91_G-ww1.cjs} +1 -1
- package/dist/{slug-input-CO6AGAQD.js → slug-input-hcJHNszn.js} +1 -1
- package/dist/{take-over-request-Du7grW5x.js → take-over-request-Dw2P9U_Q.js} +1 -1
- package/dist/{take-over-request-mNydSSFX.cjs → take-over-request-kRGwkXvv.cjs} +1 -1
- package/dist/{theme-panel-footer-CSC6DpWO.js → theme-panel-footer-2qsvp4AM.js} +1 -1
- package/dist/{theme-panel-footer-eZ1bbLzq.cjs → theme-panel-footer-DmO4-lci.cjs} +1 -1
- package/dist/{unmark-as-template-DzU6-XK7.cjs → unmark-as-template-BBzZqNJt.cjs} +1 -1
- package/dist/{unmark-as-template-dEb6wFT9.js → unmark-as-template-DbXx3l6p.js} +1 -1
- package/dist/{unpublish-page-CxAB3-Cj.js → unpublish-page-BKQqPk_e.js} +1 -1
- package/dist/{unpublish-page-DGd2Kktq.cjs → unpublish-page-CHYNjTFU.cjs} +1 -1
- package/dist/{web-preview-yBF4EXzm.js → web-preview-BKoPv6AO.js} +1 -1
- package/dist/{web-preview-B6G0vdiq.cjs → web-preview-D4KdtUYp.cjs} +1 -1
- package/package.json +3 -3
- package/dist/index--Lu_Q_nO.cjs +0 -5
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
1
|
+
var qn = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var A = (e, t, n) => (
|
|
4
|
+
var $n = (e, t, n) => t.has(e) || qn("Cannot " + n);
|
|
5
|
+
var A = (e, t, n) => ($n(e, t, "read from private field"), n ? n.call(e) : t.get(e)), O = (e, t, n) => t.has(e) ? qn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, s) => ($n(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
|
|
6
6
|
import { jsxs as m, Fragment as ge, jsx as c } from "react/jsx-runtime";
|
|
7
|
-
import { get as H, reverse as
|
|
7
|
+
import { get as H, reverse as Rr, sortBy as kr, find as ae, noop as ys, groupBy as Ur, values as As, first as Ts, minBy as Ss, keyBy as Mr, map as Kt, isEmpty as Te, compact as _s, each as Br, upperCase as Qn, filter as Ps, includes as Fr, has as Yt, pick as Ln, keys as Kr, pickBy as Vr, endsWith as Hr, isArray as qr, startCase as $r, isFunction as Qr, cloneDeep as zr, isEqual as zn } from "lodash-es";
|
|
8
8
|
import * as Q from "react";
|
|
9
|
-
import
|
|
9
|
+
import jr, { useMemo as q, useCallback as z, useState as K, useEffect as ne, useRef as Ie, lazy as V, Suspense as X, createContext as Wr, Component as Yr, createElement as jn } from "react";
|
|
10
10
|
import { atom as Ee, useAtom as ie } from "jotai";
|
|
11
|
-
import { useQuery as oe, useMutation as Y, useQueryClient as J, onlineManager as
|
|
12
|
-
import { useLanguages as _e, useSavePage as ke, useTranslation as Pe, mergeClasses as Vt, usePermissions as
|
|
13
|
-
import { Tooltip as Jt, TooltipTrigger as Zt, Button as M, TooltipContent as Xt, Sheet as
|
|
14
|
-
import { LogsIcon as
|
|
11
|
+
import { useQuery as oe, useMutation as Y, useQueryClient as J, onlineManager as ws, QueryClient as Jr, QueryClientProvider as Zr } from "@tanstack/react-query";
|
|
12
|
+
import { useLanguages as _e, useSavePage as ke, useTranslation as Pe, mergeClasses as Vt, usePermissions as vs, PERMISSIONS as Xr, useRightPanel as ea, useChaiFeatureFlag as ta, useIsPageLoaded as na, registerChaiLibrary as sa, getBlocksFromHTML as ra, registerChaiSidebarPanel as Gt, registerChaiFeatureFlag as an, registerChaiTopBar as aa, registerChaiMediaManager as ia, registerChaiSaveToLibrary as oa, ChaiBuilderEditor as la } from "@chaibuilder/sdk";
|
|
13
|
+
import { Tooltip as Jt, TooltipTrigger as Zt, Button as M, TooltipContent as Xt, Sheet as bs, SheetContent as Is, SheetHeader as ca, SheetTitle as ua, SheetDescription as da, DropdownMenu as Nn, DropdownMenuTrigger as Cn, DropdownMenuContent as Gn, DropdownMenuItem as fe, Separator as fa, TooltipProvider as Ls, SheetTrigger as ha, Skeleton as Ot, Dialog as Ns, HoverCard as ga, HoverCardTrigger as ma, HoverCardContent as Ea, AlertDialog as pa, AlertDialogTrigger as ya, AlertDialogContent as Aa, AlertDialogHeader as Ta, AlertDialogTitle as Sa, AlertDialogDescription as _a, AlertDialogFooter as Pa, AlertDialogCancel as wa, AlertDialogAction as va, Popover as ba, PopoverTrigger as Ia, DialogContent as La, DialogHeader as Na, DialogTitle as Ca, Tabs as Ga, TabsList as Oa, TabsTrigger as on, TabsContent as ln, Textarea as Wn, Alert as Da, AlertDescription as xa } from "@chaibuilder/sdk/ui";
|
|
14
|
+
import { LogsIcon as Ra, Folder as ka, Languages as Yn, ChevronDown as pn, Star as Ua, Plus as Cs, History as Ma, Play as Ba, Palette as Fa, CheckCircle as Ka, Loader as Ht, Save as Va, Send as Jn, Rocket as Zn, CopyPlusIcon as Ha, Pencil as qa, Power as $a, Trash as Qa, SquareLibrary as Xn, Hash as za, File as ja, MoreHorizontal as es, ExternalLink as Wa, LanguagesIcon as Ya, User as Ja, X as ts, Trash2 as Za, ImageIcon as ns, Code as Xa, Eye as ei, Share2 as ti, FileCode2 as ni, AlertTriangle as si } from "lucide-react";
|
|
15
15
|
import { toast as k } from "sonner";
|
|
16
|
-
import { useRegisteredChaiBlocks as
|
|
17
|
-
import { loadWebBlocks as
|
|
16
|
+
import { useRegisteredChaiBlocks as ri, getDefaultBlockProps as ai } from "@chaibuilder/runtime";
|
|
17
|
+
import { loadWebBlocks as ii } from "@chaibuilder/sdk/web-blocks";
|
|
18
18
|
const Dt = {
|
|
19
19
|
ab: "Abkhazian",
|
|
20
20
|
aa: "Afar",
|
|
@@ -267,10 +267,10 @@ const Dt = {
|
|
|
267
267
|
UPDATE_ASSET: "UPDATE_ASSET",
|
|
268
268
|
GET_ASSETS: "GET_ASSETS",
|
|
269
269
|
GET_ASSET: "GET_ASSET"
|
|
270
|
-
},
|
|
271
|
-
const [n] =
|
|
270
|
+
}, oi = Ee({}), On = () => ie(oi), le = (e, t) => {
|
|
271
|
+
const [n] = On();
|
|
272
272
|
return q(() => H(n, e, t), [n, e, t]);
|
|
273
|
-
}, C = () => le("apiUrl", "/chai/api"),
|
|
273
|
+
}, C = () => le("apiUrl", "/chai/api"), Gs = () => le("usersApiUrl", "/chai/users"), Hc = () => le("assetsApiUrl", "/chai/assets"), Os = () => le("websocket", null), Ds = async (e, t, n = {}) => await fetch(e, {
|
|
274
274
|
method: "POST",
|
|
275
275
|
headers: {
|
|
276
276
|
"Content-Type": "application/json",
|
|
@@ -281,13 +281,13 @@ const Dt = {
|
|
|
281
281
|
if (import.meta.vitest) {
|
|
282
282
|
const { it: e, expect: t } = import.meta.vitest;
|
|
283
283
|
e("should fetch API", async () => {
|
|
284
|
-
const n = await
|
|
284
|
+
const n = await Ds("/v1/api/chai", {
|
|
285
285
|
action: "test"
|
|
286
286
|
});
|
|
287
287
|
t(n).toBeDefined();
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
const
|
|
290
|
+
const qc = () => {
|
|
291
291
|
const e = L(), t = C();
|
|
292
292
|
return z(
|
|
293
293
|
async ({
|
|
@@ -304,7 +304,7 @@ const Vc = () => {
|
|
|
304
304
|
async (s = n, r, a = {}, i = !1) => {
|
|
305
305
|
const o = await t();
|
|
306
306
|
try {
|
|
307
|
-
const l = H(r, "action", "").toLowerCase(), d = await
|
|
307
|
+
const l = H(r, "action", "").toLowerCase(), d = await Ds(s + (l ? `?action=${l}` : ""), r, {
|
|
308
308
|
...a,
|
|
309
309
|
Authorization: `Bearer ${o}`
|
|
310
310
|
});
|
|
@@ -355,24 +355,24 @@ const Me = (e) => {
|
|
|
355
355
|
action: E.GET_LANGUAGE_PAGES,
|
|
356
356
|
data: { id: s }
|
|
357
357
|
});
|
|
358
|
-
return
|
|
358
|
+
return Rr(kr(a, "primaryPage"));
|
|
359
359
|
},
|
|
360
360
|
enabled: !!s
|
|
361
361
|
});
|
|
362
|
-
},
|
|
362
|
+
}, li = Ee(
|
|
363
363
|
null
|
|
364
|
-
),
|
|
365
|
-
const [e] =
|
|
364
|
+
), xs = () => ie(li), Dn = () => {
|
|
365
|
+
const [e] = xs();
|
|
366
366
|
return (e == null ? void 0 : e.slug) || "";
|
|
367
367
|
};
|
|
368
|
-
function
|
|
368
|
+
function ci(e, t) {
|
|
369
369
|
const [n, s] = K(e);
|
|
370
370
|
return ne(() => {
|
|
371
371
|
const r = setTimeout(() => s(e), t);
|
|
372
372
|
return () => clearTimeout(r);
|
|
373
373
|
}, [e, t]), n;
|
|
374
374
|
}
|
|
375
|
-
const
|
|
375
|
+
const ui = ({ query: e, uuid: t }) => {
|
|
376
376
|
const { selectedLang: n, fallbackLang: s } = _e(), { data: r } = ce(), a = r == null ? void 0 : r.pageType, i = C(), o = L(), { data: l, isFetching: d } = oe({
|
|
377
377
|
queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
|
|
378
378
|
staleTime: 60 * 60 * 1e3,
|
|
@@ -384,8 +384,8 @@ const li = ({ query: e, uuid: t }) => {
|
|
|
384
384
|
enabled: !!a
|
|
385
385
|
}), u = q(() => n === "" ? l.filter((f) => f.lang === "" || f.lang === s) : l.filter((f) => f.lang === n), [n, s, l]);
|
|
386
386
|
return { allLangPages: l, data: u, isFetching: d };
|
|
387
|
-
},
|
|
388
|
-
const { selectedLang: e, fallbackLang: t } = _e(), [n, s] =
|
|
387
|
+
}, di = () => {
|
|
388
|
+
const { selectedLang: e, fallbackLang: t } = _e(), [n, s] = xs(), [r, a] = K(""), i = ci(r, 500), { allLangPages: o, data: l, isFetching: d } = ui({ query: i }), u = z((h) => s(h), [s]), f = z((h) => a(h), [a]), g = z(() => {
|
|
389
389
|
if (!n) return;
|
|
390
390
|
const h = !(n != null && n.primaryPage), p = e.length === 0, T = h ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, D = o.filter(
|
|
391
391
|
(y) => (y == null ? void 0 : y.primaryPage) === T || y.id === T
|
|
@@ -403,14 +403,14 @@ const li = ({ query: e, uuid: t }) => {
|
|
|
403
403
|
updateSearchQuery: f,
|
|
404
404
|
onChangeLanguage: g
|
|
405
405
|
};
|
|
406
|
-
},
|
|
406
|
+
}, fi = Ee({ lastSaved: void 0 }), Rs = () => ie(fi), ce = () => {
|
|
407
407
|
const [e] = we(), t = e.get("page"), { data: n, isFetching: s } = Me();
|
|
408
408
|
return { data: q(() => ({ ...ae(n, { id: t }) || {} }), [n, t]), isFetching: s };
|
|
409
409
|
}, Ne = () => {
|
|
410
410
|
const [e] = we(), t = e.get("lang") ?? "", { data: n, isFetching: s } = Me();
|
|
411
411
|
return { data: q(() => ae(n, { lang: t }) || {}, [n, t]), isFetching: s };
|
|
412
|
-
},
|
|
413
|
-
const { data: e } = Ne(), t =
|
|
412
|
+
}, hi = Ee({}), gi = () => ie(hi), mi = () => {
|
|
413
|
+
const { data: e } = Ne(), t = Dn(), n = le("getLiveUrl", ys), s = e == null ? void 0 : e.slug, r = n(s || "/");
|
|
414
414
|
return t ? r + t : r;
|
|
415
415
|
}, Be = () => {
|
|
416
416
|
const e = C(), t = L();
|
|
@@ -421,7 +421,8 @@ const li = ({ query: e, uuid: t }) => {
|
|
|
421
421
|
languages: [],
|
|
422
422
|
theme: { fontFamily: "", borderRadius: "", colors: {} },
|
|
423
423
|
appKey: "",
|
|
424
|
-
fallbackLang: ""
|
|
424
|
+
fallbackLang: "",
|
|
425
|
+
designTokens: {}
|
|
425
426
|
},
|
|
426
427
|
queryFn: async () => t(e, {
|
|
427
428
|
action: E.GET_WEBSITE_DRAFT_SETTINGS,
|
|
@@ -429,11 +430,11 @@ const li = ({ query: e, uuid: t }) => {
|
|
|
429
430
|
})
|
|
430
431
|
});
|
|
431
432
|
};
|
|
432
|
-
function
|
|
433
|
+
function ks(e, t, n = !1) {
|
|
433
434
|
const s = e.toString() ? `?${e.toString()}` : "/";
|
|
434
435
|
n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
435
436
|
}
|
|
436
|
-
const
|
|
437
|
+
const xn = Ee(null), Rn = () => {
|
|
437
438
|
const e = le("currentUser"), t = le("onLogout");
|
|
438
439
|
return {
|
|
439
440
|
isLoggedIn: !!e,
|
|
@@ -456,7 +457,7 @@ const Dn = Ee(null), xn = () => {
|
|
|
456
457
|
FORCE_TAKE_OVER_REQUEST: "FORCE_TAKE_OVER_REQUEST",
|
|
457
458
|
CONTINUE_EDITING_IN_THIS_CLIENT: "CONTINUE_EDITING_IN_THIS_CLIENT",
|
|
458
459
|
CONTINUE_EDITING_IN_THIS_TAB_REQUEST: "CONTINUE_EDITING_IN_THIS_TAB_REQUEST"
|
|
459
|
-
},
|
|
460
|
+
}, Ei = ["sync", "join", "leave"], pi = [
|
|
460
461
|
se.FORCE_TAKE_OVER,
|
|
461
462
|
se.TAKE_OVER_REQUEST,
|
|
462
463
|
se.TAKE_OVER_APPROVED,
|
|
@@ -464,52 +465,52 @@ const Dn = Ee(null), xn = () => {
|
|
|
464
465
|
se.FORCE_TAKE_OVER_REQUEST,
|
|
465
466
|
se.CONTINUE_EDITING_IN_THIS_CLIENT,
|
|
466
467
|
se.CONTINUE_EDITING_IN_THIS_TAB_REQUEST
|
|
467
|
-
],
|
|
468
|
-
const t = {}, n =
|
|
468
|
+
], yi = Ee({}), Us = Ee(null), Ai = Ee(te.CHECKING), Ti = Ee({}), Si = (e) => {
|
|
469
|
+
const t = {}, n = Ur(As(e).map(Ts).filter(Boolean), "pageId");
|
|
469
470
|
return Object.entries(n).forEach(
|
|
470
|
-
([s, r]) => t[s] =
|
|
471
|
+
([s, r]) => t[s] = Ss(r, "onlineAt")
|
|
471
472
|
), t;
|
|
472
|
-
},
|
|
473
|
-
const t =
|
|
473
|
+
}, _i = (e) => {
|
|
474
|
+
const t = Ss(As(e).map(Ts).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
|
|
474
475
|
return n ? n - 100 : +/* @__PURE__ */ new Date() - 1e3 * 60 * 60 * 4;
|
|
475
476
|
}, en = () => {
|
|
476
|
-
const { user: e } =
|
|
477
|
+
const { user: e } = Rn();
|
|
477
478
|
return e == null ? void 0 : e.id;
|
|
478
|
-
},
|
|
479
|
+
}, Pi = () => {
|
|
479
480
|
const { data: e } = Be();
|
|
480
481
|
return `WEBSITE:${e == null ? void 0 : e.appKey}`;
|
|
481
482
|
}, Nt = () => {
|
|
482
483
|
const { data: e } = ce();
|
|
483
484
|
return e == null ? void 0 : e.id;
|
|
484
485
|
}, Ue = crypto.randomUUID();
|
|
485
|
-
let
|
|
486
|
-
const
|
|
487
|
-
const [e, t] = ie(
|
|
486
|
+
let cn = null;
|
|
487
|
+
const Ms = () => {
|
|
488
|
+
const [e, t] = ie(yi);
|
|
488
489
|
return { pageToUser: e, setPageToUser: t };
|
|
489
490
|
}, pe = () => {
|
|
490
|
-
const [e, t] = ie(
|
|
491
|
+
const [e, t] = ie(Ai), n = [te.LOCKED, te.ACTIVE_IN_ANOTHER_TAB].includes(e), s = [te.EDITING].includes(e);
|
|
491
492
|
return { pageStatus: e, setPageStatus: t, isLocked: n, isEditing: s };
|
|
492
|
-
},
|
|
493
|
-
const [e, t] = ie(
|
|
493
|
+
}, Bs = () => {
|
|
494
|
+
const [e, t] = ie(Ti);
|
|
494
495
|
return { pageLockMeta: e, setPageLockMeta: t };
|
|
495
|
-
},
|
|
496
|
-
const e = Nt(), { pageToUser: t } =
|
|
496
|
+
}, wi = () => {
|
|
497
|
+
const e = Nt(), { pageToUser: t } = Ms();
|
|
497
498
|
return q(() => t[e], [t, e]);
|
|
498
|
-
},
|
|
499
|
-
const e =
|
|
499
|
+
}, kn = () => {
|
|
500
|
+
const e = Os(), { setPageStatus: t } = pe(), [n] = ie(Us);
|
|
500
501
|
return ne(() => {
|
|
501
|
-
if (clearTimeout(
|
|
502
|
-
return
|
|
502
|
+
if (clearTimeout(cn), !e)
|
|
503
|
+
return cn = setTimeout(() => {
|
|
503
504
|
e || t(te.EDITING);
|
|
504
|
-
}, 500), () => clearTimeout(
|
|
505
|
+
}, 500), () => clearTimeout(cn);
|
|
505
506
|
}, [e, t]), n;
|
|
506
|
-
},
|
|
507
|
-
const e = Nt(), t = en(), n =
|
|
507
|
+
}, vi = () => {
|
|
508
|
+
const e = Nt(), t = en(), n = kn(), { setPageToUser: s } = Ms(), { setPageStatus: r, pageStatus: a } = pe(), i = Ie(e);
|
|
508
509
|
return i.current = e, z(
|
|
509
510
|
(o) => {
|
|
510
511
|
const l = o || n;
|
|
511
512
|
if (!l) return [];
|
|
512
|
-
const d = l == null ? void 0 : l.presenceState(), u =
|
|
513
|
+
const d = l == null ? void 0 : l.presenceState(), u = Si(d);
|
|
513
514
|
s(u);
|
|
514
515
|
const f = u[i.current];
|
|
515
516
|
if (!f)
|
|
@@ -524,8 +525,8 @@ const Rs = () => {
|
|
|
524
525
|
},
|
|
525
526
|
[n, s, r, t, a]
|
|
526
527
|
);
|
|
527
|
-
},
|
|
528
|
-
const e = en(), t = Nt(), n =
|
|
528
|
+
}, bi = () => {
|
|
529
|
+
const e = en(), t = Nt(), n = kn(), s = wi(), { setPageLockMeta: r } = Bs(), a = Ie(t);
|
|
529
530
|
return a.current = t, z(
|
|
530
531
|
async (i, o) => {
|
|
531
532
|
if (!n) return;
|
|
@@ -534,8 +535,8 @@ const Rs = () => {
|
|
|
534
535
|
},
|
|
535
536
|
[n, e, s, r]
|
|
536
537
|
);
|
|
537
|
-
},
|
|
538
|
-
const e = en(), t = Nt(), n =
|
|
538
|
+
}, Ii = () => {
|
|
539
|
+
const e = en(), t = Nt(), n = kn(), { setPageStatus: s } = pe(), { setPageLockMeta: r } = Bs(), a = bi(), i = Ie(t), { savePageAsync: o } = ke();
|
|
539
540
|
return i.current = t, z(
|
|
540
541
|
(l) => async ({ payload: d }) => {
|
|
541
542
|
const u = d || {};
|
|
@@ -556,7 +557,7 @@ const Rs = () => {
|
|
|
556
557
|
break;
|
|
557
558
|
}
|
|
558
559
|
case se.CONTINUE_EDITING_IN_THIS_CLIENT: {
|
|
559
|
-
const f =
|
|
560
|
+
const f = _i(n == null ? void 0 : n.presenceState());
|
|
560
561
|
s(te.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: f, pageId: i.current, userId: e, clientId: Ue }));
|
|
561
562
|
break;
|
|
562
563
|
}
|
|
@@ -568,8 +569,8 @@ const Rs = () => {
|
|
|
568
569
|
},
|
|
569
570
|
[a, r, s, n, e, o]
|
|
570
571
|
);
|
|
571
|
-
},
|
|
572
|
-
const e =
|
|
572
|
+
}, $c = () => {
|
|
573
|
+
const e = Os(), t = en(), n = Nt(), s = Pi(), [r, a] = ie(Us), i = Ii(), o = vi(), l = Ie(i), d = Ie(o);
|
|
573
574
|
ne(() => {
|
|
574
575
|
l.current = i, d.current = o;
|
|
575
576
|
}, [i, o]), ne(() => {
|
|
@@ -584,11 +585,11 @@ const Rs = () => {
|
|
|
584
585
|
const u = e.channel(s, {
|
|
585
586
|
config: { presence: { key: Ue } }
|
|
586
587
|
});
|
|
587
|
-
return
|
|
588
|
+
return pi.forEach((f) => {
|
|
588
589
|
u.on("broadcast", { event: f }, (g) => {
|
|
589
590
|
l.current(f)(g);
|
|
590
591
|
});
|
|
591
|
-
}),
|
|
592
|
+
}), Ei.forEach((f) => {
|
|
592
593
|
u.on("presence", { event: f }, () => {
|
|
593
594
|
d.current(u);
|
|
594
595
|
});
|
|
@@ -605,13 +606,13 @@ const Rs = () => {
|
|
|
605
606
|
}), () => {
|
|
606
607
|
r && n && r.untrack();
|
|
607
608
|
}), [r, n, t]);
|
|
608
|
-
},
|
|
609
|
+
}, Un = () => {
|
|
609
610
|
const { data: e } = Be();
|
|
610
611
|
return q(
|
|
611
612
|
() => (e == null ? void 0 : e.fallbackLang) || "en",
|
|
612
613
|
[e]
|
|
613
614
|
);
|
|
614
|
-
},
|
|
615
|
+
}, Fs = () => {
|
|
615
616
|
const e = L(), t = C();
|
|
616
617
|
return oe({
|
|
617
618
|
queryKey: [E.GET_WEBSITE_PAGES],
|
|
@@ -619,8 +620,8 @@ const Rs = () => {
|
|
|
619
620
|
queryFn: async () => e(t, { action: E.GET_WEBSITE_PAGES }) || [],
|
|
620
621
|
placeholderData: (n) => n || []
|
|
621
622
|
});
|
|
622
|
-
},
|
|
623
|
-
const t = L(), n = C(), s =
|
|
623
|
+
}, Qc = (e) => {
|
|
624
|
+
const t = L(), n = C(), s = Un();
|
|
624
625
|
return oe({
|
|
625
626
|
queryKey: [E.GET_WEBSITE_PAGES, e, s],
|
|
626
627
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -628,15 +629,15 @@ const Rs = () => {
|
|
|
628
629
|
queryFn: async () => {
|
|
629
630
|
if (s === e) return {};
|
|
630
631
|
const r = await t(n, { action: E.GET_WEBSITE_PAGES, data: { lang: e } }) || [];
|
|
631
|
-
return
|
|
632
|
+
return Mr(
|
|
632
633
|
Kt(r, (a) => ({ ...a, lang: e })),
|
|
633
634
|
"primaryPage"
|
|
634
635
|
);
|
|
635
636
|
},
|
|
636
637
|
placeholderData: (r) => r || {}
|
|
637
638
|
});
|
|
638
|
-
},
|
|
639
|
-
const { t } = Pe(), [n, s] = we(), r = n.get("page"), { data: a, isFetching: i } = ce(), { data: o, isFetching: l } =
|
|
639
|
+
}, Li = V(() => import("./page-manager-new-DGaBkeJp.js")), Ks = ({ children: e }) => {
|
|
640
|
+
const { t } = Pe(), [n, s] = we(), r = n.get("page"), { data: a, isFetching: i } = ce(), { data: o, isFetching: l } = Fs(), [d, u] = K(!1), [f, g] = K(!0), { savePage: h } = ke(), p = !!r && !Te(a), { isLocked: T } = pe(), S = q(() => {
|
|
640
641
|
if (!o || l) return !1;
|
|
641
642
|
const v = o.find((U) => U.slug === "/");
|
|
642
643
|
return v == null ? void 0 : v.id;
|
|
@@ -644,7 +645,7 @@ const Rs = () => {
|
|
|
644
645
|
ne(() => {
|
|
645
646
|
if (l || !S || o.some((b) => b.id === r)) return;
|
|
646
647
|
const U = new URLSearchParams({ page: S });
|
|
647
|
-
|
|
648
|
+
ks(U, s), !l && o && g(!1);
|
|
648
649
|
}, [r, l, o, S, s]);
|
|
649
650
|
const D = !f && !r, y = !f && !i && Te(a), w = d || D || y;
|
|
650
651
|
return /* @__PURE__ */ m(ge, { children: [
|
|
@@ -656,37 +657,37 @@ const Rs = () => {
|
|
|
656
657
|
onClick: () => {
|
|
657
658
|
T || h(), u(!0);
|
|
658
659
|
},
|
|
659
|
-
children: e || /* @__PURE__ */ c(M, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(
|
|
660
|
+
children: e || /* @__PURE__ */ c(M, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(Ra, { className: "h-4 w-4" }) }, "template-viewer")
|
|
660
661
|
}
|
|
661
662
|
),
|
|
662
663
|
/* @__PURE__ */ c(Xt, { side: "right", children: /* @__PURE__ */ c("p", { children: t("Open pages manager") }) })
|
|
663
664
|
] }) }) }),
|
|
664
|
-
/* @__PURE__ */ c(
|
|
665
|
-
|
|
665
|
+
/* @__PURE__ */ c(bs, { open: w, onOpenChange: (v) => !v && p && u(!1), children: /* @__PURE__ */ m(
|
|
666
|
+
Is,
|
|
666
667
|
{
|
|
667
668
|
side: "left",
|
|
668
669
|
"aria-describedby": "pages-manager-description",
|
|
669
670
|
className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${p ? "" : "sheet-hide-close-btn"}`,
|
|
670
671
|
children: [
|
|
671
|
-
/* @__PURE__ */ m(
|
|
672
|
-
/* @__PURE__ */ m(
|
|
673
|
-
/* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(
|
|
672
|
+
/* @__PURE__ */ m(ca, { className: "mb-3 px-4 pt-4", children: [
|
|
673
|
+
/* @__PURE__ */ m(ua, { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
674
|
+
/* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(ka, { className: "h-4 w-4" }) }),
|
|
674
675
|
/* @__PURE__ */ m("div", { className: "flex flex-col", children: [
|
|
675
676
|
/* @__PURE__ */ c("span", { className: "text-sm font-semibold", children: t("Pages") }),
|
|
676
677
|
/* @__PURE__ */ c("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
|
|
677
678
|
] })
|
|
678
679
|
] }),
|
|
679
|
-
/* @__PURE__ */ c(
|
|
680
|
+
/* @__PURE__ */ c(da, { className: "sr-only", children: t("Manage your site structure") })
|
|
680
681
|
] }),
|
|
681
|
-
/* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: w && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
682
|
+
/* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: w && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Li, { close: () => u(!1) }) }) })
|
|
682
683
|
]
|
|
683
684
|
}
|
|
684
685
|
) })
|
|
685
686
|
] });
|
|
686
|
-
},
|
|
687
|
+
}, Ni = V(() => import("./add-new-language-page-0J2KTKg6.js")), Ci = () => {
|
|
687
688
|
const e = le("topLeftCorner", null);
|
|
688
|
-
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children:
|
|
689
|
-
},
|
|
689
|
+
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: jr.createElement(e, {}) }) : null;
|
|
690
|
+
}, Gi = ({
|
|
690
691
|
showAdd: e = !0,
|
|
691
692
|
variant: t = "ghost",
|
|
692
693
|
goToDefaultLang: n = !1
|
|
@@ -696,8 +697,8 @@ const Rs = () => {
|
|
|
696
697
|
const y = new URLSearchParams(window.location.search), w = y.get("lang");
|
|
697
698
|
w && (r.includes(w) ? i(w) : (y.delete("lang"), l(y), i("")));
|
|
698
699
|
}, [r, l, i]);
|
|
699
|
-
const [, f] = ie(
|
|
700
|
-
const y =
|
|
700
|
+
const [, f] = ie(xn), { data: g } = ce(), { data: h } = Be(), { data: p } = Me(), T = q(() => {
|
|
701
|
+
const y = _s(
|
|
701
702
|
Kt(H(h, "languages"), (w) => {
|
|
702
703
|
const v = ae(p, { lang: w });
|
|
703
704
|
return {
|
|
@@ -731,14 +732,14 @@ const Rs = () => {
|
|
|
731
732
|
}, D = (y) => {
|
|
732
733
|
i(y);
|
|
733
734
|
const w = new URLSearchParams(window.location.search);
|
|
734
|
-
y === s ? w.delete("lang") : w.set("lang", y),
|
|
735
|
+
y === s ? w.delete("lang") : w.set("lang", y), ks(w, l);
|
|
735
736
|
};
|
|
736
737
|
return Te(r) ? null : d ? /* @__PURE__ */ m(M, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
|
|
737
|
-
/* @__PURE__ */ c(
|
|
738
|
+
/* @__PURE__ */ c(Yn, { className: "h-4 w-4" }),
|
|
738
739
|
H(Dt, o, o),
|
|
739
|
-
/* @__PURE__ */ c(
|
|
740
|
-
] }) : n ? /* @__PURE__ */ c(M, { onClick: () => D(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ m(
|
|
741
|
-
/* @__PURE__ */ c(
|
|
740
|
+
/* @__PURE__ */ c(pn, { className: "h-4 w-4" })
|
|
741
|
+
] }) : n ? /* @__PURE__ */ c(M, { onClick: () => D(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ m(Nn, { children: [
|
|
742
|
+
/* @__PURE__ */ c(Cn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
742
743
|
M,
|
|
743
744
|
{
|
|
744
745
|
disabled: !!d,
|
|
@@ -746,13 +747,13 @@ const Rs = () => {
|
|
|
746
747
|
size: "sm",
|
|
747
748
|
className: "ml-px h-max gap-2 py-1.5",
|
|
748
749
|
children: [
|
|
749
|
-
/* @__PURE__ */ c(
|
|
750
|
+
/* @__PURE__ */ c(Yn, { className: "h-4 w-4" }),
|
|
750
751
|
H(Dt, o, o),
|
|
751
|
-
/* @__PURE__ */ c(
|
|
752
|
+
/* @__PURE__ */ c(pn, { className: "h-4 w-4" })
|
|
752
753
|
]
|
|
753
754
|
}
|
|
754
755
|
) }),
|
|
755
|
-
/* @__PURE__ */ m(
|
|
756
|
+
/* @__PURE__ */ m(Gn, { className: "space-y-1 border-border", children: [
|
|
756
757
|
Kt(
|
|
757
758
|
T.filter((y) => y.isLangPageAdded),
|
|
758
759
|
(y) => /* @__PURE__ */ m(
|
|
@@ -766,7 +767,7 @@ const Rs = () => {
|
|
|
766
767
|
children: [
|
|
767
768
|
/* @__PURE__ */ c("div", { className: "text-slate-600", children: y.value }),
|
|
768
769
|
y.key === s && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
|
|
769
|
-
/* @__PURE__ */ c(
|
|
770
|
+
/* @__PURE__ */ c(Ua, { fill: "orange", className: "h-2 w-2" }),
|
|
770
771
|
"Primary"
|
|
771
772
|
] })
|
|
772
773
|
]
|
|
@@ -775,7 +776,7 @@ const Rs = () => {
|
|
|
775
776
|
)
|
|
776
777
|
),
|
|
777
778
|
e && !Te(T.filter((y) => !y.isLangPageAdded)) && /* @__PURE__ */ m(ge, { children: [
|
|
778
|
-
/* @__PURE__ */ c(
|
|
779
|
+
/* @__PURE__ */ c(fa, {}),
|
|
779
780
|
/* @__PURE__ */ m(
|
|
780
781
|
M,
|
|
781
782
|
{
|
|
@@ -789,7 +790,7 @@ const Rs = () => {
|
|
|
789
790
|
},
|
|
790
791
|
className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
|
|
791
792
|
children: [
|
|
792
|
-
/* @__PURE__ */ c(
|
|
793
|
+
/* @__PURE__ */ c(Cs, { className: "mr-1 h-3 w-3" }),
|
|
793
794
|
" Add Langauge"
|
|
794
795
|
]
|
|
795
796
|
}
|
|
@@ -798,13 +799,13 @@ const Rs = () => {
|
|
|
798
799
|
] })
|
|
799
800
|
] }) });
|
|
800
801
|
};
|
|
801
|
-
function
|
|
802
|
-
const [e, t] = ie(
|
|
802
|
+
function Oi() {
|
|
803
|
+
const [e, t] = ie(xn);
|
|
803
804
|
return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
|
|
804
|
-
/* @__PURE__ */ c(
|
|
805
|
-
/* @__PURE__ */ c(
|
|
805
|
+
/* @__PURE__ */ c(Ci, {}),
|
|
806
|
+
/* @__PURE__ */ c(Ks, {}),
|
|
806
807
|
e && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
807
|
-
|
|
808
|
+
Ni,
|
|
808
809
|
{
|
|
809
810
|
isOpen: !0,
|
|
810
811
|
id: e == null ? void 0 : e.id,
|
|
@@ -816,7 +817,7 @@ function Ci() {
|
|
|
816
817
|
) })
|
|
817
818
|
] });
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
+
function Di() {
|
|
820
821
|
return /* @__PURE__ */ c("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: [
|
|
821
822
|
/* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
|
|
822
823
|
/* @__PURE__ */ c(Ot, { className: "h-4 w-3/4" }),
|
|
@@ -826,32 +827,32 @@ function Gi() {
|
|
|
826
827
|
/* @__PURE__ */ c(Ot, { className: "h-8 w-8 rounded-full" })
|
|
827
828
|
] }, t)) });
|
|
828
829
|
}
|
|
829
|
-
const
|
|
830
|
-
function
|
|
830
|
+
const xi = Q.lazy(() => import("./page-revisions-content-CoVYI0hI.js"));
|
|
831
|
+
function Ri() {
|
|
831
832
|
const [e, t] = Q.useState(!1);
|
|
832
|
-
return /* @__PURE__ */ c(
|
|
833
|
-
/* @__PURE__ */ m(
|
|
834
|
-
/* @__PURE__ */ c(
|
|
833
|
+
return /* @__PURE__ */ c(Ls, { children: /* @__PURE__ */ m(Jt, { delayDuration: 0, children: [
|
|
834
|
+
/* @__PURE__ */ m(bs, { open: e, onOpenChange: t, children: [
|
|
835
|
+
/* @__PURE__ */ c(ha, { asChild: !0, children: /* @__PURE__ */ c(Zt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
|
|
835
836
|
/* @__PURE__ */ m(M, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
|
|
836
|
-
/* @__PURE__ */ c(
|
|
837
|
+
/* @__PURE__ */ c(Ma, { className: "h-4 w-4" }),
|
|
837
838
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "View revision history" })
|
|
838
839
|
] }),
|
|
839
840
|
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
840
841
|
] }) }) }),
|
|
841
|
-
/* @__PURE__ */ c(
|
|
842
|
+
/* @__PURE__ */ c(Is, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c(Di, {}), children: /* @__PURE__ */ c(xi, { isOpen: e }) }) })
|
|
842
843
|
] }),
|
|
843
844
|
/* @__PURE__ */ c(Xt, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
|
|
844
845
|
] }) });
|
|
845
846
|
}
|
|
846
|
-
const
|
|
847
|
+
const un = ({
|
|
847
848
|
permission: e,
|
|
848
849
|
permissions: t,
|
|
849
850
|
children: n,
|
|
850
851
|
fallback: s = null
|
|
851
852
|
}) => {
|
|
852
|
-
const { hasPermission: r } =
|
|
853
|
+
const { hasPermission: r } = vs();
|
|
853
854
|
return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
|
|
854
|
-
},
|
|
855
|
+
}, ki = {
|
|
855
856
|
SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
|
|
856
857
|
}, Ce = () => {
|
|
857
858
|
const e = C(), t = L();
|
|
@@ -861,10 +862,10 @@ const cn = ({
|
|
|
861
862
|
placeholderData: [],
|
|
862
863
|
queryFn: async () => t(e, { action: E.GET_PAGE_TYPES })
|
|
863
864
|
});
|
|
864
|
-
},
|
|
865
|
+
}, Ui = (e) => {
|
|
865
866
|
const { data: t } = Ce();
|
|
866
867
|
return q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
|
|
867
|
-
},
|
|
868
|
+
}, Mi = () => {
|
|
868
869
|
const e = C(), t = L();
|
|
869
870
|
return Y({
|
|
870
871
|
mutationFn: async ({ pageType: n, query: s }) => {
|
|
@@ -881,7 +882,7 @@ const cn = ({
|
|
|
881
882
|
}
|
|
882
883
|
}
|
|
883
884
|
});
|
|
884
|
-
},
|
|
885
|
+
}, zc = () => {
|
|
885
886
|
const e = C(), t = J(), n = L(), { data: s } = Ce();
|
|
886
887
|
return Y({
|
|
887
888
|
mutationFn: async (r) => await n(e, {
|
|
@@ -903,11 +904,11 @@ const cn = ({
|
|
|
903
904
|
onError: (r, a) => {
|
|
904
905
|
const i = ae(s, { key: a.pageType });
|
|
905
906
|
k.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
906
|
-
description: H(
|
|
907
|
+
description: H(ki, r.message, r.message)
|
|
907
908
|
});
|
|
908
909
|
}
|
|
909
910
|
});
|
|
910
|
-
},
|
|
911
|
+
}, jc = () => {
|
|
911
912
|
const e = C(), t = J(), n = L(), { data: s } = Ne(), { data: r } = Ce();
|
|
912
913
|
return Y({
|
|
913
914
|
mutationFn: async (a) => await n(e, {
|
|
@@ -932,7 +933,7 @@ const cn = ({
|
|
|
932
933
|
});
|
|
933
934
|
}
|
|
934
935
|
});
|
|
935
|
-
},
|
|
936
|
+
}, Wc = () => {
|
|
936
937
|
const e = C(), t = J(), n = L(), { data: s } = Ce();
|
|
937
938
|
return Y({
|
|
938
939
|
mutationFn: async (r) => n(e, {
|
|
@@ -961,7 +962,7 @@ const cn = ({
|
|
|
961
962
|
});
|
|
962
963
|
}
|
|
963
964
|
});
|
|
964
|
-
},
|
|
965
|
+
}, Yc = () => {
|
|
965
966
|
const e = C(), t = J(), n = L(), { data: s } = Ce();
|
|
966
967
|
return Y({
|
|
967
968
|
mutationFn: async (r) => n(e, {
|
|
@@ -986,7 +987,7 @@ const cn = ({
|
|
|
986
987
|
});
|
|
987
988
|
}
|
|
988
989
|
});
|
|
989
|
-
},
|
|
990
|
+
}, Vs = () => {
|
|
990
991
|
const e = C(), t = L(), n = J(), { data: s } = ce(), { savePageAsync: r } = ke();
|
|
991
992
|
return Y({
|
|
992
993
|
mutationFn: async ({ ids: a }) => (await r(), t(e, {
|
|
@@ -1006,7 +1007,7 @@ const cn = ({
|
|
|
1006
1007
|
console.log("##", a), k.error("Failed to publish pages.");
|
|
1007
1008
|
}
|
|
1008
1009
|
});
|
|
1009
|
-
},
|
|
1010
|
+
}, Jc = () => {
|
|
1010
1011
|
const e = C(), t = L(), n = J();
|
|
1011
1012
|
return Y({
|
|
1012
1013
|
mutationFn: async (s) => {
|
|
@@ -1031,7 +1032,7 @@ const cn = ({
|
|
|
1031
1032
|
k.error("Failed to mark page as template.");
|
|
1032
1033
|
}
|
|
1033
1034
|
});
|
|
1034
|
-
},
|
|
1035
|
+
}, Zc = () => {
|
|
1035
1036
|
const e = C(), t = L(), n = J();
|
|
1036
1037
|
return Y({
|
|
1037
1038
|
mutationFn: async (s) => t(e, {
|
|
@@ -1047,7 +1048,7 @@ const cn = ({
|
|
|
1047
1048
|
k.error("Failed to unmark page as template.");
|
|
1048
1049
|
}
|
|
1049
1050
|
});
|
|
1050
|
-
},
|
|
1051
|
+
}, Xc = () => {
|
|
1051
1052
|
const e = C(), t = L(), n = J();
|
|
1052
1053
|
return Y({
|
|
1053
1054
|
mutationFn: async ({ id: s, slug: r }) => t(e, {
|
|
@@ -1065,17 +1066,17 @@ const cn = ({
|
|
|
1065
1066
|
k.error("Failed to change slug");
|
|
1066
1067
|
}
|
|
1067
1068
|
});
|
|
1068
|
-
},
|
|
1069
|
-
function
|
|
1069
|
+
}, Bi = V(() => import("./publish-pages-content-KgbEbRVV.js"));
|
|
1070
|
+
function Fi({
|
|
1070
1071
|
showModal: e = !1,
|
|
1071
1072
|
onClose: t = () => console.log("Cancelled")
|
|
1072
1073
|
}) {
|
|
1073
|
-
const { mutate: n, isPending: s } =
|
|
1074
|
-
return /* @__PURE__ */ c(
|
|
1075
|
-
} : t, children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(
|
|
1074
|
+
const { mutate: n, isPending: s } = Vs();
|
|
1075
|
+
return /* @__PURE__ */ c(Ns, { open: e, onOpenChange: s ? () => {
|
|
1076
|
+
} : t, children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(Bi, { onClose: t, isPending: s, publishPage: n }) }) });
|
|
1076
1077
|
}
|
|
1077
1078
|
const de = {
|
|
1078
|
-
...
|
|
1079
|
+
...Xr,
|
|
1079
1080
|
//pages
|
|
1080
1081
|
ADD_PAGE: "add_page",
|
|
1081
1082
|
EDIT_PAGE: "edit_page",
|
|
@@ -1111,21 +1112,21 @@ const de = {
|
|
|
1111
1112
|
ADD_MEDIA: "add_media",
|
|
1112
1113
|
EDIT_MEDIA: "edit_media",
|
|
1113
1114
|
DELETE_MEDIA: "delete_media"
|
|
1114
|
-
},
|
|
1115
|
+
}, Ki = (e) => {
|
|
1115
1116
|
const { fallbackLang: t } = _e(), { data: n } = Be(), { data: s, isFetching: r } = Me(), a = q(() => {
|
|
1116
1117
|
const i = { [t]: !0 };
|
|
1117
|
-
return
|
|
1118
|
+
return Br(H(n, "languages"), (o) => {
|
|
1118
1119
|
const l = ae(s, { lang: o });
|
|
1119
1120
|
i[o] = !!l;
|
|
1120
1121
|
}), i;
|
|
1121
1122
|
}, [t, s, n]);
|
|
1122
1123
|
return r || Te(e) || e && a[e];
|
|
1123
|
-
},
|
|
1124
|
+
}, Vi = {
|
|
1124
1125
|
particleCount: 350,
|
|
1125
1126
|
spread: 120,
|
|
1126
1127
|
origin: { y: 0.6 },
|
|
1127
1128
|
angle: 90
|
|
1128
|
-
},
|
|
1129
|
+
}, Hi = {
|
|
1129
1130
|
TOP_RIGHT: {
|
|
1130
1131
|
angle: 225,
|
|
1131
1132
|
origin: { x: 0.9, y: 0 }
|
|
@@ -1134,28 +1135,28 @@ const de = {
|
|
|
1134
1135
|
angle: 100,
|
|
1135
1136
|
origin: { x: 0.9, y: 0.9 }
|
|
1136
1137
|
}
|
|
1137
|
-
},
|
|
1138
|
+
}, qi = async () => {
|
|
1138
1139
|
const { default: e } = await import("./confetti.module-DCmCkDyV.js");
|
|
1139
1140
|
return e;
|
|
1140
|
-
},
|
|
1141
|
-
let t =
|
|
1141
|
+
}, dn = (e) => {
|
|
1142
|
+
let t = Hi[e];
|
|
1142
1143
|
t || (t = {});
|
|
1143
|
-
const n = { ...
|
|
1144
|
-
|
|
1144
|
+
const n = { ...Vi, ...t };
|
|
1145
|
+
qi().then((s) => s(n));
|
|
1145
1146
|
};
|
|
1146
|
-
function
|
|
1147
|
+
function Mn({
|
|
1147
1148
|
children: e,
|
|
1148
1149
|
content: t,
|
|
1149
1150
|
side: n = "bottom",
|
|
1150
1151
|
delayDuration: s = 700,
|
|
1151
1152
|
showTooltip: r = !0
|
|
1152
1153
|
}) {
|
|
1153
|
-
return r ? /* @__PURE__ */ c(
|
|
1154
|
+
return r ? /* @__PURE__ */ c(Ls, { children: /* @__PURE__ */ m(Jt, { delayDuration: s, children: [
|
|
1154
1155
|
/* @__PURE__ */ c(Zt, { asChild: !0, children: e }),
|
|
1155
1156
|
/* @__PURE__ */ c(Xt, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
|
|
1156
1157
|
] }) }) : e;
|
|
1157
1158
|
}
|
|
1158
|
-
const
|
|
1159
|
+
const $i = V(() => import("./unpublish-page-BKQqPk_e.js")), Qi = V(() => import("./translation-warning-modal-DalBhNQy.js")), zi = () => {
|
|
1159
1160
|
const { t: e } = Pe(), { selectedLang: t, fallbackLang: n } = _e(), s = le("getPreviewUrl", async (g) => g), [r, a] = K(""), { data: i } = ce(), { data: o } = Me(), { data: l } = Ce(), d = q(
|
|
1160
1161
|
() => {
|
|
1161
1162
|
var g;
|
|
@@ -1176,23 +1177,23 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1176
1177
|
} else
|
|
1177
1178
|
a("");
|
|
1178
1179
|
})();
|
|
1179
|
-
}, [s, d, i == null ? void 0 : i.pageType, u, i == null ? void 0 : i.id, f]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(
|
|
1180
|
-
},
|
|
1181
|
-
const { t: e } = Pe(), [t, n] =
|
|
1180
|
+
}, [s, d, i == null ? void 0 : i.pageType, u, i == null ? void 0 : i.id, f]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(Mn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(M, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(Ba, { className: "h-4 w-4" }) }) }) }) });
|
|
1181
|
+
}, ji = () => {
|
|
1182
|
+
const { t: e } = Pe(), [t, n] = ea();
|
|
1182
1183
|
return /* @__PURE__ */ m(ge, { children: [
|
|
1183
|
-
/* @__PURE__ */ c(
|
|
1184
|
+
/* @__PURE__ */ c(Mn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
|
|
1184
1185
|
M,
|
|
1185
1186
|
{
|
|
1186
1187
|
variant: t === "theme" ? "outline" : "ghost",
|
|
1187
1188
|
size: "icon",
|
|
1188
1189
|
className: "gap-2",
|
|
1189
1190
|
onClick: () => n(t === "theme" ? "block" : "theme"),
|
|
1190
|
-
children: /* @__PURE__ */ c(
|
|
1191
|
+
children: /* @__PURE__ */ c(Fa, { className: "h-4 w-4" })
|
|
1191
1192
|
}
|
|
1192
1193
|
) }),
|
|
1193
1194
|
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1194
1195
|
] });
|
|
1195
|
-
},
|
|
1196
|
+
}, Wi = () => {
|
|
1196
1197
|
const { t: e } = Pe(), [t, n] = K(!1), { isLocked: s } = pe(), { savePageAsync: r, saveState: a } = ke();
|
|
1197
1198
|
ne(() => {
|
|
1198
1199
|
const u = (f) => {
|
|
@@ -1209,7 +1210,7 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1209
1210
|
case "UNSAVED":
|
|
1210
1211
|
return {
|
|
1211
1212
|
tooltipContent: e("Save draft"),
|
|
1212
|
-
buttonIcon: /* @__PURE__ */ c(
|
|
1213
|
+
buttonIcon: /* @__PURE__ */ c(Va, { className: "h-4 w-4" }),
|
|
1213
1214
|
buttonClass: "gap-x-1"
|
|
1214
1215
|
};
|
|
1215
1216
|
case "SAVING":
|
|
@@ -1221,7 +1222,7 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1221
1222
|
case "SAVED":
|
|
1222
1223
|
return {
|
|
1223
1224
|
tooltipContent: e("Saved"),
|
|
1224
|
-
buttonIcon: /* @__PURE__ */ c(
|
|
1225
|
+
buttonIcon: /* @__PURE__ */ c(Ka, { className: "h-4 w-4" }),
|
|
1225
1226
|
buttonClass: "text-green-500 gap-x-1"
|
|
1226
1227
|
};
|
|
1227
1228
|
}
|
|
@@ -1231,8 +1232,8 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1231
1232
|
" ",
|
|
1232
1233
|
d
|
|
1233
1234
|
] });
|
|
1234
|
-
},
|
|
1235
|
-
const { t: e } = Pe(), { selectedLang: t } = _e(), { data: n } = Ne(), { data: s } = Me(), [r, a] = K(!1), [i, o] = K(!1), [l, d] = K(null), { savePageAsync: u } = ke(), [f, g] = K(!1), { data: h } = ce(), { mutate: p, isPending: T } =
|
|
1235
|
+
}, Yi = () => {
|
|
1236
|
+
const { t: e } = Pe(), { selectedLang: t } = _e(), { data: n } = Ne(), { data: s } = Me(), [r, a] = K(!1), [i, o] = K(!1), [l, d] = K(null), { savePageAsync: u } = ke(), [f, g] = K(!1), { data: h } = ce(), { mutate: p, isPending: T } = Vs(), { needTranslations: S } = ke(), D = S(), { buttonText: y, buttonClassName: w, isPublished: v } = q(() => {
|
|
1236
1237
|
const P = h && (h == null ? void 0 : h.online);
|
|
1237
1238
|
return {
|
|
1238
1239
|
buttonClassName: P ? "hover:bg-green-600 bg-green-500" : "",
|
|
@@ -1247,7 +1248,7 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1247
1248
|
b();
|
|
1248
1249
|
}, b = () => {
|
|
1249
1250
|
const P = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
|
|
1250
|
-
p({ ids:
|
|
1251
|
+
p({ ids: _s(P) }, { onSuccess: () => dn("TOP_RIGHT") });
|
|
1251
1252
|
}, ye = () => {
|
|
1252
1253
|
g(!1), b();
|
|
1253
1254
|
}, Ae = async () => {
|
|
@@ -1269,38 +1270,38 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1269
1270
|
"span",
|
|
1270
1271
|
{
|
|
1271
1272
|
className: `flex items-center transition-transform duration-300 ease-in-out ${i ? "-translate-y-10" : ""}`,
|
|
1272
|
-
children: v ? /* @__PURE__ */ c(
|
|
1273
|
+
children: v ? /* @__PURE__ */ c(Jn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Zn, { className: "h-4 w-4" })
|
|
1273
1274
|
}
|
|
1274
1275
|
),
|
|
1275
1276
|
/* @__PURE__ */ c(
|
|
1276
1277
|
"span",
|
|
1277
1278
|
{
|
|
1278
1279
|
className: `absolute inset-0 left-3 flex items-center transition-transform duration-300 ease-in-out ${i ? "" : "translate-y-10"}`,
|
|
1279
|
-
children: v ? /* @__PURE__ */ c(
|
|
1280
|
+
children: v ? /* @__PURE__ */ c(Zn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Jn, { className: "h-4 w-4" })
|
|
1280
1281
|
}
|
|
1281
1282
|
),
|
|
1282
1283
|
/* @__PURE__ */ c("span", { children: y }),
|
|
1283
|
-
t ? `(${
|
|
1284
|
+
t ? `(${Qn(t)})` : ""
|
|
1284
1285
|
]
|
|
1285
1286
|
}
|
|
1286
1287
|
),
|
|
1287
|
-
/* @__PURE__ */ m(
|
|
1288
|
-
/* @__PURE__ */ c(
|
|
1288
|
+
/* @__PURE__ */ m(Nn, { children: [
|
|
1289
|
+
/* @__PURE__ */ c(Cn, { asChild: !0, children: /* @__PURE__ */ c(
|
|
1289
1290
|
M,
|
|
1290
1291
|
{
|
|
1291
1292
|
size: "sm",
|
|
1292
1293
|
disabled: T || !(h != null && h.id),
|
|
1293
1294
|
className: `rounded-l-none border-l border-white/50 px-2 text-white ${w}`,
|
|
1294
|
-
children: /* @__PURE__ */ c(
|
|
1295
|
+
children: /* @__PURE__ */ c(pn, { className: "h-4 w-4" })
|
|
1295
1296
|
}
|
|
1296
1297
|
) }),
|
|
1297
|
-
/* @__PURE__ */ m(
|
|
1298
|
+
/* @__PURE__ */ m(Gn, { align: "end", className: "w-52", children: [
|
|
1298
1299
|
/* @__PURE__ */ m(
|
|
1299
1300
|
fe,
|
|
1300
1301
|
{
|
|
1301
1302
|
disabled: T,
|
|
1302
1303
|
className: "cursor-pointer text-xs",
|
|
1303
|
-
onClick: () => p({ ids: B }, { onSuccess: () =>
|
|
1304
|
+
onClick: () => p({ ids: B }, { onSuccess: () => dn("TOP_RIGHT") }),
|
|
1304
1305
|
children: [
|
|
1305
1306
|
e("Publish"),
|
|
1306
1307
|
" with translation pages"
|
|
@@ -1312,7 +1313,7 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1312
1313
|
{
|
|
1313
1314
|
disabled: T,
|
|
1314
1315
|
className: "cursor-pointer text-xs",
|
|
1315
|
-
onClick: () => p({ ids: [h == null ? void 0 : h.id] }, { onSuccess: () =>
|
|
1316
|
+
onClick: () => p({ ids: [h == null ? void 0 : h.id] }, { onSuccess: () => dn("TOP_RIGHT") }),
|
|
1316
1317
|
children: [
|
|
1317
1318
|
e("Publish"),
|
|
1318
1319
|
" page"
|
|
@@ -1326,15 +1327,15 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1326
1327
|
v && /* @__PURE__ */ m(fe, { onClick: () => d(n), className: "cursor-pointer text-xs", children: [
|
|
1327
1328
|
e("Unpublish"),
|
|
1328
1329
|
" page ",
|
|
1329
|
-
t ? `(${
|
|
1330
|
+
t ? `(${Qn(t)})` : ""
|
|
1330
1331
|
] })
|
|
1331
1332
|
] })
|
|
1332
1333
|
] })
|
|
1333
1334
|
] }),
|
|
1334
|
-
/* @__PURE__ */ c(
|
|
1335
|
-
l && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1335
|
+
/* @__PURE__ */ c(Fi, { showModal: r, onClose: () => a(!1) }),
|
|
1336
|
+
l && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c($i, { page: l, onClose: () => d(null) }) }),
|
|
1336
1337
|
f && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1337
|
-
|
|
1338
|
+
Qi,
|
|
1338
1339
|
{
|
|
1339
1340
|
isOpen: f,
|
|
1340
1341
|
onClose: Ae,
|
|
@@ -1344,17 +1345,17 @@ const Hi = V(() => import("./unpublish-page-CxAB3-Cj.js")), qi = V(() => import(
|
|
|
1344
1345
|
) })
|
|
1345
1346
|
] });
|
|
1346
1347
|
};
|
|
1347
|
-
function
|
|
1348
|
-
const { isLocked: e } = pe(), [t] = we(), n = t.get("lang"), s =
|
|
1348
|
+
function Ji() {
|
|
1349
|
+
const { isLocked: e } = pe(), [t] = we(), n = t.get("lang"), s = Ki(n);
|
|
1349
1350
|
return e || !s ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
|
|
1350
|
-
/* @__PURE__ */ c(
|
|
1351
|
-
/* @__PURE__ */ c(
|
|
1352
|
-
/* @__PURE__ */ c(
|
|
1353
|
-
/* @__PURE__ */ c(
|
|
1354
|
-
/* @__PURE__ */ c(
|
|
1351
|
+
/* @__PURE__ */ c(Ri, {}),
|
|
1352
|
+
/* @__PURE__ */ c(un, { permission: de.EDIT_THEME, children: /* @__PURE__ */ c(ji, {}) }),
|
|
1353
|
+
/* @__PURE__ */ c(zi, {}),
|
|
1354
|
+
/* @__PURE__ */ c(un, { permission: de.SAVE_PAGE, children: /* @__PURE__ */ c(Wi, {}) }),
|
|
1355
|
+
/* @__PURE__ */ c(un, { permission: de.PUBLISH_PAGE, children: /* @__PURE__ */ c(Yi, {}) })
|
|
1355
1356
|
] });
|
|
1356
1357
|
}
|
|
1357
|
-
const
|
|
1358
|
+
const Zi = ({
|
|
1358
1359
|
page: e,
|
|
1359
1360
|
setDuplicatePage: t,
|
|
1360
1361
|
setAddEditPage: n,
|
|
@@ -1365,10 +1366,10 @@ const Yi = ({
|
|
|
1365
1366
|
children: o,
|
|
1366
1367
|
isLanguagePage: l
|
|
1367
1368
|
}) => {
|
|
1368
|
-
const { t: d } = Pe(), { hasPermission: u } =
|
|
1369
|
-
return !u(de.EDIT_PAGE) && !u(de.DELETE_PAGE) && !u(de.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(
|
|
1370
|
-
/* @__PURE__ */ c(
|
|
1371
|
-
/* @__PURE__ */ m(
|
|
1369
|
+
const { t: d } = Pe(), { hasPermission: u } = vs(), { data: f } = Ce(), g = q(() => ae(f, { key: e.pageType }), [f, e.pageType]), h = q(() => !!e.isTemplate, [e.isTemplate]), p = q(() => !!(g != null && g.hasSlug), [g == null ? void 0 : g.hasSlug]);
|
|
1370
|
+
return !u(de.EDIT_PAGE) && !u(de.DELETE_PAGE) && !u(de.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(Nn, { children: [
|
|
1371
|
+
/* @__PURE__ */ c(Cn, { asChild: !0, onClick: (S) => S.stopPropagation(), children: o }),
|
|
1372
|
+
/* @__PURE__ */ m(Gn, { align: "center", className: "text-sm", children: [
|
|
1372
1373
|
u(de.ADD_PAGE) && !l && /* @__PURE__ */ m(
|
|
1373
1374
|
fe,
|
|
1374
1375
|
{
|
|
@@ -1377,7 +1378,7 @@ const Yi = ({
|
|
|
1377
1378
|
S.stopPropagation(), t(e);
|
|
1378
1379
|
},
|
|
1379
1380
|
children: [
|
|
1380
|
-
/* @__PURE__ */ c(
|
|
1381
|
+
/* @__PURE__ */ c(Ha, { className: "size-3" }),
|
|
1381
1382
|
"Duplicate page"
|
|
1382
1383
|
]
|
|
1383
1384
|
}
|
|
@@ -1393,7 +1394,7 @@ const Yi = ({
|
|
|
1393
1394
|
});
|
|
1394
1395
|
},
|
|
1395
1396
|
children: [
|
|
1396
|
-
/* @__PURE__ */ c(
|
|
1397
|
+
/* @__PURE__ */ c(qa, { className: "size-3" }),
|
|
1397
1398
|
"Edit"
|
|
1398
1399
|
]
|
|
1399
1400
|
}
|
|
@@ -1406,7 +1407,7 @@ const Yi = ({
|
|
|
1406
1407
|
S.stopPropagation(), s(e);
|
|
1407
1408
|
},
|
|
1408
1409
|
children: [
|
|
1409
|
-
/* @__PURE__ */ c(
|
|
1410
|
+
/* @__PURE__ */ c($a, { className: "size-3" }),
|
|
1410
1411
|
d("Unpublish")
|
|
1411
1412
|
]
|
|
1412
1413
|
}
|
|
@@ -1419,7 +1420,7 @@ const Yi = ({
|
|
|
1419
1420
|
S.stopPropagation(), r(e);
|
|
1420
1421
|
},
|
|
1421
1422
|
children: [
|
|
1422
|
-
/* @__PURE__ */ c(
|
|
1423
|
+
/* @__PURE__ */ c(Qa, { className: "size-3" }),
|
|
1423
1424
|
d("Delete")
|
|
1424
1425
|
]
|
|
1425
1426
|
}
|
|
@@ -1432,7 +1433,7 @@ const Yi = ({
|
|
|
1432
1433
|
S.stopPropagation(), i(e);
|
|
1433
1434
|
},
|
|
1434
1435
|
children: [
|
|
1435
|
-
/* @__PURE__ */ c(
|
|
1436
|
+
/* @__PURE__ */ c(Xn, { className: "size-3" }),
|
|
1436
1437
|
d("Unmark as template")
|
|
1437
1438
|
]
|
|
1438
1439
|
}
|
|
@@ -1444,15 +1445,15 @@ const Yi = ({
|
|
|
1444
1445
|
S.stopPropagation(), a(e);
|
|
1445
1446
|
},
|
|
1446
1447
|
children: [
|
|
1447
|
-
/* @__PURE__ */ c(
|
|
1448
|
+
/* @__PURE__ */ c(Xn, { className: "size-3" }),
|
|
1448
1449
|
d("Mark as template")
|
|
1449
1450
|
]
|
|
1450
1451
|
}
|
|
1451
1452
|
) })
|
|
1452
1453
|
] })
|
|
1453
1454
|
] });
|
|
1454
|
-
},
|
|
1455
|
-
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, d] = K(null), [u, f] = K(null), { data: g, isFetching: h } = Ne(), { selectedLang: p, fallbackLang: T } = _e(), { data: S } = Me(), D = S == null ? void 0 : S.find((b) => b.lang === p), { isLocked: y } = pe(), w = !(g != null && g.slug), [, v] = ie(
|
|
1455
|
+
}, Xi = V(() => import("./add-new-page-BjxHUGIo.js")), eo = V(() => import("./delete-page-CvSN4E4V.js")), to = V(() => import("./duplicate-page-BFnuk1nL.js")), no = V(() => import("./mark-as-template-1TuznHtx.js")), so = V(() => import("./unmark-as-template-DbXx3l6p.js")), ro = V(() => import("./unpublish-page-BKQqPk_e.js")), ao = () => {
|
|
1456
|
+
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, d] = K(null), [u, f] = K(null), { data: g, isFetching: h } = Ne(), { selectedLang: p, fallbackLang: T } = _e(), { data: S } = Me(), D = S == null ? void 0 : S.find((b) => b.lang === p), { isLocked: y } = pe(), w = !(g != null && g.slug), [, v] = ie(xn);
|
|
1456
1457
|
if (!g) return null;
|
|
1457
1458
|
const U = (b) => {
|
|
1458
1459
|
p.length > 0 && p !== T ? v({
|
|
@@ -1463,13 +1464,13 @@ const Yi = ({
|
|
|
1463
1464
|
};
|
|
1464
1465
|
return /* @__PURE__ */ m(ge, { children: [
|
|
1465
1466
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
|
|
1466
|
-
/* @__PURE__ */ c(
|
|
1467
|
+
/* @__PURE__ */ c(Ks, { children: /* @__PURE__ */ c(
|
|
1467
1468
|
M,
|
|
1468
1469
|
{
|
|
1469
1470
|
className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
|
|
1470
1471
|
variant: "ghost",
|
|
1471
1472
|
children: h ? /* @__PURE__ */ c(Ht, { 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: [
|
|
1472
|
-
w ? /* @__PURE__ */ c(
|
|
1473
|
+
w ? /* @__PURE__ */ c(za, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(ja, { className: "mr-1 h-4 w-4" }),
|
|
1473
1474
|
H(D || g, "name") ?? ""
|
|
1474
1475
|
] })
|
|
1475
1476
|
}
|
|
@@ -1480,10 +1481,10 @@ const Yi = ({
|
|
|
1480
1481
|
variant: "ghost",
|
|
1481
1482
|
size: "icon",
|
|
1482
1483
|
className: "h-7 w-7 cursor-not-allowed rounded opacity-50 hover:bg-transparent",
|
|
1483
|
-
children: /* @__PURE__ */ c(
|
|
1484
|
+
children: /* @__PURE__ */ c(es, { className: "h-4 w-4" })
|
|
1484
1485
|
}
|
|
1485
1486
|
) : /* @__PURE__ */ c(
|
|
1486
|
-
|
|
1487
|
+
Zi,
|
|
1487
1488
|
{
|
|
1488
1489
|
page: g,
|
|
1489
1490
|
setDuplicatePage: (b) => d(b),
|
|
@@ -1493,12 +1494,12 @@ const Yi = ({
|
|
|
1493
1494
|
setMarkAsTemplate: (b) => a(b),
|
|
1494
1495
|
setUnmarkAsTemplate: (b) => o(b),
|
|
1495
1496
|
isLanguagePage: p.length > 0 && p !== T,
|
|
1496
|
-
children: /* @__PURE__ */ c(M, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ c(
|
|
1497
|
+
children: /* @__PURE__ */ c(M, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ c(es, { className: "h-4 w-4" }) })
|
|
1497
1498
|
}
|
|
1498
1499
|
)
|
|
1499
1500
|
] }),
|
|
1500
1501
|
u && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1501
|
-
|
|
1502
|
+
Xi,
|
|
1502
1503
|
{
|
|
1503
1504
|
closePanel: () => f(null),
|
|
1504
1505
|
editPage: () => {
|
|
@@ -1507,12 +1508,12 @@ const Yi = ({
|
|
|
1507
1508
|
setAddEditPage: f
|
|
1508
1509
|
}
|
|
1509
1510
|
) }),
|
|
1510
|
-
e && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1511
|
-
n && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1512
|
-
r && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1513
|
-
i && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1511
|
+
e && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(eo, { page: e, onClose: () => t(null) }) }),
|
|
1512
|
+
n && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(ro, { page: n, onClose: () => s(null) }) }),
|
|
1513
|
+
r && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(no, { page: r, onClose: () => a(null) }) }),
|
|
1514
|
+
i && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(so, { page: i, onClose: () => o(null) }) }),
|
|
1514
1515
|
l && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1515
|
-
|
|
1516
|
+
to,
|
|
1516
1517
|
{
|
|
1517
1518
|
page: l,
|
|
1518
1519
|
onClose: () => d(null),
|
|
@@ -1520,7 +1521,7 @@ const Yi = ({
|
|
|
1520
1521
|
}
|
|
1521
1522
|
) })
|
|
1522
1523
|
] });
|
|
1523
|
-
},
|
|
1524
|
+
}, Hs = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(
|
|
1524
1525
|
"div",
|
|
1525
1526
|
{
|
|
1526
1527
|
className: Vt(
|
|
@@ -1529,17 +1530,17 @@ const Yi = ({
|
|
|
1529
1530
|
),
|
|
1530
1531
|
children: e
|
|
1531
1532
|
}
|
|
1532
|
-
),
|
|
1533
|
+
), io = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Hs, { 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: [
|
|
1533
1534
|
/* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
1534
1535
|
/* @__PURE__ */ c("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" })
|
|
1535
|
-
] }) }),
|
|
1536
|
-
const { dynamicPage: e, allLangPages: t, isFetching: n } =
|
|
1536
|
+
] }) }), oo = V(() => import("./dynamic-page-selector-CSTuQhej.js")), lo = () => {
|
|
1537
|
+
const { dynamicPage: e, allLangPages: t, isFetching: n } = di(), s = t.length > 0;
|
|
1537
1538
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1538
|
-
!e && /* @__PURE__ */ c(
|
|
1539
|
-
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1539
|
+
!e && /* @__PURE__ */ c(io, { hasDynamicPage: s }),
|
|
1540
|
+
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(oo, {}) })
|
|
1540
1541
|
] });
|
|
1541
|
-
},
|
|
1542
|
-
const { data: e, isFetching: t } = Ne(), { data: n, isFetching: s } = ce(), r = H(n, "dynamic", !1), a =
|
|
1542
|
+
}, co = () => {
|
|
1543
|
+
const { data: e, isFetching: t } = Ne(), { data: n, isFetching: s } = ce(), r = H(n, "dynamic", !1), a = Dn(), i = ta("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, d = mi(), u = t || s, g = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
|
|
1543
1544
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center gap-x-1", children: [
|
|
1544
1545
|
/* @__PURE__ */ c(
|
|
1545
1546
|
"div",
|
|
@@ -1548,7 +1549,7 @@ const Yi = ({
|
|
|
1548
1549
|
"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",
|
|
1549
1550
|
u && "max-w-0 overflow-hidden opacity-0"
|
|
1550
1551
|
),
|
|
1551
|
-
children: /* @__PURE__ */ c(
|
|
1552
|
+
children: /* @__PURE__ */ c(ao, {})
|
|
1552
1553
|
}
|
|
1553
1554
|
),
|
|
1554
1555
|
/* @__PURE__ */ m(
|
|
@@ -1559,7 +1560,7 @@ const Yi = ({
|
|
|
1559
1560
|
u && "max-w-0 overflow-hidden opacity-0"
|
|
1560
1561
|
),
|
|
1561
1562
|
children: [
|
|
1562
|
-
/* @__PURE__ */ c(
|
|
1563
|
+
/* @__PURE__ */ c(Gi, {}),
|
|
1563
1564
|
/* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
|
|
1564
1565
|
/* @__PURE__ */ c(
|
|
1565
1566
|
"div",
|
|
@@ -1571,18 +1572,18 @@ const Yi = ({
|
|
|
1571
1572
|
] }) : g
|
|
1572
1573
|
}
|
|
1573
1574
|
),
|
|
1574
|
-
!l && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("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__ */ c(
|
|
1575
|
+
!l && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("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__ */ c(Wa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
|
|
1575
1576
|
] })
|
|
1576
1577
|
]
|
|
1577
1578
|
}
|
|
1578
1579
|
),
|
|
1579
|
-
r && i && /* @__PURE__ */ c(
|
|
1580
|
+
r && i && /* @__PURE__ */ c(lo, {})
|
|
1580
1581
|
] });
|
|
1581
|
-
},
|
|
1582
|
-
/* @__PURE__ */ c(
|
|
1583
|
-
/* @__PURE__ */ c(
|
|
1584
|
-
/* @__PURE__ */ c(
|
|
1585
|
-
] }),
|
|
1582
|
+
}, uo = () => /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-between px-2", children: [
|
|
1583
|
+
/* @__PURE__ */ c(Oi, {}),
|
|
1584
|
+
/* @__PURE__ */ c(co, {}),
|
|
1585
|
+
/* @__PURE__ */ c(Ji, {})
|
|
1586
|
+
] }), qs = () => {
|
|
1586
1587
|
const e = J(), { data: t } = oe({
|
|
1587
1588
|
queryKey: [E.AI_CONTEXT],
|
|
1588
1589
|
initialData: "",
|
|
@@ -1595,8 +1596,8 @@ const Yi = ({
|
|
|
1595
1596
|
},
|
|
1596
1597
|
[e]
|
|
1597
1598
|
), aiContext: t };
|
|
1598
|
-
},
|
|
1599
|
-
const e = C(), { aiContext: t } =
|
|
1599
|
+
}, fo = () => {
|
|
1600
|
+
const e = C(), { aiContext: t } = qs(), n = L();
|
|
1600
1601
|
return z(
|
|
1601
1602
|
async (s, r, a, i) => n(e, {
|
|
1602
1603
|
action: E.ASK_AI,
|
|
@@ -1604,36 +1605,36 @@ const Yi = ({
|
|
|
1604
1605
|
}),
|
|
1605
1606
|
[e, t, n]
|
|
1606
1607
|
);
|
|
1607
|
-
},
|
|
1608
|
+
}, ho = (e, t) => t.map((n) => {
|
|
1608
1609
|
if (Yt(e, n._type)) {
|
|
1609
|
-
const s =
|
|
1610
|
+
const s = ai(n._type);
|
|
1610
1611
|
return {
|
|
1611
1612
|
...s,
|
|
1612
|
-
...
|
|
1613
|
-
...
|
|
1613
|
+
...Ln(n, [
|
|
1614
|
+
...Kr(s),
|
|
1614
1615
|
"_type",
|
|
1615
1616
|
"_id",
|
|
1616
1617
|
"_name",
|
|
1617
1618
|
"_parent",
|
|
1618
1619
|
"_bindings"
|
|
1619
1620
|
]),
|
|
1620
|
-
...
|
|
1621
|
+
...Vr(n, (r, a) => Hr(a, "_attrs")),
|
|
1621
1622
|
...n
|
|
1622
1623
|
};
|
|
1623
1624
|
}
|
|
1624
1625
|
return n;
|
|
1625
|
-
}),
|
|
1626
|
-
const t =
|
|
1626
|
+
}), go = (e) => {
|
|
1627
|
+
const t = ri();
|
|
1627
1628
|
return q(() => {
|
|
1628
1629
|
if (!e || Te(e)) return { blocks: [] };
|
|
1629
|
-
const n =
|
|
1630
|
+
const n = Ps(
|
|
1630
1631
|
e,
|
|
1631
|
-
(s) => !
|
|
1632
|
+
(s) => !Fr(s == null ? void 0 : s._type, "@chai/")
|
|
1632
1633
|
);
|
|
1633
|
-
return { blocks:
|
|
1634
|
+
return { blocks: ho(t, n) };
|
|
1634
1635
|
}, [e, t]);
|
|
1635
|
-
},
|
|
1636
|
-
const [e] = we(), t = e.get("page"), n = C(), { setAiContext: s } =
|
|
1636
|
+
}, mo = () => {
|
|
1637
|
+
const [e] = we(), t = e.get("page"), n = C(), { setAiContext: s } = qs(), [, r] = Rs(), [, a] = gi(), [, i] = na(), o = L();
|
|
1637
1638
|
return oe({
|
|
1638
1639
|
queryKey: [E.GET_DRAFT_PAGE, t],
|
|
1639
1640
|
staleTime: 1 / 0,
|
|
@@ -1648,8 +1649,8 @@ const Yi = ({
|
|
|
1648
1649
|
},
|
|
1649
1650
|
enabled: !!t
|
|
1650
1651
|
});
|
|
1651
|
-
},
|
|
1652
|
-
const { data: e } = ce(), { data: t } = Ne(), n = C(), s = L(), r =
|
|
1652
|
+
}, Eo = () => {
|
|
1653
|
+
const { data: e } = ce(), { data: t } = Ne(), n = C(), s = L(), r = Un(), a = Dn();
|
|
1653
1654
|
return oe({
|
|
1654
1655
|
queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
|
|
1655
1656
|
staleTime: 1 / 0,
|
|
@@ -1678,7 +1679,7 @@ const Yi = ({
|
|
|
1678
1679
|
}),
|
|
1679
1680
|
enabled: !!(e != null && e.pageType) && !!t.id
|
|
1680
1681
|
});
|
|
1681
|
-
},
|
|
1682
|
+
}, po = () => {
|
|
1682
1683
|
const e = C(), t = J(), n = L();
|
|
1683
1684
|
return Y({
|
|
1684
1685
|
mutationFn: async (s) => n(e, {
|
|
@@ -1697,7 +1698,7 @@ const Yi = ({
|
|
|
1697
1698
|
});
|
|
1698
1699
|
}
|
|
1699
1700
|
});
|
|
1700
|
-
},
|
|
1701
|
+
}, eu = () => {
|
|
1701
1702
|
const e = C(), t = J(), n = L(), { selectedLang: s } = _e();
|
|
1702
1703
|
return Y({
|
|
1703
1704
|
mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
@@ -1712,7 +1713,7 @@ const Yi = ({
|
|
|
1712
1713
|
});
|
|
1713
1714
|
}
|
|
1714
1715
|
});
|
|
1715
|
-
},
|
|
1716
|
+
}, tu = () => {
|
|
1716
1717
|
const e = C(), t = J(), n = L(), { selectedLang: s } = _e();
|
|
1717
1718
|
return Y({
|
|
1718
1719
|
mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
@@ -1727,7 +1728,7 @@ const Yi = ({
|
|
|
1727
1728
|
});
|
|
1728
1729
|
}
|
|
1729
1730
|
});
|
|
1730
|
-
},
|
|
1731
|
+
}, nu = () => {
|
|
1731
1732
|
const e = C(), t = J(), n = L();
|
|
1732
1733
|
return Y({
|
|
1733
1734
|
mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
|
|
@@ -1742,7 +1743,7 @@ const Yi = ({
|
|
|
1742
1743
|
});
|
|
1743
1744
|
}
|
|
1744
1745
|
});
|
|
1745
|
-
},
|
|
1746
|
+
}, su = () => {
|
|
1746
1747
|
const e = C(), t = L();
|
|
1747
1748
|
return Y({
|
|
1748
1749
|
mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
@@ -1752,7 +1753,7 @@ const Yi = ({
|
|
|
1752
1753
|
});
|
|
1753
1754
|
}
|
|
1754
1755
|
});
|
|
1755
|
-
},
|
|
1756
|
+
}, ru = () => {
|
|
1756
1757
|
const e = C(), t = L();
|
|
1757
1758
|
return Y({
|
|
1758
1759
|
mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
@@ -1765,7 +1766,7 @@ const Yi = ({
|
|
|
1765
1766
|
});
|
|
1766
1767
|
}
|
|
1767
1768
|
});
|
|
1768
|
-
},
|
|
1769
|
+
}, au = () => {
|
|
1769
1770
|
const e = C(), t = L();
|
|
1770
1771
|
return Y({
|
|
1771
1772
|
mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
@@ -1778,13 +1779,13 @@ const Yi = ({
|
|
|
1778
1779
|
});
|
|
1779
1780
|
}
|
|
1780
1781
|
});
|
|
1781
|
-
},
|
|
1782
|
+
}, ss = {
|
|
1782
1783
|
async getUILibraryBlock(e, t, n) {
|
|
1783
1784
|
const s = await t(n, {
|
|
1784
1785
|
action: "GET_LIBRARY_ITEM",
|
|
1785
1786
|
data: { id: e.id }
|
|
1786
1787
|
}), r = H(s, "html", ""), a = H(s, "blocks", []);
|
|
1787
|
-
return
|
|
1788
|
+
return qr(a) ? a : ra(r);
|
|
1788
1789
|
},
|
|
1789
1790
|
async getUILibraryBlocks(e, t, n) {
|
|
1790
1791
|
try {
|
|
@@ -1798,7 +1799,7 @@ const Yi = ({
|
|
|
1798
1799
|
return console.error(s), [];
|
|
1799
1800
|
}
|
|
1800
1801
|
}
|
|
1801
|
-
},
|
|
1802
|
+
}, yo = () => {
|
|
1802
1803
|
const e = C(), t = L();
|
|
1803
1804
|
return oe({
|
|
1804
1805
|
queryKey: ["uiLibraries"],
|
|
@@ -1808,17 +1809,17 @@ const Yi = ({
|
|
|
1808
1809
|
...r
|
|
1809
1810
|
}));
|
|
1810
1811
|
return s.forEach((r) => {
|
|
1811
|
-
|
|
1812
|
+
sa(r.id, {
|
|
1812
1813
|
name: r.isSiteLibrary ? r.name + " (Current Site) " : r.name,
|
|
1813
1814
|
description: r.description,
|
|
1814
|
-
getBlocksList: (a) =>
|
|
1815
|
-
getBlock: ({ block: a }) =>
|
|
1815
|
+
getBlocksList: (a) => ss.getUILibraryBlocks(a, t, e),
|
|
1816
|
+
getBlock: ({ block: a }) => ss.getUILibraryBlock(a, t, e)
|
|
1816
1817
|
});
|
|
1817
1818
|
}), s;
|
|
1818
1819
|
}
|
|
1819
1820
|
});
|
|
1820
|
-
},
|
|
1821
|
-
const e =
|
|
1821
|
+
}, Ao = () => {
|
|
1822
|
+
const e = Gs(), t = L(), { user: n } = Rn(), s = n == null ? void 0 : n.id;
|
|
1822
1823
|
return oe({
|
|
1823
1824
|
queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
|
|
1824
1825
|
queryFn: () => t(e, {
|
|
@@ -1828,8 +1829,8 @@ const Yi = ({
|
|
|
1828
1829
|
enabled: !!s,
|
|
1829
1830
|
staleTime: 1 / 0
|
|
1830
1831
|
});
|
|
1831
|
-
},
|
|
1832
|
-
const e = C(), t = L(), [, n] =
|
|
1832
|
+
}, To = () => {
|
|
1833
|
+
const e = C(), t = L(), [, n] = Rs();
|
|
1833
1834
|
return { onSave: async ({
|
|
1834
1835
|
page: r,
|
|
1835
1836
|
blocks: a,
|
|
@@ -1848,15 +1849,15 @@ const Yi = ({
|
|
|
1848
1849
|
return console.error(o), new Error("Failed to save blocks");
|
|
1849
1850
|
}
|
|
1850
1851
|
} };
|
|
1851
|
-
},
|
|
1852
|
-
const { data: e } =
|
|
1852
|
+
}, So = () => {
|
|
1853
|
+
const { data: e } = Fs(), t = C(), n = L();
|
|
1853
1854
|
return {
|
|
1854
1855
|
getPartialBlocks: z(async () => {
|
|
1855
1856
|
const s = {};
|
|
1856
1857
|
for (const r of e ?? [])
|
|
1857
1858
|
Te(r == null ? void 0 : r.slug) && (s[r.id] = {
|
|
1858
1859
|
type: r.pageType,
|
|
1859
|
-
name:
|
|
1860
|
+
name: $r(r.name ?? r.slug),
|
|
1860
1861
|
description: ""
|
|
1861
1862
|
});
|
|
1862
1863
|
return s;
|
|
@@ -1869,7 +1870,7 @@ const Yi = ({
|
|
|
1869
1870
|
action: "GET_DRAFT_PAGE",
|
|
1870
1871
|
data: { id: s, draft: !0, editor: !1 }
|
|
1871
1872
|
});
|
|
1872
|
-
return
|
|
1873
|
+
return Ps(r.blocks, (a) => Yt(a, "_id"));
|
|
1873
1874
|
} catch (r) {
|
|
1874
1875
|
return console.error(r), [];
|
|
1875
1876
|
}
|
|
@@ -1877,7 +1878,7 @@ const Yi = ({
|
|
|
1877
1878
|
[n, t]
|
|
1878
1879
|
)
|
|
1879
1880
|
};
|
|
1880
|
-
},
|
|
1881
|
+
}, _o = V(() => import("./ai-panel-content-CMfopU0G.js").then((e) => e.b)), $s = "chai-chat-panel", Po = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
|
|
1881
1882
|
/* @__PURE__ */ c("title", { children: "ai" }),
|
|
1882
1883
|
/* @__PURE__ */ c("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ c("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ c(
|
|
1883
1884
|
"path",
|
|
@@ -1886,25 +1887,25 @@ const Yi = ({
|
|
|
1886
1887
|
id: "Combined-Shape"
|
|
1887
1888
|
}
|
|
1888
1889
|
) }) })
|
|
1889
|
-
] }),
|
|
1890
|
-
id:
|
|
1890
|
+
] }), wo = ({ isActive: e, show: t }) => /* @__PURE__ */ c(M, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Po, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }), vo = {
|
|
1891
|
+
id: $s,
|
|
1891
1892
|
label: "AI Assistant",
|
|
1892
|
-
button:
|
|
1893
|
-
panel:
|
|
1893
|
+
button: wo,
|
|
1894
|
+
panel: _o,
|
|
1894
1895
|
position: "top"
|
|
1895
|
-
},
|
|
1896
|
+
}, bo = V(() => import("./lang-panel-Cj0axCpE.js")), Io = ({ isActive: e, show: t }) => {
|
|
1896
1897
|
const { data: n } = Be();
|
|
1897
|
-
return !Yt(n, "languages") || !H(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(
|
|
1898
|
-
},
|
|
1899
|
-
id:
|
|
1898
|
+
return !Yt(n, "languages") || !H(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Ya, { className: "h-4 w-4" }) });
|
|
1899
|
+
}, Qs = "lang", Lo = {
|
|
1900
|
+
id: Qs,
|
|
1900
1901
|
label: "Languages",
|
|
1901
1902
|
position: "top",
|
|
1902
|
-
panel:
|
|
1903
|
-
button:
|
|
1903
|
+
panel: bo,
|
|
1904
|
+
button: Io,
|
|
1904
1905
|
view: "modal",
|
|
1905
1906
|
width: 400
|
|
1906
|
-
},
|
|
1907
|
-
const { data: n } = ce(), s =
|
|
1907
|
+
}, No = V(() => import("./seo-panel-C-dqg-1A.js")), zs = "seo", Co = ({ isActive: e, show: t }) => {
|
|
1908
|
+
const { data: n } = ce(), s = Ui(n == null ? void 0 : n.pageType);
|
|
1908
1909
|
return !Yt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(M, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
1909
1910
|
"svg",
|
|
1910
1911
|
{
|
|
@@ -1923,35 +1924,35 @@ const Yi = ({
|
|
|
1923
1924
|
]
|
|
1924
1925
|
}
|
|
1925
1926
|
) });
|
|
1926
|
-
},
|
|
1927
|
-
id:
|
|
1927
|
+
}, Go = {
|
|
1928
|
+
id: zs,
|
|
1928
1929
|
label: "SEO",
|
|
1929
|
-
panel:
|
|
1930
|
-
button:
|
|
1930
|
+
panel: No,
|
|
1931
|
+
button: Co,
|
|
1931
1932
|
position: "top",
|
|
1932
1933
|
width: 600,
|
|
1933
1934
|
view: "modal"
|
|
1934
|
-
},
|
|
1935
|
-
const { t: e } = Pe(), { user: t, logout: n } =
|
|
1936
|
-
return t ? /* @__PURE__ */ m(
|
|
1937
|
-
/* @__PURE__ */ c(
|
|
1938
|
-
/* @__PURE__ */ m(
|
|
1935
|
+
}, js = "user-info", Oo = () => {
|
|
1936
|
+
const { t: e } = Pe(), { user: t, logout: n } = Rn(), s = le("onLogout", ys);
|
|
1937
|
+
return t ? /* @__PURE__ */ m(ga, { children: [
|
|
1938
|
+
/* @__PURE__ */ c(ma, { asChild: !0, children: /* @__PURE__ */ c(M, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(Ja, { className: "h-4 w-4" }) }) }),
|
|
1939
|
+
/* @__PURE__ */ m(Ea, { className: "w-auto space-y-2 p-4", children: [
|
|
1939
1940
|
/* @__PURE__ */ c("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
|
|
1940
1941
|
/* @__PURE__ */ c("div", { className: "text-xs text-muted-foreground", children: t.email }),
|
|
1941
|
-
/* @__PURE__ */ m(
|
|
1942
|
-
/* @__PURE__ */ c(
|
|
1943
|
-
/* @__PURE__ */ m(
|
|
1944
|
-
/* @__PURE__ */ m(
|
|
1945
|
-
/* @__PURE__ */ c(
|
|
1946
|
-
/* @__PURE__ */ c(
|
|
1942
|
+
/* @__PURE__ */ m(pa, { children: [
|
|
1943
|
+
/* @__PURE__ */ c(ya, { asChild: !0, children: /* @__PURE__ */ c(M, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
|
|
1944
|
+
/* @__PURE__ */ m(Aa, { children: [
|
|
1945
|
+
/* @__PURE__ */ m(Ta, { children: [
|
|
1946
|
+
/* @__PURE__ */ c(Sa, { children: e("Are you sure you want to logout?") }),
|
|
1947
|
+
/* @__PURE__ */ c(_a, { children: e("You will be redirected to the login page.") })
|
|
1947
1948
|
] }),
|
|
1948
|
-
/* @__PURE__ */ m(
|
|
1949
|
-
/* @__PURE__ */ c(
|
|
1949
|
+
/* @__PURE__ */ m(Pa, { children: [
|
|
1950
|
+
/* @__PURE__ */ c(wa, { children: e("Cancel") }),
|
|
1950
1951
|
/* @__PURE__ */ c(
|
|
1951
|
-
|
|
1952
|
+
va,
|
|
1952
1953
|
{
|
|
1953
1954
|
onClick: () => {
|
|
1954
|
-
n(),
|
|
1955
|
+
n(), Qr(s) && s();
|
|
1955
1956
|
},
|
|
1956
1957
|
children: e("Logout")
|
|
1957
1958
|
}
|
|
@@ -1961,13 +1962,13 @@ const Yi = ({
|
|
|
1961
1962
|
] })
|
|
1962
1963
|
] })
|
|
1963
1964
|
] }) : null;
|
|
1964
|
-
},
|
|
1965
|
-
id:
|
|
1965
|
+
}, Do = {
|
|
1966
|
+
id: js,
|
|
1966
1967
|
label: "User Info",
|
|
1967
|
-
button:
|
|
1968
|
+
button: Oo,
|
|
1968
1969
|
position: "bottom"
|
|
1969
|
-
},
|
|
1970
|
-
Gt(
|
|
1970
|
+
}, xo = () => {
|
|
1971
|
+
Gt(zs, Go), Gt(Qs, Lo), Gt(js, Do), (localStorage.getItem("chai-feature-flags") ?? "").includes("enable-ai-chat-panel") && Gt($s, vo);
|
|
1971
1972
|
};
|
|
1972
1973
|
var _ = {
|
|
1973
1974
|
context: void 0,
|
|
@@ -1975,29 +1976,29 @@ var _ = {
|
|
|
1975
1976
|
effects: void 0,
|
|
1976
1977
|
done: !1,
|
|
1977
1978
|
getContextId() {
|
|
1978
|
-
return
|
|
1979
|
+
return rs(this.context.count);
|
|
1979
1980
|
},
|
|
1980
1981
|
getNextContextId() {
|
|
1981
|
-
return
|
|
1982
|
+
return rs(this.context.count++);
|
|
1982
1983
|
}
|
|
1983
1984
|
};
|
|
1984
|
-
function
|
|
1985
|
+
function rs(e) {
|
|
1985
1986
|
const t = String(e), n = t.length - 1;
|
|
1986
1987
|
return _.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
|
|
1987
1988
|
}
|
|
1988
1989
|
function lt(e) {
|
|
1989
1990
|
_.context = e;
|
|
1990
1991
|
}
|
|
1991
|
-
var
|
|
1992
|
-
equals:
|
|
1993
|
-
},
|
|
1992
|
+
var Ws = !1, Ro = (e, t) => e === t, qt = Symbol("solid-proxy"), Ys = typeof Proxy == "function", Js = Symbol("solid-track"), $t = {
|
|
1993
|
+
equals: Ro
|
|
1994
|
+
}, Zs = ar, ve = 1, Qt = 2, Xs = {
|
|
1994
1995
|
owned: null,
|
|
1995
1996
|
cleanups: null,
|
|
1996
1997
|
context: null,
|
|
1997
1998
|
owner: null
|
|
1998
|
-
},
|
|
1999
|
+
}, fn = {}, N = null, hn = null, ko = null, x = null, ee = null, Se = null, tn = 0;
|
|
1999
2000
|
function xe(e, t) {
|
|
2000
|
-
const n = x, s = N, r = e.length === 0, a = t === void 0 ? s : t, i = r ?
|
|
2001
|
+
const n = x, s = N, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Xs : {
|
|
2001
2002
|
owned: null,
|
|
2002
2003
|
cleanups: null,
|
|
2003
2004
|
context: a ? a.context : null,
|
|
@@ -2017,10 +2018,10 @@ function F(e, t) {
|
|
|
2017
2018
|
observers: null,
|
|
2018
2019
|
observerSlots: null,
|
|
2019
2020
|
comparator: t.equals || void 0
|
|
2020
|
-
}, s = (r) => (typeof r == "function" && (r = r(n.value)),
|
|
2021
|
-
return [
|
|
2021
|
+
}, s = (r) => (typeof r == "function" && (r = r(n.value)), rr(n, r));
|
|
2022
|
+
return [sr.bind(n), s];
|
|
2022
2023
|
}
|
|
2023
|
-
function
|
|
2024
|
+
function Uo(e, t, n) {
|
|
2024
2025
|
const s = nn(e, t, !0, ve);
|
|
2025
2026
|
at(s);
|
|
2026
2027
|
}
|
|
@@ -2028,23 +2029,23 @@ function Re(e, t, n) {
|
|
|
2028
2029
|
const s = nn(e, t, !1, ve);
|
|
2029
2030
|
at(s);
|
|
2030
2031
|
}
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2032
|
+
function er(e, t, n) {
|
|
2033
|
+
Zs = Qo;
|
|
2033
2034
|
const s = nn(e, t, !1, ve);
|
|
2034
2035
|
(!n || !n.render) && (s.user = !0), Se ? Se.push(s) : at(s);
|
|
2035
2036
|
}
|
|
2036
2037
|
function W(e, t, n) {
|
|
2037
2038
|
n = n ? Object.assign({}, $t, n) : $t;
|
|
2038
2039
|
const s = nn(e, t, !0, 0);
|
|
2039
|
-
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, at(s),
|
|
2040
|
+
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, at(s), sr.bind(s);
|
|
2040
2041
|
}
|
|
2041
|
-
function
|
|
2042
|
+
function Mo(e) {
|
|
2042
2043
|
return e && typeof e == "object" && "then" in e;
|
|
2043
2044
|
}
|
|
2044
|
-
function
|
|
2045
|
+
function Bo(e, t, n) {
|
|
2045
2046
|
let s, r, a;
|
|
2046
2047
|
s = !0, r = e, a = {};
|
|
2047
|
-
let i = null, o =
|
|
2048
|
+
let i = null, o = fn, l = null, d = !1, u = "initialValue" in a, f = typeof s == "function" && W(s);
|
|
2048
2049
|
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || F)(a.initialValue), [T, S] = F(void 0), [D, y] = F(void 0, {
|
|
2049
2050
|
equals: !1
|
|
2050
2051
|
}), [w, v] = F(u ? "ready" : "unresolved");
|
|
@@ -2052,7 +2053,7 @@ function Uo(e, t, n) {
|
|
|
2052
2053
|
function U(P, I, j, $) {
|
|
2053
2054
|
return i === P && (i = null, $ !== void 0 && (u = !0), (P === o || I === o) && a.onHydrated && queueMicrotask(() => a.onHydrated($, {
|
|
2054
2055
|
value: I
|
|
2055
|
-
})), o =
|
|
2056
|
+
})), o = fn, b(I, j)), I;
|
|
2056
2057
|
}
|
|
2057
2058
|
function b(P, I) {
|
|
2058
2059
|
me(() => {
|
|
@@ -2062,7 +2063,7 @@ function Uo(e, t, n) {
|
|
|
2062
2063
|
}, !1);
|
|
2063
2064
|
}
|
|
2064
2065
|
function ye() {
|
|
2065
|
-
const P =
|
|
2066
|
+
const P = Ho, I = h(), j = T();
|
|
2066
2067
|
if (j !== void 0 && !i) throw j;
|
|
2067
2068
|
return x && x.user, I;
|
|
2068
2069
|
}
|
|
@@ -2075,7 +2076,7 @@ function Uo(e, t, n) {
|
|
|
2075
2076
|
return;
|
|
2076
2077
|
}
|
|
2077
2078
|
let j;
|
|
2078
|
-
const $ = o !==
|
|
2079
|
+
const $ = o !== fn ? o : Z(() => {
|
|
2079
2080
|
try {
|
|
2080
2081
|
return r(I, {
|
|
2081
2082
|
value: h(),
|
|
@@ -2088,7 +2089,7 @@ function Uo(e, t, n) {
|
|
|
2088
2089
|
if (j !== void 0) {
|
|
2089
2090
|
U(i, void 0, Bt(j), I);
|
|
2090
2091
|
return;
|
|
2091
|
-
} else if (!
|
|
2092
|
+
} else if (!Mo($))
|
|
2092
2093
|
return U(i, $, void 0, I), $;
|
|
2093
2094
|
return i = $, "v" in $ ? ($.s === 1 ? U(i, $.v, void 0, I) : U(i, void 0, Bt($.v), I), $) : (d = !0, queueMicrotask(() => d = !1), me(() => {
|
|
2094
2095
|
v(u ? "refreshing" : "pending"), y();
|
|
@@ -2117,12 +2118,12 @@ function Uo(e, t, n) {
|
|
|
2117
2118
|
}
|
|
2118
2119
|
});
|
|
2119
2120
|
let B = N;
|
|
2120
|
-
return f ?
|
|
2121
|
-
refetch: (P) =>
|
|
2121
|
+
return f ? Uo(() => (B = N, Ae(!1))) : Ae(!1), [ye, {
|
|
2122
|
+
refetch: (P) => tr(B, () => Ae(P)),
|
|
2122
2123
|
mutate: p
|
|
2123
2124
|
}];
|
|
2124
2125
|
}
|
|
2125
|
-
function
|
|
2126
|
+
function iu(e) {
|
|
2126
2127
|
return me(e, !1);
|
|
2127
2128
|
}
|
|
2128
2129
|
function Z(e) {
|
|
@@ -2135,7 +2136,7 @@ function Z(e) {
|
|
|
2135
2136
|
x = t;
|
|
2136
2137
|
}
|
|
2137
2138
|
}
|
|
2138
|
-
function
|
|
2139
|
+
function ou(e, t, n) {
|
|
2139
2140
|
const s = Array.isArray(e);
|
|
2140
2141
|
let r, a = n && n.defer;
|
|
2141
2142
|
return (i) => {
|
|
@@ -2150,27 +2151,27 @@ function au(e, t, n) {
|
|
|
2150
2151
|
return r = o, l;
|
|
2151
2152
|
};
|
|
2152
2153
|
}
|
|
2153
|
-
function
|
|
2154
|
-
|
|
2154
|
+
function Fo(e) {
|
|
2155
|
+
er(() => Z(e));
|
|
2155
2156
|
}
|
|
2156
2157
|
function dt(e) {
|
|
2157
2158
|
return N === null || (N.cleanups === null ? N.cleanups = [e] : N.cleanups.push(e)), e;
|
|
2158
2159
|
}
|
|
2159
|
-
function
|
|
2160
|
+
function as() {
|
|
2160
2161
|
return N;
|
|
2161
2162
|
}
|
|
2162
|
-
function
|
|
2163
|
+
function tr(e, t) {
|
|
2163
2164
|
const n = N, s = x;
|
|
2164
2165
|
N = e, x = null;
|
|
2165
2166
|
try {
|
|
2166
2167
|
return me(t, !0);
|
|
2167
2168
|
} catch (r) {
|
|
2168
|
-
|
|
2169
|
+
Bn(r);
|
|
2169
2170
|
} finally {
|
|
2170
2171
|
N = n, x = s;
|
|
2171
2172
|
}
|
|
2172
2173
|
}
|
|
2173
|
-
function
|
|
2174
|
+
function Ko(e) {
|
|
2174
2175
|
const t = x, n = N;
|
|
2175
2176
|
return Promise.resolve().then(() => {
|
|
2176
2177
|
x = t, N = n;
|
|
@@ -2178,31 +2179,31 @@ function Bo(e) {
|
|
|
2178
2179
|
return me(e, !1), x = N = null, s ? s.done : void 0;
|
|
2179
2180
|
});
|
|
2180
2181
|
}
|
|
2181
|
-
var [
|
|
2182
|
-
function
|
|
2183
|
-
return [
|
|
2182
|
+
var [Vo, lu] = /* @__PURE__ */ F(!1);
|
|
2183
|
+
function cu() {
|
|
2184
|
+
return [Vo, Ko];
|
|
2184
2185
|
}
|
|
2185
|
-
function
|
|
2186
|
+
function uu(e, t) {
|
|
2186
2187
|
const n = Symbol("context");
|
|
2187
2188
|
return {
|
|
2188
2189
|
id: n,
|
|
2189
|
-
Provider:
|
|
2190
|
+
Provider: zo(n),
|
|
2190
2191
|
defaultValue: e
|
|
2191
2192
|
};
|
|
2192
2193
|
}
|
|
2193
|
-
function
|
|
2194
|
+
function du(e) {
|
|
2194
2195
|
let t;
|
|
2195
2196
|
return N && N.context && (t = N.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
2196
2197
|
}
|
|
2197
|
-
function
|
|
2198
|
-
const t = W(e), n = W(() =>
|
|
2198
|
+
function nr(e) {
|
|
2199
|
+
const t = W(e), n = W(() => yn(t()));
|
|
2199
2200
|
return n.toArray = () => {
|
|
2200
2201
|
const s = n();
|
|
2201
2202
|
return Array.isArray(s) ? s : s != null ? [s] : [];
|
|
2202
2203
|
}, n;
|
|
2203
2204
|
}
|
|
2204
|
-
var
|
|
2205
|
-
function
|
|
2205
|
+
var Ho;
|
|
2206
|
+
function sr() {
|
|
2206
2207
|
if (this.sources && this.state)
|
|
2207
2208
|
if (this.state === ve) at(this);
|
|
2208
2209
|
else {
|
|
@@ -2215,12 +2216,12 @@ function er() {
|
|
|
2215
2216
|
}
|
|
2216
2217
|
return this.value;
|
|
2217
2218
|
}
|
|
2218
|
-
function
|
|
2219
|
+
function rr(e, t, n) {
|
|
2219
2220
|
let s = e.value;
|
|
2220
2221
|
return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && me(() => {
|
|
2221
2222
|
for (let r = 0; r < e.observers.length; r += 1) {
|
|
2222
|
-
const a = e.observers[r], i =
|
|
2223
|
-
i &&
|
|
2223
|
+
const a = e.observers[r], i = hn && hn.running;
|
|
2224
|
+
i && hn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Se.push(a), a.observers && ir(a)), i || (a.state = ve);
|
|
2224
2225
|
}
|
|
2225
2226
|
if (ee.length > 1e6)
|
|
2226
2227
|
throw ee = [], new Error();
|
|
@@ -2230,20 +2231,20 @@ function at(e) {
|
|
|
2230
2231
|
if (!e.fn) return;
|
|
2231
2232
|
ft(e);
|
|
2232
2233
|
const t = tn;
|
|
2233
|
-
|
|
2234
|
+
qo(e, e.value, t);
|
|
2234
2235
|
}
|
|
2235
|
-
function
|
|
2236
|
+
function qo(e, t, n) {
|
|
2236
2237
|
let s;
|
|
2237
2238
|
const r = N, a = x;
|
|
2238
2239
|
x = N = e;
|
|
2239
2240
|
try {
|
|
2240
2241
|
s = e.fn(t);
|
|
2241
2242
|
} catch (i) {
|
|
2242
|
-
return e.pure && (e.state = ve, e.owned && e.owned.forEach(ft), e.owned = null), e.updatedAt = n + 1,
|
|
2243
|
+
return e.pure && (e.state = ve, e.owned && e.owned.forEach(ft), e.owned = null), e.updatedAt = n + 1, Bn(i);
|
|
2243
2244
|
} finally {
|
|
2244
2245
|
x = a, N = r;
|
|
2245
2246
|
}
|
|
2246
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
2247
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? rr(e, s) : e.value = s, e.updatedAt = n);
|
|
2247
2248
|
}
|
|
2248
2249
|
function nn(e, t, n, s = ve, r) {
|
|
2249
2250
|
const a = {
|
|
@@ -2259,7 +2260,7 @@ function nn(e, t, n, s = ve, r) {
|
|
|
2259
2260
|
context: N ? N.context : null,
|
|
2260
2261
|
pure: n
|
|
2261
2262
|
};
|
|
2262
|
-
return N === null || N !==
|
|
2263
|
+
return N === null || N !== Xs && (N.owned ? N.owned.push(a) : N.owned = [a]), a;
|
|
2263
2264
|
}
|
|
2264
2265
|
function zt(e) {
|
|
2265
2266
|
if (e.state === 0) return;
|
|
@@ -2282,20 +2283,20 @@ function me(e, t) {
|
|
|
2282
2283
|
t || (ee = []), Se ? n = !0 : Se = [], tn++;
|
|
2283
2284
|
try {
|
|
2284
2285
|
const s = e();
|
|
2285
|
-
return
|
|
2286
|
+
return $o(n), s;
|
|
2286
2287
|
} catch (s) {
|
|
2287
|
-
n || (Se = null), ee = null,
|
|
2288
|
+
n || (Se = null), ee = null, Bn(s);
|
|
2288
2289
|
}
|
|
2289
2290
|
}
|
|
2290
|
-
function
|
|
2291
|
-
if (ee && (
|
|
2291
|
+
function $o(e) {
|
|
2292
|
+
if (ee && (ar(ee), ee = null), e) return;
|
|
2292
2293
|
const t = Se;
|
|
2293
|
-
Se = null, t.length && me(() =>
|
|
2294
|
+
Se = null, t.length && me(() => Zs(t), !1);
|
|
2294
2295
|
}
|
|
2295
|
-
function
|
|
2296
|
+
function ar(e) {
|
|
2296
2297
|
for (let t = 0; t < e.length; t++) zt(e[t]);
|
|
2297
2298
|
}
|
|
2298
|
-
function
|
|
2299
|
+
function Qo(e) {
|
|
2299
2300
|
let t, n = 0;
|
|
2300
2301
|
for (t = 0; t < e.length; t++) {
|
|
2301
2302
|
const s = e[t];
|
|
@@ -2320,10 +2321,10 @@ function jt(e, t) {
|
|
|
2320
2321
|
}
|
|
2321
2322
|
}
|
|
2322
2323
|
}
|
|
2323
|
-
function
|
|
2324
|
+
function ir(e) {
|
|
2324
2325
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
2325
2326
|
const n = e.observers[t];
|
|
2326
|
-
n.state || (n.state = Qt, n.pure ? ee.push(n) : Se.push(n), n.observers &&
|
|
2327
|
+
n.state || (n.state = Qt, n.pure ? ee.push(n) : Se.push(n), n.observers && ir(n));
|
|
2327
2328
|
}
|
|
2328
2329
|
}
|
|
2329
2330
|
function ft(e) {
|
|
@@ -2355,42 +2356,42 @@ function Bt(e) {
|
|
|
2355
2356
|
cause: e
|
|
2356
2357
|
});
|
|
2357
2358
|
}
|
|
2358
|
-
function
|
|
2359
|
+
function Bn(e, t = N) {
|
|
2359
2360
|
throw Bt(e);
|
|
2360
2361
|
}
|
|
2361
|
-
function
|
|
2362
|
-
if (typeof e == "function" && !e.length) return
|
|
2362
|
+
function yn(e) {
|
|
2363
|
+
if (typeof e == "function" && !e.length) return yn(e());
|
|
2363
2364
|
if (Array.isArray(e)) {
|
|
2364
2365
|
const t = [];
|
|
2365
2366
|
for (let n = 0; n < e.length; n++) {
|
|
2366
|
-
const s =
|
|
2367
|
+
const s = yn(e[n]);
|
|
2367
2368
|
Array.isArray(s) ? t.push.apply(t, s) : t.push(s);
|
|
2368
2369
|
}
|
|
2369
2370
|
return t;
|
|
2370
2371
|
}
|
|
2371
2372
|
return e;
|
|
2372
2373
|
}
|
|
2373
|
-
function
|
|
2374
|
+
function zo(e, t) {
|
|
2374
2375
|
return function(s) {
|
|
2375
2376
|
let r;
|
|
2376
2377
|
return Re(() => r = Z(() => (N.context = {
|
|
2377
2378
|
...N.context,
|
|
2378
2379
|
[e]: s.value
|
|
2379
|
-
},
|
|
2380
|
+
}, nr(() => s.children))), void 0), r;
|
|
2380
2381
|
};
|
|
2381
2382
|
}
|
|
2382
|
-
var
|
|
2383
|
+
var An = Symbol("fallback");
|
|
2383
2384
|
function Wt(e) {
|
|
2384
2385
|
for (let t = 0; t < e.length; t++) e[t]();
|
|
2385
2386
|
}
|
|
2386
|
-
function
|
|
2387
|
+
function jo(e, t, n = {}) {
|
|
2387
2388
|
let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
|
|
2388
2389
|
return dt(() => Wt(a)), () => {
|
|
2389
2390
|
let l = e() || [], d = l.length, u, f;
|
|
2390
|
-
return l[
|
|
2391
|
+
return l[Js], Z(() => {
|
|
2391
2392
|
let h, p, T, S, D, y, w, v, U;
|
|
2392
2393
|
if (d === 0)
|
|
2393
|
-
i !== 0 && (Wt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [
|
|
2394
|
+
i !== 0 && (Wt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [An], r[0] = xe((b) => (a[0] = b, n.fallback())), i = 1);
|
|
2394
2395
|
else if (i === 0) {
|
|
2395
2396
|
for (r = new Array(d), f = 0; f < d; f++)
|
|
2396
2397
|
s[f] = l[f], r[f] = xe(g);
|
|
@@ -2418,14 +2419,14 @@ function Qo(e, t, n = {}) {
|
|
|
2418
2419
|
}
|
|
2419
2420
|
};
|
|
2420
2421
|
}
|
|
2421
|
-
function
|
|
2422
|
+
function Wo(e, t, n = {}) {
|
|
2422
2423
|
let s = [], r = [], a = [], i = [], o = 0, l;
|
|
2423
2424
|
return dt(() => Wt(a)), () => {
|
|
2424
2425
|
const d = e() || [], u = d.length;
|
|
2425
|
-
return d[
|
|
2426
|
+
return d[Js], Z(() => {
|
|
2426
2427
|
if (u === 0)
|
|
2427
|
-
return o !== 0 && (Wt(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [
|
|
2428
|
-
for (s[0] ===
|
|
2428
|
+
return o !== 0 && (Wt(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [An], r[0] = xe((g) => (a[0] = g, n.fallback())), o = 1), r;
|
|
2429
|
+
for (s[0] === An && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < u; l++)
|
|
2429
2430
|
l < s.length && s[l] !== d[l] ? i[l](() => d[l]) : l >= s.length && (r[l] = xe(f));
|
|
2430
2431
|
for (; l < s.length; l++)
|
|
2431
2432
|
a[l]();
|
|
@@ -2438,13 +2439,13 @@ function zo(e, t, n = {}) {
|
|
|
2438
2439
|
}
|
|
2439
2440
|
};
|
|
2440
2441
|
}
|
|
2441
|
-
function
|
|
2442
|
+
function or(e, t) {
|
|
2442
2443
|
return Z(() => e(t || {}));
|
|
2443
2444
|
}
|
|
2444
2445
|
function xt() {
|
|
2445
2446
|
return !0;
|
|
2446
2447
|
}
|
|
2447
|
-
var
|
|
2448
|
+
var Tn = {
|
|
2448
2449
|
get(e, t, n) {
|
|
2449
2450
|
return t === qt ? n : e.get(t);
|
|
2450
2451
|
},
|
|
@@ -2468,40 +2469,40 @@ var An = {
|
|
|
2468
2469
|
return e.keys();
|
|
2469
2470
|
}
|
|
2470
2471
|
};
|
|
2471
|
-
function
|
|
2472
|
+
function gn(e) {
|
|
2472
2473
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
2473
2474
|
}
|
|
2474
|
-
function
|
|
2475
|
+
function Yo() {
|
|
2475
2476
|
for (let e = 0, t = this.length; e < t; ++e) {
|
|
2476
2477
|
const n = this[e]();
|
|
2477
2478
|
if (n !== void 0) return n;
|
|
2478
2479
|
}
|
|
2479
2480
|
}
|
|
2480
|
-
function
|
|
2481
|
+
function lr(...e) {
|
|
2481
2482
|
let t = !1;
|
|
2482
2483
|
for (let i = 0; i < e.length; i++) {
|
|
2483
2484
|
const o = e[i];
|
|
2484
2485
|
t = t || !!o && qt in o, e[i] = typeof o == "function" ? (t = !0, W(o)) : o;
|
|
2485
2486
|
}
|
|
2486
|
-
if (
|
|
2487
|
+
if (Ys && t)
|
|
2487
2488
|
return new Proxy({
|
|
2488
2489
|
get(i) {
|
|
2489
2490
|
for (let o = e.length - 1; o >= 0; o--) {
|
|
2490
|
-
const l =
|
|
2491
|
+
const l = gn(e[o])[i];
|
|
2491
2492
|
if (l !== void 0) return l;
|
|
2492
2493
|
}
|
|
2493
2494
|
},
|
|
2494
2495
|
has(i) {
|
|
2495
2496
|
for (let o = e.length - 1; o >= 0; o--)
|
|
2496
|
-
if (i in
|
|
2497
|
+
if (i in gn(e[o])) return !0;
|
|
2497
2498
|
return !1;
|
|
2498
2499
|
},
|
|
2499
2500
|
keys() {
|
|
2500
2501
|
const i = [];
|
|
2501
|
-
for (let o = 0; o < e.length; o++) i.push(...Object.keys(
|
|
2502
|
+
for (let o = 0; o < e.length; o++) i.push(...Object.keys(gn(e[o])));
|
|
2502
2503
|
return [...new Set(i)];
|
|
2503
2504
|
}
|
|
2504
|
-
},
|
|
2505
|
+
}, Tn);
|
|
2505
2506
|
const n = {}, s = /* @__PURE__ */ Object.create(null);
|
|
2506
2507
|
for (let i = e.length - 1; i >= 0; i--) {
|
|
2507
2508
|
const o = e[i];
|
|
@@ -2515,7 +2516,7 @@ function ar(...e) {
|
|
|
2515
2516
|
s[u] = f.get ? {
|
|
2516
2517
|
enumerable: !0,
|
|
2517
2518
|
configurable: !0,
|
|
2518
|
-
get:
|
|
2519
|
+
get: Yo.bind(n[u] = [f.get.bind(o)])
|
|
2519
2520
|
} : f.value !== void 0 ? f : void 0;
|
|
2520
2521
|
else {
|
|
2521
2522
|
const g = n[u];
|
|
@@ -2530,8 +2531,8 @@ function ar(...e) {
|
|
|
2530
2531
|
}
|
|
2531
2532
|
return r;
|
|
2532
2533
|
}
|
|
2533
|
-
function
|
|
2534
|
-
if (
|
|
2534
|
+
function Jo(e, ...t) {
|
|
2535
|
+
if (Ys && qt in e) {
|
|
2535
2536
|
const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
|
|
2536
2537
|
get(o) {
|
|
2537
2538
|
return i.includes(o) ? e[o] : void 0;
|
|
@@ -2542,7 +2543,7 @@ function Wo(e, ...t) {
|
|
|
2542
2543
|
keys() {
|
|
2543
2544
|
return i.filter((o) => o in e);
|
|
2544
2545
|
}
|
|
2545
|
-
},
|
|
2546
|
+
}, Tn));
|
|
2546
2547
|
return a.push(new Proxy({
|
|
2547
2548
|
get(i) {
|
|
2548
2549
|
return r.has(i) ? void 0 : e[i];
|
|
@@ -2553,7 +2554,7 @@ function Wo(e, ...t) {
|
|
|
2553
2554
|
keys() {
|
|
2554
2555
|
return Object.keys(e).filter((i) => !r.has(i));
|
|
2555
2556
|
}
|
|
2556
|
-
},
|
|
2557
|
+
}, Tn)), a;
|
|
2557
2558
|
}
|
|
2558
2559
|
const n = {}, s = t.map(() => ({}));
|
|
2559
2560
|
for (const r of Object.getOwnPropertyNames(e)) {
|
|
@@ -2565,7 +2566,7 @@ function Wo(e, ...t) {
|
|
|
2565
2566
|
}
|
|
2566
2567
|
return [...s, n];
|
|
2567
2568
|
}
|
|
2568
|
-
function
|
|
2569
|
+
function cr(e) {
|
|
2569
2570
|
let t, n;
|
|
2570
2571
|
const s = (r) => {
|
|
2571
2572
|
const a = _.context;
|
|
@@ -2575,7 +2576,7 @@ function ir(e) {
|
|
|
2575
2576
|
!_.done && lt(a), _.count--, l(() => d.default), lt();
|
|
2576
2577
|
}), t = o;
|
|
2577
2578
|
} else if (!t) {
|
|
2578
|
-
const [o] =
|
|
2579
|
+
const [o] = Bo(() => (n || (n = e())).then((l) => l.default));
|
|
2579
2580
|
t = o;
|
|
2580
2581
|
}
|
|
2581
2582
|
let i;
|
|
@@ -2589,24 +2590,24 @@ function ir(e) {
|
|
|
2589
2590
|
};
|
|
2590
2591
|
return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
|
|
2591
2592
|
}
|
|
2592
|
-
var
|
|
2593
|
-
function
|
|
2594
|
-
return _.context ? _.getNextContextId() : `cl-${
|
|
2593
|
+
var Zo = 0;
|
|
2594
|
+
function fu() {
|
|
2595
|
+
return _.context ? _.getNextContextId() : `cl-${Zo++}`;
|
|
2595
2596
|
}
|
|
2596
|
-
var
|
|
2597
|
-
function
|
|
2597
|
+
var ur = (e) => `Stale read from <${e}>.`;
|
|
2598
|
+
function hu(e) {
|
|
2598
2599
|
const t = "fallback" in e && {
|
|
2599
2600
|
fallback: () => e.fallback
|
|
2600
2601
|
};
|
|
2601
|
-
return W(
|
|
2602
|
+
return W(jo(() => e.each, e.children, t || void 0));
|
|
2602
2603
|
}
|
|
2603
|
-
function
|
|
2604
|
+
function gu(e) {
|
|
2604
2605
|
const t = "fallback" in e && {
|
|
2605
2606
|
fallback: () => e.fallback
|
|
2606
2607
|
};
|
|
2607
|
-
return W(
|
|
2608
|
+
return W(Wo(() => e.each, e.children, t || void 0));
|
|
2608
2609
|
}
|
|
2609
|
-
function
|
|
2610
|
+
function mu(e) {
|
|
2610
2611
|
const t = e.keyed, n = W(() => e.when, void 0, void 0), s = t ? n : W(n, void 0, {
|
|
2611
2612
|
equals: (r, a) => !r == !a
|
|
2612
2613
|
});
|
|
@@ -2615,15 +2616,15 @@ function hu(e) {
|
|
|
2615
2616
|
if (r) {
|
|
2616
2617
|
const a = e.children;
|
|
2617
2618
|
return typeof a == "function" && a.length > 0 ? Z(() => a(t ? r : () => {
|
|
2618
|
-
if (!Z(s)) throw
|
|
2619
|
+
if (!Z(s)) throw ur("Show");
|
|
2619
2620
|
return n();
|
|
2620
2621
|
})) : a;
|
|
2621
2622
|
}
|
|
2622
2623
|
return e.fallback;
|
|
2623
2624
|
}, void 0, void 0);
|
|
2624
2625
|
}
|
|
2625
|
-
function
|
|
2626
|
-
const t =
|
|
2626
|
+
function Eu(e) {
|
|
2627
|
+
const t = nr(() => e.children), n = W(() => {
|
|
2627
2628
|
const s = t(), r = Array.isArray(s) ? s : [s];
|
|
2628
2629
|
let a = () => {
|
|
2629
2630
|
};
|
|
@@ -2641,18 +2642,18 @@ function gu(e) {
|
|
|
2641
2642
|
const [r, a, i] = s, o = i.children;
|
|
2642
2643
|
return typeof o == "function" && o.length > 0 ? Z(() => o(i.keyed ? a() : () => {
|
|
2643
2644
|
var d;
|
|
2644
|
-
if (((d = Z(n)()) == null ? void 0 : d[0]) !== r) throw
|
|
2645
|
+
if (((d = Z(n)()) == null ? void 0 : d[0]) !== r) throw ur("Match");
|
|
2645
2646
|
return a();
|
|
2646
2647
|
})) : o;
|
|
2647
2648
|
}, void 0, void 0);
|
|
2648
2649
|
}
|
|
2649
|
-
function
|
|
2650
|
+
function pu(e) {
|
|
2650
2651
|
return e;
|
|
2651
2652
|
}
|
|
2652
|
-
var
|
|
2653
|
+
var Xo = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], el = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...Xo]), tl = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), nl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2653
2654
|
className: "class",
|
|
2654
2655
|
htmlFor: "for"
|
|
2655
|
-
}),
|
|
2656
|
+
}), sl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2656
2657
|
class: "className",
|
|
2657
2658
|
novalidate: {
|
|
2658
2659
|
$: "noValidate",
|
|
@@ -2681,11 +2682,11 @@ var Jo = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
|
|
|
2681
2682
|
TEXTAREA: 1
|
|
2682
2683
|
}
|
|
2683
2684
|
});
|
|
2684
|
-
function
|
|
2685
|
-
const n =
|
|
2685
|
+
function rl(e, t) {
|
|
2686
|
+
const n = sl[e];
|
|
2686
2687
|
return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
|
|
2687
2688
|
}
|
|
2688
|
-
var
|
|
2689
|
+
var al = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), il = /* @__PURE__ */ new Set([
|
|
2689
2690
|
"altGlyph",
|
|
2690
2691
|
"altGlyphDef",
|
|
2691
2692
|
"altGlyphItem",
|
|
@@ -2763,11 +2764,11 @@ var sl = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
|
2763
2764
|
"use",
|
|
2764
2765
|
"view",
|
|
2765
2766
|
"vkern"
|
|
2766
|
-
]),
|
|
2767
|
+
]), ol = {
|
|
2767
2768
|
xlink: "http://www.w3.org/1999/xlink",
|
|
2768
2769
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
2769
|
-
},
|
|
2770
|
-
function
|
|
2770
|
+
}, yu = (e) => W(() => e());
|
|
2771
|
+
function ll(e, t, n) {
|
|
2771
2772
|
let s = n.length, r = t.length, a = s, i = 0, o = 0, l = t[r - 1].nextSibling, d = null;
|
|
2772
2773
|
for (; i < r || o < a; ) {
|
|
2773
2774
|
if (t[i] === n[o]) {
|
|
@@ -2807,15 +2808,15 @@ function il(e, t, n) {
|
|
|
2807
2808
|
}
|
|
2808
2809
|
}
|
|
2809
2810
|
var ct = "_$DX_DELEGATE";
|
|
2810
|
-
function
|
|
2811
|
+
function dr(e, t, n, s = {}) {
|
|
2811
2812
|
let r;
|
|
2812
2813
|
return xe((a) => {
|
|
2813
|
-
r = a, t === document ? e() :
|
|
2814
|
+
r = a, t === document ? e() : _n(t, e(), t.firstChild ? null : void 0, n);
|
|
2814
2815
|
}, s.owner), () => {
|
|
2815
2816
|
r(), t.textContent = "";
|
|
2816
2817
|
};
|
|
2817
2818
|
}
|
|
2818
|
-
function
|
|
2819
|
+
function Au(e, t, n, s) {
|
|
2819
2820
|
let r;
|
|
2820
2821
|
const a = () => {
|
|
2821
2822
|
const o = document.createElement("template");
|
|
@@ -2823,32 +2824,32 @@ function pu(e, t, n, s) {
|
|
|
2823
2824
|
}, i = () => (r || (r = a())).cloneNode(!0);
|
|
2824
2825
|
return i.cloneNode = i, i;
|
|
2825
2826
|
}
|
|
2826
|
-
function
|
|
2827
|
+
function cl(e, t = window.document) {
|
|
2827
2828
|
const n = t[ct] || (t[ct] = /* @__PURE__ */ new Set());
|
|
2828
2829
|
for (let s = 0, r = e.length; s < r; s++) {
|
|
2829
2830
|
const a = e[s];
|
|
2830
|
-
n.has(a) || (n.add(a), t.addEventListener(a,
|
|
2831
|
+
n.has(a) || (n.add(a), t.addEventListener(a, fr));
|
|
2831
2832
|
}
|
|
2832
2833
|
}
|
|
2833
|
-
function
|
|
2834
|
+
function Tu(e = window.document) {
|
|
2834
2835
|
if (e[ct]) {
|
|
2835
|
-
for (let t of e[ct].keys()) e.removeEventListener(t,
|
|
2836
|
+
for (let t of e[ct].keys()) e.removeEventListener(t, fr);
|
|
2836
2837
|
delete e[ct];
|
|
2837
2838
|
}
|
|
2838
2839
|
}
|
|
2839
|
-
function
|
|
2840
|
+
function Sn(e, t, n) {
|
|
2840
2841
|
Fe(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
2841
2842
|
}
|
|
2842
|
-
function
|
|
2843
|
+
function ul(e, t, n, s) {
|
|
2843
2844
|
Fe(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
|
|
2844
2845
|
}
|
|
2845
|
-
function
|
|
2846
|
+
function dl(e, t, n) {
|
|
2846
2847
|
Fe(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
|
|
2847
2848
|
}
|
|
2848
|
-
function
|
|
2849
|
+
function fl(e, t) {
|
|
2849
2850
|
Fe(e) || (t == null ? e.removeAttribute("class") : e.className = t);
|
|
2850
2851
|
}
|
|
2851
|
-
function
|
|
2852
|
+
function hl(e, t, n, s) {
|
|
2852
2853
|
if (s)
|
|
2853
2854
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
2854
2855
|
else if (Array.isArray(n)) {
|
|
@@ -2856,21 +2857,21 @@ function dl(e, t, n, s) {
|
|
|
2856
2857
|
e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
|
|
2857
2858
|
} else e.addEventListener(t, n, typeof n != "function" && n);
|
|
2858
2859
|
}
|
|
2859
|
-
function
|
|
2860
|
+
function gl(e, t, n = {}) {
|
|
2860
2861
|
const s = Object.keys(t || {}), r = Object.keys(n);
|
|
2861
2862
|
let a, i;
|
|
2862
2863
|
for (a = 0, i = r.length; a < i; a++) {
|
|
2863
2864
|
const o = r[a];
|
|
2864
|
-
!o || o === "undefined" || t[o] || (
|
|
2865
|
+
!o || o === "undefined" || t[o] || (is(e, o, !1), delete n[o]);
|
|
2865
2866
|
}
|
|
2866
2867
|
for (a = 0, i = s.length; a < i; a++) {
|
|
2867
2868
|
const o = s[a], l = !!t[o];
|
|
2868
|
-
!o || o === "undefined" || n[o] === l || !l || (
|
|
2869
|
+
!o || o === "undefined" || n[o] === l || !l || (is(e, o, !0), n[o] = l);
|
|
2869
2870
|
}
|
|
2870
2871
|
return n;
|
|
2871
2872
|
}
|
|
2872
|
-
function
|
|
2873
|
-
if (!t) return n ?
|
|
2873
|
+
function ml(e, t, n) {
|
|
2874
|
+
if (!t) return n ? Sn(e, "style") : t;
|
|
2874
2875
|
const s = e.style;
|
|
2875
2876
|
if (typeof t == "string") return s.cssText = t;
|
|
2876
2877
|
typeof n == "string" && (s.cssText = n = void 0), n || (n = {}), t || (t = {});
|
|
@@ -2881,49 +2882,49 @@ function hl(e, t, n) {
|
|
|
2881
2882
|
r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
|
|
2882
2883
|
return n;
|
|
2883
2884
|
}
|
|
2884
|
-
function
|
|
2885
|
+
function El(e, t = {}, n, s) {
|
|
2885
2886
|
const r = {};
|
|
2886
|
-
return s || Re(() => r.children = ht(e, t.children, r.children)), Re(() => typeof t.ref == "function" &&
|
|
2887
|
+
return s || Re(() => r.children = ht(e, t.children, r.children)), Re(() => typeof t.ref == "function" && pl(t.ref, e)), Re(() => yl(e, t, n, !0, r, !0)), r;
|
|
2887
2888
|
}
|
|
2888
|
-
function
|
|
2889
|
+
function pl(e, t, n) {
|
|
2889
2890
|
return Z(() => e(t, n));
|
|
2890
2891
|
}
|
|
2891
|
-
function
|
|
2892
|
+
function _n(e, t, n, s) {
|
|
2892
2893
|
if (n !== void 0 && !s && (s = []), typeof t != "function") return ht(e, t, s, n);
|
|
2893
2894
|
Re((r) => ht(e, t(), r, n), s);
|
|
2894
2895
|
}
|
|
2895
|
-
function
|
|
2896
|
+
function yl(e, t, n, s, r = {}, a = !1) {
|
|
2896
2897
|
t || (t = {});
|
|
2897
2898
|
for (const i in r)
|
|
2898
2899
|
if (!(i in t)) {
|
|
2899
2900
|
if (i === "children") continue;
|
|
2900
|
-
r[i] =
|
|
2901
|
+
r[i] = os(e, i, null, r[i], n, a, t);
|
|
2901
2902
|
}
|
|
2902
2903
|
for (const i in t) {
|
|
2903
2904
|
if (i === "children")
|
|
2904
2905
|
continue;
|
|
2905
2906
|
const o = t[i];
|
|
2906
|
-
r[i] =
|
|
2907
|
+
r[i] = os(e, i, o, r[i], n, a, t);
|
|
2907
2908
|
}
|
|
2908
2909
|
}
|
|
2909
|
-
function
|
|
2910
|
+
function Al(e) {
|
|
2910
2911
|
let t, n;
|
|
2911
|
-
return !Fe() || !(t = _.registry.get(n =
|
|
2912
|
+
return !Fe() || !(t = _.registry.get(n = Sl())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
|
|
2912
2913
|
}
|
|
2913
2914
|
function Fe(e) {
|
|
2914
2915
|
return !!_.context && !_.done && (!e || e.isConnected);
|
|
2915
2916
|
}
|
|
2916
|
-
function
|
|
2917
|
+
function Tl(e) {
|
|
2917
2918
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
2918
2919
|
}
|
|
2919
|
-
function
|
|
2920
|
+
function is(e, t, n) {
|
|
2920
2921
|
const s = t.trim().split(/\s+/);
|
|
2921
2922
|
for (let r = 0, a = s.length; r < a; r++) e.classList.toggle(s[r], n);
|
|
2922
2923
|
}
|
|
2923
|
-
function
|
|
2924
|
+
function os(e, t, n, s, r, a, i) {
|
|
2924
2925
|
let o, l, d, u, f;
|
|
2925
|
-
if (t === "style") return
|
|
2926
|
-
if (t === "classList") return
|
|
2926
|
+
if (t === "style") return ml(e, n, s);
|
|
2927
|
+
if (t === "classList") return gl(e, n, s);
|
|
2927
2928
|
if (n === s) return s;
|
|
2928
2929
|
if (t === "ref")
|
|
2929
2930
|
a || n(e);
|
|
@@ -2934,28 +2935,28 @@ function rs(e, t, n, s, r, a, i) {
|
|
|
2934
2935
|
const g = t.slice(10);
|
|
2935
2936
|
s && e.removeEventListener(g, s, !0), n && e.addEventListener(g, n, !0);
|
|
2936
2937
|
} else if (t.slice(0, 2) === "on") {
|
|
2937
|
-
const g = t.slice(2).toLowerCase(), h =
|
|
2938
|
+
const g = t.slice(2).toLowerCase(), h = al.has(g);
|
|
2938
2939
|
if (!h && s) {
|
|
2939
2940
|
const p = Array.isArray(s) ? s[0] : s;
|
|
2940
2941
|
e.removeEventListener(g, p);
|
|
2941
2942
|
}
|
|
2942
|
-
(h || n) && (
|
|
2943
|
+
(h || n) && (hl(e, g, n, h), h && cl([g]));
|
|
2943
2944
|
} else if (t.slice(0, 5) === "attr:")
|
|
2944
|
-
|
|
2945
|
+
Sn(e, t.slice(5), n);
|
|
2945
2946
|
else if (t.slice(0, 5) === "bool:")
|
|
2946
|
-
|
|
2947
|
-
else if ((f = t.slice(0, 5) === "prop:") || (d =
|
|
2947
|
+
dl(e, t.slice(5), n);
|
|
2948
|
+
else if ((f = t.slice(0, 5) === "prop:") || (d = tl.has(t)) || !r && ((u = rl(t, e.tagName)) || (l = el.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
|
|
2948
2949
|
if (f)
|
|
2949
2950
|
t = t.slice(5), l = !0;
|
|
2950
2951
|
else if (Fe(e)) return n;
|
|
2951
|
-
t === "class" || t === "className" ?
|
|
2952
|
+
t === "class" || t === "className" ? fl(e, n) : o && !l && !d ? e[Tl(t)] = n : e[u || t] = n;
|
|
2952
2953
|
} else {
|
|
2953
|
-
const g = r && t.indexOf(":") > -1 &&
|
|
2954
|
-
g ?
|
|
2954
|
+
const g = r && t.indexOf(":") > -1 && ol[t.split(":")[0]];
|
|
2955
|
+
g ? ul(e, g, t, n) : Sn(e, nl[t] || t, n);
|
|
2955
2956
|
}
|
|
2956
2957
|
return n;
|
|
2957
2958
|
}
|
|
2958
|
-
function
|
|
2959
|
+
function fr(e) {
|
|
2959
2960
|
if (_.registry && _.events && _.events.find(([l, d]) => d === e))
|
|
2960
2961
|
return;
|
|
2961
2962
|
let t = e.target;
|
|
@@ -3025,7 +3026,7 @@ function ht(e, t, n, s, r) {
|
|
|
3025
3026
|
}), () => n;
|
|
3026
3027
|
if (Array.isArray(t)) {
|
|
3027
3028
|
const l = [], d = n && Array.isArray(n);
|
|
3028
|
-
if (
|
|
3029
|
+
if (Pn(l, t, n, r))
|
|
3029
3030
|
return Re(() => n = ht(e, l, n, s, !0)), () => n;
|
|
3030
3031
|
if (a) {
|
|
3031
3032
|
if (!l.length) return n;
|
|
@@ -3038,7 +3039,7 @@ function ht(e, t, n, s, r) {
|
|
|
3038
3039
|
}
|
|
3039
3040
|
if (l.length === 0) {
|
|
3040
3041
|
if (n = Ke(e, n, s), o) return n;
|
|
3041
|
-
} else d ? n.length === 0 ?
|
|
3042
|
+
} else d ? n.length === 0 ? ls(e, l, s) : ll(e, n, l) : (n && Ke(e), ls(e, l));
|
|
3042
3043
|
n = l;
|
|
3043
3044
|
} else if (t.nodeType) {
|
|
3044
3045
|
if (a && t.parentNode) return n = o ? [t] : t;
|
|
@@ -3051,18 +3052,18 @@ function ht(e, t, n, s, r) {
|
|
|
3051
3052
|
}
|
|
3052
3053
|
return n;
|
|
3053
3054
|
}
|
|
3054
|
-
function
|
|
3055
|
+
function Pn(e, t, n, s) {
|
|
3055
3056
|
let r = !1;
|
|
3056
3057
|
for (let a = 0, i = t.length; a < i; a++) {
|
|
3057
3058
|
let o = t[a], l = n && n[e.length], d;
|
|
3058
3059
|
if (!(o == null || o === !0 || o === !1)) if ((d = typeof o) == "object" && o.nodeType)
|
|
3059
3060
|
e.push(o);
|
|
3060
3061
|
else if (Array.isArray(o))
|
|
3061
|
-
r =
|
|
3062
|
+
r = Pn(e, o, l) || r;
|
|
3062
3063
|
else if (d === "function")
|
|
3063
3064
|
if (s) {
|
|
3064
3065
|
for (; typeof o == "function"; ) o = o();
|
|
3065
|
-
r =
|
|
3066
|
+
r = Pn(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
|
|
3066
3067
|
} else
|
|
3067
3068
|
e.push(o), r = !0;
|
|
3068
3069
|
else {
|
|
@@ -3072,7 +3073,7 @@ function _n(e, t, n, s) {
|
|
|
3072
3073
|
}
|
|
3073
3074
|
return r;
|
|
3074
3075
|
}
|
|
3075
|
-
function
|
|
3076
|
+
function ls(e, t, n = null) {
|
|
3076
3077
|
for (let s = 0, r = t.length; s < r; s++) e.insertBefore(t[s], n);
|
|
3077
3078
|
}
|
|
3078
3079
|
function Ke(e, t, n, s) {
|
|
@@ -3090,26 +3091,26 @@ function Ke(e, t, n, s) {
|
|
|
3090
3091
|
} else e.insertBefore(r, n);
|
|
3091
3092
|
return [r];
|
|
3092
3093
|
}
|
|
3093
|
-
function
|
|
3094
|
+
function Sl() {
|
|
3094
3095
|
return _.getNextContextId();
|
|
3095
3096
|
}
|
|
3096
|
-
var
|
|
3097
|
-
function
|
|
3098
|
-
return t ? document.createElementNS(
|
|
3097
|
+
var _l = "http://www.w3.org/2000/svg";
|
|
3098
|
+
function hr(e, t = !1) {
|
|
3099
|
+
return t ? document.createElementNS(_l, e) : document.createElement(e);
|
|
3099
3100
|
}
|
|
3100
|
-
function
|
|
3101
|
+
function Su(e) {
|
|
3101
3102
|
const {
|
|
3102
3103
|
useShadow: t
|
|
3103
|
-
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r =
|
|
3104
|
+
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = as();
|
|
3104
3105
|
let a, i = !!_.context;
|
|
3105
|
-
return
|
|
3106
|
-
i && (
|
|
3106
|
+
return er(() => {
|
|
3107
|
+
i && (as().user = i = !1), a || (a = tr(r, () => W(() => e.children)));
|
|
3107
3108
|
const o = s();
|
|
3108
3109
|
if (o instanceof HTMLHeadElement) {
|
|
3109
3110
|
const [l, d] = F(!1), u = () => d(!0);
|
|
3110
|
-
xe((f) =>
|
|
3111
|
+
xe((f) => _n(o, () => l() ? f() : a(), null)), dt(u);
|
|
3111
3112
|
} else {
|
|
3112
|
-
const l =
|
|
3113
|
+
const l = hr(e.isSVG ? "g" : "div", e.isSVG), d = t && l.attachShadow ? l.attachShadow({
|
|
3113
3114
|
mode: "open"
|
|
3114
3115
|
}) : l;
|
|
3115
3116
|
Object.defineProperty(l, "_$host", {
|
|
@@ -3117,13 +3118,13 @@ function Au(e) {
|
|
|
3117
3118
|
return n.parentNode;
|
|
3118
3119
|
},
|
|
3119
3120
|
configurable: !0
|
|
3120
|
-
}),
|
|
3121
|
+
}), _n(d, a), o.appendChild(l), e.ref && e.ref(l), dt(() => o.removeChild(l));
|
|
3121
3122
|
}
|
|
3122
3123
|
}, void 0, {
|
|
3123
3124
|
render: !i
|
|
3124
3125
|
}), n;
|
|
3125
3126
|
}
|
|
3126
|
-
function
|
|
3127
|
+
function Pl(e, t) {
|
|
3127
3128
|
const n = W(e);
|
|
3128
3129
|
return W(() => {
|
|
3129
3130
|
const s = n();
|
|
@@ -3131,16 +3132,16 @@ function Sl(e, t) {
|
|
|
3131
3132
|
case "function":
|
|
3132
3133
|
return Z(() => s(t));
|
|
3133
3134
|
case "string":
|
|
3134
|
-
const r =
|
|
3135
|
-
return
|
|
3135
|
+
const r = il.has(s), a = _.context ? Al() : hr(s, r);
|
|
3136
|
+
return El(a, t, r), a;
|
|
3136
3137
|
}
|
|
3137
3138
|
});
|
|
3138
3139
|
}
|
|
3139
|
-
function
|
|
3140
|
-
const [, t] =
|
|
3141
|
-
return
|
|
3140
|
+
function _u(e) {
|
|
3141
|
+
const [, t] = Jo(e, ["component"]);
|
|
3142
|
+
return Pl(() => e.component, t);
|
|
3142
3143
|
}
|
|
3143
|
-
var
|
|
3144
|
+
var wl = class {
|
|
3144
3145
|
constructor() {
|
|
3145
3146
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
3146
3147
|
}
|
|
@@ -3156,9 +3157,9 @@ var _l = class {
|
|
|
3156
3157
|
clear() {
|
|
3157
3158
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
3158
3159
|
}
|
|
3159
|
-
},
|
|
3160
|
+
}, gr = class {
|
|
3160
3161
|
constructor(e) {
|
|
3161
|
-
this.generateIdentifier = e, this.kv = new
|
|
3162
|
+
this.generateIdentifier = e, this.kv = new wl();
|
|
3162
3163
|
}
|
|
3163
3164
|
register(e, t) {
|
|
3164
3165
|
this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
|
|
@@ -3172,7 +3173,7 @@ var _l = class {
|
|
|
3172
3173
|
getValue(e) {
|
|
3173
3174
|
return this.kv.getByKey(e);
|
|
3174
3175
|
}
|
|
3175
|
-
},
|
|
3176
|
+
}, vl = class extends gr {
|
|
3176
3177
|
constructor() {
|
|
3177
3178
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
3178
3179
|
}
|
|
@@ -3183,7 +3184,7 @@ var _l = class {
|
|
|
3183
3184
|
return this.classToAllowedProps.get(e);
|
|
3184
3185
|
}
|
|
3185
3186
|
};
|
|
3186
|
-
function
|
|
3187
|
+
function bl(e) {
|
|
3187
3188
|
if ("values" in Object)
|
|
3188
3189
|
return Object.values(e);
|
|
3189
3190
|
const t = [];
|
|
@@ -3191,8 +3192,8 @@ function wl(e) {
|
|
|
3191
3192
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
3192
3193
|
return t;
|
|
3193
3194
|
}
|
|
3194
|
-
function
|
|
3195
|
-
const n =
|
|
3195
|
+
function Il(e, t) {
|
|
3196
|
+
const n = bl(e);
|
|
3196
3197
|
if ("find" in n)
|
|
3197
3198
|
return n.find(t);
|
|
3198
3199
|
const s = n;
|
|
@@ -3208,14 +3209,14 @@ function rt(e, t) {
|
|
|
3208
3209
|
function Ft(e, t) {
|
|
3209
3210
|
return e.indexOf(t) !== -1;
|
|
3210
3211
|
}
|
|
3211
|
-
function
|
|
3212
|
+
function cs(e, t) {
|
|
3212
3213
|
for (let n = 0; n < e.length; n++) {
|
|
3213
3214
|
const s = e[n];
|
|
3214
3215
|
if (t(s))
|
|
3215
3216
|
return s;
|
|
3216
3217
|
}
|
|
3217
3218
|
}
|
|
3218
|
-
var
|
|
3219
|
+
var Ll = class {
|
|
3219
3220
|
constructor() {
|
|
3220
3221
|
this.transfomers = {};
|
|
3221
3222
|
}
|
|
@@ -3223,12 +3224,12 @@ var bl = class {
|
|
|
3223
3224
|
this.transfomers[e.name] = e;
|
|
3224
3225
|
}
|
|
3225
3226
|
findApplicable(e) {
|
|
3226
|
-
return
|
|
3227
|
+
return Il(this.transfomers, (t) => t.isApplicable(e));
|
|
3227
3228
|
}
|
|
3228
3229
|
findByName(e) {
|
|
3229
3230
|
return this.transfomers[e];
|
|
3230
3231
|
}
|
|
3231
|
-
},
|
|
3232
|
+
}, Nl = (e) => Object.prototype.toString.call(e).slice(8, -1), mr = (e) => typeof e > "u", Cl = (e) => e === null, gt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, wn = (e) => gt(e) && Object.keys(e).length === 0, Le = (e) => Array.isArray(e), Gl = (e) => typeof e == "string", Ol = (e) => typeof e == "number" && !isNaN(e), Dl = (e) => typeof e == "boolean", xl = (e) => e instanceof RegExp, mt = (e) => e instanceof Map, Et = (e) => e instanceof Set, Er = (e) => Nl(e) === "Symbol", Rl = (e) => e instanceof Date && !isNaN(e.valueOf()), kl = (e) => e instanceof Error, us = (e) => typeof e == "number" && isNaN(e), Ul = (e) => Dl(e) || Cl(e) || mr(e) || Ol(e) || Gl(e) || Er(e), Ml = (e) => typeof e == "bigint", Bl = (e) => e === 1 / 0 || e === -1 / 0, Fl = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Kl = (e) => e instanceof URL, pr = (e) => e.replace(/\./g, "\\."), mn = (e) => e.map(String).map(pr).join("."), ut = (e) => {
|
|
3232
3233
|
const t = [];
|
|
3233
3234
|
let n = "";
|
|
3234
3235
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3254,12 +3255,12 @@ function he(e, t, n, s) {
|
|
|
3254
3255
|
untransform: s
|
|
3255
3256
|
};
|
|
3256
3257
|
}
|
|
3257
|
-
var
|
|
3258
|
-
he(
|
|
3258
|
+
var yr = [
|
|
3259
|
+
he(mr, "undefined", () => null, () => {
|
|
3259
3260
|
}),
|
|
3260
|
-
he(
|
|
3261
|
-
he(
|
|
3262
|
-
he(
|
|
3261
|
+
he(Ml, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
|
|
3262
|
+
he(Rl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
3263
|
+
he(kl, "Error", (e, t) => {
|
|
3263
3264
|
const n = {
|
|
3264
3265
|
name: e.name,
|
|
3265
3266
|
message: e.message
|
|
@@ -3273,7 +3274,7 @@ var mr = [
|
|
|
3273
3274
|
n[s] = e[s];
|
|
3274
3275
|
}), n;
|
|
3275
3276
|
}),
|
|
3276
|
-
he(
|
|
3277
|
+
he(xl, "regexp", (e) => "" + e, (e) => {
|
|
3277
3278
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
3278
3279
|
return new RegExp(t, n);
|
|
3279
3280
|
}),
|
|
@@ -3286,9 +3287,9 @@ var mr = [
|
|
|
3286
3287
|
(e) => new Set(e)
|
|
3287
3288
|
),
|
|
3288
3289
|
he(mt, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
3289
|
-
he((e) =>
|
|
3290
|
+
he((e) => us(e) || Bl(e), "number", (e) => us(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
3290
3291
|
he((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
3291
|
-
he(
|
|
3292
|
+
he(Kl, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
3292
3293
|
];
|
|
3293
3294
|
function sn(e, t, n, s) {
|
|
3294
3295
|
return {
|
|
@@ -3298,12 +3299,12 @@ function sn(e, t, n, s) {
|
|
|
3298
3299
|
untransform: s
|
|
3299
3300
|
};
|
|
3300
3301
|
}
|
|
3301
|
-
var
|
|
3302
|
+
var Ar = sn((e, t) => Er(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
3302
3303
|
const s = n.symbolRegistry.getValue(t[1]);
|
|
3303
3304
|
if (!s)
|
|
3304
3305
|
throw new Error("Trying to deserialize unknown symbol");
|
|
3305
3306
|
return s;
|
|
3306
|
-
}),
|
|
3307
|
+
}), Vl = [
|
|
3307
3308
|
Int8Array,
|
|
3308
3309
|
Uint8Array,
|
|
3309
3310
|
Int16Array,
|
|
@@ -3313,16 +3314,16 @@ var Er = sn((e, t) => hr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
3313
3314
|
Float32Array,
|
|
3314
3315
|
Float64Array,
|
|
3315
3316
|
Uint8ClampedArray
|
|
3316
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
3317
|
-
const n =
|
|
3317
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), Tr = sn(Fl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
3318
|
+
const n = Vl[t[1]];
|
|
3318
3319
|
if (!n)
|
|
3319
3320
|
throw new Error("Trying to deserialize unknown typed array");
|
|
3320
3321
|
return new n(e);
|
|
3321
3322
|
});
|
|
3322
|
-
function
|
|
3323
|
+
function Sr(e, t) {
|
|
3323
3324
|
return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
3324
3325
|
}
|
|
3325
|
-
var
|
|
3326
|
+
var _r = sn(Sr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
3326
3327
|
const n = t.classRegistry.getAllowedProps(e.constructor);
|
|
3327
3328
|
if (!n)
|
|
3328
3329
|
return { ...e };
|
|
@@ -3335,44 +3336,44 @@ var Ar = sn(yr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3335
3336
|
if (!s)
|
|
3336
3337
|
throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
3337
3338
|
return Object.assign(Object.create(s.prototype), e);
|
|
3338
|
-
}),
|
|
3339
|
+
}), Pr = sn((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) => {
|
|
3339
3340
|
const s = n.customTransformerRegistry.findByName(t[1]);
|
|
3340
3341
|
if (!s)
|
|
3341
3342
|
throw new Error("Trying to deserialize unknown custom value");
|
|
3342
3343
|
return s.deserialize(e);
|
|
3343
|
-
}),
|
|
3344
|
-
const n =
|
|
3344
|
+
}), Hl = [_r, Ar, Pr, Tr], ds = (e, t) => {
|
|
3345
|
+
const n = cs(Hl, (r) => r.isApplicable(e, t));
|
|
3345
3346
|
if (n)
|
|
3346
3347
|
return {
|
|
3347
3348
|
value: n.transform(e, t),
|
|
3348
3349
|
type: n.annotation(e, t)
|
|
3349
3350
|
};
|
|
3350
|
-
const s =
|
|
3351
|
+
const s = cs(yr, (r) => r.isApplicable(e, t));
|
|
3351
3352
|
if (s)
|
|
3352
3353
|
return {
|
|
3353
3354
|
value: s.transform(e, t),
|
|
3354
3355
|
type: s.annotation
|
|
3355
3356
|
};
|
|
3356
|
-
},
|
|
3357
|
-
|
|
3358
|
-
|
|
3357
|
+
}, wr = {};
|
|
3358
|
+
yr.forEach((e) => {
|
|
3359
|
+
wr[e.annotation] = e;
|
|
3359
3360
|
});
|
|
3360
|
-
var
|
|
3361
|
+
var ql = (e, t, n) => {
|
|
3361
3362
|
if (Le(t))
|
|
3362
3363
|
switch (t[0]) {
|
|
3363
3364
|
case "symbol":
|
|
3364
|
-
return Er.untransform(e, t, n);
|
|
3365
|
-
case "class":
|
|
3366
3365
|
return Ar.untransform(e, t, n);
|
|
3366
|
+
case "class":
|
|
3367
|
+
return _r.untransform(e, t, n);
|
|
3367
3368
|
case "custom":
|
|
3368
|
-
return
|
|
3369
|
+
return Pr.untransform(e, t, n);
|
|
3369
3370
|
case "typed-array":
|
|
3370
|
-
return
|
|
3371
|
+
return Tr.untransform(e, t, n);
|
|
3371
3372
|
default:
|
|
3372
3373
|
throw new Error("Unknown transformation: " + t);
|
|
3373
3374
|
}
|
|
3374
3375
|
else {
|
|
3375
|
-
const s =
|
|
3376
|
+
const s = wr[t];
|
|
3376
3377
|
if (!s)
|
|
3377
3378
|
throw new Error("Unknown transformation: " + t);
|
|
3378
3379
|
return s.untransform(e, n);
|
|
@@ -3385,7 +3386,7 @@ var Vl = (e, t, n) => {
|
|
|
3385
3386
|
n.next(), t--;
|
|
3386
3387
|
return n.next().value;
|
|
3387
3388
|
};
|
|
3388
|
-
function
|
|
3389
|
+
function vr(e) {
|
|
3389
3390
|
if (Ft(e, "__proto__"))
|
|
3390
3391
|
throw new Error("__proto__ is not allowed as a property");
|
|
3391
3392
|
if (Ft(e, "prototype"))
|
|
@@ -3393,8 +3394,8 @@ function _r(e) {
|
|
|
3393
3394
|
if (Ft(e, "constructor"))
|
|
3394
3395
|
throw new Error("constructor is not allowed as a property");
|
|
3395
3396
|
}
|
|
3396
|
-
var
|
|
3397
|
-
|
|
3397
|
+
var $l = (e, t) => {
|
|
3398
|
+
vr(t);
|
|
3398
3399
|
for (let n = 0; n < t.length; n++) {
|
|
3399
3400
|
const s = t[n];
|
|
3400
3401
|
if (Et(e))
|
|
@@ -3413,8 +3414,8 @@ var Hl = (e, t) => {
|
|
|
3413
3414
|
e = e[s];
|
|
3414
3415
|
}
|
|
3415
3416
|
return e;
|
|
3416
|
-
},
|
|
3417
|
-
if (
|
|
3417
|
+
}, vn = (e, t, n) => {
|
|
3418
|
+
if (vr(t), t.length === 0)
|
|
3418
3419
|
return n(e);
|
|
3419
3420
|
let s = e;
|
|
3420
3421
|
for (let a = 0; a < t.length - 1; a++) {
|
|
@@ -3462,45 +3463,45 @@ var Hl = (e, t) => {
|
|
|
3462
3463
|
}
|
|
3463
3464
|
return e;
|
|
3464
3465
|
};
|
|
3465
|
-
function
|
|
3466
|
+
function bn(e, t, n = []) {
|
|
3466
3467
|
if (!e)
|
|
3467
3468
|
return;
|
|
3468
3469
|
if (!Le(e)) {
|
|
3469
|
-
rt(e, (a, i) =>
|
|
3470
|
+
rt(e, (a, i) => bn(a, t, [...n, ...ut(i)]));
|
|
3470
3471
|
return;
|
|
3471
3472
|
}
|
|
3472
3473
|
const [s, r] = e;
|
|
3473
3474
|
r && rt(r, (a, i) => {
|
|
3474
|
-
|
|
3475
|
+
bn(a, t, [...n, ...ut(i)]);
|
|
3475
3476
|
}), t(s, n);
|
|
3476
3477
|
}
|
|
3477
|
-
function
|
|
3478
|
-
return
|
|
3479
|
-
e =
|
|
3478
|
+
function Ql(e, t, n) {
|
|
3479
|
+
return bn(t, (s, r) => {
|
|
3480
|
+
e = vn(e, r, (a) => ql(a, s, n));
|
|
3480
3481
|
}), e;
|
|
3481
3482
|
}
|
|
3482
|
-
function
|
|
3483
|
+
function zl(e, t) {
|
|
3483
3484
|
function n(s, r) {
|
|
3484
|
-
const a =
|
|
3485
|
+
const a = $l(e, ut(r));
|
|
3485
3486
|
s.map(ut).forEach((i) => {
|
|
3486
|
-
e =
|
|
3487
|
+
e = vn(e, i, () => a);
|
|
3487
3488
|
});
|
|
3488
3489
|
}
|
|
3489
3490
|
if (Le(t)) {
|
|
3490
3491
|
const [s, r] = t;
|
|
3491
3492
|
s.forEach((a) => {
|
|
3492
|
-
e =
|
|
3493
|
+
e = vn(e, ut(a), () => e);
|
|
3493
3494
|
}), r && rt(r, n);
|
|
3494
3495
|
} else
|
|
3495
3496
|
rt(t, n);
|
|
3496
3497
|
return e;
|
|
3497
3498
|
}
|
|
3498
|
-
var
|
|
3499
|
-
function
|
|
3499
|
+
var jl = (e, t) => gt(e) || Le(e) || mt(e) || Et(e) || Sr(e, t);
|
|
3500
|
+
function Wl(e, t, n) {
|
|
3500
3501
|
const s = n.get(e);
|
|
3501
3502
|
s ? s.push(t) : n.set(e, [t]);
|
|
3502
3503
|
}
|
|
3503
|
-
function
|
|
3504
|
+
function Yl(e, t) {
|
|
3504
3505
|
const n = {};
|
|
3505
3506
|
let s;
|
|
3506
3507
|
return e.forEach((r) => {
|
|
@@ -3508,21 +3509,21 @@ function jl(e, t) {
|
|
|
3508
3509
|
return;
|
|
3509
3510
|
t || (r = r.map((o) => o.map(String)).sort((o, l) => o.length - l.length));
|
|
3510
3511
|
const [a, ...i] = r;
|
|
3511
|
-
a.length === 0 ? s = i.map(
|
|
3512
|
-
}), s ?
|
|
3512
|
+
a.length === 0 ? s = i.map(mn) : n[mn(a)] = i.map(mn);
|
|
3513
|
+
}), s ? wn(n) ? [s] : [s, n] : wn(n) ? void 0 : n;
|
|
3513
3514
|
}
|
|
3514
|
-
var
|
|
3515
|
-
const o =
|
|
3515
|
+
var br = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
3516
|
+
const o = Ul(e);
|
|
3516
3517
|
if (!o) {
|
|
3517
|
-
|
|
3518
|
+
Wl(e, r, t);
|
|
3518
3519
|
const h = i.get(e);
|
|
3519
3520
|
if (h)
|
|
3520
3521
|
return s ? {
|
|
3521
3522
|
transformedValue: null
|
|
3522
3523
|
} : h;
|
|
3523
3524
|
}
|
|
3524
|
-
if (!
|
|
3525
|
-
const h =
|
|
3525
|
+
if (!jl(e, n)) {
|
|
3526
|
+
const h = ds(e, n), p = h ? {
|
|
3526
3527
|
transformedValue: h.value,
|
|
3527
3528
|
annotations: [h.type]
|
|
3528
3529
|
} : {
|
|
@@ -3534,16 +3535,16 @@ var Pr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3534
3535
|
return {
|
|
3535
3536
|
transformedValue: null
|
|
3536
3537
|
};
|
|
3537
|
-
const l =
|
|
3538
|
+
const l = ds(e, n), d = (l == null ? void 0 : l.value) ?? e, u = Le(d) ? [] : {}, f = {};
|
|
3538
3539
|
rt(d, (h, p) => {
|
|
3539
3540
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
3540
3541
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3541
|
-
const T =
|
|
3542
|
+
const T = br(h, t, n, s, [...r, p], [...a, e], i);
|
|
3542
3543
|
u[p] = T.transformedValue, Le(T.annotations) ? f[p] = T.annotations : gt(T.annotations) && rt(T.annotations, (S, D) => {
|
|
3543
|
-
f[
|
|
3544
|
+
f[pr(p) + "." + D] = S;
|
|
3544
3545
|
});
|
|
3545
3546
|
});
|
|
3546
|
-
const g =
|
|
3547
|
+
const g = wn(f) ? {
|
|
3547
3548
|
transformedValue: u,
|
|
3548
3549
|
annotations: l ? [l.type] : void 0
|
|
3549
3550
|
} : {
|
|
@@ -3552,19 +3553,19 @@ var Pr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3552
3553
|
};
|
|
3553
3554
|
return o || i.set(e, g), g;
|
|
3554
3555
|
};
|
|
3555
|
-
function
|
|
3556
|
+
function Ir(e) {
|
|
3556
3557
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
3557
3558
|
}
|
|
3558
|
-
function
|
|
3559
|
-
return
|
|
3559
|
+
function fs(e) {
|
|
3560
|
+
return Ir(e) === "Array";
|
|
3560
3561
|
}
|
|
3561
|
-
function
|
|
3562
|
-
if (
|
|
3562
|
+
function Jl(e) {
|
|
3563
|
+
if (Ir(e) !== "Object")
|
|
3563
3564
|
return !1;
|
|
3564
3565
|
const t = Object.getPrototypeOf(e);
|
|
3565
3566
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
3566
3567
|
}
|
|
3567
|
-
function
|
|
3568
|
+
function Zl(e, t, n, s, r) {
|
|
3568
3569
|
const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
|
|
3569
3570
|
a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
3570
3571
|
value: n,
|
|
@@ -3573,17 +3574,17 @@ function Yl(e, t, n, s, r) {
|
|
|
3573
3574
|
configurable: !0
|
|
3574
3575
|
});
|
|
3575
3576
|
}
|
|
3576
|
-
function
|
|
3577
|
-
if (
|
|
3578
|
-
return e.map((r) =>
|
|
3579
|
-
if (!
|
|
3577
|
+
function In(e, t = {}) {
|
|
3578
|
+
if (fs(e))
|
|
3579
|
+
return e.map((r) => In(r, t));
|
|
3580
|
+
if (!Jl(e))
|
|
3580
3581
|
return e;
|
|
3581
3582
|
const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
|
|
3582
3583
|
return [...n, ...s].reduce((r, a) => {
|
|
3583
|
-
if (
|
|
3584
|
+
if (fs(t.props) && !t.props.includes(a))
|
|
3584
3585
|
return r;
|
|
3585
|
-
const i = e[a], o =
|
|
3586
|
-
return
|
|
3586
|
+
const i = e[a], o = In(i, t);
|
|
3587
|
+
return Zl(r, a, o, e, t.nonenumerable), r;
|
|
3587
3588
|
}, {});
|
|
3588
3589
|
}
|
|
3589
3590
|
var R = class {
|
|
@@ -3591,17 +3592,17 @@ var R = class {
|
|
|
3591
3592
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3592
3593
|
*/
|
|
3593
3594
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3594
|
-
this.classRegistry = new
|
|
3595
|
+
this.classRegistry = new vl(), this.symbolRegistry = new gr((t) => t.description ?? ""), this.customTransformerRegistry = new Ll(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3595
3596
|
}
|
|
3596
3597
|
serialize(e) {
|
|
3597
|
-
const t = /* @__PURE__ */ new Map(), n =
|
|
3598
|
+
const t = /* @__PURE__ */ new Map(), n = br(e, t, this, this.dedupe), s = {
|
|
3598
3599
|
json: n.transformedValue
|
|
3599
3600
|
};
|
|
3600
3601
|
n.annotations && (s.meta = {
|
|
3601
3602
|
...s.meta,
|
|
3602
3603
|
values: n.annotations
|
|
3603
3604
|
});
|
|
3604
|
-
const r =
|
|
3605
|
+
const r = Yl(t, this.dedupe);
|
|
3605
3606
|
return r && (s.meta = {
|
|
3606
3607
|
...s.meta,
|
|
3607
3608
|
referentialEqualities: r
|
|
@@ -3609,8 +3610,8 @@ var R = class {
|
|
|
3609
3610
|
}
|
|
3610
3611
|
deserialize(e) {
|
|
3611
3612
|
const { json: t, meta: n } = e;
|
|
3612
|
-
let s =
|
|
3613
|
-
return n != null && n.values && (s =
|
|
3613
|
+
let s = In(t);
|
|
3614
|
+
return n != null && n.values && (s = Ql(s, n.values, this)), n != null && n.referentialEqualities && (s = zl(s, n.referentialEqualities)), s;
|
|
3614
3615
|
}
|
|
3615
3616
|
stringify(e) {
|
|
3616
3617
|
return JSON.stringify(this.serialize(e));
|
|
@@ -3643,44 +3644,44 @@ R.registerClass = R.defaultInstance.registerClass.bind(R.defaultInstance);
|
|
|
3643
3644
|
R.registerSymbol = R.defaultInstance.registerSymbol.bind(R.defaultInstance);
|
|
3644
3645
|
R.registerCustom = R.defaultInstance.registerCustom.bind(R.defaultInstance);
|
|
3645
3646
|
R.allowErrorProps = R.defaultInstance.allowErrorProps.bind(R.defaultInstance);
|
|
3646
|
-
var
|
|
3647
|
-
function
|
|
3647
|
+
var Xl = R.serialize, Pu = R.stringify;
|
|
3648
|
+
function wu(e) {
|
|
3648
3649
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
|
3649
3650
|
}
|
|
3650
|
-
function
|
|
3651
|
+
function vu(e, t) {
|
|
3651
3652
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
|
3652
3653
|
}
|
|
3653
|
-
function
|
|
3654
|
+
function bu({
|
|
3654
3655
|
queryState: e,
|
|
3655
3656
|
observerCount: t,
|
|
3656
3657
|
isStale: n
|
|
3657
3658
|
}) {
|
|
3658
3659
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
|
|
3659
3660
|
}
|
|
3660
|
-
function
|
|
3661
|
+
function Iu({
|
|
3661
3662
|
status: e,
|
|
3662
3663
|
isPaused: t
|
|
3663
3664
|
}) {
|
|
3664
3665
|
return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
|
|
3665
3666
|
}
|
|
3666
|
-
function
|
|
3667
|
+
function Lu(e) {
|
|
3667
3668
|
return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
|
|
3668
3669
|
}
|
|
3669
|
-
var
|
|
3670
|
+
var Nu = (e, t = !1) => {
|
|
3670
3671
|
const {
|
|
3671
3672
|
json: n
|
|
3672
|
-
} =
|
|
3673
|
+
} = Xl(e);
|
|
3673
3674
|
return JSON.stringify(n, null, t ? 2 : void 0);
|
|
3674
|
-
}, Rt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3,
|
|
3675
|
-
status:
|
|
3676
|
-
"query hash":
|
|
3677
|
-
"last updated":
|
|
3678
|
-
}, kt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3,
|
|
3679
|
-
status:
|
|
3680
|
-
"last updated":
|
|
3681
|
-
},
|
|
3675
|
+
}, Rt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ec = (e, t) => e.queryHash.localeCompare(t.queryHash), Lr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, tc = (e, t) => Rt(e) === Rt(t) ? Lr(e, t) : Rt(e) > Rt(t) ? 1 : -1, Cu = {
|
|
3676
|
+
status: tc,
|
|
3677
|
+
"query hash": ec,
|
|
3678
|
+
"last updated": Lr
|
|
3679
|
+
}, kt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Nr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, nc = (e, t) => kt(e) === kt(t) ? Nr(e, t) : kt(e) > kt(t) ? 1 : -1, Gu = {
|
|
3680
|
+
status: nc,
|
|
3681
|
+
"last updated": Nr
|
|
3682
|
+
}, Ou = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Du = () => {
|
|
3682
3683
|
const [e, t] = F("dark");
|
|
3683
|
-
return
|
|
3684
|
+
return Fo(() => {
|
|
3684
3685
|
const n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
3685
3686
|
t(n.matches ? "dark" : "light");
|
|
3686
3687
|
const s = (r) => {
|
|
@@ -3748,11 +3749,11 @@ var Iu = (e, t = !1) => {
|
|
|
3748
3749
|
return n[s] = Mt(n[s], r), n;
|
|
3749
3750
|
}
|
|
3750
3751
|
return e;
|
|
3751
|
-
},
|
|
3752
|
+
}, Cr = (e, t) => {
|
|
3752
3753
|
if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
|
|
3753
3754
|
const s = document.createElement("style"), r = document.createTextNode("");
|
|
3754
3755
|
s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
|
|
3755
|
-
}, He, pt, yt, At, Oe, Tt, qe, $e, Qe, ze, je, St, We, _t,
|
|
3756
|
+
}, He, pt, yt, At, Oe, Tt, qe, $e, Qe, ze, je, St, We, _t, Es, sc = (Es = class {
|
|
3756
3757
|
constructor(e) {
|
|
3757
3758
|
O(this, He);
|
|
3758
3759
|
O(this, pt);
|
|
@@ -3801,10 +3802,10 @@ var Iu = (e, t = !1) => {
|
|
|
3801
3802
|
mount(e) {
|
|
3802
3803
|
if (A(this, Oe))
|
|
3803
3804
|
throw new Error("Devtools is already mounted");
|
|
3804
|
-
const t =
|
|
3805
|
+
const t = dr(() => {
|
|
3805
3806
|
const n = this, [s] = A(this, $e), [r] = A(this, Qe), [a] = A(this, ze), [i] = A(this, je), [o] = A(this, St), [l] = A(this, He);
|
|
3806
3807
|
let d;
|
|
3807
|
-
return A(this, We) ? d = A(this, We) : (d =
|
|
3808
|
+
return A(this, We) ? d = A(this, We) : (d = cr(() => import("./NCMVHL6D-B3xcD0Vz.js")), G(this, We, d)), Cr(A(this, Tt), A(this, qe)), or(d, lr({
|
|
3808
3809
|
get queryFlavor() {
|
|
3809
3810
|
return A(n, yt);
|
|
3810
3811
|
},
|
|
@@ -3846,7 +3847,7 @@ var Iu = (e, t = !1) => {
|
|
|
3846
3847
|
throw new Error("Devtools is not mounted");
|
|
3847
3848
|
(e = A(this, _t)) == null || e.call(this), G(this, Oe, !1);
|
|
3848
3849
|
}
|
|
3849
|
-
}, He = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), At = new WeakMap(), Oe = new WeakMap(), Tt = new WeakMap(), qe = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), je = new WeakMap(), St = new WeakMap(), We = new WeakMap(), _t = new WeakMap(),
|
|
3850
|
+
}, He = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), At = new WeakMap(), Oe = new WeakMap(), Tt = new WeakMap(), qe = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), je = new WeakMap(), St = new WeakMap(), We = new WeakMap(), _t = new WeakMap(), Es), Ye, Pt, wt, vt, De, bt, Je, Ze, Xe, et, tt, It, nt, st, Lt, ps, rc = (ps = class {
|
|
3850
3851
|
constructor(e) {
|
|
3851
3852
|
O(this, Ye);
|
|
3852
3853
|
O(this, Pt);
|
|
@@ -3900,10 +3901,10 @@ var Iu = (e, t = !1) => {
|
|
|
3900
3901
|
mount(e) {
|
|
3901
3902
|
if (A(this, De))
|
|
3902
3903
|
throw new Error("Devtools is already mounted");
|
|
3903
|
-
const t =
|
|
3904
|
+
const t = dr(() => {
|
|
3904
3905
|
const n = this, [s] = A(this, Ze), [r] = A(this, Xe), [a] = A(this, et), [i] = A(this, tt), [o] = A(this, It), [l] = A(this, Ye), [d] = A(this, nt);
|
|
3905
3906
|
let u;
|
|
3906
|
-
return A(this, st) ? u = A(this, st) : (u =
|
|
3907
|
+
return A(this, st) ? u = A(this, st) : (u = cr(() => import("./2AITGKQY-Ir_ZXu1s.js")), G(this, st, u)), Cr(A(this, bt), A(this, Je)), or(u, lr({
|
|
3907
3908
|
get queryFlavor() {
|
|
3908
3909
|
return A(n, wt);
|
|
3909
3910
|
},
|
|
@@ -3948,8 +3949,8 @@ var Iu = (e, t = !1) => {
|
|
|
3948
3949
|
throw new Error("Devtools is not mounted");
|
|
3949
3950
|
(e = A(this, Lt)) == null || e.call(this), G(this, De, !1);
|
|
3950
3951
|
}
|
|
3951
|
-
}, Ye = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), vt = new WeakMap(), De = new WeakMap(), bt = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), It = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), Lt = new WeakMap(),
|
|
3952
|
-
function
|
|
3952
|
+
}, Ye = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), vt = new WeakMap(), De = new WeakMap(), bt = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), It = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), Lt = new WeakMap(), ps);
|
|
3953
|
+
function ac(e) {
|
|
3953
3954
|
const t = J(e.client), n = Q.useRef(null), {
|
|
3954
3955
|
buttonPosition: s,
|
|
3955
3956
|
position: r,
|
|
@@ -3959,11 +3960,11 @@ function sc(e) {
|
|
|
3959
3960
|
shadowDOMTarget: l,
|
|
3960
3961
|
hideDisabledQueries: d
|
|
3961
3962
|
} = e, [u] = Q.useState(
|
|
3962
|
-
new
|
|
3963
|
+
new sc({
|
|
3963
3964
|
client: t,
|
|
3964
3965
|
queryFlavor: "React Query",
|
|
3965
3966
|
version: "5",
|
|
3966
|
-
onlineManager:
|
|
3967
|
+
onlineManager: ws,
|
|
3967
3968
|
buttonPosition: s,
|
|
3968
3969
|
position: r,
|
|
3969
3970
|
initialIsOpen: a,
|
|
@@ -3987,13 +3988,13 @@ function sc(e) {
|
|
|
3987
3988
|
u.unmount();
|
|
3988
3989
|
}), [u]), /* @__PURE__ */ c("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
|
|
3989
3990
|
}
|
|
3990
|
-
function
|
|
3991
|
+
function ic(e) {
|
|
3991
3992
|
const t = J(e.client), n = Q.useRef(null), { errorTypes: s, styleNonce: r, shadowDOMTarget: a, hideDisabledQueries: i } = e, [o] = Q.useState(
|
|
3992
|
-
new
|
|
3993
|
+
new rc({
|
|
3993
3994
|
client: t,
|
|
3994
3995
|
queryFlavor: "React Query",
|
|
3995
3996
|
version: "5",
|
|
3996
|
-
onlineManager:
|
|
3997
|
+
onlineManager: ws,
|
|
3997
3998
|
buttonPosition: "bottom-left",
|
|
3998
3999
|
position: "bottom",
|
|
3999
4000
|
initialIsOpen: !0,
|
|
@@ -4022,26 +4023,26 @@ function rc(e) {
|
|
|
4022
4023
|
}
|
|
4023
4024
|
);
|
|
4024
4025
|
}
|
|
4025
|
-
var
|
|
4026
|
+
var hs = process.env.NODE_ENV !== "development" ? function() {
|
|
4026
4027
|
return null;
|
|
4027
|
-
} :
|
|
4028
|
+
} : ac;
|
|
4028
4029
|
process.env.NODE_ENV;
|
|
4029
|
-
const
|
|
4030
|
-
|
|
4030
|
+
const oc = Ee(""), lc = () => {
|
|
4031
|
+
an("dynamic-page-selector", {
|
|
4031
4032
|
description: "Dynamic page selector"
|
|
4032
|
-
}),
|
|
4033
|
+
}), an("enable-add-page-dropdown", {
|
|
4033
4034
|
description: "Enable add page dropdown"
|
|
4034
|
-
}),
|
|
4035
|
+
}), an("enable-ai-chat-panel", {
|
|
4035
4036
|
description: "Enable AI chat panel"
|
|
4036
4037
|
});
|
|
4037
|
-
},
|
|
4038
|
+
}, cc = () => {
|
|
4038
4039
|
const e = C(), t = L();
|
|
4039
4040
|
return oe({
|
|
4040
4041
|
queryKey: [E.GET_COLLECTIONS],
|
|
4041
4042
|
staleTime: 1 / 0,
|
|
4042
4043
|
queryFn: async () => t(e, { action: E.GET_COLLECTIONS })
|
|
4043
4044
|
});
|
|
4044
|
-
},
|
|
4045
|
+
}, uc = () => {
|
|
4045
4046
|
const { data: e } = ce(), { data: t } = Ne(), { data: n } = Be(), s = C(), r = L(), a = q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = Ie(/* @__PURE__ */ new Map());
|
|
4046
4047
|
return Y({
|
|
4047
4048
|
mutationFn: async ({ block: o }) => {
|
|
@@ -4072,7 +4073,7 @@ const ac = Ee(""), ic = () => {
|
|
|
4072
4073
|
}), f;
|
|
4073
4074
|
}
|
|
4074
4075
|
});
|
|
4075
|
-
},
|
|
4076
|
+
}, dc = () => {
|
|
4076
4077
|
const [, e] = we();
|
|
4077
4078
|
return z(
|
|
4078
4079
|
(t, n) => {
|
|
@@ -4081,54 +4082,54 @@ const ac = Ee(""), ic = () => {
|
|
|
4081
4082
|
},
|
|
4082
4083
|
[e]
|
|
4083
4084
|
);
|
|
4084
|
-
},
|
|
4085
|
-
const e =
|
|
4085
|
+
}, fc = () => {
|
|
4086
|
+
const e = dc();
|
|
4086
4087
|
return z(
|
|
4087
4088
|
({ pageId: t }) => {
|
|
4088
4089
|
e(t);
|
|
4089
4090
|
},
|
|
4090
4091
|
[e]
|
|
4091
4092
|
);
|
|
4092
|
-
},
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
const
|
|
4093
|
+
}, hc = V(() => import("./page-lock-DNrP3AhL.js")), gc = V(() => import("./no-language-page-dialog-DgaP74-Y.js")), mc = V(() => import("./digital-asset-manager-BxbX7ji1.js")), Ec = V(() => import("./save-to-lib-CQmcDI5w.js")), pc = V(() => import("./theme-panel-footer-2qsvp4AM.js")), yc = V(() => import("./web-preview-BKoPv6AO.js"));
|
|
4094
|
+
lc();
|
|
4095
|
+
ii();
|
|
4096
|
+
aa(uo);
|
|
4097
|
+
xo();
|
|
4098
|
+
ia(mc);
|
|
4099
|
+
oa(Ec);
|
|
4100
|
+
const Ac = {
|
|
4100
4101
|
role: "",
|
|
4101
4102
|
permissions: null
|
|
4102
|
-
},
|
|
4103
|
-
const { data: t } =
|
|
4103
|
+
}, gs = (e) => {
|
|
4104
|
+
const { data: t } = yo(), n = Un(), { data: s = Ac, isFetching: r } = Ao(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = cc(), { data: d, isFetching: u } = Be(), f = r || i || l || u, [g] = we(), h = g.get("page"), { data: p } = ce(), { data: T, isFetching: S } = mo(), { blocks: D } = go(T), { data: y, isFetching: w } = Eo(), { pageStatus: v } = pe(), U = fo(), { onSave: b } = To(), { mutateAsync: ye } = uc(), { getPartialBlocks: Ae, getPartialBlockBlocks: B } = So(), { mutateAsync: P } = Mi(), { mutateAsync: I } = po(), j = fc(), [$, ue] = K(!1), it = Ie([]), be = q(() => H(d, "theme", {}) || {}, [d]), ot = v === te.EDITING, Ge = v === te.CHECKING, Fn = S || Ge || w;
|
|
4104
4105
|
it.current = D;
|
|
4105
|
-
const [
|
|
4106
|
+
const [Gr] = ie(oc);
|
|
4106
4107
|
ne(() => {
|
|
4107
4108
|
const re = () => {
|
|
4108
4109
|
document.hidden ? ue(!0) : ue(!1);
|
|
4109
4110
|
};
|
|
4110
4111
|
return window.addEventListener("visibilitychange", re), () => window.removeEventListener("visibilitychange", re);
|
|
4111
4112
|
}, []);
|
|
4112
|
-
const
|
|
4113
|
+
const Or = q(() => {
|
|
4113
4114
|
const re = {};
|
|
4114
4115
|
return s && (re.permissions = H(s, "permissions", null), re.role = H(s, "role", "user")), re;
|
|
4115
|
-
}, [s]),
|
|
4116
|
+
}, [s]), Kn = q(() => t == null ? void 0 : t.some((re) => re.isSiteLibrary), [t]), Dr = z(
|
|
4116
4117
|
async (re, Ct) => await P({ pageType: re, query: Ct }),
|
|
4117
4118
|
[P]
|
|
4118
4119
|
);
|
|
4119
4120
|
return /* @__PURE__ */ m(ge, { children: [
|
|
4120
|
-
|
|
4121
|
-
|
|
4121
|
+
Fn && /* @__PURE__ */ c(Hs, { className: f ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ c(Ht, { className: `animate-spin text-primary ${f ? "h-6 w-6" : "h-5 w-5"}` }) }),
|
|
4122
|
+
Gr && /* @__PURE__ */ c(
|
|
4122
4123
|
X,
|
|
4123
4124
|
{
|
|
4124
4125
|
fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c(Ht, { className: "h-6 w-6 animate-spin text-primary" }) }),
|
|
4125
|
-
children: /* @__PURE__ */ c(
|
|
4126
|
+
children: /* @__PURE__ */ c(yc, {})
|
|
4126
4127
|
}
|
|
4127
4128
|
),
|
|
4128
4129
|
/* @__PURE__ */ c(
|
|
4129
|
-
|
|
4130
|
+
la,
|
|
4130
4131
|
{
|
|
4131
|
-
flags: e.flags ? { ...e.flags, librarySite:
|
|
4132
|
+
flags: e.flags ? { ...e.flags, librarySite: Kn } : { librarySite: Kn },
|
|
4132
4133
|
gotoPage: j,
|
|
4133
4134
|
collections: o ?? [],
|
|
4134
4135
|
getBlockAsyncProps: ye,
|
|
@@ -4139,6 +4140,7 @@ const pc = {
|
|
|
4139
4140
|
fallbackLang: n,
|
|
4140
4141
|
languages: (d == null ? void 0 : d.languages) || [],
|
|
4141
4142
|
brandingOptions: (d == null ? void 0 : d.theme) || {},
|
|
4143
|
+
designTokens: (d == null ? void 0 : d.designTokens) || {},
|
|
4142
4144
|
translations: e.translations || {},
|
|
4143
4145
|
locale: e.locale || "en",
|
|
4144
4146
|
htmlDir: e.htmlDir || "ltr",
|
|
@@ -4148,24 +4150,26 @@ const pc = {
|
|
|
4148
4150
|
getPartialBlockBlocks: B,
|
|
4149
4151
|
getPartialBlocks: Ae,
|
|
4150
4152
|
blocks: S ? [] : D,
|
|
4151
|
-
theme:
|
|
4153
|
+
theme: zr(be),
|
|
4152
4154
|
pageTypes: a,
|
|
4153
|
-
searchPageTypeItems:
|
|
4155
|
+
searchPageTypeItems: Dr,
|
|
4154
4156
|
askAiCallBack: U,
|
|
4155
|
-
onSave: async ({ blocks: re, theme: Ct, needTranslations:
|
|
4157
|
+
onSave: async ({ blocks: re, theme: Ct, needTranslations: xr, designTokens: Vn }) => {
|
|
4156
4158
|
if (!h) return !0;
|
|
4157
4159
|
it.current = re;
|
|
4158
|
-
const
|
|
4159
|
-
|
|
4160
|
+
const Hn = [...re];
|
|
4161
|
+
await b({ page: h, blocks: Hn, needTranslations: xr }), it.current = Hn;
|
|
4162
|
+
const rn = {};
|
|
4163
|
+
return zn(Ct, be) || (rn.theme = Ct), zn(Vn, d == null ? void 0 : d.designTokens) || (rn.designTokens = Vn), await I({ settings: rn }), !0;
|
|
4160
4164
|
},
|
|
4161
|
-
themePanelComponent:
|
|
4162
|
-
...
|
|
4163
|
-
children: /* @__PURE__ */ c(
|
|
4165
|
+
themePanelComponent: pc,
|
|
4166
|
+
...Or,
|
|
4167
|
+
children: /* @__PURE__ */ c(hc, { isFetchingPageData: Fn })
|
|
4164
4168
|
}
|
|
4165
4169
|
),
|
|
4166
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
4170
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(gc, {}) })
|
|
4167
4171
|
] });
|
|
4168
|
-
},
|
|
4172
|
+
}, Tc = new Jr({
|
|
4169
4173
|
defaultOptions: {
|
|
4170
4174
|
queries: {
|
|
4171
4175
|
refetchOnWindowFocus: !1,
|
|
@@ -4173,10 +4177,10 @@ const pc = {
|
|
|
4173
4177
|
refetchOnMount: !1
|
|
4174
4178
|
}
|
|
4175
4179
|
}
|
|
4176
|
-
}),
|
|
4177
|
-
const [, t] =
|
|
4180
|
+
}), xu = (e) => {
|
|
4181
|
+
const [, t] = On(), [n, s] = K(!1);
|
|
4178
4182
|
return ne(() => (t(
|
|
4179
|
-
|
|
4183
|
+
Ln(e, [
|
|
4180
4184
|
"apiUrl",
|
|
4181
4185
|
"usersApiUrl",
|
|
4182
4186
|
"assetsApiUrl",
|
|
@@ -4195,18 +4199,18 @@ const pc = {
|
|
|
4195
4199
|
}, 200), () => {
|
|
4196
4200
|
s(!1), t({});
|
|
4197
4201
|
}), [e, t]), n ? H(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(ge, { children: [
|
|
4198
|
-
/* @__PURE__ */ c(
|
|
4199
|
-
/* @__PURE__ */ c(
|
|
4200
|
-
] }) : /* @__PURE__ */ m(
|
|
4201
|
-
/* @__PURE__ */ c(
|
|
4202
|
-
/* @__PURE__ */ c(
|
|
4202
|
+
/* @__PURE__ */ c(gs, { ...e }),
|
|
4203
|
+
/* @__PURE__ */ c(hs, {})
|
|
4204
|
+
] }) : /* @__PURE__ */ m(Zr, { client: Tc, children: [
|
|
4205
|
+
/* @__PURE__ */ c(gs, { ...e }),
|
|
4206
|
+
/* @__PURE__ */ c(hs, {})
|
|
4203
4207
|
] }) : /* @__PURE__ */ c("div", {});
|
|
4204
|
-
},
|
|
4205
|
-
function
|
|
4208
|
+
}, Sc = Q.lazy(() => import("./nested-path-selector-content-DvIL_EoN.js"));
|
|
4209
|
+
function _c({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
4206
4210
|
const [r, a] = Q.useState(!1);
|
|
4207
|
-
return /* @__PURE__ */ m(
|
|
4211
|
+
return /* @__PURE__ */ m(ba, { open: r, onOpenChange: a, children: [
|
|
4208
4212
|
/* @__PURE__ */ m(Jt, { children: [
|
|
4209
|
-
/* @__PURE__ */ c(Zt, { asChild: !0, children: /* @__PURE__ */ c(
|
|
4213
|
+
/* @__PURE__ */ c(Zt, { asChild: !0, children: /* @__PURE__ */ c(Ia, { asChild: !0, children: /* @__PURE__ */ c(
|
|
4210
4214
|
M,
|
|
4211
4215
|
{
|
|
4212
4216
|
size: "sm",
|
|
@@ -4230,7 +4234,7 @@ function Tc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4230
4234
|
/* @__PURE__ */ c(Xt, { children: "Add field" })
|
|
4231
4235
|
] }),
|
|
4232
4236
|
r && /* @__PURE__ */ c(Q.Suspense, { children: /* @__PURE__ */ c(
|
|
4233
|
-
|
|
4237
|
+
Sc,
|
|
4234
4238
|
{
|
|
4235
4239
|
data: e,
|
|
4236
4240
|
onSelect: t,
|
|
@@ -4241,17 +4245,17 @@ function Tc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4241
4245
|
) })
|
|
4242
4246
|
] });
|
|
4243
4247
|
}
|
|
4244
|
-
const
|
|
4248
|
+
const Ru = () => {
|
|
4245
4249
|
const { savePageAsync: e } = ke(), t = J(), { isLocked: n } = pe();
|
|
4246
4250
|
return z(async () => {
|
|
4247
4251
|
n || await e(), t.invalidateQueries({ queryKey: [E.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [E.GET_BUILDER_PAGE_DATA] });
|
|
4248
4252
|
}, [e, t, n]);
|
|
4249
|
-
},
|
|
4253
|
+
}, ku = () => {
|
|
4250
4254
|
const e = J();
|
|
4251
4255
|
return z(() => {
|
|
4252
4256
|
e.clear();
|
|
4253
4257
|
}, [e]);
|
|
4254
|
-
},
|
|
4258
|
+
}, Uu = () => {
|
|
4255
4259
|
const e = C(), t = L(), { data: n } = Ne(), s = J();
|
|
4256
4260
|
return Y({
|
|
4257
4261
|
mutationFn: async (r) => {
|
|
@@ -4276,7 +4280,7 @@ const Du = () => {
|
|
|
4276
4280
|
console.error("Failed to update metadata");
|
|
4277
4281
|
}
|
|
4278
4282
|
});
|
|
4279
|
-
},
|
|
4283
|
+
}, Pc = V(() => import("./digital-asset-manager-BxbX7ji1.js")), Mu = ({
|
|
4280
4284
|
assetId: e,
|
|
4281
4285
|
assetUrl: t,
|
|
4282
4286
|
onChange: n,
|
|
@@ -4290,7 +4294,7 @@ const Du = () => {
|
|
|
4290
4294
|
l(!1);
|
|
4291
4295
|
}, f = (p) => {
|
|
4292
4296
|
const T = Array.isArray(p) ? p[0] : p;
|
|
4293
|
-
T != null && T.url && n(
|
|
4297
|
+
T != null && T.url && n(Ln(T, ["url", "id"])), l(!1);
|
|
4294
4298
|
}, g = () => {
|
|
4295
4299
|
n({ url: "", id: "" });
|
|
4296
4300
|
}, h = (t == null ? void 0 : t.startsWith("{{")) && (t == null ? void 0 : t.endsWith("}}"));
|
|
@@ -4315,7 +4319,7 @@ const Du = () => {
|
|
|
4315
4319
|
className: "h-8 w-8 rounded-full bg-white text-red-500",
|
|
4316
4320
|
onClick: g,
|
|
4317
4321
|
disabled: a,
|
|
4318
|
-
children: h ? /* @__PURE__ */ c(
|
|
4322
|
+
children: h ? /* @__PURE__ */ c(ts, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Za, { className: "h-4 w-4" })
|
|
4319
4323
|
}
|
|
4320
4324
|
),
|
|
4321
4325
|
!h && /* @__PURE__ */ c(
|
|
@@ -4327,7 +4331,7 @@ const Du = () => {
|
|
|
4327
4331
|
className: "h-8 w-8 rounded-full bg-white/80 hover:bg-white/90",
|
|
4328
4332
|
onClick: d,
|
|
4329
4333
|
disabled: a,
|
|
4330
|
-
children: /* @__PURE__ */ c(
|
|
4334
|
+
children: /* @__PURE__ */ c(ns, { className: "h-4 w-4" })
|
|
4331
4335
|
}
|
|
4332
4336
|
)
|
|
4333
4337
|
] })
|
|
@@ -4337,14 +4341,14 @@ const Du = () => {
|
|
|
4337
4341
|
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"}`,
|
|
4338
4342
|
onClick: d,
|
|
4339
4343
|
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-2", children: [
|
|
4340
|
-
/* @__PURE__ */ c(
|
|
4344
|
+
/* @__PURE__ */ c(ns, { className: "h-10 w-10 text-gray-400" }),
|
|
4341
4345
|
/* @__PURE__ */ c("p", { className: "text-sm text-gray-500", children: r })
|
|
4342
4346
|
] })
|
|
4343
4347
|
}
|
|
4344
4348
|
),
|
|
4345
|
-
/* @__PURE__ */ c(
|
|
4346
|
-
/* @__PURE__ */ m(
|
|
4347
|
-
/* @__PURE__ */ c(
|
|
4349
|
+
/* @__PURE__ */ c(Ns, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(La, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
|
|
4350
|
+
/* @__PURE__ */ m(Na, { className: "hidden border-b px-4 py-2", children: [
|
|
4351
|
+
/* @__PURE__ */ c(Ca, { children: i("Select Image") }),
|
|
4348
4352
|
/* @__PURE__ */ c(
|
|
4349
4353
|
M,
|
|
4350
4354
|
{
|
|
@@ -4353,12 +4357,12 @@ const Du = () => {
|
|
|
4353
4357
|
size: "icon",
|
|
4354
4358
|
className: "absolute right-4 top-2",
|
|
4355
4359
|
onClick: u,
|
|
4356
|
-
children: /* @__PURE__ */ c(
|
|
4360
|
+
children: /* @__PURE__ */ c(ts, { className: "h-4 w-4" })
|
|
4357
4361
|
}
|
|
4358
4362
|
)
|
|
4359
4363
|
] }),
|
|
4360
4364
|
/* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
4361
|
-
|
|
4365
|
+
Pc,
|
|
4362
4366
|
{
|
|
4363
4367
|
close: u,
|
|
4364
4368
|
onSelect: f,
|
|
@@ -4368,13 +4372,13 @@ const Du = () => {
|
|
|
4368
4372
|
) }) })
|
|
4369
4373
|
] }) })
|
|
4370
4374
|
] });
|
|
4371
|
-
},
|
|
4375
|
+
}, wc = Wr(null), En = {
|
|
4372
4376
|
didCatch: !1,
|
|
4373
4377
|
error: null
|
|
4374
4378
|
};
|
|
4375
|
-
class
|
|
4379
|
+
class vc extends Yr {
|
|
4376
4380
|
constructor(t) {
|
|
4377
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
4381
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = En;
|
|
4378
4382
|
}
|
|
4379
4383
|
static getDerivedStateFromError(t) {
|
|
4380
4384
|
return {
|
|
@@ -4392,7 +4396,7 @@ class Pc extends jr {
|
|
|
4392
4396
|
(n = (s = this.props).onReset) === null || n === void 0 || n.call(s, {
|
|
4393
4397
|
args: a,
|
|
4394
4398
|
reason: "imperative-api"
|
|
4395
|
-
}), this.setState(
|
|
4399
|
+
}), this.setState(En);
|
|
4396
4400
|
}
|
|
4397
4401
|
}
|
|
4398
4402
|
componentDidCatch(t, n) {
|
|
@@ -4405,13 +4409,13 @@ class Pc extends jr {
|
|
|
4405
4409
|
} = this.state, {
|
|
4406
4410
|
resetKeys: r
|
|
4407
4411
|
} = this.props;
|
|
4408
|
-
if (s && n.error !== null &&
|
|
4412
|
+
if (s && n.error !== null && bc(t.resetKeys, r)) {
|
|
4409
4413
|
var a, i;
|
|
4410
4414
|
(a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
|
|
4411
4415
|
next: r,
|
|
4412
4416
|
prev: t.resetKeys,
|
|
4413
4417
|
reason: "keys"
|
|
4414
|
-
}), this.setState(
|
|
4418
|
+
}), this.setState(En);
|
|
4415
4419
|
}
|
|
4416
4420
|
}
|
|
4417
4421
|
render() {
|
|
@@ -4433,13 +4437,13 @@ class Pc extends jr {
|
|
|
4433
4437
|
if (typeof n == "function")
|
|
4434
4438
|
o = n(l);
|
|
4435
4439
|
else if (s)
|
|
4436
|
-
o =
|
|
4440
|
+
o = jn(s, l);
|
|
4437
4441
|
else if (r !== void 0)
|
|
4438
4442
|
o = r;
|
|
4439
4443
|
else
|
|
4440
4444
|
throw i;
|
|
4441
4445
|
}
|
|
4442
|
-
return
|
|
4446
|
+
return jn(wc.Provider, {
|
|
4443
4447
|
value: {
|
|
4444
4448
|
didCatch: a,
|
|
4445
4449
|
error: i,
|
|
@@ -4448,11 +4452,11 @@ class Pc extends jr {
|
|
|
4448
4452
|
}, o);
|
|
4449
4453
|
}
|
|
4450
4454
|
}
|
|
4451
|
-
function
|
|
4455
|
+
function bc() {
|
|
4452
4456
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
4453
4457
|
return e.length !== t.length || e.some((n, s) => !Object.is(n, t[s]));
|
|
4454
4458
|
}
|
|
4455
|
-
const
|
|
4459
|
+
const Ic = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ms = (e) => {
|
|
4456
4460
|
if (!e.trim())
|
|
4457
4461
|
return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
|
|
4458
4462
|
try {
|
|
@@ -4487,13 +4491,13 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4487
4491
|
}
|
|
4488
4492
|
};
|
|
4489
4493
|
}
|
|
4490
|
-
},
|
|
4494
|
+
}, Lc = (e, t) => {
|
|
4491
4495
|
let s = JSON.stringify(e, null, 2);
|
|
4492
4496
|
return t.forEach(({ original: r }, a) => {
|
|
4493
|
-
const i = `"__placeholder_${a}__"`, o = new RegExp(
|
|
4497
|
+
const i = `"__placeholder_${a}__"`, o = new RegExp(Ic(i), "g");
|
|
4494
4498
|
s = s.replace(o, r);
|
|
4495
4499
|
}), s;
|
|
4496
|
-
},
|
|
4500
|
+
}, Nc = (e, t) => {
|
|
4497
4501
|
if (!e) return "";
|
|
4498
4502
|
let n = JSON.stringify(e, null, 2);
|
|
4499
4503
|
const s = /{{([^{}]+)}}/g;
|
|
@@ -4503,7 +4507,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4503
4507
|
n = n.replace(r[0], i);
|
|
4504
4508
|
}
|
|
4505
4509
|
return n;
|
|
4506
|
-
},
|
|
4510
|
+
}, Cc = V(() => import("./shared-json-ld-BUPafGh_.js")), Bu = ({
|
|
4507
4511
|
value: e,
|
|
4508
4512
|
onChange: t,
|
|
4509
4513
|
disabled: n = !1,
|
|
@@ -4516,7 +4520,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4516
4520
|
hasJsonLdForSelectedLang: d,
|
|
4517
4521
|
copyJsonLDFromDefaultPage: u
|
|
4518
4522
|
}) => {
|
|
4519
|
-
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), D = Ie(null), [y] =
|
|
4523
|
+
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), D = Ie(null), [y] = On(), w = i === "jsonLD" && H(y, "features.sharedJsonLD", !1), v = i === "jsonLD" && !d && !!u;
|
|
4520
4524
|
ne(() => {
|
|
4521
4525
|
e.trim() === "" && t("{}");
|
|
4522
4526
|
}, [e, t]);
|
|
@@ -4553,10 +4557,10 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4553
4557
|
}
|
|
4554
4558
|
};
|
|
4555
4559
|
ne(() => {
|
|
4556
|
-
const B =
|
|
4560
|
+
const B = ms(e);
|
|
4557
4561
|
if (B.isValid)
|
|
4558
4562
|
if (p(null), B.parsed) {
|
|
4559
|
-
const P =
|
|
4563
|
+
const P = Nc(B.parsed, o);
|
|
4560
4564
|
S(P);
|
|
4561
4565
|
} else
|
|
4562
4566
|
S("");
|
|
@@ -4564,48 +4568,48 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4564
4568
|
p(B.error), S("");
|
|
4565
4569
|
}, [e, o]);
|
|
4566
4570
|
const ye = () => {
|
|
4567
|
-
const B =
|
|
4571
|
+
const B = ms(e);
|
|
4568
4572
|
if (B.isValid && B.parsed) {
|
|
4569
|
-
const P =
|
|
4573
|
+
const P = Lc(B.parsed, B.placeholders);
|
|
4570
4574
|
t(P);
|
|
4571
4575
|
}
|
|
4572
4576
|
}, Ae = () => {
|
|
4573
4577
|
h != null && h.position && D.current && (D.current.focus(), D.current.setSelectionRange(h.position, h.position + 1));
|
|
4574
4578
|
};
|
|
4575
|
-
return /* @__PURE__ */ c(
|
|
4579
|
+
return /* @__PURE__ */ c(vc, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Ga, { value: f, onValueChange: g, className: "w-full", children: [
|
|
4576
4580
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
4577
|
-
/* @__PURE__ */ m(
|
|
4578
|
-
/* @__PURE__ */ m(
|
|
4579
|
-
/* @__PURE__ */ c(
|
|
4581
|
+
/* @__PURE__ */ m(Oa, { className: "w-max", children: [
|
|
4582
|
+
/* @__PURE__ */ m(on, { value: "edit", className: "flex items-center gap-1", children: [
|
|
4583
|
+
/* @__PURE__ */ c(Xa, { className: "h-4 w-4" }),
|
|
4580
4584
|
/* @__PURE__ */ c("span", { children: "Edit" })
|
|
4581
4585
|
] }),
|
|
4582
4586
|
/* @__PURE__ */ m(
|
|
4583
|
-
|
|
4587
|
+
on,
|
|
4584
4588
|
{
|
|
4585
4589
|
value: "preview",
|
|
4586
4590
|
className: "flex items-center gap-1",
|
|
4587
4591
|
disabled: !e.trim() || h !== null || v,
|
|
4588
4592
|
children: [
|
|
4589
|
-
/* @__PURE__ */ c(
|
|
4593
|
+
/* @__PURE__ */ c(ei, { className: "h-4 w-4" }),
|
|
4590
4594
|
/* @__PURE__ */ c("span", { children: "Preview" })
|
|
4591
4595
|
]
|
|
4592
4596
|
}
|
|
4593
4597
|
),
|
|
4594
4598
|
w && /* @__PURE__ */ m(
|
|
4595
|
-
|
|
4599
|
+
on,
|
|
4596
4600
|
{
|
|
4597
4601
|
value: "shared",
|
|
4598
4602
|
className: "flex items-center gap-1",
|
|
4599
4603
|
disabled: !e.trim() || h !== null,
|
|
4600
4604
|
children: [
|
|
4601
|
-
/* @__PURE__ */ c(
|
|
4605
|
+
/* @__PURE__ */ c(ti, { className: "h-4 w-4" }),
|
|
4602
4606
|
/* @__PURE__ */ c("span", { children: "Shared" })
|
|
4603
4607
|
]
|
|
4604
4608
|
}
|
|
4605
4609
|
)
|
|
4606
4610
|
] }),
|
|
4607
4611
|
v ? null : f === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
|
|
4608
|
-
|
|
4612
|
+
_c,
|
|
4609
4613
|
{
|
|
4610
4614
|
dataType: "value",
|
|
4611
4615
|
data: o ?? {},
|
|
@@ -4613,8 +4617,8 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4613
4617
|
}
|
|
4614
4618
|
) })
|
|
4615
4619
|
] }),
|
|
4616
|
-
/* @__PURE__ */ m(
|
|
4617
|
-
!v && f === "edit" && /* @__PURE__ */ c(
|
|
4620
|
+
/* @__PURE__ */ m(ln, { value: "edit", className: "relative mt-0", children: [
|
|
4621
|
+
!v && f === "edit" && /* @__PURE__ */ c(Mn, { content: "Format JSON", side: "right", showTooltip: !n && !h, children: /* @__PURE__ */ c(
|
|
4618
4622
|
M,
|
|
4619
4623
|
{
|
|
4620
4624
|
type: "button",
|
|
@@ -4623,17 +4627,17 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4623
4627
|
onClick: ye,
|
|
4624
4628
|
className: "absolute right-1 top-1 h-6 w-6 p-1",
|
|
4625
4629
|
disabled: !e.trim() || n || h !== null,
|
|
4626
|
-
children: /* @__PURE__ */ c(
|
|
4630
|
+
children: /* @__PURE__ */ c(ni, {})
|
|
4627
4631
|
}
|
|
4628
4632
|
) }),
|
|
4629
4633
|
v ? /* @__PURE__ */ c("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: [
|
|
4630
4634
|
/* @__PURE__ */ c("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." }),
|
|
4631
4635
|
/* @__PURE__ */ m(M, { type: "button", variant: "default", size: "sm", onClick: u, children: [
|
|
4632
|
-
/* @__PURE__ */ c(
|
|
4636
|
+
/* @__PURE__ */ c(Cs, {}),
|
|
4633
4637
|
"Copy & Edit from default language"
|
|
4634
4638
|
] })
|
|
4635
4639
|
] }) }) : /* @__PURE__ */ c(
|
|
4636
|
-
|
|
4640
|
+
Wn,
|
|
4637
4641
|
{
|
|
4638
4642
|
ref: D,
|
|
4639
4643
|
id: i,
|
|
@@ -4648,9 +4652,9 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4648
4652
|
readOnly: s
|
|
4649
4653
|
}
|
|
4650
4654
|
),
|
|
4651
|
-
h && /* @__PURE__ */ m(
|
|
4652
|
-
/* @__PURE__ */ c(
|
|
4653
|
-
/* @__PURE__ */ m(
|
|
4655
|
+
h && /* @__PURE__ */ m(Da, { variant: "destructive", className: "mt-2", children: [
|
|
4656
|
+
/* @__PURE__ */ c(si, { className: "h-4 w-4" }),
|
|
4657
|
+
/* @__PURE__ */ m(xa, { className: "flex flex-col", children: [
|
|
4654
4658
|
/* @__PURE__ */ c("span", { className: "font-medium", children: "Invalid JSON" }),
|
|
4655
4659
|
/* @__PURE__ */ c("span", { className: "text-sm", children: h.message }),
|
|
4656
4660
|
h.line && h.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
|
|
@@ -4673,14 +4677,14 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4673
4677
|
] })
|
|
4674
4678
|
] })
|
|
4675
4679
|
] }),
|
|
4676
|
-
/* @__PURE__ */ m(
|
|
4677
|
-
/* @__PURE__ */ c(
|
|
4680
|
+
/* @__PURE__ */ m(ln, { value: "preview", className: "mt-0", children: [
|
|
4681
|
+
/* @__PURE__ */ c(Wn, { rows: a, value: T, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
|
|
4678
4682
|
/* @__PURE__ */ c("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
|
|
4679
4683
|
] }),
|
|
4680
|
-
w && /* @__PURE__ */ c(
|
|
4684
|
+
w && /* @__PURE__ */ c(ln, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Cc, {}) }) })
|
|
4681
4685
|
] }) }) });
|
|
4682
|
-
},
|
|
4683
|
-
const t =
|
|
4686
|
+
}, Fu = (e) => {
|
|
4687
|
+
const t = Gs(), n = L();
|
|
4684
4688
|
return oe({
|
|
4685
4689
|
queryKey: [E.GET_CHAI_USER, e],
|
|
4686
4690
|
queryFn: async () => {
|
|
@@ -4697,123 +4701,123 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4697
4701
|
if (typeof window > "u")
|
|
4698
4702
|
throw new Error("@chaibuilder/pages is not available on the server");
|
|
4699
4703
|
export {
|
|
4700
|
-
|
|
4704
|
+
bu as $,
|
|
4701
4705
|
E as A,
|
|
4702
|
-
|
|
4706
|
+
Hs as B,
|
|
4703
4707
|
F as C,
|
|
4704
|
-
|
|
4708
|
+
cl as D,
|
|
4705
4709
|
se as E,
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4710
|
+
er as F,
|
|
4711
|
+
lr as G,
|
|
4712
|
+
Jo as H,
|
|
4713
|
+
uu as I,
|
|
4714
|
+
du as J,
|
|
4711
4715
|
Re as K,
|
|
4712
4716
|
Dt as L,
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4717
|
+
Sn as M,
|
|
4718
|
+
fu as N,
|
|
4719
|
+
ou as O,
|
|
4716
4720
|
te as P,
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
+
yu as Q,
|
|
4722
|
+
Su as R,
|
|
4723
|
+
mu as S,
|
|
4724
|
+
Mn as T,
|
|
4721
4725
|
dt as U,
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4726
|
+
_u as V,
|
|
4727
|
+
Au as W,
|
|
4728
|
+
Fo as X,
|
|
4729
|
+
pl as Y,
|
|
4730
|
+
_n as Z,
|
|
4731
|
+
fl as _,
|
|
4728
4732
|
pe as a,
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4733
|
+
Rn as a$,
|
|
4734
|
+
Iu as a0,
|
|
4735
|
+
El as a1,
|
|
4736
|
+
Lu as a2,
|
|
4737
|
+
Nu as a3,
|
|
4738
|
+
hu as a4,
|
|
4739
|
+
iu as a5,
|
|
4740
|
+
Tu as a6,
|
|
4737
4741
|
Z as a7,
|
|
4738
|
-
|
|
4739
|
-
|
|
4742
|
+
Uo as a8,
|
|
4743
|
+
Xl as a9,
|
|
4740
4744
|
en as aA,
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4745
|
+
Ms as aB,
|
|
4746
|
+
eu as aC,
|
|
4747
|
+
su as aD,
|
|
4748
|
+
Bu as aE,
|
|
4749
|
+
ms as aF,
|
|
4750
|
+
tu as aG,
|
|
4751
|
+
ru as aH,
|
|
4752
|
+
au as aI,
|
|
4753
|
+
nu as aJ,
|
|
4754
|
+
Zi as aK,
|
|
4755
|
+
Qc as aL,
|
|
4756
|
+
ks as aM,
|
|
4757
|
+
Eo as aN,
|
|
4758
|
+
Ui as aO,
|
|
4759
|
+
On as aP,
|
|
4760
|
+
Gi as aQ,
|
|
4761
|
+
_c as aR,
|
|
4762
|
+
Mu as aS,
|
|
4763
|
+
Hc as aT,
|
|
4764
|
+
vc as aU,
|
|
4765
|
+
xu as aV,
|
|
4762
4766
|
Ne as aW,
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4767
|
+
ku as aX,
|
|
4768
|
+
fc as aY,
|
|
4769
|
+
Ru as aZ,
|
|
4770
|
+
Uu as a_,
|
|
4771
|
+
gu as aa,
|
|
4768
4772
|
Ut as ab,
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
+
Ou as ac,
|
|
4774
|
+
vu as ad,
|
|
4775
|
+
wu as ae,
|
|
4776
|
+
Js as af,
|
|
4773
4777
|
xe as ag,
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
+
hl as ah,
|
|
4779
|
+
Pu as ai,
|
|
4780
|
+
pu as aj,
|
|
4781
|
+
Eu as ak,
|
|
4778
4782
|
Mt as al,
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
+
cu as am,
|
|
4784
|
+
bi as an,
|
|
4785
|
+
Fu as ao,
|
|
4786
|
+
wi as ap,
|
|
4783
4787
|
C as aq,
|
|
4784
4788
|
L as ar,
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
+
dc as as,
|
|
4790
|
+
qc as at,
|
|
4791
|
+
Xc as au,
|
|
4792
|
+
xn as av,
|
|
4789
4793
|
ce as aw,
|
|
4790
|
-
|
|
4794
|
+
un as ax,
|
|
4791
4795
|
de as ay,
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4796
|
+
Rs as az,
|
|
4797
|
+
Bs as b,
|
|
4798
|
+
Ao as b0,
|
|
4795
4799
|
we as c,
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4800
|
+
Ki as d,
|
|
4801
|
+
Vs as e,
|
|
4802
|
+
po as f,
|
|
4803
|
+
Fs as g,
|
|
4804
|
+
zc as h,
|
|
4805
|
+
jc as i,
|
|
4802
4806
|
Be as j,
|
|
4803
|
-
|
|
4807
|
+
Un as k,
|
|
4804
4808
|
Me as l,
|
|
4805
4809
|
Ce as m,
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4810
|
+
di as n,
|
|
4811
|
+
Yc as o,
|
|
4812
|
+
oc as p,
|
|
4813
|
+
Wc as q,
|
|
4814
|
+
Jc as r,
|
|
4815
|
+
Zc as s,
|
|
4816
|
+
dn as t,
|
|
4817
|
+
$c as u,
|
|
4818
|
+
Du as v,
|
|
4815
4819
|
W as w,
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4820
|
+
or as x,
|
|
4821
|
+
Cu as y,
|
|
4822
|
+
Gu as z
|
|
4819
4823
|
};
|