Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ObjectField/UniqueValues",["module","exports","require","@frontend-taglib-clay$clayui/form","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../../utils/fieldSettings","./ObjectFieldFormBase.scss"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueValues=function UniqueValues({disabled:e,objectField:t,setValues:l}){var o;const s=null===(o=t.objectFieldSettings)||void 0===o?void 0:o.some((e=>"uniqueValues"===e.name));return n.default.createElement(n.default.Fragment,null,n.default.createElement(i.default.Group,null,n.default.createElement(a.Toggle,{disabled:e,label:Liferay.Language.get("accept-unique-values-only"),name:"enableUniqueValues",onToggle:e=>{l(e?{objectFieldSettings:(0,u.updateFieldSettings)(t.objectFieldSettings,{name:"uniqueValues",value:!0})}:{objectFieldSettings:(0,u.removeFieldSettings)(["uniqueValues"],t)})},toggled:s,tooltip:Liferay.Language.get("users-will-only-be-able-to-add-unique-values-for-this-field")})))};var i=_interopRequireDefault(l("@frontend-taglib-clay$clayui/form")),a=l("@liferay/object-js-components-web"),n=_interopRequireDefault(l("liferay!frontend-js-react-web$react")),u=l("../../utils/fieldSettings");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}l("./ObjectFieldFormBase.scss")}}));
//# sourceMappingURL=UniqueValues.js.map