"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;
};
require("jquery");
require("bootstrap");
var angular = require("angular");
var core_1 = require("@angular/core");
var platform_browser_1 = require("@angular/platform-browser");
var static_1 = require("@angular/upgrade/static");
var typescript_angular_utilities_1 = require("typescript-angular-utilities");
var ui_module_1 = require("../source/ui.module");
var inputBootstrapper_1 = require("./inputs/inputBootstrapper");
var buttonBootstrapper_1 = require("./buttons/buttonBootstrapper");
var popupBootstrapper_1 = require("./popup/popupBootstrapper");
var messageLogBootstrapper_1 = require("./messageLog/messageLogBootstrapper");
var cardContainerBootstrapper_1 = require("./cards/cardContainerBootstrapper");
var tabsBootstrapper_1 = require("./tabs/tabsBootstrapper");
var formsBootstrapper_1 = require("./forms/formsBootstrapper");
var miscBootstrapper_1 = require("./misc/miscBootstrapper");
var text_1 = require("./text/text");
var welcome_component_1 = require("./welcome.component");
var inputRoot_1 = require("./inputs/inputRoot");
var inputBootstrapper_2 = require("./inputs/inputBootstrapper");
var inputsNg2Bootstrapper_1 = require("./inputs/inputsNg2Bootstrapper");
var buttonBootstrapper_2 = require("./buttons/buttonBootstrapper");
var buttonsNg2Bootstrapper_1 = require("./buttons/buttonsNg2Bootstrapper");
var buttonRoot_1 = require("./buttons/buttonRoot");
var popupRoot_1 = require("./popup/popupRoot");
var popupBootstrapper_2 = require("./popup/popupBootstrapper");
var popupNg2Bootstrapper_1 = require("./popup/popupNg2Bootstrapper");
var cardRoot_1 = require("./cards/cardRoot");
var cardContainerBootstrapper_2 = require("./cards/cardContainerBootstrapper");
var cardsNg2Bootstrapper_1 = require("./cards/cardsNg2Bootstrapper");
var cardsSmartDataBootstrapper_1 = require("./cards/cardsSmartDataBootstrapper");
var tabRoot_1 = require("./tabs/tabRoot");
var tabsBootstrapper_2 = require("./tabs/tabsBootstrapper");
var tabsNg2Bootstrapper_1 = require("./tabs/tabsNg2Bootstrapper");
var msiBootstrapper_ng2_1 = require("./msi/msiBootstrapper.ng2");
var formsRoot_1 = require("./forms/formsRoot");
var formsBootstrapper_2 = require("./forms/formsBootstrapper");
var formsNg2Bootstrapper_1 = require("./forms/formsNg2Bootstrapper");
var messageLogBootstrapper_2 = require("./messageLog/messageLogBootstrapper");
var miscRoot_1 = require("./misc/miscRoot");
var miscNg2Context_1 = require("./misc/miscNg2Context");
var miscBootstrapper_2 = require("./misc/miscBootstrapper");
var app_ng2_1 = require("./app.ng2");
var app_routing_1 = require("./app.routing");
var ui_module_2 = require("../source/ui.module");
exports.moduleName = 'bootstrapper-app';
angular.module(exports.moduleName, [
    ui_module_1.moduleName,
    typescript_angular_utilities_1.downgrade.moduleName,
    inputBootstrapper_1.moduleName,
    buttonBootstrapper_1.moduleName,
    popupBootstrapper_1.moduleName,
    cardContainerBootstrapper_1.moduleName,
    tabsBootstrapper_1.moduleName,
    formsBootstrapper_1.moduleName,
    messageLogBootstrapper_1.moduleName,
    miscBootstrapper_1.moduleName,
    text_1.moduleName,
])
    .directive('tsMiscNgContext', static_1.downgradeComponent({ component: miscNg2Context_1.MiscNgContextBootstrapper }));
var ComponentsBootstrapperModule = (function () {
    function ComponentsBootstrapperModule() {
    }
    return ComponentsBootstrapperModule;
}());
ComponentsBootstrapperModule = __decorate([
    core_1.NgModule({
        imports: [
            platform_browser_1.BrowserModule,
            app_routing_1.routing,
            typescript_angular_utilities_1.UtilitiesModule,
            ui_module_2.ComponentsModule,
            static_1.UpgradeModule,
        ],
        declarations: [
            inputsNg2Bootstrapper_1.InputsBootstrapper,
            inputRoot_1.InputsRootComponent,
            inputBootstrapper_2.InputsNg1BootstrapperComponent,
            inputBootstrapper_2.InputsNg1Directive,
            buttonRoot_1.ButtonsRootComponent,
            buttonBootstrapper_2.ButtonsNg1BootstrapperComponent,
            buttonsNg2Bootstrapper_1.ButtonsNg2BootstrapperComponent,
            buttonBootstrapper_2.ButtonsNg1Directive,
            popupRoot_1.PopupRootComponent,
            popupBootstrapper_2.PopupNg1BootstrapperComponent,
            popupNg2Bootstrapper_1.PopupBootstrapper,
            popupBootstrapper_2.PopupNg1Directive,
            cardRoot_1.CardsRootComponent,
            cardContainerBootstrapper_2.CardsNg1BootstrapperComponent,
            cardsNg2Bootstrapper_1.CardsBootstrapper,
            cardsSmartDataBootstrapper_1.CardsSmartDataBootstrapper,
            cardContainerBootstrapper_2.CardsNg1Directive,
            tabRoot_1.TabsRootComponent,
            tabsBootstrapper_2.TabsNg1BootstrapperComponent,
            tabsNg2Bootstrapper_1.TabsBootstrapper,
            tabsBootstrapper_2.TabsNg1Directive,
            msiBootstrapper_ng2_1.MsiBootstrapperComponent,
            formsRoot_1.FormsRootComponent,
            formsBootstrapper_2.FormsNg1BootstrapperComponent,
            formsNg2Bootstrapper_1.FormsBootstrapper,
            formsBootstrapper_2.FormsNg1Directive,
            messageLogBootstrapper_2.MessageLogNg1BootstrapperComponent,
            messageLogBootstrapper_2.MessageLogNg1Directive,
            miscRoot_1.MiscRootComponent,
            miscBootstrapper_2.MiscNg1BootstrapperComponent,
            miscBootstrapper_2.MiscNg2BootstrapperComponent,
            miscNg2Context_1.MiscNgContextBootstrapper,
            miscBootstrapper_2.MiscNg1Directive,
            miscBootstrapper_2.MiscNg2Directive,
            welcome_component_1.WelcomeComponent,
            app_ng2_1.App,
        ],
        bootstrap: [app_ng2_1.App],
        entryComponents: [miscNg2Context_1.MiscNgContextBootstrapper],
        providers: [
            {
                provide: '$scope',
                useFactory: function (injector) { return injector.get('$rootScope'); },
                deps: ['$injector']
            }
        ],
    })
], ComponentsBootstrapperModule);
exports.ComponentsBootstrapperModule = ComponentsBootstrapperModule;
//#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