@esolve/ng-esolve-connect 0.45.2 → 0.46.0
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.
- package/esm2022/lib/account/esolve-account.service.mjs +3 -3
- package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +3 -3
- package/esm2022/lib/auth/esolve-auth.service.mjs +3 -3
- package/esm2022/lib/banners/esolve-banner.service.mjs +3 -3
- package/esm2022/lib/cart/esolve-cart.service.mjs +3 -3
- package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +3 -3
- package/esm2022/lib/core/esolve-config.service.mjs +6 -4
- package/esm2022/lib/core/esolve-connect-config.interface.mjs +1 -1
- package/esm2022/lib/coupons/esolve-coupons.service.mjs +3 -3
- package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +3 -3
- package/esm2022/lib/images/directives/cdn-src.directive.mjs +3 -3
- package/esm2022/lib/locations/esolve-locations.service.mjs +3 -3
- package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +3 -3
- package/esm2022/lib/menu/esolve-menu.service.mjs +3 -3
- package/esm2022/lib/news/esolve-news.service.mjs +3 -3
- package/esm2022/lib/ng-esolve-connect.module.mjs +4 -4
- package/esm2022/lib/payment/esolve-payment.service.mjs +3 -3
- package/esm2022/lib/ranges/esolve-ranges.service.mjs +3 -3
- package/esm2022/lib/session/esolve-session-metadata.service.mjs +3 -3
- package/esm2022/lib/session/esolve-session.service.mjs +3 -3
- package/esm2022/lib/shared/assets/esolve-assets.service.mjs +3 -3
- package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +3 -3
- package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +3 -3
- package/esm2022/lib/shared/geocoder/esolve-geocoder.service.mjs +3 -3
- package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +3 -3
- package/esm2022/lib/shared/seo/esolve-seo-info.model.mjs +3 -2
- package/esm2022/lib/shared/seo/esolve-seo.service.mjs +26 -8
- package/esm2022/lib/shipping/esolve-shipping.service.mjs +3 -3
- package/esm2022/lib/specials/esolve-specials.service.mjs +3 -3
- package/esm2022/lib/stock/esolve-stock.service.mjs +3 -3
- package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +3 -3
- package/esm2022/lib/tags/esolve-tags.service.mjs +3 -3
- package/esm2022/lib/topics/esolve-topic.service.mjs +3 -3
- package/esm2022/lib/transactions/esolve-transactions.service.mjs +3 -3
- package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +3 -3
- package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +3 -3
- package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +3 -3
- package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +4 -4
- package/esm2022/media/lib/services/esolve-media-layout.service.mjs +3 -3
- package/esm2022/media/lib/services/esolve-media.service.mjs +3 -3
- package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +3 -3
- package/esm2022/survey/lib/services/esolve-survey.service.mjs +3 -3
- package/fesm2022/esolve-ng-esolve-connect-media.mjs +16 -16
- package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +3 -3
- package/fesm2022/esolve-ng-esolve-connect-survey.mjs +3 -3
- package/fesm2022/esolve-ng-esolve-connect.mjs +124 -104
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/core/esolve-config.service.d.ts +1 -0
- package/lib/core/esolve-connect-config.interface.d.ts +4 -0
- package/lib/shared/seo/esolve-seo-info.model.d.ts +2 -1
- package/lib/shared/seo/esolve-seo.service.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isPlatformBrowser, CommonModule, IMAGE_LOADER } from '@angular/common';
|
|
1
|
+
import { isPlatformBrowser, CommonModule, IMAGE_LOADER, DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i2 from '@angular/common/http';
|
|
3
3
|
import { HttpErrorResponse, HttpParams, HttpHeaders, HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi, HttpClientModule } from '@angular/common/http';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { InjectionToken, Injectable, Inject, PLATFORM_ID, APP_INITIALIZER, NgModule, Directive, Input, HostListener } from '@angular/core';
|
|
5
|
+
import { InjectionToken, Injectable, Inject, PLATFORM_ID, APP_INITIALIZER, NgModule, Directive, Input, HostListener, inject } from '@angular/core';
|
|
6
6
|
import * as i1 from 'ngx-cookie-service-ssr';
|
|
7
7
|
import { SsrCookieService } from 'ngx-cookie-service-ssr';
|
|
8
8
|
import { throwError, BehaviorSubject, Subject, map, switchMap, timer, takeUntil, combineLatest, shareReplay, filter, distinctUntilChanged, of, firstValueFrom, iif } from 'rxjs';
|
|
@@ -15,6 +15,7 @@ const ESOLVE_CONNECT_CONFIG = new InjectionToken('esolve.connect.config');
|
|
|
15
15
|
class EsolveConfigService {
|
|
16
16
|
constructor(config) {
|
|
17
17
|
this.api_url = '';
|
|
18
|
+
this.site_url = '';
|
|
18
19
|
this.wsid = '';
|
|
19
20
|
this.title_separator = '|';
|
|
20
21
|
this.session_storage_key = '_ng_eslv_token';
|
|
@@ -24,6 +25,7 @@ class EsolveConfigService {
|
|
|
24
25
|
throw new Error('Invalid eSolve Eurus config');
|
|
25
26
|
}
|
|
26
27
|
this.api_url = config.api_url;
|
|
28
|
+
this.site_url = config.site_url;
|
|
27
29
|
this.wsid = config.wsid;
|
|
28
30
|
this.title_prefix = config.title_prefix ?? '';
|
|
29
31
|
this.title_suffix = config.title_suffix ?? '';
|
|
@@ -50,10 +52,10 @@ class EsolveConfigService {
|
|
|
50
52
|
}
|
|
51
53
|
this.error_image_path = config.error_image_path;
|
|
52
54
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
54
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveConfigService, deps: [{ token: ESOLVE_CONNECT_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
56
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveConfigService, providedIn: 'root' }); }
|
|
55
57
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveConfigService, decorators: [{
|
|
57
59
|
type: Injectable,
|
|
58
60
|
args: [{
|
|
59
61
|
providedIn: 'root',
|
|
@@ -157,10 +159,10 @@ class EsolveErrorHandlerService {
|
|
|
157
159
|
parseDeleteError(result) {
|
|
158
160
|
return new EsolveHttpError('error', result.code, result.message);
|
|
159
161
|
}
|
|
160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
161
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
163
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveErrorHandlerService, providedIn: 'root' }); }
|
|
162
164
|
}
|
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveErrorHandlerService, decorators: [{
|
|
164
166
|
type: Injectable,
|
|
165
167
|
args: [{
|
|
166
168
|
providedIn: 'root',
|
|
@@ -183,10 +185,10 @@ class EsolveCookieService {
|
|
|
183
185
|
delete(name, path, domain, secure) {
|
|
184
186
|
this.cookieService.delete(name, path, domain, secure);
|
|
185
187
|
}
|
|
186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
187
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCookieService, deps: [{ token: i1.SsrCookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
189
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCookieService, providedIn: 'root' }); }
|
|
188
190
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCookieService, decorators: [{
|
|
190
192
|
type: Injectable,
|
|
191
193
|
args: [{
|
|
192
194
|
providedIn: 'root',
|
|
@@ -377,10 +379,10 @@ class EsolveSessionService {
|
|
|
377
379
|
}
|
|
378
380
|
localStorage.removeItem(this.storage_key);
|
|
379
381
|
}
|
|
380
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
381
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
382
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSessionService, deps: [{ token: PLATFORM_ID }, { token: EsolveConfigService }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
383
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSessionService, providedIn: 'root' }); }
|
|
382
384
|
}
|
|
383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSessionService, decorators: [{
|
|
384
386
|
type: Injectable,
|
|
385
387
|
args: [{
|
|
386
388
|
providedIn: 'root',
|
|
@@ -428,10 +430,10 @@ class EsolveResponseHandlerService {
|
|
|
428
430
|
}
|
|
429
431
|
return resultHandler(response);
|
|
430
432
|
}
|
|
431
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
432
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveResponseHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
434
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveResponseHandlerService, providedIn: 'root' }); }
|
|
433
435
|
}
|
|
434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveResponseHandlerService, decorators: [{
|
|
435
437
|
type: Injectable,
|
|
436
438
|
args: [{
|
|
437
439
|
providedIn: 'root',
|
|
@@ -491,10 +493,10 @@ class EsolveSessionMetadataService {
|
|
|
491
493
|
return this.errorHandler.handleHttpDeleteError('delete-sessions-metadata', errorRes);
|
|
492
494
|
}));
|
|
493
495
|
}
|
|
494
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
495
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
496
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSessionMetadataService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
497
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSessionMetadataService, providedIn: 'root' }); }
|
|
496
498
|
}
|
|
497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSessionMetadataService, decorators: [{
|
|
498
500
|
type: Injectable,
|
|
499
501
|
args: [{
|
|
500
502
|
providedIn: 'root',
|
|
@@ -714,10 +716,10 @@ class EsolveAuthService {
|
|
|
714
716
|
}
|
|
715
717
|
return throwError(() => error);
|
|
716
718
|
}
|
|
717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
718
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
719
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAuthService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
720
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAuthService, providedIn: 'root' }); }
|
|
719
721
|
}
|
|
720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAuthService, decorators: [{
|
|
721
723
|
type: Injectable,
|
|
722
724
|
args: [{
|
|
723
725
|
providedIn: 'root',
|
|
@@ -755,10 +757,10 @@ class EsolveAuthInterceptorService {
|
|
|
755
757
|
}
|
|
756
758
|
return next.handle(req);
|
|
757
759
|
}
|
|
758
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
759
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
760
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAuthInterceptorService, deps: [{ token: EsolveConfigService }, { token: EsolveSessionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
761
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAuthInterceptorService }); }
|
|
760
762
|
}
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAuthInterceptorService, decorators: [{
|
|
762
764
|
type: Injectable
|
|
763
765
|
}], ctorParameters: function () { return [{ type: EsolveConfigService }, { type: EsolveSessionService }]; } });
|
|
764
766
|
|
|
@@ -799,11 +801,11 @@ class NgEsolveConnectModule {
|
|
|
799
801
|
providers: provideNgEsolveConnect(config, auto_login),
|
|
800
802
|
};
|
|
801
803
|
}
|
|
802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
803
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
804
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
804
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: NgEsolveConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
805
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: NgEsolveConnectModule, imports: [CommonModule, HttpClientModule] }); }
|
|
806
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: NgEsolveConnectModule, imports: [CommonModule, HttpClientModule] }); }
|
|
805
807
|
}
|
|
806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: NgEsolveConnectModule, decorators: [{
|
|
807
809
|
type: NgModule,
|
|
808
810
|
args: [{
|
|
809
811
|
imports: [CommonModule, HttpClientModule],
|
|
@@ -923,10 +925,10 @@ class EsolveCdnSrcDirective {
|
|
|
923
925
|
isImage(el) {
|
|
924
926
|
return 'loading' in this.el.nativeElement;
|
|
925
927
|
}
|
|
926
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
927
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
928
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCdnSrcDirective, deps: [{ token: i0.ElementRef }, { token: EsolveConfigService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
929
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: EsolveCdnSrcDirective, isStandalone: true, selector: "[eslvCdnSrc]", inputs: { src: ["eslvCdnSrc", "src"] }, host: { listeners: { "error": "onError()" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
928
930
|
}
|
|
929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCdnSrcDirective, decorators: [{
|
|
930
932
|
type: Directive,
|
|
931
933
|
args: [{
|
|
932
934
|
selector: '[eslvCdnSrc]',
|
|
@@ -1158,10 +1160,11 @@ var esolveFilterFactory = /*#__PURE__*/Object.freeze({
|
|
|
1158
1160
|
* Search Engine Optimization information.
|
|
1159
1161
|
*/
|
|
1160
1162
|
class EsolveSeoInfo {
|
|
1161
|
-
constructor(title = '', description = '', keywords = '') {
|
|
1163
|
+
constructor(title = '', description = '', keywords = '', canonical_url = '') {
|
|
1162
1164
|
this.title = title;
|
|
1163
1165
|
this.description = description;
|
|
1164
1166
|
this.keywords = keywords;
|
|
1167
|
+
this.canonical_url = canonical_url;
|
|
1165
1168
|
}
|
|
1166
1169
|
}
|
|
1167
1170
|
|
|
@@ -1170,12 +1173,14 @@ class EsolveSeoService {
|
|
|
1170
1173
|
this.config = config;
|
|
1171
1174
|
this.title = title;
|
|
1172
1175
|
this.meta = meta;
|
|
1176
|
+
this.dom = inject(DOCUMENT);
|
|
1173
1177
|
this.title_prefix = '';
|
|
1174
1178
|
this.title_suffix = '';
|
|
1175
1179
|
this.title_separator = '|';
|
|
1176
1180
|
this.default_seo_title = '';
|
|
1177
1181
|
this.default_seo_description = '';
|
|
1178
1182
|
this.default_seo_keywords = '';
|
|
1183
|
+
this.default_seo_url = '';
|
|
1179
1184
|
this.init();
|
|
1180
1185
|
}
|
|
1181
1186
|
/**
|
|
@@ -1187,6 +1192,7 @@ class EsolveSeoService {
|
|
|
1187
1192
|
this.setPageTitleTags(seoInfo.title);
|
|
1188
1193
|
this.setPageDescriptionTags(seoInfo.description);
|
|
1189
1194
|
this.setPageKeywordsTags(seoInfo.keywords);
|
|
1195
|
+
this.setPageCanonicalUrl(seoInfo.canonical_url);
|
|
1190
1196
|
}
|
|
1191
1197
|
init() {
|
|
1192
1198
|
this.title_prefix = this.config.title_prefix;
|
|
@@ -1195,6 +1201,7 @@ class EsolveSeoService {
|
|
|
1195
1201
|
this.default_seo_title = this.config.default_seo_title;
|
|
1196
1202
|
this.default_seo_description = this.config.default_seo_description;
|
|
1197
1203
|
this.default_seo_keywords = this.config.default_seo_keywords;
|
|
1204
|
+
this.default_seo_url = this.config.site_url;
|
|
1198
1205
|
}
|
|
1199
1206
|
setPageTitleTags(title) {
|
|
1200
1207
|
this.title.setTitle(title);
|
|
@@ -1210,8 +1217,18 @@ class EsolveSeoService {
|
|
|
1210
1217
|
setPageKeywordsTags(keywords) {
|
|
1211
1218
|
this.meta.updateTag({ name: 'keywords', content: keywords });
|
|
1212
1219
|
}
|
|
1220
|
+
setPageCanonicalUrl(canonical_url) {
|
|
1221
|
+
const head = this.dom.head;
|
|
1222
|
+
let element = this.dom.querySelector(`link[rel='canonical']`);
|
|
1223
|
+
if (!element) {
|
|
1224
|
+
element = this.dom.createElement('link');
|
|
1225
|
+
element.setAttribute('rel', 'canonical');
|
|
1226
|
+
head.appendChild(element);
|
|
1227
|
+
}
|
|
1228
|
+
element.setAttribute('href', canonical_url);
|
|
1229
|
+
}
|
|
1213
1230
|
validateAndSanitizeSeoInfo(seo_info) {
|
|
1214
|
-
const pageSeo = new EsolveSeoInfo(this.default_seo_title, this.default_seo_description, this.default_seo_keywords);
|
|
1231
|
+
const pageSeo = new EsolveSeoInfo(this.default_seo_title, this.default_seo_description, this.default_seo_keywords, this.default_seo_url);
|
|
1215
1232
|
if (seo_info.description.trim() !== '') {
|
|
1216
1233
|
pageSeo.description = seo_info.description;
|
|
1217
1234
|
}
|
|
@@ -1252,12 +1269,15 @@ class EsolveSeoService {
|
|
|
1252
1269
|
if (seo_info.keywords.trim() !== '') {
|
|
1253
1270
|
pageSeo.keywords = seo_info.keywords;
|
|
1254
1271
|
}
|
|
1272
|
+
if (seo_info.canonical_url.trim() !== '') {
|
|
1273
|
+
pageSeo.canonical_url = seo_info.canonical_url;
|
|
1274
|
+
}
|
|
1255
1275
|
return pageSeo;
|
|
1256
1276
|
}
|
|
1257
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1258
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSeoService, deps: [{ token: EsolveConfigService }, { token: i2$1.Title }, { token: i2$1.Meta }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1278
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSeoService, providedIn: 'root' }); }
|
|
1259
1279
|
}
|
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSeoService, decorators: [{
|
|
1261
1281
|
type: Injectable,
|
|
1262
1282
|
args: [{
|
|
1263
1283
|
providedIn: 'root',
|
|
@@ -1344,10 +1364,10 @@ class EsolveGeocoderService {
|
|
|
1344
1364
|
const geocode_result = new EsolveGeocodeResult(record.formatted_address, geocode_address, geocode_coords, record.status, record.checksum, record.cached);
|
|
1345
1365
|
return geocode_result;
|
|
1346
1366
|
}
|
|
1347
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1348
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1367
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveGeocoderService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1368
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveGeocoderService, providedIn: 'root' }); }
|
|
1349
1369
|
}
|
|
1350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveGeocoderService, decorators: [{
|
|
1351
1371
|
type: Injectable,
|
|
1352
1372
|
args: [{
|
|
1353
1373
|
providedIn: 'root',
|
|
@@ -1545,10 +1565,10 @@ class EsolveCategoryTreeService {
|
|
|
1545
1565
|
}
|
|
1546
1566
|
return null;
|
|
1547
1567
|
}
|
|
1548
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1549
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1568
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCategoryTreeService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1569
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCategoryTreeService, providedIn: 'root' }); }
|
|
1550
1570
|
}
|
|
1551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCategoryTreeService, decorators: [{
|
|
1552
1572
|
type: Injectable,
|
|
1553
1573
|
args: [{
|
|
1554
1574
|
providedIn: 'root',
|
|
@@ -1667,10 +1687,10 @@ class EsolveManufacturersService {
|
|
|
1667
1687
|
processManufacturer(record) {
|
|
1668
1688
|
return new EsolveManufacturer(record);
|
|
1669
1689
|
}
|
|
1670
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1671
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1690
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveManufacturersService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1691
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveManufacturersService, providedIn: 'root' }); }
|
|
1672
1692
|
}
|
|
1673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveManufacturersService, decorators: [{
|
|
1674
1694
|
type: Injectable,
|
|
1675
1695
|
args: [{
|
|
1676
1696
|
providedIn: 'root',
|
|
@@ -1787,10 +1807,10 @@ class EsolveRangesService {
|
|
|
1787
1807
|
processRange(record) {
|
|
1788
1808
|
return new EsolveRange(record);
|
|
1789
1809
|
}
|
|
1790
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1791
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1810
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveRangesService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1811
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveRangesService, providedIn: 'root' }); }
|
|
1792
1812
|
}
|
|
1793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveRangesService, decorators: [{
|
|
1794
1814
|
type: Injectable,
|
|
1795
1815
|
args: [{
|
|
1796
1816
|
providedIn: 'root',
|
|
@@ -1890,10 +1910,10 @@ class EsolveTagsService {
|
|
|
1890
1910
|
}
|
|
1891
1911
|
return tags;
|
|
1892
1912
|
}
|
|
1893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1894
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTagsService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1914
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTagsService, providedIn: 'root' }); }
|
|
1895
1915
|
}
|
|
1896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTagsService, decorators: [{
|
|
1897
1917
|
type: Injectable,
|
|
1898
1918
|
args: [{
|
|
1899
1919
|
providedIn: 'root',
|
|
@@ -1952,10 +1972,10 @@ class EsolveTopicService {
|
|
|
1952
1972
|
}
|
|
1953
1973
|
return topics;
|
|
1954
1974
|
}
|
|
1955
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1956
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1975
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTopicService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1976
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTopicService, providedIn: 'root' }); }
|
|
1957
1977
|
}
|
|
1958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTopicService, decorators: [{
|
|
1959
1979
|
type: Injectable,
|
|
1960
1980
|
args: [{
|
|
1961
1981
|
providedIn: 'root',
|
|
@@ -2145,10 +2165,10 @@ class EsolveAssetsService {
|
|
|
2145
2165
|
const total = total_records;
|
|
2146
2166
|
return new EsolveList(assets, page, rows, total);
|
|
2147
2167
|
}
|
|
2148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2149
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAssetsService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2169
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAssetsService, providedIn: 'root' }); }
|
|
2150
2170
|
}
|
|
2151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAssetsService, decorators: [{
|
|
2152
2172
|
type: Injectable,
|
|
2153
2173
|
args: [{
|
|
2154
2174
|
providedIn: 'root',
|
|
@@ -2686,10 +2706,10 @@ class EsolveLocationsService {
|
|
|
2686
2706
|
}
|
|
2687
2707
|
return stock_locations;
|
|
2688
2708
|
}
|
|
2689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2709
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveLocationsService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2710
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveLocationsService, providedIn: 'root' }); }
|
|
2691
2711
|
}
|
|
2692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveLocationsService, decorators: [{
|
|
2693
2713
|
type: Injectable,
|
|
2694
2714
|
args: [{
|
|
2695
2715
|
providedIn: 'root',
|
|
@@ -2889,10 +2909,10 @@ class EsolveTransactionsService {
|
|
|
2889
2909
|
}
|
|
2890
2910
|
return transactions;
|
|
2891
2911
|
}
|
|
2892
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2893
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2912
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTransactionsService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2913
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTransactionsService, providedIn: 'root' }); }
|
|
2894
2914
|
}
|
|
2895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveTransactionsService, decorators: [{
|
|
2896
2916
|
type: Injectable,
|
|
2897
2917
|
args: [{
|
|
2898
2918
|
providedIn: 'root',
|
|
@@ -3273,10 +3293,10 @@ class EsolveCouponsService {
|
|
|
3273
3293
|
}
|
|
3274
3294
|
return coupons;
|
|
3275
3295
|
}
|
|
3276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3277
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
3296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCouponsService, deps: [{ token: PLATFORM_ID }, { token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3297
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCouponsService, providedIn: 'root' }); }
|
|
3278
3298
|
}
|
|
3279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCouponsService, decorators: [{
|
|
3280
3300
|
type: Injectable,
|
|
3281
3301
|
args: [{
|
|
3282
3302
|
providedIn: 'root',
|
|
@@ -3494,10 +3514,10 @@ class EsolveCartService {
|
|
|
3494
3514
|
const cart_totals = new EsolveCartTotals(+record.records, +record.items, +record.total, +record.vat, +record.discount);
|
|
3495
3515
|
return cart_totals;
|
|
3496
3516
|
}
|
|
3497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3498
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
3517
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCartService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }, { token: EsolveCouponsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3518
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCartService, providedIn: 'root' }); }
|
|
3499
3519
|
}
|
|
3500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveCartService, decorators: [{
|
|
3501
3521
|
type: Injectable,
|
|
3502
3522
|
args: [{
|
|
3503
3523
|
providedIn: 'root',
|
|
@@ -3898,10 +3918,10 @@ class EsolveAccountService {
|
|
|
3898
3918
|
return new EsolveLocationUpdateResult(response);
|
|
3899
3919
|
})));
|
|
3900
3920
|
}
|
|
3901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3902
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
3921
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAccountService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3922
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAccountService, providedIn: 'root' }); }
|
|
3903
3923
|
}
|
|
3904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveAccountService, decorators: [{
|
|
3905
3925
|
type: Injectable,
|
|
3906
3926
|
args: [{
|
|
3907
3927
|
providedIn: 'root',
|
|
@@ -4037,10 +4057,10 @@ class EsolveBannerService {
|
|
|
4037
4057
|
}
|
|
4038
4058
|
return banners;
|
|
4039
4059
|
}
|
|
4040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4041
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveBannerService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4061
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveBannerService, providedIn: 'root' }); }
|
|
4042
4062
|
}
|
|
4043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveBannerService, decorators: [{
|
|
4044
4064
|
type: Injectable,
|
|
4045
4065
|
args: [{
|
|
4046
4066
|
providedIn: 'root',
|
|
@@ -4107,10 +4127,10 @@ class EsolveMenuService {
|
|
|
4107
4127
|
}
|
|
4108
4128
|
return menu;
|
|
4109
4129
|
}
|
|
4110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveMenuService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4131
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveMenuService, providedIn: 'root' }); }
|
|
4112
4132
|
}
|
|
4113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveMenuService, decorators: [{
|
|
4114
4134
|
type: Injectable,
|
|
4115
4135
|
args: [{
|
|
4116
4136
|
providedIn: 'root',
|
|
@@ -4322,10 +4342,10 @@ class EsolveNewsService {
|
|
|
4322
4342
|
}
|
|
4323
4343
|
return params;
|
|
4324
4344
|
}
|
|
4325
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4326
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveNewsService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4346
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveNewsService, providedIn: 'root' }); }
|
|
4327
4347
|
}
|
|
4328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveNewsService, decorators: [{
|
|
4329
4349
|
type: Injectable,
|
|
4330
4350
|
args: [{
|
|
4331
4351
|
providedIn: 'root',
|
|
@@ -5315,10 +5335,10 @@ class EsolveStockService {
|
|
|
5315
5335
|
getStockHistoryRecords(params) {
|
|
5316
5336
|
return this.http.get(`${this.config.api_url}/get-items-transaction-history.php`, { params });
|
|
5317
5337
|
}
|
|
5318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5319
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveStockService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5339
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveStockService, providedIn: 'root' }); }
|
|
5320
5340
|
}
|
|
5321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveStockService, decorators: [{
|
|
5322
5342
|
type: Injectable,
|
|
5323
5343
|
args: [{
|
|
5324
5344
|
providedIn: 'root',
|
|
@@ -5462,10 +5482,10 @@ class EsolveSpecialsService {
|
|
|
5462
5482
|
processSpecial(record) {
|
|
5463
5483
|
return new EsolveSpecial(record);
|
|
5464
5484
|
}
|
|
5465
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5466
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSpecialsService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5486
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSpecialsService, providedIn: 'root' }); }
|
|
5467
5487
|
}
|
|
5468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSpecialsService, decorators: [{
|
|
5469
5489
|
type: Injectable,
|
|
5470
5490
|
args: [{
|
|
5471
5491
|
providedIn: 'root',
|
|
@@ -5803,10 +5823,10 @@ class EsolvePaymentService {
|
|
|
5803
5823
|
const year_string = card_data.expiry_year.padStart(4, '0');
|
|
5804
5824
|
return `${month_string}${year_string}`;
|
|
5805
5825
|
}
|
|
5806
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5807
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5826
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolvePaymentService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5827
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolvePaymentService, providedIn: 'root' }); }
|
|
5808
5828
|
}
|
|
5809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolvePaymentService, decorators: [{
|
|
5810
5830
|
type: Injectable,
|
|
5811
5831
|
args: [{
|
|
5812
5832
|
providedIn: 'root',
|
|
@@ -6072,10 +6092,10 @@ class EsolveShippingService {
|
|
|
6072
6092
|
const shipping_cost = new EsolveShippingCost(+record.shipping_total, +record.vat_on_shipping, +record.total_saving_on_shipping, +record.insurance_total, +record.vat_on_insurance, +record.total_saving_on_insurance);
|
|
6073
6093
|
return shipping_cost;
|
|
6074
6094
|
}
|
|
6075
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6076
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6095
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveShippingService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6096
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveShippingService, providedIn: 'root' }); }
|
|
6077
6097
|
}
|
|
6078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveShippingService, decorators: [{
|
|
6079
6099
|
type: Injectable,
|
|
6080
6100
|
args: [{
|
|
6081
6101
|
providedIn: 'root',
|
|
@@ -6110,10 +6130,10 @@ class EsolveEnquiryService {
|
|
|
6110
6130
|
return this.errorHandler.handleHttpPostError('set-enquiry', errorRes);
|
|
6111
6131
|
}));
|
|
6112
6132
|
}
|
|
6113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6114
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveEnquiryService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6134
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveEnquiryService, providedIn: 'root' }); }
|
|
6115
6135
|
}
|
|
6116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveEnquiryService, decorators: [{
|
|
6117
6137
|
type: Injectable,
|
|
6118
6138
|
args: [{
|
|
6119
6139
|
providedIn: 'root',
|
|
@@ -6231,10 +6251,10 @@ class EsolveWishlistService {
|
|
|
6231
6251
|
getWishlistRecords(params) {
|
|
6232
6252
|
return this.http.get(`${this.config.api_url}/get-wishlist.php`, { params });
|
|
6233
6253
|
}
|
|
6234
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6235
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveWishlistService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6255
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveWishlistService, providedIn: 'root' }); }
|
|
6236
6256
|
}
|
|
6237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveWishlistService, decorators: [{
|
|
6238
6258
|
type: Injectable,
|
|
6239
6259
|
args: [{
|
|
6240
6260
|
providedIn: 'root',
|
|
@@ -6305,10 +6325,10 @@ class EsolveSuppliersService {
|
|
|
6305
6325
|
processSuppliers(record) {
|
|
6306
6326
|
return new EsolveSupplier(record);
|
|
6307
6327
|
}
|
|
6308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6309
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSuppliersService, deps: [{ token: EsolveConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6329
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSuppliersService, providedIn: 'root' }); }
|
|
6310
6330
|
}
|
|
6311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EsolveSuppliersService, decorators: [{
|
|
6312
6332
|
type: Injectable,
|
|
6313
6333
|
args: [{
|
|
6314
6334
|
providedIn: 'root',
|