@blocklet/pages-kit-inner-components 0.6.19 → 0.6.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,37 @@
1
- import { jsx as r, jsxs as w, Fragment as q } from "react/jsx-runtime";
2
- import { ErrorOutline as Ot } from "@mui/icons-material";
3
- import { Box as g, styled as Ut, Typography as L, Container as Ft, useTheme as Ht, useMediaQuery as Dt, Card as Gt, CircularProgress as Yt, Grid as ut, CardMedia as Vt, CardContent as Jt, Alert as Kt } from "@mui/material";
4
- import Xt from "lodash/isEmpty";
1
+ import { jsx as r, jsxs as w, Fragment as Q } from "react/jsx-runtime";
2
+ import { ErrorOutline as Dt } from "@mui/icons-material";
3
+ import { Box as h, styled as Gt, Typography as L, Container as Ht, useTheme as Yt, useMediaQuery as Vt, Card as Jt, CircularProgress as Kt, Grid as ht, CardMedia as Xt, CardContent as qt, Alert as Qt } from "@mui/material";
4
+ import Zt from "lodash/isEmpty";
5
5
  import lt from "lodash/pick";
6
- import qt, { createContext as vt, useMemo as N, useCallback as F, useContext as kt, useState as Z, useEffect as H, Fragment as Qt, isValidElement as _t, useRef as ct } from "react";
7
- import j from "lodash/keyBy";
8
- import { styled as _, useTheme as $t } from "@arcblock/ux/lib/Theme";
6
+ import te, { createContext as $t, useMemo as S, useCallback as D, useContext as Ct, useState as Z, useEffect as G, Fragment as ee, isValidElement as St, useRef as ct } from "react";
7
+ import z from "lodash/keyBy";
8
+ import { styled as _, useTheme as Nt } from "@arcblock/ux/lib/Theme";
9
9
  import { cx as x, css as it } from "@emotion/css";
10
- import B from "lodash/omit";
11
- import { Link as Zt, NavLink as te, useNavigate as ee } from "react-router-dom";
12
- import oe from "@arcblock/ux/lib/Button";
10
+ import N from "lodash/omit";
11
+ import { Link as oe, NavLink as ne, useNavigate as re } from "react-router-dom";
12
+ import ie from "@arcblock/ux/lib/Button";
13
13
  import at from "is-uri";
