@evelan/jexity-widget 0.11.7 → 0.11.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.
- package/dist/index.mjs +334 -305
- package/dist/index.mjs.map +1 -1
- package/dist/react.mjs +226 -197
- package/dist/react.mjs.map +1 -1
- package/dist/types/features/chat/components/BotMessage.d.ts.map +1 -1
- package/dist/types/features/chat/components/MessageList.d.ts.map +1 -1
- package/dist/types/features/chat/components/SourcesRow.d.ts.map +1 -1
- package/dist/types/i18n/locales/de.d.ts.map +1 -1
- package/dist/types/i18n/locales/en.d.ts +14 -0
- package/dist/types/i18n/locales/en.d.ts.map +1 -1
- package/dist/widget.js +22 -14
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/react.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function au() {
|
|
|
46
46
|
throw new Error("useJexityChat must be used within a <JexityChatProvider>");
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
var it, b, Qr, Fr, he, Fn, Dr, Ur, Br, mn,
|
|
49
|
+
var it, b, Qr, Fr, he, Fn, Dr, Ur, Br, mn, Zt, Gt, Vr, Ge = {}, Hr = [], mo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ot = Array.isArray;
|
|
50
50
|
function ee(t, e) {
|
|
51
51
|
for (var n in e) t[n] = e[n];
|
|
52
52
|
return t;
|
|
@@ -58,9 +58,9 @@ function U(t, e, n) {
|
|
|
58
58
|
var r, i, o, s = {};
|
|
59
59
|
for (o in e) o == "key" ? r = e[o] : o == "ref" ? i = e[o] : s[o] = e[o];
|
|
60
60
|
if (arguments.length > 2 && (s.children = arguments.length > 3 ? it.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) s[o] === void 0 && (s[o] = t.defaultProps[o]);
|
|
61
|
-
return
|
|
61
|
+
return He(t, s, r, i, null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function He(t, e, n, r, i) {
|
|
64
64
|
var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++Qr, __i: -1, __u: 0 };
|
|
65
65
|
return i == null && b.vnode != null && b.vnode(o), o;
|
|
66
66
|
}
|
|
@@ -70,7 +70,7 @@ function xo() {
|
|
|
70
70
|
function Q(t) {
|
|
71
71
|
return t.children;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function W(t, e) {
|
|
74
74
|
this.props = t, this.context = e;
|
|
75
75
|
}
|
|
76
76
|
function Te(t, e) {
|
|
@@ -78,38 +78,38 @@ function Te(t, e) {
|
|
|
78
78
|
for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
|
|
79
79
|
return typeof t.type == "function" ? Te(t) : null;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Wr(t) {
|
|
82
82
|
var e, n;
|
|
83
83
|
if ((t = t.__) != null && t.__c != null) {
|
|
84
84
|
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) {
|
|
85
85
|
t.__e = t.__c.base = n.__e;
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return Wr(t);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
function Yt(t) {
|
|
92
92
|
(!t.__d && (t.__d = !0) && he.push(t) && !bt.__r++ || Fn != b.debounceRendering) && ((Fn = b.debounceRendering) || Dr)(bt);
|
|
93
93
|
}
|
|
94
94
|
function bt() {
|
|
95
|
-
for (var t, e, n, r, i, o, s, l = 1; he.length; ) he.length > l && he.sort(Ur), t = he.shift(), l = he.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, o = [], s = [], e.__P && ((n = ee({}, r)).__v = r.__v + 1, b.vnode && b.vnode(n), bn(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, o, i ?? Te(r), !!(32 & r.__u), s), n.__v = r.__v, n.__.__k[n.__i] = n,
|
|
95
|
+
for (var t, e, n, r, i, o, s, l = 1; he.length; ) he.length > l && he.sort(Ur), t = he.shift(), l = he.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, o = [], s = [], e.__P && ((n = ee({}, r)).__v = r.__v + 1, b.vnode && b.vnode(n), bn(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, o, i ?? Te(r), !!(32 & r.__u), s), n.__v = r.__v, n.__.__k[n.__i] = n, Zr(o, n, s), r.__e = r.__ = null, n.__e != i && Wr(n)));
|
|
96
96
|
bt.__r = 0;
|
|
97
97
|
}
|
|
98
98
|
function Jr(t, e, n, r, i, o, s, l, a, u, d) {
|
|
99
|
-
var h, p, f, g, m, x, y, v = r && r.__k ||
|
|
100
|
-
for (a = bo(n, e, v, a, R), h = 0; h < R; h++) (f = n.__k[h]) != null && (p = f.__i == -1 ?
|
|
99
|
+
var h, p, f, g, m, x, y, v = r && r.__k || Hr, R = e.length;
|
|
100
|
+
for (a = bo(n, e, v, a, R), h = 0; h < R; h++) (f = n.__k[h]) != null && (p = f.__i == -1 ? Ge : v[f.__i] || Ge, f.__i = h, x = bn(t, f, p, i, o, s, l, a, u, d), g = f.__e, f.ref && p.ref != f.ref && (p.ref && vn(p.ref, null, f), d.push(f.ref, f.__c || g, f)), m == null && g != null && (m = g), (y = !!(4 & f.__u)) || p.__k === f.__k ? a = Kr(f, a, t, y) : typeof f.type == "function" && x !== void 0 ? a = x : g && (a = g.nextSibling), f.__u &= -7);
|
|
101
101
|
return n.__e = m, a;
|
|
102
102
|
}
|
|
103
103
|
function bo(t, e, n, r, i) {
|
|
104
104
|
var o, s, l, a, u, d = n.length, h = d, p = 0;
|
|
105
|
-
for (t.__k = new Array(i), o = 0; o < i; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (a = o + p, (s = t.__k[o] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ?
|
|
105
|
+
for (t.__k = new Array(i), o = 0; o < i; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (a = o + p, (s = t.__k[o] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? He(null, s, null, null, null) : ot(s) ? He(Q, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? He(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s).__ = t, s.__b = t.__b + 1, l = null, (u = s.__i = vo(s, n, a, h)) != -1 && (h--, (l = n[u]) && (l.__u |= 2)), l == null || l.__v == null ? (u == -1 && (i > d ? p-- : i < d && p++), typeof s.type != "function" && (s.__u |= 4)) : u != a && (u == a - 1 ? p-- : u == a + 1 ? p++ : (u > a ? p-- : p++, s.__u |= 4))) : t.__k[o] = null;
|
|
106
106
|
if (h) for (o = 0; o < d; o++) (l = n[o]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = Te(l)), Yr(l, l));
|
|
107
107
|
return r;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Kr(t, e, n, r) {
|
|
110
110
|
var i, o;
|
|
111
111
|
if (typeof t.type == "function") {
|
|
112
|
-
for (i = t.__k, o = 0; i && o < i.length; o++) i[o] && (i[o].__ = t, e =
|
|
112
|
+
for (i = t.__k, o = 0; i && o < i.length; o++) i[o] && (i[o].__ = t, e = Kr(i[o], e, n, r));
|
|
113
113
|
return e;
|
|
114
114
|
}
|
|
115
115
|
t.__e != e && (r && (e && t.type && !e.parentNode && (e = Te(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
|
|
@@ -141,7 +141,7 @@ function ut(t, e, n, r, i) {
|
|
|
141
141
|
if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || Dn(t.style, e, "");
|
|
142
142
|
if (n) for (e in n) r && n[e] == r[e] || Dn(t.style, e, n[e]);
|
|
143
143
|
}
|
|
144
|
-
else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(Br, "$1")), s = e.toLowerCase(), e = s in t || e == "onFocusOut" || e == "onFocusIn" ? s.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + o] = n, n ? r ? n.u = r.u : (n.u = mn, t.addEventListener(e, o ?
|
|
144
|
+
else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(Br, "$1")), s = e.toLowerCase(), e = s in t || e == "onFocusOut" || e == "onFocusIn" ? s.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + o] = n, n ? r ? n.u = r.u : (n.u = mn, t.addEventListener(e, o ? Gt : Zt, o)) : t.removeEventListener(e, o ? Gt : Zt, o);
|
|
145
145
|
else {
|
|
146
146
|
if (i == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
147
147
|
else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t) try {
|
|
@@ -163,30 +163,30 @@ function Un(t) {
|
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
function bn(t, e, n, r, i, o, s, l, a, u) {
|
|
166
|
-
var d, h, p, f, g, m, x, y, v, R,
|
|
166
|
+
var d, h, p, f, g, m, x, y, v, R, K, se, B, Nn, ct, ze, Lt, Z = e.type;
|
|
167
167
|
if (e.constructor != null) return null;
|
|
168
168
|
128 & n.__u && (a = !!(32 & n.__u), o = [l = e.__e = n.__e]), (d = b.__b) && d(e);
|
|
169
|
-
e: if (typeof
|
|
170
|
-
if (y = e.props, v = "prototype" in
|
|
169
|
+
e: if (typeof Z == "function") try {
|
|
170
|
+
if (y = e.props, v = "prototype" in Z && Z.prototype.render, R = (d = Z.contextType) && r[d.__c], K = d ? R ? R.props.value : d.__ : r, n.__c ? x = (h = e.__c = n.__c).__ = h.__E : (v ? e.__c = h = new Z(y, K) : (e.__c = h = new W(y, K), h.constructor = Z, h.render = ko), R && R.sub(h), h.props = y, h.state || (h.state = {}), h.context = K, h.__n = r, p = h.__d = !0, h.__h = [], h._sb = []), v && h.__s == null && (h.__s = h.state), v && Z.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = ee({}, h.__s)), ee(h.__s, Z.getDerivedStateFromProps(y, h.__s))), f = h.props, g = h.state, h.__v = e, p) v && Z.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), v && h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
171
171
|
else {
|
|
172
|
-
if (v &&
|
|
172
|
+
if (v && Z.getDerivedStateFromProps == null && y !== f && h.componentWillReceiveProps != null && h.componentWillReceiveProps(y, K), !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(y, h.__s, K) === !1 || e.__v == n.__v) {
|
|
173
173
|
for (e.__v != n.__v && (h.props = y, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(ke) {
|
|
174
174
|
ke && (ke.__ = e);
|
|
175
175
|
}), se = 0; se < h._sb.length; se++) h.__h.push(h._sb[se]);
|
|
176
176
|
h._sb = [], h.__h.length && s.push(h);
|
|
177
177
|
break e;
|
|
178
178
|
}
|
|
179
|
-
h.componentWillUpdate != null && h.componentWillUpdate(y, h.__s,
|
|
179
|
+
h.componentWillUpdate != null && h.componentWillUpdate(y, h.__s, K), v && h.componentDidUpdate != null && h.__h.push(function() {
|
|
180
180
|
h.componentDidUpdate(f, g, m);
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
if (h.context =
|
|
183
|
+
if (h.context = K, h.props = y, h.__P = t, h.__e = !1, B = b.__r, Nn = 0, v) {
|
|
184
184
|
for (h.state = h.__s, h.__d = !1, B && B(e), d = h.render(h.props, h.state, h.context), ct = 0; ct < h._sb.length; ct++) h.__h.push(h._sb[ct]);
|
|
185
185
|
h._sb = [];
|
|
186
186
|
} else do
|
|
187
187
|
h.__d = !1, B && B(e), d = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
188
188
|
while (h.__d && ++Nn < 25);
|
|
189
|
-
h.state = h.__s, h.getChildContext != null && (r = ee(ee({}, r), h.getChildContext())), v && !p && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(f, g)), ze = d, d != null && d.type === Q && d.key == null && (ze =
|
|
189
|
+
h.state = h.__s, h.getChildContext != null && (r = ee(ee({}, r), h.getChildContext())), v && !p && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(f, g)), ze = d, d != null && d.type === Q && d.key == null && (ze = Gr(d.props.children)), l = Jr(t, ot(ze) ? ze : [ze], e, n, r, i, o, s, l, a, u), h.base = e.__e, e.__u &= -161, h.__h.length && s.push(h), x && (h.__E = h.__ = null);
|
|
190
190
|
} catch (ke) {
|
|
191
191
|
if (e.__v = null, a || o != null) if (ke.then) {
|
|
192
192
|
for (e.__u |= a ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
@@ -204,7 +204,7 @@ function bn(t, e, n, r, i, o, s, l, a, u) {
|
|
|
204
204
|
function Xt(t) {
|
|
205
205
|
t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(Xt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Zr(t, e, n) {
|
|
208
208
|
for (var r = 0; r < n.length; r++) vn(n[r], n[++r], n[++r]);
|
|
209
209
|
b.__c && b.__c(e, t), t.some(function(i) {
|
|
210
210
|
try {
|
|
@@ -216,8 +216,8 @@ function Gr(t, e, n) {
|
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : ot(t) ? t.map(
|
|
219
|
+
function Gr(t) {
|
|
220
|
+
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : ot(t) ? t.map(Gr) : ee({}, t);
|
|
221
221
|
}
|
|
222
222
|
function yo(t, e, n, r, i, o, s, l, a) {
|
|
223
223
|
var u, d, h, p, f, g, m, x = n.props, y = e.props, v = e.type;
|
|
@@ -233,7 +233,7 @@ function yo(t, e, n, r, i, o, s, l, a) {
|
|
|
233
233
|
}
|
|
234
234
|
if (v == null) x === y || l && t.data == y || (t.data = y);
|
|
235
235
|
else {
|
|
236
|
-
if (o = o && it.call(t.childNodes), x = n.props ||
|
|
236
|
+
if (o = o && it.call(t.childNodes), x = n.props || Ge, !l && o != null) for (x = {}, u = 0; u < t.attributes.length; u++) x[(f = t.attributes[u]).name] = f.value;
|
|
237
237
|
for (u in x) if (f = x[u], u != "children") {
|
|
238
238
|
if (u == "dangerouslySetInnerHTML") h = f;
|
|
239
239
|
else if (!(u in y)) {
|
|
@@ -276,7 +276,7 @@ function ko(t, e, n) {
|
|
|
276
276
|
}
|
|
277
277
|
function ge(t, e, n) {
|
|
278
278
|
var r, i, o, s;
|
|
279
|
-
e == document && (e = document.documentElement), b.__ && b.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, o = [], s = [], bn(e, t = (!r && n || e).__k = U(Q, null, [t]), i ||
|
|
279
|
+
e == document && (e = document.documentElement), b.__ && b.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, o = [], s = [], bn(e, t = (!r && n || e).__k = U(Q, null, [t]), i || Ge, Ge, e.namespaceURI, !r && n ? [n] : i ? null : e.firstChild ? it.call(e.childNodes) : null, o, !r && n ? n : i ? i.__e : e.firstChild, r, s), Zr(o, t, s);
|
|
280
280
|
}
|
|
281
281
|
function Xr(t, e) {
|
|
282
282
|
ge(t, e, Xr);
|
|
@@ -284,7 +284,7 @@ function Xr(t, e) {
|
|
|
284
284
|
function wo(t, e, n) {
|
|
285
285
|
var r, i, o, s, l = ee({}, t.props);
|
|
286
286
|
for (o in t.type && t.type.defaultProps && (s = t.type.defaultProps), e) o == "key" ? r = e[o] : o == "ref" ? i = e[o] : l[o] = e[o] === void 0 && s != null ? s[o] : e[o];
|
|
287
|
-
return arguments.length > 2 && (l.children = arguments.length > 3 ? it.call(arguments, 2) : n),
|
|
287
|
+
return arguments.length > 2 && (l.children = arguments.length > 3 ? it.call(arguments, 2) : n), He(t.type, l, r || t.key, i || t.ref, null);
|
|
288
288
|
}
|
|
289
289
|
function _o(t) {
|
|
290
290
|
function e(n) {
|
|
@@ -309,7 +309,7 @@ function _o(t) {
|
|
|
309
309
|
return n.children(r);
|
|
310
310
|
}).contextType = e, e;
|
|
311
311
|
}
|
|
312
|
-
it =
|
|
312
|
+
it = Hr.slice, b = { __e: function(t, e, n, r) {
|
|
313
313
|
for (var i, o, s; e = e.__; ) if ((i = e.__c) && !i.__) try {
|
|
314
314
|
if ((o = i.constructor) && o.getDerivedStateFromError != null && (i.setState(o.getDerivedStateFromError(t)), s = i.__d), i.componentDidCatch != null && (i.componentDidCatch(t, r || {}), s = i.__d), s) return i.__E = i;
|
|
315
315
|
} catch (l) {
|
|
@@ -318,14 +318,14 @@ it = Wr.slice, b = { __e: function(t, e, n, r) {
|
|
|
318
318
|
throw t;
|
|
319
319
|
} }, Qr = 0, Fr = function(t) {
|
|
320
320
|
return t != null && t.constructor == null;
|
|
321
|
-
},
|
|
321
|
+
}, W.prototype.setState = function(t, e) {
|
|
322
322
|
var n;
|
|
323
323
|
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = ee({}, this.state), typeof t == "function" && (t = t(ee({}, n), this.props)), t && ee(n, t), t != null && this.__v && (e && this._sb.push(e), Yt(this));
|
|
324
|
-
},
|
|
324
|
+
}, W.prototype.forceUpdate = function(t) {
|
|
325
325
|
this.__v && (this.__e = !0, t && this.__h.push(t), Yt(this));
|
|
326
|
-
},
|
|
326
|
+
}, W.prototype.render = Q, he = [], Dr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ur = function(t, e) {
|
|
327
327
|
return t.__v.__b - e.__v.__b;
|
|
328
|
-
}, bt.__r = 0, Br = /(PointerCapture)$|Capture$/i, mn = 0,
|
|
328
|
+
}, bt.__r = 0, Br = /(PointerCapture)$|Capture$/i, mn = 0, Zt = Un(!1), Gt = Un(!0), Vr = 0;
|
|
329
329
|
var jo = 0;
|
|
330
330
|
function c(t, e, n, r, i, o) {
|
|
331
331
|
e || (e = {});
|
|
@@ -335,7 +335,7 @@ function c(t, e, n, r, i, o) {
|
|
|
335
335
|
if (typeof t == "function" && (s = t.defaultProps)) for (l in s) a[l] === void 0 && (a[l] = s[l]);
|
|
336
336
|
return b.vnode && b.vnode(u), u;
|
|
337
337
|
}
|
|
338
|
-
var ce, j, zt, Bn, Ae = 0, ei = [], S = b, Vn = S.__b,
|
|
338
|
+
var ce, j, zt, Bn, Ae = 0, ei = [], S = b, Vn = S.__b, Hn = S.__r, Wn = S.diffed, Jn = S.__c, Kn = S.unmount, Zn = S.__;
|
|
339
339
|
function Me(t, e) {
|
|
340
340
|
S.__h && S.__h(j, t, Ae || e), Ae = 0;
|
|
341
341
|
var n = j.__H || (j.__H = { __: [], __h: [] });
|
|
@@ -439,15 +439,15 @@ function So() {
|
|
|
439
439
|
S.__b = function(t) {
|
|
440
440
|
j = null, Vn && Vn(t);
|
|
441
441
|
}, S.__ = function(t, e) {
|
|
442
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
442
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Zn && Zn(t, e);
|
|
443
443
|
}, S.__r = function(t) {
|
|
444
|
-
|
|
444
|
+
Hn && Hn(t), ce = 0;
|
|
445
445
|
var e = (j = t.__c).__H;
|
|
446
446
|
e && (zt === j ? (e.__h = [], j.__h = [], e.__.forEach(function(n) {
|
|
447
447
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
448
448
|
})) : (e.__h.forEach(gt), e.__h.forEach(en), e.__h = [], ce = 0)), zt = j;
|
|
449
449
|
}, S.diffed = function(t) {
|
|
450
|
-
|
|
450
|
+
Wn && Wn(t);
|
|
451
451
|
var e = t.__c;
|
|
452
452
|
e && e.__H && (e.__H.__h.length && (ei.push(e) !== 1 && Bn === S.requestAnimationFrame || ((Bn = S.requestAnimationFrame) || Co)(So)), e.__H.__.forEach(function(n) {
|
|
453
453
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
@@ -465,7 +465,7 @@ S.__b = function(t) {
|
|
|
465
465
|
}
|
|
466
466
|
}), Jn && Jn(t, e);
|
|
467
467
|
}, S.unmount = function(t) {
|
|
468
|
-
|
|
468
|
+
Kn && Kn(t);
|
|
469
469
|
var e, n = t.__c;
|
|
470
470
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
471
471
|
try {
|
|
@@ -475,12 +475,12 @@ S.__b = function(t) {
|
|
|
475
475
|
}
|
|
476
476
|
}), n.__H = void 0, e && S.__e(e, n.__v));
|
|
477
477
|
};
|
|
478
|
-
var
|
|
478
|
+
var Gn = typeof requestAnimationFrame == "function";
|
|
479
479
|
function Co(t) {
|
|
480
480
|
var e, n = function() {
|
|
481
|
-
clearTimeout(r),
|
|
481
|
+
clearTimeout(r), Gn && cancelAnimationFrame(e), setTimeout(t);
|
|
482
482
|
}, r = setTimeout(n, 35);
|
|
483
|
-
|
|
483
|
+
Gn && (e = requestAnimationFrame(n));
|
|
484
484
|
}
|
|
485
485
|
function gt(t) {
|
|
486
486
|
var e = j, n = t.__c;
|
|
@@ -549,7 +549,7 @@ function Ro(t, e) {
|
|
|
549
549
|
}
|
|
550
550
|
return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = t, r;
|
|
551
551
|
}
|
|
552
|
-
(nn.prototype = new
|
|
552
|
+
(nn.prototype = new W()).isPureReactComponent = !0, nn.prototype.shouldComponentUpdate = function(t, e) {
|
|
553
553
|
return tn(this.props, t) || tn(this.state, e);
|
|
554
554
|
};
|
|
555
555
|
var Yn = b.__b;
|
|
@@ -618,7 +618,7 @@ function De() {
|
|
|
618
618
|
b.unmount = function(t) {
|
|
619
619
|
var e = t.__c;
|
|
620
620
|
e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), er && er(t);
|
|
621
|
-
}, (mt.prototype = new
|
|
621
|
+
}, (mt.prototype = new W()).__c = function(t, e) {
|
|
622
622
|
var n = e.__c, r = this;
|
|
623
623
|
r.o == null && (r.o = []), r.o.push(n);
|
|
624
624
|
var i = pi(r.__v), o = !1, s = function() {
|
|
@@ -681,7 +681,7 @@ function Po(t, e) {
|
|
|
681
681
|
var n = U(Mo, { __v: t, h: e });
|
|
682
682
|
return n.containerInfo = e, n;
|
|
683
683
|
}
|
|
684
|
-
(De.prototype = new
|
|
684
|
+
(De.prototype = new W()).__a = function(t) {
|
|
685
685
|
var e = this, n = pi(e.__v), r = e.l.get(t);
|
|
686
686
|
return r[0]++, function(i) {
|
|
687
687
|
var o = function() {
|
|
@@ -710,8 +710,8 @@ function Fo(t, e, n) {
|
|
|
710
710
|
function Do(t, e, n) {
|
|
711
711
|
return Xr(t, e), typeof n == "function" && n(), t ? t.__c : null;
|
|
712
712
|
}
|
|
713
|
-
|
|
714
|
-
Object.defineProperty(
|
|
713
|
+
W.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
714
|
+
Object.defineProperty(W.prototype, t, { configurable: !0, get: function() {
|
|
715
715
|
return this["UNSAFE_" + t];
|
|
716
716
|
}, set: function(e) {
|
|
717
717
|
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
@@ -729,7 +729,7 @@ function Vo() {
|
|
|
729
729
|
b.event = function(t) {
|
|
730
730
|
return nr && (t = nr(t)), t.persist = Uo, t.isPropagationStopped = Bo, t.isDefaultPrevented = Vo, t.nativeEvent = t;
|
|
731
731
|
};
|
|
732
|
-
var wn,
|
|
732
|
+
var wn, Ho = { enumerable: !1, configurable: !0, get: function() {
|
|
733
733
|
return this.class;
|
|
734
734
|
} }, rr = b.vnode;
|
|
735
735
|
b.vnode = function(t) {
|
|
@@ -746,7 +746,7 @@ b.vnode = function(t) {
|
|
|
746
746
|
u.props.selected = i.value.indexOf(u.props.value) != -1;
|
|
747
747
|
})), r == "select" && i.defaultValue != null && (i.value = te(n.children).forEach(function(u) {
|
|
748
748
|
u.props.selected = i.multiple ? i.defaultValue.indexOf(u.props.value) != -1 : i.defaultValue == u.props.value;
|
|
749
|
-
})), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className",
|
|
749
|
+
})), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className", Ho)) : (n.className && !n.class || n.class && n.className) && (i.class = i.className = n.className), e.props = i;
|
|
750
750
|
})(t), t.$$typeof = fi, rr && rr(t);
|
|
751
751
|
};
|
|
752
752
|
var ir = b.__r;
|
|
@@ -759,7 +759,7 @@ b.diffed = function(t) {
|
|
|
759
759
|
var e = t.props, n = t.__e;
|
|
760
760
|
n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value), wn = null;
|
|
761
761
|
};
|
|
762
|
-
var
|
|
762
|
+
var Wo = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
763
763
|
return wn.__n[t.__c].props.value;
|
|
764
764
|
}, useCallback: Re, useContext: At, useDebugValue: ni, useDeferredValue: li, useEffect: T, useId: ri, useImperativeHandle: ti, useInsertionEffect: ui, useLayoutEffect: st, useMemo: J, useReducer: yn, useRef: ue, useState: C, useSyncExternalStore: si, useTransition: ci } } };
|
|
765
765
|
function Jo(t) {
|
|
@@ -768,13 +768,13 @@ function Jo(t) {
|
|
|
768
768
|
function It(t) {
|
|
769
769
|
return !!t && t.$$typeof === fi;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Ko(t) {
|
|
772
772
|
return It(t) && t.type === Q;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Zo(t) {
|
|
775
775
|
return !!t && !!t.displayName && (typeof t.displayName == "string" || t.displayName instanceof String) && t.displayName.startsWith("Memo(");
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Go(t) {
|
|
778
778
|
return It(t) ? wo.apply(null, arguments) : t;
|
|
779
779
|
}
|
|
780
780
|
function Yo(t) {
|
|
@@ -787,7 +787,7 @@ var es = function(t, e) {
|
|
|
787
787
|
return t(e);
|
|
788
788
|
}, ts = function(t, e) {
|
|
789
789
|
return t(e);
|
|
790
|
-
}, ns = Q, rs = It, _n = { useState: C, useId: ri, useReducer: yn, useEffect: T, useLayoutEffect: st, useInsertionEffect: ui, useTransition: ci, useDeferredValue: li, useSyncExternalStore: si, startTransition: ai, useRef: ue, useImperativeHandle: ti, useMemo: J, useCallback: Re, useContext: At, useDebugValue: ni, version: "18.3.1", Children: Io, render: Fo, hydrate: Do, unmountComponentAtNode: Yo, createPortal: Po, createElement: U, createContext: _o, createFactory: Jo, cloneElement:
|
|
790
|
+
}, ns = Q, rs = It, _n = { useState: C, useId: ri, useReducer: yn, useEffect: T, useLayoutEffect: st, useInsertionEffect: ui, useTransition: ci, useDeferredValue: li, useSyncExternalStore: si, startTransition: ai, useRef: ue, useImperativeHandle: ti, useMemo: J, useCallback: Re, useContext: At, useDebugValue: ni, version: "18.3.1", Children: Io, render: Fo, hydrate: Do, unmountComponentAtNode: Yo, createPortal: Po, createElement: U, createContext: _o, createFactory: Jo, cloneElement: Go, createRef: xo, Fragment: Q, isValidElement: It, isElement: rs, isFragment: Ko, isMemo: Zo, findDOMNode: Xo, Component: W, PureComponent: nn, memo: Ro, forwardRef: Ao, flushSync: ts, unstable_batchedUpdates: es, StrictMode: ns, Suspense: mt, SuspenseList: De, lazy: Eo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Wo }, X = [], D = [], is = Uint8Array, Qt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
791
791
|
for (var we = 0, os = Qt.length; we < os; ++we)
|
|
792
792
|
X[we] = Qt[we], D[Qt.charCodeAt(we)] = we;
|
|
793
793
|
D[45] = 62;
|
|
@@ -976,7 +976,7 @@ function $e(t) {
|
|
|
976
976
|
return n;
|
|
977
977
|
}
|
|
978
978
|
const ar = 16384;
|
|
979
|
-
function
|
|
979
|
+
function We(t) {
|
|
980
980
|
const e = JSON.stringify(t, (n, r) => r === void 0 ? "undefined" : typeof r == "bigint" ? `${r.toString()}n` : r);
|
|
981
981
|
if (e.length > ar) {
|
|
982
982
|
const n = "[...truncated]";
|
|
@@ -988,7 +988,7 @@ function He(t) {
|
|
|
988
988
|
}
|
|
989
989
|
function on(t, e, n, r) {
|
|
990
990
|
if (t === void 0) {
|
|
991
|
-
const s = n && ` (present at path ${n} in original object ${
|
|
991
|
+
const s = n && ` (present at path ${n} in original object ${We(
|
|
992
992
|
e
|
|
993
993
|
)})`;
|
|
994
994
|
throw new Error(
|
|
@@ -1039,11 +1039,11 @@ function on(t, e, n, r) {
|
|
|
1039
1039
|
return i;
|
|
1040
1040
|
}
|
|
1041
1041
|
function Ft(t, e, n, r) {
|
|
1042
|
-
return t ? `${e}${
|
|
1042
|
+
return t ? `${e}${We(
|
|
1043
1043
|
n
|
|
1044
|
-
)} is not a supported Convex type (present at path ${t} in original object ${
|
|
1044
|
+
)} is not a supported Convex type (present at path ${t} in original object ${We(
|
|
1045
1045
|
r
|
|
1046
|
-
)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.` : `${e}${
|
|
1046
|
+
)}). To learn about Convex's supported types, see https://docs.convex.dev/using/types.` : `${e}${We(
|
|
1047
1047
|
n
|
|
1048
1048
|
)} is not a supported Convex type.`;
|
|
1049
1049
|
}
|
|
@@ -1054,7 +1054,7 @@ var vs = Object.defineProperty, ys = (t, e, n) => e in t ? vs(t, e, { enumerable
|
|
|
1054
1054
|
const ks = /* @__PURE__ */ Symbol.for("ConvexError");
|
|
1055
1055
|
class vt extends (cr = Error, lr = ks, cr) {
|
|
1056
1056
|
constructor(e) {
|
|
1057
|
-
super(typeof e == "string" ? e :
|
|
1057
|
+
super(typeof e == "string" ? e : We(e)), Dt(this, "name", "ConvexError"), Dt(this, "data"), Dt(this, lr, !0), this.data = e;
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
const vi = () => Array.from({ length: 4 }, () => 0);
|
|
@@ -1175,10 +1175,10 @@ function dr(t, e, n) {
|
|
|
1175
1175
|
options: ne({ initialNumItems: r, id: i })
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
|
-
var Cs = Object.defineProperty, Rs = (t, e, n) => e in t ? Cs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
1178
|
+
var Cs = Object.defineProperty, Rs = (t, e, n) => e in t ? Cs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, G = (t, e, n) => Rs(t, typeof e != "symbol" ? e + "" : e, n);
|
|
1179
1179
|
class Ts {
|
|
1180
1180
|
constructor() {
|
|
1181
|
-
|
|
1181
|
+
G(this, "nextQueryId"), G(this, "querySetVersion"), G(this, "querySet"), G(this, "queryIdToToken"), G(this, "identityVersion"), G(this, "auth"), G(this, "outstandingQueriesOlderThanRestart"), G(this, "outstandingAuthOlderThanRestart"), G(this, "paused"), G(this, "pendingQuerySetModifications"), this.nextQueryId = 0, this.querySetVersion = 0, this.identityVersion = 0, this.querySet = /* @__PURE__ */ new Map(), this.queryIdToToken = /* @__PURE__ */ new Map(), this.outstandingQueriesOlderThanRestart = /* @__PURE__ */ new Set(), this.outstandingAuthOlderThanRestart = !1, this.paused = !1, this.pendingQuerySetModifications = /* @__PURE__ */ new Map();
|
|
1182
1182
|
}
|
|
1183
1183
|
hasSyncedPastLastReconnect() {
|
|
1184
1184
|
return this.outstandingQueriesOlderThanRestart.size === 0 && !this.outstandingAuthOlderThanRestart;
|
|
@@ -1804,7 +1804,7 @@ function Bt(t) {
|
|
|
1804
1804
|
const e = Ye(t);
|
|
1805
1805
|
return L.fromBytesLE(Array.from(e));
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function Hs(t) {
|
|
1808
1808
|
const e = new Uint8Array(t.toBytesLE());
|
|
1809
1809
|
return Xe(e);
|
|
1810
1810
|
}
|
|
@@ -1832,7 +1832,7 @@ function gr(t) {
|
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Ws(t) {
|
|
1836
1836
|
switch (t.type) {
|
|
1837
1837
|
case "Authenticate":
|
|
1838
1838
|
case "ModifyQuerySet":
|
|
@@ -1843,12 +1843,12 @@ function Hs(t) {
|
|
|
1843
1843
|
case "Connect":
|
|
1844
1844
|
return t.maxObservedTimestamp !== void 0 ? {
|
|
1845
1845
|
...t,
|
|
1846
|
-
maxObservedTimestamp:
|
|
1846
|
+
maxObservedTimestamp: Hs(t.maxObservedTimestamp)
|
|
1847
1847
|
} : { ...t, maxObservedTimestamp: void 0 };
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
var Js = Object.defineProperty,
|
|
1851
|
-
const
|
|
1850
|
+
var Js = Object.defineProperty, Ks = (t, e, n) => e in t ? Js(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, I = (t, e, n) => Ks(t, typeof e != "symbol" ? e + "" : e, n);
|
|
1851
|
+
const Zs = 1e3, Gs = 1001, Ys = 1005, Xs = 4040;
|
|
1852
1852
|
let xt;
|
|
1853
1853
|
function je() {
|
|
1854
1854
|
return xt === void 0 && (xt = Date.now()), typeof performance > "u" || !performance.now ? Date.now() : Math.round(xt + performance.now());
|
|
@@ -1887,7 +1887,7 @@ function ea(t) {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
class ta {
|
|
1889
1889
|
constructor(e, n, r, i, o, s) {
|
|
1890
|
-
this.markConnectionStateDirty = o, this.debug = s,
|
|
1890
|
+
this.markConnectionStateDirty = o, this.debug = s, I(this, "socket"), I(this, "connectionCount"), I(this, "_hasEverConnected", !1), I(this, "lastCloseReason"), I(this, "transitionChunkBuffer", null), I(this, "defaultInitialBackoff"), I(this, "maxBackoff"), I(this, "retries"), I(this, "serverInactivityThreshold"), I(this, "reconnectDueToServerInactivityTimeout"), I(this, "scheduledReconnect", null), I(this, "networkOnlineHandler", null), I(this, "pendingNetworkRecoveryInfo", null), I(this, "uri"), I(this, "onOpen"), I(this, "onResume"), I(this, "onMessage"), I(this, "webSocketConstructor"), I(this, "logger"), I(this, "onServerDisconnectError"), this.webSocketConstructor = r, this.socket = { state: "disconnected" }, this.connectionCount = 0, this.lastCloseReason = "InitialConnect", this.defaultInitialBackoff = 1e3, this.maxBackoff = 16e3, this.retries = 0, this.serverInactivityThreshold = 6e4, this.reconnectDueToServerInactivityTimeout = null, this.uri = e, this.onOpen = n.onOpen, this.onResume = n.onResume, this.onMessage = n.onMessage, this.onServerDisconnectError = n.onServerDisconnectError, this.logger = i, this.setupNetworkListener(), this.connect();
|
|
1891
1891
|
}
|
|
1892
1892
|
setSocketState(e) {
|
|
1893
1893
|
this.socket = e, this._logVerbose(
|
|
@@ -1990,7 +1990,7 @@ class ta {
|
|
|
1990
1990
|
}), this.onMessage(i).hasSyncedPastLastReconnect && (this.retries = 0, this.markConnectionStateDirty());
|
|
1991
1991
|
}
|
|
1992
1992
|
}, e.onclose = (n) => {
|
|
1993
|
-
if (this._logVerbose("begin ws.onclose"), this.transitionChunkBuffer = null, this.lastCloseReason === null && (this.lastCloseReason = n.reason || `closed with code ${n.code}`), n.code !==
|
|
1993
|
+
if (this._logVerbose("begin ws.onclose"), this.transitionChunkBuffer = null, this.lastCloseReason === null && (this.lastCloseReason = n.reason || `closed with code ${n.code}`), n.code !== Zs && n.code !== Gs && // This commonly gets fired on mobile apps when the app is backgrounded
|
|
1994
1994
|
n.code !== Ys && n.code !== Xs) {
|
|
1995
1995
|
let i = `WebSocket closed with code ${n.code}`;
|
|
1996
1996
|
n.reason && (i += `: ${n.reason}`), this.logger.log(i), this.onServerDisconnectError && n.reason && this.onServerDisconnectError(i);
|
|
@@ -2017,7 +2017,7 @@ class ta {
|
|
|
2017
2017
|
} : {}
|
|
2018
2018
|
};
|
|
2019
2019
|
if (this.socket.state === "ready" && this.socket.paused === "no") {
|
|
2020
|
-
const r =
|
|
2020
|
+
const r = Ws(e), i = JSON.stringify(r);
|
|
2021
2021
|
let o = !1;
|
|
2022
2022
|
try {
|
|
2023
2023
|
this.socket.ws.send(i), o = !0;
|
|
@@ -2560,7 +2560,7 @@ function pa(t) {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
return e.map(da);
|
|
2562
2562
|
}
|
|
2563
|
-
var fa = Object.defineProperty, ga = (t, e, n) => e in t ? fa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
2563
|
+
var fa = Object.defineProperty, ga = (t, e, n) => e in t ? fa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $ = (t, e, n) => ga(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2564
2564
|
class ma {
|
|
2565
2565
|
/**
|
|
2566
2566
|
* @param address - The url of your Convex deployment, often provided
|
|
@@ -2571,7 +2571,7 @@ class ma {
|
|
|
2571
2571
|
* @param options - See {@link BaseConvexClientOptions} for a full description.
|
|
2572
2572
|
*/
|
|
2573
2573
|
constructor(e, n, r) {
|
|
2574
|
-
if (
|
|
2574
|
+
if ($(this, "address"), $(this, "state"), $(this, "requestManager"), $(this, "webSocketManager"), $(this, "authenticationManager"), $(this, "remoteQuerySet"), $(this, "optimisticQueryResults"), $(this, "_transitionHandlerCounter", 0), $(this, "_nextRequestId"), $(this, "_onTransitionFns", /* @__PURE__ */ new Map()), $(this, "_sessionId"), $(this, "firstMessageReceived", !1), $(this, "debug"), $(this, "logger"), $(this, "maxObservedTimestamp"), $(this, "connectionStateSubscribers", /* @__PURE__ */ new Map()), $(this, "nextConnectionStateSubscriberId", 0), $(this, "_lastPublishedConnectionState"), $(this, "markConnectionStateDirty", () => {
|
|
2575
2575
|
Promise.resolve().then(() => {
|
|
2576
2576
|
const f = this.connectionState();
|
|
2577
2577
|
if (JSON.stringify(f) !== JSON.stringify(this._lastPublishedConnectionState)) {
|
|
@@ -2580,7 +2580,7 @@ class ma {
|
|
|
2580
2580
|
g(f);
|
|
2581
2581
|
}
|
|
2582
2582
|
});
|
|
2583
|
-
}),
|
|
2583
|
+
}), $(this, "mark", (f) => {
|
|
2584
2584
|
this.debug && ha(f, this.sessionId);
|
|
2585
2585
|
}), typeof e == "object")
|
|
2586
2586
|
throw new Error(
|
|
@@ -3820,10 +3820,10 @@ function Ra(t) {
|
|
|
3820
3820
|
"Convex function called with SyntheticEvent object. Did you use a Convex function as an event handler directly? Event handlers like onClick receive an event object as their first argument. These SyntheticEvent objects are not valid Convex values. Try wrapping the function like `const handler = () => myMutation();` and using `handler` in the event handler."
|
|
3821
3821
|
);
|
|
3822
3822
|
}
|
|
3823
|
-
var Ta = Object.defineProperty, Aa = (t, e, n) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
3823
|
+
var Ta = Object.defineProperty, Aa = (t, e, n) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ht = (t, e, n) => Aa(t, typeof e != "symbol" ? e + "" : e, n);
|
|
3824
3824
|
class Ia {
|
|
3825
3825
|
constructor(e) {
|
|
3826
|
-
|
|
3826
|
+
Ht(this, "createWatch"), Ht(this, "queries"), Ht(this, "listeners"), this.createWatch = e, this.queries = {}, this.listeners = /* @__PURE__ */ new Set();
|
|
3827
3827
|
}
|
|
3828
3828
|
setQueries(e) {
|
|
3829
3829
|
for (const n of Object.keys(e)) {
|
|
@@ -3951,9 +3951,9 @@ function Et() {
|
|
|
3951
3951
|
if (ae > 1)
|
|
3952
3952
|
ae--;
|
|
3953
3953
|
else {
|
|
3954
|
-
for (var t, e = !1;
|
|
3955
|
-
var n =
|
|
3956
|
-
for (
|
|
3954
|
+
for (var t, e = !1; Ke !== void 0; ) {
|
|
3955
|
+
var n = Ke;
|
|
3956
|
+
for (Ke = void 0, an++; n !== void 0; ) {
|
|
3957
3957
|
var r = n.o;
|
|
3958
3958
|
if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ei(n)) try {
|
|
3959
3959
|
n.c();
|
|
@@ -3985,7 +3985,7 @@ function Ii(t) {
|
|
|
3985
3985
|
w = e;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
var
|
|
3988
|
+
var Ke = void 0, ae = 0, an = 0, wt = 0;
|
|
3989
3989
|
function $i(t) {
|
|
3990
3990
|
if (w !== void 0) {
|
|
3991
3991
|
var e = t.n;
|
|
@@ -4063,7 +4063,7 @@ Object.defineProperty(M.prototype, "value", { get: function() {
|
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
4065
4065
|
} });
|
|
4066
|
-
function
|
|
4066
|
+
function E(t, e) {
|
|
4067
4067
|
return new M(t, e);
|
|
4068
4068
|
}
|
|
4069
4069
|
function Ei(t) {
|
|
@@ -4176,7 +4176,7 @@ Pe.prototype.S = function() {
|
|
|
4176
4176
|
return w = this, Pa.bind(this, t);
|
|
4177
4177
|
};
|
|
4178
4178
|
Pe.prototype.N = function() {
|
|
4179
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
4179
|
+
2 & this.f || (this.f |= 2, this.o = Ke, Ke = this);
|
|
4180
4180
|
};
|
|
4181
4181
|
Pe.prototype.d = function() {
|
|
4182
4182
|
this.f |= 8, 1 & this.f || Cn(this);
|
|
@@ -4288,7 +4288,7 @@ Le("diffed", function(t, e) {
|
|
|
4288
4288
|
t(e);
|
|
4289
4289
|
});
|
|
4290
4290
|
function Oa(t, e, n, r) {
|
|
4291
|
-
var i = e in t && t.ownerSVGElement === void 0, o =
|
|
4291
|
+
var i = e in t && t.ownerSVGElement === void 0, o = E(n);
|
|
4292
4292
|
return { o: function(s, l) {
|
|
4293
4293
|
o.value = s, r = l;
|
|
4294
4294
|
}, d: at(function() {
|
|
@@ -4322,7 +4322,7 @@ Le("unmount", function(t, e) {
|
|
|
4322
4322
|
Le("__h", function(t, e, n, r) {
|
|
4323
4323
|
(r < 3 || r === 9) && (e.__$f |= 2), t(e, n, r);
|
|
4324
4324
|
});
|
|
4325
|
-
|
|
4325
|
+
W.prototype.shouldComponentUpdate = function(t, e) {
|
|
4326
4326
|
if (this.__R) return !0;
|
|
4327
4327
|
var n = this.__$u, r = n && n.s !== void 0;
|
|
4328
4328
|
for (var i in e) return !0;
|
|
@@ -4336,7 +4336,7 @@ H.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
4336
4336
|
};
|
|
4337
4337
|
function Be(t, e) {
|
|
4338
4338
|
return J(function() {
|
|
4339
|
-
return
|
|
4339
|
+
return E(t, e);
|
|
4340
4340
|
}, []);
|
|
4341
4341
|
}
|
|
4342
4342
|
var za = function(t) {
|
|
@@ -4352,7 +4352,7 @@ function Na() {
|
|
|
4352
4352
|
function Ni() {
|
|
4353
4353
|
Oi.push(this) === 1 && (b.requestAnimationFrame || za)(Na);
|
|
4354
4354
|
}
|
|
4355
|
-
const q =
|
|
4355
|
+
const q = E(!1), jt = E(void 0), le = E(void 0), Qi = E(null);
|
|
4356
4356
|
function Qa(t) {
|
|
4357
4357
|
return t.replace(/\.convex\.site\b/, ".convex.cloud");
|
|
4358
4358
|
}
|
|
@@ -4520,7 +4520,20 @@ const Ui = {
|
|
|
4520
4520
|
handoffFailed: "Could not request a human agent. Try again.",
|
|
4521
4521
|
handoffRateLimited: "You requested an agent recently. Please wait before trying again.",
|
|
4522
4522
|
resumeListLabel: "Continue conversation",
|
|
4523
|
-
resumeListTimestamp: "{minutes}m ago"
|
|
4523
|
+
resumeListTimestamp: "{minutes}m ago",
|
|
4524
|
+
noticeAgentJoined: "{name} has joined the conversation.",
|
|
4525
|
+
noticeHumanRequested: "You requested to speak with a human agent.",
|
|
4526
|
+
noticeHumanRequestedForm: "You requested to speak with a human agent. Please share your contact details below.",
|
|
4527
|
+
noticeEscalationConfirmed: `Thank you {name}! A human agent will be available soon.
|
|
4528
|
+
We will contact you at {email} when an agent is ready.
|
|
4529
|
+
|
|
4530
|
+
Your reference: **{ref}**
|
|
4531
|
+
Use it to resume this conversation from any device.`,
|
|
4532
|
+
noticeMessageReceived: "Your message has been received. A team member will respond shortly.",
|
|
4533
|
+
noticeAgentHandling: "Your conversation is with a human agent who will respond shortly.",
|
|
4534
|
+
replyTo: "Reply to {name}",
|
|
4535
|
+
sourcesCountOne: "{count} source",
|
|
4536
|
+
sourcesCountOther: "{count} sources"
|
|
4524
4537
|
}, Va = {
|
|
4525
4538
|
title: "Assistent",
|
|
4526
4539
|
statusOnline: "Online · Antwortet in Sekunden",
|
|
@@ -4591,38 +4604,51 @@ const Ui = {
|
|
|
4591
4604
|
handoffFailed: "Anfrage konnte nicht gesendet werden. Erneut versuchen.",
|
|
4592
4605
|
handoffRateLimited: "Sie haben kürzlich einen Mitarbeiter angefragt. Bitte warten Sie.",
|
|
4593
4606
|
resumeListLabel: "Unterhaltung fortsetzen",
|
|
4594
|
-
resumeListTimestamp: "vor {minutes} Min."
|
|
4595
|
-
}
|
|
4607
|
+
resumeListTimestamp: "vor {minutes} Min.",
|
|
4608
|
+
noticeAgentJoined: "{name} ist der Unterhaltung beigetreten.",
|
|
4609
|
+
noticeHumanRequested: "Sie haben darum gebeten, mit einem Mitarbeiter zu sprechen.",
|
|
4610
|
+
noticeHumanRequestedForm: "Sie haben darum gebeten, mit einem Mitarbeiter zu sprechen. Bitte teilen Sie unten Ihre Kontaktdaten mit.",
|
|
4611
|
+
noticeEscalationConfirmed: `Vielen Dank, {name}! Ein Mitarbeiter wird in Kürze verfügbar sein.
|
|
4612
|
+
Wir kontaktieren Sie unter {email}, sobald ein Mitarbeiter bereit ist.
|
|
4613
|
+
|
|
4614
|
+
Ihre Referenz: **{ref}**
|
|
4615
|
+
Verwenden Sie sie, um diese Unterhaltung auf jedem Gerät fortzusetzen.`,
|
|
4616
|
+
noticeMessageReceived: "Ihre Nachricht ist eingegangen. Ein Mitarbeiter wird in Kürze antworten.",
|
|
4617
|
+
noticeAgentHandling: "Ihre Unterhaltung wird von einem menschlichen Mitarbeiter betreut, der in Kürze antwortet.",
|
|
4618
|
+
replyTo: "Antworten an {name}",
|
|
4619
|
+
sourcesCountOne: "{count} Quelle",
|
|
4620
|
+
sourcesCountOther: "{count} Quellen"
|
|
4621
|
+
}, Ha = [
|
|
4596
4622
|
{ value: "de", label: "Deutsch", flag: "🇩🇪" },
|
|
4597
4623
|
{ value: "en", label: "English", flag: "🇬🇧" }
|
|
4598
|
-
],
|
|
4599
|
-
function
|
|
4600
|
-
return
|
|
4624
|
+
], Wa = "de", Ja = "jex-locale", Rn = E("de"), Ka = { en: Ui, de: Va };
|
|
4625
|
+
function A() {
|
|
4626
|
+
return Ka[Rn.value] ?? Ui;
|
|
4601
4627
|
}
|
|
4602
|
-
function
|
|
4628
|
+
function Wt(t) {
|
|
4603
4629
|
if (!t)
|
|
4604
4630
|
return null;
|
|
4605
4631
|
const e = (t.split("-")[0] ?? "").toLowerCase();
|
|
4606
|
-
return
|
|
4632
|
+
return Ha.some((n) => n.value === e) ? e : null;
|
|
4607
4633
|
}
|
|
4608
4634
|
function Bi(t) {
|
|
4609
|
-
const e =
|
|
4635
|
+
const e = Wt(t);
|
|
4610
4636
|
if (e)
|
|
4611
4637
|
return e;
|
|
4612
4638
|
try {
|
|
4613
|
-
const n =
|
|
4639
|
+
const n = Wt(localStorage.getItem(Ja));
|
|
4614
4640
|
if (n)
|
|
4615
4641
|
return n;
|
|
4616
4642
|
} catch {
|
|
4617
4643
|
}
|
|
4618
4644
|
if (typeof navigator < "u") {
|
|
4619
|
-
const n =
|
|
4645
|
+
const n = Wt(navigator.language);
|
|
4620
4646
|
if (n)
|
|
4621
4647
|
return n;
|
|
4622
4648
|
}
|
|
4623
|
-
return
|
|
4649
|
+
return Wa;
|
|
4624
4650
|
}
|
|
4625
|
-
function
|
|
4651
|
+
function Za(t) {
|
|
4626
4652
|
T(() => {
|
|
4627
4653
|
function e(n) {
|
|
4628
4654
|
const r = t ?? window.location.origin;
|
|
@@ -4636,17 +4662,17 @@ function Ga(t) {
|
|
|
4636
4662
|
};
|
|
4637
4663
|
}, [t]);
|
|
4638
4664
|
}
|
|
4639
|
-
const Vi = "jex-session-history",
|
|
4640
|
-
function
|
|
4665
|
+
const Vi = "jex-session-history", Hi = Vi, Wi = 900 * 1e3, z = E([]), xe = E(null), Ji = ln(() => z.value.length > 0), Ze = E(null);
|
|
4666
|
+
function Ga() {
|
|
4641
4667
|
return "JEX-" + Math.random().toString(36).slice(2, 8).toUpperCase();
|
|
4642
4668
|
}
|
|
4643
4669
|
function Ya(t) {
|
|
4644
4670
|
try {
|
|
4645
|
-
const e = sessionStorage.getItem(
|
|
4671
|
+
const e = sessionStorage.getItem(Hi);
|
|
4646
4672
|
if (!e)
|
|
4647
4673
|
return [];
|
|
4648
4674
|
const n = JSON.parse(e);
|
|
4649
|
-
return n.v !== 1 || !Array.isArray(n.entries) ? [] : n.entries.filter((r) => t - r.lastActivityAt <=
|
|
4675
|
+
return n.v !== 1 || !Array.isArray(n.entries) ? [] : n.entries.filter((r) => t - r.lastActivityAt <= Wi);
|
|
4650
4676
|
} catch {
|
|
4651
4677
|
return [];
|
|
4652
4678
|
}
|
|
@@ -4654,7 +4680,7 @@ function Ya(t) {
|
|
|
4654
4680
|
function qt(t) {
|
|
4655
4681
|
try {
|
|
4656
4682
|
const e = { v: 1, entries: t };
|
|
4657
|
-
sessionStorage.setItem(
|
|
4683
|
+
sessionStorage.setItem(Hi, JSON.stringify(e));
|
|
4658
4684
|
} catch {
|
|
4659
4685
|
}
|
|
4660
4686
|
}
|
|
@@ -4663,7 +4689,7 @@ function Xa() {
|
|
|
4663
4689
|
z.value = e, qt(e), xe.value = e.length > 0 ? e[e.length - 1].ref : null;
|
|
4664
4690
|
}
|
|
4665
4691
|
function yr() {
|
|
4666
|
-
const t =
|
|
4692
|
+
const t = Ga(), e = Date.now(), n = [...z.value, { ref: t, startedAt: e, lastActivityAt: e }];
|
|
4667
4693
|
return z.value = n, xe.value = t, qt(n), t;
|
|
4668
4694
|
}
|
|
4669
4695
|
function kr(t) {
|
|
@@ -4680,14 +4706,14 @@ function Tn(t) {
|
|
|
4680
4706
|
);
|
|
4681
4707
|
z.value = n, qt(n);
|
|
4682
4708
|
}
|
|
4683
|
-
const N =
|
|
4684
|
-
function
|
|
4709
|
+
const N = E(Ki());
|
|
4710
|
+
function Ki() {
|
|
4685
4711
|
return Ji.value ? [{ id: "home" }] : [{ id: "chat" }];
|
|
4686
4712
|
}
|
|
4687
4713
|
function el() {
|
|
4688
|
-
N.value =
|
|
4714
|
+
N.value = Ki();
|
|
4689
4715
|
}
|
|
4690
|
-
const tl =
|
|
4716
|
+
const tl = E("screen");
|
|
4691
4717
|
function fe(t) {
|
|
4692
4718
|
N.value = [...N.value, t];
|
|
4693
4719
|
}
|
|
@@ -4697,7 +4723,7 @@ function St() {
|
|
|
4697
4723
|
function cn(t) {
|
|
4698
4724
|
N.value = [...N.value.slice(0, -1), t];
|
|
4699
4725
|
}
|
|
4700
|
-
const nl = 6e4, nt =
|
|
4726
|
+
const nl = 6e4, nt = E(!1), un = E(!1), hn = /* @__PURE__ */ new Set();
|
|
4701
4727
|
function rl(t) {
|
|
4702
4728
|
return hn.add(t), () => {
|
|
4703
4729
|
hn.delete(t);
|
|
@@ -4731,7 +4757,7 @@ function wr() {
|
|
|
4731
4757
|
function Jt() {
|
|
4732
4758
|
nt.value && (nt.value = !1);
|
|
4733
4759
|
}
|
|
4734
|
-
function sl(t =
|
|
4760
|
+
function sl(t = Wi) {
|
|
4735
4761
|
let e = null;
|
|
4736
4762
|
const n = () => {
|
|
4737
4763
|
if (document.visibilityState === "hidden") {
|
|
@@ -4775,7 +4801,7 @@ function An({ size: t = 24 }) {
|
|
|
4775
4801
|
] });
|
|
4776
4802
|
}
|
|
4777
4803
|
function ll() {
|
|
4778
|
-
const t =
|
|
4804
|
+
const t = A();
|
|
4779
4805
|
return N.value.length > 1 ? /* @__PURE__ */ c(
|
|
4780
4806
|
"button",
|
|
4781
4807
|
{
|
|
@@ -4787,20 +4813,20 @@ function ll() {
|
|
|
4787
4813
|
) : /* @__PURE__ */ c(An, { size: 24 });
|
|
4788
4814
|
}
|
|
4789
4815
|
function cl({ title: t }) {
|
|
4790
|
-
const e =
|
|
4816
|
+
const e = A();
|
|
4791
4817
|
return /* @__PURE__ */ c("div", { class: "jex-header-info", children: [
|
|
4792
4818
|
/* @__PURE__ */ c("h3", { children: t }),
|
|
4793
4819
|
/* @__PURE__ */ c("p", { children: e.statusOnline })
|
|
4794
4820
|
] });
|
|
4795
4821
|
}
|
|
4796
|
-
function
|
|
4822
|
+
function Zi({ size: t = 28 }) {
|
|
4797
4823
|
return /* @__PURE__ */ c("svg", { width: t, height: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", children: [
|
|
4798
4824
|
/* @__PURE__ */ c("path", { d: "M18 6 6 18" }),
|
|
4799
4825
|
/* @__PURE__ */ c("path", { d: "m6 6 12 12" })
|
|
4800
4826
|
] });
|
|
4801
4827
|
}
|
|
4802
4828
|
function ul() {
|
|
4803
|
-
const t =
|
|
4829
|
+
const t = A();
|
|
4804
4830
|
return /* @__PURE__ */ c(
|
|
4805
4831
|
"button",
|
|
4806
4832
|
{
|
|
@@ -4811,7 +4837,7 @@ function ul() {
|
|
|
4811
4837
|
},
|
|
4812
4838
|
"aria-label": t.closeChatAriaLabel,
|
|
4813
4839
|
title: t.closeChatAriaLabel,
|
|
4814
|
-
children: /* @__PURE__ */ c(
|
|
4840
|
+
children: /* @__PURE__ */ c(Zi, { size: 18 })
|
|
4815
4841
|
}
|
|
4816
4842
|
);
|
|
4817
4843
|
}
|
|
@@ -4849,7 +4875,7 @@ function jr() {
|
|
|
4849
4875
|
}
|
|
4850
4876
|
) });
|
|
4851
4877
|
}
|
|
4852
|
-
function
|
|
4878
|
+
function Gi({ size: t = 28 }) {
|
|
4853
4879
|
return /* @__PURE__ */ c("svg", { width: t, height: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", children: /* @__PURE__ */ c("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) });
|
|
4854
4880
|
}
|
|
4855
4881
|
function pl({ size: t = 24, ...e }) {
|
|
@@ -4870,7 +4896,7 @@ function pl({ size: t = 24, ...e }) {
|
|
|
4870
4896
|
);
|
|
4871
4897
|
}
|
|
4872
4898
|
const fl = {
|
|
4873
|
-
chat: /* @__PURE__ */ c(
|
|
4899
|
+
chat: /* @__PURE__ */ c(Gi, { size: 28 }),
|
|
4874
4900
|
bot: /* @__PURE__ */ c(An, { size: 28 }),
|
|
4875
4901
|
sparkles: /* @__PURE__ */ c(pl, { size: 28 })
|
|
4876
4902
|
}, gl = {
|
|
@@ -4881,7 +4907,7 @@ const fl = {
|
|
|
4881
4907
|
full: "9999px"
|
|
4882
4908
|
};
|
|
4883
4909
|
function ml({ radius: t = "full", iconOption: e = "chat", label: n }) {
|
|
4884
|
-
const r =
|
|
4910
|
+
const r = A(), i = n ?? r.fabLabel, o = i !== "";
|
|
4885
4911
|
return /* @__PURE__ */ c(
|
|
4886
4912
|
"button",
|
|
4887
4913
|
{
|
|
@@ -4891,7 +4917,7 @@ function ml({ radius: t = "full", iconOption: e = "chat", label: n }) {
|
|
|
4891
4917
|
q.value = !q.value;
|
|
4892
4918
|
},
|
|
4893
4919
|
"aria-label": q.value ? r.closeChatAriaLabel : r.openChatAriaLabel,
|
|
4894
|
-
children: q.value ? /* @__PURE__ */ c(
|
|
4920
|
+
children: q.value ? /* @__PURE__ */ c(Zi, { size: 28 }) : /* @__PURE__ */ c("div", { class: "jex-fab-inner", children: [
|
|
4895
4921
|
fl[e],
|
|
4896
4922
|
o && /* @__PURE__ */ c("span", { class: "jex-fab-label", children: i })
|
|
4897
4923
|
] })
|
|
@@ -4899,23 +4925,23 @@ function ml({ radius: t = "full", iconOption: e = "chat", label: n }) {
|
|
|
4899
4925
|
);
|
|
4900
4926
|
}
|
|
4901
4927
|
function xl({ title: t, onStartFresh: e, onResetSession: n }) {
|
|
4902
|
-
const r =
|
|
4928
|
+
const r = A(), [i, o] = C("");
|
|
4903
4929
|
function s() {
|
|
4904
|
-
Jt(),
|
|
4930
|
+
Jt(), Ze.value = "fresh", n(), e(), fe({ id: "chat" });
|
|
4905
4931
|
}
|
|
4906
4932
|
function l(u) {
|
|
4907
|
-
Jt(),
|
|
4933
|
+
Jt(), Ze.value = "resume", n(), kr(u), fe({ id: "chat" });
|
|
4908
4934
|
}
|
|
4909
4935
|
function a(u) {
|
|
4910
4936
|
u.preventDefault();
|
|
4911
4937
|
const d = i.trim().toUpperCase();
|
|
4912
|
-
d && (Jt(),
|
|
4938
|
+
d && (Jt(), Ze.value = "resume", n(), kr(d), fe({ id: "chat" }));
|
|
4913
4939
|
}
|
|
4914
4940
|
return /* @__PURE__ */ c("div", { class: "jex-home", children: [
|
|
4915
4941
|
nt.value && /* @__PURE__ */ c("div", { class: "jex-session-prompt", role: "status", children: /* @__PURE__ */ c("div", { class: "jex-session-prompt-text", children: r.sessionLocked }) }),
|
|
4916
4942
|
/* @__PURE__ */ c("div", { class: "jex-home-hero", children: [
|
|
4917
4943
|
/* @__PURE__ */ c("div", { class: "jex-home-avatar", children: [
|
|
4918
|
-
/* @__PURE__ */ c(
|
|
4944
|
+
/* @__PURE__ */ c(Gi, { size: 24 }),
|
|
4919
4945
|
/* @__PURE__ */ c("span", { class: "jex-home-status-dot" })
|
|
4920
4946
|
] }),
|
|
4921
4947
|
/* @__PURE__ */ c("div", { class: "jex-home-hero-text", children: [
|
|
@@ -4970,7 +4996,7 @@ function xl({ title: t, onStartFresh: e, onResetSession: n }) {
|
|
|
4970
4996
|
] });
|
|
4971
4997
|
}
|
|
4972
4998
|
function bl({ title: t }) {
|
|
4973
|
-
const e =
|
|
4999
|
+
const e = A();
|
|
4974
5000
|
return /* @__PURE__ */ c("div", { class: "jex-selection", children: [
|
|
4975
5001
|
/* @__PURE__ */ c("h2", { class: "jex-selection-title", children: e.howCanWeHelp }),
|
|
4976
5002
|
/* @__PURE__ */ c("div", { class: "jex-selection-options", children: [
|
|
@@ -5088,7 +5114,7 @@ var Cl = (() => {
|
|
|
5088
5114
|
return !1;
|
|
5089
5115
|
}
|
|
5090
5116
|
})(), P = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, Rl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Al = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, lt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, $n = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Xi = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, eo = k(Xi).replace(/bull/g, $n).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), $l = k(Xi).replace(/bull/g, $n).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), En = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, El = /^[^\n]+/, qn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ql = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", qn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ml = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, $n).getRegex(), Mt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Mn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pl = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Mn).replace("tag", Mt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), to = k(En).replace("hr", lt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Mt).getRegex(), Ll = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", to).getRegex(), Pn = { blockquote: Ll, code: Tl, def: ql, fences: Al, heading: Il, hr: lt, html: Pl, lheading: eo, list: Ml, newline: Rl, paragraph: to, table: de, text: El }, Rr = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", lt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Mt).getRegex(), Ol = { ...Pn, lheading: $l, table: Rr, paragraph: k(En).replace("hr", lt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Rr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Mt).getRegex() }, zl = { ...Pn, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Mn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: de, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(En).replace("hr", lt).replace("heading", ` *#{1,6} *[^
|
|
5091
|
-
]`).replace("lheading", eo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Nl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ql = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, no = /^( {2,}|\\)\n(?!\s*$)/, Fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Oe = /[\p{P}\p{S}]/u, Pt = /[\s\p{P}\p{S}]/u, Ln = /[^\s\p{P}\p{S}]/u, Dl = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Pt).getRegex(), ro = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Bl = /(?:[^\s\p{P}\p{S}]|~)/u, Vl = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Cl ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), io = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,
|
|
5117
|
+
]`).replace("lheading", eo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Nl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ql = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, no = /^( {2,}|\\)\n(?!\s*$)/, Fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Oe = /[\p{P}\p{S}]/u, Pt = /[\s\p{P}\p{S}]/u, Ln = /[^\s\p{P}\p{S}]/u, Dl = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Pt).getRegex(), ro = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Bl = /(?:[^\s\p{P}\p{S}]|~)/u, Vl = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Cl ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), io = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Hl = k(io, "u").replace(/punct/g, Oe).getRegex(), Wl = k(io, "u").replace(/punct/g, ro).getRegex(), oo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Jl = k(oo, "gu").replace(/notPunctSpace/g, Ln).replace(/punctSpace/g, Pt).replace(/punct/g, Oe).getRegex(), Kl = k(oo, "gu").replace(/notPunctSpace/g, Bl).replace(/punctSpace/g, Ul).replace(/punct/g, ro).getRegex(), Zl = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ln).replace(/punctSpace/g, Pt).replace(/punct/g, Oe).getRegex(), Gl = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Oe).getRegex(), Yl = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Xl = k(Yl, "gu").replace(/notPunctSpace/g, Ln).replace(/punctSpace/g, Pt).replace(/punct/g, Oe).getRegex(), ec = k(/\\(punct)/, "gu").replace(/punct/g, Oe).getRegex(), tc = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), nc = k(Mn).replace("(?:-->|$)", "-->").getRegex(), rc = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", nc).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ct = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ic = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Ct).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), so = k(/^!?\[(label)\]\[(ref)\]/).replace("label", Ct).replace("ref", qn).getRegex(), ao = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", qn).getRegex(), oc = k("reflink|nolink(?!\\()", "g").replace("reflink", so).replace("nolink", ao).getRegex(), Tr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, On = { _backpedal: de, anyPunctuation: ec, autolink: tc, blockSkip: Vl, br: no, code: Ql, del: de, delLDelim: de, delRDelim: de, emStrongLDelim: Hl, emStrongRDelimAst: Jl, emStrongRDelimUnd: Zl, escape: Nl, link: ic, nolink: ao, punctuation: Dl, reflink: so, reflinkSearch: oc, tag: rc, text: Fl, url: de }, sc = { ...On, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", Ct).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ct).getRegex() }, dn = { ...On, emStrongRDelimAst: Kl, emStrongLDelim: Wl, delLDelim: Gl, delRDelim: Xl, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Tr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Tr).getRegex() }, ac = { ...dn, br: k(no).replace("{2,}", "*").getRegex(), text: k(dn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, ft = { normal: Pn, gfm: Ol, pedantic: zl }, Ne = { normal: On, gfm: dn, breaks: ac, pedantic: sc }, lc = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Ar = (t) => lc[t];
|
|
5092
5118
|
function Y(t, e) {
|
|
5093
5119
|
if (e) {
|
|
5094
5120
|
if (P.escapeTest.test(t)) return t.replace(P.escapeReplace, Ar);
|
|
@@ -5254,11 +5280,11 @@ ${d}` : d;
|
|
|
5254
5280
|
`, 1)[0], f = !h.trim(), g = 0;
|
|
5255
5281
|
if (this.options.pedantic ? (g = 2, d = h.trimStart()) : f ? g = e[1].length + 1 : (g = h.search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, d = h.slice(g), g += e[1].length), f && this.rules.other.blankLine.test(p) && (u += p + `
|
|
5256
5282
|
`, t = t.substring(p.length + 1), a = !0), !a) {
|
|
5257
|
-
let m = this.rules.other.nextBulletRegex(g), x = this.rules.other.hrRegex(g), y = this.rules.other.fencesBeginRegex(g), v = this.rules.other.headingBeginRegex(g), R = this.rules.other.htmlBeginRegex(g),
|
|
5283
|
+
let m = this.rules.other.nextBulletRegex(g), x = this.rules.other.hrRegex(g), y = this.rules.other.fencesBeginRegex(g), v = this.rules.other.headingBeginRegex(g), R = this.rules.other.htmlBeginRegex(g), K = this.rules.other.blockquoteBeginRegex(g);
|
|
5258
5284
|
for (; t; ) {
|
|
5259
5285
|
let se = t.split(`
|
|
5260
5286
|
`, 1)[0], B;
|
|
5261
|
-
if (p = se, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), B = p) : B = p.replace(this.rules.other.tabCharGlobal, " "), y.test(p) || v.test(p) || R.test(p) ||
|
|
5287
|
+
if (p = se, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), B = p) : B = p.replace(this.rules.other.tabCharGlobal, " "), y.test(p) || v.test(p) || R.test(p) || K.test(p) || m.test(p) || x.test(p)) break;
|
|
5262
5288
|
if (B.search(this.rules.other.nonSpaceChar) >= g || !p.trim()) d += `
|
|
5263
5289
|
` + B.slice(g);
|
|
5264
5290
|
else {
|
|
@@ -5826,7 +5852,7 @@ ${t}</tr>
|
|
|
5826
5852
|
checkbox({ raw: t }) {
|
|
5827
5853
|
return t;
|
|
5828
5854
|
}
|
|
5829
|
-
},
|
|
5855
|
+
}, H = class fn {
|
|
5830
5856
|
options;
|
|
5831
5857
|
renderer;
|
|
5832
5858
|
textRenderer;
|
|
@@ -6001,14 +6027,14 @@ ${t}</tr>
|
|
|
6001
6027
|
return this.block ? V.lex : V.lexInline;
|
|
6002
6028
|
}
|
|
6003
6029
|
provideParser() {
|
|
6004
|
-
return this.block ?
|
|
6030
|
+
return this.block ? H.parse : H.parseInline;
|
|
6005
6031
|
}
|
|
6006
6032
|
}, dc = class {
|
|
6007
6033
|
defaults = In();
|
|
6008
6034
|
options = this.setOptions;
|
|
6009
6035
|
parse = this.parseMarkdown(!0);
|
|
6010
6036
|
parseInline = this.parseMarkdown(!1);
|
|
6011
|
-
Parser =
|
|
6037
|
+
Parser = H;
|
|
6012
6038
|
Renderer = Tt;
|
|
6013
6039
|
TextRenderer = zn;
|
|
6014
6040
|
Lexer = V;
|
|
@@ -6127,7 +6153,7 @@ ${t}</tr>
|
|
|
6127
6153
|
return V.lex(t, e ?? this.defaults);
|
|
6128
6154
|
}
|
|
6129
6155
|
parser(t, e) {
|
|
6130
|
-
return
|
|
6156
|
+
return H.parse(t, e ?? this.defaults);
|
|
6131
6157
|
}
|
|
6132
6158
|
parseMarkdown(t) {
|
|
6133
6159
|
return (e, n) => {
|
|
@@ -6138,14 +6164,14 @@ ${t}</tr>
|
|
|
6138
6164
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = t), i.async) return (async () => {
|
|
6139
6165
|
let s = i.hooks ? await i.hooks.preprocess(e) : e, l = await (i.hooks ? await i.hooks.provideLexer() : t ? V.lex : V.lexInline)(s, i), a = i.hooks ? await i.hooks.processAllTokens(l) : l;
|
|
6140
6166
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
6141
|
-
let u = await (i.hooks ? await i.hooks.provideParser() : t ?
|
|
6167
|
+
let u = await (i.hooks ? await i.hooks.provideParser() : t ? H.parse : H.parseInline)(a, i);
|
|
6142
6168
|
return i.hooks ? await i.hooks.postprocess(u) : u;
|
|
6143
6169
|
})().catch(o);
|
|
6144
6170
|
try {
|
|
6145
6171
|
i.hooks && (e = i.hooks.preprocess(e));
|
|
6146
6172
|
let s = (i.hooks ? i.hooks.provideLexer() : t ? V.lex : V.lexInline)(e, i);
|
|
6147
6173
|
i.hooks && (s = i.hooks.processAllTokens(s)), i.walkTokens && this.walkTokens(s, i.walkTokens);
|
|
6148
|
-
let l = (i.hooks ? i.hooks.provideParser() : t ?
|
|
6174
|
+
let l = (i.hooks ? i.hooks.provideParser() : t ? H.parse : H.parseInline)(s, i);
|
|
6149
6175
|
return i.hooks && (l = i.hooks.postprocess(l)), l;
|
|
6150
6176
|
} catch (s) {
|
|
6151
6177
|
return o(s);
|
|
@@ -6179,8 +6205,8 @@ _.walkTokens = function(t, e) {
|
|
|
6179
6205
|
return be.walkTokens(t, e);
|
|
6180
6206
|
};
|
|
6181
6207
|
_.parseInline = be.parseInline;
|
|
6182
|
-
_.Parser =
|
|
6183
|
-
_.parser =
|
|
6208
|
+
_.Parser = H;
|
|
6209
|
+
_.parser = H.parse;
|
|
6184
6210
|
_.Renderer = Tt;
|
|
6185
6211
|
_.TextRenderer = zn;
|
|
6186
6212
|
_.Lexer = V;
|
|
@@ -6193,7 +6219,7 @@ _.setOptions;
|
|
|
6193
6219
|
_.use;
|
|
6194
6220
|
_.walkTokens;
|
|
6195
6221
|
_.parseInline;
|
|
6196
|
-
|
|
6222
|
+
H.parse;
|
|
6197
6223
|
V.lex;
|
|
6198
6224
|
_.setOptions({
|
|
6199
6225
|
breaks: !0,
|
|
@@ -6208,7 +6234,7 @@ function pc({ text: t }) {
|
|
|
6208
6234
|
}, [t]);
|
|
6209
6235
|
return /* @__PURE__ */ c("div", { class: "jex-md", dangerouslySetInnerHTML: { __html: e } });
|
|
6210
6236
|
}
|
|
6211
|
-
const Ee =
|
|
6237
|
+
const Ee = E("");
|
|
6212
6238
|
function fc(t) {
|
|
6213
6239
|
if (!t)
|
|
6214
6240
|
return;
|
|
@@ -6218,7 +6244,7 @@ function fc(t) {
|
|
|
6218
6244
|
const n = `@${e} `, r = Ee.value;
|
|
6219
6245
|
r.includes(n) || r.includes(`@${e}`) || (Ee.value = r.trimStart() ? `${n}${r.trimStart()}` : n);
|
|
6220
6246
|
}
|
|
6221
|
-
const rt =
|
|
6247
|
+
const rt = E(null), qr = E(Date.now()), oe = E([]), gc = 4, mc = 8 * 1024 * 1024;
|
|
6222
6248
|
function xc() {
|
|
6223
6249
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `att-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 11)}`;
|
|
6224
6250
|
}
|
|
@@ -6305,12 +6331,12 @@ function _c() {
|
|
|
6305
6331
|
return { isActive: n, remainingSeconds: r };
|
|
6306
6332
|
}
|
|
6307
6333
|
function jc() {
|
|
6308
|
-
const t =
|
|
6334
|
+
const t = A(), { isActive: e, remainingSeconds: n } = _c();
|
|
6309
6335
|
return e ? /* @__PURE__ */ c("div", { class: "jex-rate-limit-notice", role: "status", "aria-live": "polite", children: t.errorRateLimited.replace("{seconds}", String(n)) }) : null;
|
|
6310
6336
|
}
|
|
6311
|
-
const Se =
|
|
6337
|
+
const Se = E(null);
|
|
6312
6338
|
function Sc() {
|
|
6313
|
-
const t =
|
|
6339
|
+
const t = A(), e = Se.value;
|
|
6314
6340
|
if (e === null)
|
|
6315
6341
|
return null;
|
|
6316
6342
|
const n = e === "no-token" ? t.errorSessionNoToken : e === "unauthorized" ? t.errorSessionUnauthorized : e === "network" ? t.errorNetwork : t.somethingWentWrong;
|
|
@@ -6350,7 +6376,7 @@ function Rc({ onSend: t }) {
|
|
|
6350
6376
|
return { textareaRef: e, fileInputRef: n, onKeyDown: r, onAttachClick: i, onFilesPicked: o, onCardClick: s };
|
|
6351
6377
|
}
|
|
6352
6378
|
function Tc({ isStreaming: t, disabled: e, inputDisabled: n, onSend: r }) {
|
|
6353
|
-
const i =
|
|
6379
|
+
const i = A(), o = Ee, s = oe, { textareaRef: l, fileInputRef: a, onKeyDown: u, onAttachClick: d, onFilesPicked: h, onCardClick: p } = Rc({ onSend: r }), f = o.value.trim().length > 0, g = s.value.length > 0, m = (f || g) && !e;
|
|
6354
6380
|
return /* @__PURE__ */ c("div", { class: "jex-composer-card", onClick: p, children: [
|
|
6355
6381
|
g && /* @__PURE__ */ c("div", { class: "jex-composer-attachments", role: "list", children: s.value.map((x) => /* @__PURE__ */ c("div", { class: "jex-attachment-chip", role: "listitem", children: [
|
|
6356
6382
|
/* @__PURE__ */ c("img", { src: x.previewUrl, alt: x.file.name, class: "jex-attachment-thumb" }),
|
|
@@ -6429,7 +6455,7 @@ function Tc({ isStreaming: t, disabled: e, inputDisabled: n, onSend: r }) {
|
|
|
6429
6455
|
] });
|
|
6430
6456
|
}
|
|
6431
6457
|
function Ac({ sessionId: t, visitorId: e, isLoading: n, isStreaming: r, sessionStatus: i, ensureSession: o, onStartFresh: s }) {
|
|
6432
|
-
const l =
|
|
6458
|
+
const l = A(), a = Ee, u = wc({ sessionId: t, visitorId: e, ensureSession: o }), d = rt.value !== null && rt.value > Date.now(), h = n || r || d;
|
|
6433
6459
|
if (i === "resolved")
|
|
6434
6460
|
return /* @__PURE__ */ c("div", { class: "jex-chat-input-resolved", children: [
|
|
6435
6461
|
/* @__PURE__ */ c("div", { class: "jex-resolved-notice", children: l.sessionResolved }),
|
|
@@ -6468,26 +6494,26 @@ function Ic(t) {
|
|
|
6468
6494
|
return e.length === 0 ? "?" : e.map((n) => n[0]).join("").slice(0, 2).toUpperCase();
|
|
6469
6495
|
}
|
|
6470
6496
|
function _e({ text: t, streaming: e, error: n, authorId: r, authorName: i, authorImage: o, botAvatarUrl: s }) {
|
|
6471
|
-
const l = !!r, [
|
|
6497
|
+
const l = A(), a = !!r, [u, d] = C(!1), h = Re(() => d(!0), []), p = l.replyTo.replace("{name}", i ?? ""), f = [
|
|
6472
6498
|
"jex-message bot",
|
|
6473
6499
|
n ? "jex-message-error" : ""
|
|
6474
6500
|
].filter(Boolean).join(" ");
|
|
6475
6501
|
return /* @__PURE__ */ c("div", { class: "jex-message-row bot", children: [
|
|
6476
|
-
/* @__PURE__ */ c("div", { class: `jex-avatar ${
|
|
6502
|
+
/* @__PURE__ */ c("div", { class: `jex-avatar ${a ? "jex-avatar-agent" : "jex-avatar-bot"}`, children: a && o && !u ? /* @__PURE__ */ c("img", { src: o, alt: i ?? "", class: "jex-avatar-img", onError: h }) : a ? /* @__PURE__ */ c("span", { class: "jex-avatar-initials", children: Ic(i ?? "") }) : s && !u ? /* @__PURE__ */ c("img", { src: s, alt: "", class: "jex-avatar-img", onError: h }) : /* @__PURE__ */ c(An, { size: 14 }) }),
|
|
6477
6503
|
/* @__PURE__ */ c("div", { class: "jex-message-content", children: [
|
|
6478
|
-
/* @__PURE__ */ c("div", { class:
|
|
6504
|
+
/* @__PURE__ */ c("div", { class: f, children: [
|
|
6479
6505
|
/* @__PURE__ */ c(pc, { text: t }),
|
|
6480
6506
|
e && /* @__PURE__ */ c("span", { class: "jex-streaming-cursor" })
|
|
6481
6507
|
] }),
|
|
6482
|
-
|
|
6508
|
+
a && i && /* @__PURE__ */ c("div", { class: "jex-message-author-row", children: [
|
|
6483
6509
|
/* @__PURE__ */ c("span", { class: "jex-message-author", children: i }),
|
|
6484
6510
|
/* @__PURE__ */ c(
|
|
6485
6511
|
"button",
|
|
6486
6512
|
{
|
|
6487
6513
|
type: "button",
|
|
6488
6514
|
class: "jex-reply-tag-btn",
|
|
6489
|
-
"aria-label":
|
|
6490
|
-
title:
|
|
6515
|
+
"aria-label": p,
|
|
6516
|
+
title: p,
|
|
6491
6517
|
onClick: () => {
|
|
6492
6518
|
fc(i);
|
|
6493
6519
|
},
|
|
@@ -6505,7 +6531,7 @@ function co() {
|
|
|
6505
6531
|
return $t(qe.functions.chat.public.helpdesk.submitEscalation);
|
|
6506
6532
|
}
|
|
6507
6533
|
function Ec({ message: t, sessionId: e, visitorId: n }) {
|
|
6508
|
-
const r =
|
|
6534
|
+
const r = A();
|
|
6509
6535
|
return t.formData ? /* @__PURE__ */ c("div", { class: "jex-inline-form-submitted", children: [
|
|
6510
6536
|
/* @__PURE__ */ c("span", { class: "jex-inline-form-check", children: "✓" }),
|
|
6511
6537
|
/* @__PURE__ */ c("div", { children: [
|
|
@@ -6526,7 +6552,7 @@ function Ec({ message: t, sessionId: e, visitorId: n }) {
|
|
|
6526
6552
|
) });
|
|
6527
6553
|
}
|
|
6528
6554
|
function qc({ messageId: t, sessionId: e, visitorId: n }) {
|
|
6529
|
-
const r =
|
|
6555
|
+
const r = A(), [i, o] = C(""), [s, l] = C(""), [a, u] = C(!1), d = co();
|
|
6530
6556
|
async function h(p) {
|
|
6531
6557
|
if (p.preventDefault(), !a) {
|
|
6532
6558
|
u(!0);
|
|
@@ -6588,7 +6614,7 @@ const Mc = {
|
|
|
6588
6614
|
qa: "❓"
|
|
6589
6615
|
};
|
|
6590
6616
|
function Pc({ sources: t }) {
|
|
6591
|
-
const
|
|
6617
|
+
const e = A(), [n, r] = C(!1);
|
|
6592
6618
|
return t.length === 0 ? null : /* @__PURE__ */ c("div", { class: "jex-sources-row", children: [
|
|
6593
6619
|
/* @__PURE__ */ c(
|
|
6594
6620
|
"button",
|
|
@@ -6596,43 +6622,42 @@ function Pc({ sources: t }) {
|
|
|
6596
6622
|
type: "button",
|
|
6597
6623
|
class: "jex-sources-toggle",
|
|
6598
6624
|
onClick: () => {
|
|
6599
|
-
|
|
6625
|
+
r((i) => !i);
|
|
6600
6626
|
},
|
|
6601
|
-
"aria-expanded":
|
|
6627
|
+
"aria-expanded": n,
|
|
6602
6628
|
children: [
|
|
6603
6629
|
/* @__PURE__ */ c("span", { class: "jex-sources-icon", children: "📖" }),
|
|
6604
|
-
/* @__PURE__ */ c("span", { children:
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
/* @__PURE__ */ c("span", { class: `jex-sources-chevron${e ? " jex-sources-chevron--open" : ""}`, children: "▾" })
|
|
6630
|
+
/* @__PURE__ */ c("span", { children: (t.length === 1 ? e.sourcesCountOne : e.sourcesCountOther).replace(
|
|
6631
|
+
"{count}",
|
|
6632
|
+
String(t.length)
|
|
6633
|
+
) }),
|
|
6634
|
+
/* @__PURE__ */ c("span", { class: `jex-sources-chevron${n ? " jex-sources-chevron--open" : ""}`, children: "▾" })
|
|
6610
6635
|
]
|
|
6611
6636
|
}
|
|
6612
6637
|
),
|
|
6613
|
-
|
|
6614
|
-
const
|
|
6615
|
-
${
|
|
6616
|
-
typeof
|
|
6617
|
-
/* @__PURE__ */ c("span", { class: "jex-source-type", children: Mc[
|
|
6618
|
-
/* @__PURE__ */ c("span", { class: "jex-source-label", children:
|
|
6638
|
+
n ? /* @__PURE__ */ c("div", { class: "jex-sources-pills", children: t.map((i, o) => {
|
|
6639
|
+
const s = i.sourceType === "crawl", l = Lc(i), a = s && i.url ? `${i.title}
|
|
6640
|
+
${i.url}` : i.title, u = /* @__PURE__ */ c(Q, { children: [
|
|
6641
|
+
typeof i.id == "number" ? /* @__PURE__ */ c("span", { class: "jex-source-id", children: i.id }) : null,
|
|
6642
|
+
/* @__PURE__ */ c("span", { class: "jex-source-type", children: Mc[i.sourceType] }),
|
|
6643
|
+
/* @__PURE__ */ c("span", { class: "jex-source-label", children: l }),
|
|
6619
6644
|
/* @__PURE__ */ c("span", { class: "jex-source-score", children: [
|
|
6620
6645
|
"· ",
|
|
6621
|
-
|
|
6646
|
+
i.score.toFixed(2)
|
|
6622
6647
|
] })
|
|
6623
6648
|
] });
|
|
6624
|
-
return
|
|
6649
|
+
return s && i.url ? /* @__PURE__ */ c(
|
|
6625
6650
|
"a",
|
|
6626
6651
|
{
|
|
6627
6652
|
class: "jex-source-pill",
|
|
6628
|
-
href:
|
|
6653
|
+
href: i.url,
|
|
6629
6654
|
target: "_blank",
|
|
6630
6655
|
rel: "noopener noreferrer",
|
|
6631
|
-
title:
|
|
6632
|
-
children:
|
|
6656
|
+
title: a,
|
|
6657
|
+
children: u
|
|
6633
6658
|
},
|
|
6634
|
-
|
|
6635
|
-
) : /* @__PURE__ */ c("span", { class: "jex-source-pill", title:
|
|
6659
|
+
o
|
|
6660
|
+
) : /* @__PURE__ */ c("span", { class: "jex-source-pill", title: a, children: u }, o);
|
|
6636
6661
|
}) }) : null
|
|
6637
6662
|
] });
|
|
6638
6663
|
}
|
|
@@ -6657,7 +6682,7 @@ function Pr(t) {
|
|
|
6657
6682
|
return t.replace(zc, "");
|
|
6658
6683
|
}
|
|
6659
6684
|
function Nc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r, onStartFresh: i, sessionId: o, visitorId: s }) {
|
|
6660
|
-
const l =
|
|
6685
|
+
const l = A(), a = ue(null), [u, d] = C(null), h = ue(null);
|
|
6661
6686
|
return T(() => {
|
|
6662
6687
|
if (!s || !t || t.length === 0)
|
|
6663
6688
|
return;
|
|
@@ -6682,8 +6707,10 @@ function Nc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
|
|
|
6682
6707
|
)
|
|
6683
6708
|
] }) : n ? /* @__PURE__ */ c("div", { class: "jex-session-notice", children: l.sessionNotFound }) : null,
|
|
6684
6709
|
t?.map((p) => {
|
|
6685
|
-
if (p.contentType === "human-notice")
|
|
6686
|
-
|
|
6710
|
+
if (p.contentType === "human-notice") {
|
|
6711
|
+
const g = p.noticeKind === "agent-joined" ? l.noticeAgentJoined.replace("{name}", p.noticeData?.agentName ?? "") : p.noticeKind === "human-requested" ? l.noticeHumanRequested : p.noticeKind === "human-requested-form" ? l.noticeHumanRequestedForm : p.noticeKind === "message-received" ? l.noticeMessageReceived : p.noticeKind === "agent-handling" ? l.noticeAgentHandling : p.content;
|
|
6712
|
+
return /* @__PURE__ */ c(_e, { text: g }, p._id);
|
|
6713
|
+
}
|
|
6687
6714
|
if (p.contentType === "escalation-form" && o && s)
|
|
6688
6715
|
return tl.value === "screen" && !p.formData ? u === p._id ? null : /* @__PURE__ */ c("div", { class: "jex-inline-form jex-inline-form-card", children: [
|
|
6689
6716
|
/* @__PURE__ */ c("div", { class: "jex-inline-form-title", children: l.escalationPromptTitle }),
|
|
@@ -6711,8 +6738,10 @@ function Nc({ conversations: t, greeting: e, sessionNotFound: n, resumeFailed: r
|
|
|
6711
6738
|
}
|
|
6712
6739
|
)
|
|
6713
6740
|
] }, p._id) : /* @__PURE__ */ c(Ec, { message: p, sessionId: o, visitorId: s }, p._id);
|
|
6714
|
-
if (p.contentType === "escalation-confirm")
|
|
6715
|
-
|
|
6741
|
+
if (p.contentType === "escalation-confirm") {
|
|
6742
|
+
const g = p.noticeKind === "escalation-confirmed" ? l.noticeEscalationConfirmed.replace("{name}", p.noticeData?.visitorName ?? "").replace("{email}", p.noticeData?.visitorEmail ?? "").replace("{ref}", p.noticeData?.visitorId ?? "") : p.content;
|
|
6743
|
+
return /* @__PURE__ */ c(_e, { text: g }, p._id);
|
|
6744
|
+
}
|
|
6716
6745
|
if (p.role === "user")
|
|
6717
6746
|
return /* @__PURE__ */ c($c, { text: p.content }, p._id);
|
|
6718
6747
|
const f = {
|
|
@@ -6766,14 +6795,14 @@ function Qc({ sessionId: t, visitorId: e }) {
|
|
|
6766
6795
|
};
|
|
6767
6796
|
}
|
|
6768
6797
|
function Fc({ greeting: t, orgSlug: e, projSlug: n, sessionId: r, visitorId: i, isLoading: o, sessionNotFound: s, resumeFailed: l, isOrgDeleted: a, ensureSession: u, startFresh: d }) {
|
|
6769
|
-
const h =
|
|
6798
|
+
const h = A(), { conversations: p, sessionStatus: f, isLoading: g, isStreaming: m } = Qc({ sessionId: r, visitorId: i }), x = ue(
|
|
6770
6799
|
(() => {
|
|
6771
|
-
const R =
|
|
6800
|
+
const R = Ze.peek();
|
|
6772
6801
|
return R !== null ? R : Ji.peek() ? "resume" : "fresh";
|
|
6773
6802
|
})()
|
|
6774
6803
|
).current;
|
|
6775
6804
|
return T(() => {
|
|
6776
|
-
|
|
6805
|
+
Ze.value = null;
|
|
6777
6806
|
}, []), T(() => {
|
|
6778
6807
|
u();
|
|
6779
6808
|
}, [u]), T(() => {
|
|
@@ -6806,7 +6835,7 @@ function Fc({ greeting: t, orgSlug: e, projSlug: n, sessionId: r, visitorId: i,
|
|
|
6806
6835
|
] });
|
|
6807
6836
|
}
|
|
6808
6837
|
function Dc({ formMessageId: t, sessionId: e, visitorId: n }) {
|
|
6809
|
-
const r =
|
|
6838
|
+
const r = A(), [i, o] = C(""), [s, l] = C(""), a = co(), [u, d] = C(!1), [h, p] = C(null);
|
|
6810
6839
|
async function f(g) {
|
|
6811
6840
|
g.preventDefault(), d(!0), p(null);
|
|
6812
6841
|
try {
|
|
@@ -6868,7 +6897,7 @@ function Uc() {
|
|
|
6868
6897
|
return $t(qe.functions.chat.public.helpdesk.createEscalationRequest);
|
|
6869
6898
|
}
|
|
6870
6899
|
function Lr({ sessionId: t, visitorId: e }) {
|
|
6871
|
-
const n =
|
|
6900
|
+
const n = A(), [r, i] = C(!1), [o, s] = C(null), l = Uc();
|
|
6872
6901
|
async function a() {
|
|
6873
6902
|
if (!t || !e)
|
|
6874
6903
|
return;
|
|
@@ -6939,7 +6968,7 @@ function Vc(t = 1e4) {
|
|
|
6939
6968
|
});
|
|
6940
6969
|
});
|
|
6941
6970
|
}
|
|
6942
|
-
function
|
|
6971
|
+
function Hc(t, e) {
|
|
6943
6972
|
const n = ue(null), r = Be(!1), i = Be(!1), o = Be(!1), s = Be(null), l = $t(qe.functions.chat.public.sessions.createOrResume), a = async (f) => {
|
|
6944
6973
|
const g = await Vc();
|
|
6945
6974
|
if (!g)
|
|
@@ -7014,8 +7043,8 @@ function Wc(t, e) {
|
|
|
7014
7043
|
resetSession: d
|
|
7015
7044
|
};
|
|
7016
7045
|
}
|
|
7017
|
-
function
|
|
7018
|
-
const t =
|
|
7046
|
+
function Wc() {
|
|
7047
|
+
const t = A(), [e, n] = C(""), [r, i] = C(""), [o, s] = C("");
|
|
7019
7048
|
async function l(a) {
|
|
7020
7049
|
a.preventDefault(), cn({ id: "loading", message: t.submittingTicket }), await new Promise((d) => {
|
|
7021
7050
|
setTimeout(d, 1200);
|
|
@@ -7071,7 +7100,7 @@ function Hc() {
|
|
|
7071
7100
|
] });
|
|
7072
7101
|
}
|
|
7073
7102
|
function Jc({ ticketRef: t }) {
|
|
7074
|
-
const e =
|
|
7103
|
+
const e = A();
|
|
7075
7104
|
return /* @__PURE__ */ c("div", { class: "jex-confirmation", children: [
|
|
7076
7105
|
/* @__PURE__ */ c("div", { class: "jex-confirmation-icon", "aria-hidden": "true", children: "✓" }),
|
|
7077
7106
|
/* @__PURE__ */ c("h2", { class: "jex-confirmation-title", children: e.ticketSubmitted }),
|
|
@@ -7090,8 +7119,8 @@ function Jc({ ticketRef: t }) {
|
|
|
7090
7119
|
)
|
|
7091
7120
|
] });
|
|
7092
7121
|
}
|
|
7093
|
-
function
|
|
7094
|
-
const r =
|
|
7122
|
+
function Kc({ message: t, onRetry: e, onBack: n }) {
|
|
7123
|
+
const r = A();
|
|
7095
7124
|
return /* @__PURE__ */ c("div", { class: "jex-overlay jex-error", children: [
|
|
7096
7125
|
/* @__PURE__ */ c("p", { class: "jex-error-message", children: t }),
|
|
7097
7126
|
/* @__PURE__ */ c("div", { class: "jex-error-actions", children: [
|
|
@@ -7107,7 +7136,7 @@ function zr({ greeting: t, title: e, orgSlug: n, projSlug: r, sessionId: i, visi
|
|
|
7107
7136
|
return /* @__PURE__ */ c("div", { class: "jex-screen-container", children: [
|
|
7108
7137
|
g.id === "home" && /* @__PURE__ */ c(xl, { greeting: t, title: e, onStartFresh: h, onResetSession: p }),
|
|
7109
7138
|
g.id === "selection" && /* @__PURE__ */ c(bl, { title: e }),
|
|
7110
|
-
g.id === "form" && /* @__PURE__ */ c(
|
|
7139
|
+
g.id === "form" && /* @__PURE__ */ c(Wc, {}),
|
|
7111
7140
|
g.id === "escalation-form" && /* @__PURE__ */ c(
|
|
7112
7141
|
Dc,
|
|
7113
7142
|
{
|
|
@@ -7135,7 +7164,7 @@ function zr({ greeting: t, title: e, orgSlug: n, projSlug: r, sessionId: i, visi
|
|
|
7135
7164
|
),
|
|
7136
7165
|
g.id === "loading" && /* @__PURE__ */ c(gn, { message: g.message }),
|
|
7137
7166
|
g.id === "error" && /* @__PURE__ */ c(
|
|
7138
|
-
|
|
7167
|
+
Kc,
|
|
7139
7168
|
{
|
|
7140
7169
|
message: g.message,
|
|
7141
7170
|
onRetry: () => cn({ id: "loading" }),
|
|
@@ -7144,13 +7173,13 @@ function zr({ greeting: t, title: e, orgSlug: n, projSlug: r, sessionId: i, visi
|
|
|
7144
7173
|
)
|
|
7145
7174
|
] });
|
|
7146
7175
|
}
|
|
7147
|
-
function
|
|
7176
|
+
function Zc({ options: t }) {
|
|
7148
7177
|
Ba(t.orgSlug, t.projSlug, t.bootstrapToken, t.convexUrl);
|
|
7149
7178
|
const e = Ua(t.orgSlug, t.projSlug, t.convexUrl);
|
|
7150
|
-
|
|
7179
|
+
Za(t.parentOrigin), T(() => {
|
|
7151
7180
|
Xa(), el();
|
|
7152
7181
|
}, []);
|
|
7153
|
-
const { sessionId: n, visitorId: r, isLoading: i, sessionNotFound: o, resumeFailed: s, isOrgDeleted: l, ensureSession: a, startFresh: u, resetSession: d } =
|
|
7182
|
+
const { sessionId: n, visitorId: r, isLoading: i, sessionNotFound: o, resumeFailed: s, isOrgDeleted: l, ensureSession: a, startFresh: u, resetSession: d } = Hc(t.orgSlug, t.projSlug), h = Fa(t, e);
|
|
7154
7183
|
T(() => {
|
|
7155
7184
|
Rn.value = Bi(h.locale);
|
|
7156
7185
|
}, [h.locale]), T(() => {
|
|
@@ -7253,18 +7282,18 @@ function Gc({ options: t }) {
|
|
|
7253
7282
|
}
|
|
7254
7283
|
);
|
|
7255
7284
|
}
|
|
7256
|
-
const Kc = '.jex-widget{--jex-primary: #115A62;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-radius: .75rem;--jex-font-family: "Inter", system-ui, -apple-system, sans-serif;--jex-font-size: 14px;--jex-window-width: 380px;--jex-window-height: 600px;--jex-shadow: 0 16px 48px -12px rgba(13, 127, 138, .25), 0 4px 16px rgba(0, 0, 0, .08);pointer-events:auto;--jex-bg-trigger: var(--jex-primary);--jex-bg-header: var(--jex-primary);--jex-bg-msg-user: var(--jex-primary);--jex-bg-send-btn: var(--jex-primary);--jex-bg-window: rgba(255, 255, 255, .95);--jex-bg-msg-bot: #f1f5f9;--jex-bg-input: rgba(247, 253, 253, .6);--jex-text-header: #ffffff;--jex-text-msg-user: #ffffff;--jex-text-msg-bot: #0f172a;--jex-text-main: #0f172a;--jex-text-muted: #64748b;--jex-bg-avatar-agent: #d1fae5;--jex-text-avatar-agent: #065f46;--jex-border-window: rgba(226, 232, 240, .8);--jex-border-input: rgba(203, 213, 225, .8);--jex-bg-glass: var(--jex-bg-window);--jex-border-glass: var(--jex-border-window);font-family:var(--jex-font-family);-webkit-font-smoothing:antialiased}.dark .jex-widget,.jex-widget.dark{--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-avatar-agent: #064e3b;--jex-text-avatar-agent: #6ee7b7;--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light){--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}}.jex-widget *{box-sizing:border-box;margin:0;padding:0}.jex-container{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;align-items:flex-end;gap:16px;z-index:9999}.jex-container.jex-pos-left{right:auto;left:24px;align-items:flex-start}:host(.jex-mode-embedded){display:block;width:100%;height:100%}:host(.jex-mode-embedded) .jex-widget{width:100%;height:100%}.jex-embedded{display:flex;flex-direction:column;width:100%;height:100%;background:var(--jex-bg-window);border:1px solid var(--jex-border-window);overflow:hidden}.jex-embedded .jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-floating-button{height:56px;min-width:56px;padding:0;background:var(--jex-bg-trigger);color:var(--jex-text-header);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--jex-shadow);transition:transform .3s cubic-bezier(.175,.885,.32,1.275),background .2s,width .3s ease,border-radius .3s ease}.jex-floating-button.jex-has-label{min-width:110px;padding:0 20px}.jex-fab-inner{display:flex;align-items:center;gap:12px}.jex-fab-label{font-size:15px;font-weight:600;white-space:nowrap}.jex-floating-button:hover{transform:scale(1.1);background:var(--jex-primary-hover)}.jex-floating-button:active{transform:scale(.95)}.jex-chat-window{width:var(--jex-window-width);height:var(--jex-window-height);max-height:calc(100vh - 120px);background:var(--jex-bg-window);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid var(--jex-border-window);border-radius:calc(var(--jex-radius) * 2);box-shadow:var(--jex-shadow);display:flex;flex-direction:column;overflow:hidden;animation:jexSlideUp .4s cubic-bezier(.16,1,.3,1);transform-origin:bottom right;touch-action:manipulation}@keyframes jexSlideUp{0%{opacity:0;transform:scale(.8) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(max-width:480px),(pointer:coarse)and (max-width:768px){.jex-chat-window{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-height:none;border:none;border-radius:0;animation:jexSlideUpMobile .3s cubic-bezier(.16,1,.3,1);transform-origin:bottom center}.jex-container:has(.jex-chat-window) .jex-floating-button{display:none}}@keyframes jexSlideUpMobile{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.jex-chat-header{padding:20px;background:var(--jex-bg-header);color:var(--jex-text-header);display:flex;align-items:center;gap:12px;flex-shrink:0}.jex-header-info h3{font-size:16px;font-weight:600;color:var(--jex-text-header);margin:0}.jex-header-info p{font-size:12px;opacity:.8;color:var(--jex-text-header);margin:0}.jex-header-right{margin-left:auto;display:flex;align-items:center;gap:4px}.jex-header-handoff{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:1px solid color-mix(in srgb,currentColor 50%,transparent);border-radius:999px;padding:0;color:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.jex-header-handoff:hover:not(:disabled){background:color-mix(in srgb,currentColor 12%,transparent);border-color:currentColor}.jex-header-handoff:disabled{opacity:.5;cursor:not-allowed}.jex-header-close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:none;border-radius:999px;padding:0;color:inherit;cursor:pointer;transition:background .15s ease}.jex-header-close:hover{background:color-mix(in srgb,currentColor 14%,transparent)}.jex-handoff-error{position:absolute;top:100%;right:8px;background:#fee;color:#b00;padding:4px 8px;font-size:12px;border-radius:4px}.jex-header-back{background:none;border:none;color:var(--jex-text-header);cursor:pointer;padding:4px;display:flex;align-items:center;opacity:.8;transition:opacity .2s;flex-shrink:0}.jex-header-back:hover{opacity:1}.jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-home{flex:1;display:flex;flex-direction:column;padding:24px;gap:20px;overflow-y:auto}.jex-home-hero{display:flex;align-items:center;gap:14px;animation:jexFadeIn .4s ease both}.jex-home-avatar{position:relative;width:48px;height:48px;border-radius:14px;background:var(--jex-primary);color:var(--jex-text-header);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px color-mix(in srgb,var(--jex-primary) 30%,transparent)}.jex-home-status-dot{position:absolute;bottom:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2.5px solid var(--jex-bg-window);animation:jexPulse 2s ease-in-out infinite}@keyframes jexPulse{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 6px #22c55e00}}.jex-home-hero-text{display:flex;flex-direction:column;gap:2px;min-width:0}.jex-home-title{font-size:17px;font-weight:700;color:var(--jex-text-main);margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jex-home-status{font-size:12px;font-weight:500;color:#22c55e;letter-spacing:.02em}.jex-home-greeting{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:4px 16px 16px;padding:16px 18px;font-size:14px;line-height:1.55;color:var(--jex-text-main);animation:jexFadeIn .4s .1s ease both}.jex-home-greeting p{margin:0}@keyframes jexFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.jex-home-actions{display:flex;flex-direction:column;gap:10px;animation:jexFadeIn .4s .2s ease both}.jex-home-start-btn{background:var(--jex-bg-send-btn);color:var(--jex-text-header);border:none;border-radius:12px;padding:14px 20px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,transform .15s,box-shadow .2s;width:100%;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 25%,transparent)}.jex-home-start-btn:hover{background:var(--jex-primary-hover);transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 35%,transparent)}.jex-home-start-btn:active{transform:translateY(0);box-shadow:0 1px 4px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;padding:16px 18px;border-radius:14px;border:1.5px solid var(--jex-primary);background:color-mix(in srgb,var(--jex-primary) 6%,var(--jex-bg-window));cursor:pointer;font-family:inherit;transition:background .2s,border-color .2s,transform .15s,box-shadow .2s;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 12%,transparent)}.jex-home-resume-card:hover{background:color-mix(in srgb,var(--jex-primary) 10%,var(--jex-bg-window));transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card:active{transform:translateY(0)}.jex-home-resume-top{display:flex;align-items:center;justify-content:space-between}.jex-home-resume-label{font-size:14px;font-weight:600;color:var(--jex-primary)}.jex-home-resume-arrow{color:var(--jex-primary);opacity:.6;transition:opacity .2s,transform .2s}.jex-home-resume-card:hover .jex-home-resume-arrow{opacity:1;transform:translate(2px)}.jex-home-resume-ref{font-family:ui-monospace,Cascadia Code,Fira Code,monospace;font-size:13px;font-weight:600;letter-spacing:.06em;color:var(--jex-text-muted)}.jex-home-history{display:flex;flex-direction:column;gap:8px}.jex-home-resume-meta{font-size:11px;opacity:.7;margin-top:4px}.jex-home-new-btn{background:transparent;color:var(--jex-text-muted);border:1px solid var(--jex-border-input);border-radius:12px;padding:12px 20px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:color .2s,border-color .2s,background .2s;width:100%}.jex-home-new-btn:hover{color:var(--jex-text-main);border-color:var(--jex-text-muted);background:color-mix(in srgb,var(--jex-primary) 3%,transparent)}.jex-session-ref{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:8px;font-size:12px}.jex-session-ref-label{color:var(--jex-text-muted);font-weight:500}.jex-session-ref-code{color:var(--jex-primary);font-weight:700;font-family:ui-monospace,Cascadia Code,monospace;letter-spacing:.05em}.jex-chat-messages{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.jex-message-row{display:flex;align-items:flex-end;gap:8px;max-width:85%}.jex-message-row.bot{align-self:flex-start}.jex-message-content{flex:1;min-width:0}.jex-avatar{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;margin-bottom:2px}.jex-avatar-bot{background:var(--jex-bg-msg-bot);color:var(--jex-primary)}.jex-avatar-agent{background:var(--jex-bg-avatar-agent)}.jex-avatar-img{width:100%;height:100%;border-radius:50%;object-fit:cover}.jex-avatar-initials{font-size:9px;font-weight:700;color:var(--jex-text-avatar-agent)}.jex-message-author-row{display:flex;align-items:center;gap:6px;margin-top:2px;padding-left:4px}.jex-message-author{font-size:10px;color:var(--jex-text-muted)}.jex-reply-tag-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--jex-text-muted, #6b7280);cursor:pointer;transition:background .15s,color .15s}.jex-reply-tag-btn:hover{background:#0000000f;color:var(--jex-primary, #115A62)}.jex-reply-tag-btn:focus-visible{outline:2px solid var(--jex-primary, #115A62);outline-offset:1px}.jex-message{padding:12px 16px;border-radius:18px;font-size:14px;line-height:1.4}.jex-message.bot{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);color:var(--jex-text-msg-bot);border-bottom-left-radius:4px}.jex-message.user{align-self:flex-end;max-width:80%;background:var(--jex-bg-msg-user);color:var(--jex-text-msg-user);border-bottom-right-radius:4px}.jex-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px}.jex-typing span{width:8px;height:8px;border-radius:50%;background:var(--jex-text-muted);animation:jexTypingDot 1.2s infinite ease-in-out}.jex-typing span:nth-child(2){animation-delay:.2s}.jex-typing span:nth-child(3){animation-delay:.4s}@keyframes jexTypingDot{0%,80%,to{transform:scale(.8);opacity:.4}40%{transform:scale(1);opacity:1}}.jex-md{word-break:break-word;overflow-wrap:anywhere}.jex-md p{margin:0 0 8px}.jex-md p:last-child{margin-bottom:0}.jex-md strong{font-weight:600}.jex-md em{font-style:italic}.jex-md ul,.jex-md ol{margin:0 0 8px;padding-left:20px}.jex-md ul:last-child,.jex-md ol:last-child{margin-bottom:0}.jex-md ul{list-style-type:disc}.jex-md ol{list-style-type:decimal}.jex-md li{margin-bottom:2px}.jex-md li:last-child{margin-bottom:0}.jex-md a{color:var(--jex-primary);text-decoration:underline;text-underline-offset:2px}.jex-md a:hover{opacity:.8}.jex-md code{background:#00000014;padding:1px 5px;border-radius:4px;font-size:.9em;font-family:ui-monospace,Cascadia Code,Fira Code,monospace}.jex-md pre{background:#0000000f;border-radius:8px;padding:10px 12px;margin:0 0 8px;overflow-x:auto;font-size:.85em}.jex-md pre:last-child{margin-bottom:0}.jex-md pre code{background:none;padding:0;border-radius:0;font-size:inherit}.jex-md h1,.jex-md h2,.jex-md h3,.jex-md h4{font-weight:600;margin:8px 0 4px}.jex-md h1:first-child,.jex-md h2:first-child,.jex-md h3:first-child,.jex-md h4:first-child{margin-top:0}.jex-md h3{font-size:1em}.jex-md h4{font-size:.95em}.jex-md hr{border:none;border-top:1px solid var(--jex-border-window);margin:8px 0}.jex-md blockquote{border-left:3px solid var(--jex-primary);margin:0 0 8px;padding:4px 12px;color:var(--jex-text-muted)}.jex-md blockquote:last-child{margin-bottom:0}.dark .jex-md code,.jex-widget.dark .jex-md code{background:#ffffff1a}.dark .jex-md pre,.jex-widget.dark .jex-md pre{background:#ffffff14}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-md code{background:#ffffff1a}:host:not(.light) .jex-widget:not(.light) .jex-md pre{background:#ffffff14}}.jex-streaming-cursor:after{content:"◊";margin-left:2px;animation:jexBlinkCursor .8s ease-in-out infinite}@keyframes jexBlinkCursor{0%,to{opacity:1}50%{opacity:0}}.jex-session-notice{align-self:center;text-align:center;padding:8px 16px;margin:8px 0;font-size:12px;color:var(--jex-text-muted);background:var(--jex-bg-input, #f1f5f9);border-radius:8px;line-height:1.4}.jex-message-error{background:var(--jex-bg-error, #fef2f2)!important;border-color:var(--jex-border-error, #fecaca)!important;color:var(--jex-text-error, #991b1b)!important}.jex-chat-input{padding:12px 16px;border-top:1px solid var(--jex-border-window);display:flex;flex-direction:column;gap:8px;flex-shrink:0}.jex-composer-card{display:flex;flex-direction:column;gap:6px;padding:10px 12px 8px;background:var(--jex-bg-input);border:1px solid var(--jex-border-input);border-radius:16px;cursor:text;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.jex-composer-card:focus-within{border-color:var(--jex-primary);background:var(--jex-bg-window);box-shadow:0 0 0 3px color-mix(in srgb,var(--jex-primary, #115A62) 14%,transparent)}.jex-composer-attachments{display:flex;flex-wrap:wrap;gap:6px;padding:2px 2px 4px}.jex-attachment-chip{position:relative;width:44px;height:44px;border-radius:8px;overflow:hidden;background:var(--jex-bg-msg-bot, #f1f5f9);flex-shrink:0;box-shadow:0 1px 2px #0000000f}.jex-attachment-thumb{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.jex-attachment-remove{position:absolute;top:2px;right:2px;width:16px;height:16px;padding:0;border:none;border-radius:50%;background:#0f172ac7;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .12s ease,transform .12s ease}.jex-attachment-chip:hover .jex-attachment-remove,.jex-attachment-chip:focus-within .jex-attachment-remove{opacity:1}.jex-attachment-remove:hover{transform:scale(1.08)}.jex-composer-textarea{width:100%;min-height:22px;background:transparent;border:none;outline:none;resize:none;padding:2px 4px;color:var(--jex-text-main);font-family:inherit;font-size:16px;line-height:1.45;overflow-y:hidden}.jex-composer-textarea::placeholder{color:var(--jex-text-muted);opacity:.85}.jex-composer-textarea:disabled{cursor:not-allowed;opacity:.7}.jex-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.jex-composer-actions-left{display:inline-flex;align-items:center;gap:4px}.jex-attach-btn{width:30px;height:30px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--jex-text-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s ease,color .12s ease,transform .12s ease}.jex-attach-btn:hover:not(:disabled){background:color-mix(in srgb,var(--jex-text-muted, #64748b) 12%,transparent);color:var(--jex-text-main)}.jex-attach-btn:active:not(:disabled){transform:scale(.92)}.jex-attach-btn:disabled{opacity:.4;cursor:not-allowed}.jex-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.jex-rate-limit-notice{flex:1 0 100%;order:-1;margin-bottom:8px;padding:8px 12px;border-radius:10px;background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-muted, #64748b);font-size:12px;line-height:1.4;text-align:center}.jex-session-error-notice{flex:1 0 100%;order:-1;margin-bottom:8px;padding:8px 12px;border-radius:10px;background:var(--jex-bg-error, #fef2f2);border:1px solid var(--jex-border-error, #fecaca);color:var(--jex-text-error, #991b1b);font-size:12px;line-height:1.4;text-align:center}.jex-chat-input input{flex:1;background:var(--jex-bg-input);border:1px solid var(--jex-border-input);border-radius:12px;padding:10px 14px;color:var(--jex-text-main);outline:none;font-family:inherit;font-size:14px}.jex-chat-input input:focus{border-color:var(--jex-primary)}.jex-send-btn{background:color-mix(in srgb,var(--jex-text-muted, #64748b) 18%,transparent);color:var(--jex-text-muted);border:none;border-radius:999px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease,transform .15s ease;flex-shrink:0}.jex-send-btn-active{background:var(--jex-bg-send-btn, var(--jex-primary));color:var(--jex-text-header, #fff)}.jex-send-btn-active:hover:not(:disabled){background:var(--jex-primary-hover)}.jex-send-btn:active:not(:disabled){transform:scale(.9)}.jex-send-btn:disabled{opacity:.45;cursor:default}.jex-widget-footer{display:flex;align-items:center;justify-content:center;padding:8px 16px;border-top:1px solid var(--jex-border-glass);background:#00000005;flex-shrink:0}.jex-widget.dark .jex-widget-footer{background:#ffffff05}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-widget-footer{background:#ffffff05}}.jex-branding{display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--jex-text-muted);font-size:11px;font-weight:500;transition:color .2s}.jex-branding:hover{color:var(--jex-text-main)}.jex-branding-icon{color:var(--jex-primary)}.jex-branding span strong{font-weight:700;color:var(--jex-text-main)}.jex-locale-select-wrapper{position:relative;display:flex;align-items:center}.jex-locale-select{appearance:none;-webkit-appearance:none;background:transparent;border:1px solid transparent;padding:4px 20px 4px 6px;border-radius:6px;font-family:inherit;font-size:11px;font-weight:600;color:var(--jex-text-muted);background-color:transparent;cursor:pointer;outline:none;transition:all .2s ease}.jex-locale-select option{background-color:#fff;color:#0f172a}.jex-locale-select:hover,.jex-locale-select:focus-visible{color:var(--jex-text-main);background:#0000000a}.jex-widget.dark .jex-locale-select:hover,.jex-widget.dark .jex-locale-select:focus-visible{background:#ffffff0d}.jex-widget.dark .jex-locale-select option{background-color:#0f172a;color:#f8fafc}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-locale-select:hover,:host:not(.light) .jex-widget:not(.light) .jex-locale-select:focus-visible{background:#ffffff0d}:host:not(.light) .jex-widget:not(.light) .jex-locale-select option{background-color:#0f172a;color:#f8fafc}}.jex-locale-select:focus-visible{border-color:var(--jex-primary)}.jex-locale-chevron{position:absolute;right:4px;pointer-events:none;color:var(--jex-text-muted);transition:color .2s ease}.jex-locale-select-wrapper:hover .jex-locale-chevron{color:var(--jex-text-main)}.jex-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--jex-bg-window, #fff);z-index:10;padding:24px;text-align:center}.jex-loading-spinner{width:32px;height:32px;border:3px solid var(--jex-border-input, #e2e8f0);border-top-color:var(--jex-primary, #115A62);border-radius:50%;animation:jex-spin .7s linear infinite}@keyframes jex-spin{to{transform:rotate(360deg)}}.jex-loading-message{font-size:14px;color:var(--jex-text-muted, #64748b)}.jex-error-message{font-size:14px;color:var(--jex-text-main, #334155)}.jex-error-actions{display:flex;gap:8px}.jex-error-retry,.jex-error-back{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none}.jex-error-retry{background:var(--jex-primary, #115A62);color:#fff}.jex-error-back{background:transparent;color:var(--jex-text-muted, #64748b);border:1px solid var(--jex-border-input, #e2e8f0)}.jex-selection{display:flex;flex-direction:column;gap:12px;padding:24px 16px;height:100%}.jex-selection-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 8px}.jex-selection-options{display:flex;flex-direction:column;gap:10px}.jex-selection-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px;border-radius:12px;border:1px solid var(--jex-border-window, #e2e8f0);background:transparent;cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease}.jex-selection-option:hover{border-color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 5%,transparent)}.jex-selection-icon{font-size:20px}.jex-selection-label{font-size:14px;font-weight:600;color:var(--jex-text-main, #0f172a)}.jex-selection-sub{font-size:12px;color:var(--jex-text-muted, #64748b)}.jex-form-screen{display:flex;flex-direction:column;padding:20px 16px;height:100%;overflow-y:auto}.jex-form-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 16px}.jex-form{display:flex;flex-direction:column;gap:10px}.jex-form-input,.jex-form-textarea{padding:10px 12px;border-radius:8px;border:1px solid var(--jex-border-input, #e2e8f0);font-size:14px;background:transparent;color:var(--jex-text-main, #0f172a);outline:none}@media(pointer:coarse){.jex-form-input,.jex-form-textarea{font-size:16px}}.jex-form-input:focus,.jex-form-textarea:focus{border-color:var(--jex-primary, #115A62)}.jex-form-textarea{min-height:80px;resize:vertical}.jex-form-submit{padding:10px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer;margin-top:4px}.jex-inline-form{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-title{font-weight:600;font-size:15px;color:var(--jex-text-main, #0f172a);margin:0}.jex-inline-form-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.4;margin:0 0 4px}.jex-inline-form-consent{font-size:11px;color:var(--jex-text-muted, #64748b);line-height:1.3;margin-top:4px;text-align:center}.jex-inline-form .jex-form-submit:disabled{opacity:.7;cursor:not-allowed}.jex-escalation-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.45;margin:0 0 8px}.jex-escalation-skip{padding:8px 12px;border:none;background:transparent;color:var(--jex-text-muted, #64748b);font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:2px;text-align:center}.jex-escalation-skip:hover{color:var(--jex-text-main, #0f172a)}.jex-inline-form-card{position:relative;padding:14px;gap:8px}.jex-inline-form-dismiss{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-window, #fff);color:var(--jex-text-muted, #64748b);font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}.jex-inline-form-dismiss:hover{background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-check{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary) 15%,transparent);color:var(--jex-primary, #115A62);font-size:14px;font-weight:700;flex-shrink:0}.jex-inline-form-submitted-title{font-weight:600;font-size:var(--jex-font-size, 14px);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted-detail{font-size:12px;color:var(--jex-text-muted, #64748b);margin-top:2px}.jex-escalation-confirm{border-left:3px solid var(--jex-primary, #115A62);padding-left:8px}.jex-session-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;margin:8px 0;text-align:center}.jex-session-prompt-text{font-size:13px;color:var(--jex-text-muted, #64748b)}.jex-session-prompt-btn{padding:8px 16px;border-radius:8px;border:1px solid var(--jex-primary, #115A62);background:transparent;color:var(--jex-primary, #115A62);font-size:13px;font-weight:600;cursor:pointer}.jex-session-prompt-btn:hover{background:color-mix(in srgb,var(--jex-primary) 10%,transparent)}.jex-chat-input-resolved{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 16px;border-top:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-msg-bot, #f1f5f9);text-align:center}.jex-resolved-notice{font-size:13px;font-weight:500;color:var(--jex-text-muted, #64748b)}.jex-resolved-new-btn{padding:10px 20px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;width:100%}.jex-resolved-new-btn:hover{opacity:.9}.jex-confirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 24px;height:100%;text-align:center}.jex-confirmation-icon{width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary, #115A62) 15%,transparent);color:var(--jex-primary, #115A62);font-size:22px;display:flex;align-items:center;justify-content:center}.jex-confirmation-title{font-size:18px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0}.jex-confirmation-body{font-size:13px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-ref{font-size:20px;font-weight:700;letter-spacing:.05em;color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 10%,transparent);padding:10px 20px;border-radius:10px}.jex-confirmation-hint{font-size:12px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-done{margin-top:8px;padding:10px 28px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer}.jex-home-lookup-link{background:none;border:none;font-size:12px;color:var(--jex-text-muted, #64748b);cursor:pointer;text-decoration:underline;padding:0;align-self:center}.jex-home-lookup{display:flex;gap:8px;width:100%;animation:jexFadeIn .4s .1s ease both}.jex-home-lookup-input{flex:1;padding:10px 14px;border-radius:10px;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-input);color:var(--jex-text-main);font-size:14px;font-family:ui-monospace,Cascadia Code,Fira Code,monospace;letter-spacing:.04em;outline:none;transition:border-color .2s}@media(pointer:coarse){.jex-home-lookup-input{font-size:16px}}.jex-home-lookup-input::placeholder{font-family:inherit;letter-spacing:.04em;color:var(--jex-text-muted);opacity:.7}.jex-home-lookup-input:focus{border-color:var(--jex-primary, #115A62)}.jex-home-lookup-submit{padding:10px 16px;border-radius:10px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,opacity .2s;flex-shrink:0}.jex-home-lookup-submit:hover:not(:disabled){background:var(--jex-primary-hover)}.jex-home-lookup-submit:disabled{opacity:.4;cursor:default}.jex-sources-row{margin-top:6px;margin-left:32px;display:flex;flex-direction:column;gap:6px}.jex-sources-toggle{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:transparent;border:none;border-radius:6px;cursor:pointer;font-size:11px;color:var(--jex-text-muted, #6b7280);font-family:inherit;align-self:flex-start;transition:background .15s,color .15s}.jex-sources-toggle:hover{background:#0000000a;color:inherit}.jex-sources-icon{font-size:12px;line-height:1}.jex-sources-chevron{display:inline-block;font-size:10px;transition:transform .15s}.jex-sources-chevron--open{transform:rotate(180deg)}.jex-sources-pills{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.jex-source-pill{display:inline-flex;align-items:center;gap:6px;max-width:240px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:#0000000a;color:var(--jex-text-muted, #6b7280);font-size:11px;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}.jex-source-pill:hover{background:#00000014;color:inherit}.jex-source-id{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:var(--jex-primary, #115A62);color:#fff;font-size:10px;font-weight:600;line-height:1;flex-shrink:0;font-variant-numeric:tabular-nums}.jex-source-type{font-size:10px;flex-shrink:0}.jex-source-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.jex-source-score{opacity:.6;flex-shrink:0;font-variant-numeric:tabular-nums}';
|
|
7285
|
+
const Gc = '.jex-widget{--jex-primary: #115A62;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-radius: .75rem;--jex-font-family: "Inter", system-ui, -apple-system, sans-serif;--jex-font-size: 14px;--jex-window-width: 380px;--jex-window-height: 600px;--jex-shadow: 0 16px 48px -12px rgba(13, 127, 138, .25), 0 4px 16px rgba(0, 0, 0, .08);pointer-events:auto;--jex-bg-trigger: var(--jex-primary);--jex-bg-header: var(--jex-primary);--jex-bg-msg-user: var(--jex-primary);--jex-bg-send-btn: var(--jex-primary);--jex-bg-window: rgba(255, 255, 255, .95);--jex-bg-msg-bot: #f1f5f9;--jex-bg-input: rgba(247, 253, 253, .6);--jex-text-header: #ffffff;--jex-text-msg-user: #ffffff;--jex-text-msg-bot: #0f172a;--jex-text-main: #0f172a;--jex-text-muted: #64748b;--jex-bg-avatar-agent: #d1fae5;--jex-text-avatar-agent: #065f46;--jex-border-window: rgba(226, 232, 240, .8);--jex-border-input: rgba(203, 213, 225, .8);--jex-bg-glass: var(--jex-bg-window);--jex-border-glass: var(--jex-border-window);font-family:var(--jex-font-family);-webkit-font-smoothing:antialiased}.dark .jex-widget,.jex-widget.dark{--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-avatar-agent: #064e3b;--jex-text-avatar-agent: #6ee7b7;--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light){--jex-primary: #1cb0bf;--jex-primary-hover: var(--jex-accent, color-mix(in srgb, var(--jex-primary) 85%, #000));--jex-bg-window: rgba(10, 15, 26, .95);--jex-bg-msg-bot: #233146;--jex-bg-input: rgba(10, 15, 26, .6);--jex-text-msg-bot: #f8fafc;--jex-text-main: #f8fafc;--jex-text-muted: #94a3b8;--jex-border-window: rgba(30, 41, 59, .8);--jex-border-input: rgba(51, 65, 85, .9);--jex-bg-error: #3b1318;--jex-border-error: #5c1d24;--jex-text-error: #fca5a5}}.jex-widget *{box-sizing:border-box;margin:0;padding:0}.jex-container{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;align-items:flex-end;gap:16px;z-index:9999}.jex-container.jex-pos-left{right:auto;left:24px;align-items:flex-start}:host(.jex-mode-embedded){display:block;width:100%;height:100%}:host(.jex-mode-embedded) .jex-widget{width:100%;height:100%}.jex-embedded{display:flex;flex-direction:column;width:100%;height:100%;background:var(--jex-bg-window);border:1px solid var(--jex-border-window);overflow:hidden}.jex-embedded .jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-floating-button{height:56px;min-width:56px;padding:0;background:var(--jex-bg-trigger);color:var(--jex-text-header);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--jex-shadow);transition:transform .3s cubic-bezier(.175,.885,.32,1.275),background .2s,width .3s ease,border-radius .3s ease}.jex-floating-button.jex-has-label{min-width:110px;padding:0 20px}.jex-fab-inner{display:flex;align-items:center;gap:12px}.jex-fab-label{font-size:15px;font-weight:600;white-space:nowrap}.jex-floating-button:hover{transform:scale(1.1);background:var(--jex-primary-hover)}.jex-floating-button:active{transform:scale(.95)}.jex-chat-window{width:var(--jex-window-width);height:var(--jex-window-height);max-height:calc(100vh - 120px);background:var(--jex-bg-window);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid var(--jex-border-window);border-radius:calc(var(--jex-radius) * 2);box-shadow:var(--jex-shadow);display:flex;flex-direction:column;overflow:hidden;animation:jexSlideUp .4s cubic-bezier(.16,1,.3,1);transform-origin:bottom right;touch-action:manipulation}@keyframes jexSlideUp{0%{opacity:0;transform:scale(.8) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(max-width:480px),(pointer:coarse)and (max-width:768px){.jex-chat-window{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-height:none;border:none;border-radius:0;animation:jexSlideUpMobile .3s cubic-bezier(.16,1,.3,1);transform-origin:bottom center}.jex-container:has(.jex-chat-window) .jex-floating-button{display:none}}@keyframes jexSlideUpMobile{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.jex-chat-header{padding:20px;background:var(--jex-bg-header);color:var(--jex-text-header);display:flex;align-items:center;gap:12px;flex-shrink:0}.jex-header-info h3{font-size:16px;font-weight:600;color:var(--jex-text-header);margin:0}.jex-header-info p{font-size:12px;opacity:.8;color:var(--jex-text-header);margin:0}.jex-header-right{margin-left:auto;display:flex;align-items:center;gap:4px}.jex-header-handoff{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:1px solid color-mix(in srgb,currentColor 50%,transparent);border-radius:999px;padding:0;color:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.jex-header-handoff:hover:not(:disabled){background:color-mix(in srgb,currentColor 12%,transparent);border-color:currentColor}.jex-header-handoff:disabled{opacity:.5;cursor:not-allowed}.jex-header-close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:none;border-radius:999px;padding:0;color:inherit;cursor:pointer;transition:background .15s ease}.jex-header-close:hover{background:color-mix(in srgb,currentColor 14%,transparent)}.jex-handoff-error{position:absolute;top:100%;right:8px;background:#fee;color:#b00;padding:4px 8px;font-size:12px;border-radius:4px}.jex-header-back{background:none;border:none;color:var(--jex-text-header);cursor:pointer;padding:4px;display:flex;align-items:center;opacity:.8;transition:opacity .2s;flex-shrink:0}.jex-header-back:hover{opacity:1}.jex-screen-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.jex-home{flex:1;display:flex;flex-direction:column;padding:24px;gap:20px;overflow-y:auto}.jex-home-hero{display:flex;align-items:center;gap:14px;animation:jexFadeIn .4s ease both}.jex-home-avatar{position:relative;width:48px;height:48px;border-radius:14px;background:var(--jex-primary);color:var(--jex-text-header);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px color-mix(in srgb,var(--jex-primary) 30%,transparent)}.jex-home-status-dot{position:absolute;bottom:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2.5px solid var(--jex-bg-window);animation:jexPulse 2s ease-in-out infinite}@keyframes jexPulse{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 6px #22c55e00}}.jex-home-hero-text{display:flex;flex-direction:column;gap:2px;min-width:0}.jex-home-title{font-size:17px;font-weight:700;color:var(--jex-text-main);margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jex-home-status{font-size:12px;font-weight:500;color:#22c55e;letter-spacing:.02em}.jex-home-greeting{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:4px 16px 16px;padding:16px 18px;font-size:14px;line-height:1.55;color:var(--jex-text-main);animation:jexFadeIn .4s .1s ease both}.jex-home-greeting p{margin:0}@keyframes jexFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.jex-home-actions{display:flex;flex-direction:column;gap:10px;animation:jexFadeIn .4s .2s ease both}.jex-home-start-btn{background:var(--jex-bg-send-btn);color:var(--jex-text-header);border:none;border-radius:12px;padding:14px 20px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,transform .15s,box-shadow .2s;width:100%;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 25%,transparent)}.jex-home-start-btn:hover{background:var(--jex-primary-hover);transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 35%,transparent)}.jex-home-start-btn:active{transform:translateY(0);box-shadow:0 1px 4px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;padding:16px 18px;border-radius:14px;border:1.5px solid var(--jex-primary);background:color-mix(in srgb,var(--jex-primary) 6%,var(--jex-bg-window));cursor:pointer;font-family:inherit;transition:background .2s,border-color .2s,transform .15s,box-shadow .2s;box-shadow:0 2px 8px color-mix(in srgb,var(--jex-primary) 12%,transparent)}.jex-home-resume-card:hover{background:color-mix(in srgb,var(--jex-primary) 10%,var(--jex-bg-window));transform:translateY(-1px);box-shadow:0 4px 16px color-mix(in srgb,var(--jex-primary) 20%,transparent)}.jex-home-resume-card:active{transform:translateY(0)}.jex-home-resume-top{display:flex;align-items:center;justify-content:space-between}.jex-home-resume-label{font-size:14px;font-weight:600;color:var(--jex-primary)}.jex-home-resume-arrow{color:var(--jex-primary);opacity:.6;transition:opacity .2s,transform .2s}.jex-home-resume-card:hover .jex-home-resume-arrow{opacity:1;transform:translate(2px)}.jex-home-resume-ref{font-family:ui-monospace,Cascadia Code,Fira Code,monospace;font-size:13px;font-weight:600;letter-spacing:.06em;color:var(--jex-text-muted)}.jex-home-history{display:flex;flex-direction:column;gap:8px}.jex-home-resume-meta{font-size:11px;opacity:.7;margin-top:4px}.jex-home-new-btn{background:transparent;color:var(--jex-text-muted);border:1px solid var(--jex-border-input);border-radius:12px;padding:12px 20px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:color .2s,border-color .2s,background .2s;width:100%}.jex-home-new-btn:hover{color:var(--jex-text-main);border-color:var(--jex-text-muted);background:color-mix(in srgb,var(--jex-primary) 3%,transparent)}.jex-session-ref{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);border-radius:8px;font-size:12px}.jex-session-ref-label{color:var(--jex-text-muted);font-weight:500}.jex-session-ref-code{color:var(--jex-primary);font-weight:700;font-family:ui-monospace,Cascadia Code,monospace;letter-spacing:.05em}.jex-chat-messages{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.jex-message-row{display:flex;align-items:flex-end;gap:8px;max-width:85%}.jex-message-row.bot{align-self:flex-start}.jex-message-content{flex:1;min-width:0}.jex-avatar{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;margin-bottom:2px}.jex-avatar-bot{background:var(--jex-bg-msg-bot);color:var(--jex-primary)}.jex-avatar-agent{background:var(--jex-bg-avatar-agent)}.jex-avatar-img{width:100%;height:100%;border-radius:50%;object-fit:cover}.jex-avatar-initials{font-size:9px;font-weight:700;color:var(--jex-text-avatar-agent)}.jex-message-author-row{display:flex;align-items:center;gap:6px;margin-top:2px;padding-left:4px}.jex-message-author{font-size:10px;color:var(--jex-text-muted)}.jex-reply-tag-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--jex-text-muted, #6b7280);cursor:pointer;transition:background .15s,color .15s}.jex-reply-tag-btn:hover{background:#0000000f;color:var(--jex-primary, #115A62)}.jex-reply-tag-btn:focus-visible{outline:2px solid var(--jex-primary, #115A62);outline-offset:1px}.jex-message{padding:12px 16px;border-radius:18px;font-size:14px;line-height:1.4}.jex-message.bot{background:var(--jex-bg-msg-bot);border:1px solid var(--jex-border-window);color:var(--jex-text-msg-bot);border-bottom-left-radius:4px}.jex-message.user{align-self:flex-end;max-width:80%;background:var(--jex-bg-msg-user);color:var(--jex-text-msg-user);border-bottom-right-radius:4px}.jex-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px}.jex-typing span{width:8px;height:8px;border-radius:50%;background:var(--jex-text-muted);animation:jexTypingDot 1.2s infinite ease-in-out}.jex-typing span:nth-child(2){animation-delay:.2s}.jex-typing span:nth-child(3){animation-delay:.4s}@keyframes jexTypingDot{0%,80%,to{transform:scale(.8);opacity:.4}40%{transform:scale(1);opacity:1}}.jex-md{word-break:break-word;overflow-wrap:anywhere}.jex-md p{margin:0 0 8px}.jex-md p:last-child{margin-bottom:0}.jex-md strong{font-weight:600}.jex-md em{font-style:italic}.jex-md ul,.jex-md ol{margin:0 0 8px;padding-left:20px}.jex-md ul:last-child,.jex-md ol:last-child{margin-bottom:0}.jex-md ul{list-style-type:disc}.jex-md ol{list-style-type:decimal}.jex-md li{margin-bottom:2px}.jex-md li:last-child{margin-bottom:0}.jex-md a{color:var(--jex-primary);text-decoration:underline;text-underline-offset:2px}.jex-md a:hover{opacity:.8}.jex-md code{background:#00000014;padding:1px 5px;border-radius:4px;font-size:.9em;font-family:ui-monospace,Cascadia Code,Fira Code,monospace}.jex-md pre{background:#0000000f;border-radius:8px;padding:10px 12px;margin:0 0 8px;overflow-x:auto;font-size:.85em}.jex-md pre:last-child{margin-bottom:0}.jex-md pre code{background:none;padding:0;border-radius:0;font-size:inherit}.jex-md h1,.jex-md h2,.jex-md h3,.jex-md h4{font-weight:600;margin:8px 0 4px}.jex-md h1:first-child,.jex-md h2:first-child,.jex-md h3:first-child,.jex-md h4:first-child{margin-top:0}.jex-md h3{font-size:1em}.jex-md h4{font-size:.95em}.jex-md hr{border:none;border-top:1px solid var(--jex-border-window);margin:8px 0}.jex-md blockquote{border-left:3px solid var(--jex-primary);margin:0 0 8px;padding:4px 12px;color:var(--jex-text-muted)}.jex-md blockquote:last-child{margin-bottom:0}.dark .jex-md code,.jex-widget.dark .jex-md code{background:#ffffff1a}.dark .jex-md pre,.jex-widget.dark .jex-md pre{background:#ffffff14}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-md code{background:#ffffff1a}:host:not(.light) .jex-widget:not(.light) .jex-md pre{background:#ffffff14}}.jex-streaming-cursor:after{content:"◊";margin-left:2px;animation:jexBlinkCursor .8s ease-in-out infinite}@keyframes jexBlinkCursor{0%,to{opacity:1}50%{opacity:0}}.jex-session-notice{align-self:center;text-align:center;padding:8px 16px;margin:8px 0;font-size:12px;color:var(--jex-text-muted);background:var(--jex-bg-input, #f1f5f9);border-radius:8px;line-height:1.4}.jex-message-error{background:var(--jex-bg-error, #fef2f2)!important;border-color:var(--jex-border-error, #fecaca)!important;color:var(--jex-text-error, #991b1b)!important}.jex-chat-input{padding:12px 16px;border-top:1px solid var(--jex-border-window);display:flex;flex-direction:column;gap:8px;flex-shrink:0}.jex-composer-card{display:flex;flex-direction:column;gap:6px;padding:10px 12px 8px;background:var(--jex-bg-input);border:1px solid var(--jex-border-input);border-radius:16px;cursor:text;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.jex-composer-card:focus-within{border-color:var(--jex-primary);background:var(--jex-bg-window);box-shadow:0 0 0 3px color-mix(in srgb,var(--jex-primary, #115A62) 14%,transparent)}.jex-composer-attachments{display:flex;flex-wrap:wrap;gap:6px;padding:2px 2px 4px}.jex-attachment-chip{position:relative;width:44px;height:44px;border-radius:8px;overflow:hidden;background:var(--jex-bg-msg-bot, #f1f5f9);flex-shrink:0;box-shadow:0 1px 2px #0000000f}.jex-attachment-thumb{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.jex-attachment-remove{position:absolute;top:2px;right:2px;width:16px;height:16px;padding:0;border:none;border-radius:50%;background:#0f172ac7;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .12s ease,transform .12s ease}.jex-attachment-chip:hover .jex-attachment-remove,.jex-attachment-chip:focus-within .jex-attachment-remove{opacity:1}.jex-attachment-remove:hover{transform:scale(1.08)}.jex-composer-textarea{width:100%;min-height:22px;background:transparent;border:none;outline:none;resize:none;padding:2px 4px;color:var(--jex-text-main);font-family:inherit;font-size:16px;line-height:1.45;overflow-y:hidden}.jex-composer-textarea::placeholder{color:var(--jex-text-muted);opacity:.85}.jex-composer-textarea:disabled{cursor:not-allowed;opacity:.7}.jex-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.jex-composer-actions-left{display:inline-flex;align-items:center;gap:4px}.jex-attach-btn{width:30px;height:30px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--jex-text-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s ease,color .12s ease,transform .12s ease}.jex-attach-btn:hover:not(:disabled){background:color-mix(in srgb,var(--jex-text-muted, #64748b) 12%,transparent);color:var(--jex-text-main)}.jex-attach-btn:active:not(:disabled){transform:scale(.92)}.jex-attach-btn:disabled{opacity:.4;cursor:not-allowed}.jex-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.jex-rate-limit-notice{flex:1 0 100%;order:-1;margin-bottom:8px;padding:8px 12px;border-radius:10px;background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-muted, #64748b);font-size:12px;line-height:1.4;text-align:center}.jex-session-error-notice{flex:1 0 100%;order:-1;margin-bottom:8px;padding:8px 12px;border-radius:10px;background:var(--jex-bg-error, #fef2f2);border:1px solid var(--jex-border-error, #fecaca);color:var(--jex-text-error, #991b1b);font-size:12px;line-height:1.4;text-align:center}.jex-chat-input input{flex:1;background:var(--jex-bg-input);border:1px solid var(--jex-border-input);border-radius:12px;padding:10px 14px;color:var(--jex-text-main);outline:none;font-family:inherit;font-size:14px}.jex-chat-input input:focus{border-color:var(--jex-primary)}.jex-send-btn{background:color-mix(in srgb,var(--jex-text-muted, #64748b) 18%,transparent);color:var(--jex-text-muted);border:none;border-radius:999px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease,transform .15s ease;flex-shrink:0}.jex-send-btn-active{background:var(--jex-bg-send-btn, var(--jex-primary));color:var(--jex-text-header, #fff)}.jex-send-btn-active:hover:not(:disabled){background:var(--jex-primary-hover)}.jex-send-btn:active:not(:disabled){transform:scale(.9)}.jex-send-btn:disabled{opacity:.45;cursor:default}.jex-widget-footer{display:flex;align-items:center;justify-content:center;padding:8px 16px;border-top:1px solid var(--jex-border-glass);background:#00000005;flex-shrink:0}.jex-widget.dark .jex-widget-footer{background:#ffffff05}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-widget-footer{background:#ffffff05}}.jex-branding{display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--jex-text-muted);font-size:11px;font-weight:500;transition:color .2s}.jex-branding:hover{color:var(--jex-text-main)}.jex-branding-icon{color:var(--jex-primary)}.jex-branding span strong{font-weight:700;color:var(--jex-text-main)}.jex-locale-select-wrapper{position:relative;display:flex;align-items:center}.jex-locale-select{appearance:none;-webkit-appearance:none;background:transparent;border:1px solid transparent;padding:4px 20px 4px 6px;border-radius:6px;font-family:inherit;font-size:11px;font-weight:600;color:var(--jex-text-muted);background-color:transparent;cursor:pointer;outline:none;transition:all .2s ease}.jex-locale-select option{background-color:#fff;color:#0f172a}.jex-locale-select:hover,.jex-locale-select:focus-visible{color:var(--jex-text-main);background:#0000000a}.jex-widget.dark .jex-locale-select:hover,.jex-widget.dark .jex-locale-select:focus-visible{background:#ffffff0d}.jex-widget.dark .jex-locale-select option{background-color:#0f172a;color:#f8fafc}@media(prefers-color-scheme:dark){:host:not(.light) .jex-widget:not(.light) .jex-locale-select:hover,:host:not(.light) .jex-widget:not(.light) .jex-locale-select:focus-visible{background:#ffffff0d}:host:not(.light) .jex-widget:not(.light) .jex-locale-select option{background-color:#0f172a;color:#f8fafc}}.jex-locale-select:focus-visible{border-color:var(--jex-primary)}.jex-locale-chevron{position:absolute;right:4px;pointer-events:none;color:var(--jex-text-muted);transition:color .2s ease}.jex-locale-select-wrapper:hover .jex-locale-chevron{color:var(--jex-text-main)}.jex-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--jex-bg-window, #fff);z-index:10;padding:24px;text-align:center}.jex-loading-spinner{width:32px;height:32px;border:3px solid var(--jex-border-input, #e2e8f0);border-top-color:var(--jex-primary, #115A62);border-radius:50%;animation:jex-spin .7s linear infinite}@keyframes jex-spin{to{transform:rotate(360deg)}}.jex-loading-message{font-size:14px;color:var(--jex-text-muted, #64748b)}.jex-error-message{font-size:14px;color:var(--jex-text-main, #334155)}.jex-error-actions{display:flex;gap:8px}.jex-error-retry,.jex-error-back{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none}.jex-error-retry{background:var(--jex-primary, #115A62);color:#fff}.jex-error-back{background:transparent;color:var(--jex-text-muted, #64748b);border:1px solid var(--jex-border-input, #e2e8f0)}.jex-selection{display:flex;flex-direction:column;gap:12px;padding:24px 16px;height:100%}.jex-selection-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 8px}.jex-selection-options{display:flex;flex-direction:column;gap:10px}.jex-selection-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px;border-radius:12px;border:1px solid var(--jex-border-window, #e2e8f0);background:transparent;cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease}.jex-selection-option:hover{border-color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 5%,transparent)}.jex-selection-icon{font-size:20px}.jex-selection-label{font-size:14px;font-weight:600;color:var(--jex-text-main, #0f172a)}.jex-selection-sub{font-size:12px;color:var(--jex-text-muted, #64748b)}.jex-form-screen{display:flex;flex-direction:column;padding:20px 16px;height:100%;overflow-y:auto}.jex-form-title{font-size:16px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0 0 16px}.jex-form{display:flex;flex-direction:column;gap:10px}.jex-form-input,.jex-form-textarea{padding:10px 12px;border-radius:8px;border:1px solid var(--jex-border-input, #e2e8f0);font-size:14px;background:transparent;color:var(--jex-text-main, #0f172a);outline:none}@media(pointer:coarse){.jex-form-input,.jex-form-textarea{font-size:16px}}.jex-form-input:focus,.jex-form-textarea:focus{border-color:var(--jex-primary, #115A62)}.jex-form-textarea{min-height:80px;resize:vertical}.jex-form-submit{padding:10px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer;margin-top:4px}.jex-inline-form{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-title{font-weight:600;font-size:15px;color:var(--jex-text-main, #0f172a);margin:0}.jex-inline-form-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.4;margin:0 0 4px}.jex-inline-form-consent{font-size:11px;color:var(--jex-text-muted, #64748b);line-height:1.3;margin-top:4px;text-align:center}.jex-inline-form .jex-form-submit:disabled{opacity:.7;cursor:not-allowed}.jex-escalation-subtitle{font-size:13px;color:var(--jex-text-muted, #64748b);line-height:1.45;margin:0 0 8px}.jex-escalation-skip{padding:8px 12px;border:none;background:transparent;color:var(--jex-text-muted, #64748b);font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:2px;text-align:center}.jex-escalation-skip:hover{color:var(--jex-text-main, #0f172a)}.jex-inline-form-card{position:relative;padding:14px;gap:8px}.jex-inline-form-dismiss{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-window, #fff);color:var(--jex-text-muted, #64748b);font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}.jex-inline-form-dismiss:hover{background:var(--jex-bg-msg-bot, #f1f5f9);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--jex-bg-msg-bot, #f1f5f9);border:1px solid var(--jex-border-input, #e2e8f0);border-radius:var(--jex-radius, .75rem);width:100%}.jex-inline-form-check{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary) 15%,transparent);color:var(--jex-primary, #115A62);font-size:14px;font-weight:700;flex-shrink:0}.jex-inline-form-submitted-title{font-weight:600;font-size:var(--jex-font-size, 14px);color:var(--jex-text-main, #0f172a)}.jex-inline-form-submitted-detail{font-size:12px;color:var(--jex-text-muted, #64748b);margin-top:2px}.jex-escalation-confirm{border-left:3px solid var(--jex-primary, #115A62);padding-left:8px}.jex-session-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;margin:8px 0;text-align:center}.jex-session-prompt-text{font-size:13px;color:var(--jex-text-muted, #64748b)}.jex-session-prompt-btn{padding:8px 16px;border-radius:8px;border:1px solid var(--jex-primary, #115A62);background:transparent;color:var(--jex-primary, #115A62);font-size:13px;font-weight:600;cursor:pointer}.jex-session-prompt-btn:hover{background:color-mix(in srgb,var(--jex-primary) 10%,transparent)}.jex-chat-input-resolved{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 16px;border-top:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-msg-bot, #f1f5f9);text-align:center}.jex-resolved-notice{font-size:13px;font-weight:500;color:var(--jex-text-muted, #64748b)}.jex-resolved-new-btn{padding:10px 20px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;width:100%}.jex-resolved-new-btn:hover{opacity:.9}.jex-confirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 24px;height:100%;text-align:center}.jex-confirmation-icon{width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--jex-primary, #115A62) 15%,transparent);color:var(--jex-primary, #115A62);font-size:22px;display:flex;align-items:center;justify-content:center}.jex-confirmation-title{font-size:18px;font-weight:700;color:var(--jex-text-main, #0f172a);margin:0}.jex-confirmation-body{font-size:13px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-ref{font-size:20px;font-weight:700;letter-spacing:.05em;color:var(--jex-primary, #115A62);background:color-mix(in srgb,var(--jex-primary, #115A62) 10%,transparent);padding:10px 20px;border-radius:10px}.jex-confirmation-hint{font-size:12px;color:var(--jex-text-muted, #64748b);margin:0}.jex-confirmation-done{margin-top:8px;padding:10px 28px;border-radius:8px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:14px;font-weight:600;cursor:pointer}.jex-home-lookup-link{background:none;border:none;font-size:12px;color:var(--jex-text-muted, #64748b);cursor:pointer;text-decoration:underline;padding:0;align-self:center}.jex-home-lookup{display:flex;gap:8px;width:100%;animation:jexFadeIn .4s .1s ease both}.jex-home-lookup-input{flex:1;padding:10px 14px;border-radius:10px;border:1px solid var(--jex-border-input, #e2e8f0);background:var(--jex-bg-input);color:var(--jex-text-main);font-size:14px;font-family:ui-monospace,Cascadia Code,Fira Code,monospace;letter-spacing:.04em;outline:none;transition:border-color .2s}@media(pointer:coarse){.jex-home-lookup-input{font-size:16px}}.jex-home-lookup-input::placeholder{font-family:inherit;letter-spacing:.04em;color:var(--jex-text-muted);opacity:.7}.jex-home-lookup-input:focus{border-color:var(--jex-primary, #115A62)}.jex-home-lookup-submit{padding:10px 16px;border-radius:10px;border:none;background:var(--jex-primary, #115A62);color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s,opacity .2s;flex-shrink:0}.jex-home-lookup-submit:hover:not(:disabled){background:var(--jex-primary-hover)}.jex-home-lookup-submit:disabled{opacity:.4;cursor:default}.jex-sources-row{margin-top:6px;margin-left:32px;display:flex;flex-direction:column;gap:6px}.jex-sources-toggle{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:transparent;border:none;border-radius:6px;cursor:pointer;font-size:11px;color:var(--jex-text-muted, #6b7280);font-family:inherit;align-self:flex-start;transition:background .15s,color .15s}.jex-sources-toggle:hover{background:#0000000a;color:inherit}.jex-sources-icon{font-size:12px;line-height:1}.jex-sources-chevron{display:inline-block;font-size:10px;transition:transform .15s}.jex-sources-chevron--open{transform:rotate(180deg)}.jex-sources-pills{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.jex-source-pill{display:inline-flex;align-items:center;gap:6px;max-width:240px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:#0000000a;color:var(--jex-text-muted, #6b7280);font-size:11px;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}.jex-source-pill:hover{background:#00000014;color:inherit}.jex-source-id{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:var(--jex-primary, #115A62);color:#fff;font-size:10px;font-weight:600;line-height:1;flex-shrink:0;font-variant-numeric:tabular-nums}.jex-source-type{font-size:10px;flex-shrink:0}.jex-source-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.jex-source-score{opacity:.6;flex-shrink:0;font-variant-numeric:tabular-nums}';
|
|
7257
7286
|
function Yc(t) {
|
|
7258
7287
|
const e = document.createElement("style");
|
|
7259
|
-
e.textContent =
|
|
7288
|
+
e.textContent = Gc, t.appendChild(e);
|
|
7260
7289
|
}
|
|
7261
7290
|
const Xc = "https://festive-mouse-978.eu-west-1.convex.cloud";
|
|
7262
|
-
let
|
|
7291
|
+
let Kt = null;
|
|
7263
7292
|
function eu(t) {
|
|
7264
7293
|
const e = t ?? Xc;
|
|
7265
7294
|
if (!e)
|
|
7266
7295
|
throw new Error("[jexity] No Convex URL — set VITE_CONVEX_URL at build time or data-convex-url on the script tag");
|
|
7267
|
-
return
|
|
7296
|
+
return Kt || (Kt = new ja(Qa(e))), Kt;
|
|
7268
7297
|
}
|
|
7269
7298
|
function tu(t, e) {
|
|
7270
7299
|
const n = t.shadowRoot ?? t.attachShadow({ mode: "open" });
|
|
@@ -7273,7 +7302,7 @@ function tu(t, e) {
|
|
|
7273
7302
|
Yc(n), jt.value = e.source, le.value = e.bootstrapToken, N.value = [{ id: "home" }], e.mode === "embedded" && (t.classList.add("jex-mode-embedded"), q.value = !0);
|
|
7274
7303
|
const r = document.createElement("div");
|
|
7275
7304
|
return e.mode === "embedded" && (r.style.cssText = "width:100%;height:100%"), n.appendChild(r), ge(
|
|
7276
|
-
/* @__PURE__ */ c(Ca, { client: eu(e.convexUrl), children: /* @__PURE__ */ c(
|
|
7305
|
+
/* @__PURE__ */ c(Ca, { client: eu(e.convexUrl), children: /* @__PURE__ */ c(Zc, { options: e }) }),
|
|
7277
7306
|
r
|
|
7278
7307
|
), function() {
|
|
7279
7308
|
ge(null, r), q.value = !1, jt.value = void 0, le.value = void 0, N.value = [{ id: "home" }];
|