@chaibuilder/sdk 1.2.114 → 1.2.116

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 (51) hide show
  1. package/README.md +2 -6
  2. package/dist/CodeEditor-Bl58eelM.cjs +1 -0
  3. package/dist/CodeEditor-C1ImRmIp.js +77 -0
  4. package/dist/Topbar-BpMZTZKz.cjs +1 -0
  5. package/dist/Topbar-tRFEAMbG.js +113 -0
  6. package/dist/UnsplashImages-BXarNGDE.cjs +1 -0
  7. package/dist/{UnsplashImages-chQ74Yzq.js → UnsplashImages-Ds_3IihK.js} +38 -90
  8. package/dist/UploadImages-DPMndPNm.cjs +1 -0
  9. package/dist/UploadImages-VZ7-y0rA.js +101 -0
  10. package/dist/cdn.js +25283 -0
  11. package/dist/{context-menu-FPX89OKr.js → context-menu-BbqLeYFX.js} +1 -1
  12. package/dist/{context-menu-sQn7ryJ6.cjs → context-menu-DfAXjmc8.cjs} +1 -1
  13. package/dist/core.cjs +1 -1
  14. package/dist/core.d.ts +50 -17
  15. package/dist/core.js +74 -127
  16. package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
  17. package/dist/index-B_be_Or7.cjs +63 -0
  18. package/dist/{index-IZpHf_8d.js → index-Bn53BEJy.js} +1631 -1658
  19. package/dist/jsx-runtime-BYECrxsp.cjs +30 -0
  20. package/dist/{jsx-runtime-Sp0orL4X.js → jsx-runtime-DGlMoOmv.js} +241 -242
  21. package/dist/{plugin-UiUFs2fK.js → plugin-BOEoR5jk.js} +1 -1
  22. package/dist/{plugin-xOpS-UNV.cjs → plugin-COMQcYlW.cjs} +1 -1
  23. package/dist/{plugin-f6SDZ_Or.js → plugin-Dw854zFv.js} +7 -8
  24. package/dist/{plugin-jum1MjXp.cjs → plugin-I9XxF65G.cjs} +1 -1
  25. package/dist/render.cjs +1 -1
  26. package/dist/render.js +10 -14
  27. package/dist/runtime.cjs +1 -1
  28. package/dist/runtime.js +12 -13
  29. package/dist/style.css +1 -1
  30. package/dist/tailwind.cjs +1 -1
  31. package/dist/tailwind.js +5 -7
  32. package/dist/ui.cjs +1 -1
  33. package/dist/ui.d.ts +3 -6
  34. package/dist/ui.js +145 -163
  35. package/dist/web-blocks.cjs +19 -2
  36. package/dist/web-blocks.js +116 -102
  37. package/package.json +3 -1
  38. package/dist/CodeEditor-BWHGysUw.cjs +0 -1
  39. package/dist/CodeEditor-q9he9IC8.js +0 -129
  40. package/dist/Topbar-86JxE7Uw.js +0 -163
  41. package/dist/Topbar-8LnyJF7S.cjs +0 -1
  42. package/dist/UnsplashImages-MLEjengP.cjs +0 -1
  43. package/dist/UploadImages--77rHMEx.cjs +0 -1
  44. package/dist/UploadImages-Auy8ZPBl.js +0 -153
  45. package/dist/index-KsZZcMSu.cjs +0 -63
  46. package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
  47. /package/dist/{STRINGS-Xxstm-7I.js → STRINGS-eiGM83kj.js} +0 -0
  48. /package/dist/{STRINGS-Yl7cSWDc.cjs → STRINGS-ew98weUe.cjs} +0 -0
  49. /package/dist/{controls-p9IwFnPx.cjs → controls-C4n5ycp4.cjs} +0 -0
  50. /package/dist/{controls-lEwMTdPQ.js → controls-Com-zYCq.js} +0 -0
  51. /package/dist/{iconBase-aZzpqff_.cjs → iconBase-Cn2BsTrq.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-Sp0orL4X.js";
1
+ import { j as o } from "./jsx-runtime-DGlMoOmv.js";
2
2
  import * as k from "@radix-ui/react-switch";
3
3
  import * as r from "react";
4
4
  import * as g from "@radix-ui/react-accordion";
@@ -1 +1 @@
1
- "use strict";const a=require("./jsx-runtime-JYMCiFoE.cjs"),dt=require("@radix-ui/react-switch"),lt=require("react"),mt=require("@radix-ui/react-accordion"),g=require("@radix-ui/react-icons"),C=require("class-variance-authority"),ct=require("@radix-ui/react-alert-dialog"),pt=require("@radix-ui/react-slot"),ut=require("@radix-ui/react-label"),xt=require("@radix-ui/react-scroll-area"),ft=require("@radix-ui/react-tabs"),gt=require("@radix-ui/react-tooltip"),bt=require("@radix-ui/react-popover"),jt=require("@radix-ui/react-hover-card"),yt=require("@radix-ui/react-select"),ht=require("@radix-ui/react-dropdown-menu"),Nt=require("@radix-ui/react-separator"),Rt=require("@radix-ui/react-toast"),u=require("cmdk"),vt=require("@radix-ui/react-dialog"),wt=require("@radix-ui/react-context-menu"),Ct=require("clsx"),Et=require("tailwind-merge");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const I=c(dt),r=c(lt),j=c(mt),p=c(ct),z=c(ut),b=c(xt),y=c(ft),h=c(gt),R=c(bt),E=c(jt),m=c(yt),i=c(ht),L=c(Nt),f=c(Rt),x=c(vt),d=c(wt),s=(...e)=>Et.twMerge(Ct.clsx(e)),O=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(I.Root,{className:s("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",e),...t,ref:o,children:a.jsxRuntimeExports.jsx(I.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950")})}));O.displayName=I.Root.displayName;const T=C.cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),q=r.forwardRef(({className:e,variant:t,size:o,asChild:n=!1,...l},S)=>{const it=n?pt.Slot:"button";return a.jsxRuntimeExports.jsx(it,{className:s(T({variant:t,size:o,className:e})),ref:S,...l})});q.displayName="Button";const Tt=j.Root,V=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(j.Item,{ref:o,className:s("border-b",e),...t}));V.displayName="AccordionItem";const G=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsx(j.Header,{className:"flex",children:a.jsxRuntimeExports.jsxs(j.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,o.hideArrow?null:a.jsxRuntimeExports.jsx(g.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));G.displayName=j.Trigger.displayName;const H=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsx(j.Content,{ref:n,className:s("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:a.jsxRuntimeExports.jsx("div",{className:"pb-4 pt-0",children:t})}));H.displayName=j.Content.displayName;const F=C.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),St=({className:e,variant:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:s(F({variant:t}),e),...o}),Dt=p.Root,Mt=p.Trigger,B=({className:e,...t})=>a.jsxRuntimeExports.jsx(p.Portal,{className:s(e),...t});B.displayName=p.Portal.displayName;const U=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Overlay,{className:s("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));U.displayName=p.Overlay.displayName;const Q=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsxs(B,{children:[a.jsxRuntimeExports.jsx(U,{}),a.jsxRuntimeExports.jsx(p.Content,{ref:o,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...t})]}));Q.displayName=p.Content.displayName;const X=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});X.displayName="AlertDialogHeader";const Y=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Y.displayName="AlertDialogFooter";const J=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Title,{ref:o,className:s("text-lg font-semibold",e),...t}));J.displayName=p.Title.displayName;const K=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));K.displayName=p.Description.displayName;const W=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Action,{ref:o,className:s(T(),e),...t}));W.displayName=p.Action.displayName;const Z=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Cancel,{ref:o,className:s(T({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Z.displayName=p.Cancel.displayName;const $=x.Root,It=x.Trigger,ee=({className:e,...t})=>a.jsxRuntimeExports.jsx(x.Portal,{className:s(e),...t});ee.displayName=x.Portal.displayName;const te=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(x.Overlay,{ref:o,className:s("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));te.displayName=x.Overlay.displayName;const k=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(ee,{children:[a.jsxRuntimeExports.jsx(te,{}),a.jsxRuntimeExports.jsxs(x.Content,{ref:n,className:s("fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...o,children:[t,a.jsxRuntimeExports.jsxs(x.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsxRuntimeExports.jsx(g.Cross2Icon,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));k.displayName=x.Content.displayName;const oe=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});oe.displayName="DialogHeader";const ae=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ae.displayName="DialogFooter";const se=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(x.Title,{ref:o,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));se.displayName=x.Title.displayName;const re=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(x.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));re.displayName=x.Description.displayName;const ne=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ne.displayName="Card";const ie=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s("flex flex-col space-y-1.5 p-6",e),...t}));ie.displayName="CardHeader";const de=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("h3",{ref:o,className:s("font-semibold leading-none tracking-tight",e),...t}));de.displayName="CardTitle";const le=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("p",{ref:o,className:s("text-sm text-muted-foreground",e),...t}));le.displayName="CardDescription";const me=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s("p-6 pt-0",e),...t}));me.displayName="CardContent";const ce=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s(" flex items-center p-6 pt-0",e),...t}));ce.displayName="CardFooter";const pe=r.forwardRef(({className:e,type:t,...o},n)=>a.jsxRuntimeExports.jsx("input",{type:t,className:s("flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...o,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));pe.displayName="Input";const kt=C.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ue=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(z.Root,{ref:o,className:s(kt(),e),...t}));ue.displayName=z.Root.displayName;const xe=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("textarea",{className:s("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));xe.displayName="Textarea";const fe=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(b.Root,{ref:n,className:s("relative overflow-hidden",e),...o,children:[a.jsxRuntimeExports.jsx(b.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsxRuntimeExports.jsx(A,{}),a.jsxRuntimeExports.jsx(b.Corner,{})]}));fe.displayName=b.Root.displayName;const A=r.forwardRef(({className:e,orientation:t="vertical",...o},n)=>a.jsxRuntimeExports.jsx(b.ScrollAreaScrollbar,{ref:n,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...o,children:a.jsxRuntimeExports.jsx(b.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));A.displayName=b.ScrollAreaScrollbar.displayName;const At=y.Root,ge=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(y.List,{ref:o,className:s("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));ge.displayName=y.List.displayName;const be=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(y.Trigger,{ref:o,className:s("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));be.displayName=y.Trigger.displayName;const je=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(y.Content,{ref:o,className:s("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));je.displayName=y.Content.displayName;const _t=h.Portal,Pt=h.Provider,zt=h.Root,Lt=h.Trigger,ye=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsxRuntimeExports.jsx(h.Content,{ref:n,sideOffset:t,className:s("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ye.displayName=h.Content.displayName;const Ot=R.Root,qt=R.Trigger,he=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},l)=>a.jsxRuntimeExports.jsx(R.Portal,{children:a.jsxRuntimeExports.jsx(R.Content,{ref:l,align:t,sideOffset:o,className:s("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));he.displayName=R.Content.displayName;const Vt=E.Root,Gt=E.Trigger,Ne=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},l)=>a.jsxRuntimeExports.jsx(E.Content,{ref:l,align:t,sideOffset:o,className:s("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Ne.displayName=E.Content.displayName;const Ht=m.Root,Ft=m.Group,Bt=m.Value,Re=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(m.Trigger,{ref:n,className:s("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:[t,a.jsxRuntimeExports.jsx(m.Icon,{asChild:!0,children:a.jsxRuntimeExports.jsx(g.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));Re.displayName=m.Trigger.displayName;const ve=r.forwardRef(({className:e,children:t,position:o="popper",...n},l)=>a.jsxRuntimeExports.jsx(m.Portal,{children:a.jsxRuntimeExports.jsx(m.Content,{ref:l,className:s("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...n,children:a.jsxRuntimeExports.jsx(m.Viewport,{className:s("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));ve.displayName=m.Content.displayName;const we=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(m.Label,{ref:o,className:s("px-2 py-1.5 text-sm font-semibold",e),...t}));we.displayName=m.Label.displayName;const Ce=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(m.Item,{ref:n,className:s("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(m.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.CheckIcon,{className:"h-4 w-4"})})}),a.jsxRuntimeExports.jsx(m.ItemText,{children:t})]}));Ce.displayName=m.Item.displayName;const Ee=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(m.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));Ee.displayName=m.Separator.displayName;const Ut=i.Root,Qt=i.Trigger,Xt=i.Group,Yt=i.Portal,Jt=i.Sub,Kt=i.RadioGroup,Te=r.forwardRef(({className:e,inset:t,children:o,...n},l)=>a.jsxRuntimeExports.jsxs(i.SubTrigger,{ref:l,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,a.jsxRuntimeExports.jsx(g.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Te.displayName=i.SubTrigger.displayName;const Se=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(i.SubContent,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Se.displayName=i.SubContent.displayName;const De=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsxRuntimeExports.jsx(i.Portal,{children:a.jsxRuntimeExports.jsx(i.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));De.displayName=i.Content.displayName;const Me=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(i.Item,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));Me.displayName=i.Item.displayName;const Ie=r.forwardRef(({className:e,children:t,checked:o,...n},l)=>a.jsxRuntimeExports.jsxs(i.CheckboxItem,{ref:l,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(i.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ie.displayName=i.CheckboxItem.displayName;const ke=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(i.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(i.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ke.displayName=i.RadioItem.displayName;const Ae=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(i.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Ae.displayName=i.Label.displayName;const _e=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(i.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));_e.displayName=i.Separator.displayName;const Pe=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Pe.displayName="DropdownMenuShortcut";const ze=r.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...n},l)=>a.jsxRuntimeExports.jsx(L.Root,{ref:l,decorative:o,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ze.displayName=L.Root.displayName;const Wt=1,Zt=1e6;let D=0;function $t(){return D=(D+1)%Number.MAX_VALUE,D.toString()}const M=new Map,P=e=>{if(M.has(e))return;const t=setTimeout(()=>{M.delete(e),N({type:"REMOVE_TOAST",toastId:e})},Zt);M.set(e,t)},Le=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Wt)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=t;return o?P(o):e.toasts.forEach(n=>{P(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===o||o===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},v=[];let w={toasts:[]};function N(e){w=Le(w,e),v.forEach(t=>{t(w)})}function Oe({...e}){const t=$t(),o=l=>N({type:"UPDATE_TOAST",toast:{...l,id:t}}),n=()=>N({type:"DISMISS_TOAST",toastId:t});return N({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:l=>{l||n()}}}),{id:t,dismiss:n,update:o}}function qe(){const[e,t]=r.useState(w);return r.useEffect(()=>(v.push(t),()=>{const o=v.indexOf(t);o>-1&&v.splice(o,1)}),[e]),{...e,toast:Oe,dismiss:o=>N({type:"DISMISS_TOAST",toastId:o})}}const eo=f.Provider,Ve=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Viewport,{ref:o,className:s("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Ve.displayName=f.Viewport.displayName;const to=C.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ge=r.forwardRef(({className:e,variant:t,...o},n)=>a.jsxRuntimeExports.jsx(f.Root,{ref:n,className:s(to({variant:t}),e),...o}));Ge.displayName=f.Root.displayName;const oo=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Action,{ref:o,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));oo.displayName=f.Action.displayName;const He=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Close,{ref:o,className:s("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsxRuntimeExports.jsx(g.Cross2Icon,{className:"h-4 w-4"})}));He.displayName=f.Close.displayName;const Fe=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Title,{ref:o,className:s("text-sm font-semibold [&+div]:text-xs",e),...t}));Fe.displayName=f.Title.displayName;const Be=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Description,{ref:o,className:s("text-sm opacity-90",e),...t}));Be.displayName=f.Description.displayName;function ao(){const{toasts:e}=qe();return a.jsxRuntimeExports.jsxs(eo,{children:[e.map(({id:t,title:o,description:n,action:l,...S})=>a.jsxRuntimeExports.jsxs(Ge,{...S,children:[a.jsxRuntimeExports.jsxs("div",{className:"grid gap-1",children:[o&&a.jsxRuntimeExports.jsx(Fe,{children:o}),n&&a.jsxRuntimeExports.jsx(Be,{children:n})]}),l,a.jsxRuntimeExports.jsx(He,{})]},t)),a.jsxRuntimeExports.jsx(Ve,{})]})}const so=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("animate-pulse rounded-md bg-primary/10",e),...t}),_=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command,{ref:o,className:s("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));_.displayName=u.Command.displayName;const ro=({children:e,...t})=>a.jsxRuntimeExports.jsx($,{...t,children:a.jsxRuntimeExports.jsx(k,{className:"overflow-hidden p-0",children:a.jsxRuntimeExports.jsx(_,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Ue=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[a.jsxRuntimeExports.jsx(g.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsxRuntimeExports.jsx(u.Command.Input,{ref:o,className:s("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ue.displayName=u.Command.Input.displayName;const Qe=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.List,{ref:o,className:s("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Qe.displayName=u.Command.List.displayName;const Xe=r.forwardRef((e,t)=>a.jsxRuntimeExports.jsx(u.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Xe.displayName=u.Command.Empty.displayName;const Ye=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.Group,{ref:o,className:s("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ye.displayName=u.Command.Group.displayName;const Je=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.Separator,{ref:o,className:s("-mx-1 h-px bg-border",e),...t}));Je.displayName=u.Command.Separator.displayName;const Ke=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.Item,{ref:o,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Ke.displayName=u.Command.Item.displayName;const We=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});We.displayName="CommandShortcut";const no=d.Root,io=d.Trigger,lo=d.Group,mo=d.Portal,co=d.Sub,po=d.RadioGroup,Ze=r.forwardRef(({className:e,inset:t,children:o,...n},l)=>a.jsxRuntimeExports.jsxs(d.SubTrigger,{ref:l,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[o,a.jsxRuntimeExports.jsx(g.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Ze.displayName=d.SubTrigger.displayName;const $e=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(d.SubContent,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));$e.displayName=d.SubContent.displayName;const et=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(d.Portal,{children:a.jsxRuntimeExports.jsx(d.Content,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));et.displayName=d.Content.displayName;const tt=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(d.Item,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));tt.displayName=d.Item.displayName;const ot=r.forwardRef(({className:e,children:t,checked:o,...n},l)=>a.jsxRuntimeExports.jsxs(d.CheckboxItem,{ref:l,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(d.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.CheckIcon,{className:"h-4 w-4"})})}),t]}));ot.displayName=d.CheckboxItem.displayName;const at=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(d.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(d.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));at.displayName=d.RadioItem.displayName;const st=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(d.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...o}));st.displayName=d.Label.displayName;const rt=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(d.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-border",e),...t}));rt.displayName=d.Separator.displayName;const nt=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});nt.displayName="ContextMenuShortcut";exports.Accordion=Tt;exports.AccordionContent=H;exports.AccordionItem=V;exports.AccordionTrigger=G;exports.AlertDialog=Dt;exports.AlertDialogAction=W;exports.AlertDialogCancel=Z;exports.AlertDialogContent=Q;exports.AlertDialogDescription=K;exports.AlertDialogFooter=Y;exports.AlertDialogHeader=X;exports.AlertDialogTitle=J;exports.AlertDialogTrigger=Mt;exports.Badge=St;exports.Button=q;exports.Card=ne;exports.CardContent=me;exports.CardDescription=le;exports.CardFooter=ce;exports.CardHeader=ie;exports.CardTitle=de;exports.Command=_;exports.CommandDialog=ro;exports.CommandEmpty=Xe;exports.CommandGroup=Ye;exports.CommandInput=Ue;exports.CommandItem=Ke;exports.CommandList=Qe;exports.CommandSeparator=Je;exports.CommandShortcut=We;exports.ContextMenu=no;exports.ContextMenuCheckboxItem=ot;exports.ContextMenuContent=et;exports.ContextMenuGroup=lo;exports.ContextMenuItem=tt;exports.ContextMenuLabel=st;exports.ContextMenuPortal=mo;exports.ContextMenuRadioGroup=po;exports.ContextMenuRadioItem=at;exports.ContextMenuSeparator=rt;exports.ContextMenuShortcut=nt;exports.ContextMenuSub=co;exports.ContextMenuSubContent=$e;exports.ContextMenuSubTrigger=Ze;exports.ContextMenuTrigger=io;exports.Dialog=$;exports.DialogContent=k;exports.DialogDescription=re;exports.DialogFooter=ae;exports.DialogHeader=oe;exports.DialogTitle=se;exports.DialogTrigger=It;exports.DropdownMenu=Ut;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=De;exports.DropdownMenuGroup=Xt;exports.DropdownMenuItem=Me;exports.DropdownMenuLabel=Ae;exports.DropdownMenuPortal=Yt;exports.DropdownMenuRadioGroup=Kt;exports.DropdownMenuRadioItem=ke;exports.DropdownMenuSeparator=_e;exports.DropdownMenuShortcut=Pe;exports.DropdownMenuSub=Jt;exports.DropdownMenuSubContent=Se;exports.DropdownMenuSubTrigger=Te;exports.DropdownMenuTrigger=Qt;exports.HoverCard=Vt;exports.HoverCardContent=Ne;exports.HoverCardTrigger=Gt;exports.Input=pe;exports.Label=ue;exports.Popover=Ot;exports.PopoverContent=he;exports.PopoverTrigger=qt;exports.ScrollArea=fe;exports.ScrollBar=A;exports.Select=Ht;exports.SelectContent=ve;exports.SelectGroup=Ft;exports.SelectItem=Ce;exports.SelectLabel=we;exports.SelectSeparator=Ee;exports.SelectTrigger=Re;exports.SelectValue=Bt;exports.Separator=ze;exports.Skeleton=so;exports.Switch=O;exports.Tabs=At;exports.TabsContent=je;exports.TabsList=ge;exports.TabsTrigger=be;exports.Textarea=xe;exports.Toaster=ao;exports.Tooltip=zt;exports.TooltipContent=ye;exports.TooltipPortal=_t;exports.TooltipProvider=Pt;exports.TooltipTrigger=Lt;exports.badgeVariants=F;exports.buttonVariants=T;exports.cn=s;exports.reducer=Le;exports.toast=Oe;exports.useToast=qe;
1
+ "use strict";const a=require("./jsx-runtime-BYECrxsp.cjs"),dt=require("@radix-ui/react-switch"),lt=require("react"),mt=require("@radix-ui/react-accordion"),g=require("@radix-ui/react-icons"),C=require("class-variance-authority"),ct=require("@radix-ui/react-alert-dialog"),pt=require("@radix-ui/react-slot"),ut=require("@radix-ui/react-label"),xt=require("@radix-ui/react-scroll-area"),ft=require("@radix-ui/react-tabs"),gt=require("@radix-ui/react-tooltip"),bt=require("@radix-ui/react-popover"),jt=require("@radix-ui/react-hover-card"),yt=require("@radix-ui/react-select"),ht=require("@radix-ui/react-dropdown-menu"),Nt=require("@radix-ui/react-separator"),Rt=require("@radix-ui/react-toast"),u=require("cmdk"),vt=require("@radix-ui/react-dialog"),wt=require("@radix-ui/react-context-menu"),Ct=require("clsx"),Et=require("tailwind-merge");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const I=c(dt),r=c(lt),j=c(mt),p=c(ct),z=c(ut),b=c(xt),y=c(ft),h=c(gt),R=c(bt),E=c(jt),m=c(yt),i=c(ht),L=c(Nt),f=c(Rt),x=c(vt),d=c(wt),s=(...e)=>Et.twMerge(Ct.clsx(e)),O=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(I.Root,{className:s("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",e),...t,ref:o,children:a.jsxRuntimeExports.jsx(I.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950")})}));O.displayName=I.Root.displayName;const T=C.cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),q=r.forwardRef(({className:e,variant:t,size:o,asChild:n=!1,...l},S)=>{const it=n?pt.Slot:"button";return a.jsxRuntimeExports.jsx(it,{className:s(T({variant:t,size:o,className:e})),ref:S,...l})});q.displayName="Button";const Tt=j.Root,V=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(j.Item,{ref:o,className:s("border-b",e),...t}));V.displayName="AccordionItem";const G=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsx(j.Header,{className:"flex",children:a.jsxRuntimeExports.jsxs(j.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,o.hideArrow?null:a.jsxRuntimeExports.jsx(g.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));G.displayName=j.Trigger.displayName;const H=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsx(j.Content,{ref:n,className:s("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:a.jsxRuntimeExports.jsx("div",{className:"pb-4 pt-0",children:t})}));H.displayName=j.Content.displayName;const F=C.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),St=({className:e,variant:t,...o})=>a.jsxRuntimeExports.jsx("div",{className:s(F({variant:t}),e),...o}),Dt=p.Root,Mt=p.Trigger,B=({className:e,...t})=>a.jsxRuntimeExports.jsx(p.Portal,{className:s(e),...t});B.displayName=p.Portal.displayName;const U=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Overlay,{className:s("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));U.displayName=p.Overlay.displayName;const Q=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsxs(B,{children:[a.jsxRuntimeExports.jsx(U,{}),a.jsxRuntimeExports.jsx(p.Content,{ref:o,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...t})]}));Q.displayName=p.Content.displayName;const X=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});X.displayName="AlertDialogHeader";const Y=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Y.displayName="AlertDialogFooter";const J=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Title,{ref:o,className:s("text-lg font-semibold",e),...t}));J.displayName=p.Title.displayName;const K=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));K.displayName=p.Description.displayName;const W=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Action,{ref:o,className:s(T(),e),...t}));W.displayName=p.Action.displayName;const Z=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(p.Cancel,{ref:o,className:s(T({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Z.displayName=p.Cancel.displayName;const $=x.Root,It=x.Trigger,ee=({className:e,...t})=>a.jsxRuntimeExports.jsx(x.Portal,{className:s(e),...t});ee.displayName=x.Portal.displayName;const te=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(x.Overlay,{ref:o,className:s("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));te.displayName=x.Overlay.displayName;const k=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(ee,{children:[a.jsxRuntimeExports.jsx(te,{}),a.jsxRuntimeExports.jsxs(x.Content,{ref:n,className:s("fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...o,children:[t,a.jsxRuntimeExports.jsxs(x.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsxRuntimeExports.jsx(g.Cross2Icon,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));k.displayName=x.Content.displayName;const oe=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});oe.displayName="DialogHeader";const ae=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ae.displayName="DialogFooter";const se=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(x.Title,{ref:o,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));se.displayName=x.Title.displayName;const re=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(x.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));re.displayName=x.Description.displayName;const ne=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ne.displayName="Card";const ie=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s("flex flex-col space-y-1.5 p-6",e),...t}));ie.displayName="CardHeader";const de=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("h3",{ref:o,className:s("font-semibold leading-none tracking-tight",e),...t}));de.displayName="CardTitle";const le=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("p",{ref:o,className:s("text-sm text-muted-foreground",e),...t}));le.displayName="CardDescription";const me=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s("p-6 pt-0",e),...t}));me.displayName="CardContent";const ce=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("div",{ref:o,className:s(" flex items-center p-6 pt-0",e),...t}));ce.displayName="CardFooter";const pe=r.forwardRef(({className:e,type:t,...o},n)=>a.jsxRuntimeExports.jsx("input",{type:t,className:s("flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...o,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));pe.displayName="Input";const kt=C.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ue=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(z.Root,{ref:o,className:s(kt(),e),...t}));ue.displayName=z.Root.displayName;const xe=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx("textarea",{className:s("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));xe.displayName="Textarea";const fe=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(b.Root,{ref:n,className:s("relative overflow-hidden",e),...o,children:[a.jsxRuntimeExports.jsx(b.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsxRuntimeExports.jsx(A,{}),a.jsxRuntimeExports.jsx(b.Corner,{})]}));fe.displayName=b.Root.displayName;const A=r.forwardRef(({className:e,orientation:t="vertical",...o},n)=>a.jsxRuntimeExports.jsx(b.ScrollAreaScrollbar,{ref:n,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...o,children:a.jsxRuntimeExports.jsx(b.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));A.displayName=b.ScrollAreaScrollbar.displayName;const At=y.Root,ge=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(y.List,{ref:o,className:s("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));ge.displayName=y.List.displayName;const be=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(y.Trigger,{ref:o,className:s("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));be.displayName=y.Trigger.displayName;const je=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(y.Content,{ref:o,className:s("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));je.displayName=y.Content.displayName;const _t=h.Portal,Pt=h.Provider,zt=h.Root,Lt=h.Trigger,ye=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsxRuntimeExports.jsx(h.Content,{ref:n,sideOffset:t,className:s("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ye.displayName=h.Content.displayName;const Ot=R.Root,qt=R.Trigger,he=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},l)=>a.jsxRuntimeExports.jsx(R.Portal,{children:a.jsxRuntimeExports.jsx(R.Content,{ref:l,align:t,sideOffset:o,className:s("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));he.displayName=R.Content.displayName;const Vt=E.Root,Gt=E.Trigger,Ne=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},l)=>a.jsxRuntimeExports.jsx(E.Content,{ref:l,align:t,sideOffset:o,className:s("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Ne.displayName=E.Content.displayName;const Ht=m.Root,Ft=m.Group,Bt=m.Value,Re=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(m.Trigger,{ref:n,className:s("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:[t,a.jsxRuntimeExports.jsx(m.Icon,{asChild:!0,children:a.jsxRuntimeExports.jsx(g.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));Re.displayName=m.Trigger.displayName;const ve=r.forwardRef(({className:e,children:t,position:o="popper",...n},l)=>a.jsxRuntimeExports.jsx(m.Portal,{children:a.jsxRuntimeExports.jsx(m.Content,{ref:l,className:s("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...n,children:a.jsxRuntimeExports.jsx(m.Viewport,{className:s("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));ve.displayName=m.Content.displayName;const we=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(m.Label,{ref:o,className:s("px-2 py-1.5 text-sm font-semibold",e),...t}));we.displayName=m.Label.displayName;const Ce=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(m.Item,{ref:n,className:s("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(m.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.CheckIcon,{className:"h-4 w-4"})})}),a.jsxRuntimeExports.jsx(m.ItemText,{children:t})]}));Ce.displayName=m.Item.displayName;const Ee=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(m.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));Ee.displayName=m.Separator.displayName;const Ut=i.Root,Qt=i.Trigger,Xt=i.Group,Yt=i.Portal,Jt=i.Sub,Kt=i.RadioGroup,Te=r.forwardRef(({className:e,inset:t,children:o,...n},l)=>a.jsxRuntimeExports.jsxs(i.SubTrigger,{ref:l,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,a.jsxRuntimeExports.jsx(g.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Te.displayName=i.SubTrigger.displayName;const Se=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(i.SubContent,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Se.displayName=i.SubContent.displayName;const De=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsxRuntimeExports.jsx(i.Portal,{children:a.jsxRuntimeExports.jsx(i.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));De.displayName=i.Content.displayName;const Me=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(i.Item,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));Me.displayName=i.Item.displayName;const Ie=r.forwardRef(({className:e,children:t,checked:o,...n},l)=>a.jsxRuntimeExports.jsxs(i.CheckboxItem,{ref:l,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(i.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ie.displayName=i.CheckboxItem.displayName;const ke=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(i.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(i.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ke.displayName=i.RadioItem.displayName;const Ae=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(i.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Ae.displayName=i.Label.displayName;const _e=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(i.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));_e.displayName=i.Separator.displayName;const Pe=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Pe.displayName="DropdownMenuShortcut";const ze=r.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...n},l)=>a.jsxRuntimeExports.jsx(L.Root,{ref:l,decorative:o,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ze.displayName=L.Root.displayName;const Wt=1,Zt=1e6;let D=0;function $t(){return D=(D+1)%Number.MAX_VALUE,D.toString()}const M=new Map,P=e=>{if(M.has(e))return;const t=setTimeout(()=>{M.delete(e),N({type:"REMOVE_TOAST",toastId:e})},Zt);M.set(e,t)},Le=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Wt)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=t;return o?P(o):e.toasts.forEach(n=>{P(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===o||o===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},v=[];let w={toasts:[]};function N(e){w=Le(w,e),v.forEach(t=>{t(w)})}function Oe({...e}){const t=$t(),o=l=>N({type:"UPDATE_TOAST",toast:{...l,id:t}}),n=()=>N({type:"DISMISS_TOAST",toastId:t});return N({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:l=>{l||n()}}}),{id:t,dismiss:n,update:o}}function qe(){const[e,t]=r.useState(w);return r.useEffect(()=>(v.push(t),()=>{const o=v.indexOf(t);o>-1&&v.splice(o,1)}),[e]),{...e,toast:Oe,dismiss:o=>N({type:"DISMISS_TOAST",toastId:o})}}const eo=f.Provider,Ve=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Viewport,{ref:o,className:s("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Ve.displayName=f.Viewport.displayName;const to=C.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ge=r.forwardRef(({className:e,variant:t,...o},n)=>a.jsxRuntimeExports.jsx(f.Root,{ref:n,className:s(to({variant:t}),e),...o}));Ge.displayName=f.Root.displayName;const oo=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Action,{ref:o,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));oo.displayName=f.Action.displayName;const He=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Close,{ref:o,className:s("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsxRuntimeExports.jsx(g.Cross2Icon,{className:"h-4 w-4"})}));He.displayName=f.Close.displayName;const Fe=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Title,{ref:o,className:s("text-sm font-semibold [&+div]:text-xs",e),...t}));Fe.displayName=f.Title.displayName;const Be=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(f.Description,{ref:o,className:s("text-sm opacity-90",e),...t}));Be.displayName=f.Description.displayName;function ao(){const{toasts:e}=qe();return a.jsxRuntimeExports.jsxs(eo,{children:[e.map(({id:t,title:o,description:n,action:l,...S})=>a.jsxRuntimeExports.jsxs(Ge,{...S,children:[a.jsxRuntimeExports.jsxs("div",{className:"grid gap-1",children:[o&&a.jsxRuntimeExports.jsx(Fe,{children:o}),n&&a.jsxRuntimeExports.jsx(Be,{children:n})]}),l,a.jsxRuntimeExports.jsx(He,{})]},t)),a.jsxRuntimeExports.jsx(Ve,{})]})}const so=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:s("animate-pulse rounded-md bg-primary/10",e),...t}),_=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command,{ref:o,className:s("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));_.displayName=u.Command.displayName;const ro=({children:e,...t})=>a.jsxRuntimeExports.jsx($,{...t,children:a.jsxRuntimeExports.jsx(k,{className:"overflow-hidden p-0",children:a.jsxRuntimeExports.jsx(_,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Ue=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[a.jsxRuntimeExports.jsx(g.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),a.jsxRuntimeExports.jsx(u.Command.Input,{ref:o,className:s("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ue.displayName=u.Command.Input.displayName;const Qe=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.List,{ref:o,className:s("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Qe.displayName=u.Command.List.displayName;const Xe=r.forwardRef((e,t)=>a.jsxRuntimeExports.jsx(u.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Xe.displayName=u.Command.Empty.displayName;const Ye=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.Group,{ref:o,className:s("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ye.displayName=u.Command.Group.displayName;const Je=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.Separator,{ref:o,className:s("-mx-1 h-px bg-border",e),...t}));Je.displayName=u.Command.Separator.displayName;const Ke=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(u.Command.Item,{ref:o,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Ke.displayName=u.Command.Item.displayName;const We=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});We.displayName="CommandShortcut";const no=d.Root,io=d.Trigger,lo=d.Group,mo=d.Portal,co=d.Sub,po=d.RadioGroup,Ze=r.forwardRef(({className:e,inset:t,children:o,...n},l)=>a.jsxRuntimeExports.jsxs(d.SubTrigger,{ref:l,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[o,a.jsxRuntimeExports.jsx(g.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));Ze.displayName=d.SubTrigger.displayName;const $e=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(d.SubContent,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));$e.displayName=d.SubContent.displayName;const et=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(d.Portal,{children:a.jsxRuntimeExports.jsx(d.Content,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));et.displayName=d.Content.displayName;const tt=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(d.Item,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...o}));tt.displayName=d.Item.displayName;const ot=r.forwardRef(({className:e,children:t,checked:o,...n},l)=>a.jsxRuntimeExports.jsxs(d.CheckboxItem,{ref:l,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(d.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.CheckIcon,{className:"h-4 w-4"})})}),t]}));ot.displayName=d.CheckboxItem.displayName;const at=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxRuntimeExports.jsxs(d.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(d.ItemIndicator,{children:a.jsxRuntimeExports.jsx(g.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));at.displayName=d.RadioItem.displayName;const st=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsxRuntimeExports.jsx(d.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...o}));st.displayName=d.Label.displayName;const rt=r.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(d.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-border",e),...t}));rt.displayName=d.Separator.displayName;const nt=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});nt.displayName="ContextMenuShortcut";exports.Accordion=Tt;exports.AccordionContent=H;exports.AccordionItem=V;exports.AccordionTrigger=G;exports.AlertDialog=Dt;exports.AlertDialogAction=W;exports.AlertDialogCancel=Z;exports.AlertDialogContent=Q;exports.AlertDialogDescription=K;exports.AlertDialogFooter=Y;exports.AlertDialogHeader=X;exports.AlertDialogTitle=J;exports.AlertDialogTrigger=Mt;exports.Badge=St;exports.Button=q;exports.Card=ne;exports.CardContent=me;exports.CardDescription=le;exports.CardFooter=ce;exports.CardHeader=ie;exports.CardTitle=de;exports.Command=_;exports.CommandDialog=ro;exports.CommandEmpty=Xe;exports.CommandGroup=Ye;exports.CommandInput=Ue;exports.CommandItem=Ke;exports.CommandList=Qe;exports.CommandSeparator=Je;exports.CommandShortcut=We;exports.ContextMenu=no;exports.ContextMenuCheckboxItem=ot;exports.ContextMenuContent=et;exports.ContextMenuGroup=lo;exports.ContextMenuItem=tt;exports.ContextMenuLabel=st;exports.ContextMenuPortal=mo;exports.ContextMenuRadioGroup=po;exports.ContextMenuRadioItem=at;exports.ContextMenuSeparator=rt;exports.ContextMenuShortcut=nt;exports.ContextMenuSub=co;exports.ContextMenuSubContent=$e;exports.ContextMenuSubTrigger=Ze;exports.ContextMenuTrigger=io;exports.Dialog=$;exports.DialogContent=k;exports.DialogDescription=re;exports.DialogFooter=ae;exports.DialogHeader=oe;exports.DialogTitle=se;exports.DialogTrigger=It;exports.DropdownMenu=Ut;exports.DropdownMenuCheckboxItem=Ie;exports.DropdownMenuContent=De;exports.DropdownMenuGroup=Xt;exports.DropdownMenuItem=Me;exports.DropdownMenuLabel=Ae;exports.DropdownMenuPortal=Yt;exports.DropdownMenuRadioGroup=Kt;exports.DropdownMenuRadioItem=ke;exports.DropdownMenuSeparator=_e;exports.DropdownMenuShortcut=Pe;exports.DropdownMenuSub=Jt;exports.DropdownMenuSubContent=Se;exports.DropdownMenuSubTrigger=Te;exports.DropdownMenuTrigger=Qt;exports.HoverCard=Vt;exports.HoverCardContent=Ne;exports.HoverCardTrigger=Gt;exports.Input=pe;exports.Label=ue;exports.Popover=Ot;exports.PopoverContent=he;exports.PopoverTrigger=qt;exports.ScrollArea=fe;exports.ScrollBar=A;exports.Select=Ht;exports.SelectContent=ve;exports.SelectGroup=Ft;exports.SelectItem=Ce;exports.SelectLabel=we;exports.SelectSeparator=Ee;exports.SelectTrigger=Re;exports.SelectValue=Bt;exports.Separator=ze;exports.Skeleton=so;exports.Switch=O;exports.Tabs=At;exports.TabsContent=je;exports.TabsList=ge;exports.TabsTrigger=be;exports.Textarea=xe;exports.Toaster=ao;exports.Tooltip=zt;exports.TooltipContent=ye;exports.TooltipPortal=_t;exports.TooltipProvider=Pt;exports.TooltipTrigger=Lt;exports.badgeVariants=F;exports.buttonVariants=T;exports.cn=s;exports.reducer=Le;exports.toast=Oe;exports.useToast=qe;
package/dist/core.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-KsZZcMSu.cjs"),r=require("./iconBase-aZzpqff_.cjs"),s=require("@chaibuilder/runtime"),u=require("react-i18next"),i=require("i18next");require("./jsx-runtime-JYMCiFoE.cjs");require("react");require("./context-menu-sQn7ryJ6.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("@radix-ui/react-icons");require("class-variance-authority");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");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-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-dialog");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");require("lodash-es");require("jotai");require("./plugin-xOpS-UNV.cjs");require("@react-hookz/web");require("tree-model");require("react-quill");require("./STRINGS-Yl7cSWDc.cjs");require("flagged");require("react-hotkeys-hook");require("@floating-ui/dom");require("@floating-ui/react-dom");require("react-event-hook");require("@tailwindcss/typography");require("@tailwindcss/forms");require("@tailwindcss/aspect-ratio");require("react-wrap-balancer");require("react-dom");require("prop-types");require("react-error-boundary");require("re-resizable");require("lucide-react");require("@rjsf/validator-ajv8");require("@rjsf/core");require("./controls-p9IwFnPx.cjs");require("react-arborist");require("himalaya");require("react-icons-picker");require("react-autosuggest");require("fuse.js");require("framer-motion");exports.AISetContext=e.AISetContext;exports.AIUserPrompt=e.AIUserPrompt;exports.AddBlocksDialog=e.AddBlocksDialog;exports.AddBlocksPanel=e.AddBlocksPanel;exports.BlockAttributesEditor=e.BlockAttributesEditor;exports.BlockPropsEditor=e.BlockSettings;exports.BlockStyleEditor=e.BlockStyling;exports.CHAI_BUILDER_EVENTS=e.CHAI_BUILDER_EVENTS;exports.ChaiBuilderCanvas=e.CanvasArea;exports.ChaiBuilderEditor=e.ChaiBuilderEditor;exports.DarkModeSwitcher=e.DarkMode;exports.DefaultChaiBlocks=e.DefaultChaiBlocks;exports.ImportHTML=e.ImportHTML;exports.Outline=e.Outline;exports.ScreenSizes=e.Breakpoints;exports.ThemeOptions=e.ThemeOptions;exports.UILibraries=e.UILibraries;exports.UndoRedo=e.UndoRedo;exports.emitChaiBuilderMsg=e.emitChaiBuilderMsg;exports.getBlocksFromHTML=e.getBlocksFromHTML;exports.getClassValueAndUnit=e.getClassValueAndUnit;exports.useAddBlock=e.useAddBlock;exports.useAddClassesToBlocks=e.useAddClassesToBlocks;exports.useBlockHighlight=e.useBlockHighlight;exports.useBlocksStore=e.useBlocksStore;exports.useBlocksStoreUndoableActions=e.useBlocksStoreUndoableActions;exports.useBrandingOptions=e.useBrandingOptions;exports.useBuilderProp=e.useBuilderProp;exports.useBuilderReset=e.useBuilderReset;exports.useCanvasWidth=e.useCanvasWidth;exports.useCanvasZoom=e.useCanvasZoom;exports.useChaiBuilderMsgListener=e.useChaiBuilderMsgListener;exports.useCodeEditor=e.useCodeEditor;exports.useCopyBlockIds=e.useCopyBlockIds;exports.useCopyToClipboard=e.useCopyToClipboard;exports.useCurrentPage=e.useCurrentPage;exports.useCutBlockIds=e.useCutBlockIds;exports.useDarkMode=e.useDarkMode;exports.useDuplicateBlocks=e.useDuplicateBlocks;exports.useGlobalBlocksList=e.useGlobalBlocksList;exports.useGlobalBlocksStore=e.useGlobalBlocksStore;exports.useHiddenBlockIds=e.useHiddenBlockIds;exports.useHighlightBlockId=e.useHighlightBlockId;exports.useLanguages=e.useLanguages;exports.useLayoutVariant=e.useLayoutVariant;exports.usePasteBlocks=e.usePasteBlocks;exports.usePreviewMode=e.usePreviewMode;exports.useRemoveBlocks=e.useRemoveBlocks;exports.useRemoveClassesFromBlocks=e.useRemoveClassesFromBlocks;exports.useSavePage=e.useSavePage;exports.useSelectedBlock=e.useSelectedBlock;exports.useSelectedBlockAllClasses=e.useSelectedBlockAllClasses;exports.useSelectedBlockCurrentClasses=e.useSelectedBlockCurrentClasses;exports.useSelectedBlockIds=e.useSelectedBlockIds;exports.useSelectedBlocksDisplayChild=e.useSelectedBlocksDisplayChild;exports.useSelectedBreakpoints=e.useSelectedBreakpoints;exports.useSelectedStylingBlocks=e.useSelectedStylingBlocks;exports.useStylingBreakpoint=e.useStylingBreakpoint;exports.useStylingState=e.useStylingState;exports.useUILibraryBlocks=e.useUILibraryBlocks;exports.useUndoManager=e.useUndoManager;exports.useUpdateBlocksProps=e.useUpdateBlocksProps;exports.useUpdateBlocksPropsRealtime=e.useUpdateBlocksPropsRealtime;exports.generateBlockId=r.generateUUID;exports.mergeClasses=r.cn;Object.defineProperty(exports,"registerChaiBlock",{enumerable:!0,get:()=>s.registerChaiBlock});Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:()=>u.useTranslation});exports.i18n=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B_be_Or7.cjs"),s=require("./iconBase-Cn2BsTrq.cjs"),o=require("@chaibuilder/runtime"),l=require("react-i18next"),t=require("i18next");exports.AISetContext=e.AISetContext;exports.AIUserPrompt=e.AIUserPrompt;exports.AddBlocksDialog=e.AddBlocksDialog;exports.AddBlocksPanel=e.AddBlocksPanel;exports.BlockAttributesEditor=e.BlockAttributesEditor;exports.BlockPropsEditor=e.BlockSettings;exports.BlockStyleEditor=e.BlockStyling;exports.CHAI_BUILDER_EVENTS=e.CHAI_BUILDER_EVENTS;exports.ChaiBuilderCanvas=e.CanvasArea;exports.ChaiBuilderEditor=e.ChaiBuilderEditor;exports.ChaiDraggableBlock=e.ChaiDraggableBlock;exports.DarkModeSwitcher=e.DarkMode;exports.DefaultChaiBlocks=e.DefaultChaiBlocks;exports.ImportHTML=e.ImportHTML;exports.Outline=e.ListTree;exports.ScreenSizes=e.Breakpoints;exports.ThemeOptions=e.ThemeConfigPanel;exports.UILibraries=e.UILibrariesPanel;exports.UndoRedo=e.UndoRedo;exports.emitChaiBuilderMsg=e.emitChaiBuilderMsg;exports.getBlocksFromHTML=e.getBlocksFromHTML;exports.getClassValueAndUnit=e.getClassValueAndUnit;exports.useAddBlock=e.useAddBlock;exports.useAddClassesToBlocks=e.useAddClassesToBlocks;exports.useBlockHighlight=e.useBlockHighlight;exports.useBlocksStore=e.useBlocksStore;exports.useBlocksStoreUndoableActions=e.useBlocksStoreUndoableActions;exports.useBrandingOptions=e.useBrandingOptions;exports.useBuilderProp=e.useBuilderProp;exports.useBuilderReset=e.useBuilderReset;exports.useCanvasWidth=e.useCanvasWidth;exports.useCanvasZoom=e.useCanvasZoom;exports.useChaiBuilderMsgListener=e.useChaiBuilderMsgListener;exports.useCodeEditor=e.useCodeEditor;exports.useCopyBlockIds=e.useCopyBlockIds;exports.useCopyToClipboard=e.useCopyToClipboard;exports.useCurrentPage=e.useCurrentPage;exports.useCutBlockIds=e.useCutBlockIds;exports.useDarkMode=e.useDarkMode;exports.useDuplicateBlocks=e.useDuplicateBlocks;exports.useGlobalBlocksList=e.useGlobalBlocksList;exports.useGlobalBlocksStore=e.useGlobalBlocksStore;exports.useHiddenBlockIds=e.useHiddenBlockIds;exports.useHighlightBlockId=e.useHighlightBlockId;exports.useLanguages=e.useLanguages;exports.useLayoutVariant=e.useLayoutVariant;exports.usePasteBlocks=e.usePasteBlocks;exports.usePreviewMode=e.usePreviewMode;exports.useRemoveBlocks=e.useRemoveBlocks;exports.useRemoveClassesFromBlocks=e.useRemoveClassesFromBlocks;exports.useSavePage=e.useSavePage;exports.useSelectedBlock=e.useSelectedBlock;exports.useSelectedBlockAllClasses=e.useSelectedBlockAllClasses;exports.useSelectedBlockCurrentClasses=e.useSelectedBlockCurrentClasses;exports.useSelectedBlockIds=e.useSelectedBlockIds;exports.useSelectedBlocksDisplayChild=e.useSelectedBlocksDisplayChild;exports.useSelectedBreakpoints=e.useSelectedBreakpoints;exports.useSelectedStylingBlocks=e.useSelectedStylingBlocks;exports.useStylingBreakpoint=e.useStylingBreakpoint;exports.useStylingState=e.useStylingState;exports.useUILibraryBlocks=e.useUILibraryBlocks;exports.useUndoManager=e.useUndoManager;exports.useUpdateBlocksProps=e.useUpdateBlocksProps;exports.useUpdateBlocksPropsRealtime=e.useUpdateBlocksPropsRealtime;exports.generateBlockId=s.generateUUID;exports.mergeClasses=s.cn;Object.defineProperty(exports,"registerChaiBlock",{enumerable:!0,get:()=>o.registerChaiBlock});Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:()=>l.useTranslation});exports.i18n=t;
package/dist/core.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ClassValue } from 'clsx';
2
+ import { default as default_2 } from 'react';
2
3
  import { Emitter } from 'react-event-hook';
3
- import i18n from 'i18next';
4
+ import { default as i18n } from 'i18next';
4
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
5
6
  import * as React_2 from 'react';
6
- import { default as React_3 } from 'react';
7
7
  import { ReactNode } from 'react';
8
8
  import { registerChaiBlock } from '@chaibuilder/runtime';
9
9
  import { RESET } from 'jotai/utils';
@@ -51,10 +51,21 @@ declare type Breakpoint = {
51
51
  title: string;
52
52
  content: string;
53
53
  breakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | string;
54
- icon: React_3.ReactNode | Element;
54
+ icon: default_2.ReactNode | Element;
55
55
  width: number;
56
56
  };
57
57
 
58
+ declare interface BreakPointClassProps {
59
+ iconListingClasses?: string | undefined;
60
+ iconContainerClasses?: string | undefined;
61
+ iconSelectedClasses?: string | undefined;
62
+ }
63
+
64
+ declare interface ButtonProps {
65
+ defaultClasses?: string | undefined;
66
+ onDisabledClasses?: string | undefined;
67
+ }
68
+
58
69
  export declare const CHAI_BUILDER_EVENTS: {
59
70
  OPEN_ADD_BLOCK: string;
60
71
  CLOSE_ADD_BLOCK: string;
@@ -69,12 +80,12 @@ export declare type ChaiBlock = {
69
80
  _bindings?: Record<string, string>;
70
81
  } & Record<string, any>;
71
82
 
72
- export declare const ChaiBuilderCanvas: React_3.FC;
83
+ export declare const ChaiBuilderCanvas: default_2.FC;
73
84
 
74
85
  /**
75
86
  * ChaiBuilder is the main entry point for the Chai Builder Studio.
76
87
  */
77
- export declare const ChaiBuilderEditor: React_3.FC<ChaiBuilderEditorProps>;
88
+ export declare const ChaiBuilderEditor: default_2.FC<ChaiBuilderEditorProps>;
78
89
 
79
90
  export declare interface ChaiBuilderEditorProps {
80
91
  /**
@@ -94,7 +105,7 @@ export declare interface ChaiBuilderEditorProps {
94
105
  /**
95
106
  * Custom layout component
96
107
  */
97
- layout?: React_3.ComponentType;
108
+ layout?: default_2.ComponentType;
98
109
  /**
99
110
  * Layout variant. Not supported with custom layout
100
111
  */
@@ -102,7 +113,7 @@ export declare interface ChaiBuilderEditorProps {
102
113
  /**
103
114
  * Custom media Manager component
104
115
  */
105
- mediaManagerComponent?: React_3.ComponentType<{
116
+ mediaManagerComponent?: default_2.ComponentType<{
106
117
  onSelect: (url: string) => void;
107
118
  }>;
108
119
  /**
@@ -242,6 +253,22 @@ declare type ChaiBuilderInstance = {
242
253
  setBlocks: (blocks: ChaiBlock[]) => void;
243
254
  };
244
255
 
256
+ /**
257
+ *
258
+ * @description
259
+ * This component represents a draggable block within the Chai Builder interface.
260
+ * It handles the drag start event by setting the dragged block and emitting a message to close the add block panel.
261
+ * block, blocks, html
262
+ */
263
+ export declare const ChaiDraggableBlock: ({ block, html, blocks, children }: ChaiDraggableBlockProps) => JSX_2.Element;
264
+
265
+ declare type ChaiDraggableBlockProps = {
266
+ html?: string;
267
+ block?: any;
268
+ blocks?: any;
269
+ children: default_2.ReactNode;
270
+ };
271
+
245
272
  declare type ChaiPage = {
246
273
  slug: string;
247
274
  uuid?: string;
@@ -291,9 +318,9 @@ export declare const DefaultChaiBlocks: ({ parentId, gridCols }: {
291
318
  gridCols?: string;
292
319
  }) => JSX_2.Element;
293
320
 
294
- export declare const emitChaiBuilderMsg: Emitter<{
295
- name: string;
296
- data?: any;
321
+ export declare const emitChaiBuilderMsg: Emitter< {
322
+ name: string;
323
+ data?: any;
297
324
  }>;
298
325
 
299
326
  declare type ExcludedBuilderProps = "blocks" | "subPages" | "brandingOptions" | "dataProviders";
@@ -337,7 +364,7 @@ export declare const mergeClasses: (...inputs: ClassValue[]) => string;
337
364
  export declare const Outline: () => JSX_2.Element;
338
365
 
339
366
  declare type OutlineMenuItem = {
340
- item: React_3.ComponentType<{
367
+ item: default_2.ComponentType<{
341
368
  blockId: string;
342
369
  }>;
343
370
  tooltip: string | ReactNode;
@@ -345,7 +372,7 @@ declare type OutlineMenuItem = {
345
372
 
346
373
  declare type OutlineMenuItems = OutlineMenuItem[];
347
374
 
348
- declare type ReactComponentType = React_3.ComponentType<any>;
375
+ declare type ReactComponentType = default_2.ComponentType<any>;
349
376
 
350
377
  export { registerChaiBlock }
351
378
 
@@ -359,7 +386,7 @@ declare type SavePageData = {
359
386
  themeConfiguration?: Record<string, any>;
360
387
  };
361
388
 
362
- export declare const ScreenSizes: () => JSX_2.Element;
389
+ export declare const ScreenSizes: ({ iconListingClasses, iconContainerClasses, iconSelectedClasses }: BreakPointClassProps) => JSX_2.Element;
363
390
 
364
391
  export declare const ThemeOptions: ({ showHeading, className, }: {
365
392
  className?: string;
@@ -397,7 +424,13 @@ declare type UiLibraryBlock = {
397
424
  description?: string;
398
425
  };
399
426
 
400
- export declare const UndoRedo: () => JSX_2.Element;
427
+ export declare const UndoRedo: ({ containerClasses, redoButtonProps, undoButtonProps }: UndoRedoProps) => JSX_2.Element;
428
+
429
+ declare interface UndoRedoProps {
430
+ containerClasses?: string | undefined;
431
+ undoButtonProps?: ButtonProps;
432
+ redoButtonProps?: ButtonProps;
433
+ }
401
434
 
402
435
  export declare const useAddBlock: () => AddBlocks;
403
436
 
@@ -440,7 +473,7 @@ export declare const useCanvasWidth: () => [number, string, Function];
440
473
  /**
441
474
  * Wrapper hook around useAtom
442
475
  */
443
- export declare const useCanvasZoom: () => [number, (args_0: number | typeof RESET | ((prev: number) => number | typeof RESET)) => void];
476
+ export declare const useCanvasZoom: () => [number, (args_0: number | RESET | ((prev: number) => number | RESET)) => void];
444
477
 
445
478
  export declare const useChaiBuilderMsgListener: (handler: (payload: {
446
479
  name: string;
@@ -499,7 +532,7 @@ export declare const useLanguages: () => {
499
532
  setSelectedLang: (lang: string) => void;
500
533
  };
501
534
 
502
- export declare const useLayoutVariant: () => readonly [LayoutVariant, (args_0: LayoutVariant | typeof RESET | ((prev: LayoutVariant) => LayoutVariant | typeof RESET)) => void];
535
+ export declare const useLayoutVariant: () => readonly [LayoutVariant, (args_0: LayoutVariant | RESET | ((prev: LayoutVariant) => LayoutVariant | RESET)) => void];
503
536
 
504
537
  export declare const usePasteBlocks: () => {
505
538
  canPaste: (newParentId: string) => boolean;
@@ -551,7 +584,7 @@ export declare const useSelectedBreakpoints: () => [string[], Function];
551
584
  */
552
585
  export declare const useSelectedStylingBlocks: () => [TStyleBlock[], (args_0: TStyleBlock[] | ((prev: TStyleBlock[]) => TStyleBlock[])) => void];
553
586
 
554
- export declare const useStylingBreakpoint: () => [string, (args_0: string | typeof RESET | ((prev: string) => string | typeof RESET)) => void];
587
+ export declare const useStylingBreakpoint: () => [string, (args_0: string | RESET | ((prev: string) => string | RESET)) => void];
555
588
 
556
589
  export declare const useStylingState: () => [unknown, (...args: unknown[]) => unknown];
557
590
 
package/dist/core.js CHANGED
@@ -1,129 +1,76 @@
1
- import { p as os, q as as, l as ts, A as rs, r as is, B as ls, k as ps, o as ms, j as us, s as ds, t as cs, D as Bs, I as ks, O as ns, v as Cs, T as gs, U as Ss, w as hs, m as Is, y as As, x as Ps, K as Us, M as ys, _ as bs, G as Es, ad as Ls, a0 as Ms, d as fs, J as vs, N as Ds, P as Ts, n as xs, u as Hs, Q as Rs, R as Os, S as Vs, V as ws, W as Gs, X as _s, z as zs, E as Fs, Y as Ns, Z as Ws, g as Zs, ac as js, $ as qs, f as Js, a1 as Ks, a2 as Qs, e as Xs, a5 as Ys, a4 as $s, a3 as se, a as ee, a9 as oe, aa as ae, ab as te, a6 as re, a8 as ie, a7 as le, H as pe, b as me, c as ue } from "./index-IZpHf_8d.js";
2
- import { g as ce, c as Be } from "./iconBase-Ief2hJUZ.js";
3
- import { registerChaiBlock as ne } from "@chaibuilder/runtime";
4
- import { useTranslation as ge } from "react-i18next";
5
- import { default as he } from "i18next";
6
- import "./jsx-runtime-Sp0orL4X.js";
7
- import "react";
8
- import "./context-menu-FPX89OKr.js";
9
- import "@radix-ui/react-switch";
10
- import "@radix-ui/react-accordion";
11
- import "@radix-ui/react-icons";
12
- import "class-variance-authority";
13
- import "@radix-ui/react-alert-dialog";
14
- import "@radix-ui/react-slot";
15
- import "@radix-ui/react-label";
16
- import "@radix-ui/react-scroll-area";
17
- import "@radix-ui/react-tabs";
18
- import "@radix-ui/react-tooltip";
19
- import "@radix-ui/react-popover";
20
- import "@radix-ui/react-hover-card";
21
- import "@radix-ui/react-select";
22
- import "@radix-ui/react-dropdown-menu";
23
- import "@radix-ui/react-separator";
24
- import "@radix-ui/react-toast";
25
- import "cmdk";
26
- import "@radix-ui/react-dialog";
27
- import "@radix-ui/react-context-menu";
28
- import "clsx";
29
- import "tailwind-merge";
30
- import "lodash-es";
31
- import "jotai";
32
- import "./plugin-f6SDZ_Or.js";
33
- import "@react-hookz/web";
34
- import "tree-model";
35
- import "react-quill";
36
- import "./STRINGS-Xxstm-7I.js";
37
- import "flagged";
38
- import "react-hotkeys-hook";
39
- import "@floating-ui/dom";
40
- import "@floating-ui/react-dom";
41
- import "react-event-hook";
42
- import "@tailwindcss/typography";
43
- import "@tailwindcss/forms";
44
- import "@tailwindcss/aspect-ratio";
45
- import "react-wrap-balancer";
46
- import "react-dom";
47
- import "prop-types";
48
- import "react-error-boundary";
49
- import "re-resizable";
50
- import "lucide-react";
51
- import "@rjsf/validator-ajv8";
52
- import "@rjsf/core";
53
- import "./controls-lEwMTdPQ.js";
54
- import "react-arborist";
55
- import "himalaya";
56
- import "react-icons-picker";
57
- import "react-autosuggest";
58
- import "fuse.js";
59
- import "framer-motion";
1
+ import { r as a, s as o, n as l, A as t, t as r, B as u, l as i, q as d, j as c, v as B, m as k, w as n, D as C, I as g, k as p, x as S, T as m, U as h, y as I, o as A, E as P, z as U, N as b, O as y, $ as D, J as E, ae as L, a1 as M, d as f, M as v, P as T, Q as x, p as H, u as R, R as O, S as V, V as w, W as G, X as _, Y as z, G as F, H as N, Z as W, _ as Z, g as j, ad as q, a0 as J, f as K, a2 as Q, a3 as X, e as Y, a6 as $, a5 as ss, a4 as es, a as as, aa as os, ab as ls, ac as ts, a7 as rs, a9 as us, a8 as is, K as ds, b as cs, c as Bs } from "./index-Bn53BEJy.js";
2
+ import { g as ns, c as Cs } from "./iconBase-DHfFLkem.js";
3
+ import { registerChaiBlock as ps } from "@chaibuilder/runtime";
4
+ import { useTranslation as ms } from "react-i18next";
5
+ import { default as Is } from "i18next";
60
6
  export {
61
- os as AISetContext,
62
- as as AIUserPrompt,
63
- ts as AddBlocksDialog,
64
- rs as AddBlocksPanel,
65
- is as BlockAttributesEditor,
66
- ls as BlockPropsEditor,
67
- ps as BlockStyleEditor,
68
- ms as CHAI_BUILDER_EVENTS,
69
- us as ChaiBuilderCanvas,
70
- ds as ChaiBuilderEditor,
71
- cs as DarkModeSwitcher,
72
- Bs as DefaultChaiBlocks,
73
- ks as ImportHTML,
74
- ns as Outline,
75
- Cs as ScreenSizes,
76
- gs as ThemeOptions,
77
- Ss as UILibraries,
78
- hs as UndoRedo,
79
- Is as emitChaiBuilderMsg,
80
- ce as generateBlockId,
81
- As as getBlocksFromHTML,
82
- Ps as getClassValueAndUnit,
83
- he as i18n,
84
- Be as mergeClasses,
85
- ne as registerChaiBlock,
86
- Us as useAddBlock,
87
- ys as useAddClassesToBlocks,
88
- bs as useBlockHighlight,
89
- Es as useBlocksStore,
90
- Ls as useBlocksStoreUndoableActions,
91
- Ms as useBrandingOptions,
92
- fs as useBuilderProp,
93
- vs as useBuilderReset,
94
- Ds as useCanvasWidth,
95
- Ts as useCanvasZoom,
96
- xs as useChaiBuilderMsgListener,
97
- Hs as useCodeEditor,
98
- Rs as useCopyBlockIds,
99
- Os as useCopyToClipboard,
100
- Vs as useCurrentPage,
101
- ws as useCutBlockIds,
102
- Gs as useDarkMode,
103
- _s as useDuplicateBlocks,
104
- zs as useGlobalBlocksList,
105
- Fs as useGlobalBlocksStore,
106
- Ns as useHiddenBlockIds,
107
- Ws as useHighlightBlockId,
108
- Zs as useLanguages,
109
- js as useLayoutVariant,
110
- qs as usePasteBlocks,
111
- Js as usePreviewMode,
112
- Ks as useRemoveBlocks,
113
- Qs as useRemoveClassesFromBlocks,
114
- Xs as useSavePage,
115
- Ys as useSelectedBlock,
116
- $s as useSelectedBlockAllClasses,
117
- se as useSelectedBlockCurrentClasses,
118
- ee as useSelectedBlockIds,
119
- oe as useSelectedBlocksDisplayChild,
120
- ae as useSelectedBreakpoints,
121
- te as useSelectedStylingBlocks,
122
- re as useStylingBreakpoint,
123
- ie as useStylingState,
124
- ge as useTranslation,
125
- le as useUILibraryBlocks,
126
- pe as useUndoManager,
127
- me as useUpdateBlocksProps,
128
- ue as useUpdateBlocksPropsRealtime
7
+ a as AISetContext,
8
+ o as AIUserPrompt,
9
+ l as AddBlocksDialog,
10
+ t as AddBlocksPanel,
11
+ r as BlockAttributesEditor,
12
+ u as BlockPropsEditor,
13
+ i as BlockStyleEditor,
14
+ d as CHAI_BUILDER_EVENTS,
15
+ c as ChaiBuilderCanvas,
16
+ B as ChaiBuilderEditor,
17
+ k as ChaiDraggableBlock,
18
+ n as DarkModeSwitcher,
19
+ C as DefaultChaiBlocks,
20
+ g as ImportHTML,
21
+ p as Outline,
22
+ S as ScreenSizes,
23
+ m as ThemeOptions,
24
+ h as UILibraries,
25
+ I as UndoRedo,
26
+ A as emitChaiBuilderMsg,
27
+ ns as generateBlockId,
28
+ P as getBlocksFromHTML,
29
+ U as getClassValueAndUnit,
30
+ Is as i18n,
31
+ Cs as mergeClasses,
32
+ ps as registerChaiBlock,
33
+ b as useAddBlock,
34
+ y as useAddClassesToBlocks,
35
+ D as useBlockHighlight,
36
+ E as useBlocksStore,
37
+ L as useBlocksStoreUndoableActions,
38
+ M as useBrandingOptions,
39
+ f as useBuilderProp,
40
+ v as useBuilderReset,
41
+ T as useCanvasWidth,
42
+ x as useCanvasZoom,
43
+ H as useChaiBuilderMsgListener,
44
+ R as useCodeEditor,
45
+ O as useCopyBlockIds,
46
+ V as useCopyToClipboard,
47
+ w as useCurrentPage,
48
+ G as useCutBlockIds,
49
+ _ as useDarkMode,
50
+ z as useDuplicateBlocks,
51
+ F as useGlobalBlocksList,
52
+ N as useGlobalBlocksStore,
53
+ W as useHiddenBlockIds,
54
+ Z as useHighlightBlockId,
55
+ j as useLanguages,
56
+ q as useLayoutVariant,
57
+ J as usePasteBlocks,
58
+ K as usePreviewMode,
59
+ Q as useRemoveBlocks,
60
+ X as useRemoveClassesFromBlocks,
61
+ Y as useSavePage,
62
+ $ as useSelectedBlock,
63
+ ss as useSelectedBlockAllClasses,
64
+ es as useSelectedBlockCurrentClasses,
65
+ as as useSelectedBlockIds,
66
+ os as useSelectedBlocksDisplayChild,
67
+ ls as useSelectedBreakpoints,
68
+ ts as useSelectedStylingBlocks,
69
+ rs as useStylingBreakpoint,
70
+ us as useStylingState,
71
+ ms as useTranslation,
72
+ is as useUILibraryBlocks,
73
+ ds as useUndoManager,
74
+ cs as useUpdateBlocksProps,
75
+ Bs as useUpdateBlocksPropsRealtime
129
76
  };