@chaibuilder/sdk 4.0.0-beta.29 → 4.0.0-beta.30

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 (124) hide show
  1. package/dist/{2SSKDMRQ-KSwVJqI-.js → 2SSKDMRQ-B5Tzwoh4.js} +2 -2
  2. package/dist/{2SSKDMRQ-Cdt-mHqV.cjs → 2SSKDMRQ-Dub3pRV1.cjs} +1 -1
  3. package/dist/{AP7HFJJL-7jzYJmcy.js → AP7HFJJL-CfmdXP9M.js} +1 -1
  4. package/dist/{AP7HFJJL-DLGcUScX.cjs → AP7HFJJL-Dt6MglIr.cjs} +1 -1
  5. package/dist/{IconPicker-rw-TNxlL.js → IconPicker-Cn8Z42-Z.js} +1 -1
  6. package/dist/{IconPicker-CnojLBlG.cjs → IconPicker-DLqOB-ri.cjs} +1 -1
  7. package/dist/{WDYDFRGG-CdC9BtV1.js → WDYDFRGG-BOpmZGHS.js} +2 -2
  8. package/dist/{WDYDFRGG-BR5xQ3nl.cjs → WDYDFRGG-Dfj1ikzw.cjs} +1 -1
  9. package/dist/{actions-registery-NNrIYJwx.js → actions-registery-Bj-j1k5i.js} +58 -54
  10. package/dist/{actions-registery-Dl5Udl5U.cjs → actions-registery-Cy1lqUVI.cjs} +7 -7
  11. package/dist/actions.cjs +1 -1
  12. package/dist/actions.js +2 -2
  13. package/dist/{active-in-another-tab-Bz2VTL_J.js → active-in-another-tab-CEWvA8SG.js} +2 -2
  14. package/dist/{active-in-another-tab-DuJ5LGx2.cjs → active-in-another-tab-DV83cJ_v.cjs} +1 -1
  15. package/dist/{add-new-language-page-DsW9jOZg.js → add-new-language-page-B3wK94-S.js} +3 -3
  16. package/dist/{add-new-language-page-cwVvf4go.cjs → add-new-language-page-C3Uu92KN.cjs} +1 -1
  17. package/dist/{add-new-page-BmVMrSpB.cjs → add-new-page-BOE-xwBc.cjs} +1 -1
  18. package/dist/{add-new-page-D_FoJSTj.js → add-new-page-DsvGVrR8.js} +2 -2
  19. package/dist/{ai-panel-content-DPbgkg3w.js → ai-panel-content-BBSzHZG6.js} +3 -3
  20. package/dist/{ai-panel-content-DkZIm58g.cjs → ai-panel-content-DBlnfRRi.cjs} +1 -1
  21. package/dist/{ai-panel-default-lang-N2dwgUWq.js → ai-panel-default-lang-BVBuwnyU.js} +4 -4
  22. package/dist/{ai-panel-default-lang-CbgD5Jf0.cjs → ai-panel-default-lang-DJJWAtN0.cjs} +2 -2
  23. package/dist/{ai-panel-other-lang-nEMuKeDm.js → ai-panel-other-lang-fIEZkmRy.js} +3 -3
  24. package/dist/{ai-panel-other-lang-CcEoahu_.cjs → ai-panel-other-lang-v8Yd5ggR.cjs} +1 -1
  25. package/dist/{ai-prompt-input-DeTqloue.cjs → ai-prompt-input-C7ha_0Cn.cjs} +1 -1
  26. package/dist/{ai-prompt-input-eqaVCOh6.js → ai-prompt-input-CmSfGxTN.js} +1 -1
  27. package/dist/{ai-translation-prompt-C6sEuyAD.cjs → ai-translation-prompt-BzTGAS3W.cjs} +1 -1
  28. package/dist/{ai-translation-prompt-Dhig6nJr.js → ai-translation-prompt-CtBmvsRy.js} +1 -1
  29. package/dist/{apply-binding-BLuPA9Ic.cjs → apply-binding-9XSrYzAE.cjs} +1 -1
  30. package/dist/{apply-binding-FppRmplj.js → apply-binding-chfbBKi2.js} +1 -1
  31. package/dist/{change-password-modal-975CYjTH.cjs → change-password-modal-CdOwtCWN.cjs} +1 -1
  32. package/dist/{change-password-modal-BfYrlENQ.js → change-password-modal-DxkhBI5d.js} +2 -2
  33. package/dist/{code-editor-uyPykDYt.js → code-editor-Bpn8z2fo.js} +1 -1
  34. package/dist/{code-editor-BgzRvHeO.cjs → code-editor-fL3s6Hk7.cjs} +1 -1
  35. package/dist/{continue-editing-in-this-client-BkIfhxR5.js → continue-editing-in-this-client-DDB816CQ.js} +2 -2
  36. package/dist/{continue-editing-in-this-client-D5L2BsCZ.cjs → continue-editing-in-this-client-DjxpjsA8.cjs} +1 -1
  37. package/dist/core.cjs +1 -1
  38. package/dist/core.d.ts +3 -0
  39. package/dist/core.js +2 -2
  40. package/dist/{css-import-modal-B2LRqSiI.js → css-import-modal-CL8SIC3K.js} +1 -1
  41. package/dist/{css-import-modal-BEM9VcQM.cjs → css-import-modal-CRC7bK1c.cjs} +1 -1
  42. package/dist/{delete-design-token-CHjmkGql.js → delete-design-token-B0md8qUi.js} +1 -1
  43. package/dist/{delete-design-token-B7hfYdve.cjs → delete-design-token-C94IgWdi.cjs} +1 -1
  44. package/dist/{delete-page-VXXUi4o_.js → delete-page-41tvYcEw.js} +2 -2
  45. package/dist/{delete-page-EP1oFayO.cjs → delete-page-BHPlx8ec.cjs} +1 -1
  46. package/dist/{design-token-usage-BHgHUVIm.js → design-token-usage-CyOY4Pni.js} +1 -1
  47. package/dist/{design-token-usage-CKYxesym.cjs → design-token-usage-DtdjTCn3.cjs} +1 -1
  48. package/dist/{digital-asset-manager-DPB63e09.js → digital-asset-manager-C_ru4Zes.js} +3 -3
  49. package/dist/{digital-asset-manager-mauSGcX8.cjs → digital-asset-manager-DSLQz8qk.cjs} +1 -1
  50. package/dist/{duplicate-page-xqVPqSdI.cjs → duplicate-page-BvggF83O.cjs} +1 -1
  51. package/dist/{duplicate-page-CPJ8jZWu.js → duplicate-page-DMmDdmfS.js} +3 -3
  52. package/dist/{dynamic-page-selector-BAt6tb-P.cjs → dynamic-page-selector-C5agz2Ze.cjs} +1 -1
  53. package/dist/{dynamic-page-selector-C-1FD1tF.js → dynamic-page-selector-D2z51nLi.js} +2 -2
  54. package/dist/{image-editor-DcPOgd6x.cjs → image-editor-DFmlG348.cjs} +1 -1
  55. package/dist/{image-editor-BwibmVH2.js → image-editor-sKvOFo-S.js} +1 -1
  56. package/dist/{index-uaxWNK6D.js → index-BFnMzGe6.js} +6 -6
  57. package/dist/index-Bzn_gpaK.cjs +5 -0
  58. package/dist/{index-DD4a1mxX.js → index-CA1OwKJX.js} +696 -692
  59. package/dist/{index-D97RTITR.cjs → index-D30xvFa5.cjs} +2 -2
  60. package/dist/{json-diff-viewer-CRYlX0Bw.js → json-diff-viewer-B5wAR5GY.js} +2 -2
  61. package/dist/{json-diff-viewer-DLdKPJ46.cjs → json-diff-viewer-DRQSNhaS.cjs} +1 -1
  62. package/dist/{lang-panel-DSRp7OPA.cjs → lang-panel-BZsICcBR.cjs} +1 -1
  63. package/dist/{lang-panel-YA6NOcG7.js → lang-panel-q04hEq5o.js} +3 -3
  64. package/dist/{manage-design-tokens-RpwzB7fs.js → manage-design-tokens-Cene3KEu.js} +2 -2
  65. package/dist/{manage-design-tokens-BxpYkJm0.cjs → manage-design-tokens-Di5C6nTj.cjs} +1 -1
  66. package/dist/{mark-as-template-D-K1Z_I0.cjs → mark-as-template-CT-hLGIW.cjs} +1 -1
  67. package/dist/{mark-as-template-BvfAHmgj.js → mark-as-template-raTtKmQ9.js} +2 -2
  68. package/dist/{nested-path-selector-content-Dz5brrWk.cjs → nested-path-selector-content-CSUHTj9G.cjs} +1 -1
  69. package/dist/{nested-path-selector-content-D0WcjzaQ.js → nested-path-selector-content-CzQ2Lorl.js} +1 -1
  70. package/dist/{no-language-page-content-EI0eJeeV.js → no-language-page-content-Bg6VjMVY.js} +2 -2
  71. package/dist/{no-language-page-content-D57KCchk.cjs → no-language-page-content-Bkj8JpEY.cjs} +1 -1
  72. package/dist/{no-language-page-dialog-Cd0tJat5.js → no-language-page-dialog-CRPMr9YT.js} +2 -2
  73. package/dist/{no-language-page-dialog-Be0JREBD.cjs → no-language-page-dialog-TffLjvJn.cjs} +1 -1
  74. package/dist/{page-creator-TPHFsqgH.js → page-creator-CQhE1tgn.js} +3 -3
  75. package/dist/{page-creator-BY0-bSqC.cjs → page-creator-RrUhy8uH.cjs} +1 -1
  76. package/dist/{page-lock-kI8Kh0VS.cjs → page-lock-D9h5pgxn.cjs} +1 -1
  77. package/dist/{page-lock-CBmHxQZh.js → page-lock-Dye1JZBB.js} +2 -2
  78. package/dist/{page-locked-dialog-Cza6zchm.js → page-locked-dialog-BMjPVyHF.js} +2 -2
  79. package/dist/{page-locked-dialog-CXiWSFIU.cjs → page-locked-dialog-b2_f-A7a.cjs} +1 -1
  80. package/dist/{page-manager-new-2VhsnuvL.cjs → page-manager-new-2mDjnSqc.cjs} +1 -1
  81. package/dist/{page-manager-new-BWjXTyj0.js → page-manager-new-DP1b_dXt.js} +3 -3
  82. package/dist/{page-manager-search-and-filter-BqTklpl7.cjs → page-manager-search-and-filter-D0ZXojiu.cjs} +1 -1
  83. package/dist/{page-manager-search-and-filter-CzPiU7eE.js → page-manager-search-and-filter-DCcYyoPO.js} +2 -2
  84. package/dist/{page-revisions-content-BxLkaSIJ.cjs → page-revisions-content-BX8ZWebc.cjs} +1 -1
  85. package/dist/{page-revisions-content-CuzcWYwa.js → page-revisions-content-mDwvH6J-.js} +3 -3
  86. package/dist/pages.cjs +1 -1
  87. package/dist/pages.d.ts +3 -4
  88. package/dist/pages.js +1 -1
  89. package/dist/{publish-pages-content-BAgzGIpO.cjs → publish-pages-content-CR4e9inX.cjs} +1 -1
  90. package/dist/{publish-pages-content-CyUbbAWn.js → publish-pages-content-M_Kb8b-F.js} +3 -3
  91. package/dist/render.cjs +1 -1
  92. package/dist/render.js +2 -2
  93. package/dist/{rte-widget-modal-D0wcEQUo.cjs → rte-widget-modal-BRSm1Lnp.cjs} +1 -1
  94. package/dist/{rte-widget-modal-bMEqSEmS.js → rte-widget-modal-CVZDktXI.js} +1 -1
  95. package/dist/{save-to-lib-DEcXV01t.js → save-to-lib-B1ccNhR2.js} +2 -2
  96. package/dist/{save-to-lib-DqUsuiLn.cjs → save-to-lib-CYEAWxL9.cjs} +1 -1
  97. package/dist/{selected-block-display-BZhMhmSe.cjs → selected-block-display-MyU0rS4q.cjs} +1 -1
  98. package/dist/{selected-block-display-XKVTJyBL.js → selected-block-display-aGR7p5JC.js} +2 -2
  99. package/dist/seo-panel-B5mDwpaT.cjs +2 -0
  100. package/dist/{seo-panel-BSqrXr0E.js → seo-panel-P9uixkoZ.js} +139 -139
  101. package/dist/{shared-json-ld-CNFCdi3P.js → shared-json-ld-Ba9GcvLr.js} +2 -2
  102. package/dist/{shared-json-ld-CrechTP-.cjs → shared-json-ld-DhQJh_mT.cjs} +1 -1
  103. package/dist/{slug-input-CBm5u9B7.cjs → slug-input-BdMnlYKT.cjs} +1 -1
  104. package/dist/{slug-input-BTKl_Yx7.js → slug-input-CAfGHqMW.js} +1 -1
  105. package/dist/supabase-actions.cjs +1 -1
  106. package/dist/supabase-actions.js +1 -1
  107. package/dist/{take-over-request-SZlFQ56u.cjs → take-over-request-BeHTL28z.cjs} +1 -1
  108. package/dist/{take-over-request-C204CKr0.js → take-over-request-CXjaDliJ.js} +2 -2
  109. package/dist/{theme-panel-footer-DWIvSz85.js → theme-panel-footer-BkwhuXM7.js} +2 -2
  110. package/dist/{theme-panel-footer-CTXiHz43.cjs → theme-panel-footer-D_gxD0j4.cjs} +1 -1
  111. package/dist/{translation-warning-modal-BfGLW4Hm.js → translation-warning-modal-CTfArsb1.js} +1 -1
  112. package/dist/{translation-warning-modal-BuQYLXFU.cjs → translation-warning-modal-D_vt37fW.cjs} +1 -1
  113. package/dist/types.d.ts +3 -4
  114. package/dist/{unmark-as-template-D6UyYNHB.cjs → unmark-as-template-D2bvjGKt.cjs} +1 -1
  115. package/dist/{unmark-as-template-CVE-_1Td.js → unmark-as-template-vFgMIdxN.js} +2 -2
  116. package/dist/{unpublish-page-DAbaiV3e.cjs → unpublish-page-CPjHmtSM.cjs} +1 -1
  117. package/dist/{unpublish-page-Dh1nqqKj.js → unpublish-page-CxkjTzBB.js} +2 -2
  118. package/dist/web-blocks.cjs +1 -1
  119. package/dist/web-blocks.js +29 -21
  120. package/dist/{web-preview-DK8oUz_b.js → web-preview--by73Vvr.js} +1 -1
  121. package/dist/{web-preview-BPVH6Vy5.cjs → web-preview-C3AMe_BB.cjs} +1 -1
  122. package/package.json +1 -1
  123. package/dist/index-DoCX_e4r.cjs +0 -5
  124. package/dist/seo-panel-DqOGEQ2A.cjs +0 -2
@@ -1,27 +1,27 @@
1
- var Vr = Object.defineProperty;
1
+ var Hr = Object.defineProperty;
2
2
  var Yn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Hr = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var un = (e, t, n) => Hr(e, typeof t != "symbol" ? t + "" : t, n), Jn = (e, t, n) => t.has(e) || Yn("Cannot " + n);
5
+ var qr = (e, t, n) => t in e ? Hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var dn = (e, t, n) => qr(e, typeof t != "symbol" ? t + "" : t, n), Jn = (e, t, n) => t.has(e) || Yn("Cannot " + n);
7
7
  var S = (e, t, n) => (Jn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), x = (e, t, n) => t.has(e) ? Yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, s) => (Jn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n);
8
8
  import { jsxs as m, jsx as c, Fragment as pe } from "react/jsx-runtime";
9
- import { d as we, aA as qr, ap as vs, s as Gn, t as On, v as xn, w as ue, R as Me, x as tn, y as nn, z as sn, aB as bs, aC as Is, ae as $r, af as Qr, aD as zr, aE as Wr, ao as Ns, aF as jr, ag as Dt, D as Rn, aG as Yr, aH as Jr, aj as Zr, au as Xr, at as ea, av as ta, e as Ls, F as na, G as sa, H as ra, I as aa, J as ia, K as oa, M as ca, O as la, Q as ua, aI as da, aa as fa, ab as ha, f as ga, g as ma, aq as Ea, ar as pa, as as dn, aJ as fn, T as Zn } from "./index-uaxWNK6D.js";
10
- import { B, h as ya, j as Aa, v as Ut, e as Xn, m as Ta, q as Sa, x as _a, D as Pa, F as wa } from "./register-chai-top-bar-D6GjnauV.js";
11
- import { atom as Ae, useAtom as Te, useSetAtom as kn, useAtomValue as va } from "jotai";
12
- import { get as q, noop as rn, reverse as ba, sortBy as Ia, find as ce, minBy as Cs, values as Gs, first as Os, groupBy as Na, keyBy as La, map as Qt, isEmpty as ge, compact as xs, each as Ca, upperCase as es, filter as Rs, includes as Ga, isArray as Oa, has as Dn, startCase as xa, isFunction as Ra, pick as ks, cloneDeep as ka, isEqual as ts } from "lodash-es";
9
+ import { d as we, aA as $r, ap as vs, s as On, t as xn, v as Rn, w as ue, R as Me, x as tn, y as nn, z as sn, aB as bs, aC as Is, ae as Qr, af as zr, aD as Wr, aE as jr, ao as Ns, aF as Yr, ag as Dt, D as kn, aG as Jr, aH as Zr, aj as Xr, au as ea, at as ta, av as na, e as Ls, F as sa, G as ra, H as aa, I as ia, J as oa, K as ca, M as la, O as ua, Q as da, aI as fa, aa as ha, ab as ga, f as ma, g as Ea, aq as pa, ar as ya, as as fn, aJ as hn, T as Zn } from "./index-BFnMzGe6.js";
10
+ import { B, h as Aa, j as Ta, v as Ut, e as Xn, m as Sa, q as _a, x as Pa, D as wa, F as va } from "./register-chai-top-bar-D6GjnauV.js";
11
+ import { atom as Ae, useAtom as Te, useSetAtom as Dn, useAtomValue as ba } from "jotai";
12
+ import { get as q, noop as rn, reverse as Ia, sortBy as Na, find as ce, minBy as Cs, values as Gs, first as Os, groupBy as La, keyBy as Ca, map as Qt, isEmpty as ge, compact as xs, each as Ga, upperCase as es, filter as Rs, includes as Oa, isArray as xa, has as Un, startCase as Ra, isFunction as ka, pick as ks, cloneDeep as Da, isEqual as ts } from "lodash-es";
13
13
  import * as Q from "react";
14
- import Da, { useMemo as $, useCallback as z, useState as V, useEffect as j, useRef as oe, Suspense as J, lazy as H, startTransition as ns } from "react";
15
- import { useQuery as se, useMutation as X, useQueryClient as Y, onlineManager as Ds, QueryClient as Ua, QueryClientProvider as Ma } from "@tanstack/react-query";
16
- import { CopyPlusIcon as Ba, Pencil as Us, Power as Fa, Trash as Ka, SquareLibrary as ss, LogsIcon as Va, Folder as Ha, Loader as ct, Hash as qa, File as $a, MoreHorizontal as rs, Languages as as, ChevronDown as Tn, Star as Qa, Plus as Ms, History as za, Palette as Wa, Play as ja, CheckCircle as Ya, Save as Ja, Send as is, Rocket as os, ExternalLink as Za, LanguagesIcon as Xa, User as ei, X as cs, Trash2 as ti, ImageIcon as ls, Code as ni, Eye as si, Share2 as ri, FileCode2 as ai, AlertTriangle as ii } from "lucide-react";
14
+ import Ua, { useMemo as $, useCallback as z, useState as V, useEffect as j, useRef as oe, Suspense as J, lazy as H, startTransition as ns } from "react";
15
+ import { useQuery as se, useMutation as X, useQueryClient as Y, onlineManager as Ds, QueryClient as Ma, QueryClientProvider as Ba } from "@tanstack/react-query";
16
+ import { CopyPlusIcon as Fa, Pencil as Us, Power as Ka, Trash as Va, SquareLibrary as ss, LogsIcon as Ha, Folder as qa, Loader as ct, Hash as $a, File as Qa, MoreHorizontal as rs, Languages as as, ChevronDown as Sn, Star as za, Plus as Ms, History as Wa, Palette as ja, Play as Ya, CheckCircle as Ja, Save as Za, Send as is, Rocket as os, ExternalLink as Xa, LanguagesIcon as ei, User as ti, X as cs, Trash2 as ni, ImageIcon as ls, Code as si, Eye as ri, Share2 as ai, FileCode2 as ii, AlertTriangle as oi } from "lucide-react";
17
17
  import { useTranslation as ve } from "react-i18next";
18
- import { e as oi } from "./plugin-Dkmjb2_e.js";
18
+ import { e as ci } from "./plugin-Dkmjb2_e.js";
19
19
  import { c as zt } from "./common-functions-D2lMFR6K.js";
20
20
  import { toast as D } from "sonner";
21
- import { i as ci } from "./core-QlWEXm1d.js";
22
- import { g as li } from "./apply-binding-FppRmplj.js";
23
- import { loadWebBlocks as ui } from "./web-blocks.js";
24
- import { ErrorBoundary as di } from "react-error-boundary";
21
+ import { i as li } from "./core-QlWEXm1d.js";
22
+ import { g as ui } from "./apply-binding-chfbBKi2.js";
23
+ import { loadWebBlocks as di } from "./web-blocks.js";
24
+ import { ErrorBoundary as fi } from "react-error-boundary";
25
25
  const Wt = Ae(null), p = {
26
26
  GET_GLOBAL_JSONLD_ITEMS: "GET_GLOBAL_JSONLD_ITEMS",
27
27
  GENERATE_SEO_FIELD: "GENERATE_SEO_FIELD",
@@ -86,8 +86,8 @@ const Wt = Ae(null), p = {
86
86
  UPDATE_ASSET: "UPDATE_ASSET",
87
87
  GET_ASSETS: "GET_ASSETS",
88
88
  GET_ASSET: "GET_ASSET"
89
- }, fi = Ae({}), Un = () => Te(fi), de = (e, t) => {
90
- const [n] = Un();
89
+ }, hi = Ae({}), an = () => Te(hi), de = (e, t) => {
90
+ const [n] = an();
91
91
  return $(() => q(n, e, t), [n, e, t]);
92
92
  }, I = () => de("apiUrl", "/chai/api"), Bs = () => de("realtimeAdapter", null), Fs = async (e, t, n = {}) => await fetch(e, {
93
93
  method: "POST",
@@ -96,7 +96,7 @@ const Wt = Ae(null), p = {
96
96
  ...n
97
97
  },
98
98
  body: JSON.stringify(t)
99
- }), iu = () => {
99
+ }), ou = () => {
100
100
  const e = C(), t = I();
101
101
  return z(
102
102
  async ({
@@ -164,22 +164,22 @@ const Be = (e) => {
164
164
  action: p.GET_LANGUAGE_PAGES,
165
165
  data: { id: s }
166
166
  });
167
- return ba(Ia(a, "primaryPage"));
167
+ return Ia(Na(a, "primaryPage"));
168
168
  },
169
169
  enabled: !!s
170
170
  });
171
- }, hi = Ae(null), Ks = () => Te(hi), Mn = () => {
171
+ }, gi = Ae(null), Ks = () => Te(gi), Mn = () => {
172
172
  const [e] = Ks();
173
173
  return (e == null ? void 0 : e.slug) || "";
174
174
  };
