@chaibuilder/sdk 4.0.0-beta.24 → 4.0.0-beta.26
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-DTcPSOGn.js → 2SSKDMRQ-Bk_4y8lw.js} +2 -2
- package/dist/{2SSKDMRQ-C6XmPkPR.cjs → 2SSKDMRQ-vWeQ_IyI.cjs} +1 -1
- package/dist/{AP7HFJJL-6aBLUYOi.cjs → AP7HFJJL-CMPLeI6t.cjs} +1 -1
- package/dist/{AP7HFJJL-CVazlaEj.js → AP7HFJJL-D_mI2XSw.js} +1 -1
- package/dist/{IconPicker-sbWeQ9M9.cjs → IconPicker-DB_PpKvH.cjs} +1 -1
- package/dist/{IconPicker-CcBoA1K0.js → IconPicker-jc6_JzXf.js} +1 -1
- package/dist/{WDYDFRGG-CwiYliX0.js → WDYDFRGG-B4H3RPcp.js} +2 -2
- package/dist/{WDYDFRGG-BtzyRDmj.cjs → WDYDFRGG-D7vzbPjk.cjs} +1 -1
- package/dist/{active-in-another-tab-B4O3FEEg.js → active-in-another-tab-CDhFxBU7.js} +2 -2
- package/dist/{active-in-another-tab-DRJY0QqU.cjs → active-in-another-tab-CMPHyyHE.cjs} +1 -1
- package/dist/{add-new-language-page-BfYL9jXF.js → add-new-language-page-BliZ46WW.js} +3 -3
- package/dist/{add-new-language-page-CKIRTFjr.cjs → add-new-language-page-IbMzbf4v.cjs} +1 -1
- package/dist/{add-new-page-dzN_CD2c.cjs → add-new-page-BJJqSKp0.cjs} +1 -1
- package/dist/{add-new-page-DVgxz4fs.js → add-new-page-DUCKfyWo.js} +2 -2
- package/dist/{ai-panel-content-Dyw4RHCV.cjs → ai-panel-content-DWOqjq3Z.cjs} +1 -1
- package/dist/{ai-panel-content-D5eFLI_B.js → ai-panel-content-GeQIaXy8.js} +3 -3
- package/dist/{ai-panel-default-lang-DEj9Qx2M.cjs → ai-panel-default-lang-DGNDrfam.cjs} +2 -2
- package/dist/{ai-panel-default-lang-Cj7meZBD.js → ai-panel-default-lang-VQsV6KB3.js} +3 -3
- package/dist/{ai-panel-other-lang-Da2XLEcm.cjs → ai-panel-other-lang-DvXF0Nn5.cjs} +1 -1
- package/dist/{ai-panel-other-lang-Cbi6HKzd.js → ai-panel-other-lang-SuC8jyfr.js} +3 -3
- package/dist/{ai-prompt-input-B6QoqT9B.js → ai-prompt-input-CB6iQAmE.js} +1 -1
- package/dist/{ai-prompt-input-DXS8gzex.cjs → ai-prompt-input-a8s-JrZb.cjs} +1 -1
- package/dist/{ai-translation-prompt-Dmq_Ahjf.js → ai-translation-prompt-CoNVDclG.js} +1 -1
- package/dist/{ai-translation-prompt-Uswft8iz.cjs → ai-translation-prompt-Qn1Sz4BI.cjs} +1 -1
- package/dist/change-password-modal-BtdsU0mm.cjs +1 -0
- package/dist/change-password-modal-CMEo8lEm.js +137 -0
- package/dist/{code-editor-wQWmwFKW.js → code-editor-CTMQr0aU.js} +1 -1
- package/dist/{code-editor-DbSBrsUA.cjs → code-editor-CjatfjZe.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-Dkkzk8YZ.cjs → continue-editing-in-this-client-7swLl0kq.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-BV0OrgEU.js → continue-editing-in-this-client-CNVJZvXQ.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{css-import-modal-Co_YLkLB.js → css-import-modal-B3XY8Hzw.js} +1 -1
- package/dist/{css-import-modal-C3f5sphx.cjs → css-import-modal-D2RqE-V0.cjs} +1 -1
- package/dist/{delete-design-token-CJPAcsWp.js → delete-design-token-DEyYFVHU.js} +1 -1
- package/dist/{delete-design-token-zzNmNYLR.cjs → delete-design-token-Dd3b86G7.cjs} +1 -1
- package/dist/{delete-page-CQTjB7ZZ.js → delete-page-BSn5mRvk.js} +2 -2
- package/dist/{delete-page-6lInxYM_.cjs → delete-page-BfsmsTek.cjs} +1 -1
- package/dist/{design-token-usage-blwlGuEE.cjs → design-token-usage-BY8meqAt.cjs} +1 -1
- package/dist/{design-token-usage-BQY6eqzE.js → design-token-usage-f20BdlHE.js} +1 -1
- package/dist/{digital-asset-manager-cGUpTcu3.cjs → digital-asset-manager-Pi0YiB35.cjs} +1 -1
- package/dist/{digital-asset-manager-lPKoJ4FH.js → digital-asset-manager-iXt27NlP.js} +3 -3
- package/dist/{duplicate-page-Dmgqp93w.js → duplicate-page-BuVub6uY.js} +3 -3
- package/dist/{duplicate-page-rYeBMwHR.cjs → duplicate-page-g5hiQkrZ.cjs} +1 -1
- package/dist/{dynamic-page-selector-CVyA9Zp0.js → dynamic-page-selector-NZ-rKLo3.js} +2 -2
- package/dist/{dynamic-page-selector-zqGqpcww.cjs → dynamic-page-selector-z6UGEjk1.cjs} +1 -1
- package/dist/{get-chai-builder-theme-CfJkQYZc.js → get-chai-builder-theme-CHXhAcdV.js} +1 -1
- package/dist/{get-chai-builder-theme-Dm1z70lQ.cjs → get-chai-builder-theme-CMypjJk8.cjs} +1 -1
- package/dist/{image-editor-mVBb0VD_.js → image-editor--WT9183_.js} +1 -1
- package/dist/{image-editor-Cn1DgrNp.cjs → image-editor-C6cZZNbB.cjs} +1 -1
- package/dist/index-BGGNVIKx.cjs +5 -0
- package/dist/{index-EFWvSWoi.cjs → index-CfsIhbT2.cjs} +3 -3
- package/dist/{index-GfOB5KV1.js → index-ckjNCVor.js} +990 -978
- package/dist/{index-lm46VtIP.js → index-iRqgNs2O.js} +14 -10
- package/dist/{json-diff-viewer-D5yJoFh1.js → json-diff-viewer-DAQ-qSHk.js} +2 -2
- package/dist/{json-diff-viewer-BeSMdSd5.cjs → json-diff-viewer-DheqS084.cjs} +1 -1
- package/dist/{lang-panel-7qTejsLm.js → lang-panel-DRDPvY1i.js} +3 -3
- package/dist/{lang-panel-B-QUotOn.cjs → lang-panel-oLc-QyU4.cjs} +1 -1
- package/dist/{manage-design-tokens-TeWNZekH.cjs → manage-design-tokens-Hu25ejcC.cjs} +1 -1
- package/dist/{manage-design-tokens-DeH-yNJN.js → manage-design-tokens-rEzXQJRW.js} +2 -2
- package/dist/{mark-as-template-RkfNETRW.js → mark-as-template-BNbn5zQG.js} +2 -2
- package/dist/{mark-as-template-Co00KkhA.cjs → mark-as-template-DEThYoS6.cjs} +1 -1
- package/dist/{nested-path-selector-content-Dimjyy8J.js → nested-path-selector-content-BERhs6_L.js} +1 -1
- package/dist/{nested-path-selector-content-hBvmT_2A.cjs → nested-path-selector-content-Dz3-bNqT.cjs} +1 -1
- package/dist/{no-language-page-content-Bk3sTsdM.js → no-language-page-content-CPVIz5rC.js} +2 -2
- package/dist/{no-language-page-content-CLovr1bL.cjs → no-language-page-content-CrUkIrUJ.cjs} +1 -1
- package/dist/{no-language-page-dialog-C21Fq-UD.cjs → no-language-page-dialog-964r8feg.cjs} +1 -1
- package/dist/{no-language-page-dialog-Cx-YOrAd.js → no-language-page-dialog-DPDJ6gkQ.js} +2 -2
- package/dist/{page-creator-BBuYY84G.js → page-creator-CDcfL4al.js} +3 -3
- package/dist/{page-creator-BDmospqO.cjs → page-creator-kvymje2i.cjs} +1 -1
- package/dist/{page-lock-BrGWj326.js → page-lock-BpUGSiCT.js} +2 -2
- package/dist/{page-lock-DG5IvZaG.cjs → page-lock-gOE-Tt7g.cjs} +1 -1
- package/dist/{page-locked-dialog-DUktYJzU.js → page-locked-dialog-UQeYxWz1.js} +2 -2
- package/dist/{page-locked-dialog-DKnQpIMB.cjs → page-locked-dialog-aJFtoEzq.cjs} +1 -1
- package/dist/{page-manager-new-iYsDkUzG.cjs → page-manager-new-DBomYOFT.cjs} +1 -1
- package/dist/{page-manager-new-BfKYDWs7.js → page-manager-new-Dg02OZtc.js} +22 -22
- package/dist/{page-manager-search-and-filter-DVAGxnlw.js → page-manager-search-and-filter-CCTh5gkC.js} +2 -2
- package/dist/{page-manager-search-and-filter-CIspvIW2.cjs → page-manager-search-and-filter-pWHXOgMJ.cjs} +1 -1
- package/dist/{page-revisions-content-B84UtAxm.cjs → page-revisions-content-BDY8RXJW.cjs} +1 -1
- package/dist/{page-revisions-content-DB4mj_Cw.js → page-revisions-content-C6YjUAx9.js} +7 -7
- package/dist/pages.cjs +1 -1
- package/dist/pages.js +12 -12
- package/dist/{plugin-DVNaUexn.js → plugin-DH3BDqys.js} +7 -7
- package/dist/{plugin-BfC_qpW2.cjs → plugin-DO5QAuc1.cjs} +7 -7
- package/dist/{publish-pages-content-BRKsIr9W.js → publish-pages-content-8MQN9iLc.js} +17 -17
- package/dist/{publish-pages-content-ysv37LxZ.cjs → publish-pages-content-DjUd9oWi.cjs} +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.js +2 -2
- package/dist/{rte-widget-modal-Dj5BvA-1.js → rte-widget-modal-Bj7lxFEs.js} +1 -1
- package/dist/{rte-widget-modal-BS040t_9.cjs → rte-widget-modal-O31cHitM.cjs} +1 -1
- package/dist/{save-to-lib-D3kp0ovZ.js → save-to-lib-BMlowHNl.js} +2 -2
- package/dist/{save-to-lib-ClCCNy6W.cjs → save-to-lib-vxpiXsok.cjs} +1 -1
- package/dist/sdk.css +1 -1
- package/dist/{selected-block-display-BvRoOMt9.cjs → selected-block-display-BjhZTfSL.cjs} +1 -1
- package/dist/{selected-block-display-BtlTAkei.js → selected-block-display-BxHTDLna.js} +2 -2
- package/dist/{seo-panel-C_Cnwj1-.js → seo-panel-197ULlty.js} +2 -2
- package/dist/{seo-panel-CHGdB8_7.cjs → seo-panel-MrGhioya.cjs} +1 -1
- package/dist/{shared-json-ld-DA0wz-k3.cjs → shared-json-ld-6ovlKZ7L.cjs} +1 -1
- package/dist/{shared-json-ld-DPr0Douk.js → shared-json-ld-B2kfIim8.js} +24 -24
- package/dist/{slug-input-CqhlfgAe.js → slug-input-CSqTWSv8.js} +1 -1
- package/dist/{slug-input-DltqfQ3y.cjs → slug-input-CV-Dvosn.cjs} +1 -1
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.d.ts +34 -0
- package/dist/supabase-actions.js +231 -192
- package/dist/{take-over-request-Bq7OF5Gp.cjs → take-over-request-BFZbLBOK.cjs} +1 -1
- package/dist/{take-over-request-ByUlm_HK.js → take-over-request-Ds_-1dOv.js} +2 -2
- package/dist/{theme-panel-footer-DG7Z5YjD.js → theme-panel-footer-C1f2KMBq.js} +2 -2
- package/dist/{theme-panel-footer-XYoM6sn5.cjs → theme-panel-footer-dHh8VGgj.cjs} +1 -1
- package/dist/{translation-warning-modal-DaBUipEY.js → translation-warning-modal-DPdVK3CD.js} +1 -1
- package/dist/{translation-warning-modal-DTxxfo0H.cjs → translation-warning-modal-HD8Mlj1e.cjs} +1 -1
- package/dist/{unmark-as-template-C9EXTj0X.cjs → unmark-as-template-D8wEsu9z.cjs} +1 -1
- package/dist/{unmark-as-template-BOFHOO0_.js → unmark-as-template-DLVNotM_.js} +2 -2
- package/dist/{unpublish-page-B5rev9W3.cjs → unpublish-page-Cl2R_dfN.cjs} +1 -1
- package/dist/{unpublish-page-KDM7kEEV.js → unpublish-page-ik9a66Rz.js} +2 -2
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +23 -22
- package/dist/{web-preview-CvpevNzM.cjs → web-preview-CE39XTw0.cjs} +1 -1
- package/dist/{web-preview-BDgUTTr8.js → web-preview-ztlGD_Xm.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B5qvHqN5.cjs +0 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Vr = Object.defineProperty;
|
|
2
|
+
var Yn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var un = (e, t, n) =>
|
|
7
|
-
var S = (e, t, n) => (
|
|
8
|
-
import { jsxs as m, jsx as
|
|
9
|
-
import { d as we, aj as
|
|
10
|
-
import { B
|
|
11
|
-
import { atom as Ae, useAtom as Te, useSetAtom as
|
|
12
|
-
import { get as q, noop as rn, reverse as ba, sortBy as Ia, find as ce, minBy as
|
|
5
|
+
var Hr = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var un = (e, t, n) => Hr(e, typeof t != "symbol" ? t + "" : t, n), Jn = (e, t, n) => t.has(e) || Yn("Cannot " + n);
|
|
7
|
+
var S = (e, t, n) => (Jn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), x = (e, t, n) => t.has(e) ? Yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, s) => (Jn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
|
|
8
|
+
import { jsxs as m, jsx as c, Fragment as pe } from "react/jsx-runtime";
|
|
9
|
+
import { d as we, aj as qr, ai as vs, s as Gn, t as On, v as xn, w as ue, R as Me, x as tn, y as nn, z as sn, aC as bs, aD as Is, ab as $r, ac as Qr, aE as zr, aF as Wr, ar as Ns, aG as jr, ad as Dt, D as Rn, aH as Yr, aI as Jr, ag as Zr, aw as Xr, av as ea, ax as ta, e as Ls, F as na, G as sa, H as ra, I as aa, J as ia, K as oa, M as ca, O as la, Q as ua, aJ as da, a7 as fa, a8 as ha, f as ga, g as ma, as as Ea, at as pa, au as dn, aK as fn, T as Zn } from "./index-iRqgNs2O.js";
|
|
10
|
+
import { B, h as ya, j as Aa, v as Ut, e as Xn, m as Ta, q as Sa, x as _a, D as Pa, F as wa } from "./register-chai-top-bar-CX_JkRJn.js";
|
|
11
|
+
import { atom as Ae, useAtom as Te, useSetAtom as kn, useAtomValue as va } from "jotai";
|
|
12
|
+
import { get as q, noop as rn, reverse as ba, sortBy as Ia, find as ce, minBy as Cs, values as Gs, first as Os, groupBy as Na, keyBy as La, map as Qt, isEmpty as ge, compact as xs, each as Ca, upperCase as es, filter as Rs, includes as Ga, isArray as Oa, has as Dn, startCase as xa, isFunction as Ra, pick as ks, cloneDeep as ka, isEqual as ts } from "lodash-es";
|
|
13
13
|
import * as Q from "react";
|
|
14
|
-
import Da, { useMemo as $, useCallback as z, useState as V, useEffect as
|
|
15
|
-
import { useQuery as se, useMutation as
|
|
16
|
-
import { CopyPlusIcon as Ba, Pencil as
|
|
14
|
+
import Da, { useMemo as $, useCallback as z, useState as V, useEffect as j, useRef as oe, Suspense as J, lazy as H, startTransition as ns } from "react";
|
|
15
|
+
import { useQuery as se, useMutation as X, useQueryClient as Y, onlineManager as Ds, QueryClient as Ua, QueryClientProvider as Ma } from "@tanstack/react-query";
|
|
16
|
+
import { CopyPlusIcon as Ba, Pencil as Us, Power as Fa, Trash as Ka, SquareLibrary as ss, LogsIcon as Va, Folder as Ha, Loader as ct, Hash as qa, File as $a, MoreHorizontal as rs, Languages as as, ChevronDown as Tn, Star as Qa, Plus as Ms, History as za, Palette as Wa, Play as ja, CheckCircle as Ya, Save as Ja, Send as is, Rocket as os, ExternalLink as Za, LanguagesIcon as Xa, User as ei, X as cs, Trash2 as ti, ImageIcon as ls, Code as ni, Eye as si, Share2 as ri, FileCode2 as ai, AlertTriangle as ii } from "lucide-react";
|
|
17
17
|
import { useTranslation as ve } from "react-i18next";
|
|
18
|
-
import { e as oi } from "./plugin-
|
|
18
|
+
import { e as oi } from "./plugin-DH3BDqys.js";
|
|
19
19
|
import { c as zt } from "./common-functions-D2lMFR6K.js";
|
|
20
20
|
import { toast as D } from "sonner";
|
|
21
21
|
import { i as ci } from "./core-QlWEXm1d.js";
|
|
22
22
|
import { g as li } from "./apply-binding-Bk2y-y_A.js";
|
|
23
23
|
import { loadWebBlocks as ui } from "./web-blocks.js";
|
|
24
24
|
import { ErrorBoundary as di } from "react-error-boundary";
|
|
25
|
-
const
|
|
25
|
+
const Wt = Ae(null), p = {
|
|
26
26
|
GET_GLOBAL_JSONLD_ITEMS: "GET_GLOBAL_JSONLD_ITEMS",
|
|
27
27
|
GENERATE_SEO_FIELD: "GENERATE_SEO_FIELD",
|
|
28
28
|
UPDATE_PAGE_METADATA: "UPDATE_PAGE_METADATA",
|
|
@@ -53,6 +53,7 @@ const jt = Ae(null), p = {
|
|
|
53
53
|
AI_CONTEXT: "AI_CONTEXT",
|
|
54
54
|
GET_WEBSITE_DATA: "GET_WEBSITE_DATA",
|
|
55
55
|
GET_CHAI_USER: "GET_CHAI_USER",
|
|
56
|
+
CHANGE_PASSWORD: "CHANGE_PASSWORD",
|
|
56
57
|
GET_SEO_FIELDS: "GET_SEO_FIELDS",
|
|
57
58
|
GET_BUILDER_PAGE_DATA: "GET_BUILDER_PAGE_DATA",
|
|
58
59
|
GET_PAGE_REVISIONS: "GET_PAGE_REVISIONS",
|
|
@@ -85,17 +86,17 @@ const jt = Ae(null), p = {
|
|
|
85
86
|
UPDATE_ASSET: "UPDATE_ASSET",
|
|
86
87
|
GET_ASSETS: "GET_ASSETS",
|
|
87
88
|
GET_ASSET: "GET_ASSET"
|
|
88
|
-
}, fi = Ae({}),
|
|
89
|
-
const [n] =
|
|
89
|
+
}, fi = Ae({}), Un = () => Te(fi), de = (e, t) => {
|
|
90
|
+
const [n] = Un();
|
|
90
91
|
return $(() => q(n, e, t), [n, e, t]);
|
|
91
|
-
}, I = () => de("apiUrl", "/chai/api"),
|
|
92
|
+
}, I = () => de("apiUrl", "/chai/api"), Bs = () => de("realtimeAdapter", null), Fs = async (e, t, n = {}) => await fetch(e, {
|
|
92
93
|
method: "POST",
|
|
93
94
|
headers: {
|
|
94
95
|
"Content-Type": "application/json",
|
|
95
96
|
...n
|
|
96
97
|
},
|
|
97
98
|
body: JSON.stringify(t)
|
|
98
|
-
}),
|
|
99
|
+
}), iu = () => {
|
|
99
100
|
const e = C(), t = I();
|
|
100
101
|
return z(
|
|
101
102
|
async ({
|
|
@@ -112,7 +113,7 @@ const jt = Ae(null), p = {
|
|
|
112
113
|
async (s = n, r, a = {}, i = !1) => {
|
|
113
114
|
const o = await t();
|
|
114
115
|
try {
|
|
115
|
-
const
|
|
116
|
+
const l = q(r, "action", "").toLowerCase(), d = await Fs(s + (l ? `?action=${l}` : ""), r, {
|
|
116
117
|
...a,
|
|
117
118
|
Authorization: `Bearer ${o}`
|
|
118
119
|
});
|
|
@@ -130,8 +131,8 @@ const jt = Ae(null), p = {
|
|
|
130
131
|
};
|
|
131
132
|
}
|
|
132
133
|
return await d.json();
|
|
133
|
-
} catch (
|
|
134
|
-
throw console.error("API request failed:", r,
|
|
134
|
+
} catch (l) {
|
|
135
|
+
throw console.error("API request failed:", r, l), l;
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
[e, t]
|
|
@@ -141,7 +142,7 @@ function be() {
|
|
|
141
142
|
const [e, t] = V(
|
|
142
143
|
new URLSearchParams(window.location.search)
|
|
143
144
|
);
|
|
144
|
-
return
|
|
145
|
+
return j(() => {
|
|
145
146
|
const n = () => {
|
|
146
147
|
t(new URLSearchParams(window.location.search));
|
|
147
148
|
};
|
|
@@ -167,19 +168,19 @@ const Be = (e) => {
|
|
|
167
168
|
},
|
|
168
169
|
enabled: !!s
|
|
169
170
|
});
|
|
170
|
-
}, hi = Ae(null),
|
|
171
|
-
const [e] =
|
|
171
|
+
}, hi = Ae(null), Ks = () => Te(hi), Mn = () => {
|
|
172
|
+
const [e] = Ks();
|
|
172
173
|
return (e == null ? void 0 : e.slug) || "";
|
|
173
174
|
};
|
|
174
175
|
function gi(e, t) {
|
|
175
176
|
const [n, s] = V(e);
|
|
176
|
-
return
|
|
177
|
+
return j(() => {
|
|
177
178
|
const r = setTimeout(() => s(e), t);
|
|
178
179
|
return () => clearTimeout(r);
|
|
179
180
|
}, [e, t]), n;
|
|
180
181
|
}
|
|
181
182
|
const mi = ({ query: e, uuid: t }) => {
|
|
182
|
-
const { selectedLang: n, fallbackLang: s } = we(), { data: r } = fe(), a = r == null ? void 0 : r.pageType, i = I(), o = C(), { data:
|
|
183
|
+
const { selectedLang: n, fallbackLang: s } = we(), { data: r } = fe(), a = r == null ? void 0 : r.pageType, i = I(), o = C(), { data: l, isFetching: d } = se({
|
|
183
184
|
queryKey: [p.GET_DYNAMIC_PAGES, e, a, t],
|
|
184
185
|
staleTime: 3600 * 1e3,
|
|
185
186
|
placeholderData: [],
|
|
@@ -188,10 +189,10 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
188
189
|
data: { query: e, pageType: a, uuid: t }
|
|
189
190
|
}) || [],
|
|
190
191
|
enabled: !!a
|
|
191
|
-
}), u = $(() => n === "" ?
|
|
192
|
-
return { allLangPages:
|
|
192
|
+
}), u = $(() => n === "" ? l.filter((f) => f.lang === "" || f.lang === s) : l.filter((f) => f.lang === n), [n, s, l]);
|
|
193
|
+
return { allLangPages: l, data: u, isFetching: d };
|
|
193
194
|
}, Ei = () => {
|
|
194
|
-
const { selectedLang: e, fallbackLang: t } = we(), [n, s] =
|
|
195
|
+
const { selectedLang: e, fallbackLang: t } = we(), [n, s] = Ks(), [r, a] = V(""), i = gi(r, 500), { allLangPages: o, data: l, isFetching: d } = mi({ query: i }), u = z((h) => s(h), [s]), f = z((h) => a(h), [a]), g = z(() => {
|
|
195
196
|
if (!n) return;
|
|
196
197
|
const h = !(n != null && n.primaryPage), A = e.length === 0, y = h ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, _ = o.filter(
|
|
197
198
|
(E) => (E == null ? void 0 : E.primaryPage) === y || E.id === y
|
|
@@ -203,23 +204,23 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
203
204
|
dynamicPage: n,
|
|
204
205
|
searchQuery: r,
|
|
205
206
|
selectedLang: e,
|
|
206
|
-
dynamicPages:
|
|
207
|
+
dynamicPages: l,
|
|
207
208
|
allLangPages: o,
|
|
208
209
|
updateDynamicPage: u,
|
|
209
210
|
updateSearchQuery: f,
|
|
210
211
|
onChangeLanguage: g
|
|
211
212
|
};
|
|
212
|
-
}, pi = Ae({ lastSaved: void 0 }),
|
|
213
|
+
}, pi = Ae({ lastSaved: void 0 }), Vs = () => Te(pi), fe = () => {
|
|
213
214
|
const [e] = be(), t = e.get("page"), { data: n, isFetching: s } = Be();
|
|
214
215
|
return { data: $(() => ({ ...ce(n, { id: t }) || {} }), [n, t]), isFetching: s };
|
|
215
216
|
}, Ce = () => {
|
|
216
217
|
const [e] = be(), t = e.get("lang") ?? "", { data: n, isFetching: s } = Be();
|
|
217
218
|
return { data: $(() => ce(n, { lang: t }) || {}, [n, t]), isFetching: s };
|
|
218
219
|
}, yi = Ae({}), Ai = () => Te(yi), Ti = () => {
|
|
219
|
-
const { data: e } = Ce(), t =
|
|
220
|
+
const { data: e } = Ce(), t = Mn(), n = de("getLiveUrl", rn), s = e == null ? void 0 : e.slug, r = n(s || "/");
|
|
220
221
|
return t ? r + t : r;
|
|
221
222
|
}, he = {
|
|
222
|
-
...
|
|
223
|
+
...qr,
|
|
223
224
|
//pages
|
|
224
225
|
ADD_PAGE: "add_page",
|
|
225
226
|
EDIT_PAGE: "edit_page",
|
|
@@ -247,7 +248,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
247
248
|
return $(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
|
|
248
249
|
}, _i = () => {
|
|
249
250
|
const e = I(), t = C();
|
|
250
|
-
return
|
|
251
|
+
return X({
|
|
251
252
|
mutationFn: async ({ pageType: n, query: s }) => {
|
|
252
253
|
try {
|
|
253
254
|
return t(e, {
|
|
@@ -271,13 +272,13 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
271
272
|
setMarkAsTemplate: a,
|
|
272
273
|
setUnmarkAsTemplate: i,
|
|
273
274
|
children: o,
|
|
274
|
-
isLanguagePage:
|
|
275
|
+
isLanguagePage: l
|
|
275
276
|
}) => {
|
|
276
|
-
const { t: d } = ve(), { hasPermission: u } =
|
|
277
|
+
const { t: d } = ve(), { hasPermission: u } = vs(), { data: f } = Ge(), g = $(() => ce(f, { key: e.pageType }), [f, e.pageType]), h = $(() => !!e.isTemplate, [e.isTemplate]), A = $(() => !!(g != null && g.hasSlug), [g == null ? void 0 : g.hasSlug]);
|
|
277
278
|
return !u(he.EDIT_PAGE) && !u(he.DELETE_PAGE) && !u(he.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(Gn, { children: [
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ c(On, { asChild: !0, onClick: (T) => T.stopPropagation(), children: o }),
|
|
279
280
|
/* @__PURE__ */ m(xn, { align: "center", className: "text-sm", children: [
|
|
280
|
-
u(he.ADD_PAGE) && !
|
|
281
|
+
u(he.ADD_PAGE) && !l && /* @__PURE__ */ m(
|
|
281
282
|
ue,
|
|
282
283
|
{
|
|
283
284
|
className: "flex cursor-pointer items-center gap-2",
|
|
@@ -285,7 +286,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
285
286
|
T.stopPropagation(), t(e);
|
|
286
287
|
},
|
|
287
288
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ c(Ba, { className: "size-3" }),
|
|
289
290
|
"Duplicate page"
|
|
290
291
|
]
|
|
291
292
|
}
|
|
@@ -301,7 +302,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
301
302
|
});
|
|
302
303
|
},
|
|
303
304
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ c(Us, { className: "size-3" }),
|
|
305
306
|
"Edit"
|
|
306
307
|
]
|
|
307
308
|
}
|
|
@@ -314,7 +315,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
314
315
|
T.stopPropagation(), s(e);
|
|
315
316
|
},
|
|
316
317
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ c(Fa, { className: "size-3" }),
|
|
318
319
|
d("Unpublish")
|
|
319
320
|
]
|
|
320
321
|
}
|
|
@@ -327,12 +328,12 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
327
328
|
T.stopPropagation(), r(e);
|
|
328
329
|
},
|
|
329
330
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ c(Ka, { className: "size-3" }),
|
|
331
332
|
d("Delete")
|
|
332
333
|
]
|
|
333
334
|
}
|
|
334
335
|
),
|
|
335
|
-
u(he.MARK_AS_TEMPLATE) && A && !
|
|
336
|
+
u(he.MARK_AS_TEMPLATE) && A && !l && /* @__PURE__ */ c(pe, { children: h ? /* @__PURE__ */ m(
|
|
336
337
|
ue,
|
|
337
338
|
{
|
|
338
339
|
className: "flex cursor-pointer items-center gap-2",
|
|
@@ -340,7 +341,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
340
341
|
T.stopPropagation(), i(e);
|
|
341
342
|
},
|
|
342
343
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ c(ss, { className: "size-3" }),
|
|
344
345
|
d("Unmark as template")
|
|
345
346
|
]
|
|
346
347
|
}
|
|
@@ -352,7 +353,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
352
353
|
T.stopPropagation(), a(e);
|
|
353
354
|
},
|
|
354
355
|
children: [
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ c(ss, { className: "size-3" }),
|
|
356
357
|
d("Mark as template")
|
|
357
358
|
]
|
|
358
359
|
}
|
|
@@ -376,7 +377,7 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
376
377
|
data: { draft: !0 }
|
|
377
378
|
})
|
|
378
379
|
});
|
|
379
|
-
},
|
|
380
|
+
}, Bn = () => {
|
|
380
381
|
const e = de("currentUser"), t = de("onLogout");
|
|
381
382
|
return {
|
|
382
383
|
isLoggedIn: !!e,
|
|
@@ -407,16 +408,16 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
407
408
|
re.FORCE_TAKE_OVER_REQUEST,
|
|
408
409
|
re.CONTINUE_EDITING_IN_THIS_CLIENT,
|
|
409
410
|
re.CONTINUE_EDITING_IN_THIS_TAB_REQUEST
|
|
410
|
-
], bi = Ae({}),
|
|
411
|
-
const t = {}, n = Na(
|
|
411
|
+
], bi = Ae({}), Hs = Ae(null), Ii = Ae(ne.CHECKING), Ni = Ae({}), Li = (e) => {
|
|
412
|
+
const t = {}, n = Na(Gs(e).map(Os).filter(Boolean), "pageId");
|
|
412
413
|
return Object.entries(n).forEach(
|
|
413
|
-
([s, r]) => t[s] =
|
|
414
|
+
([s, r]) => t[s] = Cs(r, "onlineAt")
|
|
414
415
|
), t;
|
|
415
416
|
}, Ci = (e) => {
|
|
416
|
-
const t =
|
|
417
|
+
const t = Cs(Gs(e).map(Os).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
|
|
417
418
|
return n ? n - 100 : +/* @__PURE__ */ new Date() - 1e3 * 60 * 60 * 4;
|
|
418
419
|
}, an = () => {
|
|
419
|
-
const { user: e } =
|
|
420
|
+
const { user: e } = Bn();
|
|
420
421
|
return e == null ? void 0 : e.id;
|
|
421
422
|
}, Gi = () => {
|
|
422
423
|
const { data: e } = Fe();
|
|
@@ -426,35 +427,35 @@ const mi = ({ query: e, uuid: t }) => {
|
|
|
426
427
|
return e == null ? void 0 : e.id;
|
|
427
428
|
}, Ne = crypto.randomUUID();
|
|
428
429
|
let hn = null;
|
|
429
|
-
const
|
|
430
|
+
const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
|
|
430
431
|
const [e, t] = Te(bi);
|
|
431
432
|
return { pageToUser: e, setPageToUser: t };
|
|
432
433
|
}, Se = () => {
|
|
433
434
|
const [e, t] = Te(Ii), n = [ne.LOCKED, ne.ACTIVE_IN_ANOTHER_TAB].includes(e), s = [ne.EDITING].includes(e);
|
|
434
435
|
return { pageStatus: e, setPageStatus: t, isLocked: n, isEditing: s };
|
|
435
|
-
},
|
|
436
|
+
}, $s = () => {
|
|
436
437
|
const [e, t] = Te(Ni);
|
|
437
438
|
return { pageLockMeta: e, setPageLockMeta: t };
|
|
438
439
|
}, ki = () => {
|
|
439
|
-
const e = xt(), { pageToUser: t } =
|
|
440
|
+
const e = xt(), { pageToUser: t } = qs();
|
|
440
441
|
return $(() => t[e], [t, e]);
|
|
441
|
-
},
|
|
442
|
-
const e =
|
|
443
|
-
return
|
|
442
|
+
}, Fn = () => {
|
|
443
|
+
const e = Bs(), { setPageStatus: t } = Se(), [n] = Te(Hs);
|
|
444
|
+
return j(() => {
|
|
444
445
|
if (clearTimeout(hn), !e)
|
|
445
446
|
return hn = setTimeout(() => {
|
|
446
447
|
e || t(ne.EDITING);
|
|
447
448
|
}, 500), () => clearTimeout(hn);
|
|
448
449
|
}, [e, t]), n;
|
|
449
450
|
}, Di = () => {
|
|
450
|
-
const e = xt(), t = an(), n =
|
|
451
|
-
return
|
|
451
|
+
const e = xt(), t = an(), n = Fn(), { setPageToUser: s } = qs(), { setPageStatus: r, pageStatus: a } = Se(), i = oe(e);
|
|
452
|
+
return j(() => {
|
|
452
453
|
i.current = e;
|
|
453
454
|
}, [e]), z(
|
|
454
455
|
(o) => {
|
|
455
|
-
const
|
|
456
|
-
if (!
|
|
457
|
-
const d =
|
|
456
|
+
const l = o || n;
|
|
457
|
+
if (!l) return [];
|
|
458
|
+
const d = l == null ? void 0 : l.presenceState(), u = Li(d);
|
|
458
459
|
s(u);
|
|
459
460
|
const f = u[i.current];
|
|
460
461
|
if (!f)
|
|
@@ -470,26 +471,26 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
470
471
|
[n, s, r, t, a]
|
|
471
472
|
);
|
|
472
473
|
}, Ui = () => {
|
|
473
|
-
const e = an(), t = xt(), n =
|
|
474
|
-
return
|
|
474
|
+
const e = an(), t = xt(), n = Fn(), s = ki(), { setPageLockMeta: r } = $s(), a = oe(t);
|
|
475
|
+
return j(() => {
|
|
475
476
|
a.current = t;
|
|
476
477
|
}, [t]), z(
|
|
477
478
|
async (i, o) => {
|
|
478
479
|
if (!n) return;
|
|
479
|
-
const
|
|
480
|
-
|
|
480
|
+
const l = o || {};
|
|
481
|
+
l.userId = e, l.pageId = a.current, l.senderClientId = Ne, l.receiverClientId = (o == null ? void 0 : o.requestingClientId) || (s == null ? void 0 : s.clientId), await n.send(i, l), r({});
|
|
481
482
|
},
|
|
482
483
|
[n, e, s, r]
|
|
483
484
|
);
|
|
484
485
|
}, Mi = () => {
|
|
485
|
-
const e = an(), t = xt(), n =
|
|
486
|
-
return
|
|
486
|
+
const e = an(), t = xt(), n = Fn(), { setPageStatus: s } = Se(), { setPageLockMeta: r } = $s(), a = Ui(), i = oe(t), { savePageAsync: o } = Me();
|
|
487
|
+
return j(() => {
|
|
487
488
|
i.current = t;
|
|
488
489
|
}, [t]), z(
|
|
489
|
-
(
|
|
490
|
+
(l) => async ({ payload: d }) => {
|
|
490
491
|
const u = d || {};
|
|
491
492
|
if (!(!(u != null && u.pageId) || (u == null ? void 0 : u.pageId) !== i.current || (u == null ? void 0 : u.receiverClientId) !== Ne))
|
|
492
|
-
switch (r({}),
|
|
493
|
+
switch (r({}), l) {
|
|
493
494
|
case re.FORCE_TAKE_OVER_REQUEST:
|
|
494
495
|
case re.CONTINUE_EDITING_IN_THIS_TAB_REQUEST: {
|
|
495
496
|
try {
|
|
@@ -497,7 +498,7 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
497
498
|
} catch (f) {
|
|
498
499
|
console.error("Failed to save page before releasing lock:", f);
|
|
499
500
|
}
|
|
500
|
-
await a(re.CONTINUE_EDITING_IN_THIS_CLIENT, { requestingClientId: u == null ? void 0 : u.senderClientId }), setTimeout(() => r({ type:
|
|
501
|
+
await a(re.CONTINUE_EDITING_IN_THIS_CLIENT, { requestingClientId: u == null ? void 0 : u.senderClientId }), setTimeout(() => r({ type: l }), 0);
|
|
501
502
|
break;
|
|
502
503
|
}
|
|
503
504
|
case re.TAKE_OVER_REQUEST: {
|
|
@@ -517,16 +518,16 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
517
518
|
},
|
|
518
519
|
[a, r, s, n, e, o]
|
|
519
520
|
);
|
|
520
|
-
},
|
|
521
|
-
const e =
|
|
521
|
+
}, ou = () => {
|
|
522
|
+
const e = Bs(), t = an(), n = xt(), s = Gi(), [r, a] = Te(Hs), i = Mi(), o = Di(), l = oe(i), d = oe(o), u = oe(null), f = oe(!1), g = oe(0), h = oe(r), A = oe(() => {
|
|
522
523
|
});
|
|
523
|
-
|
|
524
|
-
|
|
524
|
+
j(() => {
|
|
525
|
+
l.current = i, d.current = o, h.current = r;
|
|
525
526
|
}, [i, o, r]);
|
|
526
527
|
const y = z((_) => {
|
|
527
528
|
vi.forEach((E) => {
|
|
528
529
|
_.onBroadcast(E, (P) => {
|
|
529
|
-
|
|
530
|
+
l.current(E)(P);
|
|
530
531
|
});
|
|
531
532
|
}), wi.forEach((E) => {
|
|
532
533
|
_.onPresence(E, () => {
|
|
@@ -535,14 +536,14 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
535
536
|
});
|
|
536
537
|
}, []), T = z(() => {
|
|
537
538
|
if (f.current || !e || !t || !s) return;
|
|
538
|
-
if (g.current >=
|
|
539
|
+
if (g.current >= dt) {
|
|
539
540
|
console.error(
|
|
540
|
-
`Maximum reconnection attempts (${
|
|
541
|
+
`Maximum reconnection attempts (${dt}) reached. Stopping reconnection attempts.`
|
|
541
542
|
);
|
|
542
543
|
return;
|
|
543
544
|
}
|
|
544
545
|
f.current = !0, g.current += 1, console.log(
|
|
545
|
-
`Attempting to reconnect realtime channel (attempt ${g.current}/${
|
|
546
|
+
`Attempting to reconnect realtime channel (attempt ${g.current}/${dt})`
|
|
546
547
|
), u.current && (clearTimeout(u.current), u.current = null), h.current && (h.current.unsubscribe(), a(null), h.current = null);
|
|
547
548
|
const _ = Math.min(
|
|
548
549
|
Oi * Math.pow(xi, g.current - 1),
|
|
@@ -554,16 +555,16 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
554
555
|
});
|
|
555
556
|
y(E), E.subscribe(async (P) => {
|
|
556
557
|
P === "SUBSCRIBED" ? (console.log("Realtime connection established successfully"), a(E), h.current = E, g.current = 0, f.current = !1) : P === "CHANNEL_ERROR" || P === "TIMED_OUT" ? (console.log(
|
|
557
|
-
`Realtime connection failed: ${P}. Attempt ${g.current}/${
|
|
558
|
-
), g.current <
|
|
558
|
+
`Realtime connection failed: ${P}. Attempt ${g.current}/${dt}`
|
|
559
|
+
), g.current < dt ? setTimeout(() => {
|
|
559
560
|
f.current = !1, A.current();
|
|
560
561
|
}, 500) : (console.error("Maximum reconnection attempts reached"), f.current = !1)) : P === "CLOSED" && (console.log("Realtime connection closed"), f.current = !1);
|
|
561
562
|
});
|
|
562
563
|
}, _);
|
|
563
564
|
}, [e, t, s, a, y]);
|
|
564
|
-
|
|
565
|
+
j(() => {
|
|
565
566
|
A.current = T;
|
|
566
|
-
}, [T]),
|
|
567
|
+
}, [T]), j(() => {
|
|
567
568
|
if (!e || !t || !s || r && r.topic === s) return;
|
|
568
569
|
g.current = 0, f.current = !1;
|
|
569
570
|
const _ = e.channel(s, {
|
|
@@ -574,7 +575,7 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
574
575
|
}), () => {
|
|
575
576
|
u.current && (clearTimeout(u.current), u.current = null), f.current = !1, g.current = 0, h.current === _ && (h.current = null), a(null), _.unsubscribe();
|
|
576
577
|
};
|
|
577
|
-
}, [e, t, s, a, T, y]),
|
|
578
|
+
}, [e, t, s, a, T, y]), j(() => {
|
|
578
579
|
const _ = () => {
|
|
579
580
|
if (document.visibilityState === "visible") {
|
|
580
581
|
if (console.log("Tab became visible, checking realtime connection..."), !e || !t || !s) {
|
|
@@ -591,7 +592,7 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
591
592
|
return document.addEventListener("visibilitychange", _), () => {
|
|
592
593
|
document.removeEventListener("visibilitychange", _);
|
|
593
594
|
};
|
|
594
|
-
}, [e, t, s, T]),
|
|
595
|
+
}, [e, t, s, T]), j(() => (r && n && t && r.track({
|
|
595
596
|
pageId: n,
|
|
596
597
|
userId: t,
|
|
597
598
|
clientId: Ne,
|
|
@@ -599,10 +600,10 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
599
600
|
}), () => {
|
|
600
601
|
r && n && r.untrack();
|
|
601
602
|
}), [r, n, t]);
|
|
602
|
-
},
|
|
603
|
+
}, Kn = () => {
|
|
603
604
|
const { data: e } = Fe();
|
|
604
605
|
return $(() => (e == null ? void 0 : e.fallbackLang) || "en", [e]);
|
|
605
|
-
},
|
|
606
|
+
}, Qs = () => {
|
|
606
607
|
const e = C(), t = I();
|
|
607
608
|
return se({
|
|
608
609
|
queryKey: [p.GET_WEBSITE_PAGES],
|
|
@@ -610,8 +611,8 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
610
611
|
queryFn: async () => e(t, { action: p.GET_WEBSITE_PAGES }) || [],
|
|
611
612
|
placeholderData: (n) => n || []
|
|
612
613
|
});
|
|
613
|
-
},
|
|
614
|
-
const t = C(), n = I(), s =
|
|
614
|
+
}, cu = (e) => {
|
|
615
|
+
const t = C(), n = I(), s = Kn();
|
|
615
616
|
return se({
|
|
616
617
|
queryKey: [p.GET_WEBSITE_PAGES, e, s],
|
|
617
618
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -627,60 +628,60 @@ const ut = 10, Oi = 1e3, xi = 2, Ri = 16e3, Hs = () => {
|
|
|
627
628
|
placeholderData: (r) => r || {}
|
|
628
629
|
});
|
|
629
630
|
};
|
|
630
|
-
function
|
|
631
|
+
function zs(e, t, n = !1) {
|
|
631
632
|
const s = e.toString() ? `?${e.toString()}` : "/";
|
|
632
633
|
n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
633
634
|
}
|
|
634
|
-
const Bi = H(() => import("./page-manager-new-
|
|
635
|
-
const { t } = ve(), [n, s] = be(), r = n.get("page"), { data: a, isFetching: i } = fe(), { data: o, isFetching:
|
|
636
|
-
if (!o ||
|
|
635
|
+
const Bi = H(() => import("./page-manager-new-Dg02OZtc.js")), Ws = ({ children: e }) => {
|
|
636
|
+
const { t } = ve(), [n, s] = be(), r = n.get("page"), { data: a, isFetching: i } = fe(), { data: o, isFetching: l } = Qs(), [d, u] = V(!1), [f, g] = V(!0), { savePage: h } = Me(), A = !!r && !ge(a), { isLocked: y } = Se(), T = $(() => {
|
|
637
|
+
if (!o || l) return !1;
|
|
637
638
|
const N = o.find((U) => U.slug === "/");
|
|
638
639
|
return N == null ? void 0 : N.id;
|
|
639
|
-
}, [o,
|
|
640
|
-
|
|
641
|
-
if (
|
|
640
|
+
}, [o, l]);
|
|
641
|
+
j(() => {
|
|
642
|
+
if (l || !T || o.some((v) => v.id === r)) return;
|
|
642
643
|
const U = new URLSearchParams({ page: T });
|
|
643
|
-
|
|
644
|
-
}, [r,
|
|
644
|
+
zs(U, s), !l && o && g(!1);
|
|
645
|
+
}, [r, l, o, T, s]);
|
|
645
646
|
const _ = !f && !r, E = !f && !i && ge(a), P = d || _ || E;
|
|
646
647
|
return /* @__PURE__ */ m(pe, { children: [
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ m(tn, { children: [
|
|
649
|
+
/* @__PURE__ */ c(
|
|
649
650
|
nn,
|
|
650
651
|
{
|
|
651
652
|
asChild: !0,
|
|
652
653
|
onClick: () => {
|
|
653
654
|
y || h(), u(!0);
|
|
654
655
|
},
|
|
655
|
-
children: e || /* @__PURE__ */
|
|
656
|
+
children: e || /* @__PURE__ */ c(B, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(Va, { className: "h-4 w-4" }) }, "template-viewer")
|
|
656
657
|
}
|
|
657
658
|
),
|
|
658
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ c(sn, { side: "right", children: /* @__PURE__ */ c("p", { children: t("Open pages manager") }) })
|
|
659
660
|
] }) }) }),
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
|
|
661
|
+
/* @__PURE__ */ c(bs, { open: P, onOpenChange: (N) => !N && A && u(!1), children: /* @__PURE__ */ m(
|
|
662
|
+
Is,
|
|
662
663
|
{
|
|
663
664
|
side: "left",
|
|
664
665
|
"aria-describedby": "pages-manager-description",
|
|
665
666
|
className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${A ? "" : "sheet-hide-close-btn"}`,
|
|
666
667
|
children: [
|
|
667
|
-
/* @__PURE__ */ m(
|
|
668
|
-
/* @__PURE__ */ m(
|
|
669
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ m($r, { className: "mb-3 px-4 pt-4", children: [
|
|
669
|
+
/* @__PURE__ */ m(Qr, { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
670
|
+
/* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(Ha, { className: "h-4 w-4" }) }),
|
|
670
671
|
/* @__PURE__ */ m("div", { className: "flex flex-col", children: [
|
|
671
|
-
/* @__PURE__ */
|
|
672
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ c("span", { className: "text-sm font-semibold", children: t("Pages") }),
|
|
673
|
+
/* @__PURE__ */ c("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
|
|
673
674
|
] })
|
|
674
675
|
] }),
|
|
675
|
-
/* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ c(zr, { className: "sr-only", children: t("Manage your site structure") })
|
|
676
677
|
] }),
|
|
677
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: P && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Bi, { close: () => u(!1) }) }) })
|
|
678
679
|
]
|
|
679
680
|
}
|
|
680
681
|
) })
|
|
681
682
|
] });
|
|
682
|
-
}, Fi = H(() => import("./add-new-page-
|
|
683
|
-
const [e, t] = V(null), [n, s] = V(null), [r, a] = V(null), [i, o] = V(null), [
|
|
683
|
+
}, Fi = H(() => import("./add-new-page-DUCKfyWo.js")), Ki = H(() => import("./delete-page-BSn5mRvk.js")), Vi = H(() => import("./duplicate-page-BuVub6uY.js")), Hi = H(() => import("./mark-as-template-BNbn5zQG.js")), qi = H(() => import("./unmark-as-template-DLVNotM_.js")), $i = H(() => import("./unpublish-page-ik9a66Rz.js")), Qi = () => {
|
|
684
|
+
const [e, t] = V(null), [n, s] = V(null), [r, a] = V(null), [i, o] = V(null), [l, d] = V(null), [u, f] = V(null), { data: g, isFetching: h } = Ce(), { selectedLang: A, fallbackLang: y } = we(), { data: T } = Be(), _ = T == null ? void 0 : T.find((v) => v.lang === A), { isLocked: E } = Se(), P = !(g != null && g.slug), N = kn(Wt);
|
|
684
685
|
if (!g) return null;
|
|
685
686
|
const U = (v) => {
|
|
686
687
|
A.length > 0 && A !== y ? N({
|
|
@@ -691,26 +692,26 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
691
692
|
};
|
|
692
693
|
return /* @__PURE__ */ m(pe, { children: [
|
|
693
694
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
|
|
695
|
+
/* @__PURE__ */ c(Ws, { children: /* @__PURE__ */ c(
|
|
696
|
+
B,
|
|
696
697
|
{
|
|
697
698
|
className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
|
|
698
699
|
variant: "ghost",
|
|
699
|
-
children: h ? /* @__PURE__ */
|
|
700
|
-
P ? /* @__PURE__ */
|
|
700
|
+
children: h ? /* @__PURE__ */ c(ct, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
|
|
701
|
+
P ? /* @__PURE__ */ c(qa, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c($a, { className: "mr-1 h-4 w-4" }),
|
|
701
702
|
q(_ || g, "name") ?? ""
|
|
702
703
|
] })
|
|
703
704
|
}
|
|
704
705
|
) }),
|
|
705
|
-
E ? /* @__PURE__ */
|
|
706
|
-
|
|
706
|
+
E ? /* @__PURE__ */ c(
|
|
707
|
+
B,
|
|
707
708
|
{
|
|
708
709
|
variant: "ghost",
|
|
709
710
|
size: "icon",
|
|
710
711
|
className: "h-7 w-7 cursor-not-allowed rounded opacity-50 hover:bg-transparent",
|
|
711
|
-
children: /* @__PURE__ */
|
|
712
|
+
children: /* @__PURE__ */ c(rs, { className: "h-4 w-4" })
|
|
712
713
|
}
|
|
713
|
-
) : /* @__PURE__ */
|
|
714
|
+
) : /* @__PURE__ */ c(
|
|
714
715
|
Pi,
|
|
715
716
|
{
|
|
716
717
|
page: g,
|
|
@@ -721,11 +722,11 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
721
722
|
setMarkAsTemplate: (v) => a(v),
|
|
722
723
|
setUnmarkAsTemplate: (v) => o(v),
|
|
723
724
|
isLanguagePage: A.length > 0 && A !== y,
|
|
724
|
-
children: /* @__PURE__ */
|
|
725
|
+
children: /* @__PURE__ */ c(B, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ c(rs, { className: "h-4 w-4" }) })
|
|
725
726
|
}
|
|
726
727
|
)
|
|
727
728
|
] }),
|
|
728
|
-
u && /* @__PURE__ */
|
|
729
|
+
u && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
|
|
729
730
|
Fi,
|
|
730
731
|
{
|
|
731
732
|
closePanel: () => f(null),
|
|
@@ -735,20 +736,20 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
735
736
|
setAddEditPage: f
|
|
736
737
|
}
|
|
737
738
|
) }),
|
|
738
|
-
e && /* @__PURE__ */
|
|
739
|
-
n && /* @__PURE__ */
|
|
740
|
-
r && /* @__PURE__ */
|
|
741
|
-
i && /* @__PURE__ */
|
|
742
|
-
|
|
739
|
+
e && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Ki, { page: e, onClose: () => t(null) }) }),
|
|
740
|
+
n && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c($i, { page: n, onClose: () => s(null) }) }),
|
|
741
|
+
r && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Hi, { page: r, onClose: () => a(null) }) }),
|
|
742
|
+
i && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(qi, { page: i, onClose: () => o(null) }) }),
|
|
743
|
+
l && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
|
|
743
744
|
Vi,
|
|
744
745
|
{
|
|
745
|
-
page:
|
|
746
|
+
page: l,
|
|
746
747
|
onClose: () => d(null),
|
|
747
748
|
closePanel: () => f(null)
|
|
748
749
|
}
|
|
749
750
|
) })
|
|
750
751
|
] });
|
|
751
|
-
},
|
|
752
|
+
}, Vn = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(
|
|
752
753
|
"div",
|
|
753
754
|
{
|
|
754
755
|
className: zt(
|
|
@@ -757,9 +758,9 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
757
758
|
),
|
|
758
759
|
children: e
|
|
759
760
|
}
|
|
760
|
-
), zi = ({ hasDynamicPage: e }) => /* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
-
/* @__PURE__ */
|
|
761
|
+
), zi = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Vn, { 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: [
|
|
762
|
+
/* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
763
|
+
/* @__PURE__ */ c("p", { className: "pt-2 text-center text-sm font-light text-gray-600", children: e ? "Please select a page from the list in the top header. This will enable you to edit the page." : "Please add a new page" })
|
|
763
764
|
] }) }), Mt = {
|
|
764
765
|
ab: "Abkhazian",
|
|
765
766
|
aa: "Afar",
|
|
@@ -948,21 +949,21 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
948
949
|
yo: "Yoruba",
|
|
949
950
|
za: "Zhuang, Chuang",
|
|
950
951
|
zu: "Zulu"
|
|
951
|
-
},
|
|
952
|
+
}, Wi = H(() => import("./add-new-language-page-BliZ46WW.js")), ji = () => {
|
|
952
953
|
const e = de("topLeftCorner", null);
|
|
953
|
-
return e ? /* @__PURE__ */
|
|
954
|
+
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Da.createElement(e, {}) }) : null;
|
|
954
955
|
}, Yi = ({
|
|
955
956
|
showAdd: e = !0,
|
|
956
957
|
variant: t = "ghost",
|
|
957
958
|
goToDefaultLang: n = !1
|
|
958
959
|
}) => {
|
|
959
|
-
const { fallbackLang: s, languages: r, selectedLang: a, setSelectedLang: i } = we(), o = ge(a) ? s : a, [,
|
|
960
|
-
|
|
960
|
+
const { fallbackLang: s, languages: r, selectedLang: a, setSelectedLang: i } = we(), o = ge(a) ? s : a, [, l] = be(), { isLocked: d } = Se(), { t: u } = ve();
|
|
961
|
+
j(() => {
|
|
961
962
|
const E = new URLSearchParams(window.location.search), P = E.get("lang");
|
|
962
|
-
P && (r.includes(P) ? i(P) : (E.delete("lang"),
|
|
963
|
-
}, [r,
|
|
964
|
-
const f =
|
|
965
|
-
const E =
|
|
963
|
+
P && (r.includes(P) ? i(P) : (E.delete("lang"), l(E), i("")));
|
|
964
|
+
}, [r, l, i]);
|
|
965
|
+
const f = kn(Wt), { data: g } = fe(), { data: h } = Fe(), { data: A } = Be(), y = $(() => {
|
|
966
|
+
const E = xs(
|
|
966
967
|
Qt(q(h, "languages"), (P) => {
|
|
967
968
|
const N = ce(A, { lang: P });
|
|
968
969
|
return {
|
|
@@ -996,24 +997,24 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
996
997
|
}, _ = (E) => {
|
|
997
998
|
i(E);
|
|
998
999
|
const P = new URLSearchParams(window.location.search);
|
|
999
|
-
E === s ? P.delete("lang") : P.set("lang", E),
|
|
1000
|
+
E === s ? P.delete("lang") : P.set("lang", E), zs(P, l);
|
|
1000
1001
|
};
|
|
1001
|
-
return ge(r) ? null : d ? /* @__PURE__ */ m(
|
|
1002
|
-
/* @__PURE__ */
|
|
1002
|
+
return ge(r) ? null : d ? /* @__PURE__ */ m(B, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
|
|
1003
|
+
/* @__PURE__ */ c(as, { className: "h-4 w-4" }),
|
|
1003
1004
|
q(Mt, o, o),
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
] }) : n ? /* @__PURE__ */
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
|
|
1005
|
+
/* @__PURE__ */ c(Tn, { className: "h-4 w-4" })
|
|
1006
|
+
] }) : n ? /* @__PURE__ */ c(B, { onClick: () => _(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ m(Gn, { children: [
|
|
1007
|
+
/* @__PURE__ */ c(On, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
1008
|
+
B,
|
|
1008
1009
|
{
|
|
1009
1010
|
disabled: !!d,
|
|
1010
1011
|
variant: t,
|
|
1011
1012
|
size: "sm",
|
|
1012
1013
|
className: "ml-px h-max gap-2 py-1.5",
|
|
1013
1014
|
children: [
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
+
/* @__PURE__ */ c(as, { className: "h-4 w-4" }),
|
|
1015
1016
|
q(Mt, o, o),
|
|
1016
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ c(Tn, { className: "h-4 w-4" })
|
|
1017
1018
|
]
|
|
1018
1019
|
}
|
|
1019
1020
|
) }),
|
|
@@ -1029,9 +1030,9 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
1029
1030
|
),
|
|
1030
1031
|
onClick: () => T(E.key),
|
|
1031
1032
|
children: [
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ c("div", { className: "text-slate-600", children: E.value }),
|
|
1033
1034
|
E.key === s && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
+
/* @__PURE__ */ c(Qa, { fill: "orange", className: "h-2 w-2" }),
|
|
1035
1036
|
"Primary"
|
|
1036
1037
|
] })
|
|
1037
1038
|
]
|
|
@@ -1040,9 +1041,9 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
1040
1041
|
)
|
|
1041
1042
|
),
|
|
1042
1043
|
e && !ge(y.filter((E) => !E.isLangPageAdded)) && /* @__PURE__ */ m(pe, { children: [
|
|
1043
|
-
/* @__PURE__ */
|
|
1044
|
+
/* @__PURE__ */ c(Wr, {}),
|
|
1044
1045
|
/* @__PURE__ */ m(
|
|
1045
|
-
|
|
1046
|
+
B,
|
|
1046
1047
|
{
|
|
1047
1048
|
size: "sm",
|
|
1048
1049
|
variant: "ghost",
|
|
@@ -1054,7 +1055,7 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
1054
1055
|
},
|
|
1055
1056
|
className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
|
|
1056
1057
|
children: [
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ c(Ms, { className: "mr-1 h-3 w-3" }),
|
|
1058
1059
|
" Add Language"
|
|
1059
1060
|
]
|
|
1060
1061
|
}
|
|
@@ -1064,12 +1065,12 @@ const Bi = H(() => import("./page-manager-new-BfKYDWs7.js")), zs = ({ children:
|
|
|
1064
1065
|
] }) });
|
|
1065
1066
|
};
|
|
1066
1067
|
function Ji() {
|
|
1067
|
-
const e = va(
|
|
1068
|
+
const e = va(Wt), t = kn(Wt);
|
|
1068
1069
|
return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
e && /* @__PURE__ */
|
|
1072
|
-
|
|
1070
|
+
/* @__PURE__ */ c(ji, {}),
|
|
1071
|
+
/* @__PURE__ */ c(Ws, {}),
|
|
1072
|
+
e && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
|
|
1073
|
+
Wi,
|
|
1073
1074
|
{
|
|
1074
1075
|
isOpen: !0,
|
|
1075
1076
|
id: e == null ? void 0 : e.id,
|
|
@@ -1082,30 +1083,30 @@ function Ji() {
|
|
|
1082
1083
|
] });
|
|
1083
1084
|
}
|
|
1084
1085
|
function Zi() {
|
|
1085
|
-
return /* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ c("div", { className: "mt-2 space-y-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3 rounded-md border p-2", children: [
|
|
1086
1087
|
/* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
|
|
1087
|
-
/* @__PURE__ */
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1088
|
+
/* @__PURE__ */ c(Dt, { className: "h-4 w-3/4" }),
|
|
1089
|
+
/* @__PURE__ */ c(Dt, { className: "h-3 w-1/2" }),
|
|
1090
|
+
/* @__PURE__ */ c(Dt, { className: "mt-1 h-5 w-20" })
|
|
1090
1091
|
] }),
|
|
1091
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ c(Dt, { className: "h-8 w-8 rounded-full" })
|
|
1092
1093
|
] }, t)) });
|
|
1093
1094
|
}
|
|
1094
|
-
const Xi = Q.lazy(() => import("./page-revisions-content-
|
|
1095
|
+
const Xi = Q.lazy(() => import("./page-revisions-content-C6YjUAx9.js"));
|
|
1095
1096
|
function eo() {
|
|
1096
1097
|
const [e, t] = Q.useState(!1);
|
|
1097
|
-
return /* @__PURE__ */
|
|
1098
|
-
/* @__PURE__ */ m(
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
/* @__PURE__ */ m(
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
1098
|
+
return /* @__PURE__ */ c(Ns, { children: /* @__PURE__ */ m(tn, { delayDuration: 0, children: [
|
|
1099
|
+
/* @__PURE__ */ m(bs, { open: e, onOpenChange: t, children: [
|
|
1100
|
+
/* @__PURE__ */ c(jr, { asChild: !0, children: /* @__PURE__ */ c(nn, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
|
|
1101
|
+
/* @__PURE__ */ m(B, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
|
|
1102
|
+
/* @__PURE__ */ c(za, { className: "h-4 w-4" }),
|
|
1103
|
+
/* @__PURE__ */ c("span", { className: "sr-only", children: "View revision history" })
|
|
1103
1104
|
] }),
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1105
1106
|
] }) }) }),
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
+
/* @__PURE__ */ c(Is, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(J, { fallback: /* @__PURE__ */ c(Zi, {}), children: /* @__PURE__ */ c(Xi, { isOpen: e }) }) })
|
|
1107
1108
|
] }),
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ c(sn, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
|
|
1109
1110
|
] }) });
|
|
1110
1111
|
}
|
|
1111
1112
|
const gn = ({
|
|
@@ -1114,13 +1115,13 @@ const gn = ({
|
|
|
1114
1115
|
children: n,
|
|
1115
1116
|
fallback: s = null
|
|
1116
1117
|
}) => {
|
|
1117
|
-
const { hasPermission: r } =
|
|
1118
|
+
const { hasPermission: r } = vs();
|
|
1118
1119
|
return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
|
|
1119
1120
|
}, to = {
|
|
1120
1121
|
SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
|
|
1121
|
-
},
|
|
1122
|
+
}, lu = () => {
|
|
1122
1123
|
const e = I(), t = Y(), n = C(), { data: s } = Ge();
|
|
1123
|
-
return
|
|
1124
|
+
return X({
|
|
1124
1125
|
mutationFn: async (r) => await n(e, {
|
|
1125
1126
|
action: p.CREATE_PAGE,
|
|
1126
1127
|
data: r
|
|
@@ -1144,9 +1145,9 @@ const gn = ({
|
|
|
1144
1145
|
});
|
|
1145
1146
|
}
|
|
1146
1147
|
});
|
|
1147
|
-
},
|
|
1148
|
+
}, uu = () => {
|
|
1148
1149
|
const e = I(), t = Y(), n = C(), { data: s } = Ce(), { data: r } = Ge();
|
|
1149
|
-
return
|
|
1150
|
+
return X({
|
|
1150
1151
|
mutationFn: async (a) => await n(e, {
|
|
1151
1152
|
action: p.UPDATE_PAGE,
|
|
1152
1153
|
data: a
|
|
@@ -1169,9 +1170,9 @@ const gn = ({
|
|
|
1169
1170
|
});
|
|
1170
1171
|
}
|
|
1171
1172
|
});
|
|
1172
|
-
},
|
|
1173
|
+
}, du = () => {
|
|
1173
1174
|
const e = I(), t = Y(), n = C(), { data: s } = Ge();
|
|
1174
|
-
return
|
|
1175
|
+
return X({
|
|
1175
1176
|
mutationFn: async (r) => n(e, {
|
|
1176
1177
|
action: p.DELETE_PAGE,
|
|
1177
1178
|
data: { id: r == null ? void 0 : r.id }
|
|
@@ -1198,9 +1199,9 @@ const gn = ({
|
|
|
1198
1199
|
});
|
|
1199
1200
|
}
|
|
1200
1201
|
});
|
|
1201
|
-
},
|
|
1202
|
+
}, fu = () => {
|
|
1202
1203
|
const e = I(), t = Y(), n = C(), { data: s } = Ge();
|
|
1203
|
-
return
|
|
1204
|
+
return X({
|
|
1204
1205
|
mutationFn: async (r) => n(e, {
|
|
1205
1206
|
action: p.TAKE_OFFLINE,
|
|
1206
1207
|
data: { id: r == null ? void 0 : r.id }
|
|
@@ -1225,7 +1226,7 @@ const gn = ({
|
|
|
1225
1226
|
});
|
|
1226
1227
|
}, js = () => {
|
|
1227
1228
|
const e = I(), t = C(), n = Y(), { data: s } = fe(), { savePageAsync: r } = Me();
|
|
1228
|
-
return
|
|
1229
|
+
return X({
|
|
1229
1230
|
mutationFn: async ({ ids: a }) => (await r(), t(e, {
|
|
1230
1231
|
action: p.PUBLISH_CHANGES,
|
|
1231
1232
|
data: { ids: a }
|
|
@@ -1243,9 +1244,9 @@ const gn = ({
|
|
|
1243
1244
|
console.log("##", a), D.error("Failed to publish pages.");
|
|
1244
1245
|
}
|
|
1245
1246
|
});
|
|
1246
|
-
},
|
|
1247
|
+
}, hu = () => {
|
|
1247
1248
|
const e = I(), t = C(), n = Y();
|
|
1248
|
-
return
|
|
1249
|
+
return X({
|
|
1249
1250
|
mutationFn: async (s) => {
|
|
1250
1251
|
var r;
|
|
1251
1252
|
return t(e, {
|
|
@@ -1268,9 +1269,9 @@ const gn = ({
|
|
|
1268
1269
|
D.error("Failed to mark page as template.");
|
|
1269
1270
|
}
|
|
1270
1271
|
});
|
|
1271
|
-
},
|
|
1272
|
+
}, gu = () => {
|
|
1272
1273
|
const e = I(), t = C(), n = Y();
|
|
1273
|
-
return
|
|
1274
|
+
return X({
|
|
1274
1275
|
mutationFn: async (s) => t(e, {
|
|
1275
1276
|
action: p.UNMARK_AS_TEMPLATE,
|
|
1276
1277
|
data: { id: s == null ? void 0 : s.id }
|
|
@@ -1284,9 +1285,9 @@ const gn = ({
|
|
|
1284
1285
|
D.error("Failed to unmark page as template.");
|
|
1285
1286
|
}
|
|
1286
1287
|
});
|
|
1287
|
-
},
|
|
1288
|
+
}, mu = () => {
|
|
1288
1289
|
const e = I(), t = C(), n = Y();
|
|
1289
|
-
return
|
|
1290
|
+
return X({
|
|
1290
1291
|
mutationFn: async ({ id: s, slug: r }) => t(e, {
|
|
1291
1292
|
action: p.CHANGE_SLUG,
|
|
1292
1293
|
data: { id: s, slug: r }
|
|
@@ -1302,21 +1303,21 @@ const gn = ({
|
|
|
1302
1303
|
D.error("Failed to change slug");
|
|
1303
1304
|
}
|
|
1304
1305
|
});
|
|
1305
|
-
}, no = H(() => import("./publish-pages-content-
|
|
1306
|
+
}, no = H(() => import("./publish-pages-content-8MQN9iLc.js"));
|
|
1306
1307
|
function so({
|
|
1307
1308
|
showModal: e = !1,
|
|
1308
1309
|
onClose: t = () => console.log("Cancelled")
|
|
1309
1310
|
}) {
|
|
1310
1311
|
const { mutate: n, isPending: s } = js();
|
|
1311
|
-
return /* @__PURE__ */
|
|
1312
|
-
} : t, children: e && /* @__PURE__ */
|
|
1312
|
+
return /* @__PURE__ */ c(Rn, { open: e, onOpenChange: s ? () => {
|
|
1313
|
+
} : t, children: e && /* @__PURE__ */ c(J, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(no, { onClose: t, isPending: s, publishPage: n }) }) });
|
|
1313
1314
|
}
|
|
1314
1315
|
const ro = (e) => {
|
|
1315
1316
|
const { fallbackLang: t } = we(), { data: n } = Fe(), { data: s, isFetching: r } = Be(), a = $(() => {
|
|
1316
1317
|
const i = { [t]: !0 };
|
|
1317
1318
|
return Ca(q(n, "languages"), (o) => {
|
|
1318
|
-
const
|
|
1319
|
-
i[o] = !!
|
|
1319
|
+
const l = ce(s, { lang: o });
|
|
1320
|
+
i[o] = !!l;
|
|
1320
1321
|
}), i;
|
|
1321
1322
|
}, [t, s, n]);
|
|
1322
1323
|
return r || ge(e) || e && a[e];
|
|
@@ -1343,22 +1344,22 @@ const ro = (e) => {
|
|
|
1343
1344
|
const n = { ...ao, ...t };
|
|
1344
1345
|
oo().then((s) => s(n));
|
|
1345
1346
|
};
|
|
1346
|
-
function
|
|
1347
|
+
function Hn({
|
|
1347
1348
|
children: e,
|
|
1348
1349
|
content: t,
|
|
1349
1350
|
side: n = "bottom",
|
|
1350
1351
|
delayDuration: s = 700,
|
|
1351
1352
|
showTooltip: r = !0
|
|
1352
1353
|
}) {
|
|
1353
|
-
return r ? /* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1354
|
+
return r ? /* @__PURE__ */ c(Ns, { children: /* @__PURE__ */ m(tn, { delayDuration: s, children: [
|
|
1355
|
+
/* @__PURE__ */ c(nn, { asChild: !0, children: e }),
|
|
1356
|
+
/* @__PURE__ */ c(sn, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
|
|
1356
1357
|
] }) }) : e;
|
|
1357
1358
|
}
|
|
1358
|
-
const co = H(() => import("./unpublish-page-
|
|
1359
|
-
() => import("./translation-warning-modal-
|
|
1360
|
-
), uo = H(() => import("./json-diff-viewer-
|
|
1361
|
-
const { t: e } = ve(), { selectedLang: t, fallbackLang: n } = we(), s = de("getPreviewUrl", async (g) => g), [r, a] = V(""), { data: i } = fe(), { data: o } = Be(), { data:
|
|
1359
|
+
const co = H(() => import("./unpublish-page-ik9a66Rz.js")), lo = H(
|
|
1360
|
+
() => import("./translation-warning-modal-DPdVK3CD.js")
|
|
1361
|
+
), uo = H(() => import("./json-diff-viewer-DAQ-qSHk.js")), fo = () => {
|
|
1362
|
+
const { t: e } = ve(), { selectedLang: t, fallbackLang: n } = we(), s = de("getPreviewUrl", async (g) => g), [r, a] = V(""), { data: i } = fe(), { data: o } = Be(), { data: l } = Ge(), d = $(
|
|
1362
1363
|
() => {
|
|
1363
1364
|
var g;
|
|
1364
1365
|
return (g = o == null ? void 0 : o.find((h) => (h == null ? void 0 : h.lang) === t)) == null ? void 0 : g.slug;
|
|
@@ -1366,9 +1367,9 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1366
1367
|
[t, o]
|
|
1367
1368
|
), u = z((g) => {
|
|
1368
1369
|
var h;
|
|
1369
|
-
return (h = ce(
|
|
1370
|
-
}, [
|
|
1371
|
-
return
|
|
1370
|
+
return (h = ce(l, { key: g })) == null ? void 0 : h.hasSlug;
|
|
1371
|
+
}, [l]), f = t === n ? "" : t;
|
|
1372
|
+
return j(() => {
|
|
1372
1373
|
(async () => {
|
|
1373
1374
|
if (typeof s == "function") {
|
|
1374
1375
|
const g = !u(i == null ? void 0 : i.pageType), h = await s(
|
|
@@ -1378,25 +1379,25 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1378
1379
|
} else
|
|
1379
1380
|
a("");
|
|
1380
1381
|
})();
|
|
1381
|
-
}, [s, d, i == null ? void 0 : i.pageType, u, i == null ? void 0 : i.id, f]), /* @__PURE__ */
|
|
1382
|
+
}, [s, d, i == null ? void 0 : i.pageType, u, i == null ? void 0 : i.id, f]), /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(Hn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(B, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(ja, { className: "h-4 w-4" }) }) }) }) });
|
|
1382
1383
|
}, ho = () => {
|
|
1383
|
-
const { t: e } = ve(), [t, n] =
|
|
1384
|
+
const { t: e } = ve(), [t, n] = Yr();
|
|
1384
1385
|
return /* @__PURE__ */ m(pe, { children: [
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
|
|
1386
|
+
/* @__PURE__ */ c(Hn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
|
|
1387
|
+
B,
|
|
1387
1388
|
{
|
|
1388
1389
|
variant: t === "theme" ? "outline" : "ghost",
|
|
1389
1390
|
size: "icon",
|
|
1390
1391
|
className: "gap-2",
|
|
1391
1392
|
onClick: () => n(t === "theme" ? "block" : "theme"),
|
|
1392
|
-
children: /* @__PURE__ */
|
|
1393
|
+
children: /* @__PURE__ */ c(Wa, { className: "h-4 w-4" })
|
|
1393
1394
|
}
|
|
1394
1395
|
) }),
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
|
|
1396
1397
|
] });
|
|
1397
1398
|
}, go = () => {
|
|
1398
1399
|
const { t: e } = ve(), [t, n] = V(!1), { isLocked: s } = Se(), { savePageAsync: r, saveState: a } = Me();
|
|
1399
|
-
|
|
1400
|
+
j(() => {
|
|
1400
1401
|
const u = (f) => {
|
|
1401
1402
|
a === "UNSAVED" && (f.preventDefault(), f.returnValue = !1);
|
|
1402
1403
|
};
|
|
@@ -1406,35 +1407,35 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1406
1407
|
}, [a]);
|
|
1407
1408
|
const i = z(async () => {
|
|
1408
1409
|
t || (n(!0), await r(), n(!1));
|
|
1409
|
-
}, [r, t]), { buttonIcon: o, buttonClass:
|
|
1410
|
+
}, [r, t]), { buttonIcon: o, buttonClass: l, tooltipContent: d } = $(() => {
|
|
1410
1411
|
switch (a) {
|
|
1411
1412
|
case "UNSAVED":
|
|
1412
1413
|
return {
|
|
1413
1414
|
tooltipContent: e("Save draft"),
|
|
1414
|
-
buttonIcon: /* @__PURE__ */
|
|
1415
|
+
buttonIcon: /* @__PURE__ */ c(Ja, { className: "h-4 w-4" }),
|
|
1415
1416
|
buttonClass: "gap-x-1"
|
|
1416
1417
|
};
|
|
1417
1418
|
case "SAVING":
|
|
1418
1419
|
return {
|
|
1419
1420
|
tooltipContent: e("Saving"),
|
|
1420
|
-
buttonIcon: /* @__PURE__ */
|
|
1421
|
+
buttonIcon: /* @__PURE__ */ c(ct, { className: "h-4 w-4 animate-spin text-sky-700" }),
|
|
1421
1422
|
buttonClass: "gap-x-1"
|
|
1422
1423
|
};
|
|
1423
1424
|
case "SAVED":
|
|
1424
1425
|
return {
|
|
1425
1426
|
tooltipContent: e("Saved"),
|
|
1426
|
-
buttonIcon: /* @__PURE__ */
|
|
1427
|
+
buttonIcon: /* @__PURE__ */ c(Ya, { className: "h-4 w-4" }),
|
|
1427
1428
|
buttonClass: "text-green-500 gap-x-1"
|
|
1428
1429
|
};
|
|
1429
1430
|
}
|
|
1430
1431
|
}, [a, e]);
|
|
1431
|
-
return s ? null : /* @__PURE__ */ m(
|
|
1432
|
+
return s ? null : /* @__PURE__ */ m(B, { size: "sm", variant: "ghost", onClick: i, className: `${l} w-24 max-w-24`, children: [
|
|
1432
1433
|
o,
|
|
1433
1434
|
" ",
|
|
1434
1435
|
d
|
|
1435
1436
|
] });
|
|
1436
1437
|
}, mo = () => {
|
|
1437
|
-
const { t: e } = ve(), { selectedLang: t } = we(), { data: n } = Ce(), { data: s } = Be(), [r, a] = V(!1), [i, o] = V(!1), [
|
|
1438
|
+
const { t: e } = ve(), { selectedLang: t } = we(), { data: n } = Ce(), { data: s } = Be(), [r, a] = V(!1), [i, o] = V(!1), [l, d] = V(null), [u, f] = V(!1), { savePageAsync: g } = Me(), [h, A] = V(!1), { data: y } = fe(), { mutate: T, isPending: _ } = js(), { needTranslations: E } = Me(), P = E(), { buttonText: N, buttonClassName: U, isPublished: v, hasUnpublishedChanges: me } = $(() => {
|
|
1438
1439
|
const M = y && (y == null ? void 0 : y.online), ae = !ge(y == null ? void 0 : y.changes);
|
|
1439
1440
|
let Oe = M ? "hover:bg-green-600 bg-green-500" : "", le = e(M ? "Published" : "Publish");
|
|
1440
1441
|
return M && ae && (Oe = "hover:bg-blue-600 bg-blue-500", le = e("Publish")), {
|
|
@@ -1448,19 +1449,19 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1448
1449
|
A(!0);
|
|
1449
1450
|
return;
|
|
1450
1451
|
}
|
|
1451
|
-
|
|
1452
|
-
},
|
|
1452
|
+
F();
|
|
1453
|
+
}, F = () => {
|
|
1453
1454
|
const M = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
|
|
1454
|
-
T({ ids:
|
|
1455
|
+
T({ ids: xs(M) }, { onSuccess: () => mn("TOP_RIGHT") });
|
|
1455
1456
|
}, b = () => {
|
|
1456
|
-
A(!1),
|
|
1457
|
+
A(!1), F();
|
|
1457
1458
|
}, L = async () => {
|
|
1458
1459
|
A(!1), await g();
|
|
1459
|
-
},
|
|
1460
|
+
}, W = $(() => Qt(s ?? [], "id"), [s]);
|
|
1460
1461
|
return /* @__PURE__ */ m(pe, { children: [
|
|
1461
1462
|
/* @__PURE__ */ m("div", { className: "flex", children: [
|
|
1462
1463
|
/* @__PURE__ */ m(
|
|
1463
|
-
|
|
1464
|
+
B,
|
|
1464
1465
|
{
|
|
1465
1466
|
size: "sm",
|
|
1466
1467
|
onClick: _e,
|
|
@@ -1469,33 +1470,33 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1469
1470
|
onMouseEnter: () => o(!0),
|
|
1470
1471
|
onMouseLeave: () => o(!1),
|
|
1471
1472
|
children: [
|
|
1472
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ c(
|
|
1473
1474
|
"span",
|
|
1474
1475
|
{
|
|
1475
1476
|
className: `flex items-center transition-transform duration-300 ease-in-out ${i ? "-translate-y-10" : ""}`,
|
|
1476
|
-
children: v ? me ? /* @__PURE__ */
|
|
1477
|
+
children: v ? me ? /* @__PURE__ */ c(Us, { className: "h-4 w-4" }) : /* @__PURE__ */ c(is, { className: "h-4 w-4" }) : /* @__PURE__ */ c(os, { className: "h-4 w-4" })
|
|
1477
1478
|
}
|
|
1478
1479
|
),
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ c(
|
|
1480
1481
|
"span",
|
|
1481
1482
|
{
|
|
1482
1483
|
className: `absolute inset-0 left-3 flex items-center transition-transform duration-300 ease-in-out ${i ? "" : "translate-y-10"}`,
|
|
1483
|
-
children: v ? /* @__PURE__ */
|
|
1484
|
+
children: v ? /* @__PURE__ */ c(os, { className: "h-4 w-4" }) : /* @__PURE__ */ c(is, { className: "h-4 w-4" })
|
|
1484
1485
|
}
|
|
1485
1486
|
),
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
t ? `(${
|
|
1487
|
+
/* @__PURE__ */ c("span", { children: N }),
|
|
1488
|
+
t ? `(${es(t)})` : ""
|
|
1488
1489
|
]
|
|
1489
1490
|
}
|
|
1490
1491
|
),
|
|
1491
1492
|
/* @__PURE__ */ m(Gn, { children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
-
|
|
1493
|
+
/* @__PURE__ */ c(On, { asChild: !0, children: /* @__PURE__ */ c(
|
|
1494
|
+
B,
|
|
1494
1495
|
{
|
|
1495
1496
|
size: "sm",
|
|
1496
1497
|
disabled: _ || !(y != null && y.id),
|
|
1497
1498
|
className: `rounded-l-none border-l border-white/50 px-2 text-white ${U}`,
|
|
1498
|
-
children: /* @__PURE__ */
|
|
1499
|
+
children: /* @__PURE__ */ c(Tn, { className: "h-4 w-4" })
|
|
1499
1500
|
}
|
|
1500
1501
|
) }),
|
|
1501
1502
|
/* @__PURE__ */ m(xn, { align: "end", className: "w-52", children: [
|
|
@@ -1504,7 +1505,7 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1504
1505
|
{
|
|
1505
1506
|
disabled: _,
|
|
1506
1507
|
className: "cursor-pointer text-xs",
|
|
1507
|
-
onClick: () => T({ ids:
|
|
1508
|
+
onClick: () => T({ ids: W }, { onSuccess: () => mn("TOP_RIGHT") }),
|
|
1508
1509
|
children: [
|
|
1509
1510
|
e("Publish"),
|
|
1510
1511
|
" with translation pages"
|
|
@@ -1527,18 +1528,18 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1527
1528
|
e("Open"),
|
|
1528
1529
|
" publish menu"
|
|
1529
1530
|
] }),
|
|
1530
|
-
v && me && /* @__PURE__ */
|
|
1531
|
+
v && me && /* @__PURE__ */ c(ue, { onClick: () => f(!0), className: "cursor-pointer text-xs", children: e("View Unpublished changes") }),
|
|
1531
1532
|
v && /* @__PURE__ */ m(ue, { onClick: () => d(n), className: "cursor-pointer text-xs", children: [
|
|
1532
1533
|
e("Unpublish"),
|
|
1533
1534
|
" page ",
|
|
1534
|
-
t ? `(${
|
|
1535
|
+
t ? `(${es(t)})` : ""
|
|
1535
1536
|
] })
|
|
1536
1537
|
] })
|
|
1537
1538
|
] })
|
|
1538
1539
|
] }),
|
|
1539
|
-
/* @__PURE__ */
|
|
1540
|
-
|
|
1541
|
-
u && /* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ c(so, { showModal: r, onClose: () => a(!1) }),
|
|
1541
|
+
l && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(co, { page: l, onClose: () => d(null) }) }),
|
|
1542
|
+
u && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
|
|
1542
1543
|
uo,
|
|
1543
1544
|
{
|
|
1544
1545
|
open: u,
|
|
@@ -1549,7 +1550,7 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1549
1550
|
]
|
|
1550
1551
|
}
|
|
1551
1552
|
) }),
|
|
1552
|
-
h && /* @__PURE__ */
|
|
1553
|
+
h && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
|
|
1553
1554
|
lo,
|
|
1554
1555
|
{
|
|
1555
1556
|
isOpen: h,
|
|
@@ -1562,65 +1563,65 @@ const co = H(() => import("./unpublish-page-KDM7kEEV.js")), lo = H(
|
|
|
1562
1563
|
};
|
|
1563
1564
|
function Eo() {
|
|
1564
1565
|
const { isLocked: e } = Se(), [t] = be(), n = t.get("lang"), s = ro(n);
|
|
1565
|
-
return e || !s ? /* @__PURE__ */
|
|
1566
|
-
/* @__PURE__ */
|
|
1567
|
-
/* @__PURE__ */
|
|
1568
|
-
/* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1566
|
+
return e || !s ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
|
|
1567
|
+
/* @__PURE__ */ c(eo, {}),
|
|
1568
|
+
/* @__PURE__ */ c(gn, { permission: he.EDIT_THEME, children: /* @__PURE__ */ c(ho, {}) }),
|
|
1569
|
+
/* @__PURE__ */ c(fo, {}),
|
|
1570
|
+
/* @__PURE__ */ c(gn, { permission: he.SAVE_PAGE, children: /* @__PURE__ */ c(go, {}) }),
|
|
1571
|
+
/* @__PURE__ */ c(gn, { permission: he.PUBLISH_PAGE, children: /* @__PURE__ */ c(mo, {}) })
|
|
1571
1572
|
] });
|
|
1572
1573
|
}
|
|
1573
|
-
const po = H(() => import("./dynamic-page-selector-
|
|
1574
|
+
const po = H(() => import("./dynamic-page-selector-NZ-rKLo3.js")), yo = () => {
|
|
1574
1575
|
const { dynamicPage: e, allLangPages: t, isFetching: n } = Ei(), s = t.length > 0;
|
|
1575
1576
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1576
|
-
!e && /* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */
|
|
1577
|
+
!e && /* @__PURE__ */ c(zi, { hasDynamicPage: s }),
|
|
1578
|
+
/* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(po, {}) })
|
|
1578
1579
|
] });
|
|
1579
1580
|
}, Ao = () => {
|
|
1580
|
-
const { data: e, isFetching: t } = Ce(), { data: n, isFetching: s } = fe(), r = q(n, "dynamic", !1), a =
|
|
1581
|
+
const { data: e, isFetching: t } = Ce(), { data: n, isFetching: s } = fe(), r = q(n, "dynamic", !1), a = Mn(), i = ya("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, d = Ti(), u = t || s, g = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
|
|
1581
1582
|
return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
|
|
1582
|
-
/* @__PURE__ */
|
|
1583
|
+
/* @__PURE__ */ c(
|
|
1583
1584
|
"div",
|
|
1584
1585
|
{
|
|
1585
1586
|
className: zt(
|
|
1586
1587
|
"flex h-8 w-auto max-w-[600px] items-center rounded-l-md border border-r-0 border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
|
|
1587
1588
|
u && "max-w-0 overflow-hidden opacity-0"
|
|
1588
1589
|
),
|
|
1589
|
-
children: /* @__PURE__ */
|
|
1590
|
+
children: /* @__PURE__ */ c(Qi, {})
|
|
1590
1591
|
}
|
|
1591
1592
|
),
|
|
1592
1593
|
/* @__PURE__ */ m(
|
|
1593
1594
|
"div",
|
|
1594
1595
|
{
|
|
1595
1596
|
className: zt(
|
|
1596
|
-
"flex h-8 w-auto max-w-[600px] items-center rounded-r-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (
|
|
1597
|
+
"flex h-8 w-auto max-w-[600px] items-center rounded-r-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (l ? " pr-2" : ""),
|
|
1597
1598
|
u && "max-w-0 overflow-hidden opacity-0"
|
|
1598
1599
|
),
|
|
1599
1600
|
children: [
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ c(Yi, {}),
|
|
1601
1602
|
/* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
|
|
1602
|
-
/* @__PURE__ */
|
|
1603
|
+
/* @__PURE__ */ c(
|
|
1603
1604
|
"div",
|
|
1604
1605
|
{
|
|
1605
|
-
className: `w-full max-w-[200px] overflow-hidden overflow-ellipsis whitespace-nowrap pl-1 text-xs ${
|
|
1606
|
+
className: `w-full max-w-[200px] overflow-hidden overflow-ellipsis whitespace-nowrap pl-1 text-xs ${l ? "italic text-gray-400" : "font-mono text-gray-500"}`,
|
|
1606
1607
|
children: g === "/" ? /* @__PURE__ */ m("span", { className: "text-gray-900", children: [
|
|
1607
1608
|
"/",
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ c("span", { className: "text-[11px] font-light italic text-gray-400", children: "(Homepage)" })
|
|
1609
1610
|
] }) : g
|
|
1610
1611
|
}
|
|
1611
1612
|
),
|
|
1612
|
-
!
|
|
1613
|
+
!l && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ c(Za, { className: "h-4 w-4", strokeWidth: 1 }) }) })
|
|
1613
1614
|
] })
|
|
1614
1615
|
]
|
|
1615
1616
|
}
|
|
1616
1617
|
),
|
|
1617
|
-
r && i && /* @__PURE__ */
|
|
1618
|
+
r && i && /* @__PURE__ */ c(yo, {})
|
|
1618
1619
|
] });
|
|
1619
1620
|
}, To = () => /* @__PURE__ */ m("div", { className: "grid h-full w-full grid-cols-3 items-center px-2", children: [
|
|
1620
|
-
/* @__PURE__ */
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1623
|
-
] }),
|
|
1621
|
+
/* @__PURE__ */ c("div", { className: "flex justify-start", children: /* @__PURE__ */ c(Ji, {}) }),
|
|
1622
|
+
/* @__PURE__ */ c("div", { className: "flex justify-center", children: /* @__PURE__ */ c(Ao, {}) }),
|
|
1623
|
+
/* @__PURE__ */ c("div", { className: "flex justify-end", children: /* @__PURE__ */ c(Eo, {}) })
|
|
1624
|
+
] }), Ys = () => {
|
|
1624
1625
|
const e = Y(), { data: t } = se({
|
|
1625
1626
|
queryKey: [p.AI_CONTEXT],
|
|
1626
1627
|
initialData: "",
|
|
@@ -1634,7 +1635,7 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1634
1635
|
[e]
|
|
1635
1636
|
), aiContext: t };
|
|
1636
1637
|
}, So = () => {
|
|
1637
|
-
const e = I(), { aiContext: t } =
|
|
1638
|
+
const e = I(), { aiContext: t } = Ys(), n = C();
|
|
1638
1639
|
return z(
|
|
1639
1640
|
async (s, r, a, i) => n(e, {
|
|
1640
1641
|
action: p.ASK_AI,
|
|
@@ -1644,26 +1645,26 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1644
1645
|
);
|
|
1645
1646
|
}, _o = (e) => $(() => {
|
|
1646
1647
|
if (!e || ge(e)) return { blocks: [] };
|
|
1647
|
-
const t =
|
|
1648
|
+
const t = Rs(e, (n) => !Ga(n == null ? void 0 : n._type, "@chai/"));
|
|
1648
1649
|
return { blocks: ci(t) };
|
|
1649
1650
|
}, [e]), Po = () => {
|
|
1650
|
-
const [e] = be(), t = e.get("page"), n = I(), { setAiContext: s } =
|
|
1651
|
+
const [e] = be(), t = e.get("page"), n = I(), { setAiContext: s } = Ys(), [, r] = Vs(), [, a] = Ai(), [, i] = Jr(), o = C();
|
|
1651
1652
|
return se({
|
|
1652
1653
|
queryKey: [p.GET_DRAFT_PAGE, t],
|
|
1653
1654
|
staleTime: 1 / 0,
|
|
1654
1655
|
gcTime: 0,
|
|
1655
1656
|
queryFn: async () => {
|
|
1656
1657
|
i(!1);
|
|
1657
|
-
const
|
|
1658
|
+
const l = await o(n, {
|
|
1658
1659
|
action: p.GET_DRAFT_PAGE,
|
|
1659
1660
|
data: { id: t, draft: !0 }
|
|
1660
|
-
}), d =
|
|
1661
|
-
return s(q(u, "_value", "") || ""), r((f) => ({ ...f, lastSaved:
|
|
1661
|
+
}), d = l.blocks ?? [], u = ce(d, { _type: "@chai/ai-context" });
|
|
1662
|
+
return s(q(u, "_value", "") || ""), r((f) => ({ ...f, lastSaved: l.lastSaved })), a(q(l, "metadata", {})), setTimeout(() => i(!0), 500), d;
|
|
1662
1663
|
},
|
|
1663
1664
|
enabled: !!t
|
|
1664
1665
|
});
|
|
1665
1666
|
}, wo = () => {
|
|
1666
|
-
const { data: e } = fe(), { data: t } = Ce(), n = I(), s = C(), r =
|
|
1667
|
+
const { data: e } = fe(), { data: t } = Ce(), n = I(), s = C(), r = Kn(), a = Mn();
|
|
1667
1668
|
return se({
|
|
1668
1669
|
queryKey: [p.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
|
|
1669
1670
|
staleTime: 1 / 0,
|
|
@@ -1694,7 +1695,7 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1694
1695
|
});
|
|
1695
1696
|
}, vo = () => {
|
|
1696
1697
|
const e = I(), t = Y(), n = C();
|
|
1697
|
-
return
|
|
1698
|
+
return X({
|
|
1698
1699
|
mutationFn: async (s) => n(e, {
|
|
1699
1700
|
action: p.UPDATE_WEBSITE_FIELDS,
|
|
1700
1701
|
data: s
|
|
@@ -1711,9 +1712,9 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1711
1712
|
});
|
|
1712
1713
|
}
|
|
1713
1714
|
});
|
|
1714
|
-
},
|
|
1715
|
+
}, Eu = () => {
|
|
1715
1716
|
const e = I(), t = Y(), n = C(), { selectedLang: s } = we();
|
|
1716
|
-
return
|
|
1717
|
+
return X({
|
|
1717
1718
|
mutationFn: async (r) => n(e, { action: p.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
1718
1719
|
onSuccess: () => {
|
|
1719
1720
|
t.invalidateQueries({
|
|
@@ -1726,9 +1727,9 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1726
1727
|
});
|
|
1727
1728
|
}
|
|
1728
1729
|
});
|
|
1729
|
-
},
|
|
1730
|
+
}, pu = () => {
|
|
1730
1731
|
const e = I(), t = Y(), n = C(), { selectedLang: s } = we();
|
|
1731
|
-
return
|
|
1732
|
+
return X({
|
|
1732
1733
|
mutationFn: async (r) => n(e, { action: p.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
|
|
1733
1734
|
onSuccess: () => {
|
|
1734
1735
|
t.invalidateQueries({
|
|
@@ -1741,9 +1742,9 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1741
1742
|
});
|
|
1742
1743
|
}
|
|
1743
1744
|
});
|
|
1744
|
-
},
|
|
1745
|
+
}, yu = () => {
|
|
1745
1746
|
const e = I(), t = Y(), n = C();
|
|
1746
|
-
return
|
|
1747
|
+
return X({
|
|
1747
1748
|
mutationFn: async (s) => n(e, { action: p.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
|
|
1748
1749
|
onSuccess: () => {
|
|
1749
1750
|
t.invalidateQueries({
|
|
@@ -1756,9 +1757,9 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1756
1757
|
});
|
|
1757
1758
|
}
|
|
1758
1759
|
});
|
|
1759
|
-
},
|
|
1760
|
+
}, Au = () => {
|
|
1760
1761
|
const e = I(), t = C();
|
|
1761
|
-
return
|
|
1762
|
+
return X({
|
|
1762
1763
|
mutationFn: async (n) => t(e, { action: p.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
1763
1764
|
onError: (n) => {
|
|
1764
1765
|
D.error("Failed to toggle schema", {
|
|
@@ -1766,9 +1767,9 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1766
1767
|
});
|
|
1767
1768
|
}
|
|
1768
1769
|
});
|
|
1769
|
-
},
|
|
1770
|
+
}, Tu = () => {
|
|
1770
1771
|
const e = I(), t = C();
|
|
1771
|
-
return
|
|
1772
|
+
return X({
|
|
1772
1773
|
mutationFn: async (n) => t(e, { action: p.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
1773
1774
|
onSuccess: (n) => {
|
|
1774
1775
|
D.success(`Schema applied to ${n.count} page(s)`);
|
|
@@ -1779,9 +1780,9 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1779
1780
|
});
|
|
1780
1781
|
}
|
|
1781
1782
|
});
|
|
1782
|
-
},
|
|
1783
|
+
}, Su = () => {
|
|
1783
1784
|
const e = I(), t = C();
|
|
1784
|
-
return
|
|
1785
|
+
return X({
|
|
1785
1786
|
mutationFn: async (n) => t(e, { action: p.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
1786
1787
|
onSuccess: (n) => {
|
|
1787
1788
|
D.success(`Schema removed from ${n.count} page(s)`);
|
|
@@ -1792,7 +1793,7 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1792
1793
|
});
|
|
1793
1794
|
}
|
|
1794
1795
|
});
|
|
1795
|
-
},
|
|
1796
|
+
}, us = {
|
|
1796
1797
|
async getUILibraryBlock(e, t, n) {
|
|
1797
1798
|
const s = await t(n, {
|
|
1798
1799
|
action: "GET_LIBRARY_ITEM",
|
|
@@ -1821,8 +1822,8 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1821
1822
|
Aa(r.id, {
|
|
1822
1823
|
name: r.isSiteLibrary ? r.name + " (Current Site) " : r.name,
|
|
1823
1824
|
description: r.description,
|
|
1824
|
-
getBlocksList: (a) =>
|
|
1825
|
-
getBlock: ({ block: a }) =>
|
|
1825
|
+
getBlocksList: (a) => us.getUILibraryBlocks(a, t, e),
|
|
1826
|
+
getBlock: ({ block: a }) => us.getUILibraryBlock(a, t, e)
|
|
1826
1827
|
});
|
|
1827
1828
|
}), s;
|
|
1828
1829
|
}
|
|
@@ -1832,7 +1833,7 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1832
1833
|
return se({
|
|
1833
1834
|
queryKey: ["check-user-access"],
|
|
1834
1835
|
queryFn: async () => {
|
|
1835
|
-
const r = await n(), i = await
|
|
1836
|
+
const r = await n(), i = await Fs(
|
|
1836
1837
|
s + "?action=check_user_access",
|
|
1837
1838
|
{ action: "CHECK_USER_ACCESS" },
|
|
1838
1839
|
{ Authorization: `Bearer ${r}` }
|
|
@@ -1846,7 +1847,7 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1846
1847
|
retry: !1
|
|
1847
1848
|
});
|
|
1848
1849
|
}, No = () => {
|
|
1849
|
-
const e = I(), t = C(), { user: n } =
|
|
1850
|
+
const e = I(), t = C(), { user: n } = Bn(), s = n == null ? void 0 : n.id;
|
|
1850
1851
|
return se({
|
|
1851
1852
|
queryKey: [p.GET_ROLE_AND_PERMISSIONS, s],
|
|
1852
1853
|
queryFn: () => t(e, {
|
|
@@ -1857,27 +1858,27 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1857
1858
|
staleTime: 1 / 0
|
|
1858
1859
|
});
|
|
1859
1860
|
}, Lo = () => {
|
|
1860
|
-
const e = I(), t = C(), [, n] =
|
|
1861
|
+
const e = I(), t = C(), [, n] = Vs(), s = Y();
|
|
1861
1862
|
return { onSave: async ({
|
|
1862
1863
|
page: a,
|
|
1863
1864
|
blocks: i,
|
|
1864
1865
|
needTranslations: o
|
|
1865
1866
|
}) => {
|
|
1866
1867
|
try {
|
|
1867
|
-
const
|
|
1868
|
+
const l = await t(e, {
|
|
1868
1869
|
action: "UPDATE_PAGE",
|
|
1869
1870
|
data: { id: a, blocks: i, needTranslations: o }
|
|
1870
1871
|
});
|
|
1871
|
-
return
|
|
1872
|
+
return l.code === "PAGE_LOCKED" ? !0 : (n((d) => ({
|
|
1872
1873
|
...d,
|
|
1873
1874
|
lastSaved: (/* @__PURE__ */ new Date()).toISOString()
|
|
1874
|
-
})), s.setQueryData([p.GET_LANGUAGE_PAGES, a], (d) => d && (d == null ? void 0 : d.map((u) => (u == null ? void 0 : u.id) === a ? { ...u, changes: ["Page"] } : u))), s.setQueryData([p.GET_WEBSITE_PAGES], (d) => d && (d == null ? void 0 : d.map((u) => (u == null ? void 0 : u.id) === a ? { ...u, changes: ["Page"] } : u))),
|
|
1875
|
-
} catch (
|
|
1876
|
-
return console.error(
|
|
1875
|
+
})), s.setQueryData([p.GET_LANGUAGE_PAGES, a], (d) => d && (d == null ? void 0 : d.map((u) => (u == null ? void 0 : u.id) === a ? { ...u, changes: ["Page"] } : u))), s.setQueryData([p.GET_WEBSITE_PAGES], (d) => d && (d == null ? void 0 : d.map((u) => (u == null ? void 0 : u.id) === a ? { ...u, changes: ["Page"] } : u))), l);
|
|
1876
|
+
} catch (l) {
|
|
1877
|
+
return console.error(l), new Error("Failed to save blocks");
|
|
1877
1878
|
}
|
|
1878
1879
|
} };
|
|
1879
1880
|
}, Co = () => {
|
|
1880
|
-
const { data: e } =
|
|
1881
|
+
const { data: e } = Qs(), t = I(), n = C();
|
|
1881
1882
|
return {
|
|
1882
1883
|
getPartialBlocks: z(async () => {
|
|
1883
1884
|
const s = {};
|
|
@@ -1897,7 +1898,7 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1897
1898
|
action: "GET_DRAFT_PAGE",
|
|
1898
1899
|
data: { id: s, draft: !0, editor: !1, mergePartials: !0 }
|
|
1899
1900
|
});
|
|
1900
|
-
return
|
|
1901
|
+
return Rs(r.blocks, (a) => Dn(a, "_id"));
|
|
1901
1902
|
} catch (r) {
|
|
1902
1903
|
return console.error(r), [];
|
|
1903
1904
|
}
|
|
@@ -1905,35 +1906,35 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1905
1906
|
[n, t]
|
|
1906
1907
|
)
|
|
1907
1908
|
};
|
|
1908
|
-
}, Go = H(() => import("./ai-panel-content-
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
/* @__PURE__ */
|
|
1909
|
+
}, Go = H(() => import("./ai-panel-content-GeQIaXy8.js")), Js = "chai-chat-panel", Oo = ({ 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: [
|
|
1910
|
+
/* @__PURE__ */ c("title", { children: "ai" }),
|
|
1911
|
+
/* @__PURE__ */ c("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ c("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ c(
|
|
1911
1912
|
"path",
|
|
1912
1913
|
{
|
|
1913
1914
|
d: "M320,64 L320,320 L64,320 L64,64 L320,64 Z M171.749388,128 L146.817842,128 L99.4840387,256 L121.976629,256 L130.913039,230.977 L187.575039,230.977 L196.319607,256 L220.167172,256 L171.749388,128 Z M260.093778,128 L237.691519,128 L237.691519,256 L260.093778,256 L260.093778,128 Z M159.094727,149.47526 L181.409039,213.333 L137.135039,213.333 L159.094727,149.47526 Z M341.333333,256 L384,256 L384,298.666667 L341.333333,298.666667 L341.333333,256 Z M85.3333333,341.333333 L128,341.333333 L128,384 L85.3333333,384 L85.3333333,341.333333 Z M170.666667,341.333333 L213.333333,341.333333 L213.333333,384 L170.666667,384 L170.666667,341.333333 Z M85.3333333,0 L128,0 L128,42.6666667 L85.3333333,42.6666667 L85.3333333,0 Z M256,341.333333 L298.666667,341.333333 L298.666667,384 L256,384 L256,341.333333 Z M170.666667,0 L213.333333,0 L213.333333,42.6666667 L170.666667,42.6666667 L170.666667,0 Z M256,0 L298.666667,0 L298.666667,42.6666667 L256,42.6666667 L256,0 Z M341.333333,170.666667 L384,170.666667 L384,213.333333 L341.333333,213.333333 L341.333333,170.666667 Z M0,256 L42.6666667,256 L42.6666667,298.666667 L0,298.666667 L0,256 Z M341.333333,85.3333333 L384,85.3333333 L384,128 L341.333333,128 L341.333333,85.3333333 Z M0,170.666667 L42.6666667,170.666667 L42.6666667,213.333333 L0,213.333333 L0,170.666667 Z M0,85.3333333 L42.6666667,85.3333333 L42.6666667,128 L0,128 L0,85.3333333 Z",
|
|
1914
1915
|
id: "Combined-Shape"
|
|
1915
1916
|
}
|
|
1916
1917
|
) }) })
|
|
1917
|
-
] }), xo = ({ isActive: e, show: t }) =>
|
|
1918
|
-
id:
|
|
1918
|
+
] }), xo = ({ isActive: e, show: t }) => Zr("flags.ai", !1) ? /* @__PURE__ */ c(B, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Oo, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }) : null, Ro = {
|
|
1919
|
+
id: Js,
|
|
1919
1920
|
label: "AI Assistant",
|
|
1920
1921
|
button: xo,
|
|
1921
1922
|
panel: Go,
|
|
1922
1923
|
position: "top"
|
|
1923
|
-
}, ko = H(() => import("./lang-panel-
|
|
1924
|
+
}, ko = H(() => import("./lang-panel-DRDPvY1i.js")), Do = ({ isActive: e, show: t }) => {
|
|
1924
1925
|
const { data: n } = Fe();
|
|
1925
|
-
return !
|
|
1926
|
-
},
|
|
1927
|
-
id:
|
|
1926
|
+
return !Dn(n, "languages") || !q(n, "languages", []).length ? null : /* @__PURE__ */ c(B, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Xa, { className: "h-4 w-4" }) });
|
|
1927
|
+
}, Zs = "lang", Uo = {
|
|
1928
|
+
id: Zs,
|
|
1928
1929
|
label: "Languages",
|
|
1929
1930
|
position: "top",
|
|
1930
1931
|
panel: ko,
|
|
1931
1932
|
button: Do,
|
|
1932
1933
|
view: "modal",
|
|
1933
1934
|
width: 400
|
|
1934
|
-
}, Mo = H(() => import("./seo-panel-
|
|
1935
|
+
}, Mo = H(() => import("./seo-panel-197ULlty.js")), Xs = "seo", Bo = ({ isActive: e, show: t }) => {
|
|
1935
1936
|
const { data: n } = fe(), s = Si(n == null ? void 0 : n.pageType);
|
|
1936
|
-
return !
|
|
1937
|
+
return !Dn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(B, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
1937
1938
|
"svg",
|
|
1938
1939
|
{
|
|
1939
1940
|
stroke: "currentColor",
|
|
@@ -1944,39 +1945,49 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1944
1945
|
strokeLinecap: "round",
|
|
1945
1946
|
strokeLinejoin: "round",
|
|
1946
1947
|
children: [
|
|
1947
|
-
/* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ c("path", { d: "M7 8h-3a1 1 0 0 0 -1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-3" }),
|
|
1949
|
+
/* @__PURE__ */ c("path", { d: "M14 16h-4v-8h4" }),
|
|
1950
|
+
/* @__PURE__ */ c("path", { d: "M11 12h2" }),
|
|
1951
|
+
/* @__PURE__ */ c("path", { d: "M17 8m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z" })
|
|
1951
1952
|
]
|
|
1952
1953
|
}
|
|
1953
1954
|
) });
|
|
1954
1955
|
}, Fo = {
|
|
1955
|
-
id:
|
|
1956
|
+
id: Xs,
|
|
1956
1957
|
label: "SEO",
|
|
1957
1958
|
panel: Mo,
|
|
1958
1959
|
button: Bo,
|
|
1959
1960
|
position: "top",
|
|
1960
1961
|
width: 600,
|
|
1961
1962
|
view: "modal"
|
|
1962
|
-
},
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
/* @__PURE__ */
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1963
|
+
}, Ko = H(
|
|
1964
|
+
() => import("./change-password-modal-CMEo8lEm.js").then((e) => ({ default: e.ChangePasswordModal }))
|
|
1965
|
+
), er = "user-info", Vo = () => {
|
|
1966
|
+
const { t: e } = ve(), { user: t, logout: n } = Bn(), s = de("onLogout", rn), [r, a] = V(!1);
|
|
1967
|
+
return t ? /* @__PURE__ */ m(Xr, { children: [
|
|
1968
|
+
/* @__PURE__ */ c(ea, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(ei, { className: "h-4 w-4" }) }) }),
|
|
1969
|
+
/* @__PURE__ */ m(ta, { className: "w-auto space-y-2 p-4", children: [
|
|
1970
|
+
/* @__PURE__ */ c("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
|
|
1971
|
+
/* @__PURE__ */ c("div", { className: "text-xs text-muted-foreground", children: t.email }),
|
|
1972
|
+
/* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", onClick: () => a(!0), children: e("Change Password") }),
|
|
1973
|
+
r && /* @__PURE__ */ c(
|
|
1974
|
+
J,
|
|
1975
|
+
{
|
|
1976
|
+
fallback: /* @__PURE__ */ c(Rn, { open: r, onOpenChange: a, children: /* @__PURE__ */ c(Ls, { className: "sm:max-w-[425px]", children: /* @__PURE__ */ c("div", { className: "flex h-[340px] items-center justify-center", children: /* @__PURE__ */ c(ct, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) }) }),
|
|
1977
|
+
children: /* @__PURE__ */ c(Ko, { open: r, onOpenChange: a })
|
|
1978
|
+
}
|
|
1979
|
+
),
|
|
1980
|
+
/* @__PURE__ */ m(na, { children: [
|
|
1981
|
+
/* @__PURE__ */ c(sa, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
|
|
1982
|
+
/* @__PURE__ */ m(ra, { children: [
|
|
1983
|
+
/* @__PURE__ */ m(aa, { children: [
|
|
1984
|
+
/* @__PURE__ */ c(ia, { children: e("Are you sure you want to logout?") }),
|
|
1985
|
+
/* @__PURE__ */ c(oa, { children: e("You will be redirected to the login page.") })
|
|
1975
1986
|
] }),
|
|
1976
|
-
/* @__PURE__ */ m(
|
|
1977
|
-
/* @__PURE__ */
|
|
1978
|
-
/* @__PURE__ */
|
|
1979
|
-
|
|
1987
|
+
/* @__PURE__ */ m(ca, { children: [
|
|
1988
|
+
/* @__PURE__ */ c(la, { children: e("Cancel") }),
|
|
1989
|
+
/* @__PURE__ */ c(
|
|
1990
|
+
ua,
|
|
1980
1991
|
{
|
|
1981
1992
|
onClick: () => {
|
|
1982
1993
|
n(), Ra(s) && s();
|
|
@@ -1989,13 +2000,13 @@ const po = H(() => import("./dynamic-page-selector-CVyA9Zp0.js")), yo = () => {
|
|
|
1989
2000
|
] })
|
|
1990
2001
|
] })
|
|
1991
2002
|
] }) : null;
|
|
1992
|
-
},
|
|
1993
|
-
id:
|
|
2003
|
+
}, Ho = {
|
|
2004
|
+
id: er,
|
|
1994
2005
|
label: "User Info",
|
|
1995
|
-
button:
|
|
2006
|
+
button: Vo,
|
|
1996
2007
|
position: "bottom"
|
|
1997
|
-
},
|
|
1998
|
-
Ut(
|
|
2008
|
+
}, qo = () => {
|
|
2009
|
+
Ut(Xs, Fo), Ut(Zs, Uo), Ut(er, Ho), Ut(Js, Ro);
|
|
1999
2010
|
};
|
|
2000
2011
|
var w = {
|
|
2001
2012
|
context: void 0,
|
|
@@ -2003,29 +2014,29 @@ var w = {
|
|
|
2003
2014
|
effects: void 0,
|
|
2004
2015
|
done: !1,
|
|
2005
2016
|
getContextId() {
|
|
2006
|
-
return
|
|
2017
|
+
return ds(this.context.count);
|
|
2007
2018
|
},
|
|
2008
2019
|
getNextContextId() {
|
|
2009
|
-
return
|
|
2020
|
+
return ds(this.context.count++);
|
|
2010
2021
|
}
|
|
2011
2022
|
};
|
|
2012
|
-
function
|
|
2023
|
+
function ds(e) {
|
|
2013
2024
|
const t = String(e), n = t.length - 1;
|
|
2014
2025
|
return w.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
|
|
2015
2026
|
}
|
|
2016
|
-
function
|
|
2027
|
+
function ft(e) {
|
|
2017
2028
|
w.context = e;
|
|
2018
2029
|
}
|
|
2019
|
-
var
|
|
2020
|
-
equals:
|
|
2021
|
-
},
|
|
2030
|
+
var tr = !1, $o = (e, t) => e === t, jt = Symbol("solid-proxy"), nr = typeof Proxy == "function", sr = Symbol("solid-track"), Yt = {
|
|
2031
|
+
equals: $o
|
|
2032
|
+
}, rr = dr, Ie = 1, Jt = 2, ar = {
|
|
2022
2033
|
owned: null,
|
|
2023
2034
|
cleanups: null,
|
|
2024
2035
|
context: null,
|
|
2025
2036
|
owner: null
|
|
2026
|
-
}, En = {}, O = null, pn = null,
|
|
2037
|
+
}, En = {}, O = null, pn = null, Qo = null, R = null, te = null, Pe = null, on = 0;
|
|
2027
2038
|
function De(e, t) {
|
|
2028
|
-
const n = R, s = O, r = e.length === 0, a = t === void 0 ? s : t, i = r ?
|
|
2039
|
+
const n = R, s = O, r = e.length === 0, a = t === void 0 ? s : t, i = r ? ar : {
|
|
2029
2040
|
owned: null,
|
|
2030
2041
|
cleanups: null,
|
|
2031
2042
|
context: a ? a.context : null,
|
|
@@ -2045,53 +2056,53 @@ function K(e, t) {
|
|
|
2045
2056
|
observers: null,
|
|
2046
2057
|
observerSlots: null,
|
|
2047
2058
|
comparator: t.equals || void 0
|
|
2048
|
-
}, s = (r) => (typeof r == "function" && (r = r(n.value)),
|
|
2049
|
-
return [
|
|
2059
|
+
}, s = (r) => (typeof r == "function" && (r = r(n.value)), ur(n, r));
|
|
2060
|
+
return [lr.bind(n), s];
|
|
2050
2061
|
}
|
|
2051
|
-
function
|
|
2062
|
+
function zo(e, t, n) {
|
|
2052
2063
|
const s = cn(e, t, !0, Ie);
|
|
2053
|
-
|
|
2064
|
+
ut(s);
|
|
2054
2065
|
}
|
|
2055
2066
|
function Ue(e, t, n) {
|
|
2056
2067
|
const s = cn(e, t, !1, Ie);
|
|
2057
|
-
|
|
2068
|
+
ut(s);
|
|
2058
2069
|
}
|
|
2059
|
-
function
|
|
2060
|
-
|
|
2070
|
+
function ir(e, t, n) {
|
|
2071
|
+
rr = nc;
|
|
2061
2072
|
const s = cn(e, t, !1, Ie);
|
|
2062
|
-
(!n || !n.render) && (s.user = !0), Pe ? Pe.push(s) :
|
|
2073
|
+
(!n || !n.render) && (s.user = !0), Pe ? Pe.push(s) : ut(s);
|
|
2063
2074
|
}
|
|
2064
|
-
function
|
|
2075
|
+
function Z(e, t, n) {
|
|
2065
2076
|
n = n ? Object.assign({}, Yt, n) : Yt;
|
|
2066
2077
|
const s = cn(e, t, !0, 0);
|
|
2067
|
-
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0,
|
|
2078
|
+
return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, ut(s), lr.bind(s);
|
|
2068
2079
|
}
|
|
2069
|
-
function
|
|
2080
|
+
function Wo(e) {
|
|
2070
2081
|
return e && typeof e == "object" && "then" in e;
|
|
2071
2082
|
}
|
|
2072
2083
|
function jo(e, t, n) {
|
|
2073
2084
|
let s, r, a;
|
|
2074
2085
|
s = !0, r = e, a = {};
|
|
2075
|
-
let i = null, o = En,
|
|
2086
|
+
let i = null, o = En, l = null, d = !1, u = "initialValue" in a, f = typeof s == "function" && Z(s);
|
|
2076
2087
|
const g = /* @__PURE__ */ new Set(), [h, A] = (a.storage || K)(a.initialValue), [y, T] = K(void 0), [_, E] = K(void 0, {
|
|
2077
2088
|
equals: !1
|
|
2078
2089
|
}), [P, N] = K(u ? "ready" : "unresolved");
|
|
2079
|
-
w.context && (
|
|
2080
|
-
function U(b, L,
|
|
2090
|
+
w.context && (l = w.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : w.load && w.has(l) && (o = w.load(l)));
|
|
2091
|
+
function U(b, L, W, M) {
|
|
2081
2092
|
return i === b && (i = null, M !== void 0 && (u = !0), (b === o || L === o) && a.onHydrated && queueMicrotask(() => a.onHydrated(M, {
|
|
2082
2093
|
value: L
|
|
2083
|
-
})), o = En, v(L,
|
|
2094
|
+
})), o = En, v(L, W)), L;
|
|
2084
2095
|
}
|
|
2085
2096
|
function v(b, L) {
|
|
2086
2097
|
ye(() => {
|
|
2087
2098
|
L === void 0 && A(() => b), N(L !== void 0 ? "errored" : u ? "ready" : "unresolved"), T(L);
|
|
2088
|
-
for (const
|
|
2099
|
+
for (const W of g.keys()) W.decrement();
|
|
2089
2100
|
g.clear();
|
|
2090
2101
|
}, !1);
|
|
2091
2102
|
}
|
|
2092
2103
|
function me() {
|
|
2093
|
-
const b =
|
|
2094
|
-
if (
|
|
2104
|
+
const b = Xo, L = h(), W = y();
|
|
2105
|
+
if (W !== void 0 && !i) throw W;
|
|
2095
2106
|
return R && R.user, L;
|
|
2096
2107
|
}
|
|
2097
2108
|
function _e(b = !0) {
|
|
@@ -2102,7 +2113,7 @@ function jo(e, t, n) {
|
|
|
2102
2113
|
U(i, ee(h));
|
|
2103
2114
|
return;
|
|
2104
2115
|
}
|
|
2105
|
-
let
|
|
2116
|
+
let W;
|
|
2106
2117
|
const M = o !== En ? o : ee(() => {
|
|
2107
2118
|
try {
|
|
2108
2119
|
return r(L, {
|
|
@@ -2110,13 +2121,13 @@ function jo(e, t, n) {
|
|
|
2110
2121
|
refetching: b
|
|
2111
2122
|
});
|
|
2112
2123
|
} catch (ae) {
|
|
2113
|
-
|
|
2124
|
+
W = ae;
|
|
2114
2125
|
}
|
|
2115
2126
|
});
|
|
2116
|
-
if (
|
|
2117
|
-
U(i, void 0, qt(
|
|
2127
|
+
if (W !== void 0) {
|
|
2128
|
+
U(i, void 0, qt(W), L);
|
|
2118
2129
|
return;
|
|
2119
|
-
} else if (!
|
|
2130
|
+
} else if (!Wo(M))
|
|
2120
2131
|
return U(i, M, void 0, L), M;
|
|
2121
2132
|
return i = M, "v" in M ? (M.s === 1 ? U(i, M.v, void 0, L) : U(i, void 0, qt(M.v), L), M) : (d = !0, queueMicrotask(() => d = !1), ye(() => {
|
|
2122
2133
|
N(u ? "refreshing" : "pending"), E();
|
|
@@ -2144,13 +2155,13 @@ function jo(e, t, n) {
|
|
|
2144
2155
|
}
|
|
2145
2156
|
}
|
|
2146
2157
|
});
|
|
2147
|
-
let
|
|
2148
|
-
return f ?
|
|
2149
|
-
refetch: (b) =>
|
|
2158
|
+
let F = O;
|
|
2159
|
+
return f ? zo(() => (F = O, _e(!1))) : _e(!1), [me, {
|
|
2160
|
+
refetch: (b) => or(F, () => _e(b)),
|
|
2150
2161
|
mutate: A
|
|
2151
2162
|
}];
|
|
2152
2163
|
}
|
|
2153
|
-
function
|
|
2164
|
+
function _u(e) {
|
|
2154
2165
|
return ye(e, !1);
|
|
2155
2166
|
}
|
|
2156
2167
|
function ee(e) {
|
|
@@ -2163,7 +2174,7 @@ function ee(e) {
|
|
|
2163
2174
|
R = t;
|
|
2164
2175
|
}
|
|
2165
2176
|
}
|
|
2166
|
-
function
|
|
2177
|
+
function Pu(e, t, n) {
|
|
2167
2178
|
const s = Array.isArray(e);
|
|
2168
2179
|
let r, a = n && n.defer;
|
|
2169
2180
|
return (i) => {
|
|
@@ -2174,31 +2185,31 @@ function _u(e, t, n) {
|
|
|
2174
2185
|
} else o = e();
|
|
2175
2186
|
if (a)
|
|
2176
2187
|
return a = !1, i;
|
|
2177
|
-
const
|
|
2178
|
-
return r = o,
|
|
2188
|
+
const l = ee(() => t(o, r, i));
|
|
2189
|
+
return r = o, l;
|
|
2179
2190
|
};
|
|
2180
2191
|
}
|
|
2181
|
-
function
|
|
2182
|
-
|
|
2192
|
+
function Yo(e) {
|
|
2193
|
+
ir(() => ee(e));
|
|
2183
2194
|
}
|
|
2184
2195
|
function mt(e) {
|
|
2185
2196
|
return O === null || (O.cleanups === null ? O.cleanups = [e] : O.cleanups.push(e)), e;
|
|
2186
2197
|
}
|
|
2187
|
-
function
|
|
2198
|
+
function fs() {
|
|
2188
2199
|
return O;
|
|
2189
2200
|
}
|
|
2190
|
-
function
|
|
2201
|
+
function or(e, t) {
|
|
2191
2202
|
const n = O, s = R;
|
|
2192
2203
|
O = e, R = null;
|
|
2193
2204
|
try {
|
|
2194
2205
|
return ye(t, !0);
|
|
2195
2206
|
} catch (r) {
|
|
2196
|
-
|
|
2207
|
+
qn(r);
|
|
2197
2208
|
} finally {
|
|
2198
2209
|
O = n, R = s;
|
|
2199
2210
|
}
|
|
2200
2211
|
}
|
|
2201
|
-
function
|
|
2212
|
+
function Jo(e) {
|
|
2202
2213
|
const t = R, n = O;
|
|
2203
2214
|
return Promise.resolve().then(() => {
|
|
2204
2215
|
R = t, O = n;
|
|
@@ -2206,33 +2217,33 @@ function Yo(e) {
|
|
|
2206
2217
|
return ye(e, !1), R = O = null, s ? s.done : void 0;
|
|
2207
2218
|
});
|
|
2208
2219
|
}
|
|
2209
|
-
var [
|
|
2210
|
-
function
|
|
2211
|
-
return [
|
|
2220
|
+
var [Zo, wu] = /* @__PURE__ */ K(!1);
|
|
2221
|
+
function vu() {
|
|
2222
|
+
return [Zo, Jo];
|
|
2212
2223
|
}
|
|
2213
|
-
function
|
|
2224
|
+
function bu(e, t) {
|
|
2214
2225
|
const n = Symbol("context");
|
|
2215
2226
|
return {
|
|
2216
2227
|
id: n,
|
|
2217
|
-
Provider:
|
|
2228
|
+
Provider: sc(n),
|
|
2218
2229
|
defaultValue: e
|
|
2219
2230
|
};
|
|
2220
2231
|
}
|
|
2221
|
-
function
|
|
2232
|
+
function Iu(e) {
|
|
2222
2233
|
let t;
|
|
2223
2234
|
return O && O.context && (t = O.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
2224
2235
|
}
|
|
2225
|
-
function
|
|
2226
|
-
const t =
|
|
2236
|
+
function cr(e) {
|
|
2237
|
+
const t = Z(e), n = Z(() => Sn(t()));
|
|
2227
2238
|
return n.toArray = () => {
|
|
2228
2239
|
const s = n();
|
|
2229
2240
|
return Array.isArray(s) ? s : s != null ? [s] : [];
|
|
2230
2241
|
}, n;
|
|
2231
2242
|
}
|
|
2232
|
-
var
|
|
2233
|
-
function
|
|
2243
|
+
var Xo;
|
|
2244
|
+
function lr() {
|
|
2234
2245
|
if (this.sources && this.state)
|
|
2235
|
-
if (this.state === Ie)
|
|
2246
|
+
if (this.state === Ie) ut(this);
|
|
2236
2247
|
else {
|
|
2237
2248
|
const e = te;
|
|
2238
2249
|
te = null, ye(() => Xt(this), !1), te = e;
|
|
@@ -2243,35 +2254,35 @@ function cr() {
|
|
|
2243
2254
|
}
|
|
2244
2255
|
return this.value;
|
|
2245
2256
|
}
|
|
2246
|
-
function
|
|
2257
|
+
function ur(e, t, n) {
|
|
2247
2258
|
let s = e.value;
|
|
2248
2259
|
return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && ye(() => {
|
|
2249
2260
|
for (let r = 0; r < e.observers.length; r += 1) {
|
|
2250
2261
|
const a = e.observers[r], i = pn && pn.running;
|
|
2251
|
-
i && pn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? te.push(a) : Pe.push(a), a.observers &&
|
|
2262
|
+
i && pn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? te.push(a) : Pe.push(a), a.observers && fr(a)), i || (a.state = Ie);
|
|
2252
2263
|
}
|
|
2253
2264
|
if (te.length > 1e6)
|
|
2254
2265
|
throw te = [], new Error();
|
|
2255
2266
|
}, !1)), t;
|
|
2256
2267
|
}
|
|
2257
|
-
function
|
|
2268
|
+
function ut(e) {
|
|
2258
2269
|
if (!e.fn) return;
|
|
2259
2270
|
Et(e);
|
|
2260
2271
|
const t = on;
|
|
2261
|
-
|
|
2272
|
+
ec(e, e.value, t);
|
|
2262
2273
|
}
|
|
2263
|
-
function
|
|
2274
|
+
function ec(e, t, n) {
|
|
2264
2275
|
let s;
|
|
2265
2276
|
const r = O, a = R;
|
|
2266
2277
|
R = O = e;
|
|
2267
2278
|
try {
|
|
2268
2279
|
s = e.fn(t);
|
|
2269
2280
|
} catch (i) {
|
|
2270
|
-
return e.pure && (e.state = Ie, e.owned && e.owned.forEach(Et), e.owned = null), e.updatedAt = n + 1,
|
|
2281
|
+
return e.pure && (e.state = Ie, e.owned && e.owned.forEach(Et), e.owned = null), e.updatedAt = n + 1, qn(i);
|
|
2271
2282
|
} finally {
|
|
2272
2283
|
R = a, O = r;
|
|
2273
2284
|
}
|
|
2274
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
2285
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? ur(e, s) : e.value = s, e.updatedAt = n);
|
|
2275
2286
|
}
|
|
2276
2287
|
function cn(e, t, n, s = Ie, r) {
|
|
2277
2288
|
const a = {
|
|
@@ -2287,7 +2298,7 @@ function cn(e, t, n, s = Ie, r) {
|
|
|
2287
2298
|
context: O ? O.context : null,
|
|
2288
2299
|
pure: n
|
|
2289
2300
|
};
|
|
2290
|
-
return O === null || O !==
|
|
2301
|
+
return O === null || O !== ar && (O.owned ? O.owned.push(a) : O.owned = [a]), a;
|
|
2291
2302
|
}
|
|
2292
2303
|
function Zt(e) {
|
|
2293
2304
|
if (e.state === 0) return;
|
|
@@ -2298,7 +2309,7 @@ function Zt(e) {
|
|
|
2298
2309
|
e.state && t.push(e);
|
|
2299
2310
|
for (let n = t.length - 1; n >= 0; n--)
|
|
2300
2311
|
if (e = t[n], e.state === Ie)
|
|
2301
|
-
|
|
2312
|
+
ut(e);
|
|
2302
2313
|
else if (e.state === Jt) {
|
|
2303
2314
|
const s = te;
|
|
2304
2315
|
te = null, ye(() => Xt(e, t[0]), !1), te = s;
|
|
@@ -2310,20 +2321,20 @@ function ye(e, t) {
|
|
|
2310
2321
|
t || (te = []), Pe ? n = !0 : Pe = [], on++;
|
|
2311
2322
|
try {
|
|
2312
2323
|
const s = e();
|
|
2313
|
-
return
|
|
2324
|
+
return tc(n), s;
|
|
2314
2325
|
} catch (s) {
|
|
2315
|
-
n || (Pe = null), te = null,
|
|
2326
|
+
n || (Pe = null), te = null, qn(s);
|
|
2316
2327
|
}
|
|
2317
2328
|
}
|
|
2318
|
-
function
|
|
2319
|
-
if (te && (
|
|
2329
|
+
function tc(e) {
|
|
2330
|
+
if (te && (dr(te), te = null), e) return;
|
|
2320
2331
|
const t = Pe;
|
|
2321
|
-
Pe = null, t.length && ye(() =>
|
|
2332
|
+
Pe = null, t.length && ye(() => rr(t), !1);
|
|
2322
2333
|
}
|
|
2323
|
-
function
|
|
2334
|
+
function dr(e) {
|
|
2324
2335
|
for (let t = 0; t < e.length; t++) Zt(e[t]);
|
|
2325
2336
|
}
|
|
2326
|
-
function
|
|
2337
|
+
function nc(e) {
|
|
2327
2338
|
let t, n = 0;
|
|
2328
2339
|
for (t = 0; t < e.length; t++) {
|
|
2329
2340
|
const s = e[t];
|
|
@@ -2334,7 +2345,7 @@ function tc(e) {
|
|
|
2334
2345
|
w.effects || (w.effects = []), w.effects.push(...e.slice(0, n));
|
|
2335
2346
|
return;
|
|
2336
2347
|
}
|
|
2337
|
-
|
|
2348
|
+
ft();
|
|
2338
2349
|
}
|
|
2339
2350
|
for (w.effects && (w.done || !w.count) && (e = [...w.effects, ...e], n += w.effects.length, delete w.effects), t = 0; t < n; t++) Zt(e[t]);
|
|
2340
2351
|
}
|
|
@@ -2348,10 +2359,10 @@ function Xt(e, t) {
|
|
|
2348
2359
|
}
|
|
2349
2360
|
}
|
|
2350
2361
|
}
|
|
2351
|
-
function
|
|
2362
|
+
function fr(e) {
|
|
2352
2363
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
2353
2364
|
const n = e.observers[t];
|
|
2354
|
-
n.state || (n.state = Jt, n.pure ? te.push(n) : Pe.push(n), n.observers &&
|
|
2365
|
+
n.state || (n.state = Jt, n.pure ? te.push(n) : Pe.push(n), n.observers && fr(n));
|
|
2355
2366
|
}
|
|
2356
2367
|
}
|
|
2357
2368
|
function Et(e) {
|
|
@@ -2383,7 +2394,7 @@ function qt(e) {
|
|
|
2383
2394
|
cause: e
|
|
2384
2395
|
});
|
|
2385
2396
|
}
|
|
2386
|
-
function
|
|
2397
|
+
function qn(e, t = O) {
|
|
2387
2398
|
throw qt(e);
|
|
2388
2399
|
}
|
|
2389
2400
|
function Sn(e) {
|
|
@@ -2398,75 +2409,75 @@ function Sn(e) {
|
|
|
2398
2409
|
}
|
|
2399
2410
|
return e;
|
|
2400
2411
|
}
|
|
2401
|
-
function
|
|
2412
|
+
function sc(e, t) {
|
|
2402
2413
|
return function(s) {
|
|
2403
2414
|
let r;
|
|
2404
2415
|
return Ue(() => r = ee(() => (O.context = {
|
|
2405
2416
|
...O.context,
|
|
2406
2417
|
[e]: s.value
|
|
2407
|
-
},
|
|
2418
|
+
}, cr(() => s.children))), void 0), r;
|
|
2408
2419
|
};
|
|
2409
2420
|
}
|
|
2410
2421
|
var _n = Symbol("fallback");
|
|
2411
2422
|
function en(e) {
|
|
2412
2423
|
for (let t = 0; t < e.length; t++) e[t]();
|
|
2413
2424
|
}
|
|
2414
|
-
function
|
|
2425
|
+
function rc(e, t, n = {}) {
|
|
2415
2426
|
let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
|
|
2416
2427
|
return mt(() => en(a)), () => {
|
|
2417
|
-
let
|
|
2418
|
-
return
|
|
2428
|
+
let l = e() || [], d = l.length, u, f;
|
|
2429
|
+
return l[sr], ee(() => {
|
|
2419
2430
|
let h, A, y, T, _, E, P, N, U;
|
|
2420
2431
|
if (d === 0)
|
|
2421
2432
|
i !== 0 && (en(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [_n], r[0] = De((v) => (a[0] = v, n.fallback())), i = 1);
|
|
2422
2433
|
else if (i === 0) {
|
|
2423
2434
|
for (r = new Array(d), f = 0; f < d; f++)
|
|
2424
|
-
s[f] =
|
|
2435
|
+
s[f] = l[f], r[f] = De(g);
|
|
2425
2436
|
i = d;
|
|
2426
2437
|
} else {
|
|
2427
|
-
for (y = new Array(d), T = new Array(d), o && (_ = new Array(d)), E = 0, P = Math.min(i, d); E < P && s[E] ===
|
|
2428
|
-
for (P = i - 1, N = d - 1; P >= E && N >= E && s[P] ===
|
|
2438
|
+
for (y = new Array(d), T = new Array(d), o && (_ = new Array(d)), E = 0, P = Math.min(i, d); E < P && s[E] === l[E]; E++) ;
|
|
2439
|
+
for (P = i - 1, N = d - 1; P >= E && N >= E && s[P] === l[N]; P--, N--)
|
|
2429
2440
|
y[N] = r[P], T[N] = a[P], o && (_[N] = o[P]);
|
|
2430
2441
|
for (h = /* @__PURE__ */ new Map(), A = new Array(N + 1), f = N; f >= E; f--)
|
|
2431
|
-
U =
|
|
2442
|
+
U = l[f], u = h.get(U), A[f] = u === void 0 ? -1 : u, h.set(U, f);
|
|
2432
2443
|
for (u = E; u <= P; u++)
|
|
2433
2444
|
U = s[u], f = h.get(U), f !== void 0 && f !== -1 ? (y[f] = r[u], T[f] = a[u], o && (_[f] = o[u]), f = A[f], h.set(U, f)) : a[u]();
|
|
2434
2445
|
for (f = E; f < d; f++)
|
|
2435
2446
|
f in y ? (r[f] = y[f], a[f] = T[f], o && (o[f] = _[f], o[f](f))) : r[f] = De(g);
|
|
2436
|
-
r = r.slice(0, i = d), s =
|
|
2447
|
+
r = r.slice(0, i = d), s = l.slice(0);
|
|
2437
2448
|
}
|
|
2438
2449
|
return r;
|
|
2439
2450
|
});
|
|
2440
2451
|
function g(h) {
|
|
2441
2452
|
if (a[f] = h, o) {
|
|
2442
2453
|
const [A, y] = K(f);
|
|
2443
|
-
return o[f] = y, t(
|
|
2454
|
+
return o[f] = y, t(l[f], A);
|
|
2444
2455
|
}
|
|
2445
|
-
return t(
|
|
2456
|
+
return t(l[f]);
|
|
2446
2457
|
}
|
|
2447
2458
|
};
|
|
2448
2459
|
}
|
|
2449
|
-
function
|
|
2450
|
-
let s = [], r = [], a = [], i = [], o = 0,
|
|
2460
|
+
function ac(e, t, n = {}) {
|
|
2461
|
+
let s = [], r = [], a = [], i = [], o = 0, l;
|
|
2451
2462
|
return mt(() => en(a)), () => {
|
|
2452
2463
|
const d = e() || [], u = d.length;
|
|
2453
|
-
return d[
|
|
2464
|
+
return d[sr], ee(() => {
|
|
2454
2465
|
if (u === 0)
|
|
2455
2466
|
return o !== 0 && (en(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [_n], r[0] = De((g) => (a[0] = g, n.fallback())), o = 1), r;
|
|
2456
|
-
for (s[0] === _n && (a[0](), a = [], s = [], r = [], o = 0),
|
|
2457
|
-
|
|
2458
|
-
for (;
|
|
2459
|
-
a[
|
|
2467
|
+
for (s[0] === _n && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < u; l++)
|
|
2468
|
+
l < s.length && s[l] !== d[l] ? i[l](() => d[l]) : l >= s.length && (r[l] = De(f));
|
|
2469
|
+
for (; l < s.length; l++)
|
|
2470
|
+
a[l]();
|
|
2460
2471
|
return o = i.length = a.length = u, s = d.slice(0), r = r.slice(0, o);
|
|
2461
2472
|
});
|
|
2462
2473
|
function f(g) {
|
|
2463
|
-
a[
|
|
2464
|
-
const [h, A] = K(d[
|
|
2465
|
-
return i[
|
|
2474
|
+
a[l] = g;
|
|
2475
|
+
const [h, A] = K(d[l]);
|
|
2476
|
+
return i[l] = A, t(h, l);
|
|
2466
2477
|
}
|
|
2467
2478
|
};
|
|
2468
2479
|
}
|
|
2469
|
-
function
|
|
2480
|
+
function hr(e, t) {
|
|
2470
2481
|
return ee(() => e(t || {}));
|
|
2471
2482
|
}
|
|
2472
2483
|
function Bt() {
|
|
@@ -2474,10 +2485,10 @@ function Bt() {
|
|
|
2474
2485
|
}
|
|
2475
2486
|
var Pn = {
|
|
2476
2487
|
get(e, t, n) {
|
|
2477
|
-
return t ===
|
|
2488
|
+
return t === jt ? n : e.get(t);
|
|
2478
2489
|
},
|
|
2479
2490
|
has(e, t) {
|
|
2480
|
-
return t ===
|
|
2491
|
+
return t === jt ? !0 : e.has(t);
|
|
2481
2492
|
},
|
|
2482
2493
|
set: Bt,
|
|
2483
2494
|
deleteProperty: Bt,
|
|
@@ -2499,24 +2510,24 @@ var Pn = {
|
|
|
2499
2510
|
function yn(e) {
|
|
2500
2511
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
2501
2512
|
}
|
|
2502
|
-
function
|
|
2513
|
+
function ic() {
|
|
2503
2514
|
for (let e = 0, t = this.length; e < t; ++e) {
|
|
2504
2515
|
const n = this[e]();
|
|
2505
2516
|
if (n !== void 0) return n;
|
|
2506
2517
|
}
|
|
2507
2518
|
}
|
|
2508
|
-
function
|
|
2519
|
+
function gr(...e) {
|
|
2509
2520
|
let t = !1;
|
|
2510
2521
|
for (let i = 0; i < e.length; i++) {
|
|
2511
2522
|
const o = e[i];
|
|
2512
|
-
t = t || !!o &&
|
|
2523
|
+
t = t || !!o && jt in o, e[i] = typeof o == "function" ? (t = !0, Z(o)) : o;
|
|
2513
2524
|
}
|
|
2514
|
-
if (
|
|
2525
|
+
if (nr && t)
|
|
2515
2526
|
return new Proxy({
|
|
2516
2527
|
get(i) {
|
|
2517
2528
|
for (let o = e.length - 1; o >= 0; o--) {
|
|
2518
|
-
const
|
|
2519
|
-
if (
|
|
2529
|
+
const l = yn(e[o])[i];
|
|
2530
|
+
if (l !== void 0) return l;
|
|
2520
2531
|
}
|
|
2521
2532
|
},
|
|
2522
2533
|
has(i) {
|
|
@@ -2534,16 +2545,16 @@ function hr(...e) {
|
|
|
2534
2545
|
for (let i = e.length - 1; i >= 0; i--) {
|
|
2535
2546
|
const o = e[i];
|
|
2536
2547
|
if (!o) continue;
|
|
2537
|
-
const
|
|
2538
|
-
for (let d =
|
|
2539
|
-
const u =
|
|
2548
|
+
const l = Object.getOwnPropertyNames(o);
|
|
2549
|
+
for (let d = l.length - 1; d >= 0; d--) {
|
|
2550
|
+
const u = l[d];
|
|
2540
2551
|
if (u === "__proto__" || u === "constructor") continue;
|
|
2541
2552
|
const f = Object.getOwnPropertyDescriptor(o, u);
|
|
2542
2553
|
if (!s[u])
|
|
2543
2554
|
s[u] = f.get ? {
|
|
2544
2555
|
enumerable: !0,
|
|
2545
2556
|
configurable: !0,
|
|
2546
|
-
get:
|
|
2557
|
+
get: ic.bind(n[u] = [f.get.bind(o)])
|
|
2547
2558
|
} : f.value !== void 0 ? f : void 0;
|
|
2548
2559
|
else {
|
|
2549
2560
|
const g = n[u];
|
|
@@ -2553,13 +2564,13 @@ function hr(...e) {
|
|
|
2553
2564
|
}
|
|
2554
2565
|
const r = {}, a = Object.keys(s);
|
|
2555
2566
|
for (let i = a.length - 1; i >= 0; i--) {
|
|
2556
|
-
const o = a[i],
|
|
2557
|
-
|
|
2567
|
+
const o = a[i], l = s[o];
|
|
2568
|
+
l && l.get ? Object.defineProperty(r, o, l) : r[o] = l ? l.value : void 0;
|
|
2558
2569
|
}
|
|
2559
2570
|
return r;
|
|
2560
2571
|
}
|
|
2561
|
-
function
|
|
2562
|
-
if (
|
|
2572
|
+
function oc(e, ...t) {
|
|
2573
|
+
if (nr && jt in e) {
|
|
2563
2574
|
const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
|
|
2564
2575
|
get(o) {
|
|
2565
2576
|
return i.includes(o) ? e[o] : void 0;
|
|
@@ -2586,101 +2597,101 @@ function ic(e, ...t) {
|
|
|
2586
2597
|
const n = {}, s = t.map(() => ({}));
|
|
2587
2598
|
for (const r of Object.getOwnPropertyNames(e)) {
|
|
2588
2599
|
const a = Object.getOwnPropertyDescriptor(e, r), i = !a.get && !a.set && a.enumerable && a.writable && a.configurable;
|
|
2589
|
-
let o = !1,
|
|
2600
|
+
let o = !1, l = 0;
|
|
2590
2601
|
for (const d of t)
|
|
2591
|
-
d.includes(r) && (o = !0, i ? s[
|
|
2602
|
+
d.includes(r) && (o = !0, i ? s[l][r] = a.value : Object.defineProperty(s[l], r, a)), ++l;
|
|
2592
2603
|
o || (i ? n[r] = a.value : Object.defineProperty(n, r, a));
|
|
2593
2604
|
}
|
|
2594
2605
|
return [...s, n];
|
|
2595
2606
|
}
|
|
2596
|
-
function
|
|
2607
|
+
function mr(e) {
|
|
2597
2608
|
let t, n;
|
|
2598
2609
|
const s = (r) => {
|
|
2599
2610
|
const a = w.context;
|
|
2600
2611
|
if (a) {
|
|
2601
|
-
const [o,
|
|
2612
|
+
const [o, l] = K();
|
|
2602
2613
|
w.count || (w.count = 0), w.count++, (n || (n = e())).then((d) => {
|
|
2603
|
-
!w.done &&
|
|
2614
|
+
!w.done && ft(a), w.count--, l(() => d.default), ft();
|
|
2604
2615
|
}), t = o;
|
|
2605
2616
|
} else if (!t) {
|
|
2606
|
-
const [o] = jo(() => (n || (n = e())).then((
|
|
2617
|
+
const [o] = jo(() => (n || (n = e())).then((l) => l.default));
|
|
2607
2618
|
t = o;
|
|
2608
2619
|
}
|
|
2609
2620
|
let i;
|
|
2610
|
-
return
|
|
2621
|
+
return Z(() => (i = t()) ? ee(() => {
|
|
2611
2622
|
if (!a || w.done) return i(r);
|
|
2612
2623
|
const o = w.context;
|
|
2613
|
-
|
|
2614
|
-
const
|
|
2615
|
-
return
|
|
2624
|
+
ft(a);
|
|
2625
|
+
const l = i(r);
|
|
2626
|
+
return ft(o), l;
|
|
2616
2627
|
}) : "");
|
|
2617
2628
|
};
|
|
2618
2629
|
return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
|
|
2619
2630
|
}
|
|
2620
|
-
var
|
|
2621
|
-
function
|
|
2622
|
-
return w.context ? w.getNextContextId() : `cl-${
|
|
2631
|
+
var cc = 0;
|
|
2632
|
+
function Nu() {
|
|
2633
|
+
return w.context ? w.getNextContextId() : `cl-${cc++}`;
|
|
2623
2634
|
}
|
|
2624
|
-
var
|
|
2625
|
-
function
|
|
2635
|
+
var Er = (e) => `Stale read from <${e}>.`;
|
|
2636
|
+
function Lu(e) {
|
|
2626
2637
|
const t = "fallback" in e && {
|
|
2627
2638
|
fallback: () => e.fallback
|
|
2628
2639
|
};
|
|
2629
|
-
return
|
|
2640
|
+
return Z(rc(() => e.each, e.children, t || void 0));
|
|
2630
2641
|
}
|
|
2631
|
-
function
|
|
2642
|
+
function Cu(e) {
|
|
2632
2643
|
const t = "fallback" in e && {
|
|
2633
2644
|
fallback: () => e.fallback
|
|
2634
2645
|
};
|
|
2635
|
-
return
|
|
2646
|
+
return Z(ac(() => e.each, e.children, t || void 0));
|
|
2636
2647
|
}
|
|
2637
|
-
function
|
|
2638
|
-
const t = e.keyed, n =
|
|
2648
|
+
function Gu(e) {
|
|
2649
|
+
const t = e.keyed, n = Z(() => e.when, void 0, void 0), s = t ? n : Z(n, void 0, {
|
|
2639
2650
|
equals: (r, a) => !r == !a
|
|
2640
2651
|
});
|
|
2641
|
-
return
|
|
2652
|
+
return Z(() => {
|
|
2642
2653
|
const r = s();
|
|
2643
2654
|
if (r) {
|
|
2644
2655
|
const a = e.children;
|
|
2645
2656
|
return typeof a == "function" && a.length > 0 ? ee(() => a(t ? r : () => {
|
|
2646
|
-
if (!ee(s)) throw
|
|
2657
|
+
if (!ee(s)) throw Er("Show");
|
|
2647
2658
|
return n();
|
|
2648
2659
|
})) : a;
|
|
2649
2660
|
}
|
|
2650
2661
|
return e.fallback;
|
|
2651
2662
|
}, void 0, void 0);
|
|
2652
2663
|
}
|
|
2653
|
-
function
|
|
2654
|
-
const t =
|
|
2664
|
+
function Ou(e) {
|
|
2665
|
+
const t = cr(() => e.children), n = Z(() => {
|
|
2655
2666
|
const s = t(), r = Array.isArray(s) ? s : [s];
|
|
2656
2667
|
let a = () => {
|
|
2657
2668
|
};
|
|
2658
2669
|
for (let i = 0; i < r.length; i++) {
|
|
2659
|
-
const o = i,
|
|
2670
|
+
const o = i, l = r[i], d = a, u = Z(() => d() ? void 0 : l.when, void 0, void 0), f = l.keyed ? u : Z(u, void 0, {
|
|
2660
2671
|
equals: (g, h) => !g == !h
|
|
2661
2672
|
});
|
|
2662
|
-
a = () => d() || (f() ? [o, u,
|
|
2673
|
+
a = () => d() || (f() ? [o, u, l] : void 0);
|
|
2663
2674
|
}
|
|
2664
2675
|
return a;
|
|
2665
2676
|
});
|
|
2666
|
-
return
|
|
2677
|
+
return Z(() => {
|
|
2667
2678
|
const s = n()();
|
|
2668
2679
|
if (!s) return e.fallback;
|
|
2669
2680
|
const [r, a, i] = s, o = i.children;
|
|
2670
2681
|
return typeof o == "function" && o.length > 0 ? ee(() => o(i.keyed ? a() : () => {
|
|
2671
2682
|
var d;
|
|
2672
|
-
if (((d = ee(n)()) == null ? void 0 : d[0]) !== r) throw
|
|
2683
|
+
if (((d = ee(n)()) == null ? void 0 : d[0]) !== r) throw Er("Match");
|
|
2673
2684
|
return a();
|
|
2674
2685
|
})) : o;
|
|
2675
2686
|
}, void 0, void 0);
|
|
2676
2687
|
}
|
|
2677
|
-
function
|
|
2688
|
+
function xu(e) {
|
|
2678
2689
|
return e;
|
|
2679
2690
|
}
|
|
2680
|
-
var
|
|
2691
|
+
var lc = ["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"], uc = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...lc]), dc = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), fc = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2681
2692
|
className: "class",
|
|
2682
2693
|
htmlFor: "for"
|
|
2683
|
-
}),
|
|
2694
|
+
}), hc = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2684
2695
|
class: "className",
|
|
2685
2696
|
novalidate: {
|
|
2686
2697
|
$: "noValidate",
|
|
@@ -2709,11 +2720,11 @@ var cc = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
|
|
|
2709
2720
|
TEXTAREA: 1
|
|
2710
2721
|
}
|
|
2711
2722
|
});
|
|
2712
|
-
function
|
|
2713
|
-
const n =
|
|
2723
|
+
function gc(e, t) {
|
|
2724
|
+
const n = hc[e];
|
|
2714
2725
|
return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
|
|
2715
2726
|
}
|
|
2716
|
-
var
|
|
2727
|
+
var mc = /* @__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"]), Ec = /* @__PURE__ */ new Set([
|
|
2717
2728
|
"altGlyph",
|
|
2718
2729
|
"altGlyphDef",
|
|
2719
2730
|
"altGlyphItem",
|
|
@@ -2791,12 +2802,12 @@ var gc = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
|
2791
2802
|
"use",
|
|
2792
2803
|
"view",
|
|
2793
2804
|
"vkern"
|
|
2794
|
-
]),
|
|
2805
|
+
]), pc = {
|
|
2795
2806
|
xlink: "http://www.w3.org/1999/xlink",
|
|
2796
2807
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
2797
|
-
},
|
|
2798
|
-
function
|
|
2799
|
-
let s = n.length, r = t.length, a = s, i = 0, o = 0,
|
|
2808
|
+
}, Ru = (e) => Z(() => e());
|
|
2809
|
+
function yc(e, t, n) {
|
|
2810
|
+
let s = n.length, r = t.length, a = s, i = 0, o = 0, l = t[r - 1].nextSibling, d = null;
|
|
2800
2811
|
for (; i < r || o < a; ) {
|
|
2801
2812
|
if (t[i] === n[o]) {
|
|
2802
2813
|
i++, o++;
|
|
@@ -2805,7 +2816,7 @@ function pc(e, t, n) {
|
|
|
2805
2816
|
for (; t[r - 1] === n[a - 1]; )
|
|
2806
2817
|
r--, a--;
|
|
2807
2818
|
if (r === i) {
|
|
2808
|
-
const u = a < s ? o ? n[o - 1].nextSibling : n[a - o] :
|
|
2819
|
+
const u = a < s ? o ? n[o - 1].nextSibling : n[a - o] : l;
|
|
2809
2820
|
for (; o < a; ) e.insertBefore(n[o++], u);
|
|
2810
2821
|
} else if (a === o)
|
|
2811
2822
|
for (; i < r; )
|
|
@@ -2834,8 +2845,8 @@ function pc(e, t, n) {
|
|
|
2834
2845
|
}
|
|
2835
2846
|
}
|
|
2836
2847
|
}
|
|
2837
|
-
var
|
|
2838
|
-
function
|
|
2848
|
+
var ht = "_$DX_DELEGATE";
|
|
2849
|
+
function pr(e, t, n, s = {}) {
|
|
2839
2850
|
let r;
|
|
2840
2851
|
return De((a) => {
|
|
2841
2852
|
r = a, t === document ? e() : vn(t, e(), t.firstChild ? null : void 0, n);
|
|
@@ -2843,7 +2854,7 @@ function Er(e, t, n, s = {}) {
|
|
|
2843
2854
|
r(), t.textContent = "";
|
|
2844
2855
|
};
|
|
2845
2856
|
}
|
|
2846
|
-
function
|
|
2857
|
+
function ku(e, t, n, s) {
|
|
2847
2858
|
let r;
|
|
2848
2859
|
const a = () => {
|
|
2849
2860
|
const o = document.createElement("template");
|
|
@@ -2851,32 +2862,32 @@ function Ru(e, t, n, s) {
|
|
|
2851
2862
|
}, i = () => (r || (r = a())).cloneNode(!0);
|
|
2852
2863
|
return i.cloneNode = i, i;
|
|
2853
2864
|
}
|
|
2854
|
-
function
|
|
2855
|
-
const n = t[
|
|
2865
|
+
function Ac(e, t = window.document) {
|
|
2866
|
+
const n = t[ht] || (t[ht] = /* @__PURE__ */ new Set());
|
|
2856
2867
|
for (let s = 0, r = e.length; s < r; s++) {
|
|
2857
2868
|
const a = e[s];
|
|
2858
|
-
n.has(a) || (n.add(a), t.addEventListener(a,
|
|
2869
|
+
n.has(a) || (n.add(a), t.addEventListener(a, yr));
|
|
2859
2870
|
}
|
|
2860
2871
|
}
|
|
2861
|
-
function
|
|
2862
|
-
if (e[
|
|
2863
|
-
for (let t of e[
|
|
2864
|
-
delete e[
|
|
2872
|
+
function Du(e = window.document) {
|
|
2873
|
+
if (e[ht]) {
|
|
2874
|
+
for (let t of e[ht].keys()) e.removeEventListener(t, yr);
|
|
2875
|
+
delete e[ht];
|
|
2865
2876
|
}
|
|
2866
2877
|
}
|
|
2867
2878
|
function wn(e, t, n) {
|
|
2868
2879
|
Ke(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
2869
2880
|
}
|
|
2870
|
-
function
|
|
2881
|
+
function Tc(e, t, n, s) {
|
|
2871
2882
|
Ke(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
|
|
2872
2883
|
}
|
|
2873
|
-
function
|
|
2884
|
+
function Sc(e, t, n) {
|
|
2874
2885
|
Ke(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
|
|
2875
2886
|
}
|
|
2876
|
-
function
|
|
2887
|
+
function _c(e, t) {
|
|
2877
2888
|
Ke(e) || (t == null ? e.removeAttribute("class") : e.className = t);
|
|
2878
2889
|
}
|
|
2879
|
-
function
|
|
2890
|
+
function Pc(e, t, n, s) {
|
|
2880
2891
|
if (s)
|
|
2881
2892
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
2882
2893
|
else if (Array.isArray(n)) {
|
|
@@ -2884,20 +2895,20 @@ function _c(e, t, n, s) {
|
|
|
2884
2895
|
e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
|
|
2885
2896
|
} else e.addEventListener(t, n, typeof n != "function" && n);
|
|
2886
2897
|
}
|
|
2887
|
-
function
|
|
2898
|
+
function wc(e, t, n = {}) {
|
|
2888
2899
|
const s = Object.keys(t || {}), r = Object.keys(n);
|
|
2889
2900
|
let a, i;
|
|
2890
2901
|
for (a = 0, i = r.length; a < i; a++) {
|
|
2891
2902
|
const o = r[a];
|
|
2892
|
-
!o || o === "undefined" || t[o] || (
|
|
2903
|
+
!o || o === "undefined" || t[o] || (hs(e, o, !1), delete n[o]);
|
|
2893
2904
|
}
|
|
2894
2905
|
for (a = 0, i = s.length; a < i; a++) {
|
|
2895
|
-
const o = s[a],
|
|
2896
|
-
!o || o === "undefined" || n[o] ===
|
|
2906
|
+
const o = s[a], l = !!t[o];
|
|
2907
|
+
!o || o === "undefined" || n[o] === l || !l || (hs(e, o, !0), n[o] = l);
|
|
2897
2908
|
}
|
|
2898
2909
|
return n;
|
|
2899
2910
|
}
|
|
2900
|
-
function
|
|
2911
|
+
function vc(e, t, n) {
|
|
2901
2912
|
if (!t) return n ? wn(e, "style") : t;
|
|
2902
2913
|
const s = e.style;
|
|
2903
2914
|
if (typeof t == "string") return s.cssText = t;
|
|
@@ -2909,49 +2920,49 @@ function wc(e, t, n) {
|
|
|
2909
2920
|
r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
|
|
2910
2921
|
return n;
|
|
2911
2922
|
}
|
|
2912
|
-
function
|
|
2923
|
+
function bc(e, t = {}, n, s) {
|
|
2913
2924
|
const r = {};
|
|
2914
|
-
return s || Ue(() => r.children = pt(e, t.children, r.children)), Ue(() => typeof t.ref == "function" &&
|
|
2925
|
+
return s || Ue(() => r.children = pt(e, t.children, r.children)), Ue(() => typeof t.ref == "function" && Ic(t.ref, e)), Ue(() => Nc(e, t, n, !0, r, !0)), r;
|
|
2915
2926
|
}
|
|
2916
|
-
function
|
|
2927
|
+
function Ic(e, t, n) {
|
|
2917
2928
|
return ee(() => e(t, n));
|
|
2918
2929
|
}
|
|
2919
2930
|
function vn(e, t, n, s) {
|
|
2920
2931
|
if (n !== void 0 && !s && (s = []), typeof t != "function") return pt(e, t, s, n);
|
|
2921
2932
|
Ue((r) => pt(e, t(), r, n), s);
|
|
2922
2933
|
}
|
|
2923
|
-
function
|
|
2934
|
+
function Nc(e, t, n, s, r = {}, a = !1) {
|
|
2924
2935
|
t || (t = {});
|
|
2925
2936
|
for (const i in r)
|
|
2926
2937
|
if (!(i in t)) {
|
|
2927
2938
|
if (i === "children") continue;
|
|
2928
|
-
r[i] =
|
|
2939
|
+
r[i] = gs(e, i, null, r[i], n, a, t);
|
|
2929
2940
|
}
|
|
2930
2941
|
for (const i in t) {
|
|
2931
2942
|
if (i === "children")
|
|
2932
2943
|
continue;
|
|
2933
2944
|
const o = t[i];
|
|
2934
|
-
r[i] =
|
|
2945
|
+
r[i] = gs(e, i, o, r[i], n, a, t);
|
|
2935
2946
|
}
|
|
2936
2947
|
}
|
|
2937
|
-
function
|
|
2948
|
+
function Lc(e) {
|
|
2938
2949
|
let t, n;
|
|
2939
|
-
return !Ke() || !(t = w.registry.get(n =
|
|
2950
|
+
return !Ke() || !(t = w.registry.get(n = Gc())) ? e() : (w.completed && w.completed.add(t), w.registry.delete(n), t);
|
|
2940
2951
|
}
|
|
2941
2952
|
function Ke(e) {
|
|
2942
2953
|
return !!w.context && !w.done && (!e || e.isConnected);
|
|
2943
2954
|
}
|
|
2944
|
-
function
|
|
2955
|
+
function Cc(e) {
|
|
2945
2956
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
2946
2957
|
}
|
|
2947
|
-
function
|
|
2958
|
+
function hs(e, t, n) {
|
|
2948
2959
|
const s = t.trim().split(/\s+/);
|
|
2949
2960
|
for (let r = 0, a = s.length; r < a; r++) e.classList.toggle(s[r], n);
|
|
2950
2961
|
}
|
|
2951
|
-
function
|
|
2952
|
-
let o,
|
|
2953
|
-
if (t === "style") return
|
|
2954
|
-
if (t === "classList") return
|
|
2962
|
+
function gs(e, t, n, s, r, a, i) {
|
|
2963
|
+
let o, l, d, u, f;
|
|
2964
|
+
if (t === "style") return vc(e, n, s);
|
|
2965
|
+
if (t === "classList") return wc(e, n, s);
|
|
2955
2966
|
if (n === s) return s;
|
|
2956
2967
|
if (t === "ref")
|
|
2957
2968
|
a || n(e);
|
|
@@ -2962,39 +2973,39 @@ function hs(e, t, n, s, r, a, i) {
|
|
|
2962
2973
|
const g = t.slice(10);
|
|
2963
2974
|
s && e.removeEventListener(g, s, !0), n && e.addEventListener(g, n, !0);
|
|
2964
2975
|
} else if (t.slice(0, 2) === "on") {
|
|
2965
|
-
const g = t.slice(2).toLowerCase(), h =
|
|
2976
|
+
const g = t.slice(2).toLowerCase(), h = mc.has(g);
|
|
2966
2977
|
if (!h && s) {
|
|
2967
2978
|
const A = Array.isArray(s) ? s[0] : s;
|
|
2968
2979
|
e.removeEventListener(g, A);
|
|
2969
2980
|
}
|
|
2970
|
-
(h || n) && (
|
|
2981
|
+
(h || n) && (Pc(e, g, n, h), h && Ac([g]));
|
|
2971
2982
|
} else if (t.slice(0, 5) === "attr:")
|
|
2972
2983
|
wn(e, t.slice(5), n);
|
|
2973
2984
|
else if (t.slice(0, 5) === "bool:")
|
|
2974
|
-
|
|
2975
|
-
else if ((f = t.slice(0, 5) === "prop:") || (d =
|
|
2985
|
+
Sc(e, t.slice(5), n);
|
|
2986
|
+
else if ((f = t.slice(0, 5) === "prop:") || (d = dc.has(t)) || !r && ((u = gc(t, e.tagName)) || (l = uc.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
|
|
2976
2987
|
if (f)
|
|
2977
|
-
t = t.slice(5),
|
|
2988
|
+
t = t.slice(5), l = !0;
|
|
2978
2989
|
else if (Ke(e)) return n;
|
|
2979
|
-
t === "class" || t === "className" ?
|
|
2990
|
+
t === "class" || t === "className" ? _c(e, n) : o && !l && !d ? e[Cc(t)] = n : e[u || t] = n;
|
|
2980
2991
|
} else {
|
|
2981
|
-
const g = r && t.indexOf(":") > -1 &&
|
|
2982
|
-
g ?
|
|
2992
|
+
const g = r && t.indexOf(":") > -1 && pc[t.split(":")[0]];
|
|
2993
|
+
g ? Tc(e, g, t, n) : wn(e, fc[t] || t, n);
|
|
2983
2994
|
}
|
|
2984
2995
|
return n;
|
|
2985
2996
|
}
|
|
2986
|
-
function
|
|
2987
|
-
if (w.registry && w.events && w.events.find(([
|
|
2997
|
+
function yr(e) {
|
|
2998
|
+
if (w.registry && w.events && w.events.find(([l, d]) => d === e))
|
|
2988
2999
|
return;
|
|
2989
3000
|
let t = e.target;
|
|
2990
|
-
const n = `$$${e.type}`, s = e.target, r = e.currentTarget, a = (
|
|
3001
|
+
const n = `$$${e.type}`, s = e.target, r = e.currentTarget, a = (l) => Object.defineProperty(e, "target", {
|
|
2991
3002
|
configurable: !0,
|
|
2992
|
-
value:
|
|
3003
|
+
value: l
|
|
2993
3004
|
}), i = () => {
|
|
2994
|
-
const
|
|
2995
|
-
if (
|
|
3005
|
+
const l = t[n];
|
|
3006
|
+
if (l && !t.disabled) {
|
|
2996
3007
|
const d = t[`${n}Data`];
|
|
2997
|
-
if (d !== void 0 ?
|
|
3008
|
+
if (d !== void 0 ? l.call(t, d, e) : l.call(t, e), e.cancelBubble) return;
|
|
2998
3009
|
}
|
|
2999
3010
|
return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && a(t.host), !0;
|
|
3000
3011
|
}, o = () => {
|
|
@@ -3006,9 +3017,9 @@ function pr(e) {
|
|
|
3006
3017
|
return t || document;
|
|
3007
3018
|
}
|
|
3008
3019
|
}), w.registry && !w.done && (w.done = _$HY.done = !0), e.composedPath) {
|
|
3009
|
-
const
|
|
3010
|
-
a(
|
|
3011
|
-
for (let d = 0; d <
|
|
3020
|
+
const l = e.composedPath();
|
|
3021
|
+
a(l[0]);
|
|
3022
|
+
for (let d = 0; d < l.length - 2 && (t = l[d], !!i()); d++) {
|
|
3012
3023
|
if (t._$host) {
|
|
3013
3024
|
t = t._$host, o();
|
|
3014
3025
|
break;
|
|
@@ -3023,12 +3034,12 @@ function pt(e, t, n, s, r) {
|
|
|
3023
3034
|
const a = Ke(e);
|
|
3024
3035
|
if (a) {
|
|
3025
3036
|
!n && (n = [...e.childNodes]);
|
|
3026
|
-
let
|
|
3037
|
+
let l = [];
|
|
3027
3038
|
for (let d = 0; d < n.length; d++) {
|
|
3028
3039
|
const u = n[d];
|
|
3029
|
-
u.nodeType === 8 && u.data.slice(0, 2) === "!$" ? u.remove() :
|
|
3040
|
+
u.nodeType === 8 && u.data.slice(0, 2) === "!$" ? u.remove() : l.push(u);
|
|
3030
3041
|
}
|
|
3031
|
-
n =
|
|
3042
|
+
n = l;
|
|
3032
3043
|
}
|
|
3033
3044
|
for (; typeof n == "function"; ) n = n();
|
|
3034
3045
|
if (t === n) return n;
|
|
@@ -3037,8 +3048,8 @@ function pt(e, t, n, s, r) {
|
|
|
3037
3048
|
if (a || i === "number" && (t = t.toString(), t === n))
|
|
3038
3049
|
return n;
|
|
3039
3050
|
if (o) {
|
|
3040
|
-
let
|
|
3041
|
-
|
|
3051
|
+
let l = n[0];
|
|
3052
|
+
l && l.nodeType === 3 ? l.data !== t && (l.data = t) : l = document.createTextNode(t), n = He(e, n, s, l);
|
|
3042
3053
|
} else
|
|
3043
3054
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
3044
3055
|
} else if (t == null || i === "boolean") {
|
|
@@ -3047,27 +3058,27 @@ function pt(e, t, n, s, r) {
|
|
|
3047
3058
|
} else {
|
|
3048
3059
|
if (i === "function")
|
|
3049
3060
|
return Ue(() => {
|
|
3050
|
-
let
|
|
3051
|
-
for (; typeof
|
|
3052
|
-
n = pt(e,
|
|
3061
|
+
let l = t();
|
|
3062
|
+
for (; typeof l == "function"; ) l = l();
|
|
3063
|
+
n = pt(e, l, n, s);
|
|
3053
3064
|
}), () => n;
|
|
3054
3065
|
if (Array.isArray(t)) {
|
|
3055
|
-
const
|
|
3056
|
-
if (bn(
|
|
3057
|
-
return Ue(() => n = pt(e,
|
|
3066
|
+
const l = [], d = n && Array.isArray(n);
|
|
3067
|
+
if (bn(l, t, n, r))
|
|
3068
|
+
return Ue(() => n = pt(e, l, n, s, !0)), () => n;
|
|
3058
3069
|
if (a) {
|
|
3059
|
-
if (!
|
|
3070
|
+
if (!l.length) return n;
|
|
3060
3071
|
if (s === void 0) return n = [...e.childNodes];
|
|
3061
|
-
let u =
|
|
3072
|
+
let u = l[0];
|
|
3062
3073
|
if (u.parentNode !== e) return n;
|
|
3063
3074
|
const f = [u];
|
|
3064
3075
|
for (; (u = u.nextSibling) !== s; ) f.push(u);
|
|
3065
3076
|
return n = f;
|
|
3066
3077
|
}
|
|
3067
|
-
if (
|
|
3078
|
+
if (l.length === 0) {
|
|
3068
3079
|
if (n = He(e, n, s), o) return n;
|
|
3069
|
-
} else d ? n.length === 0 ?
|
|
3070
|
-
n =
|
|
3080
|
+
} else d ? n.length === 0 ? ms(e, l, s) : yc(e, n, l) : (n && He(e), ms(e, l));
|
|
3081
|
+
n = l;
|
|
3071
3082
|
} else if (t.nodeType) {
|
|
3072
3083
|
if (a && t.parentNode) return n = o ? [t] : t;
|
|
3073
3084
|
if (Array.isArray(n)) {
|
|
@@ -3082,25 +3093,25 @@ function pt(e, t, n, s, r) {
|
|
|
3082
3093
|
function bn(e, t, n, s) {
|
|
3083
3094
|
let r = !1;
|
|
3084
3095
|
for (let a = 0, i = t.length; a < i; a++) {
|
|
3085
|
-
let o = t[a],
|
|
3096
|
+
let o = t[a], l = n && n[e.length], d;
|
|
3086
3097
|
if (!(o == null || o === !0 || o === !1)) if ((d = typeof o) == "object" && o.nodeType)
|
|
3087
3098
|
e.push(o);
|
|
3088
3099
|
else if (Array.isArray(o))
|
|
3089
|
-
r = bn(e, o,
|
|
3100
|
+
r = bn(e, o, l) || r;
|
|
3090
3101
|
else if (d === "function")
|
|
3091
3102
|
if (s) {
|
|
3092
3103
|
for (; typeof o == "function"; ) o = o();
|
|
3093
|
-
r = bn(e, Array.isArray(o) ? o : [o], Array.isArray(
|
|
3104
|
+
r = bn(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
|
|
3094
3105
|
} else
|
|
3095
3106
|
e.push(o), r = !0;
|
|
3096
3107
|
else {
|
|
3097
3108
|
const u = String(o);
|
|
3098
|
-
|
|
3109
|
+
l && l.nodeType === 3 && l.data === u ? e.push(l) : e.push(document.createTextNode(u));
|
|
3099
3110
|
}
|
|
3100
3111
|
}
|
|
3101
3112
|
return r;
|
|
3102
3113
|
}
|
|
3103
|
-
function
|
|
3114
|
+
function ms(e, t, n = null) {
|
|
3104
3115
|
for (let s = 0, r = t.length; s < r; s++) e.insertBefore(t[s], n);
|
|
3105
3116
|
}
|
|
3106
3117
|
function He(e, t, n, s) {
|
|
@@ -3111,64 +3122,64 @@ function He(e, t, n, s) {
|
|
|
3111
3122
|
for (let i = t.length - 1; i >= 0; i--) {
|
|
3112
3123
|
const o = t[i];
|
|
3113
3124
|
if (r !== o) {
|
|
3114
|
-
const
|
|
3115
|
-
!a && !i ?
|
|
3125
|
+
const l = o.parentNode === e;
|
|
3126
|
+
!a && !i ? l ? e.replaceChild(r, o) : e.insertBefore(r, n) : l && o.remove();
|
|
3116
3127
|
} else a = !0;
|
|
3117
3128
|
}
|
|
3118
3129
|
} else e.insertBefore(r, n);
|
|
3119
3130
|
return [r];
|
|
3120
3131
|
}
|
|
3121
|
-
function
|
|
3132
|
+
function Gc() {
|
|
3122
3133
|
return w.getNextContextId();
|
|
3123
3134
|
}
|
|
3124
|
-
var
|
|
3125
|
-
function
|
|
3126
|
-
return t ? document.createElementNS(
|
|
3135
|
+
var Oc = "http://www.w3.org/2000/svg";
|
|
3136
|
+
function Ar(e, t = !1) {
|
|
3137
|
+
return t ? document.createElementNS(Oc, e) : document.createElement(e);
|
|
3127
3138
|
}
|
|
3128
|
-
function
|
|
3139
|
+
function Uu(e) {
|
|
3129
3140
|
const {
|
|
3130
3141
|
useShadow: t
|
|
3131
|
-
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r =
|
|
3142
|
+
} = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = fs();
|
|
3132
3143
|
let a, i = !!w.context;
|
|
3133
|
-
return
|
|
3134
|
-
i && (
|
|
3144
|
+
return ir(() => {
|
|
3145
|
+
i && (fs().user = i = !1), a || (a = or(r, () => Z(() => e.children)));
|
|
3135
3146
|
const o = s();
|
|
3136
3147
|
if (o instanceof HTMLHeadElement) {
|
|
3137
|
-
const [
|
|
3138
|
-
De((f) => vn(o, () =>
|
|
3148
|
+
const [l, d] = K(!1), u = () => d(!0);
|
|
3149
|
+
De((f) => vn(o, () => l() ? f() : a(), null)), mt(u);
|
|
3139
3150
|
} else {
|
|
3140
|
-
const
|
|
3151
|
+
const l = Ar(e.isSVG ? "g" : "div", e.isSVG), d = t && l.attachShadow ? l.attachShadow({
|
|
3141
3152
|
mode: "open"
|
|
3142
|
-
}) :
|
|
3143
|
-
Object.defineProperty(
|
|
3153
|
+
}) : l;
|
|
3154
|
+
Object.defineProperty(l, "_$host", {
|
|
3144
3155
|
get() {
|
|
3145
3156
|
return n.parentNode;
|
|
3146
3157
|
},
|
|
3147
3158
|
configurable: !0
|
|
3148
|
-
}), vn(d, a), o.appendChild(
|
|
3159
|
+
}), vn(d, a), o.appendChild(l), e.ref && e.ref(l), mt(() => o.removeChild(l));
|
|
3149
3160
|
}
|
|
3150
3161
|
}, void 0, {
|
|
3151
3162
|
render: !i
|
|
3152
3163
|
}), n;
|
|
3153
3164
|
}
|
|
3154
|
-
function
|
|
3155
|
-
const n =
|
|
3156
|
-
return
|
|
3165
|
+
function xc(e, t) {
|
|
3166
|
+
const n = Z(e);
|
|
3167
|
+
return Z(() => {
|
|
3157
3168
|
const s = n();
|
|
3158
3169
|
switch (typeof s) {
|
|
3159
3170
|
case "function":
|
|
3160
3171
|
return ee(() => s(t));
|
|
3161
3172
|
case "string":
|
|
3162
|
-
const r =
|
|
3163
|
-
return
|
|
3173
|
+
const r = Ec.has(s), a = w.context ? Lc() : Ar(s, r);
|
|
3174
|
+
return bc(a, t, r), a;
|
|
3164
3175
|
}
|
|
3165
3176
|
});
|
|
3166
3177
|
}
|
|
3167
|
-
function
|
|
3168
|
-
const [, t] =
|
|
3169
|
-
return
|
|
3178
|
+
function Mu(e) {
|
|
3179
|
+
const [, t] = oc(e, ["component"]);
|
|
3180
|
+
return xc(() => e.component, t);
|
|
3170
3181
|
}
|
|
3171
|
-
var
|
|
3182
|
+
var Rc = class {
|
|
3172
3183
|
constructor() {
|
|
3173
3184
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
3174
3185
|
}
|
|
@@ -3184,9 +3195,9 @@ var xc = class {
|
|
|
3184
3195
|
clear() {
|
|
3185
3196
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
3186
3197
|
}
|
|
3187
|
-
},
|
|
3198
|
+
}, Tr = class {
|
|
3188
3199
|
constructor(e) {
|
|
3189
|
-
this.generateIdentifier = e, this.kv = new
|
|
3200
|
+
this.generateIdentifier = e, this.kv = new Rc();
|
|
3190
3201
|
}
|
|
3191
3202
|
register(e, t) {
|
|
3192
3203
|
this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
|
|
@@ -3200,7 +3211,7 @@ var xc = class {
|
|
|
3200
3211
|
getValue(e) {
|
|
3201
3212
|
return this.kv.getByKey(e);
|
|
3202
3213
|
}
|
|
3203
|
-
},
|
|
3214
|
+
}, kc = class extends Tr {
|
|
3204
3215
|
constructor() {
|
|
3205
3216
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
3206
3217
|
}
|
|
@@ -3211,7 +3222,7 @@ var xc = class {
|
|
|
3211
3222
|
return this.classToAllowedProps.get(e);
|
|
3212
3223
|
}
|
|
3213
3224
|
};
|
|
3214
|
-
function
|
|
3225
|
+
function Dc(e) {
|
|
3215
3226
|
if ("values" in Object)
|
|
3216
3227
|
return Object.values(e);
|
|
3217
3228
|
const t = [];
|
|
@@ -3219,8 +3230,8 @@ function kc(e) {
|
|
|
3219
3230
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
3220
3231
|
return t;
|
|
3221
3232
|
}
|
|
3222
|
-
function
|
|
3223
|
-
const n =
|
|
3233
|
+
function Uc(e, t) {
|
|
3234
|
+
const n = Dc(e);
|
|
3224
3235
|
if ("find" in n)
|
|
3225
3236
|
return n.find(t);
|
|
3226
3237
|
const s = n;
|
|
@@ -3230,20 +3241,20 @@ function Dc(e, t) {
|
|
|
3230
3241
|
return a;
|
|
3231
3242
|
}
|
|
3232
3243
|
}
|
|
3233
|
-
function
|
|
3244
|
+
function lt(e, t) {
|
|
3234
3245
|
Object.entries(e).forEach(([n, s]) => t(s, n));
|
|
3235
3246
|
}
|
|
3236
3247
|
function $t(e, t) {
|
|
3237
3248
|
return e.indexOf(t) !== -1;
|
|
3238
3249
|
}
|
|
3239
|
-
function
|
|
3250
|
+
function Es(e, t) {
|
|
3240
3251
|
for (let n = 0; n < e.length; n++) {
|
|
3241
3252
|
const s = e[n];
|
|
3242
3253
|
if (t(s))
|
|
3243
3254
|
return s;
|
|
3244
3255
|
}
|
|
3245
3256
|
}
|
|
3246
|
-
var
|
|
3257
|
+
var Mc = class {
|
|
3247
3258
|
constructor() {
|
|
3248
3259
|
this.transfomers = {};
|
|
3249
3260
|
}
|
|
@@ -3251,12 +3262,12 @@ var Uc = class {
|
|
|
3251
3262
|
this.transfomers[e.name] = e;
|
|
3252
3263
|
}
|
|
3253
3264
|
findApplicable(e) {
|
|
3254
|
-
return
|
|
3265
|
+
return Uc(this.transfomers, (t) => t.isApplicable(e));
|
|
3255
3266
|
}
|
|
3256
3267
|
findByName(e) {
|
|
3257
3268
|
return this.transfomers[e];
|
|
3258
3269
|
}
|
|
3259
|
-
},
|
|
3270
|
+
}, Bc = (e) => Object.prototype.toString.call(e).slice(8, -1), Sr = (e) => typeof e > "u", Fc = (e) => e === null, yt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, In = (e) => yt(e) && Object.keys(e).length === 0, Le = (e) => Array.isArray(e), Kc = (e) => typeof e == "string", Vc = (e) => typeof e == "number" && !isNaN(e), Hc = (e) => typeof e == "boolean", qc = (e) => e instanceof RegExp, At = (e) => e instanceof Map, Tt = (e) => e instanceof Set, _r = (e) => Bc(e) === "Symbol", $c = (e) => e instanceof Date && !isNaN(e.valueOf()), Qc = (e) => e instanceof Error, ps = (e) => typeof e == "number" && isNaN(e), zc = (e) => Hc(e) || Fc(e) || Sr(e) || Vc(e) || Kc(e) || _r(e), Wc = (e) => typeof e == "bigint", jc = (e) => e === 1 / 0 || e === -1 / 0, Yc = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Jc = (e) => e instanceof URL, Pr = (e) => e.replace(/\./g, "\\."), An = (e) => e.map(String).map(Pr).join("."), gt = (e) => {
|
|
3260
3271
|
const t = [];
|
|
3261
3272
|
let n = "";
|
|
3262
3273
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3282,12 +3293,12 @@ function Ee(e, t, n, s) {
|
|
|
3282
3293
|
untransform: s
|
|
3283
3294
|
};
|
|
3284
3295
|
}
|
|
3285
|
-
var
|
|
3286
|
-
Ee(
|
|
3296
|
+
var wr = [
|
|
3297
|
+
Ee(Sr, "undefined", () => null, () => {
|
|
3287
3298
|
}),
|
|
3288
|
-
Ee(
|
|
3289
|
-
Ee(
|
|
3290
|
-
Ee(
|
|
3299
|
+
Ee(Wc, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
|
|
3300
|
+
Ee($c, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
3301
|
+
Ee(Qc, "Error", (e, t) => {
|
|
3291
3302
|
const n = {
|
|
3292
3303
|
name: e.name,
|
|
3293
3304
|
message: e.message
|
|
@@ -3301,7 +3312,7 @@ var Pr = [
|
|
|
3301
3312
|
n[s] = e[s];
|
|
3302
3313
|
}), n;
|
|
3303
3314
|
}),
|
|
3304
|
-
Ee(
|
|
3315
|
+
Ee(qc, "regexp", (e) => "" + e, (e) => {
|
|
3305
3316
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
3306
3317
|
return new RegExp(t, n);
|
|
3307
3318
|
}),
|
|
@@ -3314,9 +3325,9 @@ var Pr = [
|
|
|
3314
3325
|
(e) => new Set(e)
|
|
3315
3326
|
),
|
|
3316
3327
|
Ee(At, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
3317
|
-
Ee((e) =>
|
|
3328
|
+
Ee((e) => ps(e) || jc(e), "number", (e) => ps(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
3318
3329
|
Ee((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
3319
|
-
Ee(
|
|
3330
|
+
Ee(Jc, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
3320
3331
|
];
|
|
3321
3332
|
function ln(e, t, n, s) {
|
|
3322
3333
|
return {
|
|
@@ -3326,12 +3337,12 @@ function ln(e, t, n, s) {
|
|
|
3326
3337
|
untransform: s
|
|
3327
3338
|
};
|
|
3328
3339
|
}
|
|
3329
|
-
var
|
|
3340
|
+
var vr = ln((e, t) => _r(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
3330
3341
|
const s = n.symbolRegistry.getValue(t[1]);
|
|
3331
3342
|
if (!s)
|
|
3332
3343
|
throw new Error("Trying to deserialize unknown symbol");
|
|
3333
3344
|
return s;
|
|
3334
|
-
}),
|
|
3345
|
+
}), Zc = [
|
|
3335
3346
|
Int8Array,
|
|
3336
3347
|
Uint8Array,
|
|
3337
3348
|
Int16Array,
|
|
@@ -3341,16 +3352,16 @@ var wr = ln((e, t) => Sr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
3341
3352
|
Float32Array,
|
|
3342
3353
|
Float64Array,
|
|
3343
3354
|
Uint8ClampedArray
|
|
3344
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
3345
|
-
const n =
|
|
3355
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), br = ln(Yc, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
3356
|
+
const n = Zc[t[1]];
|
|
3346
3357
|
if (!n)
|
|
3347
3358
|
throw new Error("Trying to deserialize unknown typed array");
|
|
3348
3359
|
return new n(e);
|
|
3349
3360
|
});
|
|
3350
|
-
function
|
|
3361
|
+
function Ir(e, t) {
|
|
3351
3362
|
return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
3352
3363
|
}
|
|
3353
|
-
var
|
|
3364
|
+
var Nr = ln(Ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
3354
3365
|
const n = t.classRegistry.getAllowedProps(e.constructor);
|
|
3355
3366
|
if (!n)
|
|
3356
3367
|
return { ...e };
|
|
@@ -3363,44 +3374,44 @@ var Ir = ln(br, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3363
3374
|
if (!s)
|
|
3364
3375
|
throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
3365
3376
|
return Object.assign(Object.create(s.prototype), e);
|
|
3366
|
-
}),
|
|
3377
|
+
}), Lr = ln((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) => {
|
|
3367
3378
|
const s = n.customTransformerRegistry.findByName(t[1]);
|
|
3368
3379
|
if (!s)
|
|
3369
3380
|
throw new Error("Trying to deserialize unknown custom value");
|
|
3370
3381
|
return s.deserialize(e);
|
|
3371
|
-
}),
|
|
3372
|
-
const n =
|
|
3382
|
+
}), Xc = [Nr, vr, Lr, br], ys = (e, t) => {
|
|
3383
|
+
const n = Es(Xc, (r) => r.isApplicable(e, t));
|
|
3373
3384
|
if (n)
|
|
3374
3385
|
return {
|
|
3375
3386
|
value: n.transform(e, t),
|
|
3376
3387
|
type: n.annotation(e, t)
|
|
3377
3388
|
};
|
|
3378
|
-
const s =
|
|
3389
|
+
const s = Es(wr, (r) => r.isApplicable(e, t));
|
|
3379
3390
|
if (s)
|
|
3380
3391
|
return {
|
|
3381
3392
|
value: s.transform(e, t),
|
|
3382
3393
|
type: s.annotation
|
|
3383
3394
|
};
|
|
3384
|
-
},
|
|
3385
|
-
|
|
3386
|
-
|
|
3395
|
+
}, Cr = {};
|
|
3396
|
+
wr.forEach((e) => {
|
|
3397
|
+
Cr[e.annotation] = e;
|
|
3387
3398
|
});
|
|
3388
|
-
var
|
|
3399
|
+
var el = (e, t, n) => {
|
|
3389
3400
|
if (Le(t))
|
|
3390
3401
|
switch (t[0]) {
|
|
3391
3402
|
case "symbol":
|
|
3392
|
-
return
|
|
3403
|
+
return vr.untransform(e, t, n);
|
|
3393
3404
|
case "class":
|
|
3394
|
-
return Ir.untransform(e, t, n);
|
|
3395
|
-
case "custom":
|
|
3396
3405
|
return Nr.untransform(e, t, n);
|
|
3406
|
+
case "custom":
|
|
3407
|
+
return Lr.untransform(e, t, n);
|
|
3397
3408
|
case "typed-array":
|
|
3398
|
-
return
|
|
3409
|
+
return br.untransform(e, t, n);
|
|
3399
3410
|
default:
|
|
3400
3411
|
throw new Error("Unknown transformation: " + t);
|
|
3401
3412
|
}
|
|
3402
3413
|
else {
|
|
3403
|
-
const s =
|
|
3414
|
+
const s = Cr[t];
|
|
3404
3415
|
if (!s)
|
|
3405
3416
|
throw new Error("Unknown transformation: " + t);
|
|
3406
3417
|
return s.untransform(e, n);
|
|
@@ -3413,7 +3424,7 @@ var Xc = (e, t, n) => {
|
|
|
3413
3424
|
n.next(), t--;
|
|
3414
3425
|
return n.next().value;
|
|
3415
3426
|
};
|
|
3416
|
-
function
|
|
3427
|
+
function Gr(e) {
|
|
3417
3428
|
if ($t(e, "__proto__"))
|
|
3418
3429
|
throw new Error("__proto__ is not allowed as a property");
|
|
3419
3430
|
if ($t(e, "prototype"))
|
|
@@ -3421,8 +3432,8 @@ function Cr(e) {
|
|
|
3421
3432
|
if ($t(e, "constructor"))
|
|
3422
3433
|
throw new Error("constructor is not allowed as a property");
|
|
3423
3434
|
}
|
|
3424
|
-
var
|
|
3425
|
-
|
|
3435
|
+
var tl = (e, t) => {
|
|
3436
|
+
Gr(t);
|
|
3426
3437
|
for (let n = 0; n < t.length; n++) {
|
|
3427
3438
|
const s = t[n];
|
|
3428
3439
|
if (Tt(e))
|
|
@@ -3442,7 +3453,7 @@ var el = (e, t) => {
|
|
|
3442
3453
|
}
|
|
3443
3454
|
return e;
|
|
3444
3455
|
}, Nn = (e, t, n) => {
|
|
3445
|
-
if (
|
|
3456
|
+
if (Gr(t), t.length === 0)
|
|
3446
3457
|
return n(e);
|
|
3447
3458
|
let s = e;
|
|
3448
3459
|
for (let a = 0; a < t.length - 1; a++) {
|
|
@@ -3458,7 +3469,7 @@ var el = (e, t) => {
|
|
|
3458
3469
|
} else if (At(s)) {
|
|
3459
3470
|
if (a === t.length - 2)
|
|
3460
3471
|
break;
|
|
3461
|
-
const
|
|
3472
|
+
const l = +i, d = +t[++a] == 0 ? "key" : "value", u = qe(s, l);
|
|
3462
3473
|
switch (d) {
|
|
3463
3474
|
case "key":
|
|
3464
3475
|
s = u;
|
|
@@ -3478,8 +3489,8 @@ var el = (e, t) => {
|
|
|
3478
3489
|
const a = +t[t.length - 2], i = qe(s, a);
|
|
3479
3490
|
switch (+r == 0 ? "key" : "value") {
|
|
3480
3491
|
case "key": {
|
|
3481
|
-
const
|
|
3482
|
-
s.set(
|
|
3492
|
+
const l = n(i);
|
|
3493
|
+
s.set(l, s.get(i)), l !== i && s.delete(i);
|
|
3483
3494
|
break;
|
|
3484
3495
|
}
|
|
3485
3496
|
case "value": {
|
|
@@ -3494,63 +3505,63 @@ function Ln(e, t, n = []) {
|
|
|
3494
3505
|
if (!e)
|
|
3495
3506
|
return;
|
|
3496
3507
|
if (!Le(e)) {
|
|
3497
|
-
|
|
3508
|
+
lt(e, (a, i) => Ln(a, t, [...n, ...gt(i)]));
|
|
3498
3509
|
return;
|
|
3499
3510
|
}
|
|
3500
3511
|
const [s, r] = e;
|
|
3501
|
-
r &&
|
|
3502
|
-
Ln(a, t, [...n, ...
|
|
3512
|
+
r && lt(r, (a, i) => {
|
|
3513
|
+
Ln(a, t, [...n, ...gt(i)]);
|
|
3503
3514
|
}), t(s, n);
|
|
3504
3515
|
}
|
|
3505
|
-
function
|
|
3516
|
+
function nl(e, t, n) {
|
|
3506
3517
|
return Ln(t, (s, r) => {
|
|
3507
|
-
e = Nn(e, r, (a) =>
|
|
3518
|
+
e = Nn(e, r, (a) => el(a, s, n));
|
|
3508
3519
|
}), e;
|
|
3509
3520
|
}
|
|
3510
|
-
function
|
|
3521
|
+
function sl(e, t) {
|
|
3511
3522
|
function n(s, r) {
|
|
3512
|
-
const a =
|
|
3513
|
-
s.map(
|
|
3523
|
+
const a = tl(e, gt(r));
|
|
3524
|
+
s.map(gt).forEach((i) => {
|
|
3514
3525
|
e = Nn(e, i, () => a);
|
|
3515
3526
|
});
|
|
3516
3527
|
}
|
|
3517
3528
|
if (Le(t)) {
|
|
3518
3529
|
const [s, r] = t;
|
|
3519
3530
|
s.forEach((a) => {
|
|
3520
|
-
e = Nn(e,
|
|
3521
|
-
}), r &&
|
|
3531
|
+
e = Nn(e, gt(a), () => e);
|
|
3532
|
+
}), r && lt(r, n);
|
|
3522
3533
|
} else
|
|
3523
|
-
|
|
3534
|
+
lt(t, n);
|
|
3524
3535
|
return e;
|
|
3525
3536
|
}
|
|
3526
|
-
var
|
|
3527
|
-
function
|
|
3537
|
+
var rl = (e, t) => yt(e) || Le(e) || At(e) || Tt(e) || Ir(e, t);
|
|
3538
|
+
function al(e, t, n) {
|
|
3528
3539
|
const s = n.get(e);
|
|
3529
3540
|
s ? s.push(t) : n.set(e, [t]);
|
|
3530
3541
|
}
|
|
3531
|
-
function
|
|
3542
|
+
function il(e, t) {
|
|
3532
3543
|
const n = {};
|
|
3533
3544
|
let s;
|
|
3534
3545
|
return e.forEach((r) => {
|
|
3535
3546
|
if (r.length <= 1)
|
|
3536
3547
|
return;
|
|
3537
|
-
t || (r = r.map((o) => o.map(String)).sort((o,
|
|
3548
|
+
t || (r = r.map((o) => o.map(String)).sort((o, l) => o.length - l.length));
|
|
3538
3549
|
const [a, ...i] = r;
|
|
3539
3550
|
a.length === 0 ? s = i.map(An) : n[An(a)] = i.map(An);
|
|
3540
3551
|
}), s ? In(n) ? [s] : [s, n] : In(n) ? void 0 : n;
|
|
3541
3552
|
}
|
|
3542
|
-
var
|
|
3543
|
-
const o =
|
|
3553
|
+
var Or = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
3554
|
+
const o = zc(e);
|
|
3544
3555
|
if (!o) {
|
|
3545
|
-
|
|
3556
|
+
al(e, r, t);
|
|
3546
3557
|
const h = i.get(e);
|
|
3547
3558
|
if (h)
|
|
3548
3559
|
return s ? {
|
|
3549
3560
|
transformedValue: null
|
|
3550
3561
|
} : h;
|
|
3551
3562
|
}
|
|
3552
|
-
if (!
|
|
3553
|
-
const h =
|
|
3563
|
+
if (!rl(e, n)) {
|
|
3564
|
+
const h = ys(e, n), A = h ? {
|
|
3554
3565
|
transformedValue: h.value,
|
|
3555
3566
|
annotations: [h.type]
|
|
3556
3567
|
} : {
|
|
@@ -3562,37 +3573,37 @@ var Gr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3562
3573
|
return {
|
|
3563
3574
|
transformedValue: null
|
|
3564
3575
|
};
|
|
3565
|
-
const
|
|
3566
|
-
|
|
3576
|
+
const l = ys(e, n), d = (l == null ? void 0 : l.value) ?? e, u = Le(d) ? [] : {}, f = {};
|
|
3577
|
+
lt(d, (h, A) => {
|
|
3567
3578
|
if (A === "__proto__" || A === "constructor" || A === "prototype")
|
|
3568
3579
|
throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3569
|
-
const y =
|
|
3570
|
-
u[A] = y.transformedValue, Le(y.annotations) ? f[A] = y.annotations : yt(y.annotations) &&
|
|
3571
|
-
f[
|
|
3580
|
+
const y = Or(h, t, n, s, [...r, A], [...a, e], i);
|
|
3581
|
+
u[A] = y.transformedValue, Le(y.annotations) ? f[A] = y.annotations : yt(y.annotations) && lt(y.annotations, (T, _) => {
|
|
3582
|
+
f[Pr(A) + "." + _] = T;
|
|
3572
3583
|
});
|
|
3573
3584
|
});
|
|
3574
3585
|
const g = In(f) ? {
|
|
3575
3586
|
transformedValue: u,
|
|
3576
|
-
annotations:
|
|
3587
|
+
annotations: l ? [l.type] : void 0
|
|
3577
3588
|
} : {
|
|
3578
3589
|
transformedValue: u,
|
|
3579
|
-
annotations:
|
|
3590
|
+
annotations: l ? [l.type, f] : f
|
|
3580
3591
|
};
|
|
3581
3592
|
return o || i.set(e, g), g;
|
|
3582
3593
|
};
|
|
3583
|
-
function
|
|
3594
|
+
function xr(e) {
|
|
3584
3595
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
3585
3596
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return
|
|
3597
|
+
function As(e) {
|
|
3598
|
+
return xr(e) === "Array";
|
|
3588
3599
|
}
|
|
3589
|
-
function
|
|
3590
|
-
if (
|
|
3600
|
+
function ol(e) {
|
|
3601
|
+
if (xr(e) !== "Object")
|
|
3591
3602
|
return !1;
|
|
3592
3603
|
const t = Object.getPrototypeOf(e);
|
|
3593
3604
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
3594
3605
|
}
|
|
3595
|
-
function
|
|
3606
|
+
function cl(e, t, n, s, r) {
|
|
3596
3607
|
const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
|
|
3597
3608
|
a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
3598
3609
|
value: n,
|
|
@@ -3602,16 +3613,16 @@ function ol(e, t, n, s, r) {
|
|
|
3602
3613
|
});
|
|
3603
3614
|
}
|
|
3604
3615
|
function Cn(e, t = {}) {
|
|
3605
|
-
if (
|
|
3616
|
+
if (As(e))
|
|
3606
3617
|
return e.map((r) => Cn(r, t));
|
|
3607
|
-
if (!
|
|
3618
|
+
if (!ol(e))
|
|
3608
3619
|
return e;
|
|
3609
3620
|
const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
|
|
3610
3621
|
return [...n, ...s].reduce((r, a) => {
|
|
3611
|
-
if (
|
|
3622
|
+
if (As(t.props) && !t.props.includes(a))
|
|
3612
3623
|
return r;
|
|
3613
3624
|
const i = e[a], o = Cn(i, t);
|
|
3614
|
-
return
|
|
3625
|
+
return cl(r, a, o, e, t.nonenumerable), r;
|
|
3615
3626
|
}, {});
|
|
3616
3627
|
}
|
|
3617
3628
|
var k = class {
|
|
@@ -3619,17 +3630,17 @@ var k = class {
|
|
|
3619
3630
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3620
3631
|
*/
|
|
3621
3632
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3622
|
-
this.classRegistry = new
|
|
3633
|
+
this.classRegistry = new kc(), this.symbolRegistry = new Tr((t) => t.description ?? ""), this.customTransformerRegistry = new Mc(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3623
3634
|
}
|
|
3624
3635
|
serialize(e) {
|
|
3625
|
-
const t = /* @__PURE__ */ new Map(), n =
|
|
3636
|
+
const t = /* @__PURE__ */ new Map(), n = Or(e, t, this, this.dedupe), s = {
|
|
3626
3637
|
json: n.transformedValue
|
|
3627
3638
|
};
|
|
3628
3639
|
n.annotations && (s.meta = {
|
|
3629
3640
|
...s.meta,
|
|
3630
3641
|
values: n.annotations
|
|
3631
3642
|
});
|
|
3632
|
-
const r =
|
|
3643
|
+
const r = il(t, this.dedupe);
|
|
3633
3644
|
return r && (s.meta = {
|
|
3634
3645
|
...s.meta,
|
|
3635
3646
|
referentialEqualities: r
|
|
@@ -3638,7 +3649,7 @@ var k = class {
|
|
|
3638
3649
|
deserialize(e) {
|
|
3639
3650
|
const { json: t, meta: n } = e;
|
|
3640
3651
|
let s = Cn(t);
|
|
3641
|
-
return n != null && n.values && (s =
|
|
3652
|
+
return n != null && n.values && (s = nl(s, n.values, this)), n != null && n.referentialEqualities && (s = sl(s, n.referentialEqualities)), s;
|
|
3642
3653
|
}
|
|
3643
3654
|
stringify(e) {
|
|
3644
3655
|
return JSON.stringify(this.serialize(e));
|
|
@@ -3671,44 +3682,44 @@ k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
|
|
|
3671
3682
|
k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
|
|
3672
3683
|
k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
|
|
3673
3684
|
k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
|
|
3674
|
-
var
|
|
3675
|
-
function
|
|
3685
|
+
var ll = k.serialize, Bu = k.stringify;
|
|
3686
|
+
function Fu(e) {
|
|
3676
3687
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
|
3677
3688
|
}
|
|
3678
|
-
function
|
|
3689
|
+
function Ku(e, t) {
|
|
3679
3690
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
|
3680
3691
|
}
|
|
3681
|
-
function
|
|
3692
|
+
function Vu({
|
|
3682
3693
|
queryState: e,
|
|
3683
3694
|
observerCount: t,
|
|
3684
3695
|
isStale: n
|
|
3685
3696
|
}) {
|
|
3686
3697
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
|
|
3687
3698
|
}
|
|
3688
|
-
function
|
|
3699
|
+
function Hu({
|
|
3689
3700
|
status: e,
|
|
3690
3701
|
isPaused: t
|
|
3691
3702
|
}) {
|
|
3692
3703
|
return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
|
|
3693
3704
|
}
|
|
3694
|
-
function
|
|
3705
|
+
function qu(e) {
|
|
3695
3706
|
return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
|
|
3696
3707
|
}
|
|
3697
|
-
var
|
|
3708
|
+
var $u = (e, t = !1) => {
|
|
3698
3709
|
const {
|
|
3699
3710
|
json: n
|
|
3700
|
-
} =
|
|
3711
|
+
} = ll(e);
|
|
3701
3712
|
return JSON.stringify(n, null, t ? 2 : void 0);
|
|
3702
|
-
}, Ft = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3,
|
|
3703
|
-
status: ul,
|
|
3704
|
-
"query hash": ll,
|
|
3705
|
-
"last updated": xr
|
|
3706
|
-
}, Kt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Rr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, dl = (e, t) => Kt(e) === Kt(t) ? Rr(e, t) : Kt(e) > Kt(t) ? 1 : -1, Qu = {
|
|
3713
|
+
}, Ft = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ul = (e, t) => e.queryHash.localeCompare(t.queryHash), Rr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, dl = (e, t) => Ft(e) === Ft(t) ? Rr(e, t) : Ft(e) > Ft(t) ? 1 : -1, Qu = {
|
|
3707
3714
|
status: dl,
|
|
3715
|
+
"query hash": ul,
|
|
3708
3716
|
"last updated": Rr
|
|
3709
|
-
},
|
|
3717
|
+
}, Kt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, kr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, fl = (e, t) => Kt(e) === Kt(t) ? kr(e, t) : Kt(e) > Kt(t) ? 1 : -1, zu = {
|
|
3718
|
+
status: fl,
|
|
3719
|
+
"last updated": kr
|
|
3720
|
+
}, Wu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), ju = () => {
|
|
3710
3721
|
const [e, t] = K("dark");
|
|
3711
|
-
return
|
|
3722
|
+
return Yo(() => {
|
|
3712
3723
|
const n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
3713
3724
|
t(n.matches ? "dark" : "light");
|
|
3714
3725
|
const s = (r) => {
|
|
@@ -3776,11 +3787,11 @@ var qu = (e, t = !1) => {
|
|
|
3776
3787
|
return n[s] = Ht(n[s], r), n;
|
|
3777
3788
|
}
|
|
3778
3789
|
return e;
|
|
3779
|
-
},
|
|
3790
|
+
}, Dr = (e, t) => {
|
|
3780
3791
|
if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
|
|
3781
3792
|
const s = document.createElement("style"), r = document.createTextNode("");
|
|
3782
3793
|
s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
|
|
3783
|
-
}, $e, St, _t, Pt, Re, wt, Qe, ze,
|
|
3794
|
+
}, $e, St, _t, Pt, Re, wt, Qe, ze, We, je, Ye, vt, Je, Ze, bt, Ps, hl = (Ps = class {
|
|
3784
3795
|
constructor(e) {
|
|
3785
3796
|
x(this, $e);
|
|
3786
3797
|
x(this, St);
|
|
@@ -3790,8 +3801,8 @@ var qu = (e, t = !1) => {
|
|
|
3790
3801
|
x(this, wt);
|
|
3791
3802
|
x(this, Qe);
|
|
3792
3803
|
x(this, ze);
|
|
3793
|
-
x(this, je);
|
|
3794
3804
|
x(this, We);
|
|
3805
|
+
x(this, je);
|
|
3795
3806
|
x(this, Ye);
|
|
3796
3807
|
x(this, vt);
|
|
3797
3808
|
x(this, Je);
|
|
@@ -3805,22 +3816,22 @@ var qu = (e, t = !1) => {
|
|
|
3805
3816
|
buttonPosition: a,
|
|
3806
3817
|
position: i,
|
|
3807
3818
|
initialIsOpen: o,
|
|
3808
|
-
errorTypes:
|
|
3819
|
+
errorTypes: l,
|
|
3809
3820
|
styleNonce: d,
|
|
3810
3821
|
shadowDOMTarget: u,
|
|
3811
3822
|
hideDisabledQueries: f,
|
|
3812
3823
|
theme: g
|
|
3813
3824
|
} = e;
|
|
3814
|
-
G(this, $e, K(t)), G(this, _t, n), G(this, Pt, s), G(this, St, r), G(this, wt, d), G(this, Qe, u), G(this, ze, K(a)), G(this,
|
|
3825
|
+
G(this, $e, K(t)), G(this, _t, n), G(this, Pt, s), G(this, St, r), G(this, wt, d), G(this, Qe, u), G(this, ze, K(a)), G(this, We, K(i)), G(this, je, K(o)), G(this, Ye, K(l)), G(this, vt, K(f)), G(this, Ze, K(g));
|
|
3815
3826
|
}
|
|
3816
3827
|
setButtonPosition(e) {
|
|
3817
3828
|
S(this, ze)[1](e);
|
|
3818
3829
|
}
|
|
3819
3830
|
setPosition(e) {
|
|
3820
|
-
S(this,
|
|
3831
|
+
S(this, We)[1](e);
|
|
3821
3832
|
}
|
|
3822
3833
|
setInitialIsOpen(e) {
|
|
3823
|
-
S(this,
|
|
3834
|
+
S(this, je)[1](e);
|
|
3824
3835
|
}
|
|
3825
3836
|
setErrorTypes(e) {
|
|
3826
3837
|
S(this, Ye)[1](e);
|
|
@@ -3834,10 +3845,10 @@ var qu = (e, t = !1) => {
|
|
|
3834
3845
|
mount(e) {
|
|
3835
3846
|
if (S(this, Re))
|
|
3836
3847
|
throw new Error("Devtools is already mounted");
|
|
3837
|
-
const t =
|
|
3838
|
-
const n = this, [s] = S(this, ze), [r] = S(this,
|
|
3848
|
+
const t = pr(() => {
|
|
3849
|
+
const n = this, [s] = S(this, ze), [r] = S(this, We), [a] = S(this, je), [i] = S(this, Ye), [o] = S(this, vt), [l] = S(this, $e), [d] = S(this, Ze);
|
|
3839
3850
|
let u;
|
|
3840
|
-
return S(this, Je) ? u = S(this, Je) : (u =
|
|
3851
|
+
return S(this, Je) ? u = S(this, Je) : (u = mr(() => import("./WDYDFRGG-B4H3RPcp.js")), G(this, Je, u)), Dr(S(this, wt), S(this, Qe)), hr(u, gr({
|
|
3841
3852
|
get queryFlavor() {
|
|
3842
3853
|
return S(n, _t);
|
|
3843
3854
|
},
|
|
@@ -3852,7 +3863,7 @@ var qu = (e, t = !1) => {
|
|
|
3852
3863
|
}
|
|
3853
3864
|
}, {
|
|
3854
3865
|
get client() {
|
|
3855
|
-
return
|
|
3866
|
+
return l();
|
|
3856
3867
|
},
|
|
3857
3868
|
get buttonPosition() {
|
|
3858
3869
|
return s();
|
|
@@ -3882,7 +3893,7 @@ var qu = (e, t = !1) => {
|
|
|
3882
3893
|
throw new Error("Devtools is not mounted");
|
|
3883
3894
|
(e = S(this, bt)) == null || e.call(this), G(this, Re, !1);
|
|
3884
3895
|
}
|
|
3885
|
-
}, $e = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), Re = new WeakMap(), wt = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(),
|
|
3896
|
+
}, $e = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), Re = new WeakMap(), wt = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), vt = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), bt = new WeakMap(), Ps), Xe, It, Nt, Lt, ke, Ct, et, tt, nt, st, rt, Gt, at, it, ot, Ot, ws, gl = (ws = class {
|
|
3886
3897
|
constructor(e) {
|
|
3887
3898
|
x(this, Xe);
|
|
3888
3899
|
x(this, It);
|
|
@@ -3908,14 +3919,14 @@ var qu = (e, t = !1) => {
|
|
|
3908
3919
|
buttonPosition: a,
|
|
3909
3920
|
position: i,
|
|
3910
3921
|
initialIsOpen: o,
|
|
3911
|
-
errorTypes:
|
|
3922
|
+
errorTypes: l,
|
|
3912
3923
|
styleNonce: d,
|
|
3913
3924
|
shadowDOMTarget: u,
|
|
3914
3925
|
onClose: f,
|
|
3915
3926
|
hideDisabledQueries: g,
|
|
3916
3927
|
theme: h
|
|
3917
3928
|
} = e;
|
|
3918
|
-
G(this, Xe, K(t)), G(this, Nt, n), G(this, Lt, s), G(this, It, r), G(this, Ct, d), G(this, et, u), G(this, tt, K(a)), G(this, nt, K(i)), G(this, st, K(o)), G(this, rt, K(
|
|
3929
|
+
G(this, Xe, K(t)), G(this, Nt, n), G(this, Lt, s), G(this, It, r), G(this, Ct, d), G(this, et, u), G(this, tt, K(a)), G(this, nt, K(i)), G(this, st, K(o)), G(this, rt, K(l)), G(this, Gt, K(g)), G(this, at, K(f)), G(this, ot, K(h));
|
|
3919
3930
|
}
|
|
3920
3931
|
setButtonPosition(e) {
|
|
3921
3932
|
S(this, tt)[1](e);
|
|
@@ -3941,10 +3952,10 @@ var qu = (e, t = !1) => {
|
|
|
3941
3952
|
mount(e) {
|
|
3942
3953
|
if (S(this, ke))
|
|
3943
3954
|
throw new Error("Devtools is already mounted");
|
|
3944
|
-
const t =
|
|
3945
|
-
const n = this, [s] = S(this, tt), [r] = S(this, nt), [a] = S(this, st), [i] = S(this, rt), [o] = S(this, Gt), [
|
|
3955
|
+
const t = pr(() => {
|
|
3956
|
+
const n = this, [s] = S(this, tt), [r] = S(this, nt), [a] = S(this, st), [i] = S(this, rt), [o] = S(this, Gt), [l] = S(this, Xe), [d] = S(this, at), [u] = S(this, ot);
|
|
3946
3957
|
let f;
|
|
3947
|
-
return S(this, it) ? f = S(this, it) : (f =
|
|
3958
|
+
return S(this, it) ? f = S(this, it) : (f = mr(() => import("./2SSKDMRQ-Bk_4y8lw.js")), G(this, it, f)), Dr(S(this, Ct), S(this, et)), hr(f, gr({
|
|
3948
3959
|
get queryFlavor() {
|
|
3949
3960
|
return S(n, Nt);
|
|
3950
3961
|
},
|
|
@@ -3959,7 +3970,7 @@ var qu = (e, t = !1) => {
|
|
|
3959
3970
|
}
|
|
3960
3971
|
}, {
|
|
3961
3972
|
get client() {
|
|
3962
|
-
return
|
|
3973
|
+
return l();
|
|
3963
3974
|
},
|
|
3964
3975
|
get buttonPosition() {
|
|
3965
3976
|
return s();
|
|
@@ -3992,29 +4003,29 @@ var qu = (e, t = !1) => {
|
|
|
3992
4003
|
throw new Error("Devtools is not mounted");
|
|
3993
4004
|
(e = S(this, Ot)) == null || e.call(this), G(this, ke, !1);
|
|
3994
4005
|
}
|
|
3995
|
-
}, Xe = new WeakMap(), It = new WeakMap(), Nt = new WeakMap(), Lt = new WeakMap(), ke = new WeakMap(), Ct = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Gt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), Ot = new WeakMap(),
|
|
3996
|
-
function
|
|
4006
|
+
}, Xe = new WeakMap(), It = new WeakMap(), Nt = new WeakMap(), Lt = new WeakMap(), ke = new WeakMap(), Ct = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Gt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), Ot = new WeakMap(), ws);
|
|
4007
|
+
function ml(e) {
|
|
3997
4008
|
const t = Y(e.client), n = Q.useRef(null), {
|
|
3998
4009
|
buttonPosition: s,
|
|
3999
4010
|
position: r,
|
|
4000
4011
|
initialIsOpen: a,
|
|
4001
4012
|
errorTypes: i,
|
|
4002
4013
|
styleNonce: o,
|
|
4003
|
-
shadowDOMTarget:
|
|
4014
|
+
shadowDOMTarget: l,
|
|
4004
4015
|
hideDisabledQueries: d,
|
|
4005
4016
|
theme: u
|
|
4006
4017
|
} = e, [f] = Q.useState(
|
|
4007
|
-
new
|
|
4018
|
+
new hl({
|
|
4008
4019
|
client: t,
|
|
4009
4020
|
queryFlavor: "React Query",
|
|
4010
4021
|
version: "5",
|
|
4011
|
-
onlineManager:
|
|
4022
|
+
onlineManager: Ds,
|
|
4012
4023
|
buttonPosition: s,
|
|
4013
4024
|
position: r,
|
|
4014
4025
|
initialIsOpen: a,
|
|
4015
4026
|
errorTypes: i,
|
|
4016
4027
|
styleNonce: o,
|
|
4017
|
-
shadowDOMTarget:
|
|
4028
|
+
shadowDOMTarget: l,
|
|
4018
4029
|
hideDisabledQueries: d,
|
|
4019
4030
|
theme: u
|
|
4020
4031
|
})
|
|
@@ -4033,21 +4044,21 @@ function gl(e) {
|
|
|
4033
4044
|
f.setTheme(u);
|
|
4034
4045
|
}, [u, f]), Q.useEffect(() => (n.current && f.mount(n.current), () => {
|
|
4035
4046
|
f.unmount();
|
|
4036
|
-
}), [f]), /* @__PURE__ */
|
|
4047
|
+
}), [f]), /* @__PURE__ */ c("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
|
|
4037
4048
|
}
|
|
4038
|
-
function
|
|
4049
|
+
function El(e) {
|
|
4039
4050
|
const t = Y(e.client), n = Q.useRef(null), {
|
|
4040
4051
|
errorTypes: s,
|
|
4041
4052
|
styleNonce: r,
|
|
4042
4053
|
shadowDOMTarget: a,
|
|
4043
4054
|
hideDisabledQueries: i,
|
|
4044
4055
|
theme: o
|
|
4045
|
-
} = e, [
|
|
4046
|
-
new
|
|
4056
|
+
} = e, [l] = Q.useState(
|
|
4057
|
+
new gl({
|
|
4047
4058
|
client: t,
|
|
4048
4059
|
queryFlavor: "React Query",
|
|
4049
4060
|
version: "5",
|
|
4050
|
-
onlineManager:
|
|
4061
|
+
onlineManager: Ds,
|
|
4051
4062
|
buttonPosition: "bottom-left",
|
|
4052
4063
|
position: "bottom",
|
|
4053
4064
|
initialIsOpen: !0,
|
|
@@ -4060,17 +4071,17 @@ function ml(e) {
|
|
|
4060
4071
|
})
|
|
4061
4072
|
);
|
|
4062
4073
|
return Q.useEffect(() => {
|
|
4063
|
-
|
|
4064
|
-
}, [t,
|
|
4065
|
-
|
|
4074
|
+
l.setClient(t);
|
|
4075
|
+
}, [t, l]), Q.useEffect(() => {
|
|
4076
|
+
l.setOnClose(e.onClose ?? (() => {
|
|
4066
4077
|
}));
|
|
4067
|
-
}, [e.onClose,
|
|
4068
|
-
|
|
4069
|
-
}, [s,
|
|
4070
|
-
|
|
4071
|
-
}, [o,
|
|
4072
|
-
|
|
4073
|
-
}), [
|
|
4078
|
+
}, [e.onClose, l]), Q.useEffect(() => {
|
|
4079
|
+
l.setErrorTypes(s || []);
|
|
4080
|
+
}, [s, l]), Q.useEffect(() => {
|
|
4081
|
+
l.setTheme(o);
|
|
4082
|
+
}, [o, l]), Q.useEffect(() => (n.current && l.mount(n.current), () => {
|
|
4083
|
+
l.unmount();
|
|
4084
|
+
}), [l]), /* @__PURE__ */ c(
|
|
4074
4085
|
"div",
|
|
4075
4086
|
{
|
|
4076
4087
|
style: { height: "500px", ...e.style },
|
|
@@ -4079,28 +4090,28 @@ function ml(e) {
|
|
|
4079
4090
|
}
|
|
4080
4091
|
);
|
|
4081
4092
|
}
|
|
4082
|
-
var
|
|
4093
|
+
var Ts = process.env.NODE_ENV !== "development" ? function() {
|
|
4083
4094
|
return null;
|
|
4084
|
-
} :
|
|
4095
|
+
} : ml;
|
|
4085
4096
|
process.env.NODE_ENV;
|
|
4086
|
-
const
|
|
4087
|
-
|
|
4097
|
+
const pl = Ae(""), yl = () => {
|
|
4098
|
+
Xn("dynamic-page-selector", {
|
|
4088
4099
|
description: "Dynamic page selector"
|
|
4089
|
-
}),
|
|
4100
|
+
}), Xn("enable-add-page-dropdown", {
|
|
4090
4101
|
description: "Enable add page dropdown"
|
|
4091
4102
|
});
|
|
4092
|
-
},
|
|
4103
|
+
}, Al = () => {
|
|
4093
4104
|
const e = I(), t = C();
|
|
4094
4105
|
return se({
|
|
4095
4106
|
queryKey: [p.GET_COLLECTIONS],
|
|
4096
4107
|
staleTime: 1 / 0,
|
|
4097
4108
|
queryFn: async () => t(e, { action: p.GET_COLLECTIONS })
|
|
4098
4109
|
});
|
|
4099
|
-
},
|
|
4110
|
+
}, Tl = () => {
|
|
4100
4111
|
const { data: e } = fe(), { data: t } = Ce(), { data: n } = Fe(), s = I(), r = C(), a = $(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = oe(/* @__PURE__ */ new Map());
|
|
4101
|
-
return
|
|
4112
|
+
return X({
|
|
4102
4113
|
mutationFn: async ({ block: o }) => {
|
|
4103
|
-
const
|
|
4114
|
+
const l = o._id, d = (t == null ? void 0 : t.lang) || a, u = `${l}:${d}`;
|
|
4104
4115
|
if (i.current.has(u))
|
|
4105
4116
|
return i.current.get(u);
|
|
4106
4117
|
const f = r(s, {
|
|
@@ -4127,7 +4138,7 @@ const El = Ae(""), pl = () => {
|
|
|
4127
4138
|
}), f;
|
|
4128
4139
|
}
|
|
4129
4140
|
});
|
|
4130
|
-
},
|
|
4141
|
+
}, Sl = () => {
|
|
4131
4142
|
const [, e] = be();
|
|
4132
4143
|
return z(
|
|
4133
4144
|
(t, n) => {
|
|
@@ -4136,70 +4147,70 @@ const El = Ae(""), pl = () => {
|
|
|
4136
4147
|
},
|
|
4137
4148
|
[e]
|
|
4138
4149
|
);
|
|
4139
|
-
},
|
|
4140
|
-
const e =
|
|
4150
|
+
}, _l = () => {
|
|
4151
|
+
const e = Sl();
|
|
4141
4152
|
return z(
|
|
4142
4153
|
({ pageId: t }) => {
|
|
4143
4154
|
e(t);
|
|
4144
4155
|
},
|
|
4145
4156
|
[e]
|
|
4146
4157
|
);
|
|
4147
|
-
},
|
|
4158
|
+
}, Pl = {
|
|
4148
4159
|
SITE_WIDE_USAGE: "SITE_WIDE_USAGE"
|
|
4149
|
-
},
|
|
4160
|
+
}, wl = (e) => {
|
|
4150
4161
|
const t = C(), n = I();
|
|
4151
4162
|
return se({
|
|
4152
|
-
queryKey: [
|
|
4163
|
+
queryKey: [Pl.SITE_WIDE_USAGE],
|
|
4153
4164
|
queryFn: async () => e ? t(n, { action: "GET_SITE_WIDE_USAGE" }) : {},
|
|
4154
4165
|
retry: !1
|
|
4155
4166
|
});
|
|
4156
|
-
},
|
|
4157
|
-
|
|
4167
|
+
}, vl = H(() => import("./page-lock-BpUGSiCT.js")), bl = H(() => import("./no-language-page-dialog-DPDJ6gkQ.js")), Il = H(() => import("./digital-asset-manager-iXt27NlP.js")), Nl = H(() => import("./save-to-lib-BMlowHNl.js")), Ll = H(() => import("./theme-panel-footer-C1f2KMBq.js")), Cl = H(() => import("./web-preview-ztlGD_Xm.js"));
|
|
4168
|
+
yl();
|
|
4158
4169
|
ui();
|
|
4159
4170
|
_a(To);
|
|
4160
|
-
|
|
4161
|
-
Ta(
|
|
4162
|
-
Sa(
|
|
4163
|
-
const
|
|
4171
|
+
qo();
|
|
4172
|
+
Ta(Il);
|
|
4173
|
+
Sa(Nl);
|
|
4174
|
+
const Gl = {
|
|
4164
4175
|
role: "",
|
|
4165
4176
|
permissions: null
|
|
4166
|
-
},
|
|
4177
|
+
}, Ss = (e) => {
|
|
4167
4178
|
const { isLoading: t } = Io();
|
|
4168
|
-
return t ? /* @__PURE__ */
|
|
4169
|
-
},
|
|
4170
|
-
var
|
|
4171
|
-
const { data: t } = bo(), n =
|
|
4172
|
-
|
|
4179
|
+
return t ? /* @__PURE__ */ c(Vn, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ c(ct, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ c(Ol, { ...e });
|
|
4180
|
+
}, Ol = (e) => {
|
|
4181
|
+
var zn;
|
|
4182
|
+
const { data: t } = bo(), n = Kn(), { data: s = Gl, isFetching: r } = No(), { data: a, isFetching: i } = Ge(), { data: o, isFetching: l } = Al(), { data: d, isFetching: u } = Fe(), f = r || i || l || u, [g] = be(), h = g.get("page"), { data: A } = fe(), { data: y, isFetching: T } = Po(), { blocks: _ } = _o(y), { data: E, isFetching: P } = wo(), { pageStatus: N } = Se(), U = So(), { onSave: v } = Lo(), { mutateAsync: me } = Tl(), { getPartialBlocks: _e, getPartialBlockBlocks: F } = Co(), { mutateAsync: b } = _i(), { mutateAsync: L } = vo(), { data: W } = wl(((zn = e.flags) == null ? void 0 : zn.designTokens) ?? !0), M = _l(), [ae, Oe] = V(!1), le = oe([]), Ve = $(() => q(d, "theme", {}) || {}, [d]), xe = N === ne.EDITING, Ur = N === ne.CHECKING, $n = T || Ur || P;
|
|
4183
|
+
j(() => {
|
|
4173
4184
|
le.current = _;
|
|
4174
4185
|
}, [_]);
|
|
4175
|
-
const [
|
|
4176
|
-
|
|
4186
|
+
const [Mr] = Te(pl);
|
|
4187
|
+
j(() => {
|
|
4177
4188
|
const ie = () => {
|
|
4178
4189
|
document.hidden ? Oe(!0) : Oe(!1);
|
|
4179
4190
|
};
|
|
4180
4191
|
return window.addEventListener("visibilitychange", ie), () => window.removeEventListener("visibilitychange", ie);
|
|
4181
4192
|
}, []);
|
|
4182
|
-
const
|
|
4193
|
+
const Br = $(() => {
|
|
4183
4194
|
const ie = {};
|
|
4184
4195
|
return s && (ie.permissions = q(s, "permissions", null), ie.role = q(s, "role", "user")), ie;
|
|
4185
|
-
}, [s]),
|
|
4196
|
+
}, [s]), Qn = $(() => t == null ? void 0 : t.some((ie) => ie.isSiteLibrary), [t]), Fr = z(
|
|
4186
4197
|
async (ie, Rt) => await b({ pageType: ie, query: Rt }),
|
|
4187
4198
|
[b]
|
|
4188
4199
|
);
|
|
4189
4200
|
return /* @__PURE__ */ m(pe, { children: [
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4201
|
+
$n && /* @__PURE__ */ c(Vn, { className: f ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ c(ct, { className: `animate-spin text-primary ${f ? "h-6 w-6" : "h-5 w-5"}` }) }),
|
|
4202
|
+
Mr && /* @__PURE__ */ c(
|
|
4203
|
+
J,
|
|
4193
4204
|
{
|
|
4194
|
-
fallback: /* @__PURE__ */
|
|
4195
|
-
children: /* @__PURE__ */
|
|
4205
|
+
fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c(ct, { className: "h-6 w-6 animate-spin text-primary" }) }),
|
|
4206
|
+
children: /* @__PURE__ */ c(Cl, {})
|
|
4196
4207
|
}
|
|
4197
4208
|
),
|
|
4198
|
-
/* @__PURE__ */
|
|
4199
|
-
|
|
4209
|
+
/* @__PURE__ */ c(
|
|
4210
|
+
da,
|
|
4200
4211
|
{
|
|
4201
|
-
siteWideUsage:
|
|
4202
|
-
flags: e.flags ? { ...e.flags, librarySite:
|
|
4212
|
+
siteWideUsage: W ?? {},
|
|
4213
|
+
flags: e.flags ? { ...e.flags, librarySite: Qn } : { librarySite: Qn },
|
|
4203
4214
|
gotoPage: M,
|
|
4204
4215
|
collections: o ?? [],
|
|
4205
4216
|
getBlockAsyncProps: me,
|
|
@@ -4217,29 +4228,29 @@ const Cl = {
|
|
|
4217
4228
|
autoSave: !ae && xe && (e.autoSave ?? !0),
|
|
4218
4229
|
autoSaveActionsCount: e.autoSaveActionsCount ?? 10,
|
|
4219
4230
|
onError: e.onError || console.error,
|
|
4220
|
-
getPartialBlockBlocks:
|
|
4231
|
+
getPartialBlockBlocks: F,
|
|
4221
4232
|
getPartialBlocks: _e,
|
|
4222
4233
|
blocks: T ? [] : _,
|
|
4223
4234
|
theme: ka(Ve),
|
|
4224
4235
|
pageTypes: a,
|
|
4225
|
-
searchPageTypeItems:
|
|
4236
|
+
searchPageTypeItems: Fr,
|
|
4226
4237
|
askAiCallBack: U,
|
|
4227
|
-
onSave: async ({ blocks: ie, theme: Rt, needTranslations:
|
|
4238
|
+
onSave: async ({ blocks: ie, theme: Rt, needTranslations: Kr, designTokens: Wn }) => {
|
|
4228
4239
|
if (!h) return !0;
|
|
4229
4240
|
le.current = ie;
|
|
4230
4241
|
const jn = [...ie];
|
|
4231
|
-
await v({ page: h, blocks: jn, needTranslations:
|
|
4242
|
+
await v({ page: h, blocks: jn, needTranslations: Kr }), le.current = jn;
|
|
4232
4243
|
const kt = {};
|
|
4233
|
-
return
|
|
4244
|
+
return ts(Rt, Ve) || (kt.theme = Rt), ts(Wn, d == null ? void 0 : d.designTokens) || (kt.designTokens = Wn), ge(kt) || await L({ settings: kt }), !0;
|
|
4234
4245
|
},
|
|
4235
|
-
themePanelComponent:
|
|
4236
|
-
...
|
|
4237
|
-
children: /* @__PURE__ */
|
|
4246
|
+
themePanelComponent: Ll,
|
|
4247
|
+
...Br,
|
|
4248
|
+
children: /* @__PURE__ */ c(vl, { isFetchingPageData: $n })
|
|
4238
4249
|
}
|
|
4239
4250
|
),
|
|
4240
|
-
/* @__PURE__ */
|
|
4251
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(bl, {}) })
|
|
4241
4252
|
] });
|
|
4242
|
-
},
|
|
4253
|
+
}, xl = new Ua({
|
|
4243
4254
|
defaultOptions: {
|
|
4244
4255
|
queries: {
|
|
4245
4256
|
refetchOnWindowFocus: !1,
|
|
@@ -4247,10 +4258,10 @@ const Cl = {
|
|
|
4247
4258
|
refetchOnMount: !1
|
|
4248
4259
|
}
|
|
4249
4260
|
}
|
|
4250
|
-
}),
|
|
4251
|
-
const [, t] =
|
|
4252
|
-
return
|
|
4253
|
-
|
|
4261
|
+
}), Yu = (e) => {
|
|
4262
|
+
const [, t] = Un(), [n, s] = V(!1);
|
|
4263
|
+
return j(() => (t(
|
|
4264
|
+
ks(e, [
|
|
4254
4265
|
"apiUrl",
|
|
4255
4266
|
"usersApiUrl",
|
|
4256
4267
|
"assetsApiUrl",
|
|
@@ -4270,19 +4281,19 @@ const Cl = {
|
|
|
4270
4281
|
}, 200), () => {
|
|
4271
4282
|
s(!1), t({});
|
|
4272
4283
|
}), [e, t]), n ? q(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(pe, { children: [
|
|
4273
|
-
/* @__PURE__ */
|
|
4274
|
-
/* @__PURE__ */
|
|
4275
|
-
] }) : /* @__PURE__ */ m(Ma, { client:
|
|
4276
|
-
/* @__PURE__ */
|
|
4277
|
-
/* @__PURE__ */
|
|
4278
|
-
] }) : /* @__PURE__ */
|
|
4279
|
-
},
|
|
4280
|
-
function
|
|
4284
|
+
/* @__PURE__ */ c(Ss, { ...e }),
|
|
4285
|
+
/* @__PURE__ */ c(Ts, {})
|
|
4286
|
+
] }) : /* @__PURE__ */ m(Ma, { client: xl, children: [
|
|
4287
|
+
/* @__PURE__ */ c(Ss, { ...e }),
|
|
4288
|
+
/* @__PURE__ */ c(Ts, {})
|
|
4289
|
+
] }) : /* @__PURE__ */ c("div", {});
|
|
4290
|
+
}, Rl = Q.lazy(() => import("./nested-path-selector-content-BERhs6_L.js"));
|
|
4291
|
+
function kl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
4281
4292
|
const [r, a] = Q.useState(!1);
|
|
4282
|
-
return /* @__PURE__ */ m(
|
|
4293
|
+
return /* @__PURE__ */ m(fa, { open: r, onOpenChange: a, children: [
|
|
4283
4294
|
/* @__PURE__ */ m(tn, { children: [
|
|
4284
|
-
/* @__PURE__ */
|
|
4285
|
-
|
|
4295
|
+
/* @__PURE__ */ c(nn, { asChild: !0, children: /* @__PURE__ */ c(ha, { asChild: !0, children: /* @__PURE__ */ c(
|
|
4296
|
+
B,
|
|
4286
4297
|
{
|
|
4287
4298
|
size: "sm",
|
|
4288
4299
|
variant: "outline",
|
|
@@ -4290,7 +4301,7 @@ function Rl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4290
4301
|
role: "combobox",
|
|
4291
4302
|
"aria-expanded": r,
|
|
4292
4303
|
disabled: s,
|
|
4293
|
-
children: /* @__PURE__ */
|
|
4304
|
+
children: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24px", height: "24px", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
|
|
4294
4305
|
"path",
|
|
4295
4306
|
{
|
|
4296
4307
|
d: "M9.5 5H9C7.89543 5 7 5.89543 7 7V9C7 10 6.4 12 4 12C5 12 7 12.6 7 15V17.0002C7 18.1048 7.89543 19 9 19H9.5M14.5 5H15C16.1046 5 17 5.89543 17 7V9C17 10 17.6 12 20 12C19 12 17 12.6 17 15V17.0002C17 18.1048 16.1046 19 15 19H14.5",
|
|
@@ -4302,10 +4313,10 @@ function Rl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4302
4313
|
) })
|
|
4303
4314
|
}
|
|
4304
4315
|
) }) }),
|
|
4305
|
-
/* @__PURE__ */
|
|
4316
|
+
/* @__PURE__ */ c(sn, { children: "Add field" })
|
|
4306
4317
|
] }),
|
|
4307
|
-
r && /* @__PURE__ */
|
|
4308
|
-
|
|
4318
|
+
r && /* @__PURE__ */ c(Q.Suspense, { children: /* @__PURE__ */ c(
|
|
4319
|
+
Rl,
|
|
4309
4320
|
{
|
|
4310
4321
|
data: e,
|
|
4311
4322
|
onSelect: t,
|
|
@@ -4316,19 +4327,19 @@ function Rl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
|
|
|
4316
4327
|
) })
|
|
4317
4328
|
] });
|
|
4318
4329
|
}
|
|
4319
|
-
const
|
|
4330
|
+
const Ju = () => {
|
|
4320
4331
|
const { savePageAsync: e } = Me(), t = Y(), { isLocked: n } = Se();
|
|
4321
4332
|
return z(async () => {
|
|
4322
4333
|
n || await e(), t.invalidateQueries({ queryKey: [p.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [p.GET_BUILDER_PAGE_DATA] });
|
|
4323
4334
|
}, [e, t, n]);
|
|
4324
|
-
},
|
|
4335
|
+
}, Zu = () => {
|
|
4325
4336
|
const e = Y();
|
|
4326
4337
|
return z(() => {
|
|
4327
4338
|
e.clear();
|
|
4328
4339
|
}, [e]);
|
|
4329
|
-
},
|
|
4340
|
+
}, Xu = () => {
|
|
4330
4341
|
const e = I(), t = C(), { data: n } = Ce(), s = Y();
|
|
4331
|
-
return
|
|
4342
|
+
return X({
|
|
4332
4343
|
mutationFn: async (r) => {
|
|
4333
4344
|
if (!(n != null && n.id))
|
|
4334
4345
|
throw new Error("No active page found");
|
|
@@ -4351,7 +4362,7 @@ const Yu = () => {
|
|
|
4351
4362
|
console.error("Failed to update metadata");
|
|
4352
4363
|
}
|
|
4353
4364
|
});
|
|
4354
|
-
},
|
|
4365
|
+
}, Dl = H(() => import("./digital-asset-manager-iXt27NlP.js")), ed = ({
|
|
4355
4366
|
assetId: e,
|
|
4356
4367
|
assetUrl: t,
|
|
4357
4368
|
onChange: n,
|
|
@@ -4359,19 +4370,19 @@ const Yu = () => {
|
|
|
4359
4370
|
placeholder: r = "Select an image",
|
|
4360
4371
|
disabled: a = !1
|
|
4361
4372
|
}) => {
|
|
4362
|
-
const { t: i } = ve(), [o,
|
|
4363
|
-
a ||
|
|
4373
|
+
const { t: i } = ve(), [o, l] = V(!1), d = () => {
|
|
4374
|
+
a || l(!0);
|
|
4364
4375
|
}, u = () => {
|
|
4365
|
-
|
|
4376
|
+
l(!1);
|
|
4366
4377
|
}, f = (A) => {
|
|
4367
4378
|
const y = Array.isArray(A) ? A[0] : A;
|
|
4368
|
-
y != null && y.url && n(
|
|
4379
|
+
y != null && y.url && n(ks(y, ["url", "id"])), l(!1);
|
|
4369
4380
|
}, g = () => {
|
|
4370
4381
|
n({ url: "", id: "" });
|
|
4371
4382
|
}, h = (t == null ? void 0 : t.startsWith("{{")) && (t == null ? void 0 : t.endsWith("}}"));
|
|
4372
4383
|
return /* @__PURE__ */ m("div", { className: `w-full ${s}`, children: [
|
|
4373
4384
|
t ? /* @__PURE__ */ m("div", { className: "relative overflow-hidden rounded-md border", children: [
|
|
4374
|
-
h ? /* @__PURE__ */
|
|
4385
|
+
h ? /* @__PURE__ */ c("div", { className: "flex h-12 items-center bg-gray-100 px-4", children: /* @__PURE__ */ c("p", { className: "text-xs text-gray-500", children: t }) }) : /* @__PURE__ */ c(
|
|
4375
4386
|
"img",
|
|
4376
4387
|
{
|
|
4377
4388
|
onClick: d,
|
|
@@ -4381,8 +4392,8 @@ const Yu = () => {
|
|
|
4381
4392
|
}
|
|
4382
4393
|
),
|
|
4383
4394
|
/* @__PURE__ */ m("div", { className: "absolute right-2 top-2 flex gap-2", children: [
|
|
4384
|
-
/* @__PURE__ */
|
|
4385
|
-
|
|
4395
|
+
/* @__PURE__ */ c(
|
|
4396
|
+
B,
|
|
4386
4397
|
{
|
|
4387
4398
|
type: "button",
|
|
4388
4399
|
variant: "outline",
|
|
@@ -4390,11 +4401,11 @@ const Yu = () => {
|
|
|
4390
4401
|
className: "h-8 w-8 rounded-full bg-white text-red-500",
|
|
4391
4402
|
onClick: g,
|
|
4392
4403
|
disabled: a,
|
|
4393
|
-
children: h ? /* @__PURE__ */
|
|
4404
|
+
children: h ? /* @__PURE__ */ c(cs, { className: "h-4 w-4" }) : /* @__PURE__ */ c(ti, { className: "h-4 w-4" })
|
|
4394
4405
|
}
|
|
4395
4406
|
),
|
|
4396
|
-
!h && /* @__PURE__ */
|
|
4397
|
-
|
|
4407
|
+
!h && /* @__PURE__ */ c(
|
|
4408
|
+
B,
|
|
4398
4409
|
{
|
|
4399
4410
|
type: "button",
|
|
4400
4411
|
variant: "outline",
|
|
@@ -4402,38 +4413,38 @@ const Yu = () => {
|
|
|
4402
4413
|
className: "h-8 w-8 rounded-full bg-white/80 hover:bg-white/90",
|
|
4403
4414
|
onClick: d,
|
|
4404
4415
|
disabled: a,
|
|
4405
|
-
children: /* @__PURE__ */
|
|
4416
|
+
children: /* @__PURE__ */ c(ls, { className: "h-4 w-4" })
|
|
4406
4417
|
}
|
|
4407
4418
|
)
|
|
4408
4419
|
] })
|
|
4409
|
-
] }) : /* @__PURE__ */
|
|
4420
|
+
] }) : /* @__PURE__ */ c(
|
|
4410
4421
|
"div",
|
|
4411
4422
|
{
|
|
4412
4423
|
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"}`,
|
|
4413
4424
|
onClick: d,
|
|
4414
4425
|
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-2", children: [
|
|
4415
|
-
/* @__PURE__ */
|
|
4416
|
-
/* @__PURE__ */
|
|
4426
|
+
/* @__PURE__ */ c(ls, { className: "h-10 w-10 text-gray-400" }),
|
|
4427
|
+
/* @__PURE__ */ c("p", { className: "text-sm text-gray-500", children: r })
|
|
4417
4428
|
] })
|
|
4418
4429
|
}
|
|
4419
4430
|
),
|
|
4420
|
-
/* @__PURE__ */
|
|
4431
|
+
/* @__PURE__ */ c(Rn, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(Ls, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
|
|
4421
4432
|
/* @__PURE__ */ m(ga, { className: "hidden border-b px-4 py-2", children: [
|
|
4422
|
-
/* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
|
|
4433
|
+
/* @__PURE__ */ c(ma, { children: i("Select Image") }),
|
|
4434
|
+
/* @__PURE__ */ c(
|
|
4435
|
+
B,
|
|
4425
4436
|
{
|
|
4426
4437
|
type: "button",
|
|
4427
4438
|
variant: "ghost",
|
|
4428
4439
|
size: "icon",
|
|
4429
4440
|
className: "absolute right-4 top-2",
|
|
4430
4441
|
onClick: u,
|
|
4431
|
-
children: /* @__PURE__ */
|
|
4442
|
+
children: /* @__PURE__ */ c(cs, { className: "h-4 w-4" })
|
|
4432
4443
|
}
|
|
4433
4444
|
)
|
|
4434
4445
|
] }),
|
|
4435
|
-
/* @__PURE__ */
|
|
4436
|
-
|
|
4446
|
+
/* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
|
|
4447
|
+
Dl,
|
|
4437
4448
|
{
|
|
4438
4449
|
close: u,
|
|
4439
4450
|
onSelect: f,
|
|
@@ -4443,7 +4454,7 @@ const Yu = () => {
|
|
|
4443
4454
|
) }) })
|
|
4444
4455
|
] }) })
|
|
4445
4456
|
] });
|
|
4446
|
-
},
|
|
4457
|
+
}, Ul = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), _s = (e) => {
|
|
4447
4458
|
if (!e.trim())
|
|
4448
4459
|
return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
|
|
4449
4460
|
try {
|
|
@@ -4459,10 +4470,10 @@ const Yu = () => {
|
|
|
4459
4470
|
try {
|
|
4460
4471
|
return { isValid: !0, parsed: JSON.parse(s), error: null, placeholders: n };
|
|
4461
4472
|
} catch (a) {
|
|
4462
|
-
const i = a, o = i.message.match(/position (\d+)/),
|
|
4473
|
+
const i = a, o = i.message.match(/position (\d+)/), l = o ? parseInt(o[1]) : void 0;
|
|
4463
4474
|
let d, u;
|
|
4464
|
-
if (
|
|
4465
|
-
const f = s.substring(0,
|
|
4475
|
+
if (l !== void 0) {
|
|
4476
|
+
const f = s.substring(0, l).split(`
|
|
4466
4477
|
`);
|
|
4467
4478
|
d = f.length, u = f[f.length - 1].length + 1;
|
|
4468
4479
|
}
|
|
@@ -4474,17 +4485,17 @@ const Yu = () => {
|
|
|
4474
4485
|
message: i.message,
|
|
4475
4486
|
line: d,
|
|
4476
4487
|
column: u,
|
|
4477
|
-
position:
|
|
4488
|
+
position: l
|
|
4478
4489
|
}
|
|
4479
4490
|
};
|
|
4480
4491
|
}
|
|
4481
|
-
},
|
|
4492
|
+
}, Ml = (e, t) => {
|
|
4482
4493
|
let s = JSON.stringify(e, null, 2);
|
|
4483
4494
|
return t.forEach(({ original: r }, a) => {
|
|
4484
|
-
const i = `"__placeholder_${a}__"`, o = new RegExp(
|
|
4495
|
+
const i = `"__placeholder_${a}__"`, o = new RegExp(Ul(i), "g");
|
|
4485
4496
|
s = s.replace(o, r);
|
|
4486
4497
|
}), s;
|
|
4487
|
-
},
|
|
4498
|
+
}, Bl = (e, t) => {
|
|
4488
4499
|
if (!e) return "";
|
|
4489
4500
|
let n = JSON.stringify(e, null, 2);
|
|
4490
4501
|
const s = /{{([^{}]+)}}/g;
|
|
@@ -4494,7 +4505,7 @@ const Yu = () => {
|
|
|
4494
4505
|
n = n.replace(r[0], i);
|
|
4495
4506
|
}
|
|
4496
4507
|
return n;
|
|
4497
|
-
},
|
|
4508
|
+
}, Fl = H(() => import("./shared-json-ld-B2kfIim8.js")), td = ({
|
|
4498
4509
|
value: e,
|
|
4499
4510
|
onChange: t,
|
|
4500
4511
|
disabled: n = !1,
|
|
@@ -4503,73 +4514,73 @@ const Yu = () => {
|
|
|
4503
4514
|
rows: a = 6,
|
|
4504
4515
|
id: i = "json-input",
|
|
4505
4516
|
pageData: o = {},
|
|
4506
|
-
handleFieldInsert:
|
|
4517
|
+
handleFieldInsert: l,
|
|
4507
4518
|
hasJsonLdForSelectedLang: d,
|
|
4508
4519
|
copyJsonLDFromDefaultPage: u
|
|
4509
4520
|
}) => {
|
|
4510
|
-
const [f, g] = V("edit"), [h, A] = V(null), [y, T] = V(""), _ = oe(null), [E] =
|
|
4511
|
-
|
|
4521
|
+
const [f, g] = V("edit"), [h, A] = V(null), [y, T] = V(""), _ = oe(null), [E] = Un(), P = i === "jsonLD" && q(E, "features.sharedJsonLD", !1), N = i === "jsonLD" && !d && !!u;
|
|
4522
|
+
j(() => {
|
|
4512
4523
|
e.trim() === "" && t("{}");
|
|
4513
4524
|
}, [e, t]);
|
|
4514
|
-
const U = (
|
|
4525
|
+
const U = (F) => {
|
|
4515
4526
|
if (s) return;
|
|
4516
|
-
const b =
|
|
4527
|
+
const b = F.target.value;
|
|
4517
4528
|
t(b);
|
|
4518
|
-
}, v = (
|
|
4519
|
-
if (
|
|
4520
|
-
|
|
4521
|
-
const b =
|
|
4522
|
-
if (L !==
|
|
4523
|
-
const ae = e.substring(L,
|
|
4529
|
+
}, v = (F) => {
|
|
4530
|
+
if (F.key === "Tab") {
|
|
4531
|
+
F.preventDefault();
|
|
4532
|
+
const b = F.currentTarget, L = b.selectionStart, W = b.selectionEnd;
|
|
4533
|
+
if (L !== W) {
|
|
4534
|
+
const ae = e.substring(L, W).split(`
|
|
4524
4535
|
`);
|
|
4525
|
-
if (
|
|
4536
|
+
if (F.shiftKey) {
|
|
4526
4537
|
const le = ae.map((xe) => xe.startsWith(" ") ? xe.substring(2) : xe).join(`
|
|
4527
|
-
`), Ve = e.substring(0, L) + le + e.substring(
|
|
4538
|
+
`), Ve = e.substring(0, L) + le + e.substring(W);
|
|
4528
4539
|
t(Ve), setTimeout(() => {
|
|
4529
4540
|
b.selectionStart = L, b.selectionEnd = L + le.length;
|
|
4530
4541
|
}, 0);
|
|
4531
4542
|
} else {
|
|
4532
4543
|
const le = ae.map((xe) => ` ${xe}`).join(`
|
|
4533
|
-
`), Ve = e.substring(0, L) + le + e.substring(
|
|
4544
|
+
`), Ve = e.substring(0, L) + le + e.substring(W);
|
|
4534
4545
|
t(Ve), setTimeout(() => {
|
|
4535
4546
|
b.selectionStart = L, b.selectionEnd = L + le.length;
|
|
4536
4547
|
}, 0);
|
|
4537
4548
|
}
|
|
4538
4549
|
} else {
|
|
4539
|
-
const M = e.substring(0, L) + " " + e.substring(
|
|
4550
|
+
const M = e.substring(0, L) + " " + e.substring(W);
|
|
4540
4551
|
t(M), setTimeout(() => {
|
|
4541
4552
|
b.selectionStart = b.selectionEnd = L + 2;
|
|
4542
4553
|
}, 0);
|
|
4543
4554
|
}
|
|
4544
4555
|
}
|
|
4545
4556
|
};
|
|
4546
|
-
|
|
4547
|
-
const
|
|
4548
|
-
|
|
4549
|
-
if (A(null),
|
|
4550
|
-
const b =
|
|
4557
|
+
j(() => {
|
|
4558
|
+
const F = _s(e);
|
|
4559
|
+
F.isValid ? ns(() => {
|
|
4560
|
+
if (A(null), F.parsed) {
|
|
4561
|
+
const b = Bl(F.parsed, o);
|
|
4551
4562
|
T(b);
|
|
4552
4563
|
} else
|
|
4553
4564
|
T("");
|
|
4554
|
-
}) :
|
|
4555
|
-
A(
|
|
4565
|
+
}) : ns(() => {
|
|
4566
|
+
A(F.error), T("");
|
|
4556
4567
|
});
|
|
4557
4568
|
}, [e, o]);
|
|
4558
4569
|
const me = () => {
|
|
4559
|
-
const
|
|
4560
|
-
if (
|
|
4561
|
-
const b =
|
|
4570
|
+
const F = _s(e);
|
|
4571
|
+
if (F.isValid && F.parsed) {
|
|
4572
|
+
const b = Ml(F.parsed, F.placeholders);
|
|
4562
4573
|
t(b);
|
|
4563
4574
|
}
|
|
4564
4575
|
}, _e = () => {
|
|
4565
4576
|
h != null && h.position && _.current && (_.current.focus(), _.current.setSelectionRange(h.position, h.position + 1));
|
|
4566
4577
|
};
|
|
4567
|
-
return /* @__PURE__ */
|
|
4578
|
+
return /* @__PURE__ */ c(di, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Ea, { value: f, onValueChange: g, className: "w-full", children: [
|
|
4568
4579
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
4569
4580
|
/* @__PURE__ */ m(pa, { className: "w-max", children: [
|
|
4570
4581
|
/* @__PURE__ */ m(dn, { value: "edit", className: "flex items-center gap-1", children: [
|
|
4571
|
-
/* @__PURE__ */
|
|
4572
|
-
/* @__PURE__ */
|
|
4582
|
+
/* @__PURE__ */ c(ni, { className: "h-4 w-4" }),
|
|
4583
|
+
/* @__PURE__ */ c("span", { children: "Edit" })
|
|
4573
4584
|
] }),
|
|
4574
4585
|
/* @__PURE__ */ m(
|
|
4575
4586
|
dn,
|
|
@@ -4578,8 +4589,8 @@ const Yu = () => {
|
|
|
4578
4589
|
className: "flex items-center gap-1",
|
|
4579
4590
|
disabled: !e.trim() || h !== null || N,
|
|
4580
4591
|
children: [
|
|
4581
|
-
/* @__PURE__ */
|
|
4582
|
-
/* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ c(si, { className: "h-4 w-4" }),
|
|
4593
|
+
/* @__PURE__ */ c("span", { children: "Preview" })
|
|
4583
4594
|
]
|
|
4584
4595
|
}
|
|
4585
4596
|
),
|
|
@@ -4590,24 +4601,24 @@ const Yu = () => {
|
|
|
4590
4601
|
className: "flex items-center gap-1",
|
|
4591
4602
|
disabled: !e.trim() || h !== null,
|
|
4592
4603
|
children: [
|
|
4593
|
-
/* @__PURE__ */
|
|
4594
|
-
/* @__PURE__ */
|
|
4604
|
+
/* @__PURE__ */ c(ri, { className: "h-4 w-4" }),
|
|
4605
|
+
/* @__PURE__ */ c("span", { children: "Shared" })
|
|
4595
4606
|
]
|
|
4596
4607
|
}
|
|
4597
4608
|
)
|
|
4598
4609
|
] }),
|
|
4599
|
-
N ? null : f === "edit" && !s && /* @__PURE__ */
|
|
4600
|
-
|
|
4610
|
+
N ? null : f === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
|
|
4611
|
+
kl,
|
|
4601
4612
|
{
|
|
4602
4613
|
dataType: "value",
|
|
4603
4614
|
data: o ?? {},
|
|
4604
|
-
onSelect: (
|
|
4615
|
+
onSelect: (F) => l && l(F, i)
|
|
4605
4616
|
}
|
|
4606
4617
|
) })
|
|
4607
4618
|
] }),
|
|
4608
4619
|
/* @__PURE__ */ m(fn, { value: "edit", className: "relative mt-0", children: [
|
|
4609
|
-
!N && f === "edit" && /* @__PURE__ */
|
|
4610
|
-
|
|
4620
|
+
!N && f === "edit" && /* @__PURE__ */ c(Hn, { content: "Format JSON", side: "right", showTooltip: !n && !h, children: /* @__PURE__ */ c(
|
|
4621
|
+
B,
|
|
4611
4622
|
{
|
|
4612
4623
|
type: "button",
|
|
4613
4624
|
variant: "outline",
|
|
@@ -4615,17 +4626,17 @@ const Yu = () => {
|
|
|
4615
4626
|
onClick: me,
|
|
4616
4627
|
className: "absolute right-1 top-1 h-6 w-6 p-1",
|
|
4617
4628
|
disabled: !e.trim() || n || h !== null,
|
|
4618
|
-
children: /* @__PURE__ */
|
|
4629
|
+
children: /* @__PURE__ */ c(ai, {})
|
|
4619
4630
|
}
|
|
4620
4631
|
) }),
|
|
4621
|
-
N ? /* @__PURE__ */
|
|
4622
|
-
/* @__PURE__ */
|
|
4623
|
-
/* @__PURE__ */ m(
|
|
4624
|
-
/* @__PURE__ */
|
|
4632
|
+
N ? /* @__PURE__ */ c("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
|
|
4633
|
+
/* @__PURE__ */ c("div", { className: "max-w-xl text-center text-xs text-gray-500", children: "JSON-LD for is not added for selected language. JSON LD will be used from default language." }),
|
|
4634
|
+
/* @__PURE__ */ m(B, { type: "button", variant: "default", size: "sm", onClick: u, children: [
|
|
4635
|
+
/* @__PURE__ */ c(Ms, {}),
|
|
4625
4636
|
"Copy & Edit from default language"
|
|
4626
4637
|
] })
|
|
4627
|
-
] }) }) : /* @__PURE__ */
|
|
4628
|
-
|
|
4638
|
+
] }) }) : /* @__PURE__ */ c(
|
|
4639
|
+
Zn,
|
|
4629
4640
|
{
|
|
4630
4641
|
ref: _,
|
|
4631
4642
|
id: i,
|
|
@@ -4641,18 +4652,18 @@ const Yu = () => {
|
|
|
4641
4652
|
}
|
|
4642
4653
|
),
|
|
4643
4654
|
h && /* @__PURE__ */ m(Pa, { variant: "destructive", className: "mt-2", children: [
|
|
4644
|
-
/* @__PURE__ */
|
|
4655
|
+
/* @__PURE__ */ c(ii, { className: "h-4 w-4" }),
|
|
4645
4656
|
/* @__PURE__ */ m(wa, { className: "flex flex-col", children: [
|
|
4646
|
-
/* @__PURE__ */
|
|
4647
|
-
/* @__PURE__ */
|
|
4657
|
+
/* @__PURE__ */ c("span", { className: "font-medium", children: "Invalid JSON" }),
|
|
4658
|
+
/* @__PURE__ */ c("span", { className: "text-sm", children: h.message }),
|
|
4648
4659
|
h.line && h.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
|
|
4649
4660
|
"Error at line ",
|
|
4650
4661
|
h.line,
|
|
4651
4662
|
", column ",
|
|
4652
4663
|
h.column
|
|
4653
4664
|
] }),
|
|
4654
|
-
/* @__PURE__ */
|
|
4655
|
-
|
|
4665
|
+
/* @__PURE__ */ c(
|
|
4666
|
+
B,
|
|
4656
4667
|
{
|
|
4657
4668
|
type: "button",
|
|
4658
4669
|
variant: "link",
|
|
@@ -4666,12 +4677,12 @@ const Yu = () => {
|
|
|
4666
4677
|
] })
|
|
4667
4678
|
] }),
|
|
4668
4679
|
/* @__PURE__ */ m(fn, { value: "preview", className: "mt-0", children: [
|
|
4669
|
-
/* @__PURE__ */
|
|
4670
|
-
/* @__PURE__ */
|
|
4680
|
+
/* @__PURE__ */ c(Zn, { rows: a, value: y, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
|
|
4681
|
+
/* @__PURE__ */ c("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
|
|
4671
4682
|
] }),
|
|
4672
|
-
P && /* @__PURE__ */
|
|
4683
|
+
P && /* @__PURE__ */ c(fn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Fl, {}) }) })
|
|
4673
4684
|
] }) }) });
|
|
4674
|
-
},
|
|
4685
|
+
}, nd = (e) => {
|
|
4675
4686
|
const t = I(), n = C();
|
|
4676
4687
|
return se({
|
|
4677
4688
|
queryKey: [p.GET_CHAI_USER, e],
|
|
@@ -4686,7 +4697,7 @@ const Yu = () => {
|
|
|
4686
4697
|
staleTime: "static"
|
|
4687
4698
|
});
|
|
4688
4699
|
};
|
|
4689
|
-
class
|
|
4700
|
+
class Kl {
|
|
4690
4701
|
constructor(t) {
|
|
4691
4702
|
un(this, "channel");
|
|
4692
4703
|
this.channel = t;
|
|
@@ -4731,140 +4742,141 @@ class Fl {
|
|
|
4731
4742
|
return this.channel.presenceState();
|
|
4732
4743
|
}
|
|
4733
4744
|
}
|
|
4734
|
-
class
|
|
4745
|
+
class Vl {
|
|
4735
4746
|
constructor(t) {
|
|
4736
4747
|
un(this, "client");
|
|
4737
4748
|
this.client = t;
|
|
4738
4749
|
}
|
|
4739
4750
|
channel(t, n) {
|
|
4740
4751
|
const s = this.client.channel(t, n);
|
|
4741
|
-
return new
|
|
4752
|
+
return new Kl(s);
|
|
4742
4753
|
}
|
|
4743
4754
|
}
|
|
4744
|
-
function
|
|
4745
|
-
return new
|
|
4755
|
+
function sd(e) {
|
|
4756
|
+
return new Vl(e);
|
|
4746
4757
|
}
|
|
4747
4758
|
if (typeof window > "u")
|
|
4748
4759
|
throw new Error("@chaibuilder/pages is not available on the server");
|
|
4749
4760
|
export {
|
|
4750
|
-
|
|
4761
|
+
Nu as $,
|
|
4751
4762
|
p as A,
|
|
4752
|
-
|
|
4763
|
+
Vn as B,
|
|
4753
4764
|
K as C,
|
|
4754
|
-
|
|
4765
|
+
Yo as D,
|
|
4755
4766
|
re as E,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4767
|
+
ir as F,
|
|
4768
|
+
Uu as G,
|
|
4769
|
+
Ru as H,
|
|
4770
|
+
ku as I,
|
|
4760
4771
|
vn as J,
|
|
4761
4772
|
Ue as K,
|
|
4762
4773
|
Mt as L,
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4774
|
+
_c as M,
|
|
4775
|
+
Du as N,
|
|
4776
|
+
Ac as O,
|
|
4766
4777
|
ne as P,
|
|
4767
|
-
|
|
4778
|
+
Iu as Q,
|
|
4768
4779
|
mt as R,
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4780
|
+
Gu as S,
|
|
4781
|
+
Hn as T,
|
|
4782
|
+
Qu as U,
|
|
4783
|
+
zu as V,
|
|
4784
|
+
Pu as W,
|
|
4774
4785
|
wn as X,
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4786
|
+
Ku as Y,
|
|
4787
|
+
Ic as Z,
|
|
4788
|
+
Wu as _,
|
|
4778
4789
|
Se as a,
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4790
|
+
Bn as a$,
|
|
4791
|
+
_u as a0,
|
|
4792
|
+
Fu as a1,
|
|
4793
|
+
Hu as a2,
|
|
4794
|
+
Vu as a3,
|
|
4795
|
+
qu as a4,
|
|
4796
|
+
$u as a5,
|
|
4797
|
+
Lu as a6,
|
|
4787
4798
|
ee as a7,
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4799
|
+
sr as a8,
|
|
4800
|
+
vu as a9,
|
|
4801
|
+
Vs as aA,
|
|
4802
|
+
an as aB,
|
|
4803
|
+
qs as aC,
|
|
4804
|
+
Eu as aD,
|
|
4805
|
+
Au as aE,
|
|
4806
|
+
td as aF,
|
|
4807
|
+
_s as aG,
|
|
4808
|
+
pu as aH,
|
|
4798
4809
|
Tu as aI,
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4810
|
+
Su as aJ,
|
|
4811
|
+
yu as aK,
|
|
4812
|
+
wo as aL,
|
|
4813
|
+
Si as aM,
|
|
4814
|
+
Un as aN,
|
|
4815
|
+
Yi as aO,
|
|
4816
|
+
kl as aP,
|
|
4817
|
+
ed as aQ,
|
|
4818
|
+
Pi as aR,
|
|
4819
|
+
cu as aS,
|
|
4820
|
+
zs as aT,
|
|
4821
|
+
Yu as aU,
|
|
4822
|
+
Ce as aV,
|
|
4823
|
+
Zu as aW,
|
|
4824
|
+
_l as aX,
|
|
4825
|
+
Ju as aY,
|
|
4826
|
+
Xu as aZ,
|
|
4827
|
+
Bs as a_,
|
|
4828
|
+
bc as aa,
|
|
4829
|
+
gr as ab,
|
|
4819
4830
|
De as ac,
|
|
4820
|
-
|
|
4821
|
-
|
|
4831
|
+
ll as ad,
|
|
4832
|
+
Cu as ae,
|
|
4822
4833
|
Vt as af,
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4834
|
+
Pc as ag,
|
|
4835
|
+
Bu as ah,
|
|
4836
|
+
xu as ai,
|
|
4837
|
+
Ou as aj,
|
|
4827
4838
|
Ht as ak,
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4839
|
+
oc as al,
|
|
4840
|
+
Mu as am,
|
|
4841
|
+
zo as an,
|
|
4831
4842
|
Ui as ao,
|
|
4832
|
-
|
|
4843
|
+
nd as ap,
|
|
4833
4844
|
ki as aq,
|
|
4834
4845
|
I as ar,
|
|
4835
4846
|
C as as,
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4847
|
+
Sl as at,
|
|
4848
|
+
mu as au,
|
|
4849
|
+
Wt as av,
|
|
4839
4850
|
fe as aw,
|
|
4840
4851
|
gn as ax,
|
|
4841
4852
|
he as ay,
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4853
|
+
de as az,
|
|
4854
|
+
$s as b,
|
|
4855
|
+
No as b0,
|
|
4856
|
+
Vl as b1,
|
|
4857
|
+
sd as b2,
|
|
4846
4858
|
be as c,
|
|
4847
4859
|
ro as d,
|
|
4848
4860
|
js as e,
|
|
4849
4861
|
vo as f,
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4862
|
+
Qs as g,
|
|
4863
|
+
lu as h,
|
|
4864
|
+
uu as i,
|
|
4853
4865
|
Fe as j,
|
|
4854
|
-
|
|
4866
|
+
Kn as k,
|
|
4855
4867
|
Be as l,
|
|
4856
4868
|
Ge as m,
|
|
4857
4869
|
Ei as n,
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4870
|
+
du as o,
|
|
4871
|
+
pl as p,
|
|
4872
|
+
hu as q,
|
|
4873
|
+
gu as r,
|
|
4874
|
+
fu as s,
|
|
4863
4875
|
mn as t,
|
|
4864
|
-
|
|
4865
|
-
|
|
4876
|
+
ou as u,
|
|
4877
|
+
iu as v,
|
|
4866
4878
|
ju as w,
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4879
|
+
Z as x,
|
|
4880
|
+
hr as y,
|
|
4881
|
+
bu as z
|
|
4870
4882
|
};
|