import { __awaiter } from "tslib";
import { Inject, Injectable, Optional } from '@angular/core';
import { LOGGER } from '@anglr/common';
import * as debuggerNode from '../../dynamicItems/debuggerNode/type';
import * as i0 from "@angular/core";
/**
 * Dynamic module items provider for relations debugger module items
 */
export class RelationsDebuggerDynamicModuleItemsProvider {
    //######################### constructor #########################
    constructor(_logger) {
        this._logger = _logger;
    }
    //######################### public methods - implementation of DynamicItemLoaderProvider #########################
    /**
     * @inheritdoc
     */
    tryToGet(source) {
        return __awaiter(this, void 0, void 0, function* () {
            switch (source.package) {
                case 'relations-debugger':
                    {
                        return debuggerNode;
                    }
                default:
                    {
                        return null;
                    }
            }
        });
    }
}
RelationsDebuggerDynamicModuleItemsProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RelationsDebuggerDynamicModuleItemsProvider, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
RelationsDebuggerDynamicModuleItemsProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RelationsDebuggerDynamicModuleItemsProvider });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RelationsDebuggerDynamicModuleItemsProvider, decorators: [{
            type: Injectable
        }], ctorParameters: () => [{ type: undefined, decorators: [{
                    type: Inject,
                    args: [LOGGER]
                }, {
                    type: Optional
                }] }] });
//# sourceMappingURL=relationsDebuggerDynamicModuleItemsProvider.service.js.map