import{Z as f}from"./navigation-BzNQiq4W.js";import{D as i,ar as m,as as d,X as u,at as h}from"./ReferenceContentLoader-Z8YmHBVJ.js";import{d as g,b as y,o as x,g as o,n as s,l as e,R as B,U as _,j as r,m as b}from"./index-DPl1iiyq.js";const k=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(v){const{cx:l}=f();return(t,w)=>(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(u))])]),_:2},1040,["focus","style"])]),default:o(()=>[s(e(m),{as:"template"},{default:o(()=>[r(t.$slots,"default",{open:a})]),_:2},1024)]),_:2},1040)]),_:3}))}});export{k as z};