175
- function gi(e, t) {
175
+ function mi(e, t) {
176
176
  const [n, s] = V(e);
177
177
  return j(() => {
178
178
  const r = setTimeout(() => s(e), t);
179
179
  return () => clearTimeout(r);
180
180
  }, [e, t]), n;
181
181
  }
182
- const mi = ({ query: e, uuid: t }) => {
182
+ const Ei = ({ query: e, uuid: t }) => {
183
183
  const { selectedLang: n, fallbackLang: s } = we(), { data: r } = fe(), a = r == null ? void 0 : r.pageType, i = I(), o = C(), { data: l, isFetching: d } = se({
184
184
  queryKey: [p.GET_DYNAMIC_PAGES, e, a, t],
185
185
  staleTime: 3600 * 1e3,
@@ -191,8 +191,8 @@ const mi = ({ query: e, uuid: t }) => {
191
191
  enabled: !!a
192
192
  }), u = $(() => n === "" ? l.filter((f) => f.lang === "" || f.lang === s) : l.filter((f) => f.lang === n), [n, s, l]);
193
193
  return { allLangPages: l, data: u, isFetching: d };
194
- }, Ei = () => {
195
- const { selectedLang: e, fallbackLang: t } = we(), [n, s] = Ks(), [r, a] = V(""), i = gi(r, 500), { allLangPages: o, data: l, isFetching: d } = mi({ query: i }), u = z((h) => s(h), [s]), f = z((h) => a(h), [a]), g = z(() => {
194
+ }, pi = () => {
195
+ const { selectedLang: e, fallbackLang: t } = we(), [n, s] = Ks(), [r, a] = V(""), i = mi(r, 500), { allLangPages: o, data: l, isFetching: d } = Ei({ query: i }), u = z((h) => s(h), [s]), f = z((h) => a(h), [a]), g = z(() => {
196
196
  if (!n) return;
197
197
  const h = !(n != null && n.primaryPage), A = e.length === 0, y = h ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, _ = o.filter(
198
198
  (E) => (E == null ? void 0 : E.primaryPage) === y || E.id === y
@@ -210,17 +210,17 @@ const mi = ({ query: e, uuid: t }) => {
210
210
  updateSearchQuery: f,
211
211
  onChangeLanguage: g
212
212
  };
213
- }, pi = Ae({ lastSaved: void 0 }), Vs = () => Te(pi), fe = () => {
213
+ }, yi = Ae({ lastSaved: void 0 }), Vs = () => Te(yi), fe = () => {
214
214
  const [e] = be(), t = e.get("page"), { data: n, isFetching: s } = Be();
215
215
  return { data: $(() => ({ ...ce(n, { id: t }) || {} }), [n, t]), isFetching: s };
216
216
  }, Ce = () => {
217
217
  const [e] = be(), t = e.get("lang") ?? "", { data: n, isFetching: s } = Be();
218
218
  return { data: $(() => ce(n, { lang: t }) || {}, [n, t]), isFetching: s };
219
- }, yi = Ae({}), Ai = () => Te(yi), Ti = () => {
219
+ }, Ai = Ae({}), Ti = () => Te(Ai), Si = () => {
220
220
  const { data: e } = Ce(), t = Mn(), n = de("getLiveUrl", rn), s = e == null ? void 0 : e.slug, r = n(s || "/");
221
221
  return t ? r + t : r;
222
222
  }, he = {
223
- ...qr,
223
+ ...$r,
224
224
  //pages
225
225
  ADD_PAGE: "add_page",
226
226
  EDIT_PAGE: "edit_page",
@@ -243,10 +243,10 @@ const mi = ({ query: e, uuid: t }) => {
243
243
  placeholderData: [],
244
244
  queryFn: async () => t(e, { action: p.GET_PAGE_TYPES })
245
245
  });
246
- }, Si = (e) => {
246
+ }, _i = (e) => {
247
247
  const { data: t } = Ge();
248
248
  return $(() => t == null ? void 0 : t.find((n) => n.key === e), [t, e]);
249
- }, _i = () => {
249
+ }, Pi = () => {
250
250
  const e = I(), t = C();
251
251
  return X({
252
252
  mutationFn: async ({ pageType: n, query: s }) => {
@@ -263,7 +263,7 @@ const mi = ({ query: e, uuid: t }) => {
263
263
  }
264
264
  }
265
265
  });
266
- }, Pi = ({
266
+ }, wi = ({
267
267
  page: e,
268
268
  setDuplicatePage: t,
269
269
  setAddEditPage: n,
@@ -275,9 +275,9 @@ const mi = ({ query: e, uuid: t }) => {
275
275
  isLanguagePage: l
276
276
  }) => {
277
277
  const { t: d } = ve(), { hasPermission: u } = vs(), { data: f } = Ge(), g = $(() => ce(f, { key: e.pageType }), [f, e.pageType]), h = $(() => !!e.isTemplate, [e.isTemplate]), A = $(() => !!(g != null && g.hasSlug), [g == null ? void 0 : g.hasSlug]);
278
- return !u(he.EDIT_PAGE) && !u(he.DELETE_PAGE) && !u(he.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(Gn, { children: [
279
- /* @__PURE__ */ c(On, { asChild: !0, onClick: (T) => T.stopPropagation(), children: o }),
280
- /* @__PURE__ */ m(xn, { align: "center", className: "text-sm", children: [
278
+ return !u(he.EDIT_PAGE) && !u(he.DELETE_PAGE) && !u(he.UNPUBLISH_PAGE) || !e ? null : /* @__PURE__ */ m(On, { children: [
279
+ /* @__PURE__ */ c(xn, { asChild: !0, onClick: (T) => T.stopPropagation(), children: o }),
280
+ /* @__PURE__ */ m(Rn, { align: "center", className: "text-sm", children: [
281
281
  u(he.ADD_PAGE) && !l && /* @__PURE__ */ m(
282
282
  ue,
283
283
  {
@@ -286,7 +286,7 @@ const mi = ({ query: e, uuid: t }) => {
286
286
  T.stopPropagation(), t(e);
287
287
  },
288
288
  children: [
289
- /* @__PURE__ */ c(Ba, { className: "size-3" }),
289
+ /* @__PURE__ */ c(Fa, { className: "size-3" }),
290
290
  "Duplicate page"
291
291
  ]
292
292
  }
@@ -315,7 +315,7 @@ const mi = ({ query: e, uuid: t }) => {
315
315
  T.stopPropagation(), s(e);
316
316
  },
317
317
  children: [
318
- /* @__PURE__ */ c(Fa, { className: "size-3" }),
318
+ /* @__PURE__ */ c(Ka, { className: "size-3" }),
319
319
  d("Unpublish")
320
320
  ]
321
321
  }
@@ -328,7 +328,7 @@ const mi = ({ query: e, uuid: t }) => {
328
328
  T.stopPropagation(), r(e);
329
329
  },
330
330
  children: [
331
- /* @__PURE__ */ c(Ka, { className: "size-3" }),
331
+ /* @__PURE__ */ c(Va, { className: "size-3" }),
332
332
  d("Delete")
333
333
  ]
334
334
  }
@@ -367,7 +367,7 @@ const mi = ({ query: e, uuid: t }) => {
367
367
  staleTime: 300 * 1e3,
368
368
  placeholderData: {
369
369
  languages: [],
370
- theme: oi,
370
+ theme: ci,
371
371
  appKey: "",
372
372
  fallbackLang: "",
373
373
  settings: {},
@@ -401,7 +401,7 @@ const mi = ({ query: e, uuid: t }) => {
401
401
  FORCE_TAKE_OVER_REQUEST: "FORCE_TAKE_OVER_REQUEST",
402
402
  CONTINUE_EDITING_IN_THIS_CLIENT: "CONTINUE_EDITING_IN_THIS_CLIENT",
403
403
  CONTINUE_EDITING_IN_THIS_TAB_REQUEST: "CONTINUE_EDITING_IN_THIS_TAB_REQUEST"
404
- }, wi = ["sync", "join", "leave"], vi = [
404
+ }, vi = ["sync", "join", "leave"], bi = [
405
405
  re.FORCE_TAKE_OVER,
406
406
  re.TAKE_OVER_REQUEST,
407
407
  re.TAKE_OVER_APPROVED,
@@ -409,54 +409,54 @@ const mi = ({ query: e, uuid: t }) => {
409
409
  re.FORCE_TAKE_OVER_REQUEST,
410
410
  re.CONTINUE_EDITING_IN_THIS_CLIENT,
411
411
  re.CONTINUE_EDITING_IN_THIS_TAB_REQUEST
412
- ], bi = Ae({}), Hs = Ae(null), Ii = Ae(ne.CHECKING), Ni = Ae({}), Li = (e) => {
413
- const t = {}, n = Na(Gs(e).map(Os).filter(Boolean), "pageId");
412
+ ], Ii = Ae({}), Hs = Ae(null), Ni = Ae(ne.CHECKING), Li = Ae({}), Ci = (e) => {
413
+ const t = {}, n = La(Gs(e).map(Os).filter(Boolean), "pageId");
414
414
  return Object.entries(n).forEach(
415
415
  ([s, r]) => t[s] = Cs(r, "onlineAt")
416
416
  ), t;
417
- }, Ci = (e) => {
417
+ }, Gi = (e) => {
418
418
  const t = Cs(Gs(e).map(Os).filter(Boolean), "onlineAt"), n = t == null ? void 0 : t.onlineAt;
419
419
  return n ? n - 100 : +/* @__PURE__ */ new Date() - 1e3 * 60 * 60 * 4;
420
- }, an = () => {
420
+ }, on = () => {
421
421
  const { user: e } = Bn();
422
422
  return e == null ? void 0 : e.id;
423
- }, Gi = () => {
423
+ }, Oi = () => {
424
424
  const { data: e } = Fe();
425
425
  return `WEBSITE:${e == null ? void 0 : e.appKey}`;
426
426
  }, xt = () => {
427
427
  const { data: e } = fe();
428
428
  return e == null ? void 0 : e.id;
429
429
  }, Ne = crypto.randomUUID();
430
- let hn = null;
431
- const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
432
- const [e, t] = Te(bi);
430
+ let gn = null;
431
+ const dt = 10, xi = 1e3, Ri = 2, ki = 16e3, qs = () => {
432
+ const [e, t] = Te(Ii);
433
433
  return { pageToUser: e, setPageToUser: t };
434
434
  }, Se = () => {
435
- const [e, t] = Te(Ii), n = [ne.LOCKED, ne.ACTIVE_IN_ANOTHER_TAB].includes(e), s = [ne.EDITING].includes(e);
435
+ const [e, t] = Te(Ni), n = [ne.LOCKED, ne.ACTIVE_IN_ANOTHER_TAB].includes(e), s = [ne.EDITING].includes(e);
436
436
  return { pageStatus: e, setPageStatus: t, isLocked: n, isEditing: s };
437
437
  }, $s = () => {
438
- const [e, t] = Te(Ni);
438
+ const [e, t] = Te(Li);
439
439
  return { pageLockMeta: e, setPageLockMeta: t };
440
- }, ki = () => {
440
+ }, Di = () => {
441
441
  const e = xt(), { pageToUser: t } = qs();
442
442
  return $(() => t[e], [t, e]);
443
443
  }, Fn = () => {
444
444
  const e = Bs(), { setPageStatus: t } = Se(), [n] = Te(Hs);
445
445
  return j(() => {
446
- if (clearTimeout(hn), !e)
447
- return hn = setTimeout(() => {
446
+ if (clearTimeout(gn), !e)
447
+ return gn = setTimeout(() => {
448
448
  e || t(ne.EDITING);
449
- }, 500), () => clearTimeout(hn);
449
+ }, 500), () => clearTimeout(gn);
450
450
  }, [e, t]), n;
451
- }, Di = () => {
452
- const e = xt(), t = an(), n = Fn(), { setPageToUser: s } = qs(), { setPageStatus: r, pageStatus: a } = Se(), i = oe(e);
451
+ }, Ui = () => {
452
+ const e = xt(), t = on(), n = Fn(), { setPageToUser: s } = qs(), { setPageStatus: r, pageStatus: a } = Se(), i = oe(e);
453
453
  return j(() => {
454
454
  i.current = e;
455
455
  }, [e]), z(
456
456
  (o) => {
457
457
  const l = o || n;
458
458
  if (!l) return [];
459
- const d = l == null ? void 0 : l.presenceState(), u = Li(d);
459
+ const d = l == null ? void 0 : l.presenceState(), u = Ci(d);
460
460
  s(u);
461
461
  const f = u[i.current];
462
462
  if (!f)
@@ -471,8 +471,8 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
471
471
  },
472
472
  [n, s, r, t, a]
473
473
  );
474
- }, Ui = () => {
475
- const e = an(), t = xt(), n = Fn(), s = ki(), { setPageLockMeta: r } = $s(), a = oe(t);
474
+ }, Mi = () => {
475
+ const e = on(), t = xt(), n = Fn(), s = Di(), { setPageLockMeta: r } = $s(), a = oe(t);
476
476
  return j(() => {
477
477
  a.current = t;
478
478
  }, [t]), z(
@@ -483,8 +483,8 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
483
483
  },
484
484
  [n, e, s, r]
485
485
  );
486
- }, Mi = () => {
487
- const e = an(), t = xt(), n = Fn(), { setPageStatus: s } = Se(), { setPageLockMeta: r } = $s(), a = Ui(), i = oe(t), { savePageAsync: o } = Me();
486
+ }, Bi = () => {
487
+ const e = on(), t = xt(), n = Fn(), { setPageStatus: s } = Se(), { setPageLockMeta: r } = $s(), a = Mi(), i = oe(t), { savePageAsync: o } = Me();
488
488
  return j(() => {
489
489
  i.current = t;
490
490
  }, [t]), z(
@@ -507,7 +507,7 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
507
507
  break;
508
508
  }
509
509
  case re.CONTINUE_EDITING_IN_THIS_CLIENT: {
510
- const f = Ci(n == null ? void 0 : n.presenceState());
510
+ const f = Gi(n == null ? void 0 : n.presenceState());
511
511
  s(ne.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: f, pageId: i.current, userId: e, clientId: Ne }));
512
512
  break;
513
513
  }
@@ -519,18 +519,18 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
519
519
  },
520
520
  [a, r, s, n, e, o]
521
521
  );
522
- }, ou = () => {
523
- const e = Bs(), t = an(), n = xt(), s = Gi(), [r, a] = Te(Hs), i = Mi(), o = Di(), l = oe(i), d = oe(o), u = oe(null), f = oe(!1), g = oe(0), h = oe(r), A = oe(() => {
522
+ }, cu = () => {
523
+ const e = Bs(), t = on(), n = xt(), s = Oi(), [r, a] = Te(Hs), i = Bi(), o = Ui(), l = oe(i), d = oe(o), u = oe(null), f = oe(!1), g = oe(0), h = oe(r), A = oe(() => {
524
524
  });
525
525
  j(() => {
526
526
  l.current = i, d.current = o, h.current = r;
527
527
  }, [i, o, r]);
528
528
  const y = z((_) => {
529
- vi.forEach((E) => {
529
+ bi.forEach((E) => {
530
530
  _.onBroadcast(E, (P) => {
531
531
  l.current(E)(P);
532
532
  });
533
- }), wi.forEach((E) => {
533
+ }), vi.forEach((E) => {
534
534
  _.onPresence(E, () => {
535
535
  d.current(_);
536
536
  });
@@ -547,8 +547,8 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
547
547
  `Attempting to reconnect realtime channel (attempt ${g.current}/${dt})`
548
548
  ), u.current && (clearTimeout(u.current), u.current = null), h.current && (h.current.unsubscribe(), a(null), h.current = null);
549
549
  const _ = Math.min(
550
- Oi * Math.pow(xi, g.current - 1),
551
- Ri
550
+ xi * Math.pow(Ri, g.current - 1),
551
+ ki
552
552
  );
553
553
  u.current = setTimeout(() => {
554
554
  const E = e.channel(s, {
@@ -612,7 +612,7 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
612
612
  queryFn: async () => e(t, { action: p.GET_WEBSITE_PAGES }) || [],
613
613
  placeholderData: (n) => n || []
614
614
  });
615
- }, cu = (e) => {
615
+ }, lu = (e) => {
616
616
  const t = C(), n = I(), s = Kn();
617
617
  return se({
618
618
  queryKey: [p.GET_WEBSITE_PAGES, e, s],
@@ -621,7 +621,7 @@ const dt = 10, Oi = 1e3, xi = 2, Ri = 16e3, qs = () => {
621
621
  queryFn: async () => {
622
622
  if (s === e) return {};
623
623
  const r = await t(n, { action: p.GET_WEBSITE_PAGES, data: { lang: e } }) || [];
624
- return La(
624
+ return Ca(
625
625
  Qt(r, (a) => ({ ...a, lang: e })),
626
626
  "primaryPage"
627
627
  );
@@ -633,7 +633,7 @@ function zs(e, t, n = !1) {
633
633
  const s = e.toString() ? `?${e.toString()}` : "/";
634
634
  n ? window.history.replaceState(null, "", s) : window.history.pushState({}, "", s), t(e), window.dispatchEvent(new PopStateEvent("popstate"));
635
635
  }
636
- const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children: e }) => {
636
+ const Fi = H(() => import("./page-manager-new-DP1b_dXt.js")), Ws = ({ children: e }) => {
637
637
  const { t } = ve(), [n, s] = be(), r = n.get("page"), { data: a, isFetching: i } = fe(), { data: o, isFetching: l } = Qs(), [d, u] = V(!1), [f, g] = V(!0), { savePage: h } = Me(), A = !!r && !ge(a), { isLocked: y } = Se(), T = $(() => {
638
638
  if (!o || l) return !1;
639
639
  const N = o.find((U) => U.slug === "/");
@@ -654,7 +654,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
654
654
  onClick: () => {
655
655
  y || h(), u(!0);
656
656
  },
657
- children: e || /* @__PURE__ */ c(B, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(Va, { className: "h-4 w-4" }) }, "template-viewer")
657
+ children: e || /* @__PURE__ */ c(B, { variant: "outline", className: "flex w-full items-center space-x-2 py-1", children: /* @__PURE__ */ c(Ha, { className: "h-4 w-4" }) }, "template-viewer")
658
658
  }
659
659
  ),
660
660
  /* @__PURE__ */ c(sn, { side: "right", children: /* @__PURE__ */ c("p", { children: t("Open pages manager") }) })
@@ -666,23 +666,23 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
666
666
  "aria-describedby": "pages-manager-description",
667
667
  className: `z-50 !min-w-[50vh] !max-w-[800px] border-border p-0 ${A ? "" : "sheet-hide-close-btn"}`,
668
668
  children: [
669
- /* @__PURE__ */ m($r, { className: "mb-3 px-4 pt-4", children: [
670
- /* @__PURE__ */ m(Qr, { className: "flex items-center gap-2 text-sm font-semibold", children: [
671
- /* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(Ha, { className: "h-4 w-4" }) }),
669
+ /* @__PURE__ */ m(Qr, { className: "mb-3 px-4 pt-4", children: [
670
+ /* @__PURE__ */ m(zr, { className: "flex items-center gap-2 text-sm font-semibold", children: [
671
+ /* @__PURE__ */ c("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-primary text-primary-foreground", children: /* @__PURE__ */ c(qa, { className: "h-4 w-4" }) }),
672
672
  /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
673
673
  /* @__PURE__ */ c("span", { className: "text-sm font-semibold", children: t("Pages") }),
674
674
  /* @__PURE__ */ c("span", { id: "pages-manager-description", className: "text-xs font-normal text-muted-foreground", children: t("Manage your site structure") })
675
675
  ] })
676
676
  ] }),
677
- /* @__PURE__ */ c(zr, { className: "sr-only", children: t("Manage your site structure") })
677
+ /* @__PURE__ */ c(Wr, { className: "sr-only", children: t("Manage your site structure") })
678
678
  ] }),
679
- /* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: P && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Bi, { close: () => u(!1) }) }) })
679
+ /* @__PURE__ */ c("div", { className: "h-[calc(100vh-80px)] overflow-y-auto", children: P && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Fi, { close: () => u(!1) }) }) })
680
680
  ]
681
681
  }
682
682
  ) })
683
683
  ] });
684
- }, Fi = H(() => import("./add-new-page-D_FoJSTj.js")), Ki = H(() => import("./delete-page-VXXUi4o_.js")), Vi = H(() => import("./duplicate-page-CPJ8jZWu.js")), Hi = H(() => import("./mark-as-template-BvfAHmgj.js")), qi = H(() => import("./unmark-as-template-CVE-_1Td.js")), $i = H(() => import("./unpublish-page-Dh1nqqKj.js")), Qi = () => {
685
- const [e, t] = V(null), [n, s] = V(null), [r, a] = V(null), [i, o] = V(null), [l, d] = V(null), [u, f] = V(null), { data: g, isFetching: h } = Ce(), { selectedLang: A, fallbackLang: y } = we(), { data: T } = Be(), _ = T == null ? void 0 : T.find((v) => v.lang === A), { isLocked: E } = Se(), P = !(g != null && g.slug), N = kn(Wt);
684
+ }, Ki = H(() => import("./add-new-page-DsvGVrR8.js")), Vi = H(() => import("./delete-page-41tvYcEw.js")), Hi = H(() => import("./duplicate-page-DMmDdmfS.js")), qi = H(() => import("./mark-as-template-raTtKmQ9.js")), $i = H(() => import("./unmark-as-template-vFgMIdxN.js")), Qi = H(() => import("./unpublish-page-CxkjTzBB.js")), zi = () => {
685
+ const [e, t] = V(null), [n, s] = V(null), [r, a] = V(null), [i, o] = V(null), [l, d] = V(null), [u, f] = V(null), { data: g, isFetching: h } = Ce(), { selectedLang: A, fallbackLang: y } = we(), { data: T } = Be(), _ = T == null ? void 0 : T.find((v) => v.lang === A), { isLocked: E } = Se(), P = !(g != null && g.slug), N = Dn(Wt);
686
686
  if (!g) return null;
687
687
  const U = (v) => {
688
688
  A.length > 0 && A !== y ? N({
@@ -699,7 +699,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
699
699
  className: "flex h-7 max-w-[200px] cursor-pointer items-center truncate rounded px-1 text-xs font-medium",
700
700
  variant: "ghost",
701
701
  children: h ? /* @__PURE__ */ c(ct, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
702
- P ? /* @__PURE__ */ c(qa, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c($a, { className: "mr-1 h-4 w-4" }),
702
+ P ? /* @__PURE__ */ c($a, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Qa, { className: "mr-1 h-4 w-4" }),
703
703
  q(_ || g, "name") ?? ""
704
704
  ] })
705
705
  }
@@ -713,7 +713,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
713
713
  children: /* @__PURE__ */ c(rs, { className: "h-4 w-4" })
714
714
  }
715
715
  ) : /* @__PURE__ */ c(
716
- Pi,
716
+ wi,
717
717
  {
718
718
  page: g,
719
719
  setDuplicatePage: (v) => d(v),
@@ -728,7 +728,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
728
728
  )
729
729
  ] }),
730
730
  u && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
731
- Fi,
731
+ Ki,
732
732
  {
733
733
  closePanel: () => f(null),
734
734
  editPage: () => {
@@ -737,12 +737,12 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
737
737
  setAddEditPage: f
738
738
  }
739
739
  ) }),
740
- e && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Ki, { page: e, onClose: () => t(null) }) }),
741
- n && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c($i, { page: n, onClose: () => s(null) }) }),
742
- r && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Hi, { page: r, onClose: () => a(null) }) }),
743
- i && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(qi, { page: i, onClose: () => o(null) }) }),
740
+ e && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Vi, { page: e, onClose: () => t(null) }) }),
741
+ n && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Qi, { page: n, onClose: () => s(null) }) }),
742
+ r && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(qi, { page: r, onClose: () => a(null) }) }),
743
+ i && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c($i, { page: i, onClose: () => o(null) }) }),
744
744
  l && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
745
- Vi,
745
+ Hi,
746
746
  {
747
747
  page: l,
748
748
  onClose: () => d(null),
@@ -759,7 +759,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
759
759
  ),
760
760
  children: e
761
761
  }
