sm-click-library-ui 0.0.577 → 0.0.578
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-BwHjbZhT.js → index-CmT33HpY.js} +94 -91
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{web-CCMVMdim.js → web-CToH6dtf.js} +2 -2
- package/dist/{web-xJ4j4wYc.js → web-DNtVXBK_.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as O, watch as Oe, createElementBlock as p, openBlock as c, createElementVNode as o,
|
|
1
|
+
import { ref as O, watch as Oe, createElementBlock as p, openBlock as c, createElementVNode as o, Fragment as ge, renderList as Le, normalizeClass as Q, toDisplayString as F, computed as j, withDirectives as Qe, createCommentVNode as D, withModifiers as tt, vModelText as ht, createVNode as ke, Transition as yt, withCtx as xe, createTextVNode as Be, defineComponent as _n, toRefs as zo, onMounted as st, onUnmounted as dn, renderSlot as ct, vShow as Ft, nextTick as rt, pushScopeId as Tl, popScopeId as Pl, onBeforeUnmount as Et, normalizeStyle as Ne, unref as ce, createBlock as _e, resolveComponent as ft, Teleport as Bn, createSlots as Is, getCurrentScope as Dl, onScopeDispose as Fl, useSlots as Ho, resolveDynamicComponent as Gs, createStaticVNode as Te, reactive as rn, mergeModels as Ci, useModel as zn, mergeProps as Si, TransitionGroup as Mi, isRef as qs, withKeys as Ws, inject as Yt, h as We, shallowReactive as vs, watchEffect as hn, provide as wo, useId as Ol, getCurrentInstance as zl, onUpdated as Hl, cloneVNode as Vl, toRef as Rl, vModelSelect as jl, normalizeProps as Nl, guardReactiveProps as Il, vModelCheckbox as Ai, vModelDynamic as Gl, useCssVars as ql, toRaw as $i, readonly as Pn } from "vue";
|
|
2
2
|
import { defineStore as ca, storeToRefs as Wl } from "pinia";
|
|
3
3
|
const Zl = { class: "pt-2" }, Ul = { class: "relative" }, Yl = ["value", "placeholder"], Xl = {
|
|
4
4
|
__name: "FilterText",
|
|
@@ -6,21 +6,24 @@ const Zl = { class: "pt-2" }, Ul = { class: "relative" }, Yl = ["value", "placeh
|
|
|
6
6
|
modelValue: { default: null },
|
|
7
7
|
placeholder: { type: String, default: "Buscar..." }
|
|
8
8
|
},
|
|
9
|
-
emits: ["update:modelValue"],
|
|
9
|
+
emits: ["update:modelValue", "submit"],
|
|
10
10
|
setup(e, { emit: t }) {
|
|
11
11
|
const n = e, a = t, s = O(n.modelValue ?? "");
|
|
12
12
|
Oe(
|
|
13
13
|
() => n.modelValue,
|
|
14
|
-
(
|
|
15
|
-
s.value =
|
|
14
|
+
(l) => {
|
|
15
|
+
s.value = l ?? "";
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
|
-
function r(
|
|
19
|
-
s.value =
|
|
18
|
+
function r(l) {
|
|
19
|
+
s.value = l.target.value, a("update:modelValue", s.value || null);
|
|
20
|
+
}
|
|
21
|
+
function i(l) {
|
|
22
|
+
l.stopPropagation(), !(l.key !== "Enter" || l.isComposing) && (l.preventDefault(), a("submit"));
|
|
20
23
|
}
|
|
21
|
-
return (
|
|
24
|
+
return (l, u) => (c(), p("div", Zl, [
|
|
22
25
|
o("div", Ul, [
|
|
23
|
-
|
|
26
|
+
u[0] || (u[0] = o("svg", {
|
|
24
27
|
class: "absolute left-3 top-1/2 -translate-y-1/2 size-3.5 text-gray-400 pointer-events-none",
|
|
25
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26
29
|
viewBox: "0 0 20 20",
|
|
@@ -35,8 +38,7 @@ const Zl = { class: "pt-2" }, Ul = { class: "relative" }, Yl = ["value", "placeh
|
|
|
35
38
|
o("input", {
|
|
36
39
|
value: s.value,
|
|
37
40
|
onInput: r,
|
|
38
|
-
onKeydown:
|
|
39
|
-
}, ["stop"])),
|
|
41
|
+
onKeydown: i,
|
|
40
42
|
type: "text",
|
|
41
43
|
placeholder: e.placeholder,
|
|
42
44
|
class: "w-full py-2 pl-8 pr-3 ring-0 rounded-lg text-sm border-base-200 bg-base-300 placeholder:text-gray-500 outline-none transition-colors"
|
|
@@ -133,7 +135,7 @@ const Zl = { class: "pt-2" }, Ul = { class: "relative" }, Yl = ["value", "placeh
|
|
|
133
135
|
type: "text",
|
|
134
136
|
class: "ms-search-input",
|
|
135
137
|
placeholder: e.placeholder,
|
|
136
|
-
onKeydown: v[1] || (v[1] =
|
|
138
|
+
onKeydown: v[1] || (v[1] = tt(() => {
|
|
137
139
|
}, ["stop"]))
|
|
138
140
|
}, null, 40, n2), [
|
|
139
141
|
[ht, s.value]
|
|
@@ -2025,11 +2027,11 @@ const {
|
|
|
2025
2027
|
getToken: (e) => e.jwtToken,
|
|
2026
2028
|
getRefreshToken: (e) => e.refreshToken
|
|
2027
2029
|
}
|
|
2028
|
-
}),
|
|
2030
|
+
}), et = vt.create({
|
|
2029
2031
|
baseURL: "https://back.dev-smclick.com.br/"
|
|
2030
2032
|
// O `rootUrl` será definido dinamicamente via setupLibrary
|
|
2031
2033
|
}), Co = vt.create();
|
|
2032
|
-
Co.defaults.baseURL =
|
|
2034
|
+
Co.defaults.baseURL = et.defaults.baseURL;
|
|
2033
2035
|
let Ko = null, Ji = null, e0 = null, Qo = !1, ws = [];
|
|
2034
2036
|
function Ir(e) {
|
|
2035
2037
|
ws.forEach(({ resolve: t, reject: n }) => {
|
|
@@ -2043,7 +2045,7 @@ function Gc(e) {
|
|
|
2043
2045
|
function qc(e) {
|
|
2044
2046
|
Ji = e;
|
|
2045
2047
|
}
|
|
2046
|
-
|
|
2048
|
+
et.interceptors.request.use(
|
|
2047
2049
|
(e) => {
|
|
2048
2050
|
try {
|
|
2049
2051
|
const n = t0().jwtToken;
|
|
@@ -2055,7 +2057,7 @@ tt.interceptors.request.use(
|
|
|
2055
2057
|
},
|
|
2056
2058
|
(e) => Promise.reject(e)
|
|
2057
2059
|
);
|
|
2058
|
-
|
|
2060
|
+
et.interceptors.response.use(
|
|
2059
2061
|
(e) => e,
|
|
2060
2062
|
async (e) => {
|
|
2061
2063
|
if (!e.response)
|
|
@@ -2072,11 +2074,11 @@ tt.interceptors.response.use(
|
|
|
2072
2074
|
if (Qo)
|
|
2073
2075
|
return new Promise((s, r) => {
|
|
2074
2076
|
ws.push({ resolve: s, reject: r });
|
|
2075
|
-
}).then(() =>
|
|
2077
|
+
}).then(() => et.request(e.config)).catch((s) => Promise.reject(s));
|
|
2076
2078
|
e.config._retry = !0, Qo = !0;
|
|
2077
2079
|
try {
|
|
2078
2080
|
const s = Ji || `${Co.defaults.baseURL}v1/api/attendances/token/refresh/`, i = (await Co.post(s, { refresh: a })).data.access;
|
|
2079
|
-
return n.setToken(i, a), Ir(null),
|
|
2081
|
+
return n.setToken(i, a), Ir(null), et.request(e.config);
|
|
2080
2082
|
} catch (s) {
|
|
2081
2083
|
return console.error("Erro ao fazer refresh do token:", s), Ir(s), n.clearToken(), typeof window < "u" && window.location && setTimeout(() => {
|
|
2082
2084
|
window.location.href = "/login";
|
|
@@ -2089,7 +2091,7 @@ tt.interceptors.response.use(
|
|
|
2089
2091
|
}
|
|
2090
2092
|
);
|
|
2091
2093
|
function Wc(e) {
|
|
2092
|
-
e && (
|
|
2094
|
+
e && (et.defaults.baseURL = e, Co.defaults.baseURL = e);
|
|
2093
2095
|
}
|
|
2094
2096
|
const Zc = "v1/api/attendances/attendant/", Uc = "v1/api/attendances/department/", kn = "v1/api/attendances/internal_chat/", Yc = "v1/api/instances/instance/", Xc = "v1/api/crm/event/scheduled_message/", Kc = "v1/api/crm/event/calendar", Qc = "v1/api/crm/products/", Jc = "v1/api/contacts/tag/", n0 = "v1/api/contacts/contact/", ks = (e) => `${n0}${e}/wallets/`, ed = "/v1/api/contacts/segmentation_field/", td = "v1/api/attendances/calls/", So = "v1/api/crm/event/attendant_reminder/", nd = "v1/api/instances/template/", Go = "v1/api/campaigns/sms-pool/", ha = (e, t = "") => `${kn}${e}/${{
|
|
2095
2097
|
add: "add_attendant/",
|
|
@@ -2337,7 +2339,7 @@ const md = {
|
|
|
2337
2339
|
return Object.keys(L).forEach((E) => M.append(E, L[E])), `${k}?${M.toString()}`;
|
|
2338
2340
|
}, W = async (T) => {
|
|
2339
2341
|
try {
|
|
2340
|
-
const L = await
|
|
2342
|
+
const L = await et.get(
|
|
2341
2343
|
z(Jc, { page: d.value, ...T })
|
|
2342
2344
|
), { results: M, next: k, previous: E } = L.data;
|
|
2343
2345
|
v.value = k, g.value = E, d.value === 1 ? f.value = M : f.value = [...f.value, ...M];
|
|
@@ -2423,7 +2425,7 @@ const md = {
|
|
|
2423
2425
|
o("p", gd, F(k.name), 1),
|
|
2424
2426
|
o("button", {
|
|
2425
2427
|
class: "px-2",
|
|
2426
|
-
onClick:
|
|
2428
|
+
onClick: tt((E) => _(k), ["prevent", "stop"])
|
|
2427
2429
|
}, " x ", 8, yd)
|
|
2428
2430
|
], 6)
|
|
2429
2431
|
]))), 128))
|
|
@@ -2919,7 +2921,7 @@ const md = {
|
|
|
2919
2921
|
"filter-trigger--active text-primary": m(H)
|
|
2920
2922
|
}
|
|
2921
2923
|
]),
|
|
2922
|
-
onClick:
|
|
2924
|
+
onClick: tt((q) => _(H), ["stop"])
|
|
2923
2925
|
}, [
|
|
2924
2926
|
C[9] || (C[9] = o("svg", {
|
|
2925
2927
|
class: "size-3.5",
|
|
@@ -3001,7 +3003,7 @@ const md = {
|
|
|
3001
3003
|
ref: r,
|
|
3002
3004
|
style: Ne(i.value),
|
|
3003
3005
|
class: "filter-panel-teleport filter-dropdown",
|
|
3004
|
-
onClick: C[6] || (C[6] =
|
|
3006
|
+
onClick: C[6] || (C[6] = tt(() => {
|
|
3005
3007
|
}, ["stop"]))
|
|
3006
3008
|
}, [
|
|
3007
3009
|
o("div", su, [
|
|
@@ -3031,7 +3033,8 @@ const md = {
|
|
|
3031
3033
|
key: 0,
|
|
3032
3034
|
"model-value": f.value[d(g.value)],
|
|
3033
3035
|
placeholder: g.value.filter.placeholder,
|
|
3034
|
-
"onUpdate:modelValue": C[2] || (C[2] = (H) => A(g.value, H))
|
|
3036
|
+
"onUpdate:modelValue": C[2] || (C[2] = (H) => A(g.value, H)),
|
|
3037
|
+
onSubmit: z
|
|
3035
3038
|
}, null, 8, ["model-value", "placeholder"])) : g.value.filter.type === "select" ? (c(), _e(e2, {
|
|
3036
3039
|
key: 1,
|
|
3037
3040
|
options: g.value.filter.options,
|
|
@@ -3071,7 +3074,7 @@ const md = {
|
|
|
3071
3074
|
], 64);
|
|
3072
3075
|
};
|
|
3073
3076
|
}
|
|
3074
|
-
}, o0 = /* @__PURE__ */ Pe(cu, [["__scopeId", "data-v-
|
|
3077
|
+
}, o0 = /* @__PURE__ */ Pe(cu, [["__scopeId", "data-v-6090007a"]]), du = ["innerHTML"], uu = { class: "text-xs" }, s0 = {
|
|
3075
3078
|
__name: "CategoryBadge",
|
|
3076
3079
|
props: {
|
|
3077
3080
|
category: {
|
|
@@ -3139,7 +3142,7 @@ const md = {
|
|
|
3139
3142
|
async fetchDepartments(e = "") {
|
|
3140
3143
|
try {
|
|
3141
3144
|
let t = `${Uc}`;
|
|
3142
|
-
const n = await
|
|
3145
|
+
const n = await et.get(t);
|
|
3143
3146
|
this.departments = n.data, this.count = this.departments.length, this.loaded = !0;
|
|
3144
3147
|
} catch (t) {
|
|
3145
3148
|
console.log("Erro ao buscar departamentos:", t);
|
|
@@ -3311,7 +3314,7 @@ const md = {
|
|
|
3311
3314
|
if (a.extraParams)
|
|
3312
3315
|
for (const [x, S] of Object.entries(a.extraParams))
|
|
3313
3316
|
Array.isArray(S) ? S.forEach((A) => h.append(x, A)) : S != null && S !== "" && h.append(x, S);
|
|
3314
|
-
const { data: y } = await
|
|
3317
|
+
const { data: y } = await et.get(`${nd}?${h.toString()}`);
|
|
3315
3318
|
s.value = y.results, l.value = y.count;
|
|
3316
3319
|
} catch {
|
|
3317
3320
|
s.value = [], l.value = 0;
|
|
@@ -3977,7 +3980,7 @@ const Gu = { class: "line-clamp-2 uppercase text-xs truncate text-white" }, qu =
|
|
|
3977
3980
|
rel: "noopener noreferrer",
|
|
3978
3981
|
href: `https://www.instagram.com/${e.instagramUserName}/`,
|
|
3979
3982
|
class: Q([n.value, "group rt-transition"]),
|
|
3980
|
-
onClick: r[0] || (r[0] =
|
|
3983
|
+
onClick: r[0] || (r[0] = tt(() => {
|
|
3981
3984
|
}, ["stop"]))
|
|
3982
3985
|
}, [
|
|
3983
3986
|
e.hideSvg ? D("", !0) : (c(), p("svg", f3, [
|
|
@@ -4334,7 +4337,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4334
4337
|
content: xe(() => [
|
|
4335
4338
|
o("div", {
|
|
4336
4339
|
class: "stack-popover",
|
|
4337
|
-
onClick: Z[1] || (Z[1] =
|
|
4340
|
+
onClick: Z[1] || (Z[1] = tt(() => {
|
|
4338
4341
|
}, ["stop"]))
|
|
4339
4342
|
}, [
|
|
4340
4343
|
Z[8] || (Z[8] = o("p", { class: "stack-popover__title stack-popover__title--wa" }, " WhatsApp ", -1)),
|
|
@@ -4378,7 +4381,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4378
4381
|
content: xe(() => [
|
|
4379
4382
|
o("div", {
|
|
4380
4383
|
class: "stack-popover",
|
|
4381
|
-
onClick: Z[2] || (Z[2] =
|
|
4384
|
+
onClick: Z[2] || (Z[2] = tt(() => {
|
|
4382
4385
|
}, ["stop"]))
|
|
4383
4386
|
}, [
|
|
4384
4387
|
Z[11] || (Z[11] = o("p", { class: "stack-popover__title stack-popover__title--ig" }, " Instagram ", -1)),
|
|
@@ -4673,7 +4676,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4673
4676
|
key: 0,
|
|
4674
4677
|
class: Q(["info-chips-bar", { "info-chips-bar--no-chat": !e.showStartChat }]),
|
|
4675
4678
|
title: "Ver detalhes do contato",
|
|
4676
|
-
onClick: y[0] || (y[0] =
|
|
4679
|
+
onClick: y[0] || (y[0] = tt((x) => s.value = !0, ["stop"]))
|
|
4677
4680
|
}, [
|
|
4678
4681
|
(c(!0), p(ge, null, Le(v.value, (x) => (c(), p("span", {
|
|
4679
4682
|
key: x.key,
|
|
@@ -4701,7 +4704,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4701
4704
|
e.showStartChat ? (c(), p("button", {
|
|
4702
4705
|
key: 1,
|
|
4703
4706
|
class: "start-chat-btn",
|
|
4704
|
-
onClick: y[1] || (y[1] =
|
|
4707
|
+
onClick: y[1] || (y[1] = tt((x) => a("start-chat", f.value), ["stop"]))
|
|
4705
4708
|
}, [...y[5] || (y[5] = [
|
|
4706
4709
|
o("svg", {
|
|
4707
4710
|
class: "start-chat-icon",
|
|
@@ -4771,7 +4774,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4771
4774
|
key: `phone-${S}`,
|
|
4772
4775
|
class: "group-item",
|
|
4773
4776
|
title: r.value === `phone-${S}` ? "Copiado!" : "Clique para copiar",
|
|
4774
|
-
onClick:
|
|
4777
|
+
onClick: tt((A) => m(x, `phone-${S}`), ["stop"])
|
|
4775
4778
|
}, [
|
|
4776
4779
|
o("span", n4, F(x), 1),
|
|
4777
4780
|
r.value === `phone-${S}` ? (c(), p("svg", a4, [...y[8] || (y[8] = [
|
|
@@ -4803,7 +4806,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4803
4806
|
key: `email-${S}`,
|
|
4804
4807
|
class: "group-item",
|
|
4805
4808
|
title: r.value === `email-${S}` ? "Copiado!" : "Clique para copiar",
|
|
4806
|
-
onClick:
|
|
4809
|
+
onClick: tt((A) => m(x.email, `email-${S}`), ["stop"])
|
|
4807
4810
|
}, [
|
|
4808
4811
|
o("span", d4, F(x.email), 1),
|
|
4809
4812
|
x.type ? (c(), p("span", u4, F(x.type), 1)) : D("", !0),
|
|
@@ -4836,7 +4839,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4836
4839
|
key: `addr-${S}`,
|
|
4837
4840
|
class: "group-item",
|
|
4838
4841
|
title: r.value === `addr-${S}` ? "Copiado!" : "Clique para copiar",
|
|
4839
|
-
onClick:
|
|
4842
|
+
onClick: tt((A) => m(g(x), `addr-${S}`), ["stop"])
|
|
4840
4843
|
}, [
|
|
4841
4844
|
o("span", b4, F(g(x)), 1),
|
|
4842
4845
|
x.type ? (c(), p("span", x4, F(x.type), 1)) : D("", !0),
|
|
@@ -4934,7 +4937,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
4934
4937
|
async fetchInstances(e = "") {
|
|
4935
4938
|
try {
|
|
4936
4939
|
let t = `${Yc}`;
|
|
4937
|
-
const n = await
|
|
4940
|
+
const n = await et.get(t);
|
|
4938
4941
|
this.instances = n.data, await Promise.all(
|
|
4939
4942
|
this.instances.map(async (a) => {
|
|
4940
4943
|
a.isLoading = !0;
|
|
@@ -5420,7 +5423,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
5420
5423
|
type: "button",
|
|
5421
5424
|
class: Q(["head-playbtn text-primary", { playing: b.value }]),
|
|
5422
5425
|
title: b.value ? "Pausar" : "Ouvir",
|
|
5423
|
-
onClick:
|
|
5426
|
+
onClick: tt(m, ["stop"])
|
|
5424
5427
|
}, [
|
|
5425
5428
|
o("span", {
|
|
5426
5429
|
innerHTML: b.value ? '<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 24 24" fill="currentColor"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>' : '<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>'
|
|
@@ -5464,7 +5467,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
5464
5467
|
o("button", {
|
|
5465
5468
|
type: "button",
|
|
5466
5469
|
class: Q(["playbtn", { playing: g(A) }]),
|
|
5467
|
-
onClick:
|
|
5470
|
+
onClick: tt((w) => v(A), ["stop"]),
|
|
5468
5471
|
title: g(A) ? "Pausar" : "Ouvir"
|
|
5469
5472
|
}, [
|
|
5470
5473
|
o("span", {
|
|
@@ -5637,7 +5640,7 @@ const g3 = { class: "relative shrink-0" }, y3 = ["src", "alt"], b3 = {
|
|
|
5637
5640
|
s.value ? (c(), p("div", {
|
|
5638
5641
|
key: 0,
|
|
5639
5642
|
class: "cpk-popover-layer",
|
|
5640
|
-
onMousedown:
|
|
5643
|
+
onMousedown: tt(u, ["self"])
|
|
5641
5644
|
}, [
|
|
5642
5645
|
ke(yt, {
|
|
5643
5646
|
name: "cpk-card",
|
|
@@ -6673,7 +6676,7 @@ async function e7(e = "/crm_scheduled", t) {
|
|
|
6673
6676
|
try {
|
|
6674
6677
|
const a = ((n = t == null ? void 0 : t.raw) == null ? void 0 : n.id) ?? (t == null ? void 0 : t.id) ?? t;
|
|
6675
6678
|
if (a == null) throw new Error("ID inválido");
|
|
6676
|
-
const s = `${String(e).replace(/\/$/, "")}/${a}/`, r = await
|
|
6679
|
+
const s = `${String(e).replace(/\/$/, "")}/${a}/`, r = await et.delete(s);
|
|
6677
6680
|
return { ok: (r == null ? void 0 : r.status) >= 200 && r.status < 300, status: (r == null ? void 0 : r.status) ?? 0 };
|
|
6678
6681
|
} catch (a) {
|
|
6679
6682
|
return console.error("Error erasing scheduled event:", a), { ok: !1, status: 0 };
|
|
@@ -6743,7 +6746,7 @@ const yn = /* @__PURE__ */ new Map(), C0 = ca("scheduled", {
|
|
|
6743
6746
|
try {
|
|
6744
6747
|
const r = `${this.baseUrl}?year_month=${encodeURIComponent(
|
|
6745
6748
|
e
|
|
6746
|
-
)}&page_size=10`, i = await
|
|
6749
|
+
)}&page_size=10`, i = await et.get(r), l = Array.isArray(i == null ? void 0 : i.data) ? i.data : ((a = i == null ? void 0 : i.data) == null ? void 0 : a.results) || [], u = Xr(l || []);
|
|
6747
6750
|
this._setMonth(e, u), this.loadedYM.add(e);
|
|
6748
6751
|
let f = this.coerceHttps(((s = i == null ? void 0 : i.data) == null ? void 0 : s.next) || null);
|
|
6749
6752
|
f && (async () => {
|
|
@@ -6751,7 +6754,7 @@ const yn = /* @__PURE__ */ new Map(), C0 = ca("scheduled", {
|
|
|
6751
6754
|
try {
|
|
6752
6755
|
let g = f;
|
|
6753
6756
|
for (; g; ) {
|
|
6754
|
-
const b = await
|
|
6757
|
+
const b = await et.get(g), m = Array.isArray(b == null ? void 0 : b.data) ? b.data : ((d = b == null ? void 0 : b.data) == null ? void 0 : d.results) || [], h = Xr(m || []);
|
|
6755
6758
|
this._appendMonth(e, h), g = this.coerceHttps(((v = b == null ? void 0 : b.data) == null ? void 0 : v.next) || null);
|
|
6756
6759
|
}
|
|
6757
6760
|
} catch (g) {
|
|
@@ -6954,7 +6957,7 @@ const yn = /* @__PURE__ */ new Map(), C0 = ca("scheduled", {
|
|
|
6954
6957
|
return a.set("page", t || 1), a.set("status", n), `${s}?${a.toString()}`;
|
|
6955
6958
|
}, n7 = async (e = 2, t) => {
|
|
6956
6959
|
try {
|
|
6957
|
-
const { data: n } = await
|
|
6960
|
+
const { data: n } = await et.get(t7(So, e, t));
|
|
6958
6961
|
return n;
|
|
6959
6962
|
} catch (n) {
|
|
6960
6963
|
return console.error("Error fetching reminders:", n), { results: [], count: 0 };
|
|
@@ -6985,7 +6988,7 @@ const yn = /* @__PURE__ */ new Map(), C0 = ca("scheduled", {
|
|
|
6985
6988
|
success: "Produto criado com sucesso!"
|
|
6986
6989
|
}, i = { schedule: a, message: s };
|
|
6987
6990
|
try {
|
|
6988
|
-
const { data: g } = await
|
|
6991
|
+
const { data: g } = await et[r.method](r.url, i), b = (g == null ? void 0 : g.message) || r.success || "Lembrete salvo com sucesso.";
|
|
6989
6992
|
$n({ group: "success", title: "Sucesso", text: b }, 4e3), M0(g.data, t, "active");
|
|
6990
6993
|
const m = {
|
|
6991
6994
|
id: g.data.id,
|
|
@@ -7004,7 +7007,7 @@ const yn = /* @__PURE__ */ new Map(), C0 = ca("scheduled", {
|
|
|
7004
7007
|
}
|
|
7005
7008
|
}, o7 = async (e) => {
|
|
7006
7009
|
try {
|
|
7007
|
-
const t = await
|
|
7010
|
+
const t = await et.delete(`${So}${e}/`), n = wt.active.reminders.findIndex((a) => a.id === e);
|
|
7008
7011
|
return n !== -1 && wt.active.reminders.splice(n, 1), $n(
|
|
7009
7012
|
{
|
|
7010
7013
|
group: "success",
|
|
@@ -7789,7 +7792,7 @@ const Yn = ca("attendant", {
|
|
|
7789
7792
|
async fetchAttendants() {
|
|
7790
7793
|
try {
|
|
7791
7794
|
let e = `${Zc}`;
|
|
7792
|
-
const t = await
|
|
7795
|
+
const t = await et.get(e);
|
|
7793
7796
|
this.attendants = t.data, this.count = this.attendants.length;
|
|
7794
7797
|
} catch (e) {
|
|
7795
7798
|
console.log("Erro ao buscar atendentes:", e);
|
|
@@ -9085,7 +9088,7 @@ const _9 = { class: "itemc-head" }, B9 = {
|
|
|
9085
9088
|
e.open ? (c(), p("div", {
|
|
9086
9089
|
key: 0,
|
|
9087
9090
|
class: "cpk-popover-layer",
|
|
9088
|
-
onMousedown: P[4] || (P[4] =
|
|
9091
|
+
onMousedown: P[4] || (P[4] = tt((T) => R.$emit("close"), ["self"]))
|
|
9089
9092
|
}, [
|
|
9090
9093
|
ke(yt, {
|
|
9091
9094
|
name: "cpk-card",
|
|
@@ -16565,7 +16568,7 @@ ur("CapacitorHttp", {
|
|
|
16565
16568
|
web: () => new uv()
|
|
16566
16569
|
});
|
|
16567
16570
|
const On = ur("VoiceRecorder", {
|
|
16568
|
-
web: () => import("./web-
|
|
16571
|
+
web: () => import("./web-CToH6dtf.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
16569
16572
|
});
|
|
16570
16573
|
function U1(e, t) {
|
|
16571
16574
|
return c(), p("svg", {
|
|
@@ -18568,9 +18571,9 @@ const wg = _n({
|
|
|
18568
18571
|
}), (M, k) => {
|
|
18569
18572
|
var E, V, $;
|
|
18570
18573
|
return c(), p("main", {
|
|
18571
|
-
onDragover:
|
|
18574
|
+
onDragover: tt(h, ["prevent"]),
|
|
18572
18575
|
onDragleave: y,
|
|
18573
|
-
onDrop:
|
|
18576
|
+
onDrop: tt(_, ["prevent"])
|
|
18574
18577
|
}, [
|
|
18575
18578
|
o("section", {
|
|
18576
18579
|
class: Q(["dropzone-container ", { "dropzone-active": s.value }])
|
|
@@ -18652,7 +18655,7 @@ const wg = _n({
|
|
|
18652
18655
|
"carousel-preview",
|
|
18653
18656
|
{ active: d.value === B }
|
|
18654
18657
|
]]),
|
|
18655
|
-
onDragstart: k[3] || (k[3] =
|
|
18658
|
+
onDragstart: k[3] || (k[3] = tt(() => {
|
|
18656
18659
|
}, ["prevent"])),
|
|
18657
18660
|
onClick: (H) => T(C, B)
|
|
18658
18661
|
}, [
|
|
@@ -18863,7 +18866,7 @@ const Hg = (e) => {
|
|
|
18863
18866
|
previous: Ds.value
|
|
18864
18867
|
};
|
|
18865
18868
|
a ? vo.value = !0 : go.value = !0;
|
|
18866
|
-
const r = await
|
|
18869
|
+
const r = await et.get(`${kn}channels/?page=${e}`);
|
|
18867
18870
|
return Vg(((s = r.data) == null ? void 0 : s.results) || [], a), Rg(r.data, e), a && (ai.value = !0), r.data;
|
|
18868
18871
|
} catch (r) {
|
|
18869
18872
|
throw console.error(r), console.error("Erro ao buscar canais de grupo:", JSON.stringify(r)), r;
|
|
@@ -18982,7 +18985,7 @@ function jg() {
|
|
|
18982
18985
|
if (k)
|
|
18983
18986
|
try {
|
|
18984
18987
|
t.value = !0;
|
|
18985
|
-
const $ = (E = k.internal_chat) != null && E.channel_id ? `${kn}messages_by_channel/?channel_id=${k.internal_chat.channel_id}&page=1` : `${kn}?attendant=${k.id}&page=1`, C = await
|
|
18988
|
+
const $ = (E = k.internal_chat) != null && E.channel_id ? `${kn}messages_by_channel/?channel_id=${k.internal_chat.channel_id}&page=1` : `${kn}?attendant=${k.id}&page=1`, C = await et.get($);
|
|
18986
18989
|
k.is_group ? k.chat_info = {
|
|
18987
18990
|
messages: C.data.results.reverse(),
|
|
18988
18991
|
hasNextPage: C.data.next !== null,
|
|
@@ -19003,7 +19006,7 @@ function jg() {
|
|
|
19003
19006
|
if (!(!k || !E || n.value))
|
|
19004
19007
|
try {
|
|
19005
19008
|
n.value = !0;
|
|
19006
|
-
const C = k.is_group ? k.chat_info.currentPage : k.currentPage, B = ($ = k.internal_chat) != null && $.channel_id ? `${kn}messages_by_channel/?channel_id=${k.internal_chat.channel_id}&page=${C}` : `${kn}messages_by_channel/?attendant=${k.id}&page=${C}`, H = await
|
|
19009
|
+
const C = k.is_group ? k.chat_info.currentPage : k.currentPage, B = ($ = k.internal_chat) != null && $.channel_id ? `${kn}messages_by_channel/?channel_id=${k.internal_chat.channel_id}&page=${C}` : `${kn}messages_by_channel/?attendant=${k.id}&page=${C}`, H = await et.get(B);
|
|
19007
19010
|
k.is_group ? (k.chat_info.messages = [
|
|
19008
19011
|
...H.data.results.reverse(),
|
|
19009
19012
|
...k.chat_info.messages
|
|
@@ -19043,7 +19046,7 @@ function jg() {
|
|
|
19043
19046
|
};
|
|
19044
19047
|
$.is_group ? ($.chat_info || ($.chat_info = { messages: [], hasNextPage: !1, currentPage: 1 }), $.chat_info.messages.push(B)) : ($.messages || ($.messages = []), $.messages.push(B));
|
|
19045
19048
|
try {
|
|
19046
|
-
await
|
|
19049
|
+
await et.post(
|
|
19047
19050
|
`${kn}${$.internal_chat.channel_id}/message/`,
|
|
19048
19051
|
{
|
|
19049
19052
|
id: B.id,
|
|
@@ -19078,11 +19081,11 @@ function jg() {
|
|
|
19078
19081
|
try {
|
|
19079
19082
|
const Y = [];
|
|
19080
19083
|
if (he.length > 0 && Y.push(
|
|
19081
|
-
|
|
19084
|
+
et.post(ha(N, "add"), {
|
|
19082
19085
|
participants: he
|
|
19083
19086
|
})
|
|
19084
19087
|
), ne.length > 0 && Y.push(
|
|
19085
|
-
|
|
19088
|
+
et.post(ha(N, "remove"), {
|
|
19086
19089
|
participants: ne
|
|
19087
19090
|
})
|
|
19088
19091
|
), (await Promise.all(Y)).some((Ce) => !to(Ce == null ? void 0 : Ce.status)))
|
|
@@ -19094,7 +19097,7 @@ function jg() {
|
|
|
19094
19097
|
}
|
|
19095
19098
|
}
|
|
19096
19099
|
try {
|
|
19097
|
-
const N = await
|
|
19100
|
+
const N = await et.post(`${kn}create_group/`, M);
|
|
19098
19101
|
if (!to(N == null ? void 0 : N.status))
|
|
19099
19102
|
throw new Error("Erro ao criar grupo.");
|
|
19100
19103
|
return Os(
|
|
@@ -19133,7 +19136,7 @@ function jg() {
|
|
|
19133
19136
|
}, P = async (M) => {
|
|
19134
19137
|
if (!M) return !1;
|
|
19135
19138
|
try {
|
|
19136
|
-
const k = ha(M, "leave"), E = await
|
|
19139
|
+
const k = ha(M, "leave"), E = await et.post(k);
|
|
19137
19140
|
return to(E == null ? void 0 : E.status) ? (W(M), z(M), !0) : !1;
|
|
19138
19141
|
} catch (k) {
|
|
19139
19142
|
return console.error("Erro ao sair do grupo:", k), !1;
|
|
@@ -19141,7 +19144,7 @@ function jg() {
|
|
|
19141
19144
|
}, T = async (M) => {
|
|
19142
19145
|
try {
|
|
19143
19146
|
const k = ha(M, "add");
|
|
19144
|
-
await
|
|
19147
|
+
await et.post(k, {
|
|
19145
19148
|
participants: ["da20f5a0-c8bc-4afe-b308-fd7e0915e3bd"]
|
|
19146
19149
|
}), xt.value.unshift(event.message);
|
|
19147
19150
|
} catch (k) {
|
|
@@ -19152,7 +19155,7 @@ function jg() {
|
|
|
19152
19155
|
const E = [];
|
|
19153
19156
|
E.push(k);
|
|
19154
19157
|
try {
|
|
19155
|
-
const V = ha(M, "remove"), $ = await
|
|
19158
|
+
const V = ha(M, "remove"), $ = await et.post(V, {
|
|
19156
19159
|
participants: E
|
|
19157
19160
|
});
|
|
19158
19161
|
return to($ == null ? void 0 : $.status) ? (R(M, k), !0) : !1;
|
|
@@ -19281,7 +19284,7 @@ const Ng = { class: "popper-header bg-base-300 border-b border-base-200" }, Ig =
|
|
|
19281
19284
|
ref_key: "popperPanelRef",
|
|
19282
19285
|
ref: a,
|
|
19283
19286
|
class: "popper-panel",
|
|
19284
|
-
onClick: h[2] || (h[2] =
|
|
19287
|
+
onClick: h[2] || (h[2] = tt(() => {
|
|
19285
19288
|
}, ["stop"]))
|
|
19286
19289
|
}, [
|
|
19287
19290
|
o("header", Ng, [
|
|
@@ -19304,7 +19307,7 @@ const Ng = { class: "popper-header bg-base-300 border-b border-base-200" }, Ig =
|
|
|
19304
19307
|
key: y.id,
|
|
19305
19308
|
class: Q(["popper-item", { selected: v(y) }]),
|
|
19306
19309
|
onClick: [
|
|
19307
|
-
h[0] || (h[0] =
|
|
19310
|
+
h[0] || (h[0] = tt(() => {
|
|
19308
19311
|
}, ["stop"])),
|
|
19309
19312
|
(x) => g(y)
|
|
19310
19313
|
]
|
|
@@ -19703,7 +19706,7 @@ const Ng = { class: "popper-header bg-base-300 border-b border-base-200" }, Ig =
|
|
|
19703
19706
|
])) : (c(), p(ge, { key: 1 }, [
|
|
19704
19707
|
r.value ? (c(), p("div", {
|
|
19705
19708
|
key: 0,
|
|
19706
|
-
onClick:
|
|
19709
|
+
onClick: tt(ye, ["stop"]),
|
|
19707
19710
|
style: { width: "42px", height: "42px", "border-radius": "50%", "background-color": "#02a9db", display: "flex", "justify-content": "center" }
|
|
19708
19711
|
}, [...te[4] || (te[4] = [
|
|
19709
19712
|
o("span", {
|
|
@@ -19733,7 +19736,7 @@ const Ng = { class: "popper-header bg-base-300 border-b border-base-200" }, Ig =
|
|
|
19733
19736
|
to: "body"
|
|
19734
19737
|
}, [
|
|
19735
19738
|
o("div", {
|
|
19736
|
-
onClick:
|
|
19739
|
+
onClick: tt(ve, ["stop"]),
|
|
19737
19740
|
class: Q(["group relative", [
|
|
19738
19741
|
r.value ? "chat-box border-base-200 open bg-base-200" : "chat-box closed",
|
|
19739
19742
|
e.wrapperClass
|
|
@@ -19759,7 +19762,7 @@ const Ng = { class: "popper-header bg-base-300 border-b border-base-200" }, Ig =
|
|
|
19759
19762
|
default: xe(() => [
|
|
19760
19763
|
r.value && !Ie.value ? (c(), p("div", uy, [
|
|
19761
19764
|
o("button", {
|
|
19762
|
-
onClick:
|
|
19765
|
+
onClick: tt(we, ["stop"]),
|
|
19763
19766
|
class: "fullscreen-btn",
|
|
19764
19767
|
title: ze.value ? "Recolher chat" : "Expandir chat"
|
|
19765
19768
|
}, [
|
|
@@ -48566,7 +48569,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
48566
48569
|
], 2)),
|
|
48567
48570
|
e.modelValue && e.hasRemoveBtn ? (c(), p("button", {
|
|
48568
48571
|
key: 2,
|
|
48569
|
-
onClick:
|
|
48572
|
+
onClick: tt(s, ["stop"]),
|
|
48570
48573
|
class: "absolute top-1 right-1 rounded-lg bg-red-600 hover:bg-red-500 z-50 py-1 px-1"
|
|
48571
48574
|
}, [...i[0] || (i[0] = [
|
|
48572
48575
|
o("svg", {
|
|
@@ -51058,7 +51061,7 @@ const nL = { class: "toggle-page-buttons-wrapper" }, aL = ["disabled", "onClick"
|
|
|
51058
51061
|
return Object.keys(Y).forEach((Ce) => pe.append(Ce, Y[Ce])), `${De}?${pe.toString()}`;
|
|
51059
51062
|
}, M = async (ne) => {
|
|
51060
51063
|
try {
|
|
51061
|
-
const { data: Y } = await
|
|
51064
|
+
const { data: Y } = await et.get(
|
|
51062
51065
|
L(Qc, { page: f.value, ...ne })
|
|
51063
51066
|
), { results: pe, next: De, previous: Ce } = Y;
|
|
51064
51067
|
if (d.value = De, v.value = Ce, f.value === 1)
|
|
@@ -51469,7 +51472,7 @@ const Sr = /* @__PURE__ */ Pe(wT, [["render", CT], ["__scopeId", "data-v-974c909
|
|
|
51469
51472
|
const h = async () => {
|
|
51470
51473
|
try {
|
|
51471
51474
|
r.value = !0;
|
|
51472
|
-
const y = await
|
|
51475
|
+
const y = await et.get(ed);
|
|
51473
51476
|
s.value = y.data, f(s.value), await rt(), m();
|
|
51474
51477
|
} catch (y) {
|
|
51475
51478
|
console.error("Error fetching segmentation fields:", y);
|
|
@@ -51761,7 +51764,7 @@ const Sr = /* @__PURE__ */ Pe(wT, [["render", CT], ["__scopeId", "data-v-974c909
|
|
|
51761
51764
|
if (!E.value || !n.contactId) return;
|
|
51762
51765
|
const Z = (Y = R.value) == null ? void 0 : Y.id, he = S.value, ne = ks(n.contactId);
|
|
51763
51766
|
try {
|
|
51764
|
-
r.value = !0, await
|
|
51767
|
+
r.value = !0, await et.post(ne, {
|
|
51765
51768
|
attendant_id: Z,
|
|
51766
51769
|
department_id: he
|
|
51767
51770
|
}), $n(
|
|
@@ -52235,7 +52238,7 @@ const Sr = /* @__PURE__ */ Pe(wT, [["render", CT], ["__scopeId", "data-v-974c909
|
|
|
52235
52238
|
r.value = !0, i.value = "";
|
|
52236
52239
|
const [, { data: N }] = await Promise.all([
|
|
52237
52240
|
P(),
|
|
52238
|
-
|
|
52241
|
+
et.get(ks(C))
|
|
52239
52242
|
]);
|
|
52240
52243
|
s.value = S(N), l.value = C;
|
|
52241
52244
|
} catch (N) {
|
|
@@ -52292,7 +52295,7 @@ const Sr = /* @__PURE__ */ Pe(wT, [["render", CT], ["__scopeId", "data-v-974c909
|
|
|
52292
52295
|
attendant_id: null
|
|
52293
52296
|
};
|
|
52294
52297
|
try {
|
|
52295
|
-
await
|
|
52298
|
+
await et.post(ne, Y);
|
|
52296
52299
|
} catch (pe) {
|
|
52297
52300
|
i.value = ((q = (N = pe == null ? void 0 : pe.response) == null ? void 0 : N.data) == null ? void 0 : q.message) || "Não foi possível remover o responsável da carteira.", console.error(
|
|
52298
52301
|
"Erro na requisição para remover da carteira:",
|
|
@@ -52550,7 +52553,7 @@ const Sr = /* @__PURE__ */ Pe(wT, [["render", CT], ["__scopeId", "data-v-974c909
|
|
|
52550
52553
|
type: "button",
|
|
52551
52554
|
class: "bindings-help-btn",
|
|
52552
52555
|
title: "O que é o BSUID?",
|
|
52553
|
-
onClick: m[1] || (m[1] =
|
|
52556
|
+
onClick: m[1] || (m[1] = tt((x) => g.value = !0, ["stop"]))
|
|
52554
52557
|
}, " ? ")
|
|
52555
52558
|
]),
|
|
52556
52559
|
ce(f).length ? (c(), p("section", QP, [
|
|
@@ -53794,7 +53797,7 @@ const UD = /* @__PURE__ */ Pe(qD, [["render", ZD]]), YD = {
|
|
|
53794
53797
|
o("button", {
|
|
53795
53798
|
class: "connections-help-btn",
|
|
53796
53799
|
type: "button",
|
|
53797
|
-
onClick: b[1] || (b[1] =
|
|
53800
|
+
onClick: b[1] || (b[1] = tt((m) => u.value = !0, ["stop"]))
|
|
53798
53801
|
}, " ? "),
|
|
53799
53802
|
(c(), p("svg", {
|
|
53800
53803
|
class: Q(["size-3 transition-transform duration-200", { "rotate-180": l.value }]),
|
|
@@ -54132,7 +54135,7 @@ function JF(e) {
|
|
|
54132
54135
|
const m = ++u;
|
|
54133
54136
|
b && (s.value = 1, n.value = [], r.value = null, i.value++), a.value = !0;
|
|
54134
54137
|
try {
|
|
54135
|
-
const h = await
|
|
54138
|
+
const h = await et.get(
|
|
54136
54139
|
f({
|
|
54137
54140
|
page: s.value,
|
|
54138
54141
|
query: t.value || void 0
|
|
@@ -54766,7 +54769,7 @@ const eO = {
|
|
|
54766
54769
|
if (!m.value)
|
|
54767
54770
|
throw y(), new Error("Fluxo de mesclagem bloqueado.");
|
|
54768
54771
|
try {
|
|
54769
|
-
return (await
|
|
54772
|
+
return (await et.post("/v1/api/contacts/contact/merge/", {
|
|
54770
54773
|
contact_father: L.parentId,
|
|
54771
54774
|
contact_children: L.childId,
|
|
54772
54775
|
force: !0
|
|
@@ -55279,7 +55282,7 @@ const eO = {
|
|
|
55279
55282
|
}, [
|
|
55280
55283
|
o("button", {
|
|
55281
55284
|
class: "floating-button",
|
|
55282
|
-
onClick:
|
|
55285
|
+
onClick: tt(d, ["stop"]),
|
|
55283
55286
|
"aria-label": "Abrir painel flutuante"
|
|
55284
55287
|
}, [...y[0] || (y[0] = [
|
|
55285
55288
|
o("svg", {
|
|
@@ -57024,7 +57027,7 @@ if (n > 0 && t < 1) {
|
|
|
57024
57027
|
o("button", {
|
|
57025
57028
|
type: "button",
|
|
57026
57029
|
disabled: e.disabled || e.saving,
|
|
57027
|
-
onClick: h[0] || (h[0] =
|
|
57030
|
+
onClick: h[0] || (h[0] = tt((y) => f.value = !f.value, ["stop"])),
|
|
57028
57031
|
class: "tz-trigger flex w-full items-center justify-between gap-2 rounded-xl border border-transparent px-4 text-sm outline-none transition-all disabled:cursor-not-allowed disabled:opacity-50"
|
|
57029
57032
|
}, [
|
|
57030
57033
|
o("span", Gz, [
|
|
@@ -57133,7 +57136,7 @@ function OV(e) {
|
|
|
57133
57136
|
);
|
|
57134
57137
|
}
|
|
57135
57138
|
async function zV({ url: e = Go } = {}) {
|
|
57136
|
-
const { data: t } = await
|
|
57139
|
+
const { data: t } = await et.get(e);
|
|
57137
57140
|
return nH(t);
|
|
57138
57141
|
}
|
|
57139
57142
|
async function oH({
|
|
@@ -57144,11 +57147,11 @@ async function oH({
|
|
|
57144
57147
|
} = {}) {
|
|
57145
57148
|
const s = { page: e, page_size: n };
|
|
57146
57149
|
t && (s.name = t);
|
|
57147
|
-
const { data: r } = await
|
|
57150
|
+
const { data: r } = await et.get(a, { params: s });
|
|
57148
57151
|
return r;
|
|
57149
57152
|
}
|
|
57150
57153
|
async function HV(e, t) {
|
|
57151
|
-
const { data: n } = await
|
|
57154
|
+
const { data: n } = await et.patch(`${Go}${e}/`, t);
|
|
57152
57155
|
return n;
|
|
57153
57156
|
}
|
|
57154
57157
|
const sH = {
|
|
@@ -57317,7 +57320,7 @@ const sH = {
|
|
|
57317
57320
|
type: "text",
|
|
57318
57321
|
placeholder: "Buscar carteira…",
|
|
57319
57322
|
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",
|
|
57320
|
-
onClick: T[1] || (T[1] =
|
|
57323
|
+
onClick: T[1] || (T[1] = tt(() => {
|
|
57321
57324
|
}, ["stop"]))
|
|
57322
57325
|
}, null, 512), [
|
|
57323
57326
|
[ht, i.value]
|
|
@@ -57493,7 +57496,7 @@ const sH = {
|
|
|
57493
57496
|
s.value && (s.value.pause(), s.value.src = "");
|
|
57494
57497
|
}), (T, L) => (c(), p("div", CH, [
|
|
57495
57498
|
o("button", {
|
|
57496
|
-
onClick:
|
|
57499
|
+
onClick: tt(d, ["stop"]),
|
|
57497
57500
|
class: "audio-play-btn hover:bg-base-100",
|
|
57498
57501
|
title: "Reproduzir",
|
|
57499
57502
|
disabled: u.value || f.value,
|
|
@@ -57561,7 +57564,7 @@ const sH = {
|
|
|
57561
57564
|
min: "0",
|
|
57562
57565
|
max: l.value,
|
|
57563
57566
|
value: i.value,
|
|
57564
|
-
onInput:
|
|
57567
|
+
onInput: tt(v, ["stop"]),
|
|
57565
57568
|
disabled: u.value || f.value
|
|
57566
57569
|
}, null, 40, $H)
|
|
57567
57570
|
], 4)
|
|
@@ -57573,7 +57576,7 @@ const sH = {
|
|
|
57573
57576
|
], 64))
|
|
57574
57577
|
]),
|
|
57575
57578
|
o("button", {
|
|
57576
|
-
onClick:
|
|
57579
|
+
onClick: tt(w, ["stop"]),
|
|
57577
57580
|
class: "audio-download-btn hover:bg-base-300",
|
|
57578
57581
|
title: "Baixar"
|
|
57579
57582
|
}, [
|
|
@@ -57628,7 +57631,7 @@ const sH = {
|
|
|
57628
57631
|
return (s, r) => {
|
|
57629
57632
|
var i, l;
|
|
57630
57633
|
return c(), p("div", {
|
|
57631
|
-
onClick:
|
|
57634
|
+
onClick: tt((u) => null, ["stop"]),
|
|
57632
57635
|
class: "call-record-player bg-base-200"
|
|
57633
57636
|
}, [
|
|
57634
57637
|
(l = (i = e.recordMetadata) == null ? void 0 : i.urls) != null && l.general ? (c(), _e(TH, {
|
|
@@ -57805,7 +57808,7 @@ const sH = {
|
|
|
57805
57808
|
return (w, _) => (c(), p("div", {
|
|
57806
57809
|
key: e.call.id,
|
|
57807
57810
|
"data-test": "call-card",
|
|
57808
|
-
onClick: _[4] || (_[4] =
|
|
57811
|
+
onClick: _[4] || (_[4] = tt((z) => i(e.call), ["stop"])),
|
|
57809
57812
|
class: "call-card bg-base-300 border hover:bg-base-300 border-base-300"
|
|
57810
57813
|
}, [
|
|
57811
57814
|
o("div", FH, [
|
|
@@ -57839,7 +57842,7 @@ const sH = {
|
|
|
57839
57842
|
o("div", jH, [
|
|
57840
57843
|
!e.hideMessageButton && e.call.external_id ? (c(), p("button", {
|
|
57841
57844
|
key: 0,
|
|
57842
|
-
onClick: _[0] || (_[0] =
|
|
57845
|
+
onClick: _[0] || (_[0] = tt((z) => f(e.call), ["stop"])),
|
|
57843
57846
|
title: "Ver mensagem",
|
|
57844
57847
|
class: "hover:bg-base-100"
|
|
57845
57848
|
}, [..._[6] || (_[6] = [
|
|
@@ -57863,7 +57866,7 @@ const sH = {
|
|
|
57863
57866
|
"bg-base-100": a.value[e.call.id],
|
|
57864
57867
|
"hover:bg-base-100": !0
|
|
57865
57868
|
}),
|
|
57866
|
-
onClick: _[1] || (_[1] =
|
|
57869
|
+
onClick: _[1] || (_[1] = tt((z) => u(e.call.id), ["stop"])),
|
|
57867
57870
|
title: "Ver gravações"
|
|
57868
57871
|
}, [
|
|
57869
57872
|
(c(), p("svg", {
|
|
@@ -57884,7 +57887,7 @@ const sH = {
|
|
|
57884
57887
|
], 2)) : D("", !0),
|
|
57885
57888
|
r(e.call) ? (c(), p("button", {
|
|
57886
57889
|
key: 2,
|
|
57887
|
-
onClick: _[2] || (_[2] =
|
|
57890
|
+
onClick: _[2] || (_[2] = tt((z) => i(e.call), ["stop"])),
|
|
57888
57891
|
class: Q(["call-expand-btn hover:bg-base-100", { rotated: n.value.includes(e.call.id) }])
|
|
57889
57892
|
}, [..._[8] || (_[8] = [
|
|
57890
57893
|
o("svg", {
|
|
@@ -57978,7 +57981,7 @@ const sH = {
|
|
|
57978
57981
|
if (t.chatId) {
|
|
57979
57982
|
n.value = !0, a.value = null;
|
|
57980
57983
|
try {
|
|
57981
|
-
const f = await
|
|
57984
|
+
const f = await et.get(
|
|
57982
57985
|
`${t.callsApiUrl}?chat_id=${t.chatId}`
|
|
57983
57986
|
);
|
|
57984
57987
|
s.value = f.data.results || f.data || [];
|
|
@@ -58146,7 +58149,7 @@ export {
|
|
|
58146
58149
|
Ks as d,
|
|
58147
58150
|
qn as e,
|
|
58148
58151
|
m0 as f,
|
|
58149
|
-
|
|
58152
|
+
et as g,
|
|
58150
58153
|
nV as h,
|
|
58151
58154
|
aV as i,
|
|
58152
58155
|
oV as j,
|