"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var typescript_angular_utilities_1 = require("typescript-angular-utilities");
var index_1 = require("./components/cardContainer/index");
var index_2 = require("./components/dialog/index");
var dialogRoot_service_1 = require("./components/dialog/dialogRoot.service");
var index_3 = require("./components/cardContainer/builder/index");
var columnSearchFilter_service_1 = require("./components/cardContainer/filters/columnSearchFilter/columnSearchFilter.service");
var index_4 = require("./components/cardContainer/paging/index");
var sorter_service_1 = require("./components/cardContainer/sorts/sorter/sorter.service");
var mergeSort_service_1 = require("./components/cardContainer/sorts/mergeSort/mergeSort.service");
var async_service_1 = require("./services/async/async.service");
var autosaveAction_service_1 = require("./services/autosaveAction/autosaveAction.service");
var document_provider_1 = require("./services/document/document.provider");
var documentWrapper_service_1 = require("./services/documentWrapper/documentWrapper.service");
var form_service_1 = require("./services/form/form.service");
var jquery_provider_1 = require("./services/jquery/jquery.provider");
var windowWrapper_service_1 = require("./services/windowWrapper/windowWrapper.service");
var componentsDowngrade_1 = require("./componentsDowngrade");
var index_5 = require("./services/breakpoints/index");
var componentsDefaultTheme_1 = require("./components/componentsDefaultTheme");
var cardContainerBuilderFactoryProvider = {
    provide: componentsDowngrade_1.cardContainerBuilderServiceName,
    deps: [core_1.Injector, index_3.DataSourceBuilderOld, index_3.FilterBuilderOld],
    useFactory: function (injector, dataSourceBuilder, filterBuilder) {
        return {
            getInstance: function () { return new index_3.CardContainerBuilderOld(injector, dataSourceBuilder, filterBuilder); },
        };
    },
};
var dataPagerFactoryProvider = {
    provide: index_4.DataPagerOld,
    useValue: {
        getInstance: function () { return new index_4.DataPagerOld(); },
    },
};
var columnSearchFactoryProvider = {
    provide: columnSearchFilter_service_1.ColumnSearchFilter,
    useValue: {
        getInstance: function () { return new columnSearchFilter_service_1.ColumnSearchFilter(typescript_angular_utilities_1.services.object.objectUtility, typescript_angular_utilities_1.services.string.stringUtility, typescript_angular_utilities_1.services.transform.transform); },
    },
};
var defaultThemeNg1 = {
    provide: 'defaultThemeNg1',
    deps: [componentsDefaultTheme_1.DefaultTheme],
    useFactory: function (defaultTheme) { return defaultTheme.useDefaultTheme; },
};
var ComponentProvidersModule = (function () {
    function ComponentProvidersModule() {
    }
    return ComponentProvidersModule;
}());
ComponentProvidersModule = __decorate([
    core_1.NgModule({
        providers: [
            index_1.CARD_CONTAINER_PROVIDERS,
            index_2.DIALOG_PROVIDERS,
            index_3.DataSourceBuilderOld,
            index_3.FilterBuilderOld,
            async_service_1.AsyncHelper,
            autosaveAction_service_1.AutosaveActionService,
            componentsDefaultTheme_1.DefaultTheme,
            defaultThemeNg1,
            dialogRoot_service_1.DialogRootService,
            document_provider_1.DOCUMENT_PROVIDER,
            documentWrapper_service_1.DocumentService,
            form_service_1.FormService,
            index_5.BreakpointService,
            index_5.VisibleBreakpointService,
            jquery_provider_1.JQUERY_PROVIDER,
            windowWrapper_service_1.WindowService,
            dataPagerFactoryProvider,
            columnSearchFactoryProvider,
            sorter_service_1.Sorter,
            mergeSort_service_1.MergeSort,
            cardContainerBuilderFactoryProvider,
        ],
    })
], ComponentProvidersModule);
exports.ComponentProvidersModule = ComponentProvidersModule;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50UHJvdmlkZXJzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvbXBvbmVudFByb3ZpZGVycy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFB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