@chaibuilder/sdk 4.0.0-beta.2 → 4.0.0-beta.3

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.
Files changed (111) hide show
  1. package/dist/{2SSKDMRQ-C4VFVd-q.cjs → 2SSKDMRQ-BnsZi3K3.cjs} +1 -1
  2. package/dist/{2SSKDMRQ-DSnzF_1o.js → 2SSKDMRQ-CnSDkQcy.js} +2 -2
  3. package/dist/{AP7HFJJL-B7YYCY9q.cjs → AP7HFJJL-B31839PG.cjs} +1 -1
  4. package/dist/{AP7HFJJL-Cxwj01Aq.js → AP7HFJJL-CymCmW14.js} +1 -1
  5. package/dist/{IconPicker-RqVvq6G2.js → IconPicker-B1rWC-Ex.js} +1 -1
  6. package/dist/{IconPicker-C9-ieDWm.cjs → IconPicker-DREyo007.cjs} +1 -1
  7. package/dist/{WDYDFRGG-C7aSUcjs.js → WDYDFRGG-BUVnbAci.js} +2 -2
  8. package/dist/{WDYDFRGG-b3T2SQbz.cjs → WDYDFRGG-BxhOCHc3.cjs} +1 -1
  9. package/dist/{active-in-another-tab-Clng6zpY.cjs → active-in-another-tab-B47YjQGN.cjs} +1 -1
  10. package/dist/{active-in-another-tab-wb8qolB8.js → active-in-another-tab-CyjngVA6.js} +2 -2
  11. package/dist/{add-new-language-page-C4BuMTaN.cjs → add-new-language-page-88xzrUy8.cjs} +1 -1
  12. package/dist/{add-new-language-page-D7NDABl1.js → add-new-language-page-WmlCnytQ.js} +3 -3
  13. package/dist/{add-new-page-B4hc0B-g.js → add-new-page-VW2wAYZp.js} +2 -2
  14. package/dist/{add-new-page-BNfwKjRd.cjs → add-new-page-soZ8GAkN.cjs} +1 -1
  15. package/dist/{ai-panel-content-DPy2jgKw.cjs → ai-panel-content-7zCil042.cjs} +1 -1
  16. package/dist/{ai-panel-content-BnbURb7j.js → ai-panel-content-D_o7Q_A-.js} +3 -3
  17. package/dist/{ai-panel-default-lang-3tCHzab5.cjs → ai-panel-default-lang-COYaxNwn.cjs} +2 -2
  18. package/dist/{ai-panel-default-lang-oVk4TDeb.js → ai-panel-default-lang-DnElspF0.js} +3 -3
  19. package/dist/{ai-panel-other-lang-BBHCCSen.cjs → ai-panel-other-lang-CkynNlAU.cjs} +1 -1
  20. package/dist/{ai-panel-other-lang-DmQ3QMDD.js → ai-panel-other-lang-Dp0E9_Hx.js} +3 -3
  21. package/dist/{ai-prompt-input-DaTyfib-.js → ai-prompt-input-Bhc0ds7X.js} +1 -1
  22. package/dist/{ai-prompt-input-b5ty81RB.cjs → ai-prompt-input-CThbVp0_.cjs} +1 -1
  23. package/dist/{ai-translation-prompt-c0Q3zkT2.cjs → ai-translation-prompt-C2kJQFDX.cjs} +1 -1
  24. package/dist/{ai-translation-prompt-DJPe2O-n.js → ai-translation-prompt-CZ55HQmo.js} +2 -2
  25. package/dist/{code-display-Q3_sK_Ta.cjs → code-display-BnqzqzoP.cjs} +1 -1
  26. package/dist/{code-display-BzBq5xSn.js → code-display-DhD_RBcg.js} +1 -1
  27. package/dist/{code-editor-DWWnphW9.js → code-editor-DRIAnNbb.js} +1 -1
  28. package/dist/{code-editor-BQZi6-FB.cjs → code-editor-o3___nu2.cjs} +1 -1
  29. package/dist/{continue-editing-in-this-client-BllU94XG.js → continue-editing-in-this-client-CS2aQ7yY.js} +2 -2
  30. package/dist/{continue-editing-in-this-client-D9HyD4GP.cjs → continue-editing-in-this-client-CtMYsk-A.cjs} +1 -1
  31. package/dist/core.cjs +1 -1
  32. package/dist/core.js +1 -1
  33. package/dist/{css-import-modal-D72a-16X.js → css-import-modal-Byg6wV0O.js} +3 -4
  34. package/dist/css-import-modal-CyqkXWCO.cjs +13 -0
  35. package/dist/{delete-design-token-Cd1ZDtqT.js → delete-design-token-BRZZiWtQ.js} +1 -1
  36. package/dist/{delete-design-token-D_TLlO3I.cjs → delete-design-token-DkVs1oBf.cjs} +1 -1
  37. package/dist/{delete-page-DC8pzvWW.js → delete-page-BzyX9TN-.js} +2 -2
  38. package/dist/{delete-page-ByQwBupJ.cjs → delete-page-DxX7PFIE.cjs} +1 -1
  39. package/dist/{design-token-usage-BqZeR1sT.cjs → design-token-usage-CAHzEGgJ.cjs} +1 -1
  40. package/dist/{design-token-usage-DE4XCDdn.js → design-token-usage-xQs6SlaJ.js} +1 -1
  41. package/dist/{digital-asset-manager-BYLKFEYi.cjs → digital-asset-manager--uO8Agia.cjs} +1 -1
  42. package/dist/{digital-asset-manager-C_gL_0YY.js → digital-asset-manager-DbtwzxRz.js} +3 -3
  43. package/dist/{duplicate-page-BoVhko2q.js → duplicate-page-BR7Dlo9d.js} +3 -3
  44. package/dist/{duplicate-page-vdvwLQLo.cjs → duplicate-page-CaNAbXwV.cjs} +1 -1
  45. package/dist/{dynamic-page-selector-CSndg2-y.js → dynamic-page-selector-Cb5r_W8s.js} +2 -2
  46. package/dist/{dynamic-page-selector-DdnbCuQZ.cjs → dynamic-page-selector-Cxk_gjni.cjs} +1 -1
  47. package/dist/{image-editor-oypq8asR.js → image-editor-DV8kUKhl.js} +1 -1
  48. package/dist/{image-editor-DTspjj_c.cjs → image-editor-G-K28aTS.cjs} +1 -1
  49. package/dist/{index-S8ibZk9Q.js → index-Ct7ElCGK.js} +6 -6
  50. package/dist/{index-CnSjWE1P.cjs → index-DF5DEvqb.cjs} +2 -2
  51. package/dist/{index-CbwxUFy_.cjs → index-WQwzsC7A.cjs} +3 -3
  52. package/dist/{index-BDnwJqMw.js → index-ZuacEL1j.js} +122 -122
  53. package/dist/{json-diff-viewer-XX1pgabt.cjs → json-diff-viewer-D7z4zNvv.cjs} +1 -1
  54. package/dist/{json-diff-viewer-B5dr-Y_L.js → json-diff-viewer-krslPepD.js} +2 -2
  55. package/dist/{lang-panel-Cn83SRzd.js → lang-panel-BwIewMyw.js} +3 -3
  56. package/dist/{lang-panel-BPxex-M2.cjs → lang-panel-DT96k1xg.cjs} +1 -1
  57. package/dist/{manage-design-tokens-lP4HLS0P.js → manage-design-tokens-Caz_20VK.js} +2 -2
  58. package/dist/{manage-design-tokens-ConiyuPr.cjs → manage-design-tokens-CrmLe7UT.cjs} +1 -1
  59. package/dist/{mark-as-template-jncsjfHm.js → mark-as-template-D295ZQtU.js} +2 -2
  60. package/dist/{mark-as-template-DYRxre1f.cjs → mark-as-template-W3LmpiqN.cjs} +1 -1
  61. package/dist/{nested-path-selector-content-B-8LqhXI.js → nested-path-selector-content-CKYYK-C5.js} +1 -1
  62. package/dist/{nested-path-selector-content-BYtLi7mC.cjs → nested-path-selector-content-CoS_d3dc.cjs} +1 -1
  63. package/dist/{no-language-page-content-D_zd9Rb0.js → no-language-page-content-BvqRBP6y.js} +2 -2
  64. package/dist/{no-language-page-content-DAbLq0gX.cjs → no-language-page-content-DkfeMl90.cjs} +1 -1
  65. package/dist/{no-language-page-dialog-fXmbQO7L.cjs → no-language-page-dialog-BcEoqyQB.cjs} +1 -1
  66. package/dist/{no-language-page-dialog-C5Ps6YYL.js → no-language-page-dialog-PjNqTUpl.js} +2 -2
  67. package/dist/{page-creator-VWIB2VAs.cjs → page-creator-C4gc5NSC.cjs} +1 -1
  68. package/dist/{page-creator-wCMtlE6Z.js → page-creator-DiOITEMw.js} +3 -3
  69. package/dist/{page-lock-DweiYy1w.cjs → page-lock-BdYmCks0.cjs} +1 -1
  70. package/dist/{page-lock-BPCxfv9J.js → page-lock-Bfbs6RgL.js} +2 -2
  71. package/dist/{page-locked-dialog-BlbgvaG2.cjs → page-locked-dialog-B1FAtK92.cjs} +1 -1
  72. package/dist/{page-locked-dialog-ByGl18_m.js → page-locked-dialog-B6MKTRfY.js} +2 -2
  73. package/dist/{page-manager-new-D0lGfNnS.cjs → page-manager-new-CHDueBDk.cjs} +1 -1
  74. package/dist/{page-manager-new-BWFE-S-O.js → page-manager-new-CzX22g2n.js} +3 -3
  75. package/dist/{page-manager-search-and-filter-kNJFWJ86.js → page-manager-search-and-filter-CM0UMb6U.js} +2 -2
  76. package/dist/{page-manager-search-and-filter-DpGMoOII.cjs → page-manager-search-and-filter-DkkRIH86.cjs} +1 -1
  77. package/dist/{page-revisions-content-DYxXZqmh.cjs → page-revisions-content-ChY-4f2V.cjs} +1 -1
  78. package/dist/{page-revisions-content-Ulr8slUN.js → page-revisions-content-NH9JK4Ey.js} +3 -3
  79. package/dist/pages.cjs +1 -1
  80. package/dist/pages.d.ts +18 -19
  81. package/dist/pages.js +12 -12
  82. package/dist/{publish-pages-content-BTPzt_m4.js → publish-pages-content-D9aixMN5.js} +3 -3
  83. package/dist/{publish-pages-content-D6g8GAsd.cjs → publish-pages-content-x-JuSFJ9.cjs} +1 -1
  84. package/dist/{rte-widget-modal-DrMzWWjw.cjs → rte-widget-modal-BaHIuEjF.cjs} +1 -1
  85. package/dist/{rte-widget-modal-Rk_NW3KU.js → rte-widget-modal-DOJEXLIf.js} +1 -1
  86. package/dist/{save-to-lib-DHHUO12i.cjs → save-to-lib-Cgpxw8-g.cjs} +1 -1
  87. package/dist/{save-to-lib-BK3uTFss.js → save-to-lib-eiOc_SSN.js} +2 -2
  88. package/dist/{selected-block-display-DSFhddPj.cjs → selected-block-display-BgRY82CT.cjs} +1 -1
  89. package/dist/{selected-block-display-CU3TwIMA.js → selected-block-display-CBFePS19.js} +2 -2
  90. package/dist/{seo-panel-jbzxFioc.js → seo-panel-C1-iMOR1.js} +2 -2
  91. package/dist/{seo-panel-Dl0IDV09.cjs → seo-panel-DfAb8U7W.cjs} +1 -1
  92. package/dist/{shared-json-ld-BL_dv3_q.js → shared-json-ld-B4PxAM_0.js} +2 -2
  93. package/dist/{shared-json-ld-DPNkqDC1.cjs → shared-json-ld-DzG398hr.cjs} +1 -1
  94. package/dist/{slug-input-1qwKkXhA.js → slug-input-AwNJs9im.js} +1 -1
  95. package/dist/{slug-input-YVLjtTI3.cjs → slug-input-C_ijLQ_X.cjs} +1 -1
  96. package/dist/{take-over-request-DvMIg_cZ.cjs → take-over-request-BNxcjY2j.cjs} +1 -1
  97. package/dist/{take-over-request-DKvKi3mM.js → take-over-request-C4FeDtN_.js} +2 -2
  98. package/dist/{theme-panel-footer-BMOaPLWc.cjs → theme-panel-footer-Cq9pljro.cjs} +1 -1
  99. package/dist/{theme-panel-footer-DbMDLYGI.js → theme-panel-footer-uBQqSJXm.js} +2 -2
  100. package/dist/{translation-warning-modal-9wTwIy_9.js → translation-warning-modal-B64YqlbI.js} +1 -1
  101. package/dist/{translation-warning-modal-DjTwz75c.cjs → translation-warning-modal-BZAcwM2_.cjs} +1 -1
  102. package/dist/{unmark-as-template-Dulvf7Zw.js → unmark-as-template-CZ9sQp_P.js} +2 -2
  103. package/dist/{unmark-as-template-CdqIJJER.cjs → unmark-as-template-EVvk0vmp.cjs} +1 -1
  104. package/dist/{unpublish-page-Degu5Cy9.js → unpublish-page-D4VwOlxc.js} +2 -2
  105. package/dist/{unpublish-page-BwSVBf0_.cjs → unpublish-page-bdSmwAVQ.cjs} +1 -1
  106. package/dist/web-blocks.cjs +1 -1
  107. package/dist/web-blocks.js +42 -42
  108. package/dist/{web-preview-YzKxyXft.cjs → web-preview-Cio70gk5.cjs} +1 -1
  109. package/dist/{web-preview-DXE4Jnf5.js → web-preview-Djy6WIyj.js} +2 -2
  110. package/package.json +1 -1
  111. package/dist/css-import-modal-BSMGKA2T.cjs +0 -13
