Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/utils/updateConfigurationValue",["module","exports","require","../config/constants/freemarkerFragmentEntryProcessor","../config/index","../thunks/updateFragmentConfiguration"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function updateConfigurationValue({configuration:e,dispatch:t,fragmentEntryLink:n,languageId:i,name:u,value:c}){var f,l,d,p;const s=null!==(f=null===(l=n.editableValues)||void 0===l?void 0:l[r.FREEMARKER_FRAGMENT_ENTRY_PROCESSOR])&&void 0!==f?f:{},g=null!==(d=null==e||null===(p=e.fieldSets)||void 0===p?void 0:p.some((e=>e.fields.some((e=>e.name===u&&e.localizable)))))&&void 0!==d&&d,b=s[u],y=_objectSpread(_objectSpread({},s),{},{[u]:g?_objectSpread(_objectSpread({},"object"==typeof b?b:{[o.config.defaultLanguageId]:b}),{},{[i]:c}):c});t((0,a.default)({configurationValues:y,fragmentEntryLink:n,languageId:i}))};var r=n("../config/constants/freemarkerFragmentEntryProcessor"),o=n("../config/index"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../thunks/updateFragmentConfiguration"));function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}}));
//# sourceMappingURL=updateConfigurationValue.js.map