762
- ), zi = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Vn, { children: /* @__PURE__ */ m("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
762
+ ), Wi = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Vn, { children: /* @__PURE__ */ m("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
763
763
  /* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
764
764
  /* @__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" })
765
765
  ] }) }), Mt = {
@@ -950,10 +950,10 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
950
950
  yo: "Yoruba",
951
951
  za: "Zhuang, Chuang",
952
952
  zu: "Zulu"
953
- }, Wi = H(() => import("./add-new-language-page-DsW9jOZg.js")), ji = () => {
953
+ }, ji = H(() => import("./add-new-language-page-B3wK94-S.js")), Yi = () => {
954
954
  const e = de("topLeftCorner", null);
955
- return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Da.createElement(e, {}) }) : null;
956
- }, Yi = ({
955
+ return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Ua.createElement(e, {}) }) : null;
956
+ }, Ji = ({
957
957
  showAdd: e = !0,
958
958
  variant: t = "ghost",
959
959
  goToDefaultLang: n = !1
@@ -963,7 +963,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
963
963
  const E = new URLSearchParams(window.location.search), P = E.get("lang");
964
964
  P && (r.includes(P) ? i(P) : (E.delete("lang"), l(E), i("")));
965
965
  }, [r, l, i]);
966
- const f = kn(Wt), { data: g } = fe(), { data: h } = Fe(), { data: A } = Be(), y = $(() => {
966
+ const f = Dn(Wt), { data: g } = fe(), { data: h } = Fe(), { data: A } = Be(), y = $(() => {
967
967
  const E = xs(
968
968
  Qt(q(h, "languages"), (P) => {
969
969
  const N = ce(A, { lang: P });
@@ -1003,9 +1003,9 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
1003
1003
  return ge(r) ? null : d ? /* @__PURE__ */ m(B, { variant: "ghost", size: "sm", className: "ml-px h-max cursor-not-allowed gap-2 py-1.5 opacity-50", children: [
1004
1004
  /* @__PURE__ */ c(as, { className: "h-4 w-4" }),
1005
1005
  q(Mt, o, o),
1006
- /* @__PURE__ */ c(Tn, { className: "h-4 w-4" })
1007
- ] }) : n ? /* @__PURE__ */ c(B, { onClick: () => _(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ m(Gn, { children: [
1008
- /* @__PURE__ */ c(On, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
1006
+ /* @__PURE__ */ c(Sn, { className: "h-4 w-4" })
1007
+ ] }) : n ? /* @__PURE__ */ c(B, { onClick: () => _(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ m(On, { children: [
1008
+ /* @__PURE__ */ c(xn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
1009
1009
  B,
1010
1010
  {
1011
1011
  disabled: !!d,
@@ -1015,11 +1015,11 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
1015
1015
  children: [
1016
1016
  /* @__PURE__ */ c(as, { className: "h-4 w-4" }),
1017
1017
  q(Mt, o, o),
1018
- /* @__PURE__ */ c(Tn, { className: "h-4 w-4" })
1018
+ /* @__PURE__ */ c(Sn, { className: "h-4 w-4" })
1019
1019
  ]
1020
1020
  }
1021
1021
  ) }),
1022
- /* @__PURE__ */ m(xn, { className: "space-y-1 border-border", children: [
1022
+ /* @__PURE__ */ m(Rn, { className: "space-y-1 border-border", children: [
1023
1023
  Qt(
1024
1024
  y.filter((E) => E.isLangPageAdded),
1025
1025
  (E) => /* @__PURE__ */ m(
@@ -1033,7 +1033,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
1033
1033
  children: [
1034
1034
  /* @__PURE__ */ c("div", { className: "text-slate-600", children: E.value }),
1035
1035
  E.key === s && /* @__PURE__ */ m("small", { className: "flex items-center gap-x-1 text-[9px] leading-none text-orange-500", children: [
1036
- /* @__PURE__ */ c(Qa, { fill: "orange", className: "h-2 w-2" }),
1036
+ /* @__PURE__ */ c(za, { fill: "orange", className: "h-2 w-2" }),
1037
1037
  "Primary"
1038
1038
  ] })
1039
1039
  ]
@@ -1042,7 +1042,7 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
1042
1042
  )
1043
1043
  ),
1044
1044
  e && !ge(y.filter((E) => !E.isLangPageAdded)) && /* @__PURE__ */ m(pe, { children: [
1045
- /* @__PURE__ */ c(Wr, {}),
1045
+ /* @__PURE__ */ c(jr, {}),
1046
1046
  /* @__PURE__ */ m(
1047
1047
  B,
1048
1048
  {
@@ -1065,13 +1065,13 @@ const Bi = H(() => import("./page-manager-new-BWjXTyj0.js")), Ws = ({ children:
1065
1065
  ] })
1066
1066
  ] }) });
1067
1067
  };
1068
- function Ji() {
1069
- const e = va(Wt), t = kn(Wt);
1068
+ function Zi() {
1069
+ const e = ba(Wt), t = Dn(Wt);
1070
1070
  return /* @__PURE__ */ m("div", { className: "relative z-10 flex items-center justify-end gap-1", children: [
1071
- /* @__PURE__ */ c(ji, {}),
1071
+ /* @__PURE__ */ c(Yi, {}),
1072
1072
  /* @__PURE__ */ c(Ws, {}),
1073
1073
  e && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
1074
- Wi,
1074
+ ji,
1075
1075
  {
1076
1076
  isOpen: !0,
1077
1077
  id: e == null ? void 0 : e.id,
@@ -1083,7 +1083,7 @@ function Ji() {
1083
1083
  ) })
1084
1084
  ] });
1085
1085
  }
1086
- function Zi() {
1086
+ function Xi() {
1087
1087
  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: [
1088
1088
  /* @__PURE__ */ m("div", { className: "flex-1 space-y-1", children: [
1089
1089
  /* @__PURE__ */ c(Dt, { className: "h-4 w-3/4" }),
@@ -1093,24 +1093,24 @@ function Zi() {
1093
1093
  /* @__PURE__ */ c(Dt, { className: "h-8 w-8 rounded-full" })
1094
1094
  ] }, t)) });
1095
1095
  }
1096
- const Xi = Q.lazy(() => import("./page-revisions-content-CuzcWYwa.js"));
1097
- function eo() {
1096
+ const eo = Q.lazy(() => import("./page-revisions-content-mDwvH6J-.js"));
1097
+ function to() {
1098
1098
  const [e, t] = Q.useState(!1);
1099
1099
  return /* @__PURE__ */ c(Ns, { children: /* @__PURE__ */ m(tn, { delayDuration: 0, children: [
1100
1100
  /* @__PURE__ */ m(bs, { open: e, onOpenChange: t, children: [
1101
- /* @__PURE__ */ c(jr, { asChild: !0, children: /* @__PURE__ */ c(nn, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
1101
+ /* @__PURE__ */ c(Yr, { asChild: !0, children: /* @__PURE__ */ c(nn, { asChild: !0, children: /* @__PURE__ */ m("span", { className: "flex items-center gap-2", children: [
1102
1102
  /* @__PURE__ */ m(B, { variant: "ghost", size: "icon", className: "h-8 w-8", children: [
1103
- /* @__PURE__ */ c(za, { className: "h-4 w-4" }),
1103
+ /* @__PURE__ */ c(Wa, { className: "h-4 w-4" }),
1104
1104
  /* @__PURE__ */ c("span", { className: "sr-only", children: "View revision history" })
1105
1105
  ] }),
1106
1106
  /* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1107
1107
  ] }) }) }),
1108
- /* @__PURE__ */ c(Is, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(J, { fallback: /* @__PURE__ */ c(Zi, {}), children: /* @__PURE__ */ c(Xi, { isOpen: e }) }) })
1108
+ /* @__PURE__ */ c(Is, { className: "flex h-[100vh] flex-col", children: e && /* @__PURE__ */ c(J, { fallback: /* @__PURE__ */ c(Xi, {}), children: /* @__PURE__ */ c(eo, { isOpen: e }) }) })
1109
1109
  ] }),
1110
1110
  /* @__PURE__ */ c(sn, { side: "bottom", children: /* @__PURE__ */ c("p", { children: "Revision history" }) })
1111
1111
  ] }) });
1112
1112
  }
1113
- const gn = ({
1113
+ const mn = ({
1114
1114
  permission: e,
1115
1115
  permissions: t,
1116
1116
  children: n,
@@ -1118,9 +1118,13 @@ const gn = ({
1118
1118
  }) => {
1119
1119
  const { hasPermission: r } = vs();
1120
1120
  return e && !r(e) || t && !t.some((a) => r(a)) ? s : n;
1121
- }, to = {
1121
+ }, no = {
1122
1122
  SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
1123
- }, lu = () => {
1123
+ }, js = () => {
1124
+ var t;
1125
+ const [e] = an();
1126
+ return ((t = e == null ? void 0 : e.flags) == null ? void 0 : t.revisions) ?? !1;
1127
+ }, uu = () => {
1124
1128
  const e = I(), t = Y(), n = C(), { data: s } = Ge();
1125
1129
  return X({
1126
1130
  mutationFn: async (r) => await n(e, {
@@ -1142,11 +1146,11 @@ const gn = ({
1142
1146
  onError: (r, a) => {
1143
1147
  const i = ce(s, { key: a.pageType });
1144
1148
  D.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
1145
- description: q(to, r.message, r.message)
1149
+ description: q(no, r.message, r.message)
1146
1150
  });
1147
1151
  }
1148
1152
  });
1149
- }, uu = () => {
1153
+ }, du = () => {
1150
1154
  const e = I(), t = Y(), n = C(), { data: s } = Ce(), { data: r } = Ge();
1151
1155
  return X({
1152
1156
  mutationFn: async (a) => await n(e, {
@@ -1171,7 +1175,7 @@ const gn = ({
1171
1175
  });
1172
1176
  }
1173
1177
  });
1174
- }, du = () => {
1178
+ }, fu = () => {
1175
1179
  const e = I(), t = Y(), n = C(), { data: s } = Ge();
1176
1180
  return X({
1177
1181
  mutationFn: async (r) => n(e, {
@@ -1200,7 +1204,7 @@ const gn = ({
1200
1204
  });
1201
1205
  }
1202
1206
  });
1203
- }, fu = () => {
1207
+ }, hu = () => {
1204
1208
  const e = I(), t = Y(), n = C(), { data: s } = Ge();
1205
1209
  return X({
1206
1210
  mutationFn: async (r) => n(e, {
@@ -1225,12 +1229,12 @@ const gn = ({
1225
1229
  });
1226
1230
  }
1227
1231
  });
1228
- }, js = () => {
1229
- const e = I(), t = C(), n = Y(), { data: s } = fe(), { savePageAsync: r } = Me();
1232
+ }, Ys = () => {
1233
+ const e = I(), t = C(), n = Y(), { data: s } = fe(), { savePageAsync: r } = Me(), a = js();
1230
1234
  return X({
1231
- mutationFn: async ({ ids: a }) => (await r(), t(e, {
1235
+ mutationFn: async ({ ids: i }) => (await r(), t(e, {
1232
1236
  action: p.PUBLISH_CHANGES,
1233
- data: { ids: a }
1237
+ data: { ids: i, revisions: a }
1234
1238
  })),
1235
1239
  onSuccess: () => {
1236
1240
  n.invalidateQueries({
@@ -1241,11 +1245,11 @@ const gn = ({
1241
1245
  queryKey: [p.GET_LANGUAGE_PAGES, s == null ? void 0 : s.id]
1242
1246
  });
1243
1247
  },
1244
- onError: (a) => {
1245
- console.log("##", a), D.error("Failed to publish pages.");
1248
+ onError: (i) => {
1249
+ console.log("##", i), D.error("Failed to publish pages.");
1246
1250
  }
1247
1251
  });
1248
- }, hu = () => {
1252
+ }, gu = () => {
1249
1253
  const e = I(), t = C(), n = Y();
1250
1254
  return X({
1251
1255
  mutationFn: async (s) => {
@@ -1270,7 +1274,7 @@ const gn = ({
1270
1274
  D.error("Failed to mark page as template.");
1271
1275
  }
1272
1276
  });
1273
- }, gu = () => {
1277
+ }, mu = () => {
1274
1278
  const e = I(), t = C(), n = Y();
1275
1279
  return X({
1276
1280
  mutationFn: async (s) => t(e, {
@@ -1286,7 +1290,7 @@ const gn = ({
1286
1290
  D.error("Failed to unmark page as template.");
1287
1291
  }
1288
1292
  });
1289
- }, mu = () => {
1293
+ }, Eu = () => {
1290
1294
  const e = I(), t = C(), n = Y();
1291
1295
  return X({
1292
1296
  mutationFn: async ({ id: s, slug: r }) => t(e, {
@@ -1304,30 +1308,30 @@ const gn = ({
1304
1308
  D.error("Failed to change slug");
1305
1309
  }
1306
1310
  });
1307
- }, no = H(() => import("./publish-pages-content-CyUbbAWn.js"));
1308
- function so({
1311
+ }, so = H(() => import("./publish-pages-content-M_Kb8b-F.js"));
1312
+ function ro({
1309
1313
  showModal: e = !1,
1310
1314
  onClose: t = () => console.log("Cancelled")
1311
1315
  }) {
1312
- const { mutate: n, isPending: s } = js();
1313
- return /* @__PURE__ */ c(Rn, { open: e, onOpenChange: s ? () => {
1314
- } : t, children: e && /* @__PURE__ */ c(J, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(no, { onClose: t, isPending: s, publishPage: n }) }) });
1316
+ const { mutate: n, isPending: s } = Ys();
1317
+ return /* @__PURE__ */ c(kn, { open: e, onOpenChange: s ? () => {
1318
+ } : t, children: e && /* @__PURE__ */ c(J, { fallback: /* @__PURE__ */ c("div", { className: "h-96 w-96 animate-pulse bg-gray-100" }), children: /* @__PURE__ */ c(so, { onClose: t, isPending: s, publishPage: n }) }) });
1315
1319
  }
1316
- const ro = (e) => {
1320
+ const ao = (e) => {
1317
1321
  const { fallbackLang: t } = we(), { data: n } = Fe(), { data: s, isFetching: r } = Be(), a = $(() => {
1318
1322
  const i = { [t]: !0 };
1319
- return Ca(q(n, "languages"), (o) => {
1323
+ return Ga(q(n, "languages"), (o) => {
1320
1324
  const l = ce(s, { lang: o });
1321
1325
  i[o] = !!l;
1322
1326
  }), i;
1323
1327
  }, [t, s, n]);
1324
1328
  return r || ge(e) || e && a[e];
1325
- }, ao = {
1329
+ }, io = {
1326
1330
  particleCount: 350,
1327
1331
  spread: 120,
1328
1332
  origin: { y: 0.6 },
1329
1333
  angle: 90
1330
- }, io = {
1334
+ }, oo = {
1331
1335
  TOP_RIGHT: {
1332
1336
  angle: 225,
1333
1337
  origin: { x: 0.9, y: 0 }
@@ -1336,14 +1340,14 @@ const ro = (e) => {
1336
1340
  angle: 100,
1337
1341
  origin: { x: 0.9, y: 0.9 }
1338
1342
  }
1339
- }, oo = async () => {
1343
+ }, co = async () => {
1340
1344
  const { default: e } = await import("canvas-confetti");
1341
1345
  return e;
1342
- }, mn = (e) => {
1343
- let t = io[e];
1346
+ }, En = (e) => {
1347
+ let t = oo[e];
1344
1348
  t || (t = {});
1345
- const n = { ...ao, ...t };
1346
- oo().then((s) => s(n));
1349
+ const n = { ...io, ...t };
1350
+ co().then((s) => s(n));
1347
1351
  };
1348
1352
  function Hn({
1349
1353
  children: e,
@@ -1357,9 +1361,9 @@ function Hn({
1357
1361
  /* @__PURE__ */ c(sn, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
1358
1362
  ] }) }) : e;
1359
1363
  }
1360
- const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1361
- () => import("./translation-warning-modal-BfGLW4Hm.js")
1362
- ), uo = H(() => import("./json-diff-viewer-CRYlX0Bw.js")), fo = () => {
1364
+ const lo = H(() => import("./unpublish-page-CxkjTzBB.js")), uo = H(
1365
+ () => import("./translation-warning-modal-CTfArsb1.js")
1366
+ ), fo = H(() => import("./json-diff-viewer-B5wAR5GY.js")), ho = () => {
1363
1367
  const { t: e } = ve(), { selectedLang: t, fallbackLang: n } = we(), s = de("getPreviewUrl", async (g) => g), [r, a] = V(""), { data: i } = fe(), { data: o } = Be(), { data: l } = Ge(), d = $(
1364
1368
  () => {
1365
1369
  var g;
@@ -1380,9 +1384,9 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1380
1384
  } else
1381
1385
  a("");
1382
1386
  })();
1383
- }, [s, d, i == null ? void 0 : i.pageType, u, i == null ? void 0 : i.id, f]), /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(Hn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(B, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(ja, { className: "h-4 w-4" }) }) }) }) });
1384
- }, ho = () => {
1385
- const { t: e } = ve(), [t, n] = Yr();
1387
+ }, [s, d, i == null ? void 0 : i.pageType, u, i == null ? void 0 : i.id, f]), /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(Hn, { content: e("Open preview in new tab"), delayDuration: 0, children: /* @__PURE__ */ c("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c(B, { variant: "ghost", size: "sm", className: "gap-2", children: /* @__PURE__ */ c(Ya, { className: "h-4 w-4" }) }) }) }) });
1388
+ }, go = () => {
1389
+ const { t: e } = ve(), [t, n] = Jr();
1386
1390
  return /* @__PURE__ */ m(pe, { children: [
1387
1391
  /* @__PURE__ */ c(Hn, { content: e("Theme"), delayDuration: 0, children: /* @__PURE__ */ c(
1388
1392
  B,
@@ -1391,12 +1395,12 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1391
1395
  size: "icon",
1392
1396
  className: "gap-2",
1393
1397
  onClick: () => n(t === "theme" ? "block" : "theme"),
1394
- children: /* @__PURE__ */ c(Wa, { className: "h-4 w-4" })
1398
+ children: /* @__PURE__ */ c(ja, { className: "h-4 w-4" })
1395
1399
  }
1396
1400
  ) }),
1397
1401
  /* @__PURE__ */ c("div", { className: "h-4 w-px bg-gray-200 dark:bg-gray-700" })
1398
1402
  ] });
1399
- }, go = () => {
1403
+ }, mo = () => {
1400
1404
  const { t: e } = ve(), [t, n] = V(!1), { isLocked: s } = Se(), { savePageAsync: r, saveState: a } = Me();
1401
1405
  j(() => {
1402
1406
  const u = (f) => {
@@ -1413,7 +1417,7 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1413
1417
  case "UNSAVED":
1414
1418
  return {
1415
1419
  tooltipContent: e("Save draft"),
1416
- buttonIcon: /* @__PURE__ */ c(Ja, { className: "h-4 w-4" }),
1420
+ buttonIcon: /* @__PURE__ */ c(Za, { className: "h-4 w-4" }),
1417
1421
  buttonClass: "gap-x-1"
1418
1422
  };
1419
1423
  case "SAVING":
@@ -1425,7 +1429,7 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1425
1429
  case "SAVED":
1426
1430
  return {
1427
1431
  tooltipContent: e("Saved"),
1428
- buttonIcon: /* @__PURE__ */ c(Ya, { className: "h-4 w-4" }),
1432
+ buttonIcon: /* @__PURE__ */ c(Ja, { className: "h-4 w-4" }),
1429
1433
  buttonClass: "text-green-500 gap-x-1"
1430
1434
  };
1431
1435
  }
@@ -1435,8 +1439,8 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1435
1439
  " ",
1436
1440
  d
1437
1441
  ] });
1438
- }, mo = () => {
1439
- const { t: e } = ve(), { selectedLang: t } = we(), { data: n } = Ce(), { data: s } = Be(), [r, a] = V(!1), [i, o] = V(!1), [l, d] = V(null), [u, f] = V(!1), { savePageAsync: g } = Me(), [h, A] = V(!1), { data: y } = fe(), { mutate: T, isPending: _ } = js(), { needTranslations: E } = Me(), P = E(), { buttonText: N, buttonClassName: U, isPublished: v, hasUnpublishedChanges: me } = $(() => {
1442
+ }, Eo = () => {
1443
+ const { t: e } = ve(), { selectedLang: t } = we(), { data: n } = Ce(), { data: s } = Be(), [r, a] = V(!1), [i, o] = V(!1), [l, d] = V(null), [u, f] = V(!1), { savePageAsync: g } = Me(), [h, A] = V(!1), { data: y } = fe(), { mutate: T, isPending: _ } = Ys(), { needTranslations: E } = Me(), P = E(), { buttonText: N, buttonClassName: U, isPublished: v, hasUnpublishedChanges: me } = $(() => {
1440
1444
  const M = y && (y == null ? void 0 : y.online), ae = !ge(y == null ? void 0 : y.changes);
1441
1445
  let Oe = M ? "hover:bg-green-600 bg-green-500" : "", le = e(M ? "Published" : "Publish");
1442
1446
  return M && ae && (Oe = "hover:bg-blue-600 bg-blue-500", le = e("Publish")), {
@@ -1453,7 +1457,7 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1453
1457
  F();
1454
1458
  }, F = () => {
1455
1459
  const M = [n == null ? void 0 : n.id, n == null ? void 0 : n.primaryPage];
1456
- T({ ids: xs(M) }, { onSuccess: () => mn("TOP_RIGHT") });
1460
+ T({ ids: xs(M) }, { onSuccess: () => En("TOP_RIGHT") });
1457
1461
  }, b = () => {
1458
1462
  A(!1), F();
1459
1463
  }, L = async () => {
@@ -1490,23 +1494,23 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1490
1494
  ]
1491
1495
  }
1492
1496
  ),
1493
- /* @__PURE__ */ m(Gn, { children: [
1494
- /* @__PURE__ */ c(On, { asChild: !0, children: /* @__PURE__ */ c(
1497
+ /* @__PURE__ */ m(On, { children: [
1498
+ /* @__PURE__ */ c(xn, { asChild: !0, children: /* @__PURE__ */ c(
1495
1499
  B,
1496
1500
  {
1497
1501
  size: "sm",
1498
1502
  disabled: _ || !(y != null && y.id),
1499
1503
  className: `rounded-l-none border-l border-white/50 px-2 text-white ${U}`,
1500
- children: /* @__PURE__ */ c(Tn, { className: "h-4 w-4" })
1504
+ children: /* @__PURE__ */ c(Sn, { className: "h-4 w-4" })
1501
1505
  }
1502
1506
  ) }),
1503
- /* @__PURE__ */ m(xn, { align: "end", className: "w-52", children: [
1507
+ /* @__PURE__ */ m(Rn, { align: "end", className: "w-52", children: [
1504
1508
  /* @__PURE__ */ m(
1505
1509
  ue,
1506
1510
  {
1507
1511
  disabled: _,
1508
1512
  className: "cursor-pointer text-xs",
1509
- onClick: () => T({ ids: W }, { onSuccess: () => mn("TOP_RIGHT") }),
1513
+ onClick: () => T({ ids: W }, { onSuccess: () => En("TOP_RIGHT") }),
1510
1514
  children: [
1511
1515
  e("Publish"),
1512
1516
  " with translation pages"
@@ -1518,7 +1522,7 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1518
1522
  {
1519
1523
  disabled: _,
1520
1524
  className: "cursor-pointer text-xs",
1521
- onClick: () => T({ ids: [y == null ? void 0 : y.id] }, { onSuccess: () => mn("TOP_RIGHT") }),
1525
+ onClick: () => T({ ids: [y == null ? void 0 : y.id] }, { onSuccess: () => En("TOP_RIGHT") }),
1522
1526
  children: [
1523
1527
  e("Publish"),
1524
1528
  " page"
@@ -1538,10 +1542,10 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1538
1542
  ] })
1539
1543
  ] })
1540
1544
  ] }),
1541
- /* @__PURE__ */ c(so, { showModal: r, onClose: () => a(!1) }),
1542
- l && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(co, { page: l, onClose: () => d(null) }) }),
1545
+ /* @__PURE__ */ c(ro, { showModal: r, onClose: () => a(!1) }),
1546
+ l && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(lo, { page: l, onClose: () => d(null) }) }),
1543
1547
  u && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
1544
- uo,
1548
+ fo,
1545
1549
  {
1546
1550
  open: u,
1547
1551
  onOpenChange: f,
@@ -1552,7 +1556,7 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1552
1556
  }
1553
1557
  ) }),
1554
1558
  h && /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
1555
- lo,
1559
+ uo,
1556
1560
  {
1557
1561
  isOpen: h,
1558
1562
  onClose: L,
@@ -1562,24 +1566,24 @@ const co = H(() => import("./unpublish-page-Dh1nqqKj.js")), lo = H(
1562
1566
  ) })
1563
1567
  ] });
1564
1568
  };
1565
- function Eo() {
1566
- const { isLocked: e } = Se(), [t] = be(), n = t.get("lang"), s = ro(n);
1569
+ function po() {
1570
+ const { isLocked: e } = Se(), [t] = be(), n = t.get("lang"), s = ao(n), r = js();
1567
1571
  return e || !s ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ m("div", { className: "flex items-center justify-end gap-1", children: [
1568
- /* @__PURE__ */ c(eo, {}),
1569
- /* @__PURE__ */ c(gn, { permission: he.EDIT_THEME, children: /* @__PURE__ */ c(ho, {}) }),
1570
- /* @__PURE__ */ c(fo, {}),
1571
- /* @__PURE__ */ c(gn, { permission: he.SAVE_PAGE, children: /* @__PURE__ */ c(go, {}) }),
1572
- /* @__PURE__ */ c(gn, { permission: he.PUBLISH_PAGE, children: /* @__PURE__ */ c(mo, {}) })
1572
+ r && /* @__PURE__ */ c(to, {}),
1573
+ /* @__PURE__ */ c(mn, { permission: he.EDIT_THEME, children: /* @__PURE__ */ c(go, {}) }),
1574
+ /* @__PURE__ */ c(ho, {}),
1575
+ /* @__PURE__ */ c(mn, { permission: he.SAVE_PAGE, children: /* @__PURE__ */ c(mo, {}) }),
1576
+ /* @__PURE__ */ c(mn, { permission: he.PUBLISH_PAGE, children: /* @__PURE__ */ c(Eo, {}) })
1573
1577
  ] });
1574
1578
  }
1575
- const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1576
- const { dynamicPage: e, allLangPages: t, isFetching: n } = Ei(), s = t.length > 0;
1579
+ const yo = H(() => import("./dynamic-page-selector-D2z51nLi.js")), Ao = () => {
1580
+ const { dynamicPage: e, allLangPages: t, isFetching: n } = pi(), s = t.length > 0;
1577
1581
  return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
1578
- !e && /* @__PURE__ */ c(zi, { hasDynamicPage: s }),
1579
- /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(po, {}) })
1582
+ !e && /* @__PURE__ */ c(Wi, { hasDynamicPage: s }),
1583
+ /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(yo, {}) })
1580
1584
  ] });
1581
- }, Ao = () => {
1582
- const { data: e, isFetching: t } = Ce(), { data: n, isFetching: s } = fe(), r = q(n, "dynamic", !1), a = Mn(), i = ya("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, d = Ti(), u = t || s, g = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
1585
+ }, To = () => {
1586
+ const { data: e, isFetching: t } = Ce(), { data: n, isFetching: s } = fe(), r = q(n, "dynamic", !1), a = Mn(), i = Aa("dynamic-page-selector"), o = e == null ? void 0 : e.slug, l = !o, d = Si(), u = t || s, g = (l ? `Partial: ${e == null ? void 0 : e.name} ` : `${o}${a}`).replace(window.location.host, "");
1583
1587
  return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
1584
1588
  /* @__PURE__ */ c(
1585
1589
  "div",
@@ -1588,7 +1592,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1588
1592
  "flex h-8 w-auto max-w-[600px] items-center rounded-l-md border border-r-0 border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800",
1589
1593
  u && "max-w-0 overflow-hidden opacity-0"
1590
1594
  ),
1591
- children: /* @__PURE__ */ c(Qi, {})
1595
+ children: /* @__PURE__ */ c(zi, {})
1592
1596
  }
1593
1597
  ),
1594
1598
  /* @__PURE__ */ m(
@@ -1599,7 +1603,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1599
1603
  u && "max-w-0 overflow-hidden opacity-0"
1600
1604
  ),
1601
1605
  children: [
1602
- /* @__PURE__ */ c(Yi, {}),
1606
+ /* @__PURE__ */ c(Ji, {}),
1603
1607
  /* @__PURE__ */ m("div", { className: "flex w-full items-center overflow-hidden", children: [
1604
1608
  /* @__PURE__ */ c(
1605
1609
  "div",
@@ -1611,18 +1615,18 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1611
1615
  ] }) : g
1612
1616
  }
1613
1617
  ),
1614
- !l && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ c(Za, { className: "h-4 w-4", strokeWidth: 1 }) }) })
1618
+ !l && /* @__PURE__ */ c("a", { href: d, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ c("div", { className: "ml-2 mr-px flex-shrink-0 rounded-sm p-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300", children: /* @__PURE__ */ c(Xa, { className: "h-4 w-4", strokeWidth: 1 }) }) })
1615
1619
  ] })
1616
1620
  ]
1617
1621
  }
1618
1622
  ),
1619
- r && i && /* @__PURE__ */ c(yo, {})
1623
+ r && i && /* @__PURE__ */ c(Ao, {})
1620
1624
  ] });
1621
- }, To = () => /* @__PURE__ */ m("div", { className: "grid h-full w-full grid-cols-3 items-center px-2", children: [
1622
- /* @__PURE__ */ c("div", { className: "flex justify-start", children: /* @__PURE__ */ c(Ji, {}) }),
1623
- /* @__PURE__ */ c("div", { className: "flex justify-center", children: /* @__PURE__ */ c(Ao, {}) }),
1624
- /* @__PURE__ */ c("div", { className: "flex justify-end", children: /* @__PURE__ */ c(Eo, {}) })
1625
- ] }), Ys = () => {
1625
+ }, So = () => /* @__PURE__ */ m("div", { className: "grid h-full w-full grid-cols-3 items-center px-2", children: [
1626
+ /* @__PURE__ */ c("div", { className: "flex justify-start", children: /* @__PURE__ */ c(Zi, {}) }),
1627
+ /* @__PURE__ */ c("div", { className: "flex justify-center", children: /* @__PURE__ */ c(To, {}) }),
1628
+ /* @__PURE__ */ c("div", { className: "flex justify-end", children: /* @__PURE__ */ c(po, {}) })
1629
+ ] }), Js = () => {
1626
1630
  const e = Y(), { data: t } = se({
1627
1631
  queryKey: [p.AI_CONTEXT],
1628
1632
  initialData: "",
@@ -1635,8 +1639,8 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1635
1639
  },
1636
1640
  [e]
1637
1641
  ), aiContext: t };
1638
- }, So = () => {
1639
- const e = I(), { aiContext: t } = Ys(), n = C();
1642
+ }, _o = () => {
1643
+ const e = I(), { aiContext: t } = Js(), n = C();
1640
1644
  return z(
1641
1645
  async (s, r, a, i) => n(e, {
1642
1646
  action: p.ASK_AI,
@@ -1644,12 +1648,12 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1644
1648
  }),
1645
1649
  [e, t, n]
1646
1650
  );
1647
- }, _o = (e) => $(() => {
1651
+ }, Po = (e) => $(() => {
1648
1652
  if (!e || ge(e)) return { blocks: [] };
1649
- const t = Rs(e, (n) => !Ga(n == null ? void 0 : n._type, "@chai/"));
1650
- return { blocks: ci(t) };
1651
- }, [e]), Po = () => {
1652
- const [e] = be(), t = e.get("page"), n = I(), { setAiContext: s } = Ys(), [, r] = Vs(), [, a] = Ai(), [, i] = Jr(), o = C();
1653
+ const t = Rs(e, (n) => !Oa(n == null ? void 0 : n._type, "@chai/"));
1654
+ return { blocks: li(t) };
1655
+ }, [e]), wo = () => {
1656
+ const [e] = be(), t = e.get("page"), n = I(), { setAiContext: s } = Js(), [, r] = Vs(), [, a] = Ti(), [, i] = Zr(), o = C();
1653
1657
  return se({
1654
1658
  queryKey: [p.GET_DRAFT_PAGE, t],
1655
1659
  staleTime: 1 / 0,
@@ -1664,7 +1668,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1664
1668
  },
1665
1669
  enabled: !!t
1666
1670
  });
1667
- }, wo = () => {
1671
+ }, vo = () => {
1668
1672
  const { data: e } = fe(), { data: t } = Ce(), n = I(), s = C(), r = Kn(), a = Mn();
1669
1673
  return se({
1670
1674
  queryKey: [p.GET_BUILDER_PAGE_DATA, t == null ? void 0 : t.id, a],
@@ -1694,7 +1698,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1694
1698
  }),
1695
1699
  enabled: !!(e != null && e.pageType) && !!t.id
1696
1700
  });
1697
- }, vo = () => {
1701
+ }, bo = () => {
1698
1702
  const e = I(), t = Y(), n = C();
1699
1703
  return X({
1700
1704
  mutationFn: async (s) => n(e, {
@@ -1713,7 +1717,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1713
1717
  });
1714
1718
  }
1715
1719
  });
1716
- }, Eu = () => {
1720
+ }, pu = () => {
1717
1721
  const e = I(), t = Y(), n = C(), { selectedLang: s } = we();
1718
1722
  return X({
1719
1723
  mutationFn: async (r) => n(e, { action: p.ADD_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
@@ -1728,7 +1732,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1728
1732
  });
1729
1733
  }
1730
1734
  });
1731
- }, pu = () => {
1735
+ }, yu = () => {
1732
1736
  const e = I(), t = Y(), n = C(), { selectedLang: s } = we();
1733
1737
  return X({
1734
1738
  mutationFn: async (r) => n(e, { action: p.UPDATE_GLOBAL_SCHEMA, data: { ...r, lang: s } }),
@@ -1743,7 +1747,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1743
1747
  });
1744
1748
  }
1745
1749
  });
1746
- }, yu = () => {
1750
+ }, Au = () => {
1747
1751
  const e = I(), t = Y(), n = C();
1748
1752
  return X({
1749
1753
  mutationFn: async (s) => n(e, { action: p.DELETE_GLOBAL_SCHEMA, data: { id: s } }),
@@ -1758,7 +1762,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1758
1762
  });
1759
1763
  }
1760
1764
  });
1761
- }, Au = () => {
1765
+ }, Tu = () => {
1762
1766
  const e = I(), t = C();
1763
1767
  return X({
1764
1768
  mutationFn: async (n) => t(e, { action: p.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
@@ -1768,7 +1772,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1768
1772
  });
1769
1773
  }
1770
1774
  });
1771
- }, Tu = () => {
1775
+ }, Su = () => {
1772
1776
  const e = I(), t = C();
1773
1777
  return X({
1774
1778
  mutationFn: async (n) => t(e, { action: p.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
@@ -1781,7 +1785,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1781
1785
  });
1782
1786
  }
1783
1787
  });
1784
- }, Su = () => {
1788
+ }, _u = () => {
1785
1789
  const e = I(), t = C();
1786
1790
  return X({
1787
1791
  mutationFn: async (n) => t(e, { action: p.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
@@ -1800,7 +1804,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1800
1804
  action: "GET_LIBRARY_ITEM",
1801
1805
  data: { id: e.id }
1802
1806
  }), r = q(s, "html", ""), a = q(s, "blocks", []);
1803
- return Oa(a) ? a : li(r);
1807
+ return xa(a) ? a : ui(r);
1804
1808
  },
1805
1809
  async getUILibraryBlocks(e, t, n) {
1806
1810
  return (await t(n, {
@@ -1810,7 +1814,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1810
1814
  ...r
1811
1815
  }));
1812
1816
  }
1813
- }, bo = () => {
1817
+ }, Io = () => {
1814
1818
  const e = I(), t = C();
1815
1819
  return se({
1816
1820
  queryKey: ["uiLibraries"],
@@ -1820,7 +1824,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1820
1824
  ...r
1821
1825
  }));
1822
1826
  return s.forEach((r) => {
1823
- Aa(r.id, {
1827
+ Ta(r.id, {
1824
1828
  name: r.isSiteLibrary ? r.name + " (Current Site) " : r.name,
1825
1829
  description: r.description,
1826
1830
  getBlocksList: (a) => us.getUILibraryBlocks(a, t, e),
@@ -1829,7 +1833,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1829
1833
  }), s;
1830
1834
  }
1831
1835
  });
1832
- }, Io = (e = 300) => {
1836
+ }, No = (e = 300) => {
1833
1837
  const t = de("onLogout", rn), n = de("getAccessToken"), s = I();
1834
1838
  return se({
1835
1839
  queryKey: ["check-user-access"],
@@ -1847,7 +1851,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1847
1851
  refetchIntervalInBackground: !0,
1848
1852
  retry: !1
1849
1853
  });
1850
- }, No = () => {
1854
+ }, Lo = () => {
1851
1855
  const e = I(), t = C(), { user: n } = Bn(), s = n == null ? void 0 : n.id;
1852
1856
  return se({
1853
1857
  queryKey: [p.GET_ROLE_AND_PERMISSIONS, s],
@@ -1858,7 +1862,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1858
1862
  enabled: !!s,
1859
1863
  staleTime: 1 / 0
1860
1864
  });
1861
- }, Lo = () => {
1865
+ }, Co = () => {
1862
1866
  const e = I(), t = C(), [, n] = Vs(), s = Y();
1863
1867
  return { onSave: async ({
1864
1868
  page: a,
@@ -1878,7 +1882,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1878
1882
  return console.error(l), new Error("Failed to save blocks");
1879
1883
  }
1880
1884
  } };
1881
- }, Co = () => {
1885
+ }, Go = () => {
1882
1886
  const { data: e } = Qs(), t = I(), n = C();
1883
1887
  return {
1884
1888
  getPartialBlocks: z(async () => {
@@ -1886,7 +1890,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1886
1890
  for (const r of e ?? [])
1887
1891
  ge(r == null ? void 0 : r.slug) && (s[r.id] = {
1888
1892
  type: r.pageType,
1889
- name: xa(r.name ?? r.slug),
1893
+ name: Ra(r.name ?? r.slug),
1890
1894
  description: ""
1891
1895
  });
1892
1896
  return s;
@@ -1899,7 +1903,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1899
1903
  action: "GET_DRAFT_PAGE",
1900
1904
  data: { id: s, draft: !0, editor: !1, mergePartials: !0 }
1901
1905
  });
1902
- return Rs(r.blocks, (a) => Dn(a, "_id"));
1906
+ return Rs(r.blocks, (a) => Un(a, "_id"));
1903
1907
  } catch (r) {
1904
1908
  return console.error(r), [];
1905
1909
  }
@@ -1907,7 +1911,7 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1907
1911
  [n, t]
1908
1912
  )
1909
1913
  };
1910
- }, Go = H(() => import("./ai-panel-content-DPbgkg3w.js")), Js = "chai-chat-panel", Oo = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
1914
+ }, Oo = H(() => import("./ai-panel-content-BBSzHZG6.js")), Zs = "chai-chat-panel", xo = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
1911
1915
  /* @__PURE__ */ c("title", { children: "ai" }),
1912
1916
  /* @__PURE__ */ c("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ c("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ c(
1913
1917
  "path",
@@ -1916,26 +1920,26 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1916
1920
  id: "Combined-Shape"
1917
1921
  }
1918
1922
  ) }) })
1919
- ] }), xo = ({ isActive: e, show: t }) => Zr("flags.ai", !1) ? /* @__PURE__ */ c(B, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Oo, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }) : null, Ro = {
1920
- id: Js,
1923
+ ] }), Ro = ({ isActive: e, show: t }) => Xr("flags.ai", !1) ? /* @__PURE__ */ c(B, { size: "icon", className: "p-0 [&_svg]:size-6", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(xo, { className: e ? "h-5 w-5 text-white" : "h-5 w-5 text-primary" }) }) : null, ko = {
1924
+ id: Zs,
1921
1925
  label: "AI Assistant",
1922
- button: xo,
1923
- panel: Go,
1926
+ button: Ro,
1927
+ panel: Oo,
1924
1928
  position: "top"
1925
- }, ko = H(() => import("./lang-panel-YA6NOcG7.js")), Do = ({ isActive: e, show: t }) => {
1929
+ }, Do = H(() => import("./lang-panel-q04hEq5o.js")), Uo = ({ isActive: e, show: t }) => {
1926
1930
  const { data: n } = Fe();
1927
- return !Dn(n, "languages") || !q(n, "languages", []).length ? null : /* @__PURE__ */ c(B, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(Xa, { className: "h-4 w-4" }) });
1928
- }, Zs = "lang", Uo = {
1929
- id: Zs,
1931
+ return !Un(n, "languages") || !q(n, "languages", []).length ? null : /* @__PURE__ */ c(B, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(ei, { className: "h-4 w-4" }) });
1932
+ }, Xs = "lang", Mo = {
1933
+ id: Xs,
1930
1934
  label: "Languages",
1931
1935
  position: "top",
1932
- panel: ko,
1933
- button: Do,
1936
+ panel: Do,
1937
+ button: Uo,
1934
1938
  view: "modal",
1935
1939
  width: 400
1936
- }, Mo = H(() => import("./seo-panel-BSqrXr0E.js")), Xs = "seo", Bo = ({ isActive: e, show: t }) => {
1937
- const { data: n } = fe(), s = Si(n == null ? void 0 : n.pageType);
1938
- return !Dn(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(B, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
1940
+ }, Bo = H(() => import("./seo-panel-P9uixkoZ.js")), er = "seo", Fo = ({ isActive: e, show: t }) => {
1941
+ const { data: n } = fe(), s = _i(n == null ? void 0 : n.pageType);
1942
+ return !Un(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(B, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
1939
1943
  "svg",
1940
1944
  {
1941
1945
  stroke: "currentColor",
@@ -1953,45 +1957,45 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
1953
1957
  ]
1954
1958
  }
1955
1959
  ) });
1956
- }, Fo = {
1957
- id: Xs,
1960
+ }, Ko = {
1961
+ id: er,
1958
1962
  label: "SEO",
1959
- panel: Mo,
1960
- button: Bo,
1963
+ panel: Bo,
1964
+ button: Fo,
1961
1965
  position: "top",
1962
1966
  width: 600,
1963
1967
  view: "modal"
1964
- }, Ko = H(
1965
- () => import("./change-password-modal-BfYrlENQ.js").then((e) => ({ default: e.ChangePasswordModal }))
1966
- ), er = "user-info", Vo = () => {
1968
+ }, Vo = H(
1969
+ () => import("./change-password-modal-DxkhBI5d.js").then((e) => ({ default: e.ChangePasswordModal }))
1970
+ ), tr = "user-info", Ho = () => {
1967
1971
  const { t: e } = ve(), { user: t, logout: n } = Bn(), s = de("onLogout", rn), [r, a] = V(!1);
1968
- return t ? /* @__PURE__ */ m(Xr, { children: [
1969
- /* @__PURE__ */ c(ea, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(ei, { className: "h-4 w-4" }) }) }),
1970
- /* @__PURE__ */ m(ta, { className: "w-auto space-y-2 p-4", children: [
1972
+ return t ? /* @__PURE__ */ m(ea, { children: [
1973
+ /* @__PURE__ */ c(ta, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "ghost", className: "text-sm font-medium", children: /* @__PURE__ */ c(ti, { className: "h-4 w-4" }) }) }),
1974
+ /* @__PURE__ */ m(na, { className: "w-auto space-y-2 p-4", children: [
1971
1975
  /* @__PURE__ */ c("div", { className: "text-sm font-medium", children: t.name ?? t.email }),
1972
1976
  /* @__PURE__ */ c("div", { className: "text-xs text-muted-foreground", children: t.email }),
1973
1977
  /* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", onClick: () => a(!0), children: e("Change Password") }),
1974
1978
  r && /* @__PURE__ */ c(
1975
1979
  J,
1976
1980
  {
1977
- fallback: /* @__PURE__ */ c(Rn, { open: r, onOpenChange: a, children: /* @__PURE__ */ c(Ls, { className: "sm:max-w-[425px]", children: /* @__PURE__ */ c("div", { className: "flex h-[340px] items-center justify-center", children: /* @__PURE__ */ c(ct, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) }) }),
1978
- children: /* @__PURE__ */ c(Ko, { open: r, onOpenChange: a })
1981
+ fallback: /* @__PURE__ */ c(kn, { open: r, onOpenChange: a, children: /* @__PURE__ */ c(Ls, { className: "sm:max-w-[425px]", children: /* @__PURE__ */ c("div", { className: "flex h-[340px] items-center justify-center", children: /* @__PURE__ */ c(ct, { className: "h-8 w-8 animate-spin text-muted-foreground" }) }) }) }),
1982
+ children: /* @__PURE__ */ c(Vo, { open: r, onOpenChange: a })
1979
1983
  }
1980
1984
  ),
1981
- /* @__PURE__ */ m(na, { children: [
1982
- /* @__PURE__ */ c(sa, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
1983
- /* @__PURE__ */ m(ra, { children: [
1984
- /* @__PURE__ */ m(aa, { children: [
1985
- /* @__PURE__ */ c(ia, { children: e("Are you sure you want to logout?") }),
1986
- /* @__PURE__ */ c(oa, { children: e("You will be redirected to the login page.") })
1985
+ /* @__PURE__ */ m(sa, { children: [
1986
+ /* @__PURE__ */ c(ra, { asChild: !0, children: /* @__PURE__ */ c(B, { variant: "outline", size: "sm", className: "w-full", children: e("Logout") }) }),
1987
+ /* @__PURE__ */ m(aa, { children: [
1988
+ /* @__PURE__ */ m(ia, { children: [
1989
+ /* @__PURE__ */ c(oa, { children: e("Are you sure you want to logout?") }),
1990
+ /* @__PURE__ */ c(ca, { children: e("You will be redirected to the login page.") })
1987
1991
  ] }),
1988
- /* @__PURE__ */ m(ca, { children: [
1989
- /* @__PURE__ */ c(la, { children: e("Cancel") }),
1992
+ /* @__PURE__ */ m(la, { children: [
1993
+ /* @__PURE__ */ c(ua, { children: e("Cancel") }),
1990
1994
  /* @__PURE__ */ c(
1991
- ua,
1995
+ da,
1992
1996
  {
1993
1997
  onClick: () => {
1994
- n(), Ra(s) && s();
1998
+ n(), ka(s) && s();
1995
1999
  },
1996
2000
  children: e("Logout")
1997
2001
  }
@@ -2001,13 +2005,13 @@ const po = H(() => import("./dynamic-page-selector-C-1FD1tF.js")), yo = () => {
2001
2005
  ] })
2002
2006
  ] })
2003
2007
  ] }) : null;
2004
- }, Ho = {
2005
- id: er,
2008
+ }, qo = {
2009
+ id: tr,
2006
2010
  label: "User Info",
2007
- button: Vo,
2011
+ button: Ho,
2008
2012
  position: "bottom"
2009
- }, qo = () => {
2010
- Ut(Xs, Fo), Ut(Zs, Uo), Ut(er, Ho), Ut(Js, Ro);
2013
+ }, $o = () => {
2014
+ Ut(er, Ko), Ut(Xs, Mo), Ut(tr, qo), Ut(Zs, ko);
2011
2015
  };
2012
2016
  var w = {
2013
2017
  context: void 0,
@@ -2028,16 +2032,16 @@ function ds(e) {
2028
2032
  function ft(e) {
2029
2033
  w.context = e;
2030
2034
  }
2031
- var tr = !1, $o = (e, t) => e === t, jt = Symbol("solid-proxy"), nr = typeof Proxy == "function", sr = Symbol("solid-track"), Yt = {
2032
- equals: $o
2033
- }, rr = dr, Ie = 1, Jt = 2, ar = {
2035
+ var nr = !1, Qo = (e, t) => e === t, jt = Symbol("solid-proxy"), sr = typeof Proxy == "function", rr = Symbol("solid-track"), Yt = {
2036
+ equals: Qo
2037
+ }, ar = fr, Ie = 1, Jt = 2, ir = {
2034
2038
  owned: null,
2035
2039
  cleanups: null,
2036
2040
  context: null,
2037
2041
  owner: null
2038
- }, En = {}, O = null, pn = null, Qo = null, R = null, te = null, Pe = null, on = 0;
2042
+ }, pn = {}, O = null, yn = null, zo = null, R = null, te = null, Pe = null, cn = 0;
2039
2043
  function De(e, t) {
2040
- const n = R, s = O, r = e.length === 0, a = t === void 0 ? s : t, i = r ? ar : {
2044
+ const n = R, s = O, r = e.length === 0, a = t === void 0 ? s : t, i = r ? ir : {
2041
2045
  owned: null,
2042
2046
  cleanups: null,
2043
2047
  context: a ? a.context : null,
@@ -2057,34 +2061,34 @@ function K(e, t) {
2057
2061
  observers: null,
2058
2062
  observerSlots: null,
2059
2063
  comparator: t.equals || void 0
2060
- }, s = (r) => (typeof r == "function" && (r = r(n.value)), ur(n, r));
2061
- return [lr.bind(n), s];
2064
+ }, s = (r) => (typeof r == "function" && (r = r(n.value)), dr(n, r));
2065
+ return [ur.bind(n), s];
2062
2066
  }
2063
- function zo(e, t, n) {
2064
- const s = cn(e, t, !0, Ie);
2067
+ function Wo(e, t, n) {
2068
+ const s = ln(e, t, !0, Ie);
2065
2069
  ut(s);
2066
2070
  }
2067
2071
  function Ue(e, t, n) {
2068
- const s = cn(e, t, !1, Ie);
2072
+ const s = ln(e, t, !1, Ie);
2069
2073
  ut(s);
2070
2074
  }
2071
- function ir(e, t, n) {
2072
- rr = nc;
2073
- const s = cn(e, t, !1, Ie);
2075
+ function or(e, t, n) {
2076
+ ar = sc;
2077
+ const s = ln(e, t, !1, Ie);
2074
2078
  (!n || !n.render) && (s.user = !0), Pe ? Pe.push(s) : ut(s);
2075
2079
  }
2076
2080
  function Z(e, t, n) {
2077
2081
  n = n ? Object.assign({}, Yt, n) : Yt;
2078
- const s = cn(e, t, !0, 0);
2079
- return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, ut(s), lr.bind(s);
2082
+ const s = ln(e, t, !0, 0);
2083
+ return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, ut(s), ur.bind(s);
2080
2084
  }
2081
- function Wo(e) {
2085
+ function jo(e) {
2082
2086
  return e && typeof e == "object" && "then" in e;
2083
2087
  }
2084
- function jo(e, t, n) {
2088
+ function Yo(e, t, n) {
2085
2089
  let s, r, a;
2086
2090
  s = !0, r = e, a = {};
2087
- let i = null, o = En, l = null, d = !1, u = "initialValue" in a, f = typeof s == "function" && Z(s);
2091
+ let i = null, o = pn, l = null, d = !1, u = "initialValue" in a, f = typeof s == "function" && Z(s);
2088
2092
  const g = /* @__PURE__ */ new Set(), [h, A] = (a.storage || K)(a.initialValue), [y, T] = K(void 0), [_, E] = K(void 0, {
2089
2093
  equals: !1
2090
2094
  }), [P, N] = K(u ? "ready" : "unresolved");
@@ -2092,7 +2096,7 @@ function jo(e, t, n) {
2092
2096
  function U(b, L, W, M) {
2093
2097
  return i === b && (i = null, M !== void 0 && (u = !0), (b === o || L === o) && a.onHydrated && queueMicrotask(() => a.onHydrated(M, {
2094
2098
  value: L
2095
- })), o = En, v(L, W)), L;
2099
+ })), o = pn, v(L, W)), L;
2096
2100
  }
2097
2101
  function v(b, L) {
2098
2102
  ye(() => {
@@ -2102,7 +2106,7 @@ function jo(e, t, n) {
2102
2106
  }, !1);
2103
2107
  }
2104
2108
  function me() {
2105
- const b = Xo, L = h(), W = y();
2109
+ const b = ec, L = h(), W = y();
2106
2110
  if (W !== void 0 && !i) throw W;
2107
2111
  return R && R.user, L;
2108
2112
  }
@@ -2115,7 +2119,7 @@ function jo(e, t, n) {
2115
2119
  return;
2116
2120
  }
2117
2121
  let W;
2118
- const M = o !== En ? o : ee(() => {
2122
+ const M = o !== pn ? o : ee(() => {
2119
2123
  try {
2120
2124
  return r(L, {
2121
2125
  value: h(),
@@ -2128,7 +2132,7 @@ function jo(e, t, n) {
2128
2132
  if (W !== void 0) {
2129
2133
  U(i, void 0, qt(W), L);
2130
2134
  return;
2131
- } else if (!Wo(M))
2135
+ } else if (!jo(M))
2132
2136
  return U(i, M, void 0, L), M;
2133
2137
  return i = M, "v" in M ? (M.s === 1 ? U(i, M.v, void 0, L) : U(i, void 0, qt(M.v), L), M) : (d = !0, queueMicrotask(() => d = !1), ye(() => {
2134
2138
  N(u ? "refreshing" : "pending"), E();
@@ -2157,12 +2161,12 @@ function jo(e, t, n) {
2157
2161
  }
2158
2162
  });
2159
2163
  let F = O;
2160
- return f ? zo(() => (F = O, _e(!1))) : _e(!1), [me, {
2161
- refetch: (b) => or(F, () => _e(b)),
2164
+ return f ? Wo(() => (F = O, _e(!1))) : _e(!1), [me, {
2165
+ refetch: (b) => cr(F, () => _e(b)),
2162
2166
  mutate: A
2163
2167
  }];
2164
2168
  }
2165
- function _u(e) {
2169
+ function Pu(e) {
2166
2170
  return ye(e, !1);
2167
2171
  }
2168
2172
  function ee(e) {
@@ -2175,7 +2179,7 @@ function ee(e) {
2175
2179
  R = t;
2176
2180
  }
2177
2181
  }
2178
- function Pu(e, t, n) {
2182
+ function wu(e, t, n) {
2179
2183
  const s = Array.isArray(e);
2180
2184
  let r, a = n && n.defer;
2181
2185
  return (i) => {
@@ -2190,8 +2194,8 @@ function Pu(e, t, n) {
2190
2194
  return r = o, l;
2191
2195
  };
2192
2196
  }
2193
- function Yo(e) {
2194
- ir(() => ee(e));
2197
+ function Jo(e) {
2198
+ or(() => ee(e));
2195
2199
  }
2196
2200
  function mt(e) {
2197
2201
  return O === null || (O.cleanups === null ? O.cleanups = [e] : O.cleanups.push(e)), e;
@@ -2199,7 +2203,7 @@ function mt(e) {
2199
2203
  function fs() {
2200
2204
  return O;
2201
2205
  }
2202
- function or(e, t) {
2206
+ function cr(e, t) {
2203
2207
  const n = O, s = R;
2204
2208
  O = e, R = null;
2205
2209
  try {
@@ -2210,7 +2214,7 @@ function or(e, t) {
2210
2214
  O = n, R = s;
2211
2215
  }
2212
2216
  }
2213
- function Jo(e) {
2217
+ function Zo(e) {
2214
2218
  const t = R, n = O;
2215
2219
  return Promise.resolve().then(() => {
2216
2220
  R = t, O = n;
@@ -2218,31 +2222,31 @@ function Jo(e) {
2218
2222
  return ye(e, !1), R = O = null, s ? s.done : void 0;
2219
2223
  });
2220
2224
  }
2221
- var [Zo, wu] = /* @__PURE__ */ K(!1);
2222
- function vu() {
2223
- return [Zo, Jo];
2225
+ var [Xo, vu] = /* @__PURE__ */ K(!1);
2226
+ function bu() {
2227
+ return [Xo, Zo];
2224
2228
  }
2225
- function bu(e, t) {
2229
+ function Iu(e, t) {
2226
2230
  const n = Symbol("context");
2227
2231
  return {
2228
2232
  id: n,
2229
- Provider: sc(n),
2233
+ Provider: rc(n),
2230
2234
  defaultValue: e
2231
2235
  };
2232
2236
  }
2233
- function Iu(e) {
2237
+ function Nu(e) {
2234
2238
  let t;
2235
2239
  return O && O.context && (t = O.context[e.id]) !== void 0 ? t : e.defaultValue;
2236
2240
  }
2237
- function cr(e) {
2238
- const t = Z(e), n = Z(() => Sn(t()));
2241
+ function lr(e) {
2242
+ const t = Z(e), n = Z(() => _n(t()));
2239
2243
  return n.toArray = () => {
2240
2244
  const s = n();
2241
2245
  return Array.isArray(s) ? s : s != null ? [s] : [];
2242
2246
  }, n;
2243
2247
  }
2244
- var Xo;
2245
- function lr() {
2248
+ var ec;
2249
+ function ur() {
2246
2250
  if (this.sources && this.state)
2247
2251
  if (this.state === Ie) ut(this);
2248
2252
  else {
@@ -2255,12 +2259,12 @@ function lr() {
2255
2259
  }
2256
2260
  return this.value;
2257
2261
  }
2258
- function ur(e, t, n) {
2262
+ function dr(e, t, n) {
2259
2263
  let s = e.value;
2260
2264
  return (!e.comparator || !e.comparator(s, t)) && (e.value = t, e.observers && e.observers.length && ye(() => {
2261
2265
  for (let r = 0; r < e.observers.length; r += 1) {
2262
- const a = e.observers[r], i = pn && pn.running;
2263
- i && pn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? te.push(a) : Pe.push(a), a.observers && fr(a)), i || (a.state = Ie);
2266
+ const a = e.observers[r], i = yn && yn.running;
2267
+ i && yn.disposed.has(a), (i ? !a.tState : !a.state) && (a.pure ? te.push(a) : Pe.push(a), a.observers && hr(a)), i || (a.state = Ie);
2264
2268
  }
2265
2269
  if (te.length > 1e6)
2266
2270
  throw te = [], new Error();
@@ -2269,10 +2273,10 @@ function ur(e, t, n) {
2269
2273
  function ut(e) {
2270
2274
  if (!e.fn) return;
2271
2275
  Et(e);
2272
- const t = on;
2273
- ec(e, e.value, t);
2276
+ const t = cn;
2277
+ tc(e, e.value, t);
2274
2278
  }
2275
- function ec(e, t, n) {
2279
+ function tc(e, t, n) {
2276
2280
  let s;
2277
2281
  const r = O, a = R;
2278
2282
  R = O = e;
@@ -2283,9 +2287,9 @@ function ec(e, t, n) {
2283
2287
  } finally {
2284
2288
  R = a, O = r;
2285
2289
  }
2286
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? ur(e, s) : e.value = s, e.updatedAt = n);
2290
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? dr(e, s) : e.value = s, e.updatedAt = n);
2287
2291
  }
2288
- function cn(e, t, n, s = Ie, r) {
2292
+ function ln(e, t, n, s = Ie, r) {
2289
2293
  const a = {
2290
2294
  fn: e,
2291
2295
  state: s,
@@ -2299,14 +2303,14 @@ function cn(e, t, n, s = Ie, r) {
2299
2303
  context: O ? O.context : null,
2300
2304
  pure: n
2301
2305
  };
2302
- return O === null || O !== ar && (O.owned ? O.owned.push(a) : O.owned = [a]), a;
2306
+ return O === null || O !== ir && (O.owned ? O.owned.push(a) : O.owned = [a]), a;
2303
2307
  }
2304
2308
  function Zt(e) {
2305
2309
  if (e.state === 0) return;
2306
2310
  if (e.state === Jt) return Xt(e);
2307
2311
  if (e.suspense && ee(e.suspense.inFallback)) return e.suspense.effects.push(e);
2308
2312
  const t = [e];
2309
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < on); )
2313
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < cn); )
2310
2314
  e.state && t.push(e);
2311
2315
  for (let n = t.length - 1; n >= 0; n--)
2312
2316
  if (e = t[n], e.state === Ie)
@@ -2319,23 +2323,23 @@ function Zt(e) {
2319
2323
  function ye(e, t) {
2320
2324
  if (te) return e();
2321
2325
  let n = !1;
2322
- t || (te = []), Pe ? n = !0 : Pe = [], on++;
2326
+ t || (te = []), Pe ? n = !0 : Pe = [], cn++;
2323
2327
  try {
2324
2328
  const s = e();
2325
- return tc(n), s;
2329
+ return nc(n), s;
2326
2330
  } catch (s) {
2327
2331
  n || (Pe = null), te = null, qn(s);
2328
2332
  }
2329
2333
  }
2330
- function tc(e) {
2331
- if (te && (dr(te), te = null), e) return;
2334
+ function nc(e) {
2335
+ if (te && (fr(te), te = null), e) return;
2332
2336
  const t = Pe;
2333
- Pe = null, t.length && ye(() => rr(t), !1);
2337
+ Pe = null, t.length && ye(() => ar(t), !1);
2334
2338
  }
2335
- function dr(e) {
2339
+ function fr(e) {
2336
2340
  for (let t = 0; t < e.length; t++) Zt(e[t]);
2337
2341
  }
2338
- function nc(e) {
2342
+ function sc(e) {
2339
2343
  let t, n = 0;
2340
2344
  for (t = 0; t < e.length; t++) {
2341
2345
  const s = e[t];
@@ -2356,14 +2360,14 @@ function Xt(e, t) {
2356
2360
  const s = e.sources[n];
2357
2361
  if (s.sources) {
2358
2362
  const r = s.state;
2359
- r === Ie ? s !== t && (!s.updatedAt || s.updatedAt < on) && Zt(s) : r === Jt && Xt(s, t);
2363
+ r === Ie ? s !== t && (!s.updatedAt || s.updatedAt < cn) && Zt(s) : r === Jt && Xt(s, t);
2360
2364
  }
2361
2365
  }
2362
2366
  }
2363
- function fr(e) {
2367
+ function hr(e) {
2364
2368
  for (let t = 0; t < e.observers.length; t += 1) {
2365
2369
  const n = e.observers[t];
2366
- n.state || (n.state = Jt, n.pure ? te.push(n) : Pe.push(n), n.observers && fr(n));
2370
+ n.state || (n.state = Jt, n.pure ? te.push(n) : Pe.push(n), n.observers && hr(n));
2367
2371
  }
2368
2372
  }
2369
2373
  function Et(e) {
@@ -2398,39 +2402,39 @@ function qt(e) {
2398
2402
  function qn(e, t = O) {
2399
2403
  throw qt(e);
2400
2404
  }
2401
- function Sn(e) {
2402
- if (typeof e == "function" && !e.length) return Sn(e());
2405
+ function _n(e) {
2406
+ if (typeof e == "function" && !e.length) return _n(e());
2403
2407
  if (Array.isArray(e)) {
2404
2408
  const t = [];
2405
2409
  for (let n = 0; n < e.length; n++) {
2406
- const s = Sn(e[n]);
2410
+ const s = _n(e[n]);
2407
2411
  Array.isArray(s) ? t.push.apply(t, s) : t.push(s);
2408
2412
  }
2409
2413
  return t;
2410
2414
  }
2411
2415
  return e;
2412
2416
  }
2413
- function sc(e, t) {
2417
+ function rc(e, t) {
2414
2418
  return function(s) {
2415
2419
  let r;
2416
2420
  return Ue(() => r = ee(() => (O.context = {
2417
2421
  ...O.context,
2418
2422
  [e]: s.value
2419
- }, cr(() => s.children))), void 0), r;
2423
+ }, lr(() => s.children))), void 0), r;
2420
2424
  };
2421
2425
  }
2422
- var _n = Symbol("fallback");
2426
+ var Pn = Symbol("fallback");
2423
2427
  function en(e) {
2424
2428
  for (let t = 0; t < e.length; t++) e[t]();
2425
2429
  }
2426
- function rc(e, t, n = {}) {
2430
+ function ac(e, t, n = {}) {
2427
2431
  let s = [], r = [], a = [], i = 0, o = t.length > 1 ? [] : null;
2428
2432
  return mt(() => en(a)), () => {
2429
2433
  let l = e() || [], d = l.length, u, f;
2430
- return l[sr], ee(() => {
2434
+ return l[rr], ee(() => {
2431
2435
  let h, A, y, T, _, E, P, N, U;
2432
2436
  if (d === 0)
2433
- i !== 0 && (en(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [_n], r[0] = De((v) => (a[0] = v, n.fallback())), i = 1);
2437
+ i !== 0 && (en(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [Pn], r[0] = De((v) => (a[0] = v, n.fallback())), i = 1);
2434
2438
  else if (i === 0) {
2435
2439
  for (r = new Array(d), f = 0; f < d; f++)
2436
2440
  s[f] = l[f], r[f] = De(g);
@@ -2458,14 +2462,14 @@ function rc(e, t, n = {}) {
2458
2462
  }
2459
2463
  };
2460
2464
  }
2461
- function ac(e, t, n = {}) {
2465
+ function ic(e, t, n = {}) {
2462
2466
  let s = [], r = [], a = [], i = [], o = 0, l;
2463
2467
  return mt(() => en(a)), () => {
2464
2468
  const d = e() || [], u = d.length;
2465
- return d[sr], ee(() => {
2469
+ return d[rr], ee(() => {
2466
2470
  if (u === 0)
2467
- return o !== 0 && (en(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [_n], r[0] = De((g) => (a[0] = g, n.fallback())), o = 1), r;
2468
- for (s[0] === _n && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < u; l++)
2471
+ return o !== 0 && (en(a), a = [], s = [], r = [], o = 0, i = []), n.fallback && (s = [Pn], r[0] = De((g) => (a[0] = g, n.fallback())), o = 1), r;
2472
+ for (s[0] === Pn && (a[0](), a = [], s = [], r = [], o = 0), l = 0; l < u; l++)
2469
2473
  l < s.length && s[l] !== d[l] ? i[l](() => d[l]) : l >= s.length && (r[l] = De(f));
2470
2474
  for (; l < s.length; l++)
2471
2475
  a[l]();
@@ -2478,13 +2482,13 @@ function ac(e, t, n = {}) {
2478
2482
  }
2479
2483
  };
2480
2484
  }
2481
- function hr(e, t) {
2485
+ function gr(e, t) {
2482
2486
  return ee(() => e(t || {}));
2483
2487
  }
2484
2488
  function Bt() {
2485
2489
  return !0;
2486
2490
  }
2487
- var Pn = {
2491
+ var wn = {
2488
2492
  get(e, t, n) {
2489
2493
  return t === jt ? n : e.get(t);
2490
2494
  },
@@ -2508,40 +2512,40 @@ var Pn = {
2508
2512
  return e.keys();
2509
2513
  }
2510
2514
  };
2511
- function yn(e) {
2515
+ function An(e) {
2512
2516
  return (e = typeof e == "function" ? e() : e) ? e : {};
2513
2517
  }
2514
- function ic() {
2518
+ function oc() {
2515
2519
  for (let e = 0, t = this.length; e < t; ++e) {
2516
2520
  const n = this[e]();
2517
2521
  if (n !== void 0) return n;
2518
2522
  }
2519
2523
  }
2520
- function gr(...e) {
2524
+ function mr(...e) {
2521
2525
  let t = !1;
2522
2526
  for (let i = 0; i < e.length; i++) {
2523
2527
  const o = e[i];
2524
2528
  t = t || !!o && jt in o, e[i] = typeof o == "function" ? (t = !0, Z(o)) : o;
2525
2529
  }
2526
- if (nr && t)
2530
+ if (sr && t)
2527
2531
  return new Proxy({
2528
2532
  get(i) {
2529
2533
  for (let o = e.length - 1; o >= 0; o--) {
2530
- const l = yn(e[o])[i];
2534
+ const l = An(e[o])[i];
2531
2535
  if (l !== void 0) return l;
2532
2536
  }
2533
2537
  },
2534
2538
  has(i) {
2535
2539
  for (let o = e.length - 1; o >= 0; o--)
2536
- if (i in yn(e[o])) return !0;
2540
+ if (i in An(e[o])) return !0;
2537
2541
  return !1;
2538
2542
  },
2539
2543
  keys() {
2540
2544
  const i = [];
2541
- for (let o = 0; o < e.length; o++) i.push(...Object.keys(yn(e[o])));
2545
+ for (let o = 0; o < e.length; o++) i.push(...Object.keys(An(e[o])));
2542
2546
  return [...new Set(i)];
2543
2547
  }
2544
- }, Pn);
2548
+ }, wn);
2545
2549
  const n = {}, s = /* @__PURE__ */ Object.create(null);
2546
2550
  for (let i = e.length - 1; i >= 0; i--) {
2547
2551
  const o = e[i];
@@ -2555,7 +2559,7 @@ function gr(...e) {
2555
2559
  s[u] = f.get ? {
2556
2560
  enumerable: !0,
2557
2561
  configurable: !0,
2558
- get: ic.bind(n[u] = [f.get.bind(o)])
2562
+ get: oc.bind(n[u] = [f.get.bind(o)])
2559
2563
  } : f.value !== void 0 ? f : void 0;
2560
2564
  else {
2561
2565
  const g = n[u];
@@ -2570,8 +2574,8 @@ function gr(...e) {
2570
2574
  }
2571
2575
  return r;
2572
2576
  }
2573
- function oc(e, ...t) {
2574
- if (nr && jt in e) {
2577
+ function cc(e, ...t) {
2578
+ if (sr && jt in e) {
2575
2579
  const r = new Set(t.length > 1 ? t.flat() : t[0]), a = t.map((i) => new Proxy({
2576
2580
  get(o) {
2577
2581
  return i.includes(o) ? e[o] : void 0;
@@ -2582,7 +2586,7 @@ function oc(e, ...t) {
2582
2586
  keys() {
2583
2587
  return i.filter((o) => o in e);
2584
2588
  }
2585
- }, Pn));
2589
+ }, wn));
2586
2590
  return a.push(new Proxy({
2587
2591
  get(i) {
2588
2592
  return r.has(i) ? void 0 : e[i];
@@ -2593,7 +2597,7 @@ function oc(e, ...t) {
2593
2597
  keys() {
2594
2598
  return Object.keys(e).filter((i) => !r.has(i));
2595
2599
  }
2596
- }, Pn)), a;
2600
+ }, wn)), a;
2597
2601
  }
2598
2602
  const n = {}, s = t.map(() => ({}));
2599
2603
  for (const r of Object.getOwnPropertyNames(e)) {
@@ -2605,7 +2609,7 @@ function oc(e, ...t) {
2605
2609
  }
2606
2610
  return [...s, n];
2607
2611
  }
2608
- function mr(e) {
2612
+ function Er(e) {
2609
2613
  let t, n;
2610
2614
  const s = (r) => {
2611
2615
  const a = w.context;
@@ -2615,7 +2619,7 @@ function mr(e) {
2615
2619
  !w.done && ft(a), w.count--, l(() => d.default), ft();
2616
2620
  }), t = o;
2617
2621
  } else if (!t) {
2618
- const [o] = jo(() => (n || (n = e())).then((l) => l.default));
2622
+ const [o] = Yo(() => (n || (n = e())).then((l) => l.default));
2619
2623
  t = o;
2620
2624
  }
2621
2625
  let i;
@@ -2629,24 +2633,24 @@ function mr(e) {
2629
2633
  };
2630
2634
  return s.preload = () => n || ((n = e()).then((r) => t = () => r.default), n), s;
2631
2635
  }
2632
- var cc = 0;
2633
- function Nu() {
2634
- return w.context ? w.getNextContextId() : `cl-${cc++}`;
2636
+ var lc = 0;
2637
+ function Lu() {
2638
+ return w.context ? w.getNextContextId() : `cl-${lc++}`;
2635
2639
  }
2636
- var Er = (e) => `Stale read from <${e}>.`;
2637
- function Lu(e) {
2640
+ var pr = (e) => `Stale read from <${e}>.`;
2641
+ function Cu(e) {
2638
2642
  const t = "fallback" in e && {
2639
2643
  fallback: () => e.fallback
2640
2644
  };
2641
- return Z(rc(() => e.each, e.children, t || void 0));
2645
+ return Z(ac(() => e.each, e.children, t || void 0));
2642
2646
  }
2643
- function Cu(e) {
2647
+ function Gu(e) {
2644
2648
  const t = "fallback" in e && {
2645
2649
  fallback: () => e.fallback
2646
2650
  };
2647
- return Z(ac(() => e.each, e.children, t || void 0));
2651
+ return Z(ic(() => e.each, e.children, t || void 0));
2648
2652
  }
2649
- function Gu(e) {
2653
+ function Ou(e) {
2650
2654
  const t = e.keyed, n = Z(() => e.when, void 0, void 0), s = t ? n : Z(n, void 0, {
2651
2655
  equals: (r, a) => !r == !a
2652
2656
  });
@@ -2655,15 +2659,15 @@ function Gu(e) {
2655
2659
  if (r) {
2656
2660
  const a = e.children;
2657
2661
  return typeof a == "function" && a.length > 0 ? ee(() => a(t ? r : () => {
2658
- if (!ee(s)) throw Er("Show");
2662
+ if (!ee(s)) throw pr("Show");
2659
2663
  return n();
2660
2664
  })) : a;
2661
2665
  }
2662
2666
  return e.fallback;
2663
2667
  }, void 0, void 0);
2664
2668
  }
2665
- function Ou(e) {
2666
- const t = cr(() => e.children), n = Z(() => {
2669
+ function xu(e) {
2670
+ const t = lr(() => e.children), n = Z(() => {
2667
2671
  const s = t(), r = Array.isArray(s) ? s : [s];
2668
2672
  let a = () => {
2669
2673
  };
@@ -2681,18 +2685,18 @@ function Ou(e) {
2681
2685
  const [r, a, i] = s, o = i.children;
2682
2686
  return typeof o == "function" && o.length > 0 ? ee(() => o(i.keyed ? a() : () => {
2683
2687
  var d;
2684
- if (((d = ee(n)()) == null ? void 0 : d[0]) !== r) throw Er("Match");
2688
+ if (((d = ee(n)()) == null ? void 0 : d[0]) !== r) throw pr("Match");
2685
2689
  return a();
2686
2690
  })) : o;
2687
2691
  }, void 0, void 0);
2688
2692
  }
2689
- function xu(e) {
2693
+ function Ru(e) {
2690
2694
  return e;
2691
2695
  }
2692
- var lc = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], uc = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...lc]), dc = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), fc = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2696
+ var uc = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], dc = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...uc]), fc = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), hc = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2693
2697
  className: "class",
2694
2698
  htmlFor: "for"
2695
- }), hc = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2699
+ }), gc = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2696
2700
  class: "className",
2697
2701
  novalidate: {
2698
2702
  $: "noValidate",
@@ -2721,11 +2725,11 @@ var lc = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
2721
2725
  TEXTAREA: 1
2722
2726
  }
2723
2727
  });
2724
- function gc(e, t) {
2725
- const n = hc[e];
2728
+ function mc(e, t) {
2729
+ const n = gc[e];
2726
2730
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
2727
2731
  }
2728
- var mc = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Ec = /* @__PURE__ */ new Set([
2732
+ var Ec = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), pc = /* @__PURE__ */ new Set([
2729
2733
  "altGlyph",
2730
2734
  "altGlyphDef",
2731
2735
  "altGlyphItem",
@@ -2803,11 +2807,11 @@ var mc = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
2803
2807
  "use",
2804
2808
  "view",
2805
2809
  "vkern"
2806
- ]), pc = {
2810
+ ]), yc = {
2807
2811
  xlink: "http://www.w3.org/1999/xlink",
2808
2812
  xml: "http://www.w3.org/XML/1998/namespace"
2809
- }, Ru = (e) => Z(() => e());
2810
- function yc(e, t, n) {
2813
+ }, ku = (e) => Z(() => e());
2814
+ function Ac(e, t, n) {
2811
2815
  let s = n.length, r = t.length, a = s, i = 0, o = 0, l = t[r - 1].nextSibling, d = null;
2812
2816
  for (; i < r || o < a; ) {
2813
2817
  if (t[i] === n[o]) {
@@ -2847,15 +2851,15 @@ function yc(e, t, n) {
2847
2851
  }
2848
2852
  }
2849
2853
  var ht = "_$DX_DELEGATE";
2850
- function pr(e, t, n, s = {}) {
2854
+ function yr(e, t, n, s = {}) {
2851
2855
  let r;
2852
2856
  return De((a) => {
2853
- r = a, t === document ? e() : vn(t, e(), t.firstChild ? null : void 0, n);
2857
+ r = a, t === document ? e() : bn(t, e(), t.firstChild ? null : void 0, n);
2854
2858
  }, s.owner), () => {
2855
2859
  r(), t.textContent = "";
2856
2860
  };
2857
2861
  }
2858
- function ku(e, t, n, s) {
2862
+ function Du(e, t, n, s) {
2859
2863
  let r;
2860
2864
  const a = () => {
2861
2865
  const o = document.createElement("template");
@@ -2863,32 +2867,32 @@ function ku(e, t, n, s) {
2863
2867
  }, i = () => (r || (r = a())).cloneNode(!0);
2864
2868
  return i.cloneNode = i, i;
2865
2869
  }
2866
- function Ac(e, t = window.document) {
2870
+ function Tc(e, t = window.document) {
2867
2871
  const n = t[ht] || (t[ht] = /* @__PURE__ */ new Set());
2868
2872
  for (let s = 0, r = e.length; s < r; s++) {
2869
2873
  const a = e[s];
2870
- n.has(a) || (n.add(a), t.addEventListener(a, yr));
2874
+ n.has(a) || (n.add(a), t.addEventListener(a, Ar));
2871
2875
  }
2872
2876
  }
2873
- function Du(e = window.document) {
2877
+ function Uu(e = window.document) {
2874
2878
  if (e[ht]) {
2875
- for (let t of e[ht].keys()) e.removeEventListener(t, yr);
2879
+ for (let t of e[ht].keys()) e.removeEventListener(t, Ar);
2876
2880
  delete e[ht];
2877
2881
  }
2878
2882
  }
2879
- function wn(e, t, n) {
2883
+ function vn(e, t, n) {
2880
2884
  Ke(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
2881
2885
  }
2882
- function Tc(e, t, n, s) {
2886
+ function Sc(e, t, n, s) {
2883
2887
  Ke(e) || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
2884
2888
  }
2885
- function Sc(e, t, n) {
2889
+ function _c(e, t, n) {
2886
2890
  Ke(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
2887
2891
  }
2888
- function _c(e, t) {
2892
+ function Pc(e, t) {
2889
2893
  Ke(e) || (t == null ? e.removeAttribute("class") : e.className = t);
2890
2894
  }
2891
- function Pc(e, t, n, s) {
2895
+ function wc(e, t, n, s) {
2892
2896
  if (s)
2893
2897
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
2894
2898
  else if (Array.isArray(n)) {
@@ -2896,7 +2900,7 @@ function Pc(e, t, n, s) {
2896
2900
  e.addEventListener(t, n[0] = (a) => r.call(e, n[1], a));
2897
2901
  } else e.addEventListener(t, n, typeof n != "function" && n);
2898
2902
  }
2899
- function wc(e, t, n = {}) {
2903
+ function vc(e, t, n = {}) {
2900
2904
  const s = Object.keys(t || {}), r = Object.keys(n);
2901
2905
  let a, i;
2902
2906
  for (a = 0, i = r.length; a < i; a++) {
@@ -2909,8 +2913,8 @@ function wc(e, t, n = {}) {
2909
2913
  }
2910
2914
  return n;
2911
2915
  }
2912
- function vc(e, t, n) {
2913
- if (!t) return n ? wn(e, "style") : t;
2916
+ function bc(e, t, n) {
2917
+ if (!t) return n ? vn(e, "style") : t;
2914
2918
  const s = e.style;
2915
2919
  if (typeof t == "string") return s.cssText = t;
2916
2920
  typeof n == "string" && (s.cssText = n = void 0), n || (n = {}), t || (t = {});
@@ -2921,18 +2925,18 @@ function vc(e, t, n) {
2921
2925
  r = t[a], r !== n[a] && (s.setProperty(a, r), n[a] = r);
2922
2926
  return n;
2923
2927
  }
2924
- function bc(e, t = {}, n, s) {
2928
+ function Ic(e, t = {}, n, s) {
2925
2929
  const r = {};
2926
- return s || Ue(() => r.children = pt(e, t.children, r.children)), Ue(() => typeof t.ref == "function" && Ic(t.ref, e)), Ue(() => Nc(e, t, n, !0, r, !0)), r;
2930
+ return s || Ue(() => r.children = pt(e, t.children, r.children)), Ue(() => typeof t.ref == "function" && Nc(t.ref, e)), Ue(() => Lc(e, t, n, !0, r, !0)), r;
2927
2931
  }
2928
- function Ic(e, t, n) {
2932
+ function Nc(e, t, n) {
2929
2933
  return ee(() => e(t, n));
2930
2934
  }
2931
- function vn(e, t, n, s) {
2935
+ function bn(e, t, n, s) {
2932
2936
  if (n !== void 0 && !s && (s = []), typeof t != "function") return pt(e, t, s, n);
2933
2937
  Ue((r) => pt(e, t(), r, n), s);
2934
2938
  }
2935
- function Nc(e, t, n, s, r = {}, a = !1) {
2939
+ function Lc(e, t, n, s, r = {}, a = !1) {
2936
2940
  t || (t = {});
2937
2941
  for (const i in r)
2938
2942
  if (!(i in t)) {
@@ -2946,14 +2950,14 @@ function Nc(e, t, n, s, r = {}, a = !1) {
2946
2950
  r[i] = gs(e, i, o, r[i], n, a, t);
2947
2951
  }
2948
2952
  }
2949
- function Lc(e) {
2953
+ function Cc(e) {
2950
2954
  let t, n;
2951
- return !Ke() || !(t = w.registry.get(n = Gc())) ? e() : (w.completed && w.completed.add(t), w.registry.delete(n), t);
2955
+ return !Ke() || !(t = w.registry.get(n = Oc())) ? e() : (w.completed && w.completed.add(t), w.registry.delete(n), t);
2952
2956
  }
2953
2957
  function Ke(e) {
2954
2958
  return !!w.context && !w.done && (!e || e.isConnected);
2955
2959
  }
2956
- function Cc(e) {
2960
+ function Gc(e) {
2957
2961
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
2958
2962
  }
2959
2963
  function hs(e, t, n) {
@@ -2962,8 +2966,8 @@ function hs(e, t, n) {
2962
2966
  }
2963
2967
  function gs(e, t, n, s, r, a, i) {
2964
2968
  let o, l, d, u, f;
2965
- if (t === "style") return vc(e, n, s);
2966
- if (t === "classList") return wc(e, n, s);
2969
+ if (t === "style") return bc(e, n, s);
2970
+ if (t === "classList") return vc(e, n, s);
2967
2971
  if (n === s) return s;
2968
2972
  if (t === "ref")
2969
2973
  a || n(e);
@@ -2974,28 +2978,28 @@ function gs(e, t, n, s, r, a, i) {
2974
2978
  const g = t.slice(10);
2975
2979
  s && e.removeEventListener(g, s, !0), n && e.addEventListener(g, n, !0);
2976
2980
  } else if (t.slice(0, 2) === "on") {
2977
- const g = t.slice(2).toLowerCase(), h = mc.has(g);
2981
+ const g = t.slice(2).toLowerCase(), h = Ec.has(g);
2978
2982
  if (!h && s) {
2979
2983
  const A = Array.isArray(s) ? s[0] : s;
2980
2984
  e.removeEventListener(g, A);
2981
2985
  }
2982
- (h || n) && (Pc(e, g, n, h), h && Ac([g]));
2986
+ (h || n) && (wc(e, g, n, h), h && Tc([g]));
2983
2987
  } else if (t.slice(0, 5) === "attr:")
2984
- wn(e, t.slice(5), n);
2988
+ vn(e, t.slice(5), n);
2985
2989
  else if (t.slice(0, 5) === "bool:")
2986
- Sc(e, t.slice(5), n);
2987
- else if ((f = t.slice(0, 5) === "prop:") || (d = dc.has(t)) || !r && ((u = gc(t, e.tagName)) || (l = uc.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
2990
+ _c(e, t.slice(5), n);
2991
+ else if ((f = t.slice(0, 5) === "prop:") || (d = fc.has(t)) || !r && ((u = mc(t, e.tagName)) || (l = dc.has(t))) || (o = e.nodeName.includes("-") || "is" in i)) {
2988
2992
  if (f)
2989
2993
  t = t.slice(5), l = !0;
2990
2994
  else if (Ke(e)) return n;
2991
- t === "class" || t === "className" ? _c(e, n) : o && !l && !d ? e[Cc(t)] = n : e[u || t] = n;
2995
+ t === "class" || t === "className" ? Pc(e, n) : o && !l && !d ? e[Gc(t)] = n : e[u || t] = n;
2992
2996
  } else {
2993
- const g = r && t.indexOf(":") > -1 && pc[t.split(":")[0]];
2994
- g ? Tc(e, g, t, n) : wn(e, fc[t] || t, n);
2997
+ const g = r && t.indexOf(":") > -1 && yc[t.split(":")[0]];
2998
+ g ? Sc(e, g, t, n) : vn(e, hc[t] || t, n);
2995
2999
  }
2996
3000
  return n;
2997
3001
  }
2998
- function yr(e) {
3002
+ function Ar(e) {
2999
3003
  if (w.registry && w.events && w.events.find(([l, d]) => d === e))
3000
3004
  return;
3001
3005
  let t = e.target;
@@ -3065,7 +3069,7 @@ function pt(e, t, n, s, r) {
3065
3069
  }), () => n;
3066
3070
  if (Array.isArray(t)) {
3067
3071
  const l = [], d = n && Array.isArray(n);
3068
- if (bn(l, t, n, r))
3072
+ if (In(l, t, n, r))
3069
3073
  return Ue(() => n = pt(e, l, n, s, !0)), () => n;
3070
3074
  if (a) {
3071
3075
  if (!l.length) return n;
@@ -3078,7 +3082,7 @@ function pt(e, t, n, s, r) {
3078
3082
  }
3079
3083
  if (l.length === 0) {
3080
3084
  if (n = He(e, n, s), o) return n;
3081
- } else d ? n.length === 0 ? ms(e, l, s) : yc(e, n, l) : (n && He(e), ms(e, l));
3085
+ } else d ? n.length === 0 ? ms(e, l, s) : Ac(e, n, l) : (n && He(e), ms(e, l));
3082
3086
  n = l;
3083
3087
  } else if (t.nodeType) {
3084
3088
  if (a && t.parentNode) return n = o ? [t] : t;
@@ -3091,18 +3095,18 @@ function pt(e, t, n, s, r) {
3091
3095
  }
3092
3096
  return n;
3093
3097
  }
3094
- function bn(e, t, n, s) {
3098
+ function In(e, t, n, s) {
3095
3099
  let r = !1;
3096
3100
  for (let a = 0, i = t.length; a < i; a++) {
3097
3101
  let o = t[a], l = n && n[e.length], d;
3098
3102
  if (!(o == null || o === !0 || o === !1)) if ((d = typeof o) == "object" && o.nodeType)
3099
3103
  e.push(o);
3100
3104
  else if (Array.isArray(o))
3101
- r = bn(e, o, l) || r;
3105
+ r = In(e, o, l) || r;
3102
3106
  else if (d === "function")
3103
3107
  if (s) {
3104
3108
  for (; typeof o == "function"; ) o = o();
3105
- r = bn(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
3109
+ r = In(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || r;
3106
3110
  } else
3107
3111
  e.push(o), r = !0;
3108
3112
  else {
@@ -3130,26 +3134,26 @@ function He(e, t, n, s) {
3130
3134
  } else e.insertBefore(r, n);
3131
3135
  return [r];
3132
3136
  }
3133
- function Gc() {
3137
+ function Oc() {
3134
3138
  return w.getNextContextId();
3135
3139
  }
3136
- var Oc = "http://www.w3.org/2000/svg";
3137
- function Ar(e, t = !1) {
3138
- return t ? document.createElementNS(Oc, e) : document.createElement(e);
3140
+ var xc = "http://www.w3.org/2000/svg";
3141
+ function Tr(e, t = !1) {
3142
+ return t ? document.createElementNS(xc, e) : document.createElement(e);
3139
3143
  }
3140
- function Uu(e) {
3144
+ function Mu(e) {
3141
3145
  const {
3142
3146
  useShadow: t
3143
3147
  } = e, n = document.createTextNode(""), s = () => e.mount || document.body, r = fs();
3144
3148
  let a, i = !!w.context;
3145
- return ir(() => {
3146
- i && (fs().user = i = !1), a || (a = or(r, () => Z(() => e.children)));
3149
+ return or(() => {
3150
+ i && (fs().user = i = !1), a || (a = cr(r, () => Z(() => e.children)));
3147
3151
  const o = s();
3148
3152
  if (o instanceof HTMLHeadElement) {
3149
3153
  const [l, d] = K(!1), u = () => d(!0);
3150
- De((f) => vn(o, () => l() ? f() : a(), null)), mt(u);
3154
+ De((f) => bn(o, () => l() ? f() : a(), null)), mt(u);
3151
3155
  } else {
3152
- const l = Ar(e.isSVG ? "g" : "div", e.isSVG), d = t && l.attachShadow ? l.attachShadow({
3156
+ const l = Tr(e.isSVG ? "g" : "div", e.isSVG), d = t && l.attachShadow ? l.attachShadow({
3153
3157
  mode: "open"
3154
3158
  }) : l;
3155
3159
  Object.defineProperty(l, "_$host", {
@@ -3157,13 +3161,13 @@ function Uu(e) {
3157
3161
  return n.parentNode;
3158
3162
  },
3159
3163
  configurable: !0
3160
- }), vn(d, a), o.appendChild(l), e.ref && e.ref(l), mt(() => o.removeChild(l));
3164
+ }), bn(d, a), o.appendChild(l), e.ref && e.ref(l), mt(() => o.removeChild(l));
3161
3165
  }
3162
3166
  }, void 0, {
3163
3167
  render: !i
3164
3168
  }), n;
3165
3169
  }
3166
- function xc(e, t) {
3170
+ function Rc(e, t) {
3167
3171
  const n = Z(e);
3168
3172
  return Z(() => {
3169
3173
  const s = n();
@@ -3171,16 +3175,16 @@ function xc(e, t) {
3171
3175
  case "function":
3172
3176
  return ee(() => s(t));
3173
3177
  case "string":
3174
- const r = Ec.has(s), a = w.context ? Lc() : Ar(s, r);
3175
- return bc(a, t, r), a;
3178
+ const r = pc.has(s), a = w.context ? Cc() : Tr(s, r);
3179
+ return Ic(a, t, r), a;
3176
3180
  }
3177
3181
  });
3178
3182
  }
3179
- function Mu(e) {
3180
- const [, t] = oc(e, ["component"]);
3181
- return xc(() => e.component, t);
3183
+ function Bu(e) {
3184
+ const [, t] = cc(e, ["component"]);
3185
+ return Rc(() => e.component, t);
3182
3186
  }
3183
- var Rc = class {
3187
+ var kc = class {
3184
3188
  constructor() {
3185
3189
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
3186
3190
  }
@@ -3196,9 +3200,9 @@ var Rc = class {
3196
3200
  clear() {
3197
3201
  this.keyToValue.clear(), this.valueToKey.clear();
3198
3202
  }
3199
- }, Tr = class {
3203
+ }, Sr = class {
3200
3204
  constructor(e) {
3201
- this.generateIdentifier = e, this.kv = new Rc();
3205
+ this.generateIdentifier = e, this.kv = new kc();
3202
3206
  }
3203
3207
  register(e, t) {
3204
3208
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -3212,7 +3216,7 @@ var Rc = class {
3212
3216
  getValue(e) {
3213
3217
  return this.kv.getByKey(e);
3214
3218
  }
3215
- }, kc = class extends Tr {
3219
+ }, Dc = class extends Sr {
3216
3220
  constructor() {
3217
3221
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3218
3222
  }
@@ -3223,7 +3227,7 @@ var Rc = class {
3223
3227
  return this.classToAllowedProps.get(e);
3224
3228
  }
3225
3229
  };
3226
- function Dc(e) {
3230
+ function Uc(e) {
3227
3231
  if ("values" in Object)
3228
3232
  return Object.values(e);
3229
3233
  const t = [];
@@ -3231,8 +3235,8 @@ function Dc(e) {
3231
3235
  e.hasOwnProperty(n) && t.push(e[n]);
3232
3236
  return t;
3233
3237
  }
3234
- function Uc(e, t) {
3235
- const n = Dc(e);
3238
+ function Mc(e, t) {
3239
+ const n = Uc(e);
3236
3240
  if ("find" in n)
3237
3241
  return n.find(t);
3238
3242
  const s = n;
@@ -3255,7 +3259,7 @@ function Es(e, t) {
3255
3259
  return s;
3256
3260
  }
3257
3261
  }
3258
- var Mc = class {
3262
+ var Bc = class {
3259
3263
  constructor() {
3260
3264
  this.transfomers = {};
3261
3265
  }
@@ -3263,12 +3267,12 @@ var Mc = class {
3263
3267
  this.transfomers[e.name] = e;
3264
3268
  }
3265
3269
  findApplicable(e) {
3266
- return Uc(this.transfomers, (t) => t.isApplicable(e));
3270
+ return Mc(this.transfomers, (t) => t.isApplicable(e));
3267
3271
  }
3268
3272
  findByName(e) {
3269
3273
  return this.transfomers[e];
3270
3274
  }
3271
- }, Bc = (e) => Object.prototype.toString.call(e).slice(8, -1), Sr = (e) => typeof e > "u", Fc = (e) => e === null, yt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, In = (e) => yt(e) && Object.keys(e).length === 0, Le = (e) => Array.isArray(e), Kc = (e) => typeof e == "string", Vc = (e) => typeof e == "number" && !isNaN(e), Hc = (e) => typeof e == "boolean", qc = (e) => e instanceof RegExp, At = (e) => e instanceof Map, Tt = (e) => e instanceof Set, _r = (e) => Bc(e) === "Symbol", $c = (e) => e instanceof Date && !isNaN(e.valueOf()), Qc = (e) => e instanceof Error, ps = (e) => typeof e == "number" && isNaN(e), zc = (e) => Hc(e) || Fc(e) || Sr(e) || Vc(e) || Kc(e) || _r(e), Wc = (e) => typeof e == "bigint", jc = (e) => e === 1 / 0 || e === -1 / 0, Yc = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Jc = (e) => e instanceof URL, Pr = (e) => e.replace(/\./g, "\\."), An = (e) => e.map(String).map(Pr).join("."), gt = (e) => {
3275
+ }, Fc = (e) => Object.prototype.toString.call(e).slice(8, -1), _r = (e) => typeof e > "u", Kc = (e) => e === null, yt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Nn = (e) => yt(e) && Object.keys(e).length === 0, Le = (e) => Array.isArray(e), Vc = (e) => typeof e == "string", Hc = (e) => typeof e == "number" && !isNaN(e), qc = (e) => typeof e == "boolean", $c = (e) => e instanceof RegExp, At = (e) => e instanceof Map, Tt = (e) => e instanceof Set, Pr = (e) => Fc(e) === "Symbol", Qc = (e) => e instanceof Date && !isNaN(e.valueOf()), zc = (e) => e instanceof Error, ps = (e) => typeof e == "number" && isNaN(e), Wc = (e) => qc(e) || Kc(e) || _r(e) || Hc(e) || Vc(e) || Pr(e), jc = (e) => typeof e == "bigint", Yc = (e) => e === 1 / 0 || e === -1 / 0, Jc = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Zc = (e) => e instanceof URL, wr = (e) => e.replace(/\./g, "\\."), Tn = (e) => e.map(String).map(wr).join("."), gt = (e) => {
3272
3276
  const t = [];
3273
3277
  let n = "";
3274
3278
  for (let r = 0; r < e.length; r++) {
@@ -3294,12 +3298,12 @@ function Ee(e, t, n, s) {
3294
3298
  untransform: s
3295
3299
  };
3296
3300
  }
3297
- var wr = [
3298
- Ee(Sr, "undefined", () => null, () => {
3301
+ var vr = [
3302
+ Ee(_r, "undefined", () => null, () => {
3299
3303
  }),
3300
- Ee(Wc, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3301
- Ee($c, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3302
- Ee(Qc, "Error", (e, t) => {
3304
+ Ee(jc, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
3305
+ Ee(Qc, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3306
+ Ee(zc, "Error", (e, t) => {
3303
3307
  const n = {
3304
3308
  name: e.name,
3305
3309
  message: e.message
@@ -3313,7 +3317,7 @@ var wr = [
3313
3317
  n[s] = e[s];
3314
3318
  }), n;
3315
3319
  }),
3316
- Ee(qc, "regexp", (e) => "" + e, (e) => {
3320
+ Ee($c, "regexp", (e) => "" + e, (e) => {
3317
3321
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
3318
3322
  return new RegExp(t, n);
3319
3323
  }),
@@ -3326,11 +3330,11 @@ var wr = [
3326
3330
  (e) => new Set(e)
3327
3331
  ),
3328
3332
  Ee(At, "map", (e) => [...e.entries()], (e) => new Map(e)),
3329
- Ee((e) => ps(e) || jc(e), "number", (e) => ps(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3333
+ Ee((e) => ps(e) || Yc(e), "number", (e) => ps(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3330
3334
  Ee((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
3331
- Ee(Jc, "URL", (e) => e.toString(), (e) => new URL(e))
3335
+ Ee(Zc, "URL", (e) => e.toString(), (e) => new URL(e))
3332
3336
  ];
3333
- function ln(e, t, n, s) {
3337
+ function un(e, t, n, s) {
3334
3338
  return {
3335
3339
  isApplicable: e,
3336
3340
  annotation: t,
@@ -3338,12 +3342,12 @@ function ln(e, t, n, s) {
3338
3342
  untransform: s
3339
3343
  };
3340
3344
  }
3341
- var vr = ln((e, t) => _r(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3345
+ var br = un((e, t) => Pr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3342
3346
  const s = n.symbolRegistry.getValue(t[1]);
3343
3347
  if (!s)
3344
3348
  throw new Error("Trying to deserialize unknown symbol");
3345
3349
  return s;
3346
- }), Zc = [
3350
+ }), Xc = [
3347
3351
  Int8Array,
3348
3352
  Uint8Array,
3349
3353
  Int16Array,
@@ -3353,16 +3357,16 @@ var vr = ln((e, t) => _r(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
3353
3357
  Float32Array,
3354
3358
  Float64Array,
3355
3359
  Uint8ClampedArray
3356
- ].reduce((e, t) => (e[t.name] = t, e), {}), br = ln(Yc, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3357
- const n = Zc[t[1]];
3360
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Ir = un(Jc, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3361
+ const n = Xc[t[1]];
3358
3362
  if (!n)
3359
3363
  throw new Error("Trying to deserialize unknown typed array");
3360
3364
  return new n(e);
3361
3365
  });
3362
- function Ir(e, t) {
3366
+ function Nr(e, t) {
3363
3367
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
3364
3368
  }
3365
- var Nr = ln(Ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3369
+ var Lr = un(Nr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3366
3370
  const n = t.classRegistry.getAllowedProps(e.constructor);
3367
3371
  if (!n)
3368
3372
  return { ...e };
@@ -3375,44 +3379,44 @@ var Nr = ln(Ir, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
3375
3379
  if (!s)
3376
3380
  throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3377
3381
  return Object.assign(Object.create(s.prototype), e);
3378
- }), Lr = ln((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3382
+ }), Cr = un((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) => {
3379
3383
  const s = n.customTransformerRegistry.findByName(t[1]);
3380
3384
  if (!s)
3381
3385
  throw new Error("Trying to deserialize unknown custom value");
3382
3386
  return s.deserialize(e);
3383
- }), Xc = [Nr, vr, Lr, br], ys = (e, t) => {
3384
- const n = Es(Xc, (r) => r.isApplicable(e, t));
3387
+ }), el = [Lr, br, Cr, Ir], ys = (e, t) => {
3388
+ const n = Es(el, (r) => r.isApplicable(e, t));
3385
3389
  if (n)
3386
3390
  return {
3387
3391
  value: n.transform(e, t),
3388
3392
  type: n.annotation(e, t)
3389
3393
  };
3390
- const s = Es(wr, (r) => r.isApplicable(e, t));
3394
+ const s = Es(vr, (r) => r.isApplicable(e, t));
3391
3395
  if (s)
3392
3396
  return {
3393
3397
  value: s.transform(e, t),
3394
3398
  type: s.annotation
3395
3399
  };
3396
- }, Cr = {};
3397
- wr.forEach((e) => {
3398
- Cr[e.annotation] = e;
3400
+ }, Gr = {};
3401
+ vr.forEach((e) => {
3402
+ Gr[e.annotation] = e;
3399
3403
  });
3400
- var el = (e, t, n) => {
3404
+ var tl = (e, t, n) => {
3401
3405
  if (Le(t))
3402
3406
  switch (t[0]) {
3403
3407
  case "symbol":
3404
- return vr.untransform(e, t, n);
3408
+ return br.untransform(e, t, n);
3405
3409
  case "class":
3406
- return Nr.untransform(e, t, n);
3407
- case "custom":
3408
3410
  return Lr.untransform(e, t, n);
3411
+ case "custom":
3412
+ return Cr.untransform(e, t, n);
3409
3413
  case "typed-array":
3410
- return br.untransform(e, t, n);
3414
+ return Ir.untransform(e, t, n);
3411
3415
  default:
3412
3416
  throw new Error("Unknown transformation: " + t);
3413
3417
  }
3414
3418
  else {
3415
- const s = Cr[t];
3419
+ const s = Gr[t];
3416
3420
  if (!s)
3417
3421
  throw new Error("Unknown transformation: " + t);
3418
3422
  return s.untransform(e, n);
@@ -3425,7 +3429,7 @@ var el = (e, t, n) => {
3425
3429
  n.next(), t--;
3426
3430
  return n.next().value;
3427
3431
  };
3428
- function Gr(e) {
3432
+ function Or(e) {
3429
3433
  if ($t(e, "__proto__"))
3430
3434
  throw new Error("__proto__ is not allowed as a property");
3431
3435
  if ($t(e, "prototype"))
@@ -3433,8 +3437,8 @@ function Gr(e) {
3433
3437
  if ($t(e, "constructor"))
3434
3438
  throw new Error("constructor is not allowed as a property");
3435
3439
  }
3436
- var tl = (e, t) => {
3437
- Gr(t);
3440
+ var nl = (e, t) => {
3441
+ Or(t);
3438
3442
  for (let n = 0; n < t.length; n++) {
3439
3443
  const s = t[n];
3440
3444
  if (Tt(e))
@@ -3453,8 +3457,8 @@ var tl = (e, t) => {
3453
3457
  e = e[s];
3454
3458
  }
3455
3459
  return e;
3456
- }, Nn = (e, t, n) => {
3457
- if (Gr(t), t.length === 0)
3460
+ }, Ln = (e, t, n) => {
3461
+ if (Or(t), t.length === 0)
3458
3462
  return n(e);
3459
3463
  let s = e;
3460
3464
  for (let a = 0; a < t.length - 1; a++) {
@@ -3502,45 +3506,45 @@ var tl = (e, t) => {
3502
3506
  }
3503
3507
  return e;
3504
3508
  };
3505
- function Ln(e, t, n = []) {
3509
+ function Cn(e, t, n = []) {
3506
3510
  if (!e)
3507
3511
  return;
3508
3512
  if (!Le(e)) {
3509
- lt(e, (a, i) => Ln(a, t, [...n, ...gt(i)]));
3513
+ lt(e, (a, i) => Cn(a, t, [...n, ...gt(i)]));
3510
3514
  return;
3511
3515
  }
3512
3516
  const [s, r] = e;
3513
3517
  r && lt(r, (a, i) => {
3514
- Ln(a, t, [...n, ...gt(i)]);
3518
+ Cn(a, t, [...n, ...gt(i)]);
3515
3519
  }), t(s, n);
3516
3520
  }
3517
- function nl(e, t, n) {
3518
- return Ln(t, (s, r) => {
3519
- e = Nn(e, r, (a) => el(a, s, n));
3521
+ function sl(e, t, n) {
3522
+ return Cn(t, (s, r) => {
3523
+ e = Ln(e, r, (a) => tl(a, s, n));
3520
3524
  }), e;
3521
3525
  }
3522
- function sl(e, t) {
3526
+ function rl(e, t) {
3523
3527
  function n(s, r) {
3524
- const a = tl(e, gt(r));
3528
+ const a = nl(e, gt(r));
3525
3529
  s.map(gt).forEach((i) => {
3526
- e = Nn(e, i, () => a);
3530
+ e = Ln(e, i, () => a);
3527
3531
  });
3528
3532
  }
3529
3533
  if (Le(t)) {
3530
3534
  const [s, r] = t;
3531
3535
  s.forEach((a) => {
3532
- e = Nn(e, gt(a), () => e);
3536
+ e = Ln(e, gt(a), () => e);
3533
3537
  }), r && lt(r, n);
3534
3538
  } else
3535
3539
  lt(t, n);
3536
3540
  return e;
3537
3541
  }
3538
- var rl = (e, t) => yt(e) || Le(e) || At(e) || Tt(e) || Ir(e, t);
3539
- function al(e, t, n) {
3542
+ var al = (e, t) => yt(e) || Le(e) || At(e) || Tt(e) || Nr(e, t);
3543
+ function il(e, t, n) {
3540
3544
  const s = n.get(e);
3541
3545
  s ? s.push(t) : n.set(e, [t]);
3542
3546
  }
3543
- function il(e, t) {
3547
+ function ol(e, t) {
3544
3548
  const n = {};
3545
3549
  let s;
3546
3550
  return e.forEach((r) => {
@@ -3548,20 +3552,20 @@ function il(e, t) {
3548
3552
  return;
3549
3553
  t || (r = r.map((o) => o.map(String)).sort((o, l) => o.length - l.length));
3550
3554
  const [a, ...i] = r;
3551
- a.length === 0 ? s = i.map(An) : n[An(a)] = i.map(An);
3552
- }), s ? In(n) ? [s] : [s, n] : In(n) ? void 0 : n;
3555
+ a.length === 0 ? s = i.map(Tn) : n[Tn(a)] = i.map(Tn);
3556
+ }), s ? Nn(n) ? [s] : [s, n] : Nn(n) ? void 0 : n;
3553
3557
  }
3554
- var Or = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3555
- const o = zc(e);
3558
+ var xr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3559
+ const o = Wc(e);
3556
3560
  if (!o) {
3557
- al(e, r, t);
3561
+ il(e, r, t);
3558
3562
  const h = i.get(e);
3559
3563
  if (h)
3560
3564
  return s ? {
3561
3565
  transformedValue: null
3562
3566
  } : h;
3563
3567
  }
3564
- if (!rl(e, n)) {
3568
+ if (!al(e, n)) {
3565
3569
  const h = ys(e, n), A = h ? {
3566
3570
  transformedValue: h.value,
3567
3571
  annotations: [h.type]
@@ -3578,12 +3582,12 @@ var Or = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3578
3582
  lt(d, (h, A) => {
3579
3583
  if (A === "__proto__" || A === "constructor" || A === "prototype")
3580
3584
  throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);
3581
- const y = Or(h, t, n, s, [...r, A], [...a, e], i);
3585
+ const y = xr(h, t, n, s, [...r, A], [...a, e], i);
3582
3586
  u[A] = y.transformedValue, Le(y.annotations) ? f[A] = y.annotations : yt(y.annotations) && lt(y.annotations, (T, _) => {
3583
- f[Pr(A) + "." + _] = T;
3587
+ f[wr(A) + "." + _] = T;
3584
3588
  });
3585
3589
  });
3586
- const g = In(f) ? {
3590
+ const g = Nn(f) ? {
3587
3591
  transformedValue: u,
3588
3592
  annotations: l ? [l.type] : void 0
3589
3593
  } : {
@@ -3592,19 +3596,19 @@ var Or = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
3592
3596
  };
3593
3597
  return o || i.set(e, g), g;
3594
3598
  };
3595
- function xr(e) {
3599
+ function Rr(e) {
3596
3600
  return Object.prototype.toString.call(e).slice(8, -1);
3597
3601
  }
3598
3602
  function As(e) {
3599
- return xr(e) === "Array";
3603
+ return Rr(e) === "Array";
3600
3604
  }
3601
- function ol(e) {
3602
- if (xr(e) !== "Object")
3605
+ function cl(e) {
3606
+ if (Rr(e) !== "Object")
3603
3607
  return !1;
3604
3608
  const t = Object.getPrototypeOf(e);
3605
3609
  return !!t && t.constructor === Object && t === Object.prototype;
3606
3610
  }
3607
- function cl(e, t, n, s, r) {
3611
+ function ll(e, t, n, s, r) {
3608
3612
  const a = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
3609
3613
  a === "enumerable" && (e[t] = n), r && a === "nonenumerable" && Object.defineProperty(e, t, {
3610
3614
  value: n,
@@ -3613,17 +3617,17 @@ function cl(e, t, n, s, r) {
3613
3617
  configurable: !0
3614
3618
  });
3615
3619
  }
3616
- function Cn(e, t = {}) {
3620
+ function Gn(e, t = {}) {
3617
3621
  if (As(e))
3618
- return e.map((r) => Cn(r, t));
3619
- if (!ol(e))
3622
+ return e.map((r) => Gn(r, t));
3623
+ if (!cl(e))
3620
3624
  return e;
3621
3625
  const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
3622
3626
  return [...n, ...s].reduce((r, a) => {
3623
3627
  if (As(t.props) && !t.props.includes(a))
3624
3628
  return r;
3625
- const i = e[a], o = Cn(i, t);
3626
- return cl(r, a, o, e, t.nonenumerable), r;
3629
+ const i = e[a], o = Gn(i, t);
3630
+ return ll(r, a, o, e, t.nonenumerable), r;
3627
3631
  }, {});
3628
3632
  }
3629
3633
  var k = class {
@@ -3631,17 +3635,17 @@ var k = class {
3631
3635
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3632
3636
  */
3633
3637
  constructor({ dedupe: e = !1 } = {}) {
3634
- this.classRegistry = new kc(), this.symbolRegistry = new Tr((t) => t.description ?? ""), this.customTransformerRegistry = new Mc(), this.allowedErrorProps = [], this.dedupe = e;
3638
+ this.classRegistry = new Dc(), this.symbolRegistry = new Sr((t) => t.description ?? ""), this.customTransformerRegistry = new Bc(), this.allowedErrorProps = [], this.dedupe = e;
3635
3639
  }
3636
3640
  serialize(e) {
3637
- const t = /* @__PURE__ */ new Map(), n = Or(e, t, this, this.dedupe), s = {
3641
+ const t = /* @__PURE__ */ new Map(), n = xr(e, t, this, this.dedupe), s = {
3638
3642
  json: n.transformedValue
3639
3643
  };
3640
3644
  n.annotations && (s.meta = {
3641
3645
  ...s.meta,
3642
3646
  values: n.annotations
3643
3647
  });
3644
- const r = il(t, this.dedupe);
3648
+ const r = ol(t, this.dedupe);
3645
3649
  return r && (s.meta = {
3646
3650
  ...s.meta,
3647
3651
  referentialEqualities: r
@@ -3649,8 +3653,8 @@ var k = class {
3649
3653
  }
3650
3654
  deserialize(e) {
3651
3655
  const { json: t, meta: n } = e;
3652
- let s = Cn(t);
3653
- return n != null && n.values && (s = nl(s, n.values, this)), n != null && n.referentialEqualities && (s = sl(s, n.referentialEqualities)), s;
3656
+ let s = Gn(t);
3657
+ return n != null && n.values && (s = sl(s, n.values, this)), n != null && n.referentialEqualities && (s = rl(s, n.referentialEqualities)), s;
3654
3658
  }
3655
3659
  stringify(e) {
3656
3660
  return JSON.stringify(this.serialize(e));
@@ -3683,44 +3687,44 @@ k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
3683
3687
  k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
3684
3688
  k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
3685
3689
  k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
3686
- var ll = k.serialize, Bu = k.stringify;
3687
- function Fu(e) {
3690
+ var ul = k.serialize, Fu = k.stringify;
3691
+ function Ku(e) {
3688
3692
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
3689
3693
  }
3690
- function Ku(e, t) {
3694
+ function Vu(e, t) {
3691
3695
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
3692
3696
  }
3693
- function Vu({
3697
+ function Hu({
3694
3698
  queryState: e,
3695
3699
  observerCount: t,
3696
3700
  isStale: n
3697
3701
  }) {
3698
3702
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
3699
3703
  }
3700
- function Hu({
3704
+ function qu({
3701
3705
  status: e,
3702
3706
  isPaused: t
3703
3707
  }) {
3704
3708
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
3705
3709
  }
3706
- function qu(e) {
3710
+ function $u(e) {
3707
3711
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
3708
3712
  }
3709
- var $u = (e, t = !1) => {
3713
+ var Qu = (e, t = !1) => {
3710
3714
  const {
3711
3715
  json: n
3712
- } = ll(e);
3716
+ } = ul(e);
3713
3717
  return JSON.stringify(n, null, t ? 2 : void 0);
3714
- }, Ft = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ul = (e, t) => e.queryHash.localeCompare(t.queryHash), Rr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, dl = (e, t) => Ft(e) === Ft(t) ? Rr(e, t) : Ft(e) > Ft(t) ? 1 : -1, Qu = {
3715
- status: dl,
3716
- "query hash": ul,
3717
- "last updated": Rr
3718
- }, Kt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, kr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, fl = (e, t) => Kt(e) === Kt(t) ? kr(e, t) : Kt(e) > Kt(t) ? 1 : -1, zu = {
3718
+ }, Ft = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, dl = (e, t) => e.queryHash.localeCompare(t.queryHash), kr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, fl = (e, t) => Ft(e) === Ft(t) ? kr(e, t) : Ft(e) > Ft(t) ? 1 : -1, zu = {
3719
3719
  status: fl,
3720
+ "query hash": dl,
3720
3721
  "last updated": kr
3721
- }, Wu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), ju = () => {
3722
+ }, Kt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Dr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, hl = (e, t) => Kt(e) === Kt(t) ? Dr(e, t) : Kt(e) > Kt(t) ? 1 : -1, Wu = {
3723
+ status: hl,
3724
+ "last updated": Dr
3725
+ }, ju = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Yu = () => {
3722
3726
  const [e, t] = K("dark");
3723
- return Yo(() => {
3727
+ return Jo(() => {
3724
3728
  const n = window.matchMedia("(prefers-color-scheme: dark)");
3725
3729
  t(n.matches ? "dark" : "light");
3726
3730
  const s = (r) => {
@@ -3788,11 +3792,11 @@ var $u = (e, t = !1) => {
3788
3792
  return n[s] = Ht(n[s], r), n;
3789
3793
  }
3790
3794
  return e;
3791
- }, Dr = (e, t) => {
3795
+ }, Ur = (e, t) => {
3792
3796
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
3793
3797
  const s = document.createElement("style"), r = document.createTextNode("");
3794
3798
  s.appendChild(r), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
3795
- }, $e, St, _t, Pt, Re, wt, Qe, ze, We, je, Ye, vt, Je, Ze, bt, Ps, hl = (Ps = class {
3799
+ }, $e, St, _t, Pt, Re, wt, Qe, ze, We, je, Ye, vt, Je, Ze, bt, Ps, gl = (Ps = class {
3796
3800
  constructor(e) {
3797
3801
  x(this, $e);
3798
3802
  x(this, St);
@@ -3846,10 +3850,10 @@ var $u = (e, t = !1) => {
3846
3850
  mount(e) {
3847
3851
  if (S(this, Re))
3848
3852
  throw new Error("Devtools is already mounted");
3849
- const t = pr(() => {
3853
+ const t = yr(() => {
3850
3854
  const n = this, [s] = S(this, ze), [r] = S(this, We), [a] = S(this, je), [i] = S(this, Ye), [o] = S(this, vt), [l] = S(this, $e), [d] = S(this, Ze);
3851
3855
  let u;
3852
- return S(this, Je) ? u = S(this, Je) : (u = mr(() => import("./WDYDFRGG-CdC9BtV1.js")), G(this, Je, u)), Dr(S(this, wt), S(this, Qe)), hr(u, gr({
3856
+ return S(this, Je) ? u = S(this, Je) : (u = Er(() => import("./WDYDFRGG-BOpmZGHS.js")), G(this, Je, u)), Ur(S(this, wt), S(this, Qe)), gr(u, mr({
3853
3857
  get queryFlavor() {
3854
3858
  return S(n, _t);
3855
3859
  },
@@ -3894,7 +3898,7 @@ var $u = (e, t = !1) => {
3894
3898
  throw new Error("Devtools is not mounted");
3895
3899
  (e = S(this, bt)) == null || e.call(this), G(this, Re, !1);
3896
3900
  }
3897
- }, $e = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), Re = new WeakMap(), wt = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), vt = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), bt = new WeakMap(), Ps), Xe, It, Nt, Lt, ke, Ct, et, tt, nt, st, rt, Gt, at, it, ot, Ot, ws, gl = (ws = class {
3901
+ }, $e = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), Pt = new WeakMap(), Re = new WeakMap(), wt = new WeakMap(), Qe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), vt = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), bt = new WeakMap(), Ps), Xe, It, Nt, Lt, ke, Ct, et, tt, nt, st, rt, Gt, at, it, ot, Ot, ws, ml = (ws = class {
3898
3902
  constructor(e) {
3899
3903
  x(this, Xe);
3900
3904
  x(this, It);
@@ -3953,10 +3957,10 @@ var $u = (e, t = !1) => {
3953
3957
  mount(e) {
3954
3958
  if (S(this, ke))
3955
3959
  throw new Error("Devtools is already mounted");
3956
- const t = pr(() => {
3960
+ const t = yr(() => {
3957
3961
  const n = this, [s] = S(this, tt), [r] = S(this, nt), [a] = S(this, st), [i] = S(this, rt), [o] = S(this, Gt), [l] = S(this, Xe), [d] = S(this, at), [u] = S(this, ot);
3958
3962
  let f;
3959
- return S(this, it) ? f = S(this, it) : (f = mr(() => import("./2SSKDMRQ-KSwVJqI-.js")), G(this, it, f)), Dr(S(this, Ct), S(this, et)), hr(f, gr({
3963
+ return S(this, it) ? f = S(this, it) : (f = Er(() => import("./2SSKDMRQ-B5Tzwoh4.js")), G(this, it, f)), Ur(S(this, Ct), S(this, et)), gr(f, mr({
3960
3964
  get queryFlavor() {
3961
3965
  return S(n, Nt);
3962
3966
  },
@@ -4005,7 +4009,7 @@ var $u = (e, t = !1) => {
4005
4009
  (e = S(this, Ot)) == null || e.call(this), G(this, ke, !1);
4006
4010
  }
4007
4011
  }, Xe = new WeakMap(), It = new WeakMap(), Nt = new WeakMap(), Lt = new WeakMap(), ke = new WeakMap(), Ct = new WeakMap(), et = new WeakMap(), tt = new WeakMap(), nt = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Gt = new WeakMap(), at = new WeakMap(), it = new WeakMap(), ot = new WeakMap(), Ot = new WeakMap(), ws);
4008
- function ml(e) {
4012
+ function El(e) {
4009
4013
  const t = Y(e.client), n = Q.useRef(null), {
4010
4014
  buttonPosition: s,
4011
4015
  position: r,
@@ -4016,7 +4020,7 @@ function ml(e) {
4016
4020
  hideDisabledQueries: d,
4017
4021
  theme: u
4018
4022
  } = e, [f] = Q.useState(
4019
- new hl({
4023
+ new gl({
4020
4024
  client: t,
4021
4025
  queryFlavor: "React Query",
4022
4026
  version: "5",
@@ -4047,7 +4051,7 @@ function ml(e) {
4047
4051
  f.unmount();
4048
4052
  }), [f]), /* @__PURE__ */ c("div", { dir: "ltr", className: "tsqd-parent-container", ref: n });
4049
4053
  }
4050
- function El(e) {
4054
+ function pl(e) {
4051
4055
  const t = Y(e.client), n = Q.useRef(null), {
4052
4056
  errorTypes: s,
4053
4057
  styleNonce: r,
@@ -4055,7 +4059,7 @@ function El(e) {
4055
4059
  hideDisabledQueries: i,
4056
4060
  theme: o
4057
4061
  } = e, [l] = Q.useState(
4058
- new gl({
4062
+ new ml({
4059
4063
  client: t,
4060
4064
  queryFlavor: "React Query",
4061
4065
  version: "5",
@@ -4093,22 +4097,22 @@ function El(e) {
4093
4097
  }
4094
4098
  var Ts = process.env.NODE_ENV !== "development" ? function() {
4095
4099
  return null;
4096
- } : ml;
4100
+ } : El;
4097
4101
  process.env.NODE_ENV;
4098
- const pl = Ae(""), yl = () => {
4102
+ const yl = Ae(""), Al = () => {
4099
4103
  Xn("dynamic-page-selector", {
4100
4104
  description: "Dynamic page selector"
4101
4105
  }), Xn("enable-add-page-dropdown", {
4102
4106
  description: "Enable add page dropdown"
4103
4107
  });
4104
- }, Al = () => {
4108
+ }, Tl = () => {
4105
4109
  const e = I(), t = C();
4106
4110
  return se({
4107
4111
  queryKey: [p.GET_COLLECTIONS],
4108
4112
  staleTime: 1 / 0,
4109
4113
  queryFn: async () => t(e, { action: p.GET_COLLECTIONS })
4110
4114
  });
4111
- }, Tl = () => {
4115
+ }, Sl = () => {
4112
4116
  const { data: e } = fe(), { data: t } = Ce(), { data: n } = Fe(), s = I(), r = C(), a = $(() => (n == null ? void 0 : n.fallbackLang) || "en", [n == null ? void 0 : n.fallbackLang]), i = oe(/* @__PURE__ */ new Map());
4113
4117
  return X({
4114
4118
  mutationFn: async ({ block: o }) => {
@@ -4139,7 +4143,7 @@ const pl = Ae(""), yl = () => {
4139
4143
  }), f;
4140
4144
  }
4141
4145
  });
4142
- }, Sl = () => {
4146
+ }, _l = () => {
4143
4147
  const [, e] = be();
4144
4148
  return z(
4145
4149
  (t, n) => {
@@ -4148,67 +4152,67 @@ const pl = Ae(""), yl = () => {
4148
4152
  },
4149
4153
  [e]
4150
4154
  );
4151
- }, _l = () => {
4152
- const e = Sl();
4155
+ }, Pl = () => {
4156
+ const e = _l();
4153
4157
  return z(
4154
4158
  ({ pageId: t }) => {
4155
4159
  e(t);
4156
4160
  },
4157
4161
  [e]
4158
4162
  );
4159
- }, Pl = {
4163
+ }, wl = {
4160
4164
  SITE_WIDE_USAGE: "SITE_WIDE_USAGE"
4161
- }, wl = (e) => {
4165
+ }, vl = (e) => {
4162
4166
  const t = C(), n = I();
4163
4167
  return se({
4164
- queryKey: [Pl.SITE_WIDE_USAGE],
4168
+ queryKey: [wl.SITE_WIDE_USAGE],
4165
4169
  queryFn: async () => e ? t(n, { action: "GET_SITE_WIDE_USAGE" }) : {},
4166
4170
  retry: !1
4167
4171
  });
4168
- }, vl = H(() => import("./page-lock-CBmHxQZh.js")), bl = H(() => import("./no-language-page-dialog-Cd0tJat5.js")), Il = H(() => import("./digital-asset-manager-DPB63e09.js")), Nl = H(() => import("./save-to-lib-DEcXV01t.js")), Ll = H(() => import("./theme-panel-footer-DWIvSz85.js")), Cl = H(() => import("./web-preview-DK8oUz_b.js"));
4169
- yl();
4170
- ui();
4171
- _a(To);
4172
- qo();
4173
- Ta(Il);
4172
+ }, bl = H(() => import("./page-lock-Dye1JZBB.js")), Il = H(() => import("./no-language-page-dialog-CRPMr9YT.js")), Nl = H(() => import("./digital-asset-manager-C_ru4Zes.js")), Ll = H(() => import("./save-to-lib-B1ccNhR2.js")), Cl = H(() => import("./theme-panel-footer-BkwhuXM7.js")), Gl = H(() => import("./web-preview--by73Vvr.js"));
4173
+ Al();
4174
+ di();
4175
+ Pa(So);
4176
+ $o();
4174
4177
  Sa(Nl);
4175
- const Gl = {
4178
+ _a(Ll);
4179
+ const Ol = {
4176
4180
  role: "",
4177
4181
  permissions: null
4178
4182
  }, Ss = (e) => {
4179
- const { isLoading: t } = Io();
4180
- return t ? /* @__PURE__ */ c(Vn, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ c(ct, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ c(Ol, { ...e });
4181
- }, Ol = (e) => {
4183
+ const { isLoading: t } = No();
4184
+ return t ? /* @__PURE__ */ c(Vn, { className: "fixed inset-0 bg-white", children: /* @__PURE__ */ c(ct, { className: "h-6 w-6 animate-spin text-primary" }) }) : /* @__PURE__ */ c(xl, { ...e });
4185
+ }, xl = (e) => {
4182
4186
  var zn;
4183
- const { data: t } = bo(), n = Kn(), { data: s = Gl, isFetching: r } = No(), { data: a, isFetching: i } = Ge(), { data: o, isFetching: l } = Al(), { data: d, isFetching: u } = Fe(), f = r || i || l || u, [g] = be(), h = g.get("page"), { data: A } = fe(), { data: y, isFetching: T } = Po(), { blocks: _ } = _o(y), { data: E, isFetching: P } = wo(), { pageStatus: N } = Se(), U = So(), { onSave: v } = Lo(), { mutateAsync: me } = Tl(), { getPartialBlocks: _e, getPartialBlockBlocks: F } = Co(), { mutateAsync: b } = _i(), { mutateAsync: L } = vo(), { data: W } = wl(((zn = e.flags) == null ? void 0 : zn.designTokens) ?? !0), M = _l(), [ae, Oe] = V(!1), le = oe([]), Ve = $(() => q(d, "theme", {}) || {}, [d]), xe = N === ne.EDITING, Ur = N === ne.CHECKING, $n = T || Ur || P;
4187
+ const { data: t } = Io(), n = Kn(), { data: s = Ol, isFetching: r } = Lo(), { data: a, isFetching: i } = Ge(), { data: o, isFetching: l } = Tl(), { data: d, isFetching: u } = Fe(), f = r || i || l || u, [g] = be(), h = g.get("page"), { data: A } = fe(), { data: y, isFetching: T } = wo(), { blocks: _ } = Po(y), { data: E, isFetching: P } = vo(), { pageStatus: N } = Se(), U = _o(), { onSave: v } = Co(), { mutateAsync: me } = Sl(), { getPartialBlocks: _e, getPartialBlockBlocks: F } = Go(), { mutateAsync: b } = Pi(), { mutateAsync: L } = bo(), { data: W } = vl(((zn = e.flags) == null ? void 0 : zn.designTokens) ?? !0), M = Pl(), [ae, Oe] = V(!1), le = oe([]), Ve = $(() => q(d, "theme", {}) || {}, [d]), xe = N === ne.EDITING, Mr = N === ne.CHECKING, $n = T || Mr || P;
4184
4188
  j(() => {
4185
4189
  le.current = _;
4186
4190
  }, [_]);
4187
- const [Mr] = Te(pl);
4191
+ const [Br] = Te(yl);
4188
4192
  j(() => {
4189
4193
  const ie = () => {
4190
4194
  document.hidden ? Oe(!0) : Oe(!1);
4191
4195
  };
4192
4196
  return window.addEventListener("visibilitychange", ie), () => window.removeEventListener("visibilitychange", ie);
4193
4197
  }, []);
4194
- const Br = $(() => {
4198
+ const Fr = $(() => {
4195
4199
  const ie = {};
4196
4200
  return s && (ie.permissions = q(s, "permissions", null), ie.role = q(s, "role", "user")), ie;
4197
- }, [s]), Qn = $(() => t == null ? void 0 : t.some((ie) => ie.isSiteLibrary), [t]), Fr = z(
4201
+ }, [s]), Qn = $(() => t == null ? void 0 : t.some((ie) => ie.isSiteLibrary), [t]), Kr = z(
4198
4202
  async (ie, Rt) => await b({ pageType: ie, query: Rt }),
4199
4203
  [b]
4200
4204
  );
4201
4205
  return /* @__PURE__ */ m(pe, { children: [
4202
4206
  $n && /* @__PURE__ */ c(Vn, { className: f ? "fixed inset-0 bg-white" : "bg-white/75", children: /* @__PURE__ */ c(ct, { className: `animate-spin text-primary ${f ? "h-6 w-6" : "h-5 w-5"}` }) }),
4203
- Mr && /* @__PURE__ */ c(
4207
+ Br && /* @__PURE__ */ c(
4204
4208
  J,
4205
4209
  {
4206
4210
  fallback: /* @__PURE__ */ c("div", { className: "absolute inset-0 z-[999999] flex min-h-screen w-screen items-center justify-center bg-gray-100", children: /* @__PURE__ */ c(ct, { className: "h-6 w-6 animate-spin text-primary" }) }),
4207
- children: /* @__PURE__ */ c(Cl, {})
4211
+ children: /* @__PURE__ */ c(Gl, {})
4208
4212
  }
4209
4213
  ),
4210
4214
  /* @__PURE__ */ c(
4211
- da,
4215
+ fa,
4212
4216
  {
4213
4217
  siteWideUsage: W ?? {},
4214
4218
  flags: e.flags ? { ...e.flags, librarySite: Qn } : { librarySite: Qn },
@@ -4232,26 +4236,26 @@ const Gl = {
4232
4236
  getPartialBlockBlocks: F,
4233
4237
  getPartialBlocks: _e,
4234
4238
  blocks: T ? [] : _,
4235
- theme: ka(Ve),
4239
+ theme: Da(Ve),
4236
4240
  pageTypes: a,
4237
- searchPageTypeItems: Fr,
4241
+ searchPageTypeItems: Kr,
4238
4242
  askAiCallBack: U,
4239
- onSave: async ({ blocks: ie, theme: Rt, needTranslations: Kr, designTokens: Wn }) => {
4243
+ onSave: async ({ blocks: ie, theme: Rt, needTranslations: Vr, designTokens: Wn }) => {
4240
4244
  if (!h) return !0;
4241
4245
  le.current = ie;
4242
4246
  const jn = [...ie];
4243
- await v({ page: h, blocks: jn, needTranslations: Kr }), le.current = jn;
4247
+ await v({ page: h, blocks: jn, needTranslations: Vr }), le.current = jn;
4244
4248
  const kt = {};
4245
4249
  return ts(Rt, Ve) || (kt.theme = Rt), ts(Wn, d == null ? void 0 : d.designTokens) || (kt.designTokens = Wn), ge(kt) || await L({ settings: kt }), !0;
4246
4250
  },
4247
- themePanelComponent: Ll,
4248
- ...Br,
4249
- children: /* @__PURE__ */ c(vl, { isFetchingPageData: $n })
4251
+ themePanelComponent: Cl,
4252
+ ...Fr,
4253
+ children: /* @__PURE__ */ c(bl, { isFetchingPageData: $n })
4250
4254
  }
4251
4255
  ),
4252
- /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(bl, {}) })
4256
+ /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Il, {}) })
4253
4257
  ] });
4254
- }, xl = new Ua({
4258
+ }, Rl = new Ma({
4255
4259
  defaultOptions: {
4256
4260
  queries: {
4257
4261
  refetchOnWindowFocus: !1,
@@ -4259,8 +4263,8 @@ const Gl = {
4259
4263
  refetchOnMount: !1
4260
4264
  }
4261
4265
  }
4262
- }), Yu = (e) => {
4263
- const [, t] = Un(), [n, s] = V(!1);
4266
+ }), Ju = (e) => {
4267
+ const [, t] = an(), [n, s] = V(!1);
4264
4268
  return j(() => (t(
4265
4269
  ks(e, [
4266
4270
  "apiUrl",
@@ -4274,7 +4278,7 @@ const Gl = {
4274
4278
  "websocket",
4275
4279
  "realtimeAdapter",
4276
4280
  "getLoggedInUser",
4277
- "features",
4281
+ "flags",
4278
4282
  "currentUser"
4279
4283
  ])
4280
4284
  ), setTimeout(() => {
@@ -4284,16 +4288,16 @@ const Gl = {
4284
4288
  }), [e, t]), n ? q(e, "hasReactQueryProvider", !1) === !0 ? /* @__PURE__ */ m(pe, { children: [
4285
4289
  /* @__PURE__ */ c(Ss, { ...e }),
4286
4290
  /* @__PURE__ */ c(Ts, {})
4287
- ] }) : /* @__PURE__ */ m(Ma, { client: xl, children: [
4291
+ ] }) : /* @__PURE__ */ m(Ba, { client: Rl, children: [
4288
4292
  /* @__PURE__ */ c(Ss, { ...e }),
4289
4293
  /* @__PURE__ */ c(Ts, {})
4290
4294
  ] }) : /* @__PURE__ */ c("div", {});
4291
- }, Rl = Q.lazy(() => import("./nested-path-selector-content-D0WcjzaQ.js"));
4292
- function kl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4295
+ }, kl = Q.lazy(() => import("./nested-path-selector-content-CzQ2Lorl.js"));
4296
+ function Dl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4293
4297
  const [r, a] = Q.useState(!1);
4294
- return /* @__PURE__ */ m(fa, { open: r, onOpenChange: a, children: [
4298
+ return /* @__PURE__ */ m(ha, { open: r, onOpenChange: a, children: [
4295
4299
  /* @__PURE__ */ m(tn, { children: [
4296
- /* @__PURE__ */ c(nn, { asChild: !0, children: /* @__PURE__ */ c(ha, { asChild: !0, children: /* @__PURE__ */ c(
4300
+ /* @__PURE__ */ c(nn, { asChild: !0, children: /* @__PURE__ */ c(ga, { asChild: !0, children: /* @__PURE__ */ c(
4297
4301
  B,
4298
4302
  {
4299
4303
  size: "sm",
@@ -4317,7 +4321,7 @@ function kl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4317
4321
  /* @__PURE__ */ c(sn, { children: "Add field" })
4318
4322
  ] }),
4319
4323
  r && /* @__PURE__ */ c(Q.Suspense, { children: /* @__PURE__ */ c(
4320
- Rl,
4324
+ kl,
4321
4325
  {
4322
4326
  data: e,
4323
4327
  onSelect: t,
@@ -4328,17 +4332,17 @@ function kl({ data: e, onSelect: t, dataType: n = "value", disabled: s = !1 }) {
4328
4332
  ) })
4329
4333
  ] });
4330
4334
  }
4331
- const Ju = () => {
4335
+ const Zu = () => {
4332
4336
  const { savePageAsync: e } = Me(), t = Y(), { isLocked: n } = Se();
4333
4337
  return z(async () => {
4334
4338
  n || await e(), t.invalidateQueries({ queryKey: [p.GET_DRAFT_PAGE] }), t.invalidateQueries({ queryKey: [p.GET_BUILDER_PAGE_DATA] });
4335
4339
  }, [e, t, n]);
4336
- }, Zu = () => {
4340
+ }, Xu = () => {
4337
4341
  const e = Y();
4338
4342
  return z(() => {
4339
4343
  e.clear();
4340
4344
  }, [e]);
4341
- }, Xu = () => {
4345
+ }, ed = () => {
4342
4346
  const e = I(), t = C(), { data: n } = Ce(), s = Y();
4343
4347
  return X({
4344
4348
  mutationFn: async (r) => {
@@ -4363,7 +4367,7 @@ const Ju = () => {
4363
4367
  console.error("Failed to update metadata");
4364
4368
  }
4365
4369
  });
4366
- }, Dl = H(() => import("./digital-asset-manager-DPB63e09.js")), ed = ({
4370
+ }, Ul = H(() => import("./digital-asset-manager-C_ru4Zes.js")), td = ({
4367
4371
  assetId: e,
4368
4372
  assetUrl: t,
4369
4373
  onChange: n,
@@ -4402,7 +4406,7 @@ const Ju = () => {
4402
4406
  className: "h-8 w-8 rounded-full bg-white text-red-500",
4403
4407
  onClick: g,
4404
4408
  disabled: a,
4405
- children: h ? /* @__PURE__ */ c(cs, { className: "h-4 w-4" }) : /* @__PURE__ */ c(ti, { className: "h-4 w-4" })
4409
+ children: h ? /* @__PURE__ */ c(cs, { className: "h-4 w-4" }) : /* @__PURE__ */ c(ni, { className: "h-4 w-4" })
4406
4410
  }
4407
4411
  ),
4408
4412
  !h && /* @__PURE__ */ c(
@@ -4429,9 +4433,9 @@ const Ju = () => {
4429
4433
  ] })
4430
4434
  }
4431
4435
  ),
4432
- /* @__PURE__ */ c(Rn, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(Ls, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4433
- /* @__PURE__ */ m(ga, { className: "hidden border-b px-4 py-2", children: [
4434
- /* @__PURE__ */ c(ma, { children: i("Select Image") }),
4436
+ /* @__PURE__ */ c(kn, { open: o, onOpenChange: l, children: /* @__PURE__ */ m(Ls, { className: "h-fit w-full max-w-7xl overflow-hidden p-0", children: [
4437
+ /* @__PURE__ */ m(ma, { className: "hidden border-b px-4 py-2", children: [
4438
+ /* @__PURE__ */ c(Ea, { children: i("Select Image") }),
4435
4439
  /* @__PURE__ */ c(
4436
4440
  B,
4437
4441
  {
@@ -4445,7 +4449,7 @@ const Ju = () => {
4445
4449
  )
4446
4450
  ] }),
4447
4451
  /* @__PURE__ */ c("div", { className: "h-full flex-1 p-4", children: /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(
4448
- Dl,
4452
+ Ul,
4449
4453
  {
4450
4454
  close: u,
4451
4455
  onSelect: f,
@@ -4455,7 +4459,7 @@ const Ju = () => {
4455
4459
  ) }) })
4456
4460
  ] }) })
4457
4461
  ] });
4458
- }, Ul = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), _s = (e) => {
4462
+ }, Ml = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), _s = (e) => {
4459
4463
  if (!e.trim())
4460
4464
  return { isValid: !1, parsed: null, placeholders: [], error: { message: "JSON is empty" } };
4461
4465
  try {
@@ -4490,13 +4494,13 @@ const Ju = () => {
4490
4494
  }
4491
4495
  };
4492
4496
  }
4493
- }, Ml = (e, t) => {
4497
+ }, Bl = (e, t) => {
4494
4498
  let s = JSON.stringify(e, null, 2);
4495
4499
  return t.forEach(({ original: r }, a) => {
4496
- const i = `"__placeholder_${a}__"`, o = new RegExp(Ul(i), "g");
4500
+ const i = `"__placeholder_${a}__"`, o = new RegExp(Ml(i), "g");
4497
4501
  s = s.replace(o, r);
4498
4502
  }), s;
4499
- }, Bl = (e, t) => {
4503
+ }, Fl = (e, t) => {
4500
4504
  if (!e) return "";
4501
4505
  let n = JSON.stringify(e, null, 2);
4502
4506
  const s = /{{([^{}]+)}}/g;
@@ -4506,7 +4510,7 @@ const Ju = () => {
4506
4510
  n = n.replace(r[0], i);
4507
4511
  }
4508
4512
  return n;
4509
- }, Fl = H(() => import("./shared-json-ld-CNFCdi3P.js")), td = ({
4513
+ }, Kl = H(() => import("./shared-json-ld-Ba9GcvLr.js")), nd = ({
4510
4514
  value: e,
4511
4515
  onChange: t,
4512
4516
  disabled: n = !1,
@@ -4519,7 +4523,7 @@ const Ju = () => {
4519
4523
  hasJsonLdForSelectedLang: d,
4520
4524
  copyJsonLDFromDefaultPage: u
4521
4525
  }) => {
4522
- const [f, g] = V("edit"), [h, A] = V(null), [y, T] = V(""), _ = oe(null), [E] = Un(), P = i === "jsonLD" && q(E, "features.sharedJsonLD", !1), N = i === "jsonLD" && !d && !!u;
4526
+ const [f, g] = V("edit"), [h, A] = V(null), [y, T] = V(""), _ = oe(null), [E] = an(), P = i === "jsonLD" && q(E, "flags.sharedJsonLD", !1), N = i === "jsonLD" && !d && !!u;
4523
4527
  j(() => {
4524
4528
  e.trim() === "" && t("{}");
4525
4529
  }, [e, t]);
@@ -4559,7 +4563,7 @@ const Ju = () => {
4559
4563
  const F = _s(e);
4560
4564
  F.isValid ? ns(() => {
4561
4565
  if (A(null), F.parsed) {
4562
- const b = Bl(F.parsed, o);
4566
+ const b = Fl(F.parsed, o);
4563
4567
  T(b);
4564
4568
  } else
4565
4569
  T("");
@@ -4570,46 +4574,46 @@ const Ju = () => {
4570
4574
  const me = () => {
4571
4575
  const F = _s(e);
4572
4576
  if (F.isValid && F.parsed) {
4573
- const b = Ml(F.parsed, F.placeholders);
4577
+ const b = Bl(F.parsed, F.placeholders);
4574
4578
  t(b);
4575
4579
  }
4576
4580
  }, _e = () => {
4577
4581
  h != null && h.position && _.current && (_.current.focus(), _.current.setSelectionRange(h.position, h.position + 1));
4578
4582
  };
4579
- return /* @__PURE__ */ c(di, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Ea, { value: f, onValueChange: g, className: "w-full", children: [
4583
+ return /* @__PURE__ */ c(fi, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(pa, { value: f, onValueChange: g, className: "w-full", children: [
4580
4584
  /* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
4581
- /* @__PURE__ */ m(pa, { className: "w-max", children: [
4582
- /* @__PURE__ */ m(dn, { value: "edit", className: "flex items-center gap-1", children: [
4583
- /* @__PURE__ */ c(ni, { className: "h-4 w-4" }),
4585
+ /* @__PURE__ */ m(ya, { className: "w-max", children: [
4586
+ /* @__PURE__ */ m(fn, { value: "edit", className: "flex items-center gap-1", children: [
4587
+ /* @__PURE__ */ c(si, { className: "h-4 w-4" }),
4584
4588
  /* @__PURE__ */ c("span", { children: "Edit" })
4585
4589
  ] }),
4586
4590
  /* @__PURE__ */ m(
4587
- dn,
4591
+ fn,
4588
4592
  {
4589
4593
  value: "preview",
4590
4594
  className: "flex items-center gap-1",
4591
4595
  disabled: !e.trim() || h !== null || N,
4592
4596
  children: [
4593
- /* @__PURE__ */ c(si, { className: "h-4 w-4" }),
4597
+ /* @__PURE__ */ c(ri, { className: "h-4 w-4" }),
4594
4598
  /* @__PURE__ */ c("span", { children: "Preview" })
4595
4599
  ]
4596
4600
  }
4597
4601
  ),
4598
4602
  P && /* @__PURE__ */ m(
4599
- dn,
4603
+ fn,
4600
4604
  {
4601
4605
  value: "shared",
4602
4606
  className: "flex items-center gap-1",
4603
4607
  disabled: !e.trim() || h !== null,
4604
4608
  children: [
4605
- /* @__PURE__ */ c(ri, { className: "h-4 w-4" }),
4609
+ /* @__PURE__ */ c(ai, { className: "h-4 w-4" }),
4606
4610
  /* @__PURE__ */ c("span", { children: "Shared" })
4607
4611
  ]
4608
4612
  }
4609
4613
  )
4610
4614
  ] }),
4611
4615
  N ? null : f === "edit" && !s && /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ c(
4612
- kl,
4616
+ Dl,
4613
4617
  {
4614
4618
  dataType: "value",
4615
4619
  data: o ?? {},
@@ -4617,7 +4621,7 @@ const Ju = () => {
4617
4621
  }
4618
4622
  ) })
4619
4623
  ] }),
4620
- /* @__PURE__ */ m(fn, { value: "edit", className: "relative mt-0", children: [
4624
+ /* @__PURE__ */ m(hn, { value: "edit", className: "relative mt-0", children: [
4621
4625
  !N && f === "edit" && /* @__PURE__ */ c(Hn, { content: "Format JSON", side: "right", showTooltip: !n && !h, children: /* @__PURE__ */ c(
4622
4626
  B,
4623
4627
  {
@@ -4627,7 +4631,7 @@ const Ju = () => {
4627
4631
  onClick: me,
4628
4632
  className: "absolute right-1 top-1 h-6 w-6 p-1",
4629
4633
  disabled: !e.trim() || n || h !== null,
4630
- children: /* @__PURE__ */ c(ai, {})
4634
+ children: /* @__PURE__ */ c(ii, {})
4631
4635
  }
4632
4636
  ) }),
4633
4637
  N ? /* @__PURE__ */ c("div", { className: "flex h-40 items-center justify-center rounded-md bg-black/20", children: /* @__PURE__ */ m("div", { className: "flex max-w-[400px] flex-col items-center gap-2 rounded-md bg-white p-4 shadow-lg", children: [
@@ -4652,9 +4656,9 @@ const Ju = () => {
4652
4656
  readOnly: s
4653
4657
  }
4654
4658
  ),
4655
- h && /* @__PURE__ */ m(Pa, { variant: "destructive", className: "mt-2", children: [
4656
- /* @__PURE__ */ c(ii, { className: "h-4 w-4" }),
4657
- /* @__PURE__ */ m(wa, { className: "flex flex-col", children: [
4659
+ h && /* @__PURE__ */ m(wa, { variant: "destructive", className: "mt-2", children: [
4660
+ /* @__PURE__ */ c(oi, { className: "h-4 w-4" }),
4661
+ /* @__PURE__ */ m(va, { className: "flex flex-col", children: [
4658
4662
  /* @__PURE__ */ c("span", { className: "font-medium", children: "Invalid JSON" }),
4659
4663
  /* @__PURE__ */ c("span", { className: "text-sm", children: h.message }),
4660
4664
  h.line && h.column && /* @__PURE__ */ m("span", { className: "text-sm", children: [
@@ -4677,13 +4681,13 @@ const Ju = () => {
4677
4681
  ] })
4678
4682
  ] })
4679
4683
  ] }),
4680
- /* @__PURE__ */ m(fn, { value: "preview", className: "mt-0", children: [
4684
+ /* @__PURE__ */ m(hn, { value: "preview", className: "mt-0", children: [
4681
4685
  /* @__PURE__ */ c(Zn, { rows: a, value: y, readOnly: !0, className: "cursor-default bg-muted font-mono text-sm" }),
4682
4686
  /* @__PURE__ */ c("p", { className: "mt-1 text-xs text-muted-foreground", children: "This is how the JSON will look after placeholder substitution." })
4683
4687
  ] }),
4684
- P && /* @__PURE__ */ c(fn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Fl, {}) }) })
4688
+ P && /* @__PURE__ */ c(hn, { value: "shared", className: "mt-0", children: /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Kl, {}) }) })
4685
4689
  ] }) }) });
4686
- }, nd = (e) => {
4690
+ }, sd = (e) => {
4687
4691
  const t = I(), n = C();
4688
4692
  return se({
4689
4693
  queryKey: [p.GET_CHAI_USER, e],
@@ -4698,9 +4702,9 @@ const Ju = () => {
4698
4702
  staleTime: "static"
4699
4703
  });
4700
4704
  };
4701
- class Kl {
4705
+ class Vl {
4702
4706
  constructor(t) {
4703
- un(this, "channel");
4707
+ dn(this, "channel");
4704
4708
  this.channel = t;
4705
4709
  }
4706
4710
  get topic() {
@@ -4743,141 +4747,141 @@ class Kl {
4743
4747
  return this.channel.presenceState();
4744
4748
  }
4745
4749
  }
4746
- class Vl {
4750
+ class Hl {
4747
4751
  constructor(t) {
4748
- un(this, "client");
4752
+ dn(this, "client");
4749
4753
  this.client = t;
4750
4754
  }
4751
4755
  channel(t, n) {
4752
4756
  const s = this.client.channel(t, n);
4753
- return new Kl(s);
4757
+ return new Vl(s);
4754
4758
  }
4755
4759
  }
4756
- function sd(e) {
4757
- return new Vl(e);
4760
+ function rd(e) {
4761
+ return new Hl(e);
4758
4762
  }
4759
4763
  if (typeof window > "u")
4760
4764
  throw new Error("@chaibuilder/pages is not available on the server");
4761
4765
  export {
4762
- Nu as $,
4766
+ Lu as $,
4763
4767
  p as A,
4764
4768
  Vn as B,
4765
4769
  K as C,
4766
- Yo as D,
4770
+ Jo as D,
4767
4771
  re as E,
4768
- ir as F,
4769
- Uu as G,
4770
- Ru as H,
4771
- ku as I,
4772
- vn as J,
4772
+ or as F,
4773
+ Mu as G,
4774
+ ku as H,
4775
+ Du as I,
4776
+ bn as J,
4773
4777
  Ue as K,
4774
4778
  Mt as L,
4775
- _c as M,
4776
- Du as N,
4777
- Ac as O,
4779
+ Pc as M,
4780
+ Uu as N,
4781
+ Tc as O,
4778
4782
  ne as P,
4779
- Iu as Q,
4783
+ Nu as Q,
4780
4784
  mt as R,
4781
- Gu as S,
4785
+ Ou as S,
4782
4786
  Hn as T,
4783
- Qu as U,
4784
- zu as V,
4785
- Pu as W,
4786
- wn as X,
4787
- Ku as Y,
4788
- Ic as Z,
4789
- Wu as _,
4787
+ zu as U,
4788
+ Wu as V,
4789
+ wu as W,
4790
+ vn as X,
4791
+ Vu as Y,
4792
+ Nc as Z,
4793
+ ju as _,
4790
4794
  Se as a,
4791
4795
  Bn as a$,
4792
- _u as a0,
4793
- Fu as a1,
4794
- Hu as a2,
4795
- Vu as a3,
4796
- qu as a4,
4797
- $u as a5,
4798
- Lu as a6,
4796
+ Pu as a0,
4797
+ Ku as a1,
4798
+ qu as a2,
4799
+ Hu as a3,
4800
+ $u as a4,
4801
+ Qu as a5,
4802
+ Cu as a6,
4799
4803
  ee as a7,
4800
- sr as a8,
4801
- vu as a9,
4804
+ rr as a8,
4805
+ bu as a9,
4802
4806
  Vs as aA,
4803
- an as aB,
4807
+ on as aB,
4804
4808
  qs as aC,
4805
- Eu as aD,
4806
- Au as aE,
4807
- td as aF,
4809
+ pu as aD,
4810
+ Tu as aE,
4811
+ nd as aF,
4808
4812
  _s as aG,
4809
- pu as aH,
4810
- Tu as aI,
4811
- Su as aJ,
4812
- yu as aK,
4813
- wo as aL,
4814
- Si as aM,
4815
- Un as aN,
4816
- Yi as aO,
4817
- kl as aP,
4818
- ed as aQ,
4819
- Pi as aR,
4820
- cu as aS,
4813
+ yu as aH,
4814
+ Su as aI,
4815
+ _u as aJ,
4816
+ Au as aK,
4817
+ vo as aL,
4818
+ _i as aM,
4819
+ an as aN,
4820
+ Ji as aO,
4821
+ Dl as aP,
4822
+ td as aQ,
4823
+ wi as aR,
4824
+ lu as aS,
4821
4825
  zs as aT,
4822
- Yu as aU,
4826
+ Ju as aU,
4823
4827
  Ce as aV,
4824
- Zu as aW,
4825
- _l as aX,
4826
- Ju as aY,
4827
- Xu as aZ,
4828
+ Xu as aW,
4829
+ Pl as aX,
4830
+ Zu as aY,
4831
+ ed as aZ,
4828
4832
  Bs as a_,
4829
- bc as aa,
4830
- gr as ab,
4833
+ Ic as aa,
4834
+ mr as ab,
4831
4835
  De as ac,
4832
- ll as ad,
4833
- Cu as ae,
4836
+ ul as ad,
4837
+ Gu as ae,
4834
4838
  Vt as af,
4835
- Pc as ag,
4836
- Bu as ah,
4837
- xu as ai,
4838
- Ou as aj,
4839
+ wc as ag,
4840
+ Fu as ah,
4841
+ Ru as ai,
4842
+ xu as aj,
4839
4843
  Ht as ak,
4840
- oc as al,
4841
- Mu as am,
4842
- zo as an,
4843
- Ui as ao,
4844
- nd as ap,
4845
- ki as aq,
4844
+ cc as al,
4845
+ Bu as am,
4846
+ Wo as an,
4847
+ Mi as ao,
4848
+ sd as ap,
4849
+ Di as aq,
4846
4850
  I as ar,
4847
4851
  C as as,
4848
- Sl as at,
4849
- mu as au,
4852
+ _l as at,
4853
+ Eu as au,
4850
4854
  Wt as av,
4851
4855
  fe as aw,
4852
- gn as ax,
4856
+ mn as ax,
4853
4857
  he as ay,
4854
4858
  de as az,
4855
4859
  $s as b,
4856
- No as b0,
4857
- Vl as b1,
4858
- sd as b2,
4860
+ Lo as b0,
4861
+ Hl as b1,
4862
+ rd as b2,
4859
4863
  be as c,
4860
- ro as d,
4861
- js as e,
4862
- vo as f,
4864
+ ao as d,
4865
+ Ys as e,
4866
+ bo as f,
4863
4867
  Qs as g,
4864
- lu as h,
4865
- uu as i,
4868
+ uu as h,
4869
+ du as i,
4866
4870
  Fe as j,
4867
4871
  Kn as k,
4868
4872
  Be as l,
4869
4873
  Ge as m,
4870
- Ei as n,
4871
- du as o,
4872
- pl as p,
4873
- hu as q,
4874
- gu as r,
4875
- fu as s,
4876
- mn as t,
4877
- ou as u,
4878
- iu as v,
4879
- ju as w,
4874
+ pi as n,
4875
+ fu as o,
4876
+ yl as p,
4877
+ gu as q,
4878
+ mu as r,
4879
+ hu as s,
4880
+ En as t,
4881
+ cu as u,
4882
+ ou as v,
4883
+ Yu as w,
4880
4884
  Z as x,
4881
- hr as y,
4882
- bu as z
4885
+ gr as y,
4886
+ Iu as z
4883
4887
  };