UNPKG

datafire

Version:

[![Travis][travis-image]][travis-link] [![Downloads][downloads-image]][npm-link] [![NPM version][npm-image]][npm-link] [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://www.npmjs.com/package/datafire) <!--[![Dependency status][deps-i

7,089 lines • 491 kB
webpackJsonp(["main"],{

/***/ "./node_modules/worker-loader/index.js!./src/app/lunr_worker.js":
/***/ (function(module, exports, __webpack_require__) {

module.exports = function() {
	return new Worker(__webpack_require__.p + "575fda744365e513818d.worker.js");
};

/***/ }),

/***/ "./src/$$_lazy_route_resource lazy recursive":
/***/ (function(module, exports) {

function webpackEmptyAsyncContext(req) {
	// Here Promise.resolve().then() is used instead of new Promise() to prevent
	// uncatched exception popping up in devtools
	return Promise.resolve().then(function() {
		throw new Error("Cannot find module '" + req + "'.");
	});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";

/***/ }),

/***/ "./src/app/app.component.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AppComponentNgFactory = exports.RenderType_AppComponent = undefined;
exports.View_AppComponent_0 = View_AppComponent_0;
exports.View_AppComponent_Host_0 = View_AppComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _router = __webpack_require__("./node_modules/@angular/router/esm5/router.js");

var i1 = _interopRequireWildcard(_router);

var _app = __webpack_require__("./src/app/app.component.ts");

var i2 = _interopRequireWildcard(_app);

var _routes = __webpack_require__("./src/app/services/routes.ts");

var i3 = _interopRequireWildcard(_routes);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i4 = _interopRequireWildcard(_utils);

var _platform = __webpack_require__("./src/app/services/platform.service.ts");

var i5 = _interopRequireWildcard(_platform);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles_AppComponent = [];
var RenderType_AppComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_AppComponent, data: {} });
exports.RenderType_AppComponent = RenderType_AppComponent;
function View_AppComponent_0(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵeld(1, 16777216, null, null, 1, "router-outlet", [], null, null, null, null, null)), i0.ɵdid(2, 212992, null, 0, i1.RouterOutlet, [i1.ChildrenOutletContexts, i0.ViewContainerRef, i0.ComponentFactoryResolver, [8, null], i0.ChangeDetectorRef], null, null), (_l()(), i0.ɵted(-1, null, ["\n      "]))], function (_ck, _v) {
    _ck(_v, 2, 0);
  }, null);
}
function View_AppComponent_Host_0(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "app", [], null, null, null, View_AppComponent_0, RenderType_AppComponent)), i0.ɵdid(1, 4374528, null, 0, i2.AppComponent, [i1.Router, i3.RoutesService, i4.UtilsService, i0.ApplicationRef, i5.PlatformService], null, null)], null, null);
}
var AppComponentNgFactory = i0.ɵccf("app", i2.AppComponent, View_AppComponent_Host_0, {}, {}, []);
exports.AppComponentNgFactory = AppComponentNgFactory;

/***/ }),

/***/ "./src/app/app.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_router__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_routes__ = __webpack_require__("./src/app/services/routes.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_utils__ = __webpack_require__("./src/app/services/utils.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");





var MAX_XS_WIDTH = 767;
var AppComponent = /** @class */ (function () {
    function AppComponent(router, routes, utils, appref, platformService) {
        var _this = this;
        this.router = router;
        this.routes = routes;
        this.utils = utils;
        this.appref = appref;
        this.platformService = platformService;
        this.subscriptions = [];
        window.app = this;
        var isFirst = true;
        this.subscriptions.push(this.router.events.subscribe(function (event) {
            if (_this.platformService.isBrowser && event instanceof __WEBPACK_IMPORTED_MODULE_1__angular_router__["NavigationEnd"] && window.innerWidth > MAX_XS_WIDTH) {
                if (!isFirst) {
                    window.scrollTo(0, 0);
                }
                isFirst = false;
            }
        }));
    }
    AppComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    AppComponent.prototype.ngAfterViewInit = function () {
        if (window.onLucyBotReady)
            window.onLucyBotReady();
        window.lucyBotReady = true;
        var self = this;
        if (this.platformService.isBrowser) {
            window.jQuery('nav.navbar a').click(function () {
                var elem = window.jQuery(this);
                var url = elem.attr('href');
                if (url !== undefined && url.indexOf('http') !== 0) {
                    if (url.indexOf(window.config.basePath) === 0) {
                        url = url.substring(window.config.basePath.length, url.length);
                    }
                    if (url) {
                        self.routes.navigate(self.routes.getPathParts(url), false, { queryParams: {} });
                        return false;
                    }
                }
            });
        }
    };
    return AppComponent;
}());



/***/ }),

/***/ "./src/app/app.module.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AppModuleNgFactory = undefined;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _app = __webpack_require__("./src/app/app.module.ts");

var i1 = _interopRequireWildcard(_app);

var _app2 = __webpack_require__("./src/app/app.component.ts");

var i2 = _interopRequireWildcard(_app2);

var _TooltipContent = __webpack_require__("./node_modules/ngx-tooltip/TooltipContent.ngfactory.js");

var i3 = _interopRequireWildcard(_TooltipContent);

var _ng2DatetimePickerComponent = __webpack_require__("./node_modules/ng2-datetime-picker/dist/ng2-datetime-picker.component.ngfactory.js");

var i4 = _interopRequireWildcard(_ng2DatetimePickerComponent);

var _documentation = __webpack_require__("./src/app/components/documentation.ngfactory.js");

var i5 = _interopRequireWildcard(_documentation);

var _appComponent = __webpack_require__("./src/app/app.component.ngfactory.js");

var i6 = _interopRequireWildcard(_appComponent);

var _http = __webpack_require__("./node_modules/@angular/common/esm5/http.js");

var i7 = _interopRequireWildcard(_http);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i8 = _interopRequireWildcard(_common);

var _platformBrowser = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");

var i9 = _interopRequireWildcard(_platformBrowser);

var _common2 = __webpack_require__("./node_modules/@nguniversal/common/esm5/common.es5.js");

var i10 = _interopRequireWildcard(_common2);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i11 = _interopRequireWildcard(_forms);

var _browser = __webpack_require__("./node_modules/@angular/animations/esm5/browser.js");

var i12 = _interopRequireWildcard(_browser);

var _animations = __webpack_require__("./node_modules/@angular/platform-browser/esm5/animations.js");

var i13 = _interopRequireWildcard(_animations);

var _animations2 = __webpack_require__("./node_modules/@angular/animations/esm5/animations.js");

var i14 = _interopRequireWildcard(_animations2);

var _ng2Datetime = __webpack_require__("./node_modules/ng2-datetime-picker/dist/ng2-datetime.js");

var i15 = _interopRequireWildcard(_ng2Datetime);

var _router = __webpack_require__("./node_modules/@angular/router/esm5/router.js");

var i16 = _interopRequireWildcard(_router);

var _platform = __webpack_require__("./src/app/services/platform.service.ts");

var i17 = _interopRequireWildcard(_platform);

var _tracker = __webpack_require__("./src/app/services/tracker.ts");

var i18 = _interopRequireWildcard(_tracker);

var _routes = __webpack_require__("./src/app/services/routes.ts");

var i19 = _interopRequireWildcard(_routes);

var _secret = __webpack_require__("./src/app/services/secret.ts");

var i20 = _interopRequireWildcard(_secret);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i21 = _interopRequireWildcard(_utils);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i22 = _interopRequireWildcard(_openapi);

var _github = __webpack_require__("./src/app/services/github.ts");

var i23 = _interopRequireWildcard(_github);

var _search = __webpack_require__("./src/app/services/search.ts");

var i24 = _interopRequireWildcard(_search);

var _menu = __webpack_require__("./src/app/services/menu.ts");

var i25 = _interopRequireWildcard(_menu);

var _tour = __webpack_require__("./src/app/services/tour.ts");

var i26 = _interopRequireWildcard(_tour);

var _documentation2 = __webpack_require__("./src/app/components/documentation.ts");

var i27 = _interopRequireWildcard(_documentation2);

var _index = __webpack_require__("./node_modules/ngx-tooltip/index.js");

var i28 = _interopRequireWildcard(_index);

var _ng2DatetimePicker = __webpack_require__("./node_modules/ng2-datetime-picker/dist/ng2-datetime-picker.module.js");

var i29 = _interopRequireWildcard(_ng2DatetimePicker);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var AppModuleNgFactory = i0.ɵcmf(i1.AppModule, [i2.AppComponent], function (_l) {
  return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, [i3.TooltipContentNgFactory, i4.Ng2DatetimePickerComponentNgFactory, i5.DocumentationComponentNgFactory, i6.AppComponentNgFactory]], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(4608, i7.HttpXsrfTokenExtractor, i7.ɵh, [i8.DOCUMENT, i0.PLATFORM_ID, i7.ɵf]), i0.ɵmpd(4608, i7.ɵi, i7.ɵi, [i7.HttpXsrfTokenExtractor, i7.ɵg]), i0.ɵmpd(5120, i9.TransferState, i9.ɵc, [i8.DOCUMENT, i0.APP_ID]), i0.ɵmpd(4608, i10.ɵa, i10.ɵa, [i0.ApplicationRef, i9.TransferState]), i0.ɵmpd(5120, i7.HTTP_INTERCEPTORS, function (p0_0, p1_0) {
    return [p0_0, p1_0];
  }, [i7.ɵi, i10.ɵa]), i0.ɵmpd(4608, i7.ɵe, i7.ɵe, []), i0.ɵmpd(6144, i7.XhrFactory, null, [i7.ɵe]), i0.ɵmpd(4608, i7.HttpXhrBackend, i7.HttpXhrBackend, [i7.XhrFactory]), i0.ɵmpd(6144, i7.HttpBackend, null, [i7.HttpXhrBackend]), i0.ɵmpd(4608, i7.HttpHandler, i7.ɵc, [i7.HttpBackend, i0.Injector]), i0.ɵmpd(4608, i7.HttpClient, i7.HttpClient, [i7.HttpHandler]), i0.ɵmpd(4608, i11.ɵi, i11.ɵi, []), i0.ɵmpd(5120, i0.LOCALE_ID, i0.ɵq, [[3, i0.LOCALE_ID]]), i0.ɵmpd(4608, i8.NgLocalization, i8.NgLocaleLocalization, [i0.LOCALE_ID, [2, i8.ɵa]]), i0.ɵmpd(5120, i0.IterableDiffers, i0.ɵn, []), i0.ɵmpd(5120, i0.KeyValueDiffers, i0.ɵo, []), i0.ɵmpd(4608, i9.DomSanitizer, i9.ɵe, [i8.DOCUMENT]), i0.ɵmpd(6144, i0.Sanitizer, null, [i9.DomSanitizer]), i0.ɵmpd(4608, i9.HAMMER_GESTURE_CONFIG, i9.HammerGestureConfig, []), i0.ɵmpd(5120, i9.EVENT_MANAGER_PLUGINS, function (p0_0, p0_1, p1_0, p2_0, p2_1) {
    return [new i9.ɵDomEventsPlugin(p0_0, p0_1), new i9.ɵKeyEventsPlugin(p1_0), new i9.ɵHammerGesturesPlugin(p2_0, p2_1)];
  }, [i8.DOCUMENT, i0.NgZone, i8.DOCUMENT, i8.DOCUMENT, i9.HAMMER_GESTURE_CONFIG]), i0.ɵmpd(4608, i9.EventManager, i9.EventManager, [i9.EVENT_MANAGER_PLUGINS, i0.NgZone]), i0.ɵmpd(135680, i9.ɵDomSharedStylesHost, i9.ɵDomSharedStylesHost, [i8.DOCUMENT]), i0.ɵmpd(4608, i9.ɵDomRendererFactory2, i9.ɵDomRendererFactory2, [i9.EventManager, i9.ɵDomSharedStylesHost]), i0.ɵmpd(5120, i12.AnimationDriver, i13.ɵc, []), i0.ɵmpd(5120, i12.ɵAnimationStyleNormalizer, i13.ɵd, []), i0.ɵmpd(4608, i12.ɵAnimationEngine, i13.ɵb, [i12.AnimationDriver, i12.ɵAnimationStyleNormalizer]), i0.ɵmpd(5120, i0.RendererFactory2, i13.ɵe, [i9.ɵDomRendererFactory2, i12.ɵAnimationEngine, i0.NgZone]), i0.ɵmpd(6144, i9.ɵSharedStylesHost, null, [i9.ɵDomSharedStylesHost]), i0.ɵmpd(4608, i0.Testability, i0.Testability, [i0.NgZone]), i0.ɵmpd(4608, i9.Meta, i9.Meta, [i8.DOCUMENT]), i0.ɵmpd(4608, i9.Title, i9.Title, [i8.DOCUMENT]), i0.ɵmpd(4608, i14.AnimationBuilder, i13.ɵBrowserAnimationBuilder, [i0.RendererFactory2, i9.DOCUMENT]), i0.ɵmpd(4608, i15.Ng2Datetime, i15.Ng2Datetime, []), i0.ɵmpd(5120, i16.ActivatedRoute, i16.ɵf, [i16.Router]), i0.ɵmpd(4608, i16.NoPreloading, i16.NoPreloading, []), i0.ɵmpd(6144, i16.PreloadingStrategy, null, [i16.NoPreloading]), i0.ɵmpd(135680, i16.RouterPreloader, i16.RouterPreloader, [i16.Router, i0.NgModuleFactoryLoader, i0.Compiler, i0.Injector, i16.PreloadingStrategy]), i0.ɵmpd(4608, i16.PreloadAllModules, i16.PreloadAllModules, []), i0.ɵmpd(5120, i16.ROUTER_INITIALIZER, i16.ɵi, [i16.ɵg]), i0.ɵmpd(5120, i0.APP_BOOTSTRAP_LISTENER, function (p0_0) {
    return [p0_0];
  }, [i16.ROUTER_INITIALIZER]), i0.ɵmpd(4608, i17.PlatformService, i17.PlatformService, [i0.PLATFORM_ID]), i0.ɵmpd(4608, i18.TrackerService, i18.TrackerService, [i17.PlatformService]), i0.ɵmpd(135680, i19.RoutesService, i19.RoutesService, [i16.Router, i8.Location, i9.Title, i9.Meta, i18.TrackerService, i0.NgZone]), i0.ɵmpd(4608, i20.SecretService, i20.SecretService, [i0.NgZone, i18.TrackerService]), i0.ɵmpd(4608, i21.UtilsService, i21.UtilsService, [i9.DomSanitizer, i20.SecretService]), i0.ɵmpd(135680, i22.OpenAPIService, i22.OpenAPIService, [i7.HttpClient, i19.RoutesService, i18.TrackerService, i20.SecretService]), i0.ɵmpd(4608, i23.GitHubService, i23.GitHubService, [i7.HttpClient, i0.NgZone, i18.TrackerService, i17.PlatformService, i20.SecretService]), i0.ɵmpd(135680, i24.SearchService, i24.SearchService, [i19.RoutesService, i18.TrackerService, i0.NgZone, i17.PlatformService]), i0.ɵmpd(135680, i25.MenuService, i25.MenuService, [i19.RoutesService, i9.Meta, i9.Title, i22.OpenAPIService, i18.TrackerService, i24.SearchService]), i0.ɵmpd(4608, i26.TourService, i26.TourService, [i18.TrackerService]), i0.ɵmpd(512, i7.HttpClientXsrfModule, i7.HttpClientXsrfModule, []), i0.ɵmpd(512, i7.HttpClientModule, i7.HttpClientModule, []), i0.ɵmpd(512, i11.ɵba, i11.ɵba, []), i0.ɵmpd(512, i11.FormsModule, i11.FormsModule, []), i0.ɵmpd(512, i8.CommonModule, i8.CommonModule, []), i0.ɵmpd(1024, i0.ErrorHandler, i9.ɵa, []), i0.ɵmpd(1024, i0.NgProbeToken, function () {
    return [i16.ɵb()];
  }, []), i0.ɵmpd(256, i0.APP_ID, "lucybot-doc-app", []), i0.ɵmpd(2048, i9.ɵTRANSITION_ID, null, [i0.APP_ID]), i0.ɵmpd(512, i16.ɵg, i16.ɵg, [i0.Injector]), i0.ɵmpd(1024, i0.APP_INITIALIZER, function (p0_0, p1_0, p1_1, p1_2, p2_0) {
    return [i9.ɵh(p0_0), i9.ɵf(p1_0, p1_1, p1_2), i16.ɵh(p2_0)];
  }, [[2, i0.NgProbeToken], i9.ɵTRANSITION_ID, i8.DOCUMENT, i0.Injector, i16.ɵg]), i0.ɵmpd(512, i0.ApplicationInitStatus, i0.ApplicationInitStatus, [[2, i0.APP_INITIALIZER]]), i0.ɵmpd(131584, i0.ApplicationRef, i0.ApplicationRef, [i0.NgZone, i0.ɵConsole, i0.Injector, i0.ErrorHandler, i0.ComponentFactoryResolver, i0.ApplicationInitStatus]), i0.ɵmpd(512, i0.ApplicationModule, i0.ApplicationModule, [i0.ApplicationRef]), i0.ɵmpd(512, i9.BrowserModule, i9.BrowserModule, [[3, i9.BrowserModule]]), i0.ɵmpd(512, i9.BrowserTransferStateModule, i9.BrowserTransferStateModule, []), i0.ɵmpd(512, i10.TransferHttpCacheModule, i10.TransferHttpCacheModule, []), i0.ɵmpd(512, i13.BrowserAnimationsModule, i13.BrowserAnimationsModule, []), i0.ɵmpd(1024, i16.ɵa, i16.ɵd, [[3, i16.Router]]), i0.ɵmpd(512, i16.UrlSerializer, i16.DefaultUrlSerializer, []), i0.ɵmpd(512, i16.ChildrenOutletContexts, i16.ChildrenOutletContexts, []), i0.ɵmpd(256, i8.APP_BASE_HREF, i1.ɵ0, []), i0.ɵmpd(256, i16.ROUTER_CONFIGURATION, { useHash: false }, []), i0.ɵmpd(1024, i8.LocationStrategy, i16.ɵc, [i8.PlatformLocation, [2, i8.APP_BASE_HREF], i16.ROUTER_CONFIGURATION]), i0.ɵmpd(512, i8.Location, i8.Location, [i8.LocationStrategy]), i0.ɵmpd(512, i0.Compiler, i0.Compiler, []), i0.ɵmpd(512, i0.NgModuleFactoryLoader, i0.SystemJsNgModuleLoader, [i0.Compiler, [2, i0.SystemJsNgModuleLoaderConfig]]), i0.ɵmpd(1024, i16.ROUTES, function () {
    return [[{ path: "", component: i27.DocumentationComponent }, { path: ":item0", component: i27.DocumentationComponent }, { path: ":item0/:item1", component: i27.DocumentationComponent }, { path: ":item0/:item1/:item2", component: i27.DocumentationComponent }, { path: ":item0/:item1/:item2/:item3", component: i27.DocumentationComponent }, { path: ":item0/:item1/:item2/:item3/:item4", component: i27.DocumentationComponent }, { path: "**", redirectTo: "", pathMatch: "full" }]];
  }, []), i0.ɵmpd(1024, i16.Router, i16.ɵe, [i0.ApplicationRef, i16.UrlSerializer, i16.ChildrenOutletContexts, i8.Location, i0.Injector, i0.NgModuleFactoryLoader, i0.Compiler, i16.ROUTES, i16.ROUTER_CONFIGURATION, [2, i16.UrlHandlingStrategy], [2, i16.RouteReuseStrategy]]), i0.ɵmpd(512, i16.RouterModule, i16.RouterModule, [[2, i16.ɵa], [2, i16.Router]]), i0.ɵmpd(512, i28.TooltipModule, i28.TooltipModule, []), i0.ɵmpd(512, i29.Ng2DatetimePickerModule, i29.Ng2DatetimePickerModule, []), i0.ɵmpd(512, i1.AppModule, i1.AppModule, []), i0.ɵmpd(256, i7.ɵf, "XSRF-TOKEN", []), i0.ɵmpd(256, i7.ɵg, "X-XSRF-TOKEN", []), i0.ɵmpd(256, "ORIGIN_URL", "", [])]);
});
exports.AppModuleNgFactory = AppModuleNgFactory;

/***/ }),

/***/ "./src/app/app.module.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
__webpack_require__("./src/app/views/oauth_callback.html");

Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["enableProdMode"])();
window.originalURL = {
    path: window.location.pathname,
    hash: window.location.hash,
};
window.config = window.config || {};
var ɵ0 = window.config.basePath || '/';
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    return AppModule;
}());




/***/ }),

/***/ "./src/app/components/api-call.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.APICallComponentNgFactory = exports.RenderType_APICallComponent = undefined;
exports.View_APICallComponent_0 = View_APICallComponent_0;
exports.View_APICallComponent_Host_0 = View_APICallComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _apiResponse = __webpack_require__("./src/app/components/api-response.ngfactory.js");

var i1 = _interopRequireWildcard(_apiResponse);

var _apiResponse2 = __webpack_require__("./src/app/components/api-response.ts");

var i2 = _interopRequireWildcard(_apiResponse2);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i3 = _interopRequireWildcard(_utils);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i4 = _interopRequireWildcard(_openapi);

var _sampleCode = __webpack_require__("./src/app/components/sample-code.ngfactory.js");

var i5 = _interopRequireWildcard(_sampleCode);

var _sampleCode2 = __webpack_require__("./src/app/components/sample-code.ts");

var i6 = _interopRequireWildcard(_sampleCode2);

var _tracker = __webpack_require__("./src/app/services/tracker.ts");

var i7 = _interopRequireWildcard(_tracker);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i8 = _interopRequireWildcard(_forms);

var _parameter = __webpack_require__("./src/app/components/parameter.ngfactory.js");

var i9 = _interopRequireWildcard(_parameter);

var _parameter2 = __webpack_require__("./src/app/components/parameter.ts");

var i10 = _interopRequireWildcard(_parameter2);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i11 = _interopRequireWildcard(_common);

var _apiCall = __webpack_require__("./src/app/components/api-call.ts");

var i12 = _interopRequireWildcard(_apiCall);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

var styles_APICallComponent = ["api-response[_ngcontent-%COMP%] {\n        display: block;\n      }\n      .parameters-title[_ngcontent-%COMP%], .parameters-box[_ngcontent-%COMP%] {\n        border: 1px solid #d9d9d9;\n        padding: 15px;\n        background-color: #f5f5f5;\n      }\n      [_nghost-%COMP%]     .parameters-box .well {\n        background-color: #f5f5f5 !important;\n      }\n      .parameters-title[_ngcontent-%COMP%] {\n        border-bottom: none;\n        margin-bottom: -2px;\n        background-color: #f5f5f5;\n      }\n      .parameters-box[_ngcontent-%COMP%] {\n        border: 1px solid #d9d9d9;\n        border-top: none;\n        border-radius: 4px;\n        margin-bottom: 20px;\n        padding-top: 0px;\n      }"]; /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * @fileoverview This file was generated by the Angular template compiler. Do not edit.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * tslint:disable
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                */

var RenderType_APICallComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_APICallComponent, data: { "animation": [{ type: 7, name: "shrinkOut", definitions: [{ type: 0, name: "in", styles: { type: 6, styles: { height: "*" }, offset: null }, options: undefined }, { type: 1, expr: "* => void", animation: [{ type: 6, styles: { height: "*", overflow: "hidden" }, offset: null }, { type: 4, styles: { type: 6, styles: { height: 0 }, offset: null }, timings: 0 }], options: null }, { type: 1, expr: "void => *", animation: [{ type: 6, styles: { height: 0, overflow: "hidden" }, offset: null }, { type: 4, styles: { type: 6, styles: { height: "*" }, offset: null }, timings: 500 }], options: null }], options: {} }] } });
exports.RenderType_APICallComponent = RenderType_APICallComponent;

function View_APICallComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "col-xs-12 col-md-6"]], [[24, "@shrinkOut", 0]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "api-response", [], null, null, null, i1.View_APIResponseComponent_0, i1.RenderType_APIResponseComponent)), i0.ɵdid(2, 573440, [["apiResponse", 4]], 0, i2.APIResponseComponent, [i3.UtilsService, i4.OpenAPIService], { response: [0, "response"], headers: [1, "headers"], statusCode: [2, "statusCode"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.response.body;var currVal_2 = _co.response.headers;var currVal_3 = _co.response.statusCode;_ck(_v, 2, 0, currVal_1, currVal_2, currVal_3);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.response ? "in" : "out";_ck(_v, 0, 0, currVal_0);
    });
}
function View_APICallComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "div", [["class", "col-xs-12"]], [[2, "col-md-6", null]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "sample-code", [], null, null, null, i5.View_SampleCodeComponent_0, i5.RenderType_SampleCodeComponent)), i0.ɵdid(2, 4767744, [[1, 4], ["sampleCode", 4]], 0, i6.SampleCodeComponent, [i4.OpenAPIService, i3.UtilsService, i7.TrackerService], { answers: [0, "answers"], apiCall: [1, "apiCall"], templateInput: [2, "templateInput"] }, null), i0.ɵpod(3, { response: 0 })], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.answers;var currVal_2 = _co.apiCall;var currVal_3 = _ck(_v, 3, 0, _co.response ? _co.response.body : null);_ck(_v, 2, 0, currVal_1, currVal_2, currVal_3);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.response && !_co.executing;_ck(_v, 0, 0, currVal_0);
    });
}
function View_APICallComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { sampleCodeComponent: 0 }), (_l()(), i0.ɵeld(1, 0, null, null, 17, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 12, "div", [["class", "col-xs-12 col-md-6"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 11, "form", [["novalidate", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "submit"], [null, "reset"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("submit" === en) {
            var pd_0 = i0.ɵnov(_v, 5).onSubmit($event) !== false;
            ad = pd_0 && ad;
        }if ("reset" === en) {
            var pd_1 = i0.ɵnov(_v, 5).onReset() !== false;
            ad = pd_1 && ad;
        }if ("submit" === en) {
            var pd_2 = _co.execute() !== false;
            ad = pd_2 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(4, 16384, null, 0, i8.ɵbf, [], null, null), i0.ɵdid(5, 4210688, null, 0, i8.NgForm, [[8, null], [8, null]], null, null), i0.ɵprd(2048, null, i8.ControlContainer, null, [i8.NgForm]), i0.ɵdid(7, 16384, null, 0, i8.NgControlStatusGroup, [i8.ControlContainer], null, null), (_l()(), i0.ɵeld(8, 0, null, null, 0, "input", [["hidden", ""], ["type", "submit"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 2, "div", [["class", "parameters-title"]], null, null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Parameters"])), (_l()(), i0.ɵeld(12, 0, null, null, 2, "div", [["class", "parameters-box"]], null, null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 1, "parameter-set", [], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.onInputChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, i9.View_ParameterSetComponent_0, i9.RenderType_ParameterSetComponent)), i0.ɵdid(14, 573440, null, 0, i10.ParameterSetComponent, [i4.OpenAPIService, i3.UtilsService], { parameterSet: [0, "parameterSet"], groups: [1, "groups"], answers: [2, "answers"] }, { valueChange: "valueChange" }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_APICallComponent_1)), i0.ɵdid(16, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_APICallComponent_2)), i0.ɵdid(18, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = _co.apiCall.operation.parameters;var currVal_8 = _co.apiCall.operation.parameterGroups;var currVal_9 = _co.answers;_ck(_v, 14, 0, currVal_7, currVal_8, currVal_9);var currVal_10 = _co.response;_ck(_v, 16, 0, currVal_10);var currVal_11 = !_co.utils.config.codegen.disabled;_ck(_v, 18, 0, currVal_11);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 7).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 7).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 7).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 7).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 7).ngClassValid;var currVal_5 = i0.ɵnov(_v, 7).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 7).ngClassPending;_ck(_v, 3, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);
    });
}
function View_APICallComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "api-call", [], null, null, null, View_APICallComponent_0, RenderType_APICallComponent)), i0.ɵdid(1, 638976, null, 0, i12.APICallComponent, [i4.OpenAPIService, i3.UtilsService, i7.TrackerService, i0.ElementRef], null, null)], function (_ck, _v) {
        _ck(_v, 1, 0);
    }, null);
}
var APICallComponentNgFactory = i0.ɵccf("api-call", i12.APICallComponent, View_APICallComponent_Host_0, { apiCall: "apiCall" }, {}, []);
exports.APICallComponentNgFactory = APICallComponentNgFactory;

/***/ }),

/***/ "./src/app/components/api-call.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APICallComponent", function() { return APICallComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_utils__ = __webpack_require__("./src/app/services/utils.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_tracker__ = __webpack_require__("./src/app/services/tracker.ts");




var APICallComponent = /** @class */ (function () {
    function APICallComponent(openapi, utils, tracker, elementRef) {
        this.openapi = openapi;
        this.utils = utils;
        this.tracker = tracker;
        this.elementRef = elementRef;
        this.answers = {};
        this.marked = window.marked;
    }
    APICallComponent.prototype.ngOnInit = function () {
        setTimeout(function () { return window.app.appref.tick(); }); // FIXME: *ngIf="apiCallComponent" in docs view needs this.
    };
    APICallComponent.prototype.ngOnChanges = function () {
        this.answers = {};
        this.response = null;
    };
    APICallComponent.prototype.onInputChange = function () {
        if (this.sampleCodeComponent)
            this.sampleCodeComponent.refreshSampleCode();
    };
    APICallComponent.prototype.execute = function () {
        var _this = this;
        if (!this.openapi.secrets.isAuthenticated(this.apiCall.operation)) {
            return this.openapi.secrets.startAuthentication();
        }
        this.tracker.track('api_call', {
            path: this.apiCall.path,
            method: this.apiCall.method,
        });
        this.error = null;
        this.executing = true;
        this.response = null;
        this.openapi.request({
            path: this.apiCall.path,
            method: this.apiCall.method,
            answers: this.answers,
        })
            .then(function (data, textStatus, xhr) {
            _this.response = {
                body: data,
                statusCode: xhr.status,
                headers: xhr.getAllResponseHeaders().split('\r\n'),
            };
            var type = window.checkResponse ? window.checkResponse(data, xhr.status).type : 'success';
            if (type !== 'success')
                type = 'failure';
            _this.tracker.track('api_call_' + type, {
                status: xhr.status,
                path: _this.apiCall.path,
                method: _this.apiCall.method,
            });
        })
            .fail(function (xhr) {
            if (!xhr.status) {
                // Probably a CORS issue
                _this.response = {
                    body: "An unknown error occurred, possibly related to CORS. Check your browser's console for details.",
                    statusCode: 0,
                    headers: xhr.getAllResponseHeaders().split('\r\n'),
                };
            }
            else {
                _this.response = {
                    body: xhr.responseText,
                    statusCode: xhr.status,
                    headers: xhr.getAllResponseHeaders().split('\r\n'),
                };
            }
            _this.tracker.track('api_call_failure', {
                status: xhr.status,
                path: _this.apiCall.path,
                method: _this.apiCall.method,
            });
        })
            .always(function (_) {
            _this.executing = false;
            setTimeout(function () {
                _this.utils.scrollToSelection(window.jQuery(_this.elementRef.nativeElement).find('api-response'));
            }, 100);
        });
    };
    return APICallComponent;
}());



/***/ }),

/***/ "./src/app/components/api-response.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.APIResponseComponentNgFactory = exports.RenderType_APIResponseComponent = undefined;
exports.View_APIResponseComponent_0 = View_APIResponseComponent_0;
exports.View_APIResponseComponent_Host_0 = View_APIResponseComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i1 = _interopRequireWildcard(_common);

var _apiResponse = __webpack_require__("./src/app/components/api-response.ts");

var i2 = _interopRequireWildcard(_apiResponse);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i3 = _interopRequireWildcard(_utils);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i4 = _interopRequireWildcard(_openapi);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

var styles_APIResponseComponent = []; /**
                                       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
                                       *
                                       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
                                       * tslint:disable
                                       */

var RenderType_APIResponseComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_APIResponseComponent, data: {} });
exports.RenderType_APIResponseComponent = RenderType_APIResponseComponent;

function View_APIResponseComponent_1(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "alert alert-warning"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "p", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Authentication failed - "])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
    var ad = true;var _co = _v.component;if ("click" === en) {
      var pd_0 = _co.openapi.secrets.startAuthentication() !== false;
      ad = pd_0 && ad;
    }return ad;
  }, null, null)), (_l()(), i0.ɵted(-1, null, ["try updating your credentials"]))], null, null);
}
function View_APIResponseComponent_2(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [], [[8, "className", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
    var _co = _v.component;var currVal_0 = i0.ɵinlineInterpolate(1, "alert status-code-alert alert-", _co.responseAlert.type, "");var currVal_1 = _co.responseAlert.message;_ck(_v, 0, 0, currVal_0, currVal_1);
  });
}
function View_APIResponseComponent_0(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "h1", [["class", "text-center"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "i", [["class", "fa fa-spin fa-refresh"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "div", [["class", "alert alert-danger"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 14, "div", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_APIResponseComponent_1)), i0.ɵdid(6, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_APIResponseComponent_2)), i0.ɵdid(8, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(9, 0, null, null, 9, "div", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 8, "pre", [], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 3, "a", [], null, [[null, "click"]], function (_v, en, $event) {
    var ad = true;var _co = _v.component;if ("click" === en) {
      var pd_0 = (_co.showHeaders = !_co.showHeaders) !== false;
      ad = pd_0 && ad;
    }return ad;
  }, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 0, "i", [["class", "fa fa-left"]], [[2, "fa-plus-square-o", null], [2, "fa-minus-square-o", null]], null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Headers"])), (_l()(), i0.ɵeld(15, 0, null, null, 0, "br", [], null, null, null, null, null)), (_l()(), i0.ɵeld(16, 0, null, null, 0, "code", [], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(17, 0, null, null, 0, "hr", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(18, 0, null, null, 0, "code", [], [[8, "innerHTML", 1]], null, null, null, null))], function (_ck, _v) {
    var _co = _v.component;var currVal_4 = _co.statusCode === 401 && _co.openapi.secrets.hasSecurity;_ck(_v, 6, 0, currVal_4);var currVal_5 = _co.responseAlert;_ck(_v, 8, 0, currVal_5);
  }, function (_ck, _v) {
    var _co = _v.component;var currVal_0 = !_co.refreshing;_ck(_v, 0, 0, currVal_0);var currVal_1 = !_co.error;_ck(_v, 2, 0, currVal_1);var currVal_2 = _co.error;_ck(_v, 3, 0, currVal_2);var currVal_3 = _co.response === undefined || _co.refreshing;_ck(_v, 4, 0, currVal_3);var currVal_6 = _co.response === undefined;_ck(_v, 9, 0, currVal_6);var currVal_7 = !_co.showHeaders;var currVal_8 = _co.showHeaders;_ck(_v, 12, 0, currVal_7, currVal_8);var currVal_9 = !_co.showHeaders;var currVal_10 = _co.highlightedHeaders;_ck(_v, 16, 0, currVal_9, currVal_10);var currVal_11 = !_co.showHeaders;_ck(_v, 17, 0, currVal_11);var currVal_12 = _co.highlightedResponse;_ck(_v, 18, 0, currVal_12);
  });
}
function View_APIResponseComponent_Host_0(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "api-response", [], null, null, null, View_APIResponseComponent_0, RenderType_APIResponseComponent)), i0.ɵdid(1, 573440, null, 0, i2.APIResponseComponent, [i3.UtilsService, i4.OpenAPIService], null, null)], null, null);
}
var APIResponseComponentNgFactory = i0.ɵccf("api-response", i2.APIResponseComponent, View_APIResponseComponent_Host_0, { response: "response", headers: "headers", statusCode: "statusCode", isRecipe: "isRecipe" }, {}, []);
exports.APIResponseComponentNgFactory = APIResponseComponentNgFactory;

/***/ }),

/***/ "./src/app/components/api-response.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APIResponseComponent", function() { return APIResponseComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__services_utils__ = __webpack_require__("./src/app/services/utils.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");


var MAX_RESPONSE_LENGTH_FOR_HIGHLIGHT = 100 * 1000;
var APIResponseComponent = /** @class */ (function () {
    function APIResponseComponent(utils, openapi) {
        this.utils = utils;
        this.openapi = openapi;
    }
    APIResponseComponent.prototype.ngOnChanges = function () {
        this.headers = this.headers || [];
        this.setAlert();
        this.setResponseType();
        this.stringifyResponse();
    };
    APIResponseComponent.prototype.stringifyResponse = function () {
        var contentTypeHeader = this.headers.filter(function (s) { return s.toLowerCase().indexOf('content-type') === 0; })[0] || '';
        var responseString = '';
        if (this.response instanceof Document) {
            responseString = window.WebCodeBeauty.xml((new XMLSerializer()).serializeToString(this.response));
        }
        else {
            if (typeof this.response === 'object') {
                responseString = JSON.stringify(this.response, null, 2);
            }
            else {
                responseString = this.response || '';
            }
            if (contentTypeHeader.indexOf('application/json') !== -1) {
                try {
                    responseString = JSON.stringify(JSON.parse(responseString), null, 2);
                }
                catch (e) {
                    console.log('invalid JSON:', responseString);
                }
            }
            else if (contentTypeHeader.indexOf('/xml') !== -1) {
                responseString = window.WebCodeBeauty.xml(responseString);
            }
        }
        this.highlightedHeaders = window.Prism.highlight(this.headers.join('\r\n'), window.Prism.languages.http);
        var highlightLang = '';
        if (contentTypeHeader.indexOf('/xml') !== -1) {
            highlightLang = 'xml';
        }
        else if (contentTypeHeader.indexOf('/json') !== -1) {
            highlightLang = 'json';
        }
        if (highlightLang && responseString.length < MAX_RESPONSE_LENGTH_FOR_HIGHLIGHT) {
            this.highlightedResponse = window.Prism.highlight(responseString, window.Prism.languages[highlightLang]);
        }
        else {
            responseString = responseString.replace(/</g, '&lt;').replace(/>/g, '&gt;');
            this.highlightedResponse = responseString;
        }
    };
    APIResponseComponent.prototype.setAlert = function () {
        if (window.checkResponse) {
            this.responseAlert = window.checkResponse(this.response, this.statusCode);
        }
        else {
            this.responseAlert = { type: 'danger', message: 'Status Code ' + this.statusCode };
            if (this.statusCode >= 200 && this.statusCode < 300)
                this.responseAlert.type = 'success';
            else if (this.statusCode >= 300 && this.statusCode < 400)
                this.responseAlert.type = 'warning';
        }
        if (this.isRecipe) {
            if (this.responseAlert.type === 'success') {
                this.responseAlert.message =
                    "Success! Review the response below and click the <b>next</b> button above when you're ready to continue.";
            }
            else {
                this.responseAlert.message =
                    "The API returned an error. Please review the response below" +
                        " and follow the instructions above to execute this step correctly.<br>" +
                        this.responseAlert.message;
            }
        }
    };
    APIResponseComponent.prototype.setResponseType = function () {
        var _this = this;
        this.responseType = '';
        this.headers.forEach(function (header) {
            var m = header.match(/content-type:\s*(.*)$/i);
            if (!m)
                return;
            var contentType = m[1];
            if (contentType.match(/json/))
                _this.responseType = 'JSON';
            else if (contentType.match(/xml/))
                _this.responseType = 'XML';
            // TODO: add more content types
        });
    };
    return APIResponseComponent;
}());



/***/ }),

