import{r as e,c as s,h as t,g as i}from"./p-52e3bb32.js";const r=class{constructor(t){e(this,t),this.afOnChange=s(this,"afOnChange",7),this._observer=null}componentWillLoad(){this.initObserver()}disconnectedCallback(){this.removeObserver()}initObserver(){this._observer=new ResizeObserver((([e])=>{this.afOnChange.emit(e)})),this._observer.observe(this.hostElement)}removeObserver(){this._observer&&this._observer.disconnect()}changeHandler(e){this.afOnChange.emit(e)}render(){return t("slot",{key:"1428211db620bf886a98eb908958a7d7ffb0eac1"})}get hostElement(){return i(this)}};r.style=".sc-digi-util-resize-observer-h{display:block}";export{r as digi_util_resize_observer}