import{p as e,H as t,c as s,h as i,t as a}from"./p-Bpcl2TqF.js";import{d as n}from"./p-DRrF7tWE.js";import{d as c}from"./p-KvSIaMXJ.js";import{d as r}from"./p-BWahj-vy.js";const l=()=>`.list-entry{display:flex;align-items:center;margin-top:8px;align-self:stretch}`;const h=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.ifxListEntryChange=s(this,"ifxListEntryChange",7)}get host(){return this}value;label;type;ifxListEntryChange;valueChanged(e){if(e){this.host.setAttribute("value","true")}else{this.host.removeAttribute("value")}}handleFilterEntryChange(e){this.value=e.detail;this.ifxListEntryChange.emit({label:this.label,value:this.value,type:this.type})}render(){return i("div",{key:"a0d358cc3ceb8abcf9690041c1e7ee4ea3c04c43",class:"wrapper"},this.type==="checkbox"?i("div",{class:"list-entry"},i("ifx-checkbox",{size:"s",checked:this.value},this.label)):i("div",{class:"list-entry"},i("ifx-radio-button",{size:"s",checked:this.value},this.label)))}static get watchers(){return{value:[{valueChanged:0}]}}static get style(){return l()}},[513,"ifx-list-entry",{value:[1028],label:[1],type:[1]},[[0,"ifxChange","handleFilterEntryChange"]],{value:[{valueChanged:0}]}]);function o(){if(typeof customElements==="undefined"){return}const e=["ifx-list-entry","ifx-checkbox","ifx-icon","ifx-radio-button"];e.forEach((e=>{switch(e){case"ifx-list-entry":if(!customElements.get(a(e))){customElements.define(a(e),h)}break;case"ifx-checkbox":if(!customElements.get(a(e))){n()}break;case"ifx-icon":if(!customElements.get(a(e))){c()}break;case"ifx-radio-button":if(!customElements.get(a(e))){r()}break}}))}const f=h;const u=o;export{f as IfxListEntry,u as defineCustomElement};
//# sourceMappingURL=ifx-list-entry.js.map