@chaibuilder/sdk 1.0.21 → 1.0.23

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 (76) hide show
  1. package/README.md +30 -103
  2. package/dist/{AddBlocks-0-e393Fn.js → AddBlocks-Izn_rxXD.js} +5 -4
  3. package/dist/AddBlocks-RHuwwfe5.cjs +3 -0
  4. package/dist/{BrandingOptions-HtNCJO9_.cjs → BrandingOptions-Fyo8qs4o.cjs} +1 -1
  5. package/dist/{BrandingOptions-QqqJ-YRb.js → BrandingOptions-orZyDGiL.js} +1 -1
  6. package/dist/{CanvasArea-0hMAhzxn.js → CanvasArea-C30uJLef.js} +72 -71
  7. package/dist/{CanvasArea-pZz5czrV.cjs → CanvasArea-IM2K8bud.cjs} +2 -2
  8. package/dist/{CurrentPage-UOkxZISs.js → CurrentPage-70sBzc2_.js} +6 -5
  9. package/dist/CurrentPage-lIithDJy.cjs +1 -0
  10. package/dist/{Layers-TB-Lriju.js → Layers-W0N2zfnf.js} +7 -6
  11. package/dist/Layers-YMtavzUG.cjs +1 -0
  12. package/dist/{MarkAsGlobalBlock-5h3wP4zj.cjs → MarkAsGlobalBlock-EOsABFjY.cjs} +1 -1
  13. package/dist/{MarkAsGlobalBlock-Pa8po8qP.js → MarkAsGlobalBlock-FPCQmRIh.js} +1 -1
  14. package/dist/{PagesPanel-mAMSbYPt.js → PagesPanel-RbHN6lvQ.js} +6 -5
  15. package/dist/{PagesPanel-ffrNyFyp.cjs → PagesPanel-i-MQEmm_.cjs} +1 -1
  16. package/dist/ProjectPanel-0BGx-hP-.cjs +1 -0
  17. package/dist/{ProjectPanel-XvsYajju.js → ProjectPanel-CzwuyR0N.js} +7 -6
  18. package/dist/{Settings-8AbHXcDP.js → Settings-lxTrbI-C.js} +330 -320
  19. package/dist/Settings-mTWkKG82.cjs +1 -0
  20. package/dist/{SidePanels-LQg3mdC4.js → SidePanels-g4M6oTs-.js} +7 -6
  21. package/dist/SidePanels-pUOJTYfr.cjs +1 -0
  22. package/dist/{Topbar-wA6jhMj9.js → Topbar-KqZt4TEY.js} +1 -1
  23. package/dist/{Topbar-A3WZDrK4.cjs → Topbar-kHffytzr.cjs} +1 -1
  24. package/dist/{UnsplashImages-mzIO1QeT.js → UnsplashImages-Ua7ksJ8c.js} +1 -1
  25. package/dist/{UnsplashImages-E8zPMgJf.cjs → UnsplashImages-y7I_7_W7.cjs} +1 -1
  26. package/dist/{UploadImages-qEuDUEMn.cjs → UploadImages-RzEm0Stb.cjs} +1 -1
  27. package/dist/{UploadImages-qMeaY4sk.js → UploadImages-YP_J6erG.js} +1 -1
  28. package/dist/{add-page-modal-oER3yE4F.js → add-page-modal-btGWaXyq.js} +18 -18
  29. package/dist/add-page-modal-ekFis5D8.cjs +1 -0
  30. package/dist/{confirm-alert-rDSai_jQ.js → confirm-alert-Py2WqZhJ.js} +1 -1
  31. package/dist/{confirm-alert-tH8UCCSF.cjs → confirm-alert-mAhT8vln.cjs} +1 -1
  32. package/dist/core.cjs +1 -1
  33. package/dist/core.js +56 -55
  34. package/dist/{delete-page-modal-ShTRkqkB.cjs → delete-page-modal-QzleoJG2.cjs} +1 -1
  35. package/dist/{delete-page-modal-QzQdrLYI.js → delete-page-modal-Rq4ThQpu.js} +6 -5
  36. package/dist/{form-vWeEsG9Y.js → form-Lm3bupAq.js} +1 -1
  37. package/dist/{form-MlgUSEy_.cjs → form-kAjrBaV-.cjs} +1 -1
  38. package/dist/{functions-hmbWDcnW.js → functions-JFP-oMsY.js} +28 -27
  39. package/dist/{functions-eu6BbvqO.cjs → functions-KMQYiBHf.cjs} +2 -2
  40. package/dist/{index-G55KtqnU.js → index-Vx4ctSV6.js} +10 -20
  41. package/dist/{index-T5MFAHA0.cjs → index-W5drgyWI.cjs} +1 -1
  42. package/dist/{index-mLIwGF5W.js → index-WPlT_Q87.js} +3 -3
  43. package/dist/{index-pCHSFoQO.cjs → index-fvoD_laH.cjs} +2 -2
  44. package/dist/lib.cjs +1 -1
  45. package/dist/lib.d.ts +3 -9
  46. package/dist/lib.js +93 -152
  47. package/dist/page-viewer-AlOCzh1b.cjs +1 -0
  48. package/dist/{page-viewer-X3IEOrUC.js → page-viewer-_wGsV2_o.js} +29 -28
  49. package/dist/{project-general-setting-oujmeWOG.js → project-general-setting-B8uuHccU.js} +7 -6
  50. package/dist/{project-general-setting-HZeYf9A1.cjs → project-general-setting-XnNyOpXO.cjs} +1 -1
  51. package/dist/{project-seo-setting-3FZQXaTn.cjs → project-seo-setting-QJBATF59.cjs} +1 -1
  52. package/dist/{project-seo-setting-_X6ckVa4.js → project-seo-setting-Zg2Z-Frr.js} +2 -2
  53. package/dist/render.cjs +1 -1
  54. package/dist/render.js +1 -1
  55. package/dist/{single-page-detail-SxboE7TI.js → single-page-detail-HXpxgQnU.js} +8 -7
  56. package/dist/single-page-detail-MWh30E_-.cjs +1 -0
  57. package/dist/studio.cjs +1 -1
  58. package/dist/studio.js +5 -4
  59. package/dist/tailwind-config-OxLD7oFU.cjs +1 -0
  60. package/dist/tailwind-config-d1VL1lzE.js +62 -0
  61. package/dist/tailwind.cjs +1 -0
  62. package/dist/tailwind.d.ts +80 -0
  63. package/dist/tailwind.js +24 -0
  64. package/dist/ui.cjs +1 -1
  65. package/dist/ui.d.ts +1 -1
  66. package/dist/ui.js +1 -1
  67. package/package.json +9 -4
  68. package/dist/AddBlocks-p68Cz79o.cjs +0 -3
  69. package/dist/CurrentPage-phMDH1Ub.cjs +0 -1
  70. package/dist/Layers-NKZXi2LV.cjs +0 -1
  71. package/dist/ProjectPanel-1ywILLme.cjs +0 -1
  72. package/dist/Settings-hdmnT_mI.cjs +0 -1
  73. package/dist/SidePanels-xaNrI3oK.cjs +0 -1
  74. package/dist/add-page-modal-9deiA1W9.cjs +0 -1
  75. package/dist/page-viewer-GPNN1H92.cjs +0 -1
  76. package/dist/single-page-detail-ILshOKys.cjs +0 -1
@@ -1,22 +1,22 @@
1
1
  import { j as e } from "./jsx-runtime-NV737rRe.js";
2
2
  import * as ne from "react";
3
- import P, { useState as w, useMemo as N, useEffect as _, useCallback as A, createContext as Oe, useContext as re } from "react";
3
+ import P, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as dt, createContext as Oe, useContext as re } from "react";
4
4
  import { useThrottledCallback as me } from "@react-hookz/web";
5
- import { forEach as je, isArray as ae, omit as it, truncate as dt, includes as M, get as p, first as we, split as ct, startCase as Y, toLower as te, isEmpty as b, map as C, find as pt, last as ye, filter as be, set as Me, keys as ut, cloneDeep as xt, each as gt, capitalize as ht, reject as mt, nth as Re, startsWith as z, isNumber as yt, parseInt as bt, isNaN as Ee, findLast as ft, flatten as U, intersection as _e, has as ge, isNull as vt } from "lodash";
5
+ import { forEach as je, isArray as ae, omit as ct, truncate as pt, includes as M, get as p, first as we, split as ut, startCase as Y, toLower as te, isEmpty as b, map as C, find as xt, last as ye, filter as be, set as Me, keys as gt, cloneDeep as ht, each as mt, capitalize as yt, reject as bt, nth as Re, startsWith as z, isNumber as ft, parseInt as vt, isNaN as Ee, findLast as jt, flatten as U, intersection as _e, has as ge, isNull as wt } from "lodash";
6
6
  import { useTranslation as Fe } from "react-i18next";
