Liferay.Loader.define("@liferay/object-web@1.0.181/js/utils/defaultValues",["module","exports","require","./fieldSettings"],(function(e,t,l){window;Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultValueFieldSettings=function getDefaultValueFieldSettings(e){const t=e.objectFieldSettings.find((e=>"defaultValueType"===e.name));let l,a,u;t&&(l=t.value);l&&(u=e.objectFieldSettings.find((e=>"defaultValue"===e.name)),u&&(a=u.value));return{defaultValue:a,defaultValueType:l}},t.getUpdatedDefaultValueFieldSettings=function getUpdatedDefaultValueFieldSettings(e,t,l){return(0,a.removeFieldSettings)(["defaultValueType","defaultValue"],e).concat([{name:"defaultValueType",value:l},{name:"defaultValue",value:t}])},t.getUpdatedDefaultValueType=function getUpdatedDefaultValueType(e,t){return[...(0,a.removeFieldSettings)(["defaultValueType","defaultValue"],e),{name:"defaultValueType",value:t}]};var a=l("./fieldSettings")}));
//# sourceMappingURL=defaultValues.js.map