fabrikantencore 2.2.12 → 2.2.13

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,11 +1,11 @@
1
1
  import { Injectable } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "@angular/router";
4
- import * as i2 from "./google.analytics.service";
4
+ import * as i2 from "./statistics.service";
5
5
  export class NavigateService {
6
- constructor(Router, GoogleAnalyticsService) {
6
+ constructor(Router, StatisticsService) {
7
7
  this.Router = Router;
8
- this.GoogleAnalyticsService = GoogleAnalyticsService;
8
+ this.StatisticsService = StatisticsService;
9
9
  this.FabrikantenService = null;
10
10
  this.TranslateService = null;
11
11
  }
@@ -14,22 +14,24 @@ export class NavigateService {
14
14
  if (this.TranslateService.ActiveLanguage != null && this.FabrikantenService.FabrikantenViewModel != null) {
15
15
  if (this.FabrikantenService.ShowCategories()) {
16
16
  this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'categories']);
17
- this.GoogleAnalyticsService.PageView();
17
+ this.StatisticsService.PageView("categories");
18
18
  }
19
19
  else if (this.FabrikantenService.FabrikantenViewModel.selectedProduct != null) {
20
20
  this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'product', this.FabrikantenService.FabrikantenViewModel.selectedProduct.urlName]);
21
+ this.StatisticsService.PageView("product");
21
22
  }
22
23
  else {
23
24
  this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'products']);
25
+ this.StatisticsService.PageView("products");
24
26
  }
25
27
  }
26
28
  }
27
29
  }
28
30
  }
29
- NavigateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, deps: [{ token: i1.Router }, { token: i2.GoogleAnalyticsService }], target: i0.ɵɵFactoryTarget.Injectable });
31
+ NavigateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, deps: [{ token: i1.Router }, { token: i2.StatisticsService }], target: i0.ɵɵFactoryTarget.Injectable });
30
32
  NavigateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, providedIn: 'root' });