/***/ "./src/app/components/auth.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.AuthComponentNgFactory = exports.RenderType_AuthComponent = undefined;
exports.View_AuthComponent_0 = View_AuthComponent_0;
exports.View_AuthComponent_Host_0 = View_AuthComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i1 = _interopRequireWildcard(_common);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i2 = _interopRequireWildcard(_forms);

var _auth = __webpack_require__("./src/app/components/auth.ts");

var i3 = _interopRequireWildcard(_auth);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i4 = _interopRequireWildcard(_openapi);

var _secret = __webpack_require__("./src/app/services/secret.ts");

var i5 = _interopRequireWildcard(_secret);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles_AuthComponent = [".nav-tabs[_ngcontent-%COMP%] {\n        margin-bottom: 15px;\n      }"];
var RenderType_AuthComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_AuthComponent, data: {} });
exports.RenderType_AuthComponent = RenderType_AuthComponent;

function View_AuthComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [["class", "alert alert-danger"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.error;_ck(_v, 1, 0, currVal_0);
    });
}
function View_AuthComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "li", [], null, null, null, null, null)), i0.ɵdid(1, 278528, null, 0, i1.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(2, { active: 0 }), (_l()(), i0.ɵeld(3, 0, null, null, 0, "a", [], [[8, "innerHTML", 1]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.setSecurityDefinition(_v.context.$implicit.value) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _ck(_v, 2, 0, _co.securityDefinition === _v.context.$implicit.value);_ck(_v, 1, 0, currVal_0);
    }, function (_ck, _v) {
        var currVal_1 = _v.context.$implicit.key;_ck(_v, 3, 0, currVal_1);
    });
}
function View_AuthComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 8, "div", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 7, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "label", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 5, "input", [["class", "form-control"], ["name", "apiKey"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 4)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 4).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 4)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 4)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.secrets.secrets[_co.securityDefinition.name] = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(4, 16384, null, 0, i2.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i2.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i2.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i2.DefaultValueAccessor]), i0.ɵdid(6, 671744, null, 0, i2.NgModel, [[2, i2.ControlContainer], [8, null], [8, null], [2, i2.NG_VALUE_ACCESSOR]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i2.NgControl, null, [i2.NgModel]), i0.ɵdid(8, 16384, null, 0, i2.NgControlStatus, [i2.NgControl], null, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_8 = "apiKey";var currVal_9 = _co.secrets.secrets[_co.securityDefinition.name];_ck(_v, 6, 0, currVal_8, currVal_9);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.securityDefinition.name;_ck(_v, 2, 0, currVal_0);var currVal_1 = i0.ɵnov(_v, 8).ngClassUntouched;var currVal_2 = i0.ɵnov(_v, 8).ngClassTouched;var currVal_3 = i0.ɵnov(_v, 8).ngClassPristine;var currVal_4 = i0.ɵnov(_v, 8).ngClassDirty;var currVal_5 = i0.ɵnov(_v, 8).ngClassValid;var currVal_6 = i0.ɵnov(_v, 8).ngClassInvalid;var currVal_7 = i0.ɵnov(_v, 8).ngClassPending;_ck(_v, 3, 0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7);
    });
}
function View_AuthComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 18, "div", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "label", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Username"])), (_l()(), i0.ɵeld(4, 0, null, null, 5, "input", [["class", "form-control"], ["name", "username"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 5)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 5).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 5)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 5)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.secrets.secrets.username = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(5, 16384, null, 0, i2.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i2.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i2.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i2.DefaultValueAccessor]), i0.ɵdid(7, 671744, null, 0, i2.NgModel, [[2, i2.ControlContainer], [8, null], [8, null], [2, i2.NG_VALUE_ACCESSOR]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i2.NgControl, null, [i2.NgModel]), i0.ɵdid(9, 16384, null, 0, i2.NgControlStatus, [i2.NgControl], null, null), (_l()(), i0.ɵeld(10, 0, null, null, 8, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 1, "label", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Password"])), (_l()(), i0.ɵeld(13, 0, null, null, 5, "input", [["class", "form-control"], ["name", "password"], ["type", "password"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 14)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 14).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 14)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 14)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.secrets.secrets.password = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(14, 16384, null, 0, i2.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i2.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i2.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i2.DefaultValueAccessor]), i0.ɵdid(16, 671744, null, 0, i2.NgModel, [[2, i2.ControlContainer], [8, null], [8, null], [2, i2.NG_VALUE_ACCESSOR]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i2.NgControl, null, [i2.NgModel]), i0.ɵdid(18, 16384, null, 0, i2.NgControlStatus, [i2.NgControl], null, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = "username";var currVal_8 = _co.secrets.secrets.username;_ck(_v, 7, 0, currVal_7, currVal_8);var currVal_16 = "password";var currVal_17 = _co.secrets.secrets.password;_ck(_v, 16, 0, currVal_16, currVal_17);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 9).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 9).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 9).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 9).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 9).ngClassValid;var currVal_5 = i0.ɵnov(_v, 9).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 9).ngClassPending;_ck(_v, 4, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);var currVal_9 = i0.ɵnov(_v, 18).ngClassUntouched;var currVal_10 = i0.ɵnov(_v, 18).ngClassTouched;var currVal_11 = i0.ɵnov(_v, 18).ngClassPristine;var currVal_12 = i0.ɵnov(_v, 18).ngClassDirty;var currVal_13 = i0.ɵnov(_v, 18).ngClassValid;var currVal_14 = i0.ɵnov(_v, 18).ngClassInvalid;var currVal_15 = i0.ɵnov(_v, 18).ngClassPending;_ck(_v, 13, 0, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15);
    });
}
function View_AuthComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "alert alert-warning"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "p", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["OAuth 2.0 has not been set up for this client. Clicking 'Authorize' may not work."])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "p", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["You can still generate a token manually and paste it into the box below."]))], null, null);
}
function View_AuthComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 11, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "label", [["class", "checkbox-inline"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 5, "input", [["type", "checkbox"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"], [null, "blur"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("change" === en) {
            var pd_0 = i0.ɵnov(_v, 3).onChange($event.target.checked) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 3).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("ngModelChange" === en) {
            var pd_2 = (_co.addedScopes[_v.context.$implicit.key] = $event) !== false;
            ad = pd_2 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(3, 16384, null, 0, i2.CheckboxControlValueAccessor, [i0.Renderer2, i0.ElementRef], null, null), i0.ɵprd(1024, null, i2.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i2.CheckboxControlValueAccessor]), i0.ɵdid(5, 671744, null, 0, i2.NgModel, [[2, i2.ControlContainer], [8, null], [8, null], [2, i2.NG_VALUE_ACCESSOR]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i2.NgControl, null, [i2.NgModel]), i0.ɵdid(7, 16384, null, 0, i2.NgControlStatus, [i2.NgControl], null, null), (_l()(), i0.ɵeld(8, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(9, null, ["", ""])), (_l()(), i0.ɵeld(10, 0, null, null, 1, "p", [["class", "small"]], null, null, null, null, null)), (_l()(), i0.ɵted(11, null, ["", ""]))], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = i0.ɵinlineInterpolate(1, "scope-", _v.context.$implicit.key, "");var currVal_8 = _co.addedScopes[_v.context.$implicit.key];_ck(_v, 5, 0, currVal_7, currVal_8);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 7).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 7).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 7).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 7).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 7).ngClassValid;var currVal_5 = i0.ɵnov(_v, 7).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 7).ngClassPending;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);var currVal_9 = _v.context.$implicit.key;_ck(_v, 9, 0, currVal_9);var currVal_10 = _v.context.$implicit.value;_ck(_v, 11, 0, currVal_10);
    });
}
function View_AuthComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "div", [["class", "btn-toolbar"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "div", [["class", "btn btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.setAllScopes(true) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Select All"])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "div", [["class", "btn btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.setAllScopes(false) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Clear All"]))], null, null);
}
function View_AuthComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_7)), i0.ɵdid(2, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(3, 0, null, null, 10, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, "label", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["OAuth 2.0 Token"])), (_l()(), i0.ɵeld(6, 0, null, null, 1, "div", [["class", "help-block"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Click 'Authorize' to generate a new token"])), (_l()(), i0.ɵeld(8, 0, null, null, 5, "input", [["class", "form-control"], ["name", "oauth2"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 9)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 9).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 9)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 9)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.secrets.secrets.oauth2 = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(9, 16384, null, 0, i2.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i2.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i2.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i2.DefaultValueAccessor]), i0.ɵdid(11, 671744, null, 0, i2.NgModel, [[2, i2.ControlContainer], [8, null], [8, null], [2, i2.NG_VALUE_ACCESSOR]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i2.NgControl, null, [i2.NgModel]), i0.ɵdid(13, 16384, null, 0, i2.NgControlStatus, [i2.NgControl], null, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_8)), i0.ɵdid(15, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_9)), i0.ɵdid(17, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.openapi.currentVersion || !_co.openapi.currentVersion.client_id;_ck(_v, 2, 0, currVal_0);var currVal_8 = "oauth2";var currVal_9 = _co.secrets.secrets.oauth2;_ck(_v, 11, 0, currVal_8, currVal_9);var currVal_10 = _co.scopes;_ck(_v, 15, 0, currVal_10);var currVal_11 = _co.scopes.length;_ck(_v, 17, 0, currVal_11);
    }, function (_ck, _v) {
        var currVal_1 = i0.ɵnov(_v, 13).ngClassUntouched;var currVal_2 = i0.ɵnov(_v, 13).ngClassTouched;var currVal_3 = i0.ɵnov(_v, 13).ngClassPristine;var currVal_4 = i0.ɵnov(_v, 13).ngClassDirty;var currVal_5 = i0.ɵnov(_v, 13).ngClassValid;var currVal_6 = i0.ɵnov(_v, 13).ngClassInvalid;var currVal_7 = i0.ɵnov(_v, 13).ngClassPending;_ck(_v, 8, 0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7);
    });
}
function View_AuthComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "div", [["class", "text-left"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "div", [["class", "alert alert-success"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "div", [["class", "alert alert-warning"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""])), (_l()(), i0.ɵeld(5, 0, null, null, 1, "div", [["class", "alert alert-danger"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(6, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.alert.success;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.alert.success;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.alert.warning;_ck(_v, 3, 0, currVal_2);var currVal_3 = _co.alert.warning;_ck(_v, 4, 0, currVal_3);var currVal_4 = !_co.alert.danger;_ck(_v, 5, 0, currVal_4);var currVal_5 = _co.alert.danger;_ck(_v, 6, 0, currVal_5);
    });
}
function View_AuthComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Authorize"]))], null, null);
}
function View_AuthComponent_12(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "i", [["class", "fa fa-spin fa-refresh"]], null, null, null, null, null))], null, null);
}
function View_AuthComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 32, "div", [["class", "modal fade"], ["id", "AuthenticationModal"], ["tabindex", "-1"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 31, "div", [["class", "modal-dialog"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 30, "form", [["class", "modal-content"], ["novalidate", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "submit"], [null, "reset"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("submit" === en) {
            var pd_0 = i0.ɵnov(_v, 4).onSubmit($event) !== false;
            ad = pd_0 && ad;
        }if ("reset" === en) {
            var pd_1 = i0.ɵnov(_v, 4).onReset() !== false;
            ad = pd_1 && ad;
        }if ("submit" === en) {
            var pd_2 = _co.submit() !== false;
            ad = pd_2 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(3, 16384, null, 0, i2.ɵbf, [], null, null), i0.ɵdid(4, 4210688, null, 0, i2.NgForm, [[8, null], [8, null]], null, null), i0.ɵprd(2048, null, i2.ControlContainer, null, [i2.NgForm]), i0.ɵdid(6, 16384, null, 0, i2.NgControlStatusGroup, [i2.ControlContainer], null, null), (_l()(), i0.ɵeld(7, 0, null, null, 5, "div", [["class", "modal-header"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 0, null, null, 1, "button", [["aria-label", "Close"], ["class", "close"], ["data-dismiss", "modal"], ["type", "button"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 0, "i", [["class", "fa fa-times"]], null, null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 2, "div", [["class", "modal-title"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 1, "h3", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["API Authorization"])), (_l()(), i0.ɵeld(13, 0, null, null, 11, "div", [["class", "modal-body"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_2)), i0.ɵdid(15, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(16, 0, null, null, 2, "ul", [["class", "nav nav-tabs nav-justified"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_3)), i0.ɵdid(18, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_4)), i0.ɵdid(20, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_5)), i0.ɵdid(22, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_6)), i0.ɵdid(24, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(25, 0, null, null, 7, "div", [["class", "modal-footer"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_10)), i0.ɵdid(27, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(28, 0, null, null, 4, "button", [["class", "btn btn-success"], ["type", "submit"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_11)), i0.ɵdid(30, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_12)), i0.ɵdid(32, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = _co.error;_ck(_v, 15, 0, currVal_7);var currVal_9 = _co.securityDefinitions;_ck(_v, 18, 0, currVal_9);var currVal_10 = _co.securityDefinition.type === "apiKey";_ck(_v, 20, 0, currVal_10);var currVal_11 = _co.securityDefinition.type === "basic";_ck(_v, 22, 0, currVal_11);var currVal_12 = _co.securityDefinition.type === "oauth2";_ck(_v, 24, 0, currVal_12);var currVal_13 = _co.alert;_ck(_v, 27, 0, currVal_13);var currVal_14 = !_co.loading;_ck(_v, 30, 0, currVal_14);var currVal_15 = _co.loading;_ck(_v, 32, 0, currVal_15);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = i0.ɵnov(_v, 6).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 6).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 6).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 6).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 6).ngClassValid;var currVal_5 = i0.ɵnov(_v, 6).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 6).ngClassPending;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);var currVal_8 = _co.securityDefinitions.length < 2;_ck(_v, 16, 0, currVal_8);
    });
}
function View_AuthComponent_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵand(16777216, null, null, 1, null, View_AuthComponent_1)), i0.ɵdid(1, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.securityDefinition;_ck(_v, 1, 0, currVal_0);
    }, null);
}
function View_AuthComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "auth", [], null, null, null, View_AuthComponent_0, RenderType_AuthComponent)), i0.ɵdid(1, 180224, null, 0, i3.AuthComponent, [i4.OpenAPIService, i5.SecretService], null, null)], null, null);
}
var AuthComponentNgFactory = i0.ɵccf("auth", i3.AuthComponent, View_AuthComponent_Host_0, {}, {}, []);
exports.AuthComponentNgFactory = AuthComponentNgFactory;

/***/ }),

/***/ "./src/app/components/auth.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthComponent", function() { return AuthComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_secret__ = __webpack_require__("./src/app/services/secret.ts");


var SORT_SECURITY_DEFINITIONS = function (d1, d2) {
    if (d1.type === d2.type)
        return 0;
    if (d1.type === 'oauth2')
        return -1;
    if (d2.type === 'oauth2')
        return 1;
    return 0;
};
var ɵ0 = SORT_SECURITY_DEFINITIONS;
var AuthComponent = /** @class */ (function () {
    function AuthComponent(openapi, secrets) {
        var _this = this;
        this.openapi = openapi;
        this.secrets = secrets;
        this.addedScopes = {};
        this.subscriptions = [];
        this.subscriptions.push(this.openapi.spec.subscribe(function (spec) {
            if (!spec)
                return;
            if (_this.openapi.parsed.securityDefinitions) {
                _this.securityDefinitions = _this.iterateObject(_this.openapi.parsed.securityDefinitions);
                _this.securityDefinitions.sort(function (d1, d2) { return SORT_SECURITY_DEFINITIONS(d1.value, d2.value); });
                if (_this.securityDefinitions.length)
                    _this.setSecurityDefinition(_this.securityDefinitions[0].value);
            }
            else {
                _this.securityDefinitions = [];
                _this.securityDefinition = null;
            }
        }));
    }
    AuthComponent.prototype.setSecurityDefinition = function (def) {
        this.securityDefinition = def;
        if (def.type === 'oauth2') {
            this.scopes = this.iterateObject(def.scopes || {});
        }
        else {
            this.scopes = [];
        }
    };
    AuthComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    AuthComponent.prototype.closeModal = function () {
        window.jQuery('#AuthenticationModal').modal('hide');
    };
    AuthComponent.prototype.submit = function () {
        var _this = this;
        this.error = null;
        if (this.securityDefinition.type !== 'oauth2') {
            this.secrets.setSecrets(this.secrets.secrets);
            this.closeModal();
            return;
        }
        var scopes = Object.keys(this.addedScopes).filter(function (name) { return _this.addedScopes[name]; });
        this.openapi.startOAuth(this.securityDefinition, scopes)
            .then(function () { return _this.closeModal(); })
            .catch(function (e) { return _this.error = e.message; });
    };
    AuthComponent.prototype.iterateObject = function (obj) {
        return Object.keys(obj).map(function (k) { return ({ key: k, value: obj[k] }); });
    };
    AuthComponent.prototype.setAllScopes = function (val) {
        var _this = this;
        if (val === void 0) { val = false; }
        this.scopes.forEach(function (iter) {
            _this.addedScopes[iter.key] = val;
        });
    };
    return AuthComponent;
}());




/***/ }),

/***/ "./src/app/components/documentation.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.OperationDocumentationComponentNgFactory = exports.RenderType_OperationDocumentationComponent = exports.DocumentationComponentNgFactory = exports.RenderType_DocumentationComponent = undefined;
exports.View_DocumentationComponent_0 = View_DocumentationComponent_0;
exports.View_DocumentationComponent_Host_0 = View_DocumentationComponent_Host_0;
exports.View_OperationDocumentationComponent_0 = View_OperationDocumentationComponent_0;
exports.View_OperationDocumentationComponent_Host_0 = View_OperationDocumentationComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _searchResults = __webpack_require__("./src/app/components/search-results.ngfactory.js");

var i1 = _interopRequireWildcard(_searchResults);

var _searchResults2 = __webpack_require__("./src/app/components/search-results.ts");

var i2 = _interopRequireWildcard(_searchResults2);

var _search = __webpack_require__("./src/app/services/search.ts");

var i3 = _interopRequireWildcard(_search);

var _routes = __webpack_require__("./src/app/services/routes.ts");

var i4 = _interopRequireWildcard(_routes);

var _schema = __webpack_require__("./src/app/components/schema.ngfactory.js");

var i5 = _interopRequireWildcard(_schema);

var _schema2 = __webpack_require__("./src/app/components/schema.ts");

var i6 = _interopRequireWildcard(_schema2);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i7 = _interopRequireWildcard(_openapi);

var _platform = __webpack_require__("./src/app/services/platform.service.ts");

var i8 = _interopRequireWildcard(_platform);

var _documentation = __webpack_require__("./src/app/components/documentation.ts");

var i9 = _interopRequireWildcard(_documentation);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i10 = _interopRequireWildcard(_utils);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i11 = _interopRequireWildcard(_common);

var _router = __webpack_require__("./node_modules/@angular/router/esm5/router.js");

var i12 = _interopRequireWildcard(_router);

var _auth = __webpack_require__("./src/app/components/auth.ngfactory.js");

var i13 = _interopRequireWildcard(_auth);

var _auth2 = __webpack_require__("./src/app/components/auth.ts");

var i14 = _interopRequireWildcard(_auth2);

var _secret = __webpack_require__("./src/app/services/secret.ts");

var i15 = _interopRequireWildcard(_secret);

var _sideMenu = __webpack_require__("./src/app/components/side-menu.ngfactory.js");

var i16 = _interopRequireWildcard(_sideMenu);

var _sideMenu2 = __webpack_require__("./src/app/components/side-menu.ts");

var i17 = _interopRequireWildcard(_sideMenu2);

var _menu = __webpack_require__("./src/app/services/menu.ts");

var i18 = _interopRequireWildcard(_menu);

var _platformBrowser = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");

var i19 = _interopRequireWildcard(_platformBrowser);

var _http = __webpack_require__("./node_modules/@angular/common/esm5/http.js");

var i20 = _interopRequireWildcard(_http);

var _apiCall = __webpack_require__("./src/app/components/api-call.ngfactory.js");

var i21 = _interopRequireWildcard(_apiCall);

var _apiCall2 = __webpack_require__("./src/app/components/api-call.ts");

var i22 = _interopRequireWildcard(_apiCall2);

var _tracker = __webpack_require__("./src/app/services/tracker.ts");

var i23 = _interopRequireWildcard(_tracker);

var _parameter = __webpack_require__("./src/app/components/parameter.ts");

var i24 = _interopRequireWildcard(_parameter);

var _parameter2 = __webpack_require__("./src/app/components/parameter.ngfactory.js");

var i25 = _interopRequireWildcard(_parameter2);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles_DocumentationComponent = [".discussion-frame[_ngcontent-%COMP%] {\n        border: 1px solid #333;\n        width: 100%;\n        height: 400px;\n      }\n      .docs-contents[_ngcontent-%COMP%], search-results[_ngcontent-%COMP%] {\n        max-width: 800px;\n      }"];
var RenderType_DocumentationComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_DocumentationComponent, data: {} });
exports.RenderType_DocumentationComponent = RenderType_DocumentationComponent;

function View_DocumentationComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "i", [["class", "fa fa-chevron-right"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeItem.fullTitle || _co.activeItem.title;_ck(_v, 3, 0, currVal_0);
    });
}
function View_DocumentationComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "i", [["class", "fa fa-chevron-right"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["[", "]"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.search.query;_ck(_v, 3, 0, currVal_0);
    });
}
function View_DocumentationComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [["class", "alert alert-danger"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.error;_ck(_v, 1, 0, currVal_0);
    });
}
function View_DocumentationComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "search-results", [], null, null, null, i1.View_SearchResultsComponent_0, i1.RenderType_SearchResultsComponent)), i0.ɵdid(1, 49152, null, 0, i2.SearchResultsComponent, [i3.SearchService, i4.RoutesService], null, null)], null, null);
}
function View_DocumentationComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "a", [["target", "_blank"]], [[8, "href", 4]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "i", [["class", "fa fa-left fa-github"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Edit on GitHub"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = i0.ɵinlineInterpolate(2, "https://github.com/", _co.utils.config.github.repo, "/tree/master/", _co.activeItem == null ? null : _co.activeItem.markdownFile, "");_ck(_v, 0, 0, currVal_0);
    });
}
function View_DocumentationComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "h1", [["class", "text-center"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "i", [["class", "fa fa-spin fa-refresh"]], null, null, null, null, null))], null, null);
}
function View_DocumentationComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "h1", [["class", "text-center"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "i", [["class", "fa fa-spin fa-refresh"]], null, null, null, null, null))], null, null);
}
function View_DocumentationComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "docs-definition"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "schema", [], null, null, null, i5.View_SchemaComponent_0, i5.RenderType_SchemaComponent)), i0.ɵdid(2, 573440, null, 0, i6.SchemaComponent, [i7.OpenAPIService, i8.PlatformService], { title: [0, "title"], schema: [1, "schema"], depth: [2, "depth"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeItem == null ? null : _co.activeItem.definition;var currVal_1 = _co.openapi.original.definitions[_co.activeItem == null ? null : _co.activeItem.definition];var currVal_2 = 3;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_DocumentationComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "docs-operation"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "operation-documentation", [], null, null, null, View_OperationDocumentationComponent_0, RenderType_OperationDocumentationComponent)), i0.ɵdid(2, 573440, null, 0, i9.OperationDocumentationComponent, [i10.UtilsService, i7.OpenAPIService, i4.RoutesService], { apiCall: [0, "apiCall"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.openapi.getAPICall(_co.activeItem == null ? null : _co.activeItem.operation);_ck(_v, 2, 0, currVal_0);
    }, null);
}
function View_DocumentationComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_10)), i0.ɵdid(2, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_11)), i0.ɵdid(4, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeItem == null ? null : _co.activeItem.definition;_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.activeItem == null ? null : _co.activeItem.operation;_ck(_v, 4, 0, currVal_1);
    }, null);
}
function View_DocumentationComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "docs-openapi"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_8)), i0.ɵdid(2, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_9)), i0.ɵdid(4, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.openapi.loading;_ck(_v, 2, 0, currVal_0);var currVal_1 = !_co.openapi.loading;_ck(_v, 4, 0, currVal_1);
    }, null);
}
function View_DocumentationComponent_14(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "a", [], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 1).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(1, 671744, null, 0, i12.RouterLinkWithHref, [i12.Router, i12.ActivatedRoute, i11.LocationStrategy], { routerLink: [0, "routerLink"] }, null), (_l()(), i0.ɵted(2, null, [" ", ""]))], function (_ck, _v) {
        var _co = _v.component;var currVal_2 = _co.routes.getAPICallLink(_co.openapi.getAPICall(_v.parent.context.$implicit.operation), "documentation");_ck(_v, 1, 0, currVal_2);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 1).target;var currVal_1 = i0.ɵnov(_v, 1).href;_ck(_v, 0, 0, currVal_0, currVal_1);var currVal_3 = _v.parent.context.$implicit.operation;_ck(_v, 2, 0, currVal_3);
    });
}
function View_DocumentationComponent_13(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_14)), i0.ɵdid(2, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var currVal_0 = _v.context.$implicit.operation;_ck(_v, 2, 0, currVal_0);
    }, null);
}
function View_DocumentationComponent_12(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "docs-see-also"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["See Also"])), (_l()(), i0.ɵeld(3, 0, null, null, 2, "ul", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_13)), i0.ɵdid(5, 802816, null, 0, i11.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeItem.seeAlso;_ck(_v, 5, 0, currVal_0);
    }, null);
}
function View_DocumentationComponent_16(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "li", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "a", [], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 2).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(2, 671744, null, 0, i12.RouterLinkWithHref, [i12.Router, i12.ActivatedRoute, i11.LocationStrategy], { routerLink: [0, "routerLink"] }, null), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""]))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.routes.getNavigationLink(_v.context.$implicit.path);_ck(_v, 2, 0, currVal_3);
    }, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit.hidden;_ck(_v, 0, 0, currVal_0);var currVal_1 = i0.ɵnov(_v, 2).target;var currVal_2 = i0.ɵnov(_v, 2).href;_ck(_v, 1, 0, currVal_1, currVal_2);var currVal_4 = _v.context.$implicit.title;_ck(_v, 4, 0, currVal_4);
    });
}
function View_DocumentationComponent_15(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "docs-children"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Subtopics"])), (_l()(), i0.ɵeld(3, 0, null, null, 2, "ul", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_16)), i0.ɵdid(5, 802816, null, 0, i11.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeItem == null ? null : _co.activeItem.children;_ck(_v, 5, 0, currVal_0);
    }, null);
}
function View_DocumentationComponent_17(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "discussion"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "hr", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 4, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""])), (_l()(), i0.ɵeld(5, 0, null, null, 1, "a", [["class", "discussion-link"], ["target", "_blank"]], [[8, "href", 4]], null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, "i", [["class", "fa fa-right fa-external-link"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 0, "iframe", [["class", "discussion-frame"]], [[8, "src", 5]], [[null, "load"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("load" === en) {
            var pd_0 = _co.maybeResizeIframe() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.utils.config.uiOptions.discussionTitle;_ck(_v, 4, 0, currVal_0);var currVal_1 = _co.discussionURL;_ck(_v, 5, 0, currVal_1);var currVal_2 = _co.discussionURL;_ck(_v, 7, 0, currVal_2);
    });
}
function View_DocumentationComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { htmlContents: 0 }), (_l()(), i0.ɵeld(1, 0, null, null, 1, "auth", [], null, null, null, i13.View_AuthComponent_0, i13.RenderType_AuthComponent)), i0.ɵdid(2, 180224, null, 0, i14.AuthComponent, [i7.OpenAPIService, i15.SecretService], null, null), (_l()(), i0.ɵeld(3, 0, null, null, 28, "div", [["class", "container-fluid main-container"], ["id", "Documentation"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 27, "side-menu", [["basePage", "documentation"]], null, null, null, i16.View_SideMenuComponent_0, i16.RenderType_SideMenuComponent)), i0.ɵdid(5, 245760, null, 0, i17.SideMenuComponent, [i12.ActivatedRoute, i4.RoutesService, i8.PlatformService, i10.UtilsService, i7.OpenAPIService, i18.MenuService, i3.SearchService], { basePage: [0, "basePage"] }, null), (_l()(), i0.ɵeld(6, 0, null, 0, 6, "h1", [["class", "breadcrumbs"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(8, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_1)), i0.ɵdid(10, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_2)), i0.ɵdid(12, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, 0, 1, null, View_DocumentationComponent_3)), i0.ɵdid(14, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(15, 0, null, 0, 14, "div", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_4)), i0.ɵdid(17, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(18, 0, null, null, 11, "div", [["class", "docs-body"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_5)), i0.ɵdid(20, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_6)), i0.ɵdid(22, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(23, 0, [[1, 0], ["htmlContents", 1]], null, 0, "div", [["class", "docs-contents"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_7)), i0.ɵdid(25, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_12)), i0.ɵdid(27, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_DocumentationComponent_15)), i0.ɵdid(29, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, 0, 1, null, View_DocumentationComponent_17)), i0.ɵdid(31, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = "documentation";_ck(_v, 5, 0, currVal_0);var currVal_2 = _co.activeItem && !_co.showResults;_ck(_v, 10, 0, currVal_2);var currVal_3 = _co.showResults;_ck(_v, 12, 0, currVal_3);var currVal_4 = _co.error;_ck(_v, 14, 0, currVal_4);var currVal_5 = _co.showResults;_ck(_v, 17, 0, currVal_5);var currVal_7 = (_co.activeItem == null ? null : _co.activeItem.markdownFile) && !(_co.activeItem == null ? null : _co.activeItem.disableEditLink) && _co.utils.config.github.repo;_ck(_v, 20, 0, currVal_7);var currVal_8 = (_co.activeItem == null ? null : _co.activeItem.markdownURL) && !(_co.activeItem == null ? null : _co.activeItem.contents) && !_co.error;_ck(_v, 22, 0, currVal_8);var currVal_10 = (_co.activeItem == null ? null : _co.activeItem.definition) || (_co.activeItem == null ? null : _co.activeItem.operation);_ck(_v, 25, 0, currVal_10);var currVal_11 = (_co.activeItem == null ? null : _co.activeItem.seeAlso) && (_co.activeItem == null ? null : _co.activeItem.seeAlso.length);_ck(_v, 27, 0, currVal_11);var currVal_12 = (_co.activeItem == null ? null : _co.activeItem.children) && (_co.activeItem == null ? null : _co.activeItem.children.length);_ck(_v, 29, 0, currVal_12);var currVal_13 = _co.discussionURL && !_co.showResults && !_co.platformService.isServer;_ck(_v, 31, 0, currVal_13);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.title;_ck(_v, 8, 0, currVal_1);var currVal_6 = _co.showResults;_ck(_v, 18, 0, currVal_6);var currVal_9 = !(_co.activeItem == null ? null : _co.activeItem.contents);_ck(_v, 23, 0, currVal_9);
    });
}
function View_DocumentationComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "documentation", [], null, null, null, View_DocumentationComponent_0, RenderType_DocumentationComponent)), i0.ɵdid(1, 4374528, null, 0, i9.DocumentationComponent, [i19.DomSanitizer, i8.PlatformService, i3.SearchService, i18.MenuService, i4.RoutesService, i19.TransferState, i20.HttpClient, i7.OpenAPIService, i10.UtilsService, "ORIGIN_URL"], null, null)], null, null);
}
var DocumentationComponentNgFactory = i0.ɵccf("documentation", i9.DocumentationComponent, View_DocumentationComponent_Host_0, {}, {}, []);
exports.DocumentationComponentNgFactory = DocumentationComponentNgFactory;

var styles_OperationDocumentationComponent = [".try-it-button[_ngcontent-%COMP%] {\n      margin-bottom: 30px;\n    }\n    .nav-tabs[_ngcontent-%COMP%] {\n      margin-bottom: 15px;\n    }\n    .status-code-tabs[_ngcontent-%COMP%] {\n      font-weight: bold;\n    }\n    .parameter[_ngcontent-%COMP%] {\n      margin-bottom: 20px;\n    }\n    .parameter-details[_ngcontent-%COMP%] {\n      padding-left: 15px;\n    }\n    .input-output-box[_ngcontent-%COMP%] {\n      border: 1px solid #333;\n      border-radius: 4px;\n      padding: 15px;\n      margin-top: 15px;\n    }\n    .input-output-box[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%] {\n      margin-bottom: 20px;\n    }"];
var RenderType_OperationDocumentationComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_OperationDocumentationComponent, data: {} });
exports.RenderType_OperationDocumentationComponent = RenderType_OperationDocumentationComponent;

function View_OperationDocumentationComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "alert alert-info"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "p", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-left fa-exclamation-circle"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.utils.config.uiOptions.messages.beta;_ck(_v, 4, 0, currVal_0);
    });
}
function View_OperationDocumentationComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "alert alert-warning"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "p", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-left fa-exclamation-circle"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.utils.config.uiOptions.messages.deprecated;_ck(_v, 4, 0, currVal_0);
    });
}
function View_OperationDocumentationComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "a", [["class", "btn btn-primary try-it-button"]], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.tryIt = true) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Try it out"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.tryIt;_ck(_v, 0, 0, currVal_0);
    });
}
function View_OperationDocumentationComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "a", [["class", "btn btn-primary try-it-button"]], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 1).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(1, 671744, null, 0, i12.RouterLinkWithHref, [i12.Router, i12.ActivatedRoute, i11.LocationStrategy], { routerLink: [0, "routerLink"] }, null), (_l()(), i0.ɵted(-1, null, ["Try it out"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_2 = _co.routes.getAPICallLink(_co.apiCall, "console");_ck(_v, 1, 0, currVal_2);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 1).target;var currVal_1 = i0.ɵnov(_v, 1).href;_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_OperationDocumentationComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 12, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 11, "div", [["class", "btn-toolbar"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 4, "button", [["class", "btn btn-primary execute-button"]], [[8, "disabled", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.apiCallComponent.execute() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""])), (_l()(), i0.ɵeld(5, 0, null, null, 0, "i", [["class", "fa fa-right fa-play"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, "i", [["class", "fa fa-right fa-spin fa-refresh"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 5, "div", [["class", "btn-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 0, null, null, 1, "a", [["class", "btn btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.tryIt = false) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Hide"])), (_l()(), i0.ɵeld(10, 0, null, null, 2, "a", [["class", "btn btn-default"]], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 11).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(11, 671744, null, 0, i12.RouterLinkWithHref, [i12.Router, i12.ActivatedRoute, i11.LocationStrategy], { routerLink: [0, "routerLink"] }, null), (_l()(), i0.ɵted(-1, null, ["Expand"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_6 = _co.routes.getAPICallLink(_co.apiCall, "console");_ck(_v, 11, 0, currVal_6);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.apiCallComponent.executing;_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.openapi.secrets.isAuthenticated(_co.apiCallComponent.apiCall.operation) ? "Send Request" : "Sign in to execute";_ck(_v, 4, 0, currVal_1);var currVal_2 = _co.apiCallComponent.executing;_ck(_v, 5, 0, currVal_2);var currVal_3 = !_co.apiCallComponent.executing;_ck(_v, 6, 0, currVal_3);var currVal_4 = i0.ɵnov(_v, 11).target;var currVal_5 = i0.ɵnov(_v, 11).href;_ck(_v, 10, 0, currVal_4, currVal_5);
    });
}
function View_OperationDocumentationComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "api-call", [], null, null, null, i21.View_APICallComponent_0, i21.RenderType_APICallComponent)), i0.ɵdid(1, 638976, [[1, 4], ["apiCallComponent", 4]], 0, i22.APICallComponent, [i7.OpenAPIService, i10.UtilsService, i23.TrackerService, i0.ElementRef], { apiCall: [0, "apiCall"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.apiCall;_ck(_v, 1, 0, currVal_0);
    }, null);
}
function View_OperationDocumentationComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "hr", [], null, null, null, null, null))], null, null);
}
function View_OperationDocumentationComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "div", [["class", "try-it"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_6)), i0.ɵdid(2, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_7)), i0.ɵdid(4, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_8)), i0.ɵdid(6, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.apiCallComponent;_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.tryIt;_ck(_v, 4, 0, currVal_1);var currVal_2 = _co.tryIt;_ck(_v, 6, 0, currVal_2);
    }, null);
}
function View_OperationDocumentationComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [["role", "presentation"]], [[2, "active", null]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "text-capitalize"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.activeLocation = _v.context.$implicit) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeLocation === _v.context.$implicit;_ck(_v, 0, 0, currVal_0);var currVal_1 = _v.context.$implicit === "formData" ? "body" : _v.context.$implicit;_ck(_v, 2, 0, currVal_1);
    });
}
function View_OperationDocumentationComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "consumes"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "label", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Content Type:"])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["\xA0", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.apiCall.operation.consumes.join(", ");_ck(_v, 4, 0, currVal_0);
    });
}
function View_OperationDocumentationComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "li", [["role", "presentation"]], [[2, "active", null]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.activeResponse = _v.context.$implicit) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 2, "span", [], [[2, "text-success", null], [2, "text-warning", null], [2, "text-danger", null]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeResponse === _v.context.$implicit;_ck(_v, 0, 0, currVal_0);var currVal_1 = _v.context.$implicit.code >= 200 && _v.context.$implicit.code < 300;var currVal_2 = _v.context.$implicit.code >= 300 && _v.context.$implicit.code < 400;var currVal_3 = _v.context.$implicit.code >= 400 || _v.context.$implicit.code.indexOf("Error") !== 0 - 1;_ck(_v, 2, 0, currVal_1, currVal_2, currVal_3);var currVal_4 = _v.context.$implicit.code.indexOf("x-") === 0 ? _v.context.$implicit.code.substring(2) : _v.context.$implicit.code;_ck(_v, 4, 0, currVal_4);
    });
}
function View_OperationDocumentationComponent_12(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "response-schema hide-code"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "schema", [], null, null, null, i5.View_SchemaComponent_0, i5.RenderType_SchemaComponent)), i0.ɵdid(2, 573440, null, 0, i6.SchemaComponent, [i7.OpenAPIService, i8.PlatformService], { schema: [0, "schema"], examples: [1, "examples"], depth: [2, "depth"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.activeResponse.details.schema;var currVal_1 = _co.activeResponse.details.examples;var currVal_2 = 3;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_OperationDocumentationComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵpid(0, i24.ParameterFilterPipe, []), i0.ɵqud(671088640, 1, { apiCallComponent: 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_1)), i0.ɵdid(3, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_2)), i0.ɵdid(5, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(6, 0, null, null, 0, "div", [["class", "route-description"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_3)), i0.ɵdid(8, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_4)), i0.ɵdid(10, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_5)), i0.ɵdid(12, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(13, 0, null, null, 10, "h5", [], null, null, null, null, null)), (_l()(), i0.ɵeld(14, 0, null, null, 1, "span", [["class", "text-uppercase"]], [[1, "data-method", 0]], null, null, null, null)), (_l()(), i0.ɵted(15, null, ["", ""])), (_l()(), i0.ɵeld(16, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0"])), (_l()(), i0.ɵeld(18, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(19, null, ["", "://", ""])), (_l()(), i0.ɵeld(20, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(21, null, ["", ""])), (_l()(), i0.ɵeld(22, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(23, null, ["", ""])), (_l()(), i0.ɵeld(24, 0, null, null, 23, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), i0.ɵeld(25, 0, null, null, 12, "div", [["class", "col-xs-12 col-md-6"]], null, null, null, null, null)), (_l()(), i0.ɵeld(26, 0, null, null, 11, "div", [["class", "input-output-box"]], null, null, null, null, null)), (_l()(), i0.ɵeld(27, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Request Parameters"])), (_l()(), i0.ɵeld(29, 0, null, null, 2, "ul", [["class", "nav nav-tabs location-tabs"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_9)), i0.ɵdid(31, 802816, null, 0, i11.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_10)), i0.ɵdid(33, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(34, 0, null, null, 3, "parameter-set", [], null, null, null, i25.View_ParameterSetComponent_0, i25.RenderType_ParameterSetComponent)), i0.ɵdid(35, 573440, null, 0, i24.ParameterSetComponent, [i7.OpenAPIService, i10.UtilsService], { parameterSet: [0, "parameterSet"], groups: [1, "groups"], view: [2, "view"] }, null), i0.ɵpad(36, 2), i0.ɵppd(37, 2), (_l()(), i0.ɵeld(38, 0, null, null, 9, "div", [["class", "col-xs-12 col-md-6"]], null, null, null, null, null)), (_l()(), i0.ɵeld(39, 0, null, null, 8, "div", [["class", "input-output-box"]], null, null, null, null, null)), (_l()(), i0.ɵeld(40, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Response"])), (_l()(), i0.ɵeld(42, 0, null, null, 2, "ul", [["class", "nav nav-tabs status-code-tabs"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_11)), i0.ɵdid(44, 802816, null, 0, i11.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵeld(45, 0, null, null, 0, "div", [], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_OperationDocumentationComponent_12)), i0.ɵdid(47, 16384, null, 0, i11.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.apiCall.operation["x-beta"];_ck(_v, 3, 0, currVal_0);var currVal_1 = _co.apiCall.operation.deprecated;_ck(_v, 5, 0, currVal_1);var currVal_4 = _co.utils.config.uiOptions.embedConsoleInDocumentation;_ck(_v, 8, 0, currVal_4);var currVal_5 = !_co.utils.config.uiOptions.embedConsoleInDocumentation;_ck(_v, 10, 0, currVal_5);var currVal_6 = _co.tryIt;_ck(_v, 12, 0, currVal_6);var currVal_14 = _co.locations;_ck(_v, 31, 0, currVal_14);var currVal_15 = _co.apiCall.operation.consumes && (_co.activeLocation === "body" || _co.activeLocation === "formData");_ck(_v, 33, 0, currVal_15);var currVal_16 = i0.ɵunv(_v, 35, 0, _ck(_v, 37, 0, i0.ɵnov(_v, 0), _co.apiCall.operation.parameters, _ck(_v, 36, 0, "in", _co.activeLocation)));var currVal_17 = _co.apiCall.operation.parameterGroups;var currVal_18 = "documentation";_ck(_v, 35, 0, currVal_16, currVal_17, currVal_18);var currVal_19 = _co.responses;_ck(_v, 44, 0, currVal_19);var currVal_22 = _co.activeResponse.details.schema;_ck(_v, 47, 0, currVal_22);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_2 = !_co.apiCall.operation.description;var currVal_3 = _co.marked(_co.apiCall.operation.description);_ck(_v, 6, 0, currVal_2, currVal_3);var currVal_7 = _co.apiCall.method;_ck(_v, 14, 0, currVal_7);var currVal_8 = _co.apiCall.method;_ck(_v, 15, 0, currVal_8);var currVal_9 = _co.openapi.parsed.schemes[0];var currVal_10 = _co.openapi.parsed.host;_ck(_v, 19, 0, currVal_9, currVal_10);var currVal_11 = _co.openapi.parsed.basePath === "/" ? "" : _co.openapi.parsed.basePath;_ck(_v, 21, 0, currVal_11);var currVal_12 = _co.apiCall.path;_ck(_v, 23, 0, currVal_12);var currVal_13 = !_co.apiCall.operation.parameters.length;_ck(_v, 29, 0, currVal_13);var currVal_20 = !_co.activeResponse.details.description;var currVal_21 = _co.marked(_co.activeResponse.details.description);_ck(_v, 45, 0, currVal_20, currVal_21);
    });
}
function View_OperationDocumentationComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "operation-documentation", [], null, null, null, View_OperationDocumentationComponent_0, RenderType_OperationDocumentationComponent)), i0.ɵdid(1, 573440, null, 0, i9.OperationDocumentationComponent, [i10.UtilsService, i7.OpenAPIService, i4.RoutesService], null, null)], null, null);
}
var OperationDocumentationComponentNgFactory = i0.ɵccf("operation-documentation", i9.OperationDocumentationComponent, View_OperationDocumentationComponent_Host_0, { apiCall: "apiCall" }, {}, []);
exports.OperationDocumentationComponentNgFactory = OperationDocumentationComponentNgFactory;

