@comercti/web-components-hmg 0.24.4 → 0.24.5

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.
@@ -2224,15 +2224,11 @@ const Mt = /* @__PURE__ */ new WeakMap(), Co = (e, t) => {
2224
2224
  j(h) || (S = x.dataTransfer) != null && S.items && (Array.from(x.dataTransfer.items).some(
2225
2225
  (re) => re.kind === "file" && !e.accept.includes(re.type)
2226
2226
  ) ? (n.value = !0, a.value = "Arquivo inválido") : i.value = !0);
2227
- }, P = (x) => {
2228
- if (!x) return !1;
2229
- const h = Array.isArray(x) ? x : x instanceof FileList ? Array.from(x) : [x];
2230
- return console.log("novosArquivos", h), console.log("arquivosDs", s.value), h.some(
2231
- (V) => s.value.some(
2232
- (re) => V.name === re.file.name && V.size === re.file.size && V.lastModified === re.file.lastModified
2233
- )
2234
- ) ? (a.value = "Arquivo já selecionado", n.value = !0, !0) : !1;
2235
- }, F = (x, h) => {
2227
+ }, P = (x) => x && (Array.isArray(x) ? x : x instanceof FileList ? Array.from(x) : [x]).some(
2228
+ (V) => s.value.some(
2229
+ (re) => V.name === re.file.name && V.size === re.file.size && V.lastModified === re.file.lastModified
2230
+ )
2231
+ ) ? (a.value = "Arquivo já selecionado", n.value = !0, !0) : !1, F = (x, h) => {
2236
2232
  E();
2237
2233
  const S = x.target;
2238
2234
  P(S.files) || S != null && S.files && Array.from(S.files).forEach((V) => {
@@ -2295,7 +2291,7 @@ const Mt = /* @__PURE__ */ new WeakMap(), Co = (e, t) => {
2295
2291
  ), _(
2296
2292
  () => e.removableFileName,
2297
2293
  (x) => {
2298
- x && (s.value = s.value.filter((h) => h.file.name !== x), d.value = [], n.value = !1, a.value = null, console.log("removable", s.value), console.log("input", r.value), r.value && (r.value.value = null));
2294
+ x && (s.value = s.value.filter((h) => h.file.name !== x), d.value = [], n.value = !1, a.value = null, r.value && (r.value.value = null));
2299
2295
  },
2300
2296
  { immediate: !0 }
2301
2297
  ), {