@ronak27/superwise-chatbot-package 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,332 +1,383 @@
1
- import le, { memo as ae, useState as C, useEffect as T, useRef as ee, useMemo as ce, useCallback as J } from "react";
2
- var Z = { exports: {} }, z = {};
3
- var te;
4
- function de() {
5
- if (te) return z;
6
- te = 1;
7
- var o = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function w(x, a, g) {
9
- var p = null;
10
- if (g !== void 0 && (p = "" + g), a.key !== void 0 && (p = "" + a.key), "key" in a) {
11
- g = {};
12
- for (var l in a)
13
- l !== "key" && (g[l] = a[l]);
14
- } else g = a;
15
- return a = g.ref, {
16
- $$typeof: o,
17
- type: x,
18
- key: p,
19
- ref: a !== void 0 ? a : null,
20
- props: g
1
+ import He, { memo as ve, useState as S, useRef as Z, useEffect as A, useMemo as xe, useCallback as Y } from "react";
2
+ var he = { exports: {} }, K = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Ce;
13
+ function Re() {
14
+ if (Ce) return K;
15
+ Ce = 1;
16
+ var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
17
+ function a(p, o, c) {
18
+ var i = null;
19
+ if (c !== void 0 && (i = "" + c), o.key !== void 0 && (i = "" + o.key), "key" in o) {
20
+ c = {};
21
+ for (var w in o)
22
+ w !== "key" && (c[w] = o[w]);
23
+ } else c = o;
24
+ return o = c.ref, {
25
+ $$typeof: r,
26
+ type: p,
27
+ key: i,
28
+ ref: o !== void 0 ? o : null,
29
+ props: c
21
30
  };
22
31
  }
23
- return z.Fragment = i, z.jsx = w, z.jsxs = w, z;
32
+ return K.Fragment = n, K.jsx = a, K.jsxs = a, K;
24
33
  }
25
- var F = {};
26
- var re;
27
- function pe() {
28
- return re || (re = 1, process.env.NODE_ENV !== "production" && (function() {
29
- function o(e) {
30
- if (e == null) return null;
31
- if (typeof e == "function")
32
- return e.$$typeof === q ? null : e.displayName || e.name || null;
33
- if (typeof e == "string") return e;
34
- switch (e) {
35
- case I:
34
+ var Q = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var be;
45
+ function _e() {
46
+ return be || (be = 1, process.env.NODE_ENV !== "production" && function() {
47
+ function r(t) {
48
+ if (t == null) return null;
49
+ if (typeof t == "function")
50
+ return t.$$typeof === se ? null : t.displayName || t.name || null;
51
+ if (typeof t == "string") return t;
52
+ switch (t) {
53
+ case H:
36
54
  return "Fragment";
37
- case X:
55
+ case T:
38
56
  return "Profiler";
39
- case P:
57
+ case W:
40
58
  return "StrictMode";
41
- case _:
59
+ case re:
42
60
  return "Suspense";
43
- case U:
61
+ case ne:
44
62
  return "SuspenseList";
45
- case $:
63
+ case M:
46
64
  return "Activity";
47
65
  }
48
- if (typeof e == "object")
49
- switch (typeof e.tag == "number" && console.error(
66
+ if (typeof t == "object")
67
+ switch (typeof t.tag == "number" && console.error(
50
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
- ), e.$$typeof) {
52
- case B:
69
+ ), t.$$typeof) {
70
+ case j:
53
71
  return "Portal";
54
- case O:
55
- return e.displayName || "Context";
56
- case S:
57
- return (e._context.displayName || "Context") + ".Consumer";
58
- case V:
59
- var r = e.render;
60
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
- case N:
62
- return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
63
- case A:
64
- r = e._payload, e = e._init;
72
+ case ee:
73
+ return t.displayName || "Context";
74
+ case z:
75
+ return (t._context.displayName || "Context") + ".Consumer";
76
+ case te:
77
+ var l = t.render;
78
+ return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
79
+ case oe:
80
+ return l = t.displayName || null, l !== null ? l : r(t.type) || "Memo";
81
+ case R:
82
+ l = t._payload, t = t._init;
65
83
  try {
66
- return o(e(r));
84
+ return r(t(l));
67
85
  } catch {
68
86
  }
69
87
  }
70
88
  return null;
71
89
  }
72
- function i(e) {
73
- return "" + e;
90
+ function n(t) {
91
+ return "" + t;
74
92
  }
75
- function w(e) {
93
+ function a(t) {
76
94
  try {
77
- i(e);
78
- var r = !1;
95
+ n(t);
96
+ var l = !1;
79
97
  } catch {
80
- r = !0;
98
+ l = !0;
81
99
  }
82
- if (r) {
83
- r = console;
84
- var d = r.error, h = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
- return d.call(
86
- r,
100
+ if (l) {
101
+ l = console;
102
+ var g = l.error, C = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
103
+ return g.call(
104
+ l,
87
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
- h
89
- ), i(e);
106
+ C
107
+ ), n(t);
90
108
  }
91
109
  }
92
- function x(e) {
93
- if (e === I) return "<>";
94
- if (typeof e == "object" && e !== null && e.$$typeof === A)
110
+ function p(t) {
111
+ if (t === H) return "<>";
112
+ if (typeof t == "object" && t !== null && t.$$typeof === R)
95
113
  return "<...>";
96
114
  try {
97
- var r = o(e);
98
- return r ? "<" + r + ">" : "<...>";
115
+ var l = r(t);
116
+ return l ? "<" + l + ">" : "<...>";
99
117
  } catch {
100
118
  return "<...>";
101
119
  }
102
120
  }
103
- function a() {
104
- var e = H.A;
105
- return e === null ? null : e.getOwner();
121
+ function o() {
122
+ var t = ae.A;
123
+ return t === null ? null : t.getOwner();
106
124
  }
107
- function g() {
125
+ function c() {
108
126
  return Error("react-stack-top-frame");
109
127
  }
110
- function p(e) {
111
- if (D.call(e, "key")) {
112
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
113
- if (r && r.isReactWarning) return !1;
128
+ function i(t) {
129
+ if (q.call(t, "key")) {
130
+ var l = Object.getOwnPropertyDescriptor(t, "key").get;
131
+ if (l && l.isReactWarning) return !1;
114
132
  }
115
- return e.key !== void 0;
133
+ return t.key !== void 0;
116
134
  }
117
- function l(e, r) {
118
- function d() {
119
- K || (K = !0, console.error(
135
+ function w(t, l) {
136
+ function g() {
137
+ G || (G = !0, console.error(
120
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)",
121
- r
139
+ l
122
140
  ));
123
141
  }
124
- d.isReactWarning = !0, Object.defineProperty(e, "key", {
125
- get: d,
142
+ g.isReactWarning = !0, Object.defineProperty(t, "key", {
143
+ get: g,
126
144
  configurable: !0
127
145
  });
128
146
  }
129
- function c() {
130
- var e = o(this.type);
131
- return G[e] || (G[e] = !0, console.error(
147
+ function d() {
148
+ var t = r(this.type);
149
+ return ie[t] || (ie[t] = !0, console.error(
132
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."
133
- )), e = this.props.ref, e !== void 0 ? e : null;
151
+ )), t = this.props.ref, t !== void 0 ? t : null;
134
152
  }
135
- function m(e, r, d, h, v, M) {
136
- var f = d.ref;
137
- return e = {
138
- $$typeof: k,
139
- type: e,
140
- key: r,
141
- props: d,
142
- _owner: h
143
- }, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
153
+ function x(t, l, g, C, U, L) {
154
+ var b = g.ref;
155
+ return t = {
156
+ $$typeof: h,
157
+ type: t,
158
+ key: l,
159
+ props: g,
160
+ _owner: C
161
+ }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(t, "ref", {
144
162
  enumerable: !1,
145
- get: c
146
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
163
+ get: d
164
+ }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
147
165
  configurable: !1,
148
166
  enumerable: !1,
149
167
  writable: !0,
150
168
  value: 0
151
- }), Object.defineProperty(e, "_debugInfo", {
169
+ }), Object.defineProperty(t, "_debugInfo", {
152
170
  configurable: !1,
153
171
  enumerable: !1,
154
172
  writable: !0,
155
173
  value: null
156
- }), Object.defineProperty(e, "_debugStack", {
174
+ }), Object.defineProperty(t, "_debugStack", {
157
175
  configurable: !1,
158
176
  enumerable: !1,
159
177
  writable: !0,
160
- value: v
161
- }), Object.defineProperty(e, "_debugTask", {
178
+ value: U
179
+ }), Object.defineProperty(t, "_debugTask", {
162
180
  configurable: !1,
163
181
  enumerable: !1,
164
182
  writable: !0,
165
- value: M
166
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
183
+ value: L
184
+ }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
167
185
  }
168
- function u(e, r, d, h, v, M) {
169
- var f = r.children;
170
- if (f !== void 0)
171
- if (h)
172
- if (Q(f)) {
173
- for (h = 0; h < f.length; h++)
174
- y(f[h]);
175
- Object.freeze && Object.freeze(f);
186
+ function f(t, l, g, C, U, L) {
187
+ var b = l.children;
188
+ if (b !== void 0)
189
+ if (C)
190
+ if (B(b)) {
191
+ for (C = 0; C < b.length; C++)
192
+ v(b[C]);
193
+ Object.freeze && Object.freeze(b);
176
194
  } else
177
195
  console.error(
178
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."
179
197
  );
180
- else y(f);
181
- if (D.call(r, "key")) {
182
- f = o(e);
183
- var b = Object.keys(r).filter(function(ie) {
184
- return ie !== "key";
198
+ else v(b);
199
+ if (q.call(l, "key")) {
200
+ b = r(t);
201
+ var _ = Object.keys(l).filter(function(de) {
202
+ return de !== "key";
185
203
  });
186
- h = 0 < b.length ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}", n[f + h] || (b = 0 < b.length ? "{" + b.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ C = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", ce[b + C] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
187
205
  `A props object containing a "key" prop is being spread into JSX:
188
206
  let props = %s;
189
207
  <%s {...props} />
190
208
  React keys must be passed directly to JSX without using spread:
191
209
  let props = %s;
192
210
  <%s key={someKey} {...props} />`,
193
- h,
194
- f,
211
+ C,
195
212
  b,
196
- f
197
- ), n[f + h] = !0);
213
+ _,
214
+ b
215
+ ), ce[b + C] = !0);
198
216
  }
199
- if (f = null, d !== void 0 && (w(d), f = "" + d), p(r) && (w(r.key), f = "" + r.key), "key" in r) {
200
- d = {};
201
- for (var L in r)
202
- L !== "key" && (d[L] = r[L]);
203
- } else d = r;
204
- return f && l(
205
- d,
206
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
- ), m(
208
- e,
209
- f,
210
- d,
211
- a(),
212
- v,
213
- M
217
+ if (b = null, g !== void 0 && (a(g), b = "" + g), i(l) && (a(l.key), b = "" + l.key), "key" in l) {
218
+ g = {};
219
+ for (var $ in l)
220
+ $ !== "key" && (g[$] = l[$]);
221
+ } else g = l;
222
+ return b && w(
223
+ g,
224
+ typeof t == "function" ? t.displayName || t.name || "Unknown" : t
225
+ ), x(
226
+ t,
227
+ b,
228
+ g,
229
+ o(),
230
+ U,
231
+ L
214
232
  );
215
233
  }
216
- function y(e) {
217
- j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === A && (e._payload.status === "fulfilled" ? j(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
234
+ function v(t) {
235
+ I(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === R && (t._payload.status === "fulfilled" ? I(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
218
236
  }
219
- function j(e) {
220
- return typeof e == "object" && e !== null && e.$$typeof === k;
237
+ function I(t) {
238
+ return typeof t == "object" && t !== null && t.$$typeof === h;
221
239
  }
222
- var R = le, k = /* @__PURE__ */ Symbol.for("react.transitional.element"), B = /* @__PURE__ */ Symbol.for("react.portal"), I = /* @__PURE__ */ Symbol.for("react.fragment"), P = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), U = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.activity"), q = /* @__PURE__ */ Symbol.for("react.client.reference"), H = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, Q = Array.isArray, E = console.createTask ? console.createTask : function() {
240
+ var u = He, h = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), H = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), se = Symbol.for("react.client.reference"), ae = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, B = Array.isArray, P = console.createTask ? console.createTask : function() {
223
241
  return null;
224
242
  };
225
- R = {
226
- react_stack_bottom_frame: function(e) {
227
- return e();
243
+ u = {
244
+ react_stack_bottom_frame: function(t) {
245
+ return t();
228
246
  }
229
247
  };
230
- var K, G = {}, W = R.react_stack_bottom_frame.bind(
231
- R,
232
- g
233
- )(), Y = E(x(g)), n = {};
234
- F.Fragment = I, F.jsx = function(e, r, d) {
235
- var h = 1e4 > H.recentlyCreatedOwnerStacks++;
236
- return u(
237
- e,
238
- r,
239
- d,
248
+ var G, ie = {}, O = u.react_stack_bottom_frame.bind(
249
+ u,
250
+ c
251
+ )(), D = P(p(c)), ce = {};
252
+ Q.Fragment = H, Q.jsx = function(t, l, g) {
253
+ var C = 1e4 > ae.recentlyCreatedOwnerStacks++;
254
+ return f(
255
+ t,
256
+ l,
257
+ g,
240
258
  !1,
241
- h ? Error("react-stack-top-frame") : W,
242
- h ? E(x(e)) : Y
259
+ C ? Error("react-stack-top-frame") : O,
260
+ C ? P(p(t)) : D
243
261
  );
244
- }, F.jsxs = function(e, r, d) {
245
- var h = 1e4 > H.recentlyCreatedOwnerStacks++;
246
- return u(
247
- e,
248
- r,
249
- d,
262
+ }, Q.jsxs = function(t, l, g) {
263
+ var C = 1e4 > ae.recentlyCreatedOwnerStacks++;
264
+ return f(
265
+ t,
266
+ l,
267
+ g,
250
268
  !0,
251
- h ? Error("react-stack-top-frame") : W,
252
- h ? E(x(e)) : Y
269
+ C ? Error("react-stack-top-frame") : O,
270
+ C ? P(p(t)) : D
253
271
  );
254
272
  };
255
- })()), F;
273
+ }()), Q;
256
274
  }
257
- var ne;
258
- function me() {
259
- return ne || (ne = 1, process.env.NODE_ENV === "production" ? Z.exports = de() : Z.exports = pe()), Z.exports;
275
+ process.env.NODE_ENV === "production" ? he.exports = Re() : he.exports = _e();
276
+ var e = he.exports;
277
+ const Me = [
278
+ "Parameters:",
279
+ "additional_parameter_company_name:",
280
+ "additional_parameter_company_size:",
281
+ "additional_parameter_user_role:",
282
+ "additional_parameter_use_case:"
283
+ ];
284
+ function Pe(r) {
285
+ if (typeof r != "string" || r.length === 0) return r;
286
+ let n = r;
287
+ for (const a of Me)
288
+ for (; ; ) {
289
+ const p = n.indexOf(a);
290
+ if (p === -1) break;
291
+ const o = n.indexOf("{", p);
292
+ if (o === -1) break;
293
+ let c = 0, i = -1;
294
+ for (let x = o; x < n.length; x++) {
295
+ const f = n[x];
296
+ if (f === "{")
297
+ c++;
298
+ else if (f === "}" && (c--, c === 0)) {
299
+ i = x;
300
+ break;
301
+ }
302
+ }
303
+ if (i === -1) break;
304
+ const w = n.slice(0, p).trim(), d = n.slice(i + 1).trim();
305
+ n = w + (d.length > 0 ? " " + d : "");
306
+ }
307
+ return n.includes("Parameters:") && (n = n.split("Parameters:")[0].trim()), n;
260
308
  }
261
- var t = me();
262
- async function ue(o, i = [], w = [], x = "", a = "") {
263
- const g = "https://sage-api-ttyw-stage.superwise.ai/api/v1/chat", p = Array.isArray(i) ? i.map((c) => ({
264
- role: c.role,
265
- message: c.content != null ? c.content : ""
266
- })) : [], l = {
267
- user_input: o,
268
- chat_history: p,
269
- mql_df: Array.isArray(w) ? w : [],
270
- agent_id: x,
271
- discovery_agent_id: a,
309
+ async function Ve(r, n = [], a = [], p = "", o = "", c = null) {
310
+ var f, v, I;
311
+ const w = "https://sage-api-ttyw-stage.superwise.ai/api/v1/" + "chat", d = Array.isArray(n) ? n.map((u) => ({
312
+ role: u.role,
313
+ message: u.content != null ? u.content : ""
314
+ })) : [], x = {
315
+ user_input: r,
316
+ chat_history: d,
317
+ mql_df: Array.isArray(a) ? a : [],
318
+ agent_id: p,
319
+ discovery_agent_id: o,
272
320
  utm_source: "Web",
273
321
  utm_medium: "chatbot"
274
322
  };
275
- console.log("Sending payload:", l);
323
+ console.log("Sending payload:", x);
276
324
  try {
277
- const c = await fetch(g, {
325
+ const u = await fetch(w, {
278
326
  method: "POST",
279
327
  headers: {
280
328
  "Content-Type": "application/json",
281
329
  Accept: "application/json"
282
330
  },
283
- body: JSON.stringify(l)
331
+ body: JSON.stringify(x),
332
+ signal: c ?? void 0
284
333
  });
285
- if (console.log("Response status:", c.status), console.log("Response headers:", c.headers), !c.ok) {
286
- const j = await c.text();
287
- return console.error("API Error Response:", j), { reply: `❌ API Error ${c.status}: ${j}`, mqlDf: [] };
334
+ if (console.log("Response status:", u.status), console.log("Response headers:", u.headers), !u.ok) {
335
+ const T = await u.text();
336
+ return console.error("API Error Response:", T), { reply: `❌ API Error ${u.status}: ${T}`, mqlDf: [] };
288
337
  }
289
- const m = await c.json();
290
- console.log("API Response Data:", m);
291
- let u = "⚠️ No reply from server.", y = [];
292
- return m.chat_response ? u = m.chat_response : m.success && m.data?.chat_response ? u = m.data.chat_response : m.message && (u = m.message), m.mql_df ? y = m.mql_df : m.data?.mql_df && (y = m.data.mql_df), u.includes("Parameters:") && (u = u.split("Parameters:")[0].trim()), { reply: u, mqlDf: y };
293
- } catch (c) {
294
- return console.error("API call failed:", c), c.name === "TypeError" && c.message.includes("fetch") ? { reply: "⚠️ Network error. Please check your connection.", mqlDf: [] } : { reply: `⚠️ API request failed: ${c.message}`, mqlDf: [] };
338
+ const h = await u.json();
339
+ console.log("API Response Data:", h);
340
+ let j = "⚠️ No reply from server.", H = [], W = !1;
341
+ return h.chat_response ? j = h.chat_response : h.success && ((f = h.data) != null && f.chat_response) ? j = h.data.chat_response : h.message && (j = h.message), h.mql_df ? H = h.mql_df : (v = h.data) != null && v.mql_df && (H = h.data.mql_df), (h.chat_history_limit_exceeded === !0 || ((I = h.data) == null ? void 0 : I.chat_history_limit_exceeded) === !0) && (W = !0), j = Pe(j), { reply: j, mqlDf: H, chatHistoryLimitExceeded: W };
342
+ } catch (u) {
343
+ if (console.error("API call failed:", u), u.name === "AbortError")
344
+ throw u;
345
+ return u.name === "TypeError" && u.message.includes("fetch") ? { reply: "⚠️ Network error. Please check your connection.", mqlDf: [] } : { reply: `⚠️ API request failed: ${u.message}`, mqlDf: [] };
295
346
  }
296
347
  }
297
- async function ge(o, i = null, w = []) {
298
- const x = "https://sage-api-ttyw-stage.superwise.ai/pdf", a = Array.isArray(o) && o.length > 0 ? o[0] : i || {
348
+ async function Ae(r, n = null, a = []) {
349
+ const o = "https://sage-api-ttyw-stage.superwise.ai/api/v1/" + "pdf", c = Array.isArray(r) && r.length > 0 ? r[0] : n || {
299
350
  name: "User",
300
351
  email: "user@example.com",
301
352
  summary: "Chat conversation summary"
302
- }, g = Array.isArray(w) ? w.map((l) => ({
303
- role: l.role,
304
- message: l.content != null ? l.content : ""
305
- })) : [], p = {
306
- lead_row: a,
307
- chat_history: g
353
+ }, i = Array.isArray(a) ? a.map((d) => ({
354
+ role: d.role,
355
+ message: d.content != null ? d.content : ""
356
+ })) : [], w = {
357
+ lead_row: c,
358
+ chat_history: i
308
359
  };
309
- console.log("Downloading PDF with payload:", p);
360
+ console.log("Downloading PDF with payload:", w);
310
361
  try {
311
- const l = await fetch(x, {
362
+ const d = await fetch(o, {
312
363
  method: "POST",
313
364
  headers: {
314
365
  "Content-Type": "application/json",
315
366
  Accept: "application/pdf"
316
367
  },
317
- body: JSON.stringify(p)
368
+ body: JSON.stringify(w)
318
369
  });
319
- if (console.log("PDF Response status:", l.status), !l.ok) {
320
- const y = await l.text();
321
- throw console.error("PDF API Error Response:", y), new Error(`PDF API Error ${l.status}: ${y}`);
370
+ if (console.log("PDF Response status:", d.status), !d.ok) {
371
+ const I = await d.text();
372
+ throw console.error("PDF API Error Response:", I), new Error(`PDF API Error ${d.status}: ${I}`);
322
373
  }
323
- const c = await l.blob(), m = window.URL.createObjectURL(c), u = document.createElement("a");
324
- return u.href = m, u.download = `chatbot-report-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.pdf`, document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(m), !0;
325
- } catch (l) {
326
- throw console.error("PDF download failed:", l), l;
374
+ const x = await d.blob(), f = window.URL.createObjectURL(x), v = document.createElement("a");
375
+ return v.href = f, v.download = `chatbot-report-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.pdf`, document.body.appendChild(v), v.click(), document.body.removeChild(v), window.URL.revokeObjectURL(f), !0;
376
+ } catch (d) {
377
+ throw console.error("PDF download failed:", d), d;
327
378
  }
328
379
  }
329
- const s = {
380
+ const m = {
330
381
  container: {
331
382
  position: "fixed",
332
383
  bottom: "0px",
@@ -425,6 +476,7 @@ const s = {
425
476
  backgroundColor: "var(--swttyw-background-color)",
426
477
  flexGrow: 1,
427
478
  overflowY: "auto",
479
+ overflowX: "hidden",
428
480
  display: "flex",
429
481
  flexDirection: "column",
430
482
  boxShadow: "inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.05), inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.05)",
@@ -574,7 +626,7 @@ const s = {
574
626
  fontWeight: "500",
575
627
  margin: 0
576
628
  }
577
- }, fe = `@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');\r
629
+ }, We = `@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');\r
578
630
  \r
579
631
  .sw-ttyw-chatbot {\r
580
632
  --swttyw-primary-color: #000;\r
@@ -585,22 +637,29 @@ const s = {
585
637
  --swttyw-body-font-size: 15px;\r
586
638
  --swttyw-footer-font-size: 16px;\r
587
639
  --swttyw-user-background-image: url('');\r
640
+ scrollbar-width: thin;\r
641
+ scrollbar-color: black transparent;\r
588
642
  }\r
589
643
  \r
590
644
  .sw-ttyw-chatbot ::-webkit-scrollbar {\r
591
- width: 3px;\r
645
+ width: 10px;\r
646
+ height: 10px;\r
592
647
  }\r
593
648
  \r
594
649
  .sw-ttyw-chatbot ::-webkit-scrollbar-track {\r
595
- background: transparent;\r
650
+ background: rgba(0, 0, 0, 0.05);\r
651
+ border-radius: 5px;\r
596
652
  }\r
597
653
  \r
598
654
  .sw-ttyw-chatbot ::-webkit-scrollbar-thumb {\r
599
655
  background: var(--swttyw-primary-color);\r
656
+ border-radius: 5px;\r
657
+ min-height: 40px;\r
600
658
  }\r
601
659
  \r
602
660
  .sw-ttyw-chatbot ::-webkit-scrollbar-thumb:hover {\r
603
661
  background: var(--swttyw-primary-color);\r
662
+ opacity: 0.9;\r
604
663
  }\r
605
664
  \r
606
665
  .typing {\r
@@ -686,6 +745,99 @@ const s = {
686
745
  flex-shrink: 0;\r
687
746
  }\r
688
747
  \r
748
+ /* Contact Sales CTA (shown on errors or >90s response delay) */\r
749
+ .sw-ttyw-contact-cta {\r
750
+ margin: 0px auto;\r
751
+ animation: slideIn 0.3s ease-out;\r
752
+ }\r
753
+ \r
754
+ .sw-ttyw-cta-button {\r
755
+ display: inline-flex;\r
756
+ align-items: center;\r
757
+ gap: 8px;\r
758
+ padding: 10px 16px;\r
759
+ background: var(--swttyw-primary-color, #000);\r
760
+ color: #fff !important;\r
761
+ text-decoration: none;\r
762
+ border-radius: 8px;\r
763
+ font-size: 14px;\r
764
+ font-weight: 500;\r
765
+ transition: opacity 0.2s, transform 0.2s;\r
766
+ }\r
767
+ \r
768
+ .sw-ttyw-cta-button:hover {\r
769
+ opacity: 0.9;\r
770
+ transform: translateY(-1px);\r
771
+ }\r
772
+ \r
773
+ .sw-ttyw-cta-icon {\r
774
+ font-size: 16px;\r
775
+ }\r
776
+ \r
777
+ /* Chat history limit exceeded (reference: chatbot.js swecShowChatLimitExceededMessage) */\r
778
+ .sw-ttyw-limit-exceeded {\r
779
+ margin: 8px 16px;\r
780
+ animation: slideIn 0.3s ease-out;\r
781
+ }\r
782
+ \r
783
+ .sw-ttyw-limit-exceeded-message {\r
784
+ background-color: #FEE8E8;\r
785
+ border: 1px solid #FDC2C2;\r
786
+ border-radius: 8px;\r
787
+ padding: 12px 16px;\r
788
+ margin-bottom: 12px;\r
789
+ color: #E04F4F;\r
790
+ font-size: 14px;\r
791
+ line-height: 1.4;\r
792
+ }\r
793
+ \r
794
+ .sw-ttyw-limit-action-buttons {\r
795
+ display: flex;\r
796
+ flex-wrap: wrap;\r
797
+ gap: 10px;\r
798
+ align-items: center;\r
799
+ }\r
800
+ \r
801
+ .sw-ttyw-limit-download-pdf,\r
802
+ .sw-ttyw-limit-clear-history {\r
803
+ display: inline-flex;\r
804
+ align-items: center;\r
805
+ gap: 8px;\r
806
+ padding: 10px 16px;\r
807
+ border-radius: 8px;\r
808
+ font-size: 14px;\r
809
+ font-weight: 500;\r
810
+ cursor: pointer;\r
811
+ transition: opacity 0.2s, transform 0.2s;\r
812
+ border: none;\r
813
+ }\r
814
+ \r
815
+ .sw-ttyw-limit-download-pdf {\r
816
+ background: var(--swttyw-primary-color, #000);\r
817
+ color: #fff;\r
818
+ }\r
819
+ \r
820
+ .sw-ttyw-limit-download-pdf:hover:not(:disabled) {\r
821
+ opacity: 0.9;\r
822
+ transform: translateY(-1px);\r
823
+ }\r
824
+ \r
825
+ .sw-ttyw-limit-download-pdf:disabled {\r
826
+ opacity: 0.6;\r
827
+ cursor: not-allowed;\r
828
+ }\r
829
+ \r
830
+ .sw-ttyw-limit-clear-history {\r
831
+ background: transparent;\r
832
+ color: var(--swttyw-primary-color, #000);\r
833
+ border: 1px solid var(--swttyw-primary-color, #000);\r
834
+ }\r
835
+ \r
836
+ .sw-ttyw-limit-clear-history:hover {\r
837
+ opacity: 0.9;\r
838
+ transform: translateY(-1px);\r
839
+ }\r
840
+ \r
689
841
  @keyframes slideIn {\r
690
842
  from {\r
691
843
  opacity: 0;\r
@@ -742,12 +894,101 @@ const s = {
742
894
  display: table;\r
743
895
  }\r
744
896
  \r
745
- /* Ensure proper spacing for message content */\r
897
+ /* Ensure proper spacing for message content and wrap text */\r
746
898
  .sw-ttyw-message .message-content {\r
747
899
  margin-left: 0 !important;\r
748
900
  margin-right: 0 !important;\r
749
901
  padding-left: 0 !important;\r
750
902
  padding-right: 0 !important;\r
903
+ min-width: 0;\r
904
+ overflow-wrap: break-word;\r
905
+ word-break: break-word;\r
906
+ overflow-x: hidden;\r
907
+ }\r
908
+ \r
909
+ /* Markdown in AI messages (reference: chatbot.js processMarkdown) */\r
910
+ .sw-ttyw-markdown h1,\r
911
+ .sw-ttyw-markdown h2,\r
912
+ .sw-ttyw-markdown h3 {\r
913
+ margin: 0.5em 0 0.25em;\r
914
+ font-weight: 600;\r
915
+ line-height: 1.3;\r
916
+ }\r
917
+ .sw-ttyw-markdown h1 { font-size: 1.25em; }\r
918
+ .sw-ttyw-markdown h2 { font-size: 1.1em; }\r
919
+ .sw-ttyw-markdown h3 { font-size: 1em; }\r
920
+ .sw-ttyw-markdown h1:first-child,\r
921
+ .sw-ttyw-markdown h2:first-child,\r
922
+ .sw-ttyw-markdown h3:first-child { margin-top: 0; }\r
923
+ \r
924
+ /* Message content: wrap text, no horizontal scroll */\r
925
+ .sw-ttyw-markdown {\r
926
+ overflow-wrap: break-word;\r
927
+ word-break: break-word;\r
928
+ overflow-x: hidden;\r
929
+ }\r
930
+ \r
931
+ .sw-ttyw-markdown pre,\r
932
+ .sw-ttyw-markdown pre.sw-ttyw-code-block {\r
933
+ margin: 0.5em 0;\r
934
+ padding: 0.75em 1em;\r
935
+ background: rgba(0, 0, 0, 0.06);\r
936
+ border-radius: 6px;\r
937
+ overflow-x: hidden;\r
938
+ white-space: pre-wrap;\r
939
+ word-break: break-word;\r
940
+ font-size: 0.9em;\r
941
+ line-height: 1.4;\r
942
+ }\r
943
+ .sw-ttyw-markdown code {\r
944
+ padding: 0.15em 0.4em;\r
945
+ background: rgba(0, 0, 0, 0.08);\r
946
+ border-radius: 4px;\r
947
+ font-size: 0.9em;\r
948
+ word-break: break-word;\r
949
+ }\r
950
+ .sw-ttyw-markdown pre code,\r
951
+ .sw-ttyw-markdown pre.sw-ttyw-code-block code {\r
952
+ padding: 0;\r
953
+ background: none;\r
954
+ white-space: pre-wrap;\r
955
+ word-break: break-word;\r
956
+ }\r
957
+ \r
958
+ .sw-ttyw-markdown ul {\r
959
+ margin: 0.5em 0;\r
960
+ padding-left: 1.25em;\r
961
+ list-style: disc;\r
962
+ }\r
963
+ .sw-ttyw-markdown li {\r
964
+ margin: 0.2em 0;\r
965
+ }\r
966
+ \r
967
+ .sw-ttyw-markdown a {\r
968
+ color: var(--swttyw-primary-color, #000);\r
969
+ text-decoration: underline;\r
970
+ }\r
971
+ .sw-ttyw-markdown a:hover {\r
972
+ opacity: 0.85;\r
973
+ }\r
974
+ \r
975
+ /* API bracket labels e.g. [Agents], [Via the SUPERWISE dashboard] */\r
976
+ .sw-ttyw-markdown .sw-ttyw-bracket-label {\r
977
+ font-style: italic;\r
978
+ opacity: 0.9;\r
979
+ }\r
980
+ \r
981
+ /* [text]...[/text] section titles e.g. Programmatic creation (SDK — Python example) */\r
982
+ .sw-ttyw-markdown .sw-ttyw-text-block {\r
983
+ display: block;\r
984
+ font-weight: 600;\r
985
+ font-size: 1.05em;\r
986
+ margin: 0.75em 0 0.35em;\r
987
+ line-height: 1.35;\r
988
+ color: inherit;\r
989
+ }\r
990
+ .sw-ttyw-markdown .sw-ttyw-text-block:first-child {\r
991
+ margin-top: 0;\r
751
992
  }\r
752
993
  \r
753
994
  /* Empty state styling */\r
@@ -760,6 +1001,13 @@ const s = {
760
1001
  opacity: 0.5 !important;\r
761
1002
  }\r
762
1003
  \r
1004
+ /* Messages area: vertical scroll only, no horizontal scroll */\r
1005
+ .sw-ttyw-messages {\r
1006
+ overflow-x: hidden;\r
1007
+ scrollbar-width: thin;\r
1008
+ scrollbar-color: black transparent;\r
1009
+ }\r
1010
+ \r
763
1011
  /* Ensure empty state doesn't interfere with scrolling */\r
764
1012
  .sw-ttyw-messages:has(.sw-ttyw-empty-state) {\r
765
1013
  overflow: hidden !important;\r
@@ -767,30 +1015,132 @@ const s = {
767
1015
  \r
768
1016
  .sw-ttyw-chat-footer img {\r
769
1017
  height: 20px !important;\r
770
- }`, se = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAFT0lEQVR4Ab1YeYhVVRj/3fdms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J+b5MsUvY2Z+uZ3qChibZMwNTcbR4VG5kuadlZSO9w7oWz1fSwFXMUVgfuZXeJZafZL/lkDXB3tfRq42O45IL8ZTH+R30T7Q/E7GD+WueqldcCqIa6jTuDQlgxMoYpXGdN5tMc0cjVJONtsvUtoN/Cd7dYwijZMtBg7Dphox3WFeDpLEjjqnjhVxTr9jnkpwvzbge13MGGuB/YQQ1Mnc2wtsC9a9By1tgs4ppoyvM2M8SuByyJtcp+ODOAwSkzeW6LiLHmJckGH5UdTWvnBiByQsT9iistLWuCs8kPGWH68WLZTnjg5CrTeu4ATcjAmVvUW0imo9u2WmSCtQCMGZ8NVX78CzI3KTleFN2gPYKW2rsURoyJaTAwxIq+ICZI8KyxZBpl+liQlQUxiHUV54bsMipeTqaCQsLmt8mTQo0vt/RP4YdB6FQWZcSpwTo3Ror7YS+yXgo92LDJib2IN1rRap8zs/wL0AfcwUHfZi0opZnS1ML0MDkLz7XxBl1PDd+UljRHGiAt54IBvLjvkh6IyDqFN9pWpraKzK/ojYujpu9U+pdOeNS7viR6YLFFebzQeN6andJy0aqUu3gN8bM0YqHTziFMoxqGdjw8/Ag7Lnw1OxphmZrJY3pXElwS+wGivn0F0QXzPeJNW+6fApcqCNWKK+eoJu8ZDBTgZyz9c0YUho/xC1soN//CJ/bJ+dJhxVEAHAcHcOo6kRyMOAAAAAElFTkSuQmCC", he = "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", we = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAykAAACuCAYAAAAyN0KXAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nO3d23XbuBYG4H9mnXfrVGBOBfZUEKQCeyqwpoJ4KohSQZwKQlcwTgUDVzByBaErOFIFOQ9bWJIVXUhg40b+31paSRwShCUKwMaNv/z48QN01gyAAXC9+fv15ud2508LIiIiIiIK9guDlJMMgHsANz2OXQN4ArAA0EXLERERERHRyDFIOewawAOAd57nP0KCm5VajoiIiIiIJuLX3BkozAxAC+Bf+AcoAHAHGU25D88SEREREdG0cCRl6x4yVetCOd1XAHNwzQoRERERUS8MUmTdSQvgMvJ1niHBShf5OkREREREVZvydK8GstD9H8QPUACZPvYdstZlluB6RERERERVmmKQMoNM6/qOfrt2afsArlchIiIiIjpqatO95pCRDO11J764XoWIiIiIaM9URlIMJBD4inICFECmmf0DyVuTNSdERERERIUYe5DithT+B2FbCsfG9SpERERERBtjDlIWkLUfd3mzMQjXqxARERHR5I1xTcotZEQixY5dMb1AghWbOR9EREREREmNKUhpIFO7Sp7W5eMbJFjpMueDiIiIiCiJMUz3mkFGTr5jfAEKINskf4dMX+N6FSIiIiIavdpHUuYoa0vh2NaQUZU2cz6IiIiIiKKpdSTFAFiivC2FY7uA/M5LyHtARERERDQ6tQUpDYAnyJbCV3mzktUV5D14Ap+vQkREREQjU8t0rxlkmtM9pjVy0tcnyLS3Ve6MEBERERGFqiFIGcuWwrFxvQoRERERjULJ072uIc8I+RsMUPpw61UsuF6FiIiIiCpWYpAyg4wG/Itxbikc2zvIepUWXK9CRERERBUqbbrXPeR5IFx3omMNmSrH9SpEREREVI1SghQD6fnntK44XiHBX5s3G0RERERE5+We7tVgu6UwA5R4LsH1KkRERERUiVxBygzSs/8dwE2mPEwR16sQERERUfFyTPeaQwIUjpzkxfUqRERERFSklEGKgQQn3LGrLFyvQkRERERFSRGkzCC99XexL0RBniG7qy1zZ4SIiIiIpi32mpQFgA4MUGrwDvJsmhYSWBIRERERZRFrJMWAWwrXzK1XWWTOBxERERFNkHaQ0kCCE647GYdXyBSwp9wZISIi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ko+QvC3yZoOIiIiIqAxTCVKcB0hA8CVzPgBZd/I7ZHrXKm9WiIiIiIjKMfY1Kac0yLNe5RUyatImvi4RERERURWmHKQ4BhIwXCa41ifIaA5HToiIiIiIjpjadK9DLOKvV/kG4DfICAoDFCIiIiKiEziS8tYMMtJxp5TeC4B7cMcuIiIiIqLeOJLy1gqykP13yMJ2X2vIyMw1GKAQEREREQ3CkZTTDGSKVt/F9WvISAzXnRAREREReWKQ0k8D4BYyMtIc+H+78yIiIiIiogD/B7M2yhVblLCUAAAAAElFTkSuQmCC", oe = "superwise-chatbot-package-css";
771
- function xe() {
772
- if (typeof document > "u" || document.getElementById(oe)) return;
773
- const o = document.createElement("style");
774
- o.id = oe, o.textContent = fe, document.head.appendChild(o);
1018
+ }\r
1019
+ \r
1020
+ .sw-ttyw-input:disabled {\r
1021
+ opacity: 0.7;\r
1022
+ cursor: not-allowed;\r
1023
+ }\r
1024
+ \r
1025
+ #sw-ttyw-chat-send-message:disabled {\r
1026
+ opacity: 0.5;\r
1027
+ cursor: not-allowed;\r
1028
+ }\r
1029
+ \r
1030
+ #sw-ttyw-chat-send-message:disabled svg,\r
1031
+ #sw-ttyw-chat-send-message:disabled path {\r
1032
+ cursor: not-allowed;\r
1033
+ }`, Te = "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";
1034
+ let $e = 0;
1035
+ function Ee({ width: r = 20, height: n = 20, style: a }) {
1036
+ const p = Z(null);
1037
+ p.current || (p.current = `clip0_avatar_${++$e}`);
1038
+ const o = p.current;
1039
+ return /* @__PURE__ */ e.jsxs("svg", { width: r, height: n, viewBox: "0 0 155 174", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: a, "aria-hidden": !0, children: [
1040
+ /* @__PURE__ */ e.jsxs("g", { clipPath: `url(#${o})`, children: [
1041
+ /* @__PURE__ */ e.jsx("path", { d: "M73.41 57.8388C73.15 56.8088 72.23 56.0988 71.17 56.0988H62.35C61.29 56.0988 60.37 56.8188 60.11 57.8488L45.8 114.299C45.62 114.999 45.78 115.719 46.22 116.289C46.66 116.859 47.33 117.179 48.05 117.179H55.05C56.13 117.179 57.08 116.419 57.31 115.359L59.83 103.889H73.76L76.29 115.359C76.52 116.409 77.47 117.179 78.55 117.179H85.54C86.26 117.179 86.92 116.849 87.37 116.289C87.81 115.719 87.96 114.999 87.79 114.299L73.44 57.8488L73.41 57.8388ZM62.12 93.3688L66.76 72.2188L71.42 93.3688H62.12Z", fill: "#FF0000" }),
1042
+ /* @__PURE__ */ e.jsx("path", { d: "M101.69 56.0988H95.01C93.73 56.0988 92.7 57.1388 92.7 58.4088V114.859C92.7 116.139 93.74 117.169 95.01 117.169H101.69C102.97 117.169 104 116.129 104 114.859V58.4088C104 57.1288 102.96 56.0988 101.69 56.0988Z", fill: "#FF0000" }),
1043
+ /* @__PURE__ */ e.jsx("path", { d: "M154.17 122.419L153.98 50.4588C153.97 45.2188 151.16 40.3788 146.61 37.7688L84.21 1.94879C79.66 -0.661205 74.07 -0.651206 69.54 1.98879L7.30003 38.1288C2.77003 40.7588 -0.00997311 45.6088 2.68877e-05 50.8488L0.190027 122.809C0.200027 128.049 3.01003 132.889 7.56003 135.499L69.97 171.319C74.52 173.929 80.11 173.919 84.64 171.279L146.87 135.139C151.4 132.509 154.19 127.659 154.17 122.409V122.419ZM51.11 131.639C26.26 117.289 17.74 85.5088 32.09 60.6488C46.44 35.7988 78.22 27.2788 103.08 41.6288C127.93 55.9788 136.45 87.7588 122.1 112.619C107.75 137.469 75.97 145.989 51.11 131.639Z", fill: "#FF0000" })
1044
+ ] }),
1045
+ /* @__PURE__ */ e.jsx("defs", { children: /* @__PURE__ */ e.jsx("clipPath", { id: o, children: /* @__PURE__ */ e.jsx("rect", { width: "154.17", height: "173.268", fill: "white" }) }) })
1046
+ ] });
1047
+ }
1048
+ function Fe({ width: r, height: n = 20, style: a }) {
1049
+ const p = r ?? 4.6875 * n;
1050
+ return /* @__PURE__ */ e.jsxs("svg", { width: p, height: n, viewBox: "0 0 75 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: a, "aria-hidden": !0, children: [
1051
+ /* @__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" }),
1052
+ /* @__PURE__ */ e.jsx("path", { d: "M9.44935 5.18707H8.82683C8.70604 5.18707 8.61313 5.27945 8.61313 5.39954V10.6189C8.61313 10.739 8.70604 10.8314 8.82683 10.8314H9.44935C9.57014 10.8314 9.66305 10.739 9.66305 10.6189V5.39954C9.66305 5.27945 9.57014 5.18707 9.44935 5.18707ZM8.83612 5.26097C8.81754 5.26097 8.79896 5.26098 8.78037 5.27021C8.79896 5.27021 8.81754 5.26097 8.83612 5.26097Z", fill: "white" }),
1053
+ /* @__PURE__ */ e.jsx("path", { d: "M14.3273 11.3118L14.3087 4.66051C14.3087 4.18014 14.0486 3.72748 13.6212 3.4873L7.82334 0.180139C7.40523 -0.0600462 6.88491 -0.0600462 6.45751 0.180139L0.678271 3.51501C0.260159 3.7552 0 4.20785 0 4.68822L0.0185826 11.3395C0.0185826 11.8199 0.278741 12.2725 0.706145 12.5127L6.50396 15.8199C6.92208 16.06 7.44239 16.06 7.8698 15.8199L13.649 12.485C14.0671 12.2448 14.3273 11.7921 14.3273 11.3118ZM4.75719 12.1617C2.44363 10.8314 1.65386 7.903 2.99182 5.60277C4.32049 3.30254 7.27515 2.51732 9.5887 3.84758C11.9023 5.16859 12.692 8.10624 11.3541 10.4065C10.0254 12.7067 7.07074 13.4919 4.75719 12.1617Z", fill: "white" }),
1054
+ /* @__PURE__ */ e.jsx("path", { d: "M18.3783 5.31638C18.4805 5.20553 18.6013 5.12239 18.7407 5.06696C18.8801 5.01153 19.0473 4.98382 19.2331 4.98382C19.419 4.98382 19.6698 5.02077 19.8557 5.10391C20.0415 5.18706 20.1902 5.30715 20.3109 5.45495C20.376 5.53809 20.441 5.63047 20.4875 5.74133C20.5432 5.85218 20.5804 5.96303 20.599 6.08313L21.9741 5.65819C21.8719 5.29791 21.7325 4.99306 21.556 4.7344C21.3795 4.47574 21.1657 4.25403 20.9149 4.07851C20.6919 3.92147 20.441 3.81061 20.153 3.73671C19.8742 3.6628 19.5676 3.62585 19.2517 3.62585C18.9358 3.62585 18.4712 3.68128 18.1461 3.80137C17.8301 3.92147 17.5514 4.09698 17.3284 4.32793C17.0961 4.54964 16.9289 4.81754 16.8174 5.13163C16.7059 5.44571 16.6501 5.80599 16.6501 6.20322C16.6501 6.60045 16.7152 7.01615 16.8545 7.321C16.9939 7.62585 17.1983 7.88451 17.4771 8.09699C17.7558 8.30946 18.1182 8.50345 18.5735 8.6605L19.3632 8.94687C19.6513 9.05772 19.8835 9.16858 20.0415 9.28867C20.1994 9.39953 20.3109 9.52886 20.376 9.66742C20.441 9.80599 20.4689 9.98151 20.4689 10.194C20.4689 10.4065 20.4503 10.5543 20.4039 10.6928C20.3667 10.8314 20.2924 10.9515 20.2087 11.0623C20.1158 11.1824 19.995 11.2656 19.8464 11.321C19.707 11.3764 19.5398 11.4041 19.3539 11.4041C19.1681 11.4041 18.9172 11.3672 18.7407 11.2841C18.5549 11.2009 18.4062 11.0808 18.2854 10.933C18.2111 10.8499 18.1461 10.7575 18.0996 10.6374C18.0438 10.5265 18.016 10.4065 17.9881 10.2864L16.5944 10.6744C16.6873 11.0346 16.8267 11.3487 17.0032 11.6259C17.189 11.903 17.4027 12.1247 17.6629 12.3095C17.8952 12.4573 18.1461 12.5681 18.4248 12.6513C18.7035 12.7344 19.0101 12.7714 19.3261 12.7714C19.642 12.7714 20.1158 12.7067 20.4317 12.5958C20.7569 12.4757 21.0357 12.3002 21.268 12.06C21.4817 11.8291 21.6489 11.552 21.7697 11.2286C21.8905 10.9053 21.9462 10.5358 21.9462 10.1108C21.9462 9.6859 21.8812 9.28867 21.7418 8.98382C21.6024 8.67897 21.398 8.42031 21.11 8.20784C20.822 7.99537 20.4503 7.80137 19.9765 7.62585L19.196 7.33948C18.9079 7.22862 18.685 7.11777 18.5363 7.00691C18.3783 6.88682 18.2761 6.76673 18.2204 6.62816C18.1646 6.4896 18.1368 6.33255 18.1368 6.14779C18.1368 5.96304 18.1553 5.80599 18.2018 5.66742C18.239 5.52885 18.304 5.418 18.3783 5.31638Z", fill: "white" }),
1055
+ /* @__PURE__ */ e.jsx("path", { d: "M26.7684 10.1478C26.7684 10.4249 26.7313 10.6651 26.657 10.8499C26.5826 11.0346 26.4618 11.1732 26.2853 11.2748C26.1088 11.3764 25.8765 11.4226 25.5884 11.4226C25.3004 11.4226 25.0588 11.3764 24.8823 11.2748C24.7058 11.1732 24.585 11.0346 24.5106 10.8499C24.4363 10.6651 24.3991 10.4342 24.3991 10.1478V3.72748H22.9404V10.1016C22.9404 10.6282 23.0333 11.0901 23.2191 11.4873C23.405 11.8845 23.693 12.1986 24.0832 12.4296C24.4735 12.6605 24.9845 12.7714 25.5977 12.7714C26.211 12.7714 26.7034 12.6605 27.1029 12.4296C27.5025 12.1986 27.7905 11.8845 27.967 11.4781C28.1436 11.0716 28.2365 10.6189 28.2365 10.1016V3.72748H26.7777V10.1478H26.7684Z", fill: "white" }),
1056
+ /* @__PURE__ */ e.jsx("path", { d: "M33.1888 4.04157C32.8171 3.8291 32.3433 3.72748 31.7765 3.72748H29.37V12.6513H30.8288V9.5381H31.7579C32.334 9.5381 32.8078 9.43648 33.1795 9.23325C33.5511 9.03002 33.8299 8.71593 34.0157 8.29099C34.2015 7.86605 34.2945 7.31177 34.2945 6.63741C34.2945 5.96304 34.2015 5.41801 34.0157 4.99307C33.8299 4.56813 33.5511 4.25404 33.1795 4.04157H33.1888ZM32.7056 7.57043C32.622 7.79214 32.5012 7.94919 32.3433 8.0508C32.1853 8.15242 31.9809 8.19861 31.7207 8.19861H30.8195V5.09469H31.7207C31.9809 5.09469 32.1853 5.14088 32.3433 5.24249C32.5012 5.34411 32.622 5.50115 32.7056 5.72286C32.7893 5.94457 32.8264 6.24942 32.8264 6.63741C32.8264 7.0254 32.7893 7.34873 32.7056 7.57043Z", fill: "white" }),
1057
+ /* @__PURE__ */ e.jsx("path", { d: "M35.1214 12.6605H39.5255V11.3025H36.5801V8.78981H39.0331V7.44108H36.5801V5.09466H39.5255V3.73669H35.1214V12.6605Z", fill: "white" }),
1058
+ /* @__PURE__ */ e.jsx("path", { d: "M44.3199 8.92842C44.6822 8.72519 44.9703 8.42034 45.1747 8.01387C45.3791 7.6074 45.4813 7.09932 45.4813 6.48962C45.4813 5.87992 45.3884 5.32565 45.2026 4.92842C45.0167 4.52195 44.738 4.22634 44.3849 4.03235C44.0226 3.83835 43.5766 3.74597 43.047 3.74597H40.4454V12.6698H41.9041V9.24251H42.9169L44.0411 12.6698H45.6207L44.3013 8.94689C44.3013 8.94689 44.3199 8.9469 44.3292 8.93766L44.3199 8.92842ZM41.8948 5.0947H42.9819C43.1956 5.0947 43.3722 5.13165 43.5301 5.21479C43.6788 5.29793 43.7996 5.4365 43.8832 5.63974C43.9668 5.83373 44.004 6.12011 44.004 6.48038C44.004 6.84066 43.9668 7.13627 43.8832 7.3395C43.7996 7.54274 43.6881 7.68131 43.5394 7.76445C43.3907 7.84759 43.2142 7.88454 43.0005 7.88454H41.9041V5.10394L41.8948 5.0947Z", fill: "white" }),
1059
+ /* @__PURE__ */ e.jsx("path", { d: "M52.4219 10.4988L51.1583 3.73669H49.7553L48.501 10.4619L47.2095 3.73669H45.6485L47.7019 12.6605H49.2164L50.4615 6.68358L51.6972 12.6605H53.2117L55.2558 3.73669H53.7134L52.4219 10.4988Z", fill: "white" }),
1060
+ /* @__PURE__ */ e.jsx("path", { d: "M57.3928 3.73669H55.9341V12.6605H57.3928V3.73669Z", fill: "white" }),
1061
+ /* @__PURE__ */ e.jsx("path", { d: "M60.1988 5.31638C60.301 5.20553 60.4218 5.12239 60.5612 5.06696C60.7006 5.01153 60.8678 4.98382 61.0536 4.98382C61.2395 4.98382 61.4903 5.02077 61.6762 5.10391C61.862 5.18706 62.0107 5.30715 62.1314 5.45495C62.1965 5.53809 62.2615 5.63047 62.308 5.74133C62.3637 5.85218 62.4009 5.96303 62.4195 6.08313L63.7946 5.65819C63.6924 5.29791 63.553 4.99306 63.3765 4.7344C63.1999 4.47574 62.9862 4.25403 62.7354 4.07851C62.5124 3.92147 62.2615 3.81061 61.9735 3.73671C61.6947 3.6628 61.3881 3.62585 61.0722 3.62585C60.7563 3.62585 60.2917 3.68128 59.9665 3.80137C59.6506 3.92147 59.3719 4.09698 59.1489 4.32793C58.9166 4.54964 58.7494 4.81754 58.6379 5.13163C58.5264 5.44571 58.4706 5.80599 58.4706 6.20322C58.4706 6.60045 58.5357 7.01615 58.675 7.321C58.8144 7.62585 59.0188 7.88451 59.2976 8.09699C59.5763 8.30946 59.9387 8.50345 60.394 8.6605L61.1837 8.94687C61.4718 9.05772 61.704 9.16858 61.862 9.28867C62.0199 9.39953 62.1314 9.52886 62.1965 9.66742C62.2615 9.80599 62.2894 9.98151 62.2894 10.194C62.2894 10.4065 62.2708 10.5543 62.2244 10.6928C62.1872 10.8314 62.1129 10.9515 62.0292 11.0623C61.9363 11.1824 61.8155 11.2656 61.6669 11.321C61.5275 11.3764 61.3603 11.4041 61.1744 11.4041C60.9886 11.4041 60.7377 11.3672 60.5612 11.2841C60.3754 11.2009 60.2267 11.0808 60.1059 10.933C60.0316 10.8499 59.9665 10.7575 59.9201 10.6374C59.8643 10.5265 59.8272 10.4065 59.8086 10.2864L58.4149 10.6744C58.5078 11.0346 58.6472 11.3487 58.8237 11.6259C59.0095 11.903 59.2232 12.1247 59.4834 12.3095C59.7157 12.4573 59.9665 12.5681 60.2453 12.6513C60.524 12.7344 60.8306 12.7714 61.1466 12.7714C61.4625 12.7714 61.9363 12.7067 62.2522 12.5958C62.5774 12.4757 62.8562 12.3002 63.0885 12.06C63.3022 11.8291 63.4694 11.552 63.5902 11.2286C63.711 10.9053 63.7667 10.5358 63.7667 10.1108C63.7667 9.6859 63.7017 9.28867 63.5623 8.98382C63.4229 8.67897 63.2185 8.42031 62.9305 8.20784C62.6425 7.99537 62.2708 7.80137 61.797 7.62585L61.0165 7.33948C60.7284 7.22862 60.5054 7.11777 60.3568 7.00691C60.1988 6.88682 60.0966 6.76673 60.0409 6.62816C59.9851 6.4896 59.9573 6.33255 59.9573 6.14779C59.9573 5.96304 59.9758 5.80599 60.0223 5.66742C60.0595 5.52885 60.1245 5.418 60.1988 5.31638Z", fill: "white" }),
1062
+ /* @__PURE__ */ e.jsx("path", { d: "M69.23 5.09466V3.73669H64.8167V12.6605H69.23V11.3025H66.2754V8.78981H68.7283V7.44108H66.2754V5.09466H69.23Z", fill: "white" }),
1063
+ /* @__PURE__ */ e.jsx("path", { d: "M71.0883 4.09701V3.71826H72.7515V4.09701H72.1197V5.95383H71.7201V4.09701H71.0883Z", fill: "white" }),
1064
+ /* @__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" })
1065
+ ] });
1066
+ }
1067
+ const ke = "superwise-chatbot-package-css";
1068
+ function ze() {
1069
+ if (typeof document > "u" || document.getElementById(ke)) return;
1070
+ const r = document.createElement("style");
1071
+ r.id = ke, r.textContent = We, document.head.appendChild(r);
1072
+ }
1073
+ ze();
1074
+ function Oe(r) {
1075
+ return r === "human" ? { ...m.message, ...m.messageSelf } : { ...m.message, ...m.messageOther };
775
1076
  }
776
- xe();
777
- function ye(o) {
778
- return o === "human" ? { ...s.message, ...s.messageSelf } : { ...s.message, ...s.messageOther };
1077
+ function ue(r) {
1078
+ return String(r).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
779
1079
  }
780
- const Ce = ae(function({ text: i, speed: w = 10, onComplete: x }) {
781
- const [a, g] = C(""), [p, l] = C(!1);
782
- T(() => {
783
- if (!i) return;
784
- g(""), l(!1);
785
- let m = 0;
786
- const u = setInterval(() => {
787
- m < i.length ? (g(i.slice(0, m + 1)), m++) : (l(!0), clearInterval(u), x && x());
788
- }, w);
789
- return () => clearInterval(u);
790
- }, [i, w, x]);
791
- const c = (m) => m.replace(/\[bold\](.*?)\[\/bold\]/g, "<strong>$1</strong>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/(?:^|\n)-\s+/g, `
1080
+ function me(r) {
1081
+ 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));
1082
+ }
1083
+ function De(r) {
1084
+ const n = [], a = r.split(`
1085
+ `), p = [];
1086
+ let o = 0;
1087
+ for (; o < a.length; ) {
1088
+ const c = a[o];
1089
+ if (!me(c)) {
1090
+ p.push(c), o++;
1091
+ continue;
1092
+ }
1093
+ const i = [];
1094
+ for (; o < a.length; ) {
1095
+ const w = me(a[o]), d = a[o].trim() === "", x = o + 1 < a.length && me(a[o + 1]);
1096
+ if (w || d && i.length > 0 && x)
1097
+ i.push(a[o]), o++;
1098
+ else break;
1099
+ }
1100
+ if (i.length >= 2) {
1101
+ const w = n.length, d = i.join(`
1102
+ `).trim(), x = ue(d);
1103
+ n.push({ placeholder: `\0CODE_RAW_${w}\0`, html: `<pre class="sw-ttyw-code-block"><code>${x}</code></pre>` }), p.push(`\0CODE_RAW_${w}\0`);
1104
+ } else i.length === 1 && p.push(i[0]);
1105
+ }
1106
+ return { html: p.join(`
1107
+ `), codeBlocks: n };
1108
+ }
1109
+ function Se(r) {
1110
+ if (!r) return "";
1111
+ let n = String(r);
1112
+ const a = [];
1113
+ n = n.replace(/```\s*(\w*)\s*\n?([\s\S]*?)```/g, (c, i, w) => {
1114
+ const d = a.length, x = ue(w.trim());
1115
+ return a.push(`<pre class="sw-ttyw-code-block"><code class="${i ? `language-${i}` : ""}">${x}</code></pre>`), `\0CODE_FENCED_${d}\0`;
1116
+ }), n = n.replace(/\[code\]([\s\S]*?)\[\/code\]/gi, (c, i) => {
1117
+ const w = a.length, d = ue(i.trim());
1118
+ return a.push(`<pre class="sw-ttyw-code-block"><code>${d}</code></pre>`), `\0CODE_FENCED_${w}\0`;
1119
+ });
1120
+ const { html: p, codeBlocks: o } = De(n);
1121
+ 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>"), a.forEach((c, i) => {
1122
+ n = n.replace(`\0CODE_FENCED_${i}\0`, c);
1123
+ }), o.forEach(({ placeholder: c, html: i }) => {
1124
+ n = n.replace(c, i);
1125
+ }), n;
1126
+ }
1127
+ const Ue = 30, Ne = 300, Ze = ve(function({ text: n, speed: a = 20, onComplete: p }) {
1128
+ const [o, c] = S(""), [i, w] = S(!1), d = Z(p);
1129
+ A(() => {
1130
+ d.current = p;
1131
+ }, [p]), A(() => {
1132
+ if (!n) return;
1133
+ c(""), w(!1);
1134
+ const f = n.trim().split(/\s+/), v = Math.min(Ue, f.length), I = f.slice(0, v).join(" "), u = Math.min(I.length, Ne, n.length);
1135
+ let h = 0;
1136
+ const j = setInterval(() => {
1137
+ h < u ? (c(n.slice(0, h + 1)), h++) : (c(n), w(!0), clearInterval(j), d.current && d.current());
1138
+ }, a);
1139
+ return () => clearInterval(j);
1140
+ }, [n, a]);
1141
+ const x = (f) => f.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, `
792
1142
  • `).replace(/\n/g, "<br/>").replace(/(\d+\.\s)/g, "<br/>$1").replace(/(\*\s)/g, "<br/>$1");
793
- return /* @__PURE__ */ t.jsx(
1143
+ return /* @__PURE__ */ e.jsx(
794
1144
  "div",
795
1145
  {
796
1146
  style: {
@@ -799,30 +1149,28 @@ const Ce = ae(function({ text: i, speed: w = 10, onComplete: x }) {
799
1149
  wordBreak: "break-word"
800
1150
  },
801
1151
  dangerouslySetInnerHTML: {
802
- __html: c(a) + (p ? "" : '<span class="typing-cursor">|</span>')
1152
+ __html: i ? Se(o) : x(o) + '<span class="typing-cursor">|</span>'
803
1153
  }
804
1154
  }
805
1155
  );
806
- }), be = ae(function({ msg: i, isTyping: w = !1, onTypingComplete: x }) {
807
- const a = i.from === "human" ? "sw-ttyw-message self" : "sw-ttyw-message other";
808
- return /* @__PURE__ */ t.jsxs("div", { className: a, style: ye(i.from), children: [
809
- /* @__PURE__ */ t.jsx("div", { className: "message-avatar", style: s.messageAvatar, children: i.from === "human" ? /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "black", xmlns: "http://www.w3.org/2000/svg", children: [
810
- /* @__PURE__ */ t.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" }),
811
- /* @__PURE__ */ t.jsx("circle", { cx: "12", cy: "7", r: "4", fill: "black" })
812
- ] }) : /* @__PURE__ */ t.jsx(
813
- "img",
1156
+ }), Be = ve(function({ msg: n, isTyping: a = !1, onTypingComplete: p }) {
1157
+ const o = n.from === "human" ? "sw-ttyw-message self" : "sw-ttyw-message other";
1158
+ return /* @__PURE__ */ e.jsxs("div", { className: o, style: Oe(n.from), children: [
1159
+ /* @__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: [
1160
+ /* @__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" }),
1161
+ /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4", fill: "black" })
1162
+ ] }) : /* @__PURE__ */ e.jsx(Ee, { width: 20, height: 20 }) }),
1163
+ /* @__PURE__ */ e.jsx("div", { className: "message-content sw-ttyw-markdown", style: m.messageContent, children: n.from === "ai" && a ? /* @__PURE__ */ e.jsx(Ze, { text: n.text, speed: 20, onComplete: p }) : n.from === "ai" ? /* @__PURE__ */ e.jsx(
1164
+ "div",
814
1165
  {
815
- src: se,
816
- alt: "AI Avatar",
817
1166
  style: {
818
- width: "20px",
819
- height: "20px",
820
- borderRadius: "50%",
821
- objectFit: "cover"
822
- }
1167
+ whiteSpace: "pre-wrap",
1168
+ lineHeight: "1.5",
1169
+ wordBreak: "break-word"
1170
+ },
1171
+ dangerouslySetInnerHTML: { __html: Se(n.text) }
823
1172
  }
824
- ) }),
825
- /* @__PURE__ */ t.jsx("div", { className: "message-content", style: s.messageContent, children: i.from === "ai" && w ? /* @__PURE__ */ t.jsx(Ce, { text: i.text, speed: 20, onComplete: x }) : /* @__PURE__ */ t.jsx(
1173
+ ) : /* @__PURE__ */ e.jsx(
826
1174
  "div",
827
1175
  {
828
1176
  style: {
@@ -831,137 +1179,218 @@ const Ce = ae(function({ text: i, speed: w = 10, onComplete: x }) {
831
1179
  wordBreak: "break-word"
832
1180
  },
833
1181
  dangerouslySetInnerHTML: {
834
- __html: i.text.replace(/\[bold\](.*?)\[\/bold\]/g, "<strong>$1</strong>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/(?:^|\n)-\s+/g, `
1182
+ __html: n.text.replace(/\[([^[\]]+)\]/g, "$1").replace(/\[bold\](.*?)\[\/bold\]/g, "<strong>$1</strong>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/(?:^|\n)-\s+/g, `
835
1183
  • `).replace(/\n/g, "<br/>").replace(/(\d+\.\s)/g, "<br/>$1").replace(/(\*\s)/g, "<br/>$1")
836
- // Bullet points
837
1184
  }
838
1185
  }
839
1186
  ) })
840
1187
  ] });
841
- }), ke = () => {
842
- const o = (/* @__PURE__ */ new Date()).getHours();
843
- return o >= 5 && o < 12 ? "Good morning" : o >= 12 && o < 17 ? "Good afternoon" : (o >= 17 && o < 21, "Good evening");
844
- }, ve = () => {
845
- const o = ke(), i = [
846
- `👋 ${o}! Looking to explore Superwise?`,
847
- `👋 ${o}! Ready to discover what Superwise can do for you?`,
848
- `👋 ${o}! How can I help you with Superwise today?`,
849
- `👋 ${o}! What brings you to Superwise?`,
850
- `👋 ${o}! Let's explore Superwise together!`
851
- ];
852
- return i[Math.floor(Math.random() * i.length)];
1188
+ }), Ye = (r = "") => {
1189
+ const n = (/* @__PURE__ */ new Date()).getHours();
1190
+ let a = [];
1191
+ return n >= 5 && n < 12 ? r ? a = [
1192
+ `🌅 Good morning ${r}! I'm an expert on SUPERWISE. Ready to explore the platform together and uncover what's possible?`,
1193
+ `☀️ Morning ${r}! I'm an expert on SUPERWISE. What would you like to discover or optimize today?`,
1194
+ `🌞 Good morning ${r}! I'm an expert on SUPERWISE. Curious about a feature or looking to dive deeper into the platform?`,
1195
+ `👋 Rise and shine ${r}! I'm an expert on SUPERWISE. Let's jump into anything you want to explore.`,
1196
+ `👋 Morning ${r}! I'm an expert on SUPERWISE. How can I guide you through the platform today?`
1197
+ ] : a = [
1198
+ "🌅 Good morning! I'm an expert on SUPERWISE. Ready to explore the platform together and uncover what's possible?",
1199
+ "☀️ Morning! I'm an expert on SUPERWISE. What would you like to discover or optimize today?",
1200
+ "🌞 Good morning! I'm an expert on SUPERWISE. Curious about a feature or looking to dive deeper into the platform?",
1201
+ "👋 Rise and shine! I'm an expert on SUPERWISE. Let's jump into anything you want to explore.",
1202
+ "👋 Morning! I'm an expert on SUPERWISE. How can I guide you through the platform today?"
1203
+ ] : n >= 12 && n < 17 ? r ? a = [
1204
+ `🌞 Good afternoon ${r}! I'm an expert on SUPERWISE. Ready to explore insights, features, or workflows together?`,
1205
+ `☀️ Afternoon ${r}! I'm an expert on SUPERWISE. How may I help you today?`,
1206
+ `👋 Good afternoon ${r}! I'm an expert on SUPERWISE. Looking to learn, optimize, or explore something specific?`,
1207
+ `🌅 Hey there ${r}! SUPERWISE expert here. Ready to help you unlock the capabilities you're curious about.`,
1208
+ `🌅 Afternoon ${r}! I'm an expert on SUPERWISE. How can I support your exploration today?`
1209
+ ] : a = [
1210
+ "🌞 Good afternoon! I'm an expert on SUPERWISE. Ready to explore insights, features, or workflows together?",
1211
+ "☀️ Afternoon! I'm an expert on SUPERWISE. How may I help you today?",
1212
+ "👋 Good afternoon! I'm an expert on SUPERWISE. Looking to learn, optimize, or explore something specific?",
1213
+ "🌅 Hey there! SUPERWISE expert here. Ready to help you unlock the capabilities you're curious about.",
1214
+ "🌅 Afternoon! I'm an expert on SUPERWISE. How can I support your exploration today?"
1215
+ ] : n >= 17 && n < 21 ? r ? a = [
1216
+ `🌆 Good evening ${r}! I'm a SUPERWISE expert. Ready to explore features or clarify anything you're evaluating?`,
1217
+ `🌅 Evening ${r}! I'm your SUPERWISE expert. What can I help you discover or fine-tune tonight?`,
1218
+ `👋 Good evening ${r}! I'm an expert on SUPERWISE. Interested in exploring capabilities or reviewing how something works?`,
1219
+ `🌇 Hey there ${r}! SUPERWISE expert here. Want to dive into the platform together?`,
1220
+ `🌇 Evening ${r}! I'm an expert on SUPERWISE. How can I assist your learning or discovery today?`
1221
+ ] : a = [
1222
+ "🌆 Good evening! I'm a SUPERWISE expert. Ready to explore features or clarify anything you're evaluating?",
1223
+ "🌅 Evening! I'm your SUPERWISE expert. What can I help you discover or fine-tune tonight?",
1224
+ "👋 Good evening! I'm an expert on SUPERWISE. Interested in exploring capabilities or reviewing how something works?",
1225
+ "🌇 Hey there! SUPERWISE expert here. Want to dive into the platform together?",
1226
+ "🌇 Evening! I'm an expert on SUPERWISE. How can I assist your learning or discovery today?"
1227
+ ] : r ? a = [
1228
+ `🌙 Good evening ${r}! I'm a SUPERWISE expert. Ready to guide you through the platform anytime.`,
1229
+ `⭐ Evening ${r}! I'm your SUPERWISE expert. What brings you to Superwise tonight - exploration, questions, or clarity?`,
1230
+ `👋 Good evening ${r}! I'm a SUPERWISE expert. Looking to discover features or understand how something works?`,
1231
+ `🌃 Hey there ${r}! I'm a SUPERWISE expert. Want to explore what the platform offers?`,
1232
+ `🌃 Evening ${r}! SUPERWISE expert here. How can I help simplify or explain things for you today?`
1233
+ ] : a = [
1234
+ "🌙 Good evening! I'm a SUPERWISE expert. Ready to guide you through the platform anytime.",
1235
+ "⭐ Evening! I'm your SUPERWISE expert. What brings you to Superwise tonight - exploration, questions, or clarity?",
1236
+ "👋 Good evening! I'm a SUPERWISE expert. Looking to discover features or understand how something works?",
1237
+ "🌃 Hey there! I'm a SUPERWISE expert. Want to explore what the platform offers?",
1238
+ "🌃 Evening! SUPERWISE expert here. How can I help simplify or explain things for you today?"
1239
+ ], a[Math.floor(Math.random() * a.length)];
853
1240
  };
854
- function Re({ title: o = "", agentId: i = "", discoveryAgentId: w = "", primaryColor: x = "" }) {
855
- const [a, g] = C(() => {
1241
+ function Ge({ title: r = "", agentId: n = "", discoveryAgentId: a = "", primaryColor: p = "" }) {
1242
+ const [o, c] = S(() => {
856
1243
  try {
857
1244
  if (typeof window < "u" && window.localStorage) {
858
- const n = window.localStorage.getItem("chatbot-messages");
859
- return n ? JSON.parse(n) : [];
1245
+ const s = window.localStorage.getItem("chatbot-messages");
1246
+ return s ? JSON.parse(s) : [];
860
1247
  }
861
1248
  } catch {
862
1249
  }
863
1250
  return [];
864
- }), [p, l] = C(() => {
1251
+ }), [i, w] = S(() => {
865
1252
  try {
866
1253
  if (typeof window < "u" && window.localStorage) {
867
- const n = window.localStorage.getItem("chatbot-mql_df");
868
- return n ? JSON.parse(n) : [];
1254
+ const s = window.localStorage.getItem("chatbot-mql_df");
1255
+ return s ? JSON.parse(s) : [];
869
1256
  }
870
1257
  } catch {
871
1258
  }
872
1259
  return [];
873
- }), [c, m] = C(""), [u, y] = C(!1), [j, R] = C(!1), [k, B] = C(!1), [I, P] = C(!1), [X, S] = C(/* @__PURE__ */ new Set()), [O, V] = C(!1), [_, U] = C(""), [N, A] = C(""), q = (() => {
874
- if (x) return x;
1260
+ }), [d, x] = S(""), [f, v] = S(!1), [I, u] = S(!1), [h, j] = S(!1), [H, W] = S(!1), [T, z] = S(/* @__PURE__ */ new Set()), [ee, te] = S(!1), [re, ne] = S(!1), [oe, R] = S(!1), [M, se] = S(!1), [ae, q] = S(""), [B, P] = S(""), G = 9e4, ie = "https://superwise.ai/contact/", O = Z(null), D = Z(null), t = (() => {
1261
+ if (p) return p;
875
1262
  if (typeof document < "u" && typeof window < "u") {
876
- const n = document.querySelector("[data-chatbot-color]");
877
- if (n)
878
- return n.getAttribute("data-chatbot-color") || "#000";
879
- const r = getComputedStyle(document.documentElement).getPropertyValue("--swttyw-primary-color").trim();
880
- if (r) return r;
1263
+ const s = document.querySelector("[data-chatbot-color]");
1264
+ if (s)
1265
+ return s.getAttribute("data-chatbot-color") || "#000";
1266
+ const E = getComputedStyle(document.documentElement).getPropertyValue("--swttyw-primary-color").trim();
1267
+ if (E) return E;
881
1268
  }
882
1269
  return "#000";
883
- })(), H = ee(null), D = ee(a), Q = ce(() => a.map((n) => ({ role: n.from, content: n.text })), [a]), E = (n) => {
884
- A(n), setTimeout(() => {
885
- A("");
1270
+ })(), l = xe(() => {
1271
+ if (!i || i.length === 0) return "";
1272
+ const s = i.find((k) => k.name && k.email);
1273
+ return s ? `${s.name} (${s.email})` : "";
1274
+ }, [i]), g = Z(null), C = Z(null), U = Z(o), L = Y(() => {
1275
+ O.current && (clearTimeout(O.current), O.current = null);
1276
+ }, []), b = Y((s) => {
1277
+ L(), O.current = setTimeout(s, G);
1278
+ }, [G, L]), _ = xe(() => o.map((s) => ({ role: s.from, content: s.text })), [o]), $ = (s) => {
1279
+ P(s), setTimeout(() => {
1280
+ P("");
886
1281
  }, 4e3);
887
- }, K = (n) => {
888
- const e = n.length, r = n.trim();
889
- return U(""), A(""), !r || e === 0 ? (E("Please enter a message before sending."), !1) : new RegExp(/(<([^>]+)>)/gi).test(r) ? (E("Please avoid using HTML tags or scripts in your message."), !1) : r.length < 2 ? (E("Please enter a meaningful question (at least 2 characters)."), !1) : r.length > 1e3 ? (E("Message is too long. Please keep it under 1000 characters."), !1) : (U(""), A(""), !0);
890
- };
891
- T(() => {
892
- H.current?.scrollIntoView({ behavior: "smooth" });
893
- }, [a, u]), T(() => {
1282
+ }, de = (s) => {
1283
+ const k = s.length, E = s.trim();
1284
+ return q(""), P(""), !E || k === 0 ? ($("Please enter a message before sending."), !1) : new RegExp(/(<([^>]+)>)/gi).test(E) ? ($("Please avoid using HTML tags or scripts in your message."), !1) : E.length < 2 ? ($("Please enter a meaningful question (at least 2 characters)."), !1) : E.length > 1e3 ? ($("Message is too long. Please keep it under 1000 characters."), !1) : (q(""), P(""), !0);
1285
+ }, le = Y((s = "auto") => {
1286
+ var E;
1287
+ const k = C.current;
1288
+ k && (k.scrollTop = k.scrollHeight), (E = g.current) == null || E.scrollIntoView({ behavior: s });
1289
+ }, []);
1290
+ A(() => {
1291
+ requestAnimationFrame(() => le("auto"));
1292
+ }, [o, B, oe, M, le]), A(() => {
1293
+ if (!f && T.size === 0) return;
1294
+ const s = setInterval(() => le("auto"), 120);
1295
+ return () => clearInterval(s);
1296
+ }, [f, T, le]), A(() => {
894
1297
  try {
895
- typeof window < "u" && window.localStorage && window.localStorage.setItem("chatbot-messages", JSON.stringify(a));
1298
+ typeof window < "u" && window.localStorage && window.localStorage.setItem("chatbot-messages", JSON.stringify(o));
896
1299
  } catch {
897
1300
  }
898
- }, [a]), T(() => {
1301
+ }, [o]), A(() => {
899
1302
  try {
900
- typeof window < "u" && window.localStorage && window.localStorage.setItem("chatbot-mql_df", JSON.stringify(p));
1303
+ typeof window < "u" && window.localStorage && window.localStorage.setItem("chatbot-mql_df", JSON.stringify(i));
901
1304
  } catch {
902
1305
  }
903
- }, [p]), T(() => {
904
- D.current = a;
905
- }, [a]), T(() => {
906
- if (a.length === 0 && !O) {
907
- const e = { from: "ai", text: ve() };
908
- g([e]), V(!0), S(/* @__PURE__ */ new Set([0]));
1306
+ }, [i]), A(() => {
1307
+ U.current = o;
1308
+ }, [o]), A(() => {
1309
+ if (o.length === 0 && !ee) {
1310
+ const k = { from: "ai", text: Ye(l) };
1311
+ c([k]), te(!0), z(/* @__PURE__ */ new Set([0]));
909
1312
  }
910
- }, [a.length, O]);
911
- const G = J(async () => {
912
- const n = c.trim();
913
- if (!n || !K(c))
1313
+ }, [o.length, ee, l]), A(() => () => L(), [L]);
1314
+ const we = Y(async () => {
1315
+ var ye;
1316
+ if (f || M) return;
1317
+ const s = d.trim();
1318
+ if (!s || !de(d))
914
1319
  return;
915
- const e = { from: "human", text: n }, d = [...D.current, e];
916
- g(d), m(""), y(!0);
917
- const h = [...Q, { role: "human", content: n }], v = await ue(n, h, p, i, w);
918
- if (typeof v == "string") {
919
- const M = { from: "ai", text: v };
920
- g((f) => {
921
- const b = [...f, M];
922
- return S((L) => /* @__PURE__ */ new Set([...L, b.length - 1])), b;
923
- });
924
- } else {
925
- const M = { from: "ai", text: v.reply };
926
- g((f) => {
927
- const b = [...f, M];
928
- return S((L) => /* @__PURE__ */ new Set([...L, b.length - 1])), b;
929
- }), v.mqlDf && Array.isArray(v.mqlDf) && l(v.mqlDf);
1320
+ R(!1), L(), (ye = D.current) == null || ye.abort();
1321
+ const k = new AbortController();
1322
+ D.current = k;
1323
+ const E = k.signal, V = { from: "human", text: s }, F = U.current, Le = [...F, V];
1324
+ c(Le), x(""), v(!0);
1325
+ let ge = s;
1326
+ if (i && i.length > 0 && !re) {
1327
+ const y = F.filter((N) => N.from === "ai").pop();
1328
+ y && y.text && y.text.trim() !== "" && (ge = s + "." + y.text, ne(!0));
930
1329
  }
931
- y(!1);
932
- }, [c, i, w, p]), W = J(() => {
933
- g([]), l([]), S(/* @__PURE__ */ new Set()), V(!1);
1330
+ const Ie = [..._, { role: "human", content: s }];
1331
+ b(() => {
1332
+ var y;
1333
+ R(!0), (y = D.current) == null || y.abort(), v(!1);
1334
+ });
934
1335
  try {
935
- typeof window < "u" && window.localStorage && (window.localStorage.removeItem("chatbot-messages"), window.localStorage.removeItem("chatbot-mql_df"));
1336
+ const y = await Ve(ge, Ie, i, n, a, E);
1337
+ if (L(), typeof y == "string") {
1338
+ const N = { from: "ai", text: y };
1339
+ c((J) => {
1340
+ const X = [...J, N];
1341
+ return z((pe) => /* @__PURE__ */ new Set([...pe, X.length - 1])), X;
1342
+ }), (y.startsWith("⚠️") || y.startsWith("❌")) && R(!0);
1343
+ } else {
1344
+ const N = { from: "ai", text: y.reply };
1345
+ c((J) => {
1346
+ const X = [...J, N];
1347
+ return z((pe) => /* @__PURE__ */ new Set([...pe, X.length - 1])), X;
1348
+ }), y.mqlDf && Array.isArray(y.mqlDf) && w(y.mqlDf), y.reply && (y.reply.startsWith("⚠️") || y.reply.startsWith("❌")) && R(!0), y.chatHistoryLimitExceeded && se(!0);
1349
+ }
1350
+ } catch (y) {
1351
+ if (L(), y.name === "AbortError")
1352
+ return;
1353
+ R(!0);
1354
+ const N = y.message || "Something went wrong. Please try again.";
1355
+ c((J) => [...J, { from: "ai", text: `⚠️ ${N}` }]);
1356
+ } finally {
1357
+ v(!1);
1358
+ }
1359
+ }, [d, n, a, i, re, _, M, L, b]), je = Y(() => {
1360
+ var s;
1361
+ L(), (s = D.current) == null || s.abort(), R(!1), se(!1), c([]), z(/* @__PURE__ */ new Set()), te(!1), ne(!1);
1362
+ try {
1363
+ typeof window < "u" && window.localStorage && window.localStorage.removeItem("chatbot-messages");
936
1364
  } catch {
937
1365
  }
938
- R(!1);
939
- }, []), Y = J(async () => {
940
- if (!p || p.length === 0) {
1366
+ u(!1);
1367
+ }, [L]), fe = Y(async () => {
1368
+ var s, k, E;
1369
+ if (!i || i.length === 0) {
941
1370
  console.warn("No mql_df data available for PDF download");
942
1371
  return;
943
1372
  }
944
1373
  try {
945
- y(!0), console.log("mql_df data for lead extraction:", p);
946
- const n = {
947
- name: p.find((e) => e.name)?.name || "Chat User",
948
- email: p.find((e) => e.email)?.email || "user@example.com",
949
- summary: `Chat conversation with ${a.length} messages. User asked: "${a.find((e) => e.from === "human")?.text || "No user messages"}"`
1374
+ v(!0), console.log("mql_df data for lead extraction:", i);
1375
+ const V = {
1376
+ name: ((s = i.find((F) => F.name)) == null ? void 0 : s.name) || "Chat User",
1377
+ email: ((k = i.find((F) => F.email)) == null ? void 0 : k.email) || "user@example.com",
1378
+ summary: `Chat conversation with ${o.length} messages. User asked: "${((E = o.find((F) => F.from === "human")) == null ? void 0 : E.text) || "No user messages"}"`
950
1379
  };
951
- console.log("Extracted lead row:", n), await ge(p, n, Q), console.log("PDF downloaded successfully");
952
- } catch (n) {
953
- console.error("Failed to download PDF:", n);
1380
+ console.log("Extracted lead row:", V), await Ae(i, V, _), console.log("PDF downloaded successfully");
1381
+ } catch (V) {
1382
+ console.error("Failed to download PDF:", V);
954
1383
  } finally {
955
- y(!1);
1384
+ v(!1);
956
1385
  }
957
- }, [p, a]);
958
- return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
1386
+ }, [i, o]);
1387
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(
959
1388
  "div",
960
1389
  {
961
1390
  className: "sw-ttyw-chatbot",
962
1391
  style: {
963
- ...k ? s.containerMinimized : I ? s.containerExpanded : s.container,
964
- "--swttyw-primary-color": q,
1392
+ ...h ? m.containerMinimized : H ? m.containerExpanded : m.container,
1393
+ "--swttyw-primary-color": t,
965
1394
  "--swttyw-avatar-image": "url('')",
966
1395
  "--swttyw-user-avatar-image": "url('')",
967
1396
  "--swttyw-background-color": "#F7F7F7",
@@ -970,97 +1399,97 @@ function Re({ title: o = "", agentId: i = "", discoveryAgentId: w = "", primaryC
970
1399
  "--swttyw-footer-font-size": "16px",
971
1400
  "--swttyw-user-background-image": "url('')"
972
1401
  },
973
- onClick: k ? () => B(!1) : void 0,
1402
+ onClick: h ? () => j(!1) : void 0,
974
1403
  children: [
975
- k ? (
1404
+ h ? (
976
1405
  /* Minimized State - Horizontal Button */
977
- /* @__PURE__ */ t.jsxs("div", { style: s.minimizedContent, children: [
978
- /* @__PURE__ */ t.jsxs("svg", { style: s.chatIcon, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
979
- /* @__PURE__ */ t.jsx("path", { d: "M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
980
- /* @__PURE__ */ t.jsx("path", { d: "M8 9H16", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }),
981
- /* @__PURE__ */ t.jsx("path", { d: "M8 13H12", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })
1406
+ /* @__PURE__ */ e.jsxs("div", { style: m.minimizedContent, children: [
1407
+ /* @__PURE__ */ e.jsxs("svg", { style: m.chatIcon, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1408
+ /* @__PURE__ */ e.jsx("path", { d: "M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1409
+ /* @__PURE__ */ e.jsx("path", { d: "M8 9H16", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }),
1410
+ /* @__PURE__ */ e.jsx("path", { d: "M8 13H12", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })
982
1411
  ] }),
983
- /* @__PURE__ */ t.jsx("div", { style: s.minimizedTitle, children: o })
1412
+ /* @__PURE__ */ e.jsx("div", { style: m.minimizedTitle, children: r })
984
1413
  ] })
985
1414
  ) : (
986
1415
  /* Full State - Header with Controls */
987
- /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-chat-header", style: s.header, children: [
988
- /* @__PURE__ */ t.jsx("div", { className: "sw-ttyw-name", style: s.name, children: o }),
989
- /* @__PURE__ */ t.jsxs("div", { style: s.headerActions, children: [
990
- /* @__PURE__ */ t.jsx(
1416
+ /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-header", style: m.header, children: [
1417
+ /* @__PURE__ */ e.jsx("div", { className: "sw-ttyw-name", style: m.name, children: r }),
1418
+ /* @__PURE__ */ e.jsxs("div", { style: m.headerActions, children: [
1419
+ /* @__PURE__ */ e.jsx(
991
1420
  "button",
992
1421
  {
993
- onClick: () => P((n) => !n),
994
- style: s.headerButton,
995
- title: I ? "Shrink chat" : "Expand chat",
996
- children: I ? /* @__PURE__ */ t.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
997
- /* @__PURE__ */ t.jsx("path", { d: "M9 4V9H4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
998
- /* @__PURE__ */ t.jsx("path", { d: "M15 4V9H20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
999
- /* @__PURE__ */ t.jsx("path", { d: "M9 20V15H4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1000
- /* @__PURE__ */ t.jsx("path", { d: "M15 20V15H20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1001
- ] }) : /* @__PURE__ */ t.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1002
- /* @__PURE__ */ t.jsx("path", { d: "M4 9V4H9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1003
- /* @__PURE__ */ t.jsx("path", { d: "M20 9V4H15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1004
- /* @__PURE__ */ t.jsx("path", { d: "M4 15V20H9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1005
- /* @__PURE__ */ t.jsx("path", { d: "M20 15V20H15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1422
+ onClick: () => W((s) => !s),
1423
+ style: m.headerButton,
1424
+ title: H ? "Shrink chat" : "Expand chat",
1425
+ 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: [
1426
+ /* @__PURE__ */ e.jsx("path", { d: "M9 4V9H4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1427
+ /* @__PURE__ */ e.jsx("path", { d: "M15 4V9H20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1428
+ /* @__PURE__ */ e.jsx("path", { d: "M9 20V15H4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1429
+ /* @__PURE__ */ e.jsx("path", { d: "M15 20V15H20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1430
+ ] }) : /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1431
+ /* @__PURE__ */ e.jsx("path", { d: "M4 9V4H9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1432
+ /* @__PURE__ */ e.jsx("path", { d: "M20 9V4H15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1433
+ /* @__PURE__ */ e.jsx("path", { d: "M4 15V20H9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1434
+ /* @__PURE__ */ e.jsx("path", { d: "M20 15V20H15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1006
1435
  ] })
1007
1436
  }
1008
1437
  ),
1009
- /* @__PURE__ */ t.jsx(
1438
+ /* @__PURE__ */ e.jsx(
1010
1439
  "button",
1011
1440
  {
1012
1441
  onClick: () => {
1013
- k || P(!1), B(!k);
1442
+ h || W(!1), j(!h);
1014
1443
  },
1015
- style: s.headerButton,
1016
- title: k ? "Maximize chat" : "Minimize chat",
1017
- children: /* @__PURE__ */ t.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsx("path", { d: "M6 9H18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) })
1444
+ style: m.headerButton,
1445
+ title: h ? "Maximize chat" : "Minimize chat",
1446
+ children: /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e.jsx("path", { d: "M6 9H18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) })
1018
1447
  }
1019
1448
  ),
1020
- p && p.length > 0 && /* @__PURE__ */ t.jsx(
1449
+ i && i.length > 0 && /* @__PURE__ */ e.jsx(
1021
1450
  "button",
1022
1451
  {
1023
- onClick: Y,
1024
- style: s.headerButton,
1452
+ onClick: fe,
1453
+ style: m.headerButton,
1025
1454
  title: "Download PDF Report",
1026
- disabled: u,
1027
- children: /* @__PURE__ */ t.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1028
- /* @__PURE__ */ t.jsx("path", { d: "M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1029
- /* @__PURE__ */ t.jsx("path", { d: "M7 10L12 15L17 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1030
- /* @__PURE__ */ t.jsx("path", { d: "M12 15V3", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1455
+ disabled: f,
1456
+ children: /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1457
+ /* @__PURE__ */ e.jsx("path", { d: "M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1458
+ /* @__PURE__ */ e.jsx("path", { d: "M7 10L12 15L17 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1459
+ /* @__PURE__ */ e.jsx("path", { d: "M12 15V3", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1031
1460
  ] })
1032
1461
  }
1033
1462
  ),
1034
- /* @__PURE__ */ t.jsx(
1463
+ /* @__PURE__ */ e.jsx(
1035
1464
  "button",
1036
1465
  {
1037
- onClick: () => R(!0),
1038
- style: s.headerButton,
1466
+ onClick: () => u(!0),
1467
+ style: m.headerButton,
1039
1468
  title: "Clear chat",
1040
- children: /* @__PURE__ */ t.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1041
- /* @__PURE__ */ t.jsx("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1042
- /* @__PURE__ */ t.jsx("path", { d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1043
- /* @__PURE__ */ t.jsx("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1044
- /* @__PURE__ */ t.jsx("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1469
+ children: /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1470
+ /* @__PURE__ */ e.jsx("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1471
+ /* @__PURE__ */ e.jsx("path", { d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1472
+ /* @__PURE__ */ e.jsx("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1473
+ /* @__PURE__ */ e.jsx("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1045
1474
  ] })
1046
1475
  }
1047
1476
  )
1048
1477
  ] })
1049
1478
  ] })
1050
1479
  ),
1051
- !k && /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-chat-section", style: { flexGrow: 1, display: "flex", flexDirection: "column" }, children: [
1052
- /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-messages", style: s.chatSection, children: [
1053
- a.length === 0 && !u && /* @__PURE__ */ t.jsx("div", { className: "sw-ttyw-empty-state", style: {
1480
+ !h && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-section", style: { flexGrow: 1, display: "flex", flexDirection: "column" }, children: [
1481
+ /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-messages", style: m.chatSection, ref: C, children: [
1482
+ o.length === 0 && !f && /* @__PURE__ */ e.jsx("div", { className: "sw-ttyw-empty-state", style: {
1054
1483
  display: "flex",
1055
1484
  flexDirection: "column",
1056
1485
  alignItems: "center",
1057
1486
  justifyContent: "center",
1058
1487
  height: "100%",
1059
1488
  position: "relative"
1060
- }, children: /* @__PURE__ */ t.jsx(
1489
+ }, children: /* @__PURE__ */ e.jsx(
1061
1490
  "img",
1062
1491
  {
1063
- src: he,
1492
+ src: Te,
1064
1493
  alt: "Superwise Logo",
1065
1494
  style: {
1066
1495
  width: "350px",
@@ -1068,99 +1497,141 @@ function Re({ title: o = "", agentId: i = "", discoveryAgentId: w = "", primaryC
1068
1497
  opacity: 0.8,
1069
1498
  objectFit: "contain"
1070
1499
  },
1071
- onError: (n) => {
1072
- console.log("Logo failed to load, using fallback"), n.target.style.display = "none";
1500
+ onError: (s) => {
1501
+ console.log("Logo failed to load, using fallback"), s.target.style.display = "none";
1073
1502
  }
1074
1503
  }
1075
1504
  ) }),
1076
- a.map((n, e) => /* @__PURE__ */ t.jsx(
1077
- be,
1505
+ o.map((s, k) => /* @__PURE__ */ e.jsx(
1506
+ Be,
1078
1507
  {
1079
- msg: n,
1080
- isTyping: X.has(e),
1508
+ msg: s,
1509
+ isTyping: T.has(k),
1081
1510
  onTypingComplete: () => {
1082
- S((r) => {
1083
- const d = new Set(r);
1084
- return d.delete(e), d;
1511
+ z((E) => {
1512
+ const V = new Set(E);
1513
+ return V.delete(k), V;
1085
1514
  });
1086
1515
  }
1087
1516
  },
1088
- e
1517
+ k
1089
1518
  )),
1090
- N && /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-validation-message", children: [
1091
- /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: "⚠️" }),
1092
- /* @__PURE__ */ t.jsx("span", { children: N })
1519
+ B && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-validation-message", children: [
1520
+ /* @__PURE__ */ e.jsx("span", { className: "error-icon", children: "⚠️" }),
1521
+ /* @__PURE__ */ e.jsx("span", { children: B })
1093
1522
  ] }),
1094
- u && /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-message other message-loading", style: { ...s.message, ...s.messageOther }, children: [
1095
- /* @__PURE__ */ t.jsx("div", { className: "message-avatar", style: s.messageAvatar, children: /* @__PURE__ */ t.jsx(
1096
- "img",
1097
- {
1098
- src: se,
1099
- alt: "AI Avatar",
1100
- style: {
1101
- width: "20px",
1102
- height: "20px",
1103
- borderRadius: "50%",
1104
- objectFit: "cover"
1523
+ oe && /* @__PURE__ */ e.jsx("div", { className: "sw-ttyw-contact-cta", children: /* @__PURE__ */ e.jsxs(
1524
+ "a",
1525
+ {
1526
+ href: ie,
1527
+ target: "_blank",
1528
+ rel: "noopener noreferrer",
1529
+ className: "sw-ttyw-cta-button",
1530
+ children: [
1531
+ /* @__PURE__ */ e.jsx("span", { className: "sw-ttyw-cta-icon", "aria-hidden": !0, children: "✉" }),
1532
+ "Contact Sales"
1533
+ ]
1534
+ }
1535
+ ) }),
1536
+ M && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-limit-exceeded", children: [
1537
+ /* @__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." }),
1538
+ /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-limit-action-buttons", children: [
1539
+ /* @__PURE__ */ e.jsxs(
1540
+ "button",
1541
+ {
1542
+ type: "button",
1543
+ className: "sw-ttyw-limit-download-pdf",
1544
+ onClick: fe,
1545
+ disabled: f,
1546
+ children: [
1547
+ /* @__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: [
1548
+ /* @__PURE__ */ e.jsx("path", { d: "M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1549
+ /* @__PURE__ */ e.jsx("path", { d: "M7 10L12 15L17 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1550
+ /* @__PURE__ */ e.jsx("path", { d: "M12 15V3", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1551
+ ] }),
1552
+ "Download Chat"
1553
+ ]
1105
1554
  }
1106
- }
1107
- ) }),
1108
- /* @__PURE__ */ t.jsxs("div", { className: "message-content", style: s.messageContent, children: [
1109
- /* @__PURE__ */ t.jsx("div", { className: "typing typing-1" }),
1110
- /* @__PURE__ */ t.jsx("div", { className: "typing typing-2" }),
1111
- /* @__PURE__ */ t.jsx("div", { className: "typing typing-3" })
1555
+ ),
1556
+ /* @__PURE__ */ e.jsxs(
1557
+ "button",
1558
+ {
1559
+ type: "button",
1560
+ className: "sw-ttyw-limit-clear-history",
1561
+ onClick: () => u(!0),
1562
+ children: [
1563
+ /* @__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: [
1564
+ /* @__PURE__ */ e.jsx("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1565
+ /* @__PURE__ */ e.jsx("path", { d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1566
+ /* @__PURE__ */ e.jsx("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
1567
+ /* @__PURE__ */ e.jsx("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
1568
+ ] }),
1569
+ "Clear History"
1570
+ ]
1571
+ }
1572
+ )
1573
+ ] })
1574
+ ] }),
1575
+ f && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-message other message-loading", style: { ...m.message, ...m.messageOther }, children: [
1576
+ /* @__PURE__ */ e.jsx("div", { className: "message-avatar", style: m.messageAvatar, children: /* @__PURE__ */ e.jsx(Ee, { width: 20, height: 20 }) }),
1577
+ /* @__PURE__ */ e.jsxs("div", { className: "message-content", style: m.messageContent, children: [
1578
+ /* @__PURE__ */ e.jsx("div", { className: "typing typing-1" }),
1579
+ /* @__PURE__ */ e.jsx("div", { className: "typing typing-2" }),
1580
+ /* @__PURE__ */ e.jsx("div", { className: "typing typing-3" })
1112
1581
  ] })
1113
1582
  ] }),
1114
- /* @__PURE__ */ t.jsx("div", { ref: H })
1583
+ /* @__PURE__ */ e.jsx("div", { ref: g })
1115
1584
  ] }),
1116
- /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-chat-input-section", style: s.inputSection, children: [
1117
- /* @__PURE__ */ t.jsx(
1585
+ /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-input-section", style: m.inputSection, children: [
1586
+ /* @__PURE__ */ e.jsx(
1118
1587
  "textarea",
1119
1588
  {
1120
1589
  className: "sw-ttyw-input",
1121
- placeholder: "Please ask question here",
1122
- value: c,
1123
- onChange: (n) => {
1124
- m(n.target.value), N && A("");
1590
+ placeholder: M ? "Chat limit reached." : "Please ask question here",
1591
+ value: d,
1592
+ onChange: (s) => {
1593
+ x(s.target.value), B && P("");
1125
1594
  },
1126
1595
  maxLength: 1e3,
1127
- style: s.textarea,
1128
- onKeyDown: (n) => n.key === "Enter" && !n.shiftKey && (n.preventDefault(), G())
1596
+ disabled: f || M,
1597
+ style: m.textarea,
1598
+ onKeyDown: (s) => s.key === "Enter" && !s.shiftKey && (s.preventDefault(), we())
1129
1599
  }
1130
1600
  ),
1131
- /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-chat-input-content", style: s.inputFooter, children: [
1132
- /* @__PURE__ */ t.jsxs("small", { id: "sw-ttyw-chat-textbox-status", style: s.characterCount, children: [
1133
- /* @__PURE__ */ t.jsx("span", { children: c.length }),
1601
+ /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-input-content", style: m.inputFooter, children: [
1602
+ /* @__PURE__ */ e.jsxs("small", { id: "sw-ttyw-chat-textbox-status", style: m.characterCount, children: [
1603
+ /* @__PURE__ */ e.jsx("span", { children: d.length }),
1134
1604
  "/1000"
1135
1605
  ] }),
1136
- /* @__PURE__ */ t.jsx(
1606
+ /* @__PURE__ */ e.jsx(
1137
1607
  "button",
1138
1608
  {
1139
1609
  id: "sw-ttyw-chat-send-message",
1140
- onClick: G,
1610
+ onClick: we,
1141
1611
  "aria-label": "Send message",
1142
- style: s.sendButton,
1143
- children: /* @__PURE__ */ t.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: [
1144
- /* @__PURE__ */ t.jsx("path", { d: "M0 0h24v24H0z", fill: "none" }),
1145
- /* @__PURE__ */ t.jsx("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })
1612
+ disabled: f || M,
1613
+ style: m.sendButton,
1614
+ 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: [
1615
+ /* @__PURE__ */ e.jsx("path", { d: "M0 0h24v24H0z", fill: "none" }),
1616
+ /* @__PURE__ */ e.jsx("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" })
1146
1617
  ] })
1147
1618
  }
1148
1619
  )
1149
1620
  ] })
1150
1621
  ] })
1151
1622
  ] }),
1152
- j && /* @__PURE__ */ t.jsxs("div", { className: "swttyw-modal swttyw-modal-clear-history", style: s.modalOverlay, children: [
1153
- /* @__PURE__ */ t.jsx("div", { className: "swtty-modal-header" }),
1154
- /* @__PURE__ */ t.jsxs("div", { className: "swtty-modal-body", style: s.modalBody, children: [
1155
- /* @__PURE__ */ t.jsx("div", { className: "swtty-content", children: "Are you sure you want to delete the chat history?" }),
1156
- /* @__PURE__ */ t.jsxs("div", { className: "swtty-action", style: s.modalActions, children: [
1157
- /* @__PURE__ */ t.jsx(
1623
+ I && /* @__PURE__ */ e.jsxs("div", { className: "swttyw-modal swttyw-modal-clear-history", style: m.modalOverlay, children: [
1624
+ /* @__PURE__ */ e.jsx("div", { className: "swtty-modal-header" }),
1625
+ /* @__PURE__ */ e.jsxs("div", { className: "swtty-modal-body", style: m.modalBody, children: [
1626
+ /* @__PURE__ */ e.jsx("div", { className: "swtty-content", children: "Are you sure you want to delete the chat history?" }),
1627
+ /* @__PURE__ */ e.jsxs("div", { className: "swtty-action", style: m.modalActions, children: [
1628
+ /* @__PURE__ */ e.jsx(
1158
1629
  "input",
1159
1630
  {
1160
1631
  type: "button",
1161
1632
  className: "swttyw-btn swttyw-btn-primary",
1162
1633
  id: "swttyw-btn-clear-history-yes",
1163
- onClick: W,
1634
+ onClick: je,
1164
1635
  value: "Yes",
1165
1636
  style: {
1166
1637
  background: "var(--swttyw-primary-color)",
@@ -1173,13 +1644,13 @@ function Re({ title: o = "", agentId: i = "", discoveryAgentId: w = "", primaryC
1173
1644
  }
1174
1645
  }
1175
1646
  ),
1176
- /* @__PURE__ */ t.jsx(
1647
+ /* @__PURE__ */ e.jsx(
1177
1648
  "input",
1178
1649
  {
1179
1650
  type: "button",
1180
1651
  className: "swttyw-btn swttyw-btn-primary-inverse",
1181
1652
  id: "swttyw-btn-clear-history-no",
1182
- onClick: () => R(!1),
1653
+ onClick: () => u(!1),
1183
1654
  value: "No",
1184
1655
  style: {
1185
1656
  background: "transparent",
@@ -1194,16 +1665,16 @@ function Re({ title: o = "", agentId: i = "", discoveryAgentId: w = "", primaryC
1194
1665
  )
1195
1666
  ] })
1196
1667
  ] }),
1197
- /* @__PURE__ */ t.jsx("div", { className: "swtty-modal-footer" })
1668
+ /* @__PURE__ */ e.jsx("div", { className: "swtty-modal-footer" })
1198
1669
  ] }),
1199
- !k && /* @__PURE__ */ t.jsxs("div", { className: "sw-ttyw-chat-footer", style: s.footer, children: [
1670
+ !h && /* @__PURE__ */ e.jsxs("div", { className: "sw-ttyw-chat-footer", style: m.footer, children: [
1200
1671
  "Powered by ",
1201
- /* @__PURE__ */ t.jsx("a", { href: "https://superwise.ai/", className: "ml-1", target: "_new", style: { marginLeft: "0.25rem", lineHeight: 0 }, children: /* @__PURE__ */ t.jsx("img", { src: we, alt: "SUPERWISE®", height: "20" }) })
1672
+ /* @__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(Fe, { height: 20 }) })
1202
1673
  ] })
1203
1674
  ]
1204
1675
  }
1205
1676
  ) });
1206
1677
  }
1207
1678
  export {
1208
- Re as Chatbot
1679
+ Ge as Chatbot
1209
1680
  };