/***/ }),

/***/ "./src/app/components/documentation.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentationComponent", function() { return DocumentationComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperationDocumentationComponent", function() { return OperationDocumentationComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_common_http__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_utils__ = __webpack_require__("./src/app/services/utils.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_search__ = __webpack_require__("./src/app/services/search.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_routes__ = __webpack_require__("./src/app/services/routes.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_menu__ = __webpack_require__("./src/app/services/menu.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__services_platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");








var LOCATIONS = ['body', 'formData', 'query', 'path', 'header'];
var SORT_LOCATIONS = function (l1, l2) {
    return LOCATIONS.indexOf(l1) - LOCATIONS.indexOf(l2);
};
var ɵ0 = SORT_LOCATIONS;
var DocumentationComponent = /** @class */ (function () {
    function DocumentationComponent(sanitizer, platformService, search, menu, routes, state, http, openapi, utils, originUrl) {
        this.sanitizer = sanitizer;
        this.platformService = platformService;
        this.search = search;
        this.menu = menu;
        this.routes = routes;
        this.state = state;
        this.http = http;
        this.openapi = openapi;
        this.utils = utils;
        this.originUrl = originUrl;
        this.title = 'Documentation';
        this.subscriptions = [];
    }
    DocumentationComponent.prototype.ngAfterViewInit = function () {
        var _this = this;
        this.subscriptions.push(this.search.results.subscribe(function (res) {
            _this.showResults = !!_this.search.query;
            if (!_this.showResults && _this.activeItem)
                _this.setActiveItem(_this.activeItem);
        }));
        this.subscriptions.push(this.menu.choose.subscribe(function (item) {
            if (!item && _this.menu.items.length) {
                _this.menu.setActiveItem(_this.menu.items[0]);
            }
            else if (item) {
                _this.setActiveItem(item);
            }
        }));
        this.subscriptions.push(this.routes.currentRoute.subscribe(function (route) {
            if (route && route.title)
                _this.title = route.title;
        }));
        if (this.menu.currentChoice) {
            this.setActiveItem(this.menu.currentChoice);
        }
    };
    DocumentationComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    DocumentationComponent.prototype.maybeResizeIframe = function () {
        var frame = window.jQuery('iframe.discussion-frame');
        frame.css('height', frame[0].contentWindow.document.body.scrollHeight);
    };
    DocumentationComponent.prototype.setActiveItem = function (item) {
        var _this = this;
        this.error = null;
        this.showResults = false;
        this.activeItem = item;
        var stateKey = Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["makeStateKey"])(item.markdownURL || '');
        if (item.contents) {
            this.setActiveItemHTML(item.contents, !item.isHTML);
        }
        else if (item.markdownURL) {
            item.isHTML = !!item.markdownURL.match(/\.html$/);
            item.contents = this.state.get(stateKey, null);
            if (!item.contents) {
                this.http.get(this.originUrl + item.markdownURL, { responseType: 'text' })
                    .toPromise()
                    .then(function (md) {
                    item.contents = md;
                    _this.setActiveItemHTML(item.contents, !item.isHTML);
                })
                    .catch(function (e) {
                    _this.error = (e.error && e.error.message) || "Unknown error.";
                });
            }
            else {
                this.setActiveItemHTML(item.contents, !item.isHTML);
            }
        }
        if (this.platformService.isServer) {
            this.state.set(stateKey, item.contents);
        }
        if (this.platformService.isBrowser) {
            setTimeout(function () {
                // delay discussionURL for a sec to help page loading.
                var discussionURL = _this.activeItem.discussionURL || window.config.discussionURL;
                if (discussionURL && _this.activeItem.discussionURL !== null) {
                    _this.discussionURL = _this.getDiscussionURL(discussionURL, item.title);
                }
                else {
                    _this.discussionURL = null;
                }
            }, 1000);
        }
    };
    DocumentationComponent.prototype.setActiveItemHTML = function (html, renderMarkdown) {
        if (renderMarkdown === void 0) { renderMarkdown = true; }
        if (renderMarkdown) {
            var title = this.activeItem.title.replace(/\W/g, '.');
            var titleRegex = new RegExp('^#+\\s+' + title + '\s*([\n\r]|$)');
            html = html.replace(titleRegex, '');
            html = window.marked(html);
        }
        else {
            html = html.replace(/(<script[^>]*>)/g, '\n\n\$1').replace(/(<\/script>)/g, '\$1\n\n');
        }
        var newElem = window.document.createElement('div');
        newElem.innerHTML = html;
        if (newElem.innerHTML !== this.activeHTML) {
            this.htmlContents.nativeElement.innerHTML = '';
            this.activeHTML = newElem.innerHTML;
            if (this.platformService.isServer) {
                this.htmlContents.nativeElement.innerHTML = newElem.innerHTML;
            }
            else {
                window.jQuery(this.htmlContents.nativeElement).html(newElem.innerHTML);
            }
        }
    };
    DocumentationComponent.prototype.getDiscussionURL = function (url, title) {
        url = url.replace(/{{\s*title\s*}}/g, title);
        var slug = title.replace(/\W+/g, '_');
        url = url.replace(/{{\s*slug\s*}}/g, slug);
        url = this.sanitizer.bypassSecurityTrustResourceUrl(url);
        return url;
    };
    return DocumentationComponent;
}());

var OperationDocumentationComponent = /** @class */ (function () {
    function OperationDocumentationComponent(utils, openapi, routes) {
        this.utils = utils;
        this.openapi = openapi;
        this.routes = routes;
        this.marked = window.marked;
    }
    OperationDocumentationComponent.prototype.ngOnChanges = function () {
        var _this = this;
        this.locations = this.apiCall.operation.parameters.map(function (p) { return p.in; });
        this.locations = this.locations.filter(function (loc, idx) {
            return idx === _this.locations.lastIndexOf(loc);
        }).sort(SORT_LOCATIONS);
        this.activeLocation = this.locations[0];
        this.responses = Object.keys(this.apiCall.operation.responses).map(function (code) {
            return {
                code: code,
                details: _this.apiCall.operation.responses[code],
            };
        }).sort(function (r1, r2) {
            if (r1.code > r2.code)
                return 1;
            if (r1.code < r2.code)
                return -1;
            return 0;
        });
        this.activeResponse = this.responses[0];
    };
    return OperationDocumentationComponent;
}());




/***/ }),

/***/ "./src/app/components/parameter.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.ParameterGroupComponentNgFactory = exports.RenderType_ParameterGroupComponent = exports.ParameterComponentNgFactory = exports.RenderType_ParameterComponent = exports.ParameterSetComponentNgFactory = exports.RenderType_ParameterSetComponent = undefined;
exports.View_ParameterSetComponent_0 = View_ParameterSetComponent_0;
exports.View_ParameterSetComponent_Host_0 = View_ParameterSetComponent_Host_0;
exports.View_ParameterComponent_0 = View_ParameterComponent_0;
exports.View_ParameterComponent_Host_0 = View_ParameterComponent_Host_0;
exports.View_ParameterGroupComponent_0 = View_ParameterGroupComponent_0;
exports.View_ParameterGroupComponent_Host_0 = View_ParameterGroupComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _parameter = __webpack_require__("./src/app/components/parameter.ts");

var i1 = _interopRequireWildcard(_parameter);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i2 = _interopRequireWildcard(_openapi);

var _secret = __webpack_require__("./src/app/services/secret.ts");

var i3 = _interopRequireWildcard(_secret);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i4 = _interopRequireWildcard(_utils);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i5 = _interopRequireWildcard(_common);

var _jsonSchemaFormComponent = __webpack_require__("./src/app/json-schema-form/json-schema-form.component.ngfactory.js");

var i6 = _interopRequireWildcard(_jsonSchemaFormComponent);

var _jsonSchemaForm = __webpack_require__("./src/app/json-schema-form/json-schema-form.component.ts");

var i7 = _interopRequireWildcard(_jsonSchemaForm);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i8 = _interopRequireWildcard(_forms);

var _ng2Datetime = __webpack_require__("./node_modules/ng2-datetime-picker/dist/ng2-datetime.js");

var i9 = _interopRequireWildcard(_ng2Datetime);

var _ng2DatetimePicker = __webpack_require__("./node_modules/ng2-datetime-picker/dist/ng2-datetime-picker.directive.js");

var i10 = _interopRequireWildcard(_ng2DatetimePicker);

var _schema = __webpack_require__("./src/app/components/schema.ngfactory.js");

var i11 = _interopRequireWildcard(_schema);

var _schema2 = __webpack_require__("./src/app/components/schema.ts");

var i12 = _interopRequireWildcard(_schema2);

var _platform = __webpack_require__("./src/app/services/platform.service.ts");

var i13 = _interopRequireWildcard(_platform);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles_ParameterSetComponent = [".global-parameters[_ngcontent-%COMP%] {\n      padding-left: 15px;\n    }"];
var RenderType_ParameterSetComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_ParameterSetComponent, data: {} });
exports.RenderType_ParameterSetComponent = RenderType_ParameterSetComponent;

function View_ParameterSetComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "p", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "i", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["This operation has no parameters."]))], null, null);
}
function View_ParameterSetComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "parameter", [["class", "global-parameter"]], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.valueChange.emit($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterComponent_0, RenderType_ParameterComponent)), i0.ɵdid(1, 770048, null, 0, i1.ParameterComponent, [i2.OpenAPIService, i3.SecretService, i4.UtilsService], { inputParameter: [0, "inputParameter"], model: [1, "model"], view: [2, "view"] }, { valueChange: "valueChange" }), i0.ɵpod(2, { name: 0, description: 1, type: 2, default: 3 })], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _ck(_v, 2, 0, "host", "The API host", "string", _co.openapi.parsed.host);var currVal_1 = _co.openapi.parsed;var currVal_2 = _co.view;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_ParameterSetComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter", [["class", "global-parameter"]], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.valueChange.emit($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterComponent_0, RenderType_ParameterComponent)), i0.ɵdid(1, 770048, null, 0, i1.ParameterComponent, [i2.OpenAPIService, i3.SecretService, i4.UtilsService], { inputParameter: [0, "inputParameter"], model: [1, "model"], view: [2, "view"], fillFromSecrets: [3, "fillFromSecrets"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.openapi.globalParameters;var currVal_2 = _co.view;var currVal_3 = true;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3);
    }, null);
}
function View_ParameterSetComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 13, "div", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "label", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Global Parameters"])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showGlobal = !_co.showGlobal) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right"]], [[2, "fa-plus-square-o", null], [2, "fa-minus-square-o", null]], null, null, null, null)), (_l()(), i0.ɵeld(5, 0, null, null, 1, "div", [["class", "help-block"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["These parameters are valid for multiple operations"])), (_l()(), i0.ɵeld(7, 0, null, null, 6, "div", [["class", "global-parameters"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterSetComponent_3)), i0.ɵdid(9, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 3, null, View_ParameterSetComponent_4)), i0.ɵdid(11, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), i0.ɵpad(12, 2), i0.ɵppd(13, 2)], function (_ck, _v) {
        var _co = _v.component;var currVal_4 = _co.utils.config.uiOptions.optionalizeHost;_ck(_v, 9, 0, currVal_4);var currVal_5 = i0.ɵunv(_v, 11, 0, _ck(_v, 13, 0, i0.ɵnov(_v.parent, 0), _co.parameterSet, _ck(_v, 12, 0, "global", true)));_ck(_v, 11, 0, currVal_5);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showGlobal;var currVal_1 = _co.showGlobal;_ck(_v, 4, 0, currVal_0, currVal_1);var currVal_2 = !_co.showGlobal;_ck(_v, 5, 0, currVal_2);var currVal_3 = !_co.showGlobal;_ck(_v, 7, 0, currVal_3);
    });
}
function View_ParameterSetComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter-group", [], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.valueChange.emit($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterGroupComponent_0, RenderType_ParameterGroupComponent)), i0.ɵdid(1, 573440, null, 0, i1.ParameterGroupComponent, [], { group: [0, "group"], parameterSet: [1, "parameterSet"], model: [2, "model"], view: [3, "view"], visible: [4, "visible"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.parameterSet;var currVal_2 = _co.answers;var currVal_3 = _co.view;var currVal_4 = true;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4);
    }, null);
}
function View_ParameterSetComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter", [["class", "ungrouped-parameter"]], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.valueChange.emit($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterComponent_0, RenderType_ParameterComponent)), i0.ɵdid(1, 770048, null, 0, i1.ParameterComponent, [i2.OpenAPIService, i3.SecretService, i4.UtilsService], { inputParameter: [0, "inputParameter"], model: [1, "model"], view: [2, "view"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.answers;var currVal_2 = _co.view;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_ParameterSetComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵpid(0, i1.ParameterFilterPipe, []), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterSetComponent_1)), i0.ɵdid(2, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterSetComponent_2)), i0.ɵdid(4, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterSetComponent_5)), i0.ɵdid(6, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 5, null, View_ParameterSetComponent_6)), i0.ɵdid(8, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), i0.ɵpad(9, 2), i0.ɵppd(10, 2), i0.ɵpad(11, 2), i0.ɵppd(12, 2)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.parameterSet.length;_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.hasGlobal;_ck(_v, 4, 0, currVal_1);var currVal_2 = _co.groups;_ck(_v, 6, 0, currVal_2);var currVal_3 = i0.ɵunv(_v, 8, 0, _ck(_v, 12, 0, i0.ɵnov(_v, 0), i0.ɵunv(_v, 8, 0, _ck(_v, 10, 0, i0.ɵnov(_v, 0), _co.parameterSet, _ck(_v, 9, 0, "global", undefined))), _ck(_v, 11, 0, "group", undefined)));_ck(_v, 8, 0, currVal_3);
    }, null);
}
function View_ParameterSetComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter-set", [], null, null, null, View_ParameterSetComponent_0, RenderType_ParameterSetComponent)), i0.ɵdid(1, 573440, null, 0, i1.ParameterSetComponent, [i2.OpenAPIService, i4.UtilsService], null, null)], null, null);
}
var ParameterSetComponentNgFactory = i0.ɵccf("parameter-set", i1.ParameterSetComponent, View_ParameterSetComponent_Host_0, { parameterSet: "parameterSet", groups: "groups", answers: "answers", view: "view" }, { valueChange: "valueChange" }, []);
exports.ParameterSetComponentNgFactory = ParameterSetComponentNgFactory;

var styles_ParameterComponent = [];
var RenderType_ParameterComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_ParameterComponent, data: {} });
exports.RenderType_ParameterComponent = RenderType_ParameterComponent;

function View_ParameterComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.setContentType(_v.context.$implicit) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "div", [["class", "dropdown content-type-dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "a", [["class", "btn btn-xs btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 2, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_4)), i0.ɵdid(6, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.parameter.consumes;_ck(_v, 6, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.contentType;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "p", [["class", "help-block"]], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0);
    });
}
function View_ParameterComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 8, "div", [["class", "body-parameter"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "div", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_3)), i0.ɵdid(3, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_5)), i0.ɵdid(5, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(6, 0, null, null, 2, "div", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, "json-schema-form", [], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            _co.model[_co.parameter.name] = _co.JSON.stringify($event);
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, i6.View_JSONSchemaFormComponent_0, i6.RenderType_JSONSchemaFormComponent)), i0.ɵdid(8, 4767744, null, 0, i7.JSONSchemaFormComponent, [], { label: [0, "label"], inputSchema: [1, "inputSchema"], refBase: [2, "refBase"], readOnly: [3, "readOnly"], depth: [4, "depth"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.parameter.consumes && _co.parameter.consumes.length > 1;_ck(_v, 3, 0, currVal_1);var currVal_2 = _co.parameter.description;_ck(_v, 5, 0, currVal_2);var currVal_4 = _co.parameter.name || "body";var currVal_5 = _co.parameter.schema;var currVal_6 = _co.openapi.parsed;var currVal_7 = _co.readOnly;var currVal_8 = _co.depth || 1;_ck(_v, 8, 0, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideTextEditor;_ck(_v, 1, 0, currVal_0);var currVal_3 = _co.contentType !== "application/json";_ck(_v, 6, 0, currVal_3);
    });
}
function View_ParameterComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, [" [", "]"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels[_co.parameter.enum.indexOf(_co.model[_co.parameter.name])];_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name];_ck(_v, 4, 0, currVal_1);
    });
}
function View_ParameterComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.model[_co.parameter.name];_ck(_v, 1, 0, currVal_0);
    });
}
function View_ParameterComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = _v.context.$implicit;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels ? _co.parameter.enumLabels[_v.context.index] + " [" + _v.context.$implicit + "]" : _v.context.$implicit;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [["class", "input-group-btn input-dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "button", [["class", "btn btn-sm btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], [[8, "disabled", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.refreshEnum() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "i", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Choose"])), (_l()(), i0.ɵeld(5, 0, null, null, 4, "span", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_9)), i0.ɵdid(7, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_10)), i0.ɵdid(9, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(10, 0, null, null, 7, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 4, "li", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 3, "a", [["disabled", ""]], null, null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 0, "i", [["class", "fa fa-left fa-spin fa-refresh"]], null, null, null, null, null)), (_l()(), i0.ɵeld(14, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Getting options..."])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_11)), i0.ɵdid(17, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.enumLabels;_ck(_v, 7, 0, currVal_3);var currVal_4 = !_co.parameter.enumLabels;_ck(_v, 9, 0, currVal_4);var currVal_6 = _co.parameter.enum;_ck(_v, 17, 0, currVal_6);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.readOnly;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name] !== undefined;_ck(_v, 3, 0, currVal_1);var currVal_2 = _co.model[_co.parameter.name] === undefined;_ck(_v, 5, 0, currVal_2);var currVal_5 = !_co.refreshingEnum;_ck(_v, 11, 0, currVal_5);
    });
}
function View_ParameterComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_7)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 10, "div", [], null, null, null, null, null)), i0.ɵdid(8, 278528, null, 0, i5.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(9, { "input-group": 0 }), (_l()(), i0.ɵeld(10, 0, null, null, 5, "input", [["class", "input-sm form-control"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 11)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 11).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 11)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 11)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_4 && ad;
        }if ("ngModelChange" === en) {
            var pd_5 = _co.onChange() !== false;
            ad = pd_5 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(11, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.DefaultValueAccessor]), i0.ɵdid(13, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { isDisabled: [0, "isDisabled"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(15, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_8)), i0.ɵdid(17, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _ck(_v, 9, 0, _co.parameter.enum || _co.parameter.dynamicEnum);_ck(_v, 8, 0, currVal_4);var currVal_12 = _co.readOnly;var currVal_13 = _co.model[_co.parameter.name];_ck(_v, 13, 0, currVal_12, currVal_13);var currVal_14 = _co.parameter.enum || _co.parameter.dynamicEnum;_ck(_v, 17, 0, currVal_14);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_5 = i0.ɵnov(_v, 15).ngClassUntouched;var currVal_6 = i0.ɵnov(_v, 15).ngClassTouched;var currVal_7 = i0.ɵnov(_v, 15).ngClassPristine;var currVal_8 = i0.ɵnov(_v, 15).ngClassDirty;var currVal_9 = i0.ɵnov(_v, 15).ngClassValid;var currVal_10 = i0.ɵnov(_v, 15).ngClassInvalid;var currVal_11 = i0.ɵnov(_v, 15).ngClassPending;_ck(_v, 10, 0, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11);
    });
}
function View_ParameterComponent_13(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_15(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, [" [", "]"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels[_co.parameter.enum.indexOf(_co.model[_co.parameter.name])];_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name];_ck(_v, 4, 0, currVal_1);
    });
}
function View_ParameterComponent_16(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.model[_co.parameter.name];_ck(_v, 1, 0, currVal_0);
    });
}
function View_ParameterComponent_17(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = _v.context.$implicit;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels ? _co.parameter.enumLabels[_v.context.index] + " [" + _v.context.$implicit + "]" : _v.context.$implicit;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_14(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [["class", "input-group-btn input-dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "button", [["class", "btn btn-sm btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], [[8, "disabled", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.refreshEnum() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "i", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Choose"])), (_l()(), i0.ɵeld(5, 0, null, null, 4, "span", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_15)), i0.ɵdid(7, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_16)), i0.ɵdid(9, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(10, 0, null, null, 7, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 4, "li", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 3, "a", [["disabled", ""]], null, null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 0, "i", [["class", "fa fa-left fa-spin fa-refresh"]], null, null, null, null, null)), (_l()(), i0.ɵeld(14, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Getting options..."])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_17)), i0.ɵdid(17, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.enumLabels;_ck(_v, 7, 0, currVal_3);var currVal_4 = !_co.parameter.enumLabels;_ck(_v, 9, 0, currVal_4);var currVal_6 = _co.parameter.enum;_ck(_v, 17, 0, currVal_6);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.readOnly;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name] !== undefined;_ck(_v, 3, 0, currVal_1);var currVal_2 = _co.model[_co.parameter.name] === undefined;_ck(_v, 5, 0, currVal_2);var currVal_5 = !_co.refreshingEnum;_ck(_v, 11, 0, currVal_5);
    });
}
function View_ParameterComponent_12(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 18, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_13)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 11, "div", [], null, null, null, null, null)), i0.ɵdid(8, 278528, null, 0, i5.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(9, { "input-group": 0 }), (_l()(), i0.ɵeld(10, 0, null, null, 6, "input", [["class", "input-sm form-control"], ["type", "number"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"], [null, "change"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 11)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 11).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 11)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 11)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("change" === en) {
            var pd_4 = i0.ɵnov(_v, 12).onChange($event.target.value) !== false;
            ad = pd_4 && ad;
        }if ("input" === en) {
            var pd_5 = i0.ɵnov(_v, 12).onChange($event.target.value) !== false;
            ad = pd_5 && ad;
        }if ("blur" === en) {
            var pd_6 = i0.ɵnov(_v, 12).onTouched() !== false;
            ad = pd_6 && ad;
        }if ("ngModelChange" === en) {
            var pd_7 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_7 && ad;
        }if ("ngModelChange" === en) {
            var pd_8 = _co.onChange() !== false;
            ad = pd_8 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(11, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵdid(12, 16384, null, 0, i8.ɵbc, [i0.Renderer2, i0.ElementRef], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0, p1_0) {
        return [p0_0, p1_0];
    }, [i8.DefaultValueAccessor, i8.ɵbc]), i0.ɵdid(14, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { isDisabled: [0, "isDisabled"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(16, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_14)), i0.ɵdid(18, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _ck(_v, 9, 0, _co.parameter.enum || _co.parameter.dynamicEnum);_ck(_v, 8, 0, currVal_4);var currVal_12 = _co.readOnly;var currVal_13 = _co.model[_co.parameter.name];_ck(_v, 14, 0, currVal_12, currVal_13);var currVal_14 = _co.parameter.enum || _co.parameter.dynamicEnum;_ck(_v, 18, 0, currVal_14);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_5 = i0.ɵnov(_v, 16).ngClassUntouched;var currVal_6 = i0.ɵnov(_v, 16).ngClassTouched;var currVal_7 = i0.ɵnov(_v, 16).ngClassPristine;var currVal_8 = i0.ɵnov(_v, 16).ngClassDirty;var currVal_9 = i0.ɵnov(_v, 16).ngClassValid;var currVal_10 = i0.ɵnov(_v, 16).ngClassInvalid;var currVal_11 = i0.ɵnov(_v, 16).ngClassPending;_ck(_v, 10, 0, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11);
    });
}
function View_ParameterComponent_19(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_21(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, [" [", "]"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels[_co.parameter.enum.indexOf(_co.model[_co.parameter.name])];_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name];_ck(_v, 4, 0, currVal_1);
    });
}
function View_ParameterComponent_22(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.model[_co.parameter.name];_ck(_v, 1, 0, currVal_0);
    });
}
function View_ParameterComponent_23(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = _v.context.$implicit;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels ? _co.parameter.enumLabels[_v.context.index] + " [" + _v.context.$implicit + "]" : _v.context.$implicit;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_20(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [["class", "input-group-btn input-dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "button", [["class", "btn btn-sm btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], [[8, "disabled", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.refreshEnum() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "i", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Choose"])), (_l()(), i0.ɵeld(5, 0, null, null, 4, "span", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_21)), i0.ɵdid(7, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_22)), i0.ɵdid(9, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(10, 0, null, null, 7, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 4, "li", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 3, "a", [["disabled", ""]], null, null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 0, "i", [["class", "fa fa-left fa-spin fa-refresh"]], null, null, null, null, null)), (_l()(), i0.ɵeld(14, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Getting options..."])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_23)), i0.ɵdid(17, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.enumLabels;_ck(_v, 7, 0, currVal_3);var currVal_4 = !_co.parameter.enumLabels;_ck(_v, 9, 0, currVal_4);var currVal_6 = _co.parameter.enum;_ck(_v, 17, 0, currVal_6);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.readOnly;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name] !== undefined;_ck(_v, 3, 0, currVal_1);var currVal_2 = _co.model[_co.parameter.name] === undefined;_ck(_v, 5, 0, currVal_2);var currVal_5 = !_co.refreshingEnum;_ck(_v, 11, 0, currVal_5);
    });
}
function View_ParameterComponent_18(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_19)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 10, "div", [], null, null, null, null, null)), i0.ɵdid(8, 278528, null, 0, i5.NgClass, [i0.IterableDiffers, i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngClass: [0, "ngClass"] }, null), i0.ɵpod(9, { "input-group": 0 }), (_l()(), i0.ɵeld(10, 0, null, null, 5, "input", [["class", "input-sm form-control"], ["type", "password"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 11)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 11).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 11)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 11)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_4 && ad;
        }if ("ngModelChange" === en) {
            var pd_5 = _co.onChange() !== false;
            ad = pd_5 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(11, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.DefaultValueAccessor]), i0.ɵdid(13, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { isDisabled: [0, "isDisabled"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(15, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_20)), i0.ɵdid(17, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _ck(_v, 9, 0, _co.parameter.enum || _co.parameter.dynamicEnum);_ck(_v, 8, 0, currVal_4);var currVal_12 = _co.readOnly;var currVal_13 = _co.model[_co.parameter.name];_ck(_v, 13, 0, currVal_12, currVal_13);var currVal_14 = _co.parameter.enum || _co.parameter.dynamicEnum;_ck(_v, 17, 0, currVal_14);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_5 = i0.ɵnov(_v, 15).ngClassUntouched;var currVal_6 = i0.ɵnov(_v, 15).ngClassTouched;var currVal_7 = i0.ɵnov(_v, 15).ngClassPristine;var currVal_8 = i0.ɵnov(_v, 15).ngClassDirty;var currVal_9 = i0.ɵnov(_v, 15).ngClassValid;var currVal_10 = i0.ɵnov(_v, 15).ngClassInvalid;var currVal_11 = i0.ɵnov(_v, 15).ngClassPending;_ck(_v, 10, 0, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11);
    });
}
function View_ParameterComponent_25(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_26(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "i", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Choose"]))], null, null);
}
function View_ParameterComponent_24(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 24, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_25)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 17, "div", [["class", "dropdown input-dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 0, null, null, 5, "a", [["class", "btn btn-sm btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_26)), i0.ɵdid(11, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(12, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(13, null, ["", ""])), (_l()(), i0.ɵeld(14, 0, null, null, 10, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵeld(15, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(16, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = true;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["true"])), (_l()(), i0.ɵeld(18, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(19, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = false;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["false"])), (_l()(), i0.ɵeld(21, 0, null, null, 3, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(22, 0, null, null, 2, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = undefined;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(23, 0, null, null, 1, "i", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Clear value"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _co.model[_co.parameter.name] === undefined;_ck(_v, 11, 0, currVal_4);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_5 = _co.model[_co.parameter.name];_ck(_v, 13, 0, currVal_5);
    });
}
function View_ParameterComponent_28(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_27(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 17, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_28)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 10, "div", [["class", "input-group input-group-sm"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 16777216, null, null, 7, "input", [["class", "input-sm form-control"], ["ng2-datetime-picker", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"], [null, "click"], [null, "focus"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 10)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 10).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 10)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 10)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("click" === en) {
            var pd_4 = i0.ɵnov(_v, 15).showDatetimePicker() !== false;
            ad = pd_4 && ad;
        }if ("focus" === en) {
            var pd_5 = i0.ɵnov(_v, 15).showDatetimePicker() !== false;
            ad = pd_5 && ad;
        }if ("ngModelChange" === en) {
            var pd_6 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_6 && ad;
        }if ("ngModelChange" === en) {
            _co.formatDatetime($event);
            var pd_7 = _co.onChange() !== false;
            ad = pd_7 && ad;
        }return ad;
    }, null, null)), i0.ɵprd(4608, null, i9.Ng2Datetime, i9.Ng2Datetime, []), i0.ɵdid(10, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.DefaultValueAccessor]), i0.ɵdid(12, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(14, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), i0.ɵdid(15, 737280, null, 0, i10.Ng2DatetimePickerDirective, [i0.ComponentFactoryResolver, i0.ViewContainerRef, [8, null]], { ngModel: [0, "ngModel"] }, { ngModelChange: "ngModelChange" }), (_l()(), i0.ɵeld(16, 0, null, null, 1, "span", [["class", "input-group-addon"]], null, null, null, null, null)), (_l()(), i0.ɵeld(17, 0, null, null, 0, "i", [["class", "fa fa-clock-o"]], null, null, null, null, null))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_11 = _co.model[_co.parameter.name];_ck(_v, 12, 0, currVal_11);var currVal_12 = _co.model[_co.parameter.name];_ck(_v, 15, 0, currVal_12);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_4 = i0.ɵnov(_v, 14).ngClassUntouched;var currVal_5 = i0.ɵnov(_v, 14).ngClassTouched;var currVal_6 = i0.ɵnov(_v, 14).ngClassPristine;var currVal_7 = i0.ɵnov(_v, 14).ngClassDirty;var currVal_8 = i0.ɵnov(_v, 14).ngClassValid;var currVal_9 = i0.ɵnov(_v, 14).ngClassInvalid;var currVal_10 = i0.ɵnov(_v, 14).ngClassPending;_ck(_v, 8, 0, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10);
    });
}
function View_ParameterComponent_30(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_29(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 12, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_30)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 5, "textarea", [["class", "form-control"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 8)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 8).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 8)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 8)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_4 && ad;
        }if ("ngModelChange" === en) {
            var pd_5 = _co.onChange() !== false;
            ad = pd_5 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(8, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.DefaultValueAccessor]), i0.ɵdid(10, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(12, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_11 = _co.model[_co.parameter.name];_ck(_v, 10, 0, currVal_11);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_4 = i0.ɵnov(_v, 12).ngClassUntouched;var currVal_5 = i0.ɵnov(_v, 12).ngClassTouched;var currVal_6 = i0.ɵnov(_v, 12).ngClassPristine;var currVal_7 = i0.ɵnov(_v, 12).ngClassDirty;var currVal_8 = i0.ɵnov(_v, 12).ngClassValid;var currVal_9 = i0.ɵnov(_v, 12).ngClassInvalid;var currVal_10 = i0.ɵnov(_v, 12).ngClassPending;_ck(_v, 7, 0, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10);
    });
}
function View_ParameterComponent_32(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_31(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 14, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_32)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 6, "div", [["class", "input-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 0, null, null, 2, "div", [["class", "form-control input-sm"]], null, null, null, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(10, null, ["", ""])), (_l()(), i0.ɵeld(11, 0, null, null, 2, "label", [["class", "input-group-btn file-label"]], [[8, "htmlFor", 0]], null, null, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 1, "a", [["class", "btn btn-sm btn-default"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Select file"])), (_l()(), i0.ɵeld(14, 0, null, null, 0, "input", [["class", "input-sm form-control"], ["type", "file"]], [[8, "hidden", 0], [8, "id", 0], [8, "name", 0]], [[null, "change"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("change" === en) {
            var pd_0 = _co.fileChange($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_4 = _co.filename;_ck(_v, 10, 0, currVal_4);var currVal_5 = i0.ɵinlineInterpolate(1, "fileInput", _co.parameter.name, "");_ck(_v, 11, 0, currVal_5);var currVal_6 = true;var currVal_7 = i0.ɵinlineInterpolate(1, "fileInput", _co.parameter.name, "");var currVal_8 = i0.ɵinlineInterpolate(1, "", _co.parameter.name, "");_ck(_v, 14, 0, currVal_6, currVal_7, currVal_8);
    });
}
function View_ParameterComponent_34(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_35(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, [" [", "]"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels[_co.parameter.enum.indexOf(_co.model[_co.parameter.name])];_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.model[_co.parameter.name];_ck(_v, 4, 0, currVal_1);
    });
}
function View_ParameterComponent_36(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.model[_co.parameter.name];_ck(_v, 1, 0, currVal_0);
    });
}
function View_ParameterComponent_37(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = _v.context.$implicit;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels ? _co.parameter.enumLabels[_v.context.index] + " [" + _v.context.$implicit + "]" : _v.context.$implicit;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_33(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 28, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 7, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵeld(5, 0, null, null, 3, "a", [["class", "btn btn-xs text-warning"]], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = undefined;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, "i", [["class", "fa fa-remove"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0clear"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_34)), i0.ɵdid(10, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(11, 0, null, null, 17, "div", [["class", "dropdown input-dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 8, "button", [["class", "btn btn-sm btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], [[8, "disabled", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.refreshEnum() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(14, 0, null, null, 1, "i", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Choose"])), (_l()(), i0.ɵeld(16, 0, null, null, 4, "span", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_35)), i0.ɵdid(18, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_36)), i0.ɵdid(20, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(21, 0, null, null, 7, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵeld(22, 0, null, null, 4, "li", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(23, 0, null, null, 3, "a", [["disabled", ""]], null, null, null, null, null)), (_l()(), i0.ɵeld(24, 0, null, null, 0, "i", [["class", "fa fa-left fa-spin fa-refresh"]], null, null, null, null, null)), (_l()(), i0.ɵeld(25, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Getting options..."])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_37)), i0.ɵdid(28, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_4 = _co.parameter.description;_ck(_v, 10, 0, currVal_4);var currVal_8 = _co.parameter.enumLabels;_ck(_v, 18, 0, currVal_8);var currVal_9 = !_co.parameter.enumLabels;_ck(_v, 20, 0, currVal_9);var currVal_11 = _co.parameter.enum;_ck(_v, 28, 0, currVal_11);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_3 = !_co.model[_co.parameter.name] !== undefined && !_co.parameter.required;_ck(_v, 5, 0, currVal_3);var currVal_5 = _co.readOnly;_ck(_v, 12, 0, currVal_5);var currVal_6 = _co.model[_co.parameter.name] !== undefined;_ck(_v, 14, 0, currVal_6);var currVal_7 = _co.model[_co.parameter.name] === undefined;_ck(_v, 16, 0, currVal_7);var currVal_10 = !_co.refreshingEnum;_ck(_v, 22, 0, currVal_10);
    });
}
function View_ParameterComponent_39(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_40(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 9, "div", [["class", "radio-choice"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "label", [["class", "text-black radio-inline"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 6, "input", [["name", "parameter.name"], ["type", "radio"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"], [null, "change"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 3)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 3).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 3)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 3)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("change" === en) {
            var pd_4 = i0.ɵnov(_v, 4).onChange() !== false;
            ad = pd_4 && ad;
        }if ("blur" === en) {
            var pd_5 = i0.ɵnov(_v, 4).onTouched() !== false;
            ad = pd_5 && ad;
        }if ("ngModelChange" === en) {
            var pd_6 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_6 && ad;
        }if ("ngModelChange" === en) {
            var pd_7 = _co.onChange() !== false;
            ad = pd_7 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(3, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵdid(4, 212992, null, 0, i8.RadioControlValueAccessor, [i0.Renderer2, i0.ElementRef, i8.ɵi, i0.Injector], { name: [0, "name"], value: [1, "value"] }, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0, p1_0) {
        return [p0_0, p1_0];
    }, [i8.DefaultValueAccessor, i8.RadioControlValueAccessor]), i0.ɵdid(6, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(8, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), (_l()(), i0.ɵeld(9, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = "parameter.name";var currVal_8 = _v.context.$implicit;_ck(_v, 4, 0, currVal_7, currVal_8);var currVal_9 = "parameter.name";var currVal_10 = _co.model[_co.parameter.name];_ck(_v, 6, 0, currVal_9, currVal_10);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = i0.ɵnov(_v, 8).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 8).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 8).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 8).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 8).ngClassValid;var currVal_5 = i0.ɵnov(_v, 8).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 8).ngClassPending;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);var currVal_11 = _co.parameter.enumLabels ? _co.parameter.enumLabels[_v.context.index] : _v.context.$implicit;_ck(_v, 9, 0, currVal_11);
    });
}
function View_ParameterComponent_38(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 12, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 7, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵeld(5, 0, null, null, 3, "a", [["class", "btn btn-xs text-warning"]], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.model[_co.parameter.name] = undefined;
            var pd_0 = _co.onChange() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, "i", [["class", "fa fa-remove"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0clear"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_39)), i0.ɵdid(10, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_40)), i0.ɵdid(12, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_4 = _co.parameter.description;_ck(_v, 10, 0, currVal_4);var currVal_5 = _co.parameter.enum;_ck(_v, 12, 0, currVal_5);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);var currVal_3 = !_co.model[_co.parameter.name] !== undefined && !_co.parameter.required;_ck(_v, 5, 0, currVal_3);
    });
}
function View_ParameterComponent_42(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "p", [["class", "help-block"]], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0);
    });
}
function View_ParameterComponent_41(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 11, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 8, "label", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 5, "input", [["class", "checkbox"], ["type", "checkbox"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"], [null, "blur"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("change" === en) {
            var pd_0 = i0.ɵnov(_v, 5).onChange($event.target.checked) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 5).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("ngModelChange" === en) {
            var pd_2 = (_co.model[_co.parameter.name] = $event) !== false;
            ad = pd_2 && ad;
        }if ("ngModelChange" === en) {
            var pd_3 = _co.onChange() !== false;
            ad = pd_3 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(5, 16384, null, 0, i8.CheckboxControlValueAccessor, [i0.Renderer2, i0.ElementRef], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.CheckboxControlValueAccessor]), i0.ɵdid(7, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(9, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_42)), i0.ɵdid(11, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_8 = _co.model[_co.parameter.name];_ck(_v, 7, 0, currVal_8);var currVal_9 = _co.parameter.description;_ck(_v, 11, 0, currVal_9);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.label || _co.parameter.name;_ck(_v, 3, 0, currVal_0);var currVal_1 = i0.ɵnov(_v, 9).ngClassUntouched;var currVal_2 = i0.ɵnov(_v, 9).ngClassTouched;var currVal_3 = i0.ɵnov(_v, 9).ngClassPristine;var currVal_4 = i0.ɵnov(_v, 9).ngClassDirty;var currVal_5 = i0.ɵnov(_v, 9).ngClassValid;var currVal_6 = i0.ɵnov(_v, 9).ngClassInvalid;var currVal_7 = i0.ɵnov(_v, 9).ngClassPending;_ck(_v, 4, 0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7);
    });
}
function View_ParameterComponent_44(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_45(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "checkbox-choice"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [["class", "text-black checkbox-inline"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "input", [["type", "checkbox"]], null, [[null, "change"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("change" === en) {
            var pd_0 = ($event.target.checked ? _co.model[_co.parameter.name].push(_v.context.$implicit) : _co.model[_co.parameter.name].splice(_co.model[_co.parameter.name].indexOf(_v.context.$implicit), 1)) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""]))], null, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit;_ck(_v, 4, 0, currVal_0);
    });
}
function View_ParameterComponent_43(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 8, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_44)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_45)), i0.ɵdid(8, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _co.parameter.enum || _co.parameter.items.enum;_ck(_v, 8, 0, currVal_4);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);
    });
}
function View_ParameterComponent_47(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_48(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 9, "div", [["class", "input-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, "span", [["class", "input-group-btn"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "a", [["class", "btn btn-sm btn-width-sm btn-warning"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.model[_co.parameter.name].splice(_v.context.index, 1) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-remove"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 5, "input", [["class", "input-sm form-control"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 5)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 5).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 5)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 5)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.model[_co.parameter.name][_v.context.index] = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(5, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.DefaultValueAccessor]), i0.ɵdid(7, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(9, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = _co.model[_co.parameter.name][_v.context.index];_ck(_v, 7, 0, currVal_7);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 9).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 9).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 9).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 9).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 9).ngClassValid;var currVal_5 = i0.ɵnov(_v, 9).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 9).ngClassPending;_ck(_v, 4, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);
    });
}
function View_ParameterComponent_46(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 15, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_47)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_48)), i0.ɵdid(8, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"], ngForTrackBy: [1, "ngForTrackBy"] }, null), (_l()(), i0.ɵeld(9, 0, null, null, 6, "div", [["class", "input-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 4, "span", [["class", "input-group-btn"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 3, "a", [["class", "btn btn-sm btn-width-sm btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.model[_co.parameter.name].push("") !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 0, "span", [["class", "fa fa-plus"]], null, null, null, null, null)), (_l()(), i0.ɵeld(13, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0 Add"])), (_l()(), i0.ɵeld(15, 0, null, null, 0, "input", [["class", "input-sm form-control"], ["disabled", ""]], null, null, null, null, null))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _co.model[_co.parameter.name];var currVal_5 = _co.idx;_ck(_v, 8, 0, currVal_4, currVal_5);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);
    });
}
function View_ParameterComponent_50(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.showHelpBlock;var currVal_1 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0, currVal_1);
    });
}
function View_ParameterComponent_51(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 8, "div", [["class", "array-body"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "parameter", [["hideTextEditor", "true"]], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.objectArrayChange($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterComponent_0, RenderType_ParameterComponent)), i0.ɵdid(2, 770048, null, 0, i1.ParameterComponent, [i2.OpenAPIService, i3.SecretService, i4.UtilsService], { inputParameter: [0, "inputParameter"], model: [1, "model"], view: [2, "view"], hideTextEditor: [3, "hideTextEditor"] }, { valueChange: "valueChange" }), i0.ɵpad(3, 1), i0.ɵpod(4, { in: 0, name: 1, schema: 2, consumes: 3 }), (_l()(), i0.ɵeld(5, 0, null, null, 3, "a", [["class", "btn btn-sm btn-width-sm btn-warning"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.objectArray.splice(_v.context.index, 1);
            var pd_0 = _co.objectArrayChange($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, "i", [["class", "fa fa-left fa-times"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(8, null, ["Remove item ", ""]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _ck(_v, 4, 0, "body", "value", _co.parameter.items, _ck(_v, 3, 0, "application/json"));var currVal_1 = _v.context.$implicit;var currVal_2 = "console";var currVal_3 = "true";_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3);
    }, function (_ck, _v) {
        var currVal_4 = _v.context.index;_ck(_v, 8, 0, currVal_4);
    });
}
function View_ParameterComponent_49(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 13, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showHelpBlock = !_co.showHelpBlock) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_50)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_51)), i0.ɵdid(8, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"], ngForTrackBy: [1, "ngForTrackBy"] }, null), (_l()(), i0.ɵeld(9, 0, null, null, 0, "br", [], null, null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 3, "a", [["class", "btn btn-sm btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.objectArray.push({});
            var pd_0 = _co.objectArrayChange($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 0, "span", [["class", "fa fa-plus"]], null, null, null, null, null)), (_l()(), i0.ɵeld(12, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0 Add"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.parameter.description;_ck(_v, 6, 0, currVal_3);var currVal_4 = _co.objectArray;var currVal_5 = _co.idx;_ck(_v, 8, 0, currVal_4, currVal_5);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideLabel;_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.label || _co.parameter.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = !_co.parameter.description;_ck(_v, 3, 0, currVal_2);
    });
}
function View_ParameterComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 30, "div", [["class", "parameter"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 29, "div", [["class", "parameter-input"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "div", [["class", "text-danger"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_2)), i0.ɵdid(4, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_6)), i0.ɵdid(6, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_12)), i0.ɵdid(8, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_18)), i0.ɵdid(10, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_24)), i0.ɵdid(12, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_27)), i0.ɵdid(14, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_29)), i0.ɵdid(16, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_31)), i0.ɵdid(18, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_33)), i0.ɵdid(20, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_38)), i0.ɵdid(22, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_41)), i0.ɵdid(24, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_43)), i0.ɵdid(26, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_46)), i0.ɵdid(28, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_49)), i0.ɵdid(30, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _co.inputType === "body";_ck(_v, 4, 0, currVal_3);var currVal_4 = _co.inputType === "text";_ck(_v, 6, 0, currVal_4);var currVal_5 = _co.inputType === "number";_ck(_v, 8, 0, currVal_5);var currVal_6 = _co.inputType === "password";_ck(_v, 10, 0, currVal_6);var currVal_7 = _co.inputType === "boolean";_ck(_v, 12, 0, currVal_7);var currVal_8 = _co.inputType === "datetime";_ck(_v, 14, 0, currVal_8);var currVal_9 = _co.inputType === "textarea";_ck(_v, 16, 0, currVal_9);var currVal_10 = _co.inputType === "file";_ck(_v, 18, 0, currVal_10);var currVal_11 = _co.inputType === "dropdown";_ck(_v, 20, 0, currVal_11);var currVal_12 = _co.inputType === "radio";_ck(_v, 22, 0, currVal_12);var currVal_13 = _co.inputType === "checkbox";_ck(_v, 24, 0, currVal_13);var currVal_14 = _co.inputType === "checkboxes";_ck(_v, 26, 0, currVal_14);var currVal_15 = _co.inputType === "dynamicArray";_ck(_v, 28, 0, currVal_15);var currVal_16 = _co.inputType === "objectArray";_ck(_v, 30, 0, currVal_16);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.hidden || !_co.showConditionMet();_ck(_v, 1, 0, currVal_0);var currVal_1 = !_co.error;var currVal_2 = _co.error;_ck(_v, 2, 0, currVal_1, currVal_2);
    });
}
function View_ParameterComponent_53(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "description"]], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.marked(_co.parameter.description);_ck(_v, 0, 0, currVal_0);
    });
}
function View_ParameterComponent_54(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "request-schema hide-code"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "schema", [], null, null, null, i11.View_SchemaComponent_0, i11.RenderType_SchemaComponent)), i0.ɵdid(2, 573440, null, 0, i12.SchemaComponent, [i2.OpenAPIService, i13.PlatformService], { schema: [0, "schema"], examples: [1, "examples"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.schema;var currVal_1 = _co.parameter["x-examples"];_ck(_v, 2, 0, currVal_0, currVal_1);
    }, null);
}
function View_ParameterComponent_55(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.getCollectionFormatMessage(_co.parameter);_ck(_v, 1, 0, currVal_0);
    });
}
function View_ParameterComponent_58(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "i", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, [" (", ")"]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enumLabels[_v.parent.context.index];_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_57(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_58)), i0.ɵdid(4, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.parameter.enumLabels;_ck(_v, 4, 0, currVal_1);
    }, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit;_ck(_v, 2, 0, currVal_0);
    });
}
function View_ParameterComponent_56(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Allowed values are:"])), (_l()(), i0.ɵeld(2, 0, null, null, 3, "div", [["class", "enum-list"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 2, "ul", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_57)), i0.ɵdid(5, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.enum;_ck(_v, 5, 0, currVal_0);
    }, null);
}
function View_ParameterComponent_52(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 16, "div", [["class", "parameter"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 6, "div", [["class", "parameter-title"]], [[4, "margin-bottom", null]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [["class", "parameter-name token attr-name"]], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ":"])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [["class", "parameter-type token keyword"]], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, ["", ""])), (_l()(), i0.ɵeld(6, 0, null, null, 1, "i", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0\xA0required"])), (_l()(), i0.ɵeld(8, 0, null, null, 8, "div", [["class", "parameter-details"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_53)), i0.ɵdid(10, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_54)), i0.ɵdid(12, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_55)), i0.ɵdid(14, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_56)), i0.ɵdid(16, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_4 = _co.parameter.description;_ck(_v, 10, 0, currVal_4);var currVal_5 = _co.parameter.schema;_ck(_v, 12, 0, currVal_5);var currVal_6 = _co.parameter.collectionFormat;_ck(_v, 14, 0, currVal_6);var currVal_7 = _co.parameter.enum;_ck(_v, 16, 0, currVal_7);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter.schema ? "10.5px" : "";_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.parameter.schema && _co.parameter.schema.title ? _co.parameter.schema.title : _co.parameter.name;_ck(_v, 3, 0, currVal_1);var currVal_2 = _co.parameter.schema ? _co.parameter.schema.type : _co.parameter.format || _co.parameter.type;_ck(_v, 5, 0, currVal_2);var currVal_3 = !_co.parameter.required;_ck(_v, 6, 0, currVal_3);
    });
}
function View_ParameterComponent_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_1)), i0.ɵdid(1, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterComponent_52)), i0.ɵdid(3, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.view || _co.view === "console";_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.view === "documentation";_ck(_v, 3, 0, currVal_1);
    }, null);
}
function View_ParameterComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter", [], null, null, null, View_ParameterComponent_0, RenderType_ParameterComponent)), i0.ɵdid(1, 770048, null, 0, i1.ParameterComponent, [i2.OpenAPIService, i3.SecretService, i4.UtilsService], null, null)], function (_ck, _v) {
        _ck(_v, 1, 0);
    }, null);
}
var ParameterComponentNgFactory = i0.ɵccf("parameter", i1.ParameterComponent, View_ParameterComponent_Host_0, { inputParameter: "parameter", model: "model", view: "view", hideTextEditor: "hideTextEditor", hideLabel: "hideLabel", depth: "depth", fillFromSecrets: "fillFromSecrets", readOnly: "readOnly" }, { valueChange: "valueChange" }, []);
exports.ParameterComponentNgFactory = ParameterComponentNgFactory;

