@blocklet/pages-kit-inner-components 0.5.47 → 0.5.49

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.
Files changed (35) hide show
  1. package/lib/cjs/add-component.js +19 -19
  2. package/lib/cjs/chunks/{array-Cip5uTnI.js → array-BqHuYyfx.js} +1 -1
  3. package/lib/cjs/chunks/{config-string-CEipCOnU.js → config-string-4bVR9Vc8.js} +1 -1
  4. package/lib/cjs/chunks/{draft-data-F0V4PcIs.js → draft-data-CuZfaQ4s.js} +1 -1
  5. package/lib/cjs/chunks/{home-BCFoaIEZ.js → home-CQTuGad2.js} +3 -3
  6. package/lib/cjs/chunks/{publish-button-Bbd4z1_d.js → publish-button-1xmfwN7o.js} +1 -1
  7. package/lib/cjs/chunks/site-state-BtZ8o3J2.js +57 -0
  8. package/lib/cjs/chunks/state-BVdbNJCA.js +1 -0
  9. package/lib/cjs/components.js +1 -1
  10. package/lib/cjs/home.js +1 -1
  11. package/lib/cjs/locales.js +2 -2
  12. package/lib/cjs/project-html.js +1 -1
  13. package/lib/cjs/resources.js +1 -1
  14. package/lib/cjs/setting.js +3 -3
  15. package/lib/cjs/site-state.js +1 -1
  16. package/lib/cjs/theme.js +1 -1
  17. package/lib/es/add-component.js +18 -17
  18. package/lib/es/chunks/{array-DM0x2Sjw.js → array-c6HYTLze.js} +1 -1
  19. package/lib/es/chunks/{config-string-Dw6sJMn_.js → config-string-WMpFf-7V.js} +1 -1
  20. package/lib/es/chunks/{draft-data-sTSk4UTm.js → draft-data-CWM--ooz.js} +1 -1
  21. package/lib/es/chunks/{home-ClxOpmCx.js → home-DQjaiv2F.js} +4 -4
  22. package/lib/es/chunks/{publish-button-CKXdANG9.js → publish-button-wYeS7m-g.js} +3 -3
  23. package/lib/es/chunks/{site-state-BeEHvakk.js → site-state-D-moj9fA.js} +527 -550
  24. package/lib/es/chunks/{state-COB6reM7.js → state-l--dTdHq.js} +87 -88
  25. package/lib/es/components.js +1 -1
  26. package/lib/es/home.js +3 -3
  27. package/lib/es/locales.js +2 -2
  28. package/lib/es/project-html.js +1 -1
  29. package/lib/es/resources.js +1 -1
  30. package/lib/es/setting.js +94 -93
  31. package/lib/es/site-state.js +6 -5
  32. package/lib/es/theme.js +34 -34
  33. package/package.json +3 -3
  34. package/lib/cjs/chunks/site-state-CeQEnrvX.js +0 -57
  35. package/lib/cjs/chunks/state-UwRWAZRe.js +0 -1
package/lib/es/setting.js CHANGED
@@ -1,51 +1,52 @@
1
1
  import { jsx as r, jsxs as O, Fragment as q } from "react/jsx-runtime";
2
- import { t as ge, g as We, b as ae, E as ur, n as Ke, h as Pe } from "./chunks/state-COB6reM7.js";
3
- import pe from "@arcblock/ux/lib/Empty";
2
+ import { t as ge, g as We, b as pe, E as ur, h as Pe } from "./chunks/state-l--dTdHq.js";
3
+ import te from "@arcblock/ux/lib/Empty";
4
4
  import { useLocaleContext as V } from "@arcblock/ux/lib/Locale/context";
5
5
  import { CodeEditor as ke } from "@blocklet/code-editor";
6
6
  import ar from "@mui/icons-material/AddRounded";
7
7
  import pr from "@mui/icons-material/ArrowDownward";
8
8
  import mr from "@mui/icons-material/ArrowUpward";
9
9
  import fr from "@mui/icons-material/DeleteOutline";
10
- import { Typography as W, TextField as R, Stack as j, FormLabel as se, Box as N, TableContainer as hr, Paper as te, Table as Me, TableHead as Fe, TableRow as ce, TableCell as de, TableBody as Je, Button as A, IconButton as ie, InputAdornment as ne, alpha as fe, Tooltip as Y, buttonClasses as br, Dialog as we, DialogTitle as _e, DialogContent as $e, DialogActions as He, FormControlLabel as Ge, Checkbox as yr, Autocomplete as Le, Switch as vr, MenuItem as he, Collapse as xr, Divider as gr, Popper as Pr } from "@mui/material";
10
+ import { Typography as W, TextField as R, Stack as j, FormLabel as ce, Box as N, TableContainer as hr, Paper as ie, Table as Ke, TableHead as Me, TableRow as de, TableCell as ue, TableBody as Fe, Button as A, IconButton as ne, InputAdornment as le, alpha as fe, Tooltip as Y, buttonClasses as br, Dialog as we, DialogTitle as Je, DialogContent as _e, DialogActions as $e, FormControlLabel as He, Checkbox as yr, Autocomplete as Ge, Switch as vr, MenuItem as he, Collapse as xr, Divider as gr, Popper as Pr } from "@mui/material";
11
11
  import U from "lodash/sortBy";
12
12
  import { useCallback as D, useMemo as re, useRef as H, useId as kr, useEffect as _, useState as G } from "react";
13
- import { useUpdate as Ye } from "react-use";
13
+ import { useUpdate as Le } from "react-use";
14
14
  import { ColorItem as wr, ConfigColorDialog as Sr } from "@blocklet/pages-kit/builtin/color-picker";
15
- import { C as Ir } from "./chunks/config-string-Dw6sJMn_.js";
15
+ import { C as Ir } from "./chunks/config-string-WMpFf-7V.js";
16
16
  import J from "lodash/isEmpty";
17
- import qe from "lodash/set";
17
+ import Ye from "lodash/set";
18
18
  import * as be from "yaml";
19
- import { UploaderButton as Qe, UploaderProvider as me, useUploader as Or, getImageSize as Cr, getVideoSize as Nr } from "@blocklet/pages-kit/builtin/uploader";
19
+ import { UploaderButton as qe, UploaderProvider as me, useUploader as Or, getImageSize as Cr, getVideoSize as Nr } from "@blocklet/pages-kit/builtin/uploader";
20
20
  import jr from "lodash/cloneDeep";
21
21
  import ye from "@arcblock/ux/lib/Toast";