31
33
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, decorators: [{
32
34
  type: Injectable,
33
35
  args: [{ providedIn: 'root' }]
34
- }], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.GoogleAnalyticsService }]; } });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9mYWJyaWthbnRlbmNvcmUvc2VydmljZXMvbmF2aWdhdGUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXFCLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7OztBQVE5RCxNQUFNLE9BQU8sZUFBZTtJQUsxQixZQUFvQixNQUFjLEVBQ3hCLHNCQUE4QztRQURwQyxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBQ3hCLDJCQUFzQixHQUF0QixzQkFBc0IsQ0FBd0I7UUFKakQsdUJBQWtCLEdBQThCLElBQUksQ0FBQztRQUNyRCxxQkFBZ0IsR0FBNEIsSUFBSSxDQUFDO0lBS3hELENBQUM7SUFFTSxXQUFXO1FBQ2hCLElBQUksSUFBSSxDQUFDLGtCQUFrQixJQUFJLElBQUksSUFBSSxJQUFJLENBQUMsZ0JBQWdCLElBQUksSUFBSSxFQUFFO1lBQ3BFLElBQUksSUFBSSxDQUFDLGdCQUFnQixDQUFDLGNBQWMsSUFBSSxJQUFJLElBQUksSUFBSSxDQUFDLGtCQUFrQ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lld01vZGVsICE9IG51bGwpIHtcclxuICAgICAgICBpZiAodGhpcy5GYWJyaWthbnRlblNlcnZpY2UuU2hvd0NhdGVnb3JpZXMoKSkge1xyXG4gICAgICAgICAgdGhpcy5Sb3V0ZXIubmF2aWdhdGUoWycvJywgdGhpcy5UcmFuc2xhdGVTZXJ2aWNlLkFjdGl2ZUxhbmd1YWdlLmNvdW50cnlDb2RlLCAnY2F0ZWdvcmllcyddKTtcclxuICAgICAgICAgIHRoaXMuR29vZ2xlQW5hbHl0aWNzU2VydmljZS5QYWdlVmlldygpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBlbHNlIGlmICh0aGlzLkZhYnJpa2FudGVuU2VydmljZS5GYWJyaWthbnRlblZpZXdNb2RlbC5zZWxlY3RlZFByb2R1Y3QgIT0gbnVsbClcclxuICAgICAgICB7XHJcbiAgICAgICAgICB0aGlzLlJvdXRlci5uYXZpZ2F0ZShbJy8nLCB0aGlzLlRyYW5zbGF0ZVNlcnZpY2UuQWN0aXZlTGFuZ3VhZ2UuY291bnRyeUNvZGUsICdwcm9kdWN0JywgdGhpcy5GYWJyaWthbnRlblNlcnZpY2UuRmFicmlrYW50ZW5WaWV3TW9kZWwuc2VsZWN0ZWRQcm9kdWN0LnVybE5hbWVdKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICB0aGlzLlJvdXRlci5uYXZpZ2F0ZShbJy8nLCB0aGlzLlRyYW5zbGF0ZVNlcnZpY2UuQWN0aXZlTGFuZ3VhZ2UuY291bnRyeUNvZGUsICdwcm9kdWN0cyddKTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
36
+ }], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.StatisticsService }]; } });
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOi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BhZ2VWaWV3KFwiY2F0ZWdvcmllc1wiKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSBpZiAodGhpcy5GYWJyaWthbnRlblNlcnZpY2UuRmFicmlrYW50ZW5WaWV3TW9kZWwuc2VsZWN0ZWRQcm9kdWN0ICE9IG51bGwpXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgdGhpcy5Sb3V0ZXIubmF2aWdhdGUoWycvJywgdGhpcy5UcmFuc2xhdGVTZXJ2aWNlLkFjdGl2ZUxhbmd1YWdlLmNvdW50cnlDb2RlLCAncHJvZHVjdCcsIHRoaXMuRmFicmlrYW50ZW5TZXJ2aWNlLkZhYnJpa2FudGVuVmlld01vZGVsLnNlbGVjdGVkUHJvZHVjdC51cmxOYW1lXSk7XHJcbiAgICAgICAgICB0aGlzLlN0YXRpc3RpY3NTZXJ2aWNlLlBhZ2VWaWV3KFwicHJvZHVjdFwiKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICB0aGlzLlJvdXRlci5uYXZpZ2F0ZShbJy8nLCB0aGlzLlRyYW5zbGF0ZVNlcnZpY2UuQWN0aXZlTGFuZ3VhZ2UuY291bnRyeUNvZGUsICdwcm9kdWN0cyddKTtcclxuICAgICAgICAgIHRoaXMuU3RhdGlzdGljc1NlcnZpY2UuUGFnZVZpZXcoXCJwcm9kdWN0c1wiKTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
@@ -0,0 +1,70 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class StatisticsService {
4
+ constructor() {
5
+ this.Active = true;
6
+ this.analytics = null;
7
+ this.AnalyticsCode = "G-WZHRFJ55QY";
8
+ this.LastPageView = "";
9
+ }
10
+ PageView(name) {
11
+ if (this.LastPageView != name) {
12
+ gtag('config', this.AnalyticsCode);
13
+ gtag('event', 'pageview', {
14
+ 'name': name
15
+ });
16
+ this.LastPageView = name;
17
+ }
18
+ }
19
+ SelectCategory(name) {
20
+ gtag('config', this.AnalyticsCode);
21
+ gtag('event', "SelectCategory", {
22
+ category: name
23
+ });
24
+ }
25
+ SelectFilterOption(name) {
26
+ gtag('config', this.AnalyticsCode);
27
+ gtag('event', "SelectFilterOption", {
28
+ filteroption: name
29
+ });
30
+ }
31
+ SelectRangeValue(name) {
32
+ gtag('config', this.AnalyticsCode);
33
+ gtag('event', "SelectRangeValue", {
34
+ range: name
35
+ });
36
+ }
37
+ SelectProduct(name) {
38
+ gtag('config', this.AnalyticsCode);
39
+ gtag('event', "SelectProduct", {
40
+ product: name
41
+ });
42
+ }
43
+ DownloadFile(filetype, productname) {
44
+ gtag('config', this.AnalyticsCode);
45
+ gtag('event', "Download " + filetype, {
46
+ product: productname
47
+ });
48
+ }
49
+ Init() {
50
+ //if (this.analytics == null) {
51
+ // this.analytics = Analytics({
52
+ // app: 'awesome-app',
53
+ // plugins: [
54
+ // googleTagManager({
55
+ // containerId: 'G-XK4L5JFYTN'
56
+ // })
57
+ // ]
58
+ // });
59
+ //}
60
+ }
61
+ }
62
+ StatisticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
63
+ StatisticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, providedIn: 'root' });
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, decorators: [{
65
+ type: Injectable,
66
+ args: [{
67
+ providedIn: 'root'
68
+ }]
69
+ }], ctorParameters: function () { return []; } });
70
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdGlzdGljcy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4v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0gQW5hbHl0aWNzKHtcclxuICAgIC8vICAgIGFwcDogJ2F3ZXNvbWUtYXBwJyxcclxuICAgIC8vICAgIHBsdWdpbnM6IFtcclxuICAgIC8vICAgICAgZ29vZ2xlVGFnTWFuYWdlcih7XHJcbiAgICAvLyAgICAgICAgY29udGFpbmVySWQ6ICdHLVhLNEw1SkZZVE4nXHJcbiAgICAvLyAgICAgIH0pXHJcbiAgICAvLyAgICBdXHJcbiAgICAvLyAgfSk7XHJcbiAgICAvL31cclxuICB9XG59XG4iXX0=
@@ -9778,13 +9778,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
9778
9778
  args: [{ providedIn: 'root' }]