var styles_ParameterGroupComponent = [".parameters[_ngcontent-%COMP%] {\n        padding-left: 15px;\n      }"];
var RenderType_ParameterGroupComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_ParameterGroupComponent, data: {} });
exports.RenderType_ParameterGroupComponent = RenderType_ParameterGroupComponent;

function View_ParameterGroupComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter", [["class", "grouped-parameter"]], [[8, "hidden", 0]], [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.valueChange.emit($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterComponent_0, RenderType_ParameterComponent)), i0.ɵdid(1, 770048, null, 0, i1.ParameterComponent, [i2.OpenAPIService, i3.SecretService, i4.UtilsService], { inputParameter: [0, "inputParameter"], model: [1, "model"], view: [2, "view"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _v.context.$implicit;var currVal_2 = _co.model;var currVal_3 = _co.view;_ck(_v, 1, 0, currVal_1, currVal_2, currVal_3);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.visible;_ck(_v, 0, 0, currVal_0);
    });
}
function View_ParameterGroupComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter-group", [], [[8, "hidden", 0]], [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.valueChange.emit($event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_ParameterGroupComponent_0, RenderType_ParameterGroupComponent)), i0.ɵdid(1, 573440, null, 0, i1.ParameterGroupComponent, [], { group: [0, "group"], parameterSet: [1, "parameterSet"], model: [2, "model"], view: [3, "view"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _v.context.$implicit;var currVal_2 = _co.parameterSet;var currVal_3 = _co.model;var currVal_4 = _co.view;_ck(_v, 1, 0, currVal_1, currVal_2, currVal_3, currVal_4);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.visible;_ck(_v, 0, 0, currVal_0);
    });
}
function View_ParameterGroupComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 16, "div", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [["class", "token attr-name"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "label", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""])), (_l()(), i0.ɵeld(5, 0, null, null, 3, "a", [["class", "btn btn-sm btn-link"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.visible = !_co.visible) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 0, "i", [["class", "fa fa-left"]], [[2, "fa-plus-square-o", null], [2, "fa-minus-square-o", null]], null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(8, null, ["", ""])), (_l()(), i0.ɵeld(9, 0, null, null, 0, "div", [["class", "help-block"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 6, "div", [["class", "parameters"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 3, null, View_ParameterGroupComponent_2)), i0.ɵdid(12, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), i0.ɵpad(13, 2), i0.ɵppd(14, 2), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterGroupComponent_3)), i0.ɵdid(16, 802816, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_9 = i0.ɵunv(_v, 12, 0, _ck(_v, 14, 0, i0.ɵnov(_v.parent, 0), _co.parameterSet, _ck(_v, 13, 0, "group", _co.group.name)));_ck(_v, 12, 0, currVal_9);var currVal_10 = _co.group.subGroups || i0.ɵEMPTY_ARRAY;_ck(_v, 16, 0, currVal_10);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.view !== "documentation";_ck(_v, 1, 0, currVal_0);var currVal_1 = _co.group.name;_ck(_v, 2, 0, currVal_1);var currVal_2 = _co.view === "documentation";_ck(_v, 3, 0, currVal_2);var currVal_3 = _co.group.name;_ck(_v, 4, 0, currVal_3);var currVal_4 = !_co.visible;var currVal_5 = _co.visible;_ck(_v, 6, 0, currVal_4, currVal_5);var currVal_6 = _co.visible ? "Hide" : "Show";_ck(_v, 8, 0, currVal_6);var currVal_7 = !_co.visible || !_co.group.description;var currVal_8 = _co.marked(_co.group.description);_ck(_v, 9, 0, currVal_7, currVal_8);
    });
}
function View_ParameterGroupComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵpid(0, i1.ParameterFilterPipe, []), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_ParameterGroupComponent_1)), i0.ɵdid(2, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hasMembers;_ck(_v, 2, 0, currVal_0);
    }, null);
}
function View_ParameterGroupComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter-group", [], null, null, null, View_ParameterGroupComponent_0, RenderType_ParameterGroupComponent)), i0.ɵdid(1, 573440, null, 0, i1.ParameterGroupComponent, [], null, null)], null, null);
}
var ParameterGroupComponentNgFactory = i0.ɵccf("parameter-group", i1.ParameterGroupComponent, View_ParameterGroupComponent_Host_0, { group: "group", parameterSet: "parameterSet", model: "model", view: "view", visible: "visible" }, { valueChange: "valueChange" }, []);
exports.ParameterGroupComponentNgFactory = ParameterGroupComponentNgFactory;

/***/ }),

/***/ "./src/app/components/parameter.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParameterFilterPipe", function() { return ParameterFilterPipe; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParameterSetComponent", function() { return ParameterSetComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParameterComponent", function() { return ParameterComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParameterGroupComponent", function() { return ParameterGroupComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_secret__ = __webpack_require__("./src/app/services/secret.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_utils__ = __webpack_require__("./src/app/services/utils.ts");




var ParameterFilterPipe = /** @class */ (function () {
    function ParameterFilterPipe() {
    }
    ParameterFilterPipe.prototype.transform = function (items, args) {
        var field = args[0];
        var value = args[1];
        return items.filter(function (item) {
            return item[field] == value; // Truthy ==
        });
    };
    return ParameterFilterPipe;
}());

var ParameterSetComponent = /** @class */ (function () {
    function ParameterSetComponent(openapi, utils) {
        this.openapi = openapi;
        this.utils = utils;
        this.valueChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
    }
    ParameterSetComponent.prototype.ngOnChanges = function () {
        this.hasGlobal = !!this.parameterSet.filter(function (p) { return p.global; }).length || window.config.uiOptions.optionalizeHost;
    };
    return ParameterSetComponent;
}());

var ParameterComponent = /** @class */ (function () {
    function ParameterComponent(openapi, secrets, utils) {
        this.openapi = openapi;
        this.secrets = secrets;
        this.utils = utils;
        this.valueChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.objectArray = [];
        this.JSON = JSON;
        this.marked = window.marked;
        this.subscriptions = [];
    }
    ParameterComponent.prototype.ngOnChanges = function () {
        if (!this.parameter || this.parameter.name !== this.inputParameter.name) {
            this.parameter = this.inputParameter;
        }
        else {
            Object.assign(this.parameter, this.inputParameter);
        }
        this.openapi.replaceXValues(this.parameter);
    };
    ParameterComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    ParameterComponent.prototype.ngOnInit = function () {
        var _this = this;
        if (this.view === 'documentation')
            return;
        this.inputType = this.getBestInputType();
        if (this.model[this.parameter.name] === undefined) {
            var val = undefined;
            if (this.fillFromSecrets && this.secrets.secrets[this.parameter.name] !== undefined) {
                val = this.secrets.secrets[this.parameter.name];
            }
            else if (this.parameter.consoleDefault !== undefined) {
                val = this.parameter.consoleDefault;
            }
            else if (this.parameter.default !== undefined) {
                val = this.parameter.default;
            }
            if (val !== undefined && this.showConditionMet()) {
                this.model[this.parameter.name] = val;
                this.onChange();
            }
            if (this.parameter.type === 'array' && !this.model[this.parameter.name]) {
                this.model[this.parameter.name] = [];
            }
        }
        if (this.fillFromSecrets) {
            this.subscriptions.push(this.secrets.onChange.subscribe(function (newSecrets) {
                if (newSecrets[_this.parameter.name] !== undefined) {
                    _this.model[_this.parameter.name] = newSecrets[_this.parameter.name];
                    _this.onChange();
                }
            }));
        }
        if (this.parameter.in === 'body' && (this.parameter.consumes || []).indexOf('application/json') !== -1) {
            var startval = this.model[this.parameter.name];
            this.setContentType('application/json');
        }
        else if (this.parameter.in === 'body' && this.parameter.consumes) {
            this.setContentType(this.parameter.consumes[0]);
        }
    };
    ParameterComponent.prototype.trackByIndex = function (idx) {
        return idx;
    };
    ParameterComponent.prototype.onChange = function () {
        if (this.inputType === 'text' && !this.model[this.parameter.name]) {
            delete this.model[this.parameter.name];
        }
        this.valueChange.emit(this.model[this.parameter.name]);
    };
    ParameterComponent.prototype.setContentType = function (t) {
        this.parameter.contentType = this.contentType = t;
        delete this.model[this.parameter.name];
    };
    ParameterComponent.prototype.showConditionMet = function () {
        if (!this.parameter.showCondition)
            return true;
        var cond = this.parameter.showCondition;
        return cond.value.indexOf(this.model[cond.name]) !== -1;
    };
    ParameterComponent.prototype.iterateObject = function (obj) {
        return Object.keys(obj).map(function (k) { return ({ key: k, value: obj[k] }); });
    };
    ParameterComponent.prototype.getBestInputType = function () {
        if (this.parameter.inputType)
            return this.parameter.inputType;
        var type = this.parameter.type;
        if (this.parameter.in === 'body') {
            return 'body';
        }
        else if (type === 'array') {
            if (this.parameter.items.type === 'object')
                return 'objectArray';
            if (this.parameter.enum || this.parameter.items.enum) {
                return 'checkboxes';
            }
            else {
                return 'dynamicArray';
            }
        }
        else if (this.parameter.enum || this.parameter.dynamicEnum) {
            return 'dropdown';
        }
        else if (type === 'boolean') {
            return 'boolean';
        }
        else if (type === 'number' || type === 'integer') {
            return 'number';
        }
        else if (type === 'file') {
            return 'file';
        }
        return 'text';
    };
    ParameterComponent.prototype.formatDatetime = function (date) {
        if (window.lucybot.formatDatetime) {
            this.model[this.parameter.name] = window.lucybot.formatDatetime(date);
        }
        else {
            this.model[this.parameter.name] = date.getTime();
        }
    };
    ParameterComponent.prototype.fileChange = function (evt) {
        var files = (evt.srcElement || evt.target).files;
        this.model[this.parameter.name] = files[0];
        if (files[0])
            this.filename = files[0].name;
    };
    ParameterComponent.prototype.getValueFromAPI = function (dyn, cb) {
        var _this = this;
        var answers = {};
        (dyn.parameters || []).forEach(function (p) {
            if (p.value.answer) {
                answers[p.name] = _this.model[p.value.answer];
            }
            else {
                answers[p.name] = p.value;
            }
        });
        this.openapi.request({
            swagger: this.openapi.parsed,
            path: dyn.path,
            method: dyn.method,
            answers: answers,
            embed: true,
        })
            .done(function (data, textStatus, xhr) {
            if (!window.checkResponse)
                return cb(data);
            var resp = window.checkResponse(data, xhr.status);
            if (resp.type === 'success')
                return cb(data);
            _this.error = resp.message;
            cb();
        })
            .fail(function (xhr) {
            _this.error = xhr.responseText;
            cb();
        });
    };
    ParameterComponent.prototype.refreshEnum = function () {
        var _this = this;
        this.error = null;
        var dynEnum = this.parameter.dynamicEnum;
        if (!dynEnum)
            return;
        var setEnum = function (data) {
            if (!data)
                return;
            var arr = _this.utils.followPath(data, dynEnum.array);
            _this.parameter.enum = arr.map(function (choice) {
                return _this.utils.followPath(choice, dynEnum.value);
            });
            _this.parameter.enumLabels = arr.map(function (choice) {
                return _this.utils.followPath(choice, dynEnum.label);
            });
            _this.refreshingEnum = false;
        };
        this.refreshingEnum = true;
        this.getValueFromAPI(dynEnum, setEnum);
    };
    ParameterComponent.prototype.getCollectionFormatMessage = function (param) {
        if (param.collectionFormat === 'multi') {
            return 'Values should be specified as separate query parameters';
        }
        var ret = 'Values should be joined by ';
        if (param.collectionFormat === 'csv') {
            return ret + 'commas.';
        }
        else if (param.collectionFormat === 'ssv') {
            return ret + 'spaces.';
        }
        else if (param.collectionFormat === 'tsv') {
            return ret + 'tabs.';
        }
        else if (param.collectionFormat === 'pipes') {
            return ret + 'pipes.';
        }
    };
    ParameterComponent.prototype.objectArrayChange = function (evt) {
        var _this = this;
        var addToModel = function (key, val) {
            if (Array.isArray(val)) {
                val.forEach(function (v, idx) {
                    addToModel(key + '[' + idx + ']', v);
                });
            }
            else if (typeof val === 'object') {
                for (var subkey in val) {
                    addToModel(key + '[' + subkey + ']', val[subkey]);
                }
            }
            else {
                _this.model[key] = val;
            }
        };
        for (var key in this.model) {
            if (key.indexOf(this.parameter.name) === 0)
                delete this.model[key];
        }
        addToModel(this.parameter.name, this.objectArray.map(function (a) { return JSON.parse(a.value || '{}'); }));
        this.onChange();
    };
    return ParameterComponent;
}());

var checkForMembers = function (params, group) {
    if (params.filter(function (p) { return p.group === group.name; }).length)
        return true;
    if (group.subGroups) {
        var subgroupHasMembers = group.subGroups.filter(function (g) { return checkForMembers(params, g); }).length;
        if (subgroupHasMembers)
            return true;
    }
    return false;
};
var ɵ0 = checkForMembers;
var ParameterGroupComponent = /** @class */ (function () {
    function ParameterGroupComponent() {
        this.valueChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.marked = window.marked;
    }
    ParameterGroupComponent.prototype.ngOnChanges = function () {
        this.hasMembers = checkForMembers(this.parameterSet, this.group);
    };
    return ParameterGroupComponent;
}());




/***/ }),

/***/ "./src/app/components/sample-code.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.SampleCodeComponentNgFactory = exports.RenderType_SampleCodeComponent = undefined;
exports.View_SampleCodeComponent_0 = View_SampleCodeComponent_0;
exports.View_SampleCodeComponent_Host_0 = View_SampleCodeComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i1 = _interopRequireWildcard(_forms);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i2 = _interopRequireWildcard(_common);

var _sampleCode = __webpack_require__("./src/app/components/sample-code.ts");

var i3 = _interopRequireWildcard(_sampleCode);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i4 = _interopRequireWildcard(_openapi);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i5 = _interopRequireWildcard(_utils);

var _tracker = __webpack_require__("./src/app/services/tracker.ts");

var i6 = _interopRequireWildcard(_tracker);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

var styles_SampleCodeComponent = []; /**
                                      * @fileoverview This file was generated by the Angular template compiler. Do not edit.
                                      *
                                      * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
                                      * tslint:disable
                                      */

var RenderType_SampleCodeComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_SampleCodeComponent, data: {} });
exports.RenderType_SampleCodeComponent = RenderType_SampleCodeComponent;

function View_SampleCodeComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.changeLanguage(_v.context.$implicit) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit.label;_ck(_v, 2, 0, currVal_0);
    });
}
function View_SampleCodeComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "textarea", [["class", "form-control code-editor"], ["rows", "15"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 1)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 1).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 1)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 1)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.codeSnippets[_co.currentLanguage.id] = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(1, 16384, null, 0, i1.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i1.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i1.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i1.DefaultValueAccessor]), i0.ɵdid(3, 671744, null, 0, i1.NgModel, [[8, null], [8, null], [8, null], [2, i1.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i1.NgControl, null, [i1.NgModel]), i0.ɵdid(5, 16384, null, 0, i1.NgControlStatus, [i1.NgControl], null, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = _co.codeSnippets[_co.currentLanguage.id];_ck(_v, 3, 0, currVal_7);
    }, function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v, 5).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 5).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 5).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 5).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 5).ngClassValid;var currVal_5 = i0.ɵnov(_v, 5).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 5).ngClassPending;_ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);
    });
}
function View_SampleCodeComponent_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 23, "div", [["class", "sample-code-title"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 12, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 2, "div", [["class", "col-xs-6"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Sample Code"])), (_l()(), i0.ɵeld(5, 0, null, null, 8, "div", [["class", "col-xs-6"]], null, null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 7, "div", [["class", "dropdown pull-right"]], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 3, "a", [["class", "btn btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(8, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(9, null, ["", ""])), (_l()(), i0.ɵeld(10, 0, null, null, 0, "i", [["class", "fa fa-right fa-chevron-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 2, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SampleCodeComponent_1)), i0.ɵdid(13, 802816, null, 0, i2.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵeld(14, 0, null, null, 9, "p", [], null, null, null, null, null)), (_l()(), i0.ɵeld(15, 0, null, null, 8, "label", [["class", "show-setup-checkbox"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(16, 0, null, null, 5, "input", [["type", "checkbox"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"], [null, "blur"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("change" === en) {
            var pd_0 = i0.ɵnov(_v, 17).onChange($event.target.checked) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 17).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("ngModelChange" === en) {
            var pd_2 = (_co.showSetupCode = $event) !== false;
            ad = pd_2 && ad;
        }if ("ngModelChange" === en) {
            var pd_3 = _co.refreshSampleCode() !== false;
            ad = pd_3 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(17, 16384, null, 0, i1.CheckboxControlValueAccessor, [i0.Renderer2, i0.ElementRef], null, null), i0.ɵprd(1024, null, i1.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i1.CheckboxControlValueAccessor]), i0.ɵdid(19, 671744, null, 0, i1.NgModel, [[8, null], [8, null], [8, null], [2, i1.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i1.NgControl, null, [i1.NgModel]), i0.ɵdid(21, 16384, null, 0, i1.NgControlStatus, [i1.NgControl], null, null), (_l()(), i0.ɵeld(22, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Show setup"])), (_l()(), i0.ɵeld(24, 0, null, null, 6, "div", [["class", "sample-code-box"]], null, null, null, null, null)), (_l()(), i0.ɵeld(25, 0, null, null, 1, "pre", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(26, 0, null, null, 0, "code", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵeld(27, 0, null, null, 1, "a", [["class", "btn btn-link copy-button"]], [[1, "data-clipboard-text", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Copy to clipboard"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SampleCodeComponent_2)), i0.ɵdid(30, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.languages;_ck(_v, 13, 0, currVal_1);var currVal_10 = _co.showSetupCode;_ck(_v, 19, 0, currVal_10);var currVal_14 = _co.codeSnippets && _co.editing;_ck(_v, 30, 0, currVal_14);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.currentLanguage.label;_ck(_v, 9, 0, currVal_0);var currVal_2 = !_co.showSetupCheckbox;_ck(_v, 15, 0, currVal_2);var currVal_3 = i0.ɵnov(_v, 21).ngClassUntouched;var currVal_4 = i0.ɵnov(_v, 21).ngClassTouched;var currVal_5 = i0.ɵnov(_v, 21).ngClassPristine;var currVal_6 = i0.ɵnov(_v, 21).ngClassDirty;var currVal_7 = i0.ɵnov(_v, 21).ngClassValid;var currVal_8 = i0.ɵnov(_v, 21).ngClassInvalid;var currVal_9 = i0.ɵnov(_v, 21).ngClassPending;_ck(_v, 16, 0, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9);var currVal_11 = _co.editing;_ck(_v, 25, 0, currVal_11);var currVal_12 = _co.sampleCodeHTML;_ck(_v, 26, 0, currVal_12);var currVal_13 = _co.sampleCode;_ck(_v, 27, 0, currVal_13);
    });
}
function View_SampleCodeComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "sample-code", [], null, null, null, View_SampleCodeComponent_0, RenderType_SampleCodeComponent)), i0.ɵdid(1, 4767744, null, 0, i3.SampleCodeComponent, [i4.OpenAPIService, i5.UtilsService, i6.TrackerService], null, null)], null, null);
}
var SampleCodeComponentNgFactory = i0.ɵccf("sample-code", i3.SampleCodeComponent, View_SampleCodeComponent_Host_0, { codeSnippets: "code", answers: "answers", apiCall: "apiCall", templateInput: "templateInput", editing: "editing", disableCodegen: "disableCodegen" }, {}, []);
exports.SampleCodeComponentNgFactory = SampleCodeComponentNgFactory;

/***/ }),

/***/ "./src/app/components/sample-code.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SampleCodeComponent", function() { return SampleCodeComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ1", function() { return ɵ1; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_utils__ = __webpack_require__("./src/app/services/utils.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_tracker__ = __webpack_require__("./src/app/services/tracker.ts");



var PRISM_LANGUAGES = {
    'node': 'javascript',
    'curl': 'bash',
};
var LANGUAGE_LABELS = {
    'node': 'NodeJS',
    'javascript': 'JavaScript',
    'php': 'PHP',
    'ruby': 'Ruby',
    'html': 'HTML',
    'java': 'Java',
    'python': 'Python',
    'csharp': 'C#',
    'curl': 'cURL',
};
var CodeTemplate = __webpack_require__("./tmp/plugins/code-template.js");
var ɵ0 = function (lang) {
    if (typeof lang === 'string')
        lang = { id: lang };
    lang.label = lang.label || LANGUAGE_LABELS[lang.id] || lang.id;
    lang.highlight = lang.highlight || PRISM_LANGUAGES[lang.id] || lang.id;
    return lang;
};
var LANGUAGES = window.config.codegen.languages.map(ɵ0);
var shiftLines = function (code, numSpaces) {
    if (!numSpaces)
        return code;
    var lines = code.split('\n');
    var spaces = Array(numSpaces + 1).join(' ');
    return lines.map(function (l, idx) { return (l && idx > 0) ? spaces + l : l; }).join('\n');
};
var ɵ1 = shiftLines;
var SampleCodeComponent = /** @class */ (function () {
    function SampleCodeComponent(openapi, utils, tracker) {
        this.openapi = openapi;
        this.utils = utils;
        this.tracker = tracker;
        this.languages = LANGUAGES;
        this.currentLanguage = LANGUAGES[0];
    }
    SampleCodeComponent.prototype.ngOnChanges = function () {
        var _this = this;
        if (this.editing) {
            this.languages = LANGUAGES;
        }
        else if (this.codeSnippets) {
            this.languages = LANGUAGES.filter(function (l) { return _this.codeSnippets[l.id]; });
        }
        else {
            this.languages = LANGUAGES.filter(function (l) { return l.id !== 'html'; });
        }
        if (this.languages.indexOf(this.currentLanguage) === -1) {
            this.currentLanguage = this.languages[0];
        }
        if (window.localStorage) {
            var lang_1 = window.localStorage.getItem('language');
            if (lang_1)
                this.currentLanguage = this.languages.filter(function (l) { return l.id === lang_1; })[0] || this.currentLanguage;
        }
        this.refreshSampleCode();
    };
    SampleCodeComponent.prototype.ngAfterViewInit = function () {
        new window.Clipboard('.copy-button');
    };
    SampleCodeComponent.prototype.changeLanguage = function (lang) {
        this.currentLanguage = lang;
        if (window.localStorage) {
            window.localStorage.setItem('language', this.currentLanguage.id);
        }
        this.tracker.track('set_language', { language: this.currentLanguage.id });
        this.refreshSampleCode();
    };
    SampleCodeComponent.prototype.refreshSampleCode = function () {
        if (!this.apiCall && !(this.codeSnippets && Object.keys(this.codeSnippets).length))
            return;
        var template = this.codeSnippets ? this.codeSnippets[this.currentLanguage.id] : null;
        var setupTemplate = null;
        this.showSetupCheckbox = false;
        if (!template || template === 'auto') {
            template = window.config.codegen.templates[this.currentLanguage.id];
            if (window.config.codegen.setupTemplates && (!this.apiCall || !this.apiCall.disableSetupCode)) {
                this.showSetupCheckbox = true;
                setupTemplate = window.config.codegen.setupTemplates[this.currentLanguage.id];
            }
        }
        if (!template)
            return;
        var tmpl = new CodeTemplate({
            swagger: this.openapi.parsed,
            template: template,
            setupTemplate: setupTemplate,
            language: this.currentLanguage.id,
        });
        if (this.apiCall) {
            this.templateInput.path = this.apiCall.path;
            this.templateInput.method = this.apiCall.method;
        }
        this.templateInput.answers = this.openapi.getAnswers(this.answers);
        this.templateInput.showSetup = this.showSetupCode;
        this.templateInput = this.utils.getTemplateInput(this.templateInput);
        this.sampleCode = '';
        try {
            this.sampleCode = tmpl.render(this.templateInput);
        }
        catch (e) {
            this.sampleCode = e.message;
            console.log(e);
        }
        var grammar = window.Prism.languages[this.currentLanguage.highlight];
        this.sampleCodeHTML = grammar ? window.Prism.highlight(this.sampleCode || '', grammar) : this.sampleCode;
    };
    return SampleCodeComponent;
}());




/***/ }),

