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