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