Liferay.Loader.define("@liferay/object-js-components-web@1.0.58/components/BaseEntryFields/PicklistEntryBaseField",["module","exports","require","liferay!frontend-js-react-web$react","../../utils/string","../Select/SingleSelect"],(function(e,l,t){window;Object.defineProperty(l,"__esModule",{value:!0}),l.PicklistEntryBaseField=function PicklistEntryBaseField({creationLanguageId:e,error:l,label:t,onChange:a,picklistItems:o,placeholder:c,required:d,selectedPicklistItemKey:u}){var s,f;return n.default.createElement(n.default.Fragment,null,o.length?n.default.createElement(i.SingleSelect,{error:l,label:t,onChange:e=>{a(o.find((l=>l.key===e.value)))},options:o.map((l=>({label:e?(0,r.getLocalizableLabel)(e,l.name_i18n):l.name,value:l.key}))),placeholder:c,required:d,value:null!==(s=null===(f=o.find((e=>e.key===u)))||void 0===f?void 0:f.name)&&void 0!==s?s:""}):null)};var n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react")),r=t("../../utils/string"),i=t("../Select/SingleSelect")}));
//# sourceMappingURL=PicklistEntryBaseField.js.map