@blocklet/pages-kit-inner-components 0.1.1 → 0.1.3

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