Liferay.Loader.define("@liferay/object-web@1.0.181/js/utils/fieldSettings",["module","exports","require"],(function(e,t,r){window;{function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeFieldSettings=function normalizeFieldSettings(e){const t={};return null==e||e.forEach((({name:e,value:r})=>{t[e]=r})),t},t.removeFieldSettings=function removeFieldSettings(e,t){return t.objectFieldSettings.filter((t=>!e.includes(t.name)))},t.updateFieldSettings=function updateFieldSettings(e=[],{name:t,value:r}){let n=!0;const i=e.map((e=>e.name===t?(n=!1,_objectSpread(_objectSpread({},e),{},{value:r})):e));return n?[...i,{name:t,value:r}]:i}}}));
//# sourceMappingURL=fieldSettings.js.map