@chaibuilder/sdk 1.2.47 → 1.2.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 (71) hide show
  1. package/dist/{AddBlocks-cX8vIt0V.js → AddBlocks-JCSA6hLF.js} +8 -8
  2. package/dist/{AddBlocks-_fhhS7Lm.cjs → AddBlocks-JiIeMTE-.cjs} +1 -1
  3. package/dist/{CanvasArea-N3rYeBJV.cjs → CanvasArea-K_d6ORTZ.cjs} +1 -1
  4. package/dist/{CanvasArea-HRipTJFS.js → CanvasArea-c3xbVSoY.js} +13 -13
  5. package/dist/{ChaiBuilderEditor-dKHRL-Es.js → ChaiBuilderEditor-F2yUJQdt.js} +1533 -1528
  6. package/dist/{ChaiBuilderEditor-EtQOC5uy.cjs → ChaiBuilderEditor-lqHQcnh3.cjs} +25 -25
  7. package/dist/{CurrentPage-U8ms8Hs7.js → CurrentPage--lDu6fB9.js} +2 -2
  8. package/dist/{CurrentPage-9FijxWbn.cjs → CurrentPage-DnQKF1wT.cjs} +1 -1
  9. package/dist/{ListTree-OgLdyfQs.js → ListTree-7DWSal1i.js} +120 -111
  10. package/dist/ListTree-HVFqaM0-.cjs +1 -0
  11. package/dist/{PagesPanel-MsUBq9Xx.js → PagesPanel-D1TOGyVE.js} +3 -3
  12. package/dist/{PagesPanel-8Cd6UYsh.cjs → PagesPanel-pIFhxLGC.cjs} +1 -1
  13. package/dist/{ProjectPanel-hsZG_Btj.js → ProjectPanel-PdvQsrbk.js} +3 -3
  14. package/dist/{ProjectPanel-KmnXPfxx.cjs → ProjectPanel-t7s3-URx.cjs} +1 -1
  15. package/dist/Settings-WevLeOpk.cjs +1 -0
  16. package/dist/{Settings-WcLqIeQy.js → Settings-aEcWAB0x.js} +268 -263
  17. package/dist/{SidePanels-6zRgfZpi.cjs → SidePanels-mavyE3q_.cjs} +1 -1
  18. package/dist/{SidePanels-PmCljlnf.js → SidePanels-uym8wfA0.js} +103 -110
  19. package/dist/{ThemeConfiguration-mkbFdePB.js → ThemeConfiguration-7J_Qt53c.js} +5 -5
  20. package/dist/{ThemeConfiguration-pt7TTAty.cjs → ThemeConfiguration-F-_ieF8J.cjs} +1 -1
  21. package/dist/{Topbar-FPywhpub.js → Topbar-DkbE0ccQ.js} +1 -1
  22. package/dist/{Topbar--m1E08Jl.cjs → Topbar-FjX_5927.cjs} +1 -1
  23. package/dist/UILibrariesPanel-3cSqwsMi.js +196 -0
  24. package/dist/UILibrariesPanel-qsjCsv10.cjs +1 -0
  25. package/dist/{UnsplashImages-Yu0msAD8.cjs → UnsplashImages-5skIflMr.cjs} +1 -1
  26. package/dist/{UnsplashImages-7uAXYHPH.js → UnsplashImages-owPv8UfV.js} +3 -3
  27. package/dist/{UploadImages-jS51ZcPG.cjs → UploadImages-olCKp-66.cjs} +1 -1
  28. package/dist/{UploadImages-5M0Q27R-.js → UploadImages-zGp0fN1z.js} +1 -1
  29. package/dist/{add-page-modal-KAbflupJ.cjs → add-page-modal-JE2NTOKQ.cjs} +1 -1
  30. package/dist/{add-page-modal-6o7MAbq-.js → add-page-modal-pOnhQNMH.js} +3 -3
  31. package/dist/{confirm-alert-dow0GlxC.cjs → confirm-alert-GTawvuT8.cjs} +1 -1
  32. package/dist/{confirm-alert-jL0z_gFv.js → confirm-alert-lbkop3bB.js} +1 -1
  33. package/dist/core.cjs +1 -1
  34. package/dist/core.js +1 -1
  35. package/dist/{delete-page-modal-U5_JYYp7.js → delete-page-modal-3OWHRhV4.js} +2 -2
  36. package/dist/{delete-page-modal-EDQZneVM.cjs → delete-page-modal-S42VXCGh.cjs} +1 -1
  37. package/dist/email.cjs +1 -1
  38. package/dist/email.js +1 -1
  39. package/dist/{form-Sgpl2fXL.js → form-CetbKOxf.js} +5 -5
  40. package/dist/{form-KBtrnNWh.cjs → form-Rqiu0P7V.cjs} +1 -1
  41. package/dist/{functions-7ybAMUuA.js → functions-WB3m-mfN.js} +6 -7
  42. package/dist/functions-fujiWLsg.cjs +1 -0
  43. package/dist/{index-po-naEa5.js → index-Mzvi8sMV.js} +2 -2
  44. package/dist/{index-HjN7LtDT.cjs → index-SZn6KcOd.cjs} +1 -1
  45. package/dist/lib.cjs +1 -1
  46. package/dist/lib.d.ts +1 -1
  47. package/dist/lib.js +17 -18
  48. package/dist/{page-viewer-nLRRk7DR.js → page-viewer-7iyxGntn.js} +8 -8
  49. package/dist/{page-viewer-PfZEbcDZ.cjs → page-viewer-fFmRhZs3.cjs} +1 -1
  50. package/dist/{project-general-setting-HO6zeum2.cjs → project-general-setting-0HJ_qyW3.cjs} +1 -1
  51. package/dist/{project-general-setting-D1UJdZ2D.js → project-general-setting-tHdsXTwH.js} +7 -7
  52. package/dist/{project-seo-setting-gT9N1tnB.cjs → project-seo-setting-Ln9aX7b5.cjs} +1 -1
  53. package/dist/{project-seo-setting-VIZWEMRk.js → project-seo-setting-zEBZ91Xk.js} +2 -2
  54. package/dist/render.cjs +1 -1
  55. package/dist/render.js +68 -68
  56. package/dist/{single-page-detail-To8TcpgJ.cjs → single-page-detail-H0heOB33.cjs} +1 -1
  57. package/dist/{single-page-detail-lQ8fujC5.js → single-page-detail-RBfdbTs3.js} +4 -4
  58. package/dist/studio.cjs +1 -1
  59. package/dist/studio.js +2 -2
  60. package/dist/ui.cjs +1 -1
  61. package/dist/ui.js +31 -31
  62. package/dist/{useCanvasSettings-UzjYHFG5.js → useCanvasSettings-2YhM5XKu.js} +1 -1
  63. package/dist/{useCanvasSettings-7BXlDuLG.cjs → useCanvasSettings-tDzAqXUt.cjs} +1 -1
  64. package/dist/web-blocks.cjs +1 -1
  65. package/dist/web-blocks.js +2 -2
  66. package/package.json +1 -1
  67. package/dist/ListTree-jOvHpo3_.cjs +0 -1
  68. package/dist/Settings-xVjTnVSf.cjs +0 -1
  69. package/dist/UILibrariesPanel-HhHGcexY.cjs +0 -1
  70. package/dist/UILibrariesPanel-VrA2X4LO.js +0 -145
  71. package/dist/functions-yvRwasT2.cjs +0 -1
@@ -1,21 +1,21 @@
1
1
  import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import * as ne from "react";
3
- import I, { useState as j, useMemo as T, useEffect as P, useCallback as H, memo as mt, useRef as ft, createContext as Fe, useContext as se } from "react";
3
+ import I, { useState as j, useMemo as T, useEffect as P, useCallback as H, memo as mt, useRef as ft, createContext as Xe, useContext as se } from "react";
4
4
  import { useThrottledCallback as de } from "@react-hookz/web";
5
- import { forEach as Ne, isArray as ce, omit as vt, truncate as jt, includes as X, get as y, first as ae, split as wt, startCase as F, toLower as re, isEmpty as m, map as _, find as Ze, last as Ct, filter as ye, set as We, debounce as kt, keys as he, cloneDeep as Nt, each as _t, capitalize as be, reject as St, kebabCase as Tt, startsWith as W, nth as He, isNumber as Rt, parseInt as Vt, isNaN as Ue, findLast as Ht, flatten as De, intersection as Dt, has as ie, isNull as Bt } from "lodash-es";
5
+ import { forEach as Ne, isArray as ce, omit as vt, truncate as jt, includes as F, get as y, first as ae, split as wt, startCase as X, toLower as re, isEmpty as m, map as _, find as Ze, last as Ct, filter as ye, set as We, debounce as kt, keys as he, cloneDeep as Nt, each as _t, capitalize as be, reject as St, startsWith as W, nth as He, isNumber as Tt, parseInt as Rt, isNaN as Ue, findLast as Vt, flatten as De, intersection as Ht, has as ie, isNull as Dt } from "lodash-es";
6
6
  import { useTranslation as B } from "react-i18next";
