import{e as i,m as u,o as l,w as c,X as r,I as f,n as t,W as d,ac as y,c as m,bz as w,ai as h,bA as B,a6 as $,bB as C,Z as k,$ as z,b as V,C as p,a as D,d as x,t as v}from"./BoB2h2qv.js";import{_ as O,a as I}from"./BJqYSVeY.js";const A=i({__name:"Item",props:{asChild:{type:Boolean},as:{default:"div"},class:{},variant:{},size:{}},setup(e){const s=e;return(a,o)=>(l(),u(t(y),{"data-slot":"item",as:e.as,"as-child":e.asChild,class:f(t(d)(t(P)({variant:e.variant,size:e.size}),s.class))},{default:c(()=>[r(a.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),F=i({__name:"ItemContent",props:{class:{}},setup(e){const s=e;return(a,o)=>(l(),m("div",{"data-slot":"item-content",class:f(t(d)("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",s.class))},[r(a.$slots,"default")],2))}}),K=i({__name:"ItemHeader",props:{class:{}},setup(e){const s=e;return(a,o)=>(l(),m("div",{"data-slot":"item-header",class:f(t(d)("flex basis-full items-center justify-between gap-2",s.class))},[r(a.$slots,"default")],2))}}),W=i({__name:"ItemTitle",props:{class:{}},setup(e){const s=e;return(a,o)=>(l(),m("div",{"data-slot":"item-title",class:f(t(d)("flex w-fit items-center gap-2 text-sm leading-snug font-medium",s.class))},[r(a.$slots,"default")],2))}}),P=w("group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:ring-ring focus-visible:ring-2",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"p-4 gap-4 ",sm:"py-3 px-4 gap-2.5"}},defaultVariants:{variant:"default",size:"default"}}),S=i({__name:"SheetDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const s=e,a=h(s,"class");return(o,_)=>(l(),u(t(B),$({class:t(d)("text-sm text-muted-foreground",s.class)},t(a)),{default:c(()=>[r(o.$slots,"default")]),_:3},16,["class"]))}}),E=i({__name:"SheetFooter",props:{class:{}},setup(e){const s=e;return(a,o)=>(l(),m("div",{class:f(t(d)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",s.class))},[r(a.$slots,"default")],2))}}),M=i({__name:"SheetHeader",props:{class:{}},setup(e){const s=e;return(a,o)=>(l(),m("div",{class:f(t(d)("flex flex-col gap-y-2 text-center sm:text-left",s.class))},[r(a.$slots,"default")],2))}}),N=i({__name:"SheetTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const s=e,a=h(s,"class");return(o,_)=>(l(),u(t(C),$({class:t(d)("text-lg font-semibold text-foreground",s.class)},t(a)),{default:c(()=>[r(o.$slots,"default")]),_:3},16,["class"]))}}),T={class:"flex-1 overflow-y-auto"},X=i({__name:"drawer",props:k({title:{default:void 0},description:{default:void 0},side:{default:"right"},size:{default:"md"},closeOnBackdrop:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},class:{default:void 0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const s=e,a={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-xl",xl:"sm:max-w-3xl"},o=z(e,"modelValue"),_=n=>{o.value=n},g=n=>{s.closeOnBackdrop||n.preventDefault()},b=n=>{s.closeOnEscape||n.preventDefault()};return(n,j)=>(l(),u(t(I),{open:o.value,"onUpdate:open":_},{default:c(()=>[V(t(O),{side:e.side,class:f(t(d)("flex flex-col gap-4",a[e.size],s.class)),onPointerDownOutside:g,onInteractOutside:g,onEscapeKeyDown:b},{default:c(()=>[e.title||e.description||n.$slots.header?(l(),u(t(M),{key:0,class:"text-left"},{default:c(()=>[r(n.$slots,"header",{},()=>[e.title?(l(),u(t(N),{key:0},{default:c(()=>[x(v(e.title),1)]),_:1})):p("",!0),e.description?(l(),u(t(S),{key:1},{default:c(()=>[x(v(e.description),1)]),_:1})):p("",!0)])]),_:3})):p("",!0),D("div",T,[r(n.$slots,"default")]),n.$slots.footer?(l(),u(t(E),{key:1},{default:c(()=>[r(n.$slots,"footer")]),_:3})):p("",!0)]),_:3},8,["side","class"])]),_:3},8,["open"]))}});export{X as _,A as a,K as b,W as c,F as d};
