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