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