Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/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}}),getCollectionEditConfigurationUrl:({collectionKey:e,itemId:t,segmentsExperienceId:l})=>(0,i.default)(o.config.getEditCollectionConfigurationURL,{body:{collectionKey:e,itemId:t,segmentsExperienceId:l}}),getCollectionField({activePage:e,classNameId:t,classPK:l,collection:n,displayAllItems:a,displayAllPages:c,externalReferenceCode:s,languageId:r,listItemStyle:d,listStyle:g,numberOfItems:u,numberOfItemsPerPage:f,numberOfPages:y,onNetworkStatus:m,paginationType:p,segmentsExperienceId:C,showAllItems:I,templateKey:b}){const P={activePage:e,classNameId:t,displayAllItems:a,displayAllPages:c,languageId:r,layoutObjectReference:JSON.stringify(n),listItemStyle:d,listStyle:g,numberOfItems:u,numberOfItemsPerPage:f,numberOfPages:y,paginationType:p,segmentsExperienceId:C,showAllItems:I,templateKey:b};return l&&(P.classPK=l),s&&(P.externalReferenceCode=s),(0,i.default)(o.config.getCollectionFieldURL,{body:P},m)},getCollectionFilters:()=>(0,i.default)(o.config.getCollectionFiltersURL,{},(()=>{})),getCollectionItemCount:({classNameId:e,classPK:t,collection:l,onNetworkStatus:n})=>(0,i.default)(o.config.getCollectionItemCountURL,{body:{classNameId:e,classPK:t,layoutObjectReference:JSON.stringify(l)}},n),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