@esolve/ng-esolve-connect 0.10.2 → 0.10.3

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,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Inject, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import * as i1$1 from '@angular/common/http';
4
+ import * as i1$2 from '@angular/common/http';
5
5
  import { HttpParams, HTTP_INTERCEPTORS, HttpClientModule, HttpErrorResponse, HttpHeaders } from '@angular/common/http';
6
- import * as i4 from 'ngx-cookie-service';
6
+ import * as i1 from 'ngx-cookie-service';
7
7
  import { CookieService } from 'ngx-cookie-service';
8
8
  import { BehaviorSubject, throwError, iif, of } from 'rxjs';
9
- import * as i1 from '@angular/platform-browser';
9
+ import * as i1$1 from '@angular/platform-browser';
10
10
  import { tap, catchError, map, switchMap } from 'rxjs/operators';
11
11
 
12
12
  const ESOLVE_CONNECT_CONFIG = new InjectionToken('esolve.connect.config');
@@ -46,8 +46,9 @@ class EsolveSession {
46
46
  }
47
47
 
48
48
  class EsolveSessionService {
49
- constructor(config) {
49
+ constructor(config, cookieService) {
50
50
  this.config = config;
51
+ this.cookieService = cookieService;
51
52
  this.storage_key = 'ngEslvUserSession';
52
53
  this.setStorageKey();
53
54
  this._session = new BehaviorSubject(new EsolveSession(0, ''));
@@ -72,7 +73,7 @@ class EsolveSessionService {
72
73
  }
73
74
  restore(expirationCallback, invalidSessionCallback) {
74
75
  if (!this.currentSession.valid) {
75
- const stored_session_json = localStorage.getItem(this.storage_key);
76
+ const stored_session_json = this.cookieService.get(this.storage_key);
76
77
  const stored_session = (stored_session_json ? JSON.parse(stored_session_json) : null);
77
78
  if (!stored_session) {
78
79
  invalidSessionCallback();
@@ -86,6 +87,7 @@ class EsolveSessionService {
86
87
  this.startTimer(expirationCallback, expiration_duration);
87
88
  }
88
89
  else {
90
+ this.cookieService.delete(this.storage_key);
89
91
  expirationCallback(loaded_session);
90
92
  }
91
93
  }
@@ -93,21 +95,21 @@ class EsolveSessionService {
93
95
  handleSession(user_id, key, expiry_time, expires, expirationCallback) {
94
96
  const expiration_date = new Date(expiry_time * 1000);
95
97
  const session = new EsolveSession(user_id, key, expiration_date);
96
- localStorage.setItem(this.storage_key, JSON.stringify(session));
98
+ this.cookieService.set(this.storage_key, JSON.stringify(session), expiration_date);
97
99
  this._session.next(session);
98
100
  this.startTimer(expirationCallback, expires * 1000);
99
101
  }
100
102
  handleUpdateSession(user_id, callback) {
101
103
  const current_session = this.currentSession;
102
104
  current_session.updateUser(user_id);
103
- localStorage.setItem(this.storage_key, JSON.stringify(current_session));
105
+ this.cookieService.set(this.storage_key, JSON.stringify(current_session));
104
106
  this._session.next(current_session);
105
107
  if (typeof callback === 'function') {
106
108
  callback();
107
109
  }
108
110
  }
109
111
  }
110
- EsolveSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSessionService, deps: [{ token: ESOLVE_CONNECT_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
112
+ EsolveSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSessionService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
111
113
  EsolveSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSessionService, providedIn: 'root' });
112
114
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSessionService, decorators: [{
113
115
  type: Injectable,
@@ -117,7 +119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
117
119
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
118
120
  type: Inject,
119
121
  args: [ESOLVE_CONNECT_CONFIG]
120
- }] }]; } });
122
+ }] }, { type: i1.CookieService }]; } });
121
123
 
122
124
  class EsolveAuthInterceptorService {
123
125
  constructor(config, session) {
@@ -453,7 +455,7 @@ class EsolveSeoService {
453
455
  this.setPageKeywordsTags(seoInfo.keywords);
454
456
  }
455
457
  }
456
- EsolveSeoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSeoService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1.Title }, { token: i1.Meta }], target: i0.ɵɵFactoryTarget.Injectable });
458
+ EsolveSeoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSeoService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.Title }, { token: i1$1.Meta }], target: i0.ɵɵFactoryTarget.Injectable });
457
459
  EsolveSeoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSeoService, providedIn: 'root' });
