Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/utils/updateConfigurationValue",["module","exports","require","../config/constants/freemarkerFragmentEntryProcessor","../config/index","../thunks/updateFragmentConfiguration"],(function(e,t,n){var r;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({configuration:e,dispatch:t,fragmentEntryLink:n,languageId:r,name:u,value:c}){var f,d,s,g;const p=null!==(f=null===(d=n.editableValues)||void 0===d?void 0:d[o.FREEMARKER_FRAGMENT_ENTRY_PROCESSOR])&&void 0!==f?f:{},b=null!==(s=null==e||null===(g=e.fieldSets)||void 0===g?void 0:g.some((e=>e.fields.some((e=>e.name===u&&e.localizable)))))&&void 0!==s&&s,y=p[u],O=l(l({},p),{},{[u]:b?l(l({},"object"==typeof y?y:{[a.config.defaultLanguageId]:y}),{},{[r]:c}):c});t((0,i.default)({configurationValues:O,fragmentEntryLink:n,languageId:r}))};var o=n("../config/constants/freemarkerFragmentEntryProcessor"),a=n("../config/index"),i=(r=n("../thunks/updateFragmentConfiguration"))&&r.__esModule?r:{default:r};function u(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(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