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", "./services/MockNavigationService", "./services/NavigationService"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.MockApp = void 0;
    var App_1 = require("./App");
    var MockNavigationService_1 = require("./services/MockNavigationService");
    var NavigationService_1 = require("./services/NavigationService");
    var MockApp = /** @class */ (function (_super) {
        __extends(MockApp, _super);
        function MockApp() {
            var _this = _super.call(this) || this;
            _this.put(NavigationService_1.NavigationService, new MockNavigationService_1.MockNavigationService(_this));
            return _this;
        }
        MockApp.prototype.updateDefaultStyle = function (textContent) {
            if (this.styleElement) {
                if (this.styleElement.textContent === textContent) {
                    return;
                }
            }
            var ss = document.createElement("style");
            ss.textContent = textContent;
            if (this.styleElement) {
                this.styleElement.remove();
            }
            document.head.appendChild(ss);
            this.styleElement = ss;
        };
        return MockApp;
    }(App_1.App));
    exports.MockApp = MockApp;
});
//# sourceMappingURL=MockApp.js.map