@chaibuilder/sdk 4.0.0-beta.40 → 4.0.0-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2SSKDMRQ-DKit4bEt.js → 2SSKDMRQ-B5qZhDJq.js} +2 -2
- package/dist/{2SSKDMRQ-D-2rSLsq.cjs → 2SSKDMRQ-BV_jH_uD.cjs} +1 -1
- package/dist/{AP7HFJJL-BWruCozs.js → AP7HFJJL-Bz-VAsng.js} +1 -1
- package/dist/{AP7HFJJL-CAE2yHEv.cjs → AP7HFJJL-ir1EjTCR.cjs} +1 -1
- package/dist/{IconPicker-BOBnjfJc.js → IconPicker-1QGEZltT.js} +1 -1
- package/dist/{IconPicker-BCYCPK5M.cjs → IconPicker-sfVYAEEH.cjs} +1 -1
- package/dist/{WDYDFRGG-Bv40IVPG.js → WDYDFRGG-CQq43W7b.js} +2 -2
- package/dist/{WDYDFRGG-BNve1FlV.cjs → WDYDFRGG-GA97qiH3.cjs} +1 -1
- package/dist/{active-in-another-tab-BPBvEwmD.cjs → active-in-another-tab-BQlhCFfV.cjs} +1 -1
- package/dist/{active-in-another-tab-C334yD2g.js → active-in-another-tab-UROmwylX.js} +2 -2
- package/dist/{add-new-language-page-DVL-HkWR.js → add-new-language-page-B8JAC5o-.js} +3 -3
- package/dist/{add-new-language-page-BVME8b7v.cjs → add-new-language-page-DMOmGGtJ.cjs} +1 -1
- package/dist/{add-new-page-BPysPck8.cjs → add-new-page-DXXSfJwe.cjs} +1 -1
- package/dist/{add-new-page-BQOsHkVl.js → add-new-page-g-1IoabL.js} +2 -2
- package/dist/{ai-panel-content-BsElc0Ke.cjs → ai-panel-content-4gSeUuTQ.cjs} +1 -1
- package/dist/{ai-panel-content-BwX0YBGD.js → ai-panel-content-JYiVwS68.js} +3 -3
- package/dist/{ai-panel-default-lang-CYZuwSQn.js → ai-panel-default-lang-jwZngWR2.js} +3 -3
- package/dist/{ai-panel-default-lang-BqhAu1iN.cjs → ai-panel-default-lang-riGelpca.cjs} +2 -2
- package/dist/{ai-panel-other-lang-CL83Mwha.js → ai-panel-other-lang-DXHhQhFj.js} +3 -3
- package/dist/{ai-panel-other-lang-CivH2s8Q.cjs → ai-panel-other-lang-zZLcPcBO.cjs} +1 -1
- package/dist/{ai-prompt-input-BuP52voq.cjs → ai-prompt-input-CxFRbEXw.cjs} +1 -1
- package/dist/{ai-prompt-input-C37B_jlE.js → ai-prompt-input-zvmGhFMA.js} +1 -1
- package/dist/{ai-translation-prompt-V5PBEZRn.js → ai-translation-prompt-C1Rx2XWO.js} +1 -1
- package/dist/{ai-translation-prompt-CgZKlkF_.cjs → ai-translation-prompt-C2kemdmw.cjs} +1 -1
- package/dist/{change-password-modal-AQU_GLqq.js → change-password-modal-Bp_qAzFq.js} +2 -2
- package/dist/{change-password-modal-Chufk3yU.cjs → change-password-modal-D5wnjNjq.cjs} +1 -1
- package/dist/{code-editor-gqdLU-rU.cjs → code-editor-CoECpDKZ.cjs} +1 -1
- package/dist/{code-editor-D-fpas30.js → code-editor-qsQSt_N8.js} +1 -1
- package/dist/{continue-editing-in-this-client-BNEnV0hi.cjs → continue-editing-in-this-client--7chd_h6.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-Dx3f64SH.js → continue-editing-in-this-client-Casnk9v0.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{css-import-modal-B2NoLsdZ.cjs → css-import-modal-Bey4c5-K.cjs} +1 -1
- package/dist/{css-import-modal-c_6VH1js.js → css-import-modal-oDg4QESS.js} +1 -1
- package/dist/{delete-page-DbQDbCyB.cjs → delete-page-DW_SaiOe.cjs} +1 -1
- package/dist/{delete-page-B1R1w8O5.js → delete-page-Dn_RROmv.js} +2 -2
- package/dist/{design-token-usage-BBLfxzzo.cjs → design-token-usage-CvA8ZqWQ.cjs} +1 -1
- package/dist/{design-token-usage-11kPk5n1.js → design-token-usage-CwYOmH0T.js} +1 -1
- package/dist/{digital-asset-manager-BbEQ8cPb.js → digital-asset-manager-DgLvx-bn.js} +3 -3
- package/dist/{digital-asset-manager-B0h5rUVQ.cjs → digital-asset-manager-oPPsGSPh.cjs} +1 -1
- package/dist/{duplicate-page-BY_Pcqbb.js → duplicate-page-BR5ztiaP.js} +3 -3
- package/dist/{duplicate-page-BaAzKbiX.cjs → duplicate-page-CVpPqtDN.cjs} +1 -1
- package/dist/{dynamic-page-selector-DzH_gCQ4.cjs → dynamic-page-selector-ByJeL5Bi.cjs} +1 -1
- package/dist/{dynamic-page-selector-bsaLGZkO.js → dynamic-page-selector-DoescCb6.js} +2 -2
- package/dist/get-chai-builder-theme-B5RkBTsB.cjs +1 -0
- package/dist/{get-chai-builder-theme-CyOkIlte.js → get-chai-builder-theme-BpuwSLeS.js} +1 -1
- package/dist/{image-editor-CyGqVNvX.js → image-editor-Bn2e06V5.js} +1 -1
- package/dist/{image-editor-Cfn290vp.cjs → image-editor-CyOzywMM.cjs} +1 -1
- package/dist/index-B6QwQlj4.cjs +5 -0
- package/dist/{index-DpeytsiB.js → index-BaGVmuyu.js} +2954 -2952
- package/dist/{index-P-2SvZA9.cjs → index-C_1_PwHO.cjs} +15 -15
- package/dist/{index-BpVxZOd-.js → index-rbUKd_cr.js} +1065 -1029
- package/dist/{json-diff-viewer-C-bpInzt.js → json-diff-viewer-DCbCxU1-.js} +2 -2
- package/dist/{json-diff-viewer-BBERGXdt.cjs → json-diff-viewer-DaF9MVYL.cjs} +1 -1
- package/dist/{lang-panel-4Q_PTmKm.js → lang-panel-Cd1Fdck1.js} +3 -3
- package/dist/{lang-panel-uI149Beq.cjs → lang-panel-DRJU1Rxh.cjs} +1 -1
- package/dist/{manage-design-tokens-B_-TrQgu.cjs → manage-design-tokens-C12iGL_e.cjs} +1 -1
- package/dist/{manage-design-tokens-CHpHE-dx.js → manage-design-tokens-ClwzYpSr.js} +2 -2
- package/dist/{manage-design-tokens-modal-DO_tHkgp.js → manage-design-tokens-modal-CeyAHYms.js} +3 -3
- package/dist/manage-design-tokens-modal-DfK58K9l.cjs +1 -0
- package/dist/{mark-as-template-Ca3QLzX4.js → mark-as-template-nv5vIVWv.js} +2 -2
- package/dist/{mark-as-template-BEnMYTql.cjs → mark-as-template-uImfeTi1.cjs} +1 -1
- package/dist/{nested-path-selector-content-5gECLoRV.js → nested-path-selector-content-Cj2AIFju.js} +1 -1
- package/dist/{nested-path-selector-content-BHPOfftZ.cjs → nested-path-selector-content-Cs2Cp1Un.cjs} +1 -1
- package/dist/{no-language-page-content-CKxggLC_.cjs → no-language-page-content-114byrhz.cjs} +1 -1
- package/dist/{no-language-page-content-Bb3nUSLv.js → no-language-page-content-CVJAp1cx.js} +2 -2
- package/dist/{no-language-page-dialog-BEVRCAhM.js → no-language-page-dialog-C-Z2M29h.js} +2 -2
- package/dist/{no-language-page-dialog-DMb5Z5on.cjs → no-language-page-dialog-D6hrWe2h.cjs} +1 -1
- package/dist/{page-creator-C_95U8kn.cjs → page-creator-B63HRVMX.cjs} +1 -1
- package/dist/{page-creator-DQRFXhNj.js → page-creator-IeE_i6RJ.js} +3 -3
- package/dist/{page-lock-Be5wPHz5.js → page-lock-BJfK1a6I.js} +2 -2
- package/dist/{page-lock-DKWt66MX.cjs → page-lock-DcLVTJ4e.cjs} +1 -1
- package/dist/{page-locked-dialog-CWyZol0i.cjs → page-locked-dialog-B8QTPfoj.cjs} +1 -1
- package/dist/{page-locked-dialog-CkXpQUpO.js → page-locked-dialog-CAvkXBs-.js} +2 -2
- package/dist/{page-manager-new-Bt7rBO1J.cjs → page-manager-new-BI3uuGwf.cjs} +1 -1
- package/dist/{page-manager-new-2gYNPR6y.js → page-manager-new-C2E984LB.js} +3 -3
- package/dist/{page-manager-search-and-filter-Dkwl089C.cjs → page-manager-search-and-filter-0t9RWoGm.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-BotSCoAo.js → page-manager-search-and-filter-BuSSPKwq.js} +2 -2
- package/dist/{page-revisions-content-OigWteYc.js → page-revisions-content-BSrj14T0.js} +3 -3
- package/dist/{page-revisions-content-bQ32feXp.cjs → page-revisions-content-BiT1BSAo.cjs} +1 -1
- package/dist/pages.cjs +1 -1
- package/dist/pages.js +1 -1
- package/dist/{default-theme-options-saBIkWGT.js → plugin-BSjgGgwo.js} +114 -114
- package/dist/plugin-DHpuZZXz.cjs +22 -0
- package/dist/{publish-pages-content-2RcG3Ptp.js → publish-pages-content-BUEFuvil.js} +3 -3
- package/dist/{publish-pages-content-Dtkal6ue.cjs → publish-pages-content-DAFb-XY6.cjs} +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.js +2 -2
- package/dist/{rte-widget-modal-DmQk0Lfj.js → rte-widget-modal-8w1YDrZD.js} +1 -1
- package/dist/{rte-widget-modal-CHxO3TQR.cjs → rte-widget-modal-BdtjFase.cjs} +1 -1
- package/dist/{save-to-lib-BSsuvkZS.cjs → save-to-lib-B2ZEdxLZ.cjs} +1 -1
- package/dist/{save-to-lib-CVqlFkRK.js → save-to-lib-HVxAu8t_.js} +2 -2
- package/dist/sdk.css +1 -1
- package/dist/{selected-block-display-Cr7R1ojV.cjs → selected-block-display-BGJg8dkI.cjs} +1 -1
- package/dist/{selected-block-display-DngI-pF1.js → selected-block-display-f1SUX9wt.js} +2 -2
- package/dist/{seo-panel-BMYdzcoJ.cjs → seo-panel-Dzbl3hXV.cjs} +1 -1
- package/dist/{seo-panel-CHkFLI5b.js → seo-panel-_wcxJSmD.js} +2 -2
- package/dist/{shared-json-ld-ClIZw1aA.cjs → shared-json-ld-944mryq6.cjs} +1 -1
- package/dist/{shared-json-ld-BzjOUN-P.js → shared-json-ld-ZVfaV2l4.js} +2 -2
- package/dist/{slug-input-DHVDl_Dv.cjs → slug-input-C5kPeTfq.cjs} +1 -1
- package/dist/{slug-input-07EKw9U5.js → slug-input-DHJ0Y1Bc.js} +1 -1
- package/dist/{take-over-request-BLdOZhUs.cjs → take-over-request-BXSF3cRs.cjs} +1 -1
- package/dist/{take-over-request-zqtItFSK.js → take-over-request-BliKViJ-.js} +2 -2
- package/dist/{translation-warning-modal-DnSd7lOJ.js → translation-warning-modal-C9RAIClA.js} +1 -1
- package/dist/{translation-warning-modal-BxV_8mCE.cjs → translation-warning-modal-FZ1kd1sU.cjs} +1 -1
- package/dist/{unmark-as-template-C4UkGyOP.cjs → unmark-as-template-BBRXrQ8Y.cjs} +1 -1
- package/dist/{unmark-as-template-DIKZYr01.js → unmark-as-template-CRtbXrQA.js} +2 -2
- package/dist/{unpublish-page-DFXLzJbc.cjs → unpublish-page-5v2HeTA4.cjs} +1 -1
- package/dist/{unpublish-page-CK0sAZcB.js → unpublish-page-CW3_INFu.js} +2 -2
- package/dist/{unpublished-partials-modal-BAr1SkEG.cjs → unpublished-partials-modal-BwIpPxDw.cjs} +1 -1
- package/dist/{unpublished-partials-modal-CDaOvXgp.js → unpublished-partials-modal-Bz7NecK3.js} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{web-preview-DA7_F3vv.cjs → web-preview-C94UEO-Z.cjs} +1 -1
- package/dist/{web-preview-CRSjh2he.js → web-preview-Dz81mOVR.js} +1 -1
- package/package.json +1 -1
- package/dist/default-theme-options-DN-3gIjM.cjs +0 -22
- package/dist/get-chai-builder-theme-C_qofMh_.cjs +0 -1
- package/dist/index-CQf0jL1k.cjs +0 -5
- package/dist/manage-design-tokens-modal-Bug5H8PT.cjs +0 -1
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Wr = Object.defineProperty;
|
|
2
|
+
var os = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var S = (e, t, n) => (
|
|
5
|
+
var zr = (e, t, n) => t in e ? Wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var Nn = (e, t, n) => zr(e, typeof t != "symbol" ? t + "" : t, n), ls = (e, t, n) => t.has(e) || os("Cannot " + n);
|
|
7
|
+
var S = (e, t, n) => (ls(e, t, "read from private field"), n ? n.call(e) : t.get(e)), G = (e, t, n) => t.has(e) ? os("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), v = (e, t, n, s) => (ls(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
|
|
8
8
|
import { jsxs as m, jsx as o, Fragment as Te } from "react/jsx-runtime";
|
|
9
|
-
import { B as
|
|
10
|
-
import { aI as
|
|
11
|
-
import { ZoomInIcon as
|
|
12
|
-
import { round as
|
|
13
|
-
import { useAtom as
|
|
14
|
-
import { MoreVertical as
|
|
15
|
-
import { useTranslation as
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import { useQuery as
|
|
19
|
-
import { h as
|
|
9
|
+
import { B as D, h as jr, v as qt, e as cs, j as Yr, m as Jr, q as Zr, x as Xr, D as ea, F as ta } from "./register-chai-top-bar-D6GjnauV.js";
|
|
10
|
+
import { aI as na, a0 as Rn, aJ as sa, aK as ra, aL as aa, aM as ia, aN as oa, r as un, s as dn, t as fn, v as Ae, ab as la, d as Ie, aO as ca, ax as Bs, aP as ua, Z as da, F as He, aQ as fa, aw as Ms, w as hn, aR as Fs, aS as ha, x as gn, aT as Hs, y as mn, ae as $t, D as jn, ag as ga, aU as ma, aV as us, af as Ea, ac as pa, ad as ya, aW as Aa, aC as Ta, aB as Sa, aD as _a, e as Ks, a1 as Pa, av as wa, a2 as ba, at as Ia, a3 as Na, a4 as va, au as La, a5 as Ca, a6 as Ga, aX as ka, X as Da, Y as Oa, f as xa, g as Ra, ay as Ua, az as Ba, aA as vn, aY as Ln, T as ds } from "./index-BaGVmuyu.js";
|
|
11
|
+
import { ZoomInIcon as Ma, LightningBoltIcon as Fa } from "@radix-ui/react-icons";
|
|
12
|
+
import { round as Ha, get as Q, noop as En, keyBy as Ka, map as Un, find as le, values as Yn, reverse as Va, sortBy as qa, minBy as Vs, first as qs, groupBy as $a, isEmpty as he, compact as Tt, filter as Jn, uniq as Qa, each as Wa, upperCase as fs, includes as za, has as Zn, startCase as ja, isFunction as Ya, isArray as Ja, pick as $s, cloneDeep as Za } from "lodash-es";
|
|
13
|
+
import { useAtom as ge, atom as Ne, useSetAtom as Xn, useAtomValue as Xa } from "jotai";
|
|
14
|
+
import { MoreVertical as Qs, CopyPlusIcon as ei, Pencil as Ws, Power as ti, Trash as ni, Loader as Ke, Hash as si, File as ri, MoreHorizontal as ai, Languages as hs, ChevronDown as Bn, Star as ii, Plus as zs, History as oi, Palette as li, Play as ci, CheckCircle as ui, Save as di, Send as gs, Rocket as ms, Eye as js, TriangleAlert as fi, ExternalLink as hi, Folder as Es, ChevronRight as gi, LanguagesIcon as mi, User as Ei, X as ps, Trash2 as pi, ImageIcon as ys, Code as yi, Share2 as Ai, FileCode2 as Ti, AlertTriangle as Si } from "lucide-react";
|
|
15
|
+
import { useTranslation as Ee } from "react-i18next";
|
|
16
|
+
import * as j from "react";
|
|
17
|
+
import _i, { useMemo as z, useState as k, useEffect as J, useCallback as F, useRef as oe, lazy as K, Suspense as Y, startTransition as As } from "react";
|
|
18
|
+
import { useQuery as ce, useMutation as te, useQueryClient as X, onlineManager as Ys, QueryClient as Pi, QueryClientProvider as wi } from "@tanstack/react-query";
|
|
19
|
+
import { h as bi } from "./plugin-BSjgGgwo.js";
|
|
20
20
|
import { toast as O } from "sonner";
|
|
21
21
|
import { c as tn } from "./common-functions-D2lMFR6K.js";
|
|
22
|
-
import { j as
|
|
23
|
-
import { loadWebBlocks as
|
|
24
|
-
import { ErrorBoundary as
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
import { j as Ii } from "./core-nSRy3D7z.js";
|
|
23
|
+
import { loadWebBlocks as Ni } from "./web-blocks.js";
|
|
24
|
+
import { ErrorBoundary as vi } from "react-error-boundary";
|
|
25
|
+
import { g as Li } from "./apply-binding-RQRSIe56.js";
|
|
26
|
+
const Ci = () => {
|
|
27
|
+
const [e] = na();
|
|
27
28
|
return /* @__PURE__ */ m("div", { className: "flex w-12 cursor-not-allowed items-center justify-center gap-x-1 space-x-0 font-medium text-gray-400", children: [
|
|
28
|
-
/* @__PURE__ */ o(
|
|
29
|
+
/* @__PURE__ */ o(Ma, { className: "h-3.5 w-3.5 flex-shrink-0" }),
|
|
29
30
|
" ",
|
|
30
31
|
/* @__PURE__ */ m("div", { className: "text-xs leading-3", children: [
|
|
31
|
-
|
|
32
|
+
Ha(e, 0),
|
|
32
33
|
"%"
|
|
33
34
|
] })
|
|
34
35
|
] });
|
|
35
|
-
},
|
|
36
|
-
const e = Rn("flags.darkMode", !1), t = Rn("flags.dataBinding", !0), [n, s] =
|
|
36
|
+
}, Gi = () => {
|
|
37
|
+
const e = Rn("flags.darkMode", !1), t = Rn("flags.dataBinding", !0), [n, s] = ge(sa), { t: r } = Ee();
|
|
37
38
|
return /* @__PURE__ */ m("div", { className: "flex h-10 items-center justify-between px-2", children: [
|
|
38
|
-
/* @__PURE__ */ o("div", { className: "flex h-full space-x-2", children: e ? /* @__PURE__ */ o(
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "flex h-full space-x-2", children: e ? /* @__PURE__ */ o(ra, {}) : null }),
|
|
39
40
|
/* @__PURE__ */ m("div", { className: "flex h-full items-center space-x-2", children: [
|
|
40
|
-
/* @__PURE__ */ o(
|
|
41
|
-
/* @__PURE__ */ o(
|
|
42
|
-
/* @__PURE__ */ o(
|
|
41
|
+
/* @__PURE__ */ o(aa, { canvas: !0, openDelay: 400, activeButtonClass: "bg-gray-200" }),
|
|
42
|
+
/* @__PURE__ */ o(Ci, {}),
|
|
43
|
+
/* @__PURE__ */ o(ia, {})
|
|
43
44
|
] }),
|
|
44
45
|
/* @__PURE__ */ m("div", { className: "flex h-full items-center", children: [
|
|
45
|
-
/* @__PURE__ */ o(
|
|
46
|
+
/* @__PURE__ */ o(oa, {}),
|
|
46
47
|
t ? /* @__PURE__ */ m(un, { children: [
|
|
47
|
-
/* @__PURE__ */ o(dn, { asChild: !0, children: /* @__PURE__ */ o(
|
|
48
|
+
/* @__PURE__ */ o(dn, { asChild: !0, children: /* @__PURE__ */ o(D, { size: "sm", variant: "ghost", className: "size-2 h-7 w-7 rounded-md p-1", children: /* @__PURE__ */ o(Qs, { className: "h-2 w-2" }) }) }),
|
|
48
49
|
/* @__PURE__ */ o(fn, { className: "w-56 border-border text-xs", children: /* @__PURE__ */ m(Ae, { className: "flex items-center gap-2", onSelect: (l) => l.preventDefault(), children: [
|
|
49
|
-
/* @__PURE__ */ o(
|
|
50
|
+
/* @__PURE__ */ o(Fa, { className: "h-4 w-4 text-gray-500" }),
|
|
50
51
|
/* @__PURE__ */ o("span", { className: "flex-1", children: r("Data Binding") }),
|
|
51
|
-
/* @__PURE__ */ o(
|
|
52
|
+
/* @__PURE__ */ o(la, { checked: n, onCheckedChange: () => s(!n) })
|
|
52
53
|
] }) })
|
|
53
54
|
] }) : null
|
|
54
55
|
] })
|
|
55
56
|
] });
|
|
56
|
-
}, nn =
|
|
57
|
+
}, nn = Ne(null), ki = Ne({}), pn = () => ge(ki), me = (e, t) => {
|
|
57
58
|
const [n] = pn();
|
|
58
|
-
return
|
|
59
|
-
},
|
|
60
|
-
function
|
|
61
|
-
const [e, t] =
|
|
59
|
+
return z(() => Q(n, e, t), [n, e, t]);
|
|
60
|
+
}, N = () => me("apiUrl", "/chai/api"), Js = () => me("realtimeAdapter", null);
|
|
61
|
+
function Ce() {
|
|
62
|
+
const [e, t] = k(
|
|
62
63
|
new URLSearchParams(window.location.search)
|
|
63
64
|
);
|
|
64
65
|
return J(() => {
|
|
@@ -127,7 +128,7 @@ const E = {
|
|
|
127
128
|
DELETE_GLOBAL_SCHEMA: "DELETE_GLOBAL_SCHEMA",
|
|
128
129
|
TOGGLE_PAGE_GLOBAL_SCHEMA: "TOGGLE_PAGE_GLOBAL_SCHEMA",
|
|
129
130
|
APPLY_SCHEMA_TO_ALL_PAGES: "APPLY_SCHEMA_TO_ALL_PAGES",
|
|
130
|
-
UI_LIBRARIES: "
|
|
131
|
+
UI_LIBRARIES: "UI_LIBRARIES",
|
|
131
132
|
REMOVE_SCHEMA_FROM_ALL_PAGES: "REMOVE_SCHEMA_FROM_ALL_PAGES",
|
|
132
133
|
// DAM Actions
|
|
133
134
|
UPLOAD_ASSET: "UPLOAD_ASSET",
|
|
@@ -135,15 +136,15 @@ const E = {
|
|
|
135
136
|
UPDATE_ASSET: "UPDATE_ASSET",
|
|
136
137
|
GET_ASSETS: "GET_ASSETS",
|
|
137
138
|
GET_ASSET: "GET_ASSET"
|
|
138
|
-
},
|
|
139
|
+
}, Zs = async (e, t, n = {}) => await fetch(e, {
|
|
139
140
|
method: "POST",
|
|
140
141
|
headers: {
|
|
141
142
|
"Content-Type": "application/json",
|
|
142
143
|
...n
|
|
143
144
|
},
|
|
144
145
|
body: JSON.stringify(t)
|
|
145
|
-
}),
|
|
146
|
-
const e =
|
|
146
|
+
}), Hu = () => {
|
|
147
|
+
const e = C(), t = N();
|
|
147
148
|
return F(
|
|
148
149
|
async ({
|
|
149
150
|
body: n,
|
|
@@ -153,13 +154,13 @@ const E = {
|
|
|
153
154
|
}) => e(r, n, s, a),
|
|
154
155
|
[e]
|
|
155
156
|
);
|
|
156
|
-
},
|
|
157
|
-
const e =
|
|
157
|
+
}, C = () => {
|
|
158
|
+
const e = me("onLogout", En), t = me("getAccessToken"), n = N();
|
|
158
159
|
return F(
|
|
159
160
|
async (s = n, r, a = {}, i = !1) => {
|
|
160
161
|
const l = await t();
|
|
161
162
|
try {
|
|
162
|
-
const c =
|
|
163
|
+
const c = Q(r, "action", "").toLowerCase(), d = await Zs(s + (c ? `?action=${c}` : ""), r, {
|
|
163
164
|
...a,
|
|
164
165
|
Authorization: `Bearer ${l}`
|
|
165
166
|
});
|
|
@@ -183,19 +184,19 @@ const E = {
|
|
|
183
184
|
},
|
|
184
185
|
[e, t]
|
|
185
186
|
);
|
|
186
|
-
},
|
|
187
|
-
const [e] =
|
|
187
|
+
}, Di = Ne(null), Xs = () => ge(Di), es = () => {
|
|
188
|
+
const [e] = Xs();
|
|
188
189
|
return (e == null ? void 0 : e.slug) || "";
|
|
189
190
|
};
|
|
190
|
-
function
|
|
191
|
-
const [n, s] =
|
|
191
|
+
function Oi(e, t) {
|
|
192
|
+
const [n, s] = k(e);
|
|
192
193
|
return J(() => {
|
|
193
194
|
const r = setTimeout(() => s(e), t);
|
|
194
195
|
return () => clearTimeout(r);
|
|
195
196
|
}, [e, t]), n;
|
|
196
197
|
}
|
|
197
|
-
const
|
|
198
|
-
const { selectedLang: n, fallbackLang: s } =
|
|
198
|
+
const xi = ({ query: e, uuid: t }) => {
|
|
199
|
+
const { selectedLang: n, fallbackLang: s } = Ie(), { data: r } = ue(), a = r == null ? void 0 : r.pageType, i = N(), l = C(), { data: c, isFetching: d } = ce({
|
|
199
200
|
queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
|
|
200
201
|
staleTime: 3600 * 1e3,
|
|
201
202
|
placeholderData: [],
|
|
@@ -204,10 +205,10 @@ const Gi = ({ query: e, uuid: t }) => {
|
|
|
204
205
|
data: { query: e, pageType: a, uuid: t }
|
|
205
206
|
}) || [],
|
|
206
207
|
enabled: !!a
|
|
207
|
-
}), f =
|
|
208
|
+
}), f = z(() => n === "" ? c.filter((u) => u.lang === "" || u.lang === s) : c.filter((u) => u.lang === n), [n, s, c]);
|
|
208
209
|
return { allLangPages: c, data: f, isFetching: d };
|
|
209
|
-
},
|
|
210
|
-
const { selectedLang: e, fallbackLang: t } =
|
|
210
|
+
}, Ri = () => {
|
|
211
|
+
const { selectedLang: e, fallbackLang: t } = Ie(), [n, s] = Xs(), [r, a] = k(""), i = Oi(r, 500), { allLangPages: l, data: c, isFetching: d } = xi({ query: i }), f = F((h) => s(h), [s]), u = F((h) => a(h), [a]), g = F(() => {
|
|
211
212
|
if (!n) return;
|
|
212
213
|
const h = !(n != null && n.primaryPage), p = e.length === 0, _ = h ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, y = l.filter(
|
|
213
214
|
(A) => (A == null ? void 0 : A.primaryPage) === _ || A.id === _
|
|
@@ -226,13 +227,13 @@ const Gi = ({ query: e, uuid: t }) => {
|
|
|
226
227
|
onChangeLanguage: g
|
|
227
228
|
};
|
|
228
229
|
}, Ve = () => {
|
|
229
|
-
const e =
|
|
230
|
-
return
|
|
230
|
+
const e = N(), t = C();
|
|
231
|
+
return ce({
|
|
231
232
|
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
|
|
232
233
|
staleTime: 300 * 1e3,
|
|
233
234
|
placeholderData: {
|
|
234
235
|
languages: [],
|
|
235
|
-
theme:
|
|
236
|
+
theme: bi,
|
|
236
237
|
appKey: "",
|
|
237
238
|
fallbackLang: "",
|
|
238
239
|
settings: {},
|
|
@@ -245,48 +246,48 @@ const Gi = ({ query: e, uuid: t }) => {
|
|
|
245
246
|
});
|
|
246
247
|
}, ts = () => {
|
|
247
248
|
const { data: e } = Ve();
|
|
248
|
-
return
|
|
249
|
+
return z(() => (e == null ? void 0 : e.fallbackLang) || "en", [e]);
|
|
249
250
|
}, ht = () => {
|
|
250
|
-
const e =
|
|
251
|
-
return
|
|
251
|
+
const e = C(), t = N();
|
|
252
|
+
return ce({
|
|
252
253
|
queryKey: [E.GET_WEBSITE_PAGES],
|
|
253
254
|
staleTime: 1e3 * 60 * 5,
|
|
254
255
|
queryFn: async () => e(t, { action: E.GET_WEBSITE_PAGES }) || [],
|
|
255
256
|
placeholderData: (n) => n || []
|
|
256
257
|
});
|
|
257
|
-
},
|
|
258
|
-
const t =
|
|
259
|
-
return
|
|
258
|
+
}, Ui = (e) => {
|
|
259
|
+
const t = C(), n = N(), s = ts();
|
|
260
|
+
return ce({
|
|
260
261
|
queryKey: [E.GET_WEBSITE_PAGES, e, s],
|
|
261
262
|
staleTime: 1e3 * 60 * 5,
|
|
262
263
|
enabled: !!e,
|
|
263
264
|
queryFn: async () => {
|
|
264
265
|
if (s === e) return {};
|
|
265
266
|
const r = await t(n, { action: E.GET_WEBSITE_PAGES, data: { lang: e } }) || [];
|
|
266
|
-
return
|
|
267
|
+
return Ka(
|
|
267
268
|
Un(r, (a) => ({ ...a, lang: e })),
|
|
268
269
|
"primaryPage"
|
|
269
270
|
);
|
|
270
271
|
},
|
|
271
272
|
placeholderData: (r) => r || {}
|
|
272
273
|
});
|
|
273
|
-
},
|
|
274
|
-
const [e] =
|
|
275
|
-
return { data:
|
|
274
|
+
}, Bi = Ne({ lastSaved: void 0 }), Mi = () => ge(Bi), ue = () => {
|
|
275
|
+
const [e] = Ce(), t = e.get("page"), { data: n, isFetching: s } = ht();
|
|
276
|
+
return { data: z(() => ({ ...le(n, { id: t }) || {} }), [n, t]), isFetching: s };
|
|
276
277
|
}, Ge = () => {
|
|
277
|
-
const [e] =
|
|
278
|
-
return { data:
|
|
278
|
+
const [e] = Ce(), t = e.get("lang") ?? "", n = e.get("page"), { data: s, isFetching: r } = Ui(t), { data: a } = ht();
|
|
279
|
+
return { data: z(
|
|
279
280
|
() => le([...Yn(s), ...a], t == "" ? { id: n } : { lang: t, primaryPage: n }) || {},
|
|
280
281
|
[s, a, t, n]
|
|
281
282
|
), isFetching: r };
|
|
282
283
|
};
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
const { data: e } = Ge(), t = es(), n =
|
|
284
|
+
Ne({});
|
|
285
|
+
const Fi = () => {
|
|
286
|
+
const { data: e } = Ge(), t = es(), n = me("getLiveUrl", En), s = e == null ? void 0 : e.slug, r = n(s || "/");
|
|
286
287
|
return t ? r + t : r;
|
|
287
288
|
}, yn = (e) => {
|
|
288
|
-
const t =
|
|
289
|
-
return
|
|
289
|
+
const t = N(), [n] = Ce(), s = e ?? n.get("page"), r = C(), { languages: a } = Ie();
|
|
290
|
+
return ce({
|
|
290
291
|
queryKey: [E.GET_LANGUAGE_PAGES, s],
|
|
291
292
|
staleTime: 1 / 0,
|
|
292
293
|
gcTime: 0,
|
|
@@ -297,12 +298,12 @@ const Ri = () => {
|
|
|
297
298
|
action: E.GET_LANGUAGE_PAGES,
|
|
298
299
|
data: { id: s }
|
|
299
300
|
});
|
|
300
|
-
return
|
|
301
|
+
return Va(qa(i, "primaryPage"));
|
|
301
302
|
},
|
|
302
303
|
enabled: !!s && !!(a != null && a.length)
|
|
303
304
|
});
|
|
304
305
|
}, we = {
|
|
305
|
-
...
|
|
306
|
+
...ca,
|
|
306
307
|
//pages
|
|
307
308
|
ADD_PAGE: "add_page",
|
|
308
309
|
EDIT_PAGE: "edit_page",
|
|
@@ -317,18 +318,18 @@ const Ri = () => {
|
|
|
317
318
|
DELETE_REVISION: "delete_revision",
|
|
318
319
|
DELETE_LIBRARY_BLOCK: "delete_library_block"
|
|
319
320
|
}, qe = () => {
|
|
320
|
-
const e =
|
|
321
|
-
return
|
|
321
|
+
const e = N(), t = C();
|
|
322
|
+
return ce({
|
|
322
323
|
queryKey: [E.GET_PAGE_TYPES],
|
|
323
324
|
staleTime: 1 / 0,
|
|
324
325
|
placeholderData: [],
|
|
325
326
|
queryFn: async () => t(e, { action: E.GET_PAGE_TYPES })
|
|
326
327
|
});
|
|
327
|
-
},
|
|
328
|
+
}, Hi = (e) => {
|
|
328
329
|
const { data: t } = qe();
|
|
329
|
-
return
|
|
330
|
-
},
|
|
331
|
-
const e =
|
|
330
|
+
return z(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
|
|
331
|
+
}, Ki = () => {
|
|
332
|
+
const e = N(), t = C();
|
|
332
333
|
return te({
|
|
333
334
|
mutationFn: async ({ pageType: n, query: s }) => {
|
|
334
335
|
try {
|
|
@@ -344,7 +345,7 @@ const Ri = () => {
|
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
});
|
|
347
|
-
},
|
|
348
|
+
}, Vi = ({
|
|
348
349
|
page: e,
|
|
349
350
|
setDuplicatePage: t,
|
|
350
351
|
setAddEditPage: n,
|
|
@@ -353,7 +354,7 @@ const Ri = () => {
|
|
|
353
354
|
children: a,
|
|
354
355
|
isLanguagePage: i
|
|
355
356
|
}) => {
|
|
356
|
-
const { t: l } =
|
|
357
|
+
const { t: l } = Ee(), { hasPermission: c } = Bs(), { data: d } = qe(), f = z(() => le(d, { key: e.pageType }), [d, e.pageType]);
|
|
357
358
|
return !c(we.EDIT_PAGE) && !c(we.DELETE_PAGE) && !c(we.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(un, { children: [
|
|
358
359
|
/* @__PURE__ */ o(dn, { asChild: !0, onClick: (g) => g.stopPropagation(), children: a }),
|
|
359
360
|
/* @__PURE__ */ m(fn, { align: "center", className: "text-sm", children: [
|
|
@@ -365,7 +366,7 @@ const Ri = () => {
|
|
|
365
366
|
g.stopPropagation(), t(e);
|
|
366
367
|
},
|
|
367
368
|
children: [
|
|
368
|
-
/* @__PURE__ */ o(
|
|
369
|
+
/* @__PURE__ */ o(ei, { className: "size-3" }),
|
|
369
370
|
"Duplicate page"
|
|
370
371
|
]
|
|
371
372
|
}
|
|
@@ -381,7 +382,7 @@ const Ri = () => {
|
|
|
381
382
|
});
|
|
382
383
|
},
|
|
383
384
|
children: [
|
|
384
|
-
/* @__PURE__ */ o(
|
|
385
|
+
/* @__PURE__ */ o(Ws, { className: "size-3" }),
|
|
385
386
|
"Edit"
|
|
386
387
|
]
|
|
387
388
|
}
|
|
@@ -394,7 +395,7 @@ const Ri = () => {
|
|
|
394
395
|
g.stopPropagation(), s(e);
|
|
395
396
|
},
|
|
396
397
|
children: [
|
|
397
|
-
/* @__PURE__ */ o(
|
|
398
|
+
/* @__PURE__ */ o(ti, { className: "size-3" }),
|
|
398
399
|
l("Unpublish")
|
|
399
400
|
]
|
|
400
401
|
}
|
|
@@ -407,39 +408,39 @@ const Ri = () => {
|
|
|
407
408
|
g.stopPropagation(), r(e);
|
|
408
409
|
},
|
|
409
410
|
children: [
|
|
410
|
-
/* @__PURE__ */ o(
|
|
411
|
+
/* @__PURE__ */ o(ni, { className: "size-3" }),
|
|
411
412
|
l("Delete")
|
|
412
413
|
]
|
|
413
414
|
}
|
|
414
415
|
)
|
|
415
416
|
] })
|
|
416
417
|
] });
|
|
417
|
-
},
|
|
418
|
+
}, qi = (e, t, n) => ((e.includes("THEME") || (t == null ? void 0 : t.theme) !== void 0) && (e.push("THEME"), n && (t != null && t.theme) && n(t.theme)), e), $i = (e, t, n) => ((e.includes("DESIGN_TOKENS") || (t == null ? void 0 : t.designTokens) !== void 0) && (e.push("DESIGN_TOKENS"), n && t.designTokens && n(t.designTokens)), e), Qi = (e, t, n, s) => {
|
|
418
419
|
let r = (e == null ? void 0 : e.appChanges) || [];
|
|
419
|
-
return r =
|
|
420
|
+
return r = qi(r, t, n), r = $i(r, t, s), e ? {
|
|
420
421
|
...e,
|
|
421
422
|
...t,
|
|
422
423
|
appChanges: r
|
|
423
424
|
} : t;
|
|
424
|
-
},
|
|
425
|
+
}, Wi = ({ queryClient: e, queryKey: t, data: n, setTheme: s, setDesignTokens: r }) => {
|
|
425
426
|
e.setQueryData(
|
|
426
427
|
t,
|
|
427
|
-
(a) =>
|
|
428
|
+
(a) => Qi(a, n, s, r)
|
|
428
429
|
);
|
|
429
|
-
},
|
|
430
|
+
}, zi = (e, t, n, s, r) => e.id === t ? {
|
|
430
431
|
...e,
|
|
431
432
|
designTokens: n,
|
|
432
433
|
links: s,
|
|
433
434
|
partialBlocks: r,
|
|
434
435
|
changes: [{ type: "Page" }]
|
|
435
|
-
} : e,
|
|
436
|
+
} : e, ji = ({ queryClient: e, pageId: t, designTokens: n, linkPageIds: s, partialIds: r }) => {
|
|
436
437
|
e.setQueryData([E.GET_WEBSITE_PAGES], (a) => {
|
|
437
438
|
if (!a || !Array.isArray(a)) return a;
|
|
438
439
|
const i = s.join(" | "), l = r.join(" | ");
|
|
439
|
-
return a.map((c) =>
|
|
440
|
+
return a.map((c) => zi(c, t, n, i, l));
|
|
440
441
|
});
|
|
441
|
-
},
|
|
442
|
-
t.settings && (
|
|
442
|
+
}, Yi = (e, t, n, s, r, a, i) => {
|
|
443
|
+
t.settings && (Wi({
|
|
443
444
|
queryClient: e,
|
|
444
445
|
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
|
|
445
446
|
data: t.settings,
|
|
@@ -452,58 +453,58 @@ const Ri = () => {
|
|
|
452
453
|
description: r("{{userName}} updated the design tokens", { userName: s }),
|
|
453
454
|
position: "bottom-left"
|
|
454
455
|
})));
|
|
455
|
-
},
|
|
456
|
-
t.pageId && t.designTokens && t.linkPageIds && t.partialIds &&
|
|
456
|
+
}, Ji = (e, t) => {
|
|
457
|
+
t.pageId && t.designTokens && t.linkPageIds && t.partialIds && ji({
|
|
457
458
|
queryClient: e,
|
|
458
459
|
pageId: t.pageId,
|
|
459
460
|
designTokens: t.designTokens,
|
|
460
461
|
linkPageIds: t.linkPageIds,
|
|
461
462
|
partialIds: t.partialIds
|
|
462
463
|
});
|
|
463
|
-
},
|
|
464
|
+
}, Ts = (e, t) => t.includes(e.id) ? {
|
|
464
465
|
...e,
|
|
465
466
|
changes: [],
|
|
466
467
|
online: !0
|
|
467
|
-
} : e,
|
|
468
|
+
} : e, Zi = (e, t) => {
|
|
468
469
|
if (!e) return e;
|
|
469
470
|
const s = (e.appChanges || []).filter((r) => !t.includes(r));
|
|
470
471
|
return {
|
|
471
472
|
...e,
|
|
472
473
|
appChanges: s
|
|
473
474
|
};
|
|
474
|
-
},
|
|
475
|
-
e.setQueryData([E.GET_WEBSITE_PAGES], (n) => !n || !Array.isArray(n) ? n : n.map((s) =>
|
|
475
|
+
}, Xi = ({ queryClient: e, ids: t }) => {
|
|
476
|
+
e.setQueryData([E.GET_WEBSITE_PAGES], (n) => !n || !Array.isArray(n) ? n : n.map((s) => Ts(s, t))), e.setQueryData([E.GET_LANGUAGE_PAGES], (n) => !n || !Array.isArray(n) ? n : n.map((s) => Ts(s, t))), (t.includes("THEME") || t.includes("DESIGN_TOKENS")) && e.setQueryData(
|
|
476
477
|
[E.GET_WEBSITE_DRAFT_SETTINGS],
|
|
477
|
-
(n) =>
|
|
478
|
+
(n) => Zi(n, t)
|
|
478
479
|
);
|
|
479
|
-
},
|
|
480
|
+
}, Ss = (e, t) => e.id === t ? {
|
|
480
481
|
...e,
|
|
481
482
|
online: !1
|
|
482
|
-
} : e,
|
|
483
|
-
n ? e.setQueryData([E.GET_LANGUAGE_PAGES, n], (s) => !s || !Array.isArray(s) ? s : s.map((r) =>
|
|
484
|
-
},
|
|
483
|
+
} : e, eo = ({ queryClient: e, pageId: t, primaryPage: n }) => {
|
|
484
|
+
n ? e.setQueryData([E.GET_LANGUAGE_PAGES, n], (s) => !s || !Array.isArray(s) ? s : s.map((r) => Ss(r, t))) : e.setQueryData([E.GET_WEBSITE_PAGES], (s) => !s || !Array.isArray(s) ? s : s.map((r) => Ss(r, t)));
|
|
485
|
+
}, to = (e, t, n, s) => {
|
|
485
486
|
e && t(n, { data: s });
|
|
486
|
-
},
|
|
487
|
+
}, no = (e, t, n, s, r) => {
|
|
487
488
|
const { type: a, data: i, sync: l = !1, userName: c } = e;
|
|
488
489
|
switch (a) {
|
|
489
490
|
case "UPDATE_WEBSITE_DATA":
|
|
490
|
-
|
|
491
|
+
Yi(t, i, l, c, r, n, s);
|
|
491
492
|
break;
|
|
492
493
|
case "UPDATE_PAGE_DATA":
|
|
493
|
-
|
|
494
|
+
Ji(t, i);
|
|
494
495
|
break;
|
|
495
496
|
case "PUBLISH_CHANGES":
|
|
496
|
-
i.ids &&
|
|
497
|
+
i.ids && Xi({ queryClient: t, ids: i.ids });
|
|
497
498
|
break;
|
|
498
499
|
case "UNPUBLISH_PAGE":
|
|
499
|
-
i.pageId &&
|
|
500
|
+
i.pageId && eo({ queryClient: t, pageId: i.pageId, primaryPage: i.primaryPage });
|
|
500
501
|
break;
|
|
501
502
|
default:
|
|
502
503
|
console.log(r("Unknown sync type"), a);
|
|
503
504
|
}
|
|
504
505
|
return l;
|
|
505
506
|
}, Ft = () => {
|
|
506
|
-
const e = X(), t =
|
|
507
|
+
const e = X(), t = sr(), [n, s] = ge(ua), [, r] = ge(da), { t: a } = Ee(), i = F(
|
|
507
508
|
(c) => {
|
|
508
509
|
r(c);
|
|
509
510
|
},
|
|
@@ -512,14 +513,14 @@ const Ri = () => {
|
|
|
512
513
|
return {
|
|
513
514
|
handleQuerySync: F(
|
|
514
515
|
(c) => {
|
|
515
|
-
const d =
|
|
516
|
-
|
|
516
|
+
const d = no(c, e, s, i, a);
|
|
517
|
+
to(d, t, c.type, c.data);
|
|
517
518
|
},
|
|
518
519
|
[e, t, s, i, a]
|
|
519
520
|
)
|
|
520
521
|
};
|
|
521
522
|
}, ns = () => {
|
|
522
|
-
const e =
|
|
523
|
+
const e = me("currentUser"), t = me("onLogout");
|
|
523
524
|
return {
|
|
524
525
|
isLoggedIn: !!e,
|
|
525
526
|
user: e,
|
|
@@ -533,7 +534,7 @@ const Ri = () => {
|
|
|
533
534
|
ACTIVE_IN_ANOTHER_TAB: "ACTIVE_IN_ANOTHER_TAB",
|
|
534
535
|
FORCE_TAKE_OVER: "FORCE_TAKE_OVER",
|
|
535
536
|
CONNECTION_LOST: "CONNECTION_LOST"
|
|
536
|
-
},
|
|
537
|
+
}, W = {
|
|
537
538
|
FORCE_TAKE_OVER: "FORCE_TAKE_OVER",
|
|
538
539
|
TAKE_OVER_REQUEST: "TAKE_OVER_REQUEST",
|
|
539
540
|
TAKE_OVER_APPROVED: "TAKE_OVER_APPROVED",
|
|
@@ -545,66 +546,66 @@ const Ri = () => {
|
|
|
545
546
|
UPDATE_PAGE_DATA: "UPDATE_PAGE_DATA",
|
|
546
547
|
PUBLISH_CHANGES: "PUBLISH_CHANGES",
|
|
547
548
|
UNPUBLISH_PAGE: "UNPUBLISH_PAGE"
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
],
|
|
561
|
-
const t = {}, n =
|
|
549
|
+
}, so = ["sync", "join", "leave"], ro = [
|
|
550
|
+
W.FORCE_TAKE_OVER,
|
|
551
|
+
W.TAKE_OVER_REQUEST,
|
|
552
|
+
W.TAKE_OVER_APPROVED,
|
|
553
|
+
W.TAKE_OVER_REJECTED,
|
|
554
|
+
W.FORCE_TAKE_OVER_REQUEST,
|
|
555
|
+
W.CONTINUE_EDITING_IN_THIS_CLIENT,
|
|
556
|
+
W.CONTINUE_EDITING_IN_THIS_TAB_REQUEST,
|
|
557
|
+
W.UPDATE_WEBSITE_DATA,
|
|
558
|
+
W.UPDATE_PAGE_DATA,
|
|
559
|
+
W.PUBLISH_CHANGES,
|
|
560
|
+
W.UNPUBLISH_PAGE
|
|
561
|
+
], ao = Ne({}), er = Ne(null), io = Ne(ae.CHECKING), oo = Ne({}), lo = (e) => {
|
|
562
|
+
const t = {}, n = $a(Yn(e).map(qs).filter(Boolean), "pageId");
|
|
562
563
|
return Object.entries(n).forEach(
|
|
563
|
-
([s, r]) => t[s] =
|
|
564
|
+
([s, r]) => t[s] = Vs(r, "onlineAt")
|
|
564
565
|
), t;
|
|
565
|
-
},
|
|
566
|
-
const t =
|
|
566
|
+
}, co = (e) => {
|
|
567
|
+
const t = Vs(Yn(e).map(qs).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
|
|
567
568
|
return n ? n - 100 : +/* @__PURE__ */ new Date() - 1e3 * 60 * 60 * 4;
|
|
568
569
|
}, An = () => {
|
|
569
570
|
const { user: e } = ns();
|
|
570
571
|
return e == null ? void 0 : e.id;
|
|
571
|
-
},
|
|
572
|
+
}, uo = () => {
|
|
572
573
|
const { data: e } = Ve();
|
|
573
574
|
return `WEBSITE:${e == null ? void 0 : e.appKey}`;
|
|
574
575
|
}, Ht = () => {
|
|
575
|
-
const { data: e } =
|
|
576
|
+
const { data: e } = ue();
|
|
576
577
|
return e == null ? void 0 : e.id;
|
|
577
578
|
}, Oe = crypto.randomUUID();
|
|
578
|
-
let
|
|
579
|
-
const Et = 10,
|
|
580
|
-
const [e, t] =
|
|
579
|
+
let Cn = null;
|
|
580
|
+
const Et = 10, fo = 1e3, ho = 2, go = 16e3, tr = () => {
|
|
581
|
+
const [e, t] = ge(ao);
|
|
581
582
|
return { pageToUser: e, setPageToUser: t };
|
|
582
583
|
}, ve = () => {
|
|
583
|
-
const [e, t] =
|
|
584
|
+
const [e, t] = ge(io), n = [ae.LOCKED, ae.ACTIVE_IN_ANOTHER_TAB].includes(e), s = [ae.EDITING].includes(e);
|
|
584
585
|
return { pageStatus: e, setPageStatus: t, isLocked: n, isEditing: s };
|
|
585
|
-
},
|
|
586
|
-
const [e, t] =
|
|
586
|
+
}, nr = () => {
|
|
587
|
+
const [e, t] = ge(oo);
|
|
587
588
|
return { pageLockMeta: e, setPageLockMeta: t };
|
|
588
|
-
},
|
|
589
|
-
const e = Ht(), { pageToUser: t } =
|
|
590
|
-
return
|
|
589
|
+
}, mo = () => {
|
|
590
|
+
const e = Ht(), { pageToUser: t } = tr();
|
|
591
|
+
return z(() => t[e], [t, e]);
|
|
591
592
|
}, ss = () => {
|
|
592
|
-
const e =
|
|
593
|
+
const e = Js(), { setPageStatus: t } = ve(), [n] = ge(er);
|
|
593
594
|
return J(() => {
|
|
594
|
-
if (clearTimeout(
|
|
595
|
-
return
|
|
595
|
+
if (clearTimeout(Cn), !e)
|
|
596
|
+
return Cn = setTimeout(() => {
|
|
596
597
|
e || t(ae.EDITING);
|
|
597
|
-
}, 500), () => clearTimeout(
|
|
598
|
+
}, 500), () => clearTimeout(Cn);
|
|
598
599
|
}, [e, t]), n;
|
|
599
|
-
},
|
|
600
|
-
const e = Ht(), t = An(), n = ss(), { setPageToUser: s } =
|
|
600
|
+
}, Eo = () => {
|
|
601
|
+
const e = Ht(), t = An(), n = ss(), { setPageToUser: s } = tr(), { setPageStatus: r, pageStatus: a } = ve(), i = oe(e);
|
|
601
602
|
return J(() => {
|
|
602
603
|
i.current = e;
|
|
603
604
|
}, [e]), F(
|
|
604
605
|
(l) => {
|
|
605
606
|
const c = l || n;
|
|
606
607
|
if (!c) return [];
|
|
607
|
-
const d = c == null ? void 0 : c.presenceState(), f =
|
|
608
|
+
const d = c == null ? void 0 : c.presenceState(), f = lo(d);
|
|
608
609
|
s(f);
|
|
609
610
|
const u = f[i.current];
|
|
610
611
|
if (!u)
|
|
@@ -619,8 +620,8 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
619
620
|
},
|
|
620
621
|
[n, s, r, t, a]
|
|
621
622
|
);
|
|
622
|
-
},
|
|
623
|
-
const e = An(), t = Ht(), n = ss(), s =
|
|
623
|
+
}, sr = () => {
|
|
624
|
+
const e = An(), t = Ht(), n = ss(), s = mo(), { setPageLockMeta: r } = nr(), { user: a } = ns(), i = oe(t);
|
|
624
625
|
return J(() => {
|
|
625
626
|
i.current = t;
|
|
626
627
|
}, [t]), F(
|
|
@@ -631,14 +632,14 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
631
632
|
},
|
|
632
633
|
[n, e, s, r, a]
|
|
633
634
|
);
|
|
634
|
-
},
|
|
635
|
-
const e = An(), t = Ht(), n = ss(), { setPageStatus: s } = ve(), { setPageLockMeta: r } =
|
|
635
|
+
}, po = () => {
|
|
636
|
+
const e = An(), t = Ht(), n = ss(), { setPageStatus: s } = ve(), { setPageLockMeta: r } = nr(), a = sr(), i = oe(t), { savePageAsync: l } = He(), { handleQuerySync: c } = Ft();
|
|
636
637
|
return J(() => {
|
|
637
638
|
i.current = t;
|
|
638
639
|
}, [t]), F(
|
|
639
640
|
(d) => async ({ payload: f }) => {
|
|
640
641
|
const u = f || {};
|
|
641
|
-
if (d ===
|
|
642
|
+
if (d === W.UPDATE_WEBSITE_DATA || d === W.UPDATE_PAGE_DATA || d === W.PUBLISH_CHANGES || d === W.UNPUBLISH_PAGE) {
|
|
642
643
|
c({
|
|
643
644
|
type: d,
|
|
644
645
|
data: u == null ? void 0 : u.data,
|
|
@@ -649,50 +650,50 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
649
650
|
}
|
|
650
651
|
if (!(!(u != null && u.pageId) || (u == null ? void 0 : u.pageId) !== i.current || (u == null ? void 0 : u.receiverClientId) !== Oe))
|
|
651
652
|
switch (r({}), d) {
|
|
652
|
-
case
|
|
653
|
-
case
|
|
653
|
+
case W.FORCE_TAKE_OVER_REQUEST:
|
|
654
|
+
case W.CONTINUE_EDITING_IN_THIS_TAB_REQUEST: {
|
|
654
655
|
try {
|
|
655
656
|
await l(!0);
|
|
656
657
|
} catch (g) {
|
|
657
658
|
console.error("Failed to save page before releasing lock:", g);
|
|
658
659
|
}
|
|
659
|
-
await a(
|
|
660
|
+
await a(W.CONTINUE_EDITING_IN_THIS_CLIENT, { requestingClientId: u == null ? void 0 : u.senderClientId }), setTimeout(() => r({ type: d }), 0);
|
|
660
661
|
break;
|
|
661
662
|
}
|
|
662
|
-
case
|
|
663
|
+
case W.TAKE_OVER_REQUEST: {
|
|
663
664
|
r({ requestingUserId: u == null ? void 0 : u.userId, requestingClientId: u == null ? void 0 : u.senderClientId }), s(ae.TAKE_OVER_REQUESTED);
|
|
664
665
|
break;
|
|
665
666
|
}
|
|
666
|
-
case
|
|
667
|
-
const g =
|
|
667
|
+
case W.CONTINUE_EDITING_IN_THIS_CLIENT: {
|
|
668
|
+
const g = co(n == null ? void 0 : n.presenceState());
|
|
668
669
|
s(ae.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: g, pageId: i.current, userId: e, clientId: Oe }));
|
|
669
670
|
break;
|
|
670
671
|
}
|
|
671
|
-
case
|
|
672
|
-
r({ type:
|
|
672
|
+
case W.TAKE_OVER_REJECTED: {
|
|
673
|
+
r({ type: W.TAKE_OVER_REJECTED });
|
|
673
674
|
break;
|
|
674
675
|
}
|
|
675
676
|
}
|
|
676
677
|
},
|
|
677
678
|
[a, r, s, n, e, l, c]
|
|
678
679
|
);
|
|
679
|
-
},
|
|
680
|
-
const e =
|
|
680
|
+
}, Ku = () => {
|
|
681
|
+
const e = Js(), t = An(), n = Ht(), s = uo(), [r, a] = ge(er), i = po(), l = Eo(), c = oe(i), d = oe(l), f = oe(null), u = oe(!1), g = oe(0), h = oe(r), p = oe(() => {
|
|
681
682
|
});
|
|
682
683
|
J(() => {
|
|
683
684
|
c.current = i, d.current = l, h.current = r;
|
|
684
685
|
}, [i, l, r]);
|
|
685
686
|
const _ = F((y) => {
|
|
686
|
-
|
|
687
|
+
ro.forEach((A) => {
|
|
687
688
|
y.onBroadcast(A, (b) => {
|
|
688
689
|
c.current(A)(b);
|
|
689
690
|
});
|
|
690
|
-
}),
|
|
691
|
+
}), so.forEach((A) => {
|
|
691
692
|
y.onPresence(A, () => {
|
|
692
693
|
d.current(y);
|
|
693
694
|
});
|
|
694
695
|
});
|
|
695
|
-
}, []),
|
|
696
|
+
}, []), I = F(() => {
|
|
696
697
|
if (u.current || !e || !t || !s) return;
|
|
697
698
|
if (g.current >= Et) {
|
|
698
699
|
console.error(
|
|
@@ -704,8 +705,8 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
704
705
|
`Attempting to reconnect realtime channel (attempt ${g.current}/${Et})`
|
|
705
706
|
), f.current && (clearTimeout(f.current), f.current = null), h.current && (h.current.unsubscribe(), a(null), h.current = null);
|
|
706
707
|
const y = Math.min(
|
|
707
|
-
|
|
708
|
-
|
|
708
|
+
fo * Math.pow(ho, g.current - 1),
|
|
709
|
+
go
|
|
709
710
|
);
|
|
710
711
|
f.current = setTimeout(() => {
|
|
711
712
|
const A = e.channel(s, {
|
|
@@ -721,19 +722,19 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
721
722
|
}, y);
|
|
722
723
|
}, [e, t, s, a, _]);
|
|
723
724
|
J(() => {
|
|
724
|
-
p.current =
|
|
725
|
-
}, [
|
|
725
|
+
p.current = I;
|
|
726
|
+
}, [I]), J(() => {
|
|
726
727
|
if (!e || !t || !s || r && r.topic === s) return;
|
|
727
728
|
g.current = 0, u.current = !1;
|
|
728
729
|
const y = e.channel(s, {
|
|
729
730
|
config: { presence: { key: Oe } }
|
|
730
731
|
});
|
|
731
732
|
return _(y), y.subscribe(async (A) => {
|
|
732
|
-
A === "SUBSCRIBED" ? (console.log("Realtime connection established successfully"), a(y), h.current = y, g.current = 0) : A === "CHANNEL_ERROR" || A === "TIMED_OUT" ? (console.log(`Realtime connection failed: ${A}. Will attempt to reconnect...`), u.current ||
|
|
733
|
+
A === "SUBSCRIBED" ? (console.log("Realtime connection established successfully"), a(y), h.current = y, g.current = 0) : A === "CHANNEL_ERROR" || A === "TIMED_OUT" ? (console.log(`Realtime connection failed: ${A}. Will attempt to reconnect...`), u.current || I()) : A === "CLOSED" && console.log("Realtime connection closed");
|
|
733
734
|
}), () => {
|
|
734
735
|
f.current && (clearTimeout(f.current), f.current = null), u.current = !1, g.current = 0, h.current === y && (h.current = null), a(null), y.unsubscribe();
|
|
735
736
|
};
|
|
736
|
-
}, [e, t, s, a,
|
|
737
|
+
}, [e, t, s, a, I, _]), J(() => {
|
|
737
738
|
const y = () => {
|
|
738
739
|
if (document.visibilityState === "visible") {
|
|
739
740
|
if (console.log("Tab became visible, checking realtime connection..."), !e || !t || !s) {
|
|
@@ -744,13 +745,13 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
744
745
|
console.log("Reconnection already in progress, skipping visibility change reconnect");
|
|
745
746
|
return;
|
|
746
747
|
}
|
|
747
|
-
h.current ? h.current.getState() !== "JOINED" && (console.log("Channel is not active, reconnecting..."),
|
|
748
|
+
h.current ? h.current.getState() !== "JOINED" && (console.log("Channel is not active, reconnecting..."), I()) : (console.log("No active channel found, reconnecting..."), I());
|
|
748
749
|
}
|
|
749
750
|
};
|
|
750
751
|
return document.addEventListener("visibilitychange", y), () => {
|
|
751
752
|
document.removeEventListener("visibilitychange", y);
|
|
752
753
|
};
|
|
753
|
-
}, [e, t, s,
|
|
754
|
+
}, [e, t, s, I]), J(() => (r && n && t && r.track({
|
|
754
755
|
pageId: n,
|
|
755
756
|
userId: t,
|
|
756
757
|
clientId: Oe,
|
|
@@ -758,8 +759,8 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
758
759
|
}), () => {
|
|
759
760
|
r && n && r.untrack();
|
|
760
761
|
}), [r, n, t]);
|
|
761
|
-
},
|
|
762
|
-
const [e, t] =
|
|
762
|
+
}, yo = K(() => import("./add-new-page-g-1IoabL.js")), Ao = K(() => import("./delete-page-Dn_RROmv.js")), To = K(() => import("./duplicate-page-BR5ztiaP.js")), So = K(() => import("./mark-as-template-nv5vIVWv.js")), _o = K(() => import("./unmark-as-template-CRtbXrQA.js")), Po = K(() => import("./unpublish-page-CW3_INFu.js")), wo = () => {
|
|
763
|
+
const [e, t] = k(null), [n, s] = k(null), [r, a] = k(null), [i, l] = k(null), [c, d] = k(null), [f, u] = k(null), { data: g, isFetching: h } = Ge(), { selectedLang: p, fallbackLang: _ } = Ie(), { data: I } = yn(), y = I == null ? void 0 : I.find((B) => B.lang === p), { isLocked: A } = ve(), b = !(g != null && g.slug), q = Xn(nn);
|
|
763
764
|
if (!g) return null;
|
|
764
765
|
const V = (B) => {
|
|
765
766
|
p.length > 0 && p !== _ ? q({
|
|
@@ -771,19 +772,19 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
771
772
|
return /* @__PURE__ */ m(Te, { children: [
|
|
772
773
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
|
|
773
774
|
/* @__PURE__ */ o("p", { className: "flex h-7 max-w-[200px] items-center truncate rounded px-1 text-xs font-medium", children: h ? /* @__PURE__ */ o(Ke, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
|
|
774
|
-
b ? /* @__PURE__ */ o(
|
|
775
|
-
|
|
775
|
+
b ? /* @__PURE__ */ o(si, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ o(ri, { className: "mr-1 h-4 w-4" }),
|
|
776
|
+
Q(y || g, "name") ?? ""
|
|
776
777
|
] }) }),
|
|
777
778
|
A ? /* @__PURE__ */ o(
|
|
778
|
-
|
|
779
|
+
D,
|
|
779
780
|
{
|
|
780
781
|
variant: "ghost",
|
|
781
782
|
size: "icon",
|
|
782
783
|
className: "h-7 w-7 cursor-not-allowed rounded opacity-50 hover:bg-transparent",
|
|
783
|
-
children: /* @__PURE__ */ o(
|
|
784
|
+
children: /* @__PURE__ */ o(ai, { className: "h-4 w-4" })
|
|
784
785
|
}
|
|
785
786
|
) : /* @__PURE__ */ o(
|
|
786
|
-
|
|
787
|
+
Vi,
|
|
787
788
|
{
|
|
788
789
|
page: g,
|
|
789
790
|
setDuplicatePage: (B) => d(B),
|
|
@@ -791,12 +792,12 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
791
792
|
setUnpublishPage: (B) => s(B),
|
|
792
793
|
setDeletePage: (B) => t(B),
|
|
793
794
|
isLanguagePage: p.length > 0 && p !== _,
|
|
794
|
-
children: /* @__PURE__ */ o(
|
|
795
|
+
children: /* @__PURE__ */ o(D, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ o(Qs, { className: "h-4 w-4" }) })
|
|
795
796
|
}
|
|
796
797
|
)
|
|
797
798
|
] }),
|
|
798
799
|
f && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
799
|
-
|
|
800
|
+
yo,
|
|
800
801
|
{
|
|
801
802
|
closePanel: () => u(null),
|
|
802
803
|
editPage: () => {
|
|
@@ -805,12 +806,12 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
805
806
|
setAddEditPage: u
|
|
806
807
|
}
|
|
807
808
|
) }),
|
|
808
|
-
e && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
809
|
-
n && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
810
|
-
r && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
811
|
-
i && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
809
|
+
e && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(Ao, { page: e, onClose: () => t(null) }) }),
|
|
810
|
+
n && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(Po, { page: n, onClose: () => s(null) }) }),
|
|
811
|
+
r && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(So, { page: r, onClose: () => a(null) }) }),
|
|
812
|
+
i && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(_o, { page: i, onClose: () => l(null) }) }),
|
|
812
813
|
c && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
813
|
-
|
|
814
|
+
To,
|
|
814
815
|
{
|
|
815
816
|
page: c,
|
|
816
817
|
onClose: () => d(null),
|
|
@@ -827,7 +828,7 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
827
828
|
),
|
|
828
829
|
children: e
|
|
829
830
|
}
|
|
830
|
-
),
|
|
831
|
+
), bo = ({ hasDynamicPage: e }) => /* @__PURE__ */ o(St, { 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: [
|
|
831
832
|
/* @__PURE__ */ o("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
832
833
|
/* @__PURE__ */ o("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" })
|
|
833
834
|
] }) }), Qt = {
|
|
@@ -1019,29 +1020,29 @@ const Et = 10, oo = 1e3, lo = 2, co = 16e3, Xs = () => {
|
|
|
1019
1020
|
za: "Zhuang, Chuang",
|
|
1020
1021
|
zu: "Zulu"
|
|
1021
1022
|
};
|
|
1022
|
-
function
|
|
1023
|
+
function Io(e, t, n = !1) {
|
|
1023
1024
|
const s = e.toString() ? `?${e.toString()}` : "/";
|
|
1024
1025
|
n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
1025
1026
|
}
|
|
1026
|
-
const
|
|
1027
|
-
const e =
|
|
1028
|
-
return e ? /* @__PURE__ */ o("div", { className: "max-h-9 w-full overflow-hidden pr-2", children:
|
|
1029
|
-
},
|
|
1027
|
+
const No = K(() => import("./add-new-language-page-B8JAC5o-.js")), vo = () => {
|
|
1028
|
+
const e = me("topLeftCorner", null);
|
|
1029
|
+
return e ? /* @__PURE__ */ o("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: _i.createElement(e, {}) }) : null;
|
|
1030
|
+
}, Lo = ({
|
|
1030
1031
|
showAdd: e = !0,
|
|
1031
1032
|
goToDefaultLang: t = !1
|
|
1032
1033
|
}) => {
|
|
1033
|
-
const { fallbackLang: n, languages: s, selectedLang: r, setSelectedLang: a } =
|
|
1034
|
+
const { fallbackLang: n, languages: s, selectedLang: r, setSelectedLang: a } = Ie(), i = he(r) ? n : r, [, l] = Ce(), { isLocked: c } = ve(), { t: d } = Ee();
|
|
1034
1035
|
J(() => {
|
|
1035
1036
|
const y = new URLSearchParams(window.location.search), A = y.get("lang");
|
|
1036
1037
|
A && (s.includes(A) ? a(A) : (y.delete("lang"), l(y), a("")));
|
|
1037
1038
|
}, [s, l, a]);
|
|
1038
|
-
const f = Xn(nn), { data: u } =
|
|
1039
|
+
const f = Xn(nn), { data: u } = ue(), { data: g } = Ve(), { data: h } = yn(), p = z(() => {
|
|
1039
1040
|
const y = Tt(
|
|
1040
|
-
Un(
|
|
1041
|
+
Un(Q(g, "languages"), (A) => {
|
|
1041
1042
|
const b = le(h, { lang: A });
|
|
1042
1043
|
return {
|
|
1043
1044
|
key: A,
|
|
1044
|
-
value:
|
|
1045
|
+
value: Q(Qt, A, A),
|
|
1045
1046
|
isLangPageAdded: !!b
|
|
1046
1047
|
};
|
|
1047
1048
|
})
|
|
@@ -1049,7 +1050,7 @@ const Po = K(() => import("./add-new-language-page-DVL-HkWR.js")), wo = () => {
|
|
|
1049
1050
|
return [
|
|
1050
1051
|
{
|
|
1051
1052
|
key: n,
|
|
1052
|
-
value:
|
|
1053
|
+
value: Q(Qt, n),
|
|
1053
1054
|
isLangPageAdded: !0
|
|
1054
1055
|
},
|
|
1055
1056
|
...y
|
|
@@ -1060,26 +1061,26 @@ const Po = K(() => import("./add-new-language-page-DVL-HkWR.js")), wo = () => {
|
|
|
1060
1061
|
detail: {
|
|
1061
1062
|
fromLang: i,
|
|
1062
1063
|
toLang: y,
|
|
1063
|
-
switchHandler: () =>
|
|
1064
|
+
switchHandler: () => I(y)
|
|
1064
1065
|
}
|
|
1065
1066
|
});
|
|
1066
1067
|
window.dispatchEvent(b);
|
|
1067
1068
|
return;
|
|
1068
1069
|
}
|
|
1069
|
-
|
|
1070
|
-
},
|
|
1070
|
+
I(y);
|
|
1071
|
+
}, I = (y) => {
|
|
1071
1072
|
a(y);
|
|
1072
1073
|
const A = new URLSearchParams(window.location.search);
|
|
1073
|
-
y === n ? A.delete("lang") : A.set("lang", y),
|
|
1074
|
+
y === n ? A.delete("lang") : A.set("lang", y), Io(A, l);
|
|
1074
1075
|
};
|
|
1075
|
-
return
|
|
1076
|
-
/* @__PURE__ */ o(
|
|
1077
|
-
|
|
1076
|
+
return he(s) ? null : c ? /* @__PURE__ */ m(D, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
|
|
1077
|
+
/* @__PURE__ */ o(hs, { className: "h-4 w-4" }),
|
|
1078
|
+
Q(Qt, i, i),
|
|
1078
1079
|
/* @__PURE__ */ o(Bn, { className: "h-4 w-4" })
|
|
1079
|
-
] }) : t ? /* @__PURE__ */ o(
|
|
1080
|
-
/* @__PURE__ */ o(dn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
1081
|
-
/* @__PURE__ */ o(
|
|
1082
|
-
|
|
1080
|
+
] }) : t ? /* @__PURE__ */ o(D, { onClick: () => I(n), variant: "link", size: "sm", children: d("Switch to default language") }) : /* @__PURE__ */ o(Te, { children: /* @__PURE__ */ m(un, { children: [
|
|
1081
|
+
/* @__PURE__ */ o(dn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(D, { disabled: !!c, variant: "outline", size: "sm", className: "ml-px h-max gap-2 py-1.5", children: [
|
|
1082
|
+
/* @__PURE__ */ o(hs, { className: "h-4 w-4" }),
|
|
1083
|
+
Q(Qt, i, i),
|
|
1083
1084
|
/* @__PURE__ */ o(Bn, { className: "h-4 w-4" })
|
|
1084
1085
|
] }) }),
|
|
1085
1086
|
/* @__PURE__ */ m(fn, { className: "space-y-1 border-border", children: [
|
|
@@ -1096,7 +1097,7 @@ const Po = K(() => import("./add-new-language-page-DVL-HkWR.js")), wo = () => {
|
|
|
1096
1097
|
children: [
|
|
1097
1098
|
/* @__PURE__ */ o("div", { className: "text-slate-600", children: y.value }),
|
|
1098
1099
|
y.key === n && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
|
|
1099
|
-
/* @__PURE__ */ o(
|
|
1100
|
+
/* @__PURE__ */ o(ii, { fill: "orange", className: "h-2 w-2" }),
|
|
1100
1101
|
"Primary"
|
|
1101
1102
|
] })
|
|
1102
1103
|
]
|
|
@@ -1104,10 +1105,10 @@ const Po = K(() => import("./add-new-language-page-DVL-HkWR.js")), wo = () => {
|
|
|
1104
1105
|
y.value
|
|
1105
1106
|
)
|
|
1106
1107
|
),
|
|
1107
|
-
e && !
|
|
1108
|
-
/* @__PURE__ */ o(
|
|
1108
|
+
e && !he(p.filter((y) => !y.isLangPageAdded)) && /* @__PURE__ */ m(Te, { children: [
|
|
1109
|
+
/* @__PURE__ */ o(fa, {}),
|
|
1109
1110
|
/* @__PURE__ */ m(
|
|
1110
|
-
|
|
1111
|
+
D,
|
|
1111
1112
|
{
|
|
1112
1113
|
size: "sm",
|
|
1113
1114
|
variant: "ghost",
|
|
@@ -1119,7 +1120,7 @@ const Po = K(() => import("./add-new-language-page-DVL-HkWR.js")), wo = () => {
|
|
|
1119
1120
|
},
|
|
1120
1121
|
className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
|
|
1121
1122
|
children: [
|
|
1122
|
-
/* @__PURE__ */ o(
|
|
1123
|
+
/* @__PURE__ */ o(zs, { className: "mr-1 h-3 w-3" }),
|
|
1123
1124
|
" Add Language"
|
|
1124
1125
|
]
|
|
1125
1126
|
}
|
|
@@ -1128,12 +1129,12 @@ const Po = K(() => import("./add-new-language-page-DVL-HkWR.js")), wo = () => {
|
|
|
1128
1129
|
] })
|
|
1129
1130
|
] }) });
|
|
1130
1131
|
};
|
|
1131
|
-
function
|
|
1132
|
-
const e =
|
|
1132
|
+
function Co() {
|
|
1133
|
+
const e = Xa(nn), t = Xn(nn);
|
|
1133
1134
|
return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
|
|
1134
|
-
/* @__PURE__ */ o(
|
|
1135
|
+
/* @__PURE__ */ o(vo, {}),
|
|
1135
1136
|
e && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1136
|
-
|
|
1137
|
+
No,
|
|
1137
1138
|
{
|
|
1138
1139
|
isOpen: !0,
|
|
1139
1140
|
id: e == null ? void 0 : e.id,
|
|
@@ -1145,7 +1146,7 @@ function No() {
|
|
|
1145
1146
|
) })
|
|
1146
1147
|
] });
|
|
1147
1148
|
}
|
|
1148
|
-
function
|
|
1149
|
+
function Go() {
|
|
1149
1150
|
return /* @__PURE__ */ o("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: [
|
|
1150
1151
|
/* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
|
|
1151
1152
|
/* @__PURE__ */ o($t, { className: "h-4 w-3/4" }),
|
|
@@ -1155,19 +1156,19 @@ function Io() {
|
|
|
1155
1156
|
/* @__PURE__ */ o($t, { className: "h-8 w-8 rounded-full" })
|
|
1156
1157
|
] }, t)) });
|
|
1157
1158
|
}
|
|
1158
|
-
const
|
|
1159
|
-
function
|
|
1160
|
-
const [e, t] =
|
|
1161
|
-
return /* @__PURE__ */ o(
|
|
1162
|
-
/* @__PURE__ */ m(
|
|
1163
|
-
/* @__PURE__ */ o(
|
|
1164
|
-
/* @__PURE__ */ m(
|
|
1165
|
-
/* @__PURE__ */ o(
|
|
1159
|
+
const ko = j.lazy(() => import("./page-revisions-content-BSrj14T0.js"));
|
|
1160
|
+
function Do() {
|
|
1161
|
+
const [e, t] = j.useState(!1);
|
|
1162
|
+
return /* @__PURE__ */ o(Ms, { children: /* @__PURE__ */ m(hn, { delayDuration: 0, children: [
|
|
1163
|
+
/* @__PURE__ */ m(Fs, { open: e, onOpenChange: t, children: [
|
|
1164
|
+
/* @__PURE__ */ o(ha, { asChild: !0, children: /* @__PURE__ */ o(gn, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
|
|
1165
|
+
/* @__PURE__ */ m(D, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
|
|
1166
|
+
/* @__PURE__ */ o(oi, { className: "h-4 w-4" }),
|
|
1166
1167
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "View revision history" })
|
|
1167
1168
|
] }),
|
|
1168
1169
|
/* @__PURE__ */ o("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1169
1170
|
] }) }) }),
|
|
1170
|
-
/* @__PURE__ */ o(
|
|
1171
|
+
/* @__PURE__ */ o(Hs, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ o(Y, { fallback: /* @__PURE__ */ o(Go, {}), children: /* @__PURE__ */ o(ko, { isOpen: e }) }) })
|
|
1171
1172
|
] }),
|
|
1172
1173
|
/* @__PURE__ */ o(mn, { side: "bottom", children: /* @__PURE__ */ o("p", { children: "Revision history" }) })
|
|
1173
1174
|
] }) });
|
|
@@ -1178,16 +1179,16 @@ const Gn = ({
|
|
|
1178
1179
|
children: n,
|
|
1179
1180
|
fallback: s = null
|
|
1180
1181
|
}) => {
|
|
1181
|
-
const { hasPermission: r } =
|
|
1182
|
+
const { hasPermission: r } = Bs();
|
|
1182
1183
|
return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
|
|
1183
|
-
},
|
|
1184
|
+
}, Oo = {
|
|
1184
1185
|
SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
|
|
1185
|
-
},
|
|
1186
|
+
}, rr = () => {
|
|
1186
1187
|
var t;
|
|
1187
1188
|
const [e] = pn();
|
|
1188
1189
|
return ((t = e == null ? void 0 : e.flags) == null ? void 0 : t.revisions) ?? !1;
|
|
1189
|
-
},
|
|
1190
|
-
const e =
|
|
1190
|
+
}, Vu = () => {
|
|
1191
|
+
const e = N(), t = X(), n = C(), { data: s } = qe();
|
|
1191
1192
|
return te({
|
|
1192
1193
|
mutationFn: async (r) => await n(e, {
|
|
1193
1194
|
action: E.CREATE_PAGE,
|
|
@@ -1208,12 +1209,12 @@ const Gn = ({
|
|
|
1208
1209
|
onError: (r, a) => {
|
|
1209
1210
|
const i = le(s, { key: a.pageType });
|
|
1210
1211
|
O.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
1211
|
-
description:
|
|
1212
|
+
description: Q(Oo, r.message, r.message)
|
|
1212
1213
|
});
|
|
1213
1214
|
}
|
|
1214
1215
|
});
|
|
1215
|
-
},
|
|
1216
|
-
const e =
|
|
1216
|
+
}, qu = () => {
|
|
1217
|
+
const e = N(), t = X(), n = C(), { data: s } = Ge(), { data: r } = qe();
|
|
1217
1218
|
return te({
|
|
1218
1219
|
mutationFn: async (a) => await n(e, {
|
|
1219
1220
|
action: E.UPDATE_PAGE,
|
|
@@ -1237,8 +1238,8 @@ const Gn = ({
|
|
|
1237
1238
|
});
|
|
1238
1239
|
}
|
|
1239
1240
|
});
|
|
1240
|
-
},
|
|
1241
|
-
const e =
|
|
1241
|
+
}, $u = () => {
|
|
1242
|
+
const e = N(), t = X(), n = C(), { data: s } = qe();
|
|
1242
1243
|
return te({
|
|
1243
1244
|
mutationFn: async (r) => n(e, {
|
|
1244
1245
|
action: E.DELETE_PAGE,
|
|
@@ -1266,8 +1267,8 @@ const Gn = ({
|
|
|
1266
1267
|
});
|
|
1267
1268
|
}
|
|
1268
1269
|
});
|
|
1269
|
-
},
|
|
1270
|
-
const e =
|
|
1270
|
+
}, Qu = () => {
|
|
1271
|
+
const e = N(), t = C(), { data: n } = qe(), { handleQuerySync: s } = Ft();
|
|
1271
1272
|
return te({
|
|
1272
1273
|
mutationFn: async (r) => t(e, {
|
|
1273
1274
|
action: E.TAKE_OFFLINE,
|
|
@@ -1294,8 +1295,8 @@ const Gn = ({
|
|
|
1294
1295
|
});
|
|
1295
1296
|
}
|
|
1296
1297
|
});
|
|
1297
|
-
},
|
|
1298
|
-
const e =
|
|
1298
|
+
}, ar = () => {
|
|
1299
|
+
const e = N(), t = C(), { savePageAsync: n } = He(), s = rr(), { handleQuerySync: r } = Ft();
|
|
1299
1300
|
return te({
|
|
1300
1301
|
mutationFn: async ({ ids: a }) => (await n(), t(e, {
|
|
1301
1302
|
action: E.PUBLISH_CHANGES,
|
|
@@ -1312,8 +1313,8 @@ const Gn = ({
|
|
|
1312
1313
|
console.log("##", a), O.error("Failed to publish pages.");
|
|
1313
1314
|
}
|
|
1314
1315
|
});
|
|
1315
|
-
},
|
|
1316
|
-
const e =
|
|
1316
|
+
}, Wu = () => {
|
|
1317
|
+
const e = N(), t = C(), n = X();
|
|
1317
1318
|
return te({
|
|
1318
1319
|
mutationFn: async (s) => {
|
|
1319
1320
|
var r;
|
|
@@ -1337,8 +1338,8 @@ const Gn = ({
|
|
|
1337
1338
|
O.error("Failed to mark page as template.");
|
|
1338
1339
|
}
|
|
1339
1340
|
});
|
|
1340
|
-
},
|
|
1341
|
-
const e =
|
|
1341
|
+
}, zu = () => {
|
|
1342
|
+
const e = N(), t = C(), n = X();
|
|
1342
1343
|
return te({
|
|
1343
1344
|
mutationFn: async (s) => t(e, {
|
|
1344
1345
|
action: E.UNMARK_AS_TEMPLATE,
|
|
@@ -1353,8 +1354,8 @@ const Gn = ({
|
|
|
1353
1354
|
O.error("Failed to unmark page as template.");
|
|
1354
1355
|
}
|
|
1355
1356
|
});
|
|
1356
|
-
},
|
|
1357
|
-
const e =
|
|
1357
|
+
}, ju = () => {
|
|
1358
|
+
const e = N(), t = C(), n = X();
|
|
1358
1359
|
return te({
|
|
1359
1360
|
mutationFn: async ({ id: s, slug: r }) => t(e, {
|
|
1360
1361
|
action: E.CHANGE_SLUG,
|
|
@@ -1371,26 +1372,26 @@ const Gn = ({
|
|
|
1371
1372
|
O.error("Failed to change slug");
|
|
1372
1373
|
}
|
|
1373
1374
|
});
|
|
1374
|
-
},
|
|
1375
|
-
function
|
|
1375
|
+
}, xo = K(() => import("./publish-pages-content-BUEFuvil.js"));
|
|
1376
|
+
function Ro({
|
|
1376
1377
|
showModal: e = !1,
|
|
1377
1378
|
onClose: t = () => console.log("Cancelled")
|
|
1378
1379
|
}) {
|
|
1379
|
-
const { mutate: n, isPending: s } =
|
|
1380
|
+
const { mutate: n, isPending: s } = ar();
|
|
1380
1381
|
return /* @__PURE__ */ o(jn, { open: e, onOpenChange: s ? () => {
|
|
1381
|
-
} : t, children: e && /* @__PURE__ */ o(Y, { fallback: /* @__PURE__ */ o("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ o(
|
|
1382
|
+
} : t, children: e && /* @__PURE__ */ o(Y, { fallback: /* @__PURE__ */ o("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ o(xo, { onClose: t, isPending: s, publishPage: n }) }) });
|
|
1382
1383
|
}
|
|
1383
|
-
const
|
|
1384
|
-
const [e] =
|
|
1384
|
+
const Uo = () => {
|
|
1385
|
+
const [e] = ga(), { data: t } = ht();
|
|
1385
1386
|
return F(() => {
|
|
1386
1387
|
if (!t)
|
|
1387
1388
|
return { ids: [], names: [], partialBlocksInfo: [] };
|
|
1388
|
-
const s = Jn(e, (c) => c._type === "PartialBlock"), r =
|
|
1389
|
+
const s = Jn(e, (c) => c._type === "PartialBlock"), r = Qa(Tt(s.map((c) => Q(c, "partialBlockId", "")))), a = Tt(
|
|
1389
1390
|
r.map((c) => {
|
|
1390
1391
|
const d = le(t, { id: c });
|
|
1391
1392
|
if (!d) return null;
|
|
1392
1393
|
if (d.online) {
|
|
1393
|
-
if (!
|
|
1394
|
+
if (!he(d.changes))
|
|
1394
1395
|
return {
|
|
1395
1396
|
id: d.id,
|
|
1396
1397
|
name: d.name || d.slug || d.id,
|
|
@@ -1406,16 +1407,16 @@ const ko = () => {
|
|
|
1406
1407
|
), i = a.map((c) => c.id), l = a.map((c) => c.name);
|
|
1407
1408
|
return { ids: i, names: l, partialBlocksInfo: a };
|
|
1408
1409
|
}, [e, t]);
|
|
1409
|
-
},
|
|
1410
|
-
const { fallbackLang: t } =
|
|
1410
|
+
}, Bo = (e) => {
|
|
1411
|
+
const { fallbackLang: t } = Ie(), { data: n } = Ve(), { data: s, isFetching: r } = yn(), a = z(() => {
|
|
1411
1412
|
const i = { [t]: !0 };
|
|
1412
|
-
return
|
|
1413
|
+
return Wa(Q(n, "languages"), (l) => {
|
|
1413
1414
|
const c = le(s, { lang: l });
|
|
1414
1415
|
i[l] = !!c;
|
|
1415
1416
|
}), i;
|
|
1416
1417
|
}, [t, s, n]);
|
|
1417
|
-
return r ||
|
|
1418
|
-
},
|
|
1418
|
+
return r || he(e) || e && a[e];
|
|
1419
|
+
}, Mo = () => {
|
|
1419
1420
|
const { data: e, isLoading: t } = Ve(), n = e == null ? void 0 : e.appChanges, s = n == null ? void 0 : n.includes("THEME"), r = n == null ? void 0 : n.includes("DESIGN_TOKENS");
|
|
1420
1421
|
return {
|
|
1421
1422
|
hasUnpublishedSettings: s || r,
|
|
@@ -1423,12 +1424,12 @@ const ko = () => {
|
|
|
1423
1424
|
hasUnpublishedDesignToken: r,
|
|
1424
1425
|
isLoading: t
|
|
1425
1426
|
};
|
|
1426
|
-
},
|
|
1427
|
+
}, Fo = {
|
|
1427
1428
|
particleCount: 350,
|
|
1428
1429
|
spread: 120,
|
|
1429
1430
|
origin: { y: 0.6 },
|
|
1430
1431
|
angle: 90
|
|
1431
|
-
},
|
|
1432
|
+
}, Ho = {
|
|
1432
1433
|
TOP_RIGHT: {
|
|
1433
1434
|
angle: 225,
|
|
1434
1435
|
origin: { x: 0.9, y: 0 }
|
|
@@ -1437,14 +1438,14 @@ const ko = () => {
|
|
|
1437
1438
|
angle: 100,
|
|
1438
1439
|
origin: { x: 0.9, y: 0.9 }
|
|
1439
1440
|
}
|
|
1440
|
-
},
|
|
1441
|
+
}, Ko = async () => {
|
|
1441
1442
|
const { default: e } = await import("canvas-confetti");
|
|
1442
1443
|
return e;
|
|
1443
1444
|
}, Wt = (e) => {
|
|
1444
|
-
let t =
|
|
1445
|
+
let t = Ho[e];
|
|
1445
1446
|
t || (t = {});
|
|
1446
|
-
const n = { ...
|
|
1447
|
-
|
|
1447
|
+
const n = { ...Fo, ...t };
|
|
1448
|
+
Ko().then((s) => s(n));
|
|
1448
1449
|
};
|
|
1449
1450
|
function Kt({
|
|
1450
1451
|
children: e,
|
|
@@ -1453,17 +1454,17 @@ function Kt({
|
|
|
1453
1454
|
delayDuration: s = 700,
|
|
1454
1455
|
showTooltip: r = !0
|
|
1455
1456
|
}) {
|
|
1456
|
-
return r ? /* @__PURE__ */ o(
|
|
1457
|
+
return r ? /* @__PURE__ */ o(Ms, { children: /* @__PURE__ */ m(hn, { delayDuration: s, children: [
|
|
1457
1458
|
/* @__PURE__ */ o(gn, { asChild: !0, children: e }),
|
|
1458
1459
|
/* @__PURE__ */ o(mn, { side: n, sideOffset: 10, children: /* @__PURE__ */ o("p", { children: t }) })
|
|
1459
1460
|
] }) }) : e;
|
|
1460
1461
|
}
|
|
1461
|
-
const
|
|
1462
|
-
() => import("./translation-warning-modal-
|
|
1463
|
-
),
|
|
1464
|
-
() => import("./unpublished-partials-modal-
|
|
1465
|
-
),
|
|
1466
|
-
const { t: e } =
|
|
1462
|
+
const Vo = K(() => import("./unpublish-page-CW3_INFu.js")), qo = K(
|
|
1463
|
+
() => import("./translation-warning-modal-C9RAIClA.js")
|
|
1464
|
+
), $o = K(
|
|
1465
|
+
() => import("./unpublished-partials-modal-Bz7NecK3.js")
|
|
1466
|
+
), _s = K(() => import("./json-diff-viewer-DCbCxU1-.js")), Qo = () => {
|
|
1467
|
+
const { t: e } = Ee(), { selectedLang: t, fallbackLang: n } = Ie(), s = me("getPreviewUrl", async (g) => g), [r, a] = k(""), { data: i } = ue(), { data: l } = yn(), { data: c } = qe(), d = z(
|
|
1467
1468
|
() => {
|
|
1468
1469
|
var g;
|
|
1469
1470
|
return (g = l == null ? void 0 : l.find((h) => (h == null ? void 0 : h.lang) === t)) == null ? void 0 : g.slug;
|
|
@@ -1484,26 +1485,26 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1484
1485
|
a("");
|
|
1485
1486
|
})();
|
|
1486
1487
|
}, [s, d, i == null ? void 0 : i.pageType, f, i == null ? void 0 : i.id, u]), /* @__PURE__ */ m(Te, { children: [
|
|
1487
|
-
/* @__PURE__ */ o(Kt, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ o("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ o(
|
|
1488
|
+
/* @__PURE__ */ o(Kt, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ o("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ o(D, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ o(ci, { className: "h-4 w-4" }) }) }) }),
|
|
1488
1489
|
/* @__PURE__ */ o("div", { className: "h-4 w-px bg-gray-200" })
|
|
1489
1490
|
] });
|
|
1490
|
-
},
|
|
1491
|
-
const { t: e } =
|
|
1491
|
+
}, Wo = () => {
|
|
1492
|
+
const { t: e } = Ee(), [t, n] = ma();
|
|
1492
1493
|
return /* @__PURE__ */ m(Te, { children: [
|
|
1493
1494
|
/* @__PURE__ */ o(Kt, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ o(
|
|
1494
|
-
|
|
1495
|
+
D,
|
|
1495
1496
|
{
|
|
1496
1497
|
variant: t === "theme" ? "outline" : "ghost",
|
|
1497
1498
|
size: "icon",
|
|
1498
1499
|
className: "gap-2",
|
|
1499
1500
|
onClick: () => n(t === "theme" ? "block" : "theme"),
|
|
1500
|
-
children: /* @__PURE__ */ o(
|
|
1501
|
+
children: /* @__PURE__ */ o(li, { className: "h-4 w-4" })
|
|
1501
1502
|
}
|
|
1502
1503
|
) }),
|
|
1503
1504
|
/* @__PURE__ */ o("div", { className: "h-4 w-px bg-gray-200" })
|
|
1504
1505
|
] });
|
|
1505
|
-
},
|
|
1506
|
-
const { t: e } =
|
|
1506
|
+
}, zo = () => {
|
|
1507
|
+
const { t: e } = Ee(), [t, n] = k(!1), { isLocked: s } = ve(), { savePageAsync: r, saveState: a } = He();
|
|
1507
1508
|
J(() => {
|
|
1508
1509
|
const f = (u) => {
|
|
1509
1510
|
a === "UNSAVED" && (u.preventDefault(), u.returnValue = !1);
|
|
@@ -1514,12 +1515,12 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1514
1515
|
}, [a]);
|
|
1515
1516
|
const i = F(async () => {
|
|
1516
1517
|
t || (n(!0), await r(), n(!1));
|
|
1517
|
-
}, [r, t]), { buttonIcon: l, buttonClass: c, tooltipContent: d } =
|
|
1518
|
+
}, [r, t]), { buttonIcon: l, buttonClass: c, tooltipContent: d } = z(() => {
|
|
1518
1519
|
switch (a) {
|
|
1519
1520
|
case "UNSAVED":
|
|
1520
1521
|
return {
|
|
1521
1522
|
tooltipContent: e("Save draft"),
|
|
1522
|
-
buttonIcon: /* @__PURE__ */ o(
|
|
1523
|
+
buttonIcon: /* @__PURE__ */ o(di, { className: "h-4 w-4" }),
|
|
1523
1524
|
buttonClass: "gap-x-1"
|
|
1524
1525
|
};
|
|
1525
1526
|
case "SAVING":
|
|
@@ -1531,24 +1532,24 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1531
1532
|
case "SAVED":
|
|
1532
1533
|
return {
|
|
1533
1534
|
tooltipContent: e("Saved"),
|
|
1534
|
-
buttonIcon: /* @__PURE__ */ o(
|
|
1535
|
+
buttonIcon: /* @__PURE__ */ o(ui, { className: "h-4 w-4" }),
|
|
1535
1536
|
buttonClass: "text-green-500 gap-x-1"
|
|
1536
1537
|
};
|
|
1537
1538
|
}
|
|
1538
1539
|
}, [a, e]);
|
|
1539
|
-
return s ? null : /* @__PURE__ */ o(Kt, { content: d, children: /* @__PURE__ */ o(
|
|
1540
|
-
},
|
|
1541
|
-
const { t: e } =
|
|
1542
|
-
const re = T && (T == null ? void 0 : T.online), ye = !
|
|
1543
|
-
let Re = re ? "hover:bg-green-600 bg-green-500" : "",
|
|
1544
|
-
return re && ye && (Re = "hover:bg-blue-600 bg-blue-500",
|
|
1540
|
+
return s ? null : /* @__PURE__ */ o(Kt, { content: d, children: /* @__PURE__ */ o(D, { size: "sm", variant: "ghost", onClick: i, className: `${c}`, children: l }) });
|
|
1541
|
+
}, jo = () => {
|
|
1542
|
+
const { t: e } = Ee(), { selectedLang: t } = Ie(), { data: n } = Ge(), s = Uo(), [r, a] = k(!1), [i, l] = k(!1), [c, d] = k(null), [f, u] = k(!1), { savePageAsync: g } = He(), [h, p] = k(!1), { hasUnpublishedSettings: _, hasUnpublishedTheme: I, hasUnpublishedDesignToken: y } = Mo(), [A, b] = k(!1), [q, V] = k([]), [B, de] = k([]), [ie, M] = k(null), { data: T } = ue(), { mutate: w, isPending: x } = ar(), { needTranslations: $ } = He(), fe = $(), { buttonText: mt, buttonClassName: Se, isPublished: pe, hasUnpublishedChanges: _e } = z(() => {
|
|
1543
|
+
const re = T && (T == null ? void 0 : T.online), ye = !he(T == null ? void 0 : T.changes);
|
|
1544
|
+
let Re = re ? "hover:bg-green-600 bg-green-500" : "", is = e(re ? "Published" : "Publish");
|
|
1545
|
+
return re && ye && (Re = "hover:bg-blue-600 bg-blue-500", is = e("Publish")), {
|
|
1545
1546
|
buttonClassName: Re,
|
|
1546
1547
|
isPublished: re,
|
|
1547
1548
|
hasUnpublishedChanges: ye,
|
|
1548
|
-
buttonText:
|
|
1549
|
+
buttonText: is
|
|
1549
1550
|
};
|
|
1550
1551
|
}, [T, e]), Pn = async () => {
|
|
1551
|
-
if (
|
|
1552
|
+
if (fe) {
|
|
1552
1553
|
p(!0);
|
|
1553
1554
|
return;
|
|
1554
1555
|
}
|
|
@@ -1559,24 +1560,24 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1559
1560
|
}, Qe = F(
|
|
1560
1561
|
(re) => {
|
|
1561
1562
|
const { ids: ye, partialBlocksInfo: Re } = s();
|
|
1562
|
-
ye.length > 0 ? (V(ye),
|
|
1563
|
+
ye.length > 0 ? (V(ye), de(Re), b(!0)) : w({ ids: Tt(re) }, { onSuccess: () => Wt("TOP_RIGHT") });
|
|
1563
1564
|
},
|
|
1564
1565
|
[s, w]
|
|
1565
1566
|
), bn = () => {
|
|
1566
|
-
b(!1), wn(q), V([]),
|
|
1567
|
+
b(!1), wn(q), V([]), de([]);
|
|
1567
1568
|
}, Vt = () => {
|
|
1568
|
-
b(!1), V([]),
|
|
1569
|
+
b(!1), V([]), de([]);
|
|
1569
1570
|
}, Z = F((re, ye) => {
|
|
1570
1571
|
M({ id: re, name: ye });
|
|
1571
|
-
}, []),
|
|
1572
|
+
}, []), De = () => {
|
|
1572
1573
|
p(!1), Qe([n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage]);
|
|
1573
|
-
},
|
|
1574
|
+
}, In = async () => {
|
|
1574
1575
|
p(!1), await g();
|
|
1575
1576
|
};
|
|
1576
1577
|
return /* @__PURE__ */ m(Te, { children: [
|
|
1577
1578
|
/* @__PURE__ */ m("div", { className: "flex", children: [
|
|
1578
1579
|
/* @__PURE__ */ m(
|
|
1579
|
-
|
|
1580
|
+
D,
|
|
1580
1581
|
{
|
|
1581
1582
|
size: "sm",
|
|
1582
1583
|
onClick: Pn,
|
|
@@ -1589,24 +1590,24 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1589
1590
|
"span",
|
|
1590
1591
|
{
|
|
1591
1592
|
className: `flex items-center transition-transform duration-300 ease-in-out ${i ? "-translate-y-10" : ""}`,
|
|
1592
|
-
children: pe ? _e ? /* @__PURE__ */ o(
|
|
1593
|
+
children: pe ? _e ? /* @__PURE__ */ o(Ws, { className: "h-4 w-4" }) : /* @__PURE__ */ o(gs, { className: "h-4 w-4" }) : /* @__PURE__ */ o(ms, { className: "h-4 w-4" })
|
|
1593
1594
|
}
|
|
1594
1595
|
),
|
|
1595
1596
|
/* @__PURE__ */ o(
|
|
1596
1597
|
"span",
|
|
1597
1598
|
{
|
|
1598
1599
|
className: `absolute inset-0 left-3 flex items-center transition-transform duration-300 ease-in-out ${i ? "" : "translate-y-10"}`,
|
|
1599
|
-
children: pe ? /* @__PURE__ */ o(
|
|
1600
|
+
children: pe ? /* @__PURE__ */ o(ms, { className: "h-4 w-4" }) : /* @__PURE__ */ o(gs, { className: "h-4 w-4" })
|
|
1600
1601
|
}
|
|
1601
1602
|
),
|
|
1602
1603
|
/* @__PURE__ */ o("span", { children: mt }),
|
|
1603
|
-
t ? `(${
|
|
1604
|
+
t ? `(${fs(t)})` : ""
|
|
1604
1605
|
]
|
|
1605
1606
|
}
|
|
1606
1607
|
),
|
|
1607
1608
|
/* @__PURE__ */ m(un, { children: [
|
|
1608
1609
|
/* @__PURE__ */ o(dn, { asChild: !0, children: /* @__PURE__ */ m(
|
|
1609
|
-
|
|
1610
|
+
D,
|
|
1610
1611
|
{
|
|
1611
1612
|
size: "sm",
|
|
1612
1613
|
disabled: x || !(T != null && T.id),
|
|
@@ -1621,9 +1622,9 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1621
1622
|
}
|
|
1622
1623
|
) }),
|
|
1623
1624
|
/* @__PURE__ */ m(fn, { align: "end", className: "w-60", children: [
|
|
1624
|
-
/* @__PURE__ */ o(
|
|
1625
|
+
/* @__PURE__ */ o(us, { className: "-mt-1 text-xs font-light text-gray-600", children: e("Page") }),
|
|
1625
1626
|
pe && _e && /* @__PURE__ */ m(Ae, { onClick: () => u(!0), className: "cursor-pointer text-xs", children: [
|
|
1626
|
-
/* @__PURE__ */ o(
|
|
1627
|
+
/* @__PURE__ */ o(js, { className: "mr-0.5 h-3 w-3" }),
|
|
1627
1628
|
e("View Unpublished changes")
|
|
1628
1629
|
] }),
|
|
1629
1630
|
!pe && /* @__PURE__ */ m(
|
|
@@ -1639,16 +1640,16 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1639
1640
|
}
|
|
1640
1641
|
),
|
|
1641
1642
|
pe && /* @__PURE__ */ m(Ae, { onClick: () => d(n), className: "cursor-pointer text-xs", children: [
|
|
1642
|
-
/* @__PURE__ */ o(
|
|
1643
|
+
/* @__PURE__ */ o(fi, { className: "mr-0.5 h-3 w-3" }),
|
|
1643
1644
|
e("Unpublish"),
|
|
1644
1645
|
" page ",
|
|
1645
|
-
t ? `(${
|
|
1646
|
+
t ? `(${fs(t)})` : ""
|
|
1646
1647
|
] }),
|
|
1647
1648
|
_ && /* @__PURE__ */ m(Te, { children: [
|
|
1648
|
-
/* @__PURE__ */ o(
|
|
1649
|
-
/* @__PURE__ */ o(
|
|
1649
|
+
/* @__PURE__ */ o(Ea, { className: "bg-gray-200" }),
|
|
1650
|
+
/* @__PURE__ */ o(us, { className: "-mt-1 text-xs font-light text-gray-600", children: e("Unpublished website settings") })
|
|
1650
1651
|
] }),
|
|
1651
|
-
|
|
1652
|
+
I && /* @__PURE__ */ o(
|
|
1652
1653
|
Ae,
|
|
1653
1654
|
{
|
|
1654
1655
|
disabled: x,
|
|
@@ -1677,10 +1678,10 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1677
1678
|
] })
|
|
1678
1679
|
] })
|
|
1679
1680
|
] }),
|
|
1680
|
-
/* @__PURE__ */ o(
|
|
1681
|
-
c && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1681
|
+
/* @__PURE__ */ o(Ro, { showModal: r, onClose: () => a(!1) }),
|
|
1682
|
+
c && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(Vo, { page: c, onClose: () => d(null) }) }),
|
|
1682
1683
|
f && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1683
|
-
|
|
1684
|
+
_s,
|
|
1684
1685
|
{
|
|
1685
1686
|
open: f,
|
|
1686
1687
|
onOpenChange: u,
|
|
@@ -1691,16 +1692,16 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1691
1692
|
}
|
|
1692
1693
|
) }),
|
|
1693
1694
|
h && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1694
|
-
|
|
1695
|
+
qo,
|
|
1695
1696
|
{
|
|
1696
1697
|
isOpen: h,
|
|
1697
|
-
onClose:
|
|
1698
|
-
onContinue:
|
|
1698
|
+
onClose: In,
|
|
1699
|
+
onContinue: De,
|
|
1699
1700
|
isPending: x
|
|
1700
1701
|
}
|
|
1701
1702
|
) }),
|
|
1702
1703
|
A && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1703
|
-
|
|
1704
|
+
$o,
|
|
1704
1705
|
{
|
|
1705
1706
|
isOpen: A,
|
|
1706
1707
|
onClose: Vt,
|
|
@@ -1711,7 +1712,7 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1711
1712
|
}
|
|
1712
1713
|
) }),
|
|
1713
1714
|
ie && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1714
|
-
|
|
1715
|
+
_s,
|
|
1715
1716
|
{
|
|
1716
1717
|
open: !!ie,
|
|
1717
1718
|
onOpenChange: (re) => {
|
|
@@ -1724,27 +1725,27 @@ const Mo = K(() => import("./unpublish-page-CK0sAZcB.js")), Fo = K(
|
|
|
1724
1725
|
}
|
|
1725
1726
|
) })
|
|
1726
1727
|
] });
|
|
1727
|
-
},
|
|
1728
|
-
const { t: e } =
|
|
1729
|
-
return (t == null ? void 0 : t.online) ? /* @__PURE__ */ o(Kt, { content: e("Open live page"), delayDuration: 0, children: /* @__PURE__ */ o("a", { href: n, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ o(
|
|
1728
|
+
}, Yo = () => {
|
|
1729
|
+
const { t: e } = Ee(), { data: t } = ue(), n = Fi();
|
|
1730
|
+
return (t == null ? void 0 : t.online) ? /* @__PURE__ */ o(Kt, { content: e("Open live page"), delayDuration: 0, children: /* @__PURE__ */ o("a", { href: n, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ o(D, { variant: "ghost", size: "icon", className: "ml-1 h-8 w-8", children: /* @__PURE__ */ o(hi, { className: "h-4 w-4" }) }) }) }) : null;
|
|
1730
1731
|
};
|
|
1731
|
-
function
|
|
1732
|
-
const { isLocked: e } = ve(), [t] =
|
|
1732
|
+
function Jo() {
|
|
1733
|
+
const { isLocked: e } = ve(), [t] = Ce(), n = t.get("lang"), s = Bo(n), r = rr();
|
|
1733
1734
|
return e || !s ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
|
|
1734
|
-
r && /* @__PURE__ */ o(
|
|
1735
|
-
/* @__PURE__ */ o(Gn, { permission: we.EDIT_THEME, children: /* @__PURE__ */ o(
|
|
1736
|
-
/* @__PURE__ */ o(
|
|
1737
|
-
/* @__PURE__ */ o(Gn, { permission: we.SAVE_PAGE, children: /* @__PURE__ */ o(
|
|
1738
|
-
/* @__PURE__ */ o(Gn, { permission: we.PUBLISH_PAGE, children: /* @__PURE__ */ o(
|
|
1739
|
-
/* @__PURE__ */ o(
|
|
1735
|
+
r && /* @__PURE__ */ o(Do, {}),
|
|
1736
|
+
/* @__PURE__ */ o(Gn, { permission: we.EDIT_THEME, children: /* @__PURE__ */ o(Wo, {}) }),
|
|
1737
|
+
/* @__PURE__ */ o(Qo, {}),
|
|
1738
|
+
/* @__PURE__ */ o(Gn, { permission: we.SAVE_PAGE, children: /* @__PURE__ */ o(zo, {}) }),
|
|
1739
|
+
/* @__PURE__ */ o(Gn, { permission: we.PUBLISH_PAGE, children: /* @__PURE__ */ o(jo, {}) }),
|
|
1740
|
+
/* @__PURE__ */ o(Yo, {})
|
|
1740
1741
|
] });
|
|
1741
1742
|
}
|
|
1742
|
-
const
|
|
1743
|
-
const { t } =
|
|
1743
|
+
const Zo = K(() => import("./page-manager-new-C2E984LB.js")), Xo = ({ children: e }) => {
|
|
1744
|
+
const { t } = Ee(), [n] = Ce(), s = n.get("page"), { data: r, isFetching: a } = ue(), { data: i, isFetching: l } = ht(), [c, d] = k(!1), [f, u] = k(!0), { savePage: g } = He(), h = !!s && !he(r), { isLocked: p } = ve();
|
|
1744
1745
|
J(() => {
|
|
1745
1746
|
!l && i && u(!1);
|
|
1746
1747
|
}, [l, i]);
|
|
1747
|
-
const _ = !f && !s,
|
|
1748
|
+
const _ = !f && !s, I = !f && !a && he(r), y = c || _ || I;
|
|
1748
1749
|
return /* @__PURE__ */ m(Te, { children: [
|
|
1749
1750
|
/* @__PURE__ */ m(hn, { children: [
|
|
1750
1751
|
/* @__PURE__ */ o(
|
|
@@ -1755,12 +1756,12 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1755
1756
|
p || g(), d(!0);
|
|
1756
1757
|
},
|
|
1757
1758
|
children: e || /* @__PURE__ */ m(
|
|
1758
|
-
|
|
1759
|
+
D,
|
|
1759
1760
|
{
|
|
1760
1761
|
variant: "ghost",
|
|
1761
1762
|
className: "flex w-full items-center justify-center rounded-md p-2 pl-0",
|
|
1762
1763
|
children: [
|
|
1763
|
-
/* @__PURE__ */ o(
|
|
1764
|
+
/* @__PURE__ */ o(Es, { className: "ml-2 h-10 w-10 fill-primary text-primary" }),
|
|
1764
1765
|
/* @__PURE__ */ o("div", { className: "flex flex-col items-start", children: /* @__PURE__ */ o("span", { className: "text-sm font-semibold", children: t("Pages") }) })
|
|
1765
1766
|
]
|
|
1766
1767
|
},
|
|
@@ -1770,56 +1771,56 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1770
1771
|
),
|
|
1771
1772
|
/* @__PURE__ */ o(mn, { side: "right", children: /* @__PURE__ */ o("p", { children: t("Open pages manager") }) })
|
|
1772
1773
|
] }),
|
|
1773
|
-
/* @__PURE__ */ o(
|
|
1774
|
-
|
|
1774
|
+
/* @__PURE__ */ o(Fs, { open: y, onOpenChange: (A) => !A && h && d(!1), children: /* @__PURE__ */ m(
|
|
1775
|
+
Hs,
|
|
1775
1776
|
{
|
|
1776
1777
|
side: "left",
|
|
1777
1778
|
"aria-describedby": "pages-manager-description",
|
|
1778
1779
|
className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${h ? "" : "sheet-hide-close-btn"}`,
|
|
1779
1780
|
children: [
|
|
1780
|
-
/* @__PURE__ */ m(
|
|
1781
|
-
/* @__PURE__ */ m(
|
|
1782
|
-
/* @__PURE__ */ o("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ o(
|
|
1781
|
+
/* @__PURE__ */ m(pa, { className: "mb-3 px-4 pt-4", children: [
|
|
1782
|
+
/* @__PURE__ */ m(ya, { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
1783
|
+
/* @__PURE__ */ o("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ o(Es, { className: "h-4 w-4" }) }),
|
|
1783
1784
|
/* @__PURE__ */ m("div", { className: "flex flex-col", children: [
|
|
1784
1785
|
/* @__PURE__ */ o("span", { className: "text-sm font-semibold", children: t("Pages") }),
|
|
1785
1786
|
/* @__PURE__ */ o("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
|
|
1786
1787
|
] })
|
|
1787
1788
|
] }),
|
|
1788
|
-
/* @__PURE__ */ o(
|
|
1789
|
+
/* @__PURE__ */ o(Aa, { className: "sr-only", children: t("Manage your site structure") })
|
|
1789
1790
|
] }),
|
|
1790
|
-
/* @__PURE__ */ o("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: y && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1791
|
+
/* @__PURE__ */ o("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: y && /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(Zo, { close: () => d(!1) }) }) })
|
|
1791
1792
|
]
|
|
1792
1793
|
}
|
|
1793
1794
|
) })
|
|
1794
1795
|
] });
|
|
1795
|
-
},
|
|
1796
|
-
const { dynamicPage: e, allLangPages: t, isFetching: n } =
|
|
1796
|
+
}, el = K(() => import("./dynamic-page-selector-DoescCb6.js")), tl = () => {
|
|
1797
|
+
const { dynamicPage: e, allLangPages: t, isFetching: n } = Ri(), s = t.length > 0;
|
|
1797
1798
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1798
|
-
!e && /* @__PURE__ */ o(
|
|
1799
|
-
/* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
1799
|
+
!e && /* @__PURE__ */ o(bo, { hasDynamicPage: s }),
|
|
1800
|
+
/* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(el, {}) })
|
|
1800
1801
|
] });
|
|
1801
|
-
},
|
|
1802
|
-
const { isFetching: e } = Ge(), { data: t, isFetching: n } =
|
|
1802
|
+
}, nl = () => {
|
|
1803
|
+
const { isFetching: e } = Ge(), { data: t, isFetching: n } = ue(), s = Q(t, "dynamic", !1), r = jr("dynamic-page-selector"), a = e || n;
|
|
1803
1804
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
|
|
1804
1805
|
/* @__PURE__ */ m("div", { className: "flex items-center", children: [
|
|
1805
|
-
/* @__PURE__ */ o("div", { className: tn("flex h-8 items-center", a && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(
|
|
1806
|
-
/* @__PURE__ */ o(
|
|
1807
|
-
/* @__PURE__ */ o("div", { className: tn("flex h-8 items-center", a && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(
|
|
1806
|
+
/* @__PURE__ */ o("div", { className: tn("flex h-8 items-center", a && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(Xo, {}) }),
|
|
1807
|
+
/* @__PURE__ */ o(gi, { className: "mx-1 h-3 w-3 flex-shrink-0 text-gray-400" }),
|
|
1808
|
+
/* @__PURE__ */ o("div", { className: tn("flex h-8 items-center", a && "max-w-0 overflow-hidden opacity-0"), children: /* @__PURE__ */ o(wo, {}) })
|
|
1808
1809
|
] }),
|
|
1809
|
-
s && r && /* @__PURE__ */ o(
|
|
1810
|
+
s && r && /* @__PURE__ */ o(tl, {})
|
|
1810
1811
|
] });
|
|
1811
|
-
},
|
|
1812
|
+
}, sl = () => /* @__PURE__ */ m("div", { className: "grid h-full w-full grid-cols-3 items-center px-2", children: [
|
|
1812
1813
|
/* @__PURE__ */ m("div", { className: "flex justify-start", children: [
|
|
1813
|
-
/* @__PURE__ */ o(
|
|
1814
|
-
/* @__PURE__ */ o(
|
|
1814
|
+
/* @__PURE__ */ o(Co, {}),
|
|
1815
|
+
/* @__PURE__ */ o(nl, {})
|
|
1815
1816
|
] }),
|
|
1816
|
-
/* @__PURE__ */ o("div", { className: "flex justify-center", children: /* @__PURE__ */ o(
|
|
1817
|
+
/* @__PURE__ */ o("div", { className: "flex justify-center", children: /* @__PURE__ */ o(Gi, {}) }),
|
|
1817
1818
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-end", children: [
|
|
1818
|
-
/* @__PURE__ */ o(
|
|
1819
|
-
/* @__PURE__ */ o(
|
|
1819
|
+
/* @__PURE__ */ o(Lo, {}),
|
|
1820
|
+
/* @__PURE__ */ o(Jo, {})
|
|
1820
1821
|
] })
|
|
1821
|
-
] }),
|
|
1822
|
-
const e = X(), { data: t } =
|
|
1822
|
+
] }), rl = () => {
|
|
1823
|
+
const e = X(), { data: t } = ce({
|
|
1823
1824
|
queryKey: [E.AI_CONTEXT],
|
|
1824
1825
|
initialData: "",
|
|
1825
1826
|
queryFn: () => "",
|
|
@@ -1831,8 +1832,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1831
1832
|
},
|
|
1832
1833
|
[e]
|
|
1833
1834
|
), aiContext: t };
|
|
1834
|
-
},
|
|
1835
|
-
const e =
|
|
1835
|
+
}, al = () => {
|
|
1836
|
+
const e = N(), { aiContext: t } = rl(), n = C();
|
|
1836
1837
|
return F(
|
|
1837
1838
|
async (s, r, a, i) => n(e, {
|
|
1838
1839
|
action: E.ASK_AI,
|
|
@@ -1840,13 +1841,13 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1840
1841
|
}),
|
|
1841
1842
|
[e, t, n]
|
|
1842
1843
|
);
|
|
1843
|
-
},
|
|
1844
|
-
if (!e ||
|
|
1845
|
-
const t = Jn(e, (n) => !
|
|
1846
|
-
return { blocks:
|
|
1847
|
-
}, [e]),
|
|
1848
|
-
const [e] =
|
|
1849
|
-
return
|
|
1844
|
+
}, il = (e) => z(() => {
|
|
1845
|
+
if (!e || he(e)) return { blocks: [] };
|
|
1846
|
+
const t = Jn(e, (n) => !za(n == null ? void 0 : n._type, "@chai/"));
|
|
1847
|
+
return { blocks: Ii(t) };
|
|
1848
|
+
}, [e]), ol = () => {
|
|
1849
|
+
const [e] = Ce(), t = e.get("page"), n = N(), s = C(), r = X(), { data: a } = ue(), { data: i } = Ge(), l = ts(), c = es();
|
|
1850
|
+
return ce({
|
|
1850
1851
|
queryKey: [E.GET_PAGE_ALL_DATA, t, i == null ? void 0 : i.id, c],
|
|
1851
1852
|
staleTime: 1 / 0,
|
|
1852
1853
|
gcTime: 0,
|
|
@@ -1876,8 +1877,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1876
1877
|
},
|
|
1877
1878
|
enabled: !!t && !!(a != null && a.pageType) && !!(i != null && i.id)
|
|
1878
1879
|
});
|
|
1879
|
-
},
|
|
1880
|
-
const e =
|
|
1880
|
+
}, ll = () => {
|
|
1881
|
+
const e = N(), t = C(), { handleQuerySync: n } = Ft();
|
|
1881
1882
|
return te({
|
|
1882
1883
|
mutationFn: async (s) => t(e, {
|
|
1883
1884
|
action: E.UPDATE_WEBSITE_FIELDS,
|
|
@@ -1896,8 +1897,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1896
1897
|
});
|
|
1897
1898
|
}
|
|
1898
1899
|
});
|
|
1899
|
-
},
|
|
1900
|
-
const e =
|
|
1900
|
+
}, Yu = () => {
|
|
1901
|
+
const e = N(), t = X(), n = C(), { selectedLang: s } = Ie();
|
|
1901
1902
|
return te({
|
|
1902
1903
|
mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
1903
1904
|
onSuccess: () => {
|
|
@@ -1911,8 +1912,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1911
1912
|
});
|
|
1912
1913
|
}
|
|
1913
1914
|
});
|
|
1914
|
-
},
|
|
1915
|
-
const e =
|
|
1915
|
+
}, Ju = () => {
|
|
1916
|
+
const e = N(), t = X(), n = C(), { selectedLang: s } = Ie();
|
|
1916
1917
|
return te({
|
|
1917
1918
|
mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
1918
1919
|
onSuccess: () => {
|
|
@@ -1926,8 +1927,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1926
1927
|
});
|
|
1927
1928
|
}
|
|
1928
1929
|
});
|
|
1929
|
-
},
|
|
1930
|
-
const e =
|
|
1930
|
+
}, Zu = () => {
|
|
1931
|
+
const e = N(), t = X(), n = C();
|
|
1931
1932
|
return te({
|
|
1932
1933
|
mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
|
|
1933
1934
|
onSuccess: () => {
|
|
@@ -1941,8 +1942,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1941
1942
|
});
|
|
1942
1943
|
}
|
|
1943
1944
|
});
|
|
1944
|
-
},
|
|
1945
|
-
const e =
|
|
1945
|
+
}, Xu = () => {
|
|
1946
|
+
const e = N(), t = C();
|
|
1946
1947
|
return te({
|
|
1947
1948
|
mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
1948
1949
|
onError: (n) => {
|
|
@@ -1951,8 +1952,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1951
1952
|
});
|
|
1952
1953
|
}
|
|
1953
1954
|
});
|
|
1954
|
-
},
|
|
1955
|
-
const e =
|
|
1955
|
+
}, ed = () => {
|
|
1956
|
+
const e = N(), t = C();
|
|
1956
1957
|
return te({
|
|
1957
1958
|
mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
1958
1959
|
onSuccess: (n) => {
|
|
@@ -1964,8 +1965,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1964
1965
|
});
|
|
1965
1966
|
}
|
|
1966
1967
|
});
|
|
1967
|
-
},
|
|
1968
|
-
const e =
|
|
1968
|
+
}, td = () => {
|
|
1969
|
+
const e = N(), t = C();
|
|
1969
1970
|
return te({
|
|
1970
1971
|
mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
1971
1972
|
onSuccess: (n) => {
|
|
@@ -1977,12 +1978,12 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1977
1978
|
});
|
|
1978
1979
|
}
|
|
1979
1980
|
});
|
|
1980
|
-
},
|
|
1981
|
-
const t =
|
|
1982
|
-
return
|
|
1981
|
+
}, ir = (e = 300) => {
|
|
1982
|
+
const t = me("onLogout", En), n = me("getAccessToken"), s = N();
|
|
1983
|
+
return ce({
|
|
1983
1984
|
queryKey: ["check-user-access"],
|
|
1984
1985
|
queryFn: async () => {
|
|
1985
|
-
const r = await n(), i = await
|
|
1986
|
+
const r = await n(), i = await Zs(
|
|
1986
1987
|
s + "?action=check_user_access",
|
|
1987
1988
|
{ action: "CHECK_USER_ACCESS" },
|
|
1988
1989
|
{ Authorization: `Bearer ${r}` }
|
|
@@ -1995,8 +1996,8 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
1995
1996
|
refetchIntervalInBackground: !0,
|
|
1996
1997
|
retry: !1
|
|
1997
1998
|
});
|
|
1998
|
-
},
|
|
1999
|
-
const e =
|
|
1999
|
+
}, cl = () => {
|
|
2000
|
+
const e = N(), t = C(), [, n] = Mi(), s = X(), { handleQuerySync: r } = Ft();
|
|
2000
2001
|
return { onSave: async ({
|
|
2001
2002
|
page: i,
|
|
2002
2003
|
blocks: l,
|
|
@@ -2027,15 +2028,15 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
2027
2028
|
return console.error(g), new Error("Failed to save blocks");
|
|
2028
2029
|
}
|
|
2029
2030
|
} };
|
|
2030
|
-
},
|
|
2031
|
-
const { data: e } = ht(), t =
|
|
2031
|
+
}, ul = () => {
|
|
2032
|
+
const { data: e } = ht(), t = N(), n = C();
|
|
2032
2033
|
return {
|
|
2033
2034
|
getPartialBlocks: F(async () => {
|
|
2034
2035
|
const s = {};
|
|
2035
2036
|
for (const r of e ?? [])
|
|
2036
|
-
|
|
2037
|
+
he(r == null ? void 0 : r.slug) && (s[r.id] = {
|
|
2037
2038
|
type: r.pageType,
|
|
2038
|
-
name:
|
|
2039
|
+
name: ja(r.name ?? r.slug),
|
|
2039
2040
|
description: ""
|
|
2040
2041
|
});
|
|
2041
2042
|
return s;
|
|
@@ -2056,7 +2057,7 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
2056
2057
|
[n, t]
|
|
2057
2058
|
)
|
|
2058
2059
|
};
|
|
2059
|
-
},
|
|
2060
|
+
}, dl = K(() => import("./ai-panel-content-JYiVwS68.js")), or = "chai-chat-panel", fl = ({ 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: [
|
|
2060
2061
|
/* @__PURE__ */ o("title", { children: "ai" }),
|
|
2061
2062
|
/* @__PURE__ */ o("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ o("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ o(
|
|
2062
2063
|
"path",
|
|
@@ -2065,26 +2066,26 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
2065
2066
|
id: "Combined-Shape"
|
|
2066
2067
|
}
|
|
2067
2068
|
) }) })
|
|
2068
|
-
] }),
|
|
2069
|
-
id:
|
|
2069
|
+
] }), hl = ({ isActive: e, show: t }) => Rn("flags.ai", !1) ? /* @__PURE__ */ o(D, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ o(fl, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }) : null, gl = {
|
|
2070
|
+
id: or,
|
|
2070
2071
|
label: "AI Assistant",
|
|
2071
|
-
button:
|
|
2072
|
-
panel:
|
|
2072
|
+
button: hl,
|
|
2073
|
+
panel: dl,
|
|
2073
2074
|
position: "top"
|
|
2074
|
-
},
|
|
2075
|
+
}, ml = K(() => import("./lang-panel-Cd1Fdck1.js")), El = ({ isActive: e, show: t }) => {
|
|
2075
2076
|
const { data: n } = Ve();
|
|
2076
|
-
return !Zn(n, "languages") || !
|
|
2077
|
-
},
|
|
2078
|
-
id:
|
|
2077
|
+
return !Zn(n, "languages") || !Q(n, "languages", []).length ? null : /* @__PURE__ */ o(D, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ o(mi, { className: "h-4 w-4" }) });
|
|
2078
|
+
}, lr = "lang", pl = {
|
|
2079
|
+
id: lr,
|
|
2079
2080
|
label: "Languages",
|
|
2080
2081
|
position: "top",
|
|
2081
|
-
panel:
|
|
2082
|
-
button:
|
|
2082
|
+
panel: ml,
|
|
2083
|
+
button: El,
|
|
2083
2084
|
view: "modal",
|
|
2084
2085
|
width: 400
|
|
2085
|
-
},
|
|
2086
|
-
const { data: n } =
|
|
2087
|
-
return !Zn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ o(
|
|
2086
|
+
}, yl = K(() => import("./seo-panel-_wcxJSmD.js")), cr = "seo", Al = ({ isActive: e, show: t }) => {
|
|
2087
|
+
const { data: n } = ue(), s = Hi(n == null ? void 0 : n.pageType);
|
|
2088
|
+
return !Zn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ o(D, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
2088
2089
|
"svg",
|
|
2089
2090
|
{
|
|
2090
2091
|
stroke: "currentColor",
|
|
@@ -2102,45 +2103,45 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
2102
2103
|
]
|
|
2103
2104
|
}
|
|
2104
2105
|
) });
|
|
2105
|
-
},
|
|
2106
|
-
id:
|
|
2106
|
+
}, Tl = {
|
|
2107
|
+
id: cr,
|
|
2107
2108
|
label: "SEO",
|
|
2108
|
-
panel:
|
|
2109
|
-
button:
|
|
2109
|
+
panel: yl,
|
|
2110
|
+
button: Al,
|
|
2110
2111
|
position: "top",
|
|
2111
2112
|
width: 600,
|
|
2112
2113
|
view: "modal"
|
|
2113
|
-
},
|
|
2114
|
-
() => import("./change-password-modal-
|
|
2115
|
-
),
|
|
2116
|
-
const { t: e } =
|
|
2117
|
-
return t ? /* @__PURE__ */ m(
|
|
2118
|
-
/* @__PURE__ */ o(
|
|
2119
|
-
/* @__PURE__ */ m(
|
|
2114
|
+
}, Sl = K(
|
|
2115
|
+
() => import("./change-password-modal-Bp_qAzFq.js").then((e) => ({ default: e.ChangePasswordModal }))
|
|
2116
|
+
), ur = "user-info", _l = () => {
|
|
2117
|
+
const { t: e } = Ee(), { user: t, logout: n } = ns(), s = me("onLogout", En), [r, a] = k(!1);
|
|
2118
|
+
return t ? /* @__PURE__ */ m(Ta, { children: [
|
|
2119
|
+
/* @__PURE__ */ o(Sa, { asChild: !0, children: /* @__PURE__ */ o(D, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ o(Ei, { className: "h-4 w-4" }) }) }),
|
|
2120
|
+
/* @__PURE__ */ m(_a, { className: "w-auto space-y-2 p-4", children: [
|
|
2120
2121
|
/* @__PURE__ */ o("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
|
|
2121
2122
|
/* @__PURE__ */ o("div", { className: "text-xs text-muted-foreground", children: t.email }),
|
|
2122
|
-
/* @__PURE__ */ o(
|
|
2123
|
+
/* @__PURE__ */ o(D, { variant: "outline", size: "sm", className: "w-full", onClick: () => a(!0), children: e("Change Password") }),
|
|
2123
2124
|
r && /* @__PURE__ */ o(
|
|
2124
2125
|
Y,
|
|
2125
2126
|
{
|
|
2126
|
-
fallback: /* @__PURE__ */ o(jn, { open: r, onOpenChange: a, children: /* @__PURE__ */ o(
|
|
2127
|
-
children: /* @__PURE__ */ o(
|
|
2127
|
+
fallback: /* @__PURE__ */ o(jn, { open: r, onOpenChange: a, children: /* @__PURE__ */ o(Ks, { className: "sm:max-w-[425px]", children: /* @__PURE__ */ o("div", { className: "flex h-[340px] items-center justify-center", children: /* @__PURE__ */ o(Ke, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) }) }),
|
|
2128
|
+
children: /* @__PURE__ */ o(Sl, { open: r, onOpenChange: a })
|
|
2128
2129
|
}
|
|
2129
2130
|
),
|
|
2130
|
-
/* @__PURE__ */ m(
|
|
2131
|
-
/* @__PURE__ */ o(
|
|
2132
|
-
/* @__PURE__ */ m(
|
|
2133
|
-
/* @__PURE__ */ m(wa, { children: [
|
|
2134
|
-
/* @__PURE__ */ o(ba, { children: e("Are you sure you want to logout?") }),
|
|
2135
|
-
/* @__PURE__ */ o(Na, { children: e("You will be redirected to the login page.") })
|
|
2136
|
-
] }),
|
|
2131
|
+
/* @__PURE__ */ m(Pa, { children: [
|
|
2132
|
+
/* @__PURE__ */ o(wa, { asChild: !0, children: /* @__PURE__ */ o(D, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
|
|
2133
|
+
/* @__PURE__ */ m(ba, { children: [
|
|
2137
2134
|
/* @__PURE__ */ m(Ia, { children: [
|
|
2138
|
-
/* @__PURE__ */ o(
|
|
2135
|
+
/* @__PURE__ */ o(Na, { children: e("Are you sure you want to logout?") }),
|
|
2136
|
+
/* @__PURE__ */ o(va, { children: e("You will be redirected to the login page.") })
|
|
2137
|
+
] }),
|
|
2138
|
+
/* @__PURE__ */ m(La, { children: [
|
|
2139
|
+
/* @__PURE__ */ o(Ca, { children: e("Cancel") }),
|
|
2139
2140
|
/* @__PURE__ */ o(
|
|
2140
|
-
|
|
2141
|
+
Ga,
|
|
2141
2142
|
{
|
|
2142
2143
|
onClick: () => {
|
|
2143
|
-
n(),
|
|
2144
|
+
n(), Ya(s) && s();
|
|
2144
2145
|
},
|
|
2145
2146
|
children: e("Logout")
|
|
2146
2147
|
}
|
|
@@ -2150,13 +2151,13 @@ const zo = K(() => import("./page-manager-new-2gYNPR6y.js")), jo = ({ children:
|
|
|
2150
2151
|
] })
|
|
2151
2152
|
] })
|
|
2152
2153
|
] }) : null;
|
|
2153
|
-
},
|
|
2154
|
-
id:
|
|
2154
|
+
}, Pl = {
|
|
2155
|
+
id: ur,
|
|
2155
2156
|
label: "User Info",
|
|
2156
|
-
button:
|
|
2157
|
+
button: _l,
|
|
2157
2158
|
position: "bottom"
|
|
2158
|
-
},
|
|
2159
|
-
qt(
|
|
2159
|
+
}, wl = () => {
|
|
2160
|
+
qt(cr, Tl), qt(lr, pl), qt(ur, Pl), qt(or, gl);
|
|
2160
2161
|
};
|
|
2161
2162
|
var P = {
|
|
2162
2163
|
context: void 0,
|
|
@@ -2164,39 +2165,39 @@ var P = {
|
|
|
2164
2165
|
effects: void 0,
|
|
2165
2166
|
done: !1,
|
|
2166
2167
|
getContextId() {
|
|
2167
|
-
return
|
|
2168
|
+
return Ps(this.context.count);
|
|
2168
2169
|
},
|
|
2169
2170
|
getNextContextId() {
|
|
2170
|
-
return
|
|
2171
|
+
return Ps(this.context.count++);
|
|
2171
2172
|
}
|
|
2172
2173
|
};
|
|
2173
|
-
function
|
|
2174
|
+
function Ps(e) {
|
|
2174
2175
|
const t = String(e), n = t.length - 1;
|
|
2175
2176
|
return P.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
|
|
2176
2177
|
}
|
|
2177
2178
|
function pt(e) {
|
|
2178
2179
|
P.context = e;
|
|
2179
2180
|
}
|
|
2180
|
-
var
|
|
2181
|
-
equals:
|
|
2182
|
-
},
|
|
2181
|
+
var dr = !1, bl = (e, t) => e === t, sn = Symbol("solid-proxy"), fr = typeof Proxy == "function", hr = Symbol("solid-track"), rn = {
|
|
2182
|
+
equals: bl
|
|
2183
|
+
}, gr = Sr, ke = 1, an = 2, mr = {
|
|
2183
2184
|
owned: null,
|
|
2184
2185
|
cleanups: null,
|
|
2185
2186
|
context: null,
|
|
2186
2187
|
owner: null
|
|
2187
|
-
},
|
|
2188
|
+
}, kn = {}, L = null, Dn = null, Il = null, R = null, se = null, Le = null, Tn = 0;
|
|
2188
2189
|
function Me(e, t) {
|
|
2189
|
-
const n = R, s =
|
|
2190
|
+
const n = R, s = L, r = e.length === 0, a = t === void 0 ? s : t, i = r ? mr : {
|
|
2190
2191
|
owned: null,
|
|
2191
2192
|
cleanups: null,
|
|
2192
2193
|
context: a ? a.context : null,
|
|
2193
2194
|
owner: a
|
|
2194
2195
|
}, l = r ? e : () => e(() => ne(() => Pt(i)));
|
|
2195
|
-
|
|
2196
|
+
L = i, R = null;
|
|
2196
2197
|
try {
|
|
2197
2198
|
return be(l, !0);
|
|
2198
2199
|
} finally {
|
|
2199
|
-
R = n,
|
|
2200
|
+
R = n, L = s;
|
|
2200
2201
|
}
|
|
2201
2202
|
}
|
|
2202
2203
|
function H(e, t) {
|
|
@@ -2206,52 +2207,52 @@ function H(e, t) {
|
|
|
2206
2207
|
observers: null,
|
|
2207
2208
|
observerSlots: null,
|
|
2208
2209
|
comparator: t.equals || void 0
|
|
2209
|
-
}, s = (r) => (typeof r == "function" && (r = r(n.value)),
|
|
2210
|
-
return [
|
|
2210
|
+
}, s = (r) => (typeof r == "function" && (r = r(n.value)), Tr(n, r));
|
|
2211
|
+
return [Ar.bind(n), s];
|
|
2211
2212
|
}
|
|
2212
|
-
function
|
|
2213
|
-
const s = Sn(e, t, !0,
|
|
2213
|
+
function Nl(e, t, n) {
|
|
2214
|
+
const s = Sn(e, t, !0, ke);
|
|
2214
2215
|
gt(s);
|
|
2215
2216
|
}
|
|
2216
2217
|
function Fe(e, t, n) {
|
|
2217
|
-
const s = Sn(e, t, !1,
|
|
2218
|
+
const s = Sn(e, t, !1, ke);
|
|
2218
2219
|
gt(s);
|
|
2219
2220
|
}
|
|
2220
|
-
function
|
|
2221
|
-
|
|
2222
|
-
const s = Sn(e, t, !1,
|
|
2223
|
-
(!n || !n.render) && (s.user = !0),
|
|
2221
|
+
function Er(e, t, n) {
|
|
2222
|
+
gr = Rl;
|
|
2223
|
+
const s = Sn(e, t, !1, ke);
|
|
2224
|
+
(!n || !n.render) && (s.user = !0), Le ? Le.push(s) : gt(s);
|
|
2224
2225
|
}
|
|
2225
2226
|
function ee(e, t, n) {
|
|
2226
2227
|
n = n ? Object.assign({}, rn, n) : rn;
|
|
2227
2228
|
const s = Sn(e, t, !0, 0);
|
|
2228
|
-
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, gt(s),
|
|
2229
|
+
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, gt(s), Ar.bind(s);
|
|
2229
2230
|
}
|
|
2230
|
-
function
|
|
2231
|
+
function vl(e) {
|
|
2231
2232
|
return e && typeof e == "object" && "then" in e;
|
|
2232
2233
|
}
|
|
2233
|
-
function
|
|
2234
|
+
function Ll(e, t, n) {
|
|
2234
2235
|
let s, r, a;
|
|
2235
2236
|
s = !0, r = e, a = {};
|
|
2236
|
-
let i = null, l =
|
|
2237
|
-
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || H)(a.initialValue), [_,
|
|
2237
|
+
let i = null, l = kn, c = null, d = !1, f = "initialValue" in a, u = typeof s == "function" && ee(s);
|
|
2238
|
+
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || H)(a.initialValue), [_, I] = H(void 0), [y, A] = H(void 0, {
|
|
2238
2239
|
equals: !1
|
|
2239
2240
|
}), [b, q] = H(f ? "ready" : "unresolved");
|
|
2240
2241
|
P.context && (c = P.getNextContextId(), a.ssrLoadFrom === "initial" ? l = a.initialValue : P.load && P.has(c) && (l = P.load(c)));
|
|
2241
2242
|
function V(T, w, x, $) {
|
|
2242
2243
|
return i === T && (i = null, $ !== void 0 && (f = !0), (T === l || w === l) && a.onHydrated && queueMicrotask(() => a.onHydrated($, {
|
|
2243
2244
|
value: w
|
|
2244
|
-
})), l =
|
|
2245
|
+
})), l = kn, B(w, x)), w;
|
|
2245
2246
|
}
|
|
2246
2247
|
function B(T, w) {
|
|
2247
2248
|
be(() => {
|
|
2248
|
-
w === void 0 && p(() => T), q(w !== void 0 ? "errored" : f ? "ready" : "unresolved"),
|
|
2249
|
+
w === void 0 && p(() => T), q(w !== void 0 ? "errored" : f ? "ready" : "unresolved"), I(w);
|
|
2249
2250
|
for (const x of g.keys()) x.decrement();
|
|
2250
2251
|
g.clear();
|
|
2251
2252
|
}, !1);
|
|
2252
2253
|
}
|
|
2253
|
-
function
|
|
2254
|
-
const T =
|
|
2254
|
+
function de() {
|
|
2255
|
+
const T = Dl, w = h(), x = _();
|
|
2255
2256
|
if (x !== void 0 && !i) throw x;
|
|
2256
2257
|
return R && R.user, w;
|
|
2257
2258
|
}
|
|
@@ -2264,26 +2265,26 @@ function bl(e, t, n) {
|
|
|
2264
2265
|
return;
|
|
2265
2266
|
}
|
|
2266
2267
|
let x;
|
|
2267
|
-
const $ = l !==
|
|
2268
|
+
const $ = l !== kn ? l : ne(() => {
|
|
2268
2269
|
try {
|
|
2269
2270
|
return r(w, {
|
|
2270
2271
|
value: h(),
|
|
2271
2272
|
refetching: T
|
|
2272
2273
|
});
|
|
2273
|
-
} catch (
|
|
2274
|
-
x =
|
|
2274
|
+
} catch (fe) {
|
|
2275
|
+
x = fe;
|
|
2275
2276
|
}
|
|
2276
2277
|
});
|
|
2277
2278
|
if (x !== void 0) {
|
|
2278
2279
|
V(i, void 0, Xt(x), w);
|
|
2279
2280
|
return;
|
|
2280
|
-
} else if (!
|
|
2281
|
+
} else if (!vl($))
|
|
2281
2282
|
return V(i, $, void 0, w), $;
|
|
2282
2283
|
return i = $, "v" in $ ? ($.s === 1 ? V(i, $.v, void 0, w) : V(i, void 0, Xt($.v), w), $) : (d = !0, queueMicrotask(() => d = !1), be(() => {
|
|
2283
2284
|
q(f ? "refreshing" : "pending"), A();
|
|
2284
|
-
}, !1), $.then((
|
|
2285
|
+
}, !1), $.then((fe) => V($, fe, void 0, w), (fe) => V($, void 0, Xt(fe), w)));
|
|
2285
2286
|
}
|
|
2286
|
-
Object.defineProperties(
|
|
2287
|
+
Object.defineProperties(de, {
|
|
2287
2288
|
state: {
|
|
2288
2289
|
get: () => b()
|
|
2289
2290
|
},
|
|
@@ -2298,20 +2299,20 @@ function bl(e, t, n) {
|
|
|
2298
2299
|
},
|
|
2299
2300
|
latest: {
|
|
2300
2301
|
get() {
|
|
2301
|
-
if (!f) return
|
|
2302
|
+
if (!f) return de();
|
|
2302
2303
|
const T = _();
|
|
2303
2304
|
if (T && !i) throw T;
|
|
2304
2305
|
return h();
|
|
2305
2306
|
}
|
|
2306
2307
|
}
|
|
2307
2308
|
});
|
|
2308
|
-
let M =
|
|
2309
|
-
return u ?
|
|
2310
|
-
refetch: (T) =>
|
|
2309
|
+
let M = L;
|
|
2310
|
+
return u ? Nl(() => (M = L, ie(!1))) : ie(!1), [de, {
|
|
2311
|
+
refetch: (T) => pr(M, () => ie(T)),
|
|
2311
2312
|
mutate: p
|
|
2312
2313
|
}];
|
|
2313
2314
|
}
|
|
2314
|
-
function
|
|
2315
|
+
function nd(e) {
|
|
2315
2316
|
return be(e, !1);
|
|
2316
2317
|
}
|
|
2317
2318
|
function ne(e) {
|
|
@@ -2324,7 +2325,7 @@ function ne(e) {
|
|
|
2324
2325
|
R = t;
|
|
2325
2326
|
}
|
|
2326
2327
|
}
|
|
2327
|
-
function
|
|
2328
|
+
function sd(e, t, n) {
|
|
2328
2329
|
const s = Array.isArray(e);
|
|
2329
2330
|
let r, a = n && n.defer;
|
|
2330
2331
|
return (i) => {
|
|
@@ -2339,61 +2340,61 @@ function Ju(e, t, n) {
|
|
|
2339
2340
|
return r = l, c;
|
|
2340
2341
|
};
|
|
2341
2342
|
}
|
|
2342
|
-
function
|
|
2343
|
-
|
|
2343
|
+
function Cl(e) {
|
|
2344
|
+
Er(() => ne(e));
|
|
2344
2345
|
}
|
|
2345
2346
|
function _t(e) {
|
|
2346
|
-
return
|
|
2347
|
+
return L === null || (L.cleanups === null ? L.cleanups = [e] : L.cleanups.push(e)), e;
|
|
2347
2348
|
}
|
|
2348
|
-
function
|
|
2349
|
-
return
|
|
2349
|
+
function ws() {
|
|
2350
|
+
return L;
|
|
2350
2351
|
}
|
|
2351
|
-
function
|
|
2352
|
-
const n =
|
|
2353
|
-
|
|
2352
|
+
function pr(e, t) {
|
|
2353
|
+
const n = L, s = R;
|
|
2354
|
+
L = e, R = null;
|
|
2354
2355
|
try {
|
|
2355
2356
|
return be(t, !0);
|
|
2356
2357
|
} catch (r) {
|
|
2357
2358
|
rs(r);
|
|
2358
2359
|
} finally {
|
|
2359
|
-
|
|
2360
|
+
L = n, R = s;
|
|
2360
2361
|
}
|
|
2361
2362
|
}
|
|
2362
|
-
function
|
|
2363
|
-
const t = R, n =
|
|
2363
|
+
function Gl(e) {
|
|
2364
|
+
const t = R, n = L;
|
|
2364
2365
|
return Promise.resolve().then(() => {
|
|
2365
|
-
R = t,
|
|
2366
|
+
R = t, L = n;
|
|
2366
2367
|
let s;
|
|
2367
|
-
return be(e, !1), R =
|
|
2368
|
+
return be(e, !1), R = L = null, s ? s.done : void 0;
|
|
2368
2369
|
});
|
|
2369
2370
|
}
|
|
2370
|
-
var [
|
|
2371
|
-
function
|
|
2372
|
-
return [
|
|
2371
|
+
var [kl, rd] = /* @__PURE__ */ H(!1);
|
|
2372
|
+
function ad() {
|
|
2373
|
+
return [kl, Gl];
|
|
2373
2374
|
}
|
|
2374
|
-
function
|
|
2375
|
+
function id(e, t) {
|
|
2375
2376
|
const n = Symbol("context");
|
|
2376
2377
|
return {
|
|
2377
2378
|
id: n,
|
|
2378
|
-
Provider:
|
|
2379
|
+
Provider: Ul(n),
|
|
2379
2380
|
defaultValue: e
|
|
2380
2381
|
};
|
|
2381
2382
|
}
|
|
2382
|
-
function
|
|
2383
|
+
function od(e) {
|
|
2383
2384
|
let t;
|
|
2384
|
-
return
|
|
2385
|
+
return L && L.context && (t = L.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
2385
2386
|
}
|
|
2386
|
-
function
|
|
2387
|
+
function yr(e) {
|
|
2387
2388
|
const t = ee(e), n = ee(() => Mn(t()));
|
|
2388
2389
|
return n.toArray = () => {
|
|
2389
2390
|
const s = n();
|
|
2390
2391
|
return Array.isArray(s) ? s : s != null ? [s] : [];
|
|
2391
2392
|
}, n;
|
|
2392
2393
|
}
|
|
2393
|
-
var
|
|
2394
|
-
function
|
|
2394
|
+
var Dl;
|
|
2395
|
+
function Ar() {
|
|
2395
2396
|
if (this.sources && this.state)
|
|
2396
|
-
if (this.state ===
|
|
2397
|
+
if (this.state === ke) gt(this);
|
|
2397
2398
|
else {
|
|
2398
2399
|
const e = se;
|
|
2399
2400
|
se = null, be(() => ln(this), !1), se = e;
|
|
@@ -2404,12 +2405,12 @@ function pr() {
|
|
|
2404
2405
|
}
|
|
2405
2406
|
return this.value;
|
|
2406
2407
|
}
|
|
2407
|
-
function
|
|
2408
|
+
function Tr(e, t, n) {
|
|
2408
2409
|
let s = e.value;
|
|
2409
2410
|
return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && be(() => {
|
|
2410
2411
|
for (let r = 0; r < e.observers.length; r += 1) {
|
|
2411
|
-
const a = e.observers[r], i =
|
|
2412
|
-
i &&
|
|
2412
|
+
const a = e.observers[r], i = Dn && Dn.running;
|
|
2413
|
+
i && Dn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? se.push(a) : Le.push(a), a.observers && _r(a)), i || (a.state = ke);
|
|
2413
2414
|
}
|
|
2414
2415
|
if (se.length > 1e6)
|
|
2415
2416
|
throw se = [], new Error();
|
|
@@ -2419,22 +2420,22 @@ function gt(e) {
|
|
|
2419
2420
|
if (!e.fn) return;
|
|
2420
2421
|
Pt(e);
|
|
2421
2422
|
const t = Tn;
|
|
2422
|
-
|
|
2423
|
+
Ol(e, e.value, t);
|
|
2423
2424
|
}
|
|
2424
|
-
function
|
|
2425
|
+
function Ol(e, t, n) {
|
|
2425
2426
|
let s;
|
|
2426
|
-
const r =
|
|
2427
|
-
R =
|
|
2427
|
+
const r = L, a = R;
|
|
2428
|
+
R = L = e;
|
|
2428
2429
|
try {
|
|
2429
2430
|
s = e.fn(t);
|
|
2430
2431
|
} catch (i) {
|
|
2431
|
-
return e.pure && (e.state =
|
|
2432
|
+
return e.pure && (e.state = ke, e.owned && e.owned.forEach(Pt), e.owned = null), e.updatedAt = n + 1, rs(i);
|
|
2432
2433
|
} finally {
|
|
2433
|
-
R = a,
|
|
2434
|
+
R = a, L = r;
|
|
2434
2435
|
}
|
|
2435
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
2436
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Tr(e, s) : e.value = s, e.updatedAt = n);
|
|
2436
2437
|
}
|
|
2437
|
-
function Sn(e, t, n, s =
|
|
2438
|
+
function Sn(e, t, n, s = ke, r) {
|
|
2438
2439
|
const a = {
|
|
2439
2440
|
fn: e,
|
|
2440
2441
|
state: s,
|
|
@@ -2444,11 +2445,11 @@ function Sn(e, t, n, s = De, r) {
|
|
|
2444
2445
|
sourceSlots: null,
|
|
2445
2446
|
cleanups: null,
|
|
2446
2447
|
value: t,
|
|
2447
|
-
owner:
|
|
2448
|
-
context:
|
|
2448
|
+
owner: L,
|
|
2449
|
+
context: L ? L.context : null,
|
|
2449
2450
|
pure: n
|
|
2450
2451
|
};
|
|
2451
|
-
return
|
|
2452
|
+
return L === null || L !== mr && (L.owned ? L.owned.push(a) : L.owned = [a]), a;
|
|
2452
2453
|
}
|
|
2453
2454
|
function on(e) {
|
|
2454
2455
|
if (e.state === 0) return;
|
|
@@ -2458,7 +2459,7 @@ function on(e) {
|
|
|
2458
2459
|
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Tn); )
|
|
2459
2460
|
e.state && t.push(e);
|
|
2460
2461
|
for (let n = t.length - 1; n >= 0; n--)
|
|
2461
|
-
if (e = t[n], e.state ===
|
|
2462
|
+
if (e = t[n], e.state === ke)
|
|
2462
2463
|
gt(e);
|
|
2463
2464
|
else if (e.state === an) {
|
|
2464
2465
|
const s = se;
|
|
@@ -2468,23 +2469,23 @@ function on(e) {
|
|
|
2468
2469
|
function be(e, t) {
|
|
2469
2470
|
if (se) return e();
|
|
2470
2471
|
let n = !1;
|
|
2471
|
-
t || (se = []),
|
|
2472
|
+
t || (se = []), Le ? n = !0 : Le = [], Tn++;
|
|
2472
2473
|
try {
|
|
2473
2474
|
const s = e();
|
|
2474
|
-
return
|
|
2475
|
+
return xl(n), s;
|
|
2475
2476
|
} catch (s) {
|
|
2476
|
-
n || (
|
|
2477
|
+
n || (Le = null), se = null, rs(s);
|
|
2477
2478
|
}
|
|
2478
2479
|
}
|
|
2479
|
-
function
|
|
2480
|
-
if (se && (
|
|
2481
|
-
const t =
|
|
2482
|
-
|
|
2480
|
+
function xl(e) {
|
|
2481
|
+
if (se && (Sr(se), se = null), e) return;
|
|
2482
|
+
const t = Le;
|
|
2483
|
+
Le = null, t.length && be(() => gr(t), !1);
|
|
2483
2484
|
}
|
|
2484
|
-
function
|
|
2485
|
+
function Sr(e) {
|
|
2485
2486
|
for (let t = 0; t < e.length; t++) on(e[t]);
|
|
2486
2487
|
}
|
|
2487
|
-
function
|
|
2488
|
+
function Rl(e) {
|
|
2488
2489
|
let t, n = 0;
|
|
2489
2490
|
for (t = 0; t < e.length; t++) {
|
|
2490
2491
|
const s = e[t];
|
|
@@ -2505,14 +2506,14 @@ function ln(e, t) {
|
|
|
2505
2506
|
const s = e.sources[n];
|
|
2506
2507
|
if (s.sources) {
|
|
2507
2508
|
const r = s.state;
|
|
2508
|
-
r ===
|
|
2509
|
+
r === ke ? s !== t && (!s.updatedAt || s.updatedAt < Tn) && on(s) : r === an && ln(s, t);
|
|
2509
2510
|
}
|
|
2510
2511
|
}
|
|
2511
2512
|
}
|
|
2512
|
-
function
|
|
2513
|
+
function _r(e) {
|
|
2513
2514
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
2514
2515
|
const n = e.observers[t];
|
|
2515
|
-
n.state || (n.state = an, n.pure ? se.push(n) :
|
|
2516
|
+
n.state || (n.state = an, n.pure ? se.push(n) : Le.push(n), n.observers && _r(n));
|
|
2516
2517
|
}
|
|
2517
2518
|
}
|
|
2518
2519
|
function Pt(e) {
|
|
@@ -2544,7 +2545,7 @@ function Xt(e) {
|
|
|
2544
2545
|
cause: e
|
|
2545
2546
|
});
|
|
2546
2547
|
}
|
|
2547
|
-
function rs(e, t =
|
|
2548
|
+
function rs(e, t = L) {
|
|
2548
2549
|
throw Xt(e);
|
|
2549
2550
|
}
|
|
2550
2551
|
function Mn(e) {
|
|
@@ -2559,25 +2560,25 @@ function Mn(e) {
|
|
|
2559
2560
|
}
|
|
2560
2561
|
return e;
|
|
2561
2562
|
}
|
|
2562
|
-
function
|
|
2563
|
+
function Ul(e, t) {
|
|
2563
2564
|
return function(s) {
|
|
2564
2565
|
let r;
|
|
2565
|
-
return Fe(() => r = ne(() => (
|
|
2566
|
-
...
|
|
2566
|
+
return Fe(() => r = ne(() => (L.context = {
|
|
2567
|
+
...L.context,
|
|
2567
2568
|
[e]: s.value
|
|
2568
|
-
},
|
|
2569
|
+
}, yr(() => s.children))), void 0), r;
|
|
2569
2570
|
};
|
|
2570
2571
|
}
|
|
2571
2572
|
var Fn = Symbol("fallback");
|
|
2572
2573
|
function cn(e) {
|
|
2573
2574
|
for (let t = 0; t < e.length; t++) e[t]();
|
|
2574
2575
|
}
|
|
2575
|
-
function
|
|
2576
|
+
function Bl(e, t, n = {}) {
|
|
2576
2577
|
let s = [], r = [], a = [], i = 0, l = t.length > 1 ? [] : null;
|
|
2577
2578
|
return _t(() => cn(a)), () => {
|
|
2578
2579
|
let c = e() || [], d = c.length, f, u;
|
|
2579
|
-
return c[
|
|
2580
|
-
let h, p, _,
|
|
2580
|
+
return c[hr], ne(() => {
|
|
2581
|
+
let h, p, _, I, y, A, b, q, V;
|
|
2581
2582
|
if (d === 0)
|
|
2582
2583
|
i !== 0 && (cn(a), a = [], s = [], r = [], i = 0, l && (l = [])), n.fallback && (s = [Fn], r[0] = Me((B) => (a[0] = B, n.fallback())), i = 1);
|
|
2583
2584
|
else if (i === 0) {
|
|
@@ -2585,15 +2586,15 @@ function Ol(e, t, n = {}) {
|
|
|
2585
2586
|
s[u] = c[u], r[u] = Me(g);
|
|
2586
2587
|
i = d;
|
|
2587
2588
|
} else {
|
|
2588
|
-
for (_ = new Array(d),
|
|
2589
|
+
for (_ = new Array(d), I = new Array(d), l && (y = new Array(d)), A = 0, b = Math.min(i, d); A < b && s[A] === c[A]; A++) ;
|
|
2589
2590
|
for (b = i - 1, q = d - 1; b >= A && q >= A && s[b] === c[q]; b--, q--)
|
|
2590
|
-
_[q] = r[b],
|
|
2591
|
+
_[q] = r[b], I[q] = a[b], l && (y[q] = l[b]);
|
|
2591
2592
|
for (h = /* @__PURE__ */ new Map(), p = new Array(q + 1), u = q; u >= A; u--)
|
|
2592
2593
|
V = c[u], f = h.get(V), p[u] = f === void 0 ? -1 : f, h.set(V, u);
|
|
2593
2594
|
for (f = A; f <= b; f++)
|
|
2594
|
-
V = s[f], u = h.get(V), u !== void 0 && u !== -1 ? (_[u] = r[f],
|
|
2595
|
+
V = s[f], u = h.get(V), u !== void 0 && u !== -1 ? (_[u] = r[f], I[u] = a[f], l && (y[u] = l[f]), u = p[u], h.set(V, u)) : a[f]();
|
|
2595
2596
|
for (u = A; u < d; u++)
|
|
2596
|
-
u in _ ? (r[u] = _[u], a[u] =
|
|
2597
|
+
u in _ ? (r[u] = _[u], a[u] = I[u], l && (l[u] = y[u], l[u](u))) : r[u] = Me(g);
|
|
2597
2598
|
r = r.slice(0, i = d), s = c.slice(0);
|
|
2598
2599
|
}
|
|
2599
2600
|
return r;
|
|
@@ -2607,11 +2608,11 @@ function Ol(e, t, n = {}) {
|
|
|
2607
2608
|
}
|
|
2608
2609
|
};
|
|
2609
2610
|
}
|
|
2610
|
-
function
|
|
2611
|
+
function Ml(e, t, n = {}) {
|
|
2611
2612
|
let s = [], r = [], a = [], i = [], l = 0, c;
|
|
2612
2613
|
return _t(() => cn(a)), () => {
|
|
2613
2614
|
const d = e() || [], f = d.length;
|
|
2614
|
-
return d[
|
|
2615
|
+
return d[hr], ne(() => {
|
|
2615
2616
|
if (f === 0)
|
|
2616
2617
|
return l !== 0 && (cn(a), a = [], s = [], r = [], l = 0, i = []), n.fallback && (s = [Fn], r[0] = Me((g) => (a[0] = g, n.fallback())), l = 1), r;
|
|
2617
2618
|
for (s[0] === Fn && (a[0](), a = [], s = [], r = [], l = 0), c = 0; c < f; c++)
|
|
@@ -2627,7 +2628,7 @@ function xl(e, t, n = {}) {
|
|
|
2627
2628
|
}
|
|
2628
2629
|
};
|
|
2629
2630
|
}
|
|
2630
|
-
function
|
|
2631
|
+
function Pr(e, t) {
|
|
2631
2632
|
return ne(() => e(t || {}));
|
|
2632
2633
|
}
|
|
2633
2634
|
function zt() {
|
|
@@ -2660,19 +2661,19 @@ var Hn = {
|
|
|
2660
2661
|
function On(e) {
|
|
2661
2662
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
2662
2663
|
}
|
|
2663
|
-
function
|
|
2664
|
+
function Fl() {
|
|
2664
2665
|
for (let e = 0, t = this.length; e < t; ++e) {
|
|
2665
2666
|
const n = this[e]();
|
|
2666
2667
|
if (n !== void 0) return n;
|
|
2667
2668
|
}
|
|
2668
2669
|
}
|
|
2669
|
-
function
|
|
2670
|
+
function wr(...e) {
|
|
2670
2671
|
let t = !1;
|
|
2671
2672
|
for (let i = 0; i < e.length; i++) {
|
|
2672
2673
|
const l = e[i];
|
|
2673
2674
|
t = t || !!l && sn in l, e[i] = typeof l == "function" ? (t = !0, ee(l)) : l;
|
|
2674
2675
|
}
|
|
2675
|
-
if (
|
|
2676
|
+
if (fr && t)
|
|
2676
2677
|
return new Proxy({
|
|
2677
2678
|
get(i) {
|
|
2678
2679
|
for (let l = e.length - 1; l >= 0; l--) {
|
|
@@ -2704,7 +2705,7 @@ function _r(...e) {
|
|
|
2704
2705
|
s[f] = u.get ? {
|
|
2705
2706
|
enumerable: !0,
|
|
2706
2707
|
configurable: !0,
|
|
2707
|
-
get:
|
|
2708
|
+
get: Fl.bind(n[f] = [u.get.bind(l)])
|
|
2708
2709
|
} : u.value !== void 0 ? u : void 0;
|
|
2709
2710
|
else {
|
|
2710
2711
|
const g = n[f];
|
|
@@ -2719,8 +2720,8 @@ function _r(...e) {
|
|
|
2719
2720
|
}
|
|
2720
2721
|
return r;
|
|
2721
2722
|
}
|
|
2722
|
-
function
|
|
2723
|
-
if (
|
|
2723
|
+
function Hl(e, ...t) {
|
|
2724
|
+
if (fr && sn in e) {
|
|
2724
2725
|
const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
|
|
2725
2726
|
get(l) {
|
|
2726
2727
|
return i.includes(l) ? e[l] : void 0;
|
|
@@ -2754,7 +2755,7 @@ function Ul(e, ...t) {
|
|
|
2754
2755
|
}
|
|
2755
2756
|
return [...s, n];
|
|
2756
2757
|
}
|
|
2757
|
-
function
|
|
2758
|
+
function br(e) {
|
|
2758
2759
|
let t, n;
|
|
2759
2760
|
const s = (r) => {
|
|
2760
2761
|
const a = P.context;
|
|
@@ -2764,7 +2765,7 @@ function Pr(e) {
|
|
|
2764
2765
|
!P.done && pt(a), P.count--, c(() => d.default), pt();
|
|
2765
2766
|
}), t = l;
|
|
2766
2767
|
} else if (!t) {
|
|
2767
|
-
const [l] =
|
|
2768
|
+
const [l] = Ll(() => (n || (n = e())).then((c) => c.default));
|
|
2768
2769
|
t = l;
|
|
2769
2770
|
}
|
|
2770
2771
|
let i;
|
|
@@ -2778,24 +2779,24 @@ function Pr(e) {
|
|
|
2778
2779
|
};
|
|
2779
2780
|
return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
|
|
2780
2781
|
}
|
|
2781
|
-
var
|
|
2782
|
-
function
|
|
2783
|
-
return P.context ? P.getNextContextId() : `cl-${
|
|
2782
|
+
var Kl = 0;
|
|
2783
|
+
function ld() {
|
|
2784
|
+
return P.context ? P.getNextContextId() : `cl-${Kl++}`;
|
|
2784
2785
|
}
|
|
2785
|
-
var
|
|
2786
|
-
function
|
|
2786
|
+
var Ir = (e) => `Stale read from <${e}>.`;
|
|
2787
|
+
function cd(e) {
|
|
2787
2788
|
const t = "fallback" in e && {
|
|
2788
2789
|
fallback: () => e.fallback
|
|
2789
2790
|
};
|
|
2790
|
-
return ee(
|
|
2791
|
+
return ee(Bl(() => e.each, e.children, t || void 0));
|
|
2791
2792
|
}
|
|
2792
|
-
function
|
|
2793
|
+
function ud(e) {
|
|
2793
2794
|
const t = "fallback" in e && {
|
|
2794
2795
|
fallback: () => e.fallback
|
|
2795
2796
|
};
|
|
2796
|
-
return ee(
|
|
2797
|
+
return ee(Ml(() => e.each, e.children, t || void 0));
|
|
2797
2798
|
}
|
|
2798
|
-
function
|
|
2799
|
+
function dd(e) {
|
|
2799
2800
|
const t = e.keyed, n = ee(() => e.when, void 0, void 0), s = t ? n : ee(n, void 0, {
|
|
2800
2801
|
equals: (r, a) => !r == !a
|
|
2801
2802
|
});
|
|
@@ -2804,15 +2805,15 @@ function ad(e) {
|
|
|
2804
2805
|
if (r) {
|
|
2805
2806
|
const a = e.children;
|
|
2806
2807
|
return typeof a == "function" && a.length > 0 ? ne(() => a(t ? r : () => {
|
|
2807
|
-
if (!ne(s)) throw
|
|
2808
|
+
if (!ne(s)) throw Ir("Show");
|
|
2808
2809
|
return n();
|
|
2809
2810
|
})) : a;
|
|
2810
2811
|
}
|
|
2811
2812
|
return e.fallback;
|
|
2812
2813
|
}, void 0, void 0);
|
|
2813
2814
|
}
|
|
2814
|
-
function
|
|
2815
|
-
const t =
|
|
2815
|
+
function fd(e) {
|
|
2816
|
+
const t = yr(() => e.children), n = ee(() => {
|
|
2816
2817
|
const s = t(), r = Array.isArray(s) ? s : [s];
|
|
2817
2818
|
let a = () => {
|
|
2818
2819
|
};
|
|
@@ -2830,18 +2831,18 @@ function id(e) {
|
|
|
2830
2831
|
const [r, a, i] = s, l = i.children;
|
|
2831
2832
|
return typeof l == "function" && l.length > 0 ? ne(() => l(i.keyed ? a() : () => {
|
|
2832
2833
|
var d;
|
|
2833
|
-
if (((d = ne(n)()) == null ? void 0 : d[0]) !== r) throw
|
|
2834
|
+
if (((d = ne(n)()) == null ? void 0 : d[0]) !== r) throw Ir("Match");
|
|
2834
2835
|
return a();
|
|
2835
2836
|
})) : l;
|
|
2836
2837
|
}, void 0, void 0);
|
|
2837
2838
|
}
|
|
2838
|
-
function
|
|
2839
|
+
function hd(e) {
|
|
2839
2840
|
return e;
|
|
2840
2841
|
}
|
|
2841
|
-
var
|
|
2842
|
+
var Vl = ["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"], ql = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...Vl]), $l = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Ql = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2842
2843
|
className: "class",
|
|
2843
2844
|
htmlFor: "for"
|
|
2844
|
-
}),
|
|
2845
|
+
}), Wl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2845
2846
|
class: "className",
|
|
2846
2847
|
novalidate: {
|
|
2847
2848
|
$: "noValidate",
|
|
@@ -2870,11 +2871,11 @@ var Ml = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
|
|
|
2870
2871
|
TEXTAREA: 1
|
|
2871
2872
|
}
|
|
2872
2873
|
});
|
|
2873
|
-
function
|
|
2874
|
-
const n =
|
|
2874
|
+
function zl(e, t) {
|
|
2875
|
+
const n = Wl[e];
|
|
2875
2876
|
return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
|
|
2876
2877
|
}
|
|
2877
|
-
var
|
|
2878
|
+
var jl = /* @__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"]), Yl = /* @__PURE__ */ new Set([
|
|
2878
2879
|
"altGlyph",
|
|
2879
2880
|
"altGlyphDef",
|
|
2880
2881
|
"altGlyphItem",
|
|
@@ -2952,11 +2953,11 @@ var $l = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
|
2952
2953
|
"use",
|
|
2953
2954
|
"view",
|
|
2954
2955
|
"vkern"
|
|
2955
|
-
]),
|
|
2956
|
+
]), Jl = {
|
|
2956
2957
|
xlink: "http://www.w3.org/1999/xlink",
|
|
2957
2958
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
2958
|
-
},
|
|
2959
|
-
function
|
|
2959
|
+
}, gd = (e) => ee(() => e());
|
|
2960
|
+
function Zl(e, t, n) {
|
|
2960
2961
|
let s = n.length, r = t.length, a = s, i = 0, l = 0, c = t[r - 1].nextSibling, d = null;
|
|
2961
2962
|
for (; i < r || l < a; ) {
|
|
2962
2963
|
if (t[i] === n[l]) {
|
|
@@ -2996,7 +2997,7 @@ function zl(e, t, n) {
|
|
|
2996
2997
|
}
|
|
2997
2998
|
}
|
|
2998
2999
|
var yt = "_$DX_DELEGATE";
|
|
2999
|
-
function
|
|
3000
|
+
function Nr(e, t, n, s = {}) {
|
|
3000
3001
|
let r;
|
|
3001
3002
|
return Me((a) => {
|
|
3002
3003
|
r = a, t === document ? e() : Vn(t, e(), t.firstChild ? null : void 0, n);
|
|
@@ -3004,7 +3005,7 @@ function br(e, t, n, s = {}) {
|
|
|
3004
3005
|
r(), t.textContent = "";
|
|
3005
3006
|
};
|
|
3006
3007
|
}
|
|
3007
|
-
function
|
|
3008
|
+
function md(e, t, n, s) {
|
|
3008
3009
|
let r;
|
|
3009
3010
|
const a = () => {
|
|
3010
3011
|
const l = document.createElement("template");
|
|
@@ -3012,32 +3013,32 @@ function cd(e, t, n, s) {
|
|
|
3012
3013
|
}, i = () => (r || (r = a())).cloneNode(!0);
|
|
3013
3014
|
return i.cloneNode = i, i;
|
|
3014
3015
|
}
|
|
3015
|
-
function
|
|
3016
|
+
function Xl(e, t = window.document) {
|
|
3016
3017
|
const n = t[yt] || (t[yt] = /* @__PURE__ */ new Set());
|
|
3017
3018
|
for (let s = 0, r = e.length; s < r; s++) {
|
|
3018
3019
|
const a = e[s];
|
|
3019
|
-
n.has(a) || (n.add(a), t.addEventListener(a,
|
|
3020
|
+
n.has(a) || (n.add(a), t.addEventListener(a, vr));
|
|
3020
3021
|
}
|
|
3021
3022
|
}
|
|
3022
|
-
function
|
|
3023
|
+
function Ed(e = window.document) {
|
|
3023
3024
|
if (e[yt]) {
|
|
3024
|
-
for (let t of e[yt].keys()) e.removeEventListener(t,
|
|
3025
|
+
for (let t of e[yt].keys()) e.removeEventListener(t, vr);
|
|
3025
3026
|
delete e[yt];
|
|
3026
3027
|
}
|
|
3027
3028
|
}
|
|
3028
3029
|
function Kn(e, t, n) {
|
|
3029
3030
|
$e(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
3030
3031
|
}
|
|
3031
|
-
function
|
|
3032
|
+
function ec(e, t, n, s) {
|
|
3032
3033
|
$e(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
|
|
3033
3034
|
}
|
|
3034
|
-
function
|
|
3035
|
+
function tc(e, t, n) {
|
|
3035
3036
|
$e(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
|
|
3036
3037
|
}
|
|
3037
|
-
function
|
|
3038
|
+
function nc(e, t) {
|
|
3038
3039
|
$e(e) || (t == null ? e.removeAttribute("class") : e.className = t);
|
|
3039
3040
|
}
|
|
3040
|
-
function
|
|
3041
|
+
function sc(e, t, n, s) {
|
|
3041
3042
|
if (s)
|
|
3042
3043
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
3043
3044
|
else if (Array.isArray(n)) {
|
|
@@ -3045,20 +3046,20 @@ function Xl(e, t, n, s) {
|
|
|
3045
3046
|
e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
|
|
3046
3047
|
} else e.addEventListener(t, n, typeof n != "function" && n);
|
|
3047
3048
|
}
|
|
3048
|
-
function
|
|
3049
|
+
function rc(e, t, n = {}) {
|
|
3049
3050
|
const s = Object.keys(t || {}), r = Object.keys(n);
|
|
3050
3051
|
let a, i;
|
|
3051
3052
|
for (a = 0, i = r.length; a < i; a++) {
|
|
3052
3053
|
const l = r[a];
|
|
3053
|
-
!l || l === "undefined" || t[l] || (
|
|
3054
|
+
!l || l === "undefined" || t[l] || (bs(e, l, !1), delete n[l]);
|
|
3054
3055
|
}
|
|
3055
3056
|
for (a = 0, i = s.length; a < i; a++) {
|
|
3056
3057
|
const l = s[a], c = !!t[l];
|
|
3057
|
-
!l || l === "undefined" || n[l] === c || !c || (
|
|
3058
|
+
!l || l === "undefined" || n[l] === c || !c || (bs(e, l, !0), n[l] = c);
|
|
3058
3059
|
}
|
|
3059
3060
|
return n;
|
|
3060
3061
|
}
|
|
3061
|
-
function
|
|
3062
|
+
function ac(e, t, n) {
|
|
3062
3063
|
if (!t) return n ? Kn(e, "style") : t;
|
|
3063
3064
|
const s = e.style;
|
|
3064
3065
|
if (typeof t == "string") return s.cssText = t;
|
|
@@ -3070,49 +3071,49 @@ function tc(e, t, n) {
|
|
|
3070
3071
|
r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
|
|
3071
3072
|
return n;
|
|
3072
3073
|
}
|
|
3073
|
-
function
|
|
3074
|
+
function ic(e, t = {}, n, s) {
|
|
3074
3075
|
const r = {};
|
|
3075
|
-
return s || Fe(() => r.children = wt(e, t.children, r.children)), Fe(() => typeof t.ref == "function" &&
|
|
3076
|
+
return s || Fe(() => r.children = wt(e, t.children, r.children)), Fe(() => typeof t.ref == "function" && oc(t.ref, e)), Fe(() => lc(e, t, n, !0, r, !0)), r;
|
|
3076
3077
|
}
|
|
3077
|
-
function
|
|
3078
|
+
function oc(e, t, n) {
|
|
3078
3079
|
return ne(() => e(t, n));
|
|
3079
3080
|
}
|
|
3080
3081
|
function Vn(e, t, n, s) {
|
|
3081
3082
|
if (n !== void 0 && !s && (s = []), typeof t != "function") return wt(e, t, s, n);
|
|
3082
3083
|
Fe((r) => wt(e, t(), r, n), s);
|
|
3083
3084
|
}
|
|
3084
|
-
function
|
|
3085
|
+
function lc(e, t, n, s, r = {}, a = !1) {
|
|
3085
3086
|
t || (t = {});
|
|
3086
3087
|
for (const i in r)
|
|
3087
3088
|
if (!(i in t)) {
|
|
3088
3089
|
if (i === "children") continue;
|
|
3089
|
-
r[i] =
|
|
3090
|
+
r[i] = Is(e, i, null, r[i], n, a, t);
|
|
3090
3091
|
}
|
|
3091
3092
|
for (const i in t) {
|
|
3092
3093
|
if (i === "children")
|
|
3093
3094
|
continue;
|
|
3094
3095
|
const l = t[i];
|
|
3095
|
-
r[i] =
|
|
3096
|
+
r[i] = Is(e, i, l, r[i], n, a, t);
|
|
3096
3097
|
}
|
|
3097
3098
|
}
|
|
3098
|
-
function
|
|
3099
|
+
function cc(e) {
|
|
3099
3100
|
let t, n;
|
|
3100
|
-
return !$e() || !(t = P.registry.get(n =
|
|
3101
|
+
return !$e() || !(t = P.registry.get(n = dc())) ? e() : (P.completed && P.completed.add(t), P.registry.delete(n), t);
|
|
3101
3102
|
}
|
|
3102
3103
|
function $e(e) {
|
|
3103
3104
|
return !!P.context && !P.done && (!e || e.isConnected);
|
|
3104
3105
|
}
|
|
3105
|
-
function
|
|
3106
|
+
function uc(e) {
|
|
3106
3107
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
3107
3108
|
}
|
|
3108
|
-
function
|
|
3109
|
+
function bs(e, t, n) {
|
|
3109
3110
|
const s = t.trim().split(/\s+/);
|
|
3110
3111
|
for (let r = 0, a = s.length; r < a; r++) e.classList.toggle(s[r], n);
|
|
3111
3112
|
}
|
|
3112
|
-
function
|
|
3113
|
+
function Is(e, t, n, s, r, a, i) {
|
|
3113
3114
|
let l, c, d, f, u;
|
|
3114
|
-
if (t === "style") return
|
|
3115
|
-
if (t === "classList") return
|
|
3115
|
+
if (t === "style") return ac(e, n, s);
|
|
3116
|
+
if (t === "classList") return rc(e, n, s);
|
|
3116
3117
|
if (n === s) return s;
|
|
3117
3118
|
if (t === "ref")
|
|
3118
3119
|
a || n(e);
|
|
@@ -3123,28 +3124,28 @@ function bs(e, t, n, s, r, a, i) {
|
|
|
3123
3124
|
const g = t.slice(10);
|
|
3124
3125
|
s && e.removeEventListener(g, s, !0), n && e.addEventListener(g, n, !0);
|
|
3125
3126
|
} else if (t.slice(0, 2) === "on") {
|
|
3126
|
-
const g = t.slice(2).toLowerCase(), h =
|
|
3127
|
+
const g = t.slice(2).toLowerCase(), h = jl.has(g);
|
|
3127
3128
|
if (!h && s) {
|
|
3128
3129
|
const p = Array.isArray(s) ? s[0] : s;
|
|
3129
3130
|
e.removeEventListener(g, p);
|
|
3130
3131
|
}
|
|
3131
|
-
(h || n) && (
|
|
3132
|
+
(h || n) && (sc(e, g, n, h), h && Xl([g]));
|
|
3132
3133
|
} else if (t.slice(0, 5) === "attr:")
|
|
3133
3134
|
Kn(e, t.slice(5), n);
|
|
3134
3135
|
else if (t.slice(0, 5) === "bool:")
|
|
3135
|
-
|
|
3136
|
-
else if ((u = t.slice(0, 5) === "prop:") || (d =
|
|
3136
|
+
tc(e, t.slice(5), n);
|
|
3137
|
+
else if ((u = t.slice(0, 5) === "prop:") || (d = $l.has(t)) || !r && ((f = zl(t, e.tagName)) || (c = ql.has(t))) || (l = e.nodeName.includes("-") || "is" in i)) {
|
|
3137
3138
|
if (u)
|
|
3138
3139
|
t = t.slice(5), c = !0;
|
|
3139
3140
|
else if ($e(e)) return n;
|
|
3140
|
-
t === "class" || t === "className" ?
|
|
3141
|
+
t === "class" || t === "className" ? nc(e, n) : l && !c && !d ? e[uc(t)] = n : e[f || t] = n;
|
|
3141
3142
|
} else {
|
|
3142
|
-
const g = r && t.indexOf(":") > -1 &&
|
|
3143
|
-
g ?
|
|
3143
|
+
const g = r && t.indexOf(":") > -1 && Jl[t.split(":")[0]];
|
|
3144
|
+
g ? ec(e, g, t, n) : Kn(e, Ql[t] || t, n);
|
|
3144
3145
|
}
|
|
3145
3146
|
return n;
|
|
3146
3147
|
}
|
|
3147
|
-
function
|
|
3148
|
+
function vr(e) {
|
|
3148
3149
|
if (P.registry && P.events && P.events.find(([c, d]) => d === e))
|
|
3149
3150
|
return;
|
|
3150
3151
|
let t = e.target;
|
|
@@ -3227,7 +3228,7 @@ function wt(e, t, n, s, r) {
|
|
|
3227
3228
|
}
|
|
3228
3229
|
if (c.length === 0) {
|
|
3229
3230
|
if (n = We(e, n, s), l) return n;
|
|
3230
|
-
} else d ? n.length === 0 ? Ns(e, c, s) :
|
|
3231
|
+
} else d ? n.length === 0 ? Ns(e, c, s) : Zl(e, n, c) : (n && We(e), Ns(e, c));
|
|
3231
3232
|
n = c;
|
|
3232
3233
|
} else if (t.nodeType) {
|
|
3233
3234
|
if (a && t.parentNode) return n = l ? [t] : t;
|
|
@@ -3279,26 +3280,26 @@ function We(e, t, n, s) {
|
|
|
3279
3280
|
} else e.insertBefore(r, n);
|
|
3280
3281
|
return [r];
|
|
3281
3282
|
}
|
|
3282
|
-
function
|
|
3283
|
+
function dc() {
|
|
3283
3284
|
return P.getNextContextId();
|
|
3284
3285
|
}
|
|
3285
|
-
var
|
|
3286
|
-
function
|
|
3287
|
-
return t ? document.createElementNS(
|
|
3286
|
+
var fc = "http://www.w3.org/2000/svg";
|
|
3287
|
+
function Lr(e, t = !1) {
|
|
3288
|
+
return t ? document.createElementNS(fc, e) : document.createElement(e);
|
|
3288
3289
|
}
|
|
3289
|
-
function
|
|
3290
|
+
function pd(e) {
|
|
3290
3291
|
const {
|
|
3291
3292
|
useShadow: t
|
|
3292
|
-
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r =
|
|
3293
|
+
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = ws();
|
|
3293
3294
|
let a, i = !!P.context;
|
|
3294
|
-
return
|
|
3295
|
-
i && (
|
|
3295
|
+
return Er(() => {
|
|
3296
|
+
i && (ws().user = i = !1), a || (a = pr(r, () => ee(() => e.children)));
|
|
3296
3297
|
const l = s();
|
|
3297
3298
|
if (l instanceof HTMLHeadElement) {
|
|
3298
3299
|
const [c, d] = H(!1), f = () => d(!0);
|
|
3299
3300
|
Me((u) => Vn(l, () => c() ? u() : a(), null)), _t(f);
|
|
3300
3301
|
} else {
|
|
3301
|
-
const c =
|
|
3302
|
+
const c = Lr(e.isSVG ? "g" : "div", e.isSVG), d = t && c.attachShadow ? c.attachShadow({
|
|
3302
3303
|
mode: "open"
|
|
3303
3304
|
}) : c;
|
|
3304
3305
|
Object.defineProperty(c, "_$host", {
|
|
@@ -3312,7 +3313,7 @@ function dd(e) {
|
|
|
3312
3313
|
render: !i
|
|
3313
3314
|
}), n;
|
|
3314
3315
|
}
|
|
3315
|
-
function
|
|
3316
|
+
function hc(e, t) {
|
|
3316
3317
|
const n = ee(e);
|
|
3317
3318
|
return ee(() => {
|
|
3318
3319
|
const s = n();
|
|
@@ -3320,16 +3321,16 @@ function cc(e, t) {
|
|
|
3320
3321
|
case "function":
|
|
3321
3322
|
return ne(() => s(t));
|
|
3322
3323
|
case "string":
|
|
3323
|
-
const r =
|
|
3324
|
-
return
|
|
3324
|
+
const r = Yl.has(s), a = P.context ? cc() : Lr(s, r);
|
|
3325
|
+
return ic(a, t, r), a;
|
|
3325
3326
|
}
|
|
3326
3327
|
});
|
|
3327
3328
|
}
|
|
3328
|
-
function
|
|
3329
|
-
const [, t] =
|
|
3330
|
-
return
|
|
3329
|
+
function yd(e) {
|
|
3330
|
+
const [, t] = Hl(e, ["component"]);
|
|
3331
|
+
return hc(() => e.component, t);
|
|
3331
3332
|
}
|
|
3332
|
-
var
|
|
3333
|
+
var gc = class {
|
|
3333
3334
|
constructor() {
|
|
3334
3335
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
3335
3336
|
}
|
|
@@ -3345,9 +3346,9 @@ var uc = class {
|
|
|
3345
3346
|
clear() {
|
|
3346
3347
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
3347
3348
|
}
|
|
3348
|
-
},
|
|
3349
|
+
}, Cr = class {
|
|
3349
3350
|
constructor(e) {
|
|
3350
|
-
this.generateIdentifier = e, this.kv = new
|
|
3351
|
+
this.generateIdentifier = e, this.kv = new gc();
|
|
3351
3352
|
}
|
|
3352
3353
|
register(e, t) {
|
|
3353
3354
|
this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
|
|
@@ -3361,7 +3362,7 @@ var uc = class {
|
|
|
3361
3362
|
getValue(e) {
|
|
3362
3363
|
return this.kv.getByKey(e);
|
|
3363
3364
|
}
|
|
3364
|
-
},
|
|
3365
|
+
}, mc = class extends Cr {
|
|
3365
3366
|
constructor() {
|
|
3366
3367
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
3367
3368
|
}
|
|
@@ -3372,7 +3373,7 @@ var uc = class {
|
|
|
3372
3373
|
return this.classToAllowedProps.get(e);
|
|
3373
3374
|
}
|
|
3374
3375
|
};
|
|
3375
|
-
function
|
|
3376
|
+
function Ec(e) {
|
|
3376
3377
|
if ("values" in Object)
|
|
3377
3378
|
return Object.values(e);
|
|
3378
3379
|
const t = [];
|
|
@@ -3380,8 +3381,8 @@ function fc(e) {
|
|
|
3380
3381
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
3381
3382
|
return t;
|
|
3382
3383
|
}
|
|
3383
|
-
function
|
|
3384
|
-
const n =
|
|
3384
|
+
function pc(e, t) {
|
|
3385
|
+
const n = Ec(e);
|
|
3385
3386
|
if ("find" in n)
|
|
3386
3387
|
return n.find(t);
|
|
3387
3388
|
const s = n;
|
|
@@ -3397,14 +3398,14 @@ function ft(e, t) {
|
|
|
3397
3398
|
function en(e, t) {
|
|
3398
3399
|
return e.indexOf(t) !== -1;
|
|
3399
3400
|
}
|
|
3400
|
-
function
|
|
3401
|
+
function vs(e, t) {
|
|
3401
3402
|
for (let n = 0; n < e.length; n++) {
|
|
3402
3403
|
const s = e[n];
|
|
3403
3404
|
if (t(s))
|
|
3404
3405
|
return s;
|
|
3405
3406
|
}
|
|
3406
3407
|
}
|
|
3407
|
-
var
|
|
3408
|
+
var yc = class {
|
|
3408
3409
|
constructor() {
|
|
3409
3410
|
this.transfomers = {};
|
|
3410
3411
|
}
|
|
@@ -3412,12 +3413,12 @@ var gc = class {
|
|
|
3412
3413
|
this.transfomers[e.name] = e;
|
|
3413
3414
|
}
|
|
3414
3415
|
findApplicable(e) {
|
|
3415
|
-
return
|
|
3416
|
+
return pc(this.transfomers, (t) => t.isApplicable(e));
|
|
3416
3417
|
}
|
|
3417
3418
|
findByName(e) {
|
|
3418
3419
|
return this.transfomers[e];
|
|
3419
3420
|
}
|
|
3420
|
-
},
|
|
3421
|
+
}, Ac = (e) => Object.prototype.toString.call(e).slice(8, -1), Gr = (e) => typeof e > "u", Tc = (e) => e === null, bt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, $n = (e) => bt(e) && Object.keys(e).length === 0, xe = (e) => Array.isArray(e), Sc = (e) => typeof e == "string", _c = (e) => typeof e == "number" && !isNaN(e), Pc = (e) => typeof e == "boolean", wc = (e) => e instanceof RegExp, It = (e) => e instanceof Map, Nt = (e) => e instanceof Set, kr = (e) => Ac(e) === "Symbol", bc = (e) => e instanceof Date && !isNaN(e.valueOf()), Ic = (e) => e instanceof Error, Ls = (e) => typeof e == "number" && isNaN(e), Nc = (e) => Pc(e) || Tc(e) || Gr(e) || _c(e) || Sc(e) || kr(e), vc = (e) => typeof e == "bigint", Lc = (e) => e === 1 / 0 || e === -1 / 0, Cc = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Gc = (e) => e instanceof URL, Dr = (e) => e.replace(/\./g, "\\."), xn = (e) => e.map(String).map(Dr).join("."), At = (e) => {
|
|
3421
3422
|
const t = [];
|
|
3422
3423
|
let n = "";
|
|
3423
3424
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3443,12 +3444,12 @@ function Pe(e, t, n, s) {
|
|
|
3443
3444
|
untransform: s
|
|
3444
3445
|
};
|
|
3445
3446
|
}
|
|
3446
|
-
var
|
|
3447
|
-
Pe(
|
|
3447
|
+
var Or = [
|
|
3448
|
+
Pe(Gr, "undefined", () => null, () => {
|
|
3448
3449
|
}),
|
|
3449
|
-
Pe(
|
|
3450
|
-
Pe(
|
|
3451
|
-
Pe(
|
|
3450
|
+
Pe(vc, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
|
|
3451
|
+
Pe(bc, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
3452
|
+
Pe(Ic, "Error", (e, t) => {
|
|
3452
3453
|
const n = {
|
|
3453
3454
|
name: e.name,
|
|
3454
3455
|
message: e.message
|
|
@@ -3462,22 +3463,22 @@ var Dr = [
|
|
|
3462
3463
|
n[s] = e[s];
|
|
3463
3464
|
}), n;
|
|
3464
3465
|
}),
|
|
3465
|
-
Pe(
|
|
3466
|
+
Pe(wc, "regexp", (e) => "" + e, (e) => {
|
|
3466
3467
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
3467
3468
|
return new RegExp(t, n);
|
|
3468
3469
|
}),
|
|
3469
3470
|
Pe(
|
|
3470
|
-
|
|
3471
|
+
Nt,
|
|
3471
3472
|
"set",
|
|
3472
3473
|
// (sets only exist in es6+)
|
|
3473
3474
|
// eslint-disable-next-line es5/no-es6-methods
|
|
3474
3475
|
(e) => [...e.values()],
|
|
3475
3476
|
(e) => new Set(e)
|
|
3476
3477
|
),
|
|
3477
|
-
Pe(
|
|
3478
|
-
Pe((e) =>
|
|
3478
|
+
Pe(It, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
3479
|
+
Pe((e) => Ls(e) || Lc(e), "number", (e) => Ls(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
3479
3480
|
Pe((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
3480
|
-
Pe(
|
|
3481
|
+
Pe(Gc, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
3481
3482
|
];
|
|
3482
3483
|
function _n(e, t, n, s) {
|
|
3483
3484
|
return {
|
|
@@ -3487,12 +3488,12 @@ function _n(e, t, n, s) {
|
|
|
3487
3488
|
untransform: s
|
|
3488
3489
|
};
|
|
3489
3490
|
}
|
|
3490
|
-
var
|
|
3491
|
+
var xr = _n((e, t) => kr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
3491
3492
|
const s = n.symbolRegistry.getValue(t[1]);
|
|
3492
3493
|
if (!s)
|
|
3493
3494
|
throw new Error("Trying to deserialize unknown symbol");
|
|
3494
3495
|
return s;
|
|
3495
|
-
}),
|
|
3496
|
+
}), kc = [
|
|
3496
3497
|
Int8Array,
|
|
3497
3498
|
Uint8Array,
|
|
3498
3499
|
Int16Array,
|
|
@@ -3502,16 +3503,16 @@ var kr = _n((e, t) => Lr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
3502
3503
|
Float32Array,
|
|
3503
3504
|
Float64Array,
|
|
3504
3505
|
Uint8ClampedArray
|
|
3505
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
3506
|
-
const n =
|
|
3506
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), Rr = _n(Cc, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
3507
|
+
const n = kc[t[1]];
|
|
3507
3508
|
if (!n)
|
|
3508
3509
|
throw new Error("Trying to deserialize unknown typed array");
|
|
3509
3510
|
return new n(e);
|
|
3510
3511
|
});
|
|
3511
|
-
function
|
|
3512
|
+
function Ur(e, t) {
|
|
3512
3513
|
return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
3513
3514
|
}
|
|
3514
|
-
var
|
|
3515
|
+
var Br = _n(Ur, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
3515
3516
|
const n = t.classRegistry.getAllowedProps(e.constructor);
|
|
3516
3517
|
if (!n)
|
|
3517
3518
|
return { ...e };
|
|
@@ -3524,44 +3525,44 @@ var Rr = _n(xr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3524
3525
|
if (!s)
|
|
3525
3526
|
throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
3526
3527
|
return Object.assign(Object.create(s.prototype), e);
|
|
3527
|
-
}),
|
|
3528
|
+
}), Mr = _n((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
|
|
3528
3529
|
const s = n.customTransformerRegistry.findByName(t[1]);
|
|
3529
3530
|
if (!s)
|
|
3530
3531
|
throw new Error("Trying to deserialize unknown custom value");
|
|
3531
3532
|
return s.deserialize(e);
|
|
3532
|
-
}),
|
|
3533
|
-
const n =
|
|
3533
|
+
}), Dc = [Br, xr, Mr, Rr], Cs = (e, t) => {
|
|
3534
|
+
const n = vs(Dc, (r) => r.isApplicable(e, t));
|
|
3534
3535
|
if (n)
|
|
3535
3536
|
return {
|
|
3536
3537
|
value: n.transform(e, t),
|
|
3537
3538
|
type: n.annotation(e, t)
|
|
3538
3539
|
};
|
|
3539
|
-
const s =
|
|
3540
|
+
const s = vs(Or, (r) => r.isApplicable(e, t));
|
|
3540
3541
|
if (s)
|
|
3541
3542
|
return {
|
|
3542
3543
|
value: s.transform(e, t),
|
|
3543
3544
|
type: s.annotation
|
|
3544
3545
|
};
|
|
3545
|
-
},
|
|
3546
|
-
|
|
3547
|
-
|
|
3546
|
+
}, Fr = {};
|
|
3547
|
+
Or.forEach((e) => {
|
|
3548
|
+
Fr[e.annotation] = e;
|
|
3548
3549
|
});
|
|
3549
|
-
var
|
|
3550
|
+
var Oc = (e, t, n) => {
|
|
3550
3551
|
if (xe(t))
|
|
3551
3552
|
switch (t[0]) {
|
|
3552
3553
|
case "symbol":
|
|
3553
|
-
return
|
|
3554
|
+
return xr.untransform(e, t, n);
|
|
3554
3555
|
case "class":
|
|
3555
|
-
return
|
|
3556
|
+
return Br.untransform(e, t, n);
|
|
3556
3557
|
case "custom":
|
|
3557
|
-
return
|
|
3558
|
+
return Mr.untransform(e, t, n);
|
|
3558
3559
|
case "typed-array":
|
|
3559
|
-
return
|
|
3560
|
+
return Rr.untransform(e, t, n);
|
|
3560
3561
|
default:
|
|
3561
3562
|
throw new Error("Unknown transformation: " + t);
|
|
3562
3563
|
}
|
|
3563
3564
|
else {
|
|
3564
|
-
const s =
|
|
3565
|
+
const s = Fr[t];
|
|
3565
3566
|
if (!s)
|
|
3566
3567
|
throw new Error("Unknown transformation: " + t);
|
|
3567
3568
|
return s.untransform(e, n);
|
|
@@ -3574,7 +3575,7 @@ var Lc = (e, t, n) => {
|
|
|
3574
3575
|
n.next(), t--;
|
|
3575
3576
|
return n.next().value;
|
|
3576
3577
|
};
|
|
3577
|
-
function
|
|
3578
|
+
function Hr(e) {
|
|
3578
3579
|
if (en(e, "__proto__"))
|
|
3579
3580
|
throw new Error("__proto__ is not allowed as a property");
|
|
3580
3581
|
if (en(e, "prototype"))
|
|
@@ -3582,13 +3583,13 @@ function Mr(e) {
|
|
|
3582
3583
|
if (en(e, "constructor"))
|
|
3583
3584
|
throw new Error("constructor is not allowed as a property");
|
|
3584
3585
|
}
|
|
3585
|
-
var
|
|
3586
|
-
|
|
3586
|
+
var xc = (e, t) => {
|
|
3587
|
+
Hr(t);
|
|
3587
3588
|
for (let n = 0; n < t.length; n++) {
|
|
3588
3589
|
const s = t[n];
|
|
3589
|
-
if (
|
|
3590
|
+
if (Nt(e))
|
|
3590
3591
|
e = ze(e, +s);
|
|
3591
|
-
else if (
|
|
3592
|
+
else if (It(e)) {
|
|
3592
3593
|
const r = +s, a = +t[++n] == 0 ? "key" : "value", i = ze(e, r);
|
|
3593
3594
|
switch (a) {
|
|
3594
3595
|
case "key":
|
|
@@ -3603,7 +3604,7 @@ var Gc = (e, t) => {
|
|
|
3603
3604
|
}
|
|
3604
3605
|
return e;
|
|
3605
3606
|
}, Qn = (e, t, n) => {
|
|
3606
|
-
if (
|
|
3607
|
+
if (Hr(t), t.length === 0)
|
|
3607
3608
|
return n(e);
|
|
3608
3609
|
let s = e;
|
|
3609
3610
|
for (let a = 0; a < t.length - 1; a++) {
|
|
@@ -3613,10 +3614,10 @@ var Gc = (e, t) => {
|
|
|
3613
3614
|
s = s[l];
|
|
3614
3615
|
} else if (bt(s))
|
|
3615
3616
|
s = s[i];
|
|
3616
|
-
else if (
|
|
3617
|
+
else if (Nt(s)) {
|
|
3617
3618
|
const l = +i;
|
|
3618
3619
|
s = ze(s, l);
|
|
3619
|
-
} else if (
|
|
3620
|
+
} else if (It(s)) {
|
|
3620
3621
|
if (a === t.length - 2)
|
|
3621
3622
|
break;
|
|
3622
3623
|
const c = +i, d = +t[++a] == 0 ? "key" : "value", f = ze(s, c);
|
|
@@ -3631,11 +3632,11 @@ var Gc = (e, t) => {
|
|
|
3631
3632
|
}
|
|
3632
3633
|
}
|
|
3633
3634
|
const r = t[t.length - 1];
|
|
3634
|
-
if (xe(s) ? s[+r] = n(s[+r]) : bt(s) && (s[r] = n(s[r])),
|
|
3635
|
+
if (xe(s) ? s[+r] = n(s[+r]) : bt(s) && (s[r] = n(s[r])), Nt(s)) {
|
|
3635
3636
|
const a = ze(s, +r), i = n(a);
|
|
3636
3637
|
a !== i && (s.delete(a), s.add(i));
|
|
3637
3638
|
}
|
|
3638
|
-
if (
|
|
3639
|
+
if (It(s)) {
|
|
3639
3640
|
const a = +t[t.length - 2], i = ze(s, a);
|
|
3640
3641
|
switch (+r == 0 ? "key" : "value") {
|
|
3641
3642
|
case "key": {
|
|
@@ -3663,14 +3664,14 @@ function Wn(e, t, n = []) {
|
|
|
3663
3664
|
Wn(a, t, [...n, ...At(i)]);
|
|
3664
3665
|
}), t(s, n);
|
|
3665
3666
|
}
|
|
3666
|
-
function
|
|
3667
|
+
function Rc(e, t, n) {
|
|
3667
3668
|
return Wn(t, (s, r) => {
|
|
3668
|
-
e = Qn(e, r, (a) =>
|
|
3669
|
+
e = Qn(e, r, (a) => Oc(a, s, n));
|
|
3669
3670
|
}), e;
|
|
3670
3671
|
}
|
|
3671
|
-
function
|
|
3672
|
+
function Uc(e, t) {
|
|
3672
3673
|
function n(s, r) {
|
|
3673
|
-
const a =
|
|
3674
|
+
const a = xc(e, At(r));
|
|
3674
3675
|
s.map(At).forEach((i) => {
|
|
3675
3676
|
e = Qn(e, i, () => a);
|
|
3676
3677
|
});
|
|
@@ -3684,12 +3685,12 @@ function kc(e, t) {
|
|
|
3684
3685
|
ft(t, n);
|
|
3685
3686
|
return e;
|
|
3686
3687
|
}
|
|
3687
|
-
var
|
|
3688
|
-
function
|
|
3688
|
+
var Bc = (e, t) => bt(e) || xe(e) || It(e) || Nt(e) || Ur(e, t);
|
|
3689
|
+
function Mc(e, t, n) {
|
|
3689
3690
|
const s = n.get(e);
|
|
3690
3691
|
s ? s.push(t) : n.set(e, [t]);
|
|
3691
3692
|
}
|
|
3692
|
-
function
|
|
3693
|
+
function Fc(e, t) {
|
|
3693
3694
|
const n = {};
|
|
3694
3695
|
let s;
|
|
3695
3696
|
return e.forEach((r) => {
|
|
@@ -3700,17 +3701,17 @@ function Rc(e, t) {
|
|
|
3700
3701
|
a.length === 0 ? s = i.map(xn) : n[xn(a)] = i.map(xn);
|
|
3701
3702
|
}), s ? $n(n) ? [s] : [s, n] : $n(n) ? void 0 : n;
|
|
3702
3703
|
}
|
|
3703
|
-
var
|
|
3704
|
-
const l =
|
|
3704
|
+
var Kr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
3705
|
+
const l = Nc(e);
|
|
3705
3706
|
if (!l) {
|
|
3706
|
-
|
|
3707
|
+
Mc(e, r, t);
|
|
3707
3708
|
const h = i.get(e);
|
|
3708
3709
|
if (h)
|
|
3709
3710
|
return s ? {
|
|
3710
3711
|
transformedValue: null
|
|
3711
3712
|
} : h;
|
|
3712
3713
|
}
|
|
3713
|
-
if (!
|
|
3714
|
+
if (!Bc(e, n)) {
|
|
3714
3715
|
const h = Cs(e, n), p = h ? {
|
|
3715
3716
|
transformedValue: h.value,
|
|
3716
3717
|
annotations: [h.type]
|
|
@@ -3727,9 +3728,9 @@ var Fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3727
3728
|
ft(d, (h, p) => {
|
|
3728
3729
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
3729
3730
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3730
|
-
const _ =
|
|
3731
|
-
f[p] = _.transformedValue, xe(_.annotations) ? u[p] = _.annotations : bt(_.annotations) && ft(_.annotations, (
|
|
3732
|
-
u[
|
|
3731
|
+
const _ = Kr(h, t, n, s, [...r, p], [...a, e], i);
|
|
3732
|
+
f[p] = _.transformedValue, xe(_.annotations) ? u[p] = _.annotations : bt(_.annotations) && ft(_.annotations, (I, y) => {
|
|
3733
|
+
u[Dr(p) + "." + y] = I;
|
|
3733
3734
|
});
|
|
3734
3735
|
});
|
|
3735
3736
|
const g = $n(u) ? {
|
|
@@ -3741,19 +3742,19 @@ var Fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3741
3742
|
};
|
|
3742
3743
|
return l || i.set(e, g), g;
|
|
3743
3744
|
};
|
|
3744
|
-
function
|
|
3745
|
+
function Vr(e) {
|
|
3745
3746
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
3746
3747
|
}
|
|
3747
|
-
function
|
|
3748
|
-
return
|
|
3748
|
+
function Gs(e) {
|
|
3749
|
+
return Vr(e) === "Array";
|
|
3749
3750
|
}
|
|
3750
|
-
function
|
|
3751
|
-
if (
|
|
3751
|
+
function Hc(e) {
|
|
3752
|
+
if (Vr(e) !== "Object")
|
|
3752
3753
|
return !1;
|
|
3753
3754
|
const t = Object.getPrototypeOf(e);
|
|
3754
3755
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
3755
3756
|
}
|
|
3756
|
-
function
|
|
3757
|
+
function Kc(e, t, n, s, r) {
|
|
3757
3758
|
const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
|
|
3758
3759
|
a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
3759
3760
|
value: n,
|
|
@@ -3763,16 +3764,16 @@ function Bc(e, t, n, s, r) {
|
|
|
3763
3764
|
});
|
|
3764
3765
|
}
|
|
3765
3766
|
function zn(e, t = {}) {
|
|
3766
|
-
if (
|
|
3767
|
+
if (Gs(e))
|
|
3767
3768
|
return e.map((r) => zn(r, t));
|
|
3768
|
-
if (!
|
|
3769
|
+
if (!Hc(e))
|
|
3769
3770
|
return e;
|
|
3770
3771
|
const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
|
|
3771
3772
|
return [...n, ...s].reduce((r, a) => {
|
|
3772
|
-
if (
|
|
3773
|
+
if (Gs(t.props) && !t.props.includes(a))
|
|
3773
3774
|
return r;
|
|
3774
3775
|
const i = e[a], l = zn(i, t);
|
|
3775
|
-
return
|
|
3776
|
+
return Kc(r, a, l, e, t.nonenumerable), r;
|
|
3776
3777
|
}, {});
|
|
3777
3778
|
}
|
|
3778
3779
|
var U = class {
|
|
@@ -3780,17 +3781,17 @@ var U = class {
|
|
|
3780
3781
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3781
3782
|
*/
|
|
3782
3783
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3783
|
-
this.classRegistry = new
|
|
3784
|
+
this.classRegistry = new mc(), this.symbolRegistry = new Cr((t) => t.description ?? ""), this.customTransformerRegistry = new yc(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3784
3785
|
}
|
|
3785
3786
|
serialize(e) {
|
|
3786
|
-
const t = /* @__PURE__ */ new Map(), n =
|
|
3787
|
+
const t = /* @__PURE__ */ new Map(), n = Kr(e, t, this, this.dedupe), s = {
|
|
3787
3788
|
json: n.transformedValue
|
|
3788
3789
|
};
|
|
3789
3790
|
n.annotations && (s.meta = {
|
|
3790
3791
|
...s.meta,
|
|
3791
3792
|
values: n.annotations
|
|
3792
3793
|
});
|
|
3793
|
-
const r =
|
|
3794
|
+
const r = Fc(t, this.dedupe);
|
|
3794
3795
|
return r && (s.meta = {
|
|
3795
3796
|
...s.meta,
|
|
3796
3797
|
referentialEqualities: r
|
|
@@ -3799,7 +3800,7 @@ var U = class {
|
|
|
3799
3800
|
deserialize(e) {
|
|
3800
3801
|
const { json: t, meta: n } = e;
|
|
3801
3802
|
let s = zn(t);
|
|
3802
|
-
return n != null && n.values && (s =
|
|
3803
|
+
return n != null && n.values && (s = Rc(s, n.values, this)), n != null && n.referentialEqualities && (s = Uc(s, n.referentialEqualities)), s;
|
|
3803
3804
|
}
|
|
3804
3805
|
stringify(e) {
|
|
3805
3806
|
return JSON.stringify(this.serialize(e));
|
|
@@ -3832,44 +3833,44 @@ U.registerClass = U.defaultInstance.registerClass.bind(U.defaultInstance);
|
|
|
3832
3833
|
U.registerSymbol = U.defaultInstance.registerSymbol.bind(U.defaultInstance);
|
|
3833
3834
|
U.registerCustom = U.defaultInstance.registerCustom.bind(U.defaultInstance);
|
|
3834
3835
|
U.allowErrorProps = U.defaultInstance.allowErrorProps.bind(U.defaultInstance);
|
|
3835
|
-
var
|
|
3836
|
-
function
|
|
3836
|
+
var Vc = U.serialize, Ad = U.stringify;
|
|
3837
|
+
function Td(e) {
|
|
3837
3838
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
|
3838
3839
|
}
|
|
3839
|
-
function
|
|
3840
|
+
function Sd(e, t) {
|
|
3840
3841
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
|
3841
3842
|
}
|
|
3842
|
-
function
|
|
3843
|
+
function _d({
|
|
3843
3844
|
queryState: e,
|
|
3844
3845
|
observerCount: t,
|
|
3845
3846
|
isStale: n
|
|
3846
3847
|
}) {
|
|
3847
3848
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
|
|
3848
3849
|
}
|
|
3849
|
-
function
|
|
3850
|
+
function Pd({
|
|
3850
3851
|
status: e,
|
|
3851
3852
|
isPaused: t
|
|
3852
3853
|
}) {
|
|
3853
3854
|
return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
|
|
3854
3855
|
}
|
|
3855
|
-
function
|
|
3856
|
+
function wd(e) {
|
|
3856
3857
|
return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
|
|
3857
3858
|
}
|
|
3858
|
-
var
|
|
3859
|
+
var bd = (e, t = !1) => {
|
|
3859
3860
|
const {
|
|
3860
3861
|
json: n
|
|
3861
|
-
} =
|
|
3862
|
+
} = Vc(e);
|
|
3862
3863
|
return JSON.stringify(n, null, t ? 2 : void 0);
|
|
3863
|
-
}, jt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3,
|
|
3864
|
-
status:
|
|
3865
|
-
"query hash":
|
|
3866
|
-
"last updated":
|
|
3867
|
-
}, Yt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3,
|
|
3868
|
-
status:
|
|
3869
|
-
"last updated":
|
|
3870
|
-
},
|
|
3864
|
+
}, jt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, qc = (e, t) => e.queryHash.localeCompare(t.queryHash), qr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, $c = (e, t) => jt(e) === jt(t) ? qr(e, t) : jt(e) > jt(t) ? 1 : -1, Id = {
|
|
3865
|
+
status: $c,
|
|
3866
|
+
"query hash": qc,
|
|
3867
|
+
"last updated": qr
|
|
3868
|
+
}, Yt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, $r = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Qc = (e, t) => Yt(e) === Yt(t) ? $r(e, t) : Yt(e) > Yt(t) ? 1 : -1, Nd = {
|
|
3869
|
+
status: Qc,
|
|
3870
|
+
"last updated": $r
|
|
3871
|
+
}, vd = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Ld = () => {
|
|
3871
3872
|
const [e, t] = H("dark");
|
|
3872
|
-
return
|
|
3873
|
+
return Cl(() => {
|
|
3873
3874
|
const n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
3874
3875
|
t(n.matches ? "dark" : "light");
|
|
3875
3876
|
const s = (r) => {
|
|
@@ -3937,27 +3938,27 @@ var Ad = (e, t = !1) => {
|
|
|
3937
3938
|
return n[s] = Zt(n[s], r), n;
|
|
3938
3939
|
}
|
|
3939
3940
|
return e;
|
|
3940
|
-
},
|
|
3941
|
+
}, Qr = (e, t) => {
|
|
3941
3942
|
if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
|
|
3942
3943
|
const s = document.createElement("style"), r = document.createTextNode("");
|
|
3943
3944
|
s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
|
|
3944
|
-
}, je, vt,
|
|
3945
|
+
}, je, vt, Lt, Ct, Ue, Gt, Ye, Je, Ze, Xe, et, kt, tt, nt, Dt, Rs, Wc = (Rs = class {
|
|
3945
3946
|
constructor(e) {
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3947
|
+
G(this, je);
|
|
3948
|
+
G(this, vt);
|
|
3949
|
+
G(this, Lt);
|
|
3950
|
+
G(this, Ct);
|
|
3951
|
+
G(this, Ue, !1);
|
|
3952
|
+
G(this, Gt);
|
|
3953
|
+
G(this, Ye);
|
|
3954
|
+
G(this, Je);
|
|
3955
|
+
G(this, Ze);
|
|
3956
|
+
G(this, Xe);
|
|
3957
|
+
G(this, et);
|
|
3958
|
+
G(this, kt);
|
|
3959
|
+
G(this, tt);
|
|
3960
|
+
G(this, nt);
|
|
3961
|
+
G(this, Dt);
|
|
3961
3962
|
const {
|
|
3962
3963
|
client: t,
|
|
3963
3964
|
queryFlavor: n,
|
|
@@ -3972,7 +3973,7 @@ var Ad = (e, t = !1) => {
|
|
|
3972
3973
|
hideDisabledQueries: u,
|
|
3973
3974
|
theme: g
|
|
3974
3975
|
} = e;
|
|
3975
|
-
|
|
3976
|
+
v(this, je, H(t)), v(this, Lt, n), v(this, Ct, s), v(this, vt, r), v(this, Gt, d), v(this, Ye, f), v(this, Je, H(a)), v(this, Ze, H(i)), v(this, Xe, H(l)), v(this, et, H(c)), v(this, kt, H(u)), v(this, nt, H(g));
|
|
3976
3977
|
}
|
|
3977
3978
|
setButtonPosition(e) {
|
|
3978
3979
|
S(this, Je)[1](e);
|
|
@@ -3995,15 +3996,15 @@ var Ad = (e, t = !1) => {
|
|
|
3995
3996
|
mount(e) {
|
|
3996
3997
|
if (S(this, Ue))
|
|
3997
3998
|
throw new Error("Devtools is already mounted");
|
|
3998
|
-
const t =
|
|
3999
|
-
const n = this, [s] = S(this, Je), [r] = S(this, Ze), [a] = S(this, Xe), [i] = S(this, et), [l] = S(this,
|
|
3999
|
+
const t = Nr(() => {
|
|
4000
|
+
const n = this, [s] = S(this, Je), [r] = S(this, Ze), [a] = S(this, Xe), [i] = S(this, et), [l] = S(this, kt), [c] = S(this, je), [d] = S(this, nt);
|
|
4000
4001
|
let f;
|
|
4001
|
-
return S(this, tt) ? f = S(this, tt) : (f =
|
|
4002
|
+
return S(this, tt) ? f = S(this, tt) : (f = br(() => import("./WDYDFRGG-CQq43W7b.js")), v(this, tt, f)), Qr(S(this, Gt), S(this, Ye)), Pr(f, wr({
|
|
4002
4003
|
get queryFlavor() {
|
|
4003
|
-
return S(n,
|
|
4004
|
+
return S(n, Lt);
|
|
4004
4005
|
},
|
|
4005
4006
|
get version() {
|
|
4006
|
-
return S(n,
|
|
4007
|
+
return S(n, Ct);
|
|
4007
4008
|
},
|
|
4008
4009
|
get onlineManager() {
|
|
4009
4010
|
return S(n, vt);
|
|
@@ -4035,32 +4036,32 @@ var Ad = (e, t = !1) => {
|
|
|
4035
4036
|
}
|
|
4036
4037
|
}));
|
|
4037
4038
|
}, e);
|
|
4038
|
-
|
|
4039
|
+
v(this, Ue, !0), v(this, Dt, t);
|
|
4039
4040
|
}
|
|
4040
4041
|
unmount() {
|
|
4041
4042
|
var e;
|
|
4042
4043
|
if (!S(this, Ue))
|
|
4043
4044
|
throw new Error("Devtools is not mounted");
|
|
4044
|
-
(e = S(this,
|
|
4045
|
+
(e = S(this, Dt)) == null || e.call(this), v(this, Ue, !1);
|
|
4045
4046
|
}
|
|
4046
|
-
}, je = new WeakMap(), vt = new WeakMap(),
|
|
4047
|
+
}, je = new WeakMap(), vt = new WeakMap(), Lt = new WeakMap(), Ct = new WeakMap(), Ue = new WeakMap(), Gt = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), kt = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), Dt = new WeakMap(), Rs), st, Ot, xt, Rt, Be, Ut, rt, at, it, ot, lt, Bt, ct, ut, dt, Mt, Us, zc = (Us = class {
|
|
4047
4048
|
constructor(e) {
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4049
|
+
G(this, st);
|
|
4050
|
+
G(this, Ot);
|
|
4051
|
+
G(this, xt);
|
|
4052
|
+
G(this, Rt);
|
|
4053
|
+
G(this, Be, !1);
|
|
4054
|
+
G(this, Ut);
|
|
4055
|
+
G(this, rt);
|
|
4056
|
+
G(this, at);
|
|
4057
|
+
G(this, it);
|
|
4058
|
+
G(this, ot);
|
|
4059
|
+
G(this, lt);
|
|
4060
|
+
G(this, Bt);
|
|
4061
|
+
G(this, ct);
|
|
4062
|
+
G(this, ut);
|
|
4063
|
+
G(this, dt);
|
|
4064
|
+
G(this, Mt);
|
|
4064
4065
|
const {
|
|
4065
4066
|
client: t,
|
|
4066
4067
|
queryFlavor: n,
|
|
@@ -4076,7 +4077,7 @@ var Ad = (e, t = !1) => {
|
|
|
4076
4077
|
hideDisabledQueries: g,
|
|
4077
4078
|
theme: h
|
|
4078
4079
|
} = e;
|
|
4079
|
-
|
|
4080
|
+
v(this, st, H(t)), v(this, xt, n), v(this, Rt, s), v(this, Ot, r), v(this, Ut, d), v(this, rt, f), v(this, at, H(a)), v(this, it, H(i)), v(this, ot, H(l)), v(this, lt, H(c)), v(this, Bt, H(g)), v(this, ct, H(u)), v(this, dt, H(h));
|
|
4080
4081
|
}
|
|
4081
4082
|
setButtonPosition(e) {
|
|
4082
4083
|
S(this, at)[1](e);
|
|
@@ -4102,10 +4103,10 @@ var Ad = (e, t = !1) => {
|
|
|
4102
4103
|
mount(e) {
|
|
4103
4104
|
if (S(this, Be))
|
|
4104
4105
|
throw new Error("Devtools is already mounted");
|
|
4105
|
-
const t =
|
|
4106
|
+
const t = Nr(() => {
|
|
4106
4107
|
const n = this, [s] = S(this, at), [r] = S(this, it), [a] = S(this, ot), [i] = S(this, lt), [l] = S(this, Bt), [c] = S(this, st), [d] = S(this, ct), [f] = S(this, dt);
|
|
4107
4108
|
let u;
|
|
4108
|
-
return S(this, ut) ? u = S(this, ut) : (u =
|
|
4109
|
+
return S(this, ut) ? u = S(this, ut) : (u = br(() => import("./2SSKDMRQ-B5qZhDJq.js")), v(this, ut, u)), Qr(S(this, Ut), S(this, rt)), Pr(u, wr({
|
|
4109
4110
|
get queryFlavor() {
|
|
4110
4111
|
return S(n, xt);
|
|
4111
4112
|
},
|
|
@@ -4145,17 +4146,17 @@ var Ad = (e, t = !1) => {
|
|
|
4145
4146
|
}
|
|
4146
4147
|
}));
|
|
4147
4148
|
}, e);
|
|
4148
|
-
|
|
4149
|
+
v(this, Be, !0), v(this, Mt, t);
|
|
4149
4150
|
}
|
|
4150
4151
|
unmount() {
|
|
4151
4152
|
var e;
|
|
4152
4153
|
if (!S(this, Be))
|
|
4153
4154
|
throw new Error("Devtools is not mounted");
|
|
4154
|
-
(e = S(this, Mt)) == null || e.call(this),
|
|
4155
|
+
(e = S(this, Mt)) == null || e.call(this), v(this, Be, !1);
|
|
4155
4156
|
}
|
|
4156
|
-
}, st = new WeakMap(), Ot = new WeakMap(), xt = new WeakMap(), Rt = new WeakMap(), Be = new WeakMap(), Ut = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), Bt = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), dt = new WeakMap(), Mt = new WeakMap(),
|
|
4157
|
-
function
|
|
4158
|
-
const t = X(e.client), n =
|
|
4157
|
+
}, st = new WeakMap(), Ot = new WeakMap(), xt = new WeakMap(), Rt = new WeakMap(), Be = new WeakMap(), Ut = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), Bt = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), dt = new WeakMap(), Mt = new WeakMap(), Us);
|
|
4158
|
+
function jc(e) {
|
|
4159
|
+
const t = X(e.client), n = j.useRef(null), {
|
|
4159
4160
|
buttonPosition: s,
|
|
4160
4161
|
position: r,
|
|
4161
4162
|
initialIsOpen: a,
|
|
@@ -4164,12 +4165,12 @@ function $c(e) {
|
|
|
4164
4165
|
shadowDOMTarget: c,
|
|
4165
4166
|
hideDisabledQueries: d,
|
|
4166
4167
|
theme: f
|
|
4167
|
-
} = e, [u] =
|
|
4168
|
-
new
|
|
4168
|
+
} = e, [u] = j.useState(
|
|
4169
|
+
new Wc({
|
|
4169
4170
|
client: t,
|
|
4170
4171
|
queryFlavor: "React Query",
|
|
4171
4172
|
version: "5",
|
|
4172
|
-
onlineManager:
|
|
4173
|
+
onlineManager: Ys,
|
|
4173
4174
|
buttonPosition: s,
|
|
4174
4175
|
position: r,
|
|
4175
4176
|
initialIsOpen: a,
|
|
@@ -4180,35 +4181,35 @@ function $c(e) {
|
|
|
4180
4181
|
theme: f
|
|
4181
4182
|
})
|
|
4182
4183
|
);
|
|
4183
|
-
return
|
|
4184
|
+
return j.useEffect(() => {
|
|
4184
4185
|
u.setClient(t);
|
|
4185
|
-
}, [t, u]),
|
|
4186
|
+
}, [t, u]), j.useEffect(() => {
|
|
4186
4187
|
s && u.setButtonPosition(s);
|
|
4187
|
-
}, [s, u]),
|
|
4188
|
+
}, [s, u]), j.useEffect(() => {
|
|
4188
4189
|
r && u.setPosition(r);
|
|
4189
|
-
}, [r, u]),
|
|
4190
|
+
}, [r, u]), j.useEffect(() => {
|
|
4190
4191
|
u.setInitialIsOpen(a || !1);
|
|
4191
|
-
}, [a, u]),
|
|
4192
|
+
}, [a, u]), j.useEffect(() => {
|
|
4192
4193
|
u.setErrorTypes(i || []);
|
|
4193
|
-
}, [i, u]),
|
|
4194
|
+
}, [i, u]), j.useEffect(() => {
|
|
4194
4195
|
u.setTheme(f);
|
|
4195
|
-
}, [f, u]),
|
|
4196
|
+
}, [f, u]), j.useEffect(() => (n.current && u.mount(n.current), () => {
|
|
4196
4197
|
u.unmount();
|
|
4197
4198
|
}), [u]), /* @__PURE__ */ o("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
|
|
4198
4199
|
}
|
|
4199
|
-
function
|
|
4200
|
-
const t = X(e.client), n =
|
|
4200
|
+
function Yc(e) {
|
|
4201
|
+
const t = X(e.client), n = j.useRef(null), {
|
|
4201
4202
|
errorTypes: s,
|
|
4202
4203
|
styleNonce: r,
|
|
4203
4204
|
shadowDOMTarget: a,
|
|
4204
4205
|
hideDisabledQueries: i,
|
|
4205
4206
|
theme: l
|
|
4206
|
-
} = e, [c] =
|
|
4207
|
-
new
|
|
4207
|
+
} = e, [c] = j.useState(
|
|
4208
|
+
new zc({
|
|
4208
4209
|
client: t,
|
|
4209
4210
|
queryFlavor: "React Query",
|
|
4210
4211
|
version: "5",
|
|
4211
|
-
onlineManager:
|
|
4212
|
+
onlineManager: Ys,
|
|
4212
4213
|
buttonPosition: "bottom-left",
|
|
4213
4214
|
position: "bottom",
|
|
4214
4215
|
initialIsOpen: !0,
|
|
@@ -4220,16 +4221,16 @@ function Qc(e) {
|
|
|
4220
4221
|
theme: l
|
|
4221
4222
|
})
|
|
4222
4223
|
);
|
|
4223
|
-
return
|
|
4224
|
+
return j.useEffect(() => {
|
|
4224
4225
|
c.setClient(t);
|
|
4225
|
-
}, [t, c]),
|
|
4226
|
+
}, [t, c]), j.useEffect(() => {
|
|
4226
4227
|
c.setOnClose(e.onClose ?? (() => {
|
|
4227
4228
|
}));
|
|
4228
|
-
}, [e.onClose, c]),
|
|
4229
|
+
}, [e.onClose, c]), j.useEffect(() => {
|
|
4229
4230
|
c.setErrorTypes(s || []);
|
|
4230
|
-
}, [s, c]),
|
|
4231
|
+
}, [s, c]), j.useEffect(() => {
|
|
4231
4232
|
c.setTheme(l);
|
|
4232
|
-
}, [l, c]),
|
|
4233
|
+
}, [l, c]), j.useEffect(() => (n.current && c.mount(n.current), () => {
|
|
4233
4234
|
c.unmount();
|
|
4234
4235
|
}), [c]), /* @__PURE__ */ o(
|
|
4235
4236
|
"div",
|
|
@@ -4240,18 +4241,18 @@ function Qc(e) {
|
|
|
4240
4241
|
}
|
|
4241
4242
|
);
|
|
4242
4243
|
}
|
|
4243
|
-
var
|
|
4244
|
+
var ks = process.env.NODE_ENV !== "development" ? function() {
|
|
4244
4245
|
return null;
|
|
4245
|
-
} :
|
|
4246
|
+
} : jc;
|
|
4246
4247
|
process.env.NODE_ENV;
|
|
4247
|
-
const
|
|
4248
|
-
|
|
4248
|
+
const Jc = Ne(""), Zc = () => {
|
|
4249
|
+
cs("dynamic-page-selector", {
|
|
4249
4250
|
description: "Dynamic page selector"
|
|
4250
|
-
}),
|
|
4251
|
+
}), cs("enable-add-page-dropdown", {
|
|
4251
4252
|
description: "Enable add page dropdown"
|
|
4252
4253
|
});
|
|
4253
|
-
},
|
|
4254
|
-
const { data: e } =
|
|
4254
|
+
}, Xc = () => {
|
|
4255
|
+
const { data: e } = ue(), { data: t } = Ge(), { data: n } = Ve(), s = N(), r = C(), a = z(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = oe(/* @__PURE__ */ new Map());
|
|
4255
4256
|
return te({
|
|
4256
4257
|
mutationFn: async ({ block: l }) => {
|
|
4257
4258
|
const c = l._id, d = (t == null ? void 0 : t.lang) || a, f = `${c}:${d}`;
|
|
@@ -4281,8 +4282,8 @@ const Wc = Ie(""), zc = () => {
|
|
|
4281
4282
|
}), u;
|
|
4282
4283
|
}
|
|
4283
4284
|
});
|
|
4284
|
-
},
|
|
4285
|
-
const [, e] =
|
|
4285
|
+
}, eu = () => {
|
|
4286
|
+
const [, e] = Ce();
|
|
4286
4287
|
return F(
|
|
4287
4288
|
(t, n) => {
|
|
4288
4289
|
const r = new URLSearchParams(window.location.search).get("lang"), a = new URLSearchParams({ page: t });
|
|
@@ -4290,78 +4291,113 @@ const Wc = Ie(""), zc = () => {
|
|
|
4290
4291
|
},
|
|
4291
4292
|
[e]
|
|
4292
4293
|
);
|
|
4293
|
-
},
|
|
4294
|
-
const e =
|
|
4294
|
+
}, tu = () => {
|
|
4295
|
+
const e = eu();
|
|
4295
4296
|
return F(
|
|
4296
4297
|
({ pageId: t }) => {
|
|
4297
4298
|
e(t);
|
|
4298
4299
|
},
|
|
4299
4300
|
[e]
|
|
4300
4301
|
);
|
|
4301
|
-
},
|
|
4302
|
-
const e =
|
|
4303
|
-
return
|
|
4302
|
+
}, as = () => {
|
|
4303
|
+
const e = C(), t = N(), n = X();
|
|
4304
|
+
return ce({
|
|
4304
4305
|
queryKey: [E.GET_WEBSITE_DATA],
|
|
4305
4306
|
staleTime: 300 * 1e3,
|
|
4306
4307
|
queryFn: async () => {
|
|
4307
4308
|
const s = await e(t, { action: E.GET_WEBSITE_DATA });
|
|
4308
|
-
return n.setQueryData([E.GET_WEBSITE_DRAFT_SETTINGS], s.websiteSettings), n.setQueryData([E.GET_WEBSITE_PAGES], s.websitePages), n.setQueryData([E.GET_PAGE_TYPES], s.pageTypes), n.setQueryData([E.
|
|
4309
|
+
return n.setQueryData([E.GET_WEBSITE_DRAFT_SETTINGS], s.websiteSettings), n.setQueryData([E.GET_WEBSITE_PAGES], s.websitePages), n.setQueryData([E.GET_PAGE_TYPES], s.pageTypes), n.setQueryData([E.GET_LIBRARIES], s.libraries), n.setQueryData([E.GET_COLLECTIONS], s.collections), s;
|
|
4309
4310
|
}
|
|
4310
4311
|
});
|
|
4311
4312
|
};
|
|
4312
|
-
function
|
|
4313
|
+
function nu(e) {
|
|
4313
4314
|
const t = {};
|
|
4314
4315
|
for (const n of e)
|
|
4315
4316
|
t[n.id] = {
|
|
4316
4317
|
name: n.name,
|
|
4317
|
-
isPartial:
|
|
4318
|
+
isPartial: he(n.slug),
|
|
4318
4319
|
partialBlocks: n.partialBlocks ? n.partialBlocks.split("|").filter(Boolean) : [],
|
|
4319
4320
|
links: n.links ? n.links.split("|").filter(Boolean) : [],
|
|
4320
4321
|
designTokens: n.designTokens ?? {}
|
|
4321
4322
|
};
|
|
4322
4323
|
return t;
|
|
4323
4324
|
}
|
|
4324
|
-
const
|
|
4325
|
+
const su = () => {
|
|
4325
4326
|
const { data: e } = ht();
|
|
4326
|
-
return { data:
|
|
4327
|
-
},
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4327
|
+
return { data: z(() => nu(e ?? []), [e]) };
|
|
4328
|
+
}, Ds = {
|
|
4329
|
+
async getUILibraryBlock(e, t, n) {
|
|
4330
|
+
const s = await t(n, {
|
|
4331
|
+
action: "GET_LIBRARY_ITEM",
|
|
4332
|
+
data: { id: e.id }
|
|
4333
|
+
}), r = Q(s, "html", ""), a = Q(s, "blocks", []);
|
|
4334
|
+
return Ja(a) ? a : Li(r);
|
|
4335
|
+
},
|
|
4336
|
+
async getUILibraryBlocks(e, t, n) {
|
|
4337
|
+
return (await t(n, {
|
|
4338
|
+
action: "GET_LIBRARY_ITEMS",
|
|
4339
|
+
data: { id: e.id }
|
|
4340
|
+
})).map((r) => ({
|
|
4341
|
+
...r
|
|
4342
|
+
}));
|
|
4343
|
+
}
|
|
4344
|
+
}, ru = () => {
|
|
4345
|
+
const e = C(), t = N(), { data: n } = as(), s = n == null ? void 0 : n.libraries;
|
|
4346
|
+
return ce({
|
|
4347
|
+
queryKey: [E.UI_LIBRARIES],
|
|
4348
|
+
staleTime: "static",
|
|
4349
|
+
queryFn: async () => {
|
|
4350
|
+
const r = s.map((a) => ({
|
|
4351
|
+
...a
|
|
4352
|
+
}));
|
|
4353
|
+
return r.forEach((a) => {
|
|
4354
|
+
Yr(a.id, {
|
|
4355
|
+
name: a.isSiteLibrary ? a.name + " (Current Site) " : a.name,
|
|
4356
|
+
description: a.description,
|
|
4357
|
+
getBlocksList: (i) => Ds.getUILibraryBlocks(i, e, t),
|
|
4358
|
+
getBlock: ({ block: i }) => Ds.getUILibraryBlock(i, e, t)
|
|
4359
|
+
});
|
|
4360
|
+
}), r;
|
|
4361
|
+
}
|
|
4362
|
+
});
|
|
4363
|
+
}, au = K(() => import("./page-lock-BJfK1a6I.js")), iu = K(() => import("./no-language-page-dialog-C-Z2M29h.js")), ou = K(() => import("./digital-asset-manager-DgLvx-bn.js")), lu = K(() => import("./save-to-lib-HVxAu8t_.js")), cu = K(() => import("./web-preview-Dz81mOVR.js"));
|
|
4364
|
+
Zc();
|
|
4365
|
+
Ni();
|
|
4366
|
+
Xr(sl);
|
|
4367
|
+
wl();
|
|
4368
|
+
Jr(ou);
|
|
4369
|
+
Zr(lu);
|
|
4370
|
+
const uu = {
|
|
4335
4371
|
role: "admin",
|
|
4336
4372
|
permissions: null
|
|
4337
|
-
},
|
|
4338
|
-
const { isLoading: t } =
|
|
4339
|
-
return t ? /* @__PURE__ */ o(St, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ o(
|
|
4340
|
-
},
|
|
4341
|
-
const { data: t, isFetching: n, isError: s } =
|
|
4373
|
+
}, Os = (e) => {
|
|
4374
|
+
const { isLoading: t } = ir();
|
|
4375
|
+
return t ? /* @__PURE__ */ o(St, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ o(du, { ...e });
|
|
4376
|
+
}, du = (e) => {
|
|
4377
|
+
const { data: t, isFetching: n, isError: s } = as();
|
|
4342
4378
|
return !t || n ? /* @__PURE__ */ o(St, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }) : s ? /* @__PURE__ */ m(St, { className: "fixed inset-0 bg-white", children: [
|
|
4343
4379
|
/* @__PURE__ */ o("p", { children: "Failed to load website data" }),
|
|
4344
|
-
/* @__PURE__ */ o(
|
|
4345
|
-
] }) : /* @__PURE__ */ o(
|
|
4346
|
-
},
|
|
4380
|
+
/* @__PURE__ */ o(D, { onClick: () => window.location.reload(), children: "Retry" })
|
|
4381
|
+
] }) : /* @__PURE__ */ o(fu, { ...e });
|
|
4382
|
+
}, fu = ({ ...e }) => {
|
|
4347
4383
|
var Vt;
|
|
4348
|
-
const { data: t } =
|
|
4384
|
+
const { data: t } = as(), { data: n } = su(), { data: s } = ru(), { collections: r, pageTypes: a, websiteSettings: i } = t, l = z(() => (i == null ? void 0 : i.fallbackLang) || "en", [i]), { data: c, isFetching: d } = ir(), f = c || uu, [u] = Ce(), g = u.get("page"), { data: h } = ue(), { data: p, isFetching: _ } = ol(), { blocks: I } = il(((Vt = p == null ? void 0 : p.draftPage) == null ? void 0 : Vt.blocks) ?? []), { pageStatus: y } = ve(), A = al(), { onSave: b } = cl(), { mutateAsync: q } = Xc(), { getPartialBlocks: V, getPartialBlockBlocks: B } = ul(), { mutateAsync: de } = Ki(), { mutateAsync: ie } = ll(), M = tu(), [T, w] = k(!1), x = oe([]), $ = z(() => Q(i, "theme", {}) || {}, [i]), fe = z(() => Q(i, "languages", []) || [], [i]), mt = z(() => Q(i, "designTokens", {}) || {}, [i]), Se = y === ae.EDITING, pe = y === ae.CHECKING, _e = _ || pe;
|
|
4349
4385
|
J(() => {
|
|
4350
|
-
x.current =
|
|
4351
|
-
}, [
|
|
4352
|
-
const [Pn] =
|
|
4386
|
+
x.current = I;
|
|
4387
|
+
}, [I]);
|
|
4388
|
+
const [Pn] = ge(Jc);
|
|
4353
4389
|
J(() => {
|
|
4354
4390
|
const Z = () => {
|
|
4355
4391
|
document.hidden ? w(!0) : w(!1);
|
|
4356
4392
|
};
|
|
4357
4393
|
return window.addEventListener("visibilitychange", Z), () => window.removeEventListener("visibilitychange", Z);
|
|
4358
4394
|
}, []);
|
|
4359
|
-
const wn =
|
|
4395
|
+
const wn = z(() => {
|
|
4360
4396
|
const Z = {};
|
|
4361
|
-
return f && (Z.permissions =
|
|
4362
|
-
}, [f, p]), Qe =
|
|
4363
|
-
async (Z,
|
|
4364
|
-
[
|
|
4397
|
+
return f && (Z.permissions = Q(f, "permissions", null), Z.role = Q(f, "role", "user")), Z.pageExternalData = (p == null ? void 0 : p.builderPageData) ?? {}, Z;
|
|
4398
|
+
}, [f, p]), Qe = z(() => s == null ? void 0 : s.some((Z) => Z.isSiteLibrary), [s]), bn = F(
|
|
4399
|
+
async (Z, De) => await de({ pageType: Z, query: De }),
|
|
4400
|
+
[de]
|
|
4365
4401
|
);
|
|
4366
4402
|
return /* @__PURE__ */ m(Te, { children: [
|
|
4367
4403
|
_ && /* @__PURE__ */ o(St, { className: d ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ o(Ke, { className: `animate-spin text-primary ${d ? "h-6 w-6" : "h-5 w-5"}` }) }),
|
|
@@ -4369,11 +4405,11 @@ const au = {
|
|
|
4369
4405
|
Y,
|
|
4370
4406
|
{
|
|
4371
4407
|
fallback: /* @__PURE__ */ o("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ o(Ke, { className: "h-6 w-6 animate-spin text-primary" }) }),
|
|
4372
|
-
children: /* @__PURE__ */ o(
|
|
4408
|
+
children: /* @__PURE__ */ o(cu, {})
|
|
4373
4409
|
}
|
|
4374
4410
|
),
|
|
4375
4411
|
/* @__PURE__ */ o(
|
|
4376
|
-
|
|
4412
|
+
ka,
|
|
4377
4413
|
{
|
|
4378
4414
|
siteWideUsage: n ?? {},
|
|
4379
4415
|
flags: e.flags ? { ...e.flags, librarySite: Qe } : { librarySite: Qe },
|
|
@@ -4384,7 +4420,7 @@ const au = {
|
|
|
4384
4420
|
pageId: h == null ? void 0 : h.id,
|
|
4385
4421
|
loading: _e,
|
|
4386
4422
|
fallbackLang: l,
|
|
4387
|
-
languages:
|
|
4423
|
+
languages: fe,
|
|
4388
4424
|
brandingOptions: $,
|
|
4389
4425
|
designTokens: mt,
|
|
4390
4426
|
translations: e.translations || {},
|
|
@@ -4395,32 +4431,32 @@ const au = {
|
|
|
4395
4431
|
onError: e.onError || console.error,
|
|
4396
4432
|
getPartialBlockBlocks: B,
|
|
4397
4433
|
getPartialBlocks: V,
|
|
4398
|
-
blocks: _ ? [] :
|
|
4399
|
-
theme:
|
|
4434
|
+
blocks: _ ? [] : I,
|
|
4435
|
+
theme: Za($),
|
|
4400
4436
|
pageTypes: a,
|
|
4401
4437
|
searchPageTypeItems: bn,
|
|
4402
4438
|
askAiCallBack: A,
|
|
4403
|
-
onSave: async ({ blocks: Z, needTranslations:
|
|
4439
|
+
onSave: async ({ blocks: Z, needTranslations: De, partialIds: In, linkPageIds: re, designTokens: ye }) => {
|
|
4404
4440
|
if (!g) return !0;
|
|
4405
4441
|
x.current = Z;
|
|
4406
4442
|
const Re = [...Z];
|
|
4407
4443
|
return await b({
|
|
4408
4444
|
page: g,
|
|
4409
4445
|
blocks: Re,
|
|
4410
|
-
needTranslations:
|
|
4411
|
-
partialIds:
|
|
4446
|
+
needTranslations: De,
|
|
4447
|
+
partialIds: In,
|
|
4412
4448
|
linkPageIds: re,
|
|
4413
4449
|
designTokens: ye
|
|
4414
4450
|
}), x.current = Re, !0;
|
|
4415
4451
|
},
|
|
4416
|
-
onSaveWebsiteData: async ({ type: Z, data:
|
|
4452
|
+
onSaveWebsiteData: async ({ type: Z, data: De }) => (Z === "THEME" ? await ie({ settings: { theme: De } }) : Z === "DESIGN_TOKENS" && await ie({ settings: { designTokens: De } }), !0),
|
|
4417
4453
|
...wn,
|
|
4418
|
-
children: /* @__PURE__ */ o(
|
|
4454
|
+
children: /* @__PURE__ */ o(au, { isFetchingPageData: _ })
|
|
4419
4455
|
}
|
|
4420
4456
|
),
|
|
4421
|
-
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
4457
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(iu, {}) })
|
|
4422
4458
|
] });
|
|
4423
|
-
},
|
|
4459
|
+
}, hu = new Pi({
|
|
4424
4460
|
defaultOptions: {
|
|
4425
4461
|
queries: {
|
|
4426
4462
|
refetchOnWindowFocus: !1,
|
|
@@ -4428,10 +4464,10 @@ const au = {
|
|
|
4428
4464
|
refetchOnMount: !1
|
|
4429
4465
|
}
|
|
4430
4466
|
}
|
|
4431
|
-
}),
|
|
4432
|
-
const [, t] = pn(), [n, s] =
|
|
4467
|
+
}), Cd = (e) => {
|
|
4468
|
+
const [, t] = pn(), [n, s] = k(!1);
|
|
4433
4469
|
return J(() => (t(
|
|
4434
|
-
|
|
4470
|
+
$s(e, [
|
|
4435
4471
|
"apiUrl",
|
|
4436
4472
|
"usersApiUrl",
|
|
4437
4473
|
"assetsApiUrl",
|
|
@@ -4450,20 +4486,20 @@ const au = {
|
|
|
4450
4486
|
s(!0);
|
|
4451
4487
|
}, 200), () => {
|
|
4452
4488
|
s(!1), t({});
|
|
4453
|
-
}), [e, t]), n ?
|
|
4454
|
-
/* @__PURE__ */ o(
|
|
4455
|
-
/* @__PURE__ */ o(
|
|
4456
|
-
] }) : /* @__PURE__ */ m(
|
|
4457
|
-
/* @__PURE__ */ o(
|
|
4458
|
-
/* @__PURE__ */ o(
|
|
4489
|
+
}), [e, t]), n ? Q(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(Te, { children: [
|
|
4490
|
+
/* @__PURE__ */ o(Os, { ...e }),
|
|
4491
|
+
/* @__PURE__ */ o(ks, {})
|
|
4492
|
+
] }) : /* @__PURE__ */ m(wi, { client: hu, children: [
|
|
4493
|
+
/* @__PURE__ */ o(Os, { ...e }),
|
|
4494
|
+
/* @__PURE__ */ o(ks, {})
|
|
4459
4495
|
] }) : /* @__PURE__ */ o("div", {});
|
|
4460
|
-
},
|
|
4461
|
-
function
|
|
4462
|
-
const [r, a] =
|
|
4463
|
-
return /* @__PURE__ */ m(
|
|
4496
|
+
}, gu = j.lazy(() => import("./nested-path-selector-content-Cj2AIFju.js"));
|
|
4497
|
+
function mu({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
4498
|
+
const [r, a] = j.useState(!1);
|
|
4499
|
+
return /* @__PURE__ */ m(Da, { open: r, onOpenChange: a, children: [
|
|
4464
4500
|
/* @__PURE__ */ m(hn, { children: [
|
|
4465
|
-
/* @__PURE__ */ o(gn, { asChild: !0, children: /* @__PURE__ */ o(
|
|
4466
|
-
|
|
4501
|
+
/* @__PURE__ */ o(gn, { asChild: !0, children: /* @__PURE__ */ o(Oa, { asChild: !0, children: /* @__PURE__ */ o(
|
|
4502
|
+
D,
|
|
4467
4503
|
{
|
|
4468
4504
|
size: "sm",
|
|
4469
4505
|
variant: "outline",
|
|
@@ -4485,8 +4521,8 @@ function uu({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4485
4521
|
) }) }),
|
|
4486
4522
|
/* @__PURE__ */ o(mn, { children: "Add field" })
|
|
4487
4523
|
] }),
|
|
4488
|
-
r && /* @__PURE__ */ o(
|
|
4489
|
-
|
|
4524
|
+
r && /* @__PURE__ */ o(j.Suspense, { children: /* @__PURE__ */ o(
|
|
4525
|
+
gu,
|
|
4490
4526
|
{
|
|
4491
4527
|
data: e,
|
|
4492
4528
|
onSelect: t,
|
|
@@ -4497,9 +4533,9 @@ function uu({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4497
4533
|
) })
|
|
4498
4534
|
] });
|
|
4499
4535
|
}
|
|
4500
|
-
const
|
|
4501
|
-
const { data: e } =
|
|
4502
|
-
return
|
|
4536
|
+
const Gd = () => {
|
|
4537
|
+
const { data: e } = ue(), { data: t } = Ge(), n = N(), s = C(), r = ts(), a = es();
|
|
4538
|
+
return ce({
|
|
4503
4539
|
queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
|
|
4504
4540
|
staleTime: 1 / 0,
|
|
4505
4541
|
gcTime: 0,
|
|
@@ -4527,18 +4563,18 @@ const bd = () => {
|
|
|
4527
4563
|
}),
|
|
4528
4564
|
enabled: !!(e != null && e.pageType) && !!t.id
|
|
4529
4565
|
});
|
|
4530
|
-
},
|
|
4566
|
+
}, kd = () => {
|
|
4531
4567
|
const { savePageAsync: e } = He(), t = X(), { isLocked: n } = ve();
|
|
4532
4568
|
return F(async () => {
|
|
4533
4569
|
n || await e(), t.invalidateQueries({ queryKey: [E.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [E.GET_BUILDER_PAGE_DATA] });
|
|
4534
4570
|
}, [e, t, n]);
|
|
4535
|
-
},
|
|
4571
|
+
}, Dd = () => {
|
|
4536
4572
|
const e = X();
|
|
4537
4573
|
return F(() => {
|
|
4538
4574
|
e.clear();
|
|
4539
4575
|
}, [e]);
|
|
4540
|
-
},
|
|
4541
|
-
const e =
|
|
4576
|
+
}, Od = () => {
|
|
4577
|
+
const e = N(), t = C(), { data: n } = Ge(), s = X();
|
|
4542
4578
|
return te({
|
|
4543
4579
|
mutationFn: async (r) => {
|
|
4544
4580
|
if (!(n != null && n.id))
|
|
@@ -4562,7 +4598,7 @@ const bd = () => {
|
|
|
4562
4598
|
console.error("Failed to update metadata");
|
|
4563
4599
|
}
|
|
4564
4600
|
});
|
|
4565
|
-
},
|
|
4601
|
+
}, Eu = K(() => import("./digital-asset-manager-DgLvx-bn.js")), xd = ({
|
|
4566
4602
|
assetId: e,
|
|
4567
4603
|
assetUrl: t,
|
|
4568
4604
|
onChange: n,
|
|
@@ -4570,13 +4606,13 @@ const bd = () => {
|
|
|
4570
4606
|
placeholder: r = "Select an image",
|
|
4571
4607
|
disabled: a = !1
|
|
4572
4608
|
}) => {
|
|
4573
|
-
const { t: i } =
|
|
4609
|
+
const { t: i } = Ee(), [l, c] = k(!1), d = () => {
|
|
4574
4610
|
a || c(!0);
|
|
4575
4611
|
}, f = () => {
|
|
4576
4612
|
c(!1);
|
|
4577
4613
|
}, u = (p) => {
|
|
4578
4614
|
const _ = Array.isArray(p) ? p[0] : p;
|
|
4579
|
-
_ != null && _.url && n(
|
|
4615
|
+
_ != null && _.url && n($s(_, ["url", "id"])), c(!1);
|
|
4580
4616
|
}, g = () => {
|
|
4581
4617
|
n({ url: "", id: "" });
|
|
4582
4618
|
}, h = (t == null ? void 0 : t.startsWith("{{")) && (t == null ? void 0 : t.endsWith("}}"));
|
|
@@ -4593,7 +4629,7 @@ const bd = () => {
|
|
|
4593
4629
|
),
|
|
4594
4630
|
/* @__PURE__ */ m("div", { className: "absolute right-2 top-2 flex gap-2", children: [
|
|
4595
4631
|
/* @__PURE__ */ o(
|
|
4596
|
-
|
|
4632
|
+
D,
|
|
4597
4633
|
{
|
|
4598
4634
|
type: "button",
|
|
4599
4635
|
variant: "outline",
|
|
@@ -4601,11 +4637,11 @@ const bd = () => {
|
|
|
4601
4637
|
className: "h-8 w-8 rounded-full bg-white text-red-500",
|
|
4602
4638
|
onClick: g,
|
|
4603
4639
|
disabled: a,
|
|
4604
|
-
children: h ? /* @__PURE__ */ o(
|
|
4640
|
+
children: h ? /* @__PURE__ */ o(ps, { className: "h-4 w-4" }) : /* @__PURE__ */ o(pi, { className: "h-4 w-4" })
|
|
4605
4641
|
}
|
|
4606
4642
|
),
|
|
4607
4643
|
!h && /* @__PURE__ */ o(
|
|
4608
|
-
|
|
4644
|
+
D,
|
|
4609
4645
|
{
|
|
4610
4646
|
type: "button",
|
|
4611
4647
|
variant: "outline",
|
|
@@ -4613,7 +4649,7 @@ const bd = () => {
|
|
|
4613
4649
|
className: "h-8 w-8 rounded-full bg-white/80 hover:bg-white/90",
|
|
4614
4650
|
onClick: d,
|
|
4615
4651
|
disabled: a,
|
|
4616
|
-
children: /* @__PURE__ */ o(
|
|
4652
|
+
children: /* @__PURE__ */ o(ys, { className: "h-4 w-4" })
|
|
4617
4653
|
}
|
|
4618
4654
|
)
|
|
4619
4655
|
] })
|
|
@@ -4623,28 +4659,28 @@ const bd = () => {
|
|
|
4623
4659
|
className: `flex cursor-pointer items-center justify-center rounded-md border border-dashed p-6 ${a ? "cursor-not-allowed opacity-50" : "hover:border-gray-400"}`,
|
|
4624
4660
|
onClick: d,
|
|
4625
4661
|
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-2", children: [
|
|
4626
|
-
/* @__PURE__ */ o(
|
|
4662
|
+
/* @__PURE__ */ o(ys, { className: "h-10 w-10 text-gray-400" }),
|
|
4627
4663
|
/* @__PURE__ */ o("p", { className: "text-sm text-gray-500", children: r })
|
|
4628
4664
|
] })
|
|
4629
4665
|
}
|
|
4630
4666
|
),
|
|
4631
|
-
/* @__PURE__ */ o(jn, { open: l, onOpenChange: c, children: /* @__PURE__ */ m(
|
|
4632
|
-
/* @__PURE__ */ m(
|
|
4633
|
-
/* @__PURE__ */ o(
|
|
4667
|
+
/* @__PURE__ */ o(jn, { open: l, onOpenChange: c, children: /* @__PURE__ */ m(Ks, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
|
|
4668
|
+
/* @__PURE__ */ m(xa, { className: "hidden border-b px-4 py-2", children: [
|
|
4669
|
+
/* @__PURE__ */ o(Ra, { children: i("Select Image") }),
|
|
4634
4670
|
/* @__PURE__ */ o(
|
|
4635
|
-
|
|
4671
|
+
D,
|
|
4636
4672
|
{
|
|
4637
4673
|
type: "button",
|
|
4638
4674
|
variant: "ghost",
|
|
4639
4675
|
size: "icon",
|
|
4640
4676
|
className: "absolute right-4 top-2",
|
|
4641
4677
|
onClick: f,
|
|
4642
|
-
children: /* @__PURE__ */ o(
|
|
4678
|
+
children: /* @__PURE__ */ o(ps, { className: "h-4 w-4" })
|
|
4643
4679
|
}
|
|
4644
4680
|
)
|
|
4645
4681
|
] }),
|
|
4646
4682
|
/* @__PURE__ */ o("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(
|
|
4647
|
-
|
|
4683
|
+
Eu,
|
|
4648
4684
|
{
|
|
4649
4685
|
close: f,
|
|
4650
4686
|
onSelect: u,
|
|
@@ -4654,7 +4690,7 @@ const bd = () => {
|
|
|
4654
4690
|
) }) })
|
|
4655
4691
|
] }) })
|
|
4656
4692
|
] });
|
|
4657
|
-
},
|
|
4693
|
+
}, pu = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), xs = (e) => {
|
|
4658
4694
|
if (!e.trim())
|
|
4659
4695
|
return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
|
|
4660
4696
|
try {
|
|
@@ -4689,23 +4725,23 @@ const bd = () => {
|
|
|
4689
4725
|
}
|
|
4690
4726
|
};
|
|
4691
4727
|
}
|
|
4692
|
-
},
|
|
4728
|
+
}, yu = (e, t) => {
|
|
4693
4729
|
let s = JSON.stringify(e, null, 2);
|
|
4694
4730
|
return t.forEach(({ original: r }, a) => {
|
|
4695
|
-
const i = `"__placeholder_${a}__"`, l = new RegExp(
|
|
4731
|
+
const i = `"__placeholder_${a}__"`, l = new RegExp(pu(i), "g");
|
|
4696
4732
|
s = s.replace(l, r);
|
|
4697
4733
|
}), s;
|
|
4698
|
-
},
|
|
4734
|
+
}, Au = (e, t) => {
|
|
4699
4735
|
if (!e) return "";
|
|
4700
4736
|
let n = JSON.stringify(e, null, 2);
|
|
4701
4737
|
const s = /{{([^{}]+)}}/g;
|
|
4702
4738
|
let r;
|
|
4703
4739
|
for (; (r = s.exec(n)) !== null; ) {
|
|
4704
|
-
const a = r[1], i =
|
|
4740
|
+
const a = r[1], i = Q(t, a, null);
|
|
4705
4741
|
n = n.replace(r[0], i);
|
|
4706
4742
|
}
|
|
4707
4743
|
return n;
|
|
4708
|
-
},
|
|
4744
|
+
}, Tu = K(() => import("./shared-json-ld-ZVfaV2l4.js")), Rd = ({
|
|
4709
4745
|
value: e,
|
|
4710
4746
|
onChange: t,
|
|
4711
4747
|
disabled: n = !1,
|
|
@@ -4718,7 +4754,7 @@ const bd = () => {
|
|
|
4718
4754
|
hasJsonLdForSelectedLang: d,
|
|
4719
4755
|
copyJsonLDFromDefaultPage: f
|
|
4720
4756
|
}) => {
|
|
4721
|
-
const [u, g] =
|
|
4757
|
+
const [u, g] = k("edit"), [h, p] = k(null), [_, I] = k(""), y = oe(null), [A] = pn(), b = i === "jsonLD" && Q(A, "flags.sharedJsonLD", !1), q = i === "jsonLD" && !d && !!f;
|
|
4722
4758
|
J(() => {
|
|
4723
4759
|
e.trim() === "" && t("{}");
|
|
4724
4760
|
}, [e, t]);
|
|
@@ -4731,16 +4767,16 @@ const bd = () => {
|
|
|
4731
4767
|
M.preventDefault();
|
|
4732
4768
|
const T = M.currentTarget, w = T.selectionStart, x = T.selectionEnd;
|
|
4733
4769
|
if (w !== x) {
|
|
4734
|
-
const
|
|
4770
|
+
const fe = e.substring(w, x).split(`
|
|
4735
4771
|
`);
|
|
4736
4772
|
if (M.shiftKey) {
|
|
4737
|
-
const Se =
|
|
4773
|
+
const Se = fe.map((_e) => _e.startsWith(" ") ? _e.substring(2) : _e).join(`
|
|
4738
4774
|
`), pe = e.substring(0, w) + Se + e.substring(x);
|
|
4739
4775
|
t(pe), setTimeout(() => {
|
|
4740
4776
|
T.selectionStart = w, T.selectionEnd = w + Se.length;
|
|
4741
4777
|
}, 0);
|
|
4742
4778
|
} else {
|
|
4743
|
-
const Se =
|
|
4779
|
+
const Se = fe.map((_e) => ` ${_e}`).join(`
|
|
4744
4780
|
`), pe = e.substring(0, w) + Se + e.substring(x);
|
|
4745
4781
|
t(pe), setTimeout(() => {
|
|
4746
4782
|
T.selectionStart = w, T.selectionEnd = w + Se.length;
|
|
@@ -4755,31 +4791,31 @@ const bd = () => {
|
|
|
4755
4791
|
}
|
|
4756
4792
|
};
|
|
4757
4793
|
J(() => {
|
|
4758
|
-
const M =
|
|
4759
|
-
M.isValid ?
|
|
4794
|
+
const M = xs(e);
|
|
4795
|
+
M.isValid ? As(() => {
|
|
4760
4796
|
if (p(null), M.parsed) {
|
|
4761
|
-
const T =
|
|
4762
|
-
|
|
4797
|
+
const T = Au(M.parsed, l);
|
|
4798
|
+
I(T);
|
|
4763
4799
|
} else
|
|
4764
|
-
|
|
4765
|
-
}) :
|
|
4766
|
-
p(M.error),
|
|
4800
|
+
I("");
|
|
4801
|
+
}) : As(() => {
|
|
4802
|
+
p(M.error), I("");
|
|
4767
4803
|
});
|
|
4768
4804
|
}, [e, l]);
|
|
4769
|
-
const
|
|
4770
|
-
const M =
|
|
4805
|
+
const de = () => {
|
|
4806
|
+
const M = xs(e);
|
|
4771
4807
|
if (M.isValid && M.parsed) {
|
|
4772
|
-
const T =
|
|
4808
|
+
const T = yu(M.parsed, M.placeholders);
|
|
4773
4809
|
t(T);
|
|
4774
4810
|
}
|
|
4775
4811
|
}, ie = () => {
|
|
4776
4812
|
h != null && h.position && y.current && (y.current.focus(), y.current.setSelectionRange(h.position, h.position + 1));
|
|
4777
4813
|
};
|
|
4778
|
-
return /* @__PURE__ */ o(
|
|
4814
|
+
return /* @__PURE__ */ o(vi, { fallback: /* @__PURE__ */ o("div", { children: "Some error" }), children: /* @__PURE__ */ o("div", { className: "space-y-2", children: /* @__PURE__ */ m(Ua, { value: u, onValueChange: g, className: "w-full", children: [
|
|
4779
4815
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
4780
|
-
/* @__PURE__ */ m(
|
|
4816
|
+
/* @__PURE__ */ m(Ba, { className: "w-max", children: [
|
|
4781
4817
|
/* @__PURE__ */ m(vn, { value: "edit", className: "flex items-center gap-1", children: [
|
|
4782
|
-
/* @__PURE__ */ o(
|
|
4818
|
+
/* @__PURE__ */ o(yi, { className: "h-4 w-4" }),
|
|
4783
4819
|
/* @__PURE__ */ o("span", { children: "Edit" })
|
|
4784
4820
|
] }),
|
|
4785
4821
|
/* @__PURE__ */ m(
|
|
@@ -4789,7 +4825,7 @@ const bd = () => {
|
|
|
4789
4825
|
className: "flex items-center gap-1",
|
|
4790
4826
|
disabled: !e.trim() || h !== null || q,
|
|
4791
4827
|
children: [
|
|
4792
|
-
/* @__PURE__ */ o(
|
|
4828
|
+
/* @__PURE__ */ o(js, { className: "h-4 w-4" }),
|
|
4793
4829
|
/* @__PURE__ */ o("span", { children: "Preview" })
|
|
4794
4830
|
]
|
|
4795
4831
|
}
|
|
@@ -4801,14 +4837,14 @@ const bd = () => {
|
|
|
4801
4837
|
className: "flex items-center gap-1",
|
|
4802
4838
|
disabled: !e.trim() || h !== null,
|
|
4803
4839
|
children: [
|
|
4804
|
-
/* @__PURE__ */ o(
|
|
4840
|
+
/* @__PURE__ */ o(Ai, { className: "h-4 w-4" }),
|
|
4805
4841
|
/* @__PURE__ */ o("span", { children: "Shared" })
|
|
4806
4842
|
]
|
|
4807
4843
|
}
|
|
4808
4844
|
)
|
|
4809
4845
|
] }),
|
|
4810
4846
|
q ? null : u === "edit" && !s && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ o(
|
|
4811
|
-
|
|
4847
|
+
mu,
|
|
4812
4848
|
{
|
|
4813
4849
|
dataType: "value",
|
|
4814
4850
|
data: l ?? {},
|
|
@@ -4816,27 +4852,27 @@ const bd = () => {
|
|
|
4816
4852
|
}
|
|
4817
4853
|
) })
|
|
4818
4854
|
] }),
|
|
4819
|
-
/* @__PURE__ */ m(
|
|
4855
|
+
/* @__PURE__ */ m(Ln, { value: "edit", className: "relative mt-0", children: [
|
|
4820
4856
|
!q && u === "edit" && /* @__PURE__ */ o(Kt, { content: "Format JSON", side: "right", showTooltip: !n && !h, children: /* @__PURE__ */ o(
|
|
4821
|
-
|
|
4857
|
+
D,
|
|
4822
4858
|
{
|
|
4823
4859
|
type: "button",
|
|
4824
4860
|
variant: "outline",
|
|
4825
4861
|
size: "icon",
|
|
4826
|
-
onClick:
|
|
4862
|
+
onClick: de,
|
|
4827
4863
|
className: "absolute right-1 top-1 h-6 w-6 p-1",
|
|
4828
4864
|
disabled: !e.trim() || n || h !== null,
|
|
4829
|
-
children: /* @__PURE__ */ o(
|
|
4865
|
+
children: /* @__PURE__ */ o(Ti, {})
|
|
4830
4866
|
}
|
|
4831
4867
|
) }),
|
|
4832
4868
|
q ? /* @__PURE__ */ o("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
|
|
4833
4869
|
/* @__PURE__ */ o("div", { className: "max-w-xl text-center text-xs text-gray-500", children: "JSON-LD for is not added for selected language. JSON LD will be used from default language." }),
|
|
4834
|
-
/* @__PURE__ */ m(
|
|
4835
|
-
/* @__PURE__ */ o(
|
|
4870
|
+
/* @__PURE__ */ m(D, { type: "button", variant: "default", size: "sm", onClick: f, children: [
|
|
4871
|
+
/* @__PURE__ */ o(zs, {}),
|
|
4836
4872
|
"Copy & Edit from default language"
|
|
4837
4873
|
] })
|
|
4838
4874
|
] }) }) : /* @__PURE__ */ o(
|
|
4839
|
-
|
|
4875
|
+
ds,
|
|
4840
4876
|
{
|
|
4841
4877
|
ref: y,
|
|
4842
4878
|
id: i,
|
|
@@ -4851,9 +4887,9 @@ const bd = () => {
|
|
|
4851
4887
|
readOnly: s
|
|
4852
4888
|
}
|
|
4853
4889
|
),
|
|
4854
|
-
h && /* @__PURE__ */ m(
|
|
4855
|
-
/* @__PURE__ */ o(
|
|
4856
|
-
/* @__PURE__ */ m(
|
|
4890
|
+
h && /* @__PURE__ */ m(ea, { variant: "destructive", className: "mt-2", children: [
|
|
4891
|
+
/* @__PURE__ */ o(Si, { className: "h-4 w-4" }),
|
|
4892
|
+
/* @__PURE__ */ m(ta, { className: "flex flex-col", children: [
|
|
4857
4893
|
/* @__PURE__ */ o("span", { className: "font-medium", children: "Invalid JSON" }),
|
|
4858
4894
|
/* @__PURE__ */ o("span", { className: "text-sm", children: h.message }),
|
|
4859
4895
|
h.line && h.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
|
|
@@ -4863,7 +4899,7 @@ const bd = () => {
|
|
|
4863
4899
|
h.column
|
|
4864
4900
|
] }),
|
|
4865
4901
|
/* @__PURE__ */ o(
|
|
4866
|
-
|
|
4902
|
+
D,
|
|
4867
4903
|
{
|
|
4868
4904
|
type: "button",
|
|
4869
4905
|
variant: "link",
|
|
@@ -4876,15 +4912,15 @@ const bd = () => {
|
|
|
4876
4912
|
] })
|
|
4877
4913
|
] })
|
|
4878
4914
|
] }),
|
|
4879
|
-
/* @__PURE__ */ m(
|
|
4880
|
-
/* @__PURE__ */ o(
|
|
4915
|
+
/* @__PURE__ */ m(Ln, { value: "preview", className: "mt-0", children: [
|
|
4916
|
+
/* @__PURE__ */ o(ds, { rows: a, value: _, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
|
|
4881
4917
|
/* @__PURE__ */ o("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
|
|
4882
4918
|
] }),
|
|
4883
|
-
b && /* @__PURE__ */ o(
|
|
4919
|
+
b && /* @__PURE__ */ o(Ln, { value: "shared", className: "mt-0", children: /* @__PURE__ */ o(Y, { children: /* @__PURE__ */ o(Tu, {}) }) })
|
|
4884
4920
|
] }) }) });
|
|
4885
|
-
},
|
|
4886
|
-
const t =
|
|
4887
|
-
return
|
|
4921
|
+
}, Ud = (e) => {
|
|
4922
|
+
const t = N(), n = C();
|
|
4923
|
+
return ce({
|
|
4888
4924
|
queryKey: [E.GET_CHAI_USER, e],
|
|
4889
4925
|
queryFn: async () => {
|
|
4890
4926
|
const s = await n(t, {
|
|
@@ -4893,13 +4929,13 @@ const bd = () => {
|
|
|
4893
4929
|
}), r = (s == null ? void 0 : s.data) || {};
|
|
4894
4930
|
return { ...r, name: r.name || r.email };
|
|
4895
4931
|
},
|
|
4896
|
-
enabled: !
|
|
4932
|
+
enabled: !he(e),
|
|
4897
4933
|
staleTime: "static"
|
|
4898
4934
|
});
|
|
4899
4935
|
};
|
|
4900
|
-
class
|
|
4936
|
+
class Su {
|
|
4901
4937
|
constructor(t) {
|
|
4902
|
-
|
|
4938
|
+
Nn(this, "channel");
|
|
4903
4939
|
this.channel = t;
|
|
4904
4940
|
}
|
|
4905
4941
|
get topic() {
|
|
@@ -4942,141 +4978,141 @@ class Eu {
|
|
|
4942
4978
|
return this.channel.presenceState();
|
|
4943
4979
|
}
|
|
4944
4980
|
}
|
|
4945
|
-
class
|
|
4981
|
+
class _u {
|
|
4946
4982
|
constructor(t) {
|
|
4947
|
-
|
|
4983
|
+
Nn(this, "client");
|
|
4948
4984
|
this.client = t;
|
|
4949
4985
|
}
|
|
4950
4986
|
channel(t, n) {
|
|
4951
4987
|
const s = this.client.channel(t, n);
|
|
4952
|
-
return new
|
|
4988
|
+
return new Su(s);
|
|
4953
4989
|
}
|
|
4954
4990
|
}
|
|
4955
|
-
function
|
|
4956
|
-
return new
|
|
4991
|
+
function Bd(e) {
|
|
4992
|
+
return new _u(e);
|
|
4957
4993
|
}
|
|
4958
4994
|
if (typeof window > "u")
|
|
4959
4995
|
throw new Error("@chaibuilder/pages is not available on the server");
|
|
4960
4996
|
export {
|
|
4961
|
-
|
|
4997
|
+
Td as $,
|
|
4962
4998
|
E as A,
|
|
4963
4999
|
St as B,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
5000
|
+
Er as C,
|
|
5001
|
+
pd as D,
|
|
5002
|
+
W as E,
|
|
5003
|
+
gd as F,
|
|
5004
|
+
md as G,
|
|
4969
5005
|
Vn as H,
|
|
4970
5006
|
Fe as I,
|
|
4971
|
-
|
|
4972
|
-
|
|
5007
|
+
nc as J,
|
|
5008
|
+
Ed as K,
|
|
4973
5009
|
Qt as L,
|
|
4974
|
-
|
|
4975
|
-
|
|
5010
|
+
Xl as M,
|
|
5011
|
+
od as N,
|
|
4976
5012
|
_t as O,
|
|
4977
5013
|
ae as P,
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
5014
|
+
Id as Q,
|
|
5015
|
+
Nd as R,
|
|
5016
|
+
dd as S,
|
|
4981
5017
|
Kt as T,
|
|
4982
|
-
|
|
5018
|
+
sd as U,
|
|
4983
5019
|
Kn as V,
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
5020
|
+
Sd as W,
|
|
5021
|
+
oc as X,
|
|
5022
|
+
vd as Y,
|
|
5023
|
+
ld as Z,
|
|
5024
|
+
nd as _,
|
|
4989
5025
|
ve as a,
|
|
4990
5026
|
ns as a$,
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
5027
|
+
Pd as a0,
|
|
5028
|
+
_d as a1,
|
|
5029
|
+
wd as a2,
|
|
5030
|
+
bd as a3,
|
|
5031
|
+
cd as a4,
|
|
4996
5032
|
ne as a5,
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5033
|
+
hr as a6,
|
|
5034
|
+
ad as a7,
|
|
5035
|
+
ic as a8,
|
|
5036
|
+
wr as a9,
|
|
5037
|
+
tr as aA,
|
|
5002
5038
|
Wt as aB,
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5039
|
+
Yu as aC,
|
|
5040
|
+
Xu as aD,
|
|
5041
|
+
Rd as aE,
|
|
5042
|
+
xs as aF,
|
|
5043
|
+
Ju as aG,
|
|
5044
|
+
ed as aH,
|
|
5045
|
+
td as aI,
|
|
5046
|
+
Zu as aJ,
|
|
5047
|
+
Gd as aK,
|
|
5048
|
+
Hi as aL,
|
|
5013
5049
|
pn as aM,
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5050
|
+
Lo as aN,
|
|
5051
|
+
mu as aO,
|
|
5052
|
+
xd as aP,
|
|
5053
|
+
Vi as aQ,
|
|
5054
|
+
Ui as aR,
|
|
5055
|
+
Io as aS,
|
|
5056
|
+
Cd as aT,
|
|
5021
5057
|
Ge as aU,
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5058
|
+
Dd as aV,
|
|
5059
|
+
tu as aW,
|
|
5060
|
+
ol as aX,
|
|
5061
|
+
kd as aY,
|
|
5062
|
+
Od as aZ,
|
|
5063
|
+
Js as a_,
|
|
5028
5064
|
Me as aa,
|
|
5029
|
-
|
|
5030
|
-
|
|
5065
|
+
Vc as ab,
|
|
5066
|
+
ud as ac,
|
|
5031
5067
|
Jt as ad,
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5068
|
+
sc as ae,
|
|
5069
|
+
Ad as af,
|
|
5070
|
+
hd as ag,
|
|
5071
|
+
fd as ah,
|
|
5036
5072
|
Zt as ai,
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5073
|
+
Hl as aj,
|
|
5074
|
+
yd as ak,
|
|
5075
|
+
Nl as al,
|
|
5076
|
+
sr as am,
|
|
5077
|
+
Ud as an,
|
|
5078
|
+
mo as ao,
|
|
5079
|
+
N as ap,
|
|
5080
|
+
C as aq,
|
|
5081
|
+
eu as ar,
|
|
5082
|
+
ju as as,
|
|
5047
5083
|
nn as at,
|
|
5048
|
-
|
|
5084
|
+
ue as au,
|
|
5049
5085
|
Gn as av,
|
|
5050
5086
|
we as aw,
|
|
5051
|
-
|
|
5052
|
-
|
|
5087
|
+
me as ax,
|
|
5088
|
+
Mi as ay,
|
|
5053
5089
|
An as az,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5090
|
+
nr as b,
|
|
5091
|
+
ir as b0,
|
|
5092
|
+
Bd as b1,
|
|
5093
|
+
_u as b2,
|
|
5094
|
+
Ce as c,
|
|
5095
|
+
Bo as d,
|
|
5060
5096
|
ht as e,
|
|
5061
|
-
|
|
5062
|
-
|
|
5097
|
+
Vu as f,
|
|
5098
|
+
qu as g,
|
|
5063
5099
|
Ve as h,
|
|
5064
5100
|
ts as i,
|
|
5065
5101
|
yn as j,
|
|
5066
5102
|
qe as k,
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5103
|
+
Ri as l,
|
|
5104
|
+
$u as m,
|
|
5105
|
+
su as n,
|
|
5106
|
+
Wu as o,
|
|
5107
|
+
Jc as p,
|
|
5108
|
+
zu as q,
|
|
5109
|
+
Qu as r,
|
|
5110
|
+
Hu as s,
|
|
5111
|
+
Ld as t,
|
|
5112
|
+
Ku as u,
|
|
5077
5113
|
ee as v,
|
|
5078
|
-
|
|
5079
|
-
|
|
5114
|
+
Pr as w,
|
|
5115
|
+
id as x,
|
|
5080
5116
|
H as y,
|
|
5081
|
-
|
|
5117
|
+
Cl as z
|
|
5082
5118
|
};
|