@chaibuilder/sdk 1.2.25 → 1.2.26

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 (182) hide show
  1. package/dist/AddBlocks-l1JENNvq.js +206 -0
  2. package/dist/AddBlocks-zPPKkeKs.cjs +1 -0
  3. package/dist/BrandingOptions-DkpqGARR.cjs +1 -0
  4. package/dist/{BrandingOptions-iTyWpwTs.js → BrandingOptions-udtH5yJs.js} +54 -40
  5. package/dist/{CanvasArea-dZjng782.js → CanvasArea-h0W-Tyha.js} +324 -340
  6. package/dist/CanvasArea-zme1r3Zi.cjs +55 -0
  7. package/dist/Class-PoYusiA5.cjs +1 -0
  8. package/dist/{Class-ahc3NIbq.js → Class-lGzsNBOK.js} +29 -26
  9. package/dist/CurrentPage-Hl52iub_.cjs +1 -0
  10. package/dist/{CurrentPage-Kmfp-kFk.js → CurrentPage-tJUjXWdb.js} +54 -40
  11. package/dist/Functions-7jnEwJyw.js +15 -0
  12. package/dist/Functions-N3yhPYKY.cjs +1 -0
  13. package/dist/ListTree-WvTjY5rr.cjs +1 -0
  14. package/dist/{ListTree-N3jeD790.js → ListTree-cZ-Ihlt3.js} +96 -86
  15. package/dist/MODIFIERS-0g14w5RS.cjs +1 -0
  16. package/dist/{MODIFIERS-CNqNUapY.js → MODIFIERS-dytZ-osO.js} +4 -10
  17. package/dist/PagesPanel-6rrLXEO-.js +64 -0
  18. package/dist/PagesPanel-WzCocl6u.cjs +1 -0
  19. package/dist/ProjectPanel-o7gdcwPn.cjs +1 -0
  20. package/dist/ProjectPanel-tz3bjdXy.js +85 -0
  21. package/dist/{STRINGS-b432aBJJ.js → STRINGS--j49GZJP.js} +2 -2
  22. package/dist/{Settings-jCcd-VE6.js → Settings-4s2LUVmC.js} +401 -407
  23. package/dist/Settings-AqoKwR92.cjs +1 -0
  24. package/dist/SidePanels-3o6Okmvu.cjs +1 -0
  25. package/dist/{SidePanels-pHMYprpW.js → SidePanels-bugFfInz.js} +118 -108
  26. package/dist/Topbar-CqW7G360.cjs +1 -0
  27. package/dist/Topbar-pWzBEOed.js +132 -0
  28. package/dist/UnsplashImages-NGskB93R.cjs +1 -0
  29. package/dist/{UnsplashImages-L7x_3RQf.js → UnsplashImages-qvwFbV-E.js} +63 -50
  30. package/dist/{UploadImages-zdEJRLD8.js → UploadImages-9NapgXBq.js} +60 -37
  31. package/dist/UploadImages-Oh7Glr9A.cjs +1 -0
  32. package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
  33. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
  34. package/dist/add-page-modal--6TTBRYa.cjs +1 -0
  35. package/dist/add-page-modal-k2Kb92HS.js +104 -0
  36. package/dist/confirm-alert-C4M9eF-o.cjs +1 -0
  37. package/dist/confirm-alert-GUhZ_G8w.js +60 -0
  38. package/dist/controls-KK2oLIa8.cjs +1 -0
  39. package/dist/{controls-IS5qnRce.js → controls-OfJWSEqC.js} +85 -20
  40. package/dist/core.cjs +1 -1
  41. package/dist/core.js +75 -150
  42. package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
  43. package/dist/{defaultTheme-4kA60XdB.js → defaultTheme-D8B4-wHO.js} +8 -6
  44. package/dist/delete-page-modal-cFoL-wdo.cjs +1 -0
  45. package/dist/delete-page-modal-zONvdebd.js +83 -0
  46. package/dist/email-blocks.cjs +1 -1
  47. package/dist/email-blocks.js +292 -3
  48. package/dist/email.cjs +1 -1
  49. package/dist/email.js +37 -18
  50. package/dist/empty-slot-ZBlsQi6m.js +15 -0
  51. package/dist/empty-slot-nzYOgZuS.cjs +1 -0
  52. package/dist/{form-0_RLz2TB.js → form-STUz-6nE.js} +12 -12
  53. package/dist/form-lBQ_76Uw.cjs +1 -0
  54. package/dist/{html-to-json-uSnxl72F.cjs → html-to-json-efmv1pCj.cjs} +1 -1
  55. package/dist/{html-to-json-2xtb7520.js → html-to-json-ngX9ef2u.js} +41 -41
  56. package/dist/index-Gk6sASBd.js +3080 -0
  57. package/dist/index-OB199Izc.cjs +206 -0
  58. package/dist/index-SkyM3d6Q.js +39503 -0
  59. package/dist/index-YpnaudSM.js +63 -0
  60. package/dist/index-e0c8PmRQ.js +205 -0
  61. package/dist/index-ecnGWzh9.cjs +1 -0
  62. package/dist/index-gi1LIOCw.cjs +1 -0
  63. package/dist/index-h-hd6EvN.cjs +1 -0
  64. package/dist/index-llTXLDGE.js +2201 -0
  65. package/dist/index-mbyqq81O.cjs +1 -0
  66. package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-WbnYoNE9.js} +109 -106
  67. package/dist/jsx-runtime-Z_BpKhVy.cjs +27 -0
  68. package/dist/lib.cjs +2 -2
  69. package/dist/lib.js +66 -62
  70. package/dist/page-viewer-2kwnKM6v.cjs +1 -0
  71. package/dist/{page-viewer-NnOwmAmu.js → page-viewer-Pdg9F5Hv.js} +57 -43
  72. package/dist/project-general-setting-CnNL98NM.cjs +1 -0
  73. package/dist/{project-general-setting-9ju3TDju.js → project-general-setting-f8Ebsn6K.js} +43 -35
  74. package/dist/project-seo-setting-mlxL_e2_.cjs +1 -0
  75. package/dist/{project-seo-setting-36CdUszM.js → project-seo-setting-pX34Qsym.js} +40 -23
  76. package/dist/render.cjs +1 -1
  77. package/dist/render.js +14 -13
  78. package/dist/single-page-detail-XfzrGlzA.cjs +1 -0
  79. package/dist/{single-page-detail-hD1jKZ8k.js → single-page-detail-dpe5LT0M.js} +74 -66
  80. package/dist/studio.cjs +1 -1
  81. package/dist/studio.js +40 -24
  82. package/dist/ui.cjs +1 -1
  83. package/dist/ui.js +160 -365
  84. package/dist/web-blocks.cjs +6 -1
  85. package/dist/web-blocks.js +1153 -3
  86. package/package.json +1 -1
  87. package/dist/AddBlocks-Ol3iIVKa.js +0 -207
  88. package/dist/AddBlocks-a1c-7Ewz.cjs +0 -1
  89. package/dist/BrandingOptions-6rnt0UaA.cjs +0 -1
  90. package/dist/CanvasArea-R4ogF9AT.cjs +0 -55
  91. package/dist/ChaiBuilderEditor-m30yoOgJ.cjs +0 -163
  92. package/dist/ChaiBuilderEditor-vP4at00I.js +0 -27974
  93. package/dist/Class-eieto7e-.cjs +0 -1
  94. package/dist/Controls-3Cc1XYXg.js +0 -105
  95. package/dist/Controls-ky25Ebo3.cjs +0 -1
  96. package/dist/CurrentPage-3gQTH0Zt.cjs +0 -1
  97. package/dist/Functions-Hvon6AMZ.cjs +0 -1
  98. package/dist/Functions-NzT2Six_.js +0 -15
  99. package/dist/ImagesPanel-J1RlG7xG.cjs +0 -1
  100. package/dist/ImagesPanel-Wb0GF_NA.js +0 -29
  101. package/dist/ListTree-CZ-mtjZ9.cjs +0 -1
  102. package/dist/MODIFIERS-o1p3VnpS.cjs +0 -1
  103. package/dist/PagesPanel-Gi0z6gaf.cjs +0 -1
  104. package/dist/PagesPanel-u1IB-nRr.js +0 -48
  105. package/dist/ProjectPanel-EydGZmMW.js +0 -71
  106. package/dist/ProjectPanel-kiiljG4H.cjs +0 -1
  107. package/dist/Settings-8ilCSH8b.cjs +0 -1
  108. package/dist/SidePanels-T36C6Lhc.cjs +0 -1
  109. package/dist/Topbar-CvWQuspR.cjs +0 -1
  110. package/dist/Topbar-pbIDUE_B.js +0 -122
  111. package/dist/UnsplashImages-KBZPd9dv.cjs +0 -1
  112. package/dist/UploadImages-GkkJVAgG.cjs +0 -1
  113. package/dist/accordion-oPUeqPCZ.js +0 -42
  114. package/dist/accordion-ynvFtV_p.cjs +0 -1
  115. package/dist/add-page-modal-9SGv2hgc.cjs +0 -1
  116. package/dist/add-page-modal-JCDXZIPW.js +0 -95
  117. package/dist/alert-dialog-P9xMMB6C.cjs +0 -1
  118. package/dist/alert-dialog-rypfO5ly.js +0 -64
  119. package/dist/badge-E-S7CqUt.cjs +0 -1
  120. package/dist/badge-tEwO7C51.js +0 -23
  121. package/dist/block-helpers-OKHmRRol.cjs +0 -1
  122. package/dist/block-helpers-oSFpSsGz.js +0 -23
  123. package/dist/command-BxR6jaCI.cjs +0 -1
  124. package/dist/command-Pn3HKDuV.js +0 -97
  125. package/dist/confirm-alert-uNm0lZ0y.cjs +0 -1
  126. package/dist/confirm-alert-wR5_VJ1l.js +0 -36
  127. package/dist/context-menu-8dC9uGXj.js +0 -122
  128. package/dist/context-menu-IgLbIuth.cjs +0 -1
  129. package/dist/controls-L7DPvB0m.cjs +0 -1
  130. package/dist/defaultTheme-mrkeGFGI.cjs +0 -1
  131. package/dist/delete-page-modal-7KmP1elv.js +0 -67
  132. package/dist/delete-page-modal-SgfwvfNu.cjs +0 -1
  133. package/dist/dropdown-menu-El86_9Uo.js +0 -124
  134. package/dist/dropdown-menu-SiHzqWwZ.cjs +0 -1
  135. package/dist/form-W58AVUdf.cjs +0 -1
  136. package/dist/hover-card-KUwpDkW8.cjs +0 -1
  137. package/dist/hover-card-q138xxXR.js +0 -45
  138. package/dist/iconBase-gbUAAO2L.cjs +0 -1
  139. package/dist/iconBase-h4DuR_XT.js +0 -63
  140. package/dist/index-9MmykVSc.cjs +0 -1
  141. package/dist/index-hElOGcFr.js +0 -2200
  142. package/dist/index-lDTsQp7h.js +0 -188
  143. package/dist/index-rq5Y9ZDy.cjs +0 -1
  144. package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
  145. package/dist/label-KaP7MRrs.js +0 -10
  146. package/dist/label-tFm8HZdb.cjs +0 -1
  147. package/dist/link-WbcKdQ9k.cjs +0 -1
  148. package/dist/link-xuhP-4dN.js +0 -196
  149. package/dist/page-viewer-Hx5hxHKm.cjs +0 -1
  150. package/dist/popover-a84pbVhQ.js +0 -23
  151. package/dist/popover-fKjgcRUx.cjs +0 -1
  152. package/dist/project-general-setting-FxkwjvJz.cjs +0 -1
  153. package/dist/project-seo-setting-RU7qiXxb.cjs +0 -1
  154. package/dist/scroll-area-FiHvy-TZ.cjs +0 -1
  155. package/dist/scroll-area-ewXbxc3n.js +0 -30
  156. package/dist/select-7bjg-rr9.cjs +0 -1
  157. package/dist/select-POGdEDHT.js +0 -75
  158. package/dist/separator-3Civ-6hb.cjs +0 -1
  159. package/dist/separator-SctTn0Qi.js +0 -18
  160. package/dist/single-page-detail-beY0MT1b.cjs +0 -1
  161. package/dist/skeleton-STeL9VrJ.cjs +0 -1
  162. package/dist/skeleton-lu8e7q2y.js +0 -239
  163. package/dist/tabs-_4WbA1cc.cjs +0 -1
  164. package/dist/tabs-yQ3oGziM.js +0 -106
  165. package/dist/textarea-1kZEh7ki.cjs +0 -1
  166. package/dist/textarea-b2QvVhrK.js +0 -73
  167. package/dist/useAddBlock-8pxOEYIl.cjs +0 -1
  168. package/dist/useAddBlock-FEKFJNwQ.js +0 -69
  169. package/dist/useChaiExternalData-fkFgoS80.js +0 -6
  170. package/dist/useChaiExternalData-rwoAZ6uU.cjs +0 -1
  171. package/dist/useDarkMode-7i57segK.cjs +0 -1
  172. package/dist/useDarkMode-8VHJlYyE.js +0 -23
  173. package/dist/useSelectedBreakpoints-6NK5qd7T.js +0 -10
  174. package/dist/useSelectedBreakpoints-7ONXb-vN.cjs +0 -1
  175. package/dist/useStylingState-Iuj84yvc.js +0 -186
  176. package/dist/useStylingState-OIvJMV6p.cjs +0 -1
  177. package/dist/useUiLibraries-nCdauJ4N.cjs +0 -1
  178. package/dist/useUiLibraries-psyWFbNc.js +0 -12
  179. package/dist/useUpdateBlocksProps-Unn8lUyj.cjs +0 -1
  180. package/dist/useUpdateBlocksProps-vWcDp-P9.js +0 -23
  181. package/dist/utils-dze1SGvB.js +0 -6
  182. package/dist/utils-qK_SjzzV.cjs +0 -1
