@superwise.ai/superwise-chatbot-package 1.0.2 → 1.0.3
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/react-chatbot.es.js +248 -230
- package/dist/react-chatbot.umd.js +12 -10
- package/dist/superwise-chatbot-package.css +1 -1
- package/package.json +1 -1
package/dist/react-chatbot.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Me, { memo as Ee, useState as L, useRef as q, useEffect as W, useMemo as Ce, useCallback as ee } from "react";
|
|
2
|
+
var ue = { exports: {} }, ne = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -9,10 +9,10 @@ var he = { exports: {} }, re = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
12
|
+
var be;
|
|
13
|
+
function Pe() {
|
|
14
|
+
if (be) return ne;
|
|
15
|
+
be = 1;
|
|
16
16
|
var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
17
17
|
function s(p, l, a) {
|
|
18
18
|
var d = null;
|
|
@@ -29,9 +29,9 @@ function _e() {
|
|
|
29
29
|
props: a
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return ne.Fragment = n, ne.jsx = s, ne.jsxs = s, ne;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var oe = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -41,26 +41,26 @@ var ne = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
44
|
+
var ke;
|
|
45
|
+
function Ve() {
|
|
46
|
+
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
47
|
function r(t) {
|
|
48
48
|
if (t == null) return null;
|
|
49
49
|
if (typeof t == "function")
|
|
50
|
-
return t.$$typeof ===
|
|
50
|
+
return t.$$typeof === M ? null : t.displayName || t.name || null;
|
|
51
51
|
if (typeof t == "string") return t;
|
|
52
52
|
switch (t) {
|
|
53
53
|
case I:
|
|
54
54
|
return "Fragment";
|
|
55
|
-
case
|
|
55
|
+
case T:
|
|
56
56
|
return "Profiler";
|
|
57
57
|
case H:
|
|
58
58
|
return "StrictMode";
|
|
59
|
-
case
|
|
59
|
+
case ie:
|
|
60
60
|
return "Suspense";
|
|
61
|
-
case
|
|
61
|
+
case le:
|
|
62
62
|
return "SuspenseList";
|
|
63
|
-
case
|
|
63
|
+
case _:
|
|
64
64
|
return "Activity";
|
|
65
65
|
}
|
|
66
66
|
if (typeof t == "object")
|
|
@@ -69,16 +69,16 @@ function Me() {
|
|
|
69
69
|
), t.$$typeof) {
|
|
70
70
|
case f:
|
|
71
71
|
return "Portal";
|
|
72
|
-
case
|
|
72
|
+
case R:
|
|
73
73
|
return t.displayName || "Context";
|
|
74
|
-
case
|
|
74
|
+
case O:
|
|
75
75
|
return (t._context.displayName || "Context") + ".Consumer";
|
|
76
|
-
case
|
|
76
|
+
case ae:
|
|
77
77
|
var c = t.render;
|
|
78
78
|
return t = t.displayName, t || (t = c.displayName || c.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
79
|
-
case
|
|
79
|
+
case ce:
|
|
80
80
|
return c = t.displayName || null, c !== null ? c : r(t.type) || "Memo";
|
|
81
|
-
case
|
|
81
|
+
case G:
|
|
82
82
|
c = t._payload, t = t._init;
|
|
83
83
|
try {
|
|
84
84
|
return r(t(c));
|
|
@@ -99,8 +99,8 @@ function Me() {
|
|
|
99
99
|
}
|
|
100
100
|
if (c) {
|
|
101
101
|
c = console;
|
|
102
|
-
var
|
|
103
|
-
return
|
|
102
|
+
var x = c.error, b = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
103
|
+
return x.call(
|
|
104
104
|
c,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
106
|
b
|
|
@@ -109,7 +109,7 @@ function Me() {
|
|
|
109
109
|
}
|
|
110
110
|
function p(t) {
|
|
111
111
|
if (t === I) return "<>";
|
|
112
|
-
if (typeof t == "object" && t !== null && t.$$typeof ===
|
|
112
|
+
if (typeof t == "object" && t !== null && t.$$typeof === G)
|
|
113
113
|
return "<...>";
|
|
114
114
|
try {
|
|
115
115
|
var c = r(t);
|
|
@@ -119,44 +119,44 @@ function Me() {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
function l() {
|
|
122
|
-
var t =
|
|
122
|
+
var t = J.A;
|
|
123
123
|
return t === null ? null : t.getOwner();
|
|
124
124
|
}
|
|
125
125
|
function a() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
128
|
function d(t) {
|
|
129
|
-
if (
|
|
129
|
+
if (me.call(t, "key")) {
|
|
130
130
|
var c = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
131
131
|
if (c && c.isReactWarning) return !1;
|
|
132
132
|
}
|
|
133
133
|
return t.key !== void 0;
|
|
134
134
|
}
|
|
135
135
|
function i(t, c) {
|
|
136
|
-
function
|
|
137
|
-
|
|
136
|
+
function x() {
|
|
137
|
+
F || (F = !0, console.error(
|
|
138
138
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
139
|
c
|
|
140
140
|
));
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
get:
|
|
142
|
+
x.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
143
|
+
get: x,
|
|
144
144
|
configurable: !0
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function C() {
|
|
148
148
|
var t = r(this.type);
|
|
149
|
-
return
|
|
149
|
+
return te[t] || (te[t] = !0, console.error(
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
151
|
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
var u =
|
|
153
|
+
function y(t, c, x, b, Z, X) {
|
|
154
|
+
var u = x.ref;
|
|
155
155
|
return t = {
|
|
156
156
|
$$typeof: h,
|
|
157
157
|
type: t,
|
|
158
158
|
key: c,
|
|
159
|
-
props:
|
|
159
|
+
props: x,
|
|
160
160
|
_owner: b
|
|
161
161
|
}, (u !== void 0 ? u : null) !== null ? Object.defineProperty(t, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
@@ -175,19 +175,19 @@ function Me() {
|
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
178
|
+
value: Z
|
|
179
179
|
}), Object.defineProperty(t, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
writable: !0,
|
|
183
|
-
value:
|
|
183
|
+
value: X
|
|
184
184
|
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
185
185
|
}
|
|
186
|
-
function w(t, c,
|
|
186
|
+
function w(t, c, x, b, Z, X) {
|
|
187
187
|
var u = c.children;
|
|
188
188
|
if (u !== void 0)
|
|
189
189
|
if (b)
|
|
190
|
-
if (
|
|
190
|
+
if (de(u)) {
|
|
191
191
|
for (b = 0; b < u.length; b++)
|
|
192
192
|
v(u[b]);
|
|
193
193
|
Object.freeze && Object.freeze(u);
|
|
@@ -196,12 +196,12 @@ function Me() {
|
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
198
|
else v(u);
|
|
199
|
-
if (
|
|
199
|
+
if (me.call(c, "key")) {
|
|
200
200
|
u = r(t);
|
|
201
|
-
var
|
|
202
|
-
return
|
|
201
|
+
var P = Object.keys(c).filter(function(K) {
|
|
202
|
+
return K !== "key";
|
|
203
203
|
});
|
|
204
|
-
b = 0 <
|
|
204
|
+
b = 0 < P.length ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}", U[u + b] || (P = 0 < P.length ? "{" + P.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
@@ -210,34 +210,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
211
|
b,
|
|
212
212
|
u,
|
|
213
|
-
|
|
213
|
+
P,
|
|
214
214
|
u
|
|
215
|
-
),
|
|
215
|
+
), U[u + b] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (u = null,
|
|
218
|
-
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
} else
|
|
217
|
+
if (u = null, x !== void 0 && (s(x), u = "" + x), d(c) && (s(c.key), u = "" + c.key), "key" in c) {
|
|
218
|
+
x = {};
|
|
219
|
+
for (var B in c)
|
|
220
|
+
B !== "key" && (x[B] = c[B]);
|
|
221
|
+
} else x = c;
|
|
222
222
|
return u && i(
|
|
223
|
-
|
|
223
|
+
x,
|
|
224
224
|
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
225
|
-
),
|
|
225
|
+
), y(
|
|
226
226
|
t,
|
|
227
227
|
u,
|
|
228
|
-
|
|
228
|
+
x,
|
|
229
229
|
l(),
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
Z,
|
|
231
|
+
X
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
function v(t) {
|
|
235
|
-
j(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof ===
|
|
235
|
+
j(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === G && (t._payload.status === "fulfilled" ? j(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
|
|
236
236
|
}
|
|
237
237
|
function j(t) {
|
|
238
238
|
return typeof t == "object" && t !== null && t.$$typeof === h;
|
|
239
239
|
}
|
|
240
|
-
var E =
|
|
240
|
+
var E = Me, h = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), I = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), R = Symbol.for("react.context"), ae = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), le = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), J = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = Object.prototype.hasOwnProperty, de = Array.isArray, $ = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
E = {
|
|
@@ -245,58 +245,58 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return t();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var
|
|
248
|
+
var F, te = {}, pe = E.react_stack_bottom_frame.bind(
|
|
249
249
|
E,
|
|
250
250
|
a
|
|
251
|
-
)(),
|
|
252
|
-
|
|
253
|
-
var b = 1e4 >
|
|
251
|
+
)(), N = $(p(a)), U = {};
|
|
252
|
+
oe.Fragment = I, oe.jsx = function(t, c, x) {
|
|
253
|
+
var b = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return w(
|
|
255
255
|
t,
|
|
256
256
|
c,
|
|
257
|
-
|
|
257
|
+
x,
|
|
258
258
|
!1,
|
|
259
|
-
b ? Error("react-stack-top-frame") :
|
|
260
|
-
b ?
|
|
259
|
+
b ? Error("react-stack-top-frame") : pe,
|
|
260
|
+
b ? $(p(t)) : N
|
|
261
261
|
);
|
|
262
|
-
},
|
|
263
|
-
var b = 1e4 >
|
|
262
|
+
}, oe.jsxs = function(t, c, x) {
|
|
263
|
+
var b = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
264
264
|
return w(
|
|
265
265
|
t,
|
|
266
266
|
c,
|
|
267
|
-
|
|
267
|
+
x,
|
|
268
268
|
!0,
|
|
269
|
-
b ? Error("react-stack-top-frame") :
|
|
270
|
-
b ?
|
|
269
|
+
b ? Error("react-stack-top-frame") : pe,
|
|
270
|
+
b ? $(p(t)) : N
|
|
271
271
|
);
|
|
272
272
|
};
|
|
273
|
-
}()),
|
|
273
|
+
}()), oe;
|
|
274
274
|
}
|
|
275
|
-
process.env.NODE_ENV === "production" ?
|
|
276
|
-
var e =
|
|
277
|
-
const
|
|
275
|
+
process.env.NODE_ENV === "production" ? ue.exports = Pe() : ue.exports = Ve();
|
|
276
|
+
var e = ue.exports;
|
|
277
|
+
const Ae = [
|
|
278
278
|
"Parameters:",
|
|
279
279
|
"additional_parameter_company_name:",
|
|
280
280
|
"additional_parameter_company_size:",
|
|
281
281
|
"additional_parameter_user_role:",
|
|
282
282
|
"additional_parameter_use_case:"
|
|
283
|
-
];
|
|
284
|
-
function
|
|
283
|
+
], se = "Apologize, I’m unable to respond at the moment. Please try asking your question again or click Contact Sales to get in touch with our team.";
|
|
284
|
+
function We(r) {
|
|
285
285
|
if (typeof r != "string" || r.length === 0) return r;
|
|
286
286
|
let n = r;
|
|
287
|
-
for (const s of
|
|
287
|
+
for (const s of Ae)
|
|
288
288
|
for (; ; ) {
|
|
289
289
|
const p = n.indexOf(s);
|
|
290
290
|
if (p === -1) break;
|
|
291
291
|
const l = n.indexOf("{", p);
|
|
292
292
|
if (l === -1) break;
|
|
293
293
|
let a = 0, d = -1;
|
|
294
|
-
for (let
|
|
295
|
-
const w = n[
|
|
294
|
+
for (let y = l; y < n.length; y++) {
|
|
295
|
+
const w = n[y];
|
|
296
296
|
if (w === "{")
|
|
297
297
|
a++;
|
|
298
298
|
else if (w === "}" && (a--, a === 0)) {
|
|
299
|
-
d =
|
|
299
|
+
d = y;
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -306,14 +306,14 @@ function Ve(r) {
|
|
|
306
306
|
}
|
|
307
307
|
return n.includes("Parameters:") && (n = n.split("Parameters:")[0].trim()), n;
|
|
308
308
|
}
|
|
309
|
-
async function
|
|
309
|
+
async function Te(r, n = [], s = [], p = "", l = "", a = "", d = null) {
|
|
310
310
|
var v, j, E;
|
|
311
|
-
const i = typeof a == "string" && a.trim().length > 0 ? a.trim() : "https://sage-api-ttyw-stage.superwise.ai/api/v1/", C = i.replace(/\/+$/, "").endsWith("/chat") ? i : i.replace(/\/+$/, "") + "/chat",
|
|
311
|
+
const i = typeof a == "string" && a.trim().length > 0 ? a.trim() : "https://sage-api-ttyw-stage.superwise.ai/api/v1/", C = i.replace(/\/+$/, "").endsWith("/chat") ? i : i.replace(/\/+$/, "") + "/chat", y = Array.isArray(n) ? n.map((h) => ({
|
|
312
312
|
role: h.role,
|
|
313
313
|
message: h.content != null ? h.content : ""
|
|
314
314
|
})) : [], w = {
|
|
315
315
|
user_input: r,
|
|
316
|
-
chat_history:
|
|
316
|
+
chat_history: y,
|
|
317
317
|
mql_df: Array.isArray(s) ? s : [],
|
|
318
318
|
agent_id: p,
|
|
319
319
|
discovery_agent_id: l,
|
|
@@ -332,20 +332,20 @@ async function We(r, n = [], s = [], p = "", l = "", a = "", d = null) {
|
|
|
332
332
|
signal: d ?? void 0
|
|
333
333
|
});
|
|
334
334
|
if (console.log("Response status:", h.status), console.log("Response headers:", h.headers), !h.ok) {
|
|
335
|
-
const
|
|
336
|
-
return console.error("API Error Response:",
|
|
335
|
+
const O = await h.text();
|
|
336
|
+
return console.error("API Error Response:", O), { reply: se, mqlDf: [], isError: !0, status: h.status };
|
|
337
337
|
}
|
|
338
338
|
const f = await h.json();
|
|
339
339
|
console.log("API Response Data:", f);
|
|
340
|
-
let I = "⚠️ No reply from server.", H = [],
|
|
341
|
-
return f.chat_response ? I = f.chat_response : f.success && ((v = f.data) != null && v.chat_response) ? I = f.data.chat_response : f.message && (I = f.message), f.mql_df ? H = f.mql_df : (j = f.data) != null && j.mql_df && (H = f.data.mql_df), (f.chat_history_limit_exceeded === !0 || ((E = f.data) == null ? void 0 : E.chat_history_limit_exceeded) === !0) && (
|
|
340
|
+
let I = "⚠️ No reply from server.", H = [], T = !1;
|
|
341
|
+
return f.chat_response ? I = f.chat_response : f.success && ((v = f.data) != null && v.chat_response) ? I = f.data.chat_response : f.message && (I = f.message), f.mql_df ? H = f.mql_df : (j = f.data) != null && j.mql_df && (H = f.data.mql_df), (f.chat_history_limit_exceeded === !0 || ((E = f.data) == null ? void 0 : E.chat_history_limit_exceeded) === !0) && (T = !0), I = We(I), { reply: I, mqlDf: H, chatHistoryLimitExceeded: T };
|
|
342
342
|
} catch (h) {
|
|
343
343
|
if (console.error("API call failed:", h), h.name === "AbortError")
|
|
344
344
|
throw h;
|
|
345
|
-
return h.name === "TypeError" && h.message.includes("fetch") ? { reply:
|
|
345
|
+
return h.name === "TypeError" && h.message.includes("fetch") ? { reply: se, mqlDf: [], isError: !0 } : { reply: se, mqlDf: [], isError: !0 };
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
async function
|
|
348
|
+
async function $e(r, n = null, s = [], p = "") {
|
|
349
349
|
const d = (typeof p == "string" && p.trim().length > 0 ? p.trim() : "https://sage-api-ttyw-stage.superwise.ai/api/v1/").replace(/\/+$/, "").replace(/\/chat\/?$/, "").replace(/\/+$/, "") + "/pdf", i = Array.isArray(r) && r.length > 0 ? r[0] : n || {
|
|
350
350
|
name: "User",
|
|
351
351
|
email: "user@example.com",
|
|
@@ -353,11 +353,11 @@ async function Ae(r, n = null, s = [], p = "") {
|
|
|
353
353
|
}, C = Array.isArray(s) ? s.map((w) => ({
|
|
354
354
|
role: w.role,
|
|
355
355
|
message: w.content != null ? w.content : ""
|
|
356
|
-
})) : [],
|
|
356
|
+
})) : [], y = {
|
|
357
357
|
lead_row: i,
|
|
358
358
|
chat_history: C
|
|
359
359
|
};
|
|
360
|
-
console.log("Downloading PDF with payload:",
|
|
360
|
+
console.log("Downloading PDF with payload:", y);
|
|
361
361
|
try {
|
|
362
362
|
const w = await fetch(d, {
|
|
363
363
|
method: "POST",
|
|
@@ -365,7 +365,7 @@ async function Ae(r, n = null, s = [], p = "") {
|
|
|
365
365
|
"Content-Type": "application/json",
|
|
366
366
|
Accept: "application/pdf"
|
|
367
367
|
},
|
|
368
|
-
body: JSON.stringify(
|
|
368
|
+
body: JSON.stringify(y)
|
|
369
369
|
});
|
|
370
370
|
if (console.log("PDF Response status:", w.status), !w.ok) {
|
|
371
371
|
const h = await w.text();
|
|
@@ -628,7 +628,7 @@ const m = {
|
|
|
628
628
|
fontWeight: "500",
|
|
629
629
|
margin: 0
|
|
630
630
|
}
|
|
631
|
-
},
|
|
631
|
+
}, Fe = `@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');\r
|
|
632
632
|
\r
|
|
633
633
|
.sw-ttyw-chatbot {\r
|
|
634
634
|
--swttyw-primary-color: #000;\r
|
|
@@ -751,6 +751,8 @@ const m = {
|
|
|
751
751
|
.sw-ttyw-contact-cta {\r
|
|
752
752
|
margin: 0px auto;\r
|
|
753
753
|
animation: slideIn 0.3s ease-out;\r
|
|
754
|
+
max-width: 320px;\r
|
|
755
|
+
text-align: center;\r
|
|
754
756
|
}\r
|
|
755
757
|
\r
|
|
756
758
|
.sw-ttyw-cta-button {\r
|
|
@@ -1032,11 +1034,11 @@ const m = {
|
|
|
1032
1034
|
#sw-ttyw-chat-send-message:disabled svg,\r
|
|
1033
1035
|
#sw-ttyw-chat-send-message:disabled path {\r
|
|
1034
1036
|
cursor: not-allowed;\r
|
|
1035
|
-
}`, $e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='42'%20viewBox='0%200%20190%2042'%20fill='none'%3e%3cpath%20d='M17.2253%2014.2603C17.155%2014.0259%2016.9441%2013.8618%2016.7097%2013.8618H14.6472C14.3894%2013.8618%2014.1785%2014.0259%2014.1316%2014.2603L10.7801%2027.5053C10.7332%2027.6694%2010.7801%2027.8335%2010.8739%2027.9741C10.9676%2028.1148%2011.1317%2028.1851%2011.2957%2028.1851H12.9363C13.1941%2028.1851%2013.4051%2027.9976%2013.4754%2027.7631L14.0613%2025.0673H17.3191L17.905%2027.7631C17.9519%2028.021%2018.1862%2028.1851%2018.444%2028.1851H20.0846C20.2487%2028.1851%2020.4128%2028.1148%2020.5065%2027.9741C20.6003%2027.8335%2020.6471%2027.6694%2020.6003%2027.5053L17.2488%2014.2603H17.2253ZM14.5769%2022.5824L15.655%2017.636L16.7566%2022.5824H14.5769Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M23.8359%2013.8618H22.2656C21.9609%2013.8618%2021.7266%2014.0962%2021.7266%2014.401V27.6459C21.7266%2027.9507%2021.9609%2028.1851%2022.2656%2028.1851H23.8359C24.1406%2028.1851%2024.375%2027.9507%2024.375%2027.6459V14.401C24.375%2014.0962%2024.1406%2013.8618%2023.8359%2013.8618ZM22.2891%2014.0493C22.2422%2014.0493%2022.1953%2014.0493%2022.1484%2014.0728C22.1953%2014.0728%2022.2422%2014.0493%2022.2891%2014.0493Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M36.1401%2029.4041L36.0932%2012.5256C36.0932%2011.3066%2035.4369%2010.1579%2034.3588%209.5484L19.7341%201.15601C18.6794%200.546507%2017.3669%200.546507%2016.2888%201.15601L1.71091%209.61872C0.65624%2010.2282%200%2011.3769%200%2012.5959L0.046874%2029.4744C0.046874%2030.6934%200.703114%2031.8421%201.78122%2032.4516L16.406%2040.844C17.4607%2041.4535%2018.7731%2041.4535%2019.8513%2040.844L34.4291%2032.3813C35.4838%2031.7718%2036.1401%2030.6231%2036.1401%2029.4041ZM11.9998%2031.5608C6.16397%2028.1851%204.17181%2020.7539%207.54676%2014.9167C10.8983%209.07955%2018.3513%207.08694%2024.1871%2010.4626C30.023%2013.8149%2032.0151%2021.2696%2028.6402%2027.1068C25.2887%2032.9439%2017.8357%2034.9365%2011.9998%2031.5608Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M46.3593%2014.19C46.6171%2013.9087%2046.9218%2013.6977%2047.2734%2013.557C47.6249%2013.4164%2048.0468%2013.3461%2048.5155%2013.3461C48.9843%2013.3461%2049.6171%2013.4398%2050.0858%2013.6508C50.5546%2013.8618%2050.9295%2014.1665%2051.2342%2014.5416C51.3983%2014.7526%2051.5623%2014.987%2051.6795%2015.2683C51.8202%2015.5496%2051.9139%2015.8309%2051.9608%2016.1357L55.4295%2015.0574C55.1717%2014.1431%2054.8201%2013.3695%2054.3748%2012.7131C53.9295%2012.0567%2053.3904%2011.4941%2052.7576%2011.0487C52.1952%2010.6502%2051.5623%2010.3689%2050.8358%2010.1813C50.1327%209.99379%2049.3593%209.90002%2048.5624%209.90002C47.7655%209.90002%2046.5937%2010.0407%2045.7734%2010.3454C44.9765%2010.6502%2044.2734%2011.0956%2043.7109%2011.6816C43.125%2012.2443%2042.7031%2012.9241%2042.4219%2013.7211C42.1406%2014.5182%2042%2015.4324%2042%2016.4405C42%2017.4485%2042.1641%2018.5034%2042.5156%2019.277C42.8672%2020.0506%2043.3828%2020.707%2044.0859%2021.2461C44.789%2021.7853%2045.7031%2022.2776%2046.8515%2022.6761L48.8436%2023.4028C49.5702%2023.6842%2050.1561%2023.9655%2050.5546%2024.2702C50.953%2024.5515%2051.2342%2024.8797%2051.3983%2025.2314C51.5623%2025.583%2051.6327%2026.0284%2051.6327%2026.5676C51.6327%2027.1067%2051.5858%2027.4818%2051.4686%2027.8335C51.3749%2028.1851%2051.1874%2028.4899%2050.9764%2028.7712C50.742%2029.0759%2050.4374%2029.2869%2050.0624%2029.4275C49.7108%2029.5682%2049.2889%2029.6385%2048.8202%2029.6385C48.3515%2029.6385%2047.7187%2029.5448%2047.2734%2029.3338C46.8046%2029.1228%2046.4296%2028.818%2046.1249%2028.443C45.9374%2028.232%2045.7734%2027.9976%2045.6562%2027.6928C45.5156%2027.4115%2045.4453%2027.1067%2045.3749%2026.802L41.8594%2027.7866C42.0937%2028.7008%2042.4453%2029.4979%2042.8906%2030.2011C43.3594%2030.9044%2043.8984%2031.467%2044.5546%2031.9359C45.1406%2032.311%2045.7734%2032.5923%2046.4765%2032.8032C47.1796%2033.0142%2047.953%2033.108%2048.7499%2033.108C49.5468%2033.108%2050.742%2032.9439%2051.5389%2032.6626C52.3592%2032.3578%2053.0623%2031.9124%2053.6483%2031.3029C54.1873%2030.7169%2054.6092%2030.0136%2054.9139%2029.1931C55.2185%2028.3726%2055.3592%2027.4349%2055.3592%2026.3566C55.3592%2025.2782%2055.1951%2024.2702%2054.8435%2023.4966C54.492%2022.723%2053.9764%2022.0666%2053.2498%2021.5275C52.5233%2020.9883%2051.5858%2020.496%2050.3905%2020.0506L48.4218%2019.3239C47.6952%2019.0426%2047.1327%2018.7612%2046.7577%2018.4799C46.3593%2018.1752%2046.1015%2017.8704%2045.9609%2017.5188C45.8203%2017.1672%2045.7499%2016.7686%2045.7499%2016.2998C45.7499%2015.8309%2045.7968%2015.4324%2045.914%2015.0808C46.0077%2014.7292%2046.1718%2014.4478%2046.3593%2014.19Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M67.5233%2026.4504C67.5233%2027.1536%2067.4295%2027.7631%2067.242%2028.232C67.0545%2028.7008%2066.7499%2029.0525%2066.3046%2029.3103C65.8593%2029.5682%2065.2733%2029.6854%2064.5468%2029.6854C63.8202%2029.6854%2063.2109%2029.5682%2062.7656%2029.3103C62.3202%2029.0525%2062.0156%2028.7008%2061.8281%2028.232C61.6406%2027.7631%2061.5468%2027.1771%2061.5468%2026.4504V10.1579H57.8672V26.3332C57.8672%2027.6694%2058.1016%2028.8415%2058.5703%2029.8495C59.039%2030.8575%2059.7656%2031.6546%2060.75%2032.2406C61.7343%2032.8267%2063.0234%2033.108%2064.5702%2033.108C66.1171%2033.108%2067.3592%2032.8267%2068.367%2032.2406C69.3748%2031.6546%2070.1014%2030.8575%2070.5467%2029.8261C70.992%2028.7946%2071.2264%2027.6459%2071.2264%2026.3332V10.1579H67.5467V26.4504H67.5233Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M83.7186%2010.9549C82.7811%2010.4158%2081.5858%2010.1579%2080.1562%2010.1579H74.0859V32.8033H77.7656V24.9032H80.1093C81.5624%2024.9032%2082.7577%2024.6453%2083.6952%2024.1296C84.6327%2023.6138%2085.3358%2022.8168%2085.8045%2021.7385C86.2732%2020.6601%2086.5076%2019.2536%2086.5076%2017.5423C86.5076%2015.831%2086.2732%2014.4479%2085.8045%2013.3695C85.3358%2012.2912%2084.6327%2011.4941%2083.6952%2010.9549H83.7186ZM82.4999%2019.9099C82.2889%2020.4726%2081.9843%2020.8711%2081.5858%2021.1289C81.1874%2021.3868%2080.6718%2021.504%2080.0155%2021.504H77.7421V13.6274H80.0155C80.6718%2013.6274%2081.1874%2013.7446%2081.5858%2014.0025C81.9843%2014.2603%2082.2889%2014.6588%2082.4999%2015.2215C82.7108%2015.7841%2082.8046%2016.5577%2082.8046%2017.5423C82.8046%2018.5268%2082.7108%2019.3473%2082.4999%2019.9099Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M88.5938%2032.8267H99.7029V29.3807H92.2734V23.0043H98.4608V19.5817H92.2734V13.6274H99.7029V10.1813H88.5938V32.8267Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M111.797%2023.356C112.711%2022.8402%20113.437%2022.0666%20113.953%2021.0352C114.469%2020.0037%20114.726%2018.7144%20114.726%2017.1672C114.726%2015.62%20114.492%2014.2134%20114.023%2013.2054C113.555%2012.1739%20112.851%2011.4238%20111.961%2010.9315C111.047%2010.4392%20109.922%2010.2048%20108.586%2010.2048H102.023V32.8501H105.703V24.153H108.258L111.094%2032.8501H115.078L111.75%2023.4028C111.75%2023.4028%20111.797%2023.4028%20111.82%2023.3794L111.797%2023.356ZM105.68%2013.6274H108.422C108.961%2013.6274%20109.406%2013.7211%20109.805%2013.9321C110.18%2014.1431%20110.484%2014.4947%20110.695%2015.0105C110.906%2015.5028%20111%2016.2295%20111%2017.1437C111%2018.058%20110.906%2018.8081%20110.695%2019.3239C110.484%2019.8396%20110.203%2020.1912%20109.828%2020.4022C109.453%2020.6132%20109.008%2020.707%20108.469%2020.707H105.703V13.6508L105.68%2013.6274Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M132.234%2027.3412L129.047%2010.1813H125.508L122.344%2027.2474L119.086%2010.1813H115.148L120.328%2032.8267H124.148L127.289%2017.6595L130.406%2032.8267H134.226L139.382%2010.1813H135.492L132.234%2027.3412Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M144.773%2010.1813H141.094V32.8267H144.773V10.1813Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M151.851%2014.19C152.109%2013.9087%20152.414%2013.6977%20152.766%2013.557C153.117%2013.4164%20153.539%2013.3461%20154.008%2013.3461C154.476%2013.3461%20155.109%2013.4398%20155.578%2013.6508C156.047%2013.8618%20156.422%2014.1665%20156.726%2014.5416C156.89%2014.7526%20157.055%2014.987%20157.172%2015.2683C157.312%2015.5496%20157.406%2015.8309%20157.453%2016.1357L160.922%2015.0574C160.664%2014.1431%20160.312%2013.3695%20159.867%2012.7131C159.422%2012.0567%20158.883%2011.4941%20158.25%2011.0487C157.687%2010.6502%20157.055%2010.3689%20156.328%2010.1813C155.625%209.99379%20154.851%209.90002%20154.055%209.90002C153.258%209.90002%20152.086%2010.0407%20151.266%2010.3454C150.469%2010.6502%20149.766%2011.0956%20149.203%2011.6816C148.617%2012.2443%20148.195%2012.9241%20147.914%2013.7211C147.633%2014.5182%20147.492%2015.4324%20147.492%2016.4405C147.492%2017.4485%20147.656%2018.5034%20148.008%2019.277C148.359%2020.0506%20148.875%2020.707%20149.578%2021.2461C150.281%2021.7853%20151.195%2022.2776%20152.344%2022.6761L154.336%2023.4028C155.062%2023.6842%20155.648%2023.9655%20156.047%2024.2702C156.445%2024.5515%20156.726%2024.8797%20156.89%2025.2314C157.055%2025.583%20157.125%2026.0284%20157.125%2026.5676C157.125%2027.1067%20157.078%2027.4818%20156.961%2027.8335C156.867%2028.1851%20156.68%2028.4899%20156.469%2028.7712C156.234%2029.0759%20155.93%2029.2869%20155.555%2029.4275C155.203%2029.5682%20154.781%2029.6385%20154.312%2029.6385C153.844%2029.6385%20153.211%2029.5448%20152.766%2029.3338C152.297%2029.1228%20151.922%2028.818%20151.617%2028.443C151.43%2028.232%20151.266%2027.9976%20151.148%2027.6928C151.008%2027.4115%20150.914%2027.1067%20150.867%2026.802L147.352%2027.7866C147.586%2028.7008%20147.937%2029.4979%20148.383%2030.2011C148.852%2030.9044%20149.391%2031.467%20150.047%2031.9359C150.633%2032.311%20151.266%2032.5923%20151.969%2032.8032C152.672%2033.0142%20153.445%2033.108%20154.242%2033.108C155.039%2033.108%20156.234%2032.9439%20157.031%2032.6626C157.851%2032.3578%20158.555%2031.9124%20159.14%2031.3029C159.68%2030.7169%20160.101%2030.0136%20160.406%2029.1931C160.711%2028.3726%20160.851%2027.4349%20160.851%2026.3566C160.851%2025.2782%20160.687%2024.2702%20160.336%2023.4966C159.984%2022.723%20159.469%2022.0666%20158.742%2021.5275C158.015%2020.9883%20157.078%2020.496%20155.883%2020.0506L153.914%2019.3239C153.187%2019.0426%20152.625%2018.7612%20152.25%2018.4799C151.852%2018.1752%20151.594%2017.8704%20151.453%2017.5188C151.312%2017.1672%20151.242%2016.7686%20151.242%2016.2998C151.242%2015.8309%20151.289%2015.4324%20151.406%2015.0808C151.5%2014.7292%20151.664%2014.4478%20151.851%2014.19Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M174.633%2013.6274V10.1813H163.5V32.8267H174.633V29.3807H167.18V23.0043H173.367V19.5817H167.18V13.6274H174.633Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M179.316%2011.0956V10.1345H183.512V11.0956H181.918V15.8075H180.91V11.0956H179.316Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M184.168%2010.1345H185.41L186.676%2013.9321L187.941%2010.1345H189.184V15.8075H188.269V11.8223L187.098%2015.1511H186.254L185.082%2011.9161V15.831H184.168V10.1579V10.1345Z'%20fill='black'%3e%3c/path%3e%3c/svg%3e";
|
|
1036
|
-
let
|
|
1037
|
-
function
|
|
1038
|
-
const p =
|
|
1039
|
-
p.current || (p.current = `clip0_avatar_${++
|
|
1037
|
+
}`, ze = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='42'%20viewBox='0%200%20190%2042'%20fill='none'%3e%3cpath%20d='M17.2253%2014.2603C17.155%2014.0259%2016.9441%2013.8618%2016.7097%2013.8618H14.6472C14.3894%2013.8618%2014.1785%2014.0259%2014.1316%2014.2603L10.7801%2027.5053C10.7332%2027.6694%2010.7801%2027.8335%2010.8739%2027.9741C10.9676%2028.1148%2011.1317%2028.1851%2011.2957%2028.1851H12.9363C13.1941%2028.1851%2013.4051%2027.9976%2013.4754%2027.7631L14.0613%2025.0673H17.3191L17.905%2027.7631C17.9519%2028.021%2018.1862%2028.1851%2018.444%2028.1851H20.0846C20.2487%2028.1851%2020.4128%2028.1148%2020.5065%2027.9741C20.6003%2027.8335%2020.6471%2027.6694%2020.6003%2027.5053L17.2488%2014.2603H17.2253ZM14.5769%2022.5824L15.655%2017.636L16.7566%2022.5824H14.5769Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M23.8359%2013.8618H22.2656C21.9609%2013.8618%2021.7266%2014.0962%2021.7266%2014.401V27.6459C21.7266%2027.9507%2021.9609%2028.1851%2022.2656%2028.1851H23.8359C24.1406%2028.1851%2024.375%2027.9507%2024.375%2027.6459V14.401C24.375%2014.0962%2024.1406%2013.8618%2023.8359%2013.8618ZM22.2891%2014.0493C22.2422%2014.0493%2022.1953%2014.0493%2022.1484%2014.0728C22.1953%2014.0728%2022.2422%2014.0493%2022.2891%2014.0493Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M36.1401%2029.4041L36.0932%2012.5256C36.0932%2011.3066%2035.4369%2010.1579%2034.3588%209.5484L19.7341%201.15601C18.6794%200.546507%2017.3669%200.546507%2016.2888%201.15601L1.71091%209.61872C0.65624%2010.2282%200%2011.3769%200%2012.5959L0.046874%2029.4744C0.046874%2030.6934%200.703114%2031.8421%201.78122%2032.4516L16.406%2040.844C17.4607%2041.4535%2018.7731%2041.4535%2019.8513%2040.844L34.4291%2032.3813C35.4838%2031.7718%2036.1401%2030.6231%2036.1401%2029.4041ZM11.9998%2031.5608C6.16397%2028.1851%204.17181%2020.7539%207.54676%2014.9167C10.8983%209.07955%2018.3513%207.08694%2024.1871%2010.4626C30.023%2013.8149%2032.0151%2021.2696%2028.6402%2027.1068C25.2887%2032.9439%2017.8357%2034.9365%2011.9998%2031.5608Z'%20fill='%23FF0000'%3e%3c/path%3e%3cpath%20d='M46.3593%2014.19C46.6171%2013.9087%2046.9218%2013.6977%2047.2734%2013.557C47.6249%2013.4164%2048.0468%2013.3461%2048.5155%2013.3461C48.9843%2013.3461%2049.6171%2013.4398%2050.0858%2013.6508C50.5546%2013.8618%2050.9295%2014.1665%2051.2342%2014.5416C51.3983%2014.7526%2051.5623%2014.987%2051.6795%2015.2683C51.8202%2015.5496%2051.9139%2015.8309%2051.9608%2016.1357L55.4295%2015.0574C55.1717%2014.1431%2054.8201%2013.3695%2054.3748%2012.7131C53.9295%2012.0567%2053.3904%2011.4941%2052.7576%2011.0487C52.1952%2010.6502%2051.5623%2010.3689%2050.8358%2010.1813C50.1327%209.99379%2049.3593%209.90002%2048.5624%209.90002C47.7655%209.90002%2046.5937%2010.0407%2045.7734%2010.3454C44.9765%2010.6502%2044.2734%2011.0956%2043.7109%2011.6816C43.125%2012.2443%2042.7031%2012.9241%2042.4219%2013.7211C42.1406%2014.5182%2042%2015.4324%2042%2016.4405C42%2017.4485%2042.1641%2018.5034%2042.5156%2019.277C42.8672%2020.0506%2043.3828%2020.707%2044.0859%2021.2461C44.789%2021.7853%2045.7031%2022.2776%2046.8515%2022.6761L48.8436%2023.4028C49.5702%2023.6842%2050.1561%2023.9655%2050.5546%2024.2702C50.953%2024.5515%2051.2342%2024.8797%2051.3983%2025.2314C51.5623%2025.583%2051.6327%2026.0284%2051.6327%2026.5676C51.6327%2027.1067%2051.5858%2027.4818%2051.4686%2027.8335C51.3749%2028.1851%2051.1874%2028.4899%2050.9764%2028.7712C50.742%2029.0759%2050.4374%2029.2869%2050.0624%2029.4275C49.7108%2029.5682%2049.2889%2029.6385%2048.8202%2029.6385C48.3515%2029.6385%2047.7187%2029.5448%2047.2734%2029.3338C46.8046%2029.1228%2046.4296%2028.818%2046.1249%2028.443C45.9374%2028.232%2045.7734%2027.9976%2045.6562%2027.6928C45.5156%2027.4115%2045.4453%2027.1067%2045.3749%2026.802L41.8594%2027.7866C42.0937%2028.7008%2042.4453%2029.4979%2042.8906%2030.2011C43.3594%2030.9044%2043.8984%2031.467%2044.5546%2031.9359C45.1406%2032.311%2045.7734%2032.5923%2046.4765%2032.8032C47.1796%2033.0142%2047.953%2033.108%2048.7499%2033.108C49.5468%2033.108%2050.742%2032.9439%2051.5389%2032.6626C52.3592%2032.3578%2053.0623%2031.9124%2053.6483%2031.3029C54.1873%2030.7169%2054.6092%2030.0136%2054.9139%2029.1931C55.2185%2028.3726%2055.3592%2027.4349%2055.3592%2026.3566C55.3592%2025.2782%2055.1951%2024.2702%2054.8435%2023.4966C54.492%2022.723%2053.9764%2022.0666%2053.2498%2021.5275C52.5233%2020.9883%2051.5858%2020.496%2050.3905%2020.0506L48.4218%2019.3239C47.6952%2019.0426%2047.1327%2018.7612%2046.7577%2018.4799C46.3593%2018.1752%2046.1015%2017.8704%2045.9609%2017.5188C45.8203%2017.1672%2045.7499%2016.7686%2045.7499%2016.2998C45.7499%2015.8309%2045.7968%2015.4324%2045.914%2015.0808C46.0077%2014.7292%2046.1718%2014.4478%2046.3593%2014.19Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M67.5233%2026.4504C67.5233%2027.1536%2067.4295%2027.7631%2067.242%2028.232C67.0545%2028.7008%2066.7499%2029.0525%2066.3046%2029.3103C65.8593%2029.5682%2065.2733%2029.6854%2064.5468%2029.6854C63.8202%2029.6854%2063.2109%2029.5682%2062.7656%2029.3103C62.3202%2029.0525%2062.0156%2028.7008%2061.8281%2028.232C61.6406%2027.7631%2061.5468%2027.1771%2061.5468%2026.4504V10.1579H57.8672V26.3332C57.8672%2027.6694%2058.1016%2028.8415%2058.5703%2029.8495C59.039%2030.8575%2059.7656%2031.6546%2060.75%2032.2406C61.7343%2032.8267%2063.0234%2033.108%2064.5702%2033.108C66.1171%2033.108%2067.3592%2032.8267%2068.367%2032.2406C69.3748%2031.6546%2070.1014%2030.8575%2070.5467%2029.8261C70.992%2028.7946%2071.2264%2027.6459%2071.2264%2026.3332V10.1579H67.5467V26.4504H67.5233Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M83.7186%2010.9549C82.7811%2010.4158%2081.5858%2010.1579%2080.1562%2010.1579H74.0859V32.8033H77.7656V24.9032H80.1093C81.5624%2024.9032%2082.7577%2024.6453%2083.6952%2024.1296C84.6327%2023.6138%2085.3358%2022.8168%2085.8045%2021.7385C86.2732%2020.6601%2086.5076%2019.2536%2086.5076%2017.5423C86.5076%2015.831%2086.2732%2014.4479%2085.8045%2013.3695C85.3358%2012.2912%2084.6327%2011.4941%2083.6952%2010.9549H83.7186ZM82.4999%2019.9099C82.2889%2020.4726%2081.9843%2020.8711%2081.5858%2021.1289C81.1874%2021.3868%2080.6718%2021.504%2080.0155%2021.504H77.7421V13.6274H80.0155C80.6718%2013.6274%2081.1874%2013.7446%2081.5858%2014.0025C81.9843%2014.2603%2082.2889%2014.6588%2082.4999%2015.2215C82.7108%2015.7841%2082.8046%2016.5577%2082.8046%2017.5423C82.8046%2018.5268%2082.7108%2019.3473%2082.4999%2019.9099Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M88.5938%2032.8267H99.7029V29.3807H92.2734V23.0043H98.4608V19.5817H92.2734V13.6274H99.7029V10.1813H88.5938V32.8267Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M111.797%2023.356C112.711%2022.8402%20113.437%2022.0666%20113.953%2021.0352C114.469%2020.0037%20114.726%2018.7144%20114.726%2017.1672C114.726%2015.62%20114.492%2014.2134%20114.023%2013.2054C113.555%2012.1739%20112.851%2011.4238%20111.961%2010.9315C111.047%2010.4392%20109.922%2010.2048%20108.586%2010.2048H102.023V32.8501H105.703V24.153H108.258L111.094%2032.8501H115.078L111.75%2023.4028C111.75%2023.4028%20111.797%2023.4028%20111.82%2023.3794L111.797%2023.356ZM105.68%2013.6274H108.422C108.961%2013.6274%20109.406%2013.7211%20109.805%2013.9321C110.18%2014.1431%20110.484%2014.4947%20110.695%2015.0105C110.906%2015.5028%20111%2016.2295%20111%2017.1437C111%2018.058%20110.906%2018.8081%20110.695%2019.3239C110.484%2019.8396%20110.203%2020.1912%20109.828%2020.4022C109.453%2020.6132%20109.008%2020.707%20108.469%2020.707H105.703V13.6508L105.68%2013.6274Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M132.234%2027.3412L129.047%2010.1813H125.508L122.344%2027.2474L119.086%2010.1813H115.148L120.328%2032.8267H124.148L127.289%2017.6595L130.406%2032.8267H134.226L139.382%2010.1813H135.492L132.234%2027.3412Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M144.773%2010.1813H141.094V32.8267H144.773V10.1813Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M151.851%2014.19C152.109%2013.9087%20152.414%2013.6977%20152.766%2013.557C153.117%2013.4164%20153.539%2013.3461%20154.008%2013.3461C154.476%2013.3461%20155.109%2013.4398%20155.578%2013.6508C156.047%2013.8618%20156.422%2014.1665%20156.726%2014.5416C156.89%2014.7526%20157.055%2014.987%20157.172%2015.2683C157.312%2015.5496%20157.406%2015.8309%20157.453%2016.1357L160.922%2015.0574C160.664%2014.1431%20160.312%2013.3695%20159.867%2012.7131C159.422%2012.0567%20158.883%2011.4941%20158.25%2011.0487C157.687%2010.6502%20157.055%2010.3689%20156.328%2010.1813C155.625%209.99379%20154.851%209.90002%20154.055%209.90002C153.258%209.90002%20152.086%2010.0407%20151.266%2010.3454C150.469%2010.6502%20149.766%2011.0956%20149.203%2011.6816C148.617%2012.2443%20148.195%2012.9241%20147.914%2013.7211C147.633%2014.5182%20147.492%2015.4324%20147.492%2016.4405C147.492%2017.4485%20147.656%2018.5034%20148.008%2019.277C148.359%2020.0506%20148.875%2020.707%20149.578%2021.2461C150.281%2021.7853%20151.195%2022.2776%20152.344%2022.6761L154.336%2023.4028C155.062%2023.6842%20155.648%2023.9655%20156.047%2024.2702C156.445%2024.5515%20156.726%2024.8797%20156.89%2025.2314C157.055%2025.583%20157.125%2026.0284%20157.125%2026.5676C157.125%2027.1067%20157.078%2027.4818%20156.961%2027.8335C156.867%2028.1851%20156.68%2028.4899%20156.469%2028.7712C156.234%2029.0759%20155.93%2029.2869%20155.555%2029.4275C155.203%2029.5682%20154.781%2029.6385%20154.312%2029.6385C153.844%2029.6385%20153.211%2029.5448%20152.766%2029.3338C152.297%2029.1228%20151.922%2028.818%20151.617%2028.443C151.43%2028.232%20151.266%2027.9976%20151.148%2027.6928C151.008%2027.4115%20150.914%2027.1067%20150.867%2026.802L147.352%2027.7866C147.586%2028.7008%20147.937%2029.4979%20148.383%2030.2011C148.852%2030.9044%20149.391%2031.467%20150.047%2031.9359C150.633%2032.311%20151.266%2032.5923%20151.969%2032.8032C152.672%2033.0142%20153.445%2033.108%20154.242%2033.108C155.039%2033.108%20156.234%2032.9439%20157.031%2032.6626C157.851%2032.3578%20158.555%2031.9124%20159.14%2031.3029C159.68%2030.7169%20160.101%2030.0136%20160.406%2029.1931C160.711%2028.3726%20160.851%2027.4349%20160.851%2026.3566C160.851%2025.2782%20160.687%2024.2702%20160.336%2023.4966C159.984%2022.723%20159.469%2022.0666%20158.742%2021.5275C158.015%2020.9883%20157.078%2020.496%20155.883%2020.0506L153.914%2019.3239C153.187%2019.0426%20152.625%2018.7612%20152.25%2018.4799C151.852%2018.1752%20151.594%2017.8704%20151.453%2017.5188C151.312%2017.1672%20151.242%2016.7686%20151.242%2016.2998C151.242%2015.8309%20151.289%2015.4324%20151.406%2015.0808C151.5%2014.7292%20151.664%2014.4478%20151.851%2014.19Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M174.633%2013.6274V10.1813H163.5V32.8267H174.633V29.3807H167.18V23.0043H173.367V19.5817H167.18V13.6274H174.633Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M179.316%2011.0956V10.1345H183.512V11.0956H181.918V15.8075H180.91V11.0956H179.316Z'%20fill='black'%3e%3c/path%3e%3cpath%20d='M184.168%2010.1345H185.41L186.676%2013.9321L187.941%2010.1345H189.184V15.8075H188.269V11.8223L187.098%2015.1511H186.254L185.082%2011.9161V15.831H184.168V10.1579V10.1345Z'%20fill='black'%3e%3c/path%3e%3c/svg%3e";
|
|
1038
|
+
let De = 0;
|
|
1039
|
+
function Se({ width: r = 20, height: n = 20, style: s }) {
|
|
1040
|
+
const p = q(null);
|
|
1041
|
+
p.current || (p.current = `clip0_avatar_${++De}`);
|
|
1040
1042
|
const l = p.current;
|
|
1041
1043
|
return /* @__PURE__ */ e.jsxs("svg", { width: r, height: n, viewBox: "0 0 155 174", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: s, "aria-hidden": !0, children: [
|
|
1042
1044
|
/* @__PURE__ */ e.jsxs("g", { clipPath: `url(#${l})`, children: [
|
|
@@ -1047,7 +1049,7 @@ function Ee({ width: r = 20, height: n = 20, style: s }) {
|
|
|
1047
1049
|
/* @__PURE__ */ e.jsx("defs", { children: /* @__PURE__ */ e.jsx("clipPath", { id: l, children: /* @__PURE__ */ e.jsx("rect", { width: "154.17", height: "173.268", fill: "white" }) }) })
|
|
1048
1050
|
] });
|
|
1049
1051
|
}
|
|
1050
|
-
function
|
|
1052
|
+
function Oe({ width: r, height: n = 20, style: s }) {
|
|
1051
1053
|
const p = r ?? 4.6875 * n;
|
|
1052
1054
|
return /* @__PURE__ */ e.jsxs("svg", { width: p, height: n, viewBox: "0 0 75 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: s, "aria-hidden": !0, children: [
|
|
1053
1055
|
/* @__PURE__ */ e.jsx("path", { d: "M6.82917 5.34411C6.8013 5.25174 6.71768 5.18707 6.62476 5.18707H5.80712C5.70492 5.18707 5.62129 5.25174 5.60271 5.34411L4.27404 10.5635C4.25546 10.6282 4.27404 10.6928 4.31121 10.7483C4.34838 10.8037 4.41341 10.8314 4.47845 10.8314H5.12885C5.23106 10.8314 5.31468 10.7575 5.34255 10.6651L5.57484 9.60278H6.86634L7.09862 10.6651C7.11721 10.7667 7.21012 10.8314 7.31232 10.8314H7.96272C8.02776 10.8314 8.0928 10.8037 8.12997 10.7483C8.16713 10.6928 8.18571 10.6282 8.16713 10.5635L6.83846 5.34411H6.82917ZM5.77925 8.62356L6.20665 6.67437L6.64335 8.62356H5.77925Z", fill: "white" }),
|
|
@@ -1066,81 +1068,81 @@ function ze({ width: r, height: n = 20, style: s }) {
|
|
|
1066
1068
|
/* @__PURE__ */ e.jsx("path", { d: "M73.0116 3.71826H73.5041L74.0058 5.2148L74.5075 3.71826H75V5.95383H74.6376V4.38339L74.173 5.69517H73.8386L73.374 4.42034V5.96306H73.0116V3.7275V3.71826Z", fill: "white" })
|
|
1067
1069
|
] });
|
|
1068
1070
|
}
|
|
1069
|
-
const
|
|
1070
|
-
function
|
|
1071
|
-
if (typeof document > "u" || document.getElementById(
|
|
1071
|
+
const ve = "superwise-chatbot-package-css";
|
|
1072
|
+
function Ne() {
|
|
1073
|
+
if (typeof document > "u" || document.getElementById(ve)) return;
|
|
1072
1074
|
const r = document.createElement("style");
|
|
1073
|
-
r.id =
|
|
1075
|
+
r.id = ve, r.textContent = Fe, document.head.appendChild(r);
|
|
1074
1076
|
}
|
|
1075
|
-
|
|
1076
|
-
function
|
|
1077
|
+
Ne();
|
|
1078
|
+
function Ue(r) {
|
|
1077
1079
|
return r === "human" ? { ...m.message, ...m.messageSelf } : { ...m.message, ...m.messageOther };
|
|
1078
1080
|
}
|
|
1079
|
-
function
|
|
1081
|
+
function we(r) {
|
|
1080
1082
|
return String(r).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
1081
1083
|
}
|
|
1082
|
-
function
|
|
1084
|
+
function he(r) {
|
|
1083
1085
|
return !r.trim() || /\[text\]|\[\/text\]|\]\[text\]/i.test(r) || /\?|!/.test(r) || r.includes("—") || r.includes("–") || /^\s*(Would|Can|May|Could|Should|I |You |We |Let's|Please|Sure|Yes|No)\b/i.test(r) || /\b(your|you|we|me)\b/i.test(r) || /^\s*[A-Z][^.(]*[.?]\s*$/.test(r) || /^\s*#/.test(r) || /^\s*[-*]\s+[A-Z]/.test(r) && !/\.\w+\s*\(|=/.test(r) || /^\s*\d+\.\s+[A-Z][^.(]*$/.test(r) ? !1 : !!(/^\s*[)\]}]\s*$/.test(r) || /^\s*[\w.]+\s*=/.test(r) || /\.\w+\s*\(|\b(print|range|open|str|int|list|dict)\s*\(/.test(r) || /^\s*(def|class|import|from|return|if|else|elif|for|while|try|except|with|async)\b/.test(r) || /^\s{2,}/.test(r) && /[=(){}\[\],:]/.test(r) || /[,(]\s*$|:\s*$/.test(r) || /["'][^"']*["']\s*[:=]/.test(r) && r.length > 10 || /\b\w+\s*\([^)]*\)\s*$/.test(r) && /[=.]\w+\s*\(|import|from\s+\w+/.test(r));
|
|
1084
1086
|
}
|
|
1085
|
-
function
|
|
1087
|
+
function Ze(r) {
|
|
1086
1088
|
const n = [], s = r.split(`
|
|
1087
1089
|
`), p = [];
|
|
1088
1090
|
let l = 0;
|
|
1089
1091
|
for (; l < s.length; ) {
|
|
1090
1092
|
const a = s[l];
|
|
1091
|
-
if (!
|
|
1093
|
+
if (!he(a)) {
|
|
1092
1094
|
p.push(a), l++;
|
|
1093
1095
|
continue;
|
|
1094
1096
|
}
|
|
1095
1097
|
const d = [];
|
|
1096
1098
|
for (; l < s.length; ) {
|
|
1097
|
-
const i =
|
|
1098
|
-
if (i || C && d.length > 0 &&
|
|
1099
|
+
const i = he(s[l]), C = s[l].trim() === "", y = l + 1 < s.length && he(s[l + 1]);
|
|
1100
|
+
if (i || C && d.length > 0 && y)
|
|
1099
1101
|
d.push(s[l]), l++;
|
|
1100
1102
|
else break;
|
|
1101
1103
|
}
|
|
1102
1104
|
if (d.length >= 2) {
|
|
1103
1105
|
const i = n.length, C = d.join(`
|
|
1104
|
-
`).trim(),
|
|
1105
|
-
n.push({ placeholder: `\0CODE_RAW_${i}\0`, html: `<pre class="sw-ttyw-code-block"><code>${
|
|
1106
|
+
`).trim(), y = we(C);
|
|
1107
|
+
n.push({ placeholder: `\0CODE_RAW_${i}\0`, html: `<pre class="sw-ttyw-code-block"><code>${y}</code></pre>` }), p.push(`\0CODE_RAW_${i}\0`);
|
|
1106
1108
|
} else d.length === 1 && p.push(d[0]);
|
|
1107
1109
|
}
|
|
1108
1110
|
return { html: p.join(`
|
|
1109
1111
|
`), codeBlocks: n };
|
|
1110
1112
|
}
|
|
1111
|
-
function
|
|
1113
|
+
function je(r) {
|
|
1112
1114
|
if (!r) return "";
|
|
1113
1115
|
let n = String(r);
|
|
1114
1116
|
const s = [];
|
|
1115
1117
|
n = n.replace(/```\s*(\w*)\s*\n?([\s\S]*?)```/g, (a, d, i) => {
|
|
1116
|
-
const C = s.length,
|
|
1117
|
-
return s.push(`<pre class="sw-ttyw-code-block"><code class="${d ? `language-${d}` : ""}">${
|
|
1118
|
+
const C = s.length, y = we(i.trim());
|
|
1119
|
+
return s.push(`<pre class="sw-ttyw-code-block"><code class="${d ? `language-${d}` : ""}">${y}</code></pre>`), `\0CODE_FENCED_${C}\0`;
|
|
1118
1120
|
}), n = n.replace(/\[code\]([\s\S]*?)\[\/code\]/gi, (a, d) => {
|
|
1119
|
-
const i = s.length, C =
|
|
1121
|
+
const i = s.length, C = we(d.trim());
|
|
1120
1122
|
return s.push(`<pre class="sw-ttyw-code-block"><code>${C}</code></pre>`), `\0CODE_FENCED_${i}\0`;
|
|
1121
1123
|
});
|
|
1122
|
-
const { html: p, codeBlocks: l } =
|
|
1124
|
+
const { html: p, codeBlocks: l } = Ze(n);
|
|
1123
1125
|
return n = p, n = n.replace(/\[text\]([\s\S]*?)(?:\[\/text\]|\]\[text\])/gi, '<span class="sw-ttyw-text-block">$1</span>').replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>').replace(/(https?:\/\/[^\s<]+)/g, '<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>').replace(/\[([^[\]]+)\]/g, '<span class="sw-ttyw-bracket-label">$1</span>').replace(/^### (.*$)/gim, "<h3>$1</h3>").replace(/^## (.*$)/gim, "<h2>$1</h2>").replace(/^# (.*$)/gim, "<h1>$1</h1>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/`([^`]+)`/g, "<code>$1</code>").replace(/^\s*\* (.*$)/gim, "<li>$1</li>").replace(/^\s*- (.*$)/gim, "<li>$1</li>").replace(/^\s*\d+\. (.*$)/gim, "<li>$1</li>").replace(/\n/g, "<br>"), n = n.replace(/((?:<li>.*?<\/li>(?:<br>)?)+)/g, "<ul>$1</ul>"), s.forEach((a, d) => {
|
|
1124
1126
|
n = n.replace(`\0CODE_FENCED_${d}\0`, a);
|
|
1125
1127
|
}), l.forEach(({ placeholder: a, html: d }) => {
|
|
1126
1128
|
n = n.replace(a, d);
|
|
1127
1129
|
}), n;
|
|
1128
1130
|
}
|
|
1129
|
-
const
|
|
1130
|
-
const [l, a] = L(""), [d, i] = L(!1), C =
|
|
1131
|
-
|
|
1131
|
+
const Be = 30, Ye = 300, qe = Ee(function({ text: n, speed: s = 20, onComplete: p }) {
|
|
1132
|
+
const [l, a] = L(""), [d, i] = L(!1), C = q(p);
|
|
1133
|
+
W(() => {
|
|
1132
1134
|
C.current = p;
|
|
1133
|
-
}, [p]),
|
|
1135
|
+
}, [p]), W(() => {
|
|
1134
1136
|
if (!n) return;
|
|
1135
1137
|
a(""), i(!1);
|
|
1136
|
-
const w = n.trim().split(/\s+/), v = Math.min(
|
|
1138
|
+
const w = n.trim().split(/\s+/), v = Math.min(Be, w.length), j = w.slice(0, v).join(" "), E = Math.min(j.length, Ye, n.length);
|
|
1137
1139
|
let h = 0;
|
|
1138
1140
|
const f = setInterval(() => {
|
|
1139
1141
|
h < E ? (a(n.slice(0, h + 1)), h++) : (a(n), i(!0), clearInterval(f), C.current && C.current());
|
|
1140
1142
|
}, s);
|
|
1141
1143
|
return () => clearInterval(f);
|
|
1142
1144
|
}, [n, s]);
|
|
1143
|
-
const
|
|
1145
|
+
const y = (w) => w.replace(/(https?:\/\/[^\s<]+)/g, '<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>').replace(/\[([^[\]]+)\]/g, "$1").replace(/\[bold\](.*?)\[\/bold\]/g, "<strong>$1</strong>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/(?:^|\n)-\s+/g, `
|
|
1144
1146
|
• `).replace(/\n/g, "<br/>").replace(/(\d+\.\s)/g, "<br/>$1").replace(/(\*\s)/g, "<br/>$1");
|
|
1145
1147
|
return /* @__PURE__ */ e.jsx(
|
|
1146
1148
|
"div",
|
|
@@ -1151,18 +1153,18 @@ const Ue = 30, Ze = 300, Be = ve(function({ text: n, speed: s = 20, onComplete:
|
|
|
1151
1153
|
wordBreak: "break-word"
|
|
1152
1154
|
},
|
|
1153
1155
|
dangerouslySetInnerHTML: {
|
|
1154
|
-
__html: d ?
|
|
1156
|
+
__html: d ? je(l) : y(l) + '<span class="typing-cursor">|</span>'
|
|
1155
1157
|
}
|
|
1156
1158
|
}
|
|
1157
1159
|
);
|
|
1158
|
-
}),
|
|
1160
|
+
}), Ge = Ee(function({ msg: n, isTyping: s = !1, onTypingComplete: p }) {
|
|
1159
1161
|
const l = n.from === "human" ? "sw-ttyw-message self" : "sw-ttyw-message other";
|
|
1160
|
-
return /* @__PURE__ */ e.jsxs("div", { className: l, style:
|
|
1162
|
+
return /* @__PURE__ */ e.jsxs("div", { className: l, style: Ue(n.from), children: [
|
|
1161
1163
|
/* @__PURE__ */ e.jsx("div", { className: "message-avatar", style: m.messageAvatar, children: n.from === "human" ? /* @__PURE__ */ e.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "black", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1162
1164
|
/* @__PURE__ */ e.jsx("path", { d: "M20 21V19C20 17.9391 19.5786 16.9217 18.8284 16.1716C18.0783 15.4214 17.0609 15 16 15H8C6.93913 15 5.92172 15.4214 5.17157 16.1716C4.42143 16.9217 4 17.9391 4 19V21", fill: "black" }),
|
|
1163
1165
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4", fill: "black" })
|
|
1164
|
-
] }) : /* @__PURE__ */ e.jsx(
|
|
1165
|
-
/* @__PURE__ */ e.jsx("div", { className: "message-content sw-ttyw-markdown", style: m.messageContent, children: n.from === "ai" && s ? /* @__PURE__ */ e.jsx(
|
|
1166
|
+
] }) : /* @__PURE__ */ e.jsx(Se, { width: 20, height: 20 }) }),
|
|
1167
|
+
/* @__PURE__ */ e.jsx("div", { className: "message-content sw-ttyw-markdown", style: m.messageContent, children: n.from === "ai" && s ? /* @__PURE__ */ e.jsx(qe, { text: n.text, speed: 20, onComplete: p }) : n.from === "ai" ? /* @__PURE__ */ e.jsx(
|
|
1166
1168
|
"div",
|
|
1167
1169
|
{
|
|
1168
1170
|
style: {
|
|
@@ -1170,7 +1172,7 @@ const Ue = 30, Ze = 300, Be = ve(function({ text: n, speed: s = 20, onComplete:
|
|
|
1170
1172
|
lineHeight: "1.5",
|
|
1171
1173
|
wordBreak: "break-word"
|
|
1172
1174
|
},
|
|
1173
|
-
dangerouslySetInnerHTML: { __html:
|
|
1175
|
+
dangerouslySetInnerHTML: { __html: je(n.text) }
|
|
1174
1176
|
}
|
|
1175
1177
|
) : /* @__PURE__ */ e.jsx(
|
|
1176
1178
|
"div",
|
|
@@ -1187,7 +1189,7 @@ const Ue = 30, Ze = 300, Be = ve(function({ text: n, speed: s = 20, onComplete:
|
|
|
1187
1189
|
}
|
|
1188
1190
|
) })
|
|
1189
1191
|
] });
|
|
1190
|
-
}),
|
|
1192
|
+
}), Je = (r = "") => {
|
|
1191
1193
|
const n = (/* @__PURE__ */ new Date()).getHours();
|
|
1192
1194
|
let s = [];
|
|
1193
1195
|
return n >= 5 && n < 12 ? r ? s = [
|
|
@@ -1240,7 +1242,7 @@ const Ue = 30, Ze = 300, Be = ve(function({ text: n, speed: s = 20, onComplete:
|
|
|
1240
1242
|
"🌃 Evening! SUPERWISE expert here. How can I help simplify or explain things for you today?"
|
|
1241
1243
|
], s[Math.floor(Math.random() * s.length)];
|
|
1242
1244
|
};
|
|
1243
|
-
function
|
|
1245
|
+
function Ke({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryColor: p = "", apiUrl: l = "" }) {
|
|
1244
1246
|
const [a, d] = L(() => {
|
|
1245
1247
|
try {
|
|
1246
1248
|
if (typeof window < "u" && window.localStorage) {
|
|
@@ -1259,7 +1261,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1259
1261
|
} catch {
|
|
1260
1262
|
}
|
|
1261
1263
|
return [];
|
|
1262
|
-
}), [
|
|
1264
|
+
}), [y, w] = L(""), [v, j] = L(!1), [E, h] = L(!1), [f, I] = L(!1), [H, T] = L(!1), [O, R] = L(/* @__PURE__ */ new Set()), [ae, ie] = L(!1), [le, ce] = L(!1), [G, _] = L(!1), [M, J] = L(!1), [me, de] = L(""), [$, F] = L(""), te = 12e4, pe = "https://superwise.ai/contact/", N = q(null), U = q(null), c = (() => {
|
|
1263
1265
|
if (p) return p;
|
|
1264
1266
|
if (typeof document < "u" && typeof window < "u") {
|
|
1265
1267
|
const o = document.querySelector("[data-chatbot-color]");
|
|
@@ -1269,104 +1271,120 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1269
1271
|
if (S) return S;
|
|
1270
1272
|
}
|
|
1271
1273
|
return "#000";
|
|
1272
|
-
})(),
|
|
1274
|
+
})(), x = Ce(() => {
|
|
1273
1275
|
if (!i || i.length === 0) return "";
|
|
1274
1276
|
const o = i.find((k) => k.name && k.email);
|
|
1275
1277
|
return o ? `${o.name} (${o.email})` : "";
|
|
1276
|
-
}, [i]), b =
|
|
1277
|
-
|
|
1278
|
-
}, []),
|
|
1279
|
-
u(),
|
|
1280
|
-
}, [
|
|
1281
|
-
|
|
1282
|
-
|
|
1278
|
+
}, [i]), b = q(null), Z = q(null), X = q(a), u = ee(() => {
|
|
1279
|
+
N.current && (clearTimeout(N.current), N.current = null);
|
|
1280
|
+
}, []), P = ee((o) => {
|
|
1281
|
+
u(), N.current = setTimeout(o, te);
|
|
1282
|
+
}, [te, u]), B = Ce(() => a.map((o) => ({ role: o.from, content: o.text })), [a]), K = (o) => {
|
|
1283
|
+
F(o), setTimeout(() => {
|
|
1284
|
+
F("");
|
|
1283
1285
|
}, 4e3);
|
|
1284
|
-
},
|
|
1286
|
+
}, Le = (o) => {
|
|
1285
1287
|
const k = o.length, S = o.trim();
|
|
1286
|
-
return
|
|
1287
|
-
},
|
|
1288
|
+
return de(""), F(""), !S || k === 0 ? (K("Please enter a message before sending."), !1) : new RegExp(/(<([^>]+)>)/gi).test(S) ? (K("Please avoid using HTML tags or scripts in your message."), !1) : S.length < 2 ? (K("Please enter a meaningful question (at least 2 characters)."), !1) : S.length > 1e3 ? (K("Message is too long. Please keep it under 1000 characters."), !1) : (de(""), F(""), !0);
|
|
1289
|
+
}, re = ee((o = "auto") => {
|
|
1288
1290
|
var S;
|
|
1289
|
-
const k =
|
|
1291
|
+
const k = Z.current;
|
|
1290
1292
|
k && (k.scrollTop = k.scrollHeight), (S = b.current) == null || S.scrollIntoView({ behavior: o });
|
|
1291
1293
|
}, []);
|
|
1292
|
-
|
|
1293
|
-
requestAnimationFrame(() =>
|
|
1294
|
-
}, [a,
|
|
1295
|
-
if (!v &&
|
|
1296
|
-
const o = setInterval(() =>
|
|
1294
|
+
W(() => {
|
|
1295
|
+
requestAnimationFrame(() => re("auto"));
|
|
1296
|
+
}, [a, $, G, M, re]), W(() => {
|
|
1297
|
+
if (!v && O.size === 0) return;
|
|
1298
|
+
const o = setInterval(() => re("auto"), 120);
|
|
1297
1299
|
return () => clearInterval(o);
|
|
1298
|
-
}, [v,
|
|
1300
|
+
}, [v, O, re]), W(() => {
|
|
1299
1301
|
try {
|
|
1300
1302
|
typeof window < "u" && window.localStorage && window.localStorage.setItem("chatbot-messages", JSON.stringify(a));
|
|
1301
1303
|
} catch {
|
|
1302
1304
|
}
|
|
1303
|
-
}, [a]),
|
|
1305
|
+
}, [a]), W(() => {
|
|
1304
1306
|
try {
|
|
1305
1307
|
typeof window < "u" && window.localStorage && window.localStorage.setItem("chatbot-mql_df", JSON.stringify(i));
|
|
1306
1308
|
} catch {
|
|
1307
1309
|
}
|
|
1308
|
-
}, [i]),
|
|
1309
|
-
|
|
1310
|
-
}, [a]),
|
|
1311
|
-
if (a.length === 0 && !
|
|
1312
|
-
const k = { from: "ai", text:
|
|
1313
|
-
d([k]),
|
|
1310
|
+
}, [i]), W(() => {
|
|
1311
|
+
X.current = a;
|
|
1312
|
+
}, [a]), W(() => {
|
|
1313
|
+
if (a.length === 0 && !ae) {
|
|
1314
|
+
const k = { from: "ai", text: Je(x) };
|
|
1315
|
+
d([k]), ie(!0), R(/* @__PURE__ */ new Set([0]));
|
|
1314
1316
|
}
|
|
1315
|
-
}, [a.length,
|
|
1316
|
-
const
|
|
1317
|
-
var
|
|
1318
|
-
if (v ||
|
|
1319
|
-
const o =
|
|
1320
|
-
if (!o || !
|
|
1317
|
+
}, [a.length, ae, x]), W(() => () => u(), [u]);
|
|
1318
|
+
const fe = ee(async () => {
|
|
1319
|
+
var xe;
|
|
1320
|
+
if (v || M) return;
|
|
1321
|
+
const o = y.trim();
|
|
1322
|
+
if (!o || !Le(y))
|
|
1321
1323
|
return;
|
|
1322
|
-
|
|
1324
|
+
_(!1), u(), (xe = U.current) == null || xe.abort();
|
|
1323
1325
|
const k = new AbortController();
|
|
1324
|
-
|
|
1325
|
-
const S = k.signal,
|
|
1326
|
-
d(
|
|
1327
|
-
let
|
|
1328
|
-
if (i && i.length > 0 && !
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1326
|
+
U.current = k;
|
|
1327
|
+
const S = k.signal, V = { from: "human", text: o }, z = X.current, He = [...z, V];
|
|
1328
|
+
d(He), w(""), j(!0);
|
|
1329
|
+
let ye = o;
|
|
1330
|
+
if (i && i.length > 0 && !le) {
|
|
1331
|
+
const g = z.filter((Y) => Y.from === "ai").pop();
|
|
1332
|
+
g && g.text && g.text.trim() !== "" && (ye = o + "." + g.text, ce(!0));
|
|
1331
1333
|
}
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
var
|
|
1335
|
-
|
|
1334
|
+
const Re = [...B, { role: "human", content: o }];
|
|
1335
|
+
P(() => {
|
|
1336
|
+
var g;
|
|
1337
|
+
_(!0), (g = U.current) == null || g.abort(), j(!1);
|
|
1336
1338
|
});
|
|
1337
1339
|
try {
|
|
1338
|
-
const
|
|
1339
|
-
if (u(), typeof
|
|
1340
|
-
const
|
|
1341
|
-
d((
|
|
1342
|
-
const
|
|
1343
|
-
return
|
|
1344
|
-
}), (
|
|
1340
|
+
const g = await Te(ye, Re, i, n, s, l, S);
|
|
1341
|
+
if (u(), typeof g == "string") {
|
|
1342
|
+
const Y = { from: "ai", text: g };
|
|
1343
|
+
d((D) => {
|
|
1344
|
+
const A = [...D, Y];
|
|
1345
|
+
return R((Q) => /* @__PURE__ */ new Set([...Q, A.length - 1])), A;
|
|
1346
|
+
}), (g.startsWith("⚠️") || g.startsWith("❌")) && _(!0);
|
|
1345
1347
|
} else {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
const
|
|
1349
|
-
|
|
1350
|
-
|
|
1348
|
+
if (g != null && g.isError) {
|
|
1349
|
+
_(!0);
|
|
1350
|
+
const D = g.reply || se;
|
|
1351
|
+
d((A) => {
|
|
1352
|
+
const Q = [...A, { from: "ai", text: D }];
|
|
1353
|
+
return R((_e) => /* @__PURE__ */ new Set([..._e, Q.length - 1])), Q;
|
|
1354
|
+
});
|
|
1355
|
+
return;
|
|
1356
|
+
}
|
|
1357
|
+
const Y = { from: "ai", text: g.reply };
|
|
1358
|
+
d((D) => {
|
|
1359
|
+
const A = [...D, Y];
|
|
1360
|
+
return R((Q) => /* @__PURE__ */ new Set([...Q, A.length - 1])), A;
|
|
1361
|
+
}), g.mqlDf && Array.isArray(g.mqlDf) && C(g.mqlDf), g.reply && (g.reply.startsWith("⚠️") || g.reply.startsWith("❌")) && _(!0), g.chatHistoryLimitExceeded && J(!0);
|
|
1351
1362
|
}
|
|
1352
|
-
} catch (
|
|
1353
|
-
if (u(),
|
|
1363
|
+
} catch (g) {
|
|
1364
|
+
if (u(), g.name === "AbortError")
|
|
1354
1365
|
return;
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1366
|
+
_(!0), d((Y) => {
|
|
1367
|
+
const D = [
|
|
1368
|
+
...Y,
|
|
1369
|
+
{
|
|
1370
|
+
from: "ai",
|
|
1371
|
+
text: se
|
|
1372
|
+
}
|
|
1373
|
+
];
|
|
1374
|
+
return R((A) => /* @__PURE__ */ new Set([...A, D.length - 1])), D;
|
|
1375
|
+
});
|
|
1358
1376
|
} finally {
|
|
1359
1377
|
j(!1);
|
|
1360
1378
|
}
|
|
1361
|
-
}, [
|
|
1379
|
+
}, [y, n, s, i, le, B, M, u, P]), Ie = ee(() => {
|
|
1362
1380
|
var o;
|
|
1363
|
-
u(), (o =
|
|
1381
|
+
u(), (o = U.current) == null || o.abort(), _(!1), J(!1), d([]), R(/* @__PURE__ */ new Set()), ie(!1), ce(!1);
|
|
1364
1382
|
try {
|
|
1365
1383
|
typeof window < "u" && window.localStorage && window.localStorage.removeItem("chatbot-messages");
|
|
1366
1384
|
} catch {
|
|
1367
1385
|
}
|
|
1368
1386
|
h(!1);
|
|
1369
|
-
}, [u]),
|
|
1387
|
+
}, [u]), ge = ee(async () => {
|
|
1370
1388
|
var o, k, S;
|
|
1371
1389
|
if (!i || i.length === 0) {
|
|
1372
1390
|
console.warn("No mql_df data available for PDF download");
|
|
@@ -1374,14 +1392,14 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1374
1392
|
}
|
|
1375
1393
|
try {
|
|
1376
1394
|
j(!0), console.log("mql_df data for lead extraction:", i);
|
|
1377
|
-
const
|
|
1378
|
-
name: ((o = i.find((
|
|
1379
|
-
email: ((k = i.find((
|
|
1380
|
-
summary: `Chat conversation with ${a.length} messages. User asked: "${((S = a.find((
|
|
1395
|
+
const V = {
|
|
1396
|
+
name: ((o = i.find((z) => z.name)) == null ? void 0 : o.name) || "Chat User",
|
|
1397
|
+
email: ((k = i.find((z) => z.email)) == null ? void 0 : k.email) || "user@example.com",
|
|
1398
|
+
summary: `Chat conversation with ${a.length} messages. User asked: "${((S = a.find((z) => z.from === "human")) == null ? void 0 : S.text) || "No user messages"}"`
|
|
1381
1399
|
};
|
|
1382
|
-
console.log("Extracted lead row:",
|
|
1383
|
-
} catch (
|
|
1384
|
-
console.error("Failed to download PDF:",
|
|
1400
|
+
console.log("Extracted lead row:", V), await $e(i, V, B, l), console.log("PDF downloaded successfully");
|
|
1401
|
+
} catch (V) {
|
|
1402
|
+
console.error("Failed to download PDF:", V);
|
|
1385
1403
|
} finally {
|
|
1386
1404
|
j(!1);
|
|
1387
1405
|
}
|
|
@@ -1421,7 +1439,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1421
1439
|
/* @__PURE__ */ e.jsx(
|
|
1422
1440
|
"button",
|
|
1423
1441
|
{
|
|
1424
|
-
onClick: () =>
|
|
1442
|
+
onClick: () => T((o) => !o),
|
|
1425
1443
|
style: m.headerButton,
|
|
1426
1444
|
title: H ? "Shrink chat" : "Expand chat",
|
|
1427
1445
|
children: H ? /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -1441,7 +1459,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1441
1459
|
"button",
|
|
1442
1460
|
{
|
|
1443
1461
|
onClick: () => {
|
|
1444
|
-
f ||
|
|
1462
|
+
f || T(!1), I(!f);
|
|
1445
1463
|
},
|
|
1446
1464
|
style: m.headerButton,
|
|
1447
1465
|
title: f ? "Maximize chat" : "Minimize chat",
|
|
@@ -1451,7 +1469,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1451
1469
|
i && i.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1452
1470
|
"button",
|
|
1453
1471
|
{
|
|
1454
|
-
onClick:
|
|
1472
|
+
onClick: ge,
|
|
1455
1473
|
style: m.headerButton,
|
|
1456
1474
|
title: "Download PDF Report",
|
|
1457
1475
|
disabled: v,
|
|
@@ -1480,7 +1498,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1480
1498
|
] })
|
|
1481
1499
|
),
|
|
1482
1500
|
!f && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-section", style: { flexGrow: 1, display: "flex", flexDirection: "column" }, children: [
|
|
1483
|
-
/* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-messages", style: m.chatSection, ref:
|
|
1501
|
+
/* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-messages", style: m.chatSection, ref: Z, children: [
|
|
1484
1502
|
a.length === 0 && !v && /* @__PURE__ */ e.jsx("div", { className: "sw-ttyw-empty-state", style: {
|
|
1485
1503
|
display: "flex",
|
|
1486
1504
|
flexDirection: "column",
|
|
@@ -1491,7 +1509,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1491
1509
|
}, children: /* @__PURE__ */ e.jsx(
|
|
1492
1510
|
"img",
|
|
1493
1511
|
{
|
|
1494
|
-
src:
|
|
1512
|
+
src: ze,
|
|
1495
1513
|
alt: "Superwise Logo",
|
|
1496
1514
|
style: {
|
|
1497
1515
|
width: "350px",
|
|
@@ -1505,27 +1523,27 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1505
1523
|
}
|
|
1506
1524
|
) }),
|
|
1507
1525
|
a.map((o, k) => /* @__PURE__ */ e.jsx(
|
|
1508
|
-
|
|
1526
|
+
Ge,
|
|
1509
1527
|
{
|
|
1510
1528
|
msg: o,
|
|
1511
|
-
isTyping:
|
|
1529
|
+
isTyping: O.has(k),
|
|
1512
1530
|
onTypingComplete: () => {
|
|
1513
|
-
|
|
1514
|
-
const
|
|
1515
|
-
return
|
|
1516
|
-
}), requestAnimationFrame(() =>
|
|
1531
|
+
R((S) => {
|
|
1532
|
+
const V = new Set(S);
|
|
1533
|
+
return V.delete(k), V;
|
|
1534
|
+
}), requestAnimationFrame(() => re("auto"));
|
|
1517
1535
|
}
|
|
1518
1536
|
},
|
|
1519
1537
|
k
|
|
1520
1538
|
)),
|
|
1521
|
-
|
|
1539
|
+
$ && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-validation-message", children: [
|
|
1522
1540
|
/* @__PURE__ */ e.jsx("span", { className: "error-icon", children: "⚠️" }),
|
|
1523
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1541
|
+
/* @__PURE__ */ e.jsx("span", { children: $ })
|
|
1524
1542
|
] }),
|
|
1525
|
-
|
|
1543
|
+
G && /* @__PURE__ */ e.jsx("div", { className: "sw-ttyw-contact-cta", children: /* @__PURE__ */ e.jsxs(
|
|
1526
1544
|
"a",
|
|
1527
1545
|
{
|
|
1528
|
-
href:
|
|
1546
|
+
href: pe,
|
|
1529
1547
|
target: "_blank",
|
|
1530
1548
|
rel: "noopener noreferrer",
|
|
1531
1549
|
className: "sw-ttyw-cta-button",
|
|
@@ -1535,7 +1553,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1535
1553
|
]
|
|
1536
1554
|
}
|
|
1537
1555
|
) }),
|
|
1538
|
-
|
|
1556
|
+
M && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-limit-exceeded", children: [
|
|
1539
1557
|
/* @__PURE__ */ e.jsx("div", { className: "sw-ttyw-limit-exceeded-message", children: "Chat history limit reached. Please download your conversation as PDF and clear chat history to continue." }),
|
|
1540
1558
|
/* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-limit-action-buttons", children: [
|
|
1541
1559
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -1543,7 +1561,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1543
1561
|
{
|
|
1544
1562
|
type: "button",
|
|
1545
1563
|
className: "sw-ttyw-limit-download-pdf",
|
|
1546
|
-
onClick:
|
|
1564
|
+
onClick: ge,
|
|
1547
1565
|
disabled: v,
|
|
1548
1566
|
children: [
|
|
1549
1567
|
/* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": !0, children: [
|
|
@@ -1575,7 +1593,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1575
1593
|
] })
|
|
1576
1594
|
] }),
|
|
1577
1595
|
v && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-message other message-loading", style: { ...m.message, ...m.messageOther }, children: [
|
|
1578
|
-
/* @__PURE__ */ e.jsx("div", { className: "message-avatar", style: m.messageAvatar, children: /* @__PURE__ */ e.jsx(
|
|
1596
|
+
/* @__PURE__ */ e.jsx("div", { className: "message-avatar", style: m.messageAvatar, children: /* @__PURE__ */ e.jsx(Se, { width: 20, height: 20 }) }),
|
|
1579
1597
|
/* @__PURE__ */ e.jsxs("div", { className: "message-content", style: m.messageContent, children: [
|
|
1580
1598
|
/* @__PURE__ */ e.jsx("div", { className: "typing typing-1" }),
|
|
1581
1599
|
/* @__PURE__ */ e.jsx("div", { className: "typing typing-2" }),
|
|
@@ -1589,29 +1607,29 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1589
1607
|
"textarea",
|
|
1590
1608
|
{
|
|
1591
1609
|
className: "sw-ttyw-input",
|
|
1592
|
-
placeholder:
|
|
1593
|
-
value:
|
|
1610
|
+
placeholder: M ? "Chat limit reached." : "Please ask question here",
|
|
1611
|
+
value: y,
|
|
1594
1612
|
onChange: (o) => {
|
|
1595
|
-
w(o.target.value),
|
|
1613
|
+
w(o.target.value), $ && F("");
|
|
1596
1614
|
},
|
|
1597
1615
|
maxLength: 1e3,
|
|
1598
|
-
disabled: v ||
|
|
1616
|
+
disabled: v || M,
|
|
1599
1617
|
style: m.textarea,
|
|
1600
|
-
onKeyDown: (o) => o.key === "Enter" && !o.shiftKey && (o.preventDefault(),
|
|
1618
|
+
onKeyDown: (o) => o.key === "Enter" && !o.shiftKey && (o.preventDefault(), fe())
|
|
1601
1619
|
}
|
|
1602
1620
|
),
|
|
1603
1621
|
/* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-input-content", style: m.inputFooter, children: [
|
|
1604
1622
|
/* @__PURE__ */ e.jsxs("small", { id: "sw-ttyw-chat-textbox-status", style: m.characterCount, children: [
|
|
1605
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1623
|
+
/* @__PURE__ */ e.jsx("span", { children: y.length }),
|
|
1606
1624
|
"/1000"
|
|
1607
1625
|
] }),
|
|
1608
1626
|
/* @__PURE__ */ e.jsx(
|
|
1609
1627
|
"button",
|
|
1610
1628
|
{
|
|
1611
1629
|
id: "sw-ttyw-chat-send-message",
|
|
1612
|
-
onClick:
|
|
1630
|
+
onClick: fe,
|
|
1613
1631
|
"aria-label": "Send message",
|
|
1614
|
-
disabled: v ||
|
|
1632
|
+
disabled: v || M,
|
|
1615
1633
|
style: m.sendButton,
|
|
1616
1634
|
children: /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", className: "cwv replaced-svg", children: [
|
|
1617
1635
|
/* @__PURE__ */ e.jsx("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
@@ -1633,7 +1651,7 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1633
1651
|
type: "button",
|
|
1634
1652
|
className: "swttyw-btn swttyw-btn-primary",
|
|
1635
1653
|
id: "swttyw-btn-clear-history-yes",
|
|
1636
|
-
onClick:
|
|
1654
|
+
onClick: Ie,
|
|
1637
1655
|
value: "Yes",
|
|
1638
1656
|
style: {
|
|
1639
1657
|
background: "var(--swttyw-primary-color)",
|
|
@@ -1671,12 +1689,12 @@ function Je({ title: r = "", agentId: n = "", discoveryAgentId: s = "", primaryC
|
|
|
1671
1689
|
] }),
|
|
1672
1690
|
!f && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-footer", style: m.footer, children: [
|
|
1673
1691
|
"Powered by ",
|
|
1674
|
-
/* @__PURE__ */ e.jsx("a", { href: "https://superwise.ai/", className: "ml-1", target: "_new", rel: "noopener noreferrer", style: { marginLeft: "0.25rem", lineHeight: 0 }, "aria-label": "SUPERWISE®", children: /* @__PURE__ */ e.jsx(
|
|
1692
|
+
/* @__PURE__ */ e.jsx("a", { href: "https://superwise.ai/", className: "ml-1", target: "_new", rel: "noopener noreferrer", style: { marginLeft: "0.25rem", lineHeight: 0 }, "aria-label": "SUPERWISE®", children: /* @__PURE__ */ e.jsx(Oe, { height: 20 }) })
|
|
1675
1693
|
] })
|
|
1676
1694
|
]
|
|
1677
1695
|
}
|
|
1678
1696
|
) });
|
|
1679
1697
|
}
|
|
1680
1698
|
export {
|
|
1681
|
-
|
|
1699
|
+
Ke as Chatbot
|
|
1682
1700
|
};
|