@chaibuilder/sdk 1.2.18 → 1.2.20

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 (101) hide show
  1. package/dist/{AddBlocks-uCdu9Xpr.js → AddBlocks-VIWJkaHJ.js} +24 -25
  2. package/dist/AddBlocks-X9eh8OWJ.cjs +1 -0
  3. package/dist/{BrandingOptions-JbHRN7V5.js → BrandingOptions-5ss0k1nb.js} +12 -13
  4. package/dist/BrandingOptions-PzPdafIT.cjs +1 -0
  5. package/dist/CanvasArea-TTGqlBKO.js +908 -0
  6. package/dist/CanvasArea-hoyr4dfb.cjs +55 -0
  7. package/dist/CurrentPage-EddxgHU-.cjs +1 -0
  8. package/dist/{CurrentPage-AlOLPG4o.js → CurrentPage-a3T2uy8Q.js} +10 -12
  9. package/dist/ListTree-kergCZrw.js +126 -0
  10. package/dist/ListTree-tADrgsqZ.cjs +1 -0
  11. package/dist/Outline-3IHYlOzF.cjs +1 -0
  12. package/dist/Outline-rNFJGkap.js +294 -0
  13. package/dist/{PagesPanel-VbSQHEu_.js → PagesPanel-0bL28ofN.js} +5 -7
  14. package/dist/PagesPanel-B33hWN11.cjs +1 -0
  15. package/dist/ProjectPanel-qtRTXNOP.cjs +1 -0
  16. package/dist/{ProjectPanel-fqux215P.js → ProjectPanel-sBRkUXnY.js} +15 -17
  17. package/dist/{Settings-IhWI1ice.js → Settings-HgGe1ANj.js} +587 -554
  18. package/dist/Settings-rXxS3RGM.cjs +1 -0
  19. package/dist/{SidePanels-lMCXrchR.js → SidePanels-R_g9rSjP.js} +132 -134
  20. package/dist/SidePanels-aAm-2A3s.cjs +1 -0
  21. package/dist/{Topbar-DYiisBtw.js → Topbar-AUTKpVHO.js} +3 -4
  22. package/dist/Topbar-cXtxVswU.cjs +1 -0
  23. package/dist/TypeIcon-ElNNPazl.cjs +1 -0
  24. package/dist/TypeIcon-qO96rNbV.js +69 -0
  25. package/dist/{UnsplashImages-lGLcqo4M.js → UnsplashImages-1RFHZIte.js} +13 -14
  26. package/dist/UnsplashImages-p34UJJWJ.cjs +1 -0
  27. package/dist/UploadImages-CLfyNo1i.cjs +1 -0
  28. package/dist/{UploadImages-06m6vjbL.js → UploadImages-G2orrhmZ.js} +8 -9
  29. package/dist/{add-page-modal-mEbIXSKX.js → add-page-modal-DUthvJNJ.js} +7 -9
  30. package/dist/add-page-modal-KCy_Khfe.cjs +1 -0
  31. package/dist/confirm-alert-T8vimDRx.cjs +1 -0
  32. package/dist/{confirm-alert-YETlIRpE.js → confirm-alert-nk2WQHud.js} +3 -4
  33. package/dist/{controls-Dy1qa8Dc.cjs → controls-KK2oLIa8.cjs} +1 -1
  34. package/dist/{controls-XPXGHKht.js → controls-OfJWSEqC.js} +29 -28
  35. package/dist/core.cjs +1 -1
  36. package/dist/core.d.ts +2 -1
  37. package/dist/core.js +45 -47
  38. package/dist/defaultTheme-7Lk2zq60.cjs +1 -0
  39. package/dist/{defaultTheme-s0cpA5Oy.js → defaultTheme-gunU_Fe5.js} +31 -33
  40. package/dist/{delete-page-modal-J_SmPWrw.js → delete-page-modal-WvWRQUgU.js} +8 -10
  41. package/dist/delete-page-modal-_pFjWLJn.cjs +1 -0
  42. package/dist/email-blocks.cjs +1 -1
  43. package/dist/email-blocks.js +81 -81
  44. package/dist/email.cjs +1 -1
  45. package/dist/email.d.ts +2 -0
  46. package/dist/email.js +4 -6
  47. package/dist/{form-Y0Vb4m04.cjs → form-YnnWtUGk.cjs} +1 -1
  48. package/dist/{form-2xJcQs_Y.js → form-kXQX4L2W.js} +1 -1
  49. package/dist/{index-627XtO9e.js → index--Pt4B5bv.js} +3 -3
  50. package/dist/index-DeHH1q_1.cjs +1 -0
  51. package/dist/{index-3TQsdso6.cjs → index-JqRQZLN5.cjs} +1 -1
  52. package/dist/{index-LF3KXx4u.js → index-QIbDWoML.js} +8308 -8162
  53. package/dist/{index-ZwpjuB-N.cjs → index-e5cgISUO.cjs} +51 -51
  54. package/dist/{index-ZBqiaKhx.js → index-la4rqGKN.js} +802 -794
  55. package/dist/lib.cjs +1 -1
  56. package/dist/lib.js +1 -1
  57. package/dist/page-viewer-6phtctz6.cjs +1 -0
  58. package/dist/{page-viewer-7u0SWWmO.js → page-viewer-s_lHBVfx.js} +6 -8
  59. package/dist/project-general-setting-SaNOMXEl.cjs +1 -0
  60. package/dist/{project-general-setting-SqC85J7F.js → project-general-setting-gj4A0X5W.js} +7 -9
  61. package/dist/{project-seo-setting-TlQherop.js → project-seo-setting-aCPg-IIc.js} +5 -6
  62. package/dist/project-seo-setting-bMDdgKRZ.cjs +1 -0
  63. package/dist/render.cjs +1 -1
  64. package/dist/render.d.ts +10 -0
  65. package/dist/render.js +164 -78
  66. package/dist/{single-page-detail-ClZYIdSO.js → single-page-detail-TP-cxVIT.js} +36 -38
  67. package/dist/single-page-detail-er8i2FIF.cjs +1 -0
  68. package/dist/studio.cjs +1 -1
  69. package/dist/studio.d.ts +2 -0
  70. package/dist/studio.js +4 -6
  71. package/dist/ui.cjs +1 -1
  72. package/dist/ui.d.ts +1 -1
  73. package/dist/ui.js +130 -131
  74. package/dist/{useAddBlockByDrop-E343zoB3.cjs → useAddBlockByDrop-LSV8adwE.cjs} +1 -1
  75. package/dist/{useAddBlockByDrop-sPX4lN-O.js → useAddBlockByDrop-_vczk5o_.js} +1 -1
  76. package/dist/web-blocks.cjs +1 -1
  77. package/dist/web-blocks.js +1 -1
  78. package/package.json +4 -14
  79. package/dist/AddBlocks-5Q5w5lPJ.cjs +0 -1
  80. package/dist/BrandingOptions-xrGQI1Kn.cjs +0 -1
  81. package/dist/CanvasArea-aWzbzB9p.js +0 -1403
  82. package/dist/CanvasArea-oUIvLfdq.cjs +0 -60
  83. package/dist/CurrentPage-atmd8UrZ.cjs +0 -1
  84. package/dist/Outline-oGoAdnBw.js +0 -355
  85. package/dist/Outline-uMUTwN-R.cjs +0 -1
  86. package/dist/PagesPanel-nN3QUwXp.cjs +0 -1
  87. package/dist/ProjectPanel-UIEFhref.cjs +0 -1
  88. package/dist/Settings-8qUW0Iow.cjs +0 -1
  89. package/dist/SidePanels-cOHgPE9y.cjs +0 -1
  90. package/dist/Topbar-vLD-rWl5.cjs +0 -1
  91. package/dist/UnsplashImages-1JWfKlBc.cjs +0 -1
  92. package/dist/UploadImages-T4MYMOhW.cjs +0 -1
  93. package/dist/add-page-modal-niwhffYL.cjs +0 -1
  94. package/dist/confirm-alert-ZpEIxh3X.cjs +0 -1
  95. package/dist/defaultTheme-1XwPZT2b.cjs +0 -1
  96. package/dist/delete-page-modal-sOqRlmKb.cjs +0 -1
  97. package/dist/index-T3wfa1kz.cjs +0 -1
  98. package/dist/page-viewer-6UDraUKW.cjs +0 -1
  99. package/dist/project-general-setting-AW5Vtmgx.cjs +0 -1
  100. package/dist/project-seo-setting-cWiNZcxW.cjs +0 -1
  101. package/dist/single-page-detail-kJUW6FE9.cjs +0 -1
