sm-click-library-ui 0.0.611-dev.47 → 0.0.611-dev.49
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-DjZ0c5VJ.js → index-B2r6vU1v.js} +643 -641
- 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-CWrWfxGU.js → vue3-lottie.es-C9MEQeSQ.js} +1 -1
- package/dist/{web-C8e6QHwA.js → web-C3UuJbXP.js} +2 -2
- package/dist/{web-tWZljtpf.js → web-CyWroFn6.js} +2 -2
- package/package.json +1 -1
|
@@ -1665,8 +1665,8 @@ const U2 = (e) => {
|
|
|
1665
1665
|
onUploadProgress: D,
|
|
1666
1666
|
responseType: Y,
|
|
1667
1667
|
headers: R,
|
|
1668
|
-
withCredentials:
|
|
1669
|
-
fetchOptions:
|
|
1668
|
+
withCredentials: q = "same-origin",
|
|
1669
|
+
fetchOptions: Z
|
|
1670
1670
|
} = U2(g), V = t || fetch;
|
|
1671
1671
|
Y = Y ? (Y + "").toLowerCase() : "text";
|
|
1672
1672
|
let j = Qm([$, M && M.toAbortSignal()], C), A = null;
|
|
@@ -1689,18 +1689,18 @@ const U2 = (e) => {
|
|
|
1689
1689
|
_ = su(te.body, ou, ae, ee);
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
De.isString(
|
|
1692
|
+
De.isString(q) || (q = q ? "include" : "omit");
|
|
1693
1693
|
const O = r && "credentials" in n.prototype, I = {
|
|
1694
|
-
...
|
|
1694
|
+
...Z,
|
|
1695
1695
|
signal: j,
|
|
1696
1696
|
method: k.toUpperCase(),
|
|
1697
1697
|
headers: R.normalize().toJSON(),
|
|
1698
1698
|
body: _,
|
|
1699
1699
|
duplex: "half",
|
|
1700
|
-
credentials: O ?
|
|
1700
|
+
credentials: O ? q : void 0
|
|
1701
1701
|
};
|
|
1702
1702
|
A = r && new n(b, I);
|
|
1703
|
-
let B = await (r ? V(A,
|
|
1703
|
+
let B = await (r ? V(A, Z) : V(b, I));
|
|
1704
1704
|
const G = m && (Y === "stream" || Y === "response");
|
|
1705
1705
|
if (m && (T || G && S)) {
|
|
1706
1706
|
const te = {};
|
|
@@ -2515,13 +2515,13 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
2515
2515
|
},
|
|
2516
2516
|
emits: ["update:modelValue"],
|
|
2517
2517
|
setup(e, { emit: t }) {
|
|
2518
|
-
const n = e, a = t, i = P(() => n.background ? { backgroundColor: n.background } : {}), r = P(() => n.menuBackground ? { backgroundColor: n.menuBackground } : {}), c = $p(), u = X(!1), h = X(null), p = X(null), m = X({}), y = [], x = X({ name: "" }), w = X(""), g = P(() => n.modelValue[0] || null), b = (
|
|
2518
|
+
const n = e, a = t, i = P(() => n.background ? { backgroundColor: n.background } : {}), r = P(() => n.menuBackground ? { backgroundColor: n.menuBackground } : {}), c = $p(), u = X(!1), h = X(null), p = X(null), m = X({}), y = [], x = X({ name: "" }), w = X(""), g = P(() => n.modelValue[0] || null), b = (Z) => {
|
|
2519
2519
|
var j, A;
|
|
2520
2520
|
if (!u.value) return;
|
|
2521
|
-
const V =
|
|
2521
|
+
const V = Z.target;
|
|
2522
2522
|
(j = p.value) != null && j.contains(V) || (A = h.value) != null && A.contains(V) || (u.value = !1);
|
|
2523
|
-
}, k = (
|
|
2524
|
-
let V = (
|
|
2523
|
+
}, k = (Z) => {
|
|
2524
|
+
let V = (Z == null ? void 0 : Z.parentElement) || null;
|
|
2525
2525
|
for (; V && V !== document.body && V !== document.documentElement; ) {
|
|
2526
2526
|
const j = window.getComputedStyle(V), A = j.willChange || "";
|
|
2527
2527
|
if (j.transform !== "none" || j.perspective !== "none" || j.filter !== "none" || j.backdropFilter !== "none" || A.includes("transform") || A.includes("filter") || A.includes("perspective")) return V;
|
|
@@ -2530,8 +2530,8 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
2530
2530
|
return null;
|
|
2531
2531
|
}, _ = () => {
|
|
2532
2532
|
if (!n.overlay || !p.value) return;
|
|
2533
|
-
const
|
|
2534
|
-
let V =
|
|
2533
|
+
const Z = p.value.getBoundingClientRect();
|
|
2534
|
+
let V = Z.bottom + 3, j = Z.left;
|
|
2535
2535
|
const A = k(p.value);
|
|
2536
2536
|
if (A) {
|
|
2537
2537
|
const S = A.getBoundingClientRect();
|
|
@@ -2541,54 +2541,54 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
2541
2541
|
position: "fixed",
|
|
2542
2542
|
top: `${V}px`,
|
|
2543
2543
|
left: `${j}px`,
|
|
2544
|
-
width: `${
|
|
2544
|
+
width: `${Z.width}px`,
|
|
2545
2545
|
zIndex: 9999
|
|
2546
2546
|
};
|
|
2547
2547
|
};
|
|
2548
|
-
Ke(u, async (
|
|
2549
|
-
|
|
2548
|
+
Ke(u, async (Z) => {
|
|
2549
|
+
Z && (await bt(), _(), requestAnimationFrame(_));
|
|
2550
2550
|
});
|
|
2551
|
-
const $ = P(() => c.tagsFor(w.value)), M = P(() => [...n.syntheticTags, ...$.value]), C = P(() => c.hasMoreFor(w.value)), T = P(() => c.loadingFor(w.value)), D = P(() => c.loadedFor(w.value)), Y = (
|
|
2551
|
+
const $ = P(() => c.tagsFor(w.value)), M = P(() => [...n.syntheticTags, ...$.value]), C = P(() => c.hasMoreFor(w.value)), T = P(() => c.loadingFor(w.value)), D = P(() => c.loadedFor(w.value)), Y = (Z) => {
|
|
2552
2552
|
var A;
|
|
2553
2553
|
if (!n.multiple) {
|
|
2554
|
-
if (((A = g.value) == null ? void 0 : A.id) ===
|
|
2554
|
+
if (((A = g.value) == null ? void 0 : A.id) === Z.id) {
|
|
2555
2555
|
a("update:modelValue", []);
|
|
2556
2556
|
return;
|
|
2557
2557
|
}
|
|
2558
|
-
a("update:modelValue", [{ id:
|
|
2558
|
+
a("update:modelValue", [{ id: Z.id, name: Z.name, color: Z.color }]), n.closeOnSelectSingle && (u.value = !1);
|
|
2559
2559
|
return;
|
|
2560
2560
|
}
|
|
2561
|
-
const V = [...n.modelValue], j = V.findIndex((S) => S.id ===
|
|
2562
|
-
j === -1 ? V.push({ id:
|
|
2563
|
-
}, R = async (
|
|
2564
|
-
T.value || (await c.fetchTags({ query: w.value }), c.hasMoreFor(w.value) ?
|
|
2561
|
+
const V = [...n.modelValue], j = V.findIndex((S) => S.id === Z.id);
|
|
2562
|
+
j === -1 ? V.push({ id: Z.id, name: Z.name, color: Z.color }) : V.splice(j, 1), a("update:modelValue", V);
|
|
2563
|
+
}, R = async (Z) => {
|
|
2564
|
+
T.value || (await c.fetchTags({ query: w.value }), c.hasMoreFor(w.value) ? Z.loaded() : Z.complete());
|
|
2565
2565
|
};
|
|
2566
|
-
let
|
|
2566
|
+
let q;
|
|
2567
2567
|
return Ke(
|
|
2568
2568
|
() => x.value.name,
|
|
2569
|
-
(
|
|
2570
|
-
clearTimeout(
|
|
2571
|
-
w.value = (
|
|
2569
|
+
(Z) => {
|
|
2570
|
+
clearTimeout(q), q = setTimeout(() => {
|
|
2571
|
+
w.value = (Z || "").trim(), c.ensureSearch(w.value);
|
|
2572
2572
|
}, 400);
|
|
2573
2573
|
}
|
|
2574
2574
|
), gt(async () => {
|
|
2575
2575
|
if (document.addEventListener("mousedown", b), await c.ensureLoaded(), n.overlay) {
|
|
2576
|
-
const
|
|
2576
|
+
const Z = () => {
|
|
2577
2577
|
u.value && _();
|
|
2578
2578
|
};
|
|
2579
|
-
window.addEventListener("scroll",
|
|
2579
|
+
window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z), y.push(["scroll", Z], ["resize", Z]);
|
|
2580
2580
|
}
|
|
2581
2581
|
}), Bt(() => {
|
|
2582
|
-
clearTimeout(
|
|
2582
|
+
clearTimeout(q), document.removeEventListener("mousedown", b), y.forEach(([Z, V]) => window.removeEventListener(Z, V, Z === "scroll" ? !0 : void 0));
|
|
2583
2583
|
}), Ke(
|
|
2584
2584
|
() => n.allTags,
|
|
2585
|
-
(
|
|
2585
|
+
(Z) => c.seed(Z),
|
|
2586
2586
|
{ deep: !0, immediate: !0 }
|
|
2587
2587
|
), Ke(
|
|
2588
2588
|
() => n.modelValue,
|
|
2589
|
-
(
|
|
2589
|
+
(Z) => c.upsert(Z || []),
|
|
2590
2590
|
{ deep: !0, immediate: !0 }
|
|
2591
|
-
), (
|
|
2591
|
+
), (Z, V) => {
|
|
2592
2592
|
var j;
|
|
2593
2593
|
return l(), f("div", {
|
|
2594
2594
|
ref_key: "dropdownRef",
|
|
@@ -2972,11 +2972,11 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
2972
2972
|
function R() {
|
|
2973
2973
|
a("update:filters", Y());
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function q(ae) {
|
|
2976
2976
|
const ee = p.value[ae], fe = h.value[ae];
|
|
2977
2977
|
JSON.stringify(ee ?? null) !== JSON.stringify(fe ?? null) && (h.value[ae] = ee ?? null, R());
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2979
|
+
function Z(ae, ee) {
|
|
2980
2980
|
p.value[x(ae)] = ee;
|
|
2981
2981
|
}
|
|
2982
2982
|
function V() {
|
|
@@ -3000,10 +3000,10 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3000
3000
|
A();
|
|
3001
3001
|
return;
|
|
3002
3002
|
}
|
|
3003
|
-
i.value &&
|
|
3003
|
+
i.value && q(i.value), i.value = ee;
|
|
3004
3004
|
}
|
|
3005
3005
|
function A() {
|
|
3006
|
-
i.value && (
|
|
3006
|
+
i.value && (q(i.value), i.value = null, c.value = {});
|
|
3007
3007
|
}
|
|
3008
3008
|
function S(ae) {
|
|
3009
3009
|
if (!i.value) return;
|
|
@@ -3230,14 +3230,14 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3230
3230
|
key: 0,
|
|
3231
3231
|
"model-value": p.value[x(g.value)],
|
|
3232
3232
|
placeholder: g.value.filter.placeholder,
|
|
3233
|
-
"onUpdate:modelValue": ee[2] || (ee[2] = (ne) =>
|
|
3233
|
+
"onUpdate:modelValue": ee[2] || (ee[2] = (ne) => Z(g.value, ne)),
|
|
3234
3234
|
onSubmit: A
|
|
3235
3235
|
}, null, 8, ["model-value", "placeholder"])) : g.value.filter.type === "select" ? (l(), _e(r5, {
|
|
3236
3236
|
key: 1,
|
|
3237
3237
|
options: g.value.filter.options,
|
|
3238
3238
|
"model-value": p.value[x(g.value)],
|
|
3239
3239
|
"onUpdate:modelValue": ee[3] || (ee[3] = (ne) => {
|
|
3240
|
-
|
|
3240
|
+
Z(g.value, ne), A();
|
|
3241
3241
|
})
|
|
3242
3242
|
}, null, 8, ["options", "model-value"])) : g.value.filter.type === "checkbox" ? (l(), f("div", b6, [
|
|
3243
3243
|
(l(!0), f(ye, null, He(g.value.filter.options, (ne) => (l(), f("label", {
|
|
@@ -3257,7 +3257,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3257
3257
|
options: g.value.filter.options,
|
|
3258
3258
|
"model-value": p.value[x(g.value)] ?? [],
|
|
3259
3259
|
placeholder: g.value.filter.placeholder,
|
|
3260
|
-
"onUpdate:modelValue": ee[4] || (ee[4] = (ne) =>
|
|
3260
|
+
"onUpdate:modelValue": ee[4] || (ee[4] = (ne) => Z(g.value, ne.length ? ne : null))
|
|
3261
3261
|
}, null, 8, ["options", "model-value", "placeholder"])) : g.value.filter.type === "tag" ? (l(), _e(Yr, {
|
|
3262
3262
|
key: 4,
|
|
3263
3263
|
"model-value": C.value,
|
|
@@ -3265,7 +3265,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3265
3265
|
"synthetic-tags": M.value,
|
|
3266
3266
|
overlay: !0,
|
|
3267
3267
|
multiple: g.value.filter.multiple !== !1,
|
|
3268
|
-
"onUpdate:modelValue": ee[5] || (ee[5] = (ne) =>
|
|
3268
|
+
"onUpdate:modelValue": ee[5] || (ee[5] = (ne) => Z(g.value, ne.length ? ne : null))
|
|
3269
3269
|
}, null, 8, ["model-value", "all-tags", "synthetic-tags", "multiple"])) : F("", !0)
|
|
3270
3270
|
], 4)) : F("", !0)
|
|
3271
3271
|
]))
|
|
@@ -3607,7 +3607,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3607
3607
|
])
|
|
3608
3608
|
]),
|
|
3609
3609
|
"cell-status": Ae(({ row: $ }) => {
|
|
3610
|
-
var M, C, T, D, Y, R,
|
|
3610
|
+
var M, C, T, D, Y, R, q, Z;
|
|
3611
3611
|
return [
|
|
3612
3612
|
o("div", A6, [
|
|
3613
3613
|
o("div", {
|
|
@@ -3633,7 +3633,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3633
3633
|
"stroke-width": "2",
|
|
3634
3634
|
d: "m6 6 12 12m3-6a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
3635
3635
|
}, null, -1)
|
|
3636
|
-
])])) : ((
|
|
3636
|
+
])])) : ((q = $.status) == null ? void 0 : q.toLowerCase()) === "approved" ? (l(), f("svg", P6, [...k[2] || (k[2] = [
|
|
3637
3637
|
o("path", {
|
|
3638
3638
|
stroke: "currentColor",
|
|
3639
3639
|
"stroke-linecap": "round",
|
|
@@ -3641,7 +3641,7 @@ const pp = "v1/api/attendances/attendant/", vp = "v1/api/attendances/department/
|
|
|
3641
3641
|
"stroke-width": "2",
|
|
3642
3642
|
d: "m8.032 12 1.984 1.984 4.96-4.96m4.55 5.272.893-.893a1.984 1.984 0 0 0 0-2.806l-.893-.893a1.984 1.984 0 0 1-.581-1.403V7.04a1.984 1.984 0 0 0-1.984-1.984h-1.262a1.983 1.983 0 0 1-1.403-.581l-.893-.893a1.984 1.984 0 0 0-2.806 0l-.893.893a1.984 1.984 0 0 1-1.403.581H7.04A1.984 1.984 0 0 0 5.055 7.04v1.262c0 .527-.209 1.031-.581 1.403l-.893.893a1.984 1.984 0 0 0 0 2.806l.893.893c.372.372.581.876.581 1.403v1.262a1.984 1.984 0 0 0 1.984 1.984h1.262c.527 0 1.031.209 1.403.581l.893.893a1.984 1.984 0 0 0 2.806 0l.893-.893a1.985 1.985 0 0 1 1.403-.581h1.262a1.984 1.984 0 0 0 1.984-1.984V15.7c0-.527.209-1.031.581-1.403Z"
|
|
3643
3643
|
}, null, -1)
|
|
3644
|
-
])])) : ((
|
|
3644
|
+
])])) : ((Z = $.status) == null ? void 0 : Z.toLowerCase()) === "pending_deletion" ? (l(), f("svg", T6, [...k[3] || (k[3] = [
|
|
3645
3645
|
o("path", {
|
|
3646
3646
|
stroke: "currentColor",
|
|
3647
3647
|
"stroke-linecap": "round",
|
|
@@ -5564,7 +5564,7 @@ function E3(e = {}) {
|
|
|
5564
5564
|
target: Number(e.target),
|
|
5565
5565
|
params: A3(e.metric, e.params),
|
|
5566
5566
|
scope: t,
|
|
5567
|
-
|
|
5567
|
+
season: t === "season" ? e.season ?? null : null
|
|
5568
5568
|
};
|
|
5569
5569
|
}
|
|
5570
5570
|
function ku(e) {
|
|
@@ -5572,11 +5572,12 @@ function ku(e) {
|
|
|
5572
5572
|
return e === "" || e === null || e === void 0 || !Number.isFinite(t) || t < 1;
|
|
5573
5573
|
}
|
|
5574
5574
|
function Pre(e) {
|
|
5575
|
+
var n;
|
|
5575
5576
|
const t = {};
|
|
5576
|
-
return e && (String(e.name || "").trim() || (t.name = "Dê um nome para a conquista."), String(e.description || "").trim() || (t.description = "Descreva como desbloquear."), u0(e.metric) || (t.metric = "Escolha uma métrica."), e.scope && !M3.some((
|
|
5577
|
-
var
|
|
5578
|
-
const
|
|
5579
|
-
(!Number.isFinite(
|
|
5577
|
+
return e && (String(e.name || "").trim() || (t.name = "Dê um nome para a conquista."), String(e.description || "").trim() || (t.description = "Descreva como desbloquear."), u0(e.metric) || (t.metric = "Escolha uma métrica."), e.scope && !M3.some((a) => a.key === e.scope) && (t.scope = "Escolha um escopo."), e.scope === "season" && !((n = e.season) != null && n.id) && (t.season = "Selecione a temporada."), ku(e.target) && (t.target = "Informe uma meta igual ou maior que 1."), ku(e.xp) && (t.xp = "Informe uma recompensa igual ou maior que 1."), d0(e.metric).forEach((a) => {
|
|
5578
|
+
var r;
|
|
5579
|
+
const i = Number((r = e.params) == null ? void 0 : r[a.key]);
|
|
5580
|
+
(!Number.isFinite(i) || i < a.min || i > a.max) && (t[a.key] = `Informe ${a.label.toLowerCase()} entre ${a.min} e ${a.max}.`);
|
|
5580
5581
|
}), e.rarity === "secret" && !String(e.hint || "").trim() && (t.hint = "Conquistas secretas precisam de uma dica.")), t;
|
|
5581
5582
|
}
|
|
5582
5583
|
function A8(e) {
|
|
@@ -5629,10 +5630,10 @@ function $3(e) {
|
|
|
5629
5630
|
return Number(e).toLocaleString("pt-BR");
|
|
5630
5631
|
}
|
|
5631
5632
|
function $8(e) {
|
|
5632
|
-
var
|
|
5633
|
+
var y;
|
|
5633
5634
|
const t = e == null ? void 0 : e.requirement, n = u0(t == null ? void 0 : t.metric), a = Number(t == null ? void 0 : t.target);
|
|
5634
5635
|
if (!n || !Number.isFinite(a) || a < 1) return null;
|
|
5635
|
-
const i = A3(n.key, t.params), r = t.scope === "season" ? "season" : "general", c = e.progress ?? ((
|
|
5636
|
+
const i = A3(n.key, t.params), r = t.scope === "season" ? "season" : "general", c = t.season ?? null, u = (c == null ? void 0 : c.name) ?? null, h = e.progress ?? ((y = e.unlocked) == null ? void 0 : y.progress), p = Number(h), m = h != null && Number.isFinite(p);
|
|
5636
5637
|
return {
|
|
5637
5638
|
metric: n.key,
|
|
5638
5639
|
metricLabel: n.label,
|
|
@@ -5640,16 +5641,17 @@ function $8(e) {
|
|
|
5640
5641
|
target: a,
|
|
5641
5642
|
params: i,
|
|
5642
5643
|
scope: r,
|
|
5644
|
+
season: c,
|
|
5645
|
+
seasonName: u,
|
|
5643
5646
|
// `scope` é a janela de AQUISIÇÃO, não de validade: desbloqueada é para sempre nos
|
|
5644
|
-
// dois escopos.
|
|
5645
|
-
// afirmar QUAL temporada é sem o nome.
|
|
5647
|
+
// dois escopos.
|
|
5646
5648
|
scopeLabel: r === "season" ? "Por temporada" : "Conta desde sempre",
|
|
5647
5649
|
text: E8[n.key]($3(a), a, i),
|
|
5648
|
-
progress:
|
|
5649
|
-
current: Math.max(0, Math.min(
|
|
5650
|
+
progress: m ? {
|
|
5651
|
+
current: Math.max(0, Math.min(p, a)),
|
|
5650
5652
|
target: a,
|
|
5651
|
-
remaining: Math.max(0, a -
|
|
5652
|
-
pct: Math.max(0, Math.min(100, Math.round(
|
|
5653
|
+
remaining: Math.max(0, a - p),
|
|
5654
|
+
pct: Math.max(0, Math.min(100, Math.round(p / a * 100)))
|
|
5653
5655
|
} : null
|
|
5654
5656
|
};
|
|
5655
5657
|
}
|
|
@@ -5947,7 +5949,7 @@ const L8 = [
|
|
|
5947
5949
|
xp: 2100
|
|
5948
5950
|
}
|
|
5949
5951
|
], Bre = L8.map(
|
|
5950
|
-
({ metric: e, target: t, params: n, scope: a,
|
|
5952
|
+
({ metric: e, target: t, params: n, scope: a, season: i, ...r }) => ({
|
|
5951
5953
|
hint: "",
|
|
5952
5954
|
status: !0,
|
|
5953
5955
|
...r,
|
|
@@ -5956,7 +5958,7 @@ const L8 = [
|
|
|
5956
5958
|
target: t,
|
|
5957
5959
|
params: n,
|
|
5958
5960
|
scope: a,
|
|
5959
|
-
|
|
5961
|
+
season: i
|
|
5960
5962
|
})
|
|
5961
5963
|
})
|
|
5962
5964
|
), P8 = !1, T8 = 100, B8 = 1.5;
|
|
@@ -6490,10 +6492,10 @@ const Sa = ca("attendant", {
|
|
|
6490
6492
|
}), Y = P(() => !!D.value), R = P(() => {
|
|
6491
6493
|
var ne;
|
|
6492
6494
|
return ((ne = T.value) == null ? void 0 : ne.ring.variant) === "arc";
|
|
6493
|
-
}),
|
|
6495
|
+
}), q = P(() => {
|
|
6494
6496
|
var ne;
|
|
6495
6497
|
return ((ne = T.value) == null ? void 0 : ne.ring.variant) === "double";
|
|
6496
|
-
}),
|
|
6498
|
+
}), Z = P(() => {
|
|
6497
6499
|
var ne, ve;
|
|
6498
6500
|
return R.value && ((ve = (ne = T.value) == null ? void 0 : ne.ornament) == null ? void 0 : ve.variant) || "";
|
|
6499
6501
|
}), V = P(
|
|
@@ -6545,7 +6547,7 @@ const Sa = ca("attendant", {
|
|
|
6545
6547
|
}), I = P(() => {
|
|
6546
6548
|
var xe;
|
|
6547
6549
|
if (n.size === "fill" && !Y.value) return "0px";
|
|
6548
|
-
const ne = R.value ? 0.72 :
|
|
6550
|
+
const ne = R.value ? 0.72 : q.value ? 1.4 : 1, ve = R.value ? 1.5 : q.value ? 3 : 2, de = (((xe = T.value) == null ? void 0 : xe.ring.width) || 2) * ne / $i;
|
|
6549
6551
|
return n.size === "fill" ? `max(${ve}px, ${Math.round(de * 1e4) / 100}cqw)` : `${Math.max(ve, de * $i * S.value)}px`;
|
|
6550
6552
|
}), B = P(() => {
|
|
6551
6553
|
var ne, ve, de, xe, ke, Re, Xe, Be;
|
|
@@ -6609,7 +6611,7 @@ const Sa = ca("attendant", {
|
|
|
6609
6611
|
j.value ? "sm-avatar-frame--animated" : "",
|
|
6610
6612
|
A.value ? "sm-avatar-frame--spins" : "",
|
|
6611
6613
|
(xe = T.value) != null && xe.ring.variant ? `sm-avatar-frame--${T.value.ring.variant}` : "",
|
|
6612
|
-
|
|
6614
|
+
Z.value ? `sm-avatar-frame--signature-${Z.value}` : "",
|
|
6613
6615
|
Y.value ? "sm-avatar-frame--painted" : "",
|
|
6614
6616
|
e.frameOnly && !Y.value ? "sm-avatar-frame--empty" : ""
|
|
6615
6617
|
]]),
|
|
@@ -6842,10 +6844,10 @@ const Sa = ca("attendant", {
|
|
|
6842
6844
|
function R() {
|
|
6843
6845
|
M.value && (i.value = !0);
|
|
6844
6846
|
}
|
|
6845
|
-
function
|
|
6847
|
+
function q(V) {
|
|
6846
6848
|
i.value = !1, a("start-chat", V);
|
|
6847
6849
|
}
|
|
6848
|
-
async function
|
|
6850
|
+
async function Z(V, j) {
|
|
6849
6851
|
if (V)
|
|
6850
6852
|
try {
|
|
6851
6853
|
await navigator.clipboard.writeText(V), r.value = j, c && clearTimeout(c), c = setTimeout(() => {
|
|
@@ -6949,7 +6951,7 @@ const Sa = ca("attendant", {
|
|
|
6949
6951
|
class: "vcard-person__chat",
|
|
6950
6952
|
type: "button",
|
|
6951
6953
|
title: "Iniciar conversa",
|
|
6952
|
-
onClick: ct((z) =>
|
|
6954
|
+
onClick: ct((z) => q(A), ["stop"])
|
|
6953
6955
|
}, [...j[6] || (j[6] = [
|
|
6954
6956
|
o("svg", {
|
|
6955
6957
|
"aria-hidden": "true",
|
|
@@ -6991,7 +6993,7 @@ const Sa = ca("attendant", {
|
|
|
6991
6993
|
rel: A.link ? "noopener noreferrer" : null,
|
|
6992
6994
|
type: A.link ? null : "button",
|
|
6993
6995
|
title: A.link ? "Abrir" : r.value === A.id ? "Copiado!" : "Clique para copiar",
|
|
6994
|
-
onClick: ct((S) => A.link ? null :
|
|
6996
|
+
onClick: ct((S) => A.link ? null : Z(A.value, A.id), ["stop"])
|
|
6995
6997
|
}, {
|
|
6996
6998
|
default: Ae(() => [
|
|
6997
6999
|
(l(), f("svg", mv, [
|
|
@@ -7019,7 +7021,7 @@ const Sa = ca("attendant", {
|
|
|
7019
7021
|
o("button", {
|
|
7020
7022
|
class: "vcard-modal__action",
|
|
7021
7023
|
type: "button",
|
|
7022
|
-
onClick: j[2] || (j[2] = ct((A) =>
|
|
7024
|
+
onClick: j[2] || (j[2] = ct((A) => q(g.value), ["stop"]))
|
|
7023
7025
|
}, " Iniciar conversa ")
|
|
7024
7026
|
]),
|
|
7025
7027
|
key: "0"
|
|
@@ -7089,12 +7091,12 @@ function Na() {
|
|
|
7089
7091
|
function R(A, ...S) {
|
|
7090
7092
|
for (const z of Y.get(A) || []) z(...S);
|
|
7091
7093
|
}
|
|
7092
|
-
function
|
|
7094
|
+
function q(A) {
|
|
7093
7095
|
return a = 0, A ? b = setTimeout(() => {
|
|
7094
|
-
|
|
7095
|
-
}, A) :
|
|
7096
|
+
Z();
|
|
7097
|
+
}, A) : Z(), j;
|
|
7096
7098
|
}
|
|
7097
|
-
function
|
|
7099
|
+
function Z() {
|
|
7098
7100
|
e = vn.Running, R("start", k, _);
|
|
7099
7101
|
}
|
|
7100
7102
|
function V() {
|
|
@@ -7103,7 +7105,7 @@ function Na() {
|
|
|
7103
7105
|
const A = Object.assign({}, g);
|
|
7104
7106
|
g = Object.assign({}, _), _ = A;
|
|
7105
7107
|
}
|
|
7106
|
-
|
|
7108
|
+
q(C);
|
|
7107
7109
|
} else n = 0;
|
|
7108
7110
|
return j;
|
|
7109
7111
|
}
|
|
@@ -7134,7 +7136,7 @@ function Na() {
|
|
|
7134
7136
|
var z, O;
|
|
7135
7137
|
return z = A, O = S, Y.has(z) && Y.set(z, Y.get(z).filter((I) => I !== O)), j;
|
|
7136
7138
|
}, start: function(A) {
|
|
7137
|
-
return Oo(k, _) || (e = vn.Initializing, g = Object.assign({}, k), _r.add(this), Hs || (Hs = window.requestAnimationFrame(O3)),
|
|
7139
|
+
return Oo(k, _) || (e = vn.Initializing, g = Object.assign({}, k), _r.add(this), Hs || (Hs = window.requestAnimationFrame(O3)), q(A)), j;
|
|
7138
7140
|
}, pause: function() {
|
|
7139
7141
|
return b && (clearTimeout(b), b = null), e === vn.Running && (e = vn.Paused, R("pause", k)), j;
|
|
7140
7142
|
}, end: V, tick: function(A) {
|
|
@@ -7227,10 +7229,10 @@ const $u = (e) => {
|
|
|
7227
7229
|
let Pi = !1, Ao = !0;
|
|
7228
7230
|
const Zs = (e, t) => {
|
|
7229
7231
|
let n, a, i, r = Object.assign(Object.assign({}, kv), t), c = [], u = [], h = [], p = !1, m = !1, y = !1, x = !1, w = 0, g = 0, b = 0, k = 0, _ = 0, $ = 0, M = 0, C = 0, T = 0, D = [], Y = 0, R = 0;
|
|
7230
|
-
const
|
|
7231
|
-
function
|
|
7232
|
+
const q = /* @__PURE__ */ new Map();
|
|
7233
|
+
function Z(G) {
|
|
7232
7234
|
const J = Li(u), te = Li(h), se = J && te ? J / te : 0, ae = Math.abs(M) > Math.abs(C) ? M : C, ee = { srcEvent: n, isPanRecognized: p, isSwipeRecognized: m, firstTouch: c, previousTouch: h, currentTouch: u, deltaX: b, deltaY: k, offsetX: _, offsetY: $, velocityX: M, velocityY: C, velocity: ae, angle: T, axis: i, scale: se, center: a };
|
|
7233
|
-
for (const fe of
|
|
7235
|
+
for (const fe of q.get(G) || []) fe(ee);
|
|
7234
7236
|
}
|
|
7235
7237
|
function V(G) {
|
|
7236
7238
|
const J = Date.now();
|
|
@@ -7254,7 +7256,7 @@ const Zs = (e, t) => {
|
|
|
7254
7256
|
}
|
|
7255
7257
|
G instanceof MouseEvent && (window.addEventListener("mousemove", A), window.addEventListener("mouseup", S)), window.addEventListener("blur", z), n = G, u = Eu(G), c = [...u], h = [], g = u.length, a = za(u), g === 1 && (p = !1, m = !1, y = !1), g && V(za(u));
|
|
7256
7258
|
const se = Date.now(), ae = se - (w || se);
|
|
7257
|
-
x = ae > 0 && ae <= 250 && g === 1, w = se, clearTimeout(Y),
|
|
7259
|
+
x = ae > 0 && ae <= 250 && g === 1, w = se, clearTimeout(Y), Z("start");
|
|
7258
7260
|
}
|
|
7259
7261
|
function A(G) {
|
|
7260
7262
|
var J;
|
|
@@ -7267,23 +7269,23 @@ const Zs = (e, t) => {
|
|
|
7267
7269
|
}
|
|
7268
7270
|
if (u.length > 1) {
|
|
7269
7271
|
const ae = Li(u), ee = Li(h);
|
|
7270
|
-
Math.abs(ae - ee) >= 0.1 && (y = !0,
|
|
7272
|
+
Math.abs(ae - ee) >= 0.1 && (y = !0, Z("pinch"));
|
|
7271
7273
|
}
|
|
7272
|
-
p || (p = Math.abs(_) > r.panThreshold || Math.abs($) > r.panThreshold, p && (Ao = !1, clearTimeout(R), R = 0, T = Math.abs(180 * Math.atan2($, _) / Math.PI), i = T > 45 && T < 135 ? "y" : "x", c = [...u], h = [...u], _ = 0, $ = 0, b = 0, k = 0, (J = window.getSelection()) === null || J === void 0 || J.removeAllRanges(),
|
|
7274
|
+
p || (p = Math.abs(_) > r.panThreshold || Math.abs($) > r.panThreshold, p && (Ao = !1, clearTimeout(R), R = 0, T = Math.abs(180 * Math.atan2($, _) / Math.PI), i = T > 45 && T < 135 ? "y" : "x", c = [...u], h = [...u], _ = 0, $ = 0, b = 0, k = 0, (J = window.getSelection()) === null || J === void 0 || J.removeAllRanges(), Z("panstart"))), p && (b || k) && Z("pan"), Z("move");
|
|
7273
7275
|
}
|
|
7274
7276
|
function S(G) {
|
|
7275
7277
|
if (n = G, !c.length) return;
|
|
7276
7278
|
const J = Eu(G), te = D3(G);
|
|
7277
|
-
if (g = J.length, a = za(te), te.length && V(za(te)), h = [...u], u = [...J], c = [...J], g > 0)
|
|
7279
|
+
if (g = J.length, a = za(te), te.length && V(za(te)), h = [...u], u = [...J], c = [...J], g > 0) Z("end"), p = !1, m = !1, D = [];
|
|
7278
7280
|
else {
|
|
7279
7281
|
const se = r.swipeThreshold;
|
|
7280
|
-
(Math.abs(M) > se || Math.abs(C) > se) && (m = !0), p &&
|
|
7281
|
-
|
|
7282
|
-
}, 250)),
|
|
7282
|
+
(Math.abs(M) > se || Math.abs(C) > se) && (m = !0), p && Z("panend"), m && Z("swipe"), p || m || y || (Z("tap"), x ? Z("doubleTap") : Y = setTimeout(function() {
|
|
7283
|
+
Z("singleTap");
|
|
7284
|
+
}, 250)), Z("end"), O();
|
|
7283
7285
|
}
|
|
7284
7286
|
}
|
|
7285
7287
|
function z() {
|
|
7286
|
-
clearTimeout(Y), O(), p &&
|
|
7288
|
+
clearTimeout(Y), O(), p && Z("panend"), Z("end");
|
|
7287
7289
|
}
|
|
7288
7290
|
function O() {
|
|
7289
7291
|
Pi = !1, p = !1, m = !1, x = !1, g = 0, D = [], u = [], h = [], c = [], b = 0, k = 0, _ = 0, $ = 0, M = 0, C = 0, T = 0, i = void 0, window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", S), window.removeEventListener("blur", z), Ao || R || (R = setTimeout(() => {
|
|
@@ -7298,10 +7300,10 @@ const Zs = (e, t) => {
|
|
|
7298
7300
|
return e && (e.addEventListener("click", I, Pa), e.addEventListener("mousedown", j, Pa), e.addEventListener("touchstart", j, Pa), e.addEventListener("touchmove", A, Pa), e.addEventListener("touchend", S), e.addEventListener("touchcancel", S)), B;
|
|
7299
7301
|
}, on: function(G, J) {
|
|
7300
7302
|
return function(te, se) {
|
|
7301
|
-
|
|
7303
|
+
q.set(te, [...q.get(te) || [], se]);
|
|
7302
7304
|
}(G, J), B;
|
|
7303
7305
|
}, off: function(G, J) {
|
|
7304
|
-
return
|
|
7306
|
+
return q.has(G) && q.set(G, q.get(G).filter((te) => te !== J)), B;
|
|
7305
7307
|
}, isPointerDown: () => g > 0, destroy: function() {
|
|
7306
7308
|
clearTimeout(Y), clearTimeout(R), R = 0, e && (e.removeEventListener("click", I, Pa), e.removeEventListener("mousedown", j, Pa), e.removeEventListener("touchstart", j, Pa), e.removeEventListener("touchmove", A, Pa), e.removeEventListener("touchend", S), e.removeEventListener("touchcancel", S)), e = null, O();
|
|
7307
7309
|
} };
|
|
@@ -7435,7 +7437,7 @@ const C1 = (e, t = {}, n = {}) => {
|
|
|
7435
7437
|
var K;
|
|
7436
7438
|
e && (yn(e, "is-loading"), (K = e.querySelector(".f-spinner")) === null || K === void 0 || K.remove());
|
|
7437
7439
|
}
|
|
7438
|
-
function
|
|
7440
|
+
function q() {
|
|
7439
7441
|
if (!e || !i) return;
|
|
7440
7442
|
if (R(), ta(i) && (!i.complete || !i.naturalWidth)) return y = 2, a == null || a.classList.add("has-error"), void C("error");
|
|
7441
7443
|
C("loaded");
|
|
@@ -7489,12 +7491,12 @@ const C1 = (e, t = {}, n = {}) => {
|
|
|
7489
7491
|
})), e == null || e.addEventListener("click", D), document == null || document.addEventListener("mousemove", Y), k.push(() => {
|
|
7490
7492
|
e == null || e.removeEventListener("click", D), document == null || document.removeEventListener("mousemove", Y);
|
|
7491
7493
|
});
|
|
7492
|
-
const ue =
|
|
7494
|
+
const ue = Z();
|
|
7493
7495
|
g = Object.assign({}, ue), b = Object.assign({}, ue), y = 3, ne(), ee(), C("ready"), requestAnimationFrame(() => {
|
|
7494
7496
|
R(), c && (c.style.visibility = "");
|
|
7495
7497
|
});
|
|
7496
7498
|
}
|
|
7497
|
-
function
|
|
7499
|
+
function Z() {
|
|
7498
7500
|
const K = Object.assign({}, _("startPos") || {});
|
|
7499
7501
|
let re = K.scale, ue = 1;
|
|
7500
7502
|
ue = typeof re == "string" ? O(re) : typeof re == "number" ? re : B();
|
|
@@ -7858,7 +7860,7 @@ const C1 = (e, t = {}, n = {}) => {
|
|
|
7858
7860
|
return x;
|
|
7859
7861
|
}, getPlugins: function() {
|
|
7860
7862
|
return w;
|
|
7861
|
-
}, getScale: O, getStartPosition:
|
|
7863
|
+
}, getScale: O, getStartPosition: Z, getState: function() {
|
|
7862
7864
|
return y;
|
|
7863
7865
|
}, getTransform: function(K) {
|
|
7864
7866
|
return K === !0 ? b : g;
|
|
@@ -7900,12 +7902,12 @@ const C1 = (e, t = {}, n = {}) => {
|
|
|
7900
7902
|
}
|
|
7901
7903
|
}(), function() {
|
|
7902
7904
|
if (!e || !i) return;
|
|
7903
|
-
if (!ta(i) || !ta(r)) return void
|
|
7905
|
+
if (!ta(i) || !ta(r)) return void q();
|
|
7904
7906
|
const K = () => {
|
|
7905
7907
|
i && ta(i) && i.decode().then(() => {
|
|
7906
|
-
|
|
7908
|
+
q();
|
|
7907
7909
|
}).catch(() => {
|
|
7908
|
-
|
|
7910
|
+
q();
|
|
7909
7911
|
});
|
|
7910
7912
|
};
|
|
7911
7913
|
if (y = 1, e.classList.add("is-loading"), C("loading"), r.src && r.complete) return void K();
|
|
@@ -7965,7 +7967,7 @@ const Qa = (e) => {
|
|
|
7965
7967
|
let Bu, zu = 0;
|
|
7966
7968
|
const Sr = (e, t = {}, n = {}) => {
|
|
7967
7969
|
zu++;
|
|
7968
|
-
let a, i, r, c, u, h = 0, p = Object.assign({}, Ts), m = Object.assign({}, Ts), y = {}, x = null, w = null, g = !1, b = !1, k = !1, _ = !1, $ = "height", M = 0, C = !0, T = 0, D = 0, Y = 0, R = 0,
|
|
7970
|
+
let a, i, r, c, u, h = 0, p = Object.assign({}, Ts), m = Object.assign({}, Ts), y = {}, x = null, w = null, g = !1, b = !1, k = !1, _ = !1, $ = "height", M = 0, C = !0, T = 0, D = 0, Y = 0, R = 0, q = "*", Z = [], V = [];
|
|
7969
7971
|
const j = /* @__PURE__ */ new Set();
|
|
7970
7972
|
let A = [], S = [], z = 0, O = 0, I = 0;
|
|
7971
7973
|
function B(ie, ...ge) {
|
|
@@ -7996,7 +7998,7 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
7996
7998
|
if (u = ze, h !== 0) {
|
|
7997
7999
|
let je = (ge = (ie = S[T]) === null || ie === void 0 ? void 0 : ie.slides[0]) === null || ge === void 0 ? void 0 : ge.index;
|
|
7998
8000
|
je === void 0 && (je = m.initialSlide), Ee.initialSlide = je, Ee.slides = [];
|
|
7999
|
-
for (const We of
|
|
8001
|
+
for (const We of Z) We.isVirtual && Ee.slides.push(We);
|
|
8000
8002
|
}
|
|
8001
8003
|
yt(), m = Ee, B("enabled") !== !1 && (h = 0, te("init"), function() {
|
|
8002
8004
|
for (const [je, We] of Object.entries(Object.assign(Object.assign({}, n), m.plugins || {}))) if (je && !y[je] && We instanceof Function) {
|
|
@@ -8014,15 +8016,15 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8014
8016
|
}(), function() {
|
|
8015
8017
|
if (!w) return;
|
|
8016
8018
|
const je = B("classes") || {};
|
|
8017
|
-
|
|
8019
|
+
Z = [], [...Zl(w, `.${je.slide}`)].forEach((We) => {
|
|
8018
8020
|
if (We.parentElement) {
|
|
8019
8021
|
const he = le(Object.assign({ el: We, isVirtual: !1 }, We.dataset || {}));
|
|
8020
|
-
te("createSlide", he),
|
|
8022
|
+
te("createSlide", he), Z.push(he);
|
|
8021
8023
|
}
|
|
8022
8024
|
}), ce();
|
|
8023
|
-
for (const We of
|
|
8025
|
+
for (const We of Z) te("addSlide", We);
|
|
8024
8026
|
W(B("slides"));
|
|
8025
|
-
for (const We of
|
|
8027
|
+
for (const We of Z) {
|
|
8026
8028
|
const he = We.el;
|
|
8027
8029
|
(he == null ? void 0 : he.parentElement) === w && (vt(he, m.classes.slide), vt(he, We.class), Ze(We), te("attachSlideEl", We));
|
|
8028
8030
|
}
|
|
@@ -8107,8 +8109,8 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8107
8109
|
function fe(ie = "*") {
|
|
8108
8110
|
var ge;
|
|
8109
8111
|
const Ee = [];
|
|
8110
|
-
for (const ze of
|
|
8111
|
-
c = void 0,
|
|
8112
|
+
for (const ze of Z) (ie === "*" || ze.class && ze.class.includes(ie) || ze.el && (!((ge = ze.el) === null || ge === void 0) && ge.classList.contains(ie))) && Ee.push(ze);
|
|
8113
|
+
c = void 0, q = ie, V = [...Ee];
|
|
8112
8114
|
}
|
|
8113
8115
|
function ne() {
|
|
8114
8116
|
if (!i) return;
|
|
@@ -8186,9 +8188,9 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8186
8188
|
const qe = le(Object.assign(Object.assign({}, ze), { isVirtual: !0 }));
|
|
8187
8189
|
qe.el || (qe.el = document.createElement("div")), te("createSlide", qe), Ee.push(qe);
|
|
8188
8190
|
}
|
|
8189
|
-
|
|
8191
|
+
Z.splice(ge === void 0 ? Z.length : ge, 0, ...Ee), ce();
|
|
8190
8192
|
for (const ze of Ee) te("addSlide", ze), Ce(ze);
|
|
8191
|
-
return fe(
|
|
8193
|
+
return fe(q), Ee;
|
|
8192
8194
|
}
|
|
8193
8195
|
function le(ie) {
|
|
8194
8196
|
return (Dt(ie) || ie instanceof HTMLElement) && (ie = { html: ie }), Object.assign({ index: -1, el: void 0, class: "", isVirtual: !0, dim: 0, pos: 0, offset: 0, html: "", src: "" }, ie);
|
|
@@ -8206,7 +8208,7 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8206
8208
|
if (ge.setAttribute("index", ie.index + ""), ge.parentElement !== w) {
|
|
8207
8209
|
let Ee;
|
|
8208
8210
|
vt(ge, m.classes.slide), vt(ge, ie.class), Ze(ie);
|
|
8209
|
-
for (const ze of
|
|
8211
|
+
for (const ze of Z) if (ze.index > ie.index) {
|
|
8210
8212
|
Ee = ze.el;
|
|
8211
8213
|
break;
|
|
8212
8214
|
}
|
|
@@ -8220,8 +8222,8 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8220
8222
|
ge && (ge.remove(), re(ge), te("detachSlideEl", ie));
|
|
8221
8223
|
}
|
|
8222
8224
|
function ce() {
|
|
8223
|
-
for (let ie = 0; ie <
|
|
8224
|
-
const ge =
|
|
8225
|
+
for (let ie = 0; ie < Z.length; ie++) {
|
|
8226
|
+
const ge = Z[ie], Ee = ge.el;
|
|
8225
8227
|
Ee && (ge.index !== ie && re(Ee), Ee.setAttribute("index", `${ie}`)), ge.index = ie;
|
|
8226
8228
|
}
|
|
8227
8229
|
}
|
|
@@ -8420,7 +8422,7 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8420
8422
|
}
|
|
8421
8423
|
w && je && (w.style.height = `${je}px`), [...Zl(w, `.${m.classes.slide}`)].forEach((We) => {
|
|
8422
8424
|
un(We, m.classes.isSelected, ge.has(We));
|
|
8423
|
-
const he =
|
|
8425
|
+
const he = Z[parseInt(We.getAttribute("index") || "-1")];
|
|
8424
8426
|
if (!he) return We.remove(), void re(We);
|
|
8425
8427
|
const Te = j.has(he.index), Pe = A.indexOf(he) > -1;
|
|
8426
8428
|
if (he.isVirtual && !Te && !Pe) return void $e(he);
|
|
@@ -8431,7 +8433,7 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8431
8433
|
}
|
|
8432
8434
|
function yt() {
|
|
8433
8435
|
x == null || x.removeEventListener("click", be), document.removeEventListener("mousemove", ae), j.clear(), r == null || r.disconnect(), r = void 0;
|
|
8434
|
-
for (const ie of
|
|
8436
|
+
for (const ie of Z) {
|
|
8435
8437
|
let ge = ie.el;
|
|
8436
8438
|
ge && Os(ge) && (ie.state = void 0, Me(ie), Fe(ie), ie.isVirtual ? ($e(ie), ie.el = void 0) : (re(ge), ge.style.transform = "", w && !w.contains(ge) && w.appendChild(ge)));
|
|
8437
8439
|
}
|
|
@@ -8450,9 +8452,9 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8450
8452
|
var Ee;
|
|
8451
8453
|
let ze = M;
|
|
8452
8454
|
const qe = T, je = Xe(), We = i != null && i.isRunning() ? i.getEndValues().pos : M, he = je && Math.floor((We - (((Ee = S[0]) === null || Ee === void 0 ? void 0 : Ee.pos) || 0)) / je) || 0;
|
|
8453
|
-
return W(ie, ge), fe(
|
|
8455
|
+
return W(ie, ge), fe(q), K(), i && je && (qe === T && (ze -= he * je), ze === D ? M = D : i.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: ze }).to({ pos: D }).start()), at(), ut;
|
|
8454
8456
|
}, canGoPrev: dt, canGoNext: Pt, destroy: function() {
|
|
8455
|
-
return te("destroy"), window.removeEventListener("resize", se), yt(), J.clear(), x = null, S = [],
|
|
8457
|
+
return te("destroy"), window.removeEventListener("resize", se), yt(), J.clear(), x = null, S = [], Z = [], m = Object.assign({}, Ts), y = {}, V = [], u = void 0, q = "*", h = 2, ut;
|
|
8456
8458
|
}, emit: te, filter: function(ie = "*") {
|
|
8457
8459
|
return fe(ie), K(), M = Lt(Y, M, R), at(), te("filter", ie), ut;
|
|
8458
8460
|
}, getContainer: function() {
|
|
@@ -8506,7 +8508,7 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8506
8508
|
}, getPlugins: function() {
|
|
8507
8509
|
return y;
|
|
8508
8510
|
}, getPosition: st, getSlides: function() {
|
|
8509
|
-
return
|
|
8511
|
+
return Z;
|
|
8510
8512
|
}, getState: function() {
|
|
8511
8513
|
return h;
|
|
8512
8514
|
}, getTotalSlideDim: Xe, getTween: function() {
|
|
@@ -8543,11 +8545,11 @@ const Sr = (e, t = {}, n = {}) => {
|
|
|
8543
8545
|
}, prev: function(ie = {}) {
|
|
8544
8546
|
return et(T - 1, ie), ut;
|
|
8545
8547
|
}, reInit: function(ie = {}, ge = {}) {
|
|
8546
|
-
return yt(), h = 0, u = void 0,
|
|
8548
|
+
return yt(), h = 0, u = void 0, q = "*", t = ie, p = ie, n = ge, se(), ut;
|
|
8547
8549
|
}, remove: function(ie) {
|
|
8548
|
-
ie === void 0 && (ie =
|
|
8549
|
-
const ge =
|
|
8550
|
-
return ge && (te("removeSlide", ge), ge.el && (re(ge.el), ge.el.remove(), ge.el = void 0),
|
|
8550
|
+
ie === void 0 && (ie = Z.length - 1);
|
|
8551
|
+
const ge = Z[ie];
|
|
8552
|
+
return ge && (te("removeSlide", ge), ge.el && (re(ge.el), ge.el.remove(), ge.el = void 0), Z.splice(ie, 1), fe(q), K(), M = Lt(Y, M, R), at()), ut;
|
|
8551
8553
|
}, setPosition: function(ie) {
|
|
8552
8554
|
M = ie, ne(), at();
|
|
8553
8555
|
}, showError: function(ie, ge) {
|
|
@@ -8898,15 +8900,15 @@ const Wu = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8898
8900
|
return !1;
|
|
8899
8901
|
}()) return;
|
|
8900
8902
|
(function() {
|
|
8901
|
-
var D, Y, R,
|
|
8903
|
+
var D, Y, R, q;
|
|
8902
8904
|
if (!e || (y(), !c("showProgressbar"))) return;
|
|
8903
|
-
let
|
|
8904
|
-
if (!
|
|
8905
|
-
const j = ((R = e.getPages()[0]) === null || R === void 0 ? void 0 : R.slides) || [], A = ((
|
|
8906
|
-
j.length === 1 && A.length === 1 && (
|
|
8905
|
+
let Z = c("progressbarParentEl");
|
|
8906
|
+
if (!Z && (!((D = e.getPlugins().Toolbar) === null || D === void 0) && D.isEnabled()) && (Z = e.getContainer()), !Z && ((Y = e.getPlugins().Toolbar) === null || Y === void 0 ? void 0 : Y.isEnabled()) !== !0) {
|
|
8907
|
+
const j = ((R = e.getPages()[0]) === null || R === void 0 ? void 0 : R.slides) || [], A = ((q = e.getPage()) === null || q === void 0 ? void 0 : q.slides) || [];
|
|
8908
|
+
j.length === 1 && A.length === 1 && (Z = A[0].el);
|
|
8907
8909
|
}
|
|
8908
|
-
if (
|
|
8909
|
-
r = document.createElement("div"), vt(r, "f-progressbar"),
|
|
8910
|
+
if (Z || (Z = e.getViewport()), !Z) return;
|
|
8911
|
+
r = document.createElement("div"), vt(r, "f-progressbar"), Z.prepend(r);
|
|
8910
8912
|
const V = c("timeout") || 1e3;
|
|
8911
8913
|
r.style.animationDuration = `${V}ms`;
|
|
8912
8914
|
})();
|
|
@@ -9080,7 +9082,7 @@ const Av = () => {
|
|
|
9080
9082
|
}
|
|
9081
9083
|
function M() {
|
|
9082
9084
|
var A;
|
|
9083
|
-
p() && (_(), e == null || e.on("addSlide", Y), e == null || e.on("removeSlide", R), e == null || e.on("click",
|
|
9085
|
+
p() && (_(), e == null || e.on("addSlide", Y), e == null || e.on("removeSlide", R), e == null || e.on("click", q), e == null || e.on("refresh", Z), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.on("start", C), V(!0));
|
|
9084
9086
|
}
|
|
9085
9087
|
function C() {
|
|
9086
9088
|
var A, S;
|
|
@@ -9117,12 +9119,12 @@ const Av = () => {
|
|
|
9117
9119
|
var z;
|
|
9118
9120
|
t ? t.remove(S.index) : a && ((z = a.querySelector(`[index="${S.index}"]`)) === null || z === void 0 || z.remove());
|
|
9119
9121
|
}
|
|
9120
|
-
function
|
|
9122
|
+
function q(A, S) {
|
|
9121
9123
|
var z;
|
|
9122
9124
|
const O = S.target;
|
|
9123
9125
|
S.defaultPrevented || ((z = O == null ? void 0 : O.dataset) === null || z === void 0 ? void 0 : z.thumbsAction) !== "toggle" || (n || (b(!0), k(), _()), n && n.classList.toggle("is-hidden"));
|
|
9124
9126
|
}
|
|
9125
|
-
function
|
|
9127
|
+
function Z() {
|
|
9126
9128
|
V();
|
|
9127
9129
|
}
|
|
9128
9130
|
function V(A = !1) {
|
|
@@ -9153,7 +9155,7 @@ const Av = () => {
|
|
|
9153
9155
|
Wl = S, e = A, e.on("ready", M), e.on("initSlides", $), e.on("change", D);
|
|
9154
9156
|
}, destroy: function() {
|
|
9155
9157
|
var A, S;
|
|
9156
|
-
y() && (e == null || e.emit("thumbs:destroy")), e == null || e.off("ready", M), e == null || e.off("initSlides", $), e == null || e.off("change", D), e == null || e.off("render", T), e == null || e.off("addSlide", Y), e == null || e.off("click",
|
|
9158
|
+
y() && (e == null || e.emit("thumbs:destroy")), e == null || e.off("ready", M), e == null || e.off("initSlides", $), e == null || e.off("change", D), e == null || e.off("render", T), e == null || e.off("addSlide", Y), e == null || e.off("click", q), e == null || e.off("refresh", Z), (A = e == null ? void 0 : e.getGestures()) === null || A === void 0 || A.off("start", C), (S = e == null ? void 0 : e.getContainer()) === null || S === void 0 || S.classList.remove("has-thumbs"), e = void 0, t == null || t.destroy(), t = void 0, n == null || n.remove(), n = void 0;
|
|
9157
9159
|
}, getCarousel: function() {
|
|
9158
9160
|
return t;
|
|
9159
9161
|
}, getContainer: function() {
|
|
@@ -9700,10 +9702,10 @@ const nd = "with-fancybox", zv = () => {
|
|
|
9700
9702
|
const le = b("sync");
|
|
9701
9703
|
a && le && ((W = le.getTween()) === null || W === void 0 || W.start()), G(te());
|
|
9702
9704
|
}
|
|
9703
|
-
function
|
|
9705
|
+
function q() {
|
|
9704
9706
|
a != null && a.canGoNext() ? fe() : de();
|
|
9705
9707
|
}
|
|
9706
|
-
function
|
|
9708
|
+
function Z(W, le) {
|
|
9707
9709
|
I(le), G(le);
|
|
9708
9710
|
}
|
|
9709
9711
|
function V() {
|
|
@@ -9967,7 +9969,7 @@ const nd = "with-fancybox", zv = () => {
|
|
|
9967
9969
|
} }, Fullscreen: { el: t }, Toolbar: { absolute: !0, items: { counter: { tpl: '<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>' } }, display: { left: ["counter"], right: ["toggleFull", "autoplay", "fullscreen", "thumbs", "close"] } }, Video: { autoplay: !0 }, Thumbs: { minCount: 2, Carousel: { classes: { container: "fancybox__thumbs" } } }, classes: { container: "fancybox__carousel", viewport: "fancybox__viewport", slide: "fancybox__slide" }, spinnerTpl: '<div class="f-spinner" data-fancybox-close></div>', dragFree: !1, slidesPerPage: 1, plugins: { Sync: R3, Arrows: Cv, Lazyload: I3, Zoomable: _v, Html: Ev, Video: $v, Autoplay: Mv, Fullscreen: Lv, Thumbs: Av, Toolbar: N3 } }, b("Carousel") || {}, { slides: y, enabled: !0, initialPage: b("startIndex") || 0, l10n: b("l10n") });
|
|
9968
9970
|
a = Sr(n, we), $("initCarousel", a), a.on("*", ($e, ce, ...K) => {
|
|
9969
9971
|
$(`Carousel.${ce}`, $e, ...K);
|
|
9970
|
-
}), a.on("attachSlideEl", C), a.on("detachSlideEl", T), a.on("contentReady",
|
|
9972
|
+
}), a.on("attachSlideEl", C), a.on("detachSlideEl", T), a.on("contentReady", Z), a.on("ready", R), a.on("change", Y), a.on("settle", q), a.on("thumbs:ready", V), a.on("thumbs:destroy", V), a.init();
|
|
9971
9973
|
}(), e && t) {
|
|
9972
9974
|
if (b("closeExisting")) for (const [we, $e] of ya.entries()) we !== p && $e.close();
|
|
9973
9975
|
b("fadeEffect") ? (setTimeout(() => {
|
|
@@ -10842,7 +10844,7 @@ const Ot = { Plugins: { Hash: M1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
10842
10844
|
"flex w-full items-center justify-between rounded-md p-2 px-1"
|
|
10843
10845
|
]),
|
|
10844
10846
|
disabled: b(R) || !e.multiple && w(R),
|
|
10845
|
-
onClick: (
|
|
10847
|
+
onClick: (q) => k(R)
|
|
10846
10848
|
}, [
|
|
10847
10849
|
o("div", f9, [
|
|
10848
10850
|
pe(ps, {
|
|
@@ -10859,9 +10861,9 @@ const Ot = { Plugins: { Hash: M1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
10859
10861
|
o("span", null, N(e.type && R.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : g(R) ? "Esse contato ainda não iniciou uma conversa pelo Webchat desta instância" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
|
|
10860
10862
|
]),
|
|
10861
10863
|
default: Ae(() => {
|
|
10862
|
-
var
|
|
10864
|
+
var q;
|
|
10863
10865
|
return [
|
|
10864
|
-
e.type && R.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((
|
|
10866
|
+
e.type && R.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((q = R.config) == null ? void 0 : q.webhooks) || g(R) ? (l(), f("svg", h9, [...T[7] || (T[7] = [
|
|
10865
10867
|
o("path", {
|
|
10866
10868
|
"fill-rule": "evenodd",
|
|
10867
10869
|
d: "M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z",
|
|
@@ -11159,28 +11161,28 @@ const Ot = { Plugins: { Hash: M1 }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
11159
11161
|
}
|
|
11160
11162
|
function g() {
|
|
11161
11163
|
if (!i.value) return;
|
|
11162
|
-
const C = window.innerWidth, T = window.innerHeight, D = n.viewportPadding, Y = w(), R = r.value ? r.value.getBoundingClientRect() : { width: 320, height: 200 },
|
|
11163
|
-
let
|
|
11164
|
+
const C = window.innerWidth, T = window.innerHeight, D = n.viewportPadding, Y = w(), R = r.value ? r.value.getBoundingClientRect() : { width: 320, height: 200 }, q = n.placement === "auto" ? ["bottom", "top", "right", "left"] : [n.placement];
|
|
11165
|
+
let Z = q[0], V = 0, j = 0;
|
|
11164
11166
|
const A = Y.left + Y.width / 2 - R.width / 2, S = Y.top + Y.height / 2 - R.height / 2, z = Y.left, O = Y.left + Y.width - R.width, I = Y.top, B = Y.top + Y.height - R.height;
|
|
11165
|
-
for (const G of
|
|
11167
|
+
for (const G of q) {
|
|
11166
11168
|
if (G === "bottom" && (j = Y.bottom + n.offset, V = n.align === "start" ? z : n.align === "end" ? O : A, j + R.height + D <= T)) {
|
|
11167
|
-
|
|
11169
|
+
Z = "bottom";
|
|
11168
11170
|
break;
|
|
11169
11171
|
}
|
|
11170
11172
|
if (G === "top" && (j = Y.top - R.height - n.offset, V = n.align === "start" ? z : n.align === "end" ? O : A, j >= D)) {
|
|
11171
|
-
|
|
11173
|
+
Z = "top";
|
|
11172
11174
|
break;
|
|
11173
11175
|
}
|
|
11174
11176
|
if (G === "right" && (V = Y.right + n.offset, j = n.align === "start" ? I : n.align === "end" ? B : S, V + R.width + D <= C)) {
|
|
11175
|
-
|
|
11177
|
+
Z = "right";
|
|
11176
11178
|
break;
|
|
11177
11179
|
}
|
|
11178
11180
|
if (G === "left" && (V = Y.left - R.width - n.offset, j = n.align === "start" ? I : n.align === "end" ? B : S, V >= D)) {
|
|
11179
|
-
|
|
11181
|
+
Z = "left";
|
|
11180
11182
|
break;
|
|
11181
11183
|
}
|
|
11182
11184
|
}
|
|
11183
|
-
V = Math.min(Math.max(D, V), C - R.width - D), j = Math.min(Math.max(D, j), T - R.height - D), c.value = { left: V, top: j, p:
|
|
11185
|
+
V = Math.min(Math.max(D, V), C - R.width - D), j = Math.min(Math.max(D, j), T - R.height - D), c.value = { left: V, top: j, p: Z };
|
|
11184
11186
|
}
|
|
11185
11187
|
function b() {
|
|
11186
11188
|
k();
|
|
@@ -12382,11 +12384,11 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
|
|
|
12382
12384
|
var x, w, g, b, k, _, $, M, C, T, D, Y, R;
|
|
12383
12385
|
let n = null;
|
|
12384
12386
|
if ((x = t == null ? void 0 : t.schedule) != null && x.time) {
|
|
12385
|
-
const
|
|
12386
|
-
|
|
12387
|
+
const q = t.schedule.time, Z = /^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(
|
|
12388
|
+
q
|
|
12387
12389
|
);
|
|
12388
|
-
if (
|
|
12389
|
-
const [, V, j, A, S = "00", z = "00"] =
|
|
12390
|
+
if (Z) {
|
|
12391
|
+
const [, V, j, A, S = "00", z = "00"] = Z;
|
|
12390
12392
|
n = new Date(
|
|
12391
12393
|
Number(V),
|
|
12392
12394
|
Number(j) - 1,
|
|
@@ -12397,35 +12399,35 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
|
|
|
12397
12399
|
0
|
|
12398
12400
|
);
|
|
12399
12401
|
} else {
|
|
12400
|
-
const V = typeof
|
|
12402
|
+
const V = typeof q == "string" && !q.includes("T") ? q.replace(" ", "T") : q;
|
|
12401
12403
|
n = new Date(V);
|
|
12402
12404
|
}
|
|
12403
12405
|
}
|
|
12404
|
-
const a = (
|
|
12405
|
-
var
|
|
12406
|
-
return n instanceof Date && !isNaN(n) && (
|
|
12407
|
-
...
|
|
12406
|
+
const a = (q) => {
|
|
12407
|
+
var Z, V, j, A;
|
|
12408
|
+
return n instanceof Date && !isNaN(n) && (q.date = n, q.time = cr(n)), ((V = (Z = t == null ? void 0 : t.message) == null ? void 0 : Z[0]) == null ? void 0 : V.content) != null && (q.content = t.message[0].content), q.raw = q.raw || { id: e }, q.raw.params = q.raw.params || {}, t != null && t.schedule && (q.raw.params.schedule = {
|
|
12409
|
+
...q.raw.params.schedule || {},
|
|
12408
12410
|
...t.schedule
|
|
12409
|
-
}), t != null && t.scheduled_by && (
|
|
12410
|
-
...
|
|
12411
|
+
}), t != null && t.scheduled_by && (q.raw.params.scheduled_by = t.scheduled_by), t.department && (q.raw.params.department = t.department), t != null && t.message && (q.raw.params.message = t.message), Object.prototype.hasOwnProperty.call(t || {}, "chat_id") && (q.chatId = t.chat_id ?? q.chatId ?? ""), t != null && t.entity && (q.raw.params.entity = {
|
|
12412
|
+
...q.raw.params.entity || {},
|
|
12411
12413
|
...t.entity
|
|
12412
|
-
}, Object.prototype.hasOwnProperty.call(t.entity, "name") && (
|
|
12413
|
-
...
|
|
12414
|
+
}, Object.prototype.hasOwnProperty.call(t.entity, "name") && (q.contactName = t.entity.name ?? q.contactName ?? "Cliente"), Object.prototype.hasOwnProperty.call(t.entity, "photo") && (q.contactPhoto = t.entity.photo ?? q.contactPhoto ?? null, t.entity.photo && (q.photo = t.entity.photo))), t != null && t.info && (q.raw.params.info = {
|
|
12415
|
+
...q.raw.params.info || {},
|
|
12414
12416
|
...t.info
|
|
12415
|
-
}, (j = t.info) != null && j.department && Object.prototype.hasOwnProperty.call(t.info.department, "name") && (
|
|
12417
|
+
}, (j = t.info) != null && j.department && Object.prototype.hasOwnProperty.call(t.info.department, "name") && (q.departmentName = t.info.department.name ?? q.departmentName), (A = t.info) != null && A.instance && (Object.prototype.hasOwnProperty.call(t.info.instance, "name") && (q.instanceName = t.info.instance.name ?? q.instanceName), Object.prototype.hasOwnProperty.call(
|
|
12416
12418
|
t.info.instance,
|
|
12417
12419
|
"last_instance_status"
|
|
12418
|
-
) && (
|
|
12420
|
+
) && (q.instanceStatus = t.info.instance.last_instance_status ?? q.instanceStatus))), Object.prototype.hasOwnProperty.call(t || {}, "title") ? q.title = t.title ?? q.title ?? lr(q.function) : q.title = q.title || lr(q.function), Object.prototype.hasOwnProperty.call(t || {}, "function") ? (q.function = t.function ?? q.function ?? "scheduled_messages", q.type = t.function ?? q.type ?? "scheduled_messages") : (q.function = q.function || "scheduled_messages", q.type = q.type || "scheduled_messages"), q;
|
|
12419
12421
|
}, i = this.findEventById(e);
|
|
12420
12422
|
if (!i) {
|
|
12421
|
-
const
|
|
12423
|
+
const q = n instanceof Date && !isNaN(n) ? n : (() => {
|
|
12422
12424
|
var O;
|
|
12423
12425
|
const S = (O = t == null ? void 0 : t.schedule) == null ? void 0 : O.time, z = typeof S == "string" && !S.includes("T") ? S.replace(" ", "T") : S;
|
|
12424
12426
|
return ($o == null ? void 0 : $o(z)) || (z ? new Date(z) : /* @__PURE__ */ new Date());
|
|
12425
|
-
})(),
|
|
12427
|
+
})(), Z = ((t == null ? void 0 : t.function) || "scheduled_messages") === "attendant_reminder", V = a({
|
|
12426
12428
|
id: e,
|
|
12427
|
-
date:
|
|
12428
|
-
time: cr(
|
|
12429
|
+
date: q,
|
|
12430
|
+
time: cr(q),
|
|
12429
12431
|
title: (t == null ? void 0 : t.title) || lr((t == null ? void 0 : t.function) || "scheduled_messages"),
|
|
12430
12432
|
type: (t == null ? void 0 : t.function) || "scheduled_messages",
|
|
12431
12433
|
status: (t == null ? void 0 : t.status) || "true",
|
|
@@ -12433,9 +12435,9 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
|
|
|
12433
12435
|
function: (t == null ? void 0 : t.function) || "scheduled_messages",
|
|
12434
12436
|
content: ((g = (w = t == null ? void 0 : t.message) == null ? void 0 : w[0]) == null ? void 0 : g.content) ?? "",
|
|
12435
12437
|
raw: { id: e, params: t },
|
|
12436
|
-
contactName:
|
|
12438
|
+
contactName: Z ? "" : ((b = t == null ? void 0 : t.entity) == null ? void 0 : b.name) ?? "Cliente",
|
|
12437
12439
|
contactPhoto: ((k = t == null ? void 0 : t.entity) == null ? void 0 : k.photo) ?? null,
|
|
12438
|
-
departmentName:
|
|
12440
|
+
departmentName: Z ? "" : (($ = (_ = t == null ? void 0 : t.info) == null ? void 0 : _.department) == null ? void 0 : $.name) ?? null,
|
|
12439
12441
|
departmentId: ((C = (M = t == null ? void 0 : t.info) == null ? void 0 : M.department) == null ? void 0 : C.id) ?? null,
|
|
12440
12442
|
instanceName: ((D = (T = t == null ? void 0 : t.info) == null ? void 0 : T.instance) == null ? void 0 : D.name) ?? null,
|
|
12441
12443
|
instanceStatus: ((R = (Y = t == null ? void 0 : t.info) == null ? void 0 : Y.instance) == null ? void 0 : R.last_instance_status) ?? null,
|
|
@@ -12449,14 +12451,14 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
|
|
|
12449
12451
|
}
|
|
12450
12452
|
const { ym: r, idx: c } = i, u = this.monthCache[r] || [], h = { ...u[c] }, p = a({ ...h }), m = p.date instanceof Date ? p.date : h.date, y = Bs(m);
|
|
12451
12453
|
if (y === r) {
|
|
12452
|
-
const
|
|
12453
|
-
|
|
12454
|
+
const q = [...u];
|
|
12455
|
+
q.splice(c, 1, p), q.sort((Z, V) => Z.date - V.date), this._setMonth(r, q);
|
|
12454
12456
|
} else {
|
|
12455
|
-
const
|
|
12456
|
-
|
|
12457
|
+
const q = u.slice(0, c).concat(u.slice(c + 1)), Z = this.monthCache[y] ? [...this.monthCache[y], p] : [p];
|
|
12458
|
+
Z.sort((V, j) => V.date - j.date), this.monthCache = {
|
|
12457
12459
|
...this.monthCache,
|
|
12458
|
-
[r]:
|
|
12459
|
-
[y]:
|
|
12460
|
+
[r]: q,
|
|
12461
|
+
[y]: Z
|
|
12460
12462
|
};
|
|
12461
12463
|
}
|
|
12462
12464
|
},
|
|
@@ -12764,7 +12766,7 @@ const Ta = /* @__PURE__ */ new Map(), X3 = ca("scheduled", {
|
|
|
12764
12766
|
o("button", {
|
|
12765
12767
|
disabled: r.value,
|
|
12766
12768
|
class: "group relative inline-flex items-center justify-center w-full overflow-hidden rounded bg-red-500 px-5 py-1 text-xs text-white transition-all duration-300 ease-out hover:bg-gradient-to-r hover:from-red-500 hover:to-red-400 hover:ring-2 hover:ring-red-400 hover:ring-offset-2",
|
|
12767
|
-
onClick: [Y, (
|
|
12769
|
+
onClick: [Y, (q) => c(g.id)]
|
|
12768
12770
|
}, [
|
|
12769
12771
|
y[11] || (y[11] = o("span", { class: "ease absolute right-0 -mt-12 h-32 w-8 translate-x-12 rotate-12 bg-white opacity-10 transition-all duration-1000 group-hover:-translate-x-40" }, null, -1)),
|
|
12770
12772
|
r.value ? (l(), f("div", Fy)) : (l(), f("span", Oy, "Apagar lembrete"))
|
|
@@ -14543,29 +14545,29 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14543
14545
|
var V, j, A;
|
|
14544
14546
|
if (!R) return;
|
|
14545
14547
|
await bt();
|
|
14546
|
-
const
|
|
14547
|
-
c.onlyMine = !!
|
|
14548
|
-
const
|
|
14549
|
-
c.status =
|
|
14548
|
+
const q = (V = r.value) != null && V.id ? String(r.value.id) : null;
|
|
14549
|
+
c.onlyMine = !!q && String(((j = n.filters) == null ? void 0 : j.scheduled_by) ?? "") === q;
|
|
14550
|
+
const Z = (A = n.filters) == null ? void 0 : A.status;
|
|
14551
|
+
c.status = Z === !0 || Z === !1 ? Z : null, k();
|
|
14550
14552
|
},
|
|
14551
14553
|
{ immediate: !1 }
|
|
14552
14554
|
);
|
|
14553
|
-
function u(R,
|
|
14555
|
+
function u(R, q) {
|
|
14554
14556
|
if (!R) return {};
|
|
14555
|
-
const { [
|
|
14557
|
+
const { [q]: Z, ...V } = R;
|
|
14556
14558
|
return V;
|
|
14557
14559
|
}
|
|
14558
14560
|
function h(R) {
|
|
14559
|
-
var
|
|
14561
|
+
var Z;
|
|
14560
14562
|
c.onlyMine = !!R.target.checked;
|
|
14561
|
-
const
|
|
14562
|
-
c.onlyMine &&
|
|
14563
|
+
const q = (Z = r.value) != null && Z.id ? String(r.value.id) : null;
|
|
14564
|
+
c.onlyMine && q ? a("update:filters", { ...n.filters, scheduled_by: q }) : a("update:filters", u(n.filters, "scheduled_by"));
|
|
14563
14565
|
}
|
|
14564
14566
|
function p(R) {
|
|
14565
14567
|
if (c.status === R) {
|
|
14566
14568
|
c.status = null;
|
|
14567
|
-
const
|
|
14568
|
-
a("update:filters",
|
|
14569
|
+
const q = u(n.filters, "status");
|
|
14570
|
+
a("update:filters", q);
|
|
14569
14571
|
} else
|
|
14570
14572
|
c.status = R, a("update:filters", { ...n.filters, status: R });
|
|
14571
14573
|
}
|
|
@@ -14577,24 +14579,24 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14577
14579
|
function w() {
|
|
14578
14580
|
const R = n.anchorEl instanceof Element ? n.anchorEl : null;
|
|
14579
14581
|
if (R != null && R.getBoundingClientRect) return R.getBoundingClientRect();
|
|
14580
|
-
const
|
|
14581
|
-
return { left:
|
|
14582
|
+
const q = window.innerWidth / 2, Z = window.innerHeight / 3;
|
|
14583
|
+
return { left: q, right: q, top: Z, bottom: Z, width: 0, height: 0 };
|
|
14582
14584
|
}
|
|
14583
|
-
function g(R,
|
|
14585
|
+
function g(R, q, Z, V) {
|
|
14584
14586
|
return {
|
|
14585
|
-
left: Math.max(8, Math.min(R, window.innerWidth -
|
|
14586
|
-
top: Math.max(8, Math.min(
|
|
14587
|
+
left: Math.max(8, Math.min(R, window.innerWidth - Z - 8)),
|
|
14588
|
+
top: Math.max(8, Math.min(q, window.innerHeight - V - 8))
|
|
14587
14589
|
};
|
|
14588
14590
|
}
|
|
14589
14591
|
function b() {
|
|
14590
|
-
const R = w(),
|
|
14592
|
+
const R = w(), q = m.value, Z = (q == null ? void 0 : q.offsetWidth) ?? 300, V = (q == null ? void 0 : q.offsetHeight) ?? 220;
|
|
14591
14593
|
let j = R.bottom + n.offset, A;
|
|
14592
|
-
if (n.align === "center" ? A = R.left + R.width / 2 -
|
|
14594
|
+
if (n.align === "center" ? A = R.left + R.width / 2 - Z / 2 : n.align === "end" ? A = R.right - Z : A = R.left, j + V > window.innerHeight - 4) {
|
|
14593
14595
|
const z = R.top - V - n.offset;
|
|
14594
14596
|
z >= 4 ? (j = z, y.value.placed = "top") : y.value.placed = "bottom";
|
|
14595
14597
|
} else
|
|
14596
14598
|
y.value.placed = "bottom";
|
|
14597
|
-
const S = g(A, j,
|
|
14599
|
+
const S = g(A, j, Z, V);
|
|
14598
14600
|
y.value = { left: S.left, top: S.top, placed: y.value.placed };
|
|
14599
14601
|
}
|
|
14600
14602
|
function k() {
|
|
@@ -14604,32 +14606,32 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14604
14606
|
function C() {
|
|
14605
14607
|
T(), M = [window];
|
|
14606
14608
|
const R = n.anchorEl instanceof Element ? n.anchorEl : null;
|
|
14607
|
-
let
|
|
14608
|
-
for (;
|
|
14609
|
-
const
|
|
14610
|
-
/(auto|scroll)/.test(
|
|
14609
|
+
let q = R == null ? void 0 : R.parentElement;
|
|
14610
|
+
for (; q && q !== document.body; ) {
|
|
14611
|
+
const Z = getComputedStyle(q);
|
|
14612
|
+
/(auto|scroll)/.test(Z.overflow + Z.overflowY + Z.overflowX) && M.push(q), q = q.parentElement;
|
|
14611
14613
|
}
|
|
14612
14614
|
M.forEach(
|
|
14613
|
-
(
|
|
14615
|
+
(Z) => Z.addEventListener("scroll", k, { passive: !0 })
|
|
14614
14616
|
);
|
|
14615
14617
|
}
|
|
14616
14618
|
function T() {
|
|
14617
14619
|
M.forEach((R) => {
|
|
14618
|
-
var
|
|
14619
|
-
return (
|
|
14620
|
+
var q;
|
|
14621
|
+
return (q = R.removeEventListener) == null ? void 0 : q.call(R, "scroll", k);
|
|
14620
14622
|
}), M = [];
|
|
14621
14623
|
}
|
|
14622
14624
|
Ke(
|
|
14623
14625
|
() => n.open,
|
|
14624
14626
|
async (R) => {
|
|
14625
|
-
var
|
|
14627
|
+
var Z, V, j, A;
|
|
14626
14628
|
if (!R) {
|
|
14627
|
-
T(), (
|
|
14629
|
+
T(), (Z = _ == null ? void 0 : _.disconnect) == null || Z.call(_), (V = $ == null ? void 0 : $.disconnect) == null || V.call($);
|
|
14628
14630
|
return;
|
|
14629
14631
|
}
|
|
14630
14632
|
await bt(), k(), C(), (j = _ == null ? void 0 : _.disconnect) == null || j.call(_), _ = new ResizeObserver(k), _.observe(document.body), (A = $ == null ? void 0 : $.disconnect) == null || A.call($);
|
|
14631
|
-
const
|
|
14632
|
-
|
|
14633
|
+
const q = n.anchorEl instanceof Element ? n.anchorEl : null;
|
|
14634
|
+
q && ($ = new ResizeObserver(k), $.observe(q)), window.addEventListener("resize", k);
|
|
14633
14635
|
}
|
|
14634
14636
|
), Ke(
|
|
14635
14637
|
() => n.anchorEl,
|
|
@@ -14642,17 +14644,17 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14642
14644
|
}
|
|
14643
14645
|
function Y(R) {
|
|
14644
14646
|
if (!n.open) return;
|
|
14645
|
-
const
|
|
14646
|
-
if (
|
|
14647
|
+
const q = R.target, Z = m.value;
|
|
14648
|
+
if (Z && Z.contains(q)) return;
|
|
14647
14649
|
const V = n.anchorEl instanceof Element ? n.anchorEl : null;
|
|
14648
|
-
V && V.contains && V.contains(
|
|
14650
|
+
V && V.contains && V.contains(q) || a("close");
|
|
14649
14651
|
}
|
|
14650
14652
|
return gt(() => {
|
|
14651
14653
|
document.addEventListener("pointerdown", Y, !0), window.addEventListener("keydown", D);
|
|
14652
14654
|
}), Bt(() => {
|
|
14653
|
-
var R,
|
|
14654
|
-
document.removeEventListener("pointerdown", Y, !0), window.removeEventListener("keydown", D), T(), (R = _ == null ? void 0 : _.disconnect) == null || R.call(_), (
|
|
14655
|
-
}), (R,
|
|
14655
|
+
var R, q;
|
|
14656
|
+
document.removeEventListener("pointerdown", Y, !0), window.removeEventListener("keydown", D), T(), (R = _ == null ? void 0 : _.disconnect) == null || R.call(_), (q = $ == null ? void 0 : $.disconnect) == null || q.call($);
|
|
14657
|
+
}), (R, q) => (l(), _e(Mt, {
|
|
14656
14658
|
name: "cpk-layer",
|
|
14657
14659
|
appear: ""
|
|
14658
14660
|
}, {
|
|
@@ -14660,7 +14662,7 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14660
14662
|
e.open ? (l(), f("div", {
|
|
14661
14663
|
key: 0,
|
|
14662
14664
|
class: "cpk-popover-layer",
|
|
14663
|
-
onMousedown:
|
|
14665
|
+
onMousedown: q[4] || (q[4] = ct((Z) => R.$emit("close"), ["self"]))
|
|
14664
14666
|
}, [
|
|
14665
14667
|
pe(Mt, {
|
|
14666
14668
|
name: "cpk-card",
|
|
@@ -14677,15 +14679,15 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14677
14679
|
"aria-label": "Filtro de eventos"
|
|
14678
14680
|
}, [
|
|
14679
14681
|
o("div", Ew, [
|
|
14680
|
-
|
|
14682
|
+
q[5] || (q[5] = o("div", {
|
|
14681
14683
|
class: "cpk-popover__icon",
|
|
14682
14684
|
"aria-hidden": "true"
|
|
14683
14685
|
}, "⚙", -1)),
|
|
14684
|
-
|
|
14686
|
+
q[6] || (q[6] = o("h3", { class: "cpk-popover__title" }, "Filtros", -1)),
|
|
14685
14687
|
o("button", {
|
|
14686
14688
|
class: "cpk-popover__close",
|
|
14687
14689
|
type: "button",
|
|
14688
|
-
onClick:
|
|
14690
|
+
onClick: q[0] || (q[0] = (Z) => R.$emit("close")),
|
|
14689
14691
|
"aria-label": "Fechar"
|
|
14690
14692
|
}, " × ")
|
|
14691
14693
|
]),
|
|
@@ -14695,13 +14697,13 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14695
14697
|
class: "switch",
|
|
14696
14698
|
type: "checkbox",
|
|
14697
14699
|
checked: c.onlyMine,
|
|
14698
|
-
onChange:
|
|
14700
|
+
onChange: q[1] || (q[1] = (Z) => h(Z)),
|
|
14699
14701
|
"aria-label": "Exibir somente meus eventos"
|
|
14700
14702
|
}, null, 40, Pw),
|
|
14701
|
-
|
|
14703
|
+
q[7] || (q[7] = o("span", { class: "label-cpk" }, "Exibir somente meus eventos", -1))
|
|
14702
14704
|
]),
|
|
14703
14705
|
o("div", Tw, [
|
|
14704
|
-
|
|
14706
|
+
q[9] || (q[9] = o("span", {
|
|
14705
14707
|
class: "status-icon",
|
|
14706
14708
|
"aria-hidden": "true"
|
|
14707
14709
|
}, [
|
|
@@ -14722,7 +14724,7 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14722
14724
|
])
|
|
14723
14725
|
], -1)),
|
|
14724
14726
|
o("div", Bw, [
|
|
14725
|
-
|
|
14727
|
+
q[8] || (q[8] = o("div", { class: "label-cpk" }, [
|
|
14726
14728
|
Ie(" Status "),
|
|
14727
14729
|
o("span", {
|
|
14728
14730
|
class: "sched-pop",
|
|
@@ -14765,13 +14767,13 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14765
14767
|
o("button", {
|
|
14766
14768
|
type: "button",
|
|
14767
14769
|
class: U(["cyber-button cyber-button--xs btn-ghost", c.status === !0 ? "is-active" : ""]),
|
|
14768
|
-
onClick:
|
|
14770
|
+
onClick: q[2] || (q[2] = (Z) => p(!0)),
|
|
14769
14771
|
"aria-pressed": "state.status === true"
|
|
14770
14772
|
}, " Ativos ", 2),
|
|
14771
14773
|
o("button", {
|
|
14772
14774
|
type: "button",
|
|
14773
14775
|
class: U(["cyber-button cyber-button--xs btn-ghost", c.status === !1 ? "is-active" : ""]),
|
|
14774
|
-
onClick:
|
|
14776
|
+
onClick: q[3] || (q[3] = (Z) => p(!1)),
|
|
14775
14777
|
"aria-pressed": "state.status === false"
|
|
14776
14778
|
}, " Executados ", 2)
|
|
14777
14779
|
])
|
|
@@ -14869,17 +14871,17 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
14869
14871
|
function R(he) {
|
|
14870
14872
|
return new Date(he.getFullYear(), he.getMonth(), 1).getDay();
|
|
14871
14873
|
}
|
|
14872
|
-
function
|
|
14874
|
+
function q(he, Te) {
|
|
14873
14875
|
return he.getFullYear() === Te.getFullYear() && he.getMonth() === Te.getMonth();
|
|
14874
14876
|
}
|
|
14875
|
-
function
|
|
14877
|
+
function Z(he) {
|
|
14876
14878
|
return Yl(he, r);
|
|
14877
14879
|
}
|
|
14878
14880
|
function V(he) {
|
|
14879
14881
|
return Yl(he, u.value);
|
|
14880
14882
|
}
|
|
14881
14883
|
function j(he) {
|
|
14882
|
-
u.value = new Date(he.getFullYear(), he.getMonth(), he.getDate()),
|
|
14884
|
+
u.value = new Date(he.getFullYear(), he.getMonth(), he.getDate()), q(he, c.value) || (c.value = new Date(he.getFullYear(), he.getMonth(), 1));
|
|
14883
14885
|
}
|
|
14884
14886
|
function A() {
|
|
14885
14887
|
c.value = new Date(
|
|
@@ -15160,9 +15162,9 @@ const zb = { class: "itemc-head" }, Fb = {
|
|
|
15160
15162
|
"month-days": xe.value,
|
|
15161
15163
|
"view-date": c.value,
|
|
15162
15164
|
"is-compact": dt.value,
|
|
15163
|
-
"is-same-month-fn":
|
|
15165
|
+
"is-same-month-fn": q,
|
|
15164
15166
|
"is-selected-day-fn": V,
|
|
15165
|
-
"is-today-fn":
|
|
15167
|
+
"is-today-fn": Z,
|
|
15166
15168
|
"select-day-fn": j,
|
|
15167
15169
|
"events-by-day-fn": Se,
|
|
15168
15170
|
"day-event-count-fn": Fe,
|
|
@@ -15770,12 +15772,12 @@ function F0(e, t) {
|
|
|
15770
15772
|
bottom: Y.bottom - M.bottom + b.bottom,
|
|
15771
15773
|
left: M.left - Y.left + b.left,
|
|
15772
15774
|
right: Y.right - M.right + b.right
|
|
15773
|
-
},
|
|
15774
|
-
if (m === xo &&
|
|
15775
|
-
var
|
|
15775
|
+
}, q = e.modifiersData.offset;
|
|
15776
|
+
if (m === xo && q) {
|
|
15777
|
+
var Z = q[i];
|
|
15776
15778
|
Object.keys(R).forEach(function(V) {
|
|
15777
15779
|
var j = [Wn, Gn].indexOf(V) >= 0 ? 1 : -1, A = [Fn, Gn].indexOf(V) >= 0 ? "y" : "x";
|
|
15778
|
-
R[V] +=
|
|
15780
|
+
R[V] += Z[A] * j;
|
|
15779
15781
|
});
|
|
15780
15782
|
}
|
|
15781
15783
|
return R;
|
|
@@ -15833,19 +15835,19 @@ function Sk(e) {
|
|
|
15833
15835
|
m.rects = {
|
|
15834
15836
|
reference: tk($, Qo(M), m.options.strategy === "fixed"),
|
|
15835
15837
|
popper: T0(M)
|
|
15836
|
-
}, m.reset = !1, m.placement = m.options.placement, m.orderedModifiers.forEach(function(
|
|
15837
|
-
return m.modifiersData[
|
|
15838
|
+
}, m.reset = !1, m.placement = m.options.placement, m.orderedModifiers.forEach(function(Z) {
|
|
15839
|
+
return m.modifiersData[Z.name] = Object.assign({}, Z.data);
|
|
15838
15840
|
});
|
|
15839
15841
|
for (var C = 0; C < m.orderedModifiers.length; C++) {
|
|
15840
15842
|
if (m.reset === !0) {
|
|
15841
15843
|
m.reset = !1, C = -1;
|
|
15842
15844
|
continue;
|
|
15843
15845
|
}
|
|
15844
|
-
var T = m.orderedModifiers[C], D = T.fn, Y = T.options, R = Y === void 0 ? {} : Y,
|
|
15846
|
+
var T = m.orderedModifiers[C], D = T.fn, Y = T.options, R = Y === void 0 ? {} : Y, q = T.name;
|
|
15845
15847
|
typeof D == "function" && (m = D({
|
|
15846
15848
|
state: m,
|
|
15847
15849
|
options: R,
|
|
15848
|
-
name:
|
|
15850
|
+
name: q,
|
|
15849
15851
|
instance: w
|
|
15850
15852
|
}) || m);
|
|
15851
15853
|
}
|
|
@@ -15950,8 +15952,8 @@ function gd(e) {
|
|
|
15950
15952
|
position: u
|
|
15951
15953
|
}, p && Lk);
|
|
15952
15954
|
if (h) {
|
|
15953
|
-
var
|
|
15954
|
-
return Object.assign({}, R, (
|
|
15955
|
+
var q;
|
|
15956
|
+
return Object.assign({}, R, (q = {}, q[M] = _ ? "0" : "", q[$] = k ? "0" : "", q.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + w + "px, " + b + "px)" : "translate3d(" + w + "px, " + b + "px, 0)", q));
|
|
15955
15957
|
}
|
|
15956
15958
|
return Object.assign({}, R, (t = {}, t[M] = _ ? b + "px" : "", t[$] = k ? w + "px" : "", t.transform = "", t));
|
|
15957
15959
|
}
|
|
@@ -16040,9 +16042,9 @@ function Hk(e) {
|
|
|
16040
16042
|
rootBoundary: p,
|
|
16041
16043
|
padding: y,
|
|
16042
16044
|
altBoundary: m
|
|
16043
|
-
}), _ = ia(t.placement), $ = Us(t.placement), M = !$, C = z0(_), T = Ik(C), D = t.modifiersData.popperOffsets, Y = t.rects.reference, R = t.rects.popper,
|
|
16045
|
+
}), _ = ia(t.placement), $ = Us(t.placement), M = !$, C = z0(_), T = Ik(C), D = t.modifiersData.popperOffsets, Y = t.rects.reference, R = t.rects.popper, q = typeof b == "function" ? b(Object.assign({}, t.rects, {
|
|
16044
16046
|
placement: t.placement
|
|
16045
|
-
})) : b,
|
|
16047
|
+
})) : b, Z = {
|
|
16046
16048
|
x: 0,
|
|
16047
16049
|
y: 0
|
|
16048
16050
|
};
|
|
@@ -16051,17 +16053,17 @@ function Hk(e) {
|
|
|
16051
16053
|
var V = C === "y" ? Fn : On, j = C === "y" ? Gn : Wn, A = C === "y" ? "height" : "width", S = D[C], z = D[C] + k[V], O = D[C] - k[j], I = w ? -R[A] / 2 : 0, B = $ === Ws ? Y[A] : R[A], G = $ === Ws ? -R[A] : -Y[A], J = t.elements.arrow, te = w && J ? T0(J) : {
|
|
16052
16054
|
width: 0,
|
|
16053
16055
|
height: 0
|
|
16054
|
-
}, se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : l4(), ae = se[V], ee = se[j], fe = ur(0, Y[A], te[A]), ne = M ? Y[A] / 2 - I - fe - ae -
|
|
16056
|
+
}, se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : l4(), ae = se[V], ee = se[j], fe = ur(0, Y[A], te[A]), ne = M ? Y[A] / 2 - I - fe - ae - q : B - fe - ae - q, ve = M ? -Y[A] / 2 + I + fe + ee + q : G + fe + ee + q, de = t.elements.arrow && Qo(t.elements.arrow), xe = de ? C === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, ke = t.modifiersData.offset ? t.modifiersData.offset[t.placement][C] : 0, Re = D[C] + ne - ke - xe, Xe = D[C] + ve - ke;
|
|
16055
16057
|
if (r) {
|
|
16056
16058
|
var Be = ur(w ? Ho(z, Re) : z, S, w ? Ha(O, Xe) : O);
|
|
16057
|
-
D[C] = Be,
|
|
16059
|
+
D[C] = Be, Z[C] = Be - S;
|
|
16058
16060
|
}
|
|
16059
16061
|
if (u) {
|
|
16060
16062
|
var W = C === "x" ? Fn : On, le = C === "x" ? Gn : Wn, Ce = D[T], we = Ce + k[W], $e = Ce - k[le], ce = ur(w ? Ho(we, Re) : we, Ce, w ? Ha($e, Xe) : $e);
|
|
16061
|
-
D[T] = ce,
|
|
16063
|
+
D[T] = ce, Z[T] = ce - Ce;
|
|
16062
16064
|
}
|
|
16063
16065
|
}
|
|
16064
|
-
t.modifiersData[a] =
|
|
16066
|
+
t.modifiersData[a] = Z;
|
|
16065
16067
|
}
|
|
16066
16068
|
}
|
|
16067
16069
|
var Nk = {
|
|
@@ -16128,8 +16130,8 @@ function Gk(e) {
|
|
|
16128
16130
|
flipVariations: g,
|
|
16129
16131
|
allowedAutoPlacements: b
|
|
16130
16132
|
}) : fe);
|
|
16131
|
-
}, []), T = t.rects.reference, D = t.rects.popper, Y = /* @__PURE__ */ new Map(), R = !0,
|
|
16132
|
-
var V = C[
|
|
16133
|
+
}, []), T = t.rects.reference, D = t.rects.popper, Y = /* @__PURE__ */ new Map(), R = !0, q = C[0], Z = 0; Z < C.length; Z++) {
|
|
16134
|
+
var V = C[Z], j = ia(V), A = Us(V) === Ws, S = [Fn, Gn].indexOf(j) >= 0, z = S ? "width" : "height", O = F0(t, {
|
|
16133
16135
|
placement: V,
|
|
16134
16136
|
boundary: m,
|
|
16135
16137
|
rootBoundary: y,
|
|
@@ -16141,7 +16143,7 @@ function Gk(e) {
|
|
|
16141
16143
|
if (r && G.push(O[j] <= 0), u && G.push(O[I] <= 0, O[B] <= 0), G.every(function(ee) {
|
|
16142
16144
|
return ee;
|
|
16143
16145
|
})) {
|
|
16144
|
-
|
|
16146
|
+
q = V, R = !1;
|
|
16145
16147
|
break;
|
|
16146
16148
|
}
|
|
16147
16149
|
Y.set(V, G);
|
|
@@ -16156,12 +16158,12 @@ function Gk(e) {
|
|
|
16156
16158
|
});
|
|
16157
16159
|
});
|
|
16158
16160
|
if (ne)
|
|
16159
|
-
return
|
|
16161
|
+
return q = ne, "break";
|
|
16160
16162
|
}, se = J; se > 0; se--) {
|
|
16161
16163
|
var ae = te(se);
|
|
16162
16164
|
if (ae === "break") break;
|
|
16163
16165
|
}
|
|
16164
|
-
t.placement !==
|
|
16166
|
+
t.placement !== q && (t.modifiersData[a]._skip = !0, t.placement = q, t.reset = !0);
|
|
16165
16167
|
}
|
|
16166
16168
|
}
|
|
16167
16169
|
var Wk = {
|
|
@@ -16513,8 +16515,8 @@ var f4 = {
|
|
|
16513
16515
|
triggerNode: c
|
|
16514
16516
|
}), {
|
|
16515
16517
|
hasContent: Y
|
|
16516
|
-
} = Xw(a, r, m), R = P(() => M.value !== null),
|
|
16517
|
-
|
|
16518
|
+
} = Xw(a, r, m), R = P(() => M.value !== null), q = P(() => x.value || !Y.value), Z = P(() => C.value && !q.value), V = P(() => !y.value && !R.value), j = P(() => w.value ? `border: ${b.value}px solid transparent; margin: -${b.value}px;` : null), A = Kl.debounce(T, _.value), S = Kl.debounce(D, p.value), z = async () => {
|
|
16519
|
+
q.value || R.value || (S.clear(), A());
|
|
16518
16520
|
}, O = async () => {
|
|
16519
16521
|
R.value || (A.clear(), S());
|
|
16520
16522
|
}, I = () => {
|
|
@@ -16559,7 +16561,7 @@ var f4 = {
|
|
|
16559
16561
|
isOpen: u.value
|
|
16560
16562
|
}, () => [Ie(N(oe(m)), 1)]), e.arrow ? (l(), _e(o_, {
|
|
16561
16563
|
key: 0
|
|
16562
|
-
})) : F("", !0)], 512), [[Zt, oe(
|
|
16564
|
+
})) : F("", !0)], 512), [[Zt, oe(Z)]])]),
|
|
16563
16565
|
_: 3
|
|
16564
16566
|
})], 36));
|
|
16565
16567
|
}
|
|
@@ -16925,8 +16927,8 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
16925
16927
|
const O = Number.isFinite(Number(z.progress_pct)) ? Number(z.progress_pct) : k.value / (_.value || 1) * 100;
|
|
16926
16928
|
return Math.max(0, Math.min(100, Math.round(O)));
|
|
16927
16929
|
}), T = (z) => Number(z || 0).toLocaleString("pt-BR"), D = X(!1), Y = X(!1);
|
|
16928
|
-
let R = null,
|
|
16929
|
-
const
|
|
16930
|
+
let R = null, q = null;
|
|
16931
|
+
const Z = P(() => {
|
|
16930
16932
|
var z;
|
|
16931
16933
|
return Number(((z = n.progress) == null ? void 0 : z.level) ?? n.level ?? 0);
|
|
16932
16934
|
});
|
|
@@ -16937,11 +16939,11 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
16937
16939
|
z.value = !1;
|
|
16938
16940
|
}, I);
|
|
16939
16941
|
}
|
|
16940
|
-
Ke([C,
|
|
16942
|
+
Ke([C, Z], ([z, O], [I, B]) => {
|
|
16941
16943
|
var G;
|
|
16942
|
-
b.value && ((G = window.matchMedia) != null && G.call(window, "(prefers-reduced-motion: reduce)").matches || (O > B && B > 0 ?
|
|
16944
|
+
b.value && ((G = window.matchMedia) != null && G.call(window, "(prefers-reduced-motion: reduce)").matches || (O > B && B > 0 ? q = V(Y, q, 1e3) : z > I && (R = V(D, R, 760))));
|
|
16943
16945
|
}), Bt(() => {
|
|
16944
|
-
clearTimeout(R), clearTimeout(
|
|
16946
|
+
clearTimeout(R), clearTimeout(q);
|
|
16945
16947
|
});
|
|
16946
16948
|
function j(z) {
|
|
16947
16949
|
const O = z.trim(), I = O.match(/^#([0-9a-fA-F]{3,8})$/);
|
|
@@ -17218,11 +17220,7 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
17218
17220
|
isGroup: { type: Boolean, default: !1 }
|
|
17219
17221
|
},
|
|
17220
17222
|
setup(e) {
|
|
17221
|
-
const t = e, n = P(() => Fo(t.attendant)), a = P(
|
|
17222
|
-
() => t.frame !== void 0 ? t.frame : n.value.frame
|
|
17223
|
-
), i = P(
|
|
17224
|
-
() => t.title !== void 0 ? t.title : n.value.title
|
|
17225
|
-
), r = P(() => t.avatarSize !== "auto" ? t.avatarSize : t.variant === "avatar" ? "xs" : ["list", "message"].includes(t.variant) ? "sm" : "md"), c = P(() => t.variant !== "avatar"), u = X(null), h = X(!1), p = X({}), m = X("top");
|
|
17223
|
+
const t = e, n = P(() => Fo(t.attendant)), a = P(() => t.frame !== void 0 ? t.frame : n.value.frame), i = P(() => t.title !== void 0 ? t.title : n.value.title), r = P(() => t.avatarSize !== "auto" ? t.avatarSize : t.variant === "avatar" ? "xs" : ["list", "message"].includes(t.variant) ? "sm" : "md"), c = P(() => t.variant !== "avatar"), u = X(null), h = X(!1), p = X({}), m = X("top");
|
|
17226
17224
|
let y = null, x = null;
|
|
17227
17225
|
function w() {
|
|
17228
17226
|
t.hoverPreview && (window.clearTimeout(x), !h.value && (window.clearTimeout(y), y = window.setTimeout(
|
|
@@ -17233,22 +17231,22 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
17233
17231
|
)));
|
|
17234
17232
|
}
|
|
17235
17233
|
function g() {
|
|
17236
|
-
var
|
|
17234
|
+
var Z;
|
|
17237
17235
|
if (!t.hoverPreview) return;
|
|
17238
17236
|
window.clearTimeout(x);
|
|
17239
|
-
const _ = (
|
|
17237
|
+
const _ = (Z = u.value) == null ? void 0 : Z.getBoundingClientRect();
|
|
17240
17238
|
if (!_) return;
|
|
17241
17239
|
const $ = 8, M = Math.min(360, window.innerWidth - $ * 2), C = 180, T = 7, D = window.innerWidth - M - $, Y = Math.max($, Math.min(_.left, D)), R = _.top >= C + T + $;
|
|
17242
17240
|
m.value = R ? "top" : "bottom";
|
|
17243
|
-
const
|
|
17241
|
+
const q = {
|
|
17244
17242
|
left: `${Y}px`,
|
|
17245
17243
|
width: `${M}px`
|
|
17246
17244
|
};
|
|
17247
17245
|
p.value = R ? {
|
|
17248
|
-
...
|
|
17246
|
+
...q,
|
|
17249
17247
|
bottom: `${window.innerHeight - _.top + T}px`
|
|
17250
17248
|
} : {
|
|
17251
|
-
...
|
|
17249
|
+
...q,
|
|
17252
17250
|
top: `${_.bottom + T}px`
|
|
17253
17251
|
}, h.value = !0;
|
|
17254
17252
|
}
|
|
@@ -17261,7 +17259,7 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
17261
17259
|
return Bt(() => {
|
|
17262
17260
|
window.clearTimeout(y), window.clearTimeout(x);
|
|
17263
17261
|
}), (_, $) => {
|
|
17264
|
-
var M, C, T, D, Y, R,
|
|
17262
|
+
var M, C, T, D, Y, R, q;
|
|
17265
17263
|
return l(), f("div", {
|
|
17266
17264
|
ref_key: "triggerRef",
|
|
17267
17265
|
ref: u,
|
|
@@ -17299,13 +17297,13 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
17299
17297
|
}, null, 8, ["achievement"]),
|
|
17300
17298
|
o("span", W_, N(n.value.achievement.name), 1)
|
|
17301
17299
|
], 8, G_)) : F("", !0),
|
|
17302
|
-
e.fallbackMeta && !(e.showTitle && ((R = i.value) != null && R.name)) && !(e.showAchievement && ((
|
|
17300
|
+
e.fallbackMeta && !(e.showTitle && ((R = i.value) != null && R.name)) && !(e.showAchievement && ((q = n.value.achievement) != null && q.name)) ? (l(), f("span", U_, N(e.fallbackMeta), 1)) : F("", !0)
|
|
17303
17301
|
])
|
|
17304
17302
|
])) : F("", !0),
|
|
17305
17303
|
(l(), _e(xn, { to: "body" }, [
|
|
17306
17304
|
pe(Mt, { name: "sm-profile-preview" }, {
|
|
17307
17305
|
default: Ae(() => {
|
|
17308
|
-
var
|
|
17306
|
+
var Z, V;
|
|
17309
17307
|
return [
|
|
17310
17308
|
h.value ? (l(), f("div", {
|
|
17311
17309
|
key: 0,
|
|
@@ -17317,14 +17315,14 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
17317
17315
|
pe(h4, {
|
|
17318
17316
|
variant: "card",
|
|
17319
17317
|
embedded: "",
|
|
17320
|
-
name: ((
|
|
17318
|
+
name: ((Z = e.attendant) == null ? void 0 : Z.name) || "Atendente",
|
|
17321
17319
|
photo: ((V = e.attendant) == null ? void 0 : V.photo) || "",
|
|
17322
17320
|
level: n.value.level,
|
|
17323
17321
|
frame: a.value,
|
|
17324
17322
|
title: i.value,
|
|
17325
17323
|
achievement: n.value.achievement,
|
|
17326
17324
|
"avatar-size": "preview",
|
|
17327
|
-
"effect-level": "
|
|
17325
|
+
"effect-level": "full"
|
|
17328
17326
|
}, null, 8, ["name", "photo", "level", "frame", "title", "achievement"])
|
|
17329
17327
|
], 38)) : F("", !0)
|
|
17330
17328
|
];
|
|
@@ -17335,7 +17333,7 @@ const l_ = { class: "sections-header" }, c_ = {
|
|
|
17335
17333
|
], 34);
|
|
17336
17334
|
};
|
|
17337
17335
|
}
|
|
17338
|
-
}, Za = /* @__PURE__ */ Ne(Y_, [["__scopeId", "data-v-
|
|
17336
|
+
}, Za = /* @__PURE__ */ Ne(Y_, [["__scopeId", "data-v-024ef36b"]]), bd = {
|
|
17339
17337
|
Online: { key: "online", label: "Online", color: "rgb(var(--success-rgb))" },
|
|
17340
17338
|
Busy: { key: "busy", label: "Ocupado", color: "rgb(var(--error-rgb))" },
|
|
17341
17339
|
Away: { key: "away", label: "Ausente", color: "rgb(var(--warning-rgb))" },
|
|
@@ -18624,9 +18622,9 @@ const tS = { class: "chat-info bg-base-200" }, nS = { class: "info-head" }, aS =
|
|
|
18624
18622
|
var A;
|
|
18625
18623
|
return Qr((A = n.selectedAttendant) == null ? void 0 : A.login_status);
|
|
18626
18624
|
}
|
|
18627
|
-
),
|
|
18625
|
+
), q = P(
|
|
18628
18626
|
() => Fo(n.selectedAttendant).title
|
|
18629
|
-
),
|
|
18627
|
+
), Z = P(() => {
|
|
18630
18628
|
var z, O, I;
|
|
18631
18629
|
if (n.isGroup)
|
|
18632
18630
|
return [
|
|
@@ -18705,9 +18703,9 @@ const tS = { class: "chat-info bg-base-200" }, nS = { class: "info-head" }, aS =
|
|
|
18705
18703
|
}, null, 8, ["photo", "name"])
|
|
18706
18704
|
])),
|
|
18707
18705
|
o("h1", rS, N(e.selectedAttendant.name), 1),
|
|
18708
|
-
e.isGroup ? (l(), f("p", lS, " Grupo · " + N(e.participantCount) + " membros ", 1)) : oe(r) && ((z =
|
|
18706
|
+
e.isGroup ? (l(), f("p", lS, " Grupo · " + N(e.participantCount) + " membros ", 1)) : oe(r) && ((z = q.value) != null && z.name) ? (l(), _e(ja, {
|
|
18709
18707
|
key: 4,
|
|
18710
|
-
title:
|
|
18708
|
+
title: q.value,
|
|
18711
18709
|
size: "md",
|
|
18712
18710
|
class: "identity-title"
|
|
18713
18711
|
}, null, 8, ["title"])) : (l(), f("p", cS, [
|
|
@@ -18718,7 +18716,7 @@ const tS = { class: "chat-info bg-base-200" }, nS = { class: "info-head" }, aS =
|
|
|
18718
18716
|
]))
|
|
18719
18717
|
]),
|
|
18720
18718
|
o("dl", uS, [
|
|
18721
|
-
(l(!0), f(ye, null, He(
|
|
18719
|
+
(l(!0), f(ye, null, He(Z.value, (O) => (l(), f("div", {
|
|
18722
18720
|
key: O.key,
|
|
18723
18721
|
class: "fact"
|
|
18724
18722
|
}, [
|
|
@@ -19228,27 +19226,27 @@ let BS = class extends ti {
|
|
|
19228
19226
|
if (x.button !== r || h.has(x.pointerId) || (h.set(x.pointerId, x), h.size > 1)) return;
|
|
19229
19227
|
const w = x.pointerId;
|
|
19230
19228
|
let g = x.clientX, b = x.clientY, k = !1;
|
|
19231
|
-
const _ = Date.now(), $ = n.getBoundingClientRect(), { left: M, top: C } = $, T = (
|
|
19232
|
-
if (
|
|
19233
|
-
const V =
|
|
19234
|
-
(k || Math.abs(A) > i || Math.abs(S) > i) && (
|
|
19235
|
-
}, D = (
|
|
19236
|
-
if (h.delete(
|
|
19237
|
-
if (
|
|
19238
|
-
const V =
|
|
19229
|
+
const _ = Date.now(), $ = n.getBoundingClientRect(), { left: M, top: C } = $, T = (Z) => {
|
|
19230
|
+
if (Z.pointerId !== w || Z.defaultPrevented || h.size > 1 || p && Date.now() - _ < c) return;
|
|
19231
|
+
const V = Z.clientX, j = Z.clientY, A = V - g, S = j - b;
|
|
19232
|
+
(k || Math.abs(A) > i || Math.abs(S) > i) && (Z.preventDefault(), Z.stopPropagation(), k || (u.set({ type: "start", x: g - M, y: b - C }), k = !0), u.set({ type: "move", x: V - M, y: j - C, deltaX: A, deltaY: S }), g = V, b = j);
|
|
19233
|
+
}, D = (Z) => {
|
|
19234
|
+
if (h.delete(Z.pointerId)) {
|
|
19235
|
+
if (Z.pointerId === w && k) {
|
|
19236
|
+
const V = Z.clientX, j = Z.clientY;
|
|
19239
19237
|
u.set({ type: "end", x: V - M, y: j - C });
|
|
19240
19238
|
}
|
|
19241
19239
|
h.size === 0 && m();
|
|
19242
19240
|
}
|
|
19243
|
-
}, Y = (
|
|
19244
|
-
|
|
19245
|
-
}, R = (
|
|
19246
|
-
k && (
|
|
19247
|
-
},
|
|
19248
|
-
|
|
19241
|
+
}, Y = (Z) => {
|
|
19242
|
+
Z.relatedTarget && Z.relatedTarget !== document.documentElement || D(Z);
|
|
19243
|
+
}, R = (Z) => {
|
|
19244
|
+
k && (Z.stopPropagation(), Z.preventDefault());
|
|
19245
|
+
}, q = (Z) => {
|
|
19246
|
+
Z.defaultPrevented || h.size > 1 || k && Z.preventDefault();
|
|
19249
19247
|
};
|
|
19250
|
-
document.addEventListener("pointermove", T), document.addEventListener("pointerup", D), document.addEventListener("pointerout", Y), document.addEventListener("pointercancel", Y), document.addEventListener("touchmove",
|
|
19251
|
-
document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", D), document.removeEventListener("pointerout", Y), document.removeEventListener("pointercancel", Y), document.removeEventListener("touchmove",
|
|
19248
|
+
document.addEventListener("pointermove", T), document.addEventListener("pointerup", D), document.addEventListener("pointerout", Y), document.addEventListener("pointercancel", Y), document.addEventListener("touchmove", q, { passive: !1 }), document.addEventListener("click", R, { capture: !0 }), m = () => {
|
|
19249
|
+
document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", D), document.removeEventListener("pointerout", Y), document.removeEventListener("pointercancel", Y), document.removeEventListener("touchmove", q), setTimeout(() => {
|
|
19252
19250
|
document.removeEventListener("click", R, { capture: !0 });
|
|
19253
19251
|
}, 10);
|
|
19254
19252
|
};
|
|
@@ -19422,18 +19420,18 @@ let BS = class extends ti {
|
|
|
19422
19420
|
const M = b / 2, C = _.barWidth ? _.barWidth * $ : 1, T = _.barGap ? _.barGap * $ : _.barWidth ? C / 2 : 0, D = C + T || 1;
|
|
19423
19421
|
return { halfHeight: M, barWidth: C, barGap: T, barRadius: _.barRadius || 0, barMinHeight: _.barMinHeight ? _.barMinHeight * $ : 0, barIndexScale: k > 0 ? g / D / k : 0, barSpacing: D };
|
|
19424
19422
|
}({ width: r, height: c, length: (t[0] || []).length, options: n, pixelRatio: this.getPixelRatio() }), w = function({ channelData: g, barIndexScale: b, barSpacing: k, barWidth: _, halfHeight: $, vScale: M, canvasHeight: C, barAlign: T, barMinHeight: D }) {
|
|
19425
|
-
const Y = g[0] || [], R = g[1] || Y,
|
|
19423
|
+
const Y = g[0] || [], R = g[1] || Y, q = Y.length, Z = [];
|
|
19426
19424
|
let V = 0, j = 0, A = 0;
|
|
19427
|
-
for (let S = 0; S <=
|
|
19425
|
+
for (let S = 0; S <= q; S++) {
|
|
19428
19426
|
const z = Math.round(S * b);
|
|
19429
19427
|
if (z > V) {
|
|
19430
19428
|
const { topHeight: B, totalHeight: G } = LS({ maxTop: j, maxBottom: A, halfHeight: $, vScale: M, barMinHeight: D, barAlign: T }), J = PS({ barAlign: T, halfHeight: $, topHeight: B, totalHeight: G, canvasHeight: C });
|
|
19431
|
-
|
|
19429
|
+
Z.push({ x: V * k, y: J, width: _, height: G }), V = z, j = 0, A = 0;
|
|
19432
19430
|
}
|
|
19433
19431
|
const O = Math.abs(Y[S] || 0), I = Math.abs(R[S] || 0);
|
|
19434
19432
|
O > j && (j = O), I > A && (A = I);
|
|
19435
19433
|
}
|
|
19436
|
-
return
|
|
19434
|
+
return Z;
|
|
19437
19435
|
}({ channelData: t, barIndexScale: m, barSpacing: y, barWidth: h, halfHeight: u, vScale: i, canvasHeight: c, barAlign: n.barAlign, barMinHeight: x });
|
|
19438
19436
|
a.beginPath();
|
|
19439
19437
|
for (const g of w) p && "roundRect" in a ? a.roundRect(g.x, g.y, g.width, g.height, p) : a.rect(g.x, g.y, g.width, g.height);
|
|
@@ -19448,11 +19446,11 @@ let BS = class extends ti {
|
|
|
19448
19446
|
for (let Y = 0; Y <= k; Y++) {
|
|
19449
19447
|
const R = Math.round(Y * _);
|
|
19450
19448
|
if (R > T) {
|
|
19451
|
-
const
|
|
19452
|
-
C.push({ x: T, y:
|
|
19449
|
+
const Z = $ + (Math.round(D * x * y) || 1) * M;
|
|
19450
|
+
C.push({ x: T, y: Z }), T = R, D = 0;
|
|
19453
19451
|
}
|
|
19454
|
-
const
|
|
19455
|
-
|
|
19452
|
+
const q = Math.abs(g[Y] || 0);
|
|
19453
|
+
q > D && (D = q);
|
|
19456
19454
|
}
|
|
19457
19455
|
return C.push({ x: T, y: $ }), C;
|
|
19458
19456
|
});
|
|
@@ -19795,8 +19793,8 @@ let Vo = class w4 extends $S {
|
|
|
19795
19793
|
super({ media: n, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = !1, this._loadVersion = 0, this.reactiveCleanups = [], this.options = Object.assign({}, FS, t);
|
|
19796
19794
|
const { state: a, actions: i } = function(u) {
|
|
19797
19795
|
var h, p, m, y, x, w;
|
|
19798
|
-
const g = (h = u == null ? void 0 : u.currentTime) !== null && h !== void 0 ? h : Ut(0), b = (p = u == null ? void 0 : u.duration) !== null && p !== void 0 ? p : Ut(0), k = (m = u == null ? void 0 : u.isPlaying) !== null && m !== void 0 ? m : Ut(!1), _ = (y = u == null ? void 0 : u.isSeeking) !== null && y !== void 0 ? y : Ut(!1), $ = (x = u == null ? void 0 : u.volume) !== null && x !== void 0 ? x : Ut(1), M = (w = u == null ? void 0 : u.playbackRate) !== null && w !== void 0 ? w : Ut(1), C = Ut(null), T = Ut(null), D = Ut(""), Y = Ut(0), R = Ut(0),
|
|
19799
|
-
return { state: { currentTime: g, duration: b, isPlaying: k, isPaused:
|
|
19796
|
+
const g = (h = u == null ? void 0 : u.currentTime) !== null && h !== void 0 ? h : Ut(0), b = (p = u == null ? void 0 : u.duration) !== null && p !== void 0 ? p : Ut(0), k = (m = u == null ? void 0 : u.isPlaying) !== null && m !== void 0 ? m : Ut(!1), _ = (y = u == null ? void 0 : u.isSeeking) !== null && y !== void 0 ? y : Ut(!1), $ = (x = u == null ? void 0 : u.volume) !== null && x !== void 0 ? x : Ut(1), M = (w = u == null ? void 0 : u.playbackRate) !== null && w !== void 0 ? w : Ut(1), C = Ut(null), T = Ut(null), D = Ut(""), Y = Ut(0), R = Ut(0), q = rs(() => !k.value, [k]), Z = rs(() => C.value !== null, [C]), V = rs(() => Z.value && b.value > 0, [Z, b]), j = rs(() => g.value, [g]), A = rs(() => b.value > 0 ? g.value / b.value : 0, [g, b]);
|
|
19797
|
+
return { state: { currentTime: g, duration: b, isPlaying: k, isPaused: q, isSeeking: _, volume: $, playbackRate: M, audioBuffer: C, peaks: T, url: D, zoom: Y, scrollPosition: R, canPlay: Z, isReady: V, progress: j, progressPercent: A }, actions: { setCurrentTime: (S) => {
|
|
19800
19798
|
const z = Math.max(0, Math.min(b.value || 1 / 0, S));
|
|
19801
19799
|
g.set(z);
|
|
19802
19800
|
}, setDuration: (S) => {
|
|
@@ -20922,7 +20920,7 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
|
|
|
20922
20920
|
function R(j) {
|
|
20923
20921
|
j != null && j.currentTarget && (h.value = j.currentTarget.getBoundingClientRect());
|
|
20924
20922
|
}
|
|
20925
|
-
function
|
|
20923
|
+
function q(j, A) {
|
|
20926
20924
|
var G;
|
|
20927
20925
|
if (R(j), !$(A) || !((G = A.reasons) != null && G.length)) {
|
|
20928
20926
|
D();
|
|
@@ -20941,7 +20939,7 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
|
|
|
20941
20939
|
style: { top: `${O}px`, left: `${I}px`, width: `${B}px` }
|
|
20942
20940
|
};
|
|
20943
20941
|
}
|
|
20944
|
-
function
|
|
20942
|
+
function Z(j, A) {
|
|
20945
20943
|
if (R(j), !$(A)) {
|
|
20946
20944
|
D();
|
|
20947
20945
|
return;
|
|
@@ -20950,7 +20948,7 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
|
|
|
20950
20948
|
D();
|
|
20951
20949
|
return;
|
|
20952
20950
|
}
|
|
20953
|
-
p.value = A.key,
|
|
20951
|
+
p.value = A.key, q(j, A);
|
|
20954
20952
|
}
|
|
20955
20953
|
function V(j, A) {
|
|
20956
20954
|
R(j), D(), !$(A) && (typeof A.handler == "function" && A.handler(j), i("select", A));
|
|
@@ -20992,9 +20990,9 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
|
|
|
20992
20990
|
class: U([e.light ? "hover:bg-gray-100" : "hover:bg-white/5", "flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-[14px] disabled:opacity-50 disabled:hover:bg-transparent"]),
|
|
20993
20991
|
disabled: $(S),
|
|
20994
20992
|
onClick: (O) => V(O, S),
|
|
20995
|
-
onMouseenter: (O) =>
|
|
20996
|
-
onFocus: (O) =>
|
|
20997
|
-
onTouchstartPassive: (O) =>
|
|
20993
|
+
onMouseenter: (O) => q(O, S),
|
|
20994
|
+
onFocus: (O) => q(O, S),
|
|
20995
|
+
onTouchstartPassive: (O) => Z(O, S)
|
|
20998
20996
|
}, [
|
|
20999
20997
|
S.icon ? (l(), f("span", {
|
|
21000
20998
|
key: 0,
|
|
@@ -21092,8 +21090,8 @@ const PM = ["disabled", "onClick", "onMouseenter", "onFocus", "onTouchstartPassi
|
|
|
21092
21090
|
(g.width - _ * (Hi - 1)) / Hi
|
|
21093
21091
|
), M = g.height / 2, C = Math.floor(c.length / Hi) || 1;
|
|
21094
21092
|
for (let D = 0; D < Hi; D += 1) {
|
|
21095
|
-
const Y = c[D * C] / 255, R = Math.max(2 * k, Y * g.height),
|
|
21096
|
-
y(b,
|
|
21093
|
+
const Y = c[D * C] / 255, R = Math.max(2 * k, Y * g.height), q = D * ($ + _);
|
|
21094
|
+
y(b, q, M - R / 2, $, R, $ / 2);
|
|
21097
21095
|
}
|
|
21098
21096
|
(T = t.audioStream) != null && T.active && (u = requestAnimationFrame(x));
|
|
21099
21097
|
}, w = () => {
|
|
@@ -21201,10 +21199,10 @@ const eA = {
|
|
|
21201
21199
|
if (!J || !u.value) return;
|
|
21202
21200
|
const { left: te, width: se } = G.currentTarget.getBoundingClientRect(), ae = Math.min(Math.max((G.clientX - te) / se, 0), 1);
|
|
21203
21201
|
J.currentTime = ae * u.value, D();
|
|
21204
|
-
},
|
|
21202
|
+
}, q = () => {
|
|
21205
21203
|
var G;
|
|
21206
21204
|
(G = _.value) == null || G.pause(), $.value = !1, M.value = 0;
|
|
21207
|
-
},
|
|
21205
|
+
}, Z = (G) => {
|
|
21208
21206
|
const J = Math.floor(G / 60), te = (G % 60).toFixed(0), se = J.toString().padStart(2, "0"), ae = te.toString().padStart(2, "0");
|
|
21209
21207
|
return `${se}:${ae}`;
|
|
21210
21208
|
}, V = async () => {
|
|
@@ -21235,7 +21233,7 @@ const eA = {
|
|
|
21235
21233
|
}
|
|
21236
21234
|
}, I = async () => {
|
|
21237
21235
|
var te, se;
|
|
21238
|
-
b.value = !0,
|
|
21236
|
+
b.value = !0, q(), a("b64Audio", m.value);
|
|
21239
21237
|
const J = {
|
|
21240
21238
|
type: "file",
|
|
21241
21239
|
media: {
|
|
@@ -21252,7 +21250,7 @@ const eA = {
|
|
|
21252
21250
|
), b.value = !1, x.value = null, m.value = null, p.value = null, r.value = !1, c.value = !1, u.value = 0;
|
|
21253
21251
|
}, B = async () => {
|
|
21254
21252
|
var G, J;
|
|
21255
|
-
g.value = !0, r.value = !1,
|
|
21253
|
+
g.value = !0, r.value = !1, q(), ((G = i.value) == null ? void 0 : G.state) !== "inactive" && await ((J = i.value) == null ? void 0 : J.stop()), x.value && (x.value.getTracks().forEach((te) => te.stop()), x.value = null), p.value = null, clearInterval(y.value), m.value = null, c.value = !1, u.value = 0;
|
|
21256
21254
|
};
|
|
21257
21255
|
return (G, J) => b.value ? (l(), f("div", hA, [...J[12] || (J[12] = [
|
|
21258
21256
|
o("span", { class: "loader-audio-recorder" }, null, -1),
|
|
@@ -21286,7 +21284,7 @@ const eA = {
|
|
|
21286
21284
|
class: U(["recorder-timer", { paused: c.value }])
|
|
21287
21285
|
}, [
|
|
21288
21286
|
J[5] || (J[5] = o("i", { "aria-hidden": "true" }, null, -1)),
|
|
21289
|
-
Ie(" " + N(
|
|
21287
|
+
Ie(" " + N(Z(u.value)), 1)
|
|
21290
21288
|
], 2)) : F("", !0),
|
|
21291
21289
|
x.value && r.value && !c.value ? (l(), _e(UM, {
|
|
21292
21290
|
key: 1,
|
|
@@ -21327,7 +21325,7 @@ const eA = {
|
|
|
21327
21325
|
style: Ve({ width: `${C.value * 100}%` })
|
|
21328
21326
|
}, null, 4)
|
|
21329
21327
|
], 8, lA),
|
|
21330
|
-
o("span", cA, N(
|
|
21328
|
+
o("span", cA, N(Z(M.value)) + " / " + N(Z(u.value)), 1)
|
|
21331
21329
|
])) : F("", !0),
|
|
21332
21330
|
r.value ? (l(), f("button", {
|
|
21333
21331
|
key: 4,
|
|
@@ -21436,51 +21434,51 @@ const vA = (e) => {
|
|
|
21436
21434
|
return console.warn(`Capacitor plugin "${y}" already registered. Cannot register plugins twice.`), w.proxy;
|
|
21437
21435
|
const g = i(), b = u(y);
|
|
21438
21436
|
let k;
|
|
21439
|
-
const _ = async () => (!k && g in x ? k = typeof x[g] == "function" ? k = await x[g]() : k = x[g] : t !== null && !k && "web" in x && (k = typeof x.web == "function" ? k = await x.web() : k = x.web), k), $ = (R,
|
|
21440
|
-
var
|
|
21437
|
+
const _ = async () => (!k && g in x ? k = typeof x[g] == "function" ? k = await x[g]() : k = x[g] : t !== null && !k && "web" in x && (k = typeof x.web == "function" ? k = await x.web() : k = x.web), k), $ = (R, q) => {
|
|
21438
|
+
var Z, V;
|
|
21441
21439
|
if (b) {
|
|
21442
|
-
const j = b == null ? void 0 : b.methods.find((A) =>
|
|
21440
|
+
const j = b == null ? void 0 : b.methods.find((A) => q === A.name);
|
|
21443
21441
|
if (j)
|
|
21444
|
-
return j.rtype === "promise" ? (A) => n.nativePromise(y,
|
|
21442
|
+
return j.rtype === "promise" ? (A) => n.nativePromise(y, q.toString(), A) : (A, S) => n.nativeCallback(y, q.toString(), A, S);
|
|
21445
21443
|
if (R)
|
|
21446
|
-
return (
|
|
21444
|
+
return (Z = R[q]) === null || Z === void 0 ? void 0 : Z.bind(R);
|
|
21447
21445
|
} else {
|
|
21448
21446
|
if (R)
|
|
21449
|
-
return (V = R[
|
|
21447
|
+
return (V = R[q]) === null || V === void 0 ? void 0 : V.bind(R);
|
|
21450
21448
|
throw new s1(`"${y}" plugin is not implemented on ${g}`, Js.Unimplemented);
|
|
21451
21449
|
}
|
|
21452
21450
|
}, M = (R) => {
|
|
21453
|
-
let
|
|
21454
|
-
const
|
|
21451
|
+
let q;
|
|
21452
|
+
const Z = (...V) => {
|
|
21455
21453
|
const j = _().then((A) => {
|
|
21456
21454
|
const S = $(A, R);
|
|
21457
21455
|
if (S) {
|
|
21458
21456
|
const z = S(...V);
|
|
21459
|
-
return
|
|
21457
|
+
return q = z == null ? void 0 : z.remove, z;
|
|
21460
21458
|
} else
|
|
21461
21459
|
throw new s1(`"${y}.${R}()" is not implemented on ${g}`, Js.Unimplemented);
|
|
21462
21460
|
});
|
|
21463
|
-
return R === "addListener" && (j.remove = async () =>
|
|
21461
|
+
return R === "addListener" && (j.remove = async () => q()), j;
|
|
21464
21462
|
};
|
|
21465
|
-
return
|
|
21463
|
+
return Z.toString = () => `${R.toString()}() { [capacitor code] }`, Object.defineProperty(Z, "name", {
|
|
21466
21464
|
value: R,
|
|
21467
21465
|
writable: !1,
|
|
21468
21466
|
configurable: !1
|
|
21469
|
-
}),
|
|
21470
|
-
}, C = M("addListener"), T = M("removeListener"), D = (R,
|
|
21471
|
-
const
|
|
21472
|
-
const A = await
|
|
21467
|
+
}), Z;
|
|
21468
|
+
}, C = M("addListener"), T = M("removeListener"), D = (R, q) => {
|
|
21469
|
+
const Z = C({ eventName: R }, q), V = async () => {
|
|
21470
|
+
const A = await Z;
|
|
21473
21471
|
T({
|
|
21474
21472
|
eventName: R,
|
|
21475
21473
|
callbackId: A
|
|
21476
|
-
},
|
|
21477
|
-
}, j = new Promise((A) =>
|
|
21474
|
+
}, q);
|
|
21475
|
+
}, j = new Promise((A) => Z.then(() => A({ remove: V })));
|
|
21478
21476
|
return j.remove = async () => {
|
|
21479
21477
|
console.warn("Using addListener() without 'await' is deprecated."), await V();
|
|
21480
21478
|
}, j;
|
|
21481
21479
|
}, Y = new Proxy({}, {
|
|
21482
|
-
get(R,
|
|
21483
|
-
switch (
|
|
21480
|
+
get(R, q) {
|
|
21481
|
+
switch (q) {
|
|
21484
21482
|
case "$$typeof":
|
|
21485
21483
|
return;
|
|
21486
21484
|
case "toJSON":
|
|
@@ -21490,7 +21488,7 @@ const vA = (e) => {
|
|
|
21490
21488
|
case "removeListener":
|
|
21491
21489
|
return T;
|
|
21492
21490
|
default:
|
|
21493
|
-
return M(
|
|
21491
|
+
return M(q);
|
|
21494
21492
|
}
|
|
21495
21493
|
}
|
|
21496
21494
|
});
|
|
@@ -21729,7 +21727,7 @@ I0("CapacitorHttp", {
|
|
|
21729
21727
|
web: () => new CA()
|
|
21730
21728
|
});
|
|
21731
21729
|
const es = I0("VoiceRecorder", {
|
|
21732
|
-
web: () => import("./web-
|
|
21730
|
+
web: () => import("./web-CyWroFn6.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
21733
21731
|
});
|
|
21734
21732
|
function zd(e, t) {
|
|
21735
21733
|
return l(), f("svg", {
|
|
@@ -21899,10 +21897,10 @@ const EA = {
|
|
|
21899
21897
|
}, R = async () => {
|
|
21900
21898
|
const S = await es.getCurrentStatus();
|
|
21901
21899
|
S.status === "RECORDING" ? (await Y(), n("paused", !1), n("recording", !1), i.value = null, h.value = [], r.value = !1, c.value = 0, m.value = k(0)) : S.status === "NONE" && (n("recording", !1), n("paused", !1), i.value = null, r.value = !1, h.value = [], c.value = 0, m.value = k(0));
|
|
21902
|
-
},
|
|
21900
|
+
}, q = async () => {
|
|
21903
21901
|
await es.getCurrentStatus(), x.value && (x.value.pause(), y.value = !1), R();
|
|
21904
21902
|
};
|
|
21905
|
-
function
|
|
21903
|
+
function Z(S) {
|
|
21906
21904
|
const z = atob(S), O = z.length, I = new Uint8Array(O);
|
|
21907
21905
|
for (let B = 0; B < O; B++)
|
|
21908
21906
|
I[B] = z.charCodeAt(B);
|
|
@@ -21923,7 +21921,7 @@ const EA = {
|
|
|
21923
21921
|
const A = async () => {
|
|
21924
21922
|
r.value = !0, (await es.getCurrentStatus()).status === "RECORDING" && await Y();
|
|
21925
21923
|
try {
|
|
21926
|
-
const z = h.value.map(
|
|
21924
|
+
const z = h.value.map(Z), O = V(z), I = j(O), B = `data:${p.value};base64,${I}`, J = {
|
|
21927
21925
|
type: "file",
|
|
21928
21926
|
media: {
|
|
21929
21927
|
name: "audio",
|
|
@@ -21979,7 +21977,7 @@ const EA = {
|
|
|
21979
21977
|
o("div", zA, [
|
|
21980
21978
|
i.value ? (l(), f("button", {
|
|
21981
21979
|
key: 0,
|
|
21982
|
-
onClick: z[2] || (z[2] = (O) =>
|
|
21980
|
+
onClick: z[2] || (z[2] = (O) => q())
|
|
21983
21981
|
}, [
|
|
21984
21982
|
pe(oe(AA), { class: "recorder-icon-discard ml-2 size-6 cursor-pointer" })
|
|
21985
21983
|
])) : F("", !0),
|
|
@@ -22104,7 +22102,7 @@ const EA = {
|
|
|
22104
22102
|
re.id === ((K = n.attendant) == null ? void 0 : K.id) ? { ...re, ...n.attendant } : re
|
|
22105
22103
|
);
|
|
22106
22104
|
return [...ce.values()].sort((re, ue) => re.id === n.attendant.id ? -1 : ue.id === n.attendant.id ? 1 : 0);
|
|
22107
|
-
}), g = P(() => w.value.length), b = t, k = X(""), _ = X(null), $ = X(null), M = X(!1), C = X(!1), T = X(!1), D = X(!0), Y = X(0), R = X(null),
|
|
22105
|
+
}), g = P(() => w.value.length), b = t, k = X(""), _ = X(null), $ = X(null), M = X(!1), C = X(!1), T = X(!1), D = X(!0), Y = X(0), R = X(null), q = X(0), Z = P(() => !D.value), V = P(() => {
|
|
22108
22106
|
var ce;
|
|
22109
22107
|
return n.selectedAttendant ? n.selectedAttendant.is_group ? ((ce = n.selectedAttendant.chat_info) == null ? void 0 : ce.messages) || [] : n.selectedAttendant.messages || [] : [];
|
|
22110
22108
|
});
|
|
@@ -22188,11 +22186,11 @@ const EA = {
|
|
|
22188
22186
|
}, ve = () => {
|
|
22189
22187
|
Y.value = 0, D.value = !0, fe("smooth");
|
|
22190
22188
|
}, de = () => {
|
|
22191
|
-
if (R.value ||
|
|
22189
|
+
if (R.value || q.value <= 0) return;
|
|
22192
22190
|
const ce = V.value;
|
|
22193
22191
|
if (ce.length === 0) return;
|
|
22194
|
-
const K = ce[Math.max(ce.length -
|
|
22195
|
-
K != null && K.id && (R.value = K.id),
|
|
22192
|
+
const K = ce[Math.max(ce.length - q.value, 0)];
|
|
22193
|
+
K != null && K.id && (R.value = K.id), q.value = 0;
|
|
22196
22194
|
}, xe = async (ce) => {
|
|
22197
22195
|
try {
|
|
22198
22196
|
if (!te.value) {
|
|
@@ -22261,7 +22259,7 @@ const EA = {
|
|
|
22261
22259
|
}, 0));
|
|
22262
22260
|
}, Ce = () => {
|
|
22263
22261
|
var ce;
|
|
22264
|
-
k.value = ((ce = a.getDraft) == null ? void 0 : ce.call(a, m.value)) || "", R.value = null,
|
|
22262
|
+
k.value = ((ce = a.getDraft) == null ? void 0 : ce.call(a, m.value)) || "", R.value = null, q.value = n.unreadAnchor, Y.value = 0, D.value = !0, de();
|
|
22265
22263
|
};
|
|
22266
22264
|
Ke(m, () => {
|
|
22267
22265
|
Ce(), le();
|
|
@@ -22711,7 +22709,7 @@ const EA = {
|
|
|
22711
22709
|
}), 128))
|
|
22712
22710
|
]))), 128))
|
|
22713
22711
|
])),
|
|
22714
|
-
|
|
22712
|
+
Z.value ? (l(), f("button", {
|
|
22715
22713
|
key: 4,
|
|
22716
22714
|
type: "button",
|
|
22717
22715
|
class: "jump-to-bottom",
|
|
@@ -22954,9 +22952,9 @@ const wE = /* @__PURE__ */ Ne(yE, [["render", xE], ["__scopeId", "data-v-1fd8b95
|
|
|
22954
22952
|
}
|
|
22955
22953
|
}, Y = X(null), R = () => {
|
|
22956
22954
|
Y.value && Y.value.focus();
|
|
22957
|
-
},
|
|
22955
|
+
}, q = (V, j) => {
|
|
22958
22956
|
h.value = V, p.value = j;
|
|
22959
|
-
},
|
|
22957
|
+
}, Z = async (V) => {
|
|
22960
22958
|
var S;
|
|
22961
22959
|
const j = (S = V.clipboardData) == null ? void 0 : S.items;
|
|
22962
22960
|
if (!j) return;
|
|
@@ -22987,9 +22985,9 @@ const wE = /* @__PURE__ */ Ne(yE, [["render", xE], ["__scopeId", "data-v-1fd8b95
|
|
|
22987
22985
|
return Ke(p, (V, j) => {
|
|
22988
22986
|
h.value = u.value[V];
|
|
22989
22987
|
}), gt(() => {
|
|
22990
|
-
window.addEventListener("paste",
|
|
22988
|
+
window.addEventListener("paste", Z);
|
|
22991
22989
|
}), En(() => {
|
|
22992
|
-
window.removeEventListener("paste",
|
|
22990
|
+
window.removeEventListener("paste", Z);
|
|
22993
22991
|
}), t({
|
|
22994
22992
|
chooseFiles: $
|
|
22995
22993
|
}), (V, j) => {
|
|
@@ -23087,7 +23085,7 @@ const wE = /* @__PURE__ */ Ne(yE, [["render", xE], ["__scopeId", "data-v-1fd8b95
|
|
|
23087
23085
|
]]),
|
|
23088
23086
|
onDragstart: j[3] || (j[3] = ct(() => {
|
|
23089
23087
|
}, ["prevent"])),
|
|
23090
|
-
onClick: (B) =>
|
|
23088
|
+
onClick: (B) => q(O, I)
|
|
23091
23089
|
}, [
|
|
23092
23090
|
pe(L1, {
|
|
23093
23091
|
isMobile: e.isMobile,
|
|
@@ -23525,7 +23523,7 @@ function YE() {
|
|
|
23525
23523
|
...r((Ce = (le = S.content) == null ? void 0 : le.body) == null ? void 0 : Ce.attendant)
|
|
23526
23524
|
];
|
|
23527
23525
|
if ((G === "remove-participant" || G === "leave-group") && O && (te.includes(O) || J.length > 0 && !J.includes(O)))
|
|
23528
|
-
return
|
|
23526
|
+
return q(z), R(z), null;
|
|
23529
23527
|
const ae = u(
|
|
23530
23528
|
I == null ? void 0 : I.participants,
|
|
23531
23529
|
te,
|
|
@@ -23727,7 +23725,7 @@ function YE() {
|
|
|
23727
23725
|
return ((z = S.internal_chat) == null ? void 0 : z.channel_id) !== A && S.id !== A;
|
|
23728
23726
|
}
|
|
23729
23727
|
));
|
|
23730
|
-
},
|
|
23728
|
+
}, q = (A) => {
|
|
23731
23729
|
if (!A) return;
|
|
23732
23730
|
const S = h(A);
|
|
23733
23731
|
S && (S.is_group ? S.chat_info = {
|
|
@@ -23735,7 +23733,7 @@ function YE() {
|
|
|
23735
23733
|
hasNextPage: !1,
|
|
23736
23734
|
currentPage: 1
|
|
23737
23735
|
} : (S.messages = [], S.hasNextPage = !1, S.currentPage = 1));
|
|
23738
|
-
},
|
|
23736
|
+
}, Z = (A, S) => {
|
|
23739
23737
|
if (!A || !S) return;
|
|
23740
23738
|
const z = h(A);
|
|
23741
23739
|
!z || !Array.isArray(z.participants) || (z.participants = z.participants.filter(
|
|
@@ -23745,7 +23743,7 @@ function YE() {
|
|
|
23745
23743
|
if (!A) return !1;
|
|
23746
23744
|
try {
|
|
23747
23745
|
const S = Si(A, "leave"), z = await xt.post(S);
|
|
23748
|
-
return Vi(z == null ? void 0 : z.status) ? (
|
|
23746
|
+
return Vi(z == null ? void 0 : z.status) ? (q(A), R(A), !0) : !1;
|
|
23749
23747
|
} catch (S) {
|
|
23750
23748
|
return console.error("Erro ao sair do grupo:", S), !1;
|
|
23751
23749
|
}
|
|
@@ -23757,7 +23755,7 @@ function YE() {
|
|
|
23757
23755
|
const O = Si(A, "remove"), I = await xt.post(O, {
|
|
23758
23756
|
participants: z
|
|
23759
23757
|
});
|
|
23760
|
-
return Vi(I == null ? void 0 : I.status) ? (
|
|
23758
|
+
return Vi(I == null ? void 0 : I.status) ? (Z(A, S), !0) : !1;
|
|
23761
23759
|
} catch (O) {
|
|
23762
23760
|
return console.error("Erro ao remover participante:", O), !1;
|
|
23763
23761
|
}
|
|
@@ -24135,8 +24133,8 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
|
|
|
24135
24133
|
loadingGroupList: D,
|
|
24136
24134
|
hasMoreGroups: Y,
|
|
24137
24135
|
loadNextGroupPage: R,
|
|
24138
|
-
createGroup:
|
|
24139
|
-
fetchGroupChannels:
|
|
24136
|
+
createGroup: q,
|
|
24137
|
+
fetchGroupChannels: Z,
|
|
24140
24138
|
fetchMessagesByChannel: V,
|
|
24141
24139
|
addMessageToChannel: j,
|
|
24142
24140
|
leaveGroup: A,
|
|
@@ -24174,7 +24172,7 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
|
|
|
24174
24172
|
const ke = Ks({
|
|
24175
24173
|
openCreateOrEdit: k,
|
|
24176
24174
|
closeCreateOrEdit: _,
|
|
24177
|
-
fetchGroupChannels:
|
|
24175
|
+
fetchGroupChannels: Z,
|
|
24178
24176
|
loadNextGroupPage: R,
|
|
24179
24177
|
hasMoreGroups: Y,
|
|
24180
24178
|
selectChatToOpen: ve,
|
|
@@ -24213,7 +24211,7 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
|
|
|
24213
24211
|
}, Be = async (Ue, Ge) => {
|
|
24214
24212
|
w.value = [], x.value = !0;
|
|
24215
24213
|
try {
|
|
24216
|
-
return !!await
|
|
24214
|
+
return !!await q(Ue, Ge);
|
|
24217
24215
|
} catch (Ye) {
|
|
24218
24216
|
return w.value = Xe(Ye), !1;
|
|
24219
24217
|
} finally {
|
|
@@ -24250,7 +24248,7 @@ const JE = { class: "popper-header bg-base-300 border-b border-base-200" }, XE =
|
|
|
24250
24248
|
!Ge && !Ye && h.value && dt(), b.value && typeof _ == "function" && _();
|
|
24251
24249
|
};
|
|
24252
24250
|
gt(() => {
|
|
24253
|
-
n.isMobile || (document.addEventListener("click", ce), window.addEventListener("resize", yt)),
|
|
24251
|
+
n.isMobile || (document.addEventListener("click", ce), window.addEventListener("resize", yt)), Z(1, { force: !0 }).catch((Ue) => {
|
|
24254
24252
|
console.error("Erro ao carregar canais de grupo:", Ue);
|
|
24255
24253
|
});
|
|
24256
24254
|
}), Bt(() => {
|
|
@@ -24927,11 +24925,11 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
24927
24925
|
function R() {
|
|
24928
24926
|
u("depart", m.value);
|
|
24929
24927
|
}
|
|
24930
|
-
function
|
|
24928
|
+
function q(S, z) {
|
|
24931
24929
|
S.selected = !1, m.value.splice(z, 1), u("depart", m.value);
|
|
24932
24930
|
}
|
|
24933
|
-
const
|
|
24934
|
-
Ke(
|
|
24931
|
+
const Z = P(() => p.value.trim().length > 0);
|
|
24932
|
+
Ke(Z, (S) => {
|
|
24935
24933
|
u("searching", S);
|
|
24936
24934
|
});
|
|
24937
24935
|
function V(S) {
|
|
@@ -25092,7 +25090,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25092
25090
|
}, [
|
|
25093
25091
|
o("span", Y$, N(I.name), 1),
|
|
25094
25092
|
o("button", {
|
|
25095
|
-
onClick: (G) =>
|
|
25093
|
+
onClick: (G) => q(I, B),
|
|
25096
25094
|
class: "close-btn"
|
|
25097
25095
|
}, [...z[14] || (z[14] = [
|
|
25098
25096
|
o("svg", {
|
|
@@ -25253,8 +25251,8 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25253
25251
|
emits: ["attend", "component-mounted"],
|
|
25254
25252
|
setup(e, { emit: t }) {
|
|
25255
25253
|
const n = e, a = X(null);
|
|
25256
|
-
function i(
|
|
25257
|
-
a.value && !a.value.contains(
|
|
25254
|
+
function i(Z) {
|
|
25255
|
+
a.value && !a.value.contains(Z.target) && (p.value = !1);
|
|
25258
25256
|
}
|
|
25259
25257
|
const r = P(() => ({
|
|
25260
25258
|
"--primary-color": n.primaryColor,
|
|
@@ -25264,36 +25262,36 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25264
25262
|
"--border-radius": n.borderRadius
|
|
25265
25263
|
})), c = t, u = Sa(), h = X(""), p = X(!1), m = X([]);
|
|
25266
25264
|
function y() {
|
|
25267
|
-
const
|
|
25265
|
+
const Z = Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : [];
|
|
25268
25266
|
return new Set(
|
|
25269
|
-
|
|
25267
|
+
Z.filter(Boolean).map((V) => typeof V == "object" ? V.id : V)
|
|
25270
25268
|
);
|
|
25271
25269
|
}
|
|
25272
25270
|
const x = P(() => {
|
|
25273
|
-
const
|
|
25271
|
+
const Z = u.attendants.filter((j) => j.status === !0), V = h.value ? Z.filter(
|
|
25274
25272
|
(j) => j.name.toLowerCase().includes(h.value.toLowerCase())
|
|
25275
|
-
) :
|
|
25273
|
+
) : Z;
|
|
25276
25274
|
return g(w(V));
|
|
25277
25275
|
});
|
|
25278
|
-
function w(
|
|
25276
|
+
function w(Z) {
|
|
25279
25277
|
var V;
|
|
25280
25278
|
if (n.method === "remove")
|
|
25281
|
-
return (Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] :
|
|
25279
|
+
return (Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : Z).filter((A) => {
|
|
25282
25280
|
var z;
|
|
25283
25281
|
return (typeof A == "object" ? A.id : A) !== ((z = n == null ? void 0 : n.attDel) == null ? void 0 : z.id);
|
|
25284
25282
|
});
|
|
25285
25283
|
if (n.method === "addParticipant") {
|
|
25286
25284
|
const j = y();
|
|
25287
|
-
return (V = n == null ? void 0 : n.attDel) != null && V.id && j.add(n.attDel.id),
|
|
25285
|
+
return (V = n == null ? void 0 : n.attDel) != null && V.id && j.add(n.attDel.id), Z.filter((A) => !j.has(A.id));
|
|
25288
25286
|
}
|
|
25289
|
-
return
|
|
25287
|
+
return Z;
|
|
25290
25288
|
}
|
|
25291
|
-
function g(
|
|
25292
|
-
return Array.isArray(n.department) && n.department.length > 0 ?
|
|
25289
|
+
function g(Z) {
|
|
25290
|
+
return Array.isArray(n.department) && n.department.length > 0 ? Z.filter(
|
|
25293
25291
|
(V) => V.department.some(
|
|
25294
25292
|
(j) => n.department.some((A) => A.id === j.id)
|
|
25295
25293
|
)
|
|
25296
|
-
) :
|
|
25294
|
+
) : Z;
|
|
25297
25295
|
}
|
|
25298
25296
|
P(() => n.variant === "expanded");
|
|
25299
25297
|
const b = P(() => n.variant === "dropdown"), k = P(() => ({
|
|
@@ -25303,14 +25301,14 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25303
25301
|
})), _ = P(() => ({
|
|
25304
25302
|
gridTemplateColumns: `repeat(auto-fit, minmax(${n.minColumnWidth}, 1fr))`
|
|
25305
25303
|
})), $ = P(() => {
|
|
25306
|
-
var
|
|
25307
|
-
return m.value.length > 0 ? n.multiSelect ? `Selecionados: ${m.value.length}` : `Selecionado: ${(
|
|
25304
|
+
var Z;
|
|
25305
|
+
return m.value.length > 0 ? n.multiSelect ? `Selecionados: ${m.value.length}` : `Selecionado: ${(Z = m.value[0]) == null ? void 0 : Z.name}` : n.placeholder;
|
|
25308
25306
|
}), M = X(n.multiSelect ? [] : "");
|
|
25309
25307
|
Ke(
|
|
25310
25308
|
m,
|
|
25311
|
-
(
|
|
25309
|
+
(Z) => {
|
|
25312
25310
|
var V;
|
|
25313
|
-
n.multiSelect ? M.value =
|
|
25311
|
+
n.multiSelect ? M.value = Z.map((j) => j.id) : M.value = ((V = Z[0]) == null ? void 0 : V.id) || "";
|
|
25314
25312
|
},
|
|
25315
25313
|
{ deep: !0 }
|
|
25316
25314
|
), gt(() => {
|
|
@@ -25333,36 +25331,36 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25333
25331
|
() => n.department,
|
|
25334
25332
|
() => C(),
|
|
25335
25333
|
{ deep: !0 }
|
|
25336
|
-
), Ke(p, (
|
|
25337
|
-
|
|
25334
|
+
), Ke(p, (Z) => {
|
|
25335
|
+
Z || (h.value = "");
|
|
25338
25336
|
});
|
|
25339
25337
|
function C() {
|
|
25340
25338
|
T(), D();
|
|
25341
25339
|
}
|
|
25342
25340
|
function T() {
|
|
25343
|
-
u.attendants.forEach((
|
|
25341
|
+
u.attendants.forEach((Z) => Z.selected = !1), m.value = [];
|
|
25344
25342
|
}
|
|
25345
25343
|
function D() {
|
|
25346
25344
|
if (!n.preselect) return;
|
|
25347
|
-
const
|
|
25348
|
-
if (!(
|
|
25345
|
+
const Z = u.attendants;
|
|
25346
|
+
if (!(Z != null && Z.length)) return;
|
|
25349
25347
|
(Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : []).forEach((j) => {
|
|
25350
|
-
const A = typeof j == "object" ? j.id : j, S =
|
|
25348
|
+
const A = typeof j == "object" ? j.id : j, S = Z.find((z) => z.id === A);
|
|
25351
25349
|
S && !m.value.some((z) => z.id === A) && (S.selected = !0, m.value.push(S));
|
|
25352
25350
|
}), c("attend", m.value);
|
|
25353
25351
|
}
|
|
25354
|
-
function Y(
|
|
25355
|
-
if (Z
|
|
25356
|
-
const V = m.value.findIndex((j) => j.id ===
|
|
25357
|
-
V !== -1 ? (
|
|
25352
|
+
function Y(Z) {
|
|
25353
|
+
if (q(Z.id)) return;
|
|
25354
|
+
const V = m.value.findIndex((j) => j.id === Z.id);
|
|
25355
|
+
V !== -1 ? (Z.selected = !1, m.value.splice(V, 1)) : (n.multiSelect || T(), Z.selected = !0, m.value.push(Z)), c("attend", m.value), n.multiSelect || (p.value = !1);
|
|
25358
25356
|
}
|
|
25359
|
-
function R(
|
|
25360
|
-
|
|
25357
|
+
function R(Z, V) {
|
|
25358
|
+
Z.selected = !1, m.value.splice(V, 1), c("attend", m.value);
|
|
25361
25359
|
}
|
|
25362
|
-
function Z
|
|
25363
|
-
return n.disabledItems.some((V) => typeof V == "object" ? V.id ===
|
|
25360
|
+
function q(Z) {
|
|
25361
|
+
return n.disabledItems.some((V) => typeof V == "object" ? V.id === Z : V === Z);
|
|
25364
25362
|
}
|
|
25365
|
-
return (
|
|
25363
|
+
return (Z, V) => {
|
|
25366
25364
|
var j;
|
|
25367
25365
|
return l(), f("div", {
|
|
25368
25366
|
class: U(["depart-select-container", k.value]),
|
|
@@ -25415,7 +25413,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25415
25413
|
onClick: (S) => Y(A),
|
|
25416
25414
|
class: U([{
|
|
25417
25415
|
"dropdown-option-selected": A.selected,
|
|
25418
|
-
"dropdown-option-disabled":
|
|
25416
|
+
"dropdown-option-disabled": q(A.id)
|
|
25419
25417
|
}, "dropdown-option"])
|
|
25420
25418
|
}, [
|
|
25421
25419
|
e.showAvatar ? (l(), f(ye, { key: 0 }, [
|
|
@@ -25452,7 +25450,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25452
25450
|
d: "m4.5 12.75 6 6 9-13.5"
|
|
25453
25451
|
})
|
|
25454
25452
|
], -1)
|
|
25455
|
-
])])) :
|
|
25453
|
+
])])) : q(A.id) ? (l(), f("span", hL, N(e.disabledReason), 1)) : F("", !0)
|
|
25456
25454
|
], 10, dL))), 128)),
|
|
25457
25455
|
x.value.length === 0 ? (l(), f("div", mL, [
|
|
25458
25456
|
(l(), f("svg", pL, [...V[11] || (V[11] = [
|
|
@@ -25546,7 +25544,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25546
25544
|
onClick: (S) => Y(A),
|
|
25547
25545
|
class: U([{
|
|
25548
25546
|
selected: A.selected,
|
|
25549
|
-
"is-disabled":
|
|
25547
|
+
"is-disabled": q(A.id)
|
|
25550
25548
|
}, "department-item bg-slate-500/20 hover:bg-primary"])
|
|
25551
25549
|
}, [
|
|
25552
25550
|
e.showAvatar ? (l(), f("div", CL, [
|
|
@@ -25568,7 +25566,7 @@ const O$ = { class: "dropdown-trigger-text" }, D$ = {
|
|
|
25568
25566
|
onMouseenter: V[6] || (V[6] = (...S) => oe(Da) && oe(Da)(...S)),
|
|
25569
25567
|
onMouseleave: V[7] || (V[7] = (...S) => oe(Ra) && oe(Ra)(...S))
|
|
25570
25568
|
}, N(A.name), 33),
|
|
25571
|
-
|
|
25569
|
+
q(A.id) ? (l(), f("span", SL, N(e.disabledReason), 1)) : F("", !0)
|
|
25572
25570
|
], 10, _L))), 128)) : F("", !0)
|
|
25573
25571
|
], 4)
|
|
25574
25572
|
]),
|
|
@@ -54704,7 +54702,7 @@ const q4 = {
|
|
|
54704
54702
|
}, R = (xe) => {
|
|
54705
54703
|
const ke = xe.id;
|
|
54706
54704
|
return fe.value[ke] ? (ee.value[ke] ?? String(_(xe))).replace(".", ",") : String(_(xe)).replace(".", ",");
|
|
54707
|
-
},
|
|
54705
|
+
}, q = (xe) => {
|
|
54708
54706
|
if (n.readonly || te(xe)) return;
|
|
54709
54707
|
const ke = h.value.find((Re) => w(Re) === xe.id);
|
|
54710
54708
|
ke ? ke.quantity++ : (h.value.push({
|
|
@@ -54712,7 +54710,7 @@ const q4 = {
|
|
|
54712
54710
|
quantity: 1,
|
|
54713
54711
|
discount: 0
|
|
54714
54712
|
}), ee.value[xe.id] = "0");
|
|
54715
|
-
},
|
|
54713
|
+
}, Z = (xe) => {
|
|
54716
54714
|
if (n.readonly || te(xe)) return;
|
|
54717
54715
|
const ke = h.value.find((Re) => w(Re) === xe.id);
|
|
54718
54716
|
ke && (ke.quantity > 0 ? ke.quantity-- : ke.quantity = 0);
|
|
@@ -54999,7 +54997,7 @@ const q4 = {
|
|
|
54999
54997
|
o("button", {
|
|
55000
54998
|
disabled: te(Be) || e.readonly,
|
|
55001
54999
|
class: "action-list-button bg-base-200",
|
|
55002
|
-
onClick: (le) =>
|
|
55000
|
+
onClick: (le) => Z(Be)
|
|
55003
55001
|
}, " - ", 8, uV),
|
|
55004
55002
|
o("p", {
|
|
55005
55003
|
class: U(["w-5 text-xs flex items-center justify-center font-semibold font-sans", b(Be) > 0 ? "text-white dark:text-black" : ""])
|
|
@@ -55007,7 +55005,7 @@ const q4 = {
|
|
|
55007
55005
|
o("button", {
|
|
55008
55006
|
disabled: te(Be) || e.readonly,
|
|
55009
55007
|
class: "action-list-button bg-base-200",
|
|
55010
|
-
onClick: (le) =>
|
|
55008
|
+
onClick: (le) => q(Be)
|
|
55011
55009
|
}, " + ", 8, dV)
|
|
55012
55010
|
]),
|
|
55013
55011
|
b(Be) > 0 ? (l(), _e(Re, {
|
|
@@ -55502,19 +55500,19 @@ const q4 = {
|
|
|
55502
55500
|
() => !y.value && !$.value
|
|
55503
55501
|
), R = P(
|
|
55504
55502
|
() => M.value ? c.value[0] ?? null : n.loggedAttendant
|
|
55505
|
-
),
|
|
55503
|
+
), q = P(
|
|
55506
55504
|
() => {
|
|
55507
55505
|
var se;
|
|
55508
55506
|
return ((se = R.value) == null ? void 0 : se.id) ?? null;
|
|
55509
55507
|
}
|
|
55510
|
-
),
|
|
55511
|
-
() => String(
|
|
55508
|
+
), Z = P(
|
|
55509
|
+
() => String(q.value) === String(n.loggedAttendantId)
|
|
55512
55510
|
), V = P(() => M.value ? "Neste fluxo, você pode atribuir qualquer atendente do departamento selecionado." : $.value && !n.hasDepartmentMembership($.value) ? "Você não pertence ao departamento selecionado, então não pode criar carteira nele." : T.value ? "Este contato já possui um vínculo de carteira nesse departamento." : "Neste fluxo, o atendente responsável deve ser você."), j = P(() => !M.value), A = P(() => !M.value && T.value ? "Já vinculado no departamento" : M.value ? "Já encarteirado" : "Somente você"), S = P(() => {
|
|
55513
55511
|
var ee;
|
|
55514
55512
|
if (!n.contactId || !R.value || !$.value)
|
|
55515
55513
|
return !1;
|
|
55516
55514
|
const se = (ee = R.value) == null ? void 0 : ee.id, ae = $.value;
|
|
55517
|
-
return !M.value && (!n.loggedAttendantId || !
|
|
55515
|
+
return !M.value && (!n.loggedAttendantId || !Z.value || !n.hasDepartmentMembership(ae) || T.value) ? !1 : !h.value.some(
|
|
55518
55516
|
(fe) => String(fe.attendant_id) === String(se) && String(fe.department_id) === String(ae)
|
|
55519
55517
|
);
|
|
55520
55518
|
}), z = () => {
|
|
@@ -55992,7 +55990,7 @@ const q4 = {
|
|
|
55992
55990
|
canRemove: _(G) || g(G) && String(B) === String(y.value)
|
|
55993
55991
|
};
|
|
55994
55992
|
})
|
|
55995
|
-
),
|
|
55993
|
+
), q = async () => {
|
|
55996
55994
|
const O = [];
|
|
55997
55995
|
!n.loaded && n.attendants.length === 0 && O.push(
|
|
55998
55996
|
n.fetchAttendants().then(() => {
|
|
@@ -56003,7 +56001,7 @@ const q4 = {
|
|
|
56003
56001
|
a.loaded = !0;
|
|
56004
56002
|
})
|
|
56005
56003
|
), O.length > 0 && await Promise.all(O);
|
|
56006
|
-
},
|
|
56004
|
+
}, Z = async ({ force: O = !1 } = {}) => {
|
|
56007
56005
|
var B, G;
|
|
56008
56006
|
const I = t.contactId;
|
|
56009
56007
|
if (!I) {
|
|
@@ -56014,7 +56012,7 @@ const q4 = {
|
|
|
56014
56012
|
try {
|
|
56015
56013
|
r.value = !0, c.value = "";
|
|
56016
56014
|
const [, { data: J }] = await Promise.all([
|
|
56017
|
-
|
|
56015
|
+
q(),
|
|
56018
56016
|
xt.get(g1(I))
|
|
56019
56017
|
]);
|
|
56020
56018
|
i.value = $(J), u.value = I;
|
|
@@ -56092,7 +56090,7 @@ const q4 = {
|
|
|
56092
56090
|
return Ke(
|
|
56093
56091
|
() => [t.pageState, t.contactId],
|
|
56094
56092
|
async ([O, I]) => {
|
|
56095
|
-
O === "wallet" && I &&
|
|
56093
|
+
O === "wallet" && I && Z();
|
|
56096
56094
|
},
|
|
56097
56095
|
{ immediate: !0 }
|
|
56098
56096
|
), (O, I) => (l(), f("div", Nj, [
|
|
@@ -56123,7 +56121,7 @@ const q4 = {
|
|
|
56123
56121
|
o("button", {
|
|
56124
56122
|
class: "wallet-refresh-btn",
|
|
56125
56123
|
disabled: r.value || !t.contactId,
|
|
56126
|
-
onClick: I[0] || (I[0] = (B) =>
|
|
56124
|
+
onClick: I[0] || (I[0] = (B) => Z({ force: !0 }))
|
|
56127
56125
|
}, [...I[4] || (I[4] = [
|
|
56128
56126
|
o("svg", {
|
|
56129
56127
|
class: "size-3.5",
|
|
@@ -56160,7 +56158,7 @@ const q4 = {
|
|
|
56160
56158
|
o("p", Jj, N(c.value), 1),
|
|
56161
56159
|
o("button", {
|
|
56162
56160
|
class: "wallet-retry-btn",
|
|
56163
|
-
onClick: I[1] || (I[1] = (B) =>
|
|
56161
|
+
onClick: I[1] || (I[1] = (B) => Z({ force: !0 }))
|
|
56164
56162
|
}, " Tentar novamente ")
|
|
56165
56163
|
])) : R.value.length === 0 ? (l(), f("div", Xj, [...I[9] || (I[9] = [
|
|
56166
56164
|
o("svg", {
|
|
@@ -57458,9 +57456,9 @@ const q4 = {
|
|
|
57458
57456
|
return n.size === "large" && G.push("merge-card__avatar--lg"), n.avatarVariant === "brand" ? G.push("merge-card__avatar--brand") : n.selected ? G.push("merge-card__avatar--selected") : n.variant === "primary" ? G.push("merge-card__avatar--primary") : n.variant === "danger" && G.push("merge-card__avatar--danger"), G;
|
|
57459
57457
|
}), Y = P(() => u.value ? "flex min-w-0 flex-1 flex-col gap-1" : "merge-card__info"), R = () => {
|
|
57460
57458
|
!u.value && n.selectable && a("select", n.contact);
|
|
57461
|
-
},
|
|
57462
|
-
Z,
|
|
57459
|
+
}, q = N4(() => n.contact), Z = V4(() => n.contact), V = j4(() => n.contact), j = Z4(
|
|
57463
57460
|
q,
|
|
57461
|
+
Z,
|
|
57464
57462
|
V
|
|
57465
57463
|
), A = X(!1), S = X(!1), z = X(!1), O = (G) => {
|
|
57466
57464
|
G.stopPropagation(), A.value = !A.value, S.value = !1, z.value = !1;
|
|
@@ -57510,7 +57508,7 @@ const q4 = {
|
|
|
57510
57508
|
"instagram-user-name": e.contact.instagram_user_name
|
|
57511
57509
|
}, null, 8, ["instagram-user-name"])) : F("", !0),
|
|
57512
57510
|
!u.value && oe(j) ? (l(), f("div", Lq, [
|
|
57513
|
-
oe(
|
|
57511
|
+
oe(q).length ? (l(), _e(te, {
|
|
57514
57512
|
key: 0,
|
|
57515
57513
|
placement: "bottom-start",
|
|
57516
57514
|
class: "popper-dark",
|
|
@@ -57524,7 +57522,7 @@ const q4 = {
|
|
|
57524
57522
|
}, [
|
|
57525
57523
|
J[5] || (J[5] = o("p", { class: "stack-popover__title stack-popover__title--wa" }, " WhatsApp ", -1)),
|
|
57526
57524
|
o("div", Tq, [
|
|
57527
|
-
(l(!0), f(ye, null, He(oe(
|
|
57525
|
+
(l(!0), f(ye, null, He(oe(q), (ee) => (l(), f("div", {
|
|
57528
57526
|
key: ee.id,
|
|
57529
57527
|
class: "stack-popover__item stack-popover__item--wa"
|
|
57530
57528
|
}, [
|
|
@@ -57549,12 +57547,12 @@ const q4 = {
|
|
|
57549
57547
|
o("path", { d: "M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z" })
|
|
57550
57548
|
], -1)),
|
|
57551
57549
|
J[4] || (J[4] = o("span", null, "WhatsApp", -1)),
|
|
57552
|
-
o("span", Pq, N(oe(
|
|
57550
|
+
o("span", Pq, N(oe(q).length), 1)
|
|
57553
57551
|
])
|
|
57554
57552
|
]),
|
|
57555
57553
|
_: 1
|
|
57556
57554
|
})) : F("", !0),
|
|
57557
|
-
oe(
|
|
57555
|
+
oe(Z).length ? (l(), _e(te, {
|
|
57558
57556
|
key: 1,
|
|
57559
57557
|
placement: "bottom",
|
|
57560
57558
|
class: "popper-dark",
|
|
@@ -57568,7 +57566,7 @@ const q4 = {
|
|
|
57568
57566
|
}, [
|
|
57569
57567
|
J[8] || (J[8] = o("p", { class: "stack-popover__title stack-popover__title--ig" }, " Instagram ", -1)),
|
|
57570
57568
|
o("div", Oq, [
|
|
57571
|
-
(l(!0), f(ye, null, He(oe(
|
|
57569
|
+
(l(!0), f(ye, null, He(oe(Z), (ee) => (l(), f("div", {
|
|
57572
57570
|
key: ee.id,
|
|
57573
57571
|
class: "stack-popover__item stack-popover__item--ig"
|
|
57574
57572
|
}, [
|
|
@@ -57620,7 +57618,7 @@ const q4 = {
|
|
|
57620
57618
|
})
|
|
57621
57619
|
], -1)),
|
|
57622
57620
|
J[7] || (J[7] = o("span", { class: "conn-btn__ig-label" }, "Instagram", -1)),
|
|
57623
|
-
o("span", Fq, N(oe(
|
|
57621
|
+
o("span", Fq, N(oe(Z).length), 1)
|
|
57624
57622
|
])
|
|
57625
57623
|
]),
|
|
57626
57624
|
_: 1
|
|
@@ -58048,13 +58046,13 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
|
|
|
58048
58046
|
return g.forEach(($) => {
|
|
58049
58047
|
const M = x.get($), C = w.get($), T = u(M), D = u(C), Y = !c(M == null ? void 0 : M.content), R = !c(C == null ? void 0 : C.content);
|
|
58050
58048
|
if (T !== D && (Y || R)) {
|
|
58051
|
-
const
|
|
58049
|
+
const q = Y || !R ? M : C, Z = !Y && R, V = h(q), j = Z ? M : C, A = j && !c(j.content) && u(j) !== u(q) ? h(j) : null;
|
|
58052
58050
|
b.push({
|
|
58053
|
-
id:
|
|
58054
|
-
name:
|
|
58051
|
+
id: q.id,
|
|
58052
|
+
name: q.name,
|
|
58055
58053
|
finalValue: V,
|
|
58056
58054
|
discardedValue: A,
|
|
58057
|
-
incorporatedFromChild: !!
|
|
58055
|
+
incorporatedFromChild: !!Z
|
|
58058
58056
|
});
|
|
58059
58057
|
}
|
|
58060
58058
|
}), {
|
|
@@ -58285,7 +58283,7 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
|
|
|
58285
58283
|
},
|
|
58286
58284
|
setup(e) {
|
|
58287
58285
|
const t = e, n = P(() => {
|
|
58288
|
-
var k, _, $, M, C, T, D, Y, R,
|
|
58286
|
+
var k, _, $, M, C, T, D, Y, R, q, Z, V, j, A, S, z;
|
|
58289
58287
|
const x = t.mergePreview || {
|
|
58290
58288
|
name: ((k = t.parentContact) == null ? void 0 : k.name) || ((_ = t.childContact) == null ? void 0 : _.name),
|
|
58291
58289
|
telephone: (($ = t.parentContact) == null ? void 0 : $.telephone) || ((M = t.childContact) == null ? void 0 : M.telephone),
|
|
@@ -58293,9 +58291,9 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
|
|
|
58293
58291
|
instagram_user_name: ((D = t.parentContact) == null ? void 0 : D.instagram_user_name) || ((Y = t.childContact) == null ? void 0 : Y.instagram_user_name)
|
|
58294
58292
|
}, w = [
|
|
58295
58293
|
...((R = t.parentContact) == null ? void 0 : R.whatsapp_infos) || [],
|
|
58296
|
-
...((
|
|
58294
|
+
...((q = t.childContact) == null ? void 0 : q.whatsapp_infos) || []
|
|
58297
58295
|
], g = [
|
|
58298
|
-
...((
|
|
58296
|
+
...((Z = t.parentContact) == null ? void 0 : Z.instagram_infos) || [],
|
|
58299
58297
|
...((V = t.childContact) == null ? void 0 : V.instagram_infos) || []
|
|
58300
58298
|
], b = [
|
|
58301
58299
|
...((j = t.parentContact) == null ? void 0 : j.telegram_infos) || [],
|
|
@@ -58310,38 +58308,38 @@ const sG = /* @__PURE__ */ Ne(tG, [["render", aG]]), oG = {
|
|
|
58310
58308
|
};
|
|
58311
58309
|
}), a = X(0), i = X(0), r = X(0), c = X(0), u = X(!1), h = X(!1), p = P(() => {
|
|
58312
58310
|
var $, M, C, T, D, Y;
|
|
58313
|
-
const x = ((($ = t.parentContact) == null ? void 0 : $.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R,
|
|
58314
|
-
id: R.id || `pwa-${
|
|
58311
|
+
const x = ((($ = t.parentContact) == null ? void 0 : $.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
|
|
58312
|
+
id: R.id || `pwa-${q}`,
|
|
58315
58313
|
platform: "whatsapp",
|
|
58316
58314
|
instanceName: R.instance,
|
|
58317
58315
|
userName: R.whatsapp_user_name || "",
|
|
58318
58316
|
fromChild: !1
|
|
58319
|
-
})), w = (((M = t.childContact) == null ? void 0 : M.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R,
|
|
58320
|
-
id: R.id || `cwa-${
|
|
58317
|
+
})), w = (((M = t.childContact) == null ? void 0 : M.whatsapp_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
|
|
58318
|
+
id: R.id || `cwa-${q}`,
|
|
58321
58319
|
platform: "whatsapp",
|
|
58322
58320
|
instanceName: R.instance,
|
|
58323
58321
|
userName: R.whatsapp_user_name || "",
|
|
58324
58322
|
fromChild: !0
|
|
58325
|
-
})), g = (((C = t.parentContact) == null ? void 0 : C.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R,
|
|
58326
|
-
id: R.id || `pig-${
|
|
58323
|
+
})), g = (((C = t.parentContact) == null ? void 0 : C.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
|
|
58324
|
+
id: R.id || `pig-${q}`,
|
|
58327
58325
|
platform: "instagram",
|
|
58328
58326
|
instanceName: R.instance,
|
|
58329
58327
|
userName: R.instagram_user_name || "",
|
|
58330
58328
|
fromChild: !1
|
|
58331
|
-
})), b = (((T = t.childContact) == null ? void 0 : T.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R,
|
|
58332
|
-
id: R.id || `cig-${
|
|
58329
|
+
})), b = (((T = t.childContact) == null ? void 0 : T.instagram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
|
|
58330
|
+
id: R.id || `cig-${q}`,
|
|
58333
58331
|
platform: "instagram",
|
|
58334
58332
|
instanceName: R.instance,
|
|
58335
58333
|
userName: R.instagram_user_name || "",
|
|
58336
58334
|
fromChild: !0
|
|
58337
|
-
})), k = (((D = t.parentContact) == null ? void 0 : D.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R,
|
|
58338
|
-
id: R.id || `ptg-${
|
|
58335
|
+
})), k = (((D = t.parentContact) == null ? void 0 : D.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
|
|
58336
|
+
id: R.id || `ptg-${q}`,
|
|
58339
58337
|
platform: "telegram",
|
|
58340
58338
|
instanceName: R.instance,
|
|
58341
58339
|
userName: R.telegram_user_name || "",
|
|
58342
58340
|
fromChild: !1
|
|
58343
|
-
})), _ = (((Y = t.childContact) == null ? void 0 : Y.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R,
|
|
58344
|
-
id: R.id || `ctg-${
|
|
58341
|
+
})), _ = (((Y = t.childContact) == null ? void 0 : Y.telegram_infos) || []).filter((R) => R == null ? void 0 : R.instance).map((R, q) => ({
|
|
58342
|
+
id: R.id || `ctg-${q}`,
|
|
58345
58343
|
platform: "telegram",
|
|
58346
58344
|
instanceName: R.instance,
|
|
58347
58345
|
userName: R.telegram_user_name || "",
|
|
@@ -58846,7 +58844,7 @@ const dW = {
|
|
|
58846
58844
|
)
|
|
58847
58845
|
), R = P(
|
|
58848
58846
|
() => T.value && D.value.canMerge
|
|
58849
|
-
),
|
|
58847
|
+
), q = P(() => D.value.canMerge && b.value && !w.value && T.value), Z = P(
|
|
58850
58848
|
() => r.value.filter((I) => {
|
|
58851
58849
|
var B;
|
|
58852
58850
|
return I.id !== ((B = M.value) == null ? void 0 : B.id);
|
|
@@ -58863,7 +58861,7 @@ const dW = {
|
|
|
58863
58861
|
}, z = () => {
|
|
58864
58862
|
x.value = "select", b.value = !1, g.value = "";
|
|
58865
58863
|
}, O = async () => {
|
|
58866
|
-
if (!
|
|
58864
|
+
if (!q.value) return;
|
|
58867
58865
|
const I = {
|
|
58868
58866
|
parentId: M.value.id ?? null,
|
|
58869
58867
|
childId: C.value.id ?? null,
|
|
@@ -59012,8 +59010,8 @@ const dW = {
|
|
|
59012
59010
|
class: "candidates-list",
|
|
59013
59011
|
key: oe(h)
|
|
59014
59012
|
}, [
|
|
59015
|
-
|
|
59016
|
-
(l(!0), f(ye, null, He(
|
|
59013
|
+
Z.value.length > 0 ? (l(), f(ye, { key: 0 }, [
|
|
59014
|
+
(l(!0), f(ye, null, He(Z.value, (G) => {
|
|
59017
59015
|
var J;
|
|
59018
59016
|
return l(), _e(Xs, {
|
|
59019
59017
|
key: G.id,
|
|
@@ -59163,7 +59161,7 @@ const dW = {
|
|
|
59163
59161
|
])], 8, HW)) : (l(), f("button", {
|
|
59164
59162
|
key: 3,
|
|
59165
59163
|
class: "btn-primary",
|
|
59166
|
-
disabled: !
|
|
59164
|
+
disabled: !q.value,
|
|
59167
59165
|
onClick: O
|
|
59168
59166
|
}, [
|
|
59169
59167
|
w.value ? (l(), f(ye, { key: 0 }, [
|
|
@@ -59394,15 +59392,15 @@ const dW = {
|
|
|
59394
59392
|
}), En(() => {
|
|
59395
59393
|
window.removeEventListener("resize", R);
|
|
59396
59394
|
});
|
|
59397
|
-
const
|
|
59395
|
+
const q = P(() => Y.value >= 640);
|
|
59398
59396
|
Ke(
|
|
59399
|
-
|
|
59397
|
+
q,
|
|
59400
59398
|
(j, A) => {
|
|
59401
59399
|
A ? a.value = "contact" : !A && j && (a.value = "data");
|
|
59402
59400
|
},
|
|
59403
59401
|
{ immediate: !0 }
|
|
59404
59402
|
);
|
|
59405
|
-
const
|
|
59403
|
+
const Z = [
|
|
59406
59404
|
{ label: "Informações", value: "data" },
|
|
59407
59405
|
{
|
|
59408
59406
|
label: "Produtos",
|
|
@@ -59429,8 +59427,8 @@ const dW = {
|
|
|
59429
59427
|
}
|
|
59430
59428
|
}
|
|
59431
59429
|
], V = P(() => {
|
|
59432
|
-
const j = { label: "Contato", value: "contact" }, A =
|
|
59433
|
-
return i.hasCrmPlus ?
|
|
59430
|
+
const j = { label: "Contato", value: "contact" }, A = Z.filter((S) => S.value !== "contact");
|
|
59431
|
+
return i.hasCrmPlus ? q.value ? [...A] : [j, ...A] : [j, ...A.filter((S) => S.value !== "products" && S.value !== "wallet")];
|
|
59434
59432
|
});
|
|
59435
59433
|
return (j, A) => {
|
|
59436
59434
|
var z, O, I;
|
|
@@ -59507,18 +59505,18 @@ const dW = {
|
|
|
59507
59505
|
])
|
|
59508
59506
|
]),
|
|
59509
59507
|
o("div", {
|
|
59510
|
-
class: U([
|
|
59508
|
+
class: U([q.value ? "grid grid-cols-2" : "flex", "modal-form-body"])
|
|
59511
59509
|
}, [
|
|
59512
59510
|
o("section", {
|
|
59513
|
-
class: U([
|
|
59511
|
+
class: U([q.value ? "p-2" : "p-1.5", "left-column"])
|
|
59514
59512
|
}, [
|
|
59515
|
-
|
|
59513
|
+
q.value ? F("", !0) : (l(), _e(H4, {
|
|
59516
59514
|
key: 0,
|
|
59517
59515
|
modelValue: a.value,
|
|
59518
59516
|
"onUpdate:modelValue": A[1] || (A[1] = (B) => a.value = B),
|
|
59519
59517
|
buttons: V.value
|
|
59520
59518
|
}, null, 8, ["modelValue", "buttons"])),
|
|
59521
|
-
|
|
59519
|
+
q.value || a.value === "contact" ? (l(), f("div", tU, [
|
|
59522
59520
|
pe(Sq, {
|
|
59523
59521
|
"has-crm-plus": e.hasCrmPlus,
|
|
59524
59522
|
outcome: r.outcome,
|
|
@@ -59535,7 +59533,7 @@ const dW = {
|
|
|
59535
59533
|
onPhotoRefresh: A[5] || (A[5] = (B) => n("photo-refresh", B))
|
|
59536
59534
|
}, null, 8, ["has-crm-plus", "outcome", "rating", "photo", "name", "blocked", "can-block-contacts", "contact-id"])
|
|
59537
59535
|
])) : F("", !0),
|
|
59538
|
-
|
|
59536
|
+
q.value || a.value === "contact" ? (l(), f("div", nU, [
|
|
59539
59537
|
o("div", aU, [
|
|
59540
59538
|
pe(V0, {
|
|
59541
59539
|
content: m.value[0],
|
|
@@ -59617,7 +59615,7 @@ const dW = {
|
|
|
59617
59615
|
])
|
|
59618
59616
|
])) : F("", !0)
|
|
59619
59617
|
])) : F("", !0),
|
|
59620
|
-
!
|
|
59618
|
+
!q.value && a.value !== "contact" ? (l(), f("section", cU, [
|
|
59621
59619
|
pe(Gd, {
|
|
59622
59620
|
"page-state": a.value,
|
|
59623
59621
|
"onUpdate:pageState": A[9] || (A[9] = (B) => a.value = B),
|
|
@@ -59638,13 +59636,13 @@ const dW = {
|
|
|
59638
59636
|
"department-bypass": e.departmentBypass,
|
|
59639
59637
|
"current-attendance": e.currentAttendance,
|
|
59640
59638
|
supervisor: i.supervisor,
|
|
59641
|
-
"is-large-screen":
|
|
59639
|
+
"is-large-screen": q.value,
|
|
59642
59640
|
"contact-id": r.id,
|
|
59643
59641
|
contact: r
|
|
59644
59642
|
}, null, 8, ["page-state", "telephone", "country", "instagram-user-name", "segmentation-fields", "products", "view-contact-number", "has-crm-plus", "handler-toggle-buttons", "all-products", "department-bypass", "current-attendance", "supervisor", "is-large-screen", "contact-id", "contact"])
|
|
59645
59643
|
])) : F("", !0)
|
|
59646
59644
|
], 2),
|
|
59647
|
-
|
|
59645
|
+
q.value ? (l(), f("section", uU, [
|
|
59648
59646
|
pe(Gd, {
|
|
59649
59647
|
"page-state": a.value,
|
|
59650
59648
|
"onUpdate:pageState": A[15] || (A[15] = (B) => a.value = B),
|
|
@@ -59665,7 +59663,7 @@ const dW = {
|
|
|
59665
59663
|
"department-bypass": e.departmentBypass,
|
|
59666
59664
|
"current-attendance": e.currentAttendance,
|
|
59667
59665
|
supervisor: i.supervisor,
|
|
59668
|
-
"is-large-screen":
|
|
59666
|
+
"is-large-screen": q.value,
|
|
59669
59667
|
"contact-id": r.id,
|
|
59670
59668
|
contact: r
|
|
59671
59669
|
}, null, 8, ["page-state", "telephone", "country", "instagram-user-name", "segmentation-fields", "products", "view-contact-number", "has-crm-plus", "handler-toggle-buttons", "all-products", "department-bypass", "current-attendance", "supervisor", "is-large-screen", "contact-id", "contact"])
|
|
@@ -60065,13 +60063,16 @@ const dW = {
|
|
|
60065
60063
|
});
|
|
60066
60064
|
}), p = P(() => i.value ? i.value.text : a.value ? t.achievement.hint ? `"${t.achievement.hint}"` : "Sem dica." : t.achievement.description || "Requisito não revelado."), m = P(() => i.value ? "" : a.value ? "italic" : t.achievement.description ? "" : "text-base-content/55"), y = P(() => {
|
|
60067
60065
|
const w = [];
|
|
60068
|
-
|
|
60066
|
+
if (u.value && w.push({
|
|
60069
60067
|
label: `+${u.value.toLocaleString("pt-BR")} XP`,
|
|
60070
60068
|
class: "font-black tracking-[0.02em] text-warning"
|
|
60071
|
-
}), c.value
|
|
60072
|
-
|
|
60073
|
-
|
|
60074
|
-
|
|
60069
|
+
}), c.value) {
|
|
60070
|
+
const g = i.value.seasonName;
|
|
60071
|
+
w.push(
|
|
60072
|
+
g ? { label: `${g}`, class: "font-bold text-sky-300 dark:text-sky-700" } : { label: i.value.scopeLabel, class: "text-warning/80" }
|
|
60073
|
+
);
|
|
60074
|
+
}
|
|
60075
|
+
return w;
|
|
60075
60076
|
}), x = P(
|
|
60076
60077
|
() => t.unlocked ? {
|
|
60077
60078
|
label: h.value ? `Desbloqueada em ${h.value}` : "Desbloqueada",
|
|
@@ -60279,8 +60280,8 @@ const qU = { class: "relative flex items-start gap-2.5" }, GU = { class: "min-w-
|
|
|
60279
60280
|
triggerRef: D,
|
|
60280
60281
|
mounted: Y,
|
|
60281
60282
|
open: R,
|
|
60282
|
-
panelStyle:
|
|
60283
|
-
placement:
|
|
60283
|
+
panelStyle: q,
|
|
60284
|
+
placement: Z,
|
|
60284
60285
|
scheduleOpen: V,
|
|
60285
60286
|
scheduleClose: j,
|
|
60286
60287
|
closeNow: A
|
|
@@ -60435,8 +60436,8 @@ const qU = { class: "relative flex items-start gap-2.5" }, GU = { class: "min-w-
|
|
|
60435
60436
|
default: Ae(() => [
|
|
60436
60437
|
oe(R) ? (l(), f("div", {
|
|
60437
60438
|
key: 0,
|
|
60438
|
-
class: U(["sm-hover-panel achievement-hint", `sm-hover-panel--${oe(
|
|
60439
|
-
style: Ve([oe(
|
|
60439
|
+
class: U(["sm-hover-panel achievement-hint", `sm-hover-panel--${oe(Z)}`]),
|
|
60440
|
+
style: Ve([oe(q), k.value]),
|
|
60440
60441
|
onMouseenter: O[1] || (O[1] = (...I) => oe(V) && oe(V)(...I)),
|
|
60441
60442
|
onMouseleave: O[2] || (O[2] = (...I) => oe(j) && oe(j)(...I))
|
|
60442
60443
|
}, [
|
|
@@ -62106,10 +62107,10 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
|
|
|
62106
62107
|
const G = Ps(z, O, void 0, B);
|
|
62107
62108
|
return [G, Ps(z, I, G)];
|
|
62108
62109
|
}
|
|
62109
|
-
})(M, A, S, k[0]), R = () => mr(M, M.l),
|
|
62110
|
+
})(M, A, S, k[0]), R = () => mr(M, M.l), q = (A, S) => {
|
|
62110
62111
|
const z = mr(M, A) - y;
|
|
62111
|
-
return S ? R() - z -
|
|
62112
|
-
},
|
|
62112
|
+
return S ? R() - z - Z(A) : z;
|
|
62113
|
+
}, Z = (A) => uf(M, A), V = (A, S = -1) => M.t[A] === S, j = (A) => {
|
|
62113
62114
|
A && (df() && w !== 0 || b && g === 1 ? y += A : m += A);
|
|
62114
62115
|
};
|
|
62115
62116
|
return {
|
|
@@ -62130,8 +62131,8 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
|
|
|
62130
62131
|
},
|
|
62131
62132
|
S: (A) => Ps(M, A - h),
|
|
62132
62133
|
I: V,
|
|
62133
|
-
O:
|
|
62134
|
-
k:
|
|
62134
|
+
O: q,
|
|
62135
|
+
k: Z,
|
|
62135
62136
|
j: () => M.l,
|
|
62136
62137
|
N: () => p,
|
|
62137
62138
|
B: () => w !== 0,
|
|
@@ -62169,13 +62170,13 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
|
|
|
62169
62170
|
if (g === 2) se = !0;
|
|
62170
62171
|
else if (b && g === 1) se = J < b[0];
|
|
62171
62172
|
else {
|
|
62172
|
-
const ae = T(), ee =
|
|
62173
|
+
const ae = T(), ee = q(J), fe = Z(J);
|
|
62173
62174
|
se = w !== 1 && g === 0 ? ee + fe <= ae : ee < ae && ee + fe < ae + u;
|
|
62174
62175
|
}
|
|
62175
|
-
return se && (G += te -
|
|
62176
|
+
return se && (G += te - Z(J)), G;
|
|
62176
62177
|
}, 0));
|
|
62177
62178
|
for (const [G, J] of B) {
|
|
62178
|
-
const te =
|
|
62179
|
+
const te = Z(G), se = RY(M, G, J);
|
|
62179
62180
|
i && (_ += se ? J : J - te);
|
|
62180
62181
|
}
|
|
62181
62182
|
i && u && _ > u && (j(((G, J) => {
|
|
@@ -62427,22 +62428,22 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
|
|
|
62427
62428
|
};
|
|
62428
62429
|
})(u, r), p = ((g, b) => {
|
|
62429
62430
|
let k, _, $ = H1(), M = !1;
|
|
62430
|
-
const C = b ? "scrollLeft" : "scrollTop", T = b ? "overflowX" : "overflowY", [D, Y] = qY(g, () => $[0], (R,
|
|
62431
|
-
R = i1(R, M),
|
|
62431
|
+
const C = b ? "scrollLeft" : "scrollTop", T = b ? "overflowX" : "overflowY", [D, Y] = qY(g, () => $[0], (R, q) => {
|
|
62432
|
+
R = i1(R, M), q ? k.scrollTo({
|
|
62432
62433
|
[b ? "left" : "top"]: R,
|
|
62433
62434
|
behavior: "smooth"
|
|
62434
62435
|
}) : k[C] = R;
|
|
62435
62436
|
});
|
|
62436
62437
|
return {
|
|
62437
|
-
oe(R,
|
|
62438
|
-
k =
|
|
62438
|
+
oe(R, q) {
|
|
62439
|
+
k = q, b && (M = getComputedStyle(q).direction === "rtl"), _ = ZY(g, q, b, () => i1(q[C], M), (Z, V, j) => {
|
|
62439
62440
|
if (j) {
|
|
62440
|
-
const A =
|
|
62441
|
+
const A = q.style, S = A[T];
|
|
62441
62442
|
A[T] = "hidden", Y0(() => {
|
|
62442
62443
|
A[T] = S;
|
|
62443
62444
|
});
|
|
62444
62445
|
}
|
|
62445
|
-
|
|
62446
|
+
q[C] = i1(g.N() + Z, M), V && Y();
|
|
62446
62447
|
}), $[1](!0);
|
|
62447
62448
|
},
|
|
62448
62449
|
p() {
|
|
@@ -62455,16 +62456,16 @@ var { min: us, max: Vn, abs: Kd, floor: OY } = Math, rf = (e, t, n) => us(n, Vn(
|
|
|
62455
62456
|
ie(R) {
|
|
62456
62457
|
R += g.N(), D(() => R);
|
|
62457
62458
|
},
|
|
62458
|
-
le(R, { align:
|
|
62459
|
-
if (R = rf(R, 0, g.j() - 1),
|
|
62459
|
+
le(R, { align: q, smooth: Z, offset: V = 0 } = {}) {
|
|
62460
|
+
if (R = rf(R, 0, g.j() - 1), q === "nearest") {
|
|
62460
62461
|
const j = g.O(R), A = g.N();
|
|
62461
|
-
if (j < A)
|
|
62462
|
+
if (j < A) q = "start";
|
|
62462
62463
|
else {
|
|
62463
62464
|
if (!(j + g.k(R) > A + g.T())) return;
|
|
62464
|
-
|
|
62465
|
+
q = "end";
|
|
62465
62466
|
}
|
|
62466
62467
|
}
|
|
62467
|
-
D(() => V + g.q() + g.O(R) + (
|
|
62468
|
+
D(() => V + g.q() + g.O(R) + (q === "end" ? g.k(R) - g.T() : q === "center" ? (g.k(R) - g.T()) / 2 : 0), Z);
|
|
62468
62469
|
},
|
|
62469
62470
|
ce: () => {
|
|
62470
62471
|
_ && _.V();
|
|
@@ -62696,12 +62697,12 @@ const KY = {
|
|
|
62696
62697
|
});
|
|
62697
62698
|
const T = _.length - C, D = /* @__PURE__ */ new Map();
|
|
62698
62699
|
_.forEach((Y, R) => D.set(Y, R)), k.forEach((Y, R) => {
|
|
62699
|
-
const
|
|
62700
|
-
if (
|
|
62700
|
+
const q = D.get(Y);
|
|
62701
|
+
if (q === void 0) {
|
|
62701
62702
|
R < T && x(Y);
|
|
62702
62703
|
return;
|
|
62703
62704
|
}
|
|
62704
|
-
R <
|
|
62705
|
+
R < q - M[q] && x(Y);
|
|
62705
62706
|
});
|
|
62706
62707
|
});
|
|
62707
62708
|
let w = !1;
|
|
@@ -63487,15 +63488,15 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
|
|
|
63487
63488
|
return typeof D != "string" ? !1 : /^https:\/\/[^\s/$.?#].[^\s]*$/i.test(D.trim());
|
|
63488
63489
|
}
|
|
63489
63490
|
function x() {
|
|
63490
|
-
var
|
|
63491
|
-
const D = (
|
|
63491
|
+
var q, Z;
|
|
63492
|
+
const D = (q = n.content) == null ? void 0 : q.headers;
|
|
63492
63493
|
if (!D) return { kind: null, value: "" };
|
|
63493
63494
|
const Y = String((D == null ? void 0 : D.type) || "").toLowerCase(), R = (D == null ? void 0 : D.content) ?? (D == null ? void 0 : D.media) ?? "";
|
|
63494
63495
|
if (["text", "image", "video", "document"].includes(Y))
|
|
63495
63496
|
return { kind: Y, value: R };
|
|
63496
63497
|
if (typeof R == "string" && y(R))
|
|
63497
63498
|
try {
|
|
63498
|
-
const V = (
|
|
63499
|
+
const V = (Z = new URL(R).pathname.split(".").pop()) == null ? void 0 : Z.toLowerCase();
|
|
63499
63500
|
if (["jpeg", "jpg", "png", "gif", "webp"].includes(V))
|
|
63500
63501
|
return { kind: "image", value: R };
|
|
63501
63502
|
if (["mp4", "mov", "webm"].includes(V)) return { kind: "video", value: R };
|
|
@@ -63512,7 +63513,7 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
|
|
|
63512
63513
|
});
|
|
63513
63514
|
}
|
|
63514
63515
|
return (D, Y) => {
|
|
63515
|
-
var R,
|
|
63516
|
+
var R, q;
|
|
63516
63517
|
return l(), f("div", NJ, [
|
|
63517
63518
|
(R = e.content) != null && R.headers ? (l(), f("div", VJ, [
|
|
63518
63519
|
["image", "video", "document"].includes(oe(w)) && y(oe(g)) ? (l(), f("section", jJ, [
|
|
@@ -63533,7 +63534,7 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
|
|
|
63533
63534
|
class: "w-full h-96 rounded"
|
|
63534
63535
|
}, null, 8, GJ)) : F("", !0)
|
|
63535
63536
|
])) : F("", !0),
|
|
63536
|
-
(
|
|
63537
|
+
(q = e.content.headers) != null && q.text ? (l(), f("p", WJ, [
|
|
63537
63538
|
pe(nn, {
|
|
63538
63539
|
content: e.content.headers.text || e.content.headers.text
|
|
63539
63540
|
}, null, 8, ["content"])
|
|
@@ -63593,11 +63594,11 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
|
|
|
63593
63594
|
])
|
|
63594
63595
|
])
|
|
63595
63596
|
])) : F("", !0),
|
|
63596
|
-
(l(!0), f(ye, null, He(u.value, (
|
|
63597
|
-
key:
|
|
63597
|
+
(l(!0), f(ye, null, He(u.value, (Z, V) => (l(), f("div", {
|
|
63598
|
+
key: Z.id || Z.type || Z.text,
|
|
63598
63599
|
class: "-mx-2"
|
|
63599
63600
|
}, [
|
|
63600
|
-
|
|
63601
|
+
Z.type !== "review_and_pay" ? (l(), f("button", {
|
|
63601
63602
|
key: 0,
|
|
63602
63603
|
class: U([
|
|
63603
63604
|
"group flex border-b border-base-100 w-full items-center justify-center gap-1 bg-base-200 px-3 py-2 text-primary hover:bg-base-100 transition",
|
|
@@ -63606,10 +63607,10 @@ const gJ = /* @__PURE__ */ Ne(mJ, [["render", vJ]]), yJ = { class: "-mx-2" }, bJ
|
|
|
63606
63607
|
onClick: b
|
|
63607
63608
|
}, [
|
|
63608
63609
|
o("span", {
|
|
63609
|
-
innerHTML: m[
|
|
63610
|
+
innerHTML: m[Z.type] || m.voice_call,
|
|
63610
63611
|
class: "inline-flex"
|
|
63611
63612
|
}, null, 8, iX),
|
|
63612
|
-
o("span", rX, N((
|
|
63613
|
+
o("span", rX, N((Z == null ? void 0 : Z.text) || r[Z == null ? void 0 : Z.type] || "sem texto"), 1)
|
|
63613
63614
|
], 2)) : F("", !0)
|
|
63614
63615
|
]))), 128))
|
|
63615
63616
|
]);
|
|
@@ -63768,7 +63769,7 @@ const mX = /* @__PURE__ */ Ne(dX, [["render", hX]]), pX = ["src"], vX = ["aria-l
|
|
|
63768
63769
|
const O = Math.min(Math.max(S, 0), h.value || 0);
|
|
63769
63770
|
z.currentTime = O, u.value = O;
|
|
63770
63771
|
}
|
|
63771
|
-
function
|
|
63772
|
+
function q(S) {
|
|
63772
63773
|
var I;
|
|
63773
63774
|
const z = (I = n.value) == null ? void 0 : I.getBoundingClientRect();
|
|
63774
63775
|
if (!z) return 0;
|
|
@@ -63778,14 +63779,14 @@ const mX = /* @__PURE__ */ Ne(dX, [["render", hX]]), pX = ["src"], vX = ["aria-l
|
|
|
63778
63779
|
);
|
|
63779
63780
|
return (O < 0 ? O + 2 * Math.PI : O) / (2 * Math.PI);
|
|
63780
63781
|
}
|
|
63781
|
-
function
|
|
63782
|
-
R(
|
|
63782
|
+
function Z(S) {
|
|
63783
|
+
R(q(S) * h.value);
|
|
63783
63784
|
}
|
|
63784
63785
|
function V() {
|
|
63785
|
-
c.value = !1, window.removeEventListener("pointermove",
|
|
63786
|
+
c.value = !1, window.removeEventListener("pointermove", Z), window.removeEventListener("pointerup", V), window.removeEventListener("pointercancel", V);
|
|
63786
63787
|
}
|
|
63787
63788
|
function j(S) {
|
|
63788
|
-
S.stopPropagation(), S.preventDefault(), h.value && (c.value = !0,
|
|
63789
|
+
S.stopPropagation(), S.preventDefault(), h.value && (c.value = !0, Z(S), window.addEventListener("pointermove", Z), window.addEventListener("pointerup", V), window.addEventListener("pointercancel", V));
|
|
63789
63790
|
}
|
|
63790
63791
|
function A(S) {
|
|
63791
63792
|
const z = { ArrowRight: 1, ArrowUp: 1, ArrowLeft: -1, ArrowDown: -1 }[S.key] ?? 0;
|
|
@@ -63953,7 +63954,7 @@ const mX = /* @__PURE__ */ Ne(dX, [["render", hX]]), pX = ["src"], vX = ["aria-l
|
|
|
63953
63954
|
},
|
|
63954
63955
|
setup(e) {
|
|
63955
63956
|
const t = Jh(
|
|
63956
|
-
async () => (await import("./vue3-lottie.es-
|
|
63957
|
+
async () => (await import("./vue3-lottie.es-C9MEQeSQ.js")).Vue3Lottie
|
|
63957
63958
|
), n = e, a = X(null), i = X(!1), r = P(() => n.variant === "thumbnail" ? 96 : n.variant === "composer" ? 180 : 220), c = P(
|
|
63958
63959
|
() => n.variant === "chat" ? "flex items-center justify-center p-1" : "flex size-full items-center justify-center"
|
|
63959
63960
|
);
|
|
@@ -64183,7 +64184,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64183
64184
|
() => n.showCaption && !!y.value && !b.value && !k.value
|
|
64184
64185
|
), R = P(
|
|
64185
64186
|
() => D.value === "video" ? "Abrir vídeo" : "Ampliar"
|
|
64186
|
-
),
|
|
64187
|
+
), q = P(() => `${R.value}: ${x.value}`), Z = P(() => k.value ? "renderer renderer-thumbnail" : b.value ? "renderer renderer-composer" : "renderer renderer-chat"), V = P(() => k.value ? "media-surface media-surface-thumbnail" : b.value ? "media-surface media-surface-composer" : "media-surface media-surface-chat"), j = P(
|
|
64187
64188
|
() => k.value ? "icon-surface icon-surface-thumbnail" : "icon-surface"
|
|
64188
64189
|
), A = P(() => Ia(n.message) && !k.value ? "media-image-sticker" : k.value ? "media-image media-image-thumbnail" : b.value ? "media-image media-image-composer" : "media-image media-image-chat"), S = P(() => k.value ? "media-video-heif-thumbnail" : b.value ? "media-video-heif-composer" : "media-video-heif-chat"), z = P(
|
|
64189
64190
|
() => M.value && n.variant === "chat" && (D.value === "image" || D.value === "video")
|
|
@@ -64280,7 +64281,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64280
64281
|
const le = S2("lazy");
|
|
64281
64282
|
return w.value ? (l(), f("section", {
|
|
64282
64283
|
key: 0,
|
|
64283
|
-
class: U(
|
|
64284
|
+
class: U(Z.value)
|
|
64284
64285
|
}, [
|
|
64285
64286
|
(Ce = c.value) != null && Ce.story_reply ? (l(), f("div", KX, [...W[5] || (W[5] = [
|
|
64286
64287
|
o("p", { class: "italic opacity-70" }, "Resposta de stories", -1)
|
|
@@ -64294,7 +64295,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64294
64295
|
ve.value ? "media-surface-pending" : ""
|
|
64295
64296
|
]),
|
|
64296
64297
|
style: Ve(ee.value),
|
|
64297
|
-
"aria-label": M.value ?
|
|
64298
|
+
"aria-label": M.value ? q.value : void 0,
|
|
64298
64299
|
onClick: W[0] || (W[0] = (K) => M.value && Re(!1))
|
|
64299
64300
|
}, {
|
|
64300
64301
|
default: Ae(() => [
|
|
@@ -64365,7 +64366,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64365
64366
|
key: 3,
|
|
64366
64367
|
type: "button",
|
|
64367
64368
|
class: "video-trigger group",
|
|
64368
|
-
"aria-label":
|
|
64369
|
+
"aria-label": q.value,
|
|
64369
64370
|
onClick: W[1] || (W[1] = (K) => Re(!0))
|
|
64370
64371
|
}, [
|
|
64371
64372
|
pe(mX, {
|
|
@@ -64611,14 +64612,14 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64611
64612
|
};
|
|
64612
64613
|
}), C = P(() => {
|
|
64613
64614
|
var V, j, A, S, z;
|
|
64614
|
-
const R = a.message || {},
|
|
64615
|
-
return
|
|
64615
|
+
const R = a.message || {}, q = a.isMessage ? ((V = a.attendant) == null ? void 0 : V.name) || ((j = R == null ? void 0 : R.sender) == null ? void 0 : j.name) : ((A = R == null ? void 0 : R.sent_by) == null ? void 0 : A.name) || ((S = R == null ? void 0 : R.sender) == null ? void 0 : S.name);
|
|
64616
|
+
return q ? (a.isMessage || !!((z = R == null ? void 0 : R.sent_by) != null && z.name)) && q === m.value ? "Você" : q : "";
|
|
64616
64617
|
}), T = P(() => {
|
|
64617
64618
|
var V;
|
|
64618
64619
|
const R = Number((V = a.message) == null ? void 0 : V.duration);
|
|
64619
64620
|
if (!Number.isFinite(R) || R < 0) return "00:00";
|
|
64620
|
-
const
|
|
64621
|
-
return `${String(
|
|
64621
|
+
const q = Math.floor(R / 60), Z = Math.floor(R % 60);
|
|
64622
|
+
return `${String(q).padStart(2, "0")}:${String(Z).padStart(2, "0")}`;
|
|
64622
64623
|
});
|
|
64623
64624
|
function D(R) {
|
|
64624
64625
|
return typeof R != "string" ? !1 : i.test(R.trim());
|
|
@@ -64626,7 +64627,7 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64626
64627
|
function Y() {
|
|
64627
64628
|
a.isMessage && n("go", a.messageId, a.chatId);
|
|
64628
64629
|
}
|
|
64629
|
-
return (R,
|
|
64630
|
+
return (R, q) => (l(), f("div", {
|
|
64630
64631
|
class: U(["sm-quote", [
|
|
64631
64632
|
e.isMessage ? "sm-quote--reply" : "sm-quote--composer header",
|
|
64632
64633
|
!e.isMessage && p.value !== "web" ? "mb-2 rounded-xl" : "",
|
|
@@ -64653,9 +64654,9 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64653
64654
|
])) : F("", !0),
|
|
64654
64655
|
g.value === "audio" ? (l(), f("p", gK, [
|
|
64655
64656
|
(l(), f("svg", yK, [
|
|
64656
|
-
(l(), f(ye, null, He(c, (
|
|
64657
|
-
key:
|
|
64658
|
-
d:
|
|
64657
|
+
(l(), f(ye, null, He(c, (Z) => o("path", {
|
|
64658
|
+
key: Z,
|
|
64659
|
+
d: Z
|
|
64659
64660
|
}, null, 8, bK)), 64))
|
|
64660
64661
|
])),
|
|
64661
64662
|
Ie(" " + N(T.value), 1)
|
|
@@ -64725,8 +64726,8 @@ const KX = { key: 0 }, QX = ["alt"], eK = ["src", "alt"], tK = ["src"], nK = ["s
|
|
|
64725
64726
|
class: "sm-quote-close",
|
|
64726
64727
|
title: "Fechar",
|
|
64727
64728
|
type: "button",
|
|
64728
|
-
onClick:
|
|
64729
|
-
}, [...
|
|
64729
|
+
onClick: q[0] || (q[0] = (Z) => oe(h).clearQuote())
|
|
64730
|
+
}, [...q[1] || (q[1] = [
|
|
64730
64731
|
o("svg", {
|
|
64731
64732
|
class: "size-5",
|
|
64732
64733
|
"aria-hidden": "true",
|
|
@@ -65158,7 +65159,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
|
|
|
65158
65159
|
b.value = u.getCurrentTime(), a("currentTime", b.value);
|
|
65159
65160
|
}), u.on("seek", () => {
|
|
65160
65161
|
b.value = u.getCurrentTime(), a("currentTime", b.value);
|
|
65161
|
-
}), c.value.addEventListener("pointerdown", z), ee && (k.value = m.rate || 1), await
|
|
65162
|
+
}), c.value.addEventListener("pointerdown", z), ee && (k.value = m.rate || 1), await q(n.audio), ee && Y();
|
|
65162
65163
|
}
|
|
65163
65164
|
function Y() {
|
|
65164
65165
|
const ee = xf(u, h, { rate: k.value });
|
|
@@ -65171,7 +65172,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
|
|
|
65171
65172
|
} catch {
|
|
65172
65173
|
}
|
|
65173
65174
|
}
|
|
65174
|
-
async function
|
|
65175
|
+
async function q(ee) {
|
|
65175
65176
|
if (u) {
|
|
65176
65177
|
w.value = !0;
|
|
65177
65178
|
try {
|
|
@@ -65185,7 +65186,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
|
|
|
65185
65186
|
}
|
|
65186
65187
|
}
|
|
65187
65188
|
}
|
|
65188
|
-
function
|
|
65189
|
+
function Z() {
|
|
65189
65190
|
u && (y.value && !m.isActive(n.trackId) && (m.claim(n.trackId, h, n.trackMeta), m.setRate(k.value), R()), u.playPause());
|
|
65190
65191
|
}
|
|
65191
65192
|
function V() {
|
|
@@ -65280,7 +65281,7 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
|
|
|
65280
65281
|
}), Ke(
|
|
65281
65282
|
() => n.audio,
|
|
65282
65283
|
(ee) => {
|
|
65283
|
-
ee &&
|
|
65284
|
+
ee && q(ee);
|
|
65284
65285
|
}
|
|
65285
65286
|
), Ke(k, (ee) => {
|
|
65286
65287
|
var fe;
|
|
@@ -65306,8 +65307,8 @@ const UK = ["aria-pressed", "aria-label", "onKeydown"], YK = {
|
|
|
65306
65307
|
class: "audio-play grid size-10 shrink-0 place-items-center rounded-full transition focus:outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
65307
65308
|
"aria-pressed": x.value ? "true" : "false",
|
|
65308
65309
|
"aria-label": x.value ? "Pausar" : "Tocar",
|
|
65309
|
-
onClick:
|
|
65310
|
-
onKeydown: Wo(ct(
|
|
65310
|
+
onClick: Z,
|
|
65311
|
+
onKeydown: Wo(ct(Z, ["prevent"]), ["space"])
|
|
65311
65312
|
}, [
|
|
65312
65313
|
x.value ? (l(), f("svg", YK, [...fe[1] || (fe[1] = [
|
|
65313
65314
|
o("path", {
|
|
@@ -65702,17 +65703,17 @@ var V1 = { exports: {} };
|
|
|
65702
65703
|
var d = +/* @__PURE__ */ new Date(), v = Math.max(0, 16 - (d - Y));
|
|
65703
65704
|
return Y = d + v, window.setTimeout(s, v);
|
|
65704
65705
|
}
|
|
65705
|
-
var
|
|
65706
|
+
var q = window.requestAnimationFrame || D("RequestAnimationFrame") || R, Z = window.cancelAnimationFrame || D("CancelAnimationFrame") || D("CancelRequestAnimationFrame") || function(s) {
|
|
65706
65707
|
window.clearTimeout(s);
|
|
65707
65708
|
};
|
|
65708
65709
|
function V(s, d, v) {
|
|
65709
|
-
if (v &&
|
|
65710
|
+
if (v && q === R)
|
|
65710
65711
|
s.call(d);
|
|
65711
65712
|
else
|
|
65712
|
-
return
|
|
65713
|
+
return q.call(window, c(s, d));
|
|
65713
65714
|
}
|
|
65714
65715
|
function j(s) {
|
|
65715
|
-
s &&
|
|
65716
|
+
s && Z.call(window, s);
|
|
65716
65717
|
}
|
|
65717
65718
|
var A = {
|
|
65718
65719
|
__proto__: null,
|
|
@@ -65735,8 +65736,8 @@ var V1 = { exports: {} };
|
|
|
65735
65736
|
isArray: M,
|
|
65736
65737
|
indexOf: C,
|
|
65737
65738
|
emptyImageUrl: T,
|
|
65738
|
-
requestFn:
|
|
65739
|
-
cancelFn:
|
|
65739
|
+
requestFn: q,
|
|
65740
|
+
cancelFn: Z,
|
|
65740
65741
|
requestAnimFrame: V,
|
|
65741
65742
|
cancelAnimFrame: j
|
|
65742
65743
|
};
|
|
@@ -71969,18 +71970,18 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
71969
71970
|
}, a = [11, 19], i = X(null), r = X(!1), c = X(HQ), u = X(!1);
|
|
71970
71971
|
let h = null, p = null, m = null, y = null, x = null, w = null;
|
|
71971
71972
|
const g = () => {
|
|
71972
|
-
var
|
|
71973
|
-
const R = Number((
|
|
71974
|
-
return Number.isFinite(R) && Number.isFinite(
|
|
71973
|
+
var Z, V, j;
|
|
71974
|
+
const R = Number((Z = t.map) == null ? void 0 : Z.latitude), q = Number(((V = t.map) == null ? void 0 : V.longitude) ?? ((j = t.map) == null ? void 0 : j.length));
|
|
71975
|
+
return Number.isFinite(R) && Number.isFinite(q) ? [R, q] : null;
|
|
71975
71976
|
}, b = P(
|
|
71976
71977
|
() => {
|
|
71977
|
-
var R,
|
|
71978
|
-
return ((R = t.map) == null ? void 0 : R.name) || ((
|
|
71978
|
+
var R, q;
|
|
71979
|
+
return ((R = t.map) == null ? void 0 : R.name) || ((q = t.map) == null ? void 0 : q.address) || "Localização compartilhada";
|
|
71979
71980
|
}
|
|
71980
71981
|
), k = P(() => {
|
|
71981
|
-
var
|
|
71982
|
+
var Z, V;
|
|
71982
71983
|
const R = g();
|
|
71983
|
-
return R ? ((
|
|
71984
|
+
return R ? ((Z = t.map) != null && Z.name ? (V = t.map) == null ? void 0 : V.address : null) || R.map((j) => j.toFixed(5)).join(", ") : "";
|
|
71984
71985
|
}), _ = P(() => {
|
|
71985
71986
|
var R;
|
|
71986
71987
|
return ((R = g()) == null ? void 0 : R.join(", ")) ?? "";
|
|
@@ -71988,11 +71989,11 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
71988
71989
|
() => `https://www.google.com/maps/dir/?api=1&destination=${_.value}`
|
|
71989
71990
|
);
|
|
71990
71991
|
function M(R) {
|
|
71991
|
-
const
|
|
71992
|
+
const q = Math.min(
|
|
71992
71993
|
a[1],
|
|
71993
71994
|
Math.max(a[0], c.value + R)
|
|
71994
71995
|
);
|
|
71995
|
-
|
|
71996
|
+
q !== c.value && (c.value = q, h == null || h.setZoom(q));
|
|
71996
71997
|
}
|
|
71997
71998
|
async function C() {
|
|
71998
71999
|
await wf(_.value) && (u.value = !0, clearTimeout(w), w = setTimeout(() => u.value = !1, 1600));
|
|
@@ -72003,11 +72004,11 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
72003
72004
|
function D() {
|
|
72004
72005
|
const R = g();
|
|
72005
72006
|
if (!R) return;
|
|
72006
|
-
const [
|
|
72007
|
+
const [q, Z] = R;
|
|
72007
72008
|
Ot.show(
|
|
72008
72009
|
[
|
|
72009
72010
|
{
|
|
72010
|
-
src: `https://www.google.com/maps?q=${
|
|
72011
|
+
src: `https://www.google.com/maps?q=${q},${Z}&z=19&output=embed`,
|
|
72011
72012
|
type: "iframe",
|
|
72012
72013
|
caption: b.value
|
|
72013
72014
|
}
|
|
@@ -72056,13 +72057,13 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
72056
72057
|
}
|
|
72057
72058
|
m = new IntersectionObserver(
|
|
72058
72059
|
(R) => {
|
|
72059
|
-
R.some((
|
|
72060
|
+
R.some((q) => q.isIntersecting) && (m.disconnect(), m = null, Y());
|
|
72060
72061
|
},
|
|
72061
72062
|
{ rootMargin: "200px" }
|
|
72062
72063
|
), m.observe(i.value);
|
|
72063
72064
|
}), Bt(() => {
|
|
72064
72065
|
clearTimeout(w), m == null || m.disconnect(), y == null || y.disconnect(), x == null || x.disconnect(), m = null, y = null, x = null, h == null || h.remove(), h = null, p = null;
|
|
72065
|
-
}), (R,
|
|
72066
|
+
}), (R, q) => (l(), f("div", CQ, [
|
|
72066
72067
|
o("div", SQ, [
|
|
72067
72068
|
o("button", {
|
|
72068
72069
|
type: "button",
|
|
@@ -72076,7 +72077,7 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
72076
72077
|
ref: i,
|
|
72077
72078
|
class: "sm-map-canvas"
|
|
72078
72079
|
}, null, 8, MQ),
|
|
72079
|
-
g() ? r.value ? (l(), f("span", EQ, [...
|
|
72080
|
+
g() ? r.value ? (l(), f("span", EQ, [...q[2] || (q[2] = [
|
|
72080
72081
|
o("svg", {
|
|
72081
72082
|
class: "size-3.5",
|
|
72082
72083
|
viewBox: "0 0 24 24",
|
|
@@ -72092,13 +72093,13 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
72092
72093
|
type: "button",
|
|
72093
72094
|
title: "Aproximar",
|
|
72094
72095
|
disabled: c.value >= 19,
|
|
72095
|
-
onClick:
|
|
72096
|
+
onClick: q[0] || (q[0] = (Z) => M(1))
|
|
72096
72097
|
}, " + ", 8, LQ),
|
|
72097
72098
|
o("button", {
|
|
72098
72099
|
type: "button",
|
|
72099
72100
|
title: "Afastar",
|
|
72100
72101
|
disabled: c.value <= 11,
|
|
72101
|
-
onClick:
|
|
72102
|
+
onClick: q[1] || (q[1] = (Z) => M(-1))
|
|
72102
72103
|
}, " − ", 8, PQ)
|
|
72103
72104
|
])) : F("", !0)
|
|
72104
72105
|
]),
|
|
@@ -72114,7 +72115,7 @@ const CQ = { class: "sm-map" }, SQ = { class: "sm-map-surface" }, MQ = ["id"], A
|
|
|
72114
72115
|
href: $.value,
|
|
72115
72116
|
target: "_blank",
|
|
72116
72117
|
rel: "noopener noreferrer"
|
|
72117
|
-
}, [...
|
|
72118
|
+
}, [...q[3] || (q[3] = [
|
|
72118
72119
|
o("svg", {
|
|
72119
72120
|
class: "size-3.5",
|
|
72120
72121
|
viewBox: "0 0 24 24",
|
|
@@ -72985,12 +72986,12 @@ function Mf(e) {
|
|
|
72985
72986
|
return !!((t = e == null ? void 0 : e.content) != null && t.text) && e.content.text.trim().length > 0;
|
|
72986
72987
|
}
|
|
72987
72988
|
function Tee(e, t = {}) {
|
|
72988
|
-
var
|
|
72989
|
+
var Z, V, j, A, S;
|
|
72989
72990
|
const {
|
|
72990
72991
|
chatActive: n = !1,
|
|
72991
72992
|
chatInstanceId: a = null,
|
|
72992
72993
|
attendant: i = null
|
|
72993
|
-
} = t, r = Cf(e), c = ec(e), u = Sf(e), h = !!(e != null && e.from_me), p = !!(e != null && e.internal), m = e == null ? void 0 : e.type, y = ((
|
|
72994
|
+
} = t, r = Cf(e), c = ec(e), u = Sf(e), h = !!(e != null && e.from_me), p = !!(e != null && e.internal), m = e == null ? void 0 : e.type, y = ((Z = e == null ? void 0 : e.instance) == null ? void 0 : Z.type) || "", x = ["whatsapp-qrcode", "telegram", "webchat"].includes(
|
|
72994
72995
|
y
|
|
72995
72996
|
), w = p ? ((V = e == null ? void 0 : e.sent_by) == null ? void 0 : V.id) === (i == null ? void 0 : i.id) : !0, g = !!((j = i == null ? void 0 : i.permissions) != null && j.can_edit_message), b = !!((A = i == null ? void 0 : i.permissions) != null && A.can_delete_message), k = () => {
|
|
72996
72997
|
const z = [];
|
|
@@ -73019,8 +73020,8 @@ function Tee(e, t = {}) {
|
|
|
73019
73020
|
sms: "Não é possível encaminhar mensagens SMS."
|
|
73020
73021
|
};
|
|
73021
73022
|
Y[m] && D.push(Y[m]), y === "webchat" && D.push("Não é possível encaminhar mensagens do Webchat.");
|
|
73022
|
-
const R = Mf(e) ? [] : ["Mensagem sem texto para copiar."],
|
|
73023
|
-
return r ?
|
|
73023
|
+
const R = Mf(e) ? [] : ["Mensagem sem texto para copiar."], q = [];
|
|
73024
|
+
return r ? q.push("Ação indisponível para mensagens processando.") : u || q.push("Essa mensagem já foi enviada com sucesso."), { edit: _, delete: $, reply: M, download: T, forward: D, copy: R, resend: q };
|
|
73024
73025
|
}
|
|
73025
73026
|
function Bee(e) {
|
|
73026
73027
|
var t;
|
|
@@ -73135,7 +73136,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73135
73136
|
function R() {
|
|
73136
73137
|
y.value.delete.length || x.value || (u.value = !u.value);
|
|
73137
73138
|
}
|
|
73138
|
-
async function
|
|
73139
|
+
async function q() {
|
|
73139
73140
|
if (y.value.delete.length) return;
|
|
73140
73141
|
h.value = !0;
|
|
73141
73142
|
const B = await zee(m.value.id);
|
|
@@ -73145,7 +73146,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73145
73146
|
}
|
|
73146
73147
|
n("deleted", m.value), cn({ group: "success", title: "Sucesso", text: "Mensagem Apagada" }, 2e3), u.value = !1, k();
|
|
73147
73148
|
}
|
|
73148
|
-
async function
|
|
73149
|
+
async function Z() {
|
|
73149
73150
|
var G;
|
|
73150
73151
|
_(), c.value = !0;
|
|
73151
73152
|
const B = await Fee(m.value.id);
|
|
@@ -73255,7 +73256,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73255
73256
|
enabled: !B.resend.length,
|
|
73256
73257
|
reasons: B.resend,
|
|
73257
73258
|
loading: c.value,
|
|
73258
|
-
handler:
|
|
73259
|
+
handler: Z
|
|
73259
73260
|
},
|
|
73260
73261
|
{ key: "__divider__" },
|
|
73261
73262
|
{
|
|
@@ -73328,7 +73329,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73328
73329
|
o("button", {
|
|
73329
73330
|
disabled: h.value,
|
|
73330
73331
|
class: "confirm-delete-btn group",
|
|
73331
|
-
onClick:
|
|
73332
|
+
onClick: q
|
|
73332
73333
|
}, [
|
|
73333
73334
|
G[3] || (G[3] = o("span", { class: "confirm-delete-shine" }, null, -1)),
|
|
73334
73335
|
o("span", Ree, [
|
|
@@ -73377,7 +73378,7 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73377
73378
|
o("button", {
|
|
73378
73379
|
disabled: h.value,
|
|
73379
73380
|
class: "confirm-delete-btn group flex-1",
|
|
73380
|
-
onClick:
|
|
73381
|
+
onClick: q
|
|
73381
73382
|
}, [
|
|
73382
73383
|
G[6] || (G[6] = o("span", { class: "confirm-delete-shine" }, null, -1)),
|
|
73383
73384
|
o("span", jee, [
|
|
@@ -73452,20 +73453,20 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73452
73453
|
function m() {
|
|
73453
73454
|
if (i.value)
|
|
73454
73455
|
if (r.value)
|
|
73455
|
-
i.value.pause(), r.value = !1,
|
|
73456
|
+
i.value.pause(), r.value = !1, q();
|
|
73456
73457
|
else {
|
|
73457
73458
|
if (R(), !i.value) return;
|
|
73458
73459
|
p.value = !0;
|
|
73459
|
-
const
|
|
73460
|
-
|
|
73460
|
+
const Z = i.value.play();
|
|
73461
|
+
Z && typeof Z.then == "function" ? Z.then(() => {
|
|
73461
73462
|
p.value = !1, r.value = !0;
|
|
73462
73463
|
}).catch((V) => {
|
|
73463
73464
|
console.error("Audio play failed:", V), p.value = !1, r.value = !1;
|
|
73464
73465
|
}) : (p.value = !1, r.value = !0);
|
|
73465
73466
|
}
|
|
73466
73467
|
}
|
|
73467
|
-
function y(
|
|
73468
|
-
i.value && (i.value.currentTime =
|
|
73468
|
+
function y(Z) {
|
|
73469
|
+
i.value && (i.value.currentTime = Z.target.value);
|
|
73469
73470
|
}
|
|
73470
73471
|
function x() {
|
|
73471
73472
|
i.value && (u.value = i.value.duration || 0);
|
|
@@ -73482,21 +73483,21 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73482
73483
|
function k() {
|
|
73483
73484
|
p.value = !0;
|
|
73484
73485
|
}
|
|
73485
|
-
function _(
|
|
73486
|
-
console.error("Audio error:",
|
|
73486
|
+
function _(Z) {
|
|
73487
|
+
console.error("Audio error:", Z), h.value = !1, p.value = !1, r.value = !1;
|
|
73487
73488
|
}
|
|
73488
73489
|
function $() {
|
|
73489
73490
|
i.value && (c.value = i.value.currentTime);
|
|
73490
73491
|
}
|
|
73491
73492
|
function M() {
|
|
73492
|
-
r.value = !1, c.value = 0,
|
|
73493
|
+
r.value = !1, c.value = 0, q();
|
|
73493
73494
|
}
|
|
73494
73495
|
function C() {
|
|
73495
73496
|
window.open(a.src, "_blank");
|
|
73496
73497
|
}
|
|
73497
|
-
function T(
|
|
73498
|
-
if (!
|
|
73499
|
-
const V = Math.floor(
|
|
73498
|
+
function T(Z) {
|
|
73499
|
+
if (!Z || isNaN(Z)) return "0:00";
|
|
73500
|
+
const V = Math.floor(Z / 60), j = Math.floor(Z % 60);
|
|
73500
73501
|
return `${V}:${j.toString().padStart(2, "0")}`;
|
|
73501
73502
|
}
|
|
73502
73503
|
function D() {
|
|
@@ -73520,17 +73521,17 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73520
73521
|
function R() {
|
|
73521
73522
|
n("play-start", a.src);
|
|
73522
73523
|
}
|
|
73523
|
-
function
|
|
73524
|
+
function q() {
|
|
73524
73525
|
n("play-pause", a.src);
|
|
73525
73526
|
}
|
|
73526
73527
|
return Ke(
|
|
73527
73528
|
() => a.activeSrc,
|
|
73528
|
-
(
|
|
73529
|
-
|
|
73529
|
+
(Z) => {
|
|
73530
|
+
Z && Z !== a.src && r.value && i.value && (i.value.pause(), r.value = !1);
|
|
73530
73531
|
}
|
|
73531
73532
|
), En(() => {
|
|
73532
73533
|
i.value && (i.value.pause(), i.value.src = "");
|
|
73533
|
-
}), (
|
|
73534
|
+
}), (Z, V) => (l(), f("div", Uee, [
|
|
73534
73535
|
o("button", {
|
|
73535
73536
|
onClick: ct(m, ["stop"]),
|
|
73536
73537
|
class: "audio-play-btn hover:bg-base-100",
|
|
@@ -73832,8 +73833,8 @@ const Dee = ["disabled"], Ree = { class: "relative flex h-6 items-center justify
|
|
|
73832
73833
|
}) : "";
|
|
73833
73834
|
}
|
|
73834
73835
|
function _(C) {
|
|
73835
|
-
var T, D, Y, R,
|
|
73836
|
-
return ((D = (T = C.record_metadata) == null ? void 0 : T.urls) == null ? void 0 : D.client) || ((R = (Y = C.record_metadata) == null ? void 0 : Y.urls) == null ? void 0 : R.attendant) || ((
|
|
73836
|
+
var T, D, Y, R, q, Z;
|
|
73837
|
+
return ((D = (T = C.record_metadata) == null ? void 0 : T.urls) == null ? void 0 : D.client) || ((R = (Y = C.record_metadata) == null ? void 0 : Y.urls) == null ? void 0 : R.attendant) || ((Z = (q = C.record_metadata) == null ? void 0 : q.urls) == null ? void 0 : Z.general);
|
|
73837
73838
|
}
|
|
73838
73839
|
function $(C) {
|
|
73839
73840
|
return C.events && C.events.length > 0 ? [...C.events].reverse() : C.historical && C.historical.length > 0 ? C.historical : [];
|
|
@@ -74109,17 +74110,17 @@ const wte = {
|
|
|
74109
74110
|
const ve = (n.message.items || []).map((de) => de == null ? void 0 : de.id).filter(Boolean);
|
|
74110
74111
|
ve.length ? i.togglePackageSelection(ve) : i.toggleMessageSelection(n.message.id);
|
|
74111
74112
|
}
|
|
74112
|
-
function
|
|
74113
|
+
function q(ve, de) {
|
|
74113
74114
|
var Re, Xe, Be, W, le, Ce, we, $e, ce, K, re, ue;
|
|
74114
74115
|
if (!ve || !ve.sent_by && !((Re = ve.content) != null && Re.sender)) return !1;
|
|
74115
74116
|
if (!de || !de.sent_by && !((Xe = de.content) != null && Xe.sender)) return !0;
|
|
74116
74117
|
const xe = ((Be = ve.sent_by) == null ? void 0 : Be.id) || ((le = (W = ve.content) == null ? void 0 : W.sender) == null ? void 0 : le.id) || ((we = (Ce = ve.content) == null ? void 0 : Ce.sender) == null ? void 0 : we.name), ke = (($e = de.sent_by) == null ? void 0 : $e.id) || ((K = (ce = de.content) == null ? void 0 : ce.sender) == null ? void 0 : K.id) || ((ue = (re = de.content) == null ? void 0 : re.sender) == null ? void 0 : ue.name);
|
|
74117
74118
|
return xe && ke ? xe !== ke : !1;
|
|
74118
74119
|
}
|
|
74119
|
-
const
|
|
74120
|
+
const Z = P(() => q(n.message, n.nextMessage)), V = P(() => Ia(n.message) || X0(n.message)), j = P(() => K0(n.message)), A = P(() => V.value || j.value), S = P(
|
|
74120
74121
|
() => {
|
|
74121
74122
|
var ve;
|
|
74122
|
-
return (!p.value || _.value) &&
|
|
74123
|
+
return (!p.value || _.value) && Z.value && !!((ve = n.message.content) != null && ve.sender);
|
|
74123
74124
|
}
|
|
74124
74125
|
), z = P(
|
|
74125
74126
|
() => {
|
|
@@ -74181,7 +74182,8 @@ const wte = {
|
|
|
74181
74182
|
"justify-end": p.value,
|
|
74182
74183
|
"justify-start": !p.value,
|
|
74183
74184
|
"z-20": r.value,
|
|
74184
|
-
"pt-1.5":
|
|
74185
|
+
"pt-1.5": Z.value,
|
|
74186
|
+
"pt-0.5": !Z.value,
|
|
74185
74187
|
"pt-4": e.nextMessage && e.nextMessage.metadata && e.nextMessage.metadata.reaction,
|
|
74186
74188
|
"bg-gray-400/5 py-1 dark:bg-primary/20": D.value
|
|
74187
74189
|
}])
|
|
@@ -74209,7 +74211,7 @@ const wte = {
|
|
|
74209
74211
|
])])) : F("", !0)
|
|
74210
74212
|
], 2)
|
|
74211
74213
|
])) : F("", !0),
|
|
74212
|
-
!p.value &&
|
|
74214
|
+
!p.value && Z.value && e.message.content.sender ? (l(), f("div", {
|
|
74213
74215
|
key: 1,
|
|
74214
74216
|
class: U(w.value)
|
|
74215
74217
|
}, [
|
|
@@ -74243,7 +74245,7 @@ const wte = {
|
|
|
74243
74245
|
onTouchend: ee,
|
|
74244
74246
|
onContextmenu: ct(h, ["prevent"])
|
|
74245
74247
|
}, [
|
|
74246
|
-
|
|
74248
|
+
Z.value && !A.value ? (l(), f("div", {
|
|
74247
74249
|
key: 0,
|
|
74248
74250
|
class: U(["absolute top-[18px] z-0 h-3 w-2.5", T.value])
|
|
74249
74251
|
}, [
|
|
@@ -74570,7 +74572,7 @@ const wte = {
|
|
|
74570
74572
|
])
|
|
74571
74573
|
], 34)) : F("", !0)
|
|
74572
74574
|
], 42, kte),
|
|
74573
|
-
p.value &&
|
|
74575
|
+
p.value && Z.value ? (l(), f("div", Ite, [
|
|
74574
74576
|
e.message.sent_by ? (l(), _e(It, {
|
|
74575
74577
|
key: 0,
|
|
74576
74578
|
attendant: e.message.sent_by,
|
|
@@ -74765,33 +74767,33 @@ const wte = {
|
|
|
74765
74767
|
function R(W, le, Ce, we) {
|
|
74766
74768
|
return we.isMedia && le.isMedia && W.from_me === Ce.from_me && we.sentAtMs - le.sentAtMs <= 12e4 && le.internal === we.internal && !we.hasCaption && !le.hasCaption && le.author === we.author && le.stage === we.stage;
|
|
74767
74769
|
}
|
|
74768
|
-
let
|
|
74769
|
-
const
|
|
74770
|
+
let q = { messages: [], groups: [], collapsed: !1 };
|
|
74771
|
+
const Z = P(() => {
|
|
74770
74772
|
const W = a.messages, le = [];
|
|
74771
74773
|
let Ce = !1, we = null, $e = null;
|
|
74772
74774
|
for (let K = 0; K < W.length; K++) {
|
|
74773
74775
|
const re = W[K], ue = Y(re);
|
|
74774
74776
|
K === 0 || !R(we, $e, re, ue) ? le.push(K) : Ce = !0, we = re, $e = ue;
|
|
74775
74777
|
}
|
|
74776
|
-
if (!Ce && !
|
|
74777
|
-
return
|
|
74778
|
+
if (!Ce && !q.collapsed && ff(q.messages, W))
|
|
74779
|
+
return q.groups;
|
|
74778
74780
|
const ce = [];
|
|
74779
74781
|
for (let K = 0; K < le.length; K++) {
|
|
74780
74782
|
const re = le[K], ue = K + 1 < le.length ? le[K + 1] : W.length;
|
|
74781
74783
|
ce.push(ue - re === 1 ? W[re] : { ...W[re], items: W.slice(re, ue) });
|
|
74782
74784
|
}
|
|
74783
|
-
return
|
|
74784
|
-
}), V = e2(() =>
|
|
74785
|
+
return q = { messages: W.slice(), groups: ce, collapsed: Ce }, ce;
|
|
74786
|
+
}), V = e2(() => Z.value.map(I)), j = e2(() => {
|
|
74785
74787
|
const W = [];
|
|
74786
74788
|
let le = null;
|
|
74787
|
-
return
|
|
74789
|
+
return Z.value.forEach((Ce, we) => {
|
|
74788
74790
|
const { dayKey: $e } = Y(Ce), ce = we === 0 || $e !== le;
|
|
74789
74791
|
W.push(!Ce.special && ce ? x(Ce.sent_at) : null), le = $e;
|
|
74790
74792
|
}), W;
|
|
74791
74793
|
});
|
|
74792
74794
|
let A = /* @__PURE__ */ new Map(), S = null;
|
|
74793
74795
|
const z = P(() => {
|
|
74794
|
-
const W =
|
|
74796
|
+
const W = Z.value, le = V.value, Ce = j.value, { chat: we, readonly: $e } = a;
|
|
74795
74797
|
(!S || S.chat !== we || S.readonly !== $e) && (A = /* @__PURE__ */ new Map(), S = { chat: we, readonly: $e });
|
|
74796
74798
|
const ce = /* @__PURE__ */ new Map(), K = W.map((re, ue) => {
|
|
74797
74799
|
const Se = le[ue], be = Ce[ue], Me = W[ue - 1], Fe = A.get(Se);
|
|
@@ -74823,7 +74825,7 @@ const wte = {
|
|
|
74823
74825
|
return (W == null ? void 0 : W.id) !== void 0 && (W == null ? void 0 : W.id) !== null && (W == null ? void 0 : W.id) !== "" ? String(W.id) : W != null && W.special ? `special:${W.content}` : `${(W == null ? void 0 : W.type) || "message"}:${(W == null ? void 0 : W.sent_at) || ""}:${((le = W == null ? void 0 : W.content) == null ? void 0 : le.url) || ((Ce = W == null ? void 0 : W.content) == null ? void 0 : Ce.text) || ""}`;
|
|
74824
74826
|
}
|
|
74825
74827
|
const B = P(() => {
|
|
74826
|
-
const W =
|
|
74828
|
+
const W = Z.value.findIndex(
|
|
74827
74829
|
(le) => !le.special && le.opened === !1 && (a.chatKey == null || le.chat == null || le.chat === a.chatKey)
|
|
74828
74830
|
);
|
|
74829
74831
|
return W === -1 ? null : V.value[W];
|
|
@@ -74923,7 +74925,7 @@ const wte = {
|
|
|
74923
74925
|
var W;
|
|
74924
74926
|
C(), (W = r.value) == null || W.removeEventListener("scroll", Be), de == null || de.disconnect(), de = null, Xe !== null && cancelAnimationFrame(Xe);
|
|
74925
74927
|
}), Ke(
|
|
74926
|
-
() =>
|
|
74928
|
+
() => Z.value.length,
|
|
74927
74929
|
async () => {
|
|
74928
74930
|
await bt(), se(), xe(), Re();
|
|
74929
74931
|
}
|
|
@@ -75391,14 +75393,14 @@ var Dne = { 207: (e, t, n) => {
|
|
|
75391
75393
|
var D = Object.getPrototypeOf, Y = D && D(D(z([])));
|
|
75392
75394
|
Y && Y !== i && r.call(Y, u) && (T = Y);
|
|
75393
75395
|
var R = C.prototype = $.prototype = Object.create(T);
|
|
75394
|
-
function
|
|
75396
|
+
function q(I) {
|
|
75395
75397
|
["next", "throw", "return"].forEach(function(B) {
|
|
75396
75398
|
m(I, B, function(G) {
|
|
75397
75399
|
return this._invoke(B, G);
|
|
75398
75400
|
});
|
|
75399
75401
|
});
|
|
75400
75402
|
}
|
|
75401
|
-
function
|
|
75403
|
+
function Z(I, B) {
|
|
75402
75404
|
function G(te, se, ae, ee) {
|
|
75403
75405
|
var fe = x(I[te], I, se);
|
|
75404
75406
|
if (fe.type !== "throw") {
|
|
@@ -75475,15 +75477,15 @@ var Dne = { 207: (e, t, n) => {
|
|
|
75475
75477
|
return Object.setPrototypeOf ? Object.setPrototypeOf(I, C) : (I.__proto__ = C, m(I, p, "GeneratorFunction")), I.prototype = Object.create(R), I;
|
|
75476
75478
|
}, n.awrap = function(I) {
|
|
75477
75479
|
return { __await: I };
|
|
75478
|
-
}, Z
|
|
75480
|
+
}, q(Z.prototype), m(Z.prototype, h, function() {
|
|
75479
75481
|
return this;
|
|
75480
|
-
}), n.AsyncIterator =
|
|
75482
|
+
}), n.AsyncIterator = Z, n.async = function(I, B, G, J, te) {
|
|
75481
75483
|
te === void 0 && (te = Promise);
|
|
75482
|
-
var se = new
|
|
75484
|
+
var se = new Z(y(I, B, G, J), te);
|
|
75483
75485
|
return n.isGeneratorFunction(B) ? se : se.next().then(function(ae) {
|
|
75484
75486
|
return ae.done ? ae.value : se.next();
|
|
75485
75487
|
});
|
|
75486
|
-
},
|
|
75488
|
+
}, q(R), m(R, p, "Generator"), m(R, u, function() {
|
|
75487
75489
|
return this;
|
|
75488
75490
|
}), m(R, "toString", function() {
|
|
75489
75491
|
return "[object Generator]";
|
|
@@ -75729,8 +75731,8 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
|
|
|
75729
75731
|
}), h = (0, rt.computed)(function() {
|
|
75730
75732
|
return e.nodeSelectable(e.node) && (c.value || u.value);
|
|
75731
75733
|
}), p = (0, rt.reactive)({ editing: !1 }), m = function(D) {
|
|
75732
|
-
var Y, R,
|
|
75733
|
-
n("valueChange",
|
|
75734
|
+
var Y, R, q = (R = (Y = D.target) === null || Y === void 0 ? void 0 : Y.value) === "null" ? null : R === "undefined" ? void 0 : R === "true" || R !== "false" && (R[0] + R[R.length - 1] === '""' || R[0] + R[R.length - 1] === "''" ? R.slice(1, -1) : typeof Number(R) == "number" && !isNaN(Number(R)) || R === "NaN" ? Number(R) : R);
|
|
75735
|
+
n("valueChange", q, e.node.path);
|
|
75734
75736
|
}, y = (0, rt.computed)(function() {
|
|
75735
75737
|
var D, Y = (D = e.node) === null || D === void 0 ? void 0 : D.content;
|
|
75736
75738
|
return Y === null ? Y = "null" : Y === void 0 && (Y = "undefined"), a.value === "string" ? '"'.concat(Y, '"') : Y + "";
|
|
@@ -75750,15 +75752,15 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
|
|
|
75750
75752
|
}, $ = function(D) {
|
|
75751
75753
|
if (e.editable && !p.editing) {
|
|
75752
75754
|
p.editing = !0;
|
|
75753
|
-
var Y = function R(
|
|
75754
|
-
var
|
|
75755
|
-
|
|
75755
|
+
var Y = function R(q) {
|
|
75756
|
+
var Z;
|
|
75757
|
+
q.target !== D.target && ((Z = q.target) === null || Z === void 0 ? void 0 : Z.parentElement) !== D.target && (p.editing = !1, document.removeEventListener("click", R));
|
|
75756
75758
|
};
|
|
75757
75759
|
document.removeEventListener("click", Y), document.addEventListener("click", Y);
|
|
75758
75760
|
}
|
|
75759
75761
|
}, M = function() {
|
|
75760
75762
|
var D = (0, rt.ref)(!1), Y = function() {
|
|
75761
|
-
var R,
|
|
75763
|
+
var R, q = (R = g2().mark(function Z(V) {
|
|
75762
75764
|
return g2().wrap(function(j) {
|
|
75763
75765
|
for (; ; ) switch (j.prev = j.next) {
|
|
75764
75766
|
case 0:
|
|
@@ -75774,11 +75776,11 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
|
|
|
75774
75776
|
case "end":
|
|
75775
75777
|
return j.stop();
|
|
75776
75778
|
}
|
|
75777
|
-
},
|
|
75779
|
+
}, Z, null, [[0, 7]]);
|
|
75778
75780
|
}), function() {
|
|
75779
|
-
var
|
|
75781
|
+
var Z = this, V = arguments;
|
|
75780
75782
|
return new Promise(function(j, A) {
|
|
75781
|
-
var S = R.apply(
|
|
75783
|
+
var S = R.apply(Z, V);
|
|
75782
75784
|
function z(I) {
|
|
75783
75785
|
v2(S, j, A, z, O, "next", I);
|
|
75784
75786
|
}
|
|
@@ -75788,13 +75790,13 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
|
|
|
75788
75790
|
z(void 0);
|
|
75789
75791
|
});
|
|
75790
75792
|
});
|
|
75791
|
-
return function(
|
|
75792
|
-
return
|
|
75793
|
+
return function(Z) {
|
|
75794
|
+
return q.apply(this, arguments);
|
|
75793
75795
|
};
|
|
75794
75796
|
}();
|
|
75795
75797
|
return { copy: Y };
|
|
75796
75798
|
}().copy, C = function() {
|
|
75797
|
-
var D = e.node, Y = D.key, R = D.path,
|
|
75799
|
+
var D = e.node, Y = D.key, R = D.path, q = e.rootPath, Z = new Function("data", "return data".concat(R.slice(q.length)))(e.data), V = JSON.stringify(Y ? Zo({}, Y, Z) : Z, null, 2);
|
|
75798
75800
|
M(V);
|
|
75799
75801
|
}, T = function() {
|
|
75800
75802
|
var D = e.renderNodeActions;
|
|
@@ -75804,8 +75806,8 @@ const Vne = (0, rt.defineComponent)({ name: "TreeNode", props: b2(b2({}, Tf), {}
|
|
|
75804
75806
|
};
|
|
75805
75807
|
return function() {
|
|
75806
75808
|
var D, Y = e.node;
|
|
75807
|
-
return (0, rt.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": e.showSelectController, "has-carets": e.showIcon, "is-highlight": e.highlightSelectedNode && e.checked, dark: e.theme === "dark" }, onClick: k, onMouseover: _, style: e.style }, [e.showLineNumber && (0, rt.createVNode)("span", { class: "vjs-node-index" }, [Y.id + 1]), e.showSelectController && h.value && Y.type !== "objectEnd" && Y.type !== "arrayEnd" && (0, rt.createVNode)(Ine, { isMultiple: c.value, checked: e.checked, onChange: b }, null), (0, rt.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(Y.level)).map(function(R,
|
|
75808
|
-
return (0, rt.createVNode)("div", { key:
|
|
75809
|
+
return (0, rt.createVNode)("div", { class: { "vjs-tree-node": !0, "has-selector": e.showSelectController, "has-carets": e.showIcon, "is-highlight": e.highlightSelectedNode && e.checked, dark: e.theme === "dark" }, onClick: k, onMouseover: _, style: e.style }, [e.showLineNumber && (0, rt.createVNode)("span", { class: "vjs-node-index" }, [Y.id + 1]), e.showSelectController && h.value && Y.type !== "objectEnd" && Y.type !== "arrayEnd" && (0, rt.createVNode)(Ine, { isMultiple: c.value, checked: e.checked, onChange: b }, null), (0, rt.createVNode)("div", { class: "vjs-indent" }, [Array.from(Array(Y.level)).map(function(R, q) {
|
|
75810
|
+
return (0, rt.createVNode)("div", { key: q, class: { "vjs-indent-unit": !0, "has-line": e.showLine } }, [Array.from(Array(e.indent)).map(function() {
|
|
75809
75811
|
return (0, rt.createVNode)(rt.Fragment, null, [(0, rt.createTextVNode)(" ")]);
|
|
75810
75812
|
})]);
|
|
75811
75813
|
}), e.showIcon && (0, rt.createVNode)(Hne, { nodeType: Y.type, onClick: g }, null)]), Y.key && (0, rt.createVNode)("span", { class: "vjs-key" }, [(D = e.renderNodeKey, D ? D({ node: e.node, defaultKey: r.value || "" }) : r.value), (0, rt.createVNode)("span", { class: "vjs-colon" }, [":".concat(e.showKeyValueSpace ? " " : "")])]), (0, rt.createVNode)("span", null, [Y.type !== "content" && Y.content ? (0, rt.createVNode)(Rne, { data: Y.content.toString(), onClick: w }, null) : (0, rt.createVNode)("span", { class: i.value, onClick: !e.editable || e.editableTrigger && e.editableTrigger !== "click" ? void 0 : $, onDblclick: e.editable && e.editableTrigger === "dblclick" ? $ : void 0 }, [e.editable && p.editing ? (0, rt.createVNode)("input", { value: y.value, onChange: m, style: { padding: "3px 8px", border: "1px solid #eee", boxShadow: "none", boxSizing: "border-box", borderRadius: 5, fontFamily: "inherit" } }, null) : x()]), Y.showComma && (0, rt.createVNode)("span", null, [","]), e.showLength && e.collapsed && (0, rt.createVNode)("span", { class: "vjs-comment" }, [(0, rt.createTextVNode)(" // "), Y.length, (0, rt.createTextVNode)(" items ")])]), e.renderNodeActions && (0, rt.createVNode)("span", { class: "vjs-tree-node-actions" }, [T()])]);
|
|
@@ -75955,16 +75957,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
75955
75957
|
n("nodeClick", A);
|
|
75956
75958
|
}, R = function(A) {
|
|
75957
75959
|
n("nodeMouseover", A);
|
|
75958
|
-
},
|
|
75960
|
+
}, q = function(A, S) {
|
|
75959
75961
|
if (A) u.hiddenPaths = An(An({}, u.hiddenPaths), {}, Zo({}, S, 1));
|
|
75960
75962
|
else {
|
|
75961
75963
|
var z = An({}, u.hiddenPaths);
|
|
75962
75964
|
delete z[S], u.hiddenPaths = z;
|
|
75963
75965
|
}
|
|
75964
|
-
},
|
|
75965
|
-
e.collapsedOnClickBrackets &&
|
|
75966
|
+
}, Z = function(A, S) {
|
|
75967
|
+
e.collapsedOnClickBrackets && q(A, S.path), n("bracketsClick", A, S);
|
|
75966
75968
|
}, V = function(A, S) {
|
|
75967
|
-
|
|
75969
|
+
q(A, S.path), n("iconClick", A, S);
|
|
75968
75970
|
}, j = function(A, S) {
|
|
75969
75971
|
var z = W1(e.data), O = e.rootPath;
|
|
75970
75972
|
new Function("data", "val", "data".concat(S.slice(O.length), "=val"))(z, A), n("update:data", z);
|
|
@@ -75994,7 +75996,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
75994
75996
|
return function(ne, ve) {
|
|
75995
75997
|
ve ? y[ne] = ve : delete y[ne];
|
|
75996
75998
|
}(ee, fe || null);
|
|
75997
|
-
} }, [(0, rt.createVNode)(Vne, { data: e.data, rootPath: e.rootPath, indent: e.indent, node: se, collapsed: !!u.hiddenPaths[se.path], theme: e.theme, showDoubleQuotes: e.showDoubleQuotes, showLength: e.showLength, checked: k.value.includes(se.path), selectableType: e.selectableType, showLine: e.showLine, showLineNumber: e.showLineNumber, showSelectController: e.showSelectController, selectOnClickNode: e.selectOnClickNode, nodeSelectable: e.nodeSelectable, highlightSelectedNode: e.highlightSelectedNode, editable: e.editable, editableTrigger: e.editableTrigger, showIcon: e.showIcon, showKeyValueSpace: e.showKeyValueSpace, renderNodeKey: B, renderNodeValue: G, renderNodeActions: J, onNodeClick: Y, onNodeMouseover: R, onBracketsClick:
|
|
75999
|
+
} }, [(0, rt.createVNode)(Vne, { data: e.data, rootPath: e.rootPath, indent: e.indent, node: se, collapsed: !!u.hiddenPaths[se.path], theme: e.theme, showDoubleQuotes: e.showDoubleQuotes, showLength: e.showLength, checked: k.value.includes(se.path), selectableType: e.selectableType, showLine: e.showLine, showLineNumber: e.showLineNumber, showSelectController: e.showSelectController, selectOnClickNode: e.selectOnClickNode, nodeSelectable: e.nodeSelectable, highlightSelectedNode: e.highlightSelectedNode, editable: e.editable, editableTrigger: e.editableTrigger, showIcon: e.showIcon, showKeyValueSpace: e.showKeyValueSpace, renderNodeKey: B, renderNodeValue: G, renderNodeActions: J, onNodeClick: Y, onNodeMouseover: R, onBracketsClick: Z, onIconClick: V, onSelectedChange: D, onValueChange: j, class: e.dynamicHeight ? "dynamic-height" : void 0, style: e.dynamicHeight ? {} : e.itemHeight && e.itemHeight !== 20 ? { lineHeight: "".concat(e.itemHeight, "px") } : {} }, null)]);
|
|
75998
76000
|
});
|
|
75999
76001
|
return (0, rt.createVNode)("div", { ref: i, class: { "vjs-tree": !0, "is-virtual": e.virtual, dark: e.theme === "dark" }, onScroll: e.virtual ? T : void 0, style: e.showLineNumber ? An({ paddingLeft: "".concat(12 * Number(r.value.length.toString().length), "px") }, e.style) : e.style }, [e.virtual ? (0, rt.createVNode)("div", { class: "vjs-tree-list", style: { height: "".concat(e.height, "px") } }, [(0, rt.createVNode)("div", { class: "vjs-tree-list-holder", style: { height: "".concat($.value, "px") } }, [(0, rt.createVNode)("div", { class: "vjs-tree-list-holder-inner", style: { transform: "translateY(".concat(u.translateY, "px)") } }, [te])])]) : te]);
|
|
76000
76002
|
};
|
|
@@ -76348,8 +76350,8 @@ const qne = { class: "space-y-2" }, Gne = { class: "w-full overflow-auto p-2 pb-
|
|
|
76348
76350
|
u.value = !1;
|
|
76349
76351
|
const Y = h.value;
|
|
76350
76352
|
if (h.value = 0, !D) return;
|
|
76351
|
-
const R = y > 0 && Y > y * vae,
|
|
76352
|
-
(R ||
|
|
76353
|
+
const R = y > 0 && Y > y * vae, q = g > gae && Y > 12;
|
|
76354
|
+
(R || q) && a("close");
|
|
76353
76355
|
}
|
|
76354
76356
|
function M(D) {
|
|
76355
76357
|
D.pointerId === p && $(!0);
|
|
@@ -77453,10 +77455,10 @@ const bse = {
|
|
|
77453
77455
|
placement: D,
|
|
77454
77456
|
scheduleOpen: Y,
|
|
77455
77457
|
scheduleClose: R,
|
|
77456
|
-
closeNow:
|
|
77458
|
+
closeNow: q
|
|
77457
77459
|
} = of({ enabled: _, delay: $, width: 320 });
|
|
77458
|
-
function
|
|
77459
|
-
|
|
77460
|
+
function Z() {
|
|
77461
|
+
q(), p.value && a("select", n.item);
|
|
77460
77462
|
}
|
|
77461
77463
|
return (V, j) => (l(), _e(Mn(e.interactive ? "button" : "article"), {
|
|
77462
77464
|
ref_key: "triggerRef",
|
|
@@ -77477,7 +77479,7 @@ const bse = {
|
|
|
77477
77479
|
]),
|
|
77478
77480
|
onMouseenter: oe(Y),
|
|
77479
77481
|
onMouseleave: oe(R),
|
|
77480
|
-
onClick:
|
|
77482
|
+
onClick: Z
|
|
77481
77483
|
}, {
|
|
77482
77484
|
default: Ae(() => [
|
|
77483
77485
|
u.value ? (l(), f("span", {
|
|
@@ -79102,29 +79104,29 @@ const Cie = {
|
|
|
79102
79104
|
const n = e, a = t, i = X(!1), r = X(!1), c = X(""), u = X([]), h = X(1), p = X(0), m = X(!1), y = X(!0), x = X(null), w = X(null);
|
|
79103
79105
|
function g() {
|
|
79104
79106
|
if (!w.value) return;
|
|
79105
|
-
const
|
|
79106
|
-
r.value =
|
|
79107
|
+
const q = w.value.getBoundingClientRect(), Z = window.innerHeight - q.bottom;
|
|
79108
|
+
r.value = Z < C2 && q.top > C2;
|
|
79107
79109
|
}
|
|
79108
79110
|
const b = P(() => Array.isArray(n.pools)), k = P(
|
|
79109
79111
|
() => b.value ? n.pools : u.value
|
|
79110
79112
|
), _ = P(
|
|
79111
79113
|
() => b.value ? n.loading : m.value
|
|
79112
79114
|
);
|
|
79113
|
-
async function $(
|
|
79115
|
+
async function $(q) {
|
|
79114
79116
|
if (b.value) {
|
|
79115
|
-
|
|
79117
|
+
q.complete();
|
|
79116
79118
|
return;
|
|
79117
79119
|
}
|
|
79118
79120
|
m.value = !0;
|
|
79119
79121
|
try {
|
|
79120
|
-
const
|
|
79122
|
+
const Z = await _ie({
|
|
79121
79123
|
page: h.value,
|
|
79122
79124
|
search: c.value,
|
|
79123
79125
|
url: n.apiUrl
|
|
79124
|
-
}), V = Array.isArray(
|
|
79125
|
-
u.value.push(...V), h.value++,
|
|
79126
|
+
}), V = Array.isArray(Z == null ? void 0 : Z.results) ? Z.results : Array.isArray(Z) ? Z : [];
|
|
79127
|
+
u.value.push(...V), h.value++, Z.next ? (y.value = !0, q.loaded()) : (y.value = !1, q.complete());
|
|
79126
79128
|
} catch {
|
|
79127
|
-
|
|
79129
|
+
q.error();
|
|
79128
79130
|
} finally {
|
|
79129
79131
|
m.value = !1;
|
|
79130
79132
|
}
|
|
@@ -79138,21 +79140,21 @@ const Cie = {
|
|
|
79138
79140
|
Ke(c, () => {
|
|
79139
79141
|
b.value || C();
|
|
79140
79142
|
});
|
|
79141
|
-
function T(
|
|
79142
|
-
So(
|
|
79143
|
+
function T(q) {
|
|
79144
|
+
So(q) <= 0 || (a("update:modelValue", q), i.value = !1);
|
|
79143
79145
|
}
|
|
79144
|
-
function D(
|
|
79145
|
-
|
|
79146
|
+
function D(q) {
|
|
79147
|
+
q.stopPropagation(), a("update:modelValue", null);
|
|
79146
79148
|
}
|
|
79147
79149
|
function Y() {
|
|
79148
79150
|
n.disabled || (i.value || g(), i.value = !i.value);
|
|
79149
79151
|
}
|
|
79150
|
-
function R(
|
|
79151
|
-
x.value && !x.value.contains(
|
|
79152
|
+
function R(q) {
|
|
79153
|
+
x.value && !x.value.contains(q.target) && (i.value = !1);
|
|
79152
79154
|
}
|
|
79153
79155
|
return gt(() => document.addEventListener("mousedown", R)), Bt(() => {
|
|
79154
79156
|
document.removeEventListener("mousedown", R), clearTimeout(M);
|
|
79155
|
-
}), (
|
|
79157
|
+
}), (q, Z) => (l(), f("div", null, [
|
|
79156
79158
|
e.label ? (l(), f("label", Cie, N(e.label), 1)) : F("", !0),
|
|
79157
79159
|
o("div", {
|
|
79158
79160
|
ref_key: "dropdownRef",
|
|
@@ -79176,7 +79178,7 @@ const Cie = {
|
|
|
79176
79178
|
key: 0,
|
|
79177
79179
|
onClick: D,
|
|
79178
79180
|
class: "flex size-4 items-center justify-center rounded-full text-current/40 transition hover:text-current/80"
|
|
79179
|
-
}, [...
|
|
79181
|
+
}, [...Z[2] || (Z[2] = [
|
|
79180
79182
|
o("svg", {
|
|
79181
79183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79182
79184
|
class: "size-3.5",
|
|
@@ -79195,7 +79197,7 @@ const Cie = {
|
|
|
79195
79197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79196
79198
|
fill: "currentColor",
|
|
79197
79199
|
viewBox: "0 0 24 24"
|
|
79198
|
-
}, [...
|
|
79200
|
+
}, [...Z[3] || (Z[3] = [
|
|
79199
79201
|
o("path", {
|
|
79200
79202
|
"fill-rule": "evenodd",
|
|
79201
79203
|
d: "M18.425 10.271C19.499 8.967 18.57 7 16.88 7H7.12c-1.69 0-2.618 1.967-1.544 3.271l4.881 5.927a2 2 0 0 0 3.088 0l4.88-5.927Z",
|
|
@@ -79212,11 +79214,11 @@ const Cie = {
|
|
|
79212
79214
|
}, [
|
|
79213
79215
|
b.value ? F("", !0) : (l(), f("div", Pie, [
|
|
79214
79216
|
ht(o("input", {
|
|
79215
|
-
"onUpdate:modelValue":
|
|
79217
|
+
"onUpdate:modelValue": Z[0] || (Z[0] = (V) => c.value = V),
|
|
79216
79218
|
type: "text",
|
|
79217
79219
|
placeholder: "Buscar carteira…",
|
|
79218
79220
|
class: "w-full border-none focus:border-none rounded-md bg-base-200 px-3 py-1.5 text-sm outline-none placeholder:text-current/30",
|
|
79219
|
-
onClick:
|
|
79221
|
+
onClick: Z[1] || (Z[1] = ct(() => {
|
|
79220
79222
|
}, ["stop"]))
|
|
79221
79223
|
}, null, 512), [
|
|
79222
79224
|
[Vt, c.value]
|
|
@@ -79240,7 +79242,7 @@ const Cie = {
|
|
|
79240
79242
|
]])
|
|
79241
79243
|
}, [
|
|
79242
79244
|
o("span", Fie, [
|
|
79243
|
-
((A = e.modelValue) == null ? void 0 : A.id) === V.id ? (l(), f("svg", Oie, [...
|
|
79245
|
+
((A = e.modelValue) == null ? void 0 : A.id) === V.id ? (l(), f("svg", Oie, [...Z[4] || (Z[4] = [
|
|
79244
79246
|
o("path", {
|
|
79245
79247
|
"fill-rule": "evenodd",
|
|
79246
79248
|
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm13.707-1.293a1 1 0 0 0-1.414-1.414L11 12.586l-1.793-1.793a1 1 0 0 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l4-4Z",
|
|
@@ -79262,12 +79264,12 @@ const Cie = {
|
|
|
79262
79264
|
key: p.value,
|
|
79263
79265
|
onInfinite: $
|
|
79264
79266
|
}, {
|
|
79265
|
-
spinner: Ae(() => [...
|
|
79267
|
+
spinner: Ae(() => [...Z[5] || (Z[5] = [
|
|
79266
79268
|
o("div", { class: "flex justify-center py-3" }, [
|
|
79267
79269
|
o("div", { class: "size-5 animate-spin rounded-full border-4 border-t-transparent border-primary" })
|
|
79268
79270
|
], -1)
|
|
79269
79271
|
])]),
|
|
79270
|
-
complete: Ae(() => [...
|
|
79272
|
+
complete: Ae(() => [...Z[6] || (Z[6] = [
|
|
79271
79273
|
o("span", null, null, -1)
|
|
79272
79274
|
])]),
|
|
79273
79275
|
_: 1
|