sm-click-library-ui 0.0.215 → 0.0.217

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.
@@ -13664,7 +13664,10 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13664
13664
  );
13665
13665
  },
13666
13666
  addDepartments(e) {
13667
- console.log(this.departments), this.departments.push(e), console.log(this.departments);
13667
+ const t = this.departments.findIndex(
13668
+ (n) => n.id === e.id
13669
+ );
13670
+ t !== -1 ? this.departments[t] = e : this.departments.push(e);
13668
13671
  }
13669
13672
  }
13670
13673
  }), hp = { class: "depart-select-container" }, vp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, pp = ["placeholder"], yp = { class: "icon-container" }, gp = {
@@ -14055,8 +14058,8 @@ Zn("debug", {
14055
14058
  function jp(e) {
14056
14059
  e.component("primarySelect", Qo), e.component("departSelect", Ml), e.component("attendantSelect", Al), e.component("SimpleModal", Go), e.component("simpleCard", Ko), e.component("instanceSelect", Ms), e.component("calendar", fl), e.component("MFA", hl), e.component("MfaQrCode", Oh), e.component("chatWindow", xl);
14057
14060
  }
14058
- function Gp(e, t) {
14059
- jr(e).addDepartments(t);
14061
+ function Gp(e) {
14062
+ jr().addDepartments(e);
14060
14063
  }
14061
14064
  function zp(e, t, n, a) {
14062
14065
  try {