22
- import { CustomComponentRenderer as Xe, transpileAndLoadScript as zr, getPropertiesFromCode as Rr } from "@blocklet/pages-kit/components";
22
+ import { CustomComponentRenderer as Qe, transpileAndLoadScript as zr, getPropertiesFromCode as Rr } from "@blocklet/pages-kit/components";
23
23
  import { parsePropertyValue as Vr } from "@blocklet/pages-kit/utils/property";
24
24
  import { unstable_useNumberInput as Er, ClickAwayListener as Tr } from "@mui/base";
25
- import { VisibilityOffRounded as Ar, VisibilityRounded as Dr, DeleteOutlineRounded as Wr, DragIndicatorRounded as Ur, TranslateRounded as Ze, AddRounded as er, InfoRounded as rr, PsychologyAlt as Br, StarRounded as Kr, SettingsRounded as tr } from "@mui/icons-material";
26
- import { getYjsValue as le } from "@syncedstore/core";
25
+ import { VisibilityOffRounded as Ar, VisibilityRounded as Dr, DeleteOutlineRounded as Wr, DragIndicatorRounded as Ur, TranslateRounded as Xe, AddRounded as Ze, InfoRounded as er, PsychologyAlt as Br, StarRounded as Kr, SettingsRounded as rr } from "@mui/icons-material";
26
+ import { getYjsValue as oe } from "@syncedstore/core";
27
27
  import { useUpdate as Mr, useReactive as Fr } from "ahooks";
28
28
  import Jr from "lodash/assign";
29
29
  import _r from "lodash/get";
30
30
  import $r from "lodash/has";
31
31
  import Hr from "lodash/isEqual";
32
- import ue from "lodash/isNil";
32
+ import ae from "lodash/isNil";
33
33
  import Gr from "lodash/isObject";
34
34
  import Lr from "lodash/keyBy";
35
35
  import Yr from "lodash/omit";
36
36
  import qr from "lodash/pick";
37
37
  import Qr from "lodash/reduce";
38
- import { usePopupState as Se, bindTrigger as Ie, bindDialog as ir, bindPopper as Xr } from "material-ui-popup-state/hooks";
38
+ import { usePopupState as Se, bindTrigger as Ie, bindDialog as tr, bindPopper as Xr } from "material-ui-popup-state/hooks";
39
39
  import { ErrorBoundary as Zr } from "react-error-boundary";
40
40
  import { cx as et } from "@emotion/css";
41
- import { useDrop as nr, useDrag as rt } from "react-dnd";
41
+ import { useDrop as ir, useDrag as rt } from "react-dnd";
42
+ import { nextId as nr } from "@blocklet/pages-kit/utils/common";
42
43
  function tt({
43
44
  onClick: e,
44
45
  disabled: t,
45
46
  sx: i,
46
47
  ...n
47
48
  }) {
48
- return /* @__PURE__ */ r(ie, { size: "small", color: "warning", variant: "outlined", disabled: t, onClick: e, ...n, children: /* @__PURE__ */ r(fr, { fontSize: "small" }) });
49
+ return /* @__PURE__ */ r(ne, { size: "small", color: "warning", variant: "outlined", disabled: t, onClick: e, ...n, children: /* @__PURE__ */ r(fr, { fontSize: "small" }) });
49
50
  }
