@senior-agronegocio/angular-components 0.0.73-origination → 0.0.74-origination

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.
@@ -2460,7 +2460,7 @@ var AgroPlatformUtils = /** @class */ (function () {
2460
2460
  var _a;
2461
2461
  var cookie = AgroCookieUtils.getCookie('com.senior.token');
2462
2462
  if (cookie) {
2463
- var str = (_a = AgroCookieUtils.parseCookieToObject(cookie)) === null || _a === void 0 ? void 0 : _a.fullName;
2463
+ var str = (_a = AgroCookieUtils.parseCookieToObject(cookie, true)) === null || _a === void 0 ? void 0 : _a.fullName;
2464
2464
  if (str) {
2465
2465
  return str;
2466
2466
  }
@@ -2476,7 +2476,7 @@ var AgroPlatformUtils = /** @class */ (function () {
2476
2476
  var _a;
2477
2477
  var cookie = AgroCookieUtils.getCookie('com.senior.token');
2478
2478
  if (cookie) {
2479
- var str = (_a = AgroCookieUtils.parseCookieToObject(cookie)) === null || _a === void 0 ? void 0 : _a.email;
2479
+ var str = (_a = AgroCookieUtils.parseCookieToObject(cookie, true)) === null || _a === void 0 ? void 0 : _a.email;
2480
2480
  if (str) {
2481
2481
  return str;
2482
2482
  }
@@ -2492,7 +2492,7 @@ var AgroPlatformUtils = /** @class */ (function () {
2492
2492
  AgroPlatformUtils.getBaseURL = function () {
2493
2493
  var cookie = AgroCookieUtils.getCookie('com.senior.base.url');
2494
2494
  if (cookie) {
2495
- return cookie;
2495
+ return decodeURIComponent(cookie);
2496
2496
  }
2497
2497
  throw new Error('Cookie: "com.senior.base.url" não encontrado.');
2498
2498
  };
@@ -2504,7 +2504,7 @@ var AgroPlatformUtils = /** @class */ (function () {
2504
2504
  AgroPlatformUtils.getServicesURL = function () {
2505
2505
  var cookie = AgroCookieUtils.getCookie('com.senior.services.url');
2506
2506
  if (AgroStringUtils.isNotEmpty(cookie)) {
2507
- return cookie;
2507
+ return decodeURIComponent(cookie);
2508
2508
  }
2509
2509
  throw new Error('Cookie: "com.senior.services.url" não encontrado.');
2510
2510
  };
@@ -2516,7 +2516,7 @@ var AgroPlatformUtils = /** @class */ (function () {
2516
2516
  var _a;
2517
2517
  var cookie = AgroCookieUtils.getCookie('com.senior.token');
2518
2518
  if (cookie) {
2519
- var str = (_a = AgroCookieUtils.parseCookieToObject(cookie)) === null || _a === void 0 ? void 0 : _a.accessToken;
2519
+ var str = (_a = AgroCookieUtils.parseCookieToObject(cookie, true)) === null || _a === void 0 ? void 0 : _a.access_token;
2520
2520
  if (str) {
2521
2521
  return str;
2522
2522
  }