@chaibuilder/pages 0.16.3 → 0.16.5

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 (76) hide show
  1. package/dist/{2AITGKQY-DI5Po2Nc.js → 2AITGKQY-BXiVm60u.js} +2 -2
  2. package/dist/{2AITGKQY-8xBkB8Pv.cjs → 2AITGKQY-BkyIOFBN.cjs} +1 -1
  3. package/dist/{NCMVHL6D-kHUQxG8D.js → NCMVHL6D-C0JGE8Qr.js} +2 -2
  4. package/dist/{NCMVHL6D-B4xqJIpr.cjs → NCMVHL6D-CnBMv9bF.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DRgY2Er1.js → ZDWCUMSJ-Cs-CWvpw.js} +1 -1
  6. package/dist/{ZDWCUMSJ-CjlhoCfQ.cjs → ZDWCUMSJ-jR6OAwVS.cjs} +1 -1
  7. package/dist/{add-new-language-page-DSB8ohdj.js → add-new-language-page-CKwMwrAg.js} +2 -2
  8. package/dist/{add-new-language-page-noBKABVx.cjs → add-new-language-page-UatKeIR2.cjs} +1 -1
  9. package/dist/{add-new-page-CByS9KqS.cjs → add-new-page-BZ2av8fu.cjs} +1 -1
  10. package/dist/{add-new-page-BYkFbQvH.js → add-new-page-BzBMJ3Cn.js} +1 -1
  11. package/dist/{ai-panel-content-DET3HjIR.js → ai-panel-content-B7VWN9Hp.js} +2 -2
  12. package/dist/{ai-panel-content-BBnzp4fO.cjs → ai-panel-content-DvNWlTtZ.cjs} +1 -1
  13. package/dist/{ai-panel-default-lang-BYfcAA8u.js → ai-panel-default-lang-DRkJegQm.js} +2 -2
  14. package/dist/{ai-panel-default-lang-D-RS6z5I.cjs → ai-panel-default-lang-Dnfg53l_.cjs} +1 -1
  15. package/dist/{ai-panel-other-lang-BoD4FsoG.cjs → ai-panel-other-lang-0_g52R_I.cjs} +1 -1
  16. package/dist/{ai-panel-other-lang-TVjNYPRK.js → ai-panel-other-lang-CQVkWTd3.js} +3 -3
  17. package/dist/{ai-panel-quick-prompts-BPrA9nvg.js → ai-panel-quick-prompts-BfMsNuRu.js} +1 -1
  18. package/dist/{ai-panel-quick-prompts-BGBdrdP7.cjs → ai-panel-quick-prompts-CGKAAn9A.cjs} +1 -1
  19. package/dist/{ai-prompt-input-qegCvwnu.js → ai-prompt-input-C3TnCYfz.js} +1 -1
  20. package/dist/{ai-prompt-input-DB1FpA_q.cjs → ai-prompt-input-CffQQOKA.cjs} +1 -1
  21. package/dist/{ai-translation-prompt--HB1UAhC.js → ai-translation-prompt-B8VdHfLY.js} +1 -1
  22. package/dist/{ai-translation-prompt-Bj-AM4xK.cjs → ai-translation-prompt-DH7gwfqx.cjs} +1 -1
  23. package/dist/{delete-page-C7xfkDN5.js → delete-page-Ck7tD4Hf.js} +1 -1
  24. package/dist/{delete-page-DJLNpUxo.cjs → delete-page-Crpwn0Wk.cjs} +1 -1
  25. package/dist/{digital-asset-manager-BblMbig0.cjs → digital-asset-manager-BVrv1-r1.cjs} +1 -1
  26. package/dist/{digital-asset-manager-INrgGoC0.js → digital-asset-manager-DgLKRrYj.js} +1 -1
  27. package/dist/{duplicate-page-B8k4yZxa.js → duplicate-page-C7d1f7Ii.js} +2 -2
  28. package/dist/{duplicate-page-C9XewuHN.cjs → duplicate-page-CXUueWfr.cjs} +1 -1
  29. package/dist/{dynamic-page-selector-C7Vos5-l.js → dynamic-page-selector-D544FjmW.js} +1 -1
  30. package/dist/{dynamic-page-selector-CYYnEngT.cjs → dynamic-page-selector-DcWDnam4.cjs} +1 -1
  31. package/dist/{index-CyHmr87X.cjs → index-B1OACNv-.cjs} +3 -3
  32. package/dist/{index-DRQI9rlW.js → index-DdQbaicX.js} +235 -235
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +1 -1
  36. package/dist/{json-diff-viewer-8vUwU0Sk.js → json-diff-viewer-BhWTP1YY.js} +1 -1
  37. package/dist/{json-diff-viewer-DVskWjAL.cjs → json-diff-viewer-KCkYwJMA.cjs} +1 -1
  38. package/dist/{lang-panel-B8SeKnwN.js → lang-panel-by1VOWvc.js} +2 -2
  39. package/dist/{lang-panel-BeyCHr4u.cjs → lang-panel-tOddhH70.cjs} +1 -1
  40. package/dist/{mark-as-template-DTEF_hyN.cjs → mark-as-template-BUCysjr2.cjs} +1 -1
  41. package/dist/{mark-as-template-CpNHtyfB.js → mark-as-template-ngqCvlhA.js} +1 -1
  42. package/dist/{no-language-page-content-DnAP2ICP.cjs → no-language-page-content-CzTbZ07M.cjs} +1 -1
  43. package/dist/{no-language-page-content-BPiFDGJr.js → no-language-page-content-Dz3GSvnO.js} +1 -1
  44. package/dist/{page-creator-BawPgFIv.cjs → page-creator-BICVMC59.cjs} +1 -1
  45. package/dist/{page-creator-BiDN-rLc.js → page-creator-D2iEu92e.js} +2 -2
  46. package/dist/{page-lock-request-BVYclE6H.js → page-lock-request-DjfV2kmK.js} +1 -1
  47. package/dist/{page-lock-request-wIw-W5qT.cjs → page-lock-request-hlvjC2uX.cjs} +1 -1
  48. package/dist/{page-locked-by-dialog-jZDY0omZ.cjs → page-locked-by-dialog-NpUOJvWZ.cjs} +1 -1
  49. package/dist/{page-locked-by-dialog-CuHvd48D.js → page-locked-by-dialog-m6K_uaE8.js} +1 -1
  50. package/dist/{page-manager-new-BmZlPcpL.cjs → page-manager-new-C2jmBaFF.cjs} +1 -1
  51. package/dist/{page-manager-new-kMwd9hkH.js → page-manager-new-DshyH-mV.js} +2 -2
  52. package/dist/{page-manager-search-and-filter-BU-1wFbM.js → page-manager-search-and-filter-DCg7Fqi_.js} +1 -1
  53. package/dist/{page-manager-search-and-filter-DMauRN5Y.cjs → page-manager-search-and-filter-D_g51CM8.cjs} +1 -1
  54. package/dist/{page-revisions-content-c32By7XR.js → page-revisions-content-DZzxttKH.js} +2 -2
  55. package/dist/{page-revisions-content-BH0Xy_k9.cjs → page-revisions-content-N_qdjfDX.cjs} +1 -1
  56. package/dist/{prompt-helper-Bh7WyDYo.js → prompt-helper-D0QRFyFX.js} +1 -1
  57. package/dist/{prompt-helper-BLBZjr5q.cjs → prompt-helper-DIy7u3rt.cjs} +1 -1
  58. package/dist/{publish-pages-content-BB6l92oG.js → publish-pages-content-CRvy9fwt.js} +2 -2
  59. package/dist/{publish-pages-content-B5UqPZy0.cjs → publish-pages-content-Dtu7807d.cjs} +1 -1
  60. package/dist/{save-to-lib-NvQZll63.js → save-to-lib-BE0-MXVv.js} +1 -1
  61. package/dist/{save-to-lib-DM1MzZTb.cjs → save-to-lib-XnTNVHzy.cjs} +1 -1
  62. package/dist/{seo-panel-C20m5SFc.cjs → seo-panel-Ce3uf7XT.cjs} +1 -1
  63. package/dist/{seo-panel-BsMBb5Ep.js → seo-panel-dIE8Wi40.js} +1 -1
  64. package/dist/{shared-json-ld-CfWO90c0.cjs → shared-json-ld-DiVirR4t.cjs} +1 -1
  65. package/dist/{shared-json-ld-BVqIgANo.js → shared-json-ld-UCI8GeFi.js} +1 -1
  66. package/dist/{slug-input-BewLv-d8.cjs → slug-input-BbkCbVMY.cjs} +1 -1
  67. package/dist/{slug-input-RCGUFL2T.js → slug-input-DTA7c8c6.js} +1 -1
  68. package/dist/{theme-panel-footer-BJB36k8A.js → theme-panel-footer-BjRPU7lq.js} +1 -1
  69. package/dist/{theme-panel-footer-8oSQtfZ5.cjs → theme-panel-footer-uGKDjNbs.cjs} +1 -1
  70. package/dist/{unmark-as-template-CGZ0CCI2.js → unmark-as-template-BWviVI2t.js} +1 -1
  71. package/dist/{unmark-as-template-DLNmyum3.cjs → unmark-as-template-Dbhko_72.cjs} +1 -1
  72. package/dist/{unpublish-page-CEtpcrvc.js → unpublish-page-BzI9EFF9.js} +1 -1
  73. package/dist/{unpublish-page-B_xQPGsZ.cjs → unpublish-page-D0EmMryc.cjs} +1 -1
  74. package/dist/{web-preview-Cifi0bwK.cjs → web-preview-CSV-DXpI.cjs} +1 -1
  75. package/dist/{web-preview-CCGkTRU3.js → web-preview-SIUM1SWa.js} +1 -1
  76. package/package.json +3 -3
@@ -1,20 +1,20 @@
1
1
  var Pr = Object.defineProperty;
