Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/services/FragmentService",["module","exports","require","../config/index","./serviceFetch"],(function(e,t,n){var r;window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("../config/index"),d=(r=n("./serviceFetch"))&&r.__esModule?r:{default:r};var i={addComment:({body:e,fragmentEntryLinkId:t,onNetworkStatus:n,parentCommentId:r=0})=>(0,d.default)(a.config.addFragmentEntryLinkCommentURL,{body:{body:e,fragmentEntryLinkId:t,parentCommentId:r}},n),addFragmentComposition:({description:e,fragmentCollectionId:t,itemId:n,name:r,onNetworkStatus:i,previewImageURL:o,saveInlineContent:g,saveMappingConfiguration:s,segmentsExperienceId:m})=>(0,d.default)(a.config.addFragmentCompositionURL,{body:{description:e,fragmentCollectionId:t,itemId:n,name:r,previewImageURL:o,saveInlineContent:g,saveMappingConfiguration:s,segmentsExperienceId:m}},i,{requestGenerateDraft:!0}),addFragmentEntryLink:({fragmentEntryKey:e,groupId:t,onNetworkStatus:n,parentItemId:r,position:i,segmentsExperienceId:o})=>(0,d.default)(a.config.addFragmentEntryLinkURL,{body:{fragmentEntryKey:e,groupId:t,parentItemId:r,position:i,segmentsExperienceId:o}},n,{requestGenerateDraft:!0}),addFragmentEntryLinks:({fragmentEntryKey:e,groupId:t,onNetworkStatus:n,parentItemId:r,position:i,segmentsExperienceId:o})=>(0,d.default)(a.config.addFragmentEntryLinksURL,{body:{fragmentEntryKey:e,groupId:t,parentItemId:r,position:i,segmentsExperienceId:o}},n,{requestGenerateDraft:!0}),deleteComment:({commentId:e,onNetworkStatus:t})=>(0,d.default)(a.config.deleteFragmentEntryLinkCommentURL,{body:{commentId:e}},t),duplicateItem:({itemId:e,onNetworkStatus:t,segmentsExperienceId:n})=>(0,d.default)(a.config.duplicateItemURL,{body:{itemId:e,segmentsExperienceId:n}},t,{requestGenerateDraft:!0}),editComment:({body:e,commentId:t,onNetworkStatus:n,resolved:r})=>(0,d.default)(a.config.editFragmentEntryLinkCommentURL,{body:{body:e,commentId:t,resolved:r}},n),renderFragmentEntryLinkContent:({fragmentEntryLinkId:e,itemClassName:t,itemClassPK:n,languageId:r,onNetworkStatus:i,segmentsExperienceId:o})=>(0,d.default)(a.config.renderFragmentEntryURL,{body:{fragmentEntryLinkId:e,itemClassName:t,itemClassPK:n,languageId:r,segmentsExperienceId:o}},i),toggleFragmentHighlighted:({fragmentEntryKey:e,groupId:t="0",highlighted:n,onNetworkStatus:r})=>(0,d.default)(a.config.updateFragmentsHighlightedConfigurationURL,{body:{fragmentEntryKey:e,groupId:t,highlighted:n}},r,{requestGenerateDraft:!0}),updateConfigurationValues:({editableValues:e,fragmentEntryLinkId:t,languageId:n,onNetworkStatus:r,segmentsExperienceId:i})=>(0,d.default)(a.config.updateConfigurationValuesURL,{body:{editableValues:JSON.stringify(e),fragmentEntryLinkId:t,languageId:n,segmentsExperienceId:i}},r,{requestGenerateDraft:!0}),updateEditableValues:({editableValues:e,fragmentEntryLinkId:t,languageId:n,onNetworkStatus:r,segmentsExperienceId:i})=>(0,d.default)(a.config.editFragmentEntryLinkURL,{body:{editableValues:JSON.stringify(e),fragmentEntryLinkId:t,languageId:n,segmentsExperienceId:i}},r,{requestGenerateDraft:!0}),updateSetsOrder:({fragmentCollectionKeys:e,onNetworkStatus:t,portletCategoryKeys:n})=>(0,d.default)(a.config.updateFragmentPortletSetsSortURL,{body:{fragmentCollectionKeys:JSON.stringify(e)||null,portletCategoryKeys:JSON.stringify(n)||null}},t,{requestGenerateDraft:!0})};t.default=i}));
//# sourceMappingURL=FragmentService.js.map