@eshal-bot/chat-widget 0.1.89 → 0.1.90

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.
@@ -1 +1 @@
1
- export{S as default}from"./chat-widget-index-AtAXlMq0.esm.js";import"react";import"react-dom/client";import"react-dom";import"react/jsx-runtime";
1
+ export{S as default}from"./chat-widget-index-CUW4QWbL.esm.js";import"react";import"react-dom/client";import"react-dom";import"react/jsx-runtime";
@@ -18627,15 +18627,14 @@
18627
18627
  if (!value) return true;
18628
18628
  return normalizeHex(value) === defaultHex;
18629
18629
  };
18630
- const formatTime = date => date instanceof Date ? date.toLocaleTimeString("en-US", {
18631
- hour: "2-digit",
18632
- minute: "2-digit",
18633
- hour12: true
18634
- }) : new Date(date).toLocaleTimeString("en-US", {
18635
- hour: "2-digit",
18636
- minute: "2-digit",
18637
- hour12: true
18638
- });
18630
+ const formatTime = date => {
18631
+ const d = date instanceof Date ? date : new Date(date);
18632
+ return d.toLocaleTimeString("en-US", {
18633
+ hour: "2-digit",
18634
+ minute: "2-digit",
18635
+ hour12: true
18636
+ }).replace(/am|pm/i, match => match.toUpperCase());
18637
+ };
18639
18638
  const normalizeCsatFormat = format => {
18640
18639
  const raw = (format || "EMOJI").toString().trim().toUpperCase();
18641
18640
  if (raw === "THUMBS" || raw === "THUMB") return "THUMBS";