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