@@ -1,56 +1,66 @@
1
- import { j as e } from "./jsx-runtime-Sp0orL4X.js";
1
+ import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
2
  import T, { memo as f, useMemo as v, useCallback as R, useEffect as H } from "react";
3
3
  import { useAtom as P } from "jotai";
4
4
  import { useDebouncedCallback as w } from "@react-hookz/web";
5
5
  import { Tree as A } from "react-arborist";
6
- import { a as D, j as b, u as z, k as _, i as L, f as E, K as F, n as V, t as O } from "./ChaiBuilderEditor-vP4at00I.js";
7
- import { c as N } from "./Functions-NzT2Six_.js";
8
- import { u as $ } from "./useUpdateBlocksProps-vWcDp-P9.js";
9
- import "react-i18next";
10
- import { u as K, T as U, a as G, c as W } from "./skeleton-lu8e7q2y.js";
11
- import { BoxModelIcon as q, BoxIcon as J, DragHandleHorizontalIcon as Q, ViewHorizontalIcon as X, BorderAllIcon as Y, BorderTopIcon as Z, TableIcon as ee, DropdownMenuIcon as te, RadiobuttonIcon as se, InputIcon as re, ButtonIcon as I, CheckboxIcon as ne, GroupIcon as oe, SpaceBetweenVerticallyIcon as ce, ColumnsIcon as ae, RowsIcon as k, TextIcon as C, SketchLogoIcon as ie, DividerHorizontalIcon as le, CodeIcon as ue, CursorTextIcon as de, VideoIcon as xe, Link1Icon as pe, HeadingIcon as me, ImageIcon as he, CopyIcon as ge, TrashIcon as je, TriangleRightIcon as fe } from "@radix-ui/react-icons";
12
- import { DatabaseIcon as be } from "lucide-react";
13
- import { C as ye, a as ve, b as Ie, c as M } from "./context-menu-8dC9uGXj.js";
14
- import { c as ke, a as Ce, b as y } from "./block-helpers-oSFpSsGz.js";
6
+ import { E as D, r as b, s as z, a1 as _, bs as N, aS as E, t as L, bt as F, aR as V, bu as O, bv as $, h as U, Y as q, bw as y, ap as G, aq as K, ar as W, bx as Y, a5 as J, ac as Q, aM as X } from "./index-Gk6sASBd.js";
7
+ import { c as M } from "./Functions-7jnEwJyw.js";
8
+ import { BoxModelIcon as Z, BoxIcon as ee, DragHandleHorizontalIcon as te, ViewHorizontalIcon as se, BorderAllIcon as re, BorderTopIcon as oe, TableIcon as ne, DropdownMenuIcon as ce, RadiobuttonIcon as ae, InputIcon as ie, ButtonIcon as I, CheckboxIcon as le, GroupIcon as ue, SpaceBetweenVerticallyIcon as de, ColumnsIcon as xe, RowsIcon as k, TextIcon as C, SketchLogoIcon as pe, DividerHorizontalIcon as me, CodeIcon as he, CursorTextIcon as ge, VideoIcon as je, Link1Icon as fe, HeadingIcon as be, ImageIcon as ye, TrashIcon as ve, CopyIcon as Ie, TriangleRightIcon as ke } from "@radix-ui/react-icons";
9
+ import { DatabaseIcon as Ce } from "lucide-react";
15
10
  import { find as B, first as Be } from "lodash-es";
