sm-click-library-ui 0.0.555 → 0.0.557
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-XoU3ICto.js → index-BM6dFBPS.js} +459 -441
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +15 -15
- package/dist/style.css +1 -1
- package/dist/{web-DnylSu9V.js → web-CWwPp7af.js} +2 -2
- package/dist/{web-B4LMWUyk.js → web-Dpm6DMSX.js} +2 -2
- package/package.json +1 -1
|
@@ -2358,22 +2358,22 @@ vt.getAdapter = Gi.getAdapter;
|
|
|
2358
2358
|
vt.HttpStatusCode = ms;
|
|
2359
2359
|
vt.default = vt;
|
|
2360
2360
|
const {
|
|
2361
|
-
Axios:
|
|
2362
|
-
AxiosError:
|
|
2363
|
-
CanceledError:
|
|
2364
|
-
isCancel:
|
|
2365
|
-
CancelToken:
|
|
2366
|
-
VERSION:
|
|
2367
|
-
all:
|
|
2368
|
-
Cancel:
|
|
2369
|
-
isAxiosError:
|
|
2370
|
-
spread:
|
|
2371
|
-
toFormData:
|
|
2372
|
-
AxiosHeaders:
|
|
2373
|
-
HttpStatusCode:
|
|
2374
|
-
formToJSON:
|
|
2375
|
-
getAdapter:
|
|
2376
|
-
mergeConfig:
|
|
2361
|
+
Axios: TH,
|
|
2362
|
+
AxiosError: PH,
|
|
2363
|
+
CanceledError: DH,
|
|
2364
|
+
isCancel: OH,
|
|
2365
|
+
CancelToken: FH,
|
|
2366
|
+
VERSION: HH,
|
|
2367
|
+
all: zH,
|
|
2368
|
+
Cancel: VH,
|
|
2369
|
+
isAxiosError: RH,
|
|
2370
|
+
spread: jH,
|
|
2371
|
+
toFormData: NH,
|
|
2372
|
+
AxiosHeaders: IH,
|
|
2373
|
+
HttpStatusCode: GH,
|
|
2374
|
+
formToJSON: qH,
|
|
2375
|
+
getAdapter: WH,
|
|
2376
|
+
mergeConfig: UH
|
|
2377
2377
|
} = vt, Zi = la("auth", {
|
|
2378
2378
|
state: () => ({
|
|
2379
2379
|
jwtToken: null,
|
|
@@ -4215,12 +4215,12 @@ let P3 = {};
|
|
|
4215
4215
|
function jo() {
|
|
4216
4216
|
return P3;
|
|
4217
4217
|
}
|
|
4218
|
-
function
|
|
4218
|
+
function qt(e, t) {
|
|
4219
4219
|
return Rt(t || e, e);
|
|
4220
4220
|
}
|
|
4221
4221
|
function Gn(e, t) {
|
|
4222
4222
|
var l, u, f, c;
|
|
4223
|
-
const n = jo(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((u = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((c = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : c.weekStartsOn) ?? 0, o =
|
|
4223
|
+
const n = jo(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((u = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((c = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : c.weekStartsOn) ?? 0, o = qt(e, t == null ? void 0 : t.in), r = o.getDay(), i = (r < a ? 7 : 0) + r - a;
|
|
4224
4224
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
4225
4225
|
}
|
|
4226
4226
|
function D3(e, t, n) {
|
|
@@ -7822,13 +7822,13 @@ const b6 = { class: "itemc-head" }, x6 = {
|
|
|
7822
7822
|
const { in: Vt, notIn: pt, range: Et, contains: Tn } = De;
|
|
7823
7823
|
if (Vt && !Vt.map(String).includes(String(nt)) || pt && pt.map(String).includes(String(nt))) return !1;
|
|
7824
7824
|
if (Et && typeof nt == "number") {
|
|
7825
|
-
const [
|
|
7826
|
-
if (
|
|
7825
|
+
const [Wt, en] = Et;
|
|
7826
|
+
if (Wt != null && nt < Wt || en != null && nt > en)
|
|
7827
7827
|
return !1;
|
|
7828
7828
|
}
|
|
7829
7829
|
if (Tn != null) {
|
|
7830
|
-
const
|
|
7831
|
-
if (!(Array.isArray(Tn) ? Tn : [Tn]).some((Cl) =>
|
|
7830
|
+
const Wt = Array.isArray(nt) ? nt : String(nt).split(",");
|
|
7831
|
+
if (!(Array.isArray(Tn) ? Tn : [Tn]).some((Cl) => Wt.map(String).includes(String(Cl))))
|
|
7832
7832
|
return !1;
|
|
7833
7833
|
}
|
|
7834
7834
|
return !0;
|
|
@@ -8697,14 +8697,14 @@ const M8 = /* @__PURE__ */ v0(b8, [["render", S8], ["__scopeId", "data-v-d3e3763
|
|
|
8697
8697
|
}
|
|
8698
8698
|
}), qn = /* @__PURE__ */ v0($8, [["__scopeId", "data-v-4bdee133"]]);
|
|
8699
8699
|
function E8(e, t, n) {
|
|
8700
|
-
const a =
|
|
8700
|
+
const a = qt(e, n == null ? void 0 : n.in);
|
|
8701
8701
|
return isNaN(t) ? Rt(e, NaN) : (a.setDate(a.getDate() + t), a);
|
|
8702
8702
|
}
|
|
8703
8703
|
function ko(e, t) {
|
|
8704
8704
|
return Gn(e, { ...t, weekStartsOn: 1 });
|
|
8705
8705
|
}
|
|
8706
8706
|
function g0(e, t) {
|
|
8707
|
-
const n =
|
|
8707
|
+
const n = qt(e, t == null ? void 0 : t.in), a = n.getFullYear(), o = Rt(n, 0);
|
|
8708
8708
|
o.setFullYear(a + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
8709
8709
|
const r = ko(o), i = Rt(n, 0);
|
|
8710
8710
|
i.setFullYear(a, 0, 4), i.setHours(0, 0, 0, 0);
|
|
@@ -8712,7 +8712,7 @@ function g0(e, t) {
|
|
|
8712
8712
|
return n.getTime() >= r.getTime() ? a + 1 : n.getTime() >= l.getTime() ? a : a - 1;
|
|
8713
8713
|
}
|
|
8714
8714
|
function Xr(e) {
|
|
8715
|
-
const t =
|
|
8715
|
+
const t = qt(e), n = new Date(
|
|
8716
8716
|
Date.UTC(
|
|
8717
8717
|
t.getFullYear(),
|
|
8718
8718
|
t.getMonth(),
|
|
@@ -8726,7 +8726,7 @@ function Xr(e) {
|
|
|
8726
8726
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
8727
8727
|
}
|
|
8728
8728
|
function Co(e, t) {
|
|
8729
|
-
const n =
|
|
8729
|
+
const n = qt(e, t == null ? void 0 : t.in);
|
|
8730
8730
|
return n.setHours(0, 0, 0, 0), n;
|
|
8731
8731
|
}
|
|
8732
8732
|
function _8(e, t, n) {
|
|
@@ -8756,23 +8756,23 @@ function L8(e) {
|
|
|
8756
8756
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
8757
8757
|
}
|
|
8758
8758
|
function T8(e) {
|
|
8759
|
-
return !(!L8(e) && typeof e != "number" || isNaN(+
|
|
8759
|
+
return !(!L8(e) && typeof e != "number" || isNaN(+qt(e)));
|
|
8760
8760
|
}
|
|
8761
8761
|
function P8(e, t) {
|
|
8762
|
-
const n =
|
|
8762
|
+
const n = qt(e, t == null ? void 0 : t.in);
|
|
8763
8763
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
8764
8764
|
}
|
|
8765
8765
|
function D8(e, t) {
|
|
8766
|
-
const n =
|
|
8766
|
+
const n = qt(e, t == null ? void 0 : t.in);
|
|
8767
8767
|
return _8(n, P8(n)) + 1;
|
|
8768
8768
|
}
|
|
8769
8769
|
function O8(e, t) {
|
|
8770
|
-
const n =
|
|
8770
|
+
const n = qt(e, t == null ? void 0 : t.in), a = +ko(n) - +B8(n);
|
|
8771
8771
|
return Math.round(a / i0) + 1;
|
|
8772
8772
|
}
|
|
8773
8773
|
function b0(e, t) {
|
|
8774
8774
|
var c, m, v, b;
|
|
8775
|
-
const n =
|
|
8775
|
+
const n = qt(e, t == null ? void 0 : t.in), a = n.getFullYear(), o = jo(), r = (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 ?? ((b = (v = o.locale) == null ? void 0 : v.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = Rt((t == null ? void 0 : t.in) || e, 0);
|
|
8776
8776
|
i.setFullYear(a + 1, 0, r), i.setHours(0, 0, 0, 0);
|
|
8777
8777
|
const l = Gn(i, t), u = Rt((t == null ? void 0 : t.in) || e, 0);
|
|
8778
8778
|
u.setFullYear(a, 0, r), u.setHours(0, 0, 0, 0);
|
|
@@ -8785,7 +8785,7 @@ function F8(e, t) {
|
|
|
8785
8785
|
return r.setFullYear(o, 0, a), r.setHours(0, 0, 0, 0), Gn(r, t);
|
|
8786
8786
|
}
|
|
8787
8787
|
function H8(e, t) {
|
|
8788
|
-
const n =
|
|
8788
|
+
const n = qt(e, t == null ? void 0 : t.in), a = +Gn(n, t) - +F8(n, t);
|
|
8789
8789
|
return Math.round(a / i0) + 1;
|
|
8790
8790
|
}
|
|
8791
8791
|
function ct(e, t) {
|
|
@@ -9417,7 +9417,7 @@ function W8(e, t, n) {
|
|
|
9417
9417
|
const U8 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Z8 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Y8 = /^'([^]*?)'?$/, X8 = /''/g, Q8 = /[a-zA-Z]/;
|
|
9418
9418
|
function t1(e, t, n) {
|
|
9419
9419
|
var c, m, v, b, h, g, y, x;
|
|
9420
|
-
const a = jo(), o = (n == null ? void 0 : n.locale) ?? a.locale ?? d4, r = (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 ?? ((b = (v = a.locale) == null ? void 0 : v.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? a.weekStartsOn ?? ((x = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : x.weekStartsOn) ?? 0, l =
|
|
9420
|
+
const a = jo(), o = (n == null ? void 0 : n.locale) ?? a.locale ?? d4, r = (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 ?? ((b = (v = a.locale) == null ? void 0 : v.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? a.weekStartsOn ?? ((x = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : x.weekStartsOn) ?? 0, l = qt(e, n == null ? void 0 : n.in);
|
|
9421
9421
|
if (!T8(l))
|
|
9422
9422
|
throw new RangeError("Invalid time value");
|
|
9423
9423
|
let u = t.match(Z8).map((A) => {
|
|
@@ -10011,10 +10011,10 @@ var Ve, r1;
|
|
|
10011
10011
|
})(Ve || (Ve = {})), function(e) {
|
|
10012
10012
|
e.Cover = "cover", e.Full = "full", e.Max = "max";
|
|
10013
10013
|
}(r1 || (r1 = {}));
|
|
10014
|
-
const
|
|
10014
|
+
const Ut = { x: 0, y: 0, scale: 1, angle: 0, flipX: 1, flipY: 1 }, ys = { bounds: !0, classes: { container: "f-panzoom", wrapper: "f-panzoom__wrapper", content: "f-panzoom__content", viewport: "f-panzoom__viewport" }, clickAction: Ve.ToggleFull, dblClickAction: !1, gestures: {}, height: "auto", l10n: er, maxScale: 4, minScale: 1, mouseMoveFactor: 1, panMode: "drag", protected: !1, singleClickAction: !1, spinnerTpl: '<div class="f-spinner"></div>', wheelAction: Ve.Zoom, width: "auto" };
|
|
10015
10015
|
let Wa, i1 = 0, l1 = 0, Ua = 0;
|
|
10016
10016
|
const bs = (e, t = {}, n = {}) => {
|
|
10017
|
-
let a, o, r, i, l, u, f, c, m = 0, v = Object.assign(Object.assign({}, ys), t), b = {}, h = Object.assign({},
|
|
10017
|
+
let a, o, r, i, l, u, f, c, m = 0, v = Object.assign(Object.assign({}, ys), t), b = {}, h = Object.assign({}, Ut), g = Object.assign({}, Ut);
|
|
10018
10018
|
const y = [];
|
|
10019
10019
|
function x(q) {
|
|
10020
10020
|
let ne = v[q];
|
|
@@ -10114,12 +10114,12 @@ const bs = (e, t = {}, n = {}) => {
|
|
|
10114
10114
|
w("loaded");
|
|
10115
10115
|
const { width: q, height: ne } = S();
|
|
10116
10116
|
nn(o) && (o.setAttribute("width", q + ""), o.setAttribute("height", ne + "")), a && (Lt(a, "has-error"), nn(o) && (a.setAttribute("width", q + ""), a.setAttribute("height", ne + ""), a.style.aspectRatio = `${q / ne || ""}`)), u = _n().on("start", (ue, J) => {
|
|
10117
|
-
J.angle !== void 0 && (J.angle = 90 * Math.round(J.angle / 90)), J.flipX !== void 0 && (J.flipX = J.flipX > 0 ? 1 : -1), J.flipY !== void 0 && (J.flipY = J.flipY > 0 ? 1 : -1), g = Object.assign(Object.assign({},
|
|
10117
|
+
J.angle !== void 0 && (J.angle = 90 * Math.round(J.angle / 90)), J.flipX !== void 0 && (J.flipX = J.flipX > 0 ? 1 : -1), J.flipY !== void 0 && (J.flipY = J.flipY > 0 ? 1 : -1), g = Object.assign(Object.assign({}, Ut), J), ee(), w("animationStart");
|
|
10118
10118
|
}).on("pause", (ue) => {
|
|
10119
|
-
g = Object.assign(Object.assign({},
|
|
10119
|
+
g = Object.assign(Object.assign({}, Ut), ue);
|
|
10120
10120
|
}).on("step", (ue) => {
|
|
10121
10121
|
if (!A()) return void (u == null || u.end());
|
|
10122
|
-
if (h = Object.assign(Object.assign({},
|
|
10122
|
+
if (h = Object.assign(Object.assign({}, Ut), ue), $() || !x("bounds") || ce() || g.scale > h.scale || g.scale < P()) return void me();
|
|
10123
10123
|
const J = U(g.scale);
|
|
10124
10124
|
let de = !1, $e = !1, Ae = !1, _e = !1;
|
|
10125
10125
|
h.x < J.x[0] && (de = !0), h.x > J.x[1] && ($e = !0), h.y < J.y[0] && (_e = !0), h.y > J.y[1] && (Ae = !0);
|
|
@@ -10171,7 +10171,7 @@ const bs = (e, t = {}, n = {}) => {
|
|
|
10171
10171
|
const q = Object.assign({}, x("startPos") || {});
|
|
10172
10172
|
let ne = q.scale, ve = 1;
|
|
10173
10173
|
ve = typeof ne == "string" ? T(ne) : typeof ne == "number" ? ne : P();
|
|
10174
|
-
const ue = Object.assign(Object.assign(Object.assign({},
|
|
10174
|
+
const ue = Object.assign(Object.assign(Object.assign({}, Ut), q), { scale: ve }), J = $() ? F(ve) : void 0;
|
|
10175
10175
|
if (J) {
|
|
10176
10176
|
const { x: de, y: $e } = J;
|
|
10177
10177
|
ue.x = de, ue.y = $e;
|
|
@@ -10341,7 +10341,7 @@ const bs = (e, t = {}, n = {}) => {
|
|
|
10341
10341
|
let je = [];
|
|
10342
10342
|
switch (q) {
|
|
10343
10343
|
case Ve.Reset:
|
|
10344
|
-
J = Object.assign({},
|
|
10344
|
+
J = Object.assign({}, Ut), J.scale = P();
|
|
10345
10345
|
break;
|
|
10346
10346
|
case Ve.Pan:
|
|
10347
10347
|
case Ve.Move:
|
|
@@ -10520,7 +10520,7 @@ const bs = (e, t = {}, n = {}) => {
|
|
|
10520
10520
|
w("destroy");
|
|
10521
10521
|
for (const q of Object.values(b)) q == null || q.destroy(be);
|
|
10522
10522
|
for (const q of y) q();
|
|
10523
|
-
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({},
|
|
10523
|
+
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({}, Ut), g = Object.assign({}, Ut), u == null || u.destroy(), u = void 0, l == null || l.destroy(), l = void 0, m = 4, be;
|
|
10524
10524
|
}, emit: w, execute: X, getBoundaries: U, getContainer: function() {
|
|
10525
10525
|
return e;
|
|
10526
10526
|
}, getContent: function() {
|
|
@@ -11053,8 +11053,8 @@ const Ao = (e, t = {}, n = {}) => {
|
|
|
11053
11053
|
const St = (We = $[M]) === null || We === void 0 ? void 0 : We.slides[0], Vt = St == null ? void 0 : St.index, pt = (Xe = $[oe]) === null || Xe === void 0 ? void 0 : Xe.slides[0], Et = pt == null ? void 0 : pt.index, Tn = (nt = $[oe]) === null || nt === void 0 ? void 0 : nt.pos;
|
|
11054
11054
|
if (Et === void 0 || Vt === void 0 || Vt === Et || C === Tn || Math.abs(tt() - ((pt == null ? void 0 : pt.dim) || 0)) > 1) return !1;
|
|
11055
11055
|
w = !1, o.pause(), ve(), Ue(v, "in-transition"), C = D = Tn;
|
|
11056
|
-
const
|
|
11057
|
-
return me(),
|
|
11056
|
+
const Wt = se(St), en = se(pt);
|
|
11057
|
+
return me(), Wt && (S.add(Vt), Wt.style.transform = "", Wt.addEventListener("animationend", ue), Lt(Wt, c.classes.isSelected), Wt.inert = !1, Ue(Wt, `f-${Me}Out to-${Ct > 0 ? "next" : "prev"}`)), en && (S.add(Et), en.style.transform = "", en.addEventListener("animationend", ue), Ue(en, c.classes.isSelected), en.inert = !1, Ue(en, `f-${Me}In from-${Ct > 0 ? "prev" : "next"}`)), ze(), !0;
|
|
11058
11058
|
}(I, re)) return;
|
|
11059
11059
|
I = g ? (I % ge + ge) % ge : et(0, I, ge - 1), D = ((ae = $[I || 0]) === null || ae === void 0 ? void 0 : ae.pos) || 0;
|
|
11060
11060
|
const te = o.isRunning() ? o.getEndValues().pos : C;
|
|
@@ -12555,11 +12555,11 @@ const T1 = "with-fancybox", jf = () => {
|
|
|
12555
12555
|
if (g("zoomEffect") && le.state === 1 && ($e = ye(le)), $e) {
|
|
12556
12556
|
ue = !0;
|
|
12557
12557
|
const Ae = () => {
|
|
12558
|
-
$e = ye(le), $e ? ne.to(Object.assign(Object.assign({},
|
|
12558
|
+
$e = ye(le), $e ? ne.to(Object.assign(Object.assign({}, Ut), $e)) : Ze();
|
|
12559
12559
|
};
|
|
12560
12560
|
q.on("refresh", () => {
|
|
12561
12561
|
Ae();
|
|
12562
|
-
}), ne.easing(_n.Easings.EaseOut).duration(350).from(Object.assign({}, q.getTransform())).to(Object.assign(Object.assign({},
|
|
12562
|
+
}), ne.easing(_n.Easings.EaseOut).duration(350).from(Object.assign({}, q.getTransform())).to(Object.assign(Object.assign({}, Ut), $e)).start(), be != null && be.getAnimations() && (be.style.animationPlayState = "paused", requestAnimationFrame(() => {
|
|
12563
12563
|
Ae();
|
|
12564
12564
|
}));
|
|
12565
12565
|
}
|
|
@@ -15105,7 +15105,7 @@ sr("CapacitorHttp", {
|
|
|
15105
15105
|
web: () => new vh()
|
|
15106
15106
|
});
|
|
15107
15107
|
const Fn = sr("VoiceRecorder", {
|
|
15108
|
-
web: () => import("./web-
|
|
15108
|
+
web: () => import("./web-Dpm6DMSX.js").then((e) => e.w).then((e) => new e.VoiceRecorderWeb())
|
|
15109
15109
|
});
|
|
15110
15110
|
function N1(e, t) {
|
|
15111
15111
|
return d(), p("svg", {
|
|
@@ -17404,7 +17404,7 @@ const Gm = (e) => {
|
|
|
17404
17404
|
} finally {
|
|
17405
17405
|
a ? fo.value = !1 : po.value = !1;
|
|
17406
17406
|
}
|
|
17407
|
-
},
|
|
17407
|
+
}, YH = async () => {
|
|
17408
17408
|
if (ha)
|
|
17409
17409
|
return ha;
|
|
17410
17410
|
ha = (async () => {
|
|
@@ -48139,7 +48139,7 @@ function Ba(e) {
|
|
|
48139
48139
|
var t = Jt(e).Element;
|
|
48140
48140
|
return e instanceof t || e instanceof Element;
|
|
48141
48141
|
}
|
|
48142
|
-
function
|
|
48142
|
+
function Nt(e) {
|
|
48143
48143
|
var t = Jt(e).HTMLElement;
|
|
48144
48144
|
return e instanceof t || e instanceof HTMLElement;
|
|
48145
48145
|
}
|
|
@@ -48156,7 +48156,7 @@ function lE(e) {
|
|
|
48156
48156
|
};
|
|
48157
48157
|
}
|
|
48158
48158
|
function cE(e) {
|
|
48159
|
-
return e === Jt(e) || !
|
|
48159
|
+
return e === Jt(e) || !Nt(e) ? dr(e) : lE(e);
|
|
48160
48160
|
}
|
|
48161
48161
|
function cn(e) {
|
|
48162
48162
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -48183,8 +48183,8 @@ function dE(e) {
|
|
|
48183
48183
|
}
|
|
48184
48184
|
function uE(e, t, n) {
|
|
48185
48185
|
n === void 0 && (n = !1);
|
|
48186
|
-
var a =
|
|
48187
|
-
|
|
48186
|
+
var a = Nt(t);
|
|
48187
|
+
Nt(t) && dE(t);
|
|
48188
48188
|
var o = Ln(t), r = oa(e), i = {
|
|
48189
48189
|
scrollLeft: 0,
|
|
48190
48190
|
scrollTop: 0
|
|
@@ -48193,7 +48193,7 @@ function uE(e, t, n) {
|
|
|
48193
48193
|
y: 0
|
|
48194
48194
|
};
|
|
48195
48195
|
return (a || !a && !n) && ((cn(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
48196
|
-
fr(o)) && (i = cE(t)),
|
|
48196
|
+
fr(o)) && (i = cE(t)), Nt(t) ? (l = oa(t), l.x += t.clientLeft, l.y += t.clientTop) : o && (l.x = ur(o))), {
|
|
48197
48197
|
x: r.left + i.scrollLeft - l.x,
|
|
48198
48198
|
y: r.top + i.scrollTop - l.y,
|
|
48199
48199
|
width: r.width,
|
|
@@ -48222,7 +48222,7 @@ function No(e) {
|
|
|
48222
48222
|
);
|
|
48223
48223
|
}
|
|
48224
48224
|
function Q0(e) {
|
|
48225
|
-
return ["html", "body", "#document"].indexOf(cn(e)) >= 0 ? e.ownerDocument.body :
|
|
48225
|
+
return ["html", "body", "#document"].indexOf(cn(e)) >= 0 ? e.ownerDocument.body : Nt(e) && fr(e) ? e : Q0(No(e));
|
|
48226
48226
|
}
|
|
48227
48227
|
function Ma(e, t) {
|
|
48228
48228
|
var n;
|
|
@@ -48237,17 +48237,17 @@ function fE(e) {
|
|
|
48237
48237
|
return ["table", "td", "th"].indexOf(cn(e)) >= 0;
|
|
48238
48238
|
}
|
|
48239
48239
|
function oi(e) {
|
|
48240
|
-
return !
|
|
48240
|
+
return !Nt(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
48241
48241
|
gn(e).position === "fixed" ? null : e.offsetParent;
|
|
48242
48242
|
}
|
|
48243
48243
|
function pE(e) {
|
|
48244
48244
|
var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
|
|
48245
|
-
if (n &&
|
|
48245
|
+
if (n && Nt(e)) {
|
|
48246
48246
|
var a = gn(e);
|
|
48247
48247
|
if (a.position === "fixed")
|
|
48248
48248
|
return null;
|
|
48249
48249
|
}
|
|
48250
|
-
for (var o = No(e);
|
|
48250
|
+
for (var o = No(e); Nt(o) && ["html", "body"].indexOf(cn(o)) < 0; ) {
|
|
48251
48251
|
var r = gn(o);
|
|
48252
48252
|
if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none")
|
|
48253
48253
|
return o;
|
|
@@ -48260,7 +48260,7 @@ function Va(e) {
|
|
|
48260
48260
|
n = oi(n);
|
|
48261
48261
|
return n && (cn(n) === "html" || cn(n) === "body" && gn(n).position === "static") ? t : n || pE(e) || t;
|
|
48262
48262
|
}
|
|
48263
|
-
var
|
|
48263
|
+
var It = "top", Xt = "bottom", Qt = "right", Gt = "left", hr = "auto", Ra = [It, Xt, Qt, Gt], sa = "start", La = "end", hE = "clippingParents", K0 = "viewport", va = "popper", mE = "reference", si = /* @__PURE__ */ Ra.reduce(function(e, t) {
|
|
48264
48264
|
return e.concat([t + "-" + sa, t + "-" + La]);
|
|
48265
48265
|
}, []), J0 = /* @__PURE__ */ [].concat(Ra, [hr]).reduce(function(e, t) {
|
|
48266
48266
|
return e.concat([t, t + "-" + sa, t + "-" + La]);
|
|
@@ -48363,10 +48363,10 @@ function TE(e) {
|
|
|
48363
48363
|
return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
48364
48364
|
}
|
|
48365
48365
|
function ri(e, t) {
|
|
48366
|
-
return t === K0 ? Ps(BE(e)) :
|
|
48366
|
+
return t === K0 ? Ps(BE(e)) : Nt(t) ? TE(t) : Ps(LE(Ln(e)));
|
|
48367
48367
|
}
|
|
48368
48368
|
function PE(e) {
|
|
48369
|
-
var t = Ma(No(e)), n = ["absolute", "fixed"].indexOf(gn(e).position) >= 0, a = n &&
|
|
48369
|
+
var t = Ma(No(e)), n = ["absolute", "fixed"].indexOf(gn(e).position) >= 0, a = n && Nt(e) ? Va(e) : e;
|
|
48370
48370
|
return Ba(a) ? t.filter(function(o) {
|
|
48371
48371
|
return Ba(o) && el(o, a) && cn(o) !== "body";
|
|
48372
48372
|
}) : [];
|
|
@@ -48387,7 +48387,7 @@ function mr(e) {
|
|
|
48387
48387
|
function tl(e) {
|
|
48388
48388
|
var t = e.reference, n = e.element, a = e.placement, o = a ? ln(a) : null, r = a ? ra(a) : null, i = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, u;
|
|
48389
48389
|
switch (o) {
|
|
48390
|
-
case
|
|
48390
|
+
case It:
|
|
48391
48391
|
u = {
|
|
48392
48392
|
x: i,
|
|
48393
48393
|
y: t.y - n.height
|
|
@@ -48405,7 +48405,7 @@ function tl(e) {
|
|
|
48405
48405
|
y: l
|
|
48406
48406
|
};
|
|
48407
48407
|
break;
|
|
48408
|
-
case
|
|
48408
|
+
case Gt:
|
|
48409
48409
|
u = {
|
|
48410
48410
|
x: t.x - n.width,
|
|
48411
48411
|
y: l
|
|
@@ -48462,7 +48462,7 @@ function vr(e, t) {
|
|
|
48462
48462
|
if (c === va && L) {
|
|
48463
48463
|
var _ = L[o];
|
|
48464
48464
|
Object.keys(H).forEach(function(B) {
|
|
48465
|
-
var S = [Qt, Xt].indexOf(B) >= 0 ? 1 : -1, k = [
|
|
48465
|
+
var S = [Qt, Xt].indexOf(B) >= 0 ? 1 : -1, k = [It, Xt].indexOf(B) >= 0 ? "y" : "x";
|
|
48466
48466
|
H[B] += _[k] * S;
|
|
48467
48467
|
});
|
|
48468
48468
|
}
|
|
@@ -48629,10 +48629,10 @@ function jE(e) {
|
|
|
48629
48629
|
};
|
|
48630
48630
|
}
|
|
48631
48631
|
function ci(e) {
|
|
48632
|
-
var t, n = e.popper, a = e.popperRect, o = e.placement, r = e.variation, i = e.offsets, l = e.position, u = e.gpuAcceleration, f = e.adaptive, c = e.roundOffsets, m = c === !0 ? jE(i) : typeof c == "function" ? c(i) : i, v = m.x, b = v === void 0 ? 0 : v, h = m.y, g = h === void 0 ? 0 : h, y = i.hasOwnProperty("x"), x = i.hasOwnProperty("y"), A =
|
|
48632
|
+
var t, n = e.popper, a = e.popperRect, o = e.placement, r = e.variation, i = e.offsets, l = e.position, u = e.gpuAcceleration, f = e.adaptive, c = e.roundOffsets, m = c === !0 ? jE(i) : typeof c == "function" ? c(i) : i, v = m.x, b = v === void 0 ? 0 : v, h = m.y, g = h === void 0 ? 0 : h, y = i.hasOwnProperty("x"), x = i.hasOwnProperty("y"), A = Gt, C = It, w = window;
|
|
48633
48633
|
if (f) {
|
|
48634
48634
|
var M = Va(n), D = "clientHeight", j = "clientWidth";
|
|
48635
|
-
M === Jt(n) && (M = Ln(n), gn(M).position !== "static" && l === "absolute" && (D = "scrollHeight", j = "scrollWidth")), M = M, (o ===
|
|
48635
|
+
M === Jt(n) && (M = Ln(n), gn(M).position !== "static" && l === "absolute" && (D = "scrollHeight", j = "scrollWidth")), M = M, (o === It || (o === Gt || o === Qt) && r === La) && (C = Xt, g -= M[D] - a.height, g *= u ? 1 : -1), (o === Gt || (o === It || o === Xt) && r === La) && (A = Qt, b -= M[j] - a.width, b *= u ? 1 : -1);
|
|
48636
48636
|
}
|
|
48637
48637
|
var H = Object.assign({
|
|
48638
48638
|
position: l
|
|
@@ -48676,7 +48676,7 @@ function GE(e) {
|
|
|
48676
48676
|
var t = e.state;
|
|
48677
48677
|
Object.keys(t.elements).forEach(function(n) {
|
|
48678
48678
|
var a = t.styles[n] || {}, o = t.attributes[n] || {}, r = t.elements[n];
|
|
48679
|
-
!
|
|
48679
|
+
!Nt(r) || !cn(r) || (Object.assign(r.style, a), Object.keys(o).forEach(function(i) {
|
|
48680
48680
|
var l = o[i];
|
|
48681
48681
|
l === !1 ? r.removeAttribute(i) : r.setAttribute(i, l === !0 ? "" : l);
|
|
48682
48682
|
}));
|
|
@@ -48700,7 +48700,7 @@ function qE(e) {
|
|
|
48700
48700
|
var o = t.elements[a], r = t.attributes[a] || {}, i = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : n[a]), l = i.reduce(function(u, f) {
|
|
48701
48701
|
return u[f] = "", u;
|
|
48702
48702
|
}, {});
|
|
48703
|
-
!
|
|
48703
|
+
!Nt(o) || !cn(o) || (Object.assign(o.style, l), Object.keys(r).forEach(function(u) {
|
|
48704
48704
|
o.removeAttribute(u);
|
|
48705
48705
|
}));
|
|
48706
48706
|
});
|
|
@@ -48736,7 +48736,7 @@ function XE(e) {
|
|
|
48736
48736
|
};
|
|
48737
48737
|
if (D) {
|
|
48738
48738
|
if (r || l) {
|
|
48739
|
-
var B = w === "y" ?
|
|
48739
|
+
var B = w === "y" ? It : Gt, S = w === "y" ? Xt : Qt, k = w === "y" ? "height" : "width", $ = D[w], F = D[w] + y[B], T = D[w] - y[S], E = b ? -H[k] / 2 : 0, P = A === sa ? j[k] : H[k], G = A === sa ? -H[k] : -j[k], Z = t.elements.arrow, W = b && Z ? pr(Z) : {
|
|
48740
48740
|
width: 0,
|
|
48741
48741
|
height: 0
|
|
48742
48742
|
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : nl(), ye = U[B], ee = U[S], X = ho(0, j[k], W[k]), me = C ? j[k] / 2 - E - X - ye - L : P - X - ye - L, Pe = C ? -j[k] / 2 + E + X + ee + L : G + X + ee + L, Ce = t.elements.arrow && Va(t.elements.arrow), Ie = Ce ? w === "y" ? Ce.clientTop || 0 : Ce.clientLeft || 0 : 0, Re = t.modifiersData.offset ? t.modifiersData.offset[t.placement][w] : 0, tt = D[w] + me - Re - Ie, Ze = D[w] + Pe - Re;
|
|
@@ -48745,7 +48745,7 @@ function XE(e) {
|
|
|
48745
48745
|
D[w] = at, _[w] = at - $;
|
|
48746
48746
|
}
|
|
48747
48747
|
if (l) {
|
|
48748
|
-
var ce = w === "x" ?
|
|
48748
|
+
var ce = w === "x" ? It : Gt, xe = w === "x" ? Xt : Qt, fe = D[M], se = fe + y[ce], le = fe - y[xe], be = ho(b ? Ta(se, tt) : se, fe, b ? An(le, Ze) : le);
|
|
48749
48749
|
D[M] = be, _[M] = be - fe;
|
|
48750
48750
|
}
|
|
48751
48751
|
}
|
|
@@ -48817,13 +48817,13 @@ function n_(e) {
|
|
|
48817
48817
|
allowedAutoPlacements: g
|
|
48818
48818
|
}) : X);
|
|
48819
48819
|
}, []), M = t.rects.reference, D = t.rects.popper, j = /* @__PURE__ */ new Map(), H = !0, L = w[0], _ = 0; _ < w.length; _++) {
|
|
48820
|
-
var B = w[_], S = ln(B), k = ra(B) === sa, $ = [
|
|
48820
|
+
var B = w[_], S = ln(B), k = ra(B) === sa, $ = [It, Xt].indexOf(S) >= 0, F = $ ? "width" : "height", T = vr(t, {
|
|
48821
48821
|
placement: B,
|
|
48822
48822
|
boundary: c,
|
|
48823
48823
|
rootBoundary: m,
|
|
48824
48824
|
altBoundary: v,
|
|
48825
48825
|
padding: f
|
|
48826
|
-
}), E = $ ? k ? Qt :
|
|
48826
|
+
}), E = $ ? k ? Qt : Gt : k ? Xt : It;
|
|
48827
48827
|
M[F] > D[F] && (E = mo(E));
|
|
48828
48828
|
var P = mo(E), G = [];
|
|
48829
48829
|
if (r && G.push(T[S] <= 0), l && G.push(T[E] <= 0, T[P] <= 0), G.every(function(ee) {
|
|
@@ -48863,10 +48863,10 @@ var a_ = {
|
|
|
48863
48863
|
}
|
|
48864
48864
|
};
|
|
48865
48865
|
function o_(e, t, n) {
|
|
48866
|
-
var a = ln(e), o = [
|
|
48866
|
+
var a = ln(e), o = [Gt, It].indexOf(a) >= 0 ? -1 : 1, r = typeof n == "function" ? n(Object.assign({}, t, {
|
|
48867
48867
|
placement: e
|
|
48868
48868
|
})) : n, i = r[0], l = r[1];
|
|
48869
|
-
return i = i || 0, l = (l || 0) * o, [
|
|
48869
|
+
return i = i || 0, l = (l || 0) * o, [Gt, Qt].indexOf(a) >= 0 ? {
|
|
48870
48870
|
x: l,
|
|
48871
48871
|
y: i
|
|
48872
48872
|
} : {
|
|
@@ -48892,9 +48892,9 @@ var r_ = {
|
|
|
48892
48892
|
})) : t, al(typeof t != "number" ? t : ol(t, Ra));
|
|
48893
48893
|
};
|
|
48894
48894
|
function l_(e) {
|
|
48895
|
-
var t, n = e.state, a = e.name, o = e.options, r = n.elements.arrow, i = n.modifiersData.popperOffsets, l = ln(n.placement), u = mr(l), f = [
|
|
48895
|
+
var t, n = e.state, a = e.name, o = e.options, r = n.elements.arrow, i = n.modifiersData.popperOffsets, l = ln(n.placement), u = mr(l), f = [Gt, Qt].indexOf(l) >= 0, c = f ? "height" : "width";
|
|
48896
48896
|
if (!(!r || !i)) {
|
|
48897
|
-
var m = i_(o.padding, n), v = pr(r), b = u === "y" ?
|
|
48897
|
+
var m = i_(o.padding, n), v = pr(r), b = u === "y" ? It : Gt, h = u === "y" ? Xt : Qt, g = n.rects.reference[c] + n.rects.reference[u] - i[u] - n.rects.popper[c], y = i[u] - n.rects.reference[u], x = Va(r), A = x ? u === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, C = g / 2 - y / 2, w = m[b], M = A - v[c] - m[h], D = A / 2 - v[c] / 2 + C, j = ho(w, D, M), H = u;
|
|
48898
48898
|
n.modifiersData[a] = (t = {}, t[H] = j, t.centerOffset = j - D, t);
|
|
48899
48899
|
}
|
|
48900
48900
|
}
|
|
@@ -54596,13 +54596,216 @@ la("debug", {
|
|
|
54596
54596
|
}
|
|
54597
54597
|
}
|
|
54598
54598
|
});
|
|
54599
|
-
|
|
54599
|
+
let cs = !1, ga = null;
|
|
54600
|
+
function pi({ integrationUrl: e, apiKey: t }) {
|
|
54601
|
+
return console.log("Iniciando integração com AWS WAF SDK"), {
|
|
54602
|
+
name: "aws-waf",
|
|
54603
|
+
async loadSdk() {
|
|
54604
|
+
if (!(cs || !e))
|
|
54605
|
+
return ga || (ga = new Promise((n) => {
|
|
54606
|
+
const a = document.createElement("script");
|
|
54607
|
+
a.src = `${e}/jsapi.js`, a.defer = !0, a.onload = () => {
|
|
54608
|
+
console.log("AWS WAF SDK carregado com sucesso"), cs = !0, n();
|
|
54609
|
+
}, a.onerror = (o) => {
|
|
54610
|
+
console.log("Erro ao carregar AWS WAF SDK:", o), ga = null, n();
|
|
54611
|
+
}, document.head.appendChild(a);
|
|
54612
|
+
}), ga);
|
|
54613
|
+
},
|
|
54614
|
+
async getInvisibleToken() {
|
|
54615
|
+
return window.AwsWafIntegration ? Promise.race([
|
|
54616
|
+
window.AwsWafIntegration.getToken(),
|
|
54617
|
+
new Promise(
|
|
54618
|
+
(n, a) => setTimeout(() => a(new Error("timeout")), 5e3)
|
|
54619
|
+
)
|
|
54620
|
+
]).catch(() => "") : "";
|
|
54621
|
+
},
|
|
54622
|
+
renderCaptcha(n, { onSuccess: a, onError: o }) {
|
|
54623
|
+
const r = document.getElementById(n);
|
|
54624
|
+
if (!r || !window.AwsWafCaptcha) {
|
|
54625
|
+
o(new Error("AWS WAF captcha indisponível para renderização"));
|
|
54626
|
+
return;
|
|
54627
|
+
}
|
|
54628
|
+
r.innerHTML = "", window.AwsWafCaptcha.renderCaptcha(r, {
|
|
54629
|
+
apiKey: t,
|
|
54630
|
+
onSuccess: a,
|
|
54631
|
+
onError: o,
|
|
54632
|
+
dynamicWidth: !1,
|
|
54633
|
+
disableLanguageSelector: !0,
|
|
54634
|
+
skipTitle: !0
|
|
54635
|
+
});
|
|
54636
|
+
},
|
|
54637
|
+
isReady: () => cs
|
|
54638
|
+
};
|
|
54639
|
+
}
|
|
54640
|
+
let ds = !1, ya = null, hi = null;
|
|
54641
|
+
function mi({ siteKey: e, siteKeyVisible: t } = {}) {
|
|
54642
|
+
console.log("Iniciando integração com Google reCAPTCHA SDK");
|
|
54643
|
+
const n = () => {
|
|
54644
|
+
var a;
|
|
54645
|
+
return (a = window.grecaptcha) == null ? void 0 : a.enterprise;
|
|
54646
|
+
};
|
|
54647
|
+
return {
|
|
54648
|
+
name: "google-recaptcha",
|
|
54649
|
+
async loadSdk() {
|
|
54650
|
+
if (!(ds || !e))
|
|
54651
|
+
return ya || (ya = new Promise((a) => {
|
|
54652
|
+
const o = document.createElement("script");
|
|
54653
|
+
o.src = "https://www.google.com/recaptcha/enterprise.js?render=explicit", o.defer = !0, o.onload = () => {
|
|
54654
|
+
window.grecaptcha.enterprise.ready(() => {
|
|
54655
|
+
const r = document.createElement("div");
|
|
54656
|
+
r.id = "__recaptcha_invisible", r.style.display = "none", document.body.appendChild(r), hi = window.grecaptcha.enterprise.render(
|
|
54657
|
+
r,
|
|
54658
|
+
{
|
|
54659
|
+
sitekey: e,
|
|
54660
|
+
size: "invisible"
|
|
54661
|
+
}
|
|
54662
|
+
), console.log("Google reCAPTCHA SDK carregado com sucesso"), ds = !0, a();
|
|
54663
|
+
});
|
|
54664
|
+
}, o.onerror = (r) => {
|
|
54665
|
+
console.log("Erro ao carregar o Google reCAPTCHA SDK:", r), ya = null, a();
|
|
54666
|
+
}, document.head.appendChild(o);
|
|
54667
|
+
}), ya);
|
|
54668
|
+
},
|
|
54669
|
+
async getInvisibleToken() {
|
|
54670
|
+
const a = n();
|
|
54671
|
+
if (!a || !e) return "";
|
|
54672
|
+
try {
|
|
54673
|
+
return await a.execute(hi, { action: "login" });
|
|
54674
|
+
} catch {
|
|
54675
|
+
return "";
|
|
54676
|
+
}
|
|
54677
|
+
},
|
|
54678
|
+
renderCaptcha(a, { onSuccess: o, onError: r }) {
|
|
54679
|
+
const i = n(), l = document.getElementById(a);
|
|
54680
|
+
if (!l || !i) {
|
|
54681
|
+
r(new Error("Google reCAPTCHA indisponível para renderização"));
|
|
54682
|
+
return;
|
|
54683
|
+
}
|
|
54684
|
+
l.innerHTML = "";
|
|
54685
|
+
const u = t || e;
|
|
54686
|
+
try {
|
|
54687
|
+
i.render(l, {
|
|
54688
|
+
sitekey: u,
|
|
54689
|
+
callback: o,
|
|
54690
|
+
"error-callback": r
|
|
54691
|
+
});
|
|
54692
|
+
} catch (f) {
|
|
54693
|
+
r(f);
|
|
54694
|
+
}
|
|
54695
|
+
},
|
|
54696
|
+
isReady: () => ds
|
|
54697
|
+
};
|
|
54698
|
+
}
|
|
54699
|
+
const pF = {
|
|
54700
|
+
awswaf: (e) => pi(e),
|
|
54701
|
+
"aws-waf": (e) => pi(e),
|
|
54702
|
+
google: (e) => mi(e),
|
|
54703
|
+
"google-recaptcha": (e) => mi(e)
|
|
54704
|
+
};
|
|
54705
|
+
let jt = null;
|
|
54706
|
+
function XH({ provider: e, ...t }) {
|
|
54707
|
+
const n = String(e || "").trim().toLowerCase(), a = pF[n];
|
|
54708
|
+
if (!a) {
|
|
54709
|
+
console.error("Provedor de SDK não suportado:", e), jt = null;
|
|
54710
|
+
return;
|
|
54711
|
+
}
|
|
54712
|
+
jt = a(t);
|
|
54713
|
+
}
|
|
54714
|
+
function hF() {
|
|
54715
|
+
return jt;
|
|
54716
|
+
}
|
|
54717
|
+
const mF = {
|
|
54718
|
+
1: 0,
|
|
54719
|
+
2: 0,
|
|
54720
|
+
3: 1e3,
|
|
54721
|
+
4: 3e3,
|
|
54722
|
+
5: 5e3
|
|
54723
|
+
}, vF = 5e3;
|
|
54724
|
+
function QH() {
|
|
54725
|
+
const e = O(0), t = O(""), n = O(!1), a = O(0), o = O(!1), r = O(!1), i = O(!1), l = O(!1);
|
|
54726
|
+
let u = null;
|
|
54727
|
+
const f = R(() => mF[e.value] ?? vF), c = R(() => !!jt);
|
|
54728
|
+
async function m() {
|
|
54729
|
+
jt && (await jt.loadSdk(), l.value = jt.isReady());
|
|
54730
|
+
}
|
|
54731
|
+
async function v() {
|
|
54732
|
+
if (!jt) return "";
|
|
54733
|
+
await m();
|
|
54734
|
+
try {
|
|
54735
|
+
const A = await jt.getInvisibleToken();
|
|
54736
|
+
return t.value = A, A;
|
|
54737
|
+
} catch (A) {
|
|
54738
|
+
return console.warn("[Captcha] Falha ao obter token invisível:", A), "";
|
|
54739
|
+
}
|
|
54740
|
+
}
|
|
54741
|
+
function b(A) {
|
|
54742
|
+
return new Promise(async (C, w) => {
|
|
54743
|
+
if (!jt) {
|
|
54744
|
+
w(new Error("Captcha provider não configurado"));
|
|
54745
|
+
return;
|
|
54746
|
+
}
|
|
54747
|
+
if (await m(), !jt.isReady()) {
|
|
54748
|
+
w(new Error("Captcha SDK não está pronto"));
|
|
54749
|
+
return;
|
|
54750
|
+
}
|
|
54751
|
+
jt.renderCaptcha(A, {
|
|
54752
|
+
onSuccess: (M) => {
|
|
54753
|
+
if (!M) {
|
|
54754
|
+
w(new Error("Captcha retornou token vazio"));
|
|
54755
|
+
return;
|
|
54756
|
+
}
|
|
54757
|
+
t.value = M, o.value = !0, C(M);
|
|
54758
|
+
},
|
|
54759
|
+
onError: (M) => {
|
|
54760
|
+
w(M);
|
|
54761
|
+
}
|
|
54762
|
+
});
|
|
54763
|
+
});
|
|
54764
|
+
}
|
|
54765
|
+
function h(A, { requiresVisibleCaptcha: C = !1, userBlocked: w = !1 } = {}) {
|
|
54766
|
+
e.value = A, o.value = !1, r.value = C, i.value = w;
|
|
54767
|
+
const M = f.value;
|
|
54768
|
+
M > 0 && y(M);
|
|
54769
|
+
}
|
|
54770
|
+
function g() {
|
|
54771
|
+
e.value = 0, o.value = !1, r.value = !1, i.value = !1, n.value = !1, a.value = 0, u && (clearInterval(u), u = null);
|
|
54772
|
+
}
|
|
54773
|
+
function y(A) {
|
|
54774
|
+
n.value = !0, a.value = Math.ceil(A / 1e3), u && clearInterval(u), u = setInterval(() => {
|
|
54775
|
+
a.value--, a.value <= 0 && (n.value = !1, u && (clearInterval(u), u = null));
|
|
54776
|
+
}, 1e3);
|
|
54777
|
+
}
|
|
54778
|
+
function x() {
|
|
54779
|
+
u && (clearInterval(u), u = null);
|
|
54780
|
+
}
|
|
54781
|
+
return {
|
|
54782
|
+
// Estado
|
|
54783
|
+
attempts: Pn(e),
|
|
54784
|
+
captchaToken: Pn(t),
|
|
54785
|
+
isDelayActive: Pn(n),
|
|
54786
|
+
delayRemaining: Pn(a),
|
|
54787
|
+
captchaSolved: Pn(o),
|
|
54788
|
+
sdkReady: Pn(l),
|
|
54789
|
+
isUserBlocked: Pn(i),
|
|
54790
|
+
// Computeds
|
|
54791
|
+
requiredDelay: f,
|
|
54792
|
+
captchaEnabled: c,
|
|
54793
|
+
// Funções
|
|
54794
|
+
loadSdk: m,
|
|
54795
|
+
getInvisibleToken: v,
|
|
54796
|
+
renderVisibleCaptcha: b,
|
|
54797
|
+
setAttempts: h,
|
|
54798
|
+
resetOnSuccess: g,
|
|
54799
|
+
cleanup: x
|
|
54800
|
+
};
|
|
54801
|
+
}
|
|
54802
|
+
const gF = { key: 0 }, yF = { class: "waf-modal" }, bF = {
|
|
54600
54803
|
key: 0,
|
|
54601
54804
|
class: "waf-loading"
|
|
54602
|
-
},
|
|
54805
|
+
}, xF = {
|
|
54603
54806
|
key: 1,
|
|
54604
54807
|
class: "text-sm text-red-500"
|
|
54605
|
-
},
|
|
54808
|
+
}, wF = {
|
|
54606
54809
|
__name: "WafCaptchaModal",
|
|
54607
54810
|
props: {
|
|
54608
54811
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -54612,66 +54815,81 @@ const pF = { class: "waf-modal" }, hF = {
|
|
|
54612
54815
|
},
|
|
54613
54816
|
emits: ["update:modelValue", "solved", "error"],
|
|
54614
54817
|
setup(e, { emit: t }) {
|
|
54615
|
-
const n = e, a = t, o =
|
|
54616
|
-
|
|
54617
|
-
|
|
54818
|
+
const n = e, a = t, o = R(
|
|
54819
|
+
() => {
|
|
54820
|
+
var g;
|
|
54821
|
+
return ((g = hF()) == null ? void 0 : g.name) === "google-recaptcha";
|
|
54822
|
+
}
|
|
54823
|
+
), r = `waf-captcha-${Math.random().toString(36).slice(2, 9)}`, i = O(null), l = O(!0), u = O(!1), f = O({});
|
|
54824
|
+
let c = null;
|
|
54825
|
+
const m = () => {
|
|
54618
54826
|
n.isBlocked && a("update:modelValue", !1);
|
|
54619
54827
|
};
|
|
54620
|
-
function
|
|
54621
|
-
var
|
|
54828
|
+
function v() {
|
|
54829
|
+
var M, D;
|
|
54622
54830
|
if (!n.anchorEl) return;
|
|
54623
|
-
const
|
|
54624
|
-
if (!
|
|
54625
|
-
const
|
|
54626
|
-
let
|
|
54627
|
-
|
|
54628
|
-
const
|
|
54629
|
-
|
|
54831
|
+
const g = n.anchorEl instanceof HTMLElement ? n.anchorEl : ((M = n.anchorEl) == null ? void 0 : M.$el) ?? ((D = n.anchorEl) == null ? void 0 : D.value);
|
|
54832
|
+
if (!g || !g.getBoundingClientRect) return;
|
|
54833
|
+
const y = g.getBoundingClientRect(), x = 200;
|
|
54834
|
+
let A = y.left + y.width / 2 - x / 2;
|
|
54835
|
+
A = Math.max(8, Math.min(A, window.innerWidth - x - 8));
|
|
54836
|
+
const C = y.top, w = window.innerHeight - y.bottom;
|
|
54837
|
+
C > w ? f.value = {
|
|
54630
54838
|
position: "fixed",
|
|
54631
|
-
left: `${
|
|
54632
|
-
bottom: `${window.innerHeight -
|
|
54633
|
-
width: `${
|
|
54634
|
-
} :
|
|
54839
|
+
left: `${A}px`,
|
|
54840
|
+
bottom: `${window.innerHeight - y.top + 8}px`,
|
|
54841
|
+
width: `${x}px`
|
|
54842
|
+
} : f.value = {
|
|
54635
54843
|
position: "fixed",
|
|
54636
|
-
left: `${
|
|
54637
|
-
top: `${
|
|
54638
|
-
width: `${
|
|
54844
|
+
left: `${A}px`,
|
|
54845
|
+
top: `${y.bottom + 8}px`,
|
|
54846
|
+
width: `${x}px`
|
|
54639
54847
|
};
|
|
54640
54848
|
}
|
|
54641
|
-
async function
|
|
54642
|
-
|
|
54643
|
-
const
|
|
54644
|
-
|
|
54849
|
+
async function b() {
|
|
54850
|
+
l.value = !0, u.value = !1, await st();
|
|
54851
|
+
const g = document.getElementById(r);
|
|
54852
|
+
g && (g.innerHTML = "");
|
|
54645
54853
|
try {
|
|
54646
|
-
await n.renderCaptcha(
|
|
54647
|
-
} catch (
|
|
54648
|
-
|
|
54854
|
+
await n.renderCaptcha(r), l.value = !1, a("solved");
|
|
54855
|
+
} catch (y) {
|
|
54856
|
+
l.value = !1, u.value = !0, a("error", y);
|
|
54649
54857
|
}
|
|
54650
54858
|
}
|
|
54651
|
-
function
|
|
54652
|
-
|
|
54653
|
-
const
|
|
54654
|
-
|
|
54655
|
-
|
|
54656
|
-
}),
|
|
54859
|
+
function h() {
|
|
54860
|
+
c && c.disconnect();
|
|
54861
|
+
const g = document.getElementById(r);
|
|
54862
|
+
g && (c = new MutationObserver(() => {
|
|
54863
|
+
g.children.length > 0 && l.value && (l.value = !1);
|
|
54864
|
+
}), c.observe(g, { childList: !0, subtree: !0 }));
|
|
54657
54865
|
}
|
|
54658
54866
|
return Fe(
|
|
54659
54867
|
() => n.modelValue,
|
|
54660
|
-
async (
|
|
54661
|
-
|
|
54868
|
+
async (g) => {
|
|
54869
|
+
g ? (v(), await st(), h(), await b()) : (l.value = !0, u.value = !1, c && c.disconnect());
|
|
54662
54870
|
}
|
|
54663
54871
|
), Dt(() => {
|
|
54664
|
-
|
|
54665
|
-
}), (
|
|
54872
|
+
c && c.disconnect();
|
|
54873
|
+
}), (g, y) => o.value && e.modelValue ? (d(), p("div", gF, [
|
|
54874
|
+
s("div", {
|
|
54875
|
+
ref_key: "captchaContainerRef",
|
|
54876
|
+
ref: i,
|
|
54877
|
+
id: r,
|
|
54878
|
+
class: Q(["waf-captcha-body", { "waf-hidden": l.value }])
|
|
54879
|
+
}, null, 2)
|
|
54880
|
+
])) : (d(), Ee(Pa, {
|
|
54881
|
+
key: 1,
|
|
54882
|
+
to: "body"
|
|
54883
|
+
}, [
|
|
54666
54884
|
Se(yt, { name: "waf-fade" }, {
|
|
54667
54885
|
default: we(() => [
|
|
54668
54886
|
e.modelValue ? (d(), p("div", {
|
|
54669
54887
|
key: 0,
|
|
54670
|
-
onClick:
|
|
54888
|
+
onClick: m,
|
|
54671
54889
|
class: "waf-overlay"
|
|
54672
54890
|
}, [
|
|
54673
|
-
s("div",
|
|
54674
|
-
|
|
54891
|
+
s("div", yF, [
|
|
54892
|
+
l.value ? (d(), p("div", bF, [...y[0] || (y[0] = [
|
|
54675
54893
|
s("svg", {
|
|
54676
54894
|
class: "waf-spinner",
|
|
54677
54895
|
viewBox: "0 0 24 24",
|
|
@@ -54689,16 +54907,16 @@ const pF = { class: "waf-modal" }, hF = {
|
|
|
54689
54907
|
], -1),
|
|
54690
54908
|
s("span", { class: "waf-loading-text" }, "Carregando verificação…", -1)
|
|
54691
54909
|
])])) : z("", !0),
|
|
54692
|
-
|
|
54910
|
+
y[1] || (y[1] = s("span", { class: "flex flex-col items-center py-3" }, [
|
|
54693
54911
|
s("p", { class: "text-lg font-semibold" }, " Muitas tentativas de login simultâneas "),
|
|
54694
54912
|
s("p", { class: "text-sm" }, " Por favor, complete a verificação para continuar ")
|
|
54695
54913
|
], -1)),
|
|
54696
|
-
e.isBlocked ? (d(), p("p",
|
|
54914
|
+
e.isBlocked ? (d(), p("p", xF, " Sua conta está temporariamente bloqueada devido a muitas tentativas de login. ")) : (d(), p("div", {
|
|
54697
54915
|
key: 2,
|
|
54698
54916
|
ref_key: "captchaContainerRef",
|
|
54699
|
-
ref:
|
|
54700
|
-
id:
|
|
54701
|
-
class: Q(["waf-captcha-body", { "waf-hidden":
|
|
54917
|
+
ref: i,
|
|
54918
|
+
id: r,
|
|
54919
|
+
class: Q(["waf-captcha-body", { "waf-hidden": l.value }])
|
|
54702
54920
|
}, null, 2))
|
|
54703
54921
|
])
|
|
54704
54922
|
])) : z("", !0)
|
|
@@ -54707,39 +54925,39 @@ const pF = { class: "waf-modal" }, hF = {
|
|
|
54707
54925
|
})
|
|
54708
54926
|
]));
|
|
54709
54927
|
}
|
|
54710
|
-
},
|
|
54711
|
-
function
|
|
54928
|
+
}, KH = /* @__PURE__ */ Te(wF, [["__scopeId", "data-v-47d52b46"]]);
|
|
54929
|
+
function kF(e) {
|
|
54712
54930
|
return Array.isArray(e == null ? void 0 : e.results) ? e.results : Array.isArray(e) ? e : [];
|
|
54713
54931
|
}
|
|
54714
|
-
function
|
|
54932
|
+
function ba(e) {
|
|
54715
54933
|
return Number(
|
|
54716
54934
|
(e == null ? void 0 : e.balance) ?? (e == null ? void 0 : e.effective_available_credits) ?? (e == null ? void 0 : e.credits) ?? 0
|
|
54717
54935
|
);
|
|
54718
54936
|
}
|
|
54719
|
-
function
|
|
54937
|
+
function CF(e) {
|
|
54720
54938
|
return (e == null ? void 0 : e.valid_contacts) ?? (e == null ? void 0 : e.valid) ?? [];
|
|
54721
54939
|
}
|
|
54722
|
-
function
|
|
54940
|
+
function JH(e) {
|
|
54723
54941
|
return (e == null ? void 0 : e.invalid_contacts) ?? (e == null ? void 0 : e.invalid) ?? [];
|
|
54724
54942
|
}
|
|
54725
|
-
function
|
|
54943
|
+
function ez(e) {
|
|
54726
54944
|
var t;
|
|
54727
54945
|
return (e == null ? void 0 : e.name) ?? ((t = e == null ? void 0 : e.contact) == null ? void 0 : t.name) ?? "-";
|
|
54728
54946
|
}
|
|
54729
|
-
function
|
|
54947
|
+
function tz(e) {
|
|
54730
54948
|
var t;
|
|
54731
54949
|
return (e == null ? void 0 : e.telephone) ?? (e == null ? void 0 : e.phone) ?? (e == null ? void 0 : e.number) ?? ((t = e == null ? void 0 : e.contact) == null ? void 0 : t.telephone) ?? "-";
|
|
54732
54950
|
}
|
|
54733
|
-
function
|
|
54951
|
+
function nz(e) {
|
|
54734
54952
|
return Number(
|
|
54735
|
-
(e == null ? void 0 : e.credits_to_consume) ?? (e == null ? void 0 : e.credits) ??
|
|
54953
|
+
(e == null ? void 0 : e.credits_to_consume) ?? (e == null ? void 0 : e.credits) ?? CF(e).length
|
|
54736
54954
|
);
|
|
54737
54955
|
}
|
|
54738
|
-
async function
|
|
54956
|
+
async function az({ url: e = zo } = {}) {
|
|
54739
54957
|
const { data: t } = await Je.get(e);
|
|
54740
|
-
return
|
|
54958
|
+
return kF(t);
|
|
54741
54959
|
}
|
|
54742
|
-
async function
|
|
54960
|
+
async function SF({
|
|
54743
54961
|
page: e = 1,
|
|
54744
54962
|
search: t = "",
|
|
54745
54963
|
pageSize: n = 20,
|
|
@@ -54750,38 +54968,38 @@ async function bF({
|
|
|
54750
54968
|
const { data: r } = await Je.get(a, { params: o });
|
|
54751
54969
|
return r;
|
|
54752
54970
|
}
|
|
54753
|
-
async function
|
|
54971
|
+
async function oz(e, t) {
|
|
54754
54972
|
const { data: n } = await Je.patch(`${zo}${e}/`, t);
|
|
54755
54973
|
return n;
|
|
54756
54974
|
}
|
|
54757
|
-
const
|
|
54975
|
+
const MF = {
|
|
54758
54976
|
key: 0,
|
|
54759
54977
|
class: "mb-1.5 block text-xs font-semibold uppercase tracking-wide opacity-80"
|
|
54760
|
-
},
|
|
54978
|
+
}, AF = ["disabled"], $F = {
|
|
54761
54979
|
key: 0,
|
|
54762
54980
|
class: "flex items-center gap-2 truncate"
|
|
54763
|
-
},
|
|
54981
|
+
}, EF = { class: "truncate font-semibold" }, _F = { class: "shrink-0 rounded-full bg-primary/20 px-2 py-0.5 text-xs font-bold text-primary" }, BF = {
|
|
54764
54982
|
key: 1,
|
|
54765
54983
|
class: "text-current/40"
|
|
54766
|
-
},
|
|
54984
|
+
}, LF = { class: "ml-2 flex shrink-0 items-center gap-1" }, TF = {
|
|
54767
54985
|
key: 0,
|
|
54768
54986
|
class: "border-b border-base-100/50 px-2 py-2"
|
|
54769
|
-
},
|
|
54987
|
+
}, PF = { class: "max-h-52 overflow-y-auto" }, DF = {
|
|
54770
54988
|
key: 0,
|
|
54771
54989
|
class: "px-3 py-3 space-y-2"
|
|
54772
|
-
},
|
|
54990
|
+
}, OF = ["onClick"], FF = { class: "flex items-center gap-2 truncate" }, HF = {
|
|
54773
54991
|
key: 0,
|
|
54774
54992
|
class: "size-3.5 shrink-0 text-primary",
|
|
54775
54993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
54776
54994
|
fill: "currentColor",
|
|
54777
54995
|
viewBox: "0 0 24 24"
|
|
54778
|
-
},
|
|
54996
|
+
}, zF = { class: "truncate" }, VF = {
|
|
54779
54997
|
key: 0,
|
|
54780
54998
|
class: "py-4 text-center text-sm text-current/40"
|
|
54781
|
-
},
|
|
54999
|
+
}, RF = {
|
|
54782
55000
|
key: 1,
|
|
54783
55001
|
class: "mt-1 text-xs text-red-500"
|
|
54784
|
-
},
|
|
55002
|
+
}, vi = 260, jF = {
|
|
54785
55003
|
__name: "smsPoolSelect",
|
|
54786
55004
|
props: {
|
|
54787
55005
|
/** Carteira selecionada (objeto completo ou null) */
|
|
@@ -54807,7 +55025,7 @@ const xF = {
|
|
|
54807
55025
|
function h() {
|
|
54808
55026
|
if (!b.value) return;
|
|
54809
55027
|
const L = b.value.getBoundingClientRect(), _ = window.innerHeight - L.bottom;
|
|
54810
|
-
r.value = _ <
|
|
55028
|
+
r.value = _ < vi && L.top > vi;
|
|
54811
55029
|
}
|
|
54812
55030
|
const g = R(() => Array.isArray(n.pools)), y = R(
|
|
54813
55031
|
() => g.value ? n.pools : l.value
|
|
@@ -54821,7 +55039,7 @@ const xF = {
|
|
|
54821
55039
|
}
|
|
54822
55040
|
c.value = !0;
|
|
54823
55041
|
try {
|
|
54824
|
-
const _ = await
|
|
55042
|
+
const _ = await SF({
|
|
54825
55043
|
page: u.value,
|
|
54826
55044
|
search: i.value,
|
|
54827
55045
|
url: n.apiUrl
|
|
@@ -54843,7 +55061,7 @@ const xF = {
|
|
|
54843
55061
|
g.value || w();
|
|
54844
55062
|
});
|
|
54845
55063
|
function M(L) {
|
|
54846
|
-
|
|
55064
|
+
ba(L) <= 0 || (a("update:modelValue", L), o.value = !1);
|
|
54847
55065
|
}
|
|
54848
55066
|
function D(L) {
|
|
54849
55067
|
L.stopPropagation(), a("update:modelValue", null);
|
|
@@ -54857,7 +55075,7 @@ const xF = {
|
|
|
54857
55075
|
return ot(() => document.addEventListener("mousedown", H)), Dt(() => {
|
|
54858
55076
|
document.removeEventListener("mousedown", H), clearTimeout(C);
|
|
54859
55077
|
}), (L, _) => (d(), p("div", null, [
|
|
54860
|
-
e.label ? (d(), p("label",
|
|
55078
|
+
e.label ? (d(), p("label", MF, V(e.label), 1)) : z("", !0),
|
|
54861
55079
|
s("div", {
|
|
54862
55080
|
ref_key: "dropdownRef",
|
|
54863
55081
|
ref: v,
|
|
@@ -54871,11 +55089,11 @@ const xF = {
|
|
|
54871
55089
|
onClick: j,
|
|
54872
55090
|
class: Q(["flex w-full items-center justify-between rounded-lg bg-base-200 px-3 py-2.5 text-sm transition hover:brightness-95 disabled:cursor-not-allowed disabled:opacity-60", { "ring-2 ring-red-500/60": e.error }])
|
|
54873
55091
|
}, [
|
|
54874
|
-
e.modelValue ? (d(), p("span",
|
|
54875
|
-
s("span",
|
|
54876
|
-
s("span",
|
|
54877
|
-
])) : (d(), p("span",
|
|
54878
|
-
s("span",
|
|
55092
|
+
e.modelValue ? (d(), p("span", $F, [
|
|
55093
|
+
s("span", EF, V(e.modelValue.name), 1),
|
|
55094
|
+
s("span", _F, V(ie(ba)(e.modelValue)) + " créditos ", 1)
|
|
55095
|
+
])) : (d(), p("span", BF, V(e.placeholder), 1)),
|
|
55096
|
+
s("span", LF, [
|
|
54879
55097
|
e.modelValue ? (d(), p("span", {
|
|
54880
55098
|
key: 0,
|
|
54881
55099
|
onClick: D,
|
|
@@ -54907,14 +55125,14 @@ const xF = {
|
|
|
54907
55125
|
}, null, -1)
|
|
54908
55126
|
])], 2))
|
|
54909
55127
|
])
|
|
54910
|
-
], 10,
|
|
55128
|
+
], 10, AF),
|
|
54911
55129
|
Se(yt, { name: "sms-pool-fade" }, {
|
|
54912
55130
|
default: we(() => [
|
|
54913
55131
|
o.value ? (d(), p("div", {
|
|
54914
55132
|
key: 0,
|
|
54915
55133
|
class: Q(["absolute left-0 z-30 w-full overflow-hidden rounded-lg bg-base-300 shadow-lg shadow-black/20", r.value ? "bottom-full mb-1" : "top-full mt-1"])
|
|
54916
55134
|
}, [
|
|
54917
|
-
g.value ? z("", !0) : (d(), p("div",
|
|
55135
|
+
g.value ? z("", !0) : (d(), p("div", TF, [
|
|
54918
55136
|
Ke(s("input", {
|
|
54919
55137
|
"onUpdate:modelValue": _[0] || (_[0] = (B) => i.value = B),
|
|
54920
55138
|
type: "text",
|
|
@@ -54926,8 +55144,8 @@ const xF = {
|
|
|
54926
55144
|
[mt, i.value]
|
|
54927
55145
|
])
|
|
54928
55146
|
])),
|
|
54929
|
-
s("div",
|
|
54930
|
-
x.value && y.value.length === 0 ? (d(), p("div",
|
|
55147
|
+
s("div", PF, [
|
|
55148
|
+
x.value && y.value.length === 0 ? (d(), p("div", DF, [
|
|
54931
55149
|
(d(), p(ke, null, Oe(3, (B) => s("div", {
|
|
54932
55150
|
key: B,
|
|
54933
55151
|
class: "h-8 w-full animate-pulse rounded-md bg-base-100/60"
|
|
@@ -54939,29 +55157,29 @@ const xF = {
|
|
|
54939
55157
|
key: B.id,
|
|
54940
55158
|
onClick: ($) => M(B),
|
|
54941
55159
|
class: Q(["flex items-center justify-between px-3 py-2.5 text-sm transition", [
|
|
54942
|
-
ie(
|
|
55160
|
+
ie(ba)(B) <= 0 ? "cursor-not-allowed opacity-40" : "cursor-pointer hover:bg-base-200/60",
|
|
54943
55161
|
((S = e.modelValue) == null ? void 0 : S.id) === B.id ? "bg-primary/10 font-semibold" : ""
|
|
54944
55162
|
]])
|
|
54945
55163
|
}, [
|
|
54946
|
-
s("span",
|
|
54947
|
-
((k = e.modelValue) == null ? void 0 : k.id) === B.id ? (d(), p("svg",
|
|
55164
|
+
s("span", FF, [
|
|
55165
|
+
((k = e.modelValue) == null ? void 0 : k.id) === B.id ? (d(), p("svg", HF, [..._[4] || (_[4] = [
|
|
54948
55166
|
s("path", {
|
|
54949
55167
|
"fill-rule": "evenodd",
|
|
54950
55168
|
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm13.707-1.293a1 1 0 0 0-1.414-1.414L11 12.586l-1.793-1.793a1 1 0 0 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l4-4Z",
|
|
54951
55169
|
"clip-rule": "evenodd"
|
|
54952
55170
|
}, null, -1)
|
|
54953
55171
|
])])) : z("", !0),
|
|
54954
|
-
s("span",
|
|
55172
|
+
s("span", zF, V(B.name), 1)
|
|
54955
55173
|
]),
|
|
54956
55174
|
s("span", {
|
|
54957
55175
|
class: Q([
|
|
54958
55176
|
"ml-2 shrink-0 rounded-full px-2 py-0.5 text-xs font-bold",
|
|
54959
|
-
ie(
|
|
55177
|
+
ie(ba)(B) > 0 ? "bg-primary/20 text-primary" : "bg-base-100 text-current/40"
|
|
54960
55178
|
])
|
|
54961
|
-
}, V(ie(
|
|
54962
|
-
], 10,
|
|
55179
|
+
}, V(ie(ba)(B)) + " créditos ", 3)
|
|
55180
|
+
], 10, OF);
|
|
54963
55181
|
}), 128)),
|
|
54964
|
-
!x.value && y.value.length === 0 ? (d(), p("p",
|
|
55182
|
+
!x.value && y.value.length === 0 ? (d(), p("p", VF, " Nenhuma carteira encontrada ")) : z("", !0),
|
|
54965
55183
|
!g.value && m.value ? (d(), Ee(ie(qn), {
|
|
54966
55184
|
key: f.value,
|
|
54967
55185
|
onInfinite: A
|
|
@@ -54983,13 +55201,13 @@ const xF = {
|
|
|
54983
55201
|
_: 1
|
|
54984
55202
|
})
|
|
54985
55203
|
], 512),
|
|
54986
|
-
e.error ? (d(), p("p",
|
|
55204
|
+
e.error ? (d(), p("p", RF, V(e.error), 1)) : z("", !0)
|
|
54987
55205
|
]));
|
|
54988
55206
|
}
|
|
54989
|
-
},
|
|
55207
|
+
}, NF = /* @__PURE__ */ Te(jF, [["__scopeId", "data-v-2d435ef0"]]), IF = { class: "audio-player hover:bg-base-100" }, GF = ["disabled"], qF = { class: "audio-player-info" }, WF = { class: "audio-progress-container" }, UF = ["max", "value", "disabled"], ZF = { class: "audio-duration" }, YF = {
|
|
54990
55208
|
key: 0,
|
|
54991
55209
|
class: "align-middle"
|
|
54992
|
-
},
|
|
55210
|
+
}, XF = ["src"], QF = {
|
|
54993
55211
|
__name: "AudioPlayer",
|
|
54994
55212
|
props: {
|
|
54995
55213
|
src: {
|
|
@@ -55094,7 +55312,7 @@ const xF = {
|
|
|
55094
55312
|
}
|
|
55095
55313
|
), dn(() => {
|
|
55096
55314
|
o.value && (o.value.pause(), o.value.src = "");
|
|
55097
|
-
}), (_, B) => (d(), p("div",
|
|
55315
|
+
}), (_, B) => (d(), p("div", IF, [
|
|
55098
55316
|
s("button", {
|
|
55099
55317
|
onClick: rt(c, ["stop"]),
|
|
55100
55318
|
class: "audio-play-btn hover:bg-base-100",
|
|
@@ -55140,13 +55358,13 @@ const xF = {
|
|
|
55140
55358
|
}, [...B[1] || (B[1] = [
|
|
55141
55359
|
s("path", { d: "M8 5v14l11-7z" }, null, -1)
|
|
55142
55360
|
])], 4))
|
|
55143
|
-
], 12,
|
|
55144
|
-
s("div",
|
|
55361
|
+
], 12, GF),
|
|
55362
|
+
s("div", qF, [
|
|
55145
55363
|
s("div", {
|
|
55146
55364
|
class: "audio-player-title",
|
|
55147
55365
|
style: Ne({ color: D() })
|
|
55148
55366
|
}, V(e.label), 5),
|
|
55149
|
-
s("div",
|
|
55367
|
+
s("div", WF, [
|
|
55150
55368
|
s("div", {
|
|
55151
55369
|
class: "audio-progress-track",
|
|
55152
55370
|
style: Ne({ backgroundColor: `${D()}20` })
|
|
@@ -55166,12 +55384,12 @@ const xF = {
|
|
|
55166
55384
|
value: i.value,
|
|
55167
55385
|
onInput: rt(m, ["stop"]),
|
|
55168
55386
|
disabled: u.value || f.value
|
|
55169
|
-
}, null, 40,
|
|
55387
|
+
}, null, 40, UF)
|
|
55170
55388
|
], 4)
|
|
55171
55389
|
])
|
|
55172
55390
|
]),
|
|
55173
|
-
s("span",
|
|
55174
|
-
u.value || f.value ? (d(), p("span",
|
|
55391
|
+
s("span", ZF, [
|
|
55392
|
+
u.value || f.value ? (d(), p("span", YF, "-- : --")) : (d(), p(ke, { key: 1 }, [
|
|
55175
55393
|
Le(V(M(i.value)) + " : " + V(M(l.value)), 1)
|
|
55176
55394
|
], 64))
|
|
55177
55395
|
]),
|
|
@@ -55208,10 +55426,10 @@ const xF = {
|
|
|
55208
55426
|
onEnded: C,
|
|
55209
55427
|
onError: x,
|
|
55210
55428
|
preload: "metadata"
|
|
55211
|
-
}, null, 40,
|
|
55429
|
+
}, null, 40, XF)
|
|
55212
55430
|
]));
|
|
55213
55431
|
}
|
|
55214
|
-
},
|
|
55432
|
+
}, KF = /* @__PURE__ */ Te(QF, [["__scopeId", "data-v-fbc276d0"]]), JF = {
|
|
55215
55433
|
__name: "CallRecordPlayer",
|
|
55216
55434
|
props: {
|
|
55217
55435
|
recordMetadata: {
|
|
@@ -55234,7 +55452,7 @@ const xF = {
|
|
|
55234
55452
|
onClick: rt((u) => null, ["stop"]),
|
|
55235
55453
|
class: "call-record-player bg-base-200"
|
|
55236
55454
|
}, [
|
|
55237
|
-
(l = (i = e.recordMetadata) == null ? void 0 : i.urls) != null && l.general ? (d(), Ee(
|
|
55455
|
+
(l = (i = e.recordMetadata) == null ? void 0 : i.urls) != null && l.general ? (d(), Ee(KF, {
|
|
55238
55456
|
key: 0,
|
|
55239
55457
|
src: e.recordMetadata.urls.general,
|
|
55240
55458
|
label: "Conversa",
|
|
@@ -55246,16 +55464,16 @@ const xF = {
|
|
|
55246
55464
|
]);
|
|
55247
55465
|
};
|
|
55248
55466
|
}
|
|
55249
|
-
},
|
|
55467
|
+
}, eH = /* @__PURE__ */ Te(JF, [["__scopeId", "data-v-b2bf056b"]]), tH = { class: "call-card-header" }, nH = { class: "call-card-header-left" }, aH = { class: "call-card-content" }, oH = { class: "call-card-title" }, sH = {
|
|
55250
55468
|
key: 0,
|
|
55251
55469
|
class: "opacity-70"
|
|
55252
|
-
},
|
|
55470
|
+
}, rH = {
|
|
55253
55471
|
key: 0,
|
|
55254
55472
|
class: "call-card-text"
|
|
55255
|
-
},
|
|
55473
|
+
}, iH = { class: "call-card-actions" }, lH = {
|
|
55256
55474
|
key: 0,
|
|
55257
55475
|
class: "call-card-expanded"
|
|
55258
|
-
},
|
|
55476
|
+
}, cH = { class: "call-events" }, dH = { class: "call-event-left" }, uH = { class: "call-event-time" }, fH = {
|
|
55259
55477
|
__name: "CallCard",
|
|
55260
55478
|
props: {
|
|
55261
55479
|
call: {
|
|
@@ -55411,8 +55629,8 @@ const xF = {
|
|
|
55411
55629
|
onClick: M[4] || (M[4] = rt((D) => i(e.call), ["stop"])),
|
|
55412
55630
|
class: "call-card bg-base-300 border hover:bg-base-300 border-base-300"
|
|
55413
55631
|
}, [
|
|
55414
|
-
s("div",
|
|
55415
|
-
s("div",
|
|
55632
|
+
s("div", tH, [
|
|
55633
|
+
s("div", nH, [
|
|
55416
55634
|
s("div", {
|
|
55417
55635
|
class: Q(["call-icon bg-primary", v(c(e.call))])
|
|
55418
55636
|
}, [
|
|
@@ -55427,19 +55645,19 @@ const xF = {
|
|
|
55427
55645
|
s("path", { d: "M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z" }, null, -1)
|
|
55428
55646
|
])], 4))
|
|
55429
55647
|
], 2),
|
|
55430
|
-
s("div",
|
|
55431
|
-
s("div",
|
|
55648
|
+
s("div", aH, [
|
|
55649
|
+
s("div", oH, [
|
|
55432
55650
|
Le(V(e.call.direction === "outbound" ? "Efetuada" : "Recebida") + " ", 1),
|
|
55433
|
-
e.call.started_at ? (d(), p("span",
|
|
55651
|
+
e.call.started_at ? (d(), p("span", sH, " • " + V(g(e.call.started_at)), 1)) : z("", !0)
|
|
55434
55652
|
]),
|
|
55435
|
-
e.hideMessageButton ? (d(), p("div",
|
|
55653
|
+
e.hideMessageButton ? (d(), p("div", rH, V(e.call.direction === "outbound" ? "Uma ligação foi efetuada" : "Uma ligação foi recebida"), 1)) : z("", !0),
|
|
55436
55654
|
A(e.call).length > 0 ? (d(), p("div", {
|
|
55437
55655
|
key: 1,
|
|
55438
55656
|
class: Q(["call-card-status", m(c(e.call))])
|
|
55439
55657
|
}, V(h(c(e.call))), 3)) : z("", !0)
|
|
55440
55658
|
])
|
|
55441
55659
|
]),
|
|
55442
|
-
s("div",
|
|
55660
|
+
s("div", iH, [
|
|
55443
55661
|
!e.hideMessageButton && e.call.external_id ? (d(), p("button", {
|
|
55444
55662
|
key: 0,
|
|
55445
55663
|
onClick: M[0] || (M[0] = rt((D) => f(e.call), ["stop"])),
|
|
@@ -55508,18 +55726,18 @@ const xF = {
|
|
|
55508
55726
|
]),
|
|
55509
55727
|
Se(yt, { name: "fade" }, {
|
|
55510
55728
|
default: we(() => [
|
|
55511
|
-
n.value.includes(e.call.id) ? (d(), p("div",
|
|
55512
|
-
a.value[e.call.id] && x(e.call) ? (d(), Ee(
|
|
55729
|
+
n.value.includes(e.call.id) ? (d(), p("div", lH, [
|
|
55730
|
+
a.value[e.call.id] && x(e.call) ? (d(), Ee(eH, {
|
|
55513
55731
|
key: 0,
|
|
55514
55732
|
"record-metadata": e.call.record_metadata,
|
|
55515
55733
|
onClose: M[3] || (M[3] = (D) => l(e.call.id))
|
|
55516
55734
|
}, null, 8, ["record-metadata"])) : z("", !0),
|
|
55517
|
-
s("div",
|
|
55735
|
+
s("div", cH, [
|
|
55518
55736
|
(d(!0), p(ke, null, Oe(A(e.call), (D, j) => (d(), p("div", {
|
|
55519
55737
|
key: j,
|
|
55520
55738
|
class: "call-event-item"
|
|
55521
55739
|
}, [
|
|
55522
|
-
s("div",
|
|
55740
|
+
s("div", dH, [
|
|
55523
55741
|
s("div", {
|
|
55524
55742
|
class: Q(["call-event-dot", b(C(D))])
|
|
55525
55743
|
}, null, 2),
|
|
@@ -55527,7 +55745,7 @@ const xF = {
|
|
|
55527
55745
|
class: Q(["call-event-text", m(C(D))])
|
|
55528
55746
|
}, V(h(C(D))), 3)
|
|
55529
55747
|
]),
|
|
55530
|
-
s("span",
|
|
55748
|
+
s("span", uH, V(y(D.created_at)), 1)
|
|
55531
55749
|
]))), 128))
|
|
55532
55750
|
])
|
|
55533
55751
|
])) : z("", !0)
|
|
@@ -55536,19 +55754,19 @@ const xF = {
|
|
|
55536
55754
|
})
|
|
55537
55755
|
]));
|
|
55538
55756
|
}
|
|
55539
|
-
}, xl = /* @__PURE__ */ Te(
|
|
55757
|
+
}, xl = /* @__PURE__ */ Te(fH, [["__scopeId", "data-v-7de9d6c1"]]), pH = { class: "call-history-container" }, hH = {
|
|
55540
55758
|
key: 0,
|
|
55541
55759
|
class: "call-history-loading"
|
|
55542
|
-
},
|
|
55760
|
+
}, mH = {
|
|
55543
55761
|
key: 1,
|
|
55544
55762
|
class: "call-history-error"
|
|
55545
|
-
},
|
|
55763
|
+
}, vH = {
|
|
55546
55764
|
key: 2,
|
|
55547
55765
|
class: "call-history-empty"
|
|
55548
|
-
},
|
|
55766
|
+
}, gH = {
|
|
55549
55767
|
key: 3,
|
|
55550
55768
|
class: "call-history-list"
|
|
55551
|
-
},
|
|
55769
|
+
}, yH = {
|
|
55552
55770
|
__name: "CallHistory",
|
|
55553
55771
|
props: {
|
|
55554
55772
|
chatId: {
|
|
@@ -55595,8 +55813,8 @@ const xF = {
|
|
|
55595
55813
|
function i(l) {
|
|
55596
55814
|
t.onMessageClick && t.onMessageClick(l);
|
|
55597
55815
|
}
|
|
55598
|
-
return (l, u) => (d(), p("div",
|
|
55599
|
-
n.value ? (d(), p("div",
|
|
55816
|
+
return (l, u) => (d(), p("div", pH, [
|
|
55817
|
+
n.value ? (d(), p("div", hH, [...u[0] || (u[0] = [
|
|
55600
55818
|
s("svg", {
|
|
55601
55819
|
class: "call-history-loading-spinner",
|
|
55602
55820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -55618,7 +55836,7 @@ const xF = {
|
|
|
55618
55836
|
})
|
|
55619
55837
|
], -1),
|
|
55620
55838
|
s("span", { class: "call-history-loading-text" }, "Carregando ligações...", -1)
|
|
55621
|
-
])])) : a.value ? (d(), p("div",
|
|
55839
|
+
])])) : a.value ? (d(), p("div", mH, V(a.value), 1)) : o.value.length === 0 ? (d(), p("div", vH, " Nenhuma ligação registrada nesta conversa ")) : (d(), p("div", gH, [
|
|
55622
55840
|
(d(!0), p(ke, null, Oe(o.value, (f) => (d(), Ee(xl, {
|
|
55623
55841
|
key: f.id,
|
|
55624
55842
|
call: f,
|
|
@@ -55627,7 +55845,7 @@ const xF = {
|
|
|
55627
55845
|
]))
|
|
55628
55846
|
]));
|
|
55629
55847
|
}
|
|
55630
|
-
}, wl = /* @__PURE__ */ Te(
|
|
55848
|
+
}, wl = /* @__PURE__ */ Te(yH, [["__scopeId", "data-v-23aeed88"]]), bH = { class: "call-message-container" }, xH = /* @__PURE__ */ Bn({
|
|
55631
55849
|
__name: "CallMessage",
|
|
55632
55850
|
props: {
|
|
55633
55851
|
content: {
|
|
@@ -55636,230 +55854,30 @@ const xF = {
|
|
|
55636
55854
|
}
|
|
55637
55855
|
},
|
|
55638
55856
|
setup(e) {
|
|
55639
|
-
return (t, n) => (d(), p("div",
|
|
55857
|
+
return (t, n) => (d(), p("div", bH, [
|
|
55640
55858
|
Se(xl, {
|
|
55641
55859
|
call: e.content,
|
|
55642
55860
|
"hide-message-button": !0
|
|
55643
55861
|
}, null, 8, ["call"])
|
|
55644
55862
|
]));
|
|
55645
55863
|
}
|
|
55646
|
-
}), kl = /* @__PURE__ */ Te(
|
|
55647
|
-
|
|
55648
|
-
|
|
55649
|
-
return console.log("Iniciando integração com AWS WAF SDK"), {
|
|
55650
|
-
name: "aws-waf",
|
|
55651
|
-
async loadSdk() {
|
|
55652
|
-
if (!(cs || !e))
|
|
55653
|
-
return ya || (ya = new Promise((n) => {
|
|
55654
|
-
const a = document.createElement("script");
|
|
55655
|
-
a.src = `${e}/jsapi.js`, a.defer = !0, a.onload = () => {
|
|
55656
|
-
console.log("AWS WAF SDK carregado com sucesso"), cs = !0, n();
|
|
55657
|
-
}, a.onerror = (o) => {
|
|
55658
|
-
console.log("Erro ao carregar AWS WAF SDK:", o), ya = null, n();
|
|
55659
|
-
}, document.head.appendChild(a);
|
|
55660
|
-
}), ya);
|
|
55661
|
-
},
|
|
55662
|
-
async getInvisibleToken() {
|
|
55663
|
-
return window.AwsWafIntegration ? Promise.race([
|
|
55664
|
-
window.AwsWafIntegration.getToken(),
|
|
55665
|
-
new Promise(
|
|
55666
|
-
(n, a) => setTimeout(() => a(new Error("timeout")), 5e3)
|
|
55667
|
-
)
|
|
55668
|
-
]).catch(() => "") : "";
|
|
55669
|
-
},
|
|
55670
|
-
renderCaptcha(n, { onSuccess: a, onError: o }) {
|
|
55671
|
-
const r = document.getElementById(n);
|
|
55672
|
-
if (!r || !window.AwsWafCaptcha) {
|
|
55673
|
-
o(new Error("AWS WAF captcha indisponível para renderização"));
|
|
55674
|
-
return;
|
|
55675
|
-
}
|
|
55676
|
-
r.innerHTML = "", window.AwsWafCaptcha.renderCaptcha(r, {
|
|
55677
|
-
apiKey: t,
|
|
55678
|
-
onSuccess: a,
|
|
55679
|
-
onError: o,
|
|
55680
|
-
dynamicWidth: !1,
|
|
55681
|
-
disableLanguageSelector: !0,
|
|
55682
|
-
skipTitle: !0
|
|
55683
|
-
});
|
|
55684
|
-
},
|
|
55685
|
-
isReady: () => cs
|
|
55686
|
-
};
|
|
55687
|
-
}
|
|
55688
|
-
let ds = !1, ba = null, mi = null;
|
|
55689
|
-
function vi({ siteKey: e, siteKeyVisible: t } = {}) {
|
|
55690
|
-
console.log("Iniciando integração com Google reCAPTCHA SDK");
|
|
55691
|
-
const n = () => {
|
|
55692
|
-
var a;
|
|
55693
|
-
return (a = window.grecaptcha) == null ? void 0 : a.enterprise;
|
|
55694
|
-
};
|
|
55695
|
-
return {
|
|
55696
|
-
name: "google-recaptcha",
|
|
55697
|
-
async loadSdk() {
|
|
55698
|
-
if (!(ds || !e))
|
|
55699
|
-
return ba || (ba = new Promise((a) => {
|
|
55700
|
-
const o = document.createElement("script");
|
|
55701
|
-
o.src = "https://www.google.com/recaptcha/enterprise.js?render=explicit", o.defer = !0, o.onload = () => {
|
|
55702
|
-
window.grecaptcha.enterprise.ready(() => {
|
|
55703
|
-
const r = document.createElement("div");
|
|
55704
|
-
r.id = "__recaptcha_invisible", r.style.display = "none", document.body.appendChild(r), mi = window.grecaptcha.enterprise.render(
|
|
55705
|
-
r,
|
|
55706
|
-
{
|
|
55707
|
-
sitekey: e,
|
|
55708
|
-
size: "invisible"
|
|
55709
|
-
}
|
|
55710
|
-
), console.log("Google reCAPTCHA SDK carregado com sucesso"), ds = !0, a();
|
|
55711
|
-
});
|
|
55712
|
-
}, o.onerror = (r) => {
|
|
55713
|
-
console.log("Erro ao carregar o Google reCAPTCHA SDK:", r), ba = null, a();
|
|
55714
|
-
}, document.head.appendChild(o);
|
|
55715
|
-
}), ba);
|
|
55716
|
-
},
|
|
55717
|
-
async getInvisibleToken() {
|
|
55718
|
-
const a = n();
|
|
55719
|
-
if (!a || !e) return "";
|
|
55720
|
-
try {
|
|
55721
|
-
return await a.execute(mi, { action: "login" });
|
|
55722
|
-
} catch {
|
|
55723
|
-
return "";
|
|
55724
|
-
}
|
|
55725
|
-
},
|
|
55726
|
-
renderCaptcha(a, { onSuccess: o, onError: r }) {
|
|
55727
|
-
const i = n(), l = document.getElementById(a);
|
|
55728
|
-
if (!l || !i) {
|
|
55729
|
-
r(new Error("Google reCAPTCHA indisponível para renderização"));
|
|
55730
|
-
return;
|
|
55731
|
-
}
|
|
55732
|
-
l.innerHTML = "";
|
|
55733
|
-
const u = t || e;
|
|
55734
|
-
try {
|
|
55735
|
-
i.render(l, {
|
|
55736
|
-
sitekey: u,
|
|
55737
|
-
callback: o,
|
|
55738
|
-
"error-callback": r
|
|
55739
|
-
});
|
|
55740
|
-
} catch (f) {
|
|
55741
|
-
r(f);
|
|
55742
|
-
}
|
|
55743
|
-
},
|
|
55744
|
-
isReady: () => ds
|
|
55745
|
-
};
|
|
55746
|
-
}
|
|
55747
|
-
const vH = {
|
|
55748
|
-
awswaf: (e) => hi(e),
|
|
55749
|
-
"aws-waf": (e) => hi(e),
|
|
55750
|
-
google: (e) => vi(e),
|
|
55751
|
-
"google-recaptcha": (e) => vi(e)
|
|
55752
|
-
};
|
|
55753
|
-
let Ut = null;
|
|
55754
|
-
function tz({ provider: e, ...t }) {
|
|
55755
|
-
const n = String(e || "").trim().toLowerCase(), a = vH[n];
|
|
55756
|
-
if (!a) {
|
|
55757
|
-
console.error("Provedor de SDK não suportado:", e), Ut = null;
|
|
55758
|
-
return;
|
|
55759
|
-
}
|
|
55760
|
-
Ut = a(t);
|
|
55761
|
-
}
|
|
55762
|
-
const gH = {
|
|
55763
|
-
1: 0,
|
|
55764
|
-
2: 0,
|
|
55765
|
-
3: 1e3,
|
|
55766
|
-
4: 3e3,
|
|
55767
|
-
5: 5e3
|
|
55768
|
-
}, yH = 5e3;
|
|
55769
|
-
function nz() {
|
|
55770
|
-
const e = O(0), t = O(""), n = O(!1), a = O(0), o = O(!1), r = O(!1), i = O(!1), l = O(!1);
|
|
55771
|
-
let u = null;
|
|
55772
|
-
const f = R(() => gH[e.value] ?? yH), c = R(() => !!Ut);
|
|
55773
|
-
async function m() {
|
|
55774
|
-
Ut && (await Ut.loadSdk(), l.value = Ut.isReady());
|
|
55775
|
-
}
|
|
55776
|
-
async function v() {
|
|
55777
|
-
if (!Ut) return "";
|
|
55778
|
-
await m();
|
|
55779
|
-
try {
|
|
55780
|
-
const A = await Ut.getInvisibleToken();
|
|
55781
|
-
return t.value = A, A;
|
|
55782
|
-
} catch (A) {
|
|
55783
|
-
return console.warn("[Captcha] Falha ao obter token invisível:", A), "";
|
|
55784
|
-
}
|
|
55785
|
-
}
|
|
55786
|
-
function b(A) {
|
|
55787
|
-
return new Promise(async (C, w) => {
|
|
55788
|
-
if (!Ut) {
|
|
55789
|
-
w(new Error("Captcha provider não configurado"));
|
|
55790
|
-
return;
|
|
55791
|
-
}
|
|
55792
|
-
if (await m(), !Ut.isReady()) {
|
|
55793
|
-
w(new Error("Captcha SDK não está pronto"));
|
|
55794
|
-
return;
|
|
55795
|
-
}
|
|
55796
|
-
Ut.renderCaptcha(A, {
|
|
55797
|
-
onSuccess: (M) => {
|
|
55798
|
-
if (!M) {
|
|
55799
|
-
w(new Error("Captcha retornou token vazio"));
|
|
55800
|
-
return;
|
|
55801
|
-
}
|
|
55802
|
-
t.value = M, o.value = !0, C(M);
|
|
55803
|
-
},
|
|
55804
|
-
onError: (M) => {
|
|
55805
|
-
w(M);
|
|
55806
|
-
}
|
|
55807
|
-
});
|
|
55808
|
-
});
|
|
55809
|
-
}
|
|
55810
|
-
function h(A, { requiresVisibleCaptcha: C = !1, userBlocked: w = !1 } = {}) {
|
|
55811
|
-
e.value = A, o.value = !1, r.value = C, i.value = w;
|
|
55812
|
-
const M = f.value;
|
|
55813
|
-
M > 0 && y(M);
|
|
55814
|
-
}
|
|
55815
|
-
function g() {
|
|
55816
|
-
e.value = 0, o.value = !1, r.value = !1, i.value = !1, n.value = !1, a.value = 0, u && (clearInterval(u), u = null);
|
|
55817
|
-
}
|
|
55818
|
-
function y(A) {
|
|
55819
|
-
n.value = !0, a.value = Math.ceil(A / 1e3), u && clearInterval(u), u = setInterval(() => {
|
|
55820
|
-
a.value--, a.value <= 0 && (n.value = !1, u && (clearInterval(u), u = null));
|
|
55821
|
-
}, 1e3);
|
|
55822
|
-
}
|
|
55823
|
-
function x() {
|
|
55824
|
-
u && (clearInterval(u), u = null);
|
|
55825
|
-
}
|
|
55826
|
-
return {
|
|
55827
|
-
// Estado
|
|
55828
|
-
attempts: Pn(e),
|
|
55829
|
-
captchaToken: Pn(t),
|
|
55830
|
-
isDelayActive: Pn(n),
|
|
55831
|
-
delayRemaining: Pn(a),
|
|
55832
|
-
captchaSolved: Pn(o),
|
|
55833
|
-
sdkReady: Pn(l),
|
|
55834
|
-
isUserBlocked: Pn(i),
|
|
55835
|
-
// Computeds
|
|
55836
|
-
requiredDelay: f,
|
|
55837
|
-
captchaEnabled: c,
|
|
55838
|
-
// Funções
|
|
55839
|
-
loadSdk: m,
|
|
55840
|
-
getInvisibleToken: v,
|
|
55841
|
-
renderVisibleCaptcha: b,
|
|
55842
|
-
setAttempts: h,
|
|
55843
|
-
resetOnSuccess: g,
|
|
55844
|
-
cleanup: x
|
|
55845
|
-
};
|
|
55846
|
-
}
|
|
55847
|
-
function bH(e) {
|
|
55848
|
-
e.component("primarySelect", n0), e.component("departSelect", R0), e.component("attendantSelect", j0), e.component("SimpleModal", Ro), e.component("simpleCard", a0), e.component("instanceSelect", o0), e.component("calendarEvents", h0), e.component("MFA", m0), e.component("MfaQrCode", P9), e.component("chatWindow", V0), e.component("FilterSelectLib", N0), e.component("RandomAvatar", I0), e.component("MinModal", rr), e.component("LibPatchNotes", G0), e.component("BtnNewUpdates", q0), e.component("LibPhotoPicker", W0), e.component("SelectMultipleDepartments", U0), e.component("SelectMultipleInstances", Z0), e.component("PrimaryInput", cr), e.component("CurrencyDisplay", lr), e.component("SimpleSelect", Y0), e.component("FloatingDev", bl), e.component("RatingInput", wr), e.component("TagView", yl), e.component("ClientsForm", gl), e.component("SelectMultipleTags", ir), e.component("SimpleLoader", br), e.component("OutcomeButton", xr), e.component("CallHistory", wl), e.component("CallMessage", kl), e.component("ListProducts", yr), e.component("ContactCard", ia), e.component("WalletCard", hl), e.component("ReminderModal", Zs), e.component("SoundSelect", s0), e.component("SmsPoolSelect", HF), e.component("BaseTable", Ci), e.component("TemplateTable", Kd);
|
|
55864
|
+
}), kl = /* @__PURE__ */ Te(xH, [["__scopeId", "data-v-f368f432"]]);
|
|
55865
|
+
function wH(e) {
|
|
55866
|
+
e.component("primarySelect", n0), e.component("departSelect", R0), e.component("attendantSelect", j0), e.component("SimpleModal", Ro), e.component("simpleCard", a0), e.component("instanceSelect", o0), e.component("calendarEvents", h0), e.component("MFA", m0), e.component("MfaQrCode", P9), e.component("chatWindow", V0), e.component("FilterSelectLib", N0), e.component("RandomAvatar", I0), e.component("MinModal", rr), e.component("LibPatchNotes", G0), e.component("BtnNewUpdates", q0), e.component("LibPhotoPicker", W0), e.component("SelectMultipleDepartments", U0), e.component("SelectMultipleInstances", Z0), e.component("PrimaryInput", cr), e.component("CurrencyDisplay", lr), e.component("SimpleSelect", Y0), e.component("FloatingDev", bl), e.component("RatingInput", wr), e.component("TagView", yl), e.component("ClientsForm", gl), e.component("SelectMultipleTags", ir), e.component("SimpleLoader", br), e.component("OutcomeButton", xr), e.component("CallHistory", wl), e.component("CallMessage", kl), e.component("ListProducts", yr), e.component("ContactCard", ia), e.component("WalletCard", hl), e.component("ReminderModal", Zs), e.component("SoundSelect", s0), e.component("SmsPoolSelect", NF), e.component("BaseTable", Ci), e.component("TemplateTable", Kd);
|
|
55849
55867
|
}
|
|
55850
|
-
function
|
|
55868
|
+
function kH(e, t = "add") {
|
|
55851
55869
|
const n = ua();
|
|
55852
55870
|
t === "add" ? n.addDepartments(e) : t === "delete" ? n.removeDepartments(e) : t === "update" ? (n.departments = e, n.loaded = !0) : console.error(`Ação "${t}" não suportada em attLibDeparts.`);
|
|
55853
55871
|
}
|
|
55854
|
-
function
|
|
55872
|
+
function CH(e, t = "add") {
|
|
55855
55873
|
const n = Un();
|
|
55856
55874
|
t === "add" ? n.addAttendants(e) : t === "delete" ? n.removeAttendants(e) : t === "update" ? (n.attendants = e, n.loaded = !0) : console.error(`Ação "${t}" não suportada em attLibAttendants.`);
|
|
55857
55875
|
}
|
|
55858
|
-
function
|
|
55876
|
+
function SH(e, t = "add") {
|
|
55859
55877
|
const n = qs();
|
|
55860
55878
|
t === "add" ? n.addInstance(e) : t === "delete" ? n.removeInstance(e) : t === "update" ? (n.instances = e, n.loaded = !0) : console.error(`Ação "${t}" não suportada em attLibInstances.`);
|
|
55861
55879
|
}
|
|
55862
|
-
async function
|
|
55880
|
+
async function MH(e, t, n, a = [], o = [], r = [], i = null) {
|
|
55863
55881
|
try {
|
|
55864
55882
|
dd(e);
|
|
55865
55883
|
const l = await Zi(e);
|
|
@@ -55872,18 +55890,18 @@ async function CH(e, t, n, a = [], o = [], r = [], i = null) {
|
|
|
55872
55890
|
console.error("Erro no setupLibrary:", l);
|
|
55873
55891
|
}
|
|
55874
55892
|
}
|
|
55875
|
-
function
|
|
55893
|
+
function AH(e) {
|
|
55876
55894
|
return _a(e);
|
|
55877
55895
|
}
|
|
55878
|
-
function
|
|
55896
|
+
function $H(e) {
|
|
55879
55897
|
return Y4(e);
|
|
55880
55898
|
}
|
|
55881
|
-
const
|
|
55882
|
-
install:
|
|
55883
|
-
setupLibrary:
|
|
55884
|
-
attLibDeparts:
|
|
55885
|
-
attLibAttendants:
|
|
55886
|
-
attLibInstances:
|
|
55899
|
+
const sz = {
|
|
55900
|
+
install: wH,
|
|
55901
|
+
setupLibrary: MH,
|
|
55902
|
+
attLibDeparts: kH,
|
|
55903
|
+
attLibAttendants: CH,
|
|
55904
|
+
attLibInstances: SH,
|
|
55887
55905
|
primarySelect: n0,
|
|
55888
55906
|
simpleModal: Ro,
|
|
55889
55907
|
simpleCard: a0,
|
|
@@ -55907,7 +55925,7 @@ const az = {
|
|
|
55907
55925
|
SelectMultipleTags: ir,
|
|
55908
55926
|
PrimaryInput: cr,
|
|
55909
55927
|
CurrencyDisplay: lr,
|
|
55910
|
-
getWithContrastColor:
|
|
55928
|
+
getWithContrastColor: AH,
|
|
55911
55929
|
RatingInput: wr,
|
|
55912
55930
|
TagView: yl,
|
|
55913
55931
|
ClientsForm: gl,
|
|
@@ -55917,24 +55935,24 @@ const az = {
|
|
|
55917
55935
|
ListProducts: yr,
|
|
55918
55936
|
ContactCard: ia,
|
|
55919
55937
|
ReminderModal: Zs,
|
|
55920
|
-
attReminderByLib:
|
|
55938
|
+
attReminderByLib: $H,
|
|
55921
55939
|
SoundSelect: s0,
|
|
55922
55940
|
formatCurrency: mn,
|
|
55923
55941
|
getCurrencySymbol: pl,
|
|
55924
55942
|
getCurrencyLocale: M_
|
|
55925
55943
|
};
|
|
55926
55944
|
export {
|
|
55927
|
-
|
|
55928
|
-
|
|
55945
|
+
JH as A,
|
|
55946
|
+
ez as B,
|
|
55929
55947
|
Cs as C,
|
|
55930
|
-
|
|
55931
|
-
|
|
55932
|
-
|
|
55933
|
-
|
|
55934
|
-
|
|
55935
|
-
|
|
55936
|
-
|
|
55937
|
-
|
|
55948
|
+
tz as D,
|
|
55949
|
+
nz as E,
|
|
55950
|
+
az as F,
|
|
55951
|
+
SF as G,
|
|
55952
|
+
oz as H,
|
|
55953
|
+
XH as I,
|
|
55954
|
+
QH as J,
|
|
55955
|
+
NF as S,
|
|
55938
55956
|
T0 as W,
|
|
55939
55957
|
j6 as _,
|
|
55940
55958
|
Un as a,
|
|
@@ -55943,17 +55961,17 @@ export {
|
|
|
55943
55961
|
qs as d,
|
|
55944
55962
|
ia as e,
|
|
55945
55963
|
Je as f,
|
|
55946
|
-
|
|
55947
|
-
|
|
55948
|
-
|
|
55949
|
-
|
|
55950
|
-
|
|
55951
|
-
|
|
55952
|
-
|
|
55964
|
+
kH as g,
|
|
55965
|
+
CH as h,
|
|
55966
|
+
SH as i,
|
|
55967
|
+
MH as j,
|
|
55968
|
+
AH as k,
|
|
55969
|
+
$H as l,
|
|
55970
|
+
sz as m,
|
|
55953
55971
|
u0 as n,
|
|
55954
55972
|
Ci as o,
|
|
55955
|
-
|
|
55956
|
-
|
|
55973
|
+
YH as p,
|
|
55974
|
+
KH as q,
|
|
55957
55975
|
sr as r,
|
|
55958
55976
|
ud as s,
|
|
55959
55977
|
Kd as t,
|
|
@@ -55961,6 +55979,6 @@ export {
|
|
|
55961
55979
|
mn as v,
|
|
55962
55980
|
pl as w,
|
|
55963
55981
|
M_ as x,
|
|
55964
|
-
|
|
55965
|
-
|
|
55982
|
+
ba as y,
|
|
55983
|
+
CF as z
|
|
55966
55984
|
};
|