Liferay.Loader.define("@liferay/commerce-product-definitions-web@7.0.105/js/ProductOptionRadio",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$react","./Asterisk","./utils"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),i=_interopRequireWildcard(r("liferay!frontend-js-react-web$react")),l=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("./Asterisk")),n=r("./utils");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}var _default=({id:e,label:t,name:r,onChange:u,productOptionValues:o,required:d})=>{const c=(0,n.getInitialOption)(o),[f,p]=(0,i.useState)(c);return i.default.createElement(a.default.Group,null,i.default.createElement("label",{htmlFor:e},t,i.default.createElement(l.default,{required:d})),i.default.createElement(a.ClayRadioGroup,{id:e,name:r,onChange:e=>{const t=o.find((t=>t.value===e));p(t),u(t)},value:f.value},o.map((({key:e,label:t,value:r})=>i.default.createElement(a.ClayRadio,{key:e,label:t,value:r})))))};t.default=_default}}));
//# sourceMappingURL=ProductOptionRadio.js.map