Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shakecss

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shakecss - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

package.json
{
"name": "shakecss",
"version": "0.3.3",
"version": "0.3.4",
"description": "Special thanks to the makers of purifycss. Modified version of purifycss that better works together with Angular2 applications. Takes a stylesheet + a bundled js-file (e.g. packed angular2-application) and removes any unused !class-selectors! from the .css. It will not remove selectors like html{} or ul{}, only class selectors. This is something Webpack /Angular-CLI does not do when optimizing your code. You have to use e.g. ExtractText Webpack-Plugin to prevent your .css being inlined into to the .js-bundle first.",

@@ -5,0 +5,0 @@ "main": "shakecss.js",

@@ -112,3 +112,3 @@ /*(MIT License)

//extracts ngClass selectors
regObj = /\[.+?\]=["'][{](.*?)[}]/g;
regObj = /\[.+?]=["']{(.*?)}/g;

@@ -125,3 +125,3 @@ let ngClasses = processExec(estr, regObj, 1);

ngClasses.forEach(c => classes.push(processExec(c, regObj, 1).join(' ')));
console.log(classes);
let result = [];

@@ -134,7 +134,15 @@ //get each selector of each extracted class="..." [ngClass]="..."

//filter out duplicates
return result.filter(function (elem, index, self) {
result = result.filter(function (elem, index, self) {
return index == self.indexOf(elem);
});
console.log("Found following classes:");
console.log();
console.log(result);
return result;
}

@@ -141,0 +149,0 @@

@@ -1,4 +0,383 @@

[routerLinkActive]="[\'ux-state-m-service-navigation__item--active\']">\n
webpackJsonp([0], {
"./src/app/administration/administration-overview.component.html": function (e, t) {
e.exports = '<div class="container-fluid">\n\n <div class="row">\n <div class="col-md-3">\n Rahmenvertragsverwaltung\n </div>\n <div class="col-md-4">\n <a class="ux-a-link" routerLink="./policy-overview" routerLinkActive="active">Übersicht</a>\n </div>\n </div>\n\n <div class="ux-h-spacer ux-h-spacer--xxs"></div>\n\n <div class="row">\n <div class="col-md-4 col-md-offset-3">\n <a class="ux-a-link" routerLink="./policy-creation" routerLinkActive="active">Rahmenvertrag anlegen</a>\n </div>\n </div>\n\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n <hr>\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n\n <div class="row">\n <div class="col-md-3">\n Benutzerverwaltung\n </div>\n\n <div class="col-md-4">\n <a class="ux-a-link" routerLink="./user-overview" routerLinkActive="active">Übersicht</a>\n </div>\n </div>\n\n <div class="ux-h-spacer ux-h-spacer--xxs"></div>\n\n <div class="row">\n <div class="col-md-4 col-md-offset-3">\n <a class="ux-a-link" routerLink="./user-creation" routerLinkActive="active">Benutzer anlegen</a>\n </div>\n </div>\n\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n <hr>\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n\n <div class="row">\n <div class="col-md-3">\n Länder-Sperrliste\n </div>\n <div class="col-md-4">\n <a class="ux-a-link" routerLink="./edit-countries" routerLinkActive="active">Sperrliste bearbeiten</a>\n </div>\n </div>\n\n</div>\n\n\n\n'
}, "./src/app/administration/administration-overview.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = function () {
function e() {
}
return e = __decorate([i.Component({
selector: "administration-overview",
template: n("./src/app/administration/administration-overview.component.html"),
providers: []
}), __metadata("design:paramtypes", [])], e)
}();
t.AdministrationOverviewComponent = r
}, "./src/app/administration/administration-routing.module.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/router/index.js"), r = n("./src/app/administration/administration-overview.component.ts"), s = n("./src/app/administration/policy-administration/policy-overview.component.ts"), o = n("./src/app/administration/policy-administration/policy-creation.component.ts"), a = n("./src/app/administration/user-administration/user-creation.component.ts"), l = n("./src/app/administration/user-administration/user-overview.component.ts"), c = n("./src/app/administration/countries-administration/edit-countries.component.ts"), d = n("./node_modules/@angular/core/index.js"), u = n("./src/app/administration/administration.component.ts");
t.ADMINISTRATION_ROUTES = [{
path: "",
component: u.AdministrationComponent,
children: [{path: "", component: r.AdministrationOverviewComponent}, {
path: "edit-countries",
component: c.EditCountriesComponent
}, {path: "policy-overview", component: s.PolicyOverviewComponent}, {
path: "policy-creation",
component: o.PolicyCreationComponent
}, {path: "edit-policy", component: o.PolicyCreationComponent}, {
path: "user-creation",
component: a.UserCreationComponent
}, {path: "user-overview", component: l.UserOverviewComponent}]
}];
var m = function () {
function e() {
}
<a *ngFor="let crumb of routeCrumbs;let i = index"class="ux-m-breadcrumbs__breadcrumb ux-state-m-breadcrumbs__breadcrumb--linked"[ngClass]="{'ux-state-m-breadcrumbs__breadcrumb--arrow-right': (routeCrumbs.length > 1 && routeCrumbs.length-1 > i)}"style="cursor: pointer"(click)="navigateToBreadCrumb(crumb.url)">{{crumb.label}}</a>
return e = __decorate([d.NgModule({
imports: [i.RouterModule.forChild(t.ADMINISTRATION_ROUTES)],
exports: [i.RouterModule]
}), __metadata("design:paramtypes", [])], e)
}();
t.AdministrationRoutingModule = m
}, "./src/app/administration/administration.component.html": function (e, t) {
e.exports = '<div class="container-fluid">\n <div class="row">\n <div class="col-md-12">\n <div class="hidden-xs hidden-sm ">\n <div class="ux-m-breadcrumbs">\n <div class="ux-m-breadcrumbs__content">\n <a *ngFor="let crumb of routeCrumbs;let i = index"\n class="ux-m-breadcrumbs__breadcrumb ux-state-m-breadcrumbs__breadcrumb--linked"\n [ngClass]="{\'ux-state-m-breadcrumbs__breadcrumb--arrow-right\': (routeCrumbs.length > 1 && routeCrumbs.length-1 > i)}"\n style="cursor: pointer"\n (click)="navigateToBreadCrumb(crumb.url)">{{crumb.label}}</a>\n </div>\n </div>\n </div>\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n </div>\n </div>\n</div>\n\n<router-outlet></router-outlet>\n'
}, "./src/app/administration/administration.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./node_modules/@angular/router/index.js"), s = n("./src/app/administration/breadcrumbs.ts"), o = function () {
function e(e, t) {
this.route = e, this.router = t, this.routeCrumbs = [{label: "", url: ""}]
}
return e.prototype.ngOnInit = function () {
var e = this;
this.router.events.subscribe(function (t) {
t instanceof r.NavigationEnd && (e.routeCrumbs = [], t.url.substring(1).split("/").forEach(function (t) {
e.routeCrumbs.push({url: t, label: e.getLabel(t)})
}))
})
}, e.prototype.navigateToBreadCrumb = function (e) {
this.router.navigateByUrl(e)
}, e.prototype.getLabel = function (e) {
return s.BreadCrumbLabels.labels[e]
}, e = __decorate([i.Component({
selector: "trwAdministration",
template: n("./src/app/administration/administration.component.html")
}), __metadata("design:paramtypes", ["function" == typeof(t = "undefined" != typeof r.ActivatedRoute && r.ActivatedRoute) && t || Object, "function" == typeof(o = "undefined" != typeof r.Router && r.Router) && o || Object])], e);
var t, o
}();
t.AdministrationComponent = o
}, "./src/app/administration/administration.module.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./src/app/administration/administration-routing.module.ts"), s = n("./src/app/administration/administration-overview.component.ts"), o = n("./src/app/administration/user-administration/user-overview.component.ts"), a = n("./src/app/administration/user-administration/user-creation.component.ts"), l = n("./src/app/administration/policy-administration/policy-overview.component.ts"), c = n("./src/app/administration/policy-administration/policy-creation.component.ts"), d = n("./src/app/administration/countries-administration/edit-countries.component.ts"), u = n("./src/app/common/validators/custom-validators.module.ts"), m = n("./node_modules/@angular/http/index.js"), p = n("./node_modules/@angular/forms/index.js"), h = n("./src/app/common/hv-core.module.ts"), v = n("./src/app/administration/administration.component.ts"), b = n("./src/app/services/policy-creation.service.ts"), g = n("./node_modules/@angular/common/index.js"), y = function () {
function e() {
}
return e = __decorate([i.NgModule({
imports: [g.CommonModule, r.AdministrationRoutingModule, m.HttpModule, u.CustomValidatorsModule, h.HVCoreModule, p.FormsModule, p.ReactiveFormsModule],
declarations: [v.AdministrationComponent, s.AdministrationOverviewComponent, o.UserOverviewComponent, a.UserCreationComponent, l.PolicyOverviewComponent, c.PolicyCreationComponent, d.EditCountriesComponent],
providers: [b.PolicyCreationService]
}), __metadata("design:paramtypes", [])], e)
}();
t.AdministrationModule = y
}, "./src/app/administration/breadcrumbs.ts": function (e, t) {
"use strict";
var n = function () {
function e() {
}
return e.labels = {
administration: "Übersicht",
"policy-overview": "Übersicht Policen",
"policy-creation": "Police erstellen",
"user-overview": "Übersicht Benutzer",
"user-creation": "Benutzer erstellen",
"edit-countries": "Sperrliste bearbeiten"
}, e
}();
t.BreadCrumbLabels = n
}, "./src/app/administration/countries-administration/edit-countries.component.html": function (e, t) {
e.exports = '<div class="container-fluid">\n\n <hv-spinner [isRunning]="isLoading"></hv-spinner>\n <div class="row">\n <div class="col-md-4">\n <hv-input label="Suche"\n #searcher\n (keyup)="search(searcher.value)">\n </hv-input>\n </div>\n </div>\n <div class="row">\n <div class="col-xs-12">\n <!-- Countries list -->\n <div class="row" style="display:block;height:15em;overflow-y: auto;overflow-x:hidden">\n <table class="table ux-m-table" id="countries_list">\n <tbody>\n\n <tr class="ux-m-table__row">\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-head">Land</th>\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-head">Gesperrt</th>\n </tr>\n\n <!-- Country name -->\n <tr *ngFor="let country of countries; let i = index" class="ux-m-table__row">\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-solid"\n [innerHTML]="country.nameDe | highlight : searcher.value">\n </td>\n <!-- prohibited checking does not alter the countrie\'s value. it only calls the ngModelChange to handle everything -->\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-solid">\n <hv-checkbox [ngModel]="country.prohibited"\n (ngModelChange)="toggleProhibited($event,country)">\n\n </hv-checkbox>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n <div class="row">\n <div class="col-md-8">\n <button\n class="ux-a-button ux-a-button--wisteria"\n [disabled]="resultList.length == 0"\n (click)="submitCountries()">\n <span class="ux-a-button__text">Liste aktualisieren</span>\n </button>\n </div>\n </div>\n\n <hv-dialog [message]="dialogMessage"\n [show]="hasError || didSucceed"\n (buttonClicked)="handleDialog()">\n </hv-dialog>\n\n</div>\n'
}, "./src/app/administration/countries-administration/edit-countries.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./src/app/services/countries.service.ts"), s = n("./src/app/common/core/hv-logging.service.ts"), o = n("./node_modules/rxjs/Rx.js"), a = function () {
function e(e) {
var t = this;
this.countriesService = e, this.defaultCountries = [], this.countries = [], this.hasError = !1, this.didSucceed = !1, this.isLoading = !0, this.resultList = [], this.searchTermStream = new o.Subject, this.searchTermStream.debounceTime(300).distinctUntilChanged().subscribe(function (e) {
return t.countries = t.filterList(e)
})
}
return Object.defineProperty(e.prototype, "dialogMessage", {
get: function () {
return this.hasError ? "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es später erneut." : "Die Länder-Sperrliste wurde erfolgreich aktualisiert!"
}, enumerable: !0, configurable: !0
}), e.prototype.ngOnInit = function () {
this.getCountries()
}, e.prototype.getCountries = function () {
var e = this;
this.countriesService.getCountries().subscribe(function (t) {
e.defaultCountries = t, e.countries = t, e.isLoading = !1
})
}, e.prototype.search = function (e) {
this.searchTermStream.next(e)
}, e.prototype.toggleProhibited = function (t, n) {
s.HVLoggingService.info([t, n], e.name), t != n.prohibited ? this.resultList.push(n.isoNumericCode) : this.resultList.splice(this.resultList.indexOf(n.isoNumericCode), 1), s.HVLoggingService.info(this.resultList, e.name)
}, e.prototype.filterList = function (t) {
return s.HVLoggingService.info("Searchterm: " + t, e.name), t && void 0 != t && "" != t ? this.defaultCountries.filter(function (e) {
return e.nameDe.toLowerCase().indexOf(t.toLowerCase()) !== -1
}).sort(function (e, n) {
return e.nameDe.toLowerCase().indexOf(t.toLowerCase()) - n.nameDe.toLowerCase().indexOf(t.toLowerCase())
}) : this.defaultCountries
}, e.prototype.submitCountries = function () {
var e = this;
this.resultList.length > 0 && this.countriesService.submitCountries(this.resultList).subscribe(function (t) {
return e.didSucceed = !0
}, function (t) {
return e.hasError = !0
})
}, e.prototype.handleDialog = function () {
this.hasError ? (this.hasError = !1, this.didSucceed = !1) : (this.didSucceed = !1, this.resultList = [], this.getCountries())
}, e = __decorate([i.Component({
selector: "editCountries",
template: n("./src/app/administration/countries-administration/edit-countries.component.html")
}), __metadata("design:paramtypes", ["function" == typeof(t = "undefined" != typeof r.CountriesService && r.CountriesService) && t || Object])], e);
var t
}();
t.EditCountriesComponent = a
}, "./src/app/administration/policy-administration/policy-creation.component.html": function (e, t) {
e.exports = '<div class="container-fluid">\n\n <div class="row">\n <div class="col-xs-6">\n\n <hv-input type="text"\n label="Versicherungsscheinnummer *"\n [formControl]="policyCreationForm.get(\'policyNumber\')"\n [(ngModel)]="policy.policyNumber"\n [readonly]="isUpdateMode"\n [hasError]="(!policyCreationForm.get(\'policyNumber\').valid && (!policyCreationForm.get(\'policyNumber\').untouched || submitted))"\n [errorMessage]="errorMessages.policyNumber.formatWrong">\n </hv-input>\n </div>\n </div>\n\n\n <div class="row">\n <div class="col-xs-12 col-md-8 col-lg-6">\n <hv-input type="text"\n label="Policenmaximum *"\n formatNumber\n [formControl]="policyCreationForm.get(\'policyMaxSum\')"\n [(ngModel)]="policy.policyMaxSum"\n [hasError]="(!policyCreationForm.get(\'policyMaxSum\').valid && (!policyCreationForm.get(\'policyMaxSum\').untouched || submitted))"\n [errorMessage]="validationMessagesService.getErrorMessage(policyCreationForm.get(\'policyMaxSum\').errors)">\n </hv-input>\n </div>\n </div>\n <div class="row">\n <div class="col-xs-12 col-md-10 col-lg-9">\n <hv-datepicker\n [label]="\'Gültig ab\'"\n [dateFormat]="\'DD.MM.YYYY\'"\n [formControl]="policyCreationForm.get(\'activationDate\')"\n [(ngModel)]="policy.activationDate"\n [hasError]="!policyCreationForm.get(\'activationDate\').valid && (!policyCreationForm.get(\'activationDate\').untouched ||submitted)"\n [errorMessage]="\'Bitte geben Sie ein gültiges Datum ein.\'">\n </hv-datepicker>\n </div>\n </div>\n\n\n <div class="row">\n <div class="col-xs-12 col-md-5 col-lg-5">\n <hv-checkbox label="Benötigt eigene Abrechnung"\n inline="false"\n [formControl]="policyCreationForm.get(\'invoiceRequired\')"\n [(ngModel)]="policy.invoiceRequired">\n </hv-checkbox>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-12 col-md-5 col-lg-3">\n <div class="ux-h-spacer--s"></div>\n <hv-checkbox [(ngModel)]="policy.contractValid"\n label="Police aktiv"\n inline="false"\n [formControl]="policyCreationForm.get(\'contractValid\')">\n </hv-checkbox>\n </div>\n <div class="col-xs-12 col-md-5" *ngIf="policy.contractValid == false">\n <hv-datepicker\n [dateFormat]="\'DD.MM.YYYY\'"\n [label]="\'Gesperrt zum\'"\n [formControl]="policyCreationForm.get(\'cancellationDate\')"\n [hasError]="false"\n errorMessage="Bitte geben Sie ein gültiges Datum ein">\n </hv-datepicker>\n </div>\n </div>\n\n\n\n <div class="ux-h-spacer--m"></div>\n\n <div class="row">\n <div class="col-xs-12 col-md-6">\n <button class="ux-a-button ux-a-button--wisteria" (click)="submitPolicy()" [disabled]="!policyCreationForm.valid">\n <span class="ux-a-button__text">Speichern</span>\n </button>\n </div>\n </div>\n</div>\n'
}, "./src/app/administration/policy-administration/policy-creation.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./src/app/services/policy-creation.service.ts"), s = n("./src/app/common/core/hv-logging.service.ts"), o = n("./src/app/services/user-session.service.ts"), a = n("./node_modules/@angular/router/index.js"), l = n("./node_modules/@angular/forms/index.js"), c = n("./src/app/common/validators/custom-validators.ts"), d = n("./src/app/common/messages/messages.ts"), u = n("./src/app/services/policies.service.ts"), m = n("./src/app/common/validators/validation-messages.service.ts"), p = function () {
function e(e, t, n, i, r, s) {
this.validationMessagesService = e, this.policyCreationService = t, this.policiesService = n, this.userService = i, this.fb = r, this.route = s, this.loading = !1, this.title = "Zertifikat erstellen", this.isSaved = !1, this.hasError = !1, this.isUpdateMode = !1, this.errorMessages = d.Messages.errorMessages, this.overallMaxSum = 5e6, this.submitted = !1, this.exitWarning = {
observer: null,
show: !1
}
}
return e.prototype.ngOnInit = function () {
var e = this;
this.policy = this.policyCreationService.createNewPolicy(), this.userService.getUserDetails().subscribe(function (t) {
return e.user = t
}), this.policyCreationForm = this.fb.group({
policyNumber: ["", [l.Validators.required, l.Validators.pattern("[0-9]{3}.[0-9]{3}.[0-9]{7}.[0-9]")]],
policyMaxSum: ["", [l.Validators.required, c.CustomValidators.digits(d.Messages.errorMessages.sum.sumInvalid), c.CustomValidators.maxSum(this.overallMaxSum, d.Messages.errorMessages.sum.sumExeedsMaximumAdmin), c.CustomValidators.notEmpty(d.Messages.errorMessages.sum.sumMissing)]],
contractValid: [""],
invoiceRequired: [""],
activationDate: [""],
cancellationDate: [""]
});
this.route.params.subscribe(function (t) {
t.policyNumber ? (e.policy = e.policiesService.currentlyLoadedPolicy, e.isUpdateMode = !0) : e.isUpdateMode = !1
})
}, e.prototype.submitPolicy = function () {
var e = this;
this.submitted = !1, this.isUpdateMode ? this.policyCreationService.updatePolicy(this.policy).subscribe(function (t) {
e.isSaved = !0, s.HVLoggingService.info(e.policy.policyNumber + " updated", "PolicyCreationComponent")
}, function (t) {
e.hasError = !0, e.errorMessage = t.message, s.HVLoggingService.info(e.policy.policyNumber + " ERROR 409 - Updating not possible - policy not existing.", "PolicyCreationComponent")
}) : this.policyCreationService.savePolicy(this.policy).subscribe(function (t) {
e.isSaved = !0, s.HVLoggingService.info(e.policy.policyNumber + " created", "PolicyCreationComponent")
}, function (t) {
e.hasError = !0, e.errorMessage = t.message, s.HVLoggingService.info(e.policy.policyNumber + " ERROR 409 - Saving not possible - policy allready existing.", "PolicyCreationComponent")
})
}, Object.defineProperty(e.prototype, "dialogMessage", {
get: function () {
return this.hasError ? "409" == this.errorMessage && this.isUpdateMode ? "Dieser Rahmenvertrag existiert nicht. Bitte prüfen Sie die Angaben." : "409" != this.errorMessage || this.isUpdateMode ? "Es ist ein unerwarteter Fehler aufgetreten. Bitte versuchen Sie es später erneut oder kontaktieren Sie den User-Help-Desk." : "Dieser Rahmenvertrag existiert schon. Bitte nutzen Sie die Übersicht und Bearbeiten-Funktion für Änderungen an diesem Rahmenvertrag." : "Der Rahmenvertrag wurde erfolgreich gespeichert!"
}, enumerable: !0, configurable: !0
}), e.prototype.handleDialog = function () {
this.hasError && (this.hasError = !1), this.isSaved = !1
}, e = __decorate([i.Component({
selector: "policy-creation",
template: n("./src/app/administration/policy-administration/policy-creation.component.html"),
providers: [r.PolicyCreationService]
}), __metadata("design:paramtypes", ["function" == typeof(t = "undefined" != typeof m.ValidationMessagesService && m.ValidationMessagesService) && t || Object, "function" == typeof(p = "undefined" != typeof r.PolicyCreationService && r.PolicyCreationService) && p || Object, "function" == typeof(h = "undefined" != typeof u.PoliciesService && u.PoliciesService) && h || Object, "function" == typeof(v = "undefined" != typeof o.UserSessionService && o.UserSessionService) && v || Object, "function" == typeof(b = "undefined" != typeof l.FormBuilder && l.FormBuilder) && b || Object, "function" == typeof(g = "undefined" != typeof a.ActivatedRoute && a.ActivatedRoute) && g || Object])], e);
var t, p, h, v, b, g
}();
t.PolicyCreationComponent = p
}, "./src/app/administration/policy-administration/policy-overview.component.html": function (e, t) {
e.exports = '<div class="container-fluid">\r\n <hv-spinner [isRunning]="isLoading"></hv-spinner>\r\n\r\n <div class="row">\r\n <hv-input class="col-md-6"\r\n label="Suche"\r\n type="text"\r\n #searchInput\r\n (keyup)="search(searchInput.value)">\r\n </hv-input>\r\n </div>\r\n <div *ngIf="!isLoading" class="row">\r\n <div class="col-md-12">\r\n <span class=" ux-h-typography--normal-xxs" style="float:right">{{firstIndexOfPage}} bis {{lastIndexOfPage}} von\r\n {{totalPoliciesCount}} Ergebnissen</span>\r\n </div>\r\n </div>\r\n <!-- Result List -->\r\n <div class="row">\r\n <table class="table ux-m-table" id="certificate_list">\r\n <tbody>\r\n <tr class="ux-m-table__row">\r\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Rahmenvertrag\r\n </th>\r\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Details</th>\r\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Gültigkeit</th>\r\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Gültig ab</th>\r\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Bearbeiten</th>\r\n </tr>\r\n\r\n <tr *ngFor="let policy of policies; let i = index" class="ux-m-table__row">\r\n <td\r\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed"\r\n [innerHTML]="policy.policyNumber">\r\n <!--| highlight : searcher.value-->\r\n </td>\r\n <td\r\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\r\n <info-button infoText="Policen-Maximum: {{policy.policyMaxSum | prettyPrintGermanInteger}} "></info-button>\r\n </td>\r\n <td\r\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\r\n {{policy.contractValid === true ? \'Aktiv\':\'Inaktiv\'}}\r\n </td>\r\n <td\r\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\r\n {{policy.activationDate |date: \'dd.MM.yyyy\'}}\r\n </td>\r\n <td\r\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\r\n <span style="cursor: pointer;" (click)="editPolicy(policy.policyNumber)">\r\n [EDIT]\r\n </span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n <div class="ux-h-spacer ux-h-spacer--xxs"></div>\r\n <div *ngIf="!isLoading" class="row">\r\n <div class="col-md-12">\r\n <span class=" ux-h-typography--normal-xxs" style="float:right">{{firstIndexOfPage}} bis {{lastIndexOfPage}} von\r\n {{totalPoliciesCount}} Ergebnissen</span>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf="!isLoading && numberOfPages > 1" class="row">\r\n <div class="col-md-12">\r\n <hv-carousel [numberOfPages]="numberOfPages"\r\n [selectedPageIndex]="selectedPageIndex"\r\n (selectedPageIndexChange)="changePage($event)"></hv-carousel>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf="noResults && !isLoading" class="row">\r\n <div class="col-md-12" style="text-align: center!important;">\r\n <span>Ihre Suche ergab keine Treffer. Bitte überprüfen Sie die Suchkriterien.</span>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n\r\n'
}, "./src/app/administration/policy-administration/policy-overview.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./node_modules/rxjs/Rx.js"), s = n("./src/app/services/policies.service.ts"), o = n("./node_modules/@angular/router/index.js"), a = function () {
function e(e, t, n) {
var i = this;
this.policiesService = e, this.route = t, this.router = n, this.defaultPolicies = [], this.searchTermStream = new r.Subject, this.numberOfPages = 1, this.selectedPageIndex = 0, this.policiesPerPage = 0, this.totalPoliciesCount = 0, this.isLoading = !0, this.noResults = !1, this.firstIndexOfPage = 0, this.lastIndexOfPage = 0, this.pageIndexStream = new r.Subject, this.policies = [], this.hasError = !1, this.didSucceed = !1, this.searchTermStream.debounceTime(400).distinctUntilChanged().subscribe(function (e) {
i.searchPolicies(e, 1), i.searchTerm = e
}, function (e) {
return i.hasError = !0
})
}
return e.prototype.changePage = function (e) {
this.pageIndexStream.next(e), this.isLoading = !0, this.searchPolicies(this.searchTerm, this.selectedPageIndex + 1)
}, e.prototype.search = function (e) {
this.searchTermStream.next(e)
}, e.prototype.ngOnInit = function () {
this.searchPolicies("", 1)
}, e.prototype.searchPolicies = function (e, t) {
var n = this;
this.isLoading = !0, this.policiesService.searchPolicies(e, t).subscribe(function (e) {
n.numberOfPages = e.numberOfPages, n.totalPoliciesCount = e.totalResults, n.policiesPerPage = e.resultsPerPage, n.policies = e.results, n.isLoading = !1, n.firstIndexOfPage = n.selectedPageIndex * n.policiesPerPage + (n.totalPoliciesCount ? 1 : 0), n.totalPoliciesCount ? (n.lastIndexOfPage = n.firstIndexOfPage + n.policies.length - 1, n.noResults = !1) : (n.lastIndexOfPage = 0, n.noResults = !0)
}, function (e) {
n.isLoading = !1, n.showErrorDialog()
})
}, e.prototype.editPolicy = function (e) {
var t = this;
this.policiesService.loadPolicy(e).subscribe(function (n) {
t.router.navigate(["../edit-policy", {policyNumber: e}], {relativeTo: t.route}), t.policiesService.currentlyLoadedPolicy = n
})
}, e.prototype.showErrorDialog = function () {
this.hasError = !0, this.dialogMessage = "Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später noch einmal."
}, e.prototype.handleDialog = function () {
this.hasError && (this.hasError = !1)
}, e = __decorate([i.Component({
selector: "policy-overview",
template: n("./src/app/administration/policy-administration/policy-overview.component.html"),
providers: []
}), __metadata("design:paramtypes", ["function" == typeof(t = "undefined" != typeof s.PoliciesService && s.PoliciesService) && t || Object, "function" == typeof(a = "undefined" != typeof o.ActivatedRoute && o.ActivatedRoute) && a || Object, "function" == typeof(l = "undefined" != typeof o.Router && o.Router) && l || Object])], e);
var t, a, l
}();
t.PolicyOverviewComponent = a
}, "./src/app/administration/user-administration/user-creation.component.html": function (e, t) {
e.exports = '<div class="container">\n <div class="row">\n\n <div class="col-xs-6">\n <div class="row">\n <div class="col-xs-8">\n <hv-input label="Benutzerkennung"\n [value]="userId"\n type="text"\n [hasError]="false"\n errorMessage="Fehler"\n [disabled]="true">\n </hv-input>\n </div>\n </div>\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n <div class="row">\n <div class="col-xs-8">\n <hv-input label="Vorname*"\n [(ngModel)]="user.firstName"\n [formControl]="userForm.get(\'firstName\')"\n [hasError]="!userForm.get(\'firstName\').valid && (!userForm.get(\'firstName\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingFirstName">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-8">\n <hv-input label="Nachname*"\n [(ngModel)]="user.name"\n [formControl]="userForm.get(\'lastName\')"\n [hasError]="!userForm.get(\'lastName\').valid && (!userForm.get(\'lastName\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingLastName">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-8">\n <hv-input label="Firma*"\n [(ngModel)]="user.company"\n [formControl]="userForm.get(\'company\')"\n [hasError]="!userForm.get(\'company\').valid && (!userForm.get(\'company\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingCompany">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-6">\n <hv-input label="Straße*"\n [(ngModel)]="user.street"\n [formControl]="userForm.get(\'address\').get(\'street\')"\n [hasError]="!userForm.get(\'address\').get(\'street\').valid && (!userForm.get(\'address\').get(\'street\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingStreet">\n </hv-input>\n </div>\n <div class="col-xs-2">\n <hv-input label="Nr.*"\n [(ngModel)]="user.postbox"\n [formControl]="userForm.get(\'address\').get(\'postbox\')"\n [hasError]="!userForm.get(\'address\').get(\'postbox\').valid && (!userForm.get(\'address\').get(\'postbox\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingPostbox">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-3">\n <hv-input label="Plz*"\n [(ngModel)]="user.zip"\n [formControl]="userForm.get(\'address\').get(\'zip\')"\n [hasError]="!userForm.get(\'address\').get(\'zip\').valid && (!userForm.get(\'address\').get(\'zip\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingZip">\n </hv-input>\n </div>\n <div class="col-xs-5">\n <hv-input label="Ort*"\n [(ngModel)]="user.town"\n [formControl]="userForm.get(\'address\').get(\'town\')"\n [hasError]="!userForm.get(\'address\').get(\'town\').valid && (!userForm.get(\'address\').get(\'town\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingTown">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-8">\n <hv-input type="email"\n label="E-Mail-Adresse*"\n [(ngModel)]="user.email"\n [formControl]="userForm.get(\'eMail\')"\n [hasError]="!userForm.get(\'eMail\').valid && (!userForm.get(\'eMail\').untouched || formSubmitted)"\n [errorMessage]="validationService.getErrorMessage(userForm.get(\'eMail\').errors)">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-8">\n <hv-input label="Telefon"\n [formControl]="userForm.get(\'phone\')"\n [(ngModel)]="user.phone"\n [hasError]="!userForm.get(\'phone\').valid && (!userForm.get(\'phone\').untouched || formSubmitted)"\n [errorMessage]="errorMessages.user.missingPhone">\n </hv-input>\n </div>\n </div>\n\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n <div class="row">\n <div class="col-xs-6">\n <button (click)="submitUser()"\n class="ux-a-button ux-a-button--wisteria">\n <span class="ux-a-button__text">Benutzer erstellen</span>\n </button>\n </div>\n </div>\n </div>\n <div class="col-xs-6">\n <div class="row">\n <div class="col-xs-8">\n <div class="ux-h-spacer ux-h-spacer--s"></div>\n <p class=" ux-h-typography--bold-s ux-h-typography-spacer--s">Rahmenverträge</p>\n <ul class="ux-m-list">\n <li *ngFor="let policyNo of selectedPolicies;let i = index"\n class="ux-m-list__item ux-m-list__item--none ux-h-typography--italic-s ux-state-m-list__item--xs">\n <span class="ux-h-typography--normal-s"\n style="margin-right:10px">{{i+1}}.\n </span> {{policyNo}}\n <a (click)="removePolicy(i)"\n style="cursor: pointer; margin-left: 10px"\n class="ux-a-link ux-a-link--color-oslo-gray">Entfernen</a>\n </li>\n </ul>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-8">\n <div *ngIf="selectedPolicies.length > 0" class="ux-h-spacer ux-h-spacer--s"></div>\n <hv-dropdown label="Hinzufügen"\n [options]="policyNumbers"\n [(ngModel)]="currentlySelectedPolicy"\n (ngModelChange)="addPolicy()">\n </hv-dropdown>\n </div>\n </div>\n <div class="row">\n <div class="col-xs-8">\n <div class="ux-h-spacer ux-h-spacer--xs"></div>\n <hv-checkbox label="Benutzer sperren"\n inline="false">\n </hv-checkbox>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<hv-dialog [show]="showSuccessDialog"\n message="Der Benutzer mit der Kennung \'{{userId}}\' wurde erfolgreich erstellt!"\n [buttons]="dialogSuccessButtons"\n (buttonClicked)="handleDialog($event)">\n\n</hv-dialog>\n\n';
}, "./src/app/administration/user-administration/user-creation.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./src/app/model/policy/trw-policy.ts"), s = n("./src/app/model/user/trw-user.ts"), o = n("./src/app/services/user-creation.service.ts"), a = n("./node_modules/@angular/forms/index.js"), l = n("./src/app/common/messages/messages.ts"), c = n("./src/app/common/button-data.ts"), d = n("./src/app/services/user-session.service.ts"), u = n("./src/app/common/hv-dropdown/select-option.ts"), m = n("./src/app/common/validators/custom-validators.ts"), p = n("./src/app/common/validators/validation-messages.service.ts"), h = function () {
function e(e, t, n, i) {
this.userSessionService = e, this.userCreationService = t, this.fb = n, this.validationService = i, this.policyNumbers = [], this.selectedPolicies = [], this.errorMessages = l.Messages.errorMessages, this.formSubmitted = !1, this.userId = "Wird vom System zugewiesen", this.user = new s.TRWUser, this.dialogSuccessButtons = [], this.showSuccessDialog = !1, this.user.userId = "TW01"
}
return e.prototype.ngOnInit = function () {
var e = this;
this.createForm(), this.dialogSuccessButtons.push(new c.ButtonData("button", "btn_ok", "Ok", "#")), this.userSessionService.getUserDetails().subscribe(function (t) {
t.policies.forEach(function (t) {
e.policyNumbers.push(new u.SelectOption(t.policyNumber, t.policyNumber))
})
})
}, e.prototype.createForm = function () {
this.userForm = this.fb.group({
firstName: ["", a.Validators.required],
lastName: ["", a.Validators.required],
company: ["", a.Validators.required],
address: this.fb.group({
street: ["", a.Validators.required],
postbox: ["", [a.Validators.required]],
zip: ["", [a.Validators.required, a.Validators.pattern("[0-9]{5}")]],
town: ["", a.Validators.required]
}),
eMail: ["", [m.CustomValidators.notEmpty(l.Messages.errorMessages.user.missingEMail), m.CustomValidators.eMail(l.Messages.errorMessages.user.invalidEMail)]],
phone: ["", [a.Validators.required, m.CustomValidators.phone(l.Messages.errorMessages.user.invalidPhone)]],
disabled: [""]
})
}, e.prototype.addPolicy = function () {
var e = this, t = this.policyNumbers.filter(function (t) {
return t.value == e.currentlySelectedPolicy
})[0];
t && (this.selectedPolicies.push(this.currentlySelectedPolicy), this.policyNumbers.splice(this.policyNumbers.indexOf(t), 1), this.currentlySelectedPolicy = null)
}, e.prototype.removePolicy = function (e) {
var t = this.selectedPolicies[e];
this.policyNumbers.push(new u.SelectOption(t, t)), this.selectedPolicies.splice(e, 1), this.currentlySelectedPolicy = null
}, e.prototype.submitUser = function () {
var e = this;
this.formSubmitted = !0, this.userForm.valid && (this.user.policies = [], this.selectedPolicies.forEach(function (t) {
e.user.policies.push(new r.TRWPolicy(t, 0))
}), this.userCreationService.createUser(this.user).subscribe(function (t) {
e.showSuccessDialog = !0, e.formSubmitted = !1, e.userId = t.userId
}, function (e) {
return console.log("ERROR: " + e)
}))
}, e.prototype.handleDialog = function (e) {
switch (e) {
case"btn_ok":
this.showSuccessDialog = !1
}
}, e = __decorate([i.Component({
selector: "user-creation",
template: n("./src/app/administration/user-administration/user-creation.component.html"),
providers: []
}), __metadata("design:paramtypes", ["function" == typeof(t = "undefined" != typeof d.UserSessionService && d.UserSessionService) && t || Object, "function" == typeof(h = "undefined" != typeof o.UserCreationService && o.UserCreationService) && h || Object, "function" == typeof(v = "undefined" != typeof a.FormBuilder && a.FormBuilder) && v || Object, "function" == typeof(b = "undefined" != typeof p.ValidationMessagesService && p.ValidationMessagesService) && b || Object])], e);
var t, h, v, b
}();
t.UserCreationComponent = h
}, "./src/app/administration/user-administration/user-overview.component.html": function (e, t) {
e.exports = '<div class="container-fluid">\n\n <!-- Result List -->\n <div class="row">\n <div class="col-md-6">\n <hv-input label="Suche">\n </hv-input>\n </div>\n </div>\n\n <div class="row">\n <div class="col-xs-12">\n <table class="table ux-m-table" id="certificate_list">\n <tbody>\n <tr class="ux-m-table__row">\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Benutzer</th>\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Kennung</th>\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Details</th>\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Status</th>\n <th class="ux-m-table__cell ux-m-table__cell--style-bold ux-m-table__cell--border-bottom-solid">Bearbeiten\n </th>\n </tr>\n\n <tr class="ux-m-table__row">\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n Blaue Radler Co KG\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n TW47112\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <info-button infoText="Rahmenverträge: ....."></info-button>\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n aktiv\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <a routerLink="/user-creation" routerLinkActive="active" class="ux-a-tooltip__icon"></a></td>\n </tr>\n <tr class="ux-m-table__row">\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n Rote Radler Co KG\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n TW58963\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <info-button infoText="Rahmenverträge: ....."></info-button>\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n aktiv\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <a routerLink="/user-creation" routerLinkActive="active" class="ux-a-tooltip__icon"></a></td>\n </tr>\n <tr class="ux-m-table__row">\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n DHL\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n TW94674\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <info-button infoText="Rahmenverträge: ....."></info-button>\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n aktiv\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <a routerLink="/user-creation" routerLinkActive="active" class="ux-a-tooltip__icon"></a></td>\n </tr>\n <tr class="ux-m-table__row">\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n Blaue Radler Co KG\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n TW235322\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <info-button infoText="Rahmenverträge: ....."></info-button>\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n aktiv\n </td>\n <td\n class="ux-h-typography--normal-xs ux-m-table__cell ux-m-table__cell--style-normal ux-m-table__cell--border-bottom-dashed">\n <a routerLink="/user-creation" routerLinkActive="active" class="ux-a-tooltip__icon"></a></td>\n </tr>\n\n </tbody>\n </table>\n </div>\n\n </div>\n</div>\n'
}, "./src/app/administration/user-administration/user-overview.component.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = function () {
function e() {
}
return e = __decorate([i.Component({
selector: "user-overview",
template: n("./src/app/administration/user-administration/user-overview.component.html"),
providers: []
}), __metadata("design:paramtypes", [])], e)
}();
t.UserOverviewComponent = r
}, "./src/app/model/policy/trw-policy.ts": function (e, t) {
"use strict";
var n = function () {
function e(e, t) {
this.policyNumber = e, this.policyMaxSum = t
}
return e
}();
t.TRWPolicy = n
}, "./src/app/model/policy/trw-policycreation.ts": function (e, t) {
"use strict";
var n = function () {
function e() {
}
return e
}();
t.TrwPolicyCreation = n
}, "./src/app/model/user/trw-user.ts": function (e, t) {
"use strict";
var n = function () {
function e() {
this.policies = []
}
return e
}();
t.TRWUser = n
}, "./src/app/services/policy-creation.service.ts": function (e, t, n) {
"use strict";
var i = n("./node_modules/@angular/core/index.js"), r = n("./node_modules/@angular/http/index.js"), s = n("./node_modules/rxjs/Rx.js"), o = n("./src/app/services/hv-http-util.ts"), a = n("./src/app/model/policy/trw-policycreation.ts"), l = n("./src/app/common/core/hv-logging.service.ts"), c = function () {
function e(e) {
this.http = e, this.apiEndpoint = "/de/transportweb/api/policies", this.options = {headers: new r.Headers({"Content-Type": "application/json"})}
}
return e.prototype.createNewPolicy = function () {
var e = new a.TrwPolicyCreation;
return e.contractValid = !0, e
}, e.prototype.savePolicy = function (e) {
var t = new r.Headers({"Content-Type": "application/json"}), n = JSON.stringify(e);
l.HVLoggingService.info("Before post: " + n, "PolicyCreationService");
var i = this.http.post(this.apiEndpoint + "/savePolicy", n, {headers: t}).map(function (e) {
return o.HVHttpUtil.jsonWhenStatus200(e)
}).catch(function (e) {
return s.Observable.throw(new Error(e.status))
});
return i
}, e.prototype.updatePolicy = function (e) {
var t = JSON.stringify(e);
l.HVLoggingService.info("Before PATCH/Update: " + t, "PolicyCreationService");
var n = this.http.post(this.apiEndpoint + "/updatePolicy", t, this.options).map(function (e) {
return o.HVHttpUtil.jsonWhenStatus200(e)
}).catch(function (e) {
return s.Observable.throw(new Error(e.status))
});
return n
}, e = __decorate([i.Injectable(), __metadata("design:paramtypes", ["function" == typeof(t = "undefined" != typeof r.Http && r.Http) && t || Object])], e);
var t
}();
t.PolicyCreationService = c
}
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc