@chaibuilder/pages 0.17.6 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2AITGKQY-CW6frR_j.cjs → 2AITGKQY-DF8OTjKn.cjs} +1 -1
- package/dist/{2AITGKQY-DQFtfYAc.js → 2AITGKQY-fS5AFjG9.js} +2 -2
- package/dist/{NCMVHL6D-URUKohh5.cjs → NCMVHL6D-D_9C6D8g.cjs} +1 -1
- package/dist/{NCMVHL6D-DjkLlYvC.js → NCMVHL6D-Dg5ySLf6.js} +2 -2
- package/dist/{ZDWCUMSJ-BF7bF60j.js → ZDWCUMSJ-BUuCDSC3.js} +1 -1
- package/dist/{ZDWCUMSJ-BufXbZ_h.cjs → ZDWCUMSJ-wMRfmXYb.cjs} +1 -1
- package/dist/{active-in-another-tab-CLSHrmaH.js → active-in-another-tab-D-xpQrr_.js} +1 -1
- package/dist/{active-in-another-tab-CLhzUxeR.cjs → active-in-another-tab-DLtQHsZe.cjs} +1 -1
- package/dist/{add-new-language-page-DEvWaLIe.js → add-new-language-page-6B1VAoI4.js} +2 -2
- package/dist/{add-new-language-page-xOwbmNJj.cjs → add-new-language-page-Depov_zF.cjs} +1 -1
- package/dist/{add-new-page-B0OggHcf.cjs → add-new-page-C8OBL7bg.cjs} +1 -1
- package/dist/{add-new-page-BNq_DIdw.js → add-new-page-tFiCCldO.js} +1 -1
- package/dist/ai-panel-content-D5brnpaF.cjs +1 -0
- package/dist/{ai-panel-content-ClRm3rSN.js → ai-panel-content-LAJ1G2c_.js} +26 -19
- package/dist/{ai-panel-default-lang-Bs_Nu8Yz.js → ai-panel-default-lang-BZOwc0ER.js} +3 -3
- package/dist/{ai-panel-default-lang-DmSW0N9S.cjs → ai-panel-default-lang-Bovj-wnP.cjs} +2 -2
- package/dist/{ai-panel-other-lang-B36IELRv.cjs → ai-panel-other-lang-BLOSoY1y.cjs} +1 -1
- package/dist/{ai-panel-other-lang-BYP_eD9z.js → ai-panel-other-lang-Bq4Y6Ycp.js} +3 -3
- package/dist/{ai-prompt-input-i9ZufZMi.js → ai-prompt-input-2wmQNmDm.js} +1 -1
- package/dist/{ai-prompt-input-DBlSqHCo.cjs → ai-prompt-input-UgJnusYy.cjs} +1 -1
- package/dist/{ai-translation-prompt-CnNrf57B.js → ai-translation-prompt-Bj-CjrQM.js} +1 -1
- package/dist/{ai-translation-prompt-DKN6hrUF.cjs → ai-translation-prompt-ByPlV_Ft.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-XtL9c2a2.js → continue-editing-in-this-client-BkBaYzK8.js} +1 -1
- package/dist/{continue-editing-in-this-client-ChVlHB-G.cjs → continue-editing-in-this-client-DTsSzFac.cjs} +1 -1
- package/dist/{delete-page-JsuCy3_9.js → delete-page-BBmM-A0h.js} +1 -1
- package/dist/{delete-page-CGeb5OY9.cjs → delete-page-Bz0WfFIr.cjs} +1 -1
- package/dist/{digital-asset-manager-Dr_rmq-s.js → digital-asset-manager-B9q68gsa.js} +1 -1
- package/dist/{digital-asset-manager-CeuTVT2m.cjs → digital-asset-manager-BaqwiA9T.cjs} +1 -1
- package/dist/{duplicate-page-WQGy0j2w.cjs → duplicate-page-DAc9ZjR0.cjs} +1 -1
- package/dist/{duplicate-page-CbPlxaWw.js → duplicate-page-FHWK3iKz.js} +2 -2
- package/dist/{dynamic-page-selector-Bxc0QbN-.cjs → dynamic-page-selector-C1v0r46n.cjs} +1 -1
- package/dist/{dynamic-page-selector-Cl1ui3R0.js → dynamic-page-selector-Co3Q9p7l.js} +1 -1
- package/dist/index-BfYRG8H9.cjs +5 -0
- package/dist/{index-BoQkDiU0.js → index-iCKpBUN9.js} +130 -130
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-diff-viewer-C9Vtz001.js → json-diff-viewer-Dw3zaurB.js} +1 -1
- package/dist/{json-diff-viewer-mAynlJ-t.cjs → json-diff-viewer-Z1GTmj8J.cjs} +1 -1
- package/dist/{lang-panel-_j4w2xyy.cjs → lang-panel-DaYCFPdT.cjs} +1 -1
- package/dist/{lang-panel-Bbw7pLzm.js → lang-panel-DlqwCSo_.js} +2 -2
- package/dist/{mark-as-template-eaGMb1z4.js → mark-as-template-CGwS-ih8.js} +1 -1
- package/dist/{mark-as-template-Iecl3b9-.cjs → mark-as-template-nG3dSI5x.cjs} +1 -1
- package/dist/{no-language-page-content-BENe6zri.js → no-language-page-content-D3-li16O.js} +1 -1
- package/dist/{no-language-page-content-BNElMNrF.cjs → no-language-page-content-DDTLd2lT.cjs} +1 -1
- package/dist/{no-language-page-dialog-CUBp8DfX.cjs → no-language-page-dialog-BbykgSYo.cjs} +1 -1
- package/dist/{no-language-page-dialog-B-9DnVeV.js → no-language-page-dialog-C03CVsV2.js} +2 -2
- package/dist/{page-creator-ltZp2cvK.cjs → page-creator-DJvOkcpE.cjs} +1 -1
- package/dist/{page-creator-BA9amyHE.js → page-creator-SkEX57cN.js} +2 -2
- package/dist/{page-lock-Uz94JnNt.cjs → page-lock-BLPvGNfY.cjs} +1 -1
- package/dist/{page-lock-5Q89NXKg.js → page-lock-CXzGU8zl.js} +2 -2
- package/dist/{page-locked-dialog-BrFlnF1_.js → page-locked-dialog-BXIE5LDL.js} +1 -1
- package/dist/{page-locked-dialog-CQ01l5GQ.cjs → page-locked-dialog-C4wjHWAn.cjs} +1 -1
- package/dist/{page-manager-new-WhmwJZLE.cjs → page-manager-new-B8sSsJbv.cjs} +1 -1
- package/dist/{page-manager-new-VsciHCAM.js → page-manager-new-DeyFJPmi.js} +2 -2
- package/dist/{page-manager-search-and-filter-C25h2oZm.cjs → page-manager-search-and-filter-8xpUoXHE.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-JQpL82Sl.js → page-manager-search-and-filter-BWSZW24w.js} +1 -1
- package/dist/page-revisions-content-BAmvjMJp.cjs +1 -0
- package/dist/{page-revisions-content-BJXW36z8.js → page-revisions-content-BtLrcFfJ.js} +73 -65
- package/dist/pages.css +1 -1
- package/dist/{publish-pages-content-DD9OlPYp.js → publish-pages-content-L7Oa-2Az.js} +2 -2
- package/dist/{publish-pages-content-CJX7kSdV.cjs → publish-pages-content-U-vW7ofx.cjs} +1 -1
- package/dist/{save-to-lib-CooOVEaQ.js → save-to-lib-BHrQ3z_j.js} +1 -1
- package/dist/{save-to-lib-D1wVNYQs.cjs → save-to-lib-C8j3AAhp.cjs} +1 -1
- package/dist/{selected-block-display-DxwMm0qr.js → selected-block-display-BJDfGS9W.js} +1 -1
- package/dist/{selected-block-display-gP43mf34.cjs → selected-block-display-i812XPEj.cjs} +1 -1
- package/dist/{seo-panel-BZQVr7WN.cjs → seo-panel-BSHZV5lB.cjs} +1 -1
- package/dist/{seo-panel-g_OuoWp9.js → seo-panel-aNUIzjJ2.js} +1 -1
- package/dist/server.cjs +2 -2
- package/dist/server.d.ts +1 -0
- package/dist/server.js +23 -13
- package/dist/{shared-json-ld-jbhoi-Qv.cjs → shared-json-ld-BGJqkieF.cjs} +1 -1
- package/dist/{shared-json-ld-DKwpR514.js → shared-json-ld-DL7-3W57.js} +1 -1
- package/dist/{slug-input-Dc5XAgQc.js → slug-input-aWfRiTqb.js} +1 -1
- package/dist/{slug-input-DAq9MT_P.cjs → slug-input-kkYSSYld.cjs} +1 -1
- package/dist/{take-over-request-BOGWNLpM.cjs → take-over-request-DMycskKu.cjs} +1 -1
- package/dist/{take-over-request-Byq9LiOV.js → take-over-request-Mbmm9Yk8.js} +1 -1
- package/dist/{theme-panel-footer-B8mn0xAf.js → theme-panel-footer-B-RX3AbU.js} +1 -1
- package/dist/{theme-panel-footer-NFR6yf6k.cjs → theme-panel-footer-Do2XzSdP.cjs} +1 -1
- package/dist/{unmark-as-template-CIBRCR59.cjs → unmark-as-template-CSgnr64d.cjs} +1 -1
- package/dist/{unmark-as-template-BSjPZ86x.js → unmark-as-template-CqQSRoJ8.js} +1 -1
- package/dist/{unpublish-page-Cr9AlIFG.js → unpublish-page-COTuNBKf.js} +1 -1
- package/dist/{unpublish-page-CmUXigiU.cjs → unpublish-page-QbX5s30w.cjs} +1 -1
- package/dist/{web-preview-DK51eK9e.js → web-preview-1LMXa1c5.js} +1 -1
- package/dist/{web-preview-mGavSw4r.cjs → web-preview-C1rD-_AD.cjs} +1 -1
- package/package.json +4 -4
- package/dist/ai-panel-content-NdOClQP-.cjs +0 -1
- package/dist/index-DheBvIvo.cjs +0 -5
- package/dist/page-revisions-content-ynSnkxGq.cjs +0 -1
|
@@ -4,12 +4,12 @@ var $n = (e) => {
|
|
|
4
4
|
var Qn = (e, t, n) => t.has(e) || $n("Cannot " + n);
|
|
5
5
|
var A = (e, t, n) => (Qn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? $n("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, s) => (Qn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
|
|
6
6
|
import { jsxs as m, Fragment as me, jsx as c } from "react/jsx-runtime";
|
|
7
|
-
import { get as
|
|
7
|
+
import { get as V, reverse as Ur, sortBy as Mr, find as ie, noop as As, groupBy as Br, values as Ts, first as Ss, minBy as _s, keyBy as Fr, map as Vt, isEmpty as ge, compact as Ps, each as Kr, upperCase as zn, filter as ws, includes as Vr, has as Jt, pick as Ln, keys as Hr, pickBy as qr, endsWith as $r, isArray as Qr, startCase as zr, isFunction as Wr, cloneDeep as jr, isEqual as Wn } from "lodash-es";
|
|
8
8
|
import * as Q from "react";
|
|
9
|
-
import Yr, { useMemo as q, useCallback as z, useState as K, useEffect as se, useRef as be, lazy as
|
|
9
|
+
import Yr, { useMemo as q, useCallback as z, useState as K, useEffect as se, useRef as be, lazy as H, Suspense as X, createContext as Jr, Component as Zr, createElement as jn } from "react";
|
|
10
10
|
import { atom as pe, useAtom as oe } from "jotai";
|
|
11
11
|
import { useQuery as re, useMutation as Y, useQueryClient as J, onlineManager as vs, QueryClient as Xr, QueryClientProvider as ea } from "@tanstack/react-query";
|
|
12
|
-
import { useLanguages as Pe, useSavePage as
|
|
12
|
+
import { useLanguages as Pe, useSavePage as Ue, useTranslation as we, mergeClasses as Ht, usePermissions as Is, PERMISSIONS as ta, useRightPanel as na, useChaiFeatureFlag as sa, useIsPageLoaded as ra, registerChaiLibrary as aa, getBlocksFromHTML as ia, registerChaiSidebarPanel as Dt, registerChaiFeatureFlag as an, registerChaiTopBar as oa, registerChaiMediaManager as la, registerChaiSaveToLibrary as ca, ChaiBuilderEditor as ua } from "@chaibuilder/sdk";
|
|
13
13
|
import { Tooltip as Zt, TooltipTrigger as Xt, Button as M, TooltipContent as en, Sheet as bs, SheetContent as Ls, SheetHeader as da, SheetTitle as fa, SheetDescription as ha, DropdownMenu as Nn, DropdownMenuTrigger as Cn, DropdownMenuContent as Gn, DropdownMenuItem as de, Separator as ga, TooltipProvider as Ns, SheetTrigger as ma, Skeleton as Ot, Dialog as Cs, HoverCard as Ea, HoverCardTrigger as pa, HoverCardContent as ya, AlertDialog as Aa, AlertDialogTrigger as Ta, AlertDialogContent as Sa, AlertDialogHeader as _a, AlertDialogTitle as Pa, AlertDialogDescription as wa, AlertDialogFooter as va, AlertDialogCancel as Ia, AlertDialogAction as ba, Popover as La, PopoverTrigger as Na, DialogContent as Ca, DialogHeader as Ga, DialogTitle as Da, Tabs as Oa, TabsList as xa, TabsTrigger as on, TabsContent as ln, Textarea as Yn, Alert as Ra, AlertDescription as ka } from "@chaibuilder/sdk/ui";
|
|
14
14
|
import { LogsIcon as Ua, Folder as Ma, Languages as Jn, ChevronDown as pn, Star as Ba, Plus as Gs, History as Fa, Play as Ka, Palette as Va, CheckCircle as Ha, Loader as qt, Save as qa, Send as Zn, Rocket as Xn, CopyPlusIcon as $a, Pencil as Qa, Power as za, Trash as Wa, SquareLibrary as es, Hash as ja, File as Ya, MoreHorizontal as ts, ExternalLink as Ja, LanguagesIcon as Za, User as Xa, X as ns, Trash2 as ei, ImageIcon as ss, Code as ti, Eye as ni, Share2 as si, FileCode2 as ri, AlertTriangle as ai } from "lucide-react";
|
|
15
15
|
import { toast as k } from "sonner";
|
|
@@ -269,7 +269,7 @@ const xt = {
|
|
|
269
269
|
GET_ASSET: "GET_ASSET"
|
|
270
270
|
}, ci = pe({}), Dn = () => oe(ci), le = (e, t) => {
|
|
271
271
|
const [n] = Dn();
|
|
272
|
-
return q(() =>
|
|
272
|
+
return q(() => V(n, e, t), [n, e, t]);
|
|
273
273
|
}, N = () => le("apiUrl", "/chai/api"), Ds = () => le("usersApiUrl", "/chai/users"), zc = () => le("assetsApiUrl", "/chai/assets"), Os = () => le("websocket", null), xs = async (e, t, n = {}) => await fetch(e, {
|
|
274
274
|
method: "POST",
|
|
275
275
|
headers: {
|
|
@@ -304,7 +304,7 @@ const Wc = () => {
|
|
|
304
304
|
async (s = n, r, a = {}, i = !1) => {
|
|
305
305
|
const o = await t();
|
|
306
306
|
try {
|
|
307
|
-
const l =
|
|
307
|
+
const l = V(r, "action", "").toLowerCase(), d = await xs(s + (l ? `?action=${l}` : ""), r, {
|
|
308
308
|
...a,
|
|
309
309
|
Authorization: `Bearer ${o}`
|
|
310
310
|
});
|
|
@@ -328,6 +328,23 @@ const Wc = () => {
|
|
|
328
328
|
},
|
|
329
329
|
[e, t]
|
|
330
330
|
);
|
|
331
|
+
}, Ne = () => {
|
|
332
|
+
const e = N(), t = I();
|
|
333
|
+
return re({
|
|
334
|
+
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
|
|
335
|
+
staleTime: 5 * 60 * 1e3,
|
|
336
|
+
placeholderData: {
|
|
337
|
+
languages: [],
|
|
338
|
+
theme: { fontFamily: "", borderRadius: "", colors: {} },
|
|
339
|
+
appKey: "",
|
|
340
|
+
fallbackLang: "",
|
|
341
|
+
designTokens: {}
|
|
342
|
+
},
|
|
343
|
+
queryFn: async () => t(e, {
|
|
344
|
+
action: E.GET_WEBSITE_DRAFT_SETTINGS,
|
|
345
|
+
data: { draft: !0 }
|
|
346
|
+
})
|
|
347
|
+
});
|
|
331
348
|
};
|
|
332
349
|
function ve() {
|
|
333
350
|
const [e, t] = K(
|
|
@@ -342,8 +359,8 @@ function ve() {
|
|
|
342
359
|
};
|
|
343
360
|
}, []), [e, t];
|
|
344
361
|
}
|
|
345
|
-
const
|
|
346
|
-
const t = N(), [n] = ve(), s = e ?? n.get("page"), r = I();
|
|
362
|
+
const Be = (e) => {
|
|
363
|
+
const t = N(), [n] = ve(), s = e ?? n.get("page"), r = I(), { data: a } = Ne(), o = V(a, "languages", []).length > 0;
|
|
347
364
|
return re({
|
|
348
365
|
queryKey: [E.GET_LANGUAGE_PAGES, s],
|
|
349
366
|
staleTime: 1 / 0,
|
|
@@ -351,13 +368,13 @@ const Me = (e) => {
|
|
|
351
368
|
placeholderData: [],
|
|
352
369
|
queryFn: async () => {
|
|
353
370
|
if (!s) return null;
|
|
354
|
-
const
|
|
371
|
+
const l = await r(t, {
|
|
355
372
|
action: E.GET_LANGUAGE_PAGES,
|
|
356
373
|
data: { id: s }
|
|
357
374
|
});
|
|
358
|
-
return Ur(Mr(
|
|
375
|
+
return Ur(Mr(l, "primaryPage"));
|
|
359
376
|
},
|
|
360
|
-
enabled: !!s
|
|
377
|
+
enabled: !!s && o
|
|
361
378
|
});
|
|
362
379
|
}, ui = pe(
|
|
363
380
|
null
|
|
@@ -404,31 +421,14 @@ const fi = ({ query: e, uuid: t }) => {
|
|
|
404
421
|
onChangeLanguage: g
|
|
405
422
|
};
|
|
406
423
|
}, gi = pe({ lastSaved: void 0 }), ks = () => oe(gi), ce = () => {
|
|
407
|
-
const [e] = ve(), t = e.get("page"), { data: n, isFetching: s } =
|
|
424
|
+
const [e] = ve(), t = e.get("page"), { data: n, isFetching: s } = Be();
|
|
408
425
|
return { data: q(() => ({ ...ie(n, { id: t }) || {} }), [n, t]), isFetching: s };
|
|
409
|
-
},
|
|
410
|
-
const [e] = ve(), t = e.get("lang") ?? "", { data: n, isFetching: s } =
|
|
426
|
+
}, Ce = () => {
|
|
427
|
+
const [e] = ve(), t = e.get("lang") ?? "", { data: n, isFetching: s } = Be();
|
|
411
428
|
return { data: q(() => ie(n, { lang: t }) || {}, [n, t]), isFetching: s };
|
|
412
429
|
}, mi = pe({}), Ei = () => oe(mi), pi = () => {
|
|
413
|
-
const { data: e } =
|
|
430
|
+
const { data: e } = Ce(), t = On(), n = le("getLiveUrl", As), s = e == null ? void 0 : e.slug, r = n(s || "/");
|
|
414
431
|
return t ? r + t : r;
|
|
415
|
-
}, Be = () => {
|
|
416
|
-
const e = N(), t = I();
|
|
417
|
-
return re({
|
|
418
|
-
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
|
|
419
|
-
staleTime: 5 * 60 * 1e3,
|
|
420
|
-
placeholderData: {
|
|
421
|
-
languages: [],
|
|
422
|
-
theme: { fontFamily: "", borderRadius: "", colors: {} },
|
|
423
|
-
appKey: "",
|
|
424
|
-
fallbackLang: "",
|
|
425
|
-
designTokens: {}
|
|
426
|
-
},
|
|
427
|
-
queryFn: async () => t(e, {
|
|
428
|
-
action: E.GET_WEBSITE_DRAFT_SETTINGS,
|
|
429
|
-
data: { draft: !0 }
|
|
430
|
-
})
|
|
431
|
-
});
|
|
432
432
|
};
|
|
433
433
|
function Us(e, t, n = !1) {
|
|
434
434
|
const s = e.toString() ? `?${e.toString()}` : "/";
|
|
@@ -477,12 +477,12 @@ const xn = pe(null), Rn = () => {
|
|
|
477
477
|
const { user: e } = Rn();
|
|
478
478
|
return e == null ? void 0 : e.id;
|
|
479
479
|
}, vi = () => {
|
|
480
|
-
const { data: e } =
|
|
480
|
+
const { data: e } = Ne();
|
|
481
481
|
return `WEBSITE:${e == null ? void 0 : e.appKey}`;
|
|
482
482
|
}, Lt = () => {
|
|
483
483
|
const { data: e } = ce();
|
|
484
484
|
return e == null ? void 0 : e.id;
|
|
485
|
-
},
|
|
485
|
+
}, Me = crypto.randomUUID();
|
|
486
486
|
let cn = null;
|
|
487
487
|
const Bs = () => {
|
|
488
488
|
const [e, t] = oe(Ti);
|
|
@@ -517,11 +517,11 @@ const Bs = () => {
|
|
|
517
517
|
r(te.CHECKING);
|
|
518
518
|
else if (!t)
|
|
519
519
|
r(te.CHECKING);
|
|
520
|
-
else if (f.userId === t && f.clientId ===
|
|
520
|
+
else if (f.userId === t && f.clientId === Me) {
|
|
521
521
|
if (a === te.TAKE_OVER_REQUESTED)
|
|
522
522
|
return;
|
|
523
523
|
r(te.EDITING);
|
|
524
|
-
} else f.userId === t && f.clientId !==
|
|
524
|
+
} else f.userId === t && f.clientId !== Me ? r(te.ACTIVE_IN_ANOTHER_TAB) : r(te.LOCKED);
|
|
525
525
|
},
|
|
526
526
|
[n, s, r, t, a]
|
|
527
527
|
);
|
|
@@ -531,16 +531,16 @@ const Bs = () => {
|
|
|
531
531
|
async (i, o) => {
|
|
532
532
|
if (!n) return;
|
|
533
533
|
const l = o || {};
|
|
534
|
-
l.userId = e, l.pageId = a.current, l.senderClientId =
|
|
534
|
+
l.userId = e, l.pageId = a.current, l.senderClientId = Me, l.receiverClientId = (o == null ? void 0 : o.requestingClientId) || (s == null ? void 0 : s.clientId), await n.send({ event: i, payload: l, type: "broadcast" }), r({});
|
|
535
535
|
},
|
|
536
536
|
[n, e, s, r]
|
|
537
537
|
);
|
|
538
538
|
}, Ni = () => {
|
|
539
|
-
const e = tn(), t = Lt(), n = kn(), { setPageStatus: s } = ye(), { setPageLockMeta: r } = Fs(), a = Li(), i = be(t), { savePageAsync: o } =
|
|
539
|
+
const e = tn(), t = Lt(), n = kn(), { setPageStatus: s } = ye(), { setPageLockMeta: r } = Fs(), a = Li(), i = be(t), { savePageAsync: o } = Ue();
|
|
540
540
|
return i.current = t, z(
|
|
541
541
|
(l) => async ({ payload: d }) => {
|
|
542
542
|
const u = d || {};
|
|
543
|
-
if (!(!(u != null && u.pageId) || (u == null ? void 0 : u.pageId) !== i.current || (u == null ? void 0 : u.receiverClientId) !==
|
|
543
|
+
if (!(!(u != null && u.pageId) || (u == null ? void 0 : u.pageId) !== i.current || (u == null ? void 0 : u.receiverClientId) !== Me))
|
|
544
544
|
switch (r({}), l) {
|
|
545
545
|
case ne.FORCE_TAKE_OVER_REQUEST:
|
|
546
546
|
case ne.CONTINUE_EDITING_IN_THIS_TAB_REQUEST: {
|
|
@@ -558,7 +558,7 @@ const Bs = () => {
|
|
|
558
558
|
}
|
|
559
559
|
case ne.CONTINUE_EDITING_IN_THIS_CLIENT: {
|
|
560
560
|
const f = wi(n == null ? void 0 : n.presenceState());
|
|
561
|
-
s(te.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: f, pageId: i.current, userId: e, clientId:
|
|
561
|
+
s(te.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: f, pageId: i.current, userId: e, clientId: Me }));
|
|
562
562
|
break;
|
|
563
563
|
}
|
|
564
564
|
case ne.TAKE_OVER_REJECTED: {
|
|
@@ -576,7 +576,7 @@ const Bs = () => {
|
|
|
576
576
|
}, [i, o]), se(() => {
|
|
577
577
|
if (!e || !t || !s || r && r.topic === s) return;
|
|
578
578
|
const u = e.channel(s, {
|
|
579
|
-
config: { presence: { key:
|
|
579
|
+
config: { presence: { key: Me } }
|
|
580
580
|
});
|
|
581
581
|
return Ai.forEach((f) => {
|
|
582
582
|
u.on("broadcast", { event: f }, (g) => {
|
|
@@ -594,13 +594,13 @@ const Bs = () => {
|
|
|
594
594
|
}, [e, t, s, a]), se(() => (r && n && t && r.track({
|
|
595
595
|
pageId: n,
|
|
596
596
|
userId: t,
|
|
597
|
-
clientId:
|
|
597
|
+
clientId: Me,
|
|
598
598
|
onlineAt: +/* @__PURE__ */ new Date()
|
|
599
599
|
}), () => {
|
|
600
600
|
r && n && r.untrack();
|
|
601
601
|
}), [r, n, t]);
|
|
602
602
|
}, Un = () => {
|
|
603
|
-
const { data: e } =
|
|
603
|
+
const { data: e } = Ne();
|
|
604
604
|
return q(
|
|
605
605
|
() => (e == null ? void 0 : e.fallbackLang) || "en",
|
|
606
606
|
[e]
|
|
@@ -629,8 +629,8 @@ const Bs = () => {
|
|
|
629
629
|
},
|
|
630
630
|
placeholderData: (r) => r || {}
|
|
631
631
|
});
|
|
632
|
-
}, Ci =
|
|
633
|
-
const { t } = we(), [n, s] = ve(), r = n.get("page"), { data: a, isFetching: i } = ce(), { data: o, isFetching: l } = Ks(), [d, u] = K(!1), [f, g] = K(!0), { savePage: h } =
|
|
632
|
+
}, Ci = H(() => import("./page-manager-new-DeyFJPmi.js")), Vs = ({ children: e }) => {
|
|
633
|
+
const { t } = we(), [n, s] = ve(), r = n.get("page"), { data: a, isFetching: i } = ce(), { data: o, isFetching: l } = Ks(), [d, u] = K(!1), [f, g] = K(!0), { savePage: h } = Ue(), p = !!r && !ge(a), { isLocked: T } = ye(), S = q(() => {
|
|
634
634
|
if (!o || l) return !1;
|
|
635
635
|
const v = o.find((U) => U.slug === "/");
|
|
636
636
|
return v == null ? void 0 : v.id;
|
|
@@ -677,7 +677,7 @@ const Bs = () => {
|
|
|
677
677
|
}
|
|
678
678
|
) })
|
|
679
679
|
] });
|
|
680
|
-
}, Gi =
|
|
680
|
+
}, Gi = H(() => import("./add-new-language-page-6B1VAoI4.js")), Di = () => {
|
|
681
681
|
const e = le("topLeftCorner", null);
|
|
682
682
|
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Yr.createElement(e, {}) }) : null;
|
|
683
683
|
}, Oi = ({
|
|
@@ -690,13 +690,13 @@ const Bs = () => {
|
|
|
690
690
|
const y = new URLSearchParams(window.location.search), w = y.get("lang");
|
|
691
691
|
w && (r.includes(w) ? i(w) : (y.delete("lang"), l(y), i("")));
|
|
692
692
|
}, [r, l, i]);
|
|
693
|
-
const [, f] = oe(xn), { data: g } = ce(), { data: h } =
|
|
693
|
+
const [, f] = oe(xn), { data: g } = ce(), { data: h } = Ne(), { data: p } = Be(), T = q(() => {
|
|
694
694
|
const y = Ps(
|
|
695
|
-
Vt(
|
|
695
|
+
Vt(V(h, "languages"), (w) => {
|
|
696
696
|
const v = ie(p, { lang: w });
|
|
697
697
|
return {
|
|
698
698
|
key: w,
|
|
699
|
-
value:
|
|
699
|
+
value: V(xt, w, w),
|
|
700
700
|
isLangPageAdded: !!v
|
|
701
701
|
};
|
|
702
702
|
})
|
|
@@ -704,7 +704,7 @@ const Bs = () => {
|
|
|
704
704
|
return [
|
|
705
705
|
{
|
|
706
706
|
key: s,
|
|
707
|
-
value:
|
|
707
|
+
value: V(xt, s),
|
|
708
708
|
isLangPageAdded: !0
|
|
709
709
|
},
|
|
710
710
|
...y
|
|
@@ -729,7 +729,7 @@ const Bs = () => {
|
|
|
729
729
|
};
|
|
730
730
|
return ge(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: [
|
|
731
731
|
/* @__PURE__ */ c(Jn, { className: "h-4 w-4" }),
|
|
732
|
-
|
|
732
|
+
V(xt, o, o),
|
|
733
733
|
/* @__PURE__ */ c(pn, { className: "h-4 w-4" })
|
|
734
734
|
] }) : n ? /* @__PURE__ */ c(M, { onClick: () => O(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(me, { children: /* @__PURE__ */ m(Nn, { children: [
|
|
735
735
|
/* @__PURE__ */ c(Cn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
@@ -741,7 +741,7 @@ const Bs = () => {
|
|
|
741
741
|
className: "ml-px h-max gap-2 py-1.5",
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ c(Jn, { className: "h-4 w-4" }),
|
|
744
|
-
|
|
744
|
+
V(xt, o, o),
|
|
745
745
|
/* @__PURE__ */ c(pn, { className: "h-4 w-4" })
|
|
746
746
|
]
|
|
747
747
|
}
|
|
@@ -820,7 +820,7 @@ function Ri() {
|
|
|
820
820
|
/* @__PURE__ */ c(Ot, { className: "h-8 w-8 rounded-full" })
|
|
821
821
|
] }, t)) });
|
|
822
822
|
}
|
|
823
|
-
const ki = Q.lazy(() => import("./page-revisions-content-
|
|
823
|
+
const ki = Q.lazy(() => import("./page-revisions-content-BtLrcFfJ.js"));
|
|
824
824
|
function Ui() {
|
|
825
825
|
const [e, t] = Q.useState(!1);
|
|
826
826
|
return /* @__PURE__ */ c(Ns, { children: /* @__PURE__ */ m(Zt, { delayDuration: 0, children: [
|
|
@@ -847,7 +847,7 @@ const un = ({
|
|
|
847
847
|
return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
|
|
848
848
|
}, Mi = {
|
|
849
849
|
SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
|
|
850
|
-
},
|
|
850
|
+
}, Ge = () => {
|
|
851
851
|
const e = N(), t = I();
|
|
852
852
|
return re({
|
|
853
853
|
queryKey: [E.GET_PAGE_TYPES],
|
|
@@ -856,7 +856,7 @@ const un = ({
|
|
|
856
856
|
queryFn: async () => t(e, { action: E.GET_PAGE_TYPES })
|
|
857
857
|
});
|
|
858
858
|
}, Bi = (e) => {
|
|
859
|
-
const { data: t } =
|
|
859
|
+
const { data: t } = Ge();
|
|
860
860
|
return q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
|
|
861
861
|
}, Fi = () => {
|
|
862
862
|
const e = N(), t = I();
|
|
@@ -876,7 +876,7 @@ const un = ({
|
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
878
|
}, Jc = () => {
|
|
879
|
-
const e = N(), t = J(), n = I(), { data: s } =
|
|
879
|
+
const e = N(), t = J(), n = I(), { data: s } = Ge();
|
|
880
880
|
return Y({
|
|
881
881
|
mutationFn: async (r) => await n(e, {
|
|
882
882
|
action: E.CREATE_PAGE,
|
|
@@ -897,12 +897,12 @@ const un = ({
|
|
|
897
897
|
onError: (r, a) => {
|
|
898
898
|
const i = ie(s, { key: a.pageType });
|
|
899
899
|
k.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
900
|
-
description:
|
|
900
|
+
description: V(Mi, r.message, r.message)
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
903
|
});
|
|
904
904
|
}, Zc = () => {
|
|
905
|
-
const e = N(), t = J(), n = I(), { data: s } =
|
|
905
|
+
const e = N(), t = J(), n = I(), { data: s } = Ce(), { data: r } = Ge();
|
|
906
906
|
return Y({
|
|
907
907
|
mutationFn: async (a) => await n(e, {
|
|
908
908
|
action: E.UPDATE_PAGE,
|
|
@@ -927,7 +927,7 @@ const un = ({
|
|
|
927
927
|
}
|
|
928
928
|
});
|
|
929
929
|
}, Xc = () => {
|
|
930
|
-
const e = N(), t = J(), n = I(), { data: s } =
|
|
930
|
+
const e = N(), t = J(), n = I(), { data: s } = Ge();
|
|
931
931
|
return Y({
|
|
932
932
|
mutationFn: async (r) => n(e, {
|
|
933
933
|
action: E.DELETE_PAGE,
|
|
@@ -956,7 +956,7 @@ const un = ({
|
|
|
956
956
|
}
|
|
957
957
|
});
|
|
958
958
|
}, eu = () => {
|
|
959
|
-
const e = N(), t = J(), n = I(), { data: s } =
|
|
959
|
+
const e = N(), t = J(), n = I(), { data: s } = Ge();
|
|
960
960
|
return Y({
|
|
961
961
|
mutationFn: async (r) => n(e, {
|
|
962
962
|
action: E.TAKE_OFFLINE,
|
|
@@ -981,7 +981,7 @@ const un = ({
|
|
|
981
981
|
}
|
|
982
982
|
});
|
|
983
983
|
}, Hs = () => {
|
|
984
|
-
const e = N(), t = I(), n = J(), { data: s } = ce(), { savePageAsync: r } =
|
|
984
|
+
const e = N(), t = I(), n = J(), { data: s } = ce(), { savePageAsync: r } = Ue();
|
|
985
985
|
return Y({
|
|
986
986
|
mutationFn: async ({ ids: a }) => (await r(), t(e, {
|
|
987
987
|
action: E.PUBLISH_CHANGES,
|
|
@@ -1059,7 +1059,7 @@ const un = ({
|
|
|
1059
1059
|
k.error("Failed to change slug");
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
|
-
}, Ki =
|
|
1062
|
+
}, Ki = H(() => import("./publish-pages-content-L7Oa-2Az.js"));
|
|
1063
1063
|
function Vi({
|
|
1064
1064
|
showModal: e = !1,
|
|
1065
1065
|
onClose: t = () => console.log("Cancelled")
|
|
@@ -1106,9 +1106,9 @@ const ue = {
|
|
|
1106
1106
|
EDIT_MEDIA: "edit_media",
|
|
1107
1107
|
DELETE_MEDIA: "delete_media"
|
|
1108
1108
|
}, Hi = (e) => {
|
|
1109
|
-
const { fallbackLang: t } = Pe(), { data: n } =
|
|
1109
|
+
const { fallbackLang: t } = Pe(), { data: n } = Ne(), { data: s, isFetching: r } = Be(), a = q(() => {
|
|
1110
1110
|
const i = { [t]: !0 };
|
|
1111
|
-
return Kr(
|
|
1111
|
+
return Kr(V(n, "languages"), (o) => {
|
|
1112
1112
|
const l = ie(s, { lang: o });
|
|
1113
1113
|
i[o] = !!l;
|
|
1114
1114
|
}), i;
|
|
@@ -1149,8 +1149,8 @@ function Mn({
|
|
|
1149
1149
|
/* @__PURE__ */ c(en, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
|
|
1150
1150
|
] }) }) : e;
|
|
1151
1151
|
}
|
|
1152
|
-
const zi =
|
|
1153
|
-
const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Pe(), s = le("getPreviewUrl", async (g) => g), [r, a] = K(""), { data: i } = ce(), { data: o } =
|
|
1152
|
+
const zi = H(() => import("./unpublish-page-COTuNBKf.js")), Wi = H(() => import("./translation-warning-modal-DalBhNQy.js")), ji = () => {
|
|
1153
|
+
const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Pe(), s = le("getPreviewUrl", async (g) => g), [r, a] = K(""), { data: i } = ce(), { data: o } = Be(), { data: l } = Ge(), d = q(
|
|
1154
1154
|
() => {
|
|
1155
1155
|
var g;
|
|
1156
1156
|
return (g = o == null ? void 0 : o.find((h) => (h == null ? void 0 : h.lang) === t)) == null ? void 0 : g.slug;
|
|
@@ -1187,7 +1187,7 @@ const zi = V(() => import("./unpublish-page-Cr9AlIFG.js")), Wi = V(() => import(
|
|
|
1187
1187
|
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1188
1188
|
] });
|
|
1189
1189
|
}, Ji = () => {
|
|
1190
|
-
const { t: e } = we(), [t, n] = K(!1), { isLocked: s } = ye(), { savePageAsync: r, saveState: a } =
|
|
1190
|
+
const { t: e } = we(), [t, n] = K(!1), { isLocked: s } = ye(), { savePageAsync: r, saveState: a } = Ue();
|
|
1191
1191
|
se(() => {
|
|
1192
1192
|
const u = (f) => {
|
|
1193
1193
|
a === "UNSAVED" && (f.preventDefault(), f.returnValue = !1);
|
|
@@ -1226,7 +1226,7 @@ const zi = V(() => import("./unpublish-page-Cr9AlIFG.js")), Wi = V(() => import(
|
|
|
1226
1226
|
d
|
|
1227
1227
|
] });
|
|
1228
1228
|
}, Zi = () => {
|
|
1229
|
-
const { t: e } = we(), { selectedLang: t } = Pe(), { data: n } =
|
|
1229
|
+
const { t: e } = we(), { selectedLang: t } = Pe(), { data: n } = Ce(), { data: s } = Be(), [r, a] = K(!1), [i, o] = K(!1), [l, d] = K(null), { savePageAsync: u } = Ue(), [f, g] = K(!1), { data: h } = ce(), { mutate: p, isPending: T } = Hs(), { needTranslations: S } = Ue(), O = S(), { buttonText: y, buttonClassName: w, isPublished: v } = q(() => {
|
|
1230
1230
|
const P = h && (h == null ? void 0 : h.online);
|
|
1231
1231
|
return {
|
|
1232
1232
|
buttonClassName: P ? "hover:bg-green-600 bg-green-500" : "",
|
|
@@ -1359,7 +1359,7 @@ const eo = ({
|
|
|
1359
1359
|
children: o,
|
|
1360
1360
|
isLanguagePage: l
|
|
1361
1361
|
}) => {
|
|
1362
|
-
const { t: d } = we(), { hasPermission: u } = Is(), { data: f } =
|
|
1362
|
+
const { t: d } = we(), { hasPermission: u } = Is(), { data: f } = Ge(), g = q(() => ie(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]);
|
|
1363
1363
|
return !u(ue.EDIT_PAGE) && !u(ue.DELETE_PAGE) && !u(ue.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(Nn, { children: [
|
|
1364
1364
|
/* @__PURE__ */ c(Cn, { asChild: !0, onClick: (S) => S.stopPropagation(), children: o }),
|
|
1365
1365
|
/* @__PURE__ */ m(Gn, { align: "center", className: "text-sm", children: [
|
|
@@ -1445,8 +1445,8 @@ const eo = ({
|
|
|
1445
1445
|
) })
|
|
1446
1446
|
] })
|
|
1447
1447
|
] });
|
|
1448
|
-
}, to =
|
|
1449
|
-
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 } =
|
|
1448
|
+
}, to = H(() => import("./add-new-page-tFiCCldO.js")), no = H(() => import("./delete-page-BBmM-A0h.js")), so = H(() => import("./duplicate-page-FHWK3iKz.js")), ro = H(() => import("./mark-as-template-CGwS-ih8.js")), ao = H(() => import("./unmark-as-template-CqQSRoJ8.js")), io = H(() => import("./unpublish-page-COTuNBKf.js")), oo = () => {
|
|
1449
|
+
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 } = Ce(), { selectedLang: p, fallbackLang: T } = Pe(), { data: S } = Be(), O = S == null ? void 0 : S.find((b) => b.lang === p), { isLocked: y } = ye(), w = !(g != null && g.slug), [, v] = oe(xn);
|
|
1450
1450
|
if (!g) return null;
|
|
1451
1451
|
const U = (b) => {
|
|
1452
1452
|
p.length > 0 && p !== T ? v({
|
|
@@ -1464,7 +1464,7 @@ const eo = ({
|
|
|
1464
1464
|
variant: "ghost",
|
|
1465
1465
|
children: h ? /* @__PURE__ */ c(qt, { 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: [
|
|
1466
1466
|
w ? /* @__PURE__ */ c(ja, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Ya, { className: "mr-1 h-4 w-4" }),
|
|
1467
|
-
|
|
1467
|
+
V(O || g, "name") ?? ""
|
|
1468
1468
|
] })
|
|
1469
1469
|
}
|
|
1470
1470
|
) }),
|
|
@@ -1526,14 +1526,14 @@ const eo = ({
|
|
|
1526
1526
|
), lo = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(qs, { 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: [
|
|
1527
1527
|
/* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
1528
1528
|
/* @__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" })
|
|
1529
|
-
] }) }), co =
|
|
1529
|
+
] }) }), co = H(() => import("./dynamic-page-selector-Co3Q9p7l.js")), uo = () => {
|
|
1530
1530
|
const { dynamicPage: e, allLangPages: t, isFetching: n } = hi(), s = t.length > 0;
|
|
1531
1531
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1532
1532
|
!e && /* @__PURE__ */ c(lo, { hasDynamicPage: s }),
|
|
1533
1533
|
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(co, {}) })
|
|
1534
1534
|
] });
|
|
1535
1535
|
}, fo = () => {
|
|
1536
|
-
const { data: e, isFetching: t } =
|
|
1536
|
+
const { data: e, isFetching: t } = Ce(), { data: n, isFetching: s } = ce(), r = V(n, "dynamic", !1), a = On(), i = sa("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, d = pi(), u = t || s, g = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
|
|
1537
1537
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center gap-x-1", children: [
|
|
1538
1538
|
/* @__PURE__ */ c(
|
|
1539
1539
|
"div",
|
|
@@ -1638,12 +1638,12 @@ const eo = ({
|
|
|
1638
1638
|
action: E.GET_DRAFT_PAGE,
|
|
1639
1639
|
data: { id: t, draft: !0 }
|
|
1640
1640
|
}), d = l.blocks ?? [], u = ie(d, { _type: "@chai/ai-context" });
|
|
1641
|
-
return s(
|
|
1641
|
+
return s(V(u, "_value", "") || ""), r((f) => ({ ...f, lastSaved: l.lastSaved })), a(V(l, "metadata", {})), setTimeout(() => i(!0), 500), d;
|
|
1642
1642
|
},
|
|
1643
1643
|
enabled: !!t
|
|
1644
1644
|
});
|
|
1645
1645
|
}, yo = () => {
|
|
1646
|
-
const { data: e } = ce(), { data: t } =
|
|
1646
|
+
const { data: e } = ce(), { data: t } = Ce(), n = N(), s = I(), r = Un(), a = On();
|
|
1647
1647
|
return re({
|
|
1648
1648
|
queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
|
|
1649
1649
|
staleTime: 1 / 0,
|
|
@@ -1777,7 +1777,7 @@ const eo = ({
|
|
|
1777
1777
|
const s = await t(n, {
|
|
1778
1778
|
action: "GET_LIBRARY_ITEM",
|
|
1779
1779
|
data: { id: e.id }
|
|
1780
|
-
}), r =
|
|
1780
|
+
}), r = V(s, "html", ""), a = V(s, "blocks", []);
|
|
1781
1781
|
return Qr(a) ? a : ia(r);
|
|
1782
1782
|
},
|
|
1783
1783
|
async getUILibraryBlocks(e, t, n) {
|
|
@@ -1871,7 +1871,7 @@ const eo = ({
|
|
|
1871
1871
|
[n, t]
|
|
1872
1872
|
)
|
|
1873
1873
|
};
|
|
1874
|
-
}, wo =
|
|
1874
|
+
}, wo = H(() => import("./ai-panel-content-LAJ1G2c_.js").then((e) => e.b)), Qs = "chai-chat-panel", vo = ({ 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: [
|
|
1875
1875
|
/* @__PURE__ */ c("title", { children: "ai" }),
|
|
1876
1876
|
/* @__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(
|
|
1877
1877
|
"path",
|
|
@@ -1886,9 +1886,9 @@ const eo = ({
|
|
|
1886
1886
|
button: Io,
|
|
1887
1887
|
panel: wo,
|
|
1888
1888
|
position: "top"
|
|
1889
|
-
}, Lo =
|
|
1890
|
-
const { data: n } =
|
|
1891
|
-
return !Jt(n, "languages") || !
|
|
1889
|
+
}, Lo = H(() => import("./lang-panel-DlqwCSo_.js")), No = ({ isActive: e, show: t }) => {
|
|
1890
|
+
const { data: n } = Ne();
|
|
1891
|
+
return !Jt(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Za, { className: "h-4 w-4" }) });
|
|
1892
1892
|
}, zs = "lang", Co = {
|
|
1893
1893
|
id: zs,
|
|
1894
1894
|
label: "Languages",
|
|
@@ -1897,7 +1897,7 @@ const eo = ({
|
|
|
1897
1897
|
button: No,
|
|
1898
1898
|
view: "modal",
|
|
1899
1899
|
width: 400
|
|
1900
|
-
}, Go =
|
|
1900
|
+
}, Go = H(() => import("./seo-panel-aNUIzjJ2.js")), Ws = "seo", Do = ({ isActive: e, show: t }) => {
|
|
1901
1901
|
const { data: n } = ce(), s = Bi(n == null ? void 0 : n.pageType);
|
|
1902
1902
|
return !Jt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(M, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
1903
1903
|
"svg",
|
|
@@ -1990,7 +1990,7 @@ var Ys = !1, Uo = (e, t) => e === t, $t = Symbol("solid-proxy"), Js = typeof Pro
|
|
|
1990
1990
|
context: null,
|
|
1991
1991
|
owner: null
|
|
1992
1992
|
}, fn = {}, C = null, hn = null, Mo = null, x = null, ee = null, _e = null, nn = 0;
|
|
1993
|
-
function
|
|
1993
|
+
function Re(e, t) {
|
|
1994
1994
|
const n = x, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? er : {
|
|
1995
1995
|
owned: null,
|
|
1996
1996
|
cleanups: null,
|
|
@@ -2018,7 +2018,7 @@ function Bo(e, t, n) {
|
|
|
2018
2018
|
const s = sn(e, t, !0, Ie);
|
|
2019
2019
|
it(s);
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function ke(e, t, n) {
|
|
2022
2022
|
const s = sn(e, t, !1, Ie);
|
|
2023
2023
|
it(s);
|
|
2024
2024
|
}
|
|
@@ -2367,7 +2367,7 @@ function yn(e) {
|
|
|
2367
2367
|
function jo(e, t) {
|
|
2368
2368
|
return function(s) {
|
|
2369
2369
|
let r;
|
|
2370
|
-
return
|
|
2370
|
+
return ke(() => r = Z(() => (C.context = {
|
|
2371
2371
|
...C.context,
|
|
2372
2372
|
[e]: s.value
|
|
2373
2373
|
}, sr(() => s.children))), void 0), r;
|
|
@@ -2384,10 +2384,10 @@ function Yo(e, t, n = {}) {
|
|
|
2384
2384
|
return l[Zs], Z(() => {
|
|
2385
2385
|
let h, p, T, S, O, y, w, v, U;
|
|
2386
2386
|
if (d === 0)
|
|
2387
|
-
i !== 0 && (Yt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [An], r[0] =
|
|
2387
|
+
i !== 0 && (Yt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [An], r[0] = Re((b) => (a[0] = b, n.fallback())), i = 1);
|
|
2388
2388
|
else if (i === 0) {
|
|
2389
2389
|
for (r = new Array(d), f = 0; f < d; f++)
|
|
2390
|
-
s[f] = l[f], r[f] =
|
|
2390
|
+
s[f] = l[f], r[f] = Re(g);
|
|
2391
2391
|
i = d;
|
|
2392
2392
|
} else {
|
|
2393
2393
|
for (T = new Array(d), S = new Array(d), o && (O = new Array(d)), y = 0, w = Math.min(i, d); y < w && s[y] === l[y]; y++) ;
|
|
@@ -2398,7 +2398,7 @@ function Yo(e, t, n = {}) {
|
|
|
2398
2398
|
for (u = y; u <= w; u++)
|
|
2399
2399
|
U = s[u], f = h.get(U), f !== void 0 && f !== -1 ? (T[f] = r[u], S[f] = a[u], o && (O[f] = o[u]), f = p[f], h.set(U, f)) : a[u]();
|
|
2400
2400
|
for (f = y; f < d; f++)
|
|
2401
|
-
f in T ? (r[f] = T[f], a[f] = S[f], o && (o[f] = O[f], o[f](f))) : r[f] =
|
|
2401
|
+
f in T ? (r[f] = T[f], a[f] = S[f], o && (o[f] = O[f], o[f](f))) : r[f] = Re(g);
|
|
2402
2402
|
r = r.slice(0, i = d), s = l.slice(0);
|
|
2403
2403
|
}
|
|
2404
2404
|
return r;
|
|
@@ -2418,9 +2418,9 @@ function Jo(e, t, n = {}) {
|
|
|
2418
2418
|
const d = e() || [], u = d.length;
|
|
2419
2419
|
return d[Zs], Z(() => {
|
|
2420
2420
|
if (u === 0)
|
|
2421
|
-
return o !== 0 && (Yt(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [An], r[0] =
|
|
2421
|
+
return o !== 0 && (Yt(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [An], r[0] = Re((g) => (a[0] = g, n.fallback())), o = 1), r;
|
|
2422
2422
|
for (s[0] === An && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < u; l++)
|
|
2423
|
-
l < s.length && s[l] !== d[l] ? i[l](() => d[l]) : l >= s.length && (r[l] =
|
|
2423
|
+
l < s.length && s[l] !== d[l] ? i[l](() => d[l]) : l >= s.length && (r[l] = Re(f));
|
|
2424
2424
|
for (; l < s.length; l++)
|
|
2425
2425
|
a[l]();
|
|
2426
2426
|
return o = i.length = a.length = u, s = d.slice(0), r = r.slice(0, o);
|
|
@@ -2803,7 +2803,7 @@ function ul(e, t, n) {
|
|
|
2803
2803
|
var lt = "_$DX_DELEGATE";
|
|
2804
2804
|
function fr(e, t, n, s = {}) {
|
|
2805
2805
|
let r;
|
|
2806
|
-
return
|
|
2806
|
+
return Re((a) => {
|
|
2807
2807
|
r = a, t === document ? e() : _n(t, e(), t.firstChild ? null : void 0, n);
|
|
2808
2808
|
}, s.owner), () => {
|
|
2809
2809
|
r(), t.textContent = "";
|
|
@@ -2877,14 +2877,14 @@ function pl(e, t, n) {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
function yl(e, t = {}, n, s) {
|
|
2879
2879
|
const r = {};
|
|
2880
|
-
return s ||
|
|
2880
|
+
return s || ke(() => r.children = ft(e, t.children, r.children)), ke(() => typeof t.ref == "function" && Al(t.ref, e)), ke(() => Tl(e, t, n, !0, r, !0)), r;
|
|
2881
2881
|
}
|
|
2882
2882
|
function Al(e, t, n) {
|
|
2883
2883
|
return Z(() => e(t, n));
|
|
2884
2884
|
}
|
|
2885
2885
|
function _n(e, t, n, s) {
|
|
2886
2886
|
if (n !== void 0 && !s && (s = []), typeof t != "function") return ft(e, t, s, n);
|
|
2887
|
-
|
|
2887
|
+
ke((r) => ft(e, t(), r, n), s);
|
|
2888
2888
|
}
|
|
2889
2889
|
function Tl(e, t, n, s, r = {}, a = !1) {
|
|
2890
2890
|
t || (t = {});
|
|
@@ -3012,7 +3012,7 @@ function ft(e, t, n, s, r) {
|
|
|
3012
3012
|
n = Ve(e, n, s);
|
|
3013
3013
|
} else {
|
|
3014
3014
|
if (i === "function")
|
|
3015
|
-
return
|
|
3015
|
+
return ke(() => {
|
|
3016
3016
|
let l = t();
|
|
3017
3017
|
for (; typeof l == "function"; ) l = l();
|
|
3018
3018
|
n = ft(e, l, n, s);
|
|
@@ -3020,7 +3020,7 @@ function ft(e, t, n, s, r) {
|
|
|
3020
3020
|
if (Array.isArray(t)) {
|
|
3021
3021
|
const l = [], d = n && Array.isArray(n);
|
|
3022
3022
|
if (Pn(l, t, n, r))
|
|
3023
|
-
return
|
|
3023
|
+
return ke(() => n = ft(e, l, n, s, !0)), () => n;
|
|
3024
3024
|
if (a) {
|
|
3025
3025
|
if (!l.length) return n;
|
|
3026
3026
|
if (s === void 0) return n = [...e.childNodes];
|
|
@@ -3101,7 +3101,7 @@ function vu(e) {
|
|
|
3101
3101
|
const o = s();
|
|
3102
3102
|
if (o instanceof HTMLHeadElement) {
|
|
3103
3103
|
const [l, d] = F(!1), u = () => d(!0);
|
|
3104
|
-
|
|
3104
|
+
Re((f) => _n(o, () => l() ? f() : a(), null)), ut(u);
|
|
3105
3105
|
} else {
|
|
3106
3106
|
const l = gr(e.isSVG ? "g" : "div", e.isSVG), d = t && l.attachShadow ? l.attachShadow({
|
|
3107
3107
|
mode: "open"
|
|
@@ -3746,13 +3746,13 @@ var Ou = (e, t = !1) => {
|
|
|
3746
3746
|
if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
|
|
3747
3747
|
const s = document.createElement("style"), r = document.createTextNode("");
|
|
3748
3748
|
s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
|
|
3749
|
-
}, qe, Et, pt, yt,
|
|
3749
|
+
}, qe, Et, pt, yt, Oe, At, $e, Qe, ze, We, je, Tt, Ye, St, ps, ac = (ps = class {
|
|
3750
3750
|
constructor(e) {
|
|
3751
3751
|
D(this, qe);
|
|
3752
3752
|
D(this, Et);
|
|
3753
3753
|
D(this, pt);
|
|
3754
3754
|
D(this, yt);
|
|
3755
|
-
D(this,
|
|
3755
|
+
D(this, Oe, !1);
|
|
3756
3756
|
D(this, At);
|
|
3757
3757
|
D(this, $e);
|
|
3758
3758
|
D(this, Qe);
|
|
@@ -3793,12 +3793,12 @@ var Ou = (e, t = !1) => {
|
|
|
3793
3793
|
A(this, qe)[1](e);
|
|
3794
3794
|
}
|
|
3795
3795
|
mount(e) {
|
|
3796
|
-
if (A(this,
|
|
3796
|
+
if (A(this, Oe))
|
|
3797
3797
|
throw new Error("Devtools is already mounted");
|
|
3798
3798
|
const t = fr(() => {
|
|
3799
3799
|
const n = this, [s] = A(this, Qe), [r] = A(this, ze), [a] = A(this, We), [i] = A(this, je), [o] = A(this, Tt), [l] = A(this, qe);
|
|
3800
3800
|
let d;
|
|
3801
|
-
return A(this, Ye) ? d = A(this, Ye) : (d = ur(() => import("./NCMVHL6D-
|
|
3801
|
+
return A(this, Ye) ? d = A(this, Ye) : (d = ur(() => import("./NCMVHL6D-Dg5ySLf6.js")), G(this, Ye, d)), Gr(A(this, At), A(this, $e)), lr(d, cr({
|
|
3802
3802
|
get queryFlavor() {
|
|
3803
3803
|
return A(n, pt);
|
|
3804
3804
|
},
|
|
@@ -3832,21 +3832,21 @@ var Ou = (e, t = !1) => {
|
|
|
3832
3832
|
}
|
|
3833
3833
|
}));
|
|
3834
3834
|
}, e);
|
|
3835
|
-
G(this,
|
|
3835
|
+
G(this, Oe, !0), G(this, St, t);
|
|
3836
3836
|
}
|
|
3837
3837
|
unmount() {
|
|
3838
3838
|
var e;
|
|
3839
|
-
if (!A(this,
|
|
3839
|
+
if (!A(this, Oe))
|
|
3840
3840
|
throw new Error("Devtools is not mounted");
|
|
3841
|
-
(e = A(this, St)) == null || e.call(this), G(this,
|
|
3841
|
+
(e = A(this, St)) == null || e.call(this), G(this, Oe, !1);
|
|
3842
3842
|
}
|
|
3843
|
-
}, qe = new WeakMap(), Et = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(),
|
|
3843
|
+
}, qe = new WeakMap(), Et = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), Oe = new WeakMap(), At = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), Tt = new WeakMap(), Ye = new WeakMap(), St = new WeakMap(), ps), Je, _t, Pt, wt, xe, vt, Ze, Xe, et, tt, nt, It, st, rt, bt, ys, ic = (ys = class {
|
|
3844
3844
|
constructor(e) {
|
|
3845
3845
|
D(this, Je);
|
|
3846
3846
|
D(this, _t);
|
|
3847
3847
|
D(this, Pt);
|
|
3848
3848
|
D(this, wt);
|
|
3849
|
-
D(this,
|
|
3849
|
+
D(this, xe, !1);
|
|
3850
3850
|
D(this, vt);
|
|
3851
3851
|
D(this, Ze);
|
|
3852
3852
|
D(this, Xe);
|
|
@@ -3892,12 +3892,12 @@ var Ou = (e, t = !1) => {
|
|
|
3892
3892
|
A(this, st)[1](() => e);
|
|
3893
3893
|
}
|
|
3894
3894
|
mount(e) {
|
|
3895
|
-
if (A(this,
|
|
3895
|
+
if (A(this, xe))
|
|
3896
3896
|
throw new Error("Devtools is already mounted");
|
|
3897
3897
|
const t = fr(() => {
|
|
3898
3898
|
const n = this, [s] = A(this, Xe), [r] = A(this, et), [a] = A(this, tt), [i] = A(this, nt), [o] = A(this, It), [l] = A(this, Je), [d] = A(this, st);
|
|
3899
3899
|
let u;
|
|
3900
|
-
return A(this, rt) ? u = A(this, rt) : (u = ur(() => import("./2AITGKQY-
|
|
3900
|
+
return A(this, rt) ? u = A(this, rt) : (u = ur(() => import("./2AITGKQY-fS5AFjG9.js")), G(this, rt, u)), Gr(A(this, vt), A(this, Ze)), lr(u, cr({
|
|
3901
3901
|
get queryFlavor() {
|
|
3902
3902
|
return A(n, Pt);
|
|
3903
3903
|
},
|
|
@@ -3934,15 +3934,15 @@ var Ou = (e, t = !1) => {
|
|
|
3934
3934
|
}
|
|
3935
3935
|
}));
|
|
3936
3936
|
}, e);
|
|
3937
|
-
G(this,
|
|
3937
|
+
G(this, xe, !0), G(this, bt, t);
|
|
3938
3938
|
}
|
|
3939
3939
|
unmount() {
|
|
3940
3940
|
var e;
|
|
3941
|
-
if (!A(this,
|
|
3941
|
+
if (!A(this, xe))
|
|
3942
3942
|
throw new Error("Devtools is not mounted");
|
|
3943
|
-
(e = A(this, bt)) == null || e.call(this), G(this,
|
|
3943
|
+
(e = A(this, bt)) == null || e.call(this), G(this, xe, !1);
|
|
3944
3944
|
}
|
|
3945
|
-
}, Je = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(),
|
|
3945
|
+
}, Je = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), wt = new WeakMap(), xe = new WeakMap(), vt = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), It = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), bt = new WeakMap(), ys);
|
|
3946
3946
|
function oc(e) {
|
|
3947
3947
|
const t = J(e.client), n = Q.useRef(null), {
|
|
3948
3948
|
buttonPosition: s,
|
|
@@ -4036,7 +4036,7 @@ const cc = pe(""), uc = () => {
|
|
|
4036
4036
|
queryFn: async () => t(e, { action: E.GET_COLLECTIONS })
|
|
4037
4037
|
});
|
|
4038
4038
|
}, fc = () => {
|
|
4039
|
-
const { data: e } = ce(), { data: t } =
|
|
4039
|
+
const { data: e } = ce(), { data: t } = Ce(), { data: n } = Ne(), s = N(), r = I(), a = q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = be(/* @__PURE__ */ new Map());
|
|
4040
4040
|
return Y({
|
|
4041
4041
|
mutationFn: async ({ block: o }) => {
|
|
4042
4042
|
const l = o._id, d = (t == null ? void 0 : t.lang) || a, u = `${l}:${d}`;
|
|
@@ -4092,7 +4092,7 @@ const cc = pe(""), uc = () => {
|
|
|
4092
4092
|
queryFn: async () => e ? t(n, { action: "GET_SITE_WIDE_USAGE" }) : {},
|
|
4093
4093
|
retry: !1
|
|
4094
4094
|
});
|
|
4095
|
-
}, pc =
|
|
4095
|
+
}, pc = H(() => import("./page-lock-CXzGU8zl.js")), yc = H(() => import("./no-language-page-dialog-C03CVsV2.js")), Ac = H(() => import("./digital-asset-manager-B9q68gsa.js")), Tc = H(() => import("./save-to-lib-BHrQ3z_j.js")), Sc = H(() => import("./theme-panel-footer-B-RX3AbU.js")), _c = H(() => import("./web-preview-1LMXa1c5.js"));
|
|
4096
4096
|
uc();
|
|
4097
4097
|
li();
|
|
4098
4098
|
oa(ho);
|
|
@@ -4104,7 +4104,7 @@ const Pc = {
|
|
|
4104
4104
|
permissions: null
|
|
4105
4105
|
}, ms = (e) => {
|
|
4106
4106
|
var Vn;
|
|
4107
|
-
const { data: t } = To(), n = Un(), { data: s = Pc, isFetching: r } = So(), { data: a, isFetching: i } =
|
|
4107
|
+
const { data: t } = To(), n = Un(), { data: s = Pc, isFetching: r } = So(), { data: a, isFetching: i } = Ge(), { data: o, isFetching: l } = dc(), { data: d, isFetching: u } = Ne(), f = r || i || l || u, [g] = ve(), h = g.get("page"), { data: p } = ce(), { data: T, isFetching: S } = po(), { blocks: O } = Eo(T), { data: y, isFetching: w } = yo(), { pageStatus: v } = ye(), U = go(), { onSave: b } = _o(), { mutateAsync: Ae } = fc(), { getPartialBlocks: Te, getPartialBlockBlocks: B } = Po(), { mutateAsync: P } = Fi(), { mutateAsync: L } = Ao(), { data: W } = Ec(((Vn = e.flags) == null ? void 0 : Vn.designTokens) ?? !1), $ = gc(), [fe, Nt] = K(!1), Se = be([]), Ke = q(() => V(d, "theme", {}) || {}, [d]), De = v === te.EDITING, Dr = v === te.CHECKING, Fn = S || Dr || w;
|
|
4108
4108
|
Se.current = O;
|
|
4109
4109
|
const [Or] = oe(cc);
|
|
4110
4110
|
se(() => {
|
|
@@ -4115,7 +4115,7 @@ const Pc = {
|
|
|
4115
4115
|
}, []);
|
|
4116
4116
|
const xr = q(() => {
|
|
4117
4117
|
const ae = {};
|
|
4118
|
-
return s && (ae.permissions =
|
|
4118
|
+
return s && (ae.permissions = V(s, "permissions", null), ae.role = V(s, "role", "user")), ae;
|
|
4119
4119
|
}, [s]), Kn = q(() => t == null ? void 0 : t.some((ae) => ae.isSiteLibrary), [t]), Rr = z(
|
|
4120
4120
|
async (ae, Ct) => await P({ pageType: ae, query: Ct }),
|
|
4121
4121
|
[P]
|
|
@@ -4148,7 +4148,7 @@ const Pc = {
|
|
|
4148
4148
|
translations: e.translations || {},
|
|
4149
4149
|
locale: e.locale || "en",
|
|
4150
4150
|
htmlDir: e.htmlDir || "ltr",
|
|
4151
|
-
autoSave: !fe &&
|
|
4151
|
+
autoSave: !fe && De && (e.autoSave ?? !0),
|
|
4152
4152
|
autoSaveActionsCount: e.autoSaveActionsCount ?? 10,
|
|
4153
4153
|
onError: e.onError || console.error,
|
|
4154
4154
|
getPartialBlockBlocks: B,
|
|
@@ -4202,7 +4202,7 @@ const Pc = {
|
|
|
4202
4202
|
s(!0);
|
|
4203
4203
|
}, 200), () => {
|
|
4204
4204
|
s(!1), t({});
|
|
4205
|
-
}), [e, t]), n ?
|
|
4205
|
+
}), [e, t]), n ? V(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(me, { children: [
|
|
4206
4206
|
/* @__PURE__ */ c(ms, { ...e }),
|
|
4207
4207
|
/* @__PURE__ */ c(gs, {})
|
|
4208
4208
|
] }) : /* @__PURE__ */ m(ea, { client: wc, children: [
|
|
@@ -4250,7 +4250,7 @@ function Ic({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4250
4250
|
] });
|
|
4251
4251
|
}
|
|
4252
4252
|
const Bu = () => {
|
|
4253
|
-
const { savePageAsync: e } =
|
|
4253
|
+
const { savePageAsync: e } = Ue(), t = J(), { isLocked: n } = ye();
|
|
4254
4254
|
return z(async () => {
|
|
4255
4255
|
n || await e(), t.invalidateQueries({ queryKey: [E.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [E.GET_BUILDER_PAGE_DATA] });
|
|
4256
4256
|
}, [e, t, n]);
|
|
@@ -4260,7 +4260,7 @@ const Bu = () => {
|
|
|
4260
4260
|
e.clear();
|
|
4261
4261
|
}, [e]);
|
|
4262
4262
|
}, Ku = () => {
|
|
4263
|
-
const e = N(), t = I(), { data: n } =
|
|
4263
|
+
const e = N(), t = I(), { data: n } = Ce(), s = J();
|
|
4264
4264
|
return Y({
|
|
4265
4265
|
mutationFn: async (r) => {
|
|
4266
4266
|
if (!(n != null && n.id))
|
|
@@ -4284,7 +4284,7 @@ const Bu = () => {
|
|
|
4284
4284
|
console.error("Failed to update metadata");
|
|
4285
4285
|
}
|
|
4286
4286
|
});
|
|
4287
|
-
}, bc =
|
|
4287
|
+
}, bc = H(() => import("./digital-asset-manager-B9q68gsa.js")), Vu = ({
|
|
4288
4288
|
assetId: e,
|
|
4289
4289
|
assetUrl: t,
|
|
4290
4290
|
onChange: n,
|
|
@@ -4507,11 +4507,11 @@ const Gc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Es = (e) => {
|
|
|
4507
4507
|
const s = /{{([^{}]+)}}/g;
|
|
4508
4508
|
let r;
|
|
4509
4509
|
for (; (r = s.exec(n)) !== null; ) {
|
|
4510
|
-
const a = r[1], i =
|
|
4510
|
+
const a = r[1], i = V(t, a, null);
|
|
4511
4511
|
n = n.replace(r[0], i);
|
|
4512
4512
|
}
|
|
4513
4513
|
return n;
|
|
4514
|
-
}, xc =
|
|
4514
|
+
}, xc = H(() => import("./shared-json-ld-DL7-3W57.js")), Hu = ({
|
|
4515
4515
|
value: e,
|
|
4516
4516
|
onChange: t,
|
|
4517
4517
|
disabled: n = !1,
|
|
@@ -4524,7 +4524,7 @@ const Gc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Es = (e) => {
|
|
|
4524
4524
|
hasJsonLdForSelectedLang: d,
|
|
4525
4525
|
copyJsonLDFromDefaultPage: u
|
|
4526
4526
|
}) => {
|
|
4527
|
-
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), O = be(null), [y] = Dn(), w = i === "jsonLD" &&
|
|
4527
|
+
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), O = be(null), [y] = Dn(), w = i === "jsonLD" && V(y, "features.sharedJsonLD", !1), v = i === "jsonLD" && !d && !!u;
|
|
4528
4528
|
se(() => {
|
|
4529
4529
|
e.trim() === "" && t("{}");
|
|
4530
4530
|
}, [e, t]);
|
|
@@ -4540,13 +4540,13 @@ const Gc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Es = (e) => {
|
|
|
4540
4540
|
const fe = e.substring(L, W).split(`
|
|
4541
4541
|
`);
|
|
4542
4542
|
if (B.shiftKey) {
|
|
4543
|
-
const Se = fe.map((
|
|
4543
|
+
const Se = fe.map((De) => De.startsWith(" ") ? De.substring(2) : De).join(`
|
|
4544
4544
|
`), Ke = e.substring(0, L) + Se + e.substring(W);
|
|
4545
4545
|
t(Ke), setTimeout(() => {
|
|
4546
4546
|
P.selectionStart = L, P.selectionEnd = L + Se.length;
|
|
4547
4547
|
}, 0);
|
|
4548
4548
|
} else {
|
|
4549
|
-
const Se = fe.map((
|
|
4549
|
+
const Se = fe.map((De) => ` ${De}`).join(`
|
|
4550
4550
|
`), Ke = e.substring(0, L) + Se + e.substring(W);
|
|
4551
4551
|
t(Ke), setTimeout(() => {
|
|
4552
4552
|
P.selectionStart = L, P.selectionEnd = L + Se.length;
|
|
@@ -4716,7 +4716,7 @@ export {
|
|
|
4716
4716
|
Xo as H,
|
|
4717
4717
|
gu as I,
|
|
4718
4718
|
mu as J,
|
|
4719
|
-
|
|
4719
|
+
ke as K,
|
|
4720
4720
|
xt as L,
|
|
4721
4721
|
Sn as M,
|
|
4722
4722
|
Eu as N,
|
|
@@ -4767,7 +4767,7 @@ export {
|
|
|
4767
4767
|
Yc as aT,
|
|
4768
4768
|
Us as aU,
|
|
4769
4769
|
Mu as aV,
|
|
4770
|
-
|
|
4770
|
+
Ce as aW,
|
|
4771
4771
|
Fu as aX,
|
|
4772
4772
|
gc as aY,
|
|
4773
4773
|
Bu as aZ,
|
|
@@ -4778,7 +4778,7 @@ export {
|
|
|
4778
4778
|
Nu as ad,
|
|
4779
4779
|
Lu as ae,
|
|
4780
4780
|
Zs as af,
|
|
4781
|
-
|
|
4781
|
+
Re as ag,
|
|
4782
4782
|
ml as ah,
|
|
4783
4783
|
bu as ai,
|
|
4784
4784
|
Su as aj,
|
|
@@ -4807,10 +4807,10 @@ export {
|
|
|
4807
4807
|
Ks as g,
|
|
4808
4808
|
Jc as h,
|
|
4809
4809
|
Zc as i,
|
|
4810
|
-
|
|
4810
|
+
Ne as j,
|
|
4811
4811
|
Un as k,
|
|
4812
|
-
|
|
4813
|
-
|
|
4812
|
+
Be as l,
|
|
4813
|
+
Ge as m,
|
|
4814
4814
|
hi as n,
|
|
4815
4815
|
eu as o,
|
|
4816
4816
|
cc as p,
|