var h=Object.defineProperty,u=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var p=(r,e,t)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,a=(r,e)=>{for(var t in e||(e={}))f.call(e,t)&&p(r,t,e[t]);if(c)for(var t of c(e))E.call(e,t)&&p(r,t,e[t]);return r},s=(r,e)=>u(r,g(e));import{jsxs as m,jsx as i}from"react/jsx-runtime";import{L as S,as as x,at as v,au as C,av as b,aZ as y,a_ as w,aw as n}from"./ui-components-B24mpb8o.js";import{useEditor as L}from"./use-editor-D8T8wKX0.js";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./editor-provider-CwMLJaUa.js";import"uuid";const ce=({changeCustomValues:r})=>{const{editor:e,dispatch:t}=L(),o=e.editor.selectedElement.content;return m("div",{className:"flex flex-col gap-2",children:[i(S,{children:"Drawer Placement"}),m(x,{onValueChange:l=>{const d=Array.isArray(o)?o:typeof o=="object"&&o!==null&&"children"in o?o.children:[];t({type:"UPDATE_ELEMENT",payload:{elementDetails:s(a({},e.editor.selectedElement),{content:{placement:l,children:d}})}})},value:(()=>{if(typeof o=="object"&&o!==null&&"placement"in o){const l=o.placement;if(["left","right","top","bottom"].includes(l))return l}return"left"})(),children:[i(v,{children:i(C,{placeholder:"Select placement"})}),i(b,{children:m(y,{children:[i(w,{children:"Edge Position"}),i(n,{value:"left",children:"Left Edge"}),i(n,{value:"right",children:"Right Edge"}),i(n,{value:"top",children:"Top Edge"}),i(n,{value:"bottom",children:"Bottom Edge"})]})})]}),i("p",{className:"text-xs text-muted-foreground",children:"Choose which edge of the screen the drawer opens from"})]})};export{ce as default};
