import{d as f,az as i,b as d,o as u,h as a,q as o,p as e,aA as m,aB as h,k as l,m as g}from"./index-BX34W763.js";import{D as y,aj as B,ak as x,H as _,al as b}from"./ReferenceContentLoader-D7Cnl9bC.js";const P=f({inheritAttrs:!1,__name:"ScalarPopover",props:{focus:{type:Boolean},placement:{},offset:{type:[Number,Object,Function]},resize:{type:Boolean},target:{},middleware:{},teleport:{type:[Boolean,String]}},setup(k){const{cx:r}=i();return(t,v)=>(u(),d(e(b),{as:"template"},{default:a(({open:s})=>[o(e(y),m(h(t.$props)),{floating:a(({width:p,height:n})=>[o(e(x),g({focus:t.focus,style:{width:p,height:n}},e(r)("relative flex flex-col p-0.75")),{default:a(({close:c})=>[l(t.$slots,"popover",{close:()=>c(),open:s}),l(t.$slots,"backdrop",{open:s},()=>[o(e(_))])]),_:2},1040,["focus","style"])]),default:a(()=>[o(e(B),{as:"template"},{default:a(()=>[l(t.$slots,"default",{open:s})]),_:2},1024)]),_:2},1040)]),_:3}))}});export{P as z};
