1import{D as e,On as t,Zn as n,_ as r,b as i,et as a,g as o,k as s,mt as c,qt as l,v as u,xt as d,y as f}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{b as p}from"./dist-CpmBTglX.js";import{n as m}from"./utils-DICGkfbo.js";import{n as h,r as g}from"./useId-Ci9vvzPH.js";import{b as _,c as v,l as y,o as b,s as x,x as S}from"./dialog-CxqoZ2i5.js";import{n as C}from"./tracking-CUlrFEbe.js";import{t as w}from"./Close-hYSJhfFq.js";var T=s({__name:`Sheet`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:[`update:open`],setup(e,{emit:n}){let r=h(e,n);return(e,n)=>(c(),u(t(S),a({"data-slot":`sheet`},t(r)),{default:l(()=>[d(e.$slots,`default`)]),_:3},16))}}),E=s({__name:`SheetClose`,props:{asChild:{type:Boolean},as:{}},setup(e){let n=e;return(e,r)=>(c(),u(t(_),a({"data-slot":`sheet-close`},n),{default:l(()=>[d(e.$slots,`default`)]),_:3},16))}}),D=s({__name:`SheetOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e,r=o(()=>{let{class:e,...t}=n;return t});return(e,i)=>(c(),u(t(v),a({"data-slot":`sheet-overlay`,class:t(m)(`fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,n.class)},r.value),{default:l(()=>[d(e.$slots,`default`)]),_:3},16,[`class`]))}}),O=s({inheritAttrs:!1,__name:`SheetContent`,props:{class:{type:[Boolean,null,String,Object,Array]},side:{default:`right`},hideClose:{type:Boolean},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(n,{emit:i}){let o=n,s=i,g=p(o,`class`,`side`,`hideClose`),v=h(g,s);return(i,s)=>(c(),u(t(x),null,{default:l(()=>[e(D),e(t(y),a({"data-slot":`sheet-content`,class:t(m)(`fixed z-50 flex flex-col bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n.side===`right`&&`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n.side===`left`&&`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n.side===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n.side===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,o.class)},{...t(v),...i.$attrs}),{default:l(()=>[d(i.$slots,`default`),o.hideClose?f(``,!0):(c(),u(t(_),{key:0,class:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`},{default:l(()=>[e(w,{class:`size-4`}),s[0]||=r(`span`,{class:`sr-only`},`Close`,-1)]),_:1}))]),_:3},16,[`class`])]),_:3}))}}),k=s({__name:`SheetHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let r=e;return(e,a)=>(c(),i(`div`,{"data-slot":`sheet-header`,class:n(t(m)(`flex flex-col gap-1.5 p-4`,r.class))},[d(e.$slots,`default`)],2))}}),A=s({__name:`SheetTrigger`,props:{asChild:{type:Boolean},as:{},elementType:{default:C.MODAL}},setup(e){let n=p(e,`elementType`),r=g(n);return(n,i)=>(c(),u(t(b),a({"data-slot":`sheet-trigger`,"data-element-type":e.elementType},t(r)),{default:l(()=>[d(n.$slots,`default`)]),_:3},16,[`data-element-type`]))}});export{T as a,E as i,k as n,O as r,A as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.