monkey-front-core 0.0.488 → 0.0.489

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,27 +1,26 @@
1
- import { Pipe } from '@angular/core';
2
- import { MonkeyEcxCookieStorageService } from '../services/storage/monkeyecx-cookie-storage.service';
1
+ import { DEFAULT_CURRENCY_CODE, Inject, Pipe } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  import * as i1 from "@angular/common";
5
4
  export class MonkeyEcxFormatCurrencyPipe {
6
- constructor(injector, currencyPipe) {
7
- this.injector = injector;
5
+ constructor(currencyPipe, defaultCurencyCode) {
8
6
  this.currencyPipe = currencyPipe;
7
+ this.defaultCurencyCode = defaultCurencyCode;
9
8
  // not to do
10
9
  }
11
10
  transform(value, symbol = 'symbol') {
12
- const cookieStorageService = this.injector.get(MonkeyEcxCookieStorageService);
13
- const cookie = cookieStorageService.getCookie('monkey-app-locale');
14
- const i18n = JSON.parse(atob(cookie));
15
- const { currency } = i18n;
11
+ const currency = this.defaultCurencyCode.toString();
16
12
  return this.currencyPipe.transform(value, currency, symbol);
17
13
  }
18
14
  }
19
- MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
15
+ MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i1.CurrencyPipe }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
20
16
  MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
21
17
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
22
18
  type: Pipe,
23
19
  args: [{
24
20
  name: 'monkeyecxFormatCurrency'
25
21
  }]
26
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.CurrencyPipe }]; } });
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZvcm1hdC1jdXJyZW5jeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29yZS9waXBlcy9tb25rZXllY3gtZm9ybWF0LWN1cnJlbmN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQTJCLE1BQU0sZUFBZSxDQUFDO0FBRTlELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLHNEQUFzRCxDQUFDOzs7QUFLckcsTUFBTSxPQUFPLDJCQUEyQjtJQUN0QyxZQUFvQixRQUFrQixFQUFVLFlBQTBCO1FBQXRELGFBQVEsR0FBUixRQUFRLENBQVU7UUFBVSxpQkFBWSxHQUFaLFlBQVksQ0FBYztRQUN4RSxZQUFZO0lBQ2QsQ0FBQztJQUVELFNBQVMsQ0FBQyxLQUFVLEVBQUUsTUFBTSxHQUFHLFFBQVE7UUFDckMsTUFBTSxvQkFBb0IsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyw2QkFBNkIsQ0FBQyxDQUFDO1FBQzlFLE1BQU0sTUFBTSxHQUFHLG9CQUFvQixDQUFDLFNBQVMsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO1FBQ25FLE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxL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29raWVTdG9yYWdlU2VydmljZSA9IHRoaXMuaW5qZWN0b3IuZ2V0KE1vbmtleUVjeENvb2tpZVN0b3JhZ2VTZXJ2aWNlKTtcclxuICAgIGNvbnN0IGNvb2tpZSA9IGNvb2tpZVN0b3JhZ2VTZXJ2aWNlLmdldENvb2tpZSgnbW9ua2V5LWFwcC1sb2NhbGUnKTtcclxuICAgIGNvbnN0IGkxOG4gPSBKU09OLnBhcnNlKGF0b2IoY29va2llKSk7XHJcbiAgICBjb25zdCB7IGN1cnJlbmN5IH0gPSBpMThuO1xyXG4gICAgcmV0dXJuIHRoaXMuY3VycmVuY3lQaXBlLnRyYW5zZm9ybSh2YWx1ZSwgY3VycmVuY3ksIHN5bWJvbCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
22
+ }], ctorParameters: function () { return [{ type: i1.CurrencyPipe }, { type: i0.InjectionToken, decorators: [{
23
+ type: Inject,
24
+ args: [DEFAULT_CURRENCY_CODE]
25
+ }] }]; } });
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZvcm1hdC1jdXJyZW5jeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29yZS9waXBlcy9tb25rZXllY3gtZm9ybWF0LWN1cnJlbmN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLEVBQWtCLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7OztBQUtuRyxNQUFNLE9BQU8sMkJBQTJCO0lBQ3RDLFlBQ1UsWUFBMEIsRUFDSyxrQkFBMEM7UUFEekUsaUJBQVksR0FBWixZQUFZLENBQWM7UUFDSyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQXdCO1FBRWpGLFlBQV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Fuc2Zvcm0odmFsdWU6IGFueSwgc3ltYm9sID0gJ3N5bWJvbCcpIHtcbiAgICBjb25zdCBjdXJyZW5jeSA9IHRoaXMuZGVmYXVsdEN1cmVuY3lDb2RlLnRvU3RyaW5nKCk7XG4gICAgcmV0dXJuIHRoaXMuY3VycmVuY3lQaXBlLnRyYW5zZm9ybSh2YWx1ZSwgY3VycmVuY3ksIHN5bWJvbCk7XG4gIH1cbn1cbiJdfQ==
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, InjectionToken, Inject, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
2
+ import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, DEFAULT_CURRENCY_CODE, Inject, InjectionToken, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
3
3
  import * as i1 from 'monkey-style-guide';
