@blocklet/pages-kit-inner-components 0.4.90 → 0.4.92

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.
@@ -1,64 +1,65 @@
1
- import { jsx as o, jsxs as _, Fragment as U } from "react/jsx-runtime";
2
- import { a as T, g as I, i as ae, b as ce, E as le, c as ct, d as lt, e as Et, u as de, f as me } from "./state-DqChB5ys.js";
3
- import { useLocaleContext as zt } from "@arcblock/ux/lib/Locale/context";
4
- import Wt from "@arcblock/ux/lib/Result";
5
- import { useHeaderState as ue } from "@blocklet/pages-kit/builtin/page/header";
6
- import pe from "@blocklet/ui-react/lib/Header";
7
- import { cx as k, css as ot } from "@emotion/css";
8
- import { Global as Lt, css as Ot } from "@emotion/react";
9
- import Ht from "@emotion/styled";
10
- import { Box as b, Tooltip as he, styled as At, Stack as dt, Typography as B, Container as fe, useTheme as ge, createTheme as xe, ThemeProvider as be, Card as ye, CircularProgress as Mt, Grid as vt, CardMedia as we, CardContent as ve, Button as ke } from "@mui/material";
11
- import { useLatest as _e, useReactive as $e } from "ahooks";
12
- import Se from "isomorphic-dompurify";
13
- import kt from "lodash/cloneDeep";
14
- import Ce from "lodash/isEmpty";
15
- import Ut from "lodash/isEqual";
16
- import Ft, { forwardRef as Ne, useState as E, useCallback as mt, useRef as F, Fragment as Ie, isValidElement as Vt, useEffect as z, useMemo as C, createContext as Pe, useContext as Gt, lazy as Dt, Suspense as je } from "react";
17
- import { Helmet as Be } from "react-helmet";
18
- import { Link as Re, NavLink as Te, useNavigate as Ee, useSearchParams as ze, Routes as We, Route as Y, Navigate as Le, ScrollRestoration as Oe } from "react-router-dom";
19
- import { useUpdate as He, useMount as Ae, useWindowScroll as Me, useAsync as Jt } from "react-use";
20
- import { withoutTrailingSlash as tt, isRelative as Ue, parseURL as Fe, joinURL as Q } from "ufo";
1
+ import { jsx as o, jsxs as _, Fragment as F } from "react/jsx-runtime";
2
+ import { a as T, g as I, i as ce, b as le, E as de, c as lt, d as dt, e as zt, u as me, f as ue } from "./state-JDvNqLu1.js";
3
+ import { cloneDeep as M } from "lodash";
4
+ import { useLocaleContext as Wt } from "@arcblock/ux/lib/Locale/context";
5
+ import Lt from "@arcblock/ux/lib/Result";
6
+ import { useHeaderState as pe } from "@blocklet/pages-kit/builtin/page/header";
7
+ import he from "@blocklet/ui-react/lib/Header";
8
+ import { cx as k, css as nt } from "@emotion/css";
9
+ import { Global as Ot, css as Ht } from "@emotion/react";
10
+ import At from "@emotion/styled";
11
+ import { Box as b, Tooltip as fe, styled as Mt, Stack as mt, Typography as B, Container as ge, useTheme as xe, createTheme as be, ThemeProvider as ye, Card as we, CircularProgress as Ut, Grid as kt, CardMedia as ve, CardContent as ke, Button as _e } from "@mui/material";
12
+ import { useLatest as $e, useReactive as Se } from "ahooks";
13
+ import Ce from "isomorphic-dompurify";
14
+ import _t from "lodash/cloneDeep";
15
+ import Ne from "lodash/isEmpty";
16
+ import Ft from "lodash/isEqual";
17
+ import Vt, { forwardRef as Ie, useState as E, useCallback as ut, useRef as V, Fragment as Pe, isValidElement as Gt, useEffect as z, useMemo as C, createContext as je, useContext as Dt, lazy as Jt, Suspense as Be } from "react";
18
+ import { Helmet as Re } from "react-helmet";
19
+ import { Link as Te, NavLink as Ee, useNavigate as ze, useSearchParams as We, Routes as Le, Route as Q, Navigate as Oe, ScrollRestoration as He } from "react-router-dom";
20
+ import { useUpdate as Ae, useMount as Me, useWindowScroll as Ue, useAsync as qt } from "react-use";
21
+ import { withoutTrailingSlash as et, isRelative as Fe, parseURL as Ve, joinURL as Z } from "ufo";
21
22
  import "@mui/icons-material";
22
- import { AIForm as _t, AIFormResult as $t } from "@blocklet/ai-runtime/components";
23
- import { deepmerge as Ve } from "@mui/utils";
24
- import ut from "lodash/pick";
25
- import { ErrorBoundary as Ge } from "react-error-boundary";
26
- import { Icon as nt } from "@iconify/react";
27
- import De from "react-markdown";
28
- import Je from "remark-gfm";
29
- import { LoadingButton as qe } from "@mui/lab";
30
- import { useTheme as pt, styled as $ } from "@arcblock/ux/lib/Theme";
31
- import Ke from "@arcblock/react-hooks/lib/useBrowser";
32
- import St from "@arcblock/ux/lib/Colors";
33
- import { ResponsiveImage as qt, CustomComponentRenderer as Xe } from "@blocklet/pages-kit/components";
34
- import Kt from "@mui/material/useMediaQuery";
23
+ import { AIForm as $t, AIFormResult as St } from "@blocklet/ai-runtime/components";
24
+ import { deepmerge as Ge } from "@mui/utils";
25
+ import pt from "lodash/pick";
26
+ import { ErrorBoundary as De } from "react-error-boundary";
27
+ import { Icon as rt } from "@iconify/react";
28
+ import Je from "react-markdown";
29
+ import qe from "remark-gfm";
30
+ import { LoadingButton as Ke } from "@mui/lab";
31
+ import { useTheme as ht, styled as $ } from "@arcblock/ux/lib/Theme";
32
+ import Xe from "@arcblock/react-hooks/lib/useBrowser";
33
+ import Ct from "@arcblock/ux/lib/Colors";
34
+ import { ResponsiveImage as Kt, CustomComponentRenderer as Ye } from "@blocklet/pages-kit/components";
35
+ import Xt from "@mui/material/useMediaQuery";
35
36
  import j from "lodash/omit";