/***/ "./src/app/components/schema.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.SubschemaComponentNgFactory = exports.RenderType_SubschemaComponent = exports.SchemaComponentNgFactory = exports.RenderType_SchemaComponent = undefined;
exports.View_SchemaComponent_0 = View_SchemaComponent_0;
exports.View_SchemaComponent_Host_0 = View_SchemaComponent_Host_0;
exports.View_SubschemaComponent_0 = View_SubschemaComponent_0;
exports.View_SubschemaComponent_Host_0 = View_SubschemaComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _schema = __webpack_require__("./src/app/components/schema.ts");

var i1 = _interopRequireWildcard(_schema);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i2 = _interopRequireWildcard(_openapi);

var _platform = __webpack_require__("./src/app/services/platform.service.ts");

var i3 = _interopRequireWildcard(_platform);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i4 = _interopRequireWildcard(_common);

var _router = __webpack_require__("./node_modules/@angular/router/esm5/router.js");

var i5 = _interopRequireWildcard(_router);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles_SchemaComponent = ["subschema[_ngcontent-%COMP%] {\n      display: block;\n    }"];
var RenderType_SchemaComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_SchemaComponent, data: {} });
exports.RenderType_SchemaComponent = RenderType_SchemaComponent;
function View_SchemaComponent_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "div", [["class", "btn-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "a", [["class", "btn btn-default"]], [[2, "active", null]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showing = "schema") !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Schema"])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "a", [["class", "btn btn-default"]], [[2, "active", null]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.showing = "example") !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Example"])), (_l()(), i0.ɵeld(6, 0, null, null, 3, "pre", [], null, null, null, null, null)), (_l()(), i0.ɵeld(7, 0, null, null, 0, "code", [], [[8, "innerHTML", 1], [8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵeld(8, 0, null, null, 1, "subschema", [], [[8, "hidden", 0]], null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(9, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { inputTitle: [0, "inputTitle"], schema: [1, "schema"], depth: [2, "depth"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_5 = _co.title;var currVal_6 = _co.schema;var currVal_7 = _co.depth;_ck(_v, 9, 0, currVal_5, currVal_6, currVal_7);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.showing === "schema";_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.showing === "example";_ck(_v, 4, 0, currVal_1);var currVal_2 = _co.highlightedExample;var currVal_3 = _co.showing !== "example";_ck(_v, 7, 0, currVal_2, currVal_3);var currVal_4 = _co.showing !== "schema";_ck(_v, 8, 0, currVal_4);
    });
}
function View_SchemaComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "schema", [], null, null, null, View_SchemaComponent_0, RenderType_SchemaComponent)), i0.ɵdid(1, 573440, null, 0, i1.SchemaComponent, [i2.OpenAPIService, i3.PlatformService], null, null)], null, null);
}
var SchemaComponentNgFactory = i0.ɵccf("schema", i1.SchemaComponent, View_SchemaComponent_Host_0, { title: "title", schema: "schema", examples: "examples", depth: "depth" }, {}, []);
exports.SchemaComponentNgFactory = SchemaComponentNgFactory;

var styles_SubschemaComponent = ["subschema[_ngcontent-%COMP%] {\n        display: block;\n        margin-left: 10px;\n      }\n      .title-line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%] {\n        white-space: nowrap;\n      }\n      .enum[_ngcontent-%COMP%] {\n        word-break: break-word;\n      }\n      .sibling-group[_ngcontent-%COMP%]    > schema[_ngcontent-%COMP%] {\n        margin-left: 0px;\n      }\n      .sibling-group[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%] {\n        font-weight: normal;\n        font-style: italic;\n      }\n      .enum[_ngcontent-%COMP%], .description[_ngcontent-%COMP%] {\n        padding-left: 10px;\n      }\n      [_nghost-%COMP%]     subschema .description p {\n        margin-bottom: 0px;\n        display: inline-block;\n      }"];
var RenderType_SubschemaComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_SubschemaComponent, data: {} });
exports.RenderType_SubschemaComponent = RenderType_SubschemaComponent;

function View_SubschemaComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [["class", "text-primary"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["*"]))], null, null);
}
function View_SubschemaComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [["class", "schema-name token attr-name"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_2)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(5, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [":"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.required;_ck(_v, 4, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.name;_ck(_v, 2, 0, currVal_0);
    });
}
function View_SubschemaComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 9, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [["class", "token keyword"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [":"])), (_l()(), i0.ɵeld(5, 0, null, null, 4, "a", [["class", "token variable"]], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 6).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(6, 671744, null, 0, i5.RouterLinkWithHref, [i5.Router, i5.ActivatedRoute, i4.LocationStrategy], { routerLink: [0, "routerLink"] }, null), i0.ɵpod(7, { definition: 0 }), i0.ɵpad(8, 2), (_l()(), i0.ɵted(9, null, ["", ""]))], function (_ck, _v) {
        var _co = _v.component;var currVal_3 = _ck(_v, 8, 0, ".", _ck(_v, 7, 0, _co.getTitle(_co.schema.items)));_ck(_v, 6, 0, currVal_3);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.getType(_co.schema.items);_ck(_v, 2, 0, currVal_0);var currVal_1 = i0.ɵnov(_v, 6).target;var currVal_2 = i0.ɵnov(_v, 6).href;_ck(_v, 5, 0, currVal_1, currVal_2);var currVal_4 = _co.getTitle(_co.schema.items);_ck(_v, 9, 0, currVal_4);
    });
}
function View_SubschemaComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["["])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_4)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(5, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["]"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema.items;_ck(_v, 4, 0, currVal_0);
    }, null);
}
function View_SubschemaComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [":"])), (_l()(), i0.ɵeld(3, 0, null, null, 4, "a", [["class", "schema-title token variable"]], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 4).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(4, 671744, null, 0, i5.RouterLinkWithHref, [i5.Router, i5.ActivatedRoute, i4.LocationStrategy], { routerLink: [0, "routerLink"] }, null), i0.ɵpod(5, { definition: 0 }), i0.ɵpad(6, 2), (_l()(), i0.ɵted(7, null, ["", ""]))], function (_ck, _v) {
        var _co = _v.component;var currVal_2 = _ck(_v, 6, 0, ".", _ck(_v, 5, 0, _co.title));_ck(_v, 4, 0, currVal_2);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = i0.ɵnov(_v, 4).target;var currVal_1 = i0.ɵnov(_v, 4).href;_ck(_v, 3, 0, currVal_0, currVal_1);var currVal_3 = _co.title;_ck(_v, 7, 0, currVal_3);
    });
}
function View_SubschemaComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [", "]))], null, null);
}
function View_SubschemaComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [["class", "token string"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema["x-enumLabels"][_v.parent.context.index];_ck(_v, 1, 0, currVal_0);
    });
}
function View_SubschemaComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" ["]))], null, null);
}
function View_SubschemaComponent_12(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["]"]))], null, null);
}
function View_SubschemaComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 10, "span", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_9)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_10)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_11)), i0.ɵdid(6, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [["class", "token number"]], null, null, null, null, null)), (_l()(), i0.ɵted(8, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_12)), i0.ɵdid(10, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.index !== 0;_ck(_v, 2, 0, currVal_0);var currVal_1 = _co.schema["x-enumLabels"];_ck(_v, 4, 0, currVal_1);var currVal_2 = _co.schema["x-enumLabels"];_ck(_v, 6, 0, currVal_2);var currVal_4 = _co.schema["x-enumLabels"];_ck(_v, 10, 0, currVal_4);
    }, function (_ck, _v) {
        var currVal_3 = _v.context.$implicit;_ck(_v, 8, 0, currVal_3);
    });
}
function View_SubschemaComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "enum"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Enum: "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_8)), i0.ɵdid(4, 802816, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema.enum;_ck(_v, 4, 0, currVal_0);
    }, null);
}
function View_SubschemaComponent_13(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(1, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { name: [0, "name"], schema: [1, "schema"], depth: [2, "depth"], required: [3, "required"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.schema.properties[_v.context.$implicit];var currVal_2 = _co.depth - 1;var currVal_3 = (_co.schema.required || i0.ɵEMPTY_ARRAY).indexOf(_v.context.$implicit) !== 0 - 1;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3);
    }, null);
}
function View_SubschemaComponent_15(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(1, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { schema: [0, "schema"], depth: [1, "depth"], expanded: [2, "expanded"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.depth - 1;var currVal_2 = false;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_SubschemaComponent_14(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "sibling-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "h5", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [["class", "token variable"]], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" must also match all of:"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_15)), i0.ɵdid(7, 802816, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.schema.allOf;_ck(_v, 7, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.title;_ck(_v, 3, 0, currVal_0);
    });
}
function View_SubschemaComponent_17(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(1, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { schema: [0, "schema"], depth: [1, "depth"], expanded: [2, "expanded"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.depth - 1;var currVal_2 = false;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_SubschemaComponent_16(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "sibling-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "h5", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [["class", "token variable"]], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" must also match any of:"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_17)), i0.ɵdid(7, 802816, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.schema.anyOf;_ck(_v, 7, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.title;_ck(_v, 3, 0, currVal_0);
    });
}
function View_SubschemaComponent_19(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(1, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { schema: [0, "schema"], depth: [1, "depth"], expanded: [2, "expanded"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.depth - 1;var currVal_2 = false;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2);
    }, null);
}
function View_SubschemaComponent_18(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "sibling-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "h5", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [["class", "token variable"]], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" must also match one of:"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_19)), i0.ɵdid(7, 802816, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.schema.oneOf;_ck(_v, 7, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.title;_ck(_v, 3, 0, currVal_0);
    });
}
function View_SubschemaComponent_20(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "sibling-group"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 4, "h5", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "span", [["class", "token variable"]], null, null, null, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [" must not match:"])), (_l()(), i0.ɵeld(6, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(7, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { schema: [0, "schema"], depth: [1, "depth"], expanded: [2, "expanded"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.schema.not;var currVal_2 = _co.depth - 1;var currVal_3 = false;_ck(_v, 7, 0, currVal_1, currVal_2, currVal_3);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.title;_ck(_v, 3, 0, currVal_0);
    });
}
function View_SubschemaComponent_21(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(1, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], { schema: [0, "schema"], depth: [1, "depth"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema.items;var currVal_1 = _co.depth - 1;_ck(_v, 1, 0, currVal_0, currVal_1);
    }, null);
}
function View_SubschemaComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 15, "div", [["class", "schema-details"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_7)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(3, 0, null, null, 0, "div", [["class", "description"]], [[8, "hidden", 0], [8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_13)), i0.ɵdid(5, 802816, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_14)), i0.ɵdid(7, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_16)), i0.ɵdid(9, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_18)), i0.ɵdid(11, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_20)), i0.ɵdid(13, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_21)), i0.ɵdid(15, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema.enum;_ck(_v, 2, 0, currVal_0);var currVal_3 = _co.properties;_ck(_v, 5, 0, currVal_3);var currVal_4 = _co.schema.allOf;_ck(_v, 7, 0, currVal_4);var currVal_5 = _co.schema.anyOf;_ck(_v, 9, 0, currVal_5);var currVal_6 = _co.schema.oneOf;_ck(_v, 11, 0, currVal_6);var currVal_7 = _co.schema.not;_ck(_v, 13, 0, currVal_7);var currVal_8 = _co.schema.items;_ck(_v, 15, 0, currVal_8);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_1 = !_co.description;var currVal_2 = _co.marked(_co.description);_ck(_v, 3, 0, currVal_1, currVal_2);
    });
}
function View_SubschemaComponent_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 11, "span", [["class", "title-line"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_1)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(3, 0, null, null, 4, "span", [["class", "schema-type token keyword"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_3)), i0.ɵdid(7, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_5)), i0.ɵdid(9, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(10, 0, null, null, 1, "a", [], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.expanded = !_co.expanded) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 0, "i", [["class", "fa fa-right"]], [[2, "fa-caret-down", null], [2, "fa-caret-left", null]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SubschemaComponent_6)), i0.ɵdid(13, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.name;_ck(_v, 2, 0, currVal_1);var currVal_3 = _co.type === "array";_ck(_v, 7, 0, currVal_3);var currVal_4 = _co.title;_ck(_v, 9, 0, currVal_4);var currVal_8 = _co.expanded;_ck(_v, 13, 0, currVal_8);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.hideTitleLine;_ck(_v, 0, 0, currVal_0);var currVal_2 = _co.type;_ck(_v, 5, 0, currVal_2);var currVal_5 = _co.isPrimitive();_ck(_v, 10, 0, currVal_5);var currVal_6 = _co.expanded;var currVal_7 = !_co.expanded;_ck(_v, 11, 0, currVal_6, currVal_7);
    });
}
function View_SubschemaComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "subschema", [], null, null, null, View_SubschemaComponent_0, RenderType_SubschemaComponent)), i0.ɵdid(1, 638976, null, 0, i1.SubschemaComponent, [i2.OpenAPIService], null, null)], function (_ck, _v) {
        _ck(_v, 1, 0);
    }, null);
}
var SubschemaComponentNgFactory = i0.ɵccf("subschema", i1.SubschemaComponent, View_SubschemaComponent_Host_0, { inputTitle: "title", name: "name", schema: "schema", depth: "depth", expanded: "expanded", hideTitleLine: "hideTitleLine", required: "required" }, {}, []);
exports.SubschemaComponentNgFactory = SubschemaComponentNgFactory;

/***/ }),

/***/ "./src/app/components/schema.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaComponent", function() { return SchemaComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubschemaComponent", function() { return SubschemaComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");


var getType = function (schema) {
    if (Array.isArray(schema.type))
        return schema.type.join(', ');
    if (schema.type)
        return schema.type;
    if (schema.properties)
        return 'object';
    if (schema.items)
        return 'array';
    return 'any';
};
var ɵ0 = getType;
var SchemaComponent = /** @class */ (function () {
    function SchemaComponent(openapi, platformService) {
        this.openapi = openapi;
        this.platformService = platformService;
        this.depth = 3;
        this.showing = 'schema';
    }
    SchemaComponent.prototype.ngOnChanges = function () {
        var example = this.schema.example;
        if (!example) {
            if (this.examples && Object.keys(this.examples).length) {
                var keys = Object.keys(this.examples);
                // FIXME: have a dropdown for different content types.
                if (keys.indexOf('application/json') !== -1) {
                    example = this.examples['application/json'];
                }
                else {
                    example = this.examples[keys[0]];
                }
            }
            else {
                example = this.getExample(this.schema);
            }
        }
        var exampleStr = JSON.stringify(example, null, 2) || '';
        if (window.Prism !== null) {
            this.highlightedExample = window.Prism.highlight(exampleStr, window.Prism.languages.json);
        }
    };
    SchemaComponent.prototype.getType = function (schema) {
        if (schema.$ref) {
            schema = this.openapi.resolveReference(schema.$ref);
        }
        return getType(schema);
    };
    SchemaComponent.prototype.getExample = function (schema, depth) {
        var _this = this;
        if (depth === void 0) { depth = 3; }
        if (depth < 0)
            return;
        if (!schema)
            return null;
        if (schema.$ref)
            schema = this.openapi.resolveReference(schema.$ref);
        var type = Array.isArray(schema.types) ? schema.types[0] : this.getType(schema);
        if (type === 'any') {
            return {};
        }
        else if (type === 'object') {
            var example_1 = {};
            var extensions = [];
            if (schema.allOf)
                extensions = extensions.concat(schema.allOf);
            // TODO: allow anyOf/oneOf without hitting circular issues
            //if (schema.anyOf) extensions.push(schema.anyOf[0]);
            //if (schema.oneOf) extensions.push(schema.oneOf[0]);
            extensions = extensions.map(function (e) { return _this.getExample(e, depth); });
            extensions.forEach(function (ext) {
                for (var key in ext) {
                    example_1[key] = ext[key];
                }
            });
            for (var key in schema.properties) {
                example_1[key] = this.getExample(schema.properties[key] || {}, depth - 1);
            }
            return example_1;
        }
        else if (type === 'array') {
            return [this.getExample(schema.items || {}, depth - 1)];
        }
        else {
            if (schema.default)
                return schema.default;
            if (schema.enum)
                return schema.enum[0];
            if (type === 'string') {
                return "";
            }
            else if (type === 'number') {
                return 0.0;
            }
            else if (type === 'integer') {
                return 0;
            }
            else if (type === 'boolean') {
                return true;
            }
        }
    };
    return SchemaComponent;
}());

var SubschemaComponent = /** @class */ (function () {
    function SubschemaComponent(openapi) {
        this.openapi = openapi;
        this.depth = 0;
        this.required = false;
        this.properties = [];
        this.marked = window.marked;
    }
    SubschemaComponent.prototype.ngOnInit = function () {
        this.schema = this.schema || {};
        if (this.expanded === undefined) {
            this.expanded = this.depth > 0;
        }
        this.maybeResolveRef();
    };
    SubschemaComponent.prototype.ngOnChanges = function () {
        this.reset();
        this.maybeResolveRef();
        if (this.hideTitleLine) {
            this.expanded = true;
        }
    };
    SubschemaComponent.prototype.reset = function () {
        this.type = this.description = this.properties = null;
        this.title = this.inputTitle;
    };
    SubschemaComponent.prototype.maybeResolveRef = function () {
        if (this.schema.$ref) {
            this.title = this.getTitle(this.schema);
            this.setSchema(this.openapi.resolveReference(this.schema.$ref));
        }
        else {
            this.setSchema(this.schema);
        }
    };
    SubschemaComponent.prototype.setSchema = function (schema) {
        var _this = this;
        this.schema = schema || {};
        if (this.schema.title)
            this.title = this.schema.title;
        this.type = this.getType(this.schema);
        this.description = this.schema.description;
        if (this.isPrimitive()) {
            this.expanded = true;
        }
        if (this.schema.properties) {
            this.properties = Object.keys(this.schema.properties);
            if (this.schema.required) {
                this.properties.sort(function (p1, p2) {
                    var r1 = _this.schema.required.indexOf(p1) + 1;
                    var r2 = _this.schema.required.indexOf(p2) + 1;
                    if (r1 && !r2)
                        return -1;
                    if (r2 && !r1)
                        return 1;
                    return 0;
                });
            }
        }
    };
    SubschemaComponent.prototype.isPrimitive = function () {
        return !this.schema.$ref && this.type !== 'array' && this.type !== 'object';
    };
    SubschemaComponent.prototype.getTitle = function (schema) {
        var ref = schema.$ref;
        if (ref) {
            schema = this.openapi.resolveReference(ref);
        }
        if (schema.title)
            return schema.title;
        if (!ref)
            return '';
        var title = ref;
        var slash = title.lastIndexOf('/');
        if (slash >= 0) {
            title = title.substring(slash + 1);
        }
        return title;
    };
    SubschemaComponent.prototype.getType = function (schema) {
        if (schema.$ref) {
            schema = this.openapi.resolveReference(schema.$ref);
        }
        return getType(schema);
    };
    return SubschemaComponent;
}());




/***/ }),

/***/ "./src/app/components/search-results.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SearchResultsComponentNgFactory = exports.RenderType_SearchResultsComponent = undefined;
exports.View_SearchResultsComponent_0 = View_SearchResultsComponent_0;
exports.View_SearchResultsComponent_Host_0 = View_SearchResultsComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _router = __webpack_require__("./node_modules/@angular/router/esm5/router.js");

var i1 = _interopRequireWildcard(_router);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i2 = _interopRequireWildcard(_common);

var _menu = __webpack_require__("./src/app/services/menu.ts");

var i3 = _interopRequireWildcard(_menu);

var _searchResults = __webpack_require__("./src/app/components/search-results.ts");

var i4 = _interopRequireWildcard(_searchResults);

var _search = __webpack_require__("./src/app/services/search.ts");

var i5 = _interopRequireWildcard(_search);

var _routes = __webpack_require__("./src/app/services/routes.ts");

var i6 = _interopRequireWildcard(_routes);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

var styles_SearchResultsComponent = ["h4[_ngcontent-%COMP%] {\n        display: inline-block;\n        margin-right: 10px;\n      }\n      .type[_ngcontent-%COMP%] {\n        display: inline-block;\n      }\n      .type[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%] {\n        text-transform: capitalize;\n        margin-top: -5px;\n      }"]; /**
                                                                                                                                                                                                                                                                                                                                                          * @fileoverview This file was generated by the Angular template compiler. Do not edit.
                                                                                                                                                                                                                                                                                                                                                          *
                                                                                                                                                                                                                                                                                                                                                          * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
                                                                                                                                                                                                                                                                                                                                                          * tslint:disable
                                                                                                                                                                                                                                                                                                                                                          */

var RenderType_SearchResultsComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_SearchResultsComponent, data: {} });
exports.RenderType_SearchResultsComponent = RenderType_SearchResultsComponent;

function View_SearchResultsComponent_2(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "p", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "i", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["No results found."]))], null, null);
}
function View_SearchResultsComponent_4(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [["class", "type"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "div", [["class", "badge"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) {
    var currVal_0 = _v.parent.parent.context.$implicit.type;_ck(_v, 2, 0, currVal_0);
  });
}
function View_SearchResultsComponent_3(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 9, "div", [["class", "result-body"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 3, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 2, "a", [], [[1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
    var ad = true;if ("click" === en) {
      var pd_0 = i0.ɵnov(_v, 3).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
      ad = pd_0 && ad;
    }return ad;
  }, null, null)), i0.ɵdid(3, 671744, null, 0, i1.RouterLinkWithHref, [i1.Router, i1.ActivatedRoute, i2.LocationStrategy], { routerLink: [0, "routerLink"] }, null), (_l()(), i0.ɵted(4, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SearchResultsComponent_4)), i0.ɵdid(6, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(7, 0, null, null, 1, "div", [["class", "description"]], null, null, null, null, null)), (_l()(), i0.ɵted(8, null, ["", ""])), (_l()(), i0.ɵeld(9, 0, null, null, 0, "hr", [], null, null, null, null, null))], function (_ck, _v) {
    var _co = _v.component;var currVal_2 = _co.routes.getNavigationLink(_v.parent.context.$implicit.path);_ck(_v, 3, 0, currVal_2);var currVal_4 = _v.parent.context.$implicit.type;_ck(_v, 6, 0, currVal_4);
  }, function (_ck, _v) {
    var currVal_0 = i0.ɵnov(_v, 3).target;var currVal_1 = i0.ɵnov(_v, 3).href;_ck(_v, 2, 0, currVal_0, currVal_1);var currVal_3 = _v.parent.context.$implicit.fullTitle || _v.parent.context.$implicit.title;_ck(_v, 4, 0, currVal_3);var currVal_5 = _v.parent.context.$implicit.summary;_ck(_v, 8, 0, currVal_5);
  });
}
function View_SearchResultsComponent_1(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [["class", "search-result"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SearchResultsComponent_2)), i0.ɵdid(2, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SearchResultsComponent_3)), i0.ɵdid(4, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
    var currVal_0 = _v.context.$implicit === 0 - 1;_ck(_v, 2, 0, currVal_0);var currVal_1 = _v.context.$implicit !== 0 - 1;_ck(_v, 4, 0, currVal_1);
  }, null);
}
function View_SearchResultsComponent_0(_l) {
  return i0.ɵvid(0, [i0.ɵpid(0, i3.GetMenuItemFromSearchPipe, [i3.MenuService]), (_l()(), i0.ɵeld(1, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Search results"])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "hr", [], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 3, null, View_SearchResultsComponent_1)), i0.ɵdid(5, 802816, null, 0, i2.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), i0.ɵpid(131072, i2.AsyncPipe, [i0.ChangeDetectorRef]), i0.ɵppd(7, 1)], function (_ck, _v) {
    var _co = _v.component;var currVal_0 = i0.ɵunv(_v, 5, 0, _ck(_v, 7, 0, i0.ɵnov(_v, 0), i0.ɵunv(_v, 5, 0, i0.ɵnov(_v, 6).transform(_co.search.results))));_ck(_v, 5, 0, currVal_0);
  }, null);
}
function View_SearchResultsComponent_Host_0(_l) {
  return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "search-results", [], null, null, null, View_SearchResultsComponent_0, RenderType_SearchResultsComponent)), i0.ɵdid(1, 49152, null, 0, i4.SearchResultsComponent, [i5.SearchService, i6.RoutesService], null, null)], null, null);
}
var SearchResultsComponentNgFactory = i0.ɵccf("search-results", i4.SearchResultsComponent, View_SearchResultsComponent_Host_0, {}, {}, []);
exports.SearchResultsComponentNgFactory = SearchResultsComponentNgFactory;

/***/ }),

/***/ "./src/app/components/search-results.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchResultsComponent", function() { return SearchResultsComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__services_search__ = __webpack_require__("./src/app/services/search.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_routes__ = __webpack_require__("./src/app/services/routes.ts");


var SearchResultsComponent = /** @class */ (function () {
    function SearchResultsComponent(search, routes) {
        this.search = search;
        this.routes = routes;
    }
    return SearchResultsComponent;
}());



/***/ }),

/***/ "./src/app/components/side-menu.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.SideMenuItemComponentNgFactory = exports.RenderType_SideMenuItemComponent = exports.SideMenuComponentNgFactory = exports.RenderType_SideMenuComponent = undefined;
exports.View_SideMenuComponent_0 = View_SideMenuComponent_0;
exports.View_SideMenuComponent_Host_0 = View_SideMenuComponent_Host_0;
exports.View_SideMenuItemComponent_0 = View_SideMenuItemComponent_0;
exports.View_SideMenuItemComponent_Host_0 = View_SideMenuItemComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i1 = _interopRequireWildcard(_common);

var _sideMenu = __webpack_require__("./src/app/components/side-menu.ts");

var i2 = _interopRequireWildcard(_sideMenu);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i3 = _interopRequireWildcard(_utils);

var _search = __webpack_require__("./src/app/services/search.ts");

var i4 = _interopRequireWildcard(_search);

var _routes = __webpack_require__("./src/app/services/routes.ts");

var i5 = _interopRequireWildcard(_routes);

var _menu = __webpack_require__("./src/app/services/menu.ts");

var i6 = _interopRequireWildcard(_menu);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i7 = _interopRequireWildcard(_forms);

var _router = __webpack_require__("./node_modules/@angular/router/esm5/router.js");

var i8 = _interopRequireWildcard(_router);

var _platform = __webpack_require__("./src/app/services/platform.service.ts");

var i9 = _interopRequireWildcard(_platform);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i10 = _interopRequireWildcard(_openapi);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

var styles_SideMenuComponent = []; /**
                                    * @fileoverview This file was generated by the Angular template compiler. Do not edit.
                                    *
                                    * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
                                    * tslint:disable
                                    */

var RenderType_SideMenuComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_SideMenuComponent, data: {} });
exports.RenderType_SideMenuComponent = RenderType_SideMenuComponent;

function View_SideMenuComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Navigate"])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null))], null, null);
}
function View_SideMenuComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Hide Navigation"])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-up"]], null, null, null, null, null))], null, null);
}
function View_SideMenuComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Navigation"]))], null, null);
}
function View_SideMenuComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["Version: ", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.openapi.currentVersion.label;_ck(_v, 2, 0, currVal_0);
    });
}
function View_SideMenuComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "li", [], [[2, "disabled", null]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_v.context.$implicit === _co.openapi.currentVersion ? null : _co.openapi.retrieveVersion(_v.context.$implicit)) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit === _co.openapi.currentVersion;_ck(_v, 0, 0, currVal_0);var currVal_1 = _v.context.$implicit.label;_ck(_v, 2, 0, currVal_1);
    });
}
function View_SideMenuComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "span", [["class", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "a", [["class", "dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 4, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, "li", [["class", "dropdown-header"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["API Versions"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_6)), i0.ɵdid(7, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.openapi.versions;_ck(_v, 7, 0, currVal_0);
    }, null);
}
function View_SideMenuComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "a", [["class", "btn btn-default"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0"])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-search"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0"]))], null, null);
}
function View_SideMenuComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "a", [["class", "btn btn-danger"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.search.query = null) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0"])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-times"]], null, null, null, null, null)), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\xA0"]))], null, null);
}
function View_SideMenuComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "side-menu-item", [], [[8, "hidden", 0]], null, null, View_SideMenuItemComponent_0, RenderType_SideMenuItemComponent)), i0.ɵdid(1, 4243456, null, 0, i2.SideMenuItemComponent, [i3.UtilsService, i4.SearchService, i5.RoutesService], { item: [0, "item"], basePage: [1, "basePage"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _v.context.$implicit;var currVal_2 = _co.basePage;_ck(_v, 1, 0, currVal_1, currVal_2);
    }, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit.hidden && !_v.context.$implicit.active && !_v.context.$implicit.expanded;_ck(_v, 0, 0, currVal_0);
    });
}
function View_SideMenuComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵpid(0, i6.MapSearchResultsPipe, [i4.SearchService]), (_l()(), i0.ɵeld(1, 0, null, null, 39, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 36, "div", [["class", "col-xs-12 side-menu-col"]], [[2, "col-sm-4", null], [2, "col-md-3", null], [2, "col-sm-1", null], [2, "text-center", null]], null, null, null, null)), (_l()(), i0.ɵeld(3, 0, null, null, 4, "a", [["class", "btn btn-default visible-xs show-menu-mobile-button"]], [[8, "hidden", 0], [4, "border-bottom", null]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.hideMenu = !_co.hideMenu) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_1)), i0.ɵdid(5, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_2)), i0.ɵdid(7, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(8, 0, null, null, 1, "a", [["class", "btn btn-default show-menu-button hidden-xs"]], [[8, "hidden", 0]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.hideMenu = false) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(9, 0, null, null, 0, "i", [["class", "fa fa-bars"]], null, null, null, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 28, "div", [["class", "side-menu"]], [[8, "hidden", 0], [2, "hidden-xs", null]], null, null, null, null)), (_l()(), i0.ɵeld(11, 0, null, null, 9, "h6", [["class", "menu-heading"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_3)), i0.ɵdid(13, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_4)), i0.ɵdid(15, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_5)), i0.ɵdid(17, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(18, 0, null, null, 2, "div", [["class", "close-menu-button pull-right"]], null, null, null, null, null)), (_l()(), i0.ɵeld(19, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.hideMenu = true) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵeld(20, 0, null, null, 0, "i", [["class", "fa fa-times"]], null, null, null, null, null)), (_l()(), i0.ɵeld(21, 0, null, null, 11, "div", [["class", "input-group input-group-sm"]], null, null, null, null, null)), (_l()(), i0.ɵeld(22, 0, null, null, 5, "input", [["class", "form-control"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 23)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 23).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 23)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 23)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.search.query = $event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(23, 16384, null, 0, i7.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i7.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i7.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i7.DefaultValueAccessor]), i0.ɵdid(25, 671744, null, 0, i7.NgModel, [[8, null], [8, null], [8, null], [2, i7.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i7.NgControl, null, [i7.NgModel]), i0.ɵdid(27, 16384, null, 0, i7.NgControlStatus, [i7.NgControl], null, null), (_l()(), i0.ɵeld(28, 0, null, null, 4, "span", [["class", "input-group-btn"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_7)), i0.ɵdid(30, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuComponent_8)), i0.ɵdid(32, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(33, 0, null, null, 5, "div", [["class", "menu-items"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 4, null, View_SideMenuComponent_9)), i0.ɵdid(35, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), i0.ɵpid(131072, i1.AsyncPipe, [i0.ChangeDetectorRef]), i0.ɵpad(37, 1), i0.ɵppd(38, 2), (_l()(), i0.ɵeld(39, 0, null, null, 1, "div", [["class", "col-xs-12"]], [[2, "col-sm-8", null], [2, "col-md-9", null], [2, "col-sm-11", null]], null, null, null, null)), i0.ɵncd(null, 0)], function (_ck, _v) {
        var _co = _v.component;var currVal_6 = _co.hideMenu || _co.platformService.isServer;_ck(_v, 5, 0, currVal_6);var currVal_7 = !_co.hideMenu && !_co.platformService.isServer;_ck(_v, 7, 0, currVal_7);var currVal_11 = _co.openapi.currentVersion === _co.openapi.versions[0];_ck(_v, 13, 0, currVal_11);var currVal_12 = _co.openapi.currentVersion !== _co.openapi.versions[0];_ck(_v, 15, 0, currVal_12);var currVal_13 = _co.openapi.versions && _co.openapi.versions.length > 1;_ck(_v, 17, 0, currVal_13);var currVal_21 = _co.search.query;_ck(_v, 25, 0, currVal_21);var currVal_22 = !_co.search.query;_ck(_v, 30, 0, currVal_22);var currVal_23 = _co.search.query;_ck(_v, 32, 0, currVal_23);var currVal_24 = _co.basePage === "documentation" ? _co.menu.items : i0.ɵunv(_v, 35, 0, _ck(_v, 38, 0, i0.ɵnov(_v, 0), i0.ɵunv(_v, 35, 0, i0.ɵnov(_v, 36).transform(_co.search.results)), _ck(_v, 37, 0, _co.menu.items)));_ck(_v, 35, 0, currVal_24);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.hideMenu;var currVal_1 = !_co.hideMenu;var currVal_2 = _co.hideMenu;var currVal_3 = _co.hideMenu;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3);var currVal_4 = _co.search.query;var currVal_5 = _co.hideMenu || _co.platformService.isServer ? "" : "none";_ck(_v, 3, 0, currVal_4, currVal_5);var currVal_8 = !_co.hideMenu;_ck(_v, 8, 0, currVal_8);var currVal_9 = _co.hideMenu;var currVal_10 = _co.hideMenu === undefined && _co.platformService.isServer;_ck(_v, 10, 0, currVal_9, currVal_10);var currVal_14 = i0.ɵnov(_v, 27).ngClassUntouched;var currVal_15 = i0.ɵnov(_v, 27).ngClassTouched;var currVal_16 = i0.ɵnov(_v, 27).ngClassPristine;var currVal_17 = i0.ɵnov(_v, 27).ngClassDirty;var currVal_18 = i0.ɵnov(_v, 27).ngClassValid;var currVal_19 = i0.ɵnov(_v, 27).ngClassInvalid;var currVal_20 = i0.ɵnov(_v, 27).ngClassPending;_ck(_v, 22, 0, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20);var currVal_25 = !_co.hideMenu;var currVal_26 = !_co.hideMenu;var currVal_27 = _co.hideMenu;_ck(_v, 39, 0, currVal_25, currVal_26, currVal_27);
    });
}
function View_SideMenuComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "side-menu", [], null, null, null, View_SideMenuComponent_0, RenderType_SideMenuComponent)), i0.ɵdid(1, 245760, null, 0, i2.SideMenuComponent, [i8.ActivatedRoute, i5.RoutesService, i9.PlatformService, i3.UtilsService, i10.OpenAPIService, i6.MenuService, i4.SearchService], null, null)], function (_ck, _v) {
        _ck(_v, 1, 0);
    }, null);
}
var SideMenuComponentNgFactory = i0.ɵccf("side-menu", i2.SideMenuComponent, View_SideMenuComponent_Host_0, { basePage: "basePage" }, {}, ["*"]);
exports.SideMenuComponentNgFactory = SideMenuComponentNgFactory;

var styles_SideMenuItemComponent = [];
var RenderType_SideMenuItemComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_SideMenuItemComponent, data: { "animation": [{ type: 7, name: "shrinkOut", definitions: [{ type: 0, name: "in", styles: { type: 6, styles: { height: "*" }, offset: null }, options: undefined }, { type: 1, expr: "* => void", animation: [{ type: 6, styles: { height: "*", overflow: "hidden" }, offset: null }, { type: 4, styles: { type: 6, styles: { height: 0 }, offset: null }, timings: 250 }], options: null }, { type: 1, expr: "void => *", animation: [{ type: 6, styles: { height: 0, overflow: "hidden" }, offset: null }, { type: 4, styles: { type: 6, styles: { height: "*" }, offset: null }, timings: 250 }], options: null }], options: {} }] } });
exports.RenderType_SideMenuItemComponent = RenderType_SideMenuItemComponent;

function View_SideMenuItemComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "a", [["class", "title"]], [[8, "href", 4]], null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.item.link;_ck(_v, 0, 0, currVal_0);var currVal_1 = _co.item.title;_ck(_v, 2, 0, currVal_1);
    });
}
function View_SideMenuItemComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "a", [["class", "title"], ["preserveFragment", ""], ["preserveQueryParams", ""]], [[2, "active", null], [2, "inactive", null], [2, "truncate", null], [8, "title", 0], [1, "target", 0], [8, "href", 4]], [[null, "click"]], function (_v, en, $event) {
        var ad = true;if ("click" === en) {
            var pd_0 = i0.ɵnov(_v, 1).onClick($event.button, $event.ctrlKey, $event.metaKey, $event.shiftKey) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(1, 671744, null, 0, i8.RouterLinkWithHref, [i8.Router, i8.ActivatedRoute, i1.LocationStrategy], { preserveFragment: [0, "preserveFragment"], routerLink: [1, "routerLink"], preserveQueryParams: [2, "preserveQueryParams"] }, null), (_l()(), i0.ɵeld(2, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], function (_ck, _v) {
        var _co = _v.component;var currVal_6 = "";var currVal_7 = _co.item.link || _co.routes.getNavigationLink(_co.item.path);var currVal_8 = "";_ck(_v, 1, 0, currVal_6, currVal_7, currVal_8);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.item.active;var currVal_1 = !_co.item.active;var currVal_2 = (_co.item.title == null ? null : _co.item.title.indexOf(" ")) === 0 - 1 || _co.item.title === _co.item.operation;var currVal_3 = _co.item.title;var currVal_4 = i0.ɵnov(_v, 1).target;var currVal_5 = i0.ɵnov(_v, 1).href;_ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5);var currVal_9 = _co.item.operation ? _co.utils.markUpOperationTitle(_co.item.title) : _co.item.title;_ck(_v, 2, 0, currVal_9);
    });
}
function View_SideMenuItemComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "side-menu-item", [], [[8, "hidden", 0]], null, null, View_SideMenuItemComponent_0, RenderType_SideMenuItemComponent)), i0.ɵdid(1, 4243456, null, 0, i2.SideMenuItemComponent, [i3.UtilsService, i4.SearchService, i5.RoutesService], { item: [0, "item"], basePage: [1, "basePage"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _v.context.$implicit;var currVal_2 = _co.basePage;_ck(_v, 1, 0, currVal_1, currVal_2);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit.hidden && !_v.context.$implicit.active && !_v.context.$implicit.expanded && !(_co.item.searchable && _co.search.query);_ck(_v, 0, 0, currVal_0);
    });
}
function View_SideMenuItemComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, "div", [["class", "side-menu-children"]], [[24, "@shrinkOut", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 4, null, View_SideMenuItemComponent_4)), i0.ɵdid(2, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), i0.ɵpid(131072, i1.AsyncPipe, [i0.ChangeDetectorRef]), i0.ɵpad(4, 1), i0.ɵppd(5, 2)], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.basePage === "documentation" ? _co.item.children : i0.ɵunv(_v, 2, 0, _ck(_v, 5, 0, i0.ɵnov(_v.parent, 0), i0.ɵunv(_v, 2, 0, i0.ɵnov(_v, 3).transform(_co.search.results)), _ck(_v, 4, 0, _co.item.children)));_ck(_v, 2, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.animateReady && (_co.item.expanded || _co.item.expand) ? "in" : "out";_ck(_v, 0, 0, currVal_0);
    });
}
function View_SideMenuItemComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵpid(0, i6.MapSearchResultsPipe, [i4.SearchService]), (_l()(), i0.ɵeld(1, 0, null, null, 5, "div", [["class", "side-menu-item"]], [[2, "deprecated", null]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-left fa-ellipsis-v text-primary"]], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuItemComponent_1)), i0.ɵdid(4, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuItemComponent_2)), i0.ɵdid(6, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SideMenuItemComponent_3)), i0.ɵdid(8, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) {
        var _co = _v.component;var currVal_2 = _co.item.link && _co.item.link.indexOf("http") === 0;_ck(_v, 4, 0, currVal_2);var currVal_3 = !_co.item.link || _co.item.link.indexOf("http") !== 0;_ck(_v, 6, 0, currVal_3);var currVal_4 = _co.item.children && (_co.item.expanded || _co.item.expand);_ck(_v, 8, 0, currVal_4);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.item.deprecated;_ck(_v, 1, 0, currVal_0);var currVal_1 = !_co.item.expanded && !_co.item.active;_ck(_v, 2, 0, currVal_1);
    });
}
function View_SideMenuItemComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "side-menu-item", [], null, null, null, View_SideMenuItemComponent_0, RenderType_SideMenuItemComponent)), i0.ɵdid(1, 4243456, null, 0, i2.SideMenuItemComponent, [i3.UtilsService, i4.SearchService, i5.RoutesService], null, null)], null, null);
}
var SideMenuItemComponentNgFactory = i0.ɵccf("side-menu-item", i2.SideMenuItemComponent, View_SideMenuItemComponent_Host_0, { item: "item", basePage: "basePage", query: "query" }, {}, []);
exports.SideMenuItemComponentNgFactory = SideMenuItemComponentNgFactory;