7
- import { CopyIcon as It, PlusIcon as _e, Cross2Icon as Ge, EyeOpenIcon as Pt, EyeClosedIcon as Be, BorderAllIcon as Y, WidthIcon as R, HeightIcon as V, ArrowUpIcon as J, ArrowRightIcon as Q, ArrowDownIcon as ee, ArrowLeftIcon as te, ArrowTopLeftIcon as At, ArrowTopRightIcon as $t, ArrowBottomRightIcon as Mt, ArrowBottomLeftIcon as Et, AlignLeftIcon as Lt, AlignCenterHorizontallyIcon as Ot, AlignRightIcon as zt, StretchHorizontallyIcon as Yt, FontItalicIcon as Xt, UnderlineIcon as Ft, OverlineIcon as Zt, LetterCaseUppercaseIcon as Wt, Cross1Icon as Ut, InfoCircledIcon as Se, MinusIcon as Gt, BoxIcon as Ke, RowSpacingIcon as Kt, TriangleDownIcon as qt, CrossCircledIcon as Jt, CaretDownIcon as Qt, MixerHorizontalIcon as qe } from "@radix-ui/react-icons";
8
- import { a2 as Je, aP as Qe, aQ as et, B as A, aR as tt, aS as er, aT as tr, aU as rr, aV as sr, aW as ar, aX as lr, M as G, aK as rt, $ as or, a0 as nr, a1 as ir, aY as dr, Z as cr, ab as pr, _ as ur, ac as $, ad as M, ae as E, aZ as gr, a_ as xr, a$ as yr, b0 as hr, b1 as br, b2 as mr, b3 as fr, R as st, Q as at, h as lt, b4 as vr, b5 as ot, b6 as me, b7 as fe, b8 as ve, b9 as jr, ba as wr, ah as Cr, bb as kr, Y as pe, n as Te, I as nt, L as it, bc as dt, bd as je, j as Nr, be as _r, J as ue, v as Sr, P as Tr, o as Ie, au as Rr, av as Vr, aw as Hr, bf as ct, ax as Pe, ay as Ae, bg as $e, bh as Me, bi as Ee, S as Dr } from "./ChaiBuilderEditor-dKHRL-Es.js";
9
- import { Check as Br, EditIcon as Ir, TrashIcon as Pr, Loader as Ar, SparklesIcon as $r, DeleteIcon as Mr } from "lucide-react";
10
- import { getBlockComponent as Re, getChaiDataProviders as Er, useGlobalStylingPresets as Lr } from "@chaibuilder/runtime";
11
- import { J as Or, a as zr, d as Yr } from "./index-e0c8PmRQ.js";
12
- import Xr from "@rjsf/core";
7
+ import { CopyIcon as Bt, PlusIcon as _e, Cross2Icon as Ge, EyeOpenIcon as It, EyeClosedIcon as Be, BorderAllIcon as Y, WidthIcon as R, HeightIcon as V, ArrowUpIcon as J, ArrowRightIcon as Q, ArrowDownIcon as ee, ArrowLeftIcon as te, ArrowTopLeftIcon as Pt, ArrowTopRightIcon as At, ArrowBottomRightIcon as $t, ArrowBottomLeftIcon as Mt, AlignLeftIcon as Et, AlignCenterHorizontallyIcon as Lt, AlignRightIcon as Ot, StretchHorizontallyIcon as zt, FontItalicIcon as Yt, UnderlineIcon as Ft, OverlineIcon as Xt, LetterCaseUppercaseIcon as Zt, Cross1Icon as Wt, InfoCircledIcon as Se, MinusIcon as Ut, BoxIcon as Ke, RowSpacingIcon as Gt, TriangleDownIcon as Kt, CrossCircledIcon as qt, CaretDownIcon as Jt, MixerHorizontalIcon as qe } from "@radix-ui/react-icons";
8
+ import { a2 as Je, aQ as Qe, aR as et, B as A, aS as tt, aT as Qt, aU as er, aV as tr, aW as rr, aX as sr, aY as ar, M as G, aL as rt, $ as lr, a0 as or, a1 as nr, aZ as ir, Z as dr, ab as cr, _ as pr, ac as $, ad as M, ae as E, a_ as ur, a$ as gr, b0 as xr, b1 as yr, b2 as hr, b3 as br, b4 as mr, R as st, Q as at, h as lt, b5 as fr, b6 as ot, b7 as me, b8 as fe, b9 as ve, ba as vr, bb as jr, ah as wr, bc as Cr, Y as pe, n as Te, I as nt, L as it, bd as dt, be as je, j as kr, bf as Nr, J as ue, v as _r, P as Sr, o as Ie, av as Tr, aw as Rr, ax as Vr, bg as ct, ay as Pe, az as Ae, bh as $e, bi as Me, bj as Ee, S as Hr } from "./ChaiBuilderEditor-F2yUJQdt.js";
9
+ import { Check as Dr, EditIcon as Br, TrashIcon as Ir, Loader as Pr, SparklesIcon as Ar, DeleteIcon as $r } from "lucide-react";
10
+ import { getBlockComponent as Re, getChaiDataProviders as Mr, useGlobalStylingPresets as Er } from "@chaibuilder/runtime";
11
+ import { J as Lr, a as Or, d as zr } from "./index-e0c8PmRQ.js";
12
+ import Yr from "@rjsf/core";
13
13
  import Fr from "@rjsf/validator-ajv8";
14
- import { u as Zr } from "./useCanvasSettings-UzjYHFG5.js";
15
- import Wr from "react-autosuggest";
16
- import Ur from "fuse.js";
17
- import { A as Gr, C as ge, g as Kr } from "./utils-iMv3T4WT.js";
18
- import { a as qr } from "./STRINGS--j49GZJP.js";
14
+ import { u as Xr } from "./useCanvasSettings-2YhM5XKu.js";
15
+ import Zr from "react-autosuggest";
16
+ import Wr from "fuse.js";
17
+ import { A as Ur, C as ge, g as Gr } from "./utils-iMv3T4WT.js";
18
+ import { a as Kr } from "./STRINGS--j49GZJP.js";
19
19
  import "./_commonjsHelpers-UyOWmZb0.js";
20
20
  import "clsx";
21
21
  import "react-dom";
@@ -50,7 +50,7 @@ import "@radix-ui/react-context-menu";
50
50
  import "react-icons-picker";
51
51
  import "react-quill";
52
52
  import "react-hotkeys-hook";