458
460
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveSeoService, decorators: [{
459
461
  type: Injectable,
@@ -463,7 +465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
463
465
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
464
466
  type: Inject,
465
467
  args: [ESOLVE_CONNECT_CONFIG]
466
- }] }, { type: i1.Title }, { type: i1.Meta }]; } });
468
+ }] }, { type: i1$1.Title }, { type: i1$1.Meta }]; } });
467
469
 
468
470
  class EsolveAuthService {
469
471
  constructor(config, http, session, errorHandler, cookieService) {
@@ -606,7 +608,7 @@ class EsolveAuthService {
606
608
  return throwError(error);
607
609
  }
608
610
  }
609
- EsolveAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAuthService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: i4.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
611
+ EsolveAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAuthService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
610
612
  EsolveAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAuthService, providedIn: 'root' });
611
613
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAuthService, decorators: [{
612
614
  type: Injectable,
@@ -616,7 +618,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
616
618
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
617
619
  type: Inject,
618
620
  args: [ESOLVE_CONNECT_CONFIG]
619
- }] }, { type: i1$1.HttpClient }, { type: EsolveSessionService }, { type: EsolveErrorHandlerService }, { type: i4.CookieService }]; } });
621
+ }] }, { type: i1$2.HttpClient }, { type: EsolveSessionService }, { type: EsolveErrorHandlerService }, { type: i1.CookieService }]; } });
620
622
 
621
623
  class EsolveAddress {
622
624
  constructor(id, recipient, address_type, pobox, place_name, street_number, street, suburb, city, province, country, postal_code, latitude, longitude) {
@@ -1209,7 +1211,7 @@ class EsolveAccountService {
1209
1211
  }
1210
1212
  }
1211
1213
  }
1212
- EsolveAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAccountService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
1214
+ EsolveAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAccountService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
1213
1215
  EsolveAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAccountService, providedIn: 'root' });
1214
1216
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveAccountService, decorators: [{
1215
1217
  type: Injectable,
@@ -1219,7 +1221,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
1219
1221
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1220
1222
  type: Inject,
1221
1223
  args: [ESOLVE_CONNECT_CONFIG]
1222
- }] }, { type: i1$1.HttpClient }, { type: EsolveSessionService }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
1224
+ }] }, { type: i1$2.HttpClient }, { type: EsolveSessionService }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
1223
1225
 
1224
1226
  class EsolveMediaArticle {
1225
1227
  constructor(identifier, title, article, image_url = '', tags = [], topics = [], seo_title = '', seo_keywords = '', seo_description = '') {
@@ -1327,7 +1329,7 @@ class EsolveMediaService {
1327
1329
  return this.http.get(`${this.config.api_url}/service/get-media.php`, { params });
1328
1330
  }
1329
1331
  }
1330
- EsolveMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMediaService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1332
+ EsolveMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMediaService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1331
1333
  EsolveMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMediaService, providedIn: 'root' });
1332
1334
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMediaService, decorators: [{
1333
1335
  type: Injectable,
@@ -1337,7 +1339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
1337
1339
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1338
1340
  type: Inject,
1339
1341
  args: [ESOLVE_CONNECT_CONFIG]
1340
- }] }, { type: i1$1.HttpClient }]; } });
1342
+ }] }, { type: i1$2.HttpClient }]; } });
1341
1343
 
1342
1344
  class EsolveNewsGroup {
1343
1345
  constructor(id, name, description, sef_name) {
@@ -1469,7 +1471,7 @@ class EsolveNewsService {
1469
1471
  return new EsolveNewsArticle(newsRecord.id, newsRecord.title, newsRecord.sef_title, newsRecord.article, newsRecord.short_description, newsRecord.txdate, newsRecord.active, newsRecord.image, newsRecord.featured, author, newsRecord.seo_page_title, newsRecord.seo_keywords);
1470
1472
  }
1471
1473
  }
1472
- EsolveNewsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveNewsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1474
+ EsolveNewsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveNewsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1473
1475
  EsolveNewsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveNewsService, providedIn: 'root' });
