import{a as n,j as l,c}from"./provider-jGJDpSsD.js";import{F as p,c as k,S as v,d as z,e as E,f as I}from"./responsive-JY1roPos.js";import{f as O}from"./index-BVE0rL7V.js";const a={content:{base:e=>c({"& > *":{pointerEvents:"auto"},insetBlock:0,pointerEvents:"none",position:"absolute",zIndex:e.zIndices.drawer}),left:e=>c({left:0}),right:e=>c({right:0})},overlay:e=>c({background:"rgba(0,0,0,0.5)",inset:0,position:"absolute",zIndex:e.zIndices.drawer-1})},F=({open:e=!1,anchor:s="right",hideBackdrop:u=!1,onClose:r,children:b,dialogRootProps:t,dialogPortalProps:d,dialogOverlayProps:h,fadeProps:m,slideProps:$,...x})=>n(I,{open:e,...t,onOpenChange:O(i=>{var f;i||r==null||r(),(f=t==null?void 0:t.onOpenChange)==null||f.call(t,i)}),modal:!1,children:l(E,{forceMount:!0,...d,children:[!u&&n(p,{unmountOnExit:!0,appear:!0,timeout:200,in:e,...m,children:n(k,{onClick:r,forceMount:!0,css:a.overlay,...h})}),n(v,{unmountOnExit:!0,appear:!0,direction:s==="right"?"left":"right",in:e,...$,children:n(z,{forceMount:!0,css:[a.content.base,s==="left"?a.content.left:a.content.right],...x,children:b})})]})});export{F as D};