/***/ }),

/***/ "./src/app/components/side-menu.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SideMenuComponent", function() { return SideMenuComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SideMenuItemComponent", function() { return SideMenuItemComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_router__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_utils__ = __webpack_require__("./src/app/services/utils.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_menu__ = __webpack_require__("./src/app/services/menu.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_search__ = __webpack_require__("./src/app/services/search.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_routes__ = __webpack_require__("./src/app/services/routes.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");







var matchOrChildMatch = function (cond, item) {
    if (Array.isArray(item))
        return !!item.filter(function (i) { return matchOrChildMatch(cond, i); }).length;
    if (cond(item))
        return true;
    if (item.children)
        return matchOrChildMatch(cond, item.children);
    return false;
};
var ɵ0 = matchOrChildMatch;
var SideMenuComponent = /** @class */ (function () {
    function SideMenuComponent(route, routes, platformService, utils, openapi, menu, search) {
        this.route = route;
        this.routes = routes;
        this.platformService = platformService;
        this.utils = utils;
        this.openapi = openapi;
        this.menu = menu;
        this.search = search;
        this.exactMatch = null;
        this.subscriptions = [];
        window.sideMenuComponent = this;
        var BOOTSTRAP_XS_MAX = 768;
        if (window.innerWidth < BOOTSTRAP_XS_MAX) {
            this.hideMenu = true;
        }
    }
    SideMenuComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    SideMenuComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.subscriptions.push(this.route.queryParams.subscribe(function (params) {
            _this.search.query = params['query'];
        }));
        if (this.basePage === 'console') {
            var lastQuery_1 = undefined;
            this.subscriptions.push(this.search.results.subscribe(function (results) {
                if (!_this.search.query)
                    return _this.exactMatch = lastQuery_1 = null;
                var lower = _this.search.query.toLowerCase();
                _this.exactMatch = _this.menu.getItemWithCond(function (i) { return i.title.toLowerCase() === lower; });
                if (_this.exactMatch && _this.exactMatch.operation && lastQuery_1 !== undefined && _this.search.query !== lastQuery_1) {
                    _this.menu.setActiveItem(_this.exactMatch);
                }
                lastQuery_1 = _this.search.query;
            }));
        }
    };
    return SideMenuComponent;
}());

var SideMenuItemComponent = /** @class */ (function () {
    function SideMenuItemComponent(utils, search, routes) {
        this.utils = utils;
        this.search = search;
        this.routes = routes;
    }
    SideMenuItemComponent.prototype.ngAfterViewInit = function () {
        this.animateReady = true;
    };
    return SideMenuItemComponent;
}());




/***/ }),

/***/ "./src/app/json-schema-form/json-schema-form.component.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.JSONSchemaFormComponentNgFactory = exports.RenderType_JSONSchemaFormComponent = undefined;
exports.View_JSONSchemaFormComponent_0 = View_JSONSchemaFormComponent_0;
exports.View_JSONSchemaFormComponent_Host_0 = View_JSONSchemaFormComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _parameter = __webpack_require__("./src/app/components/parameter.ngfactory.js");

var i1 = _interopRequireWildcard(_parameter);

var _parameter2 = __webpack_require__("./src/app/components/parameter.ts");

var i2 = _interopRequireWildcard(_parameter2);

var _openapi = __webpack_require__("./src/app/services/openapi.ts");

var i3 = _interopRequireWildcard(_openapi);

var _secret = __webpack_require__("./src/app/services/secret.ts");

var i4 = _interopRequireWildcard(_secret);

var _utils = __webpack_require__("./src/app/services/utils.ts");

var i5 = _interopRequireWildcard(_utils);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i6 = _interopRequireWildcard(_common);

var _jsonSchemaForm = __webpack_require__("./src/app/json-schema-form/json-schema-form.component.ts");

var i7 = _interopRequireWildcard(_jsonSchemaForm);

var _forms = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");

var i8 = _interopRequireWildcard(_forms);

var _schemaLabelComponent = __webpack_require__("./src/app/json-schema-form/schema-label.component.ngfactory.js");

var i9 = _interopRequireWildcard(_schemaLabelComponent);

var _schemaLabel = __webpack_require__("./src/app/json-schema-form/schema-label.component.ts");

var i10 = _interopRequireWildcard(_schemaLabel);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

var styles_JSONSchemaFormComponent = [".nested-editor[_ngcontent-%COMP%] {\n        padding-left: 15px;\n      }\n      .type-choice[_ngcontent-%COMP%] {\n        display: inline;\n      }\n      .dropdown[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%] {\n        min-width: 100%;\n      }"]; /**
                                                                                                                                                                                                                                                                                                    * @fileoverview This file was generated by the Angular template compiler. Do not edit.
                                                                                                                                                                                                                                                                                                    *
                                                                                                                                                                                                                                                                                                    * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
                                                                                                                                                                                                                                                                                                    * tslint:disable
                                                                                                                                                                                                                                                                                                    */

var RenderType_JSONSchemaFormComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_JSONSchemaFormComponent, data: {} });
exports.RenderType_JSONSchemaFormComponent = RenderType_JSONSchemaFormComponent;

function View_JSONSchemaFormComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "parameter", [], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            _co.value = $event;
            var pd_0 = _co.valueChange.emit(_co.value) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, i1.View_ParameterComponent_0, i1.RenderType_ParameterComponent)), i0.ɵdid(1, 770048, null, 0, i2.ParameterComponent, [i3.OpenAPIService, i4.SecretService, i5.UtilsService], { inputParameter: [0, "inputParameter"], model: [1, "model"], view: [2, "view"], hideLabel: [3, "hideLabel"], fillFromSecrets: [4, "fillFromSecrets"], readOnly: [5, "readOnly"] }, { valueChange: "valueChange" })], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter;var currVal_1 = _co.parameterModel;var currVal_2 = "console";var currVal_3 = true;var currVal_4 = _co.schema.fromSecrets;var currVal_5 = _co.readOnly;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5);
    }, null);
}
function View_JSONSchemaFormComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_4)), i0.ɵdid(3, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.parameter;_ck(_v, 3, 0, currVal_0);
    }, null);
}
function View_JSONSchemaFormComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "json-schema-form", [], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.nestedValueChange(_v.context.$implicit, $event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_JSONSchemaFormComponent_0, RenderType_JSONSchemaFormComponent)), i0.ɵdid(1, 4767744, null, 0, i7.JSONSchemaFormComponent, [], { label: [0, "label"], inputSchema: [1, "inputSchema"], refBase: [2, "refBase"], inputValue: [3, "inputValue"], nested: [4, "nested"], readOnly: [5, "readOnly"], depth: [6, "depth"], required: [7, "required"], showRemove: [8, "showRemove"] }, { valueChange: "valueChange" }), (_l()(), i0.ɵted(-1, null, ["\n        "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _v.context.$implicit;var currVal_1 = _co.util.getPropertySchema(_v.context.$implicit, _co.schema, _co.refBase) || _co.util.getPropertySchema(_v.context.$implicit, _co.subschema, _co.refBase) || _co.util.getSchemaFromValue(_co.value[_v.context.$implicit]);var currVal_2 = _co.refBase;var currVal_3 = _co.value[_v.context.$implicit];var currVal_4 = true;var currVal_5 = _v.context.$implicit === _co.schema.discriminator;var currVal_6 = _co.depth - 1;var currVal_7 = (_co.schema.required || i0.ɵEMPTY_ARRAY).indexOf(_v.context.$implicit) !== 0 - 1;var currVal_8 = _co.removableProperties.indexOf(_v.context.$implicit) !== 0 - 1;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8);
    }, null);
}
function View_JSONSchemaFormComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "li", [], [[8, "hidden", 0]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n                "])), (_l()(), i0.ɵeld(2, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.additionalPropertyType = _v.context.$implicit) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n              "]))], null, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit === "array";_ck(_v, 0, 0, currVal_0);var currVal_1 = _v.context.$implicit;_ck(_v, 3, 0, currVal_1);
    });
}
function View_JSONSchemaFormComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 28, "div", [["class", "input-group input-group-sm"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n          "])), (_l()(), i0.ɵeld(2, 0, null, null, 5, "input", [["class", "form-control"], ["placeholder", "Add a field"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "keyup"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("input" === en) {
            var pd_0 = i0.ɵnov(_v, 3)._handleInput($event.target.value) !== false;
            ad = pd_0 && ad;
        }if ("blur" === en) {
            var pd_1 = i0.ɵnov(_v, 3).onTouched() !== false;
            ad = pd_1 && ad;
        }if ("compositionstart" === en) {
            var pd_2 = i0.ɵnov(_v, 3)._compositionStart() !== false;
            ad = pd_2 && ad;
        }if ("compositionend" === en) {
            var pd_3 = i0.ɵnov(_v, 3)._compositionEnd($event.target.value) !== false;
            ad = pd_3 && ad;
        }if ("ngModelChange" === en) {
            var pd_4 = (_co.additionalPropertyName = $event) !== false;
            ad = pd_4 && ad;
        }if ("keyup" === en) {
            var pd_5 = ($event.keyCode === 13 ? _co.addProperty() : null) !== false;
            ad = pd_5 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(3, 16384, null, 0, i8.DefaultValueAccessor, [i0.Renderer2, i0.ElementRef, [2, i8.COMPOSITION_BUFFER_MODE]], null, null), i0.ɵprd(1024, null, i8.NG_VALUE_ACCESSOR, function (p0_0) {
        return [p0_0];
    }, [i8.DefaultValueAccessor]), i0.ɵdid(5, 671744, null, 0, i8.NgModel, [[8, null], [8, null], [8, null], [2, i8.NG_VALUE_ACCESSOR]], { model: [0, "model"] }, { update: "ngModelChange" }), i0.ɵprd(2048, null, i8.NgControl, null, [i8.NgModel]), i0.ɵdid(7, 16384, null, 0, i8.NgControlStatus, [i8.NgControl], null, null), (_l()(), i0.ɵted(-1, null, ["\n          "])), (_l()(), i0.ɵeld(9, 0, null, null, 18, "div", [["class", "input-group-btn"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n            "])), (_l()(), i0.ɵeld(11, 0, null, null, 6, "button", [["class", "btn btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n              "])), (_l()(), i0.ɵeld(13, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(14, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n              "])), (_l()(), i0.ɵeld(16, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n            "])), (_l()(), i0.ɵted(-1, null, ["\n            "])), (_l()(), i0.ɵeld(19, 0, null, null, 4, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n              "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_9)), i0.ɵdid(22, 802816, null, 0, i6.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n            "])), (_l()(), i0.ɵted(-1, null, ["\n            "])), (_l()(), i0.ɵeld(25, 0, null, null, 1, "a", [["class", "btn btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.addProperty() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Add"])), (_l()(), i0.ɵted(-1, null, ["\n          "])), (_l()(), i0.ɵted(-1, null, ["\n        "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_7 = _co.additionalPropertyName;_ck(_v, 5, 0, currVal_7);var currVal_9 = _co.util.SCHEMA_TYPES;_ck(_v, 22, 0, currVal_9);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = i0.ɵnov(_v, 7).ngClassUntouched;var currVal_1 = i0.ɵnov(_v, 7).ngClassTouched;var currVal_2 = i0.ɵnov(_v, 7).ngClassPristine;var currVal_3 = i0.ɵnov(_v, 7).ngClassDirty;var currVal_4 = i0.ɵnov(_v, 7).ngClassValid;var currVal_5 = i0.ɵnov(_v, 7).ngClassInvalid;var currVal_6 = i0.ɵnov(_v, 7).ngClassPending;_ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);var currVal_8 = _co.additionalPropertyType || "Type";_ck(_v, 14, 0, currVal_8);
    });
}
function View_JSONSchemaFormComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [["class", "nested-editor"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_7)), i0.ɵdid(3, 802816, null, 0, i6.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_8)), i0.ɵdid(6, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n      "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.allProperties;_ck(_v, 3, 0, currVal_0);var currVal_1 = _co.schema.additionalProperties || _co.allProperties.length === _co.removableProperties.length && !_co.schema["x-abstract"];_ck(_v, 6, 0, currVal_1);
    }, null);
}
function View_JSONSchemaFormComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "json-schema-form", [], null, [[null, "valueChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("valueChange" === en) {
            var pd_0 = _co.nestedValueChange(_v.context.index, $event) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, View_JSONSchemaFormComponent_0, RenderType_JSONSchemaFormComponent)), i0.ɵdid(1, 4767744, null, 0, i7.JSONSchemaFormComponent, [], { label: [0, "label"], inputSchema: [1, "inputSchema"], refBase: [2, "refBase"], inputValue: [3, "inputValue"], nested: [4, "nested"], depth: [5, "depth"], showRemove: [6, "showRemove"] }, { valueChange: "valueChange" }), (_l()(), i0.ɵted(-1, null, ["\n        "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.label + "[" + _v.context.index + "]";var currVal_1 = _co.schema.items;var currVal_2 = _co.refBase;var currVal_3 = _co.value[_v.context.index];var currVal_4 = true;var currVal_5 = 1;var currVal_6 = true;_ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);
    }, null);
}
function View_JSONSchemaFormComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 10, "div", [["class", "nested-editor"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_11)), i0.ɵdid(3, 802816, null, 0, i6.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵeld(5, 0, null, null, 4, "div", [["class", "btn-toolbar"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n          "])), (_l()(), i0.ɵeld(7, 0, null, null, 1, "a", [["class", "btn btn-sm btn-default"]], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = (_co.numItems = _co.numItems + 1) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["Add item"])), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵted(-1, null, ["\n      "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.util.range(_co.numItems || 0);_ck(_v, 3, 0, currVal_0);
    }, null);
}
function View_JSONSchemaFormComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_6)), i0.ɵdid(3, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_10)), i0.ɵdid(6, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "]))], function (_ck, _v) {
        var currVal_0 = i0.ɵnov(_v.parent.parent, 3).type === "object";_ck(_v, 3, 0, currVal_0);var currVal_1 = i0.ɵnov(_v.parent.parent, 3).type === "array";_ck(_v, 6, 0, currVal_1);
    }, null);
}
function View_JSONSchemaFormComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 7, "div", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_3)), i0.ɵdid(3, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_5)), i0.ɵdid(6, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = i0.ɵnov(_v.parent, 3).type === "string" || i0.ɵnov(_v.parent, 3).type === "number" || i0.ɵnov(_v.parent, 3).type === "integer" || i0.ɵnov(_v.parent, 3).type === "boolean";_ck(_v, 3, 0, currVal_0);var currVal_1 = _co.value !== undefined;_ck(_v, 6, 0, currVal_1);
    }, null);
}
function View_JSONSchemaFormComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 8, "div", [["class", "form-group form-group-sm"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵeld(2, 0, null, null, 2, "schema-label", [], [[8, "hidden", 0]], [[null, "onRemoved"], [null, "expandChange"], [null, "schemaChange"], [null, "typeChange"], [null, "subtypeChange"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("onRemoved" === en) {
            var pd_0 = _co.valueChange.emit(undefined) !== false;
            ad = pd_0 && ad;
        }if ("expandChange" === en) {
            var pd_1 = _co.setDefaultValue() !== false;
            ad = pd_1 && ad;
        }if ("schemaChange" === en) {
            var pd_2 = _co.setSchema($event) !== false;
            ad = pd_2 && ad;
        }if ("typeChange" === en) {
            _co.setDefaultValue();
            var pd_3 = _co.setParameter() !== false;
            ad = pd_3 && ad;
        }if ("subtypeChange" === en) {
            var pd_4 = _co.setSubschema($event) !== false;
            ad = pd_4 && ad;
        }return ad;
    }, i9.View_SchemaLabelComponent_0, i9.RenderType_SchemaLabelComponent)), i0.ɵdid(3, 573440, [[1, 4], ["labelComponent", 4]], 0, i10.SchemaLabelComponent, [], { inputSchema: [0, "inputSchema"], refBase: [1, "refBase"], label: [2, "label"], required: [3, "required"], expand: [4, "expand"], showRemove: [5, "showRemove"], showExpand: [6, "showExpand"] }, { typeChange: "typeChange", subtypeChange: "subtypeChange", expandChange: "expandChange", schemaChange: "schemaChange", onRemoved: "onRemoved" }), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_2)), i0.ɵdid(7, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n"]))], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.schema;var currVal_2 = _co.refBase;var currVal_3 = _co.label;var currVal_4 = _co.required;var currVal_5 = _co.value !== undefined || _co.depth > 0;var currVal_6 = _co.showRemove;var currVal_7 = true;_ck(_v, 3, 0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7);var currVal_8 = i0.ɵnov(_v, 3).expand;_ck(_v, 7, 0, currVal_8);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema.hidden;_ck(_v, 2, 0, currVal_0);
    });
}
function View_JSONSchemaFormComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { labelComponent: 0 }), (_l()(), i0.ɵted(-1, null, ["\n"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_JSONSchemaFormComponent_1)), i0.ɵdid(3, 16384, null, 0, i6.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.schema;_ck(_v, 3, 0, currVal_0);
    }, null);
}
function View_JSONSchemaFormComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "json-schema-form", [], null, null, null, View_JSONSchemaFormComponent_0, RenderType_JSONSchemaFormComponent)), i0.ɵdid(1, 4767744, null, 0, i7.JSONSchemaFormComponent, [], null, null)], null, null);
}
var JSONSchemaFormComponentNgFactory = i0.ɵccf("json-schema-form", i7.JSONSchemaFormComponent, View_JSONSchemaFormComponent_Host_0, { label: "label", inputSchema: "schema", refBase: "refBase", inputValue: "value", nested: "nested", readOnly: "readOnly", depth: "depth", required: "required", showRemove: "showRemove" }, { valueChange: "valueChange" }, []);
exports.JSONSchemaFormComponentNgFactory = JSONSchemaFormComponentNgFactory;

/***/ }),

/***/ "./src/app/json-schema-form/json-schema-form.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JSONSchemaFormComponent", function() { return JSONSchemaFormComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__("./src/app/json-schema-form/util.ts");


var JSONSchemaFormComponent = /** @class */ (function () {
    function JSONSchemaFormComponent() {
        this.parameterModel = {};
        this.valueChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.allProperties = [];
        this.numItems = 0;
        this.util = { range: __WEBPACK_IMPORTED_MODULE_1__util__["g" /* range */], getSchemaProperties: __WEBPACK_IMPORTED_MODULE_1__util__["e" /* getSchemaProperties */], getPropertySchema: __WEBPACK_IMPORTED_MODULE_1__util__["c" /* getPropertySchema */], getSchemaFromValue: __WEBPACK_IMPORTED_MODULE_1__util__["d" /* getSchemaFromValue */], SCHEMA_TYPES: __WEBPACK_IMPORTED_MODULE_1__util__["a" /* SCHEMA_TYPES */] };
        this.assign = Object.assign;
    }
    JSONSchemaFormComponent.prototype.ngOnChanges = function () {
        this.setSchema(this.inputSchema);
        this.readOnly = this.readOnly || this.schema.readOnly;
        if (this.value !== this.inputValue) {
            this.value = this.parameterModel[this.parameter.name] = this.inputValue;
            if (Array.isArray(this.value)) {
                this.numItems = this.value.length;
            }
        }
    };
    JSONSchemaFormComponent.prototype.ngAfterViewInit = function () {
        var _this = this;
        setTimeout(function () { return _this.setDefaultValue() && _this.setParameter(); });
    };
    JSONSchemaFormComponent.prototype.setParameter = function () {
        var type = this.labelComponent && this.labelComponent.type;
        this.parameter = Object.assign({ name: this.label, type: type }, this.schema);
    };
    JSONSchemaFormComponent.prototype.setSchema = function (schema) {
        this.schema = schema;
        this.setDefaultValue();
        this.setProperties();
        this.setParameter();
    };
    JSONSchemaFormComponent.prototype.setSubschema = function (schema) {
        if (this.subschema) {
            for (var key in this.subschema.properties) {
                delete this.value[key];
            }
        }
        this.subschema = schema;
        this.setProperties();
        if (schema && this.schema.discriminator) {
            this.value[this.schema.discriminator] = schema.title;
        }
        this.valueChange.emit(this.value);
    };
    JSONSchemaFormComponent.prototype.setProperties = function () {
        if (this.schema['x-abstract'] && !this.subschema) {
            this.allProperties = [];
            this.removableProperties = [];
            return;
        }
        this.allProperties = Object(__WEBPACK_IMPORTED_MODULE_1__util__["e" /* getSchemaProperties */])(this.schema || {}, this.refBase, this.value, this.subschema);
        var nonRemovable = Object(__WEBPACK_IMPORTED_MODULE_1__util__["e" /* getSchemaProperties */])(this.schema || {}, this.refBase, undefined, this.subschema);
        this.removableProperties = this.allProperties.filter(function (p) { return nonRemovable.indexOf(p) === -1; });
    };
    JSONSchemaFormComponent.prototype.setDefaultValue = function () {
        if (!this.labelComponent)
            return;
        if (!this.labelComponent.expand) {
            this.value = undefined;
        }
        else if (this.labelComponent.type === 'object' && (!this.value || typeof this.value !== 'object')) {
            this.value = {};
            this.setProperties();
        }
        else if (this.labelComponent.type === 'array' && !Array.isArray(this.value)) {
            this.value = [];
        }
        else {
            return;
        }
        this.valueChange.emit(this.value);
    };
    JSONSchemaFormComponent.prototype.nestedValueChange = function (propOrIdx, val) {
        if (val === undefined) {
            if (Array.isArray(this.value)) {
                this.value.splice(propOrIdx, 1);
                this.numItems = this.value.length;
            }
            else {
                delete this.value[propOrIdx];
            }
        }
        else {
            this.value[propOrIdx] = val;
        }
        if (!Array.isArray(this.value)) {
            this.setProperties();
        }
        this.valueChange.emit(this.value);
    };
    JSONSchemaFormComponent.prototype.addProperty = function () {
        if (!this.additionalPropertyName)
            return;
        var val = Object(__WEBPACK_IMPORTED_MODULE_1__util__["b" /* getDefaultValueForType */])(this.additionalPropertyType || 'string');
        this.nestedValueChange(this.additionalPropertyName, val);
        this.additionalPropertyName = this.additionalPropertyType = null;
    };
    return JSONSchemaFormComponent;
}());



/***/ }),

/***/ "./src/app/json-schema-form/schema-label.component.ngfactory.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.SchemaLabelComponentNgFactory = exports.RenderType_SchemaLabelComponent = undefined;
exports.View_SchemaLabelComponent_0 = View_SchemaLabelComponent_0;
exports.View_SchemaLabelComponent_Host_0 = View_SchemaLabelComponent_Host_0;

var _core = __webpack_require__("./node_modules/@angular/core/esm5/core.js");

var i0 = _interopRequireWildcard(_core);

var _common = __webpack_require__("./node_modules/@angular/common/esm5/common.js");

var i1 = _interopRequireWildcard(_common);

var _TooltipContent = __webpack_require__("./node_modules/ngx-tooltip/TooltipContent.ngfactory.js");

var i2 = _interopRequireWildcard(_TooltipContent);

var _TooltipContent2 = __webpack_require__("./node_modules/ngx-tooltip/TooltipContent.js");

var i3 = _interopRequireWildcard(_TooltipContent2);

var _Tooltip = __webpack_require__("./node_modules/ngx-tooltip/Tooltip.js");

var i4 = _interopRequireWildcard(_Tooltip);

var _schemaLabel = __webpack_require__("./src/app/json-schema-form/schema-label.component.ts");

var i5 = _interopRequireWildcard(_schemaLabel);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles_SchemaLabelComponent = [".type-choice.dropdown[_ngcontent-%COMP%] {\n        display: inline-block;\n        margin-left: 5px;\n      }"];
var RenderType_SchemaLabelComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_SchemaLabelComponent, data: {} });
exports.RenderType_SchemaLabelComponent = RenderType_SchemaLabelComponent;

function View_SchemaLabelComponent_1(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.clickRemove() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-left fa-times text-danger"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n  "]))], null, null);
}
function View_SchemaLabelComponent_2(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [["class", "text-primary"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["*"]))], null, null);
}
function View_SchemaLabelComponent_3(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "span", [["class", "hl-key"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.type;_ck(_v, 1, 0, currVal_0);
    });
}
function View_SchemaLabelComponent_5(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "li", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵeld(2, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.type = _v.context.$implicit;
            var pd_0 = _co.typeChange.emit(_co.type) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n      "]))], null, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit;_ck(_v, 3, 0, currVal_0);
    });
}
function View_SchemaLabelComponent_4(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 15, "div", [["class", "type-choice dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(2, 0, null, null, 6, "a", [["class", "btn btn-xs btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵeld(7, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(10, 0, null, null, 4, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_5)), i0.ɵdid(13, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵted(-1, null, ["\n  "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.typeChoices;_ck(_v, 13, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.type;_ck(_v, 5, 0, currVal_0);
    });
}
function View_SchemaLabelComponent_7(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "li", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n        "])), (_l()(), i0.ɵeld(2, 0, null, null, 1, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            _co.subtype = _v.context.$implicit;
            _co.expand ? null : _co.toggleExpand();
            var pd_0 = _co.subtypeChange.emit(_v.context.$implicit) !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(3, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n      "]))], null, function (_ck, _v) {
        var currVal_0 = _v.context.$implicit.title;_ck(_v, 3, 0, currVal_0);
    });
}
function View_SchemaLabelComponent_6(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 15, "div", [["class", "type-choice dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(2, 0, null, null, 6, "a", [["class", "btn btn-xs btn-default dropdown-toggle"], ["data-toggle", "dropdown"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵeld(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(5, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵeld(7, 0, null, null, 0, "i", [["class", "fa fa-right fa-caret-down"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(10, 0, null, null, 4, "ul", [["class", "dropdown-menu"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n      "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_7)), i0.ɵdid(13, 802816, null, 0, i1.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵted(-1, null, ["\n  "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.subtypeChoices;_ck(_v, 13, 0, currVal_1);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = (_co.subtype == null ? null : _co.subtype.title) || "Choose one";_ck(_v, 5, 0, currVal_0);
    });
}
function View_SchemaLabelComponent_8(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "tooltip-content", [], null, null, null, i2.View_TooltipContent_0, i2.RenderType_TooltipContent)), i0.ɵdid(1, 4243456, [[1, 4], ["descriptionTooltip", 4]], 0, i3.TooltipContent, [i0.ElementRef, i0.ChangeDetectorRef], null, null), (_l()(), i0.ɵted(-1, 0, ["\n    "])), (_l()(), i0.ɵeld(3, 0, null, 0, 0, "div", [], [[8, "innerHTML", 1]], null, null, null, null)), (_l()(), i0.ɵted(-1, 0, ["\n  "]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.marked(_co.description);_ck(_v, 3, 0, currVal_0);
    });
}
function View_SchemaLabelComponent_9(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 16777216, null, null, 4, "a", [["tooltipPlacement", "right"]], null, [[null, "focusin"], [null, "mouseenter"], [null, "focusout"], [null, "mouseleave"]], function (_v, en, $event) {
        var ad = true;if ("focusin" === en) {
            var pd_0 = i0.ɵnov(_v, 1).show() !== false;
            ad = pd_0 && ad;
        }if ("mouseenter" === en) {
            var pd_1 = i0.ɵnov(_v, 1).show() !== false;
            ad = pd_1 && ad;
        }if ("focusout" === en) {
            var pd_2 = i0.ɵnov(_v, 1).hide() !== false;
            ad = pd_2 && ad;
        }if ("mouseleave" === en) {
            var pd_3 = i0.ɵnov(_v, 1).hide() !== false;
            ad = pd_3 && ad;
        }return ad;
    }, null, null)), i0.ɵdid(1, 16384, null, 0, i4.Tooltip, [i0.ViewContainerRef, i0.ComponentFactoryResolver], { content: [0, "content"], tooltipPlacement: [1, "tooltipPlacement"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(3, 0, null, null, 0, "i", [["class", "fa fa-right fa-question-circle"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.descriptionTooltip;var currVal_1 = "right";_ck(_v, 1, 0, currVal_0, currVal_1);
    }, null);
}
function View_SchemaLabelComponent_10(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, "a", [], null, [[null, "click"]], function (_v, en, $event) {
        var ad = true;var _co = _v.component;if ("click" === en) {
            var pd_0 = _co.toggleExpand() !== false;
            ad = pd_0 && ad;
        }return ad;
    }, null, null)), (_l()(), i0.ɵted(-1, null, ["\n    "])), (_l()(), i0.ɵeld(2, 0, null, null, 0, "i", [["class", "fa fa-right"]], [[2, "fa-plus-square-o", null], [2, "fa-minus-square-o", null]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n  "]))], null, function (_ck, _v) {
        var _co = _v.component;var currVal_0 = !_co.expand;var currVal_1 = _co.expand;_ck(_v, 2, 0, currVal_0, currVal_1);
    });
}
function View_SchemaLabelComponent_11(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "p", [["class", "text-danger"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["Unknown schema"]))], null, null);
}
function View_SchemaLabelComponent_0(_l) {
    return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { descriptionTooltip: 0 }), (_l()(), i0.ɵted(-1, null, ["\n"])), (_l()(), i0.ɵeld(2, 0, null, null, 31, "label", [["class", "monospace"]], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_1)), i0.ɵdid(5, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵeld(7, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(8, null, ["", ""])), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_2)), i0.ɵdid(11, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵeld(13, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [":"])), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_3)), i0.ɵdid(17, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_4)), i0.ɵdid(20, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_6)), i0.ɵdid(23, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_8)), i0.ɵdid(26, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_9)), i0.ɵdid(29, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n  "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_10)), i0.ɵdid(32, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n"])), (_l()(), i0.ɵted(-1, null, ["\n"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_SchemaLabelComponent_11)), i0.ɵdid(36, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵted(-1, null, ["\n    "]))], function (_ck, _v) {
        var _co = _v.component;var currVal_0 = _co.showRemove;_ck(_v, 5, 0, currVal_0);var currVal_2 = _co.required;_ck(_v, 11, 0, currVal_2);var currVal_3 = !_co.typeChoices;_ck(_v, 17, 0, currVal_3);var currVal_4 = _co.typeChoices;_ck(_v, 20, 0, currVal_4);var currVal_5 = _co.subtypeChoices;_ck(_v, 23, 0, currVal_5);var currVal_6 = _co.description;_ck(_v, 26, 0, currVal_6);var currVal_7 = _co.description;_ck(_v, 29, 0, currVal_7);var currVal_8 = _co.showExpand && (_co.type === "object" || _co.type === "array") || _co.schema.$ref;_ck(_v, 32, 0, currVal_8);var currVal_9 = !_co.schema;_ck(_v, 36, 0, currVal_9);
    }, function (_ck, _v) {
        var _co = _v.component;var currVal_1 = _co.label;_ck(_v, 8, 0, currVal_1);
    });
}
function View_SchemaLabelComponent_Host_0(_l) {
    return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "schema-label", [], null, null, null, View_SchemaLabelComponent_0, RenderType_SchemaLabelComponent)), i0.ɵdid(1, 573440, null, 0, i5.SchemaLabelComponent, [], null, null)], null, null);
}
var SchemaLabelComponentNgFactory = i0.ɵccf("schema-label", i5.SchemaLabelComponent, View_SchemaLabelComponent_Host_0, { inputSchema: "schema", refBase: "refBase", label: "label", required: "required", expand: "expand", showRemove: "showRemove", showExpand: "showExpand" }, { typeChange: "typeChange", subtypeChange: "subtypeChange", expandChange: "expandChange", schemaChange: "schemaChange", onRemoved: "onRemoved" }, []);
exports.SchemaLabelComponentNgFactory = SchemaLabelComponentNgFactory;

/***/ }),

/***/ "./src/app/json-schema-form/schema-label.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaLabelComponent", function() { return SchemaLabelComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__("./src/app/json-schema-form/util.ts");


var SchemaLabelComponent = /** @class */ (function () {
    function SchemaLabelComponent() {
        this.showRemove = false;
        this.typeChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.subtypeChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.expandChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.schemaChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.onRemoved = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.marked = window.marked;
    }
    SchemaLabelComponent.prototype.clickRemove = function () {
        this.onRemoved.emit();
    };
    SchemaLabelComponent.prototype.ngOnChanges = function () {
        if (!this.inputSchema)
            return;
        this.setSchema(this.inputSchema);
        if (!this.expand && this.type !== 'array' && this.type !== 'object')
            this.toggleExpand();
        if (this.expand)
            this.maybeResolveRef();
    };
    SchemaLabelComponent.prototype.setSchema = function (schema) {
        var _this = this;
        if (schema === this.schema)
            return;
        this.schema = schema;
        var resolved = schema.$ref ? Object(__WEBPACK_IMPORTED_MODULE_1__util__["h" /* resolveReference */])(schema.$ref, this.refBase) : schema;
        this.label = this.label || resolved.title;
        this.description = resolved.description;
        this.typeChoices = null;
        var type = Object(__WEBPACK_IMPORTED_MODULE_1__util__["f" /* getTypeForSchema */])(resolved, this.refBase);
        if (Array.isArray(type)) {
            if (resolved.type.length > 1) {
                this.typeChoices = resolved.type;
            }
            this.type = type.filter(function (t) { return t !== 'null'; })[0] || type[0];
        }
        else {
            this.type = type;
        }
        if (this.schema.oneOf || this.schema.anyOf) {
            var choices = (this.schema.oneOf || []).concat(this.schema.anyOf || []);
            this.subtypeChoices = choices.map(function (s) {
                return s.$ref ? Object(__WEBPACK_IMPORTED_MODULE_1__util__["h" /* resolveReference */])(s.$ref, _this.refBase) : s;
            });
        }
        this.typeChange.emit(this.type);
        this.schemaChange.emit(this.schema);
    };
    SchemaLabelComponent.prototype.toggleExpand = function () {
        this.expand = !this.expand;
        this.maybeResolveRef();
        if (!this.expand) {
            this.subtype = null;
            this.subtypeChange.emit(null);
        }
        this.expandChange.emit(this.expand);
    };
    SchemaLabelComponent.prototype.maybeResolveRef = function () {
        if (!this.schema.$ref)
            return;
        this.setSchema(Object(__WEBPACK_IMPORTED_MODULE_1__util__["h" /* resolveReference */])(this.schema.$ref, this.refBase));
    };
    return SchemaLabelComponent;
}());



/***/ }),

