sm-click-library-ui 0.0.245 → 0.0.246

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.
@@ -13647,7 +13647,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13647
13647
  n !== -1 ? this.departments[n] = e : this.departments.push(e);
13648
13648
  }
13649
13649
  }
13650
- }), ua = (e) => (it("data-v-80914028"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
13650
+ }), ua = (e) => (it("data-v-c9da1802"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
13651
13651
  key: 0,
13652
13652
  xmlns: "http://www.w3.org/2000/svg",
13653
13653
  fill: "none",
@@ -13755,12 +13755,16 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13755
13755
  }
13756
13756
  async function h() {
13757
13757
  const D = t.externalDepartments || r.departments;
13758
- t.department && t.department.length > 0 && (console.log(t.department), t.department.forEach((_) => {
13758
+ if (!D || D.length === 0) {
13759
+ console.warn("Nenhum departamento disponível para atualização.");
13760
+ return;
13761
+ }
13762
+ t.department && t.department.length > 0 && t.department.forEach((_) => {
13759
13763
  const x = D.find((g) => g.id === _.id);
13760
13764
  x && (x.selected = !0, s.value.some(
13761
13765
  (B) => B.id === _.id
13762
13766
  ) || s.value.push({ ...x }));
13763
- })), console.log(s.value), a("depart", s.value);
13767
+ }), a("depart", s.value);
13764
13768
  }
13765
13769
  function b(D) {
13766
13770
  const _ = s.value.findIndex(
@@ -13835,7 +13839,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13835
13839
  ])
13836
13840
  ]));
13837
13841
  }
13838
- }, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-80914028"]]), qa = (e) => (it("data-v-bad1997e"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, $g = {
13842
+ }, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-c9da1802"]]), qa = (e) => (it("data-v-bad1997e"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, $g = {
13839
13843
  key: 0,
13840
13844
  xmlns: "http://www.w3.org/2000/svg",
13841
13845
  fill: "none",