vue-wiguet-chatweb 0.1.19 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
package/dist/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.bubble[data-v-1d95bdac]{--r: 25px;--t: 30px;padding:calc(2 * var(--r) / 3);-webkit-mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100% / calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r) / -2) calc(var(--r) / -2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0 / var(--r) var(--r) space padding-box;mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100% / calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r) / -2) calc(var(--r) / -2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0 / var(--r) var(--r) space padding-box;color:#fff;height:100%}.left[data-v-1d95bdac]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:0;background-color:#fcd7ae;color:#4d4d4d}.bubble>.content-left[data-v-1d95bdac]{margin-right:10px;margin-bottom:1px}.right[data-v-1d95bdac]{--_d: 100%;border-right:var(--t) solid #0000;margin-right:0;background-color:#fdeedb;color:#4d4d4d}.bubble>.content-right[data-v-1d95bdac]{margin-bottom:1px;margin-right:10px}.message-text[data-v-1d95bdac]{margin-bottom:10px;overflow-wrap:break-word}.detail-message[data-v-1d95bdac]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-1d95bdac]{display:flex;flex-direction:column;justify-content:center}.message[data-v-1d95bdac]{width:100%;display:flex}.message-left[data-v-1d95bdac]{justify-content:start}.message-right[data-v-1d95bdac]{justify-content:end}.target[data-v-1d95bdac]{padding:.5rem 0;width:100%}.btn-danger[data-v-1d95bdac]{background-color:transparent;border:0;border-radius:50%;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.btn-danger[data-v-1d95bdac] svg[data-v-1d95bdac]{width:24px;height:24px}.btn-danger[data-v-1d95bdac][data-v-1d95bdac]:hover{background-color:#ff00003a}.btn-container-widget[data-v-1d95bdac]{display:flex;align-items:center;position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.message-container[data-v-1d95bdac]{min-width:80%;max-width:80%;position:relative;margin-bottom:.5rem}.messages-container-list[data-v-1d95bdac]{width:100%}.icon[data-v-1d95bdac]{width:2rem}.btn-icon[data-v-1d95bdac]{text-decoration:none;border:none;color:#9ca3af}.btn-icon[data-v-1d95bdac]:hover:not(.content-disabled){color:#1f2937}.btn-icon span[data-v-1d95bdac]{text-wrap:nowrap}.btn-icon .icon[data-v-1d95bdac]{font-size:2rem}.flex[data-v-1d95bdac]{display:flex;flex-wrap:wrap}.flex-col[data-v-1d95bdac]{flex-direction:column}.items-center[data-v-1d95bdac]{align-items:center}.gap-2[data-v-1d95bdac]{gap:.5rem}.mb-2[data-v-1d95bdac]{margin-bottom:8px}.content-disabled[data-v-1d95bdac]{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.5}.spinner_ajPY[data-v-d9a6b2b7]{fill:#fe6d00;transform-origin:center;animation:spinner_AtaB-d9a6b2b7 .75s infinite linear}@keyframes spinner_AtaB-d9a6b2b7{to{transform:rotate(360deg)}}.btn-primary[data-v-
|
1
|
+
.bubble[data-v-1d95bdac]{--r: 25px;--t: 30px;padding:calc(2 * var(--r) / 3);-webkit-mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100% / calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r) / -2) calc(var(--r) / -2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0 / var(--r) var(--r) space padding-box;mask:radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) var(--_d) 100% / calc(100% - var(--r)) var(--t) no-repeat,conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) calc(var(--r) / -2) calc(var(--r) / -2) padding-box,radial-gradient(50% 50%,#000 98%,#0000 101%) 0 0 / var(--r) var(--r) space padding-box;color:#fff;height:100%}.left[data-v-1d95bdac]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:0;background-color:#fcd7ae;color:#4d4d4d}.bubble>.content-left[data-v-1d95bdac]{margin-right:10px;margin-bottom:1px}.right[data-v-1d95bdac]{--_d: 100%;border-right:var(--t) solid #0000;margin-right:0;background-color:#fdeedb;color:#4d4d4d}.bubble>.content-right[data-v-1d95bdac]{margin-bottom:1px;margin-right:10px}.message-text[data-v-1d95bdac]{margin-bottom:10px;overflow-wrap:break-word}.detail-message[data-v-1d95bdac]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-1d95bdac]{display:flex;flex-direction:column;justify-content:center}.message[data-v-1d95bdac]{width:100%;display:flex}.message-left[data-v-1d95bdac]{justify-content:start}.message-right[data-v-1d95bdac]{justify-content:end}.target[data-v-1d95bdac]{padding:.5rem 0;width:100%}.btn-danger[data-v-1d95bdac]{background-color:transparent;border:0;border-radius:50%;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.btn-danger[data-v-1d95bdac] svg[data-v-1d95bdac]{width:24px;height:24px}.btn-danger[data-v-1d95bdac][data-v-1d95bdac]:hover{background-color:#ff00003a}.btn-container-widget[data-v-1d95bdac]{display:flex;align-items:center;position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.message-container[data-v-1d95bdac]{min-width:80%;max-width:80%;position:relative;margin-bottom:.5rem}.messages-container-list[data-v-1d95bdac]{width:100%}.icon[data-v-1d95bdac]{width:2rem}.btn-icon[data-v-1d95bdac]{text-decoration:none;border:none;color:#9ca3af}.btn-icon[data-v-1d95bdac]:hover:not(.content-disabled){color:#1f2937}.btn-icon span[data-v-1d95bdac]{text-wrap:nowrap}.btn-icon .icon[data-v-1d95bdac]{font-size:2rem}.flex[data-v-1d95bdac]{display:flex;flex-wrap:wrap}.flex-col[data-v-1d95bdac]{flex-direction:column}.items-center[data-v-1d95bdac]{align-items:center}.gap-2[data-v-1d95bdac]{gap:.5rem}.mb-2[data-v-1d95bdac]{margin-bottom:8px}.content-disabled[data-v-1d95bdac]{-webkit-filter:grayscale(1);filter:grayscale(1);opacity:.5}.spinner_ajPY[data-v-d9a6b2b7]{fill:#fe6d00;transform-origin:center;animation:spinner_AtaB-d9a6b2b7 .75s infinite linear}@keyframes spinner_AtaB-d9a6b2b7{to{transform:rotate(360deg)}}.btn-primary[data-v-a383964d]{padding:10px 12px}.btn-primary[data-v-a383964d][data-v-a383964d]:hover{background-color:#f28b0c1a}.btn-close[data-v-a383964d]{padding:0;background-color:transparent;border:none;display:flex;align-items:center;border-radius:50%}.btn-close[data-v-a383964d][data-v-a383964d]:hover{background-color:#cacaca88}.messages-container[data-v-a383964d]{position:relative}.loader[data-v-a383964d]{position:absolute;top:18px;z-index:5;left:50%;transform:translate(-50%,-50%)}.header-widget{height:5%;display:flex;justify-content:space-between;align-items:center}.jl2-input-chat{height:20px;width:95%;border:none;resize:none;border-top-left-radius:16px;border-bottom-left-radius:16px;margin-left:8px;margin-top:8px;margin-bottom:8px;overflow:hidden;max-height:10rem}.jl2-input-chat:focus-visible{outline:none}.jl-inputgroup-chat{width:100%;border:1px solid;border-color:#f28b0c;background:var(--surface-a);color:var(--surface-500);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:13px;display:flex;justify-content:space-around;align-items:center}.jl-inputgroup-chat>input{border:none;background:none}.jl-inputgroup-chat>input:hover{outline:none}.form-message{display:flex;justify-content:space-between}.form-message button,.jl-inputgroup-chat>button{border:none!important;background:none}.form-message button,.jl-inputgroup-chat>button:focus{box-shadow:none}.form-message button,.jl-inputgroup-chat>button:active{box-shadow:none}.widget{margin:auto;height:100%;display:flex;width:100%;flex-direction:column;justify-content:space-evenly}.messages-container{height:80%;overflow-y:scroll;border:1px solid lightgray;border-radius:.5rem;scrollbar-color:red transparent;scrollbar-width:thin;scrollbar-color:#F28B0C transparent;scrollbar-track-color:transparent;scrollbar-face-color:#F28B0C;scrollbar-thumb-color:#F28B0C}.messages-container::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background-color:transparent}.messages-container::-webkit-scrollbar-thumb{background-color:#f28b0c;border-radius:8px}.input-message{border-left:1px solid var(--fge-gray-lines-color);border-right:1px solid var(--fge-gray-lines-color)}.message-send{padding-top:20px;width:90%;margin:auto}#chat-circle{margin:auto;position:fixed;bottom:50px;right:50px;color:#fff;cursor:pointer}.title-chat{font-size:1rem;font-weight:700;color:var(--chat-text-color);margin:0}.chat-box{display:flex;justify-content:center;align-items:center;border:2px solid #d9d9d9;border-radius:25px;padding:5px 15px 30px;background:#fff;position:fixed;right:30px;bottom:50px;width:450px;height:70vh;max-width:85vw;max-height:80vh;box-shadow:0 5px 35px 9px #ccc}.pointer{cursor:pointer}.disabled[data-v-c7da0c7e]{color:currentColor;cursor:not-allowed!important;opacity:.4!important;text-decoration:none}.container-buttons-chat[data-v-c7da0c7e]{position:relative;right:-1.8rem}.button[data-v-c7da0c7e]{position:absolute;width:2.5rem;height:2.5rem;opacity:0;box-shadow:0 1px 3px 1px silver;border-radius:100%;border:1px solid white;background-color:#fff;overflow:hidden;cursor:pointer;transition:transform .5s ease,opacity .3s ease;z-index:-1}.container-buttons-chat.active>a[data-v-c7da0c7e]{z-index:1;opacity:1}.container-buttons-chat.active .whatsapp[data-v-c7da0c7e]{transform:translateY(-150px)}.container-buttons-chat.active .telegram[data-v-c7da0c7e]{transform:translateY(-100px)}.container-buttons-chat.active .webchat[data-v-c7da0c7e]{transform:translateY(-50px)}.widget-container[data-v-c7da0c7e]{position:relative}.new-message-badge[data-v-c7da0c7e]{position:absolute;background-color:red;width:30px;height:30px;display:flex;font-family:Roboto,sans-serif;align-items:center;font-weight:500;justify-content:center;border-radius:50%;right:-2px;top:-4px;z-index:2}
|
@@ -385,7 +385,7 @@ function $t(t, e, n) {
|
|
385
385
|
}
|
386
386
|
return yn(m) ? !0 : (e.append(is(T, S, i), c(m)), !1);
|
387
387
|
}
|
388
|
-
const f = [],
|
388
|
+
const f = [], w = Object.assign(s2, {
|
389
389
|
defaultVisitor: u,
|
390
390
|
convertValue: c,
|
391
391
|
isVisitable: yn
|
@@ -400,7 +400,7 @@ function $t(t, e, n) {
|
|
400
400
|
I,
|
401
401
|
h.isString(M) ? M.trim() : M,
|
402
402
|
S,
|
403
|
-
|
403
|
+
w
|
404
404
|
)) === !0 && d(I, S ? S.concat(M) : [M]);
|
405
405
|
}), f.pop();
|
406
406
|
}
|
@@ -925,13 +925,13 @@ function x2(t, e) {
|
|
925
925
|
return e = e !== void 0 ? e : 1e3, function(l) {
|
926
926
|
const c = Date.now(), u = s[i];
|
927
927
|
o || (o = c), n[r] = l, s[r] = c;
|
928
|
-
let f = i,
|
928
|
+
let f = i, w = 0;
|
929
929
|
for (; f !== r; )
|
930
|
-
|
930
|
+
w += n[f++], f = f % t;
|
931
931
|
if (r = (r + 1) % t, r === i && (i = (i + 1) % t), c - o < e)
|
932
932
|
return;
|
933
933
|
const d = u && c - u;
|
934
|
-
return d ? Math.round(
|
934
|
+
return d ? Math.round(w * 1e3 / d) : void 0;
|
935
935
|
};
|
936
936
|
}
|
937
937
|
function cs(t, e) {
|
@@ -1011,9 +1011,9 @@ const N2 = typeof XMLHttpRequest < "u", _2 = N2 && function(t) {
|
|
1011
1011
|
}), h.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), o && o !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", cs(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", cs(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (d) => {
|
1012
1012
|
c && (s(!d || d.type ? new it(null, t, c) : d), c.abort(), c = null);
|
1013
1013
|
}, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
|
1014
|
-
const
|
1015
|
-
if (
|
1016
|
-
s(new x("Unsupported protocol " +
|
1014
|
+
const w = C2(u);
|
1015
|
+
if (w && he.protocols.indexOf(w) === -1) {
|
1016
|
+
s(new x("Unsupported protocol " + w + ":", x.ERR_BAD_REQUEST, t));
|
1017
1017
|
return;
|
1018
1018
|
}
|
1019
1019
|
c.send(r || null);
|
@@ -1133,8 +1133,8 @@ function Ve(t, e) {
|
|
1133
1133
|
headers: (c, u) => r(hs(c), hs(u), !0)
|
1134
1134
|
};
|
1135
1135
|
return h.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
1136
|
-
const f = l[u] || r,
|
1137
|
-
h.isUndefined(
|
1136
|
+
const f = l[u] || r, w = f(t[u], e[u], u);
|
1137
|
+
h.isUndefined(w) && f !== a || (n[u] = w);
|
1138
1138
|
}), n;
|
1139
1139
|
}
|
1140
1140
|
const xr = "1.4.0", Fn = {};
|
@@ -1230,16 +1230,16 @@ class Ne {
|
|
1230
1230
|
this.interceptors.response.forEach(function(S) {
|
1231
1231
|
c.push(S.fulfilled, S.rejected);
|
1232
1232
|
});
|
1233
|
-
let u, f = 0,
|
1233
|
+
let u, f = 0, w;
|
1234
1234
|
if (!l) {
|
1235
1235
|
const m = [us.bind(this), void 0];
|
1236
|
-
for (m.unshift.apply(m, a), m.push.apply(m, c),
|
1236
|
+
for (m.unshift.apply(m, a), m.push.apply(m, c), w = m.length, u = Promise.resolve(n); f < w; )
|
1237
1237
|
u = u.then(m[f++], m[f++]);
|
1238
1238
|
return u;
|
1239
1239
|
}
|
1240
|
-
|
1240
|
+
w = a.length;
|
1241
1241
|
let d = n;
|
1242
|
-
for (f = 0; f <
|
1242
|
+
for (f = 0; f < w; ) {
|
1243
1243
|
const m = a[f++], S = a[f++];
|
1244
1244
|
try {
|
1245
1245
|
d = m(d);
|
@@ -1253,7 +1253,7 @@ class Ne {
|
|
1253
1253
|
} catch (m) {
|
1254
1254
|
return Promise.reject(m);
|
1255
1255
|
}
|
1256
|
-
for (f = 0,
|
1256
|
+
for (f = 0, w = c.length; f < w; )
|
1257
1257
|
u = u.then(c[f++], c[f++]);
|
1258
1258
|
return u;
|
1259
1259
|
}
|
@@ -1564,7 +1564,7 @@ function W2(t, e, n = {}) {
|
|
1564
1564
|
return (Array.isArray(m) ? m : [m]).map(nn).filter(V2);
|
1565
1565
|
});
|
1566
1566
|
let u = tn;
|
1567
|
-
const f = H(a),
|
1567
|
+
const f = H(a), w = l.value ? Mn(
|
1568
1568
|
() => [c.value, nn(s), f.value],
|
1569
1569
|
([m, S]) => {
|
1570
1570
|
if (u(), !f.value || !m.length)
|
@@ -1583,7 +1583,7 @@ function W2(t, e, n = {}) {
|
|
1583
1583
|
},
|
1584
1584
|
{ immediate: a, flush: "post" }
|
1585
1585
|
) : tn, d = () => {
|
1586
|
-
u(),
|
1586
|
+
u(), w(), f.value = !1;
|
1587
1587
|
};
|
1588
1588
|
return F2(d), {
|
1589
1589
|
isSupported: l,
|
@@ -2022,7 +2022,7 @@ class ye extends ot {
|
|
2022
2022
|
const s = Y2(this.name);
|
2023
2023
|
let [r, i, o, a, l, c, u] = s.formatToParts ? K2(s, n) : G2(s, n);
|
2024
2024
|
a === "BC" && (r = -Math.abs(r) + 1);
|
2025
|
-
const
|
2025
|
+
const w = zt({
|
2026
2026
|
year: r,
|
2027
2027
|
month: i,
|
2028
2028
|
day: o,
|
@@ -2033,7 +2033,7 @@ class ye extends ot {
|
|
2033
2033
|
});
|
2034
2034
|
let d = +n;
|
2035
2035
|
const m = d % 1e3;
|
2036
|
-
return d -= m >= 0 ? m : 1e3 + m, (
|
2036
|
+
return d -= m >= 0 ? m : 1e3 + m, (w - d) / (60 * 1e3);
|
2037
2037
|
}
|
2038
2038
|
/**
|
2039
2039
|
* Return whether this Zone is equal to another zone
|
@@ -3151,7 +3151,7 @@ class z {
|
|
3151
3151
|
), u = (d) => {
|
3152
3152
|
const m = z.macroTokenToFormatOpts(d);
|
3153
3153
|
return m ? this.formatWithSystemDefault(e, m) : d;
|
3154
|
-
}, f = (d) => s ? Ma(e, d) : i({ era: d }, "era"),
|
3154
|
+
}, f = (d) => s ? Ma(e, d) : i({ era: d }, "era"), w = (d) => {
|
3155
3155
|
switch (d) {
|
3156
3156
|
case "S":
|
3157
3157
|
return this.num(e.millisecond);
|
@@ -3278,7 +3278,7 @@ class z {
|
|
3278
3278
|
return u(d);
|
3279
3279
|
}
|
3280
3280
|
};
|
3281
|
-
return Is(z.parseFormat(n),
|
3281
|
+
return Is(z.parseFormat(n), w);
|
3282
3282
|
}
|
3283
3283
|
formatDurationFromString(e, n) {
|
3284
3284
|
const s = (l) => {
|
@@ -3377,17 +3377,17 @@ function ct(t, e) {
|
|
3377
3377
|
}
|
3378
3378
|
const za = RegExp(`^T?${qn.source}$`), Ha = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
3379
3379
|
function Za(t) {
|
3380
|
-
const [e, n, s, r, i, o, a, l, c] = t, u = e[0] === "-", f = l && l[0] === "-",
|
3380
|
+
const [e, n, s, r, i, o, a, l, c] = t, u = e[0] === "-", f = l && l[0] === "-", w = (d, m = !1) => d !== void 0 && (m || d && u) ? -d : d;
|
3381
3381
|
return [
|
3382
3382
|
{
|
3383
|
-
years:
|
3384
|
-
months:
|
3385
|
-
weeks:
|
3386
|
-
days:
|
3387
|
-
hours:
|
3388
|
-
minutes:
|
3389
|
-
seconds:
|
3390
|
-
milliseconds:
|
3383
|
+
years: w(Ee(n)),
|
3384
|
+
months: w(Ee(s)),
|
3385
|
+
weeks: w(Ee(r)),
|
3386
|
+
days: w(Ee(i)),
|
3387
|
+
hours: w(Ee(o)),
|
3388
|
+
minutes: w(Ee(a)),
|
3389
|
+
seconds: w(Ee(l), l === "-0"),
|
3390
|
+
milliseconds: w(Pn(c), f)
|
3391
3391
|
}
|
3392
3392
|
];
|
3393
3393
|
}
|
@@ -3427,9 +3427,9 @@ function Ja(t) {
|
|
3427
3427
|
c,
|
3428
3428
|
u,
|
3429
3429
|
f
|
3430
|
-
] = t,
|
3430
|
+
] = t, w = Hn(e, r, s, n, i, o, a);
|
3431
3431
|
let d;
|
3432
|
-
return l ? d = ja[l] : c ? d = 0 : d = Ht(u, f), [
|
3432
|
+
return l ? d = ja[l] : c ? d = 0 : d = Ht(u, f), [w, new Z(d)];
|
3433
3433
|
}
|
3434
3434
|
function Ga(t) {
|
3435
3435
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
@@ -4895,7 +4895,7 @@ function N0(t) {
|
|
4895
4895
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
4896
4896
|
}
|
4897
4897
|
function _0(t, e) {
|
4898
|
-
const n = re(e), s = re(e, "{2}"), r = re(e, "{3}"), i = re(e, "{4}"), o = re(e, "{6}"), a = re(e, "{1,2}"), l = re(e, "{1,3}"), c = re(e, "{1,6}"), u = re(e, "{1,9}"), f = re(e, "{2,4}"),
|
4898
|
+
const n = re(e), s = re(e, "{2}"), r = re(e, "{3}"), i = re(e, "{4}"), o = re(e, "{6}"), a = re(e, "{1,2}"), l = re(e, "{1,3}"), c = re(e, "{1,6}"), u = re(e, "{1,9}"), f = re(e, "{2,4}"), w = re(e, "{4,6}"), d = (T) => ({ regex: RegExp(N0(T.val)), deser: ([I]) => I, literal: !0 }), S = ((T) => {
|
4899
4899
|
if (t.literal)
|
4900
4900
|
return d(T);
|
4901
4901
|
switch (T.val) {
|
@@ -4910,7 +4910,7 @@ function _0(t, e) {
|
|
4910
4910
|
case "yyyy":
|
4911
4911
|
return N(i);
|
4912
4912
|
case "yyyyy":
|
4913
|
-
return N(
|
4913
|
+
return N(w);
|
4914
4914
|
case "yyyyyy":
|
4915
4915
|
return N(o);
|
4916
4916
|
case "M":
|
@@ -5575,20 +5575,20 @@ class b {
|
|
5575
5575
|
const s = be(n.zone, B.defaultZone);
|
5576
5576
|
if (!s.isValid)
|
5577
5577
|
return b.invalid(Ke(s));
|
5578
|
-
const r = _.fromObject(n), i = Ft(e, Ps), { minDaysInFirstWeek: o, startOfWeek: a } = Ns(i, r), l = B.now(), c = k(n.specificOffset) ? s.offset(l) : n.specificOffset, u = !k(i.ordinal), f = !k(i.year),
|
5578
|
+
const r = _.fromObject(n), i = Ft(e, Ps), { minDaysInFirstWeek: o, startOfWeek: a } = Ns(i, r), l = B.now(), c = k(n.specificOffset) ? s.offset(l) : n.specificOffset, u = !k(i.ordinal), f = !k(i.year), w = !k(i.month) || !k(i.day), d = f || w, m = i.weekYear || i.weekNumber;
|
5579
5579
|
if ((d || u) && m)
|
5580
5580
|
throw new Le(
|
5581
5581
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
5582
5582
|
);
|
5583
|
-
if (
|
5583
|
+
if (w && u)
|
5584
5584
|
throw new Le("Can't mix ordinal dates with month/day");
|
5585
5585
|
const S = m || i.weekday && !d;
|
5586
5586
|
let T, I, M = gt(l, c);
|
5587
5587
|
S ? (T = $0, I = V0, M = Dt(M, o, a)) : u ? (T = P0, I = U0, M = on(M)) : (T = _i, I = Ni);
|
5588
5588
|
let ne = !1;
|
5589
5589
|
for (const y of T) {
|
5590
|
-
const
|
5591
|
-
k(
|
5590
|
+
const g = i[y];
|
5591
|
+
k(g) ? ne ? i[y] = I[y] : i[y] = M[y] : ne = !0;
|
5592
5592
|
}
|
5593
5593
|
const j = S ? ya(i, o, a) : u ? ga(i) : ei(i), se = j || ti(i);
|
5594
5594
|
if (se)
|
@@ -6219,8 +6219,8 @@ class b {
|
|
6219
6219
|
s,
|
6220
6220
|
r
|
6221
6221
|
) : k(n.ordinal) ? (f = { ...this.toObject(), ...n }, k(n.day) && (f.day = Math.min(Lt(f.year, f.month), f.day))) : f = xs({ ...on(this.c), ...n });
|
6222
|
-
const [
|
6223
|
-
return Oe(this, { ts:
|
6222
|
+
const [w, d] = xt(f, this.o, this.zone);
|
6223
|
+
return Oe(this, { ts: w, o: d });
|
6224
6224
|
}
|
6225
6225
|
/**
|
6226
6226
|
* Add a period of time to this DateTime and return the resulting DateTime
|
@@ -7003,8 +7003,8 @@ const J0 = /* @__PURE__ */ ce(z0, [["render", Y0]]), Hs = "data:image/svg+xml,%3
|
|
7003
7003
|
f && e("loadMore");
|
7004
7004
|
}
|
7005
7005
|
);
|
7006
|
-
function o(f,
|
7007
|
-
return !f.response || typeof f.response != "object" ? !0 :
|
7006
|
+
function o(f, w) {
|
7007
|
+
return !f.response || typeof f.response != "object" ? !0 : w.iconUnicode === f.response.message;
|
7008
7008
|
}
|
7009
7009
|
Gi(() => {
|
7010
7010
|
n.canLoadMoreMessages || r();
|
@@ -7028,8 +7028,8 @@ const J0 = /* @__PURE__ */ ce(z0, [["render", Y0]]), Hs = "data:image/svg+xml,%3
|
|
7028
7028
|
}
|
7029
7029
|
};
|
7030
7030
|
function l(f) {
|
7031
|
-
const
|
7032
|
-
return !
|
7031
|
+
const w = Object.values(a);
|
7032
|
+
return !w || Array.isArray(w) && w.length === 0 ? f : w.reduce((m, S) => m.replace(S.regex, (T, I) => /--custom-tag/.test(T) ? T : S.tag.replace(/{val}/g, I)), f).replace(/--custom-tag/g, "");
|
7033
7033
|
}
|
7034
7034
|
const c = [
|
7035
7035
|
{ label: "Excelente", value: 1, icon: js, iconUnicode: "😊" },
|
@@ -7045,7 +7045,7 @@ const J0 = /* @__PURE__ */ ce(z0, [["render", Y0]]), Hs = "data:image/svg+xml,%3
|
|
7045
7045
|
"🙁": Zs,
|
7046
7046
|
"": null
|
7047
7047
|
};
|
7048
|
-
return (f,
|
7048
|
+
return (f, w) => (R(), L(Gt, null, [
|
7049
7049
|
v("div", {
|
7050
7050
|
ref_key: "target",
|
7051
7051
|
ref: s,
|
@@ -8044,8 +8044,8 @@ let Wi = class De extends $ {
|
|
8044
8044
|
s || this.readyState !== "closed" && (u(), this.setTransport(n), n.send([{ type: "upgrade" }]), this.emitReserved("upgrade", n), n = null, this.upgrading = !1, this.flush());
|
8045
8045
|
});
|
8046
8046
|
} else {
|
8047
|
-
const
|
8048
|
-
|
8047
|
+
const w = new Error("probe error");
|
8048
|
+
w.transport = n.name, this.emitReserved("upgradeError", w);
|
8049
8049
|
}
|
8050
8050
|
}));
|
8051
8051
|
};
|
@@ -8053,8 +8053,8 @@ let Wi = class De extends $ {
|
|
8053
8053
|
s || (s = !0, u(), n.close(), n = null);
|
8054
8054
|
}
|
8055
8055
|
const o = (f) => {
|
8056
|
-
const
|
8057
|
-
|
8056
|
+
const w = new Error("probe error: " + f);
|
8057
|
+
w.transport = n.name, i(), this.emitReserved("upgradeError", w);
|
8058
8058
|
};
|
8059
8059
|
function a() {
|
8060
8060
|
o("transport closed");
|
@@ -9409,23 +9409,23 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9409
9409
|
() => n.visible,
|
9410
9410
|
async (y) => {
|
9411
9411
|
if (!y || (e("clear-new-messages"), T(), r.value > 0 && ms(o.value, n.tokenAuth), o.value)) return;
|
9412
|
-
const
|
9413
|
-
|
9412
|
+
const g = await ds(n.tokenAuth);
|
9413
|
+
g && (o.value = g.appChat.id);
|
9414
9414
|
}
|
9415
9415
|
);
|
9416
9416
|
function c(y) {
|
9417
|
-
var
|
9417
|
+
var g;
|
9418
9418
|
if (ut.value) {
|
9419
9419
|
ne();
|
9420
9420
|
return;
|
9421
9421
|
}
|
9422
9422
|
if (y.key === "Enter" && y.shiftKey) {
|
9423
|
-
const O = ((
|
9423
|
+
const O = ((g = y.target) == null ? void 0 : g.value) || "";
|
9424
9424
|
y.target.value = O + `
|
9425
9425
|
`, ne();
|
9426
9426
|
return;
|
9427
9427
|
}
|
9428
|
-
|
9428
|
+
w();
|
9429
9429
|
}
|
9430
9430
|
function u(y) {
|
9431
9431
|
var O, V;
|
@@ -9465,14 +9465,14 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9465
9465
|
response: void 0
|
9466
9466
|
};
|
9467
9467
|
}
|
9468
|
-
function f(y,
|
9469
|
-
if (!
|
9468
|
+
function f(y, g, O, V) {
|
9469
|
+
if (!g) throw new Error("idx is required");
|
9470
9470
|
if (!O) {
|
9471
9471
|
if (V) {
|
9472
|
-
const A = i.value.data[
|
9472
|
+
const A = i.value.data[g];
|
9473
9473
|
A.response = void 0;
|
9474
9474
|
} else
|
9475
|
-
i.value.data[
|
9475
|
+
i.value.data[g].error = {
|
9476
9476
|
error: !0,
|
9477
9477
|
id: y.id
|
9478
9478
|
};
|
@@ -9486,18 +9486,18 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9486
9486
|
}
|
9487
9487
|
let D = { ...O, chatId: y == null ? void 0 : y.chatId };
|
9488
9488
|
if (V) {
|
9489
|
-
const A = i.value.data[
|
9489
|
+
const A = i.value.data[g];
|
9490
9490
|
A.response = O, D = { ...A, chatId: y == null ? void 0 : y.chatId };
|
9491
9491
|
} else
|
9492
|
-
i.value.data[
|
9492
|
+
i.value.data[g] = D;
|
9493
9493
|
return D;
|
9494
9494
|
}
|
9495
|
-
const
|
9495
|
+
const w = async (y, g) => {
|
9496
9496
|
const O = u(s.value);
|
9497
9497
|
if (!O) return;
|
9498
9498
|
let V = -1;
|
9499
|
-
if (
|
9500
|
-
V = i.value.data.findIndex((J) => J.id === (
|
9499
|
+
if (g != null && g.tipoCalificacionId) {
|
9500
|
+
V = i.value.data.findIndex((J) => J.id === (g == null ? void 0 : g.mensajeARespondeId));
|
9501
9501
|
const A = i.value.data[V];
|
9502
9502
|
A && (A.response = O);
|
9503
9503
|
} else
|
@@ -9505,7 +9505,7 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9505
9505
|
const D = {
|
9506
9506
|
message: s.value,
|
9507
9507
|
appChatId: o.value,
|
9508
|
-
...
|
9508
|
+
...g
|
9509
9509
|
};
|
9510
9510
|
d(D).then((A) => {
|
9511
9511
|
var ue, ht;
|
@@ -9513,7 +9513,7 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9513
9513
|
O,
|
9514
9514
|
V,
|
9515
9515
|
A,
|
9516
|
-
|
9516
|
+
g == null ? void 0 : g.tipoCalificacionId
|
9517
9517
|
);
|
9518
9518
|
J && ((ht = j.value) == null || ht.emit(
|
9519
9519
|
"sendMessage",
|
@@ -9524,20 +9524,20 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9524
9524
|
));
|
9525
9525
|
}), s.value = "", T(), M.value && (M.value.style.height = "20px");
|
9526
9526
|
}, d = async (y) => {
|
9527
|
-
const
|
9527
|
+
const g = {
|
9528
9528
|
...y,
|
9529
9529
|
esCliente: !0
|
9530
9530
|
};
|
9531
|
-
return L2(
|
9531
|
+
return L2(g, n.tokenAuth);
|
9532
9532
|
}, m = async () => {
|
9533
9533
|
var V, D, A;
|
9534
|
-
const y = (V = i.value.data[0]) == null ? void 0 : V.id,
|
9534
|
+
const y = (V = i.value.data[0]) == null ? void 0 : V.id, g = {
|
9535
9535
|
lastMessagesId: y,
|
9536
9536
|
appChatId: o.value,
|
9537
9537
|
limit: 10
|
9538
9538
|
};
|
9539
9539
|
a.value = !0;
|
9540
|
-
const O = await D2({ body:
|
9540
|
+
const O = await D2({ body: g, token: n.tokenAuth });
|
9541
9541
|
a.value = !1, i.value.data.unshift(
|
9542
9542
|
...O.data.sort((J, ue) => -ue.createdAt.localeCompare(J.createdAt))
|
9543
9543
|
), i.value.canLoadMoreMessages = O.pagination.total > O.pagination.size, y && ((D = l.value) != null && D.scrollHeight) && I((A = l.value) == null ? void 0 : A.scrollHeight), y || T();
|
@@ -9545,11 +9545,11 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9545
9545
|
e("show-confirm", async () => {
|
9546
9546
|
var O, V, D;
|
9547
9547
|
if (!((O = y.error) != null && O.id)) return;
|
9548
|
-
const
|
9548
|
+
const g = await d({
|
9549
9549
|
message: y.message,
|
9550
9550
|
appChatId: o.value
|
9551
9551
|
});
|
9552
|
-
if (!
|
9552
|
+
if (!g)
|
9553
9553
|
e("show-toast", {
|
9554
9554
|
severity: "error",
|
9555
9555
|
summary: "Error",
|
@@ -9562,7 +9562,7 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9562
9562
|
"id",
|
9563
9563
|
y.error.id
|
9564
9564
|
);
|
9565
|
-
i.value.data[A] = { ...
|
9565
|
+
i.value.data[A] = { ...g, error: void 0 }, (D = j.value) == null || D.emit("sendMessage", {
|
9566
9566
|
roomId: (V = se == null ? void 0 : se.value) == null ? void 0 : V.appChat.id,
|
9567
9567
|
message: y
|
9568
9568
|
});
|
@@ -9575,22 +9575,22 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9575
9575
|
});
|
9576
9576
|
}, I = (y) => {
|
9577
9577
|
Xn(() => {
|
9578
|
-
const
|
9579
|
-
|
9578
|
+
const g = l.value;
|
9579
|
+
g && (g.scrollTop = g.scrollHeight - y);
|
9580
9580
|
});
|
9581
9581
|
}, M = H();
|
9582
9582
|
function ne() {
|
9583
9583
|
M.value && (M.value.style.height = M.value.scrollHeight - bc + "px", M.value.scrollHeight !== M.value.clientHeight && (M.value.style.height = M.value.scrollHeight + "px"));
|
9584
9584
|
}
|
9585
9585
|
const j = H(), se = H();
|
9586
|
-
function Yt(y,
|
9586
|
+
function Yt(y, g = Hi.WEBCHAT) {
|
9587
9587
|
var O, V;
|
9588
9588
|
if (!y) throw new Error("user chat is required");
|
9589
9589
|
j.value = Mt(window.VITE_SOCKET_URI, {
|
9590
9590
|
query: {
|
9591
9591
|
// TODO: confirmar si se quita o no
|
9592
9592
|
usuarioId: `${(V = (O = y == null ? void 0 : y.chat) == null ? void 0 : O.persona) == null ? void 0 : V.funcionarioId}`,
|
9593
|
-
aplicacion:
|
9593
|
+
aplicacion: g
|
9594
9594
|
},
|
9595
9595
|
extraHeaders: { Authorization: n.tokenAuth }
|
9596
9596
|
}), j.value.removeAllListeners(), j.value.on("connect", () => {
|
@@ -9612,7 +9612,7 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9612
9612
|
].includes(Jt()));
|
9613
9613
|
function Jt() {
|
9614
9614
|
var J, ue;
|
9615
|
-
const y = window.navigator.userAgent,
|
9615
|
+
const y = window.navigator.userAgent, g = ((ue = (J = window.navigator) == null ? void 0 : J.userAgentData) == null ? void 0 : ue.platform) || window.navigator.platform, O = [
|
9616
9616
|
"macOS",
|
9617
9617
|
"Macintosh",
|
9618
9618
|
"MacIntel",
|
@@ -9620,12 +9620,13 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9620
9620
|
"Mac68K"
|
9621
9621
|
], V = ["Win32", "Win64", "Windows", "WinCE"], D = ["iPhone", "iPad", "iPod"];
|
9622
9622
|
let A = null;
|
9623
|
-
return O.indexOf(
|
9623
|
+
return O.indexOf(g) !== -1 ? A = "Mac OS" : D.indexOf(g) !== -1 ? A = "iPhone" : V.indexOf(g) !== -1 ? A = "Windows" : /Android/.test(y) ? A = "Android" : /Linux/.test(g) && (A = "Linux"), A;
|
9624
9624
|
}
|
9625
|
-
function Te({ message: y, emoji:
|
9626
|
-
|
9627
|
-
!y.id || !
|
9628
|
-
}
|
9625
|
+
function Te({ message: y, emoji: g }) {
|
9626
|
+
const O = async () => {
|
9627
|
+
!y.id || !g || (s.value = g.iconUnicode, w(void 0, { tipoCalificacionId: g.value, mensajeARespondeId: y.id }).then());
|
9628
|
+
};
|
9629
|
+
e("onQualifying", { message: g.iconUnicode, callback: O });
|
9629
9630
|
}
|
9630
9631
|
return ar(async () => {
|
9631
9632
|
if (o.value) return;
|
@@ -9634,11 +9635,11 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9634
9635
|
}), Ki(() => {
|
9635
9636
|
var y;
|
9636
9637
|
(y = j.value) == null || y.off();
|
9637
|
-
}), (y,
|
9638
|
+
}), (y, g) => (R(), L("div", fc, [
|
9638
9639
|
v("div", dc, [
|
9639
9640
|
v("h4", mc, et(t.titlePrincipal), 1),
|
9640
9641
|
v("button", {
|
9641
|
-
onClick:
|
9642
|
+
onClick: g[0] || (g[0] = () => t.toggleChat()),
|
9642
9643
|
class: "btn-close"
|
9643
9644
|
}, [
|
9644
9645
|
pe(mo, { class: "pointer" })
|
@@ -9657,25 +9658,25 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9657
9658
|
canLoadMoreMessages: i.value.canLoadMoreMessages,
|
9658
9659
|
onLoadMore: m,
|
9659
9660
|
onRetry: S,
|
9660
|
-
onOnQualifying:
|
9661
|
+
onOnQualifying: g[1] || (g[1] = (O) => Te(O))
|
9661
9662
|
}, null, 8, ["messages", "canLoadMoreMessages"])
|
9662
9663
|
], 512),
|
9663
9664
|
v("div", yc, [
|
9664
9665
|
v("form", {
|
9665
9666
|
class: "message-send",
|
9666
|
-
onSubmit:
|
9667
|
+
onSubmit: g[5] || (g[5] = Qi((O) => w(), ["prevent"]))
|
9667
9668
|
}, [
|
9668
9669
|
v("div", gc, [
|
9669
9670
|
v("div", wc, [
|
9670
9671
|
mn(v("textarea", {
|
9671
|
-
"onUpdate:modelValue":
|
9672
|
+
"onUpdate:modelValue": g[2] || (g[2] = (O) => s.value = O),
|
9672
9673
|
class: "jl2-input-chat",
|
9673
9674
|
placeholder: "Escribe tu mensaje",
|
9674
9675
|
required: "",
|
9675
9676
|
ref_key: "textAreaRef",
|
9676
9677
|
ref: M,
|
9677
|
-
onInput:
|
9678
|
-
onKeydown:
|
9678
|
+
onInput: g[3] || (g[3] = () => ne()),
|
9679
|
+
onKeydown: g[4] || (g[4] = es(
|
9679
9680
|
(O) => {
|
9680
9681
|
!ut.value && O.preventDefault();
|
9681
9682
|
},
|
@@ -9694,7 +9695,7 @@ const fc = { class: "widget" }, dc = { class: "header-widget" }, mc = { class: "
|
|
9694
9695
|
])
|
9695
9696
|
]));
|
9696
9697
|
}
|
9697
|
-
}), Tc = /* @__PURE__ */ ce(kc, [["__scopeId", "data-v-
|
9698
|
+
}), Tc = /* @__PURE__ */ ce(kc, [["__scopeId", "data-v-a383964d"]]), Ec = {}, Oc = {
|
9698
9699
|
width: "87",
|
9699
9700
|
height: "87",
|
9700
9701
|
viewBox: "0 0 87 87",
|