@chaibuilder/sdk 1.1.2 → 1.1.4

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 (60) hide show
  1. package/dist/{AddBlocks-P3qHuE5J.cjs → AddBlocks-Wsoku0Sm.cjs} +1 -1
  2. package/dist/{AddBlocks-imyQSCbI.js → AddBlocks-rteGefHR.js} +20 -20
  3. package/dist/{BrandingOptions-tSNtQ1Kv.js → BrandingOptions-4l1Yo42i.js} +1 -1
  4. package/dist/{BrandingOptions-_2XBEPab.cjs → BrandingOptions-CqVvc-GC.cjs} +1 -1
  5. package/dist/CanvasArea-_WcM6PCy.js +1426 -0
  6. package/dist/CanvasArea-jzvQJnbQ.cjs +59 -0
  7. package/dist/{CurrentPage-hHwsHam-.cjs → CurrentPage-8AWFWOJ8.cjs} +1 -1
  8. package/dist/{CurrentPage-uRwS0DQC.js → CurrentPage-tnHIOkX2.js} +5 -5
  9. package/dist/{Layers-eXMT1ncm.js → Layers-6PHQWIbV.js} +15 -15
  10. package/dist/{Layers--5nyqOjK.cjs → Layers-jsOPQbVU.cjs} +1 -1
  11. package/dist/{MarkAsGlobalBlock-aqik3ouc.js → MarkAsGlobalBlock-9pfqCgrO.js} +1 -1
  12. package/dist/{MarkAsGlobalBlock-p_wvHkQZ.cjs → MarkAsGlobalBlock-bXkERbl2.cjs} +1 -1
  13. package/dist/{PagesPanel-WZgw7xVs.cjs → PagesPanel-Zvy5ZKPf.cjs} +1 -1
  14. package/dist/{PagesPanel-xRUnAMIb.js → PagesPanel-cmJ1UiP0.js} +3 -3
  15. package/dist/{ProjectPanel-FC03TiyG.cjs → ProjectPanel-4BsxvZu-.cjs} +1 -1
  16. package/dist/{ProjectPanel-8l4Bi3Kh.js → ProjectPanel-VxbDdgA2.js} +5 -5
  17. package/dist/Settings-AJet4HbF.cjs +1 -0
  18. package/dist/{Settings-4v3M1bRS.js → Settings-zzs6KaRd.js} +294 -303
  19. package/dist/{SidePanels-0xaw3Td6.js → SidePanels-UGgpWdPF.js} +9 -9
  20. package/dist/{SidePanels-5e5q3c7J.cjs → SidePanels-_8tt1l6S.cjs} +1 -1
  21. package/dist/{Topbar-ZjAs5fDc.cjs → Topbar-geYx1fCH.cjs} +1 -1
  22. package/dist/{Topbar-Jc74a6oE.js → Topbar-zw_KlpKs.js} +5 -5
  23. package/dist/{UnsplashImages-nXceZLmd.cjs → UnsplashImages-C4_dg08Y.cjs} +1 -1
  24. package/dist/{UnsplashImages-_PxEYx5c.js → UnsplashImages-yk5eowZf.js} +4 -4
  25. package/dist/{UploadImages-tcQb5NZu.cjs → UploadImages-hLrNjSXF.cjs} +1 -1
  26. package/dist/{UploadImages-zzSgKmP9.js → UploadImages-ioTAmtvl.js} +10 -10
  27. package/dist/{add-page-modal-K5isTZOT.js → add-page-modal-31-dJjna.js} +3 -3
  28. package/dist/{add-page-modal-JRSQ_N56.cjs → add-page-modal-Gsa-gnsn.cjs} +1 -1
  29. package/dist/{confirm-alert-2JxcNf3T.js → confirm-alert-c7sRVjK8.js} +1 -1
  30. package/dist/{confirm-alert-mzlwOW9w.cjs → confirm-alert-zqK8LIx8.cjs} +1 -1
  31. package/dist/core.cjs +1 -1
  32. package/dist/core.d.ts +0 -25
  33. package/dist/core.js +51 -55
  34. package/dist/{delete-page-modal-x81Ed4jF.js → delete-page-modal-5xqoPPl3.js} +2 -2
  35. package/dist/{delete-page-modal-c8nB2y7w.cjs → delete-page-modal-jEsSWzKN.cjs} +1 -1
  36. package/dist/{form-TQ7vwDYO.js → form-5tYo3gKa.js} +1 -1
  37. package/dist/{form-bSW-Pkw9.cjs → form-hHv26OT7.cjs} +1 -1
  38. package/dist/{index-HjvZqhVh.js → index-K_TiChPs.js} +4 -4
  39. package/dist/index-LLhN-70p.cjs +1 -0
  40. package/dist/{index-ORFlyrBx.js → index-pJPfM9Bm.js} +874 -878
  41. package/dist/{index-7NRFGya_.cjs → index-rdttRR05.cjs} +2 -2
  42. package/dist/{page-viewer-huD5B1om.cjs → page-viewer-DJqp04Tr.cjs} +1 -1
  43. package/dist/{page-viewer-fFaDQOOI.js → page-viewer-Oku6zrcm.js} +3 -3
  44. package/dist/{project-general-setting-rH_1r38b.js → project-general-setting-hrJZUYnV.js} +3 -3
  45. package/dist/{project-general-setting-rNNI-K6l.cjs → project-general-setting-rVhljgfP.cjs} +1 -1
  46. package/dist/{project-seo-setting-cERASO9j.cjs → project-seo-setting-Xg6cVYXo.cjs} +1 -1
  47. package/dist/{project-seo-setting-k0HlefUD.js → project-seo-setting-fwyxNcY-.js} +2 -2
  48. package/dist/{single-page-detail-CrgTQFUX.js → single-page-detail-1UCpERBU.js} +4 -4
  49. package/dist/{single-page-detail-52_cuxNe.cjs → single-page-detail-ilh1I9gv.cjs} +1 -1
  50. package/dist/studio.cjs +1 -1
  51. package/dist/studio.js +2 -2
  52. package/dist/ui.cjs +1 -1
  53. package/dist/ui.js +41 -41
  54. package/dist/{useAddBlockByDrop-UA_Iw_4l.js → useAddBlockByDrop-UJ6QE7aE.js} +1 -1
  55. package/dist/{useAddBlockByDrop-DPV32UHP.cjs → useAddBlockByDrop-jJ_MnZ5y.cjs} +1 -1
  56. package/package.json +1 -1
  57. package/dist/CanvasArea-UtFK5IS6.cjs +0 -58
  58. package/dist/CanvasArea-dkwSFbQA.js +0 -1412
  59. package/dist/Settings-kcmKFymH.cjs +0 -1
  60. package/dist/index-zkc4SQCu.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 I, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as dt, createContext as Me, useContext as re } from "react";
3
+ import I, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as dt, createContext as Ee, useContext as re } from "react";
4
4
  import { useThrottledCallback as be } from "@react-hookz/web";
5
- import { forEach as Ce, isArray as ae, omit as ct, truncate as pt, includes as M, get as u, first as pe, split as ut, startCase as Y, toLower as te, isEmpty as b, map as C, find as xt, last as fe, filter as ve, set as Ee, keys as gt, cloneDeep as ht, each as mt, capitalize as yt, reject as bt, nth as Ve, startsWith as z, isNumber as ft, parseInt as vt, isNaN as _e, findLast as jt, flatten as U, intersection as Fe, has as he, isNull as wt } from "lodash";
5
+ import { forEach as Ce, isArray as ae, omit as ct, truncate as pt, includes as E, get as u, first as pe, split as ut, startCase as Y, toLower as te, isEmpty as b, map as C, find as xt, last as fe, filter as ve, set as Me, keys as gt, cloneDeep as ht, each as mt, capitalize as yt, reject as bt, nth as Ve, startsWith as z, isNumber as ft, parseInt as vt, isNaN as _e, findLast as jt, flatten as U, intersection as Fe, has as he, isNull as wt } from "lodash";
6
6
  import { useTranslation as Ye } from "react-i18next";
