Liferay.Loader.define("@liferay/object-js-components-web@1.0.58/components/Select",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$react","./FieldBase"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Select=function Select(e){let{className:t,disabled:l,error:o,feedbackMessage:i,id:d,label:s,onChange:u,options:c,required:f,tooltip:b,value:p}=e,y=function _objectWithoutProperties(e,t){if(null==e)return{};var l,r,a=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var l,r,a={},n=Object.keys(e);for(r=0;r<n.length;r++)l=n[r],t.indexOf(l)>=0||(a[l]=e[l]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)l=n[r],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}(e,["className","disabled","error","feedbackMessage","id","label","onChange","options","required","tooltip","value"]);return a.default.createElement(n.FieldBase,{className:t,disabled:l,errorMessage:o,helpMessage:i,id:d,label:s,required:f,tooltip:b},a.default.createElement(r.ClaySelect,_extends({},y,{disabled:l,id:d,onChange:u}),a.default.createElement(r.ClaySelect.Option,{disabled:!0,label:Liferay.Language.get("choose-an-option"),selected:!p}),null==c?void 0:c.map((({key:e,label:t,name:l},n)=>{var o,i,d;return a.default.createElement(r.ClaySelect.Option,{key:n,label:null!=t?t:l,selected:void 0!==p&&(null!==(o=null!==(i=p===e)&&void 0!==i?i:p===l)&&void 0!==o?o:p===t),value:null!==(d=null!=e?e:l)&&void 0!==d?d:t})}))))};var r=l("@frontend-taglib-clay$clayui/form"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(l("liferay!frontend-js-react-web$react")),n=l("./FieldBase");function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(this,arguments)}}}));
//# sourceMappingURL=Select.js.map