Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.156/page_editor/app/services/CollectionService",["module","exports","require","../config/index","./serviceFetch"],(function(e,t,l){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l("../config/index"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(l("./serviceFetch"));var n={getCollectionConfiguration:e=>(0,o.default)(i.config.getCollectionConfigurationURL,{body:{collectionKey:e.key}}),getCollectionEditConfigurationUrl:({collectionKey:e,itemId:t,segmentsExperienceId:l})=>(0,o.default)(i.config.getEditCollectionConfigurationURL,{body:{collectionKey:e,itemId:t,segmentsExperienceId:l}}),getCollectionField:({activePage:e,classNameId:t,classPK:l,collection:n,displayAllItems:a,displayAllPages:c,languageId:s,listItemStyle:g,listStyle:d,numberOfItems:r,numberOfItemsPerPage:u,numberOfPages:f,onNetworkStatus:y,paginationType:m,showAllItems:p,templateKey:C})=>(0,o.default)(i.config.getCollectionFieldURL,{body:{activePage:e,classNameId:t,classPK:l,displayAllItems:a,displayAllPages:c,languageId:s,layoutObjectReference:JSON.stringify(n),listItemStyle:g,listStyle:d,numberOfItems:r,numberOfItemsPerPage:u,numberOfPages:f,paginationType:m,showAllItems:p,templateKey:C}},y),getCollectionFilters:()=>(0,o.default)(i.config.getCollectionFiltersURL,{},(()=>{})),getCollectionItemCount:({classNameId:e,classPK:t,collection:l,onNetworkStatus:n})=>(0,o.default)(i.config.getCollectionItemCountURL,{body:{classNameId:e,classPK:t,layoutObjectReference:JSON.stringify(l)}},n),getCollectionMappingFields:({itemSubtype:e,itemType:t,onNetworkStatus:l})=>(0,o.default)(i.config.getCollectionMappingFieldsURL,{body:{itemSubtype:e,itemType:t}},l),getCollectionSupportedFilters:e=>(0,o.default)(i.config.getCollectionSupportedFiltersURL,{body:{collections:JSON.stringify(e)}},(()=>{})),getCollectionVariations:e=>(0,o.default)(i.config.getCollectionVariationsURL,{body:{classPK:e}},(()=>{}))};t.default=n}));
//# sourceMappingURL=CollectionService.js.map