/* eslint-disable local-rules/no-direct-api-import */
import { memberGroupItemCache } from './member-group-item.server.cache.js';
import { MemberGroupService } from '../../../../core/backend-api/index.js';
import { UmbManagementApiItemDataRequestManager, UmbManagementApiInFlightRequestCache, } from '../../../../management-api/index.js';
export class UmbManagementApiMemberGroupItemDataRequestManager extends UmbManagementApiItemDataRequestManager {
    static #inflightRequestCache = new UmbManagementApiInFlightRequestCache();
    constructor(host) {
        super(host, {
            getItems: (ids) => MemberGroupService.getItemMemberGroup({ query: { id: ids } }),
            dataCache: memberGroupItemCache,
            inflightRequestCache: UmbManagementApiMemberGroupItemDataRequestManager.#inflightRequestCache,
            getUniqueMethod: (item) => item.id,
        });
    }
}
