@chaibuilder/sdk 1.2.65 → 1.2.67

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 (125) hide show
  1. package/dist/AddBlocks-TVOOPK2w.cjs +1 -0
  2. package/dist/AddBlocks-mbuhydG3.js +123 -0
  3. package/dist/CanvasArea-KJMcis97.cjs +1 -0
  4. package/dist/CanvasArea-kg3Rgg9t.js +136 -0
  5. package/dist/CodeEditor-QP6l0mv4.cjs +1 -0
  6. package/dist/{CodeEditor-Qff4q7sx.js → CodeEditor-q5unEaUI.js} +60 -46
  7. package/dist/STRINGS--j49GZJP.js +7 -0
  8. package/dist/STRINGS-gPz7CUOk.cjs +1 -0
  9. package/dist/SettingsPanel-MWeQjDWs.cjs +1 -0
  10. package/dist/SettingsPanel-pomLrOxB.js +81 -0
  11. package/dist/SidePanels-9sbERNEv.cjs +1 -0
  12. package/dist/{SidePanels-ijaUKSek.js → SidePanels-YpRrvfiH.js} +87 -93
  13. package/dist/{Topbar-vHlnfxPs.js → Topbar-kVBx7pp4.js} +56 -61
  14. package/dist/Topbar-veJ2_blW.cjs +1 -0
  15. package/dist/{UILibrariesPanel-NVUMUPUj.js → UILibrariesPanel-ES8YzN9C.js} +92 -101
  16. package/dist/UILibrariesPanel-H8t36R6M.cjs +1 -0
  17. package/dist/UnsplashImages--MXx-DYM.cjs +1 -0
  18. package/dist/{UnsplashImages-UkHihhA5.js → UnsplashImages-sotLcz6r.js} +72 -57
  19. package/dist/{UploadImages-HtuJZJlo.js → UploadImages-I0QQ6vj1.js} +57 -44
  20. package/dist/UploadImages-xhxeYKkl.cjs +1 -0
  21. package/dist/badge-7BVT3zxN.cjs +1 -0
  22. package/dist/badge-pJqQSA13.js +23 -0
  23. package/dist/context-menu-_8TFbFEJ.cjs +1 -0
  24. package/dist/context-menu-sks9vdzC.js +906 -0
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.d.ts +45 -20
  27. package/dist/core.js +85 -87
  28. package/dist/iconBase-vJD0OXxU.cjs +1 -0
  29. package/dist/iconBase-zweRWSz0.js +323 -0
  30. package/dist/index-5hfuDpYs.cjs +223 -0
  31. package/dist/index-Zu-K_BX7.js +33933 -0
  32. package/dist/jsx-runtime-JYMCiFoE.cjs +27 -0
  33. package/dist/{jsx-runtime-WbnYoNE9.js → jsx-runtime-Sp0orL4X.js} +106 -109
  34. package/dist/plugin-P0tpo_XZ.cjs +1 -0
  35. package/dist/plugin-_F-KZp1i.cjs +1 -0
  36. package/dist/plugin-f5uJtdXY.js +43 -0
  37. package/dist/plugin-sJ3Hzvpv.js +57 -0
  38. package/dist/render.cjs +3 -1
  39. package/dist/render.d.ts +19 -52
  40. package/dist/render.js +136 -183
  41. package/dist/select-JW3OMYm-.js +75 -0
  42. package/dist/select-fXj5tdMX.cjs +1 -0
  43. package/dist/separator-hT24N-xp.cjs +1 -0
  44. package/dist/separator-sgwOa1FE.js +18 -0
  45. package/dist/style.css +1 -1
  46. package/dist/tailwind.cjs +1 -1
  47. package/dist/tailwind.d.ts +41 -1
  48. package/dist/tailwind.js +16 -8
  49. package/dist/ui.cjs +1 -1
  50. package/dist/ui.d.ts +0 -10
  51. package/dist/ui.js +345 -163
  52. package/dist/web-blocks.cjs +1 -1
  53. package/dist/web-blocks.d.ts +1 -1
  54. package/dist/web-blocks.js +489 -724
  55. package/package.json +15 -45
  56. package/dist/CanvasArea-fSdH_RiN.cjs +0 -1
  57. package/dist/CanvasArea-ut5yknzX.js +0 -168
  58. package/dist/CodeEditor-ypUx3RAV.cjs +0 -1
  59. package/dist/CurrentPage-jHSVy3hq.js +0 -120
  60. package/dist/CurrentPage-p_AM4lrF.cjs +0 -1
  61. package/dist/Functions-7jnEwJyw.js +0 -15
  62. package/dist/Functions-N3yhPYKY.cjs +0 -1
  63. package/dist/MODIFIERS-fd5XOmum.js +0 -60
  64. package/dist/MODIFIERS-mVmfEGgo.cjs +0 -1
  65. package/dist/PagesPanel-U3InJ9Db.js +0 -78
  66. package/dist/PagesPanel-wqDb4D-x.cjs +0 -1
  67. package/dist/ProjectPanel-XODJTO4J.js +0 -99
  68. package/dist/ProjectPanel-fWESzHr6.cjs +0 -1
  69. package/dist/SidePanels-lrMQqc0h.cjs +0 -1
  70. package/dist/Topbar-RrCDxd0i.cjs +0 -1
  71. package/dist/UILibrariesPanel-7btHgBD0.cjs +0 -1
  72. package/dist/UnsplashImages-6UjgojvF.cjs +0 -1
  73. package/dist/UploadImages-3h0cRsvr.cjs +0 -1
  74. package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
  75. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
  76. package/dist/add-page-modal-RwIj1FxH.cjs +0 -1
  77. package/dist/add-page-modal-TOfMfmPA.js +0 -115
  78. package/dist/confirm-alert-eIp2cAkc.js +0 -60
  79. package/dist/confirm-alert-v1lG8ex4.cjs +0 -1
  80. package/dist/controls-rRZhz0vu.cjs +0 -1
  81. package/dist/controls-yjgoZzB6.js +0 -199
  82. package/dist/delete-page-modal-4bxjpVBD.js +0 -97
  83. package/dist/delete-page-modal-qYDZmpgT.cjs +0 -1
  84. package/dist/email-blocks.cjs +0 -1
  85. package/dist/email-blocks.d.ts +0 -3
  86. package/dist/email-blocks.js +0 -294
  87. package/dist/email.cjs +0 -1
  88. package/dist/email.d.ts +0 -171
  89. package/dist/email.js +0 -90
  90. package/dist/empty-slot-Lsxjts7Q.js +0 -6
  91. package/dist/empty-slot-Sy930lX6.cjs +0 -1
  92. package/dist/form-4jTocVbZ.cjs +0 -1
  93. package/dist/form-NAzFjGs0.js +0 -125
  94. package/dist/functions--tdNWQDW.js +0 -30
  95. package/dist/functions-EVUeSwX1.cjs +0 -1
  96. package/dist/html-to-json-NqRjgFqp.cjs +0 -1
  97. package/dist/html-to-json-l_mw5y-e.js +0 -243
  98. package/dist/index--k2M8kzI.cjs +0 -1
  99. package/dist/index--mLLy7QQ.cjs +0 -1
  100. package/dist/index-5XyNUAjc.cjs +0 -290
  101. package/dist/index-C7mB4XFm.js +0 -3141
  102. package/dist/index-VBXQixVm.js +0 -117
  103. package/dist/index-YZhtVcj_.js +0 -2201
  104. package/dist/index-aeDphKpP.cjs +0 -1
  105. package/dist/index-lFgDm1oa.js +0 -83780
  106. package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
  107. package/dist/lib.cjs +0 -3
  108. package/dist/lib.d.ts +0 -80
  109. package/dist/lib.js +0 -1350
  110. package/dist/page-viewer-4wrnWnK0.js +0 -124
  111. package/dist/page-viewer-ra0GLx1p.cjs +0 -1
  112. package/dist/project-general-setting-IwZUkYF3.js +0 -90
  113. package/dist/project-general-setting-lFjTUhHD.cjs +0 -1
  114. package/dist/project-seo-setting-e1fTqVsd.js +0 -83
  115. package/dist/project-seo-setting-o0V9acCV.cjs +0 -1
  116. package/dist/server.cjs +0 -1
  117. package/dist/server.d.ts +0 -299
  118. package/dist/server.js +0 -216
  119. package/dist/single-page-detail-ZNWFKqLW.js +0 -229
  120. package/dist/single-page-detail-g55Anu7R.cjs +0 -1
  121. package/dist/studio.cjs +0 -1
  122. package/dist/studio.d.ts +0 -176
  123. package/dist/studio.js +0 -67
  124. package/dist/utils-D_vtk3zK.cjs +0 -1
  125. package/dist/utils-VpVqnC9m.js +0 -1075
