Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.141/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 o=l("../config/index"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(l("./serviceFetch"));var n={getCollectionConfiguration:e=>(0,i.default)(o.config.getCollectionConfigurationURL,{body:{collectionKey:e.key}}),getCollectionField:({activePage:e,classNameId:t,classPK:l,collection:n,displayAllItems:a,displayAllPages:s,languageId:c,listItemStyle:g,listStyle:r,numberOfItems:d,numberOfItemsPerPage:u,numberOfPages:f,onNetworkStatus:y,paginationType:p,showAllItems:m,templateKey:C})=>(0,i.default)(o.config.getCollectionFieldURL,{body:{activePage:e,classNameId:t,classPK:l,displayAllItems:a,displayAllPages:s,languageId:c,layoutObjectReference:JSON.stringify(n),listItemStyle:g,listStyle:r,numberOfItems:d,numberOfItemsPerPage:u,numberOfPages:f,paginationType:p,showAllItems:m,templateKey:C}},y),getCollectionFilters:()=>(0,i.default)(o.config.getCollectionFiltersURL,{},(()=>{})),getCollectionItemCount:({collection:e,onNetworkStatus:t})=>(0,i.default)(o.config.getCollectionItemCountURL,{body:{layoutObjectReference:JSON.stringify(e)}},t),getCollectionMappingFields:({itemSubtype:e,itemType:t,onNetworkStatus:l})=>(0,i.default)(o.config.getCollectionMappingFieldsURL,{body:{itemSubtype:e,itemType:t}},l),getCollectionSupportedFilters:e=>(0,i.default)(o.config.getCollectionSupportedFiltersURL,{body:{collections:JSON.stringify(e)}},(()=>{})),getCollectionVariations:e=>(0,i.default)(o.config.getCollectionVariationsURL,{body:{classPK:e}},(()=>{}))};t.default=n}));
//# sourceMappingURL=CollectionService.js.map