var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "../App", "../core/AtomBridge", "../services/BusyIndicatorService", "../services/NavigationService", "./services/XFBusyIndicatorService", "./services/XFNavigationService"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var A = require("../App");
    var AtomBridge_1 = require("../core/AtomBridge");
    var BusyIndicatorService_1 = require("../services/BusyIndicatorService");
    var NavigationService_1 = require("../services/NavigationService");
    var XFBusyIndicatorService_1 = require("./services/XFBusyIndicatorService");
    var XFNavigationService_1 = require("./services/XFNavigationService");
    var XFApp = /** @class */ (function (_super) {
        __extends(XFApp, _super);
        function XFApp() {
            var _this = _super.call(this) || this;
            AtomBridge_1.AtomBridge.instance = bridge;
            _this.put(NavigationService_1.NavigationService, _this.resolve(XFNavigationService_1.default));
            _this.put(BusyIndicatorService_1.BusyIndicatorService, _this.resolve(XFBusyIndicatorService_1.default));
            return _this;
        }
        Object.defineProperty(XFApp.prototype, "root", {
            get: function () {
                return this.mRoot;
            },
            set: function (v) {
                this.mRoot = v;
                bridge.setRoot(v.element);
            },
            enumerable: true,
            configurable: true
        });
        return XFApp;
    }(A.App));
    exports.default = XFApp;
});
//# sourceMappingURL=XFApp.js.map