@@ -1,48 +1,39 @@
1
- import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
- import { KeyboardIcon as R, PlusIcon as S, Component2Icon as J } from "@radix-ui/react-icons";
3
- import f, { useState as p, useEffect as Y, useMemo as Z, memo as W, lazy as v, Suspense as j } from "react";
4
- import { useAtom as O } from "jotai";
5
- import { filter as N, map as B, isNull as X, find as $, isEmpty as q, values as G, each as Q, get as ee } from "lodash-es";
6
- import { ah as M, aj as H, ad as U, ae as F, af as se, A as re, a as ie, b as te, c as le, d as ae, e as oe, f as ne, g as ce, b8 as de, a0 as me, ba as xe, bw as pe, bx as he, by as ue, bz as fe, bA as K, ai as je, T as ve, v as ge, w as be, bB as E, h as w, aO as ye, B as x, a3 as z, aX as Ne, aY as we, aZ as L, bC as I } from "./index-C7mB4XFm.js";
7
- import { ListTreeIcon as P, PaletteIcon as ke, DatabaseIcon as Ce } from "lucide-react";
8
- import { getChaiDataProviders as De, useChaiBlocks as Te } from "@chaibuilder/runtime";
1
+ import { j as e } from "./jsx-runtime-Sp0orL4X.js";
2
+ import { KeyboardIcon as R, PlusIcon as _, Component2Icon as J } from "@radix-ui/react-icons";
3
+ import f, { useMemo as W, useState as p, useEffect as Y, memo as Z, lazy as v, Suspense as j } from "react";
4
+ import { useAtom as M } from "jotai";
5
+ import { filter as y, map as B, isNull as q, isEmpty as G, find as $, values as Q, each as X, get as ee } from "lodash-es";
6
+ import { D as O, n as H, o as F, p as U, q as se, a1 as re, a2 as ie, a3 as te, a4 as le, a5 as ae, a6 as oe, a7 as ne, a8 as ce, a9 as de, m as me, T as xe, d as pe, e as ue, B as x, S as K, E as he, F as fe, G as E, H as z } from "./context-menu-sks9vdzC.js";
7
+ import { u as je, b as ve, E as ge, J as be, a as Ne, d as ye, c as w, e as we } from "./index-Zu-K_BX7.js";
9
8
  import { useTranslation as g } from "react-i18next";
10
- import { E as Ae, J as Pe, a as _e, d as Se } from "./index-lFgDm1oa.js";
11
- import { O as o } from "./MODIFIERS-fd5XOmum.js";
12
- import { c as Be } from "./Functions-7jnEwJyw.js";
13
- import "./_commonjsHelpers-UyOWmZb0.js";
14
- import "@radix-ui/react-toggle";
15
- import "class-variance-authority";
16
- import "./utils-VpVqnC9m.js";
17
- import "clsx";
18
- import "tailwind-merge";
9
+ import { ListTreeIcon as A, PaletteIcon as ke, DatabaseIcon as Ce } from "lucide-react";
10
+ import { getChaiDataProviders as De, useChaiBlocks as Te } from "@chaibuilder/runtime";
11
+ import { S as Se, c as Ae, b as Pe, d as _e, f as L } from "./select-JW3OMYm-.js";
12
+ import { O as o } from "./STRINGS--j49GZJP.js";
13
+ import { B as I } from "./badge-pJqQSA13.js";
14
+ import { c as Be } from "./iconBase-zweRWSz0.js";
19
15
  import "@radix-ui/react-switch";