@@ -4,11 +4,11 @@ var Qn = (e) => {
4
4
  var zn = (e, t, n) => t.has(e) || Qn("Cannot " + n);
5
5
  var A = (e, t, n) => (zn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), O = (e, t, n) => t.has(e) ? Qn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), C = (e, t, n, s) => (zn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
6
6
  import { jsxs as m, jsx as c, Fragment as he } from "react/jsx-runtime";
7
- import { n as Pe, an as Rr, am as Ts, r as Ln, s as Cn, t as Gn, v as ce, V as Re, w as en, x as tn, B as M, y as nn, aH as Ss, aI as _s, ac as Ur, ad as Mr, aJ as Br, aK as Fr, aw as Ps, aL as Kr, ae as Dt, D as ws, aM as Vr, aG as Hr, aN as qr, aO as $r, aB as Qr, aA as zr, aC as Wr, G as jr, H as Yr, J as Jr, K as Zr, M as Xr, O as ea, Q as ta, R as na, U as sa, aP as kt, aQ as Wn, aR as ra, aS as aa, aT as ia, aU as oa, a9 as la, aa as ca, d as ua, e as da, f as fa, ax as ha, ay as ga, az as cn, aV as un, T as jn, A as ma, av as Ea } from "./index-S8ibZk9Q.js";
7
+ import { n as Pe, an as Rr, am as Ts, r as Ln, s as Cn, t as Gn, v as ce, V as Re, w as en, x as tn, B as M, y as nn, aH as Ss, aI as _s, ac as Ur, ad as Mr, aJ as Br, aK as Fr, aw as Ps, aL as Kr, ae as Dt, D as ws, aM as Vr, aG as Hr, aN as qr, aO as $r, aB as Qr, aA as zr, aC as Wr, G as jr, H as Yr, J as Jr, K as Zr, M as Xr, O as ea, Q as ta, R as na, U as sa, aP as kt, aQ as Wn, aR as ra, aS as aa, aT as ia, aU as oa, a9 as la, aa as ca, d as ua, e as da, f as fa, ax as ha, ay as ga, az as cn, aV as un, T as jn, A as ma, av as Ea } from "./index-Ct7ElCGK.js";
8
8
  import { atom as Ee, useAtom as pe, useSetAtom as On, useAtomValue as pa } from "jotai";
9
- import { get as H, reverse as ya, sortBy as Aa, find as ie, noop as vs, minBy as Is, values as bs, first as Ns, groupBy as Ta, keyBy as Sa, map as qt, isEmpty as fe, compact as Ls, each as _a, upperCase as Yn, filter as Cs, includes as Pa, has as sn, pickBy as wa, pick as xn, endsWith as va, keys as Ia, isArray as ba, startCase as Na, isFunction as La, cloneDeep as Ca, isEqual as Jn } from "lodash-es";
9
+ import { get as H, reverse as ya, sortBy as Aa, find as ie, noop as vs, minBy as bs, values as Is, first as Ns, groupBy as Ta, keyBy as Sa, map as qt, isEmpty as fe, compact as Ls, each as _a, upperCase as Yn, filter as Cs, includes as Pa, has as sn, pickBy as wa, pick as xn, endsWith as va, keys as ba, isArray as Ia, startCase as Na, isFunction as La, cloneDeep as Ca, isEqual as Jn } from "lodash-es";
10
10
  import * as $ from "react";
11
- import Ga, { useMemo as q, useCallback as z, useState as K, useEffect as se, useRef as be, Suspense as X, lazy as V } from "react";
11
+ import Ga, { useMemo as q, useCallback as z, useState as K, useEffect as se, useRef as Ie, Suspense as X, lazy as V } from "react";
12
12
  import { useQuery as re, useMutation as Y, useQueryClient as J, onlineManager as Gs, QueryClient as Oa, QueryClientProvider as xa } from "@tanstack/react-query";
13
13
  import { CopyPlusIcon as Da, Pencil as ka, Power as Ra, Trash as Ua, SquareLibrary as Zn, LogsIcon as Ma, Folder as Ba, Loader as $t, Hash as Fa, File as Ka, MoreHorizontal as Xn, Languages as es, ChevronDown as yn, Star as Va, Plus as Os, History as Ha, Palette as qa, Play as $a, CheckCircle as Qa, Save as za, Send as ts, Rocket as ns, ExternalLink as Wa, LanguagesIcon as ja, User as Ya, X as ss, Trash2 as Ja, ImageIcon as rs, Code as Za, Eye as Xa, Share2 as ei, FileCode2 as ti, AlertTriangle as ni } from "lucide-react";
14
14
  import { useTranslation as we } from "react-i18next";
@@ -85,7 +85,7 @@ const zt = Ee(null), E = {
85
85
  }, li = Ee({}), Dn = () => pe(li), ge = (e, t) => {
86
86
  const [n] = Dn();
87
87
  return q(() => H(n, e, t), [n, e, t]);
88
- }, I = () => ge("apiUrl", "/chai/api"), xs = () => ge("websocket", null), ci = async (e, t, n = {}) => await fetch(e, {
88
+ }, b = () => ge("apiUrl", "/chai/api"), xs = () => ge("websocket", null), ci = async (e, t, n = {}) => await fetch(e, {
89
89
  method: "POST",
90
90
  headers: {
91
91
  "Content-Type": "application/json",
@@ -93,7 +93,7 @@ const zt = Ee(null), E = {
93
93
  },
94
94
  body: JSON.stringify(t)
95
95
  }), zc = () => {
96
- const e = b(), t = I();
96
+ const e = I(), t = b();
97
97
  return z(
98
98
  async ({
99
99
  body: n,
@@ -103,8 +103,8 @@ const zt = Ee(null), E = {
103
103
  }) => e(r, n, s, a),
104
104
  [e]
105
105
  );
106
- }, b = () => {
107
- const e = ge("onLogout"), t = ge("getAccessToken"), n = I();
106
+ }, I = () => {
107
+ const e = ge("onLogout"), t = ge("getAccessToken"), n = b();
108
108
  return z(
109
109
  async (s = n, r, a = {}, i = !1) => {
110
110
  const o = await t();
@@ -148,7 +148,7 @@ function ve() {
148
148
  }, []), [e, t];
149
149
  }
150
150
  const Me = (e) => {
151
- const t = I(), [n] = ve(), s = e ?? n.get("page"), r = b();
151
+ const t = b(), [n] = ve(), s = e ?? n.get("page"), r = I();
152
152
  return re({
153
153
  queryKey: [E.GET_LANGUAGE_PAGES, s],
154
154
  staleTime: 1 / 0,
@@ -176,7 +176,7 @@ function di(e, t) {
176
176
  }, [e, t]), n;
177
177
  }
178
178
  const fi = ({ query: e, uuid: t }) => {
179
- const { selectedLang: n, fallbackLang: s } = Pe(), { data: r } = oe(), a = r == null ? void 0 : r.pageType, i = I(), o = b(), { data: l, isFetching: f } = re({
179
+ const { selectedLang: n, fallbackLang: s } = Pe(), { data: r } = oe(), a = r == null ? void 0 : r.pageType, i = b(), o = I(), { data: l, isFetching: f } = re({
180
180
  queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
181
181
  staleTime: 3600 * 1e3,
182
182
  placeholderData: [],
@@ -232,7 +232,7 @@ const fi = ({ query: e, uuid: t }) => {
232
232
  DELETE_REVISION: "delete_revision",
233
233
  DELETE_LIBRARY_BLOCK: "delete_library_block"
234
234
  }, Ce = () => {
235
- const e = I(), t = b();
235
+ const e = b(), t = I();
236
236
  return re({
237
237
  queryKey: [E.GET_PAGE_TYPES],
238
238
  staleTime: 1 / 0,
@@ -243,7 +243,7 @@ const fi = ({ query: e, uuid: t }) => {
243
243
  const { data: t } = Ce();
244
244
  return q(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
245
245
  }, Ai = () => {
246
- const e = I(), t = b();
246
+ const e = b(), t = I();
247
247
  return Y({
248
248
  mutationFn: async ({ pageType: n, query: s }) => {
249
249
  try {
@@ -357,7 +357,7 @@ const fi = ({ query: e, uuid: t }) => {
357
357
  ] })
358
358
  ] });
359
359
  }, Be = () => {
360
- const e = I(), t = b();
360
+ const e = b(), t = I();
361
361
  return re({
362
362
  queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS],
363
363
  staleTime: 300 * 1e3,
@@ -404,13 +404,13 @@ const fi = ({ query: e, uuid: t }) => {
404
404
  ne.FORCE_TAKE_OVER_REQUEST,
405
405
  ne.CONTINUE_EDITING_IN_THIS_CLIENT,
406
406
  ne.CONTINUE_EDITING_IN_THIS_TAB_REQUEST
407
- ], Pi = Ee({}), Rs = Ee(null), wi = Ee(te.CHECKING), vi = Ee({}), Ii = (e) => {
408
- const t = {}, n = Ta(bs(e).map(Ns).filter(Boolean), "pageId");
407
+ ], Pi = Ee({}), Rs = Ee(null), wi = Ee(te.CHECKING), vi = Ee({}), bi = (e) => {
408
+ const t = {}, n = Ta(Is(e).map(Ns).filter(Boolean), "pageId");
409
409
  return Object.entries(n).forEach(
410
- ([s, r]) => t[s] = Is(r, "onlineAt")
410
+ ([s, r]) => t[s] = bs(r, "onlineAt")
411
411
  ), t;
412
- }, bi = (e) => {
413
- const t = Is(bs(e).map(Ns).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
412
+ }, Ii = (e) => {
413
+ const t = bs(Is(e).map(Ns).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
414
414
  return n ? n - 100 : +/* @__PURE__ */ new Date() - 1e3 * 60 * 60 * 4;
415
415
  }, rn = () => {
416
416
  const { user: e } = Rn();
@@ -444,12 +444,12 @@ const Us = () => {
444
444
  }, 500), () => clearTimeout(dn);
445
445
  }, [e, t]), n;
446
446
  }, Ci = () => {
447
- const e = Ct(), t = rn(), n = Un(), { setPageToUser: s } = Us(), { setPageStatus: r, pageStatus: a } = ye(), i = be(e);
447
+ const e = Ct(), t = rn(), n = Un(), { setPageToUser: s } = Us(), { setPageStatus: r, pageStatus: a } = ye(), i = Ie(e);
448
448
  return i.current = e, z(
449
449
  (o) => {
450
450
  const l = o || n;
451
451
  if (!l) return [];
452
- const f = l == null ? void 0 : l.presenceState(), d = Ii(f);
452
+ const f = l == null ? void 0 : l.presenceState(), d = bi(f);
453
453
  s(d);
454
454
  const u = d[i.current];
455
455
  if (!u)
@@ -465,7 +465,7 @@ const Us = () => {
465
465
  [n, s, r, t, a]
466
466
  );
467
467
  }, Gi = () => {
468
- const e = rn(), t = Ct(), n = Un(), s = Li(), { setPageLockMeta: r } = Ms(), a = be(t);
468
+ const e = rn(), t = Ct(), n = Un(), s = Li(), { setPageLockMeta: r } = Ms(), a = Ie(t);
469
469
  return a.current = t, z(
470
470
  async (i, o) => {
471
471
  if (!n) return;
@@ -475,7 +475,7 @@ const Us = () => {
475
475
  [n, e, s, r]
476
476
  );
477
477
  }, Oi = () => {
478
- const e = rn(), t = Ct(), n = Un(), { setPageStatus: s } = ye(), { setPageLockMeta: r } = Ms(), a = Gi(), i = be(t), { savePageAsync: o } = Re();
478
+ const e = rn(), t = Ct(), n = Un(), { setPageStatus: s } = ye(), { setPageLockMeta: r } = Ms(), a = Gi(), i = Ie(t), { savePageAsync: o } = Re();
479
479
  return i.current = t, z(
480
480
  (l) => async ({ payload: f }) => {
481
481
  const d = f || {};
@@ -496,7 +496,7 @@ const Us = () => {
496
496
  break;
497
497
  }
498
498
  case ne.CONTINUE_EDITING_IN_THIS_CLIENT: {
499
- const u = bi(n == null ? void 0 : n.presenceState());
499
+ const u = Ii(n == null ? void 0 : n.presenceState());
500
500
  s(te.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: u, pageId: i.current, userId: e, clientId: Ue }));
501
501
  break;
502
502
  }
@@ -509,7 +509,7 @@ const Us = () => {
509
509
  [a, r, s, n, e, o]
510
510
  );
511
511
  }, Wc = () => {
512
- const e = xs(), t = rn(), n = Ct(), s = Ni(), [r, a] = pe(Rs), i = Oi(), o = Ci(), l = be(i), f = be(o);
512
+ const e = xs(), t = rn(), n = Ct(), s = Ni(), [r, a] = pe(Rs), i = Oi(), o = Ci(), l = Ie(i), f = Ie(o);
513
513
  se(() => {
514
514
  l.current = i, f.current = o;
515
515
  }, [i, o]), se(() => {
@@ -545,7 +545,7 @@ const Us = () => {
545
545
  [e]
546
546
  );
547
547
  }, Bs = () => {
548
- const e = b(), t = I();
548
+ const e = I(), t = b();
549
549
  return re({
550
550
  queryKey: [E.GET_WEBSITE_PAGES],
551
551
  staleTime: 1e3 * 60 * 5,
@@ -553,7 +553,7 @@ const Us = () => {
553
553
  placeholderData: (n) => n || []
554
554
  });
555
555
  }, jc = (e) => {
556
- const t = b(), n = I(), s = Mn();
556
+ const t = I(), n = b(), s = Mn();
557
557
  return re({
558
558
  queryKey: [E.GET_WEBSITE_PAGES, e, s],
559
559
  staleTime: 1e3 * 60 * 5,
@@ -573,7 +573,7 @@ function Fs(e, t, n = !1) {
573
573
  const s = e.toString() ? `?${e.toString()}` : "/";
574
574
  n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
575
575
  }
576
- const xi = V(() => import("./page-manager-new-BWFE-S-O.js")), Ks = ({ children: e }) => {
576
+ const xi = V(() => import("./page-manager-new-CzX22g2n.js")), Ks = ({ children: e }) => {
577
577
  const { t } = we(), [n, s] = ve(), r = n.get("page"), { data: a, isFetching: i } = oe(), { data: o, isFetching: l } = Bs(), [f, d] = K(!1), [u, g] = K(!0), { savePage: h } = Re(), p = !!r && !fe(a), { isLocked: T } = ye(), S = q(() => {
578
578
  if (!o || l) return !1;
579
579
  const v = o.find((U) => U.slug === "/");
@@ -621,7 +621,7 @@ const xi = V(() => import("./page-manager-new-BWFE-S-O.js")), Ks = ({ children:
621
621
  }
622
622
  ) })
623
623
  ] });
624
- }, Di = V(() => import("./add-new-page-B4hc0B-g.js")), ki = V(() => import("./delete-page-DC8pzvWW.js")), Ri = V(() => import("./duplicate-page-BoVhko2q.js")), Ui = V(() => import("./mark-as-template-jncsjfHm.js")), Mi = V(() => import("./unmark-as-template-Dulvf7Zw.js")), Bi = V(() => import("./unpublish-page-Degu5Cy9.js")), Fi = () => {
624
+ }, Di = V(() => import("./add-new-page-VW2wAYZp.js")), ki = V(() => import("./delete-page-BzyX9TN-.js")), Ri = V(() => import("./duplicate-page-BR7Dlo9d.js")), Ui = V(() => import("./mark-as-template-D295ZQtU.js")), Mi = V(() => import("./unmark-as-template-CZ9sQp_P.js")), Bi = V(() => import("./unpublish-page-D4VwOlxc.js")), Fi = () => {
625
625
  const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, f] = K(null), [d, u] = K(null), { data: g, isFetching: h } = Le(), { selectedLang: p, fallbackLang: T } = Pe(), { data: S } = Me(), x = S == null ? void 0 : S.find((N) => N.lang === p), { isLocked: y } = ye(), w = !(g != null && g.slug), v = On(zt);
626
626
  if (!g) return null;
627
627
  const U = (N) => {
@@ -890,7 +890,7 @@ const xi = V(() => import("./page-manager-new-BWFE-S-O.js")), Ks = ({ children:
890
890
  yo: "Yoruba",
891
891
  za: "Zhuang, Chuang",
892
892
  zu: "Zulu"
893
- }, Vi = V(() => import("./add-new-language-page-D7NDABl1.js")), Hi = () => {
893
+ }, Vi = V(() => import("./add-new-language-page-WmlCnytQ.js")), Hi = () => {
894
894
  const e = ge("topLeftCorner", null);
895
895
  return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Ga.createElement(e, {}) }) : null;
896
896
  }, qi = ({
@@ -1033,7 +1033,7 @@ function Qi() {
1033
1033
  /* @__PURE__ */ c(Dt, { className: "h-8 w-8 rounded-full" })
1034
1034
  ] }, t)) });
1035
1035
  }
1036
- const zi = $.lazy(() => import("./page-revisions-content-Ulr8slUN.js"));
1036
+ const zi = $.lazy(() => import("./page-revisions-content-NH9JK4Ey.js"));
1037
1037
  function Wi() {
1038
1038
  const [e, t] = $.useState(!1);
1039
1039
  return /* @__PURE__ */ c(Ps, { children: /* @__PURE__ */ m(en, { delayDuration: 0, children: [
@@ -1061,7 +1061,7 @@ const fn = ({
1061
1061
  }, ji = {
1062
1062
  SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
1063
1063
  }, Yc = () => {
1064
- const e = I(), t = J(), n = b(), { data: s } = Ce();
1064
+ const e = b(), t = J(), n = I(), { data: s } = Ce();
1065
1065
  return Y({
1066
1066
  mutationFn: async (r) => await n(e, {
1067
1067
  action: E.CREATE_PAGE,
@@ -1087,7 +1087,7 @@ const fn = ({
1087
1087
  }
1088
1088
  });
1089
1089
  }, Jc = () => {
1090
- const e = I(), t = J(), n = b(), { data: s } = Le(), { data: r } = Ce();
1090
+ const e = b(), t = J(), n = I(), { data: s } = Le(), { data: r } = Ce();
1091
1091
  return Y({
1092
1092
  mutationFn: async (a) => await n(e, {
1093
1093
  action: E.UPDATE_PAGE,
@@ -1112,7 +1112,7 @@ const fn = ({
1112
1112
  }
1113
1113
  });
1114
1114
  }, Zc = () => {
1115
- const e = I(), t = J(), n = b(), { data: s } = Ce();
1115
+ const e = b(), t = J(), n = I(), { data: s } = Ce();
1116
1116
  return Y({
1117
1117
  mutationFn: async (r) => n(e, {
1118
1118
  action: E.DELETE_PAGE,
@@ -1141,7 +1141,7 @@ const fn = ({
1141
1141
  }
1142
1142
  });
1143
1143
  }, Xc = () => {
1144
- const e = I(), t = J(), n = b(), { data: s } = Ce();
1144
+ const e = b(), t = J(), n = I(), { data: s } = Ce();
1145
1145
  return Y({
1146
1146
  mutationFn: async (r) => n(e, {
1147
1147
  action: E.TAKE_OFFLINE,
@@ -1166,7 +1166,7 @@ const fn = ({
1166
1166
  }
1167
1167
  });
1168
1168
  }, Hs = () => {
1169
- const e = I(), t = b(), n = J(), { data: s } = oe(), { savePageAsync: r } = Re();
1169
+ const e = b(), t = I(), n = J(), { data: s } = oe(), { savePageAsync: r } = Re();
1170
1170
  return Y({
1171
1171
  mutationFn: async ({ ids: a }) => (await r(), t(e, {
1172
1172
  action: E.PUBLISH_CHANGES,
@@ -1186,7 +1186,7 @@ const fn = ({
1186
1186
  }
1187
1187
  });
1188
1188
  }, eu = () => {
1189
- const e = I(), t = b(), n = J();
1189
+ const e = b(), t = I(), n = J();
1190
1190
  return Y({
1191
1191
  mutationFn: async (s) => {
1192
1192
  var r;
@@ -1211,7 +1211,7 @@ const fn = ({
1211
1211
  }
1212
1212
  });
1213
1213
  }, tu = () => {
1214
- const e = I(), t = b(), n = J();
1214
+ const e = b(), t = I(), n = J();
1215
1215
  return Y({
1216
1216
  mutationFn: async (s) => t(e, {
1217
1217
  action: E.UNMARK_AS_TEMPLATE,
@@ -1227,7 +1227,7 @@ const fn = ({
1227
1227
  }
1228
1228
  });
1229
1229
  }, nu = () => {
1230
- const e = I(), t = b(), n = J();
1230
+ const e = b(), t = I(), n = J();
1231
1231
  return Y({
1232
1232
  mutationFn: async ({ id: s, slug: r }) => t(e, {
1233
1233
  action: E.CHANGE_SLUG,
@@ -1244,7 +1244,7 @@ const fn = ({
1244
1244
  R.error("Failed to change slug");
1245
1245
  }
1246
1246
  });
1247
- }, Yi = V(() => import("./publish-pages-content-BTPzt_m4.js"));
1247
+ }, Yi = V(() => import("./publish-pages-content-D9aixMN5.js"));
1248
1248
  function Ji({
1249
1249
  showModal: e = !1,
1250
1250
  onClose: t = () => console.log("Cancelled")
@@ -1297,8 +1297,8 @@ function Bn({
1297
1297
  /* @__PURE__ */ c(nn, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
1298
1298
  ] }) }) : e;
1299
1299
  }
1300
- const no = V(() => import("./unpublish-page-Degu5Cy9.js")), so = V(
1301
- () => import("./translation-warning-modal-9wTwIy_9.js")
1300
+ const no = V(() => import("./unpublish-page-D4VwOlxc.js")), so = V(
1301
+ () => import("./translation-warning-modal-B64YqlbI.js")
1302
1302
  ), ro = () => {
1303
1303
  const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Pe(), s = ge("getPreviewUrl", async (g) => g), [r, a] = K(""), { data: i } = oe(), { data: o } = Me(), { data: l } = Ce(), f = q(
1304
1304
  () => {
@@ -1498,7 +1498,7 @@ function lo() {
1498
1498
  /* @__PURE__ */ c(fn, { permission: le.PUBLISH_PAGE, children: /* @__PURE__ */ c(oo, {}) })
1499
1499
  ] });
1500
1500
  }
1501
- const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1501
+ const co = V(() => import("./dynamic-page-selector-Cb5r_W8s.js")), uo = () => {
1502
1502
  const { dynamicPage: e, allLangPages: t, isFetching: n } = hi(), s = t.length > 0;
1503
1503
  return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
1504
1504
  !e && /* @__PURE__ */ c(Ki, { hasDynamicPage: s }),
@@ -1562,7 +1562,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1562
1562
  [e]
1563
1563
  ), aiContext: t };
1564
1564
  }, go = () => {
1565
- const e = I(), { aiContext: t } = qs(), n = b();
1565
+ const e = b(), { aiContext: t } = qs(), n = I();
1566
1566
  return z(
1567
1567
  async (s, r, a, i) => n(e, {
1568
1568
  action: E.ASK_AI,
@@ -1575,7 +1575,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1575
1575
  const s = ri(n._type);
1576
1576
  return {
1577
1577
  ...s,
1578
- ...xn(n, [...Ia(s), "_type", "_id", "_name", "_parent", "_bindings"]),
1578
+ ...xn(n, [...ba(s), "_type", "_id", "_name", "_parent", "_bindings"]),
1579
1579
  ...wa(n, (r, a) => va(a, "_attrs")),
1580
1580
  ...n
1581
1581
  };
@@ -1589,7 +1589,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1589
1589
  return { blocks: mo(t, n) };
1590
1590
  }, [e, t]);
1591
1591
  }, po = () => {
1592
- const [e] = ve(), t = e.get("page"), n = I(), { setAiContext: s } = qs(), [, r] = ks(), [, a] = Ei(), [, i] = qr(), o = b();
1592
+ const [e] = ve(), t = e.get("page"), n = b(), { setAiContext: s } = qs(), [, r] = ks(), [, a] = Ei(), [, i] = qr(), o = I();
1593
1593
  return re({
1594
1594
  queryKey: [E.GET_DRAFT_PAGE, t],
1595
1595
  staleTime: 1 / 0,
@@ -1605,7 +1605,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1605
1605
  enabled: !!t
1606
1606
  });
1607
1607
  }, yo = () => {
1608
- const { data: e } = oe(), { data: t } = Le(), n = I(), s = b(), r = Mn(), a = kn();
1608
+ const { data: e } = oe(), { data: t } = Le(), n = b(), s = I(), r = Mn(), a = kn();
1609
1609
  return re({
1610
1610
  queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
1611
1611
  staleTime: 1 / 0,
@@ -1635,7 +1635,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1635
1635
  enabled: !!(e != null && e.pageType) && !!t.id
1636
1636
  });
1637
1637
  }, Ao = () => {
1638
- const e = I(), t = J(), n = b();
1638
+ const e = b(), t = J(), n = I();
1639
1639
  return Y({
1640
1640
  mutationFn: async (s) => n(e, {
1641
1641
  action: E.UPDATE_WEBSITE_SETTINGS,
@@ -1654,7 +1654,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1654
1654
  }
1655
1655
  });
1656
1656
  }, su = () => {
1657
- const e = I(), t = J(), n = b(), { selectedLang: s } = Pe();
1657
+ const e = b(), t = J(), n = I(), { selectedLang: s } = Pe();
1658
1658
  return Y({
1659
1659
  mutationFn: async (r) => n(e, { action: E.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
1660
1660
  onSuccess: () => {
@@ -1669,7 +1669,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1669
1669
  }
1670
1670
  });
1671
1671
  }, ru = () => {
1672
- const e = I(), t = J(), n = b(), { selectedLang: s } = Pe();
1672
+ const e = b(), t = J(), n = I(), { selectedLang: s } = Pe();
1673
1673
  return Y({
1674
1674
  mutationFn: async (r) => n(e, { action: E.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
1675
1675
  onSuccess: () => {
@@ -1684,7 +1684,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1684
1684
  }
1685
1685
  });
1686
1686
  }, au = () => {
1687
- const e = I(), t = J(), n = b();
1687
+ const e = b(), t = J(), n = I();
1688
1688
  return Y({
1689
1689
  mutationFn: async (s) => n(e, { action: E.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
1690
1690
  onSuccess: () => {
@@ -1699,7 +1699,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1699
1699
  }
1700
1700
  });
1701
1701
  }, iu = () => {
1702
- const e = I(), t = b();
1702
+ const e = b(), t = I();
1703
1703
  return Y({
1704
1704
  mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
1705
1705
  onError: (n) => {
@@ -1709,7 +1709,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1709
1709
  }
1710
1710
  });
1711
1711
  }, ou = () => {
1712
- const e = I(), t = b();
1712
+ const e = b(), t = I();
1713
1713
  return Y({
1714
1714
  mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
1715
1715
  onSuccess: (n) => {
@@ -1722,7 +1722,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1722
1722
  }
1723
1723
  });
1724
1724
  }, lu = () => {
1725
- const e = I(), t = b();
1725
+ const e = b(), t = I();
1726
1726
  return Y({
1727
1727
  mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
1728
1728
  onSuccess: (n) => {
@@ -1740,7 +1740,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1740
1740
  action: "GET_LIBRARY_ITEM",
1741
1741
  data: { id: e.id }
1742
1742
  }), r = H(s, "html", ""), a = H(s, "blocks", []);
1743
- return ba(a) ? a : ai(r);
1743
+ return Ia(a) ? a : ai(r);
1744
1744
  },
1745
1745
  async getUILibraryBlocks(e, t, n) {
1746
1746
  try {
@@ -1755,7 +1755,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1755
1755
  }
1756
1756
  }
1757
1757
  }, To = () => {
1758
- const e = I(), t = b();
1758
+ const e = b(), t = I();
1759
1759
  return re({
1760
1760
  queryKey: ["uiLibraries"],
1761
1761
  staleTime: "static",
@@ -1774,7 +1774,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1774
1774
  }
1775
1775
  });
1776
1776
  }, So = () => {
1777
- const e = I(), t = b(), { user: n } = Rn(), s = n == null ? void 0 : n.id;
1777
+ const e = b(), t = I(), { user: n } = Rn(), s = n == null ? void 0 : n.id;
1778
1778
  return re({
1779
1779
  queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
1780
1780
  queryFn: () => t(e, {
@@ -1785,7 +1785,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1785
1785
  staleTime: 1 / 0
1786
1786
  });
1787
1787
  }, _o = () => {
1788
- const e = I(), t = b(), [, n] = ks();
1788
+ const e = b(), t = I(), [, n] = ks();
1789
1789
  return { onSave: async ({
1790
1790
  page: r,
1791
1791
  blocks: a,
@@ -1805,7 +1805,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1805
1805
  }
1806
1806
  } };
1807
1807
  }, Po = () => {
1808
- const { data: e } = Bs(), t = I(), n = b();
1808
+ const { data: e } = Bs(), t = b(), n = I();
1809
1809
  return {
1810
1810
  getPartialBlocks: z(async () => {
1811
1811
  const s = {};
@@ -1833,7 +1833,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1833
1833
  [n, t]
1834
1834
  )
1835
1835
  };
1836
- }, wo = V(() => import("./ai-panel-content-BnbURb7j.js")), $s = "chai-chat-panel", vo = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
1836
+ }, wo = V(() => import("./ai-panel-content-D_o7Q_A-.js")), $s = "chai-chat-panel", vo = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
1837
1837
  /* @__PURE__ */ c("title", { children: "ai" }),
1838
1838
  /* @__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(
1839
1839
  "path",
@@ -1842,13 +1842,13 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1842
1842
  id: "Combined-Shape"
1843
1843
  }
1844
1844
  ) }) })
1845
- ] }), Io = ({ isActive: e, show: t }) => /* @__PURE__ */ c(M, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(vo, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }), bo = {
1845
+ ] }), bo = ({ isActive: e, show: t }) => /* @__PURE__ */ c(M, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(vo, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }), Io = {
1846
1846
  id: $s,
1847
1847
  label: "AI Assistant",
1848
- button: Io,
1848
+ button: bo,
1849
1849
  panel: wo,
1850
1850
  position: "top"
1851
- }, No = V(() => import("./lang-panel-Cn83SRzd.js")), Lo = ({ isActive: e, show: t }) => {
1851
+ }, No = V(() => import("./lang-panel-BwIewMyw.js")), Lo = ({ isActive: e, show: t }) => {
1852
1852
  const { data: n } = Be();
1853
1853
  return !sn(n, "languages") || !H(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(ja, { className: "h-4 w-4" }) });
1854
1854
  }, Qs = "lang", Co = {
@@ -1859,7 +1859,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1859
1859
  button: Lo,
1860
1860
  view: "modal",
1861
1861
  width: 400
1862
- }, Go = V(() => import("./seo-panel-jbzxFioc.js")), zs = "seo", Oo = ({ isActive: e, show: t }) => {
1862
+ }, Go = V(() => import("./seo-panel-C1-iMOR1.js")), zs = "seo", Oo = ({ isActive: e, show: t }) => {
1863
1863
  const { data: n } = oe(), s = yi(n == null ? void 0 : n.pageType);
1864
1864
  return !sn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(M, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
1865
1865
  "svg",
@@ -1923,7 +1923,7 @@ const co = V(() => import("./dynamic-page-selector-CSndg2-y.js")), uo = () => {
1923
1923
  button: Do,
1924
1924
  position: "bottom"
1925
1925
  }, Ro = () => {
1926
- kt(zs, xo), kt(Qs, Co), kt(Ws, ko), kt($s, bo);
1926
+ kt(zs, xo), kt(Qs, Co), kt(Ws, ko), kt($s, Io);
1927
1927
  };
1928
1928
  var _ = {
1929
1929
  context: void 0,
@@ -1946,7 +1946,7 @@ function ct(e) {
1946
1946
  }
1947
1947
  var js = !1, Uo = (e, t) => e === t, Wt = Symbol("solid-proxy"), Ys = typeof Proxy == "function", Js = Symbol("solid-track"), jt = {
1948
1948
  equals: Uo
1949
- }, Zs = ar, Ie = 1, Yt = 2, Xs = {
1949
+ }, Zs = ar, be = 1, Yt = 2, Xs = {
1950
1950
  owned: null,
1951
1951
  cleanups: null,
1952
1952
  context: null,
@@ -1977,16 +1977,16 @@ function F(e, t) {
1977
1977
  return [sr.bind(n), s];
1978
1978
  }
1979
1979
  function Bo(e, t, n) {
1980
- const s = on(e, t, !0, Ie);
1980
+ const s = on(e, t, !0, be);
1981
1981
  lt(s);
1982
1982
  }
1983
1983
  function ke(e, t, n) {
1984
- const s = on(e, t, !1, Ie);
1984
+ const s = on(e, t, !1, be);
1985
1985
  lt(s);
1986
1986
  }
1987
1987
  function er(e, t, n) {
1988
1988
  Zs = Wo;
1989
- const s = on(e, t, !1, Ie);
1989
+ const s = on(e, t, !1, be);
1990
1990
  (!n || !n.render) && (s.user = !0), _e ? _e.push(s) : lt(s);
1991
1991
  }
1992
1992
  function j(e, t, n) {
@@ -2160,7 +2160,7 @@ function nr(e) {
2160
2160
  var $o;
2161
2161
  function sr() {
2162
2162
  if (this.sources && this.state)
2163
- if (this.state === Ie) lt(this);
2163
+ if (this.state === be) lt(this);
2164
2164
  else {
2165
2165
  const e = ee;
2166
2166
  ee = null, me(() => Zt(this), !1), ee = e;
@@ -2176,7 +2176,7 @@ function rr(e, t, n) {
2176
2176
  return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && me(() => {
2177
2177
  for (let r = 0; r < e.observers.length; r += 1) {
2178
2178
  const a = e.observers[r], i = mn && mn.running;
2179
- i && mn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : _e.push(a), a.observers && ir(a)), i || (a.state = Ie);
2179
+ i && mn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : _e.push(a), a.observers && ir(a)), i || (a.state = be);
2180
2180
  }
2181
2181
  if (ee.length > 1e6)
2182
2182
  throw ee = [], new Error();
@@ -2195,13 +2195,13 @@ function Qo(e, t, n) {
2195
2195
  try {
2196
2196
  s = e.fn(t);
2197
2197
  } catch (i) {
2198
- return e.pure && (e.state = Ie, e.owned && e.owned.forEach(ht), e.owned = null), e.updatedAt = n + 1, Fn(i);
2198
+ return e.pure && (e.state = be, e.owned && e.owned.forEach(ht), e.owned = null), e.updatedAt = n + 1, Fn(i);
2199
2199
  } finally {
2200
2200
  D = a, G = r;
2201
2201
  }
2202
2202
  (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? rr(e, s) : e.value = s, e.updatedAt = n);
2203
2203
  }
2204
- function on(e, t, n, s = Ie, r) {
2204
+ function on(e, t, n, s = be, r) {
2205
2205
  const a = {
2206
2206
  fn: e,
2207
2207
  state: s,
@@ -2225,7 +2225,7 @@ function Jt(e) {
2225
2225
  for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < an); )
2226
2226
  e.state && t.push(e);
2227
2227
  for (let n = t.length - 1; n >= 0; n--)
2228
- if (e = t[n], e.state === Ie)
2228
+ if (e = t[n], e.state === be)
2229
2229
  lt(e);
2230
2230
  else if (e.state === Yt) {
2231
2231
  const s = ee;
@@ -2272,7 +2272,7 @@ function Zt(e, t) {
2272
2272
  const s = e.sources[n];
2273
2273
  if (s.sources) {
2274
2274
  const r = s.state;
2275
- r === Ie ? s !== t && (!s.updatedAt || s.updatedAt < an) && Jt(s) : r === Yt && Zt(s, t);
2275
+ r === be ? s !== t && (!s.updatedAt || s.updatedAt < an) && Jt(s) : r === Yt && Zt(s, t);
2276
2276
  }
2277
2277
  }
2278
2278
  }
@@ -3096,7 +3096,7 @@ function vu(e) {
3096
3096
  const [, t] = Xo(e, ["component"]);
3097
3097
  return vl(() => e.component, t);
3098
3098
  }
3099
- var Il = class {
3099
+ var bl = class {
3100
3100
  constructor() {
3101
3101
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
3102
3102
  }
@@ -3114,7 +3114,7 @@ var Il = class {
3114
3114
  }
3115
3115
  }, gr = class {
3116
3116
  constructor(e) {
3117
- this.generateIdentifier = e, this.kv = new Il();
3117
+ this.generateIdentifier = e, this.kv = new bl();
3118
3118
  }
3119
3119
  register(e, t) {
3120
3120
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -3128,7 +3128,7 @@ var Il = class {
3128
3128
  getValue(e) {
3129
3129
  return this.kv.getByKey(e);
3130
3130
  }
3131
- }, bl = class extends gr {
3131
+ }, Il = class extends gr {
3132
3132
  constructor() {
3133
3133
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3134
3134
  }
@@ -3369,7 +3369,7 @@ var zl = (e, t) => {
3369
3369
  e = e[s];
3370
3370
  }
3371
3371
  return e;
3372
- }, In = (e, t, n) => {
3372
+ }, bn = (e, t, n) => {
3373
3373
  if (vr(t), t.length === 0)
3374
3374
  return n(e);
3375
3375
  let s = e;
@@ -3418,34 +3418,34 @@ var zl = (e, t) => {
3418
3418
  }
3419
3419
  return e;
3420
3420
  };
3421
- function bn(e, t, n = []) {
3421
+ function In(e, t, n = []) {
3422
3422
  if (!e)
3423
3423
  return;
3424
3424
  if (!Ne(e)) {
3425
- ot(e, (a, i) => bn(a, t, [...n, ...dt(i)]));
3425
+ ot(e, (a, i) => In(a, t, [...n, ...dt(i)]));
3426
3426
  return;
3427
3427
  }
3428
3428
  const [s, r] = e;
3429
3429
  r && ot(r, (a, i) => {
3430
- bn(a, t, [...n, ...dt(i)]);
3430
+ In(a, t, [...n, ...dt(i)]);
3431
3431
  }), t(s, n);
3432
3432
  }
3433
3433
  function Wl(e, t, n) {
3434
- return bn(t, (s, r) => {
3435
- e = In(e, r, (a) => Ql(a, s, n));
3434
+ return In(t, (s, r) => {
3435
+ e = bn(e, r, (a) => Ql(a, s, n));
3436
3436
  }), e;
3437
3437
  }
3438
3438
  function jl(e, t) {
3439
3439
  function n(s, r) {
3440
3440
  const a = zl(e, dt(r));
3441
3441
  s.map(dt).forEach((i) => {
3442
- e = In(e, i, () => a);
3442
+ e = bn(e, i, () => a);
3443
3443
  });
3444
3444
  }
3445
3445
  if (Ne(t)) {
3446
3446
  const [s, r] = t;
3447
3447
  s.forEach((a) => {
3448
- e = In(e, dt(a), () => e);
3448
+ e = bn(e, dt(a), () => e);
3449
3449
  }), r && ot(r, n);
3450
3450
  } else
3451
3451
  ot(t, n);
@@ -3467,7 +3467,7 @@ function Zl(e, t) {
3467
3467
  a.length === 0 ? s = i.map(pn) : n[pn(a)] = i.map(pn);
3468
3468
  }), s ? vn(n) ? [s] : [s, n] : vn(n) ? void 0 : n;
3469
3469
  }
3470
- var Ir = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3470
+ var br = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3471
3471
  const o = Bl(e);
3472
3472
  if (!o) {
3473
3473
  Jl(e, r, t);
@@ -3494,7 +3494,7 @@ var Ir = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3494
3494
  ot(f, (h, p) => {
3495
3495
  if (p === "__proto__" || p === "constructor" || p === "prototype")
3496
3496
  throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
3497
- const T = Ir(h, t, n, s, [...r, p], [...a, e], i);
3497
+ const T = br(h, t, n, s, [...r, p], [...a, e], i);
3498
3498
  d[p] = T.transformedValue, Ne(T.annotations) ? u[p] = T.annotations : mt(T.annotations) && ot(T.annotations, (S, x) => {
3499
3499
  u[pr(p) + "." + x] = S;
3500
3500
  });
@@ -3508,14 +3508,14 @@ var Ir = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3508
3508
  };
3509
3509
  return o || i.set(e, g), g;
3510
3510
  };
3511
- function br(e) {
3511
+ function Ir(e) {
3512
3512
  return Object.prototype.toString.call(e).slice(8, -1);
3513
3513
  }
3514
3514
  function gs(e) {
3515
- return br(e) === "Array";
3515
+ return Ir(e) === "Array";
3516
3516
  }
3517
3517
  function Xl(e) {
3518
- if (br(e) !== "Object")
3518
+ if (Ir(e) !== "Object")
3519
3519
  return !1;
3520
3520
  const t = Object.getPrototypeOf(e);
3521
3521
  return !!t && t.constructor === Object && t === Object.prototype;
@@ -3547,10 +3547,10 @@ var k = class {
3547
3547
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3548
3548
  */
3549
3549
  constructor({ dedupe: e = !1 } = {}) {
3550
- this.classRegistry = new bl(), this.symbolRegistry = new gr((t) => t.description ?? ""), this.customTransformerRegistry = new Cl(), this.allowedErrorProps = [], this.dedupe = e;
3550
+ this.classRegistry = new Il(), this.symbolRegistry = new gr((t) => t.description ?? ""), this.customTransformerRegistry = new Cl(), this.allowedErrorProps = [], this.dedupe = e;
3551
3551
  }
3552
3552
  serialize(e) {
3553
- const t = /* @__PURE__ */ new Map(), n = Ir(e, t, this, this.dedupe), s = {
3553
+ const t = /* @__PURE__ */ new Map(), n = br(e, t, this, this.dedupe), s = {
3554
3554
  json: n.transformedValue
3555
3555
  };
3556
3556
  n.annotations && (s.meta = {
@@ -3599,8 +3599,8 @@ k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
3599
3599
  k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
3600
3600
  k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
3601
3601
  k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
3602
- var tc = k.serialize, Iu = k.stringify;
3603
- function bu(e) {
3602
+ var tc = k.serialize, bu = k.stringify;
3603
+ function Iu(e) {
3604
3604
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
3605
3605
  }
3606
3606
  function Nu(e, t) {
@@ -3765,7 +3765,7 @@ var Ou = (e, t = !1) => {
3765
3765
  const t = dr(() => {
3766
3766
  const n = this, [s] = A(this, Qe), [r] = A(this, ze), [a] = A(this, We), [i] = A(this, je), [o] = A(this, _t), [l] = A(this, qe), [f] = A(this, Je);
3767
3767
  let d;
3768
- return A(this, Ye) ? d = A(this, Ye) : (d = cr(() => import("./WDYDFRGG-C7aSUcjs.js")), C(this, Ye, d)), Cr(A(this, St), A(this, $e)), or(d, lr({
3768
+ return A(this, Ye) ? d = A(this, Ye) : (d = cr(() => import("./WDYDFRGG-BUVnbAci.js")), C(this, Ye, d)), Cr(A(this, St), A(this, $e)), or(d, lr({
3769
3769
  get queryFlavor() {
3770
3770
  return A(n, At);
3771
3771
  },
@@ -3810,14 +3810,14 @@ var Ou = (e, t = !1) => {
3810
3810
  throw new Error("Devtools is not mounted");
3811
3811
  (e = A(this, Pt)) == null || e.call(this), C(this, Oe, !1);
3812
3812
  }
3813
- }, qe = new WeakMap(), yt = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), Oe = new WeakMap(), St = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), _t = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Pt = new WeakMap(), ys), Ze, wt, vt, It, xe, bt, Xe, et, tt, nt, st, Nt, rt, at, it, Lt, As, ic = (As = class {
3813
+ }, qe = new WeakMap(), yt = new WeakMap(), At = new WeakMap(), Tt = new WeakMap(), Oe = new WeakMap(), St = new WeakMap(), $e = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), _t = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Pt = new WeakMap(), ys), Ze, wt, vt, bt, xe, It, Xe, et, tt, nt, st, Nt, rt, at, it, Lt, As, ic = (As = class {
3814
3814
  constructor(e) {
3815
3815
  O(this, Ze);
3816
3816
  O(this, wt);
3817
3817
  O(this, vt);
3818
- O(this, It);
3819
- O(this, xe, !1);
3820
3818
  O(this, bt);
3819
+ O(this, xe, !1);
3820
+ O(this, It);
3821
3821
  O(this, Xe);
3822
3822
  O(this, et);
3823
3823
  O(this, tt);
@@ -3843,7 +3843,7 @@ var Ou = (e, t = !1) => {
3843
3843
  hideDisabledQueries: g,
3844
3844
  theme: h
3845
3845
  } = e;
3846
- C(this, Ze, F(t)), C(this, vt, n), C(this, It, s), C(this, wt, r), C(this, bt, f), C(this, Xe, d), C(this, et, F(a)), C(this, tt, F(i)), C(this, nt, F(o)), C(this, st, F(l)), C(this, Nt, F(g)), C(this, rt, F(u)), C(this, it, F(h));
3846
+ C(this, Ze, F(t)), C(this, vt, n), C(this, bt, s), C(this, wt, r), C(this, It, f), C(this, Xe, d), C(this, et, F(a)), C(this, tt, F(i)), C(this, nt, F(o)), C(this, st, F(l)), C(this, Nt, F(g)), C(this, rt, F(u)), C(this, it, F(h));
3847
3847
  }
3848
3848
  setButtonPosition(e) {
3849
3849
  A(this, et)[1](e);
@@ -3872,12 +3872,12 @@ var Ou = (e, t = !1) => {
3872
3872
  const t = dr(() => {
3873
3873
  const n = this, [s] = A(this, et), [r] = A(this, tt), [a] = A(this, nt), [i] = A(this, st), [o] = A(this, Nt), [l] = A(this, Ze), [f] = A(this, rt), [d] = A(this, it);
3874
3874
  let u;
3875
- return A(this, at) ? u = A(this, at) : (u = cr(() => import("./2SSKDMRQ-DSnzF_1o.js")), C(this, at, u)), Cr(A(this, bt), A(this, Xe)), or(u, lr({
3875
+ return A(this, at) ? u = A(this, at) : (u = cr(() => import("./2SSKDMRQ-CnSDkQcy.js")), C(this, at, u)), Cr(A(this, It), A(this, Xe)), or(u, lr({
3876
3876
  get queryFlavor() {
3877
3877
  return A(n, vt);
3878
3878
  },
3879
3879
  get version() {
3880
- return A(n, It);
3880
+ return A(n, bt);
3881
3881
  },
3882
3882
  get onlineManager() {
3883
3883
  return A(n, wt);
@@ -3920,7 +3920,7 @@ var Ou = (e, t = !1) => {
3920
3920
  throw new Error("Devtools is not mounted");
3921
3921
  (e = A(this, Lt)) == null || e.call(this), C(this, xe, !1);
3922
3922
  }
3923
- }, Ze = new WeakMap(), wt = new WeakMap(), vt = new WeakMap(), It = new WeakMap(), xe = new WeakMap(), bt = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), Nt = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), Lt = new WeakMap(), As);
3923
+ }, Ze = new WeakMap(), wt = new WeakMap(), vt = new WeakMap(), bt = new WeakMap(), xe = new WeakMap(), It = new WeakMap(), Xe = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), Nt = new WeakMap(), rt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), Lt = new WeakMap(), As);
3924
3924
  function oc(e) {
3925
3925
  const t = J(e.client), n = $.useRef(null), {
3926
3926
  buttonPosition: s,
@@ -4018,14 +4018,14 @@ const cc = Ee(""), uc = () => {
4018
4018
  description: "Enable add page dropdown"
4019
4019
  });
4020
4020
  }, dc = () => {
4021
- const e = I(), t = b();
4021
+ const e = b(), t = I();
4022
4022
  return re({
4023
4023
  queryKey: [E.GET_COLLECTIONS],
4024
4024
  staleTime: 1 / 0,
4025
4025
  queryFn: async () => t(e, { action: E.GET_COLLECTIONS })
4026
4026
  });
4027
4027
  }, fc = () => {
4028
- const { data: e } = oe(), { data: t } = Le(), { data: n } = Be(), s = I(), r = b(), a = q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = be(/* @__PURE__ */ new Map());
4028
+ const { data: e } = oe(), { data: t } = Le(), { data: n } = Be(), s = b(), r = I(), a = q(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = Ie(/* @__PURE__ */ new Map());
4029
4029
  return Y({
4030
4030
  mutationFn: async ({ block: o }) => {
4031
4031
  const l = o._id, f = (t == null ? void 0 : t.lang) || a, d = `${l}:${f}`;
@@ -4075,15 +4075,15 @@ const cc = Ee(""), uc = () => {
4075
4075
  }, mc = {
4076
4076
  SITE_WIDE_USAGE: "SITE_WIDE_USAGE"
4077
4077
  }, Ec = (e) => {
4078
- const t = b(), n = I();
4078
+ const t = I(), n = b();
4079
4079
  return re({
4080
4080
  queryKey: [mc.SITE_WIDE_USAGE],
4081
4081
  queryFn: async () => e ? t(n, { action: "GET_SITE_WIDE_USAGE" }) : {},
4082
4082
  retry: !1
4083
4083
  });
4084
- }, pc = V(() => import("./page-lock-BPCxfv9J.js")), yc = V(
4085
- () => import("./no-language-page-dialog-C5Ps6YYL.js")
4086
- ), Ac = V(() => import("./digital-asset-manager-C_gL_0YY.js")), Tc = V(() => import("./save-to-lib-BK3uTFss.js")), Sc = V(() => import("./theme-panel-footer-DbMDLYGI.js")), _c = V(() => import("./web-preview-DXE4Jnf5.js"));
4084
+ }, pc = V(() => import("./page-lock-Bfbs6RgL.js")), yc = V(
4085
+ () => import("./no-language-page-dialog-PjNqTUpl.js")
4086
+ ), Ac = V(() => import("./digital-asset-manager-DbtwzxRz.js")), Tc = V(() => import("./save-to-lib-eiOc_SSN.js")), Sc = V(() => import("./theme-panel-footer-uBQqSJXm.js")), _c = V(() => import("./web-preview-Djy6WIyj.js"));
4087
4087
  uc();
4088
4088
  ii();
4089
4089
  oa(ho);
@@ -4095,7 +4095,7 @@ const Pc = {
4095
4095
  permissions: null
4096
4096
  }, Es = (e) => {
4097
4097
  var Hn;
4098
- const { data: t } = To(), n = Mn(), { data: s = Pc, isFetching: r } = So(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = dc(), { data: f, isFetching: d } = Be(), u = r || i || l || d, [g] = ve(), h = g.get("page"), { data: p } = oe(), { data: T, isFetching: S } = po(), { blocks: x } = Eo(T), { data: y, isFetching: w } = yo(), { pageStatus: v } = ye(), U = go(), { onSave: N } = _o(), { mutateAsync: Ae } = fc(), { getPartialBlocks: Te, getPartialBlockBlocks: B } = Po(), { mutateAsync: P } = Ai(), { mutateAsync: L } = Ao(), { data: W } = Ec(((Hn = e.flags) == null ? void 0 : Hn.designTokens) ?? !1), Q = gc(), [ue, Gt] = K(!1), Se = be([]), Ke = q(() => H(f, "theme", {}) || {}, [f]), Ge = v === te.EDITING, Gr = v === te.CHECKING, Kn = S || Gr || w;
4098
+ const { data: t } = To(), n = Mn(), { data: s = Pc, isFetching: r } = So(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = dc(), { data: f, isFetching: d } = Be(), u = r || i || l || d, [g] = ve(), h = g.get("page"), { data: p } = oe(), { data: T, isFetching: S } = po(), { blocks: x } = Eo(T), { data: y, isFetching: w } = yo(), { pageStatus: v } = ye(), U = go(), { onSave: N } = _o(), { mutateAsync: Ae } = fc(), { getPartialBlocks: Te, getPartialBlockBlocks: B } = Po(), { mutateAsync: P } = Ai(), { mutateAsync: L } = Ao(), { data: W } = Ec(((Hn = e.flags) == null ? void 0 : Hn.designTokens) ?? !1), Q = gc(), [ue, Gt] = K(!1), Se = Ie([]), Ke = q(() => H(f, "theme", {}) || {}, [f]), Ge = v === te.EDITING, Gr = v === te.CHECKING, Kn = S || Gr || w;
4099
4099
  Se.current = x;
4100
4100
  const [Or] = pe(cc);
4101
4101
  se(() => {
@@ -4200,8 +4200,8 @@ const Pc = {
4200
4200
  /* @__PURE__ */ c(Es, { ...e }),
4201
4201
  /* @__PURE__ */ c(ms, {})
4202
4202
  ] }) : /* @__PURE__ */ c("div", {});
4203
- }, vc = $.lazy(() => import("./nested-path-selector-content-B-8LqhXI.js"));
4204
- function Ic({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4203
+ }, vc = $.lazy(() => import("./nested-path-selector-content-CKYYK-C5.js"));
4204
+ function bc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4205
4205
  const [r, a] = $.useState(!1);
4206
4206
  return /* @__PURE__ */ m(la, { open: r, onOpenChange: a, children: [
4207
4207
  /* @__PURE__ */ m(en, { children: [
@@ -4251,7 +4251,7 @@ const Mu = () => {
4251
4251
  e.clear();
4252
4252
  }, [e]);
4253
4253
  }, Fu = () => {
4254
- const e = I(), t = b(), { data: n } = Le(), s = J();
4254
+ const e = b(), t = I(), { data: n } = Le(), s = J();
4255
4255
  return Y({
4256
4256
  mutationFn: async (r) => {
4257
4257
  if (!(n != null && n.id))
@@ -4275,7 +4275,7 @@ const Mu = () => {
4275
4275
  console.error("Failed to update metadata");
4276
4276
  }
4277
4277
  });
4278
- }, bc = V(() => import("./digital-asset-manager-C_gL_0YY.js")), Ku = ({
4278
+ }, Ic = V(() => import("./digital-asset-manager-DbtwzxRz.js")), Ku = ({
4279
4279
  assetId: e,
4280
4280
  assetUrl: t,
4281
4281
  onChange: n,
@@ -4357,7 +4357,7 @@ const Mu = () => {
4357
4357
  )
4358
4358
  ] }),
4359
4359
  /* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
4360
- bc,
4360
+ Ic,
4361
4361
  {
4362
4362
  close: d,
4363
4363
  onSelect: u,
@@ -4418,7 +4418,7 @@ const Mu = () => {
4418
4418
  n = n.replace(r[0], i);
4419
4419
  }
4420
4420
  return n;
4421
- }, Gc = V(() => import("./shared-json-ld-BL_dv3_q.js")), Vu = ({
4421
+ }, Gc = V(() => import("./shared-json-ld-B4PxAM_0.js")), Vu = ({
4422
4422
  value: e,
4423
4423
  onChange: t,
4424
4424
  disabled: n = !1,
@@ -4431,7 +4431,7 @@ const Mu = () => {
4431
4431
  hasJsonLdForSelectedLang: f,
4432
4432
  copyJsonLDFromDefaultPage: d
4433
4433
  }) => {
4434
- const [u, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), x = be(null), [y] = Dn(), w = i === "jsonLD" && H(y, "features.sharedJsonLD", !1), v = i === "jsonLD" && !f && !!d;
4434
+ const [u, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), x = Ie(null), [y] = Dn(), w = i === "jsonLD" && H(y, "features.sharedJsonLD", !1), v = i === "jsonLD" && !f && !!d;
4435
4435
  se(() => {
4436
4436
  e.trim() === "" && t("{}");
4437
4437
  }, [e, t]);
@@ -4520,7 +4520,7 @@ const Mu = () => {
4520
4520
  )
4521
4521
  ] }),
4522
4522
  v ? null : u === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
4523
- Ic,
4523
+ bc,
4524
4524
  {
4525
4525
  dataType: "value",
4526
4526
  data: o ?? {},
@@ -4595,7 +4595,7 @@ const Mu = () => {
4595
4595
  w && /* @__PURE__ */ c(un, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(Gc, {}) }) })
4596
4596
  ] }) }) });
4597
4597
  }, Hu = (e) => {
4598
- const t = I(), n = b();
4598
+ const t = b(), n = I();
4599
4599
  return re({
4600
4600
  queryKey: [E.GET_CHAI_USER, e],
4601
4601
  queryFn: async () => {
@@ -4642,7 +4642,7 @@ export {
4642
4642
  ku as _,
4643
4643
  ye as a,
4644
4644
  cu as a0,
4645
- bu as a1,
4645
+ Iu as a1,
4646
4646
  Cu as a2,
4647
4647
  Lu as a3,
4648
4648
  Gu as a4,
@@ -4665,7 +4665,7 @@ export {
4665
4665
  yi as aL,
4666
4666
  Dn as aM,
4667
4667
  qi as aN,
4668
- Ic as aO,
4668
+ bc as aO,
4669
4669
  Ku as aP,
4670
4670
  Ti as aQ,
4671
4671
  jc as aR,
@@ -4685,7 +4685,7 @@ export {
4685
4685
  pu as ae,
4686
4686
  Ft as af,
4687
4687
  ml as ag,
4688
- Iu as ah,
4688
+ bu as ah,
4689
4689
  Tu as ai,
4690
4690
  Au as aj,
4691
4691
  Kt as ak,
@@ -4695,8 +4695,8 @@ export {
4695
4695
  Gi as ao,
4696
4696
  Hu as ap,
4697
4697
  Li as aq,
4698
- I as ar,
4699
- b as as,
4698
+ b as ar,
4699
+ I as as,
4700
4700
  hc as at,
4701
4701
  nu as au,
4702
4702
  zt as av,