!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={418:(e,r,a)=>{a.d(r,{default:()=>d});var t=a(8213),l=a.n(t),o=a(3838),n=a.n(o),s=a(6689),i=a.n(s);const p=["children","replaceNewLine","className"],d=e=>{let{children:r,replaceNewLine:a=!1,className:t=""}=e,o=n()(e,p);return i().createElement("span",l()({className:t,dangerouslySetInnerHTML:{__html:a?null==r?void 0:r.replace(/\n/g,"<br />"):r}},o))}},8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},6471:e=>{e.exports=require("awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css")},580:e=>{e.exports=require("prop-types")},6689:e=>{e.exports=require("react")}},r={};function a(t){var l=r[t];if(void 0!==l)return l.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,a),o.exports}(()=>{a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r}})(),(()=>{a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}})(),(()=>{a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};return(()=>{a.r(t),a.d(t,{default:()=>d});var e=a(3838),r=a.n(e),l=a(6689),o=a.n(l),n=a(418),s=a(580),i=a.n(s);a(6471);const p=["onChange","value","className","error","ariaLabelledBy","disabled","options","id","name"];class d extends o().Component{constructor(e){super(e),this.state={value:e.value},this.handleChange=this.handleChange.bind(this)}handleChange(e){let r={target:{id:this.props.id,value:e.target.value,type:"radio"}};this.props.onChange(r)}getLabel(e,r,a,t){return a?o().createElement("label",{className:"form-check-label",htmlFor:`radio_${r}_${e.value}`,style:{display:"inline-block"}},o().createElement(n.default,null,e.label)):t?o().createElement("label",{className:"form-check-label",htmlFor:`radio_${r}_${e.value}`},e.label):o().createElement("label",{className:"form-check-label",htmlFor:`radio_${r}_${e.value}`,style:{display:"inline-block"}},o().createElement("h4",{style:{marginTop:"0px"}},e.label),o().createElement(n.default,null,e.description))}render(){let e,a=this.props,{onChange:t,value:l,className:n,error:s,ariaLabelledBy:i,disabled:d,options:c,id:u,name:m}=a,h=(r()(a,p),this.props.hasOwnProperty("error")&&""!=s),b=this.props.hasOwnProperty("inline"),f=this.props.hasOwnProperty("simple"),y=this.props.hasOwnProperty("disabled")&&1==d;return e=b?{paddingLeft:"22px",marginLeft:"20px",float:"left"}:{paddingLeft:"22px"},o().createElement("div",{id:`rl_wrapper_${u}`,"aria-labelledby":i},c.map((r=>{let a=r.value==l;return o().createElement("div",{className:"form-check abc-radio",key:`radio_key_${u}_${r.value}`,style:e},o().createElement("input",{className:"form-check-input",type:"radio",id:`radio_${u}_${r.value}`,value:r.value,checked:a,onChange:this.handleChange,disabled:y,name:m||`radio_${u}`}),this.getLabel(r,u,b,f))})),h&&o().createElement("p",{className:"error-label"},s))}}d.defaultProps={ariaLabelledBy:null},d.propTypes={id:i().string.isRequired}})(),t})()));
//# sourceMappingURL=radio-list.js.map