Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.152/FieldBase/withLocale.es",["module","exports","require","frontend-js-metal-web$metal-state"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function withLocale(e){class WithLocale extends e{prepareStateForRender(e){const{editingLanguageId:t}=this.context.store,r=[];return Object.keys(this.localizedValue).forEach((e=>{e!==t&&r.push({name:this.name.replace(t,e),value:this.localizedValue[e]})})),_objectSpread(_objectSpread({},super.prepareStateForRender(e)),{},{_localizedValue:r})}}return WithLocale.STATE={_localizedValue:n.Config.arrayOf(n.Config.shapeOf({name:n.Config.string(),value:n.Config.any()})).value([]),localizedValue:n.Config.object().value({})},WithLocale};var n=r("frontend-js-metal-web$metal-state");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}}}));
//# sourceMappingURL=withLocale.es.js.map