@chaibuilder/sdk 1.2.42 → 1.2.44

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 (83) hide show
  1. package/dist/AddBlocks-Bb-K6Y0Z.cjs +1 -0
  2. package/dist/{AddBlocks--7JKHvJX.js → AddBlocks-QCb-vIta.js} +57 -56
  3. package/dist/CanvasArea-Hqy_21xf.js +1215 -0
  4. package/dist/CanvasArea-xvT325mp.cjs +57 -0
  5. package/dist/{ChaiBuilderEditor-GronwWg6.cjs → ChaiBuilderEditor-AIXWnz29.cjs} +44 -44
  6. package/dist/{ChaiBuilderEditor-f4SJU7kK.js → ChaiBuilderEditor-NnMEdW3k.js} +6627 -6635
  7. package/dist/{CurrentPage-hq3wJX-B.cjs → CurrentPage-n_oOiHx5.cjs} +1 -1
  8. package/dist/{CurrentPage-S5EFVi8y.js → CurrentPage-rkdt2mNr.js} +3 -3
  9. package/dist/{ListTree-un8hNvIi.js → ListTree-PuZP9LQu.js} +3 -3
  10. package/dist/{ListTree-PbmMwEnK.cjs → ListTree-z0FeSAsc.cjs} +1 -1
  11. package/dist/{PagesPanel-2zdTxUbm.cjs → PagesPanel-4ftrFiS0.cjs} +1 -1
  12. package/dist/{PagesPanel-f0XKYnEj.js → PagesPanel-TYArrNU6.js} +4 -4
  13. package/dist/{ProjectPanel-RMEd0gwn.cjs → ProjectPanel-2scMInUn.cjs} +1 -1
  14. package/dist/{ProjectPanel-vbBl5OmU.js → ProjectPanel-qY_Bnqjm.js} +4 -4
  15. package/dist/{Settings-Lsp-FmFS.js → Settings-k9Ll55Wc.js} +965 -892
  16. package/dist/Settings-kbUR5-xt.cjs +1 -0
  17. package/dist/SidePanels-ZHxoiJ7y.cjs +1 -0
  18. package/dist/{SidePanels-zU4GsqbI.js → SidePanels-eOnxPSSw.js} +151 -151
  19. package/dist/{ThemeConfiguration-1rD36g89.js → ThemeConfiguration-TINcg8VX.js} +5 -5
  20. package/dist/{ThemeConfiguration-76oEQ5z0.cjs → ThemeConfiguration-fRsktVs4.cjs} +1 -1
  21. package/dist/{Topbar--M5IjXGt.js → Topbar--KrJ6nJg.js} +2 -2
  22. package/dist/{Topbar-7bRZS3P8.cjs → Topbar-tgFkKz7R.cjs} +1 -1
  23. package/dist/UILibrariesPanel-2HyAEVLE.cjs +1 -0
  24. package/dist/{UILibrariesPanel-EaMt1AzV.js → UILibrariesPanel-sleogb55.js} +55 -56
  25. package/dist/{UnsplashImages-o7mUozj7.js → UnsplashImages-P7_2yEo-.js} +9 -9
  26. package/dist/{UnsplashImages-eq44FmxF.cjs → UnsplashImages-azP_HIqG.cjs} +1 -1
  27. package/dist/{UploadImages-o4teNCqv.cjs → UploadImages-nnszHoZa.cjs} +1 -1
  28. package/dist/{UploadImages-s52Hvpts.js → UploadImages-ovzzQW6b.js} +7 -7
  29. package/dist/{add-page-modal-eoOwcRKz.js → add-page-modal-SmBfx0LH.js} +4 -4
  30. package/dist/{add-page-modal-7FLXbRFp.cjs → add-page-modal-nDBqhemF.cjs} +1 -1
  31. package/dist/atoms-ZOWyNoiC.js +6 -0
  32. package/dist/atoms-a0H_593V.cjs +1 -0
  33. package/dist/{confirm-alert-rFmTdGxh.cjs → confirm-alert-75rfTsgE.cjs} +1 -1
  34. package/dist/{confirm-alert-o0OjZdvp.js → confirm-alert-yipdBkkj.js} +2 -2
  35. package/dist/core.cjs +1 -1
  36. package/dist/core.d.ts +1 -1
  37. package/dist/core.js +2 -2
  38. package/dist/{delete-page-modal-OU79XN8M.js → delete-page-modal-HIul7JBc.js} +3 -3
  39. package/dist/{delete-page-modal-sG2uFkT0.cjs → delete-page-modal-lO-dULGW.cjs} +1 -1
  40. package/dist/email-blocks.cjs +1 -1
  41. package/dist/email-blocks.js +30 -30
  42. package/dist/email.cjs +1 -1
  43. package/dist/email.d.ts +1 -1
  44. package/dist/email.js +2 -2
  45. package/dist/empty-slot-Lsxjts7Q.js +6 -0
  46. package/dist/empty-slot-Sy930lX6.cjs +1 -0
  47. package/dist/{form--h34bK4z.js → form-cZPoXqTP.js} +5 -5
  48. package/dist/{form-SuV0Z9nJ.cjs → form-yq_mbR58.cjs} +1 -1
  49. package/dist/{index-7hLL3kv4.js → index-Vu40oRWp.js} +2 -2
  50. package/dist/{index-3mF2lq-B.cjs → index-q_bEEzdK.cjs} +1 -1
  51. package/dist/lib.cjs +1 -1
  52. package/dist/lib.js +3 -3
  53. package/dist/{page-viewer-9-Dy66-a.cjs → page-viewer-3ZqrDjrz.cjs} +1 -1
  54. package/dist/{page-viewer-tfXRwkWz.js → page-viewer-ZOVAaE9q.js} +4 -4
  55. package/dist/{project-general-setting-ZjAN2VZX.js → project-general-setting-2iNlm_kN.js} +8 -8
  56. package/dist/{project-general-setting-ZbNwglNP.cjs → project-general-setting-IIxWGrU2.cjs} +1 -1
  57. package/dist/{project-seo-setting-vqWoo5Ev.cjs → project-seo-setting-46PdN9FR.cjs} +1 -1
  58. package/dist/{project-seo-setting-gAXZ15Wb.js → project-seo-setting-FX0cbkrO.js} +3 -3
  59. package/dist/{single-page-detail-ISRJ-Ebt.js → single-page-detail-4v8ojQss.js} +5 -5
  60. package/dist/{single-page-detail-a4nAhK0N.cjs → single-page-detail-MsBTVx9h.cjs} +1 -1
  61. package/dist/studio.cjs +1 -1
  62. package/dist/studio.d.ts +1 -1
  63. package/dist/studio.js +3 -3
  64. package/dist/style.css +1 -1
  65. package/dist/ui.cjs +1 -1
  66. package/dist/ui.d.ts +3 -3
  67. package/dist/ui.js +50 -50
  68. package/dist/{useCanvasSettings-EyxD8eas.cjs → useCanvasSettings-A7Qj0z4L.cjs} +1 -1
  69. package/dist/{useCanvasSettings-fsSISbZ6.js → useCanvasSettings-QH5zCmxD.js} +1 -1
  70. package/dist/utils-K3Zk762G.cjs +1 -0
  71. package/dist/{Class-6Hz2KzYb.js → utils-iMv3T4WT.js} +16 -15
  72. package/dist/web-blocks.cjs +4 -4
  73. package/dist/web-blocks.js +237 -238
  74. package/package.json +2 -2
  75. package/dist/AddBlocks-HZaa1NM6.cjs +0 -1
  76. package/dist/CanvasArea-CTmYdaUo.cjs +0 -55
  77. package/dist/CanvasArea-myZvxQCj.js +0 -1199
  78. package/dist/Class-Zc8hpE7f.cjs +0 -1
  79. package/dist/Settings-UqeNroki.cjs +0 -1
  80. package/dist/SidePanels-DimF3tJV.cjs +0 -1
  81. package/dist/UILibrariesPanel-1F_Kcnkm.cjs +0 -1
  82. package/dist/empty-slot-ZBlsQi6m.js +0 -15
  83. package/dist/empty-slot-nzYOgZuS.cjs +0 -1
