@chaibuilder/pages 0.15.22 → 0.16.0

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 (84) hide show
  1. package/dist/{2AITGKQY-BQI4o1xG.js → 2AITGKQY-BFankGad.js} +2 -2
  2. package/dist/{2AITGKQY-DXm3iqhg.cjs → 2AITGKQY-BxEty5Ow.cjs} +1 -1
  3. package/dist/{NCMVHL6D-B3kd8MpE.js → NCMVHL6D-DFMKkQPN.js} +4 -4
  4. package/dist/{NCMVHL6D-C0TW9XJH.cjs → NCMVHL6D-DP-qw6yT.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DzyqbIEt.cjs → ZDWCUMSJ-Cu1VTliO.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-IN3g-SXd.js → ZDWCUMSJ-DU81uAQq.js} +1 -1
  7. package/dist/{add-new-language-page-NXyJYXG-.js → add-new-language-page-0zC1CJZK.js} +2 -2
  8. package/dist/{add-new-language-page-zZoQgh6M.cjs → add-new-language-page-DQ46xqnc.cjs} +1 -1
  9. package/dist/{add-new-page-C7Kw3sZO.js → add-new-page-CUtZhDvi.js} +1 -1
  10. package/dist/{add-new-page-Cf_zoJPL.cjs → add-new-page-Ca2H2J-2.cjs} +1 -1
  11. package/dist/ai-panel-content-CV-HTsAs.cjs +1 -0
  12. package/dist/ai-panel-content-r2jlUBoR.js +52 -0
  13. package/dist/ai-panel-default-lang-D6RAQW1X.js +173 -0
  14. package/dist/ai-panel-default-lang-EH3w6g25.cjs +1 -0
  15. package/dist/ai-panel-message-bubble-Bl-aUeU4.cjs +1 -0
  16. package/dist/ai-panel-message-bubble-DPAaAMAZ.js +38 -0
  17. package/dist/ai-panel-other-lang-BeTdv7yM.js +133 -0
  18. package/dist/ai-panel-other-lang-_gGQTjZQ.cjs +1 -0
  19. package/dist/ai-panel-quick-prompts-CpzN48cl.js +46 -0
  20. package/dist/ai-panel-quick-prompts-DiNVPPAn.cjs +1 -0
  21. package/dist/ai-prompt-input-D-F23bdc.cjs +1 -0
  22. package/dist/ai-prompt-input-vAcIZSB1.js +133 -0
  23. package/dist/ai-translation-prompt-AImJlmDg.cjs +1 -0
  24. package/dist/ai-translation-prompt-BKyp1IW2.js +63 -0
  25. package/dist/{delete-page-CyqJ6iqb.js → delete-page-BS10zPLU.js} +1 -1
  26. package/dist/{delete-page-qrzBuLu5.cjs → delete-page-ClgtvB6n.cjs} +1 -1
  27. package/dist/{digital-asset-manager-BxM02CBp.js → digital-asset-manager-D_FFLECK.js} +1 -1
  28. package/dist/{digital-asset-manager-BfDE0iUu.cjs → digital-asset-manager-MK8ZL6Nd.cjs} +1 -1
  29. package/dist/{duplicate-page-CGKrJ-pm.cjs → duplicate-page-BaZrekqu.cjs} +1 -1
  30. package/dist/{duplicate-page-BGXDNCfU.js → duplicate-page-C1r4cCIJ.js} +9 -9
  31. package/dist/{dynamic-page-selector-C1ENQo3c.cjs → dynamic-page-selector-C4R_vhhz.cjs} +1 -1
  32. package/dist/{dynamic-page-selector-D0H0U30o.js → dynamic-page-selector-CjtnFkxO.js} +1 -1
  33. package/dist/index-C64wG61b.cjs +5 -0
  34. package/dist/{index-D2g32O6h.js → index-D_qadcqD.js} +869 -862
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.d.ts +5 -3
  37. package/dist/index.js +7 -7
  38. package/dist/{json-diff-viewer-XF3MMhkA.js → json-diff-viewer-BURQmaIL.js} +1 -1
  39. package/dist/{json-diff-viewer-D03TdwEh.cjs → json-diff-viewer-CyZVbnpL.cjs} +1 -1
  40. package/dist/{lang-panel-8pMYi4Fn.js → lang-panel-C8yx7PSU.js} +33 -33
  41. package/dist/{lang-panel-BQiWaq2_.cjs → lang-panel-SUARS5YU.cjs} +1 -1
  42. package/dist/{mark-as-template-BGe_QmNY.js → mark-as-template-CUHypMlj.js} +1 -1
  43. package/dist/{mark-as-template-DwgrP1Vj.cjs → mark-as-template-DS-nfI06.cjs} +1 -1
  44. package/dist/{no-language-page-content-BiiD91y6.cjs → no-language-page-content-DZj3cmtM.cjs} +1 -1
  45. package/dist/{no-language-page-content-Cr6wq4o8.js → no-language-page-content-qoHrlxwD.js} +1 -1
  46. package/dist/{page-creator-PSrGtRIm.js → page-creator-C8VQGfap.js} +2 -2
  47. package/dist/{page-creator-Di9A1gxS.cjs → page-creator-HwE9ST54.cjs} +1 -1
  48. package/dist/{page-lock-request-DQT5Ur0g.js → page-lock-request-CBVKtxVj.js} +10 -10
  49. package/dist/{page-lock-request-Reyb6vZo.cjs → page-lock-request-Db7-x_EI.cjs} +1 -1
  50. package/dist/{page-locked-by-dialog-DF1_jPao.cjs → page-locked-by-dialog-CvRDaBcN.cjs} +1 -1
  51. package/dist/{page-locked-by-dialog-DgIr4-Gd.js → page-locked-by-dialog-DEC58QPA.js} +1 -1
  52. package/dist/{page-manager-new-BuLz6042.js → page-manager-new-B1PDwz2w.js} +67 -67
  53. package/dist/{page-manager-new-COui-em5.cjs → page-manager-new-CBxSkcYY.cjs} +1 -1
  54. package/dist/{page-manager-search-and-filter-DxqVJw_A.js → page-manager-search-and-filter-0eTSE1C1.js} +1 -1
  55. package/dist/{page-manager-search-and-filter-6_CVqZc_.cjs → page-manager-search-and-filter-BRLPHE64.cjs} +1 -1
  56. package/dist/{page-revisions-content-DagDCr7w.js → page-revisions-content-CKcp4He4.js} +10 -10
  57. package/dist/{page-revisions-content-BlM1X20k.cjs → page-revisions-content-CTrVTQ_s.cjs} +1 -1
  58. package/dist/prompt-helper-BtijECyh.cjs +51 -0
  59. package/dist/prompt-helper-CfyAlam9.js +175 -0
  60. package/dist/{publish-pages-content-6L8onxVt.cjs → publish-pages-content-B6HGaUtO.cjs} +1 -1
  61. package/dist/{publish-pages-content-eAcMLyLi.js → publish-pages-content-BMaeNHV2.js} +2 -2
  62. package/dist/{save-to-lib-BUen2a0-.cjs → save-to-lib-BKKTPv4h.cjs} +1 -1
  63. package/dist/{save-to-lib-C43iGfOH.js → save-to-lib-CccnzwO8.js} +1 -1
  64. package/dist/{seo-panel-DdE8DfMt.js → seo-panel-4KK4r-BP.js} +1 -1
  65. package/dist/{seo-panel-BseSTxFf.cjs → seo-panel-DL_rcWwC.cjs} +1 -1
  66. package/dist/server.cjs +238 -1
  67. package/dist/server.d.ts +50 -6
  68. package/dist/server.js +10324 -290
  69. package/dist/{shared-json-ld-D-S-SwbU.cjs → shared-json-ld-BuYzbmKx.cjs} +1 -1
  70. package/dist/{shared-json-ld-OwSauSop.js → shared-json-ld-DGW40Ccy.js} +41 -41
  71. package/dist/{slug-input-DYne39yC.cjs → slug-input--8SgDwYu.cjs} +1 -1
  72. package/dist/{slug-input-Bh4d19p2.js → slug-input-DH5w0H22.js} +1 -1
  73. package/dist/{theme-panel-footer-BnxQBiM2.js → theme-panel-footer-CHR7J97n.js} +1 -1
  74. package/dist/{theme-panel-footer-DLSf7QAN.cjs → theme-panel-footer-Co5VI_i9.cjs} +1 -1
  75. package/dist/{unmark-as-template-BTY-g4LE.cjs → unmark-as-template-B3h10oHA.cjs} +1 -1
  76. package/dist/{unmark-as-template-B9xuxdYK.js → unmark-as-template-DlA879QF.js} +1 -1
  77. package/dist/{unpublish-page-D0FunHFp.cjs → unpublish-page-Bfo_DuW5.cjs} +1 -1
  78. package/dist/{unpublish-page-CYmJyQH9.js → unpublish-page-JzGl35pF.js} +1 -1
  79. package/dist/{web-preview-y7dB2S91.js → web-preview-CJ6JyhJD.js} +1 -1
  80. package/dist/{web-preview-DDnJlhVc.cjs → web-preview-oG2epixb.cjs} +1 -1
  81. package/package.json +12 -12
  82. package/dist/ai-panel-content-BXnMSm-N.js +0 -614
  83. package/dist/ai-panel-content-xcOgRnxG.cjs +0 -142
  84. package/dist/index-CZxeSGRk.cjs +0 -5
