diff options
author | Sunder Tattavarada <statta@research.att.com> | 2020-02-04 15:19:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-04 15:19:19 +0000 |
commit | 099ece77f49e4a6bc4d9b35ef03a5e0f33bf8384 (patch) | |
tree | 43ebcfcc2fb394b729853f4df14a149940c90e36 /portal-FE-os/src/assets | |
parent | 728c55e4233b5f7e449f67dea4c4ca987da701b7 (diff) | |
parent | 3f7386d4245f9a05db961440ebf80d97d788f902 (diff) |
Merge "Added portal-FE-os components"
Diffstat (limited to 'portal-FE-os/src/assets')
-rw-r--r-- | portal-FE-os/src/assets/plugins-config.json | 31 | ||||
-rw-r--r-- | portal-FE-os/src/assets/plugins/Events.js | 1 | ||||
-rw-r--r-- | portal-FE-os/src/assets/plugins/News.js | 1 | ||||
-rw-r--r-- | portal-FE-os/src/assets/plugins/Resources.js | 1 | ||||
-rw-r--r-- | portal-FE-os/src/assets/plugins/plugin1.js | 1 | ||||
-rw-r--r-- | portal-FE-os/src/assets/plugins/plugin2.js | 1 | ||||
-rw-r--r-- | portal-FE-os/src/assets/plugins/shared.js | 1 |
7 files changed, 37 insertions, 0 deletions
diff --git a/portal-FE-os/src/assets/plugins-config.json b/portal-FE-os/src/assets/plugins-config.json new file mode 100644 index 00000000..eb5f171f --- /dev/null +++ b/portal-FE-os/src/assets/plugins-config.json @@ -0,0 +1,31 @@ +{ + "plugin1": { + "name": "Plugin 2", + "path": "/assets/plugins/plugin1.js", + "deps": ["shared"] + }, + "plugin2": { + "name": "Plugin 2", + "path": "/assets/plugins/plugin2.js", + "deps": ["shared"] + }, + "News": { + "name": "News", + "path": "/assets/plugins/News.js", + "deps": ["shared"] + }, + "Resources": { + "name": "Resources", + "path": "/assets/plugins/Resources.js", + "deps": ["shared"] + }, + "Events": { + "name": "Events", + "path": "/assets/plugins/Events.js", + "deps": ["shared"] + }, + "shared": { + "name": "Shared", + "path": "/assets/plugins/shared.js" + } +} diff --git a/portal-FE-os/src/assets/plugins/Events.js b/portal-FE-os/src/assets/plugins/Events.js new file mode 100644 index 00000000..171e710d --- /dev/null +++ b/portal-FE-os/src/assets/plugins/Events.js @@ -0,0 +1 @@ +!function (t, e) { "object" == typeof exports && "object" == typeof module ? module.exports = e(require("ng.common"), require("tslib"), require("rxjs"), require("ng.core")) : "function" == typeof define && define.amd ? define(["ng.common", "tslib", "rxjs", "ng.core"], e) : "object" == typeof exports ? exports.listWidgetPlugin = e(require("ng.common"), require("tslib"), require("rxjs"), require("ng.core")) : t.listWidgetPlugin = e(t["ng.common"], t.tslib, t.rxjs, t["ng.core"]) }("undefined" != typeof self ? self : this, function (t, e, n, r) { return function (t) { var e = {}; function n(r) { if (e[r]) return e[r].exports; var o = e[r] = { i: r, l: !1, exports: {} }; return t[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports } return n.m = t, n.c = e, n.d = function (t, e, r) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }) }, n.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function (t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var r = Object.create(null); if (n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var o in t) n.d(r, o, (function (e) { return t[e] }).bind(null, o)); return r }, n.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return n.d(e, "a", e), e }, n.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = 0) }({ 0: function (t, e, n) { t.exports = n("zUnb") }, "0S4P": function (e, n) { e.exports = t }, "17wl": function (t, n) { t.exports = e }, Vgaj: function (t, e) { t.exports = n }, vOrQ: function (t, e) { t.exports = r }, zUnb: function (t, e, n) { "use strict"; n.r(e); var r = n("vOrQ"), o = function () { function t(t) { this.api = t } return t.prototype.ngOnInit = function () { this.getNewsWidgetCatalog() }, t.prototype.getNewsWidgetCatalog = function () { var t = this; return console.log("getNewsWidgetCatalog called"), this.api.get("portalApi/dashboard/widgetData/?resourceType=EVENTS", { withCredentials: !0 }).subscribe(function (e) { e && (console.log("data from microservice " + e), t.newsData = e.response.items) }, function (t) { console.log("getAppCatalogServices Error Object" + t) }) }, t }(), i = function () { function t() { } return t.entry = o, t }(), s = n("0S4P"), u = n("17wl"), a = n("Vgaj"); function l(t) { return "function" == typeof t } var c = !1, p = { Promise: void 0, set useDeprecatedSynchronousErrorHandling(t) { c = t }, get useDeprecatedSynchronousErrorHandling() { return c } }; function h(t) { setTimeout(function () { throw t }) } var d = { closed: !0, next: function (t) { }, error: function (t) { if (p.useDeprecatedSynchronousErrorHandling) throw t; h(t) }, complete: function () { } }, f = Array.isArray || function (t) { return t && "number" == typeof t.length }; function y(t) { return null != t && "object" == typeof t } var b, m = { e: {} }; function v() { try { return b.apply(this, arguments) } catch (t) { return m.e = t, m } } function g(t) { return b = t, v } function w(t) { return Error.call(this), this.message = t ? t.length + " errors occurred during unsubscription:\n" + t.map(function (t, e) { return e + 1 + ") " + t.toString() }).join("\n ") : "", this.name = "UnsubscriptionError", this.errors = t, this } w.prototype = Object.create(Error.prototype); var _ = w, x = function () { function t(t) { this.closed = !1, this._parent = null, this._parents = null, this._subscriptions = null, t && (this._unsubscribe = t) } var e; return t.prototype.unsubscribe = function () { var t, e = !1; if (!this.closed) { var n = this._parent, r = this._parents, o = this._unsubscribe, i = this._subscriptions; this.closed = !0, this._parent = null, this._parents = null, this._subscriptions = null; for (var s = -1, u = r ? r.length : 0; n;)n.remove(this), n = ++s < u && r[s] || null; if (l(o) && g(o).call(this) === m && (e = !0, t = t || (m.e instanceof _ ? E(m.e.errors) : [m.e])), f(i)) for (s = -1, u = i.length; ++s < u;) { var a = i[s]; if (y(a) && g(a.unsubscribe).call(a) === m) { e = !0, t = t || []; var c = m.e; c instanceof _ ? t = t.concat(E(c.errors)) : t.push(c) } } if (e) throw new _(t) } }, t.prototype.add = function (e) { if (!e || e === t.EMPTY) return t.EMPTY; if (e === this) return this; var n = e; switch (typeof e) { case "function": n = new t(e); case "object": if (n.closed || "function" != typeof n.unsubscribe) return n; if (this.closed) return n.unsubscribe(), n; if ("function" != typeof n._addParent) { var r = n; (n = new t)._subscriptions = [r] } break; default: throw new Error("unrecognized teardown " + e + " added to Subscription.") }return (this._subscriptions || (this._subscriptions = [])).push(n), n._addParent(this), n }, t.prototype.remove = function (t) { var e = this._subscriptions; if (e) { var n = e.indexOf(t); -1 !== n && e.splice(n, 1) } }, t.prototype._addParent = function (t) { var e = this._parent, n = this._parents; e && e !== t ? n ? -1 === n.indexOf(t) && n.push(t) : this._parents = [t] : this._parent = t }, t.EMPTY = ((e = new t).closed = !0, e), t }(); function E(t) { return t.reduce(function (t, e) { return t.concat(e instanceof _ ? e.errors : e) }, []) } var T = "function" == typeof Symbol ? Symbol("rxSubscriber") : "@@rxSubscriber_" + Math.random(), S = function (t) { function e(n, r, o) { var i = t.call(this) || this; switch (i.syncErrorValue = null, i.syncErrorThrown = !1, i.syncErrorThrowable = !1, i.isStopped = !1, i._parentSubscription = null, arguments.length) { case 0: i.destination = d; break; case 1: if (!n) { i.destination = d; break } if ("object" == typeof n) { n instanceof e ? (i.syncErrorThrowable = n.syncErrorThrowable, i.destination = n, n.add(i)) : (i.syncErrorThrowable = !0, i.destination = new O(i, n)); break } default: i.syncErrorThrowable = !0, i.destination = new O(i, n, r, o) }return i } return u.__extends(e, t), e.prototype[T] = function () { return this }, e.create = function (t, n, r) { var o = new e(t, n, r); return o.syncErrorThrowable = !1, o }, e.prototype.next = function (t) { this.isStopped || this._next(t) }, e.prototype.error = function (t) { this.isStopped || (this.isStopped = !0, this._error(t)) }, e.prototype.complete = function () { this.isStopped || (this.isStopped = !0, this._complete()) }, e.prototype.unsubscribe = function () { this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this)) }, e.prototype._next = function (t) { this.destination.next(t) }, e.prototype._error = function (t) { this.destination.error(t), this.unsubscribe() }, e.prototype._complete = function () { this.destination.complete(), this.unsubscribe() }, e.prototype._unsubscribeAndRecycle = function () { var t = this._parent, e = this._parents; return this._parent = null, this._parents = null, this.unsubscribe(), this.closed = !1, this.isStopped = !1, this._parent = t, this._parents = e, this._parentSubscription = null, this }, e }(x), O = function (t) { function e(e, n, r, o) { var i, s = t.call(this) || this; s._parentSubscriber = e; var u = s; return l(n) ? i = n : n && (i = n.next, r = n.error, o = n.complete, n !== d && (l((u = Object.create(n)).unsubscribe) && s.add(u.unsubscribe.bind(u)), u.unsubscribe = s.unsubscribe.bind(s))), s._context = u, s._next = i, s._error = r, s._complete = o, s } return u.__extends(e, t), e.prototype.next = function (t) { if (!this.isStopped && this._next) { var e = this._parentSubscriber; p.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? this.__tryOrSetError(e, this._next, t) && this.unsubscribe() : this.__tryOrUnsub(this._next, t) } }, e.prototype.error = function (t) { if (!this.isStopped) { var e = this._parentSubscriber, n = p.useDeprecatedSynchronousErrorHandling; if (this._error) n && e.syncErrorThrowable ? (this.__tryOrSetError(e, this._error, t), this.unsubscribe()) : (this.__tryOrUnsub(this._error, t), this.unsubscribe()); else if (e.syncErrorThrowable) n ? (e.syncErrorValue = t, e.syncErrorThrown = !0) : h(t), this.unsubscribe(); else { if (this.unsubscribe(), n) throw t; h(t) } } }, e.prototype.complete = function () { var t = this; if (!this.isStopped) { var e = this._parentSubscriber; if (this._complete) { var n = function () { return t._complete.call(t._context) }; p.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? (this.__tryOrSetError(e, n), this.unsubscribe()) : (this.__tryOrUnsub(n), this.unsubscribe()) } else this.unsubscribe() } }, e.prototype.__tryOrUnsub = function (t, e) { try { t.call(this._context, e) } catch (n) { if (this.unsubscribe(), p.useDeprecatedSynchronousErrorHandling) throw n; h(n) } }, e.prototype.__tryOrSetError = function (t, e, n) { if (!p.useDeprecatedSynchronousErrorHandling) throw new Error("bad call"); try { e.call(this._context, n) } catch (r) { return p.useDeprecatedSynchronousErrorHandling ? (t.syncErrorValue = r, t.syncErrorThrown = !0, !0) : (h(r), !0) } return !1 }, e.prototype._unsubscribe = function () { var t = this._parentSubscriber; this._context = null, this._parentSubscriber = null, t.unsubscribe() }, e }(S), j = function (t) { function e(e, n, r) { var o = t.call(this) || this; return o.parent = e, o.outerValue = n, o.outerIndex = r, o.index = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { this.parent.notifyNext(this.outerValue, t, this.outerIndex, this.index++, this) }, e.prototype._error = function (t) { this.parent.notifyError(t, this), this.unsubscribe() }, e.prototype._complete = function () { this.parent.notifyComplete(this), this.unsubscribe() }, e }(S), C = "function" == typeof Symbol && Symbol.observable || "@@observable"; var N = function () { function t(t) { this._isScalar = !1, t && (this._subscribe = t) } return t.prototype.lift = function (e) { var n = new t; return n.source = this, n.operator = e, n }, t.prototype.subscribe = function (t, e, n) { var r = this.operator, o = function (t, e, n) { if (t) { if (t instanceof S) return t; if (t[T]) return t[T]() } return t || e || n ? new S(t, e, n) : new S(d) }(t, e, n); if (r ? r.call(o, this.source) : o.add(this.source || p.useDeprecatedSynchronousErrorHandling && !o.syncErrorThrowable ? this._subscribe(o) : this._trySubscribe(o)), p.useDeprecatedSynchronousErrorHandling && o.syncErrorThrowable && (o.syncErrorThrowable = !1, o.syncErrorThrown)) throw o.syncErrorValue; return o }, t.prototype._trySubscribe = function (t) { try { return this._subscribe(t) } catch (e) { p.useDeprecatedSynchronousErrorHandling && (t.syncErrorThrown = !0, t.syncErrorValue = e), function (t) { for (; t;) { var e = t.destination; if (t.closed || t.isStopped) return !1; t = e && e instanceof S ? e : null } return !0 }(t) ? t.error(e) : console.warn(e) } }, t.prototype.forEach = function (t, e) { var n = this; return new (e = P(e))(function (e, r) { var o; o = n.subscribe(function (e) { try { t(e) } catch (n) { r(n), o && o.unsubscribe() } }, r, e) }) }, t.prototype._subscribe = function (t) { var e = this.source; return e && e.subscribe(t) }, t.prototype[C] = function () { return this }, t.prototype.pipe = function () { for (var t = [], e = 0; e < arguments.length; e++)t[e] = arguments[e]; return 0 === t.length ? this : ((n = t) ? 1 === n.length ? n[0] : function (t) { return n.reduce(function (t, e) { return e(t) }, t) } : function () { })(this); var n }, t.prototype.toPromise = function (t) { var e = this; return new (t = P(t))(function (t, n) { var r; e.subscribe(function (t) { return r = t }, function (t) { return n(t) }, function () { return t(r) }) }) }, t.create = function (e) { return new t(e) }, t }(); function P(t) { if (t || (t = p.Promise || Promise), !t) throw new Error("no Promise impl found"); return t } var k = function (t) { return function (e) { for (var n = 0, r = t.length; n < r && !e.closed; n++)e.next(t[n]); e.closed || e.complete() } }, I = function (t) { return function (e) { return t.then(function (t) { e.closed || (e.next(t), e.complete()) }, function (t) { return e.error(t) }).then(null, h), e } }; function A() { return "function" == typeof Symbol && Symbol.iterator ? Symbol.iterator : "@@iterator" } var R = A(), z = function (t) { return function (e) { for (var n = t[R](); ;) { var r = n.next(); if (r.done) { e.complete(); break } if (e.next(r.value), e.closed) break } return "function" == typeof n.return && e.add(function () { n.return && n.return() }), e } }, D = function (t) { return function (e) { var n = t[C](); if ("function" != typeof n.subscribe) throw new TypeError("Provided object does not correctly implement Symbol.observable"); return n.subscribe(e) } }, H = function (t) { return t && "number" == typeof t.length && "function" != typeof t }; function U(t) { return t && "function" != typeof t.subscribe && "function" == typeof t.then } var F = function (t) { if (t instanceof N) return function (e) { return t._isScalar ? (e.next(t.value), void e.complete()) : t.subscribe(e) }; if (t && "function" == typeof t[C]) return D(t); if (H(t)) return k(t); if (U(t)) return I(t); if (t && "function" == typeof t[R]) return z(t); var e = y(t) ? "an invalid object" : "'" + t + "'"; throw new TypeError("You provided " + e + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.") }, L = function (t) { function e() { return null !== t && t.apply(this, arguments) || this } return u.__extends(e, t), e.prototype.notifyNext = function (t, e, n, r, o) { this.destination.next(e) }, e.prototype.notifyError = function (t, e) { this.destination.error(t) }, e.prototype.notifyComplete = function (t) { this.destination.complete() }, e }(S); function M(t, e) { return function (n) { if ("function" != typeof t) throw new TypeError("argument is not a function. Are you looking for `mapTo()`?"); return n.lift(new q(t, e)) } } var q = function () { function t(t, e) { this.project = t, this.thisArg = e } return t.prototype.call = function (t, e) { return e.subscribe(new V(t, this.project, this.thisArg)) }, t }(), V = function (t) { function e(e, n, r) { var o = t.call(this, e) || this; return o.project = n, o.count = 0, o.thisArg = r || o, o } return u.__extends(e, t), e.prototype._next = function (t) { var e; try { e = this.project.call(this.thisArg, t, this.count++) } catch (n) { return void this.destination.error(n) } this.destination.next(e) }, e }(S), W = function () { function t(t, e) { void 0 === e && (e = Number.POSITIVE_INFINITY), this.project = t, this.concurrent = e } return t.prototype.call = function (t, e) { return e.subscribe(new B(t, this.project, this.concurrent)) }, t }(), B = function (t) { function e(e, n, r) { void 0 === r && (r = Number.POSITIVE_INFINITY); var o = t.call(this, e) || this; return o.project = n, o.concurrent = r, o.hasCompleted = !1, o.buffer = [], o.active = 0, o.index = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { this.active < this.concurrent ? this._tryNext(t) : this.buffer.push(t) }, e.prototype._tryNext = function (t) { var e, n = this.index++; try { e = this.project(t, n) } catch (r) { return void this.destination.error(r) } this.active++ , this._innerSub(e, t, n) }, e.prototype._innerSub = function (t, e, n) { var r, o, i = new j(this, void 0, void 0); this.destination.add(i), r = t, void 0 === (o = i) && (o = new j(this, e, n)), o.closed || F(r)(o) }, e.prototype._complete = function () { this.hasCompleted = !0, 0 === this.active && 0 === this.buffer.length && this.destination.complete(), this.unsubscribe() }, e.prototype.notifyNext = function (t, e, n, r, o) { this.destination.next(e) }, e.prototype.notifyComplete = function (t) { var e = this.buffer; this.remove(t), this.active-- , e.length > 0 ? this._next(e.shift()) : 0 === this.active && this.hasCompleted && this.destination.complete() }, e }(L); var K = function () { function t(t, e) { this.predicate = t, this.thisArg = e } return t.prototype.call = function (t, e) { return e.subscribe(new J(t, this.predicate, this.thisArg)) }, t }(), J = function (t) { function e(e, n, r) { var o = t.call(this, e) || this; return o.predicate = n, o.thisArg = r, o.count = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { var e; try { e = this.predicate.call(this.thisArg, t, this.count++) } catch (n) { return void this.destination.error(n) } e && this.destination.next(t) }, e }(S), X = function () { return function () { } }(), Y = function () { return function () { } }(), G = function () { function t(t) { var e = this; this.normalizedNames = new Map, this.lazyUpdate = null, t ? this.lazyInit = "string" == typeof t ? function () { e.headers = new Map, t.split("\n").forEach(function (t) { var n = t.indexOf(":"); if (n > 0) { var r = t.slice(0, n), o = r.toLowerCase(), i = t.slice(n + 1).trim(); e.maybeSetNormalizedName(r, o), e.headers.has(o) ? e.headers.get(o).push(i) : e.headers.set(o, [i]) } }) } : function () { e.headers = new Map, Object.keys(t).forEach(function (n) { var r = t[n], o = n.toLowerCase(); "string" == typeof r && (r = [r]), r.length > 0 && (e.headers.set(o, r), e.maybeSetNormalizedName(n, o)) }) } : this.headers = new Map } return t.prototype.has = function (t) { return this.init(), this.headers.has(t.toLowerCase()) }, t.prototype.get = function (t) { this.init(); var e = this.headers.get(t.toLowerCase()); return e && e.length > 0 ? e[0] : null }, t.prototype.keys = function () { return this.init(), Array.from(this.normalizedNames.values()) }, t.prototype.getAll = function (t) { return this.init(), this.headers.get(t.toLowerCase()) || null }, t.prototype.append = function (t, e) { return this.clone({ name: t, value: e, op: "a" }) }, t.prototype.set = function (t, e) { return this.clone({ name: t, value: e, op: "s" }) }, t.prototype.delete = function (t, e) { return this.clone({ name: t, value: e, op: "d" }) }, t.prototype.maybeSetNormalizedName = function (t, e) { this.normalizedNames.has(e) || this.normalizedNames.set(e, t) }, t.prototype.init = function () { var e = this; this.lazyInit && (this.lazyInit instanceof t ? this.copyFrom(this.lazyInit) : this.lazyInit(), this.lazyInit = null, this.lazyUpdate && (this.lazyUpdate.forEach(function (t) { return e.applyUpdate(t) }), this.lazyUpdate = null)) }, t.prototype.copyFrom = function (t) { var e = this; t.init(), Array.from(t.headers.keys()).forEach(function (n) { e.headers.set(n, t.headers.get(n)), e.normalizedNames.set(n, t.normalizedNames.get(n)) }) }, t.prototype.clone = function (e) { var n = new t; return n.lazyInit = this.lazyInit && this.lazyInit instanceof t ? this.lazyInit : this, n.lazyUpdate = (this.lazyUpdate || []).concat([e]), n }, t.prototype.applyUpdate = function (t) { var e = t.name.toLowerCase(); switch (t.op) { case "a": case "s": var n = t.value; if ("string" == typeof n && (n = [n]), 0 === n.length) return; this.maybeSetNormalizedName(t.name, e); var r = ("a" === t.op ? this.headers.get(e) : void 0) || []; r.push.apply(r, Object(u.__spread)(n)), this.headers.set(e, r); break; case "d": var o = t.value; if (o) { var i = this.headers.get(e); if (!i) return; 0 === (i = i.filter(function (t) { return -1 === o.indexOf(t) })).length ? (this.headers.delete(e), this.normalizedNames.delete(e)) : this.headers.set(e, i) } else this.headers.delete(e), this.normalizedNames.delete(e) } }, t.prototype.forEach = function (t) { var e = this; this.init(), Array.from(this.normalizedNames.keys()).forEach(function (n) { return t(e.normalizedNames.get(n), e.headers.get(n)) }) }, t }(), $ = function () { function t() { } return t.prototype.encodeKey = function (t) { return Q(t) }, t.prototype.encodeValue = function (t) { return Q(t) }, t.prototype.decodeKey = function (t) { return decodeURIComponent(t) }, t.prototype.decodeValue = function (t) { return decodeURIComponent(t) }, t }(); function Q(t) { return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/gi, "$").replace(/%2C/gi, ",").replace(/%3B/gi, ";").replace(/%2B/gi, "+").replace(/%3D/gi, "=").replace(/%3F/gi, "?").replace(/%2F/gi, "/") } var Z = function () { function t(t) { void 0 === t && (t = {}); var e, n, r, o = this; if (this.updates = null, this.cloneFrom = null, this.encoder = t.encoder || new $, t.fromString) { if (t.fromObject) throw new Error("Cannot specify both fromString and fromObject."); this.map = (e = t.fromString, n = this.encoder, r = new Map, e.length > 0 && e.split("&").forEach(function (t) { var e = t.indexOf("="), o = Object(u.__read)(-1 == e ? [n.decodeKey(t), ""] : [n.decodeKey(t.slice(0, e)), n.decodeValue(t.slice(e + 1))], 2), i = o[0], s = o[1], a = r.get(i) || []; a.push(s), r.set(i, a) }), r) } else t.fromObject ? (this.map = new Map, Object.keys(t.fromObject).forEach(function (e) { var n = t.fromObject[e]; o.map.set(e, Array.isArray(n) ? n : [n]) })) : this.map = null } return t.prototype.has = function (t) { return this.init(), this.map.has(t) }, t.prototype.get = function (t) { this.init(); var e = this.map.get(t); return e ? e[0] : null }, t.prototype.getAll = function (t) { return this.init(), this.map.get(t) || null }, t.prototype.keys = function () { return this.init(), Array.from(this.map.keys()) }, t.prototype.append = function (t, e) { return this.clone({ param: t, value: e, op: "a" }) }, t.prototype.set = function (t, e) { return this.clone({ param: t, value: e, op: "s" }) }, t.prototype.delete = function (t, e) { return this.clone({ param: t, value: e, op: "d" }) }, t.prototype.toString = function () { var t = this; return this.init(), this.keys().map(function (e) { var n = t.encoder.encodeKey(e); return t.map.get(e).map(function (e) { return n + "=" + t.encoder.encodeValue(e) }).join("&") }).join("&") }, t.prototype.clone = function (e) { var n = new t({ encoder: this.encoder }); return n.cloneFrom = this.cloneFrom || this, n.updates = (this.updates || []).concat([e]), n }, t.prototype.init = function () { var t = this; null === this.map && (this.map = new Map), null !== this.cloneFrom && (this.cloneFrom.init(), this.cloneFrom.keys().forEach(function (e) { return t.map.set(e, t.cloneFrom.map.get(e)) }), this.updates.forEach(function (e) { switch (e.op) { case "a": case "s": var n = ("a" === e.op ? t.map.get(e.param) : void 0) || []; n.push(e.value), t.map.set(e.param, n); break; case "d": if (void 0 === e.value) { t.map.delete(e.param); break } var r = t.map.get(e.param) || [], o = r.indexOf(e.value); -1 !== o && r.splice(o, 1), r.length > 0 ? t.map.set(e.param, r) : t.map.delete(e.param) } }), this.cloneFrom = null) }, t }(); function tt(t) { return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer } function et(t) { return "undefined" != typeof Blob && t instanceof Blob } function nt(t) { return "undefined" != typeof FormData && t instanceof FormData } var rt = function () { function t(t, e, n, r) { var o; if (this.url = e, this.body = null, this.reportProgress = !1, this.withCredentials = !1, this.responseType = "json", this.method = t.toUpperCase(), function (t) { switch (t) { case "DELETE": case "GET": case "HEAD": case "OPTIONS": case "JSONP": return !1; default: return !0 } }(this.method) || r ? (this.body = void 0 !== n ? n : null, o = r) : o = n, o && (this.reportProgress = !!o.reportProgress, this.withCredentials = !!o.withCredentials, o.responseType && (this.responseType = o.responseType), o.headers && (this.headers = o.headers), o.params && (this.params = o.params)), this.headers || (this.headers = new G), this.params) { var i = this.params.toString(); if (0 === i.length) this.urlWithParams = e; else { var s = e.indexOf("?"); this.urlWithParams = e + (-1 === s ? "?" : s < e.length - 1 ? "&" : "") + i } } else this.params = new Z, this.urlWithParams = e } return t.prototype.serializeBody = function () { return null === this.body ? null : tt(this.body) || et(this.body) || nt(this.body) || "string" == typeof this.body ? this.body : this.body instanceof Z ? this.body.toString() : "object" == typeof this.body || "boolean" == typeof this.body || Array.isArray(this.body) ? JSON.stringify(this.body) : this.body.toString() }, t.prototype.detectContentTypeHeader = function () { return null === this.body ? null : nt(this.body) ? null : et(this.body) ? this.body.type || null : tt(this.body) ? null : "string" == typeof this.body ? "text/plain" : this.body instanceof Z ? "application/x-www-form-urlencoded;charset=UTF-8" : "object" == typeof this.body || "number" == typeof this.body || Array.isArray(this.body) ? "application/json" : null }, t.prototype.clone = function (e) { void 0 === e && (e = {}); var n = e.method || this.method, r = e.url || this.url, o = e.responseType || this.responseType, i = void 0 !== e.body ? e.body : this.body, s = void 0 !== e.withCredentials ? e.withCredentials : this.withCredentials, u = void 0 !== e.reportProgress ? e.reportProgress : this.reportProgress, a = e.headers || this.headers, l = e.params || this.params; return void 0 !== e.setHeaders && (a = Object.keys(e.setHeaders).reduce(function (t, n) { return t.set(n, e.setHeaders[n]) }, a)), e.setParams && (l = Object.keys(e.setParams).reduce(function (t, n) { return t.set(n, e.setParams[n]) }, l)), new t(n, r, i, { params: l, headers: a, reportProgress: u, responseType: o, withCredentials: s }) }, t }(), ot = function (t) { return t[t.Sent = 0] = "Sent", t[t.UploadProgress = 1] = "UploadProgress", t[t.ResponseHeader = 2] = "ResponseHeader", t[t.DownloadProgress = 3] = "DownloadProgress", t[t.Response = 4] = "Response", t[t.User = 5] = "User", t }({}), it = function () { return function (t, e, n) { void 0 === e && (e = 200), void 0 === n && (n = "OK"), this.headers = t.headers || new G, this.status = void 0 !== t.status ? t.status : e, this.statusText = t.statusText || n, this.url = t.url || null, this.ok = this.status >= 200 && this.status < 300 } }(), st = function (t) { function e(e) { void 0 === e && (e = {}); var n = t.call(this, e) || this; return n.type = ot.ResponseHeader, n } return Object(u.__extends)(e, t), e.prototype.clone = function (t) { return void 0 === t && (t = {}), new e({ headers: t.headers || this.headers, status: void 0 !== t.status ? t.status : this.status, statusText: t.statusText || this.statusText, url: t.url || this.url || void 0 }) }, e }(it), ut = function (t) { function e(e) { void 0 === e && (e = {}); var n = t.call(this, e) || this; return n.type = ot.Response, n.body = void 0 !== e.body ? e.body : null, n } return Object(u.__extends)(e, t), e.prototype.clone = function (t) { return void 0 === t && (t = {}), new e({ body: void 0 !== t.body ? t.body : this.body, headers: t.headers || this.headers, status: void 0 !== t.status ? t.status : this.status, statusText: t.statusText || this.statusText, url: t.url || this.url || void 0 }) }, e }(it), at = function (t) { function e(e) { var n = t.call(this, e, 0, "Unknown Error") || this; return n.name = "HttpErrorResponse", n.ok = !1, n.message = n.status >= 200 && n.status < 300 ? "Http failure during parsing for " + (e.url || "(unknown url)") : "Http failure response for " + (e.url || "(unknown url)") + ": " + e.status + " " + e.statusText, n.error = e.error || null, n } return Object(u.__extends)(e, t), e }(it); function lt(t, e) { return { body: e, headers: t.headers, observe: t.observe, params: t.params, reportProgress: t.reportProgress, responseType: t.responseType, withCredentials: t.withCredentials } } var ct = function () { function t(t) { this.handler = t } return t.prototype.request = function (t, e, n) { var r, o = this; if (void 0 === n && (n = {}), t instanceof rt) r = t; else { var i; i = n.headers instanceof G ? n.headers : new G(n.headers); var s = void 0; n.params && (s = n.params instanceof Z ? n.params : new Z({ fromObject: n.params })), r = new rt(t, e, void 0 !== n.body ? n.body : null, { headers: i, params: s, reportProgress: n.reportProgress, responseType: n.responseType || "json", withCredentials: n.withCredentials }) } var u, l = Object(a.of)(r).pipe(function t(e, n, r) { return void 0 === r && (r = Number.POSITIVE_INFINITY), "function" == typeof n ? function (o) { return o.pipe(t(function (t, r) { return (o = e(t, r), o instanceof N ? o : new N(F(o))).pipe(M(function (e, o) { return n(t, e, r, o) })); var o }, r)) } : ("number" == typeof n && (r = n), function (t) { return t.lift(new W(e, r)) }) }(function (t) { return o.handler.handle(t) }, u, 1)); if (t instanceof rt || "events" === n.observe) return l; var c, p = l.pipe((c = function (t) { return t instanceof ut }, function (t) { return t.lift(new K(c, void 0)) })); switch (n.observe || "body") { case "body": switch (r.responseType) { case "arraybuffer": return p.pipe(M(function (t) { if (null !== t.body && !(t.body instanceof ArrayBuffer)) throw new Error("Response is not an ArrayBuffer."); return t.body })); case "blob": return p.pipe(M(function (t) { if (null !== t.body && !(t.body instanceof Blob)) throw new Error("Response is not a Blob."); return t.body })); case "text": return p.pipe(M(function (t) { if (null !== t.body && "string" != typeof t.body) throw new Error("Response is not a string."); return t.body })); case "json": default: return p.pipe(M(function (t) { return t.body })) }case "response": return p; default: throw new Error("Unreachable: unhandled observe type " + n.observe + "}") } }, t.prototype.delete = function (t, e) { return void 0 === e && (e = {}), this.request("DELETE", t, e) }, t.prototype.get = function (t, e) { return void 0 === e && (e = {}), this.request("GET", t, e) }, t.prototype.head = function (t, e) { return void 0 === e && (e = {}), this.request("HEAD", t, e) }, t.prototype.jsonp = function (t, e) { return this.request("JSONP", t, { params: (new Z).append(e, "JSONP_CALLBACK"), observe: "body", responseType: "json" }) }, t.prototype.options = function (t, e) { return void 0 === e && (e = {}), this.request("OPTIONS", t, e) }, t.prototype.patch = function (t, e, n) { return void 0 === n && (n = {}), this.request("PATCH", t, lt(n, e)) }, t.prototype.post = function (t, e, n) { return void 0 === n && (n = {}), this.request("POST", t, lt(n, e)) }, t.prototype.put = function (t, e, n) { return void 0 === n && (n = {}), this.request("PUT", t, lt(n, e)) }, t }(), pt = function () { function t(t, e) { this.next = t, this.interceptor = e } return t.prototype.handle = function (t) { return this.interceptor.intercept(t, this.next) }, t }(), ht = new r.InjectionToken("HTTP_INTERCEPTORS"), dt = function () { function t() { } return t.prototype.intercept = function (t, e) { return e.handle(t) }, t }(), ft = /^\)\]\}',?\n/, yt = function () { return function () { } }(), bt = function () { function t() { } return t.prototype.build = function () { return new XMLHttpRequest }, t }(), mt = function () { function t(t) { this.xhrFactory = t } return t.prototype.handle = function (t) { var e = this; if ("JSONP" === t.method) throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed."); return new a.Observable(function (n) { var r = e.xhrFactory.build(); if (r.open(t.method, t.urlWithParams), t.withCredentials && (r.withCredentials = !0), t.headers.forEach(function (t, e) { return r.setRequestHeader(t, e.join(",")) }), t.headers.has("Accept") || r.setRequestHeader("Accept", "application/json, text/plain, */*"), !t.headers.has("Content-Type")) { var o = t.detectContentTypeHeader(); null !== o && r.setRequestHeader("Content-Type", o) } if (t.responseType) { var i = t.responseType.toLowerCase(); r.responseType = "json" !== i ? i : "text" } var s = t.serializeBody(), u = null, a = function () { if (null !== u) return u; var e = 1223 === r.status ? 204 : r.status, n = r.statusText || "OK", o = new G(r.getAllResponseHeaders()), i = function (t) { return "responseURL" in t && t.responseURL ? t.responseURL : /^X-Request-URL:/m.test(t.getAllResponseHeaders()) ? t.getResponseHeader("X-Request-URL") : null }(r) || t.url; return u = new st({ headers: o, status: e, statusText: n, url: i }) }, l = function () { var e = a(), o = e.headers, i = e.status, s = e.statusText, u = e.url, l = null; 204 !== i && (l = void 0 === r.response ? r.responseText : r.response), 0 === i && (i = l ? 200 : 0); var c = i >= 200 && i < 300; if ("json" === t.responseType && "string" == typeof l) { var p = l; l = l.replace(ft, ""); try { l = "" !== l ? JSON.parse(l) : null } catch (h) { l = p, c && (c = !1, l = { error: h, text: l }) } } c ? (n.next(new ut({ body: l, headers: o, status: i, statusText: s, url: u || void 0 })), n.complete()) : n.error(new at({ error: l, headers: o, status: i, statusText: s, url: u || void 0 })) }, c = function (t) { var e = a().url, o = new at({ error: t, status: r.status || 0, statusText: r.statusText || "Unknown Error", url: e || void 0 }); n.error(o) }, p = !1, h = function (e) { p || (n.next(a()), p = !0); var o = { type: ot.DownloadProgress, loaded: e.loaded }; e.lengthComputable && (o.total = e.total), "text" === t.responseType && r.responseText && (o.partialText = r.responseText), n.next(o) }, d = function (t) { var e = { type: ot.UploadProgress, loaded: t.loaded }; t.lengthComputable && (e.total = t.total), n.next(e) }; return r.addEventListener("load", l), r.addEventListener("error", c), t.reportProgress && (r.addEventListener("progress", h), null !== s && r.upload && r.upload.addEventListener("progress", d)), r.send(s), n.next({ type: ot.Sent }), function () { r.removeEventListener("error", c), r.removeEventListener("load", l), t.reportProgress && (r.removeEventListener("progress", h), null !== s && r.upload && r.upload.removeEventListener("progress", d)), r.abort() } }) }, t }(), vt = new r.InjectionToken("XSRF_COOKIE_NAME"), gt = new r.InjectionToken("XSRF_HEADER_NAME"), wt = function () { return function () { } }(), _t = function () { function t(t, e, n) { this.doc = t, this.platform = e, this.cookieName = n, this.lastCookieString = "", this.lastToken = null, this.parseCount = 0 } return t.prototype.getToken = function () { if ("server" === this.platform) return null; var t = this.doc.cookie || ""; return t !== this.lastCookieString && (this.parseCount++ , this.lastToken = Object(s["\u0275parseCookieValue"])(t, this.cookieName), this.lastCookieString = t), this.lastToken }, t }(), xt = function () { function t(t, e) { this.tokenService = t, this.headerName = e } return t.prototype.intercept = function (t, e) { var n = t.url.toLowerCase(); if ("GET" === t.method || "HEAD" === t.method || n.startsWith("http://") || n.startsWith("https://")) return e.handle(t); var r = this.tokenService.getToken(); return null === r || t.headers.has(this.headerName) || (t = t.clone({ headers: t.headers.set(this.headerName, r) })), e.handle(t) }, t }(), Et = function () { function t(t, e) { this.backend = t, this.injector = e, this.chain = null } return t.prototype.handle = function (t) { if (null === this.chain) { var e = this.injector.get(ht, []); this.chain = e.reduceRight(function (t, e) { return new pt(t, e) }, this.backend) } return this.chain.handle(t) }, t }(), Tt = function () { function t() { } var e; return e = t, t.disable = function () { return { ngModule: e, providers: [{ provide: xt, useClass: dt }] } }, t.withOptions = function (t) { return void 0 === t && (t = {}), { ngModule: e, providers: [t.cookieName ? { provide: vt, useValue: t.cookieName } : [], t.headerName ? { provide: gt, useValue: t.headerName } : []] } }, t }(), St = function () { return function () { } }(), Ot = r["\u0275crt"]({ encapsulation: 0, styles: [[""]], data: {} }); function jt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 2, "li", [], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 1, "a", [["target", "_blank"]], [[8, "href", 4]], null, null, null, null)), (t()(), r["\u0275ted"](2, null, ["", ""]))], null, function (t, e) { t(e, 1, 0, r["\u0275inlineInterpolate"](1, "", e.context.$implicit.href, "")), t(e, 2, 0, e.context.$implicit.title) }) } function Ct(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 2, "ul", [], null, null, null, null, null)), (t()(), r["\u0275and"](16777216, null, null, 1, null, jt)), r["\u0275did"](2, 278528, null, 0, s.NgForOf, [r.ViewContainerRef, r.TemplateRef, r.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (t, e) { t(e, 2, 0, e.component.newsData) }, null) } function Nt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 6, "div", [], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 5, "div", [["class", "activity-error-container"], ["style", "background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;"]], null, null, null, null, null)), (t()(), r["\u0275eld"](2, 0, null, null, 4, "div", [["class", "activity-error-block"]], null, null, null, null, null)), (t()(), r["\u0275eld"](3, 0, null, null, 0, "i", [["class", "icon-information full-linear-icon-information"], ["style", "margin-left: 125px; font-size: 90px"]], null, null, null, null, null)), (t()(), r["\u0275eld"](4, 0, null, null, 0, "br", [], null, null, null, null, null)), (t()(), r["\u0275eld"](5, 0, null, null, 1, "div", [["class", "activity-error-msg1"]], null, null, null, null, null)), (t()(), r["\u0275ted"](-1, null, ["There's currently no news available."]))], null, null) } function Pt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 6, "div", [["class", "widget-news-main"], ["id", "widget-news"]], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 5, "div", [["att-gridster-item-body", ""], ["class", "information-section-gridsterContent"]], null, null, null, null, null)), (t()(), r["\u0275eld"](2, 0, null, null, 4, "div", [["class", "resources"]], null, null, null, null, null)), (t()(), r["\u0275and"](16777216, null, null, 1, null, Ct)), r["\u0275did"](4, 16384, null, 0, s.NgIf, [r.ViewContainerRef, r.TemplateRef], { ngIf: [0, "ngIf"] }, null), (t()(), r["\u0275and"](16777216, null, null, 1, null, Nt)), r["\u0275did"](6, 16384, null, 0, s.NgIf, [r.ViewContainerRef, r.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (t, e) { var n = e.component; t(e, 4, 0, n.newsData && 0 != n.newsData.length), t(e, 6, 0, n.newsData && 0 != n.newsData.length) }, null) } function kt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 1, "app-list-widget", [], null, null, null, Pt, Ot)), r["\u0275did"](1, 114688, null, 0, o, [ct], null, null)], function (t, e) { t(e, 1, 0) }, null) } var It = r["\u0275ccf"]("app-list-widget", o, kt, {}, {}, []), At = r["\u0275cmf"](i, [], function (t) { return r["\u0275mod"]([r["\u0275mpd"](512, r.ComponentFactoryResolver, r["\u0275CodegenComponentFactoryResolver"], [[8, [It]], [3, r.ComponentFactoryResolver], r.NgModuleRef]), r["\u0275mpd"](4608, s.NgLocalization, s.NgLocaleLocalization, [r.LOCALE_ID, [2, s["\u0275angular_packages_common_common_a"]]]), r["\u0275mpd"](4608, wt, _t, [s.DOCUMENT, r.PLATFORM_ID, vt]), r["\u0275mpd"](4608, xt, xt, [wt, gt]), r["\u0275mpd"](5120, ht, function (t) { return [t] }, [xt]), r["\u0275mpd"](4608, bt, bt, []), r["\u0275mpd"](6144, yt, null, [bt]), r["\u0275mpd"](4608, mt, mt, [yt]), r["\u0275mpd"](6144, Y, null, [mt]), r["\u0275mpd"](4608, X, Et, [Y, r.Injector]), r["\u0275mpd"](4608, ct, ct, [X]), r["\u0275mpd"](1073742336, s.CommonModule, s.CommonModule, []), r["\u0275mpd"](1073742336, Tt, Tt, []), r["\u0275mpd"](1073742336, St, St, []), r["\u0275mpd"](1073742336, i, i, []), r["\u0275mpd"](256, vt, "XSRF-TOKEN", []), r["\u0275mpd"](256, gt, "X-XSRF-TOKEN", [])]) }); n.d(e, "DynamicWidgetModule", function () { return i }), n.d(e, "DynamicWidgetModuleNgFactory", function () { return At }), e.default = At } }) });
\ No newline at end of file diff --git a/portal-FE-os/src/assets/plugins/News.js b/portal-FE-os/src/assets/plugins/News.js new file mode 100644 index 00000000..ecfe8487 --- /dev/null +++ b/portal-FE-os/src/assets/plugins/News.js @@ -0,0 +1 @@ +!function (t, e) { "object" == typeof exports && "object" == typeof module ? module.exports = e(require("ng.common"), require("tslib"), require("rxjs"), require("ng.core")) : "function" == typeof define && define.amd ? define(["ng.common", "tslib", "rxjs", "ng.core"], e) : "object" == typeof exports ? exports.listWidgetPlugin = e(require("ng.common"), require("tslib"), require("rxjs"), require("ng.core")) : t.listWidgetPlugin = e(t["ng.common"], t.tslib, t.rxjs, t["ng.core"]) }("undefined" != typeof self ? self : this, function (t, e, n, r) { return function (t) { var e = {}; function n(r) { if (e[r]) return e[r].exports; var o = e[r] = { i: r, l: !1, exports: {} }; return t[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports } return n.m = t, n.c = e, n.d = function (t, e, r) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }) }, n.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function (t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var r = Object.create(null); if (n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var o in t) n.d(r, o, (function (e) { return t[e] }).bind(null, o)); return r }, n.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return n.d(e, "a", e), e }, n.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = 0) }({ 0: function (t, e, n) { t.exports = n("zUnb") }, "0S4P": function (e, n) { e.exports = t }, "17wl": function (t, n) { t.exports = e }, Vgaj: function (t, e) { t.exports = n }, vOrQ: function (t, e) { t.exports = r }, zUnb: function (t, e, n) { "use strict"; n.r(e); var r = n("vOrQ"), o = function () { function t(t) { this.api = t } return t.prototype.ngOnInit = function () { this.getNewsWidgetCatalog() }, t.prototype.getNewsWidgetCatalog = function () { var t = this; return console.log("getNewsWidgetCatalog called"), this.api.get("portalApi/dashboard/widgetData/?resourceType=NEWS", { withCredentials: !0 }).subscribe(function (e) { e && (console.log("data from microservice " + e), t.newsData = e.response.items) }, function (t) { console.log("getAppCatalogServices Error Object" + t) }) }, t }(), i = function () { function t() { } return t.entry = o, t }(), s = n("0S4P"), u = n("17wl"), a = n("Vgaj"); function l(t) { return "function" == typeof t } var c = !1, p = { Promise: void 0, set useDeprecatedSynchronousErrorHandling(t) { c = t }, get useDeprecatedSynchronousErrorHandling() { return c } }; function h(t) { setTimeout(function () { throw t }) } var d = { closed: !0, next: function (t) { }, error: function (t) { if (p.useDeprecatedSynchronousErrorHandling) throw t; h(t) }, complete: function () { } }, f = Array.isArray || function (t) { return t && "number" == typeof t.length }; function y(t) { return null != t && "object" == typeof t } var b, m = { e: {} }; function v() { try { return b.apply(this, arguments) } catch (t) { return m.e = t, m } } function g(t) { return b = t, v } function w(t) { return Error.call(this), this.message = t ? t.length + " errors occurred during unsubscription:\n" + t.map(function (t, e) { return e + 1 + ") " + t.toString() }).join("\n ") : "", this.name = "UnsubscriptionError", this.errors = t, this } w.prototype = Object.create(Error.prototype); var _ = w, x = function () { function t(t) { this.closed = !1, this._parent = null, this._parents = null, this._subscriptions = null, t && (this._unsubscribe = t) } var e; return t.prototype.unsubscribe = function () { var t, e = !1; if (!this.closed) { var n = this._parent, r = this._parents, o = this._unsubscribe, i = this._subscriptions; this.closed = !0, this._parent = null, this._parents = null, this._subscriptions = null; for (var s = -1, u = r ? r.length : 0; n;)n.remove(this), n = ++s < u && r[s] || null; if (l(o) && g(o).call(this) === m && (e = !0, t = t || (m.e instanceof _ ? E(m.e.errors) : [m.e])), f(i)) for (s = -1, u = i.length; ++s < u;) { var a = i[s]; if (y(a) && g(a.unsubscribe).call(a) === m) { e = !0, t = t || []; var c = m.e; c instanceof _ ? t = t.concat(E(c.errors)) : t.push(c) } } if (e) throw new _(t) } }, t.prototype.add = function (e) { if (!e || e === t.EMPTY) return t.EMPTY; if (e === this) return this; var n = e; switch (typeof e) { case "function": n = new t(e); case "object": if (n.closed || "function" != typeof n.unsubscribe) return n; if (this.closed) return n.unsubscribe(), n; if ("function" != typeof n._addParent) { var r = n; (n = new t)._subscriptions = [r] } break; default: throw new Error("unrecognized teardown " + e + " added to Subscription.") }return (this._subscriptions || (this._subscriptions = [])).push(n), n._addParent(this), n }, t.prototype.remove = function (t) { var e = this._subscriptions; if (e) { var n = e.indexOf(t); -1 !== n && e.splice(n, 1) } }, t.prototype._addParent = function (t) { var e = this._parent, n = this._parents; e && e !== t ? n ? -1 === n.indexOf(t) && n.push(t) : this._parents = [t] : this._parent = t }, t.EMPTY = ((e = new t).closed = !0, e), t }(); function E(t) { return t.reduce(function (t, e) { return t.concat(e instanceof _ ? e.errors : e) }, []) } var T = "function" == typeof Symbol ? Symbol("rxSubscriber") : "@@rxSubscriber_" + Math.random(), S = function (t) { function e(n, r, o) { var i = t.call(this) || this; switch (i.syncErrorValue = null, i.syncErrorThrown = !1, i.syncErrorThrowable = !1, i.isStopped = !1, i._parentSubscription = null, arguments.length) { case 0: i.destination = d; break; case 1: if (!n) { i.destination = d; break } if ("object" == typeof n) { n instanceof e ? (i.syncErrorThrowable = n.syncErrorThrowable, i.destination = n, n.add(i)) : (i.syncErrorThrowable = !0, i.destination = new O(i, n)); break } default: i.syncErrorThrowable = !0, i.destination = new O(i, n, r, o) }return i } return u.__extends(e, t), e.prototype[T] = function () { return this }, e.create = function (t, n, r) { var o = new e(t, n, r); return o.syncErrorThrowable = !1, o }, e.prototype.next = function (t) { this.isStopped || this._next(t) }, e.prototype.error = function (t) { this.isStopped || (this.isStopped = !0, this._error(t)) }, e.prototype.complete = function () { this.isStopped || (this.isStopped = !0, this._complete()) }, e.prototype.unsubscribe = function () { this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this)) }, e.prototype._next = function (t) { this.destination.next(t) }, e.prototype._error = function (t) { this.destination.error(t), this.unsubscribe() }, e.prototype._complete = function () { this.destination.complete(), this.unsubscribe() }, e.prototype._unsubscribeAndRecycle = function () { var t = this._parent, e = this._parents; return this._parent = null, this._parents = null, this.unsubscribe(), this.closed = !1, this.isStopped = !1, this._parent = t, this._parents = e, this._parentSubscription = null, this }, e }(x), O = function (t) { function e(e, n, r, o) { var i, s = t.call(this) || this; s._parentSubscriber = e; var u = s; return l(n) ? i = n : n && (i = n.next, r = n.error, o = n.complete, n !== d && (l((u = Object.create(n)).unsubscribe) && s.add(u.unsubscribe.bind(u)), u.unsubscribe = s.unsubscribe.bind(s))), s._context = u, s._next = i, s._error = r, s._complete = o, s } return u.__extends(e, t), e.prototype.next = function (t) { if (!this.isStopped && this._next) { var e = this._parentSubscriber; p.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? this.__tryOrSetError(e, this._next, t) && this.unsubscribe() : this.__tryOrUnsub(this._next, t) } }, e.prototype.error = function (t) { if (!this.isStopped) { var e = this._parentSubscriber, n = p.useDeprecatedSynchronousErrorHandling; if (this._error) n && e.syncErrorThrowable ? (this.__tryOrSetError(e, this._error, t), this.unsubscribe()) : (this.__tryOrUnsub(this._error, t), this.unsubscribe()); else if (e.syncErrorThrowable) n ? (e.syncErrorValue = t, e.syncErrorThrown = !0) : h(t), this.unsubscribe(); else { if (this.unsubscribe(), n) throw t; h(t) } } }, e.prototype.complete = function () { var t = this; if (!this.isStopped) { var e = this._parentSubscriber; if (this._complete) { var n = function () { return t._complete.call(t._context) }; p.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? (this.__tryOrSetError(e, n), this.unsubscribe()) : (this.__tryOrUnsub(n), this.unsubscribe()) } else this.unsubscribe() } }, e.prototype.__tryOrUnsub = function (t, e) { try { t.call(this._context, e) } catch (n) { if (this.unsubscribe(), p.useDeprecatedSynchronousErrorHandling) throw n; h(n) } }, e.prototype.__tryOrSetError = function (t, e, n) { if (!p.useDeprecatedSynchronousErrorHandling) throw new Error("bad call"); try { e.call(this._context, n) } catch (r) { return p.useDeprecatedSynchronousErrorHandling ? (t.syncErrorValue = r, t.syncErrorThrown = !0, !0) : (h(r), !0) } return !1 }, e.prototype._unsubscribe = function () { var t = this._parentSubscriber; this._context = null, this._parentSubscriber = null, t.unsubscribe() }, e }(S), j = function (t) { function e(e, n, r) { var o = t.call(this) || this; return o.parent = e, o.outerValue = n, o.outerIndex = r, o.index = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { this.parent.notifyNext(this.outerValue, t, this.outerIndex, this.index++, this) }, e.prototype._error = function (t) { this.parent.notifyError(t, this), this.unsubscribe() }, e.prototype._complete = function () { this.parent.notifyComplete(this), this.unsubscribe() }, e }(S), C = "function" == typeof Symbol && Symbol.observable || "@@observable"; var N = function () { function t(t) { this._isScalar = !1, t && (this._subscribe = t) } return t.prototype.lift = function (e) { var n = new t; return n.source = this, n.operator = e, n }, t.prototype.subscribe = function (t, e, n) { var r = this.operator, o = function (t, e, n) { if (t) { if (t instanceof S) return t; if (t[T]) return t[T]() } return t || e || n ? new S(t, e, n) : new S(d) }(t, e, n); if (r ? r.call(o, this.source) : o.add(this.source || p.useDeprecatedSynchronousErrorHandling && !o.syncErrorThrowable ? this._subscribe(o) : this._trySubscribe(o)), p.useDeprecatedSynchronousErrorHandling && o.syncErrorThrowable && (o.syncErrorThrowable = !1, o.syncErrorThrown)) throw o.syncErrorValue; return o }, t.prototype._trySubscribe = function (t) { try { return this._subscribe(t) } catch (e) { p.useDeprecatedSynchronousErrorHandling && (t.syncErrorThrown = !0, t.syncErrorValue = e), function (t) { for (; t;) { var e = t.destination; if (t.closed || t.isStopped) return !1; t = e && e instanceof S ? e : null } return !0 }(t) ? t.error(e) : console.warn(e) } }, t.prototype.forEach = function (t, e) { var n = this; return new (e = P(e))(function (e, r) { var o; o = n.subscribe(function (e) { try { t(e) } catch (n) { r(n), o && o.unsubscribe() } }, r, e) }) }, t.prototype._subscribe = function (t) { var e = this.source; return e && e.subscribe(t) }, t.prototype[C] = function () { return this }, t.prototype.pipe = function () { for (var t = [], e = 0; e < arguments.length; e++)t[e] = arguments[e]; return 0 === t.length ? this : ((n = t) ? 1 === n.length ? n[0] : function (t) { return n.reduce(function (t, e) { return e(t) }, t) } : function () { })(this); var n }, t.prototype.toPromise = function (t) { var e = this; return new (t = P(t))(function (t, n) { var r; e.subscribe(function (t) { return r = t }, function (t) { return n(t) }, function () { return t(r) }) }) }, t.create = function (e) { return new t(e) }, t }(); function P(t) { if (t || (t = p.Promise || Promise), !t) throw new Error("no Promise impl found"); return t } var k = function (t) { return function (e) { for (var n = 0, r = t.length; n < r && !e.closed; n++)e.next(t[n]); e.closed || e.complete() } }, I = function (t) { return function (e) { return t.then(function (t) { e.closed || (e.next(t), e.complete()) }, function (t) { return e.error(t) }).then(null, h), e } }; function A() { return "function" == typeof Symbol && Symbol.iterator ? Symbol.iterator : "@@iterator" } var R = A(), z = function (t) { return function (e) { for (var n = t[R](); ;) { var r = n.next(); if (r.done) { e.complete(); break } if (e.next(r.value), e.closed) break } return "function" == typeof n.return && e.add(function () { n.return && n.return() }), e } }, D = function (t) { return function (e) { var n = t[C](); if ("function" != typeof n.subscribe) throw new TypeError("Provided object does not correctly implement Symbol.observable"); return n.subscribe(e) } }, H = function (t) { return t && "number" == typeof t.length && "function" != typeof t }; function U(t) { return t && "function" != typeof t.subscribe && "function" == typeof t.then } var F = function (t) { if (t instanceof N) return function (e) { return t._isScalar ? (e.next(t.value), void e.complete()) : t.subscribe(e) }; if (t && "function" == typeof t[C]) return D(t); if (H(t)) return k(t); if (U(t)) return I(t); if (t && "function" == typeof t[R]) return z(t); var e = y(t) ? "an invalid object" : "'" + t + "'"; throw new TypeError("You provided " + e + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.") }, L = function (t) { function e() { return null !== t && t.apply(this, arguments) || this } return u.__extends(e, t), e.prototype.notifyNext = function (t, e, n, r, o) { this.destination.next(e) }, e.prototype.notifyError = function (t, e) { this.destination.error(t) }, e.prototype.notifyComplete = function (t) { this.destination.complete() }, e }(S); function M(t, e) { return function (n) { if ("function" != typeof t) throw new TypeError("argument is not a function. Are you looking for `mapTo()`?"); return n.lift(new q(t, e)) } } var q = function () { function t(t, e) { this.project = t, this.thisArg = e } return t.prototype.call = function (t, e) { return e.subscribe(new V(t, this.project, this.thisArg)) }, t }(), V = function (t) { function e(e, n, r) { var o = t.call(this, e) || this; return o.project = n, o.count = 0, o.thisArg = r || o, o } return u.__extends(e, t), e.prototype._next = function (t) { var e; try { e = this.project.call(this.thisArg, t, this.count++) } catch (n) { return void this.destination.error(n) } this.destination.next(e) }, e }(S), W = function () { function t(t, e) { void 0 === e && (e = Number.POSITIVE_INFINITY), this.project = t, this.concurrent = e } return t.prototype.call = function (t, e) { return e.subscribe(new B(t, this.project, this.concurrent)) }, t }(), B = function (t) { function e(e, n, r) { void 0 === r && (r = Number.POSITIVE_INFINITY); var o = t.call(this, e) || this; return o.project = n, o.concurrent = r, o.hasCompleted = !1, o.buffer = [], o.active = 0, o.index = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { this.active < this.concurrent ? this._tryNext(t) : this.buffer.push(t) }, e.prototype._tryNext = function (t) { var e, n = this.index++; try { e = this.project(t, n) } catch (r) { return void this.destination.error(r) } this.active++ , this._innerSub(e, t, n) }, e.prototype._innerSub = function (t, e, n) { var r, o, i = new j(this, void 0, void 0); this.destination.add(i), r = t, void 0 === (o = i) && (o = new j(this, e, n)), o.closed || F(r)(o) }, e.prototype._complete = function () { this.hasCompleted = !0, 0 === this.active && 0 === this.buffer.length && this.destination.complete(), this.unsubscribe() }, e.prototype.notifyNext = function (t, e, n, r, o) { this.destination.next(e) }, e.prototype.notifyComplete = function (t) { var e = this.buffer; this.remove(t), this.active-- , e.length > 0 ? this._next(e.shift()) : 0 === this.active && this.hasCompleted && this.destination.complete() }, e }(L); var K = function () { function t(t, e) { this.predicate = t, this.thisArg = e } return t.prototype.call = function (t, e) { return e.subscribe(new J(t, this.predicate, this.thisArg)) }, t }(), J = function (t) { function e(e, n, r) { var o = t.call(this, e) || this; return o.predicate = n, o.thisArg = r, o.count = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { var e; try { e = this.predicate.call(this.thisArg, t, this.count++) } catch (n) { return void this.destination.error(n) } e && this.destination.next(t) }, e }(S), X = function () { return function () { } }(), Y = function () { return function () { } }(), G = function () { function t(t) { var e = this; this.normalizedNames = new Map, this.lazyUpdate = null, t ? this.lazyInit = "string" == typeof t ? function () { e.headers = new Map, t.split("\n").forEach(function (t) { var n = t.indexOf(":"); if (n > 0) { var r = t.slice(0, n), o = r.toLowerCase(), i = t.slice(n + 1).trim(); e.maybeSetNormalizedName(r, o), e.headers.has(o) ? e.headers.get(o).push(i) : e.headers.set(o, [i]) } }) } : function () { e.headers = new Map, Object.keys(t).forEach(function (n) { var r = t[n], o = n.toLowerCase(); "string" == typeof r && (r = [r]), r.length > 0 && (e.headers.set(o, r), e.maybeSetNormalizedName(n, o)) }) } : this.headers = new Map } return t.prototype.has = function (t) { return this.init(), this.headers.has(t.toLowerCase()) }, t.prototype.get = function (t) { this.init(); var e = this.headers.get(t.toLowerCase()); return e && e.length > 0 ? e[0] : null }, t.prototype.keys = function () { return this.init(), Array.from(this.normalizedNames.values()) }, t.prototype.getAll = function (t) { return this.init(), this.headers.get(t.toLowerCase()) || null }, t.prototype.append = function (t, e) { return this.clone({ name: t, value: e, op: "a" }) }, t.prototype.set = function (t, e) { return this.clone({ name: t, value: e, op: "s" }) }, t.prototype.delete = function (t, e) { return this.clone({ name: t, value: e, op: "d" }) }, t.prototype.maybeSetNormalizedName = function (t, e) { this.normalizedNames.has(e) || this.normalizedNames.set(e, t) }, t.prototype.init = function () { var e = this; this.lazyInit && (this.lazyInit instanceof t ? this.copyFrom(this.lazyInit) : this.lazyInit(), this.lazyInit = null, this.lazyUpdate && (this.lazyUpdate.forEach(function (t) { return e.applyUpdate(t) }), this.lazyUpdate = null)) }, t.prototype.copyFrom = function (t) { var e = this; t.init(), Array.from(t.headers.keys()).forEach(function (n) { e.headers.set(n, t.headers.get(n)), e.normalizedNames.set(n, t.normalizedNames.get(n)) }) }, t.prototype.clone = function (e) { var n = new t; return n.lazyInit = this.lazyInit && this.lazyInit instanceof t ? this.lazyInit : this, n.lazyUpdate = (this.lazyUpdate || []).concat([e]), n }, t.prototype.applyUpdate = function (t) { var e = t.name.toLowerCase(); switch (t.op) { case "a": case "s": var n = t.value; if ("string" == typeof n && (n = [n]), 0 === n.length) return; this.maybeSetNormalizedName(t.name, e); var r = ("a" === t.op ? this.headers.get(e) : void 0) || []; r.push.apply(r, Object(u.__spread)(n)), this.headers.set(e, r); break; case "d": var o = t.value; if (o) { var i = this.headers.get(e); if (!i) return; 0 === (i = i.filter(function (t) { return -1 === o.indexOf(t) })).length ? (this.headers.delete(e), this.normalizedNames.delete(e)) : this.headers.set(e, i) } else this.headers.delete(e), this.normalizedNames.delete(e) } }, t.prototype.forEach = function (t) { var e = this; this.init(), Array.from(this.normalizedNames.keys()).forEach(function (n) { return t(e.normalizedNames.get(n), e.headers.get(n)) }) }, t }(), $ = function () { function t() { } return t.prototype.encodeKey = function (t) { return Q(t) }, t.prototype.encodeValue = function (t) { return Q(t) }, t.prototype.decodeKey = function (t) { return decodeURIComponent(t) }, t.prototype.decodeValue = function (t) { return decodeURIComponent(t) }, t }(); function Q(t) { return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/gi, "$").replace(/%2C/gi, ",").replace(/%3B/gi, ";").replace(/%2B/gi, "+").replace(/%3D/gi, "=").replace(/%3F/gi, "?").replace(/%2F/gi, "/") } var Z = function () { function t(t) { void 0 === t && (t = {}); var e, n, r, o = this; if (this.updates = null, this.cloneFrom = null, this.encoder = t.encoder || new $, t.fromString) { if (t.fromObject) throw new Error("Cannot specify both fromString and fromObject."); this.map = (e = t.fromString, n = this.encoder, r = new Map, e.length > 0 && e.split("&").forEach(function (t) { var e = t.indexOf("="), o = Object(u.__read)(-1 == e ? [n.decodeKey(t), ""] : [n.decodeKey(t.slice(0, e)), n.decodeValue(t.slice(e + 1))], 2), i = o[0], s = o[1], a = r.get(i) || []; a.push(s), r.set(i, a) }), r) } else t.fromObject ? (this.map = new Map, Object.keys(t.fromObject).forEach(function (e) { var n = t.fromObject[e]; o.map.set(e, Array.isArray(n) ? n : [n]) })) : this.map = null } return t.prototype.has = function (t) { return this.init(), this.map.has(t) }, t.prototype.get = function (t) { this.init(); var e = this.map.get(t); return e ? e[0] : null }, t.prototype.getAll = function (t) { return this.init(), this.map.get(t) || null }, t.prototype.keys = function () { return this.init(), Array.from(this.map.keys()) }, t.prototype.append = function (t, e) { return this.clone({ param: t, value: e, op: "a" }) }, t.prototype.set = function (t, e) { return this.clone({ param: t, value: e, op: "s" }) }, t.prototype.delete = function (t, e) { return this.clone({ param: t, value: e, op: "d" }) }, t.prototype.toString = function () { var t = this; return this.init(), this.keys().map(function (e) { var n = t.encoder.encodeKey(e); return t.map.get(e).map(function (e) { return n + "=" + t.encoder.encodeValue(e) }).join("&") }).join("&") }, t.prototype.clone = function (e) { var n = new t({ encoder: this.encoder }); return n.cloneFrom = this.cloneFrom || this, n.updates = (this.updates || []).concat([e]), n }, t.prototype.init = function () { var t = this; null === this.map && (this.map = new Map), null !== this.cloneFrom && (this.cloneFrom.init(), this.cloneFrom.keys().forEach(function (e) { return t.map.set(e, t.cloneFrom.map.get(e)) }), this.updates.forEach(function (e) { switch (e.op) { case "a": case "s": var n = ("a" === e.op ? t.map.get(e.param) : void 0) || []; n.push(e.value), t.map.set(e.param, n); break; case "d": if (void 0 === e.value) { t.map.delete(e.param); break } var r = t.map.get(e.param) || [], o = r.indexOf(e.value); -1 !== o && r.splice(o, 1), r.length > 0 ? t.map.set(e.param, r) : t.map.delete(e.param) } }), this.cloneFrom = null) }, t }(); function tt(t) { return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer } function et(t) { return "undefined" != typeof Blob && t instanceof Blob } function nt(t) { return "undefined" != typeof FormData && t instanceof FormData } var rt = function () { function t(t, e, n, r) { var o; if (this.url = e, this.body = null, this.reportProgress = !1, this.withCredentials = !1, this.responseType = "json", this.method = t.toUpperCase(), function (t) { switch (t) { case "DELETE": case "GET": case "HEAD": case "OPTIONS": case "JSONP": return !1; default: return !0 } }(this.method) || r ? (this.body = void 0 !== n ? n : null, o = r) : o = n, o && (this.reportProgress = !!o.reportProgress, this.withCredentials = !!o.withCredentials, o.responseType && (this.responseType = o.responseType), o.headers && (this.headers = o.headers), o.params && (this.params = o.params)), this.headers || (this.headers = new G), this.params) { var i = this.params.toString(); if (0 === i.length) this.urlWithParams = e; else { var s = e.indexOf("?"); this.urlWithParams = e + (-1 === s ? "?" : s < e.length - 1 ? "&" : "") + i } } else this.params = new Z, this.urlWithParams = e } return t.prototype.serializeBody = function () { return null === this.body ? null : tt(this.body) || et(this.body) || nt(this.body) || "string" == typeof this.body ? this.body : this.body instanceof Z ? this.body.toString() : "object" == typeof this.body || "boolean" == typeof this.body || Array.isArray(this.body) ? JSON.stringify(this.body) : this.body.toString() }, t.prototype.detectContentTypeHeader = function () { return null === this.body ? null : nt(this.body) ? null : et(this.body) ? this.body.type || null : tt(this.body) ? null : "string" == typeof this.body ? "text/plain" : this.body instanceof Z ? "application/x-www-form-urlencoded;charset=UTF-8" : "object" == typeof this.body || "number" == typeof this.body || Array.isArray(this.body) ? "application/json" : null }, t.prototype.clone = function (e) { void 0 === e && (e = {}); var n = e.method || this.method, r = e.url || this.url, o = e.responseType || this.responseType, i = void 0 !== e.body ? e.body : this.body, s = void 0 !== e.withCredentials ? e.withCredentials : this.withCredentials, u = void 0 !== e.reportProgress ? e.reportProgress : this.reportProgress, a = e.headers || this.headers, l = e.params || this.params; return void 0 !== e.setHeaders && (a = Object.keys(e.setHeaders).reduce(function (t, n) { return t.set(n, e.setHeaders[n]) }, a)), e.setParams && (l = Object.keys(e.setParams).reduce(function (t, n) { return t.set(n, e.setParams[n]) }, l)), new t(n, r, i, { params: l, headers: a, reportProgress: u, responseType: o, withCredentials: s }) }, t }(), ot = function (t) { return t[t.Sent = 0] = "Sent", t[t.UploadProgress = 1] = "UploadProgress", t[t.ResponseHeader = 2] = "ResponseHeader", t[t.DownloadProgress = 3] = "DownloadProgress", t[t.Response = 4] = "Response", t[t.User = 5] = "User", t }({}), it = function () { return function (t, e, n) { void 0 === e && (e = 200), void 0 === n && (n = "OK"), this.headers = t.headers || new G, this.status = void 0 !== t.status ? t.status : e, this.statusText = t.statusText || n, this.url = t.url || null, this.ok = this.status >= 200 && this.status < 300 } }(), st = function (t) { function e(e) { void 0 === e && (e = {}); var n = t.call(this, e) || this; return n.type = ot.ResponseHeader, n } return Object(u.__extends)(e, t), e.prototype.clone = function (t) { return void 0 === t && (t = {}), new e({ headers: t.headers || this.headers, status: void 0 !== t.status ? t.status : this.status, statusText: t.statusText || this.statusText, url: t.url || this.url || void 0 }) }, e }(it), ut = function (t) { function e(e) { void 0 === e && (e = {}); var n = t.call(this, e) || this; return n.type = ot.Response, n.body = void 0 !== e.body ? e.body : null, n } return Object(u.__extends)(e, t), e.prototype.clone = function (t) { return void 0 === t && (t = {}), new e({ body: void 0 !== t.body ? t.body : this.body, headers: t.headers || this.headers, status: void 0 !== t.status ? t.status : this.status, statusText: t.statusText || this.statusText, url: t.url || this.url || void 0 }) }, e }(it), at = function (t) { function e(e) { var n = t.call(this, e, 0, "Unknown Error") || this; return n.name = "HttpErrorResponse", n.ok = !1, n.message = n.status >= 200 && n.status < 300 ? "Http failure during parsing for " + (e.url || "(unknown url)") : "Http failure response for " + (e.url || "(unknown url)") + ": " + e.status + " " + e.statusText, n.error = e.error || null, n } return Object(u.__extends)(e, t), e }(it); function lt(t, e) { return { body: e, headers: t.headers, observe: t.observe, params: t.params, reportProgress: t.reportProgress, responseType: t.responseType, withCredentials: t.withCredentials } } var ct = function () { function t(t) { this.handler = t } return t.prototype.request = function (t, e, n) { var r, o = this; if (void 0 === n && (n = {}), t instanceof rt) r = t; else { var i; i = n.headers instanceof G ? n.headers : new G(n.headers); var s = void 0; n.params && (s = n.params instanceof Z ? n.params : new Z({ fromObject: n.params })), r = new rt(t, e, void 0 !== n.body ? n.body : null, { headers: i, params: s, reportProgress: n.reportProgress, responseType: n.responseType || "json", withCredentials: n.withCredentials }) } var u, l = Object(a.of)(r).pipe(function t(e, n, r) { return void 0 === r && (r = Number.POSITIVE_INFINITY), "function" == typeof n ? function (o) { return o.pipe(t(function (t, r) { return (o = e(t, r), o instanceof N ? o : new N(F(o))).pipe(M(function (e, o) { return n(t, e, r, o) })); var o }, r)) } : ("number" == typeof n && (r = n), function (t) { return t.lift(new W(e, r)) }) }(function (t) { return o.handler.handle(t) }, u, 1)); if (t instanceof rt || "events" === n.observe) return l; var c, p = l.pipe((c = function (t) { return t instanceof ut }, function (t) { return t.lift(new K(c, void 0)) })); switch (n.observe || "body") { case "body": switch (r.responseType) { case "arraybuffer": return p.pipe(M(function (t) { if (null !== t.body && !(t.body instanceof ArrayBuffer)) throw new Error("Response is not an ArrayBuffer."); return t.body })); case "blob": return p.pipe(M(function (t) { if (null !== t.body && !(t.body instanceof Blob)) throw new Error("Response is not a Blob."); return t.body })); case "text": return p.pipe(M(function (t) { if (null !== t.body && "string" != typeof t.body) throw new Error("Response is not a string."); return t.body })); case "json": default: return p.pipe(M(function (t) { return t.body })) }case "response": return p; default: throw new Error("Unreachable: unhandled observe type " + n.observe + "}") } }, t.prototype.delete = function (t, e) { return void 0 === e && (e = {}), this.request("DELETE", t, e) }, t.prototype.get = function (t, e) { return void 0 === e && (e = {}), this.request("GET", t, e) }, t.prototype.head = function (t, e) { return void 0 === e && (e = {}), this.request("HEAD", t, e) }, t.prototype.jsonp = function (t, e) { return this.request("JSONP", t, { params: (new Z).append(e, "JSONP_CALLBACK"), observe: "body", responseType: "json" }) }, t.prototype.options = function (t, e) { return void 0 === e && (e = {}), this.request("OPTIONS", t, e) }, t.prototype.patch = function (t, e, n) { return void 0 === n && (n = {}), this.request("PATCH", t, lt(n, e)) }, t.prototype.post = function (t, e, n) { return void 0 === n && (n = {}), this.request("POST", t, lt(n, e)) }, t.prototype.put = function (t, e, n) { return void 0 === n && (n = {}), this.request("PUT", t, lt(n, e)) }, t }(), pt = function () { function t(t, e) { this.next = t, this.interceptor = e } return t.prototype.handle = function (t) { return this.interceptor.intercept(t, this.next) }, t }(), ht = new r.InjectionToken("HTTP_INTERCEPTORS"), dt = function () { function t() { } return t.prototype.intercept = function (t, e) { return e.handle(t) }, t }(), ft = /^\)\]\}',?\n/, yt = function () { return function () { } }(), bt = function () { function t() { } return t.prototype.build = function () { return new XMLHttpRequest }, t }(), mt = function () { function t(t) { this.xhrFactory = t } return t.prototype.handle = function (t) { var e = this; if ("JSONP" === t.method) throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed."); return new a.Observable(function (n) { var r = e.xhrFactory.build(); if (r.open(t.method, t.urlWithParams), t.withCredentials && (r.withCredentials = !0), t.headers.forEach(function (t, e) { return r.setRequestHeader(t, e.join(",")) }), t.headers.has("Accept") || r.setRequestHeader("Accept", "application/json, text/plain, */*"), !t.headers.has("Content-Type")) { var o = t.detectContentTypeHeader(); null !== o && r.setRequestHeader("Content-Type", o) } if (t.responseType) { var i = t.responseType.toLowerCase(); r.responseType = "json" !== i ? i : "text" } var s = t.serializeBody(), u = null, a = function () { if (null !== u) return u; var e = 1223 === r.status ? 204 : r.status, n = r.statusText || "OK", o = new G(r.getAllResponseHeaders()), i = function (t) { return "responseURL" in t && t.responseURL ? t.responseURL : /^X-Request-URL:/m.test(t.getAllResponseHeaders()) ? t.getResponseHeader("X-Request-URL") : null }(r) || t.url; return u = new st({ headers: o, status: e, statusText: n, url: i }) }, l = function () { var e = a(), o = e.headers, i = e.status, s = e.statusText, u = e.url, l = null; 204 !== i && (l = void 0 === r.response ? r.responseText : r.response), 0 === i && (i = l ? 200 : 0); var c = i >= 200 && i < 300; if ("json" === t.responseType && "string" == typeof l) { var p = l; l = l.replace(ft, ""); try { l = "" !== l ? JSON.parse(l) : null } catch (h) { l = p, c && (c = !1, l = { error: h, text: l }) } } c ? (n.next(new ut({ body: l, headers: o, status: i, statusText: s, url: u || void 0 })), n.complete()) : n.error(new at({ error: l, headers: o, status: i, statusText: s, url: u || void 0 })) }, c = function (t) { var e = a().url, o = new at({ error: t, status: r.status || 0, statusText: r.statusText || "Unknown Error", url: e || void 0 }); n.error(o) }, p = !1, h = function (e) { p || (n.next(a()), p = !0); var o = { type: ot.DownloadProgress, loaded: e.loaded }; e.lengthComputable && (o.total = e.total), "text" === t.responseType && r.responseText && (o.partialText = r.responseText), n.next(o) }, d = function (t) { var e = { type: ot.UploadProgress, loaded: t.loaded }; t.lengthComputable && (e.total = t.total), n.next(e) }; return r.addEventListener("load", l), r.addEventListener("error", c), t.reportProgress && (r.addEventListener("progress", h), null !== s && r.upload && r.upload.addEventListener("progress", d)), r.send(s), n.next({ type: ot.Sent }), function () { r.removeEventListener("error", c), r.removeEventListener("load", l), t.reportProgress && (r.removeEventListener("progress", h), null !== s && r.upload && r.upload.removeEventListener("progress", d)), r.abort() } }) }, t }(), vt = new r.InjectionToken("XSRF_COOKIE_NAME"), gt = new r.InjectionToken("XSRF_HEADER_NAME"), wt = function () { return function () { } }(), _t = function () { function t(t, e, n) { this.doc = t, this.platform = e, this.cookieName = n, this.lastCookieString = "", this.lastToken = null, this.parseCount = 0 } return t.prototype.getToken = function () { if ("server" === this.platform) return null; var t = this.doc.cookie || ""; return t !== this.lastCookieString && (this.parseCount++ , this.lastToken = Object(s["\u0275parseCookieValue"])(t, this.cookieName), this.lastCookieString = t), this.lastToken }, t }(), xt = function () { function t(t, e) { this.tokenService = t, this.headerName = e } return t.prototype.intercept = function (t, e) { var n = t.url.toLowerCase(); if ("GET" === t.method || "HEAD" === t.method || n.startsWith("http://") || n.startsWith("https://")) return e.handle(t); var r = this.tokenService.getToken(); return null === r || t.headers.has(this.headerName) || (t = t.clone({ headers: t.headers.set(this.headerName, r) })), e.handle(t) }, t }(), Et = function () { function t(t, e) { this.backend = t, this.injector = e, this.chain = null } return t.prototype.handle = function (t) { if (null === this.chain) { var e = this.injector.get(ht, []); this.chain = e.reduceRight(function (t, e) { return new pt(t, e) }, this.backend) } return this.chain.handle(t) }, t }(), Tt = function () { function t() { } var e; return e = t, t.disable = function () { return { ngModule: e, providers: [{ provide: xt, useClass: dt }] } }, t.withOptions = function (t) { return void 0 === t && (t = {}), { ngModule: e, providers: [t.cookieName ? { provide: vt, useValue: t.cookieName } : [], t.headerName ? { provide: gt, useValue: t.headerName } : []] } }, t }(), St = function () { return function () { } }(), Ot = r["\u0275crt"]({ encapsulation: 0, styles: [[""]], data: {} }); function jt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 2, "li", [], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 1, "a", [["target", "_blank"]], [[8, "href", 4]], null, null, null, null)), (t()(), r["\u0275ted"](2, null, ["", ""]))], null, function (t, e) { t(e, 1, 0, r["\u0275inlineInterpolate"](1, "", e.context.$implicit.href, "")), t(e, 2, 0, e.context.$implicit.title) }) } function Ct(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 2, "ul", [], null, null, null, null, null)), (t()(), r["\u0275and"](16777216, null, null, 1, null, jt)), r["\u0275did"](2, 278528, null, 0, s.NgForOf, [r.ViewContainerRef, r.TemplateRef, r.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (t, e) { t(e, 2, 0, e.component.newsData) }, null) } function Nt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 6, "div", [], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 5, "div", [["class", "activity-error-container"], ["style", "background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;"]], null, null, null, null, null)), (t()(), r["\u0275eld"](2, 0, null, null, 4, "div", [["class", "activity-error-block"]], null, null, null, null, null)), (t()(), r["\u0275eld"](3, 0, null, null, 0, "i", [["class", "icon-information full-linear-icon-information"], ["style", "margin-left: 125px; font-size: 90px"]], null, null, null, null, null)), (t()(), r["\u0275eld"](4, 0, null, null, 0, "br", [], null, null, null, null, null)), (t()(), r["\u0275eld"](5, 0, null, null, 1, "div", [["class", "activity-error-msg1"]], null, null, null, null, null)), (t()(), r["\u0275ted"](-1, null, ["There's currently no news available."]))], null, null) } function Pt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 6, "div", [["class", "widget-news-main"], ["id", "widget-news"]], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 5, "div", [["att-gridster-item-body", ""], ["class", "information-section-gridsterContent"]], null, null, null, null, null)), (t()(), r["\u0275eld"](2, 0, null, null, 4, "div", [["class", "resources"]], null, null, null, null, null)), (t()(), r["\u0275and"](16777216, null, null, 1, null, Ct)), r["\u0275did"](4, 16384, null, 0, s.NgIf, [r.ViewContainerRef, r.TemplateRef], { ngIf: [0, "ngIf"] }, null), (t()(), r["\u0275and"](16777216, null, null, 1, null, Nt)), r["\u0275did"](6, 16384, null, 0, s.NgIf, [r.ViewContainerRef, r.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (t, e) { var n = e.component; t(e, 4, 0, n.newsData && 0 != n.newsData.length), t(e, 6, 0, n.newsData && 0 != n.newsData.length) }, null) } function kt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 1, "app-list-widget", [], null, null, null, Pt, Ot)), r["\u0275did"](1, 114688, null, 0, o, [ct], null, null)], function (t, e) { t(e, 1, 0) }, null) } var It = r["\u0275ccf"]("app-list-widget", o, kt, {}, {}, []), At = r["\u0275cmf"](i, [], function (t) { return r["\u0275mod"]([r["\u0275mpd"](512, r.ComponentFactoryResolver, r["\u0275CodegenComponentFactoryResolver"], [[8, [It]], [3, r.ComponentFactoryResolver], r.NgModuleRef]), r["\u0275mpd"](4608, s.NgLocalization, s.NgLocaleLocalization, [r.LOCALE_ID, [2, s["\u0275angular_packages_common_common_a"]]]), r["\u0275mpd"](4608, wt, _t, [s.DOCUMENT, r.PLATFORM_ID, vt]), r["\u0275mpd"](4608, xt, xt, [wt, gt]), r["\u0275mpd"](5120, ht, function (t) { return [t] }, [xt]), r["\u0275mpd"](4608, bt, bt, []), r["\u0275mpd"](6144, yt, null, [bt]), r["\u0275mpd"](4608, mt, mt, [yt]), r["\u0275mpd"](6144, Y, null, [mt]), r["\u0275mpd"](4608, X, Et, [Y, r.Injector]), r["\u0275mpd"](4608, ct, ct, [X]), r["\u0275mpd"](1073742336, s.CommonModule, s.CommonModule, []), r["\u0275mpd"](1073742336, Tt, Tt, []), r["\u0275mpd"](1073742336, St, St, []), r["\u0275mpd"](1073742336, i, i, []), r["\u0275mpd"](256, vt, "XSRF-TOKEN", []), r["\u0275mpd"](256, gt, "X-XSRF-TOKEN", [])]) }); n.d(e, "DynamicWidgetModule", function () { return i }), n.d(e, "DynamicWidgetModuleNgFactory", function () { return At }), e.default = At } }) });
\ No newline at end of file diff --git a/portal-FE-os/src/assets/plugins/Resources.js b/portal-FE-os/src/assets/plugins/Resources.js new file mode 100644 index 00000000..717fe665 --- /dev/null +++ b/portal-FE-os/src/assets/plugins/Resources.js @@ -0,0 +1 @@ +!function (t, e) { "object" == typeof exports && "object" == typeof module ? module.exports = e(require("ng.common"), require("tslib"), require("rxjs"), require("ng.core")) : "function" == typeof define && define.amd ? define(["ng.common", "tslib", "rxjs", "ng.core"], e) : "object" == typeof exports ? exports.listWidgetPlugin = e(require("ng.common"), require("tslib"), require("rxjs"), require("ng.core")) : t.listWidgetPlugin = e(t["ng.common"], t.tslib, t.rxjs, t["ng.core"]) }("undefined" != typeof self ? self : this, function (t, e, n, r) { return function (t) { var e = {}; function n(r) { if (e[r]) return e[r].exports; var o = e[r] = { i: r, l: !1, exports: {} }; return t[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports } return n.m = t, n.c = e, n.d = function (t, e, r) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }) }, n.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function (t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var r = Object.create(null); if (n.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var o in t) n.d(r, o, (function (e) { return t[e] }).bind(null, o)); return r }, n.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return n.d(e, "a", e), e }, n.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = 0) }({ 0: function (t, e, n) { t.exports = n("zUnb") }, "0S4P": function (e, n) { e.exports = t }, "17wl": function (t, n) { t.exports = e }, Vgaj: function (t, e) { t.exports = n }, vOrQ: function (t, e) { t.exports = r }, zUnb: function (t, e, n) { "use strict"; n.r(e); var r = n("vOrQ"), o = function () { function t(t) { this.api = t } return t.prototype.ngOnInit = function () { this.getNewsWidgetCatalog() }, t.prototype.getNewsWidgetCatalog = function () { var t = this; return console.log("getNewsWidgetCatalog called"), this.api.get("portalApi/dashboard/widgetData/?resourceType=IMPORTANTRESOURCES", { withCredentials: !0 }).subscribe(function (e) { e && (console.log("data from microservice " + e), t.newsData = e.response.items) }, function (t) { console.log("getAppCatalogServices Error Object" + t) }) }, t }(), i = function () { function t() { } return t.entry = o, t }(), s = n("0S4P"), u = n("17wl"), a = n("Vgaj"); function l(t) { return "function" == typeof t } var c = !1, p = { Promise: void 0, set useDeprecatedSynchronousErrorHandling(t) { c = t }, get useDeprecatedSynchronousErrorHandling() { return c } }; function h(t) { setTimeout(function () { throw t }) } var d = { closed: !0, next: function (t) { }, error: function (t) { if (p.useDeprecatedSynchronousErrorHandling) throw t; h(t) }, complete: function () { } }, f = Array.isArray || function (t) { return t && "number" == typeof t.length }; function y(t) { return null != t && "object" == typeof t } var b, m = { e: {} }; function v() { try { return b.apply(this, arguments) } catch (t) { return m.e = t, m } } function g(t) { return b = t, v } function w(t) { return Error.call(this), this.message = t ? t.length + " errors occurred during unsubscription:\n" + t.map(function (t, e) { return e + 1 + ") " + t.toString() }).join("\n ") : "", this.name = "UnsubscriptionError", this.errors = t, this } w.prototype = Object.create(Error.prototype); var _ = w, x = function () { function t(t) { this.closed = !1, this._parent = null, this._parents = null, this._subscriptions = null, t && (this._unsubscribe = t) } var e; return t.prototype.unsubscribe = function () { var t, e = !1; if (!this.closed) { var n = this._parent, r = this._parents, o = this._unsubscribe, i = this._subscriptions; this.closed = !0, this._parent = null, this._parents = null, this._subscriptions = null; for (var s = -1, u = r ? r.length : 0; n;)n.remove(this), n = ++s < u && r[s] || null; if (l(o) && g(o).call(this) === m && (e = !0, t = t || (m.e instanceof _ ? E(m.e.errors) : [m.e])), f(i)) for (s = -1, u = i.length; ++s < u;) { var a = i[s]; if (y(a) && g(a.unsubscribe).call(a) === m) { e = !0, t = t || []; var c = m.e; c instanceof _ ? t = t.concat(E(c.errors)) : t.push(c) } } if (e) throw new _(t) } }, t.prototype.add = function (e) { if (!e || e === t.EMPTY) return t.EMPTY; if (e === this) return this; var n = e; switch (typeof e) { case "function": n = new t(e); case "object": if (n.closed || "function" != typeof n.unsubscribe) return n; if (this.closed) return n.unsubscribe(), n; if ("function" != typeof n._addParent) { var r = n; (n = new t)._subscriptions = [r] } break; default: throw new Error("unrecognized teardown " + e + " added to Subscription.") }return (this._subscriptions || (this._subscriptions = [])).push(n), n._addParent(this), n }, t.prototype.remove = function (t) { var e = this._subscriptions; if (e) { var n = e.indexOf(t); -1 !== n && e.splice(n, 1) } }, t.prototype._addParent = function (t) { var e = this._parent, n = this._parents; e && e !== t ? n ? -1 === n.indexOf(t) && n.push(t) : this._parents = [t] : this._parent = t }, t.EMPTY = ((e = new t).closed = !0, e), t }(); function E(t) { return t.reduce(function (t, e) { return t.concat(e instanceof _ ? e.errors : e) }, []) } var T = "function" == typeof Symbol ? Symbol("rxSubscriber") : "@@rxSubscriber_" + Math.random(), S = function (t) { function e(n, r, o) { var i = t.call(this) || this; switch (i.syncErrorValue = null, i.syncErrorThrown = !1, i.syncErrorThrowable = !1, i.isStopped = !1, i._parentSubscription = null, arguments.length) { case 0: i.destination = d; break; case 1: if (!n) { i.destination = d; break } if ("object" == typeof n) { n instanceof e ? (i.syncErrorThrowable = n.syncErrorThrowable, i.destination = n, n.add(i)) : (i.syncErrorThrowable = !0, i.destination = new O(i, n)); break } default: i.syncErrorThrowable = !0, i.destination = new O(i, n, r, o) }return i } return u.__extends(e, t), e.prototype[T] = function () { return this }, e.create = function (t, n, r) { var o = new e(t, n, r); return o.syncErrorThrowable = !1, o }, e.prototype.next = function (t) { this.isStopped || this._next(t) }, e.prototype.error = function (t) { this.isStopped || (this.isStopped = !0, this._error(t)) }, e.prototype.complete = function () { this.isStopped || (this.isStopped = !0, this._complete()) }, e.prototype.unsubscribe = function () { this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this)) }, e.prototype._next = function (t) { this.destination.next(t) }, e.prototype._error = function (t) { this.destination.error(t), this.unsubscribe() }, e.prototype._complete = function () { this.destination.complete(), this.unsubscribe() }, e.prototype._unsubscribeAndRecycle = function () { var t = this._parent, e = this._parents; return this._parent = null, this._parents = null, this.unsubscribe(), this.closed = !1, this.isStopped = !1, this._parent = t, this._parents = e, this._parentSubscription = null, this }, e }(x), O = function (t) { function e(e, n, r, o) { var i, s = t.call(this) || this; s._parentSubscriber = e; var u = s; return l(n) ? i = n : n && (i = n.next, r = n.error, o = n.complete, n !== d && (l((u = Object.create(n)).unsubscribe) && s.add(u.unsubscribe.bind(u)), u.unsubscribe = s.unsubscribe.bind(s))), s._context = u, s._next = i, s._error = r, s._complete = o, s } return u.__extends(e, t), e.prototype.next = function (t) { if (!this.isStopped && this._next) { var e = this._parentSubscriber; p.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? this.__tryOrSetError(e, this._next, t) && this.unsubscribe() : this.__tryOrUnsub(this._next, t) } }, e.prototype.error = function (t) { if (!this.isStopped) { var e = this._parentSubscriber, n = p.useDeprecatedSynchronousErrorHandling; if (this._error) n && e.syncErrorThrowable ? (this.__tryOrSetError(e, this._error, t), this.unsubscribe()) : (this.__tryOrUnsub(this._error, t), this.unsubscribe()); else if (e.syncErrorThrowable) n ? (e.syncErrorValue = t, e.syncErrorThrown = !0) : h(t), this.unsubscribe(); else { if (this.unsubscribe(), n) throw t; h(t) } } }, e.prototype.complete = function () { var t = this; if (!this.isStopped) { var e = this._parentSubscriber; if (this._complete) { var n = function () { return t._complete.call(t._context) }; p.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? (this.__tryOrSetError(e, n), this.unsubscribe()) : (this.__tryOrUnsub(n), this.unsubscribe()) } else this.unsubscribe() } }, e.prototype.__tryOrUnsub = function (t, e) { try { t.call(this._context, e) } catch (n) { if (this.unsubscribe(), p.useDeprecatedSynchronousErrorHandling) throw n; h(n) } }, e.prototype.__tryOrSetError = function (t, e, n) { if (!p.useDeprecatedSynchronousErrorHandling) throw new Error("bad call"); try { e.call(this._context, n) } catch (r) { return p.useDeprecatedSynchronousErrorHandling ? (t.syncErrorValue = r, t.syncErrorThrown = !0, !0) : (h(r), !0) } return !1 }, e.prototype._unsubscribe = function () { var t = this._parentSubscriber; this._context = null, this._parentSubscriber = null, t.unsubscribe() }, e }(S), j = function (t) { function e(e, n, r) { var o = t.call(this) || this; return o.parent = e, o.outerValue = n, o.outerIndex = r, o.index = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { this.parent.notifyNext(this.outerValue, t, this.outerIndex, this.index++, this) }, e.prototype._error = function (t) { this.parent.notifyError(t, this), this.unsubscribe() }, e.prototype._complete = function () { this.parent.notifyComplete(this), this.unsubscribe() }, e }(S), C = "function" == typeof Symbol && Symbol.observable || "@@observable"; var N = function () { function t(t) { this._isScalar = !1, t && (this._subscribe = t) } return t.prototype.lift = function (e) { var n = new t; return n.source = this, n.operator = e, n }, t.prototype.subscribe = function (t, e, n) { var r = this.operator, o = function (t, e, n) { if (t) { if (t instanceof S) return t; if (t[T]) return t[T]() } return t || e || n ? new S(t, e, n) : new S(d) }(t, e, n); if (r ? r.call(o, this.source) : o.add(this.source || p.useDeprecatedSynchronousErrorHandling && !o.syncErrorThrowable ? this._subscribe(o) : this._trySubscribe(o)), p.useDeprecatedSynchronousErrorHandling && o.syncErrorThrowable && (o.syncErrorThrowable = !1, o.syncErrorThrown)) throw o.syncErrorValue; return o }, t.prototype._trySubscribe = function (t) { try { return this._subscribe(t) } catch (e) { p.useDeprecatedSynchronousErrorHandling && (t.syncErrorThrown = !0, t.syncErrorValue = e), function (t) { for (; t;) { var e = t.destination; if (t.closed || t.isStopped) return !1; t = e && e instanceof S ? e : null } return !0 }(t) ? t.error(e) : console.warn(e) } }, t.prototype.forEach = function (t, e) { var n = this; return new (e = P(e))(function (e, r) { var o; o = n.subscribe(function (e) { try { t(e) } catch (n) { r(n), o && o.unsubscribe() } }, r, e) }) }, t.prototype._subscribe = function (t) { var e = this.source; return e && e.subscribe(t) }, t.prototype[C] = function () { return this }, t.prototype.pipe = function () { for (var t = [], e = 0; e < arguments.length; e++)t[e] = arguments[e]; return 0 === t.length ? this : ((n = t) ? 1 === n.length ? n[0] : function (t) { return n.reduce(function (t, e) { return e(t) }, t) } : function () { })(this); var n }, t.prototype.toPromise = function (t) { var e = this; return new (t = P(t))(function (t, n) { var r; e.subscribe(function (t) { return r = t }, function (t) { return n(t) }, function () { return t(r) }) }) }, t.create = function (e) { return new t(e) }, t }(); function P(t) { if (t || (t = p.Promise || Promise), !t) throw new Error("no Promise impl found"); return t } var k = function (t) { return function (e) { for (var n = 0, r = t.length; n < r && !e.closed; n++)e.next(t[n]); e.closed || e.complete() } }, I = function (t) { return function (e) { return t.then(function (t) { e.closed || (e.next(t), e.complete()) }, function (t) { return e.error(t) }).then(null, h), e } }; function A() { return "function" == typeof Symbol && Symbol.iterator ? Symbol.iterator : "@@iterator" } var R = A(), z = function (t) { return function (e) { for (var n = t[R](); ;) { var r = n.next(); if (r.done) { e.complete(); break } if (e.next(r.value), e.closed) break } return "function" == typeof n.return && e.add(function () { n.return && n.return() }), e } }, D = function (t) { return function (e) { var n = t[C](); if ("function" != typeof n.subscribe) throw new TypeError("Provided object does not correctly implement Symbol.observable"); return n.subscribe(e) } }, H = function (t) { return t && "number" == typeof t.length && "function" != typeof t }; function U(t) { return t && "function" != typeof t.subscribe && "function" == typeof t.then } var F = function (t) { if (t instanceof N) return function (e) { return t._isScalar ? (e.next(t.value), void e.complete()) : t.subscribe(e) }; if (t && "function" == typeof t[C]) return D(t); if (H(t)) return k(t); if (U(t)) return I(t); if (t && "function" == typeof t[R]) return z(t); var e = y(t) ? "an invalid object" : "'" + t + "'"; throw new TypeError("You provided " + e + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.") }, L = function (t) { function e() { return null !== t && t.apply(this, arguments) || this } return u.__extends(e, t), e.prototype.notifyNext = function (t, e, n, r, o) { this.destination.next(e) }, e.prototype.notifyError = function (t, e) { this.destination.error(t) }, e.prototype.notifyComplete = function (t) { this.destination.complete() }, e }(S); function M(t, e) { return function (n) { if ("function" != typeof t) throw new TypeError("argument is not a function. Are you looking for `mapTo()`?"); return n.lift(new q(t, e)) } } var q = function () { function t(t, e) { this.project = t, this.thisArg = e } return t.prototype.call = function (t, e) { return e.subscribe(new V(t, this.project, this.thisArg)) }, t }(), V = function (t) { function e(e, n, r) { var o = t.call(this, e) || this; return o.project = n, o.count = 0, o.thisArg = r || o, o } return u.__extends(e, t), e.prototype._next = function (t) { var e; try { e = this.project.call(this.thisArg, t, this.count++) } catch (n) { return void this.destination.error(n) } this.destination.next(e) }, e }(S), W = function () { function t(t, e) { void 0 === e && (e = Number.POSITIVE_INFINITY), this.project = t, this.concurrent = e } return t.prototype.call = function (t, e) { return e.subscribe(new B(t, this.project, this.concurrent)) }, t }(), B = function (t) { function e(e, n, r) { void 0 === r && (r = Number.POSITIVE_INFINITY); var o = t.call(this, e) || this; return o.project = n, o.concurrent = r, o.hasCompleted = !1, o.buffer = [], o.active = 0, o.index = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { this.active < this.concurrent ? this._tryNext(t) : this.buffer.push(t) }, e.prototype._tryNext = function (t) { var e, n = this.index++; try { e = this.project(t, n) } catch (r) { return void this.destination.error(r) } this.active++ , this._innerSub(e, t, n) }, e.prototype._innerSub = function (t, e, n) { var r, o, i = new j(this, void 0, void 0); this.destination.add(i), r = t, void 0 === (o = i) && (o = new j(this, e, n)), o.closed || F(r)(o) }, e.prototype._complete = function () { this.hasCompleted = !0, 0 === this.active && 0 === this.buffer.length && this.destination.complete(), this.unsubscribe() }, e.prototype.notifyNext = function (t, e, n, r, o) { this.destination.next(e) }, e.prototype.notifyComplete = function (t) { var e = this.buffer; this.remove(t), this.active-- , e.length > 0 ? this._next(e.shift()) : 0 === this.active && this.hasCompleted && this.destination.complete() }, e }(L); var K = function () { function t(t, e) { this.predicate = t, this.thisArg = e } return t.prototype.call = function (t, e) { return e.subscribe(new J(t, this.predicate, this.thisArg)) }, t }(), J = function (t) { function e(e, n, r) { var o = t.call(this, e) || this; return o.predicate = n, o.thisArg = r, o.count = 0, o } return u.__extends(e, t), e.prototype._next = function (t) { var e; try { e = this.predicate.call(this.thisArg, t, this.count++) } catch (n) { return void this.destination.error(n) } e && this.destination.next(t) }, e }(S), X = function () { return function () { } }(), Y = function () { return function () { } }(), G = function () { function t(t) { var e = this; this.normalizedNames = new Map, this.lazyUpdate = null, t ? this.lazyInit = "string" == typeof t ? function () { e.headers = new Map, t.split("\n").forEach(function (t) { var n = t.indexOf(":"); if (n > 0) { var r = t.slice(0, n), o = r.toLowerCase(), i = t.slice(n + 1).trim(); e.maybeSetNormalizedName(r, o), e.headers.has(o) ? e.headers.get(o).push(i) : e.headers.set(o, [i]) } }) } : function () { e.headers = new Map, Object.keys(t).forEach(function (n) { var r = t[n], o = n.toLowerCase(); "string" == typeof r && (r = [r]), r.length > 0 && (e.headers.set(o, r), e.maybeSetNormalizedName(n, o)) }) } : this.headers = new Map } return t.prototype.has = function (t) { return this.init(), this.headers.has(t.toLowerCase()) }, t.prototype.get = function (t) { this.init(); var e = this.headers.get(t.toLowerCase()); return e && e.length > 0 ? e[0] : null }, t.prototype.keys = function () { return this.init(), Array.from(this.normalizedNames.values()) }, t.prototype.getAll = function (t) { return this.init(), this.headers.get(t.toLowerCase()) || null }, t.prototype.append = function (t, e) { return this.clone({ name: t, value: e, op: "a" }) }, t.prototype.set = function (t, e) { return this.clone({ name: t, value: e, op: "s" }) }, t.prototype.delete = function (t, e) { return this.clone({ name: t, value: e, op: "d" }) }, t.prototype.maybeSetNormalizedName = function (t, e) { this.normalizedNames.has(e) || this.normalizedNames.set(e, t) }, t.prototype.init = function () { var e = this; this.lazyInit && (this.lazyInit instanceof t ? this.copyFrom(this.lazyInit) : this.lazyInit(), this.lazyInit = null, this.lazyUpdate && (this.lazyUpdate.forEach(function (t) { return e.applyUpdate(t) }), this.lazyUpdate = null)) }, t.prototype.copyFrom = function (t) { var e = this; t.init(), Array.from(t.headers.keys()).forEach(function (n) { e.headers.set(n, t.headers.get(n)), e.normalizedNames.set(n, t.normalizedNames.get(n)) }) }, t.prototype.clone = function (e) { var n = new t; return n.lazyInit = this.lazyInit && this.lazyInit instanceof t ? this.lazyInit : this, n.lazyUpdate = (this.lazyUpdate || []).concat([e]), n }, t.prototype.applyUpdate = function (t) { var e = t.name.toLowerCase(); switch (t.op) { case "a": case "s": var n = t.value; if ("string" == typeof n && (n = [n]), 0 === n.length) return; this.maybeSetNormalizedName(t.name, e); var r = ("a" === t.op ? this.headers.get(e) : void 0) || []; r.push.apply(r, Object(u.__spread)(n)), this.headers.set(e, r); break; case "d": var o = t.value; if (o) { var i = this.headers.get(e); if (!i) return; 0 === (i = i.filter(function (t) { return -1 === o.indexOf(t) })).length ? (this.headers.delete(e), this.normalizedNames.delete(e)) : this.headers.set(e, i) } else this.headers.delete(e), this.normalizedNames.delete(e) } }, t.prototype.forEach = function (t) { var e = this; this.init(), Array.from(this.normalizedNames.keys()).forEach(function (n) { return t(e.normalizedNames.get(n), e.headers.get(n)) }) }, t }(), $ = function () { function t() { } return t.prototype.encodeKey = function (t) { return Q(t) }, t.prototype.encodeValue = function (t) { return Q(t) }, t.prototype.decodeKey = function (t) { return decodeURIComponent(t) }, t.prototype.decodeValue = function (t) { return decodeURIComponent(t) }, t }(); function Q(t) { return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/gi, "$").replace(/%2C/gi, ",").replace(/%3B/gi, ";").replace(/%2B/gi, "+").replace(/%3D/gi, "=").replace(/%3F/gi, "?").replace(/%2F/gi, "/") } var Z = function () { function t(t) { void 0 === t && (t = {}); var e, n, r, o = this; if (this.updates = null, this.cloneFrom = null, this.encoder = t.encoder || new $, t.fromString) { if (t.fromObject) throw new Error("Cannot specify both fromString and fromObject."); this.map = (e = t.fromString, n = this.encoder, r = new Map, e.length > 0 && e.split("&").forEach(function (t) { var e = t.indexOf("="), o = Object(u.__read)(-1 == e ? [n.decodeKey(t), ""] : [n.decodeKey(t.slice(0, e)), n.decodeValue(t.slice(e + 1))], 2), i = o[0], s = o[1], a = r.get(i) || []; a.push(s), r.set(i, a) }), r) } else t.fromObject ? (this.map = new Map, Object.keys(t.fromObject).forEach(function (e) { var n = t.fromObject[e]; o.map.set(e, Array.isArray(n) ? n : [n]) })) : this.map = null } return t.prototype.has = function (t) { return this.init(), this.map.has(t) }, t.prototype.get = function (t) { this.init(); var e = this.map.get(t); return e ? e[0] : null }, t.prototype.getAll = function (t) { return this.init(), this.map.get(t) || null }, t.prototype.keys = function () { return this.init(), Array.from(this.map.keys()) }, t.prototype.append = function (t, e) { return this.clone({ param: t, value: e, op: "a" }) }, t.prototype.set = function (t, e) { return this.clone({ param: t, value: e, op: "s" }) }, t.prototype.delete = function (t, e) { return this.clone({ param: t, value: e, op: "d" }) }, t.prototype.toString = function () { var t = this; return this.init(), this.keys().map(function (e) { var n = t.encoder.encodeKey(e); return t.map.get(e).map(function (e) { return n + "=" + t.encoder.encodeValue(e) }).join("&") }).join("&") }, t.prototype.clone = function (e) { var n = new t({ encoder: this.encoder }); return n.cloneFrom = this.cloneFrom || this, n.updates = (this.updates || []).concat([e]), n }, t.prototype.init = function () { var t = this; null === this.map && (this.map = new Map), null !== this.cloneFrom && (this.cloneFrom.init(), this.cloneFrom.keys().forEach(function (e) { return t.map.set(e, t.cloneFrom.map.get(e)) }), this.updates.forEach(function (e) { switch (e.op) { case "a": case "s": var n = ("a" === e.op ? t.map.get(e.param) : void 0) || []; n.push(e.value), t.map.set(e.param, n); break; case "d": if (void 0 === e.value) { t.map.delete(e.param); break } var r = t.map.get(e.param) || [], o = r.indexOf(e.value); -1 !== o && r.splice(o, 1), r.length > 0 ? t.map.set(e.param, r) : t.map.delete(e.param) } }), this.cloneFrom = null) }, t }(); function tt(t) { return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer } function et(t) { return "undefined" != typeof Blob && t instanceof Blob } function nt(t) { return "undefined" != typeof FormData && t instanceof FormData } var rt = function () { function t(t, e, n, r) { var o; if (this.url = e, this.body = null, this.reportProgress = !1, this.withCredentials = !1, this.responseType = "json", this.method = t.toUpperCase(), function (t) { switch (t) { case "DELETE": case "GET": case "HEAD": case "OPTIONS": case "JSONP": return !1; default: return !0 } }(this.method) || r ? (this.body = void 0 !== n ? n : null, o = r) : o = n, o && (this.reportProgress = !!o.reportProgress, this.withCredentials = !!o.withCredentials, o.responseType && (this.responseType = o.responseType), o.headers && (this.headers = o.headers), o.params && (this.params = o.params)), this.headers || (this.headers = new G), this.params) { var i = this.params.toString(); if (0 === i.length) this.urlWithParams = e; else { var s = e.indexOf("?"); this.urlWithParams = e + (-1 === s ? "?" : s < e.length - 1 ? "&" : "") + i } } else this.params = new Z, this.urlWithParams = e } return t.prototype.serializeBody = function () { return null === this.body ? null : tt(this.body) || et(this.body) || nt(this.body) || "string" == typeof this.body ? this.body : this.body instanceof Z ? this.body.toString() : "object" == typeof this.body || "boolean" == typeof this.body || Array.isArray(this.body) ? JSON.stringify(this.body) : this.body.toString() }, t.prototype.detectContentTypeHeader = function () { return null === this.body ? null : nt(this.body) ? null : et(this.body) ? this.body.type || null : tt(this.body) ? null : "string" == typeof this.body ? "text/plain" : this.body instanceof Z ? "application/x-www-form-urlencoded;charset=UTF-8" : "object" == typeof this.body || "number" == typeof this.body || Array.isArray(this.body) ? "application/json" : null }, t.prototype.clone = function (e) { void 0 === e && (e = {}); var n = e.method || this.method, r = e.url || this.url, o = e.responseType || this.responseType, i = void 0 !== e.body ? e.body : this.body, s = void 0 !== e.withCredentials ? e.withCredentials : this.withCredentials, u = void 0 !== e.reportProgress ? e.reportProgress : this.reportProgress, a = e.headers || this.headers, l = e.params || this.params; return void 0 !== e.setHeaders && (a = Object.keys(e.setHeaders).reduce(function (t, n) { return t.set(n, e.setHeaders[n]) }, a)), e.setParams && (l = Object.keys(e.setParams).reduce(function (t, n) { return t.set(n, e.setParams[n]) }, l)), new t(n, r, i, { params: l, headers: a, reportProgress: u, responseType: o, withCredentials: s }) }, t }(), ot = function (t) { return t[t.Sent = 0] = "Sent", t[t.UploadProgress = 1] = "UploadProgress", t[t.ResponseHeader = 2] = "ResponseHeader", t[t.DownloadProgress = 3] = "DownloadProgress", t[t.Response = 4] = "Response", t[t.User = 5] = "User", t }({}), it = function () { return function (t, e, n) { void 0 === e && (e = 200), void 0 === n && (n = "OK"), this.headers = t.headers || new G, this.status = void 0 !== t.status ? t.status : e, this.statusText = t.statusText || n, this.url = t.url || null, this.ok = this.status >= 200 && this.status < 300 } }(), st = function (t) { function e(e) { void 0 === e && (e = {}); var n = t.call(this, e) || this; return n.type = ot.ResponseHeader, n } return Object(u.__extends)(e, t), e.prototype.clone = function (t) { return void 0 === t && (t = {}), new e({ headers: t.headers || this.headers, status: void 0 !== t.status ? t.status : this.status, statusText: t.statusText || this.statusText, url: t.url || this.url || void 0 }) }, e }(it), ut = function (t) { function e(e) { void 0 === e && (e = {}); var n = t.call(this, e) || this; return n.type = ot.Response, n.body = void 0 !== e.body ? e.body : null, n } return Object(u.__extends)(e, t), e.prototype.clone = function (t) { return void 0 === t && (t = {}), new e({ body: void 0 !== t.body ? t.body : this.body, headers: t.headers || this.headers, status: void 0 !== t.status ? t.status : this.status, statusText: t.statusText || this.statusText, url: t.url || this.url || void 0 }) }, e }(it), at = function (t) { function e(e) { var n = t.call(this, e, 0, "Unknown Error") || this; return n.name = "HttpErrorResponse", n.ok = !1, n.message = n.status >= 200 && n.status < 300 ? "Http failure during parsing for " + (e.url || "(unknown url)") : "Http failure response for " + (e.url || "(unknown url)") + ": " + e.status + " " + e.statusText, n.error = e.error || null, n } return Object(u.__extends)(e, t), e }(it); function lt(t, e) { return { body: e, headers: t.headers, observe: t.observe, params: t.params, reportProgress: t.reportProgress, responseType: t.responseType, withCredentials: t.withCredentials } } var ct = function () { function t(t) { this.handler = t } return t.prototype.request = function (t, e, n) { var r, o = this; if (void 0 === n && (n = {}), t instanceof rt) r = t; else { var i; i = n.headers instanceof G ? n.headers : new G(n.headers); var s = void 0; n.params && (s = n.params instanceof Z ? n.params : new Z({ fromObject: n.params })), r = new rt(t, e, void 0 !== n.body ? n.body : null, { headers: i, params: s, reportProgress: n.reportProgress, responseType: n.responseType || "json", withCredentials: n.withCredentials }) } var u, l = Object(a.of)(r).pipe(function t(e, n, r) { return void 0 === r && (r = Number.POSITIVE_INFINITY), "function" == typeof n ? function (o) { return o.pipe(t(function (t, r) { return (o = e(t, r), o instanceof N ? o : new N(F(o))).pipe(M(function (e, o) { return n(t, e, r, o) })); var o }, r)) } : ("number" == typeof n && (r = n), function (t) { return t.lift(new W(e, r)) }) }(function (t) { return o.handler.handle(t) }, u, 1)); if (t instanceof rt || "events" === n.observe) return l; var c, p = l.pipe((c = function (t) { return t instanceof ut }, function (t) { return t.lift(new K(c, void 0)) })); switch (n.observe || "body") { case "body": switch (r.responseType) { case "arraybuffer": return p.pipe(M(function (t) { if (null !== t.body && !(t.body instanceof ArrayBuffer)) throw new Error("Response is not an ArrayBuffer."); return t.body })); case "blob": return p.pipe(M(function (t) { if (null !== t.body && !(t.body instanceof Blob)) throw new Error("Response is not a Blob."); return t.body })); case "text": return p.pipe(M(function (t) { if (null !== t.body && "string" != typeof t.body) throw new Error("Response is not a string."); return t.body })); case "json": default: return p.pipe(M(function (t) { return t.body })) }case "response": return p; default: throw new Error("Unreachable: unhandled observe type " + n.observe + "}") } }, t.prototype.delete = function (t, e) { return void 0 === e && (e = {}), this.request("DELETE", t, e) }, t.prototype.get = function (t, e) { return void 0 === e && (e = {}), this.request("GET", t, e) }, t.prototype.head = function (t, e) { return void 0 === e && (e = {}), this.request("HEAD", t, e) }, t.prototype.jsonp = function (t, e) { return this.request("JSONP", t, { params: (new Z).append(e, "JSONP_CALLBACK"), observe: "body", responseType: "json" }) }, t.prototype.options = function (t, e) { return void 0 === e && (e = {}), this.request("OPTIONS", t, e) }, t.prototype.patch = function (t, e, n) { return void 0 === n && (n = {}), this.request("PATCH", t, lt(n, e)) }, t.prototype.post = function (t, e, n) { return void 0 === n && (n = {}), this.request("POST", t, lt(n, e)) }, t.prototype.put = function (t, e, n) { return void 0 === n && (n = {}), this.request("PUT", t, lt(n, e)) }, t }(), pt = function () { function t(t, e) { this.next = t, this.interceptor = e } return t.prototype.handle = function (t) { return this.interceptor.intercept(t, this.next) }, t }(), ht = new r.InjectionToken("HTTP_INTERCEPTORS"), dt = function () { function t() { } return t.prototype.intercept = function (t, e) { return e.handle(t) }, t }(), ft = /^\)\]\}',?\n/, yt = function () { return function () { } }(), bt = function () { function t() { } return t.prototype.build = function () { return new XMLHttpRequest }, t }(), mt = function () { function t(t) { this.xhrFactory = t } return t.prototype.handle = function (t) { var e = this; if ("JSONP" === t.method) throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed."); return new a.Observable(function (n) { var r = e.xhrFactory.build(); if (r.open(t.method, t.urlWithParams), t.withCredentials && (r.withCredentials = !0), t.headers.forEach(function (t, e) { return r.setRequestHeader(t, e.join(",")) }), t.headers.has("Accept") || r.setRequestHeader("Accept", "application/json, text/plain, */*"), !t.headers.has("Content-Type")) { var o = t.detectContentTypeHeader(); null !== o && r.setRequestHeader("Content-Type", o) } if (t.responseType) { var i = t.responseType.toLowerCase(); r.responseType = "json" !== i ? i : "text" } var s = t.serializeBody(), u = null, a = function () { if (null !== u) return u; var e = 1223 === r.status ? 204 : r.status, n = r.statusText || "OK", o = new G(r.getAllResponseHeaders()), i = function (t) { return "responseURL" in t && t.responseURL ? t.responseURL : /^X-Request-URL:/m.test(t.getAllResponseHeaders()) ? t.getResponseHeader("X-Request-URL") : null }(r) || t.url; return u = new st({ headers: o, status: e, statusText: n, url: i }) }, l = function () { var e = a(), o = e.headers, i = e.status, s = e.statusText, u = e.url, l = null; 204 !== i && (l = void 0 === r.response ? r.responseText : r.response), 0 === i && (i = l ? 200 : 0); var c = i >= 200 && i < 300; if ("json" === t.responseType && "string" == typeof l) { var p = l; l = l.replace(ft, ""); try { l = "" !== l ? JSON.parse(l) : null } catch (h) { l = p, c && (c = !1, l = { error: h, text: l }) } } c ? (n.next(new ut({ body: l, headers: o, status: i, statusText: s, url: u || void 0 })), n.complete()) : n.error(new at({ error: l, headers: o, status: i, statusText: s, url: u || void 0 })) }, c = function (t) { var e = a().url, o = new at({ error: t, status: r.status || 0, statusText: r.statusText || "Unknown Error", url: e || void 0 }); n.error(o) }, p = !1, h = function (e) { p || (n.next(a()), p = !0); var o = { type: ot.DownloadProgress, loaded: e.loaded }; e.lengthComputable && (o.total = e.total), "text" === t.responseType && r.responseText && (o.partialText = r.responseText), n.next(o) }, d = function (t) { var e = { type: ot.UploadProgress, loaded: t.loaded }; t.lengthComputable && (e.total = t.total), n.next(e) }; return r.addEventListener("load", l), r.addEventListener("error", c), t.reportProgress && (r.addEventListener("progress", h), null !== s && r.upload && r.upload.addEventListener("progress", d)), r.send(s), n.next({ type: ot.Sent }), function () { r.removeEventListener("error", c), r.removeEventListener("load", l), t.reportProgress && (r.removeEventListener("progress", h), null !== s && r.upload && r.upload.removeEventListener("progress", d)), r.abort() } }) }, t }(), vt = new r.InjectionToken("XSRF_COOKIE_NAME"), gt = new r.InjectionToken("XSRF_HEADER_NAME"), wt = function () { return function () { } }(), _t = function () { function t(t, e, n) { this.doc = t, this.platform = e, this.cookieName = n, this.lastCookieString = "", this.lastToken = null, this.parseCount = 0 } return t.prototype.getToken = function () { if ("server" === this.platform) return null; var t = this.doc.cookie || ""; return t !== this.lastCookieString && (this.parseCount++ , this.lastToken = Object(s["\u0275parseCookieValue"])(t, this.cookieName), this.lastCookieString = t), this.lastToken }, t }(), xt = function () { function t(t, e) { this.tokenService = t, this.headerName = e } return t.prototype.intercept = function (t, e) { var n = t.url.toLowerCase(); if ("GET" === t.method || "HEAD" === t.method || n.startsWith("http://") || n.startsWith("https://")) return e.handle(t); var r = this.tokenService.getToken(); return null === r || t.headers.has(this.headerName) || (t = t.clone({ headers: t.headers.set(this.headerName, r) })), e.handle(t) }, t }(), Et = function () { function t(t, e) { this.backend = t, this.injector = e, this.chain = null } return t.prototype.handle = function (t) { if (null === this.chain) { var e = this.injector.get(ht, []); this.chain = e.reduceRight(function (t, e) { return new pt(t, e) }, this.backend) } return this.chain.handle(t) }, t }(), Tt = function () { function t() { } var e; return e = t, t.disable = function () { return { ngModule: e, providers: [{ provide: xt, useClass: dt }] } }, t.withOptions = function (t) { return void 0 === t && (t = {}), { ngModule: e, providers: [t.cookieName ? { provide: vt, useValue: t.cookieName } : [], t.headerName ? { provide: gt, useValue: t.headerName } : []] } }, t }(), St = function () { return function () { } }(), Ot = r["\u0275crt"]({ encapsulation: 0, styles: [[""]], data: {} }); function jt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 2, "li", [], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 1, "a", [["target", "_blank"]], [[8, "href", 4]], null, null, null, null)), (t()(), r["\u0275ted"](2, null, ["", ""]))], null, function (t, e) { t(e, 1, 0, r["\u0275inlineInterpolate"](1, "", e.context.$implicit.href, "")), t(e, 2, 0, e.context.$implicit.title) }) } function Ct(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 2, "ul", [], null, null, null, null, null)), (t()(), r["\u0275and"](16777216, null, null, 1, null, jt)), r["\u0275did"](2, 278528, null, 0, s.NgForOf, [r.ViewContainerRef, r.TemplateRef, r.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (t, e) { t(e, 2, 0, e.component.newsData) }, null) } function Nt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 6, "div", [], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 5, "div", [["class", "activity-error-container"], ["style", "background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;"]], null, null, null, null, null)), (t()(), r["\u0275eld"](2, 0, null, null, 4, "div", [["class", "activity-error-block"]], null, null, null, null, null)), (t()(), r["\u0275eld"](3, 0, null, null, 0, "i", [["class", "icon-information full-linear-icon-information"], ["style", "margin-left: 125px; font-size: 90px"]], null, null, null, null, null)), (t()(), r["\u0275eld"](4, 0, null, null, 0, "br", [], null, null, null, null, null)), (t()(), r["\u0275eld"](5, 0, null, null, 1, "div", [["class", "activity-error-msg1"]], null, null, null, null, null)), (t()(), r["\u0275ted"](-1, null, ["There's currently no news available."]))], null, null) } function Pt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 6, "div", [["class", "widget-news-main"], ["id", "widget-news"]], null, null, null, null, null)), (t()(), r["\u0275eld"](1, 0, null, null, 5, "div", [["att-gridster-item-body", ""], ["class", "information-section-gridsterContent"]], null, null, null, null, null)), (t()(), r["\u0275eld"](2, 0, null, null, 4, "div", [["class", "resources"]], null, null, null, null, null)), (t()(), r["\u0275and"](16777216, null, null, 1, null, Ct)), r["\u0275did"](4, 16384, null, 0, s.NgIf, [r.ViewContainerRef, r.TemplateRef], { ngIf: [0, "ngIf"] }, null), (t()(), r["\u0275and"](16777216, null, null, 1, null, Nt)), r["\u0275did"](6, 16384, null, 0, s.NgIf, [r.ViewContainerRef, r.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (t, e) { var n = e.component; t(e, 4, 0, n.newsData && 0 != n.newsData.length), t(e, 6, 0, n.newsData && 0 != n.newsData.length) }, null) } function kt(t) { return r["\u0275vid"](0, [(t()(), r["\u0275eld"](0, 0, null, null, 1, "app-list-widget", [], null, null, null, Pt, Ot)), r["\u0275did"](1, 114688, null, 0, o, [ct], null, null)], function (t, e) { t(e, 1, 0) }, null) } var It = r["\u0275ccf"]("app-list-widget", o, kt, {}, {}, []), At = r["\u0275cmf"](i, [], function (t) { return r["\u0275mod"]([r["\u0275mpd"](512, r.ComponentFactoryResolver, r["\u0275CodegenComponentFactoryResolver"], [[8, [It]], [3, r.ComponentFactoryResolver], r.NgModuleRef]), r["\u0275mpd"](4608, s.NgLocalization, s.NgLocaleLocalization, [r.LOCALE_ID, [2, s["\u0275angular_packages_common_common_a"]]]), r["\u0275mpd"](4608, wt, _t, [s.DOCUMENT, r.PLATFORM_ID, vt]), r["\u0275mpd"](4608, xt, xt, [wt, gt]), r["\u0275mpd"](5120, ht, function (t) { return [t] }, [xt]), r["\u0275mpd"](4608, bt, bt, []), r["\u0275mpd"](6144, yt, null, [bt]), r["\u0275mpd"](4608, mt, mt, [yt]), r["\u0275mpd"](6144, Y, null, [mt]), r["\u0275mpd"](4608, X, Et, [Y, r.Injector]), r["\u0275mpd"](4608, ct, ct, [X]), r["\u0275mpd"](1073742336, s.CommonModule, s.CommonModule, []), r["\u0275mpd"](1073742336, Tt, Tt, []), r["\u0275mpd"](1073742336, St, St, []), r["\u0275mpd"](1073742336, i, i, []), r["\u0275mpd"](256, vt, "XSRF-TOKEN", []), r["\u0275mpd"](256, gt, "X-XSRF-TOKEN", [])]) }); n.d(e, "DynamicWidgetModule", function () { return i }), n.d(e, "DynamicWidgetModuleNgFactory", function () { return At }), e.default = At } }) });
\ No newline at end of file diff --git a/portal-FE-os/src/assets/plugins/plugin1.js b/portal-FE-os/src/assets/plugins/plugin1.js new file mode 100644 index 00000000..56a5f165 --- /dev/null +++ b/portal-FE-os/src/assets/plugins/plugin1.js @@ -0,0 +1 @@ +!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ng.common"),require("shared"),require("ng.core")):"function"==typeof define&&define.amd?define(["ng.common","shared","ng.core"],e):"object"==typeof exports?exports.plugin1=e(require("ng.common"),require("shared"),require("ng.core")):n.plugin1=e(n["ng.common"],n.shared,n["ng.core"])}("undefined"!=typeof self?self:this,function(n,e,l){return function(n){var e={};function l(t){if(e[t])return e[t].exports;var u=e[t]={i:t,l:!1,exports:{}};return n[t].call(u.exports,u,u.exports,l),u.l=!0,u.exports}return l.m=n,l.c=e,l.d=function(n,e,t){l.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},l.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,e){if(1&e&&(n=l(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var u in n)l.d(t,u,(function(e){return n[e]}).bind(null,u));return t},l.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(e,"a",e),e},l.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},l.p="",l(l.s=0)}({0:function(n,e,l){n.exports=l("zUnb")},"0S4P":function(e,l){e.exports=n},cfyg:function(n,l){n.exports=e},vOrQ:function(n,e){n.exports=l},zUnb:function(n,e,l){"use strict";l.r(e);var t=function(){return function(){this.x=!1}}(),u=function(){function n(){}return n.entry=t,n}(),o=l("vOrQ"),r=l("0S4P"),i=l("cfyg"),d=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function c(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),o["\u0275ted"](-1,null,["Hidden text"]))],null,null)}function a(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),o["\u0275ted"](-1,null,["Plugin 1"])),(n()(),o["\u0275and"](16777216,null,null,1,null,c)),o["\u0275did"](3,16384,null,0,r.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),o["\u0275eld"](4,0,null,null,2,"button",[["sharedBtn",""]],null,[[null,"click"]],function(n,e,l){var t=!0,u=n.component;return"click"===e&&(t=0!=(u.x=!u.x)&&t),t},i["View_\u0275a_0"],i["RenderType_\u0275a"])),o["\u0275did"](5,49152,null,0,i["\u0275a"],[],null,null),(n()(),o["\u0275ted"](-1,0,["Shared Button Example"])),(n()(),o["\u0275eld"](7,0,null,null,10,"shared-tabs",[],null,null,null,i["View_\u0275c_0"],i["RenderType_\u0275c"])),o["\u0275did"](8,49152,null,0,i["\u0275c"],[],null,null),(n()(),o["\u0275eld"](9,0,null,0,2,"shared-tab",[["title","Tab 1"]],[[8,"hidden",0]],null,null,i["View_\u0275b_0"],i["RenderType_\u0275b"])),o["\u0275did"](10,49152,null,0,i["\u0275b"],[i["\u0275c"]],{title:[0,"title"]},null),(n()(),o["\u0275ted"](-1,0,[" Tab 1 contents "])),(n()(),o["\u0275eld"](12,0,null,0,2,"shared-tab",[["title","Tab 2"]],[[8,"hidden",0]],null,null,i["View_\u0275b_0"],i["RenderType_\u0275b"])),o["\u0275did"](13,49152,null,0,i["\u0275b"],[i["\u0275c"]],{title:[0,"title"]},null),(n()(),o["\u0275ted"](-1,0,[" Tab 2 contents "])),(n()(),o["\u0275eld"](15,0,null,0,2,"shared-tab",[["title","Tab 3"]],[[8,"hidden",0]],null,null,i["View_\u0275b_0"],i["RenderType_\u0275b"])),o["\u0275did"](16,49152,null,0,i["\u0275b"],[i["\u0275c"]],{title:[0,"title"]},null),(n()(),o["\u0275ted"](-1,0,[" Tab 3 contents "]))],function(n,e){n(e,3,0,e.component.x),n(e,10,0,"Tab 1"),n(e,13,0,"Tab 2"),n(e,16,0,"Tab 3")},function(n,e){n(e,9,0,o["\u0275nov"](e,10).hidden),n(e,12,0,o["\u0275nov"](e,13).hidden),n(e,15,0,o["\u0275nov"](e,16).hidden)})}function f(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"app-plugin-1",[],null,null,null,a,d)),o["\u0275did"](1,49152,null,0,t,[],null,null)],null,null)}var p=o["\u0275ccf"]("app-plugin-1",t,f,{},{},[]),s=o["\u0275cmf"](u,[],function(n){return o["\u0275mod"]([o["\u0275mpd"](512,o.ComponentFactoryResolver,o["\u0275CodegenComponentFactoryResolver"],[[8,[p]],[3,o.ComponentFactoryResolver],o.NgModuleRef]),o["\u0275mpd"](4608,r.NgLocalization,r.NgLocaleLocalization,[o.LOCALE_ID,[2,r["\u0275angular_packages_common_common_a"]]]),o["\u0275mpd"](1073742336,r.CommonModule,r.CommonModule,[]),o["\u0275mpd"](1073742336,i.SharedModule,i.SharedModule,[]),o["\u0275mpd"](1073742336,u,u,[])])});l.d(e,"Plugin1Module",function(){return u}),l.d(e,"Plugin1ModuleNgFactory",function(){return s}),e.default=s}})});
\ No newline at end of file diff --git a/portal-FE-os/src/assets/plugins/plugin2.js b/portal-FE-os/src/assets/plugins/plugin2.js new file mode 100644 index 00000000..80772e2e --- /dev/null +++ b/portal-FE-os/src/assets/plugins/plugin2.js @@ -0,0 +1 @@ +!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ng.common"),require("shared"),require("ng.core")):"function"==typeof define&&define.amd?define(["ng.common","shared","ng.core"],e):"object"==typeof exports?exports.plugin2=e(require("ng.common"),require("shared"),require("ng.core")):n.plugin2=e(n["ng.common"],n.shared,n["ng.core"])}("undefined"!=typeof self?self:this,function(n,e,l){return function(n){var e={};function l(t){if(e[t])return e[t].exports;var u=e[t]={i:t,l:!1,exports:{}};return n[t].call(u.exports,u,u.exports,l),u.l=!0,u.exports}return l.m=n,l.c=e,l.d=function(n,e,t){l.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},l.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,e){if(1&e&&(n=l(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var u in n)l.d(t,u,(function(e){return n[e]}).bind(null,u));return t},l.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(e,"a",e),e},l.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},l.p="",l(l.s=0)}({0:function(n,e,l){n.exports=l("zUnb")},"0S4P":function(e,l){e.exports=n},cfyg:function(n,l){n.exports=e},vOrQ:function(n,e){n.exports=l},zUnb:function(n,e,l){"use strict";l.r(e);var t=function(){return function(){}}(),u=function(){function n(){}return n.entry=t,n}(),o=l("vOrQ"),r=l("cfyg"),i=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function d(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),o["\u0275ted"](-1,null,["Plugin 2"])),(n()(),o["\u0275eld"](2,0,null,null,10,"shared-tabs",[],null,null,null,r["View_\u0275c_0"],r["RenderType_\u0275c"])),o["\u0275did"](3,49152,null,0,r["\u0275c"],[],null,null),(n()(),o["\u0275eld"](4,0,null,0,2,"shared-tab",[["title","Tab 1"]],[[8,"hidden",0]],null,null,r["View_\u0275b_0"],r["RenderType_\u0275b"])),o["\u0275did"](5,49152,null,0,r["\u0275b"],[r["\u0275c"]],{title:[0,"title"]},null),(n()(),o["\u0275ted"](-1,0,[" Tab 1 contents "])),(n()(),o["\u0275eld"](7,0,null,0,2,"shared-tab",[["title","Tab 2"]],[[8,"hidden",0]],null,null,r["View_\u0275b_0"],r["RenderType_\u0275b"])),o["\u0275did"](8,49152,null,0,r["\u0275b"],[r["\u0275c"]],{title:[0,"title"]},null),(n()(),o["\u0275ted"](-1,0,[" Tab 2 contents "])),(n()(),o["\u0275eld"](10,0,null,0,2,"shared-tab",[["title","Tab 3"]],[[8,"hidden",0]],null,null,r["View_\u0275b_0"],r["RenderType_\u0275b"])),o["\u0275did"](11,49152,null,0,r["\u0275b"],[r["\u0275c"]],{title:[0,"title"]},null),(n()(),o["\u0275ted"](-1,0,[" Tab 3 contents "]))],function(n,e){n(e,5,0,"Tab 1"),n(e,8,0,"Tab 2"),n(e,11,0,"Tab 3")},function(n,e){n(e,4,0,o["\u0275nov"](e,5).hidden),n(e,7,0,o["\u0275nov"](e,8).hidden),n(e,10,0,o["\u0275nov"](e,11).hidden)})}function c(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"app-plugin-2",[],null,null,null,d,i)),o["\u0275did"](1,49152,null,0,t,[],null,null)],null,null)}var a=o["\u0275ccf"]("app-plugin-2",t,c,{},{},[]),f=l("0S4P"),p=o["\u0275cmf"](u,[],function(n){return o["\u0275mod"]([o["\u0275mpd"](512,o.ComponentFactoryResolver,o["\u0275CodegenComponentFactoryResolver"],[[8,[a]],[3,o.ComponentFactoryResolver],o.NgModuleRef]),o["\u0275mpd"](4608,f.NgLocalization,f.NgLocaleLocalization,[o.LOCALE_ID,[2,f["\u0275angular_packages_common_common_a"]]]),o["\u0275mpd"](1073742336,f.CommonModule,f.CommonModule,[]),o["\u0275mpd"](1073742336,r.SharedModule,r.SharedModule,[]),o["\u0275mpd"](1073742336,u,u,[])])});l.d(e,"Plugin2Module",function(){return u}),l.d(e,"Plugin2ModuleNgFactory",function(){return p}),e.default=p}})});
\ No newline at end of file diff --git a/portal-FE-os/src/assets/plugins/shared.js b/portal-FE-os/src/assets/plugins/shared.js new file mode 100644 index 00000000..e4e0ca6d --- /dev/null +++ b/portal-FE-os/src/assets/plugins/shared.js @@ -0,0 +1 @@ +!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ng.common"),require("tslib"),require("ng.core")):"function"==typeof define&&define.amd?define(["ng.common","tslib","ng.core"],t):"object"==typeof exports?exports.shared=t(require("ng.common"),require("tslib"),require("ng.core")):n.shared=t(n["ng.common"],n.tslib,n["ng.core"])}("undefined"!=typeof self?self:this,function(n,t,e){return function(n){var t={};function e(l){if(t[l])return t[l].exports;var u=t[l]={i:l,l:!1,exports:{}};return n[l].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=n,e.c=t,e.d=function(n,t,l){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:l})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var l=Object.create(null);if(e.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)e.d(l,u,(function(t){return n[t]}).bind(null,u));return l},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=0)}({0:function(n,t,e){n.exports=e("zUnb")},"0S4P":function(t,e){t.exports=n},"17wl":function(n,e){n.exports=t},vOrQ:function(n,t){n.exports=e},zUnb:function(n,t,e){"use strict";e.r(t),e("17wl");var l=e("0S4P"),u=e("vOrQ"),o=function(){return function(){}}(),r=function(){function n(){this.tabs=[],this.selected=new u.EventEmitter}return n.prototype.addTab=function(n){this.tabs.length||(n.hidden=!1),this.tabs.push(n)},n.prototype.selectTab=function(n){this.tabs.map(function(n){return n.hidden=!0}),n.hidden=!1,this.selected.emit(n)},n}(),i=function(){return function(n){this.hidden=!0,n.addTab(this)}}(),c=function(){return function(){}}(),d=function(){return function(){}}(),a=u["\u0275cmf"](d,[],function(n){return u["\u0275mod"]([u["\u0275mpd"](512,u.ComponentFactoryResolver,u["\u0275CodegenComponentFactoryResolver"],[[8,[]],[3,u.ComponentFactoryResolver],u.NgModuleRef]),u["\u0275mpd"](4608,l.NgLocalization,l.NgLocaleLocalization,[u.LOCALE_ID,[2,l["\u0275angular_packages_common_common_a"]]]),u["\u0275mpd"](1073742336,l.CommonModule,l.CommonModule,[]),u["\u0275mpd"](1073742336,d,d,[])])}),f=u["\u0275crt"]({encapsulation:2,styles:[],data:{}});function s(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,[" Shared component "]))],null,null)}function p(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"shared-component",[],null,null,null,s,f)),u["\u0275did"](1,49152,null,0,o,[],null,null)],null,null)}var b=u["\u0275ccf"]("shared-component",o,p,{},{},[]),m=u["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{padding:0 15px;border:1px solid #d8dde6;border-radius:6px;line-height:40px;cursor:pointer;background:#fff}[_nghost-%COMP%]:hover{background:#f3f7fb}"],data:{}});function h(n){return u["\u0275vid"](0,[u["\u0275ncd"](null,0)],null,null)}function g(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"button",[["sharedBtn",""]],null,null,null,h,m)),u["\u0275did"](1,49152,null,0,c,[],null,null)],null,null)}var _=u["\u0275ccf"]("button[sharedBtn]",c,g,{},{},["*"]),y=u["\u0275crt"]({encapsulation:2,styles:[],data:{}});function v(n){return u["\u0275vid"](0,[u["\u0275ncd"](null,0)],null,null)}function x(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"shared-tab",[],[[8,"hidden",0]],null,null,v,y)),u["\u0275did"](1,49152,null,0,i,[r],null,null)],null,function(n,t){n(t,0,0,u["\u0275nov"](t,1).hidden)})}var C=u["\u0275ccf"]("shared-tab",i,x,{title:"title"},{},["*"]),O=u["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{display:block}.tabs[_ngcontent-%COMP%]{display:flex;list-style:none;margin:0;padding:0;border-bottom:1px solid #ebeef2}.tab[_ngcontent-%COMP%]{position:relative;padding:0 20px;line-height:40px;cursor:pointer}.tab-body[_ngcontent-%COMP%]{padding:20px}.tab--active[_ngcontent-%COMP%]:before{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:#03a9f4}"],data:{}});function M(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"li",[["class","tab"]],[[2,"tab--active",null]],[[null,"click"]],function(n,t,e){var l=!0;return"click"===t&&(l=!1!==n.component.selectTab(n.context.$implicit)&&l),l},null,null)),(n()(),u["\u0275ted"](1,null,[" "," "]))],null,function(n,t){n(t,0,0,!t.context.$implicit.hidden),n(t,1,0,t.context.$implicit.title)})}function S(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,2,"ul",[["class","tabs"]],null,null,null,null,null)),(n()(),u["\u0275and"](16777216,null,null,1,null,M)),u["\u0275did"](2,278528,null,0,l.NgForOf,[u.ViewContainerRef,u.TemplateRef,u.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),u["\u0275eld"](3,0,null,null,1,"div",[["class","tab-body"]],null,null,null,null,null)),u["\u0275ncd"](null,0)],function(n,t){n(t,2,0,t.component.tabs)},null)}function P(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"shared-tabs",[],null,null,null,S,O)),u["\u0275did"](1,49152,null,0,r,[],null,null)],null,null)}var w=u["\u0275ccf"]("shared-tabs",r,P,{},{selected:"selected"},["*"]);e.d(t,"SharedComponent",function(){return o}),e.d(t,"SharedModule",function(){return d}),e.d(t,"\u0275a",function(){return c}),e.d(t,"\u0275b",function(){return i}),e.d(t,"\u0275c",function(){return r}),e.d(t,"SharedModuleNgFactory",function(){return a}),e.d(t,"RenderType_SharedComponent",function(){return f}),e.d(t,"View_SharedComponent_0",function(){return s}),e.d(t,"View_SharedComponent_Host_0",function(){return p}),e.d(t,"SharedComponentNgFactory",function(){return b}),e.d(t,"RenderType_\u0275a",function(){return m}),e.d(t,"View_\u0275a_0",function(){return h}),e.d(t,"View_\u0275a_Host_0",function(){return g}),e.d(t,"\u0275aNgFactory",function(){return _}),e.d(t,"RenderType_\u0275b",function(){return y}),e.d(t,"View_\u0275b_0",function(){return v}),e.d(t,"View_\u0275b_Host_0",function(){return x}),e.d(t,"\u0275bNgFactory",function(){return C}),e.d(t,"RenderType_\u0275c",function(){return O}),e.d(t,"View_\u0275c_0",function(){return S}),e.d(t,"View_\u0275c_Host_0",function(){return P}),e.d(t,"\u0275cNgFactory",function(){return w}),t.default=a}})});
\ No newline at end of file |