sm-click-library-ui 0.0.431 → 0.0.432
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-CmZZlNAu.js → index-qvZIg5Dm.js} +765 -771
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{web-BeLd-9YA.js → web-Duu1BXH4.js} +2 -2
- package/dist/{web-Bl-IXp0O.js → web-hFuzStce.js} +2 -2
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ function $1(...e) {
|
|
|
27
27
|
Array.isArray(n) || (n = [n]), Array.isArray(a) || (a = [a]);
|
|
28
28
|
const s = [], i = () => {
|
|
29
29
|
s.forEach((c) => c()), s.length = 0;
|
|
30
|
-
}, l = (c, m, d, g) => (c.addEventListener(m, d, g), () => c.removeEventListener(m, d, g)),
|
|
30
|
+
}, l = (c, m, d, g) => (c.addEventListener(m, d, g), () => c.removeEventListener(m, d, g)), f = Ve(
|
|
31
31
|
() => [Hn(t), xo(o)],
|
|
32
32
|
([c, m]) => {
|
|
33
33
|
if (i(), !c)
|
|
@@ -38,10 +38,10 @@ function $1(...e) {
|
|
|
38
38
|
);
|
|
39
39
|
},
|
|
40
40
|
{ immediate: !0, flush: "post" }
|
|
41
|
-
),
|
|
42
|
-
|
|
41
|
+
), u = () => {
|
|
42
|
+
f(), i();
|
|
43
43
|
};
|
|
44
|
-
return li(
|
|
44
|
+
return li(u), u;
|
|
45
45
|
}
|
|
46
46
|
let $a = !1;
|
|
47
47
|
function S1(e, t, n = {}) {
|
|
@@ -50,7 +50,7 @@ function S1(e, t, n = {}) {
|
|
|
50
50
|
return c1;
|
|
51
51
|
ui && !$a && ($a = !0, Array.from(a.document.body.children).forEach((d) => d.addEventListener("click", c1)), a.document.documentElement.addEventListener("click", c1));
|
|
52
52
|
let l = !0;
|
|
53
|
-
const
|
|
53
|
+
const f = (d) => o.some((g) => {
|
|
54
54
|
if (typeof g == "string")
|
|
55
55
|
return Array.from(a.document.querySelectorAll(g)).some((h) => h === d.target || d.composedPath().includes(h));
|
|
56
56
|
{
|
|
@@ -61,7 +61,7 @@ function S1(e, t, n = {}) {
|
|
|
61
61
|
$1(a, "click", (d) => {
|
|
62
62
|
const g = Hn(e);
|
|
63
63
|
if (!(!g || g === d.target || d.composedPath().includes(g))) {
|
|
64
|
-
if (d.detail === 0 && (l = !
|
|
64
|
+
if (d.detail === 0 && (l = !f(d)), !l) {
|
|
65
65
|
l = !0;
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
@@ -70,7 +70,7 @@ function S1(e, t, n = {}) {
|
|
|
70
70
|
}, { passive: !0, capture: s }),
|
|
71
71
|
$1(a, "pointerdown", (d) => {
|
|
72
72
|
const g = Hn(e);
|
|
73
|
-
l = !
|
|
73
|
+
l = !f(d) && !!(g && !d.composedPath().includes(g));
|
|
74
74
|
}, { passive: !0 }),
|
|
75
75
|
i && $1(a, "blur", (d) => {
|
|
76
76
|
setTimeout(() => {
|
|
@@ -111,7 +111,7 @@ const Oe = (e, t) => {
|
|
|
111
111
|
};
|
|
112
112
|
return S1(o, () => {
|
|
113
113
|
a.value && (a.value = !1);
|
|
114
|
-
}), (l,
|
|
114
|
+
}), (l, f) => (v(), y("div", {
|
|
115
115
|
ref_key: "target",
|
|
116
116
|
ref: o,
|
|
117
117
|
class: "relative w-full"
|
|
@@ -129,7 +129,7 @@ const Oe = (e, t) => {
|
|
|
129
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
130
|
fill: "currentColor",
|
|
131
131
|
viewBox: "0 0 24 24"
|
|
132
|
-
}, [...
|
|
132
|
+
}, [...f[0] || (f[0] = [
|
|
133
133
|
r("path", {
|
|
134
134
|
"fill-rule": "evenodd",
|
|
135
135
|
d: "M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z",
|
|
@@ -178,7 +178,7 @@ const Oe = (e, t) => {
|
|
|
178
178
|
"leave-to-class": "opacity-0"
|
|
179
179
|
}, {
|
|
180
180
|
default: Fe(() => {
|
|
181
|
-
var l,
|
|
181
|
+
var l, f;
|
|
182
182
|
return [
|
|
183
183
|
e.isOpen ? (v(), y("div", gi, [
|
|
184
184
|
i[2] || (i[2] = r("div", { class: "modal-overlay absolute h-full w-full bg-gray-600 opacity-50" }, null, -1)),
|
|
@@ -194,7 +194,7 @@ const Oe = (e, t) => {
|
|
|
194
194
|
}, null, 8, ki),
|
|
195
195
|
r("div", null, [
|
|
196
196
|
r("h3", wi, [
|
|
197
|
-
r("p", null, le((
|
|
197
|
+
r("p", null, le((f = e.header) == null ? void 0 : f.title), 1)
|
|
198
198
|
]),
|
|
199
199
|
r("div", null, [
|
|
200
200
|
mt(s.$slots, "header", {}, void 0, !0)
|
|
@@ -202,7 +202,7 @@ const Oe = (e, t) => {
|
|
|
202
202
|
])
|
|
203
203
|
]),
|
|
204
204
|
r("button", {
|
|
205
|
-
onClick: i[0] || (i[0] = (
|
|
205
|
+
onClick: i[0] || (i[0] = (u) => o()),
|
|
206
206
|
class: "modal_close_button bg-base-200/40"
|
|
207
207
|
}, [...i[1] || (i[1] = [
|
|
208
208
|
r("svg", {
|
|
@@ -494,8 +494,8 @@ const mr = (e) => {
|
|
|
494
494
|
t[o] = a;
|
|
495
495
|
const s = Dn(a) ? [] : {};
|
|
496
496
|
return Yn(a, (i, l) => {
|
|
497
|
-
const
|
|
498
|
-
!En(
|
|
497
|
+
const f = n(i, o + 1);
|
|
498
|
+
!En(f) && (s[l] = f);
|
|
499
499
|
}), t[o] = void 0, s;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
@@ -617,9 +617,9 @@ Pe.from = (e, t, n, a, o, s) => {
|
|
|
617
617
|
const i = Object.create(Bo);
|
|
618
618
|
U.toFlatObject(e, i, function(c) {
|
|
619
619
|
return c !== Error.prototype;
|
|
620
|
-
}, (
|
|
621
|
-
const l = e && e.message ? e.message : "Error",
|
|
622
|
-
return Pe.call(i, l,
|
|
620
|
+
}, (u) => u !== "isAxiosError");
|
|
621
|
+
const l = e && e.message ? e.message : "Error", f = t == null && e ? e.code : t;
|
|
622
|
+
return Pe.call(i, l, f, n, a, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", s && Object.assign(i, s), i;
|
|
623
623
|
};
|
|
624
624
|
const xr = null;
|
|
625
625
|
function K1(e) {
|
|
@@ -649,18 +649,18 @@ function T1(e, t, n) {
|
|
|
649
649
|
}, !1, function(p, x) {
|
|
650
650
|
return !U.isUndefined(x[p]);
|
|
651
651
|
});
|
|
652
|
-
const a = n.metaTokens, o = n.visitor || c, s = n.dots, i = n.indexes,
|
|
652
|
+
const a = n.metaTokens, o = n.visitor || c, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && U.isSpecCompliantForm(t);
|
|
653
653
|
if (!U.isFunction(o))
|
|
654
654
|
throw new TypeError("visitor must be a function");
|
|
655
|
-
function
|
|
655
|
+
function u(h) {
|
|
656
656
|
if (h === null) return "";
|
|
657
657
|
if (U.isDate(h))
|
|
658
658
|
return h.toISOString();
|
|
659
659
|
if (U.isBoolean(h))
|
|
660
660
|
return h.toString();
|
|
661
|
-
if (!
|
|
661
|
+
if (!f && U.isBlob(h))
|
|
662
662
|
throw new Pe("Blob is not supported. Use a Buffer instead.");
|
|
663
|
-
return U.isArrayBuffer(h) || U.isTypedArray(h) ?
|
|
663
|
+
return U.isArrayBuffer(h) || U.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
664
664
|
}
|
|
665
665
|
function c(h, p, x) {
|
|
666
666
|
let b = h;
|
|
@@ -672,15 +672,15 @@ function T1(e, t, n) {
|
|
|
672
672
|
!(U.isUndefined(S) || S === null) && t.append(
|
|
673
673
|
// eslint-disable-next-line no-nested-ternary
|
|
674
674
|
i === !0 ? Oa([p], L, s) : i === null ? p : p + "[]",
|
|
675
|
-
|
|
675
|
+
u(S)
|
|
676
676
|
);
|
|
677
677
|
}), !1;
|
|
678
678
|
}
|
|
679
|
-
return K1(h) ? !0 : (t.append(Oa(x, p, s),
|
|
679
|
+
return K1(h) ? !0 : (t.append(Oa(x, p, s), u(h)), !1);
|
|
680
680
|
}
|
|
681
681
|
const m = [], d = Object.assign(kr, {
|
|
682
682
|
defaultVisitor: c,
|
|
683
|
-
convertValue:
|
|
683
|
+
convertValue: u,
|
|
684
684
|
isVisitable: K1
|
|
685
685
|
});
|
|
686
686
|
function g(h, p) {
|
|
@@ -851,8 +851,8 @@ function Ro(e) {
|
|
|
851
851
|
function t(n, a, o, s) {
|
|
852
852
|
let i = n[s++];
|
|
853
853
|
if (i === "__proto__") return !0;
|
|
854
|
-
const l = Number.isFinite(+i),
|
|
855
|
-
return i = !i && U.isArray(o) ? o.length : i,
|
|
854
|
+
const l = Number.isFinite(+i), f = s >= n.length;
|
|
855
|
+
return i = !i && U.isArray(o) ? o.length : i, f ? (U.hasOwnProp(o, i) ? o[i] = [o[i], a] : o[i] = a, !l) : ((!o[i] || !U.isObject(o[i])) && (o[i] = []), t(n, a, o[i], s) && U.isArray(o[i]) && (o[i] = Br(o[i])), !l);
|
|
856
856
|
}
|
|
857
857
|
if (U.isFormData(e) && U.isFunction(e.entries)) {
|
|
858
858
|
const n = {};
|
|
@@ -890,10 +890,10 @@ const Xn = {
|
|
|
890
890
|
if (a.indexOf("application/x-www-form-urlencoded") > -1)
|
|
891
891
|
return Dr(t, this.formSerializer).toString();
|
|
892
892
|
if ((l = U.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
893
|
-
const
|
|
893
|
+
const f = this.env && this.env.FormData;
|
|
894
894
|
return T1(
|
|
895
895
|
l ? { "files[]": t } : t,
|
|
896
|
-
|
|
896
|
+
f && new f(),
|
|
897
897
|
this.formSerializer
|
|
898
898
|
);
|
|
899
899
|
}
|
|
@@ -1011,24 +1011,24 @@ let Mt = class {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
set(t, n, a) {
|
|
1013
1013
|
const o = this;
|
|
1014
|
-
function s(l,
|
|
1015
|
-
const c = On(
|
|
1014
|
+
function s(l, f, u) {
|
|
1015
|
+
const c = On(f);
|
|
1016
1016
|
if (!c)
|
|
1017
1017
|
throw new Error("header name must be a non-empty string");
|
|
1018
1018
|
const m = U.findKey(o, c);
|
|
1019
|
-
(!m || o[m] === void 0 ||
|
|
1019
|
+
(!m || o[m] === void 0 || u === !0 || u === void 0 && o[m] !== !1) && (o[m || f] = u1(l));
|
|
1020
1020
|
}
|
|
1021
|
-
const i = (l,
|
|
1021
|
+
const i = (l, f) => U.forEach(l, (u, c) => s(u, c, f));
|
|
1022
1022
|
if (U.isPlainObject(t) || t instanceof this.constructor)
|
|
1023
1023
|
i(t, n);
|
|
1024
1024
|
else if (U.isString(t) && (t = t.trim()) && !Vr(t))
|
|
1025
1025
|
i(Hr(t), n);
|
|
1026
1026
|
else if (U.isObject(t) && U.isIterable(t)) {
|
|
1027
|
-
let l = {},
|
|
1027
|
+
let l = {}, f, u;
|
|
1028
1028
|
for (const c of t) {
|
|
1029
1029
|
if (!U.isArray(c))
|
|
1030
1030
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1031
|
-
l[
|
|
1031
|
+
l[u = c[0]] = (f = l[u]) ? U.isArray(f) ? [...f, c[1]] : [f, c[1]] : c[1];
|
|
1032
1032
|
}
|
|
1033
1033
|
i(l, n);
|
|
1034
1034
|
} else
|
|
@@ -1176,26 +1176,26 @@ function Nr(e, t) {
|
|
|
1176
1176
|
e = e || 10;
|
|
1177
1177
|
const n = new Array(e), a = new Array(e);
|
|
1178
1178
|
let o = 0, s = 0, i;
|
|
1179
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
1180
|
-
const
|
|
1181
|
-
i || (i =
|
|
1179
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
1180
|
+
const u = Date.now(), c = a[s];
|
|
1181
|
+
i || (i = u), n[o] = f, a[o] = u;
|
|
1182
1182
|
let m = s, d = 0;
|
|
1183
1183
|
for (; m !== o; )
|
|
1184
1184
|
d += n[m++], m = m % e;
|
|
1185
|
-
if (o = (o + 1) % e, o === s && (s = (s + 1) % e),
|
|
1185
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
|
|
1186
1186
|
return;
|
|
1187
|
-
const g = c &&
|
|
1187
|
+
const g = c && u - c;
|
|
1188
1188
|
return g ? Math.round(d * 1e3 / g) : void 0;
|
|
1189
1189
|
};
|
|
1190
1190
|
}
|
|
1191
1191
|
function Gr(e, t) {
|
|
1192
1192
|
let n = 0, a = 1e3 / t, o, s;
|
|
1193
|
-
const i = (
|
|
1194
|
-
n = c, o = null, s && (clearTimeout(s), s = null), e(...
|
|
1193
|
+
const i = (u, c = Date.now()) => {
|
|
1194
|
+
n = c, o = null, s && (clearTimeout(s), s = null), e(...u);
|
|
1195
1195
|
};
|
|
1196
|
-
return [(...
|
|
1196
|
+
return [(...u) => {
|
|
1197
1197
|
const c = Date.now(), m = c - n;
|
|
1198
|
-
m >= a ? i(
|
|
1198
|
+
m >= a ? i(u, c) : (o = u, s || (s = setTimeout(() => {
|
|
1199
1199
|
s = null, i(o);
|
|
1200
1200
|
}, a - m)));
|
|
1201
1201
|
}, () => o && i(o)];
|
|
@@ -1204,15 +1204,15 @@ const p1 = (e, t, n = 3) => {
|
|
|
1204
1204
|
let a = 0;
|
|
1205
1205
|
const o = Nr(50, 250);
|
|
1206
1206
|
return Gr((s) => {
|
|
1207
|
-
const i = s.loaded, l = s.lengthComputable ? s.total : void 0,
|
|
1207
|
+
const i = s.loaded, l = s.lengthComputable ? s.total : void 0, f = i - a, u = o(f), c = i <= l;
|
|
1208
1208
|
a = i;
|
|
1209
1209
|
const m = {
|
|
1210
1210
|
loaded: i,
|
|
1211
1211
|
total: l,
|
|
1212
1212
|
progress: l ? i / l : void 0,
|
|
1213
|
-
bytes:
|
|
1214
|
-
rate:
|
|
1215
|
-
estimated:
|
|
1213
|
+
bytes: f,
|
|
1214
|
+
rate: u || void 0,
|
|
1215
|
+
estimated: u && l && c ? (l - i) / u : void 0,
|
|
1216
1216
|
event: s,
|
|
1217
1217
|
lengthComputable: l != null,
|
|
1218
1218
|
[t ? "download" : "upload"]: !0
|
|
@@ -1272,32 +1272,32 @@ const za = (e) => e instanceof Mt ? { ...e } : e;
|
|
|
1272
1272
|
function hn(e, t) {
|
|
1273
1273
|
t = t || {};
|
|
1274
1274
|
const n = {};
|
|
1275
|
-
function a(
|
|
1276
|
-
return U.isPlainObject(
|
|
1275
|
+
function a(u, c, m, d) {
|
|
1276
|
+
return U.isPlainObject(u) && U.isPlainObject(c) ? U.merge.call({ caseless: d }, u, c) : U.isPlainObject(c) ? U.merge({}, c) : U.isArray(c) ? c.slice() : c;
|
|
1277
1277
|
}
|
|
1278
|
-
function o(
|
|
1278
|
+
function o(u, c, m, d) {
|
|
1279
1279
|
if (U.isUndefined(c)) {
|
|
1280
|
-
if (!U.isUndefined(
|
|
1281
|
-
return a(void 0,
|
|
1282
|
-
} else return a(
|
|
1280
|
+
if (!U.isUndefined(u))
|
|
1281
|
+
return a(void 0, u, m, d);
|
|
1282
|
+
} else return a(u, c, m, d);
|
|
1283
1283
|
}
|
|
1284
|
-
function s(
|
|
1284
|
+
function s(u, c) {
|
|
1285
1285
|
if (!U.isUndefined(c))
|
|
1286
1286
|
return a(void 0, c);
|
|
1287
1287
|
}
|
|
1288
|
-
function i(
|
|
1288
|
+
function i(u, c) {
|
|
1289
1289
|
if (U.isUndefined(c)) {
|
|
1290
|
-
if (!U.isUndefined(
|
|
1291
|
-
return a(void 0,
|
|
1290
|
+
if (!U.isUndefined(u))
|
|
1291
|
+
return a(void 0, u);
|
|
1292
1292
|
} else return a(void 0, c);
|
|
1293
1293
|
}
|
|
1294
|
-
function l(
|
|
1294
|
+
function l(u, c, m) {
|
|
1295
1295
|
if (m in t)
|
|
1296
|
-
return a(
|
|
1296
|
+
return a(u, c);
|
|
1297
1297
|
if (m in e)
|
|
1298
|
-
return a(void 0,
|
|
1298
|
+
return a(void 0, u);
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1300
|
+
const f = {
|
|
1301
1301
|
url: s,
|
|
1302
1302
|
method: s,
|
|
1303
1303
|
data: s,
|
|
@@ -1326,10 +1326,10 @@ function hn(e, t) {
|
|
|
1326
1326
|
socketPath: i,
|
|
1327
1327
|
responseEncoding: i,
|
|
1328
1328
|
validateStatus: l,
|
|
1329
|
-
headers: (
|
|
1329
|
+
headers: (u, c, m) => o(za(u), za(c), m, !0)
|
|
1330
1330
|
};
|
|
1331
1331
|
return U.forEach(Object.keys({ ...e, ...t }), function(c) {
|
|
1332
|
-
const m =
|
|
1332
|
+
const m = f[c] || o, d = m(e[c], t[c], c);
|
|
1333
1333
|
U.isUndefined(d) && m !== l || (n[c] = d);
|
|
1334
1334
|
}), n;
|
|
1335
1335
|
}
|
|
@@ -1343,15 +1343,15 @@ const Go = (e) => {
|
|
|
1343
1343
|
if (ht.hasStandardBrowserEnv || ht.hasStandardBrowserWebWorkerEnv)
|
|
1344
1344
|
i.setContentType(void 0);
|
|
1345
1345
|
else if (U.isFunction(n.getHeaders)) {
|
|
1346
|
-
const
|
|
1347
|
-
Object.entries(
|
|
1348
|
-
|
|
1346
|
+
const f = n.getHeaders(), u = ["content-type", "content-length"];
|
|
1347
|
+
Object.entries(f).forEach(([c, m]) => {
|
|
1348
|
+
u.includes(c.toLowerCase()) && i.set(c, m);
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
if (ht.hasStandardBrowserEnv && (a && U.isFunction(a) && (a = a(t)), a || a !== !1 && Ir(t.url))) {
|
|
1353
|
-
const
|
|
1354
|
-
|
|
1353
|
+
const f = o && s && Wr.read(s);
|
|
1354
|
+
f && i.set(o, f);
|
|
1355
1355
|
}
|
|
1356
1356
|
return t;
|
|
1357
1357
|
}, Zr = typeof XMLHttpRequest < "u", Yr = Zr && function(e) {
|
|
@@ -1359,7 +1359,7 @@ const Go = (e) => {
|
|
|
1359
1359
|
const o = Go(e);
|
|
1360
1360
|
let s = o.data;
|
|
1361
1361
|
const i = Mt.from(o.headers).normalize();
|
|
1362
|
-
let { responseType: l, onUploadProgress:
|
|
1362
|
+
let { responseType: l, onUploadProgress: f, onDownloadProgress: u } = o, c, m, d, g, h;
|
|
1363
1363
|
function p() {
|
|
1364
1364
|
g && g(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1365
1365
|
}
|
|
@@ -1402,7 +1402,7 @@ const Go = (e) => {
|
|
|
1402
1402
|
)), x = null;
|
|
1403
1403
|
}, s === void 0 && i.setContentType(null), "setRequestHeader" in x && U.forEach(i.toJSON(), function(L, D) {
|
|
1404
1404
|
x.setRequestHeader(D, L);
|
|
1405
|
-
}), U.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), l && l !== "json" && (x.responseType = o.responseType),
|
|
1405
|
+
}), U.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), l && l !== "json" && (x.responseType = o.responseType), u && ([d, h] = p1(u, !0), x.addEventListener("progress", d)), f && x.upload && ([m, g] = p1(f), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (S) => {
|
|
1406
1406
|
x && (a(!S || S.type ? new $n(null, e, x) : S), x.abort(), x = null);
|
|
1407
1407
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1408
1408
|
const w = jr(o.url);
|
|
@@ -1416,10 +1416,10 @@ const Go = (e) => {
|
|
|
1416
1416
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1417
1417
|
if (t || n) {
|
|
1418
1418
|
let a = new AbortController(), o;
|
|
1419
|
-
const s = function(
|
|
1419
|
+
const s = function(u) {
|
|
1420
1420
|
if (!o) {
|
|
1421
1421
|
o = !0, l();
|
|
1422
|
-
const c =
|
|
1422
|
+
const c = u instanceof Error ? u : this.reason;
|
|
1423
1423
|
a.abort(c instanceof Pe ? c : new $n(c instanceof Error ? c.message : c));
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
@@ -1427,13 +1427,13 @@ const Go = (e) => {
|
|
|
1427
1427
|
i = null, s(new Pe(`timeout ${t} of ms exceeded`, Pe.ETIMEDOUT));
|
|
1428
1428
|
}, t);
|
|
1429
1429
|
const l = () => {
|
|
1430
|
-
e && (i && clearTimeout(i), i = null, e.forEach((
|
|
1431
|
-
|
|
1430
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
1431
|
+
u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
|
|
1432
1432
|
}), e = null);
|
|
1433
1433
|
};
|
|
1434
|
-
e.forEach((
|
|
1435
|
-
const { signal:
|
|
1436
|
-
return
|
|
1434
|
+
e.forEach((u) => u.addEventListener("abort", s));
|
|
1435
|
+
const { signal: f } = a;
|
|
1436
|
+
return f.unsubscribe = () => U.asap(l), f;
|
|
1437
1437
|
}
|
|
1438
1438
|
}, Kr = function* (e, t) {
|
|
1439
1439
|
let n = e.byteLength;
|
|
@@ -1465,15 +1465,15 @@ const Go = (e) => {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
}, ja = (e, t, n, a) => {
|
|
1467
1467
|
const o = Qr(e, t);
|
|
1468
|
-
let s = 0, i, l = (
|
|
1469
|
-
i || (i = !0, a && a(
|
|
1468
|
+
let s = 0, i, l = (f) => {
|
|
1469
|
+
i || (i = !0, a && a(f));
|
|
1470
1470
|
};
|
|
1471
1471
|
return new ReadableStream({
|
|
1472
|
-
async pull(
|
|
1472
|
+
async pull(f) {
|
|
1473
1473
|
try {
|
|
1474
|
-
const { done:
|
|
1475
|
-
if (
|
|
1476
|
-
l(),
|
|
1474
|
+
const { done: u, value: c } = await o.next();
|
|
1475
|
+
if (u) {
|
|
1476
|
+
l(), f.close();
|
|
1477
1477
|
return;
|
|
1478
1478
|
}
|
|
1479
1479
|
let m = c.byteLength;
|
|
@@ -1481,13 +1481,13 @@ const Go = (e) => {
|
|
|
1481
1481
|
let d = s += m;
|
|
1482
1482
|
n(d);
|
|
1483
1483
|
}
|
|
1484
|
-
|
|
1485
|
-
} catch (
|
|
1486
|
-
throw l(
|
|
1484
|
+
f.enqueue(new Uint8Array(c));
|
|
1485
|
+
} catch (u) {
|
|
1486
|
+
throw l(u), u;
|
|
1487
1487
|
}
|
|
1488
1488
|
},
|
|
1489
|
-
cancel(
|
|
1490
|
-
return l(
|
|
1489
|
+
cancel(f) {
|
|
1490
|
+
return l(f), o.return();
|
|
1491
1491
|
}
|
|
1492
1492
|
}, {
|
|
1493
1493
|
highWaterMark: 2
|
|
@@ -1511,7 +1511,7 @@ const Go = (e) => {
|
|
|
1511
1511
|
const { fetch: t, Request: n, Response: a } = e, o = t ? Qn(t) : typeof fetch == "function", s = Qn(n), i = Qn(a);
|
|
1512
1512
|
if (!o)
|
|
1513
1513
|
return !1;
|
|
1514
|
-
const l = o && Qn(Ga),
|
|
1514
|
+
const l = o && Qn(Ga), f = o && (typeof Ia == "function" ? /* @__PURE__ */ ((h) => (p) => h.encode(p))(new Ia()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), u = s && l && Wa(() => {
|
|
1515
1515
|
let h = !1;
|
|
1516
1516
|
const p = new n(ht.origin, {
|
|
1517
1517
|
body: new Ga(),
|
|
@@ -1545,7 +1545,7 @@ const Go = (e) => {
|
|
|
1545
1545
|
if (U.isArrayBufferView(h) || U.isArrayBuffer(h))
|
|
1546
1546
|
return h.byteLength;
|
|
1547
1547
|
if (U.isURLSearchParams(h) && (h = h + ""), U.isString(h))
|
|
1548
|
-
return (await
|
|
1548
|
+
return (await f(h)).byteLength;
|
|
1549
1549
|
}, g = async (h, p) => {
|
|
1550
1550
|
const x = U.toFiniteNumber(h.getContentLength());
|
|
1551
1551
|
return x ?? d(p);
|
|
@@ -1572,7 +1572,7 @@ const Go = (e) => {
|
|
|
1572
1572
|
});
|
|
1573
1573
|
let V;
|
|
1574
1574
|
try {
|
|
1575
|
-
if (O &&
|
|
1575
|
+
if (O && u && x !== "get" && x !== "head" && (V = await g(A, b)) !== 0) {
|
|
1576
1576
|
let ie = new n(p, {
|
|
1577
1577
|
method: "POST",
|
|
1578
1578
|
body: b,
|
|
@@ -1643,10 +1643,10 @@ const Go = (e) => {
|
|
|
1643
1643
|
o,
|
|
1644
1644
|
n
|
|
1645
1645
|
];
|
|
1646
|
-
let i = s.length, l = i,
|
|
1646
|
+
let i = s.length, l = i, f, u, c = nl;
|
|
1647
1647
|
for (; l--; )
|
|
1648
|
-
|
|
1649
|
-
return
|
|
1648
|
+
f = s[l], u = c.get(f), u === void 0 && c.set(f, u = l ? /* @__PURE__ */ new Map() : tl(t)), c = u;
|
|
1649
|
+
return u;
|
|
1650
1650
|
};
|
|
1651
1651
|
Io();
|
|
1652
1652
|
const ha = {
|
|
@@ -1682,7 +1682,7 @@ function ol(e, t) {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
if (!o) {
|
|
1684
1684
|
const i = Object.entries(s).map(
|
|
1685
|
-
([
|
|
1685
|
+
([f, u]) => `adapter ${f} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1686
1686
|
);
|
|
1687
1687
|
let l = n ? i.length > 1 ? `since :
|
|
1688
1688
|
` + i.map(qa).join(`
|
|
@@ -1764,9 +1764,9 @@ function sl(e, t, n) {
|
|
|
1764
1764
|
for (; o-- > 0; ) {
|
|
1765
1765
|
const s = a[o], i = t[s];
|
|
1766
1766
|
if (i) {
|
|
1767
|
-
const l = e[s],
|
|
1768
|
-
if (
|
|
1769
|
-
throw new Pe("option " + s + " must be " +
|
|
1767
|
+
const l = e[s], f = l === void 0 || i(l, s, e);
|
|
1768
|
+
if (f !== !0)
|
|
1769
|
+
throw new Pe("option " + s + " must be " + f, Pe.ERR_BAD_OPTION_VALUE);
|
|
1770
1770
|
continue;
|
|
1771
1771
|
}
|
|
1772
1772
|
if (n !== !0)
|
|
@@ -1836,18 +1836,18 @@ let un = class {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
), n.headers = Mt.concat(i, s);
|
|
1838
1838
|
const l = [];
|
|
1839
|
-
let
|
|
1839
|
+
let f = !0;
|
|
1840
1840
|
this.interceptors.request.forEach(function(p) {
|
|
1841
|
-
typeof p.runWhen == "function" && p.runWhen(n) === !1 || (
|
|
1841
|
+
typeof p.runWhen == "function" && p.runWhen(n) === !1 || (f = f && p.synchronous, l.unshift(p.fulfilled, p.rejected));
|
|
1842
1842
|
});
|
|
1843
|
-
const
|
|
1843
|
+
const u = [];
|
|
1844
1844
|
this.interceptors.response.forEach(function(p) {
|
|
1845
|
-
|
|
1845
|
+
u.push(p.fulfilled, p.rejected);
|
|
1846
1846
|
});
|
|
1847
1847
|
let c, m = 0, d;
|
|
1848
|
-
if (!
|
|
1848
|
+
if (!f) {
|
|
1849
1849
|
const h = [Ua.bind(this), void 0];
|
|
1850
|
-
for (h.unshift(...l), h.push(...
|
|
1850
|
+
for (h.unshift(...l), h.push(...u), d = h.length, c = Promise.resolve(n); m < d; )
|
|
1851
1851
|
c = c.then(h[m++], h[m++]);
|
|
1852
1852
|
return c;
|
|
1853
1853
|
}
|
|
@@ -1867,8 +1867,8 @@ let un = class {
|
|
|
1867
1867
|
} catch (h) {
|
|
1868
1868
|
return Promise.reject(h);
|
|
1869
1869
|
}
|
|
1870
|
-
for (m = 0, d =
|
|
1871
|
-
c = c.then(
|
|
1870
|
+
for (m = 0, d = u.length; m < d; )
|
|
1871
|
+
c = c.then(u[m++], u[m++]);
|
|
1872
1872
|
return c;
|
|
1873
1873
|
}
|
|
1874
1874
|
getUri(t) {
|
|
@@ -2249,26 +2249,26 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2249
2249
|
emits: ["update:modelValue", "function", "component-mounted"],
|
|
2250
2250
|
setup(e, { emit: t }) {
|
|
2251
2251
|
const n = ma(), a = G(!1), o = G(null), s = e, i = t;
|
|
2252
|
-
function l(
|
|
2253
|
-
o.value =
|
|
2252
|
+
function l(f) {
|
|
2253
|
+
o.value = f, i("function", f);
|
|
2254
2254
|
}
|
|
2255
2255
|
return Ve(
|
|
2256
2256
|
() => s.modelValue,
|
|
2257
|
-
(
|
|
2258
|
-
o.value =
|
|
2257
|
+
(f) => {
|
|
2258
|
+
o.value = f;
|
|
2259
2259
|
},
|
|
2260
2260
|
{ immediate: !0 }
|
|
2261
|
-
), Ve(o, (
|
|
2262
|
-
i("update:modelValue",
|
|
2261
|
+
), Ve(o, (f) => {
|
|
2262
|
+
i("update:modelValue", f);
|
|
2263
2263
|
}), lt(async () => {
|
|
2264
2264
|
if (o.value) {
|
|
2265
|
-
const
|
|
2266
|
-
(
|
|
2265
|
+
const f = n.instances.find(
|
|
2266
|
+
(u) => u.id === o.value.id
|
|
2267
2267
|
);
|
|
2268
|
-
|
|
2268
|
+
f && (o.value.status = f.status);
|
|
2269
2269
|
}
|
|
2270
2270
|
i("component-mounted");
|
|
2271
|
-
}), (
|
|
2271
|
+
}), (f, u) => {
|
|
2272
2272
|
const c = $t("Popper");
|
|
2273
2273
|
return v(), y("main", yl, [
|
|
2274
2274
|
r("div", {
|
|
@@ -2276,16 +2276,16 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2276
2276
|
}, [
|
|
2277
2277
|
r("div", xl, [
|
|
2278
2278
|
r("p", {
|
|
2279
|
-
onClick:
|
|
2279
|
+
onClick: u[0] || (u[0] = (m) => a.value = !a.value),
|
|
2280
2280
|
class: "w-full p-3 px-4 select-none"
|
|
2281
2281
|
}, [
|
|
2282
2282
|
Se(n).loaded ? (v(), y("div", bl, [
|
|
2283
2283
|
o.value ? (v(), y("span", wl, [
|
|
2284
2284
|
r("header", Cl, [
|
|
2285
|
-
o.value.type === "whatsapp-qrcode" ? (v(), y("svg", Sl, [...
|
|
2285
|
+
o.value.type === "whatsapp-qrcode" ? (v(), y("svg", Sl, [...u[3] || (u[3] = [
|
|
2286
2286
|
r("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" }, null, -1)
|
|
2287
2287
|
])])) : o.value.type === "whatsapp-api-official" ? (v(), y("div", Ml, [
|
|
2288
|
-
|
|
2288
|
+
u[5] || (u[5] = r("svg", {
|
|
2289
2289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2290
2290
|
fill: "currentColor",
|
|
2291
2291
|
class: "w-5 h-5 text-green-400",
|
|
@@ -2293,7 +2293,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2293
2293
|
}, [
|
|
2294
2294
|
r("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" })
|
|
2295
2295
|
], -1)),
|
|
2296
|
-
(v(), y("svg", El, [...
|
|
2296
|
+
(v(), y("svg", El, [...u[4] || (u[4] = [
|
|
2297
2297
|
r("path", {
|
|
2298
2298
|
"fill-rule": "evenodd",
|
|
2299
2299
|
d: "M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"
|
|
@@ -2314,7 +2314,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2314
2314
|
], 2)
|
|
2315
2315
|
]),
|
|
2316
2316
|
default: Fe(() => [
|
|
2317
|
-
o.value.isLoading ? (v(), y("div", Tl, [...
|
|
2317
|
+
o.value.isLoading ? (v(), y("div", Tl, [...u[6] || (u[6] = [
|
|
2318
2318
|
r("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1)
|
|
2319
2319
|
])])) : (v(), y("div", {
|
|
2320
2320
|
key: 0,
|
|
@@ -2326,7 +2326,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2326
2326
|
]),
|
|
2327
2327
|
r("div", Ll, le(o.value.name), 1)
|
|
2328
2328
|
])) : (v(), y("span", kl, le(Se(n).instances ? Se(n).instances.length : "Sem") + " Instâncias disponíveis", 1))
|
|
2329
|
-
])) : (v(), y("div", Fl, [...
|
|
2329
|
+
])) : (v(), y("div", Fl, [...u[7] || (u[7] = [
|
|
2330
2330
|
r("svg", {
|
|
2331
2331
|
"aria-hidden": "true",
|
|
2332
2332
|
class: "inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",
|
|
@@ -2348,8 +2348,8 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2348
2348
|
]),
|
|
2349
2349
|
r("footer", Dl, [
|
|
2350
2350
|
r("button", {
|
|
2351
|
-
onClick:
|
|
2352
|
-
}, [...
|
|
2351
|
+
onClick: u[1] || (u[1] = (m) => (o.value = null, a.value = !1))
|
|
2352
|
+
}, [...u[8] || (u[8] = [
|
|
2353
2353
|
r("svg", {
|
|
2354
2354
|
class: "w-4 h-4",
|
|
2355
2355
|
"aria-hidden": "true",
|
|
@@ -2369,7 +2369,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2369
2369
|
], -1)
|
|
2370
2370
|
])]),
|
|
2371
2371
|
r("button", {
|
|
2372
|
-
onClick:
|
|
2372
|
+
onClick: u[2] || (u[2] = (m) => a.value = !a.value)
|
|
2373
2373
|
}, [
|
|
2374
2374
|
(v(), y("svg", {
|
|
2375
2375
|
class: ce([{ "rotate-180": a.value }, "w-4 h-4 ease-out transition"]),
|
|
@@ -2379,7 +2379,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2379
2379
|
height: "24",
|
|
2380
2380
|
fill: "none",
|
|
2381
2381
|
viewBox: "0 0 24 24"
|
|
2382
|
-
}, [...
|
|
2382
|
+
}, [...u[9] || (u[9] = [
|
|
2383
2383
|
r("path", {
|
|
2384
2384
|
stroke: "currentColor",
|
|
2385
2385
|
"stroke-linecap": "round",
|
|
@@ -2403,10 +2403,10 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2403
2403
|
disabled: o.value && o.value.id === m.id || e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((g = m.config) == null ? void 0 : g.webhooks)
|
|
2404
2404
|
}, [
|
|
2405
2405
|
r("div", Hl, [
|
|
2406
|
-
m.type === "whatsapp-qrcode" ? (v(), y("svg", _l, [...
|
|
2406
|
+
m.type === "whatsapp-qrcode" ? (v(), y("svg", _l, [...u[10] || (u[10] = [
|
|
2407
2407
|
r("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" }, null, -1)
|
|
2408
2408
|
])])) : m.type === "whatsapp-api-official" ? (v(), y("div", Vl, [
|
|
2409
|
-
|
|
2409
|
+
u[12] || (u[12] = r("svg", {
|
|
2410
2410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2411
2411
|
fill: "currentColor",
|
|
2412
2412
|
class: "w-4 h-4 flex-shrink-0 text-green-400",
|
|
@@ -2414,7 +2414,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2414
2414
|
}, [
|
|
2415
2415
|
r("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" })
|
|
2416
2416
|
], -1)),
|
|
2417
|
-
(v(), y("svg", Rl, [...
|
|
2417
|
+
(v(), y("svg", Rl, [...u[11] || (u[11] = [
|
|
2418
2418
|
r("path", {
|
|
2419
2419
|
"fill-rule": "evenodd",
|
|
2420
2420
|
d: "M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"
|
|
@@ -2432,7 +2432,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2432
2432
|
default: Fe(() => {
|
|
2433
2433
|
var h;
|
|
2434
2434
|
return [
|
|
2435
|
-
e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((h = m.config) == null ? void 0 : h.webhooks) ? (v(), y("svg", zl, [...
|
|
2435
|
+
e.type && m.type !== e.type || e.webhooks !== void 0 && e.webhooks !== ((h = m.config) == null ? void 0 : h.webhooks) ? (v(), y("svg", zl, [...u[13] || (u[13] = [
|
|
2436
2436
|
r("path", {
|
|
2437
2437
|
"fill-rule": "evenodd",
|
|
2438
2438
|
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",
|
|
@@ -2457,7 +2457,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2457
2457
|
], 2)
|
|
2458
2458
|
]),
|
|
2459
2459
|
default: Fe(() => [
|
|
2460
|
-
m.isLoading ? (v(), y("div", Gl, [...
|
|
2460
|
+
m.isLoading ? (v(), y("div", Gl, [...u[14] || (u[14] = [
|
|
2461
2461
|
r("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1)
|
|
2462
2462
|
])])) : (v(), y("div", {
|
|
2463
2463
|
key: 0,
|
|
@@ -2478,7 +2478,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2478
2478
|
r("div", null, le(m.telephone ? `${m.telephone}` : ""), 1)
|
|
2479
2479
|
]),
|
|
2480
2480
|
default: Fe(() => [
|
|
2481
|
-
|
|
2481
|
+
u[15] || (u[15] = r("svg", {
|
|
2482
2482
|
class: "w-6 h-6",
|
|
2483
2483
|
"aria-hidden": "true",
|
|
2484
2484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2536,10 +2536,10 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2536
2536
|
title: `cpk-popover-title-${Math.random().toString(36).slice(2)}`,
|
|
2537
2537
|
desc: `cpk-popover-desc-${Math.random().toString(36).slice(2)}`
|
|
2538
2538
|
};
|
|
2539
|
-
function
|
|
2539
|
+
function f() {
|
|
2540
2540
|
a("cancel", n.context), o.value = !1;
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function u() {
|
|
2543
2543
|
n.loading || a("confirm", n.context);
|
|
2544
2544
|
}
|
|
2545
2545
|
let c, m, d = [];
|
|
@@ -2631,7 +2631,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2631
2631
|
}
|
|
2632
2632
|
);
|
|
2633
2633
|
function b(L) {
|
|
2634
|
-
L.key === "Escape" &&
|
|
2634
|
+
L.key === "Escape" && f(), L.key === "Enter" && u();
|
|
2635
2635
|
}
|
|
2636
2636
|
lt(() => {
|
|
2637
2637
|
window.addEventListener(
|
|
@@ -2657,7 +2657,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2657
2657
|
o.value ? (v(), y("div", {
|
|
2658
2658
|
key: 0,
|
|
2659
2659
|
class: "cpk-popover-layer",
|
|
2660
|
-
onMousedown: It(
|
|
2660
|
+
onMousedown: It(f, ["self"])
|
|
2661
2661
|
}, [
|
|
2662
2662
|
Me(Ht, {
|
|
2663
2663
|
name: "cpk-card",
|
|
@@ -2686,7 +2686,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2686
2686
|
r("button", {
|
|
2687
2687
|
class: "cpk-popover__close",
|
|
2688
2688
|
type: "button",
|
|
2689
|
-
onClick:
|
|
2689
|
+
onClick: f,
|
|
2690
2690
|
disabled: e.loading,
|
|
2691
2691
|
"aria-label": "Fechar"
|
|
2692
2692
|
}, " × ", 8, Yl)
|
|
@@ -2703,7 +2703,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2703
2703
|
r("button", {
|
|
2704
2704
|
type: "button",
|
|
2705
2705
|
class: "cyber-button cyber-button--md",
|
|
2706
|
-
onClick:
|
|
2706
|
+
onClick: f,
|
|
2707
2707
|
disabled: e.loading
|
|
2708
2708
|
}, le(e.cancelLabel), 9, Jl),
|
|
2709
2709
|
r("button", {
|
|
@@ -2713,7 +2713,7 @@ const dl = "v1/api/attendances/attendant/", ul = "v1/api/attendances/department/
|
|
|
2713
2713
|
"cyber-button--md",
|
|
2714
2714
|
e.destructive ? "cyber-button--danger" : "cyber-button--accent"
|
|
2715
2715
|
]),
|
|
2716
|
-
onClick:
|
|
2716
|
+
onClick: u,
|
|
2717
2717
|
disabled: e.loading
|
|
2718
2718
|
}, [
|
|
2719
2719
|
e.loading ? (v(), y("span", t2)) : X("", !0),
|
|
@@ -2756,17 +2756,17 @@ function Gt(e) {
|
|
|
2756
2756
|
const a = n.width, o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
|
|
2757
2757
|
if (!s)
|
|
2758
2758
|
return null;
|
|
2759
|
-
const i = s[0], l = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth],
|
|
2759
|
+
const i = s[0], l = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(l) ? s2(l, (m) => m.test(i)) : (
|
|
2760
2760
|
// [TODO] -- I challenge you to fix the type
|
|
2761
2761
|
o2(l, (m) => m.test(i))
|
|
2762
2762
|
);
|
|
2763
|
-
let
|
|
2764
|
-
|
|
2763
|
+
let u;
|
|
2764
|
+
u = e.valueCallback ? e.valueCallback(f) : f, u = n.valueCallback ? (
|
|
2765
2765
|
// [TODO] -- I challenge you to fix the type
|
|
2766
|
-
n.valueCallback(
|
|
2767
|
-
) :
|
|
2766
|
+
n.valueCallback(u)
|
|
2767
|
+
) : u;
|
|
2768
2768
|
const c = t.slice(i.length);
|
|
2769
|
-
return { value:
|
|
2769
|
+
return { value: u, rest: c };
|
|
2770
2770
|
};
|
|
2771
2771
|
}
|
|
2772
2772
|
function o2(e, t) {
|
|
@@ -2810,8 +2810,8 @@ function Bt(e, t) {
|
|
|
2810
2810
|
return Ft(t || e, e);
|
|
2811
2811
|
}
|
|
2812
2812
|
function mn(e, t) {
|
|
2813
|
-
var l,
|
|
2814
|
-
const n = F1(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((
|
|
2813
|
+
var l, f, u, c;
|
|
2814
|
+
const n = F1(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, o = Bt(e, t == null ? void 0 : t.in), s = o.getDay(), i = (s < a ? 7 : 0) + s - a;
|
|
2815
2815
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
2816
2816
|
}
|
|
2817
2817
|
function l2(e, t, n) {
|
|
@@ -3577,14 +3577,14 @@ function bn(e) {
|
|
|
3577
3577
|
function _n(e) {
|
|
3578
3578
|
const [t, n] = String(e || "").trim().split(" ");
|
|
3579
3579
|
if (!t) return null;
|
|
3580
|
-
const [a, o, s] = t.split("-").map((
|
|
3580
|
+
const [a, o, s] = t.split("-").map((u) => parseInt(u, 10));
|
|
3581
3581
|
let i = 0, l = 0;
|
|
3582
3582
|
if (n) {
|
|
3583
|
-
const [
|
|
3584
|
-
i = parseInt(
|
|
3583
|
+
const [u, c] = n.split(":");
|
|
3584
|
+
i = parseInt(u || "0", 10), l = parseInt(c || "0", 10);
|
|
3585
3585
|
}
|
|
3586
|
-
const
|
|
3587
|
-
return isNaN(
|
|
3586
|
+
const f = new Date(a, (o || 1) - 1, s || 1, i, l);
|
|
3587
|
+
return isNaN(f.getTime()) ? null : f;
|
|
3588
3588
|
}
|
|
3589
3589
|
function g3(e) {
|
|
3590
3590
|
if (!e) return null;
|
|
@@ -3610,7 +3610,7 @@ function ea(e) {
|
|
|
3610
3610
|
const t = (e == null ? void 0 : e.params) || {}, n = (t == null ? void 0 : t.schedule) || {}, a = (e == null ? void 0 : e.info) || {}, o = (a == null ? void 0 : a.entity) || {}, s = (a == null ? void 0 : a.department) || {}, i = (a == null ? void 0 : a.instance) || {};
|
|
3611
3611
|
let l = null;
|
|
3612
3612
|
if (n != null && n.time && (l = _n(n.time)), !l && (e != null && e.next_execution_at) && (l = g3(e.next_execution_at)), !l) return null;
|
|
3613
|
-
const
|
|
3613
|
+
const f = Array.isArray(t == null ? void 0 : t.message) ? t.message[0] : null, u = f && (f.content || f.text) || "", c = (e == null ? void 0 : e.function) || (t == null ? void 0 : t.function) || "", m = p3(c), d = (u || "").trim();
|
|
3614
3614
|
return {
|
|
3615
3615
|
id: (e == null ? void 0 : e.id) || v3(),
|
|
3616
3616
|
date: l,
|
|
@@ -3672,10 +3672,10 @@ function x3(e = "") {
|
|
|
3672
3672
|
return t >>> 0;
|
|
3673
3673
|
}
|
|
3674
3674
|
function b3(e = {}) {
|
|
3675
|
-
var i, l,
|
|
3675
|
+
var i, l, f, u, c, m, d, g, h, p, x;
|
|
3676
3676
|
const t = e.functionName || e.function || ((i = e == null ? void 0 : e.params) == null ? void 0 : i.function);
|
|
3677
3677
|
if (t) return `fn:${t}`;
|
|
3678
|
-
const n = (e == null ? void 0 : e.departmentName) || ((
|
|
3678
|
+
const n = (e == null ? void 0 : e.departmentName) || ((f = (l = e == null ? void 0 : e.info) == null ? void 0 : l.department) == null ? void 0 : f.name) || ((c = (u = e == null ? void 0 : e.info) == null ? void 0 : u.department) == null ? void 0 : c.id);
|
|
3679
3679
|
if (n) return `dept:${n}`;
|
|
3680
3680
|
const a = (e == null ? void 0 : e.instanceName) || ((d = (m = e == null ? void 0 : e.info) == null ? void 0 : m.instance) == null ? void 0 : d.name) || ((h = (g = e == null ? void 0 : e.info) == null ? void 0 : g.instance) == null ? void 0 : h.id);
|
|
3681
3681
|
if (a) return `inst:${a}`;
|
|
@@ -3826,19 +3826,19 @@ const Bn = Fn("attendant", {
|
|
|
3826
3826
|
emits: ["open-message", "open-chat", "delete-message"],
|
|
3827
3827
|
setup(e, { emit: t }) {
|
|
3828
3828
|
const n = Bn(), a = e, o = ue(() => (a.getEventColor || g1)(a.ev)), s = ue(() => {
|
|
3829
|
-
var
|
|
3830
|
-
return ((
|
|
3829
|
+
var u;
|
|
3830
|
+
return ((u = a.ev) == null ? void 0 : u.type) === "scheduled_messages";
|
|
3831
3831
|
}), i = ue(
|
|
3832
|
-
() => n.attendants.find((
|
|
3833
|
-
), l = (
|
|
3834
|
-
const c = n.attendants.find((m) => m.id ===
|
|
3832
|
+
() => n.attendants.find((u) => u.is_me) || {}
|
|
3833
|
+
), l = (u) => {
|
|
3834
|
+
const c = n.attendants.find((m) => m.id === u);
|
|
3835
3835
|
return c ? c.id === i.value.id ? "Você" : c.name || "Desconhecido" : "Desconhecido";
|
|
3836
|
-
},
|
|
3836
|
+
}, f = ue(() => {
|
|
3837
3837
|
var c, m;
|
|
3838
|
-
const
|
|
3839
|
-
return (c = a.ev) != null && c.contactName &&
|
|
3838
|
+
const u = [];
|
|
3839
|
+
return (c = a.ev) != null && c.contactName && u.push(a.ev.contactName), u.push(((m = a.ev) == null ? void 0 : m.departmentName) || "sem depto"), u.join(" • ");
|
|
3840
3840
|
});
|
|
3841
|
-
return (
|
|
3841
|
+
return (u, c) => {
|
|
3842
3842
|
var m, d, g, h, p, x;
|
|
3843
3843
|
return e.mode === "compact" ? (v(), y(He, { key: 0 }, [
|
|
3844
3844
|
r("header", k3, [
|
|
@@ -3887,7 +3887,7 @@ const Bn = Fn("attendant", {
|
|
|
3887
3887
|
]),
|
|
3888
3888
|
s.value ? (v(), y("button", {
|
|
3889
3889
|
key: 0,
|
|
3890
|
-
onClick: c[0] || (c[0] = (b) =>
|
|
3890
|
+
onClick: c[0] || (c[0] = (b) => u.$emit("open-message", e.ev)),
|
|
3891
3891
|
class: "cyber-button cyber-button--xs cyber-button--primary",
|
|
3892
3892
|
"aria-label": "Editar mensagem programada"
|
|
3893
3893
|
}, [
|
|
@@ -3908,7 +3908,7 @@ const Bn = Fn("attendant", {
|
|
|
3908
3908
|
])) : X("", !0),
|
|
3909
3909
|
s.value ? (v(), y("button", {
|
|
3910
3910
|
key: 1,
|
|
3911
|
-
onClick: c[1] || (c[1] = (b) =>
|
|
3911
|
+
onClick: c[1] || (c[1] = (b) => u.$emit("delete-message", e.ev)),
|
|
3912
3912
|
class: "cyber-button cyber-button--xs cyber-button--danger",
|
|
3913
3913
|
"aria-label": "Apagar evento",
|
|
3914
3914
|
disabled: e.ev.deleteLoading || !e.ev.status
|
|
@@ -3924,7 +3924,7 @@ const Bn = Fn("attendant", {
|
|
|
3924
3924
|
], 8, B3)) : X("", !0),
|
|
3925
3925
|
r("button", {
|
|
3926
3926
|
class: "cyber-button cyber-button--xs cyber-button--accent",
|
|
3927
|
-
onClick: c[2] || (c[2] = (b) =>
|
|
3927
|
+
onClick: c[2] || (c[2] = (b) => u.$emit("open-chat", e.ev)),
|
|
3928
3928
|
"aria-label": "Abrir conversa"
|
|
3929
3929
|
}, [...c[15] || (c[15] = [
|
|
3930
3930
|
r("svg", {
|
|
@@ -4008,11 +4008,11 @@ const Bn = Fn("attendant", {
|
|
|
4008
4008
|
key: 0,
|
|
4009
4009
|
type: "button",
|
|
4010
4010
|
class: "cyber-button cyber-button--sm cyber-button--primary",
|
|
4011
|
-
onClick: c[3] || (c[3] = (b) =>
|
|
4011
|
+
onClick: c[3] || (c[3] = (b) => u.$emit("open-message", e.ev))
|
|
4012
4012
|
}, le(((h = e.ev) == null ? void 0 : h.status) === !0 ? "Editar" : "Visualizar"), 1)) : X("", !0),
|
|
4013
4013
|
s.value ? (v(), y("button", {
|
|
4014
4014
|
key: 1,
|
|
4015
|
-
onClick: c[4] || (c[4] = (b) =>
|
|
4015
|
+
onClick: c[4] || (c[4] = (b) => u.$emit("delete-message", e.ev)),
|
|
4016
4016
|
class: "cyber-button cyber-button--sm cyber-button--danger",
|
|
4017
4017
|
"aria-label": "Apagar evento",
|
|
4018
4018
|
disabled: e.ev.deleteLoading || !e.ev.status
|
|
@@ -4024,7 +4024,7 @@ const Bn = Fn("attendant", {
|
|
|
4024
4024
|
key: 2,
|
|
4025
4025
|
type: "button",
|
|
4026
4026
|
class: "cyber-button cyber-button--sm cyber-button--accent",
|
|
4027
|
-
onClick: c[5] || (c[5] = (b) =>
|
|
4027
|
+
onClick: c[5] || (c[5] = (b) => u.$emit("open-chat", e.ev))
|
|
4028
4028
|
}, " Abrir conversa ")) : X("", !0)
|
|
4029
4029
|
]))
|
|
4030
4030
|
], 64)) : (v(), y(He, { key: 2 }, [
|
|
@@ -4033,7 +4033,7 @@ const Bn = Fn("attendant", {
|
|
|
4033
4033
|
style: Ke({ background: o.value }),
|
|
4034
4034
|
class: "event-color-bar"
|
|
4035
4035
|
}, null, 4),
|
|
4036
|
-
r("div", Q3, le(
|
|
4036
|
+
r("div", Q3, le(f.value), 1)
|
|
4037
4037
|
]),
|
|
4038
4038
|
r("footer", J3, [
|
|
4039
4039
|
r("div", ec, [
|
|
@@ -4072,7 +4072,7 @@ const Bn = Fn("attendant", {
|
|
|
4072
4072
|
r("div", oc, le(e.ev.time), 1),
|
|
4073
4073
|
s.value ? (v(), y("button", {
|
|
4074
4074
|
key: 0,
|
|
4075
|
-
onClick: c[6] || (c[6] = (b) =>
|
|
4075
|
+
onClick: c[6] || (c[6] = (b) => u.$emit("open-message", e.ev)),
|
|
4076
4076
|
class: "cyber-button cyber-button--xs cyber-button--primary",
|
|
4077
4077
|
"aria-label": "Editar mensagem programada"
|
|
4078
4078
|
}, [
|
|
@@ -4093,7 +4093,7 @@ const Bn = Fn("attendant", {
|
|
|
4093
4093
|
])) : X("", !0),
|
|
4094
4094
|
s.value ? (v(), y("button", {
|
|
4095
4095
|
key: 1,
|
|
4096
|
-
onClick: c[7] || (c[7] = (b) =>
|
|
4096
|
+
onClick: c[7] || (c[7] = (b) => u.$emit("delete-message", e.ev)),
|
|
4097
4097
|
class: "cyber-button cyber-button--xs cyber-button--danger",
|
|
4098
4098
|
"aria-label": "Apagar evento",
|
|
4099
4099
|
disabled: e.ev.deleteLoading || !e.ev.status
|
|
@@ -4109,7 +4109,7 @@ const Bn = Fn("attendant", {
|
|
|
4109
4109
|
], 8, rc)) : X("", !0),
|
|
4110
4110
|
r("button", {
|
|
4111
4111
|
class: "cyber-button cyber-button--xs cyber-button--accent",
|
|
4112
|
-
onClick: c[8] || (c[8] = (b) =>
|
|
4112
|
+
onClick: c[8] || (c[8] = (b) => u.$emit("open-chat", e.ev)),
|
|
4113
4113
|
"aria-label": "Abrir conversa"
|
|
4114
4114
|
}, [...c[29] || (c[29] = [
|
|
4115
4115
|
r("svg", {
|
|
@@ -4179,13 +4179,13 @@ const Bn = Fn("attendant", {
|
|
|
4179
4179
|
try {
|
|
4180
4180
|
const s = `${this.baseUrl}?year_month=${encodeURIComponent(
|
|
4181
4181
|
e
|
|
4182
|
-
)}&page_size=10`, i = await Et.get(s), l = Array.isArray(i == null ? void 0 : i.data) ? i.data : ((a = i == null ? void 0 : i.data) == null ? void 0 : a.results) || [],
|
|
4183
|
-
this._setMonth(e,
|
|
4184
|
-
let
|
|
4185
|
-
|
|
4182
|
+
)}&page_size=10`, i = await Et.get(s), l = Array.isArray(i == null ? void 0 : i.data) ? i.data : ((a = i == null ? void 0 : i.data) == null ? void 0 : a.results) || [], f = Ka(l || []);
|
|
4183
|
+
this._setMonth(e, f), this.loadedYM.add(e);
|
|
4184
|
+
let u = this.coerceHttps(((o = i == null ? void 0 : i.data) == null ? void 0 : o.next) || null);
|
|
4185
|
+
u && (async () => {
|
|
4186
4186
|
var c, m;
|
|
4187
4187
|
try {
|
|
4188
|
-
let d =
|
|
4188
|
+
let d = u;
|
|
4189
4189
|
for (; d; ) {
|
|
4190
4190
|
const g = await Et.get(d), h = Array.isArray(g == null ? void 0 : g.data) ? g.data : ((c = g == null ? void 0 : g.data) == null ? void 0 : c.results) || [], p = Ka(h || []);
|
|
4191
4191
|
this._appendMonth(e, p), d = this.coerceHttps(((m = g == null ? void 0 : g.data) == null ? void 0 : m.next) || null);
|
|
@@ -4215,8 +4215,8 @@ const Bn = Fn("attendant", {
|
|
|
4215
4215
|
const t = String(e);
|
|
4216
4216
|
for (const [n, a] of Object.entries(this.monthCache)) {
|
|
4217
4217
|
const o = (a || []).findIndex((s) => {
|
|
4218
|
-
var
|
|
4219
|
-
const i = ((
|
|
4218
|
+
var f;
|
|
4219
|
+
const i = ((f = s == null ? void 0 : s.raw) == null ? void 0 : f.id) != null ? String(s.raw.id) : null, l = (s == null ? void 0 : s.id) != null ? String(s.id) : null;
|
|
4220
4220
|
return i === t || l === t;
|
|
4221
4221
|
});
|
|
4222
4222
|
if (o !== -1) return { ym: n, idx: o };
|
|
@@ -4293,12 +4293,12 @@ const Bn = Fn("attendant", {
|
|
|
4293
4293
|
P.sort((E, M) => E.date - M.date), this._setMonth(H, P);
|
|
4294
4294
|
return;
|
|
4295
4295
|
}
|
|
4296
|
-
const { ym: s, idx: i } = o, l = this.monthCache[s] || [],
|
|
4296
|
+
const { ym: s, idx: i } = o, l = this.monthCache[s] || [], f = { ...l[i] }, u = a({ ...f }), c = u.date instanceof Date ? u.date : f.date, m = bn(c);
|
|
4297
4297
|
if (m === s) {
|
|
4298
4298
|
const k = [...l];
|
|
4299
|
-
k.splice(i, 1,
|
|
4299
|
+
k.splice(i, 1, u), k.sort((F, H) => F.date - H.date), this._setMonth(s, k);
|
|
4300
4300
|
} else {
|
|
4301
|
-
const k = l.slice(0, i).concat(l.slice(i + 1)), F = this.monthCache[m] ? [...this.monthCache[m],
|
|
4301
|
+
const k = l.slice(0, i).concat(l.slice(i + 1)), F = this.monthCache[m] ? [...this.monthCache[m], u] : [u];
|
|
4302
4302
|
F.sort((H, P) => H.date - P.date), this.monthCache = {
|
|
4303
4303
|
...this.monthCache,
|
|
4304
4304
|
[s]: k,
|
|
@@ -4320,10 +4320,10 @@ const Bn = Fn("attendant", {
|
|
|
4320
4320
|
date: n,
|
|
4321
4321
|
time: e.time ?? h1(n)
|
|
4322
4322
|
}, s = this.monthCache[a] ? [...this.monthCache[a]] : [], i = s.findIndex((l) => {
|
|
4323
|
-
var
|
|
4324
|
-
return String(((
|
|
4323
|
+
var f;
|
|
4324
|
+
return String(((f = l == null ? void 0 : l.raw) == null ? void 0 : f.id) ?? (l == null ? void 0 : l.id)) === t;
|
|
4325
4325
|
});
|
|
4326
|
-
i !== -1 ? s.splice(i, 1, o) : s.push(o), s.sort((l,
|
|
4326
|
+
i !== -1 ? s.splice(i, 1, o) : s.push(o), s.sort((l, f) => l.date - f.date), this._setMonth(a, s);
|
|
4327
4327
|
},
|
|
4328
4328
|
insertFromApiItem(e) {
|
|
4329
4329
|
const t = ea(e);
|
|
@@ -4634,17 +4634,17 @@ const Bn = Fn("attendant", {
|
|
|
4634
4634
|
}
|
|
4635
4635
|
return x;
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4637
|
+
function f(h, p) {
|
|
4638
4638
|
var L;
|
|
4639
4639
|
const x = (typeof t.dayEventCountFn == "function" ? t.dayEventCountFn(p) : 0) || 0, b = ((L = n.value[h]) == null ? void 0 : L.sum) ?? 0;
|
|
4640
4640
|
if (x <= b) return { bars: x, overflow: 0 };
|
|
4641
4641
|
const w = Math.max(0, b - Pc), S = Math.max(0, x - w);
|
|
4642
4642
|
return { bars: w, overflow: S };
|
|
4643
4643
|
}
|
|
4644
|
-
function
|
|
4644
|
+
function u(h, p) {
|
|
4645
4645
|
const x = n.value[h];
|
|
4646
4646
|
if (!x || x.rows === 0 || x.cols === 0) return [];
|
|
4647
|
-
const { widths: b } = x, S =
|
|
4647
|
+
const { widths: b } = x, S = f(h, p).bars, L = (typeof t.eventsByDayFn == "function" ? t.eventsByDayFn(p).slice(0, S) : []) || [], D = b.map(() => []);
|
|
4648
4648
|
let O = 0;
|
|
4649
4649
|
for (let R = b.length - 1; R >= 0 && O < L.length; R--) {
|
|
4650
4650
|
const A = Math.min(b[R], L.length - O);
|
|
@@ -4705,14 +4705,14 @@ const Bn = Fn("attendant", {
|
|
|
4705
4705
|
r("div", Lc, [
|
|
4706
4706
|
r("span", Fc, le(x.date.getDate()), 1)
|
|
4707
4707
|
]),
|
|
4708
|
-
|
|
4708
|
+
f(x.key, x.date).overflow > 0 ? (v(), y("span", Dc, " +" + le(f(x.key, x.date).overflow), 1)) : X("", !0),
|
|
4709
4709
|
r("div", $c, [
|
|
4710
4710
|
r("div", {
|
|
4711
4711
|
class: "bars-vert",
|
|
4712
4712
|
ref_for: !0,
|
|
4713
4713
|
ref: (w) => i(x.key, w)
|
|
4714
4714
|
}, [
|
|
4715
|
-
|
|
4715
|
+
f(x.key, x.date).bars > 0 ? (v(!0), y(He, { key: 0 }, Ie(u(x.key, x.date), (w, S) => (v(), y("div", {
|
|
4716
4716
|
key: "vrow" + S,
|
|
4717
4717
|
class: "vrow"
|
|
4718
4718
|
}, [
|
|
@@ -4934,13 +4934,13 @@ const Bn = Fn("attendant", {
|
|
|
4934
4934
|
const { [k]: F, ...H } = A;
|
|
4935
4935
|
return H;
|
|
4936
4936
|
}
|
|
4937
|
-
function
|
|
4937
|
+
function f(A) {
|
|
4938
4938
|
var F;
|
|
4939
4939
|
i.onlyMine = !!A.target.checked;
|
|
4940
4940
|
const k = (F = s.value) != null && F.id ? String(s.value.id) : null;
|
|
4941
4941
|
i.onlyMine && k ? a("update:filters", { ...n.filters, scheduled_by: k }) : a("update:filters", l(n.filters, "scheduled_by"));
|
|
4942
4942
|
}
|
|
4943
|
-
function
|
|
4943
|
+
function u(A) {
|
|
4944
4944
|
if (i.status === A) {
|
|
4945
4945
|
i.status = null;
|
|
4946
4946
|
const k = l(n.filters, "status");
|
|
@@ -5074,7 +5074,7 @@ const Bn = Fn("attendant", {
|
|
|
5074
5074
|
class: "switch",
|
|
5075
5075
|
type: "checkbox",
|
|
5076
5076
|
checked: i.onlyMine,
|
|
5077
|
-
onChange: k[1] || (k[1] = (F) =>
|
|
5077
|
+
onChange: k[1] || (k[1] = (F) => f(F)),
|
|
5078
5078
|
"aria-label": "Exibir somente meus eventos"
|
|
5079
5079
|
}, null, 40, s4),
|
|
5080
5080
|
k[7] || (k[7] = r("span", { class: "label-cpk" }, "Exibir somente meus eventos", -1))
|
|
@@ -5144,13 +5144,13 @@ const Bn = Fn("attendant", {
|
|
|
5144
5144
|
r("button", {
|
|
5145
5145
|
type: "button",
|
|
5146
5146
|
class: ce(["cyber-button cyber-button--xs btn-ghost", i.status === !0 ? "is-active" : ""]),
|
|
5147
|
-
onClick: k[2] || (k[2] = (F) =>
|
|
5147
|
+
onClick: k[2] || (k[2] = (F) => u(!0)),
|
|
5148
5148
|
"aria-pressed": "state.status === true"
|
|
5149
5149
|
}, " Ativos ", 2),
|
|
5150
5150
|
r("button", {
|
|
5151
5151
|
type: "button",
|
|
5152
5152
|
class: ce(["cyber-button cyber-button--xs btn-ghost", i.status === !1 ? "is-active" : ""]),
|
|
5153
|
-
onClick: k[3] || (k[3] = (F) =>
|
|
5153
|
+
onClick: k[3] || (k[3] = (F) => u(!1)),
|
|
5154
5154
|
"aria-pressed": "state.status === false"
|
|
5155
5155
|
}, " Executados ", 2)
|
|
5156
5156
|
])
|
|
@@ -5176,10 +5176,10 @@ const Bn = Fn("attendant", {
|
|
|
5176
5176
|
setup(e, { expose: t, emit: n }) {
|
|
5177
5177
|
const a = e, o = uc();
|
|
5178
5178
|
o.setBaseUrl(a.sourceUrl);
|
|
5179
|
-
const s = /* @__PURE__ */ new Date(), i = G(
|
|
5179
|
+
const s = /* @__PURE__ */ new Date(), i = G(u(a.initialDate)), l = G(
|
|
5180
5180
|
new Date(s.getFullYear(), s.getMonth(), s.getDate())
|
|
5181
|
-
),
|
|
5182
|
-
function
|
|
5181
|
+
), f = G("calendar");
|
|
5182
|
+
function u(C) {
|
|
5183
5183
|
if (C instanceof Date) return new Date(C.getFullYear(), C.getMonth(), 1);
|
|
5184
5184
|
if (typeof C == "string") {
|
|
5185
5185
|
const [$, Y] = C.split("-").map((ae) => parseInt(ae, 10));
|
|
@@ -5461,17 +5461,17 @@ const Bn = Fn("attendant", {
|
|
|
5461
5461
|
month: D.value,
|
|
5462
5462
|
year: O.value,
|
|
5463
5463
|
"is-compact": W.value,
|
|
5464
|
-
"view-mode":
|
|
5464
|
+
"view-mode": f.value,
|
|
5465
5465
|
"filter-count": Object.keys(Se(se)).length,
|
|
5466
5466
|
onPrev: x,
|
|
5467
5467
|
onNext: b,
|
|
5468
5468
|
onToday: w,
|
|
5469
5469
|
onToggleCompact: $[0] || ($[0] = (Y) => Ye.value = !Ye.value),
|
|
5470
|
-
onSetViewMode: $[1] || ($[1] = (Y) =>
|
|
5470
|
+
onSetViewMode: $[1] || ($[1] = (Y) => f.value = Y),
|
|
5471
5471
|
onClosePage: $[2] || ($[2] = (Y) => C.$emit("close-page")),
|
|
5472
5472
|
onOpenFilter: te
|
|
5473
5473
|
}, null, 8, ["month", "year", "is-compact", "view-mode", "filter-count"]),
|
|
5474
|
-
|
|
5474
|
+
f.value === "calendar" ? (v(), y("div", {
|
|
5475
5475
|
key: 0,
|
|
5476
5476
|
class: ce(["calendar-stage", re.value])
|
|
5477
5477
|
}, [
|
|
@@ -5590,18 +5590,18 @@ const Bn = Fn("attendant", {
|
|
|
5590
5590
|
});
|
|
5591
5591
|
const n = t, a = G(Array(6).fill("")), o = G([]);
|
|
5592
5592
|
G(!1);
|
|
5593
|
-
const s = (
|
|
5594
|
-
const c = a.value[
|
|
5595
|
-
a.value[0] < 1 && n("reset"), /^\d$/.test(c) ? i(
|
|
5596
|
-
}, i = (
|
|
5597
|
-
|
|
5598
|
-
}, l = (
|
|
5599
|
-
c.key === "Backspace" && !a.value[
|
|
5600
|
-
},
|
|
5601
|
-
const
|
|
5602
|
-
n("filled",
|
|
5593
|
+
const s = (u) => {
|
|
5594
|
+
const c = a.value[u];
|
|
5595
|
+
a.value[0] < 1 && n("reset"), /^\d$/.test(c) ? i(u) : a.value[u] = "", u === a.value.length - 1 && a.value.every((m) => m !== "") && f();
|
|
5596
|
+
}, i = (u) => {
|
|
5597
|
+
u < a.value.length - 1 && a.value[u] && o.value[u + 1].focus();
|
|
5598
|
+
}, l = (u, c) => {
|
|
5599
|
+
c.key === "Backspace" && !a.value[u] && u > 0 && o.value[u - 1].focus();
|
|
5600
|
+
}, f = () => {
|
|
5601
|
+
const u = a.value.join("");
|
|
5602
|
+
n("filled", u);
|
|
5603
5603
|
};
|
|
5604
|
-
return (
|
|
5604
|
+
return (u, c) => (v(), y("section", p4, [
|
|
5605
5605
|
r("div", g4, [
|
|
5606
5606
|
r("div", v4, [
|
|
5607
5607
|
(v(!0), y(He, null, Ie(a.value, (m, d) => Ze((v(), y("input", {
|
|
@@ -5657,13 +5657,13 @@ const Bn = Fn("attendant", {
|
|
|
5657
5657
|
}, s = ue(() => a.base64 ? a.base64 : l.value), i = ue(() => `w-${a.dimensions[0]} h-${a.dimensions[1]}`), l = G(
|
|
5658
5658
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII="
|
|
5659
5659
|
);
|
|
5660
|
-
return (
|
|
5660
|
+
return (f, u) => (v(), y("div", x4, [
|
|
5661
5661
|
r("section", b4, [
|
|
5662
5662
|
e.generated ? X("", !0) : (v(), y("div", {
|
|
5663
5663
|
key: 0,
|
|
5664
5664
|
class: ce([i.value, "btnQrCode"])
|
|
5665
5665
|
}, [
|
|
5666
|
-
e.loading ? (v(), y("div", k4, [...
|
|
5666
|
+
e.loading ? (v(), y("div", k4, [...u[0] || (u[0] = [
|
|
5667
5667
|
r("div", { class: "loaderMFA" }, null, -1)
|
|
5668
5668
|
])])) : (v(), y("button", {
|
|
5669
5669
|
key: 1,
|
|
@@ -5705,38 +5705,38 @@ function T4(e, t, n) {
|
|
|
5705
5705
|
}
|
|
5706
5706
|
function ts() {
|
|
5707
5707
|
const e = Bn(), t = async (l) => {
|
|
5708
|
-
const
|
|
5709
|
-
(
|
|
5708
|
+
const f = e.attendants.find(
|
|
5709
|
+
(u) => u.id === l
|
|
5710
5710
|
);
|
|
5711
|
-
if (
|
|
5711
|
+
if (f)
|
|
5712
5712
|
try {
|
|
5713
|
-
const
|
|
5713
|
+
const u = await Et.get(
|
|
5714
5714
|
`${_1}?attendant=${l}&page=1`
|
|
5715
5715
|
);
|
|
5716
|
-
|
|
5717
|
-
channel_id:
|
|
5716
|
+
f.messages = u.data.results.reverse(), f.hasNextPage = u.data.next !== null, f.currentPage = 2, f.internal_chat = {
|
|
5717
|
+
channel_id: u.data.channel_id,
|
|
5718
5718
|
unread: 0
|
|
5719
5719
|
};
|
|
5720
|
-
} catch (
|
|
5721
|
-
console.error("Erro ao buscar mensagens:",
|
|
5720
|
+
} catch (u) {
|
|
5721
|
+
console.error("Erro ao buscar mensagens:", u);
|
|
5722
5722
|
}
|
|
5723
5723
|
}, n = async (l) => {
|
|
5724
|
-
const
|
|
5725
|
-
(
|
|
5724
|
+
const f = e.attendants.find(
|
|
5725
|
+
(u) => u.id === l
|
|
5726
5726
|
);
|
|
5727
|
-
if (!(!
|
|
5727
|
+
if (!(!f || !f.hasNextPage))
|
|
5728
5728
|
try {
|
|
5729
|
-
const
|
|
5730
|
-
`${_1}?attendant=${l}&page=${
|
|
5729
|
+
const u = await Et.get(
|
|
5730
|
+
`${_1}?attendant=${l}&page=${f.currentPage}`
|
|
5731
5731
|
);
|
|
5732
|
-
|
|
5733
|
-
...
|
|
5734
|
-
...
|
|
5735
|
-
],
|
|
5736
|
-
} catch (
|
|
5737
|
-
console.error("Erro ao carregar mais mensagens:",
|
|
5732
|
+
f.messages = [
|
|
5733
|
+
...u.data.results.reverse(),
|
|
5734
|
+
...f.messages
|
|
5735
|
+
], f.hasNextPage = u.data.next !== null, f.currentPage++;
|
|
5736
|
+
} catch (u) {
|
|
5737
|
+
console.error("Erro ao carregar mais mensagens:", u);
|
|
5738
5738
|
}
|
|
5739
|
-
}, a = (l,
|
|
5739
|
+
}, a = (l, f, u) => {
|
|
5740
5740
|
const c = l == null ? void 0 : l.message;
|
|
5741
5741
|
if (!c) return;
|
|
5742
5742
|
const m = e.attendants.find(
|
|
@@ -5747,25 +5747,25 @@ function ts() {
|
|
|
5747
5747
|
);
|
|
5748
5748
|
m ? (m.messages = m.messages || [], m.messages.find(
|
|
5749
5749
|
(g) => g.id === c.id
|
|
5750
|
-
) || (m.messages.push(c), (!
|
|
5750
|
+
) || (m.messages.push(c), (!f || m.id !== u) && (m.internal_chat.unread = (m.internal_chat.unread || 0) + 1))) : console.error("Atendente não encontrado para o canal especificado.");
|
|
5751
5751
|
}, o = (l) => {
|
|
5752
|
-
const
|
|
5753
|
-
(
|
|
5752
|
+
const f = e.attendants.find(
|
|
5753
|
+
(u) => u.id === l
|
|
5754
5754
|
);
|
|
5755
|
-
|
|
5756
|
-
}, s = async (l,
|
|
5755
|
+
f && (f.internal_chat.unread = 0);
|
|
5756
|
+
}, s = async (l, f, u, c = !1) => {
|
|
5757
5757
|
var h;
|
|
5758
5758
|
const m = e.attendants.find(
|
|
5759
5759
|
(p) => p.id === l
|
|
5760
5760
|
);
|
|
5761
5761
|
if (!m || !((h = m.internal_chat) != null && h.channel_id)) return;
|
|
5762
5762
|
let d;
|
|
5763
|
-
c ? d =
|
|
5763
|
+
c ? d = f : d = { type: "text", content: f };
|
|
5764
5764
|
const g = {
|
|
5765
5765
|
id: T4(),
|
|
5766
5766
|
content: d,
|
|
5767
5767
|
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5768
|
-
sender:
|
|
5768
|
+
sender: u
|
|
5769
5769
|
};
|
|
5770
5770
|
m.messages.push(g);
|
|
5771
5771
|
try {
|
|
@@ -5780,10 +5780,10 @@ function ts() {
|
|
|
5780
5780
|
console.error("Erro ao enviar mensagem:", p);
|
|
5781
5781
|
}
|
|
5782
5782
|
}, i = (l) => {
|
|
5783
|
-
const
|
|
5784
|
-
(
|
|
5783
|
+
const f = e.attendants.find(
|
|
5784
|
+
(u) => u.id === l
|
|
5785
5785
|
);
|
|
5786
|
-
return
|
|
5786
|
+
return f ? f.hasNextPage : !1;
|
|
5787
5787
|
};
|
|
5788
5788
|
return {
|
|
5789
5789
|
attendants: ue(() => e.attendants),
|
|
@@ -5842,10 +5842,10 @@ const L4 = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray
|
|
|
5842
5842
|
},
|
|
5843
5843
|
emits: ["atendenteSelecionado"],
|
|
5844
5844
|
setup(e, { emit: t }) {
|
|
5845
|
-
const n = e, a = t, o = G(""), s = (
|
|
5846
|
-
a("atendenteSelecionado",
|
|
5847
|
-
}, i = (
|
|
5848
|
-
switch (
|
|
5845
|
+
const n = e, a = t, o = G(""), s = (f) => {
|
|
5846
|
+
a("atendenteSelecionado", f);
|
|
5847
|
+
}, i = (f) => {
|
|
5848
|
+
switch (f) {
|
|
5849
5849
|
case "Busy":
|
|
5850
5850
|
return "bg-red-500";
|
|
5851
5851
|
case "Online":
|
|
@@ -5858,11 +5858,11 @@ const L4 = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray
|
|
|
5858
5858
|
return "bg-purple-500";
|
|
5859
5859
|
}
|
|
5860
5860
|
}, l = ue(() => o.value ? n.atendentes.filter(
|
|
5861
|
-
(
|
|
5862
|
-
) : n.atendentes.filter((
|
|
5863
|
-
return (
|
|
5861
|
+
(f) => f.name.toLowerCase().includes(o.value.toLowerCase()) && f.id !== n.attendant.id
|
|
5862
|
+
) : n.atendentes.filter((f) => f.id !== n.attendant.id));
|
|
5863
|
+
return (f, u) => (v(), y("div", B4, [
|
|
5864
5864
|
Ze(r("input", {
|
|
5865
|
-
"onUpdate:modelValue":
|
|
5865
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
|
|
5866
5866
|
class: ce(
|
|
5867
5867
|
e.mobile ? "search-input-mobile bg-base-300 border-b border-base-200" : "search-input bg-base-300 border-b border-base-200"
|
|
5868
5868
|
),
|
|
@@ -5889,7 +5889,7 @@ const L4 = { class: "avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray
|
|
|
5889
5889
|
class: ce(["status-indicator", i(c.login_status)])
|
|
5890
5890
|
}, null, 2)
|
|
5891
5891
|
]),
|
|
5892
|
-
|
|
5892
|
+
u[1] || (u[1] = r("div", { class: "hover-action" }, "Conversar", -1))
|
|
5893
5893
|
], 10, H4))), 128))
|
|
5894
5894
|
]),
|
|
5895
5895
|
e.mobile ? X("", !0) : (v(), y("footer", j4))
|
|
@@ -5947,11 +5947,11 @@ const Q4 = /* @__PURE__ */ as(q4, [["render", K4], ["__scopeId", "data-v-d3e3763
|
|
|
5947
5947
|
setup(e, { emit: t }) {
|
|
5948
5948
|
const n = e;
|
|
5949
5949
|
let a = null, o = 0;
|
|
5950
|
-
const s = G(null), i = G(""), { top: l, firstload:
|
|
5950
|
+
const s = G(null), i = G(""), { top: l, firstload: f, distance: u } = n, { identifier: c, target: m } = po(n), d = {
|
|
5951
5951
|
infiniteLoading: s,
|
|
5952
5952
|
top: l,
|
|
5953
|
-
firstload:
|
|
5954
|
-
distance:
|
|
5953
|
+
firstload: f,
|
|
5954
|
+
distance: u,
|
|
5955
5955
|
parentEl: null,
|
|
5956
5956
|
emit() {
|
|
5957
5957
|
o = (d.parentEl || document.documentElement).scrollHeight, g.loading(), t("infinite", g);
|
|
@@ -6050,8 +6050,8 @@ function n5(e, t, n) {
|
|
|
6050
6050
|
n == null ? void 0 : n.in,
|
|
6051
6051
|
e,
|
|
6052
6052
|
t
|
|
6053
|
-
), s = y1(a), i = y1(o), l = +s - s0(s),
|
|
6054
|
-
return Math.round((l -
|
|
6053
|
+
), s = y1(a), i = y1(o), l = +s - s0(s), f = +i - s0(i);
|
|
6054
|
+
return Math.round((l - f) / i2);
|
|
6055
6055
|
}
|
|
6056
6056
|
function a5(e, t) {
|
|
6057
6057
|
const n = os(e, t), a = Ft(e, 0);
|
|
@@ -6090,14 +6090,14 @@ function is(e, t) {
|
|
|
6090
6090
|
var c, m, d, g;
|
|
6091
6091
|
const n = Bt(e, t == null ? void 0 : t.in), a = n.getFullYear(), o = F1(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : m.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (d = o.locale) == null ? void 0 : d.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = Ft((t == null ? void 0 : t.in) || e, 0);
|
|
6092
6092
|
i.setFullYear(a + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
6093
|
-
const l = mn(i, t),
|
|
6094
|
-
|
|
6095
|
-
const
|
|
6096
|
-
return +n >= +l ? a + 1 : +n >= +
|
|
6093
|
+
const l = mn(i, t), f = Ft((t == null ? void 0 : t.in) || e, 0);
|
|
6094
|
+
f.setFullYear(a, 0, s), f.setHours(0, 0, 0, 0);
|
|
6095
|
+
const u = mn(f, t);
|
|
6096
|
+
return +n >= +l ? a + 1 : +n >= +u ? a : a - 1;
|
|
6097
6097
|
}
|
|
6098
6098
|
function c5(e, t) {
|
|
6099
|
-
var l,
|
|
6100
|
-
const n = F1(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
6099
|
+
var l, f, u, c;
|
|
6100
|
+
const n = F1(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, o = is(e, t), s = Ft((t == null ? void 0 : t.in) || e, 0);
|
|
6101
6101
|
return s.setFullYear(o, 0, a), s.setHours(0, 0, 0, 0), mn(s, t);
|
|
6102
6102
|
}
|
|
6103
6103
|
function d5(e, t) {
|
|
@@ -6736,7 +6736,7 @@ function d0(e, t, n) {
|
|
|
6736
6736
|
const a = F1(), o = (n == null ? void 0 : n.locale) ?? a.locale ?? V2, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : m.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((g = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : p.weekStartsOn) ?? a.weekStartsOn ?? ((b = (x = a.locale) == null ? void 0 : x.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = Bt(e, n == null ? void 0 : n.in);
|
|
6737
6737
|
if (!s5(l))
|
|
6738
6738
|
throw new RangeError("Invalid time value");
|
|
6739
|
-
let
|
|
6739
|
+
let f = t.match(k5).map((w) => {
|
|
6740
6740
|
const S = w[0];
|
|
6741
6741
|
if (S === "p" || S === "P") {
|
|
6742
6742
|
const L = f5[S];
|
|
@@ -6757,18 +6757,18 @@ function d0(e, t, n) {
|
|
|
6757
6757
|
);
|
|
6758
6758
|
return { isToken: !1, value: w };
|
|
6759
6759
|
});
|
|
6760
|
-
o.localize.preprocessor && (
|
|
6761
|
-
const
|
|
6760
|
+
o.localize.preprocessor && (f = o.localize.preprocessor(l, f));
|
|
6761
|
+
const u = {
|
|
6762
6762
|
firstWeekContainsDate: s,
|
|
6763
6763
|
weekStartsOn: i,
|
|
6764
6764
|
locale: o
|
|
6765
6765
|
};
|
|
6766
|
-
return
|
|
6766
|
+
return f.map((w) => {
|
|
6767
6767
|
if (!w.isToken) return w.value;
|
|
6768
6768
|
const S = w.value;
|
|
6769
6769
|
(!(n != null && n.useAdditionalWeekYearTokens) && v5(S) || !(n != null && n.useAdditionalDayOfYearTokens) && g5(S)) && y5(S, t, String(e));
|
|
6770
6770
|
const L = i0[S[0]];
|
|
6771
|
-
return L(l, S, o.localize,
|
|
6771
|
+
return L(l, S, o.localize, u);
|
|
6772
6772
|
}).join("");
|
|
6773
6773
|
}
|
|
6774
6774
|
function M5(e) {
|
|
@@ -6852,7 +6852,7 @@ var yt, Jt, Cn;
|
|
|
6852
6852
|
const x1 = /* @__PURE__ */ new Set();
|
|
6853
6853
|
let Mn = null, z1 = 0;
|
|
6854
6854
|
function tn() {
|
|
6855
|
-
let e = yt.Initializing, t = Jt.Ease, n = 0, a = 0, o = tn.Easings.Linear, s = 500, i = 0, l = 0,
|
|
6855
|
+
let e = yt.Initializing, t = Jt.Ease, n = 0, a = 0, o = tn.Easings.Linear, s = 500, i = 0, l = 0, f = 0, u = 0, c = 1 / 0, m = 0.01, d = 0.01, g = !1, h = {}, p = null, x = {}, b = {}, w = {}, S = 0, L = 0, D = Cn.Loop, O = tn.Easings.Linear;
|
|
6856
6856
|
const R = /* @__PURE__ */ new Map();
|
|
6857
6857
|
function A(E, ...M) {
|
|
6858
6858
|
for (const V of R.get(E) || []) V(...M);
|
|
@@ -6884,7 +6884,7 @@ function tn() {
|
|
|
6884
6884
|
}, spring: function(E = {}) {
|
|
6885
6885
|
t = Jt.Spring;
|
|
6886
6886
|
const M = { velocity: 0, mass: 1, tension: 170, friction: 26, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0, clamp: !0 }, { velocity: V, mass: K, tension: ee, friction: te, restDelta: se, restSpeed: pe, maxSpeed: ie, clamp: be } = Object.assign(Object.assign({}, M), E);
|
|
6887
|
-
return i = V, l = K,
|
|
6887
|
+
return i = V, l = K, f = ee, u = te, d = se, m = pe, c = ie, g = be, w = {}, P;
|
|
6888
6888
|
}, isRunning: function() {
|
|
6889
6889
|
return e === yt.Running;
|
|
6890
6890
|
}, isSpring: function() {
|
|
@@ -6928,8 +6928,8 @@ function tn() {
|
|
|
6928
6928
|
w[se] || (typeof i == "object" && typeof i[se] == "number" ? w[se] = i[se] : w[se] = typeof i == "number" ? i : 0);
|
|
6929
6929
|
let be = w[se];
|
|
6930
6930
|
be = Re(-1 * Math.abs(c), be, Math.abs(c));
|
|
6931
|
-
const je = be * l *
|
|
6932
|
-
be += ((ie > pe ? -1 : 1) * (Math.abs(pe - ie) *
|
|
6931
|
+
const je = be * l * u;
|
|
6932
|
+
be += ((ie > pe ? -1 : 1) * (Math.abs(pe - ie) * f) - je) / l * ee, ie += be * ee;
|
|
6933
6933
|
const _e = x[se] > pe ? ie < pe : ie > pe;
|
|
6934
6934
|
let Te = Math.abs(be) < m && Math.abs(pe - ie) <= d;
|
|
6935
6935
|
g && _e && (Te = !0), Te ? (ie = pe, be = 0) : te++, x[se] = ie, w[se] = be;
|
|
@@ -6994,10 +6994,10 @@ const m0 = (e) => {
|
|
|
6994
6994
|
}, Kt = { passive: !1 }, D5 = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
|
|
6995
6995
|
let t1 = !1, Vn = !0;
|
|
6996
6996
|
const Tn = (e, t) => {
|
|
6997
|
-
let n, a, o, s = Object.assign(Object.assign({}, D5), t), i = [], l = [],
|
|
6997
|
+
let n, a, o, s = Object.assign(Object.assign({}, D5), t), i = [], l = [], f = [], u = !1, c = !1, m = !1, d = !1, g = 0, h = 0, p = 0, x = 0, b = 0, w = 0, S = 0, L = 0, D = 0, O = [], R = 0, A = 0;
|
|
6998
6998
|
const k = /* @__PURE__ */ new Map();
|
|
6999
6999
|
function F(se) {
|
|
7000
|
-
const pe = e1(l), ie = e1(
|
|
7000
|
+
const pe = e1(l), ie = e1(f), be = pe && ie ? pe / ie : 0, je = Math.abs(S) > Math.abs(L) ? S : L, _e = { srcEvent: n, isPanRecognized: u, isSwipeRecognized: c, firstTouch: i, previousTouch: f, currentTouch: l, deltaX: p, deltaY: x, offsetX: b, offsetY: w, velocityX: S, velocityY: L, velocity: je, angle: D, axis: o, scale: be, center: a };
|
|
7001
7001
|
for (const Te of k.get(se) || []) Te(_e);
|
|
7002
7002
|
}
|
|
7003
7003
|
function H(se) {
|
|
@@ -7020,41 +7020,41 @@ const Tn = (e, t) => {
|
|
|
7020
7020
|
if (!se.buttons || se.button !== 0) return;
|
|
7021
7021
|
m0(se);
|
|
7022
7022
|
}
|
|
7023
|
-
se instanceof MouseEvent && (window.addEventListener("mousemove", E), window.addEventListener("mouseup", M)), window.addEventListener("blur", V), n = se, l = h0(se), i = [...l],
|
|
7023
|
+
se instanceof MouseEvent && (window.addEventListener("mousemove", E), window.addEventListener("mouseup", M)), window.addEventListener("blur", V), n = se, l = h0(se), i = [...l], f = [], h = l.length, a = Qt(l), h === 1 && (u = !1, c = !1, m = !1), h && H(Qt(l));
|
|
7024
7024
|
const be = Date.now(), je = be - (g || be);
|
|
7025
7025
|
d = je > 0 && je <= 250 && h === 1, g = be, clearTimeout(R), F("start");
|
|
7026
7026
|
}
|
|
7027
7027
|
function E(se) {
|
|
7028
7028
|
var pe;
|
|
7029
7029
|
if (!i.length || se.defaultPrevented) return;
|
|
7030
|
-
n = se,
|
|
7031
|
-
const ie = Qt(
|
|
7032
|
-
if (H(be), h = l.length, a = be,
|
|
7030
|
+
n = se, f = [...l], l = f0(se);
|
|
7031
|
+
const ie = Qt(f), be = Qt(f0(se));
|
|
7032
|
+
if (H(be), h = l.length, a = be, f.length === l.length ? (p = be.x - ie.x, x = be.y - ie.y) : (p = 0, x = 0), i.length) {
|
|
7033
7033
|
const je = Qt(i);
|
|
7034
7034
|
b = be.x - je.x, w = be.y - je.y;
|
|
7035
7035
|
}
|
|
7036
7036
|
if (l.length > 1) {
|
|
7037
|
-
const je = e1(l), _e = e1(
|
|
7037
|
+
const je = e1(l), _e = e1(f);
|
|
7038
7038
|
Math.abs(je - _e) >= 0.1 && (m = !0, F("pinch"));
|
|
7039
7039
|
}
|
|
7040
|
-
|
|
7040
|
+
u || (u = Math.abs(b) > s.panThreshold || Math.abs(w) > s.panThreshold, u && (Vn = !1, clearTimeout(A), A = 0, D = Math.abs(180 * Math.atan2(w, b) / Math.PI), o = D > 45 && D < 135 ? "y" : "x", i = [...l], f = [...l], b = 0, w = 0, p = 0, x = 0, (pe = window.getSelection()) === null || pe === void 0 || pe.removeAllRanges(), F("panstart"))), u && (p || x) && F("pan"), F("move");
|
|
7041
7041
|
}
|
|
7042
7042
|
function M(se) {
|
|
7043
7043
|
if (n = se, !i.length) return;
|
|
7044
7044
|
const pe = h0(se), ie = cs(se);
|
|
7045
|
-
if (h = pe.length, a = Qt(ie), ie.length && H(Qt(ie)),
|
|
7045
|
+
if (h = pe.length, a = Qt(ie), ie.length && H(Qt(ie)), f = [...l], l = [...pe], i = [...pe], h > 0) F("end"), u = !1, c = !1, O = [];
|
|
7046
7046
|
else {
|
|
7047
7047
|
const be = s.swipeThreshold;
|
|
7048
|
-
(Math.abs(S) > be || Math.abs(L) > be) && (c = !0),
|
|
7048
|
+
(Math.abs(S) > be || Math.abs(L) > be) && (c = !0), u && F("panend"), c && F("swipe"), u || c || m || (F("tap"), d ? F("doubleTap") : R = setTimeout(function() {
|
|
7049
7049
|
F("singleTap");
|
|
7050
7050
|
}, 250)), F("end"), K();
|
|
7051
7051
|
}
|
|
7052
7052
|
}
|
|
7053
7053
|
function V() {
|
|
7054
|
-
clearTimeout(R), K(),
|
|
7054
|
+
clearTimeout(R), K(), u && F("panend"), F("end");
|
|
7055
7055
|
}
|
|
7056
7056
|
function K() {
|
|
7057
|
-
t1 = !1,
|
|
7057
|
+
t1 = !1, u = !1, c = !1, d = !1, h = 0, O = [], l = [], f = [], i = [], p = 0, x = 0, b = 0, w = 0, S = 0, L = 0, D = 0, o = void 0, window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", M), window.removeEventListener("blur", V), Vn || A || (A = setTimeout(() => {
|
|
7058
7058
|
Vn = !0, A = 0;
|
|
7059
7059
|
}, 100));
|
|
7060
7060
|
}
|
|
@@ -7109,7 +7109,7 @@ var we, p0;
|
|
|
7109
7109
|
const Ot = { x: 0, y: 0, scale: 1, angle: 0, flipX: 1, flipY: 1 }, ta = { bounds: !0, classes: { container: "f-panzoom", wrapper: "f-panzoom__wrapper", content: "f-panzoom__content", viewport: "f-panzoom__viewport" }, clickAction: we.ToggleFull, dblClickAction: !1, gestures: {}, height: "auto", l10n: ba, maxScale: 4, minScale: 1, mouseMoveFactor: 1, panMode: "drag", protected: !1, singleClickAction: !1, spinnerTpl: '<div class="f-spinner"></div>', wheelAction: we.Zoom, width: "auto" };
|
|
7110
7110
|
let n1, g0 = 0, v0 = 0, a1 = 0;
|
|
7111
7111
|
const na = (e, t = {}, n = {}) => {
|
|
7112
|
-
let a, o, s, i, l,
|
|
7112
|
+
let a, o, s, i, l, f, u, c, m = 0, d = Object.assign(Object.assign({}, ta), t), g = {}, h = Object.assign({}, Ot), p = Object.assign({}, Ot);
|
|
7113
7113
|
const x = [];
|
|
7114
7114
|
function b(_) {
|
|
7115
7115
|
let I = d[_];
|
|
@@ -7208,12 +7208,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7208
7208
|
if (A(), zt(o) && (!o.complete || !o.naturalWidth)) return m = 2, a == null || a.classList.add("has-error"), void L("error");
|
|
7209
7209
|
L("loaded");
|
|
7210
7210
|
const { width: _, height: I } = P();
|
|
7211
|
-
zt(o) && (o.setAttribute("width", _ + ""), o.setAttribute("height", I + "")), a && (xt(a, "has-error"), zt(o) && (a.setAttribute("width", _ + ""), a.setAttribute("height", I + ""), a.style.aspectRatio = `${_ / I || ""}`)),
|
|
7211
|
+
zt(o) && (o.setAttribute("width", _ + ""), o.setAttribute("height", I + "")), a && (xt(a, "has-error"), zt(o) && (a.setAttribute("width", _ + ""), a.setAttribute("height", I + ""), a.style.aspectRatio = `${_ / I || ""}`)), f = tn().on("start", (Z, C) => {
|
|
7212
7212
|
C.angle !== void 0 && (C.angle = 90 * Math.round(C.angle / 90)), C.flipX !== void 0 && (C.flipX = C.flipX > 0 ? 1 : -1), C.flipY !== void 0 && (C.flipY = C.flipY > 0 ? 1 : -1), p = Object.assign(Object.assign({}, Ot), C), _e(), L("animationStart");
|
|
7213
7213
|
}).on("pause", (Z) => {
|
|
7214
7214
|
p = Object.assign(Object.assign({}, Ot), Z);
|
|
7215
7215
|
}).on("step", (Z) => {
|
|
7216
|
-
if (!w()) return void (
|
|
7216
|
+
if (!w()) return void (f == null || f.end());
|
|
7217
7217
|
if (h = Object.assign(Object.assign({}, Ot), Z), M() || !b("bounds") || W() || p.scale > h.scale || p.scale < te()) return void ot();
|
|
7218
7218
|
const C = be(p.scale);
|
|
7219
7219
|
let $ = !1, Y = !1, ae = !1, fe = !1;
|
|
@@ -7221,17 +7221,17 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7221
7221
|
let ve = !1, ye = !1, Le = !1, Be = !1;
|
|
7222
7222
|
p.x < C.x[0] && (ve = !0), p.x > C.x[1] && (ye = !0), p.y < C.y[0] && (Be = !0), p.y > C.y[1] && (Le = !0);
|
|
7223
7223
|
let qe = !1;
|
|
7224
|
-
(Y && ye || $ && ve) && (p.x = Re(C.x[0], p.x, C.x[1]), qe = !0), (ae && Le || fe && Be) && (p.y = Re(C.y[0], p.y, C.y[1]), qe = !0), qe &&
|
|
7224
|
+
(Y && ye || $ && ve) && (p.x = Re(C.x[0], p.x, C.x[1]), qe = !0), (ae && Le || fe && Be) && (p.y = Re(C.y[0], p.y, C.y[1]), qe = !0), qe && f && f.spring({ tension: 94, friction: 17, maxSpeed: 555 * p.scale, restDelta: 0.1, restSpeed: 0.1, velocity: f.getCurrentVelocities() }).from(h).to(p).start(), ot();
|
|
7225
7225
|
}).on("end", () => {
|
|
7226
|
-
l != null && l.isPointerDown() || je(),
|
|
7226
|
+
l != null && l.isPointerDown() || je(), f != null && f.isRunning() || (_e(), L("animationEnd"));
|
|
7227
7227
|
}), function() {
|
|
7228
7228
|
const Z = b("gestures");
|
|
7229
7229
|
if (!Z || !i || !o) return;
|
|
7230
7230
|
let C = !1;
|
|
7231
7231
|
l = Tn(i, Z).on("start", ($) => {
|
|
7232
|
-
if (!b("gestures") || !
|
|
7232
|
+
if (!b("gestures") || !f || !w() || M()) return;
|
|
7233
7233
|
const Y = $.srcEvent;
|
|
7234
|
-
(h.scale > 1 || $.currentTouch.length > 1) && (Y == null || Y.stopPropagation(),
|
|
7234
|
+
(h.scale > 1 || $.currentTouch.length > 1) && (Y == null || Y.stopPropagation(), f.pause(), C = !0), $.currentTouch.length === 1 && L("touchStart");
|
|
7235
7235
|
}).on("move", ($) => {
|
|
7236
7236
|
var Y;
|
|
7237
7237
|
C && (p.scale !== 1 || $.currentTouch.length > 1) && (an($.srcEvent), (Y = $.srcEvent) === null || Y === void 0 || Y.stopPropagation());
|
|
@@ -7250,7 +7250,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7250
7250
|
}).on("pinch", ($) => {
|
|
7251
7251
|
C && ($.scale > te() ? Te(we.ZoomIn, $) : $.scale < te() ? Te(we.ZoomOut, $) : Te(we.Pan, $));
|
|
7252
7252
|
}).on("end", ($) => {
|
|
7253
|
-
C && ($.currentTouch.length ? ($.srcEvent.stopPropagation(), an($.srcEvent),
|
|
7253
|
+
C && ($.currentTouch.length ? ($.srcEvent.stopPropagation(), an($.srcEvent), f == null || f.end()) : (C = !1, _e(), je(), L("touchEnd")));
|
|
7254
7254
|
}).init();
|
|
7255
7255
|
}(), i && (i.addEventListener("wheel", D, { passive: !1 }), x.push(() => {
|
|
7256
7256
|
i == null || i.removeEventListener("wheel", D, { passive: !1 });
|
|
@@ -7368,12 +7368,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7368
7368
|
return Y *= fe, ae *= ve, _ > 1 && (Y > C && (I.x[0] = 0.5 * (C - Y), I.x[1] = 0.5 * (Y - C)), I.x[0] -= 0.5 * (Z.left - ne.left), I.x[1] -= 0.5 * (Z.left - ne.left), I.x[0] -= 0.5 * (Z.left + Z.width - ne.right), I.x[1] -= 0.5 * (Z.left + Z.width - ne.right), ae > $ && (I.y[0] = 0.5 * ($ - ae), I.y[1] = 0.5 * (ae - $)), I.y[0] -= 0.5 * (Z.top - ne.top), I.y[1] -= 0.5 * (Z.top - ne.top), I.y[0] -= 0.5 * (Z.top + Z.height - ne.bottom), I.y[1] -= 0.5 * (Z.top + Z.height - ne.bottom)), I;
|
|
7369
7369
|
}
|
|
7370
7370
|
function je() {
|
|
7371
|
-
if (!w() || !b("bounds") || !
|
|
7371
|
+
if (!w() || !b("bounds") || !f) return;
|
|
7372
7372
|
const _ = ee(), I = ie(), ne = Re(_, p.scale, I);
|
|
7373
7373
|
if (p.scale < _ - 0.01 || p.scale > I + 0.01) return void Te(we.ZoomTo, { scale: ne });
|
|
7374
|
-
if (
|
|
7374
|
+
if (f.isRunning() || W()) return;
|
|
7375
7375
|
const Z = be(ne);
|
|
7376
|
-
p.x < Z.x[0] || p.x > Z.x[1] || p.y < Z.y[0] || p.y > Z.y[1] ? (p.x = Re(Z.x[0], p.x, Z.x[1]), p.y = Re(Z.y[0], p.y, Z.y[1]),
|
|
7376
|
+
p.x < Z.x[0] || p.x > Z.x[1] || p.y < Z.y[0] || p.y > Z.y[1] ? (p.x = Re(Z.x[0], p.x, Z.x[1]), p.y = Re(Z.y[0], p.y, Z.y[1]), f.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: f.getCurrentVelocities() }), f.from(h).to(p).start()) : ot();
|
|
7377
7377
|
}
|
|
7378
7378
|
function _e(_) {
|
|
7379
7379
|
var I;
|
|
@@ -7413,10 +7413,10 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7413
7413
|
}
|
|
7414
7414
|
function Te(_, I) {
|
|
7415
7415
|
var ne;
|
|
7416
|
-
if (!(_ && e && o &&
|
|
7416
|
+
if (!(_ && e && o && f && w()) || _ === we.Swipe && Math.abs(f.getCurrentVelocities().scale) > 0.01) return;
|
|
7417
7417
|
const Z = Object.assign({}, p);
|
|
7418
7418
|
let C = Object.assign({}, p), $ = be(M() ? Z.scale : h.scale);
|
|
7419
|
-
const Y =
|
|
7419
|
+
const Y = f.getCurrentVelocities(), ae = H(), fe = (((ne = (I = I || {}).currentTouch) === null || ne === void 0 ? void 0 : ne.length) || 0) > 1, ve = I.velocityX || 0, ye = I.velocityY || 0;
|
|
7420
7420
|
let Le = I.center;
|
|
7421
7421
|
I.srcEvent && (Le = Qt(cs(I.srcEvent)));
|
|
7422
7422
|
let Be = I.deltaX || 0, qe = I.deltaY || 0;
|
|
@@ -7514,12 +7514,12 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7514
7514
|
}
|
|
7515
7515
|
if (_ === we.Swipe) {
|
|
7516
7516
|
let T = 94, z = 17, j = 500 * C.scale, B = Y;
|
|
7517
|
-
|
|
7518
|
-
} else _ === we.Pan || fe ?
|
|
7519
|
-
if (I.velocity === 0 || jn(h, C)) h = Object.assign({}, C), p = Object.assign({}, C),
|
|
7517
|
+
f.spring({ tension: T, friction: z, maxSpeed: j, restDelta: 0.1, restSpeed: 0.1, velocity: B });
|
|
7518
|
+
} else _ === we.Pan || fe ? f.spring({ tension: 900, friction: 17, restDelta: 0.01, restSpeed: 0.01, maxSpeed: 1 }) : f.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: Y });
|
|
7519
|
+
if (I.velocity === 0 || jn(h, C)) h = Object.assign({}, C), p = Object.assign({}, C), f.end(), ot(), _e();
|
|
7520
7520
|
else {
|
|
7521
7521
|
if (jn(p, C)) return;
|
|
7522
|
-
|
|
7522
|
+
f.from(h).to(C).start();
|
|
7523
7523
|
}
|
|
7524
7524
|
L("action", _);
|
|
7525
7525
|
}
|
|
@@ -7615,7 +7615,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7615
7615
|
L("destroy");
|
|
7616
7616
|
for (const _ of Object.values(g)) _ == null || _.destroy(me);
|
|
7617
7617
|
for (const _ of x) _();
|
|
7618
|
-
return a && (a.style.aspectRatio = "", a.style.maxWidth = "", a.style.maxHeight = ""), i && (i.style.width = "", i.style.height = "", i.style.transform = ""), a = void 0, o = void 0, i = void 0, h = Object.assign({}, Ot), p = Object.assign({}, Ot),
|
|
7618
|
+
return a && (a.style.aspectRatio = "", a.style.maxWidth = "", a.style.maxHeight = ""), i && (i.style.width = "", i.style.height = "", i.style.transform = ""), a = void 0, o = void 0, i = void 0, h = Object.assign({}, Ot), p = Object.assign({}, Ot), f == null || f.destroy(), f = void 0, l == null || l.destroy(), l = void 0, m = 4, me;
|
|
7619
7619
|
}, emit: L, execute: Te, getBoundaries: be, getContainer: function() {
|
|
7620
7620
|
return e;
|
|
7621
7621
|
}, getContent: function() {
|
|
@@ -7631,7 +7631,7 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7631
7631
|
}, getTransform: function(_) {
|
|
7632
7632
|
return _ === !0 ? p : h;
|
|
7633
7633
|
}, getTween: function() {
|
|
7634
|
-
return
|
|
7634
|
+
return f;
|
|
7635
7635
|
}, getViewport: function() {
|
|
7636
7636
|
return i;
|
|
7637
7637
|
}, getWrapper: function() {
|
|
@@ -7656,14 +7656,14 @@ const na = (e, t = {}, n = {}) => {
|
|
|
7656
7656
|
L("initLayout");
|
|
7657
7657
|
}
|
|
7658
7658
|
}(), function() {
|
|
7659
|
-
if (e && a && !
|
|
7659
|
+
if (e && a && !u) {
|
|
7660
7660
|
let _ = null;
|
|
7661
|
-
|
|
7661
|
+
u = new ResizeObserver(() => {
|
|
7662
7662
|
w() && (_ = _ || requestAnimationFrame(() => {
|
|
7663
7663
|
w() && (_e(), je(), L("refresh")), _ = null;
|
|
7664
7664
|
}));
|
|
7665
|
-
}),
|
|
7666
|
-
|
|
7665
|
+
}), u.observe(a), x.push(() => {
|
|
7666
|
+
u == null || u.disconnect(), u = void 0, _ && (cancelAnimationFrame(_), _ = null);
|
|
7667
7667
|
});
|
|
7668
7668
|
}
|
|
7669
7669
|
}(), function() {
|
|
@@ -7733,7 +7733,7 @@ const on = (e) => {
|
|
|
7733
7733
|
let y0, x0 = 0;
|
|
7734
7734
|
const k1 = (e, t = {}, n = {}) => {
|
|
7735
7735
|
x0++;
|
|
7736
|
-
let a, o, s, i, l,
|
|
7736
|
+
let a, o, s, i, l, f = 0, u = Object.assign({}, kn), c = Object.assign({}, kn), m = {}, d = null, g = null, h = !1, p = !1, x = !1, b = !1, w = "height", S = 0, L = !0, D = 0, O = 0, R = 0, A = 0, k = "*", F = [], H = [];
|
|
7737
7737
|
const P = /* @__PURE__ */ new Set();
|
|
7738
7738
|
let E = [], M = [], V = 0, K = 0, ee = 0;
|
|
7739
7739
|
function te(T, ...z) {
|
|
@@ -7755,18 +7755,18 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
7755
7755
|
}
|
|
7756
7756
|
function be() {
|
|
7757
7757
|
var T, z;
|
|
7758
|
-
const j = Ct({}, kn,
|
|
7759
|
-
Ct(j, kn,
|
|
7758
|
+
const j = Ct({}, kn, u);
|
|
7759
|
+
Ct(j, kn, u);
|
|
7760
7760
|
let B = "";
|
|
7761
|
-
const N =
|
|
7761
|
+
const N = u.breakpoints || {};
|
|
7762
7762
|
if (N) for (const [q, J] of Object.entries(N)) window.matchMedia(q).matches && (B += q, Ct(j, J));
|
|
7763
7763
|
if (l === void 0 || B !== l) {
|
|
7764
|
-
if (l = B,
|
|
7764
|
+
if (l = B, f !== 0) {
|
|
7765
7765
|
let q = (z = (T = M[D]) === null || T === void 0 ? void 0 : T.slides[0]) === null || z === void 0 ? void 0 : z.index;
|
|
7766
7766
|
q === void 0 && (q = c.initialSlide), j.initialSlide = q, j.slides = [];
|
|
7767
7767
|
for (const J of F) J.isVirtual && j.slides.push(J);
|
|
7768
7768
|
}
|
|
7769
|
-
Le(), c = j, te("enabled") !== !1 && (
|
|
7769
|
+
Le(), c = j, te("enabled") !== !1 && (f = 0, ie("init"), function() {
|
|
7770
7770
|
for (const [q, J] of Object.entries(Object.assign(Object.assign({}, n), c.plugins || {}))) if (q && !m[q] && J instanceof Function) {
|
|
7771
7771
|
const de = J();
|
|
7772
7772
|
de.init(Ee, k1), m[q] = de;
|
|
@@ -7795,7 +7795,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
7795
7795
|
(de == null ? void 0 : de.parentElement) === g && ($e(de, c.classes.slide), $e(de, J.class), ae(J), ie("attachSlideEl", J));
|
|
7796
7796
|
}
|
|
7797
7797
|
ie("initSlides");
|
|
7798
|
-
}(), _(),
|
|
7798
|
+
}(), _(), f = 1, $e(d, (te("classes") || {}).isEnabled || ""), ye(), gt(), o = tn().on("start", () => {
|
|
7799
7799
|
a && a.isPointerDown() || (ot(), ye());
|
|
7800
7800
|
}).on("step", (q) => {
|
|
7801
7801
|
const J = S;
|
|
@@ -7811,7 +7811,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
7811
7811
|
s = new ResizeObserver(() => {
|
|
7812
7812
|
J || (J = requestAnimationFrame(() => {
|
|
7813
7813
|
(function() {
|
|
7814
|
-
if (
|
|
7814
|
+
if (f !== 1 || !g) return;
|
|
7815
7815
|
const de = M.length, ge = g.getBoundingClientRect(), he = ge.height, Ce = ge.width;
|
|
7816
7816
|
de > 1 && (b && Math.abs(he - V) < 0.5 || !b && Math.abs(Ce - K) < 0.5) || (_(), _e(), V = he, K = Ce, b && !he || !b && !Ce || d && g && (de === M.length && (a != null && a.isPointerDown()) || (te("dragFree") && (p || S > R && S < A) ? (ot(), ye()) : fe(D, { transition: !1 }))));
|
|
7817
7817
|
})(), J = null;
|
|
@@ -8056,7 +8056,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8056
8056
|
Vt && Math.abs(Dt.pos - Vt.pos) < 0.1 ? (Vt.dim += Dt.dim, Vt.slides = [...Vt.slides, ...Dt.slides]) : (Vt = Dt, Dt.index = Lt.length, Lt.push(Dt));
|
|
8057
8057
|
}
|
|
8058
8058
|
M = Lt, D = Re(0, D, M.length - 1);
|
|
8059
|
-
})(), R = ((j = M[0]) === null || j === void 0 ? void 0 : j.pos) || 0, A = ((B = M[M.length - 1]) === null || B === void 0 ? void 0 : B.pos) || 0,
|
|
8059
|
+
})(), R = ((j = M[0]) === null || j === void 0 ? void 0 : j.pos) || 0, A = ((B = M[M.length - 1]) === null || B === void 0 ? void 0 : B.pos) || 0, f === 0 ? function() {
|
|
8060
8060
|
var ge;
|
|
8061
8061
|
i = void 0, D = te("initialPage");
|
|
8062
8062
|
const he = te("initialSlide") || void 0;
|
|
@@ -8220,7 +8220,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8220
8220
|
const N = D, q = Ye(), J = o != null && o.isRunning() ? o.getEndValues().pos : S, de = q && Math.floor((J - (((j = M[0]) === null || j === void 0 ? void 0 : j.pos) || 0)) / q) || 0;
|
|
8221
8221
|
return W(T, z), Te(k), _(), o && q && (N === D && (B -= de * q), B === O ? S = O : o.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: B }).to({ pos: O }).start()), ye(), Ee;
|
|
8222
8222
|
}, canGoPrev: Be, canGoNext: qe, destroy: function() {
|
|
8223
|
-
return ie("destroy"), window.removeEventListener("resize", be), Le(), pe.clear(), d = null, M = [], F = [], c = Object.assign({}, kn), m = {}, H = [], l = void 0, k = "*",
|
|
8223
|
+
return ie("destroy"), window.removeEventListener("resize", be), Le(), pe.clear(), d = null, M = [], F = [], c = Object.assign({}, kn), m = {}, H = [], l = void 0, k = "*", f = 2, Ee;
|
|
8224
8224
|
}, emit: ie, filter: function(T = "*") {
|
|
8225
8225
|
return Te(T), _(), S = Re(R, S, A), ye(), ie("filter", T), Ee;
|
|
8226
8226
|
}, getContainer: function() {
|
|
@@ -8276,7 +8276,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8276
8276
|
}, getPosition: ve, getSlides: function() {
|
|
8277
8277
|
return F;
|
|
8278
8278
|
}, getState: function() {
|
|
8279
|
-
return
|
|
8279
|
+
return f;
|
|
8280
8280
|
}, getTotalSlideDim: Ye, getTween: function() {
|
|
8281
8281
|
return o;
|
|
8282
8282
|
}, getViewport: function() {
|
|
@@ -8287,7 +8287,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8287
8287
|
return i !== void 0;
|
|
8288
8288
|
}, hideError: Y, hideLoading: $, init: function() {
|
|
8289
8289
|
if (!e || !wn(e)) throw new Error("No Element found");
|
|
8290
|
-
return
|
|
8290
|
+
return f !== 0 && (Le(), f = 0), d = e, u = t, window.removeEventListener("resize", be), u.breakpoints && window.addEventListener("resize", be), be(), Ee;
|
|
8291
8291
|
}, isInfinite: function() {
|
|
8292
8292
|
return p;
|
|
8293
8293
|
}, isInTransition: function() {
|
|
@@ -8311,7 +8311,7 @@ const k1 = (e, t = {}, n = {}) => {
|
|
|
8311
8311
|
}, prev: function(T = {}) {
|
|
8312
8312
|
return fe(D - 1, T), Ee;
|
|
8313
8313
|
}, reInit: function(T = {}, z = {}) {
|
|
8314
|
-
return Le(),
|
|
8314
|
+
return Le(), f = 0, l = void 0, k = "*", t = T, u = T, n = z, be(), Ee;
|
|
8315
8315
|
}, remove: function(T) {
|
|
8316
8316
|
T === void 0 && (T = F.length - 1);
|
|
8317
8317
|
const z = F[T];
|
|
@@ -8342,8 +8342,8 @@ const b0 = (e = !0, t = "--f-scrollbar-compensate", n = "--f-body-margin", a = "
|
|
|
8342
8342
|
if (s.classList.contains(a)) return;
|
|
8343
8343
|
let l = window.innerWidth - i.getBoundingClientRect().width;
|
|
8344
8344
|
l < 0 && (l = 0), i.style.setProperty(t, `${l}px`);
|
|
8345
|
-
const
|
|
8346
|
-
|
|
8345
|
+
const f = parseFloat(window.getComputedStyle(s).marginRight);
|
|
8346
|
+
f && s.style.setProperty(n, `${f}px`), s.classList.add(a);
|
|
8347
8347
|
} else s.classList.remove(a), s.style.setProperty(n, ""), o.documentElement.style.setProperty(t, "");
|
|
8348
8348
|
};
|
|
8349
8349
|
/*! License details at fancyapps.com/license */
|
|
@@ -8369,7 +8369,7 @@ const k0 = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
8369
8369
|
e && e.getOptions().Zoomable !== !1 && (e.on("addSlide", s), e.on("removeSlide", i), e.on("attachSlideEl", l), e.on("click", o), e.on("change", a), e.on("ready", a));
|
|
8370
8370
|
}
|
|
8371
8371
|
function a() {
|
|
8372
|
-
|
|
8372
|
+
f();
|
|
8373
8373
|
const c = (e == null ? void 0 : e.getVisibleSlides()) || [];
|
|
8374
8374
|
if (c.length > 1 || (e == null ? void 0 : e.getOption("transition")) === "slide") for (const m of c) {
|
|
8375
8375
|
const d = m.panzoomRef;
|
|
@@ -8378,7 +8378,7 @@ const k0 = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
8378
8378
|
}
|
|
8379
8379
|
function o(c, m) {
|
|
8380
8380
|
const d = m.target;
|
|
8381
|
-
d && !m.defaultPrevented && d.dataset.panzoomAction &&
|
|
8381
|
+
d && !m.defaultPrevented && d.dataset.panzoomAction && u(d.dataset.panzoomAction);
|
|
8382
8382
|
}
|
|
8383
8383
|
function s(c, m) {
|
|
8384
8384
|
const d = m.el;
|
|
@@ -8394,7 +8394,7 @@ const k0 = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
8394
8394
|
b.setAttribute("alt", h + "");
|
|
8395
8395
|
const w = m.width && m.width !== "auto" ? parseFloat(m.width + "") : "auto", S = m.height && m.height !== "auto" ? parseFloat(m.height + "") : "auto", L = na(d, Object.assign({ width: w, height: S, classes: { container: "f-zoomable" }, event: () => e == null ? void 0 : e.getLastMouseMove(), spinnerTpl: () => (e == null ? void 0 : e.getOption("spinnerTpl")) || "" }, t("Panzoom")));
|
|
8396
8396
|
L.on("*", (D, O, ...R) => {
|
|
8397
|
-
e && (O === "loading" && (m.state = 0), O === "loaded" && (m.state = 1), O === "error" && (m.state = 2, e == null || e.showError(m, "{{IMAGE_ERROR}}")), e.emit(`panzoom:${O}`, m, ...R), O === "ready" && e.emit("contentReady", m), m.index === (e == null ? void 0 : e.getPageIndex()) &&
|
|
8397
|
+
e && (O === "loading" && (m.state = 0), O === "loaded" && (m.state = 1), O === "error" && (m.state = 2, e == null || e.showError(m, "{{IMAGE_ERROR}}")), e.emit(`panzoom:${O}`, m, ...R), O === "ready" && e.emit("contentReady", m), m.index === (e == null ? void 0 : e.getPageIndex()) && f());
|
|
8398
8398
|
}), m.panzoomRef = L;
|
|
8399
8399
|
}
|
|
8400
8400
|
function i(c, m) {
|
|
@@ -8410,13 +8410,13 @@ const k0 = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
8410
8410
|
d.execute(we.ZoomTo, Object.assign(Object.assign({}, d.getStartPosition()), { velocity: 0 }));
|
|
8411
8411
|
}
|
|
8412
8412
|
}
|
|
8413
|
-
function
|
|
8413
|
+
function f() {
|
|
8414
8414
|
var c, m;
|
|
8415
8415
|
const d = (e == null ? void 0 : e.getContainer()) || void 0, g = (m = (c = e == null ? void 0 : e.getPage()) === null || c === void 0 ? void 0 : c.slides[0]) === null || m === void 0 ? void 0 : m.panzoomRef;
|
|
8416
8416
|
if (d) if (g) g.updateControls(d);
|
|
8417
8417
|
else for (const h of d.querySelectorAll("[data-panzoom-action]") || []) h.setAttribute("aria-disabled", ""), h.setAttribute("tabindex", "-1");
|
|
8418
8418
|
}
|
|
8419
|
-
function
|
|
8419
|
+
function u(c, ...m) {
|
|
8420
8420
|
var d;
|
|
8421
8421
|
(d = e == null ? void 0 : e.getPage().slides[0].panzoomRef) === null || d === void 0 || d.execute(c, ...m);
|
|
8422
8422
|
}
|
|
@@ -8428,7 +8428,7 @@ const k0 = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
8428
8428
|
for (const c of e.getSlides()) i(0, c);
|
|
8429
8429
|
}
|
|
8430
8430
|
e = void 0;
|
|
8431
|
-
}, execute:
|
|
8431
|
+
}, execute: u };
|
|
8432
8432
|
};
|
|
8433
8433
|
/*! License details at fancyapps.com/license */
|
|
8434
8434
|
const w0 = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ds = () => {
|
|
@@ -8439,7 +8439,7 @@ const w0 = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ds = () => {
|
|
|
8439
8439
|
}
|
|
8440
8440
|
function a(g) {
|
|
8441
8441
|
var h, p, x;
|
|
8442
|
-
e && g && (t = g, e.getOptions().classes = Object.assign(Object.assign({}, e.getOptions().classes), { isSelected: "" }), e.getOptions().initialSlide = ((p = (h = t.getPage()) === null || h === void 0 ? void 0 : h.slides[0]) === null || p === void 0 ? void 0 : p.index) || 0, n().syncOnChange && e.on("change", i), n().syncOnClick && e.on("click",
|
|
8442
|
+
e && g && (t = g, e.getOptions().classes = Object.assign(Object.assign({}, e.getOptions().classes), { isSelected: "" }), e.getOptions().initialSlide = ((p = (h = t.getPage()) === null || h === void 0 ? void 0 : h.slides[0]) === null || p === void 0 ? void 0 : p.index) || 0, n().syncOnChange && e.on("change", i), n().syncOnClick && e.on("click", f), n().syncOnHover && ((x = e.getViewport()) === null || x === void 0 || x.addEventListener("mouseover", u)), function() {
|
|
8443
8443
|
!e || !t || (e.on("ready", s), e.on("refresh", c), t.on("change", l), t.on("filter", m));
|
|
8444
8444
|
}());
|
|
8445
8445
|
}
|
|
@@ -8464,7 +8464,7 @@ const w0 = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ds = () => {
|
|
|
8464
8464
|
h > -1 && e.goTo(h, t.hasNavigated() ? void 0 : { tween: !1, transition: !1 }), d();
|
|
8465
8465
|
}
|
|
8466
8466
|
}
|
|
8467
|
-
function
|
|
8467
|
+
function f(g, h) {
|
|
8468
8468
|
var p;
|
|
8469
8469
|
if (!e || !t || !((p = e.getTween()) === null || p === void 0) && p.isRunning()) return;
|
|
8470
8470
|
const x = e == null ? void 0 : e.getOptions().classes.slide;
|
|
@@ -8475,8 +8475,8 @@ const w0 = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ds = () => {
|
|
|
8475
8475
|
t.goTo(S);
|
|
8476
8476
|
}
|
|
8477
8477
|
}
|
|
8478
|
-
function
|
|
8479
|
-
e &&
|
|
8478
|
+
function u(g) {
|
|
8479
|
+
e && f(0, g);
|
|
8480
8480
|
}
|
|
8481
8481
|
function c() {
|
|
8482
8482
|
var g;
|
|
@@ -8498,7 +8498,7 @@ const w0 = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ds = () => {
|
|
|
8498
8498
|
e = g, e.on("initSlides", o);
|
|
8499
8499
|
}, destroy: function() {
|
|
8500
8500
|
var g;
|
|
8501
|
-
e == null || e.off("ready", s), e == null || e.off("refresh", c), e == null || e.off("change", i), e == null || e.off("click",
|
|
8501
|
+
e == null || e.off("ready", s), e == null || e.off("refresh", c), e == null || e.off("change", i), e == null || e.off("click", f), (g = e == null ? void 0 : e.getViewport()) === null || g === void 0 || g.removeEventListener("mouseover", u), t == null || t.off("change", l), t == null || t.off("filter", m), t = void 0, e == null || e.off("initSlides", o), e = void 0;
|
|
8502
8502
|
}, getTarget: function() {
|
|
8503
8503
|
return t;
|
|
8504
8504
|
} };
|
|
@@ -8514,24 +8514,24 @@ const C0 = { showLoading: !0, preload: 1 }, o1 = "is-lazyloading", S0 = "is-lazy
|
|
|
8514
8514
|
var s;
|
|
8515
8515
|
const i = o.el;
|
|
8516
8516
|
if (!i) return;
|
|
8517
|
-
const l = "[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",
|
|
8518
|
-
i.matches(l) &&
|
|
8519
|
-
for (const
|
|
8520
|
-
const c =
|
|
8517
|
+
const l = "[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]", f = Array.from(i.querySelectorAll(l));
|
|
8518
|
+
i.matches(l) && f.push(i);
|
|
8519
|
+
for (const u of f) {
|
|
8520
|
+
const c = u.dataset.lazySrc, m = u.dataset.lazySrcset, d = u.dataset.lazySizes, g = u.dataset.lazyBg, h = (u instanceof HTMLImageElement || u instanceof HTMLSourceElement) && (c || m), p = u instanceof HTMLElement && g;
|
|
8521
8521
|
if (!h && !p) continue;
|
|
8522
8522
|
const x = c || m || g;
|
|
8523
8523
|
if (x) {
|
|
8524
8524
|
if (h && x) {
|
|
8525
|
-
const b = (s =
|
|
8526
|
-
t().showLoading && (e == null || e.showLoading(o)),
|
|
8527
|
-
e == null || e.hideLoading(o), xt(
|
|
8528
|
-
xt(
|
|
8529
|
-
}) : (xt(
|
|
8530
|
-
}),
|
|
8531
|
-
e == null || e.hideLoading(o), xt(
|
|
8532
|
-
}),
|
|
8533
|
-
} else p && (document.body.contains(
|
|
8534
|
-
delete
|
|
8525
|
+
const b = (s = u.parentElement) === null || s === void 0 ? void 0 : s.classList.contains("f-panzoom__wrapper");
|
|
8526
|
+
t().showLoading && (e == null || e.showLoading(o)), u.addEventListener("load", () => {
|
|
8527
|
+
e == null || e.hideLoading(o), xt(u, M0), u instanceof HTMLImageElement ? u.decode().then(() => {
|
|
8528
|
+
xt(u, o1), $e(u, S0);
|
|
8529
|
+
}) : (xt(u, o1), $e(u, S0)), b || e == null || e.emit("lazyLoad:loaded", o, u, x);
|
|
8530
|
+
}), u.addEventListener("error", () => {
|
|
8531
|
+
e == null || e.hideLoading(o), xt(u, o1), $e(u, M0), b || e == null || e.emit("lazyLoad:error", o, u, x);
|
|
8532
|
+
}), u.classList.add("f-lazyload"), u.classList.add(o1), b || e == null || e.emit("lazyLoad:load", o, u, x), c && (u.src = c), m && (u.srcset = m), d && (u.sizes = d);
|
|
8533
|
+
} else p && (document.body.contains(u) || (document.createElement("img").src = g), u.style.backgroundImage = `url('${g}')`);
|
|
8534
|
+
delete u.dataset.lazySrc, delete u.dataset.lazySrcset, delete u.dataset.lazySizes, delete u.dataset.lazyBg;
|
|
8535
8535
|
}
|
|
8536
8536
|
}
|
|
8537
8537
|
}
|
|
@@ -8559,8 +8559,8 @@ const E0 = '<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">', A0
|
|
|
8559
8559
|
}
|
|
8560
8560
|
function o(l) {
|
|
8561
8561
|
if (!e) return;
|
|
8562
|
-
const
|
|
8563
|
-
return
|
|
8562
|
+
const f = `<button data-carousel-go-${l} tabindex="0" class="f-button is-arrow is-${l}" title="{{${l.toUpperCase()}}}">` + a()[`${l}Tpl`] + "</button", u = Zt(e.localize(f)) || void 0;
|
|
8563
|
+
return u && $e(u, a()[`${l}Class`]), u;
|
|
8564
8564
|
}
|
|
8565
8565
|
function s() {
|
|
8566
8566
|
var l;
|
|
@@ -8601,10 +8601,10 @@ const F0 = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
8601
8601
|
if (!i) return;
|
|
8602
8602
|
let l = n("enabled");
|
|
8603
8603
|
if (!l) return;
|
|
8604
|
-
const
|
|
8604
|
+
const f = n("absolute"), u = e.getSlides().length > 1;
|
|
8605
8605
|
let c = !1, m = !1;
|
|
8606
8606
|
for (const b of e.getSlides()) b.panzoomRef && (c = !0), (b.downloadSrc || b.type === "image" && b.src) && (m = !0);
|
|
8607
|
-
const d = ((o = e.getPlugins().Thumbs) === null || o === void 0 ? void 0 : o.isEnabled()) || !1, g =
|
|
8607
|
+
const d = ((o = e.getPlugins().Thumbs) === null || o === void 0 ? void 0 : o.isEnabled()) || !1, g = u && e.getPlugins().Autoplay || !1, h = e.getPlugins().Fullscreen && (document.fullscreenEnabled || document.webkitFullscreenEnabled);
|
|
8608
8608
|
if (l === "auto" && (l = c), !l) return;
|
|
8609
8609
|
t = i.querySelector(".f-carousel__toolbar") || void 0, t || (t = document.createElement("div"), t.classList.add("f-carousel__toolbar"));
|
|
8610
8610
|
const p = n("display"), x = Ct({}, F0, n("items"));
|
|
@@ -8614,7 +8614,7 @@ const F0 = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
8614
8614
|
for (const L of w) {
|
|
8615
8615
|
let D;
|
|
8616
8616
|
if (We(L)) {
|
|
8617
|
-
if (L === "counter" && !
|
|
8617
|
+
if (L === "counter" && !u || L === "autoplay" && !g || wa[L] && !c || L === "fullscreen" && !h || L === "thumbs" && !d || L === "download" && !m) continue;
|
|
8618
8618
|
D = x[L];
|
|
8619
8619
|
}
|
|
8620
8620
|
if (pt(L) && (D = L), D && D.tpl) {
|
|
@@ -8629,7 +8629,7 @@ const F0 = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
8629
8629
|
t.append(S);
|
|
8630
8630
|
}
|
|
8631
8631
|
if (t.childElementCount) {
|
|
8632
|
-
if (
|
|
8632
|
+
if (f && t.classList.add("is-absolute"), !t.parentElement) {
|
|
8633
8633
|
const b = n("parentEl");
|
|
8634
8634
|
b ? b.insertAdjacentElement("afterbegin", t) : (s = e.getViewport()) === null || s === void 0 || s.insertAdjacentElement("beforebegin", t);
|
|
8635
8635
|
}
|
|
@@ -8658,7 +8658,7 @@ const $0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8658
8658
|
function l() {
|
|
8659
8659
|
clearTimeout(t), t = void 0;
|
|
8660
8660
|
}
|
|
8661
|
-
function
|
|
8661
|
+
function f() {
|
|
8662
8662
|
if (!e || !n || o || a || t || !e.isSettled() || function() {
|
|
8663
8663
|
var O;
|
|
8664
8664
|
const R = ((O = e == null ? void 0 : e.getPage()) === null || O === void 0 ? void 0 : O.slides) || [];
|
|
@@ -8683,12 +8683,12 @@ const $0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8683
8683
|
e && n && !a && (e.isInfinite() || e.getPageIndex() !== e.getPages().length - 1 ? e.next() : e.goTo(0));
|
|
8684
8684
|
}, D);
|
|
8685
8685
|
}
|
|
8686
|
-
function
|
|
8686
|
+
function u() {
|
|
8687
8687
|
var D;
|
|
8688
8688
|
if (!e || e.getPages().length < 2 || e.getOptions().Autoplay === !1 || n) return;
|
|
8689
8689
|
n = !0, e.emit("autoplay:start", i("timeout")), $e(e.getContainer(), "has-autoplay"), (D = e.getTween()) === null || D === void 0 || D.on("start", b);
|
|
8690
8690
|
const O = e == null ? void 0 : e.getContainer();
|
|
8691
|
-
O && i("pauseOnHover") && matchMedia("(hover: hover)").matches && (O.addEventListener("mouseenter", w, !1), O.addEventListener("mouseleave", S, !1)), e.on("change", p), e.on("settle", x), e.on("contentReady", g), e.on("panzoom:touchStart", c), e.on("panzoom:wheel", c), e.isSettled() &&
|
|
8691
|
+
O && i("pauseOnHover") && matchMedia("(hover: hover)").matches && (O.addEventListener("mouseenter", w, !1), O.addEventListener("mouseleave", S, !1)), e.on("change", p), e.on("settle", x), e.on("contentReady", g), e.on("panzoom:touchStart", c), e.on("panzoom:wheel", c), e.isSettled() && f();
|
|
8692
8692
|
}
|
|
8693
8693
|
function c() {
|
|
8694
8694
|
var D;
|
|
@@ -8706,10 +8706,10 @@ const $0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8706
8706
|
s && (s.remove(), s = null);
|
|
8707
8707
|
}
|
|
8708
8708
|
function d() {
|
|
8709
|
-
e && e.getPages().length > 1 && i("autoStart") &&
|
|
8709
|
+
e && e.getPages().length > 1 && i("autoStart") && u();
|
|
8710
8710
|
}
|
|
8711
8711
|
function g() {
|
|
8712
|
-
|
|
8712
|
+
f();
|
|
8713
8713
|
}
|
|
8714
8714
|
function h(D, O) {
|
|
8715
8715
|
const R = O.target;
|
|
@@ -8719,7 +8719,7 @@ const $0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8719
8719
|
!e || !(e != null && e.isInfinite()) && e.getPageIndex() === e.getPages().length - 1 ? c() : (m(), l());
|
|
8720
8720
|
}
|
|
8721
8721
|
function x() {
|
|
8722
|
-
|
|
8722
|
+
f();
|
|
8723
8723
|
}
|
|
8724
8724
|
function b() {
|
|
8725
8725
|
l(), m();
|
|
@@ -8728,7 +8728,7 @@ const $0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8728
8728
|
o = !0, n && (m(), l());
|
|
8729
8729
|
}
|
|
8730
8730
|
function S() {
|
|
8731
|
-
o = !1, n && !a && (e != null && e.isSettled()) &&
|
|
8731
|
+
o = !1, n && !a && (e != null && e.isSettled()) && f();
|
|
8732
8732
|
}
|
|
8733
8733
|
const L = { init: function(D) {
|
|
8734
8734
|
e = D, e.on("ready", d), e.on("click", h);
|
|
@@ -8737,13 +8737,13 @@ const $0 = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
8737
8737
|
}, isEnabled: () => n, pause: function() {
|
|
8738
8738
|
a = !0, l();
|
|
8739
8739
|
}, resume: function() {
|
|
8740
|
-
a = !1, n && !o &&
|
|
8740
|
+
a = !1, n && !o && f();
|
|
8741
8741
|
}, start() {
|
|
8742
|
-
|
|
8742
|
+
u();
|
|
8743
8743
|
}, stop() {
|
|
8744
8744
|
c();
|
|
8745
8745
|
}, toggle() {
|
|
8746
|
-
n ? c() :
|
|
8746
|
+
n ? c() : u();
|
|
8747
8747
|
} };
|
|
8748
8748
|
return L;
|
|
8749
8749
|
};
|
|
@@ -8752,22 +8752,22 @@ const G1 = { Carousel: { Lazyload: { showLoading: !1 } }, minCount: 2, showOnSta
|
|
|
8752
8752
|
let I1;
|
|
8753
8753
|
const H5 = () => {
|
|
8754
8754
|
let e, t, n, a, o, s = 0, i = 0, l = !0;
|
|
8755
|
-
function
|
|
8755
|
+
function f(E) {
|
|
8756
8756
|
const M = e == null ? void 0 : e.getOptions().Thumbs;
|
|
8757
8757
|
let V = (pt(M) ? Object.assign(Object.assign({}, G1), M) : G1)[E];
|
|
8758
8758
|
return V && typeof V == "function" && e ? V(e) : V;
|
|
8759
8759
|
}
|
|
8760
|
-
function
|
|
8760
|
+
function u() {
|
|
8761
8761
|
if (!e || (e == null ? void 0 : e.getOptions().Thumbs) === !1) return !1;
|
|
8762
8762
|
let E = 0;
|
|
8763
8763
|
for (const M of e.getSlides()) M.thumbSrc && E++;
|
|
8764
|
-
return E >=
|
|
8764
|
+
return E >= f("minCount");
|
|
8765
8765
|
}
|
|
8766
8766
|
function c() {
|
|
8767
|
-
return
|
|
8767
|
+
return f("type") === "modern";
|
|
8768
8768
|
}
|
|
8769
8769
|
function m() {
|
|
8770
|
-
return
|
|
8770
|
+
return f("type") === "scrollable";
|
|
8771
8771
|
}
|
|
8772
8772
|
function d() {
|
|
8773
8773
|
const E = [], M = (e == null ? void 0 : e.getSlides()) || [];
|
|
@@ -8776,7 +8776,7 @@ const H5 = () => {
|
|
|
8776
8776
|
}
|
|
8777
8777
|
function g(E) {
|
|
8778
8778
|
const M = E.thumb ? E.thumb instanceof HTMLImageElement ? E.thumb.src : E.thumb : E.thumbSrc || void 0, V = E.thumbAlt === void 0 ? `Thumbnail #${E.index}` : E.thumbAlt + "";
|
|
8779
|
-
let K =
|
|
8779
|
+
let K = f("thumbTpl");
|
|
8780
8780
|
return K = cn(K, "{{alt}}", V), K = cn(K, "{{src}}", M + ""), K = cn(K, "{{index}}", `${E.index}`), K = cn(K, "{{page}}", `${E.index || 1}`), K;
|
|
8781
8781
|
}
|
|
8782
8782
|
function h(E) {
|
|
@@ -8785,18 +8785,18 @@ const H5 = () => {
|
|
|
8785
8785
|
function p(E = !1) {
|
|
8786
8786
|
var M;
|
|
8787
8787
|
const V = e == null ? void 0 : e.getContainer();
|
|
8788
|
-
if (!e || !V || n || !
|
|
8789
|
-
const K = ((M =
|
|
8788
|
+
if (!e || !V || n || !u()) return;
|
|
8789
|
+
const K = ((M = f("Carousel")) === null || M === void 0 ? void 0 : M.classes) || {};
|
|
8790
8790
|
if (K.container = K.container || "f-thumbs", !n) {
|
|
8791
8791
|
const ee = V.nextElementSibling;
|
|
8792
8792
|
ee != null && ee.classList.contains(K.container) && (n = ee);
|
|
8793
8793
|
}
|
|
8794
8794
|
if (!n) {
|
|
8795
8795
|
n = document.createElement("div");
|
|
8796
|
-
const ee =
|
|
8796
|
+
const ee = f("parentEl");
|
|
8797
8797
|
ee ? ee.insertAdjacentElement("beforeend", n) : V.insertAdjacentElement("afterend", n);
|
|
8798
8798
|
}
|
|
8799
|
-
$e(n, K.container), $e(n, "f-thumbs"), $e(n, `is-${
|
|
8799
|
+
$e(n, K.container), $e(n, "f-thumbs"), $e(n, `is-${f("type")}`), E && $e(n, "is-hidden");
|
|
8800
8800
|
}
|
|
8801
8801
|
function x() {
|
|
8802
8802
|
if (!n || !m()) return;
|
|
@@ -8828,7 +8828,7 @@ const H5 = () => {
|
|
|
8828
8828
|
const te = (se) => n && parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-" + se)) || 0;
|
|
8829
8829
|
s = te("width"), i = te("clip-width");
|
|
8830
8830
|
}(), ee = 4 * (s - i)), K && K.getTotalSlideDim() <= K.getViewportDim() - ee ? 1 / 0 : 1;
|
|
8831
|
-
} }, G1.Carousel || {},
|
|
8831
|
+
} }, G1.Carousel || {}, f("Carousel") || {});
|
|
8832
8832
|
t = I1(n, V, { Sync: ds, Lazyload: us }), t.on("ready", () => {
|
|
8833
8833
|
$e(n, "is-syncing"), e == null || e.emit("thumbs:ready"), c() && (e == null || e.on("render", D));
|
|
8834
8834
|
}), t.on("destroy", () => {
|
|
@@ -8844,11 +8844,11 @@ const H5 = () => {
|
|
|
8844
8844
|
}), $e(e.getContainer(), "has-thumbs"), P();
|
|
8845
8845
|
}
|
|
8846
8846
|
function w() {
|
|
8847
|
-
|
|
8847
|
+
u() && f("showOnStart") && (p(), x());
|
|
8848
8848
|
}
|
|
8849
8849
|
function S() {
|
|
8850
8850
|
var E;
|
|
8851
|
-
|
|
8851
|
+
u() && (b(), e == null || e.on("addSlide", R), e == null || e.on("removeSlide", A), e == null || e.on("click", k), e == null || e.on("refresh", F), (E = e == null ? void 0 : e.getGestures()) === null || E === void 0 || E.on("start", L), H(!0));
|
|
8852
8852
|
}
|
|
8853
8853
|
function L() {
|
|
8854
8854
|
var E, M;
|
|
@@ -8927,8 +8927,8 @@ const H5 = () => {
|
|
|
8927
8927
|
}, getContainer: function() {
|
|
8928
8928
|
return n;
|
|
8929
8929
|
}, getType: function() {
|
|
8930
|
-
return
|
|
8931
|
-
}, isEnabled:
|
|
8930
|
+
return f("type");
|
|
8931
|
+
}, isEnabled: u };
|
|
8932
8932
|
};
|
|
8933
8933
|
/*! License details at fancyapps.com/license */
|
|
8934
8934
|
const B0 = { iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" } }, _5 = () => {
|
|
@@ -8939,12 +8939,12 @@ const B0 = { iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" } },
|
|
|
8939
8939
|
let l = s.type;
|
|
8940
8940
|
if (!l) {
|
|
8941
8941
|
if (l || (i.charAt(0) === "#" ? l = "inline" : i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i) ? l = "image" : i.match(/\.(pdf)((\?|#).*)?$/i) ? l = "pdf" : i.match(/\.(html|php)((\?|#).*)?$/i) && (l = "iframe")), !l) {
|
|
8942
|
-
const
|
|
8943
|
-
|
|
8942
|
+
const f = i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);
|
|
8943
|
+
f && (i = `https://maps.google.${f[1]}/?ll=${(f[2] ? f[2] + "&z=" + Math.floor(parseFloat(f[3])) + (f[4] ? f[4].replace(/^\//, "&") : "") : f[4] + "").replace(/\?/, "&")}&output=${f[4] && f[4].indexOf("layer=c") > 0 ? "svembed" : "embed"}`, l = "gmap");
|
|
8944
8944
|
}
|
|
8945
8945
|
if (!l) {
|
|
8946
|
-
const
|
|
8947
|
-
|
|
8946
|
+
const f = i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);
|
|
8947
|
+
f && (i = `https://maps.google.${f[1]}/maps?q=${f[2].replace("query=", "q=").replace("api=1", "")}&output=embed`, l = "gmap");
|
|
8948
8948
|
}
|
|
8949
8949
|
s.src = i, s.type = l;
|
|
8950
8950
|
}
|
|
@@ -8954,27 +8954,27 @@ const B0 = { iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" } },
|
|
|
8954
8954
|
if (!e || !i.el || !i.src) return;
|
|
8955
8955
|
const l = document.createElement("iframe");
|
|
8956
8956
|
l.classList.add("f-iframe");
|
|
8957
|
-
for (const [
|
|
8957
|
+
for (const [u, c] of Object.entries(function() {
|
|
8958
8958
|
const m = e == null ? void 0 : e.getOptions().Html;
|
|
8959
8959
|
return pt(m) ? Object.assign(Object.assign({}, B0), m) : B0;
|
|
8960
|
-
}().iframeAttr || {})) l.setAttribute(
|
|
8960
|
+
}().iframeAttr || {})) l.setAttribute(u, c);
|
|
8961
8961
|
l.onerror = () => {
|
|
8962
8962
|
e && e.getState() === 1 && e.showError(i, "{{IFRAME_ERROR}}");
|
|
8963
8963
|
}, l.src = i.src;
|
|
8964
|
-
const
|
|
8965
|
-
if (
|
|
8966
|
-
let
|
|
8967
|
-
|
|
8964
|
+
const f = document.createElement("div");
|
|
8965
|
+
if (f.classList.add("f-html"), f.append(l), i.width) {
|
|
8966
|
+
let u = `${i.width}`;
|
|
8967
|
+
u.match(/^\d+$/) && (u += "px"), f.style.maxWidth = `${u}`;
|
|
8968
8968
|
}
|
|
8969
8969
|
if (i.height) {
|
|
8970
|
-
let
|
|
8971
|
-
|
|
8970
|
+
let u = `${i.height}`;
|
|
8971
|
+
u.match(/^\d+$/) && (u += "px"), f.style.maxHeight = `${u}`;
|
|
8972
8972
|
}
|
|
8973
8973
|
if (i.aspectRatio) {
|
|
8974
|
-
const
|
|
8975
|
-
|
|
8974
|
+
const u = i.el.getBoundingClientRect();
|
|
8975
|
+
f.style.aspectRatio = `${i.aspectRatio}`, f.style[u.width > u.height ? "width" : "height"] = "auto", f.style[u.width > u.height ? "maxWidth" : "maxHeight"] = "none";
|
|
8976
8976
|
}
|
|
8977
|
-
i.contentEl = l, i.htmlEl =
|
|
8977
|
+
i.contentEl = l, i.htmlEl = f, i.el.classList.add("has-html"), i.el.classList.add("has-iframe"), i.el.classList.add(`has-${i.type}`), i.el.prepend(f), e.emit("contentReady", i);
|
|
8978
8978
|
}(s);
|
|
8979
8979
|
}
|
|
8980
8980
|
function a(o, s) {
|
|
@@ -8990,12 +8990,12 @@ const B0 = { iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" } },
|
|
|
8990
8990
|
/*! License details at fancyapps.com/license */
|
|
8991
8991
|
const O0 = (e, t = {}) => {
|
|
8992
8992
|
const n = new URL(e), a = new URLSearchParams(n.search), o = new URLSearchParams();
|
|
8993
|
-
for (const [l,
|
|
8994
|
-
let
|
|
8993
|
+
for (const [l, f] of [...a, ...Object.entries(t)]) {
|
|
8994
|
+
let u = f + "";
|
|
8995
8995
|
if (l === "t") {
|
|
8996
|
-
let c =
|
|
8996
|
+
let c = u.match(/((\d*)m)?(\d*)s?/);
|
|
8997
8997
|
c && o.set("start", 60 * parseInt(c[2] || "0") + parseInt(c[3] || "0") + "");
|
|
8998
|
-
} else o.set(l,
|
|
8998
|
+
} else o.set(l, u);
|
|
8999
8999
|
}
|
|
9000
9000
|
let s = o + "", i = e.match(/#t=((.*)?\d+s)/);
|
|
9001
9001
|
return i && (s += `#t=${i[1]}`), s;
|
|
@@ -9077,10 +9077,10 @@ const O0 = (e, t = {}) => {
|
|
|
9077
9077
|
var h, p;
|
|
9078
9078
|
g.type !== "html5video" && g.type !== "youtube" && g.type !== "vimeo" || ((h = g.contentEl) === null || h === void 0 || h.remove(), g.contentEl = void 0, (p = g.htmlEl) === null || p === void 0 || p.remove(), g.htmlEl = void 0), g.poller && clearTimeout(g.poller);
|
|
9079
9079
|
}
|
|
9080
|
-
function
|
|
9080
|
+
function f() {
|
|
9081
9081
|
t = !1;
|
|
9082
9082
|
}
|
|
9083
|
-
function
|
|
9083
|
+
function u() {
|
|
9084
9084
|
if (t) return;
|
|
9085
9085
|
t = !0;
|
|
9086
9086
|
const d = a();
|
|
@@ -9137,9 +9137,9 @@ const O0 = (e, t = {}) => {
|
|
|
9137
9137
|
c(a());
|
|
9138
9138
|
}
|
|
9139
9139
|
return { init: function(d) {
|
|
9140
|
-
e = d, e.on("addSlide", s), e.on("attachSlideEl", i), e.on("detachSlideEl", l), e.on("ready",
|
|
9140
|
+
e = d, e.on("addSlide", s), e.on("attachSlideEl", i), e.on("detachSlideEl", l), e.on("ready", u), e.on("change", f), e.on("settle", u), e.on("refresh", m), window.addEventListener("message", o);
|
|
9141
9141
|
}, destroy: function() {
|
|
9142
|
-
e == null || e.off("addSlide", s), e == null || e.off("attachSlideEl", i), e == null || e.off("detachSlideEl", l), e == null || e.off("ready",
|
|
9142
|
+
e == null || e.off("addSlide", s), e == null || e.off("attachSlideEl", i), e == null || e.off("detachSlideEl", l), e == null || e.off("ready", u), e == null || e.off("change", f), e == null || e.off("settle", u), e == null || e.off("refresh", m), window.removeEventListener("message", o), e = void 0;
|
|
9143
9143
|
} };
|
|
9144
9144
|
};
|
|
9145
9145
|
/*! License details at fancyapps.com/license */
|
|
@@ -9162,7 +9162,7 @@ const H0 = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" cla
|
|
|
9162
9162
|
}
|
|
9163
9163
|
function o(c, m) {
|
|
9164
9164
|
const d = m.target;
|
|
9165
|
-
d && !m.defaultPrevented && d.dataset.fullscreenAction === "toggle" &&
|
|
9165
|
+
d && !m.defaultPrevented && d.dataset.fullscreenAction === "toggle" && u();
|
|
9166
9166
|
}
|
|
9167
9167
|
function s() {
|
|
9168
9168
|
return t("el") || (e == null ? void 0 : e.getContainer()) || void 0;
|
|
@@ -9178,7 +9178,7 @@ const H0 = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" cla
|
|
|
9178
9178
|
c.classList.add(_0);
|
|
9179
9179
|
}), d;
|
|
9180
9180
|
}
|
|
9181
|
-
function
|
|
9181
|
+
function f() {
|
|
9182
9182
|
const c = document;
|
|
9183
9183
|
let m;
|
|
9184
9184
|
return c.fullscreenEnabled ? m = c.fullscreenElement && c.exitFullscreen() : c.webkitFullscreenEnabled && (m = c.webkitFullscreenElement && c.webkitExitFullscreen()), m && m.then(() => {
|
|
@@ -9186,8 +9186,8 @@ const H0 = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" cla
|
|
|
9186
9186
|
(d = s()) === null || d === void 0 || d.classList.remove(_0);
|
|
9187
9187
|
}), m;
|
|
9188
9188
|
}
|
|
9189
|
-
function
|
|
9190
|
-
if (i())
|
|
9189
|
+
function u() {
|
|
9190
|
+
if (i()) f();
|
|
9191
9191
|
else {
|
|
9192
9192
|
const c = s();
|
|
9193
9193
|
c && l(c);
|
|
@@ -9197,7 +9197,7 @@ const H0 = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" cla
|
|
|
9197
9197
|
e = c, e.on("initPlugins", n), e.on("ready", a), e.on("click", o);
|
|
9198
9198
|
}, destroy: function() {
|
|
9199
9199
|
e == null || e.off("initPlugins", n), e == null || e.off("ready", a), e == null || e.off("click", o);
|
|
9200
|
-
}, exit:
|
|
9200
|
+
}, exit: f, inFullscreen: i, request: l, toggle: u };
|
|
9201
9201
|
};
|
|
9202
9202
|
/*! License details at fancyapps.com/license */
|
|
9203
9203
|
let Pt, w1 = !1, V0 = !1, Rn = !1, aa = !1;
|
|
@@ -9231,7 +9231,7 @@ const Ca = () => {
|
|
|
9231
9231
|
}, oa = () => {
|
|
9232
9232
|
let e, t = "auto", n = "";
|
|
9233
9233
|
function a() {
|
|
9234
|
-
var i, l,
|
|
9234
|
+
var i, l, f, u;
|
|
9235
9235
|
if (!e || !e.isTopMost() || e.getOptions().Hash === !1) return;
|
|
9236
9236
|
const c = e.getCarousel();
|
|
9237
9237
|
if (!c) return;
|
|
@@ -9240,7 +9240,7 @@ const Ca = () => {
|
|
|
9240
9240
|
let h = g.slug || g.fancybox || "", p = parseInt(g.index + "", 10) + 1;
|
|
9241
9241
|
if (!h) return;
|
|
9242
9242
|
let x = g.slug ? `#${g.slug}` : `#${h}-${p}`;
|
|
9243
|
-
if ((((l = (i = e.getCarousel()) === null || i === void 0 ? void 0 : i.getPages()) === null || l === void 0 ? void 0 : l.length) || 0) < 2 && (x = `#${h}`), m !== x && (n = m), history.scrollRestoration && (t = history.scrollRestoration, history.scrollRestoration = "manual"), c.on("change", o), w1) return void ((
|
|
9243
|
+
if ((((l = (i = e.getCarousel()) === null || i === void 0 ? void 0 : i.getPages()) === null || l === void 0 ? void 0 : l.length) || 0) < 2 && (x = `#${h}`), m !== x && (n = m), history.scrollRestoration && (t = history.scrollRestoration, history.scrollRestoration = "manual"), c.on("change", o), w1) return void ((f = e.getOptions().sync) === null || f === void 0 || f.goTo(((u = e.getCarousel()) === null || u === void 0 ? void 0 : u.getPageIndex()) || 0, { transition: !1 }));
|
|
9244
9244
|
const b = h !== d;
|
|
9245
9245
|
try {
|
|
9246
9246
|
window.history[b ? "pushState" : "replaceState"]({}, document.title, window.location.pathname + window.location.search + x);
|
|
@@ -9252,10 +9252,10 @@ const Ca = () => {
|
|
|
9252
9252
|
if (!e || !e.isTopMost() || e.getOptions().Hash === !1) return;
|
|
9253
9253
|
const i = e.getSlide();
|
|
9254
9254
|
if (!i) return;
|
|
9255
|
-
let l = i.slug || i.fancybox || "",
|
|
9255
|
+
let l = i.slug || i.fancybox || "", f = i.index + 1, u = i.slug ? `#${i.slug}` : `#${l}-${f}`;
|
|
9256
9256
|
Rn = !0;
|
|
9257
9257
|
try {
|
|
9258
|
-
window.history.replaceState({}, document.title, window.location.pathname + window.location.search +
|
|
9258
|
+
window.history.replaceState({}, document.title, window.location.pathname + window.location.search + u);
|
|
9259
9259
|
} catch {
|
|
9260
9260
|
}
|
|
9261
9261
|
Rn = !1;
|
|
@@ -9320,9 +9320,9 @@ const Nn = { ajax: null, backdropClick: "close", Carousel: {}, closeButton: "aut
|
|
|
9320
9320
|
</dialog>`, modal: !0, on: {}, parentEl: void 0, placeFocusBack: !0, showClass: "f-zoomInUp", startIndex: 0, sync: void 0, theme: "dark", triggerEl: void 0, triggerEvent: void 0, zoomEffect: !0 }, Ut = /* @__PURE__ */ new Map();
|
|
9321
9321
|
let N5 = 0;
|
|
9322
9322
|
const j0 = "with-fancybox", G5 = () => {
|
|
9323
|
-
let e, t, n, a, o, s, i, l = it.Init,
|
|
9323
|
+
let e, t, n, a, o, s, i, l = it.Init, f = Object.assign({}, Nn), u = -1, c = {}, m = [], d = !1, g = !0, h = 0;
|
|
9324
9324
|
function p(W, ...re) {
|
|
9325
|
-
let ke =
|
|
9325
|
+
let ke = f[W];
|
|
9326
9326
|
return ke && typeof ke == "function" ? ke(Je, ...re) : ke;
|
|
9327
9327
|
}
|
|
9328
9328
|
function x(W, re = []) {
|
|
@@ -9334,7 +9334,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9334
9334
|
const b = /* @__PURE__ */ new Map();
|
|
9335
9335
|
function w(W, ...re) {
|
|
9336
9336
|
const ke = [...b.get(W) || []];
|
|
9337
|
-
for (const [oe, Q] of Object.entries(
|
|
9337
|
+
for (const [oe, Q] of Object.entries(f.on || {})) (oe === W || oe.split(" ").indexOf(W) > -1) && ke.push(Q);
|
|
9338
9338
|
for (const oe of ke) oe && typeof oe == "function" && oe(Je, ...re);
|
|
9339
9339
|
W !== "*" && w("*", W, ...re);
|
|
9340
9340
|
}
|
|
@@ -9360,7 +9360,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9360
9360
|
const me = Q.dataset.animationName;
|
|
9361
9361
|
me && (Q.classList.remove(me), delete Q.dataset.animationName);
|
|
9362
9362
|
let _ = Q.getAttribute("id");
|
|
9363
|
-
_ = _ ? `${_}--clone` : `clone-${
|
|
9363
|
+
_ = _ ? `${_}--clone` : `clone-${u}-${oe.index}`, Q.setAttribute("id", _);
|
|
9364
9364
|
} else if (Q.parentNode) {
|
|
9365
9365
|
const me = document.createElement("div");
|
|
9366
9366
|
me.inert = !0, Q.parentNode.insertBefore(me, Q), oe.placeholderEl = me;
|
|
@@ -9548,7 +9548,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9548
9548
|
}
|
|
9549
9549
|
function pe() {
|
|
9550
9550
|
var W;
|
|
9551
|
-
return ((W = Xe.getInstance()) === null || W === void 0 ? void 0 : W.getId()) ===
|
|
9551
|
+
return ((W = Xe.getInstance()) === null || W === void 0 ? void 0 : W.getId()) === u;
|
|
9552
9552
|
}
|
|
9553
9553
|
function ie() {
|
|
9554
9554
|
var W;
|
|
@@ -9673,7 +9673,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9673
9673
|
const me = be();
|
|
9674
9674
|
w("destroy"), (re = (W = p("sync")) === null || W === void 0 ? void 0 : W.getPlugins().Autoplay) === null || re === void 0 || re.resume(), (oe = (ke = p("sync")) === null || ke === void 0 ? void 0 : ke.getPlugins().Autoscroll) === null || oe === void 0 || oe.resume(), e instanceof HTMLDialogElement && e.close(), (Q = a == null ? void 0 : a.getContainer()) === null || Q === void 0 || Q.classList.remove("is-idle"), a == null || a.destroy();
|
|
9675
9675
|
for (const _ of Object.values(c)) _ == null || _.destroy();
|
|
9676
|
-
if (c = {}, e == null || e.remove(), e = void 0, t = void 0, a = void 0, Ut.delete(
|
|
9676
|
+
if (c = {}, e == null || e.remove(), e = void 0, t = void 0, a = void 0, Ut.delete(u), !Ut.size && (b0(!1), document.documentElement.classList.remove(j0), p("placeFocusBack"))) try {
|
|
9677
9677
|
me == null || me.focus({ preventScroll: !0 });
|
|
9678
9678
|
} catch {
|
|
9679
9679
|
}
|
|
@@ -9683,9 +9683,9 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9683
9683
|
}, getContainer: function() {
|
|
9684
9684
|
return t;
|
|
9685
9685
|
}, getId: function() {
|
|
9686
|
-
return f;
|
|
9687
|
-
}, getOptions: function() {
|
|
9688
9686
|
return u;
|
|
9687
|
+
}, getOptions: function() {
|
|
9688
|
+
return f;
|
|
9689
9689
|
}, getPlugins: function() {
|
|
9690
9690
|
return c;
|
|
9691
9691
|
}, getSlide: function() {
|
|
@@ -9693,10 +9693,10 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9693
9693
|
}, getState: function() {
|
|
9694
9694
|
return l;
|
|
9695
9695
|
}, init: function(W = [], re = {}) {
|
|
9696
|
-
l !== it.Init && (Je.destroy(), l = it.Init),
|
|
9697
|
-
const ke = Ut.get(
|
|
9698
|
-
if (ke && ke.destroy(), Ut.set(
|
|
9699
|
-
for (const [oe, Q] of Object.entries(Object.assign(Object.assign({}, Xe.Plugins),
|
|
9696
|
+
l !== it.Init && (Je.destroy(), l = it.Init), f = Ct({}, Nn, re), u = p("id") || "fancybox-" + ++N5;
|
|
9697
|
+
const ke = Ut.get(u);
|
|
9698
|
+
if (ke && ke.destroy(), Ut.set(u, Je), w("init"), function() {
|
|
9699
|
+
for (const [oe, Q] of Object.entries(Object.assign(Object.assign({}, Xe.Plugins), f.plugins || {}))) if (oe && !c[oe] && Q instanceof Function) {
|
|
9700
9700
|
const me = Q();
|
|
9701
9701
|
me.init(Je), c[oe] = me;
|
|
9702
9702
|
}
|
|
@@ -9713,7 +9713,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9713
9713
|
const _ = p("mainStyle");
|
|
9714
9714
|
if (_ && pt(_)) for (const [Z, C] of Object.entries(_)) t.style.setProperty(Z, C);
|
|
9715
9715
|
const I = p("theme"), ne = I === "auto" ? window.matchMedia("(prefers-color-scheme:light)").matches : I === "light";
|
|
9716
|
-
t.setAttribute("theme", ne ? "light" : "dark"), e.setAttribute("id", `${
|
|
9716
|
+
t.setAttribute("theme", ne ? "light" : "dark"), e.setAttribute("id", `${u}`), e.addEventListener("keydown", (Z) => {
|
|
9717
9717
|
Z.key === "Escape" && jt(Z);
|
|
9718
9718
|
}), e.addEventListener("wheel", (Z) => {
|
|
9719
9719
|
const C = Z.target;
|
|
@@ -9737,7 +9737,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9737
9737
|
w(`Carousel.${me}`, Q, ..._);
|
|
9738
9738
|
}), a.on("attachSlideEl", L), a.on("detachSlideEl", D), a.on("contentReady", F), a.on("ready", A), a.on("change", R), a.on("settle", k), a.on("thumbs:ready", H), a.on("thumbs:destroy", H), a.init();
|
|
9739
9739
|
}(), e && t) {
|
|
9740
|
-
if (p("closeExisting")) for (const [oe, Q] of Ut.entries()) oe !==
|
|
9740
|
+
if (p("closeExisting")) for (const [oe, Q] of Ut.entries()) oe !== u && Q.close();
|
|
9741
9741
|
p("fadeEffect") ? (setTimeout(() => {
|
|
9742
9742
|
S();
|
|
9743
9743
|
}, 500), $e(t, "is-revealing")) : S(), t.classList.add("is-ready"), l = it.Ready, w("ready");
|
|
@@ -9759,7 +9759,7 @@ const j0 = "with-fancybox", G5 = () => {
|
|
|
9759
9759
|
function N0(e, t = {}) {
|
|
9760
9760
|
var n, a, o;
|
|
9761
9761
|
if (!(e && e instanceof Element)) return;
|
|
9762
|
-
let s, i, l,
|
|
9762
|
+
let s, i, l, f, u = {};
|
|
9763
9763
|
for (const [p, x] of Xe.openers) if (p.contains(e)) for (const [b, w] of x) {
|
|
9764
9764
|
let S;
|
|
9765
9765
|
if (b) {
|
|
@@ -9775,18 +9775,18 @@ function N0(e, t = {}) {
|
|
|
9775
9775
|
O = e.closest(L);
|
|
9776
9776
|
} catch {
|
|
9777
9777
|
}
|
|
9778
|
-
O && (i = p, l = S, s = O,
|
|
9778
|
+
O && (i = p, l = S, s = O, f = L, Ct(u, D || {}));
|
|
9779
9779
|
}
|
|
9780
9780
|
}
|
|
9781
|
-
if (!i || !
|
|
9782
|
-
const c = Ct({}, Nn, t,
|
|
9783
|
-
let m = [].slice.call((l || i).querySelectorAll(
|
|
9781
|
+
if (!i || !f || !s) return;
|
|
9782
|
+
const c = Ct({}, Nn, t, u, { triggerEl: s });
|
|
9783
|
+
let m = [].slice.call((l || i).querySelectorAll(f));
|
|
9784
9784
|
const d = s.closest(".f-carousel"), g = d == null ? void 0 : d.carousel;
|
|
9785
9785
|
if (g && (!l || !d.contains(l))) {
|
|
9786
9786
|
const p = [];
|
|
9787
9787
|
for (const x of g == null ? void 0 : g.getSlides()) {
|
|
9788
9788
|
const b = x.el;
|
|
9789
|
-
b && (b.matches(
|
|
9789
|
+
b && (b.matches(f) ? p.push(b) : p.push(...[].slice.call(b.querySelectorAll(f))));
|
|
9790
9790
|
}
|
|
9791
9791
|
p.length && (m = [...p], (n = g.getPlugins().Autoplay) === null || n === void 0 || n.pause(), (a = g.getPlugins().Autoscroll) === null || a === void 0 || a.pause(), c.sync = g);
|
|
9792
9792
|
}
|
|
@@ -9806,10 +9806,10 @@ function N0(e, t = {}) {
|
|
|
9806
9806
|
const Xe = { Plugins: { Hash: oa }, version: "6.1.3", openers: /* @__PURE__ */ new Map(), bind: function(e, t, n, a) {
|
|
9807
9807
|
if (!m1()) return;
|
|
9808
9808
|
let o = document.body, s = null, i = "[data-fancybox]", l = {};
|
|
9809
|
-
e instanceof Element && (o = e), We(e) && We(t) ? (s = e, i = t) : We(t) && We(n) ? (s = t, i = n) : We(t) ? i = t : We(e) && (i = e), typeof t == "object" && (l = t || {}), typeof n == "object" && (l = n || {}), typeof a == "object" && (l = a || {}), function(
|
|
9810
|
-
if (!(
|
|
9811
|
-
const d = Xe.openers.get(
|
|
9812
|
-
if (g.set(c, m), d.set(
|
|
9809
|
+
e instanceof Element && (o = e), We(e) && We(t) ? (s = e, i = t) : We(t) && We(n) ? (s = t, i = n) : We(t) ? i = t : We(e) && (i = e), typeof t == "object" && (l = t || {}), typeof n == "object" && (l = n || {}), typeof a == "object" && (l = a || {}), function(f, u, c, m = {}) {
|
|
9810
|
+
if (!(f && f instanceof Element && c)) return;
|
|
9811
|
+
const d = Xe.openers.get(f) || /* @__PURE__ */ new Map(), g = d.get(u) || /* @__PURE__ */ new Map();
|
|
9812
|
+
if (g.set(c, m), d.set(u, g), Xe.openers.set(f, d), d.size === 1 && f.addEventListener("click", Xe.fromEvent), Xe.openers.size === 1) for (const h of Object.values(Xe.Plugins)) {
|
|
9813
9813
|
const p = h.setup;
|
|
9814
9814
|
typeof p == "function" && p(Xe);
|
|
9815
9815
|
}
|
|
@@ -9840,7 +9840,7 @@ const Xe = { Plugins: { Hash: oa }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
9840
9840
|
t = Ct({}, Nn, t || {});
|
|
9841
9841
|
const n = [], a = (o) => o instanceof HTMLImageElement ? o : o instanceof HTMLElement ? o.querySelector("img:not([aria-hidden])") : void 0;
|
|
9842
9842
|
for (const o of e) {
|
|
9843
|
-
const s = o.dataset || {}, i = t.delegateEl && e.indexOf(o) === t.startIndex ? t.delegateEl : void 0, l = a(i) || a(o) || void 0,
|
|
9843
|
+
const s = o.dataset || {}, i = t.delegateEl && e.indexOf(o) === t.startIndex ? t.delegateEl : void 0, l = a(i) || a(o) || void 0, f = s.src || o.getAttribute("href") || o.getAttribute("currentSrc") || o.getAttribute("src") || void 0, u = s.thumb || s.thumbSrc || (l == null ? void 0 : l.getAttribute("currentSrc")) || (l == null ? void 0 : l.getAttribute("src")) || (l == null ? void 0 : l.dataset.lazySrc) || void 0, c = { src: f, alt: s.alt || (l == null ? void 0 : l.getAttribute("alt")) || void 0, thumbSrc: u, thumbEl: l, triggerEl: o, delegateEl: i };
|
|
9844
9844
|
for (const m in s) {
|
|
9845
9845
|
let d = s[m] + "";
|
|
9846
9846
|
d = d !== "false" && (d === "true" || d), c[m] = d;
|
|
@@ -9852,7 +9852,7 @@ const Xe = { Plugins: { Hash: oa }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
9852
9852
|
if (!m1()) return;
|
|
9853
9853
|
let o = document.body, s = null, i = "[data-fancybox]", l = {};
|
|
9854
9854
|
e instanceof Element && (o = e), We(e) && We(t) ? (s = e, i = t) : We(t) && We(n) ? (s = t, i = n) : We(t) ? i = t : We(e) && (i = e), typeof t == "object" && (l = t || {}), typeof n == "object" && (l = n || {}), typeof a == "object" && (l = a || {});
|
|
9855
|
-
for (const [
|
|
9855
|
+
for (const [f, u] of Xe.openers) for (const [c, m] of u) for (const [d, g] of m) if (f === o && c === s) {
|
|
9856
9856
|
const h = o.querySelector((c ? `${c} ` : "") + i);
|
|
9857
9857
|
if (h && h.matches(d)) return Xe.fromTriggerEl(h, l);
|
|
9858
9858
|
}
|
|
@@ -9877,35 +9877,35 @@ const Xe = { Plugins: { Hash: oa }, version: "6.1.3", openers: /* @__PURE__ */ n
|
|
|
9877
9877
|
}, unbind: function(e, t, n) {
|
|
9878
9878
|
if (!m1()) return;
|
|
9879
9879
|
let a = document.body, o = null, s = "[data-fancybox]";
|
|
9880
|
-
e instanceof Element && (a = e), We(e) && We(t) ? (o = e, s = t) : We(t) && We(n) ? (o = t, s = n) : We(t) ? s = t : We(e) && (s = e), function(i, l,
|
|
9881
|
-
if (!(i && i instanceof Element &&
|
|
9882
|
-
const
|
|
9883
|
-
c &&
|
|
9880
|
+
e instanceof Element && (a = e), We(e) && We(t) ? (o = e, s = t) : We(t) && We(n) ? (o = t, s = n) : We(t) ? s = t : We(e) && (s = e), function(i, l, f) {
|
|
9881
|
+
if (!(i && i instanceof Element && f)) return;
|
|
9882
|
+
const u = Xe.openers.get(i) || /* @__PURE__ */ new Map(), c = u.get(l) || /* @__PURE__ */ new Map();
|
|
9883
|
+
c && f && c.delete(f), c.size && f || u.delete(l), u.size || (Xe.openers.delete(i), i.removeEventListener("click", Xe.fromEvent));
|
|
9884
9884
|
}(a, o, s);
|
|
9885
9885
|
} };
|
|
9886
9886
|
function bt(e, t, n, a) {
|
|
9887
9887
|
return new (n || (n = Promise))(function(o, s) {
|
|
9888
|
-
function i(
|
|
9888
|
+
function i(u) {
|
|
9889
9889
|
try {
|
|
9890
|
-
|
|
9890
|
+
f(a.next(u));
|
|
9891
9891
|
} catch (c) {
|
|
9892
9892
|
s(c);
|
|
9893
9893
|
}
|
|
9894
9894
|
}
|
|
9895
|
-
function l(
|
|
9895
|
+
function l(u) {
|
|
9896
9896
|
try {
|
|
9897
|
-
|
|
9897
|
+
f(a.throw(u));
|
|
9898
9898
|
} catch (c) {
|
|
9899
9899
|
s(c);
|
|
9900
9900
|
}
|
|
9901
9901
|
}
|
|
9902
|
-
function u
|
|
9902
|
+
function f(u) {
|
|
9903
9903
|
var c;
|
|
9904
|
-
|
|
9904
|
+
u.done ? o(u.value) : (c = u.value, c instanceof n ? c : new n(function(m) {
|
|
9905
9905
|
m(c);
|
|
9906
9906
|
})).then(i, l);
|
|
9907
9907
|
}
|
|
9908
|
-
|
|
9908
|
+
f((a = a.apply(e, t || [])).next());
|
|
9909
9909
|
});
|
|
9910
9910
|
}
|
|
9911
9911
|
class Kn {
|
|
@@ -9954,10 +9954,10 @@ const s1 = { decode: function(e, t) {
|
|
|
9954
9954
|
const s = o.length;
|
|
9955
9955
|
let i = 0;
|
|
9956
9956
|
for (let l = 0; l < s; l++) {
|
|
9957
|
-
const
|
|
9958
|
-
|
|
9957
|
+
const f = Math.abs(o[l]);
|
|
9958
|
+
f > i && (i = f);
|
|
9959
9959
|
}
|
|
9960
|
-
for (const l of a) for (let
|
|
9960
|
+
for (const l of a) for (let f = 0; f < s; f++) l[f] /= i;
|
|
9961
9961
|
}
|
|
9962
9962
|
})(e);
|
|
9963
9963
|
const n = e.map((a) => a instanceof Float32Array ? a : Float32Array.from(a));
|
|
@@ -9986,17 +9986,17 @@ const W5 = { fetchBlob: function(e, t, n) {
|
|
|
9986
9986
|
bt(this, void 0, void 0, function* () {
|
|
9987
9987
|
if (!o.body || !o.headers) return;
|
|
9988
9988
|
const i = o.body.getReader(), l = Number(o.headers.get("Content-Length")) || 0;
|
|
9989
|
-
let
|
|
9990
|
-
const
|
|
9991
|
-
|
|
9992
|
-
const m = Math.round(
|
|
9989
|
+
let f = 0;
|
|
9990
|
+
const u = (c) => {
|
|
9991
|
+
f += (c == null ? void 0 : c.length) || 0;
|
|
9992
|
+
const m = Math.round(f / l * 100);
|
|
9993
9993
|
s(m);
|
|
9994
9994
|
};
|
|
9995
9995
|
try {
|
|
9996
9996
|
for (; ; ) {
|
|
9997
9997
|
const c = yield i.read();
|
|
9998
9998
|
if (c.done) break;
|
|
9999
|
-
|
|
9999
|
+
u(c.value);
|
|
10000
10000
|
}
|
|
10001
10001
|
} catch (c) {
|
|
10002
10002
|
console.warn("Progress tracking error:", c);
|
|
@@ -10163,14 +10163,14 @@ class Y5 extends Kn {
|
|
|
10163
10163
|
this.dragUnsubscribe || (this.dragUnsubscribe = function(t, n, a, o, s = 3, i = 0, l = 100) {
|
|
10164
10164
|
if (!t) return () => {
|
|
10165
10165
|
};
|
|
10166
|
-
const
|
|
10166
|
+
const f = /* @__PURE__ */ new Map(), u = matchMedia("(pointer: coarse)").matches;
|
|
10167
10167
|
let c = () => {
|
|
10168
10168
|
};
|
|
10169
10169
|
const m = (d) => {
|
|
10170
|
-
if (d.button !== i || (
|
|
10170
|
+
if (d.button !== i || (f.set(d.pointerId, d), f.size > 1)) return;
|
|
10171
10171
|
let g = d.clientX, h = d.clientY, p = !1;
|
|
10172
10172
|
const x = Date.now(), b = (O) => {
|
|
10173
|
-
if (O.defaultPrevented ||
|
|
10173
|
+
if (O.defaultPrevented || f.size > 1 || u && Date.now() - x < l) return;
|
|
10174
10174
|
const R = O.clientX, A = O.clientY, k = R - g, F = A - h;
|
|
10175
10175
|
if (p || Math.abs(k) > s || Math.abs(F) > s) {
|
|
10176
10176
|
O.preventDefault(), O.stopPropagation();
|
|
@@ -10178,17 +10178,17 @@ class Y5 extends Kn {
|
|
|
10178
10178
|
p || (a == null || a(g - P, h - E), p = !0), n(k, F, R - P, A - E), g = R, h = A;
|
|
10179
10179
|
}
|
|
10180
10180
|
}, w = (O) => {
|
|
10181
|
-
if (
|
|
10181
|
+
if (f.delete(O.pointerId), p) {
|
|
10182
10182
|
const R = O.clientX, A = O.clientY, k = t.getBoundingClientRect(), { left: F, top: H } = k;
|
|
10183
10183
|
o == null || o(R - F, A - H);
|
|
10184
10184
|
}
|
|
10185
10185
|
c();
|
|
10186
10186
|
}, S = (O) => {
|
|
10187
|
-
|
|
10187
|
+
f.delete(O.pointerId), O.relatedTarget && O.relatedTarget !== document.documentElement || w(O);
|
|
10188
10188
|
}, L = (O) => {
|
|
10189
10189
|
p && (O.stopPropagation(), O.preventDefault());
|
|
10190
10190
|
}, D = (O) => {
|
|
10191
|
-
O.defaultPrevented ||
|
|
10191
|
+
O.defaultPrevented || f.size > 1 || p && O.preventDefault();
|
|
10192
10192
|
};
|
|
10193
10193
|
document.addEventListener("pointermove", b), document.addEventListener("pointerup", w), document.addEventListener("pointerout", S), document.addEventListener("pointercancel", S), document.addEventListener("touchmove", D, { passive: !1 }), document.addEventListener("click", L, { capture: !0 }), c = () => {
|
|
10194
10194
|
document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", S), document.removeEventListener("pointercancel", S), document.removeEventListener("touchmove", D), setTimeout(() => {
|
|
@@ -10197,7 +10197,7 @@ class Y5 extends Kn {
|
|
|
10197
10197
|
};
|
|
10198
10198
|
};
|
|
10199
10199
|
return t.addEventListener("pointerdown", m), () => {
|
|
10200
|
-
c(), t.removeEventListener("pointerdown", m),
|
|
10200
|
+
c(), t.removeEventListener("pointerdown", m), f.clear();
|
|
10201
10201
|
};
|
|
10202
10202
|
}(this.wrapper, (t, n, a) => {
|
|
10203
10203
|
const o = this.wrapper.getBoundingClientRect().width;
|
|
@@ -10330,15 +10330,15 @@ class Y5 extends Kn {
|
|
|
10330
10330
|
getHeight(t, n) {
|
|
10331
10331
|
var a;
|
|
10332
10332
|
const o = ((a = this.audioData) === null || a === void 0 ? void 0 : a.numberOfChannels) || 1;
|
|
10333
|
-
return function({ optionsHeight: s, optionsSplitChannels: i, parentHeight: l, numberOfChannels:
|
|
10334
|
-
if (s == null) return
|
|
10333
|
+
return function({ optionsHeight: s, optionsSplitChannels: i, parentHeight: l, numberOfChannels: f, defaultHeight: u = 128 }) {
|
|
10334
|
+
if (s == null) return u;
|
|
10335
10335
|
const c = Number(s);
|
|
10336
10336
|
if (!isNaN(c)) return c;
|
|
10337
10337
|
if (s === "auto") {
|
|
10338
|
-
const m = l ||
|
|
10339
|
-
return i != null && i.every((d) => !d.overlay) ? m /
|
|
10338
|
+
const m = l || u;
|
|
10339
|
+
return i != null && i.every((d) => !d.overlay) ? m / f : m;
|
|
10340
10340
|
}
|
|
10341
|
-
return
|
|
10341
|
+
return u;
|
|
10342
10342
|
}({ optionsHeight: t, optionsSplitChannels: n, parentHeight: this.parent.clientHeight, numberOfChannels: o, defaultHeight: 128 });
|
|
10343
10343
|
}
|
|
10344
10344
|
convertColorValues(t) {
|
|
@@ -10346,9 +10346,9 @@ class Y5 extends Kn {
|
|
|
10346
10346
|
if (!Array.isArray(n)) return n || "";
|
|
10347
10347
|
if (n.length === 0) return "#999";
|
|
10348
10348
|
if (n.length < 2) return n[0] || "";
|
|
10349
|
-
const o = document.createElement("canvas"), s = o.getContext("2d"), i = o.height * a, l = s.createLinearGradient(0, 0, 0, i || a),
|
|
10350
|
-
return n.forEach((
|
|
10351
|
-
l.addColorStop(c *
|
|
10349
|
+
const o = document.createElement("canvas"), s = o.getContext("2d"), i = o.height * a, l = s.createLinearGradient(0, 0, 0, i || a), f = 1 / (n.length - 1);
|
|
10350
|
+
return n.forEach((u, c) => {
|
|
10351
|
+
l.addColorStop(c * f, u);
|
|
10352
10352
|
}), l;
|
|
10353
10353
|
}(t, this.getPixelRatio());
|
|
10354
10354
|
}
|
|
@@ -10357,7 +10357,7 @@ class Y5 extends Kn {
|
|
|
10357
10357
|
var t;
|
|
10358
10358
|
}
|
|
10359
10359
|
renderBarWaveform(t, n, a, o) {
|
|
10360
|
-
const { width: s, height: i } = a.canvas, { halfHeight: l, barWidth:
|
|
10360
|
+
const { width: s, height: i } = a.canvas, { halfHeight: l, barWidth: f, barRadius: u, barIndexScale: c, barSpacing: m } = function({ width: g, height: h, length: p, options: x, pixelRatio: b }) {
|
|
10361
10361
|
const w = h / 2, S = x.barWidth ? x.barWidth * b : 1, L = x.barGap ? x.barGap * b : x.barWidth ? S / 2 : 0, D = S + L || 1;
|
|
10362
10362
|
return { halfHeight: w, barWidth: S, barGap: L, barRadius: x.barRadius || 0, barIndexScale: p > 0 ? g / D / p : 0, barSpacing: D };
|
|
10363
10363
|
}({ width: s, height: i, length: (t[0] || []).length, options: n, pixelRatio: this.getPixelRatio() }), d = function({ channelData: g, barIndexScale: h, barSpacing: p, barWidth: x, halfHeight: b, vScale: w, canvasHeight: S, barAlign: L }) {
|
|
@@ -10373,16 +10373,16 @@ class Y5 extends Kn {
|
|
|
10373
10373
|
M > F && (F = M), V > H && (H = V);
|
|
10374
10374
|
}
|
|
10375
10375
|
return A;
|
|
10376
|
-
}({ channelData: t, barIndexScale: c, barSpacing: m, barWidth:
|
|
10376
|
+
}({ channelData: t, barIndexScale: c, barSpacing: m, barWidth: f, halfHeight: l, vScale: o, canvasHeight: i, barAlign: n.barAlign });
|
|
10377
10377
|
a.beginPath();
|
|
10378
|
-
for (const g of d)
|
|
10378
|
+
for (const g of d) u && "roundRect" in a ? a.roundRect(g.x, g.y, g.width, g.height, u) : a.rect(g.x, g.y, g.width, g.height);
|
|
10379
10379
|
a.fill(), a.closePath();
|
|
10380
10380
|
}
|
|
10381
10381
|
renderLineWaveform(t, n, a, o) {
|
|
10382
|
-
const { width: s, height: i } = a.canvas, l = function({ channelData:
|
|
10383
|
-
const d = c / 2, g =
|
|
10384
|
-
return [g,
|
|
10385
|
-
const x = h.length, b = x ?
|
|
10382
|
+
const { width: s, height: i } = a.canvas, l = function({ channelData: f, width: u, height: c, vScale: m }) {
|
|
10383
|
+
const d = c / 2, g = f[0] || [];
|
|
10384
|
+
return [g, f[1] || g].map((h, p) => {
|
|
10385
|
+
const x = h.length, b = x ? u / x : 0, w = d, S = p === 0 ? -1 : 1, L = [{ x: 0, y: w }];
|
|
10386
10386
|
let D = 0, O = 0;
|
|
10387
10387
|
for (let R = 0; R <= x; R++) {
|
|
10388
10388
|
const A = Math.round(R * b);
|
|
@@ -10397,10 +10397,10 @@ class Y5 extends Kn {
|
|
|
10397
10397
|
});
|
|
10398
10398
|
}({ channelData: t, width: s, height: i, vScale: o });
|
|
10399
10399
|
a.beginPath();
|
|
10400
|
-
for (const
|
|
10401
|
-
a.moveTo(
|
|
10402
|
-
for (let
|
|
10403
|
-
const c = u
|
|
10400
|
+
for (const f of l) if (f.length) {
|
|
10401
|
+
a.moveTo(f[0].x, f[0].y);
|
|
10402
|
+
for (let u = 1; u < f.length; u++) {
|
|
10403
|
+
const c = f[u];
|
|
10404
10404
|
a.lineTo(c.x, c.y);
|
|
10405
10405
|
}
|
|
10406
10406
|
}
|
|
@@ -10409,57 +10409,57 @@ class Y5 extends Kn {
|
|
|
10409
10409
|
renderWaveform(t, n, a) {
|
|
10410
10410
|
if (a.fillStyle = this.convertColorValues(n.waveColor), n.renderFunction) return void n.renderFunction(t, a);
|
|
10411
10411
|
const o = function({ channelData: s, barHeight: i, normalize: l }) {
|
|
10412
|
-
var
|
|
10413
|
-
const
|
|
10414
|
-
if (!l) return
|
|
10412
|
+
var f;
|
|
10413
|
+
const u = i || 1;
|
|
10414
|
+
if (!l) return u;
|
|
10415
10415
|
const c = s[0];
|
|
10416
|
-
if (!c || c.length === 0) return
|
|
10416
|
+
if (!c || c.length === 0) return u;
|
|
10417
10417
|
let m = 0;
|
|
10418
10418
|
for (let d = 0; d < c.length; d++) {
|
|
10419
|
-
const g = (
|
|
10419
|
+
const g = (f = c[d]) !== null && f !== void 0 ? f : 0, h = Math.abs(g);
|
|
10420
10420
|
h > m && (m = h);
|
|
10421
10421
|
}
|
|
10422
|
-
return m ?
|
|
10422
|
+
return m ? u / m : u;
|
|
10423
10423
|
}({ channelData: t, barHeight: n.barHeight, normalize: n.normalize });
|
|
10424
10424
|
vs(n) ? this.renderBarWaveform(t, n, a, o) : this.renderLineWaveform(t, n, a, o);
|
|
10425
10425
|
}
|
|
10426
10426
|
renderSingleCanvas(t, n, a, o, s, i, l) {
|
|
10427
|
-
const
|
|
10428
|
-
|
|
10429
|
-
const c =
|
|
10430
|
-
if (n.renderFunction ? (c.fillStyle = this.convertColorValues(n.waveColor), n.renderFunction(t, c)) : this.renderWaveform(t, n, c),
|
|
10431
|
-
const m =
|
|
10432
|
-
d.drawImage(
|
|
10427
|
+
const f = this.getPixelRatio(), u = document.createElement("canvas");
|
|
10428
|
+
u.width = Math.round(a * f), u.height = Math.round(o * f), u.style.width = `${a}px`, u.style.height = `${o}px`, u.style.left = `${Math.round(s)}px`, i.appendChild(u);
|
|
10429
|
+
const c = u.getContext("2d");
|
|
10430
|
+
if (n.renderFunction ? (c.fillStyle = this.convertColorValues(n.waveColor), n.renderFunction(t, c)) : this.renderWaveform(t, n, c), u.width > 0 && u.height > 0) {
|
|
10431
|
+
const m = u.cloneNode(), d = m.getContext("2d");
|
|
10432
|
+
d.drawImage(u, 0, 0), d.globalCompositeOperation = "source-in", d.fillStyle = this.convertColorValues(n.progressColor), d.fillRect(0, 0, u.width, u.height), l.appendChild(m);
|
|
10433
10433
|
}
|
|
10434
10434
|
}
|
|
10435
10435
|
renderMultiCanvas(t, n, a, o, s, i) {
|
|
10436
|
-
const l = this.getPixelRatio(), { clientWidth:
|
|
10436
|
+
const l = this.getPixelRatio(), { clientWidth: f } = this.scrollContainer, u = a / l, c = function({ clientWidth: h, totalWidth: p, options: x }) {
|
|
10437
10437
|
return W0(Math.min(8e3, h, p), x);
|
|
10438
|
-
}({ clientWidth:
|
|
10438
|
+
}({ clientWidth: f, totalWidth: u, options: n });
|
|
10439
10439
|
let m = {};
|
|
10440
10440
|
if (c === 0) return;
|
|
10441
10441
|
const d = (h) => {
|
|
10442
10442
|
if (h < 0 || h >= g || m[h]) return;
|
|
10443
10443
|
m[h] = !0;
|
|
10444
10444
|
const p = h * c;
|
|
10445
|
-
let x = Math.min(
|
|
10445
|
+
let x = Math.min(u - p, c);
|
|
10446
10446
|
if (x = W0(x, n), x <= 0) return;
|
|
10447
10447
|
const b = function({ channelData: w, offset: S, clampedWidth: L, totalWidth: D }) {
|
|
10448
10448
|
return w.map((O) => {
|
|
10449
10449
|
const R = Math.floor(S / D * O.length), A = Math.floor((S + L) / D * O.length);
|
|
10450
10450
|
return O.slice(R, A);
|
|
10451
10451
|
});
|
|
10452
|
-
}({ channelData: t, offset: p, clampedWidth: x, totalWidth:
|
|
10452
|
+
}({ channelData: t, offset: p, clampedWidth: x, totalWidth: u });
|
|
10453
10453
|
this.renderSingleCanvas(b, n, x, o, p, s, i);
|
|
10454
|
-
}, g = Math.ceil(
|
|
10454
|
+
}, g = Math.ceil(u / c);
|
|
10455
10455
|
if (!this.isScrollable) {
|
|
10456
10456
|
for (let h = 0; h < g; h++) d(h);
|
|
10457
10457
|
return;
|
|
10458
10458
|
}
|
|
10459
|
-
if (q0({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth:
|
|
10459
|
+
if (q0({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth: u, numCanvases: g }).forEach((h) => d(h)), g > 1) {
|
|
10460
10460
|
const h = this.on("scroll", () => {
|
|
10461
10461
|
const { scrollLeft: p } = this.scrollContainer;
|
|
10462
|
-
Object.keys(m).length > 10 && (s.innerHTML = "", i.innerHTML = "", m = {}), q0({ scrollLeft: p, totalWidth:
|
|
10462
|
+
Object.keys(m).length > 10 && (s.innerHTML = "", i.innerHTML = "", m = {}), q0({ scrollLeft: p, totalWidth: u, numCanvases: g }).forEach((x) => d(x));
|
|
10463
10463
|
});
|
|
10464
10464
|
this.unsubscribeOnScroll.push(h);
|
|
10465
10465
|
}
|
|
@@ -10474,26 +10474,26 @@ class Y5 extends Kn {
|
|
|
10474
10474
|
}
|
|
10475
10475
|
return d;
|
|
10476
10476
|
}(n, ["overlay"]);
|
|
10477
|
-
const l = document.createElement("div"),
|
|
10478
|
-
l.style.height = `${
|
|
10479
|
-
const
|
|
10480
|
-
this.progressWrapper.appendChild(
|
|
10477
|
+
const l = document.createElement("div"), f = this.getHeight(i.height, i.splitChannels);
|
|
10478
|
+
l.style.height = `${f}px`, s && o > 0 && (l.style.marginTop = `-${f}px`), this.canvasWrapper.style.minHeight = `${f}px`, this.canvasWrapper.appendChild(l);
|
|
10479
|
+
const u = l.cloneNode();
|
|
10480
|
+
this.progressWrapper.appendChild(u), this.renderMultiCanvas(t, i, a, f, l, u);
|
|
10481
10481
|
}
|
|
10482
10482
|
render(t) {
|
|
10483
10483
|
return bt(this, void 0, void 0, function* () {
|
|
10484
10484
|
var n;
|
|
10485
|
-
this.timeouts.forEach((
|
|
10486
|
-
const a = this.getPixelRatio(), o = this.scrollContainer.clientWidth, { scrollWidth: s, isScrollable: i, useParentWidth: l, width:
|
|
10487
|
-
const h = Math.ceil(
|
|
10485
|
+
this.timeouts.forEach((u) => u()), this.timeouts = [], this.canvasWrapper.innerHTML = "", this.progressWrapper.innerHTML = "", this.options.width != null && (this.scrollContainer.style.width = typeof this.options.width == "number" ? `${this.options.width}px` : this.options.width);
|
|
10486
|
+
const a = this.getPixelRatio(), o = this.scrollContainer.clientWidth, { scrollWidth: s, isScrollable: i, useParentWidth: l, width: f } = function({ duration: u, minPxPerSec: c = 0, parentWidth: m, fillParent: d, pixelRatio: g }) {
|
|
10487
|
+
const h = Math.ceil(u * c), p = h > m, x = !!(d && !p);
|
|
10488
10488
|
return { scrollWidth: h, isScrollable: p, useParentWidth: x, width: (x ? m : h) * g };
|
|
10489
10489
|
}({ duration: t.duration, minPxPerSec: this.options.minPxPerSec || 0, parentWidth: o, fillParent: this.options.fillParent, pixelRatio: a });
|
|
10490
|
-
if (this.isScrollable = i, this.wrapper.style.width = l ? "100%" : `${s}px`, this.scrollContainer.style.overflowX = this.isScrollable ? "auto" : "hidden", this.scrollContainer.classList.toggle("noScrollbar", !!this.options.hideScrollbar), this.cursor.style.backgroundColor = `${this.options.cursorColor || this.options.progressColor}`, this.cursor.style.width = `${this.options.cursorWidth}px`, this.audioData = t, this.emit("render"), this.options.splitChannels) for (let
|
|
10491
|
-
const c = Object.assign(Object.assign({}, this.options), (n = this.options.splitChannels) === null || n === void 0 ? void 0 : n[
|
|
10492
|
-
this.renderChannel([t.getChannelData(
|
|
10490
|
+
if (this.isScrollable = i, this.wrapper.style.width = l ? "100%" : `${s}px`, this.scrollContainer.style.overflowX = this.isScrollable ? "auto" : "hidden", this.scrollContainer.classList.toggle("noScrollbar", !!this.options.hideScrollbar), this.cursor.style.backgroundColor = `${this.options.cursorColor || this.options.progressColor}`, this.cursor.style.width = `${this.options.cursorWidth}px`, this.audioData = t, this.emit("render"), this.options.splitChannels) for (let u = 0; u < t.numberOfChannels; u++) {
|
|
10491
|
+
const c = Object.assign(Object.assign({}, this.options), (n = this.options.splitChannels) === null || n === void 0 ? void 0 : n[u]);
|
|
10492
|
+
this.renderChannel([t.getChannelData(u)], c, f, u);
|
|
10493
10493
|
}
|
|
10494
10494
|
else {
|
|
10495
|
-
const
|
|
10496
|
-
t.numberOfChannels > 1 &&
|
|
10495
|
+
const u = [t.getChannelData(0)];
|
|
10496
|
+
t.numberOfChannels > 1 && u.push(t.getChannelData(1)), this.renderChannel(u, this.options, f, 0);
|
|
10497
10497
|
}
|
|
10498
10498
|
Promise.resolve().then(() => this.emit("rendered"));
|
|
10499
10499
|
});
|
|
@@ -10513,12 +10513,12 @@ class Y5 extends Kn {
|
|
|
10513
10513
|
this.options.minPxPerSec = t, this.reRender();
|
|
10514
10514
|
}
|
|
10515
10515
|
scrollIntoView(t, n = !1) {
|
|
10516
|
-
const { scrollLeft: a, scrollWidth: o, clientWidth: s } = this.scrollContainer, i = t * o, l = a,
|
|
10516
|
+
const { scrollLeft: a, scrollWidth: o, clientWidth: s } = this.scrollContainer, i = t * o, l = a, f = a + s, u = s / 2;
|
|
10517
10517
|
if (this.isDragging)
|
|
10518
|
-
i + 30 >
|
|
10518
|
+
i + 30 > f ? this.scrollContainer.scrollLeft += 30 : i - 30 < l && (this.scrollContainer.scrollLeft -= 30);
|
|
10519
10519
|
else {
|
|
10520
|
-
(i < l || i >
|
|
10521
|
-
const c = i - a -
|
|
10520
|
+
(i < l || i > f) && (this.scrollContainer.scrollLeft = i - (this.options.autoCenter ? u : 0));
|
|
10521
|
+
const c = i - a - u;
|
|
10522
10522
|
n && this.options.autoCenter && c > 0 && (this.scrollContainer.scrollLeft += c);
|
|
10523
10523
|
}
|
|
10524
10524
|
{
|
|
@@ -10540,8 +10540,8 @@ class Y5 extends Kn {
|
|
|
10540
10540
|
return Promise.resolve(s);
|
|
10541
10541
|
}
|
|
10542
10542
|
return Promise.all(Array.from(o).map((s) => new Promise((i, l) => {
|
|
10543
|
-
s.toBlob((
|
|
10544
|
-
|
|
10543
|
+
s.toBlob((f) => {
|
|
10544
|
+
f ? i(f) : l(new Error("Could not export image"));
|
|
10545
10545
|
}, t, n);
|
|
10546
10546
|
})));
|
|
10547
10547
|
});
|
|
@@ -10819,15 +10819,15 @@ class Gn extends q5 {
|
|
|
10819
10819
|
if (this.emit("load", t), !this.options.media && this.isPlaying() && this.pause(), this.decodedData = null, this.stopAtPosition = null, (s = this.abortController) === null || s === void 0 || s.abort(), this.abortController = null, !n && !a) {
|
|
10820
10820
|
const l = this.options.fetchParams || {};
|
|
10821
10821
|
window.AbortController && !l.signal && (this.abortController = new AbortController(), l.signal = this.abortController.signal);
|
|
10822
|
-
const
|
|
10823
|
-
n = yield W5.fetchBlob(t,
|
|
10824
|
-
const
|
|
10825
|
-
|
|
10822
|
+
const f = (c) => this.emit("loading", c);
|
|
10823
|
+
n = yield W5.fetchBlob(t, f, l);
|
|
10824
|
+
const u = this.options.blobMimeType;
|
|
10825
|
+
u && (n = new Blob([n], { type: u }));
|
|
10826
10826
|
}
|
|
10827
10827
|
this.setSrc(t, n);
|
|
10828
10828
|
const i = yield new Promise((l) => {
|
|
10829
|
-
const
|
|
10830
|
-
|
|
10829
|
+
const f = o || this.getDuration();
|
|
10830
|
+
f ? l(f) : this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata", () => l(this.getDuration()), { once: !0 }));
|
|
10831
10831
|
});
|
|
10832
10832
|
if (!t && !n) {
|
|
10833
10833
|
const l = this.getMediaElement();
|
|
@@ -10870,17 +10870,17 @@ class Gn extends q5 {
|
|
|
10870
10870
|
if (!this.decodedData) throw new Error("The audio has not been decoded yet");
|
|
10871
10871
|
const o = Math.min(t, this.decodedData.numberOfChannels), s = [];
|
|
10872
10872
|
for (let i = 0; i < o; i++) {
|
|
10873
|
-
const l = this.decodedData.getChannelData(i),
|
|
10873
|
+
const l = this.decodedData.getChannelData(i), f = [], u = l.length / n;
|
|
10874
10874
|
for (let c = 0; c < n; c++) {
|
|
10875
|
-
const m = l.slice(Math.floor(c *
|
|
10875
|
+
const m = l.slice(Math.floor(c * u), Math.ceil((c + 1) * u));
|
|
10876
10876
|
let d = 0;
|
|
10877
10877
|
for (let g = 0; g < m.length; g++) {
|
|
10878
10878
|
const h = m[g];
|
|
10879
10879
|
Math.abs(h) > Math.abs(d) && (d = h);
|
|
10880
10880
|
}
|
|
10881
|
-
|
|
10881
|
+
f.push(Math.round(d * a) / a);
|
|
10882
10882
|
}
|
|
10883
|
-
s.push(
|
|
10883
|
+
s.push(f);
|
|
10884
10884
|
}
|
|
10885
10885
|
return s;
|
|
10886
10886
|
}
|
|
@@ -11329,8 +11329,8 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11329
11329
|
() => ["audio/mpeg", "audio/mp4", "audio/mp3", "audio/aac"].includes(
|
|
11330
11330
|
t.mimetype
|
|
11331
11331
|
)
|
|
11332
|
-
),
|
|
11333
|
-
t.mode !== "miniature" && (
|
|
11332
|
+
), f = (h) => h ? h.startsWith("video/") : void 0, u = async (h, p, x = "") => {
|
|
11333
|
+
t.mode !== "miniature" && (f(p) ? Xe.show([
|
|
11334
11334
|
{
|
|
11335
11335
|
type: "html",
|
|
11336
11336
|
src: h,
|
|
@@ -11431,7 +11431,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11431
11431
|
])) : X("", !0)
|
|
11432
11432
|
], 2)) : i.value ? (v(), y("button", {
|
|
11433
11433
|
key: 2,
|
|
11434
|
-
onClick: p[1] || (p[1] = (x) =>
|
|
11434
|
+
onClick: p[1] || (p[1] = (x) => u(e.base64, e.mimetype)),
|
|
11435
11435
|
class: "video_message_preview_container"
|
|
11436
11436
|
}, [
|
|
11437
11437
|
r("div", gd, [
|
|
@@ -11470,7 +11470,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11470
11470
|
class: ce(["preview_img", e.mode]),
|
|
11471
11471
|
src: d(e.base64) ? e.base64 : e.base64.replace("+", "%2B")
|
|
11472
11472
|
}, null, 10, wd)
|
|
11473
|
-
])) :
|
|
11473
|
+
])) : f(e.mimetype) ? (v(), y("section", Cd, [
|
|
11474
11474
|
e.mode === "preview" ? (v(), y("video", {
|
|
11475
11475
|
key: 0,
|
|
11476
11476
|
width: "300",
|
|
@@ -11490,7 +11490,7 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11490
11490
|
}, null, -1)
|
|
11491
11491
|
])])) : e.mode === "message" ? (v(), y("button", {
|
|
11492
11492
|
key: 2,
|
|
11493
|
-
onClick: p[2] || (p[2] = (x) =>
|
|
11493
|
+
onClick: p[2] || (p[2] = (x) => u(e.base64, e.mimetype)),
|
|
11494
11494
|
class: "video_message_preview_container"
|
|
11495
11495
|
}, [
|
|
11496
11496
|
n.value ? (v(), y("section", Ad, [
|
|
@@ -11628,10 +11628,10 @@ const ys = /* @__PURE__ */ Oe(Q5, [["render", cd]]), dd = { key: 0 }, ud = ["src
|
|
|
11628
11628
|
const a = this.analyser.frequencyBinCount, o = new Uint8Array(a), s = () => {
|
|
11629
11629
|
this.analyser.getByteFrequencyData(o), t.clearRect(0, 0, e.width, e.height);
|
|
11630
11630
|
const i = e.width / a * 2.5, l = e.height / 2;
|
|
11631
|
-
let
|
|
11632
|
-
t.strokeStyle = "green", t.lineWidth = 2, t.beginPath(), t.moveTo(0, l), t.lineTo(e.width, l), t.stroke(), o.forEach((
|
|
11633
|
-
const c =
|
|
11634
|
-
t.fillStyle = `rgb(50, ${c + 100}, 50)`, t.fillRect(
|
|
11631
|
+
let f = 0;
|
|
11632
|
+
t.strokeStyle = "green", t.lineWidth = 2, t.beginPath(), t.moveTo(0, l), t.lineTo(e.width, l), t.stroke(), o.forEach((u) => {
|
|
11633
|
+
const c = u;
|
|
11634
|
+
t.fillStyle = `rgb(50, ${c + 100}, 50)`, t.fillRect(f, l - c / 2, i, c), f += i + 1;
|
|
11635
11635
|
}), this.audioStream.active && requestAnimationFrame(s);
|
|
11636
11636
|
};
|
|
11637
11637
|
s();
|
|
@@ -11682,7 +11682,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11682
11682
|
},
|
|
11683
11683
|
emits: ["audio-sent", "recording", "b64Audio"],
|
|
11684
11684
|
setup(e, { emit: t }) {
|
|
11685
|
-
const n = e, a = t, o = G(null), s = G(!1), i = G(!1), l = G(0),
|
|
11685
|
+
const n = e, a = t, o = G(null), s = G(!1), i = G(!1), l = G(0), f = G(0), u = G(null), c = G(null), m = G(null), d = G(null), g = G(0), h = G(0), p = G(null), x = G(!1), b = G(!1), w = (E) => {
|
|
11686
11686
|
g.value = E;
|
|
11687
11687
|
}, S = (E) => {
|
|
11688
11688
|
h.value = E;
|
|
@@ -11698,19 +11698,19 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11698
11698
|
console.error("Erro ao iniciar a gravação:", E);
|
|
11699
11699
|
}
|
|
11700
11700
|
}, O = (E) => {
|
|
11701
|
-
E.data.size > 0 && !x.value && (
|
|
11701
|
+
E.data.size > 0 && !x.value && (u.value = new Blob([E.data]), p.value = URL.createObjectURL(u.value), F());
|
|
11702
11702
|
}, R = () => {
|
|
11703
11703
|
let E = Date.now();
|
|
11704
11704
|
m.value = setInterval(() => {
|
|
11705
|
-
l.value =
|
|
11705
|
+
l.value = f.value + Math.floor((Date.now() - E) / 1e3);
|
|
11706
11706
|
}, 1e3);
|
|
11707
11707
|
}, A = async () => {
|
|
11708
|
-
c.value = null, o.value && s.value && (i.value ? (o.value.resume(), R()) : (o.value.pause(), clearInterval(m.value),
|
|
11708
|
+
c.value = null, o.value && s.value && (i.value ? (o.value.resume(), R()) : (o.value.pause(), clearInterval(m.value), f.value = l.value), i.value = !i.value);
|
|
11709
11709
|
}, k = async () => {
|
|
11710
11710
|
o.value && s.value && (await o.value.stop(), clearInterval(m.value), s.value = !1, i.value = !1, F()), d.value && d.value.getTracks().forEach((E) => E.stop());
|
|
11711
11711
|
}, F = async () => {
|
|
11712
|
-
if (
|
|
11713
|
-
const E = new Blob([
|
|
11712
|
+
if (u.value) {
|
|
11713
|
+
const E = new Blob([u.value], { type: "audio/mpeg" }), M = new FileReader();
|
|
11714
11714
|
M.onload = () => {
|
|
11715
11715
|
c.value = M.result;
|
|
11716
11716
|
}, M.readAsDataURL(E);
|
|
@@ -11730,9 +11730,9 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11730
11730
|
M,
|
|
11731
11731
|
n.attendant,
|
|
11732
11732
|
!0
|
|
11733
|
-
), a("recording", !1), b.value = !1, d.value = null, c.value = null,
|
|
11733
|
+
), a("recording", !1), b.value = !1, d.value = null, c.value = null, u.value = null, s.value = !1, i.value = !1, l.value = 0;
|
|
11734
11734
|
}, P = async () => {
|
|
11735
|
-
x.value = !0, s.value = !1, a("recording", !1), await o.value.stop(), d.value && (d.value.getTracks().forEach((E) => E.stop()), d.value = null),
|
|
11735
|
+
x.value = !0, s.value = !1, a("recording", !1), await o.value.stop(), d.value && (d.value.getTracks().forEach((E) => E.stop()), d.value = null), u.value = null, clearInterval(m.value), c.value = null, i.value = !1, l.value = 0;
|
|
11736
11736
|
};
|
|
11737
11737
|
return (E, M) => {
|
|
11738
11738
|
var V;
|
|
@@ -11743,7 +11743,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11743
11743
|
key: 0,
|
|
11744
11744
|
class: ce(["send-audio-button", { recording: s.value }]),
|
|
11745
11745
|
disabled: s.value || !e.canSendMessage,
|
|
11746
|
-
onClick: M[0] || (M[0] = (K) => (D(),
|
|
11746
|
+
onClick: M[0] || (M[0] = (K) => (D(), f.value = 0, x.value = !1))
|
|
11747
11747
|
}, [...M[3] || (M[3] = [
|
|
11748
11748
|
r("svg", {
|
|
11749
11749
|
class: "start-recording-icon",
|
|
@@ -11795,7 +11795,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11795
11795
|
}, null, -1)
|
|
11796
11796
|
])]))
|
|
11797
11797
|
], 8, Xd)) : X("", !0),
|
|
11798
|
-
(s.value ||
|
|
11798
|
+
(s.value || u.value) && !c.value ? (v(), y("button", {
|
|
11799
11799
|
key: 3,
|
|
11800
11800
|
class: "rounded-full p-1.5 hover:bg-gray-100 hover:text-light",
|
|
11801
11801
|
onClick: k
|
|
@@ -11828,7 +11828,7 @@ const Ud = /* @__PURE__ */ Oe(Id, [["render", qd], ["__scopeId", "data-v-49dbe3d
|
|
|
11828
11828
|
}, null, 8, ["avatar", "audio"]),
|
|
11829
11829
|
r("main", eu, [
|
|
11830
11830
|
r("div", null, le(L(h.value)), 1),
|
|
11831
|
-
s.value ||
|
|
11831
|
+
s.value || u.value ? (v(), y("div", tu, le(L(l.value)), 1)) : X("", !0)
|
|
11832
11832
|
])
|
|
11833
11833
|
])) : X("", !0),
|
|
11834
11834
|
c.value ? (v(), y("button", {
|
|
@@ -11900,13 +11900,13 @@ const lu = (e) => {
|
|
|
11900
11900
|
return e != null && e.androidBridge ? "android" : !((n = (t = e == null ? void 0 : e.webkit) === null || t === void 0 ? void 0 : t.messageHandlers) === null || n === void 0) && n.bridge ? "ios" : "web";
|
|
11901
11901
|
}, cu = (e) => {
|
|
11902
11902
|
const t = e.CapacitorCustomPlatform || null, n = e.Capacitor || {}, a = n.Plugins = n.Plugins || {}, o = () => t !== null ? t.name : lu(e), s = () => o() !== "web", i = (m) => {
|
|
11903
|
-
const d =
|
|
11903
|
+
const d = u.get(m);
|
|
11904
11904
|
return !!(d != null && d.platforms.has(o()) || l(m));
|
|
11905
11905
|
}, l = (m) => {
|
|
11906
11906
|
var d;
|
|
11907
11907
|
return (d = n.PluginHeaders) === null || d === void 0 ? void 0 : d.find((g) => g.name === m);
|
|
11908
|
-
},
|
|
11909
|
-
const g =
|
|
11908
|
+
}, f = (m) => e.console.error(m), u = /* @__PURE__ */ new Map(), c = (m, d = {}) => {
|
|
11909
|
+
const g = u.get(m);
|
|
11910
11910
|
if (g)
|
|
11911
11911
|
return console.warn(`Capacitor plugin "${m}" already registered. Cannot register plugins twice.`), g.proxy;
|
|
11912
11912
|
const h = o(), p = l(m);
|
|
@@ -11969,13 +11969,13 @@ const lu = (e) => {
|
|
|
11969
11969
|
}
|
|
11970
11970
|
}
|
|
11971
11971
|
});
|
|
11972
|
-
return a[m] = R,
|
|
11972
|
+
return a[m] = R, u.set(m, {
|
|
11973
11973
|
name: m,
|
|
11974
11974
|
proxy: R,
|
|
11975
11975
|
platforms: /* @__PURE__ */ new Set([...Object.keys(d), ...p ? [h] : []])
|
|
11976
11976
|
}), R;
|
|
11977
11977
|
};
|
|
11978
|
-
return n.convertFileSrc || (n.convertFileSrc = (m) => m), n.getPlatform = o, n.handleError =
|
|
11978
|
+
return n.convertFileSrc || (n.convertFileSrc = (m) => m), n.getPlatform = o, n.handleError = f, n.isNativePlatform = s, n.isPluginAvailable = i, n.registerPlugin = c, n.Exception = Z1, n.DEBUG = !!n.DEBUG, n.isLoggingEnabled = !!n.isLoggingEnabled, n;
|
|
11979
11979
|
}, du = (e) => e.Capacitor = cu(e), ia = /* @__PURE__ */ du(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), Ma = ia.registerPlugin;
|
|
11980
11980
|
class xs {
|
|
11981
11981
|
constructor() {
|
|
@@ -12103,10 +12103,10 @@ const fu = async (e) => new Promise((t, n) => {
|
|
|
12103
12103
|
return Object.keys(e).map((o) => o.toLocaleLowerCase()).reduce((o, s, i) => (o[s] = e[t[i]], o), {});
|
|
12104
12104
|
}, mu = (e, t = !0) => e ? Object.entries(e).reduce((a, o) => {
|
|
12105
12105
|
const [s, i] = o;
|
|
12106
|
-
let l,
|
|
12107
|
-
return Array.isArray(i) ? (
|
|
12108
|
-
l = t ? encodeURIComponent(
|
|
12109
|
-
}),
|
|
12106
|
+
let l, f;
|
|
12107
|
+
return Array.isArray(i) ? (f = "", i.forEach((u) => {
|
|
12108
|
+
l = t ? encodeURIComponent(u) : u, f += `${s}=${l}&`;
|
|
12109
|
+
}), f.slice(0, -1)) : (l = t ? encodeURIComponent(i) : i, f = `${s}=${l}`), `${a}&${f}`;
|
|
12110
12110
|
}, "").substr(1) : null, pu = (e, t = {}) => {
|
|
12111
12111
|
const n = Object.assign({ method: e.method || "GET", headers: e.headers }, t), o = hu(e.headers)["content-type"] || "";
|
|
12112
12112
|
if (typeof e.data == "string")
|
|
@@ -12119,8 +12119,8 @@ const fu = async (e) => new Promise((t, n) => {
|
|
|
12119
12119
|
} else if (o.includes("multipart/form-data") || e.data instanceof FormData) {
|
|
12120
12120
|
const s = new FormData();
|
|
12121
12121
|
if (e.data instanceof FormData)
|
|
12122
|
-
e.data.forEach((l,
|
|
12123
|
-
s.append(
|
|
12122
|
+
e.data.forEach((l, f) => {
|
|
12123
|
+
s.append(f, l);
|
|
12124
12124
|
});
|
|
12125
12125
|
else
|
|
12126
12126
|
for (const l of Object.keys(e.data))
|
|
@@ -12140,25 +12140,25 @@ class gu extends xs {
|
|
|
12140
12140
|
const n = pu(t, t.webFetchExtra), a = mu(t.params, t.shouldEncodeUrlParams), o = a ? `${t.url}?${a}` : t.url, s = await fetch(o, n), i = s.headers.get("content-type") || "";
|
|
12141
12141
|
let { responseType: l = "text" } = s.ok ? t : {};
|
|
12142
12142
|
i.includes("application/json") && (l = "json");
|
|
12143
|
-
let
|
|
12143
|
+
let f, u;
|
|
12144
12144
|
switch (l) {
|
|
12145
12145
|
case "arraybuffer":
|
|
12146
12146
|
case "blob":
|
|
12147
|
-
|
|
12147
|
+
u = await s.blob(), f = await fu(u);
|
|
12148
12148
|
break;
|
|
12149
12149
|
case "json":
|
|
12150
|
-
|
|
12150
|
+
f = await s.json();
|
|
12151
12151
|
break;
|
|
12152
12152
|
case "document":
|
|
12153
12153
|
case "text":
|
|
12154
12154
|
default:
|
|
12155
|
-
|
|
12155
|
+
f = await s.text();
|
|
12156
12156
|
}
|
|
12157
12157
|
const c = {};
|
|
12158
12158
|
return s.headers.forEach((m, d) => {
|
|
12159
12159
|
c[d] = m;
|
|
12160
12160
|
}), {
|
|
12161
|
-
data:
|
|
12161
|
+
data: f,
|
|
12162
12162
|
headers: c,
|
|
12163
12163
|
status: s.status,
|
|
12164
12164
|
url: s.url
|
|
@@ -12204,7 +12204,7 @@ Ma("CapacitorHttp", {
|
|
|
12204
12204
|
web: () => new gu()
|
|
12205
12205
|
});
|
|
12206
12206
|
const sn = Ma("VoiceRecorder", {
|
|
12207
|
-
web: () => import("./web-
|
|
12207
|
+
web: () => import("./web-hFuzStce.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
12208
12208
|
});
|
|
12209
12209
|
function J0(e, t) {
|
|
12210
12210
|
return v(), y("svg", {
|
|
@@ -12296,7 +12296,7 @@ const bu = {
|
|
|
12296
12296
|
},
|
|
12297
12297
|
emits: ["audio-sent", "recording", "paused"],
|
|
12298
12298
|
setup(e, { emit: t }) {
|
|
12299
|
-
const n = t, a = e, o = G(null), s = G(!1), i = G(0), l = G(null),
|
|
12299
|
+
const n = t, a = e, o = G(null), s = G(!1), i = G(0), l = G(null), f = G([]), u = G(null), c = G("00:00"), m = G(!1), d = G(null);
|
|
12300
12300
|
let g = 0;
|
|
12301
12301
|
Wn(() => {
|
|
12302
12302
|
R();
|
|
@@ -12304,14 +12304,14 @@ const bu = {
|
|
|
12304
12304
|
const h = () => {
|
|
12305
12305
|
let M;
|
|
12306
12306
|
try {
|
|
12307
|
-
if (
|
|
12308
|
-
const V =
|
|
12307
|
+
if (f.value.length > 0) {
|
|
12308
|
+
const V = f.value.map((te) => {
|
|
12309
12309
|
const se = atob(te), pe = new Array(se.length);
|
|
12310
12310
|
for (let be = 0; be < se.length; be++)
|
|
12311
12311
|
pe[be] = se.charCodeAt(be);
|
|
12312
12312
|
const ie = new Uint8Array(pe);
|
|
12313
|
-
return new Blob([ie], { type:
|
|
12314
|
-
}), K = new Blob(V, { type:
|
|
12313
|
+
return new Blob([ie], { type: u.value });
|
|
12314
|
+
}), K = new Blob(V, { type: u.value }), ee = URL.createObjectURL(K);
|
|
12315
12315
|
return M = new Audio(ee), M;
|
|
12316
12316
|
}
|
|
12317
12317
|
} catch (V) {
|
|
@@ -12369,11 +12369,11 @@ const bu = {
|
|
|
12369
12369
|
}
|
|
12370
12370
|
}, R = async () => {
|
|
12371
12371
|
(await sn.getCurrentStatus()).status !== "NONE" && await sn.stopRecording().then((V) => {
|
|
12372
|
-
|
|
12372
|
+
u.value = V.value.mimeType, f.value.push(V.value.recordDataBase64), d.value = h(), S();
|
|
12373
12373
|
});
|
|
12374
12374
|
}, A = async () => {
|
|
12375
12375
|
const M = await sn.getCurrentStatus();
|
|
12376
|
-
M.status === "RECORDING" ? (await R(), n("paused", !1), n("recording", !1), o.value = null,
|
|
12376
|
+
M.status === "RECORDING" ? (await R(), n("paused", !1), n("recording", !1), o.value = null, f.value = [], s.value = !1, i.value = 0, c.value = x(0)) : M.status === "NONE" && (n("recording", !1), n("paused", !1), o.value = null, s.value = !1, f.value = [], i.value = 0, c.value = x(0));
|
|
12377
12377
|
}, k = async () => {
|
|
12378
12378
|
await sn.getCurrentStatus(), d.value && (d.value.pause(), m.value = !1), A();
|
|
12379
12379
|
};
|
|
@@ -12398,7 +12398,7 @@ const bu = {
|
|
|
12398
12398
|
const E = async () => {
|
|
12399
12399
|
s.value = !0, (await sn.getCurrentStatus()).status === "RECORDING" && await R();
|
|
12400
12400
|
try {
|
|
12401
|
-
const V =
|
|
12401
|
+
const V = f.value.map(F), K = H(V), ee = P(K), te = `data:${u.value};base64,${ee}`, pe = {
|
|
12402
12402
|
type: "file",
|
|
12403
12403
|
media: {
|
|
12404
12404
|
name: "audio",
|
|
@@ -12514,7 +12514,7 @@ const bu = {
|
|
|
12514
12514
|
},
|
|
12515
12515
|
emits: ["send-files", "voltar"],
|
|
12516
12516
|
setup(e, { emit: t }) {
|
|
12517
|
-
const n = e, a = t, o = G(""), s = G(null), i = G(!1), l = G(!1),
|
|
12517
|
+
const n = e, a = t, o = G(""), s = G(null), i = G(!1), l = G(!1), f = G(!1), u = ue(() => {
|
|
12518
12518
|
var A;
|
|
12519
12519
|
return ((A = n.selectedAtendente) == null ? void 0 : A.messages) || [];
|
|
12520
12520
|
}), c = (A) => {
|
|
@@ -12540,7 +12540,7 @@ const bu = {
|
|
|
12540
12540
|
return A5(k) ? "Hoje" : L5(k) ? "Ontem" : E5(k) ? d0(k, "EEEE", { locale: Xa }) : d0(k, "dd 'de' MMMM 'de' yyyy", { locale: Xa });
|
|
12541
12541
|
}, p = (A) => {
|
|
12542
12542
|
if (A === 0) return !0;
|
|
12543
|
-
const k = new Date(
|
|
12543
|
+
const k = new Date(u.value[A].created_at), F = new Date(u.value[A - 1].created_at);
|
|
12544
12544
|
return k.toDateString() !== F.toDateString();
|
|
12545
12545
|
}, x = (A) => {
|
|
12546
12546
|
A.key === "Enter" && !A.shiftKey && (A.preventDefault(), S());
|
|
@@ -12592,10 +12592,10 @@ const bu = {
|
|
|
12592
12592
|
}), Ve(
|
|
12593
12593
|
() => {
|
|
12594
12594
|
var A;
|
|
12595
|
-
return (A =
|
|
12595
|
+
return (A = u.value) == null ? void 0 : A.length;
|
|
12596
12596
|
},
|
|
12597
12597
|
(A, k) => {
|
|
12598
|
-
|
|
12598
|
+
u.value && O() && setTimeout(() => {
|
|
12599
12599
|
s.value.scrollTo({
|
|
12600
12600
|
top: s.value.scrollHeight,
|
|
12601
12601
|
behavior: "instant"
|
|
@@ -12649,7 +12649,7 @@ const bu = {
|
|
|
12649
12649
|
ref_key: "chatArea",
|
|
12650
12650
|
ref: s
|
|
12651
12651
|
}, [
|
|
12652
|
-
!
|
|
12652
|
+
!f.value && d.value && i.value ? (v(), ze(Se(An), {
|
|
12653
12653
|
key: 0,
|
|
12654
12654
|
onInfinite: w,
|
|
12655
12655
|
distance: 30,
|
|
@@ -12687,7 +12687,7 @@ const bu = {
|
|
|
12687
12687
|
_: 1
|
|
12688
12688
|
})) : X("", !0),
|
|
12689
12689
|
r("div", null, [
|
|
12690
|
-
(v(!0), y(He, null, Ie(
|
|
12690
|
+
(v(!0), y(He, null, Ie(u.value, (H, P) => (v(), y("div", { key: P }, [
|
|
12691
12691
|
p(P) ? (v(), y("div", Pu, [
|
|
12692
12692
|
k[7] || (k[7] = r("div", { class: "date-separator-line" }, null, -1)),
|
|
12693
12693
|
r("div", Hu, le(h(H.created_at)), 1),
|
|
@@ -12699,7 +12699,7 @@ const bu = {
|
|
|
12699
12699
|
{
|
|
12700
12700
|
me: H.sender.id === e.attendant.id,
|
|
12701
12701
|
"not-me": H.sender.id !== e.attendant.id,
|
|
12702
|
-
"new-message": P ===
|
|
12702
|
+
"new-message": P === u.value.length - 1
|
|
12703
12703
|
}
|
|
12704
12704
|
])
|
|
12705
12705
|
}, [
|
|
@@ -12982,13 +12982,13 @@ function no({ slides: e, position: t, toShow: n }) {
|
|
|
12982
12982
|
if (e.length <= 0)
|
|
12983
12983
|
return a;
|
|
12984
12984
|
for (let l = s; l < i; l++) {
|
|
12985
|
-
const
|
|
12985
|
+
const u = {
|
|
12986
12986
|
index: o ? l : l + e.length,
|
|
12987
12987
|
isClone: !0,
|
|
12988
12988
|
id: void 0,
|
|
12989
12989
|
// Make sure we don't duplicate the id which would be invalid html
|
|
12990
12990
|
key: `clone-${t}-${l}`
|
|
12991
|
-
}, c = e[(l % e.length + e.length) % e.length].vnode, m = Qs(c,
|
|
12991
|
+
}, c = e[(l % e.length + e.length) % e.length].vnode, m = Qs(c, u);
|
|
12992
12992
|
m.el = null, a.push(m);
|
|
12993
12993
|
}
|
|
12994
12994
|
return a;
|
|
@@ -13008,11 +13008,11 @@ function Qu(e) {
|
|
|
13008
13008
|
const { isVertical: t, isReversed: n, dragged: a, effectiveSlideSize: o, threshold: s } = e, i = t ? a.y : a.x;
|
|
13009
13009
|
if (i === 0)
|
|
13010
13010
|
return 0;
|
|
13011
|
-
const l = i / o,
|
|
13012
|
-
if (
|
|
13011
|
+
const l = i / o, f = Math.abs(l);
|
|
13012
|
+
if (f < s)
|
|
13013
13013
|
return 0;
|
|
13014
|
-
const
|
|
13015
|
-
return n ?
|
|
13014
|
+
const u = f < 1 ? Math.sign(l) : Math.round(l);
|
|
13015
|
+
return n ? u : -u;
|
|
13016
13016
|
}
|
|
13017
13017
|
function Wt({ val: e, max: t, min: n }) {
|
|
13018
13018
|
return t < n ? e : Math.min(Math.max(e, isNaN(n) ? e : n), isNaN(t) ? e : t);
|
|
@@ -13075,8 +13075,8 @@ function la(e, t = 0) {
|
|
|
13075
13075
|
return;
|
|
13076
13076
|
n = !0;
|
|
13077
13077
|
const l = () => {
|
|
13078
|
-
o = requestAnimationFrame((
|
|
13079
|
-
|
|
13078
|
+
o = requestAnimationFrame((f) => {
|
|
13079
|
+
f - a > t ? (a = f, e(...i), n = !1) : l();
|
|
13080
13080
|
});
|
|
13081
13081
|
};
|
|
13082
13082
|
l();
|
|
@@ -13114,23 +13114,23 @@ function o6(e) {
|
|
|
13114
13114
|
return;
|
|
13115
13115
|
n.x = t ? c.touches[0].clientX : c.clientX, n.y = t ? c.touches[0].clientY : c.clientY;
|
|
13116
13116
|
const g = t ? "touchmove" : "mousemove", h = t ? "touchend" : "mouseup";
|
|
13117
|
-
document.addEventListener(g,
|
|
13118
|
-
},
|
|
13117
|
+
document.addEventListener(g, f, { passive: !1 }), document.addEventListener(h, u, { passive: !0 }), (m = e.onDragStart) === null || m === void 0 || m.call(e);
|
|
13118
|
+
}, f = la((c) => {
|
|
13119
13119
|
var m;
|
|
13120
13120
|
if (t && c.touches.length > 1)
|
|
13121
13121
|
return;
|
|
13122
13122
|
o.value = !0;
|
|
13123
13123
|
const d = t ? c.touches[0].clientX : c.clientX, g = t ? c.touches[0].clientY : c.clientY;
|
|
13124
13124
|
a.x = d - n.x, a.y = g - n.y, (m = e.onDrag) === null || m === void 0 || m.call(e, { deltaX: a.x, deltaY: a.y, isTouch: t });
|
|
13125
|
-
}),
|
|
13125
|
+
}), u = () => {
|
|
13126
13126
|
var c;
|
|
13127
|
-
|
|
13127
|
+
f.cancel();
|
|
13128
13128
|
const m = Math.abs(a.x) + Math.abs(a.y);
|
|
13129
13129
|
!t && m > 10 && window.addEventListener("click", (h) => {
|
|
13130
13130
|
h.preventDefault(), h.stopPropagation();
|
|
13131
13131
|
}, { once: !0, capture: !0 }), (c = e.onDragEnd) === null || c === void 0 || c.call(e), a.x = 0, a.y = 0, o.value = !1;
|
|
13132
13132
|
const d = t ? "touchmove" : "mousemove", g = t ? "touchend" : "mouseup";
|
|
13133
|
-
document.removeEventListener(d,
|
|
13133
|
+
document.removeEventListener(d, f), document.removeEventListener(g, u);
|
|
13134
13134
|
};
|
|
13135
13135
|
return {
|
|
13136
13136
|
dragged: a,
|
|
@@ -13154,14 +13154,14 @@ function i6(e) {
|
|
|
13154
13154
|
const { isVertical: t, isSliding: n, config: a } = e, o = ue(() => typeof t == "boolean" ? t : t.value), s = ue(() => typeof n == "boolean" ? n : n.value);
|
|
13155
13155
|
return {
|
|
13156
13156
|
handleScroll: (l) => {
|
|
13157
|
-
var
|
|
13157
|
+
var f, u;
|
|
13158
13158
|
if (l.preventDefault(), !a.mouseWheel || s.value)
|
|
13159
13159
|
return;
|
|
13160
|
-
const c = typeof a.mouseWheel == "object" && (
|
|
13160
|
+
const c = typeof a.mouseWheel == "object" && (f = a.mouseWheel.threshold) !== null && f !== void 0 ? f : to, m = Math.abs(l.deltaY) > c ? l.deltaY : 0, d = Math.abs(l.deltaX) > c ? l.deltaX : 0;
|
|
13161
13161
|
if (m === 0 && d === 0)
|
|
13162
13162
|
return;
|
|
13163
13163
|
const g = o.value ? m : d, p = (g !== 0 ? g : o.value ? d : m) > 0;
|
|
13164
|
-
(
|
|
13164
|
+
(u = e.onWheel) === null || u === void 0 || u.call(e, { deltaX: d, deltaY: m, isScrollingForward: p });
|
|
13165
13165
|
}
|
|
13166
13166
|
};
|
|
13167
13167
|
}
|
|
@@ -13308,7 +13308,7 @@ const r6 = {
|
|
|
13308
13308
|
],
|
|
13309
13309
|
setup(e, { slots: t, emit: n, expose: a }) {
|
|
13310
13310
|
var o;
|
|
13311
|
-
const s = Zu(n), i = s.getSlides(), l = ue(() => i.length),
|
|
13311
|
+
const s = Zu(n), i = s.getSlides(), l = ue(() => i.length), f = G(null), u = G(null), c = G(0), m = ue(() => Object.assign(Object.assign(Object.assign({}, tt), Ku(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, tt.i18n), e.i18n) })), d = Y1(Object.assign({}, m.value)), g = G((o = e.modelValue) !== null && o !== void 0 ? o : 0), h = G(g.value);
|
|
13312
13312
|
Ve(g, (B) => h.value = B);
|
|
13313
13313
|
const p = G(0), x = ue(() => Math.ceil((l.value - 1) / 2)), b = ue(() => l.value - 1), w = ue(() => 0);
|
|
13314
13314
|
let S = null, L = null, D = null;
|
|
@@ -13320,7 +13320,7 @@ const r6 = {
|
|
|
13320
13320
|
var B;
|
|
13321
13321
|
if (!Te.value)
|
|
13322
13322
|
return;
|
|
13323
|
-
const N = (m.value.breakpointMode === "carousel" ? (B =
|
|
13323
|
+
const N = (m.value.breakpointMode === "carousel" ? (B = f.value) === null || B === void 0 ? void 0 : B.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, q = Object.keys(e.breakpoints || {}).map((de) => Number(de)).sort((de, ge) => +ge - +de), J = {};
|
|
13324
13324
|
q.some((de) => N >= de ? (Object.assign(J, e.breakpoints[de]), J.i18n && Object.assign(J.i18n, m.value.i18n, e.breakpoints[de].i18n), !0) : !1), Object.assign(d, m.value, J), F.value || (d.itemsToShow = Wt({
|
|
13325
13325
|
val: Number(d.itemsToShow),
|
|
13326
13326
|
max: e.clamp ? l.value : 1 / 0,
|
|
@@ -13346,14 +13346,14 @@ const r6 = {
|
|
|
13346
13346
|
});
|
|
13347
13347
|
function te({ widthMultiplier: B, heightMultiplier: N }) {
|
|
13348
13348
|
var q;
|
|
13349
|
-
const J = ((q =
|
|
13349
|
+
const J = ((q = u.value) === null || q === void 0 ? void 0 : q.getBoundingClientRect()) || { width: 0, height: 0 };
|
|
13350
13350
|
ee.value = {
|
|
13351
13351
|
width: J.width * B,
|
|
13352
13352
|
height: J.height * N
|
|
13353
13353
|
};
|
|
13354
13354
|
}
|
|
13355
13355
|
function se() {
|
|
13356
|
-
if (!
|
|
13356
|
+
if (!u.value)
|
|
13357
13357
|
return;
|
|
13358
13358
|
const B = e6(M);
|
|
13359
13359
|
if (te(B), K(B), F.value)
|
|
@@ -13377,7 +13377,7 @@ const r6 = {
|
|
|
13377
13377
|
let be;
|
|
13378
13378
|
const je = (B) => {
|
|
13379
13379
|
const N = B.target;
|
|
13380
|
-
if (!(!(N != null && N.contains(
|
|
13380
|
+
if (!(!(N != null && N.contains(f.value)) || Array.isArray(ie.value) && ie.value.includes(B.animationName)) && (M.add(N), !be)) {
|
|
13381
13381
|
const q = () => {
|
|
13382
13382
|
be = requestAnimationFrame(() => {
|
|
13383
13383
|
se(), q();
|
|
@@ -13392,9 +13392,9 @@ const r6 = {
|
|
|
13392
13392
|
typeof document < "u" && D1(() => {
|
|
13393
13393
|
Te.value && ie.value !== !1 ? (document.addEventListener("animationstart", je), document.addEventListener("animationend", _e)) : (document.removeEventListener("animationstart", je), document.removeEventListener("animationend", _e));
|
|
13394
13394
|
}), lt(() => {
|
|
13395
|
-
Te.value = !0, P(), Ye(),
|
|
13395
|
+
Te.value = !0, P(), Ye(), f.value && (D = new ResizeObserver(E), D.observe(f.value)), n("init");
|
|
13396
13396
|
}), nn(() => {
|
|
13397
|
-
Te.value = !1, s.cleanup(), L && clearTimeout(L), be && cancelAnimationFrame(be), S && clearInterval(S), D && (D.disconnect(), D = null), typeof document < "u" && ct(),
|
|
13397
|
+
Te.value = !1, s.cleanup(), L && clearTimeout(L), be && cancelAnimationFrame(be), S && clearInterval(S), D && (D.disconnect(), D = null), typeof document < "u" && ct(), f.value && (f.value.removeEventListener("transitionend", se), f.value.removeEventListener("animationiteration", se));
|
|
13398
13398
|
});
|
|
13399
13399
|
const { isHover: ot, handleMouseEnter: gt, handleMouseLeave: ut } = s6(), wt = la((B) => {
|
|
13400
13400
|
if (!B.ctrlKey)
|
|
@@ -13613,7 +13613,7 @@ const r6 = {
|
|
|
13613
13613
|
slideSize: c,
|
|
13614
13614
|
slides: i,
|
|
13615
13615
|
slidesCount: l,
|
|
13616
|
-
viewport:
|
|
13616
|
+
viewport: u,
|
|
13617
13617
|
visibleRange: Be
|
|
13618
13618
|
});
|
|
13619
13619
|
go(pn, z);
|
|
@@ -13648,7 +13648,7 @@ const r6 = {
|
|
|
13648
13648
|
}), Ce = [...ge, ...q, ...he];
|
|
13649
13649
|
if (!d.enabled || !Ce.length)
|
|
13650
13650
|
return Ae("section", {
|
|
13651
|
-
ref:
|
|
13651
|
+
ref: f,
|
|
13652
13652
|
class: ["carousel", "is-disabled"]
|
|
13653
13653
|
}, Ce);
|
|
13654
13654
|
const De = ((B = t.addons) === null || B === void 0 ? void 0 : B.call(t, j)) || [], Ne = Ae("ol", {
|
|
@@ -13657,9 +13657,9 @@ const r6 = {
|
|
|
13657
13657
|
onTouchstartPassiveCapture: d.touchDrag ? _ : null,
|
|
13658
13658
|
onWheel: d.mouseWheel ? ne : null,
|
|
13659
13659
|
style: { transform: qe.value }
|
|
13660
|
-
}, Ce), Ge = Ae("div", { class: "carousel__viewport", ref:
|
|
13660
|
+
}, Ce), Ge = Ae("div", { class: "carousel__viewport", ref: u }, Ne);
|
|
13661
13661
|
return Ae("section", {
|
|
13662
|
-
ref:
|
|
13662
|
+
ref: f,
|
|
13663
13663
|
class: [
|
|
13664
13664
|
"carousel",
|
|
13665
13665
|
`is-${R.value}`,
|
|
@@ -13743,17 +13743,17 @@ const so = (e) => e && d6(e), io = gn({
|
|
|
13743
13743
|
ltr: "arrowRight",
|
|
13744
13744
|
rtl: "arrowLeft",
|
|
13745
13745
|
ttb: "arrowDown"
|
|
13746
|
-
})[a.normalizedDir],
|
|
13746
|
+
})[a.normalizedDir], f = ue(() => !a.config.wrapAround && a.currentSlide <= a.minSlide), u = ue(() => !a.config.wrapAround && a.currentSlide >= a.maxSlide);
|
|
13747
13747
|
return () => {
|
|
13748
13748
|
if (e.carousel && (a = e.carousel), !a)
|
|
13749
13749
|
return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"), "";
|
|
13750
|
-
const { i18n: c } = a.config, m = Ae("button", Object.assign(Object.assign({ type: "button", disabled:
|
|
13750
|
+
const { i18n: c } = a.config, m = Ae("button", Object.assign(Object.assign({ type: "button", disabled: f.value, "aria-label": c.ariaPreviousSlide, title: c.ariaPreviousSlide, onClick: a.nav.prev }, n), { class: [
|
|
13751
13751
|
"carousel__prev",
|
|
13752
|
-
{ "carousel__prev--disabled":
|
|
13752
|
+
{ "carousel__prev--disabled": f.value },
|
|
13753
13753
|
n.class
|
|
13754
|
-
] }), (s == null ? void 0 : s()) || Ae(io, { name: i() })), d = Ae("button", Object.assign(Object.assign({ type: "button", disabled:
|
|
13754
|
+
] }), (s == null ? void 0 : s()) || Ae(io, { name: i() })), d = Ae("button", Object.assign(Object.assign({ type: "button", disabled: u.value, "aria-label": c.ariaNextSlide, title: c.ariaNextSlide, onClick: a.nav.next }, n), { class: [
|
|
13755
13755
|
"carousel__next",
|
|
13756
|
-
{ "carousel__next--disabled":
|
|
13756
|
+
{ "carousel__next--disabled": u.value },
|
|
13757
13757
|
n.class
|
|
13758
13758
|
] }), (o == null ? void 0 : o()) || Ae(io, { name: l() }));
|
|
13759
13759
|
return [m, d];
|
|
@@ -13778,7 +13778,7 @@ gn({
|
|
|
13778
13778
|
const n = ue(() => t.config.itemsToShow), a = ue(() => ra({
|
|
13779
13779
|
align: t.config.snapAlign,
|
|
13780
13780
|
itemsToShow: n.value
|
|
13781
|
-
})), o = ue(() => e.paginateByItemsToShow && n.value > 1), s = ue(() => Math.ceil((t.activeSlide - a.value) / n.value)), i = ue(() => Math.ceil(t.slidesCount / n.value)), l = (
|
|
13781
|
+
})), o = ue(() => e.paginateByItemsToShow && n.value > 1), s = ue(() => Math.ceil((t.activeSlide - a.value) / n.value)), i = ue(() => Math.ceil(t.slidesCount / n.value)), l = (f) => As(o.value ? {
|
|
13782
13782
|
val: s.value,
|
|
13783
13783
|
max: i.value - 1,
|
|
13784
13784
|
min: 0
|
|
@@ -13786,9 +13786,9 @@ gn({
|
|
|
13786
13786
|
val: t.activeSlide,
|
|
13787
13787
|
max: t.maxSlide,
|
|
13788
13788
|
min: t.minSlide
|
|
13789
|
-
}) ===
|
|
13789
|
+
}) === f;
|
|
13790
13790
|
return () => {
|
|
13791
|
-
var
|
|
13791
|
+
var f, u;
|
|
13792
13792
|
if (e.carousel && (t = e.carousel), !t)
|
|
13793
13793
|
return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"), "";
|
|
13794
13794
|
const c = [];
|
|
@@ -13803,7 +13803,7 @@ gn({
|
|
|
13803
13803
|
},
|
|
13804
13804
|
"aria-label": d,
|
|
13805
13805
|
"aria-pressed": g,
|
|
13806
|
-
"aria-controls": (
|
|
13806
|
+
"aria-controls": (u = (f = t.slides[m]) === null || f === void 0 ? void 0 : f.exposed) === null || u === void 0 ? void 0 : u.id,
|
|
13807
13807
|
title: d,
|
|
13808
13808
|
disabled: e.disableOnClick,
|
|
13809
13809
|
onClick: () => t.nav.slideTo(o.value ? Math.floor(m * +t.config.itemsToShow + a.value) : m)
|
|
@@ -13836,16 +13836,16 @@ const f6 = gn({
|
|
|
13836
13836
|
return () => "";
|
|
13837
13837
|
const s = G(e.index), i = (h) => {
|
|
13838
13838
|
s.value = h;
|
|
13839
|
-
}, l = Xs(),
|
|
13839
|
+
}, l = Xs(), f = () => {
|
|
13840
13840
|
const h = l.vnode.el;
|
|
13841
13841
|
return h ? h.getBoundingClientRect() : { width: 0, height: 0 };
|
|
13842
13842
|
};
|
|
13843
13843
|
a({
|
|
13844
13844
|
id: e.id,
|
|
13845
13845
|
setIndex: i,
|
|
13846
|
-
getBoundingRect:
|
|
13846
|
+
getBoundingRect: f
|
|
13847
13847
|
});
|
|
13848
|
-
const
|
|
13848
|
+
const u = ue(() => s.value === o.activeSlide), c = ue(() => s.value === o.activeSlide - 1), m = ue(() => s.value === o.activeSlide + 1), d = ue(() => s.value >= o.visibleRange.min && s.value <= o.visibleRange.max), g = ue(() => {
|
|
13849
13849
|
if (o.config.itemsToShow === "auto")
|
|
13850
13850
|
return;
|
|
13851
13851
|
const h = o.config.itemsToShow, p = o.config.gap > 0 && h > 1 ? `calc(${100 / h}% - ${o.config.gap * (h - 1) / h}px)` : `${100 / h}%`;
|
|
@@ -13865,7 +13865,7 @@ const f6 = gn({
|
|
|
13865
13865
|
carousel__slide: !0,
|
|
13866
13866
|
"carousel__slide--clone": e.isClone,
|
|
13867
13867
|
"carousel__slide--visible": d.value,
|
|
13868
|
-
"carousel__slide--active":
|
|
13868
|
+
"carousel__slide--active": u.value,
|
|
13869
13869
|
"carousel__slide--prev": c.value,
|
|
13870
13870
|
"carousel__slide--next": m.value,
|
|
13871
13871
|
"carousel__slide--sliding": o.isSliding
|
|
@@ -13877,7 +13877,7 @@ const f6 = gn({
|
|
|
13877
13877
|
"aria-hidden": e.isClone || void 0
|
|
13878
13878
|
}, (p = n.default) === null || p === void 0 ? void 0 : p.call(n, {
|
|
13879
13879
|
currentIndex: s.value,
|
|
13880
|
-
isActive:
|
|
13880
|
+
isActive: u.value,
|
|
13881
13881
|
isClone: e.isClone,
|
|
13882
13882
|
isPrev: c.value,
|
|
13883
13883
|
isNext: m.value,
|
|
@@ -13919,7 +13919,7 @@ const f6 = gn({
|
|
|
13919
13919
|
320: { itemsToShow: 2 },
|
|
13920
13920
|
0: { itemsToShow: 1 }
|
|
13921
13921
|
}
|
|
13922
|
-
}, o = G(!1), s = G(""), i = G(null), l = G([]),
|
|
13922
|
+
}, o = G(!1), s = G(""), i = G(null), l = G([]), f = G([]), u = G(null), c = G(0), m = G(!1), d = G(0), g = G(0), h = (P) => new Promise((E, M) => {
|
|
13923
13923
|
const V = new FileReader();
|
|
13924
13924
|
V.readAsDataURL(P), V.onload = () => {
|
|
13925
13925
|
E(V.result);
|
|
@@ -13931,28 +13931,28 @@ const f6 = gn({
|
|
|
13931
13931
|
}, x = () => {
|
|
13932
13932
|
o.value = !1;
|
|
13933
13933
|
}, b = () => {
|
|
13934
|
-
|
|
13934
|
+
f.value = [], l.value = [], s.value = "", u.value = null, c.value = 0;
|
|
13935
13935
|
}, w = (P) => {
|
|
13936
|
-
if (!(P < 0 || P >=
|
|
13937
|
-
if (
|
|
13938
|
-
|
|
13936
|
+
if (!(P < 0 || P >= f.value.length)) {
|
|
13937
|
+
if (f.value.splice(P, 1), l.value.splice(P, 1), f.value.length === 0) {
|
|
13938
|
+
u.value = null, c.value = 0;
|
|
13939
13939
|
return;
|
|
13940
13940
|
}
|
|
13941
13941
|
if (P === c.value) {
|
|
13942
13942
|
const E = P > 0 ? P - 1 : 0;
|
|
13943
|
-
|
|
13943
|
+
u.value = f.value[E], c.value = E;
|
|
13944
13944
|
} else P < c.value && (c.value -= 1);
|
|
13945
13945
|
}
|
|
13946
13946
|
}, S = () => {
|
|
13947
13947
|
i.value.click();
|
|
13948
13948
|
}, L = async (P) => {
|
|
13949
13949
|
const E = Array.from(P.target.files);
|
|
13950
|
-
l.value = E,
|
|
13950
|
+
l.value = E, f.value = await Promise.all(
|
|
13951
13951
|
E.map(async (M) => ({
|
|
13952
13952
|
name: M.name,
|
|
13953
13953
|
base64: await h(M)
|
|
13954
13954
|
}))
|
|
13955
|
-
),
|
|
13955
|
+
), u.value = f.value[0], rt(() => {
|
|
13956
13956
|
k();
|
|
13957
13957
|
});
|
|
13958
13958
|
}, D = async (P) => {
|
|
@@ -13965,7 +13965,7 @@ const f6 = gn({
|
|
|
13965
13965
|
base64: await h(V)
|
|
13966
13966
|
}))
|
|
13967
13967
|
);
|
|
13968
|
-
|
|
13968
|
+
f.value.push(...M), u.value || (u.value = f.value[0], c.value = 0), rt(() => {
|
|
13969
13969
|
k();
|
|
13970
13970
|
});
|
|
13971
13971
|
}, O = (P) => P ? P.split(";")[0].split(":")[1] : null, R = async () => {
|
|
@@ -13975,9 +13975,9 @@ const f6 = gn({
|
|
|
13975
13975
|
const E = P === l.value.length - 1, M = {
|
|
13976
13976
|
type: "file",
|
|
13977
13977
|
media: {
|
|
13978
|
-
name:
|
|
13979
|
-
mimetype: O(
|
|
13980
|
-
data:
|
|
13978
|
+
name: f.value[P].name,
|
|
13979
|
+
mimetype: O(f.value[P].base64),
|
|
13980
|
+
data: f.value[P].base64
|
|
13981
13981
|
}
|
|
13982
13982
|
};
|
|
13983
13983
|
E && (M.content = s.value), await n.sendFilesToAttendant(
|
|
@@ -13996,7 +13996,7 @@ const f6 = gn({
|
|
|
13996
13996
|
}, A = G(null), k = () => {
|
|
13997
13997
|
A.value && A.value.focus();
|
|
13998
13998
|
}, F = (P, E) => {
|
|
13999
|
-
|
|
13999
|
+
u.value = P, c.value = E;
|
|
14000
14000
|
}, H = async (P) => {
|
|
14001
14001
|
var V;
|
|
14002
14002
|
const E = (V = P.clipboardData) == null ? void 0 : V.items;
|
|
@@ -14019,14 +14019,14 @@ const f6 = gn({
|
|
|
14019
14019
|
base64: await h(se)
|
|
14020
14020
|
}))
|
|
14021
14021
|
);
|
|
14022
|
-
|
|
14022
|
+
f.value.push(...te), u.value || (u.value = te[0], c.value = 0);
|
|
14023
14023
|
}
|
|
14024
14024
|
rt(() => {
|
|
14025
14025
|
k();
|
|
14026
14026
|
});
|
|
14027
14027
|
};
|
|
14028
14028
|
return Ve(c, (P, E) => {
|
|
14029
|
-
|
|
14029
|
+
u.value = f.value[P];
|
|
14030
14030
|
}), lt(() => {
|
|
14031
14031
|
window.addEventListener("paste", H);
|
|
14032
14032
|
}), Wn(() => {
|
|
@@ -14043,7 +14043,7 @@ const f6 = gn({
|
|
|
14043
14043
|
r("section", {
|
|
14044
14044
|
class: ce(["dropzone-container ", { "dropzone-active": o.value }])
|
|
14045
14045
|
}, [
|
|
14046
|
-
!m.value &&
|
|
14046
|
+
!m.value && f.value.length > 0 && !o.value ? (v(), y("div", h6, [
|
|
14047
14047
|
r("button", {
|
|
14048
14048
|
onClick: E[0] || (E[0] = (ee) => b()),
|
|
14049
14049
|
class: "close-button"
|
|
@@ -14064,13 +14064,13 @@ const f6 = gn({
|
|
|
14064
14064
|
], -1)
|
|
14065
14065
|
])]),
|
|
14066
14066
|
r("section", m6, [
|
|
14067
|
-
r("p", p6, le((M =
|
|
14067
|
+
r("p", p6, le((M = u.value) == null ? void 0 : M.name), 1),
|
|
14068
14068
|
Me(sa, {
|
|
14069
14069
|
isMobile: e.isMobile,
|
|
14070
14070
|
avatar: null,
|
|
14071
14071
|
mode: "preview",
|
|
14072
|
-
base64: (V =
|
|
14073
|
-
mimetype: O((K =
|
|
14072
|
+
base64: (V = u.value) == null ? void 0 : V.base64,
|
|
14073
|
+
mimetype: O((K = u.value) == null ? void 0 : K.base64)
|
|
14074
14074
|
}, null, 8, ["isMobile", "base64", "mimetype"]),
|
|
14075
14075
|
Ze(r("input", {
|
|
14076
14076
|
ref_key: "textInput",
|
|
@@ -14092,7 +14092,7 @@ const f6 = gn({
|
|
|
14092
14092
|
"onUpdate:modelValue": E[4] || (E[4] = (ee) => c.value = ee)
|
|
14093
14093
|
}, a), ei({
|
|
14094
14094
|
default: Fe(() => [
|
|
14095
|
-
(v(!0), y(He, null, Ie(
|
|
14095
|
+
(v(!0), y(He, null, Ie(f.value, (ee, te) => (v(), ze(Se(f6), { key: te }, {
|
|
14096
14096
|
default: Fe(() => [
|
|
14097
14097
|
r("section", y6, [
|
|
14098
14098
|
c.value === te ? (v(), y("button", {
|
|
@@ -14240,8 +14240,8 @@ const f6 = gn({
|
|
|
14240
14240
|
fetchMessagesForAtendente: s,
|
|
14241
14241
|
addMessageToAtendente: i,
|
|
14242
14242
|
hasNextPageForAtendente: l,
|
|
14243
|
-
sendMessageToAtendente:
|
|
14244
|
-
loadMessagesForAtendente:
|
|
14243
|
+
sendMessageToAtendente: f,
|
|
14244
|
+
loadMessagesForAtendente: u,
|
|
14245
14245
|
resetUnreadMessages: c,
|
|
14246
14246
|
loadingAttendants: m
|
|
14247
14247
|
} = ts(), d = G(!1), g = G(!1), h = G(null), p = G(null), x = t, b = G(null), w = () => {
|
|
@@ -14391,7 +14391,7 @@ const f6 = gn({
|
|
|
14391
14391
|
ref: b,
|
|
14392
14392
|
attendant: e.attendant,
|
|
14393
14393
|
selectedAttendant: h.value,
|
|
14394
|
-
sendFilesToAttendant: Se(
|
|
14394
|
+
sendFilesToAttendant: Se(f)
|
|
14395
14395
|
}, {
|
|
14396
14396
|
default: Fe(() => [
|
|
14397
14397
|
Me(bs, {
|
|
@@ -14400,8 +14400,8 @@ const f6 = gn({
|
|
|
14400
14400
|
attendant: e.attendant,
|
|
14401
14401
|
selectedAtendente: h.value,
|
|
14402
14402
|
onVoltar: P[0] || (P[0] = (E) => h.value = null),
|
|
14403
|
-
loadMessagesForAtendente: Se(
|
|
14404
|
-
sendMessageToAtendente: Se(
|
|
14403
|
+
loadMessagesForAtendente: Se(u),
|
|
14404
|
+
sendMessageToAtendente: Se(f),
|
|
14405
14405
|
hasNextPageForAtendente: Se(l)
|
|
14406
14406
|
}, null, 8, ["attendant", "selectedAtendente", "loadMessagesForAtendente", "sendMessageToAtendente", "hasNextPageForAtendente"])
|
|
14407
14407
|
]),
|
|
@@ -14465,8 +14465,8 @@ const f6 = gn({
|
|
|
14465
14465
|
fetchMessagesForAtendente: s,
|
|
14466
14466
|
addMessageToAtendente: i,
|
|
14467
14467
|
hasNextPageForAtendente: l,
|
|
14468
|
-
sendMessageToAtendente:
|
|
14469
|
-
loadMessagesForAtendente:
|
|
14468
|
+
sendMessageToAtendente: f,
|
|
14469
|
+
loadMessagesForAtendente: u,
|
|
14470
14470
|
resetUnreadMessages: c,
|
|
14471
14471
|
loadingAttendants: m
|
|
14472
14472
|
} = ts(), d = G(!1), g = G(!1), h = G(null), p = G(null), x = t, b = G(null), w = () => {
|
|
@@ -14522,15 +14522,15 @@ const f6 = gn({
|
|
|
14522
14522
|
isMobile: "",
|
|
14523
14523
|
attendant: e.attendant,
|
|
14524
14524
|
selectedAttendant: h.value,
|
|
14525
|
-
sendFilesToAttendant: Se(
|
|
14525
|
+
sendFilesToAttendant: Se(f)
|
|
14526
14526
|
}, {
|
|
14527
14527
|
default: Fe(() => [
|
|
14528
14528
|
Me(bs, {
|
|
14529
14529
|
isMobile: "",
|
|
14530
14530
|
attendant: e.attendant,
|
|
14531
14531
|
selectedAtendente: h.value,
|
|
14532
|
-
loadMessagesForAtendente: Se(
|
|
14533
|
-
sendMessageToAtendente: Se(
|
|
14532
|
+
loadMessagesForAtendente: Se(u),
|
|
14533
|
+
sendMessageToAtendente: Se(f),
|
|
14534
14534
|
hasNextPageForAtendente: Se(l),
|
|
14535
14535
|
downloadFilesMobile: e.downloadFilesMobile,
|
|
14536
14536
|
openMobilePdf: e.openMobilePdf,
|
|
@@ -14604,7 +14604,7 @@ const f6 = gn({
|
|
|
14604
14604
|
emits: ["depart", "component-mounted"],
|
|
14605
14605
|
setup(e, { emit: t }) {
|
|
14606
14606
|
ti();
|
|
14607
|
-
const n = e, a = t, o = Ea(), s = G(""), i = G([]), l = G(!1),
|
|
14607
|
+
const n = e, a = t, o = Ea(), s = G(""), i = G([]), l = G(!1), f = G(!1), u = ue(() => (n.externalDepartments || o.departments).filter(
|
|
14608
14608
|
(S) => !(n.hiddenDepartment && S.id === n.hiddenDepartment)
|
|
14609
14609
|
).filter(
|
|
14610
14610
|
(S) => !s.value || S.name.toLowerCase().includes(s.value.toLowerCase())
|
|
@@ -14629,11 +14629,11 @@ const f6 = gn({
|
|
|
14629
14629
|
), n.externalDepartments ? n.externalDepartments.splice(L, 1) : o.removeDepartments(w), a("depart", i.value));
|
|
14630
14630
|
}
|
|
14631
14631
|
async function m() {
|
|
14632
|
-
|
|
14632
|
+
f.value = !0;
|
|
14633
14633
|
const w = n.externalDepartments || o.departments;
|
|
14634
14634
|
n.permissions && w.forEach((S) => {
|
|
14635
14635
|
S.permission || (S.permission = "normal");
|
|
14636
|
-
}), await g(),
|
|
14636
|
+
}), await g(), f.value = !1;
|
|
14637
14637
|
}
|
|
14638
14638
|
async function d() {
|
|
14639
14639
|
(n.externalDepartments || o.departments).forEach((S) => S.selected = !1), i.value = [];
|
|
@@ -14724,9 +14724,9 @@ const f6 = gn({
|
|
|
14724
14724
|
}, [
|
|
14725
14725
|
r("div", V6, [
|
|
14726
14726
|
r("div", {
|
|
14727
|
-
class: ce([{ "two-columns":
|
|
14727
|
+
class: ce([{ "two-columns": u.value.length > 4 }, "grid-container"])
|
|
14728
14728
|
}, [
|
|
14729
|
-
Se(o).loaded ? (v(!0), y(He, { key: 0 }, Ie(
|
|
14729
|
+
Se(o).loaded ? (v(!0), y(He, { key: 0 }, Ie(u.value, (L) => (v(), y("div", {
|
|
14730
14730
|
key: L.id,
|
|
14731
14731
|
class: ce([{ selected: L.selected }, "department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])
|
|
14732
14732
|
}, [
|
|
@@ -14749,7 +14749,7 @@ const f6 = gn({
|
|
|
14749
14749
|
], 2))), 128)) : X("", !0)
|
|
14750
14750
|
], 2)
|
|
14751
14751
|
]),
|
|
14752
|
-
Se(o).loaded &&
|
|
14752
|
+
Se(o).loaded && u.value.length === 0 ? (v(), y("div", N6, [
|
|
14753
14753
|
w.$slots.default ? mt(w.$slots, "default", { key: 1 }, void 0, !0) : (v(), y("p", G6, "Nenhum departamento disponível."))
|
|
14754
14754
|
])) : X("", !0),
|
|
14755
14755
|
Se(o).loaded ? X("", !0) : (v(), y("div", I6, [...S[5] || (S[5] = [
|
|
@@ -14793,13 +14793,13 @@ const f6 = gn({
|
|
|
14793
14793
|
emits: ["attend", "component-mounted"],
|
|
14794
14794
|
setup(e, { emit: t }) {
|
|
14795
14795
|
const n = e, a = t, o = Bn(), s = G(""), i = G(!1), l = G([]);
|
|
14796
|
-
function
|
|
14796
|
+
function f() {
|
|
14797
14797
|
const b = Array.isArray(n.attendance) ? n.attendance : n.attendance ? [n.attendance] : [];
|
|
14798
14798
|
return new Set(
|
|
14799
14799
|
b.filter(Boolean).map((w) => typeof w == "object" ? w.id : w)
|
|
14800
14800
|
);
|
|
14801
14801
|
}
|
|
14802
|
-
const
|
|
14802
|
+
const u = ue(() => {
|
|
14803
14803
|
const b = o.attendants.filter((S) => S.status === !0), w = s.value ? b.filter(
|
|
14804
14804
|
(S) => S.name.toLowerCase().includes(s.value.toLowerCase())
|
|
14805
14805
|
) : b;
|
|
@@ -14813,7 +14813,7 @@ const f6 = gn({
|
|
|
14813
14813
|
return (typeof L == "object" ? L.id : L) !== ((O = n == null ? void 0 : n.attDel) == null ? void 0 : O.id);
|
|
14814
14814
|
});
|
|
14815
14815
|
if (n.method === "addParticipant") {
|
|
14816
|
-
const S =
|
|
14816
|
+
const S = f();
|
|
14817
14817
|
return (w = n == null ? void 0 : n.attDel) != null && w.id && S.add(n.attDel.id), b.filter((L) => !S.has(L.id));
|
|
14818
14818
|
}
|
|
14819
14819
|
return b;
|
|
@@ -14931,9 +14931,9 @@ const f6 = gn({
|
|
|
14931
14931
|
}, [
|
|
14932
14932
|
r("div", K6, [
|
|
14933
14933
|
r("div", {
|
|
14934
|
-
class: ce([{ "two-columns":
|
|
14934
|
+
class: ce([{ "two-columns": u.value.length > 4 }, "grid-container"])
|
|
14935
14935
|
}, [
|
|
14936
|
-
Se(o).loaded ? (v(!0), y(He, { key: 0 }, Ie(
|
|
14936
|
+
Se(o).loaded ? (v(!0), y(He, { key: 0 }, Ie(u.value, (S) => (v(), y("div", {
|
|
14937
14937
|
key: S,
|
|
14938
14938
|
class: ce([{ selected: S.selected }, "department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])
|
|
14939
14939
|
}, [
|
|
@@ -14957,7 +14957,7 @@ const f6 = gn({
|
|
|
14957
14957
|
], 2))), 128)) : X("", !0)
|
|
14958
14958
|
], 2)
|
|
14959
14959
|
]),
|
|
14960
|
-
Se(o).loaded &&
|
|
14960
|
+
Se(o).loaded && u.value.length === 0 ? (v(), y("div", n7, " Nenhum atendente disponível. ")) : X("", !0),
|
|
14961
14961
|
Se(o).loaded ? X("", !0) : (v(), y("div", a7, [...w[5] || (w[5] = [
|
|
14962
14962
|
nt(" Inicializando atendentes ", -1),
|
|
14963
14963
|
r("div", { class: "library-loader" }, null, -1)
|
|
@@ -16486,7 +16486,7 @@ const ro = {
|
|
|
16486
16486
|
"Resist",
|
|
16487
16487
|
"Skull"
|
|
16488
16488
|
], l1 = (e = {}) => {
|
|
16489
|
-
var t, n, a, o, s, i, l,
|
|
16489
|
+
var t, n, a, o, s, i, l, f, u, c, m, d, g, h;
|
|
16490
16490
|
return {
|
|
16491
16491
|
isCircle: e.isCircle === void 0 ? !1 : e.isCircle,
|
|
16492
16492
|
circleColor: (t = e.circleColor) != null ? t : void 0,
|
|
@@ -16496,8 +16496,8 @@ const ro = {
|
|
|
16496
16496
|
clothesColor: (s = e.clothesColor) != null ? s : Pn(ro),
|
|
16497
16497
|
facialHairColor: (i = e.facialHairColor) != null ? i : Pn(lo),
|
|
16498
16498
|
accessories: (l = e.accessories) != null ? l : qt(lv),
|
|
16499
|
-
eyes: (
|
|
16500
|
-
eyebrows: (
|
|
16499
|
+
eyes: (f = e.eyes) != null ? f : qt(cv),
|
|
16500
|
+
eyebrows: (u = e.eyebrows) != null ? u : qt(dv),
|
|
16501
16501
|
mouth: (c = e.mouth) != null ? c : qt(fv),
|
|
16502
16502
|
top: (m = e.top) != null ? m : qt(hv),
|
|
16503
16503
|
clothes: (d = e.clothes) != null ? d : qt(mv),
|
|
@@ -16541,7 +16541,7 @@ const ro = {
|
|
|
16541
16541
|
setup(e, { emit: t }) {
|
|
16542
16542
|
const n = G(co), a = G(co), o = G(!1);
|
|
16543
16543
|
lt(async () => {
|
|
16544
|
-
n.value = l1(n.value), await rt(),
|
|
16544
|
+
n.value = l1(n.value), await rt(), u();
|
|
16545
16545
|
});
|
|
16546
16546
|
const s = t, i = e, l = async () => {
|
|
16547
16547
|
if (o.value)
|
|
@@ -16550,16 +16550,16 @@ const ro = {
|
|
|
16550
16550
|
const c = { ...a.value, facialHair: "Blank" };
|
|
16551
16551
|
n.value = l1(c);
|
|
16552
16552
|
}
|
|
16553
|
-
await rt(),
|
|
16554
|
-
},
|
|
16553
|
+
await rt(), u();
|
|
16554
|
+
}, f = async () => {
|
|
16555
16555
|
n.value = l1({
|
|
16556
16556
|
isCircle: !0,
|
|
16557
16557
|
circleColor: "#22c55e",
|
|
16558
16558
|
facialHair: o.value ? "Blank" : null
|
|
16559
16559
|
});
|
|
16560
16560
|
const c = n.value;
|
|
16561
|
-
a.value = c, await rt(),
|
|
16562
|
-
},
|
|
16561
|
+
a.value = c, await rt(), u();
|
|
16562
|
+
}, u = () => {
|
|
16563
16563
|
const c = document.querySelector("#avatar-container svg");
|
|
16564
16564
|
if (!c) {
|
|
16565
16565
|
console.error("Avatar não encontrado!");
|
|
@@ -16592,7 +16592,7 @@ const ro = {
|
|
|
16592
16592
|
m[1] || (m[1] = nt(" Remover barba ", -1))
|
|
16593
16593
|
]),
|
|
16594
16594
|
r("button", {
|
|
16595
|
-
onClick:
|
|
16595
|
+
onClick: f,
|
|
16596
16596
|
class: "generate-button"
|
|
16597
16597
|
}, " Gerar Avatar ")
|
|
16598
16598
|
])
|
|
@@ -42203,12 +42203,12 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42203
42203
|
n("postSuccess", a.value);
|
|
42204
42204
|
};
|
|
42205
42205
|
return (i, l) => {
|
|
42206
|
-
const
|
|
42206
|
+
const f = $t("Vue3Lottie");
|
|
42207
42207
|
return v(), y("main", Rv, [
|
|
42208
42208
|
e.sentSuccess ? (v(), y("section", zv, [
|
|
42209
42209
|
r("div", jv, [
|
|
42210
42210
|
l[2] || (l[2] = r("p", { class: "text-lg font-semibold uppercase" }, " Sua sugestão foi recebida com sucesso ", -1)),
|
|
42211
|
-
Me(
|
|
42211
|
+
Me(f, {
|
|
42212
42212
|
"animation-data": Se(Vv),
|
|
42213
42213
|
height: 200,
|
|
42214
42214
|
width: 200,
|
|
@@ -42225,7 +42225,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42225
42225
|
r("section", Nv, [
|
|
42226
42226
|
l[5] || (l[5] = r("h1", { class: "header_send_suggestion" }, "Envie sua sugestão para nós", -1)),
|
|
42227
42227
|
Ze(r("textarea", {
|
|
42228
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
42228
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => a.value = u),
|
|
42229
42229
|
class: "input_send_suggestion textarea-send-suggestion",
|
|
42230
42230
|
placeholder: "Gostaria que vocês adicionassem...",
|
|
42231
42231
|
type: "text"
|
|
@@ -42234,7 +42234,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42234
42234
|
]),
|
|
42235
42235
|
o.value ? (v(), y("span", Gv, " Por favor, preencha o campo antes de continuar ")) : X("", !0),
|
|
42236
42236
|
r("button", {
|
|
42237
|
-
onClick: l[1] || (l[1] = (
|
|
42237
|
+
onClick: l[1] || (l[1] = (u) => s()),
|
|
42238
42238
|
class: "submit-button-send-suggestion"
|
|
42239
42239
|
}, [
|
|
42240
42240
|
e.loader ? (v(), y("div", Iv)) : (v(), y("p", Wv, "Enviar"))
|
|
@@ -42286,7 +42286,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42286
42286
|
"pill-flag--new-feature": a.flag === "new-feature",
|
|
42287
42287
|
"pill-flag--improvement": a.flag === "improvement",
|
|
42288
42288
|
"pill-flag--bug-fix": a.flag === "bug-fix"
|
|
42289
|
-
})),
|
|
42289
|
+
})), f = ue(() => a.flag === "improvement" ? "Melhorias" : a.flag === "new-feature" ? "Novo Recurso" : "correção de erros"), u = ue(() => ({
|
|
42290
42290
|
"pill-date": !0,
|
|
42291
42291
|
"pill-date--updated": a.state === "updated",
|
|
42292
42292
|
"pill-date--future": a.state !== "updated"
|
|
@@ -42353,7 +42353,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42353
42353
|
r("section", ry, [
|
|
42354
42354
|
r("span", {
|
|
42355
42355
|
class: ce(l.value)
|
|
42356
|
-
}, le(
|
|
42356
|
+
}, le(f.value), 3),
|
|
42357
42357
|
Me(d, {
|
|
42358
42358
|
class: "pill_date_popper",
|
|
42359
42359
|
hover: "",
|
|
@@ -42363,7 +42363,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42363
42363
|
}, {
|
|
42364
42364
|
default: Fe(() => [
|
|
42365
42365
|
r("div", {
|
|
42366
|
-
class: ce(
|
|
42366
|
+
class: ce(u.value)
|
|
42367
42367
|
}, [
|
|
42368
42368
|
Me(uo, {
|
|
42369
42369
|
svgContent: Se(Yv)("size-4 text-white")
|
|
@@ -42411,9 +42411,9 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42411
42411
|
setup(e, { emit: t }) {
|
|
42412
42412
|
const n = G(1), a = G(1), o = G(null), s = G(null), i = t, l = (d) => {
|
|
42413
42413
|
i("postSuggestion", d);
|
|
42414
|
-
},
|
|
42414
|
+
}, f = () => {
|
|
42415
42415
|
i("close"), n.value = 1, a.value = 1;
|
|
42416
|
-
},
|
|
42416
|
+
}, u = ({ loaded: d, complete: g }) => {
|
|
42417
42417
|
i("loadMoreFutureUpdates", { loaded: d, complete: g, page: n.value }), n.value++;
|
|
42418
42418
|
}, c = ({ loaded: d, complete: g }) => {
|
|
42419
42419
|
i("loadMoreLatestUpdates", { loaded: d, complete: g, page: a.value }), a.value++;
|
|
@@ -42430,7 +42430,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42430
42430
|
r("div", dy, [
|
|
42431
42431
|
r("div", uy, [
|
|
42432
42432
|
r("button", {
|
|
42433
|
-
onClick: g[0] || (g[0] = (h) =>
|
|
42433
|
+
onClick: g[0] || (g[0] = (h) => f()),
|
|
42434
42434
|
class: "modal-close-btn-patch-notes"
|
|
42435
42435
|
}, [...g[1] || (g[1] = [
|
|
42436
42436
|
r("svg", {
|
|
@@ -42512,7 +42512,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42512
42512
|
Me(Se(An), {
|
|
42513
42513
|
distance: 20,
|
|
42514
42514
|
target: o.value,
|
|
42515
|
-
onInfinite:
|
|
42515
|
+
onInfinite: u
|
|
42516
42516
|
}, {
|
|
42517
42517
|
complete: Fe(() => [...g[5] || (g[5] = [
|
|
42518
42518
|
r("span", { class: "" }, null, -1)
|
|
@@ -42557,8 +42557,8 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42557
42557
|
},
|
|
42558
42558
|
emits: ["openNewUpdates"],
|
|
42559
42559
|
setup(e, { emit: t }) {
|
|
42560
|
-
const n = t, a = e, o = (l,
|
|
42561
|
-
const
|
|
42560
|
+
const n = t, a = e, o = (l, f) => {
|
|
42561
|
+
const u = {
|
|
42562
42562
|
attendant: {
|
|
42563
42563
|
container: "main-container-new-update",
|
|
42564
42564
|
button: "update-button",
|
|
@@ -42584,18 +42584,18 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42584
42584
|
text: "Notas de atualização"
|
|
42585
42585
|
}
|
|
42586
42586
|
};
|
|
42587
|
-
return
|
|
42587
|
+
return u[l] || u.attendant;
|
|
42588
42588
|
}, s = ue(() => o(a.type, a.sparkles)), i = () => {
|
|
42589
42589
|
n("openNewUpdates");
|
|
42590
42590
|
};
|
|
42591
|
-
return (l,
|
|
42591
|
+
return (l, f) => (v(), y("main", {
|
|
42592
42592
|
class: ce(["relative", s.value.container]),
|
|
42593
42593
|
onClick: i
|
|
42594
42594
|
}, [
|
|
42595
42595
|
s.value.usePopper ? (v(), y(He, { key: 0 }, [
|
|
42596
42596
|
r("button", {
|
|
42597
42597
|
class: ce(s.value.button)
|
|
42598
|
-
}, [...
|
|
42598
|
+
}, [...f[0] || (f[0] = [
|
|
42599
42599
|
r("svg", {
|
|
42600
42600
|
class: "new_update-icon",
|
|
42601
42601
|
fill: "currentColor",
|
|
@@ -42613,7 +42613,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42613
42613
|
(v(), y("svg", {
|
|
42614
42614
|
class: ce(s.value.iconSize),
|
|
42615
42615
|
viewBox: "0 0 128 128"
|
|
42616
|
-
}, [...
|
|
42616
|
+
}, [...f[1] || (f[1] = [
|
|
42617
42617
|
xe('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>', 5)
|
|
42618
42618
|
])], 2))
|
|
42619
42619
|
])) : X("", !0)
|
|
@@ -42627,7 +42627,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42627
42627
|
),
|
|
42628
42628
|
fill: "currentColor",
|
|
42629
42629
|
viewBox: "0 0 420.827 420.827"
|
|
42630
|
-
}, [...
|
|
42630
|
+
}, [...f[2] || (f[2] = [
|
|
42631
42631
|
r("g", null, [
|
|
42632
42632
|
r("g", null, [
|
|
42633
42633
|
r("path", { d: "M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z" }),
|
|
@@ -42640,7 +42640,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42640
42640
|
(v(), y("svg", {
|
|
42641
42641
|
class: ce(s.value.iconSize),
|
|
42642
42642
|
viewBox: "0 0 128 128"
|
|
42643
|
-
}, [...
|
|
42643
|
+
}, [...f[3] || (f[3] = [
|
|
42644
42644
|
xe('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>', 5)
|
|
42645
42645
|
])], 2))
|
|
42646
42646
|
])) : X("", !0)
|
|
@@ -42684,10 +42684,10 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42684
42684
|
s.type = "file", s.accept = "image/*", s.onchange = async (i) => {
|
|
42685
42685
|
const l = i.target.files[0];
|
|
42686
42686
|
if (!l) return;
|
|
42687
|
-
const
|
|
42688
|
-
|
|
42689
|
-
n("update:modelValue",
|
|
42690
|
-
},
|
|
42687
|
+
const f = new FileReader();
|
|
42688
|
+
f.onload = () => {
|
|
42689
|
+
n("update:modelValue", f.result);
|
|
42690
|
+
}, f.readAsDataURL(l);
|
|
42691
42691
|
}, s.click();
|
|
42692
42692
|
}, o = async () => {
|
|
42693
42693
|
n("update:modelValue", null);
|
|
@@ -42779,13 +42779,13 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42779
42779
|
S1(i, () => o.value = !1);
|
|
42780
42780
|
const l = ue(
|
|
42781
42781
|
() => n.departments.filter(
|
|
42782
|
-
(
|
|
42782
|
+
(u) => u.name.toLowerCase().includes(s.value.toLowerCase())
|
|
42783
42783
|
)
|
|
42784
|
-
),
|
|
42785
|
-
const c = [...n.modelValue], m = c.findIndex((d) => d.id ===
|
|
42786
|
-
m === -1 ? c.push({ id:
|
|
42784
|
+
), f = (u) => {
|
|
42785
|
+
const c = [...n.modelValue], m = c.findIndex((d) => d.id === u.id);
|
|
42786
|
+
m === -1 ? c.push({ id: u.id, name: u.name }) : c.splice(m, 1), a("update:modelValue", c);
|
|
42787
42787
|
};
|
|
42788
|
-
return (
|
|
42788
|
+
return (u, c) => (v(), y("div", {
|
|
42789
42789
|
class: "relative w-full",
|
|
42790
42790
|
ref_key: "dropdownRef",
|
|
42791
42791
|
ref: i
|
|
@@ -42836,7 +42836,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
42836
42836
|
e.modelValue.some((d) => d.id === m.id) ? "bg-green-500/30 hover:bg-green-500/50" : "hover:bg-base-200",
|
|
42837
42837
|
"flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"
|
|
42838
42838
|
]),
|
|
42839
|
-
onClick: (d) =>
|
|
42839
|
+
onClick: (d) => f(m)
|
|
42840
42840
|
}, [
|
|
42841
42841
|
r("span", Py, le(m.name), 1),
|
|
42842
42842
|
e.modelValue.some((d) => d.id === m.id) ? (v(), y("svg", Hy, [...c[4] || (c[4] = [
|
|
@@ -42935,17 +42935,17 @@ const Ry = {
|
|
|
42935
42935
|
},
|
|
42936
42936
|
emits: ["update:modelValue"],
|
|
42937
42937
|
setup(e, { emit: t }) {
|
|
42938
|
-
const n = e, a = t, o = G(!1), s = G(""), i = G(null), l = G(null),
|
|
42938
|
+
const n = e, a = t, o = G(!1), s = G(""), i = G(null), l = G(null), f = G(null), u = G({}), c = G([]), m = G(1), d = G(null), g = G(null), h = G(!1), p = G({ name: "" });
|
|
42939
42939
|
G(!1);
|
|
42940
42940
|
const x = ue(() => n.modelValue[0] || null), b = (k) => {
|
|
42941
42941
|
var H, P, E;
|
|
42942
42942
|
if (!o.value) return;
|
|
42943
42943
|
const F = k.target;
|
|
42944
|
-
(H =
|
|
42944
|
+
(H = f.value) != null && H.contains(F) || (P = i.value) != null && P.contains(F) || (E = l.value) != null && E.contains(F) || (o.value = !1);
|
|
42945
42945
|
}, w = () => {
|
|
42946
|
-
if (!n.teleportTo || !
|
|
42947
|
-
const k =
|
|
42948
|
-
|
|
42946
|
+
if (!n.teleportTo || !f.value) return;
|
|
42947
|
+
const k = f.value.getBoundingClientRect();
|
|
42948
|
+
u.value = {
|
|
42949
42949
|
position: "fixed",
|
|
42950
42950
|
// evita ser afetado por scroll de ancestors
|
|
42951
42951
|
top: `${k.bottom + 3}px`,
|
|
@@ -43031,7 +43031,7 @@ const Ry = {
|
|
|
43031
43031
|
r("div", {
|
|
43032
43032
|
onClick: F[0] || (F[0] = (P) => o.value = !o.value),
|
|
43033
43033
|
ref_key: "triggerRef",
|
|
43034
|
-
ref:
|
|
43034
|
+
ref: f,
|
|
43035
43035
|
class: "flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"
|
|
43036
43036
|
}, [
|
|
43037
43037
|
e.multiple ? (v(), y(He, { key: 0 }, [
|
|
@@ -43138,7 +43138,7 @@ const Ry = {
|
|
|
43138
43138
|
r("div", {
|
|
43139
43139
|
ref_key: "teleportedRef",
|
|
43140
43140
|
ref: l,
|
|
43141
|
-
style: Ke({ ...
|
|
43141
|
+
style: Ke({ ...u.value, maxHeight: n.maxHeight }),
|
|
43142
43142
|
class: "absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"
|
|
43143
43143
|
}, [
|
|
43144
43144
|
r("div", Xy, [
|
|
@@ -43253,18 +43253,18 @@ const Ry = {
|
|
|
43253
43253
|
{ deep: !0 }
|
|
43254
43254
|
);
|
|
43255
43255
|
const i = ue(() => o.empty && !s.value);
|
|
43256
|
-
return (l,
|
|
43257
|
-
const
|
|
43256
|
+
return (l, f) => {
|
|
43257
|
+
const u = $t("Popper");
|
|
43258
43258
|
return v(), y("section", nx, [
|
|
43259
43259
|
r("header", ax, [
|
|
43260
43260
|
r("p", ox, le(o.title), 1),
|
|
43261
|
-
Me(
|
|
43261
|
+
Me(u, {
|
|
43262
43262
|
hover: "",
|
|
43263
43263
|
content: o.info,
|
|
43264
43264
|
placement: "top",
|
|
43265
43265
|
arrow: ""
|
|
43266
43266
|
}, {
|
|
43267
|
-
default: Fe(() => [...
|
|
43267
|
+
default: Fe(() => [...f[2] || (f[2] = [
|
|
43268
43268
|
r("svg", {
|
|
43269
43269
|
class: "size-4 text-white",
|
|
43270
43270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -43297,14 +43297,14 @@ const Ry = {
|
|
|
43297
43297
|
type: o.type,
|
|
43298
43298
|
key: o.type,
|
|
43299
43299
|
placeholder: o.placeholder,
|
|
43300
|
-
"onUpdate:modelValue":
|
|
43300
|
+
"onUpdate:modelValue": f[0] || (f[0] = (c) => s.value = c),
|
|
43301
43301
|
class: ce([i.value ? "empty" : null, "input__field"])
|
|
43302
43302
|
}, null, 10, ix)), [
|
|
43303
43303
|
[si, s.value]
|
|
43304
43304
|
]) : Ze((v(), y("textarea", {
|
|
43305
43305
|
key: 2,
|
|
43306
43306
|
class: ce([i.value ? "empty" : null, "input__field h-full resize-y"]),
|
|
43307
|
-
"onUpdate:modelValue":
|
|
43307
|
+
"onUpdate:modelValue": f[1] || (f[1] = (c) => s.value = c),
|
|
43308
43308
|
placeholder: o.placeholder
|
|
43309
43309
|
}, null, 10, rx)), [
|
|
43310
43310
|
[kt, s.value]
|
|
@@ -43370,7 +43370,7 @@ const Ry = {
|
|
|
43370
43370
|
setup(e, { emit: t }) {
|
|
43371
43371
|
const n = e, a = t, o = G(!1), s = G(null), i = G(null), l = G({});
|
|
43372
43372
|
S1(s, () => o.value = !1);
|
|
43373
|
-
const
|
|
43373
|
+
const f = () => {
|
|
43374
43374
|
if (!n.teleportTo || !i.value) return;
|
|
43375
43375
|
const g = i.value.getBoundingClientRect();
|
|
43376
43376
|
l.value = {
|
|
@@ -43384,18 +43384,18 @@ const Ry = {
|
|
|
43384
43384
|
};
|
|
43385
43385
|
};
|
|
43386
43386
|
Ve(o, (g) => {
|
|
43387
|
-
g &&
|
|
43387
|
+
g && f();
|
|
43388
43388
|
});
|
|
43389
|
-
const
|
|
43389
|
+
const u = [];
|
|
43390
43390
|
lt(() => {
|
|
43391
43391
|
if (n.teleportTo) {
|
|
43392
43392
|
const g = () => {
|
|
43393
|
-
o.value &&
|
|
43393
|
+
o.value && f();
|
|
43394
43394
|
};
|
|
43395
|
-
window.addEventListener("scroll", g, !0), window.addEventListener("resize", g),
|
|
43395
|
+
window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), u.push(["scroll", g], ["resize", g]);
|
|
43396
43396
|
}
|
|
43397
43397
|
}), Wn(() => {
|
|
43398
|
-
|
|
43398
|
+
u.forEach(([g, h]) => window.removeEventListener(g, h, g === "scroll" ? !0 : void 0));
|
|
43399
43399
|
});
|
|
43400
43400
|
const c = (g) => n.multiple && Array.isArray(n.modelValue) ? n.modelValue.includes(g) : n.modelValue === g, m = (g) => {
|
|
43401
43401
|
if (n.multiple) {
|
|
@@ -43521,22 +43521,22 @@ const Ry = {
|
|
|
43521
43521
|
setup(e, { emit: t }) {
|
|
43522
43522
|
const n = e, a = t;
|
|
43523
43523
|
async function o(l) {
|
|
43524
|
-
const
|
|
43525
|
-
a("update:outcome",
|
|
43524
|
+
const f = n.outcome === l ? null : l;
|
|
43525
|
+
a("update:outcome", f), a("change", f);
|
|
43526
43526
|
}
|
|
43527
43527
|
const s = ue(() => n.outcome === "won"), i = ue(() => n.outcome === "lost");
|
|
43528
|
-
return (l,
|
|
43528
|
+
return (l, f) => (v(), y("div", px, [
|
|
43529
43529
|
r("button", {
|
|
43530
|
-
onClick:
|
|
43530
|
+
onClick: f[0] || (f[0] = (u) => o("won")),
|
|
43531
43531
|
class: ce(["button_outcome-base", { "button_outcome-active-won": s.value }])
|
|
43532
43532
|
}, [
|
|
43533
|
-
|
|
43533
|
+
f[3] || (f[3] = r("p", null, "Ganho", -1)),
|
|
43534
43534
|
(v(), y("svg", {
|
|
43535
43535
|
class: ce([{ "svg_outcome-active-won": s.value }, "text-white size-4"]),
|
|
43536
43536
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43537
43537
|
viewBox: "0 0 20 20",
|
|
43538
43538
|
fill: "none"
|
|
43539
|
-
}, [...
|
|
43539
|
+
}, [...f[2] || (f[2] = [
|
|
43540
43540
|
r("path", {
|
|
43541
43541
|
d: "M3.16666 6.37502C3.74962 6.37502 4.2222 6.85073 4.22222 7.43752V15.9375C4.22222 16.5243 3.74963 17 3.16666 17H1.05555C0.472588 17 0 16.5243 0 15.9375V7.43752C1.50967e-05 6.85073 0.472597 6.37502 1.05555 6.37502H3.16666Z",
|
|
43542
43542
|
fill: "CurrentColor"
|
|
@@ -43548,7 +43548,7 @@ const Ry = {
|
|
|
43548
43548
|
])], 2))
|
|
43549
43549
|
], 2),
|
|
43550
43550
|
r("button", {
|
|
43551
|
-
onClick:
|
|
43551
|
+
onClick: f[1] || (f[1] = (u) => o("lost")),
|
|
43552
43552
|
class: ce(["button_outcome-base", { "button_outcome-active-lost": i.value }])
|
|
43553
43553
|
}, [
|
|
43554
43554
|
(v(), y("svg", {
|
|
@@ -43556,7 +43556,7 @@ const Ry = {
|
|
|
43556
43556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43557
43557
|
viewBox: "0 0 20 19",
|
|
43558
43558
|
fill: "none"
|
|
43559
|
-
}, [...
|
|
43559
|
+
}, [...f[4] || (f[4] = [
|
|
43560
43560
|
r("path", {
|
|
43561
43561
|
d: "M15.8333 10.625C15.2504 10.625 14.7778 10.1493 14.7778 9.56249L14.7778 1.0625C14.7778 0.475698 15.2504 1.57955e-06 15.8333 1.63051e-06L17.9444 1.81507e-06C18.5274 1.86603e-06 19 0.475698 19 1.0625L19 9.56249C19 10.1493 18.5274 10.625 17.9444 10.625L15.8333 10.625Z",
|
|
43562
43562
|
fill: "CurrentColor"
|
|
@@ -43566,7 +43566,7 @@ const Ry = {
|
|
|
43566
43566
|
fill: "CurrentColor"
|
|
43567
43567
|
}, null, -1)
|
|
43568
43568
|
])], 2)),
|
|
43569
|
-
|
|
43569
|
+
f[5] || (f[5] = r("p", null, "Perdido", -1))
|
|
43570
43570
|
], 2)
|
|
43571
43571
|
]));
|
|
43572
43572
|
}
|
|
@@ -43589,11 +43589,11 @@ const Ry = {
|
|
|
43589
43589
|
const m = i.value - c + 1;
|
|
43590
43590
|
return m >= 1 ? "100%" : m >= 0.5 ? "50%" : m > 0 ? `${m * 100}%` : "0%";
|
|
43591
43591
|
}
|
|
43592
|
-
function
|
|
43592
|
+
function f(c, m) {
|
|
43593
43593
|
const d = c.currentTarget.getBoundingClientRect(), g = c.offsetX < d.width / 2;
|
|
43594
43594
|
s.value = m - (g ? 0.5 : 0);
|
|
43595
43595
|
}
|
|
43596
|
-
function
|
|
43596
|
+
function u(c, m) {
|
|
43597
43597
|
const d = c.currentTarget.getBoundingClientRect(), g = c.offsetX < d.width / 2, h = m - (g ? 0.5 : 0);
|
|
43598
43598
|
o.value = o.value === h ? 0 : h, a("update:modelValue", o.value);
|
|
43599
43599
|
}
|
|
@@ -43601,9 +43601,9 @@ const Ry = {
|
|
|
43601
43601
|
(v(), y(He, null, Ie(5, (d) => r("div", {
|
|
43602
43602
|
key: d,
|
|
43603
43603
|
class: "relative size-6 cursor-pointer",
|
|
43604
|
-
onMousemove: (g) =>
|
|
43604
|
+
onMousemove: (g) => f(g, d),
|
|
43605
43605
|
onMouseleave: m[0] || (m[0] = (g) => s.value = 0),
|
|
43606
|
-
onClick: (g) =>
|
|
43606
|
+
onClick: (g) => u(g, d)
|
|
43607
43607
|
}, [
|
|
43608
43608
|
m[2] || (m[2] = r("svg", {
|
|
43609
43609
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -43664,7 +43664,7 @@ const Ry = {
|
|
|
43664
43664
|
},
|
|
43665
43665
|
emits: ["update:modelValue"],
|
|
43666
43666
|
setup(e, { emit: t }) {
|
|
43667
|
-
const n = e, a = t, o = G(!1), s = G([]), i = G([...n.modelValue]), l = G(1),
|
|
43667
|
+
const n = e, a = t, o = G(!1), s = G([]), i = G([...n.modelValue]), l = G(1), f = G(null), u = G(null), c = ue(() => i.value.reduce((O, R) => {
|
|
43668
43668
|
var F;
|
|
43669
43669
|
const A = ((F = R.product) == null ? void 0 : F.price) || R.price || 0, k = R.quantity || 0;
|
|
43670
43670
|
return O + A * k;
|
|
@@ -43690,20 +43690,20 @@ const Ry = {
|
|
|
43690
43690
|
const { data: R } = await Et.get(
|
|
43691
43691
|
p(pl, { page: l.value, ...O })
|
|
43692
43692
|
), { results: A, next: k, previous: F } = R;
|
|
43693
|
-
if (
|
|
43693
|
+
if (f.value = k, u.value = F, l.value === 1)
|
|
43694
43694
|
s.value = A;
|
|
43695
43695
|
else {
|
|
43696
43696
|
const H = new Set(s.value.map((E) => E.id)), P = A.filter((E) => !H.has(E.id));
|
|
43697
43697
|
s.value = [...s.value, ...P];
|
|
43698
43698
|
}
|
|
43699
|
-
|
|
43699
|
+
f.value && (l.value += 1);
|
|
43700
43700
|
} catch (R) {
|
|
43701
43701
|
console.error("Erro ao buscar produtos:", R);
|
|
43702
43702
|
}
|
|
43703
43703
|
};
|
|
43704
43704
|
lt(async () => {
|
|
43705
43705
|
var O;
|
|
43706
|
-
n.allProducts && ((O = n.allProducts.results) == null ? void 0 : O.length) > 0 ? (s.value = n.allProducts.results,
|
|
43706
|
+
n.allProducts && ((O = n.allProducts.results) == null ? void 0 : O.length) > 0 ? (s.value = n.allProducts.results, f.value = n.allProducts.next || null, u.value = n.allProducts.previous || null, l.value = 2) : await x();
|
|
43707
43707
|
}), Ve(
|
|
43708
43708
|
i,
|
|
43709
43709
|
(O) => {
|
|
@@ -43715,11 +43715,11 @@ const Ry = {
|
|
|
43715
43715
|
if (!b.value) {
|
|
43716
43716
|
b.value = !0;
|
|
43717
43717
|
try {
|
|
43718
|
-
if (!
|
|
43718
|
+
if (!f.value) {
|
|
43719
43719
|
O.complete();
|
|
43720
43720
|
return;
|
|
43721
43721
|
}
|
|
43722
|
-
await x(),
|
|
43722
|
+
await x(), f.value ? O.loaded() : O.complete();
|
|
43723
43723
|
} catch (R) {
|
|
43724
43724
|
console.error("Erro ao carregar produtos:", R), O.complete();
|
|
43725
43725
|
} finally {
|
|
@@ -43822,7 +43822,7 @@ const Ry = {
|
|
|
43822
43822
|
L.value && s.value.length === 0 || s.value.length === 0 ? (v(), y("section", Hx, [...R[2] || (R[2] = [
|
|
43823
43823
|
xe('<p class="text-gray-600 text-base font-sans" data-v-22918a3e>Nenhum item encontrado</p><p class="text-gray-600 text-xs font-sans" data-v-22918a3e> Comece criando seu primeiro na aba <strong data-v-22918a3e>Produtos</strong></p><button class="bg-green-700 text-white py-1 px-2 rounded-md text-xs mt-2 hover:bg-green-600 flex gap-1 items-center justify-center" data-v-22918a3e><p data-v-22918a3e>Criar novo</p><svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-22918a3e><path fill="currentColor" d="M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z" data-v-22918a3e></path><path fill="currentColor" fill-rule="evenodd" d="M9 3c0-.55228.44772-1 1-1h8c.5523 0 1 .44772 1 1v3c0 .55228-.4477 1-1 1h-2v1h2c.5096 0 .9376.38314.9939.88957L19.8951 17H4.10498l.90116-8.11043C5.06241 8.38314 5.49047 8 6.00002 8H12V7h-2c-.55228 0-1-.44772-1-1V3Zm1.01 8H8.00002v2.01H10.01V11Zm.99 0h2.01v2.01H11V11Zm5.01 0H14v2.01h2.01V11Zm-8.00998 3H10.01v2.01H8.00002V14ZM13.01 14H11v2.01h2.01V14Zm.99 0h2.01v2.01H14V14ZM11 4h6v1h-6V4Z" clip-rule="evenodd" data-v-22918a3e></path></svg></button>', 3)
|
|
43824
43824
|
])])) : X("", !0),
|
|
43825
|
-
|
|
43825
|
+
f.value ? (v(), ze(Se(An), {
|
|
43826
43826
|
key: 2,
|
|
43827
43827
|
onInfinite: w,
|
|
43828
43828
|
class: "p-3 bg-base-300"
|
|
@@ -43863,16 +43863,16 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
43863
43863
|
emits: ["update:modelValue"],
|
|
43864
43864
|
setup(e, { emit: t }) {
|
|
43865
43865
|
const n = e, a = t, o = G(i(n.modelValue)), s = G(!1);
|
|
43866
|
-
function i(
|
|
43867
|
-
return JSON.parse(JSON.stringify(
|
|
43866
|
+
function i(f) {
|
|
43867
|
+
return JSON.parse(JSON.stringify(f));
|
|
43868
43868
|
}
|
|
43869
43869
|
const l = async () => {
|
|
43870
43870
|
try {
|
|
43871
43871
|
s.value = !0;
|
|
43872
|
-
const
|
|
43873
|
-
o.value =
|
|
43874
|
-
} catch (
|
|
43875
|
-
console.error("Error fetching segmentation fields:",
|
|
43872
|
+
const f = await Et.get(vl);
|
|
43873
|
+
o.value = f.data;
|
|
43874
|
+
} catch (f) {
|
|
43875
|
+
console.error("Error fetching segmentation fields:", f);
|
|
43876
43876
|
} finally {
|
|
43877
43877
|
s.value = !1;
|
|
43878
43878
|
}
|
|
@@ -43880,23 +43880,17 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
43880
43880
|
return lt(() => {
|
|
43881
43881
|
n.modelValue.length === 0 && l();
|
|
43882
43882
|
}), Ve(
|
|
43883
|
-
() => n.modelValue,
|
|
43884
|
-
(u) => {
|
|
43885
|
-
o.value = i(u);
|
|
43886
|
-
},
|
|
43887
|
-
{ deep: !0 }
|
|
43888
|
-
), Ve(
|
|
43889
43883
|
o,
|
|
43890
|
-
(
|
|
43891
|
-
a("update:modelValue", i(
|
|
43884
|
+
(f) => {
|
|
43885
|
+
JSON.stringify(f) !== JSON.stringify(n.modelValue) && a("update:modelValue", i(f));
|
|
43892
43886
|
},
|
|
43893
43887
|
{ deep: !0 }
|
|
43894
|
-
), (
|
|
43888
|
+
), (f, u) => {
|
|
43895
43889
|
const c = $t("SimpleSelect");
|
|
43896
43890
|
return s.value ? (v(), y("div", Nx, [
|
|
43897
43891
|
Me(Fa)
|
|
43898
43892
|
])) : (v(), y("div", Gx, [
|
|
43899
|
-
|
|
43893
|
+
u[0] || (u[0] = r("header", { class: "text-start w-full items-center justify-between flex mb-2 px-1" }, [
|
|
43900
43894
|
r("p", { class: "text-sm font-semibold" }, "Campos Personalizados")
|
|
43901
43895
|
], -1)),
|
|
43902
43896
|
r("div", Ix, [
|
|
@@ -43952,7 +43946,7 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
43952
43946
|
]));
|
|
43953
43947
|
};
|
|
43954
43948
|
}
|
|
43955
|
-
}, Xx = /* @__PURE__ */ Oe(Yx, [["__scopeId", "data-v-
|
|
43949
|
+
}, Xx = /* @__PURE__ */ Oe(Yx, [["__scopeId", "data-v-05f68e6b"]]), Kx = { class: "modal_head" }, Qx = { class: "modal_responsive" }, Jx = {
|
|
43956
43950
|
style: { "min-height": "100%" },
|
|
43957
43951
|
class: "flex min-h-full items-center justify-center text-center"
|
|
43958
43952
|
}, eb = { class: "modal-form-container" }, tb = { class: "flex justify-between p-2.5 rounded-t-2xl bg-base-300 items-center text-current" }, nb = { class: "flex items-center gap-2" }, ab = { class: "flex flex-col items-start" }, ob = { class: "text-lg font-semibold" }, sb = {
|
|
@@ -44027,7 +44021,7 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44027
44021
|
},
|
|
44028
44022
|
emits: ["close", "save"],
|
|
44029
44023
|
setup(e, { emit: t }) {
|
|
44030
|
-
const n = t, a = G("data"), o = e, s = dn({ ...o.form }), i = G(!1), l = G(!1),
|
|
44024
|
+
const n = t, a = G("data"), o = e, s = dn({ ...o.form }), i = G(!1), l = G(!1), f = G([
|
|
44031
44025
|
{
|
|
44032
44026
|
title: "Nome",
|
|
44033
44027
|
info: "Nome do contato",
|
|
@@ -44050,7 +44044,7 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44050
44044
|
set: (m) => s.notes = m
|
|
44051
44045
|
})
|
|
44052
44046
|
}
|
|
44053
|
-
]),
|
|
44047
|
+
]), u = ue(
|
|
44054
44048
|
() => o.form.mode === "edit" ? "Editar cliente" : "Adicionar Novo Cliente"
|
|
44055
44049
|
), c = async () => {
|
|
44056
44050
|
try {
|
|
@@ -44097,7 +44091,7 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44097
44091
|
})
|
|
44098
44092
|
], -1)),
|
|
44099
44093
|
r("span", ab, [
|
|
44100
|
-
r("p", ob, le(
|
|
44094
|
+
r("p", ob, le(u.value), 1),
|
|
44101
44095
|
s.id ? (v(), y("p", sb, " ID: " + le(s.id), 1)) : X("", !0)
|
|
44102
44096
|
])
|
|
44103
44097
|
]),
|
|
@@ -44171,8 +44165,8 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44171
44165
|
r("div", mb, [
|
|
44172
44166
|
r("div", pb, [
|
|
44173
44167
|
Me(Ta, {
|
|
44174
|
-
"onUpdate:content": d[4] || (d[4] = (w) =>
|
|
44175
|
-
content:
|
|
44168
|
+
"onUpdate:content": d[4] || (d[4] = (w) => f.value[0].data = w.data),
|
|
44169
|
+
content: f.value[0]
|
|
44176
44170
|
}, null, 8, ["content"])
|
|
44177
44171
|
]),
|
|
44178
44172
|
r("div", gb, [
|
|
@@ -44469,13 +44463,13 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44469
44463
|
}, Ns = /* @__PURE__ */ Oe(Wb, [["__scopeId", "data-v-e2356f0a"]]), qb = {
|
|
44470
44464
|
__name: "floating-dev",
|
|
44471
44465
|
setup(e) {
|
|
44472
|
-
const t = G(!1), n = G({ x: 30, y: 30 }), a = G({ x: 0, y: 0 }), o = G(!1), s = G(null), i = G(null), l = G({ vertical: "bottom", horizontal: "right" }),
|
|
44466
|
+
const t = G(!1), n = G({ x: 30, y: 30 }), a = G({ x: 0, y: 0 }), o = G(!1), s = G(null), i = G(null), l = G({ vertical: "bottom", horizontal: "right" }), f = ue(() => ({
|
|
44473
44467
|
position: "fixed",
|
|
44474
44468
|
left: `${n.value.x}px`,
|
|
44475
44469
|
top: `${n.value.y}px`,
|
|
44476
44470
|
zIndex: 1e3,
|
|
44477
44471
|
cursor: o.value ? "grabbing" : "grab"
|
|
44478
|
-
})),
|
|
44472
|
+
})), u = ue(() => {
|
|
44479
44473
|
const p = {
|
|
44480
44474
|
position: "absolute",
|
|
44481
44475
|
background: "#fff",
|
|
@@ -44522,7 +44516,7 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44522
44516
|
}
|
|
44523
44517
|
return nn(h), (p, x) => (v(), y("div", {
|
|
44524
44518
|
class: "floating-widget",
|
|
44525
|
-
style: Ke(
|
|
44519
|
+
style: Ke(f.value),
|
|
44526
44520
|
ref_key: "widgetRef",
|
|
44527
44521
|
ref: s,
|
|
44528
44522
|
onMousedown: d,
|
|
@@ -44571,7 +44565,7 @@ const Fa = /* @__PURE__ */ Oe(Rx, [["render", jx], ["__scopeId", "data-v-3f0502d
|
|
|
44571
44565
|
class: "floating-panel",
|
|
44572
44566
|
ref_key: "panelRef",
|
|
44573
44567
|
ref: i,
|
|
44574
|
-
style: Ke(
|
|
44568
|
+
style: Ke(u.value)
|
|
44575
44569
|
}, [
|
|
44576
44570
|
mt(p.$slots, "default", {}, () => [
|
|
44577
44571
|
x[1] || (x[1] = r("p", { style: { "text-align": "center", "font-size": "0.9rem" } }, " Adicione seu conteúdo aqui 👇 ", -1))
|
|
@@ -44614,8 +44608,8 @@ async function Kb(e, t, n, a = [], o = [], s = []) {
|
|
|
44614
44608
|
t && await i.setToken(t), n && (Et.defaults.baseURL = n);
|
|
44615
44609
|
const l = Ea(e);
|
|
44616
44610
|
o.length > 0 && (l.departments = o, l.count = o.length);
|
|
44617
|
-
const
|
|
44618
|
-
a.length > 0 && (
|
|
44611
|
+
const f = Bn(e);
|
|
44612
|
+
a.length > 0 && (f.attendants = a, f.count = a.length), await ma(e).fetchInstances();
|
|
44619
44613
|
} catch (i) {
|
|
44620
44614
|
console.error("Erro no setupLibrary:", i);
|
|
44621
44615
|
}
|