36
- import { Icon as Xt } from "@iconify-icon/react";
37
- import Ye from "@arcblock/ux/lib/Screenshot";
38
- import Qe from "@arcblock/ux/lib/Button";
39
- import rt from "is-uri";
40
- import { join as Z } from "pathe";
41
- import { useMessage as Ze } from "@blocklet/embed/message";
42
- import { EmbedIframe as to } from "@blocklet/embed/react";
43
- import { TwitterTimelineEmbed as eo } from "react-twitter-embed";
44
- import oo from "@blocklet/ui-react/lib/Footer";
45
- import no from "webfontloader";
46
- import { createAuthServiceSessionContext as ro } from "@arcblock/did-connect/lib/Session";
47
- function io(t, e, n, r) {
48
- t.locales || (t.locales = {}), t.locales[n] = t.locales[n] || {}, t.locales[n].title = r.title ?? t.locales[n].title, t.locales[n].image = r.image ?? t.locales[n].image, t.locales[n].description = r.description ?? t.locales[n].description, Object.entries(r.sectionsData).forEach(([i, s]) => {
37
+ import { Icon as Yt } from "@iconify-icon/react";
38
+ import Qe from "@arcblock/ux/lib/Screenshot";
39
+ import Ze from "@arcblock/ux/lib/Button";
40
+ import it from "is-uri";
41
+ import { join as tt } from "pathe";
42
+ import { useMessage as to } from "@blocklet/embed/message";
43
+ import { EmbedIframe as eo } from "@blocklet/embed/react";
44
+ import { TwitterTimelineEmbed as oo } from "react-twitter-embed";
45
+ import no from "@blocklet/ui-react/lib/Footer";
46
+ import ro from "webfontloader";
47
+ import { createAuthServiceSessionContext as io } from "@arcblock/did-connect/lib/Session";
48
+ function so(t, e, n, r) {
49
+ t.locales || (t.locales = {}), t.locales[n] = M(t.locales[n] || {}), t.locales[n].title = r.title ?? t.locales[n].title, t.locales[n].image = r.image ?? t.locales[n].image, t.locales[n].description = r.description ?? t.locales[n].description, Object.entries(r.sectionsData).forEach(([i, s]) => {
49
50
  var c, l, d, m;
50
51
  const a = Object.values(t.sections).find(
51
52
  (u) => u.id === i || u.name === i
52
53
  );
53
54
  if (a && a.isTemplateSection)
54
- if (a.locales = a.locales || {}, a.locales[n] = a.locales[n] || {}, a.component === "custom-component") {
55
+ if (a.locales = M(a.locales || {}), a.locales[n] = M(a.locales[n] || {}), a.component === "custom-component") {
55
56
  const u = (c = a.config) == null ? void 0 : c.componentId;
56
57
  if (!u)
57
58
  return;
58
59
  const h = ((l = e.components[u]) == null ? void 0 : l.data) || ((m = (d = e.resources.components) == null ? void 0 : d[u]) == null ? void 0 : m.component);
59
60
  if (!h)
60
61
  return;
61
- a.locales[n].properties = a.locales[n].properties || {}, Object.entries(s || {}).forEach(([p, x]) => {
62
+ a.locales[n].properties = M(a.locales[n].properties || {}), Object.entries(s || {}).forEach(([p, x]) => {
62
63
  var f, w;
63
64
  const y = ((f = h == null ? void 0 : h.properties) == null ? void 0 : f[p]) || Object.values((h == null ? void 0 : h.properties) || {}).find((g) => {
64
65
  var v;
@@ -70,13 +71,13 @@ function io(t, e, n, r) {
70
71
  });
71
72
  } else
72
73
  a.locales[n] = {
73
- ...a.locales[n],
74
+ ...M(a.locales[n]),
74
75
  ...s || {}
75
76
  };
76
77
  });
77
78
  }
78
- const so = Ne(({ onClick: t, ...e }, n) => {
79
- const [r, i] = E(!1), s = mt(
79
+ const ao = Ie(({ onClick: t, ...e }, n) => {
80
+ const [r, i] = E(!1), s = ut(
80
81
  async (a) => {
81
82
  try {
82
83
  i(!0), await (t == null ? void 0 : t(a));
@@ -86,9 +87,9 @@ const so = Ne(({ onClick: t, ...e }, n) => {
86
87
  },
87
88
  [t]
88
89
  );
89
- return /* @__PURE__ */ o(qe, { ref: n, ...e, loading: e.loading || r, onClick: s });
90
+ return /* @__PURE__ */ o(Ke, { ref: n, ...e, loading: e.loading || r, onClick: s });
90
91
  });
91
- function ao({
92
+ function co({
92
93
  tip: t,
93
94
  tipSucceed: e,
94
95
  title: n,
@@ -99,17 +100,17 @@ function ao({
99
100
  placement: c = "top",
100
101
  ...l
101
102
  }) {
102
- const [d, m] = E(!1), [u, h] = E(), p = F(), x = () => {
103
+ const [d, m] = E(!1), [u, h] = E(), p = V(), x = () => {
103
104
  h(void 0), a && (p.current = window.setTimeout(() => {
104
105
  m(!1);
105
106
  }, 3e3));
106
107
  }, y = () => {
107
108
  clearTimeout(p.current);
108
109
  }, f = d ? s : i, w = u ? /* @__PURE__ */ o(b, { color: "error", children: u.message }) : d && e || t;
109
- return /* @__PURE__ */ o(he, { title: w, disableInteractive: !0, placement: c, onClose: x, onOpen: y, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
110
- so,
110
+ return /* @__PURE__ */ o(fe, { title: w, disableInteractive: !0, placement: c, onClose: x, onOpen: y, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
111
+ ao,
111
112
  {
112
- startIcon: f && (typeof f == "string" ? /* @__PURE__ */ o(nt, { icon: f }) : f),
113
+ startIcon: f && (typeof f == "string" ? /* @__PURE__ */ o(rt, { icon: f }) : f),
113
114
  loadingPosition: f ? "start" : void 0,
114
115
  ...l,
115
116
  onClick: async (v) => {
@@ -124,17 +125,17 @@ function ao({
124
125
  }
125
126
  ) }) });
126
127
  }
127
- const co = Ft.lazy(() => import("react-syntax-highlighter").then((t) => ({ default: t.Prism }))), lo = At((t) => /* @__PURE__ */ o(
128
- De,
128
+ const lo = Vt.lazy(() => import("react-syntax-highlighter").then((t) => ({ default: t.Prism }))), mo = Mt((t) => /* @__PURE__ */ o(
129
+ Je,
129
130
  {
130
131
  ...t,
131
- remarkPlugins: [Je],
132
+ remarkPlugins: [qe],
132
133
  components: {
133
- pre: mo,
134
+ pre: uo,
134
135
  code: ({ node: e, inline: n, className: r, children: i, ...s }) => {
135
136
  if (!i) return null;
136
137
  const a = /language-(\w+)/.exec(r || "");
137
- return n ? /* @__PURE__ */ o(b, { component: "code", className: r, ...s, children: i }) : /* @__PURE__ */ o(b, { component: co, language: a == null ? void 0 : a[1], ...s, sx: { borderRadius: 1 }, children: String(i).replace(/\n$/, "") });
138
+ return n ? /* @__PURE__ */ o(b, { component: "code", className: r, ...s, children: i }) : /* @__PURE__ */ o(b, { component: lo, language: a == null ? void 0 : a[1], ...s, sx: { borderRadius: 1 }, children: String(i).replace(/\n$/, "") });
138
139
  },
139
140
  table: ({ className: e, children: n }) => /* @__PURE__ */ o(b, { sx: { overflow: "auto", my: 1 }, children: /* @__PURE__ */ o("table", { className: e, children: n }) })
140
141
  }
@@ -212,7 +213,7 @@ const co = Ft.lazy(() => import("react-syntax-highlighter").then((t) => ({ defau
212
213
  }
213
214
  }
214
215
  `;
215
- function mo({ children: t }) {
216
+ function uo({ children: t }) {
216
217
  const e = t == null ? void 0 : t.props;
217
218
  if (!(e != null && e.children)) return null;
218
219
  const n = /language-(\w+)/.exec(e.className || ""), r = n == null ? void 0 : n[1];
@@ -227,15 +228,15 @@ function mo({ children: t }) {
227
228
  "> pre": { mt: "0 !important" }
228
229
  },
229
230
  children: [
230
- /* @__PURE__ */ _(dt, { direction: "row", alignItems: "center", p: 0.5, pl: 1.5, borderBottom: 1, borderColor: "grey.200", children: [
231
+ /* @__PURE__ */ _(mt, { direction: "row", alignItems: "center", p: 0.5, pl: 1.5, borderBottom: 1, borderColor: "grey.200", children: [
231
232
  /* @__PURE__ */ o(b, { children: r }),
232
233
  /* @__PURE__ */ o(b, { flex: 1 }),
233
234
  /* @__PURE__ */ o(
234
- ao,
235
+ co,
235
236
  {
236
237
  autoReset: !0,
237
- title: /* @__PURE__ */ o(nt, { icon: "tabler:copy" }),
238
- titleSucceed: /* @__PURE__ */ o(nt, { icon: "tabler:copy-check" }),
238
+ title: /* @__PURE__ */ o(rt, { icon: "tabler:copy" }),
239
+ titleSucceed: /* @__PURE__ */ o(rt, { icon: "tabler:copy-check" }),
239
240
  sx: { minWidth: 32, minHeight: 32, p: 0, fontSize: 18 },
240
241
  onClick: () => {
241
242
  window.navigator.clipboard.writeText(e.children);
@@ -265,7 +266,7 @@ function O({ actions: t, center: e, className: n, align: r }) {
265
266
  }
266
267
  ) : null;
267
268
  }
268
- const uo = "section", po = At(b)`
269
+ const po = "section", ho = Mt(b)`
269
270
  overflow: hidden;
270
271
 
271
272
  .section__title {
@@ -314,7 +315,7 @@ const uo = "section", po = At(b)`
314
315
  margin-bottom: 0.5rem;
315
316
  }
316
317
  }
317
- @media (min-width: ${({ theme: t }) => t.breakpoints.values[uo]}px) {
318
+ @media (min-width: ${({ theme: t }) => t.breakpoints.values[po]}px) {
318
319
  .section__tag {
319
320
  margin-bottom: 32px;
320
321
  }
@@ -326,7 +327,7 @@ const uo = "section", po = At(b)`
326
327
  }
327
328
  }
328
329
  `;
329
- function V({
330
+ function G({
330
331
  title: t,
331
332
  description: e,
332
333
  descriptionMarkdown: n,
@@ -353,7 +354,7 @@ function V({
353
354
  5: "xl:!text-lg md:!text-md sm:!text-sm",
354
355
  6: "!text-sm"
355
356
  }, g = l === 0 ? "big" : `h${f}`, v = l === 0;
356
- return /* @__PURE__ */ _(po, { className: k("base-info", "lg:text-left", u && "!text-center", i), ...y, children: [
357
+ return /* @__PURE__ */ _(ho, { className: k("base-info", "lg:text-left", u && "!text-center", i), ...y, children: [
357
358
  a && /* @__PURE__ */ o("div", { children: a }),
358
359
  (d || m) && /* @__PURE__ */ o("div", { className: k("section__tag", (s == null ? void 0 : s.tag) || (s == null ? void 0 : s.badge)), children: d || m }),
359
360
  h && /* @__PURE__ */ o("img", { className: "w-[120px] m-auto mb-8", src: h, alt: "info", loading: "lazy" }),
@@ -384,7 +385,7 @@ function V({
384
385
  sx: {
385
386
  ...(x == null ? void 0 : x.color) && { color: `${x.color} !important` }
386
387
  },
387
- component: lo,
388
+ component: mo,
388
389
  className: k(
389
390
  "section__description",
390
391
  "text-gray-800",
@@ -420,7 +421,7 @@ function V({
420
421
  c && /* @__PURE__ */ o("div", { children: c })
421
422
  ] });
422
423
  }
423
- const G = [
424
+ const D = [
424
425
  "actions",
425
426
  "append",
426
427
  "badge",
@@ -435,15 +436,15 @@ const G = [
435
436
  "titleAppearance",
436
437
  "descriptionAppearance"
437
438
  ];
438
- function Yt(t) {
439
- if (t.type === Ie) {
440
- const n = (t.props.children || []).filter((r) => Vt(r));
441
- return n.length === 1 ? Yt(n[0]) : n.length > 1;
439
+ function Qt(t) {
440
+ if (t.type === Pe) {
441
+ const n = (t.props.children || []).filter((r) => Gt(r));
442
+ return n.length === 1 ? Qt(n[0]) : n.length > 1;
442
443
  }
443
444
  return Array.isArray(t);
444
445
  }
445
446
  const R = "&>*";
446
- function ht({ children: t, col: e, gap: n, className: r, align: i, sx: s, type: a, ...c } = {
447
+ function ft({ children: t, col: e, gap: n, className: r, align: i, sx: s, type: a, ...c } = {
447
448
  children: null,
448
449
  className: "",
449
450
  col: 3,
@@ -452,7 +453,7 @@ function ht({ children: t, col: e, gap: n, className: r, align: i, sx: s, type:
452
453
  align: "center",
453
454
  type: "default"
454
455
  }) {
455
- const l = pt(), d = Number(Math.floor(100 / e * 100) / 100), m = {
456
+ const l = ht(), d = Number(Math.floor(100 / e * 100) / 100), m = {
456
457
  center: "justify-center items-center",
457
458
  left: "justify-start items-center",
458
459
  right: "justify-end items-center",
@@ -470,7 +471,7 @@ function ht({ children: t, col: e, gap: n, className: r, align: i, sx: s, type:
470
471
  5: 3,
471
472
  6: 3
472
473
  }[e] || 0);
473
- Yt(t) || (p = 0);
474
+ Qt(t) || (p = 0);
474
475
  const y = (e - 1) * p / e;
475
476
  let f = { ...s, gap: `${p}rem` };
476
477
  const w = { [R]: { width: "100%" } }, g = {}, v = {}, P = {};
@@ -494,26 +495,26 @@ function ht({ children: t, col: e, gap: n, className: r, align: i, sx: s, type:
494
495
  }
495
496
  return f[R] = { width: `calc(${d}% - ${y}rem)` }, f[`@media (max-width: ${l.breakpoints.values.xl}px)`] = P, f[`@media (max-width: ${l.breakpoints.values.lg}px)`] = v, f[`@media (max-width: ${l.breakpoints.values.md}px)`] = g, f[`@media (max-width: ${l.breakpoints.values.sm}px)`] = w, a === "wall" && (f = { ...s, gap: `${p}rem` }, f[R] = { width: `calc(${d}% - ${y}rem)` }, w[R] = { width: `calc(45% - ${p / 2 / 2}rem)` }, f[`@media (max-width: ${l.breakpoints.values.sm}px)`] = w), /* @__PURE__ */ o(b, { className: k("flex flex-wrap flex-row h-full", u, r), sx: f, ...c, children: t });
496
497
  }
497
- function ho() {
498
+ function fo() {
498
499
  const t = navigator.userAgent.toLowerCase();
499
500
  return t.includes("safari") && !t.includes("chrome");
500
501
  }
501
- function fo(t = "") {
502
+ function go(t = "") {
502
503
  if (t.startsWith("data:image/svg+xml,")) return !0;
503
504
  const e = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, n = /^(\/|\.\/|\.\.\/)(?:[^/]+\/)*[^/]+$/;
504
505
  return e.test(t) || n.test(t);
505
506
  }
506
- function it(t) {
507
+ function st(t) {
507
508
  return (t == null ? void 0 : t.endsWith(".mp4")) || (t == null ? void 0 : t.endsWith(".m4v")) || (t == null ? void 0 : t.endsWith(".webm"));
508
509
  }
509
- function go(t) {
510
+ function xo(t) {
510
511
  return t != null && t.endsWith(".mp4") || t != null && t.endsWith(".m4v") ? "video/mp4" : t != null && t.endsWith(".webm") ? "video/webm" : void 0;
511
512
  }
512
- function xo(t) {
513
+ function bo(t) {
513
514
  let e = {};
514
- return typeof t == "string" ? ae(t) ? e.image = t : (e.image = I(t), ce(t) && (e.color = t, e.image = "")) : e = t, e;
515
+ return typeof t == "string" ? ce(t) ? e.image = t : (e.image = I(t), le(t) && (e.color = t, e.image = "")) : e = t, e;
515
516
  }
516
- function bo() {
517
+ function yo() {
517
518
  const [t, e] = E(Date.now());
518
519
  return z(() => {
519
520
  const n = () => {
@@ -524,10 +525,10 @@ function bo() {
524
525
  };
525
526
  }, []), t;
526
527
  }
527
- function Ct(t, e, n, r, i) {
528
+ function Nt(t, e, n, r, i) {
528
529
  let s = null;
529
- const { color: a = "", image: c } = xo(e);
530
- return c && fo(c) ? (delete n.backgroundColor, !(t.mobile.apple.device || ho()) && it(c) ? s = /* @__PURE__ */ o(
530
+ const { color: a = "", image: c } = bo(e);
531
+ return c && go(c) ? (delete n.backgroundColor, !(t.mobile.apple.device || fo()) && st(c) ? s = /* @__PURE__ */ o(
531
532
  b,
532
533
  {
533
534
  component: "video",
@@ -539,7 +540,7 @@ function Ct(t, e, n, r, i) {
539
540
  controls: !1,
540
541
  playsInline: !0,
541
542
  poster: T(I(r), 1200, "quality"),
542
- src: it(c) ? c : T(c, 1200, "quality"),
543
+ src: st(c) ? c : T(c, 1200, "quality"),
543
544
  sx: {
544
545
  position: "absolute",
545
546
  zIndex: -9999,
@@ -553,7 +554,7 @@ function Ct(t, e, n, r, i) {
553
554
  },
554
555
  c
555
556
  ) : s = /* @__PURE__ */ o(
556
- qt,
557
+ Kt,
557
558
  {
558
559
  src: c,
559
560
  sizesAttr: {
@@ -579,10 +580,10 @@ function Ct(t, e, n, r, i) {
579
580
  i || c
580
581
  )) : c ? n.backgroundImage = `${c} !important` : a && (n.backgroundColor = `${a} !important`), s;
581
582
  }
582
- function yo({ autoWidth: t, children: e, ...n }) {
583
- return t ? /* @__PURE__ */ o(b, { display: "flex", ...n, children: e }) : /* @__PURE__ */ o(fe, { ...n, children: e });
583
+ function wo({ autoWidth: t, children: e, ...n }) {
584
+ return t ? /* @__PURE__ */ o(b, { display: "flex", ...n, children: e }) : /* @__PURE__ */ o(ge, { ...n, children: e });
584
585
  }
585
- function D({
586
+ function J({
586
587
  dark: t = !1,
587
588
  children: e,
588
589
  className: n,
@@ -593,8 +594,8 @@ function D({
593
594
  type: c,
594
595
  ...l
595
596
  }) {
596
- const d = { ...r }, m = Kt((p) => p.breakpoints.down("md"));
597
- t && (d.color = St.common.white, d.backgroundColor = `${St.grey[900]} !important`);
597
+ const d = { ...r }, m = Xt((p) => p.breakpoints.down("md"));
598
+ t && (d.color = Ct.common.white, d.backgroundColor = `${Ct.grey[900]} !important`);
598
599
  const u = {
599
600
  none: "py-0",
600
601
  small: "py-5 md:py-8 lg:py-8 xl:py-12",
@@ -611,7 +612,7 @@ function D({
611
612
  width: "100%"
612
613
  }, [l.boxMaxWidth, m, c]);
613
614
  return /* @__PURE__ */ o(
614
- wo,
615
+ vo,
615
616
  {
616
617
  component: "section",
617
618
  styles: { ...d },
@@ -627,11 +628,11 @@ function D({
627
628
  "titleAppearance",
628
629
  "descriptionAppearance"
629
630
  ),
630
- children: /* @__PURE__ */ o(yo, { autoWidth: l == null ? void 0 : l.autoWidth, className: k("section-content h-full"), sx: h, children: i.show ? /* @__PURE__ */ o(Qt, { ...a, boxed: i, children: e }) : e })
631
+ children: /* @__PURE__ */ o(wo, { autoWidth: l == null ? void 0 : l.autoWidth, className: k("section-content h-full"), sx: h, children: i.show ? /* @__PURE__ */ o(Zt, { ...a, boxed: i, children: e }) : e })
631
632
  }
632
633
  );
633
634
  }
634
- function Qt({
635
+ function Zt({
635
636
  background: t = "",
636
637
  backgroundVideoPoster: e,
637
638
  children: n,
@@ -643,8 +644,8 @@ function Qt({
643
644
  }) {
644
645
  const l = { ...a, ...r };
645
646
  let d = null;
646
- const m = Kt((p) => p.breakpoints.up("sm")), u = Ke(), h = bo();
647
- return t && (d = Ct(u, t, l, e, h)), i.show && (l.borderRadius = "10px", l.padding === void 0 && (l.padding = m ? "50px" : "20px"), i != null && i.border && (l.border = "1px solid #c0c0c0"), i != null && i.background && (d = Ct(
647
+ const m = Xt((p) => p.breakpoints.up("sm")), u = Xe(), h = yo();
648
+ return t && (d = Nt(u, t, l, e, h)), i.show && (l.borderRadius = "10px", l.padding === void 0 && (l.padding = m ? "50px" : "20px"), i != null && i.border && (l.border = "1px solid #c0c0c0"), i != null && i.background && (d = Nt(
648
649
  u,
649
650
  i == null ? void 0 : i.background,
650
651
  l,
@@ -666,7 +667,7 @@ function Qt({
666
667
  }
667
668
  );
668
669
  }
669
- const wo = $(Qt)`
670
+ const vo = $(Zt)`
670
671
  &:nth-of-type(even) {
671
672
  background: #f8f8f8;
672
673
  }
@@ -683,15 +684,15 @@ const wo = $(Qt)`
683
684
  }
684
685
  }
685
686
  `;
686
- function Zt({ icon: t, ...e }) {
687
- return /* @__PURE__ */ o(Xt, { icon: t, ...e, ref: null });
687
+ function te({ icon: t, ...e }) {
688
+ return /* @__PURE__ */ o(Yt, { icon: t, ...e, ref: null });
688
689
  }
689
690
  function N(t, e) {
690
- const n = ut(t, e), r = j(t, e);
691
+ const n = pt(t, e), r = j(t, e);
691
692
  return [n, r];
692
693
  }
693
- const te = ["title", "description", "actions", "badge", "tag", "prepend", "append", "logo"];
694
- function vo({
694
+ const ee = ["title", "description", "actions", "badge", "tag", "prepend", "append", "logo"];
695
+ function ko({
695
696
  image: t,
696
697
  imageBorder: e,
697
698
  imageShadow: n,
@@ -700,7 +701,7 @@ function vo({
700
701
  fullSizeImage: s,
701
702
  ...a
702
703
  }) {
703
- const [c, l] = N(a, G), d = Object.keys(c).length > 0 && Object.values(ut(c, te)).filter(Boolean).length > 0 && /* @__PURE__ */ o(V, { ...c }), m = Vt(t) ? t : /* @__PURE__ */ o(b, { component: "img", src: t, alt: "", className: "block" }), u = ["phone", "macbook"].includes(e), h = t && /* @__PURE__ */ o(
704
+ const [c, l] = N(a, D), d = Object.keys(c).length > 0 && Object.values(pt(c, ee)).filter(Boolean).length > 0 && /* @__PURE__ */ o(G, { ...c }), m = Gt(t) ? t : /* @__PURE__ */ o(b, { component: "img", src: t, alt: "", className: "block" }), u = ["phone", "macbook"].includes(e), h = t && /* @__PURE__ */ o(
704
705
  b,
705
706
  {
706
707
  className: k(
@@ -718,17 +719,17 @@ function vo({
718
719
  },
719
720
  children: u ? (
720
721
  // @ts-ignore
721
- /* @__PURE__ */ o(Ye, { type: e, sx: { width: "100%" }, children: m })
722
+ /* @__PURE__ */ o(Qe, { type: e, sx: { width: "100%" }, children: m })
722
723
  ) : m
723
724
  }
724
725
  );
725
726
  return /* @__PURE__ */ o(
726
- D,
727
+ J,
727
728
  {
728
729
  className: k(
729
730
  "section--block",
730
731
  r,
731
- s && !i && ot`
732
+ s && !i && nt`
732
733
  .section-bg {
733
734
  height: 80%;
734
735
  }
@@ -737,10 +738,10 @@ function vo({
737
738
  ...l,
738
739
  boxProps: s ? { sx: { padding: 0, overflow: "hidden" } } : void 0,
739
740
  children: /* @__PURE__ */ o(
740
- ht,
741
+ ft,
741
742
  {
742
743
  col: t ? 2 : 1,
743
- className: s ? ot`
744
+ className: s ? nt`
744
745
  display: flex;
745
746
  flex-direction: column;
746
747
 
@@ -754,10 +755,10 @@ function vo({
754
755
  }
755
756
  }
756
757
  ` : void 0,
757
- children: i ? /* @__PURE__ */ _(U, { children: [
758
+ children: i ? /* @__PURE__ */ _(F, { children: [
758
759
  h,
759
760
  d
760
- ] }) : /* @__PURE__ */ _(U, { children: [
761
+ ] }) : /* @__PURE__ */ _(F, { children: [
761
762
  d,
762
763
  h
763
764
  ] })
@@ -766,14 +767,14 @@ function vo({
766
767
  }
767
768
  );
768
769
  }
769
- const J = ["editing", "height", "locale", "dev", "sx"];
770
- function ko(t) {
771
- return /* @__PURE__ */ o(_o, { ...t });
770
+ const q = ["editing", "height", "locale", "dev", "sx"];
771
+ function _o(t) {
772
+ return /* @__PURE__ */ o($o, { ...t });
772
773
  }
773
- const _o = $(b)`
774
+ const $o = $(b)`
774
775
  position: relative;
775
776
  `;
776
- function $o({
777
+ function So({
777
778
  widget: t,
778
779
  reverse: e,
779
780
  projectId: n,
@@ -787,9 +788,9 @@ function $o({
787
788
  section: m,
788
789
  ...u
789
790
  }) {
790
- const [{ editing: h }, p] = N(u, J), [x, y] = N(p, G), f = n && r ? { projectId: n, gitRef: "main", assistantId: r, working: !0 } : void 0, w = {
791
+ const [{ editing: h }, p] = N(u, q), [x, y] = N(p, D), f = n && r ? { projectId: n, gitRef: "main", assistantId: r, working: !0 } : void 0, w = {
791
792
  children: s,
792
- endIcon: a ? /* @__PURE__ */ o(Zt, { icon: a }) : void 0,
793
+ endIcon: a ? /* @__PURE__ */ o(te, { icon: a }) : void 0,
793
794
  sx: {
794
795
  background: c || void 0,
795
796
  ":hover": {
@@ -798,9 +799,9 @@ function $o({
798
799
  }
799
800
  }
800
801
  }, g = [], v = l && /* @__PURE__ */ o(B, { variant: "caption", color: "text.disabled", children: l }), P = d && /* @__PURE__ */ o(B, { variant: "caption", color: "text.disabled", children: d });
801
- Object.keys(x).length > 0 && Object.values(ut(x, te)).filter(Boolean).length > 0 && g.push(/* @__PURE__ */ o(V, { ...x }, "base-info")), f && (t === "form" ? g.push(/* @__PURE__ */ o(_t, { identifier: f, SubmitProps: w }, "form")) : t === "result" ? g.push(
802
+ Object.keys(x).length > 0 && Object.values(pt(x, ee)).filter(Boolean).length > 0 && g.push(/* @__PURE__ */ o(G, { ...x }, "base-info")), f && (t === "form" ? g.push(/* @__PURE__ */ o($t, { identifier: f, SubmitProps: w }, "form")) : t === "result" ? g.push(
802
803
  /* @__PURE__ */ o(
803
- $t,
804
+ St,
804
805
  {
805
806
  identifier: f,
806
807
  placeholder: v,
@@ -809,10 +810,10 @@ function $o({
809
810
  "result"
810
811
  )
811
812
  ) : g.push(
812
- /* @__PURE__ */ _(dt, { width: "100%", gap: 2, direction: "row", children: [
813
- /* @__PURE__ */ o(_t, { identifier: f, BoxProps: { flex: 1 }, SubmitProps: w }),
813
+ /* @__PURE__ */ _(mt, { width: "100%", gap: 2, direction: "row", children: [
814
+ /* @__PURE__ */ o($t, { identifier: f, BoxProps: { flex: 1 }, SubmitProps: w }),
814
815
  /* @__PURE__ */ o(
815
- $t,
816
+ St,
816
817
  {
817
818
  identifier: f,
818
819
  BoxProps: { flex: 1 },
@@ -822,32 +823,32 @@ function $o({
822
823
  )
823
824
  ] }, "form-result")
824
825
  )), e && g.reverse();
825
- const H = ge(), X = C(
826
- () => xe(Ve(H, { palette: { primary: c ? { main: c } : void 0 } })),
826
+ const H = xe(), Y = C(
827
+ () => be(Ge(H, { palette: { primary: c ? { main: c } : void 0 } })),
827
828
  [c, H]
828
829
  );
829
- return /* @__PURE__ */ o(Ge, { fallbackRender: le, children: /* @__PURE__ */ o(be, { theme: X, children: /* @__PURE__ */ o(D, { ...y, sx: h ? { pointerEvents: "none" } : {}, children: /* @__PURE__ */ o(ht, { col: g.length, children: g }) }) }) });
830
+ return /* @__PURE__ */ o(De, { fallbackRender: de, children: /* @__PURE__ */ o(ye, { theme: Y, children: /* @__PURE__ */ o(J, { ...y, sx: h ? { pointerEvents: "none" } : {}, children: /* @__PURE__ */ o(ft, { col: g.length, children: g }) }) }) });
830
831
  }
831
- const ee = Pe({
832
+ const oe = je({
832
833
  pages: [],
833
834
  project: void 0
834
- }), { Provider: So, Consumer: Cr } = ee;
835
- function oe() {
836
- return Gt(ee);
835
+ }), { Provider: Co, Consumer: Ir } = oe;
836
+ function ne() {
837
+ return Dt(oe);
837
838
  }
838
- function Co({ icon: t, className: e = "", size: n = "1rem", ...r }) {
839
- return /* @__PURE__ */ o(No, { component: Zt, className: k("css-icon", e), size: n, ...r, icon: t });
839
+ function No({ icon: t, className: e = "", size: n = "1rem", ...r }) {
840
+ return /* @__PURE__ */ o(Io, { component: te, className: k("css-icon", e), size: n, ...r, icon: t });
840
841
  }
841
- const No = $(b)`
842
+ const Io = $(b)`
842
843
  &.css-icon {
843
844
  display: inline-block;
844
845
  width: ${({ size: t }) => t};
845
846
  height: ${({ size: t }) => t};
846
847
  }
847
848
  `;
848
- function Io({ icon: t, className: e = "", size: n = "1rem", imageMeta: r, ...i }) {
849
- const s = T(I(t), 540), [a, c] = E(!1), l = pt();
850
- return a ? /* @__PURE__ */ o(Co, { icon: "i-mdi:image", color: l.palette.grey[500], size: n, className: e, ...i }) : /* @__PURE__ */ o(Po, { className: k("image-icon", e), size: n, ...i, children: /* @__PURE__ */ o(
849
+ function Po({ icon: t, className: e = "", size: n = "1rem", imageMeta: r, ...i }) {
850
+ const s = T(I(t), 540), [a, c] = E(!1), l = ht();
851
+ return a ? /* @__PURE__ */ o(No, { icon: "i-mdi:image", color: l.palette.grey[500], size: n, className: e, ...i }) : /* @__PURE__ */ o(jo, { className: k("image-icon", e), size: n, ...i, children: /* @__PURE__ */ o(
851
852
  "img",
852
853
  {
853
854
  className: "image-icon__image",
@@ -860,7 +861,7 @@ function Io({ icon: t, className: e = "", size: n = "1rem", imageMeta: r, ...i }
860
861
  }
861
862
  ) });
862
863
  }
863
- const Po = $(b)`
864
+ const jo = $(b)`
864
865
  display: inline-block;
865
866
  width: ${({ size: t }) => t};
866
867
  height: ${({ size: t }) => t};
@@ -869,30 +870,30 @@ const Po = $(b)`
869
870
  height: 100%;
870
871
  width: 100%;
871
872
  }
872
- `, ft = (t) => typeof t == "string" && /^[\w-_]+:[\w-_]+$/.test(t);
873
- function st({ icon: t, size: e = "1rem", imageMeta: n, ...r }) {
873
+ `, gt = (t) => typeof t == "string" && /^[\w-_]+:[\w-_]+$/.test(t);
874
+ function at({ icon: t, size: e = "1rem", imageMeta: n, ...r }) {
874
875
  const i = window.isNaN(e) ? e : `${e}px`;
875
- return ft(t) ? /* @__PURE__ */ o(Xt, { icon: t }) : /* @__PURE__ */ o(jo, { component: Io, imageMeta: n, className: "base-icon", icon: t, size: i, ...r });
876
+ return gt(t) ? /* @__PURE__ */ o(Yt, { icon: t }) : /* @__PURE__ */ o(Bo, { component: Po, imageMeta: n, className: "base-icon", icon: t, size: i, ...r });
876
877
  }
877
- const jo = $(b)`
878
+ const Bo = $(b)`
878
879
  flex-shrink: 0;
879
880
  `;
880
- function M({ text: t, children: e, icon: n = "", endIcon: r, color: i = "primary", link: s = "", href: a = "", ...c }) {
881
- const l = n ? /* @__PURE__ */ o(st, { icon: n }) : null, d = r ? /* @__PURE__ */ o(st, { icon: r }) : null, m = s || a, u = { ...c };
882
- return m && (u.href = m, rt(m) && (u.target = u.target || "_blank")), /* @__PURE__ */ o(Qe, { startIcon: l, endIcon: d, color: i, ...u, children: t || e });
881
+ function U({ text: t, children: e, icon: n = "", endIcon: r, color: i = "primary", link: s = "", href: a = "", ...c }) {
882
+ const l = n ? /* @__PURE__ */ o(at, { icon: n }) : null, d = r ? /* @__PURE__ */ o(at, { icon: r }) : null, m = s || a, u = { ...c };
883
+ return m && (u.href = m, it(m) && (u.target = u.target || "_blank")), /* @__PURE__ */ o(Ze, { startIcon: l, endIcon: d, color: i, ...u, children: t || e });
883
884
  }
884
- function ne({ editing: t, text: e, ...n }) {
885
- const { pages: r = [] } = oe(), i = r.find((s) => s.id === (n.link || n.linkId));
885
+ function re({ editing: t, text: e, ...n }) {
886
+ const { pages: r = [] } = ne(), i = r.find((s) => s.id === (n.link || n.linkId));
886
887
  if (t)
887
- return /* @__PURE__ */ o(M, { ...j(n, ["link", "linkId"]), children: e });
888
+ return /* @__PURE__ */ o(U, { ...j(n, ["link", "linkId"]), children: e });
888
889
  if (i) {
889
890
  const s = i.path || "/";
890
- return /* @__PURE__ */ o(Re, { to: s, children: /* @__PURE__ */ o(M, { ...j(n, ["link", "linkId"]), children: e }) });
891
+ return /* @__PURE__ */ o(Te, { to: s, children: /* @__PURE__ */ o(U, { ...j(n, ["link", "linkId"]), children: e }) });
891
892
  }
892
- return /* @__PURE__ */ o(M, { ...j(n, "linkId"), children: e });
893
+ return /* @__PURE__ */ o(U, { ...j(n, "linkId"), children: e });
893
894
  }
894
895
  function W({ type: t = "", icon: e = "", size: n = "3rem", className: r = "", ...i }) {
895
- return /* @__PURE__ */ o(st, { icon: e || t, size: n, className: k("content-icon", r), ...i });
896
+ return /* @__PURE__ */ o(at, { icon: e || t, size: n, className: k("content-icon", r), ...i });
896
897
  }
897
898
  W.propTypes = {};
898
899
  W.defaultProps = {
@@ -902,7 +903,7 @@ W.defaultProps = {
902
903
  color: "inherit",
903
904
  className: ""
904
905
  };
905
- function Bo({
906
+ function Ro({
906
907
  to: t,
907
908
  base: e,
908
909
  children: n,
@@ -913,32 +914,32 @@ function Bo({
913
914
  useRouterLink: c,
914
915
  ...l
915
916
  }) {
916
- const { pages: d = [], locale: m = "" } = {}, u = e ? Z("/", e) : e || "";
917
- let h = s === "auto" ? "_self" : s, p = Z(u, t);
918
- const x = a ? rt(p) : !1;
917
+ const { pages: d = [], locale: m = "" } = {}, u = e ? tt("/", e) : e || "";
918
+ let h = s === "auto" ? "_self" : s, p = tt(u, t);
919
+ const x = a ? it(p) : !1;
919
920
  if (e)
920
- return p = Z(u, m, t), /* @__PURE__ */ o(
921
+ return p = tt(u, m, t), /* @__PURE__ */ o(
921
922
  "a",
922
923
  {
923
924
  className: `no-underline ${r}`,
924
- href: tt(p),
925
+ href: et(p),
925
926
  rel: "noreferrer noopener",
926
927
  target: h,
927
928
  ...l,
928
929
  children: n
929
930
  }
930
931
  );
931
- if (rt(t))
932
+ if (it(t))
932
933
  s === "auto" && (h = "_blank"), p = t;
933
934
  else {
934
- Ue(p) && (p = Z(window.location.pathname, p));
935
- const y = Fe(`${window.location.origin}${p}`), f = d.some((w) => w.pathname === y.pathname);
935
+ Fe(p) && (p = tt(window.location.pathname, p));
936
+ const y = Ve(`${window.location.origin}${p}`), f = d.some((w) => w.pathname === y.pathname);
936
937
  if (c || f)
937
938
  return /* @__PURE__ */ o(
938
- Te,
939
+ Ee,
939
940
  {
940
941
  end: !0,
941
- to: tt(p),
942
+ to: et(p),
942
943
  className: ({ isActive: w }) => k(r, w ? i : ""),
943
944
  ...l,
944
945
  children: n
@@ -949,7 +950,7 @@ function Bo({
949
950
  "a",
950
951
  {
951
952
  className: `no-underline ${r}`,
952
- href: tt(p),
953
+ href: et(p),
953
954
  rel: "noreferrer noopener",
954
955
  target: h,
955
956
  ...l,
@@ -960,7 +961,7 @@ function Bo({
960
961
  }
961
962
  );
962
963
  }
963
- function q({
964
+ function K({
964
965
  prepend: t,
965
966
  append: e,
966
967
  children: n,
@@ -970,13 +971,13 @@ function q({
970
971
  ...a
971
972
  }) {
972
973
  let c = {};
973
- const { pages: l = [] } = oe(), d = l.find((h) => h.id === a.link), m = !n || Ft.Children.toArray(n).every((h) => h === null);
974
+ const { pages: l = [] } = ne(), d = l.find((h) => h.id === a.link), m = !n || Vt.Children.toArray(n).every((h) => h === null);
974
975
  return a.link && (c = {
975
- component: Bo,
976
+ component: Ro,
976
977
  to: (d == null ? void 0 : d.path) || a.link,
977
978
  useRouterLink: !0
978
979
  }), /* @__PURE__ */ _(
979
- Ro,
980
+ To,
980
981
  {
981
982
  className: k(
982
983
  "base-card card",
@@ -995,7 +996,7 @@ function q({
995
996
  }
996
997
  );
997
998
  }
998
- const Ro = $(b)`
999
+ const To = $(b)`
999
1000
  &.base-card {
1000
1001
  text-align: left;
1001
1002
  border-width: 1px;
@@ -1011,14 +1012,14 @@ const Ro = $(b)`
1011
1012
  padding: 15px 15px;
1012
1013
  }
1013
1014
  `;
1014
- function K({
1015
+ function X({
1015
1016
  align: t = "left",
1016
1017
  title: e,
1017
1018
  titleProps: n = {},
1018
1019
  description: r,
1019
1020
  descriptionProps: i = {}
1020
1021
  }) {
1021
- return /* @__PURE__ */ _(U, { children: [
1022
+ return /* @__PURE__ */ _(F, { children: [
1022
1023
  e && /* @__PURE__ */ o(
1023
1024
  B,
1024
1025
  {
@@ -1045,7 +1046,7 @@ function K({
1045
1046
  )
1046
1047
  ] });
1047
1048
  }
1048
- function To({
1049
+ function Eo({
1049
1050
  image: t,
1050
1051
  title: e,
1051
1052
  description: n,
@@ -1058,9 +1059,9 @@ function To({
1058
1059
  align: d,
1059
1060
  ...m
1060
1061
  }) {
1061
- const u = ft(t), h = T(I(t), 540);
1062
+ const u = gt(t), h = T(I(t), 540);
1062
1063
  return /* @__PURE__ */ _(
1063
- Eo,
1064
+ zo,
1064
1065
  {
1065
1066
  className: "card-article",
1066
1067
  ...m,
@@ -1094,7 +1095,7 @@ function To({
1094
1095
  ) }),
1095
1096
  children: [
1096
1097
  e || n ? /* @__PURE__ */ o(
1097
- K,
1098
+ X,
1098
1099
  {
1099
1100
  align: d,
1100
1101
  title: e,
@@ -1108,7 +1109,7 @@ function To({
1108
1109
  }
1109
1110
  );
1110
1111
  }
1111
- const Eo = $(q)`
1112
+ const zo = $(K)`
1112
1113
  ${(t) => t.hoverStyle === "none" ? "" : t.link ? `transition: box-shadow ease .3s;
1113
1114
  &:hover {
1114
1115
  box-shadow: 0 0 10px rgba(95, 142, 244, 0.42);
@@ -1129,8 +1130,8 @@ const Eo = $(q)`
1129
1130
  height: 100%;
1130
1131
  object-position: top center;
1131
1132
  }
1132
- `, Nt = "section";
1133
- function It({
1133
+ `, It = "section";
1134
+ function Pt({
1134
1135
  title: t,
1135
1136
  image: e,
1136
1137
  imageMeta: n,
@@ -1141,7 +1142,7 @@ function It({
1141
1142
  className: c = "",
1142
1143
  ...l
1143
1144
  }) {
1144
- return /* @__PURE__ */ _(zo, { className: k("card", `list-type-${a}`, c), align: s, ...l, children: [
1145
+ return /* @__PURE__ */ _(Wo, { className: k("card", `list-type-${a}`, c), align: s, ...l, children: [
1145
1146
  e && /* @__PURE__ */ o(
1146
1147
  W,
1147
1148
  {
@@ -1151,18 +1152,18 @@ function It({
1151
1152
  imageMeta: n
1152
1153
  }
1153
1154
  ),
1154
- t || r ? /* @__PURE__ */ o(K, { align: s, title: t, description: r }) : null,
1155
+ t || r ? /* @__PURE__ */ o(X, { align: s, title: t, description: r }) : null,
1155
1156
  i != null && i.length ? /* @__PURE__ */ o(O, { align: s, actions: i, className: "mt-4" }) : null
1156
1157
  ] });
1157
1158
  }
1158
- const zo = $(q)`
1159
+ const Wo = $(K)`
1159
1160
  padding: 5vw 4vw;
1160
1161
  box-sizing: border-box;
1161
1162
  /* min-height: 320px; */
1162
1163
  color: inherit !important;
1163
1164
  border-radius: 0.5rem;
1164
1165
  /* ${({ dark: t, theme: e }) => `background-color:${t ? e.palette.grey[900] : e.palette.common.white};`} */
1165
- @media (max-width: ${({ theme: t }) => t.breakpoints.values[Nt]}px) {
1166
+ @media (max-width: ${({ theme: t }) => t.breakpoints.values[It]}px) {
1166
1167
  padding: 1.5rem 2rem;
1167
1168
  }
1168
1169
  @media (max-width: ${({ theme: t }) => t.breakpoints.values.sm}px) {
@@ -1207,13 +1208,13 @@ const zo = $(q)`
1207
1208
  }
1208
1209
  }
1209
1210
 
1210
- @media (min-width: ${({ theme: t }) => t.breakpoints.values[Nt]}px) {
1211
+ @media (min-width: ${({ theme: t }) => t.breakpoints.values[It]}px) {
1211
1212
  padding: 2rem 2rem;
1212
1213
  text-align: left;
1213
1214
  box-sizing: border-box;
1214
1215
  }
1215
1216
  `;
1216
- function Wo({
1217
+ function Lo({
1217
1218
  image: t,
1218
1219
  title: e,
1219
1220
  description: n,
@@ -1226,9 +1227,9 @@ function Wo({
1226
1227
  align: d,
1227
1228
  ...m
1228
1229
  }) {
1229
- const u = ft(t), h = T(I(t), 540);
1230
+ const u = gt(t), h = T(I(t), 540);
1230
1231
  return /* @__PURE__ */ _(
1231
- Lo,
1232
+ Oo,
1232
1233
  {
1233
1234
  className: "card-article",
1234
1235
  ...m,
@@ -1263,7 +1264,7 @@ function Wo({
1263
1264
  ) }),
1264
1265
  children: [
1265
1266
  e || n ? /* @__PURE__ */ o(
1266
- K,
1267
+ X,
1267
1268
  {
1268
1269
  align: d,
1269
1270
  title: e,
@@ -1277,7 +1278,7 @@ function Wo({
1277
1278
  }
1278
1279
  );
1279
1280
  }
1280
- const Lo = $(q)`
1281
+ const Oo = $(K)`
1281
1282
  ${(t) => t.hoverStyle === "none" ? "" : t.link ? `transition: box-shadow ease .3s;
1282
1283
  &:hover {
1283
1284
  box-shadow: 0 0 10px rgba(95, 142, 244, 0.42);
@@ -1301,8 +1302,8 @@ const Lo = $(q)`
1301
1302
  .card__image {
1302
1303
  max-height: 60px;
1303
1304
  }
1304
- `, Pt = "section";
1305
- function Oo({
1305
+ `, jt = "section";
1306
+ function Ho({
1306
1307
  title: t,
1307
1308
  image: e,
1308
1309
  imageMeta: n,
@@ -1313,15 +1314,15 @@ function Oo({
1313
1314
  className: c = "",
1314
1315
  ...l
1315
1316
  }) {
1316
- return /* @__PURE__ */ o(Ho, { className: k("card", c), ...l, children: /* @__PURE__ */ _(b, { className: "flex items-center", children: [
1317
+ return /* @__PURE__ */ o(Ao, { className: k("card", c), ...l, children: /* @__PURE__ */ _(b, { className: "flex items-center", children: [
1317
1318
  e && /* @__PURE__ */ o(W, { icon: e, color: "primary.main", size: r, imageMeta: n }),
1318
1319
  /* @__PURE__ */ _(b, { className: "flex-1 ml-4", children: [
1319
- /* @__PURE__ */ o(K, { align: a, title: t, description: i }),
1320
+ /* @__PURE__ */ o(X, { align: a, title: t, description: i }),
1320
1321
  /* @__PURE__ */ o(O, { align: a, actions: s, className: "mt-4" })
1321
1322
  ] })
1322
1323
  ] }) });
1323
1324
  }
1324
- const Ho = $(q)`
1325
+ const Ao = $(K)`
1325
1326
  padding: 5vw 4vw;
1326
1327
  text-align: left;
1327
1328
  box-sizing: border-box;
@@ -1329,7 +1330,7 @@ const Ho = $(q)`
1329
1330
  color: inherit !important;
1330
1331
  border-radius: 0.5rem;
1331
1332
  /* ${({ dark: t, theme: e }) => `background-color:${t ? e.palette.grey[900] : e.palette.common.white};`} */
1332
- @media (max-width: ${({ theme: t }) => t.breakpoints.values[Pt]}px) {
1333
+ @media (max-width: ${({ theme: t }) => t.breakpoints.values[jt]}px) {
1333
1334
  padding: 1.5rem 2rem;
1334
1335
  }
1335
1336
  @media (max-width: ${({ theme: t }) => t.breakpoints.values.sm}px) {
@@ -1372,13 +1373,13 @@ const Ho = $(q)`
1372
1373
  }
1373
1374
  }
1374
1375
 
1375
- @media (min-width: ${({ theme: t }) => t.breakpoints.values[Pt]}px) {
1376
+ @media (min-width: ${({ theme: t }) => t.breakpoints.values[jt]}px) {
1376
1377
  padding: 2rem 2rem;
1377
1378
  text-align: left;
1378
1379
  box-sizing: border-box;
1379
1380
  }
1380
1381
  `;
1381
- function Ao({
1382
+ function Mo({
1382
1383
  title: t,
1383
1384
  titleProps: e = {},
1384
1385
  description: n,
@@ -1390,10 +1391,10 @@ function Ao({
1390
1391
  hoverStyle: l,
1391
1392
  ...d
1392
1393
  }) {
1393
- return /* @__PURE__ */ _(Mo, { className: k("card-simple", a, `hover-style__${l}`), align: c, ...d, children: [
1394
+ return /* @__PURE__ */ _(Uo, { className: k("card-simple", a, `hover-style__${l}`), align: c, ...d, children: [
1394
1395
  i && /* @__PURE__ */ o(W, { icon: i, color: "primary.main", imageMeta: s }),
1395
1396
  t || n ? /* @__PURE__ */ o(
1396
- K,
1397
+ X,
1397
1398
  {
1398
1399
  align: c,
1399
1400
  title: t,
@@ -1404,7 +1405,7 @@ function Ao({
1404
1405
  ) : null
1405
1406
  ] });
1406
1407
  }
1407
- const Mo = $(q)`
1408
+ const Uo = $(K)`
1408
1409
  ${({ dark: t, theme: e }) => `background-color:${t ? e.palette.grey[900] : e.palette.common.white};`}
1409
1410
 
1410
1411
  &.hover-style__default {
@@ -1490,17 +1491,17 @@ const Mo = $(q)`
1490
1491
  }
1491
1492
  }
1492
1493
  `;
1493
- function Uo({ type: t = "default", ...e }) {
1494
+ function Fo({ type: t = "default", ...e }) {
1494
1495
  const r = {
1495
- article: To,
1496
- simple: Ao,
1497
- news: Oo,
1498
- default: It,
1499
- wall: Wo
1500
- }[t] || It;
1496
+ article: Eo,
1497
+ simple: Mo,
1498
+ news: Ho,
1499
+ default: Pt,
1500
+ wall: Lo
1501
+ }[t] || Pt;
1501
1502
  return /* @__PURE__ */ o(r, { ...t === "news" ? e : j(e, "iconSize") });
1502
1503
  }
1503
- function Fo({
1504
+ function Vo({
1504
1505
  list: t = [],
1505
1506
  align: e = "top",
1506
1507
  cards: n,
@@ -1517,7 +1518,7 @@ function Fo({
1517
1518
  ...p
1518
1519
  }) {
1519
1520
  return /* @__PURE__ */ o(
1520
- ht,
1521
+ ft,
1521
1522
  {
1522
1523
  type: d,
1523
1524
  className: k("card-list py-1", l, "items-stretch"),
@@ -1526,7 +1527,7 @@ function Fo({
1526
1527
  align: e,
1527
1528
  ...p,
1528
1529
  children: n || t.map((x) => /* @__PURE__ */ o(
1529
- Uo,
1530
+ Fo,
1530
1531
  {
1531
1532
  borderColor: r,
1532
1533
  iconColor: c,
@@ -1549,7 +1550,7 @@ function Fo({
1549
1550
  }
1550
1551
  );
1551
1552
  }
1552
- const Vo = [
1553
+ const Go = [
1553
1554
  "align",
1554
1555
  "cards",
1555
1556
  "list",
@@ -1560,7 +1561,7 @@ const Vo = [
1560
1561
  "iconColor",
1561
1562
  "type",
1562
1563
  "textAlign"
1563
- ], Go = $(D)`
1564
+ ], Do = $(J)`
1564
1565
  a .card {
1565
1566
  color: #404040;
1566
1567
  cursor: pointer;
@@ -1576,14 +1577,14 @@ const Vo = [
1576
1577
  color: #404040;
1577
1578
  }
1578
1579
  `;
1579
- function Do({ className: t, ...e }) {
1580
- const [n, r] = N(e, G), [i, s] = N(r, Vo);
1581
- return /* @__PURE__ */ _(Go, { className: k("section--card-list", t), type: e.type, ...s, children: [
1582
- Object.keys(n).length > 0 && /* @__PURE__ */ o(V, { center: !0, ...n, className: "mb-[2.5vw]" }),
1583
- /* @__PURE__ */ o(Fo, { ...i, dark: !!e.dark })
1580
+ function Jo({ className: t, ...e }) {
1581
+ const [n, r] = N(e, D), [i, s] = N(r, Go);
1582
+ return /* @__PURE__ */ _(Do, { className: k("section--card-list", t), type: e.type, ...s, children: [
1583
+ Object.keys(n).length > 0 && /* @__PURE__ */ o(G, { center: !0, ...n, className: "mb-[2.5vw]" }),
1584
+ /* @__PURE__ */ o(Vo, { ...i, dark: !!e.dark })
1584
1585
  ] });
1585
1586
  }
1586
- const Jo = $(Do)`
1587
+ const qo = $(Jo)`
1587
1588
  .card__description {
1588
1589
  white-space: pre-wrap;
1589
1590
  }
@@ -1599,8 +1600,8 @@ const Jo = $(Do)`
1599
1600
  background: inherit !important;
1600
1601
  }
1601
1602
  `;
1602
- function qo({ section: t, ...e }) {
1603
- const [{ editing: n }, r] = N(e, J), i = C(() => {
1603
+ function Ko({ section: t, ...e }) {
1604
+ const [{ editing: n }, r] = N(e, q), i = C(() => {
1604
1605
  var s;
1605
1606
  return {
1606
1607
  ...j(r, ["listBorder", "list", "iconSize", "imageSize"]),
@@ -1609,7 +1610,7 @@ function qo({ section: t, ...e }) {
1609
1610
  return {
1610
1611
  ...j(a, "icon", "iconColor"),
1611
1612
  image: ["news", "simple", "default"].includes(r.type) && a.icon ? a.icon : a.image,
1612
- actions: (l = (c = a.actions) == null ? void 0 : c.map) == null ? void 0 : l.call(c, (d) => /* @__PURE__ */ o(ne, { ...d, editing: n }, d.id)),
1613
+ actions: (l = (c = a.actions) == null ? void 0 : c.map) == null ? void 0 : l.call(c, (d) => /* @__PURE__ */ o(re, { ...d, editing: n }, d.id)),
1613
1614
  border: r.listBorder,
1614
1615
  iconSize: r.iconSize,
1615
1616
  imageSize: r.imageSize,
@@ -1618,9 +1619,9 @@ function qo({ section: t, ...e }) {
1618
1619
  })
1619
1620
  };
1620
1621
  }, [r]);
1621
- return /* @__PURE__ */ o(Jo, { style: n ? { pointerEvents: "none" } : {}, ...i });
1622
+ return /* @__PURE__ */ o(qo, { style: n ? { pointerEvents: "none" } : {}, ...i });
1622
1623
  }
1623
- function Ko({
1624
+ function Xo({
1624
1625
  properties: t,
1625
1626
  section: e,
1626
1627
  locale: n,
@@ -1628,7 +1629,7 @@ function Ko({
1628
1629
  }) {
1629
1630
  var i;
1630
1631
  return (i = e == null ? void 0 : e.config) != null && i.componentId ? /* @__PURE__ */ o(
1631
- Xe,
1632
+ Ye,
1632
1633
  {
1633
1634
  instanceId: e.id,
1634
1635
  componentId: e.config.componentId,
@@ -1641,7 +1642,7 @@ function Ko({
1641
1642
  }
1642
1643
  ) : /* @__PURE__ */ o(b, { textAlign: "center", py: 2, children: /* @__PURE__ */ o(B, { variant: "caption", color: "text.secondary", children: "Please select component to render" }) });
1643
1644
  }
1644
- function Xo({
1645
+ function Yo({
1645
1646
  src: t,
1646
1647
  dataId: e,
1647
1648
  isEdit: n = !1,
@@ -1650,7 +1651,7 @@ function Xo({
1650
1651
  }
1651
1652
  }) {
1652
1653
  return /* @__PURE__ */ o(
1653
- to,
1654
+ eo,
1654
1655
  {
1655
1656
  isEdit: n,
1656
1657
  embedId: e,
@@ -1662,12 +1663,12 @@ function Xo({
1662
1663
  }
1663
1664
  );
1664
1665
  }
1665
- function Yo({ dataId: t, src: e, actions: n, center: r, onLoad: i, ...s }) {
1666
- const [a, c] = N(s, G);
1667
- return /* @__PURE__ */ _(D, { ...c, children: [
1668
- Object.keys(a).length > 0 && /* @__PURE__ */ o(V, { center: r, ...a }),
1666
+ function Qo({ dataId: t, src: e, actions: n, center: r, onLoad: i, ...s }) {
1667
+ const [a, c] = N(s, D);
1668
+ return /* @__PURE__ */ _(J, { ...c, children: [
1669
+ Object.keys(a).length > 0 && /* @__PURE__ */ o(G, { center: r, ...a }),
1669
1670
  /* @__PURE__ */ o(
1670
- Xo,
1671
+ Yo,
1671
1672
  {
1672
1673
  dataId: t,
1673
1674
  src: e,
@@ -1678,21 +1679,21 @@ function Yo({ dataId: t, src: e, actions: n, center: r, onLoad: i, ...s }) {
1678
1679
  /* @__PURE__ */ o(O, { actions: n, center: r })
1679
1680
  ] });
1680
1681
  }
1681
- function Qo({ section: t, id: e, src: n, ...r }) {
1682
- const i = `${e}-${r.locale}`, [{ editing: s }, a] = N(r, J), c = F({}), l = JSON.parse(JSON.stringify(a)), { message: d } = Ze(i, "server"), m = _e(JSON.parse(JSON.stringify(a.config) || "{}"));
1682
+ function Zo({ section: t, id: e, src: n, ...r }) {
1683
+ const i = `${e}-${r.locale}`, [{ editing: s }, a] = N(r, q), c = V({}), l = JSON.parse(JSON.stringify(a)), { message: d } = to(i, "server"), m = $e(JSON.parse(JSON.stringify(a.config) || "{}"));
1683
1684
  return z(() => {
1684
1685
  d && d.onInit(() => m.current);
1685
1686
  }, [d]), z(() => {
1686
1687
  const u = JSON.parse(JSON.stringify(a.config) || "{}");
1687
- Ut(c.current, u) || (c.current = u, d == null || d.send("config-set", u));
1688
- }, [d, a.config]), n ? /* @__PURE__ */ o(Yo, { ...l, dataId: i, src: n, style: s ? { pointerEvents: "none" } : {} }) : /* @__PURE__ */ o(Zo, { children: 'Please set the "src" attribute for this block' });
1688
+ Ft(c.current, u) || (c.current = u, d == null || d.send("config-set", u));
1689
+ }, [d, a.config]), n ? /* @__PURE__ */ o(Qo, { ...l, dataId: i, src: n, style: s ? { pointerEvents: "none" } : {} }) : /* @__PURE__ */ o(tn, { children: 'Please set the "src" attribute for this block' });
1689
1690
  }
1690
- const Zo = $("div")`
1691
+ const tn = $("div")`
1691
1692
  user-select: none;
1692
1693
  color: #999;
1693
1694
  padding: 8px;
1694
1695
  height: 200px;
1695
- `, tn = [
1696
+ `, en = [
1696
1697
  /youtu\.be\/([^#&?]{11})/,
1697
1698
  // youtu.be/<id>
1698
1699
  /\?v=([^#&?]{11})/,
@@ -1704,32 +1705,32 @@ const Zo = $("div")`
1704
1705
  /\/v\/([^#&?]{11})/
1705
1706
  // /v/<id>
1706
1707
  ];
1707
- function en(t) {
1708
+ function on(t) {
1708
1709
  var e;
1709
1710
  if (/youtu\.?be/.test(t))
1710
- for (const n of tn) {
1711
+ for (const n of en) {
1711
1712
  const r = (e = n.exec(t)) == null ? void 0 : e[1];
1712
1713
  if (r)
1713
1714
  return r;
1714
1715
  }
1715
1716
  }
1716
- function on(t) {
1717
- const e = en(t);
1717
+ function nn(t) {
1718
+ const e = on(t);
1718
1719
  if (e)
1719
1720
  return `https://youtube.com/embed/${e}`;
1720
1721
  }
1721
- function nn({ src: t }) {
1722
+ function rn({ src: t }) {
1722
1723
  return z(() => {
1723
1724
  import("@lottiefiles/lottie-player");
1724
1725
  }, []), /* @__PURE__ */ o("lottie-player", { autoplay: !0, loop: !0, mode: "normal", src: t });
1725
1726
  }
1726
- function rn(t) {
1727
- return /* @__PURE__ */ o(b, { maxHeight: 400, overflow: "hidden auto", children: /* @__PURE__ */ o(eo, { ...t }) });
1727
+ function sn(t) {
1728
+ return /* @__PURE__ */ o(b, { maxHeight: 400, overflow: "hidden auto", children: /* @__PURE__ */ o(oo, { ...t }) });
1728
1729
  }
1729
- function sn({ url: t }) {
1730
- const e = F(null), n = 495, [r, i] = E(
1730
+ function an({ url: t }) {
1731
+ const e = V(null), n = 495, [r, i] = E(
1731
1732
  e.current ? e.current.offsetWidth * 0.5625 : n
1732
- ), s = mt(() => {
1733
+ ), s = ut(() => {
1733
1734
  const a = window.innerWidth > 990 ? 1 : window.innerWidth > 522 ? 1.2 : window.innerWidth > 400 ? 1.45 : 1.85, c = e.current ? e.current.offsetWidth * 0.5625 : n;
1734
1735
  return i(Math.floor(c * a));
1735
1736
  }, []);
@@ -1755,11 +1756,11 @@ function sn({ url: t }) {
1755
1756
  }
1756
1757
  );
1757
1758
  }
1758
- const an = $(vo)`
1759
+ const cn = $(ko)`
1759
1760
  .section__description {
1760
1761
  }
1761
1762
  `;
1762
- function cn({
1763
+ function ln({
1763
1764
  hasImage: t,
1764
1765
  fullSizeImage: e,
1765
1766
  boxed: n,
@@ -1771,12 +1772,12 @@ function cn({
1771
1772
  ...l
1772
1773
  }) {
1773
1774
  var p, x;
1774
- const [{ editing: d }, m] = N({ ...l, boxed: e ? void 0 : n }, J);
1775
- let u = ln(m.image, r, e, i, s, a);
1775
+ const [{ editing: d }, m] = N({ ...l, boxed: e ? void 0 : n }, q);
1776
+ let u = dn(m.image, r, e, i, s, a);
1776
1777
  t || (u = null);
1777
1778
  let h = null;
1778
- return m.actions && (h = (x = (p = m.actions) == null ? void 0 : p.map) == null ? void 0 : x.call(p, (y, f) => /* @__PURE__ */ o(ne, { ...y, editing: d }, f))), /* @__PURE__ */ o(
1779
- an,
1779
+ return m.actions && (h = (x = (p = m.actions) == null ? void 0 : p.map) == null ? void 0 : x.call(p, (y, f) => /* @__PURE__ */ o(re, { ...y, editing: d }, f))), /* @__PURE__ */ o(
1780
+ cn,
1780
1781
  {
1781
1782
  ...m,
1782
1783
  style: d ? { pointerEvents: "none" } : {},
@@ -1786,17 +1787,17 @@ function cn({
1786
1787
  }
1787
1788
  );
1788
1789
  }
1789
- function ln(t, e, n, r, i, s) {
1790
+ function dn(t, e, n, r, i, s) {
1790
1791
  if (t) {
1791
1792
  if (t.endsWith(".json"))
1792
- return /* @__PURE__ */ o(nn, { src: t });
1793
+ return /* @__PURE__ */ o(rn, { src: t });
1793
1794
  if (t.indexOf("twitter.com") !== -1)
1794
- return /* @__PURE__ */ o(rn, { sourceType: "url", url: t });
1795
- const a = on(t);
1795
+ return /* @__PURE__ */ o(sn, { sourceType: "url", url: t });
1796
+ const a = nn(t);
1796
1797
  if (a)
1797
- return /* @__PURE__ */ o(sn, { url: a });
1798
+ return /* @__PURE__ */ o(an, { url: a });
1798
1799
  const { naturalWidth: c, naturalHeight: l, filename: d } = r || {};
1799
- if (it(t))
1800
+ if (st(t))
1800
1801
  return /* @__PURE__ */ o(
1801
1802
  "video",
1802
1803
  {
@@ -1813,13 +1814,13 @@ function ln(t, e, n, r, i, s) {
1813
1814
  height: "100%"
1814
1815
  },
1815
1816
  poster: T(I(e), n ? 1200 : 540, i),
1816
- children: /* @__PURE__ */ o("source", { src: I(t), type: go(t) })
1817
+ children: /* @__PURE__ */ o("source", { src: I(t), type: xo(t) })
1817
1818
  },
1818
1819
  t
1819
1820
  );
1820
1821
  const m = i === "quality" ? 1 : 0.6;
1821
1822
  return /* @__PURE__ */ o(
1822
- qt,
1823
+ Kt,
1823
1824
  {
1824
1825
  src: I(t),
1825
1826
  sizesAttr: {
@@ -1841,30 +1842,30 @@ function ln(t, e, n, r, i, s) {
1841
1842
  }
1842
1843
  return null;
1843
1844
  }
1844
- const dn = ["production", "draft"];
1845
- function mn({ mode: t, version: e } = {}) {
1845
+ const mn = ["production", "draft"];
1846
+ function un({ mode: t, version: e } = {}) {
1846
1847
  const n = e && typeof e == "number" ? { mode: t, version: e } : { mode: t };
1847
- return ct.get(`/api/${lt()}/pages`, { params: n }).then((r) => r.data);
1848
+ return lt.get(`/api/${dt()}/pages`, { params: n }).then((r) => r.data);
1848
1849
  }
1849
- function Nr({ mode: t, pages: e }) {
1850
- return ct.post(`/api/${lt()}/pages/publish`, { mode: t, pages: e }).then((n) => n.data);
1850
+ function Pr({ mode: t, pages: e }) {
1851
+ return lt.post(`/api/${dt()}/pages/publish`, { mode: t, pages: e }).then((n) => n.data);
1851
1852
  }
1852
- function un({
1853
+ function pn({
1853
1854
  locale: t,
1854
1855
  sort: e,
1855
1856
  page: n,
1856
1857
  limit: r,
1857
1858
  mode: i
1858
1859
  } = {}) {
1859
- return ct.get(`/api/${lt()}/pages/toc`, { params: { locale: t, sort: e, page: n, limit: r, mode: i } }).then((s) => s.data);
1860
+ return lt.get(`/api/${dt()}/pages/toc`, { params: { locale: t, sort: e, page: n, limit: r, mode: i } }).then((s) => s.data);
1860
1861
  }
1861
- const jt = 20;
1862
- function pn({ style: t, sort: e, section: n, ...r }) {
1863
- const [{ editing: i, locale: s }, a] = N(r, J), [c, l] = N(a, G), [d, m] = E(), u = F(!1), h = He(), p = Ee(), x = mt(async () => {
1862
+ const Bt = 20;
1863
+ function hn({ style: t, sort: e, section: n, ...r }) {
1864
+ const [{ editing: i, locale: s }, a] = N(r, q), [c, l] = N(a, D), [d, m] = E(), u = V(!1), h = Ae(), p = ze(), x = ut(async () => {
1864
1865
  if (!u.current) {
1865
1866
  u.current = !0, h();
1866
1867
  try {
1867
- const y = d ? Math.floor(d.list.length / jt) + 1 : 1, { list: f, total: w } = await un({ locale: s, sort: e, page: y, limit: jt });
1868
+ const y = d ? Math.floor(d.list.length / Bt) + 1 : 1, { list: f, total: w } = await pn({ locale: s, sort: e, page: y, limit: Bt });
1868
1869
  m((g) => ({
1869
1870
  list: ((g == null ? void 0 : g.list) ?? []).concat(f),
1870
1871
  total: w
@@ -1874,20 +1875,20 @@ function pn({ style: t, sort: e, section: n, ...r }) {
1874
1875
  }
1875
1876
  }
1876
1877
  }, [d, s, e, h]);
1877
- return Ae(() => {
1878
+ return Me(() => {
1878
1879
  x();
1879
- }), /* @__PURE__ */ _(D, { ...l, sx: i ? { pointerEvents: "none" } : {}, children: [
1880
- Object.keys(c).length > 0 && /* @__PURE__ */ o(V, { ...c }),
1881
- d ? /* @__PURE__ */ _(U, { children: [
1882
- /* @__PURE__ */ o(vt, { container: !0, spacing: 2, justifyContent: "center", children: d == null ? void 0 : d.list.map((y) => /* @__PURE__ */ o(vt, { item: !0, xs: 12, sm: t === "card" ? 6 : 12, md: t === "card" ? 3 : 12, children: /* @__PURE__ */ _(
1883
- hn,
1880
+ }), /* @__PURE__ */ _(J, { ...l, sx: i ? { pointerEvents: "none" } : {}, children: [
1881
+ Object.keys(c).length > 0 && /* @__PURE__ */ o(G, { ...c }),
1882
+ d ? /* @__PURE__ */ _(F, { children: [
1883
+ /* @__PURE__ */ o(kt, { container: !0, spacing: 2, justifyContent: "center", children: d == null ? void 0 : d.list.map((y) => /* @__PURE__ */ o(kt, { item: !0, xs: 12, sm: t === "card" ? 6 : 12, md: t === "card" ? 3 : 12, children: /* @__PURE__ */ _(
1884
+ fn,
1884
1885
  {
1885
1886
  elevation: 0,
1886
1887
  className: k(t === "card" && "style-card"),
1887
1888
  onClick: i ? void 0 : () => p(y.slug),
1888
1889
  children: [
1889
1890
  !!y.image && /* @__PURE__ */ o(
1890
- we,
1891
+ ve,
1891
1892
  {
1892
1893
  component: "img",
1893
1894
  alt: "",
@@ -1895,24 +1896,24 @@ function pn({ style: t, sort: e, section: n, ...r }) {
1895
1896
  loading: "lazy"
1896
1897
  }
1897
1898
  ),
1898
- /* @__PURE__ */ _(ve, { children: [
1899
- /* @__PURE__ */ o(B, { variant: "h6", component: "div", className: Bt, children: y.title || y.id }),
1900
- /* @__PURE__ */ o(B, { variant: "body2", className: Bt, children: y.description })
1899
+ /* @__PURE__ */ _(ke, { children: [
1900
+ /* @__PURE__ */ o(B, { variant: "h6", component: "div", className: Rt, children: y.title || y.id }),
1901
+ /* @__PURE__ */ o(B, { variant: "body2", className: Rt, children: y.description })
1901
1902
  ] })
1902
1903
  ]
1903
1904
  }
1904
1905
  ) }, y.id)) }),
1905
- /* @__PURE__ */ o(b, { textAlign: "center", mt: 2, children: d.total > d.list.length ? /* @__PURE__ */ o(M, { variant: "outlined", color: "secondary", onClick: x, loading: u.current, children: "More" }) : /* @__PURE__ */ o(M, { variant: "outlined", color: "secondary", disabled: !0, children: "No More" }) })
1906
- ] }) : /* @__PURE__ */ o(b, { p: 2, textAlign: "center", children: /* @__PURE__ */ o(Mt, { size: 24 }) })
1906
+ /* @__PURE__ */ o(b, { textAlign: "center", mt: 2, children: d.total > d.list.length ? /* @__PURE__ */ o(U, { variant: "outlined", color: "secondary", onClick: x, loading: u.current, children: "More" }) : /* @__PURE__ */ o(U, { variant: "outlined", color: "secondary", disabled: !0, children: "No More" }) })
1907
+ ] }) : /* @__PURE__ */ o(b, { p: 2, textAlign: "center", children: /* @__PURE__ */ o(Ut, { size: 24 }) })
1907
1908
  ] });
1908
1909
  }
1909
- const Bt = ot`
1910
+ const Rt = nt`
1910
1911
  display: -webkit-box;
1911
1912
  -webkit-box-orient: vertical;
1912
1913
  -webkit-line-clamp: 2;
1913
1914
  overflow: hidden;
1914
1915
  text-overflow: ellipsis;
1915
- `, hn = $(ye)`
1916
+ `, fn = $(we)`
1916
1917
  border: 1px solid #e0e0e0;
1917
1918
  background-color: transparent;
1918
1919
  cursor: pointer;
@@ -1932,40 +1933,40 @@ const Bt = ot`
1932
1933
  max-height: 50vw;
1933
1934
  }
1934
1935
  }
1935
- `, fn = {
1936
- iframe: Qo,
1937
- section: cn,
1938
- "section-card-list": qo,
1939
- toc: pn,
1940
- "ai-runtime": $o,
1941
- "custom-component": Ko
1936
+ `, gn = {
1937
+ iframe: Zo,
1938
+ section: ln,
1939
+ "section-card-list": Ko,
1940
+ toc: hn,
1941
+ "ai-runtime": So,
1942
+ "custom-component": Xo
1942
1943
  };
1943
- function gn({ id: t, type: e, mode: n, config: r, section: i, ...s }) {
1944
- const a = fn[e], c = C(() => {
1944
+ function xn({ id: t, type: e, mode: n, config: r, section: i, ...s }) {
1945
+ const a = gn[e], c = C(() => {
1945
1946
  const { sx: m, height: u, ...h } = r;
1946
1947
  return h;
1947
1948
  }, [r]), l = C(() => {
1948
1949
  const m = { sx: r.sx };
1949
1950
  return e !== "custom-component" && (m.height = r.height), m;
1950
1951
  }, [r.sx, r.height, e]), d = a && /* @__PURE__ */ o(a, { mode: n, ...c, id: t, section: i });
1951
- return /* @__PURE__ */ o(ko, { ...s, ...l, children: d });
1952
+ return /* @__PURE__ */ o(_o, { ...s, ...l, children: d });
1952
1953
  }
1953
- const xn = $(oo, { shouldForwardProp: (t) => !!t })`
1954
+ const bn = $(no, { shouldForwardProp: (t) => !!t })`
1954
1955
  & > div > .MuiContainer-root {
1955
1956
  max-width: unset;
1956
1957
  }
1957
1958
  `;
1958
- function bn({ meta: t, ...e }) {
1959
- const n = pt();
1960
- return /* @__PURE__ */ o(xn, { ...e, meta: t, theme: n || {} });
1961
- }
1962
- function yn(t) {
1963
- return /* @__PURE__ */ o(b, { display: "flex", flex: 1, height: "100%", alignItems: "center", justifyContent: "center", ...t, children: /* @__PURE__ */ o(Mt, { size: 30 }) });
1959
+ function yn({ meta: t, ...e }) {
1960
+ const n = ht();
1961
+ return /* @__PURE__ */ o(bn, { ...e, meta: t, theme: n || {} });
1964
1962
  }
1965
1963
  function wn(t) {
1966
- return /* @__PURE__ */ o(vn, { ...t });
1964
+ return /* @__PURE__ */ o(b, { display: "flex", flex: 1, height: "100%", alignItems: "center", justifyContent: "center", ...t, children: /* @__PURE__ */ o(Ut, { size: 30 }) });
1967
1965
  }
1968
- const vn = $(b)`
1966
+ function vn(t) {
1967
+ return /* @__PURE__ */ o(kn, { ...t });
1968
+ }
1969
+ const kn = $(b)`
1969
1970
  position: fixed;
1970
1971
  left: 0;
1971
1972
  top: 0;
@@ -1976,8 +1977,8 @@ const vn = $(b)`
1976
1977
  opacity: 0.7;
1977
1978
  transform: translateX(-23%) translateY(70%) rotate(-45deg);
1978
1979
  pointer-events: none;
1979
- `, kn = (t) => new Promise((e, n) => {
1980
- (t == null ? void 0 : t.length) > 0 ? no.load({
1980
+ `, _n = (t) => new Promise((e, n) => {
1981
+ (t == null ? void 0 : t.length) > 0 ? ro.load({
1981
1982
  google: {
1982
1983
  families: t
1983
1984
  },
@@ -1988,16 +1989,16 @@ const vn = $(b)`
1988
1989
  n(new Error("load font fail"));
1989
1990
  }
1990
1991
  }) : e("success");
1991
- }), Rt = `Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1992
- sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`, Tt = {};
1993
- function _n({
1992
+ }), Tt = `Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1993
+ sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`, Et = {};
1994
+ function $n({
1994
1995
  titleFontFamily: t,
1995
1996
  descriptionFontFamily: e
1996
1997
  }) {
1997
1998
  const n = async (r) => {
1998
1999
  if (r && !document.querySelectorAll(`link[href*="${r}" i]`).length)
1999
2000
  try {
2000
- Tt[r] || (await kn([r]), Tt[r] = !0);
2001
+ Et[r] || (await _n([r]), Et[r] = !0);
2001
2002
  } catch (i) {
2002
2003
  console.error(i);
2003
2004
  }
@@ -2005,76 +2006,76 @@ function _n({
2005
2006
  return z(() => {
2006
2007
  t && n(t), e && n(e);
2007
2008
  }, [t, e]), /* @__PURE__ */ o(
2008
- Lt,
2009
+ Ot,
2009
2010
  {
2010
- styles: Ot`
2011
+ styles: Ht`
2011
2012
  #app {
2012
2013
  .page-kit-section__title {
2013
- font-family: ${JSON.stringify(t)}, ${Rt};
2014
+ font-family: ${JSON.stringify(t)}, ${Tt};
2014
2015
  }
2015
2016
 
2016
2017
  .page-kit-section__description {
2017
- font-family: ${JSON.stringify(e)}, ${Rt};
2018
+ font-family: ${JSON.stringify(e)}, ${Tt};
2018
2019
  }
2019
2020
  }
2020
2021
  `
2021
2022
  }
2022
2023
  );
2023
2024
  }
2024
- const { SessionProvider: Ir, SessionContext: $n, SessionConsumer: Pr, withSession: jr } = ro();
2025
- function gt() {
2026
- return Gt($n);
2025
+ const { SessionProvider: jr, SessionContext: Sn, SessionConsumer: Br, withSession: Rr } = io();
2026
+ function xt() {
2027
+ return Dt(Sn);
2027
2028
  }
2028
- function Sn(...t) {
2029
+ function Cn(...t) {
2029
2030
  var n;
2030
- const { session: e } = gt();
2031
+ const { session: e } = xt();
2031
2032
  return t.includes((n = e.user) == null ? void 0 : n.role);
2032
2033
  }
2033
- function Cn(...t) {
2034
+ function Nn(...t) {
2034
2035
  var r;
2035
- const { session: e } = gt(), n = Sn(...t);
2036
+ const { session: e } = xt(), n = Cn(...t);
2036
2037
  return ((r = window.blocklet) == null ? void 0 : r.tenantMode) === "multiple" ? !!e.user : n;
2037
2038
  }
2038
- function Nn(t) {
2039
+ function In(t) {
2039
2040
  return t != null;
2040
2041
  }
2041
- function Br() {
2042
- const [t] = ze(), { session: e } = gt(), n = Cn("owner", "admin", "pagesEditor", "member"), r = C(() => {
2042
+ function Tr() {
2043
+ const [t] = We(), { session: e } = xt(), n = Nn("owner", "admin", "pagesEditor", "member"), r = C(() => {
2043
2044
  const s = t.get("mode");
2044
- return dn.includes(s) ? s : "production";
2045
+ return mn.includes(s) ? s : "production";
2045
2046
  }, [t]), i = r === "production" ? r : e.user ? n ? r : "production" : null;
2046
- return i ? /* @__PURE__ */ o(In, { mode: i }) : null;
2047
+ return i ? /* @__PURE__ */ o(Pn, { mode: i }) : null;
2047
2048
  }
2048
- function In({ mode: t }) {
2049
+ function Pn({ mode: t }) {
2049
2050
  if (t !== "draft") {
2050
2051
  const e = window.__PAGE_STATE__;
2051
- return e ? /* @__PURE__ */ o(et, { mode: t, state: e }) : /* @__PURE__ */ o(jn, { mode: t, children: ({ state: n }) => /* @__PURE__ */ o(et, { mode: t, state: n }) });
2052
+ return e ? /* @__PURE__ */ o(ot, { mode: t, state: e }) : /* @__PURE__ */ o(Bn, { mode: t, children: ({ state: n }) => /* @__PURE__ */ o(ot, { mode: t, state: n }) });
2052
2053
  }
2053
- return /* @__PURE__ */ o(Pn, { children: ({ state: e }) => /* @__PURE__ */ o(et, { mode: t, state: e }) });
2054
+ return /* @__PURE__ */ o(jn, { children: ({ state: e }) => /* @__PURE__ */ o(ot, { mode: t, state: e }) });
2054
2055
  }
2055
- const Pn = Dt(() => import("./draft-data-vlK5oTGT.js"));
2056
- function jn({
2056
+ const jn = Jt(() => import("./draft-data-rHmtmftB.js"));
2057
+ function Bn({
2057
2058
  mode: t,
2058
2059
  children: e
2059
2060
  }) {
2060
- const n = document.querySelector('meta[property="pages:version"]'), r = n == null ? void 0 : n.content, i = de(), s = C(() => {
2061
+ const n = document.querySelector('meta[property="pages:version"]'), r = n == null ? void 0 : n.content, i = me(), s = C(() => {
2061
2062
  if (r === "{{pagesPublishedAt}}") {
2062
- const l = localStorage.getItem(me(i ?? ""));
2063
+ const l = localStorage.getItem(ue(i ?? ""));
2063
2064
  return Number(l) ? Number(l) : (/* @__PURE__ */ new Date()).getTime();
2064
2065
  }
2065
2066
  return Number(r);
2066
- }, [r]), { loading: a, value: c } = Jt(() => mn({ mode: t, version: s }), [t, s]);
2067
- return a ? /* @__PURE__ */ o(yn, {}) : c ? e({ state: c }) : null;
2067
+ }, [r]), { loading: a, value: c } = qt(() => un({ mode: t, version: s }), [t, s]);
2068
+ return a ? /* @__PURE__ */ o(wn, {}) : c ? e({ state: c }) : null;
2068
2069
  }
2069
- function et({ mode: t, state: e }) {
2070
+ function ot({ mode: t, state: e }) {
2070
2071
  var x, y, f, w;
2071
- const { t: n, locale: r } = zt(), {
2072
+ const { t: n, locale: r } = Wt(), {
2072
2073
  pageIds: i,
2073
2074
  pages: s,
2074
2075
  supportedLocales: a,
2075
2076
  config: { defaultLocale: c },
2076
2077
  resources: l
2077
- } = e, d = Et(e), m = C(
2078
+ } = e, d = zt(e), m = C(
2078
2079
  () => a != null && a.some((g) => g.locale === r) ? r : void 0,
2079
2080
  [r, a]
2080
2081
  ), u = Object.values(s).find((g) => (g == null ? void 0 : g.slug) === "/") ? void 0 : Object.values(s)[0], h = C(
@@ -2082,24 +2083,24 @@ function et({ mode: t, state: e }) {
2082
2083
  const v = s[g];
2083
2084
  return v && {
2084
2085
  id: v.id,
2085
- path: Q("/", m || "", v.slug, t !== "production" ? `?mode=${t}` : "")
2086
+ path: Z("/", m || "", v.slug, t !== "production" ? `?mode=${t}` : "")
2086
2087
  };
2087
- }).filter(Nn),
2088
+ }).filter(In),
2088
2089
  [i, s, m, t]
2089
2090
  ), p = ([...g]) => (t !== "production" && g.unshift(
2090
- /* @__PURE__ */ o(je, { fallback: /* @__PURE__ */ o("div", {}), children: /* @__PURE__ */ o(Bn, { mode: "production", state: e }) })
2091
+ /* @__PURE__ */ o(Be, { fallback: /* @__PURE__ */ o("div", {}), children: /* @__PURE__ */ o(Rn, { mode: "production", state: e }) })
2091
2092
  ), g);
2092
- return /* @__PURE__ */ _(So, { value: { pages: h }, children: [
2093
- /* @__PURE__ */ _(We, { children: [
2094
- u && /* @__PURE__ */ o(Y, { index: !0, element: /* @__PURE__ */ o(Le, { to: Q("/", m || "", u.slug) }) }),
2093
+ return /* @__PURE__ */ _(Co, { value: { pages: h }, children: [
2094
+ /* @__PURE__ */ _(Le, { children: [
2095
+ u && /* @__PURE__ */ o(Q, { index: !0, element: /* @__PURE__ */ o(Oe, { to: Z("/", m || "", u.slug) }) }),
2095
2096
  i.map((g) => {
2096
2097
  const v = s[g];
2097
2098
  return v ? /* @__PURE__ */ o(
2098
- Y,
2099
+ Q,
2099
2100
  {
2100
- path: Q(":projectIdOrSlug?", v.slug),
2101
+ path: Z(":projectIdOrSlug?", v.slug),
2101
2102
  element: /* @__PURE__ */ o(
2102
- at,
2103
+ ct,
2103
2104
  {
2104
2105
  mode: t,
2105
2106
  components: d,
@@ -2114,11 +2115,11 @@ function et({ mode: t, state: e }) {
2114
2115
  ) : null;
2115
2116
  }),
2116
2117
  l.pages && Object.values(l.pages).map(({ blockletId: g, page: v }) => /* @__PURE__ */ o(
2117
- Y,
2118
+ Q,
2118
2119
  {
2119
- path: Q("/", `@${g}`, v.slug),
2120
+ path: Z("/", `@${g}`, v.slug),
2120
2121
  element: /* @__PURE__ */ o(
2121
- at,
2122
+ ct,
2122
2123
  {
2123
2124
  mode: t,
2124
2125
  components: d,
@@ -2132,16 +2133,16 @@ function et({ mode: t, state: e }) {
2132
2133
  v.id
2133
2134
  )),
2134
2135
  /* @__PURE__ */ o(
2135
- Y,
2136
+ Q,
2136
2137
  {
2137
2138
  path: "*",
2138
- element: /* @__PURE__ */ o(b, { width: "100vw", height: "100vh", display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ o(Wt, { style: { background: "inherit" }, status: 404, extra: /* @__PURE__ */ o(ie, { href: "/", children: n("common.back") }) }) })
2139
+ element: /* @__PURE__ */ o(b, { width: "100vw", height: "100vh", display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ o(Lt, { status: 404, extra: /* @__PURE__ */ o(se, { href: "/", children: n("common.back") }) }) })
2139
2140
  }
2140
2141
  )
2141
2142
  ] }),
2142
- t !== "production" && /* @__PURE__ */ o(wn, { sx: { bgcolor: "info.light" }, children: t }),
2143
+ t !== "production" && /* @__PURE__ */ o(vn, { sx: { bgcolor: "info.light" }, children: t }),
2143
2144
  /* @__PURE__ */ o(
2144
- _n,
2145
+ $n,
2145
2146
  {
2146
2147
  titleFontFamily: (y = (x = e.config) == null ? void 0 : x.fontFamily) == null ? void 0 : y.title,
2147
2148
  descriptionFontFamily: (w = (f = e.config) == null ? void 0 : f.fontFamily) == null ? void 0 : w.description
@@ -2149,13 +2150,13 @@ function et({ mode: t, state: e }) {
2149
2150
  )
2150
2151
  ] });
2151
2152
  }
2152
- function Rr({
2153
+ function Er({
2153
2154
  mode: t,
2154
2155
  state: e,
2155
2156
  path: n,
2156
2157
  pageData: r
2157
2158
  }) {
2158
- const { t: i, locale: s } = zt(), {
2159
+ const { t: i, locale: s } = Wt(), {
2159
2160
  pages: a,
2160
2161
  supportedLocales: c,
2161
2162
  config: { defaultLocale: l },
@@ -2163,21 +2164,21 @@ function Rr({
2163
2164
  } = e, m = Object.values(a).find((f) => (f == null ? void 0 : f.slug) === n), u = Object.values(d.pages || {}).find((f) => f.page.slug === n), h = C(
2164
2165
  () => c != null && c.some((f) => f.locale === s) ? s : void 0,
2165
2166
  [s, c]
2166
- ), p = $e({
2167
+ ), p = Se({
2167
2168
  page: null
2168
2169
  });
2169
2170
  z(() => {
2170
2171
  const f = m || (u == null ? void 0 : u.page) || null;
2171
- f ? p.page = kt(f) : p.page = null;
2172
+ f ? p.page = _t(f) : p.page = null;
2172
2173
  }, [m, u]);
2173
- const x = F();
2174
+ const x = V();
2174
2175
  if (z(() => {
2175
- Ut(r, x.current) || r && p.page && (io(p.page, e, h, r), x.current = kt(r));
2176
+ Ft(r, x.current) || r && p.page && (so(p.page, e, h, r), x.current = _t(r));
2176
2177
  }, [{}]), !m && !(u != null && u.page))
2177
- return /* @__PURE__ */ o(b, { width: "100vw", height: "100vh", display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ o(Wt, { style: { background: "inherit" }, status: 404, extra: /* @__PURE__ */ o(ie, { href: "/", children: i("common.back") }) }) });
2178
- const y = Et(e);
2178
+ return /* @__PURE__ */ o(b, { width: "100vw", height: "100vh", display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ o(Lt, { style: { background: "inherit" }, status: 404, extra: /* @__PURE__ */ o(se, { href: "/", children: i("common.back") }) }) });
2179
+ const y = zt(e);
2179
2180
  return p.page ? /* @__PURE__ */ o(
2180
- at,
2181
+ ct,
2181
2182
  {
2182
2183
  mode: t,
2183
2184
  components: y,
@@ -2187,7 +2188,7 @@ function Rr({
2187
2188
  }
2188
2189
  ) : null;
2189
2190
  }
2190
- function at({
2191
+ function ct({
2191
2192
  mode: t,
2192
2193
  components: e,
2193
2194
  page: n,
@@ -2195,20 +2196,20 @@ function at({
2195
2196
  defaultLocale: i,
2196
2197
  headerAddons: s
2197
2198
  }) {
2198
- var f, w, g, v, P, H, X, xt, bt;
2199
- const a = ((f = n.locales) == null ? void 0 : f[r]) ?? ((w = n.locales) == null ? void 0 : w[i]) ?? {}, c = a.title || ((g = window.blocklet) == null ? void 0 : g.appName), l = a.description || ((v = window.blocklet) == null ? void 0 : v.appDescription), d = T(I(a.image), 540), { logo: m, brand: u, description: h, ...p } = ue(), x = C(
2199
+ var f, w, g, v, P, H, Y, bt, yt;
2200
+ const a = ((f = n.locales) == null ? void 0 : f[r]) ?? ((w = n.locales) == null ? void 0 : w[i]) ?? {}, c = a.title || ((g = window.blocklet) == null ? void 0 : g.appName), l = a.description || ((v = window.blocklet) == null ? void 0 : v.appDescription), d = T(I(a.image), 540), { logo: m, brand: u, description: h, ...p } = pe(), x = C(
2200
2201
  () => (L) => {
2201
2202
  var A;
2202
2203
  let S = (s == null ? void 0 : s(L)) ?? L;
2203
2204
  return S = ((A = p.addons) == null ? void 0 : A.call(p, S)) ?? S, S;
2204
2205
  },
2205
2206
  [p.addons, s]
2206
- ), y = (P = a.header) != null && P.translucent ? Tn : re;
2207
- return /* @__PURE__ */ _(U, { children: [
2207
+ ), y = (P = a.header) != null && P.translucent ? En : ie;
2208
+ return /* @__PURE__ */ _(F, { children: [
2208
2209
  !!a.backgroundColor && /* @__PURE__ */ o(
2209
- Lt,
2210
+ Ot,
2210
2211
  {
2211
- styles: Ot`
2212
+ styles: Ht`
2212
2213
  body {
2213
2214
  background-color: ${a.backgroundColor} !important;
2214
2215
  }
@@ -2219,17 +2220,17 @@ function at({
2219
2220
  y,
2220
2221
  {
2221
2222
  hideNavMenu: !!((H = a.header) != null && H.hideNavMenus),
2222
- translucentTextColor: (X = a.header) == null ? void 0 : X.translucentTextColor,
2223
+ translucentTextColor: (Y = a.header) == null ? void 0 : Y.translucentTextColor,
2223
2224
  ...m ? { logo: m } : {},
2224
2225
  ...u ? { brand: u } : {},
2225
2226
  ...h ? { description: h } : {},
2226
- className: k(((xt = a.header) == null ? void 0 : xt.sticky) && "sticky", "page-header"),
2227
+ className: k(((bt = a.header) == null ? void 0 : bt.sticky) && "sticky", "page-header"),
2227
2228
  maxWidth: !1,
2228
2229
  addons: x
2229
2230
  }
2230
2231
  ),
2231
- /* @__PURE__ */ o(Oe, {}),
2232
- /* @__PURE__ */ _(Be, { children: [
2232
+ /* @__PURE__ */ o(He, {}),
2233
+ /* @__PURE__ */ _(Re, { children: [
2233
2234
  /* @__PURE__ */ o("title", { children: c }),
2234
2235
  /* @__PURE__ */ o("meta", { name: "og:title", content: c }),
2235
2236
  /* @__PURE__ */ o("meta", { name: "og:description", content: l }),
@@ -2240,20 +2241,20 @@ function at({
2240
2241
  /* @__PURE__ */ o("meta", { property: "twitter:title", content: c }),
2241
2242
  /* @__PURE__ */ o("meta", { name: "description", content: l })
2242
2243
  ] }),
2243
- /* @__PURE__ */ o(dt, { flexGrow: 1, children: n.sectionIds.map((L) => {
2244
- var yt, wt;
2244
+ /* @__PURE__ */ o(mt, { flexGrow: 1, children: n.sectionIds.map((L) => {
2245
+ var wt, vt;
2245
2246
  const S = n.sections[L];
2246
2247
  if (!S || S.visibility === "hidden") return null;
2247
- const A = (yt = S.locales) == null ? void 0 : yt[r], se = ((wt = S.locales) == null ? void 0 : wt[i]) ?? {};
2248
+ const A = (wt = S.locales) == null ? void 0 : wt[r], ae = ((vt = S.locales) == null ? void 0 : vt[i]) ?? {};
2248
2249
  return /* @__PURE__ */ o(
2249
- gn,
2250
+ xn,
2250
2251
  {
2251
2252
  id: L,
2252
2253
  type: S.component,
2253
2254
  mode: t,
2254
2255
  section: S,
2255
2256
  config: {
2256
- ...Ce(A) ? se : A,
2257
+ ...Ne(A) ? ae : A,
2257
2258
  locale: r,
2258
2259
  dev: t === "draft" ? {
2259
2260
  mode: t,
@@ -2265,17 +2266,17 @@ function at({
2265
2266
  L
2266
2267
  );
2267
2268
  }) }),
2268
- !((bt = a.footer) != null && bt.hidden) && /* @__PURE__ */ o(bn, {})
2269
+ !((yt = a.footer) != null && yt.hidden) && /* @__PURE__ */ o(yn, {})
2269
2270
  ] });
2270
2271
  }
2271
- const Bn = Dt(() => import("./publish-button-BTed0K41.js")), re = Ht(pe)`
2272
+ const Rn = Jt(() => import("./publish-button-DtE5FP5v.js")), ie = At(he)`
2272
2273
  &.sticky {
2273
2274
  position: sticky;
2274
2275
  top: 0;
2275
2276
  }
2276
2277
  `;
2277
- function Rn({ logo: t }) {
2278
- const [e, n] = E(), { value: r } = Jt(() => new Promise((i) => {
2278
+ function Tn({ logo: t }) {
2279
+ const [e, n] = E(), { value: r } = qt(() => new Promise((i) => {
2279
2280
  fetch("/.well-known/service/blocklet/logo-rect").then((s) => {
2280
2281
  const a = s.headers.get("content-type");
2281
2282
  a != null && a.includes("svg") && s.text().then((c) => {
@@ -2286,7 +2287,7 @@ function Rn({ logo: t }) {
2286
2287
  if (t)
2287
2288
  return t;
2288
2289
  if (e)
2289
- return /* @__PURE__ */ o(b, { sx: { filter: "initial !important" }, dangerouslySetInnerHTML: { __html: Se.sanitize(e) } });
2290
+ return /* @__PURE__ */ o(b, { sx: { filter: "initial !important" }, dangerouslySetInnerHTML: { __html: Ce.sanitize(e) } });
2290
2291
  if (r) {
2291
2292
  const i = new URL(r);
2292
2293
  i.searchParams.set("imageFilter", "convert"), i.searchParams.set("f", "png"), i.searchParams.set("h", "80");
@@ -2295,12 +2296,12 @@ function Rn({ logo: t }) {
2295
2296
  }
2296
2297
  return null;
2297
2298
  }
2298
- function Tn({
2299
+ function En({
2299
2300
  logo: t,
2300
2301
  translucentTextColor: e,
2301
2302
  ...n
2302
2303
  }) {
2303
- const { y: r } = Me();
2304
+ const { y: r } = Ue();
2304
2305
  let i = Math.min(r / 800, 1), s = "";
2305
2306
  if (i > 0.1) {
2306
2307
  i = Math.max(i, 0.6);
@@ -2309,9 +2310,9 @@ function Tn({
2309
2310
  } else
2310
2311
  s = e || "#EEEEEE";
2311
2312
  return /* @__PURE__ */ o(
2312
- re,
2313
+ ie,
2313
2314
  {
2314
- logo: /* @__PURE__ */ o(Rn, { logo: t }),
2315
+ logo: /* @__PURE__ */ o(Tn, { logo: t }),
2315
2316
  ...n,
2316
2317
  className: k(i <= 0.7 && "reverse-color"),
2317
2318
  style: {
@@ -2342,15 +2343,15 @@ function Tn({
2342
2343
  }
2343
2344
  );
2344
2345
  }
2345
- const ie = Ht(ke)``;
2346
+ const se = At(_e)``;
2346
2347
  export {
2347
- Br as H,
2348
- yn as L,
2349
- et as P,
2350
- Tn as T,
2351
- In as a,
2352
- Rr as b,
2353
- at as c,
2354
- mn as g,
2355
- Nr as p
2348
+ Tr as H,
2349
+ wn as L,
2350
+ ot as P,
2351
+ En as T,
2352
+ Pn as a,
2353
+ Er as b,
2354
+ ct as c,
2355
+ un as g,
2356
+ Pr as p
2356
2357
  };