/***/ "./src/app/json-schema-form/util.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export isObject */
/* unused harmony export removeUndefined */
/* unused harmony export copyObject */
/* unused harmony export getPathID */
/* harmony export (immutable) */ __webpack_exports__["h"] = resolveReference;
/* unused harmony export maybeResolveRef */
/* unused harmony export decodeFilename */
/* unused harmony export encodeFilename */
/* harmony export (immutable) */ __webpack_exports__["g"] = range;
/* unused harmony export getRelativeFilename */
/* harmony export (immutable) */ __webpack_exports__["e"] = getSchemaProperties;
/* harmony export (immutable) */ __webpack_exports__["b"] = getDefaultValueForType;
/* harmony export (immutable) */ __webpack_exports__["d"] = getSchemaFromValue;
/* harmony export (immutable) */ __webpack_exports__["f"] = getTypeForSchema;
/* harmony export (immutable) */ __webpack_exports__["c"] = getPropertySchema;
/* unused harmony export findType */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SCHEMA_TYPES; });
function isObject(obj) {
    return obj && typeof obj === 'object' && !Array.isArray(obj);
}
function removeUndefined(obj) {
    if (typeof obj !== 'object')
        return obj;
    for (var key in obj) {
        if (typeof obj[key] === 'undefined') {
            delete obj[key];
        }
        else {
            obj[key] = removeUndefined(obj[key]);
        }
    }
    return obj;
}
function copyObject(from, to) {
    if (!isObject(from)) {
        console.log('from:', from);
        throw new Error("from is not an object, but a " + typeof from);
    }
    if (!isObject(to)) {
        console.log('to:', to);
        throw new Error("to is not an object, but a " + typeof to);
    }
    var keys = Object.keys(from).concat(Object.keys(to));
    keys.forEach(function (key) {
        if (from[key] === undefined) {
            delete to[key];
        }
        else if (Array.isArray(from[key])) {
            to[key] = to[key] || [];
            if (!from[key].length || from[key].length !== to[key].length || typeof from[key][0] !== 'object') {
                to[key] = from[key];
            }
            else {
                to[key].forEach(function (obj, idx) {
                    try {
                        copyObject(from[key][idx], to[key][idx]);
                    }
                    catch (e) {
                        e.message = idx + ':' + e.message;
                        throw e;
                    }
                });
            }
        }
        else if (isObject(from[key])) {
            to[key] = to[key] || {};
            if (!isObject(to[key])) {
                to[key] = from[key];
            }
            else {
                try {
                    copyObject(from[key], to[key]);
                }
                catch (e) {
                    e.message = key + ':' + e.message;
                    throw e;
                }
            }
        }
        else {
            to[key] = from[key];
        }
    });
}
function getPathID(method, path) {
    return method.toUpperCase() + path.replace(/\W+/g, '_');
}
function resolveReference(ref, base) {
    var keys = ref.split('/');
    keys.shift();
    var cur = base;
    keys.forEach(function (k) { return cur = cur[k]; });
    return cur;
}
function maybeResolveRef(schema, base) {
    if (!schema || !schema.$ref)
        return schema;
    return resolveReference(schema.$ref, base);
}
function decodeFilename(str) {
    return str.replace(/%2E/g, '.');
}
function encodeFilename(str) {
    return str.replace(/\./g, '%2E');
}
function range(num) {
    return new Array(num);
}
function getRelativeFilename(filename, relativeTo) {
    var fParts = filename.split('/');
    var rParts = relativeTo.split('/');
    var firstDifferentIdx = -1;
    fParts = fParts.filter(function (part, idx) {
        if (firstDifferentIdx > -1)
            return true;
        if (part === rParts[idx])
            return false;
        firstDifferentIdx = idx;
        return true;
    });
    fParts.unshift('.');
    return fParts.join('/');
}
function getSchemaProperties(schema, refBase, value, subschema) {
    if (value === void 0) { value = {}; }
    if (subschema === void 0) { subschema = null; }
    if (schema.$ref)
        schema = resolveReference(schema.$ref, refBase);
    var props = Object.keys(schema.properties || {});
    (schema.allOf || []).forEach(function (subschema) {
        if (subschema.$ref)
            subschema = resolveReference(subschema.$ref, refBase);
        var subprops = getSchemaProperties(subschema, refBase);
        props = props.concat(subprops.filter(function (p) { return p !== subschema.discriminator; }));
    });
    if (isObject(value)) {
        var valueProperties = Object.keys(value).filter(function (k) { return props.indexOf(k) === -1; });
        props = props.concat(valueProperties);
    }
    if (subschema) {
        props = props.concat(getSchemaProperties(subschema, refBase));
    }
    var req = schema.required || [];
    return props.filter(function (p, idx) {
        return idx === props.lastIndexOf(p);
    }).sort(function (p1, p2) {
        if (p1 === schema.discriminator)
            return -1;
        if (p2 === schema.discriminator)
            return 1;
        var i1 = (req.indexOf(p1) + 1) || req.length + 1;
        var i2 = (req.indexOf(p2) + 1) || req.length + 1;
        if (i1 === i2)
            return 0;
        return i1 < i2 ? -1 : 1;
    });
}
function getDefaultValueForType(type) {
    if (type === 'object')
        return {};
    else if (type === 'array')
        return [];
    else if (type === 'string')
        return '';
    else if (type === 'boolean')
        return false;
    else if (type === 'number' || type === 'integer')
        return 0;
}
function getSchemaFromValue(val) {
    if (typeof val === undefined)
        return {};
    var type = Array.isArray(val) ? 'array' : typeof val;
    return { type: type };
}
function getTypeForSchema(schema, refBase) {
    if (schema.$ref)
        schema = resolveReference(schema.$ref, refBase);
    if (schema.type)
        return schema.type;
    if (!schema.allOf)
        return null;
    for (var i = 0; i < schema.allOf.length; ++i) {
        var subtype = getTypeForSchema(schema.allOf[i], refBase);
        if (subtype)
            return subtype;
    }
}
function getPropertySchema(prop, schema, refBase) {
    if (!schema)
        return;
    if (schema.$ref)
        schema = resolveReference(schema.$ref, refBase);
    if (schema.properties && schema.properties[prop]) {
        return schema.properties[prop];
    }
    if (schema.allOf) {
        for (var i = 0; i < schema.allOf.length; ++i) {
            var sub = getPropertySchema(prop, schema.allOf[i], refBase);
            if (sub)
                return sub;
        }
    }
}
function findType(schema, type, baseSchema, key) {
    if (baseSchema === void 0) { baseSchema = null; }
    if (key === void 0) { key = ''; }
    if (!schema)
        return;
    if (key)
        key += '.';
    baseSchema = baseSchema || schema;
    schema = maybeResolveRef(schema, baseSchema);
    if (schema.type === type)
        return { schema: schema, key: key };
    for (var subkey in schema.properties || {}) {
        var subschema = maybeResolveRef(schema.properties[subkey], baseSchema);
        if (subschema.type === type) {
            return { schema: subschema, path: key + subkey };
        }
    }
    for (var subkey in schema.properties || {}) {
        var subschema = maybeResolveRef(schema.properties[subkey], baseSchema);
        var ret = findType(subschema, type, baseSchema, key + subkey);
        if (ret)
            return ret;
    }
}
var SCHEMA_TYPES = ['string', 'number', 'boolean', 'array', 'object'];


/***/ }),

/***/ "./src/app/services/github.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCAL_STORAGE_KEY", function() { return LOCAL_STORAGE_KEY; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GitHubService", function() { return GitHubService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_common_http__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_catch__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/catch.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_catch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_catch__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_toPromise__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/toPromise.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_toPromise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_toPromise__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__tracker__ = __webpack_require__("./src/app/services/tracker.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__secret__ = __webpack_require__("./src/app/services/secret.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");








var LOCAL_STORAGE_KEY = 'github_token';
var BASE_URL = 'https://api.github.com';
var REDIRECT_URI = window.config.github.redirect_uri;
var GITHUB_CLIENT_ID = window.config.github.client_id;
var WORKFLOW_DIRECTORY = window.config.workflowDirectory || 'workflows';
var GitHubService = /** @class */ (function () {
    function GitHubService(http, zone, tracker, platformService, secrets) {
        this.http = http;
        this.zone = zone;
        this.tracker = tracker;
        this.platformService = platformService;
        this.secrets = secrets;
        this.scopes = [];
        this.pullRequests = [];
        window.githubService = this;
        this.oauthURL = "https://github.com/login/oauth/authorize";
        this.oauthURL += "?client_id=" + GITHUB_CLIENT_ID;
        this.oauthURL += "&redirect_uri=" + encodeURIComponent(REDIRECT_URI);
        this.oauthURL += '&prompt=select_account';
        this.oauthURL += '&scope=user:email,public_repo';
        this.setPullRequests();
        this.checkAuth();
    }
    GitHubService.prototype.buildSearch = function (params) {
        if (params === void 0) { params = {}; }
        var search = new __WEBPACK_IMPORTED_MODULE_1__angular_common_http__["HttpParams"]();
        for (var k in params)
            search = search.set(k, params[k]);
        if (this.access_token) {
            search = search.set('access_token', this.access_token);
        }
        return search;
    };
    GitHubService.prototype.get = function (url, params) {
        if (params === void 0) { params = {}; }
        return this.setUpRequest(this.http.get(BASE_URL + url, { params: this.buildSearch(params) }));
    };
    GitHubService.prototype.putOrPost = function (method, url, body, query) {
        if (body === void 0) { body = {}; }
        if (query === void 0) { query = {}; }
        var headers = new __WEBPACK_IMPORTED_MODULE_1__angular_common_http__["HttpHeaders"]({ 'Content-Type': 'application/json' });
        var params = this.buildSearch(query);
        return this.setUpRequest(this.http[method](BASE_URL + url, JSON.stringify(body), { headers: headers, params: params }));
    };
    GitHubService.prototype.post = function (url, body, query) {
        if (body === void 0) { body = {}; }
        if (query === void 0) { query = {}; }
        return this.putOrPost('post', url, body, query);
    };
    GitHubService.prototype.put = function (url, body, query) {
        if (body === void 0) { body = {}; }
        if (query === void 0) { query = {}; }
        return this.putOrPost('put', url, body, query);
    };
    GitHubService.prototype.setUpRequest = function (req) {
        var _this = this;
        this.loading = true;
        return req.toPromise()
            .then(function (res) {
            _this.loading = false;
            return res;
        })
            .catch(this.handleError);
    };
    GitHubService.prototype.authorize = function (callback) {
        var _this = this;
        if (callback === void 0) { callback = null; }
        this.onAuthFinished = callback;
        this.secrets.onOAuthFinished = function (qs) { return _this.oauthCallback(qs); };
        window.open(this.oauthURL, '_blank');
    };
    GitHubService.prototype.oauthCallback = function (qs) {
        var _this = this;
        if (this.platformService.isServer)
            return;
        if (qs.error)
            return;
        window.jQuery.ajax({
            method: 'POST',
            url: window.config.github.access_token_url + '?code=' + qs.code,
            headers: { 'Content-Type': 'application/json' },
        }).done(function (data) {
            window.localStorage.setItem(LOCAL_STORAGE_KEY, data.access_token);
            _this.checkAuth();
        }).fail(function (xhr) {
            console.log('oauth failure', xhr.responseText);
        });
    };
    GitHubService.prototype.logout = function () {
        if (this.platformService.isServer)
            return;
        window.localStorage.setItem(LOCAL_STORAGE_KEY, '');
        this.checkAuth();
    };
    GitHubService.prototype.checkAuth = function () {
        var _this = this;
        if (this.platformService.isServer)
            return;
        this.zone.run(function () {
            _this.access_token = window.localStorage.getItem(LOCAL_STORAGE_KEY);
            _this.user = null;
            if (!_this.access_token)
                return;
            _this.get('/user')
                .then(function (data) {
                _this.user = data;
            })
                .then(function () {
                if (_this.onAuthFinished)
                    _this.onAuthFinished();
                _this.onAuthFinished = null;
            });
        });
    };
    GitHubService.prototype.setForkWorkflows = function (forkName) {
        var _this = this;
        this.get('/repos/' + forkName)
            .then(function (repo) {
            return _this.get('/repos/' + forkName + '/contents/' + WORKFLOW_DIRECTORY);
        })
            .then(function (contents) {
            _this.forkWorkflows = contents.map(function (c) { return c.name; });
        });
    };
    GitHubService.prototype.setPullRequests = function () {
        var _this = this;
        this.get('/repos/' + window.config.github.repo + '/pulls')
            .then(function (pulls) { return _this.pullRequests = pulls.filter(function (p) { return p.head.repo; }); });
    };
    GitHubService.prototype.getWorkflowPreviewURL = function (forkName, workflowName) {
        return "https://raw.githubusercontent.com/" + forkName + "/master/" + WORKFLOW_DIRECTORY + "/" + workflowName + "/readme.md";
    };
    GitHubService.prototype.handleError = function (error) {
        var errMsg = (error.message) ? error.message :
            error.status ? error.status + " - " + error.statusText : 'Server error';
        console.error(errMsg);
        return Promise.reject(errMsg);
    };
    return GitHubService;
}());



/***/ }),

/***/ "./src/app/services/menu.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuService", function() { return MenuService; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetMenuItemFromSearchPipe", function() { return GetMenuItemFromSearchPipe; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapSearchResultsPipe", function() { return MapSearchResultsPipe; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__search__ = __webpack_require__("./src/app/services/search.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__routes__ = __webpack_require__("./src/app/services/routes.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__openapi__ = __webpack_require__("./src/app/services/openapi.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tracker__ = __webpack_require__("./src/app/services/tracker.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_platform_browser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__angular_platform_browser__);






var initializeNavigation = __webpack_require__("./src/lib/initialize-navigation.js");
var MenuService = /** @class */ (function () {
    function MenuService(routes, meta, title, openapi, tracker, search) {
        var _this = this;
        this.routes = routes;
        this.meta = meta;
        this.title = title;
        this.openapi = openapi;
        this.tracker = tracker;
        this.search = search;
        this.items = [];
        this.tags = [];
        this.choose = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        this.subscriptions = [];
        window.menuService = this;
        var paramSub = null;
        var triedRedirect = false;
        this.subscriptions.push(this.routes.currentRoute.subscribe(function (route) {
            if (!route)
                return _this.clearNavigation();
            var nav = _this.routes.getCurrentNavigation();
            _this.setNavigation(nav);
            if (paramSub)
                paramSub.unsubscribe();
            paramSub = _this.routes.router.routerState.root.children[0].params.subscribe(function (params) {
                var didRedirect = false;
                if (!triedRedirect) {
                    didRedirect = _this.maybeRedirectFromHash();
                    triedRedirect = true;
                }
                if (!didRedirect)
                    _this.expandForParams(params);
            });
        }));
        this.subscriptions.push(this.choose.subscribe(function (choice) {
            _this.setMeta(choice);
            if (choice) {
                _this.tracker.track('menu', { title: choice.title, path: choice.path });
            }
        }));
        this.subscriptions.push(this.openapi.spec.subscribe(function (spec) {
            var nav = _this.routes.getCurrentNavigation();
            _this.setNavigation(nav);
            _this.expandForParams(_this.routes.getPathParams());
        }));
    }
    MenuService.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    MenuService.prototype.maybeRedirectFromHash = function () {
        if (!window.config.uiOptions.redirectHashURLs)
            return;
        if (!window.originalURL.hash || window.originalURL.hash.indexOf('#/') !== 0)
            return;
        console.log('redirecting...', window.originalURL.hash);
        var title = window.decodeURIComponent(window.originalURL.hash.substring(2));
        title = title.replace(/\W+/g, '_');
        var item = this.getItemWithCond(function (i) {
            return i.path.indexOf(title) === i.path.length - title.length;
        });
        if (item) {
            this.setActiveItem(item);
            return true;
        }
    };
    MenuService.prototype.setMeta = function (item) {
        if (item === void 0) { item = null; }
        var curRoute = this.routes.getCurrentRoute();
        var title = curRoute.meta.title;
        var description = curRoute.meta.description;
        var keywords = curRoute.meta.keywords || [];
        if (item) {
            var meta = item.meta || {};
            title = (meta.title || item.title) + ' - ' + title;
            description = meta.description || item.summary || description;
            keywords = keywords.concat(item.keywords || []);
        }
        this.title.setTitle(title);
        this.meta.updateTag({ name: 'title', content: title });
        this.meta.updateTag({ name: 'description', content: description });
        this.meta.updateTag({ name: 'keywords', content: keywords.join(',') });
    };
    MenuService.prototype.setNavigation = function (nav) {
        var curRoute = this.routes.getCurrentRoute();
        this.onlyAPICalls = curRoute.ui === 'console';
        if (curRoute.openapi
            && (curRoute.openapi !== this.openapi.currentName || !this.openapi.parsed)) {
            return;
        }
        var needsInit = true;
        if (this.currentNavigationSettings
            && this.currentNavigationSettings.navigation === nav
            && this.currentNavigationSettings.openapi === this.openapi.parsed) {
            needsInit = false;
        }
        if (needsInit) {
            this.clearNavigation();
            this.items = initializeNavigation(nav, window.config, this.openapi.parsed) || [];
            this.routes.setCurrentNavigation(this.items);
            this.search.setItems(this.items);
            this.setTags();
        }
        this.currentNavigationSettings = {
            navigation: nav,
            openapi: this.openapi.parsed,
        };
        this.hideInvalidItems();
    };
    MenuService.prototype.setTags = function () {
        this.tags = [];
        this.addTags(this.items);
        this.tags.sort();
    };
    MenuService.prototype.addTags = function (navItems) {
        var _this = this;
        if (!navItems)
            return;
        navItems.filter(function (i) { return i.tags && i.tags !== true; }).forEach(function (item) {
            var tags = item.tags.filter(function (t) { return _this.tags.indexOf(t) === -1; });
            _this.tags = _this.tags.concat(tags);
            _this.addTags(item.children);
        });
    };
    MenuService.prototype.clearNavigation = function () {
        this.items = [];
        this.currentNavigationSettings = null;
        this.clearSelection();
    };
    MenuService.prototype.setActiveItem = function (item) {
        if (!item)
            return this.clearSelection();
        if (item.autoselect && item.children)
            return this.setActiveItem(item.children[0]);
        var curPath = this.getPathFromParams(this.routes.getPathParams());
        if (item.path !== curPath) {
            if (item.path !== this.redirecting) {
                this.redirecting = item.path;
                this.routes.navigate(this.routes.getNavigationLink(item.path), true);
            }
        }
        else {
            this.redirecting = null;
            item.active = item.expanded = true;
            this.currentChoice = item;
            this.choose.emit(item);
        }
    };
    MenuService.prototype.expandForParams = function (params) {
        if (!this.items || !this.items.length) {
            return;
        }
        this.collapseAll();
        if (params['apiCall'] || params['operation']) {
            var menuItem = this.getItemByType('operation', params['apiCall'] || params['operation']);
            return this.setActiveItem(menuItem);
        }
        else if (params['title']) {
            var menuItem = this.getItemByType('title', params['title']);
            return this.setActiveItem(menuItem);
        }
        else if (params['definition']) {
            var menuItem = this.getItemByType('definition', params['definition']);
            return this.setActiveItem(menuItem);
        }
        var path = this.getPathFromParams(params);
        var chosen = this.expandForPath(path);
        var curRoute = this.routes.getCurrentRoute();
        var defaultRoute = this.routes.getDefaultRoute();
        if (!chosen) {
            if (defaultRoute && path !== "/") {
                this.routes.navigate([defaultRoute]);
            }
            else if (curRoute.ui === 'documentation') {
                chosen = chosen || this.items[0];
            }
        }
        this.setActiveItem(chosen);
    };
    MenuService.prototype.getPathFromParams = function (params) {
        var pathParts = [];
        var pathStart = 0;
        while (params['item' + pathStart]) {
            pathParts.push(params['item' + pathStart++]);
        }
        return '/' + pathParts.join('/');
    };
    MenuService.prototype.expandForPath = function (path) {
        var chosen = this.expandFirstMatchingItem(path, this.items);
        return chosen;
    };
    MenuService.prototype.getItemWithCond = function (cond, items) {
        if (items === void 0) { items = null; }
        if (!items)
            items = this.items;
        for (var i = 0; i < items.length; ++i) {
            if (cond(items[i]))
                return items[i];
            var child = this.getItemWithCond(cond, items[i].children || []);
            if (child)
                return child;
        }
        return null;
    };
    MenuService.prototype.getItem = function (path) {
        return this.getItemWithCond(function (i) { return i.path === path; });
    };
    MenuService.prototype.getItemByType = function (type, value) {
        return this.getItemWithCond(function (i) { return i[type] === value; });
    };
    MenuService.prototype.clearSelection = function () {
        this.currentChoice = null;
        this.collapseAll();
        this.choose.emit(null);
    };
    MenuService.prototype.collapseAll = function () {
        var _this = this;
        this.items.forEach(function (i) { return _this.collapseItem(i); });
    };
    MenuService.prototype.collapseItem = function (item) {
        var _this = this;
        item.expanded = item.active = false;
        if (item.children)
            item.children.forEach(function (c) { return _this.collapseItem(c); });
    };
    MenuService.prototype.expandFirstMatchingItem = function (path, items) {
        if (items === void 0) { items = null; }
        return this.expandWithCondition(function (i) { return i.path === path; }, items);
    };
    MenuService.prototype.expandWithCondition = function (cond, items) {
        if (items === void 0) { items = null; }
        if (!items)
            items = this.items;
        for (var i = 0; i < items.length; ++i) {
            var item = items[i];
            if (cond(item) && !item.hidden) {
                item.expanded = true;
                return item;
            }
            var matchedChild = this.expandWithCondition(cond, item.children || []);
            if (matchedChild) {
                item.expanded = true;
                return matchedChild;
            }
        }
    };
    MenuService.prototype.hideWithCondition = function (cond, items) {
        var _this = this;
        if (items === void 0) { items = null; }
        if (!items)
            items = this.items;
        items.forEach(function (item) {
            if (item.children)
                _this.hideWithCondition(cond, item.children);
            var visibleChildren = (item.children || []).filter(function (c) { return !c.hidden; });
            return item.hidden = (cond(item) && !visibleChildren.length) || item.hide;
        });
    };
    MenuService.prototype.hideInvalidItems = function () {
        var _this = this;
        this.hideWithCondition(function (i) {
            if (i.hide)
                return true;
            if (_this.onlyAPICalls && !i.operation)
                return true;
            if (_this.openapi.parsed) {
                if (i.operation && !_this.openapi.getAPICall(i.operation))
                    return true;
                if (i.definition && !_this.openapi.parsed.definitions[i.definition])
                    return true;
            }
            return false;
        });
    };
    return MenuService;
}());

var GetMenuItemFromSearchPipe = /** @class */ (function () {
    function GetMenuItemFromSearchPipe(menu) {
        this.menu = menu;
    }
    GetMenuItemFromSearchPipe.prototype.transform = function (results, args) {
        var _this = this;
        if (!results)
            return [];
        var items = results
            .map(function (r) { return _this.menu.getItem(r.ref) || { hidden: true }; })
            .filter(function (i) { return !i.hidden || i.searchable; });
        if (!items.length)
            return [-1];
        return items;
    };
    return GetMenuItemFromSearchPipe;
}());

var MapSearchResultsPipe = /** @class */ (function () {
    function MapSearchResultsPipe(search) {
        this.search = search;
    }
    MapSearchResultsPipe.prototype.transform = function (results, args) {
        var _this = this;
        var items = args[0];
        var tag = args[1];
        if (!this.search.query && !tag)
            return items;
        results = (results || []).map(function (r) { return r.ref; });
        var matchesQuery = function (item) {
            if (item.hidden && !item.searchable)
                return false;
            var matchesSearch = !_this.search.query || results.indexOf(item.path) !== -1;
            var matchesTag = !tag || (item.tags || []).indexOf(tag) !== -1;
            return (matchesSearch && matchesTag) || !!(item.children || []).filter(function (i) { return matchesQuery(i); }).length;
        };
        var matches = items.filter(function (item) { return matchesQuery(item); });
        return matches.length ? matches : [-1];
    };
    return MapSearchResultsPipe;
}());



/***/ }),

/***/ "./src/app/services/openapi.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpenAPIService", function() { return OpenAPIService; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_Rx__ = __webpack_require__("./node_modules/rxjs/_esm5/Rx.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_Rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_Rx__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_common_http__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__secret__ = __webpack_require__("./src/app/services/secret.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__routes__ = __webpack_require__("./src/app/services/routes.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tracker__ = __webpack_require__("./src/app/services/tracker.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils__ = __webpack_require__("./src/app/services/utils.ts");






var OAUTH_TOKEN_NAMES = {
    'slack.com': 'token',
};
var X_VALUES = [
    'dynamicEnum',
    'dynamicValue',
    'hidden',
    'global',
    'consoleDefault',
    'inputType',
    'group',
    'enumLabels',
    'showCondition',
    'parameterGroups',
];
var getSeparatorFromFormat = function (format) {
    if (format === 'multi')
        return;
    if (!format || format === 'csv') {
        return ',';
    }
    else if (format === 'tsv') {
        return '\t';
    }
    else if (format === 'ssv') {
        return ' ';
    }
    else if (format === 'pipes') {
        return '|';
    }
};
var ɵ0 = getSeparatorFromFormat;
var OpenAPIService = /** @class */ (function () {
    function OpenAPIService(http, routes, tracker, secrets) {
        var _this = this;
        this.http = http;
        this.routes = routes;
        this.tracker = tracker;
        this.secrets = secrets;
        this.specSubject = new __WEBPACK_IMPORTED_MODULE_0_rxjs_Rx__["BehaviorSubject"](null);
        this.versions = [];
        this.globalParameters = {};
        this.subscriptions = [];
        window.lucybot.openapiService = this;
        this.spec = this.specSubject.asObservable();
        this.subscriptions.push(this.spec.subscribe(function (spec) {
            if (!spec)
                return;
            _this.tracker.track('openapi', {
                host: spec.host,
                version: spec.info.version,
                title: spec.info.title,
            });
        }));
        this.subscriptions.push(this.secrets.onChange.subscribe(function (newSecrets) {
            for (var key in newSecrets)
                _this.globalParameters[key] = newSecrets[key];
        }));
        for (var key in this.secrets.secrets)
            this.globalParameters[key] = this.secrets.secrets[key];
        this.subscriptions.push(this.routes.currentRoute.subscribe(function (route) {
            if (route)
                _this.retrieveSpec(route.openapi);
            for (var key in _this.globalParameters)
                delete _this.globalParameters[key];
        }));
        this.subscriptions.push(this.routes.router.routerState.root.children[0].queryParams.subscribe(function (qs) {
            _this.targetVersion = qs['apiVersion'];
            if (_this.currentVersion && _this.currentVersion.label !== _this.targetVersion) {
                var newVersion = _this.versions.filter(function (v) { return v.label === _this.targetVersion; })[0];
                if (newVersion)
                    _this.retrieveVersion(newVersion);
            }
        }));
    }
    OpenAPIService.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    OpenAPIService.prototype.retrieveSpec = function (name) {
        var _this = this;
        if (name === this.currentName)
            return;
        if (this.currentName) {
            this.secrets.clearSecrets();
        }
        this.currentName = name;
        if (!name) {
            this.currentName = null;
            this.parsed = this.original = null;
            this.specSubject.next(null);
            return;
        }
        this.versions = window.config.openapi ? window.config.openapi[name] : [];
        if (window.lucybot.openapi[name] && !this.targetVersion) {
            this.original = window.lucybot.openapi[name];
            this.currentVersion = this.versions[0];
            this.initialize();
            this.specSubject.next(this.parsed);
        }
        else {
            var version = this.versions[0];
            if (this.targetVersion) {
                version = this.versions.filter(function (v) { return v.label === _this.targetVersion; })[0] || version;
            }
            this.retrieveVersion(version);
        }
    };
    OpenAPIService.prototype.retrieveVersion = function (version) {
        var _this = this;
        var name = this.currentName;
        this.currentVersion = version;
        this.loading = true;
        this.original = this.parsed = null;
        this.specSubject.next(null);
        if (window.config.openapi[name][0] !== version) {
            this.routes.addQueryParams({ apiVersion: version.label });
        }
        else {
            this.routes.addQueryParams({ apiVersion: null });
        }
        var specURL = 'openapi/' + name + '.' + version.label.replace(/\W+/g, '_') + '.openapi.json';
        this.http.get(specURL).toPromise()
            .then(function (spec) {
            _this.original = spec;
        })
            .then(function () { return _this.initialize(); })
            .then(function (spec) { return _this.specSubject.next(_this.parsed); })
            .then(function () { return _this.loading = false; });
    };
    OpenAPIService.prototype.getAPICall = function (title) {
        return this.apiCalls.filter(function (a) { return a.title === title; })[0];
    };
    OpenAPIService.prototype.resolveAPICall = function (info) {
        return this.apiCalls.filter(function (apiCall) {
            if (info.title === apiCall.title)
                return true;
            if (info.method === apiCall.method && info.path === apiCall.path)
                return true;
            return false;
        })[0];
    };
    OpenAPIService.prototype.operationMatchesQuery = function (op, query) {
        if (query === void 0) { query = ''; }
        var searchText = op.method + ' ' + op.path + ' ' + (op.operation.operationId || '');
        return searchText.indexOf(query) !== -1;
    };
    OpenAPIService.prototype.getAnswers = function (defaults) {
        if (defaults === void 0) { defaults = {}; }
        var answers = {};
        for (var key in this.secrets.secrets) {
            answers[key] = this.secrets.secrets[key];
        }
        for (var key in this.globalParameters) {
            answers[key] = this.globalParameters[key];
        }
        for (var key in defaults) {
            answers[key] = defaults[key];
        }
        return answers;
    };
    OpenAPIService.prototype.openAPIRequest = function (opts) {
        var _this = this;
        var req = {};
        var op = this.parsed.paths[opts.path][opts.method];
        if (!op) {
            console.log('Operation not found', opts.path, opts.method);
            return;
        }
        var answers = this.getAnswers(opts.answers);
        if (opts.embed) {
            for (var key in window.config.embedParameters || {}) {
                if (answers[key] === undefined)
                    answers[key] = window.config.embedParameters[key];
            }
        }
        req.protocol = this.parsed.schemes.indexOf('https') === -1 ? this.parsed.schemes[0] : 'https';
        req.domain = this.parsed.host;
        req.method = opts.method;
        var basePath = this.parsed.basePath;
        if (basePath.lastIndexOf('/') === basePath.length - 1)
            basePath = basePath.substring(0, basePath.length - 1);
        req.path = basePath + opts.path;
        var consumes = op.consumes || ['application/json'];
        var contentType = '';
        var useTraditional = false;
        var addParam = function (parameter, answer) {
            if (parameter.type === 'file') {
                req.files = req.files || {};
                req.files[parameter.name] = answer;
            }
            else if (parameter.in === 'path') {
                req.path = req.path.replace('{' + parameter.name + '}', answer);
            }
            else if (parameter.in === 'header') {
                req.headers = req.headers || {};
                req.headers[parameter.name] = answer;
            }
            else if (parameter.in === 'formData') {
                if (req.body)
                    req.body += '&';
                else
                    req.body = '';
                req.body += parameter.name + '=' + encodeURIComponent(answer);
                contentType = 'application/x-www-form-urlencoded';
            }
            else if (parameter.in === 'query') {
                req.query = req.query || {};
                req.query[parameter.name] = answer;
                if (parameter.collectionFormat === 'multi')
                    useTraditional = true;
            }
            else if (parameter.in === 'body') {
                contentType = parameter.contentType || consumes[0];
                if (req.body) {
                    if (typeof answer === 'string' && typeof req.body === 'object') {
                        answer = JSON.parse(answer);
                    }
                    req.body = Object.assign({}, req.body, answer);
                }
                else {
                    req.body = contentType === 'application/json' ? JSON.parse(answer) : answer;
                }
            }
        };
        var extendBody = {};
        if (this.parsed.securityDefinitions && op.security) {
            var addedOauth = false;
            op.security.forEach(function (secReq) {
                for (var secName in secReq) {
                    var sec = _this.parsed.securityDefinitions[secName];
                    if (sec.type === 'apiKey') {
                        if (_this.secrets.secrets[sec.name]) {
                            if (sec.in === 'body') {
                                extendBody[sec.name] = _this.secrets.secrets[sec.name];
                            }
                            else {
                                addParam(sec, _this.secrets.secrets[sec.name]);
                            }
                        }
                    }
                    else if (sec.type === 'oauth2' && _this.secrets.secrets.oauth2 && !addedOauth) {
                        if (OAUTH_TOKEN_NAMES[_this.parsed.host]) {
                            addParam({ in: 'query', name: OAUTH_TOKEN_NAMES[_this.parsed.host] }, _this.secrets.secrets.oauth2);
                        }
                        else if (sec.flow === 'implicit') {
                            addParam({ in: 'query', name: 'access_token' }, _this.secrets.secrets.oauth2);
                        }
                        else {
                            addParam({ in: 'header', name: 'Authorization' }, 'Bearer ' + _this.secrets.secrets.oauth2);
                        }
                        addedOauth = true;
                    }
                    else if (sec.type === 'basic' && _this.secrets.secrets.username && _this.secrets.secrets.password) {
                        addParam({ in: 'header', name: 'Authorization' }, 'Basic ' + btoa(_this.secrets.secrets.username + ':' + _this.secrets.secrets.password));
                    }
                }
            });
        }
        op.parameters.forEach(function (parameter) {
            var answer = answers[parameter.name];
            if (parameter.type === 'array') {
                if (parameter.items && parameter.items.type === 'object') {
                    var rxstr = parameter.name.replace(/\[/g, '\\[').replace(/\]/g, '\\]') + '\\[\\d+\\].*';
                    var rx = new RegExp(rxstr);
                    for (var key_1 in answers) {
                        if (rx.test(key_1)) {
                            addParam({
                                in: parameter.in,
                                name: key_1,
                            }, answers[key_1]);
                        }
                    }
                    return;
                }
                else {
                    answer = answer || [];
                    if (!answer.length)
                        return;
                    var sep = getSeparatorFromFormat(parameter.collectionFormat);
                    if (sep)
                        answer = answer.join(sep);
                }
            }
            if (answer === undefined || answer === '') {
                if (parameter.in === 'path') {
                    answer = '';
                }
                else {
                    return;
                }
            }
            addParam(parameter, answer);
        });
        for (var key_2 in extendBody) {
            req.body = req.body || {};
            req.body[key_2] = req.body[key_2] || extendBody[key_2];
        }
        if (contentType) {
            req.headers = req.headers || {};
            req.headers['Content-Type'] = contentType;
        }
        if (useTraditional) {
            req.path += '?' + window.jQuery.param(req.query, true);
            delete req.query;
        }
        return req;
    };
    OpenAPIService.prototype.request = function (opts) {
        var req = this.openAPIRequest(opts);
        var ajaxReq = {
            url: req.protocol + '://' + req.domain + req.path,
            method: req.method.toUpperCase(),
            headers: req.headers,
            data: typeof req.body === 'object' ? JSON.stringify(req.body) : req.body,
        };
        if (opts.proxy) {
            ajaxReq.url = opts.proxy + '/proxy/' + req.protocol + '/' + req.domain + req.path;
        }
        if (req.query) {
            ajaxReq.url += '?';
            Object.keys(req.query).forEach(function (k, idx) {
                if (idx !== 0)
                    ajaxReq.url += '&';
                ajaxReq.url += k + '=' + encodeURIComponent(req.query[k]);
            });
        }
        if (req.files) {
            ajaxReq.data = new FormData();
            for (var pname in req.files)
                ajaxReq.data.append(pname, req.files[pname]);
            ajaxReq.cache = ajaxReq.contentType = ajaxReq.processData = false;
        }
        if (window.config.proxy) {
            var proxyURL = typeof window.config.proxy === 'string' ? window.config.proxy : 'https://crossorigin.me/';
            ajaxReq.url = proxyURL + ajaxReq.url;
        }
        return window.jQuery.ajax(ajaxReq);
    };
    OpenAPIService.prototype.resolveReference = function (ref, cache, base) {
        if (cache === void 0) { cache = {}; }
        if (base === void 0) { base = null; }
        if (cache[ref])
            return cache[ref];
        var keys = ref.split('/');
        keys.shift();
        var cur = base || this.parsed;
        keys.forEach(function (k) { return cur = cur[k]; });
        return cache[ref] = cur;
    };
    OpenAPIService.prototype.dereference = function (obj, cache, base, seen) {
        if (cache === void 0) { cache = {}; }
        if (base === void 0) { base = null; }
        if (seen === void 0) { seen = []; }
        if (typeof obj !== 'object' || obj === null)
            return obj;
        base = base || obj;
        if (seen.indexOf(obj) === -1) {
            seen.push(obj);
        }
        else {
            return obj;
        }
        if (obj.$ref)
            return this.resolveReference(obj.$ref, cache, base);
        if (Array.isArray(obj)) {
            for (var i = 0; i < obj.length; ++i) {
                obj[i] = this.dereference(obj[i], cache, base, seen);
            }
            return obj;
        }
        else if (typeof obj === 'object') {
            for (var key in obj) {
                var val = obj[key];
                obj[key] = this.dereference(val, cache, base, seen);
            }
        }
        return obj;
    };
    OpenAPIService.prototype.replaceXValues = function (obj) {
        X_VALUES.forEach(function (v) {
            if (obj[v] === undefined && obj['x-' + v] !== undefined) {
                obj[v] = obj['x-' + v];
            }
        });
    };
    OpenAPIService.prototype.initialize = function () {
        var _this = this;
        var fixParameter = function (param, origParam, op) {
            if (param.$ref)
                param = JSON.parse(JSON.stringify(_this.resolveReference(param.$ref)));
            if (origParam.$ref)
                origParam = _this.resolveReference(origParam.$ref, {}, _this.original);
            if (param.in === 'body') {
                param.consumes = op.consumes || ['application/json'];
                if (param.schema) {
                    var derefedSchema = param.schema;
                    param.schema = origParam.schema;
                    param.schema.definitions = _this.original.definitions;
                    param.schema.title = derefedSchema.title;
                }
            }
            if (param.type === 'array')
                param.items = param.items || {};
            _this.replaceXValues(param);
            return param;
        };
        var fixOperation = function (op, origOp, pathParams, origPathParams) {
            op.responses = op.responses || {};
            op.consumes = op.consumes || _this.parsed.consumes;
            op.produces = op.produces || _this.parsed.produces;
            op.security = op.security || _this.parsed.security;
            op.parameters = (op.parameters || []).concat(pathParams || []);
            var origParams = (origOp.parameters || []).concat(origPathParams || []);
            op.parameters = op.parameters.map(function (p, idx) { return fixParameter(p, origParams[idx], op); });
            if (op.produces && op.produces.length > 1) {
                var curAcceptParam = op.parameters.filter(function (p) { return p.name.toLowerCase() === 'accept'; })[0];
                if (!curAcceptParam) {
                    var acceptParam = {
                        in: 'header',
                        name: 'Accept',
                        type: 'string',
                        enum: op.produces,
                        consoleDefault: op.produces[0],
                        global: true,
                    };
                    op.parameters.unshift(acceptParam);
                }
            }
            _this.replaceXValues(op);
        };
        this.parsed = window.jQuery.extend(true, {}, this.original);
        this.parsed.host = this.parsed.host || 'localhost';
        this.parsed.schemes = this.parsed.schemes || ['http'];
        this.parsed.definitions = this.parsed.definitions || {};
        this.parsed = this.dereference(this.parsed);
        this.parsed.basePath = this.parsed.basePath || '/';
        for (var key in this.parsed.definitions) {
            var schema = this.parsed.definitions[key];
            var origSchema = this.original.definitions[key];
            schema.title = origSchema.title = schema.title || key;
        }
        if (this.parsed.securityDefinitions) {
            var someOpHasSec = false;
            for (var path in this.parsed.paths) {
                for (var method in this.parsed.paths[path]) {
                    if (__WEBPACK_IMPORTED_MODULE_5__utils__["METHODS"].indexOf(method.toUpperCase()) === -1)
                        continue;
                    var op = this.parsed.paths[path][method];
                    if (op.security)
                        someOpHasSec = true;
                }
            }
            if (!someOpHasSec) {
                this.parsed.security = Object.keys(this.parsed.securityDefinitions).map(function (k) {
                    var ret = {};
                    ret[k] = [];
                    return ret;
                });
            }
        }
        for (var path in this.parsed.paths) {
            var pathParams = this.parsed.paths[path].parameters || [];
            delete this.parsed.paths[path].parameters;
            for (var method in this.parsed.paths[path]) {
                if (__WEBPACK_IMPORTED_MODULE_5__utils__["METHODS"].indexOf(method.toUpperCase()) === -1)
                    continue;
                fixOperation(this.parsed.paths[path][method], this.original.paths[path][method], pathParams, this.original.paths[path].parameters || []);
            }
        }
        this.secrets.hasSecurity = (this.parsed.securityDefinitions &&
            !!Object.keys(this.parsed.securityDefinitions).length);
        this.apiCalls = [];
        for (var path_1 in this.parsed.paths) {
            for (var method_1 in this.parsed.paths[path_1]) {
                if (__WEBPACK_IMPORTED_MODULE_5__utils__["METHODS"].indexOf(method_1.toUpperCase()) === -1)
                    continue;
                var operation = this.parsed.paths[path_1][method_1];
                var id = operation.operationId || method_1.toUpperCase() + ' ' + path_1;
                var apiCall = {
                    id: id,
                    path: path_1,
                    method: method_1,
                    operation: operation,
                    title: id,
                };
                this.apiCalls.push(apiCall);
            }
        }
    };
    OpenAPIService.prototype.startOAuth = function (securityDefinition, scopes) {
        return this.secrets.startOAuth(this.parsed.host, (this.currentVersion || {}).client_id, securityDefinition, scopes);
    };
    OpenAPIService.prototype.fillSchema = function (smaller, schema, checked, recursive) {
        var _this = this;
        if (checked === void 0) { checked = []; }
        if (recursive === void 0) { recursive = true; }
        if (schema.$ref)
            schema = this.resolveReference(schema.$ref);
        if (!smaller.properties)
            return;
        if (checked.indexOf(schema) !== -1)
            return;
        checked.push(schema);
        if (recursive) {
            var subs_1 = [];
            [schema.anyOf, schema.oneOf].filter(function (s) { return s; })
                .map(function (s) { return s.$ref ? _this.resolveReference(s.$ref) : s; })
                .filter(function (s) { return checked.indexOf(s) === -1; })
                .forEach(function (s) { return subs_1 = subs_1.concat(s); });
            for (var _i = 0, subs_2 = subs_1; _i < subs_2.length; _i++) {
                var sub = subs_2[_i];
                this.fillSchema(smaller, sub, checked, true);
                checked.push(sub);
            }
        }
        var subs = [];
        [schema.allOf].filter(function (s) { return s; })
            .map(function (s) { return s.$ref ? _this.resolveReference(s.$ref) : s; })
            .filter(function (s) { return checked.indexOf(s) === -1; })
            .forEach(function (s) { return subs = subs.concat(s); });
        for (var _a = 0, subs_3 = subs; _a < subs_3.length; _a++) {
            var sub = subs_3[_a];
            this.fillSchema(smaller, sub, checked, false);
            checked.push(sub);
        }
        for (var key in smaller.properties) {
            var subschema = schema.properties[key];
            if (!subschema)
                continue;
            if (subschema.$ref)
                subschema = this.resolveReference(subschema.$ref);
            smaller.properties[key] = Object.assign({}, subschema, smaller.properties[key], {
                $ref: undefined,
                allOf: undefined,
                anyOf: undefined,
                oneOf: undefined,
                'x-abstract': undefined,
            });
            this.fillSchema(smaller.properties[key], subschema);
        }
    };
    OpenAPIService.prototype.findProperty = function (schema, key, checked) {
        var _this = this;
        if (checked === void 0) { checked = []; }
        if (schema.$ref)
            schema = this.resolveReference(schema.$ref);
        if (schema.properties && schema.properties[key])
            return schema.properties[key];
        if (checked.indexOf(schema) !== -1)
            return;
        checked.push(schema);
        var subs = [];
        [schema.allOf, schema.anyOf, schema.oneOf].filter(function (s) { return s; })
            .map(function (s) { return s.$ref ? _this.resolveReference(s.$ref) : s; })
            .filter(function (s) { return checked.indexOf(s) === -1; })
            .forEach(function (s) { return subs = subs.concat(s); });
        checked = checked.concat(subs);
        for (var _i = 0, subs_4 = subs; _i < subs_4.length; _i++) {
            var sub = subs_4[_i];
            var prop = this.findProperty(sub, key, checked);
            if (prop)
                return prop;
        }
    };
    return OpenAPIService;
}());




/***/ }),

/***/ "./src/app/services/platform.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlatformService", function() { return PlatformService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__("./node_modules/@angular/common/esm5/common.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_common__);

var PlatformService = /** @class */ (function () {
    function PlatformService(platformId) {
        this.platformId = platformId;
    }
    Object.defineProperty(PlatformService.prototype, "isBrowser", {
        get: function () {
            return Object(__WEBPACK_IMPORTED_MODULE_0__angular_common__["isPlatformBrowser"])(this.platformId);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PlatformService.prototype, "isServer", {
        get: function () {
            return Object(__WEBPACK_IMPORTED_MODULE_0__angular_common__["isPlatformServer"])(this.platformId);
        },
        enumerable: true,
        configurable: true
    });
    return PlatformService;
}());



/***/ }),

/***/ "./src/app/services/routes.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RoutesService", function() { return RoutesService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__("./node_modules/@angular/common/esm5/common.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_common__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__angular_router__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_Rx__ = __webpack_require__("./node_modules/rxjs/_esm5/Rx.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_Rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_Rx__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_platform_browser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__angular_platform_browser__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__tracker__ = __webpack_require__("./src/app/services/tracker.ts");






var RoutesService = /** @class */ (function () {
    function RoutesService(router, location, title, meta, tracker, zone) {
        var _this = this;
        this.router = router;
        this.location = location;
        this.title = title;
        this.meta = meta;
        this.tracker = tracker;
        this.zone = zone;
        this.subscriptions = [];
        window.routesService = this;
        this.currentRoute = new __WEBPACK_IMPORTED_MODULE_3_rxjs_Rx__["BehaviorSubject"](null);
        var lastChild = null;
        this.subscriptions.push(this.router.events.subscribe(function (evt) {
            var event = evt;
            if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__["NavigationStart"]) {
                var basePath = _this.getBasePath(event.url);
                if (basePath !== _this.getCurrentBasePath()) {
                    _this.currentRoute.next(null);
                }
            }
            else if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__["NavigationEnd"]) {
                var newRoute = _this.getCurrentRoute();
                if (newRoute !== _this.currentRoute.getValue()
                    || lastChild !== _this.router.routerState.root.children[0]) {
                    lastChild = _this.router.routerState.root.children[0];
                    _this.tracker.track('route', {
                        url: event.url,
                    });
                    window.jQuery('body').removeClass(function (idx, names) {
                        names = names.split(' ').filter(function (n) { return n.indexOf('ui-') === 0; }).join(' ');
                        return names;
                    });
                    window.jQuery('body').addClass('ui-' + newRoute.ui);
                    _this.title.setTitle(newRoute.meta.title);
                    _this.meta.updateTag({ name: 'title', content: newRoute.meta.title });
                    _this.meta.updateTag({ name: 'description', content: newRoute.meta.description });
                    _this.meta.updateTag({ name: 'keywords', content: (newRoute.meta.keywords || []).join(',') });
                    _this.currentRoute.next(newRoute);
                }
            }
        }));
    }
    RoutesService.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    RoutesService.prototype.navigate = function (link, isRedirect, extras) {
        var _this = this;
        if (isRedirect === void 0) { isRedirect = false; }
        if (extras === void 0) { extras = {}; }
        if (!extras.queryParams) {
            extras.queryParams = this.getQueryParams();
        }
        if (isRedirect) {
            extras.replaceUrl = true;
        }
        this.zone.run(function () {
            _this.router.navigate(link, extras);
        });
    };
    RoutesService.prototype.addQueryParams = function (params) {
        var link = this.getCurrentPath().split('/');
        var childRoute = this.router.routerState.root.children[0];
        var queryObs = childRoute.queryParams;
        var queryParams = window.jQuery.extend({}, queryObs.getValue());
        for (var k in params)
            queryParams[k] = params[k];
        for (var k in queryParams)
            if (queryParams[k] === null)
                delete queryParams[k];
        this.navigate(link, true, { queryParams: queryParams });
    };
    RoutesService.prototype.getCurrentPath = function () {
        return this.router.url.substring(1).split(';')[0].split('?')[0];
    };
    RoutesService.prototype.getPathParams = function () {
        var paramObs = this.router.routerState.root.children[0].params;
        return paramObs.getValue();
    };
    RoutesService.prototype.getQueryParams = function () {
        var paramObs = this.router.routerState.root.children[0].queryParams;
        return paramObs.getValue();
    };
    RoutesService.prototype.getBasePath = function (longPath) {
        var best = '';
        Object.keys(window.config.routes).forEach(function (path) {
            if (path.length > best.length && longPath.indexOf(path) === 0) {
                best = path;
            }
        });
        return best;
    };
    RoutesService.prototype.getDefaultRoute = function () {
        return window.config.routes.default;
    };
    RoutesService.prototype.getCurrentBasePath = function () {
        return this.getBasePath(this.router.url) || window.config.routes.default || Object.keys(window.config.routes)[0];
    };
    RoutesService.prototype.getCurrentRoute = function () {
        var path = this.getCurrentBasePath();
        var route = window.config.routes[path];
        if (typeof route.navigation === 'string') {
            route.navigation = window.config[route.navigation];
        }
        return route;
    };
    RoutesService.prototype.getCurrentNavigation = function () {
        var nav = this.getCurrentRoute().navigation;
        if (typeof nav === 'string')
            nav = window.config[nav];
        return nav;
    };
    RoutesService.prototype.setCurrentNavigation = function (nav) {
        this.getCurrentRoute().navigation = nav;
    };
    RoutesService.prototype.getPathParts = function (path) {
        if (path === void 0) { path = ''; }
        if (path.charAt(0) === '/')
            path = path.substring(1);
        return path.split('/');
    };
    RoutesService.prototype.getLink = function (uiType) {
        var curRoute = this.getCurrentRoute();
        for (var path in window.config.routes) {
            var route = window.config.routes[path];
            if (route.ui === uiType && (route.openapi === curRoute.openapi || !curRoute.openapi)) {
                var link = this.getPathParts(path);
                link[0] = '/' + link[0];
                return link;
            }
        }
    };
    RoutesService.prototype.getBaseLink = function () {
        var parts = this.getPathParts(this.getCurrentBasePath());
        parts[0] = '/' + parts[0];
        return parts;
    };
    RoutesService.prototype.getAPICallLink = function (apiCall, docsOrConsole) {
        var link = this.getLink(docsOrConsole);
        var base = this.getBasePath(link);
        var route = window.config.routes[base];
        if (typeof route.navigation === 'string') {
            route.navigation = window.config[route.navigation];
        }
        function getLink(items) {
            if (!items)
                return;
            for (var i = 0; i < items.length; ++i) {
                var item = items[i];
                if (item.operation === apiCall.id)
                    return item;
                var child = getLink(item.children);
                if (child)
                    return child;
            }
        }
        var sublink = getLink(route.navigation);
        if (!sublink)
            throw new Error("nav not found for " + apiCall.method + ' ' + apiCall.path);
        return link.concat(sublink.path.substring(1).split('/'));
    };
    RoutesService.prototype.getNavigationLink = function (path) {
        var parts = [this.getCurrentBasePath()];
        parts = parts.concat(this.getPathParts(path));
        return parts;
    };
    RoutesService.prototype.makeRelativePathAbsolute = function (path) {
        if (path.charAt(0) === '/')
            return path;
        var base = this.getCurrentBasePath();
        if (base.charAt(base.length - 1) !== '/')
            base += '/';
        return base + path;
    };
    return RoutesService;
}());



/***/ }),

/***/ "./src/app/services/search.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchService", function() { return SearchService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Rx__ = __webpack_require__("./node_modules/rxjs/_esm5/Rx.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Rx__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tracker__ = __webpack_require__("./src/app/services/tracker.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__routes__ = __webpack_require__("./src/app/services/routes.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");






var REFRESH_RATE = 1000;
var SearchService = /** @class */ (function () {
    function SearchService(routes, tracker, zone, platformService) {
        var _this = this;
        this.routes = routes;
        this.tracker = tracker;
        this.zone = zone;
        this.platformService = platformService;
        this.subscriptions = [];
        window.searchService = window.lucybot.searchService = this;
        this.resultSubject = new __WEBPACK_IMPORTED_MODULE_1_rxjs_Rx__["BehaviorSubject"](null);
        this.results = this.resultSubject.asObservable();
        this.startSearchInterval();
        this.subscriptions.push(this.results.subscribe(function (val) {
            if (!val)
                return;
            var params = {};
            params.query = _this.query || null;
            _this.routes.addQueryParams(params);
        }));
    }
    SearchService.prototype.ngOnDestroy = function () {
        this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
    };
    SearchService.prototype.startSearchInterval = function () {
        var _this = this;
        if (this.interval)
            window.clearInterval(this.interval);
        var lastQuery = undefined;
        this.zone.runOutsideAngular(function () {
            _this.interval = setInterval(function () {
                if (_this.query === lastQuery)
                    return;
                lastQuery = _this.query;
                _this.zone.run(function () {
                    _this.performSearch();
                });
            }, REFRESH_RATE);
        });
    };
    SearchService.prototype.performSearch = function () {
        var _this = this;
        if (!this.query)
            return this.resultSubject.next([]);
        this.tracker.track('search', { query: this.query });
        if (window.lucybot.search) {
            window.lucybot.search(this.query, '', function (err, results) {
                if (err)
                    throw err;
                _this.resultSubject.next(results);
            });
        }
        else {
            if (!this.index)
                return setTimeout(function () { return _this.performSearch(); }, 100);
            var results = this.index.search(this.query);
            this.resultSubject.next(results);
        }
    };
    SearchService.prototype.setItems = function (items) {
        var _this = this;
        if (this.platformService.isServer || window.lucybot.search) {
            return;
        }
        this.index = null;
        this.requestID = Math.floor(Math.random() * 10000000000);
        var LunrWorker = __webpack_require__("./node_modules/worker-loader/index.js!./src/app/lunr_worker.js");
        var worker = new LunrWorker;
        worker.onmessage = function (e) {
            var message = JSON.parse(e.data);
            if (message.requestID === _this.requestID) {
                _this.index = window.lunr.Index.load(message.index);
            }
            worker.terminate();
        };
        worker.postMessage({ requestID: this.requestID, items: items });
    };
    return SearchService;
}());



/***/ }),

/***/ "./src/app/services/secret.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecretService", function() { return SecretService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__tracker__ = __webpack_require__("./src/app/services/tracker.ts");


window.onOAuthComplete = function (qs) {
    if (qs.error)
        throw new Error(qs.error);
    window.secretService.oauthFinished(qs);
};
var OAUTH_CALLBACK = window.config.oauth.callback_url ||
    window.location.protocol + '//' + window.location.host + (window.config.basePath || '/') + 'oauth_callback.html';
var SecretService = /** @class */ (function () {
    function SecretService(zone, tracker) {
        this.zone = zone;
        this.tracker = tracker;
        this.secrets = {};
        this.oauthSettings = {};
        this.onChange = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
        window.secretService = this;
    }
    SecretService.prototype.setSecrets = function (secrets) {
        var _this = this;
        this.tracker.track('authenticate', { keys: Object.keys(secrets).join(',') });
        this.zone.run(function () {
            for (var key in secrets)
                _this.secrets[key] = secrets[key];
            _this.onChange.emit(_this.secrets);
        });
    };
    SecretService.prototype.clearSecrets = function () {
        this.secrets = {};
        this.setSecrets({});
    };
    SecretService.prototype.startOAuth = function (host, clientId, securityDefinition, scopes) {
        var _this = this;
        var flow = securityDefinition.flow;
        var url = securityDefinition.authorizationUrl;
        var state = Math.random();
        var redirect = OAUTH_CALLBACK;
        this.oauthSettings = {
            host: host, clientId: clientId,
        };
        url += '?response_type=' + (flow === 'implicit' ? 'token' : 'code');
        url += '&redirect_uri=' + redirect;
        url += '&client_id=' + encodeURIComponent(clientId);
        if (scopes.length > 0) {
            url += '&scope=' + encodeURIComponent(scopes.join(' '));
        }
        url += '&state=' + encodeURIComponent(state.toString());
        this.tracker.track('start_oauth', { authURL: url, scope: scopes });
        window.open(url, '_blank');
        return new Promise(function (resolve, reject) {
            _this.oauthSettings.promise = { resolve: resolve, reject: reject };
        });
    };
    SecretService.prototype.oauthFinished = function (qs) {
        var _this = this;
        if (this.onOAuthFinished) {
            this.onOAuthFinished(qs);
            this.onOAuthFinished = null;
            return;
        }
        else if (qs.error) {
            this.oauthSettings.promise.reject(new Error(qs.error));
            return;
        }
        if (qs.access_token) {
            this.setSecrets({ oauth2: qs.access_token });
            this.oauthSettings.promise.resolve();
        }
        else {
            var tokenURL = window.config.oauth.token_url;
            tokenURL += '?code=' + qs.code;
            tokenURL += '&host=' + encodeURIComponent(this.oauthSettings.host);
            tokenURL += '&client_id=' + encodeURIComponent(this.oauthSettings.clientId);
            tokenURL += '&redirect_uri=' + encodeURIComponent(OAUTH_CALLBACK);
            window.jQuery.ajax({
                method: 'POST',
                url: tokenURL,
                headers: { 'Content-Type': 'application/json' },
            }).done(function (data) {
                _this.setSecrets({ oauth2: data.access_token });
                _this.oauthSettings.promise.resolve();
            }).fail(function (xhr) {
                _this.oauthSettings.promise.reject(new Error(xhr.responseText));
            });
        }
    };
    SecretService.prototype.isAuthenticated = function (operation) {
        var _this = this;
        if (operation === void 0) { operation = null; }
        if (!this.hasSecurity)
            return true;
        if (operation) {
            if (!operation.security || !operation.security.length)
                return true;
            // TODO: confirm that secrets conform to one of operation.securty
        }
        return !!Object.keys(this.secrets).filter(function (k) { return _this.secrets[k]; }).length;
    };
    SecretService.prototype.startAuthentication = function () {
        if (window.lucybot.startLogin) {
            window.lucybot.startLogin();
        }
        else {
            this.onOAuthFinished = null;
            window.jQuery('#AuthenticationModal').modal('show');
        }
    };
    return SecretService;
}());



/***/ }),

/***/ "./src/app/services/tour.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TourService", function() { return TourService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__tracker__ = __webpack_require__("./src/app/services/tracker.ts");

var TOURS = {};
TOURS.console = {
    id: 'console',
    steps: [{
            title: "API Console",
            target: ".breadcrumbs",
            placement: 'bottom',
            content: "\nWelcome to the API Console. Here you can make test calls to the API,\nsee how it responds, and generate code for calling the API in a\nfew different languages.\n",
        }, {
            title: "Choose an Operation",
            target: ".side-menu",
            placement: 'right',
            content: "\nUse this menu to choose which operation you want to call.\n",
        }, {
            title: "Set Parameters",
            target: '.parameters-title',
            placement: 'top',
            content: "\nMost operations will need some input. You can fill out any\nparameters here.\n"
        }, {
            title: "Sample Code",
            target: 'sample-code',
            placement: 'top',
            content: "\nAs you fill out the parameters, you can see sample code for\nmaking the same API call in a number of different programming languages.\n"
        }, {
            title: "Send the Request",
            target: '.execute-button',
            placement: 'bottom',
            content: "\nWhen you're ready, hit this button to send the request.\n"
        }],
};
var TourService = /** @class */ (function () {
    function TourService(tracker) {
        this.tracker = tracker;
        this.tours = TOURS;
    }
    TourService.prototype.startTour = function (name) {
        this.tracker.track('tour', { name: name });
        window.hopscotch.endTour();
        var tour = JSON.parse(JSON.stringify(this.tours[name]));
        tour.steps
            .filter(function (s) { return typeof s.target === 'string'; })
            .forEach(function (s) { return s.target = window.document.querySelector(s.target); });
        return window.hopscotch.startTour(tour);
    };
    return TourService;
}());



/***/ }),