@@ -1,15 +1,15 @@
1
1
  import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
- import { KeyboardIcon as J, PlusIcon as K, Component2Icon as Z } from "@radix-ui/react-icons";
3
- import f, { useState as h, useEffect as W, useMemo as Y, memo as $, lazy as j, Suspense as N } from "react";
4
- import { useAtom as O } from "jotai";
5
- import { filter as y, map as E, isNull as q, find as G, isEmpty as Q, each as X, get as ee } from "lodash-es";
6
- import { Z as H, _ as U, $ as F, a0 as R, a1 as se, a2 as re, A as ae, a as le, b as ie, c as te, d as oe, e as ne, f as ce, g as de, a3 as me, a4 as xe, a5 as he, a6 as ue, a7 as pe, a8 as fe, a9 as je, aa as z, ab as ve, ac as ge, ad as be, ae as Ne, af as B, h as w, ag as ye, B as x, ah as L, ai as V, aj as I, ak as T, al as _ } from "./ChaiBuilderEditor-f4SJU7kK.js";
7
- import { ListTreeIcon as A, PaletteIcon as we, DatabaseIcon as ke } from "lucide-react";
8
- import { getChaiDataProviders as Ce } from "@chaibuilder/runtime";
2
+ import { KeyboardIcon as Z, PlusIcon as B, Component2Icon as W } from "@radix-ui/react-icons";
3
+ import f, { useState as u, useEffect as Y, useMemo as $, memo as q, lazy as j, Suspense as N } from "react";
4
+ import { useAtom as H } from "jotai";
5
+ import { filter as y, map as E, isNull as G, find as Q, isEmpty as X, values as ee, each as se, get as re } from "lodash-es";
6
+ import { Z as U, _ as F, $ as R, a0 as J, a1 as ae, a2 as le, A as ie, a as te, b as oe, c as ne, d as ce, e as de, f as me, g as xe, a3 as ue, a4 as he, a5 as pe, a6 as fe, a7 as je, a8 as ve, a9 as ge, aa as z, ab as be, ac as Ne, ad as ye, ae as we, af as L, h as w, ag as ke, B as x, ah as V, ai as I, aj as M, ak as A, al as P } from "./ChaiBuilderEditor-NnMEdW3k.js";
7
+ import { ListTreeIcon as S, PaletteIcon as Ce, DatabaseIcon as De } from "lucide-react";
8
+ import { getChaiDataProviders as Te, useChaiBlocks as _e } from "@chaibuilder/runtime";
9
9
  import { useTranslation as v } from "react-i18next";
10
- import { J as De, a as Te, d as _e } from "./index-e0c8PmRQ.js";
11
- import { O as i } from "./STRINGS--j49GZJP.js";
12
- import { c as Ae } from "./Functions-7jnEwJyw.js";
10
+ import { J as Ae, a as Pe, d as Se } from "./index-e0c8PmRQ.js";
11
+ import { O as t } from "./STRINGS--j49GZJP.js";
12
+ import { c as Ke } from "./Functions-7jnEwJyw.js";
13
13
  import "./_commonjsHelpers-UyOWmZb0.js";
14
14
  import "clsx";
15
15
  import "react-dom";
@@ -19,10 +19,10 @@ import "i18next";
19
19
  import "flagged";
20
20
  import "@react-hookz/web";
21
21
  import "./MODIFIERS-cBT31iqE.js";
22
+ import "./utils-iMv3T4WT.js";
23
+ import "tailwind-merge";
22
24
  import "@radix-ui/react-toggle";
23
25
  import "class-variance-authority";
24
- import "./Class-6Hz2KzYb.js";
25
- import "tailwind-merge";
26
26
  import "@radix-ui/react-switch";
27
27
  import "@radix-ui/react-slot";
28
28
  import "@radix-ui/react-accordion";
@@ -43,26 +43,26 @@ import "@radix-ui/react-context-menu";
43
43
  import "react-icons-picker";
44
44
  import "react-quill";
45
45
  import "react-hotkeys-hook";
