@chaibuilder/pages 0.16.15 → 0.16.16
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-Cs6RBSPQ.cjs → 2AITGKQY-BV6JxIio.cjs} +1 -1
- package/dist/{2AITGKQY-2rt9M99C.js → 2AITGKQY-DmJ7FEya.js} +2 -2
- package/dist/{NCMVHL6D-CsC6nsSQ.cjs → NCMVHL6D-B_AZmaGG.cjs} +1 -1
- package/dist/{NCMVHL6D-vUfYKc6i.js → NCMVHL6D-DsqUQxZK.js} +2 -2
- package/dist/{ZDWCUMSJ-B2OZjsr6.cjs → ZDWCUMSJ-CQXWzREv.cjs} +1 -1
- package/dist/{ZDWCUMSJ-CzEWKlEU.js → ZDWCUMSJ-DusX6DXb.js} +1 -1
- package/dist/{active-in-another-tab-B0N5S-Bh.js → active-in-another-tab-CSNxota6.js} +1 -1
- package/dist/{active-in-another-tab-BK3cZf-x.cjs → active-in-another-tab-rGDvhc3f.cjs} +1 -1
- package/dist/{add-new-language-page-YlqcCdlK.js → add-new-language-page-C1ekdWwV.js} +2 -2
- package/dist/{add-new-language-page-Dt1j-8Zg.cjs → add-new-language-page-DmQ_eB85.cjs} +1 -1
- package/dist/{add-new-page-DqhQUQBz.cjs → add-new-page-BImvK_fV.cjs} +1 -1
- package/dist/{add-new-page-aYomeid4.js → add-new-page-C6gW1_B-.js} +1 -1
- package/dist/{ai-panel-content-MOZmNIKP.cjs → ai-panel-content-BGMRcgkl.cjs} +1 -1
- package/dist/{ai-panel-content-C6cH9rrC.js → ai-panel-content-BJoNy1Yk.js} +2 -2
- package/dist/{ai-panel-default-lang-BZHkFsox.js → ai-panel-default-lang-BLE3cVLR.js} +3 -3
- package/dist/{ai-panel-default-lang-DOk_Q0IO.cjs → ai-panel-default-lang-CNTq97FU.cjs} +2 -2
- package/dist/{ai-panel-other-lang-D2A46FTg.js → ai-panel-other-lang-DBBxinT6.js} +3 -3
- package/dist/{ai-panel-other-lang-qHrdvAMa.cjs → ai-panel-other-lang-VRmIp9Qm.cjs} +1 -1
- package/dist/{ai-prompt-input-BZSjjNJd.cjs → ai-prompt-input-5aMuJDep.cjs} +1 -1
- package/dist/{ai-prompt-input-C6gDvvLQ.js → ai-prompt-input-BivmKxNH.js} +2 -2
- package/dist/{ai-translation-prompt-DTR0wbGt.js → ai-translation-prompt-CkvGj9Zu.js} +1 -1
- package/dist/{ai-translation-prompt-BqXo2CLp.cjs → ai-translation-prompt-hp5Ey1Eq.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-C3T6Jzhi.cjs → continue-editing-in-this-client-BdjGzFLm.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-D2S1yCOM.js → continue-editing-in-this-client-Bdm_5BEM.js} +1 -1
- package/dist/{delete-page-BF1k60U2.js → delete-page-BHu4rVNA.js} +1 -1
- package/dist/{delete-page-x0DWKzsR.cjs → delete-page-OGCRZzrG.cjs} +1 -1
- package/dist/{digital-asset-manager-C8udwDBW.js → digital-asset-manager-C7JEgxdI.js} +1 -1
- package/dist/{digital-asset-manager-BmlFt2T_.cjs → digital-asset-manager-CaF6tRHd.cjs} +1 -1
- package/dist/{duplicate-page-Dt_QZkTk.cjs → duplicate-page-Co3QgE3M.cjs} +1 -1
- package/dist/{duplicate-page-u_6vUVo1.js → duplicate-page-DZW5jpE3.js} +2 -2
- package/dist/{dynamic-page-selector-DxBHmglP.js → dynamic-page-selector-C2vVfVwL.js} +1 -1
- package/dist/{dynamic-page-selector-Cgs_Y_Kl.cjs → dynamic-page-selector-CL-sCDkO.cjs} +1 -1
- package/dist/{index-DI2Rwk5v.js → index-DOH-lluK.js} +101 -101
- package/dist/index-MzR4MaVE.cjs +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-diff-viewer-D2g0Yab2.cjs → json-diff-viewer-C69tubC8.cjs} +1 -1
- package/dist/{json-diff-viewer-QdUwk7yF.js → json-diff-viewer-DVB2glQZ.js} +1 -1
- package/dist/{lang-panel-B8OD0GiA.js → lang-panel-BDNMrT8U.js} +2 -2
- package/dist/{lang-panel-M2Zb01lF.cjs → lang-panel-DWj5wlfo.cjs} +1 -1
- package/dist/{mark-as-template-DONU52b1.cjs → mark-as-template-Br9qxjbc.cjs} +1 -1
- package/dist/{mark-as-template-CJ1mlxYT.js → mark-as-template-wKn7aI8D.js} +1 -1
- package/dist/{no-language-page-content-Dtm37LTJ.js → no-language-page-content-C7oVsIYu.js} +1 -1
- package/dist/{no-language-page-content-DD9Ok2Ku.cjs → no-language-page-content-CFVzHv_Y.cjs} +1 -1
- package/dist/{no-language-page-dialog-Dj_z2_hF.js → no-language-page-dialog-5-cAE2F2.js} +2 -2
- package/dist/{no-language-page-dialog-D3dvenZ7.cjs → no-language-page-dialog-BqrxzBfj.cjs} +1 -1
- package/dist/{page-creator-DIMFISo4.js → page-creator-89jgn0Ao.js} +2 -2
- package/dist/{page-creator-DTC66ujU.cjs → page-creator-itnGYmd4.cjs} +1 -1
- package/dist/{page-lock-CI6BYvF_.cjs → page-lock-BGnEhXCW.cjs} +1 -1
- package/dist/{page-lock-DUlNr3os.js → page-lock-T6QScRbl.js} +2 -2
- package/dist/{page-locked-dialog-DorIbva0.cjs → page-locked-dialog-B39IqdJ9.cjs} +1 -1
- package/dist/{page-locked-dialog-BKwULMV7.js → page-locked-dialog-Bo2JuCSN.js} +1 -1
- package/dist/{page-manager-new-znvqI9_L.js → page-manager-new-CElobhjD.js} +2 -2
- package/dist/{page-manager-new-lNVrLOJp.cjs → page-manager-new-D44_zdpQ.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-pe0q0qnZ.cjs → page-manager-search-and-filter-DmXFyylC.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-C-_w7N27.js → page-manager-search-and-filter-VgVbeup1.js} +1 -1
- package/dist/{page-revisions-content-CyLjyxNU.js → page-revisions-content-C3GLr_sM.js} +2 -2
- package/dist/{page-revisions-content-Caaj5TEI.cjs → page-revisions-content-CsxGDRzT.cjs} +1 -1
- package/dist/{publish-pages-content-D5beVcQI.cjs → publish-pages-content-CdwZOxtG.cjs} +1 -1
- package/dist/{publish-pages-content-Bih1W9C4.js → publish-pages-content-Cj6sTZ-B.js} +2 -2
- package/dist/{save-to-lib-DPAERsi4.cjs → save-to-lib-BjfzVByH.cjs} +1 -1
- package/dist/{save-to-lib-BwpkJcT2.js → save-to-lib-DtdHpuWg.js} +1 -1
- package/dist/{selected-block-display-s99Y91qI.cjs → selected-block-display-B0yeKnWl.cjs} +1 -1
- package/dist/{selected-block-display-GXSf3y2s.js → selected-block-display-DVzQ888o.js} +1 -1
- package/dist/{seo-panel-BxUfalVy.cjs → seo-panel-CaXQTicZ.cjs} +1 -1
- package/dist/{seo-panel-BurZA566.js → seo-panel-h6FQkwhv.js} +1 -1
- package/dist/{shared-json-ld-DHWdJvQd.js → shared-json-ld-B1HhFgk0.js} +1 -1
- package/dist/{shared-json-ld-BYAdrPeC.cjs → shared-json-ld-DcYfd7Sl.cjs} +1 -1
- package/dist/{slug-input-Z_ny7bgX.js → slug-input-Bq48cfWr.js} +1 -1
- package/dist/{slug-input-CR2B1kDJ.cjs → slug-input-DDDMhrBe.cjs} +1 -1
- package/dist/{take-over-request-DF2JsIes.js → take-over-request-BC2Rh5wd.js} +1 -1
- package/dist/{take-over-request-CnEpToCM.cjs → take-over-request-Cpa9ooTw.cjs} +1 -1
- package/dist/{theme-panel-footer-5mxFeEua.js → theme-panel-footer-B4D33YEO.js} +1 -1
- package/dist/{theme-panel-footer-C2CjHoBu.cjs → theme-panel-footer-DoFYuPy1.cjs} +1 -1
- package/dist/{unmark-as-template-Dn90g1eh.cjs → unmark-as-template-4A6kxi6r.cjs} +1 -1
- package/dist/{unmark-as-template-JRRUYTOY.js → unmark-as-template-fkt1rehy.js} +1 -1
- package/dist/{unpublish-page-FZ8rbi7u.js → unpublish-page-IQ4WTVMd.js} +1 -1
- package/dist/{unpublish-page-C3C_rTRd.cjs → unpublish-page-uIYo5nwG.cjs} +1 -1
- package/dist/{web-preview-NdxC92Fk.cjs → web-preview-BvfhE4ij.cjs} +1 -1
- package/dist/{web-preview-CGBKG162.js → web-preview-DYbA7jro.js} +1 -1
- package/package.json +1 -1
- package/dist/index-BeWL6Sj6.cjs +0 -5
|
@@ -12,7 +12,7 @@ import { useQuery as oe, useMutation as Y, useQueryClient as J, onlineManager as
|
|
|
12
12
|
import { useLanguages as _e, useSavePage as ke, useTranslation as Pe, mergeClasses as Vt, usePermissions as _s, PERMISSIONS as Jr, useRightPanel as Zr, useChaiFeatureFlag as Xr, useIsPageLoaded as ea, registerChaiLibrary as ta, getBlocksFromHTML as na, registerChaiSidebarPanel as Gt, registerChaiFeatureFlag as rn, registerChaiTopBar as sa, registerChaiMediaManager as ra, registerChaiSaveToLibrary as aa, ChaiBuilderEditor as ia } from "@chaibuilder/sdk";
|
|
13
13
|
import { Tooltip as Jt, TooltipTrigger as Zt, Button as M, TooltipContent as Xt, Sheet as Ps, SheetContent as ws, SheetHeader as oa, SheetTitle as la, SheetDescription as ca, DropdownMenu as Ln, DropdownMenuTrigger as Nn, DropdownMenuContent as Cn, DropdownMenuItem as fe, Separator as ua, TooltipProvider as vs, SheetTrigger as da, Skeleton as Ot, Dialog as bs, HoverCard as fa, HoverCardTrigger as ha, HoverCardContent as ga, AlertDialog as ma, AlertDialogTrigger as Ea, AlertDialogContent as pa, AlertDialogHeader as ya, AlertDialogTitle as Aa, AlertDialogDescription as Ta, AlertDialogFooter as Sa, AlertDialogCancel as _a, AlertDialogAction as Pa, Popover as wa, PopoverTrigger as va, DialogContent as ba, DialogHeader as Ia, DialogTitle as La, Tabs as Na, TabsList as Ca, TabsTrigger as an, TabsContent as on, Textarea as Qn, Alert as Ga, AlertDescription as Oa } from "@chaibuilder/sdk/ui";
|
|
14
14
|
import { LogsIcon as Da, Folder as xa, Languages as zn, ChevronDown as En, Star as Ra, Plus as Is, History as ka, Play as Ua, Palette as Ma, CheckCircle as Ba, Loader as Ht, Save as Fa, Send as jn, Rocket as Wn, CopyPlusIcon as Ka, Pencil as Va, Power as Ha, Trash as qa, SquareLibrary as Yn, Hash as $a, File as Qa, MoreHorizontal as Jn, ExternalLink as za, LanguagesIcon as ja, User as Wa, X as Zn, Trash2 as Ya, ImageIcon as Xn, Code as Ja, Eye as Za, Share2 as Xa, FileCode2 as ei, AlertTriangle as ti } from "lucide-react";
|
|
15
|
-
import { toast as
|
|
15
|
+
import { toast as D } from "sonner";
|
|
16
16
|
import { useRegisteredChaiBlocks as ni, getDefaultBlockProps as si } from "@chaibuilder/runtime";
|
|
17
17
|
import { loadWebBlocks as ri } from "@chaibuilder/sdk/web-blocks";
|
|
18
18
|
const Dt = {
|
|
@@ -387,10 +387,10 @@ const li = ({ query: e, uuid: t }) => {
|
|
|
387
387
|
}, ci = () => {
|
|
388
388
|
const { selectedLang: e, fallbackLang: t } = _e(), [n, s] = Gs(), [r, a] = K(""), i = oi(r, 500), { allLangPages: o, data: l, isFetching: d } = li({ query: i }), u = z((h) => s(h), [s]), f = z((h) => a(h), [a]), g = z(() => {
|
|
389
389
|
if (!n) return;
|
|
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,
|
|
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, x = o.filter(
|
|
391
391
|
(y) => (y == null ? void 0 : y.primaryPage) === T || y.id === T
|
|
392
392
|
).find((y) => p ? y.lang === e || y.lang === t : y.lang === e);
|
|
393
|
-
s(
|
|
393
|
+
s(x || n);
|
|
394
394
|
}, [n, e, o, s, t]);
|
|
395
395
|
return {
|
|
396
396
|
isFetching: d,
|
|
@@ -586,14 +586,14 @@ const Rs = () => {
|
|
|
586
586
|
u.current(f);
|
|
587
587
|
});
|
|
588
588
|
}), f.subscribe(async (g) => {
|
|
589
|
-
g === "SUBSCRIBED" ? a(f) : (g === "CHANNEL_ERROR" || g === "TIMED_OUT") && (
|
|
589
|
+
g === "SUBSCRIBED" ? (D.dismiss("realtime-connection-error"), a(f)) : (g === "CHANNEL_ERROR" || g === "TIMED_OUT") && (console.log("Realtime connection failed", g), D.error("Realtime connection failed. Please reload the page.", {
|
|
590
590
|
id: "realtime-connection-error",
|
|
591
591
|
duration: 1 / 0,
|
|
592
592
|
action: {
|
|
593
593
|
label: "Reload",
|
|
594
594
|
onClick: () => window.location.reload()
|
|
595
595
|
},
|
|
596
|
-
position: "
|
|
596
|
+
position: "bottom-center"
|
|
597
597
|
}), a(null), i(ee.CONNECTION_LOST));
|
|
598
598
|
}), () => {
|
|
599
599
|
f.unsubscribe(), a(null);
|
|
@@ -636,7 +636,7 @@ const Rs = () => {
|
|
|
636
636
|
},
|
|
637
637
|
placeholderData: (r) => r || {}
|
|
638
638
|
});
|
|
639
|
-
}, bi = V(() => import("./page-manager-new-
|
|
639
|
+
}, bi = V(() => import("./page-manager-new-CElobhjD.js")), Ms = ({ children: e }) => {
|
|
640
640
|
const { t } = Pe(), [n, s] = we(), r = n.get("page"), { data: a, isFetching: i } = ce(), { data: o, isFetching: l } = Us(), [d, u] = K(!1), [f, g] = K(!0), { savePage: h } = ke(), p = !!r && !Te(a), { isLocked: T } = he(), S = q(() => {
|
|
641
641
|
if (!o || l) return !1;
|
|
642
642
|
const v = o.find((U) => U.slug === "/");
|
|
@@ -647,7 +647,7 @@ const Rs = () => {
|
|
|
647
647
|
const U = new URLSearchParams({ page: S });
|
|
648
648
|
Ds(U, s), !l && o && g(!1);
|
|
649
649
|
}, [r, l, o, S, s]);
|
|
650
|
-
const
|
|
650
|
+
const x = !f && !r, y = !f && !i && Te(a), w = d || x || y;
|
|
651
651
|
return /* @__PURE__ */ m(me, { children: [
|
|
652
652
|
/* @__PURE__ */ c("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ m(Jt, { children: [
|
|
653
653
|
/* @__PURE__ */ c(
|
|
@@ -684,7 +684,7 @@ const Rs = () => {
|
|
|
684
684
|
}
|
|
685
685
|
) })
|
|
686
686
|
] });
|
|
687
|
-
}, Ii = V(() => import("./add-new-language-page-
|
|
687
|
+
}, Ii = V(() => import("./add-new-language-page-C1ekdWwV.js")), Li = () => {
|
|
688
688
|
const e = le("topLeftCorner", null);
|
|
689
689
|
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Qr.createElement(e, {}) }) : null;
|
|
690
690
|
}, Ni = ({
|
|
@@ -722,14 +722,14 @@ const Rs = () => {
|
|
|
722
722
|
detail: {
|
|
723
723
|
fromLang: o,
|
|
724
724
|
toLang: y,
|
|
725
|
-
switchHandler: () =>
|
|
725
|
+
switchHandler: () => x(y)
|
|
726
726
|
}
|
|
727
727
|
});
|
|
728
728
|
window.dispatchEvent(v);
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
|
-
|
|
732
|
-
},
|
|
731
|
+
x(y);
|
|
732
|
+
}, x = (y) => {
|
|
733
733
|
i(y);
|
|
734
734
|
const w = new URLSearchParams(window.location.search);
|
|
735
735
|
y === s ? w.delete("lang") : w.set("lang", y), Ds(w, l);
|
|
@@ -738,7 +738,7 @@ const Rs = () => {
|
|
|
738
738
|
/* @__PURE__ */ c(zn, { className: "h-4 w-4" }),
|
|
739
739
|
H(Dt, o, o),
|
|
740
740
|
/* @__PURE__ */ c(En, { className: "h-4 w-4" })
|
|
741
|
-
] }) : n ? /* @__PURE__ */ c(M, { onClick: () =>
|
|
741
|
+
] }) : n ? /* @__PURE__ */ c(M, { onClick: () => x(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(me, { children: /* @__PURE__ */ m(Ln, { children: [
|
|
742
742
|
/* @__PURE__ */ c(Nn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
743
743
|
M,
|
|
744
744
|
{
|
|
@@ -827,7 +827,7 @@ function Gi() {
|
|
|
827
827
|
/* @__PURE__ */ c(Ot, { className: "h-8 w-8 rounded-full" })
|
|
828
828
|
] }, t)) });
|
|
829
829
|
}
|
|
830
|
-
const Oi = Q.lazy(() => import("./page-revisions-content-
|
|
830
|
+
const Oi = Q.lazy(() => import("./page-revisions-content-C3GLr_sM.js"));
|
|
831
831
|
function Di() {
|
|
832
832
|
const [e, t] = Q.useState(!1);
|
|
833
833
|
return /* @__PURE__ */ c(vs, { children: /* @__PURE__ */ m(Jt, { delayDuration: 0, children: [
|
|
@@ -899,11 +899,11 @@ const cn = ({
|
|
|
899
899
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
900
900
|
});
|
|
901
901
|
const i = a.template ? `Page created from "${a.template.name}" template` : a.hasSlug === !1 ? "New " + ((o = ae(s, { key: a.pageType })) == null ? void 0 : o.name) + " added successfully" : "New page added successfully";
|
|
902
|
-
|
|
902
|
+
D.success(i);
|
|
903
903
|
},
|
|
904
904
|
onError: (r, a) => {
|
|
905
905
|
const i = ae(s, { key: a.pageType });
|
|
906
|
-
|
|
906
|
+
D.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
907
907
|
description: H(xi, r.message, r.message)
|
|
908
908
|
});
|
|
909
909
|
}
|
|
@@ -928,7 +928,7 @@ const cn = ({
|
|
|
928
928
|
},
|
|
929
929
|
onError: (a, i) => {
|
|
930
930
|
const o = ae(r, { key: i.pageType });
|
|
931
|
-
|
|
931
|
+
D.error(`Failed to update ${o != null && o.hasSlug ? "page" : o.name}.`, {
|
|
932
932
|
description: a.message
|
|
933
933
|
});
|
|
934
934
|
}
|
|
@@ -942,7 +942,7 @@ const cn = ({
|
|
|
942
942
|
}),
|
|
943
943
|
onSuccess: (r, a) => {
|
|
944
944
|
if (r.code === "PAGE_LOCKED") {
|
|
945
|
-
|
|
945
|
+
D.error("Delete not allowed", {
|
|
946
946
|
description: "Page is currently being edited by another user."
|
|
947
947
|
});
|
|
948
948
|
return;
|
|
@@ -957,7 +957,7 @@ const cn = ({
|
|
|
957
957
|
},
|
|
958
958
|
onError: (r, a) => {
|
|
959
959
|
const i = ae(s, { key: a.pageType });
|
|
960
|
-
|
|
960
|
+
D.error(`Failed to delete ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
961
961
|
description: r.message
|
|
962
962
|
});
|
|
963
963
|
}
|
|
@@ -976,13 +976,13 @@ const cn = ({
|
|
|
976
976
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
977
977
|
});
|
|
978
978
|
const i = ae(s, { key: a.pageType });
|
|
979
|
-
|
|
979
|
+
D.success(
|
|
980
980
|
i != null && i.hasSlug ? "Page unpublished successfully." : "New " + i.name + " added successfully."
|
|
981
981
|
);
|
|
982
982
|
},
|
|
983
983
|
onError: (r, a) => {
|
|
984
984
|
const i = ae(s, { key: a.pageType });
|
|
985
|
-
|
|
985
|
+
D.error(`Failed to take offline ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
986
986
|
description: r.message
|
|
987
987
|
});
|
|
988
988
|
}
|
|
@@ -1004,7 +1004,7 @@ const cn = ({
|
|
|
1004
1004
|
});
|
|
1005
1005
|
},
|
|
1006
1006
|
onError: (a) => {
|
|
1007
|
-
console.log("##", a),
|
|
1007
|
+
console.log("##", a), D.error("Failed to publish pages.");
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
}, Wc = () => {
|
|
@@ -1026,10 +1026,10 @@ const cn = ({
|
|
|
1026
1026
|
onSuccess: () => {
|
|
1027
1027
|
n.invalidateQueries({
|
|
1028
1028
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
1029
|
-
}),
|
|
1029
|
+
}), D.success("Page marked as template successfully.");
|
|
1030
1030
|
},
|
|
1031
1031
|
onError: () => {
|
|
1032
|
-
|
|
1032
|
+
D.error("Failed to mark page as template.");
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
1035
|
}, Yc = () => {
|
|
@@ -1042,10 +1042,10 @@ const cn = ({
|
|
|
1042
1042
|
onSuccess: () => {
|
|
1043
1043
|
n.invalidateQueries({
|
|
1044
1044
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
1045
|
-
}),
|
|
1045
|
+
}), D.success("Page unmarked as template successfully.");
|
|
1046
1046
|
},
|
|
1047
1047
|
onError: () => {
|
|
1048
|
-
|
|
1048
|
+
D.error("Failed to unmark page as template.");
|
|
1049
1049
|
}
|
|
1050
1050
|
});
|
|
1051
1051
|
}, Jc = () => {
|
|
@@ -1056,17 +1056,17 @@ const cn = ({
|
|
|
1056
1056
|
data: { id: s, slug: r }
|
|
1057
1057
|
}),
|
|
1058
1058
|
onSuccess: (s, { primaryPage: r }) => {
|
|
1059
|
-
|
|
1059
|
+
D.success("Slug changed successfully."), r ? n.invalidateQueries({
|
|
1060
1060
|
queryKey: [E.GET_LANGUAGE_PAGES, r]
|
|
1061
1061
|
}) : n.invalidateQueries({
|
|
1062
1062
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
1063
1063
|
});
|
|
1064
1064
|
},
|
|
1065
1065
|
onError: () => {
|
|
1066
|
-
|
|
1066
|
+
D.error("Failed to change slug");
|
|
1067
1067
|
}
|
|
1068
1068
|
});
|
|
1069
|
-
}, Ui = V(() => import("./publish-pages-content-
|
|
1069
|
+
}, Ui = V(() => import("./publish-pages-content-Cj6sTZ-B.js"));
|
|
1070
1070
|
function Mi({
|
|
1071
1071
|
showModal: e = !1,
|
|
1072
1072
|
onClose: t = () => console.log("Cancelled")
|
|
@@ -1156,7 +1156,7 @@ function Un({
|
|
|
1156
1156
|
/* @__PURE__ */ c(Xt, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
|
|
1157
1157
|
] }) }) : e;
|
|
1158
1158
|
}
|
|
1159
|
-
const Hi = V(() => import("./unpublish-page-
|
|
1159
|
+
const Hi = V(() => import("./unpublish-page-IQ4WTVMd.js")), qi = V(() => import("./translation-warning-modal-DalBhNQy.js")), $i = () => {
|
|
1160
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(
|
|
1161
1161
|
() => {
|
|
1162
1162
|
var g;
|
|
@@ -1233,7 +1233,7 @@ const Hi = V(() => import("./unpublish-page-FZ8rbi7u.js")), qi = V(() => import(
|
|
|
1233
1233
|
d
|
|
1234
1234
|
] });
|
|
1235
1235
|
}, ji = () => {
|
|
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 } = Bs(), { needTranslations: S } = ke(),
|
|
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 } = Bs(), { needTranslations: S } = ke(), x = S(), { buttonText: y, buttonClassName: w, isPublished: v } = q(() => {
|
|
1237
1237
|
const P = h && (h == null ? void 0 : h.online);
|
|
1238
1238
|
return {
|
|
1239
1239
|
buttonClassName: P ? "hover:bg-green-600 bg-green-500" : "",
|
|
@@ -1241,7 +1241,7 @@ const Hi = V(() => import("./unpublish-page-FZ8rbi7u.js")), qi = V(() => import(
|
|
|
1241
1241
|
buttonText: e(P ? "Published" : "Publish")
|
|
1242
1242
|
};
|
|
1243
1243
|
}, [h, e]), U = async () => {
|
|
1244
|
-
if (
|
|
1244
|
+
if (x) {
|
|
1245
1245
|
g(!0);
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
@@ -1452,8 +1452,8 @@ const Yi = ({
|
|
|
1452
1452
|
) })
|
|
1453
1453
|
] })
|
|
1454
1454
|
] });
|
|
1455
|
-
}, Ji = V(() => import("./add-new-page-
|
|
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(),
|
|
1455
|
+
}, Ji = V(() => import("./add-new-page-C6gW1_B-.js")), Zi = V(() => import("./delete-page-BHu4rVNA.js")), Xi = V(() => import("./duplicate-page-DZW5jpE3.js")), eo = V(() => import("./mark-as-template-wKn7aI8D.js")), to = V(() => import("./unmark-as-template-fkt1rehy.js")), no = V(() => import("./unpublish-page-IQ4WTVMd.js")), so = () => {
|
|
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(), x = S == null ? void 0 : S.find((b) => b.lang === p), { isLocked: y } = he(), w = !(g != null && g.slug), [, v] = ie(Dn);
|
|
1457
1457
|
if (!g) return null;
|
|
1458
1458
|
const U = (b) => {
|
|
1459
1459
|
p.length > 0 && p !== T ? v({
|
|
@@ -1471,7 +1471,7 @@ const Yi = ({
|
|
|
1471
1471
|
variant: "ghost",
|
|
1472
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: [
|
|
1473
1473
|
w ? /* @__PURE__ */ c($a, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Qa, { className: "mr-1 h-4 w-4" }),
|
|
1474
|
-
H(
|
|
1474
|
+
H(x || g, "name") ?? ""
|
|
1475
1475
|
] })
|
|
1476
1476
|
}
|
|
1477
1477
|
) }),
|
|
@@ -1533,7 +1533,7 @@ const Yi = ({
|
|
|
1533
1533
|
), ro = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Fs, { 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: [
|
|
1534
1534
|
/* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
1535
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" })
|
|
1536
|
-
] }) }), ao = V(() => import("./dynamic-page-selector-
|
|
1536
|
+
] }) }), ao = V(() => import("./dynamic-page-selector-C2vVfVwL.js")), io = () => {
|
|
1537
1537
|
const { dynamicPage: e, allLangPages: t, isFetching: n } = ci(), s = t.length > 0;
|
|
1538
1538
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1539
1539
|
!e && /* @__PURE__ */ c(ro, { hasDynamicPage: s }),
|
|
@@ -1690,10 +1690,10 @@ const Yi = ({
|
|
|
1690
1690
|
var a;
|
|
1691
1691
|
t.invalidateQueries({
|
|
1692
1692
|
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS]
|
|
1693
|
-
}), (a = r == null ? void 0 : r.settings) != null && a.theme ||
|
|
1693
|
+
}), (a = r == null ? void 0 : r.settings) != null && a.theme || D.success("Website settings updated successfully.");
|
|
1694
1694
|
},
|
|
1695
1695
|
onError: (s) => {
|
|
1696
|
-
|
|
1696
|
+
D.error("Failed to update website settings", {
|
|
1697
1697
|
description: s.message
|
|
1698
1698
|
});
|
|
1699
1699
|
}
|
|
@@ -1705,10 +1705,10 @@ const Yi = ({
|
|
|
1705
1705
|
onSuccess: () => {
|
|
1706
1706
|
t.invalidateQueries({
|
|
1707
1707
|
queryKey: [E.GET_GLOBAL_JSONLD_ITEMS]
|
|
1708
|
-
}),
|
|
1708
|
+
}), D.success("Schema added successfully.");
|
|
1709
1709
|
},
|
|
1710
1710
|
onError: (r) => {
|
|
1711
|
-
|
|
1711
|
+
D.error("Failed to add schema", {
|
|
1712
1712
|
description: r.message
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
@@ -1720,10 +1720,10 @@ const Yi = ({
|
|
|
1720
1720
|
onSuccess: () => {
|
|
1721
1721
|
t.invalidateQueries({
|
|
1722
1722
|
queryKey: [E.GET_GLOBAL_JSONLD_ITEMS]
|
|
1723
|
-
}),
|
|
1723
|
+
}), D.success("Schema updated successfully.");
|
|
1724
1724
|
},
|
|
1725
1725
|
onError: (r) => {
|
|
1726
|
-
|
|
1726
|
+
D.error("Failed to update schema", {
|
|
1727
1727
|
description: r.message
|
|
1728
1728
|
});
|
|
1729
1729
|
}
|
|
@@ -1735,10 +1735,10 @@ const Yi = ({
|
|
|
1735
1735
|
onSuccess: () => {
|
|
1736
1736
|
t.invalidateQueries({
|
|
1737
1737
|
queryKey: [E.GET_GLOBAL_JSONLD_ITEMS]
|
|
1738
|
-
}),
|
|
1738
|
+
}), D.success("Schema deleted successfully.");
|
|
1739
1739
|
},
|
|
1740
1740
|
onError: (s) => {
|
|
1741
|
-
|
|
1741
|
+
D.error("Failed to delete schema", {
|
|
1742
1742
|
description: s.message
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
@@ -1748,7 +1748,7 @@ const Yi = ({
|
|
|
1748
1748
|
return Y({
|
|
1749
1749
|
mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
1750
1750
|
onError: (n) => {
|
|
1751
|
-
|
|
1751
|
+
D.error("Failed to toggle schema", {
|
|
1752
1752
|
description: n.message
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
@@ -1758,10 +1758,10 @@ const Yi = ({
|
|
|
1758
1758
|
return Y({
|
|
1759
1759
|
mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
1760
1760
|
onSuccess: (n) => {
|
|
1761
|
-
|
|
1761
|
+
D.success(`Schema applied to ${n.count} page(s)`);
|
|
1762
1762
|
},
|
|
1763
1763
|
onError: (n) => {
|
|
1764
|
-
|
|
1764
|
+
D.error("Failed to apply schema to all pages", {
|
|
1765
1765
|
description: n.message
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
@@ -1771,10 +1771,10 @@ const Yi = ({
|
|
|
1771
1771
|
return Y({
|
|
1772
1772
|
mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
1773
1773
|
onSuccess: (n) => {
|
|
1774
|
-
|
|
1774
|
+
D.success(`Schema removed from ${n.count} page(s)`);
|
|
1775
1775
|
},
|
|
1776
1776
|
onError: (n) => {
|
|
1777
|
-
|
|
1777
|
+
D.error("Failed to remove schema from all pages", {
|
|
1778
1778
|
description: n.message
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
@@ -1878,7 +1878,7 @@ const Yi = ({
|
|
|
1878
1878
|
[n, t]
|
|
1879
1879
|
)
|
|
1880
1880
|
};
|
|
1881
|
-
}, To = V(() => import("./ai-panel-content-
|
|
1881
|
+
}, To = V(() => import("./ai-panel-content-BJoNy1Yk.js").then((e) => e.b)), Vs = "chai-chat-panel", So = ({ 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: [
|
|
1882
1882
|
/* @__PURE__ */ c("title", { children: "ai" }),
|
|
1883
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(
|
|
1884
1884
|
"path",
|
|
@@ -1893,7 +1893,7 @@ const Yi = ({
|
|
|
1893
1893
|
button: _o,
|
|
1894
1894
|
panel: To,
|
|
1895
1895
|
position: "top"
|
|
1896
|
-
}, wo = V(() => import("./lang-panel-
|
|
1896
|
+
}, wo = V(() => import("./lang-panel-BDNMrT8U.js")), vo = ({ isActive: e, show: t }) => {
|
|
1897
1897
|
const { data: n } = Be();
|
|
1898
1898
|
return !Yt(n, "languages") || !H(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(ja, { className: "h-4 w-4" }) });
|
|
1899
1899
|
}, Hs = "lang", bo = {
|
|
@@ -1904,7 +1904,7 @@ const Yi = ({
|
|
|
1904
1904
|
button: vo,
|
|
1905
1905
|
view: "modal",
|
|
1906
1906
|
width: 400
|
|
1907
|
-
}, Io = V(() => import("./seo-panel-
|
|
1907
|
+
}, Io = V(() => import("./seo-panel-h6FQkwhv.js")), qs = "seo", Lo = ({ isActive: e, show: t }) => {
|
|
1908
1908
|
const { data: n } = ce(), s = Ri(n == null ? void 0 : n.pageType);
|
|
1909
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(
|
|
1910
1910
|
"svg",
|
|
@@ -1996,19 +1996,19 @@ var Qs = !1, Do = (e, t) => e === t, qt = Symbol("solid-proxy"), zs = typeof Pro
|
|
|
1996
1996
|
cleanups: null,
|
|
1997
1997
|
context: null,
|
|
1998
1998
|
owner: null
|
|
1999
|
-
}, dn = {}, N = null, fn = null, xo = null,
|
|
1999
|
+
}, dn = {}, N = null, fn = null, xo = null, R = null, te = null, Se = null, tn = 0;
|
|
2000
2000
|
function xe(e, t) {
|
|
2001
|
-
const n =
|
|
2001
|
+
const n = R, s = N, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Ys : {
|
|
2002
2002
|
owned: null,
|
|
2003
2003
|
cleanups: null,
|
|
2004
2004
|
context: a ? a.context : null,
|
|
2005
2005
|
owner: a
|
|
2006
2006
|
}, o = r ? e : () => e(() => Z(() => ft(i)));
|
|
2007
|
-
N = i,
|
|
2007
|
+
N = i, R = null;
|
|
2008
2008
|
try {
|
|
2009
2009
|
return Ee(o, !0);
|
|
2010
2010
|
} finally {
|
|
2011
|
-
|
|
2011
|
+
R = n, N = s;
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
2014
|
function F(e, t) {
|
|
@@ -2046,7 +2046,7 @@ function Uo(e, t, n) {
|
|
|
2046
2046
|
let s, r, a;
|
|
2047
2047
|
s = !0, r = e, a = {};
|
|
2048
2048
|
let i = null, o = dn, l = null, d = !1, u = "initialValue" in a, f = typeof s == "function" && W(s);
|
|
2049
|
-
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || F)(a.initialValue), [T, S] = F(void 0), [
|
|
2049
|
+
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || F)(a.initialValue), [T, S] = F(void 0), [x, y] = F(void 0, {
|
|
2050
2050
|
equals: !1
|
|
2051
2051
|
}), [w, v] = F(u ? "ready" : "unresolved");
|
|
2052
2052
|
_.context && (l = _.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : _.load && _.has(l) && (o = _.load(l)));
|
|
@@ -2065,7 +2065,7 @@ function Uo(e, t, n) {
|
|
|
2065
2065
|
function ye() {
|
|
2066
2066
|
const P = Ko, I = h(), j = T();
|
|
2067
2067
|
if (j !== void 0 && !i) throw j;
|
|
2068
|
-
return
|
|
2068
|
+
return R && R.user, I;
|
|
2069
2069
|
}
|
|
2070
2070
|
function Ae(P = !0) {
|
|
2071
2071
|
if (P !== !1 && d) return;
|
|
@@ -2127,13 +2127,13 @@ function ru(e) {
|
|
|
2127
2127
|
return Ee(e, !1);
|
|
2128
2128
|
}
|
|
2129
2129
|
function Z(e) {
|
|
2130
|
-
if (
|
|
2131
|
-
const t =
|
|
2132
|
-
|
|
2130
|
+
if (R === null) return e();
|
|
2131
|
+
const t = R;
|
|
2132
|
+
R = null;
|
|
2133
2133
|
try {
|
|
2134
2134
|
return e();
|
|
2135
2135
|
} finally {
|
|
2136
|
-
|
|
2136
|
+
R = t;
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
function au(e, t, n) {
|
|
@@ -2161,22 +2161,22 @@ function ns() {
|
|
|
2161
2161
|
return N;
|
|
2162
2162
|
}
|
|
2163
2163
|
function Zs(e, t) {
|
|
2164
|
-
const n = N, s =
|
|
2165
|
-
N = e,
|
|
2164
|
+
const n = N, s = R;
|
|
2165
|
+
N = e, R = null;
|
|
2166
2166
|
try {
|
|
2167
2167
|
return Ee(t, !0);
|
|
2168
2168
|
} catch (r) {
|
|
2169
2169
|
Mn(r);
|
|
2170
2170
|
} finally {
|
|
2171
|
-
N = n,
|
|
2171
|
+
N = n, R = s;
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
function Bo(e) {
|
|
2175
|
-
const t =
|
|
2175
|
+
const t = R, n = N;
|
|
2176
2176
|
return Promise.resolve().then(() => {
|
|
2177
|
-
|
|
2177
|
+
R = t, N = n;
|
|
2178
2178
|
let s;
|
|
2179
|
-
return Ee(e, !1),
|
|
2179
|
+
return Ee(e, !1), R = N = null, s ? s.done : void 0;
|
|
2180
2180
|
});
|
|
2181
2181
|
}
|
|
2182
2182
|
var [Fo, iu] = /* @__PURE__ */ F(!1);
|
|
@@ -2210,9 +2210,9 @@ function er() {
|
|
|
2210
2210
|
const e = te;
|
|
2211
2211
|
te = null, Ee(() => jt(this), !1), te = e;
|
|
2212
2212
|
}
|
|
2213
|
-
if (
|
|
2213
|
+
if (R) {
|
|
2214
2214
|
const e = this.observers ? this.observers.length : 0;
|
|
2215
|
-
|
|
2215
|
+
R.sources ? (R.sources.push(this), R.sourceSlots.push(e)) : (R.sources = [this], R.sourceSlots = [e]), this.observers ? (this.observers.push(R), this.observerSlots.push(R.sources.length - 1)) : (this.observers = [R], this.observerSlots = [R.sources.length - 1]);
|
|
2216
2216
|
}
|
|
2217
2217
|
return this.value;
|
|
2218
2218
|
}
|
|
@@ -2235,14 +2235,14 @@ function at(e) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
function Vo(e, t, n) {
|
|
2237
2237
|
let s;
|
|
2238
|
-
const r = N, a =
|
|
2239
|
-
|
|
2238
|
+
const r = N, a = R;
|
|
2239
|
+
R = N = e;
|
|
2240
2240
|
try {
|
|
2241
2241
|
s = e.fn(t);
|
|
2242
2242
|
} catch (i) {
|
|
2243
2243
|
return e.pure && (e.state = ve, e.owned && e.owned.forEach(ft), e.owned = null), e.updatedAt = n + 1, Mn(i);
|
|
2244
2244
|
} finally {
|
|
2245
|
-
|
|
2245
|
+
R = a, N = r;
|
|
2246
2246
|
}
|
|
2247
2247
|
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? tr(e, s) : e.value = s, e.updatedAt = n);
|
|
2248
2248
|
}
|
|
@@ -2389,7 +2389,7 @@ function Qo(e, t, n = {}) {
|
|
|
2389
2389
|
return dt(() => Wt(a)), () => {
|
|
2390
2390
|
let l = e() || [], d = l.length, u, f;
|
|
2391
2391
|
return l[js], Z(() => {
|
|
2392
|
-
let h, p, T, S,
|
|
2392
|
+
let h, p, T, S, x, y, w, v, U;
|
|
2393
2393
|
if (d === 0)
|
|
2394
2394
|
i !== 0 && (Wt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [yn], r[0] = xe((b) => (a[0] = b, n.fallback())), i = 1);
|
|
2395
2395
|
else if (i === 0) {
|
|
@@ -2397,15 +2397,15 @@ function Qo(e, t, n = {}) {
|
|
|
2397
2397
|
s[f] = l[f], r[f] = xe(g);
|
|
2398
2398
|
i = d;
|
|
2399
2399
|
} else {
|
|
2400
|
-
for (T = new Array(d), S = new Array(d), o && (
|
|
2400
|
+
for (T = new Array(d), S = new Array(d), o && (x = new Array(d)), y = 0, w = Math.min(i, d); y < w && s[y] === l[y]; y++) ;
|
|
2401
2401
|
for (w = i - 1, v = d - 1; w >= y && v >= y && s[w] === l[v]; w--, v--)
|
|
2402
|
-
T[v] = r[w], S[v] = a[w], o && (
|
|
2402
|
+
T[v] = r[w], S[v] = a[w], o && (x[v] = o[w]);
|
|
2403
2403
|
for (h = /* @__PURE__ */ new Map(), p = new Array(v + 1), f = v; f >= y; f--)
|
|
2404
2404
|
U = l[f], u = h.get(U), p[f] = u === void 0 ? -1 : u, h.set(U, f);
|
|
2405
2405
|
for (u = y; u <= w; u++)
|
|
2406
|
-
U = s[u], f = h.get(U), f !== void 0 && f !== -1 ? (T[f] = r[u], S[f] = a[u], o && (
|
|
2406
|
+
U = s[u], f = h.get(U), f !== void 0 && f !== -1 ? (T[f] = r[u], S[f] = a[u], o && (x[f] = o[u]), f = p[f], h.set(U, f)) : a[u]();
|
|
2407
2407
|
for (f = y; f < d; f++)
|
|
2408
|
-
f in T ? (r[f] = T[f], a[f] = S[f], o && (o[f] =
|
|
2408
|
+
f in T ? (r[f] = T[f], a[f] = S[f], o && (o[f] = x[f], o[f](f))) : r[f] = xe(g);
|
|
2409
2409
|
r = r.slice(0, i = d), s = l.slice(0);
|
|
2410
2410
|
}
|
|
2411
2411
|
return r;
|
|
@@ -3540,8 +3540,8 @@ var Pr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3540
3540
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
3541
3541
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3542
3542
|
const T = Pr(h, t, n, s, [...r, p], [...a, e], i);
|
|
3543
|
-
u[p] = T.transformedValue, Le(T.annotations) ? f[p] = T.annotations : gt(T.annotations) && rt(T.annotations, (S,
|
|
3544
|
-
f[gr(p) + "." +
|
|
3543
|
+
u[p] = T.transformedValue, Le(T.annotations) ? f[p] = T.annotations : gt(T.annotations) && rt(T.annotations, (S, x) => {
|
|
3544
|
+
f[gr(p) + "." + x] = S;
|
|
3545
3545
|
});
|
|
3546
3546
|
});
|
|
3547
3547
|
const g = Pn(f) ? {
|
|
@@ -3587,7 +3587,7 @@ function bn(e, t = {}) {
|
|
|
3587
3587
|
return Yl(r, a, o, e, t.nonenumerable), r;
|
|
3588
3588
|
}, {});
|
|
3589
3589
|
}
|
|
3590
|
-
var
|
|
3590
|
+
var k = class {
|
|
3591
3591
|
/**
|
|
3592
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`.
|
|
3593
3593
|
*/
|
|
@@ -3635,16 +3635,16 @@ var R = class {
|
|
|
3635
3635
|
this.allowedErrorProps.push(...e);
|
|
3636
3636
|
}
|
|
3637
3637
|
};
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
var Jl =
|
|
3638
|
+
k.defaultInstance = new k();
|
|
3639
|
+
k.serialize = k.defaultInstance.serialize.bind(k.defaultInstance);
|
|
3640
|
+
k.deserialize = k.defaultInstance.deserialize.bind(k.defaultInstance);
|
|
3641
|
+
k.stringify = k.defaultInstance.stringify.bind(k.defaultInstance);
|
|
3642
|
+
k.parse = k.defaultInstance.parse.bind(k.defaultInstance);
|
|
3643
|
+
k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
|
|
3644
|
+
k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
|
|
3645
|
+
k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
|
|
3646
|
+
k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
|
|
3647
|
+
var Jl = k.serialize, Su = k.stringify;
|
|
3648
3648
|
function _u(e) {
|
|
3649
3649
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
|
3650
3650
|
}
|
|
@@ -3805,7 +3805,7 @@ var Iu = (e, t = !1) => {
|
|
|
3805
3805
|
const t = lr(() => {
|
|
3806
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);
|
|
3807
3807
|
let d;
|
|
3808
|
-
return A(this, We) ? d = A(this, We) : (d = ir(() => import("./NCMVHL6D-
|
|
3808
|
+
return A(this, We) ? d = A(this, We) : (d = ir(() => import("./NCMVHL6D-DsqUQxZK.js")), G(this, We, d)), Ir(A(this, Tt), A(this, qe)), rr(d, ar({
|
|
3809
3809
|
get queryFlavor() {
|
|
3810
3810
|
return A(n, yt);
|
|
3811
3811
|
},
|
|
@@ -3904,7 +3904,7 @@ var Iu = (e, t = !1) => {
|
|
|
3904
3904
|
const t = lr(() => {
|
|
3905
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);
|
|
3906
3906
|
let u;
|
|
3907
|
-
return A(this, st) ? u = A(this, st) : (u = ir(() => import("./2AITGKQY-
|
|
3907
|
+
return A(this, st) ? u = A(this, st) : (u = ir(() => import("./2AITGKQY-DmJ7FEya.js")), G(this, st, u)), Ir(A(this, bt), A(this, Je)), rr(u, ar({
|
|
3908
3908
|
get queryFlavor() {
|
|
3909
3909
|
return A(n, wt);
|
|
3910
3910
|
},
|
|
@@ -4090,7 +4090,7 @@ const ac = pe(""), ic = () => {
|
|
|
4090
4090
|
},
|
|
4091
4091
|
[e]
|
|
4092
4092
|
);
|
|
4093
|
-
}, dc = V(() => import("./page-lock-
|
|
4093
|
+
}, dc = V(() => import("./page-lock-T6QScRbl.js")), fc = V(() => import("./no-language-page-dialog-5-cAE2F2.js")), hc = V(() => import("./digital-asset-manager-C7JEgxdI.js")), gc = V(() => import("./save-to-lib-DtdHpuWg.js")), mc = V(() => import("./theme-panel-footer-B4D33YEO.js")), Ec = V(() => import("./web-preview-DYbA7jro.js"));
|
|
4094
4094
|
ic();
|
|
4095
4095
|
ri();
|
|
4096
4096
|
sa(lo);
|
|
@@ -4101,8 +4101,8 @@ const pc = {
|
|
|
4101
4101
|
role: "",
|
|
4102
4102
|
permissions: null
|
|
4103
4103
|
}, ds = (e) => {
|
|
4104
|
-
const { data: t } = Eo(), n = kn(), { data: s = pc, isFetching: r } = po(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = oc(), { data: d, isFetching: u } = Be(), f = r || i || l || u, [g] = we(), h = g.get("page"), { data: p } = ce(), { data: T, isFetching: S } = ho(), { blocks:
|
|
4105
|
-
it.current =
|
|
4104
|
+
const { data: t } = Eo(), n = kn(), { data: s = pc, isFetching: r } = po(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = oc(), { data: d, isFetching: u } = Be(), f = r || i || l || u, [g] = we(), h = g.get("page"), { data: p } = ce(), { data: T, isFetching: S } = ho(), { blocks: x } = fo(T), { data: y, isFetching: w } = go(), { pageStatus: v } = he(), U = co(), { onSave: b } = yo(), { mutateAsync: ye } = lc(), { getPartialBlocks: Ae, getPartialBlockBlocks: B } = Ao(), { mutateAsync: P } = ki(), { mutateAsync: I } = mo(), j = uc(), [$, ue] = K(!1), it = Ie([]), be = q(() => H(d, "theme", {}) || {}, [d]), ot = v === ee.EDITING, Ge = v === ee.CHECKING, Bn = S || Ge || w;
|
|
4105
|
+
it.current = x;
|
|
4106
4106
|
const [Lr] = ie(ac);
|
|
4107
4107
|
se(() => {
|
|
4108
4108
|
const re = () => {
|
|
@@ -4148,7 +4148,7 @@ const pc = {
|
|
|
4148
4148
|
onError: e.onError || console.error,
|
|
4149
4149
|
getPartialBlockBlocks: B,
|
|
4150
4150
|
getPartialBlocks: Ae,
|
|
4151
|
-
blocks: S ? [] :
|
|
4151
|
+
blocks: S ? [] : x,
|
|
4152
4152
|
theme: qr(be),
|
|
4153
4153
|
pageTypes: a,
|
|
4154
4154
|
searchPageTypeItems: Cr,
|
|
@@ -4277,7 +4277,7 @@ const Du = () => {
|
|
|
4277
4277
|
console.error("Failed to update metadata");
|
|
4278
4278
|
}
|
|
4279
4279
|
});
|
|
4280
|
-
}, Sc = V(() => import("./digital-asset-manager-
|
|
4280
|
+
}, Sc = V(() => import("./digital-asset-manager-C7JEgxdI.js")), ku = ({
|
|
4281
4281
|
assetId: e,
|
|
4282
4282
|
assetUrl: t,
|
|
4283
4283
|
onChange: n,
|
|
@@ -4504,7 +4504,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4504
4504
|
n = n.replace(r[0], i);
|
|
4505
4505
|
}
|
|
4506
4506
|
return n;
|
|
4507
|
-
}, Lc = V(() => import("./shared-json-ld-
|
|
4507
|
+
}, Lc = V(() => import("./shared-json-ld-B1HhFgk0.js")), Uu = ({
|
|
4508
4508
|
value: e,
|
|
4509
4509
|
onChange: t,
|
|
4510
4510
|
disabled: n = !1,
|
|
@@ -4517,7 +4517,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4517
4517
|
hasJsonLdForSelectedLang: d,
|
|
4518
4518
|
copyJsonLDFromDefaultPage: u
|
|
4519
4519
|
}) => {
|
|
4520
|
-
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""),
|
|
4520
|
+
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), x = Ie(null), [y] = Gn(), w = i === "jsonLD" && H(y, "features.sharedJsonLD", !1), v = i === "jsonLD" && !d && !!u;
|
|
4521
4521
|
se(() => {
|
|
4522
4522
|
e.trim() === "" && t("{}");
|
|
4523
4523
|
}, [e, t]);
|
|
@@ -4571,7 +4571,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4571
4571
|
t(P);
|
|
4572
4572
|
}
|
|
4573
4573
|
}, Ae = () => {
|
|
4574
|
-
h != null && h.position &&
|
|
4574
|
+
h != null && h.position && x.current && (x.current.focus(), x.current.setSelectionRange(h.position, h.position + 1));
|
|
4575
4575
|
};
|
|
4576
4576
|
return /* @__PURE__ */ c(Pc, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Na, { value: f, onValueChange: g, className: "w-full", children: [
|
|
4577
4577
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
@@ -4636,7 +4636,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4636
4636
|
] }) }) : /* @__PURE__ */ c(
|
|
4637
4637
|
Qn,
|
|
4638
4638
|
{
|
|
4639
|
-
ref:
|
|
4639
|
+
ref: x,
|
|
4640
4640
|
id: i,
|
|
4641
4641
|
name: i,
|
|
4642
4642
|
className: `rounded-md border border-input text-xs ${h ? "border-red-500" : ""}`,
|