7
- import { PlusIcon as Ce, Cross2Icon as Ye, EyeOpenIcon as jt, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as wt, ArrowTopRightIcon as Ct, ArrowBottomRightIcon as kt, ArrowBottomLeftIcon as Nt, AlignLeftIcon as Tt, AlignCenterHorizontallyIcon as St, AlignRightIcon as Rt, StretchHorizontallyIcon as Vt, FontItalicIcon as Ht, UnderlineIcon as Bt, OverlineIcon as At, LetterCaseUppercaseIcon as Dt, Cross1Icon as Pt, InfoCircledIcon as ke, MinusIcon as $t, BoxIcon as We, RowSpacingIcon as It, TriangleDownIcon as Lt, TrashIcon as Xe, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
- import { b1 as Ot, b2 as Mt, B as pe, b3 as Et, b4 as _t, b5 as Ft, b6 as Yt, b7 as Wt, b8 as Xt, b9 as Zt, a6 as G, aq as zt, ar as Ut, as as Gt, ba as Kt, ao as qt, bb as Jt, ap as Qt, aH as W, aI as X, aK as Z, ak as er, bc as tr, bd as rr, be as lr, bf as sr, bg as or, bh as nr, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bm as ar, bn as ir, a4 as ue, W as dr, a9 as Qe, R as He, ag as cr, ad as pr, bo as ur, au as xr, av as gr, aw as hr, ax as mr, ay as H, bp as yr, aB as br, aC as fr, aD as Be, aE as Ae } from "./index-G55KtqnU.js";
9
- import vr from "@rjsf/core";
10
- import jr from "@rjsf/validator-ajv8";
11
- import { u as wr } from "./controls-G0puEH71.js";
12
- import { Check as Cr, EditIcon as kr, TrashIcon as Nr } from "lucide-react";
13
- import { getBlockComponent as et, getChaiDataProviders as Tr } from "@chaibuilder/runtime";
14
- import { E as Sr, u as tt } from "./index-mLIwGF5W.js";
15
- import { useAtom as Rr } from "jotai";
16
- import Vr from "react-autosuggest";
17
- import Hr from "fuse.js";
18
- import { A as Br, C as xe, d as Ar } from "./utils-PPBbw5bk.js";
19
- import { a as Dr } from "./MODIFIERS-MLfpKQY1.js";
7
+ import { PlusIcon as Ce, Cross2Icon as Ye, EyeOpenIcon as Ct, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as kt, ArrowTopRightIcon as Nt, ArrowBottomRightIcon as Tt, ArrowBottomLeftIcon as St, AlignLeftIcon as Rt, AlignCenterHorizontallyIcon as Vt, AlignRightIcon as Ht, StretchHorizontallyIcon as Bt, FontItalicIcon as At, UnderlineIcon as Dt, OverlineIcon as Pt, LetterCaseUppercaseIcon as $t, Cross1Icon as It, InfoCircledIcon as ke, MinusIcon as Lt, BoxIcon as We, RowSpacingIcon as Ot, TriangleDownIcon as Mt, TrashIcon as Xe, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
+ import { b1 as Et, b2 as _t, B as pe, b3 as Ft, b4 as Yt, b5 as Wt, b6 as Xt, b7 as Zt, b8 as zt, b9 as Ut, a6 as G, aq as Gt, ar as Kt, as as qt, ba as Jt, ao as Qt, bb as er, ap as tr, aH as W, aI as X, aK as Z, ak as rr, bc as lr, bd as sr, be as or, bf as nr, bg as ar, bh as ir, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bm as dr, bn as cr, a4 as ue, W as pr, a9 as Qe, R as He, ag as ur, ad as xr, bo as gr, au as hr, av as mr, aw as yr, ax as br, ay as H, bp as fr, aB as vr, aC as jr, aD as Be, aE as Ae } from "./index-Vx4ctSV6.js";
9
+ import wr from "@rjsf/core";
10
+ import Cr from "@rjsf/validator-ajv8";
11
+ import { u as kr } from "./controls-G0puEH71.js";
12
+ import { Check as Nr, EditIcon as Tr, TrashIcon as Sr } from "lucide-react";
13
+ import { getBlockComponent as et, getChaiDataProviders as Rr } from "@chaibuilder/runtime";
14
+ import { E as tt, u as rt } from "./index-WPlT_Q87.js";
15
+ import { useAtom as Vr } from "jotai";
16
+ import Hr from "react-autosuggest";
17
+ import Br from "fuse.js";
18
+ import { A as Ar, C as xe, d as Dr } from "./utils-PPBbw5bk.js";
19
+ import { a as Pr } from "./MODIFIERS-MLfpKQY1.js";
20
20
  import "@radix-ui/react-toggle";
21
21
  import "class-variance-authority";
22
22
  import "@radix-ui/react-switch";
@@ -51,26 +51,27 @@ import "react-dnd";
51
51
  import "@minoru/react-dnd-treeview";
52
52
  import "./lib.js";
53
53
  import "himalaya";
54
- import "./functions-hmbWDcnW.js";
54
+ import "./functions-JFP-oMsY.js";
55
55
  import "@mhsdesign/jit-browser-tailwindcss";
56
56
  import "@bobthered/tailwindcss-palette-generator";
57
57
  import "@tailwindcss/forms";
58
58
  import "@tailwindcss/typography";
59
59
  import "@tailwindcss/aspect-ratio";
60
60
  import "@tailwindcss/line-clamp";
61
+ import "./tailwind-config-d1VL1lzE.js";
61
62
  import "tailwind-merge";
62
63
  import "react-hotkeys-hook";
63
64
  import "sonner";
64
- const Pr = P.lazy(() => import("react-json-view"));
65
- function $r(t) {
65
+ const $r = P.lazy(() => import("react-json-view"));
66
+ function Ir(t) {
66
67
  const l = [], r = {};
67
- function s(o, a) {
68
+ function s(n, a) {
68
69
  je(a, (d, i) => {
69
- const n = o ? `${o}.${i}` : i, u = ae(d) ? "list" : typeof d;
70
- l.push(n), r[n] = u === "string" ? "text" : u === "object" ? "model" : u, u === "object" && !ae(d) && s(n, d);
70
+ const o = n ? `${n}.${i}` : i, u = ae(d) ? "list" : typeof d;
71
+ l.push(o), r[o] = u === "string" ? "text" : u === "object" ? "model" : u, u === "object" && !ae(d) && s(o, d);
71
72
  });
72
73
  }
73
- return s("", it(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
74
+ return s("", ct(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
74
75
  }
75
76
  const fe = ({ data: t, fullView: l }) => {
76
77
  if (!t)
@@ -78,8 +79,8 @@ const fe = ({ data: t, fullView: l }) => {
78
79
  const r = typeof t;
79
80
  return l ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
80
81
  /* @__PURE__ */ e.jsx("div", { className: "h-3" }),
81
- /* @__PURE__ */ e.jsx(Sr, { children: /* @__PURE__ */ e.jsx(
82
- Pr,
82
+ /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsx(
83
+ $r,
83
84
  {
84
85
  style: { maxHeight: "40vh", overflowY: "auto" },
85
86
  name: "Content",
@@ -93,26 +94,26 @@ const fe = ({ data: t, fullView: l }) => {
93
94
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: "text-gray-800/50 text-[12px] leading-4 w-full max-h-36 overflow-x-hidden overflow-y-auto", children: [
94
95
  /* @__PURE__ */ e.jsx("span", { className: "font-medium text-gray-800/80", children: "Content: " }),
95
96
  t
96
- ] }) : /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: dt(r === "object" ? JSON.stringify(t) : t, { length: 40 }) });
97
+ ] }) : /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: pt(r === "object" ? JSON.stringify(t) : t, { length: 40 }) });
97
98
  }, De = ({
98
99
  type: t,
99
100
  value: l = "",
100
101
  setValue: r,
101
102
  data: s,
102
- onChange: o,
103
+ onChange: n,
103
104
  dataType: a,
104
105
  appliedBindings: d
105
106
  }) => {
106
- const { paths: i, pathsType: n } = $r(s), u = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, x = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
107
- (g) => !M(d, g) && p(u, `props.${we(ct(g, "."))}.binding`)
108
- ) : i.filter((g) => a === p(n, g, "")), [t, i, d, a, u]);
107
+ const { paths: i, pathsType: o } = Ir(s), u = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, x = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
108
+ (g) => !M(d, g) && p(u, `props.${we(ut(g, "."))}.binding`)
109
+ ) : i.filter((g) => a === p(o, g, "")), [t, i, d, a, u]);
109
110
  return _(() => {
110
- l && o(l);
111
+ l && n(l);
111
112
  }, [l, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
112
113
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
113
114
  /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: Y(te(t)) }),
114
- /* @__PURE__ */ e.jsxs(Ot, { open: c, onOpenChange: m, children: [
115
- /* @__PURE__ */ e.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ e.jsx(
115
+ /* @__PURE__ */ e.jsxs(Et, { open: c, onOpenChange: m, children: [
116
+ /* @__PURE__ */ e.jsx(_t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
116
117
  pe,
117
118
  {
118
119
  variant: "outline",
@@ -130,24 +131,24 @@ const fe = ({ data: t, fullView: l }) => {
130
131
  ] })
131
132
  }
132
133
  ) }),
133
- /* @__PURE__ */ e.jsx(Et, { className: "p-0 z-[999] min-w-[300px]", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(_t, { children: [
134
- /* @__PURE__ */ e.jsx(Ft, { placeholder: `Choose ${te(t)}...` }),
135
- /* @__PURE__ */ e.jsxs(Yt, { children: [
136
- /* @__PURE__ */ e.jsx(Wt, { children: "No results found." }),
137
- /* @__PURE__ */ e.jsx(Xt, { children: C(h, (g) => /* @__PURE__ */ e.jsxs(
138
- Zt,
134
+ /* @__PURE__ */ e.jsx(Ft, { className: "p-0 z-[999] min-w-[300px]", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(Yt, { children: [
135
+ /* @__PURE__ */ e.jsx(Wt, { placeholder: `Choose ${te(t)}...` }),
136
+ /* @__PURE__ */ e.jsxs(Xt, { children: [
137
+ /* @__PURE__ */ e.jsx(Zt, { children: "No results found." }),
138
+ /* @__PURE__ */ e.jsx(zt, { children: C(h, (g) => /* @__PURE__ */ e.jsxs(
139
+ Ut,
139
140
  {
140
141
  value: g,
141
142
  className: `cursor-pointer ${x ? "flex justify-between items-center" : "flex flex-col items-start justify-start"}`,
142
143
  onSelect: (f) => {
143
- r(pt(h, (T) => T === f) || null), m(!1);
144
+ r(xt(h, (T) => T === f) || null), m(!1);
144
145
  },
145
146
  children: [
146
147
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
147
- /* @__PURE__ */ e.jsx(Cr, { className: `w-4 h-4 text-green-500 ${l === g ? "" : "opacity-0"}` }),
148
+ /* @__PURE__ */ e.jsx(Nr, { className: `w-4 h-4 text-green-500 ${l === g ? "" : "opacity-0"}` }),
148
149
  g
149
150
  ] }),
150
- x ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(p(n, g, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(fe, { data: p(s, g) }) })
151
+ x ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(p(o, g, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(fe, { data: p(s, g) }) })
151
152
  ]
152
153
  },
153
154
  g
@@ -158,30 +159,30 @@ const fe = ({ data: t, fullView: l }) => {
158
159
  ] }),
159
160
  !x && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(fe, { data: p(s, l, ""), fullView: !0 }) })
160
161
  ] });
161
- }, Ir = ({
162
+ }, Lr = ({
162
163
  appliedBindings: t = [],
163
164
  onAddBinding: l,
164
165
  editMode: r,
165
166
  item: s
166
167
  }) => {
167
- const [o, a] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), n = G(), [u] = tt(), x = A(
168
+ const [n, a] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), o = G(), [u] = rt(), x = A(
168
169
  (h, g) => {
169
170
  if (b(h))
170
171
  return "";
171
172
  {
172
- const f = p(g === "PROP" ? n : u, h, "");
173
+ const f = p(g === "PROP" ? o : u, h, "");
173
174
  if (ae(f))
174
175
  return "list";
175
176
  const T = typeof f;
176
177
  return T === "string" ? "text" : T === "object" ? "model" : T;
177
178
  }
178
179
  },
179
- [n, u]
180
+ [o, u]
180
181
  ), [c, m] = w(r ? x(s.key, "PROP") : "");
181
182
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
182
- /* @__PURE__ */ e.jsxs(zt, { children: [
183
- /* @__PURE__ */ e.jsx(Ut, { children: "Add Data Binding" }),
184
- /* @__PURE__ */ e.jsx(Gt, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
183
+ /* @__PURE__ */ e.jsxs(Gt, { children: [
184
+ /* @__PURE__ */ e.jsx(Kt, { children: "Add Data Binding" }),
185
+ /* @__PURE__ */ e.jsx(qt, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
185
186
  ] }),
186
187
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 relative", children: [
187
188
  /* @__PURE__ */ e.jsx(
@@ -190,13 +191,13 @@ const fe = ({ data: t, fullView: l }) => {
190
191
  type: "PROP",
191
192
  isDisabled: !1,
192
193
  placeholder: "Enter prop key",
193
- value: o,
194
+ value: n,
194
195
  setValue: a,
195
196
  onChange: (h) => {
196
197
  const g = x(h, "PROP");
197
198
  a(h), c !== g && i(""), m(g);
198
199
  },
199
- data: n,
200
+ data: o,
200
201
  dataType: c,
201
202
  appliedBindings: t
202
203
  }
@@ -206,7 +207,7 @@ const fe = ({ data: t, fullView: l }) => {
206
207
  De,
207
208
  {
208
209
  type: "PATH",
209
- isDisabled: b(o),
210
+ isDisabled: b(n),
210
211
  placeholder: "Enter data path",
211
212
  value: d,
212
213
  setValue: i,
@@ -220,60 +221,60 @@ const fe = ({ data: t, fullView: l }) => {
220
221
  }
221
222
  )
222
223
  ] }),
223
- /* @__PURE__ */ e.jsx(Kt, { children: /* @__PURE__ */ e.jsx(
224
+ /* @__PURE__ */ e.jsx(Jt, { children: /* @__PURE__ */ e.jsx(
224
225
  pe,
225
226
  {
226
227
  type: "submit",
227
228
  className: "mt-4",
228
- disabled: b(o) && b(d),
229
- onClick: () => l({ key: o, value: d }),
229
+ disabled: b(n) && b(d),
230
+ onClick: () => l({ key: n, value: d }),
230
231
  children: "Save"
231
232
  }
232
233
  ) })
233
234
  ] });
234
- }, rt = ({ children: t, onAddBinding: l, appliedBindings: r, editMode: s = !0, item: o = {} }) => {
235
- const [a, d] = w(!1);
236
- return /* @__PURE__ */ e.jsxs(qt, { children: [
237
- /* @__PURE__ */ e.jsx(Jt, { asChild: !0, onClick: () => d(!0), children: t }),
238
- a && /* @__PURE__ */ e.jsx(Qt, { children: /* @__PURE__ */ e.jsx(
239
- Ir,
235
+ }, lt = ({ disabled: t, children: l, onAddBinding: r, appliedBindings: s, editMode: n = !0, item: a = {} }) => {
236
+ const [d, i] = w(!1);
237
+ return /* @__PURE__ */ e.jsxs(Qt, { children: [
238
+ /* @__PURE__ */ e.jsx(er, { disabled: t, asChild: !0, onClick: () => i(!0), children: l }),
239
+ d && /* @__PURE__ */ e.jsx(tr, { children: /* @__PURE__ */ e.jsx(
240
+ Lr,
240
241
  {
241
- item: o,
242
- editMode: s,
243
- appliedBindings: r,
244
- onAddBinding: (i) => {
245
- l(i), d(!1);
242
+ item: a,
243
+ editMode: n,
244
+ appliedBindings: s,
245
+ onAddBinding: (o) => {
246
+ r(o), i(!1);
246
247
  }
247
248
  }
248
249
  ) })
249
250
  ] });
250
- }, Lr = ({
251
+ }, Or = ({
251
252
  item: t,
252
253
  onAddBinding: l,
253
254
  onRemove: r,
254
255
  selectedBlock: s,
255
- dataProvider: o,
256
+ dataProvider: n,
256
257
  appliedBindings: a
257
258
  }) => {
258
- const [d, i] = w("string"), n = (u, x) => {
259
+ const [d, i] = w("string"), o = (u, x) => {
259
260
  if (b(u))
260
261
  return "";
261
262
  {
262
- const c = p(x === "PROP" ? s : o, u, "");
263
+ const c = p(x === "PROP" ? s : n, u, "");
263
264
  if (ae(c))
264
265
  return "list";
265
266
  const m = typeof c;
266
267
  return m === "string" ? "text" : m === "object" ? "model" : m;
267
268
  }
268
269
  };
269
- return _(() => i(() => n(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
270
+ return _(() => i(() => o(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
270
271
  /* @__PURE__ */ e.jsx("div", { className: "text-gray-500 font-normal text-sm", children: t.key }),
271
272
  /* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
272
- /* @__PURE__ */ e.jsx(fe, { data: p(o, t.value, "") }),
273
+ /* @__PURE__ */ e.jsx(fe, { data: p(n, t.value, "") }),
273
274
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
274
- /* @__PURE__ */ e.jsx(rt, { editMode: !0, onAddBinding: l, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(kr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
275
+ /* @__PURE__ */ e.jsx(lt, { editMode: !0, onAddBinding: l, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(Tr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
275
276
  /* @__PURE__ */ e.jsx(
276
- Nr,
277
+ Sr,
277
278
  {
278
279
  onClick: () => r(),
279
280
  className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-red-400 hover:text-white border-red-400 p-1 text-red-400 hover:scale-105 duration-200"
@@ -282,8 +283,8 @@ const fe = ({ data: t, fullView: l }) => {
282
283
  ] }),
283
284
  !b(d) && !b(t.key) && /* @__PURE__ */ e.jsx("div", { className: "mt-px absolute right-0 top-1 text-purple-600 text-[10px] flex items-center font-medium h-4 px-2 rounded-full", children: Y(d) })
284
285
  ] });
285
- }, Or = ({ bindingData: t, onChange: l }) => {
286
- const r = G(), [s] = tt(), o = Tr(), [a, d] = w(
286
+ }, Mr = ({ bindingData: t, onChange: l }) => {
287
+ const r = G(), [s] = rt(), n = Rr(), [a, d] = w(
287
288
  C(t, (c, m) => ({ key: m, value: c }))
288
289
  );
289
290
  _(() => {
@@ -296,7 +297,7 @@ const fe = ({ data: t, fullView: l }) => {
296
297
  return !1;
297
298
  const c = ye(a);
298
299
  return b(c == null ? void 0 : c.key) || b(c == null ? void 0 : c.value);
299
- }, [s, a]), n = (c) => {
300
+ }, [s, a]), o = (c) => {
300
301
  const m = be(a, (h) => h.key !== c.key);
301
302
  d([...m, c]), x([...m, c]);
302
303
  }, u = (c) => {
@@ -315,16 +316,16 @@ const fe = ({ data: t, fullView: l }) => {
315
316
  },
316
317
  [l]
317
318
  );
318
- return b(o) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mb-1.5 text-xs", children: [
319
+ return b(n) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mb-1.5 text-xs", children: [
319
320
  "You have no data providers registered. Please add a data provider to your project. ",
320
321
  /* @__PURE__ */ e.jsx("br", {}),
321
322
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
322
323
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
323
324
  C(a, (c, m) => /* @__PURE__ */ e.jsx(
324
- Lr,
325
+ Or,
325
326
  {
326
327
  item: c,
327
- onAddBinding: n,
328
+ onAddBinding: o,
328
329
  onRemove: () => u(m),
329
330
  selectedBlock: r,
330
331
  dataProvider: s,
@@ -333,80 +334,89 @@ const fe = ({ data: t, fullView: l }) => {
333
334
  c.key
334
335
  )),
335
336
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 200, children: [
336
- /* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(rt, { appliedBindings: C(a, "key"), onAddBinding: n, children: /* @__PURE__ */ e.jsx(
337
- "button",
337
+ /* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
338
+ lt,
338
339
  {
339
340
  disabled: i,
340
- className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${i ? "cursor-not-allowed bg-gray-200 text-gray-400" : "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30"}`,
341
- children: b(s) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
341
+ appliedBindings: C(a, "key"),
342
+ onAddBinding: o,
343
+ children: /* @__PURE__ */ e.jsx(
344
+ "span",
345
+ {
346
+ className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${i ? "cursor-not-allowed bg-gray-200 text-gray-400" : "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30"}`,
347
+ children: b(s) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
348
+ }
349
+ )
342
350
  }
343
- ) }) }),
351
+ ) }),
344
352
  i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(s) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
345
353
  ] })
346
354
  ] });
347
- }, Mr = () => /* @__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" }), Pe = ({
348
- createHistorySnapshot: t,
349
- properties: l,
350
- formData: r,
351
- onChange: s
352
- }) => {
353
- const [o] = er(), a = { type: "object", properties: {} }, d = {};
354
- return Object.keys(l).forEach((i) => {
355
- const n = l[i];
356
- if (M(["slot", "styles"], n.type))
357
- return;
358
- const u = p(n, "i18n", !1) ? `${i}-${o}` : i;
359
- a.properties[u] = tr(n, o), d[u] = rr(n, o);
360
- }), /* @__PURE__ */ e.jsx(
361
- vr,
362
- {
363
- widgets: {
364
- binding: Mr,
365
- richtext: lr,
366
- icon: sr,
367
- image: or
368
- },
369
- fields: {
370
- link: nr
371
- },
372
- idSeparator: ".",
373
- autoComplete: "off",
374
- omitExtraData: !1,
375
- liveOmit: !1,
376
- liveValidate: !0,
377
- validator: jr,
378
- uiSchema: d,
379
- onBlur: t,
380
- schema: a,
381
- formData: r,
382
- onChange: s
383
- }
384
- );
385
- };
386
- function Er() {
387
- const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = et(t._type), o = { ...t }, a = () => l(), d = ({ formData: x }, c) => {
355
+ }, Er = () => /* @__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" }), Pe = dt(
356
+ ({
357
+ createHistorySnapshot: t,
358
+ properties: l,
359
+ formData: r,
360
+ onChange: s
361
+ }) => {
362
+ const [n] = rr(), a = { type: "object", properties: {} }, d = {};
363
+ return Object.keys(l).forEach((i) => {
364
+ const o = l[i];
365
+ if (M(["slot", "styles"], o.type))
366
+ return;
367
+ const u = p(o, "i18n", !1) ? `${i}-${n}` : i;
368
+ a.properties[u] = lr(o, n), d[u] = sr(o, n);
369
+ }), /* @__PURE__ */ e.jsx(
370
+ wr,
371
+ {
372
+ widgets: {
373
+ binding: Er,
374
+ richtext: or,
375
+ icon: nr,
376
+ image: ar
377
+ },
378
+ fields: {
379
+ link: ir
380
+ },
381
+ idSeparator: ".",
382
+ autoComplete: "off",
383
+ omitExtraData: !1,
384
+ liveOmit: !1,
385
+ liveValidate: !0,
386
+ validator: Cr,
387
+ uiSchema: d,
388
+ onBlur: t,
389
+ schema: a,
390
+ formData: r,
391
+ onChange: s
392
+ }
393
+ );
394
+ }
395
+ );
396
+ function _r() {
397
+ const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = et(t._type), n = { ...t }, a = () => l(), d = ({ formData: x }, c) => {
388
398
  if (c) {
389
399
  const m = c.replace("root.", "");
390
400
  r([t._id], { [m]: p(x, m) });
391
401
  }
392
402
  }, i = {
393
- _name: wr({
403
+ _name: kr({
394
404
  title: "Name",
395
405
  default: p(t, "_name", t._type)
396
406
  })
397
- }, n = ut(p(o, "_bindings", {})), u = N(() => {
398
- const x = xt(p(s, "props", {}));
399
- return gt(n, (c) => {
407
+ }, o = gt(p(n, "_bindings", {})), u = N(() => {
408
+ const x = ht(p(s, "props", {}));
409
+ return mt(o, (c) => {
400
410
  delete x[c];
401
411
  }), x;
402
- }, [s, n]);
412
+ }, [s, o]);
403
413
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
404
414
  /* @__PURE__ */ e.jsx(
405
415
  Pe,
406
416
  {
407
417
  onChange: d,
408
418
  createHistorySnapshot: a,
409
- formData: o,
419
+ formData: n,
410
420
  properties: i
411
421
  }
412
422
  ),
@@ -423,11 +433,11 @@ function Er() {
423
433
  "Data Binding"
424
434
  ] }) }),
425
435
  /* @__PURE__ */ e.jsx(ce, { className: "pt-4 px-4", children: /* @__PURE__ */ e.jsx(
426
- Or,
436
+ Mr,
427
437
  {
428
- bindingData: p(o, "_bindings", {}),
438
+ bindingData: p(n, "_bindings", {}),
429
439
  onChange: (x) => {
430
- d({ formData: { ...o, _bindings: x } }, "root._bindings");
440
+ d({ formData: { ...n, _bindings: x } }, "root._bindings");
431
441
  }
432
442
  }
433
443
  ) })
@@ -438,11 +448,11 @@ function Er() {
438
448
  "Static Content"
439
449
  ] }) }),
440
450
  /* @__PURE__ */ e.jsxs(ce, { className: "pt-4", children: [
441
- b(n) ? "" : /* @__PURE__ */ e.jsxs("div", { className: "text-xs mx-4 border rounded-sm p-1 mb-1 mt-0 border-orange-500 text-orange-500 bg-orange-100", children: [
451
+ b(o) ? "" : /* @__PURE__ */ e.jsxs("div", { className: "text-xs mx-4 border rounded-sm p-1 mb-1 mt-0 border-orange-500 text-orange-500 bg-orange-100", children: [
442
452
  "Data binding is set for ",
443
- /* @__PURE__ */ e.jsx("b", { children: C(n, ht).join(", ") }),
453
+ /* @__PURE__ */ e.jsx("b", { children: C(o, yt).join(", ") }),
444
454
  " ",
445
- n.length === 1 ? "property" : "properties",
455
+ o.length === 1 ? "property" : "properties",
446
456
  ". Remove data binding to edit static content."
447
457
  ] }),
448
458
  /* @__PURE__ */ e.jsx(
@@ -450,7 +460,7 @@ function Er() {
450
460
  {
451
461
  onChange: d,
452
462
  createHistorySnapshot: a,
453
- formData: o,
463
+ formData: n,
454
464
  properties: u
455
465
  }
456
466
  )
@@ -460,17 +470,17 @@ function Er() {
460
470
  /* @__PURE__ */ e.jsx("div", { className: "pb-60" })
461
471
  ] });
462
472
  }
463
- const $e = new Hr(Br, {
473
+ const $e = new Br(Ar, {
464
474
  isCaseSensitive: !1,
465
475
  threshold: 0.2,
466
476
  minMatchCharLength: 2,
467
477
  keys: ["name"]
468
478
  });
469
- function _r() {
479
+ function Fr() {
470
480
  var D;
471
- const [t] = Ne(), l = G(), r = Ke(), s = qe(), [o] = Je(), [a, d] = w(""), i = (D = we(t)) == null ? void 0 : D.prop, n = mt((p(l, i, "").replace(Dr, "").split(",").pop() || "").split(" "), b), u = () => {
481
+ const [t] = Ne(), l = G(), r = Ke(), s = qe(), [n] = Je(), [a, d] = w(""), i = (D = we(t)) == null ? void 0 : D.prop, o = bt((p(l, i, "").replace(Pr, "").split(",").pop() || "").split(" "), b), u = () => {
472
482
  const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
473
- r(o, j, !0), d("");
483
+ r(n, j, !0), d("");
474
484
  }, [x, c] = w([]), m = ({ value: j }) => {
475
485
  const L = j.trim().toLowerCase(), $ = L.match(/.+:/g);
476
486
  let k = [];
@@ -506,7 +516,7 @@ function _r() {
506
516
  /* @__PURE__ */ e.jsx(Te, { className: "mt-2", children: "Add Tailwind classes" }),
507
517
  /* @__PURE__ */ e.jsxs("div", { className: "relative -mt-4 flex items-center gap-x-3", children: [
508
518
  /* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
509
- Vr,
519
+ Hr,
510
520
  {
511
521
  suggestions: x,
512
522
  onSuggestionsFetchRequested: m,
@@ -537,9 +547,9 @@ function _r() {
537
547
  )
538
548
  ] }),
539
549
  /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-wrap gap-2", children: [
540
- b(n) && /* @__PURE__ */ e.jsx("div", { className: "flex h-10 w-full items-center justify-center text-center text-sm text-gray-400", children: "No class added" }),
550
+ b(o) && /* @__PURE__ */ e.jsx("div", { className: "flex h-10 w-full items-center justify-center text-center text-sm text-gray-400", children: "No class added" }),
541
551
  ne.Children.toArray(
542
- n.map((j) => /* @__PURE__ */ e.jsxs(
552
+ o.map((j) => /* @__PURE__ */ e.jsxs(
543
553
  "div",
544
554
  {
545
555
  className: "group relative flex cursor-default items-center gap-x-1 rounded-full border border-blue-600 bg-blue-500 p-px px-1.5 text-[11px] text-white hover:border-blue-900",
@@ -548,7 +558,7 @@ function _r() {
548
558
  /* @__PURE__ */ e.jsx(
549
559
  Ye,
550
560
  {
551
- onClick: () => s(o, [j]),
561
+ onClick: () => s(n, [j]),
552
562
  className: "invisible absolute right-1 hover:text-white group-hover:visible group-hover:cursor-pointer"
553
563
  }
554
564
  )
@@ -562,7 +572,7 @@ function _r() {
562
572
  }
563
573
  );
564
574
  }
565
- const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
575
+ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Yr = {
566
576
  heading: "Flex Child",
567
577
  items: [
568
578
  { type: "arbitrary", label: "Basis", units: B, property: "flexBasis" },
@@ -571,7 +581,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
571
581
  { type: "dropdown", label: "Grow", property: "flexGrow" },
572
582
  { type: "dropdown", label: "Shrink", property: "flexShrink" }
573
583
  ]
574
- }, Yr = {
584
+ }, Wr = {
575
585
  heading: "Grid Child",
576
586
  items: [
577
587
  { type: "range", label: "Col Span", property: "gridColSpan" },
@@ -582,7 +592,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
582
592
  { type: "range", label: "Row End", property: "gridRowEnd" },
583
593
  { type: "range", label: "Order", property: "order" }
584
594
  ]
585
- }, Wr = [
595
+ }, Xr = [
586
596
  {
587
597
  heading: "Display",
588
598
  items: [
@@ -984,12 +994,12 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
984
994
  },
985
995
  {
986
996
  heading: "Classes",
987
- items: [{ component: _r }]
997
+ items: [{ component: Fr }]
988
998
  }
989
- ], lt = {
999
+ ], st = {
990
1000
  "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" }) }),
991
1001
  // visibility
992
- visible: jt,
1002
+ visible: Ct,
993
1003
  invisible: Ve,
994
1004
  // display
995
1005
  hidden: Ve,
@@ -1025,10 +1035,10 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
1025
1035
  borderRadiusRight: J,
1026
1036
  borderRadiusBottom: Q,
1027
1037
  borderRadiusLeft: ee,
1028
- borderRadiusTopLeft: wt,
1029
- borderRadiusTopRight: Ct,
1030
- borderRadiusBottomRight: kt,
1031
- borderRadiusBottomLeft: Nt,
1038
+ borderRadiusTopLeft: kt,
1039
+ borderRadiusTopRight: Nt,
1040
+ borderRadiusBottomRight: Tt,
1041
+ borderRadiusBottomLeft: St,
1032
1042
  divideXWidth: R,
1033
1043
  divideYWidth: V,
1034
1044
  scale: O,
@@ -1055,18 +1065,18 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
1055
1065
  marginBottom: Q,
1056
1066
  marginLeft: ee,
1057
1067
  // text-align
1058
- textLeft: Tt,
1059
- textCenter: St,
1060
- textRight: Rt,
1061
- textJustify: Vt,
1068
+ textLeft: Rt,
1069
+ textCenter: Vt,
1070
+ textRight: Ht,
1071
+ textJustify: Bt,
1062
1072
  // font style
1063
- italic: Ht,
1073
+ italic: At,
1064
1074
  // "not-italic": "",
1065
1075
  // decoration
1066
- underline: Bt,
1067
- overline: At,
1076
+ underline: Dt,
1077
+ overline: Pt,
1068
1078
  // transform
1069
- uppercase: Dt,
1079
+ uppercase: $t,
1070
1080
  block: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1071
1081
  /* @__PURE__ */ e.jsx(
1072
1082
  "path",
@@ -1179,14 +1189,14 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
1179
1189
  }
1180
1190
  )
1181
1191
  ] }),
1182
- static: Pt
1183
- }, le = Oe({ canReset: !1, canChange: !0 }), Xr = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
1192
+ static: It
1193
+ }, le = Oe({ canReset: !1, canChange: !0 }), Zr = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
1184
1194
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1185
1195
  /* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
1186
- ), st = ({ label: t, property: l, onChange: r }) => {
1187
- const s = N(() => p(xe, `${l}.classes`, [""]), [l]), o = se(l), a = N(() => p(o, "cls", ""), [o]), { canChange: d } = re(le), i = /\[.*\]/g.test(a);
1196
+ ), ot = ({ label: t, property: l, onChange: r }) => {
1197
+ const s = N(() => p(xe, `${l}.classes`, [""]), [l]), n = se(l), a = N(() => p(n, "cls", ""), [n]), { canChange: d } = re(le), i = /\[.*\]/g.test(a);
1188
1198
  return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1189
- /* @__PURE__ */ e.jsx(ar, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
1199
+ /* @__PURE__ */ e.jsx(dr, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
1190
1200
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1191
1201
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(ke, {}) }) }),
1192
1202
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
@@ -1195,37 +1205,37 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
1195
1205
  ve,
1196
1206
  {
1197
1207
  rounded: t,
1198
- onChange: (n) => r(n, l),
1208
+ onChange: (o) => r(o, l),
1199
1209
  selected: a,
1200
1210
  options: s,
1201
1211
  disabled: !d
1202
1212
  }
1203
1213
  ) });
1204
1214
  };
1205
- function ve({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: o = !1 }) {
1215
+ function ve({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: n = !1 }) {
1206
1216
  const a = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
1207
1217
  return /* @__PURE__ */ e.jsxs(
1208
1218
  "select",
1209
1219
  {
1210
- disabled: !s.length || o,
1220
+ disabled: !s.length || n,
1211
1221
  className: `${r ? "rounded-md border border-border" : "border-0"} w-full disable:bg-gray-500 h-full truncate rounded bg-background px-2 py-1 text-xs outline-none disabled:cursor-not-allowed`,
1212
- onChange: (n) => l(n.target.value),
1213
- onKeyDown: (n) => {
1214
- n.ctrlKey && (n.key === "z" && d(), n.key === "y" && i());
1222
+ onChange: (o) => l(o.target.value),
1223
+ onKeyDown: (o) => {
1224
+ o.ctrlKey && (o.key === "z" && d(), o.key === "y" && i());
1215
1225
  },
1216
1226
  value: a,
1217
1227
  children: [
1218
1228
  /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
1219
1229
  P.Children.toArray(
1220
- s.map((n) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: n, children: n }))
1230
+ s.map((o) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: o, children: o }))
1221
1231
  )
1222
1232
  ]
1223
1233
  }
1224
1234
  );
1225
1235
  }
1226
- const Zr = ({ property: t, onChange: l }) => {
1227
- const { canReset: r, canChange: s } = re(le), o = se(t), a = N(() => p(o, "cls", ""), [o]), d = N(() => p(xe, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, n = /\[.*\]/g.test(a);
1228
- return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: n ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: a }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1236
+ const zr = ({ property: t, onChange: l }) => {
1237
+ const { canReset: r, canChange: s } = re(le), n = se(t), a = N(() => p(n, "cls", ""), [n]), d = N(() => p(xe, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, o = /\[.*\]/g.test(a);
1238
+ 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: a }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1229
1239
  /* @__PURE__ */ e.jsx(
1230
1240
  "button",
1231
1241
  {
@@ -1233,10 +1243,10 @@ const Zr = ({ property: t, onChange: l }) => {
1233
1243
  className: "box-border w-2/12 rounded-tl rounded-bl bg-background px-1 text-center hover:bg-bg-gray-700 disabled:cursor-not-allowed disabled:bg-gray-600",
1234
1244
  disabled: !s && (!r || i - 1 < 0),
1235
1245
  onClick: () => l(Re(d, i - 1), t),
1236
- children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx($t, { className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-white/60" }) })
1246
+ children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Lt, { className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-white/60" }) })
1237
1247
  }
1238
1248
  ),
1239
- /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(st, { label: !1, property: t, onChange: l }) }),
1249
+ /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(ot, { label: !1, property: t, onChange: l }) }),
1240
1250
  /* @__PURE__ */ e.jsx(
1241
1251
  "button",
1242
1252
  {
@@ -1253,8 +1263,8 @@ const Zr = ({ property: t, onChange: l }) => {
1253
1263
  }
1254
1264
  )
1255
1265
  ] }) });
1256
- }, zr = ({ property: t, onChange: l }) => {
1257
- const r = N(() => p(xe, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), o = se(t), a = N(() => p(o, "cls", ""), [o]);
1266
+ }, Ur = ({ property: t, onChange: l }) => {
1267
+ const r = N(() => p(xe, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), n = se(t), a = N(() => p(n, "cls", ""), [n]);
1258
1268
  return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(W, { children: [
1259
1269
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1260
1270
  "button",
@@ -1263,12 +1273,12 @@ const Zr = ({ property: t, onChange: l }) => {
1263
1273
  disabled: !s,
1264
1274
  onClick: () => l(d, t),
1265
1275
  className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${a === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1266
- children: P.createElement(p(lt, d, We))
1276
+ children: P.createElement(p(st, d, We))
1267
1277
  }
1268
1278
  ) }),
1269
1279
  /* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
1270
1280
  ] })) });
1271
- }, Ur = {
1281
+ }, Gr = {
1272
1282
  backgroundColor: "bg",
1273
1283
  textColor: "text",
1274
1284
  borderColor: "border",
@@ -1280,13 +1290,13 @@ const Zr = ({ property: t, onChange: l }) => {
1280
1290
  toColor: "to",
1281
1291
  ringColor: "ring",
1282
1292
  ringOffsetColor: "ring-offset"
1283
- }, Gr = ({ property: t, onChange: l }) => {
1284
- const r = se(t), s = N(() => p(r, "cls", ""), [r]), { canChange: o } = re(le), [a, d] = w([]), [i, n] = w({ color: "", shade: "" }), u = s.split("-"), x = p(u, "1", ""), c = p(u, "2", ""), m = A(
1293
+ }, Kr = ({ property: t, onChange: l }) => {
1294
+ const r = se(t), s = N(() => p(r, "cls", ""), [r]), { canChange: n } = re(le), [a, d] = w([]), [i, o] = w({ color: "", shade: "" }), u = s.split("-"), x = p(u, "1", ""), c = p(u, "2", ""), m = A(
1285
1295
  // eslint-disable-next-line no-shadow
1286
1296
  (g) => {
1287
- ["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]), n({ color: g })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), n((f) => ({ ...f, color: g, shade: f.shade ? f.shade : "500" })));
1297
+ ["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]), o({ color: g })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), o((f) => ({ ...f, color: g, shade: f.shade ? f.shade : "500" })));
1288
1298
  },
1289
- [d, n]
1299
+ [d, o]
1290
1300
  );
1291
1301
  _(() => {
1292
1302
  if (["current", "inherit", "transparent", "black", "white"].includes(x))
@@ -1296,20 +1306,20 @@ const Zr = ({ property: t, onChange: l }) => {
1296
1306
  const h = A(
1297
1307
  // eslint-disable-next-line no-shadow
1298
1308
  (g) => {
1299
- n({ color: x, shade: g });
1309
+ o({ color: x, shade: g });
1300
1310
  },
1301
1311
  [x]
1302
1312
  );
1303
1313
  return _(() => {
1304
- n({ color: "", shade: "" });
1314
+ o({ color: "", shade: "" });
1305
1315
  }, [r]), _(() => {
1306
- const f = `${p(Ur, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1316
+ const f = `${p(Gr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1307
1317
  f.match(new RegExp(p(xe, `${t}.regExp`, ""))) && l(f, t);
1308
1318
  }, [i, l, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1309
1319
  /* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
1310
1320
  ve,
1311
1321
  {
1312
- disabled: !o,
1322
+ disabled: !n,
1313
1323
  rounded: !0,
1314
1324
  selected: x,
1315
1325
  onChange: m,
@@ -1345,7 +1355,7 @@ const Zr = ({ property: t, onChange: l }) => {
1345
1355
  ]
1346
1356
  }
1347
1357
  ) }),
1348
- /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(ve, { rounded: !0, selected: c, disabled: !x || !o, onChange: h, options: a }) })
1358
+ /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(ve, { rounded: !0, selected: c, disabled: !x || !n, onChange: h, options: a }) })
1349
1359
  ] });
1350
1360
  }, Ie = (t, l) => {
1351
1361
  t = t.toLowerCase();
@@ -1354,10 +1364,10 @@ const Zr = ({ property: t, onChange: l }) => {
1354
1364
  return { value: "", unit: r };
1355
1365
  const s = l.length ? new RegExp(l.join("|"), "g") : /XXXXXX/g;
1356
1366
  r = r.replace(s, "");
1357
- const o = t.match(s), a = o && o.length > 1, d = !b(r) && Number.isNaN(Number(r));
1358
- return a || d ? { error: "Invalid value" } : o && (o[0] === "auto" || o[0] === "none") ? { value: o[0], unit: "" } : { value: r, unit: o ? o[0] : "" };
1367
+ const n = t.match(s), a = n && n.length > 1, d = !b(r) && Number.isNaN(Number(r));
1368
+ return a || d ? { error: "Invalid value" } : n && (n[0] === "auto" || n[0] === "none") ? { value: n[0], unit: "" } : { value: r, unit: n ? n[0] : "" };
1359
1369
  };
1360
- const Kr = (t) => {
1370
+ const qr = (t) => {
1361
1371
  const l = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1362
1372
  if (["auto", "none"].includes(r))
1363
1373
  return { value: "", unit: r };
@@ -1481,76 +1491,76 @@ const Kr = (t) => {
1481
1491
  if (["max", "min", "fit"].includes(r))
1482
1492
  return { value: t, unit: "class" };
1483
1493
  if (r.includes("/")) {
1484
- const [s, o] = C(r.split("/"), (a) => parseInt(a, 10));
1485
- return { value: l + (s / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
1494
+ const [s, n] = C(r.split("/"), (a) => parseInt(a, 10));
1495
+ return { value: l + (s / n * 100).toFixed(2).replace(".00", ""), unit: "%" };
1486
1496
  }
1487
- return yt(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1497
+ return ft(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1488
1498
  };
1489
- const qr = (t) => {
1499
+ const Jr = (t) => {
1490
1500
  if (b(t))
1491
1501
  return { value: "", unit: "" };
1492
1502
  const l = t.match(/\[.*\]/g);
1493
1503
  if (l === null)
1494
- return Jr(t);
1495
- const r = p(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", o = we(r.match(/\d+.\d+|\d+/g));
1496
- return { value: `${s}${o}`, unit: r.replace(o, "") };
1497
- }, Jr = (t) => b(t) ? { value: "", unit: "" } : Kr(t), ot = P.createContext({
1504
+ return Qr(t);
1505
+ const r = p(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", n = we(r.match(/\d+.\d+|\d+/g));
1506
+ return { value: `${s}${n}`, unit: r.replace(n, "") };
1507
+ }, Qr = (t) => b(t) ? { value: "", unit: "" } : qr(t), nt = P.createContext({
1498
1508
  setDragData: () => {
1499
1509
  }
1500
- }), Qr = ({
1510
+ }), el = ({
1501
1511
  unit: t,
1502
1512
  currentValue: l,
1503
1513
  onDrag: r,
1504
1514
  onDragEnd: s,
1505
- onDragStart: o,
1515
+ onDragStart: n,
1506
1516
  negative: a,
1507
1517
  cssProperty: d
1508
1518
  }) => {
1509
- const { setDragData: i } = re(ot);
1519
+ const { setDragData: i } = re(nt);
1510
1520
  return /* @__PURE__ */ e.jsx(
1511
1521
  "button",
1512
1522
  {
1513
1523
  type: "button",
1514
- onMouseDown: (n) => {
1524
+ onMouseDown: (o) => {
1515
1525
  const u = {
1516
1526
  onDrag: r,
1517
1527
  onDragEnd: s,
1518
1528
  dragging: !0,
1519
- dragStartY: n.pageY,
1529
+ dragStartY: o.pageY,
1520
1530
  dragStartValue: `${l}`,
1521
1531
  dragUnit: t,
1522
1532
  negative: a,
1523
1533
  cssProperty: d
1524
1534
  };
1525
- o(u), i(u);
1535
+ n(u), i(u);
1526
1536
  },
1527
1537
  color: void 0,
1528
1538
  className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
1529
- children: /* @__PURE__ */ e.jsx(It, {})
1539
+ children: /* @__PURE__ */ e.jsx(Ot, {})
1530
1540
  }
1531
1541
  );
1532
- }, el = ({ onSelect: t, current: l, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((s) => /* @__PURE__ */ e.jsx(
1542
+ }, tl = ({ onSelect: t, current: l, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((s) => /* @__PURE__ */ e.jsx(
1533
1543
  pe,
1534
1544
  {
1535
1545
  className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
1536
1546
  color: l === s ? "primary" : void 0,
1537
1547
  size: "sm",
1538
- onClick: (o) => {
1539
- o.stopPropagation(), t(s);
1548
+ onClick: (n) => {
1549
+ n.stopPropagation(), t(s);
1540
1550
  },
1541
1551
  children: s
1542
1552
  },
1543
1553
  s
1544
- )) }), tl = (t) => {
1545
- const [l, r] = w(!1), [s, o] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: n, units: u, negative: x } = t, [c, m] = w(n != null && n.toLowerCase().includes("width") ? "%" : u[0]), [h, g] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, $] = w(!1);
1554
+ )) }), rl = (t) => {
1555
+ const [l, r] = w(!1), [s, n] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: o, units: u, negative: x } = t, [c, m] = w(o != null && o.toLowerCase().includes("width") ? "%" : u[0]), [h, g] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, $] = w(!1);
1546
1556
  _(() => {
1547
- const { value: y, unit: v } = qr(a);
1557
+ const { value: y, unit: v } = Jr(a);
1548
1558
  if (v === "") {
1549
- o(y), m(n != null && n.toLowerCase().includes("width") ? "%" : u[0]);
1559
+ n(y), m(o != null && o.toLowerCase().includes("width") ? "%" : u[0]);
1550
1560
  return;
1551
1561
  }
1552
- m(v), o(v === "class" || b(y) ? "" : y);
1553
- }, [a, n, u]);
1562
+ m(v), n(v === "class" || b(y) ? "" : y);
1563
+ }, [a, o, u]);
1554
1564
  const k = me(
1555
1565
  (y) => {
1556
1566
  d(y);
@@ -1618,18 +1628,18 @@ const qr = (t) => {
1618
1628
  if (y.keyCode !== 38 && y.keyCode !== 40)
1619
1629
  return;
1620
1630
  y.preventDefault(), $(!0);
1621
- const v = bt(y.target.value);
1631
+ const v = vt(y.target.value);
1622
1632
  let S = Ee(v) ? 0 : v;
1623
1633
  y.keyCode === 38 && (S += 1), y.keyCode === 40 && (S -= 1);
1624
- const E = `${S}`, at = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1625
- I(at);
1634
+ const E = `${S}`, it = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1635
+ I(it);
1626
1636
  },
1627
1637
  onKeyUp: (y) => {
1628
1638
  L && (y.preventDefault(), $(!1));
1629
1639
  },
1630
1640
  onBlur: () => F(),
1631
1641
  onChange: (y) => {
1632
- g(!1), o(y.target.value);
1642
+ g(!1), n(y.target.value);
1633
1643
  },
1634
1644
  onClick: (y) => {
1635
1645
  var v;
@@ -1651,12 +1661,12 @@ const qr = (t) => {
1651
1661
  className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
1652
1662
  children: [
1653
1663
  /* @__PURE__ */ e.jsx("span", { className: `inline-block ${u.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
1654
- u.length > 1 ? /* @__PURE__ */ e.jsx(Lt, {}) : null
1664
+ u.length > 1 ? /* @__PURE__ */ e.jsx(Mt, {}) : null
1655
1665
  ]
1656
1666
  }
1657
1667
  ) }),
1658
- /* @__PURE__ */ e.jsx(ir, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1659
- el,
1668
+ /* @__PURE__ */ e.jsx(cr, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1669
+ tl,
1660
1670
  {
1661
1671
  units: u,
1662
1672
  current: c,
@@ -1668,7 +1678,7 @@ const qr = (t) => {
1668
1678
  ] })
1669
1679
  ] }),
1670
1680
  ["none", "auto"].indexOf(c) !== -1 || D ? null : /* @__PURE__ */ e.jsx(
1671
- Qr,
1681
+ el,
1672
1682
  {
1673
1683
  onDragStart: () => j(!0),
1674
1684
  onDragEnd: (y) => {
@@ -1687,14 +1697,14 @@ const qr = (t) => {
1687
1697
  currentValue: s,
1688
1698
  unit: c,
1689
1699
  negative: x,
1690
- cssProperty: n
1700
+ cssProperty: o
1691
1701
  }
1692
1702
  )
1693
1703
  ] }) }) });
1694
1704
  }, se = (t) => {
1695
1705
  const l = ue();
1696
- return ft(l, { property: t });
1697
- }, rl = (t, l) => {
1706
+ return jt(l, { property: t });
1707
+ }, ll = (t, l) => {
1698
1708
  const r = {
1699
1709
  xs: 0,
1700
1710
  sm: 1,
@@ -1704,7 +1714,7 @@ const qr = (t) => {
1704
1714
  "2xl": 5
1705
1715
  };
1706
1716
  return r[p(t, "mq", "xs")] <= r[l];
1707
- }, ll = {
1717
+ }, sl = {
1708
1718
  width: "w-",
1709
1719
  height: "h-",
1710
1720
  minWidth: "min-w-",
@@ -1777,22 +1787,22 @@ const qr = (t) => {
1777
1787
  lg: "1024px",
1778
1788
  xl: "1280px",
1779
1789
  "2xl": "1536px"
1780
- }, sl = (t) => `${t.toUpperCase()} ${Le[t] ? `(${Le[t]} & up)` : ""}`, Se = (t) => {
1781
- const { type: l = "icons", label: r, property: s, onEmitChange: o = () => {
1782
- }, units: a, negative: d = !1 } = t, [i] = dr(), [n] = Qe(), [, u] = He(), x = se(s), c = Ke(), m = qe(), [h] = Je(), g = N(() => p(x, "fullCls", ""), [x]), f = A(
1790
+ }, ol = (t) => `${t.toUpperCase()} ${Le[t] ? `(${Le[t]} & up)` : ""}`, Se = (t) => {
1791
+ const { type: l = "icons", label: r, property: s, onEmitChange: n = () => {
1792
+ }, units: a, negative: d = !1 } = t, [i] = pr(), [o] = Qe(), [, u] = He(), x = se(s), c = Ke(), m = qe(), [h] = Je(), g = N(() => p(x, "fullCls", ""), [x]), f = A(
1783
1793
  (k, I = !0) => {
1784
- const F = { dark: i, mq: u, mod: n, cls: k, property: s, fullCls: "" };
1785
- (i || n !== "") && (F.mq = "xs");
1786
- const oe = Ar(F);
1794
+ const F = { dark: i, mq: u, mod: o, cls: k, property: s, fullCls: "" };
1795
+ (i || o !== "") && (F.mq = "xs");
1796
+ const oe = Dr(F);
1787
1797
  c(h, [oe], I);
1788
1798
  },
1789
- [h, i, u, n, s, c]
1799
+ [h, i, u, o, s, c]
1790
1800
  ), T = A(() => {
1791
1801
  m(h, [g]);
1792
- }, [h, g, m]), D = N(() => rl(x, u), [x, u]);
1802
+ }, [h, g, m]), D = N(() => ll(x, u), [x, u]);
1793
1803
  _(() => {
1794
- o(D, x);
1795
- }, [D, o, x]);
1804
+ n(D, x);
1805
+ }, [D, n, x]);
1796
1806
  const [, , j] = He(), L = A(
1797
1807
  (k) => {
1798
1808
  j({
@@ -1805,26 +1815,26 @@ const qr = (t) => {
1805
1815
  }[k]);
1806
1816
  },
1807
1817
  [j]
1808
- ), $ = p(x, "dark", null) === i && p(x, "mod", null) === n && p(x, "mq", null) === u;
1809
- return /* @__PURE__ */ e.jsx(Xr, { canChange: D, canReset: x && $, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1818
+ ), $ = p(x, "dark", null) === i && p(x, "mod", null) === o && p(x, "mq", null) === u;
1819
+ return /* @__PURE__ */ e.jsx(Zr, { canChange: D, canReset: x && $, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1810
1820
  /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${x && !$ ? "text-foreground" : ""}`, children: r }) }),
1811
1821
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
1812
1822
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
1813
1823
  l === "arbitrary" ? /* @__PURE__ */ e.jsx(
1814
- tl,
1824
+ rl,
1815
1825
  {
1816
1826
  currentClass: p(x, "cls", ""),
1817
- classPrefix: p(ll, s, ""),
1827
+ classPrefix: p(sl, s, ""),
1818
1828
  units: a || [],
1819
1829
  onChange: f,
1820
1830
  negative: d,
1821
1831
  cssProperty: s
1822
1832
  }
1823
1833
  ) : null,
1824
- l === "icons" && /* @__PURE__ */ e.jsx(zr, { property: s, onChange: f }),
1825
- l === "range" && /* @__PURE__ */ e.jsx(Zr, { property: s, onChange: f }),
1826
- l === "color" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
1827
- l === "dropdown" && /* @__PURE__ */ e.jsx(st, { label: r, property: s, onChange: f })
1834
+ l === "icons" && /* @__PURE__ */ e.jsx(Ur, { property: s, onChange: f }),
1835
+ l === "range" && /* @__PURE__ */ e.jsx(zr, { property: s, onChange: f }),
1836
+ l === "color" && /* @__PURE__ */ e.jsx(Kr, { property: s, onChange: f }),
1837
+ l === "dropdown" && /* @__PURE__ */ e.jsx(ot, { label: r, property: s, onChange: f })
1828
1838
  ] }),
1829
1839
  /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${g ? "visible" : "invisible"}`, children: $ ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Xe, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && x ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1830
1840
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
@@ -1838,7 +1848,7 @@ const qr = (t) => {
1838
1848
  /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
1839
1849
  "Current style is set at  ",
1840
1850
  /* @__PURE__ */ e.jsxs("span", { className: "font-bold ", children: [
1841
- sl(p(x, "mq")),
1851
+ ol(p(x, "mq")),
1842
1852
  i && !x.dark ? "(Light mode)" : ""
1843
1853
  ] }),
1844
1854
  /* @__PURE__ */ e.jsx("br", {}),
@@ -1858,16 +1868,16 @@ const qr = (t) => {
1858
1868
  ] }) : null })
1859
1869
  ] })
1860
1870
  ] }) });
1861
- }, ol = ["px", "%", "em", "rem", "ch", "vh", "vw"], nt = ({
1871
+ }, nl = ["px", "%", "em", "rem", "ch", "vh", "vw"], at = ({
1862
1872
  label: t,
1863
1873
  options: l,
1864
1874
  borderB: r = !1,
1865
1875
  borderT: s = !1,
1866
- type: o = "arbitrary",
1867
- units: a = ol,
1876
+ type: n = "arbitrary",
1877
+ units: a = nl,
1868
1878
  negative: d = !1
1869
1879
  }) => {
1870
- const [i, n] = w(l[0].key), u = ue(), x = A((c) => C(u, "property").includes(c), [u]);
1880
+ const [i, o] = w(l[0].key), u = ue(), x = A((c) => C(u, "property").includes(c), [u]);
1871
1881
  return /* @__PURE__ */ e.jsxs(
1872
1882
  "div",
1873
1883
  {
@@ -1881,13 +1891,13 @@ const qr = (t) => {
1881
1891
  "button",
1882
1892
  {
1883
1893
  type: "button",
1884
- onClick: () => n(m),
1894
+ onClick: () => o(m),
1885
1895
  className: `relative cursor-pointer rounded-full p-1 text-[8px] ${m === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
1886
1896
  children: [
1887
1897
  P.createElement("div", {
1888
1898
  className: x(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1889
1899
  }),
1890
- P.createElement(p(lt, m, We), { className: "text-inherit w-3 h-3" })
1900
+ P.createElement(p(st, m, We), { className: "text-inherit w-3 h-3" })
1891
1901
  ]
1892
1902
  }
1893
1903
  ) }),
@@ -1898,7 +1908,7 @@ const qr = (t) => {
1898
1908
  /* @__PURE__ */ e.jsx("div", { className: "mt-0 flex items-center", children: /* @__PURE__ */ e.jsx(
1899
1909
  Se,
1900
1910
  {
1901
- type: o,
1911
+ type: n,
1902
1912
  units: [...a],
1903
1913
  label: "",
1904
1914
  property: i,
@@ -1908,12 +1918,12 @@ const qr = (t) => {
1908
1918
  ]
1909
1919
  }
1910
1920
  );
1911
- }, nl = ({ heading: t, items: l }) => {
1921
+ }, al = ({ heading: t, items: l }) => {
1912
1922
  const r = ue(), s = N(() => {
1913
- const o = (i) => U(
1914
- i.map((n) => n.styleType === "multiple" ? C(n.options, "key") : n.property)
1923
+ const n = (i) => U(
1924
+ i.map((o) => o.styleType === "multiple" ? C(o.options, "key") : o.property)
1915
1925
  ), a = U(
1916
- l.map((i) => i.styleType === "accordion" ? o(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1926
+ l.map((i) => i.styleType === "accordion" ? n(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1917
1927
  ), d = C(r, "property");
1918
1928
  return _e(a, d).length > 0;
1919
1929
  }, [r, l]);
@@ -1927,17 +1937,17 @@ const qr = (t) => {
1927
1937
  }
1928
1938
  ) : null
1929
1939
  ] }) }),
1930
- /* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(nt, { ...o }, o.label) : /* @__PURE__ */ e.jsx(Se, { ...o }, o.label)) })
1940
+ /* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((n) => n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...n }, n.label) : /* @__PURE__ */ e.jsx(Se, { ...n }, n.label)) })
1931
1941
  ] });
1932
- }, al = Oe({}), he = ({ section: t }) => {
1942
+ }, il = Oe({}), he = ({ section: t }) => {
1933
1943
  const l = ue(), r = A(
1934
1944
  (a = []) => {
1935
1945
  const d = {};
1936
- for (let n = 0; n < l.length; n++)
1937
- d[l[n].property] = l[n].cls;
1946
+ for (let o = 0; o < l.length; o++)
1947
+ d[l[o].property] = l[o].cls;
1938
1948
  let i = !0;
1939
- for (const n in a)
1940
- if (!ge(d, n) || d[n] !== a[n]) {
1949
+ for (const o in a)
1950
+ if (!ge(d, o) || d[o] !== a[o]) {
1941
1951
  i = !1;
1942
1952
  break;
1943
1953
  }
@@ -1947,28 +1957,28 @@ const qr = (t) => {
1947
1957
  ), s = N(() => {
1948
1958
  if (l.length > 0 && t.heading === "Classes")
1949
1959
  return !0;
1950
- const a = (n) => U(
1951
- n.map((u) => u.styleType === "multiple" ? U(C(u.options, "key")) : u.property)
1960
+ const a = (o) => U(
1961
+ o.map((u) => u.styleType === "multiple" ? U(C(u.options, "key")) : u.property)
1952
1962
  ), d = U(
1953
- t.items.map((n) => n.styleType === "accordion" ? a(n.items) : n.styleType === "multiple" ? U(C(n.options, "key")) : n.property)
1963
+ t.items.map((o) => o.styleType === "accordion" ? a(o.items) : o.styleType === "multiple" ? U(C(o.options, "key")) : o.property)
1954
1964
  ), i = C(l, "property");
1955
1965
  return _e(d, i).length > 0;
1956
- }, [l, t.heading, t.items]), o = N(() => ({}), []);
1957
- return /* @__PURE__ */ e.jsx(al.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1966
+ }, [l, t.heading, t.items]), n = N(() => ({}), []);
1967
+ return /* @__PURE__ */ e.jsx(il.Provider, { value: n, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1958
1968
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1959
1969
  /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}` }),
1960
1970
  t.heading
1961
1971
  ] }) }),
1962
1972
  /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: P.Children.toArray(
1963
- t.items.map((a) => ge(a, "component") ? P.createElement(a.component, { key: a.label }) : ge(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(nt, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(nl, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Se, { ...a }, a.label))
1973
+ t.items.map((a) => ge(a, "component") ? P.createElement(a.component, { key: a.label }) : ge(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(al, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Se, { ...a }, a.label))
1964
1974
  ) })
1965
1975
  ] }) });
1966
- }, il = ({
1976
+ }, dl = ({
1967
1977
  item: t,
1968
1978
  index: l,
1969
1979
  canDelete: r,
1970
1980
  onChange: s,
1971
- onRemove: o
1981
+ onRemove: n
1972
1982
  }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col gap-1 border-gray-400 py-2 ${r ? "border-b" : ""}`, children: [
1973
1983
  /* @__PURE__ */ e.jsx(
1974
1984
  "input",
@@ -1998,19 +2008,19 @@ const qr = (t) => {
1998
2008
  /* @__PURE__ */ e.jsx(
1999
2009
  Xe,
2000
2010
  {
2001
- onClick: o,
2011
+ onClick: n,
2002
2012
  className: "h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 hover:opacity-80"
2003
2013
  }
2004
2014
  )
2005
2015
  ] })
2006
- ] }), dl = ({ section: t }) => {
2016
+ ] }), cl = ({ section: t }) => {
2007
2017
  var m;
2008
- const { setSyncState: l } = cr(), r = G(), [s, o] = w([]), [a] = Ne(), d = Ue(), i = `${p(a, "0.prop")}_attrs`;
2018
+ const { setSyncState: l } = ur(), r = G(), [s, n] = w([]), [a] = Ne(), d = Ue(), i = `${p(a, "0.prop")}_attrs`;
2009
2019
  ne.useEffect(() => {
2010
2020
  const h = C(p(r, i), (g, f) => ({ key: f, value: g }));
2011
- b(h) ? o([]) : o(h);
2021
+ b(h) ? n([]) : n(h);
2012
2022
  }, [p(r, i)]);
2013
- const n = () => o([...s, { key: "", value: "" }]), u = (h) => {
2023
+ const o = () => n([...s, { key: "", value: "" }]), u = (h) => {
2014
2024
  const g = be(s, (f, T) => h !== T);
2015
2025
  c(g);
2016
2026
  }, x = (h, g) => {
@@ -2044,7 +2054,7 @@ const qr = (t) => {
2044
2054
  className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(s) && b((m = ye(s)) == null ? void 0 : m.key) ? "cursor-not-allowed border-gray-400 text-gray-400" : "cursor-pointer border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white"}`,
2045
2055
  onClick: () => {
2046
2056
  var h;
2047
- !b(s) && b((h = ye(s)) == null ? void 0 : h.key) || n();
2057
+ !b(s) && b((h = ye(s)) == null ? void 0 : h.key) || o();
2048
2058
  },
2049
2059
  children: [
2050
2060
  /* @__PURE__ */ e.jsx(Ce, { width: 12, height: 12 }),
@@ -2059,7 +2069,7 @@ const qr = (t) => {
2059
2069
  C(s, (h, g) => {
2060
2070
  const f = s.length > 0 && g < s.length - 1;
2061
2071
  return /* @__PURE__ */ e.jsx(
2062
- il,
2072
+ dl,
2063
2073
  {
2064
2074
  item: h,
2065
2075
  index: g,
@@ -2074,8 +2084,8 @@ const qr = (t) => {
2074
2084
  ] }) })
2075
2085
  ] });
2076
2086
  };
2077
- function cl() {
2078
- const [t, l] = Qe(), { flexChild: r, gridChild: s } = pr(), [, o] = Rr(ur), { t: a } = Fe(), [d] = Ne();
2087
+ function pl() {
2088
+ const [t, l] = Qe(), { flexChild: r, gridChild: s } = xr(), [, n] = Vr(gr), { t: a } = Fe(), [d] = Ne();
2079
2089
  return b(d) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2080
2090
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2081
2091
  /* @__PURE__ */ e.jsx("h1", { children: a("no_styling_block_selected") }),
@@ -2087,12 +2097,12 @@ function cl() {
2087
2097
  ] })
2088
2098
  ] }) }) : (
2089
2099
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
2090
- /* @__PURE__ */ e.jsxs("div", { onClick: () => o(!1), className: "flex h-full flex-col", children: [
2100
+ /* @__PURE__ */ e.jsxs("div", { onClick: () => n(!1), className: "flex h-full flex-col", children: [
2091
2101
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-x-4 space-y-3 border-b border-border px-4 py-2", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-1.5", children: [
2092
2102
  /* @__PURE__ */ e.jsx(Te, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
2093
- /* @__PURE__ */ e.jsxs(xr, { defaultValue: t, onValueChange: (i) => l(i), children: [
2094
- /* @__PURE__ */ e.jsx(gr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(hr, { placeholder: "State" }) }),
2095
- /* @__PURE__ */ e.jsxs(mr, { children: [
2103
+ /* @__PURE__ */ e.jsxs(hr, { defaultValue: t, onValueChange: (i) => l(i), children: [
2104
+ /* @__PURE__ */ e.jsx(mr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(yr, { placeholder: "State" }) }),
2105
+ /* @__PURE__ */ e.jsxs(br, { children: [
2096
2106
  /* @__PURE__ */ e.jsx(H, { value: "", children: "Normal" }),
2097
2107
  /* @__PURE__ */ e.jsx(H, { value: "hover", children: "Hover" }),
2098
2108
  /* @__PURE__ */ e.jsx(H, { value: "active", children: "Active" }),
@@ -2108,19 +2118,19 @@ function cl() {
2108
2118
  ] })
2109
2119
  ] })
2110
2120
  ] }) }),
2111
- /* @__PURE__ */ e.jsxs(yr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2121
+ /* @__PURE__ */ e.jsxs(fr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2112
2122
  /* @__PURE__ */ e.jsxs(Ge, { type: "multiple", className: "h-full w-full", children: [
2113
- r && /* @__PURE__ */ e.jsx(he, { section: Fr }),
2114
- s ? /* @__PURE__ */ e.jsx(he, { section: Yr }) : null,
2115
- Wr.map((i) => /* @__PURE__ */ e.jsx(he, { section: i }, i.heading)),
2116
- /* @__PURE__ */ e.jsx(dl, { section: { heading: "Attributes" } })
2123
+ r && /* @__PURE__ */ e.jsx(he, { section: Yr }),
2124
+ s ? /* @__PURE__ */ e.jsx(he, { section: Wr }) : null,
2125
+ Xr.map((i) => /* @__PURE__ */ e.jsx(he, { section: i }, i.heading)),
2126
+ /* @__PURE__ */ e.jsx(cl, { section: { heading: "Attributes" } })
2117
2127
  ] }),
2118
2128
  /* @__PURE__ */ e.jsx("div", { className: "h-60" })
2119
2129
  ] })
2120
2130
  ] })
2121
2131
  );
2122
2132
  }
2123
- const pl = {
2133
+ const ul = {
2124
2134
  px: 1,
2125
2135
  "%": 1,
2126
2136
  em: 100,
@@ -2131,10 +2141,10 @@ const pl = {
2131
2141
  "-": 1,
2132
2142
  deg: 1,
2133
2143
  ms: 0.1
2134
- }, vs = () => {
2135
- const t = G(), { t: l } = Fe(), [r, s] = P.useState(""), [o, a] = P.useState({
2136
- onDrag: (n) => n,
2137
- onDragEnd: (n) => n,
2144
+ }, ws = () => {
2145
+ const t = G(), { t: l } = Fe(), [r, s] = P.useState(""), [n, a] = P.useState({
2146
+ onDrag: (o) => o,
2147
+ onDragEnd: (o) => o,
2138
2148
  dragStartY: 0,
2139
2149
  dragging: !1,
2140
2150
  dragStartValue: 0,
@@ -2142,21 +2152,21 @@ const pl = {
2142
2152
  negative: !1,
2143
2153
  cssProperty: ""
2144
2154
  }), d = me(
2145
- (n) => {
2146
- const u = !p(o, "negative", !1), x = p(o, "cssProperty", "");
2147
- let c = parseFloat(o.dragStartValue);
2155
+ (o) => {
2156
+ const u = !p(n, "negative", !1), x = p(n, "cssProperty", "");
2157
+ let c = parseFloat(n.dragStartValue);
2148
2158
  c = Ee(c) ? 0 : c;
2149
- let m = pl[o.dragUnit];
2159
+ let m = ul[n.dragUnit];
2150
2160
  (z(x, "scale") || x === "opacity") && (m = 10);
2151
- let g = (o.dragStartY - n.pageY) / m + c;
2152
- u && g < 0 && (g = 0), x === "opacity" && g > 1 && (g = 1), o.onDrag(`${g}`), s(`${g}`);
2161
+ let g = (n.dragStartY - o.pageY) / m + c;
2162
+ u && g < 0 && (g = 0), x === "opacity" && g > 1 && (g = 1), n.onDrag(`${g}`), s(`${g}`);
2153
2163
  },
2154
- [o],
2164
+ [n],
2155
2165
  50
2156
2166
  ), i = A(() => {
2157
- setTimeout(() => o.onDragEnd(`${r}`), 100), a({
2158
- onDrag: (n) => n,
2159
- onDragEnd: (n) => n,
2167
+ setTimeout(() => n.onDragEnd(`${r}`), 100), a({
2168
+ onDrag: (o) => o,
2169
+ onDragEnd: (o) => o,
2160
2170
  dragStartY: 0,
2161
2171
  dragging: !1,
2162
2172
  dragStartValue: 0,
@@ -2164,12 +2174,12 @@ const pl = {
2164
2174
  negative: !1,
2165
2175
  cssProperty: ""
2166
2176
  });
2167
- }, [o, r, a]);
2168
- return vt(t) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2177
+ }, [n, r, a]);
2178
+ return wt(t) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2169
2179
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2170
2180
  /* @__PURE__ */ e.jsx("h1", { children: l("no_block_selected_for_styling") })
2171
- ] }) }) : /* @__PURE__ */ e.jsxs(ot.Provider, { value: { setDragData: a }, children: [
2172
- o.dragging ? /* @__PURE__ */ e.jsx(
2181
+ ] }) }) : /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsxs(nt.Provider, { value: { setDragData: a }, children: [
2182
+ n.dragging ? /* @__PURE__ */ e.jsx(
2173
2183
  "div",
2174
2184
  {
2175
2185
  onMouseMove: d,
@@ -2177,8 +2187,8 @@ const pl = {
2177
2187
  className: "absolute inset-0 z-30 cursor-row-resize bg-gray-300/10 "
2178
2188
  }
2179
2189
  ) : null,
2180
- /* @__PURE__ */ e.jsxs(br, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2181
- /* @__PURE__ */ e.jsxs(fr, { className: "mx-1 grid grid-cols-2", children: [
2190
+ /* @__PURE__ */ e.jsxs(vr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2191
+ /* @__PURE__ */ e.jsxs(jr, { className: "mx-1 grid grid-cols-2", children: [
2182
2192
  /* @__PURE__ */ e.jsx(Be, { value: "settings", children: "Settings" }),
2183
2193
  /* @__PURE__ */ e.jsx(Be, { value: "styling", children: "Styling" })
2184
2194
  ] }),
@@ -2187,13 +2197,13 @@ const pl = {
2187
2197
  {
2188
2198
  value: "settings",
2189
2199
  className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
2190
- children: /* @__PURE__ */ e.jsx(Er, {})
2200
+ children: /* @__PURE__ */ e.jsx(_r, {})
2191
2201
  }
2192
2202
  ),
2193
- /* @__PURE__ */ e.jsx(Ae, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(cl, {}) })
2203
+ /* @__PURE__ */ e.jsx(Ae, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(pl, {}) })
2194
2204
  ] })
2195
- ] });
2205
+ ] }) });
2196
2206
  };
2197
2207
  export {
2198
- vs as default
2208
+ ws as default
2199
2209
  };