import{r as t,c as i,h as s,g as e}from"./p-52e3bb32.js";import{r as c}from"./p-ffe5c0e8.js";import{d as r}from"./p-430607cb.js";import"./p-bdd811bc.js";const d=class{constructor(s){t(this,s),this.afOnClickOutside=i(this,"afOnClickOutside",7),this.afOnClickInside=i(this,"afOnClickInside",7),this.afDataIdentifier=c("data-digi-util-detect-click-outside")}componentWillLoad(){this.$el.setAttribute(this.afDataIdentifier,"")}clickHandler(t){r(t.target,`[${this.afDataIdentifier}]`)?this.afOnClickOutside.emit(t):this.afOnClickInside.emit(t)}render(){return s("slot",{key:"ce56a7fae9872b5f655d72c65a8926b19e1bbdf1"})}get $el(){return e(this)}};export{d as digi_util_detect_click_outside}