50
51
  function it({
51
52
  onClick: e,
@@ -53,7 +54,7 @@ function it({
53
54
  sx: i,
54
55
  ...n
55
56
  }) {
56
- return /* @__PURE__ */ r(ie, { size: "small", color: "primary", disabled: t, onClick: e, ...n, children: /* @__PURE__ */ r(mr, { fontSize: "small" }) });
57
+ return /* @__PURE__ */ r(ne, { size: "small", color: "primary", disabled: t, onClick: e, ...n, children: /* @__PURE__ */ r(mr, { fontSize: "small" }) });
57
58
  }
58
59
  function nt({
59
60
  onClick: e,
@@ -61,7 +62,7 @@ function nt({
61
62
  sx: i,
62
63
  ...n
63
64
  }) {
64
- return /* @__PURE__ */ r(ie, { size: "small", color: "primary", disabled: t, onClick: e, ...n, children: /* @__PURE__ */ r(pr, { fontSize: "small" }) });
65
+ return /* @__PURE__ */ r(ne, { size: "small", color: "primary", disabled: t, onClick: e, ...n, children: /* @__PURE__ */ r(pr, { fontSize: "small" }) });
65
66
  }
66
67
  function lt({
67
68
  label: e,
@@ -74,7 +75,7 @@ function lt({
74
75
  renderItem: w,
75
76
  ...P
76
77
  }) {
77
- const { t: b, locale: g } = V(), v = Ye(), l = D(
78
+ const { t: b, locale: g } = V(), v = Le(), l = D(
78
79
  (a) => {
79
80
  i(ge(a, p.type));
80
81
  },
@@ -208,9 +209,9 @@ function lt({
208
209
  c.length
209
210
  ]);
210
211
  return y ? /* @__PURE__ */ O(j, { width: "100%", gap: 1, children: [
211
- e && /* @__PURE__ */ r(se, { children: e }),
212
- c.length > 0 ? /* @__PURE__ */ r(hr, { component: te, variant: "outlined", sx: { borderRadius: 1, mb: 1 }, children: /* @__PURE__ */ O(
213
- Me,
212
+ e && /* @__PURE__ */ r(ce, { children: e }),
213
+ c.length > 0 ? /* @__PURE__ */ r(hr, { component: ie, variant: "outlined", sx: { borderRadius: 1, mb: 1 }, children: /* @__PURE__ */ O(
214
+ Ke,
214
215
  {
215
216
  size: "small",
216
217
  sx: {
@@ -227,8 +228,8 @@ function lt({
227
228
  borderCollapse: "collapse"
228
229
  },
229
230
  children: [
230
- /* @__PURE__ */ r(Fe, { sx: { display: "none" }, children: /* @__PURE__ */ r(ce, { children: I.map((a) => /* @__PURE__ */ r(
231
- de,
231
+ /* @__PURE__ */ r(Me, { sx: { display: "none" }, children: /* @__PURE__ */ r(de, { children: I.map((a) => /* @__PURE__ */ r(
232
+ ue,
232
233
  {
233
234
  width: a.width,
234
235
  align: a.align || "left",
@@ -237,8 +238,8 @@ function lt({
237
238
  },
238
239
  a.field
239
240
  )) }) }),
240
- /* @__PURE__ */ r(Je, { children: c.map((a, S, C) => /* @__PURE__ */ r(
241
- ce,
241
+ /* @__PURE__ */ r(Fe, { children: c.map((a, S, C) => /* @__PURE__ */ r(
242
+ de,
242
243
  {
243
244
  sx: {
244
245
  borderBottom: S < C.length - 1 ? "1px solid" : "none",
@@ -248,7 +249,7 @@ function lt({
248
249
  }
249
250
  },
250
251
  children: I.map((z) => /* @__PURE__ */ r(
251
- de,
252
+ ue,
252
253
  {
253
254
  width: z.width,
254
255
  align: z.align || "left",
@@ -268,7 +269,7 @@ function lt({
268
269
  )) })
269
270
  ]
270
271
  }
271
- ) }) : /* @__PURE__ */ r(pe, { style: { fontSize: 12, height: x }, children: b("maker.properties.arrayEmpty") }),
272
+ ) }) : /* @__PURE__ */ r(te, { style: { fontSize: 12, height: x }, children: b("maker.properties.arrayEmpty") }),
272
273
  /* @__PURE__ */ r(
273
274
  A,
274
275
  {
@@ -282,7 +283,7 @@ function lt({
282
283
  }
283
284
  )
284
285
  ] }) : /* @__PURE__ */ O(j, { width: "100%", gap: 1, children: [
285
- e && /* @__PURE__ */ r(se, { children: e }),
286
+ e && /* @__PURE__ */ r(ce, { children: e }),
286
287
  /* @__PURE__ */ r(N, { sx: { border: 1, borderColor: "divider", borderRadius: 1, minHeight: 150 }, children: /* @__PURE__ */ r(
287
288
  ke,
288
289
  {
@@ -314,7 +315,7 @@ function ot({
314
315
  value: e,
315
316
  onChange: t,
316
317
  InputProps: {
317
- endAdornment: /* @__PURE__ */ r(ne, { position: "end", children: /* @__PURE__ */ r(
318
+ endAdornment: /* @__PURE__ */ r(le, { position: "end", children: /* @__PURE__ */ r(
318
319
  wr,
319
320
  {
320
321
  color: e ?? "",
@@ -356,7 +357,7 @@ function st({
356
357
  (c) => c.data.visible !== !1 && c.data.key
357
358
  );
358
359
  return /* @__PURE__ */ O(j, { width: "100%", children: [
359
- /* @__PURE__ */ r(se, { sx: { px: 0.25, py: 0.5 }, children: e }),
360
+ /* @__PURE__ */ r(ce, { sx: { px: 0.25, py: 0.5 }, children: e }),
360
361
  /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(N, { sx: { position: "relative" }, children: l.map((c, s) => {
361
362
  const { data: u } = c, d = u.key ?? u.id, k = s === l.length - 1;
362
363
  let o = null;
@@ -374,7 +375,7 @@ function st({
374
375
  } catch {
375
376
  }
376
377
  else typeof t == "object" && t !== null && (I = { ...t });
377
- qe(I, d, y);
378
+ Ye(I, d, y);
378
379
  const a = ge(I, n.type);
379
380
  i == null || i(a);
380
381
  } catch (I) {
@@ -483,7 +484,7 @@ function st({
483
484
  },
484
485
  children: [
485
486
  /* @__PURE__ */ r(
486
- se,
487
+ ce,
487
488
  {
488
489
  sx: {
489
490
  position: "absolute",
@@ -563,7 +564,7 @@ function lr({
563
564
  _(() => {
564
565
  b(w);
565
566
  }, [w.join("-")]);
566
- const [{ isOver: v }, l] = nr({
567
+ const [{ isOver: v }, l] = ir({
567
568
  accept: x,
568
569
  collect: (c) => ({
569
570
  isOver: c.isOver()
@@ -576,7 +577,7 @@ function lr({
576
577
  const o = t[d];
577
578
  o && (o.index = k);
578
579
  });
579
- }, s = (u = le(t)) == null ? void 0 : u.doc;
580
+ }, s = (u = oe(t)) == null ? void 0 : u.doc;
580
581
  s ? s.transact(() => {
581
582
  c();
582
583
  }) : c();
@@ -615,7 +616,7 @@ function dt({
615
616
  item: () => ({ id: t }),
616
617
  canDrag: () => !e,
617
618
  collect: (l) => ({ isDragging: l.isDragging() })
618
- }), [, v] = nr({
619
+ }), [, v] = ir({
619
620
  accept: n,
620
621
  canDrop: () => !e,
621
622
  hover(l, c) {
@@ -824,7 +825,7 @@ function mt({
824
825
  }
825
826
  }, u = (d, k = [], o = !0) => {
826
827
  if (!d || J(d))
827
- return null;
828
+ return /* @__PURE__ */ r(te, { children: b("maker.properties.noProperties") });
828
829
  const h = U(Object.entries(d), ([, m]) => m.displayName);
829
830
  return /* @__PURE__ */ r(j, { spacing: 1.5, children: h.map(([m, y], I) => {
830
831
  const a = [...k, m], S = I === h.length - 1, C = y.subProperties && !J(y.subProperties), z = y.displayName || m, E = !o;
@@ -893,7 +894,7 @@ function mt({
893
894
  width: "100%",
894
895
  children: [
895
896
  /* @__PURE__ */ r(
896
- Ge,
897
+ He,
897
898
  {
898
899
  control: /* @__PURE__ */ r(
899
900
  yr,
@@ -946,12 +947,12 @@ function mt({
946
947
  }) });
947
948
  };
948
949
  return /* @__PURE__ */ O(we, { open: e, onClose: l, maxWidth: "lg", fullWidth: !0, children: [
949
- /* @__PURE__ */ r(_e, { children: w || b("maker.properties.llmConfigTitle") }),
950
- /* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(N, { my: 3, children: P ? /* @__PURE__ */ r(W, { children: b("maker.properties.loading") }) : n ? g ? /* @__PURE__ */ O(j, { spacing: 3, children: [
950
+ /* @__PURE__ */ r(Je, { children: w || b("maker.properties.llmConfigTitle") }),
951
+ /* @__PURE__ */ r(_e, { children: /* @__PURE__ */ r(N, { my: 3, children: P ? /* @__PURE__ */ r(W, { children: b("maker.properties.loading") }) : n ? g ? /* @__PURE__ */ O(j, { spacing: 3, children: [
951
952
  /* @__PURE__ */ r(W, { variant: "subtitle2", children: b("maker.properties.llmConfigInstructions") }),
952
953
  u(g.properties)
953
954
  ] }) : /* @__PURE__ */ r(W, { children: b("maker.properties.loading") }) : /* @__PURE__ */ r(W, { color: "error", children: b("maker.properties.componentNotFound") }) }) }),
954
- /* @__PURE__ */ O(He, { children: [
955
+ /* @__PURE__ */ O($e, { children: [
955
956
  /* @__PURE__ */ r(A, { onClick: l, children: b("common.cancel") }),
956
957
  /* @__PURE__ */ r(A, { variant: "contained", onClick: c, disabled: !g || P, children: b("common.confirm") })
957
958
  ] })
@@ -975,8 +976,8 @@ function ft({
975
976
  sx: {
976
977
  pr: 0
977
978
  },
978
- endAdornment: /* @__PURE__ */ r(ne, { position: "end", children: /* @__PURE__ */ r(
979
- Qe,
979
+ endAdornment: /* @__PURE__ */ r(le, { position: "end", children: /* @__PURE__ */ r(
980
+ qe,
980
981
  {
981
982
  onChange: ({ response: x }) => {
982
983
  var w;
@@ -1024,20 +1025,20 @@ const ht = [
1024
1025
  { value: "component", label: "Component" },
1025
1026
  { value: "custom", label: "Custom (Render by a Component)" }
1026
1027
  ];
1027
- function oe(e, t, i) {
1028
+ function se(e, t, i) {
1028
1029
  return !e || !i ? !1 : Object.values(e).some(({ data: n }) => n.id !== t && n.key === i);
1029
1030
  }
1030
1031
  function xe(e, t) {
1031
1032
  var i;
1032
1033
  return !e || !t ? !1 : ((i = e[t]) == null ? void 0 : i.data.visible) ?? !0;
1033
1034
  }
1034
- function hi({ componentId: e }) {
1035
- const { state: { components: t } } = ae(), i = t[e], n = i == null ? void 0 : i.data;
1035
+ function bi({ componentId: e }) {
1036
+ const { state: { components: t } } = pe(), i = t[e], n = i == null ? void 0 : i.data;
1036
1037
  return n ? /* @__PURE__ */ r(j, { maxHeight: "100%", overflow: "auto", children: /* @__PURE__ */ r(N, { p: 2, children: /* @__PURE__ */ r(Zr, { FallbackComponent: ur, resetKeys: [e], children: /* @__PURE__ */ r(bt, { value: n, componentId: e }) }) }) }) : null;
1037
1038
  }
1038
1039
  function bt({ value: e, componentId: t }) {
1039
1040
  var v, l, c;
1040
- const { t: i } = V(), { localState: { currentLocale: n, customComponentPreviewerProperties: f }, state: { config: { defaultLocale: x } }, localActions: { setCustomComponentPreviewerProperties: p } } = ae(), w = le(e).doc, P = Pe(), b = re(() => (f == null ? void 0 : f[t]) ?? {}, [t, f]), g = Fr({
1041
+ const { t: i } = V(), { localState: { currentLocale: n, customComponentPreviewerProperties: f }, state: { config: { defaultLocale: x } }, localActions: { setCustomComponentPreviewerProperties: p } } = pe(), w = oe(e).doc, P = Pe(), b = re(() => (f == null ? void 0 : f[t]) ?? {}, [t, f]), g = Fr({
1041
1042
  componentId: t,
1042
1043
  propertiesValue: {
1043
1044
  ...b
@@ -1139,10 +1140,10 @@ function yt({ config: e }) {
1139
1140
  value: e.description || "",
1140
1141
  onChange: (i) => e.description = i.target.value,
1141
1142
  InputProps: {
1142
- endAdornment: /* @__PURE__ */ r(ne, { position: "end", sx: { mt: -1.5 }, children: /* @__PURE__ */ r(Nt, { config: e }) })
1143
+ endAdornment: /* @__PURE__ */ r(le, { position: "end", sx: { mt: -1.5 }, children: /* @__PURE__ */ r(Nt, { config: e }) })
1143
1144
  }
1144
1145
  }),
1145
- /* @__PURE__ */ r(Le, {
1146
+ /* @__PURE__ */ r(Ge, {
1146
1147
  size: "small",
1147
1148
  options: [],
1148
1149
  multiple: !0,
@@ -1193,13 +1194,13 @@ function sr({ data: e, params: t, visible: i, config: n, currentLocale: f, defau
1193
1194
  width: "calc(100% - 80px - 8px)",
1194
1195
  flex: 1,
1195
1196
  "& .MuiOutlinedInput-root": {
1196
- borderColor: e.key ? oe(n.properties, e.id, e.key) ? "warning.main" : void 0 : "error.main"
1197
+ borderColor: e.key ? se(n.properties, e.id, e.key) ? "warning.main" : void 0 : "error.main"
1197
1198
  },
1198
1199
  "& .MuiFormLabel-root": {
1199
- color: e.key ? oe(n.properties, e.id, e.key) ? "warning.main" : "text.secondary" : "error.main"
1200
+ color: e.key ? se(n.properties, e.id, e.key) ? "warning.main" : "text.secondary" : "error.main"
1200
1201
  },
1201
1202
  "& .MuiFormLabel-root.Mui-focused": {
1202
- color: e.key ? oe(n.properties, e.id, e.key) ? "warning.main" : "primary.main" : "error.main"
1203
+ color: e.key ? se(n.properties, e.id, e.key) ? "warning.main" : "primary.main" : "error.main"
1203
1204
  }
1204
1205
  },
1205
1206
  value: e.key || "",
@@ -1210,13 +1211,13 @@ function sr({ data: e, params: t, visible: i, config: n, currentLocale: f, defau
1210
1211
  });
1211
1212
  },
1212
1213
  InputProps: {
1213
- endAdornment: !e.key || e.key && oe(n.properties, e.id, e.key) ? /* @__PURE__ */ r(ne, {
1214
+ endAdornment: !e.key || e.key && se(n.properties, e.id, e.key) ? /* @__PURE__ */ r(le, {
1214
1215
  position: "end",
1215
1216
  sx: {
1216
1217
  width: 16,
1217
1218
  ml: 0
1218
1219
  },
1219
- children: /* @__PURE__ */ r(Y, { title: e.key ? P("duplicateKey") : P("requiredKey"), children: /* @__PURE__ */ r(rr, {
1220
+ children: /* @__PURE__ */ r(Y, { title: e.key ? P("duplicateKey") : P("requiredKey"), children: /* @__PURE__ */ r(er, {
1220
1221
  sx: {
1221
1222
  color: e.key ? "warning.main" : "error.main",
1222
1223
  fontSize: 16
@@ -1275,7 +1276,7 @@ function sr({ data: e, params: t, visible: i, config: n, currentLocale: f, defau
1275
1276
  if (k != null && k.forceUpdateProperty) {
1276
1277
  const y = ve(h), I = ve(d);
1277
1278
  Object.keys(I).forEach((a) => {
1278
- y[a] || qe(h, a, I[a]);
1279
+ y[a] || Ye(h, a, I[a]);
1279
1280
  });
1280
1281
  } else
1281
1282
  h.locales ?? (h.locales = {}), (m = h.locales)[f] ?? (m[f] = {}), h.locales[f].defaultValue = d;
@@ -1307,7 +1308,7 @@ function xt({ config: e, currentLocale: t, defaultLocale: i, allComponents: n, o
1307
1308
  /* @__PURE__ */ O(j, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between", children: [
1308
1309
  /* @__PURE__ */ r(W, { variant: "subtitle1", children: p("properties") }),
1309
1310
  /* @__PURE__ */ r(N, { flex: 1 }),
1310
- x && /* @__PURE__ */ r(A, { sx: { minWidth: 32, minHeight: 32, p: 0 }, ...Ie(w), children: /* @__PURE__ */ r(Ze, { fontSize: "small" }) })
1311
+ x && /* @__PURE__ */ r(A, { sx: { minWidth: 32, minHeight: 32, p: 0 }, ...Ie(w), children: /* @__PURE__ */ r(Xe, { fontSize: "small" }) })
1311
1312
  ] }),
1312
1313
  e.properties && Object.keys(e.properties).length > 0 ? /* @__PURE__ */ r(lr, {
1313
1314
  component: j,
@@ -1315,7 +1316,7 @@ function xt({ config: e, currentLocale: t, defaultLocale: i, allComponents: n, o
1315
1316
  list: e.properties,
1316
1317
  renderItem: (b, g, v) => {
1317
1318
  const l = xe(e.properties, b.id);
1318
- return /* @__PURE__ */ r(te, {
1319
+ return /* @__PURE__ */ r(ie, {
1319
1320
  elevation: 0,
1320
1321
  className: "property-container",
1321
1322
  sx: {
@@ -1336,7 +1337,7 @@ function xt({ config: e, currentLocale: t, defaultLocale: i, allComponents: n, o
1336
1337
  }) })
1337
1338
  }, b.id);
1338
1339
  }
1339
- }) : /* @__PURE__ */ r(pe, { style: { fontSize: 12 }, children: p("maker.properties.noProperties") }),
1340
+ }) : /* @__PURE__ */ r(te, { style: { fontSize: 12 }, children: p("maker.properties.noProperties") }),
1340
1341
  /* @__PURE__ */ r(A, {
1341
1342
  fullWidth: !0,
1342
1343
  variant: "outlined",
@@ -1344,21 +1345,21 @@ function xt({ config: e, currentLocale: t, defaultLocale: i, allComponents: n, o
1344
1345
  onClick: () => {
1345
1346
  f((b) => {
1346
1347
  var v;
1347
- const g = Ke();
1348
+ const g = nr();
1348
1349
  b.properties ?? (b.properties = {}), (v = b.properties)[g] ?? (v[g] = { index: (P == null ? void 0 : P.length) || 0, data: { id: g } });
1349
1350
  });
1350
1351
  },
1351
- startIcon: /* @__PURE__ */ r(er, {}),
1352
+ startIcon: /* @__PURE__ */ r(Ze, {}),
1352
1353
  children: p("addObject", { object: p("property") })
1353
1354
  }),
1354
- x && /* @__PURE__ */ r(cr, { ...ir(w), component: e })
1355
+ x && /* @__PURE__ */ r(cr, { ...tr(w), component: e })
1355
1356
  ] }) });
1356
1357
  }
1357
1358
  function gt({ property: e, allComponents: t }) {
1358
1359
  const i = Se({ variant: "popper" });
1359
1360
  return /* @__PURE__ */ O(q, { children: [
1360
- /* @__PURE__ */ r(A, { sx: { minWidth: 0 }, ...Ie(i), children: /* @__PURE__ */ r(tr, { fontSize: "small" }) }),
1361
- /* @__PURE__ */ r(Pr, { ...Xr(i), children: /* @__PURE__ */ r(Tr, { onClickAway: i.close, children: /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(N, { width: 500, p: 2, children: /* @__PURE__ */ r(Oe, {
1361
+ /* @__PURE__ */ r(A, { sx: { minWidth: 0 }, ...Ie(i), children: /* @__PURE__ */ r(rr, { fontSize: "small" }) }),
1362
+ /* @__PURE__ */ r(Pr, { ...Xr(i), children: /* @__PURE__ */ r(Tr, { onClickAway: i.close, children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r(N, { width: 500, p: 2, children: /* @__PURE__ */ r(Oe, {
1362
1363
  value: e.componentId,
1363
1364
  onChange: (n, f) => e.componentId = f,
1364
1365
  allComponents: t
@@ -1369,15 +1370,15 @@ function Pt({ value: e, valueImmutable: t, onChange: i, defaultLocale: n, allCom
1369
1370
  var g;
1370
1371
  const [x, p] = G(!1), { t: w, locale: P } = V(), b = typeof (e == null ? void 0 : e.componentId) == "string" ? (g = f[e.componentId]) == null ? void 0 : g.data : void 0;
1371
1372
  return b ? /* @__PURE__ */ O(N, { sx: { width: "100%", position: "relative" }, children: [
1372
- /* @__PURE__ */ r(ie, {
1373
+ /* @__PURE__ */ r(ne, {
1373
1374
  sx: { minWidth: 0 },
1374
1375
  disabled: !b,
1375
1376
  size: "small",
1376
1377
  onClick: () => p(!x),
1377
1378
  color: x ? "primary" : "default",
1378
- children: /* @__PURE__ */ r(tr, { fontSize: "small" })
1379
+ children: /* @__PURE__ */ r(rr, { fontSize: "small" })
1379
1380
  }),
1380
- x && /* @__PURE__ */ r(xr, { in: x, timeout: "auto", unmountOnExit: !0, sx: { width: "100%", zIndex: 10 }, children: /* @__PURE__ */ O(te, {
1381
+ x && /* @__PURE__ */ r(xr, { in: x, timeout: "auto", unmountOnExit: !0, sx: { width: "100%", zIndex: 10 }, children: /* @__PURE__ */ O(ie, {
1381
1382
  elevation: 1,
1382
1383
  sx: {
1383
1384
  mt: 1,
@@ -1406,17 +1407,17 @@ function Pt({ value: e, valueImmutable: t, onChange: i, defaultLocale: n, allCom
1406
1407
  }
1407
1408
  function cr({ type: e = "properties", component: t, ...i }) {
1408
1409
  var v, l, c;
1409
- const { t: n } = V(), { state: { components: f, supportedLocales: x, config: { defaultLocale: p } } } = ae(), w = Pe(), P = le(t).doc, b = e === "properties" ? t.properties : e === "parameters" && ((v = t.renderer) == null ? void 0 : v.type) === "component" ? (l = f[t.renderer.componentId]) == null ? void 0 : l.data.properties : void 0, g = ((c = t.renderer) == null ? void 0 : c.type) === "component" ? t : void 0;
1410
+ const { t: n } = V(), { state: { components: f, supportedLocales: x, config: { defaultLocale: p } } } = pe(), w = Pe(), P = oe(t).doc, b = e === "properties" ? t.properties : e === "parameters" && ((v = t.renderer) == null ? void 0 : v.type) === "component" ? (l = f[t.renderer.componentId]) == null ? void 0 : l.data.properties : void 0, g = ((c = t.renderer) == null ? void 0 : c.type) === "component" ? t : void 0;
1410
1411
  return /* @__PURE__ */ O(we, { ...i, fullWidth: !0, maxWidth: "lg", children: [
1411
- /* @__PURE__ */ r(_e, { children: n("i18nEditorTitle") }),
1412
- /* @__PURE__ */ r($e, { children: b && /* @__PURE__ */ r(j, { children: /* @__PURE__ */ O(Me, { stickyHeader: !0, sx: { td: { verticalAlign: "top" } }, children: [
1413
- /* @__PURE__ */ r(Fe, { children: /* @__PURE__ */ r(ce, { children: x.map(({ locale: s, name: u }) => /* @__PURE__ */ r(de, { children: /* @__PURE__ */ O(W, { color: "text.primary", children: [
1412
+ /* @__PURE__ */ r(Je, { children: n("i18nEditorTitle") }),
1413
+ /* @__PURE__ */ r(_e, { children: b && /* @__PURE__ */ r(j, { children: /* @__PURE__ */ O(Ke, { stickyHeader: !0, sx: { td: { verticalAlign: "top" } }, children: [
1414
+ /* @__PURE__ */ r(Me, { children: /* @__PURE__ */ r(de, { children: x.map(({ locale: s, name: u }) => /* @__PURE__ */ r(ue, { children: /* @__PURE__ */ O(W, { color: "text.primary", children: [
1414
1415
  u,
1415
1416
  p === s && /* @__PURE__ */ r(Kr, { sx: { fontSize: 12 } })
1416
1417
  ] }) }, s)) }) }),
1417
- /* @__PURE__ */ r(Je, { children: U(Object.values(b), "index").map(({ data: s }) => /* @__PURE__ */ r(ce, { children: x.map(({ locale: u }) => {
1418
+ /* @__PURE__ */ r(Fe, { children: U(Object.values(b), "index").map(({ data: s }) => /* @__PURE__ */ r(de, { children: x.map(({ locale: u }) => {
1418
1419
  var d, k, o, h, m, y, I, a, S, C, z, E, T, B, K, M, Q, X, Z, ee, Ce, Ne, je, ze, Re, Ve;
1419
- return /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(j, { gap: 1, children: e === "properties" ? /* @__PURE__ */ O(q, { children: [
1420
+ return /* @__PURE__ */ r(ue, { children: /* @__PURE__ */ r(j, { gap: 1, children: e === "properties" ? /* @__PURE__ */ O(q, { children: [
1420
1421
  /* @__PURE__ */ r(R, {
1421
1422
  size: "small",
1422
1423
  label: "Key",
@@ -1446,7 +1447,7 @@ function cr({ type: e = "properties", component: t, ...i }) {
1446
1447
  size: "small",
1447
1448
  fullWidth: !0,
1448
1449
  label: "Default Value",
1449
- valueImmutable: ue((y = (m = s.locales) == null ? void 0 : m[u]) == null ? void 0 : y.defaultValue),
1450
+ valueImmutable: ae((y = (m = s.locales) == null ? void 0 : m[u]) == null ? void 0 : y.defaultValue),
1450
1451
  value: ((a = (I = s.locales) == null ? void 0 : I[u]) == null ? void 0 : a.defaultValue) ?? ((C = (S = s.locales) == null ? void 0 : S[p]) == null ? void 0 : C.defaultValue),
1451
1452
  onChange: ($) => {
1452
1453
  P.transact(() => {
@@ -1462,7 +1463,7 @@ function cr({ type: e = "properties", component: t, ...i }) {
1462
1463
  property: s,
1463
1464
  size: "small",
1464
1465
  fullWidth: !0,
1465
- valueImmutable: ue((B = (T = (E = (z = g.renderer.properties) == null ? void 0 : z[s.id]) == null ? void 0 : E.locales) == null ? void 0 : T[u]) == null ? void 0 : B.value),
1466
+ valueImmutable: ae((B = (T = (E = (z = g.renderer.properties) == null ? void 0 : z[s.id]) == null ? void 0 : E.locales) == null ? void 0 : T[u]) == null ? void 0 : B.value),
1466
1467
  value: ((X = (Q = (M = (K = g.renderer.properties) == null ? void 0 : K[s.id]) == null ? void 0 : M.locales) == null ? void 0 : Q[u]) == null ? void 0 : X.value) ?? ((Ne = (Ce = (ee = (Z = g.renderer.properties) == null ? void 0 : Z[s.id]) == null ? void 0 : ee.locales) == null ? void 0 : Ce[p]) == null ? void 0 : Ne.value) ?? ((ze = (je = s.locales) == null ? void 0 : je[u]) == null ? void 0 : ze.defaultValue) ?? ((Ve = (Re = s.locales) == null ? void 0 : Re[p]) == null ? void 0 : Ve.defaultValue),
1467
1468
  onChange: ($) => {
1468
1469
  P.transact(() => {
@@ -1473,7 +1474,7 @@ function cr({ type: e = "properties", component: t, ...i }) {
1473
1474
  }) }) : null }, s.id) }, u);
1474
1475
  }) }, s.id)) })
1475
1476
  ] }) }) }),
1476
- /* @__PURE__ */ r(He, { children: /* @__PURE__ */ r(A, { onClick: (s) => {
1477
+ /* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(A, { onClick: (s) => {
1477
1478
  var u;
1478
1479
  return (u = i.onClose) == null ? void 0 : u.call(i, s, "escapeKeyDown");
1479
1480
  }, children: n("close") }) })
@@ -1534,7 +1535,7 @@ function kt({ property: e, onChange: t, defaultLocale: i, allComponents: n }) {
1534
1535
  list: e.subProperties,
1535
1536
  renderItem: (b, g, v) => {
1536
1537
  const l = b.visible !== !1;
1537
- return /* @__PURE__ */ r(te, {
1538
+ return /* @__PURE__ */ r(ie, {
1538
1539
  elevation: 0,
1539
1540
  className: "property-container",
1540
1541
  sx: {
@@ -1569,16 +1570,16 @@ function kt({ property: e, onChange: t, defaultLocale: i, allComponents: n }) {
1569
1570
  }) })
1570
1571
  }, b.id);
1571
1572
  }
1572
- }) : /* @__PURE__ */ r(pe, { style: { fontSize: 12, height: 100 }, children: f("maker.properties.noSubProperties") }),
1573
+ }) : /* @__PURE__ */ r(te, { style: { fontSize: 12, height: 100 }, children: f("maker.properties.noSubProperties") }),
1573
1574
  /* @__PURE__ */ r(A, {
1574
1575
  fullWidth: !0,
1575
1576
  variant: "outlined",
1576
1577
  className: "ignore-style-override",
1577
1578
  size: "small",
1578
- startIcon: /* @__PURE__ */ r(er, {}),
1579
+ startIcon: /* @__PURE__ */ r(Ze, {}),
1579
1580
  onClick: () => {
1580
1581
  try {
1581
- const b = e.subProperties || {}, g = Ke(), l = {
1582
+ const b = e.subProperties || {}, g = nr(), l = {
1582
1583
  index: Object.values(b).length,
1583
1584
  data: {
1584
1585
  id: g,
@@ -1654,7 +1655,7 @@ function L({ component: e, property: t, value: i, onChange: n, valueImmutable: f
1654
1655
  }
1655
1656
  });
1656
1657
  if (t.type === "boolean")
1657
- return /* @__PURE__ */ r(Ge, {
1658
+ return /* @__PURE__ */ r(He, {
1658
1659
  label: l,
1659
1660
  labelPlacement: "start",
1660
1661
  control: /* @__PURE__ */ r(vr, { checked: i === !0, onChange: (o, h) => n == null ? void 0 : n(h) })
@@ -1685,7 +1686,7 @@ function L({ component: e, property: t, value: i, onChange: n, valueImmutable: f
1685
1686
  });
1686
1687
  if (t.type === "custom") {
1687
1688
  const o = (k = p[t.componentId]) == null ? void 0 : k.data;
1688
- return o ? /* @__PURE__ */ r(N, { width: "100%", children: /* @__PURE__ */ r(Xe, {
1689
+ return o ? /* @__PURE__ */ r(N, { width: "100%", children: /* @__PURE__ */ r(Qe, {
1689
1690
  componentId: o.id,
1690
1691
  props: { label: l, value: i, onChange: n },
1691
1692
  locale: P,
@@ -1730,7 +1731,7 @@ function L({ component: e, property: t, value: i, onChange: n, valueImmutable: f
1730
1731
  sx: {
1731
1732
  pr: 0
1732
1733
  },
1733
- endAdornment: /* @__PURE__ */ O(ne, {
1734
+ endAdornment: /* @__PURE__ */ O(le, {
1734
1735
  position: "end",
1735
1736
  sx: {
1736
1737
  display: "flex",
@@ -1738,7 +1739,7 @@ function L({ component: e, property: t, value: i, onChange: n, valueImmutable: f
1738
1739
  justifyContent: "center"
1739
1740
  },
1740
1741
  children: [
1741
- /* @__PURE__ */ r(Qe, {
1742
+ /* @__PURE__ */ r(qe, {
1742
1743
  onChange: async ({ response: m }) => {
1743
1744
  var S, C, z;
1744
1745
  const y = ((S = m == null ? void 0 : m.data) == null ? void 0 : S.url) || ((C = m == null ? void 0 : m.data) == null ? void 0 : C.fileUrl);
@@ -1754,7 +1755,7 @@ function L({ component: e, property: t, value: i, onChange: n, valueImmutable: f
1754
1755
  });
1755
1756
  }
1756
1757
  }),
1757
- /* @__PURE__ */ r(Y, { title: "If you are using the 'mediaKitUrl' property, please use < import { getMediaKitAbsoluteUrl } from '@blocklet/pages-kit/builtin/utils' > to get the full address.", children: /* @__PURE__ */ r(rr, { sx: { cursor: "default", mr: 1 }, fontSize: "small" }) })
1758
+ /* @__PURE__ */ r(Y, { title: "If you are using the 'mediaKitUrl' property, please use < import { getMediaKitAbsoluteUrl } from '@blocklet/pages-kit/builtin/utils' > to get the full address.", children: /* @__PURE__ */ r(er, { sx: { cursor: "default", mr: 1 }, fontSize: "small" }) })
1758
1759
  ]
1759
1760
  })
1760
1761
  } : void 0
@@ -1796,7 +1797,7 @@ export default function () {
1796
1797
  }`, It = `console.log('hello')
1797
1798
  `;
1798
1799
  function Ot({ value: e }) {
1799
- const { locale: t } = V(), i = Ye(), n = le(e).doc;
1800
+ const { locale: t } = V(), i = Le(), n = oe(e).doc;
1800
1801
  return _(() => {
1801
1802
  var f;
1802
1803
  (f = e.renderer) != null && f.script || (n.transact(() => {
@@ -1816,7 +1817,7 @@ function Ot({ value: e }) {
1816
1817
  }
1817
1818
  function Ct({ value: e }) {
1818
1819
  var g, v, l;
1819
- const { t } = V(), i = le(e).doc, { state: { components: n, config: { defaultLocale: f }, resources: x }, localState: { currentLocale: p } } = ae(), w = Pe(), P = ((g = n[e.renderer.componentId]) == null ? void 0 : g.data) ?? ((l = (v = x.components) == null ? void 0 : v[e.renderer.componentId]) == null ? void 0 : l.component), b = Se({ variant: "dialog" });
1820
+ const { t } = V(), i = oe(e).doc, { state: { components: n, config: { defaultLocale: f }, resources: x }, localState: { currentLocale: p } } = pe(), w = Pe(), P = ((g = n[e.renderer.componentId]) == null ? void 0 : g.data) ?? ((l = (v = x.components) == null ? void 0 : v[e.renderer.componentId]) == null ? void 0 : l.component), b = Se({ variant: "dialog" });
1820
1821
  return /* @__PURE__ */ r(me, { children: /* @__PURE__ */ O(j, { gap: 1, children: [
1821
1822
  /* @__PURE__ */ r(Oe, {
1822
1823
  allComponents: w,
@@ -1827,7 +1828,7 @@ function Ct({ value: e }) {
1827
1828
  P && /* @__PURE__ */ O(q, { children: [
1828
1829
  /* @__PURE__ */ O(j, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1829
1830
  /* @__PURE__ */ r(W, { variant: "subtitle2", children: t("parameters") }),
1830
- /* @__PURE__ */ r(A, { sx: { minWidth: 32, minHeight: 32, p: 0 }, ...Ie(b), children: /* @__PURE__ */ r(Ze, { fontSize: "small" }) })
1831
+ /* @__PURE__ */ r(A, { sx: { minWidth: 32, minHeight: 32, p: 0 }, ...Ie(b), children: /* @__PURE__ */ r(Xe, { fontSize: "small" }) })
1831
1832
  ] }),
1832
1833
  P.properties && U(Object.values(P.properties), "index").map(({ data: c }) => {
1833
1834
  var s, u, d, k, o, h, m, y, I, a, S, C, z, E, T, B;
@@ -1838,7 +1839,7 @@ function Ct({ value: e }) {
1838
1839
  property: c,
1839
1840
  fullWidth: !0,
1840
1841
  size: "small",
1841
- valueImmutable: ue((k = (d = (u = (s = e.renderer.properties) == null ? void 0 : s[c.id]) == null ? void 0 : u.locales) == null ? void 0 : d[p]) == null ? void 0 : k.value),
1842
+ valueImmutable: ae((k = (d = (u = (s = e.renderer.properties) == null ? void 0 : s[c.id]) == null ? void 0 : u.locales) == null ? void 0 : d[p]) == null ? void 0 : k.value),
1842
1843
  value: ((y = (m = (h = (o = e.renderer.properties) == null ? void 0 : o[c.id]) == null ? void 0 : h.locales) == null ? void 0 : m[p]) == null ? void 0 : y.value) ?? ((C = (S = (a = (I = e.renderer.properties) == null ? void 0 : I[c.id]) == null ? void 0 : a.locales) == null ? void 0 : S[f]) == null ? void 0 : C.value) ?? ((E = (z = c.locales) == null ? void 0 : z[p]) == null ? void 0 : E.defaultValue) ?? ((B = (T = c.locales) == null ? void 0 : T[f]) == null ? void 0 : B.defaultValue),
1843
1844
  onChange: (K) => {
1844
1845
  i.transact(() => {
@@ -1848,14 +1849,14 @@ function Ct({ value: e }) {
1848
1849
  }
1849
1850
  }) }, c.id);
1850
1851
  }),
1851
- /* @__PURE__ */ r(cr, { ...ir(b), component: e, type: "parameters" })
1852
+ /* @__PURE__ */ r(cr, { ...tr(b), component: e, type: "parameters" })
1852
1853
  ] })
1853
1854
  ] }) });
1854
1855
  }
1855
1856
  function Oe({ label: e, options: t, excludes: i, value: n, onChange: f, allComponents: x, ...p }) {
1856
1857
  var g;
1857
1858
  const { t: w } = V(), P = t ?? U(Object.values(Yr(x, ...i ?? [])), "index").map((v) => v.data), b = (typeof n == "string" ? (g = x[n]) == null ? void 0 : g.data : void 0) ?? null;
1858
- return /* @__PURE__ */ r(Le, {
1859
+ return /* @__PURE__ */ r(Ge, {
1859
1860
  ...p,
1860
1861
  size: "small",
1861
1862
  options: P,
@@ -1912,7 +1913,7 @@ function dr({ config: e, allComponents: t, defaultLocale: i, propertiesValue: n,
1912
1913
  }, [JSON.stringify(P)]), s = l(), u = Lr(s, "key");
1913
1914
  return /* @__PURE__ */ r(me, { children: /* @__PURE__ */ O(j, { gap: 2, children: [
1914
1915
  /* @__PURE__ */ r(W, { variant: "subtitle1", children: w("maker.properties.parameters") }),
1915
- !e || c.canUsePropertiesKeys.length === 0 ? /* @__PURE__ */ r(pe, { style: { fontSize: 12 }, children: w("maker.properties.noParameters") }) : /* @__PURE__ */ O(q, { children: [
1916
+ !e || c.canUsePropertiesKeys.length === 0 ? /* @__PURE__ */ r(te, { style: { fontSize: 12 }, children: w("maker.properties.noParameters") }) : /* @__PURE__ */ O(q, { children: [
1916
1917
  /* @__PURE__ */ r(j, { gap: 2, children: c.visibleProperties.map(({ data: d }) => {
1917
1918
  var k, o;
1918
1919
  return /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(L, {
@@ -1922,7 +1923,7 @@ function dr({ config: e, allComponents: t, defaultLocale: i, propertiesValue: n,
1922
1923
  fullWidth: !0,
1923
1924
  component: e,
1924
1925
  property: d,
1925
- valueImmutable: ue((k = n == null ? void 0 : n[d.id]) == null ? void 0 : k.value),
1926
+ valueImmutable: ae((k = n == null ? void 0 : n[d.id]) == null ? void 0 : k.value),
1926
1927
  value: (p == null ? void 0 : p[d.key || d.id]) ?? ((o = s[d.id]) == null ? void 0 : o.value),
1927
1928
  onChange: (h) => {
1928
1929
  x({
@@ -1936,7 +1937,7 @@ function dr({ config: e, allComponents: t, defaultLocale: i, propertiesValue: n,
1936
1937
  }
1937
1938
  }) }, d.id);
1938
1939
  }) }),
1939
- /* @__PURE__ */ r(j, { gap: 2, sx: { width: "100%" }, children: /* @__PURE__ */ r(Xe, {
1940
+ /* @__PURE__ */ r(j, { gap: 2, sx: { width: "100%" }, children: /* @__PURE__ */ r(Qe, {
1940
1941
  componentId: (e == null ? void 0 : e.id) || "",
1941
1942
  renderType: "setting",
1942
1943
  locale: f,
@@ -1985,7 +1986,7 @@ function Nt({ config: e }) {
1985
1986
  e.llmConfig = p;
1986
1987
  };
1987
1988
  return /* @__PURE__ */ O(q, { children: [
1988
- /* @__PURE__ */ r(Y, { title: t("maker.properties.configLLMDescription"), children: /* @__PURE__ */ r(ie, { color: "primary", onClick: () => f(!0), size: "small", children: /* @__PURE__ */ r(Br, {}) }) }),
1989
+ /* @__PURE__ */ r(Y, { title: t("maker.properties.configLLMDescription"), children: /* @__PURE__ */ r(ne, { color: "primary", onClick: () => f(!0), size: "small", children: /* @__PURE__ */ r(Br, {}) }) }),
1989
1990
  n && /* @__PURE__ */ r(mt, {
1990
1991
  open: n,
1991
1992
  onClose: () => f(!1),
@@ -2001,7 +2002,7 @@ function Nt({ config: e }) {
2001
2002
  export {
2002
2003
  yt as BasicInfo,
2003
2004
  Oe as CustomComponentAutocomplete,
2004
- hi as CustomComponentSettings,
2005
+ bi as CustomComponentSettings,
2005
2006
  St as DefaultReactComponentScriptTemplate,
2006
2007
  It as DefaultWebComponentScriptTemplate,
2007
2008
  dr as ParametersConfig,