sm-click-library-ui 0.0.182 → 0.0.184

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.
@@ -148,7 +148,7 @@ const gt = (e, n) => {
148
148
  ])) : B("", !0)
149
149
  ], 512));
150
150
  }
151
- }, ts = /* @__PURE__ */ gt(ti, [["__scopeId", "data-v-970e6830"]]), ns = (e) => (mt("data-v-0f03a511"), e = e(), ht(), e), ni = {
151
+ }, ts = /* @__PURE__ */ gt(ti, [["__scopeId", "data-v-970e6830"]]), ns = (e) => (mt("data-v-dbc03a2a"), e = e(), ht(), e), ni = {
152
152
  key: 0,
153
153
  class: "modal_head"
154
154
  }, ai = /* @__PURE__ */ ns(() => /* @__PURE__ */ p("div", { class: "modal-overlay absolute h-full w-full bg-gray-600 opacity-50" }, null, -1)), ri = { class: "modal_responsive" }, oi = { class: "flex min-h-full items-center justify-center text-center sm:p-0" }, si = { class: "modal_tittle text-current" }, li = { class: "flex items-center gap-3" }, ii = ["innerHTML"], ui = { class: "text-xl font-semibold flex items-center gap-2" }, ci = /* @__PURE__ */ ns(() => /* @__PURE__ */ p("svg", {
@@ -183,10 +183,10 @@ const gt = (e, n) => {
183
183
  default: "md:w-1/2 xl:w-1/3"
184
184
  }
185
185
  },
186
- emits: ["update:isOpen"],
186
+ emits: ["update:isOpen", "close"],
187
187
  setup(e, { emit: n }) {
188
188
  const t = e, a = n, r = () => {
189
- a("update:isOpen", !t.isOpen);
189
+ a("update:isOpen", !t.isOpen), console.log(t.isOpen), t.isOpen && a("close");
190
190
  };
191
191
  return (o, s) => {
192
192
  var l, u;
@@ -230,7 +230,7 @@ const gt = (e, n) => {
230
230
  ])) : B("", !0);
231
231
  };
232
232
  }
233
- }, as = /* @__PURE__ */ gt(pi, [["__scopeId", "data-v-0f03a511"]]), vi = { class: "flex justify-left gap-3" }, yi = {
233
+ }, as = /* @__PURE__ */ gt(pi, [["__scopeId", "data-v-dbc03a2a"]]), vi = { class: "flex justify-left gap-3" }, yi = {
234
234
  key: 0,
235
235
  class: "text-green-500",
236
236
  xmlns: "http://www.w3.org/2000/svg",
@@ -2014,7 +2014,7 @@ const ac = "v1/api/attendances/attendant/", rc = "v1/api/attendances/department/
2014
2014
  this.instances = t.data, this.instances.forEach(async (a) => {
2015
2015
  a.isLoading = !0;
2016
2016
  try {
2017
- const o = (await jt.get(sc(a.id))).last_instance_status;
2017
+ const o = (await jt.get(sc(a.id))).data.instance.last_instance_status;
2018
2018
  o === "DISCONNECTED" || o === "UNDEFINED" ? a.status = !1 : a.status = !0;
2019
2019
  } catch {
2020
2020
  a.status = "Offline";