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