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