4
4
  import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
5
5
  import * as i2 from '@angular/common';
@@ -12,12 +12,11 @@ import { throwError, BehaviorSubject, Subscription, interval, concat, Subject, o
12
12
  import * as i1$2 from '@angular/common/http';
13
13
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
14
14
  import * as i2$1 from '@angular/platform-browser';
15
- import * as i1$3 from 'ngx-cookie-service';
16
15
  import * as i2$2 from '@angular/router';
17
16
  import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel, Router } from '@angular/router';
18
17
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
19
18
  import { TemplatePortal } from '@angular/cdk/portal';
20
- import * as i1$4 from '@angular/cdk/overlay';
19
+ import * as i1$3 from '@angular/cdk/overlay';
21
20
  import { OverlayModule } from '@angular/cdk/overlay';
22
21
  import { __awaiter, __decorate } from 'tslib';
23
22
  import * as i2$3 from '@ngrx/store';
@@ -27,9 +26,10 @@ import esCL from '@angular/common/locales/es-CL';
27
26
  import esMX from '@angular/common/locales/es-MX';
28
27
  import ptBr from '@angular/common/locales/pt';
29
28
  import { datadogRum } from '@datadog/browser-rum';
30
- import * as i1$5 from '@angular/service-worker';
29
+ import * as i1$4 from '@angular/service-worker';
31
30
  import { ServiceWorkerModule } from '@angular/service-worker';
32
31
  import { initialize } from 'launchdarkly-js-client-sdk';
32
+ import * as i1$5 from 'ngx-cookie-service';
33
33
  import { parseUrl } from 'query-string';
34
34
 
35
35
  class AlertsComponent {
@@ -732,57 +732,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
732
732
  }]
733
733
  }], ctorParameters: function () { return []; } });
734
734
 
735
- class MonkeyEcxCookieStorageService {
736
- constructor(cookieService) {
737
- this.cookieService = cookieService;
738
- // not to do
739
- }
740
- setCookie(name, value, environment) {
741
- this.removeCookie(name, environment);
742
- const { urlDomain } = environment;
743
- const handledDomain = urlDomain ? `.${urlDomain}` : '';
744
- this.cookieService.set(name, value, undefined, '/', handledDomain, true, 'None');
745
- }
746
- getCookie(name) {
747
- return this.cookieService.get(name);
748
- }
749
- removeCookie(name, environment) {
750
- const { urlDomain } = environment;
751
- const handledDomain = urlDomain ? `.${urlDomain}` : '';
752
- this.cookieService.delete(name, '/', handledDomain, true, 'None');
753
- }
754
- }
755
- MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$3.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
756
- MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
757
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
758
- type: Injectable,
759
- args: [{
760
- providedIn: 'root'
761
- }]
762
- }], ctorParameters: function () { return [{ type: i1$3.CookieService }]; } });
763
-
764
735
  class MonkeyEcxFormatCurrencyPipe {
765
- constructor(injector, currencyPipe) {
766
- this.injector = injector;
736
+ constructor(currencyPipe, defaultCurencyCode) {
767
737
  this.currencyPipe = currencyPipe;
738
+ this.defaultCurencyCode = defaultCurencyCode;
768
739
  // not to do
769
740
  }
770
741
  transform(value, symbol = 'symbol') {
771
- const cookieStorageService = this.injector.get(MonkeyEcxCookieStorageService);
772
- const cookie = cookieStorageService.getCookie('monkey-app-locale');
773
- const i18n = JSON.parse(atob(cookie));
774
- const { currency } = i18n;
742
+ const currency = this.defaultCurencyCode.toString();
775
743
  return this.currencyPipe.transform(value, currency, symbol);
776
744
  }
777
745
  }
778
- MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
746
+ MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i2.CurrencyPipe }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
779
747
  MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
780
748
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
781
749
  type: Pipe,
782
750
  args: [{
783
751
  name: 'monkeyecxFormatCurrency'
784
752
  }]