14
- import { Icon as St } from "@iconify-icon/react";
15
- import { e as z, f as M, i as dt, l as mt } from "./state-DSo43FAB.js";
16
- import ne from "@blocklet/pages-kit/builtin/markdown/markdown-renderer";
17
- import { useColorConvert as Ct } from "@blocklet/pages-kit/contexts/color";
18
- import { materialDark as re } from "react-syntax-highlighter/dist/esm/styles/prism";
19
- import ie from "@arcblock/react-hooks/lib/useBrowser";
20
- import ht from "@arcblock/ux/lib/Colors";
21
- import { ResponsiveImage as Nt, CustomComponentRenderer as ae } from "@blocklet/pages-kit/components";
22
- import { isGradient as se, isColorString as le } from "@blocklet/pages-kit/utils/style";
23
- import Bt from "@mui/material/useMediaQuery";
24
- import { join as K } from "pathe";
25
- import { withoutTrailingSlash as rt, isRelative as ce, parseURL as de } from "ufo";
26
- import { useMessage as me } from "@blocklet/embed/message";
27
- import { useLatest as pe } from "ahooks";
28
- import ue from "lodash/isEqual";
29
- import { EmbedIframe as he } from "@blocklet/embed/react";
30
- import { useLocaleContext as ge } from "@arcblock/ux/lib/Locale/context";
31
- import fe from "@arcblock/ux/lib/Screenshot";
32
- import { TwitterTimelineEmbed as xe } from "react-twitter-embed";
33
- import { useUpdate as be, useMount as ye } from "react-use";
34
- const Mt = "{{CUSTOM_VALUE}}", we = [
14
+ import { Icon as Bt } from "@iconify-icon/react";
15
+ import { e as A, f as B, i as dt, l as mt } from "./state-DSo43FAB.js";
16
+ import ae from "@blocklet/pages-kit/builtin/markdown/markdown-renderer";
17
+ import { useColorConvert as Mt } from "@blocklet/pages-kit/contexts/color";
18
+ import { materialDark as se } from "react-syntax-highlighter/dist/esm/styles/prism";
19
+ import le from "@arcblock/react-hooks/lib/useBrowser";
20
+ import ft from "@arcblock/ux/lib/Colors";
21
+ import { ResponsiveImage as Pt, CustomComponentRenderer as ce } from "@blocklet/pages-kit/components";
22
+ import { isGradient as de, isColorString as me } from "@blocklet/pages-kit/utils/style";
23
+ import It from "@mui/material/useMediaQuery";
24
+ import { join as X } from "pathe";
25
+ import { withoutTrailingSlash as rt, isRelative as pe, parseURL as ue } from "ufo";
26
+ import { useMessage as ge } from "@blocklet/embed/message";
27
+ import { useLatest as he } from "ahooks";
28
+ import fe from "lodash/isEqual";
29
+ import { EmbedIframe as xe } from "@blocklet/embed/react";
30
+ import { useLocaleContext as be } from "@arcblock/ux/lib/Locale/context";
31
+ import ye from "@arcblock/ux/lib/Screenshot";
32
+ import { TwitterTimelineEmbed as we } from "react-twitter-embed";
33
+ import { useUpdate as ve, useMount as ke } from "react-use";
34
+ const Wt = "{{CUSTOM_VALUE}}", _e = [
35
35
  {
36
36
  title: "None",
37
37
  value: "none",
@@ -52,7 +52,7 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
52
52
  value: "large",
53
53
  sx: { py: { xs: 7.5, md: 10, lg: 12.5, xl: 15 } }
54
54
  }
55
- ], ve = [
55
+ ], $e = [
56
56
  {
57
57
  title: "None",
58
58
  value: "none",
@@ -73,7 +73,7 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
73
73
  value: "large",
74
74
  sx: { py: { xs: 6, md: 9, lg: 9, xl: 11 } }
75
75
  }
76
- ], ke = [
76
+ ], Ce = [
77
77
  {
78
78
  title: "None",
79
79
  value: "none",
@@ -94,17 +94,17 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
94
94
  value: "large",
95
95
  sx: { px: { xs: 2.5, md: 10, lg: 12.5, xl: 15 } }
96
96
  }
97
- ], X = (t, e, o) => {
97
+ ], q = (t, e, o) => {
98
98
  const n = t.breakpoints.values[o];
99
99
  return `${e}${n ? ` (${n}px)` : ""}`;
100
- }, _e = [
100
+ }, Se = [
101
101
  {
102
102
  title: "100%",
103
103
  value: "full",
104
104
  sx: { maxWidth: "100%" }
105
105
  },
106
106
  {
107
- title: (t) => X(t, "Small", "sm"),
107
+ title: (t) => q(t, "Small", "sm"),
108
108
  value: "sm",
109
109
  sx: {
110
110
  maxWidth: (t) => t.breakpoints.values.sm,
@@ -113,17 +113,17 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
113
113
  }
114
114
  },
115
115
  {
116
- title: (t) => X(t, "Normal", "md"),
116
+ title: (t) => q(t, "Normal", "md"),
117
117
  value: "md",
118
118
  sx: { maxWidth: (t) => t.breakpoints.values.md, width: "100%", mx: "auto" }
119
119
  },
120
120
  {
121
- title: (t) => X(t, "Large", "lg"),
121
+ title: (t) => q(t, "Large", "lg"),
122
122
  value: "lg",
123
123
  sx: { maxWidth: (t) => t.breakpoints.values.lg, width: "100%", mx: "auto" }
124
124
  },
125
125
  {
126
- title: (t) => X(t, "Extra Large", "xl"),
126
+ title: (t) => q(t, "Extra Large", "xl"),
127
127
  value: "xl",
128
128
  sx: { maxWidth: (t) => t.breakpoints.values.xl, width: "100%", mx: "auto" }
129
129
  },
@@ -131,12 +131,12 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
131
131
  title: "Custom",
132
132
  value: "custom",
133
133
  sx: {
134
- maxWidth: Mt,
134
+ maxWidth: Wt,
135
135
  width: "100%",
136
136
  mx: "auto"
137
137
  }
138
138
  }
139
- ], $e = [
139
+ ], Ne = [
140
140
  {
141
141
  title: "None",
142
142
  value: "none",
@@ -157,7 +157,7 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
157
157
  value: "large",
158
158
  sx: { gap: { xs: 3, md: 5, lg: 5, xl: 7 } }
159
159
  }
160
- ], Se = [
160
+ ], Be = [
161
161
  {
162
162
  title: "None",
163
163
  value: "none",
@@ -178,16 +178,48 @@ const Mt = "{{CUSTOM_VALUE}}", we = [
178
178
  value: "large",
179
179
  sx: { p: { xs: 3, md: 6, lg: 6, xl: 9 } }
180
180
  }
181
- ], Ce = j(we, "value"), Ne = j(ve, "value"), Be = j(ke, "value"), Me = j(_e, "value"), Pe = j($e, "value"), Ie = j(Se, "value"), We = /* @__PURE__ */ new Map([
182
- ["baseSectionPaddingY", Ce],
183
- ["maxWidth", Me],
184
- ["paddingY", Ne],
185
- ["paddingX", Be],
186
- ["layoutBlockGap", Pe],
187
- ["layoutBlockPadding", Ie]
181
+ ], Me = [
182
+ {
183
+ title: "Start",
184
+ value: "start",
185
+ sx: { alignContent: "start" }
186
+ },
187
+ {
188
+ title: "End",
189
+ value: "end",
190
+ sx: { alignContent: "end" }
191
+ },
192
+ {
193
+ title: "Center",
194
+ value: "center",
195
+ sx: { alignContent: "center" }
196
+ },
197
+ {
198
+ title: "Space Between",
199
+ value: "space-between",
200
+ sx: { alignContent: "space-between" }
201
+ },
202
+ {
203
+ title: "Space Around",
204
+ value: "space-around",
205
+ sx: { alignContent: "space-around" }
206
+ },
207
+ {
208
+ title: "Space Evenly",
209
+ value: "space-evenly",
210
+ sx: { alignContent: "space-evenly" }
211
+ }
212
+ ], Pe = z(_e, "value"), Ie = z($e, "value"), We = z(Ce, "value"), Le = z(Se, "value"), Ae = z(Ne, "value"), ze = z(Be, "value"), Re = z(Me, "value"), je = /* @__PURE__ */ new Map([
213
+ ["baseSectionPaddingY", Pe],
214
+ ["maxWidth", Le],
215
+ ["paddingY", Ie],
216
+ ["paddingX", We],
217
+ ["layoutBlockGap", Ae],
218
+ ["layoutBlockPadding", ze],
219
+ ["layoutBlockAlignContent", Re]
188
220
  ]);
189
- function Q(t) {
190
- const { type: e, value: o, format: n = "sx", defaultValue: i = null } = t, a = We.get(e);
221
+ function U(t) {
222
+ const { type: e, value: o, format: n = "sx", defaultValue: i = null } = t, a = je.get(e);
191
223
  if (!a || typeof o != "string" || !o)
192
224
  return i;
193
225
  const c = o.startsWith("custom:"), s = c ? "custom" : o;
@@ -196,7 +228,7 @@ function Q(t) {
196
228
  if (c) {
197
229
  const d = o.replace("custom:", "");
198
230
  try {
199
- return JSON.parse(JSON.stringify(l || {}).replaceAll(Mt, d));
231
+ return JSON.parse(JSON.stringify(l || {}).replaceAll(Wt, d));
200
232
  } catch {
201
233
  }
202
234
  }
@@ -204,33 +236,33 @@ function Q(t) {
204
236
  }
205
237
  return i;
206
238
  }
207
- const Pt = vt({
239
+ const Lt = $t({
208
240
  page: null,
209
241
  getPageMeta: () => ({}),
210
242
  getPageMetaStyle: () => ({})
211
243
  });
212
- function Le() {
213
- return kt(Pt);
244
+ function Ee() {
245
+ return Ct(Lt);
214
246
  }
215
- function Cn({
247
+ function In({
216
248
  page: t,
217
249
  children: e,
218
250
  defaultLocale: o = "en",
219
251
  currentLocale: n
220
252
  }) {
221
- const i = N(() => t ? JSON.parse(JSON.stringify(t)) : null, [JSON.stringify(t)]), a = F(() => {
253
+ const i = S(() => t ? JSON.parse(JSON.stringify(t)) : null, [JSON.stringify(t)]), a = D(() => {
222
254
  if (!i) return {};
223
255
  const l = n || o;
224
256
  return i.locales?.[l] ?? {};
225
- }, [i, o, n]), c = F(
257
+ }, [i, o, n]), c = D(
226
258
  (l = "sx") => {
227
259
  const d = a();
228
- return !d || !d.style ? {} : Object.entries(d.style || {}).reduce((m, [h, u]) => {
260
+ return !d || !d.style ? {} : Object.entries(d.style || {}).reduce((m, [g, u]) => {
229
261
  if (!u) return m;
230
- const b = `${h}Custom`;
262
+ const b = `${g}Custom`;
231
263
  d.style[b];
232
- const f = Q({
233
- type: h,
264
+ const f = U({
265
+ type: g,
234
266
  value: u,
235
267
  format: l
236
268
  });
@@ -238,7 +270,7 @@ function Cn({
238
270
  }, {});
239
271
  },
240
272
  [a]
241
- ), s = N(
273
+ ), s = S(
242
274
  () => ({
243
275
  page: i,
244
276
  getPageMeta: a,
@@ -246,39 +278,39 @@ function Cn({
246
278
  }),
247
279
  [i, a, c]
248
280
  );
249
- return /* @__PURE__ */ r(Pt.Provider, { value: s, children: e });
281
+ return /* @__PURE__ */ r(Lt.Provider, { value: s, children: e });
250
282
  }
251
283
  const tt = ["editing", "height", "locale", "dev", "sx"];
252
- function ze(t) {
284
+ function Te(t) {
253
285
  const { className: e, ...o } = t;
254
- return /* @__PURE__ */ r(Re, { ...o, className: x("BlockBase-root", e) });
286
+ return /* @__PURE__ */ r(Oe, { ...o, className: x("BlockBase-root", e) });
255
287
  }
256
- const Re = _(g)`
288
+ const Oe = _(h)`
257
289
  position: relative;
258
290
  color: ${({ theme: t }) => t.palette.text.primary};
259
- `, It = vt({
291
+ `, At = $t({
260
292
  pages: [],
261
293
  project: void 0
262
- }), { Provider: Nn, Consumer: Bn } = It;
263
- function Wt() {
264
- return kt(It);
294
+ }), { Provider: Wn, Consumer: Ln } = At;
295
+ function zt() {
296
+ return Ct(At);
265
297
  }
266
- function je({ icon: t, ...e }) {
267
- return /* @__PURE__ */ r(St, { icon: t, ...e, ref: null });
298
+ function Ue({ icon: t, ...e }) {
299
+ return /* @__PURE__ */ r(Bt, { icon: t, ...e, ref: null });
268
300
  }
269
- function Ae({ icon: t, className: e = "", size: o = "1rem", ...n }) {
270
- return /* @__PURE__ */ r(Ee, { component: je, className: x("css-icon", e), size: o, ...n, icon: t });
301
+ function Fe({ icon: t, className: e = "", size: o = "1rem", ...n }) {
302
+ return /* @__PURE__ */ r(De, { component: Ue, className: x("css-icon", e), size: o, ...n, icon: t });
271
303
  }
272
- const Ee = _(g)`
304
+ const De = _(h)`
273
305
  &.css-icon {
274
306
  display: inline-block;
275
307
  width: ${({ size: t }) => t};
276
308
  height: ${({ size: t }) => t};
277
309
  }
278
310
  `;
279
- function Te({ icon: t, className: e = "", size: o = "1rem", imageMeta: n, ...i }) {
280
- const a = z(M(t), 540), [c, s] = Z(!1), l = $t();
281
- return c ? /* @__PURE__ */ r(Ae, { icon: "i-mdi:image", color: l.palette.grey[500], size: o, className: e, ...i }) : /* @__PURE__ */ r(Oe, { className: x("image-icon", e), size: o, ...i, children: /* @__PURE__ */ r(
311
+ function Ge({ icon: t, className: e = "", size: o = "1rem", imageMeta: n, ...i }) {
312
+ const a = A(B(t), 540), [c, s] = Z(!1), l = Nt();
313
+ return c ? /* @__PURE__ */ r(Fe, { icon: "i-mdi:image", color: l.palette.grey[500], size: o, className: e, ...i }) : /* @__PURE__ */ r(He, { className: x("image-icon", e), size: o, ...i, children: /* @__PURE__ */ r(
282
314
  "img",
283
315
  {
284
316
  className: "image-icon__image",
@@ -291,7 +323,7 @@ function Te({ icon: t, className: e = "", size: o = "1rem", imageMeta: n, ...i }
291
323
  }
292
324
  ) });
293
325
  }
294
- const Oe = _(g)`
326
+ const He = _(h)`
295
327
  display: inline-block;
296
328
  width: ${({ size: t }) => t};
297
329
  height: ${({ size: t }) => t};
@@ -303,28 +335,28 @@ const Oe = _(g)`
303
335
  `, pt = (t) => typeof t == "string" && /^[\w-_]+:[\w-_]+$/.test(t);
304
336
  function st({ icon: t, size: e = "1rem", imageMeta: o, ...n }) {
305
337
  const i = window.isNaN(e) ? e : `${e}px`;
306
- return pt(t) ? /* @__PURE__ */ r(St, { icon: t }) : /* @__PURE__ */ r(Ue, { component: Te, imageMeta: o, className: "base-icon", icon: t, size: i, ...n });
338
+ return pt(t) ? /* @__PURE__ */ r(Bt, { icon: t }) : /* @__PURE__ */ r(Ye, { component: Ge, imageMeta: o, className: "base-icon", icon: t, size: i, ...n });
307
339
  }
308
- const Ue = _(g)`
340
+ const Ye = _(h)`
309
341
  flex-shrink: 0;
310
342
  `;
311
- function U({ text: t, children: e, icon: o = "", endIcon: n, color: i = "primary", link: a = "", href: c = "", ...s }) {
343
+ function F({ text: t, children: e, icon: o = "", endIcon: n, color: i = "primary", link: a = "", href: c = "", ...s }) {
312
344
  const l = o ? /* @__PURE__ */ r(st, { icon: o }) : null, d = n ? /* @__PURE__ */ r(st, { icon: n }) : null, p = a || c, m = { ...s };
313
- return p && (m.href = p, at(p) && (m.target = m.target || "_blank")), /* @__PURE__ */ r(oe, { startIcon: l, endIcon: d, color: i, ...m, children: t || e });
345
+ return p && (m.href = p, at(p) && (m.target = m.target || "_blank")), /* @__PURE__ */ r(ie, { startIcon: l, endIcon: d, color: i, ...m, children: t || e });
314
346
  }
315
- function Lt({ editing: t, text: e, ...o }) {
316
- const { pages: n = [] } = Wt(), i = n.find((a) => a.id === (o.link || o.linkId));
347
+ function Rt({ editing: t, text: e, ...o }) {
348
+ const { pages: n = [] } = zt(), i = n.find((a) => a.id === (o.link || o.linkId));
317
349
  if (t)
318
- return /* @__PURE__ */ r(U, { ...B(o, ["link", "linkId"]), children: e });
350
+ return /* @__PURE__ */ r(F, { ...N(o, ["link", "linkId"]), children: e });
319
351
  if (i) {
320
352
  const a = i.path || "/";
321
- return /* @__PURE__ */ r(Zt, { to: a, children: /* @__PURE__ */ r(U, { ...B(o, ["link", "linkId"]), children: e }) });
353
+ return /* @__PURE__ */ r(oe, { to: a, children: /* @__PURE__ */ r(F, { ...N(o, ["link", "linkId"]), children: e }) });
322
354
  }
323
- return /* @__PURE__ */ r(U, { ...B(o, "linkId"), children: e });
355
+ return /* @__PURE__ */ r(F, { ...N(o, "linkId"), children: e });
324
356
  }
325
- function A({ actions: t, center: e, className: o, align: n }) {
357
+ function j({ actions: t, center: e, className: o, align: n }) {
326
358
  return t && t?.length ? /* @__PURE__ */ r(
327
- g,
359
+ h,
328
360
  {
329
361
  className: x(
330
362
  "flex gap-4 flex-wrap",
@@ -339,7 +371,7 @@ function A({ actions: t, center: e, className: o, align: n }) {
339
371
  }
340
372
  ) : null;
341
373
  }
342
- const Fe = "section", He = Ut(g)`
374
+ const Ve = "section", Je = Gt(h)`
343
375
  overflow: hidden;
344
376
 
345
377
  .section__title {
@@ -390,7 +422,7 @@ const Fe = "section", He = Ut(g)`
390
422
  margin-bottom: 0.5rem;
391
423
  }
392
424
  }
393
- @media (min-width: ${({ theme: t }) => t.breakpoints.values[Fe]}px) {
425
+ @media (min-width: ${({ theme: t }) => t.breakpoints.values[Ve]}px) {
394
426
  .section__tag {
395
427
  margin-bottom: 32px;
396
428
  }
@@ -415,13 +447,13 @@ function et({
415
447
  tag: d,
416
448
  badge: p,
417
449
  center: m,
418
- logo: h,
450
+ logo: g,
419
451
  titleAppearance: u,
420
452
  descriptionAppearance: b,
421
453
  ...f
422
454
  }) {
423
- const y = Ct();
424
- if (!t && !e && !n && !p && !d && !c && !s && !h) return null;
455
+ const y = Mt();
456
+ if (!t && !e && !n && !p && !d && !c && !s && !g) return null;
425
457
  const k = Math.max(Math.min(5, l + 1), 1), $ = {
426
458
  1: "xl:!text-3xl lg:!text-2xl md:!text-xl",
427
459
  2: "xl:!text-2xl lg:!text-xl md:!text-lg",
@@ -429,11 +461,11 @@ function et({
429
461
  4: "xl:!text-xl lg:!text-lg md:!text-md",
430
462
  5: "xl:!text-lg md:!text-md sm:!text-sm",
431
463
  6: "!text-sm"
432
- }, C = l === 0 ? "big" : `h${k}`, S = l === 0;
433
- return /* @__PURE__ */ w(He, { className: x("base-info", "lg:text-left", m && "!text-center", i), ...f, children: [
464
+ }, P = l === 0 ? "big" : `h${k}`, C = l === 0;
465
+ return /* @__PURE__ */ w(Je, { className: x("base-info", "lg:text-left", m && "!text-center", i), ...f, children: [
434
466
  c && /* @__PURE__ */ r("div", { children: c }),
435
467
  (d || p) && /* @__PURE__ */ r("div", { className: x("section__tag", a?.tag || a?.badge), children: d || p }),
436
- h && /* @__PURE__ */ r("img", { className: "w-[120px] m-auto mb-8", src: h, alt: "info", loading: "lazy" }),
468
+ g && /* @__PURE__ */ r("img", { className: "w-[120px] m-auto mb-8", src: g, alt: "info", loading: "lazy" }),
437
469
  t && /* @__PURE__ */ r(
438
470
  L,
439
471
  {
@@ -448,15 +480,15 @@ function et({
448
480
  "dark:text-gray-50",
449
481
  a.title,
450
482
  "page-kit-section__title",
451
- S ? "" : "section__title_non_big"
483
+ C ? "" : "section__title_non_big"
452
484
  ),
453
485
  component: `h${Math.max(l, 1)}`,
454
- variant: C,
486
+ variant: P,
455
487
  children: t
456
488
  }
457
489
  ),
458
490
  e && (o ? /* @__PURE__ */ r(
459
- g,
491
+ h,
460
492
  {
461
493
  sx: {
462
494
  ...b?.color && { color: `${y(b.color)} !important` }
@@ -469,7 +501,7 @@ function et({
469
501
  a.description,
470
502
  "page-kit-section__description"
471
503
  ),
472
- children: /* @__PURE__ */ r(ne, { codeOptions: { showActionButton: !1, theme: re }, children: e })
504
+ children: /* @__PURE__ */ r(ae, { codeOptions: { showActionButton: !1, theme: se }, children: e })
473
505
  }
474
506
  ) : /* @__PURE__ */ r(
475
507
  L,
@@ -492,7 +524,7 @@ function et({
492
524
  children: e
493
525
  }
494
526
  )),
495
- /* @__PURE__ */ r(A, { actions: n, center: m, className: "mt-8" }),
527
+ /* @__PURE__ */ r(j, { actions: n, center: m, className: "mt-8" }),
496
528
  s && /* @__PURE__ */ r("div", { children: s })
497
529
  ] });
498
530
  }
@@ -511,11 +543,11 @@ const ot = [
511
543
  "titleAppearance",
512
544
  "descriptionAppearance"
513
545
  ];
514
- function De() {
546
+ function Ke() {
515
547
  const t = navigator.userAgent.toLowerCase();
516
548
  return t.includes("safari") && !t.includes("chrome");
517
549
  }
518
- function Ge(t = "") {
550
+ function Xe(t = "") {
519
551
  if (t.startsWith("data:image/svg+xml,")) return !0;
520
552
  const e = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, o = /^(\/|\.\/|\.\.\/)(?:[^/]+\/)*[^/]+$/;
521
553
  return e.test(t) || o.test(t);
@@ -523,16 +555,16 @@ function Ge(t = "") {
523
555
  function O(t) {
524
556
  return t?.endsWith(".mp4") || t?.endsWith(".m4v") || t?.endsWith(".webm");
525
557
  }
526
- function Ye(t) {
558
+ function qe(t) {
527
559
  return t?.endsWith(".mp4") || t?.endsWith(".m4v") ? "video/mp4" : t?.endsWith(".webm") ? "video/webm" : void 0;
528
560
  }
529
- function Ve(t) {
561
+ function Qe(t) {
530
562
  let e = {};
531
- return typeof t == "string" ? se(t) ? e.image = t : (e.image = M(t), le(t) && (e.color = t, e.image = "")) : e = t, e;
563
+ return typeof t == "string" ? de(t) ? e.image = t : (e.image = B(t), me(t) && (e.color = t, e.image = "")) : e = t, e;
532
564
  }
533
- function Je() {
565
+ function Ze() {
534
566
  const [t, e] = Z(Date.now());
535
- return H(() => {
567
+ return G(() => {
536
568
  const o = () => {
537
569
  e(Date.now());
538
570
  };
@@ -541,14 +573,14 @@ function Je() {
541
573
  };
542
574
  }, []), t;
543
575
  }
544
- function gt(t, e, o, n, i) {
576
+ function xt(t, e, o, n, i) {
545
577
  let a = null;
546
- const { color: c = "", image: s } = Ve(e);
547
- if (s && Ge(s)) {
578
+ const { color: c = "", image: s } = Qe(e);
579
+ if (s && Xe(s)) {
548
580
  delete o.backgroundColor;
549
- const l = !(t.mobile.apple.device || De()) && O(s), d = O(s) && n ? z(M(n), 1200, "quality") : "";
581
+ const l = !(t.mobile.apple.device || Ke()) && O(s), d = O(s) && n ? A(B(n), 1200, "quality") : "";
550
582
  l ? a = /* @__PURE__ */ r(
551
- g,
583
+ h,
552
584
  {
553
585
  component: "video",
554
586
  className: "section-bg",
@@ -558,7 +590,7 @@ function gt(t, e, o, n, i) {
558
590
  controls: !1,
559
591
  playsInline: !0,
560
592
  poster: d,
561
- src: O(s) ? s : z(s, 1200, "quality"),
593
+ src: O(s) ? s : A(s, 1200, "quality"),
562
594
  sx: {
563
595
  width: "100%",
564
596
  position: "absolute",
@@ -572,7 +604,7 @@ function gt(t, e, o, n, i) {
572
604
  },
573
605
  s
574
606
  ) : a = /* @__PURE__ */ r(
575
- Nt,
607
+ Pt,
576
608
  {
577
609
  src: O(s) && n ? d : s,
578
610
  sizesAttr: {
@@ -600,9 +632,9 @@ function gt(t, e, o, n, i) {
600
632
  } else s ? o.backgroundImage = `${s} !important` : c && (o.backgroundColor = `${c} !important`);
601
633
  return a;
602
634
  }
603
- function Ke({ autoWidth: t, children: e, ...o }) {
635
+ function to({ autoWidth: t, children: e, ...o }) {
604
636
  return t ? /* @__PURE__ */ r(
605
- g,
637
+ h,
606
638
  {
607
639
  ...o,
608
640
  sx: [
@@ -613,7 +645,7 @@ function Ke({ autoWidth: t, children: e, ...o }) {
613
645
  ],
614
646
  children: e
615
647
  }
616
- ) : /* @__PURE__ */ r(Ft, { ...o, children: e });
648
+ ) : /* @__PURE__ */ r(Ht, { ...o, children: e });
617
649
  }
618
650
  function nt({
619
651
  dark: t = !1,
@@ -626,30 +658,30 @@ function nt({
626
658
  type: s,
627
659
  ...l
628
660
  }) {
629
- const d = { ...n }, p = Bt((u) => u.breakpoints.down("md"));
630
- t && (d.color = ht.common.white, d.backgroundColor = `${ht.grey[900]} !important`), i.show && (d.display = "flex");
631
- const m = N(() => !Number(l.boxMaxWidth) || p ? {
661
+ const d = { ...n }, p = It((u) => u.breakpoints.down("md"));
662
+ t && (d.color = ft.common.white, d.backgroundColor = `${ft.grey[900]} !important`), i.show && (d.display = "flex");
663
+ const m = S(() => !Number(l.boxMaxWidth) || p ? {
632
664
  width: "100%"
633
665
  } : s === "wall" && l.boxMaxWidth ? {
634
666
  maxWidth: `${l.boxMaxWidth}px !important`,
635
667
  width: "100%"
636
668
  } : {
637
669
  width: "100%"
638
- }, [l.boxMaxWidth, p, s]), h = Q({
670
+ }, [l.boxMaxWidth, p, s]), g = U({
639
671
  type: "baseSectionPaddingY",
640
672
  value: a || "normal",
641
673
  // section default is normal
642
674
  defaultValue: ""
643
675
  });
644
676
  return /* @__PURE__ */ r(
645
- Xe,
677
+ eo,
646
678
  {
647
679
  component: "section",
648
- styles: { ...d, ...h },
680
+ styles: { ...d, ...g },
649
681
  className: x("base-section", "px-2 md:px-5 lg:px-5 xl:px-10", o, {
650
682
  dark: t
651
683
  }),
652
- ...B(
684
+ ...N(
653
685
  l,
654
686
  "hoverStyle",
655
687
  "boxMaxWidth",
@@ -660,11 +692,11 @@ function nt({
660
692
  "titleAppearance",
661
693
  "descriptionAppearance"
662
694
  ),
663
- children: /* @__PURE__ */ r(Ke, { autoWidth: l?.autoWidth, className: x("section-content h-full"), sx: m, children: i.show ? /* @__PURE__ */ r(zt, { ...c, boxed: i, children: e }) : e })
695
+ children: /* @__PURE__ */ r(to, { autoWidth: l?.autoWidth, className: x("section-content h-full"), sx: m, children: i.show ? /* @__PURE__ */ r(jt, { ...c, boxed: i, children: e }) : e })
664
696
  }
665
697
  );
666
698
  }
667
- function zt({
699
+ function jt({
668
700
  background: t = "",
669
701
  backgroundVideoPoster: e,
670
702
  children: o,
@@ -674,23 +706,23 @@ function zt({
674
706
  styles: c = {},
675
707
  ...s
676
708
  }) {
677
- const l = { ...c, ...n }, d = Ct();
709
+ const l = { ...c, ...n }, d = Mt();
678
710
  let p = null;
679
- const m = Bt((b) => b.breakpoints.up("sm")), h = ie(), u = Je();
680
- return t && (p = gt(
681
- h,
711
+ const m = It((b) => b.breakpoints.up("sm")), g = le(), u = Ze();
712
+ return t && (p = xt(
713
+ g,
682
714
  typeof t == "string" ? d(t) : t,
683
715
  l,
684
716
  e,
685
717
  u
686
- )), i.show && (l.borderRadius = "10px", l.padding === void 0 && (l.padding = m ? "50px" : "20px"), i?.border && (l.border = "1px solid #c0c0c0"), i?.background && (p = gt(
687
- h,
718
+ )), i.show && (l.borderRadius = "10px", l.padding === void 0 && (l.padding = m ? "50px" : "20px"), i?.border && (l.border = "1px solid #c0c0c0"), i?.background && (p = xt(
719
+ g,
688
720
  typeof i?.background == "string" ? d(i?.background) : i?.background,
689
721
  l,
690
722
  i?.backgroundVideoPoster,
691
723
  u
692
724
  ))), /* @__PURE__ */ w(
693
- g,
725
+ h,
694
726
  {
695
727
  ...s,
696
728
  sx: {
@@ -705,7 +737,7 @@ function zt({
705
737
  }
706
738
  );
707
739
  }
708
- const Xe = _(zt)`
740
+ const eo = _(jt)`
709
741
  &:nth-of-type(even) {
710
742
  background: #f8f8f8;
711
743
  }
@@ -722,15 +754,15 @@ const Xe = _(zt)`
722
754
  }
723
755
  }
724
756
  `;
725
- function Rt(t) {
726
- if (t.type === Qt) {
727
- const o = (t.props.children || []).filter((n) => _t(n));
728
- return o.length === 1 ? Rt(o[0]) : o.length > 1;
757
+ function Et(t) {
758
+ if (t.type === ee) {
759
+ const o = (t.props.children || []).filter((n) => St(n));
760
+ return o.length === 1 ? Et(o[0]) : o.length > 1;
729
761
  }
730
762
  return Array.isArray(t);
731
763
  }
732
764
  const I = "&>*";
733
- function jt({ children: t, col: e, gap: o, className: n, align: i, sx: a, type: c, ...s } = {
765
+ function Tt({ children: t, col: e, gap: o, className: n, align: i, sx: a, type: c, ...s } = {
734
766
  children: null,
735
767
  className: "",
736
768
  col: 3,
@@ -739,7 +771,7 @@ function jt({ children: t, col: e, gap: o, className: n, align: i, sx: a, type:
739
771
  align: "center",
740
772
  type: "default"
741
773
  }) {
742
- const l = $t(), d = Number(Math.floor(100 / e * 100) / 100), p = {
774
+ const l = Nt(), d = Number(Math.floor(100 / e * 100) / 100), p = {
743
775
  center: "justify-center items-center",
744
776
  left: "justify-start items-center",
745
777
  right: "justify-end items-center",
@@ -757,10 +789,10 @@ function jt({ children: t, col: e, gap: o, className: n, align: i, sx: a, type:
757
789
  5: 3,
758
790
  6: 3
759
791
  }[e] || 0);
760
- Rt(t) || (u = 0);
792
+ Et(t) || (u = 0);
761
793
  const f = (e - 1) * u / e;
762
794
  let y = { ...a, gap: `${u}rem` };
763
- const k = { [I]: { width: "100%" } }, $ = {}, C = {}, S = {};
795
+ const k = { [I]: { width: "100%" } }, $ = {}, P = {}, C = {};
764
796
  switch (k.gap = "1rem", $.gap = `${u / 2}rem`, e) {
765
797
  case 3:
766
798
  case 4:
@@ -774,12 +806,12 @@ function jt({ children: t, col: e, gap: o, className: n, align: i, sx: a, type:
774
806
  width: `calc(50% - ${u / 2 / 2}rem)`
775
807
  }, $[I] = {
776
808
  width: `calc(50% - ${u / 2 / 2}rem)`
777
- }, C[I] = {
809
+ }, P[I] = {
778
810
  width: `calc(33.33% - ${u * 2 / 3}rem)`
779
811
  };
780
812
  break;
781
813
  }
782
- return y[I] = { width: `calc(${d}% - ${f}rem)` }, y[`@media (max-width: ${l.breakpoints.values.xl}px)`] = S, y[`@media (max-width: ${l.breakpoints.values.lg}px)`] = C, y[`@media (max-width: ${l.breakpoints.values.md}px)`] = $, y[`@media (max-width: ${l.breakpoints.values.sm}px)`] = k, c === "wall" && (y = { ...a, gap: `${u}rem` }, y[I] = { width: `calc(${d}% - ${f}rem)` }, k[I] = { width: `calc(45% - ${u / 2 / 2}rem)` }, y[`@media (max-width: ${l.breakpoints.values.sm}px)`] = k), /* @__PURE__ */ r(g, { className: x("flex flex-wrap flex-row h-full", m, n), sx: y, ...s, children: t });
814
+ return y[I] = { width: `calc(${d}% - ${f}rem)` }, y[`@media (max-width: ${l.breakpoints.values.xl}px)`] = C, y[`@media (max-width: ${l.breakpoints.values.lg}px)`] = P, y[`@media (max-width: ${l.breakpoints.values.md}px)`] = $, y[`@media (max-width: ${l.breakpoints.values.sm}px)`] = k, c === "wall" && (y = { ...a, gap: `${u}rem` }, y[I] = { width: `calc(${d}% - ${f}rem)` }, k[I] = { width: `calc(45% - ${u / 2 / 2}rem)` }, y[`@media (max-width: ${l.breakpoints.values.sm}px)`] = k), /* @__PURE__ */ r(h, { className: x("flex flex-wrap flex-row h-full", m, n), sx: y, ...s, children: t });
783
815
  }
784
816
  function E({ type: t = "", icon: e = "", size: o = "3rem", className: n = "", ...i }) {
785
817
  return /* @__PURE__ */ r(
@@ -793,7 +825,7 @@ function E({ type: t = "", icon: e = "", size: o = "3rem", className: n = "", ..
793
825
  }
794
826
  );
795
827
  }
796
- function qe({
828
+ function oo({
797
829
  to: t,
798
830
  base: e,
799
831
  children: o,
@@ -804,29 +836,29 @@ function qe({
804
836
  useRouterLink: s,
805
837
  ...l
806
838
  }) {
807
- const { pages: d = [], locale: p = "" } = {}, m = e ? K("/", e) : e || "";
808
- let h = a === "auto" ? "_self" : a, u = K(m, t);
839
+ const { pages: d = [], locale: p = "" } = {}, m = e ? X("/", e) : e || "";
840
+ let g = a === "auto" ? "_self" : a, u = X(m, t);
809
841
  const b = c ? at(u) : !1;
810
842
  if (e)
811
- return u = K(m, p, t), /* @__PURE__ */ r(
843
+ return u = X(m, p, t), /* @__PURE__ */ r(
812
844
  "a",
813
845
  {
814
846
  className: `no-underline ${n}`,
815
847
  href: rt(u),
816
848
  rel: "noreferrer noopener",
817
- target: h,
849
+ target: g,
818
850
  ...l,
819
851
  children: o
820
852
  }
821
853
  );
822
854
  if (at(t))
823
- a === "auto" && (h = "_blank"), u = t;
855
+ a === "auto" && (g = "_blank"), u = t;
824
856
  else {
825
- ce(u) && (u = K(window.location.pathname, u));
826
- const f = de(`${window.location.origin}${u}`), y = d.some((k) => k.pathname === f.pathname);
857
+ pe(u) && (u = X(window.location.pathname, u));
858
+ const f = ue(`${window.location.origin}${u}`), y = d.some((k) => k.pathname === f.pathname);
827
859
  if (s || y)
828
860
  return /* @__PURE__ */ r(
829
- te,
861
+ ne,
830
862
  {
831
863
  end: !0,
832
864
  to: rt(u),
@@ -842,7 +874,7 @@ function qe({
842
874
  className: `no-underline ${n}`,
843
875
  href: rt(u),
844
876
  rel: "noreferrer noopener",
845
- target: h,
877
+ target: g,
846
878
  ...l,
847
879
  children: [
848
880
  o,
@@ -851,7 +883,7 @@ function qe({
851
883
  }
852
884
  );
853
885
  }
854
- function D({
886
+ function H({
855
887
  prepend: t,
856
888
  append: e,
857
889
  children: o,
@@ -861,22 +893,22 @@ function D({
861
893
  ...c
862
894
  }) {
863
895
  let s = {};
864
- const { pages: l = [] } = Wt(), d = l.find((h) => h.id === c.link), p = !o || qt.Children.toArray(o).every((h) => h === null);
896
+ const { pages: l = [] } = zt(), d = l.find((g) => g.id === c.link), p = !o || te.Children.toArray(o).every((g) => g === null);
865
897
  c.link && (s = {
866
- component: qe,
898
+ component: oo,
867
899
  to: d?.path || c.link,
868
900
  useRouterLink: !0
869
901
  });
870
- const m = Ht();
902
+ const m = Yt();
871
903
  return /* @__PURE__ */ w(
872
- Qe,
904
+ no,
873
905
  {
874
906
  className: x("base-card card", { dark: i, "border-transparent": !a }, n),
875
907
  sx: {
876
908
  borderColor: m.palette.divider
877
909
  },
878
910
  ...s,
879
- ...B(c, ["listType", "dark", "iconColor", "link", "hoverStyle", "imageSize"]),
911
+ ...N(c, ["listType", "dark", "iconColor", "link", "hoverStyle", "imageSize"]),
880
912
  children: [
881
913
  t,
882
914
  !p && /* @__PURE__ */ r("div", { className: "card__body", children: o }),
@@ -885,7 +917,7 @@ function D({
885
917
  }
886
918
  );
887
919
  }
888
- const Qe = _(g)`
920
+ const no = _(h)`
889
921
  &.base-card {
890
922
  text-align: left;
891
923
  border-width: 1px;
@@ -901,14 +933,14 @@ const Qe = _(g)`
901
933
  padding: 15px 15px;
902
934
  }
903
935
  `;
904
- function G({
936
+ function Y({
905
937
  align: t = "left",
906
938
  title: e,
907
939
  titleProps: o = {},
908
940
  description: n,
909
941
  descriptionProps: i = {}
910
942
  }) {
911
- return /* @__PURE__ */ w(q, { children: [
943
+ return /* @__PURE__ */ w(Q, { children: [
912
944
  e && /* @__PURE__ */ r(
913
945
  L,
914
946
  {
@@ -935,7 +967,7 @@ function G({
935
967
  )
936
968
  ] });
937
969
  }
938
- function Ze({
970
+ function ro({
939
971
  image: t,
940
972
  title: e,
941
973
  description: o,
@@ -948,14 +980,14 @@ function Ze({
948
980
  align: d,
949
981
  ...p
950
982
  }) {
951
- const m = pt(t), h = z(M(t), 540);
983
+ const m = pt(t), g = A(B(t), 540);
952
984
  return /* @__PURE__ */ w(
953
- to,
985
+ io,
954
986
  {
955
987
  className: "card-article",
956
988
  ...p,
957
989
  prepend: /* @__PURE__ */ r("div", { className: "card__image__wrap", children: m && t ? /* @__PURE__ */ r(
958
- g,
990
+ h,
959
991
  {
960
992
  sx: {
961
993
  position: "absolute",
@@ -969,11 +1001,11 @@ function Ze({
969
1001
  },
970
1002
  children: /* @__PURE__ */ r(E, { icon: t, color: "primary.main" })
971
1003
  }
972
- ) : h && /* @__PURE__ */ r(
1004
+ ) : g && /* @__PURE__ */ r(
973
1005
  "img",
974
1006
  {
975
1007
  className: "card__image",
976
- src: h,
1008
+ src: g,
977
1009
  ...n,
978
1010
  alt: n.alt || i?.filename || "card-image",
979
1011
  width: i?.naturalWidth,
@@ -984,7 +1016,7 @@ function Ze({
984
1016
  ) }),
985
1017
  children: [
986
1018
  e || o ? /* @__PURE__ */ r(
987
- G,
1019
+ Y,
988
1020
  {
989
1021
  align: d,
990
1022
  title: e,
@@ -993,12 +1025,12 @@ function Ze({
993
1025
  descriptionProps: s
994
1026
  }
995
1027
  ) : null,
996
- l?.length ? /* @__PURE__ */ r(A, { align: d, actions: l, className: "mt-4" }) : null
1028
+ l?.length ? /* @__PURE__ */ r(j, { align: d, actions: l, className: "mt-4" }) : null
997
1029
  ]
998
1030
  }
999
1031
  );
1000
1032
  }
1001
- const to = _(D)`
1033
+ const io = _(H)`
1002
1034
  ${(t) => t.hoverStyle === "none" ? "" : t.link ? `transition: box-shadow ease .3s;
1003
1035
  &:hover {
1004
1036
  box-shadow: 0 0 10px rgba(95, 142, 244, 0.42);
@@ -1032,8 +1064,8 @@ const to = _(D)`
1032
1064
  height: 100%;
1033
1065
  object-position: top center;
1034
1066
  }
1035
- `, ft = "section";
1036
- function xt({
1067
+ `, bt = "section";
1068
+ function yt({
1037
1069
  title: t,
1038
1070
  image: e,
1039
1071
  imageMeta: o,
@@ -1044,7 +1076,7 @@ function xt({
1044
1076
  className: s = "",
1045
1077
  ...l
1046
1078
  }) {
1047
- return /* @__PURE__ */ w(eo, { className: x("card", `list-type-${c}`, s), align: a, ...l, children: [
1079
+ return /* @__PURE__ */ w(ao, { className: x("card", `list-type-${c}`, s), align: a, ...l, children: [
1048
1080
  e && /* @__PURE__ */ r(
1049
1081
  E,
1050
1082
  {
@@ -1054,18 +1086,18 @@ function xt({
1054
1086
  imageMeta: o
1055
1087
  }
1056
1088
  ),
1057
- t || n ? /* @__PURE__ */ r(G, { align: a, title: t, description: n }) : null,
1058
- i?.length ? /* @__PURE__ */ r(A, { align: a, actions: i, className: "mt-4" }) : null
1089
+ t || n ? /* @__PURE__ */ r(Y, { align: a, title: t, description: n }) : null,
1090
+ i?.length ? /* @__PURE__ */ r(j, { align: a, actions: i, className: "mt-4" }) : null
1059
1091
  ] });
1060
1092
  }
1061
- const eo = _(D)`
1093
+ const ao = _(H)`
1062
1094
  padding: 5vw 4vw;
1063
1095
  box-sizing: border-box;
1064
1096
  /* min-height: 320px; */
1065
1097
  color: inherit !important;
1066
1098
  border-radius: 0.5rem;
1067
1099
  /* ${({ dark: t, theme: e }) => `background-color:${t ? e.palette.grey[900] : e.palette.common.white};`} */
1068
- @media (max-width: ${({ theme: t }) => t.breakpoints.values[ft]}px) {
1100
+ @media (max-width: ${({ theme: t }) => t.breakpoints.values[bt]}px) {
1069
1101
  padding: 1.5rem 2rem;
1070
1102
  }
1071
1103
  @media (max-width: ${({ theme: t }) => t.breakpoints.values.sm}px) {
@@ -1113,13 +1145,13 @@ const eo = _(D)`
1113
1145
  }
1114
1146
  }
1115
1147
 
1116
- @media (min-width: ${({ theme: t }) => t.breakpoints.values[ft]}px) {
1148
+ @media (min-width: ${({ theme: t }) => t.breakpoints.values[bt]}px) {
1117
1149
  padding: 2rem 2rem;
1118
1150
  text-align: left;
1119
1151
  box-sizing: border-box;
1120
1152
  }
1121
1153
  `;
1122
- function oo({
1154
+ function so({
1123
1155
  image: t,
1124
1156
  title: e,
1125
1157
  description: o,
@@ -1132,14 +1164,14 @@ function oo({
1132
1164
  align: d,
1133
1165
  ...p
1134
1166
  }) {
1135
- const m = pt(t), h = z(M(t), 540);
1167
+ const m = pt(t), g = A(B(t), 540);
1136
1168
  return /* @__PURE__ */ w(
1137
- no,
1169
+ lo,
1138
1170
  {
1139
1171
  className: "card-article",
1140
1172
  ...p,
1141
1173
  prepend: /* @__PURE__ */ r("div", { className: "card__image__wrap", children: m && t ? /* @__PURE__ */ r(
1142
- g,
1174
+ h,
1143
1175
  {
1144
1176
  sx: {
1145
1177
  position: "absolute",
@@ -1153,12 +1185,12 @@ function oo({
1153
1185
  },
1154
1186
  children: /* @__PURE__ */ r(E, { icon: t, color: "primary.main" })
1155
1187
  }
1156
- ) : h && /* @__PURE__ */ r(
1157
- g,
1188
+ ) : g && /* @__PURE__ */ r(
1189
+ h,
1158
1190
  {
1159
1191
  component: "img",
1160
1192
  className: "card__image",
1161
- src: h,
1193
+ src: g,
1162
1194
  ...n,
1163
1195
  alt: n.alt || i?.filename || "card-image",
1164
1196
  style: { width: "100%", height: "100%", objectFit: a || "contain", objectPosition: "center" },
@@ -1174,7 +1206,7 @@ function oo({
1174
1206
  ) }),
1175
1207
  children: [
1176
1208
  e || o ? /* @__PURE__ */ r(
1177
- G,
1209
+ Y,
1178
1210
  {
1179
1211
  align: d,
1180
1212
  title: e,
@@ -1183,12 +1215,12 @@ function oo({
1183
1215
  descriptionProps: s
1184
1216
  }
1185
1217
  ) : null,
1186
- l?.length ? /* @__PURE__ */ r(A, { align: d, actions: l, className: "mt-4" }) : null
1218
+ l?.length ? /* @__PURE__ */ r(j, { align: d, actions: l, className: "mt-4" }) : null
1187
1219
  ]
1188
1220
  }
1189
1221
  );
1190
1222
  }
1191
- const no = _(D)`
1223
+ const lo = _(H)`
1192
1224
  ${(t) => t.hoverStyle === "none" ? "" : t.link ? `transition: box-shadow ease .3s;
1193
1225
  &:hover {
1194
1226
  box-shadow: 0 0 10px rgba(95, 142, 244, 0.42);
@@ -1212,8 +1244,8 @@ const no = _(D)`
1212
1244
  .card__image {
1213
1245
  max-height: 60px;
1214
1246
  }
1215
- `, bt = "section";
1216
- function ro({
1247
+ `, wt = "section";
1248
+ function co({
1217
1249
  title: t,
1218
1250
  image: e,
1219
1251
  imageMeta: o,
@@ -1224,15 +1256,15 @@ function ro({
1224
1256
  className: s = "",
1225
1257
  ...l
1226
1258
  }) {
1227
- return /* @__PURE__ */ r(io, { className: x("card", s), ...l, children: /* @__PURE__ */ w(g, { className: "flex items-center", children: [
1259
+ return /* @__PURE__ */ r(mo, { className: x("card", s), ...l, children: /* @__PURE__ */ w(h, { className: "flex items-center", children: [
1228
1260
  e && /* @__PURE__ */ r(E, { icon: e, color: "primary.main", size: n, imageMeta: o }),
1229
- /* @__PURE__ */ w(g, { className: "flex-1 ml-4", children: [
1230
- /* @__PURE__ */ r(G, { align: c, title: t, description: i }),
1231
- /* @__PURE__ */ r(A, { align: c, actions: a, className: "mt-4" })
1261
+ /* @__PURE__ */ w(h, { className: "flex-1 ml-4", children: [
1262
+ /* @__PURE__ */ r(Y, { align: c, title: t, description: i }),
1263
+ /* @__PURE__ */ r(j, { align: c, actions: a, className: "mt-4" })
1232
1264
  ] })
1233
1265
  ] }) });
1234
1266
  }
1235
- const io = _(D)`
1267
+ const mo = _(H)`
1236
1268
  padding: 5vw 4vw;
1237
1269
  text-align: left;
1238
1270
  box-sizing: border-box;
@@ -1240,7 +1272,7 @@ const io = _(D)`
1240
1272
  color: inherit !important;
1241
1273
  border-radius: 0.5rem;
1242
1274
  /* ${({ dark: t, theme: e }) => `background-color:${t ? e.palette.grey[900] : e.palette.common.white};`} */
1243
- @media (max-width: ${({ theme: t }) => t.breakpoints.values[bt]}px) {
1275
+ @media (max-width: ${({ theme: t }) => t.breakpoints.values[wt]}px) {
1244
1276
  padding: 1.5rem 2rem;
1245
1277
  }
1246
1278
  @media (max-width: ${({ theme: t }) => t.breakpoints.values.sm}px) {
@@ -1285,13 +1317,13 @@ const io = _(D)`
1285
1317
  }
1286
1318
  }
1287
1319
 
1288
- @media (min-width: ${({ theme: t }) => t.breakpoints.values[bt]}px) {
1320
+ @media (min-width: ${({ theme: t }) => t.breakpoints.values[wt]}px) {
1289
1321
  padding: 2rem 2rem;
1290
1322
  text-align: left;
1291
1323
  box-sizing: border-box;
1292
1324
  }
1293
1325
  `;
1294
- function ao({
1326
+ function po({
1295
1327
  title: t,
1296
1328
  titleProps: e = {},
1297
1329
  description: o,
@@ -1303,10 +1335,10 @@ function ao({
1303
1335
  hoverStyle: l,
1304
1336
  ...d
1305
1337
  }) {
1306
- return /* @__PURE__ */ w(so, { className: x("card-simple", c, `hover-style__${l}`), align: s, ...d, children: [
1338
+ return /* @__PURE__ */ w(uo, { className: x("card-simple", c, `hover-style__${l}`), align: s, ...d, children: [
1307
1339
  i && /* @__PURE__ */ r(E, { icon: i, color: "primary.main", imageMeta: a }),
1308
1340
  t || o ? /* @__PURE__ */ r(
1309
- G,
1341
+ Y,
1310
1342
  {
1311
1343
  align: s,
1312
1344
  title: t,
@@ -1317,7 +1349,7 @@ function ao({
1317
1349
  ) : null
1318
1350
  ] });
1319
1351
  }
1320
- const so = _(D)`
1352
+ const uo = _(H)`
1321
1353
  .card__title {
1322
1354
  color: ${({ theme: t }) => t.palette.text.primary};
1323
1355
  a {
@@ -1414,17 +1446,17 @@ const so = _(D)`
1414
1446
  }
1415
1447
  }
1416
1448
  `;
1417
- function lo({ type: t = "default", ...e }) {
1449
+ function go({ type: t = "default", ...e }) {
1418
1450
  const n = {
1419
- article: Ze,
1420
- simple: ao,
1421
- news: ro,
1422
- default: xt,
1423
- wall: oo
1424
- }[t] || xt;
1425
- return /* @__PURE__ */ r(n, { ...t === "news" ? e : B(e, "iconSize") });
1451
+ article: ro,
1452
+ simple: po,
1453
+ news: co,
1454
+ default: yt,
1455
+ wall: so
1456
+ }[t] || yt;
1457
+ return /* @__PURE__ */ r(n, { ...t === "news" ? e : N(e, "iconSize") });
1426
1458
  }
1427
- function co({
1459
+ function ho({
1428
1460
  list: t = [],
1429
1461
  align: e = "top",
1430
1462
  cards: o,
@@ -1437,11 +1469,11 @@ function co({
1437
1469
  type: d = "default",
1438
1470
  dark: p = !1,
1439
1471
  textAlign: m = "left",
1440
- hoverStyle: h,
1472
+ hoverStyle: g,
1441
1473
  ...u
1442
1474
  }) {
1443
1475
  return /* @__PURE__ */ r(
1444
- jt,
1476
+ Tt,
1445
1477
  {
1446
1478
  type: d,
1447
1479
  className: x("card-list py-1", l, "items-stretch"),
@@ -1450,7 +1482,7 @@ function co({
1450
1482
  align: e,
1451
1483
  ...u,
1452
1484
  children: o || t.map((b) => /* @__PURE__ */ r(
1453
- lo,
1485
+ go,
1454
1486
  {
1455
1487
  borderColor: n,
1456
1488
  iconColor: s,
@@ -1470,7 +1502,7 @@ function co({
1470
1502
  }
1471
1503
  );
1472
1504
  }
1473
- const mo = [
1505
+ const fo = [
1474
1506
  "align",
1475
1507
  "cards",
1476
1508
  "list",
@@ -1482,11 +1514,11 @@ const mo = [
1482
1514
  "type",
1483
1515
  "textAlign"
1484
1516
  ];
1485
- function P(t, e) {
1486
- const o = lt(t, e), n = B(t, e);
1517
+ function M(t, e) {
1518
+ const o = lt(t, e), n = N(t, e);
1487
1519
  return [o, n];
1488
1520
  }
1489
- const po = _(nt)`
1521
+ const xo = _(nt)`
1490
1522
  a .card {
1491
1523
  color: #404040;
1492
1524
  cursor: pointer;
@@ -1502,14 +1534,14 @@ const po = _(nt)`
1502
1534
  color: #404040;
1503
1535
  }
1504
1536
  `;
1505
- function uo({ className: t, ...e }) {
1506
- const [o, n] = P(e, ot), [i, a] = P(n, mo);
1507
- return /* @__PURE__ */ w(po, { className: x("section--card-list", t), type: e.type, ...a, children: [
1537
+ function bo({ className: t, ...e }) {
1538
+ const [o, n] = M(e, ot), [i, a] = M(n, fo);
1539
+ return /* @__PURE__ */ w(xo, { className: x("section--card-list", t), type: e.type, ...a, children: [
1508
1540
  Object.keys(o).length > 0 && /* @__PURE__ */ r(et, { center: !0, ...o, className: "mb-[2.5vw]" }),
1509
- /* @__PURE__ */ r(co, { ...i, dark: !!e.dark })
1541
+ /* @__PURE__ */ r(ho, { ...i, dark: !!e.dark })
1510
1542
  ] });
1511
1543
  }
1512
- const ho = _(uo)`
1544
+ const yo = _(bo)`
1513
1545
  .card__description {
1514
1546
  white-space: pre-wrap;
1515
1547
  }
@@ -1525,29 +1557,29 @@ const ho = _(uo)`
1525
1557
  background: inherit !important;
1526
1558
  }
1527
1559
  `;
1528
- function go({ section: t, ...e }) {
1529
- const [{ editing: o }, n] = P(e, tt), i = N(() => ({
1530
- ...B(n, ["listBorder", "list", "iconSize", "imageSize"]),
1560
+ function wo({ section: t, ...e }) {
1561
+ const [{ editing: o }, n] = M(e, tt), i = S(() => ({
1562
+ ...N(n, ["listBorder", "list", "iconSize", "imageSize"]),
1531
1563
  list: n.list?.map((a) => ({
1532
- ...B(a, "icon", "iconColor"),
1564
+ ...N(a, "icon", "iconColor"),
1533
1565
  image: ["news", "simple", "default"].includes(n.type) && a.icon ? a.icon : a.image,
1534
- actions: a.actions?.map?.((c) => /* @__PURE__ */ r(Lt, { ...c, editing: o }, c.id)),
1566
+ actions: a.actions?.map?.((c) => /* @__PURE__ */ r(Rt, { ...c, editing: o }, c.id)),
1535
1567
  border: n.listBorder,
1536
1568
  iconSize: n.iconSize,
1537
1569
  imageSize: n.imageSize,
1538
1570
  hoverStyle: n.hoverStyle
1539
1571
  }))
1540
1572
  }), [n]);
1541
- return /* @__PURE__ */ r(ho, { style: o ? { pointerEvents: "none" } : {}, ...i });
1573
+ return /* @__PURE__ */ r(yo, { style: o ? { pointerEvents: "none" } : {}, ...i });
1542
1574
  }
1543
- function fo({
1575
+ function vo({
1544
1576
  properties: t,
1545
1577
  section: e,
1546
1578
  locale: o,
1547
1579
  dev: n
1548
1580
  }) {
1549
1581
  return e?.config?.componentId ? /* @__PURE__ */ r(
1550
- ae,
1582
+ ce,
1551
1583
  {
1552
1584
  instanceId: e.id,
1553
1585
  componentId: e.config.componentId,
@@ -1559,7 +1591,7 @@ function fo({
1559
1591
  dev: n
1560
1592
  }
1561
1593
  ) : /* @__PURE__ */ r(
1562
- g,
1594
+ h,
1563
1595
  {
1564
1596
  sx: {
1565
1597
  textAlign: "center",
@@ -1578,7 +1610,7 @@ function fo({
1578
1610
  }
1579
1611
  );
1580
1612
  }
1581
- function xo({
1613
+ function ko({
1582
1614
  src: t,
1583
1615
  dataId: e,
1584
1616
  isEdit: o = !1,
@@ -1587,7 +1619,7 @@ function xo({
1587
1619
  }
1588
1620
  }) {
1589
1621
  return /* @__PURE__ */ r(
1590
- he,
1622
+ xe,
1591
1623
  {
1592
1624
  isEdit: o,
1593
1625
  embedId: e,
@@ -1599,12 +1631,12 @@ function xo({
1599
1631
  }
1600
1632
  );
1601
1633
  }
1602
- function bo({ dataId: t, src: e, actions: o, center: n, onLoad: i, ...a }) {
1603
- const [c, s] = P(a, ot);
1634
+ function _o({ dataId: t, src: e, actions: o, center: n, onLoad: i, ...a }) {
1635
+ const [c, s] = M(a, ot);
1604
1636
  return /* @__PURE__ */ w(nt, { ...s, children: [
1605
1637
  Object.keys(c).length > 0 && /* @__PURE__ */ r(et, { center: n, ...c }),
1606
1638
  /* @__PURE__ */ r(
1607
- xo,
1639
+ ko,
1608
1640
  {
1609
1641
  dataId: t,
1610
1642
  src: e,
@@ -1612,10 +1644,10 @@ function bo({ dataId: t, src: e, actions: o, center: n, onLoad: i, ...a }) {
1612
1644
  height: a.iframeHeight ? `${a.iframeHeight}px` : "100%"
1613
1645
  }
1614
1646
  ),
1615
- /* @__PURE__ */ r(A, { actions: o, center: n })
1647
+ /* @__PURE__ */ r(j, { actions: o, center: n })
1616
1648
  ] });
1617
1649
  }
1618
- const Mn = {
1650
+ const An = {
1619
1651
  src: "",
1620
1652
  embedUrl: "",
1621
1653
  title: "",
@@ -1626,21 +1658,21 @@ const Mn = {
1626
1658
  config: {},
1627
1659
  id: ""
1628
1660
  };
1629
- function yo({ section: t, id: e, src: o, ...n }) {
1630
- const i = `${e}-${n.locale}`, [{ editing: a }, c] = P(n, tt), s = ct({}), l = JSON.parse(JSON.stringify(c)), { message: d } = me(i, "server"), p = pe(JSON.parse(JSON.stringify(c.config) || "{}"));
1631
- return H(() => {
1661
+ function $o({ section: t, id: e, src: o, ...n }) {
1662
+ const i = `${e}-${n.locale}`, [{ editing: a }, c] = M(n, tt), s = ct({}), l = JSON.parse(JSON.stringify(c)), { message: d } = ge(i, "server"), p = he(JSON.parse(JSON.stringify(c.config) || "{}"));
1663
+ return G(() => {
1632
1664
  d && d.onInit(() => p.current);
1633
- }, [d]), H(() => {
1665
+ }, [d]), G(() => {
1634
1666
  const m = JSON.parse(JSON.stringify(c.config) || "{}");
1635
- ue(s.current, m) || (s.current = m, d?.send("config-set", m));
1636
- }, [d, c.config]), o ? /* @__PURE__ */ r(bo, { ...l, dataId: i, src: o, style: a ? { pointerEvents: "none" } : {} }) : /* @__PURE__ */ r(wo, { children: 'Please set the "src" attribute for this block' });
1667
+ fe(s.current, m) || (s.current = m, d?.send("config-set", m));
1668
+ }, [d, c.config]), o ? /* @__PURE__ */ r(_o, { ...l, dataId: i, src: o, style: a ? { pointerEvents: "none" } : {} }) : /* @__PURE__ */ r(Co, { children: 'Please set the "src" attribute for this block' });
1637
1669
  }
1638
- const wo = _("div")`
1670
+ const Co = _("div")`
1639
1671
  user-select: none;
1640
1672
  color: #999;
1641
1673
  padding: 8px;
1642
1674
  height: 200px;
1643
- `, vo = "none", ko = "none", _o = "transparent", $o = 12, So = ({
1675
+ `, So = "none", No = "none", Bo = "transparent", vt = "start", Mo = 12, Po = ({
1644
1676
  gridSettings: t,
1645
1677
  section: e,
1646
1678
  index: o,
@@ -1648,7 +1680,7 @@ const wo = _("div")`
1648
1680
  simulateMode: i = "desktop",
1649
1681
  isBackground: a
1650
1682
  }) => {
1651
- const c = t?.[i] ?? {}, s = c[e.id], l = Co(c);
1683
+ const c = t?.[i] ?? {}, s = c[e.id], l = Io(c);
1652
1684
  return {
1653
1685
  i: e.id,
1654
1686
  static: e?.locked || a,
@@ -1669,29 +1701,34 @@ const wo = _("div")`
1669
1701
  maxH: 1,
1670
1702
  maxY: l
1671
1703
  };
1672
- }, Co = (t) => Object.values(t).reduce((e, o) => Math.max(e, o.y || 0), 0) || 0, No = (t) => {
1673
- const { dev: e, id: o, section: n, onBlockRender: i } = t, a = e?.mode, c = Dt((v) => v.breakpoints.down("sm")), { t: s } = ge(), { sections: l, sectionIds: d, config: p } = n, { columns: m = $o, gridSettings: h, gap: u, padding: b, background: f } = p || {}, y = N(() => Q({
1704
+ }, Io = (t) => Object.values(t).reduce((e, o) => Math.max(e, o.y || 0), 0) || 0, Wo = (t) => {
1705
+ const { dev: e, id: o, section: n, onBlockRender: i } = t, a = e?.mode, c = Vt((v) => v.breakpoints.down("sm")), { t: s } = be(), { sections: l, sectionIds: d, config: p } = n, { columns: m = Mo, gridSettings: g, gap: u, padding: b, background: f, alignContent: y } = p || {}, k = S(() => U({
1674
1706
  type: "layoutBlockGap",
1675
- value: u ?? vo,
1707
+ value: u ?? So,
1676
1708
  format: "sx"
1677
- }), [u]), k = N(() => Q({
1709
+ }), [u]), $ = S(() => U({
1678
1710
  type: "layoutBlockPadding",
1679
- value: b ?? ko,
1711
+ value: b ?? No,
1680
1712
  format: "sx"
1681
- }), [b]), $ = F(
1682
- (v, R = !1, Y = 0) => {
1713
+ }), [b]), P = S(() => U({
1714
+ type: "layoutBlockAlignContent",
1715
+ // 使用类型断言避免类型错误
1716
+ value: y ?? vt,
1717
+ format: "sx"
1718
+ }), [y]), C = D(
1719
+ (v, R = !1, V = 0) => {
1683
1720
  if (!i || !v || !v.component || v.visibility === "hidden")
1684
1721
  return null;
1685
- const W = So({
1686
- gridSettings: h,
1722
+ const W = Po({
1723
+ gridSettings: g,
1687
1724
  section: v,
1688
- index: Y,
1725
+ index: V,
1689
1726
  columns: m,
1690
1727
  simulateMode: c ? "mobile" : "desktop",
1691
1728
  isBackground: R
1692
- }), V = W?.x ?? 0, J = W?.y ?? 0, T = W?.w ?? m, At = W?.h ?? 1, Et = W?.maxY ?? 0, Tt = !!n?.config?.backgroundSectionId;
1729
+ }), J = W?.x ?? 0, K = W?.y ?? 0, T = W?.w ?? m, Ot = W?.h ?? 1, Ut = W?.maxY ?? 0, Ft = !!n?.config?.backgroundSectionId;
1693
1730
  return /* @__PURE__ */ r(
1694
- g,
1731
+ h,
1695
1732
  {
1696
1733
  className: R ? "layout-block-background" : "layout-block-section",
1697
1734
  sx: {
@@ -1699,7 +1736,7 @@ const wo = _("div")`
1699
1736
  ...R ? {
1700
1737
  // 背景元素覆盖整个网格区域
1701
1738
  gridColumn: "1 / -1",
1702
- gridRow: `1 / ${Et + 1}`,
1739
+ gridRow: `1 / ${Ut + 1}`,
1703
1740
  zIndex: 0,
1704
1741
  width: "100%",
1705
1742
  height: "100%",
@@ -1710,9 +1747,9 @@ const wo = _("div")`
1710
1747
  } : {
1711
1748
  position: "relative",
1712
1749
  // 使用 grid 定位普通元素
1713
- gridColumn: `${V + 1} / span ${T}`,
1750
+ gridColumn: `${J + 1} / span ${T}`,
1714
1751
  // hasBackground 的话,不再 + 1,因为 background 会占用第一行
1715
- gridRow: `${J + (Tt ? 0 : 1)} / span ${At}`,
1752
+ gridRow: `${K + (Ft ? 0 : 1)} / span ${Ot}`,
1716
1753
  zIndex: 1,
1717
1754
  // Ensure content is above background
1718
1755
  minWidth: 0,
@@ -1741,20 +1778,20 @@ const wo = _("div")`
1741
1778
  v.id
1742
1779
  );
1743
1780
  },
1744
- [o, a, i, h, m, c]
1745
- ), { backgroundElements: C, contentElements: S } = N(() => {
1781
+ [o, a, i, g, m, c]
1782
+ ), { backgroundElements: ut, contentElements: gt } = S(() => {
1746
1783
  if (!d || !d.length || !l || !Object.keys(l).length)
1747
1784
  return { backgroundElements: [], contentElements: [] };
1748
1785
  const v = [], R = [];
1749
- return d?.forEach((Y, W) => {
1750
- const V = l[Y];
1751
- if (!V) return;
1752
- const J = n?.config?.backgroundSectionId === Y, T = $(V, J, W);
1753
- T && (J ? v.push(T) : R.push(T));
1786
+ return d?.forEach((V, W) => {
1787
+ const J = l[V];
1788
+ if (!J) return;
1789
+ const K = n?.config?.backgroundSectionId === V, T = C(J, K, W);
1790
+ T && (K ? v.push(T) : R.push(T));
1754
1791
  }), { backgroundElements: v, contentElements: R };
1755
- }, [$, l, d]);
1756
- return a === "draft" && !C?.length && !S?.length ? /* @__PURE__ */ w(
1757
- g,
1792
+ }, [C, l, d]);
1793
+ return a === "draft" && !ut?.length && !gt?.length ? /* @__PURE__ */ w(
1794
+ h,
1758
1795
  {
1759
1796
  sx: {
1760
1797
  gridColumn: "1 / -1",
@@ -1773,7 +1810,7 @@ const wo = _("div")`
1773
1810
  },
1774
1811
  children: [
1775
1812
  /* @__PURE__ */ r(
1776
- g,
1813
+ h,
1777
1814
  {
1778
1815
  sx: {
1779
1816
  fontSize: "48px",
@@ -1783,7 +1820,7 @@ const wo = _("div")`
1783
1820
  }
1784
1821
  ),
1785
1822
  /* @__PURE__ */ r(
1786
- g,
1823
+ h,
1787
1824
  {
1788
1825
  sx: {
1789
1826
  fontSize: "16px",
@@ -1794,7 +1831,7 @@ const wo = _("div")`
1794
1831
  }
1795
1832
  ),
1796
1833
  /* @__PURE__ */ r(
1797
- g,
1834
+ h,
1798
1835
  {
1799
1836
  sx: {
1800
1837
  opacity: 0.7,
@@ -1804,7 +1841,7 @@ const wo = _("div")`
1804
1841
  }
1805
1842
  ),
1806
1843
  /* @__PURE__ */ r(
1807
- g,
1844
+ h,
1808
1845
  {
1809
1846
  sx: {
1810
1847
  position: "absolute",
@@ -1829,32 +1866,32 @@ const wo = _("div")`
1829
1866
  ]
1830
1867
  }
1831
1868
  ) : /* @__PURE__ */ w(
1832
- g,
1869
+ h,
1833
1870
  {
1834
1871
  sx: {
1835
1872
  position: "relative",
1836
1873
  display: "grid",
1837
1874
  gridTemplateColumns: `repeat(${m}, minmax(0, 1fr))`,
1838
1875
  alignItems: "stretch",
1839
- alignContent: "start",
1840
1876
  width: "100%",
1841
1877
  height: "100%",
1842
1878
  minWidth: 0,
1843
- bgcolor: f ?? _o,
1879
+ bgcolor: f ?? Bo,
1844
1880
  boxSizing: "border-box",
1845
1881
  overflow: "hidden",
1846
1882
  // Prevent content overflow
1847
- ...y,
1848
- ...k
1883
+ ...k,
1884
+ ...$,
1885
+ alignContent: P?.alignContent ?? vt
1849
1886
  },
1850
1887
  children: [
1851
- C,
1852
- S
1888
+ ut,
1889
+ gt
1853
1890
  ]
1854
1891
  }
1855
1892
  );
1856
- }, Bo = ["title", "description", "actions", "badge", "tag", "prepend", "append", "logo"];
1857
- function Mo({
1893
+ }, Lo = ["title", "description", "actions", "badge", "tag", "prepend", "append", "logo"];
1894
+ function Ao({
1858
1895
  image: t,
1859
1896
  imageBorder: e,
1860
1897
  imageShadow: o,
@@ -1863,8 +1900,8 @@ function Mo({
1863
1900
  fullSizeImage: a,
1864
1901
  ...c
1865
1902
  }) {
1866
- const [s, l] = P(c, ot), d = Object.keys(s).length > 0 && Object.values(lt(s, Bo)).filter(Boolean).length > 0 && /* @__PURE__ */ r(et, { ...s }), p = _t(t) ? t : /* @__PURE__ */ r(g, { component: "img", src: t, alt: "", className: "block" }), m = ["phone", "macbook"].includes(e), h = t && /* @__PURE__ */ r(
1867
- g,
1903
+ const [s, l] = M(c, ot), d = Object.keys(s).length > 0 && Object.values(lt(s, Lo)).filter(Boolean).length > 0 && /* @__PURE__ */ r(et, { ...s }), p = St(t) ? t : /* @__PURE__ */ r(h, { component: "img", src: t, alt: "", className: "block" }), m = ["phone", "macbook"].includes(e), g = t && /* @__PURE__ */ r(
1904
+ h,
1868
1905
  {
1869
1906
  className: x(
1870
1907
  "section__image",
@@ -1881,7 +1918,7 @@ function Mo({
1881
1918
  },
1882
1919
  children: m ? (
1883
1920
  // @ts-ignore
1884
- /* @__PURE__ */ r(fe, { type: e, sx: { width: "100%" }, children: p })
1921
+ /* @__PURE__ */ r(ye, { type: e, sx: { width: "100%" }, children: p })
1885
1922
  ) : p
1886
1923
  }
1887
1924
  );
@@ -1900,7 +1937,7 @@ function Mo({
1900
1937
  ...l,
1901
1938
  boxProps: a ? { sx: { padding: 0, overflow: "hidden" } } : void 0,
1902
1939
  children: /* @__PURE__ */ r(
1903
- jt,
1940
+ Tt,
1904
1941
  {
1905
1942
  col: t ? 2 : 1,
1906
1943
  className: a ? it`
@@ -1917,19 +1954,19 @@ function Mo({
1917
1954
  }
1918
1955
  }
1919
1956
  ` : void 0,
1920
- children: i ? /* @__PURE__ */ w(q, { children: [
1921
- h,
1957
+ children: i ? /* @__PURE__ */ w(Q, { children: [
1958
+ g,
1922
1959
  d
1923
- ] }) : /* @__PURE__ */ w(q, { children: [
1960
+ ] }) : /* @__PURE__ */ w(Q, { children: [
1924
1961
  d,
1925
- h
1962
+ g
1926
1963
  ] })
1927
1964
  }
1928
1965
  )
1929
1966
  }
1930
1967
  );
1931
1968
  }
1932
- const Po = [
1969
+ const zo = [
1933
1970
  /youtu\.be\/([^#&?]{11})/,
1934
1971
  // youtu.be/<id>
1935
1972
  /\?v=([^#&?]{11})/,
@@ -1941,51 +1978,51 @@ const Po = [
1941
1978
  /\/v\/([^#&?]{11})/
1942
1979
  // /v/<id>
1943
1980
  ];
1944
- function Io(t) {
1981
+ function Ro(t) {
1945
1982
  if (/youtu\.?be/.test(t))
1946
- for (const e of Po) {
1983
+ for (const e of zo) {
1947
1984
  const o = e.exec(t)?.[1];
1948
1985
  if (o)
1949
1986
  return o;
1950
1987
  }
1951
1988
  }
1952
- function Wo(t) {
1953
- const e = Io(t);
1989
+ function jo(t) {
1990
+ const e = Ro(t);
1954
1991
  if (e)
1955
1992
  return `https://youtube.com/embed/${e}`;
1956
1993
  }
1957
- function Lo({ src: t }) {
1958
- return H(() => {
1994
+ function Eo({ src: t }) {
1995
+ return G(() => {
1959
1996
  import("@lottiefiles/lottie-player");
1960
1997
  }, []), /* @__PURE__ */ r("lottie-player", { autoplay: !0, loop: !0, mode: "normal", src: t });
1961
1998
  }
1962
- function zo(t) {
1999
+ function To(t) {
1963
2000
  return /* @__PURE__ */ r(
1964
- g,
2001
+ h,
1965
2002
  {
1966
2003
  sx: {
1967
2004
  maxHeight: 400,
1968
2005
  overflow: "hidden auto"
1969
2006
  },
1970
- children: /* @__PURE__ */ r(xe, { ...t })
2007
+ children: /* @__PURE__ */ r(we, { ...t })
1971
2008
  }
1972
2009
  );
1973
2010
  }
1974
- function Ro({ url: t }) {
2011
+ function Oo({ url: t }) {
1975
2012
  const e = ct(null), o = 495, [n, i] = Z(
1976
2013
  e.current ? e.current.offsetWidth * 0.5625 : o
1977
- ), a = F(() => {
2014
+ ), a = D(() => {
1978
2015
  const c = window.innerWidth > 990 ? 1 : window.innerWidth > 522 ? 1.2 : window.innerWidth > 400 ? 1.45 : 1.85, s = e.current ? e.current.offsetWidth * 0.5625 : o;
1979
2016
  return i(Math.floor(s * c));
1980
2017
  }, []);
1981
- return H(() => {
2018
+ return G(() => {
1982
2019
  window.addEventListener("resize", a);
1983
2020
  const c = window.innerWidth > 990 ? 1 : window.innerWidth > 522 ? 1.2 : window.innerWidth > 400 ? 1.45 : 1.85, s = e.current ? e.current.offsetWidth * 0.5625 : o;
1984
2021
  return i(Math.floor(s * c)), function() {
1985
2022
  window.removeEventListener("resize", a);
1986
2023
  };
1987
2024
  }, [n, a]), /* @__PURE__ */ r(
1988
- g,
2025
+ h,
1989
2026
  {
1990
2027
  component: "iframe",
1991
2028
  ref: e,
@@ -2002,7 +2039,7 @@ function Ro({ url: t }) {
2002
2039
  }
2003
2040
  );
2004
2041
  }
2005
- const Pn = {
2042
+ const zn = {
2006
2043
  image: "https://www.arcblock.io/static/ead0cabde7f2b7ff34db8f3e8ceca271/afc4b/builder.png",
2007
2044
  badge: "Develop · Deploy · Run",
2008
2045
  title: "The Future is Here: Blockchain and Decentralized Application Development",
@@ -2013,11 +2050,11 @@ const Pn = {
2013
2050
  actions: void 0,
2014
2051
  hasImage: !0,
2015
2052
  center: !1
2016
- }, jo = _(Mo)`
2053
+ }, Uo = _(Ao)`
2017
2054
  .section__description {
2018
2055
  }
2019
2056
  `;
2020
- function Ao({
2057
+ function Fo({
2021
2058
  hasImage: t,
2022
2059
  fullSizeImage: e,
2023
2060
  boxed: o,
@@ -2028,30 +2065,30 @@ function Ao({
2028
2065
  section: s,
2029
2066
  ...l
2030
2067
  }) {
2031
- const [{ editing: d }, p] = P({ ...l, boxed: e ? void 0 : o }, tt);
2032
- let m = Eo(p.image, n, e, i, a, c);
2068
+ const [{ editing: d }, p] = M({ ...l, boxed: e ? void 0 : o }, tt);
2069
+ let m = Do(p.image, n, e, i, a, c);
2033
2070
  t || (m = null);
2034
- let h = null;
2035
- return p.actions && (h = p.actions?.map?.((u, b) => /* @__PURE__ */ r(Lt, { ...u, editing: d }, b))), /* @__PURE__ */ r(
2036
- jo,
2071
+ let g = null;
2072
+ return p.actions && (g = p.actions?.map?.((u, b) => /* @__PURE__ */ r(Rt, { ...u, editing: d }, b))), /* @__PURE__ */ r(
2073
+ Uo,
2037
2074
  {
2038
2075
  ...p,
2039
2076
  style: d ? { pointerEvents: "none" } : {},
2040
2077
  image: m,
2041
2078
  fullSizeImage: t && e,
2042
- actions: h
2079
+ actions: g
2043
2080
  }
2044
2081
  );
2045
2082
  }
2046
- function Eo(t, e, o, n, i, a) {
2083
+ function Do(t, e, o, n, i, a) {
2047
2084
  if (t) {
2048
2085
  if (t.endsWith(".json"))
2049
- return /* @__PURE__ */ r(Lo, { src: t });
2086
+ return /* @__PURE__ */ r(Eo, { src: t });
2050
2087
  if (t.indexOf("twitter.com") !== -1)
2051
- return /* @__PURE__ */ r(zo, { sourceType: "url", url: t });
2052
- const c = Wo(t);
2088
+ return /* @__PURE__ */ r(To, { sourceType: "url", url: t });
2089
+ const c = jo(t);
2053
2090
  if (c)
2054
- return /* @__PURE__ */ r(Ro, { url: c });
2091
+ return /* @__PURE__ */ r(Oo, { url: c });
2055
2092
  const { naturalWidth: s, naturalHeight: l, filename: d } = n || {};
2056
2093
  if (O(t))
2057
2094
  return /* @__PURE__ */ r(
@@ -2069,16 +2106,16 @@ function Eo(t, e, o, n, i, a) {
2069
2106
  width: "100%",
2070
2107
  height: "100%"
2071
2108
  },
2072
- poster: z(M(e), o ? 1200 : 540, i),
2073
- children: /* @__PURE__ */ r("source", { src: M(t), type: Ye(t) })
2109
+ poster: A(B(e), o ? 1200 : 540, i),
2110
+ children: /* @__PURE__ */ r("source", { src: B(t), type: qe(t) })
2074
2111
  },
2075
2112
  t
2076
2113
  );
2077
2114
  const p = i === "quality" ? 1 : 0.6;
2078
2115
  return /* @__PURE__ */ r(
2079
- Nt,
2116
+ Pt,
2080
2117
  {
2081
- src: M(t),
2118
+ src: B(t),
2082
2119
  sizesAttr: {
2083
2120
  sm: 600 * p,
2084
2121
  md: 450 * p,
@@ -2098,15 +2135,15 @@ function Eo(t, e, o, n, i, a) {
2098
2135
  }
2099
2136
  return null;
2100
2137
  }
2101
- const In = ["production", "draft"];
2102
- function Wn({ mode: t, version: e } = {}) {
2138
+ const Rn = ["production", "draft"];
2139
+ function jn({ mode: t, version: e } = {}) {
2103
2140
  const o = e && typeof e == "number" ? { mode: t, version: e } : { mode: t };
2104
2141
  return dt.get(`/api/${mt()}/pages`, { params: o }).then((n) => n.data);
2105
2142
  }
2106
- function Ln({ mode: t, routes: e }) {
2143
+ function En({ mode: t, routes: e }) {
2107
2144
  return dt.post(`/api/${mt()}/pages/publish`, { mode: t, routes: e }).then((o) => o.data);
2108
2145
  }
2109
- function To({
2146
+ function Go({
2110
2147
  locale: t,
2111
2148
  sort: e,
2112
2149
  page: o,
@@ -2115,32 +2152,32 @@ function To({
2115
2152
  } = {}) {
2116
2153
  return dt.get(`/api/${mt()}/pages/toc`, { params: { locale: t, sort: e, page: o, limit: n, mode: i } }).then((a) => a.data);
2117
2154
  }
2118
- const zn = {
2155
+ const Tn = {
2119
2156
  style: "list",
2120
2157
  sort: "-updatedAt"
2121
- }, yt = 20;
2122
- function Oo({ style: t, sort: e, section: o, ...n }) {
2123
- const [{ editing: i, locale: a }, c] = P(n, tt), [s, l] = P(c, ot), [d, p] = Z(), m = ct(!1), h = be(), u = ee(), b = F(async () => {
2158
+ }, kt = 20;
2159
+ function Ho({ style: t, sort: e, section: o, ...n }) {
2160
+ const [{ editing: i, locale: a }, c] = M(n, tt), [s, l] = M(c, ot), [d, p] = Z(), m = ct(!1), g = ve(), u = re(), b = D(async () => {
2124
2161
  if (!m.current) {
2125
- m.current = !0, h();
2162
+ m.current = !0, g();
2126
2163
  try {
2127
- const f = d ? Math.floor(d.list.length / yt) + 1 : 1, { list: y, total: k } = await To({ locale: a, sort: e, page: f, limit: yt });
2164
+ const f = d ? Math.floor(d.list.length / kt) + 1 : 1, { list: y, total: k } = await Go({ locale: a, sort: e, page: f, limit: kt });
2128
2165
  p(($) => ({
2129
2166
  list: ($?.list ?? []).concat(y),
2130
2167
  total: k
2131
2168
  }));
2132
2169
  } finally {
2133
- m.current = !1, h();
2170
+ m.current = !1, g();
2134
2171
  }
2135
2172
  }
2136
- }, [d, a, e, h]);
2137
- return ye(() => {
2173
+ }, [d, a, e, g]);
2174
+ return ke(() => {
2138
2175
  b();
2139
2176
  }), /* @__PURE__ */ w(nt, { ...l, sx: i ? { pointerEvents: "none" } : {}, children: [
2140
2177
  Object.keys(s).length > 0 && /* @__PURE__ */ r(et, { ...s }),
2141
- d ? /* @__PURE__ */ w(q, { children: [
2178
+ d ? /* @__PURE__ */ w(Q, { children: [
2142
2179
  /* @__PURE__ */ r(
2143
- ut,
2180
+ ht,
2144
2181
  {
2145
2182
  container: !0,
2146
2183
  spacing: 2,
@@ -2148,7 +2185,7 @@ function Oo({ style: t, sort: e, section: o, ...n }) {
2148
2185
  justifyContent: "center"
2149
2186
  },
2150
2187
  children: d?.list.map((f) => /* @__PURE__ */ r(
2151
- ut,
2188
+ ht,
2152
2189
  {
2153
2190
  size: {
2154
2191
  xs: 12,
@@ -2156,24 +2193,24 @@ function Oo({ style: t, sort: e, section: o, ...n }) {
2156
2193
  md: t === "card" ? 3 : 12
2157
2194
  },
2158
2195
  children: /* @__PURE__ */ w(
2159
- Uo,
2196
+ Yo,
2160
2197
  {
2161
2198
  elevation: 0,
2162
2199
  className: x(t === "card" && "style-card"),
2163
2200
  onClick: i ? void 0 : () => u(f.slug),
2164
2201
  children: [
2165
2202
  !!f.image && /* @__PURE__ */ r(
2166
- Vt,
2203
+ Xt,
2167
2204
  {
2168
2205
  component: "img",
2169
2206
  alt: "",
2170
- image: z(M(f.image), 540),
2207
+ image: A(B(f.image), 540),
2171
2208
  loading: "lazy"
2172
2209
  }
2173
2210
  ),
2174
- /* @__PURE__ */ w(Jt, { children: [
2175
- /* @__PURE__ */ r(L, { variant: "h6", component: "div", className: wt, children: f.title || f.id }),
2176
- /* @__PURE__ */ r(L, { variant: "body2", className: wt, children: f.description })
2211
+ /* @__PURE__ */ w(qt, { children: [
2212
+ /* @__PURE__ */ r(L, { variant: "h6", component: "div", className: _t, children: f.title || f.id }),
2213
+ /* @__PURE__ */ r(L, { variant: "body2", className: _t, children: f.description })
2177
2214
  ] })
2178
2215
  ]
2179
2216
  }
@@ -2184,34 +2221,34 @@ function Oo({ style: t, sort: e, section: o, ...n }) {
2184
2221
  }
2185
2222
  ),
2186
2223
  /* @__PURE__ */ r(
2187
- g,
2224
+ h,
2188
2225
  {
2189
2226
  sx: {
2190
2227
  textAlign: "center",
2191
2228
  mt: 2
2192
2229
  },
2193
- children: d.total > d.list.length ? /* @__PURE__ */ r(U, { variant: "outlined", color: "secondary", onClick: b, loading: m.current, children: "More" }) : /* @__PURE__ */ r(U, { variant: "outlined", color: "secondary", disabled: !0, children: "No More" })
2230
+ children: d.total > d.list.length ? /* @__PURE__ */ r(F, { variant: "outlined", color: "secondary", onClick: b, loading: m.current, children: "More" }) : /* @__PURE__ */ r(F, { variant: "outlined", color: "secondary", disabled: !0, children: "No More" })
2194
2231
  }
2195
2232
  )
2196
2233
  ] }) : /* @__PURE__ */ r(
2197
- g,
2234
+ h,
2198
2235
  {
2199
2236
  sx: {
2200
2237
  p: 2,
2201
2238
  textAlign: "center"
2202
2239
  },
2203
- children: /* @__PURE__ */ r(Yt, { size: 24 })
2240
+ children: /* @__PURE__ */ r(Kt, { size: 24 })
2204
2241
  }
2205
2242
  )
2206
2243
  ] });
2207
2244
  }
2208
- const wt = it`
2245
+ const _t = it`
2209
2246
  display: -webkit-box;
2210
2247
  -webkit-box-orient: vertical;
2211
2248
  -webkit-line-clamp: 2;
2212
2249
  overflow: hidden;
2213
2250
  text-overflow: ellipsis;
2214
- `, Uo = _(Gt)`
2251
+ `, Yo = _(Jt)`
2215
2252
  border: 1px solid #e0e0e0;
2216
2253
  background-color: transparent;
2217
2254
  cursor: pointer;
@@ -2231,15 +2268,15 @@ const wt = it`
2231
2268
  max-height: 50vw;
2232
2269
  }
2233
2270
  }
2234
- `, Fo = {
2235
- iframe: yo,
2236
- section: Ao,
2237
- "section-card-list": go,
2238
- toc: Oo,
2239
- "custom-component": fo,
2240
- "layout-block": No
2271
+ `, Vo = {
2272
+ iframe: $o,
2273
+ section: Fo,
2274
+ "section-card-list": wo,
2275
+ toc: Ho,
2276
+ "custom-component": vo,
2277
+ "layout-block": Wo
2241
2278
  };
2242
- function Ho({
2279
+ function Jo({
2243
2280
  id: t,
2244
2281
  type: e,
2245
2282
  mode: o,
@@ -2249,7 +2286,7 @@ function Ho({
2249
2286
  page: c,
2250
2287
  ...s
2251
2288
  }) {
2252
- const l = Fo[e], { getPageMetaStyle: d } = Le(), p = N(() => {
2289
+ const l = Vo[e], { getPageMetaStyle: d } = Ee(), p = S(() => {
2253
2290
  const { height: u, ...b } = n;
2254
2291
  return e === "layout-block" && (b.onBlockRender = (f) => {
2255
2292
  const y = {
@@ -2259,15 +2296,15 @@ function Ho({
2259
2296
  ...lt(n, ["locale", "editing"]),
2260
2297
  ...f?.config,
2261
2298
  dev: y
2262
- }, { locale: C } = $;
2263
- let S = c?.dataSource?.[f?.id]?.[C];
2264
- return Xt(S) && (S = c?.dataSource?.[f?.id]?.[k ?? "en"]), /* @__PURE__ */ r(
2265
- Ho,
2299
+ }, { locale: P } = $;
2300
+ let C = c?.dataSource?.[f?.id]?.[P];
2301
+ return Zt(C) && (C = c?.dataSource?.[f?.id]?.[k ?? "en"]), /* @__PURE__ */ r(
2302
+ Jo,
2266
2303
  {
2267
2304
  ...f,
2268
2305
  config: {
2269
2306
  ...f?.section?.properties,
2270
- ...S,
2307
+ ...C,
2271
2308
  ...$
2272
2309
  },
2273
2310
  page: c,
@@ -2275,20 +2312,20 @@ function Ho({
2275
2312
  }
2276
2313
  );
2277
2314
  }), b;
2278
- }, [n, e]), m = N(() => {
2315
+ }, [n, e]), m = S(() => {
2279
2316
  const u = {};
2280
2317
  return e !== "custom-component" && (u.height = n.height), u.sx = a ? void 0 : d("sx"), u.id = `BlockBase-${t}`, u;
2281
- }, [n.height, a, e, d]), h = l && /* @__PURE__ */ r(l, { mode: o, ...p, id: t, section: i });
2282
- return h ? /* @__PURE__ */ r(ze, { ...s, ...m, children: h }) : /* @__PURE__ */ r(Do, { type: e });
2318
+ }, [n.height, a, e, d]), g = l && /* @__PURE__ */ r(l, { mode: o, ...p, id: t, section: i });
2319
+ return g ? /* @__PURE__ */ r(Te, { ...s, ...m, children: g }) : /* @__PURE__ */ r(Ko, { type: e });
2283
2320
  }
2284
- function Do({ type: t }) {
2321
+ function Ko({ type: t }) {
2285
2322
  return /* @__PURE__ */ r(
2286
- g,
2323
+ h,
2287
2324
  {
2288
2325
  sx: {
2289
2326
  p: 2
2290
2327
  },
2291
- children: /* @__PURE__ */ w(Kt, { icon: /* @__PURE__ */ r(Ot, {}), color: "error", children: [
2328
+ children: /* @__PURE__ */ w(Qt, { icon: /* @__PURE__ */ r(Dt, {}), color: "error", children: [
2292
2329
  "Unsupported Block `",
2293
2330
  t,
2294
2331
  "`"
@@ -2297,13 +2334,13 @@ function Do({ type: t }) {
2297
2334
  );
2298
2335
  }
2299
2336
  export {
2300
- Ho as B,
2301
- Mn as I,
2302
- Nn as P,
2303
- In as S,
2304
- zn as T,
2305
- Cn as a,
2306
- Pn as b,
2307
- Wn as g,
2308
- Ln as p
2337
+ Jo as B,
2338
+ An as I,
2339
+ Wn as P,
2340
+ Rn as S,
2341
+ Tn as T,
2342
+ In as a,
2343
+ zn as b,
2344
+ jn as g,
2345
+ En as p
2309
2346
  };