analytica-frontend-lib 1.2.73 → 1.2.75

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.
package/dist/index.mjs CHANGED
@@ -23882,6 +23882,11 @@ var formatDaysToComplete = (daysToComplete) => {
23882
23882
  if (daysToComplete === 1) return "1 dia";
23883
23883
  return `${daysToComplete} dias`;
23884
23884
  };
23885
+ var GOAL_ACTIVITY_STATUS = {
23886
+ PENDENTE: "PENDENTE",
23887
+ CONCLUIDA: "CONCLUIDA",
23888
+ EXPIRADA: "EXPIRADA"
23889
+ };
23885
23890
 
23886
23891
  // src/hooks/useRecommendedLessons.ts
23887
23892
  import { useState as useState43, useCallback as useCallback21 } from "react";
@@ -27353,8 +27358,7 @@ var isChatUserInfoValid = (userInfo) => {
27353
27358
  return Boolean(userInfo.userId && userInfo.token);
27354
27359
  };
27355
27360
  var getChatWsUrl = (apiUrl) => {
27356
- const baseUrl = apiUrl;
27357
- return baseUrl.replace(/^http/, "ws");
27361
+ return apiUrl.replace(/^https?/, "wss").replace(/bff-hml\./, "bff-hml-chat.").replace(/bff\./, "bff-chat.");
27358
27362
  };
27359
27363
  var getChatUserInfo = (user, tokens, sessionInfo, defaultUserName = "Usuario") => {
27360
27364
  const userId = String(user?.userInstitutionId ?? sessionInfo?.userId ?? "");
@@ -27617,6 +27621,7 @@ export {
27617
27621
  EmptyState_default as EmptyState,
27618
27622
  FileAttachment_default as FileAttachment,
27619
27623
  FilterModal,
27624
+ GOAL_ACTIVITY_STATUS,
27620
27625
  GOAL_FILTER_STATUS_OPTIONS,
27621
27626
  GOAL_STATUS_OPTIONS,
27622
27627
  ActivityStatus2 as GeneralActivityStatus,