import{r as i,j as a}from"./main.js";import{R as x,P as h,C as r,a as y,T as l,D as m,O as d}from"./index-ZfCd-qu9.js";import{b as o}from"./button-D4VgS8ri.js";import{X as b}from"./x-CArTv3Mk.js";const T=x,u=h,c=i.forwardRef(({className:e,style:s,...t},n)=>a.jsx(d,{ref:n,className:o("fixed inset-0 z-50 bg-black/80",e),style:{...s,animationName:"var(--sheet-overlay-anim)",animationDuration:"0.3s",animationTimingFunction:"ease-out",animationFillMode:"forwards"},"data-sheet-overlay":"",...t}));c.displayName=d.displayName;const g={top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-md"},N=i.forwardRef(({side:e="right",className:s,children:t,style:n,...f},p)=>a.jsxs(u,{children:[a.jsx(c,{}),a.jsxs(r,{ref:p,className:o("bg-background fixed z-50 shadow-lg",g[e],s),style:{...n,animationName:"var(--sheet-content-anim)",animationDuration:"0.35s",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animationFillMode:"forwards"},"data-sheet-content":"","data-sheet-side":e,...f,children:[a.jsxs(y,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 z-10 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[a.jsx(b,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),t]})]}));N.displayName=r.displayName;const j=({className:e,...s})=>a.jsx("div",{className:o("flex flex-col space-y-2 p-6 pb-0",e),...s});j.displayName="SheetHeader";const w=i.forwardRef(({className:e,...s},t)=>a.jsx(l,{ref:t,className:o("text-lg font-semibold text-foreground",e),...s}));w.displayName=l.displayName;const v=i.forwardRef(({className:e,...s},t)=>a.jsx(m,{ref:t,className:o("text-sm text-muted-foreground",e),...s}));v.displayName=m.displayName;export{T as S,N as a,j as b,w as c,v as d};