1474
1476
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveNewsService, decorators: [{
1475
1477
  type: Injectable,
@@ -1479,7 +1481,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
1479
1481
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1480
1482
  type: Inject,
1481
1483
  args: [ESOLVE_CONNECT_CONFIG]
1482
- }] }, { type: i1$1.HttpClient }]; } });
1484
+ }] }, { type: i1$2.HttpClient }]; } });
1483
1485
 
1484
1486
  class EsolveBanner {
1485
1487
  constructor(id, banner_display_container, identifier, type, title, article, sort_priority, link, images) {
@@ -1612,7 +1614,7 @@ class EsolveBannerService {
1612
1614
  return banners;
1613
1615
  }
1614
1616
  }
1615
- EsolveBannerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveBannerService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1617
+ EsolveBannerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveBannerService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1616
1618
  EsolveBannerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveBannerService, providedIn: 'root' });
1617
1619
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveBannerService, decorators: [{
1618
1620
  type: Injectable,
@@ -1622,7 +1624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
1622
1624
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1623
1625
  type: Inject,
1624
1626
  args: [ESOLVE_CONNECT_CONFIG]
1625
- }] }, { type: i1$1.HttpClient }]; } });
1627
+ }] }, { type: i1$2.HttpClient }]; } });
1626
1628
 
1627
1629
  class EsolveMenuItem {
1628
1630
  constructor(url, name, target, children = []) {
@@ -1662,7 +1664,7 @@ class EsolveMenuService {
1662
1664
  return menu;
1663
1665
  }
1664
1666
  }
1665
- EsolveMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMenuService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1667
+ EsolveMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMenuService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1666
1668
  EsolveMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMenuService, providedIn: 'root' });
1667
1669
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveMenuService, decorators: [{
1668
1670
  type: Injectable,
@@ -1672,7 +1674,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
1672
1674
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1673
1675
  type: Inject,
1674
1676
  args: [ESOLVE_CONNECT_CONFIG]
1675
- }] }, { type: i1$1.HttpClient }]; } });
1677
+ }] }, { type: i1$2.HttpClient }]; } });
1676
1678
 
1677
1679
  class EsolveTopicService {
1678
1680
  constructor(config, http) {
@@ -1712,7 +1714,7 @@ class EsolveTopicService {
1712
1714
  return topics;
1713
1715
  }
1714
1716
  }
1715
- EsolveTopicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveTopicService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1717
+ EsolveTopicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveTopicService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1716
1718
  EsolveTopicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveTopicService, providedIn: 'root' });
1717
1719
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveTopicService, decorators: [{
1718
1720
  type: Injectable,
@@ -1722,7 +1724,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
1722
1724
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1723
1725
  type: Inject,
1724
1726
  args: [ESOLVE_CONNECT_CONFIG]
1725
- }] }, { type: i1$1.HttpClient }]; } });
1727
+ }] }, { type: i1$2.HttpClient }]; } });
1726
1728
 
1727
1729
  class EsolveStockBadge {
1728
1730
  constructor(id, text, identifier, font_colour, badge_colour, sort_priority) {
@@ -2042,7 +2044,7 @@ class EsolveStockService {
2042
2044
  }));
2043
2045
  }
2044
2046
  }
2045
- EsolveStockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveStockService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2047
+ EsolveStockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveStockService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2046
2048
  EsolveStockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveStockService, providedIn: 'root' });
2047
2049
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveStockService, decorators: [{
2048
2050
  type: Injectable,
@@ -2052,7 +2054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
2052
2054
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2053
2055
  type: Inject,
2054
2056
  args: [ESOLVE_CONNECT_CONFIG]
2055
- }] }, { type: i1$1.HttpClient }]; } });
2057
+ }] }, { type: i1$2.HttpClient }]; } });
2056
2058
 
2057
2059
  class EsolveCategoryTreeItem {
2058
2060
  constructor(type, esolve_id, parent_id, description, sef_description, short_description, sort_priority, active, display_only, image_name, seo_title, seo_keywords, seo_description, children) {
@@ -2207,7 +2209,7 @@ class EsolveCategoryTreeService {
2207
2209
  return null;
2208
2210
  }
2209
2211
  }
2210
- EsolveCategoryTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCategoryTreeService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2212
+ EsolveCategoryTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCategoryTreeService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2211
2213
  EsolveCategoryTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCategoryTreeService, providedIn: 'root' });