46
- const Pe = ({ provider: r, onClose: t }) => {
47
- const { t: a } = v(), [l, u] = h(null);
48
- return W(() => {
49
- r && (r.mockFn ? r.mockFn : r.dataFn)().then((c) => u(c));
50
- }, [r]), r ? /* @__PURE__ */ e.jsx(H, { onOpenChange: (d) => d ? "" : t(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(U, { children: [
51
- /* @__PURE__ */ e.jsxs(F, { children: [
52
- /* @__PURE__ */ e.jsxs(R, { children: [
53
- a("data_provider"),
46
+ const Be = ({ provider: s, onClose: o }) => {
47
+ const { t: l } = v(), [i, h] = u(null);
48
+ return Y(() => {
49
+ s && (s.mockFn ? s.mockFn : s.dataFn)().then((c) => h(c));
50
+ }, [s]), s ? /* @__PURE__ */ e.jsx(U, { onOpenChange: (d) => d ? "" : o(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(F, { children: [
51
+ /* @__PURE__ */ e.jsxs(R, { children: [
52
+ /* @__PURE__ */ e.jsxs(J, { children: [
53
+ l("data_provider"),
54
54
  ": ",
55
- r.name
55
+ s.name
56
56
  ] }),
57
- /* @__PURE__ */ e.jsx(se, { children: r.description })
57
+ /* @__PURE__ */ e.jsx(ae, { children: s.description })
58
58
  ] }),
59
- /* @__PURE__ */ e.jsx(re, { children: /* @__PURE__ */ e.jsx(
60
- De,
59
+ /* @__PURE__ */ e.jsx(le, { children: /* @__PURE__ */ e.jsx(
60
+ Ae,
61
61
  {
62
- data: l,
63
- shouldExpandNode: Te,
62
+ data: i,
63
+ shouldExpandNode: Pe,
64
64
  style: {
65
- ..._e,
65
+ ...Se,
66
66
  container: "max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",
67
67
  stringValue: "text-orange-600",
68
68
  label: "text-green-900 font-semibold pr-1 tracking-wider"
@@ -71,78 +71,78 @@ const Pe = ({ provider: r, onClose: t }) => {
71
71
  ) })
72
72
  ] }) }) : null;
73
73
  };
74
- function Se({
75
- children: r,
76
- name: t,
77
- onRemove: a
74
+ function Ee({
75
+ children: s,
76
+ name: o,
77
+ onRemove: l
78
78
  }) {
79
- const { t: l } = v();
80
- return /* @__PURE__ */ e.jsxs(ae, { children: [
81
- /* @__PURE__ */ e.jsx(le, { asChild: !0, children: r }),
82
- /* @__PURE__ */ e.jsxs(ie, { children: [
83
- /* @__PURE__ */ e.jsxs(te, { children: [
79
+ const { t: i } = v();
80
+ return /* @__PURE__ */ e.jsxs(ie, { children: [
81
+ /* @__PURE__ */ e.jsx(te, { asChild: !0, children: s }),
82
+ /* @__PURE__ */ e.jsxs(oe, { children: [
83
+ /* @__PURE__ */ e.jsxs(ne, { children: [
84
84
  /* @__PURE__ */ e.jsx(
85
- oe,
85
+ ce,
86
86
  {
87
- dangerouslySetInnerHTML: { __html: l("remove_provider_confirmation").replace("{name}", t) }
87
+ dangerouslySetInnerHTML: { __html: i("remove_provider_confirmation").replace("{name}", o) }
88
88
  }
89
89
  ),
90
- /* @__PURE__ */ e.jsx(ne, { children: l("remove_provider_warning") })
90
+ /* @__PURE__ */ e.jsx(de, { children: i("remove_provider_warning") })
91
91
  ] }),
92
- /* @__PURE__ */ e.jsxs(ce, { children: [
93
- /* @__PURE__ */ e.jsx(de, { children: l("cancel") }),
94
- /* @__PURE__ */ e.jsx(me, { onClick: a, className: "bg-red-600 hover:bg-red-700", children: l("remove") })
92
+ /* @__PURE__ */ e.jsxs(me, { children: [
93
+ /* @__PURE__ */ e.jsx(xe, { children: i("cancel") }),
94
+ /* @__PURE__ */ e.jsx(ue, { onClick: l, className: "bg-red-600 hover:bg-red-700", children: i("remove") })
95
95
  ] })
96
96
  ] })
97
97
  ] });
98
98
  }
99
- const Ke = () => {
100
- const { t: r } = v(), t = Y(() => Ce(), []), [a, l] = xe(), [, u] = O(he), [d, c] = h(
101
- y(t, (s) => E(a, "providerKey").includes(s.providerKey))
102
- ), [k, p] = h(""), [S, g] = h(null), b = y(
103
- t.map((s) => E(d, "providerKey").includes(s.providerKey) ? null : { value: s.providerKey, label: s.name }),
104
- (s) => !q(s)
105
- ), o = (s) => {
106
- const n = G(t, { providerKey: s });
107
- c((m) => [...m, n]), l((m) => [...m, { providerKey: n.providerKey, args: {} }]), p(""), u("UNSAVED");
108
- }, C = (s) => {
109
- c((n) => y(n, (m) => m.providerKey !== s.providerKey)), l((n) => y(n, (m) => m.providerKey !== s.providerKey)), u("UNSAVED");
110
- }, D = (s) => g(s);
111
- return Q(t) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
112
- r("no_data_providers"),
99
+ const ze = () => {
100
+ const { t: s } = v(), o = $(() => Te(), []), [l, i] = he(), [, h] = H(pe), [d, c] = u(
101
+ y(o, (r) => E(l, "providerKey").includes(r.providerKey))
102
+ ), [k, p] = u(""), [C, g] = u(null), D = y(
103
+ o.map((r) => E(d, "providerKey").includes(r.providerKey) ? null : { value: r.providerKey, label: r.name }),
104
+ (r) => !G(r)
105
+ ), T = (r) => {
106
+ const m = Q(o, { providerKey: r });
107
+ c((a) => [...a, m]), i((a) => [...a, { providerKey: m.providerKey, args: {} }]), p(""), h("UNSAVED");
108
+ }, b = (r) => {
109
+ c((m) => y(m, (a) => a.providerKey !== r.providerKey)), i((m) => y(m, (a) => a.providerKey !== r.providerKey)), h("UNSAVED");
110
+ }, n = (r) => g(r);
111
+ return X(o) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
112
+ s("no_data_providers"),
113
113
  /* @__PURE__ */ e.jsx("br", {}),
114
- /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: r("learn_more") })
114
+ /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: s("learn_more") })
115
115
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-1", children: [
116
116
  /* @__PURE__ */ e.jsx("br", {}),
117
- /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx("p", { className: "mb-1.5 text-xs text-gray-500", children: r("add_data_providers") }) }),
118
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(ue, { value: k, onValueChange: (s) => o(s), children: [
119
- /* @__PURE__ */ e.jsx(pe, { className: "w-full", children: /* @__PURE__ */ e.jsx(fe, { placeholder: r("select_provider") }) }),
120
- /* @__PURE__ */ e.jsxs(je, { children: [
121
- /* @__PURE__ */ e.jsx(z, { value: "", children: r("choose") }),
122
- b.map((s) => /* @__PURE__ */ e.jsx(z, { value: s.value, children: s.label }, s.value))
117
+ /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx("p", { className: "mb-1.5 text-xs text-gray-500", children: s("add_data_providers") }) }),
118
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(fe, { value: k, onValueChange: (r) => T(r), children: [
119
+ /* @__PURE__ */ e.jsx(je, { className: "w-full", children: /* @__PURE__ */ e.jsx(ve, { placeholder: s("select_provider") }) }),
120
+ /* @__PURE__ */ e.jsxs(ge, { children: [
121
+ /* @__PURE__ */ e.jsx(z, { value: "", children: s("choose") }),
122
+ D.map((r) => /* @__PURE__ */ e.jsx(z, { value: r.value, children: r.label }, r.value))
123
123
  ] })
124
124
  ] }) }),
125
125
  /* @__PURE__ */ e.jsx("br", {}),
126
126
  /* @__PURE__ */ e.jsxs("div", { className: `border-t ${d.length ? "block" : "hidden"}`, children: [
127
127
  /* @__PURE__ */ e.jsxs("p", { className: "flex-1 pb-1.5 pt-4 text-xs font-medium text-gray-500", children: [
128
- r("page_data_providers"),
128
+ s("page_data_providers"),
129
129
  ":"
130
130
  ] }),
131
- /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: d.map((s) => /* @__PURE__ */ e.jsxs(
131
+ /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: d.map((r) => /* @__PURE__ */ e.jsxs(
132
132
  "div",
133
133
  {
134
134
  className: "w-full rounded-lg border bg-card text-card-foreground shadow-sm",
135
135
  "data-v0-t": "card",
136
136
  children: [
137
137
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-1.5 px-4 pt-4", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e.jsxs("div", { children: [
138
- /* @__PURE__ */ e.jsx("h3", { className: "font-medium leading-4", children: s.name }),
139
- /* @__PURE__ */ e.jsx("p", { className: "pt-1 text-xs text-gray-400", children: s.description })
138
+ /* @__PURE__ */ e.jsx("h3", { className: "font-medium leading-4", children: r.name }),
139
+ /* @__PURE__ */ e.jsx("p", { className: "pt-1 text-xs text-gray-400", children: r.description })
140
140
  ] }) }) }),
141
141
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between p-2 py-2", children: [
142
142
  /* @__PURE__ */ e.jsxs(
143
143
  "button",
144
144
  {
145
- onClick: () => D(s),
145
+ onClick: () => n(r),
146
146
  className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-blue-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
147
147
  children: [
148
148
  /* @__PURE__ */ e.jsxs(
@@ -164,11 +164,11 @@ const Ke = () => {
164
164
  ]
165
165
  }
166
166
  ),
167
- r("view_data")
167
+ s("view_data")
168
168
  ]
169
169
  }
170
170
  ),
171
- /* @__PURE__ */ e.jsx(Se, { onRemove: () => C(s), name: s.name, children: /* @__PURE__ */ e.jsxs("button", { className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-red-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", children: [
171
+ /* @__PURE__ */ e.jsx(Ee, { onRemove: () => b(r), name: r.name, children: /* @__PURE__ */ e.jsxs("button", { className: "inline-flex h-9 items-center justify-center rounded-md px-3 text-xs font-medium text-red-500 underline-offset-4 ring-offset-background transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", children: [
172
172
  /* @__PURE__ */ e.jsxs(
173
173
  "svg",
174
174
  {
@@ -189,146 +189,146 @@ const Ke = () => {
189
189
  ]
190
190
  }
191
191
  ),
192
- r("remove")
192
+ s("remove")
193
193
  ] }) })
194
194
  ] })
195
195
  ]
196
196
  },
197
- s.providerKey
197
+ r.providerKey
198
198
  )) }),
199
- /* @__PURE__ */ e.jsx(Pe, { onClose: () => g(null), provider: S })
199
+ /* @__PURE__ */ e.jsx(Be, { onClose: () => g(null), provider: C })
200
200
  ] })
201
201
  ] });
202
- }, Ee = $(() => {
203
- const { t: r } = v(), t = {
202
+ }, Le = q(() => {
203
+ const { t: s } = v(), o = {
204
204
  "ctrl + Z": "Undo",
205
205
  "ctrl + Y": "Redo",
206
206
  "ctrl + D": "Duplicate"
207
- }, a = {
207
+ }, l = {
208
208
  // "ctrl + /": "Rename block",
209
209
  "ctrl + S": "Save page",
210
210
  esc: "Deselect blocks",
211
211
  del: "Delete block"
212
212
  };
213
- return /* @__PURE__ */ e.jsxs(H, { children: [
214
- /* @__PURE__ */ e.jsx(ve, { children: /* @__PURE__ */ e.jsxs(ge, { children: [
215
- /* @__PURE__ */ e.jsx(be, { children: /* @__PURE__ */ e.jsx("div", { className: "flex w-10 items-center justify-center", children: /* @__PURE__ */ e.jsx(J, {}) }) }),
216
- /* @__PURE__ */ e.jsx(Ne, { children: /* @__PURE__ */ e.jsx("p", { children: r("Keyboard shortcuts") }) })
213
+ return /* @__PURE__ */ e.jsxs(U, { children: [
214
+ /* @__PURE__ */ e.jsx(be, { children: /* @__PURE__ */ e.jsxs(Ne, { children: [
215
+ /* @__PURE__ */ e.jsx(ye, { children: /* @__PURE__ */ e.jsx("div", { className: "flex w-10 items-center justify-center", children: /* @__PURE__ */ e.jsx(Z, {}) }) }),
216
+ /* @__PURE__ */ e.jsx(we, { children: /* @__PURE__ */ e.jsx("p", { children: s("Keyboard shortcuts") }) })
217
217
  ] }) }),
218
- /* @__PURE__ */ e.jsxs(U, { className: "sm:max-w-[525px]", children: [
219
- /* @__PURE__ */ e.jsx(F, { children: /* @__PURE__ */ e.jsx(R, { children: r("Keyboard shortcuts") }) }),
218
+ /* @__PURE__ */ e.jsxs(F, { className: "sm:max-w-[525px]", children: [
219
+ /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(J, { children: s("Keyboard shortcuts") }) }),
220
220
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2", children: [
221
- /* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(t).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
222
- /* @__PURE__ */ e.jsx(B, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: r(l) }),
223
- /* @__PURE__ */ e.jsx("div", { children: r(t[l]) })
224
- ] }, l)) }),
225
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(a).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
226
- /* @__PURE__ */ e.jsx(B, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: r(l) }),
227
- /* @__PURE__ */ e.jsx("div", { children: r(a[l]) })
228
- ] }, l)) })
221
+ /* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(o).map((i) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
222
+ /* @__PURE__ */ e.jsx(L, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(i) }),
223
+ /* @__PURE__ */ e.jsx("div", { children: s(o[i]) })
224
+ ] }, i)) }),
225
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(l).map((i) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
226
+ /* @__PURE__ */ e.jsx(L, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(i) }),
227
+ /* @__PURE__ */ e.jsx("div", { children: s(l[i]) })
228
+ ] }, i)) })
229
229
  ] }) })
230
230
  ] })
231
231
  ] });
232
- }), ze = j(() => import("./AddBlocks--7JKHvJX.js")), P = j(() => import("./ListTree-un8hNvIi.js")), Be = j(() => import("./ThemeConfiguration-1rD36g89.js")), Le = j(() => import("./ChaiBuilderEditor-f4SJU7kK.js").then((r) => r.cp)), Ve = j(() => import("./UILibrariesPanel-EaMt1AzV.js"));
233
- let M = null;
234
- const As = () => {
235
- const r = w("sideBarComponents.top", []), t = w("sideBarComponents.bottom", []), [a, l] = O(ye), [u, d] = h(a), [c, k] = h(null), { t: p } = v(), g = w("uiLibraries", []).length > 0, b = {
236
- "add-blocks": ze,
237
- [i]: P,
238
- "theme-configuration": Be,
239
- images: Le,
240
- "ui-libraries": Ve
232
+ }), Ve = j(() => import("./AddBlocks-QCb-vIta.js")), K = j(() => import("./ListTree-PuZP9LQu.js")), Ie = j(() => import("./ThemeConfiguration-TINcg8VX.js")), Me = j(() => import("./ChaiBuilderEditor-NnMEdW3k.js").then((s) => s.cq)), Oe = j(() => import("./UILibrariesPanel-sleogb55.js"));
233
+ let O = null;
234
+ const Ks = () => {
235
+ const s = w("sideBarComponents.top", []), o = w("sideBarComponents.bottom", []), [l, i] = H(ke), [h, d] = u(l), [c, k] = u(null), { t: p } = v(), C = w("uiLibraries", []), g = _e(), D = ee(g).find((a) => a.category === "custom") !== void 0, T = C.length > 0 || D, b = {
236
+ "add-blocks": Ve,
237
+ [t]: K,
238
+ "theme-configuration": Ie,
239
+ images: Me,
240
+ "ui-libraries": Oe
241
241
  };
242
- X(r, ({ name: s, panel: n }) => {
243
- b[s] = n;
242
+ se(s, ({ name: a, panel: _ }) => {
243
+ b[a] = _;
244
244
  });
245
- const o = (s) => {
246
- clearTimeout(M), a !== i && s === i ? M = setTimeout(() => l(i), 500) : d(s), l(s);
247
- }, C = w("dataBindingSupport", !1);
248
- function D() {
249
- const s = setTimeout(() => {
250
- c && (o(i), clearTimeout(c));
245
+ const n = (a) => {
246
+ clearTimeout(O), l !== t && a === t ? O = setTimeout(() => i(t), 500) : d(a), i(a);
247
+ }, r = w("dataBindingSupport", !1);
248
+ function m() {
249
+ const a = setTimeout(() => {
250
+ c && (n(t), clearTimeout(c));
251
251
  }, 500);
252
- k(s);
252
+ k(a);
253
253
  }
254
254
  return /* @__PURE__ */ e.jsxs("div", { className: "relative flex", children: [
255
- a !== i ? /* @__PURE__ */ e.jsx(
255
+ l !== t ? /* @__PURE__ */ e.jsx(
256
256
  "div",
257
257
  {
258
- onMouseEnter: D,
259
- onClick: () => o(i),
258
+ onMouseEnter: m,
259
+ onClick: () => n(t),
260
260
  className: "fixed inset-0 z-[50] bg-black/20"
261
261
  }
262
262
  ) : null,
263
263
  /* @__PURE__ */ e.jsxs("div", { className: "z-[100] flex h-full w-fit flex-col items-center justify-between border-b border-r border-border bg-background pt-2", children: [
264
264
  /* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2", children: [
265
- g ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 rounded-md bg-gray-200 p-1", children: [
265
+ T ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 rounded-md bg-gray-200 p-1", children: [
266
266
  /* @__PURE__ */ e.jsx(
267
267
  x,
268
268
  {
269
- onClick: () => o("add-blocks"),
269
+ onClick: () => n("add-blocks"),
270
270
  size: "sm",
271
- variant: a === "add-blocks" ? "default" : "outline",
272
- children: /* @__PURE__ */ e.jsx(K, { className: "text-xl" })
271
+ variant: l === "add-blocks" ? "default" : "outline",
272
+ children: /* @__PURE__ */ e.jsx(B, { className: "text-xl" })
273
273
  }
274
274
  ),
275
275
  /* @__PURE__ */ e.jsx(
276
276
  x,
277
277
  {
278
- onClick: () => o("ui-libraries"),
278
+ onClick: () => n("ui-libraries"),
279
279
  size: "sm",
280
- variant: a === "ui-libraries" ? "default" : "outline",
281
- children: /* @__PURE__ */ e.jsx(Z, { className: "text-xl" })
280
+ variant: l === "ui-libraries" ? "default" : "outline",
281
+ children: /* @__PURE__ */ e.jsx(W, { className: "text-xl" })
282
282
  }
283
283
  )
284
284
  ] }) : /* @__PURE__ */ e.jsx(
285
285
  x,
286
286
  {
287
- onClick: () => o("add-blocks"),
287
+ onClick: () => n("add-blocks"),
288
288
  size: "sm",
289
- variant: a === "add-blocks" ? "default" : "outline",
290
- children: /* @__PURE__ */ e.jsx(K, { className: "text-xl" })
289
+ variant: l === "add-blocks" ? "default" : "outline",
290
+ children: /* @__PURE__ */ e.jsx(B, { className: "text-xl" })
291
291
  }
292
292
  ),
293
293
  /* @__PURE__ */ e.jsx(
294
294
  x,
295
295
  {
296
- onClick: () => o(i),
296
+ onClick: () => n(t),
297
297
  size: "sm",
298
- variant: a === i ? "default" : "outline",
299
- children: /* @__PURE__ */ e.jsx(A, { className: "w-4" })
298
+ variant: l === t ? "default" : "outline",
299
+ children: /* @__PURE__ */ e.jsx(S, { className: "w-4" })
300
300
  }
301
301
  ),
302
302
  /* @__PURE__ */ e.jsx(
303
303
  x,
304
304
  {
305
- onClick: () => o("theme-configuration"),
305
+ onClick: () => n("theme-configuration"),
306
306
  size: "sm",
307
- variant: a === "theme-configuration" ? "default" : "outline",
308
- children: /* @__PURE__ */ e.jsx(we, { className: "w-4 max-w-[40px] text-xs" })
307
+ variant: l === "theme-configuration" ? "default" : "outline",
308
+ children: /* @__PURE__ */ e.jsx(Ce, { className: "w-4 max-w-[40px] text-xs" })
309
309
  }
310
310
  ),
311
311
  f.Children.toArray(
312
- r.map(({ name: s, icon: n }) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(L, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
312
+ s.map(({ name: a, icon: _ }) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(V, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
313
313
  x,
314
314
  {
315
- onClick: () => o(s),
315
+ onClick: () => n(a),
316
316
  size: "sm",
317
317
  className: "w-10",
318
- variant: a === s ? "default" : "outline",
319
- children: /* @__PURE__ */ e.jsx(n, {})
318
+ variant: l === a ? "default" : "outline",
319
+ children: /* @__PURE__ */ e.jsx(_, {})
320
320
  }
321
321
  ) }))
322
322
  )
323
323
  ] }),
324
324
  /* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2 pb-2", children: [
325
- /* @__PURE__ */ e.jsx(Ee, {}),
325
+ /* @__PURE__ */ e.jsx(Le, {}),
326
326
  f.Children.toArray(
327
- t.map((s) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(L, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(s, {}) }))
327
+ o.map((a) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(V, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(a, {}) }))
328
328
  )
329
329
  ] })
330
330
  ] }),
