analytica-frontend-lib 1.2.72 → 1.2.74

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
@@ -27353,8 +27353,7 @@ var isChatUserInfoValid = (userInfo) => {
27353
27353
  return Boolean(userInfo.userId && userInfo.token);
27354
27354
  };
27355
27355
  var getChatWsUrl = (apiUrl) => {
27356
- const baseUrl = apiUrl;
27357
- return baseUrl.replace(/^http/, "ws") + "/chat/ws";
27356
+ return apiUrl.replace(/^https?/, "wss").replace(/bff-hml\./, "bff-hml-chat.").replace(/bff\./, "bff-chat.");
27358
27357
  };
27359
27358
  var getChatUserInfo = (user, tokens, sessionInfo, defaultUserName = "Usuario") => {
27360
27359
  const userId = String(user?.userInstitutionId ?? sessionInfo?.userId ?? "");