20
- import "@radix-ui/react-slot";
21
16
  import "@radix-ui/react-accordion";
17
+ import "class-variance-authority";
22
18
  import "@radix-ui/react-alert-dialog";
23
- import "@radix-ui/react-dialog";
19
+ import "@radix-ui/react-slot";
24
20
  import "@radix-ui/react-label";
25
21
  import "@radix-ui/react-scroll-area";
26
22
  import "@radix-ui/react-tabs";
27
23
  import "@radix-ui/react-tooltip";
28
24
  import "@radix-ui/react-popover";
29
- import "@radix-ui/react-menubar";
30
25
  import "@radix-ui/react-hover-card";
31
- import "@radix-ui/react-select";
32
26
  import "@radix-ui/react-dropdown-menu";
33
- import "@radix-ui/react-separator";
34
27
  import "@radix-ui/react-toast";
35
28
  import "cmdk";
29
+ import "@radix-ui/react-dialog";
36
30
  import "@radix-ui/react-context-menu";
37
- import "react-icons-picker";
38
- import "react-dom";
39
- import "react-quill";
31
+ import "clsx";
32
+ import "tailwind-merge";
33
+ import "./plugin-sJ3Hzvpv.js";
40
34
  import "@react-hookz/web";
41
35
  import "tree-model";
42
- import "i18next";
43
- import "react-arborist";
44
- import "./index-VBXQixVm.js";
45
- import "prop-types";
36
+ import "react-quill";
46
37
  import "react-hotkeys-hook";
47
38
  import "@floating-ui/dom";
48
39
  import "@floating-ui/react-dom";
@@ -51,35 +42,38 @@ import "@tailwindcss/typography";
51
42
  import "@tailwindcss/forms";
52
43
  import "@tailwindcss/aspect-ratio";
53
44
  import "tailwindcss-palette-generator";
54
- import "./html-to-json-l_mw5y-e.js";
55
- import "himalaya";
56
- import "lodash";
57
45
  import "react-wrap-balancer";
58
- import "@rjsf/core";
46
+ import "react-dom";
47
+ import "prop-types";
59
48
  import "@rjsf/validator-ajv8";
49
+ import "@rjsf/core";
50
+ import "react-arborist";
51
+ import "himalaya";
52
+ import "react-icons-picker";
60
53
  import "react-autosuggest";
61
54
  import "fuse.js";
