Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/thunks/updateFragmentConfiguration",["module","exports","require","../actions/updateFragmentEntryLinkConfiguration","../config/constants/freemarkerFragmentEntryProcessor","../services/FragmentService"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function updateFragmentConfiguration({configurationValues:e,fragmentEntryLink:t}){const{editableValues:r,fragmentEntryLinkId:i}=t,u=_objectSpread(_objectSpread({},r),{},{[a.FREEMARKER_FRAGMENT_ENTRY_PROCESSOR]:e});return(e,t)=>{const{languageId:r,segmentsExperienceId:a}=t();return o.default.updateConfigurationValues({editableValues:u,fragmentEntryLinkId:i,languageId:r,onNetworkStatus:e,segmentsExperienceId:a}).then((({fragmentEntryLink:t,layoutData:r,pageContents:a})=>{e((0,n.default)({fragmentEntryLink:t,fragmentEntryLinkId:i,layoutData:r,pageContents:a}))}))}};var n=_interopRequireDefault(r("../actions/updateFragmentEntryLinkConfiguration")),a=r("../config/constants/freemarkerFragmentEntryProcessor"),o=_interopRequireDefault(r("../services/FragmentService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}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=updateFragmentConfiguration.js.map