@weni/unnnic-system 2.33.1 → 2.33.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 2.33.2 (2025-05-22)
9
+
10
+ ### Fix
11
+
12
+ - AudioRecorder: Added corrections for NaN values
13
+
8
14
  ## 2.33.1 (2025-05-20)
9
15
 
10
16
  ### Fix
@@ -1,4 +1,4 @@
1
- import { h as n } from "./index-dc398afb.mjs";
1
+ import { h as n } from "./index-e05dc7a3.mjs";
2
2
  import "vue";
3
3
  //! moment.js locale configuration
4
4
  //! locale : Spanish [es]
@@ -22468,7 +22468,7 @@ const nee = (e) => {
22468
22468
  }) : a(i.duration);
22469
22469
  }), i.onerror = (o) => r(o.target.error);
22470
22470
  });
22471
- return i.src = typeof e == "string" || e instanceof String ? e : window.URL.createObjectURL(e), n;
22471
+ return i.src = typeof e == "string" || e instanceof String ? e : window.URL.createObjectURL(e), n.catch(() => 0);
22472
22472
  },
22473
22473
  // entry point; accessed by external components
22474
22474
  async record() {
@@ -22496,14 +22496,14 @@ const nee = (e) => {
22496
22496
  },
22497
22497
  addAudioEventListeners() {
22498
22498
  const e = () => {
22499
- this.audio.duration !== 1 / 0 && (this.audio.currentTime = 0, this.duration = this.audio.duration);
22499
+ this.audio.duration !== 1 / 0 && (this.audio.currentTime = 0, this.duration = isNaN(this.audio.duration) ? 0 : this.audio.duration);
22500
22500
  };
22501
22501
  this.audio.addEventListener("loadeddata", e), this.audio.addEventListener("durationchange", e), this.audio.addEventListener("play", () => {
22502
22502
  this.status = "playing";
22503
22503
  }), this.audio.addEventListener("pause", () => {
22504
22504
  this.audio && (this.status = "paused");
22505
22505
  }), this.audio.addEventListener("timeupdate", () => {
22506
- this.status === "playing" && (this.currentTime = this.audio.currentTime);
22506
+ this.status === "playing" && (this.currentTime = isNaN(this.audio.currentTime) ? 0 : this.audio.currentTime);
22507
22507
  }), this.audio.addEventListener("ended", () => {
22508
22508
  this.currentTime = 0, this.status = "recorded";
22509
22509
  });
@@ -22549,6 +22549,8 @@ const nee = (e) => {
22549
22549
  },
22550
22550
  numberToTimeString(e) {
22551
22551
  const { isRecording: i } = this;
22552
+ if (isNaN(e))
22553
+ return i ? "00:00:00" : "00:00";
22552
22554
  function n(l, c = 2) {
22553
22555
  return l.toString().padStart(c, "0");
22554
22556
  }
@@ -22602,7 +22604,7 @@ function see(e, i, n, a, r, o) {
22602
22604
  }, null, 8, ["time", "reqStatus", "progressBarPercentualValue", "isPlaying", "bars", "onPause", "onPlay", "onProgressBarUpdate"]))
22603
22605
  ])) : N("", !0);
22604
22606
  }
22605
- const oee = /* @__PURE__ */ k(tee, [["render", see], ["__scopeId", "data-v-7d51729d"]]);
22607
+ const oee = /* @__PURE__ */ k(tee, [["render", see], ["__scopeId", "data-v-3a764854"]]);
22606
22608
  const ree = {
22607
22609
  components: {},
22608
22610
  props: {
@@ -22903,8 +22905,8 @@ function Eee(e, i, n, a, r, o) {
22903
22905
  });
22904
22906
  }
22905
22907
  const zee = /* @__PURE__ */ k(Nee, [["render", Eee], ["__scopeId", "data-v-9b793da0"]]);
22906
- import("./es-2722d018.mjs");
22907
- import("./pt-br-26267027.mjs");
22908
+ import("./es-f822faea.mjs");
22909
+ import("./pt-br-9c97dbfc.mjs");
22908
22910
  const To = {
22909
22911
  name: "ChatsContact",
22910
22912
  components: {
@@ -1,4 +1,4 @@
1
- import { h as e } from "./index-dc398afb.mjs";
1
+ import { h as e } from "./index-e05dc7a3.mjs";
2
2
  import "vue";
3
3
  //! moment.js locale configuration
4
4
  //! locale : Portuguese (Brazil) [pt-br]