2212
2214
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCategoryTreeService, decorators: [{
2213
2215
  type: Injectable,
@@ -2217,7 +2219,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
2217
2219
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2218
2220
  type: Inject,
2219
2221
  args: [ESOLVE_CONNECT_CONFIG]
2220
- }] }, { type: i1$1.HttpClient }]; } });
2222
+ }] }, { type: i1$2.HttpClient }]; } });
2221
2223
 
2222
2224
  class EsolveCheckoutResult extends EsolveResponseResult {
2223
2225
  constructor(response) {
@@ -2484,7 +2486,7 @@ class EsolveCartService {
2484
2486
  return cart_totals;
2485
2487
  }
2486
2488
  }
2487
- EsolveCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCartService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
2489
+ EsolveCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCartService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
2488
2490
  EsolveCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCartService, providedIn: 'root' });
2489
2491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveCartService, decorators: [{
2490
2492
  type: Injectable,
@@ -2494,7 +2496,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
2494
2496
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2495
2497
  type: Inject,
2496
2498
  args: [ESOLVE_CONNECT_CONFIG]
2497
- }] }, { type: i1$1.HttpClient }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
2499
+ }] }, { type: i1$2.HttpClient }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
2498
2500
 
2499
2501
  class EsolveVaultItemResult extends EsolveResponseResult {
2500
2502
  constructor(response) {
@@ -2774,7 +2776,7 @@ class EsolvePaymentService {
2774
2776
  }));
2775
2777
  }
2776
2778
  }
2777
- EsolvePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolvePaymentService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
2779
+ EsolvePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolvePaymentService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
2778
2780
  EsolvePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolvePaymentService, providedIn: 'root' });
2779
2781
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolvePaymentService, decorators: [{
2780
2782
  type: Injectable,
@@ -2784,7 +2786,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
2784
2786
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2785
2787
  type: Inject,
2786
2788
  args: [ESOLVE_CONNECT_CONFIG]
2787
- }] }, { type: i1$1.HttpClient }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
2789
+ }] }, { type: i1$2.HttpClient }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
2788
2790
 
2789
2791
  class EsolveShippingMethod {
2790
2792
  constructor(id, carrier_name, delivery_category, description, location, pricing, link_to_carrier_website, days_to_deliver, shipping_cost_calculation_method, insurance_cost_calculation_method, insurance_cost_percentage, metric_factor, allow_immediate_payment_processing, allow_postal_address, allow_physical_address, client_to_collect, is_default, location_id, use_zones, min_distance, max_distance, shipping_surge_condition, shipping_surge_percentage, sort_priority, shipping_group, shipping_slot_identifier, shipping_slot_delay_hours, image_url) {
@@ -2924,7 +2926,7 @@ class EsolveShippingService {
2924
2926
  }
2925
2927
  }
2926
2928
  }
2927
- EsolveShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveShippingService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2929
+ EsolveShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveShippingService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2928
2930
  EsolveShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveShippingService, providedIn: 'root' });
2929
2931
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveShippingService, decorators: [{
2930
2932
  type: Injectable,
@@ -2934,7 +2936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
2934
2936
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2935
2937
  type: Inject,
2936
2938
  args: [ESOLVE_CONNECT_CONFIG]
2937
- }] }, { type: i1$1.HttpClient }]; } });
2939
+ }] }, { type: i1$2.HttpClient }]; } });
2938
2940
 
2939
2941
  class EsolveLocationsService {
2940
2942
  constructor(config, http) {
@@ -2970,7 +2972,7 @@ class EsolveLocationsService {
2970
2972
  return stock_locations;
2971
2973
  }
2972
2974
  }
2973
- EsolveLocationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveLocationsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2975
+ EsolveLocationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveLocationsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2974
2976
  EsolveLocationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveLocationsService, providedIn: 'root' });
2975
2977
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EsolveLocationsService, decorators: [{
2976
2978
  type: Injectable,
@@ -2980,7 +2982,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
2980
2982
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2981
2983
  type: Inject,
2982
2984
  args: [ESOLVE_CONNECT_CONFIG]
2983
- }] }, { type: i1$1.HttpClient }]; } });
2985
+ }] }, { type: i1$2.HttpClient }]; } });
2984
2986
 
2985
2987
  /*
2986
2988
  * Public API Surface of ng-esolve-connect