import{r as e,f as s,h as t,H as i}from"./p-5ab6b26f.js";import{s as o}from"./p-034069ef.js";class l{constructor(s){e(this,s),this.options=[]}onSelect(e){const s=this.options.find(s=>s.value===e.target.value);s&&o(s.handler)}hostData(){return{class:{[s(this)]:!0}}}__stencil_render(){return t("ion-list",null,void 0!==this.header&&t("ion-list-header",null,this.header),(void 0!==this.subHeader||void 0!==this.message)&&t("ion-item",null,t("ion-label",{"text-wrap":!0},void 0!==this.subHeader&&t("h3",null,this.subHeader),void 0!==this.message&&t("p",null,this.message))),t("ion-radio-group",null,this.options.map(e=>t("ion-item",null,t("ion-label",null,e.text),t("ion-radio",{checked:e.checked,value:e.value,disabled:e.disabled})))))}render(){return t(i,this.hostData(),this.__stencil_render())}static get style(){return".sc-ion-select-popover-h ion-list.sc-ion-select-popover{margin-left:0;margin-right:0;margin-top:-1px;margin-bottom:-1px}.sc-ion-select-popover-h ion-label.sc-ion-select-popover, .sc-ion-select-popover-h ion-list-header.sc-ion-select-popover{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"}}export{l as ion_select_popover};