7
- import { PlusIcon as ke, Cross2Icon as We, EyeOpenIcon as Ct, EyeClosedIcon as He, 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 It, LetterCaseUppercaseIcon as Pt, Cross1Icon as $t, InfoCircledIcon as Ne, MinusIcon as Lt, BoxIcon as Xe, RowSpacingIcon as Ot, TriangleDownIcon as Mt, CrossCircledIcon as Et, TrashIcon as _t, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
- import { b3 as Ft, b4 as Yt, B as ue, b5 as Wt, b6 as Xt, b7 as Zt, b8 as zt, b9 as Ut, ba as Gt, bb as Kt, a6 as G, aq as qt, ar as Jt, as as Qt, bc as er, ao as tr, bd as rr, ap as sr, aH as W, aI as X, aK as Z, ak as lr, be as or, bf as nr, bg as ar, bh as ir, bi as dr, bj as cr, p as ze, ac as Ue, i as pr, bk as Ge, bl as ie, bm as de, bn as ce, aj as Te, P as Ke, a3 as qe, j as Je, aM as Se, bo as ur, bp as xr, a4 as xe, W as gr, a9 as Qe, R as Be, ag as hr, ad as mr, bq as yr, au as br, av as fr, aw as vr, ax as jr, ay as H, br as wr, aB as Cr, aC as kr, aD as Ae, aE as De } from "./index-ORFlyrBx.js";
9
- import Nr from "@rjsf/core";
10
- import Tr from "@rjsf/validator-ajv8";
11
- import { u as Sr } from "./controls-G0puEH71.js";
12
- import { Check as Rr, EditIcon as Vr, TrashIcon as Hr } from "lucide-react";
13
- import { getBlockComponent as et, getChaiDataProviders as Br } from "@chaibuilder/runtime";
14
- import { E as tt, u as rt } from "./index-HjvZqhVh.js";
15
- import { useAtom as Ar } from "jotai";
16
- import Dr from "react-autosuggest";
17
- import Ir from "fuse.js";
18
- import { A as Pr, C as ge, d as $r } from "./utils-PPBbw5bk.js";
19
- import { a as Lr } from "./MODIFIERS-MLfpKQY1.js";
7
+ import { PlusIcon as ke, Cross2Icon as We, EyeOpenIcon as Ct, EyeClosedIcon as He, 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 It, LetterCaseUppercaseIcon as Pt, Cross1Icon as $t, InfoCircledIcon as Ne, MinusIcon as Lt, BoxIcon as Xe, RowSpacingIcon as Ot, TriangleDownIcon as Et, CrossCircledIcon as Mt, TrashIcon as _t, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
+ import { b0 as Ft, b1 as Yt, B as ue, b2 as Wt, b3 as Xt, b4 as Zt, b5 as zt, b6 as Ut, b7 as Gt, b8 as Kt, a6 as G, am as qt, an as Jt, ao as Qt, b9 as er, ak as tr, ba as rr, al as lr, aD as W, aE as X, aG as Z, bb as sr, bc as or, bd as nr, be as ar, bf as ir, bg as dr, p as ze, ac as Ue, i as cr, bh as Ge, bi as ie, bj as de, bk as ce, aj as Te, P as Ke, a3 as qe, j as Je, aI as Se, bl as pr, bm as ur, a4 as xe, W as xr, a9 as Qe, R as Be, ag as gr, ad as hr, bn as mr, aq as yr, ar as br, as as fr, at as vr, au as H, bo as jr, ax as wr, ay as Cr, az as Ae, aA as De } from "./index-pJPfM9Bm.js";
9
+ import { u as kr } from "./controls-G0puEH71.js";
10
+ import { Check as Nr, EditIcon as Tr, TrashIcon as Sr } from "lucide-react";
11
+ import { getBlockComponent as et, getChaiDataProviders as Rr } from "@chaibuilder/runtime";
12
+ import { E as tt, u as rt } from "./index-K_TiChPs.js";
13
+ import Vr from "@rjsf/core";
14
+ import Hr from "@rjsf/validator-ajv8";
15
+ import { useAtom as Br } from "jotai";
16
+ import Ar from "react-autosuggest";
17
+ import Dr from "fuse.js";
18
+ import { A as Ir, C as ge, d as Pr } from "./utils-PPBbw5bk.js";
19
+ import { a as $r } from "./MODIFIERS-MLfpKQY1.js";
20
20
  import "@radix-ui/react-toggle";
21
21
  import "class-variance-authority";
22
22
  import "@radix-ui/react-switch";
@@ -62,25 +62,25 @@ import "./tailwind-config-d1VL1lzE.js";
62
62
  import "tailwind-merge";
63
63
  import "react-hotkeys-hook";
64
64
  import "sonner";
65
- const Or = I.lazy(() => import("react-json-view"));
66
- function Mr(t) {
67
- const s = [], r = {};
68
- function l(o, n) {
65
+ const Lr = I.lazy(() => import("react-json-view"));
66
+ function Or(t) {
67
+ const l = [], r = {};
68
+ function s(o, n) {
69
69
  Ce(n, (d, i) => {
70
70
  const a = o ? `${o}.${i}` : i, p = ae(d) ? "list" : typeof d;
71
- s.push(a), r[a] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ae(d) && l(a, d);
71
+ l.push(a), r[a] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ae(d) && s(a, d);
72
72
  });
73
73
  }
74
- return l("", ct(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: s, pathsType: r };
74
+ return s("", ct(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
75
75
  }
76
- const je = ({ data: t, fullView: s }) => {
76
+ const je = ({ data: t, fullView: l }) => {
77
77
  if (!t)
78
78
  return null;
79
79
  const r = typeof t;
80
- return s ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
80
+ return l ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
81
81
  /* @__PURE__ */ e.jsx("div", { className: "h-3" }),
82
82
  /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsx(
83
- Or,
83
+ Lr,
84
84
  {
85
85
  style: { maxHeight: "40vh", overflowY: "auto" },
86
86
  name: "Content",
@@ -97,19 +97,19 @@ const je = ({ data: t, fullView: s }) => {
97
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 }) });
98
98
  }, Ie = ({
99
99
  type: t,
100
- value: s = "",
100
+ value: l = "",
101
101
  setValue: r,
102
- data: l,
102
+ data: s,
103
103
  onChange: o,
104
104
  dataType: n,
105
105
  appliedBindings: d
106
106
  }) => {
107
- const { paths: i, pathsType: a } = Mr(l), p = t === "PROP" ? et(l == null ? void 0 : l._type) : {}, g = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
108
- (x) => !M(d, x) && u(p, `props.${pe(ut(x, "."))}.binding`)
107
+ const { paths: i, pathsType: a } = Or(s), p = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, g = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
108
+ (x) => !E(d, x) && u(p, `props.${pe(ut(x, "."))}.binding`)
109
109
  ) : i.filter((x) => n === u(a, x, "")), [t, i, d, n, p]);
110
110
  return _(() => {
111
- s && o(s);
112
- }, [s, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
111
+ l && o(l);
112
+ }, [l, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
113
113
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
114
114
  /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: Y(te(t)) }),
115
115
  /* @__PURE__ */ e.jsxs(Ft, { open: c, onOpenChange: m, children: [
@@ -118,11 +118,11 @@ const je = ({ data: t, fullView: s }) => {
118
118
  {
119
119
  variant: "outline",
120
120
  size: "sm",
121
- className: ` ${b(s) ? "bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white w-44 justify-center" : "min-w-[350px] justify-between items-center"}`,
122
- children: s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
121
+ className: ` ${b(l) ? "bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white w-44 justify-center" : "min-w-[350px] justify-between items-center"}`,
122
+ children: l ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
123
123
  /* @__PURE__ */ e.jsxs("span", { className: "text-sm pr-8", children: [
124
124
  g && /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 mr-2 rounded-full", children: Y(n) }),
125
- s
125
+ l
126
126
  ] }),
127
127
  /* @__PURE__ */ e.jsx("span", { className: "text-[9px] text-blue-400 underline cursor-pointer hover:text-blue-700", children: "Change" })
128
128
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -145,10 +145,10 @@ const je = ({ data: t, fullView: s }) => {
145
145
  },
146
146
  children: [
147
147
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
148
- /* @__PURE__ */ e.jsx(Rr, { className: `w-4 h-4 text-green-500 ${s === x ? "" : "opacity-0"}` }),
148
+ /* @__PURE__ */ e.jsx(Nr, { className: `w-4 h-4 text-green-500 ${l === x ? "" : "opacity-0"}` }),
149
149
  x
150
150
  ] }),
151
- g ? /* @__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(u(a, x, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(je, { data: u(l, x) }) })
151
+ g ? /* @__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(u(a, x, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(je, { data: u(s, x) }) })
152
152
  ]
153
153
  },
154
154
  x
@@ -157,15 +157,15 @@ const je = ({ data: t, fullView: s }) => {
157
157
  ] }) })
158
158
  ] })
159
159
  ] }),
160
- !g && !b(s) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(je, { data: u(l, s, ""), fullView: !0 }) })
160
+ !g && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(je, { data: u(s, l, ""), fullView: !0 }) })
161
161
  ] });
162
162
  }, Er = ({
163
163
  appliedBindings: t = [],
164
- onAddBinding: s,
164
+ onAddBinding: l,
165
165
  editMode: r,
166
- item: l
166
+ item: s
167
167
  }) => {
168
- const [o, n] = w(r ? l.key : ""), [d, i] = w(r ? l.value : ""), a = G(), [p] = rt(), g = A(
168
+ const [o, n] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), a = G(), [p] = rt(), g = A(
169
169
  (h, x) => {
170
170
  if (b(h))
171
171
  return "";
@@ -178,7 +178,7 @@ const je = ({ data: t, fullView: s }) => {
178
178
  }
179
179
  },
180
180
  [a, p]
181
- ), [c, m] = w(r ? g(l.key, "PROP") : "");
181
+ ), [c, m] = w(r ? g(s.key, "PROP") : "");
182
182
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
183
183
  /* @__PURE__ */ e.jsxs(qt, { children: [
184
184
  /* @__PURE__ */ e.jsx(Jt, { children: "Add Data Binding" }),
@@ -227,32 +227,32 @@ const je = ({ data: t, fullView: s }) => {
227
227
  type: "submit",
228
228
  className: "mt-4",
229
229
  disabled: b(o) && b(d),
230
- onClick: () => s({ key: o, value: d }),
230
+ onClick: () => l({ key: o, value: d }),
231
231
  children: "Save"
232
232
  }
233
233
  ) })
234
234
  ] });
235
- }, st = ({ disabled: t, children: s, onAddBinding: r, appliedBindings: l, editMode: o = !0, item: n = {} }) => {
235
+ }, lt = ({ disabled: t, children: l, onAddBinding: r, appliedBindings: s, editMode: o = !0, item: n = {} }) => {
236
236
  const [d, i] = w(!1);
237
237
  return /* @__PURE__ */ e.jsxs(tr, { children: [
238
- /* @__PURE__ */ e.jsx(rr, { disabled: t, asChild: !0, onClick: () => i(!0), children: s }),
239
- d && /* @__PURE__ */ e.jsx(sr, { children: /* @__PURE__ */ e.jsx(
238
+ /* @__PURE__ */ e.jsx(rr, { disabled: t, asChild: !0, onClick: () => i(!0), children: l }),
239
+ d && /* @__PURE__ */ e.jsx(lr, { children: /* @__PURE__ */ e.jsx(
240
240
  Er,
241
241
  {
242
242
  item: n,
243
243
  editMode: o,
244
- appliedBindings: l,
244
+ appliedBindings: s,
245
245
  onAddBinding: (a) => {
246
246
  r(a), i(!1);
247
247
  }
248
248
  }
249
249
  ) })
250
250
  ] });
251
- }, _r = ({
251
+ }, Mr = ({
252
252
  item: t,
253
- onAddBinding: s,
253
+ onAddBinding: l,
254
254
  onRemove: r,
255
- selectedBlock: l,
255
+ selectedBlock: s,
256
256
  dataProvider: o,
257
257
  appliedBindings: n
258
258
  }) => {
@@ -260,7 +260,7 @@ const je = ({ data: t, fullView: s }) => {
260
260
  if (b(p))
261
261
  return "";
262
262
  {
263
- const c = u(g === "PROP" ? l : o, p, "");
263
+ const c = u(g === "PROP" ? s : o, p, "");
264
264
  if (ae(c))
265
265
  return "list";
266
266
  const m = typeof c;
@@ -272,9 +272,9 @@ const je = ({ data: t, fullView: s }) => {
272
272
  /* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
273
273
  /* @__PURE__ */ e.jsx(je, { data: u(o, t.value, "") }),
274
274
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
275
- /* @__PURE__ */ e.jsx(st, { editMode: !0, onAddBinding: s, appliedBindings: n, item: t, children: /* @__PURE__ */ e.jsx(Vr, { 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: n, 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" }) }),
276
276
  /* @__PURE__ */ e.jsx(
277
- Hr,
277
+ Sr,
278
278
  {
279
279
  onClick: () => r(),
280
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"
@@ -283,21 +283,21 @@ const je = ({ data: t, fullView: s }) => {
283
283
  ] }),
284
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) })
285
285
  ] });
286
- }, Fr = ({ bindingData: t, onChange: s }) => {
287
- const r = G(), [l] = rt(), o = Br(), [n, d] = w(
286
+ }, _r = ({ bindingData: t, onChange: l }) => {
287
+ const r = G(), [s] = rt(), o = Rr(), [n, d] = w(
288
288
  C(t, (c, m) => ({ key: m, value: c }))
289
289
  );
290
290
  _(() => {
291
291
  d(C(t, (c, m) => ({ key: m, value: c })));
292
292
  }, [r == null ? void 0 : r._id]);
293
293
  const i = N(() => {
294
- if (b(l))
294
+ if (b(s))
295
295
  return !0;
296
296
  if (b(n))
297
297
  return !1;
298
298
  const c = fe(n);
299
299
  return b(c == null ? void 0 : c.key) || b(c == null ? void 0 : c.value);
300
- }, [l, n]), a = (c) => {
300
+ }, [s, n]), a = (c) => {
301
301
  const m = ve(n, (h) => h.key !== c.key);
302
302
  d([...m, c]), g([...m, c]);
303
303
  }, p = (c) => {
@@ -306,15 +306,15 @@ const je = ({ data: t, fullView: s }) => {
306
306
  }, g = A(
307
307
  (c = []) => {
308
308
  if (d(c), b(c)) {
309
- s({});
309
+ l({});
310
310
  return;
311
311
  }
312
312
  const m = {};
313
313
  Ce(c, (h) => {
314
- !b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) && Ee(m, h.key, h.value);
315
- }), s(m);
314
+ !b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) && Me(m, h.key, h.value);
315
+ }), l(m);
316
316
  },
317
- [s]
317
+ [l]
318
318
  );
319
319
  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: [
320
320
  "You have no data providers registered. Please add a data provider to your project. ",
@@ -322,20 +322,20 @@ const je = ({ data: t, fullView: s }) => {
322
322
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
323
323
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
324
324
  C(n, (c, m) => /* @__PURE__ */ e.jsx(
325
- _r,
325
+ Mr,
326
326
  {
327
327
  item: c,
328
328
  onAddBinding: a,
329
329
  onRemove: () => p(m),
330
330
  selectedBlock: r,
331
- dataProvider: l,
331
+ dataProvider: s,
332
332
  appliedBindings: C(n, "key")
333
333
  },
334
334
  c.key
335
335
  )),
336
336
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 200, children: [
337
337
  /* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
338
- st,
338
+ lt,
339
339
  {
340
340
  disabled: i,
341
341
  appliedBindings: C(n, "key"),
@@ -344,70 +344,61 @@ const je = ({ data: t, fullView: s }) => {
344
344
  "span",
345
345
  {
346
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(l) ? /* @__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"
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
348
  }
349
349
  )
350
350
  }
351
351
  ) }),
352
- i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(l) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
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" })
353
353
  ] })
354
354
  ] });
355
- }, Yr = () => /* @__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" }), me = dt(
356
- ({
357
- createHistorySnapshot: t,
358
- properties: s,
359
- formData: r,
360
- onChange: l
361
- }) => {
362
- const [o] = lr(), n = { type: "object", properties: {} }, d = {};
363
- return Object.keys(s).forEach((i) => {
364
- const a = s[i];
365
- if (M(["slot", "styles"], a.type))
366
- return;
367
- const p = u(a, "i18n", !1) ? `${i}-${o}` : i;
368
- n.properties[p] = or(a, o), d[p] = nr(a, o);
369
- }), /* @__PURE__ */ e.jsx(
370
- Nr,
371
- {
372
- widgets: {
373
- binding: Yr,
374
- richtext: ar,
375
- icon: ir,
376
- image: dr
377
- },
378
- fields: {
379
- link: cr
380
- },
381
- idSeparator: ".",
382
- autoComplete: "off",
383
- omitExtraData: !1,
384
- liveOmit: !1,
385
- liveValidate: !0,
386
- validator: Tr,
387
- uiSchema: d,
388
- onBlur: t,
389
- schema: n,
390
- formData: r,
391
- onChange: l
392
- }
393
- );
394
- }
395
- );
396
- function Wr() {
397
- const t = G(), { createSnapshot: s } = ze(), r = Ue(), l = et(t._type), o = { ...t }, n = pr("dataBindingSupport", !1), d = () => s(), i = ({ formData: c }, m) => {
355
+ }, Fr = () => /* @__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" }), me = dt(({ createHistorySnapshot: t, properties: l, formData: r, onChange: s }) => {
356
+ const o = { type: "object", properties: {} }, n = {};
357
+ return Object.keys(l).forEach((d) => {
358
+ const i = l[d];
359
+ if (E(["slot", "styles"], i.type))
360
+ return;
361
+ const a = d;
362
+ o.properties[a] = sr(i), n[a] = or(i);
363
+ }), /* @__PURE__ */ e.jsx(
364
+ Vr,
365
+ {
366
+ widgets: {
367
+ binding: Fr,
368
+ richtext: nr,
369
+ icon: ar,
370
+ image: ir
371
+ },
372
+ fields: { link: dr },
373
+ idSeparator: ".",
374
+ autoComplete: "off",
375
+ omitExtraData: !1,
376
+ liveOmit: !1,
377
+ liveValidate: !0,
378
+ validator: Hr,
379
+ uiSchema: n,
380
+ onBlur: t,
381
+ schema: o,
382
+ formData: r,
383
+ onChange: s
384
+ }
385
+ );
386
+ });
387
+ function Yr() {
388
+ const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = et(t._type), o = { ...t }, n = cr("dataBindingSupport", !1), d = () => l(), i = ({ formData: c }, m) => {
398
389
  if (m) {
399
390
  const h = m.replace("root.", "");
400
391
  r([t._id], { [h]: u(c, h) });
401
392
  }
402
393
  }, a = {
403
- _name: Sr({
394
+ _name: kr({
404
395
  title: "Name",
405
396
  default: u(t, "_name", t._type)
406
397
  })
407
398
  }, p = gt(u(o, "_bindings", {})), g = N(() => {
408
- const c = ht(u(l, "props", {}));
399
+ const c = ht(u(s, "props", {}));
409
400
  return n && mt(p, (m) => delete c[m]), c;
410
- }, [l, p, n]);
401
+ }, [s, p, n]);
411
402
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
412
403
  /* @__PURE__ */ e.jsx(
413
404
  me,
@@ -431,7 +422,7 @@ function Wr() {
431
422
  "Data Binding"
432
423
  ] }) }),
433
424
  /* @__PURE__ */ e.jsx(ce, { className: "pt-4 px-4", children: /* @__PURE__ */ e.jsx(
434
- Fr,
425
+ _r,
435
426
  {
436
427
  bindingData: u(o, "_bindings", {}),
437
428
  onChange: (c) => {
@@ -476,15 +467,15 @@ function Wr() {
476
467
  /* @__PURE__ */ e.jsx("div", { className: "pb-60" })
477
468
  ] });
478
469
  }
479
- const Pe = new Ir(Pr, {
470
+ const Pe = new Dr(Ir, {
480
471
  isCaseSensitive: !1,
481
472
  threshold: 0.2,
482
473
  minMatchCharLength: 2,
483
474
  keys: ["name"]
484
475
  });
485
- function Xr() {
476
+ function Wr() {
486
477
  var D;
487
- const [t] = Te(), s = G(), r = Ke(), l = qe(), [o] = Je(), [n, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, a = bt((u(s, i, "").replace(Lr, "").split(",").pop() || "").split(" "), b), p = () => {
478
+ const [t] = Te(), l = G(), r = Ke(), s = qe(), [o] = Je(), [n, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, a = bt((u(l, i, "").replace($r, "").split(",").pop() || "").split(" "), b), p = () => {
488
479
  const j = n.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
489
480
  r(o, j, !0), d("");
490
481
  }, [g, c] = w([]), m = ({ value: j }) => {
@@ -522,7 +513,7 @@ function Xr() {
522
513
  /* @__PURE__ */ e.jsx(Se, { className: "mt-2", children: "Add Tailwind classes" }),
523
514
  /* @__PURE__ */ e.jsxs("div", { className: "relative -mt-4 flex items-center gap-x-3", children: [
524
515
  /* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
525
- Dr,
516
+ Ar,
526
517
  {
527
518
  suggestions: g,
528
519
  onSuggestionsFetchRequested: m,
@@ -564,7 +555,7 @@ function Xr() {
564
555
  /* @__PURE__ */ e.jsx(
565
556
  We,
566
557
  {
567
- onClick: () => l(o, [j]),
558
+ onClick: () => s(o, [j]),
568
559
  className: "invisible absolute right-1 hover:text-white group-hover:visible group-hover:cursor-pointer"
569
560
  }
570
561
  )
@@ -578,7 +569,7 @@ function Xr() {
578
569
  }
579
570
  );
580
571
  }
581
- const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
572
+ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
582
573
  heading: "Flex Child",
583
574
  items: [
584
575
  { type: "arbitrary", label: "Basis", units: B, property: "flexBasis" },
@@ -587,7 +578,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
587
578
  { type: "dropdown", label: "Grow", property: "flexGrow" },
588
579
  { type: "dropdown", label: "Shrink", property: "flexShrink" }
589
580
  ]
590
- }, zr = {
581
+ }, Zr = {
591
582
  heading: "Grid Child",
592
583
  items: [
593
584
  { type: "range", label: "Col Span", property: "gridColSpan" },
@@ -598,7 +589,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
598
589
  { type: "range", label: "Row End", property: "gridRowEnd" },
599
590
  { type: "range", label: "Order", property: "order" }
600
591
  ]
601
- }, Ur = [
592
+ }, zr = [
602
593
  {
603
594
  heading: "Layout",
604
595
  items: [
@@ -1000,9 +991,9 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
1000
991
  },
1001
992
  {
1002
993
  heading: "Classes",
1003
- items: [{ component: Xr }]
994
+ items: [{ component: Wr }]
1004
995
  }
1005
- ], lt = {
996
+ ], st = {
1006
997
  "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" }) }),
1007
998
  // visibility
1008
999
  visible: Ct,
@@ -1196,13 +1187,13 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
1196
1187
  )
1197
1188
  ] }),
1198
1189
  static: $t
1199
- }, se = Me({ canReset: !1, canChange: !0 }), Gr = ({ children: t, canReset: s = !1, canChange: r = !0 }) => (
1190
+ }, le = Ee({ canReset: !1, canChange: !0 }), Ur = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
1200
1191
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1201
- /* @__PURE__ */ e.jsx(se.Provider, { value: { canReset: s, canChange: r }, children: t })
1202
- ), ot = ({ label: t, property: s, onChange: r }) => {
1203
- const l = N(() => u(ge, `${s}.classes`, [""]), [s]), o = le(s), n = N(() => u(o, "cls", ""), [o]), { canChange: d } = re(se), i = /\[.*\]/g.test(n);
1192
+ /* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
1193
+ ), ot = ({ label: t, property: l, onChange: r }) => {
1194
+ const s = N(() => u(ge, `${l}.classes`, [""]), [l]), o = se(l), n = N(() => u(o, "cls", ""), [o]), { canChange: d } = re(le), i = /\[.*\]/g.test(n);
1204
1195
  return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1205
- /* @__PURE__ */ e.jsx(ur, { className: "w-[70%] rounded py-1", readOnly: !0, value: n }),
1196
+ /* @__PURE__ */ e.jsx(pr, { className: "w-[70%] rounded py-1", readOnly: !0, value: n }),
1206
1197
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1207
1198
  /* @__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(Ne, {}) }) }),
1208
1199
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
@@ -1211,21 +1202,21 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
1211
1202
  we,
1212
1203
  {
1213
1204
  rounded: t,
1214
- onChange: (a) => r(a, s),
1205
+ onChange: (a) => r(a, l),
1215
1206
  selected: n,
1216
- options: l,
1207
+ options: s,
1217
1208
  disabled: !d
1218
1209
  }
1219
1210
  ) });
1220
1211
  };
1221
- function we({ selected: t, onChange: s, rounded: r = !1, options: l, disabled: o = !1 }) {
1212
+ function we({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: o = !1 }) {
1222
1213
  const n = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
1223
1214
  return /* @__PURE__ */ e.jsxs(
1224
1215
  "select",
1225
1216
  {
1226
- disabled: !l.length || o,
1217
+ disabled: !s.length || o,
1227
1218
  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`,
1228
- onChange: (a) => s(a.target.value),
1219
+ onChange: (a) => l(a.target.value),
1229
1220
  onKeyDown: (a) => {
1230
1221
  a.ctrlKey && (a.key === "z" && d(), a.key === "y" && i());
1231
1222
  },
@@ -1233,63 +1224,63 @@ function we({ selected: t, onChange: s, rounded: r = !1, options: l, disabled: o
1233
1224
  children: [
1234
1225
  /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
1235
1226
  I.Children.toArray(
1236
- l.map((a) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: a, children: a }))
1227
+ s.map((a) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: a, children: a }))
1237
1228
  )
1238
1229
  ]
1239
1230
  }
1240
1231
  );
1241
1232
  }
1242
- const Kr = ({ property: t, onChange: s }) => {
1243
- const { canReset: r, canChange: l } = re(se), o = le(t), n = N(() => u(o, "cls", ""), [o]), d = N(() => u(ge, `${t}.classes`, [""]), [t]), i = d.indexOf(n) > -1 ? d.indexOf(n) : 0, a = /\[.*\]/g.test(n);
1233
+ const Gr = ({ property: t, onChange: l }) => {
1234
+ const { canReset: r, canChange: s } = re(le), o = se(t), n = N(() => u(o, "cls", ""), [o]), d = N(() => u(ge, `${t}.classes`, [""]), [t]), i = d.indexOf(n) > -1 ? d.indexOf(n) : 0, a = /\[.*\]/g.test(n);
1244
1235
  return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: a ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: n }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1245
1236
  /* @__PURE__ */ e.jsx(
1246
1237
  "button",
1247
1238
  {
1248
1239
  type: "button",
1249
1240
  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",
1250
- disabled: !l && (!r || i - 1 < 0),
1251
- onClick: () => s(Ve(d, i - 1), t),
1241
+ disabled: !s && (!r || i - 1 < 0),
1242
+ onClick: () => l(Ve(d, i - 1), t),
1252
1243
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1253
1244
  Lt,
1254
1245
  {
1255
- className: !l && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1246
+ className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1256
1247
  }
1257
1248
  ) })
1258
1249
  }
1259
1250
  ),
1260
- /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(ot, { label: !1, property: t, onChange: s }) }),
1251
+ /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(ot, { label: !1, property: t, onChange: l }) }),
1261
1252
  /* @__PURE__ */ e.jsx(
1262
1253
  "button",
1263
1254
  {
1264
1255
  type: "button",
1265
1256
  className: "w-2/12 rounded-tr rounded-br bg-background px-1 text-center hover:bg-bg-gray-700 disabled:cursor-not-allowed disabled:bg-gray-600",
1266
- disabled: !l && (!r || i + 1 >= d.length),
1267
- onClick: () => s(Ve(d, i + 1), t),
1257
+ disabled: !s && (!r || i + 1 >= d.length),
1258
+ onClick: () => l(Ve(d, i + 1), t),
1268
1259
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1269
1260
  ke,
1270
1261
  {
1271
- className: !l && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1262
+ className: !s && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1272
1263
  }
1273
1264
  ) })
1274
1265
  }
1275
1266
  )
1276
1267
  ] }) });
1277
- }, qr = ({ property: t, onChange: s }) => {
1278
- const r = N(() => u(ge, `${t}.classes`, [""]), [t]), { canChange: l } = re(se), o = le(t), n = N(() => u(o, "cls", ""), [o]);
1268
+ }, Kr = ({ property: t, onChange: l }) => {
1269
+ const r = N(() => u(ge, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), o = se(t), n = N(() => u(o, "cls", ""), [o]);
1279
1270
  return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(W, { children: [
1280
1271
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1281
1272
  "button",
1282
1273
  {
1283
1274
  type: "button",
1284
- disabled: !l,
1285
- onClick: () => s(d, t),
1275
+ disabled: !s,
1276
+ onClick: () => l(d, t),
1286
1277
  className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${n === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1287
- children: I.createElement(u(lt, d, Xe))
1278
+ children: I.createElement(u(st, d, Xe))
1288
1279
  }
1289
1280
  ) }),
1290
1281
  /* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
1291
1282
  ] })) });
1292
- }, Jr = {
1283
+ }, qr = {
1293
1284
  backgroundColor: "bg",
1294
1285
  textColor: "text",
1295
1286
  borderColor: "border",
@@ -1301,8 +1292,8 @@ const Kr = ({ property: t, onChange: s }) => {
1301
1292
  toColor: "to",
1302
1293
  ringColor: "ring",
1303
1294
  ringOffsetColor: "ring-offset"
1304
- }, Qr = ({ property: t, onChange: s }) => {
1305
- const r = le(t), l = N(() => u(r, "cls", ""), [r]), { canChange: o } = re(se), [n, d] = w([]), [i, a] = w({ color: "", shade: "" }), p = l.split("-"), g = u(p, "1", ""), c = u(p, "2", ""), m = A(
1295
+ }, Jr = ({ property: t, onChange: l }) => {
1296
+ const r = se(t), s = N(() => u(r, "cls", ""), [r]), { canChange: o } = re(le), [n, d] = w([]), [i, a] = w({ color: "", shade: "" }), p = s.split("-"), g = u(p, "1", ""), c = u(p, "2", ""), m = A(
1306
1297
  // eslint-disable-next-line no-shadow
1307
1298
  (x) => {
1308
1299
  ["current", "inherit", "transparent", "black", "white"].includes(x) ? (d([]), a({ color: x })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), a((f) => ({ ...f, color: x, shade: f.shade ? f.shade : "500" })));
@@ -1324,9 +1315,9 @@ const Kr = ({ property: t, onChange: s }) => {
1324
1315
  return _(() => {
1325
1316
  a({ color: "", shade: "" });
1326
1317
  }, [r]), _(() => {
1327
- const f = `${u(Jr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1328
- f.match(new RegExp(u(ge, `${t}.regExp`, ""))) && s(f, t);
1329
- }, [i, s, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1318
+ const f = `${u(qr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1319
+ f.match(new RegExp(u(ge, `${t}.regExp`, ""))) && l(f, t);
1320
+ }, [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: [
1330
1321
  /* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
1331
1322
  we,
1332
1323
  {
@@ -1368,18 +1359,18 @@ const Kr = ({ property: t, onChange: s }) => {
1368
1359
  ) }),
1369
1360
  /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(we, { rounded: !0, selected: c, disabled: !g || !o, onChange: h, options: n }) })
1370
1361
  ] });
1371
- }, $e = (t, s) => {
1362
+ }, $e = (t, l) => {
1372
1363
  t = t.toLowerCase();
1373
1364
  let r = t.trim().replace(/ |\+/g, "");
1374
- if ((r === "auto" || r === "none") && s.includes(r))
1365
+ if ((r === "auto" || r === "none") && l.includes(r))
1375
1366
  return { value: "", unit: r };
1376
- const l = s.length ? new RegExp(s.join("|"), "g") : /XXXXXX/g;
1377
- r = r.replace(l, "");
1378
- const o = t.match(l), n = o && o.length > 1, d = !b(r) && Number.isNaN(Number(r));
1367
+ const s = l.length ? new RegExp(l.join("|"), "g") : /XXXXXX/g;
1368
+ r = r.replace(s, "");
1369
+ const o = t.match(s), n = o && o.length > 1, d = !b(r) && Number.isNaN(Number(r));
1379
1370
  return n || d ? { error: "Invalid value" } : o && (o[0] === "auto" || o[0] === "none") ? { value: o[0], unit: "" } : { value: r, unit: o ? o[0] : "" };
1380
1371
  };
1381
- const es = (t) => {
1382
- const s = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1372
+ const Qr = (t) => {
1373
+ const l = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1383
1374
  if (["auto", "none"].includes(r))
1384
1375
  return { value: "", unit: r };
1385
1376
  if (r === "px")
@@ -1388,22 +1379,22 @@ const es = (t) => {
1388
1379
  return { value: "100", unit: t.indexOf("w-") !== -1 ? "vw" : "vh" };
1389
1380
  if (r === "full")
1390
1381
  return { value: "100", unit: "%" };
1391
- if (M(t, "skew-"))
1392
- return { value: `${s}${r}`, unit: "deg" };
1393
- if (M(t, "rotate-"))
1394
- return { value: `${s}${r}`, unit: "deg" };
1395
- if (M(t, "opacity-"))
1382
+ if (E(t, "skew-"))
1383
+ return { value: `${l}${r}`, unit: "deg" };
1384
+ if (E(t, "rotate-"))
1385
+ return { value: `${l}${r}`, unit: "deg" };
1386
+ if (E(t, "opacity-"))
1396
1387
  return { value: `${r / 100}`, unit: "-" };
1397
- if (M(t, "duration-") || M(t, "delay-"))
1388
+ if (E(t, "duration-") || E(t, "delay-"))
1398
1389
  return { value: `${r}`, unit: "ms" };
1399
- if (M(t, "translate-") && !r.includes("/"))
1400
- return { value: `${s}${`${r / 4}`}`, unit: "rem" };
1401
- if (M(t, "scale-"))
1402
- return { value: `${s}${`${r / 100}`}`, unit: "-" };
1390
+ if (E(t, "translate-") && !r.includes("/"))
1391
+ return { value: `${l}${`${r / 4}`}`, unit: "rem" };
1392
+ if (E(t, "scale-"))
1393
+ return { value: `${l}${`${r / 100}`}`, unit: "-" };
1403
1394
  if (z(t, "border")) {
1404
- const l = t.match(/border-?(x|y|t|r|b|l)?\d+/g);
1405
- if (l)
1406
- return { value: l[0].split("-").pop(), unit: "px" };
1395
+ const s = t.match(/border-?(x|y|t|r|b|l)?\d+/g);
1396
+ if (s)
1397
+ return { value: s[0].split("-").pop(), unit: "px" };
1407
1398
  if (t.match(/border-?(x|y|t|r|b|l)?/g))
1408
1399
  return { value: "1", unit: "px" };
1409
1400
  }
@@ -1502,27 +1493,27 @@ const es = (t) => {
1502
1493
  if (["max", "min", "fit"].includes(r))
1503
1494
  return { value: t, unit: "class" };
1504
1495
  if (r.includes("/")) {
1505
- const [l, o] = C(r.split("/"), (n) => parseInt(n, 10));
1506
- return { value: s + (l / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
1496
+ const [s, o] = C(r.split("/"), (n) => parseInt(n, 10));
1497
+ return { value: l + (s / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
1507
1498
  }
1508
- return ft(parseFloat(r)) ? { value: `${s + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1499
+ return ft(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1509
1500
  };
1510
- const ts = (t) => {
1501
+ const el = (t) => {
1511
1502
  if (b(t))
1512
1503
  return { value: "", unit: "" };
1513
- const s = t.match(/\[.*\]/g);
1514
- if (s === null)
1515
- return rs(t);
1516
- const r = u(s, "0", "").replace(/\[|\]/g, ""), l = t.startsWith("-") ? "-" : "", o = pe(r.match(/\d+.\d+|\d+/g));
1517
- return { value: `${l}${o}`, unit: r.replace(o, "") };
1518
- }, rs = (t) => b(t) ? { value: "", unit: "" } : es(t), nt = I.createContext({
1504
+ const l = t.match(/\[.*\]/g);
1505
+ if (l === null)
1506
+ return tl(t);
1507
+ const r = u(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", o = pe(r.match(/\d+.\d+|\d+/g));
1508
+ return { value: `${s}${o}`, unit: r.replace(o, "") };
1509
+ }, tl = (t) => b(t) ? { value: "", unit: "" } : Qr(t), nt = I.createContext({
1519
1510
  setDragData: () => {
1520
1511
  }
1521
- }), ss = ({
1512
+ }), rl = ({
1522
1513
  unit: t,
1523
- currentValue: s,
1514
+ currentValue: l,
1524
1515
  onDrag: r,
1525
- onDragEnd: l,
1516
+ onDragEnd: s,
1526
1517
  onDragStart: o,
1527
1518
  negative: n,
1528
1519
  cssProperty: d
@@ -1535,10 +1526,10 @@ const ts = (t) => {
1535
1526
  onMouseDown: (a) => {
1536
1527
  const p = {
1537
1528
  onDrag: r,
1538
- onDragEnd: l,
1529
+ onDragEnd: s,
1539
1530
  dragging: !0,
1540
1531
  dragStartY: a.pageY,
1541
- dragStartValue: `${s}`,
1532
+ dragStartValue: `${l}`,
1542
1533
  dragUnit: t,
1543
1534
  negative: n,
1544
1535
  cssProperty: d
@@ -1550,22 +1541,22 @@ const ts = (t) => {
1550
1541
  children: /* @__PURE__ */ e.jsx(Ot, {})
1551
1542
  }
1552
1543
  );
1553
- }, ls = ({ onSelect: t, current: s, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((l) => /* @__PURE__ */ e.jsx(
1544
+ }, ll = ({ 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(
1554
1545
  ue,
1555
1546
  {
1556
1547
  className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
1557
- color: s === l ? "primary" : void 0,
1548
+ color: l === s ? "primary" : void 0,
1558
1549
  size: "sm",
1559
1550
  onClick: (o) => {
1560
- o.stopPropagation(), t(l);
1551
+ o.stopPropagation(), t(s);
1561
1552
  },
1562
- children: l
1553
+ children: s
1563
1554
  },
1564
- l
1565
- )) }), Le = 50, os = (t) => {
1566
- const [s, r] = w(!1), [l, o] = w(""), { currentClass: n, onChange: d, classPrefix: i, cssProperty: a, units: p, negative: g } = t, [c, m] = w(a != null && a.toLowerCase().includes("width") ? "%" : p[0]), [h, x] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, P] = w(!1);
1555
+ s
1556
+ )) }), Le = 50, sl = (t) => {
1557
+ const [l, r] = w(!1), [s, o] = w(""), { currentClass: n, onChange: d, classPrefix: i, cssProperty: a, units: p, negative: g } = t, [c, m] = w(a != null && a.toLowerCase().includes("width") ? "%" : p[0]), [h, x] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, P] = w(!1);
1567
1558
  _(() => {
1568
- const { value: y, unit: v } = ts(n);
1559
+ const { value: y, unit: v } = el(n);
1569
1560
  if (v === "") {
1570
1561
  o(y), m(a != null && a.toLowerCase().includes("width") ? "%" : pe(p));
1571
1562
  return;
@@ -1574,7 +1565,7 @@ const ts = (t) => {
1574
1565
  }, [n, a, p]);
1575
1566
  const k = be((y) => d(y), [d], Le), $ = be((y) => d(y, !1), [d], Le), F = A(
1576
1567
  (y = !1) => {
1577
- const v = $e(`${l}`, p);
1568
+ const v = $e(`${s}`, p);
1578
1569
  if (u(v, "error", !1)) {
1579
1570
  x(!0);
1580
1571
  return;
@@ -1589,10 +1580,10 @@ const ts = (t) => {
1589
1580
  const K = `${u(v, "value", "").startsWith("-") ? "-" : ""}${i}[${u(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1590
1581
  y ? $(K) : k(K);
1591
1582
  },
1592
- [k, $, l, c, i, p]
1583
+ [k, $, s, c, i, p]
1593
1584
  ), oe = A(
1594
1585
  (y) => {
1595
- const v = $e(`${l}`, p);
1586
+ const v = $e(`${s}`, p);
1596
1587
  if (u(v, "error", !1)) {
1597
1588
  x(!0);
1598
1589
  return;
@@ -1606,7 +1597,7 @@ const ts = (t) => {
1606
1597
  const S = u(v, "unit") !== "" ? u(v, "unit") : y, K = `${u(v, "value", "").startsWith("-") ? "-" : ""}${i}[${u(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1607
1598
  k(K);
1608
1599
  },
1609
- [k, l, i, p]
1600
+ [k, s, i, p]
1610
1601
  );
1611
1602
  return /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-start", children: c === "class" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1612
1603
  /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: n }),
@@ -1630,7 +1621,7 @@ const ts = (t) => {
1630
1621
  const v = vt(y.target.value);
1631
1622
  let S = _e(v) ? 0 : v;
1632
1623
  y.keyCode === 38 && (S += 1), y.keyCode === 40 && (S -= 1);
1633
- const E = `${S}`, it = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1624
+ const M = `${S}`, it = `${M.startsWith("-") ? "-" : ""}${i}[${M.replace("-", "")}${c === "-" ? "" : c}]`;
1634
1625
  $(it);
1635
1626
  },
1636
1627
  onKeyUp: (y) => {
@@ -1644,28 +1635,28 @@ const ts = (t) => {
1644
1635
  var v;
1645
1636
  (v = y == null ? void 0 : y.target) == null || v.select(), r(!1);
1646
1637
  },
1647
- value: D ? f : l,
1638
+ value: D ? f : s,
1648
1639
  className: "h-6 w-14 rounded rounded-r-none bg-background pl-2 text-sm focus-visible:outline-0 ".concat(
1649
1640
  " ",
1650
1641
  h ? "border-red-500 text-red-500" : "border-foreground/20"
1651
1642
  )
1652
1643
  }
1653
1644
  ),
1654
- /* @__PURE__ */ e.jsxs(W, { open: s, delayDuration: 100, children: [
1645
+ /* @__PURE__ */ e.jsxs(W, { open: l, delayDuration: 100, children: [
1655
1646
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1656
1647
  "button",
1657
1648
  {
1658
1649
  type: "button",
1659
- onClick: () => r(!s),
1650
+ onClick: () => r(!l),
1660
1651
  className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
1661
1652
  children: [
1662
1653
  /* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
1663
- p.length > 1 ? /* @__PURE__ */ e.jsx(Mt, {}) : null
1654
+ p.length > 1 ? /* @__PURE__ */ e.jsx(Et, {}) : null
1664
1655
  ]
1665
1656
  }
1666
1657
  ) }),
1667
- /* @__PURE__ */ e.jsx(xr, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1668
- ls,
1658
+ /* @__PURE__ */ e.jsx(ur, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1659
+ ll,
1669
1660
  {
1670
1661
  units: p,
1671
1662
  current: c,
@@ -1677,33 +1668,33 @@ const ts = (t) => {
1677
1668
  ] })
1678
1669
  ] }),
1679
1670
  ["none", "auto"].indexOf(c) !== -1 || D ? null : /* @__PURE__ */ e.jsx(
1680
- ss,
1671
+ rl,
1681
1672
  {
1682
1673
  onDragStart: () => j(!0),
1683
1674
  onDragEnd: (y) => {
1684
1675
  if (T(() => ""), j(!1), b(y))
1685
1676
  return;
1686
- const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1687
- k(E);
1677
+ const v = `${y}`, M = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1678
+ k(M);
1688
1679
  },
1689
1680
  onDrag: (y) => {
1690
1681
  if (b(y))
1691
1682
  return;
1692
1683
  T(y);
1693
- const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1694
- $(E);
1684
+ const v = `${y}`, M = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1685
+ $(M);
1695
1686
  },
1696
- currentValue: l,
1687
+ currentValue: s,
1697
1688
  unit: c,
1698
1689
  negative: g,
1699
1690
  cssProperty: a
1700
1691
  }
1701
1692
  )
1702
1693
  ] }) }) });
1703
- }, le = (t) => {
1704
- const s = xe();
1705
- return jt(s, { property: t });
1706
- }, ns = (t, s) => {
1694
+ }, se = (t) => {
1695
+ const l = xe();
1696
+ return jt(l, { property: t });
1697
+ }, ol = (t, l) => {
1707
1698
  const r = {
1708
1699
  xs: 0,
1709
1700
  sm: 1,
@@ -1712,8 +1703,8 @@ const ts = (t) => {
1712
1703
  xl: 4,
1713
1704
  "2xl": 5
1714
1705
  };
1715
- return r[u(t, "mq", "xs")] <= r[s];
1716
- }, as = {
1706
+ return r[u(t, "mq", "xs")] <= r[l];
1707
+ }, nl = {
1717
1708
  width: "w-",
1718
1709
  height: "h-",
1719
1710
  minWidth: "min-w-",
@@ -1786,19 +1777,19 @@ const ts = (t) => {
1786
1777
  lg: "1024px",
1787
1778
  xl: "1280px",
1788
1779
  "2xl": "1536px"
1789
- }, is = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
1790
- const { type: s = "icons", label: r, property: l, onEmitChange: o = () => {
1791
- }, units: n, negative: d = !1 } = t, [i] = gr(), [a] = Qe(), [, p] = Be(), g = le(l), c = Ke(), m = qe(), [h] = Je(), x = N(() => u(g, "fullCls", ""), [g]), f = A(
1780
+ }, al = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
1781
+ const { type: l = "icons", label: r, property: s, onEmitChange: o = () => {
1782
+ }, units: n, negative: d = !1 } = t, [i] = xr(), [a] = Qe(), [, p] = Be(), g = se(s), c = Ke(), m = qe(), [h] = Je(), x = N(() => u(g, "fullCls", ""), [g]), f = A(
1792
1783
  (k, $ = !0) => {
1793
- const F = { dark: i, mq: p, mod: a, cls: k, property: l, fullCls: "" };
1784
+ const F = { dark: i, mq: p, mod: a, cls: k, property: s, fullCls: "" };
1794
1785
  (i || a !== "") && (F.mq = "xs");
1795
- const oe = $r(F);
1786
+ const oe = Pr(F);
1796
1787
  c(h, [oe], $);
1797
1788
  },
1798
- [h, i, p, a, l, c]
1789
+ [h, i, p, a, s, c]
1799
1790
  ), T = A(() => {
1800
1791
  m(h, [x]);
1801
- }, [h, x, m]), D = N(() => ns(g, p), [g, p]);
1792
+ }, [h, x, m]), D = N(() => ol(g, p), [g, p]);
1802
1793
  _(() => {
1803
1794
  o(D, g);
1804
1795
  }, [D, o, g]);
@@ -1815,27 +1806,27 @@ const ts = (t) => {
1815
1806
  },
1816
1807
  [j]
1817
1808
  ), P = u(g, "dark", null) === i && u(g, "mod", null) === a && u(g, "mq", null) === p;
1818
- return /* @__PURE__ */ e.jsx(Gr, { canChange: D, canReset: g && P, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1809
+ return /* @__PURE__ */ e.jsx(Ur, { canChange: D, canReset: g && P, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1819
1810
  /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${g && !P ? "text-foreground" : ""}`, children: r }) }),
1820
1811
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
1821
1812
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
1822
- s === "arbitrary" ? /* @__PURE__ */ e.jsx(
1823
- os,
1813
+ l === "arbitrary" ? /* @__PURE__ */ e.jsx(
1814
+ sl,
1824
1815
  {
1825
1816
  currentClass: u(g, "cls", ""),
1826
- classPrefix: u(as, l, ""),
1817
+ classPrefix: u(nl, s, ""),
1827
1818
  units: n || [],
1828
1819
  onChange: f,
1829
1820
  negative: d,
1830
- cssProperty: l
1821
+ cssProperty: s
1831
1822
  }
1832
1823
  ) : null,
1833
- s === "icons" && /* @__PURE__ */ e.jsx(qr, { property: l, onChange: f }),
1834
- s === "range" && /* @__PURE__ */ e.jsx(Kr, { property: l, onChange: f }),
1835
- s === "color" && /* @__PURE__ */ e.jsx(Qr, { property: l, onChange: f }),
1836
- s === "dropdown" && /* @__PURE__ */ e.jsx(ot, { label: r, property: l, onChange: f })
1824
+ l === "icons" && /* @__PURE__ */ e.jsx(Kr, { property: s, onChange: f }),
1825
+ l === "range" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
1826
+ l === "color" && /* @__PURE__ */ e.jsx(Jr, { property: s, onChange: f }),
1827
+ l === "dropdown" && /* @__PURE__ */ e.jsx(ot, { label: r, property: s, onChange: f })
1837
1828
  ] }),
1838
- /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${x ? "visible" : "invisible"}`, children: P ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Et, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && g ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1829
+ /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${x ? "visible" : "invisible"}`, children: P ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Mt, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && g ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1839
1830
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1840
1831
  "button",
1841
1832
  {
@@ -1847,7 +1838,7 @@ const ts = (t) => {
1847
1838
  /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
1848
1839
  "Current style is set at  ",
1849
1840
  /* @__PURE__ */ e.jsxs("span", { className: "font-bold ", children: [
1850
- is(u(g, "mq")),
1841
+ al(u(g, "mq")),
1851
1842
  i && !g.dark ? "(Light mode)" : ""
1852
1843
  ] }),
1853
1844
  /* @__PURE__ */ e.jsx("br", {}),
@@ -1867,25 +1858,25 @@ const ts = (t) => {
1867
1858
  ] }) : null })
1868
1859
  ] })
1869
1860
  ] }) });
1870
- }, ds = ["px", "%", "em", "rem", "ch", "vh", "vw"], at = ({
1861
+ }, il = ["px", "%", "em", "rem", "ch", "vh", "vw"], at = ({
1871
1862
  label: t,
1872
- options: s,
1863
+ options: l,
1873
1864
  borderB: r = !1,
1874
- borderT: l = !1,
1865
+ borderT: s = !1,
1875
1866
  type: o = "arbitrary",
1876
- units: n = ds,
1867
+ units: n = il,
1877
1868
  negative: d = !1
1878
1869
  }) => {
1879
- const [i, a] = w(s[0].key), p = xe(), g = A((c) => C(p, "property").includes(c), [p]);
1870
+ const [i, a] = w(l[0].key), p = xe(), g = A((c) => C(p, "property").includes(c), [p]);
1880
1871
  return /* @__PURE__ */ e.jsxs(
1881
1872
  "div",
1882
1873
  {
1883
- className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${r ? "border-b" : ""} ${l ? "border-t" : ""}`,
1874
+ className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${r ? "border-b" : ""} ${s ? "border-t" : ""}`,
1884
1875
  children: [
1885
1876
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
1886
1877
  t && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: t }),
1887
1878
  /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: I.Children.toArray(
1888
- s.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
1879
+ l.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
1889
1880
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1890
1881
  "button",
1891
1882
  {
@@ -1896,7 +1887,7 @@ const ts = (t) => {
1896
1887
  I.createElement("div", {
1897
1888
  className: g(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1898
1889
  }),
1899
- I.createElement(u(lt, m, Xe), { className: "text-inherit w-3 h-3" })
1890
+ I.createElement(u(st, m, Xe), { className: "text-inherit w-3 h-3" })
1900
1891
  ]
1901
1892
  }
1902
1893
  ) }),
@@ -1917,33 +1908,33 @@ const ts = (t) => {
1917
1908
  ]
1918
1909
  }
1919
1910
  );
1920
- }, cs = ({ heading: t, items: s }) => {
1921
- const r = xe(), l = N(() => {
1911
+ }, dl = ({ heading: t, items: l }) => {
1912
+ const r = xe(), s = N(() => {
1922
1913
  const o = (i) => U(
1923
1914
  i.map((a) => a.styleType === "multiple" ? C(a.options, "key") : a.property)
1924
1915
  ), n = U(
1925
- s.map((i) => i.styleType === "accordion" ? o(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1916
+ l.map((i) => i.styleType === "accordion" ? o(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1926
1917
  ), d = C(r, "property");
1927
1918
  return Fe(n, d).length > 0;
1928
- }, [r, s]);
1919
+ }, [r, l]);
1929
1920
  return /* @__PURE__ */ e.jsxs("details", { children: [
1930
1921
  /* @__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: [
1931
1922
  t,
1932
- l ? /* @__PURE__ */ e.jsx(
1923
+ s ? /* @__PURE__ */ e.jsx(
1933
1924
  "span",
1934
1925
  {
1935
- className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${l ? "bg-blue-500" : "bg-gray-300"}`
1926
+ className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}`
1936
1927
  }
1937
1928
  ) : null
1938
1929
  ] }) }),
1939
- /* @__PURE__ */ e.jsx("div", { className: "p-2", children: s.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...o }, o.label) : /* @__PURE__ */ e.jsx(Re, { ...o }, o.label)) })
1930
+ /* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...o }, o.label) : /* @__PURE__ */ e.jsx(Re, { ...o }, o.label)) })
1940
1931
  ] });
1941
- }, ps = Me({}), ye = ({ section: t }) => {
1942
- const s = xe(), r = A(
1932
+ }, cl = Ee({}), ye = ({ section: t }) => {
1933
+ const l = xe(), r = A(
1943
1934
  (n = []) => {
1944
1935
  const d = {};
1945
- for (let a = 0; a < s.length; a++)
1946
- d[s[a].property] = s[a].cls;
1936
+ for (let a = 0; a < l.length; a++)
1937
+ d[l[a].property] = l[a].cls;
1947
1938
  let i = !0;
1948
1939
  for (const a in n)
1949
1940
  if (!he(d, a) || d[a] !== n[a]) {
@@ -1952,38 +1943,38 @@ const ts = (t) => {
1952
1943
  }
1953
1944
  return i;
1954
1945
  },
1955
- [s]
1956
- ), l = N(() => {
1957
- if (s.length > 0 && t.heading === "Classes")
1946
+ [l]
1947
+ ), s = N(() => {
1948
+ if (l.length > 0 && t.heading === "Classes")
1958
1949
  return !0;
1959
1950
  const n = (a) => U(
1960
1951
  a.map((p) => p.styleType === "multiple" ? U(C(p.options, "key")) : p.property)
1961
1952
  ), d = U(
1962
1953
  t.items.map((a) => a.styleType === "accordion" ? n(a.items) : a.styleType === "multiple" ? U(C(a.options, "key")) : a.property)
1963
- ), i = C(s, "property");
1954
+ ), i = C(l, "property");
1964
1955
  return Fe(d, i).length > 0;
1965
- }, [s, t.heading, t.items]), o = N(() => ({}), []);
1966
- return /* @__PURE__ */ e.jsx(ps.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1956
+ }, [l, t.heading, t.items]), o = N(() => ({}), []);
1957
+ return /* @__PURE__ */ e.jsx(cl.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1967
1958
  /* @__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: [
1968
- /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${l ? "bg-blue-500" : "bg-gray-300"}` }),
1959
+ /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}` }),
1969
1960
  t.heading
1970
1961
  ] }) }),
1971
1962
  /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: I.Children.toArray(
1972
- t.items.map((n) => he(n, "component") ? I.createElement(n.component, { key: n.label }) : he(n, "styleType") ? n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...n }, n.label) : n.styleType === "accordion" && r(n == null ? void 0 : n.conditions) ? /* @__PURE__ */ e.jsx(cs, { ...n }, n.label) : null : /* @__PURE__ */ e.jsx(Re, { ...n }, n.label))
1963
+ t.items.map((n) => he(n, "component") ? I.createElement(n.component, { key: n.label }) : he(n, "styleType") ? n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...n }, n.label) : n.styleType === "accordion" && r(n == null ? void 0 : n.conditions) ? /* @__PURE__ */ e.jsx(dl, { ...n }, n.label) : null : /* @__PURE__ */ e.jsx(Re, { ...n }, n.label))
1973
1964
  ) })
1974
1965
  ] }) });
1975
- }, us = ({
1966
+ }, pl = ({
1976
1967
  item: t,
1977
- index: s,
1968
+ index: l,
1978
1969
  canDelete: r,
1979
- onChange: l,
1970
+ onChange: s,
1980
1971
  onRemove: o
1981
1972
  }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col gap-1 border-gray-400 py-2 ${r ? "border-b" : ""}`, children: [
1982
1973
  /* @__PURE__ */ e.jsx(
1983
1974
  "input",
1984
1975
  {
1985
1976
  name: "key",
1986
- onChange: (n) => l(n, s),
1977
+ onChange: (n) => s(n, l),
1987
1978
  value: t.key,
1988
1979
  placeholder: "Key",
1989
1980
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -1996,7 +1987,7 @@ const ts = (t) => {
1996
1987
  "input",
1997
1988
  {
1998
1989
  name: "value",
1999
- onChange: (n) => b(t.key) ? {} : l(n, s),
1990
+ onChange: (n) => b(t.key) ? {} : s(n, l),
2000
1991
  value: t.value,
2001
1992
  placeholder: "Value",
2002
1993
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -2012,27 +2003,27 @@ const ts = (t) => {
2012
2003
  }
2013
2004
  )
2014
2005
  ] })
2015
- ] }), xs = ({ section: t }) => {
2006
+ ] }), ul = ({ section: t }) => {
2016
2007
  var m;
2017
- const { setSyncState: s } = hr(), r = G(), [l, o] = w([]), [n] = Te(), d = Ue(), i = `${u(n, "0.prop")}_attrs`;
2008
+ const { setSyncState: l } = gr(), r = G(), [s, o] = w([]), [n] = Te(), d = Ue(), i = `${u(n, "0.prop")}_attrs`;
2018
2009
  ne.useEffect(() => {
2019
2010
  const h = C(u(r, i), (x, f) => ({ key: f, value: x }));
2020
2011
  b(h) ? o([]) : o(h);
2021
2012
  }, [u(r, i)]);
2022
- const a = () => o([...l, { key: "", value: "" }]), p = (h) => {
2023
- const x = ve(l, (f, T) => h !== T);
2013
+ const a = () => o([...s, { key: "", value: "" }]), p = (h) => {
2014
+ const x = ve(s, (f, T) => h !== T);
2024
2015
  c(x);
2025
2016
  }, g = (h, x) => {
2026
- const f = [...l];
2017
+ const f = [...s];
2027
2018
  f[x][h.target.name] = h.target.value, c(f);
2028
2019
  }, c = ne.useCallback(
2029
2020
  (h = []) => {
2030
2021
  const x = {};
2031
2022
  Ce(h, (f) => {
2032
- b(f.key) || Ee(x, f.key, f.value);
2033
- }), d([u(r, "_id")], { [i]: x }), s("UNSAVED");
2023
+ b(f.key) || Me(x, f.key, f.value);
2024
+ }), d([u(r, "_id")], { [i]: x }), l("UNSAVED");
2034
2025
  },
2035
- [r, s, d, i]
2026
+ [r, l, d, i]
2036
2027
  );
2037
2028
  return /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
2038
2029
  /* @__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: [
@@ -2050,10 +2041,10 @@ const ts = (t) => {
2050
2041
  /* @__PURE__ */ e.jsxs(
2051
2042
  "div",
2052
2043
  {
2053
- className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(l) && b((m = fe(l)) == 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"}`,
2044
+ 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 = fe(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"}`,
2054
2045
  onClick: () => {
2055
2046
  var h;
2056
- !b(l) && b((h = fe(l)) == null ? void 0 : h.key) || a();
2047
+ !b(s) && b((h = fe(s)) == null ? void 0 : h.key) || a();
2057
2048
  },
2058
2049
  children: [
2059
2050
  /* @__PURE__ */ e.jsx(ke, { width: 12, height: 12 }),
@@ -2063,12 +2054,12 @@ const ts = (t) => {
2063
2054
  )
2064
2055
  ] }),
2065
2056
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
2066
- b(l) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
2057
+ b(s) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
2067
2058
  ne.Children.toArray(
2068
- C(l, (h, x) => {
2069
- const f = l.length > 0 && x < l.length - 1;
2059
+ C(s, (h, x) => {
2060
+ const f = s.length > 0 && x < s.length - 1;
2070
2061
  return /* @__PURE__ */ e.jsx(
2071
- us,
2062
+ pl,
2072
2063
  {
2073
2064
  item: h,
2074
2065
  index: x,
@@ -2083,8 +2074,8 @@ const ts = (t) => {
2083
2074
  ] }) })
2084
2075
  ] });
2085
2076
  };
2086
- function gs() {
2087
- const [t, s] = Qe(), { flexChild: r, gridChild: l } = mr(), [, o] = Ar(yr), { t: n } = Ye(), [d] = Te();
2077
+ function xl() {
2078
+ const [t, l] = Qe(), { flexChild: r, gridChild: s } = hr(), [, o] = Br(mr), { t: n } = Ye(), [d] = Te();
2088
2079
  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: [
2089
2080
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2090
2081
  /* @__PURE__ */ e.jsx("h1", { children: n("no_styling_block_selected") }),
@@ -2099,9 +2090,9 @@ function gs() {
2099
2090
  /* @__PURE__ */ e.jsxs("div", { onClick: () => o(!1), className: "flex h-full flex-col", children: [
2100
2091
  /* @__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: [
2101
2092
  /* @__PURE__ */ e.jsx(Se, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
2102
- /* @__PURE__ */ e.jsxs(br, { defaultValue: t, onValueChange: (i) => s(i), children: [
2103
- /* @__PURE__ */ e.jsx(fr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(vr, { placeholder: "State" }) }),
2104
- /* @__PURE__ */ e.jsxs(jr, { children: [
2093
+ /* @__PURE__ */ e.jsxs(yr, { defaultValue: t, onValueChange: (i) => l(i), children: [
2094
+ /* @__PURE__ */ e.jsx(br, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(fr, { placeholder: "State" }) }),
2095
+ /* @__PURE__ */ e.jsxs(vr, { children: [
2105
2096
  /* @__PURE__ */ e.jsx(H, { value: "", children: "Normal" }),
2106
2097
  /* @__PURE__ */ e.jsx(H, { value: "hover", children: "Hover" }),
2107
2098
  /* @__PURE__ */ e.jsx(H, { value: "active", children: "Active" }),
@@ -2117,19 +2108,19 @@ function gs() {
2117
2108
  ] })
2118
2109
  ] })
2119
2110
  ] }) }),
2120
- /* @__PURE__ */ e.jsxs(wr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2111
+ /* @__PURE__ */ e.jsxs(jr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2121
2112
  /* @__PURE__ */ e.jsxs(Ge, { defaultValue: ["Layout"], type: "multiple", className: "h-full w-full", children: [
2122
- r && /* @__PURE__ */ e.jsx(ye, { section: Zr }),
2123
- l ? /* @__PURE__ */ e.jsx(ye, { section: zr }) : null,
2124
- Ur.map((i) => /* @__PURE__ */ e.jsx(ye, { section: i }, i.heading)),
2125
- /* @__PURE__ */ e.jsx(xs, { section: { heading: "Attributes" } })
2113
+ r && /* @__PURE__ */ e.jsx(ye, { section: Xr }),
2114
+ s ? /* @__PURE__ */ e.jsx(ye, { section: Zr }) : null,
2115
+ zr.map((i) => /* @__PURE__ */ e.jsx(ye, { section: i }, i.heading)),
2116
+ /* @__PURE__ */ e.jsx(ul, { section: { heading: "Attributes" } })
2126
2117
  ] }),
2127
2118
  /* @__PURE__ */ e.jsx("div", { className: "h-60" })
2128
2119
  ] })
2129
2120
  ] })
2130
2121
  );
2131
2122
  }
2132
- const hs = {
2123
+ const gl = {
2133
2124
  px: 1,
2134
2125
  "%": 1,
2135
2126
  em: 100,
@@ -2140,8 +2131,8 @@ const hs = {
2140
2131
  "-": 1,
2141
2132
  deg: 1,
2142
2133
  ms: 0.1
2143
- }, Nl = () => {
2144
- const t = G(), { t: s } = Ye(), [r, l] = I.useState(""), [o, n] = I.useState({
2134
+ }, ks = () => {
2135
+ const t = G(), { t: l } = Ye(), [r, s] = I.useState(""), [o, n] = I.useState({
2145
2136
  onDrag: (a) => a,
2146
2137
  onDragEnd: (a) => a,
2147
2138
  dragStartY: 0,
@@ -2155,10 +2146,10 @@ const hs = {
2155
2146
  const p = !u(o, "negative", !1), g = u(o, "cssProperty", "");
2156
2147
  let c = parseFloat(o.dragStartValue);
2157
2148
  c = _e(c) ? 0 : c;
2158
- let m = hs[o.dragUnit];
2149
+ let m = gl[o.dragUnit];
2159
2150
  (z(g, "scale") || g === "opacity") && (m = 10);
2160
2151
  let x = (o.dragStartY - a.pageY) / m + c;
2161
- p && x < 0 && (x = 0), g === "opacity" && x > 1 && (x = 1), o.onDrag(`${x}`), l(`${x}`);
2152
+ p && x < 0 && (x = 0), g === "opacity" && x > 1 && (x = 1), o.onDrag(`${x}`), s(`${x}`);
2162
2153
  },
2163
2154
  [o],
2164
2155
  50
@@ -2176,7 +2167,7 @@ const hs = {
2176
2167
  }, [o, r, n]);
2177
2168
  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: [
2178
2169
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2179
- /* @__PURE__ */ e.jsx("h1", { children: s("no_block_selected_for_styling") })
2170
+ /* @__PURE__ */ e.jsx("h1", { children: l("no_block_selected_for_styling") })
2180
2171
  ] }) }) : /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsxs(nt.Provider, { value: { setDragData: n }, children: [
2181
2172
  o.dragging ? /* @__PURE__ */ e.jsx(
2182
2173
  "div",
@@ -2186,8 +2177,8 @@ const hs = {
2186
2177
  className: "absolute inset-0 z-30 cursor-row-resize bg-gray-300/10 "
2187
2178
  }
2188
2179
  ) : null,
2189
- /* @__PURE__ */ e.jsxs(Cr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2190
- /* @__PURE__ */ e.jsxs(kr, { className: "mx-1 grid grid-cols-2", children: [
2180
+ /* @__PURE__ */ e.jsxs(wr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2181
+ /* @__PURE__ */ e.jsxs(Cr, { className: "mx-1 grid grid-cols-2", children: [
2191
2182
  /* @__PURE__ */ e.jsx(Ae, { value: "settings", children: "Settings" }),
2192
2183
  /* @__PURE__ */ e.jsx(Ae, { value: "styling", children: "Styling" })
2193
2184
  ] }),
@@ -2196,13 +2187,13 @@ const hs = {
2196
2187
  {
2197
2188
  value: "settings",
2198
2189
  className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
2199
- children: /* @__PURE__ */ e.jsx(Wr, {})
2190
+ children: /* @__PURE__ */ e.jsx(Yr, {})
2200
2191
  }
2201
2192
  ),
2202
- /* @__PURE__ */ e.jsx(De, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(gs, {}) })
2193
+ /* @__PURE__ */ e.jsx(De, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(xl, {}) })
2203
2194
  ] })
2204
2195
  ] }) });
2205
2196
  };
2206
2197
  export {
2207
- Nl as default
2198
+ ks as default
2208
2199
  };