785
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
753
+ }], ctorParameters: function () {
754
+ return [{ type: i2.CurrencyPipe }, { type: i0.InjectionToken, decorators: [{
755
+ type: Inject,
756
+ args: [DEFAULT_CURRENCY_CODE]
757
+ }] }];
758
+ } });
786
759
 
787
760
  const MECX_TIMEZONEOFFSET = new InjectionToken('');
788
761
  const MECX_DATE_FORMAT = new InjectionToken('');
@@ -2559,7 +2532,7 @@ class MonkeyEcxPopoverDirective {
2559
2532
  this.eventsSubs.unsubscribe();
2560
2533
  }
2561
2534
  }
2562
- MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: i2$2.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2535
+ MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.Overlay }, { token: i1$3.OverlayPositionBuilder }, { token: i2$2.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2563
2536
  MonkeyEcxPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxPopoverDirective, selector: "[monkeyecxPopover]", inputs: { popover: ["monkeyecxPopover", "popover"], closed: ["monkeyecxPopoverClosed", "closed"], target: ["monkeyecxPopoverTarget", "target"], minwidth: ["monkeyecxPopoverMinwidth", "minwidth"], backdrop: ["monkeyecxPopoverBackdrop", "backdrop"], watch: ["monkeyecxPopoverWatch", "watch"], dir: ["monkeyecxPopoverDir", "dir"], contextmenu: ["monkeyecxPopoverContextmenu", "contextmenu"], height: ["monkeyecxPopoverHeight", "height"] }, ngImport: i0 });
2564
2537
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
2565
2538
  type: Directive,
@@ -2567,7 +2540,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
2567
2540
  selector: '[monkeyecxPopover]'
2568
2541
  }]
2569
2542
  }], ctorParameters: function () {
2570
- return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: i2$2.Router }, { type: undefined, decorators: [{
2543
+ return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.Overlay }, { type: i1$3.OverlayPositionBuilder }, { type: i2$2.Router }, { type: undefined, decorators: [{
2571
2544
  type: Inject,
2572
2545
  args: [POPOVER_OPTIONS]
2573
2546
  }, {
@@ -3693,14 +3666,14 @@ class MonkeyEcxServiceWorkerConfigService {
3693
3666
  this.verify();
3694
3667
  }
3695
3668
  }
3696
- MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$5.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
3669
+ MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$4.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
3697
3670
  MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
3698
3671
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
3699
3672
  type: Injectable,
3700
3673
  args: [{
3701
3674
  providedIn: 'root'
3702
3675
  }]
3703
- }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$5.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
3676
+ }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$4.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
3704
3677
 
3705
3678
  /* eslint-disable no-console */
3706
3679
  class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
@@ -4241,6 +4214,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4241
4214
  }]
4242
4215
  }], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }, { type: i2$3.Store }]; } });
4243
4216
 
4217
+ class MonkeyEcxCookieStorageService {
4218
+ constructor(cookieService) {
4219
+ this.cookieService = cookieService;
4220
+ // not to do
4221
+ }
4222
+ setCookie(name, value, environment) {
4223
+ this.removeCookie(name, environment);
4224
+ const { urlDomain } = environment;
4225
+ const handledDomain = urlDomain ? `.${urlDomain}` : '';
4226
+ this.cookieService.set(name, value, undefined, '/', handledDomain, true, 'None');
4227
+ }
4228
+ getCookie(name) {
4229
+ return this.cookieService.get(name);
4230
+ }
4231
+ removeCookie(name, environment) {
4232
+ const { urlDomain } = environment;
4233
+ const handledDomain = urlDomain ? `.${urlDomain}` : '';
4234
+ this.cookieService.delete(name, '/', handledDomain, true, 'None');
4235
+ }
4236
+ }
4237
+ MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$5.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
4238
+ MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
4239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
4240
+ type: Injectable,
4241
+ args: [{
4242
+ providedIn: 'root'
4243
+ }]
4244
+ }], ctorParameters: function () { return [{ type: i1$5.CookieService }]; } });
4245
+
4244
4246
  class MonkeyEcxSecurityDirective {
4245
4247
  constructor(elementRef, tokenStorageService, cdr) {
4246
4248
  this.elementRef = elementRef;
@@ -6571,7 +6573,7 @@ class MonkeyFrontCoreModule {
6571
6573
  }
6572
6574
  MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6573
6575
  MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
6574
- HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule, i2$3.StoreFeatureModule, VersionChangedModule,
6576
+ HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$4.ServiceWorkerModule, ClosedToMaintenanceModule, i2$3.StoreFeatureModule, VersionChangedModule,
6575
6577
  AlertsModule,
6576
6578
  CurrencyConfigModule] });
6577
6579
  MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [