@posiwise/public-modules 0.1.32 → 0.1.34

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.
@@ -113,9 +113,9 @@ var AbTestContainerComponent = class AbTestContainerComponent {
113
113
  }
114
114
  getExperiment() {
115
115
  this.service.getExperiment(this.experimentName, AB_TEST_ACTIONS.START, this.serviceInput).subscribe({
116
- next: (response) => {
116
+ next: ({ result }) => {
117
117
  this.showDefaultExperiment = false;
118
- this.data = response || {};
118
+ this.data = result || {};
119
119
  this.publishToAlternatives();
120
120
  },
121
121
  error: () => {
@@ -454,7 +454,7 @@ var LandingPageContactComponent = class LandingPageContactComponent extends AppB
454
454
  product_id: this.masterProductId
455
455
  };
456
456
  this.commonService.addContactUsMessage(postData).subscribe({
457
- next: (response) => {
457
+ next: ({ result: response }) => {
458
458
  if (this.gaEventObj) this.googleAnalyticsService.sendEvent(this.gaEventObj.category, this.gaEventObj.action, this.gaEventObj.label, this.gaEventObj.value);
459
459
  this.confirmDialog.open({
460
460
  text: response.message,
@@ -1227,7 +1227,7 @@ var LandingPageContactBComponent = class LandingPageContactBComponent extends Ap
1227
1227
  product_id: this.masterProductId
1228
1228
  };
1229
1229
  this.commonService.addContactUsMessage(postData).subscribe({
1230
- next: (response) => {
1230
+ next: ({ result: response }) => {
1231
1231
  if (this.gaEventObj) this.googleAnalyticsService.sendEvent(this.gaEventObj.category, this.gaEventObj.action, this.gaEventObj.label, this.gaEventObj.value);
1232
1232
  this.confirmDialog.open({
1233
1233
  text: response.message,
@@ -4698,11 +4698,11 @@ var IncidentsStatusComponent = class IncidentsStatusComponent extends AppBaseCom
4698
4698
  this.lastUpdated = Date.now();
4699
4699
  this.cdr.markForCheck();
4700
4700
  })).subscribe((res) => {
4701
- this.openIncidents = res?.open_incidents.map((x) => ({
4701
+ this.openIncidents = res?.result?.open_incidents.map((x) => ({
4702
4702
  ...x,
4703
4703
  description: this.sanitizer.bypassSecurityTrustHtml(x.description)
4704
4704
  }));
4705
- this.pastIncidents = res?.past_incidents.map((x) => ({
4705
+ this.pastIncidents = res?.result?.past_incidents.map((x) => ({
4706
4706
  ...x,
4707
4707
  description: this.sanitizer.bypassSecurityTrustHtml(x.description)
4708
4708
  }));
@@ -5152,18 +5152,26 @@ var ResourceMeetingsComponent = class ResourceMeetingsComponent extends AppBaseC
5152
5152
  selector: "pw--public-book-a-demo",
5153
5153
  usesInheritance: true,
5154
5154
  ngImport: i0,
5155
- template: "<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<div class=\"mt-5 pt-5\">\n <div class=\"container my-5\">\n <h1 class=\"text-center mb-5\">{{title}}</h1>\n\n <pw-demo-card [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-demo-card>\n </div>\n</div>\n",
5156
- dependencies: [{
5157
- kind: "component",
5158
- type: ResourceHeaderComponent,
5159
- selector: "pw-resource-header",
5160
- inputs: ["user", "userLoggedIn"]
5161
- }, {
5162
- kind: "component",
5163
- type: DemoCardsComponent,
5164
- selector: "pw-demo-card",
5165
- inputs: ["user", "userLoggedIn"]
5166
- }]
5155
+ template: "<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<div class=\"mt-5 pt-5\">\n <div class=\"container my-5\">\n <h1 class=\"text-center mb-5\">{{ title || ('Public.BookADemo.Title' | transloco) }}</h1>\n\n <pw-demo-card [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-demo-card>\n </div>\n</div>\n",
5156
+ dependencies: [
5157
+ {
5158
+ kind: "component",
5159
+ type: ResourceHeaderComponent,
5160
+ selector: "pw-resource-header",
5161
+ inputs: ["user", "userLoggedIn"]
5162
+ },
5163
+ {
5164
+ kind: "component",
5165
+ type: DemoCardsComponent,
5166
+ selector: "pw-demo-card",
5167
+ inputs: ["user", "userLoggedIn"]
5168
+ },
5169
+ {
5170
+ kind: "pipe",
5171
+ type: TranslocoPipe,
5172
+ name: "transloco"
5173
+ }
5174
+ ]
5167
5175
  });
5168
5176
  }
5169
5177
  };
@@ -5176,8 +5184,12 @@ i0.ɵɵngDeclareClassMetadata({
5176
5184
  type: Component,
5177
5185
  args: [{
5178
5186
  selector: "pw--public-book-a-demo",
5179
- imports: [ResourceHeaderComponent, DemoCardsComponent],
5180
- template: "<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<div class=\"mt-5 pt-5\">\n <div class=\"container my-5\">\n <h1 class=\"text-center mb-5\">{{title}}</h1>\n\n <pw-demo-card [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-demo-card>\n </div>\n</div>\n"
5187
+ imports: [
5188
+ ResourceHeaderComponent,
5189
+ DemoCardsComponent,
5190
+ TranslocoPipe
5191
+ ],
5192
+ template: "<pw-resource-header [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-resource-header>\n<div class=\"mt-5 pt-5\">\n <div class=\"container my-5\">\n <h1 class=\"text-center mb-5\">{{ title || ('Public.BookADemo.Title' | transloco) }}</h1>\n\n <pw-demo-card [user]=\"user\" [userLoggedIn]=\"userLoggedIn\"></pw-demo-card>\n </div>\n</div>\n"
5181
5193
  }]
5182
5194
  }]
5183
5195
  });
@@ -5328,7 +5340,7 @@ var BaseContactFormComponent = class BaseContactFormComponent extends AppBaseCom
5328
5340
  product_id: this.masterProductId
5329
5341
  };
5330
5342
  this.commonService.addContactUsMessage(postData).subscribe({
5331
- next: (response) => {
5343
+ next: ({ result: response }) => {
5332
5344
  this.confirmDialog.open({
5333
5345
  text: response.message,
5334
5346
  confirmOnly: true
@@ -5467,7 +5479,7 @@ var SupportPublicComponent = class SupportPublicComponent extends AppBaseCompone
5467
5479
  this.cdr.markForCheck();
5468
5480
  });
5469
5481
  inject(CommonService).getIncidents().pipe(takeUntilDestroyed()).subscribe({
5470
- next: (res) => this.setStatus(serviceStatusFrom(res)),
5482
+ next: (res) => this.setStatus(serviceStatusFrom(res?.result ?? null)),
5471
5483
  error: () => this.setStatus({
5472
5484
  state: "unknown",
5473
5485
  count: 0