62
- import "./controls-yjgoZzB6.js";
55
+ import "i18next";
56
+ import "@radix-ui/react-select";
63
57
  const Ke = ({ provider: s, onClose: a }) => {
64
- const { t } = g(), [l, h] = p(null);
58
+ const { t } = g(), [l, u] = p(null);
65
59
  return Y(() => {
66
- s && (s.mockFn ? s.mockFn : s.dataFn)().then((c) => h(c));
67
- }, [s]), s ? /* @__PURE__ */ e.jsx(M, { onOpenChange: (d) => d ? "" : a(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(H, { children: [
68
- /* @__PURE__ */ e.jsxs(U, { children: [
69
- /* @__PURE__ */ e.jsxs(F, { children: [
60
+ s && (s.mockFn ? s.mockFn : s.dataFn)().then((c) => u(c));
61
+ }, [s]), s ? /* @__PURE__ */ e.jsx(O, { onOpenChange: (d) => d ? "" : a(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(H, { children: [
62
+ /* @__PURE__ */ e.jsxs(F, { children: [
63
+ /* @__PURE__ */ e.jsxs(U, { children: [
70
64
  t("data_provider"),
71
65
  ": ",
72
66
  s.name
73
67
  ] }),
74
68
  /* @__PURE__ */ e.jsx(se, { children: s.description })
75
69
  ] }),
76
- /* @__PURE__ */ e.jsx(Ae, { children: /* @__PURE__ */ e.jsx(
77
- Pe,
70
+ /* @__PURE__ */ e.jsx(ge, { children: /* @__PURE__ */ e.jsx(
71
+ be,
78
72
  {
79
73
  data: l,
80
- shouldExpandNode: _e,
74
+ shouldExpandNode: Ne,
81
75
  style: {
82
- ...Se,
76
+ ...ye,
83
77
  container: "max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",
84
78
  stringValue: "text-orange-600",
85
79
  label: "text-green-900 font-semibold pr-1 tracking-wider"
@@ -114,29 +108,29 @@ function Ee({
114
108
  ] });
115
109
  }
116
110
  const ze = () => {
117
- const { t: s } = g(), a = Z(() => De(), []), [t, l] = me(), [, h] = O(xe), [d, c] = p(
118
- N(a, (r) => B(t, "providerKey").includes(r.providerKey))
119
- ), [k, u] = p(""), [C, b] = p(null), D = N(
111
+ const { t: s } = g(), a = W(() => De(), []), [t, l] = je(), [, u] = M(ve), [d, c] = p(
112
+ y(a, (r) => B(t, "providerKey").includes(r.providerKey))
113
+ ), [k, h] = p(""), [C, b] = p(null), D = y(
120
114
  a.map((r) => B(d, "providerKey").includes(r.providerKey) ? null : { value: r.providerKey, label: r.name }),
121
- (r) => !X(r)
115
+ (r) => !q(r)
122
116
  ), T = (r) => {
123
117
  const m = $(a, { providerKey: r });
124
- c((i) => [...i, m]), l((i) => [...i, { providerKey: m.providerKey, args: {} }]), u(""), h("UNSAVED");
125
- }, y = (r) => {
126
- c((m) => N(m, (i) => i.providerKey !== r.providerKey)), l((m) => N(m, (i) => i.providerKey !== r.providerKey)), h("UNSAVED");
118
+ c((i) => [...i, m]), l((i) => [...i, { providerKey: m.providerKey, args: {} }]), h(""), u("UNSAVED");
119
+ }, N = (r) => {
120
+ c((m) => y(m, (i) => i.providerKey !== r.providerKey)), l((m) => y(m, (i) => i.providerKey !== r.providerKey)), u("UNSAVED");
127
121
  }, n = (r) => b(r);
128
- return q(a) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
122
+ return G(a) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
129
123
  s("no_data_providers"),
130
124
  /* @__PURE__ */ e.jsx("br", {}),
131
125
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: s("learn_more") })
132
126
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-1", children: [
133
127
  /* @__PURE__ */ e.jsx("br", {}),
134
128
  /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx("p", { className: "mb-1.5 text-xs text-gray-500", children: s("add_data_providers") }) }),
135
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(pe, { value: k, onValueChange: (r) => T(r), children: [
136
- /* @__PURE__ */ e.jsx(he, { className: "w-full", children: /* @__PURE__ */ e.jsx(ue, { placeholder: s("select_provider") }) }),
137
- /* @__PURE__ */ e.jsxs(fe, { children: [
138
- /* @__PURE__ */ e.jsx(K, { value: "", children: s("choose") }),
139
- D.map((r) => /* @__PURE__ */ e.jsx(K, { value: r.value, children: r.label }, r.value))
129
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(Se, { value: k, onValueChange: (r) => T(r), children: [
130
+ /* @__PURE__ */ e.jsx(Ae, { className: "w-full", children: /* @__PURE__ */ e.jsx(Pe, { placeholder: s("select_provider") }) }),
131
+ /* @__PURE__ */ e.jsxs(_e, { children: [
132
+ /* @__PURE__ */ e.jsx(L, { value: "", children: s("choose") }),
133
+ D.map((r) => /* @__PURE__ */ e.jsx(L, { value: r.value, children: r.label }, r.value))
140
134
  ] })
141
135
  ] }) }),
142
136
  /* @__PURE__ */ e.jsx("br", {}),
@@ -185,7 +179,7 @@ const ze = () => {
185
179
  ]
186
180
  }
187
181
  ),
188
- /* @__PURE__ */ e.jsx(Ee, { onRemove: () => y(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: [
182
+ /* @__PURE__ */ e.jsx(Ee, { onRemove: () => N(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: [
189
183
  /* @__PURE__ */ e.jsxs(
190
184
  "svg",
191
185
  {
@@ -216,7 +210,7 @@ const ze = () => {
216
210
  /* @__PURE__ */ e.jsx(Ke, { onClose: () => b(null), provider: C })
217
211
  ] })
218
212
  ] });
219
- }, Le = W(() => {
213
+ }, Le = Z(() => {
220
214
  const { t: s } = g(), a = {
221
215
  "ctrl + Z": "Undo",
222
216
  "ctrl + Y": "Redo",
@@ -227,37 +221,37 @@ const ze = () => {
227
221
  esc: "Deselect blocks",
228
222
  del: "Delete block"
229
223
  };
230
- return /* @__PURE__ */ e.jsxs(M, { children: [
231
- /* @__PURE__ */ e.jsx(je, { children: /* @__PURE__ */ e.jsxs(ve, { children: [
232
- /* @__PURE__ */ e.jsx(ge, { asChild: !0, children: /* @__PURE__ */ e.jsx("div", { className: "flex w-10 items-center justify-center", children: /* @__PURE__ */ e.jsx(R, {}) }) }),
233
- /* @__PURE__ */ e.jsx(be, { children: /* @__PURE__ */ e.jsx("p", { children: s("Keyboard shortcuts") }) })
224
+ return /* @__PURE__ */ e.jsxs(O, { children: [
225
+ /* @__PURE__ */ e.jsx(me, { children: /* @__PURE__ */ e.jsxs(xe, { children: [
226
+ /* @__PURE__ */ e.jsx(pe, { asChild: !0, children: /* @__PURE__ */ e.jsx("div", { className: "flex w-10 items-center justify-center", children: /* @__PURE__ */ e.jsx(R, {}) }) }),
227
+ /* @__PURE__ */ e.jsx(ue, { children: /* @__PURE__ */ e.jsx("p", { children: s("Keyboard shortcuts") }) })
234
228
  ] }) }),
235
229
  /* @__PURE__ */ e.jsxs(H, { className: "sm:max-w-[525px]", children: [
236
- /* @__PURE__ */ e.jsx(U, { children: /* @__PURE__ */ e.jsx(F, { children: s("Keyboard shortcuts") }) }),
230
+ /* @__PURE__ */ e.jsx(F, { children: /* @__PURE__ */ e.jsx(U, { children: s("Keyboard shortcuts") }) }),
237
231
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2", children: [
238
232
  /* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(a).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
239
- /* @__PURE__ */ e.jsx(E, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
233
+ /* @__PURE__ */ e.jsx(I, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
240
234
  /* @__PURE__ */ e.jsx("div", { children: s(a[l]) })
241
235
  ] }, l)) }),
242
236
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(t).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
243
- /* @__PURE__ */ e.jsx(E, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
237
+ /* @__PURE__ */ e.jsx(I, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
244
238
  /* @__PURE__ */ e.jsx("div", { children: s(t[l]) })
245
239
  ] }, l)) })
246
240
  ] }) })
247
241
  ] })
248
242
  ] });
249
- }), Ie = v(() => import("./index-lFgDm1oa.js").then((s) => s.g)), _ = v(() => import("./index-lFgDm1oa.js").then((s) => s.f)), Ve = v(() => import("./index-lFgDm1oa.js").then((s) => s.h)), Oe = v(() => import("./index-C7mB4XFm.js").then((s) => s.cw)), Me = v(() => import("./UILibrariesPanel-NVUMUPUj.js")), He = () => /* @__PURE__ */ e.jsx("div", { className: "w-72", children: /* @__PURE__ */ e.jsx(j, { fallback: /* @__PURE__ */ e.jsx("div", { className: "h-full w-full animate-pulse rounded-md bg-gray-100" }), children: /* @__PURE__ */ e.jsx(Ie, {}) }) });
243
+ }), Ie = v(() => import("./AddBlocks-mbuhydG3.js")), P = v(() => import("./index-Zu-K_BX7.js").then((s) => s.ad)), Ve = v(() => import("./index-Zu-K_BX7.js").then((s) => s.ac)), Me = v(() => import("./index-Zu-K_BX7.js").then((s) => s.ae)), Oe = v(() => import("./UILibrariesPanel-ES8YzN9C.js")), He = () => /* @__PURE__ */ e.jsx("div", { className: "w-72", children: /* @__PURE__ */ e.jsx(j, { fallback: /* @__PURE__ */ e.jsx("div", { className: "h-full w-full animate-pulse rounded-md bg-gray-100" }), children: /* @__PURE__ */ e.jsx(Ie, {}) }) });
250
244
  let V = null;
251
- const $s = () => {
252
- const s = w("sideBarComponents.top", []), a = w("sideBarComponents.bottom", []), [t, l] = O(ye), [h, d] = p(t), [c, k] = p(null), { t: u } = g(), C = w("uiLibraries", []), b = Te(), D = G(b).find((i) => i.category === "custom") !== void 0, T = C.length > 0 || D, y = {
245
+ const Rs = () => {
246
+ const s = w("sideBarComponents.top", []), a = w("sideBarComponents.bottom", []), [t, l] = M(we), [u, d] = p(t), [c, k] = p(null), { t: h } = g(), C = w("uiLibraries", []), b = Te(), D = Q(b).find((i) => i.category === "custom") !== void 0, T = C.length > 0 || D, N = {
253
247
  "add-blocks": He,
254
- [o]: _,
248
+ [o]: P,
255
249
  "theme-configuration": Ve,
256
- images: Oe,
257
- "ui-libraries": Me
250
+ images: Me,
251
+ "ui-libraries": Oe
258
252
  };
259
- Q(s, ({ name: i, panel: A }) => {
260
- y[i] = A;
253
+ X(s, ({ name: i, panel: S }) => {
254
+ N[i] = S;
261
255
  });
262
256
  const n = (i) => {
263
257
  clearTimeout(V), t !== o && i === o ? V = setTimeout(() => l(o), 500) : d(i), l(i);
@@ -286,7 +280,7 @@ const $s = () => {
286
280
  onClick: () => n("add-blocks"),
287
281
  size: "sm",
288
282
  variant: t === "add-blocks" ? "default" : "outline",
289
- children: /* @__PURE__ */ e.jsx(S, { className: "text-xl" })
283
+ children: /* @__PURE__ */ e.jsx(_, { className: "text-xl" })
290
284
  }
291
285
  ),
292
286
  /* @__PURE__ */ e.jsx(
@@ -304,7 +298,7 @@ const $s = () => {
304
298
  onClick: () => n("add-blocks"),
305
299
  size: "sm",
306
300
  variant: t === "add-blocks" ? "default" : "outline",
307
- children: /* @__PURE__ */ e.jsx(S, { className: "text-xl" })
301
+ children: /* @__PURE__ */ e.jsx(_, { className: "text-xl" })
308
302
  }
309
303
  ),
310
304
  /* @__PURE__ */ e.jsx(
@@ -313,7 +307,7 @@ const $s = () => {
313
307
  onClick: () => n(o),
314
308
  size: "sm",
315
309
  variant: t === o ? "default" : "outline",
316
- children: /* @__PURE__ */ e.jsx(P, { className: "w-4" })
310
+ children: /* @__PURE__ */ e.jsx(A, { className: "w-4" })
317
311
  }
318
312
  ),
319
313
  /* @__PURE__ */ e.jsx(
@@ -326,14 +320,14 @@ const $s = () => {
326
320
  }
327
321
  ),
328
322
  f.Children.toArray(
329
- s.map(({ name: i, icon: A }) => /* @__PURE__ */ e.jsx(j, { fallback: /* @__PURE__ */ e.jsx(z, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
323
+ s.map(({ name: i, icon: S }) => /* @__PURE__ */ e.jsx(j, { fallback: /* @__PURE__ */ e.jsx(K, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
330
324
  x,
331
325
  {
332
326
  onClick: () => n(i),
333
327
  size: "sm",
334
328
  className: "w-10",
335
329
  variant: t === i ? "default" : "outline",
336
- children: /* @__PURE__ */ e.jsx(A, {})
330
+ children: /* @__PURE__ */ e.jsx(S, {})
337
331
  }
338
332
  ) }))
339
333
  )
@@ -341,7 +335,7 @@ const $s = () => {
341
335
  /* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2 pb-2", children: [
342
336
  /* @__PURE__ */ e.jsx(Le, {}),
343
337
  f.Children.toArray(
344
- a.map((i) => /* @__PURE__ */ e.jsx(j, { fallback: /* @__PURE__ */ e.jsx(z, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(i, {}) }))
338
+ a.map((i) => /* @__PURE__ */ e.jsx(j, { fallback: /* @__PURE__ */ e.jsx(K, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(i, {}) }))
345
339
  )
346
340
  ] })
347
341
  ] }),
@@ -366,7 +360,7 @@ const $s = () => {
366
360
  onMouseEnter: () => {
367
361
  c && clearTimeout(c);
368
362
  },
369
- children: f.createElement(ee(y, t, () => /* @__PURE__ */ e.jsx("div", {})))
363
+ children: f.createElement(ee(N, t, () => /* @__PURE__ */ e.jsx("div", {})))
370
364
  }
371
365
  )
372
366
  }
@@ -381,32 +375,32 @@ const $s = () => {
381
375
  /* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" }),
382
376
  /* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" })
383
377
  ] }),
384
- children: r ? /* @__PURE__ */ e.jsxs(Ne, { defaultValue: o, className: "flex h-full w-full flex-col py-1", children: [
385
- /* @__PURE__ */ e.jsxs(we, { className: "mx-1 grid h-10 grid-cols-2", children: [
386
- /* @__PURE__ */ e.jsxs(L, { value: o, children: [
387
- /* @__PURE__ */ e.jsx(P, { className: "mr-2 h-3" }),
378
+ children: r ? /* @__PURE__ */ e.jsxs(he, { defaultValue: o, className: "flex h-full w-full flex-col py-1", children: [
379
+ /* @__PURE__ */ e.jsxs(fe, { className: "mx-1 grid h-10 grid-cols-2", children: [
380
+ /* @__PURE__ */ e.jsxs(E, { value: o, children: [
381
+ /* @__PURE__ */ e.jsx(A, { className: "mr-2 h-3" }),
388
382
  " ",
389
- u("Outline")
383
+ h("Outline")
390
384
  ] }),
391
- /* @__PURE__ */ e.jsxs(L, { value: "data-provider", children: [
385
+ /* @__PURE__ */ e.jsxs(E, { value: "data-provider", children: [
392
386
  /* @__PURE__ */ e.jsx(Ce, { className: "mr-2 w-3" }),
393
- u("Data")
387
+ h("Data")
394
388
  ] })
395
389
  ] }),
396
- /* @__PURE__ */ e.jsx(I, { value: o, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: f.createElement(_) }),
397
- /* @__PURE__ */ e.jsx(I, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(ze, {}) })
390
+ /* @__PURE__ */ e.jsx(z, { value: o, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: f.createElement(P) }),
391
+ /* @__PURE__ */ e.jsx(z, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(ze, {}) })
398
392
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
399
393
  /* @__PURE__ */ e.jsxs("div", { className: "sticky top-0 -m-1 flex h-fit items-center justify-center border-b bg-gray-100 py-2 pb-[9px] text-sm", children: [
400
- /* @__PURE__ */ e.jsx(P, { className: "mr-2 h-3" }),
394
+ /* @__PURE__ */ e.jsx(A, { className: "mr-2 h-3" }),
401
395
  " ",
402
- u("Outline")
396
+ h("Outline")
403
397
  ] }),
404
- /* @__PURE__ */ e.jsx("div", { className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden pt-2", children: f.createElement(_) })
398
+ /* @__PURE__ */ e.jsx("div", { className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden pt-2", children: f.createElement(P) })
405
399
  ] })
406
400
  }
407
401
  ) })
408
402
  ] });
409
403
  };
410
404
  export {
411
- $s as default
405
+ Rs as default
412
406
  };
@@ -1,48 +1,23 @@
1
- import { j as e } from "./jsx-runtime-WbnYoNE9.js";
1
+ import { j as e } from "./jsx-runtime-Sp0orL4X.js";
2
2
  import l, { useMemo as h, Suspense as m } from "react";
3
3
  import { FontFamilyIcon as j, EyeOpenIcon as f } from "@radix-ui/react-icons";
4
- import { h as s, bw as g, bx as v, by as b, bz as N, bD as S, bE as w, bA as n, b9 as y, B as c, a2 as C, a3 as p, bF as B } from "./index-C7mB4XFm.js";
5
- import { F as A } from "./index-lFgDm1oa.js";
4
+ import { S as g, c as v, b as S, d as b, a as N, e as w, f as o } from "./select-JW3OMYm-.js";
5
+ import { c as s, f as y, F as C, g as B } from "./index-Zu-K_BX7.js";
6
+ import { S as A } from "./separator-sgwOa1FE.js";
7
+ import { B as c, S as p } from "./context-menu-sks9vdzC.js";
6
8
  import { useTranslation as x } from "react-i18next";
7
- import "./_commonjsHelpers-UyOWmZb0.js";
8
- import "@radix-ui/react-toggle";
9
- import "class-variance-authority";
10
- import "./utils-VpVqnC9m.js";
9
+ import "@radix-ui/react-select";
11
10
  import "lodash-es";
12
- import "./MODIFIERS-fd5XOmum.js";
11
+ import "jotai";
12
+ import "./iconBase-zweRWSz0.js";
13
13
  import "clsx";
14
14
  import "tailwind-merge";
15
- import "@radix-ui/react-switch";
16
- import "@radix-ui/react-slot";
17
- import "@radix-ui/react-accordion";
18
- import "@radix-ui/react-alert-dialog";
19
- import "@radix-ui/react-dialog";
20
- import "@radix-ui/react-label";
21
- import "@radix-ui/react-scroll-area";
22
- import "@radix-ui/react-tabs";
23
- import "@radix-ui/react-tooltip";
24
- import "@radix-ui/react-popover";
25
- import "@radix-ui/react-menubar";
26
- import "@radix-ui/react-hover-card";
27
- import "@radix-ui/react-select";
28
- import "@radix-ui/react-dropdown-menu";
29
- import "@radix-ui/react-separator";
30
- import "@radix-ui/react-toast";
31
- import "cmdk";
32
- import "@radix-ui/react-context-menu";
33
- import "react-icons-picker";
34
- import "react-dom";
35
- import "react-quill";
36
- import "./Functions-7jnEwJyw.js";
37
15
  import "@chaibuilder/runtime";
38
- import "jotai";
16
+ import "./plugin-sJ3Hzvpv.js";
39
17
  import "@react-hookz/web";
40
18
  import "tree-model";
41
- import "i18next";
42
- import "react-arborist";
43
- import "lucide-react";
44
- import "./index-VBXQixVm.js";
45
- import "prop-types";
19
+ import "react-quill";
20
+ import "./STRINGS--j49GZJP.js";
46
21
  import "react-hotkeys-hook";
47
22
  import "@floating-ui/dom";
48
23
  import "@floating-ui/react-dom";
@@ -51,18 +26,38 @@ import "@tailwindcss/typography";
51
26
  import "@tailwindcss/forms";
52
27
  import "@tailwindcss/aspect-ratio";
53
28
  import "tailwindcss-palette-generator";
54
- import "./html-to-json-l_mw5y-e.js";
55
- import "himalaya";
56
- import "lodash";
57
29
  import "react-wrap-balancer";
58
- import "@rjsf/core";
30
+ import "react-dom";
31
+ import "prop-types";
59
32
  import "@rjsf/validator-ajv8";
33
+ import "@rjsf/core";
34
+ import "react-arborist";
35
+ import "lucide-react";
36
+ import "himalaya";
37
+ import "react-icons-picker";
60
38
  import "react-autosuggest";
61
39
  import "fuse.js";
62
- import "./controls-yjgoZzB6.js";
40
+ import "i18next";
41
+ import "@radix-ui/react-scroll-area";
42
+ import "@radix-ui/react-separator";
43
+ import "@radix-ui/react-switch";
44
+ import "@radix-ui/react-accordion";
45
+ import "class-variance-authority";
46
+ import "@radix-ui/react-alert-dialog";
47
+ import "@radix-ui/react-slot";
48
+ import "@radix-ui/react-label";
49
+ import "@radix-ui/react-tabs";
50
+ import "@radix-ui/react-tooltip";
51
+ import "@radix-ui/react-popover";
52
+ import "@radix-ui/react-hover-card";
53
+ import "@radix-ui/react-dropdown-menu";
54
+ import "@radix-ui/react-toast";
55
+ import "cmdk";
56
+ import "@radix-ui/react-dialog";
57
+ import "@radix-ui/react-context-menu";
63
58
  const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsxs(g, { children: [
64
59
  /* @__PURE__ */ e.jsx(v, { className: "w-[150px] border-0", children: /* @__PURE__ */ e.jsx(
65
- b,
60
+ S,
66
61
  {
67
62
  placeholder: /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
68
63
  /* @__PURE__ */ e.jsx(j, { className: "h-4 w-4" }),
@@ -70,16 +65,16 @@ const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @
70
65
  ] })
71
66
  }
72
67
  ) }),
73
- /* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsxs(S, { children: [
68
+ /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(N, { children: [
74
69
  /* @__PURE__ */ e.jsx(w, { children: "Fruits" }),
75
- /* @__PURE__ */ e.jsx(n, { value: "apple", children: "Apple" }),
76
- /* @__PURE__ */ e.jsx(n, { value: "banana", children: "Banana" }),
77
- /* @__PURE__ */ e.jsx(n, { value: "blueberry", children: "Blueberry" }),
78
- /* @__PURE__ */ e.jsx(n, { value: "grapes", children: "Grapes" }),
79
- /* @__PURE__ */ e.jsx(n, { value: "pineapple", children: "Pineapple" })
70
+ /* @__PURE__ */ e.jsx(o, { value: "apple", children: "Apple" }),
71
+ /* @__PURE__ */ e.jsx(o, { value: "banana", children: "Banana" }),
72
+ /* @__PURE__ */ e.jsx(o, { value: "blueberry", children: "Blueberry" }),
73
+ /* @__PURE__ */ e.jsx(o, { value: "grapes", children: "Grapes" }),
74
+ /* @__PURE__ */ e.jsx(o, { value: "pineapple", children: "Pineapple" })
80
75
  ] }) })
81
- ] }) }), E = () => {
82
- const { savePage: i, saveState: t } = y(), { t: a } = x(), o = s("hideSaveButton", !1), r = h(() => {
76
+ ] }) }), I = () => {
77
+ const { savePage: i, saveState: t } = y(), { t: a } = x(), n = s("hideSaveButton", !1), r = h(() => {
83
78
  switch (t) {
84
79
  case "SAVING":
85
80
  return "animate-pulse bg-gray-300 text-gray-900";
@@ -89,7 +84,7 @@ const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @
89
84
  return "bg-gray-200 text-gray-500 hover:bg-gray-100";
90
85
  }
91
86
  }, [t]);
92
- if (o)
87
+ if (n)
93
88
  return null;
94
89
  const u = /* @__PURE__ */ e.jsxs(
95
90
  c,
@@ -102,14 +97,14 @@ const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @
102
97
  size: "sm",
103
98
  variant: "outline",
104
99
  children: [
105
- /* @__PURE__ */ e.jsx(A, { className: "text-lg" }),
100
+ /* @__PURE__ */ e.jsx(C, { className: "text-lg" }),
106
101
  /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: t === "SAVING" ? "Saving..." : a(t === "SAVED" ? "Saved" : "Unsaved") })
107
102
  ]
108
103
  }
109
104
  );
110
105
  return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: u });
111
- }, F = function() {
112
- const t = s("previewComponent"), [, a] = C(), { t: o } = x();
106
+ }, V = function() {
107
+ const t = s("previewComponent"), [, a] = B(), { t: n } = x();
113
108
  return t ? /* @__PURE__ */ e.jsxs(
114
109
  c,
115
110
  {
@@ -121,12 +116,12 @@ const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @
121
116
  variant: "outline",
122
117
  children: [
123
118
  /* @__PURE__ */ e.jsx(f, { className: "text-xs" }),
124
- /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: o("Preview") })
119
+ /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: n("Preview") })
125
120
  ]
126
121
  }
127
122
  ) : null;
128
- }, Re = () => {
129
- const i = s("topBarComponents.left", []), t = s("topBarComponents.center", []), a = s("topBarComponents.right", []), o = s("editable", !0);
123
+ }, De = () => {
124
+ const i = s("topBarComponents.left", []), t = s("topBarComponents.center", []), a = s("topBarComponents.right", []), n = s("editable", !0);
130
125
  return /* @__PURE__ */ e.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
131
126
  /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2 font-bold", children: l.Children.toArray(
132
127
  i.map((r) => /* @__PURE__ */ e.jsx(m, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(r, {}) }))
@@ -136,9 +131,9 @@ const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @
136
131
  ) }),
137
132
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-2", children: [
138
133
  /* @__PURE__ */ e.jsx(k, {}),
139
- /* @__PURE__ */ e.jsx(F, {}),
140
- /* @__PURE__ */ e.jsx(B, { orientation: "vertical" }),
141
- o ? /* @__PURE__ */ e.jsx(E, {}) : null,
134
+ /* @__PURE__ */ e.jsx(V, {}),
135
+ /* @__PURE__ */ e.jsx(A, { orientation: "vertical" }),
136
+ n ? /* @__PURE__ */ e.jsx(I, {}) : null,
142
137
  l.Children.toArray(
143
138
  a.map((r) => /* @__PURE__ */ e.jsx(m, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(r, {}) }))
144
139
  )
@@ -146,5 +141,5 @@ const P = () => s("languages", ["en"]), k = () => P().length === 1 ? null : /* @
146
141
  ] });
147
142
  };
148
143
  export {
149
- Re as default
144
+ De as default
150
145
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-JYMCiFoE.cjs"),i=require("react"),o=require("@radix-ui/react-icons"),r=require("./select-fXj5tdMX.cjs"),s=require("./index-5hfuDpYs.cjs"),j=require("./separator-hT24N-xp.cjs"),l=require("./context-menu-_8TFbFEJ.cjs"),c=require("react-i18next");require("@radix-ui/react-select");require("lodash-es");require("jotai");require("./iconBase-vJD0OXxU.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("./plugin-_F-KZp1i.cjs");require("@react-hookz/web");require("tree-model");require("react-quill");require("./STRINGS-gPz7CUOk.cjs");require("react-hotkeys-hook");require("@floating-ui/dom");require("@floating-ui/react-dom");require("flagged");require("@tailwindcss/typography");require("@tailwindcss/forms");require("@tailwindcss/aspect-ratio");require("tailwindcss-palette-generator");require("react-wrap-balancer");require("react-dom");require("prop-types");require("@rjsf/validator-ajv8");require("@rjsf/core");require("react-arborist");require("lucide-react");require("himalaya");require("react-icons-picker");require("react-autosuggest");require("fuse.js");require("i18next");require("@radix-ui/react-scroll-area");require("@radix-ui/react-separator");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("class-variance-authority");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-label");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-dialog");require("@radix-ui/react-context-menu");const d=()=>s.useBuilderProp("languages",["en"]),q=()=>d().length===1?null:e.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:e.jsxRuntimeExports.jsxs(r.Select,{children:[e.jsxRuntimeExports.jsx(r.SelectTrigger,{className:"w-[150px] border-0",children:e.jsxRuntimeExports.jsx(r.SelectValue,{placeholder:e.jsxRuntimeExports.jsxs("span",{className:"flex items-center",children:[e.jsxRuntimeExports.jsx(o.FontFamilyIcon,{className:"h-4 w-4"})," English(US)"]})})}),e.jsxRuntimeExports.jsx(r.SelectContent,{children:e.jsxRuntimeExports.jsxs(r.SelectGroup,{children:[e.jsxRuntimeExports.jsx(r.SelectLabel,{children:"Fruits"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"apple",children:"Apple"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"banana",children:"Banana"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"blueberry",children:"Blueberry"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"grapes",children:"Grapes"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"pineapple",children:"Pineapple"})]})})]})}),h=()=>{const{savePage:x,saveState:t}=s.useSavePage(),{t:u}=c.useTranslation(),a=s.useBuilderProp("hideSaveButton",!1),n=i.useMemo(()=>{switch(t){case"SAVING":return"animate-pulse bg-gray-300 text-gray-900";case"SAVED":return"bg-green-500 text-white hover:bg-green-600 hover:text-white";default:return"bg-gray-200 text-gray-500 hover:bg-gray-100"}},[t]);if(a)return null;const p=e.jsxRuntimeExports.jsxs(l.Button,{disabled:t==="SAVING",onClick:m=>{m.preventDefault(),x()},className:`flex h-auto w-fit items-center gap-x-2 rounded-full p-1.5 px-3 ${n}`,size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(s.FaCircleCheck,{className:"text-lg"}),e.jsxRuntimeExports.jsx("span",{className:"text-sm",children:t==="SAVING"?"Saving...":u(t==="SAVED"?"Saved":"Unsaved")})]});return e.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:p})},E=function(){const t=s.useBuilderProp("previewComponent"),[,u]=s.usePreviewMode(),{t:a}=c.useTranslation();return t?e.jsxRuntimeExports.jsxs(l.Button,{onClick:n=>{n.preventDefault(),u(!0)},className:"flex h-auto w-fit items-center gap-x-2 rounded-full bg-gray-200 px-3 py-1",size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(o.EyeOpenIcon,{className:"text-xs"}),e.jsxRuntimeExports.jsx("span",{className:"text-sm",children:a("Preview")})]}):null},R=()=>{const x=s.useBuilderProp("topBarComponents.left",[]),t=s.useBuilderProp("topBarComponents.center",[]),u=s.useBuilderProp("topBarComponents.right",[]),a=s.useBuilderProp("editable",!0);return e.jsxRuntimeExports.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2 font-bold",children:i.Children.toArray(x.map(n=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(l.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(n,{})})))})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:i.Children.toArray(t.map(n=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(l.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(n,{})})))}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxRuntimeExports.jsx(q,{}),e.jsxRuntimeExports.jsx(E,{}),e.jsxRuntimeExports.jsx(j.Separator,{orientation:"vertical"}),a?e.jsxRuntimeExports.jsx(h,{}):null,i.Children.toArray(u.map(n=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(l.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(n,{})})))]})]})};exports.default=R;