9779
9779
  }], ctorParameters: function () { return [{ type: i1$3.Clipboard }, { type: FabrikantenApiClient }]; } });
9780
9780
 
9781
- class GoogleAnalyticsService {
9781
+ class StatisticsService {
9782
9782
  constructor() {
9783
+ this.Active = true;
9783
9784
  this.analytics = null;
9785
+ this.AnalyticsCode = "G-WZHRFJ55QY";
9786
+ this.LastPageView = "";
9787
+ }
9788
+ PageView(name) {
9789
+ if (this.LastPageView != name) {
9790
+ gtag('config', this.AnalyticsCode);
9791
+ gtag('event', 'pageview', {
9792
+ 'name': name
9793
+ });
9794
+ this.LastPageView = name;
9795
+ }
9796
+ }
9797
+ SelectCategory(name) {
9798
+ gtag('config', this.AnalyticsCode);
9799
+ gtag('event', "SelectCategory", {
9800
+ category: name
9801
+ });
9802
+ }
9803
+ SelectFilterOption(name) {
9804
+ gtag('config', this.AnalyticsCode);
9805
+ gtag('event', "SelectFilterOption", {
9806
+ filteroption: name
9807
+ });
9784
9808
  }
9785
- PageView() {
9786
- //this.Init();
9787
- //this.analytics.page();
9809
+ SelectRangeValue(name) {
9810
+ gtag('config', this.AnalyticsCode);
9811
+ gtag('event', "SelectRangeValue", {
9812
+ range: name
9813
+ });
9814
+ }
9815
+ SelectProduct(name) {
9816
+ gtag('config', this.AnalyticsCode);
9817
+ gtag('event', "SelectProduct", {
9818
+ product: name
9819
+ });
9820
+ }
9821
+ DownloadFile(filetype, productname) {
9822
+ gtag('config', this.AnalyticsCode);
9823
+ gtag('event', "Download " + filetype, {
9824
+ product: productname
9825
+ });
9788
9826
  }
9789
9827
  Init() {
9790
9828
  //if (this.analytics == null) {
@@ -9799,9 +9837,9 @@ class GoogleAnalyticsService {
9799
9837
  //}
9800
9838
  }
9801
9839
  }
9802
- GoogleAnalyticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GoogleAnalyticsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9803
- GoogleAnalyticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GoogleAnalyticsService, providedIn: 'root' });
9804
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
9840
+ StatisticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
9841
+ StatisticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, providedIn: 'root' });
9842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, decorators: [{
9805
9843
  type: Injectable,
9806
9844
  args: [{
9807
9845
  providedIn: 'root'
@@ -9809,9 +9847,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
9809
9847
  }], ctorParameters: function () { return []; } });
9810
9848
 
