@chaibuilder/sdk 1.0.18 → 1.0.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 (69) hide show
  1. package/dist/AddBlocks-LvIqNyBE.cjs +3 -0
  2. package/dist/{AddBlocks-eoo1CzaK.js → AddBlocks-U6bHEqmk.js} +23 -23
  3. package/dist/{BrandingOptions-ZfGlHDQN.js → BrandingOptions-qDgIOayU.js} +3 -3
  4. package/dist/{BrandingOptions-qLROZ5_E.cjs → BrandingOptions-viABH78W.cjs} +1 -1
  5. package/dist/{CanvasArea-tngPDKeT.js → CanvasArea-_poBbOON.js} +5 -5
  6. package/dist/{CanvasArea-970i3vfn.cjs → CanvasArea-yXpQHB6x.cjs} +2 -2
  7. package/dist/{CurrentPage-CMfaRNdW.js → CurrentPage-SrovfgGL.js} +4 -4
  8. package/dist/{CurrentPage-ChffzjTI.cjs → CurrentPage-XWSb_RZ8.cjs} +1 -1
  9. package/dist/{Layers-uB7ROW-2.js → Layers-OKJ5nkTF.js} +5 -5
  10. package/dist/{Layers-GkcHf9zi.cjs → Layers-oluQMEyo.cjs} +1 -1
  11. package/dist/{MarkAsGlobalBlock-lYL8cO9x.cjs → MarkAsGlobalBlock-PG9EQfno.cjs} +1 -1
  12. package/dist/{MarkAsGlobalBlock-ySc-D4SB.js → MarkAsGlobalBlock-Ynq-S6mW.js} +2 -2
  13. package/dist/{PagesPanel-DVZ90k1Y.js → PagesPanel-5macGkBU.js} +5 -5
  14. package/dist/{PagesPanel-ZhyfEOgv.cjs → PagesPanel-wYA8ksbF.cjs} +1 -1
  15. package/dist/{ProjectPanel-8oW-gW5l.cjs → ProjectPanel-4hGK3CSo.cjs} +1 -1
  16. package/dist/{ProjectPanel-WCQDwngA.js → ProjectPanel-HS_TJ2k0.js} +5 -5
  17. package/dist/{Settings-7Km8_Iba.js → Settings-23ZBoDkz.js} +84 -84
  18. package/dist/Settings-KS4sVa5a.cjs +1 -0
  19. package/dist/{SidePanels-_2og328o.js → SidePanels-HzpyQU1x.js} +5 -5
  20. package/dist/SidePanels-IfwzrWxw.cjs +1 -0
  21. package/dist/{Topbar-lX9OMPwj.js → Topbar-tfg74vbT.js} +2 -2
  22. package/dist/{Topbar-qi5ab8rR.cjs → Topbar-zZtHp9g8.cjs} +1 -1
  23. package/dist/{UnsplashImages-a2r7b3kB.cjs → UnsplashImages-nA7MSE46.cjs} +1 -1
  24. package/dist/{UnsplashImages-u_QTABzi.js → UnsplashImages-tvUZGbHK.js} +2 -2
  25. package/dist/{UploadImages-jLQgLujd.cjs → UploadImages-Ne7knL-U.cjs} +1 -1
  26. package/dist/{UploadImages-gV5xDHIu.js → UploadImages-pKoVEsI7.js} +2 -2
  27. package/dist/{add-page-modal-PsNV4j42.js → add-page-modal-217go3Eh.js} +5 -5
  28. package/dist/{add-page-modal-OBghcP4h.cjs → add-page-modal-az5Y2__Z.cjs} +1 -1
  29. package/dist/blocks.cjs +1 -0
  30. package/dist/blocks.d.ts +4 -0
  31. package/dist/blocks.js +20 -0
  32. package/dist/{confirm-alert-ZQ-sxX0X.js → confirm-alert-AG96Fmck.js} +2 -2
  33. package/dist/{confirm-alert-z74-fGOT.cjs → confirm-alert-tADWj_Cs.cjs} +1 -1
  34. package/dist/core.cjs +1 -1
  35. package/dist/core.js +4 -4
  36. package/dist/{delete-page-modal-5QqRuat8.js → delete-page-modal-YYt_TVmB.js} +4 -4
  37. package/dist/{delete-page-modal-niJTfDhl.cjs → delete-page-modal-iits21u4.cjs} +1 -1
  38. package/dist/{form-Osm1AmO5.cjs → form-Ik57WNLs.cjs} +1 -1
  39. package/dist/{form-zZJyZuNH.js → form-gIapXg-W.js} +1 -1
  40. package/dist/{index-X20Fx8GF.js → index-4DQm5fFW.js} +5 -5
  41. package/dist/{index-2EHcmZqL.js → index-PrUoEet_.js} +2 -2
  42. package/dist/{index-yWvUd-lf.js → index-SSmZipiF.js} +3 -1
  43. package/dist/index-UXNvQkHk.cjs +1 -0
  44. package/dist/index-plLNWLKk.cjs +9 -0
  45. package/dist/{index-3_eUgIcu.cjs → index-tTN-yd28.cjs} +2 -2
  46. package/dist/{page-viewer-vgt_sF5B.cjs → page-viewer-2SE5kCoO.cjs} +1 -1
  47. package/dist/{page-viewer-_Sx79O1c.js → page-viewer-LQSQxs98.js} +5 -5
  48. package/dist/{project-general-setting-d4UJ9Xsf.js → project-general-setting-04N25MvJ.js} +5 -5
  49. package/dist/{project-general-setting-isR_XMTY.cjs → project-general-setting-XunBDyuZ.cjs} +1 -1
  50. package/dist/{project-seo-setting-tUM5Jqki.cjs → project-seo-setting-_nu22LPz.cjs} +1 -1
  51. package/dist/{project-seo-setting-FpCjw-1j.js → project-seo-setting-zxnjvt3c.js} +4 -4
  52. package/dist/render.cjs +1 -1
  53. package/dist/render.js +12 -12
  54. package/dist/server.cjs +1 -1
  55. package/dist/server.js +1 -1
  56. package/dist/{single-page-detail-nAykBmpV.cjs → single-page-detail-TjWZvxFa.cjs} +1 -1
  57. package/dist/{single-page-detail-Ajzk6Hdb.js → single-page-detail-lJHZSKqK.js} +6 -6
  58. package/dist/studio.cjs +1 -1
  59. package/dist/studio.js +4 -4
  60. package/dist/ui.cjs +1 -1
  61. package/dist/ui.js +2 -2
  62. package/package.json +6 -1
  63. package/dist/AddBlocks-jU0NwP_s.cjs +0 -3
  64. package/dist/Settings-CLiAR8FT.cjs +0 -1
  65. package/dist/SidePanels-D7Jota-n.cjs +0 -1
  66. package/dist/index-aGgHTZqR.cjs +0 -9
  67. package/dist/index-c8zW_D2V.cjs +0 -1
  68. package/dist/index-fwo4wa7u.cjs +0 -1
  69. package/dist/index-gmZcUXyn.js +0 -25
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WKRPbKtm.cjs"),u=require("react"),i=require("lodash"),s=require("./index-3_eUgIcu.cjs");require("./Class-RZuPYbUS.cjs");require("clsx");require("tailwind-merge");require("i18next");require("react-i18next");require("./index-aGgHTZqR.cjs");require("./index-fwo4wa7u.cjs");require("@radix-ui/react-icons");require("./lib.cjs");require("himalaya");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("./index-c8zW_D2V.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-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("jotai");require("flat-to-nested");require("redux-undo");require("@react-hookz/web");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("lucide-react");const a=u.lazy(()=>Promise.resolve().then(()=>require("./add-page-modal-OBghcP4h.cjs"))),x=u.lazy(()=>Promise.resolve().then(()=>require("./page-viewer-vgt_sF5B.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WKRPbKtm.cjs"),u=require("react"),i=require("lodash"),s=require("./index-tTN-yd28.cjs");require("./Class-RZuPYbUS.cjs");require("clsx");require("tailwind-merge");require("i18next");require("react-i18next");require("./index-plLNWLKk.cjs");require("@chaibuilder/runtime");require("@radix-ui/react-icons");require("./lib.cjs");require("himalaya");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("./index-UXNvQkHk.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-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("jotai");require("flat-to-nested");require("redux-undo");require("@react-hookz/web");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("lucide-react");const a=u.lazy(()=>Promise.resolve().then(()=>require("./add-page-modal-az5Y2__Z.cjs"))),x=u.lazy(()=>Promise.resolve().then(()=>require("./page-viewer-2SE5kCoO.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;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WKRPbKtm.cjs"),r=require("react"),x=require("lodash"),s=require("./index-c8zW_D2V.cjs"),a=require("./index-3_eUgIcu.cjs");require("./Class-RZuPYbUS.cjs");require("clsx");require("tailwind-merge");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("jotai");require("flat-to-nested");require("redux-undo");require("./index-fwo4wa7u.cjs");require("@react-hookz/web");require("react-i18next");require("i18next");require("./index-aGgHTZqR.cjs");require("./lib.cjs");require("himalaya");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("lucide-react");const d=r.lazy(()=>Promise.resolve().then(()=>require("./project-general-setting-isR_XMTY.cjs"))),q=r.lazy(()=>Promise.resolve().then(()=>require("./project-seo-setting-tUM5Jqki.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 m(){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(q,{_projectData:i,seany:o})})})]})]})})]})}exports.default=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-WKRPbKtm.cjs"),r=require("react"),x=require("lodash"),s=require("./index-UXNvQkHk.cjs"),a=require("./index-tTN-yd28.cjs");require("./Class-RZuPYbUS.cjs");require("clsx");require("tailwind-merge");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("jotai");require("flat-to-nested");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("react-i18next");require("i18next");require("./index-plLNWLKk.cjs");require("./lib.cjs");require("himalaya");require("@mhsdesign/jit-browser-tailwindcss");require("@bobthered/tailwindcss-palette-generator");require("@tailwindcss/forms");require("@tailwindcss/typography");require("@tailwindcss/aspect-ratio");require("@tailwindcss/line-clamp");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("lucide-react");const d=r.lazy(()=>Promise.resolve().then(()=>require("./project-general-setting-XunBDyuZ.cjs"))),q=r.lazy(()=>Promise.resolve().then(()=>require("./project-seo-setting-_nu22LPz.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 m(){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(q,{_projectData:i,seany:o})})})]})]})})]})}exports.default=m;
@@ -1,8 +1,8 @@
1
1
  import { j as t } from "./jsx-runtime-qAwJ85SY.js";
