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

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