/***/ "./src/app/services/tracker.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrackerService", function() { return TrackerService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_catch__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/catch.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_catch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_catch__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_toPromise__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/toPromise.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_toPromise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_toPromise__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__platform_service__ = __webpack_require__("./src/app/services/platform.service.ts");




var TrackerService = /** @class */ (function () {
    function TrackerService(platformService) {
        this.platformService = platformService;
        this.mixpanel = window.lucybot.tracker ? { track: window.lucybot.tracker } : window.mixpanel;
    }
    TrackerService.prototype.track = function (name, details) {
        if (details === void 0) { details = {}; }
        if (!this.mixpanel || this.platformService.isServer)
            return;
        this.mixpanel.track(name, details);
    };
    return TrackerService;
}());



/***/ }),

/***/ "./src/app/services/utils.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "METHODS", function() { return METHODS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UtilsService", function() { return UtilsService; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_router__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__secret__ = __webpack_require__("./src/app/services/secret.ts");



var METHODS = ['GET', 'PUT', 'POST', 'PATCH', 'HEAD', 'OPTIONS', 'DELETE'];
var METHOD_AND_PATH_REGEX = /^(GET|PUT|POST|PATCH|HEAD|OPTIONS|DELETE)\s+(\/.*)$/i;
var shiftLines = function (code, numSpaces) {
    if (!numSpaces)
        return code;
    var lines = code.split('\n');
    var spaces = Array(numSpaces + 1).join(' ');
    return lines.map(function (l, idx) { return (l && idx > 0) ? spaces + l : l; }).join('\n');
};
var ɵ0 = shiftLines;
var UtilsService = /** @class */ (function () {
    function UtilsService(sanitizer, secrets) {
        this.sanitizer = sanitizer;
        this.secrets = secrets;
        this.lucybot = window.lucybot;
        this.config = window.config;
        this.markdownToRecipe = __webpack_require__("./src/lib/markdown-to-recipe.js");
        this.recipeToMarkdown = __webpack_require__("./src/lib/recipe-to-markdown.js");
        window.utilsService = this;
        window.NavigationEnd = __WEBPACK_IMPORTED_MODULE_0__angular_router__["NavigationEnd"];
    }
    UtilsService.prototype.markUpOperationTitle = function (title) {
        var m = title.match(METHOD_AND_PATH_REGEX);
        if (!m)
            return title;
        var method = m[1];
        var path = m[2];
        var markedUp = "<span data-method=\"" + method.toLowerCase() + "\">" + method.toUpperCase() + "</span><span class=\"operation-path\">" + path + "</span>";
        return this.sanitizer.bypassSecurityTrustHtml(markedUp);
    };
    UtilsService.prototype.getTemplateInput = function (input) {
        if (input === void 0) { input = {}; }
        input = Object.assign({
            shift: shiftLines,
            answers: {},
        }, input);
        for (var key in this.secrets.secrets) {
            if (input.answers[key] === undefined)
                input.answers[key] = this.secrets.secrets[key];
        }
        return input;
    };
    UtilsService.prototype.render = function (template, input) {
        if (input === void 0) { input = {}; }
        input = this.getTemplateInput(input);
        try {
            return window.ejs.render(template, input);
        }
        catch (e) {
            return e;
        }
    };
    UtilsService.prototype.scrollToSelection = function (sel) {
        var OFFSET = 10;
        var navHeight = window.jQuery('nav').height();
        var visibleHeight = window.innerHeight - navHeight;
        var targetTop = sel.offset().top - navHeight; // puts elem at top of visible area
        var curScrollTop = window.jQuery('body').scrollTop();
        var movement = curScrollTop - targetTop;
        if (Math.abs(movement) > (window.innerHeight / 2)) {
            var diffFromWindow = visibleHeight - sel.height();
            if (diffFromWindow > 0) {
                targetTop -= diffFromWindow - OFFSET; // Only scroll far enough to make entire elem visible
            }
            else {
                targetTop -= OFFSET;
            }
            window.jQuery('html,body').animate({
                scrollTop: targetTop,
            }, 1000);
        }
    };
    UtilsService.prototype.followPath = function (obj, path) {
        if (!path || !obj)
            return obj;
        var dot = path.indexOf('.');
        if (dot === -1)
            return obj[path];
        var key = path.substring(0, dot);
        return this.followPath(obj[key], path.substring(dot + 1));
    };
    return UtilsService;
}());




/***/ }),

/***/ "./src/app/views/oauth_callback.html":
/***/ (function(module, exports) {

module.exports = "<script type=\"text/javascript\">\nvar qp = null;\nif (window.location.hash) {\n  qp = location.hash.substring(1);\n} else {\n  qp = location.search.substring(1);\n}\nqp = !qp ? {} : JSON.parse('{\"' + qp.replace(/&/g, '\",\"').replace(/=/g,'\":\"') + '\"}',\n  function(key, value) {\n    return key===\"\" ? value : decodeURIComponent(value);\n  })\n\nwindow.opener.onOAuthComplete(qp);\n\nwindow.close();\n</script>\n"

/***/ }),

/***/ "./src/environments/environment.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; });
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
var environment = {
    production: false,
    baseHref: '/',
};


/***/ }),

/***/ "./src/lib/initialize-navigation.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var removeMarkdown = function removeMarkdown(md) {
  md = md.replace(/<[^>]*>/g, '');
  return __webpack_require__("./node_modules/remove-markdown/index.js")(md);
};

var MAX_SUMMARY_LENGTH = 250;

var getOperationTitle = function getOperationTitle(op, method, path) {
  return op.operationId || method.toUpperCase() + ' ' + path;
};

var METHOD_ORDER = ["HEAD", "OPTIONS", "DELETE", "PATCH", "PUT", "POST", "GET"];

var getPathNavItem = function getPathNavItem(path, ops, tag) {
  var pathItem = { children: [], autoselect: true, operations: path, hasOperationIds: true };
  for (var method in ops) {
    if (method === 'parameters') continue;
    var op = ops[method];
    if (tag && (!op.tags || op.tags.indexOf(tag) === -1)) continue;
    pathItem.children.push({
      title: op.operationId || method.toUpperCase(),
      fullTitle: op.operationId || method.toUpperCase() + ' ' + path,
      operation: getOperationTitle(op, method, path)
    });
    if (!op.operationId) pathItem.hasOperationIds = false;
  }
  if (!pathItem.children.length) return null;
  pathItem.children.sort(function (c1, c2) {
    var m1 = METHOD_ORDER.indexOf(c1.title);
    var m2 = METHOD_ORDER.indexOf(c2.title);
    if (m1 === m2) return 0;
    if (m1 < m2) return 1;
    if (m1 > m2) return -1;
  });
  return pathItem;
};

var initializeNavigation = module.exports = function (nav, config, openapi) {
  if (!nav) {
    if (!openapi) return null;
    if (openapi.tags) {
      nav = openapi.tags.map(function (t) {
        return {
          tag: t.name
        };
      });
      nav.push({ title: 'Miscellaneous', isMiscellaneous: true });
    } else {
      nav = [];
      for (var path in openapi.paths) {
        var pathItem = getPathNavItem(path, openapi.paths[path]);
        if (pathItem) nav.push(pathItem);
      }
    }
    if (openapi.info.description || openapi.externalDocs) {
      var readme = { title: 'API Description', contents: openapi.info.description || '' };
      if (openapi.externalDocs) {
        readme.contents += '\n\n### Read More\n' + (openapi.externalDocs.description || '') + '\n\n[' + openapi.externalDocs.url + '](' + openapi.externalDocs.url + ')';
      }
      nav.unshift(readme);
    }
    if (openapi.definitions) {
      nav.push({
        title: "Definitions",
        children: Object.keys(openapi.definitions).map(function (name) {
          var def = openapi.definitions[name];
          return {
            title: def.title || name,
            definition: name
          };
        })
      });
    }
  }
  nav.forEach(function (navItem) {
    return initializeNavigationItem(navItem, config, openapi);
  });
  if (!openapi) return nav;

  var miscItem = findMiscItem(nav);
  if (miscItem) {
    miscItem.children = [];
    for (var _path in openapi.paths) {
      for (var method in openapi.paths[_path]) {
        if (method === 'parameters') continue;
        var op = openapi.paths[_path][method];
        var title = getOperationTitle(op, method, _path);
        if (!navigationContainsOperation(nav, title)) {
          miscItem.children.push({ operation: title });
        }
      }
    }
    if (!miscItem.children.length) {
      nav = nav.filter(function (i) {
        return !i.isMiscellaneous;
      });
    } else {
      miscItem.children.forEach(function (c) {
        return initializeNavigationItem(c, config, openapi, miscItem.path);
      });
    }
  }
  return nav;
};

var navigationContainsOperation = function navigationContainsOperation(items, opTitle) {
  var container = items.filter(function (i) {
    return i.operation === opTitle;
  })[0];
  if (container) return true;
  for (var i = 0; i < items.length; ++i) {
    var childContains = navigationContainsOperation(items[i].children || [], opTitle);
    if (childContains) return true;
  }
  return false;
};

var findMiscItem = function findMiscItem(items) {
  var miscItem = items.filter(function (i) {
    return i.isMiscellaneous;
  })[0];
  if (miscItem) return miscItem;
  for (var i = 0; i < items.length; ++i) {
    var miscChild = findMiscItem(items[i].children || []);
    if (miscChild) return miscChild;
  }
};

var findOperation = function findOperation(title, openapi) {
  for (var path in openapi.paths) {
    for (var method in openapi.paths[path]) {
      var op = openapi.paths[path][method];
      if (title === method.toUpperCase() + ' ' + path) return op;
      if (op.operationId === title) return op;
    }
  }
};

var setSummaryAndTitle = function setSummaryAndTitle(item, config, openapi) {
  if (item.contents) {
    item.summary = item.summary || item.contents;
  } else if (item.operations) {
    item.type = 'operations';
    var defaultTitle = typeof item.operations === 'string' ? item.operations : "Operations";
    item.title = item.title || defaultTitle;
  } else if (item.definitions) {
    item.type = 'definitions';
    item.title = item.title || "Definitions";
  } else if (item.operation && openapi) {
    item.type = 'operation';
    item.title = item.title || item.operation;
    var op = findOperation(item.operation, openapi);
    if (!op) {
      item.hide = true;
    } else {
      item.summary = item.summary || op.summary || op.description;
      if (op.deprecated) {
        item.deprecated = true;
      }
    }
  } else if (item.definition && openapi) {
    item.type = 'definition';
    var def = openapi.definitions[item.definition];
    if (!def) {
      item.hide = true;
    } else {
      item.title = item.title || def.title || item.definition;
      item.summary = item.summary || def.description;
    }
  } else if (item.tag && openapi) {
    item.type = 'tag';
    item.title = item.title || item.tag;
    var tag = openapi.tags.filter(function (t) {
      return t.name === item.tag;
    })[0];
    if (tag) {
      item.summary = item.contents = tag.description;
    }
    if (!item.contents) item.autoselect = true;
  } else if (item.workflow) {
    item.type = 'workflow';
    var workflow = config.workflows[item.workflow];
    item.title = item.title || workflow.title;
    item.icon = item.icon || workflow.icon;
    item.summary = item.summary || workflow.summary;
  }
  item.title = item.title || '';
  item.summary = item.summary || '';

  item.summary = removeMarkdown(item.summary || '', { gfm: true });
  if (item.summary.length > MAX_SUMMARY_LENGTH) {
    item.summary = item.summary.substring(0, MAX_SUMMARY_LENGTH - 3) + '...';
  }
  if (!item.title) item.title = 'Untitled';
};

var populateChildren = function populateChildren(item, openapi) {
  if (!openapi || item.children) return;
  if (item.operations === true) {
    item.children = Object.keys(openapi.paths).map(function (p) {
      return { operations: p };
    });
    if (item.autoselect !== false) item.autoselect = true;
  } else if (item.operations) {
    var pathItem = getPathNavItem(item.operations, openapi.paths[item.operations]);
    if (pathItem) {
      item.children = pathItem.children;
      if (item.autoselect !== false) item.autoselect = true;
    }
  } else if (item.definitions) {
    item.children = Object.keys(openapi.definitions).map(function (d) {
      return { definition: d };
    });
    if (item.autoselect !== false) item.autoselect = true;
  } else if (item.tags) {
    item.children = openapi.tags.map(function (t) {
      return { tag: t.name };
    });
  } else if (item.tag) {
    item.children = [];
    for (var path in openapi.paths) {
      var _pathItem = getPathNavItem(path, openapi.paths[path], item.tag);
      if (_pathItem) {
        if (_pathItem.hasOperationIds) {
          item.children = item.children.concat(_pathItem.children);
        } else {
          item.children.push(_pathItem);
        }
      }
    }
    if (!item.children.length) item.hide = true;
  }
};

var initializeNavigationItem = function initializeNavigationItem(item, config, openapi) {
  var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';

  setSummaryAndTitle(item, config, openapi);
  item.path = item.path || path + '/' + item.title.replace(/\W+/g, '_');
  populateChildren(item, openapi);
  if (item.children) item.children.forEach(function (c) {
    return initializeNavigationItem(c, config, openapi, item.path);
  });
};

/***/ }),

/***/ "./src/lib/markdown-sections.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var REGEXEN = {
  section_start: /^\s*(#+)([^#].*)$/,
  code_bookend: /^```/
};

var getSections = module.exports = function (md) {
  var lines = md.split('\n');
  var curSection = { rank: 0, sections: [], text: '' };
  var sections = [curSection];
  var sectionStack = [curSection];
  var inCode = false;
  lines.forEach(function (line) {
    if (line.match(REGEXEN.code_bookend)) {
      curSection.text += line + '\n';
      inCode = !inCode;
      return;
    }
    var match = inCode ? null : line.match(REGEXEN.section_start);
    if (match) {
      curSection.text = curSection.text.trim();
      curSection = {
        title: match[2].trim(),
        rank: match[1].length,
        text: '',
        sections: []
      };
      var parentSection = curSection;
      while (parentSection.rank >= curSection.rank) {
        parentSection = sectionStack.pop();
      }
      parentSection.sections.push(curSection);
      sectionStack.push(parentSection);
      sectionStack.push(curSection);
    } else {
      curSection.text += line + '\n';
    }
  });
  curSection.text = curSection.text.trim();
  return sections;
};

/***/ }),

/***/ "./src/lib/markdown-to-recipe.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var REGEXEN = {
  start_comment: /^<!--/,
  end_comment: /^-->/,
  start_code: /^```(\w*)/,
  end_code: /^```/,
  title: /^#([^#].*)/,
  step_title: /^##([^#].*)$/,
  section_title: /^###([^#].*)$/,
  special_section: /^###\s*(API Call|Demo|Sample Code)/
};

var markdownSections = __webpack_require__("./src/lib/markdown-sections.js");

var sectionsToMarkdown = function sectionsToMarkdown(sections) {
  if (!sections) return '';
  return sections.map(function (s) {
    var md = '';
    for (var i = 0; i < s.rank; ++i) {
      md += '#';
    }md += ' ' + s.title;
    md += '\n' + (s.text || '');
    if (s.sections) md += '\n' + sectionsToMarkdown(s.sections);
    return md;
  });
};

var extractRecipe = module.exports = function (md) {
  var sections = markdownSections(md);
  var recipe = extractJSONComment(sections[0].text, 'METADATA');
  if (sections[0].sections.length !== 1) throw new Error("Got more than one rank-1 heading");
  var recipeSection = sections[0].sections[0];
  recipe.title = recipeSection.title;
  recipe.description = recipeSection.text || '';
  recipe.steps = recipeSection.sections.map(extractStep);
  var finish = recipeSection.sections.pop();
  if (finish && finish.title === 'Finish') {
    recipe.steps.pop();
    recipe.finishText = finish.text + '\n' + sectionsToMarkdown(finish.sections);
  }
  return recipe;
};

var extractJSONComment = function extractJSONComment(md, type) {
  var start_regex = new RegExp('^<!--' + type);
  var lines = md.split('\n');
  var data = null;
  for (var i = 0; i < lines.length; ++i) {
    if (lines[i].match(start_regex)) {
      data = '';
    } else if (data !== null && lines[i].match(REGEXEN.end_comment)) {
      break;
    } else if (data !== null) {
      data += lines[i] + '\n';
    }
  }
  return JSON.parse(data);
};

var extractStep = function extractStep(section) {
  var step = {
    title: section.title,
    description: section.text
  };
  section.sections.forEach(function (subsection) {
    var codeDetails = extractCode(subsection.text);
    var language = codeDetails.language;
    var code = codeDetails.code;
    if (code) {
      if (subsection.title === 'API Call') {
        step.apiCall = JSON.parse(code);
        step.parameters = step.apiCall.parameters;
        delete step.apiCall.parameters;
        if (Object.keys(step.apiCall).length === 0) delete step.apiCall;
      } else if (subsection.title.startsWith('Sample Code')) {
        var titleMatch = subsection.title.match(/Sample Code\s+\((\w+)\)/);
        if (titleMatch && titleMatch[1]) language = titleMatch[1].toLowerCase();
        step.codeSnippet = step.codeSnippet || {};
        step.codeSnippet[language] = code;
      } else if (subsection.title === 'Demo') {
        step.demoHTML = code;
      }
    }
  });
  return step;
};

var extractCode = function extractCode(md) {
  var m = md.match(/```(\w+)?([\s\S]+)```/);
  if (m) return { language: m[1].trim(), code: m[2].trim() };else return { language: null, code: null };
};

/***/ }),

/***/ "./src/lib/recipe-to-markdown.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var recipeTemplate = module.exports = function (recipe) {
  var metadata = {
    icon: recipe.icon,
    sortOrder: recipe.sortOrder,
    tags: recipe.tags,
    keywords: recipe.keywords,
    hidden: recipe.hidden,
    relatedRecipes: recipe.relatedRecipes,
    summary: recipe.summary
  };
  return ('\n<!--METADATA\n' + JSON.stringify(metadata, null, 2) + '\n-->\n\n# ' + recipe.title + '\n' + (recipe.description || '') + '\n\n' + recipe.steps.map(stepTemplate).join('\n\n') + '\n\n' + (!recipe.finishText ? '' : '## Finish\n' + recipe.finishText) + '\n\n  ').trim();
};

var stepTemplate = function stepTemplate(step) {
  return ('\n## ' + step.title + '\n' + (!step.description ? '' : typeof step.description === 'string' ? step.description : step.description.join('\n\n')) + '\n\n' + apiCallTemplate(step.apiCall, step.parameters || (step.apiCall || {}).parameters, step.ignoreParameters || (step.apiCall || {}).ignoreParameters) + '\n' + codeSnippetTemplate(step.codeSnippet) + '\n' + demoTemplate(step.demoHTML) + '\n').trim();
};

var apiCallTemplate = function apiCallTemplate(apiCall) {
  var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  var ignoreParameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  if (!apiCall && !parameters) return '';
  var newObj = {};
  if (apiCall) newObj = { method: apiCall.method, path: apiCall.path };
  if (parameters) newObj.parameters = parameters;
  if (ignoreParameters) newObj.ignoreParameters = ignoreParameters;
  return ('\n### API Call\n```json\n' + JSON.stringify(newObj, null, 2) + '\n```\n').trim();
};

var LANG_HIGHLIGHT_NAMES = {
  'node': 'javascript',
  'php53': 'php',
  'angular': 'typescript',
  'python': 'py',
  'ajax': 'javascript',
  'curl': 'bash'
};

var codeSnippetTemplate = function codeSnippetTemplate(snippets) {
  if (!snippets) return '';
  return Object.keys(snippets).map(function (lang) {
    return ('\n### Sample Code (' + lang + ')\n```' + (LANG_HIGHLIGHT_NAMES[lang] || lang) + '\n' + snippets[lang] + '\n```\n  ').trim();
  }).join('\n');
};

var demoTemplate = function demoTemplate(html) {
  if (!html) return '';
  html = html.replace(/\r/g, '').replace(/\t/g, '  ');
  return ('\n### Demo\n```html\n' + html + '\n```\n  ').trim();
};

/***/ }),

/***/ "./src/main.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__environments_environment__ = __webpack_require__("./src/environments/environment.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module_ngfactory__ = __webpack_require__("./src/app/app.module.ngfactory.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module_ngfactory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__app_app_module_ngfactory__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__);
///<reference types="node" />




if (__WEBPACK_IMPORTED_MODULE_1__environments_environment__["a" /* environment */].production) {
    Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["enableProdMode"])();
}
document.addEventListener('DOMContentLoaded', function () {
    __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__["platformBrowser"]().bootstrapModuleFactory(__WEBPACK_IMPORTED_MODULE_2__app_app_module_ngfactory__["AppModuleNgFactory"]);
});


/***/ }),

/***/ "./tmp/plugins/code-template.js":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var ejs = window.ejs;

var CodeTemplate = module.exports = function (opts) {
  this.swagger = opts.swagger;
  this.template = opts.template;
};

CodeTemplate.prototype.render = function (opts) {
  return ejs.render(this.template, opts);
};

/***/ }),

/***/ 0:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__("./src/main.ts");


/***/ })

},[0]);
//# sourceMappingURL=main.bundle.js.map