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