import{r as o,c as e,a as i,h as t}from"./p-wX3eJOEL.js";const r=class{constructor(i){o(this,i),this.ifxDropdownItem=e(this,"ifxDropdownItem",7)}icon;href="";target="_self";hide=!1;error=!1;size="l";ifxDropdownItem;get el(){return i(this)}handleMenuSize(o){this.size=o.detail}handleEventEmission(){this.ifxDropdownItem.emit(this.el.textContent)}render(){const o=null!=this.href&&""!==this.href,e={class:`dropdown-item ${"s"===this.size?"small":""} ${this.hide?"hide":""} ${this.error?"error":""}`,onClick:()=>this.handleEventEmission(),role:"menuitem"};return o||(e.tabIndex=0),t("a",{key:"97d71de191bc99ad5419c53fc5c02c4f0b72ebe3",...e,...o?{href:this.href,target:this.target,error:this.error}:{}},this.icon&&t("ifx-icon",{key:"0fe37b2bb72b04af588f6a767717c2e3a03dd056",class:"icon",icon:this.icon}),t("span",{key:"f23fddda13075d96e982b6c03f43498c74d23a69"},t("slot",{key:"487e72e6372de61439a444e0c9c460555344eaf7"})))}};r.style=".dropdown-item{text-decoration:none;color:#1D1D1D;display:flex;align-items:center;padding:8px 16px;gap:8px;font-family:var(--ifx-font-family)}.dropdown-item:focus{outline:none;box-shadow:0 0 0 2px #FFFFFF, 0 0 0 4px #0A8276}.dropdown-item.hide{display:none}.dropdown-item span{color:#1D1D1D;font-size:16px;font-style:normal;font-weight:400;line-height:24px;}.dropdown-item.small span{font-size:14px}.dropdown-item:hover{cursor:pointer;background-color:#EEEDED}.dropdown-item:active{background-color:#BFBBBB}.dropdown-item.error{color:#CD002F}.dropdown-item.error span{color:#CD002F}.icon{margin-right:4px}";export{r as ifx_dropdown_item}