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