import{p as e,H as o,c as t,h as i,t as n}from"./p-CHfEnK-2.js";import{d as r}from"./p-B5hDbbCP.js";const s=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ifxDropdownItem=t(this,"ifxDropdownItem",7)}icon;href="";target="_self";hide=!1;error=!1;size="l";ifxDropdownItem;get el(){return this}handleMenuSize(e){this.size=e.detail}handleEventEmission(){this.ifxDropdownItem.emit(this.el.textContent)}render(){const e=null!=this.href&&""!==this.href,o={class:`dropdown-item ${"s"===this.size?"small":""} ${this.hide?"hide":""} ${this.error?"error":""}`,onClick:()=>this.handleEventEmission(),role:"menuitem"};return e||(o.tabIndex=0),i("a",{key:"97d71de191bc99ad5419c53fc5c02c4f0b72ebe3",...o,...e?{href:this.href,target:this.target,error:this.error}:{}},this.icon&&i("ifx-icon",{key:"0fe37b2bb72b04af588f6a767717c2e3a03dd056",class:"icon",icon:this.icon}),i("span",{key:"f23fddda13075d96e982b6c03f43498c74d23a69"},i("slot",{key:"487e72e6372de61439a444e0c9c460555344eaf7"})))}static get style(){return".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}"}},[769,"ifx-dropdown-item",{icon:[1],href:[1],target:[1],hide:[4],error:[4],size:[32]},[[16,"menuSize","handleMenuSize"]]]),d=s,c=function(){"undefined"!=typeof customElements&&["ifx-dropdown-item","ifx-icon"].forEach((e=>{switch(e){case"ifx-dropdown-item":customElements.get(n(e))||customElements.define(n(e),s);break;case"ifx-icon":customElements.get(n(e))||r()}}))};export{d as IfxDropdownItem,c as defineCustomElement}