16
- import "./MODIFIERS-CNqNUapY.js";
17
- import "clsx";
18
- import "@radix-ui/react-scroll-area";
19
- import "react-dom";
20
- import "@floating-ui/react-dom";
21
- import "i18next";
22
- import "flagged";
23
- import "react-hotkeys-hook";
11
+ import "./_commonjsHelpers-UyOWmZb0.js";
24
12
  import "@chaibuilder/runtime";
13
+ import "./STRINGS--j49GZJP.js";
14
+ import "./MODIFIERS-dytZ-osO.js";
15
+ import "./Class-lGzsNBOK.js";
16
+ import "clsx";
25
17
  import "tailwind-merge";
26
- import "@radix-ui/react-slot";
18
+ import "react-i18next";
19
+ import "@radix-ui/react-toggle";
27
20
  import "class-variance-authority";
28
- import "./utils-dze1SGvB.js";
21
+ import "@radix-ui/react-switch";
22
+ import "@radix-ui/react-slot";
23
+ import "@radix-ui/react-accordion";
24
+ import "@radix-ui/react-alert-dialog";
25
+ import "@radix-ui/react-dialog";
26
+ import "@radix-ui/react-label";
27
+ import "@radix-ui/react-scroll-area";
28
+ import "@radix-ui/react-tabs";
29
29
  import "@radix-ui/react-tooltip";
30
+ import "@radix-ui/react-popover";
31
+ import "@radix-ui/react-menubar";
32
+ import "@radix-ui/react-hover-card";
33
+ import "@radix-ui/react-select";
34
+ import "@radix-ui/react-dropdown-menu";
35
+ import "@radix-ui/react-separator";
30
36
  import "@radix-ui/react-toast";
37
+ import "cmdk";
31
38
  import "@radix-ui/react-context-menu";
