Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/data_renderers/ListRenderer",["module","exports","require","liferay!frontend-js-react-web$prop-types","../utils/index"],(function(e,t,a){var l;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(l=a("liferay!frontend-js-react-web$prop-types"))&&l.__esModule?l:{default:l},n=a("../utils/index");function i(e){return e.value&&0!==e.value.length?e.options.singleItemLabel&&1===e.value.length?e.options.singleItemLabel:e.options.multipleItemsLabel&&e.value.length>1?e.options.multipleItemsLabel:e.value.map((t=>(0,n.getValueFromItem)(t,e.options.labelKey))).join(e.options.separator||", "):null}i.propTypes={options:r.default.shape({labelKey:r.default.oneOfType([r.default.array,r.default.string]).isRequired,multipleItemsLabel:r.default.string,separator:r.default.string,singleItemLabel:r.default.string}),value:r.default.array};var o=i;t.default=o}}));
//# sourceMappingURL=ListRenderer.js.map