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