@@ -1,18 +1,18 @@
1
1
  import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
- import { KeyboardIcon as U, PlusIcon as J, Half2Icon as q } from "@radix-ui/react-icons";
3
- import j, { useState as p, useEffect as Y, useMemo as Z, lazy as w, Suspense as y } from "react";
4
- import { useAtom as M } from "jotai";
5
- import { filter as N, map as K, isNull as $, find as G, isEmpty as Q, each as W, get as X } from "lodash-es";
6
- import { ad as H, ae as F, af as L, ag as R, ah as ee, A as se, a as re, b as le, c as ae, d as ie, e as te, f as oe, g as ne, ai as ce, y as de, C as me, aj as xe, ak as pe, al as he, am as ue, an as E, ao as fe, ap as je, aq as ve, B as v, ar as ge, as as B, h as T, at as be, S as z, au as V, av as O, aw as S, ax as _ } from "./index-ZBqiaKhx.js";
7
- import { ListTreeIcon as A, DatabaseIcon as ye } from "lucide-react";
8
- import { getChaiDataProviders as Ne } from "@chaibuilder/runtime";
9
- import { useTranslation as g } from "react-i18next";
10
- import { J as we, a as ke, d as Ce } from "./index-e0c8PmRQ.js";
11
- import { E as De } from "./index-LF3KXx4u.js";
12
- import { c as Te } from "./Functions-7jnEwJyw.js";
2
+ import { KeyboardIcon as J, PlusIcon as q, Half2Icon as Y } from "@radix-ui/react-icons";
3
+ import v, { useState as p, useEffect as Z, useMemo as $, lazy as b, Suspense as N } from "react";
4
+ import { useAtom as H } from "jotai";
5
+ import { filter as w, map as E, isNull as G, find as Q, isEmpty as W, each as X, get as ee } from "lodash-es";
6
+ import { ad as F, ae as L, af as R, ag as U, ah as se, A as re, a as ae, b as le, c as ie, d as te, e as oe, f as ne, g as ce, ai as de, y as me, C as xe, aj as pe, ak as he, al as ue, am as fe, an as B, ao as je, ap as ve, aq as ge, B as g, ar as be, as as z, h as T, at as ye, S as V, au as O, av as I, aw as A, ax as S } from "./index-la4rqGKN.js";
7
+ import { ListTreeIcon as _, DatabaseIcon as Ne } from "lucide-react";
8
+ import { getChaiDataProviders as we } from "@chaibuilder/runtime";
9
+ import { useTranslation as y } from "react-i18next";
10
+ import { J as ke, a as Ce, d as De } from "./index-e0c8PmRQ.js";
11
+ import { E as Te } from "./index-QIbDWoML.js";
12
+ import { c as Ae } from "./Functions-7jnEwJyw.js";
13
13
  import { O as i } from "./MODIFIERS-WQdaNvb8.js";
14
+ import { useFeature as Se } from "flagged";
14
15
  import "./_commonjsHelpers-UyOWmZb0.js";
15
- import "flat-to-nested";
16
16
  import "@react-hookz/web";
17
17
  import "@radix-ui/react-toggle";
18
18
  import "class-variance-authority";
@@ -42,31 +42,29 @@ import "react-dom";
42
42
  import "react-quill";
43
43
  import "i18next";
44
44
  import "@floating-ui/react-dom";
45
- import "react-textarea-autosize";
46
- import "flagged";
47
45
  import "react-dnd";
48
46
  import "@minoru/react-dnd-treeview";
49
47
  import "react-hotkeys-hook";