2
2
  import m, { useRef as x, useEffect as a, Suspense as p } from "react";
3
3
  import { isEqual as b, isEmpty as j } from "lodash";
4
- import { bi as f, bj as n, bk as l, bl as c } from "./index-2EHcmZqL.js";
5
- import { c as h, b as g } from "./index-X20Fx8GF.js";
4
+ import { bi as f, bj as n, bk as l, bl as c } from "./index-PrUoEet_.js";
5
+ import { c as h, b as g } from "./index-4DQm5fFW.js";
6
6
  import "./Class-nQk08vqd.js";
7
7
  import "clsx";
8
8
  import "tailwind-merge";
@@ -33,11 +33,11 @@ import "react-quill";
33
33
  import "jotai";
34
34
  import "flat-to-nested";
35
35
  import "redux-undo";
36
- import "./index-gmZcUXyn.js";
36
+ import "@chaibuilder/runtime";
37
37
  import "@react-hookz/web";
38
38
  import "react-i18next";
39
39
  import "i18next";
40
- import "./index-yWvUd-lf.js";
40
+ import "./index-SSmZipiF.js";
41
41
  import "./lib.js";
42
42
  import "himalaya";
43
43
  import "@mhsdesign/jit-browser-tailwindcss";
@@ -54,7 +54,7 @@ import "@minoru/react-dnd-treeview";
54
54
  import "react-hotkeys-hook";
