vue-intergrall-plugins 1.1.39 → 1.1.40
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.
|
@@ -1,4 +1,99 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _arrayLikeToArray(r, a) {
|
|
2
|
+
(null == a || a > r.length) && (a = r.length);
|
|
3
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4
|
+
return n;
|
|
5
|
+
}
|
|
6
|
+
function _arrayWithHoles(r) {
|
|
7
|
+
if (Array.isArray(r)) return r;
|
|
8
|
+
}
|
|
9
|
+
function _arrayWithoutHoles(r) {
|
|
10
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
11
|
+
}
|
|
12
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
13
|
+
try {
|
|
14
|
+
var i = n[a](c),
|
|
15
|
+
u = i.value;
|
|
16
|
+
} catch (n) {
|
|
17
|
+
return void e(n);
|
|
18
|
+
}
|
|
19
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
20
|
+
}
|
|
21
|
+
function _asyncToGenerator(n) {
|
|
22
|
+
return function () {
|
|
23
|
+
var t = this,
|
|
24
|
+
e = arguments;
|
|
25
|
+
return new Promise(function (r, o) {
|
|
26
|
+
var a = n.apply(t, e);
|
|
27
|
+
function _next(n) {
|
|
28
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
29
|
+
}
|
|
30
|
+
function _throw(n) {
|
|
31
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
32
|
+
}
|
|
33
|
+
_next(void 0);
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function _createForOfIteratorHelper(r, e) {
|
|
38
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
39
|
+
if (!t) {
|
|
40
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
41
|
+
t && (r = t);
|
|
42
|
+
var n = 0,
|
|
43
|
+
F = function () {};
|
|
44
|
+
return {
|
|
45
|
+
s: F,
|
|
46
|
+
n: function () {
|
|
47
|
+
return n >= r.length ? {
|
|
48
|
+
done: !0
|
|
49
|
+
} : {
|
|
50
|
+
done: !1,
|
|
51
|
+
value: r[n++]
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
e: function (r) {
|
|
55
|
+
throw r;
|
|
56
|
+
},
|
|
57
|
+
f: F
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
61
|
+
}
|
|
62
|
+
var o,
|
|
63
|
+
a = !0,
|
|
64
|
+
u = !1;
|
|
65
|
+
return {
|
|
66
|
+
s: function () {
|
|
67
|
+
t = t.call(r);
|
|
68
|
+
},
|
|
69
|
+
n: function () {
|
|
70
|
+
var r = t.next();
|
|
71
|
+
return a = r.done, r;
|
|
72
|
+
},
|
|
73
|
+
e: function (r) {
|
|
74
|
+
u = !0, o = r;
|
|
75
|
+
},
|
|
76
|
+
f: function () {
|
|
77
|
+
try {
|
|
78
|
+
a || null == t.return || t.return();
|
|
79
|
+
} finally {
|
|
80
|
+
if (u) throw o;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function _defineProperty(e, r, t) {
|
|
86
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
87
|
+
value: t,
|
|
88
|
+
enumerable: !0,
|
|
89
|
+
configurable: !0,
|
|
90
|
+
writable: !0
|
|
91
|
+
}) : e[r] = t, e;
|
|
92
|
+
}
|
|
93
|
+
function _iterableToArray(r) {
|
|
94
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
95
|
+
}
|
|
96
|
+
function _iterableToArrayLimit(r, l) {
|
|
2
97
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
3
98
|
if (null != t) {
|
|
4
99
|
var e,
|
|
@@ -25,6 +120,12 @@
|
|
|
25
120
|
return a;
|
|
26
121
|
}
|
|
27
122
|
}
|
|
123
|
+
function _nonIterableRest() {
|
|
124
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
125
|
+
}
|
|
126
|
+
function _nonIterableSpread() {
|
|
127
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
128
|
+
}
|
|
28
129
|
function ownKeys(e, r) {
|
|
29
130
|
var t = Object.keys(e);
|
|
30
131
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46,306 +147,119 @@ function _objectSpread2(e) {
|
|
|
46
147
|
}
|
|
47
148
|
return e;
|
|
48
149
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
y = {};
|
|
106
|
-
function Generator() {}
|
|
107
|
-
function GeneratorFunction() {}
|
|
108
|
-
function GeneratorFunctionPrototype() {}
|
|
109
|
-
var p = {};
|
|
110
|
-
define(p, a, function () {
|
|
111
|
-
return this;
|
|
112
|
-
});
|
|
113
|
-
var d = Object.getPrototypeOf,
|
|
114
|
-
v = d && d(d(values([])));
|
|
115
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
116
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
117
|
-
function defineIteratorMethods(t) {
|
|
118
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
119
|
-
define(t, e, function (t) {
|
|
120
|
-
return this._invoke(e, t);
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function AsyncIterator(t, e) {
|
|
125
|
-
function invoke(r, o, i, a) {
|
|
126
|
-
var c = tryCatch(t[r], t, o);
|
|
127
|
-
if ("throw" !== c.type) {
|
|
128
|
-
var u = c.arg,
|
|
129
|
-
h = u.value;
|
|
130
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
131
|
-
invoke("next", t, i, a);
|
|
132
|
-
}, function (t) {
|
|
133
|
-
invoke("throw", t, i, a);
|
|
134
|
-
}) : e.resolve(h).then(function (t) {
|
|
135
|
-
u.value = t, i(u);
|
|
136
|
-
}, function (t) {
|
|
137
|
-
return invoke("throw", t, i, a);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
a(c.arg);
|
|
141
|
-
}
|
|
142
|
-
var r;
|
|
143
|
-
o(this, "_invoke", {
|
|
144
|
-
value: function (t, n) {
|
|
145
|
-
function callInvokeWithMethodAndArg() {
|
|
146
|
-
return new e(function (e, r) {
|
|
147
|
-
invoke(t, n, e, r);
|
|
148
|
-
});
|
|
150
|
+
function _regenerator() {
|
|
151
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
152
|
+
var e,
|
|
153
|
+
t,
|
|
154
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
155
|
+
n = r.iterator || "@@iterator",
|
|
156
|
+
o = r.toStringTag || "@@toStringTag";
|
|
157
|
+
function i(r, n, o, i) {
|
|
158
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
159
|
+
u = Object.create(c.prototype);
|
|
160
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
161
|
+
var i,
|
|
162
|
+
c,
|
|
163
|
+
u,
|
|
164
|
+
f = 0,
|
|
165
|
+
p = o || [],
|
|
166
|
+
y = !1,
|
|
167
|
+
G = {
|
|
168
|
+
p: 0,
|
|
169
|
+
n: 0,
|
|
170
|
+
v: e,
|
|
171
|
+
a: d,
|
|
172
|
+
f: d.bind(e, 4),
|
|
173
|
+
d: function (t, r) {
|
|
174
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
function d(r, n) {
|
|
178
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
179
|
+
var o,
|
|
180
|
+
i = p[t],
|
|
181
|
+
d = G.p,
|
|
182
|
+
l = i[2];
|
|
183
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
184
|
+
}
|
|
185
|
+
if (o || r > 1) return a;
|
|
186
|
+
throw y = !0, n;
|
|
187
|
+
}
|
|
188
|
+
return function (o, p, l) {
|
|
189
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
190
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
191
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
192
|
+
try {
|
|
193
|
+
if (f = 2, i) {
|
|
194
|
+
if (c || (o = "next"), t = i[o]) {
|
|
195
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
196
|
+
if (!t.done) return t;
|
|
197
|
+
u = t.value, c < 2 && (c = 0);
|
|
198
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
199
|
+
i = e;
|
|
200
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
201
|
+
} catch (t) {
|
|
202
|
+
i = e, c = 1, u = t;
|
|
203
|
+
} finally {
|
|
204
|
+
f = 1;
|
|
205
|
+
}
|
|
149
206
|
}
|
|
150
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function makeInvokeMethod(e, r, n) {
|
|
155
|
-
var o = h;
|
|
156
|
-
return function (i, a) {
|
|
157
|
-
if (o === f) throw new Error("Generator is already running");
|
|
158
|
-
if (o === s) {
|
|
159
|
-
if ("throw" === i) throw a;
|
|
160
207
|
return {
|
|
161
208
|
value: t,
|
|
162
|
-
done:
|
|
209
|
+
done: y
|
|
163
210
|
};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
var c = n.delegate;
|
|
167
|
-
if (c) {
|
|
168
|
-
var u = maybeInvokeDelegate(c, n);
|
|
169
|
-
if (u) {
|
|
170
|
-
if (u === y) continue;
|
|
171
|
-
return u;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
175
|
-
if (o === h) throw o = s, n.arg;
|
|
176
|
-
n.dispatchException(n.arg);
|
|
177
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
178
|
-
o = f;
|
|
179
|
-
var p = tryCatch(e, r, n);
|
|
180
|
-
if ("normal" === p.type) {
|
|
181
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
182
|
-
return {
|
|
183
|
-
value: p.arg,
|
|
184
|
-
done: n.done
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
function maybeInvokeDelegate(e, r) {
|
|
192
|
-
var n = r.method,
|
|
193
|
-
o = e.iterator[n];
|
|
194
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
195
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
196
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
197
|
-
var a = i.arg;
|
|
198
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
199
|
-
}
|
|
200
|
-
function pushTryEntry(t) {
|
|
201
|
-
var e = {
|
|
202
|
-
tryLoc: t[0]
|
|
203
|
-
};
|
|
204
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
205
|
-
}
|
|
206
|
-
function resetTryEntry(t) {
|
|
207
|
-
var e = t.completion || {};
|
|
208
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
209
|
-
}
|
|
210
|
-
function Context(t) {
|
|
211
|
-
this.tryEntries = [{
|
|
212
|
-
tryLoc: "root"
|
|
213
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
211
|
+
};
|
|
212
|
+
}(r, o, i), !0), u;
|
|
214
213
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
return i.next = i;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
214
|
+
var a = {};
|
|
215
|
+
function Generator() {}
|
|
216
|
+
function GeneratorFunction() {}
|
|
217
|
+
function GeneratorFunctionPrototype() {}
|
|
218
|
+
t = Object.getPrototypeOf;
|
|
219
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
220
|
+
return this;
|
|
221
|
+
}), t),
|
|
222
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
223
|
+
function f(e) {
|
|
224
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
230
225
|
}
|
|
231
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
232
|
-
value: GeneratorFunctionPrototype,
|
|
233
|
-
configurable: !0
|
|
234
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
235
|
-
value: GeneratorFunction,
|
|
236
|
-
configurable: !0
|
|
237
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
238
|
-
var e = "function" == typeof t && t.constructor;
|
|
239
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
240
|
-
}, e.mark = function (t) {
|
|
241
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
242
|
-
}, e.awrap = function (t) {
|
|
243
|
-
return {
|
|
244
|
-
__await: t
|
|
245
|
-
};
|
|
246
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
247
|
-
return this;
|
|
248
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
249
|
-
void 0 === i && (i = Promise);
|
|
250
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
251
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
252
|
-
return t.done ? t.value : a.next();
|
|
253
|
-
});
|
|
254
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
226
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
255
227
|
return this;
|
|
256
|
-
}),
|
|
228
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
257
229
|
return "[object Generator]";
|
|
258
|
-
}),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
return r.reverse(), function next() {
|
|
263
|
-
for (; r.length;) {
|
|
264
|
-
var t = r.pop();
|
|
265
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
266
|
-
}
|
|
267
|
-
return next.done = !0, next;
|
|
230
|
+
}), (_regenerator = function () {
|
|
231
|
+
return {
|
|
232
|
+
w: i,
|
|
233
|
+
m: f
|
|
268
234
|
};
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
function handle(n, o) {
|
|
284
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
285
|
-
}
|
|
286
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
287
|
-
var i = this.tryEntries[o],
|
|
288
|
-
a = i.completion;
|
|
289
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
290
|
-
if (i.tryLoc <= this.prev) {
|
|
291
|
-
var c = n.call(i, "catchLoc"),
|
|
292
|
-
u = n.call(i, "finallyLoc");
|
|
293
|
-
if (c && u) {
|
|
294
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
295
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
296
|
-
} else if (c) {
|
|
297
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
298
|
-
} else {
|
|
299
|
-
if (!u) throw new Error("try statement without catch or finally");
|
|
300
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
abrupt: function (t, e) {
|
|
306
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
307
|
-
var o = this.tryEntries[r];
|
|
308
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
309
|
-
var i = o;
|
|
310
|
-
break;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
314
|
-
var a = i ? i.completion : {};
|
|
315
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
316
|
-
},
|
|
317
|
-
complete: function (t, e) {
|
|
318
|
-
if ("throw" === t.type) throw t.arg;
|
|
319
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
320
|
-
},
|
|
321
|
-
finish: function (t) {
|
|
322
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
323
|
-
var r = this.tryEntries[e];
|
|
324
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
catch: function (t) {
|
|
328
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
329
|
-
var r = this.tryEntries[e];
|
|
330
|
-
if (r.tryLoc === t) {
|
|
331
|
-
var n = r.completion;
|
|
332
|
-
if ("throw" === n.type) {
|
|
333
|
-
var o = n.arg;
|
|
334
|
-
resetTryEntry(r);
|
|
335
|
-
}
|
|
336
|
-
return o;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
throw new Error("illegal catch attempt");
|
|
340
|
-
},
|
|
341
|
-
delegateYield: function (e, r, n) {
|
|
342
|
-
return this.delegate = {
|
|
343
|
-
iterator: values(e),
|
|
344
|
-
resultName: r,
|
|
345
|
-
nextLoc: n
|
|
346
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
235
|
+
})();
|
|
236
|
+
}
|
|
237
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
238
|
+
var i = Object.defineProperty;
|
|
239
|
+
try {
|
|
240
|
+
i({}, "", {});
|
|
241
|
+
} catch (e) {
|
|
242
|
+
i = 0;
|
|
243
|
+
}
|
|
244
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
245
|
+
function o(r, n) {
|
|
246
|
+
_regeneratorDefine(e, r, function (e) {
|
|
247
|
+
return this._invoke(r, n, e);
|
|
248
|
+
});
|
|
347
249
|
}
|
|
348
|
-
|
|
250
|
+
r ? i ? i(e, r, {
|
|
251
|
+
value: n,
|
|
252
|
+
enumerable: !t,
|
|
253
|
+
configurable: !t,
|
|
254
|
+
writable: !t
|
|
255
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
256
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
257
|
+
}
|
|
258
|
+
function _slicedToArray(r, e) {
|
|
259
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
260
|
+
}
|
|
261
|
+
function _toConsumableArray(r) {
|
|
262
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
349
263
|
}
|
|
350
264
|
function _toPrimitive(t, r) {
|
|
351
265
|
if ("object" != typeof t || !t) return t;
|
|
@@ -359,7 +273,7 @@ function _toPrimitive(t, r) {
|
|
|
359
273
|
}
|
|
360
274
|
function _toPropertyKey(t) {
|
|
361
275
|
var i = _toPrimitive(t, "string");
|
|
362
|
-
return "symbol" == typeof i ? i :
|
|
276
|
+
return "symbol" == typeof i ? i : i + "";
|
|
363
277
|
}
|
|
364
278
|
function _typeof(o) {
|
|
365
279
|
"@babel/helpers - typeof";
|
|
@@ -370,134 +284,12 @@ function _typeof(o) {
|
|
|
370
284
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
371
285
|
}, _typeof(o);
|
|
372
286
|
}
|
|
373
|
-
function
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
var
|
|
377
|
-
|
|
378
|
-
reject(error);
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if (info.done) {
|
|
382
|
-
resolve(value);
|
|
383
|
-
} else {
|
|
384
|
-
Promise.resolve(value).then(_next, _throw);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
function _asyncToGenerator(fn) {
|
|
388
|
-
return function () {
|
|
389
|
-
var self = this,
|
|
390
|
-
args = arguments;
|
|
391
|
-
return new Promise(function (resolve, reject) {
|
|
392
|
-
var gen = fn.apply(self, args);
|
|
393
|
-
function _next(value) {
|
|
394
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
395
|
-
}
|
|
396
|
-
function _throw(err) {
|
|
397
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
398
|
-
}
|
|
399
|
-
_next(undefined);
|
|
400
|
-
});
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
function _defineProperty(obj, key, value) {
|
|
404
|
-
key = _toPropertyKey(key);
|
|
405
|
-
if (key in obj) {
|
|
406
|
-
Object.defineProperty(obj, key, {
|
|
407
|
-
value: value,
|
|
408
|
-
enumerable: true,
|
|
409
|
-
configurable: true,
|
|
410
|
-
writable: true
|
|
411
|
-
});
|
|
412
|
-
} else {
|
|
413
|
-
obj[key] = value;
|
|
287
|
+
function _unsupportedIterableToArray(r, a) {
|
|
288
|
+
if (r) {
|
|
289
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
290
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
291
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
414
292
|
}
|
|
415
|
-
return obj;
|
|
416
|
-
}
|
|
417
|
-
function _slicedToArray(arr, i) {
|
|
418
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
419
|
-
}
|
|
420
|
-
function _toConsumableArray(arr) {
|
|
421
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
422
|
-
}
|
|
423
|
-
function _arrayWithoutHoles(arr) {
|
|
424
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
425
|
-
}
|
|
426
|
-
function _arrayWithHoles(arr) {
|
|
427
|
-
if (Array.isArray(arr)) return arr;
|
|
428
|
-
}
|
|
429
|
-
function _iterableToArray(iter) {
|
|
430
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
431
|
-
}
|
|
432
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
433
|
-
if (!o) return;
|
|
434
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
435
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
436
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
437
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
438
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
439
|
-
}
|
|
440
|
-
function _arrayLikeToArray(arr, len) {
|
|
441
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
442
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
443
|
-
return arr2;
|
|
444
|
-
}
|
|
445
|
-
function _nonIterableSpread() {
|
|
446
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
447
|
-
}
|
|
448
|
-
function _nonIterableRest() {
|
|
449
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
450
|
-
}
|
|
451
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
452
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
453
|
-
if (!it) {
|
|
454
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
455
|
-
if (it) o = it;
|
|
456
|
-
var i = 0;
|
|
457
|
-
var F = function () {};
|
|
458
|
-
return {
|
|
459
|
-
s: F,
|
|
460
|
-
n: function () {
|
|
461
|
-
if (i >= o.length) return {
|
|
462
|
-
done: true
|
|
463
|
-
};
|
|
464
|
-
return {
|
|
465
|
-
done: false,
|
|
466
|
-
value: o[i++]
|
|
467
|
-
};
|
|
468
|
-
},
|
|
469
|
-
e: function (e) {
|
|
470
|
-
throw e;
|
|
471
|
-
},
|
|
472
|
-
f: F
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
476
|
-
}
|
|
477
|
-
var normalCompletion = true,
|
|
478
|
-
didErr = false,
|
|
479
|
-
err;
|
|
480
|
-
return {
|
|
481
|
-
s: function () {
|
|
482
|
-
it = it.call(o);
|
|
483
|
-
},
|
|
484
|
-
n: function () {
|
|
485
|
-
var step = it.next();
|
|
486
|
-
normalCompletion = step.done;
|
|
487
|
-
return step;
|
|
488
|
-
},
|
|
489
|
-
e: function (e) {
|
|
490
|
-
didErr = true;
|
|
491
|
-
err = e;
|
|
492
|
-
},
|
|
493
|
-
f: function () {
|
|
494
|
-
try {
|
|
495
|
-
if (!normalCompletion && it.return != null) it.return();
|
|
496
|
-
} finally {
|
|
497
|
-
if (didErr) throw err;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
293
|
}var top = 'top';
|
|
502
294
|
var bottom = 'bottom';
|
|
503
295
|
var right = 'right';
|
|
@@ -4890,72 +4682,71 @@ var dev = window.location.hostname == "localhost" ? "&teste=eloteste" : "";var s
|
|
|
4890
4682
|
methods: {
|
|
4891
4683
|
getStandardMessages: function getStandardMessages(type, token) {
|
|
4892
4684
|
var _this = this;
|
|
4893
|
-
return _asyncToGenerator(
|
|
4894
|
-
var url, response, data, tipo, nivel, conteudo, msg_ret, st_ret;
|
|
4895
|
-
return
|
|
4896
|
-
while (1) switch (_context.
|
|
4685
|
+
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
4686
|
+
var url, response, data, tipo, nivel, conteudo, msg_ret, st_ret, _t;
|
|
4687
|
+
return _regenerator().w(function (_context) {
|
|
4688
|
+
while (1) switch (_context.p = _context.n) {
|
|
4897
4689
|
case 0:
|
|
4898
4690
|
url = "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(_this.$root.$reqTeste || dev);
|
|
4899
4691
|
if (_this.$root.$httpRequest) {
|
|
4900
|
-
_context.
|
|
4692
|
+
_context.n = 1;
|
|
4901
4693
|
break;
|
|
4902
4694
|
}
|
|
4903
|
-
return _context.
|
|
4904
|
-
case
|
|
4905
|
-
_context.
|
|
4906
|
-
_context.
|
|
4695
|
+
return _context.a(2, false);
|
|
4696
|
+
case 1:
|
|
4697
|
+
_context.p = 1;
|
|
4698
|
+
_context.n = 2;
|
|
4907
4699
|
return _this.$root.$httpRequest.get(url);
|
|
4908
|
-
case
|
|
4909
|
-
response = _context.
|
|
4700
|
+
case 2:
|
|
4701
|
+
response = _context.v;
|
|
4910
4702
|
if (!(_typeof(response) != "object" || _typeof(response.data) != "object")) {
|
|
4911
|
-
_context.
|
|
4703
|
+
_context.n = 3;
|
|
4912
4704
|
break;
|
|
4913
4705
|
}
|
|
4914
|
-
return _context.
|
|
4706
|
+
return _context.a(2, {
|
|
4915
4707
|
msg_ret: "Retorno incorreto das mensagens formatadas",
|
|
4916
4708
|
error: true
|
|
4917
4709
|
});
|
|
4918
|
-
case
|
|
4710
|
+
case 3:
|
|
4919
4711
|
data = response.data;
|
|
4920
4712
|
tipo = data.tipo, nivel = data.nivel, conteudo = data.conteudo, msg_ret = data.msg_ret, st_ret = data.st_ret;
|
|
4921
4713
|
if (tipo) _this.$emit("set-message-type", tipo);
|
|
4922
4714
|
if (!(st_ret === "OK")) {
|
|
4923
|
-
_context.
|
|
4715
|
+
_context.n = 4;
|
|
4924
4716
|
break;
|
|
4925
4717
|
}
|
|
4926
|
-
return _context.
|
|
4927
|
-
case
|
|
4718
|
+
return _context.a(2, conteudo ? conteudo : nivel);
|
|
4719
|
+
case 4:
|
|
4928
4720
|
if (!(st_ret === "AVISO")) {
|
|
4929
|
-
_context.
|
|
4721
|
+
_context.n = 5;
|
|
4930
4722
|
break;
|
|
4931
4723
|
}
|
|
4932
|
-
return _context.
|
|
4724
|
+
return _context.a(2, {
|
|
4933
4725
|
msg_ret: msg_ret
|
|
4934
4726
|
});
|
|
4935
|
-
case
|
|
4936
|
-
return _context.
|
|
4727
|
+
case 5:
|
|
4728
|
+
return _context.a(2, msg_ret ? {
|
|
4937
4729
|
msg_ret: msg_ret,
|
|
4938
4730
|
error: true
|
|
4939
4731
|
} : {
|
|
4940
4732
|
msg_ret: "Erro ao buscar mensagens formatadas",
|
|
4941
4733
|
error: true
|
|
4942
4734
|
});
|
|
4943
|
-
case
|
|
4944
|
-
_context.
|
|
4735
|
+
case 6:
|
|
4736
|
+
_context.n = 8;
|
|
4945
4737
|
break;
|
|
4946
|
-
case
|
|
4947
|
-
_context.
|
|
4948
|
-
|
|
4949
|
-
console.error("Erro na requisicao para o servidor (2)",
|
|
4950
|
-
return _context.
|
|
4951
|
-
msg_ret:
|
|
4738
|
+
case 7:
|
|
4739
|
+
_context.p = 7;
|
|
4740
|
+
_t = _context.v;
|
|
4741
|
+
console.error("Erro na requisicao para o servidor (2)", _t);
|
|
4742
|
+
return _context.a(2, {
|
|
4743
|
+
msg_ret: _t.message ? _t.message : _t,
|
|
4952
4744
|
error: true
|
|
4953
4745
|
});
|
|
4954
|
-
case
|
|
4955
|
-
|
|
4956
|
-
return _context.stop();
|
|
4746
|
+
case 8:
|
|
4747
|
+
return _context.a(2);
|
|
4957
4748
|
}
|
|
4958
|
-
}, _callee, null, [[
|
|
4749
|
+
}, _callee, null, [[1, 7]]);
|
|
4959
4750
|
}))();
|
|
4960
4751
|
}
|
|
4961
4752
|
}
|
|
@@ -8459,12 +8250,21 @@ var script$c = {
|
|
|
8459
8250
|
},
|
|
8460
8251
|
showControlFiles: {
|
|
8461
8252
|
type: Boolean
|
|
8253
|
+
},
|
|
8254
|
+
hasTranscription: {
|
|
8255
|
+
type: Boolean,
|
|
8256
|
+
default: false
|
|
8257
|
+
},
|
|
8258
|
+
transcriptionText: {
|
|
8259
|
+
type: String,
|
|
8260
|
+
default: ""
|
|
8462
8261
|
}
|
|
8463
8262
|
},
|
|
8464
8263
|
data: function data() {
|
|
8465
8264
|
return {
|
|
8466
8265
|
imgErro: false,
|
|
8467
|
-
imgMsgErro: ""
|
|
8266
|
+
imgMsgErro: "",
|
|
8267
|
+
hideTranscription: false
|
|
8468
8268
|
};
|
|
8469
8269
|
},
|
|
8470
8270
|
mounted: function mounted() {
|
|
@@ -8475,6 +8275,12 @@ var script$c = {
|
|
|
8475
8275
|
}
|
|
8476
8276
|
},
|
|
8477
8277
|
methods: {
|
|
8278
|
+
toggleHideTranscription: function toggleHideTranscription() {
|
|
8279
|
+
this.hideTranscription = !this.hideTranscription;
|
|
8280
|
+
},
|
|
8281
|
+
emitTranscription: function emitTranscription() {
|
|
8282
|
+
this.$emit("transcribe-audio", this.anexo);
|
|
8283
|
+
},
|
|
8478
8284
|
changeAudioSpeed: function changeAudioSpeed(newSpeed) {
|
|
8479
8285
|
// Aplique a velocidade ao elemento de áudio
|
|
8480
8286
|
this.$refs.audioPlayer.playbackRate = newSpeed;
|
|
@@ -8529,7 +8335,11 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
8529
8335
|
attrs: {
|
|
8530
8336
|
"icon": ['fas', 'file-alt']
|
|
8531
8337
|
}
|
|
8532
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + ">" + _vm._ssrEscape(_vm._s(_vm.filename)) + "</p>")], 2), _vm._ssrNode(" "), _vm.
|
|
8338
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + ">" + _vm._ssrEscape(_vm._s(_vm.filename)) + "</p>")], 2), _vm._ssrNode(" " + (_vm.audio && _vm.hasTranscription ? "<div class=\"transcription-controls\">" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.transcricaoControl || 'Transcrever') + "\n ") + "</div>" : "<!---->") + " "), _vm.audio && _vm.transcriptionText ? _vm._ssrNode("<div class=\"transcription-container\">", "</div>", [_vm._ssrNode("<div class=\"transcription-header\">", "</div>", [_vm._ssrNode((!_vm.hideTranscription ? "<p>" + _vm._ssrEscape(_vm._s((_vm.dictionary.transcricaoLabel || 'Transcricao') + ": ")) + "</p>" : "<!---->") + " "), _vm._ssrNode("<button class=\"transcription-button\">", "</button>", [_c('fa-icon', {
|
|
8339
|
+
attrs: {
|
|
8340
|
+
"icon": ['fas', "caret-" + (_vm.hideTranscription ? 'down' : 'up')]
|
|
8341
|
+
}
|
|
8342
|
+
})], 1)], 2), _vm._ssrNode(" " + (!_vm.hideTranscription ? "<p class=\"transcription-text\">" + _vm._ssrEscape(_vm._s(_vm.transcriptionText)) + "</p>" : "<!---->"))], 2) : _vm._e(), _vm._ssrNode(" "), _vm.showControlFiles ? _vm._ssrNode("<div class=\"file-actions\">", "</div>", [_vm.imageURL ? _vm._ssrNode("<span class=\"file-action-button\">", "</span>", [_c('fa-icon', {
|
|
8533
8343
|
directives: [{
|
|
8534
8344
|
name: "tippy",
|
|
8535
8345
|
rawName: "v-tippy"
|
|
@@ -8629,11 +8439,11 @@ var __vue_staticRenderFns__$c = [];
|
|
|
8629
8439
|
/* style */
|
|
8630
8440
|
var __vue_inject_styles__$c = function __vue_inject_styles__(inject) {
|
|
8631
8441
|
if (!inject) return;
|
|
8632
|
-
inject("data-v-
|
|
8633
|
-
source: ".tippy-tooltip.light-theme .tippy-backdrop{background-color:#fff}.tippy-tooltip.light-theme{background-color:#fff;border:1px solid #ccc;color:#333;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.tippy-confirmation p{margin-bottom:3px}.tippy-confirmation button{border:unset;background-color:#f1f1f1;border-radius:3px;padding:5px 8px;cursor:pointer;font-size:12px}.tippy-confirmation button.cancel{border-bottom:2px solid red;margin-right:15px}.tippy-confirmation button.confirm{border-bottom:2px solid green}",
|
|
8442
|
+
inject("data-v-0bd81928_0", {
|
|
8443
|
+
source: ".transcription-container{display:flex;flex-wrap:wrap;width:100%}.transcription-header{display:flex;justify-content:flex-end;align-items:center;gap:10px;width:100%}.transcription-header>p{flex:1}.transcription-button{background-color:transparent;border:none;cursor:pointer;transition:background 150ms ease-in-out;border-radius:5px;display:flex;justify-content:center;align-items:center}.transcription-button:hover{background:rgba(0,0,0,.1)}.transcription-controls{margin-top:10px;color:#00f;cursor:pointer}.transcription-controls:hover{text-decoration:underline}.transcription-text{white-space:break-spaces;color:rgba(0,0,0,.6)}.tippy-tooltip.light-theme .tippy-backdrop{background-color:#fff}.tippy-tooltip.light-theme{background-color:#fff;border:1px solid #ccc;color:#333;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.tippy-confirmation p{margin-bottom:3px}.tippy-confirmation button{border:unset;background-color:#f1f1f1;border-radius:3px;padding:5px 8px;cursor:pointer;font-size:12px}.tippy-confirmation button.cancel{border-bottom:2px solid red;margin-right:15px}.tippy-confirmation button.confirm{border-bottom:2px solid green}",
|
|
8634
8444
|
map: undefined,
|
|
8635
8445
|
media: undefined
|
|
8636
|
-
}), inject("data-v-
|
|
8446
|
+
}), inject("data-v-0bd81928_1", {
|
|
8637
8447
|
source: ".mensagem__principal .default-doc{background-color:var(--files-bg)}.mensagem__principal .default-doc:hover{background-color:var(--files-bg-hover)}.mensagem__outros .default-doc{background-color:rgba(100,100,100,.1)}.mensagem__outros .default-doc:hover{background-color:rgba(100,100,100,.3)}.default-doc:hover p{text-decoration:underline}.default-doc{display:flex;align-items:center;padding:10px;border-radius:5px;width:100%;max-width:100%;cursor:pointer;transition:background-color 150ms ease-in-out}.default-doc svg{font-size:19.2px;margin:0 5px}.default-doc p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-actions{display:flex;justify-content:flex-end;width:100%;padding:5px}.file-actions a{margin-right:0}.mensagem__principal .file-action-button{background-color:var(--files-bg)}.mensagem__outros .file-action-button{background-color:rgba(100,100,100,.1)}.mensagem__principal .file-action-button:hover{background-color:var(--files-bg-hover)}.mensagem__outros .file-action-button:hover{background-color:rgba(100,100,100,.3)}.file-action-button{display:flex;justify-content:center;align-items:center;margin-left:12px;cursor:pointer;padding:5px;border-radius:5px;transition:background-color 150ms ease-in-out}.file-action-button a{margin:0}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem-div-anexo{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container{width:100%;margin-top:5px;overflow:hidden;display:flex;max-height:300px}.anexo-container .arquivo-erro,.anexo-container a{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container p{text-overflow:ellipsis;overflow:hidden}.anexo-container .arquivo-erro,.anexo-container p{margin:0;margin-left:15px;font-size:14.4px}.anexo-container svg{font-size:32px}.anexo-mensagem audio .divAudioPai{outline:0;width:100%;margin-bottom:5px}.audioStyle{width:370px;min-width:calc(100% - 45px)}.divAudioPai{display:flex;background-color:#f1f3f4;border-radius:50%;width:100%;border-bottom-right-radius:26px;border-top-right-radius:26px}.anexo-mensagem video{flex:1;width:100%;max-width:350px;cursor:pointer;margin-bottom:5px}.anexos-links-container{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg{cursor:pointer}.mensagem-div-anexo img{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition{width:100%;height:100%}.anexo-mensagem{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert{position:relative;padding:10.4px 19.2px;margin:5px 0;border:1px solid transparent;border-radius:4px;text-align:center}.alert svg{font-size:16.4px;margin-right:2px}.pdf{color:#e74c3c}.doc{color:#006bc9}",
|
|
8638
8448
|
map: undefined,
|
|
8639
8449
|
media: undefined
|
|
@@ -8642,7 +8452,7 @@ var __vue_inject_styles__$c = function __vue_inject_styles__(inject) {
|
|
|
8642
8452
|
/* scoped */
|
|
8643
8453
|
var __vue_scope_id__$c = undefined;
|
|
8644
8454
|
/* module identifier */
|
|
8645
|
-
var __vue_module_identifier__$c = "data-v-
|
|
8455
|
+
var __vue_module_identifier__$c = "data-v-0bd81928";
|
|
8646
8456
|
/* functional template */
|
|
8647
8457
|
var __vue_is_functional_template__$c = false;
|
|
8648
8458
|
/* style inject shadow dom */
|
|
@@ -9085,50 +8895,50 @@ var InteratividadeContato = __vue_component__$e;var script$8 = {
|
|
|
9085
8895
|
},
|
|
9086
8896
|
gerarPreview: function gerarPreview() {
|
|
9087
8897
|
var _this2 = this;
|
|
9088
|
-
return _asyncToGenerator(
|
|
9089
|
-
var url, encodedURL, response, data, st_ret, msg_ret, raspagem, description, og, theme_color, image, site_name, title, author;
|
|
9090
|
-
return
|
|
9091
|
-
while (1) switch (_context.
|
|
8898
|
+
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
8899
|
+
var url, encodedURL, response, data, st_ret, msg_ret, raspagem, description, og, theme_color, image, site_name, title, author, _t;
|
|
8900
|
+
return _regenerator().w(function (_context) {
|
|
8901
|
+
while (1) switch (_context.p = _context.n) {
|
|
9092
8902
|
case 0:
|
|
9093
|
-
_context.
|
|
8903
|
+
_context.p = 0;
|
|
9094
8904
|
url = _this2.returnURL();
|
|
9095
8905
|
if (url) {
|
|
9096
|
-
_context.
|
|
8906
|
+
_context.n = 1;
|
|
9097
8907
|
break;
|
|
9098
8908
|
}
|
|
9099
|
-
return _context.
|
|
9100
|
-
case
|
|
8909
|
+
return _context.a(2);
|
|
8910
|
+
case 1:
|
|
9101
8911
|
if (_this2.$root.$httpRequest) {
|
|
9102
|
-
_context.
|
|
8912
|
+
_context.n = 2;
|
|
9103
8913
|
break;
|
|
9104
8914
|
}
|
|
9105
|
-
return _context.
|
|
9106
|
-
case
|
|
8915
|
+
return _context.a(2);
|
|
8916
|
+
case 2:
|
|
9107
8917
|
encodedURL = Buffer(url).toString("base64");
|
|
9108
|
-
_context.
|
|
8918
|
+
_context.n = 3;
|
|
9109
8919
|
return _this2.$root.$httpRequest.get("".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev));
|
|
9110
|
-
case
|
|
9111
|
-
response = _context.
|
|
8920
|
+
case 3:
|
|
8921
|
+
response = _context.v;
|
|
9112
8922
|
if (!(_typeof(response) != "object" || _typeof(response.data) != "object")) {
|
|
9113
|
-
_context.
|
|
8923
|
+
_context.n = 4;
|
|
9114
8924
|
break;
|
|
9115
8925
|
}
|
|
9116
8926
|
throw "Retorno incorreto";
|
|
9117
|
-
case
|
|
8927
|
+
case 4:
|
|
9118
8928
|
data = response.data;
|
|
9119
8929
|
st_ret = data.st_ret, msg_ret = data.msg_ret, raspagem = data.raspagem;
|
|
9120
8930
|
if (!(st_ret != "OK")) {
|
|
9121
|
-
_context.
|
|
8931
|
+
_context.n = 5;
|
|
9122
8932
|
break;
|
|
9123
8933
|
}
|
|
9124
8934
|
throw "".concat(st_ret, " - ").concat(msg_ret);
|
|
9125
|
-
case
|
|
8935
|
+
case 5:
|
|
9126
8936
|
if (raspagem) {
|
|
9127
|
-
_context.
|
|
8937
|
+
_context.n = 6;
|
|
9128
8938
|
break;
|
|
9129
8939
|
}
|
|
9130
8940
|
throw "".concat(st_ret, " - ").concat(msg_ret, " | (Raspagem nao encontrada no retorno)");
|
|
9131
|
-
case
|
|
8941
|
+
case 6:
|
|
9132
8942
|
description = raspagem.description, og = raspagem.og, theme_color = raspagem.theme_color;
|
|
9133
8943
|
if (description) _this2.linkPreview.description = description;
|
|
9134
8944
|
if (raspagem.author) _this2.linkPreview.author = raspagem.author;
|
|
@@ -9140,17 +8950,16 @@ var InteratividadeContato = __vue_component__$e;var script$8 = {
|
|
|
9140
8950
|
}
|
|
9141
8951
|
if (theme_color) _this2.linkPreview.colorTheme = theme_color;
|
|
9142
8952
|
if (_this2.linkPreview.description || _this2.linkPreview.imageSource) _this2.linkPreview.isValid = true;
|
|
9143
|
-
_context.
|
|
8953
|
+
_context.n = 8;
|
|
9144
8954
|
break;
|
|
9145
|
-
case
|
|
9146
|
-
_context.
|
|
9147
|
-
|
|
9148
|
-
console.error("Erro ao gerar o preview do link: ",
|
|
9149
|
-
case
|
|
9150
|
-
|
|
9151
|
-
return _context.stop();
|
|
8955
|
+
case 7:
|
|
8956
|
+
_context.p = 7;
|
|
8957
|
+
_t = _context.v;
|
|
8958
|
+
console.error("Erro ao gerar o preview do link: ", _t);
|
|
8959
|
+
case 8:
|
|
8960
|
+
return _context.a(2);
|
|
9152
8961
|
}
|
|
9153
|
-
}, _callee, null, [[0,
|
|
8962
|
+
}, _callee, null, [[0, 7]]);
|
|
9154
8963
|
}))();
|
|
9155
8964
|
},
|
|
9156
8965
|
openUrl: function openUrl() {
|
|
@@ -9213,7 +9022,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
|
|
|
9213
9022
|
LinkPreview: LinkPreview,
|
|
9214
9023
|
Picker: Picker
|
|
9215
9024
|
},
|
|
9216
|
-
props: ["emitContactClick", "smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg", "tipo_origem"],
|
|
9025
|
+
props: ["hasTranscription", "transcriptionText", "grupoAtendimento", "emitContactClick", "smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg", "tipo_origem"],
|
|
9217
9026
|
created: function created() {
|
|
9218
9027
|
if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
|
|
9219
9028
|
},
|
|
@@ -9312,6 +9121,14 @@ var LinkPreview = __vue_component__$d;var script$7 = {
|
|
|
9312
9121
|
this.validadeUrlToMsg();
|
|
9313
9122
|
},
|
|
9314
9123
|
methods: {
|
|
9124
|
+
emitTranscription: function emitTranscription(anexo) {
|
|
9125
|
+
var deepCopyData = JSON.parse(JSON.stringify({
|
|
9126
|
+
anexo: anexo,
|
|
9127
|
+
grupo: this.grupoAtendimento,
|
|
9128
|
+
seq: this.seq
|
|
9129
|
+
}));
|
|
9130
|
+
this.$emit("transcribe-audio", deepCopyData);
|
|
9131
|
+
},
|
|
9315
9132
|
closeMenu: function closeMenu() {
|
|
9316
9133
|
this.isMenuOpen = false;
|
|
9317
9134
|
},
|
|
@@ -9590,13 +9407,16 @@ var __vue_render__$7 = function __vue_render__() {
|
|
|
9590
9407
|
"dictionary": _vm.dictionary,
|
|
9591
9408
|
"anexo": anexo,
|
|
9592
9409
|
"origemExterna": _vm.origemExterna,
|
|
9593
|
-
"dominio": _vm.dominio
|
|
9410
|
+
"dominio": _vm.dominio,
|
|
9411
|
+
"hasTranscription": _vm.hasTranscription,
|
|
9412
|
+
"transcriptionText": _vm.transcriptionText
|
|
9594
9413
|
},
|
|
9595
9414
|
on: {
|
|
9596
9415
|
"abrir-imagem": _vm.abrirImagem,
|
|
9597
9416
|
"download-all": function downloadAll($event) {
|
|
9598
9417
|
return _vm.$emit('download-all');
|
|
9599
|
-
}
|
|
9418
|
+
},
|
|
9419
|
+
"transcribe-audio": _vm.emitTranscription
|
|
9600
9420
|
}
|
|
9601
9421
|
})], 1);
|
|
9602
9422
|
}) : _vm._e(), _vm._v(" "), _vm.urlSticker ? _c('img', {
|
|
@@ -9992,7 +9812,7 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
9992
9812
|
/* style */
|
|
9993
9813
|
var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
9994
9814
|
if (!inject) return;
|
|
9995
|
-
inject("data-v-
|
|
9815
|
+
inject("data-v-689dd55b_0", {
|
|
9996
9816
|
source: ":root{--message-color:#373737;--text-color:#fff;--files-bg:rgba(255, 255, 255, 0.1);--files-bg-hover:rgba(255, 255, 255, 0.1);--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem-reply{padding:5px 10px;font-size:12px;color:#666;transition:background-color 150ms ease-in-out;border-radius:5px;margin:5px 0;overflow:hidden;max-width:100%}.mensagem-reply p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reply-principal{border-left:3px solid transparent;background-color:rgba(100,100,100,.1)}.message-reply-principal:hover{background-color:rgba(100,100,100,.2)}.message-reply-outros{background-color:#f5f5f5;border-left:3px solid var(--message-color)}.message-reply-outros:hover{background-color:#ebebeb}.mensagem-reply-vazia{display:flex;align-items:center}.mensagem-reply-vazia svg{margin-right:5px;color:#ba181b}.mensagem{padding:20px 7px 14px 7px;border-radius:5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:12px;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:9.6px;color:#67a332;width:14.4px;height:14.4px;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:11.2px}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:6.4px;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:11.2px;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:9.6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.menu-primario{transition:opacity 150ms ease-in-out;height:20px;position:absolute;font-size:11.2px;top:2px;display:flex;gap:5px;padding:2px 4px}.menu-primario.principal{left:2px;color:var(--text-color);background-color:var(--message-color)}.menu-primario.outros{right:2px;color:var(--text-color);background-color:#fff}.menu-primario.outros>span:nth-child(1){order:10}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.menu-flutuante{background-color:#fff;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-radius:10px;position:absolute;top:20px;width:120px;min-height:50px;height:50px;max-height:50px;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;display:flex;flex-direction:column;z-index:1}.menu-flutuante.principal{left:3px}.menu-flutuante.outros{right:3px}.menu-flutuante li{transition:background-color .3s ease-in-out;width:100%;cursor:pointer;padding:5px 10px;display:flex;align-items:center}.menu-flutuante li:hover{background-color:#e9e9e9}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:13.6px}.info-mapa li.address,.info-mapa li.url{font-size:13.6px}.info-mapa li.url{font-size:13.6px}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.emoji-message-container{position:absolute;top:0;z-index:1;width:300px;height:250px}.emoji-message-container .sm-emoji-picker{width:300px;height:250px}.emoji-message-container .sm-emoji-picker .sm-emoji-header{overflow-x:auto;overflow-y:hidden}.reaction{position:absolute;bottom:0;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:rgba(100,100,100,.4);padding:5px;font-size:20.8px;min-width:28.8px;min-height:28.8px;max-width:28.8px;max-height:28.8px}.reaction>span{display:block;transform:translateY(-1px)}.mensagem__outros .reaction{right:-30px}.mensagem__principal .reaction{left:-30px}",
|
|
9997
9817
|
map: undefined,
|
|
9998
9818
|
media: undefined
|
|
@@ -10001,7 +9821,7 @@ var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
|
10001
9821
|
/* scoped */
|
|
10002
9822
|
var __vue_scope_id__$7 = undefined;
|
|
10003
9823
|
/* module identifier */
|
|
10004
|
-
var __vue_module_identifier__$7 = "data-v-
|
|
9824
|
+
var __vue_module_identifier__$7 = "data-v-689dd55b";
|
|
10005
9825
|
/* functional template */
|
|
10006
9826
|
var __vue_is_functional_template__$7 = false;
|
|
10007
9827
|
/* style inject shadow dom */
|