Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/services/LayoutService",["module","exports","require","../config/index","./serviceFetch"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("../config/index"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(o("./serviceFetch"));const layoutServiceFetch=(e,t,o)=>(0,i.default)(e,t,o,{requestGenerateDraft:!0});var a={addItem:({itemType:e,onNetworkStatus:t,parentItemId:o,position:i,segmentsExperienceId:a})=>layoutServiceFetch(n.config.addItemURL,{body:{itemType:e,parentItemId:o,position:i,segmentsExperienceId:a}},t),changeMasterLayout:({masterLayoutPlid:e,onNetworkStatus:t})=>layoutServiceFetch(n.config.changeMasterLayoutURL,{body:{masterLayoutPlid:e}},t),changeStyleBookEntry:({onNetworkStatus:e,styleBookEntryId:t})=>layoutServiceFetch(n.config.changeStyleBookEntryURL,{body:{styleBookEntryId:t}},e),createLayoutPageTemplateEntry:({segmentsExperienceId:e,templateSetDescription:t,templateSetId:o,templateSetName:i})=>layoutServiceFetch(n.config.createLayoutPageTemplateEntryURL,{body:{layoutPageTemplateCollectionDescription:t,layoutPageTemplateCollectionId:o,layoutPageTemplateCollectionName:i,segmentsExperienceId:e}},(()=>{})),getLayoutFriendlyURL:e=>layoutServiceFetch(n.config.getLayoutFriendlyURL,{body:e},(()=>{})),getLayoutPageTemplateCollections:()=>layoutServiceFetch(n.config.getLayoutPageTemplateCollectionsURL,{},(()=>{})),markItemForDeletion:({itemId:e,onNetworkStatus:t,portletIds:o=[],segmentsExperienceId:i})=>layoutServiceFetch(n.config.markItemForDeletionURL,{body:{itemId:e,portletIds:o,segmentsExperienceId:i}},t),moveItem:({itemId:e,onNetworkStatus:t,parentItemId:o,position:i,segmentsExperienceId:a})=>layoutServiceFetch(n.config.moveItemURL,{body:{itemId:e,parentItemId:o,position:i,segmentsExperienceId:a}},t),restoreCollectionDisplayConfig:({filterFragmentEntryLinks:e,itemConfig:t,itemId:o,onNetworkStatus:i,segmentsExperienceId:a})=>layoutServiceFetch(n.config.restoreCollectionDisplayConfigURL,{body:{filterFragmentEntryLinks:JSON.stringify(e),itemConfig:JSON.stringify(t),itemId:o,segmentsExperienceId:a}},i),unmarkItemsForDeletion:({itemIds:e,onNetworkStatus:t,segmentsExperienceId:o})=>layoutServiceFetch(n.config.unmarkItemsForDeletionURL,{body:{itemIds:JSON.stringify(e),segmentsExperienceId:o}},t),updateCollectionDisplayConfig:({itemConfig:e,itemId:t,languageId:o,onNetworkStatus:i,segmentsExperienceId:a})=>layoutServiceFetch(n.config.updateCollectionDisplayConfigURL,{body:{itemConfig:JSON.stringify(e),itemId:t,languageId:o,segmentsExperienceId:a}},i),updateItemConfig:({itemConfig:e,itemId:t,onNetworkStatus:o,segmentsExperienceId:i})=>layoutServiceFetch(n.config.updateItemConfigURL,{body:{itemConfig:JSON.stringify(e),itemId:t,segmentsExperienceId:i}},o),updateLayoutData:({layoutData:e,onNetworkStatus:t,segmentsExperienceId:o})=>layoutServiceFetch(n.config.updateLayoutPageTemplateDataURL,{body:{data:JSON.stringify(e),segmentsExperienceId:o}},t),updateRowColumns:({itemId:e,numberOfColumns:t,onNetworkStatus:o,segmentsExperienceId:i})=>layoutServiceFetch(n.config.updateRowColumnsURL,{body:{itemId:e,numberOfColumns:t,segmentsExperienceId:i}},o)};t.default=a}}));
//# sourceMappingURL=LayoutService.js.map