@posiwise/user-module 0.0.175 → 0.0.177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import * as i8$1 from "@angular/common";
1
+ import * as i7$2 from "@angular/common";
2
2
  import { CommonModule } from "@angular/common";
3
3
  import * as i0 from "@angular/core";
4
4
  import { Component, Directive, EventEmitter, HostListener, Input, NgModule, Optional, Output, Pipe, Self, ViewChild } from "@angular/core";
@@ -6,38 +6,40 @@ import * as i1$1 from "@angular/forms";
6
6
  import { FormsModule, ReactiveFormsModule, Validators } from "@angular/forms";
7
7
  import * as i1$2 from "@angular/router";
8
8
  import { RouterModule } from "@angular/router";
9
- import * as i9 from "@angular-magic/ngx-gp-autocomplete";
9
+ import * as i9$1 from "@angular-magic/ngx-gp-autocomplete";
10
10
  import { NgxGpAutocompleteModule } from "@angular-magic/ngx-gp-autocomplete";
11
11
  import { AppConfigService } from "@posiwise/app-config-service";
12
- import * as i6$3 from "@posiwise/app-loader";
12
+ import * as i5$2 from "@posiwise/app-loader";
13
13
  import { AppLoaderModule } from "@posiwise/app-loader";
14
+ import * as i8$1 from "@posiwise/core-guards";
15
+ import { TrackDirtyFormDirective } from "@posiwise/core-guards";
14
16
  import { CoreTranslocoModule } from "@posiwise/core-transloco";
15
- import * as i7$1 from "@posiwise/directives";
17
+ import * as i6$2 from "@posiwise/directives";
16
18
  import { DirectivesModule } from "@posiwise/directives";
17
- import * as i6$2 from "@posiwise/pipes";
19
+ import * as i6$1 from "@posiwise/pipes";
18
20
  import { PipesModule } from "@posiwise/pipes";
19
21
  import * as i2$3 from "@posiwise/shared-components";
20
22
  import { SharedComponentsModule } from "@posiwise/shared-components";
21
- import * as i5 from "ngx-captcha";
23
+ import * as i6 from "ngx-captcha";
22
24
  import { NgxCaptchaModule } from "ngx-captcha";
23
- import * as i12 from "ngx-ui-switch";
25
+ import * as i13 from "ngx-ui-switch";
24
26
  import { UiSwitchModule } from "ngx-ui-switch";
25
27
  import * as i2 from "primeng/accordion";
26
28
  import { AccordionModule } from "primeng/accordion";
27
- import * as i7 from "primeng/datepicker";
29
+ import * as i8 from "primeng/datepicker";
28
30
  import { DatePickerModule } from "primeng/datepicker";
29
- import * as i6$1 from "primeng/fileupload";
31
+ import * as i7$1 from "primeng/fileupload";
30
32
  import { FileUploadModule } from "primeng/fileupload";
31
33
  import * as i1 from "primeng/inputtext";
32
34
  import { InputTextModule } from "primeng/inputtext";
33
35
  import { MultiSelectModule } from "primeng/multiselect";
34
- import * as i12$1 from "primeng/progressspinner";
36
+ import * as i12 from "primeng/progressspinner";
35
37
  import { ProgressSpinnerModule } from "primeng/progressspinner";
36
- import * as i6 from "primeng/rating";
38
+ import * as i7 from "primeng/rating";
37
39
  import { RatingModule } from "primeng/rating";
38
40
  import * as i11 from "primeng/select";
39
41
  import { SelectModule } from "primeng/select";
40
- import * as i8 from "primeng/selectbutton";
42
+ import * as i9 from "primeng/selectbutton";
41
43
  import { SelectButtonModule } from "primeng/selectbutton";
42
44
  import * as i10 from "primeng/tooltip";
43
45
  import { TooltipModule } from "primeng/tooltip";
@@ -48,25 +50,24 @@ import { __decorate } from "tslib";
48
50
  import { AppBaseComponent } from "@posiwise/app-base-component";
49
51
  import { AppUser, POLL_TIMEOUT, PRODUCT_CATEGORY, Project, TAG_ENTITY, TAG_TYPE } from "@posiwise/common-utilities";
50
52
  import { HelperService } from "@posiwise/helper-service";
51
- import * as i13 from "@posiwise/utils";
53
+ import * as i13$1 from "@posiwise/utils";
52
54
  import { ValidateForm, appendQueryParam, clearQueryParams } from "@posiwise/utils";
53
55
  import { StatusCodes } from "http-status-codes";
54
56
  import { firstValueFrom, forkJoin, from, interval, map } from "rxjs";
55
57
  import { getDomain } from "tldts";
56
58
  import * as i3 from "@posiwise/common-services";
57
59
  import { FormHelperService, PermissionService, ValidationService, hasKnowledgeAlpha } from "@posiwise/common-services";
58
- import * as i5$2 from "@posiwise/core-guards";
59
60
  import * as i14 from "@jsverse/transloco";
60
61
  import cloneDeep from "lodash/cloneDeep";
61
62
  import sortBy from "lodash/sortBy";
62
63
  import { distinct, mergeMap } from "rxjs/operators";
63
64
  import { HttpErrorResponse, HttpParams } from "@angular/common/http";
64
65
  import { GetUser, getUser } from "@posiwise/app-store";
65
- import * as i4$3 from "@ngrx/store";
66
+ import * as i4$2 from "@ngrx/store";
66
67
  import * as i2$1 from "@posiwise/admin-module-utils";
67
68
  import { AppAdmin } from "@posiwise/admin-module-utils";
68
69
  import * as i5$1 from "@angular/cdk/clipboard";
69
- import * as i4$2 from "primeng/table";
70
+ import * as i5 from "primeng/table";
70
71
  import moment from "moment";
71
72
  import * as i4$1 from "primeng/autocomplete";
72
73
  import * as i4 from "primeng/tabs";
@@ -160,7 +161,7 @@ const MCP_ENV_SEGMENTS = [
160
161
  ];
161
162
  const MCP_PROD_SEGMENT = "go";
162
163
  var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseComponent {
163
- constructor(fb, modalService, authService, geoService, profileService, injector, cdr, confirmDialog, unsavedChanges) {
164
+ constructor(fb, modalService, authService, geoService, profileService, injector, cdr, confirmDialog) {
164
165
  super(injector);
165
166
  this.fb = fb;
166
167
  this.modalService = modalService;
@@ -169,7 +170,6 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
169
170
  this.profileService = profileService;
170
171
  this.cdr = cdr;
171
172
  this.confirmDialog = confirmDialog;
172
- this.unsavedChanges = unsavedChanges;
173
173
  this.image = "assets/img/icons/male.png";
174
174
  this.states = [];
175
175
  this.passwordVerified = false;
@@ -186,7 +186,6 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
186
186
  this.updatingScope = false;
187
187
  this.connections = [];
188
188
  this.loadingConnections = false;
189
- this.unregisterUnsaved = null;
190
189
  this.getForms();
191
190
  }
192
191
  ngOnInit() {
@@ -200,14 +199,6 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
200
199
  }, ...countries]));
201
200
  this.cdr.markForCheck();
202
201
  });
203
- this.unregisterUnsaved = this.unsavedChanges.watch(() => this.hasUnsavedChanges());
204
- }
205
- ngOnDestroy() {
206
- this.unregisterUnsaved?.();
207
- super.ngOnDestroy();
208
- }
209
- hasUnsavedChanges() {
210
- return !!(this.emailForm?.dirty || this.passwordForm?.dirty || this.profileForm?.dirty);
211
202
  }
212
203
  handleAddressChange(_event) {
213
204
  this.profileForm.patchValue({
@@ -538,8 +529,7 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
538
529
  { token: i3.ProfileService },
539
530
  { token: i0.Injector },
540
531
  { token: i0.ChangeDetectorRef },
541
- { token: i2$3.ConfirmDialogService },
542
- { token: i5$2.UnsavedChangesService }
532
+ { token: i2$3.ConfirmDialogService }
543
533
  ],
544
534
  target: i0.ɵɵFactoryTarget.Component
545
535
  });
