@messaia/cdk 19.0.0-rc11 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1469,6 +1469,7 @@ var Salutation;
1469
1469
  Salutation[Salutation["Unknown"] = 0] = "Unknown";
1470
1470
  Salutation[Salutation["Female"] = 1] = "Female";
1471
1471
  Salutation[Salutation["Male"] = 2] = "Male";
1472
+ Salutation[Salutation["Others"] = 3] = "Others";
1472
1473
  })(Salutation || (Salutation = {}));
1473
1474
 
1474
1475
  /**
@@ -24643,7 +24644,12 @@ class BaseInterceptor {
24643
24644
  /* Show warnings from response headers if available */
24644
24645
  var warning = event.headers.get("Warning");
24645
24646
  if (warning) {
24646
- this.snackBar.open(warning, "OK", { duration: 6000, panelClass: ['warn'] });
24647
+ /* First, replace the plus signs (+) with spaces */
24648
+ const withSpaces = warning.replace(/\+/g, ' ');
24649
+ /* Then, decode the URL-encoded characters */
24650
+ const decodedString = decodeURIComponent(withSpaces);
24651
+ /* Finally, show the decoded warning message */
24652
+ this.snackBar.open(decodedString, "OK", { duration: 6000, panelClass: ['warn'] });
24647
24653
  }
24648
24654
  }
24649
24655
  }