55
55
  import "sonner";
56
56
  import "lucide-react";
57
- const N = m.lazy(() => import("./project-general-setting-d4UJ9Xsf.js")), S = m.lazy(() => import("./project-seo-setting-FpCjw-1j.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 = (r) => r && j(r.seoData) ? {
57
+ const N = m.lazy(() => import("./project-general-setting-04N25MvJ.js")), S = m.lazy(() => import("./project-seo-setting-zxnjvt3c.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 = (r) => r && j(r.seoData) ? {
58
58
  ...r,
59
59
  seoData: { title: "", description: "", image: "" }
60
60
  } : r;
@@ -1,17 +1,17 @@
1
1
  import { j as e } from "./jsx-runtime-qAwJ85SY.js";
2
2
  import * as ne from "react";
3
- import $, { useState as w, useMemo as k, useEffect as _, useCallback as A, createContext as Oe, useContext as re } from "react";
3
+ import P, { useState as w, useMemo as N, useEffect as _, useCallback as A, createContext as Oe, useContext as re } from "react";
4
4
  import { useThrottledCallback as me } from "@react-hookz/web";
5
5
  import { forEach as je, isArray as ae, omit as it, truncate as dt, includes as M, get as p, first as we, split as ct, startCase as Y, toLower as te, isEmpty as b, map as C, find as pt, last as ye, filter as be, set as Me, keys as ut, cloneDeep as xt, each as gt, capitalize as ht, reject as mt, nth as Re, startsWith as z, isNumber as yt, parseInt as bt, isNaN as Ee, findLast as ft, flatten as U, intersection as _e, has as ge, isNull as vt } from "lodash";
6
6
  import { useTranslation as Fe } from "react-i18next";
7
- import { PlusIcon as Ce, Cross2Icon as Ye, EyeOpenIcon as jt, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as wt, ArrowTopRightIcon as Ct, ArrowBottomRightIcon as Nt, ArrowBottomLeftIcon as kt, AlignLeftIcon as Tt, AlignCenterHorizontallyIcon as St, AlignRightIcon as Rt, StretchHorizontallyIcon as Vt, FontItalicIcon as Ht, UnderlineIcon as Bt, OverlineIcon as At, LetterCaseUppercaseIcon as Dt, Cross1Icon as $t, InfoCircledIcon as Ne, MinusIcon as It, BoxIcon as We, RowSpacingIcon as Pt, TriangleDownIcon as Lt, TrashIcon as Xe, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
- import { b1 as Ot, b2 as Mt, B as pe, b3 as Et, b4 as _t, b5 as Ft, b6 as Yt, b7 as Wt, b8 as Xt, b9 as Zt, a6 as G, aq as zt, ar as Ut, as as Gt, ba as Kt, ao as qt, bb as Jt, ap as Qt, aH as W, aI as X, aK as Z, ak as er, bc as tr, bd as rr, be as lr, bf as sr, bg as or, bh as nr, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as ke, P as Ke, a3 as qe, j as Je, aM as Te, bm as ar, bn as ir, a4 as ue, W as dr, a9 as Qe, R as He, ag as cr, ad as pr, bo as ur, au as xr, av as gr, aw as hr, ax as mr, ay as H, bp as yr, aB as br, aC as fr, aD as Be, aE as Ae } from "./index-2EHcmZqL.js";
7
+ import { PlusIcon as Ce, Cross2Icon as Ye, EyeOpenIcon as jt, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as wt, ArrowTopRightIcon as Ct, ArrowBottomRightIcon as kt, ArrowBottomLeftIcon as Nt, AlignLeftIcon as Tt, AlignCenterHorizontallyIcon as St, AlignRightIcon as Rt, StretchHorizontallyIcon as Vt, FontItalicIcon as Ht, UnderlineIcon as Bt, OverlineIcon as At, LetterCaseUppercaseIcon as Dt, Cross1Icon as Pt, InfoCircledIcon as ke, MinusIcon as $t, BoxIcon as We, RowSpacingIcon as It, TriangleDownIcon as Lt, TrashIcon as Xe, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
+ import { b1 as Ot, b2 as Mt, B as pe, b3 as Et, b4 as _t, b5 as Ft, b6 as Yt, b7 as Wt, b8 as Xt, b9 as Zt, a6 as G, aq as zt, ar as Ut, as as Gt, ba as Kt, ao as qt, bb as Jt, ap as Qt, aH as W, aI as X, aK as Z, ak as er, bc as tr, bd as rr, be as lr, bf as sr, bg as or, bh as nr, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bm as ar, bn as ir, a4 as ue, W as dr, a9 as Qe, R as He, ag as cr, ad as pr, bo as ur, au as xr, av as gr, aw as hr, ax as mr, ay as H, bp as yr, aB as br, aC as fr, aD as Be, aE as Ae } from "./index-PrUoEet_.js";
9
9
  import vr from "@rjsf/core";
10
10
  import jr from "@rjsf/validator-ajv8";
11
- import { u as wr } from "./index-yWvUd-lf.js";
12
- import { Check as Cr, EditIcon as Nr, TrashIcon as kr } from "lucide-react";
13
- import { h as et, A as Tr } from "./index-gmZcUXyn.js";
14
- import { E as Sr, u as tt } from "./index-X20Fx8GF.js";
11
+ import { u as wr } from "./index-SSmZipiF.js";
12
+ import { Check as Cr, EditIcon as kr, TrashIcon as Nr } from "lucide-react";
13
+ import { getBlockComponent as et, getChaiDataProviders as Tr } from "@chaibuilder/runtime";
14
+ import { E as Sr, u as tt } from "./index-4DQm5fFW.js";
15
15
  import { useAtom as Rr } from "jotai";
16
16
  import Vr from "react-autosuggest";
17
17
  import Hr from "fuse.js";
@@ -59,8 +59,8 @@ import "react-dnd";
59
59
  import "@minoru/react-dnd-treeview";
60
60
  import "react-hotkeys-hook";
61
61
  import "sonner";
62
- const $r = $.lazy(() => import("react-json-view"));
63
- function Ir(t) {
62
+ const Pr = P.lazy(() => import("react-json-view"));
63
+ function $r(t) {
64
64
  const l = [], r = {};
65
65
  function s(o, a) {
66
66
  je(a, (d, i) => {
@@ -77,7 +77,7 @@ const fe = ({ data: t, fullView: l }) => {
77
77
  return l ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
78
78
  /* @__PURE__ */ e.jsx("div", { className: "h-3" }),
79
79
  /* @__PURE__ */ e.jsx(Sr, { children: /* @__PURE__ */ e.jsx(
80
- $r,
80
+ Pr,
81
81
  {
82
82
  style: { maxHeight: "40vh", overflowY: "auto" },
83
83
  name: "Content",
@@ -101,7 +101,7 @@ const fe = ({ data: t, fullView: l }) => {
101
101
  dataType: a,
102
102
  appliedBindings: d
103
103
  }) => {
104
- const { paths: i, pathsType: n } = Ir(s), u = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, x = t === "PROP", [c, m] = w(!1), h = k(() => t === "PROP" ? i.filter(
104
+ const { paths: i, pathsType: n } = $r(s), u = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, x = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
105
105
  (g) => !M(d, g) && p(u, `props.${we(ct(g, "."))}.binding`)
106
106
  ) : i.filter((g) => a === p(n, g, "")), [t, i, d, a, u]);
107
107
  return _(() => {
@@ -156,7 +156,7 @@ const fe = ({ data: t, fullView: l }) => {
156
156
  ] }),
157
157
  !x && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(fe, { data: p(s, l, ""), fullView: !0 }) })
158
158
  ] });
159
- }, Pr = ({
159
+ }, Ir = ({
160
160
  appliedBindings: t = [],
161
161
  onAddBinding: l,
162
162
  editMode: r,
@@ -234,7 +234,7 @@ const fe = ({ data: t, fullView: l }) => {
234
234
  return /* @__PURE__ */ e.jsxs(qt, { children: [
235
235
  /* @__PURE__ */ e.jsx(Jt, { asChild: !0, onClick: () => d(!0), children: t }),
236
236
  a && /* @__PURE__ */ e.jsx(Qt, { children: /* @__PURE__ */ e.jsx(
237
- Pr,
237
+ Ir,
238
238
  {
239
239
  item: o,
240
240
  editMode: s,
@@ -269,9 +269,9 @@ const fe = ({ data: t, fullView: l }) => {
269
269
  /* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
270
270
  /* @__PURE__ */ e.jsx(fe, { data: p(o, t.value, "") }),
271
271
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
272
- /* @__PURE__ */ e.jsx(rt, { editMode: !0, onAddBinding: l, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(Nr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
272
+ /* @__PURE__ */ e.jsx(rt, { editMode: !0, onAddBinding: l, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(kr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
273
273
  /* @__PURE__ */ e.jsx(
274
- kr,
274
+ Nr,
275
275
  {
276
276
  onClick: () => r(),
277
277
  className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-red-400 hover:text-white border-red-400 p-1 text-red-400 hover:scale-105 duration-200"
@@ -287,7 +287,7 @@ const fe = ({ data: t, fullView: l }) => {
287
287
  _(() => {
288
288
  d(C(t, (c, m) => ({ key: m, value: c })));
289
289
  }, [r == null ? void 0 : r._id]);
290
- const i = k(() => {
290
+ const i = N(() => {
291
291
  if (b(s))
292
292
  return !0;
293
293
  if (b(a))
@@ -342,7 +342,7 @@ const fe = ({ data: t, fullView: l }) => {
342
342
  i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(s) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
343
343
  ] })
344
344
  ] });
345
- }, Mr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), $e = ({
345
+ }, Mr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), Pe = ({
346
346
  createHistorySnapshot: t,
347
347
  properties: l,
348
348
  formData: r,
@@ -392,7 +392,7 @@ function Er() {
392
392
  title: "Name",
393
393
  default: p(t, "_name", t._type)
394
394
  })
395
- }, n = ut(p(o, "_bindings", {})), u = k(() => {
395
+ }, n = ut(p(o, "_bindings", {})), u = N(() => {
396
396
  const x = xt(p(s, "props", {}));
397
397
  return gt(n, (c) => {
398
398
  delete x[c];
@@ -400,7 +400,7 @@ function Er() {
400
400
  }, [s, n]);
401
401
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
402
402
  /* @__PURE__ */ e.jsx(
403
- $e,
403
+ Pe,
404
404
  {
405
405
  onChange: d,
406
406
  createHistorySnapshot: a,
@@ -444,7 +444,7 @@ function Er() {
444
444
  ". Remove data binding to edit static content."
445
445
  ] }),
446
446
  /* @__PURE__ */ e.jsx(
447
- $e,
447
+ Pe,
448
448
  {
449
449
  onChange: d,
450
450
  createHistorySnapshot: a,
@@ -458,7 +458,7 @@ function Er() {
458
458
  /* @__PURE__ */ e.jsx("div", { className: "pb-60" })
459
459
  ] });
460
460
  }
461
- const Ie = new Hr(Br, {
461
+ const $e = new Hr(Br, {
462
462
  isCaseSensitive: !1,
463
463
  threshold: 0.2,
464
464
  minMatchCharLength: 2,
@@ -466,21 +466,21 @@ const Ie = new Hr(Br, {
466
466
  });
467
467
  function _r() {
468
468
  var D;
469
- const [t] = ke(), l = G(), r = Ke(), s = qe(), [o] = Je(), [a, d] = w(""), i = (D = we(t)) == null ? void 0 : D.prop, n = mt((p(l, i, "").replace(Ar, "").split(",").pop() || "").split(" "), b), u = () => {
469
+ const [t] = Ne(), l = G(), r = Ke(), s = qe(), [o] = Je(), [a, d] = w(""), i = (D = we(t)) == null ? void 0 : D.prop, n = mt((p(l, i, "").replace(Ar, "").split(",").pop() || "").split(" "), b), u = () => {
470
470
  const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
471
471
  r(o, j, !0), d("");
472
472
  }, [x, c] = w([]), m = ({ value: j }) => {
473
- const L = j.trim().toLowerCase(), I = L.match(/.+:/g);
474
- let N = [];
475
- if (I && I.length > 0) {
476
- const [P] = I, F = L.replace(P, "");
477
- N = Ie.search(F).map((y) => ({
473
+ const L = j.trim().toLowerCase(), $ = L.match(/.+:/g);
474
+ let k = [];
475
+ if ($ && $.length > 0) {
476
+ const [I] = $, F = L.replace(I, "");
477
+ k = $e.search(F).map((y) => ({
478
478
  ...y,
479
- item: { ...y.item, name: P + y.item.name }
479
+ item: { ...y.item, name: I + y.item.name }
480
480
  }));
481
481
  } else
482
- N = Ie.search(L);
483
- c(C(N, "item"));
482
+ k = $e.search(L);
483
+ c(C(k, "item"));
484
484
  }, h = () => {
485
485
  c([]);
486
486
  }, g = (j) => j.name, f = (j) => /* @__PURE__ */ e.jsx("div", { className: "rounded-md p-1", children: j.name }), T = {
@@ -1025,8 +1025,8 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
1025
1025
  borderRadiusLeft: ee,
1026
1026
  borderRadiusTopLeft: wt,
1027
1027
  borderRadiusTopRight: Ct,
1028
- borderRadiusBottomRight: Nt,
1029
- borderRadiusBottomLeft: kt,
1028
+ borderRadiusBottomRight: kt,
1029
+ borderRadiusBottomLeft: Nt,
1030
1030
  divideXWidth: R,
1031
1031
  divideYWidth: V,
1032
1032
  scale: O,
@@ -1177,16 +1177,16 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
1177
1177
  }
1178
1178
  )
1179
1179
  ] }),
1180
- static: $t
1180
+ static: Pt
1181
1181
  }, le = Oe({ canReset: !1, canChange: !0 }), Xr = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
1182
1182
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1183
1183
  /* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
1184
1184
  ), st = ({ label: t, property: l, onChange: r }) => {
1185
- const s = k(() => p(xe, `${l}.classes`, [""]), [l]), o = se(l), a = k(() => p(o, "cls", ""), [o]), { canChange: d } = re(le), i = /\[.*\]/g.test(a);
1185
+ const s = N(() => p(xe, `${l}.classes`, [""]), [l]), o = se(l), a = N(() => p(o, "cls", ""), [o]), { canChange: d } = re(le), i = /\[.*\]/g.test(a);
1186
1186
  return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1187
1187
  /* @__PURE__ */ e.jsx(ar, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
1188
1188
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1189
- /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(Ne, {}) }) }),
1189
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(ke, {}) }) }),
1190
1190
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
1191
1191
  ] })
1192
1192
  ] }) : /* @__PURE__ */ e.jsx(
@@ -1214,7 +1214,7 @@ function ve({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: o
1214
1214
  value: a,
1215
1215
  children: [
1216
1216
  /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
1217
- $.Children.toArray(
1217
+ P.Children.toArray(
1218
1218
  s.map((n) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: n, children: n }))
1219
1219
  )
1220
1220
  ]
@@ -1222,7 +1222,7 @@ function ve({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: o
1222
1222
  );
1223
1223
  }
1224
1224
  const Zr = ({ property: t, onChange: l }) => {
1225
- const { canReset: r, canChange: s } = re(le), o = se(t), a = k(() => p(o, "cls", ""), [o]), d = k(() => p(xe, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, n = /\[.*\]/g.test(a);
1225
+ const { canReset: r, canChange: s } = re(le), o = se(t), a = N(() => p(o, "cls", ""), [o]), d = N(() => p(xe, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, n = /\[.*\]/g.test(a);
1226
1226
  return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: n ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: a }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1227
1227
  /* @__PURE__ */ e.jsx(
1228
1228
  "button",
@@ -1231,7 +1231,7 @@ const Zr = ({ property: t, onChange: l }) => {
1231
1231
  className: "box-border w-2/12 rounded-tl rounded-bl bg-background px-1 text-center hover:bg-bg-gray-700 disabled:cursor-not-allowed disabled:bg-gray-600",
1232
1232
  disabled: !s && (!r || i - 1 < 0),
1233
1233
  onClick: () => l(Re(d, i - 1), t),
1234
- children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(It, { className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-white/60" }) })
1234
+ children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx($t, { className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-white/60" }) })
1235
1235
  }
1236
1236
  ),
1237
1237
  /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(st, { label: !1, property: t, onChange: l }) }),
@@ -1252,7 +1252,7 @@ const Zr = ({ property: t, onChange: l }) => {
1252
1252
  )
1253
1253
  ] }) });
1254
1254
  }, zr = ({ property: t, onChange: l }) => {
1255
- const r = k(() => p(xe, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), o = se(t), a = k(() => p(o, "cls", ""), [o]);
1255
+ const r = N(() => p(xe, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), o = se(t), a = N(() => p(o, "cls", ""), [o]);
1256
1256
  return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(W, { children: [
1257
1257
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1258
1258
  "button",
@@ -1261,7 +1261,7 @@ const Zr = ({ property: t, onChange: l }) => {
1261
1261
  disabled: !s,
1262
1262
  onClick: () => l(d, t),
1263
1263
  className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${a === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1264
- children: $.createElement(p(lt, d, We))
1264
+ children: P.createElement(p(lt, d, We))
1265
1265
  }
1266
1266
  ) }),
1267
1267
  /* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
@@ -1279,7 +1279,7 @@ const Zr = ({ property: t, onChange: l }) => {
1279
1279
  ringColor: "ring",
1280
1280
  ringOffsetColor: "ring-offset"
1281
1281
  }, Gr = ({ property: t, onChange: l }) => {
1282
- const r = se(t), s = k(() => p(r, "cls", ""), [r]), { canChange: o } = re(le), [a, d] = w([]), [i, n] = w({ color: "", shade: "" }), u = s.split("-"), x = p(u, "1", ""), c = p(u, "2", ""), m = A(
1282
+ const r = se(t), s = N(() => p(r, "cls", ""), [r]), { canChange: o } = re(le), [a, d] = w([]), [i, n] = w({ color: "", shade: "" }), u = s.split("-"), x = p(u, "1", ""), c = p(u, "2", ""), m = A(
1283
1283
  // eslint-disable-next-line no-shadow
1284
1284
  (g) => {
1285
1285
  ["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]), n({ color: g })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), n((f) => ({ ...f, color: g, shade: f.shade ? f.shade : "500" })));
@@ -1345,7 +1345,7 @@ const Zr = ({ property: t, onChange: l }) => {
1345
1345
  ) }),
1346
1346
  /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(ve, { rounded: !0, selected: c, disabled: !x || !o, onChange: h, options: a }) })
1347
1347
  ] });
1348
- }, Pe = (t, l) => {
1348
+ }, Ie = (t, l) => {
1349
1349
  t = t.toLowerCase();
1350
1350
  let r = t.trim().replace(/ |\+/g, "");
1351
1351
  if ((r === "auto" || r === "none") && l.includes(r))
@@ -1492,7 +1492,7 @@ const qr = (t) => {
1492
1492
  return Jr(t);
1493
1493
  const r = p(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", o = we(r.match(/\d+.\d+|\d+/g));
1494
1494
  return { value: `${s}${o}`, unit: r.replace(o, "") };
1495
- }, Jr = (t) => b(t) ? { value: "", unit: "" } : Kr(t), ot = $.createContext({
1495
+ }, Jr = (t) => b(t) ? { value: "", unit: "" } : Kr(t), ot = P.createContext({
1496
1496
  setDragData: () => {
1497
1497
  }
1498
1498
  }), Qr = ({
@@ -1524,7 +1524,7 @@ const qr = (t) => {
1524
1524
  },
1525
1525
  color: void 0,
1526
1526
  className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
1527
- children: /* @__PURE__ */ e.jsx(Pt, {})
1527
+ children: /* @__PURE__ */ e.jsx(It, {})
1528
1528
  }
1529
1529
  );
1530
1530
  }, el = ({ onSelect: t, current: l, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((s) => /* @__PURE__ */ e.jsx(
@@ -1540,7 +1540,7 @@ const qr = (t) => {
1540
1540
  },
1541
1541
  s
1542
1542
  )) }), tl = (t) => {
1543
- const [l, r] = w(!1), [s, o] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: n, units: u, negative: x } = t, [c, m] = w(n != null && n.toLowerCase().includes("width") ? "%" : u[0]), [h, g] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, I] = w(!1);
1543
+ const [l, r] = w(!1), [s, o] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: n, units: u, negative: x } = t, [c, m] = w(n != null && n.toLowerCase().includes("width") ? "%" : u[0]), [h, g] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, $] = w(!1);
1544
1544
  _(() => {
1545
1545
  const { value: y, unit: v } = qr(a);
1546
1546
  if (v === "") {
@@ -1549,13 +1549,13 @@ const qr = (t) => {
1549
1549
  }
1550
1550
  m(v), o(v === "class" || b(y) ? "" : y);
1551
1551
  }, [a, n, u]);
1552
- const N = me(
1552
+ const k = me(
1553
1553
  (y) => {
1554
1554
  d(y);
1555
1555
  },
1556
1556
  [d],
1557
1557
  200
1558
- ), P = me(
1558
+ ), I = me(
1559
1559
  (y) => {
1560
1560
  d(y, !1);
1561
1561
  },
@@ -1563,44 +1563,44 @@ const qr = (t) => {
1563
1563
  200
1564
1564
  ), F = A(
1565
1565
  (y = !1) => {
1566
- const v = Pe(`${s}`, u);
1566
+ const v = Ie(`${s}`, u);
1567
1567
  if (p(v, "error", !1)) {
1568
1568
  g(!0);
1569
1569
  return;
1570
1570
  }
1571
1571
  const S = p(v, "unit") !== "" ? p(v, "unit") : c;
1572
1572
  if (S === "auto" || S === "none") {
1573
- N(`${i}${S}`);
1573
+ k(`${i}${S}`);
1574
1574
  return;
1575
1575
  }
1576
1576
  if (p(v, "value") === "")
1577
1577
  return;
1578
1578
  const K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1579
- y ? P(K) : N(K);
1579
+ y ? I(K) : k(K);
1580
1580
  },
1581
- [N, P, s, c, i, u]
1581
+ [k, I, s, c, i, u]
1582
1582
  ), oe = A(
1583
1583
  (y) => {
1584
- const v = Pe(`${s}`, u);
1584
+ const v = Ie(`${s}`, u);
1585
1585
  if (p(v, "error", !1)) {
1586
1586
  g(!0);
1587
1587
  return;
1588
1588
  }
1589
1589
  if (y === "auto" || y === "none") {
1590
- N(`${i}${y}`);
1590
+ k(`${i}${y}`);
1591
1591
  return;
1592
1592
  }
1593
1593
  if (p(v, "value") === "")
1594
1594
  return;
1595
1595
  const S = p(v, "unit") !== "" ? p(v, "unit") : y, K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1596
- N(K);
1596
+ k(K);
1597
1597
  },
1598
- [N, s, i, u]
1598
+ [k, s, i, u]
1599
1599
  );
1600
1600
  return /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-start", children: c === "class" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1601
1601
  /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: a }),
1602
1602
  /* @__PURE__ */ e.jsxs(W, { children: [
1603
- /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(Ne, {}) }) }),
1603
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(ke, {}) }) }),
1604
1604
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind preset class." })
1605
1605
  ] })
1606
1606
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: `group relative flex items-center ${D ? "z-auto" : ""}`, children: [
@@ -1615,15 +1615,15 @@ const qr = (t) => {
1615
1615
  onKeyDown: (y) => {
1616
1616
  if (y.keyCode !== 38 && y.keyCode !== 40)
1617
1617
  return;
1618
- y.preventDefault(), I(!0);
1618
+ y.preventDefault(), $(!0);
1619
1619
  const v = bt(y.target.value);
1620
1620
  let S = Ee(v) ? 0 : v;
1621
1621
  y.keyCode === 38 && (S += 1), y.keyCode === 40 && (S -= 1);
1622
1622
  const E = `${S}`, at = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1623
- P(at);
1623
+ I(at);
1624
1624
  },
1625
1625
  onKeyUp: (y) => {
1626
- L && (y.preventDefault(), I(!1));
1626
+ L && (y.preventDefault(), $(!1));
1627
1627
  },
1628
1628
  onBlur: () => F(),
1629
1629
  onChange: (y) => {
@@ -1673,14 +1673,14 @@ const qr = (t) => {
1673
1673
  if (T(() => ""), j(!1), b(y))
1674
1674
  return;
1675
1675
  const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1676
- N(E);
1676
+ k(E);
1677
1677
  },
1678
1678
  onDrag: (y) => {
1679
1679
  if (b(y))
1680
1680
  return;
1681
1681
  T(y);
1682
1682
  const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1683
- P(E);
1683
+ I(E);
1684
1684
  },
1685
1685
  currentValue: s,
1686
1686
  unit: c,
@@ -1777,22 +1777,22 @@ const qr = (t) => {
1777
1777
  "2xl": "1536px"
1778
1778
  }, sl = (t) => `${t.toUpperCase()} ${Le[t] ? `(${Le[t]} & up)` : ""}`, Se = (t) => {
1779
1779
  const { type: l = "icons", label: r, property: s, onEmitChange: o = () => {
1780
- }, units: a, negative: d = !1 } = t, [i] = dr(), [n] = Qe(), [, u] = He(), x = se(s), c = Ke(), m = qe(), [h] = Je(), g = k(() => p(x, "fullCls", ""), [x]), f = A(
1781
- (N, P = !0) => {
1782
- const F = { dark: i, mq: u, mod: n, cls: N, property: s, fullCls: "" };
1780
+ }, units: a, negative: d = !1 } = t, [i] = dr(), [n] = Qe(), [, u] = He(), x = se(s), c = Ke(), m = qe(), [h] = Je(), g = N(() => p(x, "fullCls", ""), [x]), f = A(
1781
+ (k, I = !0) => {
1782
+ const F = { dark: i, mq: u, mod: n, cls: k, property: s, fullCls: "" };
1783
1783
  (i || n !== "") && (F.mq = "xs");
1784
1784
  const oe = Dr(F);
1785
- c(h, [oe], P);
1785
+ c(h, [oe], I);
1786
1786
  },
1787
1787
  [h, i, u, n, s, c]
1788
1788
  ), T = A(() => {
1789
1789
  m(h, [g]);
1790
- }, [h, g, m]), D = k(() => rl(x, u), [x, u]);
1790
+ }, [h, g, m]), D = N(() => rl(x, u), [x, u]);
1791
1791
  _(() => {
1792
1792
  o(D, x);
1793
1793
  }, [D, o, x]);
1794
1794
  const [, , j] = He(), L = A(
1795
- (N) => {
1795
+ (k) => {
1796
1796
  j({
1797
1797
  xs: 400,
1798
1798
  sm: 640,
@@ -1800,12 +1800,12 @@ const qr = (t) => {
1800
1800
  lg: 1024,
1801
1801
  xl: 1420,
1802
1802
  "2xl": 1920
1803
- }[N]);
1803
+ }[k]);
1804
1804
  },
1805
1805
  [j]
1806
- ), I = p(x, "dark", null) === i && p(x, "mod", null) === n && p(x, "mq", null) === u;
1807
- return /* @__PURE__ */ e.jsx(Xr, { canChange: D, canReset: x && I, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1808
- /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${x && !I ? "text-foreground" : ""}`, children: r }) }),
1806
+ ), $ = p(x, "dark", null) === i && p(x, "mod", null) === n && p(x, "mq", null) === u;
1807
+ return /* @__PURE__ */ e.jsx(Xr, { canChange: D, canReset: x && $, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1808
+ /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${x && !$ ? "text-foreground" : ""}`, children: r }) }),
1809
1809
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
1810
1810
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
1811
1811
  l === "arbitrary" ? /* @__PURE__ */ e.jsx(
@@ -1824,13 +1824,13 @@ const qr = (t) => {
1824
1824
  l === "color" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
1825
1825
  l === "dropdown" && /* @__PURE__ */ e.jsx(st, { label: r, property: s, onChange: f })
1826
1826
  ] }),
1827
- /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${g ? "visible" : "invisible"}`, children: I ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Xe, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && x ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1827
+ /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${g ? "visible" : "invisible"}`, children: $ ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Xe, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && x ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1828
1828
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1829
1829
  "button",
1830
1830
  {
1831
1831
  type: "button",
1832
1832
  className: "invisible ml-3 mt-1 rounded-full bg-blue-500 text-white group-hover:visible",
1833
- children: /* @__PURE__ */ e.jsx(Ne, {})
1833
+ children: /* @__PURE__ */ e.jsx(ke, {})
1834
1834
  }
1835
1835
  ) }),
1836
1836
  /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
@@ -1873,7 +1873,7 @@ const qr = (t) => {
1873
1873
  children: [
1874
1874
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
1875
1875
  t && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: t }),
1876
- /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: $.Children.toArray(
1876
+ /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: P.Children.toArray(
1877
1877
  l.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
1878
1878
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1879
1879
  "button",
@@ -1882,10 +1882,10 @@ const qr = (t) => {
1882
1882
  onClick: () => n(m),
1883
1883
  className: `relative cursor-pointer rounded-full p-1 text-[8px] ${m === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
1884
1884
  children: [
1885
- $.createElement("div", {
1885
+ P.createElement("div", {
1886
1886
  className: x(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1887
1887
  }),
1888
- $.createElement(p(lt, m, We), { className: "text-inherit w-3 h-3" })
1888
+ P.createElement(p(lt, m, We), { className: "text-inherit w-3 h-3" })
1889
1889
  ]
1890
1890
  }
1891
1891
  ) }),
@@ -1907,7 +1907,7 @@ const qr = (t) => {
1907
1907
  }
1908
1908
  );
1909
1909
  }, nl = ({ heading: t, items: l }) => {
1910
- const r = ue(), s = k(() => {
1910
+ const r = ue(), s = N(() => {
1911
1911
  const o = (i) => U(
1912
1912
  i.map((n) => n.styleType === "multiple" ? C(n.options, "key") : n.property)
1913
1913
  ), a = U(
@@ -1942,7 +1942,7 @@ const qr = (t) => {
1942
1942
  return i;
1943
1943
  },
1944
1944
  [l]
1945
- ), s = k(() => {
1945
+ ), s = N(() => {
1946
1946
  if (l.length > 0 && t.heading === "Classes")
1947
1947
  return !0;
1948
1948
  const a = (n) => U(
@@ -1951,14 +1951,14 @@ const qr = (t) => {
1951
1951
  t.items.map((n) => n.styleType === "accordion" ? a(n.items) : n.styleType === "multiple" ? U(C(n.options, "key")) : n.property)
1952
1952
  ), i = C(l, "property");
1953
1953
  return _e(d, i).length > 0;
1954
- }, [l, t.heading, t.items]), o = k(() => ({}), []);
1954
+ }, [l, t.heading, t.items]), o = N(() => ({}), []);
1955
1955
  return /* @__PURE__ */ e.jsx(al.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1956
1956
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1957
1957
  /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}` }),
1958
1958
  t.heading
1959
1959
  ] }) }),
1960
- /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: $.Children.toArray(
1961
- t.items.map((a) => ge(a, "component") ? $.createElement(a.component, { key: a.label }) : ge(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(nt, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(nl, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Se, { ...a }, a.label))
1960
+ /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: P.Children.toArray(
1961
+ t.items.map((a) => ge(a, "component") ? P.createElement(a.component, { key: a.label }) : ge(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(nt, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(nl, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Se, { ...a }, a.label))
1962
1962
  ) })
1963
1963
  ] }) });
1964
1964
  }, il = ({
@@ -2003,7 +2003,7 @@ const qr = (t) => {
2003
2003
  ] })
2004
2004
  ] }), dl = ({ section: t }) => {
2005
2005
  var m;
2006
- const { setSyncState: l } = cr(), r = G(), [s, o] = w([]), [a] = ke(), d = Ue(), i = `${p(a, "0.prop")}_attrs`;
2006
+ const { setSyncState: l } = cr(), r = G(), [s, o] = w([]), [a] = Ne(), d = Ue(), i = `${p(a, "0.prop")}_attrs`;
2007
2007
  ne.useEffect(() => {
2008
2008
  const h = C(p(r, i), (g, f) => ({ key: f, value: g }));
2009
2009
  b(h) ? o([]) : o(h);
@@ -2073,7 +2073,7 @@ const qr = (t) => {
2073
2073
  ] });
2074
2074
  };
2075
2075
  function cl() {
2076
- const [t, l] = Qe(), { flexChild: r, gridChild: s } = pr(), [, o] = Rr(ur), { t: a } = Fe(), [d] = ke();
2076
+ const [t, l] = Qe(), { flexChild: r, gridChild: s } = pr(), [, o] = Rr(ur), { t: a } = Fe(), [d] = Ne();
2077
2077
  return b(d) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2078
2078
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2079
2079
  /* @__PURE__ */ e.jsx("h1", { children: a("no_styling_block_selected") }),
@@ -2130,7 +2130,7 @@ const pl = {
2130
2130
  deg: 1,
2131
2131
  ms: 0.1
2132
2132
  }, bs = () => {
2133
- const t = G(), { t: l } = Fe(), [r, s] = $.useState(""), [o, a] = $.useState({
2133
+ const t = G(), { t: l } = Fe(), [r, s] = P.useState(""), [o, a] = P.useState({
2134
2134
  onDrag: (n) => n,
2135
2135
  onDragEnd: (n) => n,
2136
2136
  dragStartY: 0,