@sysvale/cuida 3.65.0 → 3.65.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.
@@ -30521,6 +30521,11 @@ const Rre = {
30521
30521
  default: "Nova funcionalidade!",
30522
30522
  validator: (t) => t.length <= 22
30523
30523
  },
30524
+ startOnScroll: {
30525
+ type: Boolean,
30526
+ default: !1,
30527
+ required: !1
30528
+ },
30524
30529
  url: {
30525
30530
  type: String,
30526
30531
  default: "",
@@ -30556,11 +30561,13 @@ const Rre = {
30556
30561
  }
30557
30562
  },
30558
30563
  mounted() {
30559
- this.id = `floating-assistant$-${this._uid}`, this.pulsarId = `floating-assistant-pulsar$-${this._uid}`, this.containerId = `floating-assistant-container$-${this._uid}`, window.addEventListener("scroll", this.startAnimation, !1);
30564
+ this.id = `floating-assistant$-${this._uid}`, this.pulsarId = `floating-assistant-pulsar$-${this._uid}`, this.containerId = `floating-assistant-container$-${this._uid}`, this.startOnScroll ? window.addEventListener("scroll", this.startAnimation) : window.addEventListener("load", this.startAnimation);
30560
30565
  },
30561
30566
  methods: {
30562
30567
  startAnimation() {
30563
- this.isScrolledIntoView() && (document.getElementById(this.id).classList.add("animation"), window.removeEventListener("scroll", this.startAnimation));
30568
+ this.startOnScroll && !this.isScrolledIntoView() || (setTimeout(() => {
30569
+ document.getElementById(this.id).classList.add("animation");
30570
+ }, 1e3), this.startOnScroll && window.removeEventListener("scroll", this.startAnimation));
30564
30571
  },
30565
30572
  isScrolledIntoView() {
30566
30573
  const t = window.scrollY, e = t + window.innerHeight, n = document.getElementById(this.id).getBoundingClientRect();
@@ -30662,7 +30669,7 @@ function Zre(t, e, n, i, s, r) {
30662
30669
  ])
30663
30670
  ], 10, Nre);
30664
30671
  }
30665
- const Xre = /* @__PURE__ */ he(Rre, [["render", Zre], ["__scopeId", "data-v-544de446"]]);
30672
+ const Xre = /* @__PURE__ */ he(Rre, [["render", Zre], ["__scopeId", "data-v-6b0e1964"]]);
30666
30673
  const Yp = {
30667
30674
  directives: {
30668
30675
  "on-click-outside": vr.directive
@@ -31206,7 +31213,7 @@ function Sae(t, e, n, i, s, r) {
31206
31213
  }, 8, ["text"])
31207
31214
  ]);
31208
31215
  }
31209
- const H6 = /* @__PURE__ */ he(wae, [["render", Sae], ["__scopeId", "data-v-1e718423"]]);
31216
+ const H6 = /* @__PURE__ */ he(wae, [["render", Sae], ["__scopeId", "data-v-3b3f7421"]]);
31210
31217
  var yf = { exports: {} };
31211
31218
  (function(t, e) {
31212
31219
  var n = 200, i = "__lodash_hash_undefined__", s = 1, r = 2, a = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object AsyncFunction]", h = "[object Boolean]", p = "[object Date]", g = "[object Error]", m = "[object Function]", w = "[object GeneratorFunction]", b = "[object Map]", S = "[object Number]", O = "[object Null]", $ = "[object Object]", V = "[object Promise]", M = "[object Proxy]", E = "[object RegExp]", B = "[object Set]", H = "[object String]", W = "[object Symbol]", ee = "[object Undefined]", ue = "[object WeakMap]", pe = "[object ArrayBuffer]", ne = "[object DataView]", ge = "[object Float32Array]", Oe = "[object Float64Array]", ae = "[object Int8Array]", Ce = "[object Int16Array]", ke = "[object Int32Array]", Ae = "[object Uint8Array]", Pe = "[object Uint8ClampedArray]", q = "[object Uint16Array]", Me = "[object Uint32Array]", ye = /[\\^$.*+?()[\]{}|]/g, Ye = /^\[object .+?Constructor\]$/, Re = /^(?:0|[1-9]\d*)$/, De = {};