import{d as f,at as g,o as r,f as l,h as e,V as h,ax as x,ay as w,e as t,aN as B,aO as _,i,aP as k,t as c,aQ as C,ao as O,aR as v,k as P,aS as V}from"./gmbjJHmd.js";import{c as u}from"./Bb4qSo10.js";import{c as b}from"./8RyR4BqC.js";import{c as $}from"./CIZXIMy1.js";const N=f({__name:"Sheet",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(o,{emit:s}){const d=g(o,s);return(n,p)=>(r(),l(t(B),x(w(t(d))),{default:e(()=>[h(n.$slots,"default")]),_:3},16))}}),z=$("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),I=f({__name:"SheetContent",props:{side:{},color:{},class:{},modal:{type:Boolean},hideClose:{type:Boolean},isOpen:{type:Boolean},forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:s}){const a=o,d=_(s),n=u("fixed z-50 gap-4 bg-white shadow-lg",{variants:{side:{top:"inset-x-0 top-0 md:p-6 border-b border-gray-100 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 md:p-6 border-t border-gray-100 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",bottomRight:"bottom-0 border-t border-gray-100 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",footerBottom:"inset-x-0 bottom-0 md:p-6 border-t border-gray-100 pb-12 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom md:pb-0",left:"inset-y-0 left-0 md:p-6 h-full w-3/4 border-r border-gray-100 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 md:p-6 h-full w-3/4 border-l border-gray-100 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",center:"inset-x-0 top-1/4 md:p-6 mx-4 border-b border-gray-100 data-[state=closed]:opacity-0 data-[state=open]:opacity-100 md:top-1/3 lg:m-auto lg:max-w-[970px]"}},defaultVariants:{side:"right"}}),p=u("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",{variants:{color:{white:"bg-white/80 backdrop-blur-sm",black:"bg-black/80 backdrop-blur-sm",none:""}},defaultVariants:{modal:!0,color:"white"}});return(m,R)=>(r(),l(t(V),null,{default:e(()=>[i(t(k),{class:c(t(b)(t(p)({color:a.color})))},null,8,["class"]),i(t(C),O({class:t(b)(`dialog-content--${a.side}`,t(n)({side:a.side}),a.class)},{...a,...t(d)}),{default:e(()=>[h(m.$slots,"default"),a.hideClose?P("",!0):(r(),l(t(v),{key:0,class:c([`${a.hideClose?"hidden":""} ${m.$props.isOpen&&a.side==="footerBottom"?"top-16 md:top-6":"top-4"}`,"absolute right-4 rounded-md p-0.5 transition-colors hover:bg-gray-100"])},{default:e(()=>[i(t(z),{class:"size-4 text-gray-500"})]),_:1},8,["class"]))]),_:3},16,["class"])]),_:3}))}});export{I as _,N as a};