sm-click-library-ui 0.0.231 → 0.0.233
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.
|
@@ -14110,21 +14110,14 @@ function sw(e, n = "add") {
|
|
|
14110
14110
|
const t = Rr();
|
|
14111
14111
|
n === "add" ? t.addInstances(e) : n === "delete" ? t.removeInstances(e) : console.error(`Ação "${n}" não suportada em attLibInstances.`);
|
|
14112
14112
|
}
|
|
14113
|
-
function lw({
|
|
14114
|
-
piniaInstance: e,
|
|
14115
|
-
jwtToken: n,
|
|
14116
|
-
rootUrl: t,
|
|
14117
|
-
attendances: a = [],
|
|
14118
|
-
departments: r = [],
|
|
14119
|
-
instances: o = []
|
|
14120
|
-
}) {
|
|
14113
|
+
function lw(e, n, t, a = [], r = [], o = []) {
|
|
14121
14114
|
try {
|
|
14122
14115
|
const s = Cs(e);
|
|
14123
14116
|
n && s.setToken(n), t && (Jt.defaults.baseURL = t);
|
|
14124
14117
|
const l = eo(e);
|
|
14125
|
-
r.length && (l.departments = r, l.count = r.length);
|
|
14118
|
+
r.length > 0 && (l.departments = r, l.count = r.length);
|
|
14126
14119
|
const i = La(e);
|
|
14127
|
-
a.length && (i.attendants = a, i.count = a.length), Rr(e).fetchInstances();
|
|
14120
|
+
a.length > 0 && (i.attendants = a, i.count = a.length), Rr(e).fetchInstances();
|
|
14128
14121
|
} catch (s) {
|
|
14129
14122
|
console.error("Erro no setupLibrary:", s);
|
|
14130
14123
|
}
|