9811
9849
  class NavigateService {
9812
- constructor(Router, GoogleAnalyticsService) {
9850
+ constructor(Router, StatisticsService) {
9813
9851
  this.Router = Router;
9814
- this.GoogleAnalyticsService = GoogleAnalyticsService;
9852
+ this.StatisticsService = StatisticsService;
9815
9853
  this.FabrikantenService = null;
9816
9854
  this.TranslateService = null;
9817
9855
  }
@@ -9820,24 +9858,26 @@ class NavigateService {
9820
9858
  if (this.TranslateService.ActiveLanguage != null && this.FabrikantenService.FabrikantenViewModel != null) {
9821
9859
  if (this.FabrikantenService.ShowCategories()) {
9822
9860
  this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'categories']);
9823
- this.GoogleAnalyticsService.PageView();
9861
+ this.StatisticsService.PageView("categories");
9824
9862
  }
9825
9863
  else if (this.FabrikantenService.FabrikantenViewModel.selectedProduct != null) {
9826
9864
  this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'product', this.FabrikantenService.FabrikantenViewModel.selectedProduct.urlName]);
9865
+ this.StatisticsService.PageView("product");
9827
9866
  }
9828
9867
  else {
9829
9868
  this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'products']);
9869
+ this.StatisticsService.PageView("products");
9830
9870
  }
9831
9871
  }
9832
9872
  }
9833
9873
  }
9834
9874
  }
9835
- NavigateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, deps: [{ token: i1$1.Router }, { token: GoogleAnalyticsService }], target: i0.ɵɵFactoryTarget.Injectable });
9875
+ NavigateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, deps: [{ token: i1$1.Router }, { token: StatisticsService }], target: i0.ɵɵFactoryTarget.Injectable });
9836
9876
  NavigateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, providedIn: 'root' });
9837
9877
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, decorators: [{
9838
9878
  type: Injectable,
9839
9879
  args: [{ providedIn: 'root' }]
9840
- }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: GoogleAnalyticsService }]; } });
9880
+ }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: StatisticsService }]; } });
9841
9881
 
9842
9882
  class TranslateService {
9843
9883
  constructor(TranslateApiClient, NavigateService) {
@@ -10321,7 +10361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
10321
10361
  }], ctorParameters: function () { return [{ type: FabrikantenApiClient }]; } });
10322
10362
 
