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