@chaibuilder/sdk 4.0.0-beta.7 → 4.0.0-beta.9
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/README.md +5 -8
- package/dist/{2SSKDMRQ-hL7THuKW.js → 2SSKDMRQ-CdFBQR2o.js} +2 -2
- package/dist/{2SSKDMRQ-DDOgISWg.cjs → 2SSKDMRQ-CuQ42ST6.cjs} +1 -1
- package/dist/{AP7HFJJL-tcAhVllC.cjs → AP7HFJJL-DcnEb4BE.cjs} +1 -1
- package/dist/{AP7HFJJL-BsLQ13V_.js → AP7HFJJL-bDlWX5Yx.js} +1 -1
- package/dist/{IconPicker-FLSVAZxx.js → IconPicker-CNwplOGy.js} +2 -2
- package/dist/{IconPicker-J1KLNrSB.cjs → IconPicker-FpyYsxOf.cjs} +1 -1
- package/dist/STRINGS-BExFecZW.js +8 -0
- package/dist/STRINGS-FNnfjF5H.cjs +1 -0
- package/dist/{WDYDFRGG-BTj8AXV6.cjs → WDYDFRGG-BxLmjulP.cjs} +1 -1
- package/dist/{WDYDFRGG-Yi0eNS2V.js → WDYDFRGG-CWq7H6Qk.js} +2 -2
- package/dist/{actions-registery-CtQSSexG.cjs → actions-registery-BRgseJas.cjs} +16 -16
- package/dist/{actions-registery-DqrFhSMp.js → actions-registery-DRV8xywr.js} +180 -181
- package/dist/actions.cjs +1 -1
- package/dist/actions.d.ts +112 -51
- package/dist/actions.js +2 -2
- package/dist/{active-in-another-tab-Dozn833d.js → active-in-another-tab-C392ZWQc.js} +3 -3
- package/dist/{active-in-another-tab-BtAiatqq.cjs → active-in-another-tab-DEWOFgY5.cjs} +1 -1
- package/dist/{add-new-language-page-DD-CAoAQ.js → add-new-language-page-BL2F_Cu7.js} +4 -4
- package/dist/{add-new-language-page-9AMizlES.cjs → add-new-language-page-DBWd0wDY.cjs} +1 -1
- package/dist/{add-new-page-BS9vPnFG.cjs → add-new-page-DYrQeKCi.cjs} +1 -1
- package/dist/{add-new-page-uZKCk9eB.js → add-new-page-QVlyJhn9.js} +2 -2
- package/dist/{ai-panel-content-CK4XOkEh.js → ai-panel-content-CCOluPtK.js} +4 -4
- package/dist/{ai-panel-content-PovaKJaj.cjs → ai-panel-content-DCZRBa6s.cjs} +1 -1
- package/dist/{ai-panel-default-lang-B37k5ADH.cjs → ai-panel-default-lang-C3t0elrO.cjs} +2 -2
- package/dist/{ai-panel-default-lang-BtLjUl9d.js → ai-panel-default-lang-Crz7QAxl.js} +4 -4
- package/dist/{ai-panel-other-lang-CdQmASqv.cjs → ai-panel-other-lang-BRkr4Te3.cjs} +1 -1
- package/dist/{ai-panel-other-lang-Dp1MNaLi.js → ai-panel-other-lang-DIF8PYLh.js} +4 -4
- package/dist/{ai-prompt-input-BT-mEdTX.js → ai-prompt-input-D4dqy8L2.js} +2 -2
- package/dist/{ai-prompt-input-Dtym4w8J.cjs → ai-prompt-input-Ybgvrvd6.cjs} +1 -1
- package/dist/{ai-translation-prompt-B-lH7emI.cjs → ai-translation-prompt-Ck12Bfl6.cjs} +1 -1
- package/dist/{ai-translation-prompt-B17GK1QR.js → ai-translation-prompt-eZ4Sllva.js} +2 -2
- package/dist/{apply-binding-BvWfJCSZ.js → apply-binding-CLU6Xp4K.js} +77 -81
- package/dist/apply-binding-NvZX_rJe.cjs +1 -0
- package/dist/{code-display-DloSPyPr.cjs → code-display-9Onx6RCq.cjs} +1 -1
- package/dist/{code-display-Ck81Id9K.js → code-display-oa1j0ri7.js} +1 -1
- package/dist/{code-editor-EZT2pMsU.js → code-editor-D45h29W1.js} +1 -1
- package/dist/{code-editor-CUeNiMzA.cjs → code-editor-DH8eU4WL.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-CS7C6h9Q.js → continue-editing-in-this-client-BRrIvSrl.js} +3 -3
- package/dist/{continue-editing-in-this-client-DMZOc36k.cjs → continue-editing-in-this-client-DgZ9Q18G.cjs} +1 -1
- package/dist/core-8lkXy4lC.cjs +1 -0
- package/dist/core-BvsZwF26.js +52 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +143 -172
- package/dist/core.js +22 -34
- package/dist/{css-import-modal-s7t5gZQo.js → css-import-modal-BhLPzQH8.js} +5 -4
- package/dist/css-import-modal-C2-oVwFv.cjs +13 -0
- package/dist/{delete-design-token-C1smbx4E.js → delete-design-token-D4Q5-Xql.js} +1 -1
- package/dist/{delete-design-token-Mbw_6sYI.cjs → delete-design-token-DJSQluQ6.cjs} +1 -1
- package/dist/{delete-page-B7J3t0FN.cjs → delete-page-BxbsKhY5.cjs} +1 -1
- package/dist/{delete-page-2GfBi8Iv.js → delete-page-xHdZT-7c.js} +3 -3
- package/dist/{design-token-usage-DyO3xM-F.js → design-token-usage-7wgmVSWI.js} +2 -2
- package/dist/{design-token-usage-BoGOULG8.cjs → design-token-usage-KZ4pilLm.cjs} +1 -1
- package/dist/{digital-asset-manager-Cz3Nlrzl.js → digital-asset-manager-BmbVU7fX.js} +4 -4
- package/dist/{digital-asset-manager-DDk2ucTE.cjs → digital-asset-manager-a1fqrQVH.cjs} +1 -1
- package/dist/{duplicate-page-BwAY4Ssm.js → duplicate-page-5uIno9Yh.js} +4 -4
- package/dist/{duplicate-page-Dw3U4wTT.cjs → duplicate-page-BBTxn_o1.cjs} +1 -1
- package/dist/{dynamic-page-selector-CvBFyX2F.cjs → dynamic-page-selector-C1ef0i2I.cjs} +1 -1
- package/dist/{dynamic-page-selector-sViJuQlU.js → dynamic-page-selector-rhvhg7ol.js} +3 -3
- package/dist/{image-editor-BgGQuESa.js → image-editor-BXYZDa0s.js} +1 -1
- package/dist/{image-editor-AIsccrqC.cjs → image-editor-rqUgAO8V.cjs} +1 -1
- package/dist/{index-B7eWP_hB.js → index-Be9lAaD7.js} +421 -425
- package/dist/index-BhqugjzS.cjs +160 -0
- package/dist/index-CNEEEgTV.cjs +5 -0
- package/dist/{index-RYr8kQdI.js → index-mjuSGlPU.js} +5136 -5613
- package/dist/{json-diff-viewer-B2A78udz.cjs → json-diff-viewer-C9qmLiaq.cjs} +1 -1
- package/dist/{json-diff-viewer-Svw-kbhe.js → json-diff-viewer-aVwY7_hZ.js} +3 -3
- package/dist/{lang-panel-Bnc-9wkM.js → lang-panel-BTWk23Mw.js} +4 -4
- package/dist/{lang-panel-AmEkoWid.cjs → lang-panel-Bo1ZWYfu.cjs} +1 -1
- package/dist/{manage-design-tokens-BBkh1t4w.js → manage-design-tokens-id8bylgO.js} +4 -4
- package/dist/manage-design-tokens-lUMCgjdS.cjs +1 -0
- package/dist/{mark-as-template-CE6tRoQy.cjs → mark-as-template-BYXBDXMv.cjs} +1 -1
- package/dist/{mark-as-template-0CPzZnk-.js → mark-as-template-hv3WD852.js} +3 -3
- package/dist/{nested-path-selector-content-kGznHufl.js → nested-path-selector-content-B8z90MFF.js} +2 -2
- package/dist/{nested-path-selector-content-SmfjElr-.cjs → nested-path-selector-content-DgFFXcTD.cjs} +1 -1
- package/dist/{no-language-page-content-B4bQLc4K.cjs → no-language-page-content-6Kk8UjFX.cjs} +1 -1
- package/dist/{no-language-page-content-DXsAPDZd.js → no-language-page-content-DMACzysm.js} +3 -3
- package/dist/{no-language-page-dialog-BpPqmw9a.js → no-language-page-dialog-D4n_XYUq.js} +2 -2
- package/dist/{no-language-page-dialog-BC8NHzK2.cjs → no-language-page-dialog-mBH-fthh.cjs} +1 -1
- package/dist/{page-creator-82qTbBj4.cjs → page-creator-CGglYnYg.cjs} +1 -1
- package/dist/{page-creator-Bazn6yH4.js → page-creator-CgsOF0Eg.js} +4 -4
- package/dist/{page-lock-CRFyqKZE.js → page-lock-CUCEBnJb.js} +2 -2
- package/dist/{page-lock-D2iFZDUK.cjs → page-lock-Hsi61Mk5.cjs} +1 -1
- package/dist/{page-locked-dialog-xLqvKzax.cjs → page-locked-dialog-DSxbAMpt.cjs} +1 -1
- package/dist/{page-locked-dialog-GKfQEOmk.js → page-locked-dialog-bHvbFllT.js} +3 -3
- package/dist/{page-manager-new-Bn2QKjbf.cjs → page-manager-new-CBfFl5rL.cjs} +1 -1
- package/dist/{page-manager-new-DItY2hjd.js → page-manager-new-Cifc526h.js} +8 -8
- package/dist/{page-manager-search-and-filter-CPa8IXdd.js → page-manager-search-and-filter-CLJss6pV.js} +3 -3
- package/dist/{page-manager-search-and-filter-Dc4ky-qV.cjs → page-manager-search-and-filter-mEKl-UKh.cjs} +1 -1
- package/dist/page-revisions-content-C95dQJyx.cjs +1 -0
- package/dist/{page-revisions-content-CH-PZK0O.js → page-revisions-content-DvL4ya9g.js} +75 -67
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.ts +146 -92
- package/dist/pages.js +1 -1
- package/dist/{publish-pages-content-BzJDObqr.cjs → publish-pages-content-B-6vSkql.cjs} +1 -1
- package/dist/{publish-pages-content-CSJCFElu.js → publish-pages-content-B8-IZW_U.js} +4 -4
- package/dist/{register-chai-top-bar-ESJHs5s-.js → register-chai-top-bar-CX_JkRJn.js} +78 -78
- package/dist/register-chai-top-bar-DWTuRU53.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +14 -15
- package/dist/render.js +3 -3
- package/dist/{rte-widget-modal-5T81P_hg.js → rte-widget-modal-1SbY5bcQ.js} +7 -7
- package/dist/{rte-widget-modal-BfXcA7OP.cjs → rte-widget-modal-CyKwtbOG.cjs} +1 -1
- package/dist/runtime-client.cjs +1 -0
- package/dist/runtime-client.d.ts +158 -0
- package/dist/runtime-client.js +32 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +92 -240
- package/dist/runtime.js +72 -72
- package/dist/{save-to-lib-MtWKSVeN.js → save-to-lib-BKcBfjfi.js} +3 -3
- package/dist/{save-to-lib-DGAdSa-0.cjs → save-to-lib-BmPh_Vns.cjs} +1 -1
- package/dist/{selected-block-display-CB1-hVR5.js → selected-block-display-B3hHlcLA.js} +3 -3
- package/dist/{selected-block-display-DLt_nMn9.cjs → selected-block-display-BCvTNcp2.cjs} +1 -1
- package/dist/{seo-panel-CRzzw4FW.js → seo-panel-D3EyOYij.js} +3 -3
- package/dist/{seo-panel-_kGXE9MC.cjs → seo-panel-DVClgzX9.cjs} +1 -1
- package/dist/{shared-json-ld-DoRgzDPC.cjs → shared-json-ld-BRgJTv0m.cjs} +1 -1
- package/dist/{shared-json-ld-CXukkDeS.js → shared-json-ld-DSPadwbY.js} +3 -3
- package/dist/{slug-input-Dp187Tiy.cjs → slug-input-B39SPBdP.cjs} +1 -1
- package/dist/{slug-input-CeEQ0zyv.js → slug-input-C3UrwSkt.js} +2 -2
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.js +1 -1
- package/dist/{take-over-request-C9J3_rev.js → take-over-request-DfAlPvpE.js} +3 -3
- package/dist/{take-over-request-CXuakFBm.cjs → take-over-request-Tq9-gOCV.cjs} +1 -1
- package/dist/{theme-panel-footer-DvwsyHNQ.js → theme-panel-footer-DIy4baYU.js} +3 -3
- package/dist/{theme-panel-footer-CWZ0qs13.cjs → theme-panel-footer-DQzjVBBP.cjs} +1 -1
- package/dist/{translation-warning-modal-_aBp5ZZQ.js → translation-warning-modal-BHwLZZOw.js} +2 -2
- package/dist/{translation-warning-modal-DEt_ExQp.cjs → translation-warning-modal-Ckwt5Skc.cjs} +1 -1
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +598 -0
- package/dist/types.js +1 -0
- package/dist/{unmark-as-template-BYL5naYx.cjs → unmark-as-template-BKA-sNZr.cjs} +1 -1
- package/dist/{unmark-as-template-JN-cDUV_.js → unmark-as-template-CbgifSbI.js} +3 -3
- package/dist/{unpublish-page-B06iZEIO.cjs → unpublish-page-BqzvOD76.cjs} +1 -1
- package/dist/{unpublish-page-DqwBY2yI.js → unpublish-page-DXQpAkvc.js} +3 -3
- package/dist/utils.d.ts +5 -5
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +214 -214
- package/dist/{web-preview-h39D3TUh.js → web-preview-DH7Yv-jg.js} +2 -2
- package/dist/{web-preview-wRgRY3Tv.cjs → web-preview-DShy13AM.cjs} +1 -1
- package/package.json +13 -7
- package/dist/apply-binding-IsUf6UWJ.cjs +0 -1
- package/dist/core-Dr7QYemB.js +0 -56
- package/dist/core-Y0lXLwkq.cjs +0 -1
- package/dist/css-import-modal-kHB0ramf.cjs +0 -13
- package/dist/index-B-rSiAp_.cjs +0 -1
- package/dist/index-BwH1mRm_.cjs +0 -5
- package/dist/index-Dxfyt4d4.js +0 -39
- package/dist/index-xYnNKovy.cjs +0 -160
- package/dist/manage-design-tokens-B2fG80bi.cjs +0 -1
- package/dist/page-revisions-content-CcLFI4YK.cjs +0 -1
- package/dist/register-chai-top-bar-BqwKw4uy.cjs +0 -1
|
@@ -4,8 +4,8 @@ var zn = (e) => {
|
|
|
4
4
|
var Wn = (e, t, n) => t.has(e) || zn("Cannot " + n);
|
|
5
5
|
var A = (e, t, n) => (Wn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), O = (e, t, n) => t.has(e) ? zn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), C = (e, t, n, s) => (Wn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
|
|
6
6
|
import { jsxs as m, jsx as c, Fragment as he } from "react/jsx-runtime";
|
|
7
|
-
import { n as Pe, aj as Ur, ai as _s, r as Ln, s as Cn, t as Gn, v as ce, Q as Re, w as en, x as tn, y as nn, aB as Ps, aC as ws, a9 as Mr, aa as Br, aD as Fr, aE as Kr, ar as vs, aF as Vr, ab as Dt, D as Is, aG as Hr, aH as qr, aw as $r, av as Qr, ax as zr, E as Wr, F as jr, G as Yr, H as Jr, I as Zr, J as Xr, K as ea, M as ta, O as na, aI as sa, a6 as ra, a7 as aa, d as ia, e as oa, f as la, as as ca, at as ua, au as cn, aJ as un, T as jn } from "./index-
|
|
8
|
-
import { B as M, h as da, j as fa, v as kt, e as Yn, m as ha, q as ga, x as ma, D as Ea, F as pa } from "./register-chai-top-bar-
|
|
7
|
+
import { n as Pe, aj as Ur, ai as _s, r as Ln, s as Cn, t as Gn, v as ce, Q as Re, w as en, x as tn, y as nn, aB as Ps, aC as ws, a9 as Mr, aa as Br, aD as Fr, aE as Kr, ar as vs, aF as Vr, ab as Dt, D as Is, aG as Hr, aH as qr, aw as $r, av as Qr, ax as zr, E as Wr, F as jr, G as Yr, H as Jr, I as Zr, J as Xr, K as ea, M as ta, O as na, aI as sa, a6 as ra, a7 as aa, d as ia, e as oa, f as la, as as ca, at as ua, au as cn, aJ as un, T as jn } from "./index-mjuSGlPU.js";
|
|
8
|
+
import { B as M, h as da, j as fa, v as kt, e as Yn, m as ha, q as ga, x as ma, D as Ea, F as pa } from "./register-chai-top-bar-CX_JkRJn.js";
|
|
9
9
|
import { atom as Ee, useAtom as pe, useSetAtom as On, useAtomValue as ya } from "jotai";
|
|
10
10
|
import { get as H, noop as xn, reverse as Aa, sortBy as Ta, find as ie, minBy as bs, values as Ns, first as Ls, groupBy as Sa, keyBy as _a, map as qt, isEmpty as fe, compact as Cs, each as Pa, upperCase as Jn, filter as Gs, includes as wa, has as sn, pickBy as va, pick as Dn, endsWith as Ia, keys as ba, isArray as Na, startCase as La, isFunction as Ca, cloneDeep as Ga, isEqual as Zn } from "lodash-es";
|
|
11
11
|
import * as $ from "react";
|
|
@@ -13,12 +13,13 @@ import Oa, { useMemo as q, useCallback as z, useState as K, useEffect as ne, use
|
|
|
13
13
|
import { useQuery as re, useMutation as Y, useQueryClient as J, onlineManager as Os, QueryClient as xa, QueryClientProvider as Da } from "@tanstack/react-query";
|
|
14
14
|
import { CopyPlusIcon as ka, Pencil as Ra, Power as Ua, Trash as Ma, SquareLibrary as es, LogsIcon as Ba, Folder as Fa, Loader as $t, Hash as Ka, File as Va, MoreHorizontal as ts, Languages as ns, ChevronDown as yn, Star as Ha, Plus as xs, History as qa, Palette as $a, Play as Qa, CheckCircle as za, Save as Wa, Send as ss, Rocket as rs, ExternalLink as ja, LanguagesIcon as Ya, User as Ja, X as as, Trash2 as Za, ImageIcon as is, Code as Xa, Eye as ei, Share2 as ti, FileCode2 as ni, AlertTriangle as si } from "lucide-react";
|
|
15
15
|
import { useTranslation as we } from "react-i18next";
|
|
16
|
+
import { e as ri } from "./plugin-C-ht41UZ.js";
|
|
16
17
|
import { c as Qt } from "./common-functions-D2lMFR6K.js";
|
|
17
18
|
import { toast as R } from "sonner";
|
|
18
|
-
import { j as
|
|
19
|
-
import { g as
|
|
20
|
-
import { loadWebBlocks as
|
|
21
|
-
import { ErrorBoundary as
|
|
19
|
+
import { j as ai, b as ii } from "./core-BvsZwF26.js";
|
|
20
|
+
import { g as oi } from "./apply-binding-CLU6Xp4K.js";
|
|
21
|
+
import { loadWebBlocks as li } from "./web-blocks.js";
|
|
22
|
+
import { ErrorBoundary as ci } from "react-error-boundary";
|
|
22
23
|
const zt = Ee(null), E = {
|
|
23
24
|
GET_GLOBAL_JSONLD_ITEMS: "GET_GLOBAL_JSONLD_ITEMS",
|
|
24
25
|
GENERATE_SEO_FIELD: "GENERATE_SEO_FIELD",
|
|
@@ -82,17 +83,17 @@ const zt = Ee(null), E = {
|
|
|
82
83
|
UPDATE_ASSET: "UPDATE_ASSET",
|
|
83
84
|
GET_ASSETS: "GET_ASSETS",
|
|
84
85
|
GET_ASSET: "GET_ASSET"
|
|
85
|
-
},
|
|
86
|
+
}, ui = Ee({}), kn = () => pe(ui), ge = (e, t) => {
|
|
86
87
|
const [n] = kn();
|
|
87
88
|
return q(() => H(n, e, t), [n, e, t]);
|
|
88
|
-
}, I = () => ge("apiUrl", "/chai/api"), Ds = () => ge("websocket", null),
|
|
89
|
+
}, I = () => ge("apiUrl", "/chai/api"), Ds = () => ge("websocket", null), di = async (e, t, n = {}) => await fetch(e, {
|
|
89
90
|
method: "POST",
|
|
90
91
|
headers: {
|
|
91
92
|
"Content-Type": "application/json",
|
|
92
93
|
...n
|
|
93
94
|
},
|
|
94
95
|
body: JSON.stringify(t)
|
|
95
|
-
}),
|
|
96
|
+
}), Zc = () => {
|
|
96
97
|
const e = b(), t = I();
|
|
97
98
|
return z(
|
|
98
99
|
async ({
|
|
@@ -109,7 +110,7 @@ const zt = Ee(null), E = {
|
|
|
109
110
|
async (s = n, r, a = {}, i = !1) => {
|
|
110
111
|
const o = await t();
|
|
111
112
|
try {
|
|
112
|
-
const l = H(r, "action", "").toLowerCase(), f = await
|
|
113
|
+
const l = H(r, "action", "").toLowerCase(), f = await di(s + (l ? `?action=${l}` : ""), r, {
|
|
113
114
|
...a,
|
|
114
115
|
Authorization: `Bearer ${o}`
|
|
115
116
|
});
|
|
@@ -164,18 +165,18 @@ const Me = (e) => {
|
|
|
164
165
|
},
|
|
165
166
|
enabled: !!s
|
|
166
167
|
});
|
|
167
|
-
},
|
|
168
|
+
}, fi = Ee(null), ks = () => pe(fi), Rn = () => {
|
|
168
169
|
const [e] = ks();
|
|
169
170
|
return (e == null ? void 0 : e.slug) || "";
|
|
170
171
|
};
|
|
171
|
-
function
|
|
172
|
+
function hi(e, t) {
|
|
172
173
|
const [n, s] = K(e);
|
|
173
174
|
return ne(() => {
|
|
174
175
|
const r = setTimeout(() => s(e), t);
|
|
175
176
|
return () => clearTimeout(r);
|
|
176
177
|
}, [e, t]), n;
|
|
177
178
|
}
|
|
178
|
-
const
|
|
179
|
+
const gi = ({ query: e, uuid: t }) => {
|
|
179
180
|
const { selectedLang: n, fallbackLang: s } = Pe(), { data: r } = oe(), a = r == null ? void 0 : r.pageType, i = I(), o = b(), { data: l, isFetching: f } = re({
|
|
180
181
|
queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
|
|
181
182
|
staleTime: 3600 * 1e3,
|
|
@@ -187,8 +188,8 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
187
188
|
enabled: !!a
|
|
188
189
|
}), d = q(() => n === "" ? l.filter((u) => u.lang === "" || u.lang === s) : l.filter((u) => u.lang === n), [n, s, l]);
|
|
189
190
|
return { allLangPages: l, data: d, isFetching: f };
|
|
190
|
-
},
|
|
191
|
-
const { selectedLang: e, fallbackLang: t } = Pe(), [n, s] = ks(), [r, a] = K(""), i =
|
|
191
|
+
}, mi = () => {
|
|
192
|
+
const { selectedLang: e, fallbackLang: t } = Pe(), [n, s] = ks(), [r, a] = K(""), i = hi(r, 500), { allLangPages: o, data: l, isFetching: f } = gi({ query: i }), d = z((h) => s(h), [s]), u = z((h) => a(h), [a]), g = z(() => {
|
|
192
193
|
if (!n) return;
|
|
193
194
|
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(
|
|
194
195
|
(y) => (y == null ? void 0 : y.primaryPage) === T || y.id === T
|
|
@@ -206,13 +207,13 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
206
207
|
updateSearchQuery: u,
|
|
207
208
|
onChangeLanguage: g
|
|
208
209
|
};
|
|
209
|
-
},
|
|
210
|
+
}, Ei = Ee({ lastSaved: void 0 }), Rs = () => pe(Ei), oe = () => {
|
|
210
211
|
const [e] = ve(), t = e.get("page"), { data: n, isFetching: s } = Me();
|
|
211
212
|
return { data: q(() => ({ ...ie(n, { id: t }) || {} }), [n, t]), isFetching: s };
|
|
212
213
|
}, Le = () => {
|
|
213
214
|
const [e] = ve(), t = e.get("lang") ?? "", { data: n, isFetching: s } = Me();
|
|
214
215
|
return { data: q(() => ie(n, { lang: t }) || {}, [n, t]), isFetching: s };
|
|
215
|
-
},
|
|
216
|
+
}, pi = Ee({}), yi = () => pe(pi), Ai = () => {
|
|
216
217
|
const { data: e } = Le(), t = Rn(), n = ge("getLiveUrl", xn), s = e == null ? void 0 : e.slug, r = n(s || "/");
|
|
217
218
|
return t ? r + t : r;
|
|
218
219
|
}, le = {
|
|
@@ -239,10 +240,10 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
239
240
|
placeholderData: [],
|
|
240
241
|
queryFn: async () => t(e, { action: E.GET_PAGE_TYPES })
|
|
241
242
|
});
|
|
242
|
-
},
|
|
243
|
+
}, Ti = (e) => {
|
|
243
244
|
const { data: t } = Ce();
|
|
244
245
|
return q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
|
|
245
|
-
},
|
|
246
|
+
}, Si = () => {
|
|
246
247
|
const e = I(), t = b();
|
|
247
248
|
return Y({
|
|
248
249
|
mutationFn: async ({ pageType: n, query: s }) => {
|
|
@@ -259,7 +260,7 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
262
|
});
|
|
262
|
-
},
|
|
263
|
+
}, _i = ({
|
|
263
264
|
page: e,
|
|
264
265
|
setDuplicatePage: t,
|
|
265
266
|
setAddEditPage: n,
|
|
@@ -363,7 +364,7 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
363
364
|
staleTime: 300 * 1e3,
|
|
364
365
|
placeholderData: {
|
|
365
366
|
languages: [],
|
|
366
|
-
theme:
|
|
367
|
+
theme: ri,
|
|
367
368
|
appKey: "",
|
|
368
369
|
fallbackLang: "",
|
|
369
370
|
designTokens: {}
|
|
@@ -396,7 +397,7 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
396
397
|
FORCE_TAKE_OVER_REQUEST: "FORCE_TAKE_OVER_REQUEST",
|
|
397
398
|
CONTINUE_EDITING_IN_THIS_CLIENT: "CONTINUE_EDITING_IN_THIS_CLIENT",
|
|
398
399
|
CONTINUE_EDITING_IN_THIS_TAB_REQUEST: "CONTINUE_EDITING_IN_THIS_TAB_REQUEST"
|
|
399
|
-
},
|
|
400
|
+
}, Pi = ["sync", "join", "leave"], wi = [
|
|
400
401
|
se.FORCE_TAKE_OVER,
|
|
401
402
|
se.TAKE_OVER_REQUEST,
|
|
402
403
|
se.TAKE_OVER_APPROVED,
|
|
@@ -404,18 +405,18 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
404
405
|
se.FORCE_TAKE_OVER_REQUEST,
|
|
405
406
|
se.CONTINUE_EDITING_IN_THIS_CLIENT,
|
|
406
407
|
se.CONTINUE_EDITING_IN_THIS_TAB_REQUEST
|
|
407
|
-
],
|
|
408
|
+
], vi = Ee({}), Us = Ee(null), Ii = Ee(te.CHECKING), bi = Ee({}), Ni = (e) => {
|
|
408
409
|
const t = {}, n = Sa(Ns(e).map(Ls).filter(Boolean), "pageId");
|
|
409
410
|
return Object.entries(n).forEach(
|
|
410
411
|
([s, r]) => t[s] = bs(r, "onlineAt")
|
|
411
412
|
), t;
|
|
412
|
-
},
|
|
413
|
+
}, Li = (e) => {
|
|
413
414
|
const t = bs(Ns(e).map(Ls).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
|
|
414
415
|
return n ? n - 100 : +/* @__PURE__ */ new Date() - 1e3 * 60 * 60 * 4;
|
|
415
416
|
}, rn = () => {
|
|
416
417
|
const { user: e } = Un();
|
|
417
418
|
return e == null ? void 0 : e.id;
|
|
418
|
-
},
|
|
419
|
+
}, Ci = () => {
|
|
419
420
|
const { data: e } = Be();
|
|
420
421
|
return `WEBSITE:${e == null ? void 0 : e.appKey}`;
|
|
421
422
|
}, Ct = () => {
|
|
@@ -424,15 +425,15 @@ const hi = ({ query: e, uuid: t }) => {
|
|
|
424
425
|
}, Ue = crypto.randomUUID();
|
|
425
426
|
let dn = null;
|
|
426
427
|
const Ms = () => {
|
|
427
|
-
const [e, t] = pe(
|
|
428
|
+
const [e, t] = pe(vi);
|
|
428
429
|
return { pageToUser: e, setPageToUser: t };
|
|
429
430
|
}, ye = () => {
|
|
430
|
-
const [e, t] = pe(
|
|
431
|
+
const [e, t] = pe(Ii), n = [te.LOCKED, te.ACTIVE_IN_ANOTHER_TAB].includes(e), s = [te.EDITING].includes(e);
|
|
431
432
|
return { pageStatus: e, setPageStatus: t, isLocked: n, isEditing: s };
|
|
432
433
|
}, Bs = () => {
|
|
433
|
-
const [e, t] = pe(
|
|
434
|
+
const [e, t] = pe(bi);
|
|
434
435
|
return { pageLockMeta: e, setPageLockMeta: t };
|
|
435
|
-
},
|
|
436
|
+
}, Gi = () => {
|
|
436
437
|
const e = Ct(), { pageToUser: t } = Ms();
|
|
437
438
|
return q(() => t[e], [t, e]);
|
|
438
439
|
}, Mn = () => {
|
|
@@ -443,13 +444,13 @@ const Ms = () => {
|
|
|
443
444
|
e || t(te.EDITING);
|
|
444
445
|
}, 500), () => clearTimeout(dn);
|
|
445
446
|
}, [e, t]), n;
|
|
446
|
-
},
|
|
447
|
+
}, Oi = () => {
|
|
447
448
|
const e = Ct(), t = rn(), n = Mn(), { setPageToUser: s } = Ms(), { setPageStatus: r, pageStatus: a } = ye(), i = be(e);
|
|
448
449
|
return i.current = e, z(
|
|
449
450
|
(o) => {
|
|
450
451
|
const l = o || n;
|
|
451
452
|
if (!l) return [];
|
|
452
|
-
const f = l == null ? void 0 : l.presenceState(), d =
|
|
453
|
+
const f = l == null ? void 0 : l.presenceState(), d = Ni(f);
|
|
453
454
|
s(d);
|
|
454
455
|
const u = d[i.current];
|
|
455
456
|
if (!u)
|
|
@@ -464,8 +465,8 @@ const Ms = () => {
|
|
|
464
465
|
},
|
|
465
466
|
[n, s, r, t, a]
|
|
466
467
|
);
|
|
467
|
-
},
|
|
468
|
-
const e = rn(), t = Ct(), n = Mn(), s =
|
|
468
|
+
}, xi = () => {
|
|
469
|
+
const e = rn(), t = Ct(), n = Mn(), s = Gi(), { setPageLockMeta: r } = Bs(), a = be(t);
|
|
469
470
|
return a.current = t, z(
|
|
470
471
|
async (i, o) => {
|
|
471
472
|
if (!n) return;
|
|
@@ -474,8 +475,8 @@ const Ms = () => {
|
|
|
474
475
|
},
|
|
475
476
|
[n, e, s, r]
|
|
476
477
|
);
|
|
477
|
-
},
|
|
478
|
-
const e = rn(), t = Ct(), n = Mn(), { setPageStatus: s } = ye(), { setPageLockMeta: r } = Bs(), a =
|
|
478
|
+
}, Di = () => {
|
|
479
|
+
const e = rn(), t = Ct(), n = Mn(), { setPageStatus: s } = ye(), { setPageLockMeta: r } = Bs(), a = xi(), i = be(t), { savePageAsync: o } = Re();
|
|
479
480
|
return i.current = t, z(
|
|
480
481
|
(l) => async ({ payload: f }) => {
|
|
481
482
|
const d = f || {};
|
|
@@ -496,7 +497,7 @@ const Ms = () => {
|
|
|
496
497
|
break;
|
|
497
498
|
}
|
|
498
499
|
case se.CONTINUE_EDITING_IN_THIS_CLIENT: {
|
|
499
|
-
const u =
|
|
500
|
+
const u = Li(n == null ? void 0 : n.presenceState());
|
|
500
501
|
s(te.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: u, pageId: i.current, userId: e, clientId: Ue }));
|
|
501
502
|
break;
|
|
502
503
|
}
|
|
@@ -508,8 +509,8 @@ const Ms = () => {
|
|
|
508
509
|
},
|
|
509
510
|
[a, r, s, n, e, o]
|
|
510
511
|
);
|
|
511
|
-
},
|
|
512
|
-
const e = Ds(), t = rn(), n = Ct(), s =
|
|
512
|
+
}, Xc = () => {
|
|
513
|
+
const e = Ds(), t = rn(), n = Ct(), s = Ci(), [r, a] = pe(Us), i = Di(), o = Oi(), l = be(i), f = be(o);
|
|
513
514
|
ne(() => {
|
|
514
515
|
l.current = i, f.current = o;
|
|
515
516
|
}, [i, o]), ne(() => {
|
|
@@ -517,11 +518,11 @@ const Ms = () => {
|
|
|
517
518
|
const d = e.channel(s, {
|
|
518
519
|
config: { presence: { key: Ue } }
|
|
519
520
|
});
|
|
520
|
-
return
|
|
521
|
+
return wi.forEach((u) => {
|
|
521
522
|
d.on("broadcast", { event: u }, (g) => {
|
|
522
523
|
l.current(u)(g);
|
|
523
524
|
});
|
|
524
|
-
}),
|
|
525
|
+
}), Pi.forEach((u) => {
|
|
525
526
|
d.on("presence", { event: u }, () => {
|
|
526
527
|
f.current(d);
|
|
527
528
|
});
|
|
@@ -540,10 +541,7 @@ const Ms = () => {
|
|
|
540
541
|
}), [r, n, t]);
|
|
541
542
|
}, Bn = () => {
|
|
542
543
|
const { data: e } = Be();
|
|
543
|
-
return q(
|
|
544
|
-
() => (e == null ? void 0 : e.fallbackLang) || "en",
|
|
545
|
-
[e]
|
|
546
|
-
);
|
|
544
|
+
return q(() => (e == null ? void 0 : e.fallbackLang) || "en", [e]);
|
|
547
545
|
}, Fs = () => {
|
|
548
546
|
const e = b(), t = I();
|
|
549
547
|
return re({
|
|
@@ -552,7 +550,7 @@ const Ms = () => {
|
|
|
552
550
|
queryFn: async () => e(t, { action: E.GET_WEBSITE_PAGES }) || [],
|
|
553
551
|
placeholderData: (n) => n || []
|
|
554
552
|
});
|
|
555
|
-
},
|
|
553
|
+
}, eu = (e) => {
|
|
556
554
|
const t = b(), n = I(), s = Bn();
|
|
557
555
|
return re({
|
|
558
556
|
queryKey: [E.GET_WEBSITE_PAGES, e, s],
|
|
@@ -573,7 +571,7 @@ function Ks(e, t, n = !1) {
|
|
|
573
571
|
const s = e.toString() ? `?${e.toString()}` : "/";
|
|
574
572
|
n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
575
573
|
}
|
|
576
|
-
const
|
|
574
|
+
const ki = V(() => import("./page-manager-new-Cifc526h.js")), Vs = ({ children: e }) => {
|
|
577
575
|
const { t } = we(), [n, s] = ve(), r = n.get("page"), { data: a, isFetching: i } = oe(), { data: o, isFetching: l } = Fs(), [f, d] = K(!1), [u, g] = K(!0), { savePage: h } = Re(), p = !!r && !fe(a), { isLocked: T } = ye(), S = q(() => {
|
|
578
576
|
if (!o || l) return !1;
|
|
579
577
|
const v = o.find((U) => U.slug === "/");
|
|
@@ -616,12 +614,12 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
616
614
|
] }),
|
|
617
615
|
/* @__PURE__ */ c(Fr, { className: "sr-only", children: t("Manage your site structure") })
|
|
618
616
|
] }),
|
|
619
|
-
/* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: w && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
617
|
+
/* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: w && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(ki, { close: () => d(!1) }) }) })
|
|
620
618
|
]
|
|
621
619
|
}
|
|
622
620
|
) })
|
|
623
621
|
] });
|
|
624
|
-
},
|
|
622
|
+
}, Ri = V(() => import("./add-new-page-QVlyJhn9.js")), Ui = V(() => import("./delete-page-xHdZT-7c.js")), Mi = V(() => import("./duplicate-page-5uIno9Yh.js")), Bi = V(() => import("./mark-as-template-hv3WD852.js")), Fi = V(() => import("./unmark-as-template-CbgifSbI.js")), Ki = V(() => import("./unpublish-page-DXQpAkvc.js")), Vi = () => {
|
|
625
623
|
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, f] = K(null), [d, u] = K(null), { data: g, isFetching: h } = Le(), { selectedLang: p, fallbackLang: T } = Pe(), { data: S } = Me(), x = S == null ? void 0 : S.find((N) => N.lang === p), { isLocked: y } = ye(), w = !(g != null && g.slug), v = On(zt);
|
|
626
624
|
if (!g) return null;
|
|
627
625
|
const U = (N) => {
|
|
@@ -653,7 +651,7 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
653
651
|
children: /* @__PURE__ */ c(ts, { className: "h-4 w-4" })
|
|
654
652
|
}
|
|
655
653
|
) : /* @__PURE__ */ c(
|
|
656
|
-
|
|
654
|
+
_i,
|
|
657
655
|
{
|
|
658
656
|
page: g,
|
|
659
657
|
setDuplicatePage: (N) => f(N),
|
|
@@ -668,7 +666,7 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
668
666
|
)
|
|
669
667
|
] }),
|
|
670
668
|
d && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
671
|
-
|
|
669
|
+
Ri,
|
|
672
670
|
{
|
|
673
671
|
closePanel: () => u(null),
|
|
674
672
|
editPage: () => {
|
|
@@ -677,12 +675,12 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
677
675
|
setAddEditPage: u
|
|
678
676
|
}
|
|
679
677
|
) }),
|
|
680
|
-
e && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
681
|
-
n && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
682
|
-
r && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
683
|
-
i && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
678
|
+
e && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Ui, { page: e, onClose: () => t(null) }) }),
|
|
679
|
+
n && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Ki, { page: n, onClose: () => s(null) }) }),
|
|
680
|
+
r && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Bi, { page: r, onClose: () => a(null) }) }),
|
|
681
|
+
i && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Fi, { page: i, onClose: () => o(null) }) }),
|
|
684
682
|
l && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
685
|
-
|
|
683
|
+
Mi,
|
|
686
684
|
{
|
|
687
685
|
page: l,
|
|
688
686
|
onClose: () => f(null),
|
|
@@ -699,7 +697,7 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
699
697
|
),
|
|
700
698
|
children: e
|
|
701
699
|
}
|
|
702
|
-
),
|
|
700
|
+
), Hi = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Hs, { children: /* @__PURE__ */ m("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
|
|
703
701
|
/* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
704
702
|
/* @__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" })
|
|
705
703
|
] }) }), Rt = {
|
|
@@ -890,10 +888,10 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
890
888
|
yo: "Yoruba",
|
|
891
889
|
za: "Zhuang, Chuang",
|
|
892
890
|
zu: "Zulu"
|
|
893
|
-
},
|
|
891
|
+
}, qi = V(() => import("./add-new-language-page-BL2F_Cu7.js")), $i = () => {
|
|
894
892
|
const e = ge("topLeftCorner", null);
|
|
895
893
|
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Oa.createElement(e, {}) }) : null;
|
|
896
|
-
},
|
|
894
|
+
}, Qi = ({
|
|
897
895
|
showAdd: e = !0,
|
|
898
896
|
variant: t = "ghost",
|
|
899
897
|
goToDefaultLang: n = !1
|
|
@@ -1005,13 +1003,13 @@ const Di = V(() => import("./page-manager-new-DItY2hjd.js")), Vs = ({ children:
|
|
|
1005
1003
|
] })
|
|
1006
1004
|
] }) });
|
|
1007
1005
|
};
|
|
1008
|
-
function
|
|
1006
|
+
function zi() {
|
|
1009
1007
|
const e = ya(zt), t = On(zt);
|
|
1010
1008
|
return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
|
|
1011
|
-
/* @__PURE__ */ c(
|
|
1009
|
+
/* @__PURE__ */ c($i, {}),
|
|
1012
1010
|
/* @__PURE__ */ c(Vs, {}),
|
|
1013
1011
|
e && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1014
|
-
|
|
1012
|
+
qi,
|
|
1015
1013
|
{
|
|
1016
1014
|
isOpen: !0,
|
|
1017
1015
|
id: e == null ? void 0 : e.id,
|
|
@@ -1023,7 +1021,7 @@ function Qi() {
|
|
|
1023
1021
|
) })
|
|
1024
1022
|
] });
|
|
1025
1023
|
}
|
|
1026
|
-
function
|
|
1024
|
+
function Wi() {
|
|
1027
1025
|
return /* @__PURE__ */ c("div", { className: "mt-2 space-y-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3 rounded-md border p-2", children: [
|
|
1028
1026
|
/* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
|
|
1029
1027
|
/* @__PURE__ */ c(Dt, { className: "h-4 w-3/4" }),
|
|
@@ -1033,8 +1031,8 @@ function zi() {
|
|
|
1033
1031
|
/* @__PURE__ */ c(Dt, { className: "h-8 w-8 rounded-full" })
|
|
1034
1032
|
] }, t)) });
|
|
1035
1033
|
}
|
|
1036
|
-
const
|
|
1037
|
-
function
|
|
1034
|
+
const ji = $.lazy(() => import("./page-revisions-content-DvL4ya9g.js"));
|
|
1035
|
+
function Yi() {
|
|
1038
1036
|
const [e, t] = $.useState(!1);
|
|
1039
1037
|
return /* @__PURE__ */ c(vs, { children: /* @__PURE__ */ m(en, { delayDuration: 0, children: [
|
|
1040
1038
|
/* @__PURE__ */ m(Ps, { open: e, onOpenChange: t, children: [
|
|
@@ -1045,7 +1043,7 @@ function ji() {
|
|
|
1045
1043
|
] }),
|
|
1046
1044
|
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1047
1045
|
] }) }) }),
|
|
1048
|
-
/* @__PURE__ */ c(ws, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c(
|
|
1046
|
+
/* @__PURE__ */ c(ws, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c(Wi, {}), children: /* @__PURE__ */ c(ji, { isOpen: e }) }) })
|
|
1049
1047
|
] }),
|
|
1050
1048
|
/* @__PURE__ */ c(nn, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
|
|
1051
1049
|
] }) });
|
|
@@ -1058,9 +1056,9 @@ const fn = ({
|
|
|
1058
1056
|
}) => {
|
|
1059
1057
|
const { hasPermission: r } = _s();
|
|
1060
1058
|
return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
|
|
1061
|
-
},
|
|
1059
|
+
}, Ji = {
|
|
1062
1060
|
SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
|
|
1063
|
-
},
|
|
1061
|
+
}, tu = () => {
|
|
1064
1062
|
const e = I(), t = J(), n = b(), { data: s } = Ce();
|
|
1065
1063
|
return Y({
|
|
1066
1064
|
mutationFn: async (r) => await n(e, {
|
|
@@ -1082,11 +1080,11 @@ const fn = ({
|
|
|
1082
1080
|
onError: (r, a) => {
|
|
1083
1081
|
const i = ie(s, { key: a.pageType });
|
|
1084
1082
|
R.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
1085
|
-
description: H(
|
|
1083
|
+
description: H(Ji, r.message, r.message)
|
|
1086
1084
|
});
|
|
1087
1085
|
}
|
|
1088
1086
|
});
|
|
1089
|
-
},
|
|
1087
|
+
}, nu = () => {
|
|
1090
1088
|
const e = I(), t = J(), n = b(), { data: s } = Le(), { data: r } = Ce();
|
|
1091
1089
|
return Y({
|
|
1092
1090
|
mutationFn: async (a) => await n(e, {
|
|
@@ -1111,7 +1109,7 @@ const fn = ({
|
|
|
1111
1109
|
});
|
|
1112
1110
|
}
|
|
1113
1111
|
});
|
|
1114
|
-
},
|
|
1112
|
+
}, su = () => {
|
|
1115
1113
|
const e = I(), t = J(), n = b(), { data: s } = Ce();
|
|
1116
1114
|
return Y({
|
|
1117
1115
|
mutationFn: async (r) => n(e, {
|
|
@@ -1140,7 +1138,7 @@ const fn = ({
|
|
|
1140
1138
|
});
|
|
1141
1139
|
}
|
|
1142
1140
|
});
|
|
1143
|
-
},
|
|
1141
|
+
}, ru = () => {
|
|
1144
1142
|
const e = I(), t = J(), n = b(), { data: s } = Ce();
|
|
1145
1143
|
return Y({
|
|
1146
1144
|
mutationFn: async (r) => n(e, {
|
|
@@ -1185,7 +1183,7 @@ const fn = ({
|
|
|
1185
1183
|
console.log("##", a), R.error("Failed to publish pages.");
|
|
1186
1184
|
}
|
|
1187
1185
|
});
|
|
1188
|
-
},
|
|
1186
|
+
}, au = () => {
|
|
1189
1187
|
const e = I(), t = b(), n = J();
|
|
1190
1188
|
return Y({
|
|
1191
1189
|
mutationFn: async (s) => {
|
|
@@ -1210,7 +1208,7 @@ const fn = ({
|
|
|
1210
1208
|
R.error("Failed to mark page as template.");
|
|
1211
1209
|
}
|
|
1212
1210
|
});
|
|
1213
|
-
},
|
|
1211
|
+
}, iu = () => {
|
|
1214
1212
|
const e = I(), t = b(), n = J();
|
|
1215
1213
|
return Y({
|
|
1216
1214
|
mutationFn: async (s) => t(e, {
|
|
@@ -1226,7 +1224,7 @@ const fn = ({
|
|
|
1226
1224
|
R.error("Failed to unmark page as template.");
|
|
1227
1225
|
}
|
|
1228
1226
|
});
|
|
1229
|
-
},
|
|
1227
|
+
}, ou = () => {
|
|
1230
1228
|
const e = I(), t = b(), n = J();
|
|
1231
1229
|
return Y({
|
|
1232
1230
|
mutationFn: async ({ id: s, slug: r }) => t(e, {
|
|
@@ -1244,16 +1242,16 @@ const fn = ({
|
|
|
1244
1242
|
R.error("Failed to change slug");
|
|
1245
1243
|
}
|
|
1246
1244
|
});
|
|
1247
|
-
},
|
|
1248
|
-
function
|
|
1245
|
+
}, Zi = V(() => import("./publish-pages-content-B8-IZW_U.js"));
|
|
1246
|
+
function Xi({
|
|
1249
1247
|
showModal: e = !1,
|
|
1250
1248
|
onClose: t = () => console.log("Cancelled")
|
|
1251
1249
|
}) {
|
|
1252
1250
|
const { mutate: n, isPending: s } = qs();
|
|
1253
1251
|
return /* @__PURE__ */ c(Is, { open: e, onOpenChange: s ? () => {
|
|
1254
|
-
} : t, children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(
|
|
1252
|
+
} : t, children: e && /* @__PURE__ */ c(X, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(Zi, { onClose: t, isPending: s, publishPage: n }) }) });
|
|
1255
1253
|
}
|
|
1256
|
-
const
|
|
1254
|
+
const eo = (e) => {
|
|
1257
1255
|
const { fallbackLang: t } = Pe(), { data: n } = Be(), { data: s, isFetching: r } = Me(), a = q(() => {
|
|
1258
1256
|
const i = { [t]: !0 };
|
|
1259
1257
|
return Pa(H(n, "languages"), (o) => {
|
|
@@ -1262,12 +1260,12 @@ const Xi = (e) => {
|
|
|
1262
1260
|
}), i;
|
|
1263
1261
|
}, [t, s, n]);
|
|
1264
1262
|
return r || fe(e) || e && a[e];
|
|
1265
|
-
},
|
|
1263
|
+
}, to = {
|
|
1266
1264
|
particleCount: 350,
|
|
1267
1265
|
spread: 120,
|
|
1268
1266
|
origin: { y: 0.6 },
|
|
1269
1267
|
angle: 90
|
|
1270
|
-
},
|
|
1268
|
+
}, no = {
|
|
1271
1269
|
TOP_RIGHT: {
|
|
1272
1270
|
angle: 225,
|
|
1273
1271
|
origin: { x: 0.9, y: 0 }
|
|
@@ -1276,14 +1274,14 @@ const Xi = (e) => {
|
|
|
1276
1274
|
angle: 100,
|
|
1277
1275
|
origin: { x: 0.9, y: 0.9 }
|
|
1278
1276
|
}
|
|
1279
|
-
},
|
|
1277
|
+
}, so = async () => {
|
|
1280
1278
|
const { default: e } = await import("canvas-confetti");
|
|
1281
1279
|
return e;
|
|
1282
1280
|
}, hn = (e) => {
|
|
1283
|
-
let t =
|
|
1281
|
+
let t = no[e];
|
|
1284
1282
|
t || (t = {});
|
|
1285
|
-
const n = { ...
|
|
1286
|
-
|
|
1283
|
+
const n = { ...to, ...t };
|
|
1284
|
+
so().then((s) => s(n));
|
|
1287
1285
|
};
|
|
1288
1286
|
function Fn({
|
|
1289
1287
|
children: e,
|
|
@@ -1297,9 +1295,9 @@ function Fn({
|
|
|
1297
1295
|
/* @__PURE__ */ c(nn, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
|
|
1298
1296
|
] }) }) : e;
|
|
1299
1297
|
}
|
|
1300
|
-
const
|
|
1301
|
-
() => import("./translation-warning-modal-
|
|
1302
|
-
),
|
|
1298
|
+
const ro = V(() => import("./unpublish-page-DXQpAkvc.js")), ao = V(
|
|
1299
|
+
() => import("./translation-warning-modal-BHwLZZOw.js")
|
|
1300
|
+
), io = () => {
|
|
1303
1301
|
const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Pe(), s = ge("getPreviewUrl", async (g) => g), [r, a] = K(""), { data: i } = oe(), { data: o } = Me(), { data: l } = Ce(), f = q(
|
|
1304
1302
|
() => {
|
|
1305
1303
|
var g;
|
|
@@ -1321,7 +1319,7 @@ const so = V(() => import("./unpublish-page-DqwBY2yI.js")), ro = V(
|
|
|
1321
1319
|
a("");
|
|
1322
1320
|
})();
|
|
1323
1321
|
}, [s, f, i == null ? void 0 : i.pageType, d, i == null ? void 0 : i.id, u]), /* @__PURE__ */ c(he, { children: /* @__PURE__ */ c(Fn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(M, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(Qa, { className: "h-4 w-4" }) }) }) }) });
|
|
1324
|
-
},
|
|
1322
|
+
}, oo = () => {
|
|
1325
1323
|
const { t: e } = we(), [t, n] = Hr();
|
|
1326
1324
|
return /* @__PURE__ */ m(he, { children: [
|
|
1327
1325
|
/* @__PURE__ */ c(Fn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
|
|
@@ -1336,7 +1334,7 @@ const so = V(() => import("./unpublish-page-DqwBY2yI.js")), ro = V(
|
|
|
1336
1334
|
) }),
|
|
1337
1335
|
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1338
1336
|
] });
|
|
1339
|
-
},
|
|
1337
|
+
}, lo = () => {
|
|
1340
1338
|
const { t: e } = we(), [t, n] = K(!1), { isLocked: s } = ye(), { savePageAsync: r, saveState: a } = Re();
|
|
1341
1339
|
ne(() => {
|
|
1342
1340
|
const d = (u) => {
|
|
@@ -1375,7 +1373,7 @@ const so = V(() => import("./unpublish-page-DqwBY2yI.js")), ro = V(
|
|
|
1375
1373
|
" ",
|
|
1376
1374
|
f
|
|
1377
1375
|
] });
|
|
1378
|
-
},
|
|
1376
|
+
}, co = () => {
|
|
1379
1377
|
const { t: e } = we(), { selectedLang: t } = Pe(), { data: n } = Le(), { data: s } = Me(), [r, a] = K(!1), [i, o] = K(!1), [l, f] = K(null), { savePageAsync: d } = Re(), [u, g] = K(!1), { data: h } = oe(), { mutate: p, isPending: T } = qs(), { needTranslations: S } = Re(), x = S(), { buttonText: y, buttonClassName: w, isPublished: v } = q(() => {
|
|
1380
1378
|
const P = h && (h == null ? void 0 : h.online);
|
|
1381
1379
|
return {
|
|
@@ -1475,10 +1473,10 @@ const so = V(() => import("./unpublish-page-DqwBY2yI.js")), ro = V(
|
|
|
1475
1473
|
] })
|
|
1476
1474
|
] })
|
|
1477
1475
|
] }),
|
|
1478
|
-
/* @__PURE__ */ c(
|
|
1479
|
-
l && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1476
|
+
/* @__PURE__ */ c(Xi, { showModal: r, onClose: () => a(!1) }),
|
|
1477
|
+
l && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(ro, { page: l, onClose: () => f(null) }) }),
|
|
1480
1478
|
u && /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1481
|
-
|
|
1479
|
+
ao,
|
|
1482
1480
|
{
|
|
1483
1481
|
isOpen: u,
|
|
1484
1482
|
onClose: Te,
|
|
@@ -1488,24 +1486,24 @@ const so = V(() => import("./unpublish-page-DqwBY2yI.js")), ro = V(
|
|
|
1488
1486
|
) })
|
|
1489
1487
|
] });
|
|
1490
1488
|
};
|
|
1491
|
-
function
|
|
1492
|
-
const { isLocked: e } = ye(), [t] = ve(), n = t.get("lang"), s =
|
|
1489
|
+
function uo() {
|
|
1490
|
+
const { isLocked: e } = ye(), [t] = ve(), n = t.get("lang"), s = eo(n);
|
|
1493
1491
|
return e || !s ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
|
|
1494
|
-
/* @__PURE__ */ c(
|
|
1495
|
-
/* @__PURE__ */ c(fn, { permission: le.EDIT_THEME, children: /* @__PURE__ */ c(
|
|
1496
|
-
/* @__PURE__ */ c(
|
|
1497
|
-
/* @__PURE__ */ c(fn, { permission: le.SAVE_PAGE, children: /* @__PURE__ */ c(
|
|
1498
|
-
/* @__PURE__ */ c(fn, { permission: le.PUBLISH_PAGE, children: /* @__PURE__ */ c(
|
|
1492
|
+
/* @__PURE__ */ c(Yi, {}),
|
|
1493
|
+
/* @__PURE__ */ c(fn, { permission: le.EDIT_THEME, children: /* @__PURE__ */ c(oo, {}) }),
|
|
1494
|
+
/* @__PURE__ */ c(io, {}),
|
|
1495
|
+
/* @__PURE__ */ c(fn, { permission: le.SAVE_PAGE, children: /* @__PURE__ */ c(lo, {}) }),
|
|
1496
|
+
/* @__PURE__ */ c(fn, { permission: le.PUBLISH_PAGE, children: /* @__PURE__ */ c(co, {}) })
|
|
1499
1497
|
] });
|
|
1500
1498
|
}
|
|
1501
|
-
const
|
|
1502
|
-
const { dynamicPage: e, allLangPages: t, isFetching: n } =
|
|
1499
|
+
const fo = V(() => import("./dynamic-page-selector-rhvhg7ol.js")), ho = () => {
|
|
1500
|
+
const { dynamicPage: e, allLangPages: t, isFetching: n } = mi(), s = t.length > 0;
|
|
1503
1501
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1504
|
-
!e && /* @__PURE__ */ c(
|
|
1505
|
-
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
1502
|
+
!e && /* @__PURE__ */ c(Hi, { hasDynamicPage: s }),
|
|
1503
|
+
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(fo, {}) })
|
|
1506
1504
|
] });
|
|
1507
|
-
},
|
|
1508
|
-
const { data: e, isFetching: t } = Le(), { data: n, isFetching: s } = oe(), r = H(n, "dynamic", !1), a = Rn(), i = da("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, f =
|
|
1505
|
+
}, go = () => {
|
|
1506
|
+
const { data: e, isFetching: t } = Le(), { data: n, isFetching: s } = oe(), r = H(n, "dynamic", !1), a = Rn(), i = da("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, f = Ai(), d = t || s, g = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
|
|
1509
1507
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center gap-x-1", children: [
|
|
1510
1508
|
/* @__PURE__ */ c(
|
|
1511
1509
|
"div",
|
|
@@ -1514,7 +1512,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1514
1512
|
"flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
|
|
1515
1513
|
d && "max-w-0 overflow-hidden opacity-0"
|
|
1516
1514
|
),
|
|
1517
|
-
children: /* @__PURE__ */ c(
|
|
1515
|
+
children: /* @__PURE__ */ c(Vi, {})
|
|
1518
1516
|
}
|
|
1519
1517
|
),
|
|
1520
1518
|
/* @__PURE__ */ m(
|
|
@@ -1525,7 +1523,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1525
1523
|
d && "max-w-0 overflow-hidden opacity-0"
|
|
1526
1524
|
),
|
|
1527
1525
|
children: [
|
|
1528
|
-
/* @__PURE__ */ c(
|
|
1526
|
+
/* @__PURE__ */ c(Qi, {}),
|
|
1529
1527
|
/* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
|
|
1530
1528
|
/* @__PURE__ */ c(
|
|
1531
1529
|
"div",
|
|
@@ -1542,12 +1540,12 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1542
1540
|
]
|
|
1543
1541
|
}
|
|
1544
1542
|
),
|
|
1545
|
-
r && i && /* @__PURE__ */ c(
|
|
1543
|
+
r && i && /* @__PURE__ */ c(ho, {})
|
|
1546
1544
|
] });
|
|
1547
|
-
},
|
|
1548
|
-
/* @__PURE__ */ c(
|
|
1549
|
-
/* @__PURE__ */ c(
|
|
1550
|
-
/* @__PURE__ */ c(
|
|
1545
|
+
}, mo = () => /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-between px-2", children: [
|
|
1546
|
+
/* @__PURE__ */ c(zi, {}),
|
|
1547
|
+
/* @__PURE__ */ c(go, {}),
|
|
1548
|
+
/* @__PURE__ */ c(uo, {})
|
|
1551
1549
|
] }), $s = () => {
|
|
1552
1550
|
const e = J(), { data: t } = re({
|
|
1553
1551
|
queryKey: [E.AI_CONTEXT],
|
|
@@ -1561,7 +1559,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1561
1559
|
},
|
|
1562
1560
|
[e]
|
|
1563
1561
|
), aiContext: t };
|
|
1564
|
-
},
|
|
1562
|
+
}, Eo = () => {
|
|
1565
1563
|
const e = I(), { aiContext: t } = $s(), n = b();
|
|
1566
1564
|
return z(
|
|
1567
1565
|
async (s, r, a, i) => n(e, {
|
|
@@ -1570,9 +1568,9 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1570
1568
|
}),
|
|
1571
1569
|
[e, t, n]
|
|
1572
1570
|
);
|
|
1573
|
-
},
|
|
1571
|
+
}, po = (e, t) => t.map((n) => {
|
|
1574
1572
|
if (sn(e, n._type)) {
|
|
1575
|
-
const s =
|
|
1573
|
+
const s = ii(n._type);
|
|
1576
1574
|
return {
|
|
1577
1575
|
...s,
|
|
1578
1576
|
...Dn(n, [...ba(s), "_type", "_id", "_name", "_parent", "_bindings"]),
|
|
@@ -1581,15 +1579,15 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1581
1579
|
};
|
|
1582
1580
|
}
|
|
1583
1581
|
return n;
|
|
1584
|
-
}),
|
|
1585
|
-
const t =
|
|
1582
|
+
}), yo = (e) => {
|
|
1583
|
+
const t = ai();
|
|
1586
1584
|
return q(() => {
|
|
1587
1585
|
if (!e || fe(e)) return { blocks: [] };
|
|
1588
1586
|
const n = Gs(e, (s) => !wa(s == null ? void 0 : s._type, "@chai/"));
|
|
1589
|
-
return { blocks:
|
|
1587
|
+
return { blocks: po(t, n) };
|
|
1590
1588
|
}, [e, t]);
|
|
1591
|
-
},
|
|
1592
|
-
const [e] = ve(), t = e.get("page"), n = I(), { setAiContext: s } = $s(), [, r] = Rs(), [, a] =
|
|
1589
|
+
}, Ao = () => {
|
|
1590
|
+
const [e] = ve(), t = e.get("page"), n = I(), { setAiContext: s } = $s(), [, r] = Rs(), [, a] = yi(), [, i] = qr(), o = b();
|
|
1593
1591
|
return re({
|
|
1594
1592
|
queryKey: [E.GET_DRAFT_PAGE, t],
|
|
1595
1593
|
staleTime: 1 / 0,
|
|
@@ -1604,7 +1602,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1604
1602
|
},
|
|
1605
1603
|
enabled: !!t
|
|
1606
1604
|
});
|
|
1607
|
-
},
|
|
1605
|
+
}, To = () => {
|
|
1608
1606
|
const { data: e } = oe(), { data: t } = Le(), n = I(), s = b(), r = Bn(), a = Rn();
|
|
1609
1607
|
return re({
|
|
1610
1608
|
queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
|
|
@@ -1634,7 +1632,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1634
1632
|
}),
|
|
1635
1633
|
enabled: !!(e != null && e.pageType) && !!t.id
|
|
1636
1634
|
});
|
|
1637
|
-
},
|
|
1635
|
+
}, So = () => {
|
|
1638
1636
|
const e = I(), t = J(), n = b();
|
|
1639
1637
|
return Y({
|
|
1640
1638
|
mutationFn: async (s) => n(e, {
|
|
@@ -1653,7 +1651,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1653
1651
|
});
|
|
1654
1652
|
}
|
|
1655
1653
|
});
|
|
1656
|
-
},
|
|
1654
|
+
}, lu = () => {
|
|
1657
1655
|
const e = I(), t = J(), n = b(), { selectedLang: s } = Pe();
|
|
1658
1656
|
return Y({
|
|
1659
1657
|
mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
@@ -1668,7 +1666,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1668
1666
|
});
|
|
1669
1667
|
}
|
|
1670
1668
|
});
|
|
1671
|
-
},
|
|
1669
|
+
}, cu = () => {
|
|
1672
1670
|
const e = I(), t = J(), n = b(), { selectedLang: s } = Pe();
|
|
1673
1671
|
return Y({
|
|
1674
1672
|
mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
@@ -1683,7 +1681,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1683
1681
|
});
|
|
1684
1682
|
}
|
|
1685
1683
|
});
|
|
1686
|
-
},
|
|
1684
|
+
}, uu = () => {
|
|
1687
1685
|
const e = I(), t = J(), n = b();
|
|
1688
1686
|
return Y({
|
|
1689
1687
|
mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
|
|
@@ -1698,7 +1696,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1698
1696
|
});
|
|
1699
1697
|
}
|
|
1700
1698
|
});
|
|
1701
|
-
},
|
|
1699
|
+
}, du = () => {
|
|
1702
1700
|
const e = I(), t = b();
|
|
1703
1701
|
return Y({
|
|
1704
1702
|
mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
@@ -1708,7 +1706,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1708
1706
|
});
|
|
1709
1707
|
}
|
|
1710
1708
|
});
|
|
1711
|
-
},
|
|
1709
|
+
}, fu = () => {
|
|
1712
1710
|
const e = I(), t = b();
|
|
1713
1711
|
return Y({
|
|
1714
1712
|
mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
@@ -1721,7 +1719,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1721
1719
|
});
|
|
1722
1720
|
}
|
|
1723
1721
|
});
|
|
1724
|
-
},
|
|
1722
|
+
}, hu = () => {
|
|
1725
1723
|
const e = I(), t = b();
|
|
1726
1724
|
return Y({
|
|
1727
1725
|
mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
@@ -1740,7 +1738,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1740
1738
|
action: "GET_LIBRARY_ITEM",
|
|
1741
1739
|
data: { id: e.id }
|
|
1742
1740
|
}), r = H(s, "html", ""), a = H(s, "blocks", []);
|
|
1743
|
-
return Na(a) ? a :
|
|
1741
|
+
return Na(a) ? a : oi(r);
|
|
1744
1742
|
},
|
|
1745
1743
|
async getUILibraryBlocks(e, t, n) {
|
|
1746
1744
|
try {
|
|
@@ -1754,7 +1752,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1754
1752
|
return console.error(s), [];
|
|
1755
1753
|
}
|
|
1756
1754
|
}
|
|
1757
|
-
},
|
|
1755
|
+
}, _o = () => {
|
|
1758
1756
|
const e = I(), t = b();
|
|
1759
1757
|
return re({
|
|
1760
1758
|
queryKey: ["uiLibraries"],
|
|
@@ -1773,7 +1771,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1773
1771
|
}), s;
|
|
1774
1772
|
}
|
|
1775
1773
|
});
|
|
1776
|
-
},
|
|
1774
|
+
}, Po = (e = 300) => {
|
|
1777
1775
|
const t = I(), n = b();
|
|
1778
1776
|
ne(() => {
|
|
1779
1777
|
const s = async () => {
|
|
@@ -1783,7 +1781,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1783
1781
|
const r = setInterval(s, e * 1e3);
|
|
1784
1782
|
return () => clearInterval(r);
|
|
1785
1783
|
}, [n, e, t]);
|
|
1786
|
-
},
|
|
1784
|
+
}, wo = () => {
|
|
1787
1785
|
const e = I(), t = b(), { user: n } = Un(), s = n == null ? void 0 : n.id;
|
|
1788
1786
|
return re({
|
|
1789
1787
|
queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
|
|
@@ -1794,7 +1792,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1794
1792
|
enabled: !!s,
|
|
1795
1793
|
staleTime: 1 / 0
|
|
1796
1794
|
});
|
|
1797
|
-
},
|
|
1795
|
+
}, vo = () => {
|
|
1798
1796
|
const e = I(), t = b(), [, n] = Rs();
|
|
1799
1797
|
return { onSave: async ({
|
|
1800
1798
|
page: r,
|
|
@@ -1814,7 +1812,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1814
1812
|
return console.error(o), new Error("Failed to save blocks");
|
|
1815
1813
|
}
|
|
1816
1814
|
} };
|
|
1817
|
-
},
|
|
1815
|
+
}, Io = () => {
|
|
1818
1816
|
const { data: e } = Fs(), t = I(), n = b();
|
|
1819
1817
|
return {
|
|
1820
1818
|
getPartialBlocks: z(async () => {
|
|
@@ -1843,7 +1841,7 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1843
1841
|
[n, t]
|
|
1844
1842
|
)
|
|
1845
1843
|
};
|
|
1846
|
-
},
|
|
1844
|
+
}, bo = V(() => import("./ai-panel-content-CCOluPtK.js")), Qs = "chai-chat-panel", No = ({ 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: [
|
|
1847
1845
|
/* @__PURE__ */ c("title", { children: "ai" }),
|
|
1848
1846
|
/* @__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(
|
|
1849
1847
|
"path",
|
|
@@ -1852,25 +1850,25 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1852
1850
|
id: "Combined-Shape"
|
|
1853
1851
|
}
|
|
1854
1852
|
) }) })
|
|
1855
|
-
] }),
|
|
1853
|
+
] }), Lo = ({ isActive: e, show: t }) => /* @__PURE__ */ c(M, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(No, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }), Co = {
|
|
1856
1854
|
id: Qs,
|
|
1857
1855
|
label: "AI Assistant",
|
|
1858
|
-
button:
|
|
1859
|
-
panel:
|
|
1856
|
+
button: Lo,
|
|
1857
|
+
panel: bo,
|
|
1860
1858
|
position: "top"
|
|
1861
|
-
},
|
|
1859
|
+
}, Go = V(() => import("./lang-panel-BTWk23Mw.js")), Oo = ({ isActive: e, show: t }) => {
|
|
1862
1860
|
const { data: n } = Be();
|
|
1863
1861
|
return !sn(n, "languages") || !H(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Ya, { className: "h-4 w-4" }) });
|
|
1864
|
-
}, zs = "lang",
|
|
1862
|
+
}, zs = "lang", xo = {
|
|
1865
1863
|
id: zs,
|
|
1866
1864
|
label: "Languages",
|
|
1867
1865
|
position: "top",
|
|
1868
|
-
panel:
|
|
1869
|
-
button:
|
|
1866
|
+
panel: Go,
|
|
1867
|
+
button: Oo,
|
|
1870
1868
|
view: "modal",
|
|
1871
1869
|
width: 400
|
|
1872
|
-
},
|
|
1873
|
-
const { data: n } = oe(), s =
|
|
1870
|
+
}, Do = V(() => import("./seo-panel-D3EyOYij.js")), Ws = "seo", ko = ({ isActive: e, show: t }) => {
|
|
1871
|
+
const { data: n } = oe(), s = Ti(n == null ? void 0 : n.pageType);
|
|
1874
1872
|
return !sn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(M, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
1875
1873
|
"svg",
|
|
1876
1874
|
{
|
|
@@ -1889,15 +1887,15 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1889
1887
|
]
|
|
1890
1888
|
}
|
|
1891
1889
|
) });
|
|
1892
|
-
},
|
|
1890
|
+
}, Ro = {
|
|
1893
1891
|
id: Ws,
|
|
1894
1892
|
label: "SEO",
|
|
1895
|
-
panel:
|
|
1896
|
-
button:
|
|
1893
|
+
panel: Do,
|
|
1894
|
+
button: ko,
|
|
1897
1895
|
position: "top",
|
|
1898
1896
|
width: 600,
|
|
1899
1897
|
view: "modal"
|
|
1900
|
-
}, js = "user-info",
|
|
1898
|
+
}, js = "user-info", Uo = () => {
|
|
1901
1899
|
const { t: e } = we(), { user: t, logout: n } = Un(), s = ge("onLogout", xn);
|
|
1902
1900
|
return t ? /* @__PURE__ */ m($r, { children: [
|
|
1903
1901
|
/* @__PURE__ */ c(Qr, { asChild: !0, children: /* @__PURE__ */ c(M, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(Ja, { className: "h-4 w-4" }) }) }),
|
|
@@ -1927,13 +1925,13 @@ const uo = V(() => import("./dynamic-page-selector-sViJuQlU.js")), fo = () => {
|
|
|
1927
1925
|
] })
|
|
1928
1926
|
] })
|
|
1929
1927
|
] }) : null;
|
|
1930
|
-
},
|
|
1928
|
+
}, Mo = {
|
|
1931
1929
|
id: js,
|
|
1932
1930
|
label: "User Info",
|
|
1933
|
-
button:
|
|
1931
|
+
button: Uo,
|
|
1934
1932
|
position: "bottom"
|
|
1935
|
-
},
|
|
1936
|
-
kt(Ws,
|
|
1933
|
+
}, Bo = () => {
|
|
1934
|
+
kt(Ws, Ro), kt(zs, xo), kt(js, Mo), kt(Qs, Co);
|
|
1937
1935
|
};
|
|
1938
1936
|
var _ = {
|
|
1939
1937
|
context: void 0,
|
|
@@ -1954,14 +1952,14 @@ function ls(e) {
|
|
|
1954
1952
|
function ct(e) {
|
|
1955
1953
|
_.context = e;
|
|
1956
1954
|
}
|
|
1957
|
-
var Ys = !1,
|
|
1958
|
-
equals:
|
|
1955
|
+
var Ys = !1, Fo = (e, t) => e === t, Wt = Symbol("solid-proxy"), Js = typeof Proxy == "function", Zs = Symbol("solid-track"), jt = {
|
|
1956
|
+
equals: Fo
|
|
1959
1957
|
}, Xs = ir, Ie = 1, Yt = 2, er = {
|
|
1960
1958
|
owned: null,
|
|
1961
1959
|
cleanups: null,
|
|
1962
1960
|
context: null,
|
|
1963
1961
|
owner: null
|
|
1964
|
-
}, gn = {}, G = null, mn = null,
|
|
1962
|
+
}, gn = {}, G = null, mn = null, Ko = null, D = null, ee = null, _e = null, an = 0;
|
|
1965
1963
|
function De(e, t) {
|
|
1966
1964
|
const n = D, s = G, r = e.length === 0, a = t === void 0 ? s : t, i = r ? er : {
|
|
1967
1965
|
owned: null,
|
|
@@ -1986,7 +1984,7 @@ function F(e, t) {
|
|
|
1986
1984
|
}, s = (r) => (typeof r == "function" && (r = r(n.value)), ar(n, r));
|
|
1987
1985
|
return [rr.bind(n), s];
|
|
1988
1986
|
}
|
|
1989
|
-
function
|
|
1987
|
+
function Vo(e, t, n) {
|
|
1990
1988
|
const s = on(e, t, !0, Ie);
|
|
1991
1989
|
lt(s);
|
|
1992
1990
|
}
|
|
@@ -1995,7 +1993,7 @@ function ke(e, t, n) {
|
|
|
1995
1993
|
lt(s);
|
|
1996
1994
|
}
|
|
1997
1995
|
function tr(e, t, n) {
|
|
1998
|
-
Xs =
|
|
1996
|
+
Xs = Jo;
|
|
1999
1997
|
const s = on(e, t, !1, Ie);
|
|
2000
1998
|
(!n || !n.render) && (s.user = !0), _e ? _e.push(s) : lt(s);
|
|
2001
1999
|
}
|
|
@@ -2004,10 +2002,10 @@ function j(e, t, n) {
|
|
|
2004
2002
|
const s = on(e, t, !0, 0);
|
|
2005
2003
|
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, lt(s), rr.bind(s);
|
|
2006
2004
|
}
|
|
2007
|
-
function
|
|
2005
|
+
function Ho(e) {
|
|
2008
2006
|
return e && typeof e == "object" && "then" in e;
|
|
2009
2007
|
}
|
|
2010
|
-
function
|
|
2008
|
+
function qo(e, t, n) {
|
|
2011
2009
|
let s, r, a;
|
|
2012
2010
|
s = !0, r = e, a = {};
|
|
2013
2011
|
let i = null, o = gn, l = null, f = !1, d = "initialValue" in a, u = typeof s == "function" && j(s);
|
|
@@ -2028,7 +2026,7 @@ function Ho(e, t, n) {
|
|
|
2028
2026
|
}, !1);
|
|
2029
2027
|
}
|
|
2030
2028
|
function Ae() {
|
|
2031
|
-
const P =
|
|
2029
|
+
const P = Wo, L = h(), W = T();
|
|
2032
2030
|
if (W !== void 0 && !i) throw W;
|
|
2033
2031
|
return D && D.user, L;
|
|
2034
2032
|
}
|
|
@@ -2054,7 +2052,7 @@ function Ho(e, t, n) {
|
|
|
2054
2052
|
if (W !== void 0) {
|
|
2055
2053
|
U(i, void 0, Vt(W), L);
|
|
2056
2054
|
return;
|
|
2057
|
-
} else if (!
|
|
2055
|
+
} else if (!Ho(Q))
|
|
2058
2056
|
return U(i, Q, void 0, L), Q;
|
|
2059
2057
|
return i = Q, "v" in Q ? (Q.s === 1 ? U(i, Q.v, void 0, L) : U(i, void 0, Vt(Q.v), L), Q) : (f = !0, queueMicrotask(() => f = !1), me(() => {
|
|
2060
2058
|
v(d ? "refreshing" : "pending"), y();
|
|
@@ -2083,12 +2081,12 @@ function Ho(e, t, n) {
|
|
|
2083
2081
|
}
|
|
2084
2082
|
});
|
|
2085
2083
|
let B = G;
|
|
2086
|
-
return u ?
|
|
2084
|
+
return u ? Vo(() => (B = G, Te(!1))) : Te(!1), [Ae, {
|
|
2087
2085
|
refetch: (P) => nr(B, () => Te(P)),
|
|
2088
2086
|
mutate: p
|
|
2089
2087
|
}];
|
|
2090
2088
|
}
|
|
2091
|
-
function
|
|
2089
|
+
function gu(e) {
|
|
2092
2090
|
return me(e, !1);
|
|
2093
2091
|
}
|
|
2094
2092
|
function Z(e) {
|
|
@@ -2101,7 +2099,7 @@ function Z(e) {
|
|
|
2101
2099
|
D = t;
|
|
2102
2100
|
}
|
|
2103
2101
|
}
|
|
2104
|
-
function
|
|
2102
|
+
function mu(e, t, n) {
|
|
2105
2103
|
const s = Array.isArray(e);
|
|
2106
2104
|
let r, a = n && n.defer;
|
|
2107
2105
|
return (i) => {
|
|
@@ -2116,7 +2114,7 @@ function hu(e, t, n) {
|
|
|
2116
2114
|
return r = o, l;
|
|
2117
2115
|
};
|
|
2118
2116
|
}
|
|
2119
|
-
function
|
|
2117
|
+
function $o(e) {
|
|
2120
2118
|
tr(() => Z(e));
|
|
2121
2119
|
}
|
|
2122
2120
|
function ft(e) {
|
|
@@ -2136,7 +2134,7 @@ function nr(e, t) {
|
|
|
2136
2134
|
G = n, D = s;
|
|
2137
2135
|
}
|
|
2138
2136
|
}
|
|
2139
|
-
function
|
|
2137
|
+
function Qo(e) {
|
|
2140
2138
|
const t = D, n = G;
|
|
2141
2139
|
return Promise.resolve().then(() => {
|
|
2142
2140
|
D = t, G = n;
|
|
@@ -2144,19 +2142,19 @@ function $o(e) {
|
|
|
2144
2142
|
return me(e, !1), D = G = null, s ? s.done : void 0;
|
|
2145
2143
|
});
|
|
2146
2144
|
}
|
|
2147
|
-
var [
|
|
2148
|
-
function
|
|
2149
|
-
return [
|
|
2145
|
+
var [zo, Eu] = /* @__PURE__ */ F(!1);
|
|
2146
|
+
function pu() {
|
|
2147
|
+
return [zo, Qo];
|
|
2150
2148
|
}
|
|
2151
|
-
function
|
|
2149
|
+
function yu(e, t) {
|
|
2152
2150
|
const n = Symbol("context");
|
|
2153
2151
|
return {
|
|
2154
2152
|
id: n,
|
|
2155
|
-
Provider:
|
|
2153
|
+
Provider: Zo(n),
|
|
2156
2154
|
defaultValue: e
|
|
2157
2155
|
};
|
|
2158
2156
|
}
|
|
2159
|
-
function
|
|
2157
|
+
function Au(e) {
|
|
2160
2158
|
let t;
|
|
2161
2159
|
return G && G.context && (t = G.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
2162
2160
|
}
|
|
@@ -2167,7 +2165,7 @@ function sr(e) {
|
|
|
2167
2165
|
return Array.isArray(s) ? s : s != null ? [s] : [];
|
|
2168
2166
|
}, n;
|
|
2169
2167
|
}
|
|
2170
|
-
var
|
|
2168
|
+
var Wo;
|
|
2171
2169
|
function rr() {
|
|
2172
2170
|
if (this.sources && this.state)
|
|
2173
2171
|
if (this.state === Ie) lt(this);
|
|
@@ -2196,9 +2194,9 @@ function lt(e) {
|
|
|
2196
2194
|
if (!e.fn) return;
|
|
2197
2195
|
ht(e);
|
|
2198
2196
|
const t = an;
|
|
2199
|
-
|
|
2197
|
+
jo(e, e.value, t);
|
|
2200
2198
|
}
|
|
2201
|
-
function
|
|
2199
|
+
function jo(e, t, n) {
|
|
2202
2200
|
let s;
|
|
2203
2201
|
const r = G, a = D;
|
|
2204
2202
|
D = G = e;
|
|
@@ -2248,12 +2246,12 @@ function me(e, t) {
|
|
|
2248
2246
|
t || (ee = []), _e ? n = !0 : _e = [], an++;
|
|
2249
2247
|
try {
|
|
2250
2248
|
const s = e();
|
|
2251
|
-
return
|
|
2249
|
+
return Yo(n), s;
|
|
2252
2250
|
} catch (s) {
|
|
2253
2251
|
n || (_e = null), ee = null, Kn(s);
|
|
2254
2252
|
}
|
|
2255
2253
|
}
|
|
2256
|
-
function
|
|
2254
|
+
function Yo(e) {
|
|
2257
2255
|
if (ee && (ir(ee), ee = null), e) return;
|
|
2258
2256
|
const t = _e;
|
|
2259
2257
|
_e = null, t.length && me(() => Xs(t), !1);
|
|
@@ -2261,7 +2259,7 @@ function jo(e) {
|
|
|
2261
2259
|
function ir(e) {
|
|
2262
2260
|
for (let t = 0; t < e.length; t++) Jt(e[t]);
|
|
2263
2261
|
}
|
|
2264
|
-
function
|
|
2262
|
+
function Jo(e) {
|
|
2265
2263
|
let t, n = 0;
|
|
2266
2264
|
for (t = 0; t < e.length; t++) {
|
|
2267
2265
|
const s = e[t];
|
|
@@ -2336,7 +2334,7 @@ function An(e) {
|
|
|
2336
2334
|
}
|
|
2337
2335
|
return e;
|
|
2338
2336
|
}
|
|
2339
|
-
function
|
|
2337
|
+
function Zo(e, t) {
|
|
2340
2338
|
return function(s) {
|
|
2341
2339
|
let r;
|
|
2342
2340
|
return ke(() => r = Z(() => (G.context = {
|
|
@@ -2349,7 +2347,7 @@ var Tn = Symbol("fallback");
|
|
|
2349
2347
|
function Xt(e) {
|
|
2350
2348
|
for (let t = 0; t < e.length; t++) e[t]();
|
|
2351
2349
|
}
|
|
2352
|
-
function
|
|
2350
|
+
function Xo(e, t, n = {}) {
|
|
2353
2351
|
let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
|
|
2354
2352
|
return ft(() => Xt(a)), () => {
|
|
2355
2353
|
let l = e() || [], f = l.length, d, u;
|
|
@@ -2384,7 +2382,7 @@ function Zo(e, t, n = {}) {
|
|
|
2384
2382
|
}
|
|
2385
2383
|
};
|
|
2386
2384
|
}
|
|
2387
|
-
function
|
|
2385
|
+
function el(e, t, n = {}) {
|
|
2388
2386
|
let s = [], r = [], a = [], i = [], o = 0, l;
|
|
2389
2387
|
return ft(() => Xt(a)), () => {
|
|
2390
2388
|
const f = e() || [], d = f.length;
|
|
@@ -2437,7 +2435,7 @@ var Sn = {
|
|
|
2437
2435
|
function En(e) {
|
|
2438
2436
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
2439
2437
|
}
|
|
2440
|
-
function
|
|
2438
|
+
function tl() {
|
|
2441
2439
|
for (let e = 0, t = this.length; e < t; ++e) {
|
|
2442
2440
|
const n = this[e]();
|
|
2443
2441
|
if (n !== void 0) return n;
|
|
@@ -2481,7 +2479,7 @@ function cr(...e) {
|
|
|
2481
2479
|
s[d] = u.get ? {
|
|
2482
2480
|
enumerable: !0,
|
|
2483
2481
|
configurable: !0,
|
|
2484
|
-
get:
|
|
2482
|
+
get: tl.bind(n[d] = [u.get.bind(o)])
|
|
2485
2483
|
} : u.value !== void 0 ? u : void 0;
|
|
2486
2484
|
else {
|
|
2487
2485
|
const g = n[d];
|
|
@@ -2496,7 +2494,7 @@ function cr(...e) {
|
|
|
2496
2494
|
}
|
|
2497
2495
|
return r;
|
|
2498
2496
|
}
|
|
2499
|
-
function
|
|
2497
|
+
function nl(e, ...t) {
|
|
2500
2498
|
if (Js && Wt in e) {
|
|
2501
2499
|
const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
|
|
2502
2500
|
get(o) {
|
|
@@ -2541,7 +2539,7 @@ function ur(e) {
|
|
|
2541
2539
|
!_.done && ct(a), _.count--, l(() => f.default), ct();
|
|
2542
2540
|
}), t = o;
|
|
2543
2541
|
} else if (!t) {
|
|
2544
|
-
const [o] =
|
|
2542
|
+
const [o] = qo(() => (n || (n = e())).then((l) => l.default));
|
|
2545
2543
|
t = o;
|
|
2546
2544
|
}
|
|
2547
2545
|
let i;
|
|
@@ -2555,24 +2553,24 @@ function ur(e) {
|
|
|
2555
2553
|
};
|
|
2556
2554
|
return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
|
|
2557
2555
|
}
|
|
2558
|
-
var
|
|
2559
|
-
function
|
|
2560
|
-
return _.context ? _.getNextContextId() : `cl-${
|
|
2556
|
+
var sl = 0;
|
|
2557
|
+
function Tu() {
|
|
2558
|
+
return _.context ? _.getNextContextId() : `cl-${sl++}`;
|
|
2561
2559
|
}
|
|
2562
2560
|
var dr = (e) => `Stale read from <${e}>.`;
|
|
2563
|
-
function
|
|
2561
|
+
function Su(e) {
|
|
2564
2562
|
const t = "fallback" in e && {
|
|
2565
2563
|
fallback: () => e.fallback
|
|
2566
2564
|
};
|
|
2567
|
-
return j(
|
|
2565
|
+
return j(Xo(() => e.each, e.children, t || void 0));
|
|
2568
2566
|
}
|
|
2569
|
-
function
|
|
2567
|
+
function _u(e) {
|
|
2570
2568
|
const t = "fallback" in e && {
|
|
2571
2569
|
fallback: () => e.fallback
|
|
2572
2570
|
};
|
|
2573
|
-
return j(
|
|
2571
|
+
return j(el(() => e.each, e.children, t || void 0));
|
|
2574
2572
|
}
|
|
2575
|
-
function
|
|
2573
|
+
function Pu(e) {
|
|
2576
2574
|
const t = e.keyed, n = j(() => e.when, void 0, void 0), s = t ? n : j(n, void 0, {
|
|
2577
2575
|
equals: (r, a) => !r == !a
|
|
2578
2576
|
});
|
|
@@ -2588,7 +2586,7 @@ function Su(e) {
|
|
|
2588
2586
|
return e.fallback;
|
|
2589
2587
|
}, void 0, void 0);
|
|
2590
2588
|
}
|
|
2591
|
-
function
|
|
2589
|
+
function wu(e) {
|
|
2592
2590
|
const t = sr(() => e.children), n = j(() => {
|
|
2593
2591
|
const s = t(), r = Array.isArray(s) ? s : [s];
|
|
2594
2592
|
let a = () => {
|
|
@@ -2612,13 +2610,13 @@ function _u(e) {
|
|
|
2612
2610
|
})) : o;
|
|
2613
2611
|
}, void 0, void 0);
|
|
2614
2612
|
}
|
|
2615
|
-
function
|
|
2613
|
+
function vu(e) {
|
|
2616
2614
|
return e;
|
|
2617
2615
|
}
|
|
2618
|
-
var
|
|
2616
|
+
var rl = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], al = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...rl]), il = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), ol = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2619
2617
|
className: "class",
|
|
2620
2618
|
htmlFor: "for"
|
|
2621
|
-
}),
|
|
2619
|
+
}), ll = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2622
2620
|
class: "className",
|
|
2623
2621
|
novalidate: {
|
|
2624
2622
|
$: "noValidate",
|
|
@@ -2647,11 +2645,11 @@ var sl = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
|
|
|
2647
2645
|
TEXTAREA: 1
|
|
2648
2646
|
}
|
|
2649
2647
|
});
|
|
2650
|
-
function
|
|
2651
|
-
const n =
|
|
2648
|
+
function cl(e, t) {
|
|
2649
|
+
const n = ll[e];
|
|
2652
2650
|
return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
|
|
2653
2651
|
}
|
|
2654
|
-
var
|
|
2652
|
+
var ul = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), dl = /* @__PURE__ */ new Set([
|
|
2655
2653
|
"altGlyph",
|
|
2656
2654
|
"altGlyphDef",
|
|
2657
2655
|
"altGlyphItem",
|
|
@@ -2729,11 +2727,11 @@ var cl = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
|
2729
2727
|
"use",
|
|
2730
2728
|
"view",
|
|
2731
2729
|
"vkern"
|
|
2732
|
-
]),
|
|
2730
|
+
]), fl = {
|
|
2733
2731
|
xlink: "http://www.w3.org/1999/xlink",
|
|
2734
2732
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
2735
|
-
},
|
|
2736
|
-
function
|
|
2733
|
+
}, Iu = (e) => j(() => e());
|
|
2734
|
+
function hl(e, t, n) {
|
|
2737
2735
|
let s = n.length, r = t.length, a = s, i = 0, o = 0, l = t[r - 1].nextSibling, f = null;
|
|
2738
2736
|
for (; i < r || o < a; ) {
|
|
2739
2737
|
if (t[i] === n[o]) {
|
|
@@ -2781,7 +2779,7 @@ function fr(e, t, n, s = {}) {
|
|
|
2781
2779
|
r(), t.textContent = "";
|
|
2782
2780
|
};
|
|
2783
2781
|
}
|
|
2784
|
-
function
|
|
2782
|
+
function bu(e, t, n, s) {
|
|
2785
2783
|
let r;
|
|
2786
2784
|
const a = () => {
|
|
2787
2785
|
const o = document.createElement("template");
|
|
@@ -2789,14 +2787,14 @@ function vu(e, t, n, s) {
|
|
|
2789
2787
|
}, i = () => (r || (r = a())).cloneNode(!0);
|
|
2790
2788
|
return i.cloneNode = i, i;
|
|
2791
2789
|
}
|
|
2792
|
-
function
|
|
2790
|
+
function gl(e, t = window.document) {
|
|
2793
2791
|
const n = t[ut] || (t[ut] = /* @__PURE__ */ new Set());
|
|
2794
2792
|
for (let s = 0, r = e.length; s < r; s++) {
|
|
2795
2793
|
const a = e[s];
|
|
2796
2794
|
n.has(a) || (n.add(a), t.addEventListener(a, hr));
|
|
2797
2795
|
}
|
|
2798
2796
|
}
|
|
2799
|
-
function
|
|
2797
|
+
function Nu(e = window.document) {
|
|
2800
2798
|
if (e[ut]) {
|
|
2801
2799
|
for (let t of e[ut].keys()) e.removeEventListener(t, hr);
|
|
2802
2800
|
delete e[ut];
|
|
@@ -2805,16 +2803,16 @@ function Iu(e = window.document) {
|
|
|
2805
2803
|
function _n(e, t, n) {
|
|
2806
2804
|
Fe(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
2807
2805
|
}
|
|
2808
|
-
function
|
|
2806
|
+
function ml(e, t, n, s) {
|
|
2809
2807
|
Fe(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
|
|
2810
2808
|
}
|
|
2811
|
-
function
|
|
2809
|
+
function El(e, t, n) {
|
|
2812
2810
|
Fe(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
|
|
2813
2811
|
}
|
|
2814
|
-
function
|
|
2812
|
+
function pl(e, t) {
|
|
2815
2813
|
Fe(e) || (t == null ? e.removeAttribute("class") : e.className = t);
|
|
2816
2814
|
}
|
|
2817
|
-
function
|
|
2815
|
+
function yl(e, t, n, s) {
|
|
2818
2816
|
if (s)
|
|
2819
2817
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
2820
2818
|
else if (Array.isArray(n)) {
|
|
@@ -2822,7 +2820,7 @@ function pl(e, t, n, s) {
|
|
|
2822
2820
|
e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
|
|
2823
2821
|
} else e.addEventListener(t, n, typeof n != "function" && n);
|
|
2824
2822
|
}
|
|
2825
|
-
function
|
|
2823
|
+
function Al(e, t, n = {}) {
|
|
2826
2824
|
const s = Object.keys(t || {}), r = Object.keys(n);
|
|
2827
2825
|
let a, i;
|
|
2828
2826
|
for (a = 0, i = r.length; a < i; a++) {
|
|
@@ -2835,7 +2833,7 @@ function yl(e, t, n = {}) {
|
|
|
2835
2833
|
}
|
|
2836
2834
|
return n;
|
|
2837
2835
|
}
|
|
2838
|
-
function
|
|
2836
|
+
function Tl(e, t, n) {
|
|
2839
2837
|
if (!t) return n ? _n(e, "style") : t;
|
|
2840
2838
|
const s = e.style;
|
|
2841
2839
|
if (typeof t == "string") return s.cssText = t;
|
|
@@ -2847,18 +2845,18 @@ function Al(e, t, n) {
|
|
|
2847
2845
|
r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
|
|
2848
2846
|
return n;
|
|
2849
2847
|
}
|
|
2850
|
-
function
|
|
2848
|
+
function Sl(e, t = {}, n, s) {
|
|
2851
2849
|
const r = {};
|
|
2852
|
-
return s || ke(() => r.children = gt(e, t.children, r.children)), ke(() => typeof t.ref == "function" &&
|
|
2850
|
+
return s || ke(() => r.children = gt(e, t.children, r.children)), ke(() => typeof t.ref == "function" && _l(t.ref, e)), ke(() => Pl(e, t, n, !0, r, !0)), r;
|
|
2853
2851
|
}
|
|
2854
|
-
function
|
|
2852
|
+
function _l(e, t, n) {
|
|
2855
2853
|
return Z(() => e(t, n));
|
|
2856
2854
|
}
|
|
2857
2855
|
function Pn(e, t, n, s) {
|
|
2858
2856
|
if (n !== void 0 && !s && (s = []), typeof t != "function") return gt(e, t, s, n);
|
|
2859
2857
|
ke((r) => gt(e, t(), r, n), s);
|
|
2860
2858
|
}
|
|
2861
|
-
function
|
|
2859
|
+
function Pl(e, t, n, s, r = {}, a = !1) {
|
|
2862
2860
|
t || (t = {});
|
|
2863
2861
|
for (const i in r)
|
|
2864
2862
|
if (!(i in t)) {
|
|
@@ -2872,14 +2870,14 @@ function _l(e, t, n, s, r = {}, a = !1) {
|
|
|
2872
2870
|
r[i] = ds(e, i, o, r[i], n, a, t);
|
|
2873
2871
|
}
|
|
2874
2872
|
}
|
|
2875
|
-
function
|
|
2873
|
+
function wl(e) {
|
|
2876
2874
|
let t, n;
|
|
2877
|
-
return !Fe() || !(t = _.registry.get(n =
|
|
2875
|
+
return !Fe() || !(t = _.registry.get(n = Il())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
|
|
2878
2876
|
}
|
|
2879
2877
|
function Fe(e) {
|
|
2880
2878
|
return !!_.context && !_.done && (!e || e.isConnected);
|
|
2881
2879
|
}
|
|
2882
|
-
function
|
|
2880
|
+
function vl(e) {
|
|
2883
2881
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
2884
2882
|
}
|
|
2885
2883
|
function us(e, t, n) {
|
|
@@ -2888,8 +2886,8 @@ function us(e, t, n) {
|
|
|
2888
2886
|
}
|
|
2889
2887
|
function ds(e, t, n, s, r, a, i) {
|
|
2890
2888
|
let o, l, f, d, u;
|
|
2891
|
-
if (t === "style") return
|
|
2892
|
-
if (t === "classList") return
|
|
2889
|
+
if (t === "style") return Tl(e, n, s);
|
|
2890
|
+
if (t === "classList") return Al(e, n, s);
|
|
2893
2891
|
if (n === s) return s;
|
|
2894
2892
|
if (t === "ref")
|
|
2895
2893
|
a || n(e);
|
|
@@ -2900,24 +2898,24 @@ function ds(e, t, n, s, r, a, i) {
|
|
|
2900
2898
|
const g = t.slice(10);
|
|
2901
2899
|
s && e.removeEventListener(g, s, !0), n && e.addEventListener(g, n, !0);
|
|
2902
2900
|
} else if (t.slice(0, 2) === "on") {
|
|
2903
|
-
const g = t.slice(2).toLowerCase(), h =
|
|
2901
|
+
const g = t.slice(2).toLowerCase(), h = ul.has(g);
|
|
2904
2902
|
if (!h && s) {
|
|
2905
2903
|
const p = Array.isArray(s) ? s[0] : s;
|
|
2906
2904
|
e.removeEventListener(g, p);
|
|
2907
2905
|
}
|
|
2908
|
-
(h || n) && (
|
|
2906
|
+
(h || n) && (yl(e, g, n, h), h && gl([g]));
|
|
2909
2907
|
} else if (t.slice(0, 5) === "attr:")
|
|
2910
2908
|
_n(e, t.slice(5), n);
|
|
2911
2909
|
else if (t.slice(0, 5) === "bool:")
|
|
2912
|
-
|
|
2913
|
-
else if ((u = t.slice(0, 5) === "prop:") || (f =
|
|
2910
|
+
El(e, t.slice(5), n);
|
|
2911
|
+
else if ((u = t.slice(0, 5) === "prop:") || (f = il.has(t)) || !r && ((d = cl(t, e.tagName)) || (l = al.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
|
|
2914
2912
|
if (u)
|
|
2915
2913
|
t = t.slice(5), l = !0;
|
|
2916
2914
|
else if (Fe(e)) return n;
|
|
2917
|
-
t === "class" || t === "className" ?
|
|
2915
|
+
t === "class" || t === "className" ? pl(e, n) : o && !l && !f ? e[vl(t)] = n : e[d || t] = n;
|
|
2918
2916
|
} else {
|
|
2919
|
-
const g = r && t.indexOf(":") > -1 &&
|
|
2920
|
-
g ?
|
|
2917
|
+
const g = r && t.indexOf(":") > -1 && fl[t.split(":")[0]];
|
|
2918
|
+
g ? ml(e, g, t, n) : _n(e, ol[t] || t, n);
|
|
2921
2919
|
}
|
|
2922
2920
|
return n;
|
|
2923
2921
|
}
|
|
@@ -3004,7 +3002,7 @@ function gt(e, t, n, s, r) {
|
|
|
3004
3002
|
}
|
|
3005
3003
|
if (l.length === 0) {
|
|
3006
3004
|
if (n = Ve(e, n, s), o) return n;
|
|
3007
|
-
} else f ? n.length === 0 ? fs(e, l, s) :
|
|
3005
|
+
} else f ? n.length === 0 ? fs(e, l, s) : hl(e, n, l) : (n && Ve(e), fs(e, l));
|
|
3008
3006
|
n = l;
|
|
3009
3007
|
} else if (t.nodeType) {
|
|
3010
3008
|
if (a && t.parentNode) return n = o ? [t] : t;
|
|
@@ -3056,14 +3054,14 @@ function Ve(e, t, n, s) {
|
|
|
3056
3054
|
} else e.insertBefore(r, n);
|
|
3057
3055
|
return [r];
|
|
3058
3056
|
}
|
|
3059
|
-
function
|
|
3057
|
+
function Il() {
|
|
3060
3058
|
return _.getNextContextId();
|
|
3061
3059
|
}
|
|
3062
|
-
var
|
|
3060
|
+
var bl = "http://www.w3.org/2000/svg";
|
|
3063
3061
|
function gr(e, t = !1) {
|
|
3064
|
-
return t ? document.createElementNS(
|
|
3062
|
+
return t ? document.createElementNS(bl, e) : document.createElement(e);
|
|
3065
3063
|
}
|
|
3066
|
-
function
|
|
3064
|
+
function Lu(e) {
|
|
3067
3065
|
const {
|
|
3068
3066
|
useShadow: t
|
|
3069
3067
|
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = cs();
|
|
@@ -3089,7 +3087,7 @@ function bu(e) {
|
|
|
3089
3087
|
render: !i
|
|
3090
3088
|
}), n;
|
|
3091
3089
|
}
|
|
3092
|
-
function
|
|
3090
|
+
function Nl(e, t) {
|
|
3093
3091
|
const n = j(e);
|
|
3094
3092
|
return j(() => {
|
|
3095
3093
|
const s = n();
|
|
@@ -3097,16 +3095,16 @@ function bl(e, t) {
|
|
|
3097
3095
|
case "function":
|
|
3098
3096
|
return Z(() => s(t));
|
|
3099
3097
|
case "string":
|
|
3100
|
-
const r =
|
|
3101
|
-
return
|
|
3098
|
+
const r = dl.has(s), a = _.context ? wl() : gr(s, r);
|
|
3099
|
+
return Sl(a, t, r), a;
|
|
3102
3100
|
}
|
|
3103
3101
|
});
|
|
3104
3102
|
}
|
|
3105
|
-
function
|
|
3106
|
-
const [, t] =
|
|
3107
|
-
return
|
|
3103
|
+
function Cu(e) {
|
|
3104
|
+
const [, t] = nl(e, ["component"]);
|
|
3105
|
+
return Nl(() => e.component, t);
|
|
3108
3106
|
}
|
|
3109
|
-
var
|
|
3107
|
+
var Ll = class {
|
|
3110
3108
|
constructor() {
|
|
3111
3109
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
3112
3110
|
}
|
|
@@ -3124,7 +3122,7 @@ var Nl = class {
|
|
|
3124
3122
|
}
|
|
3125
3123
|
}, mr = class {
|
|
3126
3124
|
constructor(e) {
|
|
3127
|
-
this.generateIdentifier = e, this.kv = new
|
|
3125
|
+
this.generateIdentifier = e, this.kv = new Ll();
|
|
3128
3126
|
}
|
|
3129
3127
|
register(e, t) {
|
|
3130
3128
|
this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
|
|
@@ -3138,7 +3136,7 @@ var Nl = class {
|
|
|
3138
3136
|
getValue(e) {
|
|
3139
3137
|
return this.kv.getByKey(e);
|
|
3140
3138
|
}
|
|
3141
|
-
},
|
|
3139
|
+
}, Cl = class extends mr {
|
|
3142
3140
|
constructor() {
|
|
3143
3141
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
3144
3142
|
}
|
|
@@ -3149,7 +3147,7 @@ var Nl = class {
|
|
|
3149
3147
|
return this.classToAllowedProps.get(e);
|
|
3150
3148
|
}
|
|
3151
3149
|
};
|
|
3152
|
-
function
|
|
3150
|
+
function Gl(e) {
|
|
3153
3151
|
if ("values" in Object)
|
|
3154
3152
|
return Object.values(e);
|
|
3155
3153
|
const t = [];
|
|
@@ -3157,8 +3155,8 @@ function Cl(e) {
|
|
|
3157
3155
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
3158
3156
|
return t;
|
|
3159
3157
|
}
|
|
3160
|
-
function
|
|
3161
|
-
const n =
|
|
3158
|
+
function Ol(e, t) {
|
|
3159
|
+
const n = Gl(e);
|
|
3162
3160
|
if ("find" in n)
|
|
3163
3161
|
return n.find(t);
|
|
3164
3162
|
const s = n;
|
|
@@ -3181,7 +3179,7 @@ function hs(e, t) {
|
|
|
3181
3179
|
return s;
|
|
3182
3180
|
}
|
|
3183
3181
|
}
|
|
3184
|
-
var
|
|
3182
|
+
var xl = class {
|
|
3185
3183
|
constructor() {
|
|
3186
3184
|
this.transfomers = {};
|
|
3187
3185
|
}
|
|
@@ -3189,12 +3187,12 @@ var Ol = class {
|
|
|
3189
3187
|
this.transfomers[e.name] = e;
|
|
3190
3188
|
}
|
|
3191
3189
|
findApplicable(e) {
|
|
3192
|
-
return
|
|
3190
|
+
return Ol(this.transfomers, (t) => t.isApplicable(e));
|
|
3193
3191
|
}
|
|
3194
3192
|
findByName(e) {
|
|
3195
3193
|
return this.transfomers[e];
|
|
3196
3194
|
}
|
|
3197
|
-
},
|
|
3195
|
+
}, Dl = (e) => Object.prototype.toString.call(e).slice(8, -1), Er = (e) => typeof e > "u", kl = (e) => e === null, mt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, vn = (e) => mt(e) && Object.keys(e).length === 0, Ne = (e) => Array.isArray(e), Rl = (e) => typeof e == "string", Ul = (e) => typeof e == "number" && !isNaN(e), Ml = (e) => typeof e == "boolean", Bl = (e) => e instanceof RegExp, Et = (e) => e instanceof Map, pt = (e) => e instanceof Set, pr = (e) => Dl(e) === "Symbol", Fl = (e) => e instanceof Date && !isNaN(e.valueOf()), Kl = (e) => e instanceof Error, gs = (e) => typeof e == "number" && isNaN(e), Vl = (e) => Ml(e) || kl(e) || Er(e) || Ul(e) || Rl(e) || pr(e), Hl = (e) => typeof e == "bigint", ql = (e) => e === 1 / 0 || e === -1 / 0, $l = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ql = (e) => e instanceof URL, yr = (e) => e.replace(/\./g, "\\."), pn = (e) => e.map(String).map(yr).join("."), dt = (e) => {
|
|
3198
3196
|
const t = [];
|
|
3199
3197
|
let n = "";
|
|
3200
3198
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3223,9 +3221,9 @@ function de(e, t, n, s) {
|
|
|
3223
3221
|
var Ar = [
|
|
3224
3222
|
de(Er, "undefined", () => null, () => {
|
|
3225
3223
|
}),
|
|
3226
|
-
de(
|
|
3227
|
-
de(
|
|
3228
|
-
de(
|
|
3224
|
+
de(Hl, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
|
|
3225
|
+
de(Fl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
3226
|
+
de(Kl, "Error", (e, t) => {
|
|
3229
3227
|
const n = {
|
|
3230
3228
|
name: e.name,
|
|
3231
3229
|
message: e.message
|
|
@@ -3239,7 +3237,7 @@ var Ar = [
|
|
|
3239
3237
|
n[s] = e[s];
|
|
3240
3238
|
}), n;
|
|
3241
3239
|
}),
|
|
3242
|
-
de(
|
|
3240
|
+
de(Bl, "regexp", (e) => "" + e, (e) => {
|
|
3243
3241
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
3244
3242
|
return new RegExp(t, n);
|
|
3245
3243
|
}),
|
|
@@ -3252,9 +3250,9 @@ var Ar = [
|
|
|
3252
3250
|
(e) => new Set(e)
|
|
3253
3251
|
),
|
|
3254
3252
|
de(Et, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
3255
|
-
de((e) => gs(e) ||
|
|
3253
|
+
de((e) => gs(e) || ql(e), "number", (e) => gs(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
3256
3254
|
de((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
3257
|
-
de(
|
|
3255
|
+
de(Ql, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
3258
3256
|
];
|
|
3259
3257
|
function ln(e, t, n, s) {
|
|
3260
3258
|
return {
|
|
@@ -3269,7 +3267,7 @@ var Tr = ln((e, t) => pr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
3269
3267
|
if (!s)
|
|
3270
3268
|
throw new Error("Trying to deserialize unknown symbol");
|
|
3271
3269
|
return s;
|
|
3272
|
-
}),
|
|
3270
|
+
}), zl = [
|
|
3273
3271
|
Int8Array,
|
|
3274
3272
|
Uint8Array,
|
|
3275
3273
|
Int16Array,
|
|
@@ -3279,8 +3277,8 @@ var Tr = ln((e, t) => pr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
3279
3277
|
Float32Array,
|
|
3280
3278
|
Float64Array,
|
|
3281
3279
|
Uint8ClampedArray
|
|
3282
|
-
].reduce((e, t) => (e[t.name] = t, e), {}), Sr = ln(
|
|
3283
|
-
const n =
|
|
3280
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), Sr = ln($l, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
3281
|
+
const n = zl[t[1]];
|
|
3284
3282
|
if (!n)
|
|
3285
3283
|
throw new Error("Trying to deserialize unknown typed array");
|
|
3286
3284
|
return new n(e);
|
|
@@ -3306,8 +3304,8 @@ var Pr = ln(_r, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3306
3304
|
if (!s)
|
|
3307
3305
|
throw new Error("Trying to deserialize unknown custom value");
|
|
3308
3306
|
return s.deserialize(e);
|
|
3309
|
-
}),
|
|
3310
|
-
const n = hs(
|
|
3307
|
+
}), Wl = [Pr, Tr, wr, Sr], ms = (e, t) => {
|
|
3308
|
+
const n = hs(Wl, (r) => r.isApplicable(e, t));
|
|
3311
3309
|
if (n)
|
|
3312
3310
|
return {
|
|
3313
3311
|
value: n.transform(e, t),
|
|
@@ -3323,7 +3321,7 @@ var Pr = ln(_r, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3323
3321
|
Ar.forEach((e) => {
|
|
3324
3322
|
vr[e.annotation] = e;
|
|
3325
3323
|
});
|
|
3326
|
-
var
|
|
3324
|
+
var jl = (e, t, n) => {
|
|
3327
3325
|
if (Ne(t))
|
|
3328
3326
|
switch (t[0]) {
|
|
3329
3327
|
case "symbol":
|
|
@@ -3359,7 +3357,7 @@ function Ir(e) {
|
|
|
3359
3357
|
if (Ht(e, "constructor"))
|
|
3360
3358
|
throw new Error("constructor is not allowed as a property");
|
|
3361
3359
|
}
|
|
3362
|
-
var
|
|
3360
|
+
var Yl = (e, t) => {
|
|
3363
3361
|
Ir(t);
|
|
3364
3362
|
for (let n = 0; n < t.length; n++) {
|
|
3365
3363
|
const s = t[n];
|
|
@@ -3440,14 +3438,14 @@ function bn(e, t, n = []) {
|
|
|
3440
3438
|
bn(a, t, [...n, ...dt(i)]);
|
|
3441
3439
|
}), t(s, n);
|
|
3442
3440
|
}
|
|
3443
|
-
function
|
|
3441
|
+
function Jl(e, t, n) {
|
|
3444
3442
|
return bn(t, (s, r) => {
|
|
3445
|
-
e = In(e, r, (a) =>
|
|
3443
|
+
e = In(e, r, (a) => jl(a, s, n));
|
|
3446
3444
|
}), e;
|
|
3447
3445
|
}
|
|
3448
|
-
function
|
|
3446
|
+
function Zl(e, t) {
|
|
3449
3447
|
function n(s, r) {
|
|
3450
|
-
const a =
|
|
3448
|
+
const a = Yl(e, dt(r));
|
|
3451
3449
|
s.map(dt).forEach((i) => {
|
|
3452
3450
|
e = In(e, i, () => a);
|
|
3453
3451
|
});
|
|
@@ -3461,12 +3459,12 @@ function Jl(e, t) {
|
|
|
3461
3459
|
ot(t, n);
|
|
3462
3460
|
return e;
|
|
3463
3461
|
}
|
|
3464
|
-
var
|
|
3465
|
-
function
|
|
3462
|
+
var Xl = (e, t) => mt(e) || Ne(e) || Et(e) || pt(e) || _r(e, t);
|
|
3463
|
+
function ec(e, t, n) {
|
|
3466
3464
|
const s = n.get(e);
|
|
3467
3465
|
s ? s.push(t) : n.set(e, [t]);
|
|
3468
3466
|
}
|
|
3469
|
-
function
|
|
3467
|
+
function tc(e, t) {
|
|
3470
3468
|
const n = {};
|
|
3471
3469
|
let s;
|
|
3472
3470
|
return e.forEach((r) => {
|
|
@@ -3478,16 +3476,16 @@ function ec(e, t) {
|
|
|
3478
3476
|
}), s ? vn(n) ? [s] : [s, n] : vn(n) ? void 0 : n;
|
|
3479
3477
|
}
|
|
3480
3478
|
var br = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
3481
|
-
const o =
|
|
3479
|
+
const o = Vl(e);
|
|
3482
3480
|
if (!o) {
|
|
3483
|
-
|
|
3481
|
+
ec(e, r, t);
|
|
3484
3482
|
const h = i.get(e);
|
|
3485
3483
|
if (h)
|
|
3486
3484
|
return s ? {
|
|
3487
3485
|
transformedValue: null
|
|
3488
3486
|
} : h;
|
|
3489
3487
|
}
|
|
3490
|
-
if (!
|
|
3488
|
+
if (!Xl(e, n)) {
|
|
3491
3489
|
const h = ms(e, n), p = h ? {
|
|
3492
3490
|
transformedValue: h.value,
|
|
3493
3491
|
annotations: [h.type]
|
|
@@ -3524,13 +3522,13 @@ function Nr(e) {
|
|
|
3524
3522
|
function Es(e) {
|
|
3525
3523
|
return Nr(e) === "Array";
|
|
3526
3524
|
}
|
|
3527
|
-
function
|
|
3525
|
+
function nc(e) {
|
|
3528
3526
|
if (Nr(e) !== "Object")
|
|
3529
3527
|
return !1;
|
|
3530
3528
|
const t = Object.getPrototypeOf(e);
|
|
3531
3529
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
3532
3530
|
}
|
|
3533
|
-
function
|
|
3531
|
+
function sc(e, t, n, s, r) {
|
|
3534
3532
|
const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
|
|
3535
3533
|
a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
3536
3534
|
value: n,
|
|
@@ -3542,14 +3540,14 @@ function nc(e, t, n, s, r) {
|
|
|
3542
3540
|
function Nn(e, t = {}) {
|
|
3543
3541
|
if (Es(e))
|
|
3544
3542
|
return e.map((r) => Nn(r, t));
|
|
3545
|
-
if (!
|
|
3543
|
+
if (!nc(e))
|
|
3546
3544
|
return e;
|
|
3547
3545
|
const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
|
|
3548
3546
|
return [...n, ...s].reduce((r, a) => {
|
|
3549
3547
|
if (Es(t.props) && !t.props.includes(a))
|
|
3550
3548
|
return r;
|
|
3551
3549
|
const i = e[a], o = Nn(i, t);
|
|
3552
|
-
return
|
|
3550
|
+
return sc(r, a, o, e, t.nonenumerable), r;
|
|
3553
3551
|
}, {});
|
|
3554
3552
|
}
|
|
3555
3553
|
var k = class {
|
|
@@ -3557,7 +3555,7 @@ var k = class {
|
|
|
3557
3555
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3558
3556
|
*/
|
|
3559
3557
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3560
|
-
this.classRegistry = new
|
|
3558
|
+
this.classRegistry = new Cl(), this.symbolRegistry = new mr((t) => t.description ?? ""), this.customTransformerRegistry = new xl(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3561
3559
|
}
|
|
3562
3560
|
serialize(e) {
|
|
3563
3561
|
const t = /* @__PURE__ */ new Map(), n = br(e, t, this, this.dedupe), s = {
|
|
@@ -3567,7 +3565,7 @@ var k = class {
|
|
|
3567
3565
|
...s.meta,
|
|
3568
3566
|
values: n.annotations
|
|
3569
3567
|
});
|
|
3570
|
-
const r =
|
|
3568
|
+
const r = tc(t, this.dedupe);
|
|
3571
3569
|
return r && (s.meta = {
|
|
3572
3570
|
...s.meta,
|
|
3573
3571
|
referentialEqualities: r
|
|
@@ -3576,7 +3574,7 @@ var k = class {
|
|
|
3576
3574
|
deserialize(e) {
|
|
3577
3575
|
const { json: t, meta: n } = e;
|
|
3578
3576
|
let s = Nn(t);
|
|
3579
|
-
return n != null && n.values && (s =
|
|
3577
|
+
return n != null && n.values && (s = Jl(s, n.values, this)), n != null && n.referentialEqualities && (s = Zl(s, n.referentialEqualities)), s;
|
|
3580
3578
|
}
|
|
3581
3579
|
stringify(e) {
|
|
3582
3580
|
return JSON.stringify(this.serialize(e));
|
|
@@ -3609,44 +3607,44 @@ k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
|
|
|
3609
3607
|
k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
|
|
3610
3608
|
k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
|
|
3611
3609
|
k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
|
|
3612
|
-
var
|
|
3613
|
-
function
|
|
3610
|
+
var rc = k.serialize, Gu = k.stringify;
|
|
3611
|
+
function Ou(e) {
|
|
3614
3612
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
|
3615
3613
|
}
|
|
3616
|
-
function
|
|
3614
|
+
function xu(e, t) {
|
|
3617
3615
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
|
3618
3616
|
}
|
|
3619
|
-
function
|
|
3617
|
+
function Du({
|
|
3620
3618
|
queryState: e,
|
|
3621
3619
|
observerCount: t,
|
|
3622
3620
|
isStale: n
|
|
3623
3621
|
}) {
|
|
3624
3622
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
|
|
3625
3623
|
}
|
|
3626
|
-
function
|
|
3624
|
+
function ku({
|
|
3627
3625
|
status: e,
|
|
3628
3626
|
isPaused: t
|
|
3629
3627
|
}) {
|
|
3630
3628
|
return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
|
|
3631
3629
|
}
|
|
3632
|
-
function
|
|
3630
|
+
function Ru(e) {
|
|
3633
3631
|
return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
|
|
3634
3632
|
}
|
|
3635
|
-
var
|
|
3633
|
+
var Uu = (e, t = !1) => {
|
|
3636
3634
|
const {
|
|
3637
3635
|
json: n
|
|
3638
|
-
} =
|
|
3636
|
+
} = rc(e);
|
|
3639
3637
|
return JSON.stringify(n, null, t ? 2 : void 0);
|
|
3640
|
-
}, Mt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3,
|
|
3641
|
-
status: ac,
|
|
3642
|
-
"query hash": rc,
|
|
3643
|
-
"last updated": Lr
|
|
3644
|
-
}, Bt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Cr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, ic = (e, t) => Bt(e) === Bt(t) ? Cr(e, t) : Bt(e) > Bt(t) ? 1 : -1, Uu = {
|
|
3638
|
+
}, Mt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ac = (e, t) => e.queryHash.localeCompare(t.queryHash), Lr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ic = (e, t) => Mt(e) === Mt(t) ? Lr(e, t) : Mt(e) > Mt(t) ? 1 : -1, Mu = {
|
|
3645
3639
|
status: ic,
|
|
3640
|
+
"query hash": ac,
|
|
3641
|
+
"last updated": Lr
|
|
3642
|
+
}, Bt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Cr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, oc = (e, t) => Bt(e) === Bt(t) ? Cr(e, t) : Bt(e) > Bt(t) ? 1 : -1, Bu = {
|
|
3643
|
+
status: oc,
|
|
3646
3644
|
"last updated": Cr
|
|
3647
|
-
},
|
|
3645
|
+
}, Fu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Ku = () => {
|
|
3648
3646
|
const [e, t] = F("dark");
|
|
3649
|
-
return
|
|
3647
|
+
return $o(() => {
|
|
3650
3648
|
const n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
3651
3649
|
t(n.matches ? "dark" : "light");
|
|
3652
3650
|
const s = (r) => {
|
|
@@ -3718,7 +3716,7 @@ var ku = (e, t = !1) => {
|
|
|
3718
3716
|
if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
|
|
3719
3717
|
const s = document.createElement("style"), r = document.createTextNode("");
|
|
3720
3718
|
s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
|
|
3721
|
-
}, qe, yt, At, Tt, Oe, St, $e, Qe, ze, We, je, _t, Ye, Je, Pt, Ts,
|
|
3719
|
+
}, qe, yt, At, Tt, Oe, St, $e, Qe, ze, We, je, _t, Ye, Je, Pt, Ts, lc = (Ts = class {
|
|
3722
3720
|
constructor(e) {
|
|
3723
3721
|
O(this, qe);
|
|
3724
3722
|
O(this, yt);
|
|
@@ -3775,7 +3773,7 @@ var ku = (e, t = !1) => {
|
|
|
3775
3773
|
const t = fr(() => {
|
|
3776
3774
|
const n = this, [s] = A(this, Qe), [r] = A(this, ze), [a] = A(this, We), [i] = A(this, je), [o] = A(this, _t), [l] = A(this, qe), [f] = A(this, Je);
|
|
3777
3775
|
let d;
|
|
3778
|
-
return A(this, Ye) ? d = A(this, Ye) : (d = ur(() => import("./WDYDFRGG-
|
|
3776
|
+
return A(this, Ye) ? d = A(this, Ye) : (d = ur(() => import("./WDYDFRGG-CWq7H6Qk.js")), C(this, Ye, d)), Gr(A(this, St), A(this, $e)), lr(d, cr({
|
|
3779
3777
|
get queryFlavor() {
|
|
3780
3778
|
return A(n, At);
|
|
3781
3779
|
},
|
|
@@ -3820,7 +3818,7 @@ var ku = (e, t = !1) => {
|
|
|
3820
3818
|
throw new Error("Devtools is not mounted");
|
|
3821
3819
|
(e = A(this, Pt)) == null || e.call(this), C(this, Oe, !1);
|
|
3822
3820
|
}
|
|
3823
|
-
}, qe = new WeakMap(), yt = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), Oe = new WeakMap(), St = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), _t = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Pt = new WeakMap(), Ts), Ze, wt, vt, It, xe, bt, Xe, et, tt, nt, st, Nt, rt, at, it, Lt, Ss,
|
|
3821
|
+
}, qe = new WeakMap(), yt = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), Oe = new WeakMap(), St = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), _t = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Pt = new WeakMap(), Ts), Ze, wt, vt, It, xe, bt, Xe, et, tt, nt, st, Nt, rt, at, it, Lt, Ss, cc = (Ss = class {
|
|
3824
3822
|
constructor(e) {
|
|
3825
3823
|
O(this, Ze);
|
|
3826
3824
|
O(this, wt);
|
|
@@ -3882,7 +3880,7 @@ var ku = (e, t = !1) => {
|
|
|
3882
3880
|
const t = fr(() => {
|
|
3883
3881
|
const n = this, [s] = A(this, et), [r] = A(this, tt), [a] = A(this, nt), [i] = A(this, st), [o] = A(this, Nt), [l] = A(this, Ze), [f] = A(this, rt), [d] = A(this, it);
|
|
3884
3882
|
let u;
|
|
3885
|
-
return A(this, at) ? u = A(this, at) : (u = ur(() => import("./2SSKDMRQ-
|
|
3883
|
+
return A(this, at) ? u = A(this, at) : (u = ur(() => import("./2SSKDMRQ-CdFBQR2o.js")), C(this, at, u)), Gr(A(this, bt), A(this, Xe)), lr(u, cr({
|
|
3886
3884
|
get queryFlavor() {
|
|
3887
3885
|
return A(n, vt);
|
|
3888
3886
|
},
|
|
@@ -3931,7 +3929,7 @@ var ku = (e, t = !1) => {
|
|
|
3931
3929
|
(e = A(this, Lt)) == null || e.call(this), C(this, xe, !1);
|
|
3932
3930
|
}
|
|
3933
3931
|
}, Ze = new WeakMap(), wt = new WeakMap(), vt = new WeakMap(), It = new WeakMap(), xe = new WeakMap(), bt = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), Nt = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), Lt = new WeakMap(), Ss);
|
|
3934
|
-
function
|
|
3932
|
+
function uc(e) {
|
|
3935
3933
|
const t = J(e.client), n = $.useRef(null), {
|
|
3936
3934
|
buttonPosition: s,
|
|
3937
3935
|
position: r,
|
|
@@ -3942,7 +3940,7 @@ function cc(e) {
|
|
|
3942
3940
|
hideDisabledQueries: f,
|
|
3943
3941
|
theme: d
|
|
3944
3942
|
} = e, [u] = $.useState(
|
|
3945
|
-
new
|
|
3943
|
+
new lc({
|
|
3946
3944
|
client: t,
|
|
3947
3945
|
queryFlavor: "React Query",
|
|
3948
3946
|
version: "5",
|
|
@@ -3973,7 +3971,7 @@ function cc(e) {
|
|
|
3973
3971
|
u.unmount();
|
|
3974
3972
|
}), [u]), /* @__PURE__ */ c("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
|
|
3975
3973
|
}
|
|
3976
|
-
function
|
|
3974
|
+
function dc(e) {
|
|
3977
3975
|
const t = J(e.client), n = $.useRef(null), {
|
|
3978
3976
|
errorTypes: s,
|
|
3979
3977
|
styleNonce: r,
|
|
@@ -3981,7 +3979,7 @@ function uc(e) {
|
|
|
3981
3979
|
hideDisabledQueries: i,
|
|
3982
3980
|
theme: o
|
|
3983
3981
|
} = e, [l] = $.useState(
|
|
3984
|
-
new
|
|
3982
|
+
new cc({
|
|
3985
3983
|
client: t,
|
|
3986
3984
|
queryFlavor: "React Query",
|
|
3987
3985
|
version: "5",
|
|
@@ -4019,22 +4017,22 @@ function uc(e) {
|
|
|
4019
4017
|
}
|
|
4020
4018
|
var ps = process.env.NODE_ENV !== "development" ? function() {
|
|
4021
4019
|
return null;
|
|
4022
|
-
} :
|
|
4020
|
+
} : uc;
|
|
4023
4021
|
process.env.NODE_ENV;
|
|
4024
|
-
const
|
|
4022
|
+
const fc = Ee(""), hc = () => {
|
|
4025
4023
|
Yn("dynamic-page-selector", {
|
|
4026
4024
|
description: "Dynamic page selector"
|
|
4027
4025
|
}), Yn("enable-add-page-dropdown", {
|
|
4028
4026
|
description: "Enable add page dropdown"
|
|
4029
4027
|
});
|
|
4030
|
-
},
|
|
4028
|
+
}, gc = () => {
|
|
4031
4029
|
const e = I(), t = b();
|
|
4032
4030
|
return re({
|
|
4033
4031
|
queryKey: [E.GET_COLLECTIONS],
|
|
4034
4032
|
staleTime: 1 / 0,
|
|
4035
4033
|
queryFn: async () => t(e, { action: E.GET_COLLECTIONS })
|
|
4036
4034
|
});
|
|
4037
|
-
},
|
|
4035
|
+
}, mc = () => {
|
|
4038
4036
|
const { data: e } = oe(), { data: t } = Le(), { data: n } = Be(), s = I(), r = b(), a = q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = be(/* @__PURE__ */ new Map());
|
|
4039
4037
|
return Y({
|
|
4040
4038
|
mutationFn: async ({ block: o }) => {
|
|
@@ -4065,7 +4063,7 @@ const dc = Ee(""), fc = () => {
|
|
|
4065
4063
|
}), u;
|
|
4066
4064
|
}
|
|
4067
4065
|
});
|
|
4068
|
-
},
|
|
4066
|
+
}, Ec = () => {
|
|
4069
4067
|
const [, e] = ve();
|
|
4070
4068
|
return z(
|
|
4071
4069
|
(t, n) => {
|
|
@@ -4074,42 +4072,40 @@ const dc = Ee(""), fc = () => {
|
|
|
4074
4072
|
},
|
|
4075
4073
|
[e]
|
|
4076
4074
|
);
|
|
4077
|
-
},
|
|
4078
|
-
const e =
|
|
4075
|
+
}, pc = () => {
|
|
4076
|
+
const e = Ec();
|
|
4079
4077
|
return z(
|
|
4080
4078
|
({ pageId: t }) => {
|
|
4081
4079
|
e(t);
|
|
4082
4080
|
},
|
|
4083
4081
|
[e]
|
|
4084
4082
|
);
|
|
4085
|
-
},
|
|
4083
|
+
}, yc = {
|
|
4086
4084
|
SITE_WIDE_USAGE: "SITE_WIDE_USAGE"
|
|
4087
|
-
},
|
|
4085
|
+
}, Ac = (e) => {
|
|
4088
4086
|
const t = b(), n = I();
|
|
4089
4087
|
return re({
|
|
4090
|
-
queryKey: [
|
|
4088
|
+
queryKey: [yc.SITE_WIDE_USAGE],
|
|
4091
4089
|
queryFn: async () => e ? t(n, { action: "GET_SITE_WIDE_USAGE" }) : {},
|
|
4092
4090
|
retry: !1
|
|
4093
4091
|
});
|
|
4094
|
-
},
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
ga(_c);
|
|
4103
|
-
const vc = {
|
|
4092
|
+
}, Tc = V(() => import("./page-lock-CUCEBnJb.js")), Sc = V(() => import("./no-language-page-dialog-D4n_XYUq.js")), _c = V(() => import("./digital-asset-manager-BmbVU7fX.js")), Pc = V(() => import("./save-to-lib-BKcBfjfi.js")), wc = V(() => import("./theme-panel-footer-DIy4baYU.js")), vc = V(() => import("./web-preview-DH7Yv-jg.js"));
|
|
4093
|
+
hc();
|
|
4094
|
+
li();
|
|
4095
|
+
ma(mo);
|
|
4096
|
+
Bo();
|
|
4097
|
+
ha(_c);
|
|
4098
|
+
ga(Pc);
|
|
4099
|
+
const Ic = {
|
|
4104
4100
|
role: "",
|
|
4105
4101
|
permissions: null
|
|
4106
4102
|
}, ys = (e) => {
|
|
4107
4103
|
var qn;
|
|
4108
|
-
const { data: t } =
|
|
4109
|
-
|
|
4110
|
-
const [g] = ve(), h = g.get("page"), { data: p } = oe(), { data: T, isFetching: S } =
|
|
4104
|
+
const { data: t } = _o(), n = Bn(), { data: s = Ic, isFetching: r } = wo(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = gc(), { data: f, isFetching: d } = Be(), u = r || i || l || d;
|
|
4105
|
+
Po();
|
|
4106
|
+
const [g] = ve(), h = g.get("page"), { data: p } = oe(), { data: T, isFetching: S } = Ao(), { blocks: x } = yo(T), { data: y, isFetching: w } = To(), { pageStatus: v } = ye(), U = Eo(), { onSave: N } = vo(), { mutateAsync: Ae } = mc(), { getPartialBlocks: Te, getPartialBlockBlocks: B } = Io(), { mutateAsync: P } = Si(), { mutateAsync: L } = So(), { data: W } = Ac(((qn = e.flags) == null ? void 0 : qn.designTokens) ?? !1), Q = pc(), [ue, Gt] = K(!1), Se = be([]), Ke = q(() => H(f, "theme", {}) || {}, [f]), Ge = v === te.EDITING, Or = v === te.CHECKING, Vn = S || Or || w;
|
|
4111
4107
|
Se.current = x;
|
|
4112
|
-
const [xr] = pe(
|
|
4108
|
+
const [xr] = pe(fc);
|
|
4113
4109
|
ne(() => {
|
|
4114
4110
|
const ae = () => {
|
|
4115
4111
|
document.hidden ? Gt(!0) : Gt(!1);
|
|
@@ -4129,7 +4125,7 @@ const vc = {
|
|
|
4129
4125
|
X,
|
|
4130
4126
|
{
|
|
4131
4127
|
fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c($t, { className: "h-6 w-6 animate-spin text-primary" }) }),
|
|
4132
|
-
children: /* @__PURE__ */ c(
|
|
4128
|
+
children: /* @__PURE__ */ c(vc, {})
|
|
4133
4129
|
}
|
|
4134
4130
|
),
|
|
4135
4131
|
/* @__PURE__ */ c(
|
|
@@ -4169,14 +4165,14 @@ const vc = {
|
|
|
4169
4165
|
const xt = {};
|
|
4170
4166
|
return Zn(Ot, Ke) || (xt.theme = Ot), Zn($n, f == null ? void 0 : f.designTokens) || (xt.designTokens = $n), fe(xt) || await L({ settings: xt }), !0;
|
|
4171
4167
|
},
|
|
4172
|
-
themePanelComponent:
|
|
4168
|
+
themePanelComponent: wc,
|
|
4173
4169
|
...Dr,
|
|
4174
|
-
children: /* @__PURE__ */ c(
|
|
4170
|
+
children: /* @__PURE__ */ c(Tc, { isFetchingPageData: Vn })
|
|
4175
4171
|
}
|
|
4176
4172
|
),
|
|
4177
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
4173
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Sc, {}) })
|
|
4178
4174
|
] });
|
|
4179
|
-
},
|
|
4175
|
+
}, bc = new xa({
|
|
4180
4176
|
defaultOptions: {
|
|
4181
4177
|
queries: {
|
|
4182
4178
|
refetchOnWindowFocus: !1,
|
|
@@ -4184,7 +4180,7 @@ const vc = {
|
|
|
4184
4180
|
refetchOnMount: !1
|
|
4185
4181
|
}
|
|
4186
4182
|
}
|
|
4187
|
-
}),
|
|
4183
|
+
}), Vu = (e) => {
|
|
4188
4184
|
const [, t] = kn(), [n, s] = K(!1);
|
|
4189
4185
|
return ne(() => (t(
|
|
4190
4186
|
Dn(e, [
|
|
@@ -4208,12 +4204,12 @@ const vc = {
|
|
|
4208
4204
|
}), [e, t]), n ? H(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(he, { children: [
|
|
4209
4205
|
/* @__PURE__ */ c(ys, { ...e }),
|
|
4210
4206
|
/* @__PURE__ */ c(ps, {})
|
|
4211
|
-
] }) : /* @__PURE__ */ m(Da, { client:
|
|
4207
|
+
] }) : /* @__PURE__ */ m(Da, { client: bc, children: [
|
|
4212
4208
|
/* @__PURE__ */ c(ys, { ...e }),
|
|
4213
4209
|
/* @__PURE__ */ c(ps, {})
|
|
4214
4210
|
] }) : /* @__PURE__ */ c("div", {});
|
|
4215
|
-
},
|
|
4216
|
-
function
|
|
4211
|
+
}, Nc = $.lazy(() => import("./nested-path-selector-content-B8z90MFF.js"));
|
|
4212
|
+
function Lc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
4217
4213
|
const [r, a] = $.useState(!1);
|
|
4218
4214
|
return /* @__PURE__ */ m(ra, { open: r, onOpenChange: a, children: [
|
|
4219
4215
|
/* @__PURE__ */ m(en, { children: [
|
|
@@ -4241,7 +4237,7 @@ function Nc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4241
4237
|
/* @__PURE__ */ c(nn, { children: "Add field" })
|
|
4242
4238
|
] }),
|
|
4243
4239
|
r && /* @__PURE__ */ c($.Suspense, { children: /* @__PURE__ */ c(
|
|
4244
|
-
|
|
4240
|
+
Nc,
|
|
4245
4241
|
{
|
|
4246
4242
|
data: e,
|
|
4247
4243
|
onSelect: t,
|
|
@@ -4252,17 +4248,17 @@ function Nc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4252
4248
|
) })
|
|
4253
4249
|
] });
|
|
4254
4250
|
}
|
|
4255
|
-
const
|
|
4251
|
+
const Hu = () => {
|
|
4256
4252
|
const { savePageAsync: e } = Re(), t = J(), { isLocked: n } = ye();
|
|
4257
4253
|
return z(async () => {
|
|
4258
4254
|
n || await e(), t.invalidateQueries({ queryKey: [E.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [E.GET_BUILDER_PAGE_DATA] });
|
|
4259
4255
|
}, [e, t, n]);
|
|
4260
|
-
},
|
|
4256
|
+
}, qu = () => {
|
|
4261
4257
|
const e = J();
|
|
4262
4258
|
return z(() => {
|
|
4263
4259
|
e.clear();
|
|
4264
4260
|
}, [e]);
|
|
4265
|
-
},
|
|
4261
|
+
}, $u = () => {
|
|
4266
4262
|
const e = I(), t = b(), { data: n } = Le(), s = J();
|
|
4267
4263
|
return Y({
|
|
4268
4264
|
mutationFn: async (r) => {
|
|
@@ -4287,7 +4283,7 @@ const Ku = () => {
|
|
|
4287
4283
|
console.error("Failed to update metadata");
|
|
4288
4284
|
}
|
|
4289
4285
|
});
|
|
4290
|
-
},
|
|
4286
|
+
}, Cc = V(() => import("./digital-asset-manager-BmbVU7fX.js")), Qu = ({
|
|
4291
4287
|
assetId: e,
|
|
4292
4288
|
assetUrl: t,
|
|
4293
4289
|
onChange: n,
|
|
@@ -4369,7 +4365,7 @@ const Ku = () => {
|
|
|
4369
4365
|
)
|
|
4370
4366
|
] }),
|
|
4371
4367
|
/* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
4372
|
-
|
|
4368
|
+
Cc,
|
|
4373
4369
|
{
|
|
4374
4370
|
close: d,
|
|
4375
4371
|
onSelect: u,
|
|
@@ -4379,7 +4375,7 @@ const Ku = () => {
|
|
|
4379
4375
|
) }) })
|
|
4380
4376
|
] }) })
|
|
4381
4377
|
] });
|
|
4382
|
-
},
|
|
4378
|
+
}, Gc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), As = (e) => {
|
|
4383
4379
|
if (!e.trim())
|
|
4384
4380
|
return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
|
|
4385
4381
|
try {
|
|
@@ -4414,13 +4410,13 @@ const Ku = () => {
|
|
|
4414
4410
|
}
|
|
4415
4411
|
};
|
|
4416
4412
|
}
|
|
4417
|
-
},
|
|
4413
|
+
}, Oc = (e, t) => {
|
|
4418
4414
|
let s = JSON.stringify(e, null, 2);
|
|
4419
4415
|
return t.forEach(({ original: r }, a) => {
|
|
4420
|
-
const i = `"__placeholder_${a}__"`, o = new RegExp(
|
|
4416
|
+
const i = `"__placeholder_${a}__"`, o = new RegExp(Gc(i), "g");
|
|
4421
4417
|
s = s.replace(o, r);
|
|
4422
4418
|
}), s;
|
|
4423
|
-
},
|
|
4419
|
+
}, xc = (e, t) => {
|
|
4424
4420
|
if (!e) return "";
|
|
4425
4421
|
let n = JSON.stringify(e, null, 2);
|
|
4426
4422
|
const s = /{{([^{}]+)}}/g;
|
|
@@ -4430,7 +4426,7 @@ const Ku = () => {
|
|
|
4430
4426
|
n = n.replace(r[0], i);
|
|
4431
4427
|
}
|
|
4432
4428
|
return n;
|
|
4433
|
-
},
|
|
4429
|
+
}, Dc = V(() => import("./shared-json-ld-DSPadwbY.js")), zu = ({
|
|
4434
4430
|
value: e,
|
|
4435
4431
|
onChange: t,
|
|
4436
4432
|
disabled: n = !1,
|
|
@@ -4483,7 +4479,7 @@ const Ku = () => {
|
|
|
4483
4479
|
const B = As(e);
|
|
4484
4480
|
B.isValid ? Xn(() => {
|
|
4485
4481
|
if (p(null), B.parsed) {
|
|
4486
|
-
const P =
|
|
4482
|
+
const P = xc(B.parsed, o);
|
|
4487
4483
|
S(P);
|
|
4488
4484
|
} else
|
|
4489
4485
|
S("");
|
|
@@ -4494,13 +4490,13 @@ const Ku = () => {
|
|
|
4494
4490
|
const Ae = () => {
|
|
4495
4491
|
const B = As(e);
|
|
4496
4492
|
if (B.isValid && B.parsed) {
|
|
4497
|
-
const P =
|
|
4493
|
+
const P = Oc(B.parsed, B.placeholders);
|
|
4498
4494
|
t(P);
|
|
4499
4495
|
}
|
|
4500
4496
|
}, Te = () => {
|
|
4501
4497
|
h != null && h.position && x.current && (x.current.focus(), x.current.setSelectionRange(h.position, h.position + 1));
|
|
4502
4498
|
};
|
|
4503
|
-
return /* @__PURE__ */ c(
|
|
4499
|
+
return /* @__PURE__ */ c(ci, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(ca, { value: u, onValueChange: g, className: "w-full", children: [
|
|
4504
4500
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
4505
4501
|
/* @__PURE__ */ m(ua, { className: "w-max", children: [
|
|
4506
4502
|
/* @__PURE__ */ m(cn, { value: "edit", className: "flex items-center gap-1", children: [
|
|
@@ -4533,7 +4529,7 @@ const Ku = () => {
|
|
|
4533
4529
|
)
|
|
4534
4530
|
] }),
|
|
4535
4531
|
v ? null : u === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
|
|
4536
|
-
|
|
4532
|
+
Lc,
|
|
4537
4533
|
{
|
|
4538
4534
|
dataType: "value",
|
|
4539
4535
|
data: o ?? {},
|
|
@@ -4605,9 +4601,9 @@ const Ku = () => {
|
|
|
4605
4601
|
/* @__PURE__ */ c(jn, { rows: a, value: T, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
|
|
4606
4602
|
/* @__PURE__ */ c("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
|
|
4607
4603
|
] }),
|
|
4608
|
-
w && /* @__PURE__ */ c(un, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
4604
|
+
w && /* @__PURE__ */ c(un, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Dc, {}) }) })
|
|
4609
4605
|
] }) }) });
|
|
4610
|
-
},
|
|
4606
|
+
}, Wu = (e) => {
|
|
4611
4607
|
const t = I(), n = b();
|
|
4612
4608
|
return re({
|
|
4613
4609
|
queryKey: [E.GET_CHAI_USER, e],
|
|
@@ -4625,93 +4621,93 @@ const Ku = () => {
|
|
|
4625
4621
|
if (typeof window > "u")
|
|
4626
4622
|
throw new Error("@chaibuilder/pages is not available on the server");
|
|
4627
4623
|
export {
|
|
4628
|
-
|
|
4624
|
+
Tu as $,
|
|
4629
4625
|
E as A,
|
|
4630
4626
|
Hs as B,
|
|
4631
4627
|
F as C,
|
|
4632
|
-
|
|
4628
|
+
$o as D,
|
|
4633
4629
|
se as E,
|
|
4634
4630
|
tr as F,
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4631
|
+
Lu as G,
|
|
4632
|
+
Iu as H,
|
|
4633
|
+
bu as I,
|
|
4638
4634
|
Pn as J,
|
|
4639
4635
|
ke as K,
|
|
4640
4636
|
Rt as L,
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4637
|
+
pl as M,
|
|
4638
|
+
Nu as N,
|
|
4639
|
+
gl as O,
|
|
4644
4640
|
te as P,
|
|
4645
|
-
|
|
4641
|
+
Au as Q,
|
|
4646
4642
|
ft as R,
|
|
4647
|
-
|
|
4643
|
+
Pu as S,
|
|
4648
4644
|
Fn as T,
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4645
|
+
Mu as U,
|
|
4646
|
+
Bu as V,
|
|
4647
|
+
mu as W,
|
|
4652
4648
|
_n as X,
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4649
|
+
xu as Y,
|
|
4650
|
+
_l as Z,
|
|
4651
|
+
Fu as _,
|
|
4656
4652
|
ye as a,
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4653
|
+
gu as a0,
|
|
4654
|
+
Ou as a1,
|
|
4655
|
+
ku as a2,
|
|
4656
|
+
Du as a3,
|
|
4657
|
+
Ru as a4,
|
|
4658
|
+
Uu as a5,
|
|
4659
|
+
Su as a6,
|
|
4664
4660
|
Z as a7,
|
|
4665
4661
|
Zs as a8,
|
|
4666
|
-
|
|
4662
|
+
pu as a9,
|
|
4667
4663
|
rn as aA,
|
|
4668
4664
|
Ms as aB,
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4665
|
+
lu as aC,
|
|
4666
|
+
du as aD,
|
|
4667
|
+
zu as aE,
|
|
4672
4668
|
As as aF,
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4669
|
+
cu as aG,
|
|
4670
|
+
fu as aH,
|
|
4671
|
+
hu as aI,
|
|
4672
|
+
uu as aJ,
|
|
4673
|
+
To as aK,
|
|
4674
|
+
Ti as aL,
|
|
4679
4675
|
kn as aM,
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4676
|
+
Qi as aN,
|
|
4677
|
+
Lc as aO,
|
|
4678
|
+
Qu as aP,
|
|
4679
|
+
_i as aQ,
|
|
4680
|
+
eu as aR,
|
|
4685
4681
|
Ks as aS,
|
|
4686
|
-
|
|
4682
|
+
Vu as aT,
|
|
4687
4683
|
Le as aU,
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4684
|
+
qu as aV,
|
|
4685
|
+
pc as aW,
|
|
4686
|
+
Hu as aX,
|
|
4687
|
+
$u as aY,
|
|
4692
4688
|
Un as aZ,
|
|
4693
|
-
|
|
4694
|
-
|
|
4689
|
+
wo as a_,
|
|
4690
|
+
Sl as aa,
|
|
4695
4691
|
cr as ab,
|
|
4696
4692
|
De as ac,
|
|
4697
|
-
|
|
4698
|
-
|
|
4693
|
+
rc as ad,
|
|
4694
|
+
_u as ae,
|
|
4699
4695
|
Ft as af,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4696
|
+
yl as ag,
|
|
4697
|
+
Gu as ah,
|
|
4698
|
+
vu as ai,
|
|
4699
|
+
wu as aj,
|
|
4704
4700
|
Kt as ak,
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4701
|
+
nl as al,
|
|
4702
|
+
Cu as am,
|
|
4703
|
+
Vo as an,
|
|
4704
|
+
xi as ao,
|
|
4705
|
+
Wu as ap,
|
|
4706
|
+
Gi as aq,
|
|
4711
4707
|
I as ar,
|
|
4712
4708
|
b as as,
|
|
4713
|
-
|
|
4714
|
-
au,
|
|
4709
|
+
Ec as at,
|
|
4710
|
+
ou as au,
|
|
4715
4711
|
zt as av,
|
|
4716
4712
|
oe as aw,
|
|
4717
4713
|
fn as ax,
|
|
@@ -4719,27 +4715,27 @@ export {
|
|
|
4719
4715
|
Rs as az,
|
|
4720
4716
|
Bs as b,
|
|
4721
4717
|
ve as c,
|
|
4722
|
-
|
|
4718
|
+
eo as d,
|
|
4723
4719
|
qs as e,
|
|
4724
|
-
|
|
4720
|
+
So as f,
|
|
4725
4721
|
Fs as g,
|
|
4726
|
-
|
|
4727
|
-
|
|
4722
|
+
tu as h,
|
|
4723
|
+
nu as i,
|
|
4728
4724
|
Be as j,
|
|
4729
4725
|
Bn as k,
|
|
4730
4726
|
Me as l,
|
|
4731
4727
|
Ce as m,
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4728
|
+
mi as n,
|
|
4729
|
+
su as o,
|
|
4730
|
+
fc as p,
|
|
4731
|
+
au as q,
|
|
4732
|
+
iu as r,
|
|
4733
|
+
ru as s,
|
|
4738
4734
|
hn as t,
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4735
|
+
Xc as u,
|
|
4736
|
+
Zc as v,
|
|
4737
|
+
Ku as w,
|
|
4742
4738
|
j as x,
|
|
4743
4739
|
lr as y,
|
|
4744
|
-
|
|
4740
|
+
yu as z
|
|
4745
4741
|
};
|