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