Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.145/Validation/DDMSelect",["module","exports","require","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a("@frontend-taglib-clay$clayui/drop-down"),n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),r=_interopRequireDefault(a("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=function DDMSelect({className:e,disabled:t,label:a,name:o,onChange:d,options:i,value:c}){let u;const f=[];i.forEach((({label:e,value:t})=>{f.push({label:e,onClick:e=>null==d?void 0:d(e),value:t}),t===c&&(u=e)}));const s=r.default.createElement("div",{className:"form-builder-select-field input-group-container"},r.default.createElement("div",{className:"form-control results-chosen select-field-trigger"},r.default.createElement("div",{className:"option-selected"},u),r.default.createElement("input",{name:o,type:"hidden",value:c}),r.default.createElement("a",{className:"select-arrow-down-container"},r.default.createElement(n.default,{symbol:"caret-double"})))),m=t?s:r.default.createElement(l.ClayDropDownWithItems,{items:f,menuElementAttrs:{className:"ddm-select-dropdown"},trigger:s});return r.default.createElement("label",{className:e},a,m)};t.default=o}}));
//# sourceMappingURL=DDMSelect.js.map