@fluxhub/fluxhub-lib 1.0.301 → 1.0.302

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import { SimpleCrypt } from 'ngx-simple-crypt';
2
+ import { AES, enc } from 'crypto-js';
2
3
  import 'clipboard';
3
4
  import 'prismjs';
4
5
  import 'prismjs/plugins/toolbar/prism-toolbar';
@@ -34,7 +35,7 @@ import { DomSanitizer } from '@angular/platform-browser';
34
35
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
35
36
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
36
37
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Directive, Component, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
+ import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
39
  import { Http } from '@angular/http';
39
40
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
41
  import { ToastrService } from 'ngx-toastr';
@@ -1265,16 +1266,38 @@ var UtilityService = /** @class */ (function () {
1265
1266
  /** @type {?} */
1266
1267
  var k = 1;
1267
1268
  /** @type {?} */
1268
- var enc = "";
1269
+ var enc$$1 = "";
1269
1270
  for (var i = 0; i < s.length; i++) {
1270
1271
  /** @type {?} */
1271
1272
  var a = s.charCodeAt(i);
1272
1273
  /** @type {?} */
1273
1274
  var b = a ^ k;
1274
1275
  // console.log(b + ' ' + String.fromCharCode(b));
1275
- enc = enc + String.fromCharCode(b);
1276
+ enc$$1 = enc$$1 + String.fromCharCode(b);
1276
1277
  }
1277
- return enc;
1278
+ return enc$$1;
1279
+ };
1280
+ /**
1281
+ * @param {?} s
1282
+ * @return {?}
1283
+ */
1284
+ UtilityService.prototype.encrypt_v3 = /**
1285
+ * @param {?} s
1286
+ * @return {?}
1287
+ */
1288
+ function (s) {
1289
+ return AES.encrypt(s, "}?fhg7SP&^N4").toString();
1290
+ };
1291
+ /**
1292
+ * @param {?} s
1293
+ * @return {?}
1294
+ */
1295
+ UtilityService.prototype.decrypt_v3 = /**
1296
+ * @param {?} s
1297
+ * @return {?}
1298
+ */
1299
+ function (s) {
1300
+ return AES.decrypt(s, "}?fhg7SP&^N4").toString(enc.Utf8);
1278
1301
  };
1279
1302
  /**
1280
1303
  * @param {?} s
@@ -1288,15 +1311,15 @@ var UtilityService = /** @class */ (function () {
1288
1311
  /** @type {?} */
1289
1312
  var k = 1;
1290
1313
  /** @type {?} */
1291
- var enc = "";
1314
+ var enc$$1 = "";
1292
1315
  for (var i = 0; i < s.length; i++) {
1293
1316
  /** @type {?} */
1294
1317
  var a = s.charCodeAt(i);
1295
1318
  /** @type {?} */
1296
1319
  var b = a ^ k;
1297
- enc = enc + String.fromCharCode(b);
1320
+ enc$$1 = enc$$1 + String.fromCharCode(b);
1298
1321
  }
1299
- return enc;
1322
+ return enc$$1;
1300
1323
  };
1301
1324
  /**
1302
1325
  * @param {?} s