10323
10363
  class FabrikantenService {
10324
- constructor(FabrikantenApiClient, BestekService, TranslateService, WebGLService, SVGService, TextureService, NavigateService) {
10364
+ constructor(FabrikantenApiClient, BestekService, TranslateService, WebGLService, SVGService, TextureService, NavigateService, StatisticsService) {
10325
10365
  this.FabrikantenApiClient = FabrikantenApiClient;
10326
10366
  this.BestekService = BestekService;
10327
10367
  this.TranslateService = TranslateService;
@@ -10329,6 +10369,7 @@ class FabrikantenService {
10329
10369
  this.SVGService = SVGService;
10330
10370
  this.TextureService = TextureService;
10331
10371
  this.NavigateService = NavigateService;
10372
+ this.StatisticsService = StatisticsService;
10332
10373
  this.Init = false;
10333
10374
  this.Loading = true;
10334
10375
  this.DownloadARKEYAdomiLoading = false;
@@ -10373,6 +10414,9 @@ class FabrikantenService {
10373
10414
  request.sessionId = this.FabrikantenViewModel.sessionId;
10374
10415
  request.filterOptionId = filteroptionid;
10375
10416
  request.filterId = filterid;
10417
+ if (this.StatisticsService.Active) {
10418
+ this.StatisticsService.SelectFilterOption(this.TranslateService.GetActiveValueFilter(filterid) + ": " + this.TranslateService.GetActiveValueFilterOption(filteroptionid));
10419
+ }
10376
10420
  this.FabrikantenApiClient.selectFilterOption(request).subscribe(() => {
10377
10421
  this.ReloadModel(ChangeDetectorRef);
10378
10422
  }, (error) => {
@@ -10413,6 +10457,9 @@ class FabrikantenService {
10413
10457
  request.sessionId = this.FabrikantenViewModel.sessionId;
10414
10458
  request.rangeInputId = rangeinputid;
10415
10459
  request.value = value;
10460
+ if (this.StatisticsService.Active) {
10461
+ this.StatisticsService.SelectRangeValue(this.TranslateService.GetActiveValueRangeInput(rangeinputid) + ": " + value);
10462
+ }
10416
10463
  this.FabrikantenApiClient.setRangeInput(request).subscribe(() => {
10417
10464
  this.ReloadModel(ChangeDetectorRef);
10418
10465
  }, (error) => {
@@ -10467,6 +10514,9 @@ class FabrikantenService {
10467
10514
  request.sessionId = this.FabrikantenViewModel.sessionId;
10468
10515
  request.categoryId = category.id;
10469
10516
  request.categoryLayer = category.layer;
10517
+ if (this.StatisticsService.Active) {
10518
+ this.StatisticsService.SelectCategory(this.TranslateService.GetActiveValueCategory(category.id));
10519
+ }
10470
10520
  this.FabrikantenApiClient.selectCategory(request).subscribe(() => {
10471
10521
  this.ReloadModel(ChangeDetectorRef);
10472
10522
  }, (error) => {
@@ -10486,6 +10536,9 @@ class FabrikantenService {
10486
10536
  var request = new SelectProductRequest();
10487
10537
  request.sessionId = this.FabrikantenViewModel.sessionId;
10488
10538
  request.productId = product.id;
10539
+ if (this.StatisticsService.Active) {
10540
+ this.StatisticsService.SelectProduct(this.TranslateService.GetActiveValueProduct(product.id));
10541
+ }
10489
10542
  this.FabrikantenApiClient.selectProduct(request).subscribe(() => {
10490
10543
  this.SelectedToebehoren = null;
10491
10544
  this.ResetTabs();
@@ -10898,12 +10951,18 @@ class FabrikantenService {
10898
10951
  }
10899
10952
  // Downloads
10900
10953
  DownloadARKEYAdomi(custombcbeboid) {
10954
+ var _a;
10901
10955
  this.DownloadARKEYAdomiLoading = true;
10902
10956
  var request = new FabrikantenFileRequestModel();
10903
10957
  request.sessionId = this.FabrikantenViewModel.sessionId;
10904
10958
  request.fileType = "dhg";
10905
10959
  request.model3D = true;
10906
10960
  request.customBCBEBOId = custombcbeboid;
10961
+ if (this.StatisticsService.Active) {
10962
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
10963
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
10964
+ }
10965
+ }
10907
10966
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
10908
10967
  this.StartDownload(model.file + "", ".dhg");
10909
10968
  this.DownloadARKEYAdomiLoading = false;
@@ -10917,12 +10976,18 @@ class FabrikantenService {
10917
10976
  });
10918
10977
  }
10919
10978
  DownloadIFC(custombcbeboid) {
10979
+ var _a;
10920
10980
  this.DownloadIFCLoading = true;
10921
10981
  var request = new FabrikantenFileRequestModel();
10922
10982
  request.sessionId = this.FabrikantenViewModel.sessionId;
10923
10983
  request.fileType = "ifc";
10924
10984
  request.model3D = true;
10925
10985
  request.customBCBEBOId = custombcbeboid;
10986
+ if (this.StatisticsService.Active) {
10987
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
10988
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
10989
+ }
10990
+ }
10926
10991
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
10927
10992
  this.StartDownload(model.file + "", ".ifc");
10928
10993
  this.DownloadIFCLoading = false;
@@ -10936,12 +11001,18 @@ class FabrikantenService {
10936
11001
  });
10937
11002
  }
10938
11003
  DownloadRevitPlugin(custombcbeboid) {
11004
+ var _a;
10939
11005
  this.DownloadRevitPluginLoading = false;
10940
11006
  var request = new FabrikantenFileRequestModel();
10941
11007
  request.sessionId = this.FabrikantenViewModel.sessionId;
10942
11008
  request.fileType = "hdhRevit";
10943
11009
  request.model3D = true;
10944
11010
  request.customBCBEBOId = custombcbeboid;
11011
+ if (this.StatisticsService.Active) {
11012
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11013
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11014
+ }
11015
+ }
10945
11016
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
10946
11017
  window.location.href = model.file + "";
10947
11018
  this.DownloadRevitPluginLoading = false;
@@ -10955,12 +11026,18 @@ class FabrikantenService {
10955
11026
  });
10956
11027
  }
10957
11028
  Download3DAutoCADDwg(custombcbeboid) {
11029
+ var _a;
10958
11030
  this.Download3DAutoCADDwgLoading = true;
10959
11031
  var request = new FabrikantenFileRequestModel();
10960
11032
  request.sessionId = this.FabrikantenViewModel.sessionId;
10961
11033
  request.fileType = "dwg";
10962
11034
  request.model3D = true;
10963
11035
  request.customBCBEBOId = custombcbeboid;
11036
+ if (this.StatisticsService.Active) {
11037
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11038
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11039
+ }
11040
+ }
10964
11041
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
10965
11042
  this.StartDownload(model.file + "", ".dwg");
10966
11043
  this.Download3DAutoCADDwgLoading = false;
@@ -10974,12 +11051,18 @@ class FabrikantenService {
10974
11051
  });
10975
11052
  }
10976
11053
  Download3DDxf(custombcbeboid) {
11054
+ var _a;
10977
11055
  this.Download3DDxfLoading = true;
10978
11056
  var request = new FabrikantenFileRequestModel();
10979
11057
  request.sessionId = this.FabrikantenViewModel.sessionId;
10980
11058
  request.fileType = "dxf";
10981
11059
  request.model3D = true;
10982
11060
  request.customBCBEBOId = custombcbeboid;
11061
+ if (this.StatisticsService.Active) {
11062
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11063
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11064
+ }
11065
+ }
10983
11066
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
10984
11067
  this.StartDownload(model.file + "", ".dxf");
10985
11068
  this.Download3DDxfLoading = false;
@@ -10993,12 +11076,18 @@ class FabrikantenService {
10993
11076
  });
10994
11077
  }
10995
11078
  Download2DAutoCADDwg(custombcbeboid) {
11079
+ var _a;
10996
11080
  this.Download2DAutoCADDwgLoading = true;
10997
11081
  var request = new FabrikantenFileRequestModel();
10998
11082
  request.sessionId = this.FabrikantenViewModel.sessionId;
10999
11083
  request.fileType = "dwg";
11000
11084
  request.model3D = false;
11001
11085
  request.customBCBEBOId = custombcbeboid;
11086
+ if (this.StatisticsService.Active) {
11087
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11088
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11089
+ }
11090
+ }
11002
11091
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
11003
11092
  this.StartDownload(model.file + "", ".dwg");
11004
11093
  this.Download2DAutoCADDwgLoading = false;
@@ -11012,12 +11101,18 @@ class FabrikantenService {
11012
11101
  });
11013
11102
  }
11014
11103
  Download2DDxf(custombcbeboid) {
11104
+ var _a;
11015
11105
  this.Download2DDxfLoading = true;
11016
11106
  var request = new FabrikantenFileRequestModel();
11017
11107
  request.sessionId = this.FabrikantenViewModel.sessionId;
11018
11108
  request.fileType = "dxf";
11019
11109
  request.model3D = false;
11020
11110
  request.customBCBEBOId = custombcbeboid;
11111
+ if (this.StatisticsService.Active) {
11112
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11113
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11114
+ }
11115
+ }
11021
11116
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
11022
11117
  this.StartDownload(model.file + "", ".dxf");
11023
11118
  this.Download2DDxfLoading = false;
@@ -11031,12 +11126,18 @@ class FabrikantenService {
11031
11126
  });
11032
11127
  }
11033
11128
  DownloadRFA(custombcbeboid) {
11129
+ var _a;
11034
11130
  this.DownloadRFALoading = true;
11035
11131
  var request = new FabrikantenFileRequestModel();
11036
11132
  request.sessionId = this.FabrikantenViewModel.sessionId;
11037
11133
  request.fileType = "rfa";
11038
11134
  request.model3D = false;
11039
11135
  request.customBCBEBOId = custombcbeboid;
11136
+ if (this.StatisticsService.Active) {
11137
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11138
+ this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11139
+ }
11140
+ }
11040
11141
  this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
11041
11142
  if (model.customRFAZip) {
11042
11143
  this.StartDownload(model.file + "", ".zip");
@@ -11070,6 +11171,7 @@ class FabrikantenService {
11070
11171
  }
11071
11172
  }
11072
11173
  DownloadBestek(data) {
11174
+ var _a;
11073
11175
  if (this.BestekService.TypeBestek == "STABU") {
11074
11176
  this.DownloadBestekInner(data, ".S01");
11075
11177
  }
@@ -11079,6 +11181,11 @@ class FabrikantenService {
11079
11181
  if (this.BestekService.TypeBestek == "Vrij") {
11080
11182
  this.DownloadBestekInner(data, ".txt");
11081
11183
  }
11184
+ if (this.StatisticsService.Active) {
11185
+ if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
11186
+ this.StatisticsService.DownloadFile("bestek", this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
11187
+ }
11188
+ }
11082
11189
  }
11083
11190
  DownloadBestekInner(data, extension) {
11084
11191
  var c = document.createElement("a");
@@ -11189,12 +11296,12 @@ class FabrikantenService {
11189
11296
  return toebehoren;
11190
11297
  }
11191
11298
  }
11192
- FabrikantenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, deps: [{ token: FabrikantenApiClient }, { token: BestekService }, { token: TranslateService }, { token: WebGLService }, { token: SVGService }, { token: TextureService }, { token: NavigateService }], target: i0.ɵɵFactoryTarget.Injectable });
11299
+ FabrikantenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, deps: [{ token: FabrikantenApiClient }, { token: BestekService }, { token: TranslateService }, { token: WebGLService }, { token: SVGService }, { token: TextureService }, { token: NavigateService }, { token: StatisticsService }], target: i0.ɵɵFactoryTarget.Injectable });
11193
11300
  FabrikantenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, providedIn: 'root' });
