import{$ as e,B as t,E as n,M as r,S as i,St as a,T as o,X as s,cn as c,dt as l,k as u,kt as d,nn as f,w as p}from"./_plugin-vue_export-helper-9JxOV_6y.js";import{Qt as m,X as h,n as g,y as _}from"./style-uQ45SeWa.js";import{D as v,M as y,N as b,ln as x,un as S,xn as C}from"./GxPagination-CS4FI5Lo.js";import{i as w}from"./dropdown-7yaPbRJP.js";var T=_({trigger:y.trigger,triggerKeys:y.triggerKeys,placement:w.placement,disabled:y.disabled,visible:b.visible,transition:b.transition,popperOptions:w.popperOptions,tabindex:w.tabindex,content:b.content,popperStyle:b.popperStyle,popperClass:b.popperClass,enterable:{...b.enterable,default:!0},effect:{...b.effect,default:`light`},teleported:b.teleported,appendTo:b.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=>h(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},D=`onUpdate:visible`,O=C(r({...r({name:`ElPopover`}),props:T,emits:E,setup(r,{expose:h,emit:_}){let y=r,b=i(()=>y[D]),x=m(`popover`),S=a(),C=i(()=>d(S)?.popperRef),w=i(()=>[{width:g(y.width)},y.popperStyle]),T=i(()=>[x.b(),y.popperClass,{[x.m(`plain`)]:!!y.content}]),E=i(()=>y.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 h({popperRef:C,hide:O}),(r,i)=>(s(),p(d(v),t({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":d(T),"popper-style":d(w),teleported:r.teleported,"append-to":r.appendTo,persistent:r.persistent,"gpu-acceleration":d(E),"onUpdate:visible":d(b),onBeforeShow:k,onBeforeHide:A,onShow:j,onHide:M}),{content:l(()=>[r.title?(s(),n(`div`,{key:0,class:f(d(x).e(`title`)),role:`title`},c(r.title),3)):o(`v-if`,!0),e(r.$slots,`default`,{},()=>[u(c(r.content),1)])]),default:l(()=>[r.$slots.reference?e(r.$slots,`reference`,{key:0}):o(`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=S({mounted(e,t){k(e,t)},updated(e,t){k(e,t)}},`popover`),j=x(O,{directive:A});export{A as n,j as t};