sm-click-library-ui 0.0.297 → 0.0.299

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.
@@ -2016,13 +2016,13 @@ const ud = "v1/api/attendances/attendant/", dd = "v1/api/attendances/department/
2016
2016
  a.isLoading = !0;
2017
2017
  try {
2018
2018
  const r = a.last_instance_status;
2019
- r === "DISCONNECTED" || r === "UNDEFINED" ? a.status = !1 : a.status = !0;
2020
- } catch {
2021
- a.status = "Offline";
2019
+ console.log(r), r === "DISCONNECTED" || r === "UNDEFINED" ? a.status = !1 : a.status = !0;
2020
+ } catch (r) {
2021
+ console.log(r), a.status = "Offline";
2022
2022
  }
2023
- a.isLoading = !1;
2023
+ console.log("carregou a ", a), a.isLoading = !1;
2024
2024
  })
2025
- ), this.count = this.instances.length, this.loaded = !0;
2025
+ ), console.log("passou"), this.count = this.instances.length, this.loaded = !0, console.log(this.loaded);
2026
2026
  } catch (n) {
2027
2027
  console.log("Erro ao buscar instâncias:", n), this.loaded = !0;
2028
2028
  }
@@ -14274,7 +14274,7 @@ function Jg(e, n = "add") {
14274
14274
  }
14275
14275
  function ew(e, n = "add") {
14276
14276
  const t = Rr();
14277
- n === "add" ? t.addInstance(e) : n === "delete" ? t.removeInstance(e) : console.error(`Ação "${n}" não suportada em attLibInstances.`);
14277
+ n === "add" ? t.addInstance(e) : n === "delete" ? t.removeInstance(e) : n === "update" ? (t.instances = e, t.loaded = !0) : console.error(`Ação "${n}" não suportada em attLibInstances.`);
14278
14278
  }
14279
14279
  async function tw(e, n, t, a = [], r = [], o = []) {
14280
14280
  try {
@@ -14283,7 +14283,7 @@ async function tw(e, n, t, a = [], r = [], o = []) {
14283
14283
  const l = await eo(e);
14284
14284
  r.length > 0 && (l.departments = r, l.count = r.length);
14285
14285
  const i = await Ia(e);
14286
- a.length > 0 && (i.attendants = a, i.count = a.length), await Rr(e).fetchInstances();
14286
+ a.length > 0 && (i.attendants = a, i.count = a.length), await (await Rr(e)).fetchInstances();
14287
14287
  } catch (s) {
14288
14288
  console.error("Erro no setupLibrary:", s);
14289
14289
  }