@chaibuilder/sdk 4.0.0-beta.8 → 4.0.0-beta.9

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