@@ -569,7 +559,7 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
569
559
  dependencies: [
570
560
  {
571
561
  kind: "component",
572
- type: i6$3.AppLoaderComponent,
562
+ type: i5$2.AppLoaderComponent,
573
563
  selector: "pw-loader",
574
564
  inputs: [
575
565
  "isVisible",
@@ -579,18 +569,18 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
579
569
  },
580
570
  {
581
571
  kind: "directive",
582
- type: i7$1.ButtonBusyDirective,
572
+ type: i6$2.ButtonBusyDirective,
583
573
  selector: "[buttonBusy]",
584
574
  inputs: ["buttonBusy", "busyText"]
585
575
  },
586
576
  {
587
577
  kind: "directive",
588
- type: i7$1.LazyImgDirective,
578
+ type: i6$2.LazyImgDirective,
589
579
  selector: "img"
590
580
  },
591
581
  {
592
582
  kind: "directive",
593
- type: i8$1.NgClass,
583
+ type: i7$2.NgClass,
594
584
  selector: "[ngClass]",
595
585
  inputs: ["class", "ngClass"]
596
586
  },
@@ -635,7 +625,12 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
635
625
  },
636
626
  {
637
627
  kind: "directive",
638
- type: i9.NgxGpAutocompleteDirective,
628
+ type: i8$1.TrackDirtyFormDirective,
629
+ selector: "[formGroup]:not([formGroupSkipDirty])"
630
+ },
631
+ {
632
+ kind: "directive",
633
+ type: i9$1.NgxGpAutocompleteDirective,
639
634
  selector: "[ngx-gp-autocomplete]",
640
635
  inputs: ["options"],
641
636
  outputs: ["onAddressChange"],
@@ -741,7 +736,7 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
741
736
  },
742
737
  {
743
738
  kind: "component",
744
- type: i12$1.ProgressSpinner,
739
+ type: i12.ProgressSpinner,
745
740
  selector: "p-progress-spinner, p-progressspinner",
746
741
  inputs: [
747
742
  "value",
@@ -768,7 +763,7 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
768
763
  },
769
764
  {
770
765
  kind: "component",
771
- type: i13.ProfileImageCropperComponent,
766
+ type: i13$1.ProfileImageCropperComponent,
772
767
  selector: "pw-image-cropper",
773
768
  inputs: ["aspectRatio", "dynamicData"],
774
769
  outputs: [
@@ -837,17 +832,17 @@ var AccountDetailsComponent = class AccountDetailsComponent extends AppBaseCompo
837
832
  },
838
833
  {
839
834
  kind: "pipe",
840
- type: i8$1.AsyncPipe,
835
+ type: i7$2.AsyncPipe,
841
836
  name: "async"
842
837
  },
843
838
  {
844
839
  kind: "pipe",
845
- type: i8$1.DecimalPipe,
840
+ type: i7$2.DecimalPipe,
846
841
  name: "number"
847
842
  },
848
843
  {
849
844
  kind: "pipe",
850
- type: i8$1.DatePipe,
845
+ type: i7$2.DatePipe,
851
846
  name: "date"
852
847
  },
853
848
  {
@@ -882,8 +877,7 @@ i0.ɵɵngDeclareClassMetadata({
882
877
  { type: i3.ProfileService },
883
878
  { type: i0.Injector },
884
879
  { type: i0.ChangeDetectorRef },
885
- { type: i2$3.ConfirmDialogService },
886
- { type: i5$2.UnsavedChangesService }
880
+ { type: i2$3.ConfirmDialogService }
887
881
  ],
888
882
  propDecorators: {
889
883
  placesRef: [{
@@ -1013,7 +1007,7 @@ var AddSubscriptionComponent = class AddSubscriptionComponent extends AppBaseCom
1013
1007
  },
1014
1008
  {
1015
1009
  kind: "pipe",
1016
- type: i8$1.DecimalPipe,
1010
+ type: i7$2.DecimalPipe,
1017
1011
  name: "number"
1018
1012
  },
1019
1013
  {
@@ -1023,7 +1017,7 @@ var AddSubscriptionComponent = class AddSubscriptionComponent extends AppBaseCom
1023
1017
  },
1024
1018
  {
1025
1019
  kind: "pipe",
1026
- type: i6$2.CurrencySymbolPipe,
1020
+ type: i6$1.CurrencySymbolPipe,
1027
1021
  name: "currencySymbol"
1028
1022
  }
1029
1023
  ]
@@ -1301,13 +1295,11 @@ i0.ɵɵngDeclareClassMetadata({
1301
1295
  }]
1302
1296
  });
1303
1297
  var SubscriptionCredentialComponent = class SubscriptionCredentialComponent extends AppBaseComponent {
1304
- constructor(fb, subscriptionService, injector, cdr, unsavedChanges) {
1298
+ constructor(fb, subscriptionService, injector, cdr) {
1305
1299
  super(injector);
1306
1300
  this.fb = fb;
1307
1301
  this.subscriptionService = subscriptionService;
1308
1302
  this.cdr = cdr;
1309
- this.unsavedChanges = unsavedChanges;
1310
- this.unregisterUnsaved = null;
1311
1303
  this.data = [];
1312
1304
  this.availableCredentials = [];
1313
1305
  this.uniqueCredential = [];
@@ -1325,10 +1317,6 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1325
1317
  if (this.subscriptionId) this.getAllCredentials();
1326
1318
  this.cdr.markForCheck();
1327
1319
  });
1328
- this.unregisterUnsaved = this.unsavedChanges.watch(() => this.hasUnsavedChanges());
1329
- }
1330
- hasUnsavedChanges() {
1331
- return !!this.form?.dirty;
1332
1320
  }
1333
1321
  get credentialsGroup() {
1334
1322
  return this.form.get("credentials");
@@ -1457,10 +1445,6 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1457
1445
  this.isEdit = false;
1458
1446
  this.showForm = true;
1459
1447
  }
1460
- ngOnDestroy() {
1461
- this.unregisterUnsaved?.();
1462
- super.ngOnDestroy();
1463
- }
1464
1448
  static {
1465
1449
  this.ɵfac = i0.ɵɵngDeclareFactory({
1466
1450
  minVersion: "12.0.0",
@@ -1471,8 +1455,7 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1471
1455
  { token: i1$1.UntypedFormBuilder },
1472
1456
  { token: i3.SubscriptionService },
1473
1457
  { token: i0.Injector },
1474
- { token: i0.ChangeDetectorRef },
1475
- { token: i5$2.UnsavedChangesService }
1458
+ { token: i0.ChangeDetectorRef }
1476
1459
  ],
1477
1460
  target: i0.ɵɵFactoryTarget.Component
1478
1461
  });
@@ -1511,7 +1494,7 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1511
1494
  dependencies: [
1512
1495
  {
1513
1496
  kind: "component",
1514
- type: i6$3.AppLoaderComponent,
1497
+ type: i5$2.AppLoaderComponent,
1515
1498
  selector: "pw-loader",
1516
1499
  inputs: [
1517
1500
  "isVisible",
@@ -1521,13 +1504,13 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1521
1504
  },
1522
1505
  {
1523
1506
  kind: "directive",
1524
- type: i7$1.ButtonBusyDirective,
1507
+ type: i6$2.ButtonBusyDirective,
1525
1508
  selector: "[buttonBusy]",
1526
1509
  inputs: ["buttonBusy", "busyText"]
1527
1510
  },
1528
1511
  {
1529
1512
  kind: "directive",
1530
- type: i8$1.NgClass,
1513
+ type: i7$2.NgClass,
1531
1514
  selector: "[ngClass]",
1532
1515
  inputs: ["class", "ngClass"]
1533
1516
  },
@@ -1582,6 +1565,11 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1582
1565
  selector: "[formArrayName]",
1583
1566
  inputs: ["formArrayName"]
1584
1567
  },
1568
+ {
1569
+ kind: "directive",
1570
+ type: i8$1.TrackDirtyFormDirective,
1571
+ selector: "[formGroup]:not([formGroupSkipDirty])"
1572
+ },
1585
1573
  {
1586
1574
  kind: "component",
1587
1575
  type: i2$3.PasswordValidationComponent,
@@ -1699,7 +1687,7 @@ var SubscriptionCredentialComponent = class SubscriptionCredentialComponent exte
1699
1687
  },
1700
1688
  {
1701
1689
  kind: "pipe",
1702
- type: i8$1.AsyncPipe,
1690
+ type: i7$2.AsyncPipe,
1703
1691
  name: "async"
1704
1692
  },
1705
1693
  {
@@ -1744,8 +1732,7 @@ i0.ɵɵngDeclareClassMetadata({
1744
1732
  { type: i1$1.UntypedFormBuilder },
1745
1733
  { type: i3.SubscriptionService },
1746
1734
  { type: i0.Injector },
1747
- { type: i0.ChangeDetectorRef },
1748
- { type: i5$2.UnsavedChangesService }
1735
+ { type: i0.ChangeDetectorRef }
1749
1736
  ],
1750
1737
  propDecorators: {
1751
1738
  passwordValidationModalForRevealCredential: [{
@@ -1993,7 +1980,7 @@ var SecondaryPaymentMethodComponent = class SecondaryPaymentMethodComponent {
1993
1980
  dependencies: [
1994
1981
  {
1995
1982
  kind: "directive",
1996
- type: i7$1.ButtonBusyDirective,
1983
+ type: i6$2.ButtonBusyDirective,
1997
1984
  selector: "[buttonBusy]",
1998
1985
  inputs: ["buttonBusy", "busyText"]
1999
1986
  },
@@ -2027,7 +2014,7 @@ var SecondaryPaymentMethodComponent = class SecondaryPaymentMethodComponent {
2027
2014
  },
2028
2015
  {
2029
2016
  kind: "component",
2030
- type: i12$1.ProgressSpinner,
2017
+ type: i12.ProgressSpinner,
2031
2018
  selector: "p-progress-spinner, p-progressspinner",
2032
2019
  inputs: [
2033
2020
  "value",
@@ -2167,6 +2154,7 @@ var UpdatePaymentDetailsComponent = class UpdatePaymentDetailsComponent extends
2167
2154
  this.subscriptionService.updateCardDetails(this.form.value, this.subscriptionId).subscribe({ next: (response) => {
2168
2155
  if (response.error) this.toast.error(response.error.errors[0].message);
2169
2156
  else if (response.status === StatusCodes.CREATED) this.toast.success(response.message);
2157
+ this.form.markAsPristine();
2170
2158
  this.cancel();
2171
2159
  } }).add(() => {
2172
2160
  this.busy = false;
@@ -2210,13 +2198,13 @@ var UpdatePaymentDetailsComponent = class UpdatePaymentDetailsComponent extends
2210
2198
  dependencies: [
2211
2199
  {
2212
2200
  kind: "directive",
2213
- type: i7$1.ButtonBusyDirective,
2201
+ type: i6$2.ButtonBusyDirective,
2214
2202
  selector: "[buttonBusy]",
2215
2203
  inputs: ["buttonBusy", "busyText"]
2216
2204
  },
2217
2205
  {
2218
2206
  kind: "directive",
2219
- type: i7$1.LazyImgDirective,
2207
+ type: i6$2.LazyImgDirective,
2220
2208
  selector: "img"
2221
2209
  },
2222
2210
  {
@@ -2258,6 +2246,11 @@ var UpdatePaymentDetailsComponent = class UpdatePaymentDetailsComponent extends
2258
2246
  ],
2259
2247
  outputs: ["ngModelChange"]
2260
2248
  },
2249
+ {
2250
+ kind: "directive",
2251
+ type: i8$1.TrackDirtyFormDirective,
2252
+ selector: "[formGroup]:not([formGroupSkipDirty])"
2253
+ },
2261
2254
  {
2262
2255
  kind: "component",
2263
2256
  type: i11.Select,
@@ -2330,7 +2323,7 @@ var UpdatePaymentDetailsComponent = class UpdatePaymentDetailsComponent extends
2330
2323
  },
2331
2324
  {
2332
2325
  kind: "component",
2333
- type: i12$1.ProgressSpinner,
2326
+ type: i12.ProgressSpinner,
2334
2327
  selector: "p-progress-spinner, p-progressspinner",
2335
2328
  inputs: [
2336
2329
  "value",
@@ -2492,6 +2485,7 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
2492
2485
  };
2493
2486
  this.userService.addNewSubscriptionUsingStripe(data).subscribe({
2494
2487
  next: () => {
2488
+ this.form.markAsPristine();
2495
2489
  this.toast.success(this.translation.translate("User.Subscriptions.SubscriptionPurchased"));
2496
2490
  this.router.navigate(["/account/subscriptions"]);
2497
2491
  this.modalService.dismissAll();
@@ -2551,6 +2545,7 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
2551
2545
  next: (response) => {
2552
2546
  this.store.dispatch(new GetUser());
2553
2547
  if (response.id) {
2548
+ this.form.markAsPristine();
2554
2549
  this.router.navigate(["/account/subscriptions"]);
2555
2550
  this.toast.success(this.translation.translate("User.Subscriptions.SubscriptionPurchased"));
2556
2551
  this.isPurchaseAttempted = false;
@@ -2639,7 +2634,7 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
2639
2634
  { token: i1$1.UntypedFormBuilder },
2640
2635
  { token: i2$2.NgbModal },
2641
2636
  { token: i3.SubscriptionService },
2642
- { token: i4$3.Store },
2637
+ { token: i4$2.Store },
2643
2638
  { token: i3.ScriptLoaderService },
2644
2639
  { token: i0.ChangeDetectorRef },
2645
2640
  { token: i2$3.ConfirmDialogService }
@@ -2668,13 +2663,13 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
2668
2663
  dependencies: [
2669
2664
  {
2670
2665
  kind: "directive",
2671
- type: i7$1.ButtonBusyDirective,
2666
+ type: i6$2.ButtonBusyDirective,
2672
2667
  selector: "[buttonBusy]",
2673
2668
  inputs: ["buttonBusy", "busyText"]
2674
2669
  },
2675
2670
  {
2676
2671
  kind: "directive",
2677
- type: i7$1.LazyImgDirective,
2672
+ type: i6$2.LazyImgDirective,
2678
2673
  selector: "img"
2679
2674
  },
2680
2675
  {
@@ -2735,6 +2730,11 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
2735
2730
  ],
2736
2731
  outputs: ["ngModelChange"]
2737
2732
  },
2733
+ {
2734
+ kind: "directive",
2735
+ type: i8$1.TrackDirtyFormDirective,
2736
+ selector: "[formGroup]:not([formGroupSkipDirty])"
2737
+ },
2738
2738
  {
2739
2739
  kind: "component",
2740
2740
  type: i2$3.PasswordValidationComponent,
@@ -2863,7 +2863,7 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
2863
2863
  },
2864
2864
  {
2865
2865
  kind: "pipe",
2866
- type: i8$1.DecimalPipe,
2866
+ type: i7$2.DecimalPipe,
2867
2867
  name: "number"
2868
2868
  },
2869
2869
  {
@@ -2896,7 +2896,7 @@ i0.ɵɵngDeclareClassMetadata({
2896
2896
  { type: i1$1.UntypedFormBuilder },
2897
2897
  { type: i2$2.NgbModal },
2898
2898
  { type: i3.SubscriptionService },
2899
- { type: i4$3.Store },
2899
+ { type: i4$2.Store },
2900
2900
  { type: i3.ScriptLoaderService },
2901
2901
  { type: i0.ChangeDetectorRef },
2902
2902
  { type: i2$3.ConfirmDialogService }
@@ -3050,6 +3050,7 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3050
3050
  const formValue = { ...this.form.value };
3051
3051
  if (formValue.invoice_recipient_emails) formValue.invoice_recipient_emails = formValue.invoice_recipient_emails.split(",").map((email) => email.trim()).join(",");
3052
3052
  this.subscriptionService.updateSubscription(Number(this.subscriptionId), formValue).subscribe(() => {
3053
+ this.form.markAsPristine();
3053
3054
  this.toast.success("Subscription details updated.");
3054
3055
  this.store.dispatch(new GetUser());
3055
3056
  this.back();
@@ -3129,7 +3130,7 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3129
3130
  { token: i3.GeoService },
3130
3131
  { token: i2$2.NgbModal },
3131
3132
  { token: i3.SubscriptionService },
3132
- { token: i4$3.Store },
3133
+ { token: i4$2.Store },
3133
3134
  { token: i0.Injector },
3134
3135
  { token: i0.ChangeDetectorRef },
3135
3136
  { token: i2$3.ConfirmDialogService }
@@ -3158,24 +3159,24 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3158
3159
  dependencies: [
3159
3160
  {
3160
3161
  kind: "directive",
3161
- type: i7$1.ButtonBusyDirective,
3162
+ type: i6$2.ButtonBusyDirective,
3162
3163
  selector: "[buttonBusy]",
3163
3164
  inputs: ["buttonBusy", "busyText"]
3164
3165
  },
3165
3166
  {
3166
3167
  kind: "directive",
3167
- type: i7$1.LazyImgDirective,
3168
+ type: i6$2.LazyImgDirective,
3168
3169
  selector: "img"
3169
3170
  },
3170
3171
  {
3171
3172
  kind: "directive",
3172
- type: i7$1.RbacAllowDirective,
3173
+ type: i6$2.RbacAllowDirective,
3173
3174
  selector: "[rbacAllow]",
3174
3175
  inputs: ["rbacAllow"]
3175
3176
  },
3176
3177
  {
3177
3178
  kind: "directive",
3178
- type: i8$1.NgClass,
3179
+ type: i7$2.NgClass,
3179
3180
  selector: "[ngClass]",
3180
3181
  inputs: ["class", "ngClass"]
3181
3182
  },
@@ -3239,7 +3240,12 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3239
3240
  },
3240
3241
  {
3241
3242
  kind: "directive",
3242
- type: i9.NgxGpAutocompleteDirective,
3243
+ type: i8$1.TrackDirtyFormDirective,
3244
+ selector: "[formGroup]:not([formGroupSkipDirty])"
3245
+ },
3246
+ {
3247
+ kind: "directive",
3248
+ type: i9$1.NgxGpAutocompleteDirective,
3243
3249
  selector: "[ngx-gp-autocomplete]",
3244
3250
  inputs: ["options"],
3245
3251
  outputs: ["onAddressChange"],
@@ -3352,7 +3358,7 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3352
3358
  },
3353
3359
  {
3354
3360
  kind: "component",
3355
- type: i12.UiSwitchComponent,
3361
+ type: i13.UiSwitchComponent,
3356
3362
  selector: "ui-switch",
3357
3363
  inputs: [
3358
3364
  "size",
@@ -3418,7 +3424,7 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3418
3424
  },
3419
3425
  {
3420
3426
  kind: "component",
3421
- type: i13.ProfileImageCropperComponent,
3427
+ type: i13$1.ProfileImageCropperComponent,
3422
3428
  selector: "pw-image-cropper",
3423
3429
  inputs: ["aspectRatio", "dynamicData"],
3424
3430
  outputs: [
@@ -3452,17 +3458,17 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3452
3458
  },
3453
3459
  {
3454
3460
  kind: "pipe",
3455
- type: i8$1.AsyncPipe,
3461
+ type: i7$2.AsyncPipe,
3456
3462
  name: "async"
3457
3463
  },
3458
3464
  {
3459
3465
  kind: "pipe",
3460
- type: i8$1.DecimalPipe,
3466
+ type: i7$2.DecimalPipe,
3461
3467
  name: "number"
3462
3468
  },
3463
3469
  {
3464
3470
  kind: "pipe",
3465
- type: i8$1.CurrencyPipe,
3471
+ type: i7$2.CurrencyPipe,
3466
3472
  name: "currency"
3467
3473
  },
3468
3474
  {
@@ -3472,7 +3478,7 @@ var UserSubscriptionDetailsComponent = class UserSubscriptionDetailsComponent ex
3472
3478
  },
3473
3479
  {
3474
3480
  kind: "pipe",
3475
- type: i6$2.CurrencySymbolPipe,
3481
+ type: i6$1.CurrencySymbolPipe,
3476
3482
  name: "currencySymbol"
3477
3483
  }
3478
3484
  ]
@@ -3498,7 +3504,7 @@ i0.ɵɵngDeclareClassMetadata({
3498
3504
  { type: i3.GeoService },
3499
3505
  { type: i2$2.NgbModal },
3500
3506
  { type: i3.SubscriptionService },
3501
- { type: i4$3.Store },
3507
+ { type: i4$2.Store },
3502
3508
  { type: i0.Injector },
3503
3509
  { type: i0.ChangeDetectorRef },
3504
3510
  { type: i2$3.ConfirmDialogService }
@@ -3704,7 +3710,7 @@ var UserSubscriptionListComponent = class UserSubscriptionListComponent extends
3704
3710
  { token: i3.SubscriptionService },
3705
3711
  { token: i2$1.AdminService },
3706
3712
  { token: i2$2.NgbModal },
3707
- { token: i4$3.Store },
3713
+ { token: i4$2.Store },
3708
3714
  { token: i5$1.Clipboard },
3709
3715
  { token: i0.Injector },
3710
3716
  { token: i0.ChangeDetectorRef },
@@ -3765,13 +3771,13 @@ var UserSubscriptionListComponent = class UserSubscriptionListComponent extends
3765
3771
  dependencies: [
3766
3772
  {
3767
3773
  kind: "directive",
3768
- type: i7$1.RbacAllowDirective,
3774
+ type: i6$2.RbacAllowDirective,
3769
3775
  selector: "[rbacAllow]",
3770
3776
  inputs: ["rbacAllow"]
3771
3777
  },
3772
3778
  {
3773
3779
  kind: "directive",
3774
- type: i8$1.NgClass,
3780
+ type: i7$2.NgClass,
3775
3781
  selector: "[ngClass]",
3776
3782
  inputs: ["class", "ngClass"]
3777
3783
  },
@@ -3854,7 +3860,7 @@ var UserSubscriptionListComponent = class UserSubscriptionListComponent extends
3854
3860
  },
3855
3861
  {
3856
3862
  kind: "component",
3857
- type: i12$1.ProgressSpinner,
3863
+ type: i12.ProgressSpinner,
3858
3864
  selector: "p-progress-spinner, p-progressspinner",
3859
3865
  inputs: [
3860
3866
  "value",
@@ -3897,12 +3903,12 @@ var UserSubscriptionListComponent = class UserSubscriptionListComponent extends
3897
3903
  },
3898
3904
  {
3899
3905
  kind: "pipe",
3900
- type: i8$1.UpperCasePipe,
3906
+ type: i7$2.UpperCasePipe,
3901
3907
  name: "uppercase"
3902
3908
  },
3903
3909
  {
3904
3910
  kind: "pipe",
3905
- type: i8$1.DecimalPipe,
3911
+ type: i7$2.DecimalPipe,
3906
3912
  name: "number"
3907
3913
  },
3908
3914
  {
@@ -3912,7 +3918,7 @@ var UserSubscriptionListComponent = class UserSubscriptionListComponent extends
3912
3918
  },
3913
3919
  {
3914
3920
  kind: "pipe",
3915
- type: i6$2.DateFormatPipe,
3921
+ type: i6$1.DateFormatPipe,
3916
3922
  name: "dateFormat"
3917
3923
  }
3918
3924
  ]
@@ -3937,7 +3943,7 @@ i0.ɵɵngDeclareClassMetadata({
3937
3943
  { type: i3.SubscriptionService },
3938
3944
  { type: i2$1.AdminService },
3939
3945
  { type: i2$2.NgbModal },
3940
- { type: i4$3.Store },
3946
+ { type: i4$2.Store },
3941
3947
  { type: i5$1.Clipboard },
3942
3948
  { type: i0.Injector },
3943
3949
  { type: i0.ChangeDetectorRef },
@@ -3999,17 +4005,18 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
3999
4005
  });
4000
4006
  }
4001
4007
  fetchInvoices(paging) {
4002
- this.isLoaded = false;
4003
4008
  this.userStore().subscribe((user) => {
4004
4009
  if (user) {
4005
4010
  this.userId = user.id;
4006
4011
  this.userService.getUserInvoices(paging, user.id).subscribe((response) => {
4007
- this.isLoaded = true;
4008
4012
  this.invoices = response.invoices;
4009
4013
  this.totalRecords = response.object_count;
4010
4014
  this.totalRecordsUnFiltered = response.unfiltered_count;
4011
4015
  this.pollForInvoices();
4012
4016
  this.cdr.markForCheck();
4017
+ }).add(() => {
4018
+ this.isLoaded = true;
4019
+ this.cdr.markForCheck();
4013
4020
  });
4014
4021
  }
4015
4022
  this.cdr.markForCheck();
@@ -4044,7 +4051,7 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
4044
4051
  selector: "pw-user-invoice",
4045
4052
  usesInheritance: true,
4046
4053
  ngImport: i0,
4047
- template: "<div class=\"row\" [class.custom-disable-wrapper]=\"buttonBusy\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center\">\n <h2 class=\"card-title p-0 float-start\">Your Invoices</h2>\n </div>\n</div>\n\n@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n<div class=\"row primeng-datatable-container actions-collapsed mt-0\" [class.custom-disable-wrapper]=\"buttonBusy\" [class.hideTable]=\"totalRecordsUnFiltered === 0\">\n <div class=\"col-12 px-0\">\n <p-table #tt\n [value]=\"invoices\"\n [paginator]=\"totalRecords !== 0\"\n [rows]=\"PAGE_SIZE\"\n [lazy]=\"true\"\n [totalRecords]=\"totalRecords\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n stateKey=\"pw-table.user-invoice\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #caption>\n <div class=\"search-filter justify-content-end\">\n <div class=\"text-end\">\n <label for=\"user-invoice-search\" class=\"visually-hidden\">Search Invoices</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input id=\"user-invoice-search\"\n name=\"user-invoice-search\"\n [(ngModel)]=\"searchText\"\n (input)=\"tt.filterGlobal($event.target.value, 'contains')\"\n type=\"text\"\n pInputText\n placeholder=\"Search invoices...\"\n data-cy=\"incident-search\"\n aria-label=\"Search invoices...\" />\n </p-iconfield>\n </div>\n </div>\n </ng-template>\n\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"date\">Invoice Date <p-sort-icon field=\"date\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"frequency\">Frequency <p-sort-icon field=\"frequency\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"seatsPurchased\">Seats Purchased <p-sort-icon field=\"seatsPurchased\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"subtotal\">Subtotal <p-sort-icon field=\"subtotal\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"total\">Total (incl. tax) <p-sort-icon field=\"total\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\">Action</th>\n </tr>\n </ng-template>\n\n <ng-template #body let-invoice>\n <tr>\n <td>{{ invoice.date | date:'dd-MMM-yyyy' }}</td>\n <td>\n <span class=\"badge\"\n [appDynamicBadge]=\"{\n itemsArray: invoiceFrequency,\n item: invoice.product.billing_frequency\n }\"\n color=\"blue-grey\">{{ invoice.product.billing_frequency }}</span>\n </td>\n <td>{{ invoice?.subscription_product?.purchased_units }}</td>\n <td>{{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td class=\"td-total\">{{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td>\n @if (invoice?.file?.url) {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice.file.url\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n } @else {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice?.stripe_invoice_pdf\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n @if (totalRecords === 0 && totalRecordsUnFiltered !== 0) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\" >\n </pw-no-data>\n </div>\n }\n\n @if (totalRecords !== 0) {\n <pw-records-summary [showing]=\"tt?.value?.length ?? 0\" [total]=\"totalRecords\" />\n }\n\n </div>\n</div>\n@if (totalRecordsUnFiltered === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"You don't have any invoice yet.\">\n </pw-no-data>\n}\n\n",
4054
+ template: "<div class=\"row\" [class.custom-disable-wrapper]=\"buttonBusy\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center\">\n <h2 class=\"card-title p-0 float-start\">Your Invoices</h2>\n </div>\n</div>\n\n@if (!isLoaded) {\n <div class=\"w-100 mt-3\">\n <pw-skeleton-table [rows]=\"8\" [columns]=\"6\" [showCaption]=\"true\" />\n </div>\n}\n<div class=\"row primeng-datatable-container actions-collapsed mt-0\" [class.d-none]=\"!isLoaded\" [class.custom-disable-wrapper]=\"buttonBusy\" [class.hideTable]=\"totalRecordsUnFiltered === 0\">\n <div class=\"col-12 px-0\">\n <p-table #tt\n [value]=\"invoices\"\n [paginator]=\"totalRecords !== 0\"\n [rows]=\"PAGE_SIZE\"\n [lazy]=\"true\"\n [totalRecords]=\"totalRecords\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n stateKey=\"pw-table.user-invoice\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #caption>\n <div class=\"search-filter justify-content-end\">\n <div class=\"text-end\">\n <label for=\"user-invoice-search\" class=\"visually-hidden\">Search Invoices</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input id=\"user-invoice-search\"\n name=\"user-invoice-search\"\n [(ngModel)]=\"searchText\"\n (input)=\"tt.filterGlobal($event.target.value, 'contains')\"\n type=\"text\"\n pInputText\n placeholder=\"Search invoices...\"\n data-cy=\"incident-search\"\n aria-label=\"Search invoices...\" />\n </p-iconfield>\n </div>\n </div>\n </ng-template>\n\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"date\">Invoice Date <p-sort-icon field=\"date\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"frequency\">Frequency <p-sort-icon field=\"frequency\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"seatsPurchased\">Seats Purchased <p-sort-icon field=\"seatsPurchased\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"subtotal\">Subtotal <p-sort-icon field=\"subtotal\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"total\">Total (incl. tax) <p-sort-icon field=\"total\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\">Action</th>\n </tr>\n </ng-template>\n\n <ng-template #body let-invoice>\n <tr>\n <td>{{ invoice.date | date:'dd-MMM-yyyy' }}</td>\n <td>\n <span class=\"badge\"\n [appDynamicBadge]=\"{\n itemsArray: invoiceFrequency,\n item: invoice.product.billing_frequency\n }\"\n color=\"blue-grey\">{{ invoice.product.billing_frequency }}</span>\n </td>\n <td>{{ invoice?.subscription_product?.purchased_units }}</td>\n <td>{{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td class=\"td-total\">{{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td>\n @if (invoice?.file?.url) {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice.file.url\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n } @else {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice?.stripe_invoice_pdf\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n @if (totalRecords === 0 && totalRecordsUnFiltered !== 0) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\" >\n </pw-no-data>\n </div>\n }\n\n @if (totalRecords !== 0) {\n <pw-records-summary [showing]=\"tt?.value?.length ?? 0\" [total]=\"totalRecords\" />\n }\n\n </div>\n</div>\n@if (totalRecordsUnFiltered === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"You don't have any invoice yet.\">\n </pw-no-data>\n}\n\n",
4048
4055
  styles: [".page-heading{background:#fcfcfc;border-bottom:1px solid rgba(0,0,0,.1);position:relative;width:100%}.page-heading:after{clear:both;content:\"\";display:table}.page-heading .page-heading__container{padding:15px 20px;position:relative}.page-heading .page-heading__container .title{color:#242437;font-size:15px;font-weight:500;line-height:20px;margin:3px 0 0;overflow:hidden;padding:0;text-overflow:ellipsis;width:95%}.card .card-container{position:absolute;right:20px;top:25px;z-index:1}.td-total{font-weight:700}.card-inner-container{background:#0000000d;border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:20px}.invoice-text{display:flex;font-size:13px;justify-content:space-between;margin:10px 0}.invoice-template{min-height:calc(100vh - 190px)}\n"],
4049
4056
  dependencies: [
4050
4057
  {
@@ -4061,9 +4068,22 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
4061
4068
  "invalid"
4062
4069
  ]
4063
4070
  },
4071
+ {
4072
+ kind: "component",
4073
+ type: i5$2.SkeletonTableComponent,
4074
+ selector: "pw-skeleton-table",
4075
+ inputs: [
4076
+ "rows",
4077
+ "columns",
4078
+ "showHeader",
4079
+ "showCaption",
4080
+ "density",
4081
+ "delay"
4082
+ ]
4083
+ },
4064
4084
  {
4065
4085
  kind: "directive",
4066
- type: i7$1.DynamicBadgeDirective,
4086
+ type: i6$2.DynamicBadgeDirective,
4067
4087
  selector: "[appDynamicBadge]",
4068
4088
  inputs: [
4069
4089
  "appDynamicBadge",
@@ -4084,7 +4104,7 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
4084
4104
  },
4085
4105
  {
4086
4106
  kind: "component",
4087
- type: i4$2.Table,
4107
+ type: i5.Table,
4088
4108
  selector: "p-table",
4089
4109
  inputs: [
4090
4110
  "frozenColumns",
@@ -4197,36 +4217,22 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
4197
4217
  },
4198
4218
  {
4199
4219
  kind: "directive",
4200
- type: i4$2.SortableColumn,
4220
+ type: i5.SortableColumn,
4201
4221
  selector: "[pSortableColumn]",
4202
4222
  inputs: ["pSortableColumn", "pSortableColumnDisabled"]
4203
4223
  },
4204
4224
  {
4205
4225
  kind: "directive",
4206
- type: i4$2.ResizableColumn,
4226
+ type: i5.ResizableColumn,
4207
4227
  selector: "[pResizableColumn]",
4208
4228
  inputs: ["pResizableColumnDisabled"]
4209
4229
  },
4210
4230
  {
4211
4231
  kind: "component",
4212
- type: i4$2.SortIcon,
4232
+ type: i5.SortIcon,
4213
4233
  selector: "p-sort-icon, p-sorticon",
4214
4234
  inputs: ["field"]
4215
4235
  },
4216
- {
4217
- kind: "component",
4218
- type: i12$1.ProgressSpinner,
4219
- selector: "p-progress-spinner, p-progressspinner",
4220
- inputs: [
4221
- "value",
4222
- "strokeWidth",
4223
- "animationDuration",
4224
- "min",
4225
- "max",
4226
- "ariaLabel",
4227
- "fill"
4228
- ]
4229
- },
4230
4236
  {
4231
4237
  kind: "directive",
4232
4238
  type: i1$1.NgModel,
@@ -4258,12 +4264,12 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
4258
4264
  },
4259
4265
  {
4260
4266
  kind: "pipe",
4261
- type: i8$1.CurrencyPipe,
4267
+ type: i7$2.CurrencyPipe,
4262
4268
  name: "currency"
4263
4269
  },
4264
4270
  {
4265
4271
  kind: "pipe",
4266
- type: i8$1.DatePipe,
4272
+ type: i7$2.DatePipe,
4267
4273
  name: "date"
4268
4274
  },
4269
4275
  {
@@ -4285,7 +4291,7 @@ i0.ɵɵngDeclareClassMetadata({
4285
4291
  args: [{
4286
4292
  selector: "pw-user-invoice",
4287
4293
  standalone: false,
4288
- template: "<div class=\"row\" [class.custom-disable-wrapper]=\"buttonBusy\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center\">\n <h2 class=\"card-title p-0 float-start\">Your Invoices</h2>\n </div>\n</div>\n\n@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n<div class=\"row primeng-datatable-container actions-collapsed mt-0\" [class.custom-disable-wrapper]=\"buttonBusy\" [class.hideTable]=\"totalRecordsUnFiltered === 0\">\n <div class=\"col-12 px-0\">\n <p-table #tt\n [value]=\"invoices\"\n [paginator]=\"totalRecords !== 0\"\n [rows]=\"PAGE_SIZE\"\n [lazy]=\"true\"\n [totalRecords]=\"totalRecords\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n stateKey=\"pw-table.user-invoice\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #caption>\n <div class=\"search-filter justify-content-end\">\n <div class=\"text-end\">\n <label for=\"user-invoice-search\" class=\"visually-hidden\">Search Invoices</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input id=\"user-invoice-search\"\n name=\"user-invoice-search\"\n [(ngModel)]=\"searchText\"\n (input)=\"tt.filterGlobal($event.target.value, 'contains')\"\n type=\"text\"\n pInputText\n placeholder=\"Search invoices...\"\n data-cy=\"incident-search\"\n aria-label=\"Search invoices...\" />\n </p-iconfield>\n </div>\n </div>\n </ng-template>\n\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"date\">Invoice Date <p-sort-icon field=\"date\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"frequency\">Frequency <p-sort-icon field=\"frequency\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"seatsPurchased\">Seats Purchased <p-sort-icon field=\"seatsPurchased\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"subtotal\">Subtotal <p-sort-icon field=\"subtotal\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"total\">Total (incl. tax) <p-sort-icon field=\"total\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\">Action</th>\n </tr>\n </ng-template>\n\n <ng-template #body let-invoice>\n <tr>\n <td>{{ invoice.date | date:'dd-MMM-yyyy' }}</td>\n <td>\n <span class=\"badge\"\n [appDynamicBadge]=\"{\n itemsArray: invoiceFrequency,\n item: invoice.product.billing_frequency\n }\"\n color=\"blue-grey\">{{ invoice.product.billing_frequency }}</span>\n </td>\n <td>{{ invoice?.subscription_product?.purchased_units }}</td>\n <td>{{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td class=\"td-total\">{{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td>\n @if (invoice?.file?.url) {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice.file.url\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n } @else {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice?.stripe_invoice_pdf\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n @if (totalRecords === 0 && totalRecordsUnFiltered !== 0) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\" >\n </pw-no-data>\n </div>\n }\n\n @if (totalRecords !== 0) {\n <pw-records-summary [showing]=\"tt?.value?.length ?? 0\" [total]=\"totalRecords\" />\n }\n\n </div>\n</div>\n@if (totalRecordsUnFiltered === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"You don't have any invoice yet.\">\n </pw-no-data>\n}\n\n",
4294
+ template: "<div class=\"row\" [class.custom-disable-wrapper]=\"buttonBusy\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center\">\n <h2 class=\"card-title p-0 float-start\">Your Invoices</h2>\n </div>\n</div>\n\n@if (!isLoaded) {\n <div class=\"w-100 mt-3\">\n <pw-skeleton-table [rows]=\"8\" [columns]=\"6\" [showCaption]=\"true\" />\n </div>\n}\n<div class=\"row primeng-datatable-container actions-collapsed mt-0\" [class.d-none]=\"!isLoaded\" [class.custom-disable-wrapper]=\"buttonBusy\" [class.hideTable]=\"totalRecordsUnFiltered === 0\">\n <div class=\"col-12 px-0\">\n <p-table #tt\n [value]=\"invoices\"\n [paginator]=\"totalRecords !== 0\"\n [rows]=\"PAGE_SIZE\"\n [lazy]=\"true\"\n [totalRecords]=\"totalRecords\"\n (onLazyLoad)=\"onLazyLoad($event)\"\n stateKey=\"pw-table.user-invoice\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #caption>\n <div class=\"search-filter justify-content-end\">\n <div class=\"text-end\">\n <label for=\"user-invoice-search\" class=\"visually-hidden\">Search Invoices</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input id=\"user-invoice-search\"\n name=\"user-invoice-search\"\n [(ngModel)]=\"searchText\"\n (input)=\"tt.filterGlobal($event.target.value, 'contains')\"\n type=\"text\"\n pInputText\n placeholder=\"Search invoices...\"\n data-cy=\"incident-search\"\n aria-label=\"Search invoices...\" />\n </p-iconfield>\n </div>\n </div>\n </ng-template>\n\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"date\">Invoice Date <p-sort-icon field=\"date\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"frequency\">Frequency <p-sort-icon field=\"frequency\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"seatsPurchased\">Seats Purchased <p-sort-icon field=\"seatsPurchased\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"subtotal\">Subtotal <p-sort-icon field=\"subtotal\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\" pSortableColumn=\"total\">Total (incl. tax) <p-sort-icon field=\"total\"></p-sort-icon></th>\n <th pResizableColumn scope=\"col\">Action</th>\n </tr>\n </ng-template>\n\n <ng-template #body let-invoice>\n <tr>\n <td>{{ invoice.date | date:'dd-MMM-yyyy' }}</td>\n <td>\n <span class=\"badge\"\n [appDynamicBadge]=\"{\n itemsArray: invoiceFrequency,\n item: invoice.product.billing_frequency\n }\"\n color=\"blue-grey\">{{ invoice.product.billing_frequency }}</span>\n </td>\n <td>{{ invoice?.subscription_product?.purchased_units }}</td>\n <td>{{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td class=\"td-total\">{{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}</td>\n <td>\n @if (invoice?.file?.url) {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice.file.url\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n } @else {\n <a class=\"btn btn-sm btn-primary\" [attr.href]=\"invoice?.stripe_invoice_pdf\" target=\"_blank\" title=\"Download\">\n <i class=\"fa fa-download\">&nbsp;Download</i>\n </a>\n }\n </td>\n </tr>\n </ng-template>\n </p-table>\n @if (totalRecords === 0 && totalRecordsUnFiltered !== 0) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\" >\n </pw-no-data>\n </div>\n }\n\n @if (totalRecords !== 0) {\n <pw-records-summary [showing]=\"tt?.value?.length ?? 0\" [total]=\"totalRecords\" />\n }\n\n </div>\n</div>\n@if (totalRecordsUnFiltered === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"You don't have any invoice yet.\">\n </pw-no-data>\n}\n\n",
4289
4295
  styles: [".page-heading{background:#fcfcfc;border-bottom:1px solid rgba(0,0,0,.1);position:relative;width:100%}.page-heading:after{clear:both;content:\"\";display:table}.page-heading .page-heading__container{padding:15px 20px;position:relative}.page-heading .page-heading__container .title{color:#242437;font-size:15px;font-weight:500;line-height:20px;margin:3px 0 0;overflow:hidden;padding:0;text-overflow:ellipsis;width:95%}.card .card-container{position:absolute;right:20px;top:25px;z-index:1}.td-total{font-weight:700}.card-inner-container{background:#0000000d;border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:20px}.invoice-text{display:flex;font-size:13px;justify-content:space-between;margin:10px 0}.invoice-template{min-height:calc(100vh - 190px)}\n"]
4290
4296
  }]
4291
4297
  }],
@@ -4329,7 +4335,7 @@ var AiKnowledgeTabComponent = class AiKnowledgeTabComponent {
4329
4335
  dependencies: [
4330
4336
  {
4331
4337
  kind: "component",
4332
- type: i6$3.AppLoaderComponent,
4338
+ type: i5$2.AppLoaderComponent,
4333
4339
  selector: "pw-loader",
4334
4340
  inputs: [
4335
4341
  "isVisible",
@@ -4447,7 +4453,7 @@ var CommunicationTabComponent = class CommunicationTabComponent extends AppBaseC
4447
4453
  deps: [
4448
4454
  { token: i3.CommonService },
4449
4455
  { token: i3.ProfileService },
4450
- { token: i4$3.Store },
4456
+ { token: i4$2.Store },
4451
4457
  { token: i0.Injector },
4452
4458
  { token: i0.ChangeDetectorRef }
4453
4459
  ],
@@ -4468,7 +4474,7 @@ var CommunicationTabComponent = class CommunicationTabComponent extends AppBaseC
4468
4474
  dependencies: [
4469
4475
  {
4470
4476
  kind: "component",
4471
- type: i12$1.ProgressSpinner,
4477
+ type: i12.ProgressSpinner,
4472
4478
  selector: "p-progress-spinner, p-progressspinner",
4473
4479
  inputs: [
4474
4480
  "value",
@@ -4482,7 +4488,7 @@ var CommunicationTabComponent = class CommunicationTabComponent extends AppBaseC
4482
4488
  },
4483
4489
  {
4484
4490
  kind: "component",
4485
- type: i12.UiSwitchComponent,
4491
+ type: i13.UiSwitchComponent,
4486
4492
  selector: "ui-switch",
4487
4493
  inputs: [
4488
4494
  "size",
@@ -4544,7 +4550,7 @@ i0.ɵɵngDeclareClassMetadata({
4544
4550
  ctorParameters: () => [
4545
4551
  { type: i3.CommonService },
4546
4552
  { type: i3.ProfileService },
4547
- { type: i4$3.Store },
4553
+ { type: i4$2.Store },
4548
4554
  { type: i0.Injector },
4549
4555
  { type: i0.ChangeDetectorRef }
4550
4556
  ]
@@ -4629,7 +4635,7 @@ var OthersTabComponent = class OthersTabComponent extends AppBaseComponent {
4629
4635
  dependencies: [
4630
4636
  {
4631
4637
  kind: "component",
4632
- type: i12$1.ProgressSpinner,
4638
+ type: i12.ProgressSpinner,
4633
4639
  selector: "p-progress-spinner, p-progressspinner",
4634
4640
  inputs: [
4635
4641
  "value",
@@ -4643,7 +4649,7 @@ var OthersTabComponent = class OthersTabComponent extends AppBaseComponent {
4643
4649
  },
4644
4650
  {
4645
4651
  kind: "component",
4646
- type: i12.UiSwitchComponent,
4652
+ type: i13.UiSwitchComponent,
4647
4653
  selector: "ui-switch",
4648
4654
  inputs: [
4649
4655
  "size",
@@ -4859,7 +4865,7 @@ var SecurityTabComponent = class SecurityTabComponent extends AppBaseComponent {
4859
4865
  dependencies: [
4860
4866
  {
4861
4867
  kind: "directive",
4862
- type: i7$1.LazyImgDirective,
4868
+ type: i6$2.LazyImgDirective,
4863
4869
  selector: "img"
4864
4870
  },
4865
4871
  {
@@ -5072,7 +5078,7 @@ var SupportComponent = class SupportComponent extends AppBaseComponent {
5072
5078
  dependencies: [
5073
5079
  {
5074
5080
  kind: "directive",
5075
- type: i7$1.LazyImgDirective,
5081
+ type: i6$2.LazyImgDirective,
5076
5082
  selector: "img"
5077
5083
  },
5078
5084
  {
@@ -5096,7 +5102,7 @@ var SupportComponent = class SupportComponent extends AppBaseComponent {
5096
5102
  },
5097
5103
  {
5098
5104
  kind: "component",
5099
- type: i12$1.ProgressSpinner,
5105
+ type: i12.ProgressSpinner,
5100
5106
  selector: "p-progress-spinner, p-progressspinner",
5101
5107
  inputs: [
5102
5108
  "value",
@@ -5155,7 +5161,7 @@ var SupportComponent = class SupportComponent extends AppBaseComponent {
5155
5161
  },
5156
5162
  {
5157
5163
  kind: "pipe",
5158
- type: i6$2.DateFormatPipe,
5164
+ type: i6$1.DateFormatPipe,
5159
5165
  name: "dateFormat"
5160
5166
  }
5161
5167
  ]
@@ -5219,6 +5225,7 @@ var SupportDetailsComponent = class SupportDetailsComponent extends AppBaseCompo
5219
5225
  ...data,
5220
5226
  subscription_id: this.subscriptionId
5221
5227
  }).subscribe(() => {
5228
+ this.form.markAsPristine();
5222
5229
  this.back();
5223
5230
  }).add(() => {
5224
5231
  this.isLoading = false;
@@ -5321,9 +5328,14 @@ var SupportDetailsComponent = class SupportDetailsComponent extends AppBaseCompo
5321
5328
  ],
5322
5329
  outputs: ["ngModelChange"]
5323
5330
  },
5331
+ {
5332
+ kind: "directive",
5333
+ type: i8$1.TrackDirtyFormDirective,
5334
+ selector: "[formGroup]:not([formGroupSkipDirty])"
5335
+ },
5324
5336
  {
5325
5337
  kind: "component",
5326
- type: i12$1.ProgressSpinner,
5338
+ type: i12.ProgressSpinner,
5327
5339
  selector: "p-progress-spinner, p-progressspinner",
5328
5340
  inputs: [
5329
5341
  "value",
@@ -5373,13 +5385,13 @@ var SupportDetailsComponent = class SupportDetailsComponent extends AppBaseCompo
5373
5385
  },
5374
5386
  {
5375
5387
  kind: "component",
5376
- type: i5.ReCaptcha2Component,
5388
+ type: i6.ReCaptcha2Component,
5377
5389
  selector: "ngx-recaptcha2",
5378
5390
  inputs: ["theme", "size"]
5379
5391
  },
5380
5392
  {
5381
5393
  kind: "component",
5382
- type: i6$1.FileUpload,
5394
+ type: i7$1.FileUpload,
5383
5395
  selector: "p-fileupload",
5384
5396
  inputs: [
5385
5397
  "name",
@@ -5586,18 +5598,18 @@ var EditPortfoliosComponent = class EditPortfoliosComponent {
5586
5598
  dependencies: [
5587
5599
  {
5588
5600
  kind: "directive",
5589
- type: i7$1.ButtonBusyDirective,
5601
+ type: i6$2.ButtonBusyDirective,
5590
5602
  selector: "[buttonBusy]",
5591
5603
  inputs: ["buttonBusy", "busyText"]
5592
5604
  },
5593
5605
  {
5594
5606
  kind: "directive",
5595
- type: i7$1.LazyImgDirective,
5607
+ type: i6$2.LazyImgDirective,
5596
5608
  selector: "img"
5597
5609
  },
5598
5610
  {
5599
5611
  kind: "component",
5600
- type: i6$1.FileUpload,
5612
+ type: i7$1.FileUpload,
5601
5613
  selector: "p-fileupload",
5602
5614
  inputs: [
5603
5615
  "name",
@@ -5825,13 +5837,13 @@ var EditProjectModalComponent = class EditProjectModalComponent extends AppBaseC
5825
5837
  dependencies: [
5826
5838
  {
5827
5839
  kind: "directive",
5828
- type: i7$1.ButtonBusyDirective,
5840
+ type: i6$2.ButtonBusyDirective,
5829
5841
  selector: "[buttonBusy]",
5830
5842
  inputs: ["buttonBusy", "busyText"]
5831
5843
  },
5832
5844
  {
5833
5845
  kind: "directive",
5834
- type: i8$1.NgClass,
5846
+ type: i7$2.NgClass,
5835
5847
  selector: "[ngClass]",
5836
5848
  inputs: ["class", "ngClass"]
5837
5849
  },
@@ -5885,6 +5897,11 @@ var EditProjectModalComponent = class EditProjectModalComponent extends AppBaseC
5885
5897
  ],
5886
5898
  outputs: ["ngModelChange"]
5887
5899
  },
5900
+ {
5901
+ kind: "directive",
5902
+ type: i8$1.TrackDirtyFormDirective,
5903
+ selector: "[formGroup]:not([formGroupSkipDirty])"
5904
+ },
5888
5905
  {
5889
5906
  kind: "component",
5890
5907
  type: i11.Select,
@@ -6160,7 +6177,7 @@ var EditQualificationsModalComponent = class EditQualificationsModalComponent ex
6160
6177
  dependencies: [
6161
6178
  {
6162
6179
  kind: "directive",
6163
- type: i7$1.ButtonBusyDirective,
6180
+ type: i6$2.ButtonBusyDirective,
6164
6181
  selector: "[buttonBusy]",
6165
6182
  inputs: ["buttonBusy", "busyText"]
6166
6183
  },
@@ -6203,6 +6220,11 @@ var EditQualificationsModalComponent = class EditQualificationsModalComponent ex
6203
6220
  ],
6204
6221
  outputs: ["ngModelChange"]
6205
6222
  },
6223
+ {
6224
+ kind: "directive",
6225
+ type: i8$1.TrackDirtyFormDirective,
6226
+ selector: "[formGroup]:not([formGroupSkipDirty])"
6227
+ },
6206
6228
  {
6207
6229
  kind: "component",
6208
6230
  type: i11.Select,
@@ -6298,7 +6320,7 @@ var EditQualificationsModalComponent = class EditQualificationsModalComponent ex
6298
6320
  },
6299
6321
  {
6300
6322
  kind: "component",
6301
- type: i7.DatePicker,
6323
+ type: i8.DatePicker,
6302
6324
  selector: "p-datepicker, p-date-picker",
6303
6325
  inputs: [
6304
6326
  "iconDisplay",
@@ -6493,7 +6515,7 @@ var EditRecommendationModalComponent = class EditRecommendationModalComponent {
6493
6515
  dependencies: [
6494
6516
  {
6495
6517
  kind: "directive",
6496
- type: i7$1.ButtonBusyDirective,
6518
+ type: i6$2.ButtonBusyDirective,
6497
6519
  selector: "[buttonBusy]",
6498
6520
  inputs: ["buttonBusy", "busyText"]
6499
6521
  },
@@ -6536,6 +6558,11 @@ var EditRecommendationModalComponent = class EditRecommendationModalComponent {
6536
6558
  ],
6537
6559
  outputs: ["ngModelChange"]
6538
6560
  },
6561
+ {
6562
+ kind: "directive",
6563
+ type: i8$1.TrackDirtyFormDirective,
6564
+ selector: "[formGroup]:not([formGroupSkipDirty])"
6565
+ },
6539
6566
  {
6540
6567
  kind: "component",
6541
6568
  type: i2$3.InputContainerComponent,
@@ -6561,7 +6588,7 @@ var EditRecommendationModalComponent = class EditRecommendationModalComponent {
6561
6588
  },
6562
6589
  {
6563
6590
  kind: "component",
6564
- type: i6.Rating,
6591
+ type: i7.Rating,
6565
6592
  selector: "p-rating",
6566
6593
  inputs: [
6567
6594
  "readonly",
@@ -7010,13 +7037,13 @@ var EditSocialLinksComponent = class EditSocialLinksComponent extends AppBaseCom
7010
7037
  dependencies: [
7011
7038
  {
7012
7039
  kind: "directive",
7013
- type: i7$1.ButtonBusyDirective,
7040
+ type: i6$2.ButtonBusyDirective,
7014
7041
  selector: "[buttonBusy]",
7015
7042
  inputs: ["buttonBusy", "busyText"]
7016
7043
  },
7017
7044
  {
7018
7045
  kind: "directive",
7019
- type: i7$1.LazyImgDirective,
7046
+ type: i6$2.LazyImgDirective,
7020
7047
  selector: "img"
7021
7048
  },
7022
7049
  {
@@ -7058,6 +7085,11 @@ var EditSocialLinksComponent = class EditSocialLinksComponent extends AppBaseCom
7058
7085
  ],
7059
7086
  outputs: ["ngModelChange"]
7060
7087
  },
7088
+ {
7089
+ kind: "directive",
7090
+ type: i8$1.TrackDirtyFormDirective,
7091
+ selector: "[formGroup]:not([formGroupSkipDirty])"
7092
+ },
7061
7093
  {
7062
7094
  kind: "pipe",
7063
7095
  type: i14.TranslocoPipe,
@@ -7243,7 +7275,7 @@ var EditUserProfileModalComponent = class EditUserProfileModalComponent extends
7243
7275
  dependencies: [
7244
7276
  {
7245
7277
  kind: "directive",
7246
- type: i7$1.ButtonBusyDirective,
7278
+ type: i6$2.ButtonBusyDirective,
7247
7279
  selector: "[buttonBusy]",
7248
7280
  inputs: ["buttonBusy", "busyText"]
7249
7281
  },
@@ -7288,7 +7320,12 @@ var EditUserProfileModalComponent = class EditUserProfileModalComponent extends
7288
7320
  },
7289
7321
  {
7290
7322
  kind: "directive",
7291
- type: i9.NgxGpAutocompleteDirective,
7323
+ type: i8$1.TrackDirtyFormDirective,
7324
+ selector: "[formGroup]:not([formGroupSkipDirty])"
7325
+ },
7326
+ {
7327
+ kind: "directive",
7328
+ type: i9$1.NgxGpAutocompleteDirective,
7292
7329
  selector: "[ngx-gp-autocomplete]",
7293
7330
  inputs: ["options"],
7294
7331
  outputs: ["onAddressChange"],
@@ -7389,7 +7426,7 @@ var EditUserProfileModalComponent = class EditUserProfileModalComponent extends
7389
7426
  },
7390
7427
  {
7391
7428
  kind: "component",
7392
- type: i8.SelectButton,
7429
+ type: i9.SelectButton,
7393
7430
  selector: "p-selectbutton, p-select-button",
7394
7431
  inputs: [
7395
7432
  "options",
@@ -7446,7 +7483,7 @@ var EditUserProfileModalComponent = class EditUserProfileModalComponent extends
7446
7483
  },
7447
7484
  {
7448
7485
  kind: "pipe",
7449
- type: i8$1.AsyncPipe,
7486
+ type: i7$2.AsyncPipe,
7450
7487
  name: "async"
7451
7488
  },
7452
7489
  {
@@ -7653,12 +7690,12 @@ var UserAboutComponent = class UserAboutComponent extends AppBaseComponent {
7653
7690
  dependencies: [
7654
7691
  {
7655
7692
  kind: "directive",
7656
- type: i7$1.LazyImgDirective,
7693
+ type: i6$2.LazyImgDirective,
7657
7694
  selector: "img"
7658
7695
  },
7659
7696
  {
7660
7697
  kind: "component",
7661
- type: i12$1.ProgressSpinner,
7698
+ type: i12.ProgressSpinner,
7662
7699
  selector: "p-progress-spinner, p-progressspinner",
7663
7700
  inputs: [
7664
7701
  "value",
@@ -7709,7 +7746,7 @@ var UserAboutComponent = class UserAboutComponent extends AppBaseComponent {
7709
7746
  },
7710
7747
  {
7711
7748
  kind: "pipe",
7712
- type: i6$2.DateFormatPipe,
7749
+ type: i6$1.DateFormatPipe,
7713
7750
  name: "dateFormat"
7714
7751
  }
7715
7752
  ]
@@ -7831,12 +7868,12 @@ var PortfoliosComponent = class PortfoliosComponent {
7831
7868
  dependencies: [
7832
7869
  {
7833
7870
  kind: "directive",
7834
- type: i7$1.LazyImgDirective,
7871
+ type: i6$2.LazyImgDirective,
7835
7872
  selector: "img"
7836
7873
  },
7837
7874
  {
7838
7875
  kind: "component",
7839
- type: i12$1.ProgressSpinner,
7876
+ type: i12.ProgressSpinner,
7840
7877
  selector: "p-progress-spinner, p-progressspinner",
7841
7878
  inputs: [
7842
7879
  "value",
@@ -8011,12 +8048,12 @@ var UserProjectsComponent = class UserProjectsComponent extends AppBaseComponent
8011
8048
  dependencies: [
8012
8049
  {
8013
8050
  kind: "directive",
8014
- type: i7$1.LazyImgDirective,
8051
+ type: i6$2.LazyImgDirective,
8015
8052
  selector: "img"
8016
8053
  },
8017
8054
  {
8018
8055
  kind: "directive",
8019
- type: i8$1.NgClass,
8056
+ type: i7$2.NgClass,
8020
8057
  selector: "[ngClass]",
8021
8058
  inputs: ["class", "ngClass"]
8022
8059
  },
@@ -8027,7 +8064,7 @@ var UserProjectsComponent = class UserProjectsComponent extends AppBaseComponent
8027
8064
  },
8028
8065
  {
8029
8066
  kind: "component",
8030
- type: i12$1.ProgressSpinner,
8067
+ type: i12.ProgressSpinner,
8031
8068
  selector: "p-progress-spinner, p-progressspinner",
8032
8069
  inputs: [
8033
8070
  "value",
@@ -8064,7 +8101,7 @@ var UserProjectsComponent = class UserProjectsComponent extends AppBaseComponent
8064
8101
  },
8065
8102
  {
8066
8103
  kind: "component",
8067
- type: i6.Rating,
8104
+ type: i7.Rating,
8068
8105
  selector: "p-rating",
8069
8106
  inputs: [
8070
8107
  "readonly",
@@ -8363,7 +8400,7 @@ var UserProfilePageComponent = class UserProfilePageComponent extends AppBaseCom
8363
8400
  dependencies: [
8364
8401
  {
8365
8402
  kind: "directive",
8366
- type: i7$1.LazyImgDirective,
8403
+ type: i6$2.LazyImgDirective,
8367
8404
  selector: "img"
8368
8405
  },
8369
8406
  {
@@ -8395,7 +8432,7 @@ var UserProfilePageComponent = class UserProfilePageComponent extends AppBaseCom
8395
8432
  },
8396
8433
  {
8397
8434
  kind: "component",
8398
- type: i12$1.ProgressSpinner,
8435
+ type: i12.ProgressSpinner,
8399
8436
  selector: "p-progress-spinner, p-progressspinner",
8400
8437
  inputs: [
8401
8438
  "value",
@@ -8409,7 +8446,7 @@ var UserProfilePageComponent = class UserProfilePageComponent extends AppBaseCom
8409
8446
  },
8410
8447
  {
8411
8448
  kind: "component",
8412
- type: i13.ProfileImageCropperComponent,
8449
+ type: i13$1.ProfileImageCropperComponent,
8413
8450
  selector: "pw-image-cropper",
8414
8451
  inputs: ["aspectRatio", "dynamicData"],
8415
8452
  outputs: [
@@ -8543,6 +8580,7 @@ var UserModuleModule = class UserModuleModule {
8543
8580
  CommonModule,
8544
8581
  RouterModule,
8545
8582
  ReactiveFormsModule,
8583
+ TrackDirtyFormDirective,
8546
8584
  CoreTranslocoModule,
8547
8585
  NgxGpAutocompleteModule,
8548
8586
  SharedComponentsModule,
@@ -8684,6 +8722,7 @@ i0.ɵɵngDeclareClassMetadata({
8684
8722
  CommonModule,
8685
8723
  RouterModule,
8686
8724
  ReactiveFormsModule,
8725
+ TrackDirtyFormDirective,
8687
8726
  CoreTranslocoModule,
8688
8727
  NgxGpAutocompleteModule,
8689
8728
  SharedComponentsModule,