@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.
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/locales.js +1 -1
- package/lib/cjs/resources.js +1 -1
- package/lib/cjs/setting.js +4 -4
- package/lib/cjs/site-state.js +1 -1
- package/lib/cjs/theme.js +239 -0
- package/lib/{draft-data-BR6QMafP.mjs → draft-data-Bbv-4GaF.mjs} +1 -1
- package/lib/{draft-data-DY34VJHh.js → draft-data-CgY7-dem.js} +1 -1
- package/lib/es/home.js +10 -8
- package/lib/es/locales.js +16 -4
- package/lib/es/resources.js +1 -1
- package/lib/es/setting.js +946 -821
- package/lib/es/site-state.js +1 -1
- package/lib/es/theme.js +767 -0
- package/lib/home-D7i9eFDB.js +542 -0
- package/lib/{home-eQg2nzvF.mjs → home-DSngH2He.mjs} +698 -682
- package/lib/{publish-button-CKgx9XuN.mjs → publish-button-B0t_3Z4M.mjs} +2 -2
- package/lib/{publish-button-B-kvMf2a.js → publish-button-CrxBSa6-.js} +1 -1
- package/lib/{site-state-CrZeDXXY.mjs → site-state-BcfhbQn3.mjs} +304 -294
- package/lib/site-state-kBaXBQhY.js +1 -0
- package/lib/state-BQClQU2N.js +1 -0
- package/lib/state-C0vjPuun.mjs +407 -0
- package/package.json +26 -22
- package/lib/home-DhKwQuXD.js +0 -542
- package/lib/site-state-Ur6wK5g3.js +0 -1
- package/lib/state-BfVA6vd8.mjs +0 -378
- package/lib/state-C6F-M3XT.js +0 -1
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { a as R, g as N, i as
|
|
3
|
-
import { useLocaleContext as
|
|
4
|
-
import
|
|
5
|
-
import { useHeaderState as
|
|
6
|
-
import
|
|
7
|
-
import { cx as k, css as
|
|
8
|
-
import { Global as
|
|
9
|
-
import
|
|
10
|
-
import { Box as b, Tooltip as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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
|
|
20
|
-
import { deepmerge as
|
|
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
|
|
23
|
-
import { Icon as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { LoadingButton as
|
|
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
|
|
29
|
-
import
|
|
30
|
-
import { ResponsiveImage as
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
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
|
|
39
|
-
import { useMessage as
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
|
|
47
|
-
|
|
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 ===
|
|
51
|
+
(m) => m.id === i || m.name === i
|
|
52
52
|
);
|
|
53
|
-
if (a)
|
|
54
|
-
if (a.locales = a.locales || {}, a.locales[
|
|
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[
|
|
61
|
+
a.locales[o].properties = a.locales[o].properties || {}, Object.entries(s || {}).forEach(([p, x]) => {
|
|
62
62
|
var f, w;
|
|
63
|
-
const
|
|
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
|
-
|
|
68
|
-
value:
|
|
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[
|
|
73
|
-
...a.locales[
|
|
72
|
+
a.locales[o] = {
|
|
73
|
+
...a.locales[o],
|
|
74
74
|
...s || {}
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
const [
|
|
78
|
+
const ln = Ie(({ onClick: t, ...e }, o) => {
|
|
79
|
+
const [r, i] = T(!1), s = mt(
|
|
80
80
|
async (a) => {
|
|
81
81
|
try {
|
|
82
|
-
|
|
82
|
+
i(!0), await (t == null ? void 0 : t(a));
|
|
83
83
|
} finally {
|
|
84
|
-
|
|
84
|
+
i(!1);
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
[t]
|
|
88
88
|
);
|
|
89
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ n(Ke, { ref: o, ...e, loading: e.loading || r, onClick: s });
|
|
90
90
|
});
|
|
91
|
-
function
|
|
91
|
+
function dn({
|
|
92
92
|
tip: t,
|
|
93
93
|
tipSucceed: e,
|
|
94
|
-
title:
|
|
95
|
-
titleSucceed:
|
|
96
|
-
icon:
|
|
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 =
|
|
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
|
-
},
|
|
106
|
+
}, y = () => {
|
|
107
107
|
clearTimeout(p.current);
|
|
108
|
-
}, f = d ? s :
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
|
|
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__ */
|
|
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 ?
|
|
123
|
+
children: d ? r : o
|
|
124
124
|
}
|
|
125
125
|
) }) });
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
|
|
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: [
|
|
131
|
+
remarkPlugins: [Je],
|
|
132
132
|
components: {
|
|
133
|
-
pre:
|
|
134
|
-
code: ({ node: e, inline:
|
|
135
|
-
if (!
|
|
136
|
-
const a = /language-(\w+)/.exec(
|
|
137
|
-
return
|
|
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:
|
|
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
|
|
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
|
|
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__ */
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
|
|
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__ */
|
|
238
|
-
titleSucceed: /* @__PURE__ */
|
|
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:
|
|
252
|
-
return t && (t != null && t.length) ? /* @__PURE__ */
|
|
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 ||
|
|
259
|
-
!e &&
|
|
260
|
-
!e &&
|
|
261
|
-
|
|
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
|
|
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[
|
|
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
|
|
329
|
+
function V({
|
|
330
330
|
title: t,
|
|
331
331
|
description: e,
|
|
332
|
-
descriptionMarkdown:
|
|
333
|
-
actions:
|
|
334
|
-
className:
|
|
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:
|
|
345
|
-
...
|
|
344
|
+
descriptionAppearance: x,
|
|
345
|
+
...y
|
|
346
346
|
}) {
|
|
347
|
-
if (!t && !e && !
|
|
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__ */ _(
|
|
357
|
-
a && /* @__PURE__ */
|
|
358
|
-
(d || u) && /* @__PURE__ */
|
|
359
|
-
h && /* @__PURE__ */
|
|
360
|
-
t && /* @__PURE__ */
|
|
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 && (
|
|
381
|
+
e && (o ? /* @__PURE__ */ n(
|
|
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: 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__ */
|
|
398
|
+
) : /* @__PURE__ */ n(
|
|
399
399
|
P,
|
|
400
400
|
{
|
|
401
401
|
sx: {
|
|
402
402
|
whiteSpace: "pre-wrap",
|
|
403
|
-
...(
|
|
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__ */
|
|
420
|
-
c && /* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ n(O, { actions: r, center: m, className: "mt-8" }),
|
|
420
|
+
c && /* @__PURE__ */ n("div", { children: c })
|
|
421
421
|
] });
|
|
422
422
|
}
|
|
423
|
-
const
|
|
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
|
|
439
|
-
if (t.type ===
|
|
440
|
-
const
|
|
441
|
-
return
|
|
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:
|
|
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[
|
|
466
|
-
let p =
|
|
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
|
-
|
|
474
|
-
const
|
|
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}% - ${
|
|
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
|
|
497
|
+
function gn() {
|
|
498
498
|
const t = navigator.userAgent.toLowerCase();
|
|
499
499
|
return t.includes("safari") && !t.includes("chrome");
|
|
500
500
|
}
|
|
501
|
-
function
|
|
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}\/?/,
|
|
504
|
-
return e.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
|
|
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
|
|
512
|
+
function yn(t) {
|
|
513
513
|
let e = {};
|
|
514
|
-
return typeof t == "string" ?
|
|
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
|
|
516
|
+
function wn() {
|
|
517
517
|
const [t, e] = T(Date.now());
|
|
518
|
-
return
|
|
519
|
-
const
|
|
518
|
+
return E(() => {
|
|
519
|
+
const o = () => {
|
|
520
520
|
e(Date.now());
|
|
521
521
|
};
|
|
522
|
-
return document.addEventListener("visibilitychange",
|
|
523
|
-
document.removeEventListener("visibilitychange",
|
|
522
|
+
return document.addEventListener("visibilitychange", o), () => {
|
|
523
|
+
document.removeEventListener("visibilitychange", o);
|
|
524
524
|
};
|
|
525
525
|
}, []), t;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ct(t, e, o, r, i) {
|
|
528
528
|
let s = null;
|
|
529
|
-
const { color: a = "", image: c } =
|
|
530
|
-
return c &&
|
|
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(
|
|
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__ */
|
|
556
|
-
|
|
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
|
-
|
|
580
|
-
)) : c ?
|
|
579
|
+
i || c
|
|
580
|
+
)) : c ? o.backgroundImage = `${c} !important` : a && (o.backgroundColor = `${a} !important`), s;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return t ? /* @__PURE__ */
|
|
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
|
|
585
|
+
function D({
|
|
586
586
|
dark: t = !1,
|
|
587
587
|
children: e,
|
|
588
|
-
className:
|
|
589
|
-
sx:
|
|
590
|
-
boxed:
|
|
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 = { ...
|
|
597
|
-
t && (d.color =
|
|
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
|
-
|
|
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__ */
|
|
614
|
-
|
|
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],
|
|
619
|
-
...
|
|
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__ */
|
|
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
|
|
634
|
+
function Qt({
|
|
635
635
|
background: t = "",
|
|
636
636
|
backgroundVideoPoster: e,
|
|
637
|
-
children:
|
|
638
|
-
sx:
|
|
639
|
-
boxed:
|
|
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, ...
|
|
644
|
+
const l = { ...a, ...r };
|
|
645
645
|
let d = null;
|
|
646
|
-
const u =
|
|
647
|
-
return t && (d =
|
|
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
|
-
|
|
649
|
+
i == null ? void 0 : i.background,
|
|
650
650
|
l,
|
|
651
|
-
|
|
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, (
|
|
661
|
+
className: k(s, (i == null ? void 0 : i.boxShadow) && "shadow-xl"),
|
|
662
662
|
children: [
|
|
663
663
|
d,
|
|
664
|
-
|
|
664
|
+
o
|
|
665
665
|
]
|
|
666
666
|
}
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
|
-
const
|
|
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
|
|
687
|
-
return /* @__PURE__ */
|
|
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
|
|
691
|
-
return [
|
|
690
|
+
const o = ut(t, e), r = W(t, e);
|
|
691
|
+
return [o, r];
|
|
692
692
|
}
|
|
693
|
-
const
|
|
694
|
-
function
|
|
693
|
+
const te = ["title", "description", "actions", "badge", "tag", "prepend", "append", "logo"];
|
|
694
|
+
function _n({
|
|
695
695
|
image: t,
|
|
696
696
|
imageBorder: e,
|
|
697
|
-
imageShadow:
|
|
698
|
-
className:
|
|
699
|
-
reverse:
|
|
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,
|
|
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
|
-
|
|
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__ */
|
|
721
|
+
/* @__PURE__ */ n(Qe, { type: e, sx: { width: "100%" }, children: u })
|
|
722
722
|
) : u
|
|
723
723
|
}
|
|
724
724
|
);
|
|
725
|
-
return /* @__PURE__ */
|
|
726
|
-
|
|
725
|
+
return /* @__PURE__ */ n(
|
|
726
|
+
D,
|
|
727
727
|
{
|
|
728
728
|
className: k(
|
|
729
729
|
"section--block",
|
|
730
|
-
|
|
731
|
-
s && !
|
|
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__ */
|
|
739
|
+
children: /* @__PURE__ */ n(
|
|
740
740
|
ht,
|
|
741
741
|
{
|
|
742
742
|
col: t ? 2 : 1,
|
|
743
|
-
className: s ?
|
|
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:
|
|
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
|
|
770
|
-
function
|
|
771
|
-
return /* @__PURE__ */
|
|
769
|
+
const q = ["editing", "height", "locale", "dev"];
|
|
770
|
+
function $n(t) {
|
|
771
|
+
return /* @__PURE__ */ n(Sn, { ...t });
|
|
772
772
|
}
|
|
773
|
-
const
|
|
773
|
+
const Sn = $(b)`
|
|
774
774
|
position: relative;
|
|
775
775
|
`;
|
|
776
|
-
function
|
|
776
|
+
function Cn({
|
|
777
777
|
widget: t,
|
|
778
778
|
reverse: e,
|
|
779
|
-
projectId:
|
|
780
|
-
assistantId:
|
|
781
|
-
working:
|
|
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,
|
|
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__ */
|
|
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__ */
|
|
801
|
-
Object.keys(
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
|
|
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__ */
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
|
|
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 =
|
|
826
|
-
() =>
|
|
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__ */
|
|
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
|
|
831
|
+
const ee = je({
|
|
832
832
|
pages: [],
|
|
833
833
|
project: void 0
|
|
834
|
-
}), { Provider:
|
|
835
|
-
function
|
|
836
|
-
return
|
|
834
|
+
}), { Provider: Nn, Consumer: Ir } = ee;
|
|
835
|
+
function ne() {
|
|
836
|
+
return Gt(ee);
|
|
837
837
|
}
|
|
838
|
-
function
|
|
839
|
-
return /* @__PURE__ */
|
|
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
|
|
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
|
|
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__ */
|
|
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:
|
|
857
|
-
height:
|
|
858
|
-
alt: (
|
|
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
|
|
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:
|
|
874
|
-
const
|
|
875
|
-
return ft(t) ? /* @__PURE__ */
|
|
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
|
|
877
|
+
const Rn = $(b)`
|
|
878
878
|
flex-shrink: 0;
|
|
879
879
|
`;
|
|
880
|
-
function M({ text: t, children: e, icon:
|
|
881
|
-
const l =
|
|
882
|
-
return u && (m.href = u, rt(u) && (m.target = m.target || "_blank")), /* @__PURE__ */
|
|
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, ...
|
|
885
|
-
const { pages:
|
|
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__ */
|
|
888
|
-
if (
|
|
889
|
-
const s =
|
|
890
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
892
|
+
return /* @__PURE__ */ n(M, { ...W(o, "linkId"), children: e });
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
898
|
-
|
|
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
|
|
905
|
+
function Tn({
|
|
906
906
|
to: t,
|
|
907
907
|
base: e,
|
|
908
|
-
children:
|
|
909
|
-
className:
|
|
910
|
-
activeClassName:
|
|
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 ?
|
|
917
|
-
let h = s === "auto" ? "_self" : s, p =
|
|
918
|
-
const
|
|
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 =
|
|
920
|
+
return p = Z(m, u, t), /* @__PURE__ */ n(
|
|
921
921
|
"a",
|
|
922
922
|
{
|
|
923
|
-
className: `no-underline ${
|
|
923
|
+
className: `no-underline ${r}`,
|
|
924
924
|
href: tt(p),
|
|
925
925
|
rel: "noreferrer noopener",
|
|
926
926
|
target: h,
|
|
927
927
|
...l,
|
|
928
|
-
children:
|
|
928
|
+
children: o
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
931
|
if (rt(t))
|
|
932
932
|
s === "auto" && (h = "_blank"), p = t;
|
|
933
933
|
else {
|
|
934
|
-
|
|
935
|
-
const
|
|
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__ */
|
|
938
|
-
|
|
937
|
+
return /* @__PURE__ */ n(
|
|
938
|
+
Ee,
|
|
939
939
|
{
|
|
940
940
|
end: !0,
|
|
941
941
|
to: tt(p),
|
|
942
|
-
className: ({ isActive: w }) => k(
|
|
942
|
+
className: ({ isActive: w }) => k(r, w ? i : ""),
|
|
943
943
|
...l,
|
|
944
|
-
children:
|
|
944
|
+
children: o
|
|
945
945
|
}
|
|
946
946
|
);
|
|
947
947
|
}
|
|
948
948
|
return /* @__PURE__ */ _(
|
|
949
949
|
"a",
|
|
950
950
|
{
|
|
951
|
-
className: `no-underline ${
|
|
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
|
-
|
|
958
|
-
|
|
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:
|
|
967
|
-
className:
|
|
968
|
-
dark:
|
|
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 = [] } =
|
|
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:
|
|
975
|
+
component: Tn,
|
|
976
976
|
to: (d == null ? void 0 : d.path) || a.link,
|
|
977
977
|
useRouterLink: !0
|
|
978
978
|
}), /* @__PURE__ */ _(
|
|
979
|
-
|
|
979
|
+
En,
|
|
980
980
|
{
|
|
981
981
|
className: k(
|
|
982
982
|
"base-card card",
|
|
983
983
|
{ "border-gray-200": s },
|
|
984
|
-
{ "dark:border-gray-500":
|
|
985
|
-
{ dark:
|
|
986
|
-
|
|
984
|
+
{ "dark:border-gray-500": i && s },
|
|
985
|
+
{ dark: i, "border-transparent": !s },
|
|
986
|
+
r
|
|
987
987
|
),
|
|
988
988
|
...c,
|
|
989
|
-
...
|
|
989
|
+
...W(a, ["listType", "dark", "iconColor", "link", "hoverStyle", "imageSize"]),
|
|
990
990
|
children: [
|
|
991
991
|
t,
|
|
992
|
-
!u && /* @__PURE__ */
|
|
992
|
+
!u && /* @__PURE__ */ n("div", { className: "card__body", children: o }),
|
|
993
993
|
e
|
|
994
994
|
]
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
997
|
}
|
|
998
|
-
const
|
|
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
|
|
1014
|
+
function K({
|
|
1015
1015
|
align: t = "left",
|
|
1016
1016
|
title: e,
|
|
1017
|
-
titleProps:
|
|
1018
|
-
description:
|
|
1019
|
-
descriptionProps:
|
|
1017
|
+
titleProps: o = {},
|
|
1018
|
+
description: r,
|
|
1019
|
+
descriptionProps: i = {}
|
|
1020
1020
|
}) {
|
|
1021
1021
|
return /* @__PURE__ */ _(U, { children: [
|
|
1022
|
-
e && /* @__PURE__ */
|
|
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
|
-
...
|
|
1030
|
+
...o,
|
|
1031
1031
|
children: e
|
|
1032
1032
|
}
|
|
1033
1033
|
),
|
|
1034
|
-
|
|
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
|
-
...
|
|
1043
|
-
children:
|
|
1042
|
+
...i,
|
|
1043
|
+
children: r
|
|
1044
1044
|
}
|
|
1045
1045
|
)
|
|
1046
1046
|
] });
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function zn({
|
|
1049
1049
|
image: t,
|
|
1050
1050
|
title: e,
|
|
1051
|
-
description:
|
|
1052
|
-
imageProps:
|
|
1053
|
-
imageMeta:
|
|
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
|
-
|
|
1063
|
+
Wn,
|
|
1064
1064
|
{
|
|
1065
1065
|
className: "card-article",
|
|
1066
1066
|
...u,
|
|
1067
|
-
prepend: /* @__PURE__ */
|
|
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__ */
|
|
1080
|
+
children: /* @__PURE__ */ n(z, { icon: t, color: "primary.main" })
|
|
1081
1081
|
}
|
|
1082
|
-
) : h && /* @__PURE__ */
|
|
1082
|
+
) : h && /* @__PURE__ */ n(
|
|
1083
1083
|
"img",
|
|
1084
1084
|
{
|
|
1085
1085
|
className: "card__image",
|
|
1086
1086
|
src: h,
|
|
1087
|
-
...
|
|
1088
|
-
alt:
|
|
1089
|
-
width:
|
|
1090
|
-
height:
|
|
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 ||
|
|
1097
|
-
|
|
1096
|
+
e || o ? /* @__PURE__ */ n(
|
|
1097
|
+
K,
|
|
1098
1098
|
{
|
|
1099
1099
|
align: d,
|
|
1100
1100
|
title: e,
|
|
1101
1101
|
titleProps: a,
|
|
1102
|
-
description:
|
|
1102
|
+
description: o,
|
|
1103
1103
|
descriptionProps: c
|
|
1104
1104
|
}
|
|
1105
1105
|
) : null,
|
|
1106
|
-
l != null && l.length ? /* @__PURE__ */
|
|
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
|
|
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
|
-
`,
|
|
1133
|
-
function
|
|
1132
|
+
`, Nt = "section";
|
|
1133
|
+
function It({
|
|
1134
1134
|
title: t,
|
|
1135
1135
|
image: e,
|
|
1136
|
-
imageMeta:
|
|
1137
|
-
description:
|
|
1138
|
-
actions:
|
|
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__ */ _(
|
|
1145
|
-
e && /* @__PURE__ */
|
|
1146
|
-
|
|
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:
|
|
1151
|
+
imageMeta: o
|
|
1152
1152
|
}
|
|
1153
1153
|
),
|
|
1154
|
-
t ||
|
|
1155
|
-
|
|
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
|
|
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[
|
|
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[
|
|
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
|
|
1216
|
+
function On({
|
|
1217
1217
|
image: t,
|
|
1218
1218
|
title: e,
|
|
1219
|
-
description:
|
|
1220
|
-
imageProps:
|
|
1221
|
-
imageMeta:
|
|
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
|
-
|
|
1231
|
+
Hn,
|
|
1232
1232
|
{
|
|
1233
1233
|
className: "card-article",
|
|
1234
1234
|
...u,
|
|
1235
|
-
prepend: /* @__PURE__ */
|
|
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__ */
|
|
1248
|
+
children: /* @__PURE__ */ n(z, { icon: t, color: "primary.main" })
|
|
1249
1249
|
}
|
|
1250
|
-
) : h && /* @__PURE__ */
|
|
1250
|
+
) : h && /* @__PURE__ */ n(
|
|
1251
1251
|
b,
|
|
1252
1252
|
{
|
|
1253
1253
|
component: "img",
|
|
1254
1254
|
className: "card__image",
|
|
1255
1255
|
src: h,
|
|
1256
|
-
...
|
|
1257
|
-
alt:
|
|
1258
|
-
width:
|
|
1259
|
-
height:
|
|
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 ||
|
|
1266
|
-
|
|
1265
|
+
e || o ? /* @__PURE__ */ n(
|
|
1266
|
+
K,
|
|
1267
1267
|
{
|
|
1268
1268
|
align: d,
|
|
1269
1269
|
title: e,
|
|
1270
1270
|
titleProps: a,
|
|
1271
|
-
description:
|
|
1271
|
+
description: o,
|
|
1272
1272
|
descriptionProps: c
|
|
1273
1273
|
}
|
|
1274
1274
|
) : null,
|
|
1275
|
-
l != null && l.length ? /* @__PURE__ */
|
|
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
|
|
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
|
-
`,
|
|
1305
|
-
function
|
|
1304
|
+
`, Pt = "section";
|
|
1305
|
+
function An({
|
|
1306
1306
|
title: t,
|
|
1307
1307
|
image: e,
|
|
1308
|
-
imageMeta:
|
|
1309
|
-
iconSize:
|
|
1310
|
-
description:
|
|
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__ */
|
|
1317
|
-
e && /* @__PURE__ */
|
|
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__ */
|
|
1320
|
-
/* @__PURE__ */
|
|
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
|
|
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[
|
|
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[
|
|
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
|
|
1381
|
+
function Un({
|
|
1382
1382
|
title: t,
|
|
1383
1383
|
titleProps: e = {},
|
|
1384
|
-
description:
|
|
1385
|
-
descriptionProps:
|
|
1386
|
-
image:
|
|
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__ */ _(
|
|
1394
|
-
|
|
1395
|
-
t ||
|
|
1396
|
-
|
|
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:
|
|
1402
|
-
descriptionProps:
|
|
1401
|
+
description: o,
|
|
1402
|
+
descriptionProps: r
|
|
1403
1403
|
}
|
|
1404
1404
|
) : null
|
|
1405
1405
|
] });
|
|
1406
1406
|
}
|
|
1407
|
-
const
|
|
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
|
|
1494
|
-
const
|
|
1495
|
-
article:
|
|
1496
|
-
simple:
|
|
1497
|
-
news:
|
|
1498
|
-
default:
|
|
1499
|
-
wall:
|
|
1500
|
-
}[t] ||
|
|
1501
|
-
return /* @__PURE__ */
|
|
1502
|
-
}
|
|
1503
|
-
function
|
|
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:
|
|
1507
|
-
listBorder:
|
|
1508
|
-
listType:
|
|
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__ */
|
|
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:
|
|
1529
|
-
|
|
1528
|
+
children: o || t.map((x) => /* @__PURE__ */ n(
|
|
1529
|
+
Vn,
|
|
1530
1530
|
{
|
|
1531
|
-
borderColor:
|
|
1531
|
+
borderColor: r,
|
|
1532
1532
|
iconColor: c,
|
|
1533
1533
|
type: d,
|
|
1534
|
-
listType:
|
|
1534
|
+
listType: i,
|
|
1535
1535
|
dark: u,
|
|
1536
|
-
...
|
|
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
|
-
|
|
1547
|
+
x.id
|
|
1548
1548
|
))
|
|
1549
1549
|
}
|
|
1550
1550
|
);
|
|
1551
1551
|
}
|
|
1552
|
-
const
|
|
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
|
-
],
|
|
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
|
|
1580
|
-
const [
|
|
1581
|
-
return /* @__PURE__ */ _(
|
|
1582
|
-
Object.keys(
|
|
1583
|
-
/* @__PURE__ */
|
|
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
|
|
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
|
|
1603
|
-
const [{ editing:
|
|
1602
|
+
function Xn({ section: t, ...e }) {
|
|
1603
|
+
const [{ editing: o }, r] = C(e, q), i = j(() => {
|
|
1604
1604
|
var s;
|
|
1605
1605
|
return {
|
|
1606
|
-
...
|
|
1607
|
-
list: (s =
|
|
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
|
-
...
|
|
1611
|
-
image: ["news", "simple", "default"].includes(
|
|
1612
|
-
actions: (l = (c = a.actions) == null ? void 0 : c.map) == null ? void 0 : l.call(c, (d) => /* @__PURE__ */
|
|
1613
|
-
border:
|
|
1614
|
-
iconSize:
|
|
1615
|
-
imageSize:
|
|
1616
|
-
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
|
-
}, [
|
|
1621
|
-
return /* @__PURE__ */
|
|
1620
|
+
}, [r]);
|
|
1621
|
+
return /* @__PURE__ */ n(Kn, { style: o ? { pointerEvents: "none" } : {}, ...i });
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function Yn({
|
|
1624
1624
|
properties: t,
|
|
1625
1625
|
section: e,
|
|
1626
|
-
locale:
|
|
1627
|
-
dev:
|
|
1626
|
+
locale: o,
|
|
1627
|
+
dev: r
|
|
1628
1628
|
}) {
|
|
1629
|
-
var
|
|
1630
|
-
return (
|
|
1631
|
-
|
|
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:
|
|
1638
|
+
locale: o,
|
|
1639
1639
|
properties: t,
|
|
1640
|
-
dev:
|
|
1640
|
+
dev: r
|
|
1641
1641
|
}
|
|
1642
|
-
) : /* @__PURE__ */
|
|
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
|
|
1644
|
+
function Qn({
|
|
1645
1645
|
src: t,
|
|
1646
1646
|
dataId: e,
|
|
1647
|
-
isEdit:
|
|
1648
|
-
height:
|
|
1649
|
-
onLoad:
|
|
1647
|
+
isEdit: o = !1,
|
|
1648
|
+
height: r = "100%",
|
|
1649
|
+
onLoad: i = () => {
|
|
1650
1650
|
}
|
|
1651
1651
|
}) {
|
|
1652
|
-
return /* @__PURE__ */
|
|
1653
|
-
|
|
1652
|
+
return /* @__PURE__ */ n(
|
|
1653
|
+
nn,
|
|
1654
1654
|
{
|
|
1655
|
-
isEdit:
|
|
1655
|
+
isEdit: o,
|
|
1656
1656
|
embedId: e,
|
|
1657
1657
|
src: t,
|
|
1658
|
-
height:
|
|
1658
|
+
height: r,
|
|
1659
1659
|
onLoad: () => {
|
|
1660
|
-
|
|
1660
|
+
i();
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const [a, c] = C(s,
|
|
1667
|
-
return /* @__PURE__ */ _(
|
|
1668
|
-
Object.keys(a).length > 0 && /* @__PURE__ */
|
|
1669
|
-
/* @__PURE__ */
|
|
1670
|
-
|
|
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:
|
|
1674
|
+
onLoad: i,
|
|
1675
1675
|
height: s.iframeHeight ? `${s.iframeHeight}px` : "100%"
|
|
1676
1676
|
}
|
|
1677
1677
|
),
|
|
1678
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ n(O, { actions: o, center: r })
|
|
1679
1679
|
] });
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1682
|
-
const
|
|
1683
|
-
return
|
|
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]),
|
|
1685
|
+
}, [d]), E(() => {
|
|
1686
1686
|
const m = JSON.parse(JSON.stringify(a.config) || "{}");
|
|
1687
|
-
|
|
1688
|
-
}, [d, a.config]),
|
|
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
|
|
1690
|
+
const eo = $("div")`
|
|
1691
1691
|
user-select: none;
|
|
1692
1692
|
color: #999;
|
|
1693
1693
|
padding: 8px;
|
|
1694
1694
|
height: 200px;
|
|
1695
|
-
`,
|
|
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
|
|
1707
|
+
function oo(t) {
|
|
1708
1708
|
var e;
|
|
1709
1709
|
if (/youtu\.?be/.test(t))
|
|
1710
|
-
for (const
|
|
1711
|
-
const
|
|
1712
|
-
if (
|
|
1713
|
-
return
|
|
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
|
|
1717
|
-
const e =
|
|
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
|
|
1722
|
-
return
|
|
1721
|
+
function io({ src: t }) {
|
|
1722
|
+
return E(() => {
|
|
1723
1723
|
import("@lottiefiles/lottie-player");
|
|
1724
|
-
}, []), /* @__PURE__ */
|
|
1724
|
+
}, []), /* @__PURE__ */ n("lottie-player", { autoplay: !0, loop: !0, mode: "normal", src: t });
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return /* @__PURE__ */
|
|
1726
|
+
function so(t) {
|
|
1727
|
+
return /* @__PURE__ */ n(b, { maxHeight: 400, overflow: "hidden auto", children: /* @__PURE__ */ n(on, { ...t }) });
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1730
|
-
const e =
|
|
1731
|
-
e.current ? e.current.offsetWidth * 0.5625 :
|
|
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 :
|
|
1734
|
-
return
|
|
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
|
|
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 :
|
|
1739
|
-
return
|
|
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
|
-
}, [
|
|
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: `${
|
|
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
|
|
1758
|
+
const co = $(_n)`
|
|
1759
1759
|
.section__description {
|
|
1760
1760
|
}
|
|
1761
1761
|
`;
|
|
1762
|
-
function
|
|
1762
|
+
function lo({
|
|
1763
1763
|
hasImage: t,
|
|
1764
1764
|
fullSizeImage: e,
|
|
1765
|
-
boxed:
|
|
1766
|
-
videoPoster:
|
|
1767
|
-
imageMeta:
|
|
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,
|
|
1774
|
-
const [{ editing: d }, u] = C({ ...l, boxed: e ? void 0 :
|
|
1775
|
-
let m =
|
|
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 = (
|
|
1779
|
-
|
|
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
|
|
1789
|
+
function mo(t, e, o, r, i, s) {
|
|
1790
1790
|
if (t) {
|
|
1791
1791
|
if (t.endsWith(".json"))
|
|
1792
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ n(io, { src: t });
|
|
1793
1793
|
if (t.indexOf("twitter.com") !== -1)
|
|
1794
|
-
return /* @__PURE__ */
|
|
1795
|
-
const a =
|
|
1794
|
+
return /* @__PURE__ */ n(so, { sourceType: "url", url: t });
|
|
1795
|
+
const a = ro(t);
|
|
1796
1796
|
if (a)
|
|
1797
|
-
return /* @__PURE__ */
|
|
1798
|
-
const { naturalWidth: c, naturalHeight: l, filename: d } =
|
|
1797
|
+
return /* @__PURE__ */ n(ao, { url: a });
|
|
1798
|
+
const { naturalWidth: c, naturalHeight: l, filename: d } = r || {};
|
|
1799
1799
|
if (it(t))
|
|
1800
|
-
return /* @__PURE__ */
|
|
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),
|
|
1816
|
-
children: /* @__PURE__ */
|
|
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 =
|
|
1821
|
-
return /* @__PURE__ */
|
|
1822
|
-
|
|
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
|
-
...
|
|
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
|
|
1845
|
-
function
|
|
1846
|
-
const
|
|
1847
|
-
return ct.get(`/api/${lt()}/pages`, { params:
|
|
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
|
|
1850
|
-
return ct.post(`/api/${lt()}/pages/publish`, { mode: t, pages: e }).then((
|
|
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
|
|
1852
|
+
function ho({
|
|
1853
1853
|
locale: t,
|
|
1854
1854
|
sort: e,
|
|
1855
|
-
page:
|
|
1856
|
-
limit:
|
|
1857
|
-
mode:
|
|
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:
|
|
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
|
|
1862
|
-
function
|
|
1863
|
-
const [{ editing:
|
|
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
|
|
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
|
|
1878
|
-
|
|
1879
|
-
}), /* @__PURE__ */ _(
|
|
1880
|
-
Object.keys(c).length > 0 && /* @__PURE__ */
|
|
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__ */
|
|
1883
|
-
|
|
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:
|
|
1887
|
+
onClick: i ? void 0 : () => p(y.slug),
|
|
1888
1888
|
children: [
|
|
1889
|
-
!!
|
|
1890
|
-
|
|
1889
|
+
!!y.image && /* @__PURE__ */ n(
|
|
1890
|
+
we,
|
|
1891
1891
|
{
|
|
1892
1892
|
component: "img",
|
|
1893
1893
|
alt: "",
|
|
1894
|
-
image: R(N(
|
|
1894
|
+
image: R(N(y.image), 540),
|
|
1895
1895
|
loading: "lazy"
|
|
1896
1896
|
}
|
|
1897
1897
|
),
|
|
1898
|
-
/* @__PURE__ */ _(
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */
|
|
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
|
-
) },
|
|
1905
|
-
/* @__PURE__ */
|
|
1906
|
-
] }) : /* @__PURE__ */
|
|
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
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
1936
|
-
iframe:
|
|
1937
|
-
section:
|
|
1938
|
-
"section-card-list":
|
|
1939
|
-
toc:
|
|
1940
|
-
"ai-runtime":
|
|
1941
|
-
"custom-component":
|
|
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
|
|
1944
|
-
const a =
|
|
1945
|
-
return e === "custom-component" ? c : /* @__PURE__ */
|
|
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
|
|
1947
|
+
const yo = $(rn, { shouldForwardProp: (t) => !!t })`
|
|
1948
1948
|
& > div > .MuiContainer-root {
|
|
1949
1949
|
max-width: unset;
|
|
1950
1950
|
}
|
|
1951
1951
|
`;
|
|
1952
|
-
function
|
|
1953
|
-
const
|
|
1954
|
-
return /* @__PURE__ */
|
|
1952
|
+
function wo({ meta: t, ...e }) {
|
|
1953
|
+
const o = pt();
|
|
1954
|
+
return /* @__PURE__ */ n(yo, { ...e, meta: t, theme: o || {} });
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return /* @__PURE__ */
|
|
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
|
|
1960
|
-
return /* @__PURE__ */
|
|
1959
|
+
function ko(t) {
|
|
1960
|
+
return /* @__PURE__ */ n(_o, { ...t });
|
|
1961
1961
|
}
|
|
1962
|
-
const
|
|
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
|
-
`,
|
|
1974
|
-
(t == null ? void 0 : t.length) > 0 ?
|
|
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
|
-
|
|
1982
|
+
o(new Error("load font fail"));
|
|
1983
1983
|
}
|
|
1984
1984
|
}) : e("success");
|
|
1985
|
-
}),
|
|
1986
|
-
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`,
|
|
1987
|
-
function
|
|
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
|
|
1992
|
-
if (
|
|
1991
|
+
const o = async (r) => {
|
|
1992
|
+
if (r && !document.querySelectorAll(`link[href*="${r}" i]`).length)
|
|
1993
1993
|
try {
|
|
1994
|
-
|
|
1995
|
-
} catch (
|
|
1996
|
-
console.error(
|
|
1994
|
+
Tt[r] || (await $o([r]), Tt[r] = !0);
|
|
1995
|
+
} catch (i) {
|
|
1996
|
+
console.error(i);
|
|
1997
1997
|
}
|
|
1998
1998
|
};
|
|
1999
|
-
return
|
|
2000
|
-
t &&
|
|
2001
|
-
}, [t, e]), /* @__PURE__ */
|
|
2002
|
-
|
|
1999
|
+
return E(() => {
|
|
2000
|
+
t && o(t), e && o(e);
|
|
2001
|
+
}, [t, e]), /* @__PURE__ */ n(
|
|
2002
|
+
Lt,
|
|
2003
2003
|
{
|
|
2004
|
-
styles:
|
|
2004
|
+
styles: Ot`
|
|
2005
2005
|
#app {
|
|
2006
2006
|
.page-kit-section__title {
|
|
2007
|
-
font-family: ${JSON.stringify(t)}, ${
|
|
2007
|
+
font-family: ${JSON.stringify(t)}, ${Rt};
|
|
2008
2008
|
}
|
|
2009
2009
|
|
|
2010
2010
|
.page-kit-section__description {
|
|
2011
|
-
font-family: ${JSON.stringify(e)}, ${
|
|
2011
|
+
font-family: ${JSON.stringify(e)}, ${Rt};
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
2014
|
`
|
|
2015
2015
|
}
|
|
2016
2016
|
);
|
|
2017
2017
|
}
|
|
2018
|
-
const { SessionProvider:
|
|
2018
|
+
const { SessionProvider: jr, SessionContext: Co, SessionConsumer: Br, withSession: Rr } = an();
|
|
2019
2019
|
function gt() {
|
|
2020
|
-
return
|
|
2020
|
+
return Gt(Co);
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
var
|
|
2022
|
+
function No(...t) {
|
|
2023
|
+
var o;
|
|
2024
2024
|
const { session: e } = gt();
|
|
2025
|
-
return t.includes((
|
|
2025
|
+
return t.includes((o = e.user) == null ? void 0 : o.role);
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2028
|
-
var
|
|
2029
|
-
const { session: e } = gt(),
|
|
2030
|
-
return ((
|
|
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
|
|
2032
|
+
function Po(t) {
|
|
2033
2033
|
return t != null;
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
const [t] =
|
|
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
|
|
2039
|
-
}, [t]),
|
|
2040
|
-
return
|
|
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
|
|
2042
|
+
function jo({ mode: t }) {
|
|
2043
2043
|
if (t !== "draft") {
|
|
2044
2044
|
const e = window.__PAGE_STATE__;
|
|
2045
|
-
return e ? /* @__PURE__ */
|
|
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__ */
|
|
2047
|
+
return /* @__PURE__ */ n(Bo, { children: ({ state: e }) => /* @__PURE__ */ n(et, { mode: t, state: e }) });
|
|
2048
2048
|
}
|
|
2049
|
-
const
|
|
2050
|
-
function
|
|
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
|
|
2055
|
-
if (
|
|
2056
|
-
const l = localStorage.getItem(
|
|
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(
|
|
2060
|
-
}, [
|
|
2061
|
-
return a ? /* @__PURE__ */
|
|
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
|
|
2065
|
-
const { t:
|
|
2066
|
-
pageIds:
|
|
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 =
|
|
2072
|
-
() => a != null && a.some((g) => g.locale ===
|
|
2073
|
-
[
|
|
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
|
-
() =>
|
|
2075
|
+
() => i.map((g) => {
|
|
2076
2076
|
const v = s[g];
|
|
2077
2077
|
return v && {
|
|
2078
2078
|
id: v.id,
|
|
2079
|
-
path:
|
|
2079
|
+
path: Q("/", u || "", v.slug, t !== "production" ? `?mode=${t}` : "")
|
|
2080
2080
|
};
|
|
2081
|
-
}).filter(
|
|
2082
|
-
[
|
|
2081
|
+
}).filter(Po),
|
|
2082
|
+
[i, s, u, t]
|
|
2083
2083
|
), p = ([...g]) => (t !== "production" && g.unshift(
|
|
2084
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ n(Be, { fallback: /* @__PURE__ */ n("div", {}), children: /* @__PURE__ */ n(To, { mode: "production", state: e }) })
|
|
2085
2085
|
), g);
|
|
2086
|
-
return /* @__PURE__ */ _(
|
|
2087
|
-
/* @__PURE__ */ _(
|
|
2088
|
-
m && /* @__PURE__ */
|
|
2089
|
-
|
|
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__ */
|
|
2092
|
-
|
|
2091
|
+
return v ? /* @__PURE__ */ n(
|
|
2092
|
+
Y,
|
|
2093
2093
|
{
|
|
2094
|
-
path:
|
|
2095
|
-
element: /* @__PURE__ */
|
|
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__ */
|
|
2111
|
-
|
|
2110
|
+
l.pages && Object.values(l.pages).map(({ blockletId: g, page: v }) => /* @__PURE__ */ n(
|
|
2111
|
+
Y,
|
|
2112
2112
|
{
|
|
2113
|
-
path:
|
|
2114
|
-
element: /* @__PURE__ */
|
|
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__ */
|
|
2129
|
-
|
|
2128
|
+
/* @__PURE__ */ n(
|
|
2129
|
+
Y,
|
|
2130
2130
|
{
|
|
2131
2131
|
path: "*",
|
|
2132
|
-
element: /* @__PURE__ */
|
|
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__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
|
|
2136
|
+
t !== "production" && /* @__PURE__ */ n(ko, { sx: { bgcolor: "info.light" }, children: t }),
|
|
2137
|
+
/* @__PURE__ */ n(
|
|
2138
|
+
So,
|
|
2139
2139
|
{
|
|
2140
|
-
titleFontFamily: (
|
|
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
|
|
2146
|
+
function Er({
|
|
2147
2147
|
mode: t,
|
|
2148
2148
|
state: e,
|
|
2149
|
-
path:
|
|
2150
|
-
pageData:
|
|
2149
|
+
path: o,
|
|
2150
|
+
pageData: r
|
|
2151
2151
|
}) {
|
|
2152
|
-
const { t:
|
|
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((
|
|
2158
|
-
() => c != null && c.some((
|
|
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
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
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:
|
|
2172
|
-
locale:
|
|
2173
|
-
defaultLocale:
|
|
2187
|
+
page: o,
|
|
2188
|
+
locale: r,
|
|
2189
|
+
defaultLocale: i,
|
|
2174
2190
|
headerAddons: s
|
|
2175
2191
|
}) {
|
|
2176
|
-
var f, w, g, v, I, H,
|
|
2177
|
-
const a = ((f =
|
|
2178
|
-
() => (
|
|
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(
|
|
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
|
-
),
|
|
2200
|
+
), y = (I = a.header) != null && I.translucent ? zo : re;
|
|
2185
2201
|
return /* @__PURE__ */ _(U, { children: [
|
|
2186
|
-
!!a.backgroundColor && /* @__PURE__ */
|
|
2187
|
-
|
|
2202
|
+
!!a.backgroundColor && /* @__PURE__ */ n(
|
|
2203
|
+
Lt,
|
|
2188
2204
|
{
|
|
2189
|
-
styles:
|
|
2205
|
+
styles: Ot`
|
|
2190
2206
|
body {
|
|
2191
2207
|
background-color: ${a.backgroundColor} !important;
|
|
2192
2208
|
}
|
|
2193
2209
|
`
|
|
2194
2210
|
}
|
|
2195
2211
|
),
|
|
2196
|
-
/* @__PURE__ */
|
|
2197
|
-
|
|
2212
|
+
/* @__PURE__ */ n(
|
|
2213
|
+
y,
|
|
2198
2214
|
{
|
|
2199
2215
|
hideNavMenu: !!((H = a.header) != null && H.hideNavMenus),
|
|
2200
|
-
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:
|
|
2222
|
+
addons: x
|
|
2207
2223
|
}
|
|
2208
2224
|
),
|
|
2209
|
-
/* @__PURE__ */
|
|
2210
|
-
/* @__PURE__ */ _(
|
|
2211
|
-
/* @__PURE__ */
|
|
2212
|
-
/* @__PURE__ */
|
|
2213
|
-
/* @__PURE__ */
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2218
|
-
/* @__PURE__ */
|
|
2219
|
-
/* @__PURE__ */
|
|
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__ */
|
|
2237
|
+
/* @__PURE__ */ n(dt, { flexGrow: 1, children: o.sectionIds.map((L) => {
|
|
2222
2238
|
var yt, wt;
|
|
2223
|
-
const S =
|
|
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[
|
|
2226
|
-
return /* @__PURE__ */
|
|
2227
|
-
|
|
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:
|
|
2245
|
+
id: L,
|
|
2230
2246
|
type: S.component,
|
|
2231
2247
|
mode: t,
|
|
2232
2248
|
section: S,
|
|
2233
2249
|
config: {
|
|
2234
|
-
...
|
|
2235
|
-
locale:
|
|
2250
|
+
...Ne(A) ? se : A,
|
|
2251
|
+
locale: r,
|
|
2236
2252
|
dev: t === "draft" ? {
|
|
2237
2253
|
mode: t,
|
|
2238
2254
|
components: e,
|
|
2239
|
-
defaultLocale:
|
|
2255
|
+
defaultLocale: i
|
|
2240
2256
|
} : { mode: t }
|
|
2241
2257
|
}
|
|
2242
2258
|
},
|
|
2243
|
-
|
|
2259
|
+
L
|
|
2244
2260
|
);
|
|
2245
2261
|
}) }),
|
|
2246
|
-
!((bt = a.footer) != null && bt.hidden) && /* @__PURE__ */
|
|
2262
|
+
!((bt = a.footer) != null && bt.hidden) && /* @__PURE__ */ n(wo, {})
|
|
2247
2263
|
] });
|
|
2248
2264
|
}
|
|
2249
|
-
const
|
|
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
|
|
2256
|
-
const [e,
|
|
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
|
-
|
|
2261
|
-
}),
|
|
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__ */
|
|
2268
|
-
if (
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
const s =
|
|
2272
|
-
return /* @__PURE__ */
|
|
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
|
|
2292
|
+
function zo({
|
|
2277
2293
|
logo: t,
|
|
2278
2294
|
translucentTextColor: e,
|
|
2279
|
-
...
|
|
2295
|
+
...o
|
|
2280
2296
|
}) {
|
|
2281
|
-
const { y:
|
|
2282
|
-
let
|
|
2283
|
-
if (
|
|
2284
|
-
|
|
2285
|
-
const a = Math.round(255 * Math.min(1 -
|
|
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__ */
|
|
2290
|
-
|
|
2305
|
+
return /* @__PURE__ */ n(
|
|
2306
|
+
re,
|
|
2291
2307
|
{
|
|
2292
|
-
logo: /* @__PURE__ */
|
|
2293
|
-
...
|
|
2294
|
-
className: k(
|
|
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,${
|
|
2312
|
+
backgroundColor: `rgba(255,255,255,${i})`,
|
|
2297
2313
|
// @ts-ignore
|
|
2298
|
-
"--logo-invert":
|
|
2314
|
+
"--logo-invert": i <= 0.7 ? 1 - i / 6 : 1 - i
|
|
2299
2315
|
},
|
|
2300
2316
|
sx: {
|
|
2301
|
-
backdropFilter:
|
|
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
|
|
2339
|
+
const ie = Ht(ke)``;
|
|
2324
2340
|
export {
|
|
2325
|
-
|
|
2326
|
-
|
|
2341
|
+
Tr as H,
|
|
2342
|
+
vo as L,
|
|
2327
2343
|
et as P,
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2344
|
+
zo as T,
|
|
2345
|
+
jo as a,
|
|
2346
|
+
Er as b,
|
|
2331
2347
|
at as c,
|
|
2332
|
-
|
|
2333
|
-
|
|
2348
|
+
po as g,
|
|
2349
|
+
Pr as p
|
|
2334
2350
|
};
|