2
- var Mn = (e) => {
2
+ var Bn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var vr = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ve = (e, t, n) => vr(e, typeof t != "symbol" ? t + "" : t, n), Bn = (e, t, n) => t.has(e) || Mn("Cannot " + n);
7
- var _ = (e, t, n) => (Bn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? Mn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), O = (e, t, n, s) => (Bn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
6
+ var ve = (e, t, n) => vr(e, typeof t != "symbol" ? t + "" : t, n), Fn = (e, t, n) => t.has(e) || Bn("Cannot " + n);
7
+ var _ = (e, t, n) => (Fn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), D = (e, t, n) => t.has(e) ? Bn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), O = (e, t, n, s) => (Fn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
8
8
  import { jsx as l, jsxs as m, Fragment as ge } from "react/jsx-runtime";
9
- import { get as V, reverse as wr, sortBy as br, each as Ir, find as re, isEmpty as he, groupBy as Lr, minBy as Cr, noop as ds, keyBy as Nr, map as Mt, compact as fs, upperCase as Fn, filter as hs, includes as kr, has as zt, pick as vn, keys as Or, pickBy as Dr, endsWith as xr, isArray as Gr, startCase as Rr, isFunction as Ur, cloneDeep as Mr, isEqual as Br } from "lodash-es";
9
+ import { get as V, reverse as wr, sortBy as br, each as Ir, find as re, isEmpty as he, groupBy as Lr, minBy as Cr, noop as fs, keyBy as Nr, map as Mt, compact as hs, upperCase as qn, filter as gs, includes as kr, has as zt, pick as vn, keys as Or, pickBy as Dr, endsWith as xr, isArray as Gr, startCase as Rr, isFunction as Ur, cloneDeep as Mr, isEqual as Br } from "lodash-es";
10
10
  import * as j from "react";
11
- import Fr, { useMemo as Q, useCallback as z, useState as K, useEffect as se, useRef as at, lazy as F, Suspense as H, createContext as qr, Component as Kr, createElement as qn } from "react";
11
+ import Fr, { useMemo as Q, useCallback as z, useState as K, useEffect as se, useRef as at, lazy as F, Suspense as H, createContext as qr, Component as Kr, createElement as Kn } from "react";
12
12
  import { atom as Ee, useAtom as te } from "jotai";
13
- import { useQuery as ae, useQueryClient as W, useMutation as Z, onlineManager as gs, QueryClient as Vr, QueryClientProvider as Hr } from "@tanstack/react-query";
14
- import { useLanguages as Se, useSavePage as xe, useTranslation as _e, mergeClasses as Bt, usePermissions as ms, PERMISSIONS as Qr, useRightPanel as $r, useChaiFeatureFlag as zr, useIsPageLoaded as jr, registerChaiLibrary as Wr, getBlocksFromHTML as Yr, registerChaiSidebarPanel as Lt, registerChaiFeatureFlag as tn, registerChaiTopBar as Jr, registerChaiMediaManager as Zr, registerChaiSaveToLibrary as Xr, ChaiBuilderEditor as ea } from "@chaibuilder/sdk";
13
+ import { useQuery as ae, useQueryClient as W, useMutation as Z, onlineManager as ms, QueryClient as Vr, QueryClientProvider as Hr } from "@tanstack/react-query";
14
+ import { useLanguages as Se, useSavePage as xe, useTranslation as _e, mergeClasses as Bt, usePermissions as Es, PERMISSIONS as Qr, useRightPanel as $r, useChaiFeatureFlag as zr, useIsPageLoaded as jr, registerChaiLibrary as Wr, getBlocksFromHTML as Yr, registerChaiSidebarPanel as Lt, registerChaiFeatureFlag as tn, registerChaiTopBar as Jr, registerChaiMediaManager as Zr, registerChaiSaveToLibrary as Xr, ChaiBuilderEditor as ea } from "@chaibuilder/sdk";
15
15
  import { toast as R } from "sonner";
16
- import { Tooltip as jt, TooltipTrigger as Wt, Button as U, TooltipContent as Yt, Sheet as Es, SheetContent as ps, SheetHeader as ta, SheetTitle as na, SheetDescription as sa, DropdownMenu as wn, DropdownMenuTrigger as bn, DropdownMenuContent as In, DropdownMenuItem as ue, Separator as ra, TooltipProvider as ys, SheetTrigger as aa, Skeleton as Ct, Dialog as As, HoverCard as ia, HoverCardTrigger as oa, HoverCardContent as la, AlertDialog as ca, AlertDialogTrigger as ua, AlertDialogContent as da, AlertDialogHeader as fa, AlertDialogTitle as ha, AlertDialogDescription as ga, AlertDialogFooter as ma, AlertDialogCancel as Ea, AlertDialogAction as pa, Popover as ya, PopoverTrigger as Aa, DialogContent as Ta, DialogHeader as Sa, DialogTitle as _a, Tabs as Pa, TabsList as va, TabsTrigger as nn, TabsContent as sn, Textarea as Kn, Alert as wa, AlertDescription as ba } from "@chaibuilder/sdk/ui";
17
- import { LogsIcon as Ia, Folder as La, Languages as Vn, ChevronDown as hn, Star as Ca, Plus as Ts, History as Na, Play as ka, Palette as Oa, CheckCircle as Da, Loader as Ft, Save as xa, Send as Hn, Rocket as Qn, CopyPlusIcon as Ga, Pencil as Ra, Power as Ua, Trash as Ma, SquareLibrary as $n, Hash as Ba, File as Fa, MoreHorizontal as zn, ExternalLink as qa, LanguagesIcon as Ka, User as Va, X as jn, Trash2 as Ha, ImageIcon as Wn, Code as Qa, Eye as $a, Share2 as za, FileCode2 as ja, AlertTriangle as Wa } from "lucide-react";
16
+ import { Tooltip as jt, TooltipTrigger as Wt, Button as U, TooltipContent as Yt, Sheet as ps, SheetContent as ys, SheetHeader as ta, SheetTitle as na, SheetDescription as sa, DropdownMenu as wn, DropdownMenuTrigger as bn, DropdownMenuContent as In, DropdownMenuItem as ue, Separator as ra, TooltipProvider as As, SheetTrigger as aa, Skeleton as Ct, Dialog as Ts, HoverCard as ia, HoverCardTrigger as oa, HoverCardContent as la, AlertDialog as ca, AlertDialogTrigger as ua, AlertDialogContent as da, AlertDialogHeader as fa, AlertDialogTitle as ha, AlertDialogDescription as ga, AlertDialogFooter as ma, AlertDialogCancel as Ea, AlertDialogAction as pa, Popover as ya, PopoverTrigger as Aa, DialogContent as Ta, DialogHeader as Sa, DialogTitle as _a, Tabs as Pa, TabsList as va, TabsTrigger as nn, TabsContent as sn, Textarea as Vn, Alert as wa, AlertDescription as ba } from "@chaibuilder/sdk/ui";
17
+ import { LogsIcon as Ia, Folder as La, Languages as Hn, ChevronDown as hn, Star as Ca, Plus as Ss, History as Na, Play as ka, Palette as Oa, CheckCircle as Da, Loader as Ft, Save as xa, Send as Qn, Rocket as $n, CopyPlusIcon as Ga, Pencil as Ra, Power as Ua, Trash as Ma, SquareLibrary as zn, Hash as Ba, File as Fa, MoreHorizontal as jn, ExternalLink as qa, LanguagesIcon as Ka, User as Va, X as Wn, Trash2 as Ha, ImageIcon as Yn, Code as Qa, Eye as $a, Share2 as za, FileCode2 as ja, AlertTriangle as Wa } from "lucide-react";
18
18
  import { useRegisteredChaiBlocks as Ya, getDefaultBlockProps as Ja } from "@chaibuilder/runtime";
19
19
  import { loadWebBlocks as Za } from "@chaibuilder/sdk/web-blocks";
20
20
  const E = {
@@ -84,7 +84,7 @@ const E = {
84
84
  }, Xa = Ee({}), Ln = () => te(Xa), oe = (e, t) => {
85
85
  const [n] = Ln();
86
86
  return Q(() => V(n, e, t), [n, e, t]);
87
- }, N = () => oe("apiUrl", "/chai/api"), Ss = () => oe("usersApiUrl", "/chai/users"), Oc = () => oe("assetsApiUrl", "/chai/assets"), ei = () => oe("websocket", null), _s = async (e, t, n = {}) => await fetch(e, {
87
+ }, N = () => oe("apiUrl", "/chai/api"), _s = () => oe("usersApiUrl", "/chai/users"), Oc = () => oe("assetsApiUrl", "/chai/assets"), ei = () => oe("websocket", null), Ps = async (e, t, n = {}) => await fetch(e, {
88
88
  method: "POST",
89
89
  headers: {
90
90
  "Content-Type": "application/json",
@@ -95,7 +95,7 @@ const E = {
95
95
  if (import.meta.vitest) {
96
96
  const { it: e, expect: t } = import.meta.vitest;
97
97
  e("should fetch API", async () => {
98
- const n = await _s("/v1/api/chai", {
98
+ const n = await Ps("/v1/api/chai", {
99
99
  action: "test"
100
100
  });
101
101
  t(n).toBeDefined();
@@ -120,7 +120,7 @@ const Dc = () => {
120
120
  if (!o)
121
121
  return console.error("No auth token found"), null;
122
122
  try {
123
- const c = V(r, "action", "").toLowerCase(), u = await _s(s + (c ? `?action=${c}` : ""), r, {
123
+ const c = V(r, "action", "").toLowerCase(), u = await Ps(s + (c ? `?action=${c}` : ""), r, {
124
124
  ...a,
125
125
  Authorization: `Bearer ${o}`
126
126
  });
@@ -191,7 +191,7 @@ const Ge = (e) => {
191
191
  data: { draft: !0 }
192
192
  })
193
193
  });
194
- }, Ps = (e) => {
194
+ }, vs = (e) => {
195
195
  const { fallbackLang: t } = Se(), { data: n } = Re(), { data: s, isFetching: r } = Ge(), a = Q(() => {
196
196
  const i = { [t]: !0 };
197
197
  return Ir(V(n, "languages"), (o) => {
@@ -310,8 +310,8 @@ class ti {
310
310
  }
311
311
  const ni = Ee(
312
312
  null
313
- ), vs = () => te(ni), Cn = () => {
314
- const [e] = vs();
313
+ ), ws = () => te(ni), Cn = () => {
314
+ const [e] = ws();
315
315
  return (e == null ? void 0 : e.slug) || "";
316
316
  };
317
317
  function si(e, t) {
@@ -334,7 +334,7 @@ const ri = ({ query: e, uuid: t }) => {
334
334
  }), d = Q(() => n === "" ? c.filter((f) => f.lang === "" || f.lang === s) : c.filter((f) => f.lang === n), [n, s, c]);
335
335
  return { allLangPages: c, data: d, isFetching: u };
336
336
  }, ai = () => {
337
- const { selectedLang: e, fallbackLang: t } = Se(), [n, s] = vs(), [r, a] = K(""), i = si(r, 500), { allLangPages: o, data: c, isFetching: u } = ri({ query: i }), d = z((g) => s(g), [s]), f = z((g) => a(g), [a]), h = z(() => {
337
+ const { selectedLang: e, fallbackLang: t } = Se(), [n, s] = ws(), [r, a] = K(""), i = si(r, 500), { allLangPages: o, data: c, isFetching: u } = ri({ query: i }), d = z((g) => s(g), [s]), f = z((g) => a(g), [a]), h = z(() => {
338
338
  if (!n) return;
339
339
  const g = !(n != null && n.primaryPage), p = e.length === 0, S = g ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, T = o.filter(
340
340
  (y) => (y == null ? void 0 : y.primaryPage) === S || y.id === S
@@ -359,7 +359,7 @@ const ri = ({ query: e, uuid: t }) => {
359
359
  const [e] = le(), t = e.get("lang") ?? "", { data: n, isFetching: s } = Ge();
360
360
  return { data: Q(() => re(n, { lang: t }) || {}, [n, t]), isFetching: s };
361
361
  }, oi = Ee({}), li = () => te(oi), ci = () => {
362
- const { data: e } = be(), t = Cn(), n = oe("getLiveUrl", ds), s = e == null ? void 0 : e.slug, r = n(s || "/");
362
+ const { data: e } = be(), t = Cn(), n = oe("getLiveUrl", fs), s = e == null ? void 0 : e.slug, r = n(s || "/");
363
363
  return t ? r + t : r;
364
364
  }, Jt = () => {
365
365
  const e = oe("currentUser"), t = oe("onLogout");
@@ -369,7 +369,7 @@ const ri = ({ query: e, uuid: t }) => {
369
369
  logout: t
370
370
  };
371
371
  }, ui = (e) => {
372
- const t = Ss(), n = L();
372
+ const t = _s(), n = L();
373
373
  return ae({
374
374
  queryKey: [E.GET_CHAI_USER, e],
375
375
  queryFn: async () => {
@@ -540,7 +540,7 @@ const ri = ({ query: e, uuid: t }) => {
540
540
  rejectTakeOver: u,
541
541
  requestTakeOver: o
542
542
  };
543
- }, Ei = F(() => import("./no-language-page-content-BPiFDGJr.js")), pi = F(() => import("./page-locked-by-dialog-CuHvd48D.js")), rn = F(() => import("./page-lock-request-BVYclE6H.js")), yi = ({ isFetchingPage: e }) => {
543
+ }, Ei = F(() => import("./no-language-page-content-Dz3GSvnO.js")), pi = F(() => import("./page-locked-by-dialog-m6K_uaE8.js")), rn = F(() => import("./page-lock-request-DjfV2kmK.js")), yi = ({ isFetchingPage: e }) => {
544
544
  const { pageLock: t, requestTakeOver: n } = mi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching: c } = ui(s), [u] = le(), d = u.get("page"), [f] = Nn(), h = W(), g = z(() => {
545
545
  n();
546
546
  }, [n]);
@@ -577,7 +577,7 @@ const ri = ({ query: e, uuid: t }) => {
577
577
  ) });
578
578
  }, Ai = () => {
579
579
  const [e] = le(), t = e.get("lang");
580
- return Ps(t) ? null : /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ei, {}) });
580
+ return vs(t) ? null : /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ei, {}) });
581
581
  }, Nt = {
582
582
  ab: "Abkhazian",
583
583
  aa: "Afar",
@@ -767,7 +767,7 @@ const ri = ({ query: e, uuid: t }) => {
767
767
  za: "Zhuang, Chuang",
768
768
  zu: "Zulu"
769
769
  };
770
- function ws(e, t, n = !1) {
770
+ function bs(e, t, n = !1) {
771
771
  const s = e.toString() ? `?${e.toString()}` : "/";
772
772
  n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
773
773
  }
@@ -777,7 +777,7 @@ const On = Ee(null), Dn = () => {
777
777
  () => (e == null ? void 0 : e.fallbackLang) || "en",
778
778
  [e]
779
779
  );
780
- }, bs = () => {
780
+ }, Is = () => {
781
781
  const e = L(), t = N();
782
782
  return ae({
783
783
  queryKey: [E.GET_WEBSITE_PAGES],
@@ -801,8 +801,8 @@ const On = Ee(null), Dn = () => {
801
801
  },
802
802
  placeholderData: (r) => r || {}
803
803
  });
804
- }, Ti = F(() => import("./page-manager-new-kMwd9hkH.js")), Is = ({ children: e }) => {
805
- const { t } = _e(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: c } = bs(), [u, d] = K(!1), [f, h] = K(!0), { savePage: g } = xe(), p = !!r && !he(a), S = Q(() => {
804
+ }, Ti = F(() => import("./page-manager-new-DshyH-mV.js")), Ls = ({ children: e }) => {
805
+ const { t } = _e(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: c } = Is(), [u, d] = K(!1), [f, h] = K(!0), { savePage: g } = xe(), p = !!r && !he(a), S = Q(() => {
806
806
  if (!o || c) return !1;
807
807
  const A = o.find((b) => b.slug === "/");
808
808
  return A == null ? void 0 : A.id;
@@ -810,7 +810,7 @@ const On = Ee(null), Dn = () => {
810
810
  se(() => {
811
811
  if (c || !S || o.some((B) => B.id === r)) return;
812
812
  const b = new URLSearchParams({ page: S });
813
- ws(b, s), !c && o && h(!1);
813
+ bs(b, s), !c && o && h(!1);
814
814
  }, [r, c, o, S, s]);
815
815
  const P = !f && !r, T = !f && !i && he(a), y = u || P || T;
816
816
  return /* @__PURE__ */ m(ge, { children: [
@@ -827,8 +827,8 @@ const On = Ee(null), Dn = () => {
827
827
  ),
828
828
  /* @__PURE__ */ l(Yt, { side: "right", children: /* @__PURE__ */ l("p", { children: t("Open pages manager") }) })
829
829
  ] }) }) }),
830
- /* @__PURE__ */ l(Es, { open: y, onOpenChange: (A) => !A && p && d(!1), children: /* @__PURE__ */ m(
831
- ps,
830
+ /* @__PURE__ */ l(ps, { open: y, onOpenChange: (A) => !A && p && d(!1), children: /* @__PURE__ */ m(
831
+ ys,
832
832
  {
833
833
  side: "left",
834
834
  "aria-describedby": "pages-manager-description",
@@ -849,7 +849,7 @@ const On = Ee(null), Dn = () => {
849
849
  }
850
850
  ) })
851
851
  ] });
852
- }, Si = F(() => import("./add-new-language-page-DSB8ohdj.js")), _i = () => {
852
+ }, Si = F(() => import("./add-new-language-page-CKwMwrAg.js")), _i = () => {
853
853
  const e = oe("topLeftCorner", null);
854
854
  return e ? /* @__PURE__ */ l("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Fr.createElement(e, {}) }) : null;
855
855
  }, Pi = ({
@@ -863,7 +863,7 @@ const On = Ee(null), Dn = () => {
863
863
  A && (r.includes(A) ? i(A) : (y.delete("lang"), c(y), i("")));
864
864
  }, [r, c, i]);
865
865
  const [, f] = te(On), { data: h } = ie(), { data: g } = Re(), { data: p } = Ge(), S = Q(() => {
866
- const y = fs(
866
+ const y = hs(
867
867
  Mt(V(g, "languages"), (A) => {
868
868
  const b = re(p, { lang: A });
869
869
  return {
@@ -897,10 +897,10 @@ const On = Ee(null), Dn = () => {
897
897
  }, T = (y) => {
898
898
  i(y);
899
899
  const A = new URLSearchParams(window.location.search);
900
- y === s ? A.delete("lang") : A.set("lang", y), ws(A, c);
900
+ y === s ? A.delete("lang") : A.set("lang", y), bs(A, c);
901
901
  };
902
902
  return he(r) ? null : u ? /* @__PURE__ */ m(U, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
903
- /* @__PURE__ */ l(Vn, { className: "h-4 w-4" }),
903
+ /* @__PURE__ */ l(Hn, { className: "h-4 w-4" }),
904
904
  V(Nt, o, o),
905
905
  /* @__PURE__ */ l(hn, { className: "h-4 w-4" })
906
906
  ] }) : n ? /* @__PURE__ */ l(U, { onClick: () => T(s), variant: "link", size: "sm", children: d("Switch to default language") }) : /* @__PURE__ */ l(ge, { children: /* @__PURE__ */ m(wn, { children: [
@@ -912,7 +912,7 @@ const On = Ee(null), Dn = () => {
912
912
  size: "sm",
913
913
  className: "ml-px h-max gap-2 py-1.5",
914
914
  children: [
915
- /* @__PURE__ */ l(Vn, { className: "h-4 w-4" }),
915
+ /* @__PURE__ */ l(Hn, { className: "h-4 w-4" }),
916
916
  V(Nt, o, o),
917
917
  /* @__PURE__ */ l(hn, { className: "h-4 w-4" })
918
918
  ]
@@ -955,7 +955,7 @@ const On = Ee(null), Dn = () => {
955
955
  },
956
956
  className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
957
957
  children: [
958
- /* @__PURE__ */ l(Ts, { className: "mr-1 h-3 w-3" }),
958
+ /* @__PURE__ */ l(Ss, { className: "mr-1 h-3 w-3" }),
959
959
  " Add Langauge"
960
960
  ]
961
961
  }
@@ -968,7 +968,7 @@ function vi() {
968
968
  const [e, t] = te(On);
969
969
  return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
970
970
  /* @__PURE__ */ l(_i, {}),
971
- /* @__PURE__ */ l(Is, {}),
971
+ /* @__PURE__ */ l(Ls, {}),
972
972
  e && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
973
973
  Si,
974
974
  {
@@ -992,11 +992,11 @@ function wi() {
992
992
  /* @__PURE__ */ l(Ct, { className: "h-8 w-8 rounded-full" })
993
993
  ] }, t)) });
994
994
  }
995
- const bi = j.lazy(() => import("./page-revisions-content-c32By7XR.js"));
995
+ const bi = j.lazy(() => import("./page-revisions-content-DZzxttKH.js"));
996
996
  function Ii() {
997
997
  const [e, t] = j.useState(!1);
998
- return /* @__PURE__ */ l(ys, { children: /* @__PURE__ */ m(jt, { delayDuration: 0, children: [
999
- /* @__PURE__ */ m(Es, { open: e, onOpenChange: t, children: [
998
+ return /* @__PURE__ */ l(As, { children: /* @__PURE__ */ m(jt, { delayDuration: 0, children: [
999
+ /* @__PURE__ */ m(ps, { open: e, onOpenChange: t, children: [
1000
1000
  /* @__PURE__ */ l(aa, { asChild: !0, children: /* @__PURE__ */ l(Wt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
1001
1001
  /* @__PURE__ */ m(U, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
1002
1002
  /* @__PURE__ */ l(Na, { className: "h-4 w-4" }),
@@ -1004,7 +1004,7 @@ function Ii() {
1004
1004
  ] }),
1005
1005
  /* @__PURE__ */ l("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1006
1006
  ] }) }) }),
1007
- /* @__PURE__ */ l(ps, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ l(wi, {}), children: /* @__PURE__ */ l(bi, { isOpen: e }) }) })
1007
+ /* @__PURE__ */ l(ys, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ l(wi, {}), children: /* @__PURE__ */ l(bi, { isOpen: e }) }) })
1008
1008
  ] }),
1009
1009
  /* @__PURE__ */ l(Yt, { side: "bottom", children: /* @__PURE__ */ l("p", { children: "Revision history" }) })
1010
1010
  ] }) });
@@ -1015,7 +1015,7 @@ const an = ({
1015
1015
  children: n,
1016
1016
  fallback: s = null
1017
1017
  }) => {
1018
- const { hasPermission: r } = ms();
1018
+ const { hasPermission: r } = Es();
1019
1019
  return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
1020
1020
  }, Li = {
1021
1021
  SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
@@ -1152,7 +1152,7 @@ const an = ({
1152
1152
  });
1153
1153
  }
1154
1154
  });
1155
- }, Ls = () => {
1155
+ }, Cs = () => {
1156
1156
  const e = N(), t = L(), n = W(), { data: s } = ie(), { savePageAsync: r } = xe();
1157
1157
  return Z({
1158
1158
  mutationFn: async ({ ids: a }) => (await r(), t(e, {
@@ -1231,13 +1231,13 @@ const an = ({
1231
1231
  R.error("Failed to change slug");
1232
1232
  }
1233
1233
  });
1234
- }, ki = F(() => import("./publish-pages-content-BB6l92oG.js"));
1234
+ }, ki = F(() => import("./publish-pages-content-CRvy9fwt.js"));
1235
1235
  function Oi({
1236
1236
  showModal: e = !1,
1237
1237
  onClose: t = () => console.log("Cancelled")
1238
1238
  }) {
1239
- const { mutate: n, isPending: s } = Ls();
1240
- return /* @__PURE__ */ l(As, { open: e, onOpenChange: s ? () => {
1239
+ const { mutate: n, isPending: s } = Cs();
1240
+ return /* @__PURE__ */ l(Ts, { open: e, onOpenChange: s ? () => {
1241
1241
  } : t, children: e && /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ l("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ l(ki, { onClose: t, isPending: s, publishPage: n }) }) });
1242
1242
  }
1243
1243
  const ce = {
@@ -1307,12 +1307,12 @@ function xn({
1307
1307
  delayDuration: s = 700,
1308
1308
  showTooltip: r = !0
1309
1309
  }) {
1310
- return r ? /* @__PURE__ */ l(ys, { children: /* @__PURE__ */ m(jt, { delayDuration: s, children: [
1310
+ return r ? /* @__PURE__ */ l(As, { children: /* @__PURE__ */ m(jt, { delayDuration: s, children: [
1311
1311
  /* @__PURE__ */ l(Wt, { asChild: !0, children: e }),
1312
1312
  /* @__PURE__ */ l(Yt, { side: n, sideOffset: 10, children: /* @__PURE__ */ l("p", { children: t }) })
1313
1313
  ] }) }) : e;
1314
1314
  }
1315
- const Ri = F(() => import("./unpublish-page-CEtpcrvc.js")), Ui = F(() => import("./translation-warning-modal-DalBhNQy.js")), Mi = () => {
1315
+ const Ri = F(() => import("./unpublish-page-BzI9EFF9.js")), Ui = F(() => import("./translation-warning-modal-DalBhNQy.js")), Mi = () => {
1316
1316
  const { t: e } = _e(), { selectedLang: t, fallbackLang: n } = Se(), s = oe("getPreviewUrl", async (h) => h), [r, a] = K(""), { data: i } = ie(), { data: o } = Ge(), { data: c } = Le(), u = Q(
1317
1317
  () => {
1318
1318
  var h;
@@ -1389,7 +1389,7 @@ const Ri = F(() => import("./unpublish-page-CEtpcrvc.js")), Ui = F(() => import(
1389
1389
  u
1390
1390
  ] });
1391
1391
  }, qi = () => {
1392
- const { t: e } = _e(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = Ge(), [r, a] = K(!1), [i, o] = K(!1), [c, u] = K(null), { savePageAsync: d } = xe(), [f, h] = K(!1), { data: g } = ie(), { mutate: p, isPending: S } = Ls(), { needTranslations: P } = xe(), T = P(), { buttonText: y, buttonClassName: A, isPublished: b } = Q(() => {
1392
+ const { t: e } = _e(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = Ge(), [r, a] = K(!1), [i, o] = K(!1), [c, u] = K(null), { savePageAsync: d } = xe(), [f, h] = K(!1), { data: g } = ie(), { mutate: p, isPending: S } = Cs(), { needTranslations: P } = xe(), T = P(), { buttonText: y, buttonClassName: A, isPublished: b } = Q(() => {
1393
1393
  const w = g && (g == null ? void 0 : g.online);
1394
1394
  return {
1395
1395
  buttonClassName: w ? "hover:bg-green-600 bg-green-500" : "",
@@ -1404,7 +1404,7 @@ const Ri = F(() => import("./unpublish-page-CEtpcrvc.js")), Ui = F(() => import(
1404
1404
  k();
1405
1405
  }, k = () => {
1406
1406
  const w = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
1407
- p({ ids: fs(w) }, { onSuccess: () => on("TOP_RIGHT") });
1407
+ p({ ids: hs(w) }, { onSuccess: () => on("TOP_RIGHT") });
1408
1408
  }, pe = () => {
1409
1409
  h(!1), k();
1410
1410
  }, ye = async () => {
@@ -1426,18 +1426,18 @@ const Ri = F(() => import("./unpublish-page-CEtpcrvc.js")), Ui = F(() => import(
1426
1426
  "span",
1427
1427
  {
1428
1428
  className: `flex items-center transition-transform duration-300 ease-in-out ${i ? "-translate-y-10" : ""}`,
1429
- children: b ? /* @__PURE__ */ l(Hn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Qn, { className: "h-4 w-4" })
1429
+ children: b ? /* @__PURE__ */ l(Qn, { className: "h-4 w-4" }) : /* @__PURE__ */ l($n, { className: "h-4 w-4" })
1430
1430
  }
1431
1431
  ),
1432
1432
  /* @__PURE__ */ l(
1433
1433
  "span",
1434
1434
  {
1435
1435
  className: `absolute inset-0 left-3 flex items-center transition-transform duration-300 ease-in-out ${i ? "" : "translate-y-10"}`,
1436
- children: b ? /* @__PURE__ */ l(Qn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Hn, { className: "h-4 w-4" })
1436
+ children: b ? /* @__PURE__ */ l($n, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Qn, { className: "h-4 w-4" })
1437
1437
  }
1438
1438
  ),
1439
1439
  /* @__PURE__ */ l("span", { children: y }),
1440
- t ? `(${Fn(t)})` : ""
1440
+ t ? `(${qn(t)})` : ""
1441
1441
  ]
1442
1442
  }
1443
1443
  ),
@@ -1483,7 +1483,7 @@ const Ri = F(() => import("./unpublish-page-CEtpcrvc.js")), Ui = F(() => import(
1483
1483
  b && /* @__PURE__ */ m(ue, { onClick: () => u(n), className: "cursor-pointer text-xs", children: [
1484
1484
  e("Unpublish"),
1485
1485
  " page ",
1486
- t ? `(${Fn(t)})` : ""
1486
+ t ? `(${qn(t)})` : ""
1487
1487
  ] })
1488
1488
  ] })
1489
1489
  ] })
@@ -1502,7 +1502,7 @@ const Ri = F(() => import("./unpublish-page-CEtpcrvc.js")), Ui = F(() => import(
1502
1502
  ] });
1503
1503
  };
1504
1504
  function Ki() {
1505
- const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = Ps(n);
1505
+ const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = vs(n);
1506
1506
  return e || !s ? /* @__PURE__ */ l("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
1507
1507
  /* @__PURE__ */ l(Ii, {}),
1508
1508
  /* @__PURE__ */ l(an, { permission: ce.EDIT_THEME, children: /* @__PURE__ */ l(Bi, {}) }),
@@ -1522,7 +1522,7 @@ const Vi = ({
1522
1522
  children: o,
1523
1523
  isLanguagePage: c
1524
1524
  }) => {
1525
- const { t: u } = _e(), { hasPermission: d } = ms(), { data: f } = Le(), h = Q(() => re(f, { key: e.pageType }), [f, e.pageType]), g = Q(() => !!e.isTemplate, [e.isTemplate]), p = Q(() => !!(h != null && h.hasSlug), [h == null ? void 0 : h.hasSlug]);
1525
+ const { t: u } = _e(), { hasPermission: d } = Es(), { data: f } = Le(), h = Q(() => re(f, { key: e.pageType }), [f, e.pageType]), g = Q(() => !!e.isTemplate, [e.isTemplate]), p = Q(() => !!(h != null && h.hasSlug), [h == null ? void 0 : h.hasSlug]);
1526
1526
  return !d(ce.EDIT_PAGE) && !d(ce.DELETE_PAGE) && !d(ce.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(wn, { children: [
1527
1527
  /* @__PURE__ */ l(bn, { asChild: !0, onClick: (P) => P.stopPropagation(), children: o }),
1528
1528
  /* @__PURE__ */ m(In, { align: "center", className: "text-sm", children: [
@@ -1589,7 +1589,7 @@ const Vi = ({
1589
1589
  P.stopPropagation(), i(e);
1590
1590
  },
1591
1591
  children: [
1592
- /* @__PURE__ */ l($n, { className: "size-3" }),
1592
+ /* @__PURE__ */ l(zn, { className: "size-3" }),
1593
1593
  u("Unmark as template")
1594
1594
  ]
1595
1595
  }
@@ -1601,14 +1601,14 @@ const Vi = ({
1601
1601
  P.stopPropagation(), a(e);
1602
1602
  },
1603
1603
  children: [
1604
- /* @__PURE__ */ l($n, { className: "size-3" }),
1604
+ /* @__PURE__ */ l(zn, { className: "size-3" }),
1605
1605
  u("Mark as template")
1606
1606
  ]
1607
1607
  }
1608
1608
  ) })
1609
1609
  ] })
1610
1610
  ] });
1611
- }, Hi = F(() => import("./add-new-page-BYkFbQvH.js")), Qi = F(() => import("./delete-page-C7xfkDN5.js")), $i = F(() => import("./duplicate-page-B8k4yZxa.js")), zi = F(() => import("./mark-as-template-CpNHtyfB.js")), ji = F(() => import("./unmark-as-template-CGZ0CCI2.js")), Wi = F(() => import("./unpublish-page-CEtpcrvc.js")), Yi = () => {
1611
+ }, Hi = F(() => import("./add-new-page-BzBMJ3Cn.js")), Qi = F(() => import("./delete-page-Ck7tD4Hf.js")), $i = F(() => import("./duplicate-page-C7d1f7Ii.js")), zi = F(() => import("./mark-as-template-ngqCvlhA.js")), ji = F(() => import("./unmark-as-template-BWviVI2t.js")), Wi = F(() => import("./unpublish-page-BzI9EFF9.js")), Yi = () => {
1612
1612
  const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [c, u] = K(null), [d, f] = K(null), { data: h, isFetching: g } = be(), { selectedLang: p, fallbackLang: S } = Se(), { data: P } = Ge(), T = P == null ? void 0 : P.find((k) => k.lang === p), { isLocked: y } = Ie(), A = !(h != null && h.slug), [, b] = te(On);
1613
1613
  if (!h) return null;
1614
1614
  const B = (k) => {
@@ -1620,7 +1620,7 @@ const Vi = ({
1620
1620
  };
1621
1621
  return /* @__PURE__ */ m(ge, { children: [
1622
1622
  /* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
1623
- /* @__PURE__ */ l(Is, { children: /* @__PURE__ */ l(
1623
+ /* @__PURE__ */ l(Ls, { children: /* @__PURE__ */ l(
1624
1624
  U,
1625
1625
  {
1626
1626
  className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
@@ -1637,7 +1637,7 @@ const Vi = ({
1637
1637
  variant: "ghost",
1638
1638
  size: "icon",
1639
1639
  className: "h-7 w-7 cursor-not-allowed rounded opacity-50 hover:bg-transparent",
1640
- children: /* @__PURE__ */ l(zn, { className: "h-4 w-4" })
1640
+ children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" })
1641
1641
  }
1642
1642
  ) : /* @__PURE__ */ l(
1643
1643
  Vi,
@@ -1650,7 +1650,7 @@ const Vi = ({
1650
1650
  setMarkAsTemplate: (k) => a(k),
1651
1651
  setUnmarkAsTemplate: (k) => o(k),
1652
1652
  isLanguagePage: p.length > 0 && p !== S,
1653
- children: /* @__PURE__ */ l(U, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ l(zn, { className: "h-4 w-4" }) })
1653
+ children: /* @__PURE__ */ l(U, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" }) })
1654
1654
  }
1655
1655
  )
1656
1656
  ] }),
@@ -1677,7 +1677,7 @@ const Vi = ({
1677
1677
  }
1678
1678
  ) })
1679
1679
  ] });
1680
- }, Cs = ({ children: e, className: t = "" }) => /* @__PURE__ */ l(
1680
+ }, Ns = ({ children: e, className: t = "" }) => /* @__PURE__ */ l(
1681
1681
  "div",
1682
1682
  {
1683
1683
  className: Bt(
@@ -1686,10 +1686,10 @@ const Vi = ({
1686
1686
  ),
1687
1687
  children: e
1688
1688
  }
1689
- ), Ji = ({ hasDynamicPage: e }) => /* @__PURE__ */ l(Cs, { 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: [
1689
+ ), Ji = ({ hasDynamicPage: e }) => /* @__PURE__ */ l(Ns, { 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: [
1690
1690
  /* @__PURE__ */ l("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
1691
1691
  /* @__PURE__ */ l("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" })
1692
- ] }) }), Zi = F(() => import("./dynamic-page-selector-C7Vos5-l.js")), Xi = () => {
1692
+ ] }) }), Zi = F(() => import("./dynamic-page-selector-D544FjmW.js")), Xi = () => {
1693
1693
  const { dynamicPage: e, allLangPages: t, isFetching: n } = ai(), s = t.length > 0;
1694
1694
  return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
1695
1695
  !e && /* @__PURE__ */ l(Ji, { hasDynamicPage: s }),
@@ -1739,7 +1739,7 @@ const Vi = ({
1739
1739
  /* @__PURE__ */ l(vi, {}),
1740
1740
  /* @__PURE__ */ l(eo, {}),
1741
1741
  /* @__PURE__ */ l(Ki, {})
1742
- ] }), Ns = () => {
1742
+ ] }), ks = () => {
1743
1743
  const e = W(), { data: t } = ae({
1744
1744
  queryKey: [E.AI_CONTEXT],
1745
1745
  initialData: "",
@@ -1753,7 +1753,7 @@ const Vi = ({
1753
1753
  [e]
1754
1754
  ), aiContext: t };
1755
1755
  }, no = () => {
1756
- const e = N(), { aiContext: t } = Ns(), n = L();
1756
+ const e = N(), { aiContext: t } = ks(), n = L();
1757
1757
  return z(
1758
1758
  async (s, r, a, i) => n(e, {
1759
1759
  action: E.ASK_AI,
@@ -1783,14 +1783,14 @@ const Vi = ({
1783
1783
  const t = Ya();
1784
1784
  return Q(() => {
1785
1785
  if (!e || he(e)) return { blocks: [] };
1786
- const n = hs(
1786
+ const n = gs(
1787
1787
  e,
1788
1788
  (s) => !kr(s == null ? void 0 : s._type, "@chai/")
1789
1789
  );
1790
1790
  return { blocks: so(t, n) };
1791
1791
  }, [e, t]);
1792
1792
  }, ao = () => {
1793
- const [e] = le(), t = e.get("page"), n = N(), { setAiContext: s } = Ns(), [, r] = Nn(), [, a] = li(), [, i] = jr(), o = L();
1793
+ const [e] = le(), t = e.get("page"), n = N(), { setAiContext: s } = ks(), [, r] = Nn(), [, a] = li(), [, i] = jr(), o = L();
1794
1794
  return ae({
1795
1795
  queryKey: [E.GET_DRAFT_PAGE, t],
1796
1796
  staleTime: 1 / 0,
@@ -1935,7 +1935,7 @@ const Vi = ({
1935
1935
  });
1936
1936
  }
1937
1937
  });
1938
- }, Yn = {
1938
+ }, Jn = {
1939
1939
  async getUILibraryBlock(e, t, n) {
1940
1940
  const s = await t(n, {
1941
1941
  action: "GET_LIBRARY_ITEM",
@@ -1968,14 +1968,14 @@ const Vi = ({
1968
1968
  Wr(r.id, {
1969
1969
  name: r.isSiteLibrary ? r.name + " (Current Site) " : r.name,
1970
1970
  description: r.description,
1971
- getBlocksList: (a) => Yn.getUILibraryBlocks(a, t, e),
1972
- getBlock: ({ block: a }) => Yn.getUILibraryBlock(a, t, e)
1971
+ getBlocksList: (a) => Jn.getUILibraryBlocks(a, t, e),
1972
+ getBlock: ({ block: a }) => Jn.getUILibraryBlock(a, t, e)
1973
1973
  });
1974
1974
  }), s;
1975
1975
  }
1976
1976
  });
1977
1977
  }, co = () => {
1978
- const e = Ss(), t = L(), { user: n } = Jt(), s = n == null ? void 0 : n.id;
1978
+ const e = _s(), t = L(), { user: n } = Jt(), s = n == null ? void 0 : n.id;
1979
1979
  return ae({
1980
1980
  queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
1981
1981
  queryFn: () => t(e, {
@@ -2006,7 +2006,7 @@ const Vi = ({
2006
2006
  }
2007
2007
  } };
2008
2008
  }, fo = () => {
2009
- const { data: e } = bs(), t = N(), n = L();
2009
+ const { data: e } = Is(), t = N(), n = L();
2010
2010
  return {
2011
2011
  getPartialBlocks: z(async () => {
2012
2012
  const s = {};
@@ -2026,7 +2026,7 @@ const Vi = ({
2026
2026
  action: "GET_DRAFT_PAGE",
2027
2027
  data: { id: s, draft: !0, editor: !1 }
2028
2028
  });
2029
- return hs(r.blocks, (a) => zt(a, "_id"));
2029
+ return gs(r.blocks, (a) => zt(a, "_id"));
2030
2030
  } catch (r) {
2031
2031
  return console.error(r), [];
2032
2032
  }
@@ -2034,7 +2034,7 @@ const Vi = ({
2034
2034
  [n, t]
2035
2035
  )
2036
2036
  };
2037
- }, ho = F(() => import("./ai-panel-content-DET3HjIR.js")), ks = "chai-chat-panel", go = ({ 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: [
2037
+ }, ho = F(() => import("./ai-panel-content-B7VWN9Hp.js")), Os = "chai-chat-panel", go = ({ 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: [
2038
2038
  /* @__PURE__ */ l("title", { children: "ai" }),
2039
2039
  /* @__PURE__ */ l("g", { id: "Page-1", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", children: /* @__PURE__ */ l("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ l(
2040
2040
  "path",
@@ -2044,23 +2044,23 @@ const Vi = ({
2044
2044
  }
2045
2045
  ) }) })
2046
2046
  ] }), mo = ({ isActive: e, show: t }) => /* @__PURE__ */ l(U, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ l(go, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }), Eo = {
2047
- id: ks,
2047
+ id: Os,
2048
2048
  label: "AI Assistant",
2049
2049
  button: mo,
2050
2050
  panel: ho,
2051
2051
  position: "top"
2052
- }, po = F(() => import("./lang-panel-B8SeKnwN.js")), yo = ({ isActive: e, show: t }) => {
2052
+ }, po = F(() => import("./lang-panel-by1VOWvc.js")), yo = ({ isActive: e, show: t }) => {
2053
2053
  const { data: n } = Re();
2054
2054
  return !zt(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */ l(U, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ l(Ka, { className: "h-4 w-4" }) });
2055
- }, Os = "lang", Ao = {
2056
- id: Os,
2055
+ }, Ds = "lang", Ao = {
2056
+ id: Ds,
2057
2057
  label: "Languages",
2058
2058
  position: "top",
2059
2059
  panel: po,
2060
2060
  button: yo,
2061
2061
  view: "modal",
2062
2062
  width: 400
2063
- }, To = F(() => import("./seo-panel-BsMBb5Ep.js")), Ds = "seo", So = ({ isActive: e, show: t }) => {
2063
+ }, To = F(() => import("./seo-panel-dIE8Wi40.js")), xs = "seo", So = ({ isActive: e, show: t }) => {
2064
2064
  const { data: n } = ie(), s = Ci(n == null ? void 0 : n.pageType);
2065
2065
  return !zt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ l(U, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
2066
2066
  "svg",
@@ -2081,15 +2081,15 @@ const Vi = ({
2081
2081
  }
2082
2082
  ) });
2083
2083
  }, _o = {
2084
- id: Ds,
2084
+ id: xs,
2085
2085
  label: "SEO",
2086
2086
  panel: To,
2087
2087
  button: So,
2088
2088
  position: "top",
2089
2089
  width: 600,
2090
2090
  view: "modal"
2091
- }, xs = "user-info", Po = () => {
2092
- const { t: e } = _e(), { user: t, logout: n } = Jt(), s = oe("onLogout", ds);
2091
+ }, Gs = "user-info", Po = () => {
2092
+ const { t: e } = _e(), { user: t, logout: n } = Jt(), s = oe("onLogout", fs);
2093
2093
  return t ? /* @__PURE__ */ m(ia, { children: [
2094
2094
  /* @__PURE__ */ l(oa, { asChild: !0, children: /* @__PURE__ */ l(U, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ l(Va, { className: "h-4 w-4" }) }) }),
2095
2095
  /* @__PURE__ */ m(la, { className: "w-auto space-y-2 p-4", children: [
@@ -2119,12 +2119,12 @@ const Vi = ({
2119
2119
  ] })
2120
2120
  ] }) : null;
2121
2121
  }, vo = {
2122
- id: xs,
2122
+ id: Gs,
2123
2123
  label: "User Info",
2124
2124
  button: Po,
2125
2125
  position: "bottom"
2126
2126
  }, wo = () => {
2127
- Lt(Ds, _o), Lt(Os, Ao), Lt(xs, vo), (localStorage.getItem("chai-feature-flags") ?? "").includes("enable-ai-chat-panel") && (console.log("enable-ai-chat-panel"), Lt(ks, Eo));
2127
+ Lt(xs, _o), Lt(Ds, Ao), Lt(Gs, vo), (localStorage.getItem("chai-feature-flags") ?? "").includes("enable-ai-chat-panel") && (console.log("enable-ai-chat-panel"), Lt(Os, Eo));
2128
2128
  };
2129
2129
  var v = {
2130
2130
  context: void 0,
@@ -2132,29 +2132,29 @@ var v = {
2132
2132
  effects: void 0,
2133
2133
  done: !1,
2134
2134
  getContextId() {
2135
- return Jn(this.context.count);
2135
+ return Zn(this.context.count);
2136
2136
  },
2137
2137
  getNextContextId() {
2138
- return Jn(this.context.count++);
2138
+ return Zn(this.context.count++);
2139
2139
  }
2140
2140
  };
2141
- function Jn(e) {
2141
+ function Zn(e) {
2142
2142
  const t = String(e), n = t.length - 1;
2143
2143
  return v.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
2144
2144
  }
2145
2145
  function rt(e) {
2146
2146
  v.context = e;
2147
2147
  }
2148
- var Gs = !1, bo = (e, t) => e === t, qt = Symbol("solid-proxy"), Rs = typeof Proxy == "function", Us = Symbol("solid-track"), Kt = {
2148
+ var Rs = !1, bo = (e, t) => e === t, qt = Symbol("solid-proxy"), Us = typeof Proxy == "function", Ms = Symbol("solid-track"), Kt = {
2149
2149
  equals: bo
2150
- }, Ms = Qs, Pe = 1, Vt = 2, Bs = {
2150
+ }, Bs = $s, Pe = 1, Vt = 2, Fs = {
2151
2151
  owned: null,
2152
2152
  cleanups: null,
2153
2153
  context: null,
2154
2154
  owner: null
2155
2155
  }, ln = {}, C = null, cn = null, Io = null, x = null, ee = null, Te = null, Zt = 0;
2156
2156
  function Oe(e, t) {
2157
- const n = x, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Bs : {
2157
+ const n = x, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Fs : {
2158
2158
  owned: null,
2159
2159
  cleanups: null,
2160
2160
  context: a ? a.context : null,
@@ -2174,8 +2174,8 @@ function q(e, t) {
2174
2174
  observers: null,
2175
2175
  observerSlots: null,
2176
2176
  comparator: t.equals || void 0
2177
- }, s = (r) => (typeof r == "function" && (r = r(n.value)), Hs(n, r));
2178
- return [Vs.bind(n), s];
2177
+ }, s = (r) => (typeof r == "function" && (r = r(n.value)), Qs(n, r));
2178
+ return [Hs.bind(n), s];
2179
2179
  }
2180
2180
  function Lo(e, t, n) {
2181
2181
  const s = Xt(e, t, !0, Pe);
@@ -2185,15 +2185,15 @@ function De(e, t, n) {
2185
2185
  const s = Xt(e, t, !1, Pe);
2186
2186
  st(s);
2187
2187
  }
2188
- function Fs(e, t, n) {
2189
- Ms = Uo;
2188
+ function qs(e, t, n) {
2189
+ Bs = Uo;
2190
2190
  const s = Xt(e, t, !1, Pe);
2191
2191
  (!n || !n.render) && (s.user = !0), Te ? Te.push(s) : st(s);
2192
2192
  }
2193
2193
  function J(e, t, n) {
2194
2194
  n = n ? Object.assign({}, Kt, n) : Kt;
2195
2195
  const s = Xt(e, t, !0, 0);
2196
- return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Vs.bind(s);
2196
+ return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Hs.bind(s);
2197
2197
  }
2198
2198
  function Co(e) {
2199
2199
  return e && typeof e == "object" && "then" in e;
@@ -2275,7 +2275,7 @@ function No(e, t, n) {
2275
2275
  });
2276
2276
  let M = C;
2277
2277
  return f ? Lo(() => (M = C, ye(!1))) : ye(!1), [pe, {
2278
- refetch: (w) => qs(M, () => ye(w)),
2278
+ refetch: (w) => Ks(M, () => ye(w)),
2279
2279
  mutate: p
2280
2280
  }];
2281
2281
  }
@@ -2308,15 +2308,15 @@ function Yc(e, t, n) {
2308
2308
  };
2309
2309
  }
2310
2310
  function ko(e) {
2311
- Fs(() => X(e));
2311
+ qs(() => X(e));
2312
2312
  }
2313
2313
  function lt(e) {
2314
2314
  return C === null || (C.cleanups === null ? C.cleanups = [e] : C.cleanups.push(e)), e;
2315
2315
  }
2316
- function Zn() {
2316
+ function Xn() {
2317
2317
  return C;
2318
2318
  }
2319
- function qs(e, t) {
2319
+ function Ks(e, t) {
2320
2320
  const n = C, s = x;
2321
2321
  C = e, x = null;
2322
2322
  try {
@@ -2351,7 +2351,7 @@ function eu(e) {
2351
2351
  let t;
2352
2352
  return C && C.context && (t = C.context[e.id]) !== void 0 ? t : e.defaultValue;
2353
2353
  }
2354
- function Ks(e) {
2354
+ function Vs(e) {
2355
2355
  const t = J(e), n = J(() => gn(t()));
2356
2356
  return n.toArray = () => {
2357
2357
  const s = n();
@@ -2359,7 +2359,7 @@ function Ks(e) {
2359
2359
  }, n;
2360
2360
  }
2361
2361
  var xo;
2362
- function Vs() {
2362
+ function Hs() {
2363
2363
  if (this.sources && this.state)
2364
2364
  if (this.state === Pe) st(this);
2365
2365
  else {
@@ -2372,12 +2372,12 @@ function Vs() {
2372
2372
  }
2373
2373
  return this.value;
2374
2374
  }
2375
- function Hs(e, t, n) {
2375
+ function Qs(e, t, n) {
2376
2376
  let s = e.value;
2377
2377
  return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && me(() => {
2378
2378
  for (let r = 0; r < e.observers.length; r += 1) {
2379
2379
  const a = e.observers[r], i = cn && cn.running;
2380
- i && cn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && $s(a)), i || (a.state = Pe);
2380
+ i && cn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && zs(a)), i || (a.state = Pe);
2381
2381
  }
2382
2382
  if (ee.length > 1e6)
2383
2383
  throw ee = [], new Error();
@@ -2400,7 +2400,7 @@ function Go(e, t, n) {
2400
2400
  } finally {
2401
2401
  x = a, C = r;
2402
2402
  }
2403
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Hs(e, s) : e.value = s, e.updatedAt = n);
2403
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Qs(e, s) : e.value = s, e.updatedAt = n);
2404
2404
  }
2405
2405
  function Xt(e, t, n, s = Pe, r) {
2406
2406
  const a = {
@@ -2416,7 +2416,7 @@ function Xt(e, t, n, s = Pe, r) {
2416
2416
  context: C ? C.context : null,
2417
2417
  pure: n
2418
2418
  };
2419
- return C === null || C !== Bs && (C.owned ? C.owned.push(a) : C.owned = [a]), a;
2419
+ return C === null || C !== Fs && (C.owned ? C.owned.push(a) : C.owned = [a]), a;
2420
2420
  }
2421
2421
  function Ht(e) {
2422
2422
  if (e.state === 0) return;
@@ -2445,11 +2445,11 @@ function me(e, t) {
2445
2445
  }
2446
2446
  }
2447
2447
  function Ro(e) {
2448
- if (ee && (Qs(ee), ee = null), e) return;
2448
+ if (ee && ($s(ee), ee = null), e) return;
2449
2449
  const t = Te;
2450
- Te = null, t.length && me(() => Ms(t), !1);
2450
+ Te = null, t.length && me(() => Bs(t), !1);
2451
2451
  }
2452
- function Qs(e) {
2452
+ function $s(e) {
2453
2453
  for (let t = 0; t < e.length; t++) Ht(e[t]);
2454
2454
  }
2455
2455
  function Uo(e) {
@@ -2477,10 +2477,10 @@ function Qt(e, t) {
2477
2477
  }
2478
2478
  }
2479
2479
  }
2480
- function $s(e) {
2480
+ function zs(e) {
2481
2481
  for (let t = 0; t < e.observers.length; t += 1) {
2482
2482
  const n = e.observers[t];
2483
- n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers && $s(n));
2483
+ n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers && zs(n));
2484
2484
  }
2485
2485
  }
2486
2486
  function ct(e) {
@@ -2533,7 +2533,7 @@ function Mo(e, t) {
2533
2533
  return De(() => r = X(() => (C.context = {
2534
2534
  ...C.context,
2535
2535
  [e]: s.value
2536
- }, Ks(() => s.children))), void 0), r;
2536
+ }, Vs(() => s.children))), void 0), r;
2537
2537
  };
2538
2538
  }
2539
2539
  var mn = Symbol("fallback");
@@ -2544,7 +2544,7 @@ function Bo(e, t, n = {}) {
2544
2544
  let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
2545
2545
  return lt(() => $t(a)), () => {
2546
2546
  let c = e() || [], u = c.length, d, f;
2547
- return c[Us], X(() => {
2547
+ return c[Ms], X(() => {
2548
2548
  let g, p, S, P, T, y, A, b, B;
2549
2549
  if (u === 0)
2550
2550
  i !== 0 && ($t(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [mn], r[0] = Oe((k) => (a[0] = k, n.fallback())), i = 1);
@@ -2579,7 +2579,7 @@ function Fo(e, t, n = {}) {
2579
2579
  let s = [], r = [], a = [], i = [], o = 0, c;
2580
2580
  return lt(() => $t(a)), () => {
2581
2581
  const u = e() || [], d = u.length;
2582
- return u[Us], X(() => {
2582
+ return u[Ms], X(() => {
2583
2583
  if (d === 0)
2584
2584
  return o !== 0 && ($t(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [mn], r[0] = Oe((h) => (a[0] = h, n.fallback())), o = 1), r;
2585
2585
  for (s[0] === mn && (a[0](), a = [], s = [], r = [], o = 0), c = 0; c < d; c++)
@@ -2595,7 +2595,7 @@ function Fo(e, t, n = {}) {
2595
2595
  }
2596
2596
  };
2597
2597
  }
2598
- function zs(e, t) {
2598
+ function js(e, t) {
2599
2599
  return X(() => e(t || {}));
2600
2600
  }
2601
2601
  function kt() {
@@ -2634,13 +2634,13 @@ function qo() {
2634
2634
  if (n !== void 0) return n;
2635
2635
  }
2636
2636
  }
2637
- function js(...e) {
2637
+ function Ws(...e) {
2638
2638
  let t = !1;
2639
2639
  for (let i = 0; i < e.length; i++) {
2640
2640
  const o = e[i];
2641
2641
  t = t || !!o && qt in o, e[i] = typeof o == "function" ? (t = !0, J(o)) : o;
2642
2642
  }
2643
- if (Rs && t)
2643
+ if (Us && t)
2644
2644
  return new Proxy({
2645
2645
  get(i) {
2646
2646
  for (let o = e.length - 1; o >= 0; o--) {
@@ -2688,7 +2688,7 @@ function js(...e) {
2688
2688
  return r;
2689
2689
  }
2690
2690
  function Ko(e, ...t) {
2691
- if (Rs && qt in e) {
2691
+ if (Us && qt in e) {
2692
2692
  const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
2693
2693
  get(o) {
2694
2694
  return i.includes(o) ? e[o] : void 0;
@@ -2722,7 +2722,7 @@ function Ko(e, ...t) {
2722
2722
  }
2723
2723
  return [...s, n];
2724
2724
  }
2725
- function Ws(e) {
2725
+ function Ys(e) {
2726
2726
  let t, n;
2727
2727
  const s = (r) => {
2728
2728
  const a = v.context;
@@ -2750,7 +2750,7 @@ var Vo = 0;
2750
2750
  function tu() {
2751
2751
  return v.context ? v.getNextContextId() : `cl-${Vo++}`;
2752
2752
  }
2753
- var Ys = (e) => `Stale read from <${e}>.`;
2753
+ var Js = (e) => `Stale read from <${e}>.`;
2754
2754
  function nu(e) {
2755
2755
  const t = "fallback" in e && {
2756
2756
  fallback: () => e.fallback
@@ -2772,7 +2772,7 @@ function ru(e) {
2772
2772
  if (r) {
2773
2773
  const a = e.children;
2774
2774
  return typeof a == "function" && a.length > 0 ? X(() => a(t ? r : () => {
2775
- if (!X(s)) throw Ys("Show");
2775
+ if (!X(s)) throw Js("Show");
2776
2776
  return n();
2777
2777
  })) : a;
2778
2778
  }
@@ -2780,7 +2780,7 @@ function ru(e) {
2780
2780
  }, void 0, void 0);
2781
2781
  }
2782
2782
  function au(e) {
2783
- const t = Ks(() => e.children), n = J(() => {
2783
+ const t = Vs(() => e.children), n = J(() => {
2784
2784
  const s = t(), r = Array.isArray(s) ? s : [s];
2785
2785
  let a = () => {
2786
2786
  };
@@ -2798,7 +2798,7 @@ function au(e) {
2798
2798
  const [r, a, i] = s, o = i.children;
2799
2799
  return typeof o == "function" && o.length > 0 ? X(() => o(i.keyed ? a() : () => {
2800
2800
  var u;
2801
- if (((u = X(n)()) == null ? void 0 : u[0]) !== r) throw Ys("Match");
2801
+ if (((u = X(n)()) == null ? void 0 : u[0]) !== r) throw Js("Match");
2802
2802
  return a();
2803
2803
  })) : o;
2804
2804
  }, void 0, void 0);
@@ -2964,7 +2964,7 @@ function Xo(e, t, n) {
2964
2964
  }
2965
2965
  }
2966
2966
  var it = "_$DX_DELEGATE";
2967
- function Js(e, t, n, s = {}) {
2967
+ function Zs(e, t, n, s = {}) {
2968
2968
  let r;
2969
2969
  return Oe((a) => {
2970
2970
  r = a, t === document ? e() : yn(t, e(), t.firstChild ? null : void 0, n);
@@ -2984,12 +2984,12 @@ function el(e, t = window.document) {
2984
2984
  const n = t[it] || (t[it] = /* @__PURE__ */ new Set());
2985
2985
  for (let s = 0, r = e.length; s < r; s++) {
2986
2986
  const a = e[s];
2987
- n.has(a) || (n.add(a), t.addEventListener(a, Zs));
2987
+ n.has(a) || (n.add(a), t.addEventListener(a, Xs));
2988
2988
  }
2989
2989
  }
2990
2990
  function cu(e = window.document) {
2991
2991
  if (e[it]) {
2992
- for (let t of e[it].keys()) e.removeEventListener(t, Zs);
2992
+ for (let t of e[it].keys()) e.removeEventListener(t, Xs);
2993
2993
  delete e[it];
2994
2994
  }
2995
2995
  }
@@ -3018,11 +3018,11 @@ function al(e, t, n = {}) {
3018
3018
  let a, i;
3019
3019
  for (a = 0, i = r.length; a < i; a++) {
3020
3020
  const o = r[a];
3021
- !o || o === "undefined" || t[o] || (Xn(e, o, !1), delete n[o]);
3021
+ !o || o === "undefined" || t[o] || (es(e, o, !1), delete n[o]);
3022
3022
  }
3023
3023
  for (a = 0, i = s.length; a < i; a++) {
3024
3024
  const o = s[a], c = !!t[o];
3025
- !o || o === "undefined" || n[o] === c || !c || (Xn(e, o, !0), n[o] = c);
3025
+ !o || o === "undefined" || n[o] === c || !c || (es(e, o, !0), n[o] = c);
3026
3026
  }
3027
3027
  return n;
3028
3028
  }
@@ -3054,13 +3054,13 @@ function cl(e, t, n, s, r = {}, a = !1) {
3054
3054
  for (const i in r)
3055
3055
  if (!(i in t)) {
3056
3056
  if (i === "children") continue;
3057
- r[i] = es(e, i, null, r[i], n, a, t);
3057
+ r[i] = ts(e, i, null, r[i], n, a, t);
3058
3058
  }
3059
3059
  for (const i in t) {
3060
3060
  if (i === "children")
3061
3061
  continue;
3062
3062
  const o = t[i];
3063
- r[i] = es(e, i, o, r[i], n, a, t);
3063
+ r[i] = ts(e, i, o, r[i], n, a, t);
3064
3064
  }
3065
3065
  }
3066
3066
  function ul(e) {
@@ -3073,11 +3073,11 @@ function Ue(e) {
3073
3073
  function dl(e) {
3074
3074
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
3075
3075
  }
3076
- function Xn(e, t, n) {
3076
+ function es(e, t, n) {
3077
3077
  const s = t.trim().split(/\s+/);
3078
3078
  for (let r = 0, a = s.length; r < a; r++) e.classList.toggle(s[r], n);
3079
3079
  }
3080
- function es(e, t, n, s, r, a, i) {
3080
+ function ts(e, t, n, s, r, a, i) {
3081
3081
  let o, c, u, d, f;
3082
3082
  if (t === "style") return il(e, n, s);
3083
3083
  if (t === "classList") return al(e, n, s);
@@ -3112,7 +3112,7 @@ function es(e, t, n, s, r, a, i) {
3112
3112
  }
3113
3113
  return n;
3114
3114
  }
3115
- function Zs(e) {
3115
+ function Xs(e) {
3116
3116
  if (v.registry && v.events && v.events.find(([c, u]) => u === e))
3117
3117
  return;
3118
3118
  let t = e.target;
@@ -3195,7 +3195,7 @@ function ut(e, t, n, s, r) {
3195
3195
  }
3196
3196
  if (c.length === 0) {
3197
3197
  if (n = Be(e, n, s), o) return n;
3198
- } else u ? n.length === 0 ? ts(e, c, s) : Xo(e, n, c) : (n && Be(e), ts(e, c));
3198
+ } else u ? n.length === 0 ? ns(e, c, s) : Xo(e, n, c) : (n && Be(e), ns(e, c));
3199
3199
  n = c;
3200
3200
  } else if (t.nodeType) {
3201
3201
  if (a && t.parentNode) return n = o ? [t] : t;
@@ -3229,7 +3229,7 @@ function An(e, t, n, s) {
3229
3229
  }
3230
3230
  return r;
3231
3231
  }
3232
- function ts(e, t, n = null) {
3232
+ function ns(e, t, n = null) {
3233
3233
  for (let s = 0, r = t.length; s < r; s++) e.insertBefore(t[s], n);
3234
3234
  }
3235
3235
  function Be(e, t, n, s) {
@@ -3251,22 +3251,22 @@ function fl() {
3251
3251
  return v.getNextContextId();
3252
3252
  }
3253
3253
  var hl = "http://www.w3.org/2000/svg";
3254
- function Xs(e, t = !1) {
3254
+ function er(e, t = !1) {
3255
3255
  return t ? document.createElementNS(hl, e) : document.createElement(e);
3256
3256
  }
3257
3257
  function uu(e) {
3258
3258
  const {
3259
3259
  useShadow: t
3260
- } = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = Zn();
3260
+ } = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = Xn();
3261
3261
  let a, i = !!v.context;
3262
- return Fs(() => {
3263
- i && (Zn().user = i = !1), a || (a = qs(r, () => J(() => e.children)));
3262
+ return qs(() => {
3263
+ i && (Xn().user = i = !1), a || (a = Ks(r, () => J(() => e.children)));
3264
3264
  const o = s();
3265
3265
  if (o instanceof HTMLHeadElement) {
3266
3266
  const [c, u] = q(!1), d = () => u(!0);
3267
3267
  Oe((f) => yn(o, () => c() ? f() : a(), null)), lt(d);
3268
3268
  } else {
3269
- const c = Xs(e.isSVG ? "g" : "div", e.isSVG), u = t && c.attachShadow ? c.attachShadow({
3269
+ const c = er(e.isSVG ? "g" : "div", e.isSVG), u = t && c.attachShadow ? c.attachShadow({
3270
3270
  mode: "open"
3271
3271
  }) : c;
3272
3272
  Object.defineProperty(c, "_$host", {
@@ -3288,7 +3288,7 @@ function gl(e, t) {
3288
3288
  case "function":
3289
3289
  return X(() => s(t));
3290
3290
  case "string":
3291
- const r = Jo.has(s), a = v.context ? ul() : Xs(s, r);
3291
+ const r = Jo.has(s), a = v.context ? ul() : er(s, r);
3292
3292
  return ol(a, t, r), a;
3293
3293
  }
3294
3294
  });
@@ -3313,7 +3313,7 @@ var ml = class {
3313
3313
  clear() {
3314
3314
  this.keyToValue.clear(), this.valueToKey.clear();
3315
3315
  }
3316
- }, er = class {
3316
+ }, tr = class {
3317
3317
  constructor(e) {
3318
3318
  this.generateIdentifier = e, this.kv = new ml();
3319
3319
  }
@@ -3329,7 +3329,7 @@ var ml = class {
3329
3329
  getValue(e) {
3330
3330
  return this.kv.getByKey(e);
3331
3331
  }
3332
- }, El = class extends er {
3332
+ }, El = class extends tr {
3333
3333
  constructor() {
3334
3334
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3335
3335
  }
@@ -3365,7 +3365,7 @@ function nt(e, t) {
3365
3365
  function Ut(e, t) {
3366
3366
  return e.indexOf(t) !== -1;
3367
3367
  }
3368
- function ns(e, t) {
3368
+ function ss(e, t) {
3369
3369
  for (let n = 0; n < e.length; n++) {
3370
3370
  const s = e[n];
3371
3371
  if (t(s))
@@ -3385,7 +3385,7 @@ var Al = class {
3385
3385
  findByName(e) {
3386
3386
  return this.transfomers[e];
3387
3387
  }
3388
- }, Tl = (e) => Object.prototype.toString.call(e).slice(8, -1), tr = (e) => typeof e > "u", Sl = (e) => e === null, dt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Tn = (e) => dt(e) && Object.keys(e).length === 0, we = (e) => Array.isArray(e), _l = (e) => typeof e == "string", Pl = (e) => typeof e == "number" && !isNaN(e), vl = (e) => typeof e == "boolean", wl = (e) => e instanceof RegExp, ft = (e) => e instanceof Map, ht = (e) => e instanceof Set, nr = (e) => Tl(e) === "Symbol", bl = (e) => e instanceof Date && !isNaN(e.valueOf()), Il = (e) => e instanceof Error, ss = (e) => typeof e == "number" && isNaN(e), Ll = (e) => vl(e) || Sl(e) || tr(e) || Pl(e) || _l(e) || nr(e), Cl = (e) => typeof e == "bigint", Nl = (e) => e === 1 / 0 || e === -1 / 0, kl = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ol = (e) => e instanceof URL, sr = (e) => e.replace(/\./g, "\\."), dn = (e) => e.map(String).map(sr).join("."), ot = (e) => {
3388
+ }, Tl = (e) => Object.prototype.toString.call(e).slice(8, -1), nr = (e) => typeof e > "u", Sl = (e) => e === null, dt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Tn = (e) => dt(e) && Object.keys(e).length === 0, we = (e) => Array.isArray(e), _l = (e) => typeof e == "string", Pl = (e) => typeof e == "number" && !isNaN(e), vl = (e) => typeof e == "boolean", wl = (e) => e instanceof RegExp, ft = (e) => e instanceof Map, ht = (e) => e instanceof Set, sr = (e) => Tl(e) === "Symbol", bl = (e) => e instanceof Date && !isNaN(e.valueOf()), Il = (e) => e instanceof Error, rs = (e) => typeof e == "number" && isNaN(e), Ll = (e) => vl(e) || Sl(e) || nr(e) || Pl(e) || _l(e) || sr(e), Cl = (e) => typeof e == "bigint", Nl = (e) => e === 1 / 0 || e === -1 / 0, kl = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ol = (e) => e instanceof URL, rr = (e) => e.replace(/\./g, "\\."), dn = (e) => e.map(String).map(rr).join("."), ot = (e) => {
3389
3389
  const t = [];
3390
3390
  let n = "";
3391
3391
  for (let r = 0; r < e.length; r++) {
@@ -3411,8 +3411,8 @@ function fe(e, t, n, s) {
3411
3411
  untransform: s
3412
3412
  };
3413
3413
  }
3414
- var rr = [
3415
- fe(tr, "undefined", () => null, () => {
3414
+ var ar = [
3415
+ fe(nr, "undefined", () => null, () => {
3416
3416
  }),
3417
3417
  fe(Cl, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3418
3418
  fe(bl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
@@ -3443,7 +3443,7 @@ var rr = [
3443
3443
  (e) => new Set(e)
3444
3444
  ),
3445
3445
  fe(ft, "map", (e) => [...e.entries()], (e) => new Map(e)),
3446
- fe((e) => ss(e) || Nl(e), "number", (e) => ss(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3446
+ fe((e) => rs(e) || Nl(e), "number", (e) => rs(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3447
3447
  fe((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
3448
3448
  fe(Ol, "URL", (e) => e.toString(), (e) => new URL(e))
3449
3449
  ];
@@ -3455,7 +3455,7 @@ function en(e, t, n, s) {
3455
3455
  untransform: s
3456
3456
  };
3457
3457
  }
3458
- var ar = en((e, t) => nr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3458
+ var ir = en((e, t) => sr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3459
3459
  const s = n.symbolRegistry.getValue(t[1]);
3460
3460
  if (!s)
3461
3461
  throw new Error("Trying to deserialize unknown symbol");
@@ -3470,16 +3470,16 @@ var ar = en((e, t) => nr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
3470
3470
  Float32Array,
3471
3471
  Float64Array,
3472
3472
  Uint8ClampedArray
3473
- ].reduce((e, t) => (e[t.name] = t, e), {}), ir = en(kl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3473
+ ].reduce((e, t) => (e[t.name] = t, e), {}), or = en(kl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3474
3474
  const n = Dl[t[1]];
3475
3475
  if (!n)
3476
3476
  throw new Error("Trying to deserialize unknown typed array");
3477
3477
  return new n(e);
3478
3478
  });
3479
- function or(e, t) {
3479
+ function lr(e, t) {
3480
3480
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
3481
3481
  }
3482
- var lr = en(or, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3482
+ var cr = en(lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3483
3483
  const n = t.classRegistry.getAllowedProps(e.constructor);
3484
3484
  if (!n)
3485
3485
  return { ...e };
@@ -3492,44 +3492,44 @@ var lr = en(or, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
3492
3492
  if (!s)
3493
3493
  throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3494
3494
  return Object.assign(Object.create(s.prototype), e);
3495
- }), cr = en((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3495
+ }), ur = en((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3496
3496
  const s = n.customTransformerRegistry.findByName(t[1]);
3497
3497
  if (!s)
3498
3498
  throw new Error("Trying to deserialize unknown custom value");
3499
3499
  return s.deserialize(e);
3500
- }), xl = [lr, ar, cr, ir], rs = (e, t) => {
3501
- const n = ns(xl, (r) => r.isApplicable(e, t));
3500
+ }), xl = [cr, ir, ur, or], as = (e, t) => {
3501
+ const n = ss(xl, (r) => r.isApplicable(e, t));
3502
3502
  if (n)
3503
3503
  return {
3504
3504
  value: n.transform(e, t),
3505
3505
  type: n.annotation(e, t)
3506
3506
  };
3507
- const s = ns(rr, (r) => r.isApplicable(e, t));
3507
+ const s = ss(ar, (r) => r.isApplicable(e, t));
3508
3508
  if (s)
3509
3509
  return {
3510
3510
  value: s.transform(e, t),
3511
3511
  type: s.annotation
3512
3512
  };
3513
- }, ur = {};
3514
- rr.forEach((e) => {
3515
- ur[e.annotation] = e;
3513
+ }, dr = {};
3514
+ ar.forEach((e) => {
3515
+ dr[e.annotation] = e;
3516
3516
  });
3517
3517
  var Gl = (e, t, n) => {
3518
3518
  if (we(t))
3519
3519
  switch (t[0]) {
3520
3520
  case "symbol":
3521
- return ar.untransform(e, t, n);
3521
+ return ir.untransform(e, t, n);
3522
3522
  case "class":
3523
- return lr.untransform(e, t, n);
3524
- case "custom":
3525
3523
  return cr.untransform(e, t, n);
3524
+ case "custom":
3525
+ return ur.untransform(e, t, n);
3526
3526
  case "typed-array":
3527
- return ir.untransform(e, t, n);
3527
+ return or.untransform(e, t, n);
3528
3528
  default:
3529
3529
  throw new Error("Unknown transformation: " + t);
3530
3530
  }
3531
3531
  else {
3532
- const s = ur[t];
3532
+ const s = dr[t];
3533
3533
  if (!s)
3534
3534
  throw new Error("Unknown transformation: " + t);
3535
3535
  return s.untransform(e, n);
@@ -3542,7 +3542,7 @@ var Gl = (e, t, n) => {
3542
3542
  n.next(), t--;
3543
3543
  return n.next().value;
3544
3544
  };
3545
- function dr(e) {
3545
+ function fr(e) {
3546
3546
  if (Ut(e, "__proto__"))
3547
3547
  throw new Error("__proto__ is not allowed as a property");
3548
3548
  if (Ut(e, "prototype"))
@@ -3551,7 +3551,7 @@ function dr(e) {
3551
3551
  throw new Error("constructor is not allowed as a property");
3552
3552
  }
3553
3553
  var Rl = (e, t) => {
3554
- dr(t);
3554
+ fr(t);
3555
3555
  for (let n = 0; n < t.length; n++) {
3556
3556
  const s = t[n];
3557
3557
  if (ht(e))
@@ -3571,7 +3571,7 @@ var Rl = (e, t) => {
3571
3571
  }
3572
3572
  return e;
3573
3573
  }, Sn = (e, t, n) => {
3574
- if (dr(t), t.length === 0)
3574
+ if (fr(t), t.length === 0)
3575
3575
  return n(e);
3576
3576
  let s = e;
3577
3577
  for (let a = 0; a < t.length - 1; a++) {
@@ -3652,7 +3652,7 @@ function Ml(e, t) {
3652
3652
  nt(t, n);
3653
3653
  return e;
3654
3654
  }
3655
- var Bl = (e, t) => dt(e) || we(e) || ft(e) || ht(e) || or(e, t);
3655
+ var Bl = (e, t) => dt(e) || we(e) || ft(e) || ht(e) || lr(e, t);
3656
3656
  function Fl(e, t, n) {
3657
3657
  const s = n.get(e);
3658
3658
  s ? s.push(t) : n.set(e, [t]);
@@ -3668,7 +3668,7 @@ function ql(e, t) {
3668
3668
  a.length === 0 ? s = i.map(dn) : n[dn(a)] = i.map(dn);
3669
3669
  }), s ? Tn(n) ? [s] : [s, n] : Tn(n) ? void 0 : n;
3670
3670
  }
3671
- var fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3671
+ var hr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3672
3672
  const o = Ll(e);
3673
3673
  if (!o) {
3674
3674
  Fl(e, r, t);
@@ -3679,7 +3679,7 @@ var fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3679
3679
  } : g;
3680
3680
  }
3681
3681
  if (!Bl(e, n)) {
3682
- const g = rs(e, n), p = g ? {
3682
+ const g = as(e, n), p = g ? {
3683
3683
  transformedValue: g.value,
3684
3684
  annotations: [g.type]
3685
3685
  } : {
@@ -3691,13 +3691,13 @@ var fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3691
3691
  return {
3692
3692
  transformedValue: null
3693
3693
  };
3694
- const c = rs(e, n), u = (c == null ? void 0 : c.value) ?? e, d = we(u) ? [] : {}, f = {};
3694
+ const c = as(e, n), u = (c == null ? void 0 : c.value) ?? e, d = we(u) ? [] : {}, f = {};
3695
3695
  nt(u, (g, p) => {
3696
3696
  if (p === "__proto__" || p === "constructor" || p === "prototype")
3697
3697
  throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
3698
- const S = fr(g, t, n, s, [...r, p], [...a, e], i);
3698
+ const S = hr(g, t, n, s, [...r, p], [...a, e], i);
3699
3699
  d[p] = S.transformedValue, we(S.annotations) ? f[p] = S.annotations : dt(S.annotations) && nt(S.annotations, (P, T) => {
3700
- f[sr(p) + "." + T] = P;
3700
+ f[rr(p) + "." + T] = P;
3701
3701
  });
3702
3702
  });
3703
3703
  const h = Tn(f) ? {
@@ -3709,14 +3709,14 @@ var fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3709
3709
  };
3710
3710
  return o || i.set(e, h), h;
3711
3711
  };
3712
- function hr(e) {
3712
+ function gr(e) {
3713
3713
  return Object.prototype.toString.call(e).slice(8, -1);
3714
3714
  }
3715
- function as(e) {
3716
- return hr(e) === "Array";
3715
+ function is(e) {
3716
+ return gr(e) === "Array";
3717
3717
  }
3718
3718
  function Kl(e) {
3719
- if (hr(e) !== "Object")
3719
+ if (gr(e) !== "Object")
3720
3720
  return !1;
3721
3721
  const t = Object.getPrototypeOf(e);
3722
3722
  return !!t && t.constructor === Object && t === Object.prototype;
@@ -3731,13 +3731,13 @@ function Vl(e, t, n, s, r) {
3731
3731
  });
3732
3732
  }
3733
3733
  function Pn(e, t = {}) {
3734
- if (as(e))
3734
+ if (is(e))
3735
3735
  return e.map((r) => Pn(r, t));
3736
3736
  if (!Kl(e))
3737
3737
  return e;
3738
3738
  const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
3739
3739
  return [...n, ...s].reduce((r, a) => {
3740
- if (as(t.props) && !t.props.includes(a))
3740
+ if (is(t.props) && !t.props.includes(a))
3741
3741
  return r;
3742
3742
  const i = e[a], o = Pn(i, t);
3743
3743
  return Vl(r, a, o, e, t.nonenumerable), r;
@@ -3748,10 +3748,10 @@ var G = class {
3748
3748
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3749
3749
  */
3750
3750
  constructor({ dedupe: e = !1 } = {}) {
3751
- this.classRegistry = new El(), this.symbolRegistry = new er((t) => t.description ?? ""), this.customTransformerRegistry = new Al(), this.allowedErrorProps = [], this.dedupe = e;
3751
+ this.classRegistry = new El(), this.symbolRegistry = new tr((t) => t.description ?? ""), this.customTransformerRegistry = new Al(), this.allowedErrorProps = [], this.dedupe = e;
3752
3752
  }
3753
3753
  serialize(e) {
3754
- const t = /* @__PURE__ */ new Map(), n = fr(e, t, this, this.dedupe), s = {
3754
+ const t = /* @__PURE__ */ new Map(), n = hr(e, t, this, this.dedupe), s = {
3755
3755
  json: n.transformedValue
3756
3756
  };
3757
3757
  n.annotations && (s.meta = {
@@ -3828,13 +3828,13 @@ var yu = (e, t = !1) => {
3828
3828
  json: n
3829
3829
  } = Hl(e);
3830
3830
  return JSON.stringify(n, null, t ? 2 : void 0);
3831
- }, Ot = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Ql = (e, t) => e.queryHash.localeCompare(t.queryHash), gr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, $l = (e, t) => Ot(e) === Ot(t) ? gr(e, t) : Ot(e) > Ot(t) ? 1 : -1, Au = {
3831
+ }, Ot = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Ql = (e, t) => e.queryHash.localeCompare(t.queryHash), mr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, $l = (e, t) => Ot(e) === Ot(t) ? mr(e, t) : Ot(e) > Ot(t) ? 1 : -1, Au = {
3832
3832
  status: $l,
3833
3833
  "query hash": Ql,
3834
- "last updated": gr
3835
- }, Dt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, mr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, zl = (e, t) => Dt(e) === Dt(t) ? mr(e, t) : Dt(e) > Dt(t) ? 1 : -1, Tu = {
3836
- status: zl,
3837
3834
  "last updated": mr
3835
+ }, Dt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Er = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, zl = (e, t) => Dt(e) === Dt(t) ? Er(e, t) : Dt(e) > Dt(t) ? 1 : -1, Tu = {
3836
+ status: zl,
3837
+ "last updated": Er
3838
3838
  }, Su = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), _u = () => {
3839
3839
  const [e, t] = q("dark");
3840
3840
  return ko(() => {
@@ -3905,11 +3905,11 @@ var yu = (e, t = !1) => {
3905
3905
  return n[s] = Gt(n[s], r), n;
3906
3906
  }
3907
3907
  return e;
3908
- }, Er = (e, t) => {
3908
+ }, pr = (e, t) => {
3909
3909
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
3910
3910
  const s = document.createElement("style"), r = document.createTextNode("");
3911
3911
  s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
3912
- }, qe, gt, mt, Et, Ne, pt, Ke, Ve, He, Qe, $e, yt, ze, At, cs, jl = (cs = class {
3912
+ }, qe, gt, mt, Et, Ne, pt, Ke, Ve, He, Qe, $e, yt, ze, At, us, jl = (us = class {
3913
3913
  constructor(e) {
3914
3914
  D(this, qe);
3915
3915
  D(this, gt);
@@ -3958,10 +3958,10 @@ var yu = (e, t = !1) => {
3958
3958
  mount(e) {
3959
3959
  if (_(this, Ne))
3960
3960
  throw new Error("Devtools is already mounted");
3961
- const t = Js(() => {
3961
+ const t = Zs(() => {
3962
3962
  const n = this, [s] = _(this, Ve), [r] = _(this, He), [a] = _(this, Qe), [i] = _(this, $e), [o] = _(this, yt), [c] = _(this, qe);
3963
3963
  let u;
3964
- return _(this, ze) ? u = _(this, ze) : (u = Ws(() => import("./NCMVHL6D-kHUQxG8D.js")), O(this, ze, u)), Er(_(this, pt), _(this, Ke)), zs(u, js({
3964
+ return _(this, ze) ? u = _(this, ze) : (u = Ys(() => import("./NCMVHL6D-C0JGE8Qr.js")), O(this, ze, u)), pr(_(this, pt), _(this, Ke)), js(u, Ws({
3965
3965
  get queryFlavor() {
3966
3966
  return _(n, mt);
3967
3967
  },
@@ -4003,7 +4003,7 @@ var yu = (e, t = !1) => {
4003
4003
  throw new Error("Devtools is not mounted");
4004
4004
  (e = _(this, At)) == null || e.call(this), O(this, Ne, !1);
4005
4005
  }
4006
- }, qe = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Et = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), Ke = new WeakMap(), Ve = new WeakMap(), He = new WeakMap(), Qe = new WeakMap(), $e = new WeakMap(), yt = new WeakMap(), ze = new WeakMap(), At = new WeakMap(), cs), je, Tt, St, _t, ke, Pt, We, Ye, Je, Ze, Xe, vt, et, tt, wt, us, Wl = (us = class {
4006
+ }, qe = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Et = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), Ke = new WeakMap(), Ve = new WeakMap(), He = new WeakMap(), Qe = new WeakMap(), $e = new WeakMap(), yt = new WeakMap(), ze = new WeakMap(), At = new WeakMap(), us), je, Tt, St, _t, ke, Pt, We, Ye, Je, Ze, Xe, vt, et, tt, wt, ds, Wl = (ds = class {
4007
4007
  constructor(e) {
4008
4008
  D(this, je);
4009
4009
  D(this, Tt);
@@ -4057,10 +4057,10 @@ var yu = (e, t = !1) => {
4057
4057
  mount(e) {
4058
4058
  if (_(this, ke))
4059
4059
  throw new Error("Devtools is already mounted");
4060
- const t = Js(() => {
4060
+ const t = Zs(() => {
4061
4061
  const n = this, [s] = _(this, Ye), [r] = _(this, Je), [a] = _(this, Ze), [i] = _(this, Xe), [o] = _(this, vt), [c] = _(this, je), [u] = _(this, et);
4062
4062
  let d;
4063
- return _(this, tt) ? d = _(this, tt) : (d = Ws(() => import("./2AITGKQY-DI5Po2Nc.js")), O(this, tt, d)), Er(_(this, Pt), _(this, We)), zs(d, js({
4063
+ return _(this, tt) ? d = _(this, tt) : (d = Ys(() => import("./2AITGKQY-BXiVm60u.js")), O(this, tt, d)), pr(_(this, Pt), _(this, We)), js(d, Ws({
4064
4064
  get queryFlavor() {
4065
4065
  return _(n, St);
4066
4066
  },
@@ -4105,7 +4105,7 @@ var yu = (e, t = !1) => {
4105
4105
  throw new Error("Devtools is not mounted");
4106
4106
  (e = _(this, wt)) == null || e.call(this), O(this, ke, !1);
4107
4107
  }
4108
- }, je = new WeakMap(), Tt = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), ke = new WeakMap(), Pt = new WeakMap(), We = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), vt = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), us);
4108
+ }, je = new WeakMap(), Tt = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), ke = new WeakMap(), Pt = new WeakMap(), We = new WeakMap(), Ye = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), Xe = new WeakMap(), vt = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), ds);
4109
4109
  function Yl(e) {
4110
4110
  const t = W(e.client), n = j.useRef(null), {
4111
4111
  buttonPosition: s,
@@ -4120,7 +4120,7 @@ function Yl(e) {
4120
4120
  client: t,
4121
4121
  queryFlavor: "React Query",
4122
4122
  version: "5",
4123
- onlineManager: gs,
4123
+ onlineManager: ms,
4124
4124
  buttonPosition: s,
4125
4125
  position: r,
4126
4126
  initialIsOpen: a,
@@ -4150,7 +4150,7 @@ function Jl(e) {
4150
4150
  client: t,
4151
4151
  queryFlavor: "React Query",
4152
4152
  version: "5",
4153
- onlineManager: gs,
4153
+ onlineManager: ms,
4154
4154
  buttonPosition: "bottom-left",
4155
4155
  position: "bottom",
4156
4156
  initialIsOpen: !0,
@@ -4179,7 +4179,7 @@ function Jl(e) {
4179
4179
  }
4180
4180
  );
4181
4181
  }
4182
- var is = process.env.NODE_ENV !== "development" ? function() {
4182
+ var os = process.env.NODE_ENV !== "development" ? function() {
4183
4183
  return null;
4184
4184
  } : Yl;
4185
4185
  process.env.NODE_ENV;
@@ -4239,7 +4239,7 @@ const Zl = Ee(""), Xl = () => {
4239
4239
  },
4240
4240
  [e]
4241
4241
  );
4242
- }, rc = F(() => import("./digital-asset-manager-INrgGoC0.js")), ac = F(() => import("./save-to-lib-NvQZll63.js")), ic = F(() => import("./theme-panel-footer-BJB36k8A.js")), oc = F(() => import("./web-preview-CCGkTRU3.js"));
4242
+ }, rc = F(() => import("./digital-asset-manager-DgLKRrYj.js")), ac = F(() => import("./save-to-lib-BE0-MXVv.js")), ic = F(() => import("./theme-panel-footer-BjRPU7lq.js")), oc = F(() => import("./web-preview-SIUM1SWa.js"));
4243
4243
  Xl();
4244
4244
  Za();
4245
4245
  Jr(to);
@@ -4249,28 +4249,28 @@ Xr(ac);
4249
4249
  const lc = {
4250
4250
  role: "",
4251
4251
  permissions: null
4252
- }, os = (e) => {
4252
+ }, ls = (e) => {
4253
4253
  const { data: t } = lo();
4254
4254
  gi();
4255
- const n = Dn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Le(), { data: o, isFetching: c } = ec(), { data: u, isFetching: d } = Re(), f = r || i || c || d, [h] = le(), g = h.get("page"), { data: p } = ie(), { data: S, isFetching: P } = ao(), { blocks: T } = ro(S), { lockingStatus: y, pageLock: A } = Ie(), { data: b, isFetching: B } = io(), k = no(), { onSave: pe } = uo(), { mutateAsync: ye } = tc(), { getPartialBlocks: M, getPartialBlockBlocks: w } = fo(), { mutateAsync: I } = Ni(), { mutateAsync: Y } = oo(), $ = sc(), [de, bt] = K(!1), Ae = at([]), Me = Q(() => V(u, "theme", {}) || {}, [u]), Ce = he(y) && (A == null ? void 0 : A.status) === "editing", pr = (A == null ? void 0 : A.status) === "checking", Rn = P || pr || B;
4255
+ const n = Dn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Le(), { data: o, isFetching: c } = ec(), { data: u, isFetching: d } = Re(), f = r || i || c || d, [h] = le(), g = h.get("page"), { data: p } = ie(), { data: S, isFetching: P } = ao(), { blocks: T } = ro(S), { lockingStatus: y, pageLock: A } = Ie(), { data: b, isFetching: B } = io(), k = no(), { onSave: pe } = uo(), { mutateAsync: ye } = tc(), { getPartialBlocks: M, getPartialBlockBlocks: w } = fo(), { mutateAsync: I } = Ni(), { mutateAsync: Y } = oo(), $ = sc(), [de, bt] = K(!1), Ae = at([]), Me = Q(() => V(u, "theme", {}) || {}, [u]), Ce = he(y) && (A == null ? void 0 : A.status) === "editing", yr = (A == null ? void 0 : A.status) === "checking", Rn = P || yr || B;
4256
4256
  Ae.current = T;
4257
- const [yr] = te(Zl);
4257
+ const [Ar] = te(Zl);
4258
4258
  se(() => {
4259
4259
  const ne = () => {
4260
4260
  document.hidden ? bt(!0) : bt(!1);
4261
4261
  };
4262
4262
  return window.addEventListener("visibilitychange", ne), () => window.removeEventListener("visibilitychange", ne);
4263
4263
  }, []);
4264
- const Ar = Q(() => {
4264
+ const Tr = Q(() => {
4265
4265
  const ne = {};
4266
4266
  return s && (ne.permissions = V(s, "permissions", null), ne.role = V(s, "role", "user")), ne;
4267
- }, [s]), Tr = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), Sr = z(
4267
+ }, [s]), Un = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), Sr = z(
4268
4268
  async (ne, It) => await I({ pageType: ne, query: It }),
4269
4269
  [I]
4270
4270
  );
4271
4271
  return /* @__PURE__ */ m(ge, { children: [
4272
- Rn && /* @__PURE__ */ l(Cs, { className: f ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ l(Ft, { className: `animate-spin text-primary ${f ? "h-6 w-6" : "h-5 w-5"}` }) }),
4273
- yr && /* @__PURE__ */ l(
4272
+ Rn && /* @__PURE__ */ l(Ns, { className: f ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ l(Ft, { className: `animate-spin text-primary ${f ? "h-6 w-6" : "h-5 w-5"}` }) }),
4273
+ Ar && /* @__PURE__ */ l(
4274
4274
  H,
4275
4275
  {
4276
4276
  fallback: /* @__PURE__ */ l("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ l(Ft, { className: "h-6 w-6 animate-spin text-primary" }) }),
@@ -4280,7 +4280,7 @@ const lc = {
4280
4280
  /* @__PURE__ */ l(
4281
4281
  ea,
4282
4282
  {
4283
- _tempProps: { librarySite: Tr },
4283
+ flags: e.flags ? { ...e.flags, librarySite: Un } : { librarySite: Un },
4284
4284
  gotoPage: $,
4285
4285
  collections: o ?? [],
4286
4286
  getBlockAsyncProps: ye,
@@ -4307,11 +4307,11 @@ const lc = {
4307
4307
  onSave: async ({ blocks: ne, theme: It, needTranslations: _r }) => {
4308
4308
  if (!g) return !0;
4309
4309
  Ae.current = ne;
4310
- const Un = [...ne];
4311
- return await pe({ page: g, blocks: Un, needTranslations: _r }), Ae.current = Un, Br(It, Me) || await Y({ settings: { theme: It } }), !0;
4310
+ const Mn = [...ne];
4311
+ return await pe({ page: g, blocks: Mn, needTranslations: _r }), Ae.current = Mn, Br(It, Me) || await Y({ settings: { theme: It } }), !0;
4312
4312
  },
4313
4313
  themePanelComponent: ic,
4314
- ...Ar
4314
+ ...Tr
4315
4315
  }
4316
4316
  ),
4317
4317
  /* @__PURE__ */ m("div", { children: [
@@ -4349,11 +4349,11 @@ const lc = {
4349
4349
  }, 200), () => {
4350
4350
  s(!1), t({});
4351
4351
  }), [e, t]), n ? V(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(ge, { children: [
4352
- /* @__PURE__ */ l(os, { ...e }),
4353
- /* @__PURE__ */ l(is, {})
4352
+ /* @__PURE__ */ l(ls, { ...e }),
4353
+ /* @__PURE__ */ l(os, {})
4354
4354
  ] }) : /* @__PURE__ */ m(Hr, { client: cc, children: [
4355
- /* @__PURE__ */ l(os, { ...e }),
4356
- /* @__PURE__ */ l(is, {})
4355
+ /* @__PURE__ */ l(ls, { ...e }),
4356
+ /* @__PURE__ */ l(os, {})
4357
4357
  ] }) : /* @__PURE__ */ l("div", {});
4358
4358
  }, uc = j.lazy(() => import("./nested-path-selector-content-DvIL_EoN.js"));
4359
4359
  function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
@@ -4430,7 +4430,7 @@ const vu = () => {
4430
4430
  console.error("Failed to update metadata");
4431
4431
  }
4432
4432
  });
4433
- }, fc = F(() => import("./digital-asset-manager-INrgGoC0.js")), Iu = ({
4433
+ }, fc = F(() => import("./digital-asset-manager-DgLKRrYj.js")), Iu = ({
4434
4434
  assetId: e,
4435
4435
  assetUrl: t,
4436
4436
  onChange: n,
@@ -4469,7 +4469,7 @@ const vu = () => {
4469
4469
  className: "h-8 w-8 rounded-full bg-white text-red-500",
4470
4470
  onClick: h,
4471
4471
  disabled: a,
4472
- children: g ? /* @__PURE__ */ l(jn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Ha, { className: "h-4 w-4" })
4472
+ children: g ? /* @__PURE__ */ l(Wn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Ha, { className: "h-4 w-4" })
4473
4473
  }
4474
4474
  ),
4475
4475
  !g && /* @__PURE__ */ l(
@@ -4481,7 +4481,7 @@ const vu = () => {
4481
4481
  className: "h-8 w-8 rounded-full bg-white/80 hover:bg-white/90",
4482
4482
  onClick: u,
4483
4483
  disabled: a,
4484
- children: /* @__PURE__ */ l(Wn, { className: "h-4 w-4" })
4484
+ children: /* @__PURE__ */ l(Yn, { className: "h-4 w-4" })
4485
4485
  }
4486
4486
  )
4487
4487
  ] })
@@ -4491,12 +4491,12 @@ const vu = () => {
4491
4491
  className: `flex cursor-pointer items-center justify-center rounded-md border border-dashed p-6 ${a ? "cursor-not-allowed opacity-50" : "hover:border-gray-400"}`,
4492
4492
  onClick: u,
4493
4493
  children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-2", children: [
4494
- /* @__PURE__ */ l(Wn, { className: "h-10 w-10 text-gray-400" }),
4494
+ /* @__PURE__ */ l(Yn, { className: "h-10 w-10 text-gray-400" }),
4495
4495
  /* @__PURE__ */ l("p", { className: "text-sm text-gray-500", children: r })
4496
4496
  ] })
4497
4497
  }
4498
4498
  ),
4499
- /* @__PURE__ */ l(As, { open: o, onOpenChange: c, children: /* @__PURE__ */ m(Ta, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4499
+ /* @__PURE__ */ l(Ts, { open: o, onOpenChange: c, children: /* @__PURE__ */ m(Ta, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4500
4500
  /* @__PURE__ */ m(Sa, { className: "hidden border-b px-4 py-2", children: [
4501
4501
  /* @__PURE__ */ l(_a, { children: i("Select Image") }),
4502
4502
  /* @__PURE__ */ l(
@@ -4507,7 +4507,7 @@ const vu = () => {
4507
4507
  size: "icon",
4508
4508
  className: "absolute right-4 top-2",
4509
4509
  onClick: d,
4510
- children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" })
4510
+ children: /* @__PURE__ */ l(Wn, { className: "h-4 w-4" })
4511
4511
  }
4512
4512
  )
4513
4513
  ] }),
@@ -4587,13 +4587,13 @@ class gc extends Kr {
4587
4587
  if (typeof n == "function")
4588
4588
  o = n(c);
4589
4589
  else if (s)
4590
- o = qn(s, c);
4590
+ o = Kn(s, c);
4591
4591
  else if (r !== void 0)
4592
4592
  o = r;
4593
4593
  else
4594
4594
  throw i;
4595
4595
  }
4596
- return qn(hc.Provider, {
4596
+ return Kn(hc.Provider, {
4597
4597
  value: {
4598
4598
  didCatch: a,
4599
4599
  error: i,
@@ -4606,7 +4606,7 @@ function mc() {
4606
4606
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
4607
4607
  return e.length !== t.length || e.some((n, s) => !Object.is(n, t[s]));
4608
4608
  }
4609
- const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4609
+ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), cs = (e) => {
4610
4610
  if (!e.trim())
4611
4611
  return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
4612
4612
  try {
@@ -4657,7 +4657,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4657
4657
  n = n.replace(r[0], i);
4658
4658
  }
4659
4659
  return n;
4660
- }, Ac = F(() => import("./shared-json-ld-BVqIgANo.js")), Lu = ({
4660
+ }, Ac = F(() => import("./shared-json-ld-UCI8GeFi.js")), Lu = ({
4661
4661
  value: e,
4662
4662
  onChange: t,
4663
4663
  disabled: n = !1,
@@ -4707,7 +4707,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4707
4707
  }
4708
4708
  };
4709
4709
  se(() => {
4710
- const M = ls(e);
4710
+ const M = cs(e);
4711
4711
  if (M.isValid)
4712
4712
  if (p(null), M.parsed) {
4713
4713
  const w = yc(M.parsed, o);
@@ -4718,7 +4718,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4718
4718
  p(M.error), P("");
4719
4719
  }, [e, o]);
4720
4720
  const pe = () => {
4721
- const M = ls(e);
4721
+ const M = cs(e);
4722
4722
  if (M.isValid && M.parsed) {
4723
4723
  const w = pc(M.parsed, M.placeholders);
4724
4724
  t(w);
@@ -4783,11 +4783,11 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4783
4783
  b ? /* @__PURE__ */ l("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
4784
4784
  /* @__PURE__ */ l("div", { className: "max-w-xl text-center text-xs text-gray-500", children: "JSON-LD for is not added for selected language. JSON LD will be used from default language." }),
4785
4785
  /* @__PURE__ */ m(U, { type: "button", variant: "default", size: "sm", onClick: d, children: [
4786
- /* @__PURE__ */ l(Ts, {}),
4786
+ /* @__PURE__ */ l(Ss, {}),
4787
4787
  "Copy & Edit from default language"
4788
4788
  ] })
4789
4789
  ] }) }) : /* @__PURE__ */ l(
4790
- Kn,
4790
+ Vn,
4791
4791
  {
4792
4792
  ref: T,
4793
4793
  id: i,
@@ -4828,7 +4828,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4828
4828
  ] })
4829
4829
  ] }),
4830
4830
  /* @__PURE__ */ m(sn, { value: "preview", className: "mt-0", children: [
4831
- /* @__PURE__ */ l(Kn, { rows: a, value: S, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4831
+ /* @__PURE__ */ l(Vn, { rows: a, value: S, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4832
4832
  /* @__PURE__ */ l("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
4833
4833
  ] }),
4834
4834
  A && /* @__PURE__ */ l(sn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ac, {}) }) })
@@ -4839,9 +4839,9 @@ if (typeof window > "u")
4839
4839
  export {
4840
4840
  yu as $,
4841
4841
  E as A,
4842
- Cs as B,
4843
- Fs as C,
4844
- js as D,
4842
+ Ns as B,
4843
+ qs as C,
4844
+ Ws as D,
4845
4845
  Ko as E,
4846
4846
  Xc as F,
4847
4847
  eu as G,
@@ -4882,7 +4882,7 @@ export {
4882
4882
  Qc as aD,
4883
4883
  Vi as aE,
4884
4884
  Gc as aF,
4885
- ws as aG,
4885
+ bs as aG,
4886
4886
  io as aH,
4887
4887
  Ci as aI,
4888
4888
  Ln as aJ,
@@ -4900,7 +4900,7 @@ export {
4900
4900
  co as aV,
4901
4901
  ti as aW,
4902
4902
  hu as aa,
4903
- Us as ab,
4903
+ Ms as ab,
4904
4904
  Oe as ac,
4905
4905
  rl as ad,
4906
4906
  fu as ae,
@@ -4924,8 +4924,8 @@ export {
4924
4924
  Vc as aw,
4925
4925
  $c as ax,
4926
4926
  Lu as ay,
4927
- ls as az,
4928
- bs as b,
4927
+ cs as az,
4928
+ Is as b,
4929
4929
  Rc as c,
4930
4930
  Uc as d,
4931
4931
  Re as e,
@@ -4933,7 +4933,7 @@ export {
4933
4933
  Ge as g,
4934
4934
  Le as h,
4935
4935
  le as i,
4936
- Ps as j,
4936
+ vs as j,
4937
4937
  ai as k,
4938
4938
  Bc as l,
4939
4939
  Mc as m,
@@ -4944,8 +4944,8 @@ export {
4944
4944
  _u as r,
4945
4945
  J as s,
4946
4946
  on as t,
4947
- Ls as u,
4948
- zs as v,
4947
+ Cs as u,
4948
+ js as v,
4949
4949
  Au as w,
4950
4950
  Tu as x,
4951
4951
  q as y,