import{U as L,bj as u,bk as f,b1 as s,ap as Z,Z as v,G as l,j as q,r as z,ae as p,L as D,o as h,e as I,w as m,c as J,ad as K,t as g,ab as w,af as y,h as M,ai as Q,aN as T,am as V,bl as W,an as X,__tla as Y}from"./index.b5692aad.js";let _,ee=Promise.all([(()=>{try{return Y}catch{}})()]).then(async()=>{const S=L({trigger:u.trigger,placement:f.placement,disabled:u.disabled,visible:s.visible,transition:s.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:s.content,popperStyle:s.popperStyle,popperClass:s.popperClass,enterable:{...s.enterable,default:!0},effect:{...s.effect,default:"light"},teleported:s.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),k={"update:visible":t=>Z(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},x="onUpdate:visible",A=v({name:"ElPopover"}),N=v({...A,props:S,emits:k,setup(t,{expose:r,emit:a}){const o=t,U=l(()=>o[x]),i=q("popover"),n=z(),$=l(()=>{var e;return(e=p(n))==null?void 0:e.popperRef}),B=l(()=>[{width:D(o.width)},o.popperStyle]),O=l(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),j=l(()=>o.transition===`${i.namespace.value}-fade-in-linear`),E=()=>{var e;(e=n.value)==null||e.hide()},H=()=>{a("before-enter")},P=()=>{a("before-leave")},F=()=>{a("after-enter")},G=()=>{a("update:visible",!1),a("after-leave")};return r({popperRef:$,hide:E}),(e,te)=>(h(),I(p(T),Q({ref_key:"tooltipRef",ref:n},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(O),"popper-style":p(B),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(j),"onUpdate:visible":p(U),onBeforeShow:H,onBeforeHide:P,onShow:F,onHide:G}),{content:m(()=>[e.title?(h(),J("div",{key:0,class:K(p(i).e("title")),role:"title"},g(e.title),3)):w("v-if",!0),y(e.$slots,"default",{},()=>[M(g(e.content),1)])]),default:m(()=>[e.$slots.reference?y(e.$slots,"reference",{key:0}):w("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var C=V(N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const d=(t,r)=>{const a=r.arg||r.value,o=a==null?void 0:a.popperRef;o&&(o.triggerRef=t)};var R={mounted(t,r){d(t,r)},updated(t,r){d(t,r)}};let b,c;b="popover",c=W(R,b),_=X(C,{directive:c})});export{_ as E,ee as __tla};
