sm-click-library-ui 0.0.348 → 0.0.350
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.
|
@@ -1984,11 +1984,11 @@ const qr = $1("auth", {
|
|
|
1984
1984
|
getters: {
|
|
1985
1985
|
getToken: (e) => e.jwtToken
|
|
1986
1986
|
}
|
|
1987
|
-
}),
|
|
1987
|
+
}), Yt = je.create({
|
|
1988
1988
|
baseURL: "https://back.dev-smclick.com.br/"
|
|
1989
1989
|
// O `rootUrl` será definido dinamicamente via setupLibrary
|
|
1990
1990
|
});
|
|
1991
|
-
|
|
1991
|
+
Yt.interceptors.request.use(
|
|
1992
1992
|
(e) => {
|
|
1993
1993
|
const a = qr().getToken;
|
|
1994
1994
|
return a && (e.headers.Authorization = `Bearer ${a}`), e;
|
|
@@ -2005,7 +2005,7 @@ const As = "v1/api/attendances/attendant/", Ds = "v1/api/attendances/department/
|
|
|
2005
2005
|
async fetchInstances(e = "") {
|
|
2006
2006
|
try {
|
|
2007
2007
|
let t = `${Ts}`;
|
|
2008
|
-
const a = await
|
|
2008
|
+
const a = await Yt.get(t);
|
|
2009
2009
|
this.instances = a.data, await Promise.all(
|
|
2010
2010
|
this.instances.map(async (n) => {
|
|
2011
2011
|
n.isLoading = !0;
|
|
@@ -3616,7 +3616,7 @@ function b3(e, t, a) {
|
|
|
3616
3616
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
3617
3617
|
}
|
|
3618
3618
|
const _3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, C3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, S3 = /^'([^]*?)'?$/, M3 = /''/g, A3 = /[a-zA-Z]/;
|
|
3619
|
-
function
|
|
3619
|
+
function qt(e, t, a) {
|
|
3620
3620
|
var u, h, p, y, x, C, T, b;
|
|
3621
3621
|
const n = w1(), r = (a == null ? void 0 : a.locale) ?? n.locale ?? t2, o = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((h = (u = a == null ? void 0 : a.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((y = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, i = (a == null ? void 0 : a.weekStartsOn) ?? ((C = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : C.weekStartsOn) ?? n.weekStartsOn ?? ((b = (T = n.locale) == null ? void 0 : T.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = xe(e);
|
|
3622
3622
|
if (!Z1(l))
|
|
@@ -5477,7 +5477,7 @@ function On(e) {
|
|
|
5477
5477
|
return (t) => new Intl.DateTimeFormat(e, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0, 2);
|
|
5478
5478
|
}
|
|
5479
5479
|
function O4(e) {
|
|
5480
|
-
return (t) =>
|
|
5480
|
+
return (t) => qt(wt(/* @__PURE__ */ new Date(`2017-01-0${t}T00:00:00+00:00`), "UTC"), "EEEEEE", { locale: e });
|
|
5481
5481
|
}
|
|
5482
5482
|
const $4 = (e, t, a) => {
|
|
5483
5483
|
const n = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -5506,7 +5506,7 @@ const $4 = (e, t, a) => {
|
|
|
5506
5506
|
try {
|
|
5507
5507
|
const o = a === "long" ? "LLLL" : "LLL";
|
|
5508
5508
|
return n.map((i, l) => {
|
|
5509
|
-
const c =
|
|
5509
|
+
const c = qt(wt(i, "UTC"), o, { locale: e });
|
|
5510
5510
|
return {
|
|
5511
5511
|
text: c.charAt(0).toUpperCase() + c.substring(1),
|
|
5512
5512
|
value: l
|
|
@@ -5578,7 +5578,7 @@ function R4(e, t) {
|
|
|
5578
5578
|
if (n >= 0 && (t ? n - 1 >= 0 : n + 1 <= a.length))
|
|
5579
5579
|
return a[n + (t ? -1 : 1)];
|
|
5580
5580
|
}
|
|
5581
|
-
const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t}"]`), g2 = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), en = (e) =>
|
|
5581
|
+
const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t}"]`), g2 = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), en = (e) => qt(e, "dd-MM-yyyy"), c0 = (e) => Array.isArray(e), Aa = (e, t) => t.get(en(e)), G4 = (e, t) => e ? t ? t instanceof Map ? !!Aa(e, t) : t(J(e)) : !1 : !0, gt = (e, t, a = !1, n) => {
|
|
5582
5582
|
if (e.key === ze.enter || e.key === ze.space)
|
|
5583
5583
|
return a && e.preventDefault(), t();
|
|
5584
5584
|
if (n) return n(e);
|
|
@@ -5656,7 +5656,7 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
5656
5656
|
}, q4 = (e) => {
|
|
5657
5657
|
const t = Bt(e, 1);
|
|
5658
5658
|
return { month: Fe(t), year: Ce(t) };
|
|
5659
|
-
},
|
|
5659
|
+
}, Wt = (e, t) => {
|
|
5660
5660
|
const a = Ot(e, { weekStartsOn: +t }), n = e2(e, { weekStartsOn: +t });
|
|
5661
5661
|
return [a, n];
|
|
5662
5662
|
}, w2 = (e, t) => {
|
|
@@ -5666,7 +5666,7 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
5666
5666
|
seconds: t ? T1(J()) : 0
|
|
5667
5667
|
};
|
|
5668
5668
|
return Object.assign(a, e);
|
|
5669
|
-
}, a1 = (e, t, a) => [Re(J(e), { date: 1 }), Re(J(), { month: t, year: a, date: 1 })],
|
|
5669
|
+
}, a1 = (e, t, a) => [Re(J(e), { date: 1 }), Re(J(), { month: t, year: a, date: 1 })], jt = (e, t, a) => {
|
|
5670
5670
|
let n = e ? J(e) : J();
|
|
5671
5671
|
return (t || t === 0) && (n = c2(n, t)), a && (n = zt(n, a)), n;
|
|
5672
5672
|
}, b2 = (e, t, a, n, r) => {
|
|
@@ -5676,7 +5676,7 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
5676
5676
|
}, I4 = (e, t, a) => We(...a1(a, e, t)) || Pe(...a1(a, e, t)), W4 = (e, t, a) => Ze(...a1(a, e, t)) || Pe(...a1(a, e, t)), _2 = (e, t, a, n, r, o, i) => {
|
|
5677
5677
|
if (typeof t == "function" && !i) return t(e);
|
|
5678
5678
|
const l = a ? { locale: a } : void 0;
|
|
5679
|
-
return Array.isArray(e) ? `${
|
|
5679
|
+
return Array.isArray(e) ? `${qt(e[0], o, l)}${r && !e[1] ? "" : n}${e[1] ? qt(e[1], o, l) : ""}` : qt(e, o, l);
|
|
5680
5680
|
}, _1 = (e) => {
|
|
5681
5681
|
if (e) return null;
|
|
5682
5682
|
throw new Error(J0.prop("partial-range"));
|
|
@@ -5701,7 +5701,7 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
5701
5701
|
}
|
|
5702
5702
|
const o = h0(e, n, t);
|
|
5703
5703
|
return d0(n, o, a, !!t) && r;
|
|
5704
|
-
}, m0 = (e) => Re(J(), g1(e)), U4 = (e, t) => e instanceof Map ? Array.from(e.values()).filter((a) => Ce(J(a)) === t).map((a) => Fe(a)) : [], C2 = (e, t, a) => typeof e == "function" ? e({ month: t, year: a }) : !!e.months.find((n) => n.month === t && n.year === a), tn = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), S2 = (e) =>
|
|
5704
|
+
}, m0 = (e) => Re(J(), g1(e)), U4 = (e, t) => e instanceof Map ? Array.from(e.values()).filter((a) => Ce(J(a)) === t).map((a) => Fe(a)) : [], C2 = (e, t, a) => typeof e == "function" ? e({ month: t, year: a }) : !!e.months.find((n) => n.month === t && n.year === a), tn = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), S2 = (e) => qt(e, "yyyy-MM-dd"), W1 = na({
|
|
5705
5705
|
menuFocused: !1,
|
|
5706
5706
|
shiftKeyInMenu: !1
|
|
5707
5707
|
}), M2 = () => {
|
|
@@ -6020,16 +6020,16 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
6020
6020
|
)
|
|
6021
6021
|
] : _(S, o1(null, S.hours, S.minutes, S.seconds)), V = (S) => {
|
|
6022
6022
|
const ce = Re(J(), { date: 1 });
|
|
6023
|
-
return Array.isArray(S) ? l.value.enabled ? S.map((_e) => _(_e,
|
|
6023
|
+
return Array.isArray(S) ? l.value.enabled ? S.map((_e) => _(_e, jt(ce, +_e.month, +_e.year))) : va(
|
|
6024
6024
|
() => [
|
|
6025
|
-
_(S[0],
|
|
6025
|
+
_(S[0], jt(ce, +S[0].month, +S[0].year)),
|
|
6026
6026
|
_(
|
|
6027
6027
|
S[1],
|
|
6028
|
-
S[1] ?
|
|
6028
|
+
S[1] ? jt(ce, +S[1].month, +S[1].year) : _1(o.value.partialRange)
|
|
6029
6029
|
)
|
|
6030
6030
|
],
|
|
6031
6031
|
o.value.enabled
|
|
6032
|
-
) : _(S,
|
|
6032
|
+
) : _(S, jt(ce, +S.month, +S.year));
|
|
6033
6033
|
}, ee = (S) => {
|
|
6034
6034
|
if (Array.isArray(S))
|
|
6035
6035
|
return S.map((ce) => U(ce));
|
|
@@ -6061,9 +6061,9 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
6061
6061
|
const ce = ge(S);
|
|
6062
6062
|
B0(it(ce)) ? (n.value = it(ce), ie()) : (n.value = null, f.value = "");
|
|
6063
6063
|
}, z = () => {
|
|
6064
|
-
const S = (ce) =>
|
|
6064
|
+
const S = (ce) => qt(ce, r.value.format);
|
|
6065
6065
|
return `${S(n.value[0])} ${r.value.rangeSeparator} ${n.value[1] ? S(n.value[1]) : ""}`;
|
|
6066
|
-
}, E = () => a.value && n.value ? Array.isArray(n.value) ? z() :
|
|
6066
|
+
}, E = () => a.value && n.value ? Array.isArray(n.value) ? z() : qt(n.value, r.value.format) : x(n.value), q = () => n.value ? l.value.enabled ? n.value.map((S) => x(S)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? E() : x(n.value) : "", ie = () => {
|
|
6067
6067
|
!t.format || typeof t.format == "string" || r.value.enabled && typeof r.value.format == "string" ? f.value = q() : f.value = t.format(n.value);
|
|
6068
6068
|
}, U = (S) => {
|
|
6069
6069
|
if (t.utc) {
|
|
@@ -6086,10 +6086,10 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
6086
6086
|
n.value[1] ? S(n.value[1]) : _1(o.value.partialRange)
|
|
6087
6087
|
] : S(it(n.value)), D = () => {
|
|
6088
6088
|
if (Array.isArray(n.value)) {
|
|
6089
|
-
const S =
|
|
6089
|
+
const S = Wt(n.value[0], t.weekStart), ce = n.value[1] ? Wt(n.value[1], t.weekStart) : [];
|
|
6090
6090
|
return [S.map((_e) => J(_e)), ce.map((_e) => J(_e))];
|
|
6091
6091
|
}
|
|
6092
|
-
return
|
|
6092
|
+
return Wt(n.value, t.weekStart).map((S) => J(S));
|
|
6093
6093
|
}, v = (S, ce) => be(it(M(S)), !1, ce), G = (S) => {
|
|
6094
6094
|
const ce = D();
|
|
6095
6095
|
return S ? ce : e("update:model-value", D());
|
|
@@ -6900,7 +6900,7 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
6900
6900
|
if (i.value.enabled) {
|
|
6901
6901
|
const X = ue();
|
|
6902
6902
|
if (Array.isArray(y.value) && Array.isArray(X)) {
|
|
6903
|
-
const S = F(v, G, 0) || F(v, G, 1), ce =
|
|
6903
|
+
const S = F(v, G, 0) || F(v, G, 1), ce = jt(Ft(J()), v, x.value(G));
|
|
6904
6904
|
return Ha(y.value, _.value, ce) && !S;
|
|
6905
6905
|
}
|
|
6906
6906
|
return !1;
|
|
@@ -6914,9 +6914,9 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
6914
6914
|
k2(x.value(v), c.value.maxDate)
|
|
6915
6915
|
) || U4(c.value.disabledDates, x.value(v)).includes(G.value) || ((X = u.value.months) == null ? void 0 : X.includes(G.value)), _e = z(G.value, v), tt = C2(l.value, G.value, x.value(v));
|
|
6916
6916
|
return { active: S, disabled: ce, isBetween: _e, highlighted: tt };
|
|
6917
|
-
})), q = (v, G) =>
|
|
6917
|
+
})), q = (v, G) => jt(Ft(J()), v, x.value(G)), ie = (v, G) => {
|
|
6918
6918
|
const X = y.value ? y.value : Ft(/* @__PURE__ */ new Date());
|
|
6919
|
-
y.value =
|
|
6919
|
+
y.value = jt(X, v, x.value(G)), t("auto-apply"), t("update-flow-step");
|
|
6920
6920
|
}, U = (v, G) => {
|
|
6921
6921
|
const X = q(v, G);
|
|
6922
6922
|
i.value.fixedEnd || i.value.fixedStart ? y.value = T2(X, y, t, i) : y.value ? k(X, y.value) && (y.value = nn(y, q(v, G), t)) : y.value = [q(v, G)], Ye().then(() => {
|
|
@@ -8135,8 +8135,8 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
8135
8135
|
});
|
|
8136
8136
|
const P = (Y) => Y ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", N = (Y, ae) => {
|
|
8137
8137
|
if (r.transitions) {
|
|
8138
|
-
const w = yt(
|
|
8139
|
-
_.value = Ze(yt(
|
|
8138
|
+
const w = yt(jt(J(), r.month, r.year));
|
|
8139
|
+
_.value = Ze(yt(jt(J(), Y, ae)), w) ? i.value[P(!0)] : i.value[P(!1)], b.value = !1, Ye(() => {
|
|
8140
8140
|
b.value = !0;
|
|
8141
8141
|
});
|
|
8142
8142
|
}
|
|
@@ -8829,7 +8829,7 @@ const P0 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
8829
8829
|
filters: c,
|
|
8830
8830
|
props: e,
|
|
8831
8831
|
emit: t
|
|
8832
|
-
}), O = (z, E) => [z, E].map((q) =>
|
|
8832
|
+
}), O = (z, E) => [z, E].map((q) => qt(q, "MMMM", { locale: e.formatLocale })).join("-"), A = Q(() => (z) => u.value ? Array.isArray(u.value) ? u.value.some((E) => Bn(z, E)) : Bn(u.value, z) : !1), L = (z) => {
|
|
8833
8833
|
if (i.value.enabled) {
|
|
8834
8834
|
if (Array.isArray(u.value)) {
|
|
8835
8835
|
const E = Pe(z, u.value[0]) || Pe(z, u.value[1]);
|
|
@@ -9554,7 +9554,7 @@ const x6 = ({
|
|
|
9554
9554
|
if (c.value.autoRange || t.weekPicker) {
|
|
9555
9555
|
if (u.value) {
|
|
9556
9556
|
if (t.hideOffsetDates && !v.current) return !1;
|
|
9557
|
-
const G = Et(u.value, +c.value.autoRange), X =
|
|
9557
|
+
const G = Et(u.value, +c.value.autoRange), X = Wt(J(u.value), t.weekStart);
|
|
9558
9558
|
return t.weekPicker ? Pe(X[1], J(v.value)) : Pe(G, J(v.value));
|
|
9559
9559
|
}
|
|
9560
9560
|
return !1;
|
|
@@ -9565,7 +9565,7 @@ const x6 = ({
|
|
|
9565
9565
|
if (u.value) {
|
|
9566
9566
|
const G = Et(u.value, +c.value.autoRange);
|
|
9567
9567
|
if (t.hideOffsetDates && !v.current) return !1;
|
|
9568
|
-
const X =
|
|
9568
|
+
const X = Wt(J(u.value), t.weekStart);
|
|
9569
9569
|
return t.weekPicker ? Ze(v.value, X[0]) && We(v.value, X[1]) : Ze(v.value, u.value) && We(v.value, G);
|
|
9570
9570
|
}
|
|
9571
9571
|
return !1;
|
|
@@ -9575,7 +9575,7 @@ const x6 = ({
|
|
|
9575
9575
|
if (c.value.autoRange || t.weekPicker) {
|
|
9576
9576
|
if (u.value) {
|
|
9577
9577
|
if (t.hideOffsetDates && !v.current) return !1;
|
|
9578
|
-
const G =
|
|
9578
|
+
const G = Wt(J(u.value), t.weekStart);
|
|
9579
9579
|
return t.weekPicker ? Pe(G[0], v.value) : Pe(u.value, v.value);
|
|
9580
9580
|
}
|
|
9581
9581
|
return !1;
|
|
@@ -9608,7 +9608,7 @@ const x6 = ({
|
|
|
9608
9608
|
dp__date_hover: N(v)
|
|
9609
9609
|
}), ie = (v) => {
|
|
9610
9610
|
if (e.value && !Array.isArray(e.value)) {
|
|
9611
|
-
const G =
|
|
9611
|
+
const G = Wt(e.value, t.weekStart);
|
|
9612
9612
|
return {
|
|
9613
9613
|
...M(v),
|
|
9614
9614
|
dp__range_start: Pe(G[0], v.value),
|
|
@@ -9621,7 +9621,7 @@ const x6 = ({
|
|
|
9621
9621
|
};
|
|
9622
9622
|
}, U = (v) => {
|
|
9623
9623
|
if (e.value && Array.isArray(e.value)) {
|
|
9624
|
-
const G =
|
|
9624
|
+
const G = Wt(e.value[0], t.weekStart), X = e.value[1] ? Wt(e.value[1], t.weekStart) : [];
|
|
9625
9625
|
return {
|
|
9626
9626
|
...M(v),
|
|
9627
9627
|
dp__range_start: Pe(G[0], v.value) || Pe(X[0], v.value),
|
|
@@ -11231,7 +11231,7 @@ const i7 = () => {
|
|
|
11231
11231
|
try {
|
|
11232
11232
|
this.attendants = [];
|
|
11233
11233
|
let e = `${As}`;
|
|
11234
|
-
const t = await
|
|
11234
|
+
const t = await Yt.get(e);
|
|
11235
11235
|
this.attendants = t.data, this.count = this.attendants.length;
|
|
11236
11236
|
} catch (e) {
|
|
11237
11237
|
console.log("Erro ao buscar atendentes:", e);
|
|
@@ -11278,7 +11278,7 @@ function V2() {
|
|
|
11278
11278
|
);
|
|
11279
11279
|
if (c)
|
|
11280
11280
|
try {
|
|
11281
|
-
const f = await
|
|
11281
|
+
const f = await Yt.get(
|
|
11282
11282
|
`${s0}?attendant=${l}&page=1`
|
|
11283
11283
|
);
|
|
11284
11284
|
c.messages = f.data.results.reverse(), c.hasNextPage = f.data.next !== null, c.currentPage = 2, c.internal_chat = {
|
|
@@ -11294,7 +11294,7 @@ function V2() {
|
|
|
11294
11294
|
);
|
|
11295
11295
|
if (!(!c || !c.hasNextPage))
|
|
11296
11296
|
try {
|
|
11297
|
-
const f = await
|
|
11297
|
+
const f = await Yt.get(
|
|
11298
11298
|
`${s0}?attendant=${l}&page=${c.currentPage}`
|
|
11299
11299
|
);
|
|
11300
11300
|
c.messages = [
|
|
@@ -11335,7 +11335,7 @@ function V2() {
|
|
|
11335
11335
|
};
|
|
11336
11336
|
u.messages.push(h);
|
|
11337
11337
|
try {
|
|
11338
|
-
await
|
|
11338
|
+
await Yt.post(
|
|
11339
11339
|
`${s0}${u.internal_chat.channel_id}/message/`,
|
|
11340
11340
|
{
|
|
11341
11341
|
id: h.id,
|
|
@@ -13766,7 +13766,7 @@ const U2 = /* @__PURE__ */ et(n8, [["render", l8], ["__scopeId", "data-v-bd52dde
|
|
|
13766
13766
|
async fetchDepartments(e = "") {
|
|
13767
13767
|
try {
|
|
13768
13768
|
let t = `${Ds}`;
|
|
13769
|
-
const a = await
|
|
13769
|
+
const a = await Yt.get(t);
|
|
13770
13770
|
this.departments = a.data, this.count = this.departments.length;
|
|
13771
13771
|
} catch (t) {
|
|
13772
13772
|
console.log("Erro ao buscar departamentos:", t);
|
|
@@ -15541,11 +15541,11 @@ const sk = { render: ik }, lk = {
|
|
|
15541
15541
|
])
|
|
15542
15542
|
]);
|
|
15543
15543
|
};
|
|
15544
|
-
function
|
|
15544
|
+
function It(e) {
|
|
15545
15545
|
return e[Math.floor(Math.random() * e.length)];
|
|
15546
15546
|
}
|
|
15547
15547
|
function dk(e) {
|
|
15548
|
-
return
|
|
15548
|
+
return It(Object.keys(e));
|
|
15549
15549
|
}
|
|
15550
15550
|
function j1(e) {
|
|
15551
15551
|
return e[dk(e)];
|
|
@@ -15709,14 +15709,14 @@ const nr = {
|
|
|
15709
15709
|
topColor: (r = e.topColor) != null ? r : j1(nr),
|
|
15710
15710
|
clothesColor: (o = e.clothesColor) != null ? o : j1(nr),
|
|
15711
15711
|
facialHairColor: (i = e.facialHairColor) != null ? i : j1(rr),
|
|
15712
|
-
accessories: (l = e.accessories) != null ? l :
|
|
15713
|
-
eyes: (c = e.eyes) != null ? c :
|
|
15714
|
-
eyebrows: (f = e.eyebrows) != null ? f :
|
|
15715
|
-
mouth: (u = e.mouth) != null ? u :
|
|
15716
|
-
top: (h = e.top) != null ? h :
|
|
15717
|
-
clothes: (p = e.clothes) != null ? p :
|
|
15718
|
-
graphicShirt: (y = e.graphicShirt) != null ? y :
|
|
15719
|
-
facialHair: (x = e.facialHair) != null ? x :
|
|
15712
|
+
accessories: (l = e.accessories) != null ? l : It(mk),
|
|
15713
|
+
eyes: (c = e.eyes) != null ? c : It(fk),
|
|
15714
|
+
eyebrows: (f = e.eyebrows) != null ? f : It(pk),
|
|
15715
|
+
mouth: (u = e.mouth) != null ? u : It(gk),
|
|
15716
|
+
top: (h = e.top) != null ? h : It(yk),
|
|
15717
|
+
clothes: (p = e.clothes) != null ? p : It(kk),
|
|
15718
|
+
graphicShirt: (y = e.graphicShirt) != null ? y : It(xk),
|
|
15719
|
+
facialHair: (x = e.facialHair) != null ? x : It(vk)
|
|
15720
15720
|
};
|
|
15721
15721
|
}, or = {
|
|
15722
15722
|
isCircle: !0,
|
|
@@ -41405,11 +41405,14 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
41405
41405
|
async getPatchNotes() {
|
|
41406
41406
|
this.skeletonLoader = !0;
|
|
41407
41407
|
try {
|
|
41408
|
-
const e = await
|
|
41408
|
+
const e = await Yt.get(
|
|
41409
41409
|
// "https://8c921c4e-8185-44ed-aa7d-71c64f6174ee.mock.pstmn.io/v1/api/patch-notes/attendance"
|
|
41410
|
-
"/v1/api/services/updates/history?system=
|
|
41410
|
+
"/v1/api/services/updates/history?system=attendant&type=latest&page=1&page_size=10"
|
|
41411
|
+
), t = await Yt.get(
|
|
41412
|
+
// "https://8c921c4e-8185-44ed-aa7d-71c64f6174ee.mock.pstmn.io/v1/api/patch-notes/attendance"
|
|
41413
|
+
"/v1/api/services/updates/history?system=attendant&type=future&page=1&page_size=10"
|
|
41411
41414
|
);
|
|
41412
|
-
|
|
41415
|
+
console.log("Ultimas atts", e.data), console.log("Futuras atts", t.data);
|
|
41413
41416
|
} catch (e) {
|
|
41414
41417
|
console.error(e);
|
|
41415
41418
|
} finally {
|
|
@@ -41615,7 +41618,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
41615
41618
|
])
|
|
41616
41619
|
], 2));
|
|
41617
41620
|
}
|
|
41618
|
-
}, sr = /* @__PURE__ */ et(wx, [["__scopeId", "data-v-792ad9fe"]]), ja = (e) => (at("data-v-
|
|
41621
|
+
}, sr = /* @__PURE__ */ et(wx, [["__scopeId", "data-v-792ad9fe"]]), ja = (e) => (at("data-v-0615aed7"), e = e(), nt(), e), bx = /* @__PURE__ */ ja(() => /* @__PURE__ */ s("div", { class: "modal-overlay-patch-notes" }, [
|
|
41619
41622
|
/* @__PURE__ */ s("div", { class: "modal-backdrop-patch-notes" })
|
|
41620
41623
|
], -1)), _x = { class: "modal-container-patch-notes" }, Cx = { class: "modal-content-patch-notes scroll_area_patch_notes_latest_update" }, Sx = { class: "modal-header-patch-notes" }, Mx = /* @__PURE__ */ ja(() => /* @__PURE__ */ s("svg", {
|
|
41621
41624
|
class: "modal-close-icon-patch-notes",
|
|
@@ -41636,13 +41639,13 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
41636
41639
|
], Dx = { class: "modal-body-patch-notes" }, Tx = { class: "modal-body-control" }, Ex = { class: "modal-section-patch-notes updates-section-patch-notes" }, Fx = /* @__PURE__ */ ja(() => /* @__PURE__ */ s("h1", { class: "header_latest_update" }, "Ultimas Atualizações", -1)), Px = { class: "features-list scrollable-section scroll_area_patch_notes_latest_update" }, Bx = {
|
|
41637
41640
|
key: 0,
|
|
41638
41641
|
class: "sections-skeleton-loader"
|
|
41639
|
-
}, Ox = { class: "skeleton-loader" }, $x = {
|
|
41642
|
+
}, Ox = { class: "skeleton-loader skeleton-color-latest_update" }, $x = {
|
|
41640
41643
|
key: 1,
|
|
41641
41644
|
class: "text-not-patchs"
|
|
41642
41645
|
}, Hx = { class: "modal-section-patch-notes future-section-patch-notes" }, Vx = /* @__PURE__ */ ja(() => /* @__PURE__ */ s("h1", { class: "header_future_updates" }, "Futuras Atualizações", -1)), Lx = { class: "features-list scrollable-section scroll_area_patch_notes_future_updates" }, Nx = {
|
|
41643
41646
|
key: 0,
|
|
41644
41647
|
class: "sections-skeleton-loader"
|
|
41645
|
-
}, Rx = { class: "skeleton-loader" }, Gx = {
|
|
41648
|
+
}, Rx = { class: "skeleton-loader skeleton-color-future_updates" }, Gx = {
|
|
41646
41649
|
key: 1,
|
|
41647
41650
|
class: "text-not-patchs"
|
|
41648
41651
|
}, zx = {
|
|
@@ -41710,7 +41713,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
41710
41713
|
]);
|
|
41711
41714
|
};
|
|
41712
41715
|
}
|
|
41713
|
-
}, ro = /* @__PURE__ */ et(zx, [["__scopeId", "data-v-
|
|
41716
|
+
}, ro = /* @__PURE__ */ et(zx, [["__scopeId", "data-v-0615aed7"]]), Yx = {
|
|
41714
41717
|
key: 0,
|
|
41715
41718
|
class: "main-container-new-update"
|
|
41716
41719
|
}, qx = /* @__PURE__ */ s("svg", {
|
|
@@ -41840,11 +41843,12 @@ function rw(e, t = "add") {
|
|
|
41840
41843
|
async function ow(e, t, a, n = [], r = [], o = []) {
|
|
41841
41844
|
try {
|
|
41842
41845
|
const i = await qr(e);
|
|
41843
|
-
t && await i.setToken(t), a && (
|
|
41846
|
+
t && await i.setToken(t), a && (Yt.defaults.baseURL = a);
|
|
41844
41847
|
const l = sn(e);
|
|
41845
41848
|
r.length > 0 && (l.departments = r, l.count = r.length);
|
|
41846
41849
|
const c = za(e);
|
|
41847
|
-
n.length > 0 && (c.attendants = n, c.count = n.length), await N0(e).fetchInstances()
|
|
41850
|
+
n.length > 0 && (c.attendants = n, c.count = n.length), await N0(e).fetchInstances();
|
|
41851
|
+
const u = ln(e);
|
|
41848
41852
|
} catch (i) {
|
|
41849
41853
|
console.error("Erro no setupLibrary:", i);
|
|
41850
41854
|
}
|