@@ -1,20 +1,20 @@
1
- var vr = Object.defineProperty;
2
- var Bn = (e) => {
1
+ var Pr = Object.defineProperty;
2
+ var Mn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var wr = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var Pe = (e, t, n) => wr(e, typeof t != "symbol" ? t + "" : t, n), Mn = (e, t, n) => t.has(e) || Bn("Cannot " + n);
7
- var S = (e, t, n) => (Mn(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), k = (e, t, n, s) => (Mn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
8
- import { jsx as c, jsxs as m, Fragment as ge } from "react/jsx-runtime";
9
- import { get as V, reverse as br, sortBy as Ir, each as Cr, find as re, isEmpty as he, groupBy as Nr, minBy as Lr, noop as ds, keyBy as kr, map as Bt, compact as fs, upperCase as Fn, filter as hs, includes as Or, has as jt, pick as vn, keys as Dr, pickBy as Gr, endsWith as xr, isArray as Rr, startCase as Ur, isFunction as Br, cloneDeep as Mr, isEqual as Fr } from "lodash-es";
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 Pe = (e, t, n) => vr(e, typeof t != "symbol" ? t + "" : t, n), Fn = (e, t, n) => t.has(e) || Mn("Cannot " + n);
7
+ var S = (e, t, n) => (Fn(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), k = (e, t, n, s) => (Fn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
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 Cr, minBy as Nr, noop as ds, keyBy as Lr, map as Bt, compact as fs, upperCase as qn, filter as hs, includes as kr, has as jt, pick as wn, keys as Or, pickBy as Dr, endsWith as Gr, isArray as xr, startCase as Rr, isFunction as Ur, cloneDeep as Br, isEqual as Mr } from "lodash-es";
10
10
  import * as z from "react";
11
- import qr, { useMemo as Q, useCallback as j, useState as K, useEffect as se, useRef as at, lazy as F, Suspense as H, createContext as Kr, Component as Vr, createElement as qn } from "react";
11
+ import Fr, { useMemo as Q, useCallback as j, 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 X, onlineManager as gs, QueryClient as Hr, QueryClientProvider as Qr } from "@tanstack/react-query";
14
- import { useLanguages as Se, useSavePage as Ge, useTranslation as we, mergeClasses as Mt, usePermissions as ms, PERMISSIONS as $r, useRightPanel as jr, useChaiFeatureFlag as Es, useIsPageLoaded as zr, registerChaiLibrary as Wr, getBlocksFromHTML as Yr, registerChaiSidebarPanel as Ct, registerChaiFeatureFlag as tn, registerChaiTopBar as Jr, registerChaiMediaManager as Xr, registerChaiSaveToLibrary as Zr, ChaiBuilderEditor as ea } from "@chaibuilder/sdk";
13
+ import { useQuery as ae, useQueryClient as W, useMutation as X, onlineManager as gs, QueryClient as Vr, QueryClientProvider as Hr } from "@tanstack/react-query";
14
+ import { useLanguages as Se, useSavePage as Ge, useTranslation as we, mergeClasses as Mt, usePermissions as ms, PERMISSIONS as Qr, useRightPanel as $r, useChaiFeatureFlag as jr, useIsPageLoaded as zr, registerChaiLibrary as Wr, getBlocksFromHTML as Yr, registerChaiSidebarPanel as Ct, registerChaiFeatureFlag as tn, registerChaiTopBar as Jr, registerChaiMediaManager as Xr, registerChaiSaveToLibrary as Zr, ChaiBuilderEditor as ea } from "@chaibuilder/sdk";
15
15
  import { toast as R } from "sonner";
16
- import { Tooltip as zt, TooltipTrigger as Wt, Button as B, 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 Nt, 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 Kn, Alert as wa, AlertDescription as ba } from "@chaibuilder/sdk/ui";
17
- import { LogsIcon as Ia, Folder as Ca, Languages as Vn, ChevronDown as hn, Star as Na, Plus as Ss, History as La, Play as ka, Palette as Oa, CheckCircle as Da, Loader as Ft, Save as Ga, Send as Hn, Rocket as Qn, CopyPlusIcon as xa, Pencil as Ra, Power as Ua, Trash as Ba, SquareLibrary as $n, Hash as Ma, File as Fa, MoreHorizontal as jn, ExternalLink as qa, LanguagesIcon as Ka, User as Va, X as zn, Trash2 as Ha, ImageIcon as Wn, Code as Qa, Eye as $a, Share2 as ja, FileCode2 as za, AlertTriangle as Wa } from "lucide-react";
16
+ import { Tooltip as zt, 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 bn, DropdownMenuTrigger as In, DropdownMenuContent as Cn, DropdownMenuItem as ue, Separator as ra, TooltipProvider as ys, SheetTrigger as aa, Skeleton as Nt, 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 Vn, Alert as wa, AlertDescription as ba } from "@chaibuilder/sdk/ui";
17
+ import { LogsIcon as Ia, Folder as Ca, Languages as rn, ChevronDown as gn, Star as Na, Plus as Ts, History as La, Play as ka, Palette as Oa, CheckCircle as Da, Loader as Ft, Save as Ga, Send as Hn, Rocket as Qn, CopyPlusIcon as xa, Pencil as Ra, Power as Ua, Trash as Ba, SquareLibrary as $n, Hash as Ma, File as Fa, MoreHorizontal as jn, ExternalLink as qa, LanguagesIcon as Ka, User as Va, X as zn, Trash2 as Ha, ImageIcon as Wn, Code as Qa, Eye as $a, Share2 as ja, FileCode2 as za, AlertTriangle as Wa } from "lucide-react";
18
18
  import { useRegisteredChaiBlocks as Ya, getDefaultBlockProps as Ja } from "@chaibuilder/runtime";
19
19
  import { loadWebBlocks as Xa } from "@chaibuilder/sdk/web-blocks";
20
20
  const E = {
@@ -81,10 +81,10 @@ const E = {
81
81
  UPDATE_ASSET: "UPDATE_ASSET",
82
82
  GET_ASSETS: "GET_ASSETS",
83
83
  GET_ASSET: "GET_ASSET"
84
- }, Za = Ee({}), Cn = () => te(Za), oe = (e, t) => {
85
- const [n] = Cn();
84
+ }, Za = Ee({}), Nn = () => te(Za), oe = (e, t) => {
85
+ const [n] = Nn();
86
86
  return Q(() => V(n, e, t), [n, e, t]);
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, {
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, {
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 Ps("/v1/api/chai", {
98
+ const n = await _s("/v1/api/chai", {
99
99
  action: "test"
100
100
  });
101
101
  t(n).toBeDefined();
@@ -107,36 +107,39 @@ const Dc = () => {
107
107
  async ({
108
108
  body: n,
109
109
  headers: s = {},
110
- url: r = t
111
- }) => e(r, n, s),
110
+ url: r = t,
111
+ streamResponse: a = !1
112
+ }) => e(r, n, s, a),
112
113
  [e]
113
114
  );
114
115
  }, I = () => {
115
116
  const e = oe("onLogout"), t = oe("getAccessToken"), n = N();
116
117
  return j(
117
- async (s = n, r, a = {}) => {
118
- const i = await t();
119
- if (!i)
118
+ async (s = n, r, a = {}, i = !1) => {
119
+ const o = await t();
120
+ if (!o)
120
121
  return console.error("No auth token found"), null;
121
122
  try {
122
- const o = V(r, "action", "").toLowerCase(), l = await Ps(s + (o ? `?action=${o}` : ""), r, {
123
+ const c = V(r, "action", "").toLowerCase(), u = await _s(s + (c ? `?action=${c}` : ""), r, {
123
124
  ...a,
124
- Authorization: `Bearer ${i}`
125
+ Authorization: `Bearer ${o}`
125
126
  });
126
- if (l.status === 401)
127
- return console.log("401 Response", l), e(), window.location.reload(), null;
128
- if (!l.ok) {
129
- const u = await l.json();
130
- throw console.error(`API Error (${l.status}):`, u), {
131
- status: l.status,
132
- statusText: l.statusText,
133
- ...u,
134
- message: u.error || u.message || `Server error: ${l.status}`
127
+ if (i)
128
+ return u;
129
+ if (u.status === 401)
130
+ return console.log("401 Response", u), e(), window.location.reload(), null;
131
+ if (!u.ok) {
132
+ const f = await u.json();
133
+ throw console.error(`API Error (${u.status}):`, f), {
134
+ status: u.status,
135
+ statusText: u.statusText,
136
+ ...f,
137
+ message: f.error || f.message || `Server error: ${u.status}`
135
138
  };
136
139
  }
137
- return await l.json();
138
- } catch (o) {
139
- throw console.error("API request failed:", r, o), o;
140
+ return await u.json();
141
+ } catch (c) {
142
+ throw console.error("API request failed:", r, c), c;
140
143
  }
141
144
  },
142
145
  [e, t]
@@ -168,7 +171,7 @@ const xe = (e) => {
168
171
  action: E.GET_LANGUAGE_PAGES,
169
172
  data: { id: s }
170
173
  });
171
- return br(Ir(a, "primaryPage"));
174
+ return wr(br(a, "primaryPage"));
172
175
  },
173
176
  enabled: !!s
174
177
  });
@@ -188,12 +191,12 @@ const xe = (e) => {
188
191
  data: { draft: !0 }
189
192
  })
190
193
  });
191
- }, vs = (e) => {
194
+ }, Ps = (e) => {
192
195
  const { fallbackLang: t } = Se(), { data: n } = Re(), { data: s, isFetching: r } = xe(), a = Q(() => {
193
196
  const i = { [t]: !0 };
194
- return Cr(V(n, "languages"), (o) => {
195
- const l = re(s, { lang: o });
196
- i[o] = !!l;
197
+ return Ir(V(n, "languages"), (o) => {
198
+ const c = re(s, { lang: o });
199
+ i[o] = !!c;
197
200
  }), i;
198
201
  }, [t, s, n]);
199
202
  return r || he(e) || e && a[e];
@@ -207,14 +210,14 @@ class ti {
207
210
  Pe(this, "clientId", null);
208
211
  Pe(this, "pageId", null);
209
212
  Pe(this, "callback");
210
- var a, i, o, l, u, f;
211
- this.userId = s, this.websocket = t, this.clientId = this.getClientId(), this.channelId = `WEBSITE:${n}`, this.callback = r, this.channel = this.websocket.channel(this.channelId, { config: { presence: { key: this.clientId } } }), (f = (u = (l = (o = (i = (a = this.channel) == null ? void 0 : a.on("presence", { event: "sync" }, (d) => {
213
+ var a, i, o, c, u, f;
214
+ this.userId = s, this.websocket = t, this.clientId = this.getClientId(), this.channelId = `WEBSITE:${n}`, this.callback = r, this.channel = this.websocket.channel(this.channelId, { config: { presence: { key: this.clientId } } }), (f = (u = (c = (o = (i = (a = this.channel) == null ? void 0 : a.on("presence", { event: "sync" }, (d) => {
212
215
  this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC", d);
213
216
  })) == null ? void 0 : i.on("presence", { event: "leave" }, (d) => {
214
217
  this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC", d);
215
218
  })) == null ? void 0 : o.on("presence", { event: "join" }, (d) => {
216
219
  this.callback("UPDATE_ONLINE_USERS", { pageToUser: this.getPageUserMapping() }), this.onReceiveEvent("SYNC", d);
217
- })) == null ? void 0 : l.on(
220
+ })) == null ? void 0 : c.on(
218
221
  "broadcast",
219
222
  { event: "TAKE_OVER_REQUESTED" },
220
223
  ({ payload: d }) => this.onReceiveEvent("TAKE_OVER_REQUESTED", d)
@@ -242,10 +245,10 @@ class ti {
242
245
  return t.length > 0 ? t[0] : null;
243
246
  }
244
247
  getPageUserMapping() {
245
- const t = this.getOnlineUsers({}), n = Nr(t, "pageId"), s = {};
248
+ const t = this.getOnlineUsers({}), n = Cr(t, "pageId"), s = {};
246
249
  return Object.keys(n).forEach((r) => {
247
250
  var i;
248
- const a = (i = Lr(n[r], "onlineAt")) == null ? void 0 : i.userId;
251
+ const a = (i = Nr(n[r], "onlineAt")) == null ? void 0 : i.userId;
249
252
  a !== this.userId && (s[r] = a);
250
253
  }), s;
251
254
  }
@@ -307,8 +310,8 @@ class ti {
307
310
  }
308
311
  const ni = Ee(
309
312
  null
310
- ), ws = () => te(ni), Nn = () => {
311
- const [e] = ws();
313
+ ), vs = () => te(ni), Ln = () => {
314
+ const [e] = vs();
312
315
  return (e == null ? void 0 : e.slug) || "";
313
316
  };
314
317
  function si(e, t) {
@@ -319,7 +322,7 @@ function si(e, t) {
319
322
  }, [e, t]), n;
320
323
  }
321
324
  const ri = ({ query: e, uuid: t }) => {
322
- const { selectedLang: n, fallbackLang: s } = Se(), { data: r } = ie(), a = r == null ? void 0 : r.pageType, i = N(), o = I(), { data: l, isFetching: u } = ae({
325
+ const { selectedLang: n, fallbackLang: s } = Se(), { data: r } = ie(), a = r == null ? void 0 : r.pageType, i = N(), o = I(), { data: c, isFetching: u } = ae({
323
326
  queryKey: [E.GET_DYNAMIC_PAGES, e, a, t],
324
327
  staleTime: 60 * 60 * 1e3,
325
328
  placeholderData: [],
@@ -328,35 +331,35 @@ const ri = ({ query: e, uuid: t }) => {
328
331
  data: { query: e, pageType: a, uuid: t }
329
332
  }) || [],
330
333
  enabled: !!a
331
- }), f = Q(() => n === "" ? l.filter((d) => d.lang === "" || d.lang === s) : l.filter((d) => d.lang === n), [n, s, l]);
332
- return { allLangPages: l, data: f, isFetching: u };
334
+ }), f = Q(() => n === "" ? c.filter((d) => d.lang === "" || d.lang === s) : c.filter((d) => d.lang === n), [n, s, c]);
335
+ return { allLangPages: c, data: f, isFetching: u };
333
336
  }, ai = () => {
334
- const { selectedLang: e, fallbackLang: t } = Se(), [n, s] = ws(), [r, a] = K(""), i = si(r, 500), { allLangPages: o, data: l, isFetching: u } = ri({ query: i }), f = j((g) => s(g), [s]), d = j((g) => a(g), [a]), h = j(() => {
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 }), f = j((g) => s(g), [s]), d = j((g) => a(g), [a]), h = j(() => {
335
338
  if (!n) return;
336
- const g = !(n != null && n.primaryPage), A = e.length === 0, T = g ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, y = o.filter(
337
- (P) => (P == null ? void 0 : P.primaryPage) === T || P.id === T
338
- ).find((P) => A ? P.lang === e || P.lang === t : P.lang === e);
339
- s(y || n);
339
+ const g = !(n != null && n.primaryPage), y = e.length === 0, T = g ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, p = o.filter(
340
+ (A) => (A == null ? void 0 : A.primaryPage) === T || A.id === T
341
+ ).find((A) => y ? A.lang === e || A.lang === t : A.lang === e);
342
+ s(p || n);
340
343
  }, [n, e, o, s, t]);
341
344
  return {
342
345
  isFetching: u,
343
346
  dynamicPage: n,
344
347
  searchQuery: r,
345
348
  selectedLang: e,
346
- dynamicPages: l,
349
+ dynamicPages: c,
347
350
  allLangPages: o,
348
351
  updateDynamicPage: f,
349
352
  updateSearchQuery: d,
350
353
  onChangeLanguage: h
351
354
  };
352
- }, ii = Ee({ lastSaved: void 0 }), Ln = () => te(ii), ie = () => {
355
+ }, ii = Ee({ lastSaved: void 0 }), kn = () => te(ii), ie = () => {
353
356
  const [e] = le(), t = e.get("page"), { data: n, isFetching: s } = xe();
354
357
  return { data: Q(() => ({ ...re(n, { id: t }) || {} }), [n, t]), isFetching: s };
355
358
  }, be = () => {
356
359
  const [e] = le(), t = e.get("lang") ?? "", { data: n, isFetching: s } = xe();
357
360
  return { data: Q(() => re(n, { lang: t }) || {}, [n, t]), isFetching: s };
358
361
  }, oi = Ee({}), li = () => te(oi), ci = () => {
359
- const { data: e } = be(), t = Nn(), n = oe("getLiveUrl", ds), s = e == null ? void 0 : e.slug, r = n(s || "/");
362
+ const { data: e } = be(), t = Ln(), n = oe("getLiveUrl", ds), s = e == null ? void 0 : e.slug, r = n(s || "/");
360
363
  return t ? r + t : r;
361
364
  }, Jt = () => {
362
365
  const e = oe("currentUser"), t = oe("onLogout");
@@ -366,7 +369,7 @@ const ri = ({ query: e, uuid: t }) => {
366
369
  logout: t
367
370
  };
368
371
  }, ui = (e) => {
369
- const t = _s(), n = I();
372
+ const t = Ss(), n = I();
370
373
  return ae({
371
374
  queryKey: [E.GET_CHAI_USER, e],
372
375
  queryFn: async () => {
@@ -385,35 +388,35 @@ const ri = ({ query: e, uuid: t }) => {
385
388
  isTakeOverRequested: !1,
386
389
  requestingClientId: "",
387
390
  isActiveInOtherTab: !1
388
- }), fi = Ee(""), hi = Ee(null), kn = Ee({}), Gc = () => te(kn), Ie = () => {
389
- const [e] = le(), t = e.get("page"), [n, s] = te(di), [r, a] = te(hi), [i, o] = te(fi), [l] = te(kn);
391
+ }), fi = Ee(""), hi = Ee(null), On = Ee({}), Gc = () => te(On), Ie = () => {
392
+ const [e] = le(), t = e.get("page"), [n, s] = te(di), [r, a] = te(hi), [i, o] = te(fi), [c] = te(On);
390
393
  return {
391
394
  pageLock: n,
392
- pageToUser: l,
395
+ pageToUser: c,
393
396
  lockingStatus: i,
394
397
  realtimeInstance: r,
395
398
  setPageLock: s,
396
399
  setLockingStatus: o,
397
400
  setRealtimeInstance: a,
398
401
  realtimePageLockEnabled: !!r,
399
- currentEditor: l[t || ""],
402
+ currentEditor: c[t || ""],
400
403
  isLocked: t && n.status === "locked"
401
404
  };
402
405
  }, gi = () => {
403
- const e = ei(), { data: t } = ie(), { user: n } = Jt(), s = t == null ? void 0 : t.id, { data: r } = Re(), { pageLock: a, setPageLock: i, setLockingStatus: o, realtimeInstance: l, setRealtimeInstance: u } = Ie(), [, f] = te(kn), d = at(!1), h = at(a), g = at(!1);
406
+ const e = ei(), { data: t } = ie(), { user: n } = Jt(), s = t == null ? void 0 : t.id, { data: r } = Re(), { pageLock: a, setPageLock: i, setLockingStatus: o, realtimeInstance: c, setRealtimeInstance: u } = Ie(), [, f] = te(On), d = at(!1), h = at(a), g = at(!1);
404
407
  return se(() => {
405
- if (n != null && n.id && e && !l && (r != null && r.appKey) && !g.current) {
408
+ if (n != null && n.id && e && !c && (r != null && r.appKey) && !g.current) {
406
409
  g.current = !0;
407
- const A = async (p, y) => {
408
- var P, w;
409
- switch (p) {
410
+ const y = async (_, p) => {
411
+ var A, P;
412
+ switch (_) {
410
413
  /**
411
414
  * When user joins
412
415
  * @payload : { pageToUser: { [pageId: string]: [userId: string] } }
413
416
  * - Update page user mapping
414
417
  */
415
418
  case "UPDATE_ONLINE_USERS":
416
- f((y == null ? void 0 : y.pageToUser) || {});
419
+ f((p == null ? void 0 : p.pageToUser) || {});
417
420
  break;
418
421
  /**
419
422
  * When page is locked
@@ -425,7 +428,7 @@ const ri = ({ query: e, uuid: t }) => {
425
428
  ...h == null ? void 0 : h.current,
426
429
  requestedBy: "",
427
430
  status: "locked",
428
- isActiveInOtherTab: y == null ? void 0 : y.isActiveInOtherTab
431
+ isActiveInOtherTab: p == null ? void 0 : p.isActiveInOtherTab
429
432
  });
430
433
  break;
431
434
  /**
@@ -434,12 +437,12 @@ const ri = ({ query: e, uuid: t }) => {
434
437
  * - User will be owner of this page
435
438
  */
436
439
  case "USER_JOINED":
437
- if (((P = h == null ? void 0 : h.current) == null ? void 0 : P.status) === "editing") return;
438
- ((w = h == null ? void 0 : h.current) == null ? void 0 : w.status) === "locked" && o("can_edit_now"), i({
440
+ if (((A = h == null ? void 0 : h.current) == null ? void 0 : A.status) === "editing") return;
441
+ ((P = h == null ? void 0 : h.current) == null ? void 0 : P.status) === "locked" && o("can_edit_now"), i({
439
442
  ...h == null ? void 0 : h.current,
440
443
  requestedBy: "",
441
444
  status: "editing",
442
- isActiveInOtherTab: y == null ? void 0 : y.isActiveInOtherTab
445
+ isActiveInOtherTab: p == null ? void 0 : p.isActiveInOtherTab
443
446
  });
444
447
  break;
445
448
  /**
@@ -453,8 +456,8 @@ const ri = ({ query: e, uuid: t }) => {
453
456
  case "TAKE_OVER_REQUESTED":
454
457
  i({
455
458
  ...h == null ? void 0 : h.current,
456
- requestingClientId: y == null ? void 0 : y.requestingClientId,
457
- requestedBy: y != null && y.isRequestedFromAnotherTab ? "ANOTHER_TAB" : y == null ? void 0 : y.requestedBy
459
+ requestingClientId: p == null ? void 0 : p.requestingClientId,
460
+ requestedBy: p != null && p.isRequestedFromAnotherTab ? "ANOTHER_TAB" : p == null ? void 0 : p.requestedBy
458
461
  });
459
462
  break;
460
463
  /**
@@ -464,7 +467,7 @@ const ri = ({ query: e, uuid: t }) => {
464
467
  * - update state for editing page
465
468
  */
466
469
  case "TAKE_OVER_REQUEST_ACCEPTED":
467
- y != null && y.isTakingOverFromAnotherTab || (o("take_over_request_accepted"), R.success("Your Page Take Over Request Accepted", { position: "top-center" })), i({
470
+ p != null && p.isTakingOverFromAnotherTab || (o("take_over_request_accepted"), R.success("Your Page Take Over Request Accepted", { position: "top-center" })), i({
468
471
  ...h == null ? void 0 : h.current,
469
472
  status: "editing",
470
473
  requestedBy: "",
@@ -488,28 +491,28 @@ const ri = ({ query: e, uuid: t }) => {
488
491
  e,
489
492
  r == null ? void 0 : r.appKey,
490
493
  n == null ? void 0 : n.id,
491
- A
494
+ y
492
495
  );
493
496
  u(T);
494
497
  }
495
498
  }, [u, e, r == null ? void 0 : r.appKey]), se(() => {
496
499
  h.current = a;
497
500
  }, [a]), se(() => {
498
- if (!(!l || !s || !(n != null && n.id) || d.current))
499
- return d.current = !0, l == null || l.joinPage(s), () => {
500
- l && d.current && (d.current = !1, h.current = {
501
+ if (!(!c || !s || !(n != null && n.id) || d.current))
502
+ return d.current = !0, c == null || c.joinPage(s), () => {
503
+ c && d.current && (d.current = !1, h.current = {
501
504
  requestedBy: "",
502
505
  status: "checking",
503
506
  requestingClientId: "",
504
507
  isActiveInOtherTab: !1,
505
508
  isTakeOverRequested: !1
506
- }, o(""), i(h.current), l == null || l.leavePage());
509
+ }, o(""), i(h.current), c == null || c.leavePage());
507
510
  };
508
- }, [s, l]), a == null ? void 0 : a.status;
511
+ }, [s, c]), a == null ? void 0 : a.status;
509
512
  }, mi = () => {
510
513
  const { data: e } = ie(), { user: t } = Jt(), n = e == null ? void 0 : e.id, { pageLock: s, setPageLock: r, realtimeInstance: a } = Ie(), { savePageAsync: i } = Ge(), o = j(() => {
511
514
  !a || !n || !(t != null && t.id) || (r({ ...s, isTakeOverRequested: !0 }), a == null || a.sendEvent("TAKE_OVER_REQUESTED"));
512
- }, [a, n, t == null ? void 0 : t.id, r, s]), l = j(async () => {
515
+ }, [a, n, t == null ? void 0 : t.id, r, s]), c = j(async () => {
513
516
  !a || !n || !(t != null && t.id) || (await i(), a == null || a.sendEvent("TAKE_OVER_REQUEST_ACCEPTED", {
514
517
  requestingClientId: s == null ? void 0 : s.requestingClientId
515
518
  }), r({
@@ -533,24 +536,24 @@ const ri = ({ query: e, uuid: t }) => {
533
536
  }, [n, a, t == null ? void 0 : t.id, r, s]);
534
537
  return {
535
538
  pageLock: s,
536
- acceptTakeOver: l,
539
+ acceptTakeOver: c,
537
540
  rejectTakeOver: u,
538
541
  requestTakeOver: o
539
542
  };
540
- }, Ei = F(() => import("./no-language-page-content-Cr6wq4o8.js")), pi = F(() => import("./page-locked-by-dialog-DgIr4-Gd.js")), rn = F(() => import("./page-lock-request-DQT5Ur0g.js")), yi = ({ isFetchingPage: e }) => {
541
- const { pageLock: t, requestTakeOver: n } = mi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching: l } = ui(s), [u] = le(), f = u.get("page"), [d] = Ln(), h = W(), g = j(() => {
543
+ }, Ei = F(() => import("./no-language-page-content-qoHrlxwD.js")), pi = F(() => import("./page-locked-by-dialog-DEC58QPA.js")), an = F(() => import("./page-lock-request-CBVKtxVj.js")), yi = ({ isFetchingPage: e }) => {
544
+ const { pageLock: t, requestTakeOver: n } = mi(), { currentEditor: s, lockingStatus: r, setLockingStatus: a, realtimePageLockEnabled: i } = Ie(), { data: o, isFetching: c } = ui(s), [u] = le(), f = u.get("page"), [d] = kn(), h = W(), g = j(() => {
542
545
  n();
543
546
  }, [n]);
544
- return !f || e || !i || (t == null ? void 0 : t.status) === "checking" ? null : t != null && t.requestedBy ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
545
- rn,
547
+ return !f || e || !i || (t == null ? void 0 : t.status) === "checking" ? null : t != null && t.requestedBy ? /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
548
+ an,
546
549
  {
547
550
  lockingStatus: "",
548
551
  onContinue: () => {
549
552
  n();
550
553
  }
551
554
  }
552
- ) }) : (t == null ? void 0 : t.status) !== "locked" ? r === "take_over_request_accepted" || r === "can_edit_now" ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
553
- rn,
555
+ ) }) : (t == null ? void 0 : t.status) !== "locked" ? r === "take_over_request_accepted" || r === "can_edit_now" ? /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
556
+ an,
554
557
  {
555
558
  lockingStatus: r,
556
559
  onContinue: () => {
@@ -559,11 +562,11 @@ const ri = ({ query: e, uuid: t }) => {
559
562
  }), a("");
560
563
  }
561
564
  }
562
- ) }) : null : t != null && t.isActiveInOtherTab ? /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(rn, { lockingStatus: "page_is_active_in_other_tab", onContinue: n }) }) : /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
565
+ ) }) : null : t != null && t.isActiveInOtherTab ? /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(an, { lockingStatus: "page_is_active_in_other_tab", onContinue: n }) }) : /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
563
566
  pi,
564
567
  {
565
568
  ...o,
566
- isFetchingUserInfo: l,
569
+ isFetchingUserInfo: c,
567
570
  name: (o == null ? void 0 : o.name) || "Unknown User",
568
571
  email: (o == null ? void 0 : o.email) || "",
569
572
  lastSaved: (d == null ? void 0 : d.lastSaved) || "",
@@ -574,7 +577,7 @@ const ri = ({ query: e, uuid: t }) => {
574
577
  ) });
575
578
  }, Ai = () => {
576
579
  const [e] = le(), t = e.get("lang");
577
- return vs(t) ? null : /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ei, {}) });
580
+ return Ps(t) ? null : /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ei, {}) });
578
581
  }, Lt = {
579
582
  ab: "Abkhazian",
580
583
  aa: "Afar",
@@ -764,17 +767,17 @@ const ri = ({ query: e, uuid: t }) => {
764
767
  za: "Zhuang, Chuang",
765
768
  zu: "Zulu"
766
769
  };
767
- function bs(e, t, n = !1) {
770
+ function ws(e, t, n = !1) {
768
771
  const s = e.toString() ? `?${e.toString()}` : "/";
769
772
  n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
770
773
  }
771
- const On = Ee(null), Dn = () => {
774
+ const Dn = Ee(null), Gn = () => {
772
775
  const { data: e } = Re();
773
776
  return Q(
774
777
  () => (e == null ? void 0 : e.fallbackLang) || "en",
775
778
  [e]
776
779
  );
777
- }, Is = () => {
780
+ }, bs = () => {
778
781
  const e = I(), t = N();
779
782
  return ae({
780
783
  queryKey: [E.GET_WEBSITE_PAGES],
@@ -783,7 +786,7 @@ const On = Ee(null), Dn = () => {
783
786
  placeholderData: (n) => n || []
784
787
  });
785
788
  }, xc = (e) => {
786
- const t = I(), n = N(), s = Dn();
789
+ const t = I(), n = N(), s = Gn();
787
790
  return ae({
788
791
  queryKey: [E.GET_WEBSITE_PAGES, e, s],
789
792
  staleTime: 1e3 * 60 * 5,
@@ -791,144 +794,148 @@ const On = Ee(null), Dn = () => {
791
794
  queryFn: async () => {
792
795
  if (s === e) return {};
793
796
  const r = await t(n, { action: E.GET_WEBSITE_PAGES, data: { lang: e } }) || [];
794
- return kr(
797
+ return Lr(
795
798
  Bt(r, (a) => ({ ...a, lang: e })),
796
799
  "primaryPage"
797
800
  );
798
801
  },
799
802
  placeholderData: (r) => r || {}
800
803
  });
801
- }, Ti = F(() => import("./page-manager-new-BuLz6042.js")), Cs = ({ children: e }) => {
802
- const { t } = we(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: l } = Is(), [u, f] = K(!1), [d, h] = K(!0), { savePage: g } = Ge(), A = !!r && !he(a), T = Q(() => {
803
- if (!o || l) return !1;
804
- const w = o.find((O) => O.slug === "/");
805
- return w == null ? void 0 : w.id;
806
- }, [o, l]);
804
+ }, Ti = F(() => import("./page-manager-new-B1PDwz2w.js")), Is = ({ children: e }) => {
805
+ const { t } = we(), [n, s] = le(), r = n.get("page"), { data: a, isFetching: i } = ie(), { data: o, isFetching: c } = bs(), [u, f] = K(!1), [d, h] = K(!0), { savePage: g } = Ge(), y = !!r && !he(a), T = Q(() => {
806
+ if (!o || c) return !1;
807
+ const P = o.find((O) => O.slug === "/");
808
+ return P == null ? void 0 : P.id;
809
+ }, [o, c]);
807
810
  se(() => {
808
- if (l || !T || o.some((M) => M.id === r)) return;
811
+ if (c || !T || o.some((M) => M.id === r)) return;
809
812
  const O = new URLSearchParams({ page: T });
810
- bs(O, s), !l && o && h(!1);
811
- }, [r, l, o, T, s]);
812
- const p = !d && !r, y = !d && !i && he(a), P = u || p || y;
813
+ ws(O, s), !c && o && h(!1);
814
+ }, [r, c, o, T, s]);
815
+ const _ = !d && !r, p = !d && !i && he(a), A = u || _ || p;
813
816
  return /* @__PURE__ */ m(ge, { children: [
814
- /* @__PURE__ */ c("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ m(zt, { children: [
815
- /* @__PURE__ */ c(
817
+ /* @__PURE__ */ l("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ l("div", { className: "relative", children: /* @__PURE__ */ m(zt, { children: [
818
+ /* @__PURE__ */ l(
816
819
  Wt,
817
820
  {
818
821
  asChild: !0,
819
822
  onClick: () => {
820
823
  g(), f(!0);
821
824
  },
822
- children: e || /* @__PURE__ */ c(B, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(Ia, { className: "h-4 w-4" }) }, "template-viewer")
825
+ children: e || /* @__PURE__ */ l(U, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ l(Ia, { className: "h-4 w-4" }) }, "template-viewer")
823
826
  }
824
827
  ),
825
- /* @__PURE__ */ c(Yt, { side: "right", children: /* @__PURE__ */ c("p", { children: t("Open pages manager") }) })
828
+ /* @__PURE__ */ l(Yt, { side: "right", children: /* @__PURE__ */ l("p", { children: t("Open pages manager") }) })
826
829
  ] }) }) }),
827
- /* @__PURE__ */ c(ps, { open: P, onOpenChange: (w) => !w && A && f(!1), children: /* @__PURE__ */ m(
828
- ys,
830
+ /* @__PURE__ */ l(Es, { open: A, onOpenChange: (P) => !P && y && f(!1), children: /* @__PURE__ */ m(
831
+ ps,
829
832
  {
830
833
  side: "left",
831
834
  "aria-describedby": "pages-manager-description",
832
- className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${A ? "" : "sheet-hide-close-btn"}`,
835
+ className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${y ? "" : "sheet-hide-close-btn"}`,
833
836
  children: [
834
837
  /* @__PURE__ */ m(ta, { className: "mb-3 px-4 pt-4", children: [
835
838
  /* @__PURE__ */ m(na, { className: "flex items-center gap-2 text-sm font-semibold", children: [
836
- /* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(Ca, { className: "h-4 w-4" }) }),
839
+ /* @__PURE__ */ l("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ l(Ca, { className: "h-4 w-4" }) }),
837
840
  /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
838
- /* @__PURE__ */ c("span", { className: "text-sm font-semibold", children: t("Pages") }),
839
- /* @__PURE__ */ c("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
841
+ /* @__PURE__ */ l("span", { className: "text-sm font-semibold", children: t("Pages") }),
842
+ /* @__PURE__ */ l("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
840
843
  ] })
841
844
  ] }),
842
- /* @__PURE__ */ c(sa, { className: "sr-only", children: t("Manage your site structure") })
845
+ /* @__PURE__ */ l(sa, { className: "sr-only", children: t("Manage your site structure") })
843
846
  ] }),
844
- /* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: P && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ti, { close: () => f(!1) }) }) })
847
+ /* @__PURE__ */ l("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: A && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ti, { close: () => f(!1) }) }) })
845
848
  ]
846
849
  }
847
850
  ) })
848
851
  ] });
849
- }, Si = F(() => import("./add-new-language-page-NXyJYXG-.js")), _i = () => {
852
+ }, Si = F(() => import("./add-new-language-page-0zC1CJZK.js")), _i = () => {
850
853
  const e = oe("topLeftCorner", null);
851
- return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: qr.createElement(e, {}) }) : null;
854
+ return e ? /* @__PURE__ */ l("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Fr.createElement(e, {}) }) : null;
852
855
  }, Pi = ({
853
856
  showAdd: e = !0,
854
- variant: t = "ghost"
857
+ variant: t = "ghost",
858
+ goToDefaultLang: n = !1
855
859
  }) => {
856
- const { fallbackLang: n, languages: s, selectedLang: r, setSelectedLang: a } = Se(), i = he(r) ? n : r, [, o] = le(), { isLocked: l } = Ie();
860
+ const { fallbackLang: s, languages: r, selectedLang: a, setSelectedLang: i } = Se(), o = he(a) ? s : a, [, c] = le(), { isLocked: u } = Ie();
857
861
  se(() => {
858
- const p = new URLSearchParams(window.location.search), y = p.get("lang");
859
- y && (s.includes(y) ? a(y) : (p.delete("lang"), o(p), a("")));
860
- }, [s, o, a]);
861
- const [, u] = te(On), { data: f } = ie(), { data: d } = Re(), { data: h } = xe(), g = Q(() => {
862
+ const p = new URLSearchParams(window.location.search), A = p.get("lang");
863
+ A && (r.includes(A) ? i(A) : (p.delete("lang"), c(p), i("")));
864
+ }, [r, c, i]);
865
+ const [, f] = te(Dn), { data: d } = ie(), { data: h } = Re(), { data: g } = xe(), y = Q(() => {
862
866
  const p = fs(
863
- Bt(V(d, "languages"), (y) => {
864
- const P = re(h, { lang: y });
867
+ Bt(V(h, "languages"), (A) => {
868
+ const P = re(g, { lang: A });
865
869
  return {
866
- key: y,
867
- value: V(Lt, y, y),
870
+ key: A,
871
+ value: V(Lt, A, A),
868
872
  isLangPageAdded: !!P
869
873
  };
870
874
  })
871
875
  ).filter(Boolean);
872
876
  return [
873
877
  {
874
- key: n,
875
- value: V(Lt, n),
878
+ key: s,
879
+ value: V(Lt, s),
876
880
  isLangPageAdded: !0
877
881
  },
878
882
  ...p
879
883
  ];
880
- }, [n, h, d]), A = (p) => {
884
+ }, [s, g, h]), T = (p) => {
881
885
  if (document.querySelector('[data-panel-id="seo"]')) {
882
886
  const P = new CustomEvent("seo-language-switch-check", {
883
887
  detail: {
884
- fromLang: i,
888
+ fromLang: o,
885
889
  toLang: p,
886
- switchHandler: () => T(p)
890
+ switchHandler: () => _(p)
887
891
  }
888
892
  });
889
893
  window.dispatchEvent(P);
890
894
  return;
891
895
  }
892
- T(p);
893
- }, T = (p) => {
894
- a(p);
895
- const y = new URLSearchParams(window.location.search);
896
- p === n ? y.delete("lang") : y.set("lang", p), bs(y, o);
896
+ _(p);
897
+ }, _ = (p) => {
898
+ i(p);
899
+ const A = new URLSearchParams(window.location.search);
900
+ p === s ? A.delete("lang") : A.set("lang", p), ws(A, c);
897
901
  };
898
- return he(s) ? null : l ? /* @__PURE__ */ m(B, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
899
- /* @__PURE__ */ c(Vn, { className: "h-4 w-4" }),
900
- V(Lt, i, i),
901
- /* @__PURE__ */ c(hn, { className: "h-4 w-4" })
902
- ] }) : /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ m(wn, { children: [
903
- /* @__PURE__ */ c(bn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
904
- B,
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(rn, { className: "h-4 w-4" }),
904
+ V(Lt, o, o),
905
+ /* @__PURE__ */ l(gn, { className: "h-4 w-4" })
906
+ ] }) : n ? /* @__PURE__ */ m(U, { onClick: () => _(s), variant: t, size: "sm", className: "h-7", children: [
907
+ /* @__PURE__ */ l(rn, { className: "h-4 w-4" }),
908
+ "Go to default language"
909
+ ] }) : /* @__PURE__ */ l(ge, { children: /* @__PURE__ */ m(bn, { children: [
910
+ /* @__PURE__ */ l(In, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
911
+ U,
905
912
  {
906
- disabled: !!l,
913
+ disabled: !!u,
907
914
  variant: t,
908
915
  size: "sm",
909
916
  className: "ml-px h-max gap-2 py-1.5",
910
917
  children: [
911
- /* @__PURE__ */ c(Vn, { className: "h-4 w-4" }),
912
- V(Lt, i, i),
913
- /* @__PURE__ */ c(hn, { className: "h-4 w-4" })
918
+ /* @__PURE__ */ l(rn, { className: "h-4 w-4" }),
919
+ V(Lt, o, o),
920
+ /* @__PURE__ */ l(gn, { className: "h-4 w-4" })
914
921
  ]
915
922
  }
916
923
  ) }),
917
- /* @__PURE__ */ m(In, { className: "space-y-1 border-border", children: [
924
+ /* @__PURE__ */ m(Cn, { className: "space-y-1 border-border", children: [
918
925
  Bt(
919
- g.filter((p) => p.isLangPageAdded),
926
+ y.filter((p) => p.isLangPageAdded),
920
927
  (p) => /* @__PURE__ */ m(
921
928
  ue,
922
929
  {
923
930
  className: Mt(
924
931
  "flex cursor-pointer items-center justify-between text-xs font-medium text-gray-800",
925
- p.key === i && "!bg-gray-200 text-gray-700"
932
+ p.key === o && "!bg-gray-200 text-gray-700"
926
933
  ),
927
- onClick: () => A(p.key),
934
+ onClick: () => T(p.key),
928
935
  children: [
929
- /* @__PURE__ */ c("div", { className: "text-slate-600", children: p.value }),
930
- p.key === n && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
931
- /* @__PURE__ */ c(Na, { fill: "orange", className: "h-2 w-2" }),
936
+ /* @__PURE__ */ l("div", { className: "text-slate-600", children: p.value }),
937
+ p.key === s && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
938
+ /* @__PURE__ */ l(Na, { fill: "orange", className: "h-2 w-2" }),
932
939
  "Primary"
933
940
  ] })
934
941
  ]
@@ -936,22 +943,22 @@ const On = Ee(null), Dn = () => {
936
943
  p.value
937
944
  )
938
945
  ),
939
- e && !he(g.filter((p) => !p.isLangPageAdded)) && /* @__PURE__ */ m(ge, { children: [
940
- /* @__PURE__ */ c(ra, {}),
946
+ e && !he(y.filter((p) => !p.isLangPageAdded)) && /* @__PURE__ */ m(ge, { children: [
947
+ /* @__PURE__ */ l(ra, {}),
941
948
  /* @__PURE__ */ m(
942
- B,
949
+ U,
943
950
  {
944
951
  size: "sm",
945
952
  variant: "ghost",
946
953
  onClick: () => {
947
- f && u({
954
+ d && f({
948
955
  edit: !1,
949
- primaryPage: f.id
956
+ primaryPage: d.id
950
957
  });
951
958
  },
952
959
  className: "text-xs font-normal duration-200 hover:bg-slate-300 hover:text-slate-800",
953
960
  children: [
954
- /* @__PURE__ */ c(Ss, { className: "mr-1 h-3 w-3" }),
961
+ /* @__PURE__ */ l(Ts, { className: "mr-1 h-3 w-3" }),
955
962
  " Add Langauge"
956
963
  ]
957
964
  }
@@ -961,11 +968,11 @@ const On = Ee(null), Dn = () => {
961
968
  ] }) });
962
969
  };
963
970
  function vi() {
964
- const [e, t] = te(On);
971
+ const [e, t] = te(Dn);
965
972
  return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
966
- /* @__PURE__ */ c(_i, {}),
967
- /* @__PURE__ */ c(Cs, {}),
968
- e && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
973
+ /* @__PURE__ */ l(_i, {}),
974
+ /* @__PURE__ */ l(Is, {}),
975
+ e && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
969
976
  Si,
970
977
  {
971
978
  isOpen: !0,
@@ -979,33 +986,33 @@ function vi() {
979
986
  ] });
980
987
  }
981
988
  function wi() {
982
- return /* @__PURE__ */ c("div", { className: "mt-2 space-y-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3 rounded-md border p-2", children: [
989
+ return /* @__PURE__ */ l("div", { className: "mt-2 space-y-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3 rounded-md border p-2", children: [
983
990
  /* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
984
- /* @__PURE__ */ c(Nt, { className: "h-4 w-3/4" }),
985
- /* @__PURE__ */ c(Nt, { className: "h-3 w-1/2" }),
986
- /* @__PURE__ */ c(Nt, { className: "mt-1 h-5 w-20" })
991
+ /* @__PURE__ */ l(Nt, { className: "h-4 w-3/4" }),
992
+ /* @__PURE__ */ l(Nt, { className: "h-3 w-1/2" }),
993
+ /* @__PURE__ */ l(Nt, { className: "mt-1 h-5 w-20" })
987
994
  ] }),
988
- /* @__PURE__ */ c(Nt, { className: "h-8 w-8 rounded-full" })
995
+ /* @__PURE__ */ l(Nt, { className: "h-8 w-8 rounded-full" })
989
996
  ] }, t)) });
990
997
  }
991
- const bi = z.lazy(() => import("./page-revisions-content-DagDCr7w.js"));
998
+ const bi = z.lazy(() => import("./page-revisions-content-CKcp4He4.js"));
992
999
  function Ii() {
993
1000
  const [e, t] = z.useState(!1);
994
- return /* @__PURE__ */ c(As, { children: /* @__PURE__ */ m(zt, { delayDuration: 0, children: [
995
- /* @__PURE__ */ m(ps, { open: e, onOpenChange: t, children: [
996
- /* @__PURE__ */ c(aa, { asChild: !0, children: /* @__PURE__ */ c(Wt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
997
- /* @__PURE__ */ m(B, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
998
- /* @__PURE__ */ c(La, { className: "h-4 w-4" }),
999
- /* @__PURE__ */ c("span", { className: "sr-only", children: "View revision history" })
1001
+ return /* @__PURE__ */ l(ys, { children: /* @__PURE__ */ m(zt, { delayDuration: 0, children: [
1002
+ /* @__PURE__ */ m(Es, { open: e, onOpenChange: t, children: [
1003
+ /* @__PURE__ */ l(aa, { asChild: !0, children: /* @__PURE__ */ l(Wt, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
1004
+ /* @__PURE__ */ m(U, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
1005
+ /* @__PURE__ */ l(La, { className: "h-4 w-4" }),
1006
+ /* @__PURE__ */ l("span", { className: "sr-only", children: "View revision history" })
1000
1007
  ] }),
1001
- /* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1008
+ /* @__PURE__ */ l("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1002
1009
  ] }) }) }),
1003
- /* @__PURE__ */ c(ys, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(H, { fallback: /* @__PURE__ */ c(wi, {}), children: /* @__PURE__ */ c(bi, { isOpen: e }) }) })
1010
+ /* @__PURE__ */ l(ps, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ l(wi, {}), children: /* @__PURE__ */ l(bi, { isOpen: e }) }) })
1004
1011
  ] }),
1005
- /* @__PURE__ */ c(Yt, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
1012
+ /* @__PURE__ */ l(Yt, { side: "bottom", children: /* @__PURE__ */ l("p", { children: "Revision history" }) })
1006
1013
  ] }) });
1007
1014
  }
1008
- const an = ({
1015
+ const on = ({
1009
1016
  permission: e,
1010
1017
  permissions: t,
1011
1018
  children: n,
@@ -1148,7 +1155,7 @@ const an = ({
1148
1155
  });
1149
1156
  }
1150
1157
  });
1151
- }, Ns = () => {
1158
+ }, Cs = () => {
1152
1159
  const e = N(), t = I(), n = W(), { data: s } = ie(), { savePageAsync: r } = Ge();
1153
1160
  return X({
1154
1161
  mutationFn: async ({ ids: a }) => (await r(), t(e, {
@@ -1227,17 +1234,17 @@ const an = ({
1227
1234
  R.error("Failed to change slug");
1228
1235
  }
1229
1236
  });
1230
- }, ki = F(() => import("./publish-pages-content-eAcMLyLi.js"));
1237
+ }, ki = F(() => import("./publish-pages-content-BMaeNHV2.js"));
1231
1238
  function Oi({
1232
1239
  showModal: e = !1,
1233
1240
  onClose: t = () => console.log("Cancelled")
1234
1241
  }) {
1235
- const { mutate: n, isPending: s } = Ns();
1236
- return /* @__PURE__ */ c(Ts, { open: e, onOpenChange: s ? () => {
1237
- } : t, children: e && /* @__PURE__ */ c(H, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(ki, { onClose: t, isPending: s, publishPage: n }) }) });
1242
+ const { mutate: n, isPending: s } = Cs();
1243
+ return /* @__PURE__ */ l(As, { open: e, onOpenChange: s ? () => {
1244
+ } : 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 }) }) });
1238
1245
  }
1239
1246
  const ce = {
1240
- ...$r,
1247
+ ...Qr,
1241
1248
  //pages
1242
1249
  ADD_PAGE: "add_page",
1243
1250
  EDIT_PAGE: "edit_page",
@@ -1290,26 +1297,26 @@ const ce = {
1290
1297
  }, xi = async () => {
1291
1298
  const { default: e } = await import("./confetti.module-DCmCkDyV.js");
1292
1299
  return e;
1293
- }, on = (e) => {
1300
+ }, ln = (e) => {
1294
1301
  let t = Gi[e];
1295
1302
  t || (t = {});
1296
1303
  const n = { ...Di, ...t };
1297
1304
  xi().then((s) => s(n));
1298
1305
  };
1299
- function Gn({
1306
+ function xn({
1300
1307
  children: e,
1301
1308
  content: t,
1302
1309
  side: n = "bottom",
1303
1310
  delayDuration: s = 700,
1304
1311
  showTooltip: r = !0
1305
1312
  }) {
1306
- return r ? /* @__PURE__ */ c(As, { children: /* @__PURE__ */ m(zt, { delayDuration: s, children: [
1307
- /* @__PURE__ */ c(Wt, { asChild: !0, children: e }),
1308
- /* @__PURE__ */ c(Yt, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
1313
+ return r ? /* @__PURE__ */ l(ys, { children: /* @__PURE__ */ m(zt, { delayDuration: s, children: [
1314
+ /* @__PURE__ */ l(Wt, { asChild: !0, children: e }),
1315
+ /* @__PURE__ */ l(Yt, { side: n, sideOffset: 10, children: /* @__PURE__ */ l("p", { children: t }) })
1309
1316
  ] }) }) : e;
1310
1317
  }
1311
- const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import("./translation-warning-modal-DalBhNQy.js")), Bi = () => {
1312
- const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Se(), s = oe("getPreviewUrl", async (h) => h), [r, a] = K(""), { data: i } = ie(), { data: o } = xe(), { data: l } = Ce(), u = Q(
1318
+ const Ri = F(() => import("./unpublish-page-JzGl35pF.js")), Ui = F(() => import("./translation-warning-modal-DalBhNQy.js")), Bi = () => {
1319
+ const { t: e } = we(), { selectedLang: t, fallbackLang: n } = Se(), s = oe("getPreviewUrl", async (h) => h), [r, a] = K(""), { data: i } = ie(), { data: o } = xe(), { data: c } = Ce(), u = Q(
1313
1320
  () => {
1314
1321
  var h;
1315
1322
  return (h = o == null ? void 0 : o.find((g) => (g == null ? void 0 : g.lang) === t)) == null ? void 0 : h.slug;
@@ -1317,8 +1324,8 @@ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import(
1317
1324
  [t, o]
1318
1325
  ), f = j((h) => {
1319
1326
  var g;
1320
- return (g = re(l, { key: h })) == null ? void 0 : g.hasSlug;
1321
- }, [l]), d = t === n ? "" : t;
1327
+ return (g = re(c, { key: h })) == null ? void 0 : g.hasSlug;
1328
+ }, [c]), d = t === n ? "" : t;
1322
1329
  return se(() => {
1323
1330
  (async () => {
1324
1331
  if (typeof s == "function") {
@@ -1329,21 +1336,21 @@ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import(
1329
1336
  } else
1330
1337
  a("");
1331
1338
  })();
1332
- }, [s, u, i == null ? void 0 : i.pageType, f, i == null ? void 0 : i.id, d]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(Gn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(B, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(ka, { className: "h-4 w-4" }) }) }) }) });
1339
+ }, [s, u, i == null ? void 0 : i.pageType, f, i == null ? void 0 : i.id, d]), /* @__PURE__ */ l(ge, { children: /* @__PURE__ */ l(xn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ l("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ l(U, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ l(ka, { className: "h-4 w-4" }) }) }) }) });
1333
1340
  }, Mi = () => {
1334
- const { t: e } = we(), [t, n] = jr();
1341
+ const { t: e } = we(), [t, n] = $r();
1335
1342
  return /* @__PURE__ */ m(ge, { children: [
1336
- /* @__PURE__ */ c(Gn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
1337
- B,
1343
+ /* @__PURE__ */ l(xn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ l(
1344
+ U,
1338
1345
  {
1339
1346
  variant: t === "theme" ? "outline" : "ghost",
1340
1347
  size: "icon",
1341
1348
  className: "gap-2",
1342
1349
  onClick: () => n(t === "theme" ? "block" : "theme"),
1343
- children: /* @__PURE__ */ c(Oa, { className: "h-4 w-4" })
1350
+ children: /* @__PURE__ */ l(Oa, { className: "h-4 w-4" })
1344
1351
  }
1345
1352
  ) }),
1346
- /* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1353
+ /* @__PURE__ */ l("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1347
1354
  ] });
1348
1355
  }, Fi = () => {
1349
1356
  const { t: e } = we(), [t, n] = K(!1), { isLocked: s } = Ie(), { savePageAsync: r, saveState: a } = Ge();
@@ -1357,103 +1364,103 @@ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import(
1357
1364
  }, [a]);
1358
1365
  const i = j(async () => {
1359
1366
  t || (n(!0), await r(), n(!1));
1360
- }, [r, t]), { buttonIcon: o, buttonClass: l, tooltipContent: u } = Q(() => {
1367
+ }, [r, t]), { buttonIcon: o, buttonClass: c, tooltipContent: u } = Q(() => {
1361
1368
  switch (a) {
1362
1369
  case "UNSAVED":
1363
1370
  return {
1364
1371
  tooltipContent: e("Save draft"),
1365
- buttonIcon: /* @__PURE__ */ c(Ga, { className: "h-4 w-4" }),
1372
+ buttonIcon: /* @__PURE__ */ l(Ga, { className: "h-4 w-4" }),
1366
1373
  buttonClass: "gap-x-1"
1367
1374
  };
1368
1375
  case "SAVING":
1369
1376
  return {
1370
1377
  tooltipContent: e("Saving"),
1371
- buttonIcon: /* @__PURE__ */ c(Ft, { className: "h-4 w-4 animate-spin text-sky-700" }),
1378
+ buttonIcon: /* @__PURE__ */ l(Ft, { className: "h-4 w-4 animate-spin text-sky-700" }),
1372
1379
  buttonClass: "gap-x-1"
1373
1380
  };
1374
1381
  case "SAVED":
1375
1382
  return {
1376
1383
  tooltipContent: e("Saved"),
1377
- buttonIcon: /* @__PURE__ */ c(Da, { className: "h-4 w-4" }),
1384
+ buttonIcon: /* @__PURE__ */ l(Da, { className: "h-4 w-4" }),
1378
1385
  buttonClass: "text-green-500 gap-x-1"
1379
1386
  };
1380
1387
  }
1381
1388
  }, [a, e]);
1382
- return s ? null : /* @__PURE__ */ m(B, { size: "sm", variant: "ghost", onClick: i, className: `${l} w-24 max-w-24`, children: [
1389
+ return s ? null : /* @__PURE__ */ m(U, { size: "sm", variant: "ghost", onClick: i, className: `${c} w-24 max-w-24`, children: [
1383
1390
  o,
1384
1391
  " ",
1385
1392
  u
1386
1393
  ] });
1387
1394
  }, qi = () => {
1388
- const { t: e } = we(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = xe(), [r, a] = K(!1), [i, o] = K(!1), [l, u] = K(null), { savePageAsync: f } = Ge(), [d, h] = K(!1), { data: g } = ie(), { mutate: A, isPending: T } = Ns(), { needTranslations: p } = Ge(), y = p(), { buttonText: P, buttonClassName: w, isPublished: O } = Q(() => {
1389
- const v = g && (g == null ? void 0 : g.online);
1395
+ const { t: e } = we(), { selectedLang: t } = Se(), { data: n } = be(), { data: s } = xe(), [r, a] = K(!1), [i, o] = K(!1), [c, u] = K(null), { savePageAsync: f } = Ge(), [d, h] = K(!1), { data: g } = ie(), { mutate: y, isPending: T } = Cs(), { needTranslations: _ } = Ge(), p = _(), { buttonText: A, buttonClassName: P, isPublished: O } = Q(() => {
1396
+ const w = g && (g == null ? void 0 : g.online);
1390
1397
  return {
1391
- buttonClassName: v ? "hover:bg-green-600 bg-green-500" : "",
1392
- isPublished: v,
1393
- buttonText: e(v ? "Published" : "Publish")
1398
+ buttonClassName: w ? "hover:bg-green-600 bg-green-500" : "",
1399
+ isPublished: w,
1400
+ buttonText: e(w ? "Published" : "Publish")
1394
1401
  };
1395
1402
  }, [g, e]), M = async () => {
1396
- if (y) {
1403
+ if (p) {
1397
1404
  h(!0);
1398
1405
  return;
1399
1406
  }
1400
1407
  L();
1401
1408
  }, L = () => {
1402
- const v = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
1403
- A({ ids: fs(v) }, { onSuccess: () => on("TOP_RIGHT") });
1409
+ const w = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
1410
+ y({ ids: fs(w) }, { onSuccess: () => ln("TOP_RIGHT") });
1404
1411
  }, pe = () => {
1405
1412
  h(!1), L();
1406
1413
  }, ye = async () => {
1407
1414
  h(!1), await f();
1408
- }, U = Q(() => Bt(s ?? [], "id"), [s]);
1415
+ }, B = Q(() => Bt(s ?? [], "id"), [s]);
1409
1416
  return /* @__PURE__ */ m(ge, { children: [
1410
1417
  /* @__PURE__ */ m("div", { className: "flex", children: [
1411
1418
  /* @__PURE__ */ m(
1412
- B,
1419
+ U,
1413
1420
  {
1414
1421
  size: "sm",
1415
1422
  onClick: M,
1416
1423
  disabled: T || !(g != null && g.id),
1417
- className: `relative flex items-center gap-1 overflow-hidden rounded-r-none text-white transition-all duration-300 ease-in-out ${w}`,
1424
+ className: `relative flex items-center gap-1 overflow-hidden rounded-r-none text-white transition-all duration-300 ease-in-out ${P}`,
1418
1425
  onMouseEnter: () => o(!0),
1419
1426
  onMouseLeave: () => o(!1),
1420
1427
  children: [
1421
- /* @__PURE__ */ c(
1428
+ /* @__PURE__ */ l(
1422
1429
  "span",
1423
1430
  {
1424
1431
  className: `flex items-center transition-transform duration-300 ease-in-out ${i ? "-translate-y-10" : ""}`,
1425
- children: O ? /* @__PURE__ */ c(Hn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Qn, { className: "h-4 w-4" })
1432
+ children: O ? /* @__PURE__ */ l(Hn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Qn, { className: "h-4 w-4" })
1426
1433
  }
1427
1434
  ),
1428
- /* @__PURE__ */ c(
1435
+ /* @__PURE__ */ l(
1429
1436
  "span",
1430
1437
  {
1431
1438
  className: `absolute inset-0 left-3 flex items-center transition-transform duration-300 ease-in-out ${i ? "" : "translate-y-10"}`,
1432
- children: O ? /* @__PURE__ */ c(Qn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Hn, { className: "h-4 w-4" })
1439
+ children: O ? /* @__PURE__ */ l(Qn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Hn, { className: "h-4 w-4" })
1433
1440
  }
1434
1441
  ),
1435
- /* @__PURE__ */ c("span", { children: P }),
1436
- t ? `(${Fn(t)})` : ""
1442
+ /* @__PURE__ */ l("span", { children: A }),
1443
+ t ? `(${qn(t)})` : ""
1437
1444
  ]
1438
1445
  }
1439
1446
  ),
1440
- /* @__PURE__ */ m(wn, { children: [
1441
- /* @__PURE__ */ c(bn, { asChild: !0, children: /* @__PURE__ */ c(
1442
- B,
1447
+ /* @__PURE__ */ m(bn, { children: [
1448
+ /* @__PURE__ */ l(In, { asChild: !0, children: /* @__PURE__ */ l(
1449
+ U,
1443
1450
  {
1444
1451
  size: "sm",
1445
1452
  disabled: T || !(g != null && g.id),
1446
- className: `rounded-l-none border-l border-white/50 px-2 text-white ${w}`,
1447
- children: /* @__PURE__ */ c(hn, { className: "h-4 w-4" })
1453
+ className: `rounded-l-none border-l border-white/50 px-2 text-white ${P}`,
1454
+ children: /* @__PURE__ */ l(gn, { className: "h-4 w-4" })
1448
1455
  }
1449
1456
  ) }),
1450
- /* @__PURE__ */ m(In, { align: "end", className: "w-52", children: [
1457
+ /* @__PURE__ */ m(Cn, { align: "end", className: "w-52", children: [
1451
1458
  /* @__PURE__ */ m(
1452
1459
  ue,
1453
1460
  {
1454
1461
  disabled: T,
1455
1462
  className: "cursor-pointer text-xs",
1456
- onClick: () => A({ ids: U }, { onSuccess: () => on("TOP_RIGHT") }),
1463
+ onClick: () => y({ ids: B }, { onSuccess: () => ln("TOP_RIGHT") }),
1457
1464
  children: [
1458
1465
  e("Publish"),
1459
1466
  " with translation pages"
@@ -1465,7 +1472,7 @@ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import(
1465
1472
  {
1466
1473
  disabled: T,
1467
1474
  className: "cursor-pointer text-xs",
1468
- onClick: () => A({ ids: [g == null ? void 0 : g.id] }, { onSuccess: () => on("TOP_RIGHT") }),
1475
+ onClick: () => y({ ids: [g == null ? void 0 : g.id] }, { onSuccess: () => ln("TOP_RIGHT") }),
1469
1476
  children: [
1470
1477
  e("Publish"),
1471
1478
  " page"
@@ -1479,14 +1486,14 @@ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import(
1479
1486
  O && /* @__PURE__ */ m(ue, { onClick: () => u(n), className: "cursor-pointer text-xs", children: [
1480
1487
  e("Unpublish"),
1481
1488
  " page ",
1482
- t ? `(${Fn(t)})` : ""
1489
+ t ? `(${qn(t)})` : ""
1483
1490
  ] })
1484
1491
  ] })
1485
1492
  ] })
1486
1493
  ] }),
1487
- /* @__PURE__ */ c(Oi, { showModal: r, onClose: () => a(!1) }),
1488
- l && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ri, { page: l, onClose: () => u(null) }) }),
1489
- d && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
1494
+ /* @__PURE__ */ l(Oi, { showModal: r, onClose: () => a(!1) }),
1495
+ c && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ri, { page: c, onClose: () => u(null) }) }),
1496
+ d && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
1490
1497
  Ui,
1491
1498
  {
1492
1499
  isOpen: d,
@@ -1498,13 +1505,13 @@ const Ri = F(() => import("./unpublish-page-CYmJyQH9.js")), Ui = F(() => import(
1498
1505
  ] });
1499
1506
  };
1500
1507
  function Ki() {
1501
- const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = vs(n);
1502
- return e || !s ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
1503
- /* @__PURE__ */ c(Ii, {}),
1504
- /* @__PURE__ */ c(an, { permission: ce.EDIT_THEME, children: /* @__PURE__ */ c(Mi, {}) }),
1505
- /* @__PURE__ */ c(Bi, {}),
1506
- /* @__PURE__ */ c(an, { permission: ce.SAVE_PAGE, children: /* @__PURE__ */ c(Fi, {}) }),
1507
- /* @__PURE__ */ c(an, { permission: ce.PUBLISH_PAGE, children: /* @__PURE__ */ c(qi, {}) })
1508
+ const { isLocked: e } = Ie(), [t] = le(), n = t.get("lang"), s = Ps(n);
1509
+ return e || !s ? /* @__PURE__ */ l("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
1510
+ /* @__PURE__ */ l(Ii, {}),
1511
+ /* @__PURE__ */ l(on, { permission: ce.EDIT_THEME, children: /* @__PURE__ */ l(Mi, {}) }),
1512
+ /* @__PURE__ */ l(Bi, {}),
1513
+ /* @__PURE__ */ l(on, { permission: ce.SAVE_PAGE, children: /* @__PURE__ */ l(Fi, {}) }),
1514
+ /* @__PURE__ */ l(on, { permission: ce.PUBLISH_PAGE, children: /* @__PURE__ */ l(qi, {}) })
1508
1515
  ] });
1509
1516
  }
1510
1517
  const Vi = ({
@@ -1516,21 +1523,21 @@ const Vi = ({
1516
1523
  setMarkAsTemplate: a,
1517
1524
  setUnmarkAsTemplate: i,
1518
1525
  children: o,
1519
- isLanguagePage: l
1526
+ isLanguagePage: c
1520
1527
  }) => {
1521
- const { t: u } = we(), { hasPermission: f } = ms(), { data: d } = Ce(), h = Q(() => re(d, { key: e.pageType }), [d, e.pageType]), g = Q(() => !!e.isTemplate, [e.isTemplate]), A = Q(() => !!(h != null && h.hasSlug), [h == null ? void 0 : h.hasSlug]);
1522
- return !f(ce.EDIT_PAGE) && !f(ce.DELETE_PAGE) && !f(ce.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(wn, { children: [
1523
- /* @__PURE__ */ c(bn, { asChild: !0, onClick: (p) => p.stopPropagation(), children: o }),
1524
- /* @__PURE__ */ m(In, { align: "center", className: "text-sm", children: [
1525
- f(ce.ADD_PAGE) && !l && /* @__PURE__ */ m(
1528
+ const { t: u } = we(), { hasPermission: f } = ms(), { data: d } = Ce(), h = Q(() => re(d, { key: e.pageType }), [d, e.pageType]), g = Q(() => !!e.isTemplate, [e.isTemplate]), y = Q(() => !!(h != null && h.hasSlug), [h == null ? void 0 : h.hasSlug]);
1529
+ return !f(ce.EDIT_PAGE) && !f(ce.DELETE_PAGE) && !f(ce.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(bn, { children: [
1530
+ /* @__PURE__ */ l(In, { asChild: !0, onClick: (_) => _.stopPropagation(), children: o }),
1531
+ /* @__PURE__ */ m(Cn, { align: "center", className: "text-sm", children: [
1532
+ f(ce.ADD_PAGE) && !c && /* @__PURE__ */ m(
1526
1533
  ue,
1527
1534
  {
1528
1535
  className: "flex cursor-pointer items-center gap-2",
1529
- onClick: (p) => {
1530
- p.stopPropagation(), t(e);
1536
+ onClick: (_) => {
1537
+ _.stopPropagation(), t(e);
1531
1538
  },
1532
1539
  children: [
1533
- /* @__PURE__ */ c(xa, { className: "size-3" }),
1540
+ /* @__PURE__ */ l(xa, { className: "size-3" }),
1534
1541
  "Duplicate page"
1535
1542
  ]
1536
1543
  }
@@ -1539,14 +1546,14 @@ const Vi = ({
1539
1546
  ue,
1540
1547
  {
1541
1548
  className: "flex cursor-pointer items-center gap-2",
1542
- onClick: (p) => {
1543
- p.stopPropagation(), n({
1549
+ onClick: (_) => {
1550
+ _.stopPropagation(), n({
1544
1551
  ...e,
1545
1552
  global: !(h != null && h.hasSlug)
1546
1553
  });
1547
1554
  },
1548
1555
  children: [
1549
- /* @__PURE__ */ c(Ra, { className: "size-3" }),
1556
+ /* @__PURE__ */ l(Ra, { className: "size-3" }),
1550
1557
  "Edit"
1551
1558
  ]
1552
1559
  }
@@ -1555,11 +1562,11 @@ const Vi = ({
1555
1562
  ue,
1556
1563
  {
1557
1564
  className: "flex cursor-pointer items-center gap-2",
1558
- onClick: (p) => {
1559
- p.stopPropagation(), s(e);
1565
+ onClick: (_) => {
1566
+ _.stopPropagation(), s(e);
1560
1567
  },
1561
1568
  children: [
1562
- /* @__PURE__ */ c(Ua, { className: "size-3" }),
1569
+ /* @__PURE__ */ l(Ua, { className: "size-3" }),
1563
1570
  u("Unpublish")
1564
1571
  ]
1565
1572
  }
@@ -1568,24 +1575,24 @@ const Vi = ({
1568
1575
  ue,
1569
1576
  {
1570
1577
  className: "flex cursor-pointer items-center gap-2",
1571
- onClick: (p) => {
1572
- p.stopPropagation(), r(e);
1578
+ onClick: (_) => {
1579
+ _.stopPropagation(), r(e);
1573
1580
  },
1574
1581
  children: [
1575
- /* @__PURE__ */ c(Ba, { className: "size-3" }),
1582
+ /* @__PURE__ */ l(Ba, { className: "size-3" }),
1576
1583
  u("Delete")
1577
1584
  ]
1578
1585
  }
1579
1586
  ),
1580
- f(ce.MARK_AS_TEMPLATE) && A && !l && /* @__PURE__ */ c(ge, { children: g ? /* @__PURE__ */ m(
1587
+ f(ce.MARK_AS_TEMPLATE) && y && !c && /* @__PURE__ */ l(ge, { children: g ? /* @__PURE__ */ m(
1581
1588
  ue,
1582
1589
  {
1583
1590
  className: "flex cursor-pointer items-center gap-2",
1584
- onClick: (p) => {
1585
- p.stopPropagation(), i(e);
1591
+ onClick: (_) => {
1592
+ _.stopPropagation(), i(e);
1586
1593
  },
1587
1594
  children: [
1588
- /* @__PURE__ */ c($n, { className: "size-3" }),
1595
+ /* @__PURE__ */ l($n, { className: "size-3" }),
1589
1596
  u("Unmark as template")
1590
1597
  ]
1591
1598
  }
@@ -1593,22 +1600,22 @@ const Vi = ({
1593
1600
  ue,
1594
1601
  {
1595
1602
  className: "flex cursor-pointer items-center gap-2",
1596
- onClick: (p) => {
1597
- p.stopPropagation(), a(e);
1603
+ onClick: (_) => {
1604
+ _.stopPropagation(), a(e);
1598
1605
  },
1599
1606
  children: [
1600
- /* @__PURE__ */ c($n, { className: "size-3" }),
1607
+ /* @__PURE__ */ l($n, { className: "size-3" }),
1601
1608
  u("Mark as template")
1602
1609
  ]
1603
1610
  }
1604
1611
  ) })
1605
1612
  ] })
1606
1613
  ] });
1607
- }, Hi = F(() => import("./add-new-page-C7Kw3sZO.js")), Qi = F(() => import("./delete-page-CyqJ6iqb.js")), $i = F(() => import("./duplicate-page-BGXDNCfU.js")), ji = F(() => import("./mark-as-template-BGe_QmNY.js")), zi = F(() => import("./unmark-as-template-B9xuxdYK.js")), Wi = F(() => import("./unpublish-page-CYmJyQH9.js")), Yi = () => {
1608
- const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, u] = K(null), [f, d] = K(null), { data: h, isFetching: g } = be(), { selectedLang: A, fallbackLang: T } = Se(), { data: p } = xe(), y = p == null ? void 0 : p.find((L) => L.lang === A), { isLocked: P } = Ie(), w = !(h != null && h.slug), [, O] = te(On);
1614
+ }, Hi = F(() => import("./add-new-page-CUtZhDvi.js")), Qi = F(() => import("./delete-page-BS10zPLU.js")), $i = F(() => import("./duplicate-page-C1r4cCIJ.js")), ji = F(() => import("./mark-as-template-CUHypMlj.js")), zi = F(() => import("./unmark-as-template-DlA879QF.js")), Wi = F(() => import("./unpublish-page-JzGl35pF.js")), Yi = () => {
1615
+ const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [c, u] = K(null), [f, d] = K(null), { data: h, isFetching: g } = be(), { selectedLang: y, fallbackLang: T } = Se(), { data: _ } = xe(), p = _ == null ? void 0 : _.find((L) => L.lang === y), { isLocked: A } = Ie(), P = !(h != null && h.slug), [, O] = te(Dn);
1609
1616
  if (!h) return null;
1610
1617
  const M = (L) => {
1611
- A.length > 0 && A !== T ? O({
1618
+ y.length > 0 && y !== T ? O({
1612
1619
  edit: !0,
1613
1620
  id: L == null ? void 0 : L.id,
1614
1621
  primaryPage: L == null ? void 0 : L.primaryPage
@@ -1616,26 +1623,26 @@ const Vi = ({
1616
1623
  };
1617
1624
  return /* @__PURE__ */ m(ge, { children: [
1618
1625
  /* @__PURE__ */ m("div", { className: "flex items-center justify-between rounded px-[2px] transition-colors duration-200", children: [
1619
- /* @__PURE__ */ c(Cs, { children: /* @__PURE__ */ c(
1620
- B,
1626
+ /* @__PURE__ */ l(Is, { children: /* @__PURE__ */ l(
1627
+ U,
1621
1628
  {
1622
1629
  className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
1623
1630
  variant: "ghost",
1624
- children: g ? /* @__PURE__ */ c(Ft, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
1625
- w ? /* @__PURE__ */ c(Ma, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Fa, { className: "mr-1 h-4 w-4" }),
1626
- V(y || h, "name") ?? ""
1631
+ children: g ? /* @__PURE__ */ l(Ft, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
1632
+ P ? /* @__PURE__ */ l(Ma, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ l(Fa, { className: "mr-1 h-4 w-4" }),
1633
+ V(p || h, "name") ?? ""
1627
1634
  ] })
1628
1635
  }
1629
1636
  ) }),
1630
- P ? /* @__PURE__ */ c(
1631
- B,
1637
+ A ? /* @__PURE__ */ l(
1638
+ U,
1632
1639
  {
1633
1640
  variant: "ghost",
1634
1641
  size: "icon",
1635
1642
  className: "h-7 w-7 cursor-not-allowed rounded opacity-50 hover:bg-transparent",
1636
- children: /* @__PURE__ */ c(jn, { className: "h-4 w-4" })
1643
+ children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" })
1637
1644
  }
1638
- ) : /* @__PURE__ */ c(
1645
+ ) : /* @__PURE__ */ l(
1639
1646
  Vi,
1640
1647
  {
1641
1648
  page: h,
@@ -1645,12 +1652,12 @@ const Vi = ({
1645
1652
  setDeletePage: (L) => t(L),
1646
1653
  setMarkAsTemplate: (L) => a(L),
1647
1654
  setUnmarkAsTemplate: (L) => o(L),
1648
- isLanguagePage: A.length > 0 && A !== T,
1649
- children: /* @__PURE__ */ c(B, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ c(jn, { className: "h-4 w-4" }) })
1655
+ isLanguagePage: y.length > 0 && y !== T,
1656
+ children: /* @__PURE__ */ l(U, { variant: "ghost", size: "icon", className: "h-7 w-7 rounded", children: /* @__PURE__ */ l(jn, { className: "h-4 w-4" }) })
1650
1657
  }
1651
1658
  )
1652
1659
  ] }),
1653
- f && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
1660
+ f && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
1654
1661
  Hi,
1655
1662
  {
1656
1663
  closePanel: () => d(null),
@@ -1660,20 +1667,20 @@ const Vi = ({
1660
1667
  setAddEditPage: d
1661
1668
  }
1662
1669
  ) }),
1663
- e && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Qi, { page: e, onClose: () => t(null) }) }),
1664
- n && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Wi, { page: n, onClose: () => s(null) }) }),
1665
- r && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(ji, { page: r, onClose: () => a(null) }) }),
1666
- i && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(zi, { page: i, onClose: () => o(null) }) }),
1667
- l && /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
1670
+ e && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Qi, { page: e, onClose: () => t(null) }) }),
1671
+ n && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Wi, { page: n, onClose: () => s(null) }) }),
1672
+ r && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(ji, { page: r, onClose: () => a(null) }) }),
1673
+ i && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(zi, { page: i, onClose: () => o(null) }) }),
1674
+ c && /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
1668
1675
  $i,
1669
1676
  {
1670
- page: l,
1677
+ page: c,
1671
1678
  onClose: () => u(null),
1672
1679
  closePanel: () => d(null)
1673
1680
  }
1674
1681
  ) })
1675
1682
  ] });
1676
- }, Ls = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(
1683
+ }, Ns = ({ children: e, className: t = "" }) => /* @__PURE__ */ l(
1677
1684
  "div",
1678
1685
  {
1679
1686
  className: Mt(
@@ -1682,60 +1689,60 @@ const Vi = ({
1682
1689
  ),
1683
1690
  children: e
1684
1691
  }
1685
- ), Ji = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Ls, { 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: [
1686
- /* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
1687
- /* @__PURE__ */ c("p", { className: "pt-2 text-center text-sm font-light text-gray-600", children: e ? "Please select a page from the list in the top header. This will enable you to edit the page." : "Please add a new page" })
1688
- ] }) }), Xi = F(() => import("./dynamic-page-selector-D0H0U30o.js")), Zi = () => {
1692
+ ), 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: [
1693
+ /* @__PURE__ */ l("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
1694
+ /* @__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" })
1695
+ ] }) }), Xi = F(() => import("./dynamic-page-selector-CjtnFkxO.js")), Zi = () => {
1689
1696
  const { dynamicPage: e, allLangPages: t, isFetching: n } = ai(), s = t.length > 0;
1690
1697
  return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
1691
- !e && /* @__PURE__ */ c(Ji, { hasDynamicPage: s }),
1692
- /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Xi, {}) })
1698
+ !e && /* @__PURE__ */ l(Ji, { hasDynamicPage: s }),
1699
+ /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Xi, {}) })
1693
1700
  ] });
1694
1701
  }, eo = () => {
1695
- const { data: e, isFetching: t } = be(), { data: n, isFetching: s } = ie(), r = V(n, "dynamic", !1), a = Nn(), i = Es("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, u = ci(), f = t || s, h = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
1702
+ const { data: e, isFetching: t } = be(), { data: n, isFetching: s } = ie(), r = V(n, "dynamic", !1), a = Ln(), i = jr("dynamic-page-selector"), o = e == null ? void 0 : e.slug, c = !o, u = ci(), f = t || s, h = (c ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
1696
1703
  return /* @__PURE__ */ m("div", { className: "relative flex items-center gap-x-1", children: [
1697
- /* @__PURE__ */ c(
1704
+ /* @__PURE__ */ l(
1698
1705
  "div",
1699
1706
  {
1700
1707
  className: Mt(
1701
1708
  "flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
1702
1709
  f && "max-w-0 overflow-hidden opacity-0"
1703
1710
  ),
1704
- children: /* @__PURE__ */ c(Yi, {})
1711
+ children: /* @__PURE__ */ l(Yi, {})
1705
1712
  }
1706
1713
  ),
1707
1714
  /* @__PURE__ */ m(
1708
1715
  "div",
1709
1716
  {
1710
1717
  className: Mt(
1711
- "flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (l ? " pr-2" : ""),
1718
+ "flex h-8 w-auto max-w-[600px] items-center rounded-md border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800" + (c ? " pr-2" : ""),
1712
1719
  f && "max-w-0 overflow-hidden opacity-0"
1713
1720
  ),
1714
1721
  children: [
1715
- /* @__PURE__ */ c(Pi, {}),
1722
+ /* @__PURE__ */ l(Pi, {}),
1716
1723
  /* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
1717
- /* @__PURE__ */ c(
1724
+ /* @__PURE__ */ l(
1718
1725
  "div",
1719
1726
  {
1720
- className: `w-full max-w-[200px] overflow-hidden overflow-ellipsis whitespace-nowrap pl-1 text-xs ${l ? "italic text-gray-400" : "font-mono text-gray-500"}`,
1727
+ className: `w-full max-w-[200px] overflow-hidden overflow-ellipsis whitespace-nowrap pl-1 text-xs ${c ? "italic text-gray-400" : "font-mono text-gray-500"}`,
1721
1728
  children: h === "/" ? /* @__PURE__ */ m("span", { className: "text-gray-900", children: [
1722
1729
  "/",
1723
- /* @__PURE__ */ c("span", { className: "text-[11px] font-light italic text-gray-400", children: "(Homepage)" })
1730
+ /* @__PURE__ */ l("span", { className: "text-[11px] font-light italic text-gray-400", children: "(Homepage)" })
1724
1731
  ] }) : h
1725
1732
  }
1726
1733
  ),
1727
- !l && /* @__PURE__ */ c("a", { href: u, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ c(qa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
1734
+ !c && /* @__PURE__ */ l("a", { href: u, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ l("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ l(qa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
1728
1735
  ] })
1729
1736
  ]
1730
1737
  }
1731
1738
  ),
1732
- r && i && /* @__PURE__ */ c(Zi, {})
1739
+ r && i && /* @__PURE__ */ l(Zi, {})
1733
1740
  ] });
1734
1741
  }, to = () => /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-between px-2", children: [
1735
- /* @__PURE__ */ c(vi, {}),
1736
- /* @__PURE__ */ c(eo, {}),
1737
- /* @__PURE__ */ c(Ki, {})
1738
- ] }), ks = () => {
1742
+ /* @__PURE__ */ l(vi, {}),
1743
+ /* @__PURE__ */ l(eo, {}),
1744
+ /* @__PURE__ */ l(Ki, {})
1745
+ ] }), Ls = () => {
1739
1746
  const e = W(), { data: t } = ae({
1740
1747
  queryKey: [E.AI_CONTEXT],
1741
1748
  initialData: "",
@@ -1749,7 +1756,7 @@ const Vi = ({
1749
1756
  [e]
1750
1757
  ), aiContext: t };
1751
1758
  }, no = () => {
1752
- const e = N(), { aiContext: t } = ks(), n = I();
1759
+ const e = N(), { aiContext: t } = Ls(), n = I();
1753
1760
  return j(
1754
1761
  async (s, r, a, i) => n(e, {
1755
1762
  action: E.ASK_AI,
@@ -1762,15 +1769,15 @@ const Vi = ({
1762
1769
  const s = Ja(n._type);
1763
1770
  return {
1764
1771
  ...s,
1765
- ...vn(n, [
1766
- ...Dr(s),
1772
+ ...wn(n, [
1773
+ ...Or(s),
1767
1774
  "_type",
1768
1775
  "_id",
1769
1776
  "_name",
1770
1777
  "_parent",
1771
1778
  "_bindings"
1772
1779
  ]),
1773
- ...Gr(n, (r, a) => xr(a, "_attrs")),
1780
+ ...Dr(n, (r, a) => Gr(a, "_attrs")),
1774
1781
  ...n
1775
1782
  };
1776
1783
  }
@@ -1781,28 +1788,28 @@ const Vi = ({
1781
1788
  if (!e || he(e)) return { blocks: [] };
1782
1789
  const n = hs(
1783
1790
  e,
1784
- (s) => !Or(s == null ? void 0 : s._type, "@chai/")
1791
+ (s) => !kr(s == null ? void 0 : s._type, "@chai/")
1785
1792
  );
1786
1793
  return { blocks: so(t, n) };
1787
1794
  }, [e, t]);
1788
1795
  }, ao = () => {
1789
- const [e] = le(), t = e.get("page"), n = N(), { setAiContext: s } = ks(), [, r] = Ln(), [, a] = li(), [, i] = zr(), o = I();
1796
+ const [e] = le(), t = e.get("page"), n = N(), { setAiContext: s } = Ls(), [, r] = kn(), [, a] = li(), [, i] = zr(), o = I();
1790
1797
  return ae({
1791
1798
  queryKey: [E.GET_DRAFT_PAGE, t],
1792
1799
  staleTime: 1 / 0,
1793
1800
  gcTime: 0,
1794
1801
  queryFn: async () => {
1795
1802
  i(!1);
1796
- const l = await o(n, {
1803
+ const c = await o(n, {
1797
1804
  action: E.GET_DRAFT_PAGE,
1798
1805
  data: { id: t, draft: !0 }
1799
- }), u = l.blocks ?? [], f = re(u, { _type: "@chai/ai-context" });
1800
- return s(V(f, "_value", "") || ""), r((d) => ({ ...d, lastSaved: l.lastSaved })), a(V(l, "metadata", {})), setTimeout(() => i(!0), 500), u;
1806
+ }), u = c.blocks ?? [], f = re(u, { _type: "@chai/ai-context" });
1807
+ return s(V(f, "_value", "") || ""), r((d) => ({ ...d, lastSaved: c.lastSaved })), a(V(c, "metadata", {})), setTimeout(() => i(!0), 500), u;
1801
1808
  },
1802
1809
  enabled: !!t
1803
1810
  });
1804
1811
  }, io = () => {
1805
- const { data: e } = ie(), { data: t } = be(), n = N(), s = I(), r = Dn(), a = Nn();
1812
+ const { data: e } = ie(), { data: t } = be(), n = N(), s = I(), r = Gn(), a = Ln();
1806
1813
  return ae({
1807
1814
  queryKey: [E.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
1808
1815
  staleTime: 1 / 0,
@@ -1937,7 +1944,7 @@ const Vi = ({
1937
1944
  action: "GET_LIBRARY_ITEM",
1938
1945
  data: { id: e.id }
1939
1946
  }), r = V(s, "html", ""), a = V(s, "blocks", []);
1940
- return Rr(a) ? a : Yr(r);
1947
+ return xr(a) ? a : Yr(r);
1941
1948
  },
1942
1949
  async getUILibraryBlocks(e, t, n) {
1943
1950
  try {
@@ -1971,7 +1978,7 @@ const Vi = ({
1971
1978
  }
1972
1979
  });
1973
1980
  }, co = () => {
1974
- const e = _s(), t = I(), { user: n } = Jt(), s = n == null ? void 0 : n.id;
1981
+ const e = Ss(), t = I(), { user: n } = Jt(), s = n == null ? void 0 : n.id;
1975
1982
  return ae({
1976
1983
  queryKey: [E.GET_ROLE_AND_PERMISSIONS, s],
1977
1984
  queryFn: () => t(e, {
@@ -1982,7 +1989,7 @@ const Vi = ({
1982
1989
  staleTime: 1 / 0
1983
1990
  });
1984
1991
  }, uo = () => {
1985
- const e = N(), t = I(), [, n] = Ln();
1992
+ const e = N(), t = I(), [, n] = kn();
1986
1993
  return { onSave: async ({
1987
1994
  page: r,
1988
1995
  blocks: a,
@@ -1993,8 +2000,8 @@ const Vi = ({
1993
2000
  action: "UPDATE_PAGE",
1994
2001
  data: { id: r, blocks: a, needTranslations: i }
1995
2002
  });
1996
- return o.code === "PAGE_LOCKED" ? !0 : (n((l) => ({
1997
- ...l,
2003
+ return o.code === "PAGE_LOCKED" ? !0 : (n((c) => ({
2004
+ ...c,
1998
2005
  lastSaved: (/* @__PURE__ */ new Date()).toISOString()
1999
2006
  })), o);
2000
2007
  } catch (o) {
@@ -2002,14 +2009,14 @@ const Vi = ({
2002
2009
  }
2003
2010
  } };
2004
2011
  }, fo = () => {
2005
- const { data: e } = Is(), t = N(), n = I();
2012
+ const { data: e } = bs(), t = N(), n = I();
2006
2013
  return {
2007
2014
  getPartialBlocks: j(async () => {
2008
2015
  const s = {};
2009
2016
  for (const r of e ?? [])
2010
2017
  he(r == null ? void 0 : r.slug) && (s[r.id] = {
2011
2018
  type: r.pageType,
2012
- name: Ur(r.name ?? r.slug),
2019
+ name: Rr(r.name ?? r.slug),
2013
2020
  description: ""
2014
2021
  });
2015
2022
  return s;
@@ -2030,26 +2037,26 @@ const Vi = ({
2030
2037
  [n, t]
2031
2038
  )
2032
2039
  };
2033
- }, ho = F(() => import("./ai-panel-content-BXnMSm-N.js")), Os = "chaibuilder-ai", go = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ c("svg", { className: e, viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ c("path", { d: "m198.39 128.986-52.16-19.216-19.216-52.16a16 16 0 0 0-30.028 0L77.77 109.77l-52.16 19.216a16 16 0 0 0 0 30.028l52.16 19.216 19.216 52.16a16 16 0 0 0 30.028 0l19.216-52.16 52.16-19.216a16 16 0 0 0 0-30.028m-57.69 34.23a15.97 15.97 0 0 0-9.483 9.483l-19.22 52.152-19.214-52.15a15.97 15.97 0 0 0-9.482-9.484l-52.152-19.22 52.15-19.214a15.97 15.97 0 0 0 9.484-9.482l19.22-52.152 19.214 52.15a15.97 15.97 0 0 0 9.482 9.484l52.152 19.22ZM144 40a8 8 0 0 1 8-8h16V16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 0 16h-16v16a8 8 0 0 1-16 0V48h-16a8 8 0 0 1-8-8m104 48a8 8 0 0 1-8 8h-8v8a8 8 0 0 1-16 0v-8h-8a8 8 0 0 1 0-16h8v-8a8 8 0 0 1 16 0v8h8a8 8 0 0 1 8 8" }) }), mo = ({ isActive: e, show: t }) => Es("enable-ai-chat-panel") ? /* @__PURE__ */ c(B, { size: "icon", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(go, { className: "h-4 w-4" }) }) : null, Eo = {
2034
- id: Os,
2040
+ }, ho = F(() => import("./ai-panel-content-r2jlUBoR.js")), ks = "chai-chat-panel", go = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ l("svg", { className: e, viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ l("path", { d: "m198.39 128.986-52.16-19.216-19.216-52.16a16 16 0 0 0-30.028 0L77.77 109.77l-52.16 19.216a16 16 0 0 0 0 30.028l52.16 19.216 19.216 52.16a16 16 0 0 0 30.028 0l19.216-52.16 52.16-19.216a16 16 0 0 0 0-30.028m-57.69 34.23a15.97 15.97 0 0 0-9.483 9.483l-19.22 52.152-19.214-52.15a15.97 15.97 0 0 0-9.482-9.484l-52.152-19.22 52.15-19.214a15.97 15.97 0 0 0 9.484-9.482l19.22-52.152 19.214 52.15a15.97 15.97 0 0 0 9.482 9.484l52.152 19.22ZM144 40a8 8 0 0 1 8-8h16V16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 0 16h-16v16a8 8 0 0 1-16 0V48h-16a8 8 0 0 1-8-8m104 48a8 8 0 0 1-8 8h-8v8a8 8 0 0 1-16 0v-8h-8a8 8 0 0 1 0-16h8v-8a8 8 0 0 1 16 0v8h8a8 8 0 0 1 8 8" }) }), mo = ({ isActive: e, show: t }) => /* @__PURE__ */ l(U, { size: "icon", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ l(go, { className: "h-4 w-4" }) }), Eo = {
2041
+ id: ks,
2035
2042
  label: "AI Assistant",
2036
2043
  button: mo,
2037
2044
  panel: ho,
2038
2045
  position: "top"
2039
- }, po = F(() => import("./lang-panel-8pMYi4Fn.js")), yo = ({ isActive: e, show: t }) => {
2046
+ }, po = F(() => import("./lang-panel-C8yx7PSU.js")), yo = ({ isActive: e, show: t }) => {
2040
2047
  const { data: n } = Re();
2041
- return !jt(n, "languages") || !V(n, "languages", []).length ? null : /* @__PURE__ */ c(B, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Ka, { className: "h-4 w-4" }) });
2042
- }, Ds = "lang", Ao = {
2043
- id: Ds,
2048
+ return !jt(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" }) });
2049
+ }, Os = "lang", Ao = {
2050
+ id: Os,
2044
2051
  label: "Languages",
2045
2052
  position: "top",
2046
2053
  panel: po,
2047
2054
  button: yo,
2048
2055
  view: "modal",
2049
2056
  width: 400
2050
- }, To = F(() => import("./seo-panel-DdE8DfMt.js")), Gs = "seo", So = ({ isActive: e, show: t }) => {
2057
+ }, To = F(() => import("./seo-panel-4KK4r-BP.js")), Ds = "seo", So = ({ isActive: e, show: t }) => {
2051
2058
  const { data: n } = ie(), s = Ni(n == null ? void 0 : n.pageType);
2052
- return !jt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(B, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
2059
+ return !jt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ l(U, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
2053
2060
  "svg",
2054
2061
  {
2055
2062
  stroke: "currentColor",
@@ -2060,42 +2067,42 @@ const Vi = ({
2060
2067
  strokeLinecap: "round",
2061
2068
  strokeLinejoin: "round",
2062
2069
  children: [
2063
- /* @__PURE__ */ c("path", { d: "M7 8h-3a1 1 0 0 0 -1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-3" }),
2064
- /* @__PURE__ */ c("path", { d: "M14 16h-4v-8h4" }),
2065
- /* @__PURE__ */ c("path", { d: "M11 12h2" }),
2066
- /* @__PURE__ */ c("path", { d: "M17 8m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z" })
2070
+ /* @__PURE__ */ l("path", { d: "M7 8h-3a1 1 0 0 0 -1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-3" }),
2071
+ /* @__PURE__ */ l("path", { d: "M14 16h-4v-8h4" }),
2072
+ /* @__PURE__ */ l("path", { d: "M11 12h2" }),
2073
+ /* @__PURE__ */ l("path", { d: "M17 8m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z" })
2067
2074
  ]
2068
2075
  }
2069
2076
  ) });
2070
2077
  }, _o = {
2071
- id: Gs,
2078
+ id: Ds,
2072
2079
  label: "SEO",
2073
2080
  panel: To,
2074
2081
  button: So,
2075
2082
  position: "top",
2076
2083
  width: 600,
2077
2084
  view: "modal"
2078
- }, xs = "user-info", Po = () => {
2085
+ }, Gs = "user-info", Po = () => {
2079
2086
  const { t: e } = we(), { user: t, logout: n } = Jt(), s = oe("onLogout", ds);
2080
2087
  return t ? /* @__PURE__ */ m(ia, { children: [
2081
- /* @__PURE__ */ c(oa, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(Va, { className: "h-4 w-4" }) }) }),
2088
+ /* @__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" }) }) }),
2082
2089
  /* @__PURE__ */ m(la, { className: "w-auto space-y-2 p-4", children: [
2083
- /* @__PURE__ */ c("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
2084
- /* @__PURE__ */ c("div", { className: "text-xs text-muted-foreground", children: t.email }),
2090
+ /* @__PURE__ */ l("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
2091
+ /* @__PURE__ */ l("div", { className: "text-xs text-muted-foreground", children: t.email }),
2085
2092
  /* @__PURE__ */ m(ca, { children: [
2086
- /* @__PURE__ */ c(ua, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
2093
+ /* @__PURE__ */ l(ua, { asChild: !0, children: /* @__PURE__ */ l(U, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
2087
2094
  /* @__PURE__ */ m(da, { children: [
2088
2095
  /* @__PURE__ */ m(fa, { children: [
2089
- /* @__PURE__ */ c(ha, { children: e("Are you sure you want to logout?") }),
2090
- /* @__PURE__ */ c(ga, { children: e("You will be redirected to the login page.") })
2096
+ /* @__PURE__ */ l(ha, { children: e("Are you sure you want to logout?") }),
2097
+ /* @__PURE__ */ l(ga, { children: e("You will be redirected to the login page.") })
2091
2098
  ] }),
2092
2099
  /* @__PURE__ */ m(ma, { children: [
2093
- /* @__PURE__ */ c(Ea, { children: e("Cancel") }),
2094
- /* @__PURE__ */ c(
2100
+ /* @__PURE__ */ l(Ea, { children: e("Cancel") }),
2101
+ /* @__PURE__ */ l(
2095
2102
  pa,
2096
2103
  {
2097
2104
  onClick: () => {
2098
- n(), Br(s) && s();
2105
+ n(), Ur(s) && s();
2099
2106
  },
2100
2107
  children: e("Logout")
2101
2108
  }
@@ -2106,14 +2113,14 @@ const Vi = ({
2106
2113
  ] })
2107
2114
  ] }) : null;
2108
2115
  }, vo = {
2109
- id: xs,
2116
+ id: Gs,
2110
2117
  label: "User Info",
2111
2118
  button: Po,
2112
2119
  position: "bottom"
2113
2120
  }, wo = () => {
2114
- Ct(Gs, _o), Ct(Ds, Ao), Ct(xs, vo), Ct(Os, Eo);
2121
+ Ct(Ds, _o), Ct(Os, Ao), Ct(Gs, vo), (localStorage.getItem("chai-feature-flags") ?? "").includes("enable-ai-chat-panel") && (console.log("enable-ai-chat-panel"), Ct(ks, Eo));
2115
2122
  };
2116
- var _ = {
2123
+ var v = {
2117
2124
  context: void 0,
2118
2125
  registry: void 0,
2119
2126
  effects: void 0,
@@ -2127,21 +2134,21 @@ var _ = {
2127
2134
  };
2128
2135
  function Jn(e) {
2129
2136
  const t = String(e), n = t.length - 1;
2130
- return _.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
2137
+ return v.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
2131
2138
  }
2132
2139
  function rt(e) {
2133
- _.context = e;
2140
+ v.context = e;
2134
2141
  }
2135
- var Rs = !1, bo = (e, t) => e === t, qt = Symbol("solid-proxy"), Us = typeof Proxy == "function", Bs = Symbol("solid-track"), Kt = {
2142
+ var xs = !1, bo = (e, t) => e === t, qt = Symbol("solid-proxy"), Rs = typeof Proxy == "function", Us = Symbol("solid-track"), Kt = {
2136
2143
  equals: bo
2137
- }, Ms = $s, _e = 1, Vt = 2, Fs = {
2144
+ }, Bs = Qs, _e = 1, Vt = 2, Ms = {
2138
2145
  owned: null,
2139
2146
  cleanups: null,
2140
2147
  context: null,
2141
2148
  owner: null
2142
- }, ln = {}, C = null, cn = null, Io = null, G = null, ee = null, Te = null, Xt = 0;
2149
+ }, cn = {}, C = null, un = null, Io = null, G = null, ee = null, Te = null, Xt = 0;
2143
2150
  function Oe(e, t) {
2144
- const n = G, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Fs : {
2151
+ const n = G, s = C, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Ms : {
2145
2152
  owned: null,
2146
2153
  cleanups: null,
2147
2154
  context: a ? a.context : null,
@@ -2161,8 +2168,8 @@ function q(e, t) {
2161
2168
  observers: null,
2162
2169
  observerSlots: null,
2163
2170
  comparator: t.equals || void 0
2164
- }, s = (r) => (typeof r == "function" && (r = r(n.value)), Qs(n, r));
2165
- return [Hs.bind(n), s];
2171
+ }, s = (r) => (typeof r == "function" && (r = r(n.value)), Hs(n, r));
2172
+ return [Vs.bind(n), s];
2166
2173
  }
2167
2174
  function Co(e, t, n) {
2168
2175
  const s = Zt(e, t, !0, _e);
@@ -2172,15 +2179,15 @@ function De(e, t, n) {
2172
2179
  const s = Zt(e, t, !1, _e);
2173
2180
  st(s);
2174
2181
  }
2175
- function qs(e, t, n) {
2176
- Ms = Uo;
2182
+ function Fs(e, t, n) {
2183
+ Bs = Uo;
2177
2184
  const s = Zt(e, t, !1, _e);
2178
2185
  (!n || !n.render) && (s.user = !0), Te ? Te.push(s) : st(s);
2179
2186
  }
2180
2187
  function J(e, t, n) {
2181
2188
  n = n ? Object.assign({}, Kt, n) : Kt;
2182
2189
  const s = Zt(e, t, !0, 0);
2183
- return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Hs.bind(s);
2190
+ return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, st(s), Vs.bind(s);
2184
2191
  }
2185
2192
  function No(e) {
2186
2193
  return e && typeof e == "object" && "then" in e;
@@ -2188,30 +2195,30 @@ function No(e) {
2188
2195
  function Lo(e, t, n) {
2189
2196
  let s, r, a;
2190
2197
  s = !0, r = e, a = {};
2191
- let i = null, o = ln, l = null, u = !1, f = "initialValue" in a, d = typeof s == "function" && J(s);
2192
- const h = /* @__PURE__ */ new Set(), [g, A] = (a.storage || q)(a.initialValue), [T, p] = q(void 0), [y, P] = q(void 0, {
2198
+ let i = null, o = cn, c = null, u = !1, f = "initialValue" in a, d = typeof s == "function" && J(s);
2199
+ const h = /* @__PURE__ */ new Set(), [g, y] = (a.storage || q)(a.initialValue), [T, _] = q(void 0), [p, A] = q(void 0, {
2193
2200
  equals: !1
2194
- }), [w, O] = q(f ? "ready" : "unresolved");
2195
- _.context && (l = _.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : _.load && _.has(l) && (o = _.load(l)));
2196
- function M(v, b, Y, $) {
2197
- return i === v && (i = null, $ !== void 0 && (f = !0), (v === o || b === o) && a.onHydrated && queueMicrotask(() => a.onHydrated($, {
2201
+ }), [P, O] = q(f ? "ready" : "unresolved");
2202
+ v.context && (c = v.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : v.load && v.has(c) && (o = v.load(c)));
2203
+ function M(w, b, Y, $) {
2204
+ return i === w && (i = null, $ !== void 0 && (f = !0), (w === o || b === o) && a.onHydrated && queueMicrotask(() => a.onHydrated($, {
2198
2205
  value: b
2199
- })), o = ln, L(b, Y)), b;
2206
+ })), o = cn, L(b, Y)), b;
2200
2207
  }
2201
- function L(v, b) {
2208
+ function L(w, b) {
2202
2209
  me(() => {
2203
- b === void 0 && A(() => v), O(b !== void 0 ? "errored" : f ? "ready" : "unresolved"), p(b);
2210
+ b === void 0 && y(() => w), O(b !== void 0 ? "errored" : f ? "ready" : "unresolved"), _(b);
2204
2211
  for (const Y of h.keys()) Y.decrement();
2205
2212
  h.clear();
2206
2213
  }, !1);
2207
2214
  }
2208
2215
  function pe() {
2209
- const v = Go, b = g(), Y = T();
2216
+ const w = Go, b = g(), Y = T();
2210
2217
  if (Y !== void 0 && !i) throw Y;
2211
2218
  return G && G.user, b;
2212
2219
  }
2213
- function ye(v = !0) {
2214
- if (v !== !1 && u) return;
2220
+ function ye(w = !0) {
2221
+ if (w !== !1 && u) return;
2215
2222
  u = !1;
2216
2223
  const b = d ? d() : s;
2217
2224
  if (b == null || b === !1) {
@@ -2219,11 +2226,11 @@ function Lo(e, t, n) {
2219
2226
  return;
2220
2227
  }
2221
2228
  let Y;
2222
- const $ = o !== ln ? o : Z(() => {
2229
+ const $ = o !== cn ? o : Z(() => {
2223
2230
  try {
2224
2231
  return r(b, {
2225
2232
  value: g(),
2226
- refetching: v
2233
+ refetching: w
2227
2234
  });
2228
2235
  } catch (de) {
2229
2236
  Y = de;
@@ -2235,35 +2242,35 @@ function Lo(e, t, n) {
2235
2242
  } else if (!No($))
2236
2243
  return M(i, $, void 0, b), $;
2237
2244
  return i = $, "v" in $ ? ($.s === 1 ? M(i, $.v, void 0, b) : M(i, void 0, Rt($.v), b), $) : (u = !0, queueMicrotask(() => u = !1), me(() => {
2238
- O(f ? "refreshing" : "pending"), P();
2245
+ O(f ? "refreshing" : "pending"), A();
2239
2246
  }, !1), $.then((de) => M($, de, void 0, b), (de) => M($, void 0, Rt(de), b)));
2240
2247
  }
2241
2248
  Object.defineProperties(pe, {
2242
2249
  state: {
2243
- get: () => w()
2250
+ get: () => P()
2244
2251
  },
2245
2252
  error: {
2246
2253
  get: () => T()
2247
2254
  },
2248
2255
  loading: {
2249
2256
  get() {
2250
- const v = w();
2251
- return v === "pending" || v === "refreshing";
2257
+ const w = P();
2258
+ return w === "pending" || w === "refreshing";
2252
2259
  }
2253
2260
  },
2254
2261
  latest: {
2255
2262
  get() {
2256
2263
  if (!f) return pe();
2257
- const v = T();
2258
- if (v && !i) throw v;
2264
+ const w = T();
2265
+ if (w && !i) throw w;
2259
2266
  return g();
2260
2267
  }
2261
2268
  }
2262
2269
  });
2263
- let U = C;
2264
- return d ? Co(() => (U = C, ye(!1))) : ye(!1), [pe, {
2265
- refetch: (v) => Ks(U, () => ye(v)),
2266
- mutate: A
2270
+ let B = C;
2271
+ return d ? Co(() => (B = C, ye(!1))) : ye(!1), [pe, {
2272
+ refetch: (w) => qs(B, () => ye(w)),
2273
+ mutate: y
2267
2274
  }];
2268
2275
  }
2269
2276
  function Wc(e) {
@@ -2290,12 +2297,12 @@ function Yc(e, t, n) {
2290
2297
  } else o = e();
2291
2298
  if (a)
2292
2299
  return a = !1, i;
2293
- const l = Z(() => t(o, r, i));
2294
- return r = o, l;
2300
+ const c = Z(() => t(o, r, i));
2301
+ return r = o, c;
2295
2302
  };
2296
2303
  }
2297
2304
  function ko(e) {
2298
- qs(() => Z(e));
2305
+ Fs(() => Z(e));
2299
2306
  }
2300
2307
  function lt(e) {
2301
2308
  return C === null || (C.cleanups === null ? C.cleanups = [e] : C.cleanups.push(e)), e;
@@ -2303,13 +2310,13 @@ function lt(e) {
2303
2310
  function Xn() {
2304
2311
  return C;
2305
2312
  }
2306
- function Ks(e, t) {
2313
+ function qs(e, t) {
2307
2314
  const n = C, s = G;
2308
2315
  C = e, G = null;
2309
2316
  try {
2310
2317
  return me(t, !0);
2311
2318
  } catch (r) {
2312
- xn(r);
2319
+ Rn(r);
2313
2320
  } finally {
2314
2321
  C = n, G = s;
2315
2322
  }
@@ -2338,15 +2345,15 @@ function eu(e) {
2338
2345
  let t;
2339
2346
  return C && C.context && (t = C.context[e.id]) !== void 0 ? t : e.defaultValue;
2340
2347
  }
2341
- function Vs(e) {
2342
- const t = J(e), n = J(() => gn(t()));
2348
+ function Ks(e) {
2349
+ const t = J(e), n = J(() => mn(t()));
2343
2350
  return n.toArray = () => {
2344
2351
  const s = n();
2345
2352
  return Array.isArray(s) ? s : s != null ? [s] : [];
2346
2353
  }, n;
2347
2354
  }
2348
2355
  var Go;
2349
- function Hs() {
2356
+ function Vs() {
2350
2357
  if (this.sources && this.state)
2351
2358
  if (this.state === _e) st(this);
2352
2359
  else {
@@ -2359,12 +2366,12 @@ function Hs() {
2359
2366
  }
2360
2367
  return this.value;
2361
2368
  }
2362
- function Qs(e, t, n) {
2369
+ function Hs(e, t, n) {
2363
2370
  let s = e.value;
2364
2371
  return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && me(() => {
2365
2372
  for (let r = 0; r < e.observers.length; r += 1) {
2366
- const a = e.observers[r], i = cn && cn.running;
2367
- i && cn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && js(a)), i || (a.state = _e);
2373
+ const a = e.observers[r], i = un && un.running;
2374
+ i && un.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? ee.push(a) : Te.push(a), a.observers && $s(a)), i || (a.state = _e);
2368
2375
  }
2369
2376
  if (ee.length > 1e6)
2370
2377
  throw ee = [], new Error();
@@ -2383,11 +2390,11 @@ function xo(e, t, n) {
2383
2390
  try {
2384
2391
  s = e.fn(t);
2385
2392
  } catch (i) {
2386
- return e.pure && (e.state = _e, e.owned && e.owned.forEach(ct), e.owned = null), e.updatedAt = n + 1, xn(i);
2393
+ return e.pure && (e.state = _e, e.owned && e.owned.forEach(ct), e.owned = null), e.updatedAt = n + 1, Rn(i);
2387
2394
  } finally {
2388
2395
  G = a, C = r;
2389
2396
  }
2390
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Qs(e, s) : e.value = s, e.updatedAt = n);
2397
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Hs(e, s) : e.value = s, e.updatedAt = n);
2391
2398
  }
2392
2399
  function Zt(e, t, n, s = _e, r) {
2393
2400
  const a = {
@@ -2403,7 +2410,7 @@ function Zt(e, t, n, s = _e, r) {
2403
2410
  context: C ? C.context : null,
2404
2411
  pure: n
2405
2412
  };
2406
- return C === null || C !== Fs && (C.owned ? C.owned.push(a) : C.owned = [a]), a;
2413
+ return C === null || C !== Ms && (C.owned ? C.owned.push(a) : C.owned = [a]), a;
2407
2414
  }
2408
2415
  function Ht(e) {
2409
2416
  if (e.state === 0) return;
@@ -2428,15 +2435,15 @@ function me(e, t) {
2428
2435
  const s = e();
2429
2436
  return Ro(n), s;
2430
2437
  } catch (s) {
2431
- n || (Te = null), ee = null, xn(s);
2438
+ n || (Te = null), ee = null, Rn(s);
2432
2439
  }
2433
2440
  }
2434
2441
  function Ro(e) {
2435
- if (ee && ($s(ee), ee = null), e) return;
2442
+ if (ee && (Qs(ee), ee = null), e) return;
2436
2443
  const t = Te;
2437
- Te = null, t.length && me(() => Ms(t), !1);
2444
+ Te = null, t.length && me(() => Bs(t), !1);
2438
2445
  }
2439
- function $s(e) {
2446
+ function Qs(e) {
2440
2447
  for (let t = 0; t < e.length; t++) Ht(e[t]);
2441
2448
  }
2442
2449
  function Uo(e) {
@@ -2445,14 +2452,14 @@ function Uo(e) {
2445
2452
  const s = e[t];
2446
2453
  s.user ? e[n++] = s : Ht(s);
2447
2454
  }
2448
- if (_.context) {
2449
- if (_.count) {
2450
- _.effects || (_.effects = []), _.effects.push(...e.slice(0, n));
2455
+ if (v.context) {
2456
+ if (v.count) {
2457
+ v.effects || (v.effects = []), v.effects.push(...e.slice(0, n));
2451
2458
  return;
2452
2459
  }
2453
2460
  rt();
2454
2461
  }
2455
- for (_.effects && (_.done || !_.count) && (e = [..._.effects, ...e], n += _.effects.length, delete _.effects), t = 0; t < n; t++) Ht(e[t]);
2462
+ for (v.effects && (v.done || !v.count) && (e = [...v.effects, ...e], n += v.effects.length, delete v.effects), t = 0; t < n; t++) Ht(e[t]);
2456
2463
  }
2457
2464
  function Qt(e, t) {
2458
2465
  e.state = 0;
@@ -2464,10 +2471,10 @@ function Qt(e, t) {
2464
2471
  }
2465
2472
  }
2466
2473
  }
2467
- function js(e) {
2474
+ function $s(e) {
2468
2475
  for (let t = 0; t < e.observers.length; t += 1) {
2469
2476
  const n = e.observers[t];
2470
- n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers && js(n));
2477
+ n.state || (n.state = Vt, n.pure ? ee.push(n) : Te.push(n), n.observers && $s(n));
2471
2478
  }
2472
2479
  }
2473
2480
  function ct(e) {
@@ -2499,15 +2506,15 @@ function Rt(e) {
2499
2506
  cause: e
2500
2507
  });
2501
2508
  }
2502
- function xn(e, t = C) {
2509
+ function Rn(e, t = C) {
2503
2510
  throw Rt(e);
2504
2511
  }
2505
- function gn(e) {
2506
- if (typeof e == "function" && !e.length) return gn(e());
2512
+ function mn(e) {
2513
+ if (typeof e == "function" && !e.length) return mn(e());
2507
2514
  if (Array.isArray(e)) {
2508
2515
  const t = [];
2509
2516
  for (let n = 0; n < e.length; n++) {
2510
- const s = gn(e[n]);
2517
+ const s = mn(e[n]);
2511
2518
  Array.isArray(s) ? t.push.apply(t, s) : t.push(s);
2512
2519
  }
2513
2520
  return t;
@@ -2520,75 +2527,75 @@ function Bo(e, t) {
2520
2527
  return De(() => r = Z(() => (C.context = {
2521
2528
  ...C.context,
2522
2529
  [e]: s.value
2523
- }, Vs(() => s.children))), void 0), r;
2530
+ }, Ks(() => s.children))), void 0), r;
2524
2531
  };
2525
2532
  }
2526
- var mn = Symbol("fallback");
2533
+ var En = Symbol("fallback");
2527
2534
  function $t(e) {
2528
2535
  for (let t = 0; t < e.length; t++) e[t]();
2529
2536
  }
2530
2537
  function Mo(e, t, n = {}) {
2531
2538
  let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
2532
2539
  return lt(() => $t(a)), () => {
2533
- let l = e() || [], u = l.length, f, d;
2534
- return l[Bs], Z(() => {
2535
- let g, A, T, p, y, P, w, O, M;
2540
+ let c = e() || [], u = c.length, f, d;
2541
+ return c[Us], Z(() => {
2542
+ let g, y, T, _, p, A, P, O, M;
2536
2543
  if (u === 0)
2537
- i !== 0 && ($t(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [mn], r[0] = Oe((L) => (a[0] = L, n.fallback())), i = 1);
2544
+ i !== 0 && ($t(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [En], r[0] = Oe((L) => (a[0] = L, n.fallback())), i = 1);
2538
2545
  else if (i === 0) {
2539
2546
  for (r = new Array(u), d = 0; d < u; d++)
2540
- s[d] = l[d], r[d] = Oe(h);
2547
+ s[d] = c[d], r[d] = Oe(h);
2541
2548
  i = u;
2542
2549
  } else {
2543
- for (T = new Array(u), p = new Array(u), o && (y = new Array(u)), P = 0, w = Math.min(i, u); P < w && s[P] === l[P]; P++) ;
2544
- for (w = i - 1, O = u - 1; w >= P && O >= P && s[w] === l[O]; w--, O--)
2545
- T[O] = r[w], p[O] = a[w], o && (y[O] = o[w]);
2546
- for (g = /* @__PURE__ */ new Map(), A = new Array(O + 1), d = O; d >= P; d--)
2547
- M = l[d], f = g.get(M), A[d] = f === void 0 ? -1 : f, g.set(M, d);
2548
- for (f = P; f <= w; f++)
2549
- M = s[f], d = g.get(M), d !== void 0 && d !== -1 ? (T[d] = r[f], p[d] = a[f], o && (y[d] = o[f]), d = A[d], g.set(M, d)) : a[f]();
2550
- for (d = P; d < u; d++)
2551
- d in T ? (r[d] = T[d], a[d] = p[d], o && (o[d] = y[d], o[d](d))) : r[d] = Oe(h);
2552
- r = r.slice(0, i = u), s = l.slice(0);
2550
+ for (T = new Array(u), _ = new Array(u), o && (p = new Array(u)), A = 0, P = Math.min(i, u); A < P && s[A] === c[A]; A++) ;
2551
+ for (P = i - 1, O = u - 1; P >= A && O >= A && s[P] === c[O]; P--, O--)
2552
+ T[O] = r[P], _[O] = a[P], o && (p[O] = o[P]);
2553
+ for (g = /* @__PURE__ */ new Map(), y = new Array(O + 1), d = O; d >= A; d--)
2554
+ M = c[d], f = g.get(M), y[d] = f === void 0 ? -1 : f, g.set(M, d);
2555
+ for (f = A; f <= P; f++)
2556
+ M = s[f], d = g.get(M), d !== void 0 && d !== -1 ? (T[d] = r[f], _[d] = a[f], o && (p[d] = o[f]), d = y[d], g.set(M, d)) : a[f]();
2557
+ for (d = A; d < u; d++)
2558
+ d in T ? (r[d] = T[d], a[d] = _[d], o && (o[d] = p[d], o[d](d))) : r[d] = Oe(h);
2559
+ r = r.slice(0, i = u), s = c.slice(0);
2553
2560
  }
2554
2561
  return r;
2555
2562
  });
2556
2563
  function h(g) {
2557
2564
  if (a[d] = g, o) {
2558
- const [A, T] = q(d);
2559
- return o[d] = T, t(l[d], A);
2565
+ const [y, T] = q(d);
2566
+ return o[d] = T, t(c[d], y);
2560
2567
  }
2561
- return t(l[d]);
2568
+ return t(c[d]);
2562
2569
  }
2563
2570
  };
2564
2571
  }
2565
2572
  function Fo(e, t, n = {}) {
2566
- let s = [], r = [], a = [], i = [], o = 0, l;
2573
+ let s = [], r = [], a = [], i = [], o = 0, c;
2567
2574
  return lt(() => $t(a)), () => {
2568
2575
  const u = e() || [], f = u.length;
2569
- return u[Bs], Z(() => {
2576
+ return u[Us], Z(() => {
2570
2577
  if (f === 0)
2571
- 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;
2572
- for (s[0] === mn && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < f; l++)
2573
- l < s.length && s[l] !== u[l] ? i[l](() => u[l]) : l >= s.length && (r[l] = Oe(d));
2574
- for (; l < s.length; l++)
2575
- a[l]();
2578
+ return o !== 0 && ($t(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [En], r[0] = Oe((h) => (a[0] = h, n.fallback())), o = 1), r;
2579
+ for (s[0] === En && (a[0](), a = [], s = [], r = [], o = 0), c = 0; c < f; c++)
2580
+ c < s.length && s[c] !== u[c] ? i[c](() => u[c]) : c >= s.length && (r[c] = Oe(d));
2581
+ for (; c < s.length; c++)
2582
+ a[c]();
2576
2583
  return o = i.length = a.length = f, s = u.slice(0), r = r.slice(0, o);
2577
2584
  });
2578
2585
  function d(h) {
2579
- a[l] = h;
2580
- const [g, A] = q(u[l]);
2581
- return i[l] = A, t(g, l);
2586
+ a[c] = h;
2587
+ const [g, y] = q(u[c]);
2588
+ return i[c] = y, t(g, c);
2582
2589
  }
2583
2590
  };
2584
2591
  }
2585
- function zs(e, t) {
2592
+ function js(e, t) {
2586
2593
  return Z(() => e(t || {}));
2587
2594
  }
2588
2595
  function kt() {
2589
2596
  return !0;
2590
2597
  }
2591
- var En = {
2598
+ var pn = {
2592
2599
  get(e, t, n) {
2593
2600
  return t === qt ? n : e.get(t);
2594
2601
  },
@@ -2612,7 +2619,7 @@ var En = {
2612
2619
  return e.keys();
2613
2620
  }
2614
2621
  };
2615
- function un(e) {
2622
+ function dn(e) {
2616
2623
  return (e = typeof e == "function" ? e() : e) ? e : {};
2617
2624
  }
2618
2625
  function qo() {
@@ -2621,38 +2628,38 @@ function qo() {
2621
2628
  if (n !== void 0) return n;
2622
2629
  }
2623
2630
  }
2624
- function Ws(...e) {
2631
+ function zs(...e) {
2625
2632
  let t = !1;
2626
2633
  for (let i = 0; i < e.length; i++) {
2627
2634
  const o = e[i];
2628
2635
  t = t || !!o && qt in o, e[i] = typeof o == "function" ? (t = !0, J(o)) : o;
2629
2636
  }
2630
- if (Us && t)
2637
+ if (Rs && t)
2631
2638
  return new Proxy({
2632
2639
  get(i) {
2633
2640
  for (let o = e.length - 1; o >= 0; o--) {
2634
- const l = un(e[o])[i];
2635
- if (l !== void 0) return l;
2641
+ const c = dn(e[o])[i];
2642
+ if (c !== void 0) return c;
2636
2643
  }
2637
2644
  },
2638
2645
  has(i) {
2639
2646
  for (let o = e.length - 1; o >= 0; o--)
2640
- if (i in un(e[o])) return !0;
2647
+ if (i in dn(e[o])) return !0;
2641
2648
  return !1;
2642
2649
  },
2643
2650
  keys() {
2644
2651
  const i = [];
2645
- for (let o = 0; o < e.length; o++) i.push(...Object.keys(un(e[o])));
2652
+ for (let o = 0; o < e.length; o++) i.push(...Object.keys(dn(e[o])));
2646
2653
  return [...new Set(i)];
2647
2654
  }
2648
- }, En);
2655
+ }, pn);
2649
2656
  const n = {}, s = /* @__PURE__ */ Object.create(null);
2650
2657
  for (let i = e.length - 1; i >= 0; i--) {
2651
2658
  const o = e[i];
2652
2659
  if (!o) continue;
2653
- const l = Object.getOwnPropertyNames(o);
2654
- for (let u = l.length - 1; u >= 0; u--) {
2655
- const f = l[u];
2660
+ const c = Object.getOwnPropertyNames(o);
2661
+ for (let u = c.length - 1; u >= 0; u--) {
2662
+ const f = c[u];
2656
2663
  if (f === "__proto__" || f === "constructor") continue;
2657
2664
  const d = Object.getOwnPropertyDescriptor(o, f);
2658
2665
  if (!s[f])
@@ -2669,13 +2676,13 @@ function Ws(...e) {
2669
2676
  }
2670
2677
  const r = {}, a = Object.keys(s);
2671
2678
  for (let i = a.length - 1; i >= 0; i--) {
2672
- const o = a[i], l = s[o];
2673
- l && l.get ? Object.defineProperty(r, o, l) : r[o] = l ? l.value : void 0;
2679
+ const o = a[i], c = s[o];
2680
+ c && c.get ? Object.defineProperty(r, o, c) : r[o] = c ? c.value : void 0;
2674
2681
  }
2675
2682
  return r;
2676
2683
  }
2677
2684
  function Ko(e, ...t) {
2678
- if (Us && qt in e) {
2685
+ if (Rs && qt in e) {
2679
2686
  const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
2680
2687
  get(o) {
2681
2688
  return i.includes(o) ? e[o] : void 0;
@@ -2686,7 +2693,7 @@ function Ko(e, ...t) {
2686
2693
  keys() {
2687
2694
  return i.filter((o) => o in e);
2688
2695
  }
2689
- }, En));
2696
+ }, pn));
2690
2697
  return a.push(new Proxy({
2691
2698
  get(i) {
2692
2699
  return r.has(i) ? void 0 : e[i];
@@ -2697,47 +2704,47 @@ function Ko(e, ...t) {
2697
2704
  keys() {
2698
2705
  return Object.keys(e).filter((i) => !r.has(i));
2699
2706
  }
2700
- }, En)), a;
2707
+ }, pn)), a;
2701
2708
  }
2702
2709
  const n = {}, s = t.map(() => ({}));
2703
2710
  for (const r of Object.getOwnPropertyNames(e)) {
2704
2711
  const a = Object.getOwnPropertyDescriptor(e, r), i = !a.get && !a.set && a.enumerable && a.writable && a.configurable;
2705
- let o = !1, l = 0;
2712
+ let o = !1, c = 0;
2706
2713
  for (const u of t)
2707
- u.includes(r) && (o = !0, i ? s[l][r] = a.value : Object.defineProperty(s[l], r, a)), ++l;
2714
+ u.includes(r) && (o = !0, i ? s[c][r] = a.value : Object.defineProperty(s[c], r, a)), ++c;
2708
2715
  o || (i ? n[r] = a.value : Object.defineProperty(n, r, a));
2709
2716
  }
2710
2717
  return [...s, n];
2711
2718
  }
2712
- function Ys(e) {
2719
+ function Ws(e) {
2713
2720
  let t, n;
2714
2721
  const s = (r) => {
2715
- const a = _.context;
2722
+ const a = v.context;
2716
2723
  if (a) {
2717
- const [o, l] = q();
2718
- _.count || (_.count = 0), _.count++, (n || (n = e())).then((u) => {
2719
- !_.done && rt(a), _.count--, l(() => u.default), rt();
2724
+ const [o, c] = q();
2725
+ v.count || (v.count = 0), v.count++, (n || (n = e())).then((u) => {
2726
+ !v.done && rt(a), v.count--, c(() => u.default), rt();
2720
2727
  }), t = o;
2721
2728
  } else if (!t) {
2722
- const [o] = Lo(() => (n || (n = e())).then((l) => l.default));
2729
+ const [o] = Lo(() => (n || (n = e())).then((c) => c.default));
2723
2730
  t = o;
2724
2731
  }
2725
2732
  let i;
2726
2733
  return J(() => (i = t()) ? Z(() => {
2727
- if (!a || _.done) return i(r);
2728
- const o = _.context;
2734
+ if (!a || v.done) return i(r);
2735
+ const o = v.context;
2729
2736
  rt(a);
2730
- const l = i(r);
2731
- return rt(o), l;
2737
+ const c = i(r);
2738
+ return rt(o), c;
2732
2739
  }) : "");
2733
2740
  };
2734
2741
  return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
2735
2742
  }
2736
2743
  var Vo = 0;
2737
2744
  function tu() {
2738
- return _.context ? _.getNextContextId() : `cl-${Vo++}`;
2745
+ return v.context ? v.getNextContextId() : `cl-${Vo++}`;
2739
2746
  }
2740
- var Js = (e) => `Stale read from <${e}>.`;
2747
+ var Ys = (e) => `Stale read from <${e}>.`;
2741
2748
  function nu(e) {
2742
2749
  const t = "fallback" in e && {
2743
2750
  fallback: () => e.fallback
@@ -2759,7 +2766,7 @@ function ru(e) {
2759
2766
  if (r) {
2760
2767
  const a = e.children;
2761
2768
  return typeof a == "function" && a.length > 0 ? Z(() => a(t ? r : () => {
2762
- if (!Z(s)) throw Js("Show");
2769
+ if (!Z(s)) throw Ys("Show");
2763
2770
  return n();
2764
2771
  })) : a;
2765
2772
  }
@@ -2767,15 +2774,15 @@ function ru(e) {
2767
2774
  }, void 0, void 0);
2768
2775
  }
2769
2776
  function au(e) {
2770
- const t = Vs(() => e.children), n = J(() => {
2777
+ const t = Ks(() => e.children), n = J(() => {
2771
2778
  const s = t(), r = Array.isArray(s) ? s : [s];
2772
2779
  let a = () => {
2773
2780
  };
2774
2781
  for (let i = 0; i < r.length; i++) {
2775
- const o = i, l = r[i], u = a, f = J(() => u() ? void 0 : l.when, void 0, void 0), d = l.keyed ? f : J(f, void 0, {
2782
+ const o = i, c = r[i], u = a, f = J(() => u() ? void 0 : c.when, void 0, void 0), d = c.keyed ? f : J(f, void 0, {
2776
2783
  equals: (h, g) => !h == !g
2777
2784
  });
2778
- a = () => u() || (d() ? [o, f, l] : void 0);
2785
+ a = () => u() || (d() ? [o, f, c] : void 0);
2779
2786
  }
2780
2787
  return a;
2781
2788
  });
@@ -2785,7 +2792,7 @@ function au(e) {
2785
2792
  const [r, a, i] = s, o = i.children;
2786
2793
  return typeof o == "function" && o.length > 0 ? Z(() => o(i.keyed ? a() : () => {
2787
2794
  var u;
2788
- if (((u = Z(n)()) == null ? void 0 : u[0]) !== r) throw Js("Match");
2795
+ if (((u = Z(n)()) == null ? void 0 : u[0]) !== r) throw Ys("Match");
2789
2796
  return a();
2790
2797
  })) : o;
2791
2798
  }, void 0, void 0);
@@ -2912,7 +2919,7 @@ var Yo = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
2912
2919
  xml: "http://www.w3.org/XML/1998/namespace"
2913
2920
  }, ou = (e) => J(() => e());
2914
2921
  function Zo(e, t, n) {
2915
- let s = n.length, r = t.length, a = s, i = 0, o = 0, l = t[r - 1].nextSibling, u = null;
2922
+ let s = n.length, r = t.length, a = s, i = 0, o = 0, c = t[r - 1].nextSibling, u = null;
2916
2923
  for (; i < r || o < a; ) {
2917
2924
  if (t[i] === n[o]) {
2918
2925
  i++, o++;
@@ -2921,7 +2928,7 @@ function Zo(e, t, n) {
2921
2928
  for (; t[r - 1] === n[a - 1]; )
2922
2929
  r--, a--;
2923
2930
  if (r === i) {
2924
- const f = a < s ? o ? n[o - 1].nextSibling : n[a - o] : l;
2931
+ const f = a < s ? o ? n[o - 1].nextSibling : n[a - o] : c;
2925
2932
  for (; o < a; ) e.insertBefore(n[o++], f);
2926
2933
  } else if (a === o)
2927
2934
  for (; i < r; )
@@ -2942,8 +2949,8 @@ function Zo(e, t, n) {
2942
2949
  for (; ++d < r && d < a && !((g = u.get(t[d])) == null || g !== f + h); )
2943
2950
  h++;
2944
2951
  if (h > f - o) {
2945
- const A = t[i];
2946
- for (; o < f; ) e.insertBefore(n[o++], A);
2952
+ const y = t[i];
2953
+ for (; o < f; ) e.insertBefore(n[o++], y);
2947
2954
  } else e.replaceChild(n[o++], t[i++]);
2948
2955
  } else i++;
2949
2956
  else t[i++].remove();
@@ -2951,10 +2958,10 @@ function Zo(e, t, n) {
2951
2958
  }
2952
2959
  }
2953
2960
  var it = "_$DX_DELEGATE";
2954
- function Xs(e, t, n, s = {}) {
2961
+ function Js(e, t, n, s = {}) {
2955
2962
  let r;
2956
2963
  return Oe((a) => {
2957
- r = a, t === document ? e() : yn(t, e(), t.firstChild ? null : void 0, n);
2964
+ r = a, t === document ? e() : An(t, e(), t.firstChild ? null : void 0, n);
2958
2965
  }, s.owner), () => {
2959
2966
  r(), t.textContent = "";
2960
2967
  };
@@ -2971,16 +2978,16 @@ function el(e, t = window.document) {
2971
2978
  const n = t[it] || (t[it] = /* @__PURE__ */ new Set());
2972
2979
  for (let s = 0, r = e.length; s < r; s++) {
2973
2980
  const a = e[s];
2974
- n.has(a) || (n.add(a), t.addEventListener(a, Zs));
2981
+ n.has(a) || (n.add(a), t.addEventListener(a, Xs));
2975
2982
  }
2976
2983
  }
2977
2984
  function cu(e = window.document) {
2978
2985
  if (e[it]) {
2979
- for (let t of e[it].keys()) e.removeEventListener(t, Zs);
2986
+ for (let t of e[it].keys()) e.removeEventListener(t, Xs);
2980
2987
  delete e[it];
2981
2988
  }
2982
2989
  }
2983
- function pn(e, t, n) {
2990
+ function yn(e, t, n) {
2984
2991
  Ue(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
2985
2992
  }
2986
2993
  function tl(e, t, n, s) {
@@ -3008,13 +3015,13 @@ function al(e, t, n = {}) {
3008
3015
  !o || o === "undefined" || t[o] || (Zn(e, o, !1), delete n[o]);
3009
3016
  }
3010
3017
  for (a = 0, i = s.length; a < i; a++) {
3011
- const o = s[a], l = !!t[o];
3012
- !o || o === "undefined" || n[o] === l || !l || (Zn(e, o, !0), n[o] = l);
3018
+ const o = s[a], c = !!t[o];
3019
+ !o || o === "undefined" || n[o] === c || !c || (Zn(e, o, !0), n[o] = c);
3013
3020
  }
3014
3021
  return n;
3015
3022
  }
3016
3023
  function il(e, t, n) {
3017
- if (!t) return n ? pn(e, "style") : t;
3024
+ if (!t) return n ? yn(e, "style") : t;
3018
3025
  const s = e.style;
3019
3026
  if (typeof t == "string") return s.cssText = t;
3020
3027
  typeof n == "string" && (s.cssText = n = void 0), n || (n = {}), t || (t = {});
@@ -3032,7 +3039,7 @@ function ol(e, t = {}, n, s) {
3032
3039
  function ll(e, t, n) {
3033
3040
  return Z(() => e(t, n));
3034
3041
  }
3035
- function yn(e, t, n, s) {
3042
+ function An(e, t, n, s) {
3036
3043
  if (n !== void 0 && !s && (s = []), typeof t != "function") return ut(e, t, s, n);
3037
3044
  De((r) => ut(e, t(), r, n), s);
3038
3045
  }
@@ -3052,10 +3059,10 @@ function cl(e, t, n, s, r = {}, a = !1) {
3052
3059
  }
3053
3060
  function ul(e) {
3054
3061
  let t, n;
3055
- return !Ue() || !(t = _.registry.get(n = fl())) ? e() : (_.completed && _.completed.add(t), _.registry.delete(n), t);
3062
+ return !Ue() || !(t = v.registry.get(n = fl())) ? e() : (v.completed && v.completed.add(t), v.registry.delete(n), t);
3056
3063
  }
3057
3064
  function Ue(e) {
3058
- return !!_.context && !_.done && (!e || e.isConnected);
3065
+ return !!v.context && !v.done && (!e || e.isConnected);
3059
3066
  }
3060
3067
  function dl(e) {
3061
3068
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
@@ -3065,7 +3072,7 @@ function Zn(e, t, n) {
3065
3072
  for (let r = 0, a = s.length; r < a; r++) e.classList.toggle(s[r], n);
3066
3073
  }
3067
3074
  function es(e, t, n, s, r, a, i) {
3068
- let o, l, u, f, d;
3075
+ let o, c, u, f, d;
3069
3076
  if (t === "style") return il(e, n, s);
3070
3077
  if (t === "classList") return al(e, n, s);
3071
3078
  if (n === s) return s;
@@ -3080,37 +3087,37 @@ function es(e, t, n, s, r, a, i) {
3080
3087
  } else if (t.slice(0, 2) === "on") {
3081
3088
  const h = t.slice(2).toLowerCase(), g = Yo.has(h);
3082
3089
  if (!g && s) {
3083
- const A = Array.isArray(s) ? s[0] : s;
3084
- e.removeEventListener(h, A);
3090
+ const y = Array.isArray(s) ? s[0] : s;
3091
+ e.removeEventListener(h, y);
3085
3092
  }
3086
3093
  (g || n) && (rl(e, h, n, g), g && el([h]));
3087
3094
  } else if (t.slice(0, 5) === "attr:")
3088
- pn(e, t.slice(5), n);
3095
+ yn(e, t.slice(5), n);
3089
3096
  else if (t.slice(0, 5) === "bool:")
3090
3097
  nl(e, t.slice(5), n);
3091
- else if ((d = t.slice(0, 5) === "prop:") || (u = $o.has(t)) || !r && ((f = Wo(t, e.tagName)) || (l = Qo.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
3098
+ else if ((d = t.slice(0, 5) === "prop:") || (u = $o.has(t)) || !r && ((f = Wo(t, e.tagName)) || (c = Qo.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
3092
3099
  if (d)
3093
- t = t.slice(5), l = !0;
3100
+ t = t.slice(5), c = !0;
3094
3101
  else if (Ue(e)) return n;
3095
- t === "class" || t === "className" ? sl(e, n) : o && !l && !u ? e[dl(t)] = n : e[f || t] = n;
3102
+ t === "class" || t === "className" ? sl(e, n) : o && !c && !u ? e[dl(t)] = n : e[f || t] = n;
3096
3103
  } else {
3097
3104
  const h = r && t.indexOf(":") > -1 && Xo[t.split(":")[0]];
3098
- h ? tl(e, h, t, n) : pn(e, jo[t] || t, n);
3105
+ h ? tl(e, h, t, n) : yn(e, jo[t] || t, n);
3099
3106
  }
3100
3107
  return n;
3101
3108
  }
3102
- function Zs(e) {
3103
- if (_.registry && _.events && _.events.find(([l, u]) => u === e))
3109
+ function Xs(e) {
3110
+ if (v.registry && v.events && v.events.find(([c, u]) => u === e))
3104
3111
  return;
3105
3112
  let t = e.target;
3106
- const n = `$$${e.type}`, s = e.target, r = e.currentTarget, a = (l) => Object.defineProperty(e, "target", {
3113
+ const n = `$$${e.type}`, s = e.target, r = e.currentTarget, a = (c) => Object.defineProperty(e, "target", {
3107
3114
  configurable: !0,
3108
- value: l
3115
+ value: c
3109
3116
  }), i = () => {
3110
- const l = t[n];
3111
- if (l && !t.disabled) {
3117
+ const c = t[n];
3118
+ if (c && !t.disabled) {
3112
3119
  const u = t[`${n}Data`];
3113
- if (u !== void 0 ? l.call(t, u, e) : l.call(t, e), e.cancelBubble) return;
3120
+ if (u !== void 0 ? c.call(t, u, e) : c.call(t, e), e.cancelBubble) return;
3114
3121
  }
3115
3122
  return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && a(t.host), !0;
3116
3123
  }, o = () => {
@@ -3121,10 +3128,10 @@ function Zs(e) {
3121
3128
  get() {
3122
3129
  return t || document;
3123
3130
  }
3124
- }), _.registry && !_.done && (_.done = _$HY.done = !0), e.composedPath) {
3125
- const l = e.composedPath();
3126
- a(l[0]);
3127
- for (let u = 0; u < l.length - 2 && (t = l[u], !!i()); u++) {
3131
+ }), v.registry && !v.done && (v.done = _$HY.done = !0), e.composedPath) {
3132
+ const c = e.composedPath();
3133
+ a(c[0]);
3134
+ for (let u = 0; u < c.length - 2 && (t = c[u], !!i()); u++) {
3128
3135
  if (t._$host) {
3129
3136
  t = t._$host, o();
3130
3137
  break;
@@ -3139,12 +3146,12 @@ function ut(e, t, n, s, r) {
3139
3146
  const a = Ue(e);
3140
3147
  if (a) {
3141
3148
  !n && (n = [...e.childNodes]);
3142
- let l = [];
3149
+ let c = [];
3143
3150
  for (let u = 0; u < n.length; u++) {
3144
3151
  const f = n[u];
3145
- f.nodeType === 8 && f.data.slice(0, 2) === "!$" ? f.remove() : l.push(f);
3152
+ f.nodeType === 8 && f.data.slice(0, 2) === "!$" ? f.remove() : c.push(f);
3146
3153
  }
3147
- n = l;
3154
+ n = c;
3148
3155
  }
3149
3156
  for (; typeof n == "function"; ) n = n();
3150
3157
  if (t === n) return n;
@@ -3153,8 +3160,8 @@ function ut(e, t, n, s, r) {
3153
3160
  if (a || i === "number" && (t = t.toString(), t === n))
3154
3161
  return n;
3155
3162
  if (o) {
3156
- let l = n[0];
3157
- l && l.nodeType === 3 ? l.data !== t && (l.data = t) : l = document.createTextNode(t), n = Me(e, n, s, l);
3163
+ let c = n[0];
3164
+ c && c.nodeType === 3 ? c.data !== t && (c.data = t) : c = document.createTextNode(t), n = Me(e, n, s, c);
3158
3165
  } else
3159
3166
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
3160
3167
  } else if (t == null || i === "boolean") {
@@ -3163,27 +3170,27 @@ function ut(e, t, n, s, r) {
3163
3170
  } else {
3164
3171
  if (i === "function")
3165
3172
  return De(() => {
3166
- let l = t();
3167
- for (; typeof l == "function"; ) l = l();
3168
- n = ut(e, l, n, s);
3173
+ let c = t();
3174
+ for (; typeof c == "function"; ) c = c();
3175
+ n = ut(e, c, n, s);
3169
3176
  }), () => n;
3170
3177
  if (Array.isArray(t)) {
3171
- const l = [], u = n && Array.isArray(n);
3172
- if (An(l, t, n, r))
3173
- return De(() => n = ut(e, l, n, s, !0)), () => n;
3178
+ const c = [], u = n && Array.isArray(n);
3179
+ if (Tn(c, t, n, r))
3180
+ return De(() => n = ut(e, c, n, s, !0)), () => n;
3174
3181
  if (a) {
3175
- if (!l.length) return n;
3182
+ if (!c.length) return n;
3176
3183
  if (s === void 0) return n = [...e.childNodes];
3177
- let f = l[0];
3184
+ let f = c[0];
3178
3185
  if (f.parentNode !== e) return n;
3179
3186
  const d = [f];
3180
3187
  for (; (f = f.nextSibling) !== s; ) d.push(f);
3181
3188
  return n = d;
3182
3189
  }
3183
- if (l.length === 0) {
3190
+ if (c.length === 0) {
3184
3191
  if (n = Me(e, n, s), o) return n;
3185
- } else u ? n.length === 0 ? ts(e, l, s) : Zo(e, n, l) : (n && Me(e), ts(e, l));
3186
- n = l;
3192
+ } else u ? n.length === 0 ? ts(e, c, s) : Zo(e, n, c) : (n && Me(e), ts(e, c));
3193
+ n = c;
3187
3194
  } else if (t.nodeType) {
3188
3195
  if (a && t.parentNode) return n = o ? [t] : t;
3189
3196
  if (Array.isArray(n)) {
@@ -3195,23 +3202,23 @@ function ut(e, t, n, s, r) {
3195
3202
  }
3196
3203
  return n;
3197
3204
  }
3198
- function An(e, t, n, s) {
3205
+ function Tn(e, t, n, s) {
3199
3206
  let r = !1;
3200
3207
  for (let a = 0, i = t.length; a < i; a++) {
3201
- let o = t[a], l = n && n[e.length], u;
3208
+ let o = t[a], c = n && n[e.length], u;
3202
3209
  if (!(o == null || o === !0 || o === !1)) if ((u = typeof o) == "object" && o.nodeType)
3203
3210
  e.push(o);
3204
3211
  else if (Array.isArray(o))
3205
- r = An(e, o, l) || r;
3212
+ r = Tn(e, o, c) || r;
3206
3213
  else if (u === "function")
3207
3214
  if (s) {
3208
3215
  for (; typeof o == "function"; ) o = o();
3209
- r = An(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
3216
+ r = Tn(e, Array.isArray(o) ? o : [o], Array.isArray(c) ? c : [c]) || r;
3210
3217
  } else
3211
3218
  e.push(o), r = !0;
3212
3219
  else {
3213
3220
  const f = String(o);
3214
- l && l.nodeType === 3 && l.data === f ? e.push(l) : e.push(document.createTextNode(f));
3221
+ c && c.nodeType === 3 && c.data === f ? e.push(c) : e.push(document.createTextNode(f));
3215
3222
  }
3216
3223
  }
3217
3224
  return r;
@@ -3227,41 +3234,41 @@ function Me(e, t, n, s) {
3227
3234
  for (let i = t.length - 1; i >= 0; i--) {
3228
3235
  const o = t[i];
3229
3236
  if (r !== o) {
3230
- const l = o.parentNode === e;
3231
- !a && !i ? l ? e.replaceChild(r, o) : e.insertBefore(r, n) : l && o.remove();
3237
+ const c = o.parentNode === e;
3238
+ !a && !i ? c ? e.replaceChild(r, o) : e.insertBefore(r, n) : c && o.remove();
3232
3239
  } else a = !0;
3233
3240
  }
3234
3241
  } else e.insertBefore(r, n);
3235
3242
  return [r];
3236
3243
  }
3237
3244
  function fl() {
3238
- return _.getNextContextId();
3245
+ return v.getNextContextId();
3239
3246
  }
3240
3247
  var hl = "http://www.w3.org/2000/svg";
3241
- function er(e, t = !1) {
3248
+ function Zs(e, t = !1) {
3242
3249
  return t ? document.createElementNS(hl, e) : document.createElement(e);
3243
3250
  }
3244
3251
  function uu(e) {
3245
3252
  const {
3246
3253
  useShadow: t
3247
3254
  } = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = Xn();
3248
- let a, i = !!_.context;
3249
- return qs(() => {
3250
- i && (Xn().user = i = !1), a || (a = Ks(r, () => J(() => e.children)));
3255
+ let a, i = !!v.context;
3256
+ return Fs(() => {
3257
+ i && (Xn().user = i = !1), a || (a = qs(r, () => J(() => e.children)));
3251
3258
  const o = s();
3252
3259
  if (o instanceof HTMLHeadElement) {
3253
- const [l, u] = q(!1), f = () => u(!0);
3254
- Oe((d) => yn(o, () => l() ? d() : a(), null)), lt(f);
3260
+ const [c, u] = q(!1), f = () => u(!0);
3261
+ Oe((d) => An(o, () => c() ? d() : a(), null)), lt(f);
3255
3262
  } else {
3256
- const l = er(e.isSVG ? "g" : "div", e.isSVG), u = t && l.attachShadow ? l.attachShadow({
3263
+ const c = Zs(e.isSVG ? "g" : "div", e.isSVG), u = t && c.attachShadow ? c.attachShadow({
3257
3264
  mode: "open"
3258
- }) : l;
3259
- Object.defineProperty(l, "_$host", {
3265
+ }) : c;
3266
+ Object.defineProperty(c, "_$host", {
3260
3267
  get() {
3261
3268
  return n.parentNode;
3262
3269
  },
3263
3270
  configurable: !0
3264
- }), yn(u, a), o.appendChild(l), e.ref && e.ref(l), lt(() => o.removeChild(l));
3271
+ }), An(u, a), o.appendChild(c), e.ref && e.ref(c), lt(() => o.removeChild(c));
3265
3272
  }
3266
3273
  }, void 0, {
3267
3274
  render: !i
@@ -3275,7 +3282,7 @@ function gl(e, t) {
3275
3282
  case "function":
3276
3283
  return Z(() => s(t));
3277
3284
  case "string":
3278
- const r = Jo.has(s), a = _.context ? ul() : er(s, r);
3285
+ const r = Jo.has(s), a = v.context ? ul() : Zs(s, r);
3279
3286
  return ol(a, t, r), a;
3280
3287
  }
3281
3288
  });
@@ -3300,7 +3307,7 @@ var ml = class {
3300
3307
  clear() {
3301
3308
  this.keyToValue.clear(), this.valueToKey.clear();
3302
3309
  }
3303
- }, tr = class {
3310
+ }, er = class {
3304
3311
  constructor(e) {
3305
3312
  this.generateIdentifier = e, this.kv = new ml();
3306
3313
  }
@@ -3316,7 +3323,7 @@ var ml = class {
3316
3323
  getValue(e) {
3317
3324
  return this.kv.getByKey(e);
3318
3325
  }
3319
- }, El = class extends tr {
3326
+ }, El = class extends er {
3320
3327
  constructor() {
3321
3328
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3322
3329
  }
@@ -3372,7 +3379,7 @@ var Al = class {
3372
3379
  findByName(e) {
3373
3380
  return this.transfomers[e];
3374
3381
  }
3375
- }, 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, ve = (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, ss = (e) => typeof e == "number" && isNaN(e), Cl = (e) => vl(e) || Sl(e) || nr(e) || Pl(e) || _l(e) || sr(e), Nl = (e) => typeof e == "bigint", Ll = (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) => {
3382
+ }, 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, Sn = (e) => dt(e) && Object.keys(e).length === 0, ve = (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), Cl = (e) => vl(e) || Sl(e) || tr(e) || Pl(e) || _l(e) || nr(e), Nl = (e) => typeof e == "bigint", Ll = (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, "\\."), fn = (e) => e.map(String).map(sr).join("."), ot = (e) => {
3376
3383
  const t = [];
3377
3384
  let n = "";
3378
3385
  for (let r = 0; r < e.length; r++) {
@@ -3398,8 +3405,8 @@ function fe(e, t, n, s) {
3398
3405
  untransform: s
3399
3406
  };
3400
3407
  }
3401
- var ar = [
3402
- fe(nr, "undefined", () => null, () => {
3408
+ var rr = [
3409
+ fe(tr, "undefined", () => null, () => {
3403
3410
  }),
3404
3411
  fe(Nl, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3405
3412
  fe(bl, "Date", (e) => e.toISOString(), (e) => new Date(e)),
@@ -3442,7 +3449,7 @@ function en(e, t, n, s) {
3442
3449
  untransform: s
3443
3450
  };
3444
3451
  }
3445
- 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) => {
3452
+ 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) => {
3446
3453
  const s = n.symbolRegistry.getValue(t[1]);
3447
3454
  if (!s)
3448
3455
  throw new Error("Trying to deserialize unknown symbol");
@@ -3457,16 +3464,16 @@ var ir = en((e, t) => sr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
3457
3464
  Float32Array,
3458
3465
  Float64Array,
3459
3466
  Uint8ClampedArray
3460
- ].reduce((e, t) => (e[t.name] = t, e), {}), or = en(kl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3467
+ ].reduce((e, t) => (e[t.name] = t, e), {}), ir = en(kl, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3461
3468
  const n = Dl[t[1]];
3462
3469
  if (!n)
3463
3470
  throw new Error("Trying to deserialize unknown typed array");
3464
3471
  return new n(e);
3465
3472
  });
3466
- function lr(e, t) {
3473
+ function or(e, t) {
3467
3474
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
3468
3475
  }
3469
- var cr = en(lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3476
+ var lr = en(or, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3470
3477
  const n = t.classRegistry.getAllowedProps(e.constructor);
3471
3478
  if (!n)
3472
3479
  return { ...e };
@@ -3479,44 +3486,44 @@ var cr = en(lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
3479
3486
  if (!s)
3480
3487
  throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3481
3488
  return Object.assign(Object.create(s.prototype), e);
3482
- }), 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) => {
3489
+ }), 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) => {
3483
3490
  const s = n.customTransformerRegistry.findByName(t[1]);
3484
3491
  if (!s)
3485
3492
  throw new Error("Trying to deserialize unknown custom value");
3486
3493
  return s.deserialize(e);
3487
- }), Gl = [cr, ir, ur, or], rs = (e, t) => {
3494
+ }), Gl = [lr, ar, cr, ir], rs = (e, t) => {
3488
3495
  const n = ns(Gl, (r) => r.isApplicable(e, t));
3489
3496
  if (n)
3490
3497
  return {
3491
3498
  value: n.transform(e, t),
3492
3499
  type: n.annotation(e, t)
3493
3500
  };
3494
- const s = ns(ar, (r) => r.isApplicable(e, t));
3501
+ const s = ns(rr, (r) => r.isApplicable(e, t));
3495
3502
  if (s)
3496
3503
  return {
3497
3504
  value: s.transform(e, t),
3498
3505
  type: s.annotation
3499
3506
  };
3500
- }, dr = {};
3501
- ar.forEach((e) => {
3502
- dr[e.annotation] = e;
3507
+ }, ur = {};
3508
+ rr.forEach((e) => {
3509
+ ur[e.annotation] = e;
3503
3510
  });
3504
3511
  var xl = (e, t, n) => {
3505
3512
  if (ve(t))
3506
3513
  switch (t[0]) {
3507
3514
  case "symbol":
3508
- return ir.untransform(e, t, n);
3515
+ return ar.untransform(e, t, n);
3509
3516
  case "class":
3510
- return cr.untransform(e, t, n);
3517
+ return lr.untransform(e, t, n);
3511
3518
  case "custom":
3512
- return ur.untransform(e, t, n);
3519
+ return cr.untransform(e, t, n);
3513
3520
  case "typed-array":
3514
- return or.untransform(e, t, n);
3521
+ return ir.untransform(e, t, n);
3515
3522
  default:
3516
3523
  throw new Error("Unknown transformation: " + t);
3517
3524
  }
3518
3525
  else {
3519
- const s = dr[t];
3526
+ const s = ur[t];
3520
3527
  if (!s)
3521
3528
  throw new Error("Unknown transformation: " + t);
3522
3529
  return s.untransform(e, n);
@@ -3529,7 +3536,7 @@ var xl = (e, t, n) => {
3529
3536
  n.next(), t--;
3530
3537
  return n.next().value;
3531
3538
  };
3532
- function fr(e) {
3539
+ function dr(e) {
3533
3540
  if (Ut(e, "__proto__"))
3534
3541
  throw new Error("__proto__ is not allowed as a property");
3535
3542
  if (Ut(e, "prototype"))
@@ -3538,7 +3545,7 @@ function fr(e) {
3538
3545
  throw new Error("constructor is not allowed as a property");
3539
3546
  }
3540
3547
  var Rl = (e, t) => {
3541
- fr(t);
3548
+ dr(t);
3542
3549
  for (let n = 0; n < t.length; n++) {
3543
3550
  const s = t[n];
3544
3551
  if (ht(e))
@@ -3557,8 +3564,8 @@ var Rl = (e, t) => {
3557
3564
  e = e[s];
3558
3565
  }
3559
3566
  return e;
3560
- }, Sn = (e, t, n) => {
3561
- if (fr(t), t.length === 0)
3567
+ }, _n = (e, t, n) => {
3568
+ if (dr(t), t.length === 0)
3562
3569
  return n(e);
3563
3570
  let s = e;
3564
3571
  for (let a = 0; a < t.length - 1; a++) {
@@ -3574,7 +3581,7 @@ var Rl = (e, t) => {
3574
3581
  } else if (ft(s)) {
3575
3582
  if (a === t.length - 2)
3576
3583
  break;
3577
- const l = +i, u = +t[++a] == 0 ? "key" : "value", f = Fe(s, l);
3584
+ const c = +i, u = +t[++a] == 0 ? "key" : "value", f = Fe(s, c);
3578
3585
  switch (u) {
3579
3586
  case "key":
3580
3587
  s = f;
@@ -3594,8 +3601,8 @@ var Rl = (e, t) => {
3594
3601
  const a = +t[t.length - 2], i = Fe(s, a);
3595
3602
  switch (+r == 0 ? "key" : "value") {
3596
3603
  case "key": {
3597
- const l = n(i);
3598
- s.set(l, s.get(i)), l !== i && s.delete(i);
3604
+ const c = n(i);
3605
+ s.set(c, s.get(i)), c !== i && s.delete(i);
3599
3606
  break;
3600
3607
  }
3601
3608
  case "value": {
@@ -3606,40 +3613,40 @@ var Rl = (e, t) => {
3606
3613
  }
3607
3614
  return e;
3608
3615
  };
3609
- function _n(e, t, n = []) {
3616
+ function Pn(e, t, n = []) {
3610
3617
  if (!e)
3611
3618
  return;
3612
3619
  if (!ve(e)) {
3613
- nt(e, (a, i) => _n(a, t, [...n, ...ot(i)]));
3620
+ nt(e, (a, i) => Pn(a, t, [...n, ...ot(i)]));
3614
3621
  return;
3615
3622
  }
3616
3623
  const [s, r] = e;
3617
3624
  r && nt(r, (a, i) => {
3618
- _n(a, t, [...n, ...ot(i)]);
3625
+ Pn(a, t, [...n, ...ot(i)]);
3619
3626
  }), t(s, n);
3620
3627
  }
3621
3628
  function Ul(e, t, n) {
3622
- return _n(t, (s, r) => {
3623
- e = Sn(e, r, (a) => xl(a, s, n));
3629
+ return Pn(t, (s, r) => {
3630
+ e = _n(e, r, (a) => xl(a, s, n));
3624
3631
  }), e;
3625
3632
  }
3626
3633
  function Bl(e, t) {
3627
3634
  function n(s, r) {
3628
3635
  const a = Rl(e, ot(r));
3629
3636
  s.map(ot).forEach((i) => {
3630
- e = Sn(e, i, () => a);
3637
+ e = _n(e, i, () => a);
3631
3638
  });
3632
3639
  }
3633
3640
  if (ve(t)) {
3634
3641
  const [s, r] = t;
3635
3642
  s.forEach((a) => {
3636
- e = Sn(e, ot(a), () => e);
3643
+ e = _n(e, ot(a), () => e);
3637
3644
  }), r && nt(r, n);
3638
3645
  } else
3639
3646
  nt(t, n);
3640
3647
  return e;
3641
3648
  }
3642
- var Ml = (e, t) => dt(e) || ve(e) || ft(e) || ht(e) || lr(e, t);
3649
+ var Ml = (e, t) => dt(e) || ve(e) || ft(e) || ht(e) || or(e, t);
3643
3650
  function Fl(e, t, n) {
3644
3651
  const s = n.get(e);
3645
3652
  s ? s.push(t) : n.set(e, [t]);
@@ -3650,12 +3657,12 @@ function ql(e, t) {
3650
3657
  return e.forEach((r) => {
3651
3658
  if (r.length <= 1)
3652
3659
  return;
3653
- t || (r = r.map((o) => o.map(String)).sort((o, l) => o.length - l.length));
3660
+ t || (r = r.map((o) => o.map(String)).sort((o, c) => o.length - c.length));
3654
3661
  const [a, ...i] = r;
3655
- a.length === 0 ? s = i.map(dn) : n[dn(a)] = i.map(dn);
3656
- }), s ? Tn(n) ? [s] : [s, n] : Tn(n) ? void 0 : n;
3662
+ a.length === 0 ? s = i.map(fn) : n[fn(a)] = i.map(fn);
3663
+ }), s ? Sn(n) ? [s] : [s, n] : Sn(n) ? void 0 : n;
3657
3664
  }
3658
- var hr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3665
+ var fr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3659
3666
  const o = Cl(e);
3660
3667
  if (!o) {
3661
3668
  Fl(e, r, t);
@@ -3666,44 +3673,44 @@ var hr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3666
3673
  } : g;
3667
3674
  }
3668
3675
  if (!Ml(e, n)) {
3669
- const g = rs(e, n), A = g ? {
3676
+ const g = rs(e, n), y = g ? {
3670
3677
  transformedValue: g.value,
3671
3678
  annotations: [g.type]
3672
3679
  } : {
3673
3680
  transformedValue: e
3674
3681
  };
3675
- return o || i.set(e, A), A;
3682
+ return o || i.set(e, y), y;
3676
3683
  }
3677
3684
  if (Ut(a, e))
3678
3685
  return {
3679
3686
  transformedValue: null
3680
3687
  };
3681
- const l = rs(e, n), u = (l == null ? void 0 : l.value) ?? e, f = ve(u) ? [] : {}, d = {};
3682
- nt(u, (g, A) => {
3683
- if (A === "__proto__" || A === "constructor" || A === "prototype")
3684
- throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);
3685
- const T = hr(g, t, n, s, [...r, A], [...a, e], i);
3686
- f[A] = T.transformedValue, ve(T.annotations) ? d[A] = T.annotations : dt(T.annotations) && nt(T.annotations, (p, y) => {
3687
- d[rr(A) + "." + y] = p;
3688
+ const c = rs(e, n), u = (c == null ? void 0 : c.value) ?? e, f = ve(u) ? [] : {}, d = {};
3689
+ nt(u, (g, y) => {
3690
+ if (y === "__proto__" || y === "constructor" || y === "prototype")
3691
+ throw new Error(`Detected property ${y}. This is a prototype pollution risk, please remove it from your object.`);
3692
+ const T = fr(g, t, n, s, [...r, y], [...a, e], i);
3693
+ f[y] = T.transformedValue, ve(T.annotations) ? d[y] = T.annotations : dt(T.annotations) && nt(T.annotations, (_, p) => {
3694
+ d[sr(y) + "." + p] = _;
3688
3695
  });
3689
3696
  });
3690
- const h = Tn(d) ? {
3697
+ const h = Sn(d) ? {
3691
3698
  transformedValue: f,
3692
- annotations: l ? [l.type] : void 0
3699
+ annotations: c ? [c.type] : void 0
3693
3700
  } : {
3694
3701
  transformedValue: f,
3695
- annotations: l ? [l.type, d] : d
3702
+ annotations: c ? [c.type, d] : d
3696
3703
  };
3697
3704
  return o || i.set(e, h), h;
3698
3705
  };
3699
- function gr(e) {
3706
+ function hr(e) {
3700
3707
  return Object.prototype.toString.call(e).slice(8, -1);
3701
3708
  }
3702
3709
  function as(e) {
3703
- return gr(e) === "Array";
3710
+ return hr(e) === "Array";
3704
3711
  }
3705
3712
  function Kl(e) {
3706
- if (gr(e) !== "Object")
3713
+ if (hr(e) !== "Object")
3707
3714
  return !1;
3708
3715
  const t = Object.getPrototypeOf(e);
3709
3716
  return !!t && t.constructor === Object && t === Object.prototype;
@@ -3717,16 +3724,16 @@ function Vl(e, t, n, s, r) {
3717
3724
  configurable: !0
3718
3725
  });
3719
3726
  }
3720
- function Pn(e, t = {}) {
3727
+ function vn(e, t = {}) {
3721
3728
  if (as(e))
3722
- return e.map((r) => Pn(r, t));
3729
+ return e.map((r) => vn(r, t));
3723
3730
  if (!Kl(e))
3724
3731
  return e;
3725
3732
  const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
3726
3733
  return [...n, ...s].reduce((r, a) => {
3727
3734
  if (as(t.props) && !t.props.includes(a))
3728
3735
  return r;
3729
- const i = e[a], o = Pn(i, t);
3736
+ const i = e[a], o = vn(i, t);
3730
3737
  return Vl(r, a, o, e, t.nonenumerable), r;
3731
3738
  }, {});
3732
3739
  }
@@ -3735,10 +3742,10 @@ var x = class {
3735
3742
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3736
3743
  */
3737
3744
  constructor({ dedupe: e = !1 } = {}) {
3738
- this.classRegistry = new El(), this.symbolRegistry = new tr((t) => t.description ?? ""), this.customTransformerRegistry = new Al(), this.allowedErrorProps = [], this.dedupe = e;
3745
+ this.classRegistry = new El(), this.symbolRegistry = new er((t) => t.description ?? ""), this.customTransformerRegistry = new Al(), this.allowedErrorProps = [], this.dedupe = e;
3739
3746
  }
3740
3747
  serialize(e) {
3741
- const t = /* @__PURE__ */ new Map(), n = hr(e, t, this, this.dedupe), s = {
3748
+ const t = /* @__PURE__ */ new Map(), n = fr(e, t, this, this.dedupe), s = {
3742
3749
  json: n.transformedValue
3743
3750
  };
3744
3751
  n.annotations && (s.meta = {
@@ -3753,7 +3760,7 @@ var x = class {
3753
3760
  }
3754
3761
  deserialize(e) {
3755
3762
  const { json: t, meta: n } = e;
3756
- let s = Pn(t);
3763
+ let s = vn(t);
3757
3764
  return n != null && n.values && (s = Ul(s, n.values, this)), n != null && n.referentialEqualities && (s = Bl(s, n.referentialEqualities)), s;
3758
3765
  }
3759
3766
  stringify(e) {
@@ -3815,13 +3822,13 @@ var yu = (e, t = !1) => {
3815
3822
  json: n
3816
3823
  } = Hl(e);
3817
3824
  return JSON.stringify(n, null, t ? 2 : void 0);
3818
- }, 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 = {
3825
+ }, 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 = {
3819
3826
  status: $l,
3820
3827
  "query hash": Ql,
3821
- "last updated": mr
3822
- }, 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, jl = (e, t) => Dt(e) === Dt(t) ? Er(e, t) : Dt(e) > Dt(t) ? 1 : -1, Tu = {
3828
+ "last updated": gr
3829
+ }, 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, jl = (e, t) => Dt(e) === Dt(t) ? mr(e, t) : Dt(e) > Dt(t) ? 1 : -1, Tu = {
3823
3830
  status: jl,
3824
- "last updated": Er
3831
+ "last updated": mr
3825
3832
  }, Su = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), _u = () => {
3826
3833
  const [e, t] = q("dark");
3827
3834
  return ko(() => {
@@ -3892,7 +3899,7 @@ var yu = (e, t = !1) => {
3892
3899
  return n[s] = xt(n[s], r), n;
3893
3900
  }
3894
3901
  return e;
3895
- }, pr = (e, t) => {
3902
+ }, Er = (e, t) => {
3896
3903
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
3897
3904
  const s = document.createElement("style"), r = document.createTextNode("");
3898
3905
  s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
@@ -3920,12 +3927,12 @@ var yu = (e, t = !1) => {
3920
3927
  buttonPosition: a,
3921
3928
  position: i,
3922
3929
  initialIsOpen: o,
3923
- errorTypes: l,
3930
+ errorTypes: c,
3924
3931
  styleNonce: u,
3925
3932
  shadowDOMTarget: f,
3926
3933
  hideDisabledQueries: d
3927
3934
  } = e;
3928
- k(this, qe, q(t)), k(this, mt, n), k(this, Et, s), k(this, gt, r), k(this, pt, u), k(this, Ke, f), k(this, Ve, q(a)), k(this, He, q(i)), k(this, Qe, q(o)), k(this, $e, q(l)), k(this, yt, q(d));
3935
+ k(this, qe, q(t)), k(this, mt, n), k(this, Et, s), k(this, gt, r), k(this, pt, u), k(this, Ke, f), k(this, Ve, q(a)), k(this, He, q(i)), k(this, Qe, q(o)), k(this, $e, q(c)), k(this, yt, q(d));
3929
3936
  }
3930
3937
  setButtonPosition(e) {
3931
3938
  S(this, Ve)[1](e);
@@ -3945,10 +3952,10 @@ var yu = (e, t = !1) => {
3945
3952
  mount(e) {
3946
3953
  if (S(this, Le))
3947
3954
  throw new Error("Devtools is already mounted");
3948
- const t = Xs(() => {
3949
- const n = this, [s] = S(this, Ve), [r] = S(this, He), [a] = S(this, Qe), [i] = S(this, $e), [o] = S(this, yt), [l] = S(this, qe);
3955
+ const t = Js(() => {
3956
+ const n = this, [s] = S(this, Ve), [r] = S(this, He), [a] = S(this, Qe), [i] = S(this, $e), [o] = S(this, yt), [c] = S(this, qe);
3950
3957
  let u;
3951
- return S(this, je) ? u = S(this, je) : (u = Ys(() => import("./NCMVHL6D-B3kd8MpE.js")), k(this, je, u)), pr(S(this, pt), S(this, Ke)), zs(u, Ws({
3958
+ return S(this, je) ? u = S(this, je) : (u = Ws(() => import("./NCMVHL6D-DFMKkQPN.js")), k(this, je, u)), Er(S(this, pt), S(this, Ke)), js(u, zs({
3952
3959
  get queryFlavor() {
3953
3960
  return S(n, mt);
3954
3961
  },
@@ -3963,7 +3970,7 @@ var yu = (e, t = !1) => {
3963
3970
  }
3964
3971
  }, {
3965
3972
  get client() {
3966
- return l();
3973
+ return c();
3967
3974
  },
3968
3975
  get buttonPosition() {
3969
3976
  return s();
@@ -4015,13 +4022,13 @@ var yu = (e, t = !1) => {
4015
4022
  buttonPosition: a,
4016
4023
  position: i,
4017
4024
  initialIsOpen: o,
4018
- errorTypes: l,
4025
+ errorTypes: c,
4019
4026
  styleNonce: u,
4020
4027
  shadowDOMTarget: f,
4021
4028
  onClose: d,
4022
4029
  hideDisabledQueries: h
4023
4030
  } = e;
4024
- k(this, ze, q(t)), k(this, St, n), k(this, _t, s), k(this, Tt, r), k(this, Pt, u), k(this, We, f), k(this, Ye, q(a)), k(this, Je, q(i)), k(this, Xe, q(o)), k(this, Ze, q(l)), k(this, vt, q(h)), k(this, et, q(d));
4031
+ k(this, ze, q(t)), k(this, St, n), k(this, _t, s), k(this, Tt, r), k(this, Pt, u), k(this, We, f), k(this, Ye, q(a)), k(this, Je, q(i)), k(this, Xe, q(o)), k(this, Ze, q(c)), k(this, vt, q(h)), k(this, et, q(d));
4025
4032
  }
4026
4033
  setButtonPosition(e) {
4027
4034
  S(this, Ye)[1](e);
@@ -4044,10 +4051,10 @@ var yu = (e, t = !1) => {
4044
4051
  mount(e) {
4045
4052
  if (S(this, ke))
4046
4053
  throw new Error("Devtools is already mounted");
4047
- const t = Xs(() => {
4048
- const n = this, [s] = S(this, Ye), [r] = S(this, Je), [a] = S(this, Xe), [i] = S(this, Ze), [o] = S(this, vt), [l] = S(this, ze), [u] = S(this, et);
4054
+ const t = Js(() => {
4055
+ const n = this, [s] = S(this, Ye), [r] = S(this, Je), [a] = S(this, Xe), [i] = S(this, Ze), [o] = S(this, vt), [c] = S(this, ze), [u] = S(this, et);
4049
4056
  let f;
4050
- return S(this, tt) ? f = S(this, tt) : (f = Ys(() => import("./2AITGKQY-BQI4o1xG.js")), k(this, tt, f)), pr(S(this, Pt), S(this, We)), zs(f, Ws({
4057
+ return S(this, tt) ? f = S(this, tt) : (f = Ws(() => import("./2AITGKQY-BFankGad.js")), k(this, tt, f)), Er(S(this, Pt), S(this, We)), js(f, zs({
4051
4058
  get queryFlavor() {
4052
4059
  return S(n, St);
4053
4060
  },
@@ -4062,7 +4069,7 @@ var yu = (e, t = !1) => {
4062
4069
  }
4063
4070
  }, {
4064
4071
  get client() {
4065
- return l();
4072
+ return c();
4066
4073
  },
4067
4074
  get buttonPosition() {
4068
4075
  return s();
@@ -4100,7 +4107,7 @@ function Yl(e) {
4100
4107
  initialIsOpen: a,
4101
4108
  errorTypes: i,
4102
4109
  styleNonce: o,
4103
- shadowDOMTarget: l,
4110
+ shadowDOMTarget: c,
4104
4111
  hideDisabledQueries: u
4105
4112
  } = e, [f] = z.useState(
4106
4113
  new zl({
@@ -4113,7 +4120,7 @@ function Yl(e) {
4113
4120
  initialIsOpen: a,
4114
4121
  errorTypes: i,
4115
4122
  styleNonce: o,
4116
- shadowDOMTarget: l,
4123
+ shadowDOMTarget: c,
4117
4124
  hideDisabledQueries: u
4118
4125
  })
4119
4126
  );
@@ -4129,7 +4136,7 @@ function Yl(e) {
4129
4136
  f.setErrorTypes(i || []);
4130
4137
  }, [i, f]), z.useEffect(() => (n.current && f.mount(n.current), () => {
4131
4138
  f.unmount();
4132
- }), [f]), /* @__PURE__ */ c("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
4139
+ }), [f]), /* @__PURE__ */ l("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
4133
4140
  }
4134
4141
  function Jl(e) {
4135
4142
  const t = W(e.client), n = z.useRef(null), { errorTypes: s, styleNonce: r, shadowDOMTarget: a, hideDisabledQueries: i } = e, [o] = z.useState(
@@ -4157,7 +4164,7 @@ function Jl(e) {
4157
4164
  o.setErrorTypes(s || []);
4158
4165
  }, [s, o]), z.useEffect(() => (n.current && o.mount(n.current), () => {
4159
4166
  o.unmount();
4160
- }), [o]), /* @__PURE__ */ c(
4167
+ }), [o]), /* @__PURE__ */ l(
4161
4168
  "div",
4162
4169
  {
4163
4170
  style: { height: "500px", ...e.style },
@@ -4226,7 +4233,7 @@ const Xl = Ee(""), Zl = () => {
4226
4233
  },
4227
4234
  [e]
4228
4235
  );
4229
- }, rc = F(() => import("./digital-asset-manager-BxM02CBp.js")), ac = F(() => import("./save-to-lib-C43iGfOH.js")), ic = F(() => import("./theme-panel-footer-BnxQBiM2.js")), oc = F(() => import("./web-preview-y7dB2S91.js"));
4236
+ }, rc = F(() => import("./digital-asset-manager-D_FFLECK.js")), ac = F(() => import("./save-to-lib-CccnzwO8.js")), ic = F(() => import("./theme-panel-footer-CHR7J97n.js")), oc = F(() => import("./web-preview-CJ6JyhJD.js"));
4230
4237
  Zl();
4231
4238
  Xa();
4232
4239
  Jr(to);
@@ -4239,42 +4246,42 @@ const lc = {
4239
4246
  }, os = (e) => {
4240
4247
  const { data: t } = lo();
4241
4248
  gi();
4242
- const n = Dn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = ec(), { data: u, isFetching: f } = Re(), d = r || i || l || f, [h] = le(), g = h.get("page"), { data: A } = ie(), { data: T, isFetching: p } = ao(), { blocks: y } = ro(T), { lockingStatus: P, pageLock: w } = Ie(), { data: O, isFetching: M } = io(), L = no(), { onSave: pe } = uo(), { mutateAsync: ye } = tc(), { getPartialBlocks: U, getPartialBlockBlocks: v } = fo(), { mutateAsync: b } = Li(), { mutateAsync: Y } = oo(), $ = sc(), [de, bt] = K(!1), Ae = at([]), Be = Q(() => V(u, "theme", {}) || {}, [u]), Ne = he(P) && (w == null ? void 0 : w.status) === "editing", yr = (w == null ? void 0 : w.status) === "checking", Rn = p || yr || M;
4243
- Ae.current = y;
4244
- const [Ar] = te(Xl);
4249
+ const n = Gn(), { data: s = lc, isFetching: r } = co(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: c } = ec(), { data: u, isFetching: f } = Re(), d = r || i || c || f, [h] = le(), g = h.get("page"), { data: y } = ie(), { data: T, isFetching: _ } = ao(), { blocks: p } = ro(T), { lockingStatus: A, pageLock: P } = Ie(), { data: O, isFetching: M } = io(), L = no(), { onSave: pe } = uo(), { mutateAsync: ye } = tc(), { getPartialBlocks: B, getPartialBlockBlocks: w } = fo(), { mutateAsync: b } = Li(), { mutateAsync: Y } = oo(), $ = sc(), [de, bt] = K(!1), Ae = at([]), Be = Q(() => V(u, "theme", {}) || {}, [u]), Ne = he(A) && (P == null ? void 0 : P.status) === "editing", pr = (P == null ? void 0 : P.status) === "checking", Un = _ || pr || M;
4250
+ Ae.current = p;
4251
+ const [yr] = te(Xl);
4245
4252
  se(() => {
4246
4253
  const ne = () => {
4247
4254
  document.hidden ? bt(!0) : bt(!1);
4248
4255
  };
4249
4256
  return window.addEventListener("visibilitychange", ne), () => window.removeEventListener("visibilitychange", ne);
4250
4257
  }, []);
4251
- const Tr = Q(() => {
4258
+ const Ar = Q(() => {
4252
4259
  const ne = {};
4253
4260
  return s && (ne.permissions = V(s, "permissions", null), ne.role = V(s, "role", "user")), ne;
4254
- }, [s]), Sr = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), _r = j(
4261
+ }, [s]), Tr = Q(() => t == null ? void 0 : t.some((ne) => ne.isSiteLibrary), [t]), Sr = j(
4255
4262
  async (ne, It) => await b({ pageType: ne, query: It }),
4256
4263
  [b]
4257
4264
  );
4258
4265
  return /* @__PURE__ */ m(ge, { children: [
4259
- Rn && /* @__PURE__ */ c(Ls, { className: d ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ c(Ft, { className: `animate-spin text-primary ${d ? "h-6 w-6" : "h-5 w-5"}` }) }),
4260
- Ar && /* @__PURE__ */ c(
4266
+ Un && /* @__PURE__ */ l(Ns, { className: d ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ l(Ft, { className: `animate-spin text-primary ${d ? "h-6 w-6" : "h-5 w-5"}` }) }),
4267
+ yr && /* @__PURE__ */ l(
4261
4268
  H,
4262
4269
  {
4263
- fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c(Ft, { className: "h-6 w-6 animate-spin text-primary" }) }),
4264
- children: /* @__PURE__ */ c(oc, {})
4270
+ 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" }) }),
4271
+ children: /* @__PURE__ */ l(oc, {})
4265
4272
  }
4266
4273
  ),
4267
- /* @__PURE__ */ c(
4274
+ /* @__PURE__ */ l(
4268
4275
  ea,
4269
4276
  {
4270
- _tempProps: { librarySite: Sr },
4277
+ _tempProps: { librarySite: Tr },
4271
4278
  gotoPage: $,
4272
4279
  collections: o ?? [],
4273
4280
  getBlockAsyncProps: ye,
4274
4281
  pageExternalData: O,
4275
4282
  themePresets: e.themePresets ?? [],
4276
- pageId: A == null ? void 0 : A.id,
4277
- loading: p,
4283
+ pageId: y == null ? void 0 : y.id,
4284
+ loading: _,
4278
4285
  fallbackLang: n,
4279
4286
  languages: (u == null ? void 0 : u.languages) || [],
4280
4287
  brandingOptions: (u == null ? void 0 : u.theme) || {},
@@ -4284,29 +4291,29 @@ const lc = {
4284
4291
  autoSave: !de && Ne && (e.autoSave ?? !0),
4285
4292
  autoSaveInterval: e.autoSaveInterval ?? 15,
4286
4293
  onError: e.onError || console.error,
4287
- getPartialBlockBlocks: v,
4288
- getPartialBlocks: U,
4289
- blocks: p ? [] : y,
4290
- theme: Mr(Be),
4294
+ getPartialBlockBlocks: w,
4295
+ getPartialBlocks: B,
4296
+ blocks: _ ? [] : p,
4297
+ theme: Br(Be),
4291
4298
  pageTypes: a,
4292
- searchPageTypeItems: _r,
4299
+ searchPageTypeItems: Sr,
4293
4300
  askAiCallBack: L,
4294
- onSave: async ({ blocks: ne, theme: It, needTranslations: Pr }) => {
4301
+ onSave: async ({ blocks: ne, theme: It, needTranslations: _r }) => {
4295
4302
  if (!g) return !0;
4296
4303
  Ae.current = ne;
4297
- const Un = [...ne];
4298
- return await pe({ page: g, blocks: Un, needTranslations: Pr }), Ae.current = Un, Fr(It, Be) || await Y({ settings: { theme: It } }), !0;
4304
+ const Bn = [...ne];
4305
+ return await pe({ page: g, blocks: Bn, needTranslations: _r }), Ae.current = Bn, Mr(It, Be) || await Y({ settings: { theme: It } }), !0;
4299
4306
  },
4300
4307
  themePanelComponent: ic,
4301
- ...Tr
4308
+ ...Ar
4302
4309
  }
4303
4310
  ),
4304
4311
  /* @__PURE__ */ m("div", { children: [
4305
- /* @__PURE__ */ c(yi, { isFetchingPage: Rn }),
4306
- /* @__PURE__ */ c(Ai, {})
4312
+ /* @__PURE__ */ l(yi, { isFetchingPage: Un }),
4313
+ /* @__PURE__ */ l(Ai, {})
4307
4314
  ] })
4308
4315
  ] });
4309
- }, cc = new Hr({
4316
+ }, cc = new Vr({
4310
4317
  defaultOptions: {
4311
4318
  queries: {
4312
4319
  refetchOnWindowFocus: !1,
@@ -4315,9 +4322,9 @@ const lc = {
4315
4322
  }
4316
4323
  }
4317
4324
  }), Pu = (e) => {
4318
- const [, t] = Cn(), [n, s] = K(!1);
4325
+ const [, t] = Nn(), [n, s] = K(!1);
4319
4326
  return se(() => (t(
4320
- vn(e, [
4327
+ wn(e, [
4321
4328
  "apiUrl",
4322
4329
  "usersApiUrl",
4323
4330
  "assetsApiUrl",
@@ -4336,19 +4343,19 @@ const lc = {
4336
4343
  }, 200), () => {
4337
4344
  s(!1), t({});
4338
4345
  }), [e, t]), n ? V(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(ge, { children: [
4339
- /* @__PURE__ */ c(os, { ...e }),
4340
- /* @__PURE__ */ c(is, {})
4341
- ] }) : /* @__PURE__ */ m(Qr, { client: cc, children: [
4342
- /* @__PURE__ */ c(os, { ...e }),
4343
- /* @__PURE__ */ c(is, {})
4344
- ] }) : /* @__PURE__ */ c("div", {});
4346
+ /* @__PURE__ */ l(os, { ...e }),
4347
+ /* @__PURE__ */ l(is, {})
4348
+ ] }) : /* @__PURE__ */ m(Hr, { client: cc, children: [
4349
+ /* @__PURE__ */ l(os, { ...e }),
4350
+ /* @__PURE__ */ l(is, {})
4351
+ ] }) : /* @__PURE__ */ l("div", {});
4345
4352
  }, uc = z.lazy(() => import("./nested-path-selector-content-DvIL_EoN.js"));
4346
4353
  function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4347
4354
  const [r, a] = z.useState(!1);
4348
4355
  return /* @__PURE__ */ m(ya, { open: r, onOpenChange: a, children: [
4349
4356
  /* @__PURE__ */ m(zt, { children: [
4350
- /* @__PURE__ */ c(Wt, { asChild: !0, children: /* @__PURE__ */ c(Aa, { asChild: !0, children: /* @__PURE__ */ c(
4351
- B,
4357
+ /* @__PURE__ */ l(Wt, { asChild: !0, children: /* @__PURE__ */ l(Aa, { asChild: !0, children: /* @__PURE__ */ l(
4358
+ U,
4352
4359
  {
4353
4360
  size: "sm",
4354
4361
  variant: "outline",
@@ -4356,7 +4363,7 @@ function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4356
4363
  role: "combobox",
4357
4364
  "aria-expanded": r,
4358
4365
  disabled: s,
4359
- children: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24px", height: "24px", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
4366
+ children: /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24px", height: "24px", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
4360
4367
  "path",
4361
4368
  {
4362
4369
  d: "M9.5 5H9C7.89543 5 7 5.89543 7 7V9C7 10 6.4 12 4 12C5 12 7 12.6 7 15V17.0002C7 18.1048 7.89543 19 9 19H9.5M14.5 5H15C16.1046 5 17 5.89543 17 7V9C17 10 17.6 12 20 12C19 12 17 12.6 17 15V17.0002C17 18.1048 16.1046 19 15 19H14.5",
@@ -4368,9 +4375,9 @@ function dc({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4368
4375
  ) })
4369
4376
  }
4370
4377
  ) }) }),
4371
- /* @__PURE__ */ c(Yt, { children: "Add field" })
4378
+ /* @__PURE__ */ l(Yt, { children: "Add field" })
4372
4379
  ] }),
4373
- r && /* @__PURE__ */ c(z.Suspense, { children: /* @__PURE__ */ c(
4380
+ r && /* @__PURE__ */ l(z.Suspense, { children: /* @__PURE__ */ l(
4374
4381
  uc,
4375
4382
  {
4376
4383
  data: e,
@@ -4417,7 +4424,7 @@ const vu = () => {
4417
4424
  console.error("Failed to update metadata");
4418
4425
  }
4419
4426
  });
4420
- }, fc = F(() => import("./digital-asset-manager-BxM02CBp.js")), Iu = ({
4427
+ }, fc = F(() => import("./digital-asset-manager-D_FFLECK.js")), Iu = ({
4421
4428
  assetId: e,
4422
4429
  assetUrl: t,
4423
4430
  onChange: n,
@@ -4425,19 +4432,19 @@ const vu = () => {
4425
4432
  placeholder: r = "Select an image",
4426
4433
  disabled: a = !1
4427
4434
  }) => {
4428
- const { t: i } = we(), [o, l] = K(!1), u = () => {
4429
- a || l(!0);
4435
+ const { t: i } = we(), [o, c] = K(!1), u = () => {
4436
+ a || c(!0);
4430
4437
  }, f = () => {
4431
- l(!1);
4432
- }, d = (A) => {
4433
- const T = Array.isArray(A) ? A[0] : A;
4434
- T != null && T.url && n(vn(T, ["url", "id"])), l(!1);
4438
+ c(!1);
4439
+ }, d = (y) => {
4440
+ const T = Array.isArray(y) ? y[0] : y;
4441
+ T != null && T.url && n(wn(T, ["url", "id"])), c(!1);
4435
4442
  }, h = () => {
4436
4443
  n({ url: "", id: "" });
4437
4444
  }, g = (t == null ? void 0 : t.startsWith("{{")) && (t == null ? void 0 : t.endsWith("}}"));
4438
4445
  return /* @__PURE__ */ m("div", { className: `w-full ${s}`, children: [
4439
4446
  t ? /* @__PURE__ */ m("div", { className: "relative overflow-hidden rounded-md border", children: [
4440
- g ? /* @__PURE__ */ c("div", { className: "flex h-12 items-center bg-gray-100 px-4", children: /* @__PURE__ */ c("p", { className: "text-xs text-gray-500", children: t }) }) : /* @__PURE__ */ c(
4447
+ g ? /* @__PURE__ */ l("div", { className: "flex h-12 items-center bg-gray-100 px-4", children: /* @__PURE__ */ l("p", { className: "text-xs text-gray-500", children: t }) }) : /* @__PURE__ */ l(
4441
4448
  "img",
4442
4449
  {
4443
4450
  onClick: u,
@@ -4447,8 +4454,8 @@ const vu = () => {
4447
4454
  }
4448
4455
  ),
4449
4456
  /* @__PURE__ */ m("div", { className: "absolute right-2 top-2 flex gap-2", children: [
4450
- /* @__PURE__ */ c(
4451
- B,
4457
+ /* @__PURE__ */ l(
4458
+ U,
4452
4459
  {
4453
4460
  type: "button",
4454
4461
  variant: "outline",
@@ -4456,11 +4463,11 @@ const vu = () => {
4456
4463
  className: "h-8 w-8 rounded-full bg-white text-red-500",
4457
4464
  onClick: h,
4458
4465
  disabled: a,
4459
- children: g ? /* @__PURE__ */ c(zn, { className: "h-4 w-4" }) : /* @__PURE__ */ c(Ha, { className: "h-4 w-4" })
4466
+ children: g ? /* @__PURE__ */ l(zn, { className: "h-4 w-4" }) : /* @__PURE__ */ l(Ha, { className: "h-4 w-4" })
4460
4467
  }
4461
4468
  ),
4462
- !g && /* @__PURE__ */ c(
4463
- B,
4469
+ !g && /* @__PURE__ */ l(
4470
+ U,
4464
4471
  {
4465
4472
  type: "button",
4466
4473
  variant: "outline",
@@ -4468,37 +4475,37 @@ const vu = () => {
4468
4475
  className: "h-8 w-8 rounded-full bg-white/80 hover:bg-white/90",
4469
4476
  onClick: u,
4470
4477
  disabled: a,
4471
- children: /* @__PURE__ */ c(Wn, { className: "h-4 w-4" })
4478
+ children: /* @__PURE__ */ l(Wn, { className: "h-4 w-4" })
4472
4479
  }
4473
4480
  )
4474
4481
  ] })
4475
- ] }) : /* @__PURE__ */ c(
4482
+ ] }) : /* @__PURE__ */ l(
4476
4483
  "div",
4477
4484
  {
4478
4485
  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"}`,
4479
4486
  onClick: u,
4480
4487
  children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-2", children: [
4481
- /* @__PURE__ */ c(Wn, { className: "h-10 w-10 text-gray-400" }),
4482
- /* @__PURE__ */ c("p", { className: "text-sm text-gray-500", children: r })
4488
+ /* @__PURE__ */ l(Wn, { className: "h-10 w-10 text-gray-400" }),
4489
+ /* @__PURE__ */ l("p", { className: "text-sm text-gray-500", children: r })
4483
4490
  ] })
4484
4491
  }
4485
4492
  ),
4486
- /* @__PURE__ */ c(Ts, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(Ta, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4493
+ /* @__PURE__ */ l(As, { open: o, onOpenChange: c, children: /* @__PURE__ */ m(Ta, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4487
4494
  /* @__PURE__ */ m(Sa, { className: "hidden border-b px-4 py-2", children: [
4488
- /* @__PURE__ */ c(_a, { children: i("Select Image") }),
4489
- /* @__PURE__ */ c(
4490
- B,
4495
+ /* @__PURE__ */ l(_a, { children: i("Select Image") }),
4496
+ /* @__PURE__ */ l(
4497
+ U,
4491
4498
  {
4492
4499
  type: "button",
4493
4500
  variant: "ghost",
4494
4501
  size: "icon",
4495
4502
  className: "absolute right-4 top-2",
4496
4503
  onClick: f,
4497
- children: /* @__PURE__ */ c(zn, { className: "h-4 w-4" })
4504
+ children: /* @__PURE__ */ l(zn, { className: "h-4 w-4" })
4498
4505
  }
4499
4506
  )
4500
4507
  ] }),
4501
- /* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(
4508
+ /* @__PURE__ */ l("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(
4502
4509
  fc,
4503
4510
  {
4504
4511
  close: f,
@@ -4509,13 +4516,13 @@ const vu = () => {
4509
4516
  ) }) })
4510
4517
  ] }) })
4511
4518
  ] });
4512
- }, hc = Kr(null), fn = {
4519
+ }, hc = qr(null), hn = {
4513
4520
  didCatch: !1,
4514
4521
  error: null
4515
4522
  };
4516
- class gc extends Vr {
4523
+ class gc extends Kr {
4517
4524
  constructor(t) {
4518
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = fn;
4525
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = hn;
4519
4526
  }
4520
4527
  static getDerivedStateFromError(t) {
4521
4528
  return {
@@ -4533,7 +4540,7 @@ class gc extends Vr {
4533
4540
  (n = (s = this.props).onReset) === null || n === void 0 || n.call(s, {
4534
4541
  args: a,
4535
4542
  reason: "imperative-api"
4536
- }), this.setState(fn);
4543
+ }), this.setState(hn);
4537
4544
  }
4538
4545
  }
4539
4546
  componentDidCatch(t, n) {
@@ -4552,7 +4559,7 @@ class gc extends Vr {
4552
4559
  next: r,
4553
4560
  prev: t.resetKeys,
4554
4561
  reason: "keys"
4555
- }), this.setState(fn);
4562
+ }), this.setState(hn);
4556
4563
  }
4557
4564
  }
4558
4565
  render() {
@@ -4567,20 +4574,20 @@ class gc extends Vr {
4567
4574
  } = this.state;
4568
4575
  let o = t;
4569
4576
  if (a) {
4570
- const l = {
4577
+ const c = {
4571
4578
  error: i,
4572
4579
  resetErrorBoundary: this.resetErrorBoundary
4573
4580
  };
4574
4581
  if (typeof n == "function")
4575
- o = n(l);
4582
+ o = n(c);
4576
4583
  else if (s)
4577
- o = qn(s, l);
4584
+ o = Kn(s, c);
4578
4585
  else if (r !== void 0)
4579
4586
  o = r;
4580
4587
  else
4581
4588
  throw i;
4582
4589
  }
4583
- return qn(hc.Provider, {
4590
+ return Kn(hc.Provider, {
4584
4591
  value: {
4585
4592
  didCatch: a,
4586
4593
  error: i,
@@ -4609,10 +4616,10 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4609
4616
  try {
4610
4617
  return { isValid: !0, parsed: JSON.parse(s), error: null, placeholders: n };
4611
4618
  } catch (a) {
4612
- const i = a, o = i.message.match(/position (\d+)/), l = o ? parseInt(o[1]) : void 0;
4619
+ const i = a, o = i.message.match(/position (\d+)/), c = o ? parseInt(o[1]) : void 0;
4613
4620
  let u, f;
4614
- if (l !== void 0) {
4615
- const d = s.substring(0, l).split(`
4621
+ if (c !== void 0) {
4622
+ const d = s.substring(0, c).split(`
4616
4623
  `);
4617
4624
  u = d.length, f = d[d.length - 1].length + 1;
4618
4625
  }
@@ -4624,7 +4631,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4624
4631
  message: i.message,
4625
4632
  line: u,
4626
4633
  column: f,
4627
- position: l
4634
+ position: c
4628
4635
  }
4629
4636
  };
4630
4637
  }
@@ -4644,7 +4651,7 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4644
4651
  n = n.replace(r[0], i);
4645
4652
  }
4646
4653
  return n;
4647
- }, Ac = F(() => import("./shared-json-ld-OwSauSop.js")), Cu = ({
4654
+ }, Ac = F(() => import("./shared-json-ld-DGW40Ccy.js")), Cu = ({
4648
4655
  value: e,
4649
4656
  onChange: t,
4650
4657
  disabled: n = !1,
@@ -4653,72 +4660,72 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4653
4660
  rows: a = 6,
4654
4661
  id: i = "json-input",
4655
4662
  pageData: o = {},
4656
- handleFieldInsert: l,
4663
+ handleFieldInsert: c,
4657
4664
  hasJsonLdForSelectedLang: u,
4658
4665
  copyJsonLDFromDefaultPage: f
4659
4666
  }) => {
4660
- const [d, h] = K("edit"), [g, A] = K(null), [T, p] = K(""), y = at(null), [P] = Cn(), w = i === "jsonLD" && V(P, "features.sharedJsonLD", !1), O = i === "jsonLD" && !u && !!f;
4667
+ const [d, h] = K("edit"), [g, y] = K(null), [T, _] = K(""), p = at(null), [A] = Nn(), P = i === "jsonLD" && V(A, "features.sharedJsonLD", !1), O = i === "jsonLD" && !u && !!f;
4661
4668
  se(() => {
4662
4669
  e.trim() === "" && t("{}");
4663
4670
  }, [e, t]);
4664
- const M = (U) => {
4671
+ const M = (B) => {
4665
4672
  if (s) return;
4666
- const v = U.target.value;
4667
- t(v);
4668
- }, L = (U) => {
4669
- if (U.key === "Tab") {
4670
- U.preventDefault();
4671
- const v = U.currentTarget, b = v.selectionStart, Y = v.selectionEnd;
4673
+ const w = B.target.value;
4674
+ t(w);
4675
+ }, L = (B) => {
4676
+ if (B.key === "Tab") {
4677
+ B.preventDefault();
4678
+ const w = B.currentTarget, b = w.selectionStart, Y = w.selectionEnd;
4672
4679
  if (b !== Y) {
4673
4680
  const de = e.substring(b, Y).split(`
4674
4681
  `);
4675
- if (U.shiftKey) {
4682
+ if (B.shiftKey) {
4676
4683
  const Ae = de.map((Ne) => Ne.startsWith(" ") ? Ne.substring(2) : Ne).join(`
4677
4684
  `), Be = e.substring(0, b) + Ae + e.substring(Y);
4678
4685
  t(Be), setTimeout(() => {
4679
- v.selectionStart = b, v.selectionEnd = b + Ae.length;
4686
+ w.selectionStart = b, w.selectionEnd = b + Ae.length;
4680
4687
  }, 0);
4681
4688
  } else {
4682
4689
  const Ae = de.map((Ne) => ` ${Ne}`).join(`
4683
4690
  `), Be = e.substring(0, b) + Ae + e.substring(Y);
4684
4691
  t(Be), setTimeout(() => {
4685
- v.selectionStart = b, v.selectionEnd = b + Ae.length;
4692
+ w.selectionStart = b, w.selectionEnd = b + Ae.length;
4686
4693
  }, 0);
4687
4694
  }
4688
4695
  } else {
4689
4696
  const $ = e.substring(0, b) + " " + e.substring(Y);
4690
4697
  t($), setTimeout(() => {
4691
- v.selectionStart = v.selectionEnd = b + 2;
4698
+ w.selectionStart = w.selectionEnd = b + 2;
4692
4699
  }, 0);
4693
4700
  }
4694
4701
  }
4695
4702
  };
4696
4703
  se(() => {
4697
- const U = ls(e);
4698
- if (U.isValid)
4699
- if (A(null), U.parsed) {
4700
- const v = yc(U.parsed, o);
4701
- p(v);
4704
+ const B = ls(e);
4705
+ if (B.isValid)
4706
+ if (y(null), B.parsed) {
4707
+ const w = yc(B.parsed, o);
4708
+ _(w);
4702
4709
  } else
4703
- p("");
4710
+ _("");
4704
4711
  else
4705
- A(U.error), p("");
4712
+ y(B.error), _("");
4706
4713
  }, [e, o]);
4707
4714
  const pe = () => {
4708
- const U = ls(e);
4709
- if (U.isValid && U.parsed) {
4710
- const v = pc(U.parsed, U.placeholders);
4711
- t(v);
4715
+ const B = ls(e);
4716
+ if (B.isValid && B.parsed) {
4717
+ const w = pc(B.parsed, B.placeholders);
4718
+ t(w);
4712
4719
  }
4713
4720
  }, ye = () => {
4714
- g != null && g.position && y.current && (y.current.focus(), y.current.setSelectionRange(g.position, g.position + 1));
4721
+ g != null && g.position && p.current && (p.current.focus(), p.current.setSelectionRange(g.position, g.position + 1));
4715
4722
  };
4716
- return /* @__PURE__ */ c(gc, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Pa, { value: d, onValueChange: h, className: "w-full", children: [
4723
+ return /* @__PURE__ */ l(gc, { fallback: /* @__PURE__ */ l("div", { children: "Some error" }), children: /* @__PURE__ */ l("div", { className: "space-y-2", children: /* @__PURE__ */ m(Pa, { value: d, onValueChange: h, className: "w-full", children: [
4717
4724
  /* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
4718
4725
  /* @__PURE__ */ m(va, { className: "w-max", children: [
4719
4726
  /* @__PURE__ */ m(nn, { value: "edit", className: "flex items-center gap-1", children: [
4720
- /* @__PURE__ */ c(Qa, { className: "h-4 w-4" }),
4721
- /* @__PURE__ */ c("span", { children: "Edit" })
4727
+ /* @__PURE__ */ l(Qa, { className: "h-4 w-4" }),
4728
+ /* @__PURE__ */ l("span", { children: "Edit" })
4722
4729
  ] }),
4723
4730
  /* @__PURE__ */ m(
4724
4731
  nn,
@@ -4727,36 +4734,36 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4727
4734
  className: "flex items-center gap-1",
4728
4735
  disabled: !e.trim() || g !== null || O,
4729
4736
  children: [
4730
- /* @__PURE__ */ c($a, { className: "h-4 w-4" }),
4731
- /* @__PURE__ */ c("span", { children: "Preview" })
4737
+ /* @__PURE__ */ l($a, { className: "h-4 w-4" }),
4738
+ /* @__PURE__ */ l("span", { children: "Preview" })
4732
4739
  ]
4733
4740
  }
4734
4741
  ),
4735
- w && /* @__PURE__ */ m(
4742
+ P && /* @__PURE__ */ m(
4736
4743
  nn,
4737
4744
  {
4738
4745
  value: "shared",
4739
4746
  className: "flex items-center gap-1",
4740
4747
  disabled: !e.trim() || g !== null,
4741
4748
  children: [
4742
- /* @__PURE__ */ c(ja, { className: "h-4 w-4" }),
4743
- /* @__PURE__ */ c("span", { children: "Shared" })
4749
+ /* @__PURE__ */ l(ja, { className: "h-4 w-4" }),
4750
+ /* @__PURE__ */ l("span", { children: "Shared" })
4744
4751
  ]
4745
4752
  }
4746
4753
  )
4747
4754
  ] }),
4748
- O ? null : d === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
4755
+ O ? null : d === "edit" && !s && /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ l(
4749
4756
  dc,
4750
4757
  {
4751
4758
  dataType: "value",
4752
4759
  data: o ?? {},
4753
- onSelect: (U) => l && l(U, i)
4760
+ onSelect: (B) => c && c(B, i)
4754
4761
  }
4755
4762
  ) })
4756
4763
  ] }),
4757
4764
  /* @__PURE__ */ m(sn, { value: "edit", className: "relative mt-0", children: [
4758
- !O && d === "edit" && /* @__PURE__ */ c(Gn, { content: "Format JSON", side: "right", showTooltip: !n && !g, children: /* @__PURE__ */ c(
4759
- B,
4765
+ !O && d === "edit" && /* @__PURE__ */ l(xn, { content: "Format JSON", side: "right", showTooltip: !n && !g, children: /* @__PURE__ */ l(
4766
+ U,
4760
4767
  {
4761
4768
  type: "button",
4762
4769
  variant: "outline",
@@ -4764,19 +4771,19 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4764
4771
  onClick: pe,
4765
4772
  className: "absolute right-1 top-1 h-6 w-6 p-1",
4766
4773
  disabled: !e.trim() || n || g !== null,
4767
- children: /* @__PURE__ */ c(za, {})
4774
+ children: /* @__PURE__ */ l(za, {})
4768
4775
  }
4769
4776
  ) }),
4770
- O ? /* @__PURE__ */ c("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
4771
- /* @__PURE__ */ c("div", { className: "max-w-xl text-center text-xs text-gray-500", children: "JSON-LD for is not added for selected language. JSON LD will be used from default language." }),
4772
- /* @__PURE__ */ m(B, { type: "button", variant: "default", size: "sm", onClick: f, children: [
4773
- /* @__PURE__ */ c(Ss, {}),
4777
+ O ? /* @__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: [
4778
+ /* @__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." }),
4779
+ /* @__PURE__ */ m(U, { type: "button", variant: "default", size: "sm", onClick: f, children: [
4780
+ /* @__PURE__ */ l(Ts, {}),
4774
4781
  "Copy & Edit from default language"
4775
4782
  ] })
4776
- ] }) }) : /* @__PURE__ */ c(
4777
- Kn,
4783
+ ] }) }) : /* @__PURE__ */ l(
4784
+ Vn,
4778
4785
  {
4779
- ref: y,
4786
+ ref: p,
4780
4787
  id: i,
4781
4788
  name: i,
4782
4789
  className: `rounded-md border border-input text-xs ${g ? "border-red-500" : ""}`,
@@ -4790,18 +4797,18 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4790
4797
  }
4791
4798
  ),
4792
4799
  g && /* @__PURE__ */ m(wa, { variant: "destructive", className: "mt-2", children: [
4793
- /* @__PURE__ */ c(Wa, { className: "h-4 w-4" }),
4800
+ /* @__PURE__ */ l(Wa, { className: "h-4 w-4" }),
4794
4801
  /* @__PURE__ */ m(ba, { className: "flex flex-col", children: [
4795
- /* @__PURE__ */ c("span", { className: "font-medium", children: "Invalid JSON" }),
4796
- /* @__PURE__ */ c("span", { className: "text-sm", children: g.message }),
4802
+ /* @__PURE__ */ l("span", { className: "font-medium", children: "Invalid JSON" }),
4803
+ /* @__PURE__ */ l("span", { className: "text-sm", children: g.message }),
4797
4804
  g.line && g.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
4798
4805
  "Error at line ",
4799
4806
  g.line,
4800
4807
  ", column ",
4801
4808
  g.column
4802
4809
  ] }),
4803
- /* @__PURE__ */ c(
4804
- B,
4810
+ /* @__PURE__ */ l(
4811
+ U,
4805
4812
  {
4806
4813
  type: "button",
4807
4814
  variant: "link",
@@ -4815,126 +4822,126 @@ const Ec = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ls = (e) => {
4815
4822
  ] })
4816
4823
  ] }),
4817
4824
  /* @__PURE__ */ m(sn, { value: "preview", className: "mt-0", children: [
4818
- /* @__PURE__ */ c(Kn, { rows: a, value: T, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4819
- /* @__PURE__ */ c("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
4825
+ /* @__PURE__ */ l(Vn, { rows: a, value: T, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4826
+ /* @__PURE__ */ l("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
4820
4827
  ] }),
4821
- w && /* @__PURE__ */ c(sn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(Ac, {}) }) })
4828
+ P && /* @__PURE__ */ l(sn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ l(H, { children: /* @__PURE__ */ l(Ac, {}) }) })
4822
4829
  ] }) }) });
4823
4830
  };
4824
4831
  if (typeof window > "u")
4825
4832
  throw new Error("@chaibuilder/pages is not available on the server");
4826
4833
  export {
4827
- nu as $,
4834
+ yu as $,
4828
4835
  E as A,
4829
- Ls as B,
4830
- Ws as C,
4831
- Ko as D,
4832
- Zc as E,
4833
- eu as F,
4834
- De as G,
4835
- pn as H,
4836
- tu as I,
4837
- Yc as J,
4838
- ou as K,
4836
+ Ns as B,
4837
+ Fs as C,
4838
+ zs as D,
4839
+ Ko as E,
4840
+ Zc as F,
4841
+ eu as G,
4842
+ De as H,
4843
+ yn as I,
4844
+ tu as J,
4845
+ Yc as K,
4839
4846
  Lt as L,
4840
- lt as M,
4841
- du as N,
4842
- lu as O,
4847
+ ou as M,
4848
+ lt as N,
4849
+ du as O,
4843
4850
  uu as P,
4844
- ko as Q,
4845
- ll as R,
4851
+ lu as Q,
4852
+ ko as R,
4846
4853
  ru as S,
4847
- Gn as T,
4848
- yn as U,
4849
- sl as V,
4850
- mu as W,
4851
- Eu as X,
4852
- ol as Y,
4853
- pu as Z,
4854
- yu as _,
4854
+ xn as T,
4855
+ ll as U,
4856
+ An as V,
4857
+ sl as W,
4858
+ mu as X,
4859
+ Eu as Y,
4860
+ ol as Z,
4861
+ pu as _,
4855
4862
  oo as a,
4856
- Wc as a0,
4857
- cu as a1,
4858
- Z as a2,
4859
- Co as a3,
4860
- Hl as a4,
4861
- su as a5,
4862
- Gt as a6,
4863
- Su as a7,
4864
- gu as a8,
4865
- hu as a9,
4866
- zc as aA,
4867
- Qc as aB,
4868
- Vi as aC,
4869
- xc as aD,
4870
- bs as aE,
4871
- io as aF,
4872
- Ni as aG,
4873
- Cn as aH,
4874
- Pi as aI,
4875
- dc as aJ,
4876
- Iu as aK,
4877
- Oc as aL,
4878
- gc as aM,
4879
- Pu as aN,
4880
- be as aO,
4881
- wu as aP,
4882
- sc as aQ,
4883
- vu as aR,
4884
- bu as aS,
4885
- Jt as aT,
4886
- co as aU,
4887
- Dc as aV,
4863
+ nu as a0,
4864
+ Wc as a1,
4865
+ cu as a2,
4866
+ Z as a3,
4867
+ Co as a4,
4868
+ Hl as a5,
4869
+ su as a6,
4870
+ Gt as a7,
4871
+ Su as a8,
4872
+ gu as a9,
4873
+ Hc as aA,
4874
+ jc as aB,
4875
+ zc as aC,
4876
+ Qc as aD,
4877
+ Vi as aE,
4878
+ xc as aF,
4879
+ ws as aG,
4880
+ io as aH,
4881
+ Ni as aI,
4882
+ Nn as aJ,
4883
+ dc as aK,
4884
+ Iu as aL,
4885
+ Oc as aM,
4886
+ gc as aN,
4887
+ Pu as aO,
4888
+ be as aP,
4889
+ wu as aQ,
4890
+ sc as aR,
4891
+ vu as aS,
4892
+ bu as aT,
4893
+ Jt as aU,
4894
+ co as aV,
4888
4895
  ti as aW,
4889
- Bs as aa,
4890
- Oe as ab,
4891
- rl as ac,
4892
- fu as ad,
4893
- iu as ae,
4894
- au as af,
4895
- xt as ag,
4896
- Xc as ah,
4897
- ui as ai,
4898
- mi as aj,
4899
- N as ak,
4900
- I as al,
4901
- nc as am,
4902
- Kc as an,
4903
- On as ao,
4904
- ie as ap,
4905
- an as aq,
4906
- ce as ar,
4907
- Ln as as,
4908
- Gc as at,
4909
- Vc as au,
4910
- $c as av,
4911
- Cu as aw,
4912
- ls as ax,
4913
- Hc as ay,
4914
- jc as az,
4915
- Is as b,
4896
+ hu as aa,
4897
+ Us as ab,
4898
+ Oe as ac,
4899
+ rl as ad,
4900
+ fu as ae,
4901
+ iu as af,
4902
+ au as ag,
4903
+ xt as ah,
4904
+ Xc as ai,
4905
+ Pi as aj,
4906
+ ui as ak,
4907
+ mi as al,
4908
+ N as am,
4909
+ I as an,
4910
+ nc as ao,
4911
+ Kc as ap,
4912
+ Dn as aq,
4913
+ ie as ar,
4914
+ on as as,
4915
+ ce as at,
4916
+ kn as au,
4917
+ Gc as av,
4918
+ Vc as aw,
4919
+ $c as ax,
4920
+ Cu as ay,
4921
+ ls as az,
4922
+ bs as b,
4916
4923
  Rc as c,
4917
4924
  Uc as d,
4918
4925
  Re as e,
4919
- Dn as f,
4926
+ Gn as f,
4920
4927
  xe as g,
4921
4928
  Ce as h,
4922
4929
  le as i,
4923
- vs as j,
4930
+ Ps as j,
4924
4931
  ai as k,
4925
4932
  Mc as l,
4926
4933
  Bc as m,
4927
4934
  Fc as n,
4928
4935
  qc as o,
4929
4936
  Xl as p,
4930
- _u as q,
4931
- J as r,
4932
- zs as s,
4933
- on as t,
4934
- Ns as u,
4935
- Au as v,
4936
- Tu as w,
4937
- q as x,
4938
- el as y,
4939
- qs as z
4937
+ Dc as q,
4938
+ _u as r,
4939
+ J as s,
4940
+ ln as t,
4941
+ Cs as u,
4942
+ js as v,
4943
+ Au as w,
4944
+ Tu as x,
4945
+ q as y,
4946
+ el as z
4940
4947
  };