331
- a !== i ? /* @__PURE__ */ e.jsx(
331
+ l !== t ? /* @__PURE__ */ e.jsx(
332
332
  "div",
333
333
  {
334
334
  className: "absolute left-14 z-[50] h-[100vh] w-fit translate-x-0 border-r bg-background transition-all duration-500 ease-in-out",
@@ -343,13 +343,13 @@ const As = () => {
343
343
  children: /* @__PURE__ */ e.jsx(
344
344
  "div",
345
345
  {
346
- className: Ae(
346
+ className: Ke(
347
347
  "relative z-[100] h-full max-h-full overflow-y-auto overflow-x-hidden border-r bg-background p-1 shadow-md"
348
348
  ),
349
349
  onMouseEnter: () => {
350
350
  c && clearTimeout(c);
351
351
  },
352
- children: f.createElement(ee(b, a, () => /* @__PURE__ */ e.jsx("div", {})))
352
+ children: f.createElement(re(b, l, () => /* @__PURE__ */ e.jsx("div", {})))
353
353
  }
354
354
  )
355
355
  }
@@ -364,32 +364,32 @@ const As = () => {
364
364
  /* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" }),
365
365
  /* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" })
366
366
  ] }),
367
- children: C ? /* @__PURE__ */ e.jsxs(V, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
368
- /* @__PURE__ */ e.jsxs(I, { className: "mx-1 grid h-10 grid-cols-2", children: [
369
- /* @__PURE__ */ e.jsxs(T, { value: i, children: [
370
- /* @__PURE__ */ e.jsx(A, { className: "mr-2 h-3" }),
367
+ children: r ? /* @__PURE__ */ e.jsxs(I, { defaultValue: t, className: "flex h-full w-full flex-col py-1", children: [
368
+ /* @__PURE__ */ e.jsxs(M, { className: "mx-1 grid h-10 grid-cols-2", children: [
369
+ /* @__PURE__ */ e.jsxs(A, { value: t, children: [
370
+ /* @__PURE__ */ e.jsx(S, { className: "mr-2 h-3" }),
371
371
  " ",
372
372
  p("Outline")
373
373
  ] }),
374
- /* @__PURE__ */ e.jsxs(T, { value: "data-provider", children: [
375
- /* @__PURE__ */ e.jsx(ke, { className: "mr-2 w-3" }),
374
+ /* @__PURE__ */ e.jsxs(A, { value: "data-provider", children: [
375
+ /* @__PURE__ */ e.jsx(De, { className: "mr-2 w-3" }),
376
376
  p("Data")
377
377
  ] })
378
378
  ] }),
379
- /* @__PURE__ */ e.jsx(_, { value: i, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: f.createElement(P) }),
380
- /* @__PURE__ */ e.jsx(_, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Ke, {}) })
381
- ] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(V, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
382
- /* @__PURE__ */ e.jsx(I, { className: "mx-1 grid h-10 grid-cols-1", children: /* @__PURE__ */ e.jsxs(T, { value: i, children: [
383
- /* @__PURE__ */ e.jsx(A, { className: "mr-2 h-3" }),
379
+ /* @__PURE__ */ e.jsx(P, { value: t, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: f.createElement(K) }),
380
+ /* @__PURE__ */ e.jsx(P, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(ze, {}) })
381
+ ] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(I, { defaultValue: t, className: "flex h-full w-full flex-col py-1", children: [
382
+ /* @__PURE__ */ e.jsx(M, { className: "mx-1 grid h-10 grid-cols-1", children: /* @__PURE__ */ e.jsxs(A, { value: t, children: [
383
+ /* @__PURE__ */ e.jsx(S, { className: "mr-2 h-3" }),
384
384
  " ",
385
385
  p("Outline")
386
386
  ] }) }),
387
387
  /* @__PURE__ */ e.jsx(
388
- _,
388
+ P,
389
389
  {
390
- value: i,
390
+ value: t,
391
391
  className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",
392
- children: f.createElement(P)
392
+ children: f.createElement(K)
393
393
  }
394
394
  )
395
395
  ] }) })
@@ -398,5 +398,5 @@ const As = () => {
398
398
  ] });
399
399
  };
400
400
  export {
401
- As as default
401
+ Ks as default
402
402
  };
@@ -2,7 +2,7 @@ import { j as t } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import * as c from "react";
3
3
  import j from "@rjsf/validator-ajv8";
4
4
  import k from "@rjsf/core";
5
- import { h as w, F as M, bw as T } from "./ChaiBuilderEditor-f4SJU7kK.js";
5
+ import { h as M, F as T, bx as w } from "./ChaiBuilderEditor-NnMEdW3k.js";
6
6
  import { y as f, c as D, f as a } from "./controls-VTdJhdSz.js";
7
7
  import { debounce as P, noop as R, isEqual as F } from "lodash-es";
8
8
  import { useTranslation as L } from "react-i18next";
@@ -20,9 +20,9 @@ import "tailwind-merge";
20
20
  import "@chaibuilder/runtime";
21
21
  import "@react-hookz/web";
22
22
  import "./MODIFIERS-cBT31iqE.js";
23
+ import "./utils-iMv3T4WT.js";
23
24
  import "@radix-ui/react-toggle";
24
25
  import "class-variance-authority";
25
- import "./Class-6Hz2KzYb.js";
26
26
  import "@radix-ui/react-switch";
27
27
  import "@radix-ui/react-slot";
28
28
  import "@radix-ui/react-accordion";
@@ -109,8 +109,8 @@ const E = ({ value: u, onChange: e, id: p, onBlur: m }) => {
109
109
  { title: "Suranna", value: "Suranna" },
110
110
  { title: "Bebas Neue", value: "Bebas Neue" },
111
111
  { title: "Manrope", value: "Manrope" }
112
- ], Mt = () => {
113
- const u = w("onSaveBrandingOptions", R), [e, p] = M(), [m] = T(), i = c.useRef(e), { t: d } = L();
112
+ ], Tt = () => {
113
+ const u = M("onSaveBrandingOptions", R), [e, p] = T(), [m] = w(), i = c.useRef(e), { t: d } = L();
114
114
  c.useEffect(() => () => {
115
115
  F(e, i.current) || u(i.current);
116
116
  }, []);
@@ -192,5 +192,5 @@ const E = ({ value: u, onChange: e, id: p, onBlur: m }) => {
192
192
  ] });
193
193
  };
194
194
  export {
195
- Mt as default
195
+ Tt as default
196
196
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-Z_BpKhVy.cjs"),R=require("react"),N=require("@rjsf/validator-ajv8"),E=require("@rjsf/core"),p=require("./ChaiBuilderEditor-GronwWg6.cjs"),r=require("./controls-jWJDao88.cjs"),f=require("lodash-es"),k=require("react-i18next");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("clsx");require("react-dom");require("@radix-ui/react-scroll-area");require("@floating-ui/react-dom");require("jotai");require("i18next");require("flagged");require("./STRINGS-gPz7CUOk.cjs");require("./Functions-N3yhPYKY.cjs");require("tailwind-merge");require("@chaibuilder/runtime");require("@react-hookz/web");require("./MODIFIERS-YPHRtwrM.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-Zc8hpE7f.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-quill");require("react-hotkeys-hook");require("lucide-react");function M(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const m=M(R),P=({value:t,onChange:e,id:i,onBlur:l})=>{const n=f.debounce(e,200),v=u=>n(u.target.value);return a.jsxRuntimeExports.jsx("div",{className:"mt-1.5 flex items-center gap-x-3",children:a.jsxRuntimeExports.jsx("div",{className:"flex w-3/5 flex-col",children:a.jsxRuntimeExports.jsx("input",{type:"color",className:"text-xs p-0",value:t,onBlur:({target:{value:u}})=>l(i,u),onChange:v})})})},x=[{title:"Roboto",value:"Roboto"},{title:"Open Sans",value:"Open Sans"},{title:"Montserrat",value:"Montserrat"},{title:"Lato",value:"Lato"},{title:"Poppins",value:"Poppins"},{title:"Oswald",value:"Oswald"},{title:"Raleway",value:"Raleway"},{title:"Ubuntu",value:"Ubuntu"},{title:"Nunito",value:"Nunito"},{title:"Merriweather",value:"Merriweather"},{title:"Nunito Sans",value:"Nunito Sans"},{title:"Playfair Display",value:"Playfair Display"},{title:"Rubik",value:"Rubik"},{title:"Inter",value:"Inter"},{title:"Lora",value:"Lora"},{title:"Kanit",value:"Kanit"},{title:"Fira Sans",value:"Fira Sans"},{title:"Hind",value:"Hind"},{title:"Quicksand",value:"Quicksand"},{title:"Mulish",value:"Mulish"},{title:"Barlow",value:"Barlow"},{title:"Inconsolata",value:"Inconsolata"},{title:"Titillium Web",value:"Titillium Web"},{title:"Heebo",value:"Heebo"},{title:"IBM Plex Sans",value:"IBM Plex Sans"},{title:"DM Sans",value:"DM Sans"},{title:"Nanum Gothic",value:"Nanum Gothic"},{title:"Karla",value:"Karla"},{title:"Arimo",value:"Arimo"},{title:"Cabin",value:"Cabin"},{title:"Oxygen",value:"Oxygen"},{title:"Overpass",value:"Overpass"},{title:"Assistant",value:"Assistant"},{title:"Tajawal",value:"Tajawal"},{title:"Play",value:"Play"},{title:"Exo",value:"Exo"},{title:"Cinzel",value:"Cinzel"},{title:"Faustina",value:"Faustina"},{title:"Philosopher",value:"Philosopher"},{title:"Gelasio",value:"Gelasio"},{title:"Sofia Sans Condensed",value:"Sofia Sans Condensed"},{title:"Noto Sans Devanagari",value:"Noto Sans Devanagari"},{title:"Actor",value:"Actor"},{title:"Epilogue",value:"Epilogue"},{title:"Glegoo",value:"Glegoo"},{title:"Overlock",value:"Overlock"},{title:"Lustria",value:"Lustria"},{title:"Ovo",value:"Ovo"},{title:"Suranna",value:"Suranna"},{title:"Bebas Neue",value:"Bebas Neue"},{title:"Manrope",value:"Manrope"}],T=()=>{const t=p.useBuilderProp("onSaveBrandingOptions",f.noop),[e,i]=p.useBrandingOptions(),[l]=p.useBlocksContainer(),n=m.useRef(e),{t:v}=k.useTranslation();m.useEffect(()=>()=>{f.isEqual(e,n.current)||t(n.current)},[]);const u=({formData:o},d)=>{d&&(i(o),n.current=o)},{bodyFont:q,headingFont:b,primaryColor:h,bodyTextDarkColor:y,bodyTextLightColor:C,bodyBgDarkColor:S,secondaryColor:j,bodyBgLightColor:O,roundedCorners:B}=e;let s={headingFont:r.y({title:"Heading font",default:b,options:x}),bodyFont:r.y({title:"Body font",default:q,options:x}),roundedCorners:r.c({title:"Rounded Corner",default:parseInt(B||5,10)}),primaryColor:r.f({title:"Primary",default:h}),secondaryColor:r.f({title:"Secondary",default:j})};l||(s={...s,bodyBgLightColor:r.f({title:"Body Background (Light Mode)",default:O}),bodyTextLightColor:r.f({title:"Body Text (Light Mode)",default:y}),bodyBgDarkColor:r.f({title:"Body Background (Dark mode)",default:S}),bodyTextDarkColor:r.f({title:"Body Text (Dark mode)",default:C})});const c={type:"object",properties:{}},g={};return Object.keys(s).forEach(o=>{const d=s[o];return c.properties||(c.properties={}),c.properties[o]=d.schema,g[o]=d.uiSchema,!0}),a.jsxRuntimeExports.jsxs("div",{className:"flex h-full w-60 select-none flex-col",children:[a.jsxRuntimeExports.jsx("div",{className:"rounded-md bg-background/30 p-1",children:a.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:v("Theme Configuration")})}),a.jsxRuntimeExports.jsx("div",{className:"-mx-2",children:a.jsxRuntimeExports.jsx(E,{widgets:{color:P},idSeparator:".",autoComplete:"off",omitExtraData:!0,liveOmit:!0,liveValidate:!0,uiSchema:g,schema:c,formData:e,validator:N,onChange:u})})]})};exports.default=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-Z_BpKhVy.cjs"),R=require("react"),N=require("@rjsf/validator-ajv8"),E=require("@rjsf/core"),p=require("./ChaiBuilderEditor-AIXWnz29.cjs"),r=require("./controls-jWJDao88.cjs"),f=require("lodash-es"),k=require("react-i18next");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("clsx");require("react-dom");require("@radix-ui/react-scroll-area");require("@floating-ui/react-dom");require("jotai");require("i18next");require("flagged");require("./STRINGS-gPz7CUOk.cjs");require("./Functions-N3yhPYKY.cjs");require("tailwind-merge");require("@chaibuilder/runtime");require("@react-hookz/web");require("./MODIFIERS-YPHRtwrM.cjs");require("./utils-K3Zk762G.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-quill");require("react-hotkeys-hook");require("lucide-react");function M(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const m=M(R),P=({value:t,onChange:e,id:i,onBlur:l})=>{const n=f.debounce(e,200),v=u=>n(u.target.value);return a.jsxRuntimeExports.jsx("div",{className:"mt-1.5 flex items-center gap-x-3",children:a.jsxRuntimeExports.jsx("div",{className:"flex w-3/5 flex-col",children:a.jsxRuntimeExports.jsx("input",{type:"color",className:"text-xs p-0",value:t,onBlur:({target:{value:u}})=>l(i,u),onChange:v})})})},x=[{title:"Roboto",value:"Roboto"},{title:"Open Sans",value:"Open Sans"},{title:"Montserrat",value:"Montserrat"},{title:"Lato",value:"Lato"},{title:"Poppins",value:"Poppins"},{title:"Oswald",value:"Oswald"},{title:"Raleway",value:"Raleway"},{title:"Ubuntu",value:"Ubuntu"},{title:"Nunito",value:"Nunito"},{title:"Merriweather",value:"Merriweather"},{title:"Nunito Sans",value:"Nunito Sans"},{title:"Playfair Display",value:"Playfair Display"},{title:"Rubik",value:"Rubik"},{title:"Inter",value:"Inter"},{title:"Lora",value:"Lora"},{title:"Kanit",value:"Kanit"},{title:"Fira Sans",value:"Fira Sans"},{title:"Hind",value:"Hind"},{title:"Quicksand",value:"Quicksand"},{title:"Mulish",value:"Mulish"},{title:"Barlow",value:"Barlow"},{title:"Inconsolata",value:"Inconsolata"},{title:"Titillium Web",value:"Titillium Web"},{title:"Heebo",value:"Heebo"},{title:"IBM Plex Sans",value:"IBM Plex Sans"},{title:"DM Sans",value:"DM Sans"},{title:"Nanum Gothic",value:"Nanum Gothic"},{title:"Karla",value:"Karla"},{title:"Arimo",value:"Arimo"},{title:"Cabin",value:"Cabin"},{title:"Oxygen",value:"Oxygen"},{title:"Overpass",value:"Overpass"},{title:"Assistant",value:"Assistant"},{title:"Tajawal",value:"Tajawal"},{title:"Play",value:"Play"},{title:"Exo",value:"Exo"},{title:"Cinzel",value:"Cinzel"},{title:"Faustina",value:"Faustina"},{title:"Philosopher",value:"Philosopher"},{title:"Gelasio",value:"Gelasio"},{title:"Sofia Sans Condensed",value:"Sofia Sans Condensed"},{title:"Noto Sans Devanagari",value:"Noto Sans Devanagari"},{title:"Actor",value:"Actor"},{title:"Epilogue",value:"Epilogue"},{title:"Glegoo",value:"Glegoo"},{title:"Overlock",value:"Overlock"},{title:"Lustria",value:"Lustria"},{title:"Ovo",value:"Ovo"},{title:"Suranna",value:"Suranna"},{title:"Bebas Neue",value:"Bebas Neue"},{title:"Manrope",value:"Manrope"}],T=()=>{const t=p.useBuilderProp("onSaveBrandingOptions",f.noop),[e,i]=p.useBrandingOptions(),[l]=p.useBlocksContainer(),n=m.useRef(e),{t:v}=k.useTranslation();m.useEffect(()=>()=>{f.isEqual(e,n.current)||t(n.current)},[]);const u=({formData:o},d)=>{d&&(i(o),n.current=o)},{bodyFont:q,headingFont:b,primaryColor:h,bodyTextDarkColor:y,bodyTextLightColor:C,bodyBgDarkColor:S,secondaryColor:j,bodyBgLightColor:O,roundedCorners:B}=e;let s={headingFont:r.y({title:"Heading font",default:b,options:x}),bodyFont:r.y({title:"Body font",default:q,options:x}),roundedCorners:r.c({title:"Rounded Corner",default:parseInt(B||5,10)}),primaryColor:r.f({title:"Primary",default:h}),secondaryColor:r.f({title:"Secondary",default:j})};l||(s={...s,bodyBgLightColor:r.f({title:"Body Background (Light Mode)",default:O}),bodyTextLightColor:r.f({title:"Body Text (Light Mode)",default:y}),bodyBgDarkColor:r.f({title:"Body Background (Dark mode)",default:S}),bodyTextDarkColor:r.f({title:"Body Text (Dark mode)",default:C})});const c={type:"object",properties:{}},g={};return Object.keys(s).forEach(o=>{const d=s[o];return c.properties||(c.properties={}),c.properties[o]=d.schema,g[o]=d.uiSchema,!0}),a.jsxRuntimeExports.jsxs("div",{className:"flex h-full w-60 select-none flex-col",children:[a.jsxRuntimeExports.jsx("div",{className:"rounded-md bg-background/30 p-1",children:a.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:v("Theme Configuration")})}),a.jsxRuntimeExports.jsx("div",{className:"-mx-2",children:a.jsxRuntimeExports.jsx(E,{widgets:{color:P},idSeparator:".",autoComplete:"off",omitExtraData:!0,liveOmit:!0,liveValidate:!0,uiSchema:g,schema:c,formData:e,validator:N,onChange:u})})]})};exports.default=T;
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import o, { useMemo as h, Suspense as c } from "react";
3
3
  import { FontFamilyIcon as j, EyeOpenIcon as g } from "@radix-ui/react-icons";
4
- import { h as r, a6 as f, a7 as v, a8 as b, a9 as N, am as S, an as w, aa as l, V as y, B as p, ao as C, E as B, ah as m, ap as A } from "./ChaiBuilderEditor-f4SJU7kK.js";
4
+ import { h as r, a6 as f, a7 as v, a8 as b, a9 as N, am as S, an as w, aa as l, V as y, B as p, ao as C, E as B, ah as m, ap as A } from "./ChaiBuilderEditor-NnMEdW3k.js";
5
5
  import { useTranslation as x } from "react-i18next";
6
6
  import "./_commonjsHelpers-UyOWmZb0.js";
7
7
  import "clsx";
@@ -18,9 +18,9 @@ import "tailwind-merge";
18
18
  import "@chaibuilder/runtime";
19
19
  import "@react-hookz/web";
20
20
  import "./MODIFIERS-cBT31iqE.js";
21
+ import "./utils-iMv3T4WT.js";
21
22
  import "@radix-ui/react-toggle";
22
23
  import "class-variance-authority";
23
- import "./Class-6Hz2KzYb.js";
24
24
  import "@radix-ui/react-switch";
25
25
  import "@radix-ui/react-slot";
26
26
  import "@radix-ui/react-accordion";