Liferay.Loader.define("data-engine-js-components-web@1.0.55/js/utils/setDataRecord.es",["module","exports","require","../utils/extractDataRecordValueKey.es"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({locale:e,localizable:t,localizedValue:r={[e]:""},localizedValueEdited:n,name:i,transient:c,value:a="",visible:u},s,f,d){const b=(0,o.default)(i);if(c)return void(s[b]="");let O=a;"string"!=typeof a&&(O=JSON.stringify(a));u||(O="");if(t){const e=!!(null==r?void 0:r[f])||n&&n[f];let t;Object.keys(r).filter((e=>!(null==n?void 0:n[e])&&(""===r[e]||"[]"===r[e]||"{}"===r[e]))).forEach((e=>{delete r[e]})),t=r?Object.keys(r):[],t.includes(f)||t.push(f),s[b]=l({},r),e?s[b]=l(l({},r),{},{[f]:O}):d&&(s[b]=l(l({},r),{},{[f]:a}))}else s[b]=O};var o=(n=r("../utils/extractDataRecordValueKey.es"))&&n.__esModule?n:{default:n};function i(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=setDataRecord.es.js.map