39
+ import "react-icons-picker";
40
+ import "react-dom";
41
+ import "react-quill";
32
42
  const S = (t) => {
33
43
  switch (t.type) {
34
44
  case "Image":
35
- return /* @__PURE__ */ e.jsx(he, {});
45
+ return /* @__PURE__ */ e.jsx(ye, {});
36
46
  case "Heading":
37
- return /* @__PURE__ */ e.jsx(me, {});
47
+ return /* @__PURE__ */ e.jsx(be, {});
38
48
  case "Text":
39
49
  return /* @__PURE__ */ e.jsx(C, {});
40
50
  case "Link":
41
- return /* @__PURE__ */ e.jsx(pe, {});
51
+ return /* @__PURE__ */ e.jsx(fe, {});
42
52
  case "Video":
43
- return /* @__PURE__ */ e.jsx(xe, {});
53
+ return /* @__PURE__ */ e.jsx(je, {});
44
54
  case "RichText":
45
- return /* @__PURE__ */ e.jsx(de, {});
55
+ return /* @__PURE__ */ e.jsx(ge, {});
46
56
  case "Button":
47
57
  return /* @__PURE__ */ e.jsx(I, {});
48
58
  case "CustomHTML":
49
- return /* @__PURE__ */ e.jsx(ue, {});
59
+ return /* @__PURE__ */ e.jsx(he, {});
50
60
  case "Divider":
51
- return /* @__PURE__ */ e.jsx(le, {});
61
+ return /* @__PURE__ */ e.jsx(me, {});
52
62
  case "Icon":
53
- return /* @__PURE__ */ e.jsx(ie, {});
63
+ return /* @__PURE__ */ e.jsx(pe, {});
54
64
  case "List":
55
65
  return /* @__PURE__ */ e.jsx(k, {});
56
66
  case "Paragraph":
@@ -58,38 +68,38 @@ const S = (t) => {
58
68
  case "Row":
59
69
  return /* @__PURE__ */ e.jsx(k, {});
60
70
  case "ListItem":
61
- return /* @__PURE__ */ e.jsx(ae, {});
71
+ return /* @__PURE__ */ e.jsx(xe, {});
62
72
  case "LineBreak":
63
- return /* @__PURE__ */ e.jsx(ce, {});
73
+ return /* @__PURE__ */ e.jsx(de, {});
64
74
  case "Form":
65
- return /* @__PURE__ */ e.jsx(oe, {});
75
+ return /* @__PURE__ */ e.jsx(ue, {});
66
76
  case "Checkbox":
67
- return /* @__PURE__ */ e.jsx(ne, {});
77
+ return /* @__PURE__ */ e.jsx(le, {});
68
78
  case "FormButton":
69
79
  return /* @__PURE__ */ e.jsx(I, {});
70
80
  case "Input":
71
81
  case "TextArea":
72
- return /* @__PURE__ */ e.jsx(re, {});
82
+ return /* @__PURE__ */ e.jsx(ie, {});
73
83
  case "Radio":
74
- return /* @__PURE__ */ e.jsx(se, {});
84
+ return /* @__PURE__ */ e.jsx(ae, {});
75
85
  case "Select":
76
- return /* @__PURE__ */ e.jsx(te, {});
86
+ return /* @__PURE__ */ e.jsx(ce, {});
77
87
  case "Table":
78
- return /* @__PURE__ */ e.jsx(ee, {});
88
+ return /* @__PURE__ */ e.jsx(ne, {});
79
89
  case "TableHead":
80
- return /* @__PURE__ */ e.jsx(Z, {});
90
+ return /* @__PURE__ */ e.jsx(oe, {});
81
91
  case "TableBody":
82
- return /* @__PURE__ */ e.jsx(Y, {});
92
+ return /* @__PURE__ */ e.jsx(re, {});
83
93
  case "TableRow":
84
- return /* @__PURE__ */ e.jsx(X, {});
94
+ return /* @__PURE__ */ e.jsx(se, {});
85
95
  case "TableCell":
86
- return /* @__PURE__ */ e.jsx(Q, {});
96
+ return /* @__PURE__ */ e.jsx(te, {});
87
97
  case "DataProvider":
88
- return /* @__PURE__ */ e.jsx(be, { size: 16 });
98
+ return /* @__PURE__ */ e.jsx(Ce, { size: 16 });
89
99
  case "Box":
90
- return /* @__PURE__ */ e.jsx(J, {});
100
+ return /* @__PURE__ */ e.jsx(ee, {});
91
101
  default:
92
- return /* @__PURE__ */ e.jsx(q, {});
102
+ return /* @__PURE__ */ e.jsx(Z, {});
93
103
  }
94
104
  }, Te = {
95
105
  display: "flex",
@@ -107,7 +117,7 @@ const S = (t) => {
107
117
  }), De = f(function({ children: r, isDragging: s }) {
108
118
  return s ? /* @__PURE__ */ e.jsx("div", { className: "pointer-events-none fixed left-0 top-0 z-[100] h-full w-full", children: r }) : null;
109
119
  }), _e = f(({ id: t, isDragging: r, mouse: s }) => {
110
- const [l] = D(), n = v(() => l.find((d) => d._id === t), [l, t]), x = v(
120
+ const [l] = D(), o = v(() => l.find((d) => d._id === t), [l, t]), x = v(
111
121
  () => ({
112
122
  transform: `translate(${(s == null ? void 0 : s.x) - 10}px, ${(s == null ? void 0 : s.y) - 10}px)`
113
123
  }),
@@ -118,50 +128,50 @@ const S = (t) => {
118
128
  {
119
129
  className: "pointer-events-none absolute z-50 rounded border border-gray-200 bg-gray-100/80 font-semibold text-blue-600 shadow-md dark:border-gray-700 dark:bg-gray-800",
120
130
  style: x,
121
- children: /* @__PURE__ */ e.jsxs("button", { type: "button", className: "flex !cursor-grab items-center p-0.5", "aria-label": `Type: ${n == null ? void 0 : n._type}`, children: [
122
- /* @__PURE__ */ e.jsx("div", { className: "-mt-0.5 h-3 w-3", children: /* @__PURE__ */ e.jsx(S, { type: n == null ? void 0 : n._type }) }),
123
- /* @__PURE__ */ e.jsx("div", { className: "ml-2 truncate text-[11px]", children: (n == null ? void 0 : n._name) || (n == null ? void 0 : n._type) })
131
+ children: /* @__PURE__ */ e.jsxs("button", { type: "button", className: "flex !cursor-grab items-center p-0.5", "aria-label": `Type: ${o == null ? void 0 : o._type}`, children: [
132
+ /* @__PURE__ */ e.jsx("div", { className: "-mt-0.5 h-3 w-3", children: /* @__PURE__ */ e.jsx(S, { type: o == null ? void 0 : o._type }) }),
133
+ /* @__PURE__ */ e.jsx("div", { className: "ml-2 truncate text-[11px]", children: (o == null ? void 0 : o._name) || (o == null ? void 0 : o._type) })
124
134
  ] })
125
135
  }
126
136
  ) }) }) : /* @__PURE__ */ e.jsx("div", { className: "hidden" });
127
137
  }), Ne = () => {
128
- const [t] = b(), r = L(), s = _();
138
+ const [t] = b(), r = z(), s = _();
129
139
  return /* @__PURE__ */ e.jsxs(
130
- M,
140
+ N,
131
141
  {
132
- disabled: !Ce(s == null ? void 0 : s._type),
142
+ disabled: !E(s == null ? void 0 : s._type),
133
143
  className: "flex items-center gap-x-4 text-xs",
134
144
  onClick: () => r(t),
135
145
  children: [
136
- /* @__PURE__ */ e.jsx(je, {}),
146
+ /* @__PURE__ */ e.jsx(ve, {}),
137
147
  " Remove"
138
148
  ]
139
149
  }
140
150
  );
141
151
  }, Me = () => {
142
- const [t] = b(), r = z(), s = _(), l = R(() => {
152
+ const [t] = b(), r = L(), s = _(), l = R(() => {
143
153
  r(t);
144
154
  }, [t, r]);
145
- return /* @__PURE__ */ e.jsxs(Ie, { className: "text-xs", children: [
155
+ return /* @__PURE__ */ e.jsxs(F, { className: "text-xs", children: [
146
156
  /* @__PURE__ */ e.jsxs(
147
- M,
157
+ N,
148
158
  {
149
- disabled: !ke(s == null ? void 0 : s._type),
159
+ disabled: !V(s == null ? void 0 : s._type),
150
160
  className: "flex items-center gap-x-4 text-xs",
151
161
  onClick: l,
152
162
  children: [
153
- /* @__PURE__ */ e.jsx(ge, {}),
163
+ /* @__PURE__ */ e.jsx(Ie, {}),
154
164
  " Duplicate"
155
165
  ]
156
166
  }
157
167
  ),
158
168
  /* @__PURE__ */ e.jsx(Ne, {})
159
169
  ] });
160
- }, Se = ({ children: t }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(ye, { children: [
161
- /* @__PURE__ */ e.jsx(ve, { children: t }),
170
+ }, Se = ({ children: t }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(O, { children: [
171
+ /* @__PURE__ */ e.jsx($, { children: t }),
162
172
  /* @__PURE__ */ e.jsx(Me, {})
163
173
  ] }) }), Re = f(({ node: t, style: r, dragHandle: s }) => {
164
- const l = K("outlineMenuItems", []), [, n] = E(), x = t.children.length > 0, { id: d, data: a, isSelected: m, willReceiveDrop: p, isDragging: h, isEditing: g, handleClick: j } = t, o = w((c) => n(c), [], 300), i = (c) => {
174
+ const l = U("outlineMenuItems", []), [, o] = q(), x = t.children.length > 0, { id: d, data: a, isSelected: m, willReceiveDrop: p, isDragging: h, isEditing: g, handleClick: j } = t, n = w((c) => o(c), [], 300), i = (c) => {
165
175
  c.stopPropagation(), t.toggle();
166
176
  }, u = (c) => {
167
177
  c.stopPropagation(), t.toggle(), j(c);
@@ -175,11 +185,11 @@ const S = (t) => {
175
185
  "div",
176
186
  {
177
187
  onClick: u,
178
- onMouseEnter: () => o(d),
188
+ onMouseEnter: () => n(d),
179
189
  style: r,
180
190
  "data-node-id": d,
181
191
  ref: s,
182
- className: N(
192
+ className: M(
183
193
  "group flex !h-fit w-full items-center justify-between space-x-px py-px outline-none",
184
194
  m ? "bg-blue-500 text-white" : "text-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800",
185
195
  p && y(a._type, "Icon") ? "bg-green-200" : "",
@@ -191,7 +201,7 @@ const S = (t) => {
191
201
  "div",
192
202
  {
193
203
  className: `flex h-4 w-4 rotate-0 transform cursor-pointer items-center justify-center text-xs transition-transform duration-100 ${t.isOpen ? "rotate-90" : ""}`,
194
- children: x && /* @__PURE__ */ e.jsx("button", { onClick: i, type: "button", children: /* @__PURE__ */ e.jsx(fe, {}) })
204
+ children: x && /* @__PURE__ */ e.jsx("button", { onClick: i, type: "button", children: /* @__PURE__ */ e.jsx(ke, {}) })
195
205
  }
196
206
  ),
197
207
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
@@ -208,9 +218,9 @@ const S = (t) => {
208
218
  )
209
219
  ] })
210
220
  ] }),
211
- /* @__PURE__ */ e.jsx("div", { className: "invisible flex items-center space-x-1 pr-2 group-hover:visible", children: l.map((c) => /* @__PURE__ */ e.jsxs(U, { children: [
221
+ /* @__PURE__ */ e.jsx("div", { className: "invisible flex items-center space-x-1 pr-2 group-hover:visible", children: l.map((c) => /* @__PURE__ */ e.jsxs(G, { children: [
212
222
  /* @__PURE__ */ e.jsx(
213
- G,
223
+ K,
214
224
  {
215
225
  className: "cursor-pointer rounded bg-transparent hover:bg-white hover:text-blue-500",
216
226
  asChild: !0,
@@ -239,38 +249,38 @@ const S = (t) => {
239
249
  const [t] = D();
240
250
  return (r, s) => {
241
251
  var x;
242
- const l = (x = B(t, { _id: s })) == null ? void 0 : x._type, n = Be(r.map((d) => {
252
+ const l = (x = B(t, { _id: s })) == null ? void 0 : x._type, o = Be(r.map((d) => {
243
253
  var a;
244
254
  return (a = B(t, { _id: d })) == null ? void 0 : a._type;
245
255
  }));
246
- return y(l, n);
256
+ return y(l, o);
247
257
  };
248
- }, pt = () => {
249
- const [t] = P(F), [r, s] = b(), l = $(), [, n] = V(), { moveBlocks: x } = O(), d = Pe(), a = () => {
250
- s([]), n([]);
251
- }, m = ({ id: o, name: i, node: u }) => {
252
- l([o], { _name: i }, u.data._name);
253
- }, p = ({ dragIds: o, parentId: i, index: u }) => {
254
- d(o, i) && x(o, i, u);
255
- }, h = (o) => {
256
- if (o.length === 0)
258
+ }, kt = () => {
259
+ const [t] = P(Y), [r, s] = b(), l = J(), [, o] = Q(), { moveBlocks: x } = X(), d = Pe(), a = () => {
260
+ s([]), o([]);
261
+ }, m = ({ id: n, name: i, node: u }) => {
262
+ l([n], { _name: i }, u.data._name);
263
+ }, p = ({ dragIds: n, parentId: i, index: u }) => {
264
+ d(n, i) && x(n, i, u);
265
+ }, h = (n) => {
266
+ if (n.length === 0)
257
267
  return;
258
- const i = o[0] ? o[0].id : "";
259
- n([]), s([i]);
260
- }, g = (o) => {
268
+ const i = n[0] ? n[0].id : "";
269
+ o([]), s([i]);
270
+ }, g = (n) => {
261
271
  var c;
262
- o.preventDefault();
263
- const i = o.target, u = i.getAttribute("data-node-id") || ((c = i.closest("[data-node-id]")) == null ? void 0 : c.getAttribute("data-node-id"));
264
- u && (n([]), s([u]));
272
+ n.preventDefault();
273
+ const i = n.target, u = i.getAttribute("data-node-id") || ((c = i.closest("[data-node-id]")) == null ? void 0 : c.getAttribute("data-node-id"));
274
+ u && (o([]), s([u]));
265
275
  }, j = w(
266
- ({ parentNode: o, dragNodes: i }) => {
276
+ ({ parentNode: n, dragNodes: i }) => {
267
277
  var u;
268
- return !y(o == null ? void 0 : o.data._type, (u = i[0]) == null ? void 0 : u.data._type);
278
+ return !y(n == null ? void 0 : n.data._type, (u = i[0]) == null ? void 0 : u.data._type);
269
279
  },
270
280
  [],
271
281
  300
272
282
  );
273
- return /* @__PURE__ */ e.jsx("div", { className: N("-mx-1 -mt-1 flex h-full select-none flex-col space-y-1"), onClick: () => a(), children: /* @__PURE__ */ e.jsx("div", { id: "outline-view", className: "no-scrollbar h-full overflow-y-auto p-1 px-2 text-xs", children: /* @__PURE__ */ e.jsx(
283
+ return /* @__PURE__ */ e.jsx("div", { className: M("-mx-1 -mt-1 flex h-full select-none flex-col space-y-1"), onClick: () => a(), children: /* @__PURE__ */ e.jsx("div", { id: "outline-view", className: "no-scrollbar h-full overflow-y-auto p-1 px-2 text-xs", children: /* @__PURE__ */ e.jsx(
274
284
  A,
275
285
  {
276
286
  height: 800,
@@ -283,7 +293,7 @@ const S = (t) => {
283
293
  data: t,
284
294
  renderCursor: we,
285
295
  onSelect: h,
286
- childrenAccessor: (o) => o.children,
296
+ childrenAccessor: (n) => n.children,
287
297
  width: "100%",
288
298
  renderDragPreview: _e,
289
299
  indent: 10,
@@ -295,5 +305,5 @@ const S = (t) => {
295
305
  ) }) });
296
306
  };
297
307
  export {
298
- pt as default
308
+ kt as default
299
309
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=["hover","focus","focus-within","focus-visible","active","visited","target","first","last","only","odd","even","first-of-type","last-of-type","only-of-type","empty","disabled","checked","indeterminate","default","required","valid","invalid","in-range","out-of-range","placeholder-shown","autofill","read-only","open","before","after","first-letter","first-line","marker","selection","file","placeholder","ui-open","ui-disabled","ui-active","ui-selected","ui-checked","ui-not-open","ui-not-disabled","ui-not-active","ui-not-selected","ui-not-checked"],o={bodyFont:"Inter",headingFont:"Inter",roundedCorners:5,primaryColor:"#570df8",secondaryColor:"#f002b8",bodyBgDarkColor:"#031022",bodyBgLightColor:"#fcfcfc",bodyTextDarkColor:"#ffffff",bodyTextLightColor:"#000000"};exports.BRANDING_OPTIONS_DEFAULTS=o;exports.MODIFIERS=e;
@@ -1,8 +1,4 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function t(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- const i = [
1
+ const e = [
6
2
  "hover",
7
3
  "focus",
8
4
  "focus-within",
@@ -51,7 +47,7 @@ const i = [
51
47
  "ui-not-active",
52
48
  "ui-not-selected",
53
49
  "ui-not-checked"
54
- ], l = {
50
+ ], o = {
55
51
  bodyFont: "Inter",
56
52
  headingFont: "Inter",
57
53
  roundedCorners: 5,
@@ -63,8 +59,6 @@ const i = [
63
59
  bodyTextLightColor: "#000000"
64
60
  };
65
61
  export {
66
- l as B,
67
- i as M,
68
- o as c,
69
- t as g
62
+ o as B,
63
+ e as M
70
64
  };
@@ -0,0 +1,64 @@
1
+ import { j as t } from "./jsx-runtime-WbnYoNE9.js";
2
+ import i, { Suspense as s } from "react";
3
+ import { sortBy as a, filter as d, get as n } from "lodash-es";
4
+ import { u as l, a as c } from "./index-llTXLDGE.js";
5
+ import "./_commonjsHelpers-UyOWmZb0.js";
6
+ import "./index-SkyM3d6Q.js";
7
+ import "i18next";
8
+ import "react-i18next";
9
+ import "./index-Gk6sASBd.js";
10
+ import "./Functions-7jnEwJyw.js";
11
+ import "clsx";
12
+ import "tailwind-merge";
13
+ import "@chaibuilder/runtime";
14
+ import "jotai";
15
+ import "./STRINGS--j49GZJP.js";
16
+ import "@react-hookz/web";
17
+ import "./MODIFIERS-dytZ-osO.js";
18
+ import "./Class-lGzsNBOK.js";
19
+ import "@radix-ui/react-toggle";
20
+ import "class-variance-authority";
21
+ import "@radix-ui/react-switch";
22
+ import "@radix-ui/react-slot";
23
+ import "@radix-ui/react-accordion";
24
+ import "@radix-ui/react-icons";
25
+ import "@radix-ui/react-alert-dialog";
26
+ import "@radix-ui/react-dialog";
27
+ import "@radix-ui/react-label";
28
+ import "@radix-ui/react-scroll-area";
29
+ import "@radix-ui/react-tabs";
30
+ import "@radix-ui/react-tooltip";
31
+ import "@radix-ui/react-popover";
32
+ import "@radix-ui/react-menubar";
33
+ import "@radix-ui/react-hover-card";
34
+ import "@radix-ui/react-select";
35
+ import "@radix-ui/react-dropdown-menu";
36
+ import "@radix-ui/react-separator";
37
+ import "@radix-ui/react-toast";
38
+ import "cmdk";
39
+ import "@radix-ui/react-context-menu";
40
+ import "react-icons-picker";
41
+ import "react-dom";
42
+ import "react-quill";
43
+ import "@floating-ui/react-dom";
44
+ import "flagged";
45
+ import "react-hotkeys-hook";
46
+ import "sonner";
47
+ import "./html-to-json-ngX9ef2u.js";
48
+ import "himalaya";
49
+ import "lucide-react";
50
+ import "./index-YpnaudSM.js";
51
+ const x = i.lazy(() => import("./add-page-modal-k2Kb92HS.js")), u = i.lazy(() => import("./page-viewer-Pdg9F5Hv.js")), lt = () => {
52
+ const { data: o = [], isLoading: m } = l(), { data: r } = c(), p = a(d(o, { type: "STATIC" }), (e) => n(e, "uuid") === (r == null ? void 0 : r.homepage) ? 0 : 1);
53
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
54
+ /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: [
55
+ /* @__PURE__ */ t.jsx("h1", { className: "px-1 font-semibold", children: "Pages" }),
56
+ /* @__PURE__ */ t.jsx(s, { fallback: /* @__PURE__ */ t.jsx("div", { className: "text-sm text-blue-500 underline", children: "+ New Page" }), children: /* @__PURE__ */ t.jsx(x, {}) })
57
+ ] }),
58
+ /* @__PURE__ */ t.jsx("hr", { className: "-mx-1" }),
59
+ /* @__PURE__ */ t.jsx("div", { className: "-mx-1 divide-y-2", children: /* @__PURE__ */ t.jsx(u, { isLoading: m, pages: p }) })
60
+ ] });
61
+ };
62
+ export {
63
+ lt as default
64
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),u=require("react"),i=require("lodash-es"),s=require("./index-mbyqq81O.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./index-OB199Izc.cjs");require("i18next");require("react-i18next");require("./index-h-hd6EvN.cjs");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-0g14w5RS.cjs");require("./Class-PoYusiA5.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-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("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("sonner");require("./html-to-json-efmv1pCj.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");const a=u.lazy(()=>Promise.resolve().then(()=>require("./add-page-modal--6TTBRYa.cjs"))),x=u.lazy(()=>Promise.resolve().then(()=>require("./page-viewer-2kwnKM6v.cjs"))),d=()=>{const{data:t=[],isLoading:q}=s.usePages(),{data:r}=s.useProject(),n=i.sortBy(i.filter(t,{type:"STATIC"}),o=>i.get(o,"uuid")===(r==null?void 0:r.homepage)?0:1);return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between rounded-md bg-background/30 p-1",children:[e.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:"Pages"}),e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsx("div",{className:"text-sm text-blue-500 underline",children:"+ New Page"}),children:e.jsxRuntimeExports.jsx(a,{})})]}),e.jsxRuntimeExports.jsx("hr",{className:"-mx-1"}),e.jsxRuntimeExports.jsx("div",{className:"-mx-1 divide-y-2",children:e.jsxRuntimeExports.jsx(x,{isLoading:q,pages:n})})]})};exports.default=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),r=require("react"),x=require("lodash-es"),s=require("./index-h-hd6EvN.cjs"),a=require("./index-mbyqq81O.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("./Functions-N3yhPYKY.cjs");require("clsx");require("tailwind-merge");require("@chaibuilder/runtime");require("jotai");require("./STRINGS-gPz7CUOk.cjs");require("@react-hookz/web");require("./MODIFIERS-0g14w5RS.cjs");require("./Class-PoYusiA5.cjs");require("react-i18next");require("@radix-ui/react-toggle");require("class-variance-authority");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-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("./index-OB199Izc.cjs");require("i18next");require("@floating-ui/react-dom");require("flagged");require("react-hotkeys-hook");require("sonner");require("./html-to-json-efmv1pCj.cjs");require("himalaya");require("lucide-react");require("./index-ecnGWzh9.cjs");const d=r.lazy(()=>Promise.resolve().then(()=>require("./project-general-setting-CnNL98NM.cjs"))),m=r.lazy(()=>Promise.resolve().then(()=>require("./project-seo-setting-mlxL_e2_.cjs"))),c=e.jsxRuntimeExports.jsx("div",{className:"px-3",children:e.jsxRuntimeExports.jsx("div",{className:"h-52 w-full animate-pulse rounded-md bg-gray-100"})}),l=t=>t&&x.isEmpty(t.seoData)?{...t,seoData:{title:"",description:"",image:""}}:t;function q(){const t=a.useUpdateProject(),{data:n}=a.useProject(),[i,o]=r.useState(l(n||{})),u=r.useRef(i);return r.useEffect(()=>()=>{x.isEqual(n,u.current)||t.mutate(u.current,{onSuccess:()=>o(u.current)})},[u]),r.useEffect(()=>{u.current=i},[i]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between rounded-md bg-background/30 p-1",children:e.jsxRuntimeExports.jsx("h1",{className:"px-1 font-semibold",children:"Website Settings"})}),e.jsxRuntimeExports.jsx("hr",{className:"-mx-1"}),e.jsxRuntimeExports.jsx("div",{className:"-mx-1",children:e.jsxRuntimeExports.jsxs(s.Accordion,{type:"single",className:"w-full",defaultValue:"GENERAL",children:[e.jsxRuntimeExports.jsxs(s.AccordionItem,{value:"GENERAL",className:"border-b-2 border-slate-100 dark:border-slate-800",children:[e.jsxRuntimeExports.jsx(s.AccordionTrigger,{className:"bg-slate-200 px-2.5 py-1.5 font-medium hover:bg-slate-100 hover:no-underline dark:bg-slate-900 dark:hover:bg-slate-800",children:"General Settings"}),e.jsxRuntimeExports.jsx(s.AccordionContent,{className:"px-2 pt-4 text-sm",children:e.jsxRuntimeExports.jsx(r.Suspense,{fallback:c,children:e.jsxRuntimeExports.jsx(d,{_projectData:i,seany:o})})})]}),e.jsxRuntimeExports.jsxs(s.AccordionItem,{value:"SEO",className:"border-b-2 border-slate-100 dark:border-slate-800",children:[e.jsxRuntimeExports.jsx(s.AccordionTrigger,{className:"bg-slate-200 px-2.5 py-1.5 font-medium hover:bg-slate-100 hover:no-underline dark:bg-slate-900 dark:hover:bg-slate-800",children:"SEO Settings"}),e.jsxRuntimeExports.jsx(s.AccordionContent,{className:"px-1 pt-4 text-sm",children:e.jsxRuntimeExports.jsx(r.Suspense,{fallback:c,children:e.jsxRuntimeExports.jsx(m,{_projectData:i,seany:o})})})]})]})})]})}exports.default=q;
@@ -0,0 +1,85 @@
1
+ import { j as t } from "./jsx-runtime-WbnYoNE9.js";
2
+ import m, { useRef as x, useEffect as a, Suspense as p } from "react";
3
+ import { isEqual as b, isEmpty as j } from "lodash-es";
4
+ import { b9 as f, ba as n, bb as l, bc as c } from "./index-Gk6sASBd.js";
5
+ import { b as h, a as g } from "./index-llTXLDGE.js";
6
+ import "./_commonjsHelpers-UyOWmZb0.js";
7
+ import "./Functions-7jnEwJyw.js";
8
+ import "clsx";
9
+ import "tailwind-merge";
10
+ import "@chaibuilder/runtime";
11
+ import "jotai";
12
+ import "./STRINGS--j49GZJP.js";
13
+ import "@react-hookz/web";
14
+ import "./MODIFIERS-dytZ-osO.js";
15
+ import "./Class-lGzsNBOK.js";
16
+ import "react-i18next";
17
+ import "@radix-ui/react-toggle";
18
+ import "class-variance-authority";
19
+ import "@radix-ui/react-switch";
20
+ import "@radix-ui/react-slot";
21
+ import "@radix-ui/react-accordion";
22
+ import "@radix-ui/react-icons";
23
+ import "@radix-ui/react-alert-dialog";
24
+ import "@radix-ui/react-dialog";
25
+ import "@radix-ui/react-label";
26
+ import "@radix-ui/react-scroll-area";
27
+ import "@radix-ui/react-tabs";
28
+ import "@radix-ui/react-tooltip";
29
+ import "@radix-ui/react-popover";
30
+ import "@radix-ui/react-menubar";
31
+ import "@radix-ui/react-hover-card";
32
+ import "@radix-ui/react-select";
33
+ import "@radix-ui/react-dropdown-menu";
34
+ import "@radix-ui/react-separator";
35
+ import "@radix-ui/react-toast";
36
+ import "cmdk";
37
+ import "@radix-ui/react-context-menu";
38
+ import "react-icons-picker";
39
+ import "react-dom";
40
+ import "react-quill";
41
+ import "./index-SkyM3d6Q.js";
42
+ import "i18next";
43
+ import "@floating-ui/react-dom";
44
+ import "flagged";
45
+ import "react-hotkeys-hook";
46
+ import "sonner";
47
+ import "./html-to-json-ngX9ef2u.js";
48
+ import "himalaya";
49
+ import "lucide-react";
50
+ import "./index-YpnaudSM.js";
51
+ const N = m.lazy(() => import("./project-general-setting-f8Ebsn6K.js")), S = m.lazy(() => import("./project-seo-setting-pX34Qsym.js")), d = /* @__PURE__ */ t.jsx("div", { className: "px-3", children: /* @__PURE__ */ t.jsx("div", { className: "h-52 w-full animate-pulse rounded-md bg-gray-100" }) }), u = (e) => e && j(e.seoData) ? {
52
+ ...e,
53
+ seoData: { title: "", description: "", image: "" }
54
+ } : e;
55
+ function ht() {
56
+ const e = h(), { data: s } = g(), [r, i] = m.useState(
57
+ u(s || {})
58
+ ), o = x(r);
59
+ return a(
60
+ () => () => {
61
+ b(s, o.current) || e.mutate(o.current, {
62
+ onSuccess: () => i(o.current)
63
+ });
64
+ },
65
+ [o]
66
+ ), a(() => {
67
+ o.current = r;
68
+ }, [r]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
69
+ /* @__PURE__ */ t.jsx("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: /* @__PURE__ */ t.jsx("h1", { className: "px-1 font-semibold", children: "Website Settings" }) }),
70
+ /* @__PURE__ */ t.jsx("hr", { className: "-mx-1" }),
71
+ /* @__PURE__ */ t.jsx("div", { className: "-mx-1", children: /* @__PURE__ */ t.jsxs(f, { type: "single", className: "w-full", defaultValue: "GENERAL", children: [
72
+ /* @__PURE__ */ t.jsxs(n, { value: "GENERAL", className: "border-b-2 border-slate-100 dark:border-slate-800", children: [
73
+ /* @__PURE__ */ t.jsx(l, { className: "bg-slate-200 px-2.5 py-1.5 font-medium hover:bg-slate-100 hover:no-underline dark:bg-slate-900 dark:hover:bg-slate-800", children: "General Settings" }),
74
+ /* @__PURE__ */ t.jsx(c, { className: "px-2 pt-4 text-sm", children: /* @__PURE__ */ t.jsx(p, { fallback: d, children: /* @__PURE__ */ t.jsx(N, { _projectData: r, seany: i }) }) })
75
+ ] }),
76
+ /* @__PURE__ */ t.jsxs(n, { value: "SEO", className: "border-b-2 border-slate-100 dark:border-slate-800", children: [
77
+ /* @__PURE__ */ t.jsx(l, { className: "bg-slate-200 px-2.5 py-1.5 font-medium hover:bg-slate-100 hover:no-underline dark:bg-slate-900 dark:hover:bg-slate-800", children: "SEO Settings" }),
78
+ /* @__PURE__ */ t.jsx(c, { className: "px-1 pt-4 text-sm", children: /* @__PURE__ */ t.jsx(p, { fallback: d, children: /* @__PURE__ */ t.jsx(S, { _projectData: r, seany: i }) }) })
79
+ ] })
80
+ ] }) })
81
+ ] });
82
+ }
83
+ export {
84
+ ht as default
85
+ };
@@ -2,6 +2,6 @@ const s = "#styles:", t = "#slots:", o = "#i18n", n = "outline";
2
2
  export {
3
3
  o as I,
4
4
  n as O,
5
- s as S,
6
- t as a
5
+ t as S,
6
+ s as a
7
7
  };