import{_ as h,R as _,G as u,S as v,c as o,b as a,e as s,W as l,D as w,E as f,t as m,o as e}from"./Bgmy51Qv.js";const P={name:"InlinePopOver",components:{},directives:{outsideClick:_},props:{arrow:{type:Boolean,default:!1},title:{type:String,default:""}},computed:{hasFooterSlot(){return!!this.$slots.footer}},data(){return{showPopover:!1}},methods:{togglePop(){this.showPopover=!this.showPopover,this.showPopover&&this.$emit("open")},closePop(){this.showPopover=!1}},mounted(){}},k={class:"inline-pop-wrapper"},g={key:0,class:"inline-pop-over"},b={key:0,class:"pop-header ptb-10 plr-15"},y={class:"pop-content sb sb-2"},S={key:1,class:"pop-footer"};function B(r,c,i,C,n,t){const p=v("outside-click");return u((e(),o("div",k,[a("button",{onClick:c[0]||(c[0]=f((...d)=>t.togglePop&&t.togglePop(...d),["prevent"]))},[l(r.$slots,"button"),i.arrow?(e(),o("i",{key:0,class:w(["icon black ignore-click",[{"arrow-up":n.showPopover},{"arrow-down":!n.showPopover}]])},null,2)):s("",!0)]),n.showPopover?(e(),o("div",g,[i.title?(e(),o("h4",b,m(i.title),1)):s("",!0),a("div",y,[l(r.$slots,"content")]),t.hasFooterSlot?(e(),o("div",S,[l(r.$slots,"footer")])):s("",!0)])):s("",!0)])),[[p,t.closePop]])}const E=h(P,[["render",B]]);export{E as _};
