import{r as t,e as s,h as i,g as e}from"./p-15c07fa9.js";import{ElementIDUtils as h}from"@sankhyalabs/core";import{F as o}from"./p-ff1990ad.js";const a=class{constructor(i){t(this,i),this.valueChanged=s(this,"valueChanged",7),this.value=void 0,this.config=void 0,this.errorMessage=void 0}ezChangeListener(t){var s;this.errorMessage=void 0,this.value=null===(s=t.detail)||void 0===s?void 0:s.value,this.valueChanged.emit(this.value)}async setFocus(){this._comboElement.setFocus()}async clearValue(){this.value=this.config.value,this._comboElement&&(this._comboElement.value=this.config.value)}componentDidLoad(){this._element&&h.addIDInfo(this._element,"filterContentEditor")}render(){if(this.config&&this.config.type===o.MULTI_SELECT)return i("ez-tooltip",{active:!1===this.config.enabled,message:this.config.disabledMessage,type:"warning"},i("ez-combo-box",{id:this.config.id,ref:t=>this._comboElement=t,label:this.config.label,value:this.config.value,options:this.config.props.options,enabled:this.config.enabled,errorMessage:this.errorMessage,onEzVisibilityChange:t=>{t.stopPropagation()}}))}get _element(){return e(this)}};export{a as snk_filter_multi_select}