/* eslint-disable local-rules/no-direct-api-import */
import { staticFileItemCache } from './static-file-item.server.cache.js';
import { StaticFileService } from '../../../core/backend-api/index.js';
import { UmbManagementApiItemDataRequestManager, UmbManagementApiInFlightRequestCache, } from '../../../management-api/index.js';
export class UmbManagementApiStaticFileItemDataRequestManager extends UmbManagementApiItemDataRequestManager {
    static #inflightRequestCache = new UmbManagementApiInFlightRequestCache();
    constructor(host) {
        super(host, {
            getItems: (paths) => StaticFileService.getItemStaticFile({ query: { path: paths } }),
            dataCache: staticFileItemCache,
            inflightRequestCache: UmbManagementApiStaticFileItemDataRequestManager.#inflightRequestCache,
            getUniqueMethod: (item) => item.path,
        });
    }
}