50
- const Se = ({ provider: s, onClose: o }) => {
51
- const { t: l } = g(), [a, h] = p(null);
52
- return Y(() => {
48
+ const _e = ({ provider: s, onClose: o }) => {
49
+ const { t: a } = y(), [l, h] = p(null);
50
+ return Z(() => {
53
51
  s && (s.mockFn ? s.mockFn : s.dataFn)().then((n) => h(n));
54
- }, [s]), s ? /* @__PURE__ */ e.jsx(H, { onOpenChange: (d) => d ? "" : o(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(F, { children: [
55
- /* @__PURE__ */ e.jsxs(L, { children: [
56
- /* @__PURE__ */ e.jsxs(R, { children: [
57
- l("data_provider"),
52
+ }, [s]), s ? /* @__PURE__ */ e.jsx(F, { onOpenChange: (c) => c ? "" : o(), defaultOpen: !0, children: /* @__PURE__ */ e.jsxs(L, { children: [
53
+ /* @__PURE__ */ e.jsxs(R, { children: [
54
+ /* @__PURE__ */ e.jsxs(U, { children: [
55
+ a("data_provider"),
58
56
  ": ",
59
57
  s.name
60
58
  ] }),
61
- /* @__PURE__ */ e.jsx(ee, { children: s.description })
59
+ /* @__PURE__ */ e.jsx(se, { children: s.description })
62
60
  ] }),
63
- /* @__PURE__ */ e.jsx(De, { children: /* @__PURE__ */ e.jsx(
64
- we,
61
+ /* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsx(
62
+ ke,
65
63
  {
66
- data: a,
67
- shouldExpandNode: ke,
64
+ data: l,
65
+ shouldExpandNode: Ce,
68
66
  style: {
69
- ...Ce,
67
+ ...De,
70
68
  container: "max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",
71
69
  stringValue: "text-orange-600",
72
70
  label: "text-green-900 font-semibold pr-1 tracking-wider"
@@ -75,64 +73,64 @@ const Se = ({ provider: s, onClose: o }) => {
75
73
  ) })
76
74
  ] }) }) : null;
77
75
  };
78
- function _e({
76
+ function Pe({
79
77
  children: s,
80
78
  name: o,
81
- onRemove: l
79
+ onRemove: a
82
80
  }) {
83
- const { t: a } = g();
84
- return /* @__PURE__ */ e.jsxs(se, { children: [
85
- /* @__PURE__ */ e.jsx(re, { asChild: !0, children: s }),
81
+ const { t: l } = y();
82
+ return /* @__PURE__ */ e.jsxs(re, { children: [
83
+ /* @__PURE__ */ e.jsx(ae, { asChild: !0, children: s }),
86
84
  /* @__PURE__ */ e.jsxs(le, { children: [
87
- /* @__PURE__ */ e.jsxs(ae, { children: [
85
+ /* @__PURE__ */ e.jsxs(ie, { children: [
88
86
  /* @__PURE__ */ e.jsx(
89
- ie,
87
+ te,
90
88
  {
91
- dangerouslySetInnerHTML: { __html: a("remove_provider_confirmation").replace("{name}", o) }
89
+ dangerouslySetInnerHTML: { __html: l("remove_provider_confirmation").replace("{name}", o) }
92
90
  }
93
91
  ),
94
- /* @__PURE__ */ e.jsx(te, { children: a("remove_provider_warning") })
92
+ /* @__PURE__ */ e.jsx(oe, { children: l("remove_provider_warning") })
95
93
  ] }),
96
- /* @__PURE__ */ e.jsxs(oe, { children: [
97
- /* @__PURE__ */ e.jsx(ne, { children: a("cancel") }),
98
- /* @__PURE__ */ e.jsx(ce, { onClick: l, className: "bg-red-600 hover:bg-red-700", children: a("remove") })
94
+ /* @__PURE__ */ e.jsxs(ne, { children: [
95
+ /* @__PURE__ */ e.jsx(ce, { children: l("cancel") }),
96
+ /* @__PURE__ */ e.jsx(de, { onClick: a, className: "bg-red-600 hover:bg-red-700", children: l("remove") })
99
97
  ] })
100
98
  ] })
101
99
  ] });
102
100
  }
103
- const Ae = () => {
104
- const { t: s } = g(), o = Z(() => Ne(), []), [l, a] = de(), [, h] = M(me), [d, n] = p(
105
- N(o, (r) => K(l, "providerKey").includes(r.providerKey))
106
- ), [k, u] = p(""), [b, c] = p(null), C = N(
107
- o.map((r) => K(d, "providerKey").includes(r.providerKey) ? null : { value: r.providerKey, label: r.name }),
108
- (r) => !$(r)
109
- ), D = (r) => {
110
- const x = G(o, { providerKey: r });
111
- n((m) => [...m, x]), a((m) => [...m, { providerKey: x.providerKey, args: {} }]), u(""), h("UNSAVED");
112
- }, t = (r) => {
113
- n((x) => N(x, (m) => m.providerKey !== r.providerKey)), a((x) => N(x, (m) => m.providerKey !== r.providerKey)), h("UNSAVED");
114
- }, f = (r) => c(r);
115
- return Q(o) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
101
+ const Ke = () => {
102
+ const { t: s } = y(), o = $(() => we(), []), [a, l] = me(), [, h] = H(xe), [c, n] = p(
103
+ w(o, (r) => E(a, "providerKey").includes(r.providerKey))
104
+ ), [k, u] = p(""), [f, j] = p(null), d = w(
105
+ o.map((r) => E(c, "providerKey").includes(r.providerKey) ? null : { value: r.providerKey, label: r.name }),
106
+ (r) => !G(r)
107
+ ), C = (r) => {
108
+ const x = Q(o, { providerKey: r });
109
+ n((m) => [...m, x]), l((m) => [...m, { providerKey: x.providerKey, args: {} }]), u(""), h("UNSAVED");
110
+ }, D = (r) => {
111
+ n((x) => w(x, (m) => m.providerKey !== r.providerKey)), l((x) => w(x, (m) => m.providerKey !== r.providerKey)), h("UNSAVED");
112
+ }, t = (r) => j(r);
113
+ return W(o) ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("p", { className: "mb-1.5 p-4 text-xs text-gray-500", children: [
116
114
  s("no_data_providers"),
117
115
  /* @__PURE__ */ e.jsx("br", {}),
118
116
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: s("learn_more") })
119
117
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-1", children: [
120
118
  /* @__PURE__ */ e.jsx("br", {}),
121
119
  /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx("p", { className: "mb-1.5 text-xs text-gray-500", children: s("add_data_providers") }) }),
122
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(xe, { value: k, onValueChange: (r) => D(r), children: [
123
- /* @__PURE__ */ e.jsx(pe, { className: "w-full", children: /* @__PURE__ */ e.jsx(he, { placeholder: s("select_provider") }) }),
124
- /* @__PURE__ */ e.jsxs(ue, { children: [
125
- /* @__PURE__ */ e.jsx(E, { value: "", children: s("choose") }),
126
- C.map((r) => /* @__PURE__ */ e.jsx(E, { value: r.value, children: r.label }, r.value))
120
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-1", children: /* @__PURE__ */ e.jsxs(pe, { value: k, onValueChange: (r) => C(r), children: [
121
+ /* @__PURE__ */ e.jsx(he, { className: "w-full", children: /* @__PURE__ */ e.jsx(ue, { placeholder: s("select_provider") }) }),
122
+ /* @__PURE__ */ e.jsxs(fe, { children: [
123
+ /* @__PURE__ */ e.jsx(B, { value: "", children: s("choose") }),
124
+ d.map((r) => /* @__PURE__ */ e.jsx(B, { value: r.value, children: r.label }, r.value))
127
125
  ] })
128
126
  ] }) }),
129
127
  /* @__PURE__ */ e.jsx("br", {}),
130
- /* @__PURE__ */ e.jsxs("div", { className: `border-t ${d.length ? "block" : "hidden"}`, children: [
128
+ /* @__PURE__ */ e.jsxs("div", { className: `border-t ${c.length ? "block" : "hidden"}`, children: [
131
129
  /* @__PURE__ */ e.jsxs("p", { className: "flex-1 pb-1.5 pt-4 text-xs font-medium text-gray-500", children: [
132
130
  s("page_data_providers"),
133
131
  ":"
134
132
  ] }),
135
- /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: d.map((r) => /* @__PURE__ */ e.jsxs(
133
+ /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: c.map((r) => /* @__PURE__ */ e.jsxs(
136
134
  "div",
137
135
  {
138
136
  className: "w-full rounded-lg border bg-card text-card-foreground shadow-sm",
@@ -146,7 +144,7 @@ const Ae = () => {
146
144
  /* @__PURE__ */ e.jsxs(
147
145
  "button",
148
146
  {
149
- onClick: () => f(r),
147
+ onClick: () => t(r),
150
148
  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",
151
149
  children: [
152
150
  /* @__PURE__ */ e.jsxs(
@@ -172,7 +170,7 @@ const Ae = () => {
172
170
  ]
173
171
  }
174
172
  ),
175
- /* @__PURE__ */ e.jsx(_e, { onRemove: () => t(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: [
173
+ /* @__PURE__ */ e.jsx(Pe, { onRemove: () => D(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: [
176
174
  /* @__PURE__ */ e.jsxs(
177
175
  "svg",
178
176
  {
@@ -200,126 +198,126 @@ const Ae = () => {
200
198
  },
201
199
  r.providerKey
202
200
  )) }),
203
- /* @__PURE__ */ e.jsx(Se, { onClose: () => c(null), provider: b })
201
+ /* @__PURE__ */ e.jsx(_e, { onClose: () => j(null), provider: f })
204
202
  ] })
205
203
  ] });
206
- }, Pe = () => {
207
- const { t: s } = g(), o = {
204
+ }, Ee = () => {
205
+ const { t: s } = y(), o = {
208
206
  "ctrl + Z": "Undo",
209
207
  "ctrl + Y": "Redo",
210
208
  "ctrl + D": "Duplicate"
211
- }, l = {
209
+ }, a = {
212
210
  // "ctrl + /": "Rename block",
213
211
  "ctrl + S": "Save page",
214
212
  esc: "Deselect blocks",
215
213
  del: "Delete block"
216
214
  };
217
- return /* @__PURE__ */ e.jsxs(H, { children: [
218
- /* @__PURE__ */ e.jsx(fe, { children: /* @__PURE__ */ e.jsxs(je, { children: [
219
- /* @__PURE__ */ e.jsx(ve, { children: /* @__PURE__ */ e.jsx(v, { size: "sm", className: "w-10", variant: "outline", children: /* @__PURE__ */ e.jsx(U, {}) }) }),
220
- /* @__PURE__ */ e.jsx(ge, { children: /* @__PURE__ */ e.jsx("p", { children: s("Keyboard shortcuts") }) })
215
+ return /* @__PURE__ */ e.jsxs(F, { children: [
216
+ /* @__PURE__ */ e.jsx(je, { children: /* @__PURE__ */ e.jsxs(ve, { children: [
217
+ /* @__PURE__ */ e.jsx(ge, { children: /* @__PURE__ */ e.jsx(g, { size: "sm", className: "w-10", variant: "outline", children: /* @__PURE__ */ e.jsx(J, {}) }) }),
218
+ /* @__PURE__ */ e.jsx(be, { children: /* @__PURE__ */ e.jsx("p", { children: s("Keyboard shortcuts") }) })
221
219
  ] }) }),
222
- /* @__PURE__ */ e.jsxs(F, { className: "sm:max-w-[525px]", children: [
223
- /* @__PURE__ */ e.jsx(L, { children: /* @__PURE__ */ e.jsx(R, { children: s("Keyboard shortcuts") }) }),
220
+ /* @__PURE__ */ e.jsxs(L, { className: "sm:max-w-[525px]", children: [
221
+ /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(U, { children: s("Keyboard shortcuts") }) }),
224
222
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2", children: [
225
- /* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(o).map((a) => /* @__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: s(a) }),
227
- /* @__PURE__ */ e.jsx("div", { children: s(o[a]) })
228
- ] })) }),
229
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-y-2", children: Object.keys(l).map((a) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
230
- /* @__PURE__ */ e.jsx(B, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(a) }),
231
- /* @__PURE__ */ e.jsx("div", { children: s(l[a]) })
223
+ /* @__PURE__ */ e.jsx("div", { className: "mr-8 flex flex-col space-y-2 border-r border-gray-200", children: Object.keys(o).map((l) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
224
+ /* @__PURE__ */ e.jsx(z, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
225
+ /* @__PURE__ */ e.jsx("div", { children: s(o[l]) })
226
+ ] }, l)) }),
227
+ /* @__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: [
228
+ /* @__PURE__ */ e.jsx(z, { variant: "outline", className: "border border-gray-600 p-1 px-2", children: s(l) }),
229
+ /* @__PURE__ */ e.jsx("div", { children: s(a[l]) })
232
230
  ] })) })
233
231
  ] }) })
234
232
  ] })
235
233
  ] });
236
- }, Ke = w(() => import("./AddBlocks-uCdu9Xpr.js")), P = w(() => import("./Outline-oGoAdnBw.js")), Ee = w(() => import("./BrandingOptions-JbHRN7V5.js")), Be = w(() => import("./index-ZBqiaKhx.js").then((s) => s.cq));
237
- let I = null;
238
- const As = () => {
239
- const s = T("sideBarComponents.top", []), o = T("sideBarComponents.bottom", []), [l, a] = M(be), [h, d] = p(l), [n, k] = p(null), { t: u } = g(), b = {
240
- "add-blocks": Ke,
241
- [i]: P,
242
- "branding-options": Ee,
243
- images: Be
234
+ }, Be = b(() => import("./AddBlocks-VIWJkaHJ.js")), P = b(() => import("./Outline-rNFJGkap.js")), K = b(() => import("./ListTree-kergCZrw.js")), ze = b(() => import("./BrandingOptions-5ss0k1nb.js")), Ve = b(() => import("./index-la4rqGKN.js").then((s) => s.cq));
235
+ let M = null;
236
+ const _s = () => {
237
+ const s = T("sideBarComponents.top", []), o = T("sideBarComponents.bottom", []), [a, l] = H(ye), [h, c] = p(a), [n, k] = p(null), { t: u } = y(), f = Se("arborist"), j = {
238
+ "add-blocks": Be,
239
+ [i]: f ? K : P,
240
+ "branding-options": ze,
241
+ images: Ve
244
242
  };
245
- W(s, ({ name: t, panel: f }) => {
246
- b[t] = f;
243
+ X(s, ({ name: t, panel: r }) => {
244
+ j[t] = r;
247
245
  });
248
- const c = (t) => {
249
- clearTimeout(I), l !== i && t === i ? I = setTimeout(() => a(i), 500) : d(t), a(t);
246
+ const d = (t) => {
247
+ clearTimeout(M), a !== i && t === i ? M = setTimeout(() => l(i), 500) : c(t), l(t);
250
248
  }, C = T("dataBindingSupport", !1);
251
249
  function D() {
252
250
  const t = setTimeout(() => {
253
- n && (c(i), clearTimeout(n));
251
+ n && (d(i), clearTimeout(n));
254
252
  }, 500);
255
253
  k(t);
256
254
  }
257
255
  return /* @__PURE__ */ e.jsxs("div", { className: "relative flex", children: [
258
- l !== i ? /* @__PURE__ */ e.jsx(
256
+ a !== i ? /* @__PURE__ */ e.jsx(
259
257
  "div",
260
258
  {
261
259
  onMouseEnter: D,
262
- onClick: () => c(i),
260
+ onClick: () => d(i),
263
261
  className: "fixed inset-0 z-[50] bg-black/20"
264
262
  }
265
263
  ) : null,
266
264
  /* @__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: [
267
265
  /* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2", children: [
268
266
  /* @__PURE__ */ e.jsx(
269
- v,
267
+ g,
270
268
  {
271
269
  onClick: () => {
272
- c("add-blocks");
270
+ d("add-blocks");
273
271
  },
274
272
  size: "sm",
275
- variant: l === "add-blocks" ? "default" : "outline",
276
- children: /* @__PURE__ */ e.jsx(J, { className: "text-xl" })
273
+ variant: a === "add-blocks" ? "default" : "outline",
274
+ children: /* @__PURE__ */ e.jsx(q, { className: "text-xl" })
277
275
  }
278
276
  ),
279
277
  /* @__PURE__ */ e.jsx(
280
- v,
278
+ g,
281
279
  {
282
- onClick: () => c(i),
280
+ onClick: () => d(i),
283
281
  size: "sm",
284
- variant: l === i ? "default" : "outline",
285
- children: /* @__PURE__ */ e.jsx(A, { className: "w-4" })
282
+ variant: a === i ? "default" : "outline",
283
+ children: /* @__PURE__ */ e.jsx(_, { className: "w-4" })
286
284
  }
287
285
  ),
288
286
  /* @__PURE__ */ e.jsx(
289
- v,
287
+ g,
290
288
  {
291
- onClick: () => c("branding-options"),
289
+ onClick: () => d("branding-options"),
292
290
  size: "sm",
293
- variant: l === "branding-options" ? "default" : "outline",
294
- children: /* @__PURE__ */ e.jsx(q, { className: "w-4 max-w-[40px] text-xs" })
291
+ variant: a === "branding-options" ? "default" : "outline",
292
+ children: /* @__PURE__ */ e.jsx(Y, { className: "w-4 max-w-[40px] text-xs" })
295
293
  }
296
294
  ),
297
- j.Children.toArray(
298
- s.map(({ name: t, icon: f }) => /* @__PURE__ */ e.jsx(y, { fallback: /* @__PURE__ */ e.jsx(z, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
299
- v,
295
+ v.Children.toArray(
296
+ s.map(({ name: t, icon: r }) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(V, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(
297
+ g,
300
298
  {
301
- onClick: () => c(t),
299
+ onClick: () => d(t),
302
300
  size: "sm",
303
301
  className: "w-10",
304
- variant: l === t ? "default" : "outline",
305
- children: /* @__PURE__ */ e.jsx(f, {})
302
+ variant: a === t ? "default" : "outline",
303
+ children: /* @__PURE__ */ e.jsx(r, {})
306
304
  }
307
305
  ) }))
308
306
  )
309
307
  ] }),
310
308
  /* @__PURE__ */ e.jsxs("div", { className: "relative z-[100] flex w-14 flex-col items-center space-y-2 pb-2", children: [
311
- /* @__PURE__ */ e.jsx(Pe, {}),
312
- j.Children.toArray(
313
- o.map((t) => /* @__PURE__ */ e.jsx(y, { fallback: /* @__PURE__ */ e.jsx(z, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(t, {}) }))
309
+ /* @__PURE__ */ e.jsx(Ee, {}),
310
+ v.Children.toArray(
311
+ o.map((t) => /* @__PURE__ */ e.jsx(N, { fallback: /* @__PURE__ */ e.jsx(V, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(t, {}) }))
314
312
  )
315
313
  ] })
316
314
  ] }),
317
315
  /* @__PURE__ */ e.jsx(
318
316
  "div",
319
317
  {
320
- className: `absolute left-14 z-[50] h-full w-96 border-r bg-background duration-500 ease-in-out ${l !== i ? "translate-x-0" : "-translate-x-full"}`,
318
+ className: `absolute left-14 z-[50] h-full w-96 border-r bg-background duration-500 ease-in-out ${a !== i ? "translate-x-0" : "-translate-x-full"}`,
321
319
  children: /* @__PURE__ */ e.jsx(
322
- y,
320
+ N,
323
321
  {
324
322
  fallback: /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-2 bg-white p-4", children: [
325
323
  /* @__PURE__ */ e.jsx("div", { className: "h-6 w-1/2 bg-gray-300" }),
@@ -329,14 +327,14 @@ const As = () => {
329
327
  children: /* @__PURE__ */ e.jsx(
330
328
  "div",
331
329
  {
332
- className: Te(
330
+ className: Ae(
333
331
  "relative h-full max-h-[93%] overflow-y-auto overflow-x-hidden bg-background p-1",
334
- l === i ? "" : "z-[100]"
332
+ a === i ? "" : "z-[100]"
335
333
  ),
336
334
  onMouseEnter: () => {
337
335
  n && clearTimeout(n);
338
336
  },
339
- children: j.createElement(X(b, l, () => /* @__PURE__ */ e.jsx("div", {})))
337
+ children: v.createElement(ee(j, a, () => /* @__PURE__ */ e.jsx("div", {})))
340
338
  }
341
339
  )
342
340
  }
@@ -344,39 +342,39 @@ const As = () => {
344
342
  }
345
343
  ),
346
344
  /* @__PURE__ */ e.jsx("div", { className: "h-full w-60 border-r p-1", children: /* @__PURE__ */ e.jsx(
347
- y,
345
+ N,
348
346
  {
349
347
  fallback: /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-2 p-4", children: [
350
348
  /* @__PURE__ */ e.jsx("div", { className: "h-6 w-1/2 bg-gray-300" }),
351
349
  /* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" }),
352
350
  /* @__PURE__ */ e.jsx("div", { className: "h-16 w-full bg-gray-200" })
353
351
  ] }),
354
- children: C ? /* @__PURE__ */ e.jsxs(V, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
355
- /* @__PURE__ */ e.jsxs(O, { className: "mx-1 grid h-10 grid-cols-2", children: [
356
- /* @__PURE__ */ e.jsxs(S, { value: i, children: [
357
- /* @__PURE__ */ e.jsx(A, { className: "mr-2 h-3" }),
352
+ children: C ? /* @__PURE__ */ e.jsxs(O, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
353
+ /* @__PURE__ */ e.jsxs(I, { className: "mx-1 grid h-10 grid-cols-2", children: [
354
+ /* @__PURE__ */ e.jsxs(A, { value: i, children: [
355
+ /* @__PURE__ */ e.jsx(_, { className: "mr-2 h-3" }),
358
356
  " ",
359
357
  u("Outline")
360
358
  ] }),
361
- /* @__PURE__ */ e.jsxs(S, { value: "data-provider", children: [
362
- /* @__PURE__ */ e.jsx(ye, { className: "mr-2 w-3" }),
359
+ /* @__PURE__ */ e.jsxs(A, { value: "data-provider", children: [
360
+ /* @__PURE__ */ e.jsx(Ne, { className: "mr-2 w-3" }),
363
361
  u("Data")
364
362
  ] })
365
363
  ] }),
366
- /* @__PURE__ */ e.jsx(_, { value: i, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: j.createElement(P) }),
367
- /* @__PURE__ */ e.jsx(_, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Ae, {}) })
368
- ] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(V, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
369
- /* @__PURE__ */ e.jsx(O, { className: "mx-1 grid h-10 grid-cols-1", children: /* @__PURE__ */ e.jsxs(S, { value: i, children: [
370
- /* @__PURE__ */ e.jsx(A, { className: "mr-2 h-3" }),
364
+ /* @__PURE__ */ e.jsx(S, { value: i, className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden", children: v.createElement(f ? K : P) }),
365
+ /* @__PURE__ */ e.jsx(S, { value: "data-provider", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Ke, {}) })
366
+ ] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(O, { defaultValue: i, className: "flex h-full w-full flex-col py-1", children: [
367
+ /* @__PURE__ */ e.jsx(I, { className: "mx-1 grid h-10 grid-cols-1", children: /* @__PURE__ */ e.jsxs(A, { value: i, children: [
368
+ /* @__PURE__ */ e.jsx(_, { className: "mr-2 h-3" }),
371
369
  " ",
372
370
  u("Outline")
373
371
  ] }) }),
374
372
  /* @__PURE__ */ e.jsx(
375
- _,
373
+ S,
376
374
  {
377
375
  value: i,
378
376
  className: "no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",
379
- children: j.createElement(P)
377
+ children: v.createElement(f ? K : P)
380
378
  }
381
379
  )
382
380
  ] }) })
@@ -385,5 +383,5 @@ const As = () => {
385
383
  ] });
386
384
  };
387
385
  export {
388
- As as default
386
+ _s as default
389
387
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),k=require("@radix-ui/react-icons"),i=require("react"),D=require("jotai"),u=require("lodash-es"),s=require("./index-DeHH1q_1.cjs"),R=require("lucide-react"),K=require("@chaibuilder/runtime"),g=require("react-i18next"),w=require("./index-gi1LIOCw.cjs"),S=require("./index-e5cgISUO.cjs"),I=require("./Functions-N3yhPYKY.cjs"),l=require("./MODIFIERS-9EwxLM8V.cjs"),C=require("flagged");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-MmCxz2Ay.cjs");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");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-dom");require("react-quill");require("i18next");require("@floating-ui/react-dom");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");const P=({provider:t,onClose:a})=>{const{t:n}=g.useTranslation(),[o,h]=i.useState(null);return i.useEffect(()=>{t&&(t.mockFn?t.mockFn:t.dataFn)().then(c=>h(c))},[t]),t?e.jsxRuntimeExports.jsx(s.Dialog,{onOpenChange:d=>d?"":a(),defaultOpen:!0,children:e.jsxRuntimeExports.jsxs(s.DialogContent,{children:[e.jsxRuntimeExports.jsxs(s.DialogHeader,{children:[e.jsxRuntimeExports.jsxs(s.DialogTitle,{children:[n("data_provider"),": ",t.name]}),e.jsxRuntimeExports.jsx(s.DialogDescription,{children:t.description})]}),e.jsxRuntimeExports.jsx(S.ErrorBoundary,{children:e.jsxRuntimeExports.jsx(w.JsonView,{data:o,shouldExpandNode:w.allExpanded,style:{...w.defaultStyles,container:"max-h-[80vh] overflow-y-auto text-[12px] leading-[1.5] tracking-wide font-mono",stringValue:"text-orange-600",label:"text-green-900 font-semibold pr-1 tracking-wider"}})})]})}):null};function O({children:t,name:a,onRemove:n}){const{t:o}=g.useTranslation();return e.jsxRuntimeExports.jsxs(s.AlertDialog,{children:[e.jsxRuntimeExports.jsx(s.AlertDialogTrigger,{asChild:!0,children:t}),e.jsxRuntimeExports.jsxs(s.AlertDialogContent,{children:[e.jsxRuntimeExports.jsxs(s.AlertDialogHeader,{children:[e.jsxRuntimeExports.jsx(s.AlertDialogTitle,{dangerouslySetInnerHTML:{__html:o("remove_provider_confirmation").replace("{name}",a)}}),e.jsxRuntimeExports.jsx(s.AlertDialogDescription,{children:o("remove_provider_warning")})]}),e.jsxRuntimeExports.jsxs(s.AlertDialogFooter,{children:[e.jsxRuntimeExports.jsx(s.AlertDialogCancel,{children:o("cancel")}),e.jsxRuntimeExports.jsx(s.AlertDialogAction,{onClick:n,className:"bg-red-600 hover:bg-red-700",children:o("remove")})]})]})]})}const L=()=>{const{t}=g.useTranslation(),a=i.useMemo(()=>K.getChaiDataProviders(),[]),[n,o]=s.usePageDataProviders(),[,h]=D.useAtom(s.pageSyncStateAtom),[d,c]=i.useState(u.filter(a,r=>u.map(n,"providerKey").includes(r.providerKey))),[b,E]=i.useState(""),[v,f]=i.useState(null),m=u.filter(a.map(r=>u.map(d,"providerKey").includes(r.providerKey)?null:{value:r.providerKey,label:r.name}),r=>!u.isNull(r)),N=r=>{const p=u.find(a,{providerKey:r});c(j=>[...j,p]),o(j=>[...j,{providerKey:p.providerKey,args:{}}]),E(""),h("UNSAVED")},y=r=>{c(p=>u.filter(p,j=>j.providerKey!==r.providerKey)),o(p=>u.filter(p,j=>j.providerKey!==r.providerKey)),h("UNSAVED")},x=r=>f(r);return u.isEmpty(a)?e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs("p",{className:"mb-1.5 p-4 text-xs text-gray-500",children:[t("no_data_providers"),e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsx("a",{className:"text-blue-500",href:"https://chaibuilder.com/docs/registering-data-providers",target:"_blank",children:t("learn_more")})]})}):e.jsxRuntimeExports.jsxs("div",{className:"px-1",children:[e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsx("label",{children:e.jsxRuntimeExports.jsx("p",{className:"mb-1.5 text-xs text-gray-500",children:t("add_data_providers")})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-1",children:e.jsxRuntimeExports.jsxs(s.Select,{value:b,onValueChange:r=>N(r),children:[e.jsxRuntimeExports.jsx(s.SelectTrigger,{className:"w-full",children:e.jsxRuntimeExports.jsx(s.SelectValue,{placeholder:t("select_provider")})}),e.jsxRuntimeExports.jsxs(s.SelectContent,{children:[e.jsxRuntimeExports.jsx(s.SelectItem,{value:"",children:t("choose")}),m.map(r=>e.jsxRuntimeExports.jsx(s.SelectItem,{value:r.value,children:r.label},r.value))]})]})}),e.jsxRuntimeExports.jsx("br",{}),e.jsxRuntimeExports.jsxs("div",{className:`border-t ${d.length?"block":"hidden"}`,children:[e.jsxRuntimeExports.jsxs("p",{className:"flex-1 pb-1.5 pt-4 text-xs font-medium text-gray-500",children:[t("page_data_providers"),":"]}),e.jsxRuntimeExports.jsx("div",{className:"space-y-2",children:d.map(r=>e.jsxRuntimeExports.jsxs("div",{className:"w-full rounded-lg border bg-card text-card-foreground shadow-sm","data-v0-t":"card",children:[e.jsxRuntimeExports.jsx("div",{className:"flex flex-col space-y-1.5 px-4 pt-4",children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between",children:e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx("h3",{className:"font-medium leading-4",children:r.name}),e.jsxRuntimeExports.jsx("p",{className:"pt-1 text-xs text-gray-400",children:r.description})]})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between p-2 py-2",children:[e.jsxRuntimeExports.jsxs("button",{onClick:()=>x(r),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",children:[e.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"mr-2 h-4 w-4",children:[e.jsxRuntimeExports.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),e.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),t("view_data")]}),e.jsxRuntimeExports.jsx(O,{onRemove:()=>y(r),name:r.name,children:e.jsxRuntimeExports.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:[e.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"mr-2 h-4 w-4",children:[e.jsxRuntimeExports.jsx("path",{d:"M3 6h18"}),e.jsxRuntimeExports.jsx("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),e.jsxRuntimeExports.jsx("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]}),t("remove")]})})]})]},r.providerKey))}),e.jsxRuntimeExports.jsx(P,{onClose:()=>f(null),provider:v})]})]})},A=()=>{const{t}=g.useTranslation(),a={"ctrl + Z":"Undo","ctrl + Y":"Redo","ctrl + D":"Duplicate"},n={"ctrl + S":"Save page",esc:"Deselect blocks",del:"Delete block"};return e.jsxRuntimeExports.jsxs(s.Dialog,{children:[e.jsxRuntimeExports.jsx(s.DialogTrigger,{children:e.jsxRuntimeExports.jsxs(s.Tooltip,{children:[e.jsxRuntimeExports.jsx(s.TooltipTrigger,{children:e.jsxRuntimeExports.jsx(s.Button,{size:"sm",className:"w-10",variant:"outline",children:e.jsxRuntimeExports.jsx(k.KeyboardIcon,{})})}),e.jsxRuntimeExports.jsx(s.TooltipContent,{children:e.jsxRuntimeExports.jsx("p",{children:t("Keyboard shortcuts")})})]})}),e.jsxRuntimeExports.jsxs(s.DialogContent,{className:"sm:max-w-[525px]",children:[e.jsxRuntimeExports.jsx(s.DialogHeader,{children:e.jsxRuntimeExports.jsx(s.DialogTitle,{children:t("Keyboard shortcuts")})}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2",children:[e.jsxRuntimeExports.jsx("div",{className:"mr-8 flex flex-col space-y-2 border-r border-gray-200",children:Object.keys(a).map(o=>e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxRuntimeExports.jsx(s.Badge,{variant:"outline",className:"border border-gray-600 p-1 px-2",children:t(o)}),e.jsxRuntimeExports.jsx("div",{children:t(a[o])})]},o))}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col space-y-2",children:Object.keys(n).map(o=>e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxRuntimeExports.jsx(s.Badge,{variant:"outline",className:"border border-gray-600 p-1 px-2",children:t(o)}),e.jsxRuntimeExports.jsx("div",{children:t(n[o])})]}))})]})})]})]})},U=i.lazy(()=>Promise.resolve().then(()=>require("./AddBlocks-X9eh8OWJ.cjs"))),T=i.lazy(()=>Promise.resolve().then(()=>require("./Outline-3IHYlOzF.cjs"))),q=i.lazy(()=>Promise.resolve().then(()=>require("./ListTree-tADrgsqZ.cjs"))),B=i.lazy(()=>Promise.resolve().then(()=>require("./BrandingOptions-PzPdafIT.cjs"))),Y=i.lazy(()=>Promise.resolve().then(()=>require("./index-DeHH1q_1.cjs")).then(t=>t.ImagesPanel));let _=null;const z=()=>{const t=s.useBuilderProp("sideBarComponents.top",[]),a=s.useBuilderProp("sideBarComponents.bottom",[]),[n,o]=D.useAtom(s.activePanelAtom),[h,d]=i.useState(n),[c,b]=i.useState(null),{t:E}=g.useTranslation(),v=C.useFeature("arborist"),f={"add-blocks":U,[l.OUTLINE_KEY]:v?q:T,"branding-options":B,images:Y};u.each(t,({name:x,panel:r})=>{f[x]=r});const m=x=>{clearTimeout(_),n!==l.OUTLINE_KEY&&x===l.OUTLINE_KEY?_=setTimeout(()=>o(l.OUTLINE_KEY),500):d(x),o(x)},N=s.useBuilderProp("dataBindingSupport",!1);function y(){const x=setTimeout(()=>{c&&(m(l.OUTLINE_KEY),clearTimeout(c))},500);b(x)}return e.jsxRuntimeExports.jsxs("div",{className:"relative flex",children:[n!==l.OUTLINE_KEY?e.jsxRuntimeExports.jsx("div",{onMouseEnter:y,onClick:()=>m(l.OUTLINE_KEY),className:"fixed inset-0 z-[50] bg-black/20"}):null,e.jsxRuntimeExports.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:[e.jsxRuntimeExports.jsxs("div",{className:"relative z-[100] flex w-14 flex-col items-center space-y-2",children:[e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>{m("add-blocks")},size:"sm",variant:n==="add-blocks"?"default":"outline",children:e.jsxRuntimeExports.jsx(k.PlusIcon,{className:"text-xl"})}),e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>m(l.OUTLINE_KEY),size:"sm",variant:n===l.OUTLINE_KEY?"default":"outline",children:e.jsxRuntimeExports.jsx(R.ListTreeIcon,{className:"w-4"})}),e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>m("branding-options"),size:"sm",variant:n==="branding-options"?"default":"outline",children:e.jsxRuntimeExports.jsx(k.Half2Icon,{className:"w-4 max-w-[40px] text-xs"})}),i.Children.toArray(t.map(({name:x,icon:r})=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(s.Button,{onClick:()=>m(x),size:"sm",className:"w-10",variant:n===x?"default":"outline",children:e.jsxRuntimeExports.jsx(r,{})})})))]}),e.jsxRuntimeExports.jsxs("div",{className:"relative z-[100] flex w-14 flex-col items-center space-y-2 pb-2",children:[e.jsxRuntimeExports.jsx(A,{}),i.Children.toArray(a.map(x=>e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsx(s.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(x,{})})))]})]}),e.jsxRuntimeExports.jsx("div",{className:`absolute left-14 z-[50] h-full w-96 border-r bg-background duration-500 ease-in-out ${n!==l.OUTLINE_KEY?"translate-x-0":"-translate-x-full"}`,children:e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsxs("div",{className:"flex animate-pulse flex-col gap-y-2 bg-white p-4",children:[e.jsxRuntimeExports.jsx("div",{className:"h-6 w-1/2 bg-gray-300"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"})]}),children:e.jsxRuntimeExports.jsx("div",{className:I.cn("relative h-full max-h-[93%] overflow-y-auto overflow-x-hidden bg-background p-1",n===l.OUTLINE_KEY?"":"z-[100]"),onMouseEnter:()=>{c&&clearTimeout(c)},children:i.createElement(u.get(f,n,()=>e.jsxRuntimeExports.jsx("div",{})))})})}),e.jsxRuntimeExports.jsx("div",{className:"h-full w-60 border-r p-1",children:e.jsxRuntimeExports.jsx(i.Suspense,{fallback:e.jsxRuntimeExports.jsxs("div",{className:"flex animate-pulse flex-col gap-y-2 p-4",children:[e.jsxRuntimeExports.jsx("div",{className:"h-6 w-1/2 bg-gray-300"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"}),e.jsxRuntimeExports.jsx("div",{className:"h-16 w-full bg-gray-200"})]}),children:N?e.jsxRuntimeExports.jsxs(s.Tabs,{defaultValue:l.OUTLINE_KEY,className:"flex h-full w-full flex-col py-1",children:[e.jsxRuntimeExports.jsxs(s.TabsList,{className:"mx-1 grid h-10 grid-cols-2",children:[e.jsxRuntimeExports.jsxs(s.TabsTrigger,{value:l.OUTLINE_KEY,children:[e.jsxRuntimeExports.jsx(R.ListTreeIcon,{className:"mr-2 h-3"})," ",E("Outline")]}),e.jsxRuntimeExports.jsxs(s.TabsTrigger,{value:"data-provider",children:[e.jsxRuntimeExports.jsx(R.DatabaseIcon,{className:"mr-2 w-3"}),E("Data")]})]}),e.jsxRuntimeExports.jsx(s.TabsContent,{value:l.OUTLINE_KEY,className:"no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",children:i.createElement(v?q:T)}),e.jsxRuntimeExports.jsx(s.TabsContent,{value:"data-provider",className:"flex-1 overflow-y-auto overflow-x-hidden",children:e.jsxRuntimeExports.jsx(L,{})})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs(s.Tabs,{defaultValue:l.OUTLINE_KEY,className:"flex h-full w-full flex-col py-1",children:[e.jsxRuntimeExports.jsx(s.TabsList,{className:"mx-1 grid h-10 grid-cols-1",children:e.jsxRuntimeExports.jsxs(s.TabsTrigger,{value:l.OUTLINE_KEY,children:[e.jsxRuntimeExports.jsx(R.ListTreeIcon,{className:"mr-2 h-3"})," ",E("Outline")]})}),e.jsxRuntimeExports.jsx(s.TabsContent,{value:l.OUTLINE_KEY,className:"no-scrollbar h-full flex-1 overflow-y-auto overflow-x-hidden",children:i.createElement(v?q:T)})]})})})})]})};exports.default=z;
@@ -1,7 +1,7 @@
1
1
  import { j as c } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import z, { useMemo as V, Suspense as n } from "react";
3
3
  import { FontFamilyIcon as o, EyeOpenIcon as M } from "@radix-ui/react-icons";
4
- import { h as s, aj as u, ak as d, al as C, am as L, ay as m, az as p, an as i, z as F, B as g, q as w, S as v, aA as B } from "./index-ZBqiaKhx.js";
4
+ import { h as s, aj as u, ak as d, al as C, am as L, ay as m, az as p, an as i, z as F, B as g, q as w, S as v, aA as B } from "./index-la4rqGKN.js";
5
5
  import { G as f } from "./index-YpnaudSM.js";
6
6
  import { useTranslation as e } from "react-i18next";
7
7
  import "./_commonjsHelpers-UyOWmZb0.js";
@@ -11,7 +11,6 @@ import "clsx";
11
11
  import "tailwind-merge";
12
12
  import "@chaibuilder/runtime";
13
13
  import "jotai";
14
- import "flat-to-nested";
15
14
  import "./MODIFIERS-WQdaNvb8.js";
16
15
  import "@react-hookz/web";
17
16
  import "@radix-ui/react-toggle";
@@ -104,7 +103,7 @@ const R = () => {
104
103
  ]
105
104
  }
106
105
  ) : null;
107
- }, d1 = () => {
106
+ }, u1 = () => {
108
107
  const l = s("topBarComponents.left", []), t = s("topBarComponents.center", []), r = s("topBarComponents.right", []), h = s("editable", !0);
109
108
  return /* @__PURE__ */ c.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
110
109
  /* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2 font-bold", children: z.Children.toArray(
@@ -125,5 +124,5 @@ const R = () => {
125
124
  ] });
126
125
  };
127
126
  export {
128
- d1 as default
127
+ u1 as default
129
128
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-Z_BpKhVy.cjs"),r=require("react"),h=require("@radix-ui/react-icons"),t=require("./index-DeHH1q_1.cjs"),z=require("./index-ecnGWzh9.cjs"),i=require("react-i18next");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("lodash-es");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./MODIFIERS-9EwxLM8V.cjs");require("@react-hookz/web");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-MmCxz2Ay.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");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-dom");require("react-quill");const v=()=>t.useBuilderProp("languages",["en"]),g=()=>v().length===1?null:c.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:c.jsxRuntimeExports.jsxs(t.Select,{children:[c.jsxRuntimeExports.jsx(t.SelectTrigger,{className:"w-[150px] border-0",children:c.jsxRuntimeExports.jsx(t.SelectValue,{placeholder:c.jsxRuntimeExports.jsxs("span",{className:"flex items-center",children:[c.jsxRuntimeExports.jsx(h.FontFamilyIcon,{className:"h-4 w-4"})," English(US)"]})})}),c.jsxRuntimeExports.jsx(t.SelectContent,{children:c.jsxRuntimeExports.jsxs(t.SelectGroup,{children:[c.jsxRuntimeExports.jsx(t.SelectLabel,{children:"Fruits"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"apple",children:"Apple"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"banana",children:"Banana"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"blueberry",children:"Blueberry"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"grapes",children:"Grapes"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"pineapple",children:"Pineapple"})]})})]})});function H(l){return z.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"}}]})(l)}const V=()=>{const{savePage:l,syncState:a}=t.useSavePage(),{t:s}=i.useTranslation(),e=r.useMemo(()=>{switch(a){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"}},[a]),n=c.jsxRuntimeExports.jsxs(t.Button,{disabled:a==="SAVING",onClick:o=>{o.preventDefault(),l()},className:`flex h-auto w-fit items-center gap-x-2 rounded-full p-1.5 px-3 ${e}`,size:"sm",variant:"outline",children:[c.jsxRuntimeExports.jsx(H,{className:"text-lg"}),c.jsxRuntimeExports.jsx("span",{className:"text-sm",children:a==="SAVING"?"Saving...":s(a==="SAVED"?"Saved":"Unsaved")})]});return c.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:n})},M=function(){const a=t.useBuilderProp("previewComponent"),[,s]=t.usePreviewMode(),{t:e}=i.useTranslation();return a?c.jsxRuntimeExports.jsxs(t.Button,{onClick:n=>{n.preventDefault(),s(!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:[c.jsxRuntimeExports.jsx(h.EyeOpenIcon,{className:"text-xs"}),c.jsxRuntimeExports.jsx("span",{className:"text-sm",children:e("Preview")})]}):null},u=()=>{const l=t.useBuilderProp("topBarComponents.left",[]),a=t.useBuilderProp("topBarComponents.center",[]),s=t.useBuilderProp("topBarComponents.right",[]),e=t.useBuilderProp("editable",!0);return c.jsxRuntimeExports.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2 font-bold",children:r.Children.toArray(l.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))})}),c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:r.Children.toArray(a.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))}),c.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxRuntimeExports.jsx(g,{}),c.jsxRuntimeExports.jsx(M,{}),c.jsxRuntimeExports.jsx(t.Separator,{orientation:"vertical"}),e?c.jsxRuntimeExports.jsx(V,{}):null,r.Children.toArray(s.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))]})]})};exports.default=u;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./jsx-runtime-Z_BpKhVy.cjs"),s=require("@radix-ui/react-icons"),r=require("lucide-react"),n=t=>{switch(t.type){case"Image":return e.jsxRuntimeExports.jsx(s.ImageIcon,{});case"Heading":return e.jsxRuntimeExports.jsx(s.HeadingIcon,{});case"Text":return e.jsxRuntimeExports.jsx(s.TextIcon,{});case"Link":return e.jsxRuntimeExports.jsx(s.Link1Icon,{});case"Video":return e.jsxRuntimeExports.jsx(s.VideoIcon,{});case"RichText":return e.jsxRuntimeExports.jsx(s.CursorTextIcon,{});case"Button":return e.jsxRuntimeExports.jsx(s.ButtonIcon,{});case"CustomHTML":return e.jsxRuntimeExports.jsx(s.CodeIcon,{});case"Divider":return e.jsxRuntimeExports.jsx(s.DividerHorizontalIcon,{});case"Icon":return e.jsxRuntimeExports.jsx(s.SketchLogoIcon,{});case"List":return e.jsxRuntimeExports.jsx(s.RowsIcon,{});case"Paragraph":return e.jsxRuntimeExports.jsx(s.TextIcon,{});case"Row":return e.jsxRuntimeExports.jsx(s.RowsIcon,{});case"ListItem":return e.jsxRuntimeExports.jsx(s.ColumnsIcon,{});case"LineBreak":return e.jsxRuntimeExports.jsx(s.SpaceBetweenVerticallyIcon,{});case"Form":return e.jsxRuntimeExports.jsx(s.GroupIcon,{});case"Checkbox":return e.jsxRuntimeExports.jsx(s.CheckboxIcon,{});case"FormButton":return e.jsxRuntimeExports.jsx(s.ButtonIcon,{});case"Input":case"TextArea":return e.jsxRuntimeExports.jsx(s.InputIcon,{});case"Radio":return e.jsxRuntimeExports.jsx(s.RadiobuttonIcon,{});case"Select":return e.jsxRuntimeExports.jsx(s.DropdownMenuIcon,{});case"Table":return e.jsxRuntimeExports.jsx(s.TableIcon,{});case"TableHead":return e.jsxRuntimeExports.jsx(s.BorderTopIcon,{});case"TableBody":return e.jsxRuntimeExports.jsx(s.BorderAllIcon,{});case"TableRow":return e.jsxRuntimeExports.jsx(s.ViewHorizontalIcon,{});case"TableCell":return e.jsxRuntimeExports.jsx(s.DragHandleHorizontalIcon,{});case"DataProvider":return e.jsxRuntimeExports.jsx(r.DatabaseIcon,{size:16});case"Box":return e.jsxRuntimeExports.jsx(s.BoxIcon,{});default:return e.jsxRuntimeExports.jsx(s.BoxModelIcon,{})}};exports.TypeIcon=n;
@@ -0,0 +1,69 @@
1
+ import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
+ import { BoxModelIcon as t, BoxIcon as c, DragHandleHorizontalIcon as a, ViewHorizontalIcon as u, BorderAllIcon as x, BorderTopIcon as I, TableIcon as j, DropdownMenuIcon as i, RadiobuttonIcon as l, InputIcon as d, ButtonIcon as r, CheckboxIcon as T, GroupIcon as m, SpaceBetweenVerticallyIcon as p, ColumnsIcon as B, RowsIcon as n, TextIcon as o, SketchLogoIcon as b, DividerHorizontalIcon as H, CodeIcon as g, CursorTextIcon as w, VideoIcon as C, Link1Icon as L, HeadingIcon as R, ImageIcon as h } from "@radix-ui/react-icons";
3
+ import { DatabaseIcon as k } from "lucide-react";
4
+ const z = (s) => {
5
+ switch (s.type) {
6
+ case "Image":
7
+ return /* @__PURE__ */ e.jsx(h, {});
8
+ case "Heading":
9
+ return /* @__PURE__ */ e.jsx(R, {});
10
+ case "Text":
11
+ return /* @__PURE__ */ e.jsx(o, {});
12
+ case "Link":
13
+ return /* @__PURE__ */ e.jsx(L, {});
14
+ case "Video":
15
+ return /* @__PURE__ */ e.jsx(C, {});
16
+ case "RichText":
17
+ return /* @__PURE__ */ e.jsx(w, {});
18
+ case "Button":
19
+ return /* @__PURE__ */ e.jsx(r, {});
20
+ case "CustomHTML":
21
+ return /* @__PURE__ */ e.jsx(g, {});
22
+ case "Divider":
23
+ return /* @__PURE__ */ e.jsx(H, {});
24
+ case "Icon":
25
+ return /* @__PURE__ */ e.jsx(b, {});
26
+ case "List":
27
+ return /* @__PURE__ */ e.jsx(n, {});
28
+ case "Paragraph":
29
+ return /* @__PURE__ */ e.jsx(o, {});
30
+ case "Row":
31
+ return /* @__PURE__ */ e.jsx(n, {});
32
+ case "ListItem":
33
+ return /* @__PURE__ */ e.jsx(B, {});
34
+ case "LineBreak":
35
+ return /* @__PURE__ */ e.jsx(p, {});
36
+ case "Form":
37
+ return /* @__PURE__ */ e.jsx(m, {});
38
+ case "Checkbox":
39
+ return /* @__PURE__ */ e.jsx(T, {});
40
+ case "FormButton":
41
+ return /* @__PURE__ */ e.jsx(r, {});
42
+ case "Input":
43
+ case "TextArea":
44
+ return /* @__PURE__ */ e.jsx(d, {});
45
+ case "Radio":
46
+ return /* @__PURE__ */ e.jsx(l, {});
47
+ case "Select":
48
+ return /* @__PURE__ */ e.jsx(i, {});
49
+ case "Table":
50
+ return /* @__PURE__ */ e.jsx(j, {});
51
+ case "TableHead":
52
+ return /* @__PURE__ */ e.jsx(I, {});
53
+ case "TableBody":
54
+ return /* @__PURE__ */ e.jsx(x, {});
55
+ case "TableRow":
56
+ return /* @__PURE__ */ e.jsx(u, {});
57
+ case "TableCell":
58
+ return /* @__PURE__ */ e.jsx(a, {});
59
+ case "DataProvider":
60
+ return /* @__PURE__ */ e.jsx(k, { size: 16 });
61
+ case "Box":
62
+ return /* @__PURE__ */ e.jsx(c, {});
63
+ default:
64
+ return /* @__PURE__ */ e.jsx(t, {});
65
+ }
66
+ };
67
+ export {
68
+ z as T
69
+ };