53
- function Jr(r) {
53
+ function qr(r) {
54
54
  const a = [], t = {};
55
55
  function n(l, s) {
56
56
  Ne(s, (d, c) => {
@@ -67,12 +67,12 @@ const we = ({ data: r, fullView: a }) => {
67
67
  return a ? typeof r == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
68
68
  /* @__PURE__ */ e.jsx("div", { className: "h-3" }),
69
69
  /* @__PURE__ */ e.jsx(Je, { children: /* @__PURE__ */ e.jsx(
70
- Or,
70
+ Lr,
71
71
  {
72
72
  data: r,
73
- shouldExpandNode: zr,
73
+ shouldExpandNode: Or,
74
74
  style: {
75
- ...Yr,
75
+ ...zr,
76
76
  container: "max-h-[40vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",
77
77
  stringValue: "text-orange-600",
78
78
  label: "text-green-900 font-semibold pr-1 tracking-wider"
@@ -92,15 +92,15 @@ const we = ({ data: r, fullView: a }) => {
92
92
  dataType: s,
93
93
  appliedBindings: d
94
94
  }) => {
95
- const { paths: c, pathsType: o } = Jr(n), p = r === "PROP" ? Re(n == null ? void 0 : n._type) : {}, h = r === "PROP", [i, g] = j(!1), x = T(() => r === "PROP" ? c.filter(
96
- (u) => !X(d, u) && y(p, `props.${ae(wt(u, "."))}.binding`)
97
- ) : c.filter((u) => s === y(o, u, "")), [r, c, d, s, p]);
95
+ const { paths: c, pathsType: o } = qr(n), p = r === "PROP" ? Re(n == null ? void 0 : n._type) : {}, h = r === "PROP", [i, u] = j(!1), x = T(() => r === "PROP" ? c.filter(
96
+ (g) => !F(d, g) && y(p, `props.${ae(wt(g, "."))}.binding`)
97
+ ) : c.filter((g) => s === y(o, g, "")), [r, c, d, s, p]);
98
98
  return P(() => {
99
99
  a && l(a);
100
100
  }, [a, r]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
101
101
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
102
- /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: F(re(r)) }),
103
- /* @__PURE__ */ e.jsxs(Qe, { open: i, onOpenChange: g, children: [
102
+ /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: X(re(r)) }),
103
+ /* @__PURE__ */ e.jsxs(Qe, { open: i, onOpenChange: u, children: [
104
104
  /* @__PURE__ */ e.jsx(et, { asChild: !0, children: /* @__PURE__ */ e.jsx(
105
105
  A,
106
106
  {
@@ -109,37 +109,37 @@ const we = ({ data: r, fullView: a }) => {
109
109
  className: ` ${m(a) ? "w-44 justify-center bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white" : "min-w-[350px] items-center justify-between"}`,
110
110
  children: a ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
111
111
  /* @__PURE__ */ e.jsxs("span", { className: "pr-8 text-sm", children: [
112
- h && /* @__PURE__ */ e.jsx("span", { className: "mr-2 rounded-full bg-purple-100 px-2 py-0.5 text-[10px] text-purple-500", children: F(s) }),
112
+ h && /* @__PURE__ */ e.jsx("span", { className: "mr-2 rounded-full bg-purple-100 px-2 py-0.5 text-[10px] text-purple-500", children: X(s) }),
113
113
  a
114
114
  ] }),
115
115
  /* @__PURE__ */ e.jsx("span", { className: "cursor-pointer text-[9px] text-blue-400 underline hover:text-blue-700", children: "Change" })
116
116
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
117
117
  "+ Set ",
118
- F(re(r))
118
+ X(re(r))
119
119
  ] })
120
120
  }
121
121
  ) }),
122
- /* @__PURE__ */ e.jsx(tt, { className: "z-[999] min-w-[300px] p-0", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(er, { children: [
123
- /* @__PURE__ */ e.jsx(tr, { placeholder: `Choose ${re(r)}...` }),
124
- /* @__PURE__ */ e.jsxs(rr, { children: [
125
- /* @__PURE__ */ e.jsx(sr, { children: "No results found." }),
126
- /* @__PURE__ */ e.jsx(ar, { children: _(x, (u) => /* @__PURE__ */ e.jsxs(
127
- lr,
122
+ /* @__PURE__ */ e.jsx(tt, { className: "z-[999] min-w-[300px] p-0", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(Qt, { children: [
123
+ /* @__PURE__ */ e.jsx(er, { placeholder: `Choose ${re(r)}...` }),
124
+ /* @__PURE__ */ e.jsxs(tr, { children: [
125
+ /* @__PURE__ */ e.jsx(rr, { children: "No results found." }),
126
+ /* @__PURE__ */ e.jsx(sr, { children: _(x, (g) => /* @__PURE__ */ e.jsxs(
127
+ ar,
128
128
  {
129
- value: u,
129
+ value: g,
130
130
  className: `cursor-pointer ${h ? "flex items-center justify-between" : "flex flex-col items-start justify-start"}`,
131
131
  onSelect: (v) => {
132
- t(Ze(x, (C) => C === v) || null), g(!1);
132
+ t(Ze(x, (C) => C === v) || null), u(!1);
133
133
  },
134
134
  children: [
135
135
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
136
- /* @__PURE__ */ e.jsx(Br, { className: `h-4 w-4 text-green-500 ${a === u ? "" : "opacity-0"}` }),
137
- u
136
+ /* @__PURE__ */ e.jsx(Dr, { className: `h-4 w-4 text-green-500 ${a === g ? "" : "opacity-0"}` }),
137
+ g
138
138
  ] }),
139
- h ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "rounded-full bg-purple-100 px-2 py-0.5 text-[10px] text-purple-500", children: F(y(o, u, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(we, { data: y(n, u) }) })
139
+ h ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "rounded-full bg-purple-100 px-2 py-0.5 text-[10px] text-purple-500", children: X(y(o, g, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(we, { data: y(n, g) }) })
140
140
  ]
141
141
  },
142
- u
142
+ g
143
143
  )) })
144
144
  ] })
145
145
  ] }) })
@@ -147,18 +147,18 @@ const we = ({ data: r, fullView: a }) => {
147
147
  ] }),
148
148
  !h && !m(a) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(we, { data: y(n, a, ""), fullView: !0 }) })
149
149
  ] });
150
- }, Qr = ({
150
+ }, Jr = ({
151
151
  appliedBindings: r = [],
152
152
  onAddBinding: a,
153
153
  editMode: t,
154
154
  item: n
155
155
  }) => {
156
156
  const [l, s] = j(t ? n.key : ""), [d, c] = j(t ? n.value : ""), o = G(), [p] = rt(), h = H(
157
- (x, u) => {
157
+ (x, g) => {
158
158
  if (m(x))
159
159
  return "";
160
160
  {
161
- const v = y(u === "PROP" ? o : p, x, "");
161
+ const v = y(g === "PROP" ? o : p, x, "");
162
162
  if (ce(v))
163
163
  return "list";
164
164
  const C = typeof v;
@@ -166,11 +166,11 @@ const we = ({ data: r, fullView: a }) => {
166
166
  }
167
167
  },
168
168
  [o, p]
169
- ), [i, g] = j(t ? h(n.key, "PROP") : "");
169
+ ), [i, u] = j(t ? h(n.key, "PROP") : "");
170
170
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
171
- /* @__PURE__ */ e.jsxs(or, { children: [
172
- /* @__PURE__ */ e.jsx(nr, { children: "Add Data Binding" }),
173
- /* @__PURE__ */ e.jsx(ir, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
171
+ /* @__PURE__ */ e.jsxs(lr, { children: [
172
+ /* @__PURE__ */ e.jsx(or, { children: "Add Data Binding" }),
173
+ /* @__PURE__ */ e.jsx(nr, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
174
174
  ] }),
175
175
  /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col gap-1", children: [
176
176
  /* @__PURE__ */ e.jsx(
@@ -182,8 +182,8 @@ const we = ({ data: r, fullView: a }) => {
182
182
  value: l,
183
183
  setValue: s,
184
184
  onChange: (x) => {
185
- const u = h(x, "PROP");
186
- s(x), i !== u && c(""), g(u);
185
+ const g = h(x, "PROP");
186
+ s(x), i !== g && c(""), u(g);
187
187
  },
188
188
  data: o,
189
189
  dataType: i,
@@ -200,8 +200,8 @@ const we = ({ data: r, fullView: a }) => {
200
200
  value: d,
201
201
  setValue: c,
202
202
  onChange: (x) => {
203
- const u = h(x, "PATH");
204
- c(i === u ? x : "");
203
+ const g = h(x, "PATH");
204
+ c(i === g ? x : "");
205
205
  },
206
206
  data: p,
207
207
  dataType: i,
@@ -209,7 +209,7 @@ const we = ({ data: r, fullView: a }) => {
209
209
  }
210
210
  )
211
211
  ] }),
212
- /* @__PURE__ */ e.jsx(dr, { children: /* @__PURE__ */ e.jsx(
212
+ /* @__PURE__ */ e.jsx(ir, { children: /* @__PURE__ */ e.jsx(
213
213
  A,
214
214
  {
215
215
  type: "submit",
@@ -222,10 +222,10 @@ const we = ({ data: r, fullView: a }) => {
222
222
  ] });
223
223
  }, pt = ({ disabled: r, children: a, onAddBinding: t, appliedBindings: n, editMode: l = !0, item: s = {} }) => {
224
224
  const [d, c] = j(!1);
225
- return /* @__PURE__ */ e.jsxs(cr, { children: [
226
- /* @__PURE__ */ e.jsx(pr, { disabled: r, asChild: !0, onClick: () => c(!0), children: a }),
227
- d && /* @__PURE__ */ e.jsx(ur, { children: /* @__PURE__ */ e.jsx(
228
- Qr,
225
+ return /* @__PURE__ */ e.jsxs(dr, { children: [
226
+ /* @__PURE__ */ e.jsx(cr, { disabled: r, asChild: !0, onClick: () => c(!0), children: a }),
227
+ d && /* @__PURE__ */ e.jsx(pr, { children: /* @__PURE__ */ e.jsx(
228
+ Jr,
229
229
  {
230
230
  item: s,
231
231
  editMode: l,
@@ -236,7 +236,7 @@ const we = ({ data: r, fullView: a }) => {
236
236
  }
237
237
  ) })
238
238
  ] });
239
- }, es = ({
239
+ }, Qr = ({
240
240
  item: r,
241
241
  onAddBinding: a,
242
242
  onRemove: t,
@@ -251,8 +251,8 @@ const we = ({ data: r, fullView: a }) => {
251
251
  const i = y(h === "PROP" ? n : l, p, "");
252
252
  if (ce(i))
253
253
  return "list";
254
- const g = typeof i;
255
- return g === "string" ? "text" : g === "object" ? "model" : g;
254
+ const u = typeof i;
255
+ return u === "string" ? "text" : u === "object" ? "model" : u;
256
256
  }
257
257
  };
258
258
  return P(() => c(() => o(r.key, "PROP")), [r.key]), /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col rounded-md border border-gray-200 p-2", children: [
@@ -260,23 +260,23 @@ const we = ({ data: r, fullView: a }) => {
260
260
  /* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: r.value }),
261
261
  /* @__PURE__ */ e.jsx(we, { data: y(l, r.value, "") }),
262
262
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
263
- /* @__PURE__ */ e.jsx(pt, { editMode: !0, onAddBinding: a, appliedBindings: s, item: r, children: /* @__PURE__ */ e.jsx(Ir, { className: "mt-1 h-6 w-6 cursor-pointer rounded border border-blue-400 p-1 text-blue-400 duration-200 hover:scale-105 hover:bg-blue-400 hover:text-white" }) }),
263
+ /* @__PURE__ */ e.jsx(pt, { editMode: !0, onAddBinding: a, appliedBindings: s, item: r, children: /* @__PURE__ */ e.jsx(Br, { className: "mt-1 h-6 w-6 cursor-pointer rounded border border-blue-400 p-1 text-blue-400 duration-200 hover:scale-105 hover:bg-blue-400 hover:text-white" }) }),
264
264
  /* @__PURE__ */ e.jsx(
265
- Pr,
265
+ Ir,
266
266
  {
267
267
  onClick: () => t(),
268
268
  className: "mt-1 h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 duration-200 hover:scale-105 hover:bg-red-400 hover:text-white"
269
269
  }
270
270
  )
271
271
  ] }),
272
- !m(d) && !m(r.key) && /* @__PURE__ */ e.jsx("div", { className: "absolute right-0 top-1 mt-px flex h-4 items-center rounded-full px-2 text-[10px] font-medium text-purple-600", children: F(d) })
272
+ !m(d) && !m(r.key) && /* @__PURE__ */ e.jsx("div", { className: "absolute right-0 top-1 mt-px flex h-4 items-center rounded-full px-2 text-[10px] font-medium text-purple-600", children: X(d) })
273
273
  ] });
274
- }, ts = ({ bindingData: r, onChange: a }) => {
275
- const t = G(), [n] = rt(), l = Er(), [s, d] = j(
276
- _(r, (i, g) => ({ key: g, value: i }))
274
+ }, es = ({ bindingData: r, onChange: a }) => {
275
+ const t = G(), [n] = rt(), l = Mr(), [s, d] = j(
276
+ _(r, (i, u) => ({ key: u, value: i }))
277
277
  );
278
278
  P(() => {
279
- d(_(r, (i, g) => ({ key: g, value: i })));
279
+ d(_(r, (i, u) => ({ key: u, value: i })));
280
280
  }, [t == null ? void 0 : t._id, r]);
281
281
  const c = T(() => {
282
282
  if (m(n))
@@ -286,21 +286,21 @@ const we = ({ data: r, fullView: a }) => {
286
286
  const i = Ct(s);
287
287
  return m(i == null ? void 0 : i.key) || m(i == null ? void 0 : i.value);
288
288
  }, [n, s]), o = (i) => {
289
- const g = ye(s, (x) => x.key !== i.key);
290
- d([...g, i]), h([...g, i]);
289
+ const u = ye(s, (x) => x.key !== i.key);
290
+ d([...u, i]), h([...u, i]);
291
291
  }, p = (i) => {
292
- const g = ye(s, (x, u) => i !== u);
293
- h([...g]);
292
+ const u = ye(s, (x, g) => i !== g);
293
+ h([...u]);
294
294
  }, h = H(
295
295
  (i = []) => {
296
296
  if (d(i), m(i)) {
297
297
  a({});
298
298
  return;
299
299
  }
300
- const g = {};
300
+ const u = {};
301
301
  Ne(i, (x) => {
302
- !m(x == null ? void 0 : x.key) && !m(x == null ? void 0 : x.value) && We(g, x.key, x.value);
303
- }), a(g);
302
+ !m(x == null ? void 0 : x.key) && !m(x == null ? void 0 : x.value) && We(u, x.key, x.value);
303
+ }), a(u);
304
304
  },
305
305
  [a]
306
306
  );
@@ -309,12 +309,12 @@ const we = ({ data: r, fullView: a }) => {
309
309
  /* @__PURE__ */ e.jsx("br", {}),
310
310
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
311
311
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
312
- _(s, (i, g) => /* @__PURE__ */ e.jsx(
313
- es,
312
+ _(s, (i, u) => /* @__PURE__ */ e.jsx(
313
+ Qr,
314
314
  {
315
315
  item: i,
316
316
  onAddBinding: o,
317
- onRemove: () => p(g),
317
+ onRemove: () => p(u),
318
318
  selectedBlock: t,
319
319
  dataProvider: n,
320
320
  appliedBindings: _(s, "key")
@@ -340,14 +340,14 @@ const we = ({ data: r, fullView: a }) => {
340
340
  c && /* @__PURE__ */ e.jsx(E, { sideOffset: -55, className: "text-[11px]", children: m(n) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
341
341
  ] })
342
342
  ] });
343
- }, rs = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), Ce = mt(({ id: r, properties: a, formData: t, onChange: n }) => {
343
+ }, ts = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), Ce = mt(({ id: r, properties: a, formData: t, onChange: n }) => {
344
344
  const [l, s] = j(t), d = { type: "object", properties: {} }, c = {};
345
345
  Object.keys(a).forEach((p) => {
346
346
  const h = a[p];
347
- if (X(["slot", "styles"], h.type))
347
+ if (F(["slot", "styles"], h.type))
348
348
  return;
349
349
  const i = p;
350
- d.properties[i] = gr(h), c[i] = xr(h);
350
+ d.properties[i] = ur(h), c[i] = gr(h);
351
351
  }), P(() => {
352
352
  s(t);
353
353
  }, [r]);
@@ -360,15 +360,15 @@ const we = ({ data: r, fullView: a }) => {
360
360
  // save only every 5 seconds
361
361
  );
362
362
  return /* @__PURE__ */ e.jsx(
363
- Xr,
363
+ Yr,
364
364
  {
365
365
  widgets: {
366
- binding: rs,
367
- richtext: yr,
368
- icon: hr,
369
- image: br
366
+ binding: ts,
367
+ richtext: xr,
368
+ icon: yr,
369
+ image: hr
370
370
  },
371
- fields: { link: mr },
371
+ fields: { link: br },
372
372
  idSeparator: ".",
373
373
  autoComplete: "off",
374
374
  omitExtraData: !1,
@@ -383,8 +383,8 @@ const we = ({ data: r, fullView: a }) => {
383
383
  }
384
384
  }
385
385
  );
386
- }), ss = () => {
387
- const [r, a] = Zr(), t = fr(), n = (d, c) => {
386
+ }), rs = () => {
387
+ const [r, a] = Xr(), t = mr(), n = (d, c) => {
388
388
  a((o) => ({ ...o, [d]: c }));
389
389
  };
390
390
  if (m(t))
@@ -406,31 +406,31 @@ const we = ({ data: r, fullView: a }) => {
406
406
  ) })
407
407
  ] });
408
408
  };
409
- function as() {
410
- const r = G(), a = st(), t = at(), n = Re(r._type), l = { ...r }, [s, d] = j(l), c = lt("dataBindingSupport", !1), o = ({ formData: x }, u, v) => {
411
- if (u && (s == null ? void 0 : s._id) === r._id) {
412
- const C = u.replace("root.", "");
409
+ function ss() {
410
+ const r = G(), a = st(), t = at(), n = Re(r._type), l = { ...r }, [s, d] = j(l), c = lt("dataBindingSupport", !1), o = ({ formData: x }, g, v) => {
411
+ if (g && (s == null ? void 0 : s._id) === r._id) {
412
+ const C = g.replace("root.", "");
413
413
  t([r._id], { [C]: y(x, C) }, v);
414
414
  }
415
415
  }, p = H(
416
- kt(({ formData: x }, u, v) => {
417
- o({ formData: x }, u, v), d(x);
416
+ kt(({ formData: x }, g, v) => {
417
+ o({ formData: x }, g, v), d(x);
418
418
  }, 1500),
419
419
  [r == null ? void 0 : r._id]
420
- ), h = ({ formData: x }, u) => {
421
- if (u) {
422
- const v = u.replace("root.", "");
420
+ ), h = ({ formData: x }, g) => {
421
+ if (g) {
422
+ const v = g.replace("root.", "");
423
423
  a(
424
424
  [r._id],
425
- vr(v, y(x, v.split(".")))
426
- ), p({ formData: x }, u, { [v]: y(s, v) });
425
+ fr(v, y(x, v.split(".")))
426
+ ), p({ formData: x }, g, { [v]: y(s, v) });
427
427
  }
428
- }, i = he(y(l, "_bindings", {})), g = T(() => {
428
+ }, i = he(y(l, "_bindings", {})), u = T(() => {
429
429
  const x = Nt(y(n, "props", {}));
430
- return c && _t(i, (u) => delete x[u]), x;
430
+ return c && _t(i, (g) => delete x[g]), x;
431
431
  }, [n, i, c]);
432
432
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
433
- /* @__PURE__ */ e.jsx(ss, {}),
433
+ /* @__PURE__ */ e.jsx(rs, {}),
434
434
  c ? /* @__PURE__ */ e.jsxs(ot, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "h-full w-full", children: [
435
435
  /* @__PURE__ */ e.jsxs(me, { value: "BINDING", children: [
436
436
  /* @__PURE__ */ e.jsx(fe, { className: "bg-gray-100 px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
@@ -443,7 +443,7 @@ function as() {
443
443
  "Data Binding"
444
444
  ] }) }),
445
445
  /* @__PURE__ */ e.jsx(ve, { className: "px-4 pt-4", children: /* @__PURE__ */ e.jsx(
446
- ts,
446
+ es,
447
447
  {
448
448
  bindingData: y(r, "_bindings", {}),
449
449
  onChange: (x) => {
@@ -471,7 +471,7 @@ function as() {
471
471
  id: r == null ? void 0 : r._id,
472
472
  onChange: h,
473
473
  formData: l,
474
- properties: g
474
+ properties: u
475
475
  }
476
476
  )
477
477
  ] })
@@ -482,13 +482,13 @@ function as() {
482
482
  id: r == null ? void 0 : r._id,
483
483
  onChange: h,
484
484
  formData: l,
485
- properties: g
485
+ properties: u
486
486
  }
487
487
  )
488
488
  ] });
489
489
  }
490
- const ls = ({ blockId: r }) => {
491
- const { t: a } = B(), { askAi: t, loading: n, error: l } = jr(), [s, d] = j(""), c = ft(null);
490
+ const as = ({ blockId: r }) => {
491
+ const { t: a } = B(), { askAi: t, loading: n, error: l } = vr(), [s, d] = j(""), c = ft(null);
492
492
  P(() => {
493
493
  var p;
494
494
  (p = c.current) == null || p.focus();
@@ -499,7 +499,7 @@ const ls = ({ blockId: r }) => {
499
499
  return /* @__PURE__ */ e.jsxs("div", { className: "", children: [
500
500
  /* @__PURE__ */ e.jsx("h2", { className: "mb-1 text-sm font-semibold leading-none tracking-tight", children: a("Ask AI") }),
501
501
  /* @__PURE__ */ e.jsx(
502
- wr,
502
+ jr,
503
503
  {
504
504
  ref: c,
505
505
  value: s,
@@ -522,14 +522,14 @@ const ls = ({ blockId: r }) => {
522
522
  className: "w-fit",
523
523
  size: "sm",
524
524
  children: n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
525
- /* @__PURE__ */ e.jsx(Ar, { className: "w-5 h-5 animate-spin" }),
525
+ /* @__PURE__ */ e.jsx(Pr, { className: "w-5 h-5 animate-spin" }),
526
526
  a("Generating... Please wait")
527
527
  ] }) : a("Edit with AI")
528
528
  }
529
529
  ),
530
530
  n ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
531
- /* @__PURE__ */ e.jsxs(Cr, { className: "flex items-center w-full px-4 py-1 pl-2 space-x-1", children: [
532
- /* @__PURE__ */ e.jsx(kr, { className: "w-4 h-4 text-gray-500 animate-spin" }),
531
+ /* @__PURE__ */ e.jsxs(wr, { className: "flex items-center w-full px-4 py-1 pl-2 space-x-1", children: [
532
+ /* @__PURE__ */ e.jsx(Cr, { className: "w-4 h-4 text-gray-500 animate-spin" }),
533
533
  /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: a("Generating... Please wait") })
534
534
  ] }),
535
535
  /* @__PURE__ */ e.jsx(A, { variant: "destructive", onClick: () => stop(), className: "hidden w-fit", size: "sm", children: a("Stop") })
@@ -537,7 +537,7 @@ const ls = ({ blockId: r }) => {
537
537
  ] }),
538
538
  /* @__PURE__ */ e.jsx("div", { className: "max-w-full", children: l && /* @__PURE__ */ e.jsx("p", { className: "p-1 text-xs text-red-500 break-words bg-red-100 border border-red-500 rounded", children: l.message }) })
539
539
  ] });
540
- }, Oe = new Ur(Gr, {
540
+ }, Oe = new Wr(Ur, {
541
541
  isCaseSensitive: !1,
542
542
  threshold: 0.2,
543
543
  minMatchCharLength: 2,
@@ -545,10 +545,10 @@ const ls = ({ blockId: r }) => {
545
545
  });
546
546
  function ut() {
547
547
  var S;
548
- const { t: r } = B(), [a] = pe(), t = G(), n = Te(), l = nt(), [s] = it(), d = lt("askAiCallBack", null), [c, o] = j(""), { toast: p } = dt(), h = (S = ae(a)) == null ? void 0 : S.prop, i = St((y(t, h, "").replace(qr, "").split(",").pop() || "").split(" "), m), g = () => {
548
+ const { t: r } = B(), [a] = pe(), t = G(), n = Te(), l = nt(), [s] = it(), d = lt("askAiCallBack", null), [c, o] = j(""), { toast: p } = dt(), h = (S = ae(a)) == null ? void 0 : S.prop, i = St((y(t, h, "").replace(Kr, "").split(",").pop() || "").split(" "), m), u = () => {
549
549
  const w = c.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
550
550
  n(s, w, !0), o("");
551
- }, [x, u] = j([]), v = ({ value: w }) => {
551
+ }, [x, g] = j([]), v = ({ value: w }) => {
552
552
  const D = w.trim().toLowerCase(), Z = D.match(/.+:/g);
553
553
  let b = [];
554
554
  if (Z && Z.length > 0) {
@@ -559,9 +559,9 @@ function ut() {
559
559
  }));
560
560
  } else
561
561
  b = Oe.search(D);
562
- return u(_(b, "item"));
562
+ return g(_(b, "item"));
563
563
  }, C = () => {
564
- u([]);
564
+ g([]);
565
565
  }, U = (w) => w.name, L = (w) => /* @__PURE__ */ e.jsx("div", { className: "rounded-md p-1", children: w.name }), K = {
566
566
  autoComplete: "off",
567
567
  autoCorrect: "off",
@@ -570,7 +570,7 @@ function ut() {
570
570
  placeholder: r("Enter classes separated by space"),
571
571
  value: c,
572
572
  onKeyDown: (w) => {
573
- w.key === "Enter" && c.trim() !== "" && g();
573
+ w.key === "Enter" && c.trim() !== "" && u();
574
574
  },
575
575
  onChange: (w, { newValue: D }) => o(D),
576
576
  className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
@@ -597,21 +597,21 @@ function ut() {
597
597
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
598
598
  /* @__PURE__ */ e.jsx("span", { children: r("Classes") }),
599
599
  /* @__PURE__ */ e.jsxs($, { children: [
600
- /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsx(It, { onClick: q, className: "cursor-pointer" }) }),
600
+ /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsx(Bt, { onClick: q, className: "cursor-pointer" }) }),
601
601
  /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx("p", { children: r("Copy classes to clipboard") }) })
602
602
  ] })
603
603
  ] }),
604
604
  d ? /* @__PURE__ */ e.jsxs(Qe, { children: [
605
605
  /* @__PURE__ */ e.jsx(et, { children: /* @__PURE__ */ e.jsxs(A, { variant: "default", className: "h-6 w-fit", size: "sm", children: [
606
- /* @__PURE__ */ e.jsx($r, { className: "h-4 w-4" }),
606
+ /* @__PURE__ */ e.jsx(Ar, { className: "h-4 w-4" }),
607
607
  /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: r("Ask AI") })
608
608
  ] }) }),
609
- /* @__PURE__ */ e.jsx(tt, { side: "left", className: "p-2", children: /* @__PURE__ */ e.jsx(ls, { blockId: t == null ? void 0 : t._id }) })
609
+ /* @__PURE__ */ e.jsx(tt, { side: "left", className: "p-2", children: /* @__PURE__ */ e.jsx(as, { blockId: t == null ? void 0 : t._id }) })
610
610
  ] }) : null
611
611
  ] }),
612
612
  /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center gap-x-3", children: [
613
613
  /* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
614
- Wr,
614
+ Zr,
615
615
  {
616
616
  suggestions: x,
617
617
  onSuggestionsFetchRequested: v,
@@ -634,7 +634,7 @@ function ut() {
634
634
  {
635
635
  variant: "outline",
636
636
  className: "h-6 border-gray-700",
637
- onClick: g,
637
+ onClick: u,
638
638
  disabled: c.trim() === "",
639
639
  size: "sm",
640
640
  children: /* @__PURE__ */ e.jsx(_e, {})
@@ -664,9 +664,9 @@ function ut() {
664
664
  }
665
665
  );
666
666
  }
667
- const os = ({ onAdd: r }) => {
667
+ const ls = ({ onAdd: r }) => {
668
668
  const { t: a } = B(), [t, n] = j({ key: "", value: "" }), l = () => {
669
- m(t.key) || (r({ ...t, key: Tt(t.key) }), n({ key: "", value: "" }));
669
+ m(t.key) || (r({ ...t, key: t.key }), n({ key: "", value: "" }));
670
670
  };
671
671
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 border-gray-200", children: [
672
672
  /* @__PURE__ */ e.jsx(
@@ -710,59 +710,61 @@ const os = ({ onAdd: r }) => {
710
710
  m(t.key) ? null : /* @__PURE__ */ e.jsx(A, { variant: "ghost", onClick: () => n({ key: "", value: "" }), children: a("Cancel") })
711
711
  ] })
712
712
  ] });
713
- }, ns = () => {
713
+ }, os = () => {
714
714
  const r = G(), [a, t] = j([]), [n] = pe(), l = st(), s = at(), { t: d } = B(), { toast: c } = dt(), o = `${y(n, "0.prop")}_attrs`;
715
715
  ne.useEffect(() => {
716
- const g = _(y(r, o), (x, u) => ({ key: u, value: x }));
717
- m(g) ? t([]) : t(g);
716
+ const u = _(y(r, o), (x, g) => ({ key: g, value: x }));
717
+ m(u) ? t([]) : t(u);
718
718
  }, [y(r, o)]);
719
- const p = (g) => {
720
- const x = ye(a, (u, v) => g !== v);
719
+ const p = (u) => {
720
+ const x = ye(a, (g, v) => u !== v);
721
721
  i(x);
722
- }, h = (g) => {
723
- const x = Ze(a, { key: g.key });
722
+ }, h = (u) => {
723
+ const x = Ze(a, { key: u.key });
724
724
  if (x && (x.value.startsWith("dnd-") || x.value.startsWith("#dnd-"))) {
725
725
  c({
726
726
  title: d("Cannot add predefined attribute"),
727
727
  variant: "destructive",
728
- description: d(`"(${g.key})" cannot be added as it is a predefined attribute for this block`)
728
+ description: d(`"(${u.key})" cannot be added as it is a predefined attribute for this block`)
729
729
  });
730
730
  return;
731
731
  }
732
- const u = [...a, g];
733
- i(u);
732
+ const g = [...a, u];
733
+ i(g);
734
734
  }, i = ne.useCallback(
735
- (g = []) => {
735
+ (u = []) => {
736
736
  const x = {};
737
- Ne(g, (u) => {
738
- m(u.key) || We(x, u.key, u.value);
737
+ Ne(u, (g) => {
738
+ m(g.key) || We(x, g.key, g.value);
739
739
  }), s([y(r, "_id")], { [o]: x });
740
740
  },
741
741
  [r, l, o]
742
742
  );
743
- return /* @__PURE__ */ e.jsx("div", { className: "flex min-h-max flex-col gap-y-2 overflow-y-auto", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
744
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("ul", { className: "overflow-hidden rounded-md bg-gray-100 p-2 text-xs text-gray-700", children: [
745
- m(a) ? /* @__PURE__ */ e.jsx("li", { className: "flex h-4 items-center justify-center", children: /* @__PURE__ */ e.jsx("p", { children: d("No custom attributes added yet") }) }) : /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("span", { className: "font-bold", children: d("Attributes") }) }),
743
+ return /* @__PURE__ */ e.jsx("div", { className: "mb-20 flex min-h-max flex-col gap-y-2 overflow-y-auto", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
744
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("ul", { className: "overflow-hidden rounded-md bg-gray-100 text-xs text-gray-700", children: [
745
+ m(a) ? /* @__PURE__ */ e.jsx("li", { className: "flex h-4 items-center justify-center", children: /* @__PURE__ */ e.jsx("p", { children: d("No attributes added") }) }) : null,
746
746
  ne.Children.toArray(
747
- _(a, (g) => /* @__PURE__ */ e.jsxs("li", { className: "group flex max-w-full items-center justify-between", children: [
747
+ _(a, (u) => /* @__PURE__ */ e.jsxs("li", { className: "group flex w-full max-w-full items-center justify-between", children: [
748
748
  /* @__PURE__ */ e.jsxs($, { delayDuration: 1e3, children: [
749
- /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsxs("div", { className: "w-[90%] cursor-default truncate px-1 hover:bg-gray-200", children: [
750
- g.key,
751
- " ",
752
- /* @__PURE__ */ e.jsx("span", { className: "font-bold text-orange-500", children: "=" }),
753
- " ",
754
- g.value
749
+ /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsxs("div", { className: "max-w-[230px] cursor-default truncate px-1 hover:bg-gray-200", children: [
750
+ u.key,
751
+ u.value.trim() ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
752
+ " ",
753
+ /* @__PURE__ */ e.jsx("span", { className: "font-bold text-orange-500", children: "=" }),
754
+ " ",
755
+ u.value.trim()
756
+ ] }) : null
755
757
  ] }) }),
756
758
  /* @__PURE__ */ e.jsxs(E, { className: "max-w-[200px]", children: [
757
759
  /* @__PURE__ */ e.jsxs("div", { children: [
758
760
  d("Name"),
759
761
  ": ",
760
- g.key
762
+ u.key
761
763
  ] }),
762
764
  /* @__PURE__ */ e.jsxs("div", { children: [
763
765
  d("Value"),
764
766
  ": ",
765
- g.value
767
+ u.value
766
768
  ] })
767
769
  ] })
768
770
  ] }),
@@ -770,21 +772,21 @@ const os = ({ onAdd: r }) => {
770
772
  /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsx(
771
773
  "button",
772
774
  {
773
- disabled: W(g.value, "dnd-"),
775
+ disabled: W(u.value, "dnd-"),
774
776
  className: "invisible group-hover:visible",
775
- onClick: () => p(a.indexOf(g)),
776
- children: /* @__PURE__ */ e.jsx(Mr, { className: "w-4 text-gray-500" })
777
+ onClick: () => p(a.indexOf(u)),
778
+ children: /* @__PURE__ */ e.jsx($r, { className: "w-4 text-gray-500" })
777
779
  }
778
780
  ) }),
779
- /* @__PURE__ */ e.jsx(E, { className: "max-w-[200px]", children: W(g.value, "dnd-") ? d("Predefined attribute. Cannot be deleted") : d("Remove attribute") })
781
+ /* @__PURE__ */ e.jsx(E, { className: "max-w-[200px]", children: W(u.value, "dnd-") ? d("Predefined attribute. Cannot be deleted") : d("Remove attribute") })
780
782
  ] })
781
783
  ] }))
782
784
  )
783
785
  ] }) }),
784
786
  /* @__PURE__ */ e.jsx("div", { className: "py-2" }),
785
- /* @__PURE__ */ e.jsx(os, { onAdd: (g) => h(g) })
787
+ /* @__PURE__ */ e.jsx(ls, { onAdd: (u) => h(u) })
786
788
  ] }) });
787
- }, k = ["px", "%", "em", "rem", "ch", "vh", "vw"], is = {
789
+ }, k = ["px", "%", "em", "rem", "ch", "vh", "vw"], ns = {
788
790
  heading: "flex.heading",
789
791
  items: [
790
792
  { type: "arbitrary", label: "flex.basis", units: k, property: "flexBasis" },
@@ -793,7 +795,7 @@ const os = ({ onAdd: r }) => {
793
795
  { type: "dropdown", label: "flex.grow", property: "flexGrow" },
794
796
  { type: "dropdown", label: "flex.shrink", property: "flexShrink" }
795
797
  ]
796
- }, ds = {
798
+ }, is = {
797
799
  heading: "grid.heading",
798
800
  items: [
799
801
  { type: "range", label: "grid.col_span", property: "gridColSpan" },
@@ -804,7 +806,7 @@ const os = ({ onAdd: r }) => {
804
806
  { type: "range", label: "grid.row_end", property: "gridRowEnd" },
805
807
  { type: "range", label: "grid.order", property: "order" }
806
808
  ]
807
- }, cs = [
809
+ }, ds = [
808
810
  {
809
811
  heading: "Styles",
810
812
  items: [
@@ -868,9 +870,9 @@ const os = ({ onAdd: r }) => {
868
870
  },
869
871
  {
870
872
  heading: "Attributes",
871
- items: [{ component: ns }]
873
+ items: [{ component: os }]
872
874
  }
873
- ], Ta = [
875
+ ], Sa = [
874
876
  {
875
877
  heading: "layout.heading",
876
878
  items: [
@@ -1277,7 +1279,7 @@ const os = ({ onAdd: r }) => {
1277
1279
  ], gt = {
1278
1280
  "not-italic": () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 3H11V5H9V11H11V13H5V11H7V5H5V3H9Z", fill: "white" }) }),
1279
1281
  // visibility
1280
- visible: Pt,
1282
+ visible: It,
1281
1283
  invisible: Be,
1282
1284
  // display
1283
1285
  hidden: Be,
@@ -1313,10 +1315,10 @@ const os = ({ onAdd: r }) => {
1313
1315
  borderRadiusRight: Q,
1314
1316
  borderRadiusBottom: ee,
1315
1317
  borderRadiusLeft: te,
1316
- borderRadiusTopLeft: At,
1317
- borderRadiusTopRight: $t,
1318
- borderRadiusBottomRight: Mt,
1319
- borderRadiusBottomLeft: Et,
1318
+ borderRadiusTopLeft: Pt,
1319
+ borderRadiusTopRight: At,
1320
+ borderRadiusBottomRight: $t,
1321
+ borderRadiusBottomLeft: Mt,
1320
1322
  divideXWidth: R,
1321
1323
  divideYWidth: V,
1322
1324
  scale: Y,
@@ -1343,18 +1345,18 @@ const os = ({ onAdd: r }) => {
1343
1345
  marginBottom: ee,
1344
1346
  marginLeft: te,
1345
1347
  // text-align
1346
- textLeft: Lt,
1347
- textCenter: Ot,
1348
- textRight: zt,
1349
- textJustify: Yt,
1348
+ textLeft: Et,
1349
+ textCenter: Lt,
1350
+ textRight: Ot,
1351
+ textJustify: zt,
1350
1352
  // font style
1351
- italic: Xt,
1353
+ italic: Yt,
1352
1354
  // "not-italic": "",
1353
1355
  // decoration
1354
1356
  underline: Ft,
1355
- overline: Zt,
1357
+ overline: Xt,
1356
1358
  // transform
1357
- uppercase: Wt,
1359
+ uppercase: Zt,
1358
1360
  block: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1359
1361
  /* @__PURE__ */ e.jsx(
1360
1362
  "path",
@@ -1467,8 +1469,8 @@ const os = ({ onAdd: r }) => {
1467
1469
  }
1468
1470
  )
1469
1471
  ] }),
1470
- static: Ut
1471
- }, le = Fe({ canReset: !1, canChange: !0 }), ps = ({ children: r, canReset: a = !1, canChange: t = !0 }) => (
1472
+ static: Wt
1473
+ }, le = Xe({ canReset: !1, canChange: !0 }), cs = ({ children: r, canReset: a = !1, canChange: t = !0 }) => (
1472
1474
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1473
1475
  /* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: a, canChange: t }, children: r })
1474
1476
  ), xt = ({ label: r, property: a, onChange: t }) => {
@@ -1491,7 +1493,7 @@ const os = ({ onAdd: r }) => {
1491
1493
  ) });
1492
1494
  };
1493
1495
  function ke({ selected: r, onChange: a, rounded: t = !1, options: n, disabled: l = !1 }) {
1494
- const s = r.replace(/.*:/g, "").trim(), { undo: d, redo: c } = Nr();
1496
+ const s = r.replace(/.*:/g, "").trim(), { undo: d, redo: c } = kr();
1495
1497
  return /* @__PURE__ */ e.jsxs(
1496
1498
  "select",
1497
1499
  {
@@ -1511,7 +1513,7 @@ function ke({ selected: r, onChange: a, rounded: t = !1, options: n, disabled: l
1511
1513
  }
1512
1514
  );
1513
1515
  }
1514
- const us = ({ property: r, onChange: a }) => {
1516
+ const ps = ({ property: r, onChange: a }) => {
1515
1517
  const { canReset: t, canChange: n } = se(le), l = oe(r), s = T(() => y(l, "cls", ""), [l]), d = T(() => y(ge, `${r}.classes`, [""]), [r]), c = d.indexOf(s) > -1 ? d.indexOf(s) : 0, o = /\[.*\]/g.test(s);
1516
1518
  return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: o ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: s }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1517
1519
  /* @__PURE__ */ e.jsx(
@@ -1522,7 +1524,7 @@ const us = ({ property: r, onChange: a }) => {
1522
1524
  disabled: !n && (!t || c - 1 < 0),
1523
1525
  onClick: () => a(He(d, c - 1), r),
1524
1526
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1525
- Gt,
1527
+ Ut,
1526
1528
  {
1527
1529
  className: !n && (!t || c - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1528
1530
  }
@@ -1546,7 +1548,7 @@ const us = ({ property: r, onChange: a }) => {
1546
1548
  }
1547
1549
  )
1548
1550
  ] }) });
1549
- }, gs = ({ property: r, onChange: a }) => {
1551
+ }, us = ({ property: r, onChange: a }) => {
1550
1552
  const t = T(() => y(ge, `${r}.classes`, [""]), [r]), { canChange: n } = se(le), l = oe(r), s = T(() => y(l, "cls", ""), [l]);
1551
1553
  return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: _(t, (d) => /* @__PURE__ */ e.jsxs($, { children: [
1552
1554
  /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsx(
@@ -1559,9 +1561,9 @@ const us = ({ property: r, onChange: a }) => {
1559
1561
  children: I.createElement(y(gt, d, Ke))
1560
1562
  }
1561
1563
  ) }),
1562
- /* @__PURE__ */ e.jsx(E, { children: F(re(d)) })
1564
+ /* @__PURE__ */ e.jsx(E, { children: X(re(d)) })
1563
1565
  ] })) });
1564
- }, xs = {
1566
+ }, gs = {
1565
1567
  backgroundColor: "bg",
1566
1568
  textColor: "text",
1567
1569
  borderColor: "border",
@@ -1573,11 +1575,11 @@ const us = ({ property: r, onChange: a }) => {
1573
1575
  toColor: "to",
1574
1576
  ringColor: "ring",
1575
1577
  ringOffsetColor: "ring-offset"
1576
- }, ys = ({ property: r, onChange: a }) => {
1577
- const t = oe(r), n = T(() => y(t, "cls", ""), [t]), { canChange: l } = se(le), [s, d] = j([]), [c, o] = j({ color: "", shade: "" }), p = n.split("-"), h = y(p, "1", ""), i = y(p, "2", ""), g = H(
1578
+ }, xs = ({ property: r, onChange: a }) => {
1579
+ const t = oe(r), n = T(() => y(t, "cls", ""), [t]), { canChange: l } = se(le), [s, d] = j([]), [c, o] = j({ color: "", shade: "" }), p = n.split("-"), h = y(p, "1", ""), i = y(p, "2", ""), u = H(
1578
1580
  // eslint-disable-next-line no-shadow
1579
- (u) => {
1580
- ["current", "inherit", "transparent", "black", "white"].includes(u) ? (d([]), o({ color: u })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), o((v) => ({ ...v, color: u, shade: v.shade ? v.shade : "500" })));
1581
+ (g) => {
1582
+ ["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]), o({ color: g })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), o((v) => ({ ...v, color: g, shade: v.shade ? v.shade : "500" })));
1581
1583
  },
1582
1584
  [d, o]
1583
1585
  );
@@ -1588,15 +1590,15 @@ const us = ({ property: r, onChange: a }) => {
1588
1590
  }, [h]);
1589
1591
  const x = H(
1590
1592
  // eslint-disable-next-line no-shadow
1591
- (u) => {
1592
- o({ color: h, shade: u });
1593
+ (g) => {
1594
+ o({ color: h, shade: g });
1593
1595
  },
1594
1596
  [h]
1595
1597
  );
1596
1598
  return P(() => {
1597
1599
  o({ color: "", shade: "" });
1598
1600
  }, [t]), P(() => {
1599
- const v = `${y(xs, r, "")}-${c.color}${c.shade ? `-${c.shade}` : ""}`;
1601
+ const v = `${y(gs, r, "")}-${c.color}${c.shade ? `-${c.shade}` : ""}`;
1600
1602
  v.match(new RegExp(y(ge, `${r}.regExp`, ""))) && a(v, r);
1601
1603
  }, [c, a, r]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1602
1604
  /* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
@@ -1605,7 +1607,7 @@ const us = ({ property: r, onChange: a }) => {
1605
1607
  disabled: !l,
1606
1608
  rounded: !0,
1607
1609
  selected: h,
1608
- onChange: g,
1610
+ onChange: u,
1609
1611
  options: [
1610
1612
  "current",
1611
1613
  "transparent",
@@ -1650,7 +1652,7 @@ const us = ({ property: r, onChange: a }) => {
1650
1652
  const l = r.match(n), s = l && l.length > 1, d = !m(t) && Number.isNaN(Number(t));
1651
1653
  return s || d ? { error: "Invalid value" } : l && (l[0] === "auto" || l[0] === "none") ? { value: l[0], unit: "" } : { value: t, unit: l ? l[0] : "" };
1652
1654
  };
1653
- const hs = (r) => {
1655
+ const ys = (r) => {
1654
1656
  const a = r.startsWith("-") ? "-" : "", t = r.split("-").pop();
1655
1657
  if (["auto", "none"].includes(t))
1656
1658
  return { value: "", unit: t };
@@ -1660,17 +1662,17 @@ const hs = (r) => {
1660
1662
  return { value: "100", unit: r.indexOf("w-") !== -1 ? "vw" : "vh" };
1661
1663
  if (t === "full")
1662
1664
  return { value: "100", unit: "%" };
1663
- if (X(r, "skew-"))
1665
+ if (F(r, "skew-"))
1664
1666
  return { value: `${a}${t}`, unit: "deg" };
1665
- if (X(r, "rotate-"))
1667
+ if (F(r, "rotate-"))
1666
1668
  return { value: `${a}${t}`, unit: "deg" };
1667
- if (X(r, "opacity-"))
1669
+ if (F(r, "opacity-"))
1668
1670
  return { value: `${t / 100}`, unit: "-" };
1669
- if (X(r, "duration-") || X(r, "delay-"))
1671
+ if (F(r, "duration-") || F(r, "delay-"))
1670
1672
  return { value: `${t}`, unit: "ms" };
1671
- if (X(r, "translate-") && !t.includes("/"))
1673
+ if (F(r, "translate-") && !t.includes("/"))
1672
1674
  return { value: `${a}${`${t / 4}`}`, unit: "rem" };
1673
- if (X(r, "scale-"))
1675
+ if (F(r, "scale-"))
1674
1676
  return { value: `${a}${`${t / 100}`}`, unit: "-" };
1675
1677
  if (W(r, "border")) {
1676
1678
  const n = r.match(/border-?(x|y|t|r|b|l)?\d+/g);
@@ -1777,20 +1779,20 @@ const hs = (r) => {
1777
1779
  const [n, l] = _(t.split("/"), (s) => parseInt(s, 10));
1778
1780
  return { value: a + (n / l * 100).toFixed(2).replace(".00", ""), unit: "%" };
1779
1781
  }
1780
- return Rt(parseFloat(t)) ? { value: `${a + parseFloat(t) * 4}`, unit: "px" } : { value: t, unit: "class" };
1782
+ return Tt(parseFloat(t)) ? { value: `${a + parseFloat(t) * 4}`, unit: "px" } : { value: t, unit: "class" };
1781
1783
  };
1782
- const bs = (r) => {
1784
+ const hs = (r) => {
1783
1785
  if (m(r))
1784
1786
  return { value: "", unit: "" };
1785
1787
  const a = r.match(/\[.*\]/g);
1786
1788
  if (a === null)
1787
- return ms(r);
1789
+ return bs(r);
1788
1790
  const t = y(a, "0", "").replace(/\[|\]/g, ""), n = r.startsWith("-") ? "-" : "", l = ae(t.match(/\d+.\d+|\d+/g));
1789
1791
  return { value: `${n}${l}`, unit: t.replace(l, "") };
1790
- }, ms = (r) => m(r) ? { value: "", unit: "" } : hs(r), yt = I.createContext({
1792
+ }, bs = (r) => m(r) ? { value: "", unit: "" } : ys(r), yt = I.createContext({
1791
1793
  setDragData: () => {
1792
1794
  }
1793
- }), fs = ({
1795
+ }), ms = ({
1794
1796
  unit: r,
1795
1797
  currentValue: a,
1796
1798
  onDrag: t,
@@ -1819,10 +1821,10 @@ const bs = (r) => {
1819
1821
  },
1820
1822
  color: void 0,
1821
1823
  className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
1822
- children: /* @__PURE__ */ e.jsx(Kt, {})
1824
+ children: /* @__PURE__ */ e.jsx(Gt, {})
1823
1825
  }
1824
1826
  );
1825
- }, vs = ({ onSelect: r, current: a, units: t }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: t.map((n) => /* @__PURE__ */ e.jsx(
1827
+ }, fs = ({ onSelect: r, current: a, units: t }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: t.map((n) => /* @__PURE__ */ e.jsx(
1826
1828
  A,
1827
1829
  {
1828
1830
  className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
@@ -1834,21 +1836,21 @@ const bs = (r) => {
1834
1836
  children: n
1835
1837
  },
1836
1838
  n
1837
- )) }), Ye = 50, js = (r) => {
1838
- const [a, t] = j(!1), [n, l] = j(""), { currentClass: s, onChange: d, classPrefix: c, cssProperty: o, units: p, negative: h } = r, [i, g] = j(o != null && o.toLowerCase().includes("width") ? "%" : p[0]), [x, u] = j(!1), [v, C] = j(""), [U, L] = j(!1), [K, q] = j(!1);
1839
+ )) }), Ye = 50, vs = (r) => {
1840
+ const [a, t] = j(!1), [n, l] = j(""), { currentClass: s, onChange: d, classPrefix: c, cssProperty: o, units: p, negative: h } = r, [i, u] = j(o != null && o.toLowerCase().includes("width") ? "%" : p[0]), [x, g] = j(!1), [v, C] = j(""), [U, L] = j(!1), [K, q] = j(!1);
1839
1841
  P(() => {
1840
- const { value: b, unit: f } = bs(s);
1842
+ const { value: b, unit: f } = hs(s);
1841
1843
  if (f === "") {
1842
- l(b), g(o != null && o.toLowerCase().includes("width") ? "%" : ae(p));
1844
+ l(b), u(o != null && o.toLowerCase().includes("width") ? "%" : ae(p));
1843
1845
  return;
1844
1846
  }
1845
- g(f), l(f === "class" || m(b) ? "" : b);
1847
+ u(f), l(f === "class" || m(b) ? "" : b);
1846
1848
  }, [s, o, p]);
1847
1849
  const S = de((b) => d(b), [d], Ye), w = de((b) => d(b, !1), [d], Ye), D = H(
1848
1850
  (b = !1) => {
1849
1851
  const f = ze(`${n}`, p);
1850
1852
  if (y(f, "error", !1)) {
1851
- u(!0);
1853
+ g(!0);
1852
1854
  return;
1853
1855
  }
1854
1856
  const N = y(f, "unit") !== "" ? y(f, "unit") : i;
@@ -1866,7 +1868,7 @@ const bs = (r) => {
1866
1868
  (b) => {
1867
1869
  const f = ze(`${n}`, p);
1868
1870
  if (y(f, "error", !1)) {
1869
- u(!0);
1871
+ g(!0);
1870
1872
  return;
1871
1873
  }
1872
1874
  if (b === "auto" || b === "none") {
@@ -1899,7 +1901,7 @@ const bs = (r) => {
1899
1901
  if (b.keyCode !== 38 && b.keyCode !== 40)
1900
1902
  return;
1901
1903
  b.preventDefault(), q(!0);
1902
- const f = Vt(b.target.value);
1904
+ const f = Rt(b.target.value);
1903
1905
  let N = Ue(f) ? 0 : f;
1904
1906
  b.keyCode === 38 && (N += 1), b.keyCode === 40 && (N -= 1);
1905
1907
  const O = `${N}`, bt = `${O.startsWith("-") ? "-" : ""}${c}[${O.replace("-", "")}${i === "-" ? "" : i}]`;
@@ -1910,7 +1912,7 @@ const bs = (r) => {
1910
1912
  },
1911
1913
  onBlur: () => D(),
1912
1914
  onChange: (b) => {
1913
- u(!1), l(b.target.value);
1915
+ g(!1), l(b.target.value);
1914
1916
  },
1915
1917
  onClick: (b) => {
1916
1918
  var f;
@@ -1932,24 +1934,24 @@ const bs = (r) => {
1932
1934
  className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
1933
1935
  children: [
1934
1936
  /* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: i }),
1935
- p.length > 1 ? /* @__PURE__ */ e.jsx(qt, {}) : null
1937
+ p.length > 1 ? /* @__PURE__ */ e.jsx(Kt, {}) : null
1936
1938
  ]
1937
1939
  }
1938
1940
  ) }),
1939
- /* @__PURE__ */ e.jsx(_r, { children: /* @__PURE__ */ e.jsx(E, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1940
- vs,
1941
+ /* @__PURE__ */ e.jsx(Nr, { children: /* @__PURE__ */ e.jsx(E, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1942
+ fs,
1941
1943
  {
1942
1944
  units: p,
1943
1945
  current: i,
1944
1946
  onSelect: (b) => {
1945
- t(!1), g(b), Z(b);
1947
+ t(!1), u(b), Z(b);
1946
1948
  }
1947
1949
  }
1948
1950
  ) }) })
1949
1951
  ] })
1950
1952
  ] }),
1951
1953
  ["none", "auto"].indexOf(i) !== -1 || U ? null : /* @__PURE__ */ e.jsx(
1952
- fs,
1954
+ ms,
1953
1955
  {
1954
1956
  onDragStart: () => L(!0),
1955
1957
  onDragEnd: (b) => {
@@ -1974,8 +1976,8 @@ const bs = (r) => {
1974
1976
  ] }) }) });
1975
1977
  }, oe = (r) => {
1976
1978
  const a = ue();
1977
- return Ht(a, { property: r });
1978
- }, ws = (r, a) => {
1979
+ return Vt(a, { property: r });
1980
+ }, js = (r, a) => {
1979
1981
  const t = {
1980
1982
  xs: 0,
1981
1983
  sm: 1,
@@ -1985,7 +1987,7 @@ const bs = (r) => {
1985
1987
  "2xl": 5
1986
1988
  };
1987
1989
  return t[y(r, "mq", "xs")] <= t[a];
1988
- }, Cs = {
1990
+ }, ws = {
1989
1991
  width: "w-",
1990
1992
  height: "h-",
1991
1993
  minWidth: "min-w-",
@@ -2051,26 +2053,26 @@ const bs = (r) => {
2051
2053
  insetY: "inset-y-",
2052
2054
  opacity: "opacity-",
2053
2055
  flexBasis: "basis-"
2054
- }, Xe = {
2056
+ }, Fe = {
2055
2057
  xs: "",
2056
2058
  sm: "640px",
2057
2059
  md: "768px",
2058
2060
  lg: "1024px",
2059
2061
  xl: "1280px",
2060
2062
  "2xl": "1536px"
2061
- }, ks = (r) => `${r.toUpperCase()} ${Xe[r] ? `(${Xe[r]} & up)` : ""}`, Ve = (r) => {
2063
+ }, Cs = (r) => `${r.toUpperCase()} ${Fe[r] ? `(${Fe[r]} & up)` : ""}`, Ve = (r) => {
2062
2064
  const { t: a } = B(), { type: t = "icons", label: n, property: l, onEmitChange: s = () => {
2063
- }, units: d, negative: c = !1 } = r, [o] = Sr(), [p] = Tr(), [, h] = Ie(), i = oe(l), g = Te(), x = nt(), [u] = it(), v = T(() => y(i, "fullCls", ""), [i]), C = H(
2065
+ }, units: d, negative: c = !1 } = r, [o] = _r(), [p] = Sr(), [, h] = Ie(), i = oe(l), u = Te(), x = nt(), [g] = it(), v = T(() => y(i, "fullCls", ""), [i]), C = H(
2064
2066
  (w, D = !0) => {
2065
2067
  const Z = { dark: o, mq: h, mod: p, cls: w, property: l, fullCls: "" };
2066
2068
  (o || p !== "") && (Z.mq = "xs");
2067
- const b = Kr(Z);
2068
- g(u, [b], D);
2069
+ const b = Gr(Z);
2070
+ u(g, [b], D);
2069
2071
  },
2070
- [u, o, h, p, l, g]
2072
+ [g, o, h, p, l, u]
2071
2073
  ), U = H(() => {
2072
- x(u, [v]);
2073
- }, [u, v, x]), L = T(() => ws(i, h), [i, h]);
2074
+ x(g, [v]);
2075
+ }, [g, v, x]), L = T(() => js(i, h), [i, h]);
2074
2076
  P(() => {
2075
2077
  s(L, i);
2076
2078
  }, [L, s, i]);
@@ -2087,27 +2089,27 @@ const bs = (r) => {
2087
2089
  },
2088
2090
  [K]
2089
2091
  ), S = y(i, "dark", null) === o && y(i, "mod", null) === p && y(i, "mq", null) === h;
2090
- return /* @__PURE__ */ e.jsx(ps, { canChange: L, canReset: i && S, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
2092
+ return /* @__PURE__ */ e.jsx(cs, { canChange: L, canReset: i && S, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
2091
2093
  /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${i && !S ? "text-foreground" : ""}`, children: a(n) }) }),
2092
2094
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
2093
2095
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
2094
2096
  t === "arbitrary" ? /* @__PURE__ */ e.jsx(
2095
- js,
2097
+ vs,
2096
2098
  {
2097
2099
  currentClass: y(i, "cls", ""),
2098
- classPrefix: y(Cs, l, ""),
2100
+ classPrefix: y(ws, l, ""),
2099
2101
  units: d || [],
2100
2102
  onChange: C,
2101
2103
  negative: c,
2102
2104
  cssProperty: l
2103
2105
  }
2104
2106
  ) : null,
2105
- t === "icons" && /* @__PURE__ */ e.jsx(gs, { property: l, onChange: C }),
2106
- t === "range" && /* @__PURE__ */ e.jsx(us, { property: l, onChange: C }),
2107
- t === "color" && /* @__PURE__ */ e.jsx(ys, { property: l, onChange: C }),
2107
+ t === "icons" && /* @__PURE__ */ e.jsx(us, { property: l, onChange: C }),
2108
+ t === "range" && /* @__PURE__ */ e.jsx(ps, { property: l, onChange: C }),
2109
+ t === "color" && /* @__PURE__ */ e.jsx(xs, { property: l, onChange: C }),
2108
2110
  t === "dropdown" && /* @__PURE__ */ e.jsx(xt, { label: n, property: l, onChange: C })
2109
2111
  ] }),
2110
- /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${v ? "visible" : "invisible"}`, children: S ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => U(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : L && i ? /* @__PURE__ */ e.jsxs($, { delayDuration: 100, children: [
2112
+ /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${v ? "visible" : "invisible"}`, children: S ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => U(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(qt, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : L && i ? /* @__PURE__ */ e.jsxs($, { delayDuration: 100, children: [
2111
2113
  /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsx(
2112
2114
  "button",
2113
2115
  {
@@ -2119,7 +2121,7 @@ const bs = (r) => {
2119
2121
  /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
2120
2122
  "Current style is set at  ",
2121
2123
  /* @__PURE__ */ e.jsxs("span", { className: "font-bold", children: [
2122
- ks(y(i, "mq")),
2124
+ Cs(y(i, "mq")),
2123
2125
  o && !i.dark ? "(Light mode)" : ""
2124
2126
  ] }),
2125
2127
  /* @__PURE__ */ e.jsx("br", {}),
@@ -2139,16 +2141,16 @@ const bs = (r) => {
2139
2141
  ] }) : null })
2140
2142
  ] })
2141
2143
  ] }) });
2142
- }, Ns = ["px", "%", "em", "rem", "ch", "vh", "vw"], ht = ({
2144
+ }, ks = ["px", "%", "em", "rem", "ch", "vh", "vw"], ht = ({
2143
2145
  label: r,
2144
2146
  options: a,
2145
2147
  borderB: t = !1,
2146
2148
  borderT: n = !1,
2147
2149
  type: l = "arbitrary",
2148
- units: s = Ns,
2150
+ units: s = ks,
2149
2151
  negative: d = !1
2150
2152
  }) => {
2151
- const { t: c } = B(), [o, p] = j(a[0].key), h = ue(), i = H((g) => _(h, "property").includes(g), [h]);
2153
+ const { t: c } = B(), [o, p] = j(a[0].key), h = ue(), i = H((u) => _(h, "property").includes(u), [h]);
2152
2154
  return /* @__PURE__ */ e.jsxs(
2153
2155
  "div",
2154
2156
  {
@@ -2157,7 +2159,7 @@ const bs = (r) => {
2157
2159
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
2158
2160
  r && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: c(r) }),
2159
2161
  /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: I.Children.toArray(
2160
- a.map(({ label: g, key: x }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs($, { children: [
2162
+ a.map(({ label: u, key: x }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs($, { children: [
2161
2163
  /* @__PURE__ */ e.jsx(M, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
2162
2164
  "button",
2163
2165
  {
@@ -2172,7 +2174,7 @@ const bs = (r) => {
2172
2174
  ]
2173
2175
  }
2174
2176
  ) }),
2175
- /* @__PURE__ */ e.jsx(E, { children: F(re(g)) })
2177
+ /* @__PURE__ */ e.jsx(E, { children: X(re(u)) })
2176
2178
  ] }) }))
2177
2179
  ) })
2178
2180
  ] }),
@@ -2189,14 +2191,14 @@ const bs = (r) => {
2189
2191
  ]
2190
2192
  }
2191
2193
  );
2192
- }, _s = ({ heading: r, items: a }) => {
2194
+ }, Ns = ({ heading: r, items: a }) => {
2193
2195
  const { t } = B(), n = ue(), l = T(() => {
2194
2196
  const s = (o) => De(
2195
2197
  o.map((p) => p.styleType === "multiple" ? _(p.options, "key") : p.property)
2196
2198
  ), d = De(
2197
2199
  a.map((o) => o.styleType === "accordion" ? s(o.items) : o.styleType === "multiple" ? _(o.options, "key") : o.property)
2198
2200
  ), c = _(n, "property");
2199
- return Dt(d, c).length > 0;
2201
+ return Ht(d, c).length > 0;
2200
2202
  }, [n, a]);
2201
2203
  return /* @__PURE__ */ e.jsxs("details", { children: [
2202
2204
  /* @__PURE__ */ e.jsx("summary", { className: "my-px cursor-default rounded-md bg-background p-px px-2 text-[11px] text-foreground", children: /* @__PURE__ */ e.jsxs("div", { className: "inline", children: [
@@ -2210,7 +2212,7 @@ const bs = (r) => {
2210
2212
  ] }) }),
2211
2213
  /* @__PURE__ */ e.jsx("div", { className: "p-2", children: a.map((s) => s.styleType === "multiple" ? /* @__PURE__ */ e.jsx(ht, { ...s }, s.label) : /* @__PURE__ */ e.jsx(Ve, { ...s }, s.label)) })
2212
2214
  ] });
2213
- }, Ss = Fe({}), xe = ({ section: r }) => {
2215
+ }, _s = Xe({}), xe = ({ section: r }) => {
2214
2216
  const { t: a } = B(), t = ue(), n = H(
2215
2217
  (s = []) => {
2216
2218
  const d = {};
@@ -2226,26 +2228,26 @@ const bs = (r) => {
2226
2228
  },
2227
2229
  [t]
2228
2230
  ), l = T(() => ({}), []);
2229
- return /* @__PURE__ */ e.jsx(Ss.Provider, { value: l, children: /* @__PURE__ */ e.jsxs(me, { value: r.heading, children: [
2231
+ return /* @__PURE__ */ e.jsx(_s.Provider, { value: l, children: /* @__PURE__ */ e.jsxs(me, { value: r.heading, children: [
2230
2232
  /* @__PURE__ */ e.jsx(fe, { className: "bg-gray-200 px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-x-2", children: a(r.heading) }) }),
2231
2233
  /* @__PURE__ */ e.jsx(ve, { className: "bg-gray-100 px-3.5 py-2", children: I.Children.toArray(
2232
- r.items.map((s) => ie(s, "component") ? I.createElement(s.component, { key: s.label }) : ie(s, "styleType") ? s.styleType === "multiple" ? /* @__PURE__ */ e.jsx(ht, { ...s }, s.label) : s.styleType === "accordion" && n(s == null ? void 0 : s.conditions) ? /* @__PURE__ */ e.jsx(_s, { ...s }, s.label) : null : /* @__PURE__ */ e.jsx(Ve, { ...s }, s.label))
2234
+ r.items.map((s) => ie(s, "component") ? I.createElement(s.component, { key: s.label }) : ie(s, "styleType") ? s.styleType === "multiple" ? /* @__PURE__ */ e.jsx(ht, { ...s }, s.label) : s.styleType === "accordion" && n(s == null ? void 0 : s.conditions) ? /* @__PURE__ */ e.jsx(Ns, { ...s }, s.label) : null : /* @__PURE__ */ e.jsx(Ve, { ...s }, s.label))
2233
2235
  ) })
2234
2236
  ] }) });
2235
- }, Ts = () => {
2236
- const r = G(), [a] = pe(), { t } = B(), n = Lr(), l = Te(), s = Re(r._type), d = y(ae(a), "prop"), c = y(s.props, `${d}.presets`, {});
2237
+ }, Ss = () => {
2238
+ const r = G(), [a] = pe(), { t } = B(), n = Er(), l = Te(), s = Re(r._type), d = y(ae(a), "prop"), c = y(s.props, `${d}.presets`, {});
2237
2239
  if (m(n) && (!ie(s, "props") || m(c)))
2238
2240
  return null;
2239
2241
  const o = (p) => {
2240
2242
  const h = p.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
2241
2243
  l([r._id], h, !0);
2242
2244
  };
2243
- return /* @__PURE__ */ e.jsx("div", { className: "h-10", children: /* @__PURE__ */ e.jsxs(Rr, { children: [
2244
- /* @__PURE__ */ e.jsx(Vr, { asChild: !0, children: /* @__PURE__ */ e.jsx("div", { className: "px-4", children: /* @__PURE__ */ e.jsxs(A, { variant: "default", className: "w-full", size: "sm", children: [
2245
+ return /* @__PURE__ */ e.jsx("div", { className: "h-10", children: /* @__PURE__ */ e.jsxs(Tr, { children: [
2246
+ /* @__PURE__ */ e.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ e.jsx("div", { className: "px-4", children: /* @__PURE__ */ e.jsxs(A, { variant: "default", className: "w-full", size: "sm", children: [
2245
2247
  t("Apply Presets"),
2246
- /* @__PURE__ */ e.jsx(Qt, {})
2248
+ /* @__PURE__ */ e.jsx(Jt, {})
2247
2249
  ] }) }) }),
2248
- /* @__PURE__ */ e.jsx(Hr, { className: "max-h-80 w-56", children: /* @__PURE__ */ e.jsxs(ct, { className: "no-scrollbar h-full", children: [
2250
+ /* @__PURE__ */ e.jsx(Vr, { className: "max-h-80 w-56", children: /* @__PURE__ */ e.jsxs(ct, { className: "no-scrollbar h-full", children: [
2249
2251
  m(c) ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2250
2252
  /* @__PURE__ */ e.jsxs(Pe, { children: [
2251
2253
  s.type,
@@ -2254,7 +2256,7 @@ const bs = (r) => {
2254
2256
  ] }),
2255
2257
  /* @__PURE__ */ e.jsx(Ae, {}),
2256
2258
  /* @__PURE__ */ e.jsx($e, { children: he(c).map((p) => /* @__PURE__ */ e.jsxs(Me, { className: "group text-xs", onClick: () => o(c[p]), children: [
2257
- be(F(t(p))),
2259
+ be(X(t(p))),
2258
2260
  /* @__PURE__ */ e.jsx(Ee, { className: "invisible hover:font-bold hover:text-blue-600 group-hover:visible", children: t("apply") })
2259
2261
  ] })) })
2260
2262
  ] }),
@@ -2262,28 +2264,28 @@ const bs = (r) => {
2262
2264
  /* @__PURE__ */ e.jsx(Pe, { children: t("Global presets") }),
2263
2265
  /* @__PURE__ */ e.jsx(Ae, {}),
2264
2266
  /* @__PURE__ */ e.jsx($e, { children: he(n).map((p) => /* @__PURE__ */ e.jsxs(Me, { className: "group text-xs", onClick: () => o(n[p]), children: [
2265
- be(F(t(p))),
2267
+ be(X(t(p))),
2266
2268
  /* @__PURE__ */ e.jsx(Ee, { className: "invisible hover:font-bold hover:text-blue-600 group-hover:visible", children: t("apply") })
2267
2269
  ] })) })
2268
2270
  ] })
2269
2271
  ] }) })
2270
2272
  ] }) });
2271
2273
  };
2272
- function Rs() {
2273
- const { flexChild: r, gridChild: a } = Dr(), { t } = B(), [n] = pe();
2274
+ function Ts() {
2275
+ const { flexChild: r, gridChild: a } = Hr(), { t } = B(), [n] = pe();
2274
2276
  return m(n) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2275
2277
  /* @__PURE__ */ e.jsx(qe, { className: "mx-auto text-3xl" }),
2276
2278
  /* @__PURE__ */ e.jsx("h1", { children: t("no_styling_block_selected") })
2277
2279
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "flex h-full flex-col", children: [
2278
- /* @__PURE__ */ e.jsx(Ts, {}),
2280
+ /* @__PURE__ */ e.jsx(Ss, {}),
2279
2281
  /* @__PURE__ */ e.jsxs(ot, { defaultValue: ["Styles"], type: "multiple", className: "w-full", children: [
2280
- r && /* @__PURE__ */ e.jsx(xe, { section: is }),
2281
- a ? /* @__PURE__ */ e.jsx(xe, { section: ds }) : null,
2282
- cs.map((l) => /* @__PURE__ */ e.jsx(xe, { section: l }, l.heading))
2282
+ r && /* @__PURE__ */ e.jsx(xe, { section: ns }),
2283
+ a ? /* @__PURE__ */ e.jsx(xe, { section: is }) : null,
2284
+ ds.map((l) => /* @__PURE__ */ e.jsx(xe, { section: l }, l.heading))
2283
2285
  ] })
2284
2286
  ] });
2285
2287
  }
2286
- const Vs = {
2288
+ const Rs = {
2287
2289
  px: 1,
2288
2290
  "%": 1,
2289
2291
  em: 100,
@@ -2294,7 +2296,7 @@ const Vs = {
2294
2296
  "-": 1,
2295
2297
  deg: 1,
2296
2298
  ms: 0.1
2297
- }, Ra = () => {
2299
+ }, Ta = () => {
2298
2300
  const r = G(), { t: a } = B(), [t, n] = I.useState(""), [l, s] = I.useState({
2299
2301
  onDrag: (o) => o,
2300
2302
  onDragEnd: (o) => o,
@@ -2309,10 +2311,10 @@ const Vs = {
2309
2311
  const p = !y(l, "negative", !1), h = y(l, "cssProperty", "");
2310
2312
  let i = parseFloat(l.dragStartValue);
2311
2313
  i = Ue(i) ? 0 : i;
2312
- let g = Vs[l.dragUnit];
2313
- (W(h, "scale") || h === "opacity") && (g = 10);
2314
- let u = (l.dragStartY - o.pageY) / g + i;
2315
- p && u < 0 && (u = 0), h === "opacity" && u > 1 && (u = 1), l.onDrag(`${u}`), n(`${u}`);
2314
+ let u = Rs[l.dragUnit];
2315
+ (W(h, "scale") || h === "opacity") && (u = 10);
2316
+ let g = (l.dragStartY - o.pageY) / u + i;
2317
+ p && g < 0 && (g = 0), h === "opacity" && g > 1 && (g = 1), l.onDrag(`${g}`), n(`${g}`);
2316
2318
  },
2317
2319
  [l],
2318
2320
  50
@@ -2328,7 +2330,7 @@ const Vs = {
2328
2330
  cssProperty: ""
2329
2331
  });
2330
2332
  }, [l, t, s]);
2331
- return Bt(r) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2333
+ return Dt(r) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2332
2334
  /* @__PURE__ */ e.jsx(qe, { className: "mx-auto text-3xl" }),
2333
2335
  /* @__PURE__ */ e.jsx("h1", { children: a("no_block_selected_for_styling") })
2334
2336
  ] }) }) : /* @__PURE__ */ e.jsx(Je, { children: /* @__PURE__ */ e.jsxs(yt.Provider, { value: { setDragData: s }, children: [
@@ -2341,11 +2343,14 @@ const Vs = {
2341
2343
  }
2342
2344
  ) : null,
2343
2345
  /* @__PURE__ */ e.jsxs(ct, { className: "no-scrollbar max-h-full flex-1 overflow-x-hidden overflow-y-hidden bg-gray-100 pb-5", children: [
2344
- /* @__PURE__ */ e.jsx(as, {}),
2345
- /* @__PURE__ */ e.jsx(Rs, {})
2346
+ /* @__PURE__ */ e.jsx(ss, {}),
2347
+ /* @__PURE__ */ e.jsx(Ts, {}),
2348
+ /* @__PURE__ */ e.jsx("br", {}),
2349
+ /* @__PURE__ */ e.jsx("br", {}),
2350
+ /* @__PURE__ */ e.jsx("br", {})
2346
2351
  ] })
2347
2352
  ] }) });
2348
2353
  };
2349
2354
  export {
2350
- Ra as default
2355
+ Ta as default
2351
2356
  };