vue-wiguet-chatweb 0.1.45 → 0.1.47
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/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bubble[data-v-586d8c26]{--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-586d8c26]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:0;background-color:#fcd7ae;color:#4d4d4d}.bubble>.content-left[data-v-586d8c26]{margin-right:10px;margin-bottom:1px}.right[data-v-586d8c26]{--_d: 100%;border-right:var(--t) solid #0000;margin-right:0;background-color:#fdeedb;color:#4d4d4d}.bubble>.content-right[data-v-586d8c26]{margin-bottom:1px;margin-right:10px}.message-text[data-v-586d8c26]{margin-bottom:10px;overflow-wrap:break-word}.detail-message[data-v-586d8c26]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-586d8c26]{display:flex;flex-direction:column;justify-content:center}.message[data-v-586d8c26]{width:100%;display:flex}.message-left[data-v-586d8c26]{justify-content:start}.message-right[data-v-586d8c26]{justify-content:end}.target[data-v-586d8c26]{padding:.5rem 0;width:100%}.btn-danger[data-v-586d8c26]{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 svg[data-v-586d8c26]{width:24px;height:24px}.btn-danger[data-v-586d8c26]:hover{background-color:#ff00003a}.btn-container-widget[data-v-586d8c26]{display:flex;align-items:center;position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.message-container[data-v-586d8c26]{min-width:80%;max-width:80%;position:relative;margin-bottom:.5rem}.messages-container-list[data-v-586d8c26]{width:100%}.icon[data-v-586d8c26]{width:2rem}.btn-icon[data-v-586d8c26]{text-decoration:none;border:none;color:#9ca3af}.btn-icon[data-v-586d8c26]:hover:not(.content-disabled){color:#1f2937}.btn-icon span[data-v-586d8c26]{text-wrap:nowrap}.btn-icon .icon[data-v-586d8c26]{font-size:2rem}.content-disabled[data-v-586d8c26]{-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)}}.dialog-overlay[data-v-532e0111]{z-index:10001;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;opacity:0;animation:fadeIn-532e0111 .3s forwards}.dialog-content[data-v-532e0111]{background-color:#fff;padding:15px;border-radius:8px;text-align:center;animation:slideIn-532e0111 .3s ease-out forwards}@keyframes fadeIn-532e0111{to{opacity:1}}@keyframes slideIn-532e0111{0%{transform:translateY(-50px)}to{transform:translateY(0)}}.dialog-overlay.v-enter-active[data-v-532e0111],.dialog-overlay.v-leave-active[data-v-532e0111]{transition:opacity .3s}.btn-close[data-v-532e0111]{padding:0;background-color:transparent;border:none;display:flex;align-items:center;border-radius:50%}.btn-close[data-v-532e0111]:hover{background-color:#cacaca88}.btn-primary[data-v-
|
|
1
|
+
.bubble[data-v-586d8c26]{--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-586d8c26]{--_d: 0%;border-left:var(--t) solid #0000;margin-right:0;background-color:#fcd7ae;color:#4d4d4d}.bubble>.content-left[data-v-586d8c26]{margin-right:10px;margin-bottom:1px}.right[data-v-586d8c26]{--_d: 100%;border-right:var(--t) solid #0000;margin-right:0;background-color:#fdeedb;color:#4d4d4d}.bubble>.content-right[data-v-586d8c26]{margin-bottom:1px;margin-right:10px}.message-text[data-v-586d8c26]{margin-bottom:10px;overflow-wrap:break-word}.detail-message[data-v-586d8c26]{font-size:10px;color:gray;display:flex;justify-content:space-between}.chat-message[data-v-586d8c26]{display:flex;flex-direction:column;justify-content:center}.message[data-v-586d8c26]{width:100%;display:flex}.message-left[data-v-586d8c26]{justify-content:start}.message-right[data-v-586d8c26]{justify-content:end}.target[data-v-586d8c26]{padding:.5rem 0;width:100%}.btn-danger[data-v-586d8c26]{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 svg[data-v-586d8c26]{width:24px;height:24px}.btn-danger[data-v-586d8c26]:hover{background-color:#ff00003a}.btn-container-widget[data-v-586d8c26]{display:flex;align-items:center;position:absolute;left:-40px;top:50%;transform:translateY(-50%)}.message-container[data-v-586d8c26]{min-width:80%;max-width:80%;position:relative;margin-bottom:.5rem}.messages-container-list[data-v-586d8c26]{width:100%}.icon[data-v-586d8c26]{width:2rem}.btn-icon[data-v-586d8c26]{text-decoration:none;border:none;color:#9ca3af}.btn-icon[data-v-586d8c26]:hover:not(.content-disabled){color:#1f2937}.btn-icon span[data-v-586d8c26]{text-wrap:nowrap}.btn-icon .icon[data-v-586d8c26]{font-size:2rem}.content-disabled[data-v-586d8c26]{-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)}}.dialog-overlay[data-v-532e0111]{z-index:10001;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;opacity:0;animation:fadeIn-532e0111 .3s forwards}.dialog-content[data-v-532e0111]{background-color:#fff;padding:15px;border-radius:8px;text-align:center;animation:slideIn-532e0111 .3s ease-out forwards}@keyframes fadeIn-532e0111{to{opacity:1}}@keyframes slideIn-532e0111{0%{transform:translateY(-50px)}to{transform:translateY(0)}}.dialog-overlay.v-enter-active[data-v-532e0111],.dialog-overlay.v-leave-active[data-v-532e0111]{transition:opacity .3s}.btn-close[data-v-532e0111]{padding:0;background-color:transparent;border:none;display:flex;align-items:center;border-radius:50%}.btn-close[data-v-532e0111]:hover{background-color:#cacaca88}.btn-primary[data-v-f5517ea6]{padding:10px 12px;color:var(--primary-color)}.btn-primary[data-v-f5517ea6]:hover{background-color:#0000001a}.btn-close[data-v-f5517ea6]{padding:0;background-color:transparent;border:none;display:flex;align-items:center;border-radius:50%}.btn-close[data-v-f5517ea6]:hover{background-color:#cacaca88}.messages-container[data-v-f5517ea6]{position:relative;height:100%}.loader[data-v-f5517ea6]{position:absolute;top:18px;z-index:5;left:50%;transform:translate(-50%,-50%)}.fit[data-v-f5517ea6]{width:100%;height:100%;position:relative}.center[data-v-f5517ea6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.message-send-block[data-v-f5517ea6]{display:block;margin:1.5rem;text-align:center}.drop-over[data-v-f5517ea6]{border:2px dashed #007bff!important}:root{--primary-color: var(--primary-color-500, #513c86)}.header-widget{height:5%;display:flex;justify-content:space-between;align-items:center}.jl2-input-chat{height:20px;width:95%;border:none;resize:none;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:var(--primary-color);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:var(--primary-color) transparent;scrollbar-track-color:transparent;scrollbar-face-color:var(--primary-color);scrollbar-thumb-color:var(--primary-color)}.messages-container::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background-color:transparent}.messages-container::-webkit-scrollbar-thumb{background-color:var(--primary-color);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}.w-full{width:100%}.widget-component .flex{display:flex;flex-wrap:wrap}.widget-component .flex-col{flex-direction:column}.widget-component .items-center{align-items:center}.widget-component .gap-2{gap:.5rem}.widget-component .mb-2{margin-bottom:8px}.widget-component .mt-2{margin-top:8px}.widget-component .justify-between{justify-content:space-between}.flex-0{flex:0}.flex-1{flex:1}.disabled[data-v-0bfa17ab]{color:currentColor;cursor:not-allowed!important;opacity:.4!important;text-decoration:none}.container-buttons-chat[data-v-0bfa17ab]{position:relative;right:-1.8rem}.button[data-v-0bfa17ab]{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-0bfa17ab]{z-index:1;opacity:1}.container-buttons-chat.active .whatsapp[data-v-0bfa17ab]{transform:translateY(-150px)}.container-buttons-chat.active .telegram[data-v-0bfa17ab]{transform:translateY(-100px)}.container-buttons-chat.active .webchat[data-v-0bfa17ab]{transform:translateY(-50px)}.widget-container[data-v-0bfa17ab]{position:relative}.new-message-badge[data-v-0bfa17ab]{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}.btn-primary[data-v-0bfa17ab]{color:var(--primary-color)}.btn-primary[data-v-0bfa17ab]:hover{opacity:.7}
|
|
@@ -1744,22 +1744,22 @@ q.getAdapter = jr.getAdapter;
|
|
|
1744
1744
|
q.HttpStatusCode = qn;
|
|
1745
1745
|
q.default = q;
|
|
1746
1746
|
const {
|
|
1747
|
-
Axios:
|
|
1748
|
-
AxiosError:
|
|
1749
|
-
CanceledError:
|
|
1750
|
-
isCancel:
|
|
1751
|
-
CancelToken:
|
|
1752
|
-
VERSION:
|
|
1753
|
-
all:
|
|
1754
|
-
Cancel:
|
|
1755
|
-
isAxiosError:
|
|
1756
|
-
spread:
|
|
1757
|
-
toFormData:
|
|
1758
|
-
AxiosHeaders:
|
|
1759
|
-
HttpStatusCode:
|
|
1760
|
-
formToJSON:
|
|
1761
|
-
getAdapter:
|
|
1762
|
-
mergeConfig:
|
|
1747
|
+
Axios: t1,
|
|
1748
|
+
AxiosError: n1,
|
|
1749
|
+
CanceledError: s1,
|
|
1750
|
+
isCancel: r1,
|
|
1751
|
+
CancelToken: i1,
|
|
1752
|
+
VERSION: o1,
|
|
1753
|
+
all: a1,
|
|
1754
|
+
Cancel: l1,
|
|
1755
|
+
isAxiosError: u1,
|
|
1756
|
+
spread: c1,
|
|
1757
|
+
toFormData: f1,
|
|
1758
|
+
AxiosHeaders: h1,
|
|
1759
|
+
HttpStatusCode: d1,
|
|
1760
|
+
formToJSON: m1,
|
|
1761
|
+
getAdapter: p1,
|
|
1762
|
+
mergeConfig: y1
|
|
1763
1763
|
} = q, bt = async function(t) {
|
|
1764
1764
|
const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "https://chatadmin-gw.dev.mp.gob.bo", s = {
|
|
1765
1765
|
method: e.method,
|
|
@@ -9873,28 +9873,33 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
9873
9873
|
])) : Ee("", !0)
|
|
9874
9874
|
])) : Ee("", !0);
|
|
9875
9875
|
}
|
|
9876
|
-
}), uc = /* @__PURE__ */ oe(lc, [["__scopeId", "data-v-532e0111"]]), cc = {
|
|
9876
|
+
}), uc = /* @__PURE__ */ oe(lc, [["__scopeId", "data-v-532e0111"]]), cc = {
|
|
9877
|
+
transports: ["websocket"],
|
|
9878
|
+
reconnection: !0,
|
|
9879
|
+
reconnectionAttempts: 5,
|
|
9880
|
+
reconnectionDelay: 2e3
|
|
9881
|
+
}, fc = { class: "widget" }, hc = { class: "header-widget flex-0" }, dc = { class: "title-chat" }, mc = {
|
|
9877
9882
|
class: "flex-1",
|
|
9878
9883
|
style: { position: "relative", height: "0" }
|
|
9879
|
-
},
|
|
9884
|
+
}, pc = {
|
|
9880
9885
|
key: 0,
|
|
9881
9886
|
class: "loader"
|
|
9882
|
-
},
|
|
9887
|
+
}, yc = {
|
|
9883
9888
|
key: 2,
|
|
9884
9889
|
class: "fit"
|
|
9885
|
-
},
|
|
9890
|
+
}, gc = { class: "w-full flex-0" }, wc = { class: "form-message" }, vc = { class: "jl-inputgroup-chat" }, bc = {
|
|
9886
9891
|
type: "submit",
|
|
9887
9892
|
class: "pointer btn-primary"
|
|
9888
|
-
},
|
|
9893
|
+
}, Tc = {
|
|
9889
9894
|
key: 1,
|
|
9890
9895
|
class: "message-send-block"
|
|
9891
|
-
},
|
|
9896
|
+
}, Sc = {
|
|
9892
9897
|
key: 0,
|
|
9893
9898
|
class: "flex flex-col justify-center items-center"
|
|
9894
|
-
},
|
|
9899
|
+
}, kc = ["src"], Ec = { class: "form-message" }, Oc = { class: "jl-inputgroup-chat" }, _c = {
|
|
9895
9900
|
type: "submit",
|
|
9896
9901
|
class: "pointer btn-primary"
|
|
9897
|
-
},
|
|
9902
|
+
}, Cc = { key: 1 }, xc = ["src"], Nc = 14, Ac = /* @__PURE__ */ tn({
|
|
9898
9903
|
__name: "Chat",
|
|
9899
9904
|
props: {
|
|
9900
9905
|
titlePrincipal: {
|
|
@@ -10116,7 +10121,7 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10116
10121
|
});
|
|
10117
10122
|
}, P = U();
|
|
10118
10123
|
function ne() {
|
|
10119
|
-
P.value && (P.value.style.height = P.value.scrollHeight -
|
|
10124
|
+
P.value && (P.value.style.height = P.value.scrollHeight - Nc + "px", P.value.scrollHeight !== P.value.clientHeight && (P.value.style.height = P.value.scrollHeight + "px"));
|
|
10120
10125
|
}
|
|
10121
10126
|
const Q = U(), ve = U();
|
|
10122
10127
|
function ho(y, m = fo.WEBCHAT) {
|
|
@@ -10124,11 +10129,13 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10124
10129
|
if (!y) throw new Error("user chat is required");
|
|
10125
10130
|
if (!((x = (T = y == null ? void 0 : y.chat) == null ? void 0 : T.persona) != null && x.msPersonaId)) throw new Error("user chat persona ID is required");
|
|
10126
10131
|
Q.value = Zt(window.VITE_SOCKET_URI, {
|
|
10132
|
+
...cc,
|
|
10127
10133
|
query: {
|
|
10128
10134
|
usuarioId: `${(F = (M = y == null ? void 0 : y.chat) == null ? void 0 : M.persona) == null ? void 0 : F.msPersonaId}`,
|
|
10129
10135
|
aplicacion: m
|
|
10130
10136
|
},
|
|
10131
|
-
|
|
10137
|
+
auth: { token: p.tokenAuth },
|
|
10138
|
+
multiplex: !1
|
|
10132
10139
|
}), Q.value.removeAllListeners(), Q.value.on("connect", () => {
|
|
10133
10140
|
var Z, se;
|
|
10134
10141
|
console.log("Conectado al servidor de sockets"), (se = Q.value) == null || se.emit("joinRoom", `${(Z = y == null ? void 0 : y.appChat) == null ? void 0 : Z.id}`);
|
|
@@ -10233,9 +10240,9 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10233
10240
|
var y;
|
|
10234
10241
|
(y = Q.value) == null || y.off();
|
|
10235
10242
|
}), (y, m) => (N(), R(mt, null, [
|
|
10236
|
-
b("div",
|
|
10237
|
-
b("div",
|
|
10238
|
-
b("h4",
|
|
10243
|
+
b("div", fc, [
|
|
10244
|
+
b("div", hc, [
|
|
10245
|
+
b("h4", dc, Ye(t.titlePrincipal), 1),
|
|
10239
10246
|
b("button", {
|
|
10240
10247
|
onClick: m[0] || (m[0] = () => t.toggleChat()),
|
|
10241
10248
|
class: "btn-close"
|
|
@@ -10243,7 +10250,7 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10243
10250
|
le(Or, { class: "pointer" })
|
|
10244
10251
|
])
|
|
10245
10252
|
]),
|
|
10246
|
-
b("div",
|
|
10253
|
+
b("div", mc, [
|
|
10247
10254
|
b("div", {
|
|
10248
10255
|
ref_key: "dropZoneRef",
|
|
10249
10256
|
ref: a,
|
|
@@ -10278,7 +10285,7 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10278
10285
|
ref: g,
|
|
10279
10286
|
onDragenter: m[7] || (m[7] = xe((T) => a.value.style.zIndex = "1", ["prevent"]))
|
|
10280
10287
|
}, [
|
|
10281
|
-
c.value ? (N(), R("div",
|
|
10288
|
+
c.value ? (N(), R("div", pc, [
|
|
10282
10289
|
le(iu)
|
|
10283
10290
|
])) : Ee("", !0),
|
|
10284
10291
|
l.value.data.length > 0 ? (N(), ss(tu, {
|
|
@@ -10291,19 +10298,19 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10291
10298
|
onSee: m[6] || (m[6] = (T) => {
|
|
10292
10299
|
i.value = 1, o.value = T.thumbnailFile, wo(T.msFileId), be.title = "Imagen", be.modelValue = !0;
|
|
10293
10300
|
})
|
|
10294
|
-
}, null, 8, ["messages", "canLoadMoreMessages"])) : (N(), R("div",
|
|
10301
|
+
}, null, 8, ["messages", "canLoadMoreMessages"])) : (N(), R("div", yc, m[18] || (m[18] = [
|
|
10295
10302
|
b("span", { class: "center" }, "No tienes mensajes", -1)
|
|
10296
10303
|
])))
|
|
10297
10304
|
], 544)
|
|
10298
10305
|
]),
|
|
10299
|
-
b("div",
|
|
10300
|
-
C.value ? (N(), R("span",
|
|
10306
|
+
b("div", gc, [
|
|
10307
|
+
C.value ? (N(), R("span", Tc, " Necesitamos que nos califique la atención para continuar ")) : (N(), R("form", {
|
|
10301
10308
|
key: 0,
|
|
10302
10309
|
class: "message-send",
|
|
10303
10310
|
onSubmit: m[12] || (m[12] = xe((T) => _(), ["prevent"]))
|
|
10304
10311
|
}, [
|
|
10305
|
-
b("div",
|
|
10306
|
-
b("div",
|
|
10312
|
+
b("div", wc, [
|
|
10313
|
+
b("div", vc, [
|
|
10307
10314
|
jt(b("textarea", {
|
|
10308
10315
|
"onUpdate:modelValue": m[8] || (m[8] = (T) => n.value = T),
|
|
10309
10316
|
class: "jl2-input-chat",
|
|
@@ -10342,7 +10349,7 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10342
10349
|
}, [
|
|
10343
10350
|
le(rc, { style: { width: "20px", height: "20px" } })
|
|
10344
10351
|
]),
|
|
10345
|
-
b("button",
|
|
10352
|
+
b("button", bc, [
|
|
10346
10353
|
le(ks, { style: { width: "20px", height: "20px" } })
|
|
10347
10354
|
])
|
|
10348
10355
|
])
|
|
@@ -10352,13 +10359,13 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10352
10359
|
]),
|
|
10353
10360
|
le(uc, Co(xo(be)), {
|
|
10354
10361
|
default: No(() => [
|
|
10355
|
-
i.value === 0 ? (N(), R("div",
|
|
10362
|
+
i.value === 0 ? (N(), R("div", Sc, [
|
|
10356
10363
|
(N(!0), R(mt, null, Fn(ke.value, (T, x) => (N(), R("img", {
|
|
10357
10364
|
key: x,
|
|
10358
10365
|
src: T.toString(),
|
|
10359
10366
|
alt: "Image",
|
|
10360
10367
|
width: "400"
|
|
10361
|
-
}, null, 8,
|
|
10368
|
+
}, null, 8, kc))), 128)),
|
|
10362
10369
|
b("form", {
|
|
10363
10370
|
class: "message-send",
|
|
10364
10371
|
onSubmit: m[17] || (m[17] = xe(
|
|
@@ -10368,8 +10375,8 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10368
10375
|
["prevent"]
|
|
10369
10376
|
))
|
|
10370
10377
|
}, [
|
|
10371
|
-
b("div",
|
|
10372
|
-
b("div",
|
|
10378
|
+
b("div", Ec, [
|
|
10379
|
+
b("div", Oc, [
|
|
10373
10380
|
jt(b("textarea", {
|
|
10374
10381
|
"onUpdate:modelValue": m[13] || (m[13] = (T) => n.value = T),
|
|
10375
10382
|
autofocus: "",
|
|
@@ -10390,46 +10397,46 @@ const rc = /* @__PURE__ */ oe(tc, [["render", sc]]), ic = {
|
|
|
10390
10397
|
}, null, 544), [
|
|
10391
10398
|
[bs, n.value]
|
|
10392
10399
|
]),
|
|
10393
|
-
b("button",
|
|
10400
|
+
b("button", _c, [
|
|
10394
10401
|
le(ks, { style: { width: "20px", height: "20px" } })
|
|
10395
10402
|
])
|
|
10396
10403
|
])
|
|
10397
10404
|
])
|
|
10398
10405
|
], 32)
|
|
10399
|
-
])) : (N(), R("div",
|
|
10406
|
+
])) : (N(), R("div", Cc, [
|
|
10400
10407
|
o.value ? (N(), R("img", {
|
|
10401
10408
|
key: 0,
|
|
10402
10409
|
src: o.value,
|
|
10403
10410
|
alt: "Image",
|
|
10404
10411
|
style: { "max-height": "85vh" }
|
|
10405
|
-
}, null, 8,
|
|
10412
|
+
}, null, 8, xc)) : Ee("", !0)
|
|
10406
10413
|
]))
|
|
10407
10414
|
]),
|
|
10408
10415
|
_: 1
|
|
10409
10416
|
}, 16)
|
|
10410
10417
|
], 64));
|
|
10411
10418
|
}
|
|
10412
|
-
}),
|
|
10419
|
+
}), Rc = /* @__PURE__ */ oe(Ac, [["__scopeId", "data-v-f5517ea6"]]), Ic = {}, Mc = {
|
|
10413
10420
|
width: "87",
|
|
10414
10421
|
height: "87",
|
|
10415
10422
|
viewBox: "0 0 87 87",
|
|
10416
10423
|
fill: "none",
|
|
10417
10424
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10418
10425
|
};
|
|
10419
|
-
function
|
|
10420
|
-
return N(), R("svg",
|
|
10426
|
+
function Dc(t, e) {
|
|
10427
|
+
return N(), R("svg", Mc, e[0] || (e[0] = [
|
|
10421
10428
|
Ao('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="currentColor" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="currentColor"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="currentColor"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="currentColor"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="currentColor"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>', 2)
|
|
10422
10429
|
]));
|
|
10423
10430
|
}
|
|
10424
|
-
const
|
|
10431
|
+
const Lc = /* @__PURE__ */ oe(Ic, [["render", Dc]]), Fc = {}, Bc = {
|
|
10425
10432
|
viewBox: "0 0 256 256",
|
|
10426
10433
|
version: "1.1",
|
|
10427
10434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10428
10435
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
10429
10436
|
preserveAspectRatio: "xMidYMid"
|
|
10430
10437
|
};
|
|
10431
|
-
function
|
|
10432
|
-
return N(), R("svg",
|
|
10438
|
+
function Vc(t, e) {
|
|
10439
|
+
return N(), R("svg", Bc, e[0] || (e[0] = [
|
|
10433
10440
|
b("g", null, [
|
|
10434
10441
|
b("path", {
|
|
10435
10442
|
d: "M128,0 C57.307,0 0,57.307 0,128 L0,128 C0,198.693 57.307,256 128,256 L128,256 C198.693,256 256,198.693 256,128 L256,128 C256,57.307 198.693,0 128,0 L128,0 Z",
|
|
@@ -10450,7 +10457,7 @@ function Bc(t, e) {
|
|
|
10450
10457
|
], -1)
|
|
10451
10458
|
]));
|
|
10452
10459
|
}
|
|
10453
|
-
const
|
|
10460
|
+
const Uc = /* @__PURE__ */ oe(Fc, [["render", Vc]]), $c = {}, Pc = {
|
|
10454
10461
|
version: "1.1",
|
|
10455
10462
|
id: "Capa_1",
|
|
10456
10463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10458,8 +10465,8 @@ const Vc = /* @__PURE__ */ oe(Lc, [["render", Bc]]), Uc = {}, $c = {
|
|
|
10458
10465
|
viewBox: "0 0 455.731 455.731",
|
|
10459
10466
|
"xml:space": "preserve"
|
|
10460
10467
|
};
|
|
10461
|
-
function
|
|
10462
|
-
return N(), R("svg",
|
|
10468
|
+
function qc(t, e) {
|
|
10469
|
+
return N(), R("svg", Pc, e[0] || (e[0] = [
|
|
10463
10470
|
b("g", null, [
|
|
10464
10471
|
b("rect", {
|
|
10465
10472
|
x: "0",
|
|
@@ -10490,7 +10497,7 @@ function Pc(t, e) {
|
|
|
10490
10497
|
], -1)
|
|
10491
10498
|
]));
|
|
10492
10499
|
}
|
|
10493
|
-
const
|
|
10500
|
+
const Wc = /* @__PURE__ */ oe($c, [["render", qc]]), zc = {}, Hc = {
|
|
10494
10501
|
version: "1.1",
|
|
10495
10502
|
id: "Capa_1",
|
|
10496
10503
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10498,8 +10505,8 @@ const qc = /* @__PURE__ */ oe(Uc, [["render", Pc]]), Wc = {}, zc = {
|
|
|
10498
10505
|
viewBox: "-10 -10 78 78",
|
|
10499
10506
|
"xml:space": "preserve"
|
|
10500
10507
|
};
|
|
10501
|
-
function
|
|
10502
|
-
return N(), R("svg",
|
|
10508
|
+
function Zc(t, e) {
|
|
10509
|
+
return N(), R("svg", Hc, e[0] || (e[0] = [
|
|
10503
10510
|
b("g", null, [
|
|
10504
10511
|
b("path", {
|
|
10505
10512
|
style: { fill: "orange" },
|
|
@@ -10529,14 +10536,14 @@ function Hc(t, e) {
|
|
|
10529
10536
|
], -1)
|
|
10530
10537
|
]));
|
|
10531
10538
|
}
|
|
10532
|
-
const
|
|
10539
|
+
const jc = /* @__PURE__ */ oe(zc, [["render", Zc]]), Yc = {
|
|
10533
10540
|
key: 0,
|
|
10534
10541
|
id: "chat-circle",
|
|
10535
10542
|
class: "widget-container"
|
|
10536
|
-
},
|
|
10543
|
+
}, Jc = {
|
|
10537
10544
|
key: 0,
|
|
10538
10545
|
class: "new-message-badge"
|
|
10539
|
-
},
|
|
10546
|
+
}, Gc = { class: "chat-box" }, Kc = /* @__PURE__ */ tn({
|
|
10540
10547
|
__name: "Widget",
|
|
10541
10548
|
props: {
|
|
10542
10549
|
tokenAuth: { type: String, required: !0 },
|
|
@@ -10577,7 +10584,7 @@ const Zc = /* @__PURE__ */ oe(Wc, [["render", Hc]]), jc = {
|
|
|
10577
10584
|
return (c, f) => (N(), R("div", {
|
|
10578
10585
|
class: Be(["widget-component widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
|
|
10579
10586
|
}, [
|
|
10580
|
-
u.tokenAuth.length > 10 ? jt((N(), R("div",
|
|
10587
|
+
u.tokenAuth.length > 10 ? jt((N(), R("div", Yc, [
|
|
10581
10588
|
b("div", {
|
|
10582
10589
|
class: Be(["container-buttons-chat", { active: a.value }])
|
|
10583
10590
|
}, [
|
|
@@ -10589,7 +10596,7 @@ const Zc = /* @__PURE__ */ oe(Wc, [["render", Hc]]), jc = {
|
|
|
10589
10596
|
/* WHATSAPP */
|
|
10590
10597
|
))
|
|
10591
10598
|
}, [
|
|
10592
|
-
le(
|
|
10599
|
+
le(Wc)
|
|
10593
10600
|
]),
|
|
10594
10601
|
b("a", {
|
|
10595
10602
|
href: "javascript:;",
|
|
@@ -10599,7 +10606,7 @@ const Zc = /* @__PURE__ */ oe(Wc, [["render", Hc]]), jc = {
|
|
|
10599
10606
|
/* TELEGRAM */
|
|
10600
10607
|
))
|
|
10601
10608
|
}, [
|
|
10602
|
-
le(
|
|
10609
|
+
le(Uc)
|
|
10603
10610
|
]),
|
|
10604
10611
|
b("a", {
|
|
10605
10612
|
href: "javascript:;",
|
|
@@ -10607,22 +10614,22 @@ const Zc = /* @__PURE__ */ oe(Wc, [["render", Hc]]), jc = {
|
|
|
10607
10614
|
title: "Debe estar autenticado",
|
|
10608
10615
|
onClick: f[2] || (f[2] = (p) => a.value && s())
|
|
10609
10616
|
}, [
|
|
10610
|
-
le(
|
|
10617
|
+
le(jc)
|
|
10611
10618
|
], 2)
|
|
10612
10619
|
], 2),
|
|
10613
|
-
o.value ? (N(), R("div",
|
|
10620
|
+
o.value ? (N(), R("div", Jc, Ye(o.value > 9 ? "9+" : o.value), 1)) : Ee("", !0),
|
|
10614
10621
|
b("a", {
|
|
10615
10622
|
href: "javascript:;",
|
|
10616
10623
|
onClick: s,
|
|
10617
10624
|
class: "btn-primary"
|
|
10618
10625
|
}, [
|
|
10619
|
-
le(
|
|
10626
|
+
le(Lc)
|
|
10620
10627
|
])
|
|
10621
10628
|
], 512)), [
|
|
10622
10629
|
[Ts, !i.value]
|
|
10623
10630
|
]) : Ee("", !0),
|
|
10624
|
-
jt(b("div",
|
|
10625
|
-
t.tokenAuth ? (N(), ss(
|
|
10631
|
+
jt(b("div", Gc, [
|
|
10632
|
+
t.tokenAuth ? (N(), ss(Rc, {
|
|
10626
10633
|
key: 0,
|
|
10627
10634
|
visible: i.value,
|
|
10628
10635
|
titlePrincipal: t.titlePrincipal,
|
|
@@ -10641,12 +10648,12 @@ const Zc = /* @__PURE__ */ oe(Wc, [["render", Hc]]), jc = {
|
|
|
10641
10648
|
])
|
|
10642
10649
|
], 2));
|
|
10643
10650
|
}
|
|
10644
|
-
}),
|
|
10651
|
+
}), w1 = /* @__PURE__ */ oe(Kc, [["__scopeId", "data-v-0bfa17ab"]]), v1 = {
|
|
10645
10652
|
install(t, e) {
|
|
10646
10653
|
window.VITE_BACKEND_URL = e.VITE_BACKEND_URL, window.VITE_SOCKET_URI = e.VITE_SOCKET_URI, window.VITE_CELLPHONE_NUMBERS = e.VITE_CELLPHONE_NUMBERS;
|
|
10647
10654
|
}
|
|
10648
10655
|
};
|
|
10649
10656
|
export {
|
|
10650
|
-
|
|
10651
|
-
|
|
10657
|
+
w1 as Widget,
|
|
10658
|
+
v1 as default
|
|
10652
10659
|
};
|