11194
11301
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, decorators: [{
11195
11302
  type: Injectable,
11196
11303
  args: [{ providedIn: 'root' }]
11197
- }], ctorParameters: function () { return [{ type: FabrikantenApiClient }, { type: BestekService }, { type: TranslateService }, { type: WebGLService }, { type: SVGService }, { type: TextureService }, { type: NavigateService }]; } });
11304
+ }], ctorParameters: function () { return [{ type: FabrikantenApiClient }, { type: BestekService }, { type: TranslateService }, { type: WebGLService }, { type: SVGService }, { type: TextureService }, { type: NavigateService }, { type: StatisticsService }]; } });
11198
11305
 
11199
11306
  class FabFiltersComponent {
11200
11307
  constructor(MobileService, FabrikantenService, BestekService, TranslateService, ActivatedRoute, ChangeDetectorRef) {
@@ -15644,7 +15751,7 @@ FabrikantenCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
15644
15751
  ToebehorenService,
15645
15752
  TextureService,
15646
15753
  SVGService,
15647
- GoogleAnalyticsService,
15754
+ StatisticsService,
15648
15755
  MobileService,
15649
15756
  TranslateService,
15650
15757
  FabrikantenService,
@@ -15660,8 +15767,7 @@ FabrikantenCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
15660
15767
  ProductsApiClient,
15661
15768
  ProjectSettingApiClient,
15662
15769
  { provide: HTTP_INTERCEPTORS, useClass: BasicAuthInterceptor, multi: true },
15663
- { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
15664
- { provide: 'googleTagManagerId', useValue: "G-XK4L5JFYTN" }
15770
+ { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
15665
15771
  ], imports: [CommonModule,
15666
15772
  HttpClientModule,
15667
15773
  MatInputModule,
@@ -15687,7 +15793,6 @@ FabrikantenCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
15687
15793
  MatProgressSpinnerModule,
15688
15794
  MatSelectModule,
15689
15795
  MatSnackBarModule,
15690
- //GoogleTagManagerModule.forRoot(),
15691
15796
  RouterModule.forRoot(routes, {
15692
15797
  scrollPositionRestoration: 'enabled',
15693
15798
  anchorScrolling: 'enabled',
@@ -15721,7 +15826,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
15721
15826
  MatProgressSpinnerModule,
15722
15827
  MatSelectModule,
15723
15828
  MatSnackBarModule,
15724
- //GoogleTagManagerModule.forRoot(),
15725
15829
  RouterModule.forRoot(routes, {
15726
15830
  scrollPositionRestoration: 'enabled',
15727
15831
  anchorScrolling: 'enabled',
@@ -15809,7 +15913,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
15809
15913
  ToebehorenService,
15810
15914
  TextureService,
15811
15915
  SVGService,
15812
- GoogleAnalyticsService,
15916
+ StatisticsService,
15813
15917
  MobileService,
15814
15918
  TranslateService,
15815
15919
  FabrikantenService,
@@ -15825,8 +15929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
15825
15929
  ProductsApiClient,
15826
15930
  ProjectSettingApiClient,
15827
15931
  { provide: HTTP_INTERCEPTORS, useClass: BasicAuthInterceptor, multi: true },
15828
- { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
15829
- { provide: 'googleTagManagerId', useValue: "G-XK4L5JFYTN" }
15932
+ { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
15830
15933
  ],
15831
15934
  exports: [
15832
15935
  FabFiltersComponent,