Liferay.Loader.define("segments-web@3.0.77/js/components/inputs/BooleanInput.es",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../utils/constants.es"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("@frontend-taglib-clay$clayui/form"),r=_interopRequireDefault(a("liferay!frontend-js-react-web$classnames")),o=(_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(a("liferay!frontend-js-react-web$react"))),l=a("../../utils/constants.es");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class BooleanInput extends o.default.Component{constructor(...e){super(...e),function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}(this,"_handleChange",(e=>{this.props.onChange({value:e.target.value})}))}render(){const{className:e,disabled:t,propertyLabel:a,value:s}=this.props,i=(0,r.default)("criterion-input","form-control",e);return o.default.createElement(n.ClaySelectWithOption,{"aria-label":"".concat(a,": ").concat(Liferay.Language.get("select-option")),className:i,"data-testid":"options-boolean",disabled:t,onChange:this._handleChange,options:l.BOOLEAN_OPTIONS,value:s})}}var s=BooleanInput;t.default=s}}));
//# sourceMappingURL=BooleanInput.es.js.map