import{r as i,c as o,h as t,a as e}from"./p-DtIEDtZ8.js";const n=":root{--ifx-font-family:\"Source Sans 3\", 'Arial, sans-serif'}.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}.icon{margin-right:4px}";const s=class{constructor(t){i(this,t);this.ifxDropdownItem=o(this,"ifxDropdownItem",7);this.href="";this.target="_self";this.hide=false;this.size="l"}handleMenuSize(i){this.size=i.detail}handleEventEmission(){this.ifxDropdownItem.emit(this.el.textContent)}render(){const i=this.href!==undefined&&this.href!==null&&this.href!=="";const o={class:`dropdown-item ${this.size==="s"?"small":""} ${this.hide?"hide":""}`,onClick:()=>this.handleEventEmission(),role:"menuitem"};if(!i)o.tabIndex=0;return t("a",Object.assign({key:"0fa61b25ba8f7f8dec6828def32fca24c753970b"},o,i?{href:this.href,target:this.target}:{}),this.icon&&t("ifx-icon",{key:"7676baff54e17a8ac7a3de6a47fb00e773b80718",class:"icon",icon:this.icon}),t("span",{key:"a2b3213b15b3e0d0b40c12cf7863158f5233c400"},t("slot",{key:"b0c64b7c89c088900c65736450ebb366fcccad3c"})))}get el(){return e(this)}};s.style=n;export{s as ifx_dropdown_item};
//# sourceMappingURL=p-240a4cb3.entry.js.map