import{C as e,O as t,Q as n,St as r,T as i,Y as a,cn as o,dt as s,j as c,kt as l,nn as u,w as d,x as f,z as p}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{Y as m,Zt as h,n as g,y as _}from"./style-DGCNsUJ6.js";import{S as v,g as y,x as b}from"./GxPagination-DOexUzbO.js";import{At as x,Vt as S,kt as C}from"./vnode-DU8g6Rf7.js";import{i as w}from"./dropdown-DhM1uP7x.js";var T=_({trigger:b.trigger,triggerKeys:b.triggerKeys,placement:w.placement,disabled:b.disabled,visible:v.visible,transition:v.transition,popperOptions:w.popperOptions,tabindex:w.tabindex,content:v.content,popperStyle:v.popperStyle,popperClass:v.popperClass,enterable:{...v.enterable,default:!0},effect:{...v.effect,default:`light`},teleported:v.teleported,appendTo:v.appendTo,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}}),E={"update:visible":e=>m(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},D=`onUpdate:visible`,O=S(c({...c({name:`ElPopover`}),props:T,emits:E,setup(c,{expose:m,emit:_}){let v=c,b=f(()=>v[D]),x=h(`popover`),S=r(),C=f(()=>l(S)?.popperRef),w=f(()=>[{width:g(v.width)},v.popperStyle]),T=f(()=>[x.b(),v.popperClass,{[x.m(`plain`)]:!!v.content}]),E=f(()=>v.transition===`${x.namespace.value}-fade-in-linear`),O=()=>{var e;(e=S.value)==null||e.hide()},k=()=>{_(`before-enter`)},A=()=>{_(`before-leave`)},j=()=>{_(`after-enter`)},M=()=>{_(`update:visible`,!1),_(`after-leave`)};return m({popperRef:C,hide:O}),(r,c)=>(a(),e(l(y),p({ref_key:`tooltipRef`,ref:S},r.$attrs,{trigger:r.trigger,"trigger-keys":r.triggerKeys,placement:r.placement,disabled:r.disabled,visible:r.visible,transition:r.transition,"popper-options":r.popperOptions,tabindex:r.tabindex,content:r.content,offset:r.offset,"show-after":r.showAfter,"hide-after":r.hideAfter,"auto-close":r.autoClose,"show-arrow":r.showArrow,"aria-label":r.title,effect:r.effect,enterable:r.enterable,"popper-class":l(T),"popper-style":l(w),teleported:r.teleported,"append-to":r.appendTo,persistent:r.persistent,"gpu-acceleration":l(E),"onUpdate:visible":l(b),onBeforeShow:k,onBeforeHide:A,onShow:j,onHide:M}),{content:s(()=>[r.title?(a(),i(`div`,{key:0,class:u(l(x).e(`title`)),role:`title`},o(r.title),3)):d(`v-if`,!0),n(r.$slots,`default`,{},()=>[t(o(r.content),1)])]),default:s(()=>[r.$slots.reference?n(r.$slots,`reference`,{key:0}):d(`v-if`,!0)]),_:3},16,[`trigger`,`trigger-keys`,`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`,`append-to`,`persistent`,`gpu-acceleration`,`onUpdate:visible`]))}}),[[`__file`,`popover.vue`]]),k=(e,t)=>{let n=(t.arg||t.value)?.popperRef;n&&(n.triggerRef=e)},A=x({mounted(e,t){k(e,t)},updated(e,t){k(e,t)}},`popover`),j=C(O,{directive:A});export{A as n,j as t};