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