sm-click-library-ui 0.0.627 → 0.0.628
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.
- package/dist/{index-C8jQtvtq.js → index-BHOk-yH4.js} +219 -207
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/{vue3-lottie.es-DRqBm1V-.js → vue3-lottie.es-CYppsQF-.js} +1 -1
- package/dist/{web-D4ciz9Rf.js → web-6DGqsbQn.js} +2 -2
- package/dist/{web-DU_WMdb4.js → web-CRDw_w96.js} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ea from "vue";
|
|
2
|
-
import { ref as J, watch as
|
|
2
|
+
import { ref as J, watch as Je, createElementBlock as f, openBlock as l, createElementVNode as s, Fragment as ge, renderList as Ne, normalizeClass as U, toDisplayString as I, computed as T, withDirectives as pt, createCommentVNode as F, withModifiers as ht, vModelText as Vt, createVNode as he, Transition as $t, withCtx as Ae, createTextVNode as He, defineComponent as oi, toRefs as g0, onMounted as gt, onUnmounted as En, renderSlot as ot, vShow as Gt, nextTick as wt, pushScopeId as w5, popScopeId as k5, normalizeStyle as je, onBeforeUnmount as Mt, createBlock as xe, unref as oe, resolveComponent as Nt, Teleport as cn, createSlots as ii, getCurrentScope as _5, onScopeDispose as C5, useSlots as y0, createStaticVNode as st, shallowRef as ri, inject as qn, resolveDirective as a3, resolveDynamicComponent as An, reactive as Ss, mergeModels as s3, useModel as ss, mergeProps as ps, TransitionGroup as b0, isRef as x0, withKeys as bs, useCssVars as S5, watchEffect as Qs, provide as Di, toRef as M5, vModelSelect as A5, h as Tt, normalizeProps as $5, guardReactiveProps as E5, vModelCheckbox as o3, vModelDynamic as L5, toRaw as i3, readonly as Oa, isVNode as w0, defineAsyncComponent as T5, toHandlers as P5, useAttrs as B5 } from "vue";
|
|
3
3
|
import { defineStore as da, getActivePinia as k0, storeToRefs as z5 } from "pinia";
|
|
4
4
|
import { notify as un } from "notiwind";
|
|
5
5
|
const F5 = { class: "pt-2" }, O5 = { class: "relative" }, D5 = ["value", "placeholder"], R5 = {
|
|
@@ -11,7 +11,7 @@ const F5 = { class: "pt-2" }, O5 = { class: "relative" }, D5 = ["value", "placeh
|
|
|
11
11
|
emits: ["update:modelValue", "submit"],
|
|
12
12
|
setup(e, { emit: t }) {
|
|
13
13
|
const n = e, a = t, i = J(n.modelValue ?? "");
|
|
14
|
-
|
|
14
|
+
Je(
|
|
15
15
|
() => n.modelValue,
|
|
16
16
|
(u) => {
|
|
17
17
|
i.value = u ?? "";
|
|
@@ -300,7 +300,7 @@ const fm = /* @__PURE__ */ r3(im, [["render", dm], ["__scopeId", "data-v-d3e3763
|
|
|
300
300
|
function v() {
|
|
301
301
|
a == null || a.disconnect(), a = om(x);
|
|
302
302
|
}
|
|
303
|
-
return
|
|
303
|
+
return Je(p, v), gt(async () => {
|
|
304
304
|
x.parentEl = await sm(y), v();
|
|
305
305
|
}), En(() => a == null ? void 0 : a.disconnect()), (b, k) => (l(), f("div", {
|
|
306
306
|
ref_key: "infiniteLoading",
|
|
@@ -2545,7 +2545,7 @@ const Xp = "v1/api/attendances/attendant/", Jp = "v1/api/attendances/department/
|
|
|
2545
2545
|
zIndex: 9999
|
|
2546
2546
|
};
|
|
2547
2547
|
};
|
|
2548
|
-
|
|
2548
|
+
Je(u, async (G) => {
|
|
2549
2549
|
G && (await wt(), C(), requestAnimationFrame(C));
|
|
2550
2550
|
});
|
|
2551
2551
|
const $ = T(() => c.tagsFor(w.value)), M = T(() => [...n.syntheticTags, ...$.value]), _ = T(() => c.hasMoreFor(w.value)), P = T(() => c.loadingFor(w.value)), z = T(() => c.loadedFor(w.value)), W = (G) => {
|
|
@@ -2564,7 +2564,7 @@ const Xp = "v1/api/attendances/attendant/", Jp = "v1/api/attendances/department/
|
|
|
2564
2564
|
P.value || (await c.fetchTags({ query: w.value }), c.hasMoreFor(w.value) ? G.loaded() : G.complete());
|
|
2565
2565
|
};
|
|
2566
2566
|
let Z;
|
|
2567
|
-
return
|
|
2567
|
+
return Je(
|
|
2568
2568
|
() => x.value.name,
|
|
2569
2569
|
(G) => {
|
|
2570
2570
|
clearTimeout(Z), Z = setTimeout(() => {
|
|
@@ -2580,11 +2580,11 @@ const Xp = "v1/api/attendances/attendant/", Jp = "v1/api/attendances/department/
|
|
|
2580
2580
|
}
|
|
2581
2581
|
}), Mt(() => {
|
|
2582
2582
|
clearTimeout(Z), document.removeEventListener("mousedown", b), y.forEach(([G, N]) => window.removeEventListener(G, N, G === "scroll" ? !0 : void 0));
|
|
2583
|
-
}),
|
|
2583
|
+
}), Je(
|
|
2584
2584
|
() => n.allTags,
|
|
2585
2585
|
(G) => c.seed(G),
|
|
2586
2586
|
{ deep: !0, immediate: !0 }
|
|
2587
|
-
),
|
|
2587
|
+
), Je(
|
|
2588
2588
|
() => n.modelValue,
|
|
2589
2589
|
(G) => c.upsert(G || []),
|
|
2590
2590
|
{ deep: !0, immediate: !0 }
|
|
@@ -2905,7 +2905,7 @@ const Xp = "v1/api/attendances/attendant/", Jp = "v1/api/attendances/department/
|
|
|
2905
2905
|
const n = e, a = t, i = J(null), r = J(null), c = J({}), u = {}, h = J({ ...n.filters }), m = J({ ...n.filters }), p = Object.freeze([]), y = (ee) => JSON.stringify(
|
|
2906
2906
|
Object.entries(ee ?? {}).filter(([, ae]) => Array.isArray(ae) ? ae.length > 0 : ae != null && ae !== "").sort(([ae], [ye]) => ae.localeCompare(ye))
|
|
2907
2907
|
);
|
|
2908
|
-
|
|
2908
|
+
Je(
|
|
2909
2909
|
() => n.filters,
|
|
2910
2910
|
(ee) => {
|
|
2911
2911
|
y(ee) !== y(h.value) && (h.value = { ...ee }, m.value = { ...ee });
|
|
@@ -3055,7 +3055,7 @@ const Xp = "v1/api/attendances/attendant/", Jp = "v1/api/attendances/department/
|
|
|
3055
3055
|
function re(ee) {
|
|
3056
3056
|
return ee === "left" ? "justify-start" : ee === "right" ? "justify-end" : "justify-center";
|
|
3057
3057
|
}
|
|
3058
|
-
return
|
|
3058
|
+
return Je(i, async (ee) => {
|
|
3059
3059
|
ee && (await wt(), N(), requestAnimationFrame(N));
|
|
3060
3060
|
}), gt(() => {
|
|
3061
3061
|
document.addEventListener("mousedown", S), window.addEventListener("scroll", O, !0), window.addEventListener("resize", O);
|
|
@@ -3553,7 +3553,7 @@ const Xp = "v1/api/attendances/attendant/", Jp = "v1/api/attendances/department/
|
|
|
3553
3553
|
function w(b) {
|
|
3554
3554
|
c.value = b, y();
|
|
3555
3555
|
}
|
|
3556
|
-
|
|
3556
|
+
Je(
|
|
3557
3557
|
() => [a.instanceId, a.departmentId, a.extraParams],
|
|
3558
3558
|
() => {
|
|
3559
3559
|
c.value = 1, y();
|
|
@@ -3859,7 +3859,7 @@ function Yl(...e) {
|
|
|
3859
3859
|
Array.isArray(n) || (n = [n]), Array.isArray(a) || (a = [a]);
|
|
3860
3860
|
const r = [], c = () => {
|
|
3861
3861
|
r.forEach((p) => p()), r.length = 0;
|
|
3862
|
-
}, u = (p, y, x, w) => (p.addEventListener(y, x, w), () => p.removeEventListener(y, x, w)), h =
|
|
3862
|
+
}, u = (p, y, x, w) => (p.addEventListener(y, x, w), () => p.removeEventListener(y, x, w)), h = Je(
|
|
3863
3863
|
() => [Do(t), R3(i)],
|
|
3864
3864
|
([p, y]) => {
|
|
3865
3865
|
if (c(), !p)
|
|
@@ -4884,7 +4884,7 @@ function J3(e = !0) {
|
|
|
4884
4884
|
!(u != null && u.nodeType) || !js || (js.unobserve(u), R1.delete(u), n.value = !1);
|
|
4885
4885
|
}
|
|
4886
4886
|
return gt(() => {
|
|
4887
|
-
a.value && r(),
|
|
4887
|
+
a.value && r(), Je(a, (u) => u ? r() : c());
|
|
4888
4888
|
}), Mt(c), { offscreenRef: t, paused: n };
|
|
4889
4889
|
}
|
|
4890
4890
|
const _v = {
|
|
@@ -8239,19 +8239,19 @@ const Ir = (e, t = {}, n = {}) => {
|
|
|
8239
8239
|
let at = B("slidesPerPage");
|
|
8240
8240
|
at = at === "auto" ? 1 / 0 : parseFloat(at + ""), S = [];
|
|
8241
8241
|
let rt = 0, mt = 0;
|
|
8242
|
-
for (const
|
|
8242
|
+
for (const Xe of N) (!S.length || rt + Xe.dim - Ee > 0.05 || mt >= at) && (S.push({ index: S.length, slides: [], dim: 0, offset: 0, pos: 0 }), rt = 0, mt = 0), (Te = S[S.length - 1]) === null || Te === void 0 || Te.slides.push(Xe), rt += Xe.dim + D, mt++;
|
|
8243
8243
|
const xt = B("center"), Zt = B("fill");
|
|
8244
8244
|
let Xt = 0;
|
|
8245
|
-
for (const
|
|
8246
|
-
|
|
8247
|
-
for (const Ke of
|
|
8248
|
-
|
|
8245
|
+
for (const Xe of S) {
|
|
8246
|
+
Xe.dim = (Xe.slides.length - 1) * D;
|
|
8247
|
+
for (const Ke of Xe.slides) Xe.dim += Ke.dim;
|
|
8248
|
+
Xe.offset = Xt, Xe.pos = Xt, xt !== !1 && (Xe.pos -= 0.5 * (Ee - Xe.dim)), Zt && !b && tt > Ee && (Xe.pos = Pt(0, Xe.pos, tt - Ee)), Xt += Xe.dim + D;
|
|
8249
8249
|
}
|
|
8250
8250
|
const Jt = [];
|
|
8251
|
-
let
|
|
8252
|
-
for (const
|
|
8253
|
-
const Ke = Object.assign({},
|
|
8254
|
-
|
|
8251
|
+
let Ye;
|
|
8252
|
+
for (const Xe of S) {
|
|
8253
|
+
const Ke = Object.assign({}, Xe);
|
|
8254
|
+
Ye && Math.abs(Ke.pos - Ye.pos) < 0.1 ? (Ye.dim += Ke.dim, Ye.slides = [...Ye.slides, ...Ke.slides]) : (Ye = Ke, Ke.index = Jt.length, Jt.push(Ke));
|
|
8255
8255
|
}
|
|
8256
8256
|
S = Jt, P = Pt(0, P, S.length - 1);
|
|
8257
8257
|
})(), W = ((Me = S[0]) === null || Me === void 0 ? void 0 : Me.pos) || 0, j = ((ze = S[S.length - 1]) === null || ze === void 0 ? void 0 : ze.pos) || 0, h === 0 ? function() {
|
|
@@ -8343,11 +8343,11 @@ const Ir = (e, t = {}, n = {}) => {
|
|
|
8343
8343
|
const Zt = S.length;
|
|
8344
8344
|
let Xt = Ee > P ? 1 : -1;
|
|
8345
8345
|
Ee = b ? (Ee % Zt + Zt) % Zt : Pt(0, Ee, Zt - 1), k && (Xt *= -1);
|
|
8346
|
-
const Jt = (rt = S[P]) === null || rt === void 0 ? void 0 : rt.slides[0],
|
|
8347
|
-
if (Ke === void 0 ||
|
|
8346
|
+
const Jt = (rt = S[P]) === null || rt === void 0 ? void 0 : rt.slides[0], Ye = Jt == null ? void 0 : Jt.index, Xe = (mt = S[Ee]) === null || mt === void 0 ? void 0 : mt.slides[0], Ke = Xe == null ? void 0 : Xe.index, zt = (xt = S[Ee]) === null || xt === void 0 ? void 0 : xt.pos;
|
|
8347
|
+
if (Ke === void 0 || Ye === void 0 || Ye === Ke || M === zt || Math.abs(_e() - ((Xe == null ? void 0 : Xe.dim) || 0)) > 1) return !1;
|
|
8348
8348
|
_ = !1, i.pause(), de(), bt(x, "in-transition"), M = z = zt;
|
|
8349
|
-
const Lt = Oe(Jt), Kt = Oe(
|
|
8350
|
-
return Q(), Lt && (V.add(
|
|
8349
|
+
const Lt = Oe(Jt), Kt = Oe(Xe);
|
|
8350
|
+
return Q(), Lt && (V.add(Ye), Lt.style.transform = "", Lt.addEventListener("animationend", $e), xn(Lt, p.classes.isSelected), Lt.inert = !1, bt(Lt, `f-${tt}Out to-${Xt > 0 ? "next" : "prev"}`)), Kt && (V.add(Ke), Kt.style.transform = "", Kt.addEventListener("animationend", $e), bt(Kt, p.classes.isSelected), Kt.inert = !1, bt(Kt, `f-${tt}In from-${Xt > 0 ? "prev" : "next"}`)), et(), !0;
|
|
8351
8351
|
}(le, Ge)) return;
|
|
8352
8352
|
le = b ? (le % Ue + Ue) % Ue : Pt(0, le, Ue - 1), z = ((Me = S[le || 0]) === null || Me === void 0 ? void 0 : Me.pos) || 0;
|
|
8353
8353
|
const Te = i.isRunning() ? i.getEndValues().pos : M;
|
|
@@ -10504,13 +10504,13 @@ const Ot = { Plugins: { Hash: j1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
10504
10504
|
function C(_) {
|
|
10505
10505
|
r.value = _, u("function", _);
|
|
10506
10506
|
}
|
|
10507
|
-
|
|
10507
|
+
Je(
|
|
10508
10508
|
() => c.modelValue,
|
|
10509
10509
|
(_) => {
|
|
10510
10510
|
c.multiple || (r.value = _);
|
|
10511
10511
|
},
|
|
10512
10512
|
{ immediate: !0 }
|
|
10513
|
-
),
|
|
10513
|
+
), Je(r, (_) => {
|
|
10514
10514
|
c.multiple || u("update:modelValue", _);
|
|
10515
10515
|
}), gt(async () => {
|
|
10516
10516
|
if (r.value) {
|
|
@@ -11060,7 +11060,7 @@ const Ot = { Plugins: { Hash: j1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
11060
11060
|
}
|
|
11061
11061
|
), x = [];
|
|
11062
11062
|
}
|
|
11063
|
-
|
|
11063
|
+
Je(
|
|
11064
11064
|
() => i.value,
|
|
11065
11065
|
async (_) => {
|
|
11066
11066
|
var P;
|
|
@@ -11071,7 +11071,7 @@ const Ot = { Plugins: { Hash: j1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
11071
11071
|
} else
|
|
11072
11072
|
$();
|
|
11073
11073
|
}
|
|
11074
|
-
),
|
|
11074
|
+
), Je(
|
|
11075
11075
|
() => n.anchorEl,
|
|
11076
11076
|
async (_) => {
|
|
11077
11077
|
var z;
|
|
@@ -11080,12 +11080,12 @@ const Ot = { Plugins: { Hash: j1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
11080
11080
|
const P = _ instanceof Element ? _ : null;
|
|
11081
11081
|
P && (y = new ResizeObserver(v), y.observe(P)), v();
|
|
11082
11082
|
}
|
|
11083
|
-
),
|
|
11083
|
+
), Je(
|
|
11084
11084
|
() => n.anchorRect,
|
|
11085
11085
|
() => {
|
|
11086
11086
|
i.value && v();
|
|
11087
11087
|
}
|
|
11088
|
-
),
|
|
11088
|
+
), Je(
|
|
11089
11089
|
() => [n.placement, n.align, n.offset, n.viewportPadding],
|
|
11090
11090
|
() => {
|
|
11091
11091
|
i.value && v();
|
|
@@ -12765,7 +12765,7 @@ const za = /* @__PURE__ */ new Map(), Af = da("scheduled", {
|
|
|
12765
12765
|
return u.value.push("date"), Promise.reject(x);
|
|
12766
12766
|
}
|
|
12767
12767
|
};
|
|
12768
|
-
|
|
12768
|
+
Je(a, (p) => {
|
|
12769
12769
|
if (!(p instanceof Date) || n.viewOnly) return;
|
|
12770
12770
|
const y = r.value;
|
|
12771
12771
|
p.getTime() < y.getTime() && (a.value = new Date(y.getTime()));
|
|
@@ -14398,7 +14398,7 @@ const ux = { class: "itemc-head" }, dx = {
|
|
|
14398
14398
|
status: null
|
|
14399
14399
|
// true = pendente, false = executado, null = sem filtro (não emitido)
|
|
14400
14400
|
});
|
|
14401
|
-
|
|
14401
|
+
Je(
|
|
14402
14402
|
() => n.open,
|
|
14403
14403
|
async (j) => {
|
|
14404
14404
|
var N, V, A;
|
|
@@ -14480,7 +14480,7 @@ const ux = { class: "itemc-head" }, dx = {
|
|
|
14480
14480
|
return (Z = j.removeEventListener) == null ? void 0 : Z.call(j, "scroll", k);
|
|
14481
14481
|
}), M = [];
|
|
14482
14482
|
}
|
|
14483
|
-
|
|
14483
|
+
Je(
|
|
14484
14484
|
() => n.open,
|
|
14485
14485
|
async (j) => {
|
|
14486
14486
|
var G, N, V, A;
|
|
@@ -14492,7 +14492,7 @@ const ux = { class: "itemc-head" }, dx = {
|
|
|
14492
14492
|
const Z = n.anchorEl instanceof Element ? n.anchorEl : null;
|
|
14493
14493
|
Z && ($ = new ResizeObserver(k), $.observe(Z)), window.addEventListener("resize", k);
|
|
14494
14494
|
}
|
|
14495
|
-
),
|
|
14495
|
+
), Je(
|
|
14496
14496
|
() => n.anchorEl,
|
|
14497
14497
|
async () => {
|
|
14498
14498
|
n.open && (await wt(), _(), k());
|
|
@@ -14855,8 +14855,8 @@ const ux = { class: "itemc-head" }, dx = {
|
|
|
14855
14855
|
if (typeof at == "function") return !!at(xt, fe);
|
|
14856
14856
|
if (Array.isArray(at)) return at.map(String).includes(String(xt));
|
|
14857
14857
|
if (typeof at == "object") {
|
|
14858
|
-
const { in:
|
|
14859
|
-
if (
|
|
14858
|
+
const { in: Ye, notIn: Xe, range: Ke, contains: zt } = at;
|
|
14859
|
+
if (Ye && !Ye.map(String).includes(String(xt)) || Xe && Xe.map(String).includes(String(xt))) return !1;
|
|
14860
14860
|
if (Ke && typeof xt == "number") {
|
|
14861
14861
|
const [Lt, Kt] = Ke;
|
|
14862
14862
|
if (Lt != null && xt < Lt || Kt != null && xt > Kt)
|
|
@@ -14964,12 +14964,12 @@ const ux = { class: "itemc-head" }, dx = {
|
|
|
14964
14964
|
}
|
|
14965
14965
|
return gt(async () => {
|
|
14966
14966
|
dt(), await i.ensureMonthLoaded(De.value);
|
|
14967
|
-
}),
|
|
14967
|
+
}), Je(
|
|
14968
14968
|
() => a.sourceUrl,
|
|
14969
14969
|
async (fe) => {
|
|
14970
14970
|
i.setBaseUrl(fe), i.resetAll(), await i.ensureMonthLoaded(De.value);
|
|
14971
14971
|
}
|
|
14972
|
-
),
|
|
14972
|
+
), Je(De, async () => {
|
|
14973
14973
|
const fe = c.value.getFullYear(), Te = c.value.getMonth(), Ee = Math.min(
|
|
14974
14974
|
u.value.getDate(),
|
|
14975
14975
|
W(c.value)
|
|
@@ -15245,7 +15245,7 @@ function q1(e, t, n) {
|
|
|
15245
15245
|
q1.debounce = q1;
|
|
15246
15246
|
var l1 = q1;
|
|
15247
15247
|
function Sk(e, t, n) {
|
|
15248
|
-
x0(e) ?
|
|
15248
|
+
x0(e) ? Je(e, (a, i) => {
|
|
15249
15249
|
i == null || i.removeEventListener(t, n), a == null || a.addEventListener(t, n);
|
|
15250
15250
|
}) : gt(() => {
|
|
15251
15251
|
e.addEventListener(t, n);
|
|
@@ -15269,7 +15269,7 @@ function Ak(e, t, n) {
|
|
|
15269
15269
|
childList: !0,
|
|
15270
15270
|
subtree: !0
|
|
15271
15271
|
});
|
|
15272
|
-
}), Mt(() => a.disconnect()),
|
|
15272
|
+
}), Mt(() => a.disconnect()), Je(n, (c) => {
|
|
15273
15273
|
c ? i.value = !0 : i.value = !1;
|
|
15274
15274
|
});
|
|
15275
15275
|
const r = () => {
|
|
@@ -16112,7 +16112,7 @@ function T_({
|
|
|
16112
16112
|
}, w = () => {
|
|
16113
16113
|
h.isOpen || (h.isOpen = !0, t("open:popper"));
|
|
16114
16114
|
};
|
|
16115
|
-
|
|
16115
|
+
Je([() => h.isOpen, r], async ([b]) => {
|
|
16116
16116
|
b ? (await v(), p()) : y();
|
|
16117
16117
|
});
|
|
16118
16118
|
const v = async () => {
|
|
@@ -16381,9 +16381,9 @@ var Vf = {
|
|
|
16381
16381
|
}, D = () => {
|
|
16382
16382
|
_.value ? R() : O();
|
|
16383
16383
|
};
|
|
16384
|
-
return
|
|
16384
|
+
return Je([W, x], ([B, q]) => {
|
|
16385
16385
|
_.value && (!B || q) && z();
|
|
16386
|
-
}),
|
|
16386
|
+
}), Je(_, (B) => {
|
|
16387
16387
|
B ? u.value = !0 : l1.debounce(() => {
|
|
16388
16388
|
u.value = !1;
|
|
16389
16389
|
}, 200);
|
|
@@ -16798,7 +16798,7 @@ const R_ = { class: "sections-header" }, I_ = {
|
|
|
16798
16798
|
O.value = !1;
|
|
16799
16799
|
}, D);
|
|
16800
16800
|
}
|
|
16801
|
-
|
|
16801
|
+
Je([_, G], ([O, R], [D, B]) => {
|
|
16802
16802
|
var q;
|
|
16803
16803
|
b.value && ((q = window.matchMedia) != null && q.call(window, "(prefers-reduced-motion: reduce)").matches || (R > B && B > 0 ? Z = N(W, Z, 1e3) : O > D && (j = N(z, j, 760))));
|
|
16804
16804
|
}), Mt(() => {
|
|
@@ -17538,7 +17538,7 @@ const OC = ["aria-busy"], DC = {
|
|
|
17538
17538
|
const M = (n.listGroups || []).filter((P) => P == null ? void 0 : P.is_group), _ = p(h.value);
|
|
17539
17539
|
return _ ? M.filter((P) => p(y(P)).includes(_)) : M;
|
|
17540
17540
|
});
|
|
17541
|
-
|
|
17541
|
+
Je(
|
|
17542
17542
|
() => c.value,
|
|
17543
17543
|
async (M) => {
|
|
17544
17544
|
h.value = "", M === "groups" && await b();
|
|
@@ -21041,7 +21041,7 @@ const LA = {
|
|
|
21041
21041
|
emits: ["audio-sent", "recording", "b64Audio"],
|
|
21042
21042
|
setup(e, { emit: t }) {
|
|
21043
21043
|
const n = e, a = t, i = J(null), r = J(!1), c = J(!1), u = J(0), h = J(0), m = J(null), p = J(null), y = J(null), x = J(null), w = J(null), v = J(!1), b = J(!1), k = T(() => r.value || !!p.value);
|
|
21044
|
-
|
|
21044
|
+
Je(k, (q) => a("recording", q), { immediate: !0 });
|
|
21045
21045
|
const C = J(null), $ = J(!1), M = J(0), _ = T(() => u.value ? Math.min(M.value / u.value, 1) : 0), P = () => {
|
|
21046
21046
|
const q = C.value;
|
|
21047
21047
|
if (q) {
|
|
@@ -21589,7 +21589,7 @@ rc("CapacitorHttp", {
|
|
|
21589
21589
|
web: () => new e$()
|
|
21590
21590
|
});
|
|
21591
21591
|
const ts = rc("VoiceRecorder", {
|
|
21592
|
-
web: () => import("./web-
|
|
21592
|
+
web: () => import("./web-6DGqsbQn.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
21593
21593
|
});
|
|
21594
21594
|
function l2(e, t) {
|
|
21595
21595
|
return l(), f("svg", {
|
|
@@ -22123,14 +22123,14 @@ const a$ = {
|
|
|
22123
22123
|
var ce;
|
|
22124
22124
|
k.value = ((ce = a.getDraft) == null ? void 0 : ce.call(a, p.value)) || "", j.value = null, Z.value = n.unreadAnchor, W.value = 0, z.value = !0, Fe();
|
|
22125
22125
|
};
|
|
22126
|
-
|
|
22126
|
+
Je(p, () => {
|
|
22127
22127
|
We(), Le();
|
|
22128
|
-
}),
|
|
22128
|
+
}), Je(
|
|
22129
22129
|
() => n.isLoadingMessages,
|
|
22130
22130
|
(ce) => {
|
|
22131
22131
|
ce || Le();
|
|
22132
22132
|
}
|
|
22133
|
-
),
|
|
22133
|
+
), Je(
|
|
22134
22134
|
() => {
|
|
22135
22135
|
var ce;
|
|
22136
22136
|
return (ce = N.value) == null ? void 0 : ce.length;
|
|
@@ -22150,7 +22150,7 @@ const a$ = {
|
|
|
22150
22150
|
}, 100);
|
|
22151
22151
|
}
|
|
22152
22152
|
}
|
|
22153
|
-
),
|
|
22153
|
+
), Je(k, async (ce) => {
|
|
22154
22154
|
var K;
|
|
22155
22155
|
(K = a.setDraft) == null || K.call(a, p.value, ce), await wt(), se();
|
|
22156
22156
|
});
|
|
@@ -22844,7 +22844,7 @@ const X$ = /* @__PURE__ */ Ve(W$, [["render", Y$], ["__scopeId", "data-v-1fd8b95
|
|
|
22844
22844
|
j();
|
|
22845
22845
|
});
|
|
22846
22846
|
};
|
|
22847
|
-
return
|
|
22847
|
+
return Je(m, (N, V) => {
|
|
22848
22848
|
h.value = u.value[N];
|
|
22849
22849
|
}), gt(() => {
|
|
22850
22850
|
window.addEventListener("paste", G);
|
|
@@ -23120,7 +23120,7 @@ const X$ = /* @__PURE__ */ Ve(W$, [["render", Y$], ["__scopeId", "data-v-1fd8b95
|
|
|
23120
23120
|
const p = T(
|
|
23121
23121
|
() => a.isExpanded && h.value >= gE
|
|
23122
23122
|
), y = J("chat-push-forward");
|
|
23123
|
-
|
|
23123
|
+
Je(
|
|
23124
23124
|
() => !!a.selectedAttendant,
|
|
23125
23125
|
(w) => {
|
|
23126
23126
|
y.value = w ? "chat-push-forward" : "chat-push-back";
|
|
@@ -23737,7 +23737,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
23737
23737
|
($ = t.selectedGroup) == null ? void 0 : $.participants
|
|
23738
23738
|
) ? [...t.selectedGroup.participants] : [];
|
|
23739
23739
|
};
|
|
23740
|
-
|
|
23740
|
+
Je(
|
|
23741
23741
|
() => [t.mode, t.selectedGroup],
|
|
23742
23742
|
() => {
|
|
23743
23743
|
y();
|
|
@@ -23976,7 +23976,12 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
23976
23976
|
disableFullscreen: { type: Boolean, default: !1 },
|
|
23977
23977
|
smPlayEnabled: { type: Boolean, default: void 0 }
|
|
23978
23978
|
},
|
|
23979
|
-
emits: [
|
|
23979
|
+
emits: [
|
|
23980
|
+
"unread-change",
|
|
23981
|
+
"open-change",
|
|
23982
|
+
"expand-change",
|
|
23983
|
+
"focus-change"
|
|
23984
|
+
],
|
|
23980
23985
|
setup(e, { emit: t }) {
|
|
23981
23986
|
const n = e, a = t, i = T(
|
|
23982
23987
|
() => n.smPlayEnabled ?? df(n.currentAttendant)
|
|
@@ -24013,17 +24018,17 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24013
24018
|
resetUnreadMessages: ae,
|
|
24014
24019
|
syncGroupFromSocketEvent: ye,
|
|
24015
24020
|
refreshAttendantsOnListOpen: Q
|
|
24016
|
-
} = CE(), we = async (
|
|
24021
|
+
} = CE(), we = async (Ye) => {
|
|
24017
24022
|
var zt, Lt, Kt, Tn, In, $a;
|
|
24018
|
-
const
|
|
24019
|
-
if (!
|
|
24020
|
-
console.error("Canal sem channel_id:",
|
|
24023
|
+
const Xe = ((zt = Ye.internal_chat) == null ? void 0 : zt.channel_id) || Ye.id;
|
|
24024
|
+
if (!Xe) {
|
|
24025
|
+
console.error("Canal sem channel_id:", Ye);
|
|
24021
24026
|
return;
|
|
24022
24027
|
}
|
|
24023
|
-
u.value =
|
|
24024
|
-
(Lt =
|
|
24028
|
+
u.value = Ye != null && Ye.is_group ? "groups" : "attendants", r.value = u.value, v.value = wa(
|
|
24029
|
+
(Lt = Ye == null ? void 0 : Ye.internal_chat) == null ? void 0 : Lt.unread,
|
|
24025
24030
|
(Kt = n.currentAttendant) == null ? void 0 : Kt.id
|
|
24026
|
-
), m.value =
|
|
24031
|
+
), m.value = Ye, ae(Xe), (Ye.is_group ? ((In = (Tn = Ye.chat_info) == null ? void 0 : Tn.messages) == null ? void 0 : In.length) > 0 : (($a = Ye.messages) == null ? void 0 : $a.length) > 0) || await N(Xe);
|
|
24027
24032
|
};
|
|
24028
24033
|
async function Fe() {
|
|
24029
24034
|
await Q(), r.value = u.value, m.value = null;
|
|
@@ -24051,17 +24056,17 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24051
24056
|
Di("useChat", Ce), Di("currentTheme", M5(n, "mode")), Di("selectedConversation", m), Di("smPlayEnabled", i);
|
|
24052
24057
|
const _e = T(() => {
|
|
24053
24058
|
var zt;
|
|
24054
|
-
const
|
|
24059
|
+
const Ye = (zt = n.currentAttendant) == null ? void 0 : zt.id;
|
|
24055
24060
|
return (Array.isArray(M.value) ? M.value : []).filter(
|
|
24056
|
-
(Lt) => Lt.id !==
|
|
24061
|
+
(Lt) => Lt.id !== Ye
|
|
24057
24062
|
) || [];
|
|
24058
|
-
}), Pe = (
|
|
24063
|
+
}), Pe = (Ye) => {
|
|
24059
24064
|
var Ke;
|
|
24060
|
-
const
|
|
24061
|
-
return
|
|
24065
|
+
const Xe = (Ke = Ye == null ? void 0 : Ye.response) == null ? void 0 : Ke.data;
|
|
24066
|
+
return Xe ? typeof Xe == "string" ? [{ key: "erro", message: Xe }] : Array.isArray(Xe) ? Xe.map((zt, Lt) => ({
|
|
24062
24067
|
key: `erro-${Lt + 1}`,
|
|
24063
24068
|
message: String(zt)
|
|
24064
|
-
})) : Object.entries(
|
|
24069
|
+
})) : Object.entries(Xe).flatMap(([zt, Lt]) => (Array.isArray(Lt) ? Lt : [Lt]).map((Tn, In) => ({
|
|
24065
24070
|
key: `${zt}-${In + 1}`,
|
|
24066
24071
|
message: String(Tn)
|
|
24067
24072
|
}))) : [
|
|
@@ -24070,20 +24075,20 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24070
24075
|
message: "Nao foi possivel concluir a acao do grupo."
|
|
24071
24076
|
}
|
|
24072
24077
|
];
|
|
24073
|
-
}, ve = async (
|
|
24078
|
+
}, ve = async (Ye, Xe) => {
|
|
24074
24079
|
w.value = [], x.value = !0;
|
|
24075
24080
|
try {
|
|
24076
|
-
return !!await Z(
|
|
24081
|
+
return !!await Z(Ye, Xe);
|
|
24077
24082
|
} catch (Ke) {
|
|
24078
24083
|
return w.value = Pe(Ke), !1;
|
|
24079
24084
|
} finally {
|
|
24080
24085
|
x.value = !1;
|
|
24081
24086
|
}
|
|
24082
24087
|
};
|
|
24083
|
-
|
|
24088
|
+
Je(
|
|
24084
24089
|
() => b.value.show,
|
|
24085
|
-
(
|
|
24086
|
-
if (
|
|
24090
|
+
(Ye) => {
|
|
24091
|
+
if (Ye) {
|
|
24087
24092
|
w.value = [];
|
|
24088
24093
|
return;
|
|
24089
24094
|
}
|
|
@@ -24091,53 +24096,53 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24091
24096
|
}
|
|
24092
24097
|
);
|
|
24093
24098
|
const se = B, Le = () => {
|
|
24094
|
-
var
|
|
24095
|
-
(
|
|
24099
|
+
var Ye;
|
|
24100
|
+
(Ye = y.value) == null || Ye.chooseFiles();
|
|
24096
24101
|
}, We = T(
|
|
24097
24102
|
() => n.isMobile ? n.isVisible ?? !0 : h.value
|
|
24098
24103
|
), Oe = T(
|
|
24099
24104
|
() => _.value || z.value || P.value
|
|
24100
24105
|
), De = T(() => {
|
|
24101
|
-
var
|
|
24106
|
+
var Ye, Xe, Ke;
|
|
24102
24107
|
return wa(
|
|
24103
|
-
(
|
|
24108
|
+
(Xe = (Ye = m.value) == null ? void 0 : Ye.internal_chat) == null ? void 0 : Xe.unread,
|
|
24104
24109
|
(Ke = n.currentAttendant) == null ? void 0 : Ke.id
|
|
24105
24110
|
);
|
|
24106
|
-
}), ce = (
|
|
24111
|
+
}), ce = (Ye) => {
|
|
24107
24112
|
var zt;
|
|
24108
24113
|
if (n.isMobile || de.value) return;
|
|
24109
|
-
const
|
|
24110
|
-
!
|
|
24114
|
+
const Xe = (zt = p.value) == null ? void 0 : zt.contains(Ye.target), Ke = Ye.target.closest(".fancybox__container");
|
|
24115
|
+
!Xe && !Ke && h.value && it(), b.value && typeof C == "function" && C();
|
|
24111
24116
|
};
|
|
24112
24117
|
gt(() => {
|
|
24113
|
-
n.isMobile || (document.addEventListener("click", ce), window.addEventListener("resize", ct)), G(1, { force: !0 }).catch((
|
|
24114
|
-
console.error("Erro ao carregar canais de grupo:",
|
|
24118
|
+
n.isMobile || (document.addEventListener("click", ce), window.addEventListener("resize", ct)), G(1, { force: !0 }).catch((Ye) => {
|
|
24119
|
+
console.error("Erro ao carregar canais de grupo:", Ye);
|
|
24115
24120
|
});
|
|
24116
24121
|
}), Mt(() => {
|
|
24117
24122
|
n.isMobile || (document.removeEventListener("click", ce), window.removeEventListener("resize", ct)), ie == null || ie.disconnect();
|
|
24118
24123
|
});
|
|
24119
24124
|
const K = J(!1), ue = J(!1), de = J(!1), $e = J(null), X = J({ left: "0px", bottom: "0px" });
|
|
24120
24125
|
let ie = null;
|
|
24121
|
-
|
|
24122
|
-
if (
|
|
24123
|
-
const
|
|
24124
|
-
|
|
24126
|
+
Je(de, (Ye) => {
|
|
24127
|
+
if (Ye && n.fullscreenTarget) {
|
|
24128
|
+
const Xe = document.querySelector(n.fullscreenTarget);
|
|
24129
|
+
Xe && (ie = new ResizeObserver(() => {
|
|
24125
24130
|
$e.value = be();
|
|
24126
|
-
}), ie.observe(
|
|
24131
|
+
}), ie.observe(Xe));
|
|
24127
24132
|
} else
|
|
24128
24133
|
ie == null || ie.disconnect(), ie = null;
|
|
24129
24134
|
});
|
|
24130
24135
|
function be() {
|
|
24131
24136
|
if (!n.fullscreenTarget) return null;
|
|
24132
|
-
const
|
|
24133
|
-
if (!
|
|
24134
|
-
const
|
|
24137
|
+
const Ye = document.querySelector(n.fullscreenTarget);
|
|
24138
|
+
if (!Ye) return null;
|
|
24139
|
+
const Xe = Ye.getBoundingClientRect();
|
|
24135
24140
|
return {
|
|
24136
24141
|
position: "fixed",
|
|
24137
|
-
top:
|
|
24138
|
-
left:
|
|
24139
|
-
width:
|
|
24140
|
-
height:
|
|
24142
|
+
top: Xe.top + "px",
|
|
24143
|
+
left: Xe.left + "px",
|
|
24144
|
+
width: Xe.width + "px",
|
|
24145
|
+
height: Xe.height + "px",
|
|
24141
24146
|
bottom: "auto",
|
|
24142
24147
|
right: "auto",
|
|
24143
24148
|
zIndex: "45",
|
|
@@ -24151,9 +24156,9 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24151
24156
|
}
|
|
24152
24157
|
function ke() {
|
|
24153
24158
|
if (!p.value) return;
|
|
24154
|
-
const
|
|
24159
|
+
const Ye = p.value.getBoundingClientRect(), Xe = Math.min(390, Math.max(300, window.innerWidth - 88)), Ke = Ye.right + 12;
|
|
24155
24160
|
X.value = {
|
|
24156
|
-
left: `${Math.max(12, Math.min(Ke, window.innerWidth -
|
|
24161
|
+
left: `${Math.max(12, Math.min(Ke, window.innerWidth - Xe - 12))}px`,
|
|
24157
24162
|
bottom: "16px"
|
|
24158
24163
|
};
|
|
24159
24164
|
}
|
|
@@ -24172,12 +24177,12 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24172
24177
|
zIndex: "200"
|
|
24173
24178
|
};
|
|
24174
24179
|
if (K.value || h.value) {
|
|
24175
|
-
const
|
|
24180
|
+
const Ye = Math.max(300, window.innerWidth - 88), Xe = Math.max(360, window.innerHeight - 32);
|
|
24176
24181
|
return {
|
|
24177
24182
|
position: "fixed",
|
|
24178
|
-
width: `${Math.min(390,
|
|
24179
|
-
height: `${Math.min(740,
|
|
24180
|
-
maxHeight: `${
|
|
24183
|
+
width: `${Math.min(390, Ye)}px`,
|
|
24184
|
+
height: `${Math.min(740, Xe)}px`,
|
|
24185
|
+
maxHeight: `${Xe}px`,
|
|
24181
24186
|
transition: "width 0.2s ease-in, height 0.2s ease-out",
|
|
24182
24187
|
left: X.value.left,
|
|
24183
24188
|
bottom: X.value.bottom,
|
|
@@ -24204,46 +24209,53 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24204
24209
|
K.value = !1;
|
|
24205
24210
|
}, 200)));
|
|
24206
24211
|
};
|
|
24207
|
-
|
|
24212
|
+
Je(
|
|
24208
24213
|
se,
|
|
24209
|
-
(
|
|
24214
|
+
(Ye) => a("unread-change", Number(Ye) || 0),
|
|
24215
|
+
{ immediate: !0 }
|
|
24216
|
+
), Je(
|
|
24217
|
+
() => {
|
|
24218
|
+
var Ye;
|
|
24219
|
+
return !!m.value || !!((Ye = b.value) != null && Ye.show);
|
|
24220
|
+
},
|
|
24221
|
+
(Ye) => a("focus-change", Ye),
|
|
24210
24222
|
{ immediate: !0 }
|
|
24211
24223
|
);
|
|
24212
24224
|
const vt = () => {
|
|
24213
24225
|
n.isMobile || h.value || (it(), Q());
|
|
24214
|
-
}, dt = (
|
|
24215
|
-
var
|
|
24216
|
-
return (
|
|
24217
|
-
}, le = (
|
|
24226
|
+
}, dt = (Ye) => {
|
|
24227
|
+
var Xe, Ke, zt, Lt;
|
|
24228
|
+
return (Xe = Ye == null ? void 0 : Ye.internal_chat) != null && Xe.channel_id ? Ye.internal_chat.channel_id : (Ke = Ye == null ? void 0 : Ye.channel_id) != null && Ke.channel_id ? Ye.channel_id.channel_id : typeof (Ye == null ? void 0 : Ye.channel_id) == "string" ? Ye.channel_id : (Lt = (zt = Ye == null ? void 0 : Ye.group_info) == null ? void 0 : zt.internal_chat) != null && Lt.channel_id ? Ye.group_info.internal_chat.channel_id : null;
|
|
24229
|
+
}, le = (Ye) => {
|
|
24218
24230
|
var Ke, zt;
|
|
24219
|
-
const
|
|
24220
|
-
return Array.isArray(
|
|
24231
|
+
const Xe = (zt = (Ke = Ye == null ? void 0 : Ye.content) == null ? void 0 : Ke.body) == null ? void 0 : zt.attendant;
|
|
24232
|
+
return Array.isArray(Xe) ? Xe.map(
|
|
24221
24233
|
(Lt) => typeof Lt == "string" ? Lt : Lt == null ? void 0 : Lt.id
|
|
24222
24234
|
).filter(Boolean) : [];
|
|
24223
24235
|
};
|
|
24224
|
-
|
|
24236
|
+
Je(
|
|
24225
24237
|
() => n.socketMessage,
|
|
24226
|
-
(
|
|
24238
|
+
(Ye, Xe) => {
|
|
24227
24239
|
var Ke, zt, Lt, Kt, Tn, In, $a, fa, po, yi;
|
|
24228
|
-
if (
|
|
24229
|
-
const vo = (Ke =
|
|
24240
|
+
if (Ye !== Xe) {
|
|
24241
|
+
const vo = (Ke = Ye == null ? void 0 : Ye.message) == null ? void 0 : Ke.event;
|
|
24230
24242
|
if (!vo) return;
|
|
24231
24243
|
if (vo === "new-chat-internal-message")
|
|
24232
24244
|
V(
|
|
24233
|
-
|
|
24245
|
+
Ye,
|
|
24234
24246
|
We.value,
|
|
24235
24247
|
(Lt = (zt = m.value) == null ? void 0 : zt.internal_chat) == null ? void 0 : Lt.channel_id
|
|
24236
24248
|
);
|
|
24237
24249
|
else if (vo === "new-chat-internal-group") {
|
|
24238
|
-
const Ea =
|
|
24239
|
-
ye(
|
|
24250
|
+
const Ea = Ye == null ? void 0 : Ye.message, bi = ((Kt = Ea == null ? void 0 : Ea.content) == null ? void 0 : Kt.type) === "system" ? (In = (Tn = Ea.content) == null ? void 0 : Tn.body) == null ? void 0 : In.action : null, go = dt(Ea), gl = ((fa = ($a = m.value) == null ? void 0 : $a.internal_chat) == null ? void 0 : fa.channel_id) || ((po = m.value) == null ? void 0 : po.id), As = le(Ea), yl = (bi === "remove-participant" || bi === "leave-group") && As.includes((yi = n.currentAttendant) == null ? void 0 : yi.id);
|
|
24251
|
+
ye(Ye), yl && go && gl === go && Fe();
|
|
24240
24252
|
}
|
|
24241
24253
|
}
|
|
24242
24254
|
}
|
|
24243
|
-
),
|
|
24255
|
+
), Je(
|
|
24244
24256
|
() => n.externalChatOpen,
|
|
24245
|
-
(
|
|
24246
|
-
|
|
24257
|
+
(Ye, Xe) => {
|
|
24258
|
+
Ye && Ye !== Xe && de.value && (de.value = !1, $e.value = null);
|
|
24247
24259
|
}
|
|
24248
24260
|
);
|
|
24249
24261
|
const me = T(
|
|
@@ -24257,14 +24269,14 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24257
24269
|
});
|
|
24258
24270
|
}, qe = T(
|
|
24259
24271
|
() => {
|
|
24260
|
-
var
|
|
24261
|
-
return dl((
|
|
24272
|
+
var Ye;
|
|
24273
|
+
return dl((Ye = n.currentAttendant) == null ? void 0 : Ye.login_status);
|
|
24262
24274
|
}
|
|
24263
24275
|
), Ue = T(() => Oe.value ? "Sincronizando" : se.value > 0 ? se.value === 1 ? "1 mensagem nova" : `${se.value} mensagens novas` : ""), fe = T(() => Oe.value ? "loading" : se.value > 0 ? "unread" : "idle");
|
|
24264
|
-
|
|
24276
|
+
Je(
|
|
24265
24277
|
me,
|
|
24266
|
-
(
|
|
24267
|
-
clearInterval(ze),
|
|
24278
|
+
(Ye) => {
|
|
24279
|
+
clearInterval(ze), Ye && (Ge(), ze = setInterval(Ge, 2e4));
|
|
24268
24280
|
},
|
|
24269
24281
|
{ immediate: !0 }
|
|
24270
24282
|
);
|
|
@@ -24281,8 +24293,8 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24281
24293
|
() => !!Ee.value && Ee.value.level <= 20
|
|
24282
24294
|
), Jt = T(() => {
|
|
24283
24295
|
if (!Ee.value) return "";
|
|
24284
|
-
const
|
|
24285
|
-
return `Bateria ${Ee.value.level}%${
|
|
24296
|
+
const Ye = Ee.value.charging ? " · carregando" : "";
|
|
24297
|
+
return `Bateria ${Ee.value.level}%${Ye}`;
|
|
24286
24298
|
});
|
|
24287
24299
|
return gt(async () => {
|
|
24288
24300
|
if (rt(), window.addEventListener("online", rt), window.addEventListener("offline", rt), !(typeof navigator > "u" || typeof navigator.getBattery != "function"))
|
|
@@ -24294,7 +24306,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24294
24306
|
}
|
|
24295
24307
|
}), Mt(() => {
|
|
24296
24308
|
clearInterval(ze), window.removeEventListener("online", rt), window.removeEventListener("offline", rt), at == null || at.removeEventListener("levelchange", mt), at == null || at.removeEventListener("chargingchange", mt);
|
|
24297
|
-
}), (
|
|
24309
|
+
}), (Ye, Xe) => (l(), f("div", {
|
|
24298
24310
|
class: U(["chat-container", { "mobile-chat-container": e.isMobile }]),
|
|
24299
24311
|
ref_key: "chatContainer",
|
|
24300
24312
|
ref: p
|
|
@@ -24313,9 +24325,9 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24313
24325
|
listGroups: oe($),
|
|
24314
24326
|
listAttendancesByGroup: oe(M),
|
|
24315
24327
|
currentList: r.value,
|
|
24316
|
-
"onUpdate:currentList":
|
|
24328
|
+
"onUpdate:currentList": Xe[0] || (Xe[0] = (Ke) => r.value = Ke),
|
|
24317
24329
|
searchQuery: c.value,
|
|
24318
|
-
"onUpdate:searchQuery":
|
|
24330
|
+
"onUpdate:searchQuery": Xe[1] || (Xe[1] = (Ke) => c.value = Ke),
|
|
24319
24331
|
sendFilesToAttendant: oe(R),
|
|
24320
24332
|
loadMessagesForAttendant: oe(q),
|
|
24321
24333
|
sendMessageToAttendant: oe(R),
|
|
@@ -24343,7 +24355,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24343
24355
|
key: 0,
|
|
24344
24356
|
onClick: ht(it, ["stop"]),
|
|
24345
24357
|
class: "sm-nav-icon sm-nav-icon--active chat-icon-slot"
|
|
24346
|
-
}, [...
|
|
24358
|
+
}, [...Xe[4] || (Xe[4] = [
|
|
24347
24359
|
s("span", { class: "chat-icon my-auto" }, [
|
|
24348
24360
|
s("svg", {
|
|
24349
24361
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -24371,7 +24383,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24371
24383
|
style: je(Ze.value)
|
|
24372
24384
|
}, [
|
|
24373
24385
|
h.value ? F("", !0) : (l(), f("span", UE, [
|
|
24374
|
-
|
|
24386
|
+
Xe[5] || (Xe[5] = s("svg", {
|
|
24375
24387
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24376
24388
|
viewBox: "0 0 640 512"
|
|
24377
24389
|
}, [
|
|
@@ -24403,7 +24415,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24403
24415
|
"aria-live": "polite"
|
|
24404
24416
|
}, [
|
|
24405
24417
|
Ue.value ? (l(), f(ge, { key: 0 }, [
|
|
24406
|
-
|
|
24418
|
+
Xe[6] || (Xe[6] = s("span", {
|
|
24407
24419
|
class: "device-island-signal",
|
|
24408
24420
|
"aria-hidden": "true"
|
|
24409
24421
|
}, null, -1)),
|
|
@@ -24424,7 +24436,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24424
24436
|
class: "device-signal",
|
|
24425
24437
|
"data-state": xt.value,
|
|
24426
24438
|
title: Zt.value
|
|
24427
|
-
}, [...
|
|
24439
|
+
}, [...Xe[7] || (Xe[7] = [
|
|
24428
24440
|
s("i", null, null, -1),
|
|
24429
24441
|
s("i", null, null, -1),
|
|
24430
24442
|
s("i", null, null, -1)
|
|
@@ -24448,7 +24460,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24448
24460
|
"open-delay": 220,
|
|
24449
24461
|
hover: ""
|
|
24450
24462
|
}, {
|
|
24451
|
-
content: Ae(() => [...
|
|
24463
|
+
content: Ae(() => [...Xe[8] || (Xe[8] = [
|
|
24452
24464
|
s("span", { class: "chat-chrome-tip" }, "Expandir", -1)
|
|
24453
24465
|
])]),
|
|
24454
24466
|
default: Ae(() => [
|
|
@@ -24458,7 +24470,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24458
24470
|
"aria-label": "Expandir chat interno",
|
|
24459
24471
|
disabled: Oe.value,
|
|
24460
24472
|
onClick: ht(nt, ["stop"])
|
|
24461
|
-
}, [...
|
|
24473
|
+
}, [...Xe[9] || (Xe[9] = [
|
|
24462
24474
|
s("svg", {
|
|
24463
24475
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24464
24476
|
viewBox: "0 0 24 24",
|
|
@@ -24488,7 +24500,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24488
24500
|
"open-delay": 220,
|
|
24489
24501
|
hover: ""
|
|
24490
24502
|
}, {
|
|
24491
|
-
content: Ae(() => [...
|
|
24503
|
+
content: Ae(() => [...Xe[10] || (Xe[10] = [
|
|
24492
24504
|
s("span", { class: "chat-chrome-tip" }, "Recolher", -1)
|
|
24493
24505
|
])]),
|
|
24494
24506
|
default: Ae(() => [
|
|
@@ -24498,7 +24510,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24498
24510
|
"aria-label": "Recolher chat interno",
|
|
24499
24511
|
disabled: Oe.value,
|
|
24500
24512
|
onClick: ht(nt, ["stop"])
|
|
24501
|
-
}, [...
|
|
24513
|
+
}, [...Xe[11] || (Xe[11] = [
|
|
24502
24514
|
s("svg", {
|
|
24503
24515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24504
24516
|
viewBox: "0 0 24 24",
|
|
@@ -24538,9 +24550,9 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24538
24550
|
listGroups: oe($),
|
|
24539
24551
|
listAttendancesByGroup: oe(M),
|
|
24540
24552
|
currentList: r.value,
|
|
24541
|
-
"onUpdate:currentList":
|
|
24553
|
+
"onUpdate:currentList": Xe[2] || (Xe[2] = (Ke) => r.value = Ke),
|
|
24542
24554
|
searchQuery: c.value,
|
|
24543
|
-
"onUpdate:searchQuery":
|
|
24555
|
+
"onUpdate:searchQuery": Xe[3] || (Xe[3] = (Ke) => c.value = Ke),
|
|
24544
24556
|
sendFilesToAttendant: oe(R),
|
|
24545
24557
|
loadMessagesForAttendant: oe(q),
|
|
24546
24558
|
sendMessageToAttendant: oe(R),
|
|
@@ -24564,7 +24576,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24564
24576
|
]),
|
|
24565
24577
|
_: 1
|
|
24566
24578
|
}, 8, ["isMobile", "isExpanded", "toggleExpand", "showChatLoading", "selectedAttendant", "currentAttendant", "isLoadingMessages", "listAttendants", "listGroups", "listAttendancesByGroup", "currentList", "searchQuery", "sendFilesToAttendant", "loadMessagesForAttendant", "sendMessageToAttendant", "hasNextPageForAttendant", "downloadFilesMobile", "openMobilePdf"]),
|
|
24567
|
-
me.value ? (l(), f("div", cL, [...
|
|
24579
|
+
me.value ? (l(), f("div", cL, [...Xe[12] || (Xe[12] = [
|
|
24568
24580
|
s("i", null, null, -1)
|
|
24569
24581
|
])])) : F("", !0)
|
|
24570
24582
|
])
|
|
@@ -24577,7 +24589,7 @@ const SE = { class: "popper-header bg-base-300 border-b border-base-200" }, ME =
|
|
|
24577
24589
|
], 64))
|
|
24578
24590
|
], 2));
|
|
24579
24591
|
}
|
|
24580
|
-
}, o4 = /* @__PURE__ */ Ve(uL, [["__scopeId", "data-v-
|
|
24592
|
+
}, o4 = /* @__PURE__ */ Ve(uL, [["__scopeId", "data-v-ff75dc6a"]]);
|
|
24581
24593
|
function Ha(e) {
|
|
24582
24594
|
const t = e.currentTarget;
|
|
24583
24595
|
if (t.scrollWidth <= t.offsetWidth) return;
|
|
@@ -24733,7 +24745,7 @@ const dL = { class: "dropdown-trigger-text" }, fL = {
|
|
|
24733
24745
|
var S;
|
|
24734
24746
|
return p.value.length > 0 ? n.multiSelect ? `Selecionados: ${p.value.length}` : `Selecionado: ${(S = p.value[0]) == null ? void 0 : S.name}` : n.placeholder;
|
|
24735
24747
|
}), $ = J(n.multiSelect ? [] : "");
|
|
24736
|
-
|
|
24748
|
+
Je(
|
|
24737
24749
|
p,
|
|
24738
24750
|
(S) => {
|
|
24739
24751
|
var O;
|
|
@@ -24742,17 +24754,17 @@ const dL = { class: "dropdown-trigger-text" }, fL = {
|
|
|
24742
24754
|
{ deep: !0 }
|
|
24743
24755
|
), gt(async () => {
|
|
24744
24756
|
await P(), await _(), u("component-mounted");
|
|
24745
|
-
}),
|
|
24757
|
+
}), Je(
|
|
24746
24758
|
() => h.departments.length,
|
|
24747
24759
|
async () => {
|
|
24748
24760
|
await P(), await wt(), await _();
|
|
24749
24761
|
},
|
|
24750
24762
|
{ immediate: !0 }
|
|
24751
|
-
),
|
|
24763
|
+
), Je(
|
|
24752
24764
|
() => n.attDel,
|
|
24753
24765
|
(S) => S && M(S),
|
|
24754
24766
|
{ immediate: !0 }
|
|
24755
|
-
),
|
|
24767
|
+
), Je(y, (S) => {
|
|
24756
24768
|
S || (m.value = "");
|
|
24757
24769
|
});
|
|
24758
24770
|
function M(S) {
|
|
@@ -24791,7 +24803,7 @@ const dL = { class: "dropdown-trigger-text" }, fL = {
|
|
|
24791
24803
|
S.selected = !1, p.value.splice(O, 1), u("depart", p.value);
|
|
24792
24804
|
}
|
|
24793
24805
|
const G = T(() => m.value.trim().length > 0);
|
|
24794
|
-
|
|
24806
|
+
Je(G, (S) => {
|
|
24795
24807
|
u("searching", S);
|
|
24796
24808
|
});
|
|
24797
24809
|
function N(S) {
|
|
@@ -25166,7 +25178,7 @@ const dL = { class: "dropdown-trigger-text" }, fL = {
|
|
|
25166
25178
|
var G;
|
|
25167
25179
|
return p.value.length > 0 ? n.multiSelect ? `Selecionados: ${p.value.length}` : `Selecionado: ${(G = p.value[0]) == null ? void 0 : G.name}` : n.placeholder;
|
|
25168
25180
|
}), M = J(n.multiSelect ? [] : "");
|
|
25169
|
-
|
|
25181
|
+
Je(
|
|
25170
25182
|
p,
|
|
25171
25183
|
(G) => {
|
|
25172
25184
|
var N;
|
|
@@ -25177,23 +25189,23 @@ const dL = { class: "dropdown-trigger-text" }, fL = {
|
|
|
25177
25189
|
_(), c("component-mounted"), document.addEventListener("click", i);
|
|
25178
25190
|
}), En(() => {
|
|
25179
25191
|
document.removeEventListener("click", i);
|
|
25180
|
-
}),
|
|
25192
|
+
}), Je(
|
|
25181
25193
|
() => u.attendants.length,
|
|
25182
25194
|
async () => {
|
|
25183
25195
|
await wt(), _();
|
|
25184
25196
|
},
|
|
25185
25197
|
{ immediate: !0 }
|
|
25186
|
-
),
|
|
25198
|
+
), Je(
|
|
25187
25199
|
() => n.modal_filter,
|
|
25188
25200
|
() => {
|
|
25189
25201
|
!n.modal_filter && n.multiSelect && P();
|
|
25190
25202
|
},
|
|
25191
25203
|
{ immediate: !0 }
|
|
25192
|
-
),
|
|
25204
|
+
), Je(
|
|
25193
25205
|
() => n.department,
|
|
25194
25206
|
() => _(),
|
|
25195
25207
|
{ deep: !0 }
|
|
25196
|
-
),
|
|
25208
|
+
), Je(m, (G) => {
|
|
25197
25209
|
G || (h.value = "");
|
|
25198
25210
|
});
|
|
25199
25211
|
function _() {
|
|
@@ -27170,7 +27182,7 @@ const m2 = {
|
|
|
27170
27182
|
function u(h) {
|
|
27171
27183
|
h.key === "Escape" && c();
|
|
27172
27184
|
}
|
|
27173
|
-
return
|
|
27185
|
+
return Je(
|
|
27174
27186
|
() => n.open,
|
|
27175
27187
|
(h) => {
|
|
27176
27188
|
typeof document > "u" || (document.body.style.overflow = h ? "hidden" : "", h ? document.addEventListener("keydown", u) : document.removeEventListener("keydown", u));
|
|
@@ -53657,13 +53669,13 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
53657
53669
|
data: n.content.data ?? "",
|
|
53658
53670
|
currency: n.content.currency ?? "BRL"
|
|
53659
53671
|
}), r = J(i.data);
|
|
53660
|
-
|
|
53672
|
+
Je(
|
|
53661
53673
|
r,
|
|
53662
53674
|
(h) => {
|
|
53663
53675
|
a("update:content", { ...i, data: h });
|
|
53664
53676
|
},
|
|
53665
53677
|
{ immediate: !0, deep: !0 }
|
|
53666
|
-
),
|
|
53678
|
+
), Je(
|
|
53667
53679
|
() => n.content,
|
|
53668
53680
|
(h) => {
|
|
53669
53681
|
h.data !== r.value && (r.value = h.data), h.empty !== i.empty && (i.empty = h.empty), h.currency !== i.currency && (i.currency = h.currency);
|
|
@@ -53861,7 +53873,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
53861
53873
|
);
|
|
53862
53874
|
return (M == null ? void 0 : M.icon) || n.iconPlaceholder || n.icon || null;
|
|
53863
53875
|
}), v = T(() => n.iconPlaceholder || n.icon || null);
|
|
53864
|
-
|
|
53876
|
+
Je(i, async (M) => {
|
|
53865
53877
|
M && (await wt(), y(), requestAnimationFrame(y));
|
|
53866
53878
|
});
|
|
53867
53879
|
const b = [];
|
|
@@ -54620,7 +54632,7 @@ const w4 = {
|
|
|
54620
54632
|
const Se = Array.isArray(n.allProducts) ? n.allProducts : (Ce = n.allProducts) == null ? void 0 : Ce.results;
|
|
54621
54633
|
Se && Se.length > 0 ? (r.value = Se, p.value = !Array.isArray(n.allProducts) && n.allProducts.next || null, y.value = !Array.isArray(n.allProducts) && n.allProducts.previous || null, m.value = 2) : await A(), S(), O();
|
|
54622
54634
|
}
|
|
54623
|
-
gt(D),
|
|
54635
|
+
gt(D), Je(
|
|
54624
54636
|
c,
|
|
54625
54637
|
(Se) => {
|
|
54626
54638
|
Se.forEach((Ce) => {
|
|
@@ -54631,7 +54643,7 @@ const w4 = {
|
|
|
54631
54643
|
});
|
|
54632
54644
|
},
|
|
54633
54645
|
{ immediate: !0 }
|
|
54634
|
-
),
|
|
54646
|
+
), Je(
|
|
54635
54647
|
h,
|
|
54636
54648
|
(Se) => {
|
|
54637
54649
|
a(
|
|
@@ -54647,7 +54659,7 @@ const w4 = {
|
|
|
54647
54659
|
});
|
|
54648
54660
|
},
|
|
54649
54661
|
{ deep: !0 }
|
|
54650
|
-
),
|
|
54662
|
+
), Je(
|
|
54651
54663
|
() => n.modelValue,
|
|
54652
54664
|
(Se) => {
|
|
54653
54665
|
const Ce = u(Se);
|
|
@@ -54682,7 +54694,7 @@ const w4 = {
|
|
|
54682
54694
|
return _e.length === 0 ? !1 : !_e.some((ve) => ve && ve.id === Ce);
|
|
54683
54695
|
}, re = J({ query: "" }), ee = J(!1), ae = J({}), ye = J({});
|
|
54684
54696
|
let Q = {}, we;
|
|
54685
|
-
|
|
54697
|
+
Je(
|
|
54686
54698
|
re,
|
|
54687
54699
|
() => {
|
|
54688
54700
|
clearTimeout(we), we = setTimeout(async () => {
|
|
@@ -55117,13 +55129,13 @@ const w4 = {
|
|
|
55117
55129
|
};
|
|
55118
55130
|
return gt(() => {
|
|
55119
55131
|
n.modelValue.length === 0 && b(), m(i.value), wt(v);
|
|
55120
|
-
}),
|
|
55132
|
+
}), Je(
|
|
55121
55133
|
() => n.modelValue,
|
|
55122
55134
|
(k) => {
|
|
55123
55135
|
i.value = u(k), m(i.value), wt(v);
|
|
55124
55136
|
},
|
|
55125
55137
|
{ deep: !0 }
|
|
55126
|
-
),
|
|
55138
|
+
), Je(
|
|
55127
55139
|
i,
|
|
55128
55140
|
(k) => {
|
|
55129
55141
|
JSON.stringify(k) !== JSON.stringify(n.modelValue) && a("update:modelValue", u(k));
|
|
@@ -55426,7 +55438,7 @@ const w4 = {
|
|
|
55426
55438
|
r.value = !1;
|
|
55427
55439
|
}
|
|
55428
55440
|
};
|
|
55429
|
-
return
|
|
55441
|
+
return Je(
|
|
55430
55442
|
() => n.isOpen,
|
|
55431
55443
|
(re) => {
|
|
55432
55444
|
if (re) {
|
|
@@ -55435,12 +55447,12 @@ const w4 = {
|
|
|
55435
55447
|
}
|
|
55436
55448
|
O();
|
|
55437
55449
|
}
|
|
55438
|
-
),
|
|
55450
|
+
), Je(
|
|
55439
55451
|
() => [m.value, i.departments.length],
|
|
55440
55452
|
() => {
|
|
55441
55453
|
R();
|
|
55442
55454
|
}
|
|
55443
|
-
),
|
|
55455
|
+
), Je(
|
|
55444
55456
|
() => [M.value, n.loggedAttendantId, n.loggedAttendant],
|
|
55445
55457
|
() => {
|
|
55446
55458
|
D();
|
|
@@ -55948,7 +55960,7 @@ const w4 = {
|
|
|
55948
55960
|
V(B, !1);
|
|
55949
55961
|
}
|
|
55950
55962
|
};
|
|
55951
|
-
return
|
|
55963
|
+
return Je(
|
|
55952
55964
|
() => [t.pageState, t.contactId],
|
|
55953
55965
|
async ([R, D]) => {
|
|
55954
55966
|
R === "wallet" && D && G();
|
|
@@ -56771,7 +56783,7 @@ const w4 = {
|
|
|
56771
56783
|
emits: ["update:modelValue"],
|
|
56772
56784
|
setup(e, { emit: t }) {
|
|
56773
56785
|
const n = e, a = t, i = J(n.modelValue), r = J(0), c = J(!1), u = J(null);
|
|
56774
|
-
|
|
56786
|
+
Je(
|
|
56775
56787
|
() => n.modelValue,
|
|
56776
56788
|
(k) => {
|
|
56777
56789
|
i.value = k;
|
|
@@ -58627,7 +58639,7 @@ function HW(e) {
|
|
|
58627
58639
|
}, x = () => {
|
|
58628
58640
|
t.value = "", n.value = [], i.value = 1, r.value = null, h++, clearTimeout(u);
|
|
58629
58641
|
};
|
|
58630
|
-
return
|
|
58642
|
+
return Je(t, () => {
|
|
58631
58643
|
clearTimeout(u), u = setTimeout(() => {
|
|
58632
58644
|
p(!0);
|
|
58633
58645
|
}, 350);
|
|
@@ -58748,7 +58760,7 @@ const NW = {
|
|
|
58748
58760
|
w.value = !1;
|
|
58749
58761
|
}
|
|
58750
58762
|
};
|
|
58751
|
-
return
|
|
58763
|
+
return Je(
|
|
58752
58764
|
() => n.isOpen,
|
|
58753
58765
|
(D) => {
|
|
58754
58766
|
D && (N(), m(!0));
|
|
@@ -59241,7 +59253,7 @@ const NW = {
|
|
|
59241
59253
|
c.value = !1;
|
|
59242
59254
|
}
|
|
59243
59255
|
};
|
|
59244
|
-
|
|
59256
|
+
Je(
|
|
59245
59257
|
() => i.form,
|
|
59246
59258
|
(V) => {
|
|
59247
59259
|
Object.assign(r, i3(V));
|
|
@@ -59257,7 +59269,7 @@ const NW = {
|
|
|
59257
59269
|
window.removeEventListener("resize", j);
|
|
59258
59270
|
});
|
|
59259
59271
|
const Z = T(() => W.value >= 640);
|
|
59260
|
-
|
|
59272
|
+
Je(
|
|
59261
59273
|
Z,
|
|
59262
59274
|
(V, A) => {
|
|
59263
59275
|
A ? a.value = "contact" : !A && V && (a.value = "data");
|
|
@@ -61843,7 +61855,7 @@ if (n > 0 && t < 1) {
|
|
|
61843
61855
|
b.children.length > 0 && u.value && (u.value = !1);
|
|
61844
61856
|
}), p.observe(b, { childList: !0, subtree: !0 }));
|
|
61845
61857
|
}
|
|
61846
|
-
return
|
|
61858
|
+
return Je(
|
|
61847
61859
|
() => n.modelValue,
|
|
61848
61860
|
async (b) => {
|
|
61849
61861
|
b ? (x(), await wt(), v(), await w()) : (u.value = !0, h.value = !1, p && p.disconnect());
|
|
@@ -62421,7 +62433,7 @@ var { min: fs, max: jn, abs: C2, floor: wX } = Math, O4 = (e, t, n) => fs(n, jn(
|
|
|
62421
62433
|
},
|
|
62422
62434
|
setup(e) {
|
|
62423
62435
|
const t = J(), n = T(() => e.L.value && e.W.O(e.D, e.K)), a = T(() => e.L.value && e.W.I(e.D));
|
|
62424
|
-
return
|
|
62436
|
+
return Je(() => t.value && e.D, (i, r, c) => {
|
|
62425
62437
|
c(e.Y(t.value, e.D));
|
|
62426
62438
|
}, {
|
|
62427
62439
|
flush: "post"
|
|
@@ -62573,13 +62585,13 @@ var { min: fs, max: jn, abs: C2, floor: wX } = Math, O4 = (e, t, n) => fs(n, jn(
|
|
|
62573
62585
|
});
|
|
62574
62586
|
}), En(() => {
|
|
62575
62587
|
u.p(), h.p(), m.p();
|
|
62576
|
-
}),
|
|
62588
|
+
}), Je(() => e.data.length, (v) => {
|
|
62577
62589
|
u.A(5, [v, e.shift]);
|
|
62578
|
-
}),
|
|
62590
|
+
}), Je(() => e.startMargin, (v) => {
|
|
62579
62591
|
u.A(6, v);
|
|
62580
62592
|
}, {
|
|
62581
62593
|
immediate: !0
|
|
62582
|
-
}),
|
|
62594
|
+
}), Je([p], () => {
|
|
62583
62595
|
m.ce();
|
|
62584
62596
|
}, {
|
|
62585
62597
|
flush: "post"
|
|
@@ -62764,7 +62776,7 @@ const DX = {
|
|
|
62764
62776
|
}, a.promoteDuration)
|
|
62765
62777
|
);
|
|
62766
62778
|
}
|
|
62767
|
-
|
|
62779
|
+
Je(u, (k, C) => {
|
|
62768
62780
|
if (!a.animatePromote || h != null && h.matches) return;
|
|
62769
62781
|
const $ = new Set(k), M = [];
|
|
62770
62782
|
let _ = 0;
|
|
@@ -62793,7 +62805,7 @@ const DX = {
|
|
|
62793
62805
|
}
|
|
62794
62806
|
return gt(async () => {
|
|
62795
62807
|
await wt(), v();
|
|
62796
|
-
}),
|
|
62808
|
+
}), Je(
|
|
62797
62809
|
() => a.items.length,
|
|
62798
62810
|
async () => {
|
|
62799
62811
|
await wt(), w = !1, v();
|
|
@@ -62969,12 +62981,12 @@ const DX = {
|
|
|
62969
62981
|
function ye(Q) {
|
|
62970
62982
|
Q.target === Q.currentTarget && ee();
|
|
62971
62983
|
}
|
|
62972
|
-
return
|
|
62984
|
+
return Je(
|
|
62973
62985
|
() => n.modelValue,
|
|
62974
62986
|
(Q, we) => {
|
|
62975
62987
|
n.animate && w(we), n.animate && !c.value && re();
|
|
62976
62988
|
}
|
|
62977
|
-
),
|
|
62989
|
+
), Je([() => n.modelValue, r, k], M, {
|
|
62978
62990
|
flush: "post"
|
|
62979
62991
|
}), gt(() => {
|
|
62980
62992
|
i.value && (r.value = i.value.clientWidth, M(), i.value.addEventListener("touchmove", D, { passive: !1 }), z = new ResizeObserver(([Q]) => {
|
|
@@ -63031,7 +63043,7 @@ const DX = {
|
|
|
63031
63043
|
emits: ["update:modelValue", "update:playing"],
|
|
63032
63044
|
setup(e, { expose: t, emit: n }) {
|
|
63033
63045
|
const a = e, i = n, r = J(a.modelValue), c = J(a.autoplay);
|
|
63034
|
-
|
|
63046
|
+
Je(c, (y) => i("update:playing", y), { immediate: !0 });
|
|
63035
63047
|
let u;
|
|
63036
63048
|
function h() {
|
|
63037
63049
|
clearTimeout(u);
|
|
@@ -63046,7 +63058,7 @@ const DX = {
|
|
|
63046
63058
|
function p() {
|
|
63047
63059
|
c.value = !c.value, c.value ? m((r.value + 1) % a.steps.length) : h();
|
|
63048
63060
|
}
|
|
63049
|
-
return
|
|
63061
|
+
return Je(
|
|
63050
63062
|
() => a.steps,
|
|
63051
63063
|
() => m(0)
|
|
63052
63064
|
), Mt(h), gt(() => {
|
|
@@ -64437,7 +64449,7 @@ const vK = /* @__PURE__ */ Ve(hK, [["render", pK]]), gK = ["src"], yK = ["aria-l
|
|
|
64437
64449
|
variant: { type: String, default: "chat" }
|
|
64438
64450
|
},
|
|
64439
64451
|
setup(e) {
|
|
64440
|
-
const t = T5(async () => (await import("./vue3-lottie.es-
|
|
64452
|
+
const t = T5(async () => (await import("./vue3-lottie.es-CYppsQF-.js")).Vue3Lottie), n = e, a = J(null), i = J(!1), r = J(null), c = J(null), u = J(typeof IntersectionObserver != "function");
|
|
64441
64453
|
let h = null;
|
|
64442
64454
|
gt(() => {
|
|
64443
64455
|
typeof IntersectionObserver != "function" || !c.value || (h = new IntersectionObserver(([y]) => {
|
|
@@ -64450,7 +64462,7 @@ const vK = /* @__PURE__ */ Ve(hK, [["render", pK]]), gK = ["src"], yK = ["aria-l
|
|
|
64450
64462
|
const m = T(() => n.variant === "thumbnail" ? 96 : n.variant === "composer" ? 180 : 220), p = T(
|
|
64451
64463
|
() => n.variant === "chat" ? "flex items-center justify-center p-1" : "flex size-full items-center justify-center"
|
|
64452
64464
|
);
|
|
64453
|
-
return
|
|
64465
|
+
return Je(
|
|
64454
64466
|
() => {
|
|
64455
64467
|
var y;
|
|
64456
64468
|
return (y = n.content) == null ? void 0 : y.url;
|
|
@@ -64687,7 +64699,7 @@ function hQ() {
|
|
|
64687
64699
|
}
|
|
64688
64700
|
l0.set(c, t), u.observe(c);
|
|
64689
64701
|
}
|
|
64690
|
-
return
|
|
64702
|
+
return Je(e, (r, c) => {
|
|
64691
64703
|
a(c), i(r);
|
|
64692
64704
|
}), Mt(() => a(e.value)), { viewportRef: e, inViewport: t };
|
|
64693
64705
|
}
|
|
@@ -64742,7 +64754,7 @@ const mQ = { key: 0 }, pQ = ["alt"], vQ = ["src", "alt"], gQ = ["src"], yQ = ["s
|
|
|
64742
64754
|
), O = T(() => hs(n.message) && !$.value ? "media-image-sticker" : $.value ? "media-image media-image-thumbnail" : C.value ? "media-image media-image-composer" : "media-image media-image-chat"), R = T(() => $.value ? "media-video-heif-thumbnail" : C.value ? "media-video-heif-composer" : "media-video-heif-chat"), D = T(
|
|
64743
64755
|
() => P.value && n.variant === "chat" && (j.value === "image" || j.value === "video")
|
|
64744
64756
|
), B = T(() => j.value === "video" ? "renderer-caption pt-2" : "renderer-caption"), q = T(() => C.value ? "file-shell file-shell-composer" : "file-shell"), Y = { w: 260, h: 195 }, ne = J(null), re = J(!!r0(h.value));
|
|
64745
|
-
|
|
64757
|
+
Je(h, (ce) => {
|
|
64746
64758
|
ne.value = null, re.value = !!r0(ce);
|
|
64747
64759
|
});
|
|
64748
64760
|
const ee = T(
|
|
@@ -65858,7 +65870,7 @@ const wee = ["aria-pressed", "aria-label", "onKeydown"], kee = {
|
|
|
65858
65870
|
const ae = q.value.clientWidth;
|
|
65859
65871
|
Y.value = Math.floor(ae / (See + Mee));
|
|
65860
65872
|
};
|
|
65861
|
-
|
|
65873
|
+
Je(
|
|
65862
65874
|
() => v.value && b.value,
|
|
65863
65875
|
(ae) => {
|
|
65864
65876
|
ae ? wt(() => {
|
|
@@ -65877,20 +65889,20 @@ const wee = ["aria-pressed", "aria-label", "onKeydown"], kee = {
|
|
|
65877
65889
|
} catch {
|
|
65878
65890
|
}
|
|
65879
65891
|
h = null;
|
|
65880
|
-
}),
|
|
65892
|
+
}), Je(
|
|
65881
65893
|
() => n.audio,
|
|
65882
65894
|
(ee) => {
|
|
65883
65895
|
ee && S(ee);
|
|
65884
65896
|
}
|
|
65885
|
-
),
|
|
65897
|
+
), Je($, (ee) => {
|
|
65886
65898
|
var ae;
|
|
65887
65899
|
return (ae = u == null ? void 0 : u.setPlaybackRate) == null ? void 0 : ae.call(u, ee);
|
|
65888
|
-
}),
|
|
65900
|
+
}), Je(
|
|
65889
65901
|
() => x.value ? y.isPlaying : null,
|
|
65890
65902
|
(ee) => {
|
|
65891
65903
|
ee === null || !y.isActive(n.trackId) || (w.value = ee);
|
|
65892
65904
|
}
|
|
65893
|
-
),
|
|
65905
|
+
), Je(
|
|
65894
65906
|
() => n.trackMeta,
|
|
65895
65907
|
(ee) => {
|
|
65896
65908
|
x.value && y.setMeta(n.trackId, ee);
|
|
@@ -67103,7 +67115,7 @@ var u0 = { exports: {} };
|
|
|
67103
67115
|
}
|
|
67104
67116
|
return g || "M0 0";
|
|
67105
67117
|
}
|
|
67106
|
-
var Oe = document.documentElement.style, De = "ActiveXObject" in window, ce = De && !document.addEventListener, K = "msLaunchUri" in navigator && !("documentMode" in document), ue =
|
|
67118
|
+
var Oe = document.documentElement.style, De = "ActiveXObject" in window, ce = De && !document.addEventListener, K = "msLaunchUri" in navigator && !("documentMode" in document), ue = Xe("webkit"), de = Xe("android"), $e = Xe("android 2") || Xe("android 3"), X = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), ie = de && Xe("Google") && X < 537 && !("AudioNode" in window), be = !!window.opera, ke = !K && Xe("chrome"), Ze = Xe("gecko") && !ue && !be && !De, nt = !ke && Xe("safari"), et = Xe("phantom"), ct = "OTransition" in Oe, it = navigator.platform.indexOf("Win") === 0, vt = De && "transition" in Oe, dt = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !$e, le = "MozPerspective" in Oe, me = !window.L_DISABLE_3D && (vt || dt || le) && !ct && !et, Me = typeof orientation < "u" || Xe("mobile"), ze = Me && ue, Ge = Me && dt, qe = !window.PointerEvent && window.MSPointerEvent, Ue = !!(window.PointerEvent || qe), fe = "ontouchstart" in window || !!window.TouchEvent, Te = !window.L_NO_TOUCH && (fe || Ue), Ee = Me && be, tt = Me && Ze, at = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, rt = function() {
|
|
67107
67119
|
var o = !1;
|
|
67108
67120
|
try {
|
|
67109
67121
|
var d = Object.defineProperty({}, "passive", {
|
|
@@ -67129,8 +67141,8 @@ var u0 = { exports: {} };
|
|
|
67129
67141
|
} catch {
|
|
67130
67142
|
return !1;
|
|
67131
67143
|
}
|
|
67132
|
-
}(), Jt = navigator.platform.indexOf("Mac") === 0,
|
|
67133
|
-
function
|
|
67144
|
+
}(), Jt = navigator.platform.indexOf("Mac") === 0, Ye = navigator.platform.indexOf("Linux") === 0;
|
|
67145
|
+
function Xe(o) {
|
|
67134
67146
|
return navigator.userAgent.toLowerCase().indexOf(o) >= 0;
|
|
67135
67147
|
}
|
|
67136
67148
|
var Ke = {
|
|
@@ -67168,7 +67180,7 @@ var u0 = { exports: {} };
|
|
|
67168
67180
|
vml: Xt,
|
|
67169
67181
|
inlineSvg: Zt,
|
|
67170
67182
|
mac: Jt,
|
|
67171
|
-
linux:
|
|
67183
|
+
linux: Ye
|
|
67172
67184
|
}, zt = Ke.msPointer ? "MSPointerDown" : "pointerdown", Lt = Ke.msPointer ? "MSPointerMove" : "pointermove", Kt = Ke.msPointer ? "MSPointerUp" : "pointerup", Tn = Ke.msPointer ? "MSPointerCancel" : "pointercancel", In = {
|
|
67173
67185
|
touchstart: zt,
|
|
67174
67186
|
touchmove: Lt,
|
|
@@ -73337,7 +73349,7 @@ const Ac = [
|
|
|
73337
73349
|
function m(p) {
|
|
73338
73350
|
p.key === "Escape" && n.show && a("close");
|
|
73339
73351
|
}
|
|
73340
|
-
return
|
|
73352
|
+
return Je(
|
|
73341
73353
|
() => n.show,
|
|
73342
73354
|
(p) => {
|
|
73343
73355
|
p ? (wt(c), window.addEventListener("resize", c), window.addEventListener("scroll", c, !0)) : (window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0));
|
|
@@ -74126,7 +74138,7 @@ const mne = ["disabled"], pne = { class: "relative flex h-6 items-center justify
|
|
|
74126
74138
|
function Z() {
|
|
74127
74139
|
n("play-pause", a.src);
|
|
74128
74140
|
}
|
|
74129
|
-
return
|
|
74141
|
+
return Je(
|
|
74130
74142
|
() => a.activeSrc,
|
|
74131
74143
|
(G) => {
|
|
74132
74144
|
G && G !== a.src && r.value && i.value && (i.value.pause(), r.value = !1);
|
|
@@ -75777,12 +75789,12 @@ const qae = { class: "history-shell relative min-h-0 w-full flex-1 overflow-hidd
|
|
|
75777
75789
|
}), En(() => {
|
|
75778
75790
|
var X;
|
|
75779
75791
|
W(), (X = r.value) == null || X.removeEventListener("scroll", ue), We == null || We.disconnect(), We = null, K !== null && cancelAnimationFrame(K);
|
|
75780
|
-
}),
|
|
75792
|
+
}), Je(
|
|
75781
75793
|
() => q.value.length,
|
|
75782
75794
|
async () => {
|
|
75783
75795
|
_(), await wt(), b.value || Ce(), Oe(), ce();
|
|
75784
75796
|
}
|
|
75785
|
-
),
|
|
75797
|
+
), Je(
|
|
75786
75798
|
() => a.chatKey,
|
|
75787
75799
|
async () => {
|
|
75788
75800
|
Pe.cancel(), W(), Y.clear(), M = 0, i.forwardMode.active && (i.forwardMode.active = !1, i.forwardMode.selectedMessages = []), await wt(), Ce(), Oe(), ce();
|
|
@@ -75804,7 +75816,7 @@ const qae = { class: "history-shell relative min-h-0 w-full flex-1 overflow-hidd
|
|
|
75804
75816
|
const ie = X.row.getBoundingClientRect().top - X.top;
|
|
75805
75817
|
ie && (r.value.scrollTop += ie);
|
|
75806
75818
|
}
|
|
75807
|
-
return
|
|
75819
|
+
return Je(
|
|
75808
75820
|
() => a.messages.length,
|
|
75809
75821
|
async (X, ie) => {
|
|
75810
75822
|
if (X <= ie || b.value) return;
|
|
@@ -76532,7 +76544,7 @@ Pendências:`), C.value.forEach((se) => _e.push(`• ${se}`)));
|
|
|
76532
76544
|
}
|
|
76533
76545
|
h === P && (m = M, Y4(h, m, { rate: i.rate }), u.value = !0);
|
|
76534
76546
|
}
|
|
76535
|
-
return
|
|
76547
|
+
return Je(
|
|
76536
76548
|
() => i.isFloating && i.trackId,
|
|
76537
76549
|
(M) => {
|
|
76538
76550
|
if (!M) {
|
|
@@ -76542,7 +76554,7 @@ Pendências:`), C.value.forEach((se) => _e.push(`• ${se}`)));
|
|
|
76542
76554
|
$();
|
|
76543
76555
|
},
|
|
76544
76556
|
{ immediate: !0 }
|
|
76545
|
-
),
|
|
76557
|
+
), Je(r, (M) => {
|
|
76546
76558
|
if (p == null || p.disconnect(), p = null, !M || typeof ResizeObserver > "u") return;
|
|
76547
76559
|
let _ = M.clientWidth;
|
|
76548
76560
|
p = new ResizeObserver(() => {
|
|
@@ -77709,7 +77721,7 @@ const uie = { class: "sm-emoji-drawer-inline__crop" }, die = 0.28, fie = 0.6, hi
|
|
|
77709
77721
|
function r(z) {
|
|
77710
77722
|
!n.inline || !n.show || c.value && !c.value.contains(z.target) && a("close");
|
|
77711
77723
|
}
|
|
77712
|
-
|
|
77724
|
+
Je(
|
|
77713
77725
|
() => n.show && n.inline,
|
|
77714
77726
|
(z) => {
|
|
77715
77727
|
document.removeEventListener("pointerdown", r, !0), z && document.addEventListener("pointerdown", r, !0);
|
|
@@ -77926,7 +77938,7 @@ const Dce = {
|
|
|
77926
77938
|
maximumFractionDigits: t.decimals
|
|
77927
77939
|
}) : t.decimals ? u.toFixed(t.decimals) : String(u);
|
|
77928
77940
|
}
|
|
77929
|
-
return
|
|
77941
|
+
return Je(
|
|
77930
77942
|
() => t.value,
|
|
77931
77943
|
(c) => i(c)
|
|
77932
77944
|
), gt(() => i(t.value)), Mt(() => cancelAnimationFrame(a)), (c, u) => (l(), f("span", yie, I(r(n.value)), 1));
|
|
@@ -78519,7 +78531,7 @@ const Dce = {
|
|
|
78519
78531
|
() => m.value <= 0 ? "Reta final · último dia" : `Reta final · ${m.value} ${m.value === 1 ? "dia" : "dias"}`
|
|
78520
78532
|
), b = T(() => w.value && m.value <= 1), k = T(() => m.value <= 0 ? "É hoje! Último dia da temporada." : m.value === 1 ? "Falta só 1 dia — reta final!" : `Últimos dias da temporada — faltam ${m.value}!`), C = J(Date.now());
|
|
78521
78533
|
let $ = null;
|
|
78522
|
-
|
|
78534
|
+
Je(
|
|
78523
78535
|
() => {
|
|
78524
78536
|
var z;
|
|
78525
78537
|
return b.value && !!((z = t.season) != null && z.ends_at);
|
|
@@ -80037,7 +80049,7 @@ const Ple = {
|
|
|
80037
80049
|
M.has($) ? M.delete($) : M.add($), u.value = M;
|
|
80038
80050
|
}
|
|
80039
80051
|
const m = ($) => u.value.has($);
|
|
80040
|
-
|
|
80052
|
+
Je(
|
|
80041
80053
|
() => n.entries,
|
|
80042
80054
|
() => {
|
|
80043
80055
|
u.value = /* @__PURE__ */ new Set();
|
|
@@ -80831,7 +80843,7 @@ const W1e = {
|
|
|
80831
80843
|
u.value = [], h.value = 1, y.value = !0, m.value++;
|
|
80832
80844
|
}, 350);
|
|
80833
80845
|
}
|
|
80834
|
-
|
|
80846
|
+
Je(c, () => {
|
|
80835
80847
|
b.value || _();
|
|
80836
80848
|
});
|
|
80837
80849
|
function P(Z) {
|
|
@@ -81012,7 +81024,7 @@ const W1e = {
|
|
|
81012
81024
|
const t = e, n = J(!1), a = J(null), i = J([]);
|
|
81013
81025
|
gt(() => {
|
|
81014
81026
|
r();
|
|
81015
|
-
}),
|
|
81027
|
+
}), Je(
|
|
81016
81028
|
() => t.chatId,
|
|
81017
81029
|
() => {
|
|
81018
81030
|
r();
|