@eka-care/medassist-widget 0.1.84 → 0.1.85
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/{medassist-widget-CardList-DCmadzzk.js → medassist-widget-CardList-BR2hjo_A.js} +11 -11
- package/dist/{medassist-widget-DoctorCard-B9Zb-zvl.js → medassist-widget-DoctorCard-BdLitZW0.js} +152 -139
- package/dist/{medassist-widget-MediaCard-wTRSvQWH.js → medassist-widget-MediaCard-DRUToQV3.js} +1 -1
- package/dist/medassist-widget.js +848 -863
- package/package.json +2 -2
package/dist/medassist-widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var kn, W,
|
|
1
|
+
var kn, W, Si, Et, Vo, wi, Ci, gr, Yn, wn, Ti, Qr, Ur, $r, Ni, Jn = {}, Qn = [], yl = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Rn = Array.isArray;
|
|
2
2
|
function Je(e, t) {
|
|
3
3
|
for (var n in t) e[n] = t[n];
|
|
4
4
|
return e;
|
|
@@ -13,10 +13,10 @@ function De(e, t, n) {
|
|
|
13
13
|
return Cn(e, a, r, o, null);
|
|
14
14
|
}
|
|
15
15
|
function Cn(e, t, n, r, o) {
|
|
16
|
-
var s = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++
|
|
16
|
+
var s = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++Si, __i: -1, __u: 0 };
|
|
17
17
|
return o == null && W.vnode != null && W.vnode(s), s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function xi() {
|
|
20
20
|
return { current: null };
|
|
21
21
|
}
|
|
22
22
|
function be(e) {
|
|
@@ -30,42 +30,42 @@ function Ut(e, t) {
|
|
|
30
30
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
31
31
|
return typeof e.type == "function" ? Ut(e) : null;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function vl(e) {
|
|
34
34
|
if (e.__P && e.__d) {
|
|
35
35
|
var t = e.__v, n = t.__e, r = [], o = [], s = Je({}, t);
|
|
36
|
-
s.__v = t.__v + 1, W.vnode && W.vnode(s), to(e.__P, s, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? Ut(t), !!(32 & t.__u), o), s.__v = t.__v, s.__.__k[s.__i] = s,
|
|
36
|
+
s.__v = t.__v + 1, W.vnode && W.vnode(s), to(e.__P, s, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? Ut(t), !!(32 & t.__u), o), s.__v = t.__v, s.__.__k[s.__i] = s, Ai(r, s, o), t.__e = t.__ = null, s.__e != n && ki(s);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ki(e) {
|
|
40
40
|
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
|
|
41
41
|
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
|
|
42
|
-
}),
|
|
42
|
+
}), ki(e);
|
|
43
43
|
}
|
|
44
44
|
function zr(e) {
|
|
45
|
-
(!e.__d && (e.__d = !0) && Et.push(e) && !er.__r++ ||
|
|
45
|
+
(!e.__d && (e.__d = !0) && Et.push(e) && !er.__r++ || Vo != W.debounceRendering) && ((Vo = W.debounceRendering) || wi)(er);
|
|
46
46
|
}
|
|
47
47
|
function er() {
|
|
48
48
|
try {
|
|
49
|
-
for (var e, t = 1; Et.length; ) Et.length > t && Et.sort(
|
|
49
|
+
for (var e, t = 1; Et.length; ) Et.length > t && Et.sort(Ci), e = Et.shift(), t = Et.length, vl(e);
|
|
50
50
|
} finally {
|
|
51
51
|
Et.length = er.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ri(e, t, n, r, o, s, a, i, c, d, m) {
|
|
55
55
|
var u, p, h, _, b, y, f, g = r && r.__k || Qn, E = t.length;
|
|
56
|
-
for (c =
|
|
56
|
+
for (c = Sl(n, t, g, c, E), u = 0; u < E; u++) (h = n.__k[u]) != null && (p = h.__i != -1 && g[h.__i] || Jn, h.__i = u, y = to(e, h, p, o, s, a, i, c, d, m), _ = h.__e, h.ref && p.ref != h.ref && (p.ref && no(p.ref, null, h), m.push(h.ref, h.__c || _, h)), b == null && _ != null && (b = _), (f = !!(4 & h.__u)) || p.__k === h.__k ? (c = Ii(h, c, e, f), f && p.__e && (p.__e = null)) : typeof h.type == "function" && y !== void 0 ? c = y : _ && (c = _.nextSibling), h.__u &= -7);
|
|
57
57
|
return n.__e = b, c;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Sl(e, t, n, r, o) {
|
|
60
60
|
var s, a, i, c, d, m = n.length, u = m, p = 0;
|
|
61
|
-
for (e.__k = new Array(o), s = 0; s < o; s++) (a = t[s]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = e.__k[s] = Cn(null, a, null, null, null) : Rn(a) ? a = e.__k[s] = Cn(be, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? a = e.__k[s] = Cn(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : e.__k[s] = a, c = s + p, a.__ = e, a.__b = e.__b + 1, i = null, (d = a.__i =
|
|
62
|
-
if (u) for (s = 0; s < m; s++) (i = n[s]) != null && (2 & i.__u) == 0 && (i.__e == r && (r = Ut(i)),
|
|
61
|
+
for (e.__k = new Array(o), s = 0; s < o; s++) (a = t[s]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = e.__k[s] = Cn(null, a, null, null, null) : Rn(a) ? a = e.__k[s] = Cn(be, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? a = e.__k[s] = Cn(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : e.__k[s] = a, c = s + p, a.__ = e, a.__b = e.__b + 1, i = null, (d = a.__i = wl(a, n, c, u)) != -1 && (u--, (i = n[d]) && (i.__u |= 2)), i == null || i.__v == null ? (d == -1 && (o > m ? p-- : o < m && p++), typeof a.type != "function" && (a.__u |= 4)) : d != c && (d == c - 1 ? p-- : d == c + 1 ? p++ : (d > c ? p-- : p++, a.__u |= 4))) : e.__k[s] = null;
|
|
62
|
+
if (u) for (s = 0; s < m; s++) (i = n[s]) != null && (2 & i.__u) == 0 && (i.__e == r && (r = Ut(i)), Mi(i, i));
|
|
63
63
|
return r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Ii(e, t, n, r) {
|
|
66
66
|
var o, s;
|
|
67
67
|
if (typeof e.type == "function") {
|
|
68
|
-
for (o = e.__k, s = 0; o && s < o.length; s++) o[s] && (o[s].__ = e, t =
|
|
68
|
+
for (o = e.__k, s = 0; o && s < o.length; s++) o[s] && (o[s].__ = e, t = Ii(o[s], t, n, r));
|
|
69
69
|
return t;
|
|
70
70
|
}
|
|
71
71
|
e.__e != t && (r && (t && e.type && !t.parentNode && (t = Ut(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
|
|
@@ -79,7 +79,7 @@ function st(e, t) {
|
|
|
79
79
|
st(n, t);
|
|
80
80
|
}) : t.push(e)), t;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function wl(e, t, n, r) {
|
|
83
83
|
var o, s, a, i = e.key, c = e.type, d = t[n], m = d != null && (2 & d.__u) == 0;
|
|
84
84
|
if (d === null && i == null || m && i == d.key && c == d.type) return n;
|
|
85
85
|
if (r > (m ? 1 : 0)) {
|
|
@@ -87,17 +87,17 @@ function Cl(e, t, n, r) {
|
|
|
87
87
|
}
|
|
88
88
|
return -1;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
90
|
+
function Uo(e, t, n) {
|
|
91
|
+
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || yl.test(t) ? n : n + "px";
|
|
92
92
|
}
|
|
93
93
|
function Fn(e, t, n, r, o) {
|
|
94
94
|
var s, a;
|
|
95
95
|
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
|
|
96
96
|
else {
|
|
97
|
-
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n ||
|
|
98
|
-
if (n) for (t in n) r && n[t] == r[t] ||
|
|
97
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || Uo(e.style, t, "");
|
|
98
|
+
if (n) for (t in n) r && n[t] == r[t] || Uo(e.style, t, n[t]);
|
|
99
99
|
}
|
|
100
|
-
else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(
|
|
100
|
+
else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(Ti, "$1")), a = t.toLowerCase(), t = a in e || t == "onFocusOut" || t == "onFocusIn" ? a.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = n, n ? r ? n[wn] = r[wn] : (n[wn] = Qr, e.addEventListener(t, s ? $r : Ur, s)) : e.removeEventListener(t, s ? $r : Ur, s);
|
|
101
101
|
else {
|
|
102
102
|
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
103
103
|
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
@@ -108,7 +108,7 @@ function Fn(e, t, n, r, o) {
|
|
|
108
108
|
typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function $o(e) {
|
|
112
112
|
return function(t) {
|
|
113
113
|
if (this.l) {
|
|
114
114
|
var n = this.l[t.type + e];
|
|
@@ -123,7 +123,7 @@ function to(e, t, n, r, o, s, a, i, c, d) {
|
|
|
123
123
|
if (t.constructor !== void 0) return null;
|
|
124
124
|
128 & n.__u && (c = !!(32 & n.__u), s = [i = t.__e = n.__e]), (m = W.__b) && m(t);
|
|
125
125
|
e: if (typeof v == "function") try {
|
|
126
|
-
if (f = t.props, g = v.prototype && v.prototype.render, E = (m = v.contextType) && r[m.__c], N = m ? E ? E.props.value : m.__ : r, n.__c ? y = (u = t.__c = n.__c).__ = u.__E : (g ? t.__c = u = new v(f, N) : (t.__c = u = new Ge(f, N), u.constructor = v, u.render =
|
|
126
|
+
if (f = t.props, g = v.prototype && v.prototype.render, E = (m = v.contextType) && r[m.__c], N = m ? E ? E.props.value : m.__ : r, n.__c ? y = (u = t.__c = n.__c).__ = u.__E : (g ? t.__c = u = new v(f, N) : (t.__c = u = new Ge(f, N), u.constructor = v, u.render = Tl), E && E.sub(u), u.state || (u.state = {}), u.__n = r, p = u.__d = !0, u.__h = [], u._sb = []), g && u.__s == null && (u.__s = u.state), g && v.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Je({}, u.__s)), Je(u.__s, v.getDerivedStateFromProps(f, u.__s))), h = u.props, _ = u.state, u.__v = t, p) g && v.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), g && u.componentDidMount != null && u.__h.push(u.componentDidMount);
|
|
127
127
|
else {
|
|
128
128
|
if (g && v.getDerivedStateFromProps == null && f !== h && u.componentWillReceiveProps != null && u.componentWillReceiveProps(f, N), t.__v == n.__v || !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(f, u.__s, N) === !1) {
|
|
129
129
|
t.__v != n.__v && (u.props = f, u.state = u.__s, u.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(x) {
|
|
@@ -139,7 +139,7 @@ function to(e, t, n, r, o, s, a, i, c, d) {
|
|
|
139
139
|
else do
|
|
140
140
|
u.__d = !1, w && w(t), m = u.render(u.props, u.state, u.context), u.state = u.__s;
|
|
141
141
|
while (u.__d && ++C < 25);
|
|
142
|
-
u.state = u.__s, u.getChildContext != null && (r = Je(Je({}, r), u.getChildContext())), g && !p && u.getSnapshotBeforeUpdate != null && (b = u.getSnapshotBeforeUpdate(h, _)), T = m != null && m.type === be && m.key == null ?
|
|
142
|
+
u.state = u.__s, u.getChildContext != null && (r = Je(Je({}, r), u.getChildContext())), g && !p && u.getSnapshotBeforeUpdate != null && (b = u.getSnapshotBeforeUpdate(h, _)), T = m != null && m.type === be && m.key == null ? Oi(m.props.children) : m, i = Ri(e, Rn(T) ? T : [T], t, n, r, o, s, a, i, c, d), u.base = t.__e, t.__u &= -161, u.__h.length && a.push(u), y && (u.__E = u.__ = null);
|
|
143
143
|
} catch (x) {
|
|
144
144
|
if (t.__v = null, c || s != null) if (x.then) {
|
|
145
145
|
for (t.__u |= c ? 160 : 128; i && i.nodeType == 8 && i.nextSibling; ) i = i.nextSibling;
|
|
@@ -151,13 +151,13 @@ function to(e, t, n, r, o, s, a, i, c, d) {
|
|
|
151
151
|
else t.__e = n.__e, t.__k = n.__k, x.then || Br(t);
|
|
152
152
|
W.__e(x, t, n);
|
|
153
153
|
}
|
|
154
|
-
else s == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : i = t.__e =
|
|
154
|
+
else s == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : i = t.__e = Cl(n.__e, t, n, r, o, s, a, c, d);
|
|
155
155
|
return (m = W.diffed) && m(t), 128 & t.__u ? void 0 : i;
|
|
156
156
|
}
|
|
157
157
|
function Br(e) {
|
|
158
158
|
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(Br));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ai(e, t, n) {
|
|
161
161
|
for (var r = 0; r < n.length; r++) no(n[r], n[++r], n[++r]);
|
|
162
162
|
W.__c && W.__c(t, e), e.some(function(o) {
|
|
163
163
|
try {
|
|
@@ -169,10 +169,10 @@ function Oi(e, t, n) {
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return typeof e != "object" || e == null || e.__b > 0 ? e : Rn(e) ? e.map(
|
|
172
|
+
function Oi(e) {
|
|
173
|
+
return typeof e != "object" || e == null || e.__b > 0 ? e : Rn(e) ? e.map(Oi) : e.constructor !== void 0 ? null : Je({}, e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Cl(e, t, n, r, o, s, a, i, c) {
|
|
176
176
|
var d, m, u, p, h, _, b, y = n.props || Jn, f = t.props, g = t.type;
|
|
177
177
|
if (g == "svg" ? o = "http://www.w3.org/2000/svg" : g == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), s != null) {
|
|
178
178
|
for (d = 0; d < s.length; d++) if ((h = s[d]) && "setAttribute" in h == !!g && (g ? h.localName == g : h.nodeType == 3)) {
|
|
@@ -190,7 +190,7 @@ function Tl(e, t, n, r, o, s, a, i, c) {
|
|
|
190
190
|
for (d in y) h = y[d], d == "dangerouslySetInnerHTML" ? u = h : d == "children" || d in f || d == "value" && "defaultValue" in f || d == "checked" && "defaultChecked" in f || Fn(e, d, null, h, o);
|
|
191
191
|
for (d in f) h = f[d], d == "children" ? p = h : d == "dangerouslySetInnerHTML" ? m = h : d == "value" ? _ = h : d == "checked" ? b = h : i && typeof h != "function" || y[d] === h || Fn(e, d, h, y[d], o);
|
|
192
192
|
if (m) i || u && (m.__html == u.__html || m.__html == e.innerHTML) || (e.innerHTML = m.__html), t.__k = [];
|
|
193
|
-
else if (u && (e.innerHTML = ""),
|
|
193
|
+
else if (u && (e.innerHTML = ""), Ri(t.type == "template" ? e.content : e, Rn(p) ? p : [p], t, n, r, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, a, s ? s[0] : n.__k && Ut(n, 0), i, c), s != null) for (d = s.length; d--; ) eo(s[d]);
|
|
194
194
|
i && g != "textarea" || (d = "value", g == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || g == "progress" && !_ || g == "option" && _ != y[d]) && Fn(e, d, _, y[d], o), d = "checked", b != null && b != e[d] && Fn(e, d, b, y[d], o));
|
|
195
195
|
}
|
|
196
196
|
return e;
|
|
@@ -205,7 +205,7 @@ function no(e, t, n) {
|
|
|
205
205
|
W.__e(o, n);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Mi(e, t, n) {
|
|
209
209
|
var r, o;
|
|
210
210
|
if (W.unmount && W.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || no(r, null, t)), (r = e.__c) != null) {
|
|
211
211
|
if (r.componentWillUnmount) try {
|
|
@@ -215,20 +215,20 @@ function Pi(e, t, n) {
|
|
|
215
215
|
}
|
|
216
216
|
r.base = r.__P = null;
|
|
217
217
|
}
|
|
218
|
-
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] &&
|
|
218
|
+
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Mi(r[o], t, n || typeof e.type != "function");
|
|
219
219
|
n || eo(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Tl(e, t, n) {
|
|
222
222
|
return this.constructor(e, n);
|
|
223
223
|
}
|
|
224
224
|
function Nn(e, t, n) {
|
|
225
225
|
var r, o, s, a;
|
|
226
|
-
t == document && (t = document.documentElement), W.__ && W.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], a = [], to(t, e = (!r && n || t).__k = De(be, null, [e]), o || Jn, Jn, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? kn.call(t.childNodes) : null, s, !r && n ? n : o ? o.__e : t.firstChild, r, a),
|
|
226
|
+
t == document && (t = document.documentElement), W.__ && W.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], a = [], to(t, e = (!r && n || t).__k = De(be, null, [e]), o || Jn, Jn, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? kn.call(t.childNodes) : null, s, !r && n ? n : o ? o.__e : t.firstChild, r, a), Ai(s, e, a);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
Nn(e, t,
|
|
228
|
+
function Pi(e, t) {
|
|
229
|
+
Nn(e, t, Pi);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Nl(e, t, n) {
|
|
232
232
|
var r, o, s, a, i = Je({}, e.props);
|
|
233
233
|
for (s in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) s == "key" ? r = t[s] : s == "ref" ? o = t[s] : i[s] = t[s] === void 0 && a != null ? a[s] : t[s];
|
|
234
234
|
return arguments.length > 2 && (i.children = arguments.length > 3 ? kn.call(arguments, 2) : n), Cn(e.type, i, r || e.key, o || e.ref, null);
|
|
@@ -252,7 +252,7 @@ function it(e) {
|
|
|
252
252
|
};
|
|
253
253
|
}), n.children;
|
|
254
254
|
}
|
|
255
|
-
return t.__c = "__cC" +
|
|
255
|
+
return t.__c = "__cC" + Ni++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
|
|
256
256
|
return n.children(r);
|
|
257
257
|
}).contextType = t, t;
|
|
258
258
|
}
|
|
@@ -263,35 +263,35 @@ kn = Qn.slice, W = { __e: function(e, t, n, r) {
|
|
|
263
263
|
e = i;
|
|
264
264
|
}
|
|
265
265
|
throw e;
|
|
266
|
-
} },
|
|
266
|
+
} }, Si = 0, Ge.prototype.setState = function(e, t) {
|
|
267
267
|
var n;
|
|
268
268
|
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Je({}, this.state), typeof e == "function" && (e = e(Je({}, n), this.props)), e && Je(n, e), e != null && this.__v && (t && this._sb.push(t), zr(this));
|
|
269
269
|
}, Ge.prototype.forceUpdate = function(e) {
|
|
270
270
|
this.__v && (this.__e = !0, e && this.__h.push(e), zr(this));
|
|
271
|
-
}, Ge.prototype.render = be, Et = [],
|
|
271
|
+
}, Ge.prototype.render = be, Et = [], wi = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ci = function(e, t) {
|
|
272
272
|
return e.__v.__b - t.__v.__b;
|
|
273
|
-
}, er.__r = 0, gr = Math.random().toString(8), Yn = "__d" + gr, wn = "__a" + gr,
|
|
274
|
-
var
|
|
273
|
+
}, er.__r = 0, gr = Math.random().toString(8), Yn = "__d" + gr, wn = "__a" + gr, Ti = /(PointerCapture)$|Capture$/i, Qr = 0, Ur = $o(!1), $r = $o(!0), Ni = 0;
|
|
274
|
+
var xl = 0;
|
|
275
275
|
function l(e, t, n, r, o, s) {
|
|
276
276
|
t || (t = {});
|
|
277
277
|
var a, i, c = t;
|
|
278
278
|
if ("ref" in c) for (i in c = {}, t) i == "ref" ? a = t[i] : c[i] = t[i];
|
|
279
|
-
var d = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
279
|
+
var d = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --xl, __i: -1, __u: 0, __source: o, __self: s };
|
|
280
280
|
if (typeof e == "function" && (a = e.defaultProps)) for (i in a) c[i] === void 0 && (c[i] = a[i]);
|
|
281
281
|
return W.vnode && W.vnode(d), d;
|
|
282
282
|
}
|
|
283
|
-
var at, fe, _r,
|
|
283
|
+
var at, fe, _r, zo, $t = 0, Li = [], ye = W, Bo = ye.__b, jo = ye.__r, Ho = ye.diffed, Go = ye.__c, Wo = ye.unmount, qo = ye.__;
|
|
284
284
|
function It(e, t) {
|
|
285
285
|
ye.__h && ye.__h(fe, e, $t || t), $t = 0;
|
|
286
286
|
var n = fe.__H || (fe.__H = { __: [], __h: [] });
|
|
287
287
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
288
288
|
}
|
|
289
289
|
function U(e) {
|
|
290
|
-
return $t = 1, Gt(
|
|
290
|
+
return $t = 1, Gt(Di, e);
|
|
291
291
|
}
|
|
292
292
|
function Gt(e, t, n) {
|
|
293
293
|
var r = It(at++, 2);
|
|
294
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
294
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Di(void 0, t), function(i) {
|
|
295
295
|
var c = r.__N ? r.__N[0] : r.__[0], d = r.t(c, i);
|
|
296
296
|
c !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
|
|
297
297
|
}], r.__c = fe, !fe.__f)) {
|
|
@@ -365,7 +365,7 @@ function ct(e) {
|
|
|
365
365
|
function oo(e, t) {
|
|
366
366
|
ye.useDebugValue && ye.useDebugValue(t ? t(e) : e);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function kl(e) {
|
|
369
369
|
var t = It(at++, 10), n = U();
|
|
370
370
|
return t.__ = e, fe.componentDidCatch || (fe.componentDidCatch = function(r, o) {
|
|
371
371
|
t.__ && t.__(r, o), n[1](r);
|
|
@@ -382,8 +382,8 @@ function so() {
|
|
|
382
382
|
}
|
|
383
383
|
return e.__;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
for (var e; e =
|
|
385
|
+
function Rl() {
|
|
386
|
+
for (var e; e = Li.shift(); ) {
|
|
387
387
|
var t = e.__H;
|
|
388
388
|
if (e.__P && t) try {
|
|
389
389
|
t.__h.some(Kn), t.__h.some(jr), t.__h = [];
|
|
@@ -393,19 +393,19 @@ function Il() {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
ye.__b = function(e) {
|
|
396
|
-
fe = null,
|
|
396
|
+
fe = null, Bo && Bo(e);
|
|
397
397
|
}, ye.__ = function(e, t) {
|
|
398
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
398
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), qo && qo(e, t);
|
|
399
399
|
}, ye.__r = function(e) {
|
|
400
|
-
|
|
400
|
+
jo && jo(e), at = 0;
|
|
401
401
|
var t = (fe = e.__c).__H;
|
|
402
402
|
t && (_r === fe ? (t.__h = [], fe.__h = [], t.__.some(function(n) {
|
|
403
403
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
404
404
|
})) : (t.__h.some(Kn), t.__h.some(jr), t.__h = [], at = 0)), _r = fe;
|
|
405
405
|
}, ye.diffed = function(e) {
|
|
406
|
-
|
|
406
|
+
Ho && Ho(e);
|
|
407
407
|
var t = e.__c;
|
|
408
|
-
t && t.__H && (t.__H.__h.length && (
|
|
408
|
+
t && t.__H && (t.__H.__h.length && (Li.push(t) !== 1 && zo === ye.requestAnimationFrame || ((zo = ye.requestAnimationFrame) || Il)(Rl)), t.__H.__.some(function(n) {
|
|
409
409
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
410
410
|
})), _r = fe = null;
|
|
411
411
|
}, ye.__c = function(e, t) {
|
|
@@ -419,9 +419,9 @@ ye.__b = function(e) {
|
|
|
419
419
|
o.__h && (o.__h = []);
|
|
420
420
|
}), t = [], ye.__e(r, n.__v);
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), Go && Go(e, t);
|
|
423
423
|
}, ye.unmount = function(e) {
|
|
424
|
-
|
|
424
|
+
Wo && Wo(e);
|
|
425
425
|
var t, n = e.__c;
|
|
426
426
|
n && n.__H && (n.__H.__.some(function(r) {
|
|
427
427
|
try {
|
|
@@ -431,12 +431,12 @@ ye.__b = function(e) {
|
|
|
431
431
|
}
|
|
432
432
|
}), n.__H = void 0, t && ye.__e(t, n.__v));
|
|
433
433
|
};
|
|
434
|
-
var
|
|
435
|
-
function
|
|
434
|
+
var Yo = typeof requestAnimationFrame == "function";
|
|
435
|
+
function Il(e) {
|
|
436
436
|
var t, n = function() {
|
|
437
|
-
clearTimeout(r),
|
|
437
|
+
clearTimeout(r), Yo && cancelAnimationFrame(t), setTimeout(e);
|
|
438
438
|
}, r = setTimeout(n, 35);
|
|
439
|
-
|
|
439
|
+
Yo && (t = requestAnimationFrame(n));
|
|
440
440
|
}
|
|
441
441
|
function Kn(e) {
|
|
442
442
|
var t = fe, n = e.__c;
|
|
@@ -451,10 +451,10 @@ function io(e, t) {
|
|
|
451
451
|
return n !== e[r];
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Di(e, t) {
|
|
455
455
|
return typeof t == "function" ? t(e) : t;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Fi(e, t) {
|
|
458
458
|
for (var n in t) e[n] = t[n];
|
|
459
459
|
return e;
|
|
460
460
|
}
|
|
@@ -507,50 +507,50 @@ function fo(e, t) {
|
|
|
507
507
|
(tr.prototype = new Ge()).isPureReactComponent = !0, tr.prototype.shouldComponentUpdate = function(e, t) {
|
|
508
508
|
return Hr(this.props, e) || Hr(this.state, t);
|
|
509
509
|
};
|
|
510
|
-
var
|
|
510
|
+
var Ko = W.__b;
|
|
511
511
|
W.__b = function(e) {
|
|
512
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
512
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Ko && Ko(e);
|
|
513
513
|
};
|
|
514
|
-
var
|
|
514
|
+
var Al = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
515
515
|
function K(e) {
|
|
516
516
|
function t(n) {
|
|
517
|
-
var r =
|
|
517
|
+
var r = Fi({}, n);
|
|
518
518
|
return delete r.ref, e(r, n.ref || null);
|
|
519
519
|
}
|
|
520
|
-
return t.$$typeof =
|
|
520
|
+
return t.$$typeof = Al, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
521
521
|
}
|
|
522
|
-
var
|
|
522
|
+
var Zo = function(e, t) {
|
|
523
523
|
return e == null ? null : st(st(e).map(t));
|
|
524
|
-
}, Ue = { map:
|
|
524
|
+
}, Ue = { map: Zo, forEach: Zo, count: function(e) {
|
|
525
525
|
return e ? st(e).length : 0;
|
|
526
526
|
}, only: function(e) {
|
|
527
527
|
var t = st(e);
|
|
528
528
|
if (t.length !== 1) throw "Children.only";
|
|
529
529
|
return t[0];
|
|
530
|
-
}, toArray: st },
|
|
530
|
+
}, toArray: st }, Ol = W.__e;
|
|
531
531
|
W.__e = function(e, t, n, r) {
|
|
532
532
|
if (e.then) {
|
|
533
533
|
for (var o, s = t; s = s.__; ) if ((o = s.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
534
534
|
}
|
|
535
|
-
|
|
535
|
+
Ol(e, t, n, r);
|
|
536
536
|
};
|
|
537
|
-
var
|
|
538
|
-
function
|
|
537
|
+
var Xo = W.unmount;
|
|
538
|
+
function Vi(e, t, n) {
|
|
539
539
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
540
540
|
typeof r.__c == "function" && r.__c();
|
|
541
|
-
}), e.__c.__H = null), (e =
|
|
542
|
-
return
|
|
541
|
+
}), e.__c.__H = null), (e = Fi({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
542
|
+
return Vi(r, t, n);
|
|
543
543
|
})), e;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Ui(e, t, n) {
|
|
546
546
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
547
|
-
return
|
|
547
|
+
return Ui(r, t, n);
|
|
548
548
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
549
549
|
}
|
|
550
550
|
function Re() {
|
|
551
551
|
this.__u = 0, this.o = null, this.__b = null;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function $i(e) {
|
|
554
554
|
var t = e.__ && e.__.__c;
|
|
555
555
|
return t && t.__a && t.__a(e);
|
|
556
556
|
}
|
|
@@ -572,11 +572,11 @@ function Vt() {
|
|
|
572
572
|
}
|
|
573
573
|
W.unmount = function(e) {
|
|
574
574
|
var t = e.__c;
|
|
575
|
-
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
575
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Xo && Xo(e);
|
|
576
576
|
}, (Re.prototype = new Ge()).__c = function(e, t) {
|
|
577
577
|
var n = t.__c, r = this;
|
|
578
578
|
r.o == null && (r.o = []), r.o.push(n);
|
|
579
|
-
var o =
|
|
579
|
+
var o = $i(r.__v), s = !1, a = function() {
|
|
580
580
|
s || r.__z || (s = !0, n.__R = null, o ? o(c) : c());
|
|
581
581
|
};
|
|
582
582
|
n.__R = a;
|
|
@@ -586,7 +586,7 @@ W.unmount = function(e) {
|
|
|
586
586
|
if (!--r.__u) {
|
|
587
587
|
if (r.state.__a) {
|
|
588
588
|
var d = r.state.__a;
|
|
589
|
-
r.__v.__k[0] =
|
|
589
|
+
r.__v.__k[0] = Ui(d, d.__c.__P, d.__c.__O);
|
|
590
590
|
}
|
|
591
591
|
var m;
|
|
592
592
|
for (r.setState({ __a: r.__b = null }); m = r.o.pop(); ) m.__P = i, m.forceUpdate();
|
|
@@ -599,26 +599,26 @@ W.unmount = function(e) {
|
|
|
599
599
|
if (this.__b) {
|
|
600
600
|
if (this.__v.__k) {
|
|
601
601
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
602
|
-
this.__v.__k[0] =
|
|
602
|
+
this.__v.__k[0] = Vi(this.__b, n, r.__O = r.__P);
|
|
603
603
|
}
|
|
604
604
|
this.__b = null;
|
|
605
605
|
}
|
|
606
606
|
var o = t.__a && De(be, null, e.fallback);
|
|
607
607
|
return o && (o.__u &= -33), [De(be, null, t.__a ? null : e.children), o];
|
|
608
608
|
};
|
|
609
|
-
var
|
|
609
|
+
var Jo = function(e, t, n) {
|
|
610
610
|
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
611
611
|
for (; n.length > 3; ) n.pop()();
|
|
612
612
|
if (n[1] < n[0]) break;
|
|
613
613
|
e.i = n = n[2];
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
|
-
function
|
|
616
|
+
function Ml(e) {
|
|
617
617
|
return this.getChildContext = function() {
|
|
618
618
|
return e.context;
|
|
619
619
|
}, e.children;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Pl(e) {
|
|
622
622
|
var t = this, n = e.h;
|
|
623
623
|
if (t.componentWillUnmount = function() {
|
|
624
624
|
Nn(null, t.v), t.v = null, t.h = null;
|
|
@@ -632,17 +632,17 @@ function Ll(e) {
|
|
|
632
632
|
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
633
633
|
} };
|
|
634
634
|
}
|
|
635
|
-
Nn(De(
|
|
635
|
+
Nn(De(Ml, { context: t.context }, e.__v), t.v);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
var n = De(
|
|
637
|
+
function zi(e, t) {
|
|
638
|
+
var n = De(Pl, { __v: e, h: t });
|
|
639
639
|
return n.containerInfo = t, n;
|
|
640
640
|
}
|
|
641
641
|
(Vt.prototype = new Ge()).__a = function(e) {
|
|
642
|
-
var t = this, n =
|
|
642
|
+
var t = this, n = $i(t.__v), r = t.l.get(e);
|
|
643
643
|
return r[0]++, function(o) {
|
|
644
644
|
var s = function() {
|
|
645
|
-
t.props.revealOrder ? (r.push(o),
|
|
645
|
+
t.props.revealOrder ? (r.push(o), Jo(t, e, r)) : o();
|
|
646
646
|
};
|
|
647
647
|
n ? n(s) : s();
|
|
648
648
|
};
|
|
@@ -655,17 +655,17 @@ function Bi(e, t) {
|
|
|
655
655
|
}, Vt.prototype.componentDidUpdate = Vt.prototype.componentDidMount = function() {
|
|
656
656
|
var e = this;
|
|
657
657
|
this.l.forEach(function(t, n) {
|
|
658
|
-
|
|
658
|
+
Jo(e, n, t);
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
|
-
var
|
|
661
|
+
var Bi = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ll = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Dl = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Fl = /[A-Z0-9]/g, Vl = typeof document < "u", Ul = function(e) {
|
|
662
662
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
663
663
|
};
|
|
664
664
|
function mo(e, t, n) {
|
|
665
665
|
return t.__k == null && (t.textContent = ""), Nn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function ji(e, t, n) {
|
|
668
|
+
return Pi(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
669
669
|
}
|
|
670
670
|
Ge.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
671
671
|
Object.defineProperty(Ge.prototype, e, { configurable: !0, get: function() {
|
|
@@ -674,81 +674,81 @@ Ge.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceive
|
|
|
674
674
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
675
675
|
} });
|
|
676
676
|
});
|
|
677
|
-
var
|
|
677
|
+
var Qo = W.event;
|
|
678
678
|
W.event = function(e) {
|
|
679
|
-
return
|
|
679
|
+
return Qo && (e = Qo(e)), e.persist = function() {
|
|
680
680
|
}, e.isPropagationStopped = function() {
|
|
681
681
|
return this.cancelBubble;
|
|
682
682
|
}, e.isDefaultPrevented = function() {
|
|
683
683
|
return this.defaultPrevented;
|
|
684
684
|
}, e.nativeEvent = e;
|
|
685
685
|
};
|
|
686
|
-
var po,
|
|
686
|
+
var po, $l = { configurable: !0, get: function() {
|
|
687
687
|
return this.class;
|
|
688
|
-
} },
|
|
688
|
+
} }, es = W.vnode;
|
|
689
689
|
W.vnode = function(e) {
|
|
690
690
|
typeof e.type == "string" && (function(t) {
|
|
691
691
|
var n = t.props, r = t.type, o = {}, s = r.indexOf("-") == -1;
|
|
692
692
|
for (var a in n) {
|
|
693
693
|
var i = n[a];
|
|
694
|
-
if (!(a === "value" && "defaultValue" in n && i == null ||
|
|
694
|
+
if (!(a === "value" && "defaultValue" in n && i == null || Vl && a === "children" && r === "noscript" || a === "class" || a === "className")) {
|
|
695
695
|
var c = a.toLowerCase();
|
|
696
|
-
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && i === !0 ? i = "" : c === "translate" && i === "no" ? i = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
696
|
+
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && i === !0 ? i = "" : c === "translate" && i === "no" ? i = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || Ul(n.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : Dl.test(a) && (a = c) : c = a = "oninput" : s && Ll.test(a) ? a = a.replace(Fl, "-$&").toLowerCase() : i === null && (i = void 0), c === "oninput" && o[a = c] && (a = "oninputCapture"), o[a] = i;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
r == "select" && (o.multiple && Array.isArray(o.value) && (o.value = st(n.children).forEach(function(d) {
|
|
700
700
|
d.props.selected = o.value.indexOf(d.props.value) != -1;
|
|
701
701
|
})), o.defaultValue != null && (o.value = st(n.children).forEach(function(d) {
|
|
702
702
|
d.props.selected = o.multiple ? o.defaultValue.indexOf(d.props.value) != -1 : o.defaultValue == d.props.value;
|
|
703
|
-
}))), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
704
|
-
})(e), e.$$typeof =
|
|
703
|
+
}))), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", $l)) : n.className && (o.class = o.className = n.className), t.props = o;
|
|
704
|
+
})(e), e.$$typeof = Bi, es && es(e);
|
|
705
705
|
};
|
|
706
|
-
var
|
|
706
|
+
var ts = W.__r;
|
|
707
707
|
W.__r = function(e) {
|
|
708
|
-
|
|
708
|
+
ts && ts(e), po = e.__c;
|
|
709
709
|
};
|
|
710
|
-
var
|
|
710
|
+
var ns = W.diffed;
|
|
711
711
|
W.diffed = function(e) {
|
|
712
|
-
|
|
712
|
+
ns && ns(e);
|
|
713
713
|
var t = e.props, n = e.__e;
|
|
714
714
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), po = null;
|
|
715
715
|
};
|
|
716
|
-
var
|
|
716
|
+
var Hi = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
717
717
|
return po.__n[e.__c].props.value;
|
|
718
|
-
}, useCallback: ae, useContext: ct, useDebugValue: oo, useDeferredValue: co, useEffect: $, useId: so, useImperativeHandle: ro, useInsertionEffect: ho, useLayoutEffect: lt, useMemo: de, useReducer: Gt, useRef: G, useState: U, useSyncExternalStore: ao, useTransition: uo } } },
|
|
719
|
-
function
|
|
718
|
+
}, useCallback: ae, useContext: ct, useDebugValue: oo, useDeferredValue: co, useEffect: $, useId: so, useImperativeHandle: ro, useInsertionEffect: ho, useLayoutEffect: lt, useMemo: de, useReducer: Gt, useRef: G, useState: U, useSyncExternalStore: ao, useTransition: uo } } }, zl = "18.3.1";
|
|
719
|
+
function Gi(e) {
|
|
720
720
|
return De.bind(null, e);
|
|
721
721
|
}
|
|
722
722
|
function $e(e) {
|
|
723
|
-
return !!e && e.$$typeof ===
|
|
723
|
+
return !!e && e.$$typeof === Bi;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Wi(e) {
|
|
726
726
|
return $e(e) && e.type === be;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function qi(e) {
|
|
729
729
|
return !!e && typeof e.displayName == "string" && e.displayName.indexOf("Memo(") == 0;
|
|
730
730
|
}
|
|
731
731
|
function yt(e) {
|
|
732
|
-
return $e(e) ?
|
|
732
|
+
return $e(e) ? Nl.apply(null, arguments) : e;
|
|
733
733
|
}
|
|
734
734
|
function go(e) {
|
|
735
735
|
return !!e.__k && (Nn(null, e), !0);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Yi(e) {
|
|
738
738
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
739
739
|
}
|
|
740
|
-
var
|
|
740
|
+
var Ki = function(e, t) {
|
|
741
741
|
return e(t);
|
|
742
|
-
},
|
|
742
|
+
}, Zi = function(e, t) {
|
|
743
743
|
var n = W.debounceRendering;
|
|
744
744
|
W.debounceRendering = function(o) {
|
|
745
745
|
return o();
|
|
746
746
|
};
|
|
747
747
|
var r = e(t);
|
|
748
748
|
return W.debounceRendering = n, r;
|
|
749
|
-
},
|
|
750
|
-
const
|
|
751
|
-
function
|
|
749
|
+
}, Xi = $e, Sn = { useState: U, useId: so, useReducer: Gt, useEffect: $, useLayoutEffect: lt, useInsertionEffect: ho, useTransition: uo, useDeferredValue: co, useSyncExternalStore: ao, startTransition: lo, useRef: G, useImperativeHandle: ro, useMemo: de, useCallback: ae, useContext: ct, useDebugValue: oo, version: "18.3.1", Children: Ue, render: mo, hydrate: ji, unmountComponentAtNode: go, createPortal: zi, createElement: De, createContext: it, createFactory: Gi, cloneElement: yt, createRef: xi, Fragment: be, isValidElement: $e, isElement: Xi, isFragment: Wi, isMemo: qi, findDOMNode: Yi, Component: Ge, PureComponent: tr, memo: fo, forwardRef: K, flushSync: Zi, unstable_batchedUpdates: Ki, StrictMode: be, Suspense: Re, SuspenseList: Vt, lazy: dt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Hi };
|
|
750
|
+
const Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Children: Ue, Component: Ge, Fragment: be, PureComponent: tr, StrictMode: be, Suspense: Re, SuspenseList: Vt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Hi, cloneElement: yt, createContext: it, createElement: De, createFactory: Gi, createPortal: zi, createRef: xi, default: Sn, findDOMNode: Yi, flushSync: Zi, forwardRef: K, hydrate: ji, isElement: Xi, isFragment: Wi, isMemo: qi, isValidElement: $e, lazy: dt, memo: fo, render: mo, startTransition: lo, unmountComponentAtNode: go, unstable_batchedUpdates: Ki, useCallback: ae, useContext: ct, useDebugValue: oo, useDeferredValue: co, useEffect: $, useErrorBoundary: kl, useId: so, useImperativeHandle: ro, useInsertionEffect: ho, useLayoutEffect: lt, useMemo: de, useReducer: Gt, useRef: G, useState: U, useSyncExternalStore: ao, useTransition: uo, version: zl }, Symbol.toStringTag, { value: "Module" }));
|
|
751
|
+
function Bl(e) {
|
|
752
752
|
return {
|
|
753
753
|
// eslint-disable-next-line
|
|
754
754
|
render: function(t) {
|
|
@@ -760,7 +760,7 @@ function jl(e) {
|
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function rs(e, t) {
|
|
764
764
|
if (typeof e == "function")
|
|
765
765
|
return e(t);
|
|
766
766
|
e != null && (e.current = t);
|
|
@@ -769,14 +769,14 @@ function _o(...e) {
|
|
|
769
769
|
return (t) => {
|
|
770
770
|
let n = !1;
|
|
771
771
|
const r = e.map((o) => {
|
|
772
|
-
const s =
|
|
772
|
+
const s = rs(o, t);
|
|
773
773
|
return !n && typeof s == "function" && (n = !0), s;
|
|
774
774
|
});
|
|
775
775
|
if (n)
|
|
776
776
|
return () => {
|
|
777
777
|
for (let o = 0; o < r.length; o++) {
|
|
778
778
|
const s = r[o];
|
|
779
|
-
typeof s == "function" ? s() :
|
|
779
|
+
typeof s == "function" ? s() : rs(e[o], null);
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
782
|
};
|
|
@@ -785,9 +785,9 @@ function At(...e) {
|
|
|
785
785
|
return ae(_o(...e), e);
|
|
786
786
|
}
|
|
787
787
|
// @__NO_SIDE_EFFECTS__
|
|
788
|
-
function
|
|
789
|
-
const t = /* @__PURE__ */
|
|
790
|
-
const { children: s, ...a } = r, i = Ue.toArray(s), c = i.find(
|
|
788
|
+
function jl(e) {
|
|
789
|
+
const t = /* @__PURE__ */ Hl(e), n = K((r, o) => {
|
|
790
|
+
const { children: s, ...a } = r, i = Ue.toArray(s), c = i.find(Wl);
|
|
791
791
|
if (c) {
|
|
792
792
|
const d = c.props.children, m = i.map((u) => u === c ? Ue.count(d) > 1 ? Ue.only(null) : $e(d) ? d.props.children : null : u);
|
|
793
793
|
return /* @__PURE__ */ l(t, { ...a, ref: o, children: $e(d) ? yt(d, void 0, m) : null });
|
|
@@ -797,22 +797,22 @@ function Hl(e) {
|
|
|
797
797
|
return n.displayName = `${e}.Slot`, n;
|
|
798
798
|
}
|
|
799
799
|
// @__NO_SIDE_EFFECTS__
|
|
800
|
-
function
|
|
800
|
+
function Hl(e) {
|
|
801
801
|
const t = K((n, r) => {
|
|
802
802
|
const { children: o, ...s } = n;
|
|
803
803
|
if ($e(o)) {
|
|
804
|
-
const a =
|
|
804
|
+
const a = Yl(o), i = ql(s, o.props);
|
|
805
805
|
return o.type !== be && (i.ref = r ? _o(r, a) : a), yt(o, i);
|
|
806
806
|
}
|
|
807
807
|
return Ue.count(o) > 1 ? Ue.only(null) : null;
|
|
808
808
|
});
|
|
809
809
|
return t.displayName = `${e}.SlotClone`, t;
|
|
810
810
|
}
|
|
811
|
-
var
|
|
812
|
-
function
|
|
813
|
-
return $e(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
811
|
+
var Gl = Symbol("radix.slottable");
|
|
812
|
+
function Wl(e) {
|
|
813
|
+
return $e(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gl;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function ql(e, t) {
|
|
816
816
|
const n = { ...t };
|
|
817
817
|
for (const r in t) {
|
|
818
818
|
const o = e[r], s = t[r];
|
|
@@ -823,11 +823,11 @@ function Yl(e, t) {
|
|
|
823
823
|
}
|
|
824
824
|
return { ...e, ...n };
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Yl(e) {
|
|
827
827
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
828
828
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Kl = [
|
|
831
831
|
"a",
|
|
832
832
|
"button",
|
|
833
833
|
"div",
|
|
@@ -845,24 +845,24 @@ var Zl = [
|
|
|
845
845
|
"span",
|
|
846
846
|
"svg",
|
|
847
847
|
"ul"
|
|
848
|
-
], In =
|
|
849
|
-
const n = /* @__PURE__ */
|
|
848
|
+
], In = Kl.reduce((e, t) => {
|
|
849
|
+
const n = /* @__PURE__ */ jl(`Primitive.${t}`), r = K((o, s) => {
|
|
850
850
|
const { asChild: a, ...i } = o, c = a ? n : t;
|
|
851
851
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: s });
|
|
852
852
|
});
|
|
853
853
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
854
854
|
}, {}), zt = globalThis?.document ? lt : () => {
|
|
855
855
|
};
|
|
856
|
-
function
|
|
856
|
+
function Zl(e, t) {
|
|
857
857
|
return Gt((n, r) => t[n][r] ?? n, e);
|
|
858
858
|
}
|
|
859
859
|
var An = (e) => {
|
|
860
|
-
const { present: t, children: n } = e, r =
|
|
860
|
+
const { present: t, children: n } = e, r = Xl(t), o = typeof n == "function" ? n({ present: r.isPresent }) : Ue.only(n), s = At(r.ref, Jl(o));
|
|
861
861
|
return typeof n == "function" || r.isPresent ? yt(o, { ref: s }) : null;
|
|
862
862
|
};
|
|
863
863
|
An.displayName = "Presence";
|
|
864
|
-
function
|
|
865
|
-
const [t, n] = U(), r = G(null), o = G(e), s = G("none"), a = e ? "mounted" : "unmounted", [i, c] =
|
|
864
|
+
function Xl(e) {
|
|
865
|
+
const [t, n] = U(), r = G(null), o = G(e), s = G("none"), a = e ? "mounted" : "unmounted", [i, c] = Zl(a, {
|
|
866
866
|
mounted: {
|
|
867
867
|
UNMOUNT: "unmounted",
|
|
868
868
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -913,11 +913,11 @@ function Jl(e) {
|
|
|
913
913
|
function Vn(e) {
|
|
914
914
|
return e?.animationName || "none";
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Jl(e) {
|
|
917
917
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
918
918
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function Ql(e, t = []) {
|
|
921
921
|
let n = [];
|
|
922
922
|
function r(s, a) {
|
|
923
923
|
const i = it(a), c = n.length;
|
|
@@ -945,9 +945,9 @@ function ec(e, t = []) {
|
|
|
945
945
|
);
|
|
946
946
|
};
|
|
947
947
|
};
|
|
948
|
-
return o.scopeName = e, [r,
|
|
948
|
+
return o.scopeName = e, [r, ec(o, ...t)];
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function ec(...e) {
|
|
951
951
|
const t = e[0];
|
|
952
952
|
if (e.length === 1) return t;
|
|
953
953
|
const n = () => {
|
|
@@ -971,12 +971,12 @@ function bt(e) {
|
|
|
971
971
|
t.current = e;
|
|
972
972
|
}), de(() => (...n) => t.current?.(...n), []);
|
|
973
973
|
}
|
|
974
|
-
var
|
|
975
|
-
function
|
|
976
|
-
const t = ct(
|
|
974
|
+
var tc = it(void 0);
|
|
975
|
+
function nc(e) {
|
|
976
|
+
const t = ct(tc);
|
|
977
977
|
return e || t || "ltr";
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function rc(e, [t, n]) {
|
|
980
980
|
return Math.min(n, Math.max(t, e));
|
|
981
981
|
}
|
|
982
982
|
function Rt(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
@@ -985,10 +985,10 @@ function Rt(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
985
985
|
return t?.(o);
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function oc(e, t) {
|
|
989
989
|
return Gt((n, r) => t[n][r] ?? n, e);
|
|
990
990
|
}
|
|
991
|
-
var Eo = "ScrollArea", [
|
|
991
|
+
var Eo = "ScrollArea", [Qi] = Ql(Eo), [sc, We] = Qi(Eo), ea = K(
|
|
992
992
|
(e, t) => {
|
|
993
993
|
const {
|
|
994
994
|
__scopeScrollArea: n,
|
|
@@ -996,9 +996,9 @@ var Eo = "ScrollArea", [ea] = ec(Eo), [ic, We] = ea(Eo), ta = K(
|
|
|
996
996
|
dir: o,
|
|
997
997
|
scrollHideDelay: s = 600,
|
|
998
998
|
...a
|
|
999
|
-
} = e, [i, c] = U(null), [d, m] = U(null), [u, p] = U(null), [h, _] = U(null), [b, y] = U(null), [f, g] = U(0), [E, N] = U(0), [w, C] = U(!1), [T, S] = U(!1), v = At(t, (O) => c(O)), x =
|
|
999
|
+
} = e, [i, c] = U(null), [d, m] = U(null), [u, p] = U(null), [h, _] = U(null), [b, y] = U(null), [f, g] = U(0), [E, N] = U(0), [w, C] = U(!1), [T, S] = U(!1), v = At(t, (O) => c(O)), x = nc(o);
|
|
1000
1000
|
return /* @__PURE__ */ l(
|
|
1001
|
-
|
|
1001
|
+
sc,
|
|
1002
1002
|
{
|
|
1003
1003
|
scope: n,
|
|
1004
1004
|
type: r,
|
|
@@ -1038,10 +1038,10 @@ var Eo = "ScrollArea", [ea] = ec(Eo), [ic, We] = ea(Eo), ta = K(
|
|
|
1038
1038
|
);
|
|
1039
1039
|
}
|
|
1040
1040
|
);
|
|
1041
|
-
|
|
1042
|
-
var
|
|
1041
|
+
ea.displayName = Eo;
|
|
1042
|
+
var ta = "ScrollAreaViewport", na = K(
|
|
1043
1043
|
(e, t) => {
|
|
1044
|
-
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, a = We(
|
|
1044
|
+
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, a = We(ta, n), i = G(null), c = At(t, i, a.onViewportChange);
|
|
1045
1045
|
return /* @__PURE__ */ l(be, { children: [
|
|
1046
1046
|
/* @__PURE__ */ l(
|
|
1047
1047
|
"style",
|
|
@@ -1080,17 +1080,17 @@ var na = "ScrollAreaViewport", ra = K(
|
|
|
1080
1080
|
] });
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
|
-
|
|
1083
|
+
na.displayName = ta;
|
|
1084
1084
|
var Qe = "ScrollAreaScrollbar", bo = K(
|
|
1085
1085
|
(e, t) => {
|
|
1086
1086
|
const { forceMount: n, ...r } = e, o = We(Qe, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = o, i = e.orientation === "horizontal";
|
|
1087
1087
|
return $(() => (i ? s(!0) : a(!0), () => {
|
|
1088
1088
|
i ? s(!1) : a(!1);
|
|
1089
|
-
}), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ l(
|
|
1089
|
+
}), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ l(ic, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l(ac, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l(ra, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ l(yo, { ...r, ref: t }) : null;
|
|
1090
1090
|
}
|
|
1091
1091
|
);
|
|
1092
1092
|
bo.displayName = Qe;
|
|
1093
|
-
var
|
|
1093
|
+
var ic = K((e, t) => {
|
|
1094
1094
|
const { forceMount: n, ...r } = e, o = We(Qe, e.__scopeScrollArea), [s, a] = U(!1);
|
|
1095
1095
|
return $(() => {
|
|
1096
1096
|
const i = o.scrollArea;
|
|
@@ -1106,15 +1106,15 @@ var ac = K((e, t) => {
|
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
1108
|
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ l(An, { present: n || s, children: /* @__PURE__ */ l(
|
|
1109
|
-
|
|
1109
|
+
ra,
|
|
1110
1110
|
{
|
|
1111
1111
|
"data-state": s ? "visible" : "hidden",
|
|
1112
1112
|
...r,
|
|
1113
1113
|
ref: t
|
|
1114
1114
|
}
|
|
1115
1115
|
) });
|
|
1116
|
-
}),
|
|
1117
|
-
const { forceMount: n, ...r } = e, o = We(Qe, e.__scopeScrollArea), s = e.orientation === "horizontal", a = cr(() => c("SCROLL_END"), 100), [i, c] =
|
|
1116
|
+
}), ac = K((e, t) => {
|
|
1117
|
+
const { forceMount: n, ...r } = e, o = We(Qe, e.__scopeScrollArea), s = e.orientation === "horizontal", a = cr(() => c("SCROLL_END"), 100), [i, c] = oc("hidden", {
|
|
1118
1118
|
hidden: {
|
|
1119
1119
|
SCROLL: "scrolling"
|
|
1120
1120
|
},
|
|
@@ -1157,7 +1157,7 @@ var ac = K((e, t) => {
|
|
|
1157
1157
|
onPointerLeave: Rt(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
1158
1158
|
}
|
|
1159
1159
|
) });
|
|
1160
|
-
}),
|
|
1160
|
+
}), ra = K((e, t) => {
|
|
1161
1161
|
const n = We(Qe, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, a] = U(!1), i = e.orientation === "horizontal", c = cr(() => {
|
|
1162
1162
|
if (n.viewport) {
|
|
1163
1163
|
const d = n.viewport.offsetWidth < n.viewport.scrollWidth, m = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
@@ -1177,7 +1177,7 @@ var ac = K((e, t) => {
|
|
|
1177
1177
|
content: 0,
|
|
1178
1178
|
viewport: 0,
|
|
1179
1179
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
1180
|
-
}), d =
|
|
1180
|
+
}), d = la(i.viewport, i.content), m = {
|
|
1181
1181
|
...r,
|
|
1182
1182
|
sizes: i,
|
|
1183
1183
|
onSizesChange: c,
|
|
@@ -1187,16 +1187,16 @@ var ac = K((e, t) => {
|
|
|
1187
1187
|
onThumbPointerDown: (p) => a.current = p
|
|
1188
1188
|
};
|
|
1189
1189
|
function u(p, h) {
|
|
1190
|
-
return
|
|
1190
|
+
return fc(p, a.current, i, h);
|
|
1191
1191
|
}
|
|
1192
1192
|
return n === "horizontal" ? /* @__PURE__ */ l(
|
|
1193
|
-
|
|
1193
|
+
lc,
|
|
1194
1194
|
{
|
|
1195
1195
|
...m,
|
|
1196
1196
|
ref: t,
|
|
1197
1197
|
onThumbPositionChange: () => {
|
|
1198
1198
|
if (o.viewport && s.current) {
|
|
1199
|
-
const p = o.viewport.scrollLeft, h =
|
|
1199
|
+
const p = o.viewport.scrollLeft, h = os(p, i, o.dir);
|
|
1200
1200
|
s.current.style.transform = `translate3d(${h}px, 0, 0)`;
|
|
1201
1201
|
}
|
|
1202
1202
|
},
|
|
@@ -1208,13 +1208,13 @@ var ac = K((e, t) => {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
) : n === "vertical" ? /* @__PURE__ */ l(
|
|
1211
|
-
|
|
1211
|
+
cc,
|
|
1212
1212
|
{
|
|
1213
1213
|
...m,
|
|
1214
1214
|
ref: t,
|
|
1215
1215
|
onThumbPositionChange: () => {
|
|
1216
1216
|
if (o.viewport && s.current) {
|
|
1217
|
-
const p = o.viewport.scrollTop, h =
|
|
1217
|
+
const p = o.viewport.scrollTop, h = os(p, i);
|
|
1218
1218
|
s.current.style.transform = `translate3d(0, ${h}px, 0)`;
|
|
1219
1219
|
}
|
|
1220
1220
|
},
|
|
@@ -1226,12 +1226,12 @@ var ac = K((e, t) => {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
) : null;
|
|
1229
|
-
}),
|
|
1229
|
+
}), lc = K((e, t) => {
|
|
1230
1230
|
const { sizes: n, onSizesChange: r, ...o } = e, s = We(Qe, e.__scopeScrollArea), [a, i] = U(), c = G(null), d = At(t, c, s.onScrollbarXChange);
|
|
1231
1231
|
return $(() => {
|
|
1232
1232
|
c.current && i(getComputedStyle(c.current));
|
|
1233
1233
|
}, [c]), /* @__PURE__ */ l(
|
|
1234
|
-
|
|
1234
|
+
sa,
|
|
1235
1235
|
{
|
|
1236
1236
|
"data-orientation": "horizontal",
|
|
1237
1237
|
...o,
|
|
@@ -1249,7 +1249,7 @@ var ac = K((e, t) => {
|
|
|
1249
1249
|
onWheelScroll: (m, u) => {
|
|
1250
1250
|
if (s.viewport) {
|
|
1251
1251
|
const p = s.viewport.scrollLeft + m.deltaX;
|
|
1252
|
-
e.onWheelScroll(p),
|
|
1252
|
+
e.onWheelScroll(p), da(p, u) && m.preventDefault();
|
|
1253
1253
|
}
|
|
1254
1254
|
},
|
|
1255
1255
|
onResize: () => {
|
|
@@ -1265,12 +1265,12 @@ var ac = K((e, t) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
);
|
|
1268
|
-
}),
|
|
1268
|
+
}), cc = K((e, t) => {
|
|
1269
1269
|
const { sizes: n, onSizesChange: r, ...o } = e, s = We(Qe, e.__scopeScrollArea), [a, i] = U(), c = G(null), d = At(t, c, s.onScrollbarYChange);
|
|
1270
1270
|
return $(() => {
|
|
1271
1271
|
c.current && i(getComputedStyle(c.current));
|
|
1272
1272
|
}, [c]), /* @__PURE__ */ l(
|
|
1273
|
-
|
|
1273
|
+
sa,
|
|
1274
1274
|
{
|
|
1275
1275
|
"data-orientation": "vertical",
|
|
1276
1276
|
...o,
|
|
@@ -1289,7 +1289,7 @@ var ac = K((e, t) => {
|
|
|
1289
1289
|
onWheelScroll: (m, u) => {
|
|
1290
1290
|
if (s.viewport) {
|
|
1291
1291
|
const p = s.viewport.scrollTop + m.deltaY;
|
|
1292
|
-
e.onWheelScroll(p),
|
|
1292
|
+
e.onWheelScroll(p), da(p, u) && m.preventDefault();
|
|
1293
1293
|
}
|
|
1294
1294
|
},
|
|
1295
1295
|
onResize: () => {
|
|
@@ -1305,7 +1305,7 @@ var ac = K((e, t) => {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
);
|
|
1308
|
-
}), [
|
|
1308
|
+
}), [dc, oa] = Qi(Qe), sa = K((e, t) => {
|
|
1309
1309
|
const {
|
|
1310
1310
|
__scopeScrollArea: n,
|
|
1311
1311
|
sizes: r,
|
|
@@ -1332,7 +1332,7 @@ var ac = K((e, t) => {
|
|
|
1332
1332
|
};
|
|
1333
1333
|
return document.addEventListener("wheel", v, { passive: !1 }), () => document.removeEventListener("wheel", v, { passive: !1 });
|
|
1334
1334
|
}, [E, _, N, w]), $(C, [r, C]), Bt(_, T), Bt(h.content, T), /* @__PURE__ */ l(
|
|
1335
|
-
|
|
1335
|
+
dc,
|
|
1336
1336
|
{
|
|
1337
1337
|
scope: n,
|
|
1338
1338
|
scrollbar: _,
|
|
@@ -1359,14 +1359,14 @@ var ac = K((e, t) => {
|
|
|
1359
1359
|
)
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
}), nr = "ScrollAreaThumb",
|
|
1362
|
+
}), nr = "ScrollAreaThumb", ia = K(
|
|
1363
1363
|
(e, t) => {
|
|
1364
|
-
const { forceMount: n, ...r } = e, o =
|
|
1365
|
-
return /* @__PURE__ */ l(An, { present: n || o.hasThumb, children: /* @__PURE__ */ l(
|
|
1364
|
+
const { forceMount: n, ...r } = e, o = oa(nr, e.__scopeScrollArea);
|
|
1365
|
+
return /* @__PURE__ */ l(An, { present: n || o.hasThumb, children: /* @__PURE__ */ l(uc, { ref: t, ...r }) });
|
|
1366
1366
|
}
|
|
1367
|
-
),
|
|
1367
|
+
), uc = K(
|
|
1368
1368
|
(e, t) => {
|
|
1369
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s = We(nr, n), a =
|
|
1369
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = We(nr, n), a = oa(nr, n), { onThumbPositionChange: i } = a, c = At(
|
|
1370
1370
|
t,
|
|
1371
1371
|
(u) => a.onThumbChange(u)
|
|
1372
1372
|
), d = G(void 0), m = cr(() => {
|
|
@@ -1377,7 +1377,7 @@ var ac = K((e, t) => {
|
|
|
1377
1377
|
if (u) {
|
|
1378
1378
|
const p = () => {
|
|
1379
1379
|
if (m(), !d.current) {
|
|
1380
|
-
const h =
|
|
1380
|
+
const h = mc(u, i);
|
|
1381
1381
|
d.current = h, i();
|
|
1382
1382
|
}
|
|
1383
1383
|
};
|
|
@@ -1403,15 +1403,15 @@ var ac = K((e, t) => {
|
|
|
1403
1403
|
);
|
|
1404
1404
|
}
|
|
1405
1405
|
);
|
|
1406
|
-
|
|
1407
|
-
var vo = "ScrollAreaCorner",
|
|
1406
|
+
ia.displayName = nr;
|
|
1407
|
+
var vo = "ScrollAreaCorner", aa = K(
|
|
1408
1408
|
(e, t) => {
|
|
1409
1409
|
const n = We(vo, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
1410
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ l(
|
|
1410
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ l(hc, { ...e, ref: t }) : null;
|
|
1411
1411
|
}
|
|
1412
1412
|
);
|
|
1413
|
-
|
|
1414
|
-
var
|
|
1413
|
+
aa.displayName = vo;
|
|
1414
|
+
var hc = K((e, t) => {
|
|
1415
1415
|
const { __scopeScrollArea: n, ...r } = e, o = We(vo, n), [s, a] = U(0), [i, c] = U(0), d = !!(s && i);
|
|
1416
1416
|
return Bt(o.scrollbarX, () => {
|
|
1417
1417
|
const m = o.scrollbarX?.offsetHeight || 0;
|
|
@@ -1439,33 +1439,33 @@ var fc = K((e, t) => {
|
|
|
1439
1439
|
function rr(e) {
|
|
1440
1440
|
return e ? parseInt(e, 10) : 0;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function la(e, t) {
|
|
1443
1443
|
const n = e / t;
|
|
1444
1444
|
return isNaN(n) ? 0 : n;
|
|
1445
1445
|
}
|
|
1446
1446
|
function lr(e) {
|
|
1447
|
-
const t =
|
|
1447
|
+
const t = la(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
1448
1448
|
return Math.max(r, 18);
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function fc(e, t, n, r = "ltr") {
|
|
1451
1451
|
const o = lr(n), s = o / 2, a = t || s, i = o - a, c = n.scrollbar.paddingStart + a, d = n.scrollbar.size - n.scrollbar.paddingEnd - i, m = n.content - n.viewport, u = r === "ltr" ? [0, m] : [m * -1, 0];
|
|
1452
|
-
return
|
|
1452
|
+
return ca([c, d], u)(e);
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const r = lr(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, c = n === "ltr" ? [0, a] : [a * -1, 0], d =
|
|
1456
|
-
return
|
|
1454
|
+
function os(e, t, n = "ltr") {
|
|
1455
|
+
const r = lr(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, c = n === "ltr" ? [0, a] : [a * -1, 0], d = rc(e, c);
|
|
1456
|
+
return ca([0, a], [0, i])(d);
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function ca(e, t) {
|
|
1459
1459
|
return (n) => {
|
|
1460
1460
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
1461
1461
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
1462
1462
|
return t[0] + r * (n - e[0]);
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function da(e, t) {
|
|
1466
1466
|
return e > 0 && e < t;
|
|
1467
1467
|
}
|
|
1468
|
-
var
|
|
1468
|
+
var mc = (e, t = () => {
|
|
1469
1469
|
}) => {
|
|
1470
1470
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
1471
1471
|
return (function o() {
|
|
@@ -1493,8 +1493,8 @@ function Bt(e, t) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
}, [e, n]);
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1497
|
-
function
|
|
1496
|
+
var ua = ea, pc = na, gc = aa;
|
|
1497
|
+
function _c(e) {
|
|
1498
1498
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
1499
1499
|
var t = e.default;
|
|
1500
1500
|
if (typeof t == "function") {
|
|
@@ -1518,10 +1518,10 @@ function Ec(e) {
|
|
|
1518
1518
|
});
|
|
1519
1519
|
}), n;
|
|
1520
1520
|
}
|
|
1521
|
-
var St = {}, Jt = {}, br = {}, Qt = {}, en = {}, tn = {},
|
|
1521
|
+
var St = {}, Jt = {}, br = {}, Qt = {}, en = {}, tn = {}, ss;
|
|
1522
1522
|
function So() {
|
|
1523
|
-
if (
|
|
1524
|
-
|
|
1523
|
+
if (ss) return tn;
|
|
1524
|
+
ss = 1, Object.defineProperty(tn, "__esModule", { value: !0 }), tn.EventEmitter = void 0;
|
|
1525
1525
|
let e = class {
|
|
1526
1526
|
eventListeners = /* @__PURE__ */ new Map();
|
|
1527
1527
|
on(n, r) {
|
|
@@ -1542,9 +1542,9 @@ function So() {
|
|
|
1542
1542
|
};
|
|
1543
1543
|
return tn.EventEmitter = e, tn;
|
|
1544
1544
|
}
|
|
1545
|
-
var wt = {},
|
|
1545
|
+
var wt = {}, is;
|
|
1546
1546
|
function On() {
|
|
1547
|
-
return
|
|
1547
|
+
return is || (is = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.DisconnectionReason = wt.ConnectionStatus = void 0, wt.ConnectionStatus = {
|
|
1548
1548
|
CONNECTING: "connecting",
|
|
1549
1549
|
CONNECTED: "connected",
|
|
1550
1550
|
NOT_CONNECTED: "not_connected"
|
|
@@ -1558,10 +1558,10 @@ function On() {
|
|
|
1558
1558
|
NETWORK_ERROR: "network_error"
|
|
1559
1559
|
}), wt;
|
|
1560
1560
|
}
|
|
1561
|
-
var
|
|
1561
|
+
var as;
|
|
1562
1562
|
function wo() {
|
|
1563
|
-
if (
|
|
1564
|
-
|
|
1563
|
+
if (as) return en;
|
|
1564
|
+
as = 1, Object.defineProperty(en, "__esModule", { value: !0 }), en.BaseConnection = void 0;
|
|
1565
1565
|
const e = /* @__PURE__ */ So(), t = /* @__PURE__ */ On();
|
|
1566
1566
|
let n = class {
|
|
1567
1567
|
/**
|
|
@@ -1676,9 +1676,9 @@ function wo() {
|
|
|
1676
1676
|
};
|
|
1677
1677
|
return en.BaseConnection = n, en;
|
|
1678
1678
|
}
|
|
1679
|
-
var yr = {},
|
|
1679
|
+
var yr = {}, ls;
|
|
1680
1680
|
function qe() {
|
|
1681
|
-
return
|
|
1681
|
+
return ls || (ls = 1, (function(e) {
|
|
1682
1682
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValidationError = e.ConfigurationError = e.StoreError = e.MessageError = e.SessionError = e.FileError = e.AuthenticationError = e.RecordingError = e.ConnectionError = e.InternalServerError = e.RateLimitError = e.MethodNotAllowedError = e.NotFoundError = e.PermissionDeniedError = e.UnauthorizedError = e.BadRequestError = e.APIConnectionTimeoutError = e.APIUserAbortError = e.APIError = e.SynapseError = e.SynapseErrorCode = void 0, e.normalizeError = w, e.SynapseErrorCode = {
|
|
1683
1683
|
API: "API_ERROR",
|
|
1684
1684
|
CONNECTION: "CONNECTION_ERROR",
|
|
@@ -1880,10 +1880,10 @@ function qe() {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
})(yr)), yr;
|
|
1882
1882
|
}
|
|
1883
|
-
var
|
|
1884
|
-
function
|
|
1885
|
-
if (
|
|
1886
|
-
|
|
1883
|
+
var cs;
|
|
1884
|
+
function ha() {
|
|
1885
|
+
if (cs) return Qt;
|
|
1886
|
+
cs = 1, Object.defineProperty(Qt, "__esModule", { value: !0 }), Qt.WebSocketConnection = void 0;
|
|
1887
1887
|
const e = /* @__PURE__ */ wo(), t = /* @__PURE__ */ On(), n = /* @__PURE__ */ qe();
|
|
1888
1888
|
class r extends e.BaseConnection {
|
|
1889
1889
|
conversationId;
|
|
@@ -1998,10 +1998,10 @@ function fa() {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return Qt.WebSocketConnection = r, Qt;
|
|
2000
2000
|
}
|
|
2001
|
-
var nn = {},
|
|
2002
|
-
function
|
|
2003
|
-
if (
|
|
2004
|
-
|
|
2001
|
+
var nn = {}, ds;
|
|
2002
|
+
function fa() {
|
|
2003
|
+
if (ds) return nn;
|
|
2004
|
+
ds = 1, Object.defineProperty(nn, "__esModule", { value: !0 }), nn.SSEConnection = void 0;
|
|
2005
2005
|
const e = /* @__PURE__ */ wo(), t = /* @__PURE__ */ On(), n = /* @__PURE__ */ qe();
|
|
2006
2006
|
class r extends e.BaseConnection {
|
|
2007
2007
|
conversationId;
|
|
@@ -2155,11 +2155,11 @@ function ma() {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
return nn.SSEConnection = r, nn;
|
|
2157
2157
|
}
|
|
2158
|
-
var
|
|
2159
|
-
function
|
|
2160
|
-
return
|
|
2158
|
+
var us;
|
|
2159
|
+
function ma() {
|
|
2160
|
+
return us || (us = 1, (function(e) {
|
|
2161
2161
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ConnectionFactory = e.ConnectionType = void 0;
|
|
2162
|
-
const t = /* @__PURE__ */
|
|
2162
|
+
const t = /* @__PURE__ */ ha(), n = /* @__PURE__ */ fa(), r = /* @__PURE__ */ qe();
|
|
2163
2163
|
e.ConnectionType = {
|
|
2164
2164
|
SOCKET: "socket",
|
|
2165
2165
|
SSE: "sse"
|
|
@@ -2184,10 +2184,10 @@ function pa() {
|
|
|
2184
2184
|
e.ConnectionFactory = o;
|
|
2185
2185
|
})(br)), br;
|
|
2186
2186
|
}
|
|
2187
|
-
var rn = {},
|
|
2188
|
-
function
|
|
2189
|
-
if (
|
|
2190
|
-
|
|
2187
|
+
var rn = {}, hs;
|
|
2188
|
+
function Ec() {
|
|
2189
|
+
if (hs) return rn;
|
|
2190
|
+
hs = 1, Object.defineProperty(rn, "__esModule", { value: !0 }), rn.getConfig = void 0;
|
|
2191
2191
|
const e = {
|
|
2192
2192
|
WEBSOCKET_URL: "wss://matrix-ws.eka.care/reloaded",
|
|
2193
2193
|
BASE_API_URL: "https://matrix.eka.care/reloaded"
|
|
@@ -2201,10 +2201,10 @@ function bc() {
|
|
|
2201
2201
|
}, r = (o = "production") => o === "development" ? t : o === "production" ? e : o === "staging" ? n : e;
|
|
2202
2202
|
return rn.getConfig = r, rn;
|
|
2203
2203
|
}
|
|
2204
|
-
var on = {}, sn = {},
|
|
2205
|
-
function
|
|
2206
|
-
if (
|
|
2207
|
-
|
|
2204
|
+
var on = {}, sn = {}, fs;
|
|
2205
|
+
function pa() {
|
|
2206
|
+
if (fs) return sn;
|
|
2207
|
+
fs = 1, Object.defineProperty(sn, "__esModule", { value: !0 }), sn.HttpClient = void 0;
|
|
2208
2208
|
const e = /* @__PURE__ */ qe();
|
|
2209
2209
|
let t = class {
|
|
2210
2210
|
baseUrl;
|
|
@@ -2285,10 +2285,10 @@ function ga() {
|
|
|
2285
2285
|
};
|
|
2286
2286
|
return sn.HttpClient = t, sn;
|
|
2287
2287
|
}
|
|
2288
|
-
var an = {}, ln = {},
|
|
2288
|
+
var an = {}, ln = {}, ms;
|
|
2289
2289
|
function dr() {
|
|
2290
|
-
if (
|
|
2291
|
-
|
|
2290
|
+
if (ms) return ln;
|
|
2291
|
+
ms = 1, Object.defineProperty(ln, "__esModule", { value: !0 }), ln.BaseResource = void 0;
|
|
2292
2292
|
let e = class {
|
|
2293
2293
|
client;
|
|
2294
2294
|
constructor(n) {
|
|
@@ -2337,10 +2337,10 @@ function dr() {
|
|
|
2337
2337
|
};
|
|
2338
2338
|
return ln.BaseResource = e, ln;
|
|
2339
2339
|
}
|
|
2340
|
-
var
|
|
2341
|
-
function
|
|
2342
|
-
if (
|
|
2343
|
-
|
|
2340
|
+
var ps;
|
|
2341
|
+
function ga() {
|
|
2342
|
+
if (ps) return an;
|
|
2343
|
+
ps = 1, Object.defineProperty(an, "__esModule", { value: !0 }), an.Session = void 0;
|
|
2344
2344
|
const e = /* @__PURE__ */ dr();
|
|
2345
2345
|
let t = class extends e.BaseResource {
|
|
2346
2346
|
//Ts implicitly calls super() here
|
|
@@ -2382,10 +2382,10 @@ function _a() {
|
|
|
2382
2382
|
};
|
|
2383
2383
|
return an.Session = t, an;
|
|
2384
2384
|
}
|
|
2385
|
-
var cn = {},
|
|
2386
|
-
function
|
|
2387
|
-
if (
|
|
2388
|
-
|
|
2385
|
+
var cn = {}, gs;
|
|
2386
|
+
function bc() {
|
|
2387
|
+
if (gs) return cn;
|
|
2388
|
+
gs = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.Config = void 0;
|
|
2389
2389
|
const e = /* @__PURE__ */ dr();
|
|
2390
2390
|
let t = class extends e.BaseResource {
|
|
2391
2391
|
basePath = "/med-assist/agent-config";
|
|
@@ -2395,10 +2395,10 @@ function yc() {
|
|
|
2395
2395
|
};
|
|
2396
2396
|
return cn.Config = t, cn;
|
|
2397
2397
|
}
|
|
2398
|
-
var dn = {},
|
|
2399
|
-
function
|
|
2400
|
-
if (
|
|
2401
|
-
|
|
2398
|
+
var dn = {}, _s;
|
|
2399
|
+
function yc() {
|
|
2400
|
+
if (_s) return dn;
|
|
2401
|
+
_s = 1, Object.defineProperty(dn, "__esModule", { value: !0 }), dn.VoiceResource = void 0;
|
|
2402
2402
|
const e = /* @__PURE__ */ dr();
|
|
2403
2403
|
let t = class Gr extends e.BaseResource {
|
|
2404
2404
|
static ICE_SERVERS_PATH = "/med-assist/voice/ice-servers";
|
|
@@ -2415,11 +2415,11 @@ function vc() {
|
|
|
2415
2415
|
};
|
|
2416
2416
|
return dn.VoiceResource = t, dn;
|
|
2417
2417
|
}
|
|
2418
|
-
var
|
|
2419
|
-
function
|
|
2420
|
-
if (
|
|
2421
|
-
|
|
2422
|
-
const e = /* @__PURE__ */
|
|
2418
|
+
var Es;
|
|
2419
|
+
function _a() {
|
|
2420
|
+
if (Es) return on;
|
|
2421
|
+
Es = 1, Object.defineProperty(on, "__esModule", { value: !0 }), on.ResourceManager = void 0;
|
|
2422
|
+
const e = /* @__PURE__ */ pa(), t = /* @__PURE__ */ ga(), n = /* @__PURE__ */ qe(), r = /* @__PURE__ */ bc(), o = /* @__PURE__ */ yc();
|
|
2423
2423
|
class s {
|
|
2424
2424
|
resourceConfig;
|
|
2425
2425
|
httpClient;
|
|
@@ -2539,9 +2539,9 @@ function Ea() {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
return on.ResourceManager = s, on;
|
|
2541
2541
|
}
|
|
2542
|
-
var un = {}, vr = {},
|
|
2542
|
+
var un = {}, vr = {}, bs;
|
|
2543
2543
|
function Co() {
|
|
2544
|
-
return
|
|
2544
|
+
return bs || (bs = 1, (function(e) {
|
|
2545
2545
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MULTI_SELECT_ADDITIONAL_OPTION = e.SOCKET_EVENTS = e.SOCKET_CONTENT_TYPES = void 0, e.IsValidSocketMesssage = t, e.SOCKET_CONTENT_TYPES = {
|
|
2546
2546
|
TEXT: "text",
|
|
2547
2547
|
AUDIO: "audio",
|
|
@@ -2581,9 +2581,9 @@ function Co() {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
})(vr)), vr;
|
|
2583
2583
|
}
|
|
2584
|
-
var Sr = {},
|
|
2585
|
-
function
|
|
2586
|
-
return
|
|
2584
|
+
var Sr = {}, ys;
|
|
2585
|
+
function vc() {
|
|
2586
|
+
return ys || (ys = 1, (function(e) {
|
|
2587
2587
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.Filemanager = e.MAX_FILE_SIZE = void 0;
|
|
2588
2588
|
const t = /* @__PURE__ */ qe();
|
|
2589
2589
|
e.MAX_FILE_SIZE = 3 * 1024 * 1024;
|
|
@@ -2723,10 +2723,10 @@ function Sc() {
|
|
|
2723
2723
|
e.Filemanager = n;
|
|
2724
2724
|
})(Sr)), Sr;
|
|
2725
2725
|
}
|
|
2726
|
-
var Ye = {},
|
|
2726
|
+
var Ye = {}, vs;
|
|
2727
2727
|
function or() {
|
|
2728
|
-
if (
|
|
2729
|
-
|
|
2728
|
+
if (vs) return Ye;
|
|
2729
|
+
vs = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.SYNAPSE_REALTIME_RESERVED_EVENTS = Ye.SYNAPSE_REALTIME_ERROR_CODES = Ye.SYNAPSE_REALTIME_EVENTS = Ye.SYNAPSE_MESSAGE_TYPES = void 0;
|
|
2730
2730
|
const e = /* @__PURE__ */ Co();
|
|
2731
2731
|
return Ye.SYNAPSE_MESSAGE_TYPES = e.SOCKET_CONTENT_TYPES, Ye.SYNAPSE_REALTIME_EVENTS = {
|
|
2732
2732
|
CONNECTED: "connected",
|
|
@@ -2758,10 +2758,10 @@ function or() {
|
|
|
2758
2758
|
//to be used for session expiry
|
|
2759
2759
|
}, Ye;
|
|
2760
2760
|
}
|
|
2761
|
-
var hn = {},
|
|
2762
|
-
function
|
|
2763
|
-
if (
|
|
2764
|
-
|
|
2761
|
+
var hn = {}, Ss;
|
|
2762
|
+
function Sc() {
|
|
2763
|
+
if (Ss) return hn;
|
|
2764
|
+
Ss = 1, Object.defineProperty(hn, "__esModule", { value: !0 }), hn.AudioManager = void 0;
|
|
2765
2765
|
const e = /* @__PURE__ */ qe();
|
|
2766
2766
|
class t {
|
|
2767
2767
|
mediaRecorder = null;
|
|
@@ -2973,11 +2973,11 @@ function wc() {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
return hn.AudioManager = t, hn;
|
|
2975
2975
|
}
|
|
2976
|
-
var
|
|
2977
|
-
function
|
|
2978
|
-
if (
|
|
2979
|
-
|
|
2980
|
-
const e = /* @__PURE__ */ Co(), t = /* @__PURE__ */
|
|
2976
|
+
var ws;
|
|
2977
|
+
function Ea() {
|
|
2978
|
+
if (ws) return un;
|
|
2979
|
+
ws = 1, Object.defineProperty(un, "__esModule", { value: !0 }), un.MessageManager = void 0;
|
|
2980
|
+
const e = /* @__PURE__ */ Co(), t = /* @__PURE__ */ vc(), n = /* @__PURE__ */ or(), r = /* @__PURE__ */ Sc(), o = /* @__PURE__ */ qe();
|
|
2981
2981
|
let s = class {
|
|
2982
2982
|
connection = null;
|
|
2983
2983
|
callbacks = null;
|
|
@@ -3379,10 +3379,10 @@ function ba() {
|
|
|
3379
3379
|
};
|
|
3380
3380
|
return un.MessageManager = s, un;
|
|
3381
3381
|
}
|
|
3382
|
-
var fn = {},
|
|
3383
|
-
function
|
|
3384
|
-
if (
|
|
3385
|
-
|
|
3382
|
+
var fn = {}, Cs;
|
|
3383
|
+
function ba() {
|
|
3384
|
+
if (Cs) return fn;
|
|
3385
|
+
Cs = 1, Object.defineProperty(fn, "__esModule", { value: !0 }), fn.ErrorUtils = void 0;
|
|
3386
3386
|
const e = /* @__PURE__ */ qe();
|
|
3387
3387
|
class t {
|
|
3388
3388
|
/**
|
|
@@ -3460,10 +3460,10 @@ function ya() {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
return fn.ErrorUtils = t, fn;
|
|
3462
3462
|
}
|
|
3463
|
-
var mn = {}, pn = {},
|
|
3464
|
-
function
|
|
3465
|
-
if (
|
|
3466
|
-
|
|
3463
|
+
var mn = {}, pn = {}, Ts;
|
|
3464
|
+
function wc() {
|
|
3465
|
+
if (Ts) return pn;
|
|
3466
|
+
Ts = 1, Object.defineProperty(pn, "__esModule", { value: !0 }), pn.VoiceAudioAnalyser = void 0;
|
|
3467
3467
|
const e = 256;
|
|
3468
3468
|
let t = class {
|
|
3469
3469
|
audioCtx = null;
|
|
@@ -3489,9 +3489,9 @@ function Cc() {
|
|
|
3489
3489
|
};
|
|
3490
3490
|
return pn.VoiceAudioAnalyser = t, pn;
|
|
3491
3491
|
}
|
|
3492
|
-
var Ct = {},
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3492
|
+
var Ct = {}, Ns;
|
|
3493
|
+
function ya() {
|
|
3494
|
+
return Ns || (Ns = 1, Object.defineProperty(Ct, "__esModule", { value: !0 }), Ct.VOICE_AGENT_EVENTS = Ct.VOICE_AGENT_STATE = void 0, Ct.VOICE_AGENT_STATE = {
|
|
3495
3495
|
IDLE: "idle",
|
|
3496
3496
|
CONNECTING: "connecting",
|
|
3497
3497
|
CONNECTED: "connected",
|
|
@@ -3506,11 +3506,11 @@ function va() {
|
|
|
3506
3506
|
ERROR: "voice:error"
|
|
3507
3507
|
}), Ct;
|
|
3508
3508
|
}
|
|
3509
|
-
var
|
|
3510
|
-
function
|
|
3511
|
-
if (
|
|
3512
|
-
|
|
3513
|
-
const e = /* @__PURE__ */ So(), t = /* @__PURE__ */
|
|
3509
|
+
var xs;
|
|
3510
|
+
function Cc() {
|
|
3511
|
+
if (xs) return mn;
|
|
3512
|
+
xs = 1, Object.defineProperty(mn, "__esModule", { value: !0 }), mn.VoiceAgent = void 0;
|
|
3513
|
+
const e = /* @__PURE__ */ So(), t = /* @__PURE__ */ wc(), n = /* @__PURE__ */ qe(), r = /* @__PURE__ */ ya(), o = 3e3, s = 8, a = 3600 * 1e3, i = 600;
|
|
3514
3514
|
function c(m, u) {
|
|
3515
3515
|
return new Promise((p) => {
|
|
3516
3516
|
if (m.iceGatheringState === "complete") {
|
|
@@ -3693,11 +3693,11 @@ function Tc() {
|
|
|
3693
3693
|
};
|
|
3694
3694
|
return mn.VoiceAgent = d, mn;
|
|
3695
3695
|
}
|
|
3696
|
-
var
|
|
3697
|
-
function
|
|
3698
|
-
if (
|
|
3699
|
-
|
|
3700
|
-
const e = /* @__PURE__ */
|
|
3696
|
+
var ks;
|
|
3697
|
+
function Tc() {
|
|
3698
|
+
if (ks) return Jt;
|
|
3699
|
+
ks = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.SynapseSDK = void 0;
|
|
3700
|
+
const e = /* @__PURE__ */ ma(), t = /* @__PURE__ */ On(), n = /* @__PURE__ */ Ec(), r = /* @__PURE__ */ _a(), o = /* @__PURE__ */ Ea(), s = /* @__PURE__ */ or(), a = /* @__PURE__ */ So(), i = /* @__PURE__ */ ba(), c = /* @__PURE__ */ qe(), d = /* @__PURE__ */ Co(), m = /* @__PURE__ */ Cc();
|
|
3701
3701
|
class u {
|
|
3702
3702
|
connection = null;
|
|
3703
3703
|
messageManager;
|
|
@@ -4187,22 +4187,22 @@ function Nc() {
|
|
|
4187
4187
|
}
|
|
4188
4188
|
return Jt.SynapseSDK = u, Jt;
|
|
4189
4189
|
}
|
|
4190
|
-
var wr = {},
|
|
4191
|
-
function
|
|
4192
|
-
return
|
|
4190
|
+
var wr = {}, Rs;
|
|
4191
|
+
function Nc() {
|
|
4192
|
+
return Rs || (Rs = 1, Object.defineProperty(wr, "__esModule", { value: !0 })), wr;
|
|
4193
4193
|
}
|
|
4194
|
-
var gn = {},
|
|
4195
|
-
function
|
|
4196
|
-
return
|
|
4194
|
+
var gn = {}, Is;
|
|
4195
|
+
function xc() {
|
|
4196
|
+
return Is || (Is = 1, Object.defineProperty(gn, "__esModule", { value: !0 }), gn.USER_FEEDBACK = void 0, gn.USER_FEEDBACK = {
|
|
4197
4197
|
LIKE: "LIKE",
|
|
4198
4198
|
DISLIKE: "DISLIKE",
|
|
4199
4199
|
NONE: "NONE"
|
|
4200
4200
|
}), gn;
|
|
4201
4201
|
}
|
|
4202
|
-
var _n = {},
|
|
4203
|
-
function
|
|
4204
|
-
if (
|
|
4205
|
-
|
|
4202
|
+
var _n = {}, As;
|
|
4203
|
+
function kc() {
|
|
4204
|
+
if (As) return _n;
|
|
4205
|
+
As = 1, Object.defineProperty(_n, "__esModule", { value: !0 }), _n.ToolCall = void 0;
|
|
4206
4206
|
const e = /* @__PURE__ */ dr();
|
|
4207
4207
|
let t = class extends e.BaseResource {
|
|
4208
4208
|
basePath = "/med-assist/api-call-tool";
|
|
@@ -4214,10 +4214,10 @@ function Rc() {
|
|
|
4214
4214
|
};
|
|
4215
4215
|
return _n.ToolCall = t, _n;
|
|
4216
4216
|
}
|
|
4217
|
-
var Ke = {},
|
|
4218
|
-
function
|
|
4219
|
-
if (
|
|
4220
|
-
|
|
4217
|
+
var Ke = {}, Os;
|
|
4218
|
+
function Rc() {
|
|
4219
|
+
if (Os) return Ke;
|
|
4220
|
+
Os = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.SYNAPSE_EICITATION_STATUS = Ke.SYNAPSE_TOOL_CALLBACK_NAME = Ke.SYNAPSE_COMPONENTS = Ke.SYNAPSE_TOOL_NAME = void 0;
|
|
4221
4221
|
var e;
|
|
4222
4222
|
(function(o) {
|
|
4223
4223
|
o.MOBILE_VERIFICATION = "mobile_verification", o.AVAILABILITY_DATES = "availability_dates", o.AVAILABILITY_SLOTS = "availability_slots", o.DOCTOR_AVAILABILITY = "doctor_availability", o.DOCTOR_DETAILS = "doctor_details", o.GET_LOCATION = "get_location";
|
|
@@ -4235,13 +4235,13 @@ function Ic() {
|
|
|
4235
4235
|
o.PROGRESS = "progress", o.SUCCESS = "success", o.FAILURE = "failure";
|
|
4236
4236
|
})(r || (Ke.SYNAPSE_EICITATION_STATUS = r = {})), Ke;
|
|
4237
4237
|
}
|
|
4238
|
-
var Cr = {},
|
|
4239
|
-
function
|
|
4240
|
-
return
|
|
4238
|
+
var Cr = {}, Ms;
|
|
4239
|
+
function Ic() {
|
|
4240
|
+
return Ms || (Ms = 1, Object.defineProperty(Cr, "__esModule", { value: !0 })), Cr;
|
|
4241
4241
|
}
|
|
4242
|
-
var En = {},
|
|
4243
|
-
function
|
|
4244
|
-
return
|
|
4242
|
+
var En = {}, Ps;
|
|
4243
|
+
function Ac() {
|
|
4244
|
+
return Ps || (Ps = 1, Object.defineProperty(En, "__esModule", { value: !0 }), En.ErrorType = void 0, En.ErrorType = {
|
|
4245
4245
|
NETWORK_ERROR: "NETWORK_ERROR",
|
|
4246
4246
|
TIMEOUT_ERROR: "TIMEOUT_ERROR",
|
|
4247
4247
|
API_ERROR: "API_ERROR",
|
|
@@ -4251,22 +4251,22 @@ function Oc() {
|
|
|
4251
4251
|
UNKNOWN_ERROR: "UNKNOWN_ERROR"
|
|
4252
4252
|
}), En;
|
|
4253
4253
|
}
|
|
4254
|
-
var Tr = {},
|
|
4255
|
-
function
|
|
4256
|
-
return
|
|
4254
|
+
var Tr = {}, Ls;
|
|
4255
|
+
function Oc() {
|
|
4256
|
+
return Ls || (Ls = 1, Object.defineProperty(Tr, "__esModule", { value: !0 })), Tr;
|
|
4257
4257
|
}
|
|
4258
|
-
var bn = {},
|
|
4259
|
-
function
|
|
4260
|
-
if (
|
|
4261
|
-
|
|
4258
|
+
var bn = {}, Ds;
|
|
4259
|
+
function Mc() {
|
|
4260
|
+
if (Ds) return bn;
|
|
4261
|
+
Ds = 1, Object.defineProperty(bn, "__esModule", { value: !0 }), bn.SYNAPSE_CONVERSATION = void 0;
|
|
4262
4262
|
var e;
|
|
4263
4263
|
return (function(t) {
|
|
4264
4264
|
t.TEXT = "text", t.FILE = "file", t.AUDIO = "audio", t.VOICE = "voice";
|
|
4265
4265
|
})(e || (bn.SYNAPSE_CONVERSATION = e = {})), bn;
|
|
4266
4266
|
}
|
|
4267
|
-
var Tt = {},
|
|
4268
|
-
function
|
|
4269
|
-
return
|
|
4267
|
+
var Tt = {}, Fs;
|
|
4268
|
+
function Pc() {
|
|
4269
|
+
return Fs || (Fs = 1, (function(e) {
|
|
4270
4270
|
var t = Tt && Tt.__createBinding || (Object.create ? (function(r, o, s, a) {
|
|
4271
4271
|
a === void 0 && (a = s);
|
|
4272
4272
|
var i = Object.getOwnPropertyDescriptor(o, s);
|
|
@@ -4278,12 +4278,12 @@ function Lc() {
|
|
|
4278
4278
|
})), n = Tt && Tt.__exportStar || function(r, o) {
|
|
4279
4279
|
for (var s in r) s !== "default" && !Object.prototype.hasOwnProperty.call(o, s) && t(o, r, s);
|
|
4280
4280
|
};
|
|
4281
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(/* @__PURE__ */
|
|
4281
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(/* @__PURE__ */ ya(), e);
|
|
4282
4282
|
})(Tt)), Tt;
|
|
4283
4283
|
}
|
|
4284
|
-
var
|
|
4285
|
-
function
|
|
4286
|
-
return
|
|
4284
|
+
var Vs;
|
|
4285
|
+
function Lc() {
|
|
4286
|
+
return Vs || (Vs = 1, (function(e) {
|
|
4287
4287
|
var t = St && St.__createBinding || (Object.create ? (function(f, g, E, N) {
|
|
4288
4288
|
N === void 0 && (N = E);
|
|
4289
4289
|
var w = Object.getOwnPropertyDescriptor(g, E);
|
|
@@ -4296,7 +4296,7 @@ function Dc() {
|
|
|
4296
4296
|
for (var E in f) E !== "default" && !Object.prototype.hasOwnProperty.call(g, E) && t(g, f, E);
|
|
4297
4297
|
};
|
|
4298
4298
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SYNAPSE_MESSAGE_TYPES = e.ErrorUtils = e.ErrorType = e.SynapseErrorCode = e.InternalServerError = e.RateLimitError = e.MethodNotAllowedError = e.NotFoundError = e.PermissionDeniedError = e.UnauthorizedError = e.BadRequestError = e.APIConnectionTimeoutError = e.APIUserAbortError = e.APIError = e.SynapseError = e.HttpClient = e.MessageManager = e.ToolCall = e.Session = e.ResourceManager = e.ConnectionType = e.ConnectionFactory = e.SSEConnection = e.WebSocketConnection = e.BaseConnection = e.SynapseSDK = void 0;
|
|
4299
|
-
var r = /* @__PURE__ */
|
|
4299
|
+
var r = /* @__PURE__ */ Tc();
|
|
4300
4300
|
Object.defineProperty(e, "SynapseSDK", { enumerable: !0, get: function() {
|
|
4301
4301
|
return r.SynapseSDK;
|
|
4302
4302
|
} });
|
|
@@ -4304,37 +4304,37 @@ function Dc() {
|
|
|
4304
4304
|
Object.defineProperty(e, "BaseConnection", { enumerable: !0, get: function() {
|
|
4305
4305
|
return o.BaseConnection;
|
|
4306
4306
|
} });
|
|
4307
|
-
var s = /* @__PURE__ */
|
|
4307
|
+
var s = /* @__PURE__ */ ha();
|
|
4308
4308
|
Object.defineProperty(e, "WebSocketConnection", { enumerable: !0, get: function() {
|
|
4309
4309
|
return s.WebSocketConnection;
|
|
4310
4310
|
} });
|
|
4311
|
-
var a = /* @__PURE__ */
|
|
4311
|
+
var a = /* @__PURE__ */ fa();
|
|
4312
4312
|
Object.defineProperty(e, "SSEConnection", { enumerable: !0, get: function() {
|
|
4313
4313
|
return a.SSEConnection;
|
|
4314
4314
|
} });
|
|
4315
|
-
var i = /* @__PURE__ */
|
|
4315
|
+
var i = /* @__PURE__ */ ma();
|
|
4316
4316
|
Object.defineProperty(e, "ConnectionFactory", { enumerable: !0, get: function() {
|
|
4317
4317
|
return i.ConnectionFactory;
|
|
4318
4318
|
} }), Object.defineProperty(e, "ConnectionType", { enumerable: !0, get: function() {
|
|
4319
4319
|
return i.ConnectionType;
|
|
4320
4320
|
} }), n(/* @__PURE__ */ On(), e);
|
|
4321
|
-
var c = /* @__PURE__ */
|
|
4321
|
+
var c = /* @__PURE__ */ _a();
|
|
4322
4322
|
Object.defineProperty(e, "ResourceManager", { enumerable: !0, get: function() {
|
|
4323
4323
|
return c.ResourceManager;
|
|
4324
|
-
} }), n(/* @__PURE__ */
|
|
4325
|
-
var d = /* @__PURE__ */
|
|
4324
|
+
} }), n(/* @__PURE__ */ Nc(), e);
|
|
4325
|
+
var d = /* @__PURE__ */ ga();
|
|
4326
4326
|
Object.defineProperty(e, "Session", { enumerable: !0, get: function() {
|
|
4327
4327
|
return d.Session;
|
|
4328
|
-
} }), n(/* @__PURE__ */
|
|
4329
|
-
var m = /* @__PURE__ */
|
|
4328
|
+
} }), n(/* @__PURE__ */ xc(), e);
|
|
4329
|
+
var m = /* @__PURE__ */ kc();
|
|
4330
4330
|
Object.defineProperty(e, "ToolCall", { enumerable: !0, get: function() {
|
|
4331
4331
|
return m.ToolCall;
|
|
4332
|
-
} }), n(/* @__PURE__ */
|
|
4333
|
-
var u = /* @__PURE__ */
|
|
4332
|
+
} }), n(/* @__PURE__ */ Rc(), e);
|
|
4333
|
+
var u = /* @__PURE__ */ Ea();
|
|
4334
4334
|
Object.defineProperty(e, "MessageManager", { enumerable: !0, get: function() {
|
|
4335
4335
|
return u.MessageManager;
|
|
4336
|
-
} }), n(/* @__PURE__ */ or(), e), n(/* @__PURE__ */
|
|
4337
|
-
var p = /* @__PURE__ */
|
|
4336
|
+
} }), n(/* @__PURE__ */ or(), e), n(/* @__PURE__ */ Ic(), e);
|
|
4337
|
+
var p = /* @__PURE__ */ pa();
|
|
4338
4338
|
Object.defineProperty(e, "HttpClient", { enumerable: !0, get: function() {
|
|
4339
4339
|
return p.HttpClient;
|
|
4340
4340
|
} });
|
|
@@ -4364,74 +4364,74 @@ function Dc() {
|
|
|
4364
4364
|
} }), Object.defineProperty(e, "SynapseErrorCode", { enumerable: !0, get: function() {
|
|
4365
4365
|
return h.SynapseErrorCode;
|
|
4366
4366
|
} });
|
|
4367
|
-
var _ = /* @__PURE__ */
|
|
4367
|
+
var _ = /* @__PURE__ */ Ac();
|
|
4368
4368
|
Object.defineProperty(e, "ErrorType", { enumerable: !0, get: function() {
|
|
4369
4369
|
return _.ErrorType;
|
|
4370
4370
|
} });
|
|
4371
|
-
var b = /* @__PURE__ */
|
|
4371
|
+
var b = /* @__PURE__ */ ba();
|
|
4372
4372
|
Object.defineProperty(e, "ErrorUtils", { enumerable: !0, get: function() {
|
|
4373
4373
|
return b.ErrorUtils;
|
|
4374
|
-
} }), n(/* @__PURE__ */
|
|
4374
|
+
} }), n(/* @__PURE__ */ Oc(), e);
|
|
4375
4375
|
var y = /* @__PURE__ */ or();
|
|
4376
4376
|
Object.defineProperty(e, "SYNAPSE_MESSAGE_TYPES", { enumerable: !0, get: function() {
|
|
4377
4377
|
return y.SYNAPSE_MESSAGE_TYPES;
|
|
4378
|
-
} }), n(/* @__PURE__ */
|
|
4378
|
+
} }), n(/* @__PURE__ */ Mc(), e), n(/* @__PURE__ */ Pc(), e);
|
|
4379
4379
|
})(St)), St;
|
|
4380
4380
|
}
|
|
4381
|
-
var M = /* @__PURE__ */
|
|
4382
|
-
function
|
|
4381
|
+
var M = /* @__PURE__ */ Lc();
|
|
4382
|
+
function va(e) {
|
|
4383
4383
|
var t, n, r = "";
|
|
4384
4384
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
4385
4385
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
4386
4386
|
var o = e.length;
|
|
4387
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
4387
|
+
for (t = 0; t < o; t++) e[t] && (n = va(e[t])) && (r && (r += " "), r += n);
|
|
4388
4388
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
4389
4389
|
return r;
|
|
4390
4390
|
}
|
|
4391
|
-
function
|
|
4392
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
4391
|
+
function Sa() {
|
|
4392
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = va(e)) && (r && (r += " "), r += t);
|
|
4393
4393
|
return r;
|
|
4394
4394
|
}
|
|
4395
|
-
const
|
|
4395
|
+
const Dc = (e, t) => {
|
|
4396
4396
|
const n = new Array(e.length + t.length);
|
|
4397
4397
|
for (let r = 0; r < e.length; r++)
|
|
4398
4398
|
n[r] = e[r];
|
|
4399
4399
|
for (let r = 0; r < t.length; r++)
|
|
4400
4400
|
n[e.length + r] = t[r];
|
|
4401
4401
|
return n;
|
|
4402
|
-
},
|
|
4402
|
+
}, Fc = (e, t) => ({
|
|
4403
4403
|
classGroupId: e,
|
|
4404
4404
|
validator: t
|
|
4405
|
-
}),
|
|
4405
|
+
}), wa = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
4406
4406
|
nextPart: e,
|
|
4407
4407
|
validators: t,
|
|
4408
4408
|
classGroupId: n
|
|
4409
|
-
}), sr = "-",
|
|
4410
|
-
const t =
|
|
4409
|
+
}), sr = "-", Us = [], Vc = "arbitrary..", Uc = (e) => {
|
|
4410
|
+
const t = zc(e), {
|
|
4411
4411
|
conflictingClassGroups: n,
|
|
4412
4412
|
conflictingClassGroupModifiers: r
|
|
4413
4413
|
} = e;
|
|
4414
4414
|
return {
|
|
4415
4415
|
getClassGroupId: (a) => {
|
|
4416
4416
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
4417
|
-
return
|
|
4417
|
+
return $c(a);
|
|
4418
4418
|
const i = a.split(sr), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
4419
|
-
return
|
|
4419
|
+
return Ca(i, c, t);
|
|
4420
4420
|
},
|
|
4421
4421
|
getConflictingClassGroupIds: (a, i) => {
|
|
4422
4422
|
if (i) {
|
|
4423
4423
|
const c = r[a], d = n[a];
|
|
4424
|
-
return c ? d ?
|
|
4424
|
+
return c ? d ? Dc(d, c) : c : d || Us;
|
|
4425
4425
|
}
|
|
4426
|
-
return n[a] ||
|
|
4426
|
+
return n[a] || Us;
|
|
4427
4427
|
}
|
|
4428
4428
|
};
|
|
4429
|
-
},
|
|
4429
|
+
}, Ca = (e, t, n) => {
|
|
4430
4430
|
if (e.length - t === 0)
|
|
4431
4431
|
return n.classGroupId;
|
|
4432
4432
|
const o = e[t], s = n.nextPart.get(o);
|
|
4433
4433
|
if (s) {
|
|
4434
|
-
const d =
|
|
4434
|
+
const d = Ca(e, t + 1, s);
|
|
4435
4435
|
if (d) return d;
|
|
4436
4436
|
}
|
|
4437
4437
|
const a = n.validators;
|
|
@@ -4443,17 +4443,17 @@ const Fc = (e, t) => {
|
|
|
4443
4443
|
if (m.validator(i))
|
|
4444
4444
|
return m.classGroupId;
|
|
4445
4445
|
}
|
|
4446
|
-
},
|
|
4446
|
+
}, $c = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
4447
4447
|
const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
4448
|
-
return r ?
|
|
4449
|
-
})(),
|
|
4448
|
+
return r ? Vc + r : void 0;
|
|
4449
|
+
})(), zc = (e) => {
|
|
4450
4450
|
const {
|
|
4451
4451
|
theme: t,
|
|
4452
4452
|
classGroups: n
|
|
4453
4453
|
} = e;
|
|
4454
|
-
return
|
|
4455
|
-
},
|
|
4456
|
-
const n =
|
|
4454
|
+
return Bc(n, t);
|
|
4455
|
+
}, Bc = (e, t) => {
|
|
4456
|
+
const n = wa();
|
|
4457
4457
|
for (const r in e) {
|
|
4458
4458
|
const o = e[r];
|
|
4459
4459
|
To(o, n, r, t);
|
|
@@ -4463,43 +4463,43 @@ const Fc = (e, t) => {
|
|
|
4463
4463
|
const o = e.length;
|
|
4464
4464
|
for (let s = 0; s < o; s++) {
|
|
4465
4465
|
const a = e[s];
|
|
4466
|
-
|
|
4466
|
+
jc(a, t, n, r);
|
|
4467
4467
|
}
|
|
4468
|
-
},
|
|
4468
|
+
}, jc = (e, t, n, r) => {
|
|
4469
4469
|
if (typeof e == "string") {
|
|
4470
|
-
|
|
4470
|
+
Hc(e, t, n);
|
|
4471
4471
|
return;
|
|
4472
4472
|
}
|
|
4473
4473
|
if (typeof e == "function") {
|
|
4474
|
-
|
|
4474
|
+
Gc(e, t, n, r);
|
|
4475
4475
|
return;
|
|
4476
4476
|
}
|
|
4477
|
-
|
|
4478
|
-
},
|
|
4479
|
-
const r = e === "" ? t :
|
|
4477
|
+
Wc(e, t, n, r);
|
|
4478
|
+
}, Hc = (e, t, n) => {
|
|
4479
|
+
const r = e === "" ? t : Ta(t, e);
|
|
4480
4480
|
r.classGroupId = n;
|
|
4481
|
-
},
|
|
4482
|
-
if (
|
|
4481
|
+
}, Gc = (e, t, n, r) => {
|
|
4482
|
+
if (qc(e)) {
|
|
4483
4483
|
To(e(r), t, n, r);
|
|
4484
4484
|
return;
|
|
4485
4485
|
}
|
|
4486
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
4487
|
-
},
|
|
4486
|
+
t.validators === null && (t.validators = []), t.validators.push(Fc(n, e));
|
|
4487
|
+
}, Wc = (e, t, n, r) => {
|
|
4488
4488
|
const o = Object.entries(e), s = o.length;
|
|
4489
4489
|
for (let a = 0; a < s; a++) {
|
|
4490
4490
|
const [i, c] = o[a];
|
|
4491
|
-
To(c,
|
|
4491
|
+
To(c, Ta(t, i), n, r);
|
|
4492
4492
|
}
|
|
4493
|
-
},
|
|
4493
|
+
}, Ta = (e, t) => {
|
|
4494
4494
|
let n = e;
|
|
4495
4495
|
const r = t.split(sr), o = r.length;
|
|
4496
4496
|
for (let s = 0; s < o; s++) {
|
|
4497
4497
|
const a = r[s];
|
|
4498
4498
|
let i = n.nextPart.get(a);
|
|
4499
|
-
i || (i =
|
|
4499
|
+
i || (i = wa(), n.nextPart.set(a, i)), n = i;
|
|
4500
4500
|
}
|
|
4501
4501
|
return n;
|
|
4502
|
-
},
|
|
4502
|
+
}, qc = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Yc = (e) => {
|
|
4503
4503
|
if (e < 1)
|
|
4504
4504
|
return {
|
|
4505
4505
|
get: () => {
|
|
@@ -4523,13 +4523,13 @@ const Fc = (e, t) => {
|
|
|
4523
4523
|
s in n ? n[s] = a : o(s, a);
|
|
4524
4524
|
}
|
|
4525
4525
|
};
|
|
4526
|
-
}, Wr = "!",
|
|
4526
|
+
}, Wr = "!", $s = ":", Kc = [], zs = (e, t, n, r, o) => ({
|
|
4527
4527
|
modifiers: e,
|
|
4528
4528
|
hasImportantModifier: t,
|
|
4529
4529
|
baseClassName: n,
|
|
4530
4530
|
maybePostfixModifierPosition: r,
|
|
4531
4531
|
isExternal: o
|
|
4532
|
-
}),
|
|
4532
|
+
}), Zc = (e) => {
|
|
4533
4533
|
const {
|
|
4534
4534
|
prefix: t,
|
|
4535
4535
|
experimentalParseClassName: n
|
|
@@ -4541,7 +4541,7 @@ const Fc = (e, t) => {
|
|
|
4541
4541
|
for (let b = 0; b < m; b++) {
|
|
4542
4542
|
const y = o[b];
|
|
4543
4543
|
if (a === 0 && i === 0) {
|
|
4544
|
-
if (y ===
|
|
4544
|
+
if (y === $s) {
|
|
4545
4545
|
s.push(o.slice(c, b)), c = b + 1;
|
|
4546
4546
|
continue;
|
|
4547
4547
|
}
|
|
@@ -4562,11 +4562,11 @@ const Fc = (e, t) => {
|
|
|
4562
4562
|
u.startsWith(Wr) && (p = u.slice(1), h = !0)
|
|
4563
4563
|
);
|
|
4564
4564
|
const _ = d && d > c ? d - c : void 0;
|
|
4565
|
-
return
|
|
4565
|
+
return zs(s, h, p, _);
|
|
4566
4566
|
};
|
|
4567
4567
|
if (t) {
|
|
4568
|
-
const o = t +
|
|
4569
|
-
r = (a) => a.startsWith(o) ? s(a.slice(o.length)) :
|
|
4568
|
+
const o = t + $s, s = r;
|
|
4569
|
+
r = (a) => a.startsWith(o) ? s(a.slice(o.length)) : zs(Kc, !1, a, void 0, !0);
|
|
4570
4570
|
}
|
|
4571
4571
|
if (n) {
|
|
4572
4572
|
const o = r;
|
|
@@ -4576,7 +4576,7 @@ const Fc = (e, t) => {
|
|
|
4576
4576
|
});
|
|
4577
4577
|
}
|
|
4578
4578
|
return r;
|
|
4579
|
-
},
|
|
4579
|
+
}, Xc = (e) => {
|
|
4580
4580
|
const t = /* @__PURE__ */ new Map();
|
|
4581
4581
|
return e.orderSensitiveModifiers.forEach((n, r) => {
|
|
4582
4582
|
t.set(n, 1e6 + r);
|
|
@@ -4589,18 +4589,18 @@ const Fc = (e, t) => {
|
|
|
4589
4589
|
}
|
|
4590
4590
|
return o.length > 0 && (o.sort(), r.push(...o)), r;
|
|
4591
4591
|
};
|
|
4592
|
-
},
|
|
4593
|
-
cache:
|
|
4594
|
-
parseClassName:
|
|
4595
|
-
sortModifiers:
|
|
4596
|
-
|
|
4597
|
-
}),
|
|
4592
|
+
}, Jc = (e) => ({
|
|
4593
|
+
cache: Yc(e.cacheSize),
|
|
4594
|
+
parseClassName: Zc(e),
|
|
4595
|
+
sortModifiers: Xc(e),
|
|
4596
|
+
...Uc(e)
|
|
4597
|
+
}), Qc = /\s+/, ed = (e, t) => {
|
|
4598
4598
|
const {
|
|
4599
4599
|
parseClassName: n,
|
|
4600
4600
|
getClassGroupId: r,
|
|
4601
4601
|
getConflictingClassGroupIds: o,
|
|
4602
4602
|
sortModifiers: s
|
|
4603
|
-
} = t, a = [], i = e.trim().split(
|
|
4603
|
+
} = t, a = [], i = e.trim().split(Qc);
|
|
4604
4604
|
let c = "";
|
|
4605
4605
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
4606
4606
|
const m = i[d], {
|
|
@@ -4638,46 +4638,46 @@ const Fc = (e, t) => {
|
|
|
4638
4638
|
c = m + (c.length > 0 ? " " + c : c);
|
|
4639
4639
|
}
|
|
4640
4640
|
return c;
|
|
4641
|
-
},
|
|
4641
|
+
}, td = (...e) => {
|
|
4642
4642
|
let t = 0, n, r, o = "";
|
|
4643
4643
|
for (; t < e.length; )
|
|
4644
|
-
(n = e[t++]) && (r =
|
|
4644
|
+
(n = e[t++]) && (r = Na(n)) && (o && (o += " "), o += r);
|
|
4645
4645
|
return o;
|
|
4646
|
-
},
|
|
4646
|
+
}, Na = (e) => {
|
|
4647
4647
|
if (typeof e == "string")
|
|
4648
4648
|
return e;
|
|
4649
4649
|
let t, n = "";
|
|
4650
4650
|
for (let r = 0; r < e.length; r++)
|
|
4651
|
-
e[r] && (t =
|
|
4651
|
+
e[r] && (t = Na(e[r])) && (n && (n += " "), n += t);
|
|
4652
4652
|
return n;
|
|
4653
|
-
},
|
|
4653
|
+
}, nd = (e, ...t) => {
|
|
4654
4654
|
let n, r, o, s;
|
|
4655
4655
|
const a = (c) => {
|
|
4656
4656
|
const d = t.reduce((m, u) => u(m), e());
|
|
4657
|
-
return n =
|
|
4657
|
+
return n = Jc(d), r = n.cache.get, o = n.cache.set, s = i, i(c);
|
|
4658
4658
|
}, i = (c) => {
|
|
4659
4659
|
const d = r(c);
|
|
4660
4660
|
if (d)
|
|
4661
4661
|
return d;
|
|
4662
|
-
const m =
|
|
4662
|
+
const m = ed(c, n);
|
|
4663
4663
|
return o(c, m), m;
|
|
4664
4664
|
};
|
|
4665
|
-
return s = a, (...c) => s(
|
|
4666
|
-
},
|
|
4667
|
-
const t = (n) => n[e] ||
|
|
4665
|
+
return s = a, (...c) => s(td(...c));
|
|
4666
|
+
}, rd = [], Te = (e) => {
|
|
4667
|
+
const t = (n) => n[e] || rd;
|
|
4668
4668
|
return t.isThemeGetter = !0, t;
|
|
4669
|
-
},
|
|
4669
|
+
}, xa = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ka = /^\((?:(\w[\w-]*):)?(.+)\)$/i, od = /^\d+\/\d+$/, sd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, id = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ad = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ld = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, cd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Lt = (e) => od.test(e), Z = (e) => !!e && !Number.isNaN(Number(e)), mt = (e) => !!e && Number.isInteger(Number(e)), Nr = (e) => e.endsWith("%") && Z(e.slice(0, -1)), rt = (e) => sd.test(e), dd = () => !0, ud = (e) => (
|
|
4670
4670
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
4671
4671
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4672
4672
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4673
|
-
|
|
4674
|
-
),
|
|
4675
|
-
const r =
|
|
4673
|
+
id.test(e) && !ad.test(e)
|
|
4674
|
+
), Ra = () => !1, hd = (e) => ld.test(e), fd = (e) => cd.test(e), md = (e) => !F(e) && !V(e), pd = (e) => Wt(e, Oa, Ra), F = (e) => xa.test(e), Nt = (e) => Wt(e, Ma, ud), xr = (e) => Wt(e, yd, Z), Bs = (e) => Wt(e, Ia, Ra), gd = (e) => Wt(e, Aa, fd), Un = (e) => Wt(e, Pa, hd), V = (e) => ka.test(e), yn = (e) => qt(e, Ma), _d = (e) => qt(e, vd), js = (e) => qt(e, Ia), Ed = (e) => qt(e, Oa), bd = (e) => qt(e, Aa), $n = (e) => qt(e, Pa, !0), Wt = (e, t, n) => {
|
|
4675
|
+
const r = xa.exec(e);
|
|
4676
4676
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
4677
4677
|
}, qt = (e, t, n = !1) => {
|
|
4678
|
-
const r =
|
|
4678
|
+
const r = ka.exec(e);
|
|
4679
4679
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
4680
|
-
},
|
|
4680
|
+
}, Ia = (e) => e === "position" || e === "percentage", Aa = (e) => e === "image" || e === "url", Oa = (e) => e === "length" || e === "size" || e === "bg-size", Ma = (e) => e === "length", yd = (e) => e === "number", vd = (e) => e === "family-name", Pa = (e) => e === "shadow", Sd = () => {
|
|
4681
4681
|
const e = Te("color"), t = Te("font"), n = Te("text"), r = Te("font-weight"), o = Te("tracking"), s = Te("leading"), a = Te("breakpoint"), i = Te("container"), c = Te("spacing"), d = Te("radius"), m = Te("shadow"), u = Te("inset-shadow"), p = Te("text-shadow"), h = Te("drop-shadow"), _ = Te("blur"), b = Te("perspective"), y = Te("aspect"), f = Te("ease"), g = Te("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => [
|
|
4682
4682
|
"center",
|
|
4683
4683
|
"top",
|
|
@@ -4698,11 +4698,11 @@ const Fc = (e, t) => {
|
|
|
4698
4698
|
"left-bottom"
|
|
4699
4699
|
], w = () => [...N(), V, F], C = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], S = () => [V, F, c], v = () => [Lt, "full", "auto", ...S()], x = () => [mt, "none", "subgrid", V, F], O = () => ["auto", {
|
|
4700
4700
|
span: ["full", mt, V, F]
|
|
4701
|
-
}, mt, V, F], I = () => [mt, "auto", V, F], z = () => ["auto", "min", "max", "fr", V, F], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], P = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...S()], j = () => [Lt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], L = () => [e, V, F], pe = () => [...N(),
|
|
4701
|
+
}, mt, V, F], I = () => [mt, "auto", V, F], z = () => ["auto", "min", "max", "fr", V, F], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], P = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...S()], j = () => [Lt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], L = () => [e, V, F], pe = () => [...N(), js, Bs, {
|
|
4702
4702
|
position: [V, F]
|
|
4703
4703
|
}], le = () => ["no-repeat", {
|
|
4704
4704
|
repeat: ["", "x", "y", "space", "round"]
|
|
4705
|
-
}], ee = () => ["auto", "cover", "contain",
|
|
4705
|
+
}], ee = () => ["auto", "cover", "contain", Ed, pd, {
|
|
4706
4706
|
size: [V, F]
|
|
4707
4707
|
}], J = () => [Nr, yn, Nt], A = () => [
|
|
4708
4708
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -4712,7 +4712,7 @@ const Fc = (e, t) => {
|
|
|
4712
4712
|
d,
|
|
4713
4713
|
V,
|
|
4714
4714
|
F
|
|
4715
|
-
], Y = () => ["", Z, yn, Nt], ue = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], X = () => [Z, Nr,
|
|
4715
|
+
], Y = () => ["", Z, yn, Nt], ue = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], X = () => [Z, Nr, js, Bs], Ve = () => [
|
|
4716
4716
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4717
4717
|
"",
|
|
4718
4718
|
"none",
|
|
@@ -4727,11 +4727,11 @@ const Fc = (e, t) => {
|
|
|
4727
4727
|
aspect: ["video"],
|
|
4728
4728
|
blur: [rt],
|
|
4729
4729
|
breakpoint: [rt],
|
|
4730
|
-
color: [
|
|
4730
|
+
color: [dd],
|
|
4731
4731
|
container: [rt],
|
|
4732
4732
|
"drop-shadow": [rt],
|
|
4733
4733
|
ease: ["in", "out", "in-out"],
|
|
4734
|
-
font: [
|
|
4734
|
+
font: [md],
|
|
4735
4735
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
4736
4736
|
"inset-shadow": [rt],
|
|
4737
4737
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -5443,7 +5443,7 @@ const Fc = (e, t) => {
|
|
|
5443
5443
|
* @see https://tailwindcss.com/docs/font-family
|
|
5444
5444
|
*/
|
|
5445
5445
|
"font-family": [{
|
|
5446
|
-
font: [
|
|
5446
|
+
font: [_d, F, t]
|
|
5447
5447
|
}],
|
|
5448
5448
|
/**
|
|
5449
5449
|
* Font Variant Numeric
|
|
@@ -5698,7 +5698,7 @@ const Fc = (e, t) => {
|
|
|
5698
5698
|
}, mt, V, F],
|
|
5699
5699
|
radial: ["", V, F],
|
|
5700
5700
|
conic: [mt, V, F]
|
|
5701
|
-
},
|
|
5701
|
+
}, bd, gd]
|
|
5702
5702
|
}],
|
|
5703
5703
|
/**
|
|
5704
5704
|
* Background Color
|
|
@@ -7147,9 +7147,9 @@ const Fc = (e, t) => {
|
|
|
7147
7147
|
},
|
|
7148
7148
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
7149
7149
|
};
|
|
7150
|
-
},
|
|
7150
|
+
}, wd = /* @__PURE__ */ nd(Sd);
|
|
7151
7151
|
function D(...e) {
|
|
7152
|
-
return
|
|
7152
|
+
return wd(Sa(e));
|
|
7153
7153
|
}
|
|
7154
7154
|
function Dt(e) {
|
|
7155
7155
|
if (!e && e !== 0)
|
|
@@ -7162,7 +7162,7 @@ function Dt(e) {
|
|
|
7162
7162
|
minute: "2-digit"
|
|
7163
7163
|
});
|
|
7164
7164
|
}
|
|
7165
|
-
const
|
|
7165
|
+
const Cd = (e) => {
|
|
7166
7166
|
switch (e) {
|
|
7167
7167
|
case M.SYNAPSE_COMPONENTS.DOCTOR_CARD:
|
|
7168
7168
|
case M.SYNAPSE_COMPONENTS.CARD:
|
|
@@ -7170,21 +7170,21 @@ const Td = (e) => {
|
|
|
7170
7170
|
default:
|
|
7171
7171
|
return !1;
|
|
7172
7172
|
}
|
|
7173
|
-
},
|
|
7174
|
-
|
|
7173
|
+
}, Td = (e) => new Promise((t) => setTimeout(t, e)), La = K(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l(
|
|
7174
|
+
ua,
|
|
7175
7175
|
{
|
|
7176
7176
|
ref: r,
|
|
7177
7177
|
className: D("relative overflow-hidden", e),
|
|
7178
7178
|
...n,
|
|
7179
7179
|
children: [
|
|
7180
|
-
/* @__PURE__ */ l(
|
|
7181
|
-
/* @__PURE__ */ l(
|
|
7182
|
-
/* @__PURE__ */ l(
|
|
7180
|
+
/* @__PURE__ */ l(pc, { className: "h-full w-full rounded-[inherit] overscroll-contain", children: t }),
|
|
7181
|
+
/* @__PURE__ */ l(Da, {}),
|
|
7182
|
+
/* @__PURE__ */ l(gc, {})
|
|
7183
7183
|
]
|
|
7184
7184
|
}
|
|
7185
7185
|
));
|
|
7186
|
-
|
|
7187
|
-
const
|
|
7186
|
+
La.displayName = ua.displayName;
|
|
7187
|
+
const Da = K(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ l(
|
|
7188
7188
|
bo,
|
|
7189
7189
|
{
|
|
7190
7190
|
ref: r,
|
|
@@ -7196,23 +7196,23 @@ const Fa = K(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__P
|
|
|
7196
7196
|
e
|
|
7197
7197
|
),
|
|
7198
7198
|
...n,
|
|
7199
|
-
children: /* @__PURE__ */ l(
|
|
7199
|
+
children: /* @__PURE__ */ l(ia, { className: "relative flex-1 rounded-full bg-border" })
|
|
7200
7200
|
}
|
|
7201
7201
|
));
|
|
7202
|
-
|
|
7203
|
-
var
|
|
7204
|
-
function
|
|
7202
|
+
Da.displayName = bo.displayName;
|
|
7203
|
+
var Nd = Symbol.for("react.lazy"), ir = Ji[" use ".trim().toString()];
|
|
7204
|
+
function xd(e) {
|
|
7205
7205
|
return typeof e == "object" && e !== null && "then" in e;
|
|
7206
7206
|
}
|
|
7207
|
-
function
|
|
7208
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
7207
|
+
function Fa(e) {
|
|
7208
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Nd && "_payload" in e && xd(e._payload);
|
|
7209
7209
|
}
|
|
7210
7210
|
// @__NO_SIDE_EFFECTS__
|
|
7211
|
-
function
|
|
7212
|
-
const t = /* @__PURE__ */
|
|
7211
|
+
function Va(e) {
|
|
7212
|
+
const t = /* @__PURE__ */ Rd(e), n = K((r, o) => {
|
|
7213
7213
|
let { children: s, ...a } = r;
|
|
7214
|
-
|
|
7215
|
-
const i = Ue.toArray(s), c = i.find(
|
|
7214
|
+
Fa(s) && typeof ir == "function" && (s = ir(s._payload));
|
|
7215
|
+
const i = Ue.toArray(s), c = i.find(Ad);
|
|
7216
7216
|
if (c) {
|
|
7217
7217
|
const d = c.props.children, m = i.map((u) => u === c ? Ue.count(d) > 1 ? Ue.only(null) : $e(d) ? d.props.children : null : u);
|
|
7218
7218
|
return /* @__PURE__ */ l(t, { ...a, ref: o, children: $e(d) ? yt(d, void 0, m) : null });
|
|
@@ -7221,24 +7221,24 @@ function Ua(e) {
|
|
|
7221
7221
|
});
|
|
7222
7222
|
return n.displayName = `${e}.Slot`, n;
|
|
7223
7223
|
}
|
|
7224
|
-
var
|
|
7224
|
+
var kd = /* @__PURE__ */ Va("Slot");
|
|
7225
7225
|
// @__NO_SIDE_EFFECTS__
|
|
7226
|
-
function
|
|
7226
|
+
function Rd(e) {
|
|
7227
7227
|
const t = K((n, r) => {
|
|
7228
7228
|
let { children: o, ...s } = n;
|
|
7229
|
-
if (
|
|
7230
|
-
const a =
|
|
7229
|
+
if (Fa(o) && typeof ir == "function" && (o = ir(o._payload)), $e(o)) {
|
|
7230
|
+
const a = Md(o), i = Od(s, o.props);
|
|
7231
7231
|
return o.type !== be && (i.ref = r ? _o(r, a) : a), yt(o, i);
|
|
7232
7232
|
}
|
|
7233
7233
|
return Ue.count(o) > 1 ? Ue.only(null) : null;
|
|
7234
7234
|
});
|
|
7235
7235
|
return t.displayName = `${e}.SlotClone`, t;
|
|
7236
7236
|
}
|
|
7237
|
-
var
|
|
7238
|
-
function
|
|
7239
|
-
return $e(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
7237
|
+
var Id = Symbol("radix.slottable");
|
|
7238
|
+
function Ad(e) {
|
|
7239
|
+
return $e(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Id;
|
|
7240
7240
|
}
|
|
7241
|
-
function
|
|
7241
|
+
function Od(e, t) {
|
|
7242
7242
|
const n = { ...t };
|
|
7243
7243
|
for (const r in t) {
|
|
7244
7244
|
const o = e[r], s = t[r];
|
|
@@ -7249,17 +7249,17 @@ function Md(e, t) {
|
|
|
7249
7249
|
}
|
|
7250
7250
|
return { ...e, ...n };
|
|
7251
7251
|
}
|
|
7252
|
-
function
|
|
7252
|
+
function Md(e) {
|
|
7253
7253
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7254
7254
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
7255
7255
|
}
|
|
7256
|
-
const
|
|
7256
|
+
const Hs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Gs = Sa, Pd = (e, t) => (n) => {
|
|
7257
7257
|
var r;
|
|
7258
|
-
if (t?.variants == null) return
|
|
7258
|
+
if (t?.variants == null) return Gs(e, n?.class, n?.className);
|
|
7259
7259
|
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((d) => {
|
|
7260
7260
|
const m = n?.[d], u = s?.[d];
|
|
7261
7261
|
if (m === null) return null;
|
|
7262
|
-
const p =
|
|
7262
|
+
const p = Hs(m) || Hs(u);
|
|
7263
7263
|
return o[d][p];
|
|
7264
7264
|
}), i = n && Object.entries(n).reduce((d, m) => {
|
|
7265
7265
|
let [u, p] = m;
|
|
@@ -7281,8 +7281,8 @@ const Gs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ws = wa, L
|
|
|
7281
7281
|
p
|
|
7282
7282
|
] : d;
|
|
7283
7283
|
}, []);
|
|
7284
|
-
return
|
|
7285
|
-
},
|
|
7284
|
+
return Gs(e, a, c, n?.class, n?.className);
|
|
7285
|
+
}, Ld = Pd(
|
|
7286
7286
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
7287
7287
|
{
|
|
7288
7288
|
variants: {
|
|
@@ -7308,27 +7308,27 @@ const Gs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ws = wa, L
|
|
|
7308
7308
|
}
|
|
7309
7309
|
), ce = K(
|
|
7310
7310
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ l(
|
|
7311
|
-
r ?
|
|
7311
|
+
r ? kd : "button",
|
|
7312
7312
|
{
|
|
7313
|
-
className: D(
|
|
7313
|
+
className: D(Ld({ variant: t, size: n, className: e })),
|
|
7314
7314
|
ref: s,
|
|
7315
7315
|
...o
|
|
7316
7316
|
}
|
|
7317
7317
|
)
|
|
7318
7318
|
);
|
|
7319
7319
|
ce.displayName = "Button";
|
|
7320
|
-
const
|
|
7320
|
+
const Dd = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Fd = (e) => e.replace(
|
|
7321
7321
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
7322
7322
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
7323
|
-
),
|
|
7324
|
-
const t =
|
|
7323
|
+
), Ws = (e) => {
|
|
7324
|
+
const t = Fd(e);
|
|
7325
7325
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
7326
|
-
},
|
|
7326
|
+
}, Ua = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Vd = (e) => {
|
|
7327
7327
|
for (const t in e)
|
|
7328
7328
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
7329
7329
|
return !0;
|
|
7330
7330
|
};
|
|
7331
|
-
var
|
|
7331
|
+
var Ud = {
|
|
7332
7332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7333
7333
|
width: 24,
|
|
7334
7334
|
height: 24,
|
|
@@ -7339,7 +7339,7 @@ var $d = {
|
|
|
7339
7339
|
strokeLinecap: "round",
|
|
7340
7340
|
strokeLinejoin: "round"
|
|
7341
7341
|
};
|
|
7342
|
-
const
|
|
7342
|
+
const $d = K(
|
|
7343
7343
|
({
|
|
7344
7344
|
color: e = "currentColor",
|
|
7345
7345
|
size: t = 24,
|
|
@@ -7353,13 +7353,13 @@ const zd = K(
|
|
|
7353
7353
|
"svg",
|
|
7354
7354
|
{
|
|
7355
7355
|
ref: c,
|
|
7356
|
-
|
|
7356
|
+
...Ud,
|
|
7357
7357
|
width: t,
|
|
7358
7358
|
height: t,
|
|
7359
7359
|
stroke: e,
|
|
7360
7360
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
7361
|
-
className:
|
|
7362
|
-
...!s && !
|
|
7361
|
+
className: Ua("lucide", o),
|
|
7362
|
+
...!s && !Vd(i) && { "aria-hidden": "true" },
|
|
7363
7363
|
...i
|
|
7364
7364
|
},
|
|
7365
7365
|
[
|
|
@@ -7370,21 +7370,21 @@ const zd = K(
|
|
|
7370
7370
|
);
|
|
7371
7371
|
const Fe = (e, t) => {
|
|
7372
7372
|
const n = K(
|
|
7373
|
-
({ className: r, ...o }, s) => De(
|
|
7373
|
+
({ className: r, ...o }, s) => De($d, {
|
|
7374
7374
|
ref: s,
|
|
7375
7375
|
iconNode: t,
|
|
7376
|
-
className:
|
|
7377
|
-
`lucide-${
|
|
7376
|
+
className: Ua(
|
|
7377
|
+
`lucide-${Dd(Ws(e))}`,
|
|
7378
7378
|
`lucide-${e}`,
|
|
7379
7379
|
r
|
|
7380
7380
|
),
|
|
7381
7381
|
...o
|
|
7382
7382
|
})
|
|
7383
7383
|
);
|
|
7384
|
-
return n.displayName =
|
|
7384
|
+
return n.displayName = Ws(e), n;
|
|
7385
7385
|
};
|
|
7386
|
-
const
|
|
7387
|
-
const
|
|
7386
|
+
const zd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], No = Fe("chevron-down", zd);
|
|
7387
|
+
const Bd = [
|
|
7388
7388
|
[
|
|
7389
7389
|
"path",
|
|
7390
7390
|
{
|
|
@@ -7396,14 +7396,14 @@ const jd = [
|
|
|
7396
7396
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
7397
7397
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
7398
7398
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
7399
|
-
],
|
|
7400
|
-
const
|
|
7399
|
+
], jd = Fe("file-text", Bd);
|
|
7400
|
+
const Hd = [
|
|
7401
7401
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
7402
7402
|
["path", { d: "m21 3-7 7", key: "1l2asr" }],
|
|
7403
7403
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
7404
7404
|
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
7405
|
-
],
|
|
7406
|
-
const
|
|
7405
|
+
], Gd = Fe("maximize-2", Hd);
|
|
7406
|
+
const Wd = [
|
|
7407
7407
|
[
|
|
7408
7408
|
"path",
|
|
7409
7409
|
{
|
|
@@ -7413,30 +7413,30 @@ const qd = [
|
|
|
7413
7413
|
],
|
|
7414
7414
|
["path", { d: "M12 8v6", key: "1ib9pf" }],
|
|
7415
7415
|
["path", { d: "M9 11h6", key: "1fldmi" }]
|
|
7416
|
-
],
|
|
7417
|
-
const
|
|
7416
|
+
], $a = Fe("message-square-plus", Wd);
|
|
7417
|
+
const qd = [
|
|
7418
7418
|
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
7419
7419
|
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
|
|
7420
7420
|
["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
|
|
7421
|
-
],
|
|
7422
|
-
const
|
|
7421
|
+
], qs = Fe("mic", qd);
|
|
7422
|
+
const Yd = [
|
|
7423
7423
|
["path", { d: "m14 10 7-7", key: "oa77jy" }],
|
|
7424
7424
|
["path", { d: "M20 10h-6V4", key: "mjg0md" }],
|
|
7425
7425
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
7426
7426
|
["path", { d: "M4 14h6v6", key: "rmj7iw" }]
|
|
7427
|
-
],
|
|
7428
|
-
const
|
|
7427
|
+
], Kd = Fe("minimize-2", Yd);
|
|
7428
|
+
const Zd = [
|
|
7429
7429
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
7430
7430
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
7431
|
-
],
|
|
7432
|
-
const
|
|
7431
|
+
], Ys = Fe("plus", Zd);
|
|
7432
|
+
const Xd = [
|
|
7433
7433
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
7434
7434
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
7435
|
-
],
|
|
7436
|
-
const
|
|
7435
|
+
], Jd = Fe("rotate-ccw", Xd);
|
|
7436
|
+
const Qd = [
|
|
7437
7437
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
7438
|
-
],
|
|
7439
|
-
const
|
|
7438
|
+
], Ks = Fe("square", Qd);
|
|
7439
|
+
const eu = [
|
|
7440
7440
|
["path", { d: "M7 10v12", key: "1qc93n" }],
|
|
7441
7441
|
[
|
|
7442
7442
|
"path",
|
|
@@ -7445,8 +7445,8 @@ const tu = [
|
|
|
7445
7445
|
key: "emmmcr"
|
|
7446
7446
|
}
|
|
7447
7447
|
]
|
|
7448
|
-
], zn = Fe("thumbs-up",
|
|
7449
|
-
const
|
|
7448
|
+
], zn = Fe("thumbs-up", eu);
|
|
7449
|
+
const tu = [
|
|
7450
7450
|
["path", { d: "M17 14V2", key: "8ymqnk" }],
|
|
7451
7451
|
[
|
|
7452
7452
|
"path",
|
|
@@ -7455,8 +7455,8 @@ const nu = [
|
|
|
7455
7455
|
key: "m61m77"
|
|
7456
7456
|
}
|
|
7457
7457
|
]
|
|
7458
|
-
], Bn = Fe("thumbs-down",
|
|
7459
|
-
const
|
|
7458
|
+
], Bn = Fe("thumbs-down", tu);
|
|
7459
|
+
const nu = [
|
|
7460
7460
|
[
|
|
7461
7461
|
"path",
|
|
7462
7462
|
{
|
|
@@ -7466,17 +7466,17 @@ const ru = [
|
|
|
7466
7466
|
],
|
|
7467
7467
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
7468
7468
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
7469
|
-
],
|
|
7470
|
-
const
|
|
7469
|
+
], ru = Fe("triangle-alert", nu);
|
|
7470
|
+
const ou = [
|
|
7471
7471
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
7472
7472
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
7473
|
-
], ar = Fe("x",
|
|
7474
|
-
const
|
|
7473
|
+
], ar = Fe("x", ou);
|
|
7474
|
+
const su = [
|
|
7475
7475
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
7476
7476
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
7477
7477
|
["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
|
|
7478
7478
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
7479
|
-
],
|
|
7479
|
+
], iu = Fe("zoom-in", su), Zs = (e) => {
|
|
7480
7480
|
let t;
|
|
7481
7481
|
const n = /* @__PURE__ */ new Set(), r = (d, m) => {
|
|
7482
7482
|
const u = typeof d == "function" ? d(t) : d;
|
|
@@ -7486,8 +7486,8 @@ const iu = [
|
|
|
7486
7486
|
}
|
|
7487
7487
|
}, o = () => t, i = { setState: r, getState: o, getInitialState: () => c, subscribe: (d) => (n.add(d), () => n.delete(d)) }, c = t = e(r, o, i);
|
|
7488
7488
|
return i;
|
|
7489
|
-
},
|
|
7490
|
-
function
|
|
7489
|
+
}, au = ((e) => e ? Zs(e) : Zs), lu = (e) => e;
|
|
7490
|
+
function cu(e, t = lu) {
|
|
7491
7491
|
const n = Sn.useSyncExternalStore(
|
|
7492
7492
|
e.subscribe,
|
|
7493
7493
|
Sn.useCallback(() => t(e.getState()), [e, t]),
|
|
@@ -7495,11 +7495,11 @@ function du(e, t = cu) {
|
|
|
7495
7495
|
);
|
|
7496
7496
|
return Sn.useDebugValue(n), n;
|
|
7497
7497
|
}
|
|
7498
|
-
const
|
|
7499
|
-
const t =
|
|
7498
|
+
const Xs = (e) => {
|
|
7499
|
+
const t = au(e), n = (r) => cu(t, r);
|
|
7500
7500
|
return Object.assign(n, t), n;
|
|
7501
|
-
},
|
|
7502
|
-
function
|
|
7501
|
+
}, du = ((e) => e ? Xs(e) : Xs);
|
|
7502
|
+
function za(e, t) {
|
|
7503
7503
|
let n;
|
|
7504
7504
|
try {
|
|
7505
7505
|
n = e();
|
|
@@ -7537,9 +7537,9 @@ const qr = (e) => (t) => {
|
|
|
7537
7537
|
}
|
|
7538
7538
|
};
|
|
7539
7539
|
}
|
|
7540
|
-
},
|
|
7540
|
+
}, uu = (e, t) => (n, r, o) => {
|
|
7541
7541
|
let s = {
|
|
7542
|
-
storage:
|
|
7542
|
+
storage: za(() => localStorage),
|
|
7543
7543
|
partialize: (b) => b,
|
|
7544
7544
|
version: 0,
|
|
7545
7545
|
merge: (b, y) => ({
|
|
@@ -7628,15 +7628,15 @@ const qr = (e) => (t) => {
|
|
|
7628
7628
|
c.delete(b);
|
|
7629
7629
|
})
|
|
7630
7630
|
}, s.skipHydration || _(), h || p;
|
|
7631
|
-
},
|
|
7631
|
+
}, hu = uu, je = {
|
|
7632
7632
|
USER: "user",
|
|
7633
7633
|
ASSISTANT: "assistant"
|
|
7634
7634
|
};
|
|
7635
7635
|
var me = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.LISTENING = "listening", e.ERROR = "error", e.PROCESSING = "processing", e.TRANSCRIBING = "transcribing", e))(me || {}), Ne = /* @__PURE__ */ ((e) => (e.CONNECTED = "connected", e.NOT_CONNECTED = "not_connected", e.CONNECTING = "connecting", e))(Ne || {});
|
|
7636
7636
|
let _t = "";
|
|
7637
|
-
const
|
|
7637
|
+
const fu = (e) => {
|
|
7638
7638
|
_t = `med-assist-store-${e}`;
|
|
7639
|
-
},
|
|
7639
|
+
}, Ba = {
|
|
7640
7640
|
sessionId: "",
|
|
7641
7641
|
sessionToken: "",
|
|
7642
7642
|
isStreaming: !1,
|
|
@@ -7657,8 +7657,8 @@ const mu = (e) => {
|
|
|
7657
7657
|
fileUploadPerSession: 0,
|
|
7658
7658
|
elicitationState: {},
|
|
7659
7659
|
toastMessage: null
|
|
7660
|
-
}, ne =
|
|
7661
|
-
|
|
7660
|
+
}, ne = du()(
|
|
7661
|
+
hu(
|
|
7662
7662
|
(e, t) => ({
|
|
7663
7663
|
sessionId: "",
|
|
7664
7664
|
setSessionId: (n) => e({ sessionId: n }),
|
|
@@ -7749,7 +7749,7 @@ const mu = (e) => {
|
|
|
7749
7749
|
isTimeoutError: !1,
|
|
7750
7750
|
setTimeoutError: (n) => e({ isTimeoutError: n }),
|
|
7751
7751
|
clearSession: async () => {
|
|
7752
|
-
e(
|
|
7752
|
+
e(Ba), await sessionStorage.removeItem(_t || `med-assist-store-${t().agentId}`);
|
|
7753
7753
|
},
|
|
7754
7754
|
// Timeout management
|
|
7755
7755
|
streamingTimeoutId: null,
|
|
@@ -7769,7 +7769,7 @@ const mu = (e) => {
|
|
|
7769
7769
|
}),
|
|
7770
7770
|
{
|
|
7771
7771
|
name: "med-assist-store",
|
|
7772
|
-
storage:
|
|
7772
|
+
storage: za(() => ({
|
|
7773
7773
|
getItem: () => _t ? sessionStorage.getItem(_t) : null,
|
|
7774
7774
|
setItem: (e, t) => {
|
|
7775
7775
|
_t && sessionStorage.setItem(_t, t);
|
|
@@ -7792,7 +7792,7 @@ const mu = (e) => {
|
|
|
7792
7792
|
})
|
|
7793
7793
|
}
|
|
7794
7794
|
)
|
|
7795
|
-
),
|
|
7795
|
+
), mu = (e) => {
|
|
7796
7796
|
const t = `med-assist-store-${e}`;
|
|
7797
7797
|
let n = null;
|
|
7798
7798
|
try {
|
|
@@ -7803,22 +7803,22 @@ const mu = (e) => {
|
|
|
7803
7803
|
}
|
|
7804
7804
|
} catch {
|
|
7805
7805
|
}
|
|
7806
|
-
ne.setState(
|
|
7807
|
-
}, xo = it(null),
|
|
7806
|
+
ne.setState(Ba), n && ne.setState(n);
|
|
7807
|
+
}, xo = it(null), pu = ({ children: e }) => {
|
|
7808
7808
|
const [t, n] = U(null);
|
|
7809
7809
|
return /* @__PURE__ */ l(xo.Provider, { value: { synapse: t, setSynapse: n }, children: e });
|
|
7810
|
-
},
|
|
7810
|
+
}, gu = () => {
|
|
7811
7811
|
const e = ct(xo);
|
|
7812
7812
|
if (!e)
|
|
7813
7813
|
throw new Error("useSynapse must be used within a SynapseProvider");
|
|
7814
7814
|
return e.synapse;
|
|
7815
|
-
},
|
|
7815
|
+
}, _u = () => {
|
|
7816
7816
|
const e = ct(xo);
|
|
7817
7817
|
if (!e)
|
|
7818
7818
|
throw new Error("useSynapseSetter must be used within a SynapseProvider");
|
|
7819
7819
|
return e.setSynapse;
|
|
7820
|
-
},
|
|
7821
|
-
const [e, t] = U(M.VOICE_AGENT_STATE.IDLE), [n, r] = U(!1), o =
|
|
7820
|
+
}, Eu = () => {
|
|
7821
|
+
const [e, t] = U(M.VOICE_AGENT_STATE.IDLE), [n, r] = U(!1), o = gu(), { setError: s } = ne();
|
|
7822
7822
|
$(() => {
|
|
7823
7823
|
if (!o) return;
|
|
7824
7824
|
const m = o.voice, u = (h) => {
|
|
@@ -7857,7 +7857,7 @@ const mu = (e) => {
|
|
|
7857
7857
|
}
|
|
7858
7858
|
));
|
|
7859
7859
|
jt.displayName = "Card";
|
|
7860
|
-
const
|
|
7860
|
+
const bu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
7861
7861
|
"div",
|
|
7862
7862
|
{
|
|
7863
7863
|
ref: n,
|
|
@@ -7865,8 +7865,8 @@ const yu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
7865
7865
|
...t
|
|
7866
7866
|
}
|
|
7867
7867
|
));
|
|
7868
|
-
|
|
7869
|
-
const
|
|
7868
|
+
bu.displayName = "CardHeader";
|
|
7869
|
+
const yu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
7870
7870
|
"div",
|
|
7871
7871
|
{
|
|
7872
7872
|
ref: n,
|
|
@@ -7874,8 +7874,8 @@ const vu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
7874
7874
|
...t
|
|
7875
7875
|
}
|
|
7876
7876
|
));
|
|
7877
|
-
|
|
7878
|
-
const
|
|
7877
|
+
yu.displayName = "CardTitle";
|
|
7878
|
+
const vu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
7879
7879
|
"div",
|
|
7880
7880
|
{
|
|
7881
7881
|
ref: n,
|
|
@@ -7883,10 +7883,10 @@ const Su = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
7883
7883
|
...t
|
|
7884
7884
|
}
|
|
7885
7885
|
));
|
|
7886
|
-
|
|
7887
|
-
const
|
|
7888
|
-
|
|
7889
|
-
const
|
|
7886
|
+
vu.displayName = "CardDescription";
|
|
7887
|
+
const Su = K(({ className: e, ...t }, n) => /* @__PURE__ */ l("div", { ref: n, className: D("p-6 pt-0", e), ...t }));
|
|
7888
|
+
Su.displayName = "CardContent";
|
|
7889
|
+
const wu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
7890
7890
|
"div",
|
|
7891
7891
|
{
|
|
7892
7892
|
ref: n,
|
|
@@ -7894,9 +7894,9 @@ const Cu = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
7894
7894
|
...t
|
|
7895
7895
|
}
|
|
7896
7896
|
));
|
|
7897
|
-
|
|
7898
|
-
const kr = 5,
|
|
7899
|
-
function
|
|
7897
|
+
wu.displayName = "CardFooter";
|
|
7898
|
+
const kr = 5, Cu = 10 * 1024 * 1024, jn = { width: 384, height: 600 }, Hn = 20, Tu = 150;
|
|
7899
|
+
function Nu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r } = {}) {
|
|
7900
7900
|
const o = ae(() => typeof window > "u" ? { x: 0, y: 0 } : {
|
|
7901
7901
|
x: window.innerWidth - jn.width - Hn,
|
|
7902
7902
|
y: window.innerHeight - jn.height - Hn
|
|
@@ -7920,7 +7920,7 @@ function xu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r
|
|
|
7920
7920
|
return w === g.x && C === g.y ? g : { x: w, y: C };
|
|
7921
7921
|
});
|
|
7922
7922
|
}, f = () => {
|
|
7923
|
-
b !== null && clearTimeout(b), b = setTimeout(y,
|
|
7923
|
+
b !== null && clearTimeout(b), b = setTimeout(y, Tu);
|
|
7924
7924
|
};
|
|
7925
7925
|
return window.addEventListener("resize", f), () => {
|
|
7926
7926
|
window.removeEventListener("resize", f), b !== null && clearTimeout(b);
|
|
@@ -7978,19 +7978,19 @@ function xu({ defaultPosition: e, enabled: t = !0, onDragStart: n, onDragEnd: r
|
|
|
7978
7978
|
setPosition: a
|
|
7979
7979
|
};
|
|
7980
7980
|
}
|
|
7981
|
-
const Yr = "#6B5CE0",
|
|
7982
|
-
background:
|
|
7981
|
+
const Yr = "#6B5CE0", xu = "#F0F0F0", Gn = {
|
|
7982
|
+
background: xu,
|
|
7983
7983
|
// base-50 (#F0F0F0)
|
|
7984
7984
|
backgroundImage: void 0,
|
|
7985
7985
|
primary: Yr,
|
|
7986
7986
|
textColor: "black"
|
|
7987
|
-
},
|
|
7988
|
-
function
|
|
7987
|
+
}, ku = "rgba(0, 0, 0, 0.4)", Ru = "24px";
|
|
7988
|
+
function Iu(e) {
|
|
7989
7989
|
if (e === "dark") return "white";
|
|
7990
7990
|
if (e === "light") return "black";
|
|
7991
7991
|
}
|
|
7992
|
-
function
|
|
7993
|
-
const t = e?.primary ?? e?.primaryColor ?? Gn.primary, n = e?.textColor ??
|
|
7992
|
+
function Au(e) {
|
|
7993
|
+
const t = e?.primary ?? e?.primaryColor ?? Gn.primary, n = e?.textColor ?? Iu(e?.mode);
|
|
7994
7994
|
return {
|
|
7995
7995
|
background: e?.background ?? Gn.background,
|
|
7996
7996
|
backgroundImage: e?.backgroundImage ?? Gn.backgroundImage,
|
|
@@ -8003,7 +8003,7 @@ function Ou(e) {
|
|
|
8003
8003
|
tertiaryColor: e?.tertiaryColor
|
|
8004
8004
|
};
|
|
8005
8005
|
}
|
|
8006
|
-
function
|
|
8006
|
+
function Ou(e) {
|
|
8007
8007
|
e = e.replace("#", "");
|
|
8008
8008
|
const t = parseInt(e.substring(0, 2), 16) / 255, n = parseInt(e.substring(2, 4), 16) / 255, r = parseInt(e.substring(4, 6), 16) / 255, o = Math.max(t, n, r), s = Math.min(t, n, r);
|
|
8009
8009
|
let a = 0, i = 0;
|
|
@@ -8026,7 +8026,7 @@ function Mu(e) {
|
|
|
8026
8026
|
const d = Math.round(c * 100);
|
|
8027
8027
|
return `${a} ${i}% ${d}%`;
|
|
8028
8028
|
}
|
|
8029
|
-
function
|
|
8029
|
+
function Mu(e) {
|
|
8030
8030
|
const t = e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
8031
8031
|
if (!t) throw new Error("Invalid RGB format");
|
|
8032
8032
|
const n = parseInt(t[1], 10) / 255, r = parseInt(t[2], 10) / 255, o = parseInt(t[3], 10) / 255, s = Math.max(n, r, o), a = Math.min(n, r, o);
|
|
@@ -8050,7 +8050,7 @@ function Pu(e) {
|
|
|
8050
8050
|
const m = Math.round(d * 100);
|
|
8051
8051
|
return `${i} ${c}% ${m}%`;
|
|
8052
8052
|
}
|
|
8053
|
-
function
|
|
8053
|
+
function Pu(e) {
|
|
8054
8054
|
const t = e.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
|
|
8055
8055
|
if (!t) throw new Error("Invalid HSL format");
|
|
8056
8056
|
return `${t[1]} ${t[2]}% ${t[3]}%`;
|
|
@@ -8058,26 +8058,26 @@ function Lu(e) {
|
|
|
8058
8058
|
function Rr(e) {
|
|
8059
8059
|
if (!e || typeof e != "string") throw new Error("Color must be a non-empty string");
|
|
8060
8060
|
const t = e.trim();
|
|
8061
|
-
if (t.startsWith("#")) return
|
|
8062
|
-
if (t.startsWith("rgb")) return
|
|
8063
|
-
if (t.startsWith("hsl")) return
|
|
8061
|
+
if (t.startsWith("#")) return Ou(t);
|
|
8062
|
+
if (t.startsWith("rgb")) return Mu(t);
|
|
8063
|
+
if (t.startsWith("hsl")) return Pu(t);
|
|
8064
8064
|
if (/^\d+\s+\d+%\s+\d+%$/.test(t)) return t;
|
|
8065
8065
|
throw new Error(`Unsupported color format: ${e}`);
|
|
8066
8066
|
}
|
|
8067
|
-
function
|
|
8067
|
+
function ja(e) {
|
|
8068
8068
|
const t = e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);
|
|
8069
8069
|
return t ? parseInt(t[3], 10) / 100 : 0.5;
|
|
8070
8070
|
}
|
|
8071
8071
|
function Ir(e) {
|
|
8072
|
-
return
|
|
8072
|
+
return ja(e) > 0.5 ? "0 0% 9%" : "0 0% 98%";
|
|
8073
8073
|
}
|
|
8074
|
-
function
|
|
8074
|
+
function Lu(e) {
|
|
8075
8075
|
const t = e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);
|
|
8076
8076
|
if (!t) return "0 0% 96%";
|
|
8077
8077
|
const n = t[1], r = Math.max(0, parseInt(t[2], 10) - 5);
|
|
8078
8078
|
return `${n} ${r}% 96%`;
|
|
8079
8079
|
}
|
|
8080
|
-
function
|
|
8080
|
+
function Du(e) {
|
|
8081
8081
|
const t = e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);
|
|
8082
8082
|
if (!t)
|
|
8083
8083
|
return {
|
|
@@ -8107,7 +8107,7 @@ function Fu(e) {
|
|
|
8107
8107
|
900: `${n} ${Math.min(100, r + 20)}% ${Math.max(20, o - 40)}%`
|
|
8108
8108
|
};
|
|
8109
8109
|
}
|
|
8110
|
-
function
|
|
8110
|
+
function Js(e, t) {
|
|
8111
8111
|
const n = t.primary ?? Yr, r = t.textColor ?? "black", o = !!t.backgroundImage, s = t.mode === "dark" || r === "white", a = t.headerTinted ?? !1, i = (h, _) => {
|
|
8112
8112
|
const b = e instanceof ShadowRoot ? e.host : e;
|
|
8113
8113
|
b instanceof HTMLElement && b.style.setProperty(h, _);
|
|
@@ -8119,7 +8119,7 @@ function Qs(e, t) {
|
|
|
8119
8119
|
c = Rr(Yr);
|
|
8120
8120
|
}
|
|
8121
8121
|
i("--primary", c), i("--primary-foreground", Ir(c)), i("--ring", c), i("--border-primary", c);
|
|
8122
|
-
const d =
|
|
8122
|
+
const d = Du(c);
|
|
8123
8123
|
for (const [h, _] of Object.entries(d))
|
|
8124
8124
|
i(`--primary-${h}`, _);
|
|
8125
8125
|
const m = Ir(c);
|
|
@@ -8134,8 +8134,8 @@ function Qs(e, t) {
|
|
|
8134
8134
|
}
|
|
8135
8135
|
i("--widget-bg-overlay", `hsl(${c} / ${a ? 0.05 : 0.1})`);
|
|
8136
8136
|
}
|
|
8137
|
-
if (s ? i("--bot-message-bg", "var(--black-600)") : i("--bot-message-bg", "var(--white-600)"), s ? i("--card", "0 0% 0% / 0.6") : i("--card", "0 0% 100% / 0.6"), i("--bot-message-border",
|
|
8138
|
-
const h =
|
|
8137
|
+
if (s ? i("--bot-message-bg", "var(--black-600)") : i("--bot-message-bg", "var(--white-600)"), s ? i("--card", "0 0% 0% / 0.6") : i("--card", "0 0% 100% / 0.6"), i("--bot-message-border", Lu(s ? "0 0% 100%" : "0 0% 9%")), s ? (i("--foreground", "0 0% 100%"), i("--card-foreground", "0 0% 100%"), i("--popover-foreground", "0 0% 100%"), i("--muted-foreground", "0 0% 70%"), i("--normal-text-color", "var(--white-1000)")) : (i("--foreground", "0 0% 0%"), i("--card-foreground", "0 0% 0%"), i("--popover-foreground", "0 0% 0%"), i("--muted-foreground", "0 0% 30%"), i("--normal-text-color", "var(--black-1000)")), o ? (i("--header-bg", "transparent"), i("--header-stroke", s ? "var(--white-200)" : "var(--black-200)")) : a ? (i("--header-bg", `hsl(${c})`), i("--header-stroke", `hsl(${c} / 0.3)`)) : (i("--header-bg", s ? "var(--black-700)" : "var(--white-700)"), i("--header-stroke", `hsl(${c} / 0.3)`)), o ? (i("--footer-bg", "transparent"), i("--footer-stroke", s ? "var(--white-200)" : "var(--black-200)")) : (i("--footer-bg", s ? "var(--black-700)" : "var(--white-700)"), i("--footer-stroke", `hsl(${c} / 0.3)`)), a && !o) {
|
|
8138
|
+
const h = ja(m) > 0.5;
|
|
8139
8139
|
i("--header-tagline", h ? "var(--white-600)" : "var(--black-600)");
|
|
8140
8140
|
} else
|
|
8141
8141
|
i("--header-tagline", s ? "var(--white-600)" : "var(--black-600)");
|
|
@@ -8145,7 +8145,7 @@ function Qs(e, t) {
|
|
|
8145
8145
|
const p = s ? "white" : "black";
|
|
8146
8146
|
for (const h of [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1e3])
|
|
8147
8147
|
i(`--popover-${h}`, `var(--${p}-${h})`);
|
|
8148
|
-
i("--secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--surface-secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--secondary-foreground", s ? "0 0% 98%" : "0 0% 9%"), i("--muted", s ? "0 0% 15%" : "0 0% 96.1%"), i("--accent", c), i("--accent-foreground", Ir(c)), o ? i("--surface", s ? "0 0% 0% / 0.6" : "0 0% 100% / 0.6") : i("--surface", s ? "0 0% 10%" : "0 0% 94.1%"), i("--surface-tertiary", s ? "0 0% 12%" : "0 0% 98%"), i("--border-subtle", s ? "0 0% 20%" : "0 0% 89.8%"), i("--border-medium", s ? "0 0% 30%" : "0 0% 80%"), i("--text-primary", s ? "0 0% 100%" : "0 0% 3.9%"), i("--text-secondary", s ? "0 0% 70%" : "0 0% 45.1%"), i("--text-tertiary", s ? "0 0% 60%" : "0 0% 63.9%"), i("--text-muted", s ? "0 0% 70%" : "0 0% 45.1%"), i("--border", s ? "0 0% 20%" : "0 0% 89.8%"), i("--input", s ? "0 0% 20%" : "0 0% 89.8%"), o ? (i("--theme-background-image", `url(${t.backgroundImage})`), i("--theme-background-blur",
|
|
8148
|
+
i("--secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--surface-secondary", s ? "0 0% 15%" : "0 0% 96.1%"), i("--secondary-foreground", s ? "0 0% 98%" : "0 0% 9%"), i("--muted", s ? "0 0% 15%" : "0 0% 96.1%"), i("--accent", c), i("--accent-foreground", Ir(c)), o ? i("--surface", s ? "0 0% 0% / 0.6" : "0 0% 100% / 0.6") : i("--surface", s ? "0 0% 10%" : "0 0% 94.1%"), i("--surface-tertiary", s ? "0 0% 12%" : "0 0% 98%"), i("--border-subtle", s ? "0 0% 20%" : "0 0% 89.8%"), i("--border-medium", s ? "0 0% 30%" : "0 0% 80%"), i("--text-primary", s ? "0 0% 100%" : "0 0% 3.9%"), i("--text-secondary", s ? "0 0% 70%" : "0 0% 45.1%"), i("--text-tertiary", s ? "0 0% 60%" : "0 0% 63.9%"), i("--text-muted", s ? "0 0% 70%" : "0 0% 45.1%"), i("--border", s ? "0 0% 20%" : "0 0% 89.8%"), i("--input", s ? "0 0% 20%" : "0 0% 89.8%"), o ? (i("--theme-background-image", `url(${t.backgroundImage})`), i("--theme-background-blur", Ru), i("--theme-background-overlay", ku), u instanceof HTMLElement && u.classList.add("theme-with-background")) : (i("--theme-background-image", "none"), i("--theme-background-blur", "0px"), i("--theme-background-overlay", "rgba(0, 0, 0, 0)"), u instanceof HTMLElement && u.classList.remove("theme-with-background"));
|
|
8149
8149
|
}
|
|
8150
8150
|
function He({ className: e, style: t }) {
|
|
8151
8151
|
return /* @__PURE__ */ l(
|
|
@@ -8165,7 +8165,7 @@ function He({ className: e, style: t }) {
|
|
|
8165
8165
|
function ko() {
|
|
8166
8166
|
return /* @__PURE__ */ l("style", { children: "@keyframes shimmer { 100% { transform: translateX(100%); } }" });
|
|
8167
8167
|
}
|
|
8168
|
-
function
|
|
8168
|
+
function Fu() {
|
|
8169
8169
|
return /* @__PURE__ */ l("div", { className: "px-6 py-3", children: [
|
|
8170
8170
|
/* @__PURE__ */ l(ko, {}),
|
|
8171
8171
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
@@ -8183,7 +8183,7 @@ function Vu() {
|
|
|
8183
8183
|
] })
|
|
8184
8184
|
] });
|
|
8185
8185
|
}
|
|
8186
|
-
function
|
|
8186
|
+
function Vu() {
|
|
8187
8187
|
return /* @__PURE__ */ l("div", { className: "px-3 pb-2 pt-1", children: [
|
|
8188
8188
|
/* @__PURE__ */ l(ko, {}),
|
|
8189
8189
|
/* @__PURE__ */ l(
|
|
@@ -8209,7 +8209,7 @@ function Uu() {
|
|
|
8209
8209
|
)
|
|
8210
8210
|
] });
|
|
8211
8211
|
}
|
|
8212
|
-
function
|
|
8212
|
+
function Uu() {
|
|
8213
8213
|
return /* @__PURE__ */ l("div", { className: "space-y-3 py-2", children: [
|
|
8214
8214
|
/* @__PURE__ */ l(ko, {}),
|
|
8215
8215
|
/* @__PURE__ */ l(He, { className: "h-16 w-3/4 rounded-2xl" }),
|
|
@@ -8217,7 +8217,7 @@ function $u() {
|
|
|
8217
8217
|
/* @__PURE__ */ l(He, { className: "h-16 w-2/3 rounded-2xl" })
|
|
8218
8218
|
] });
|
|
8219
8219
|
}
|
|
8220
|
-
function
|
|
8220
|
+
function $u(e, t = []) {
|
|
8221
8221
|
let n = [];
|
|
8222
8222
|
function r(s, a) {
|
|
8223
8223
|
const i = it(a);
|
|
@@ -8247,9 +8247,9 @@ function zu(e, t = []) {
|
|
|
8247
8247
|
);
|
|
8248
8248
|
};
|
|
8249
8249
|
};
|
|
8250
|
-
return o.scopeName = e, [r,
|
|
8250
|
+
return o.scopeName = e, [r, zu(o, ...t)];
|
|
8251
8251
|
}
|
|
8252
|
-
function
|
|
8252
|
+
function zu(...e) {
|
|
8253
8253
|
const t = e[0];
|
|
8254
8254
|
if (e.length === 1) return t;
|
|
8255
8255
|
const n = () => {
|
|
@@ -8267,7 +8267,7 @@ function Bu(...e) {
|
|
|
8267
8267
|
};
|
|
8268
8268
|
return n.scopeName = t.scopeName, n;
|
|
8269
8269
|
}
|
|
8270
|
-
var
|
|
8270
|
+
var Bu = [
|
|
8271
8271
|
"a",
|
|
8272
8272
|
"button",
|
|
8273
8273
|
"div",
|
|
@@ -8285,19 +8285,19 @@ var ju = [
|
|
|
8285
8285
|
"span",
|
|
8286
8286
|
"svg",
|
|
8287
8287
|
"ul"
|
|
8288
|
-
], Ro =
|
|
8289
|
-
const n = /* @__PURE__ */
|
|
8288
|
+
], Ro = Bu.reduce((e, t) => {
|
|
8289
|
+
const n = /* @__PURE__ */ Va(`Primitive.${t}`), r = K((o, s) => {
|
|
8290
8290
|
const { asChild: a, ...i } = o, c = a ? n : t;
|
|
8291
8291
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: s });
|
|
8292
8292
|
});
|
|
8293
8293
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
8294
8294
|
}, {}), Ar = { exports: {} }, Or = {};
|
|
8295
|
-
const
|
|
8296
|
-
var
|
|
8297
|
-
function
|
|
8298
|
-
if (
|
|
8299
|
-
|
|
8300
|
-
var e =
|
|
8295
|
+
const ju = /* @__PURE__ */ _c(Ji);
|
|
8296
|
+
var Qs;
|
|
8297
|
+
function Hu() {
|
|
8298
|
+
if (Qs) return Or;
|
|
8299
|
+
Qs = 1;
|
|
8300
|
+
var e = ju;
|
|
8301
8301
|
function t(u, p) {
|
|
8302
8302
|
return u === p && (u !== 0 || 1 / u === 1 / p) || u !== u && p !== p;
|
|
8303
8303
|
}
|
|
@@ -8334,27 +8334,27 @@ function Gu() {
|
|
|
8334
8334
|
var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
|
8335
8335
|
return Or.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : m, Or;
|
|
8336
8336
|
}
|
|
8337
|
-
var
|
|
8338
|
-
function
|
|
8339
|
-
return
|
|
8337
|
+
var ei;
|
|
8338
|
+
function Gu() {
|
|
8339
|
+
return ei || (ei = 1, Ar.exports = /* @__PURE__ */ Hu()), Ar.exports;
|
|
8340
8340
|
}
|
|
8341
|
-
var
|
|
8342
|
-
function
|
|
8343
|
-
return
|
|
8344
|
-
|
|
8341
|
+
var Wu = /* @__PURE__ */ Gu();
|
|
8342
|
+
function qu() {
|
|
8343
|
+
return Wu.useSyncExternalStore(
|
|
8344
|
+
Yu,
|
|
8345
8345
|
() => !0,
|
|
8346
8346
|
() => !1
|
|
8347
8347
|
);
|
|
8348
8348
|
}
|
|
8349
|
-
function
|
|
8349
|
+
function Yu() {
|
|
8350
8350
|
return () => {
|
|
8351
8351
|
};
|
|
8352
8352
|
}
|
|
8353
|
-
var Io = "Avatar", [
|
|
8353
|
+
var Io = "Avatar", [Ku] = $u(Io), [Zu, Ha] = Ku(Io), Ga = K(
|
|
8354
8354
|
(e, t) => {
|
|
8355
8355
|
const { __scopeAvatar: n, ...r } = e, [o, s] = U("idle");
|
|
8356
8356
|
return /* @__PURE__ */ l(
|
|
8357
|
-
|
|
8357
|
+
Zu,
|
|
8358
8358
|
{
|
|
8359
8359
|
scope: n,
|
|
8360
8360
|
imageLoadingStatus: o,
|
|
@@ -8364,11 +8364,11 @@ var Io = "Avatar", [Zu] = zu(Io), [Xu, Ga] = Zu(Io), Wa = K(
|
|
|
8364
8364
|
);
|
|
8365
8365
|
}
|
|
8366
8366
|
);
|
|
8367
|
-
|
|
8368
|
-
var
|
|
8367
|
+
Ga.displayName = Io;
|
|
8368
|
+
var Wa = "AvatarImage", qa = K(
|
|
8369
8369
|
(e, t) => {
|
|
8370
8370
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
|
|
8371
|
-
}, ...s } = e, a =
|
|
8371
|
+
}, ...s } = e, a = Ha(Wa, n), i = Xu(r, s), c = bt((d) => {
|
|
8372
8372
|
o(d), a.onImageLoadingStatusChange(d);
|
|
8373
8373
|
});
|
|
8374
8374
|
return zt(() => {
|
|
@@ -8376,10 +8376,10 @@ var qa = "AvatarImage", Ya = K(
|
|
|
8376
8376
|
}, [i, c]), i === "loaded" ? /* @__PURE__ */ l(Ro.img, { ...s, ref: t, src: r }) : null;
|
|
8377
8377
|
}
|
|
8378
8378
|
);
|
|
8379
|
-
|
|
8380
|
-
var
|
|
8379
|
+
qa.displayName = Wa;
|
|
8380
|
+
var Ya = "AvatarFallback", Ka = K(
|
|
8381
8381
|
(e, t) => {
|
|
8382
|
-
const { __scopeAvatar: n, delayMs: r, ...o } = e, s =
|
|
8382
|
+
const { __scopeAvatar: n, delayMs: r, ...o } = e, s = Ha(Ya, n), [a, i] = U(r === void 0);
|
|
8383
8383
|
return $(() => {
|
|
8384
8384
|
if (r !== void 0) {
|
|
8385
8385
|
const c = window.setTimeout(() => i(!0), r);
|
|
@@ -8388,16 +8388,16 @@ var Ka = "AvatarFallback", Za = K(
|
|
|
8388
8388
|
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(Ro.span, { ...o, ref: t }) : null;
|
|
8389
8389
|
}
|
|
8390
8390
|
);
|
|
8391
|
-
|
|
8392
|
-
function
|
|
8391
|
+
Ka.displayName = Ya;
|
|
8392
|
+
function ti(e, t) {
|
|
8393
8393
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
8394
8394
|
}
|
|
8395
|
-
function
|
|
8396
|
-
const r =
|
|
8397
|
-
() =>
|
|
8395
|
+
function Xu(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
8396
|
+
const r = qu(), o = G(null), s = r ? (o.current || (o.current = new window.Image()), o.current) : null, [a, i] = U(
|
|
8397
|
+
() => ti(s, e)
|
|
8398
8398
|
);
|
|
8399
8399
|
return zt(() => {
|
|
8400
|
-
i(
|
|
8400
|
+
i(ti(s, e));
|
|
8401
8401
|
}, [s, e]), zt(() => {
|
|
8402
8402
|
const c = (u) => () => {
|
|
8403
8403
|
i(u);
|
|
@@ -8409,9 +8409,9 @@ function Ju(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
8409
8409
|
};
|
|
8410
8410
|
}, [s, n, t]), a;
|
|
8411
8411
|
}
|
|
8412
|
-
var
|
|
8413
|
-
const
|
|
8414
|
-
|
|
8412
|
+
var Za = Ga, Xa = qa, Ja = Ka;
|
|
8413
|
+
const Qa = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8414
|
+
Za,
|
|
8415
8415
|
{
|
|
8416
8416
|
ref: n,
|
|
8417
8417
|
className: D(
|
|
@@ -8421,18 +8421,18 @@ const el = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8421
8421
|
...t
|
|
8422
8422
|
}
|
|
8423
8423
|
));
|
|
8424
|
-
|
|
8425
|
-
const
|
|
8426
|
-
|
|
8424
|
+
Qa.displayName = Za.displayName;
|
|
8425
|
+
const Ju = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8426
|
+
Xa,
|
|
8427
8427
|
{
|
|
8428
8428
|
ref: n,
|
|
8429
8429
|
className: D("aspect-square h-full w-full", e),
|
|
8430
8430
|
...t
|
|
8431
8431
|
}
|
|
8432
8432
|
));
|
|
8433
|
-
|
|
8434
|
-
const
|
|
8435
|
-
|
|
8433
|
+
Ju.displayName = Xa.displayName;
|
|
8434
|
+
const el = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
8435
|
+
Ja,
|
|
8436
8436
|
{
|
|
8437
8437
|
ref: n,
|
|
8438
8438
|
className: D(
|
|
@@ -8442,29 +8442,29 @@ const tl = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8442
8442
|
...t
|
|
8443
8443
|
}
|
|
8444
8444
|
));
|
|
8445
|
-
|
|
8446
|
-
const
|
|
8447
|
-
function
|
|
8448
|
-
return /* @__PURE__ */ l(
|
|
8445
|
+
el.displayName = Ja.displayName;
|
|
8446
|
+
const tl = it(!1);
|
|
8447
|
+
function Qu({ enabled: e, children: t }) {
|
|
8448
|
+
return /* @__PURE__ */ l(tl.Provider, { value: e, children: t });
|
|
8449
8449
|
}
|
|
8450
|
-
function
|
|
8451
|
-
return ct(
|
|
8450
|
+
function eh() {
|
|
8451
|
+
return ct(tl);
|
|
8452
8452
|
}
|
|
8453
|
-
const
|
|
8454
|
-
function
|
|
8453
|
+
const nl = "(max-width: 768px), (pointer: coarse)", rl = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;
|
|
8454
|
+
function th() {
|
|
8455
8455
|
if (typeof window > "u") return !1;
|
|
8456
|
-
const e = window.matchMedia?.(
|
|
8456
|
+
const e = window.matchMedia?.(nl)?.matches ?? !1, t = rl.test(navigator?.userAgent ?? "");
|
|
8457
8457
|
return e || t;
|
|
8458
8458
|
}
|
|
8459
|
-
function
|
|
8460
|
-
const [e, t] = U(
|
|
8459
|
+
function ol() {
|
|
8460
|
+
const [e, t] = U(th);
|
|
8461
8461
|
return $(() => {
|
|
8462
8462
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
8463
|
-
const n = window.matchMedia(
|
|
8463
|
+
const n = window.matchMedia(nl), r = rl.test(navigator?.userAgent ?? ""), o = () => t(n.matches || r);
|
|
8464
8464
|
return o(), n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
8465
8465
|
}, []), e;
|
|
8466
8466
|
}
|
|
8467
|
-
function
|
|
8467
|
+
function nh({
|
|
8468
8468
|
onClose: e,
|
|
8469
8469
|
showCloseButton: t = !0,
|
|
8470
8470
|
title: n,
|
|
@@ -8476,7 +8476,7 @@ function rh({
|
|
|
8476
8476
|
headerTinted: c = !1,
|
|
8477
8477
|
onToggleDisplayMode: d
|
|
8478
8478
|
}) {
|
|
8479
|
-
const m =
|
|
8479
|
+
const m = ol(), p = eh() && !m, h = ne((v) => v.displayMode) === "full", _ = ne((v) => v.initialDisplayMode) === "full", y = (h ? !1 : c) ? "text-primary-foreground" : "text-foreground", f = ne((v) => v.connectionStatus), [g, E] = U(!1), N = G(null), w = de(() => i === "connected" || i === "connecting" || i === "listening" || i === "speaking" || i === "thinking", [i]), C = ae(() => {
|
|
8480
8480
|
g || (E(!0), N.current && clearTimeout(N.current), N.current = setTimeout(() => {
|
|
8481
8481
|
N.current = null, E(!1);
|
|
8482
8482
|
}, 6e3), a());
|
|
@@ -8515,7 +8515,7 @@ function rh({
|
|
|
8515
8515
|
return /* @__PURE__ */ l("div", { className: "px-6 py-3", children: /* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
8516
8516
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
8517
8517
|
/* @__PURE__ */ l("div", { className: "relative flex-shrink-0", children: [
|
|
8518
|
-
/* @__PURE__ */ l(
|
|
8518
|
+
/* @__PURE__ */ l(Qa, { className: "w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0", children: /* @__PURE__ */ l(el, { className: "text-primary-foreground font-bold text-lg bg-transparent", children: s ? /* @__PURE__ */ l(
|
|
8519
8519
|
"img",
|
|
8520
8520
|
{
|
|
8521
8521
|
src: s,
|
|
@@ -8557,7 +8557,7 @@ function rh({
|
|
|
8557
8557
|
onClick: C,
|
|
8558
8558
|
disabled: g,
|
|
8559
8559
|
className: D("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none", y),
|
|
8560
|
-
children: /* @__PURE__ */ l(
|
|
8560
|
+
children: /* @__PURE__ */ l($a, { className: "w-5 h-5" })
|
|
8561
8561
|
}
|
|
8562
8562
|
),
|
|
8563
8563
|
p && /* @__PURE__ */ l(
|
|
@@ -8569,7 +8569,7 @@ function rh({
|
|
|
8569
8569
|
size: "icon",
|
|
8570
8570
|
title: h ? "Exit fullscreen" : "Enter fullscreen",
|
|
8571
8571
|
className: D("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200", y),
|
|
8572
|
-
children: h ? /* @__PURE__ */ l(
|
|
8572
|
+
children: h ? /* @__PURE__ */ l(Kd, { className: "w-8 h-8" }) : /* @__PURE__ */ l(Gd, { className: "w-8 h-8" })
|
|
8573
8573
|
}
|
|
8574
8574
|
),
|
|
8575
8575
|
(t || !_) && /* @__PURE__ */ l(
|
|
@@ -8599,7 +8599,7 @@ const Kr = K(({ className: e, ...t }, n) => /* @__PURE__ */ l(
|
|
|
8599
8599
|
}
|
|
8600
8600
|
));
|
|
8601
8601
|
Kr.displayName = "Textarea";
|
|
8602
|
-
function
|
|
8602
|
+
function ni({
|
|
8603
8603
|
file: e,
|
|
8604
8604
|
onRemove: t,
|
|
8605
8605
|
isPreview: n = !0,
|
|
@@ -8624,7 +8624,7 @@ function ri({
|
|
|
8624
8624
|
{
|
|
8625
8625
|
className: `relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${n ? "hover:bg-neutral-50" : ""} ${r}`,
|
|
8626
8626
|
children: [
|
|
8627
|
-
/* @__PURE__ */ l("div", { className: `flex-shrink-0 ${m()}`, children: /* @__PURE__ */ l(
|
|
8627
|
+
/* @__PURE__ */ l("div", { className: `flex-shrink-0 ${m()}`, children: /* @__PURE__ */ l(jd, { className: "h-5 w-5" }) }),
|
|
8628
8628
|
/* @__PURE__ */ l("div", { className: "flex-1 min-w-0 max-w-[200px]", children: [
|
|
8629
8629
|
e?.name && /* @__PURE__ */ l("div", { className: "text-sm font-medium text-[var(--color-foreground)] truncate", children: e.name }),
|
|
8630
8630
|
e?.size && /* @__PURE__ */ l("div", { className: "text-xs text-[var(--color-muted-foreground)]", children: u(e.size) })
|
|
@@ -8679,7 +8679,7 @@ function Zr({
|
|
|
8679
8679
|
s.map((a) => {
|
|
8680
8680
|
const i = e.indexOf(a);
|
|
8681
8681
|
return /* @__PURE__ */ l(
|
|
8682
|
-
|
|
8682
|
+
ni,
|
|
8683
8683
|
{
|
|
8684
8684
|
file: a,
|
|
8685
8685
|
onRemove: t ? () => t(i) : void 0,
|
|
@@ -8691,7 +8691,7 @@ function Zr({
|
|
|
8691
8691
|
o.length > 0 && /* @__PURE__ */ l("div", { className: "flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide", children: o.map((a) => {
|
|
8692
8692
|
const i = e.indexOf(a);
|
|
8693
8693
|
return /* @__PURE__ */ l(
|
|
8694
|
-
|
|
8694
|
+
ni,
|
|
8695
8695
|
{
|
|
8696
8696
|
file: a,
|
|
8697
8697
|
onRemove: t ? () => t(i) : void 0,
|
|
@@ -8722,7 +8722,7 @@ const xn = ({ className: e }) => /* @__PURE__ */ l("svg", { width: "17", height:
|
|
|
8722
8722
|
}
|
|
8723
8723
|
);
|
|
8724
8724
|
Ao.displayName = "Input";
|
|
8725
|
-
const
|
|
8725
|
+
const rh = () => /* @__PURE__ */ l(
|
|
8726
8726
|
"svg",
|
|
8727
8727
|
{
|
|
8728
8728
|
width: "16",
|
|
@@ -9114,12 +9114,12 @@ const oh = () => /* @__PURE__ */ l(
|
|
|
9114
9114
|
/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", { id: "circleClip", children: /* @__PURE__ */ l("circle", { cx: "8", cy: "8", r: "8" }) }) })
|
|
9115
9115
|
]
|
|
9116
9116
|
}
|
|
9117
|
-
),
|
|
9118
|
-
function
|
|
9117
|
+
), oh = "+91";
|
|
9118
|
+
function sh(e) {
|
|
9119
9119
|
const t = e.replace(/\D/g, ""), n = t.slice(0, 5), r = t.slice(5, 10);
|
|
9120
9120
|
return r ? `${n} ${r}` : n;
|
|
9121
9121
|
}
|
|
9122
|
-
function
|
|
9122
|
+
function ih({
|
|
9123
9123
|
value: e,
|
|
9124
9124
|
onChange: t,
|
|
9125
9125
|
onKeyDown: n,
|
|
@@ -9146,8 +9146,8 @@ function ah({
|
|
|
9146
9146
|
fontSize: s ? "16px" : "14px"
|
|
9147
9147
|
},
|
|
9148
9148
|
children: [
|
|
9149
|
-
/* @__PURE__ */ l(
|
|
9150
|
-
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-foreground", children:
|
|
9149
|
+
/* @__PURE__ */ l(rh, {}),
|
|
9150
|
+
/* @__PURE__ */ l("span", { className: "text-sm font-medium text-foreground", children: oh }),
|
|
9151
9151
|
/* @__PURE__ */ l(No, { className: "h-4 w-4 text-muted-foreground", "aria-hidden": !0 })
|
|
9152
9152
|
]
|
|
9153
9153
|
}
|
|
@@ -9166,7 +9166,7 @@ function ah({
|
|
|
9166
9166
|
{
|
|
9167
9167
|
type: "tel",
|
|
9168
9168
|
autoComplete: "tel-national",
|
|
9169
|
-
value:
|
|
9169
|
+
value: sh(e),
|
|
9170
9170
|
onChange: t,
|
|
9171
9171
|
onKeyDown: n,
|
|
9172
9172
|
placeholder: "88888 88888",
|
|
@@ -9205,8 +9205,8 @@ function ah({
|
|
|
9205
9205
|
] })
|
|
9206
9206
|
] });
|
|
9207
9207
|
}
|
|
9208
|
-
const
|
|
9209
|
-
function
|
|
9208
|
+
const ah = 6, lh = 30, ch = (e, t) => e.disabled === t.disabled && e.isMobile === t.isMobile && e.validation?.pattern === t.validation?.pattern && e.validation?.minLength === t.validation?.minLength && e.validation?.maxLength === t.validation?.maxLength && e.serverMessage === t.serverMessage && e.theme?.textColor === t.theme?.textColor;
|
|
9209
|
+
function dh({
|
|
9210
9210
|
disabled: e,
|
|
9211
9211
|
isMobile: t,
|
|
9212
9212
|
validation: n,
|
|
@@ -9214,7 +9214,7 @@ function uh({
|
|
|
9214
9214
|
onResendOtp: o,
|
|
9215
9215
|
serverMessage: s
|
|
9216
9216
|
}) {
|
|
9217
|
-
const a = G([]), [i, c] = U(0), [d, m] = U(!1), u = G(!1), p = G(r), h = G(o), _ = n?.maxLength ??
|
|
9217
|
+
const a = G([]), [i, c] = U(0), [d, m] = U(!1), u = G(!1), p = G(r), h = G(o), _ = n?.maxLength ?? ah, b = de(
|
|
9218
9218
|
() => new RegExp(n?.pattern ?? `^\\d{${_}}$`),
|
|
9219
9219
|
[n?.pattern, _]
|
|
9220
9220
|
);
|
|
@@ -9291,7 +9291,7 @@ function uh({
|
|
|
9291
9291
|
if (!(i > 0 || e)) {
|
|
9292
9292
|
for (const I of a.current)
|
|
9293
9293
|
I && (I.value = "");
|
|
9294
|
-
u.current = !1, m(!1), a.current[0]?.focus(), h.current?.(), c(
|
|
9294
|
+
u.current = !1, m(!1), a.current[0]?.focus(), h.current?.(), c(lh);
|
|
9295
9295
|
}
|
|
9296
9296
|
}, [e, i]);
|
|
9297
9297
|
$(() => {
|
|
@@ -9373,8 +9373,8 @@ function uh({
|
|
|
9373
9373
|
] })
|
|
9374
9374
|
] }) });
|
|
9375
9375
|
}
|
|
9376
|
-
const
|
|
9377
|
-
function
|
|
9376
|
+
const uh = fo(dh, ch);
|
|
9377
|
+
function hh({
|
|
9378
9378
|
value: e,
|
|
9379
9379
|
onChange: t,
|
|
9380
9380
|
onKeyDown: n,
|
|
@@ -9437,8 +9437,8 @@ function fh({
|
|
|
9437
9437
|
)
|
|
9438
9438
|
] });
|
|
9439
9439
|
}
|
|
9440
|
-
const
|
|
9441
|
-
function
|
|
9440
|
+
const ri = 10, fh = 10, mh = /^[6-9][0-9]{9}$/, ph = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
9441
|
+
function gh({
|
|
9442
9442
|
elicitationEntry: e,
|
|
9443
9443
|
value: t,
|
|
9444
9444
|
onChange: n,
|
|
@@ -9459,9 +9459,9 @@ function _h({
|
|
|
9459
9459
|
if (!_ && !b && !y)
|
|
9460
9460
|
return null;
|
|
9461
9461
|
const f = p?.trim() ?? "", g = (v) => {
|
|
9462
|
-
const x = v.target.value.replace(/\D/g, ""), O = m ??
|
|
9462
|
+
const x = v.target.value.replace(/\D/g, ""), O = m ?? ri;
|
|
9463
9463
|
n(x.slice(0, O));
|
|
9464
|
-
}, E = t.length === (d ??
|
|
9464
|
+
}, E = t.length === (d ?? fh) && (c ? new RegExp(c).test(t) : mh.test(t)), N = c ? new RegExp(c).test(t) : ph.test(t), w = () => {
|
|
9465
9465
|
!N || r || a({ toolCalled: !0, tool_key: h });
|
|
9466
9466
|
}, C = (v) => {
|
|
9467
9467
|
v.key === "Enter" && (v.preventDefault(), w());
|
|
@@ -9470,7 +9470,7 @@ function _h({
|
|
|
9470
9470
|
};
|
|
9471
9471
|
return /* @__PURE__ */ l(be, { children: [
|
|
9472
9472
|
_ && /* @__PURE__ */ l(
|
|
9473
|
-
|
|
9473
|
+
ih,
|
|
9474
9474
|
{
|
|
9475
9475
|
value: t,
|
|
9476
9476
|
onChange: g,
|
|
@@ -9483,11 +9483,11 @@ function _h({
|
|
|
9483
9483
|
isMobileValid: E,
|
|
9484
9484
|
theme: o,
|
|
9485
9485
|
isMobile: s,
|
|
9486
|
-
maxLength: m ??
|
|
9486
|
+
maxLength: m ?? ri
|
|
9487
9487
|
}
|
|
9488
9488
|
),
|
|
9489
9489
|
b && /* @__PURE__ */ l(
|
|
9490
|
-
|
|
9490
|
+
uh,
|
|
9491
9491
|
{
|
|
9492
9492
|
disabled: r,
|
|
9493
9493
|
isMobile: s,
|
|
@@ -9503,7 +9503,7 @@ function _h({
|
|
|
9503
9503
|
}
|
|
9504
9504
|
),
|
|
9505
9505
|
y && /* @__PURE__ */ l(
|
|
9506
|
-
|
|
9506
|
+
hh,
|
|
9507
9507
|
{
|
|
9508
9508
|
value: t,
|
|
9509
9509
|
onChange: (v) => n(v.target.value),
|
|
@@ -9518,8 +9518,8 @@ function _h({
|
|
|
9518
9518
|
)
|
|
9519
9519
|
] });
|
|
9520
9520
|
}
|
|
9521
|
-
const
|
|
9522
|
-
function
|
|
9521
|
+
const oi = ({ className: e }) => /* @__PURE__ */ l("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: e, children: /* @__PURE__ */ l("path", { d: "M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z", fill: "currentColor" }) });
|
|
9522
|
+
function _h({
|
|
9523
9523
|
value: e,
|
|
9524
9524
|
onChange: t,
|
|
9525
9525
|
onSend: n,
|
|
@@ -9575,11 +9575,11 @@ function Eh({
|
|
|
9575
9575
|
),
|
|
9576
9576
|
children: [
|
|
9577
9577
|
/* @__PURE__ */ l("span", { children: "Start new chat" }),
|
|
9578
|
-
/* @__PURE__ */ l(
|
|
9578
|
+
/* @__PURE__ */ l($a, { className: "w-5 h-5", "aria-hidden": !0 })
|
|
9579
9579
|
]
|
|
9580
9580
|
}
|
|
9581
9581
|
) }) : /* @__PURE__ */ l(be, { children: E ? /* @__PURE__ */ l(
|
|
9582
|
-
|
|
9582
|
+
gh,
|
|
9583
9583
|
{
|
|
9584
9584
|
elicitationEntry: N,
|
|
9585
9585
|
value: e,
|
|
@@ -9683,7 +9683,7 @@ function Eh({
|
|
|
9683
9683
|
),
|
|
9684
9684
|
title: "Attach file",
|
|
9685
9685
|
"aria-label": "Attach file",
|
|
9686
|
-
children: /* @__PURE__ */ l(
|
|
9686
|
+
children: /* @__PURE__ */ l(Ys, { className: "w-6 h-6", strokeWidth: 1.5 })
|
|
9687
9687
|
}
|
|
9688
9688
|
) }),
|
|
9689
9689
|
/* @__PURE__ */ l(
|
|
@@ -9705,7 +9705,7 @@ function Eh({
|
|
|
9705
9705
|
),
|
|
9706
9706
|
title: "Stop recording",
|
|
9707
9707
|
"aria-label": "Stop recording",
|
|
9708
|
-
children: /* @__PURE__ */ l(
|
|
9708
|
+
children: /* @__PURE__ */ l(Ks, { className: "w-4 h-4" })
|
|
9709
9709
|
}
|
|
9710
9710
|
) : v && /* @__PURE__ */ l(
|
|
9711
9711
|
ce,
|
|
@@ -9721,7 +9721,7 @@ function Eh({
|
|
|
9721
9721
|
),
|
|
9722
9722
|
title: "Start recording",
|
|
9723
9723
|
"aria-label": "Start recording",
|
|
9724
|
-
children: /* @__PURE__ */ l(
|
|
9724
|
+
children: /* @__PURE__ */ l(qs, { className: "w-6 h-6", strokeWidth: 1.5 })
|
|
9725
9725
|
}
|
|
9726
9726
|
),
|
|
9727
9727
|
O && !a ? /* @__PURE__ */ l(
|
|
@@ -9751,7 +9751,7 @@ function Eh({
|
|
|
9751
9751
|
className: "h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",
|
|
9752
9752
|
title: "Enter voice mode",
|
|
9753
9753
|
"aria-label": "Enter voice mode",
|
|
9754
|
-
children: /* @__PURE__ */ l(
|
|
9754
|
+
children: /* @__PURE__ */ l(oi, { className: "w-4 h-4 text-primary-foreground" })
|
|
9755
9755
|
}
|
|
9756
9756
|
)
|
|
9757
9757
|
]
|
|
@@ -9841,7 +9841,7 @@ function Eh({
|
|
|
9841
9841
|
),
|
|
9842
9842
|
title: "Attach file",
|
|
9843
9843
|
"aria-label": "Attach file",
|
|
9844
|
-
children: /* @__PURE__ */ l(
|
|
9844
|
+
children: /* @__PURE__ */ l(Ys, { className: "w-5 h-5", strokeWidth: 1.5 })
|
|
9845
9845
|
}
|
|
9846
9846
|
) }),
|
|
9847
9847
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
@@ -9858,7 +9858,7 @@ function Eh({
|
|
|
9858
9858
|
),
|
|
9859
9859
|
title: "Stop recording",
|
|
9860
9860
|
"aria-label": "Stop recording",
|
|
9861
|
-
children: /* @__PURE__ */ l(
|
|
9861
|
+
children: /* @__PURE__ */ l(Ks, { className: "w-4 h-4" })
|
|
9862
9862
|
}
|
|
9863
9863
|
) : O ? /* @__PURE__ */ l(
|
|
9864
9864
|
ce,
|
|
@@ -9887,7 +9887,7 @@ function Eh({
|
|
|
9887
9887
|
className: D("h-10 w-10 shrink-0", P),
|
|
9888
9888
|
title: "Start recording",
|
|
9889
9889
|
"aria-label": "Start recording",
|
|
9890
|
-
children: /* @__PURE__ */ l(
|
|
9890
|
+
children: /* @__PURE__ */ l(qs, { className: "w-5 h-5", strokeWidth: 1.5 })
|
|
9891
9891
|
}
|
|
9892
9892
|
),
|
|
9893
9893
|
v && x && !a && /* @__PURE__ */ l(
|
|
@@ -9901,7 +9901,7 @@ function Eh({
|
|
|
9901
9901
|
className: "h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",
|
|
9902
9902
|
title: "Enter voice mode",
|
|
9903
9903
|
"aria-label": "Enter voice mode",
|
|
9904
|
-
children: /* @__PURE__ */ l(
|
|
9904
|
+
children: /* @__PURE__ */ l(oi, { className: "w-4 h-4 text-primary-foreground" })
|
|
9905
9905
|
}
|
|
9906
9906
|
)
|
|
9907
9907
|
] })
|
|
@@ -9911,7 +9911,7 @@ function Eh({
|
|
|
9911
9911
|
)
|
|
9912
9912
|
] }) });
|
|
9913
9913
|
}
|
|
9914
|
-
function
|
|
9914
|
+
function sl({
|
|
9915
9915
|
isOpen: e,
|
|
9916
9916
|
onClose: t,
|
|
9917
9917
|
showCloseButton: n = !0,
|
|
@@ -9941,7 +9941,7 @@ function il({
|
|
|
9941
9941
|
x === "full" ? "Switched to fullscreen mode" : x === "widget" ? "Switched to widget mode" : "Switched to mobile layout"
|
|
9942
9942
|
), I.current = x;
|
|
9943
9943
|
}, [x]);
|
|
9944
|
-
const P = de(() =>
|
|
9944
|
+
const P = de(() => Au(E), [E]), { setIsMobile: H } = ne((A) => A), j = !!y, L = async (A) => {
|
|
9945
9945
|
if (!(!p?.onSend || T)) {
|
|
9946
9946
|
S(!0);
|
|
9947
9947
|
try {
|
|
@@ -9954,7 +9954,7 @@ function il({
|
|
|
9954
9954
|
$(() => {
|
|
9955
9955
|
if (!v.current) return;
|
|
9956
9956
|
const A = x === "full" ? { ...P, headerTinted: !1 } : P;
|
|
9957
|
-
|
|
9957
|
+
Js(v.current, A), x === "full" && !P.backgroundImage ? (v.current.style.setProperty("--background", "0 0% 100%"), v.current.style.setProperty("--widget-bg-overlay", "transparent")) : (v.current.style.removeProperty("--background"), v.current.style.removeProperty("--widget-bg-overlay"), Js(v.current, P));
|
|
9958
9958
|
}, [P, x]), $(() => {
|
|
9959
9959
|
const A = () => {
|
|
9960
9960
|
const Y = window?.innerWidth ?? 0, ue = navigator?.userAgent?.toLowerCase() ?? "", ge = Y < 768 || /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(
|
|
@@ -10030,7 +10030,7 @@ function il({
|
|
|
10030
10030
|
};
|
|
10031
10031
|
}
|
|
10032
10032
|
}, [e, w]);
|
|
10033
|
-
const { position: pe, elementRef: le } =
|
|
10033
|
+
const { position: pe, elementRef: le } = Nu({
|
|
10034
10034
|
enabled: e && !w && !O
|
|
10035
10035
|
});
|
|
10036
10036
|
$(() => {
|
|
@@ -10225,8 +10225,8 @@ function il({
|
|
|
10225
10225
|
...!w && !O && {
|
|
10226
10226
|
cursor: e ? "grab" : "default"
|
|
10227
10227
|
}
|
|
10228
|
-
}, children: /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(
|
|
10229
|
-
|
|
10228
|
+
}, children: /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Fu, {}), children: /* @__PURE__ */ l(
|
|
10229
|
+
nh,
|
|
10230
10230
|
{
|
|
10231
10231
|
onClose: t,
|
|
10232
10232
|
showCloseButton: n,
|
|
@@ -10241,8 +10241,8 @@ function il({
|
|
|
10241
10241
|
}
|
|
10242
10242
|
) }) }),
|
|
10243
10243
|
(() => {
|
|
10244
|
-
const A = O && !!i, Y = p && g === M.VOICE_AGENT_STATE.IDLE ? /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(
|
|
10245
|
-
|
|
10244
|
+
const A = O && !!i, Y = p && g === M.VOICE_AGENT_STATE.IDLE ? /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Vu, {}), children: /* @__PURE__ */ l(
|
|
10245
|
+
_h,
|
|
10246
10246
|
{
|
|
10247
10247
|
value: p.value,
|
|
10248
10248
|
onChange: p.onChange,
|
|
@@ -10342,7 +10342,7 @@ function il({
|
|
|
10342
10342
|
}
|
|
10343
10343
|
);
|
|
10344
10344
|
}
|
|
10345
|
-
function
|
|
10345
|
+
function Eh({
|
|
10346
10346
|
title: e,
|
|
10347
10347
|
description: t,
|
|
10348
10348
|
suggestions: n,
|
|
@@ -10431,7 +10431,7 @@ function bh({
|
|
|
10431
10431
|
] })
|
|
10432
10432
|
] });
|
|
10433
10433
|
}
|
|
10434
|
-
function
|
|
10434
|
+
function il() {
|
|
10435
10435
|
const [e, t] = U(
|
|
10436
10436
|
typeof navigator < "u" ? navigator.onLine : !0
|
|
10437
10437
|
);
|
|
@@ -10442,24 +10442,12 @@ function al() {
|
|
|
10442
10442
|
};
|
|
10443
10443
|
}, []), { isOnline: e };
|
|
10444
10444
|
}
|
|
10445
|
-
const
|
|
10445
|
+
const al = (e) => Object.fromEntries(
|
|
10446
10446
|
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
10447
|
-
),
|
|
10447
|
+
), gm = (e) => e ? e.split(" ").map((t) => t[0]).slice(0, 2).join("").toUpperCase() : "DR", _m = (e) => {
|
|
10448
10448
|
const t = new Date(e), n = t.toLocaleDateString(void 0, { weekday: "short" }), r = t.toLocaleDateString(void 0, { day: "2-digit" });
|
|
10449
10449
|
return { weekday: n, dayNum: r };
|
|
10450
|
-
},
|
|
10451
|
-
if (!e) return t;
|
|
10452
|
-
if (!t) return e;
|
|
10453
|
-
const n = {
|
|
10454
|
-
...e.tool_result || {},
|
|
10455
|
-
...t.tool_result || {}
|
|
10456
|
-
};
|
|
10457
|
-
return {
|
|
10458
|
-
...e,
|
|
10459
|
-
...Oo(t),
|
|
10460
|
-
...Object.keys(n).length ? { tool_result: n } : {}
|
|
10461
|
-
};
|
|
10462
|
-
}, yh = (e = [], t = []) => {
|
|
10450
|
+
}, bh = (e = [], t = []) => {
|
|
10463
10451
|
if (!e.length) return t;
|
|
10464
10452
|
if (!t.length) return e;
|
|
10465
10453
|
const n = e.map((r) => ({ ...r }));
|
|
@@ -10471,14 +10459,13 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10471
10459
|
const s = n[o];
|
|
10472
10460
|
n[o] = {
|
|
10473
10461
|
...s,
|
|
10474
|
-
...
|
|
10475
|
-
slots: r.slots ?? s.slots
|
|
10476
|
-
cta: ll(s.cta, r.cta)
|
|
10462
|
+
...al(r),
|
|
10463
|
+
slots: r.slots ?? s.slots
|
|
10477
10464
|
};
|
|
10478
10465
|
}
|
|
10479
10466
|
}
|
|
10480
10467
|
return n;
|
|
10481
|
-
},
|
|
10468
|
+
}, yh = (e = [], t = []) => {
|
|
10482
10469
|
if (!e.length) return t;
|
|
10483
10470
|
if (!t.length) return e;
|
|
10484
10471
|
const n = e.map((r) => ({ ...r }));
|
|
@@ -10490,16 +10477,15 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10490
10477
|
const s = n[o];
|
|
10491
10478
|
n[o] = {
|
|
10492
10479
|
...s,
|
|
10493
|
-
...
|
|
10494
|
-
availability:
|
|
10495
|
-
cta: ll(s.cta, r.cta)
|
|
10480
|
+
...al(r),
|
|
10481
|
+
availability: bh(s.availability, r.availability)
|
|
10496
10482
|
};
|
|
10497
10483
|
}
|
|
10498
10484
|
}
|
|
10499
10485
|
return n;
|
|
10500
|
-
},
|
|
10486
|
+
}, si = (e) => !!e && Array.isArray(e.doctors), vh = (e, t, n) => e ? t ? n !== M.SYNAPSE_COMPONENTS.DOCTOR_CARD ? t : !si(e) || !si(t) ? e : {
|
|
10501
10487
|
...t,
|
|
10502
|
-
doctors:
|
|
10488
|
+
doctors: yh(e.doctors, t.doctors),
|
|
10503
10489
|
doctor_details: {
|
|
10504
10490
|
...e.doctor_details || {},
|
|
10505
10491
|
...t.doctor_details || {}
|
|
@@ -10507,7 +10493,7 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10507
10493
|
} : e : t, pt = (e) => {
|
|
10508
10494
|
const t = e;
|
|
10509
10495
|
return t?.message ? t.error?.msg || t.message : e instanceof Error ? e.message : "An unexpected error occurred";
|
|
10510
|
-
},
|
|
10496
|
+
}, Sh = ({
|
|
10511
10497
|
environment: e,
|
|
10512
10498
|
connectionType: t,
|
|
10513
10499
|
baseUrl: n,
|
|
@@ -10516,7 +10502,7 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10516
10502
|
authToken: s
|
|
10517
10503
|
// onInlineText,
|
|
10518
10504
|
}) => {
|
|
10519
|
-
const [a, i] = U([]), c = G([]), [d, m] = U(!1), u = G(0), [p, h] = U(!1), [_, b] = U([]), y = G(null), f =
|
|
10505
|
+
const [a, i] = U([]), c = G([]), [d, m] = U(!1), u = G(0), [p, h] = U(!1), [_, b] = U([]), y = G(null), f = _u(), g = G(null), { isOnline: E } = il(), N = G(!1), w = ne((R) => R.agentId), C = ne((R) => R.sessionId), T = ne((R) => R.sessionToken), S = ne((R) => R.isStreaming), v = ne((R) => R.isWaitingForResponse), x = ne((R) => R.initialMessage), O = ne((R) => R.userId), I = ne((R) => R.fileUploadPerSession), {
|
|
10520
10506
|
setSessionId: z,
|
|
10521
10507
|
setSessionToken: oe,
|
|
10522
10508
|
setError: P,
|
|
@@ -10696,7 +10682,7 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10696
10682
|
if (!k?.messageId || !k?.data || !k?.data?.details?.component || !k?.data?.tool_id)
|
|
10697
10683
|
return;
|
|
10698
10684
|
v && le(!1);
|
|
10699
|
-
const { messageId: B, data: q } = k, te = q.tool_id, re = `${B}::${te}`, Me = ne.getState().elicitationState[re], ze = q.details?.component, Ze = k?.data?.details?._meta?.tool_result, se = q.details?.input, Q =
|
|
10685
|
+
const { messageId: B, data: q } = k, te = q.tool_id, re = `${B}::${te}`, Me = ne.getState().elicitationState[re], ze = q.details?.component, Ze = k?.data?.details?._meta?.tool_result, se = q.details?.input, Q = vh(Me?.ui_input, se, ze);
|
|
10700
10686
|
let Ce = k.data.details?._meta?.disp_toast_msg;
|
|
10701
10687
|
const tt = q?.details?._meta?.schema?.required || [];
|
|
10702
10688
|
switch (q?.details?.status) {
|
|
@@ -10731,7 +10717,7 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10731
10717
|
// disabled: !isActiveComponent(component),
|
|
10732
10718
|
disabled: !0,
|
|
10733
10719
|
//Oce BE changes for messsage id is done, we will change this
|
|
10734
|
-
active:
|
|
10720
|
+
active: Cd(ze),
|
|
10735
10721
|
//to continue tool calls
|
|
10736
10722
|
messageId: B,
|
|
10737
10723
|
component: ze,
|
|
@@ -10966,13 +10952,13 @@ const Oo = (e) => Object.fromEntries(
|
|
|
10966
10952
|
Xt !== void 0 && (ve[Ee] = Xt);
|
|
10967
10953
|
} else xe.length === 1 && (ve[Ee] = R);
|
|
10968
10954
|
return ve;
|
|
10969
|
-
}, {}), Dn = ie.mcp_meta_fields?.reduce((ve, Ee) => (xe.includes(Ee) ? ve[Ee] = nt[Ee] : ie.server_input?.[Ee] && (ve[Ee] = ie.server_input[Ee]), re && !ve.is_resend && (ve.is_resend = re), ve), {}),
|
|
10970
|
-
const Xt = !Object.keys(Dn || {})?.includes(Ee),
|
|
10971
|
-
return (re ? Xt &&
|
|
10972
|
-
}, {}),
|
|
10973
|
-
...
|
|
10955
|
+
}, {}), Dn = ie.mcp_meta_fields?.reduce((ve, Ee) => (xe.includes(Ee) ? ve[Ee] = nt[Ee] : ie.server_input?.[Ee] && (ve[Ee] = ie.server_input[Ee]), re && !ve.is_resend && (ve.is_resend = re), ve), {}), El = Object.keys(ie.server_input || {})?.reduce((ve, Ee) => {
|
|
10956
|
+
const Xt = !Object.keys(Dn || {})?.includes(Ee), Fo = !!ie.server_input?.[Ee];
|
|
10957
|
+
return (re ? Xt && Fo : Xt && ie.required?.includes(Ee) && Fo) && (ve[Ee] = ie.server_input?.[Ee]), ve;
|
|
10958
|
+
}, {}), bl = re ? {} : (ie.required || xe).reduce((ve, Ee) => (Object.keys(Dn || {}).includes(Ee) || (nt[Ee] !== void 0 ? ve[Ee] = nt[Ee] : te && te[Ee] !== void 0 && (ve[Ee] = te[Ee])), ve), {}), pr = {
|
|
10959
|
+
...El || {},
|
|
10974
10960
|
//existing inputs
|
|
10975
|
-
...
|
|
10961
|
+
...bl,
|
|
10976
10962
|
...Object.keys(Dn || {}).length && { mcp_meta_fields: Dn }
|
|
10977
10963
|
};
|
|
10978
10964
|
if (!Object.keys(pr).length) return;
|
|
@@ -11030,9 +11016,9 @@ const Oo = (e) => Object.fromEntries(
|
|
|
11030
11016
|
}
|
|
11031
11017
|
];
|
|
11032
11018
|
}), Ce || le(!0), Ce = null);
|
|
11033
|
-
const
|
|
11019
|
+
const _l = ne.getState().elicitationState, Ln = /* @__PURE__ */ new Set();
|
|
11034
11020
|
_e && Ln.add(_e), _e && Ln.add(_e), ht?.tool_keys?.forEach((xe) => Ln.add(xe)), Ln.forEach((xe) => {
|
|
11035
|
-
const nt =
|
|
11021
|
+
const nt = _l[xe];
|
|
11036
11022
|
nt && Se(xe, {
|
|
11037
11023
|
...nt,
|
|
11038
11024
|
...Zt && { active: !1, disabled: !0 },
|
|
@@ -11144,7 +11130,7 @@ const Oo = (e) => Object.fromEntries(
|
|
|
11144
11130
|
timestamp: Dt(Date.now()),
|
|
11145
11131
|
isStored: !1
|
|
11146
11132
|
}
|
|
11147
|
-
]), le(!0), await
|
|
11133
|
+
]), le(!0), await Td(1e3), le(!1), i(
|
|
11148
11134
|
(B) => [
|
|
11149
11135
|
...B,
|
|
11150
11136
|
{
|
|
@@ -11179,11 +11165,11 @@ const Oo = (e) => Object.fromEntries(
|
|
|
11179
11165
|
}
|
|
11180
11166
|
}
|
|
11181
11167
|
};
|
|
11182
|
-
},
|
|
11183
|
-
function
|
|
11168
|
+
}, wh = 32, Ch = 100, Th = 320;
|
|
11169
|
+
function Nh() {
|
|
11184
11170
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
11185
11171
|
}
|
|
11186
|
-
function
|
|
11172
|
+
function xh({
|
|
11187
11173
|
messageCount: e,
|
|
11188
11174
|
isStreaming: t,
|
|
11189
11175
|
isFirstMessage: n,
|
|
@@ -11192,7 +11178,7 @@ function kh({
|
|
|
11192
11178
|
const o = G(null), s = G(null), [a, i] = U(!1), c = G(null), d = G(!1), m = G("auto"), u = G(!0), p = ae(() => o.current?.querySelector(
|
|
11193
11179
|
"[data-radix-scroll-area-viewport]"
|
|
11194
11180
|
) || null, []), h = ae(
|
|
11195
|
-
(y) =>
|
|
11181
|
+
(y) => Nh() ? "auto" : y,
|
|
11196
11182
|
[]
|
|
11197
11183
|
), _ = ae(
|
|
11198
11184
|
(y) => {
|
|
@@ -11220,7 +11206,7 @@ function kh({
|
|
|
11220
11206
|
if (!e || !u.current) return;
|
|
11221
11207
|
const y = setTimeout(
|
|
11222
11208
|
() => b("auto"),
|
|
11223
|
-
|
|
11209
|
+
Th
|
|
11224
11210
|
);
|
|
11225
11211
|
return () => clearTimeout(y);
|
|
11226
11212
|
}, [r, e, b]), $(() => {
|
|
@@ -11234,7 +11220,7 @@ function kh({
|
|
|
11234
11220
|
}
|
|
11235
11221
|
const S = () => {
|
|
11236
11222
|
const { scrollTop: O, scrollHeight: I, clientHeight: z } = w;
|
|
11237
|
-
return I - O - z <=
|
|
11223
|
+
return I - O - z <= wh;
|
|
11238
11224
|
};
|
|
11239
11225
|
u.current = !0;
|
|
11240
11226
|
let v = 0;
|
|
@@ -11248,7 +11234,7 @@ function kh({
|
|
|
11248
11234
|
w.addEventListener("scroll", x, { passive: !0 }), g = () => w.removeEventListener("scroll", x), f = new ResizeObserver(() => {
|
|
11249
11235
|
if (!u.current) return;
|
|
11250
11236
|
const O = Date.now();
|
|
11251
|
-
O - E <
|
|
11237
|
+
O - E < Ch || (E = O, v++, b("auto"));
|
|
11252
11238
|
}), f.observe(T);
|
|
11253
11239
|
};
|
|
11254
11240
|
return N(), () => {
|
|
@@ -11262,7 +11248,7 @@ function kh({
|
|
|
11262
11248
|
scheduleScrollToBottom: b
|
|
11263
11249
|
};
|
|
11264
11250
|
}
|
|
11265
|
-
function
|
|
11251
|
+
function kh({ isOpen: e, agentId: t, config: n }) {
|
|
11266
11252
|
const {
|
|
11267
11253
|
state: r,
|
|
11268
11254
|
isMuted: o,
|
|
@@ -11270,11 +11256,11 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11270
11256
|
disconnect: a,
|
|
11271
11257
|
reset: i,
|
|
11272
11258
|
toggleMute: c
|
|
11273
|
-
} =
|
|
11259
|
+
} = Eu(), d = () => {
|
|
11274
11260
|
r === M.VOICE_AGENT_STATE.IDLE && s();
|
|
11275
11261
|
}, m = r !== M.VOICE_AGENT_STATE.IDLE, [u, p] = U(""), [h, _] = U(!1), b = ne((se) => se.setDisplayMode), [y, f] = U(
|
|
11276
11262
|
n.displayMode === "full" ? "full" : "widget"
|
|
11277
|
-
), g = () => f((se) => se === "full" ? "widget" : "full"), N =
|
|
11263
|
+
), g = () => f((se) => se === "full" ? "widget" : "full"), N = ol() ? "mobile" : y, [w, C] = U([]), T = G(!1), [S, v] = U(!1), x = G(null), {
|
|
11278
11264
|
setAgentId: O,
|
|
11279
11265
|
startNewConnection: I,
|
|
11280
11266
|
showRetryButton: z,
|
|
@@ -11302,7 +11288,7 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11302
11288
|
isValidFile: Ae,
|
|
11303
11289
|
handleToggleFeedback: Ot,
|
|
11304
11290
|
clearElicitationState: et
|
|
11305
|
-
} =
|
|
11291
|
+
} = Sh({
|
|
11306
11292
|
environment: n.environment,
|
|
11307
11293
|
connectionType: n.connectionType,
|
|
11308
11294
|
baseUrl: n.baseUrl ? n.baseUrl : void 0,
|
|
@@ -11311,7 +11297,7 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11311
11297
|
...n?.authToken && { authToken: n.authToken }
|
|
11312
11298
|
});
|
|
11313
11299
|
$(() => {
|
|
11314
|
-
t && (x.current !== t && (
|
|
11300
|
+
t && (x.current !== t && (fu(t), mu(t), O(t), (n.displayMode === "full" || n.displayMode === "widget") && (b(n.displayMode), ue(n.displayMode)), n?.context && Object.keys(n?.context || {}).length && J(n.context), (n?.initialMessage?.text || n?.initialMessage?.suggestions?.length) && Y(n.initialMessage), x.current = t), e && he && !T.current && (T.current = !0, Se(!1)));
|
|
11315
11301
|
}, [e, he, t]), $(() => () => {
|
|
11316
11302
|
a();
|
|
11317
11303
|
}, []);
|
|
@@ -11324,11 +11310,11 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11324
11310
|
const se = n?.initialMessage;
|
|
11325
11311
|
return !!se?.text || !!se?.suggestions?.length;
|
|
11326
11312
|
}, [n?.initialMessage]), fr = de(() => Kt && X?.length === 0, [X, Kt]), Mn = de(() => ut ? ut.component === M.SYNAPSE_COMPONENTS.MOBILE || ut.component === M.SYNAPSE_COMPONENTS.OTP || ut.component === M.SYNAPSE_COMPONENTS.EMAIL : !1, [ut]), {
|
|
11327
|
-
scrollAreaRef:
|
|
11328
|
-
messagesEndRef:
|
|
11329
|
-
showScrollButton:
|
|
11313
|
+
scrollAreaRef: Po,
|
|
11314
|
+
messagesEndRef: Lo,
|
|
11315
|
+
showScrollButton: Do,
|
|
11330
11316
|
scrollToBottom: R
|
|
11331
|
-
} =
|
|
11317
|
+
} = xh({
|
|
11332
11318
|
messageCount: X.length,
|
|
11333
11319
|
isStreaming: pe,
|
|
11334
11320
|
isFirstMessage: Mt,
|
|
@@ -11353,7 +11339,7 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11353
11339
|
}
|
|
11354
11340
|
if (Q?.length > 0 && Q.reduce((Ce, tt) => Ce + tt.size, 0) > 10 * 1024 * 1024) {
|
|
11355
11341
|
le({
|
|
11356
|
-
title: `Total file size limit of ${
|
|
11342
|
+
title: `Total file size limit of ${Cu} MB exceeded`,
|
|
11357
11343
|
description: "Please reduce the size of the files or try again with less files"
|
|
11358
11344
|
});
|
|
11359
11345
|
return;
|
|
@@ -11403,7 +11389,7 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11403
11389
|
isRecording: h,
|
|
11404
11390
|
hasAttachment: S,
|
|
11405
11391
|
attachmentFiles: w,
|
|
11406
|
-
showScrollButton:
|
|
11392
|
+
showScrollButton: Do,
|
|
11407
11393
|
// Display mode
|
|
11408
11394
|
displayMode: y,
|
|
11409
11395
|
// user pref: "widget" | "full" (local toggle)
|
|
@@ -11415,8 +11401,8 @@ function Rh({ isOpen: e, agentId: t, config: n }) {
|
|
|
11415
11401
|
currentDisplayMode: y,
|
|
11416
11402
|
setCurrentDisplayMode: f,
|
|
11417
11403
|
// Refs
|
|
11418
|
-
scrollAreaRef:
|
|
11419
|
-
messagesEndRef:
|
|
11404
|
+
scrollAreaRef: Po,
|
|
11405
|
+
messagesEndRef: Lo,
|
|
11420
11406
|
// Store values
|
|
11421
11407
|
startNewConnection: I,
|
|
11422
11408
|
showRetryButton: z,
|
|
@@ -11470,31 +11456,31 @@ function kt() {
|
|
|
11470
11456
|
return e;
|
|
11471
11457
|
}, kt.apply(this, arguments);
|
|
11472
11458
|
}
|
|
11473
|
-
const
|
|
11474
|
-
function
|
|
11475
|
-
return "( *)(" + (e === 1 ?
|
|
11459
|
+
const Rh = ["children", "options"], ii = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), ai = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Ih = ["style", "script", "pre"], Ah = ["src", "href", "data", "formAction", "srcDoc", "action"], Oh = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Mh = /\n{2,}$/, li = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Ph = /^ *> ?/gm, Lh = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Dh = /^ {2,}\n/, Fh = /^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/, ci = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, di = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Vh = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Uh = /^(?:\n *)*\n/, $h = /\r\n?/g, zh = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Bh = /^\[\^([^\]]+)]/, jh = /\f/g, Hh = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Gh = /^\s*?\[(x|\s)\]/, ui = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, hi = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, fi = /^([^\n]+)\n *(=|-)\2{2,} *\n/, Mr = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Wh = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, mi = /^<!--[\s\S]*?(?:-->)/, qh = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Pr = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Yh = /^\{.*\}$/, Kh = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Zh = /^<([^ >]+[:@\/][^ >]+)>/, Xh = /-([a-z])?/gi, pi = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, Jh = /^[^\n]+(?: \n|\n{2,})/, Qh = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ef = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, tf = /^\[([^\]]*)\] ?\[([^\]]*)\]/, nf = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, rf = /\t/g, of = /(^ *\||\| *$)/g, sf = /^ *:-+: *$/, af = /^ *:-+ *$/, lf = /^ *-+: *$/, ur = (e) => `(?=[\\s\\S]+?\\1${e ? "\\1" : ""})`, hr = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", cf = RegExp(`^([*_])\\1${ur(1)}${hr}\\1\\1(?!\\1)`), df = RegExp(`^([*_])${ur(0)}${hr}\\1(?!\\1)`), uf = RegExp(`^(==)${ur(0)}${hr}\\1`), hf = RegExp(`^(~~)${ur(0)}${hr}\\1`), ff = /^(:[a-zA-Z0-9-_]+:)/, mf = /^\\([^0-9A-Za-z\s])/, pf = /\\([^0-9A-Za-z\s])/g, gf = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/, _f = /^\n+/, Ef = /^([ \t]*)/, bf = /(?:^|\n)( *)$/, Oo = "(?:\\d+\\.)", Mo = "(?:[*+-])";
|
|
11460
|
+
function ll(e) {
|
|
11461
|
+
return "( *)(" + (e === 1 ? Oo : Mo) + ") +";
|
|
11476
11462
|
}
|
|
11477
|
-
const
|
|
11463
|
+
const cl = ll(1), dl = ll(2);
|
|
11464
|
+
function ul(e) {
|
|
11465
|
+
return RegExp("^" + (e === 1 ? cl : dl));
|
|
11466
|
+
}
|
|
11467
|
+
const yf = ul(1), vf = ul(2);
|
|
11478
11468
|
function hl(e) {
|
|
11479
|
-
return RegExp("^" + (e === 1 ? dl :
|
|
11469
|
+
return RegExp("^" + (e === 1 ? cl : dl) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? Oo : Mo) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
11480
11470
|
}
|
|
11481
|
-
const
|
|
11471
|
+
const Sf = hl(1), wf = hl(2);
|
|
11482
11472
|
function fl(e) {
|
|
11483
|
-
|
|
11484
|
-
}
|
|
11485
|
-
const wf = fl(1), Cf = fl(2);
|
|
11486
|
-
function ml(e) {
|
|
11487
|
-
const t = e === 1 ? Mo : Po;
|
|
11473
|
+
const t = e === 1 ? Oo : Mo;
|
|
11488
11474
|
return RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
|
|
11489
11475
|
}
|
|
11490
|
-
const
|
|
11491
|
-
function
|
|
11492
|
-
const n = t === 1, r = n ?
|
|
11476
|
+
const ml = fl(1), pl = fl(2);
|
|
11477
|
+
function gi(e, t) {
|
|
11478
|
+
const n = t === 1, r = n ? ml : pl, o = n ? Sf : wf, s = n ? yf : vf;
|
|
11493
11479
|
return { t: (a) => s.test(a), o: Ht(function(a, i) {
|
|
11494
|
-
const c =
|
|
11480
|
+
const c = bf.exec(i.prevCapture);
|
|
11495
11481
|
return c && (i.list || !i.inline && !i.simple) ? r.exec(a = c[1] + a) : null;
|
|
11496
11482
|
}), i: 1, u(a, i, c) {
|
|
11497
|
-
const d = n ? +a[2] : void 0, m = a[0].replace(
|
|
11483
|
+
const d = n ? +a[2] : void 0, m = a[0].replace(Mh, `
|
|
11498
11484
|
`).match(o);
|
|
11499
11485
|
let u = !1;
|
|
11500
11486
|
return { items: m.map(function(p, h) {
|
|
@@ -11514,8 +11500,8 @@ function _i(e, t) {
|
|
|
11514
11500
|
return e("li", { key: m }, i(d, c));
|
|
11515
11501
|
})) };
|
|
11516
11502
|
}
|
|
11517
|
-
const
|
|
11518
|
-
function
|
|
11503
|
+
const Cf = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Tf = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
|
|
11504
|
+
function _i(e) {
|
|
11519
11505
|
return typeof e == "string";
|
|
11520
11506
|
}
|
|
11521
11507
|
function Tn(e) {
|
|
@@ -11526,7 +11512,7 @@ function Tn(e) {
|
|
|
11526
11512
|
function Zn(e, t) {
|
|
11527
11513
|
return e.startsWith(t);
|
|
11528
11514
|
}
|
|
11529
|
-
function
|
|
11515
|
+
function Nf(e, t, n) {
|
|
11530
11516
|
if (Array.isArray(n)) {
|
|
11531
11517
|
for (let r = 0; r < n.length; r++) if (Zn(e, n[r])) return !0;
|
|
11532
11518
|
return !1;
|
|
@@ -11536,10 +11522,10 @@ function xf(e, t, n) {
|
|
|
11536
11522
|
function vn(e) {
|
|
11537
11523
|
return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
11538
11524
|
}
|
|
11539
|
-
function
|
|
11540
|
-
return
|
|
11525
|
+
function xf(e) {
|
|
11526
|
+
return lf.test(e) ? "right" : sf.test(e) ? "center" : af.test(e) ? "left" : null;
|
|
11541
11527
|
}
|
|
11542
|
-
function
|
|
11528
|
+
function Ei(e, t, n, r) {
|
|
11543
11529
|
const o = n.inTable;
|
|
11544
11530
|
n.inTable = !0;
|
|
11545
11531
|
let s = [[]], a = "";
|
|
@@ -11552,17 +11538,17 @@ function bi(e, t, n, r) {
|
|
|
11552
11538
|
c.trim() === "|" && (i(), r) ? d !== 0 && d !== m.length - 1 && s.push([]) : a += c;
|
|
11553
11539
|
}), i(), n.inTable = o, s;
|
|
11554
11540
|
}
|
|
11555
|
-
function
|
|
11541
|
+
function kf(e, t, n) {
|
|
11556
11542
|
n.inline = !0;
|
|
11557
|
-
const r = e[2] ? e[2].replace(
|
|
11543
|
+
const r = e[2] ? e[2].replace(of, "").split("|").map(xf) : [], o = e[3] ? (function(a, i, c) {
|
|
11558
11544
|
return a.trim().split(`
|
|
11559
11545
|
`).map(function(d) {
|
|
11560
|
-
return
|
|
11546
|
+
return Ei(d, i, c, !0);
|
|
11561
11547
|
});
|
|
11562
|
-
})(e[3], t, n) : [], s =
|
|
11548
|
+
})(e[3], t, n) : [], s = Ei(e[1], t, n, !!o.length);
|
|
11563
11549
|
return n.inline = !1, o.length ? { align: r, cells: o, header: s, type: "25" } : { children: s, type: "21" };
|
|
11564
11550
|
}
|
|
11565
|
-
function
|
|
11551
|
+
function bi(e, t) {
|
|
11566
11552
|
return e.align[t] == null ? {} : { textAlign: e.align[t] };
|
|
11567
11553
|
}
|
|
11568
11554
|
function Ht(e) {
|
|
@@ -11588,18 +11574,18 @@ function Wn(e) {
|
|
|
11588
11574
|
return e.exec(t);
|
|
11589
11575
|
});
|
|
11590
11576
|
}
|
|
11591
|
-
const
|
|
11592
|
-
function
|
|
11577
|
+
const Rf = /(javascript|vbscript|data(?!:image)):/i;
|
|
11578
|
+
function If(e) {
|
|
11593
11579
|
try {
|
|
11594
11580
|
const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
|
|
11595
|
-
if (
|
|
11581
|
+
if (Rf.test(t)) return null;
|
|
11596
11582
|
} catch {
|
|
11597
11583
|
return null;
|
|
11598
11584
|
}
|
|
11599
11585
|
return e;
|
|
11600
11586
|
}
|
|
11601
11587
|
function Xe(e) {
|
|
11602
|
-
return e && e.replace(
|
|
11588
|
+
return e && e.replace(pf, "$1");
|
|
11603
11589
|
}
|
|
11604
11590
|
function Xn(e, t, n) {
|
|
11605
11591
|
const r = n.inline || !1, o = n.simple || !1;
|
|
@@ -11607,13 +11593,13 @@ function Xn(e, t, n) {
|
|
|
11607
11593
|
const s = e(t, n);
|
|
11608
11594
|
return n.inline = r, n.simple = o, s;
|
|
11609
11595
|
}
|
|
11610
|
-
function
|
|
11596
|
+
function Af(e, t, n) {
|
|
11611
11597
|
const r = n.inline || !1, o = n.simple || !1;
|
|
11612
11598
|
n.inline = !1, n.simple = !0;
|
|
11613
11599
|
const s = e(t, n);
|
|
11614
11600
|
return n.inline = r, n.simple = o, s;
|
|
11615
11601
|
}
|
|
11616
|
-
function
|
|
11602
|
+
function Of(e, t, n) {
|
|
11617
11603
|
const r = n.inline || !1;
|
|
11618
11604
|
n.inline = !1;
|
|
11619
11605
|
const o = e(t, n);
|
|
@@ -11626,7 +11612,7 @@ function Dr() {
|
|
|
11626
11612
|
function Fr() {
|
|
11627
11613
|
return null;
|
|
11628
11614
|
}
|
|
11629
|
-
function
|
|
11615
|
+
function Mf(...e) {
|
|
11630
11616
|
return e.filter(Boolean).join(" ");
|
|
11631
11617
|
}
|
|
11632
11618
|
function Vr(e, t, n) {
|
|
@@ -11635,9 +11621,9 @@ function Vr(e, t, n) {
|
|
|
11635
11621
|
for (; o.length && (r = r[o[0]], r !== void 0); ) o.shift();
|
|
11636
11622
|
return r || n;
|
|
11637
11623
|
}
|
|
11638
|
-
function
|
|
11639
|
-
t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? kt({},
|
|
11640
|
-
const n = t.slugify || vn, r = t.sanitizer ||
|
|
11624
|
+
function Pf(e = "", t = {}) {
|
|
11625
|
+
t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? kt({}, ai, t.namedCodesToUnicode) : ai;
|
|
11626
|
+
const n = t.slugify || vn, r = t.sanitizer || If, o = t.createElement || De, s = [li, ci, di, t.enforceAtxHeadings ? hi : ui, fi, pi, ml, pl], a = [...s, Jh, Mr, mi, Pr];
|
|
11641
11627
|
function i(f, g) {
|
|
11642
11628
|
for (let E = 0; E < f.length; E++) if (f[E].test(g)) return !0;
|
|
11643
11629
|
return !1;
|
|
@@ -11647,16 +11633,16 @@ function Lf(e = "", t = {}) {
|
|
|
11647
11633
|
return o((function(w, C) {
|
|
11648
11634
|
const T = Vr(C, w);
|
|
11649
11635
|
return T ? typeof T == "function" || typeof T == "object" && "render" in T ? T : Vr(C, w + ".component", w) : w;
|
|
11650
|
-
})(f, t.overrides), kt({}, g, N, { className:
|
|
11636
|
+
})(f, t.overrides), kt({}, g, N, { className: Mf(g?.className, N.className) || void 0 }), ...E);
|
|
11651
11637
|
}
|
|
11652
11638
|
function d(f) {
|
|
11653
|
-
f = f.replace(
|
|
11639
|
+
f = f.replace(Hh, "");
|
|
11654
11640
|
let g = !1;
|
|
11655
|
-
t.forceInline ? g = !0 : t.forceBlock || (g =
|
|
11656
|
-
const E = b(_(g ? f : Tn(f).replace(
|
|
11641
|
+
t.forceInline ? g = !0 : t.forceBlock || (g = nf.test(f) === !1);
|
|
11642
|
+
const E = b(_(g ? f : Tn(f).replace(_f, "") + `
|
|
11657
11643
|
|
|
11658
11644
|
`, { inline: g }));
|
|
11659
|
-
for (;
|
|
11645
|
+
for (; _i(E[E.length - 1]) && !E[E.length - 1].trim(); ) E.pop();
|
|
11660
11646
|
if (t.wrapper === null) return E;
|
|
11661
11647
|
const N = t.wrapper || (g ? "span" : "div");
|
|
11662
11648
|
let w;
|
|
@@ -11669,18 +11655,18 @@ function Lf(e = "", t = {}) {
|
|
|
11669
11655
|
}
|
|
11670
11656
|
function m(f, g) {
|
|
11671
11657
|
if (!g || !g.trim()) return null;
|
|
11672
|
-
const E = g.match(
|
|
11658
|
+
const E = g.match(Oh);
|
|
11673
11659
|
return E ? E.reduce(function(N, w) {
|
|
11674
11660
|
const C = w.indexOf("=");
|
|
11675
11661
|
if (C !== -1) {
|
|
11676
11662
|
const T = (function(O) {
|
|
11677
|
-
return O.indexOf("-") !== -1 && O.match(
|
|
11663
|
+
return O.indexOf("-") !== -1 && O.match(qh) === null && (O = O.replace(Xh, function(I, z) {
|
|
11678
11664
|
return z.toUpperCase();
|
|
11679
11665
|
})), O;
|
|
11680
11666
|
})(w.slice(0, C)).trim(), S = (function(O) {
|
|
11681
11667
|
const I = O[0];
|
|
11682
11668
|
return (I === '"' || I === "'") && O.length >= 2 && O[O.length - 1] === I ? O.slice(1, -1) : O;
|
|
11683
|
-
})(w.slice(C + 1).trim()), v =
|
|
11669
|
+
})(w.slice(C + 1).trim()), v = ii[T] || T;
|
|
11684
11670
|
if (v === "ref") return N;
|
|
11685
11671
|
const x = N[v] = (function(O, I, z, oe) {
|
|
11686
11672
|
return I === "style" ? (function(P) {
|
|
@@ -11713,25 +11699,25 @@ function Lf(e = "", t = {}) {
|
|
|
11713
11699
|
return H;
|
|
11714
11700
|
})(z).reduce(function(P, [H, j]) {
|
|
11715
11701
|
return P[H.replace(/(-[a-z])/g, (L) => L[1].toUpperCase())] = oe(j, O, H), P;
|
|
11716
|
-
}, {}) :
|
|
11702
|
+
}, {}) : Ah.indexOf(I) !== -1 ? oe(Xe(z), O, I) : (z.match(Yh) && (z = Xe(z.slice(1, z.length - 1))), z === "true" || z !== "false" && z);
|
|
11717
11703
|
})(f, T, S, r);
|
|
11718
11704
|
typeof x == "string" && (Mr.test(x) || Pr.test(x)) && (N[v] = d(x.trim()));
|
|
11719
|
-
} else w !== "style" && (N[
|
|
11705
|
+
} else w !== "style" && (N[ii[w] || w] = !0);
|
|
11720
11706
|
return N;
|
|
11721
11707
|
}, {}) : null;
|
|
11722
11708
|
}
|
|
11723
|
-
const u = [], p = {}, h = { 0: { t: [">"], o: ot(
|
|
11724
|
-
const [, N, w] = f[0].replace(
|
|
11709
|
+
const u = [], p = {}, h = { 0: { t: [">"], o: ot(li), i: 1, u(f, g, E) {
|
|
11710
|
+
const [, N, w] = f[0].replace(Ph, "").match(Lh);
|
|
11725
11711
|
return { alert: N, children: g(w, E) };
|
|
11726
11712
|
}, l(f, g, E) {
|
|
11727
11713
|
const N = { key: E.key };
|
|
11728
11714
|
return f.alert && (N.className = "markdown-alert-" + n(f.alert.toLowerCase(), vn), f.children.unshift({ attrs: {}, children: [{ type: "27", text: f.alert }], noInnerParse: !0, type: "11", tag: "header" })), c("blockquote", N, g(f.children, E));
|
|
11729
|
-
} }, 1: { t: [" "], o: Wn(
|
|
11715
|
+
} }, 1: { t: [" "], o: Wn(Dh), i: 1, u: Dr, l: (f, g, E) => c("br", { key: E.key }) }, 2: { t: ["--", "__", "**", "- ", "* ", "_ "], o: ot(Fh), i: 1, u: Dr, l: (f, g, E) => c("hr", { key: E.key }) }, 3: { t: [" "], o: ot(di), i: 0, u: (f) => ({ lang: void 0, text: Xe(Tn(f[0].replace(/^ {4}/gm, ""))) }), l: (f, g, E) => c("pre", { key: E.key }, c("code", kt({}, f.attrs, { className: f.lang ? "lang-" + f.lang : "" }), f.text)) }, 4: { t: ["```", "~~~"], o: ot(ci), i: 0, u: (f) => ({ attrs: m("code", f[3] || ""), lang: f[2] || void 0, text: f[4], type: "3" }) }, 5: { t: ["`"], o: gt(Vh), i: 3, u: (f) => ({ text: Xe(f[2]) }), l: (f, g, E) => c("code", { key: E.key }, f.text) }, 6: { t: ["[^"], o: ot(zh), i: 0, u: (f) => (u.push({ footnote: f[2], identifier: f[1] }), {}), l: Fr }, 7: { t: ["[^"], o: xt(Bh), i: 1, u: (f) => ({ target: "#" + n(f[1], vn), text: f[1] }), l: (f, g, E) => c("a", { key: E.key, href: r(f.target, "a", "href") }, c("sup", { key: E.key }, f.text)) }, 8: { t: ["[ ]", "[x]"], o: xt(Gh), i: 1, u: (f) => ({ completed: f[1].toLowerCase() === "x" }), l: (f, g, E) => c("input", { checked: f.completed, key: E.key, readOnly: !0, type: "checkbox" }) }, 9: { t: ["#"], o: ot(t.enforceAtxHeadings ? hi : ui), i: 1, u: (f, g, E) => ({ children: Xn(g, f[2], E), id: n(f[2], vn), level: f[1].length }), l: (f, g, E) => c("h" + f.level, { id: f.id, key: E.key }, g(f.children, E)) }, 10: { t: (f) => {
|
|
11730
11716
|
const g = f.indexOf(`
|
|
11731
11717
|
`);
|
|
11732
11718
|
return g > 0 && g < f.length - 1 && (f[g + 1] === "=" || f[g + 1] === "-");
|
|
11733
|
-
}, o: ot(
|
|
11734
|
-
const [, N] = f[3].match(
|
|
11719
|
+
}, o: ot(fi), i: 1, u: (f, g, E) => ({ children: Xn(g, f[1], E), level: f[2] === "=" ? 1 : 2, type: "9" }) }, 11: { t: ["<"], o: Wn(Mr), i: 1, u(f, g, E) {
|
|
11720
|
+
const [, N] = f[3].match(Ef), w = RegExp("^" + N, "gm"), C = f[3].replace(w, ""), T = i(a, C) ? Of : Xn, S = f[1].toLowerCase(), v = Ih.indexOf(S) !== -1, x = (v ? S : f[1]).trim(), O = { attrs: m(x, f[2]), noInnerParse: v, tag: x };
|
|
11735
11721
|
if (E.inAnchor = E.inAnchor || S === "a", v) O.text = f[3];
|
|
11736
11722
|
else {
|
|
11737
11723
|
const I = E.inHTML;
|
|
@@ -11741,11 +11727,11 @@ function Lf(e = "", t = {}) {
|
|
|
11741
11727
|
}, l: (f, g, E) => c(f.tag, kt({ key: E.key }, f.attrs), f.text || (f.children ? g(f.children, E) : "")) }, 13: { t: ["<"], o: Wn(Pr), i: 1, u(f) {
|
|
11742
11728
|
const g = f[1].trim();
|
|
11743
11729
|
return { attrs: m(g, f[2] || ""), tag: g };
|
|
11744
|
-
}, l: (f, g, E) => c(f.tag, kt({}, f.attrs, { key: E.key })) }, 12: { t: ["<!--"], o: Wn(
|
|
11730
|
+
}, l: (f, g, E) => c(f.tag, kt({}, f.attrs, { key: E.key })) }, 12: { t: ["<!--"], o: Wn(mi), i: 1, u: () => ({}), l: Fr }, 14: { t: ["!["], o: gt(Tf), i: 1, u: (f) => ({ alt: Xe(f[1]), target: Xe(f[2]), title: Xe(f[3]) }), l: (f, g, E) => c("img", { key: E.key, alt: f.alt || void 0, title: f.title || void 0, src: r(f.target, "img", "src") }) }, 15: { t: ["["], o: xt(Cf), i: 3, u: (f, g, E) => ({ children: Af(g, f[1], E), target: Xe(f[2]), title: Xe(f[3]) }), l: (f, g, E) => c("a", { key: E.key, href: r(f.target, "a", "href"), title: f.title }, g(f.children, E)) }, 16: { t: ["<"], o: xt(Zh), i: 0, u(f) {
|
|
11745
11731
|
let g = f[1], E = !1;
|
|
11746
11732
|
return g.indexOf("@") !== -1 && g.indexOf("//") === -1 && (E = !0, g = g.replace("mailto:", "")), { children: [{ text: g, type: "27" }], target: E ? "mailto:" + g : g, type: "15" };
|
|
11747
|
-
} }, 17: { t: (f, g) => !g.inAnchor && !t.disableAutoLink && (Zn(f, "http://") || Zn(f, "https://")), o: xt(
|
|
11748
|
-
`], o: ot(
|
|
11733
|
+
} }, 17: { t: (f, g) => !g.inAnchor && !t.disableAutoLink && (Zn(f, "http://") || Zn(f, "https://")), o: xt(Kh), i: 0, u: (f) => ({ children: [{ text: f[1], type: "27" }], target: f[1], title: void 0, type: "15" }) }, 20: gi(c, 1), 33: gi(c, 2), 19: { t: [`
|
|
11734
|
+
`], o: ot(Uh), i: 3, u: Dr, l: () => `
|
|
11749
11735
|
` }, 21: { o: Ht(function(f, g) {
|
|
11750
11736
|
if (g.inline || g.simple || g.inHTML && f.indexOf(`
|
|
11751
11737
|
|
|
@@ -11761,25 +11747,25 @@ function Lf(e = "", t = {}) {
|
|
|
11761
11747
|
}
|
|
11762
11748
|
const w = Tn(E);
|
|
11763
11749
|
return w === "" ? null : [E, , w];
|
|
11764
|
-
}), i: 3, u: Lr, l: (f, g, E) => c("p", { key: E.key }, g(f.children, E)) }, 22: { t: ["["], o: xt(
|
|
11750
|
+
}), i: 3, u: Lr, l: (f, g, E) => c("p", { key: E.key }, g(f.children, E)) }, 22: { t: ["["], o: xt(Qh), i: 0, u: (f) => (p[f[1]] = { target: f[2], title: f[4] }, {}), l: Fr }, 23: { t: ["!["], o: gt(ef), i: 0, u: (f) => ({ alt: f[1] ? Xe(f[1]) : void 0, ref: f[2] }), l: (f, g, E) => p[f.ref] ? c("img", { key: E.key, alt: f.alt, src: r(p[f.ref].target, "img", "src"), title: p[f.ref].title }) : null }, 24: { t: (f) => f[0] === "[" && f.indexOf("](") === -1, o: xt(tf), i: 0, u: (f, g, E) => ({ children: g(f[1], E), fallbackChildren: f[0], ref: f[2] }), l: (f, g, E) => p[f.ref] ? c("a", { key: E.key, href: r(p[f.ref].target, "a", "href"), title: p[f.ref].title }, g(f.children, E)) : c("span", { key: E.key }, f.fallbackChildren) }, 25: { t: ["|"], o: ot(pi), i: 1, u: kf, l(f, g, E) {
|
|
11765
11751
|
const N = f;
|
|
11766
11752
|
return c("table", { key: E.key }, c("thead", null, c("tr", null, N.header.map(function(w, C) {
|
|
11767
|
-
return c("th", { key: C, style:
|
|
11753
|
+
return c("th", { key: C, style: bi(N, C) }, g(w, E));
|
|
11768
11754
|
}))), c("tbody", null, N.cells.map(function(w, C) {
|
|
11769
11755
|
return c("tr", { key: C }, w.map(function(T, S) {
|
|
11770
|
-
return c("td", { key: S, style:
|
|
11756
|
+
return c("td", { key: S, style: bi(N, S) }, g(T, E));
|
|
11771
11757
|
}));
|
|
11772
11758
|
})));
|
|
11773
11759
|
} }, 27: { o: Ht(function(f, g) {
|
|
11774
11760
|
let E;
|
|
11775
|
-
return Zn(f, ":") && (E =
|
|
11761
|
+
return Zn(f, ":") && (E = ff.exec(f)), E || gf.exec(f);
|
|
11776
11762
|
}), i: 4, u(f) {
|
|
11777
11763
|
const g = f[0];
|
|
11778
|
-
return { text: g.indexOf("&") === -1 ? g : g.replace(
|
|
11779
|
-
}, l: (f) => f.text }, 28: { t: ["**", "__"], o: gt(
|
|
11764
|
+
return { text: g.indexOf("&") === -1 ? g : g.replace(Wh, (E, N) => t.namedCodesToUnicode[N] || E) };
|
|
11765
|
+
}, l: (f) => f.text }, 28: { t: ["**", "__"], o: gt(cf), i: 2, u: (f, g, E) => ({ children: g(f[2], E) }), l: (f, g, E) => c("strong", { key: E.key }, g(f.children, E)) }, 29: { t: (f) => {
|
|
11780
11766
|
const g = f[0];
|
|
11781
11767
|
return (g === "*" || g === "_") && f[1] !== g;
|
|
11782
|
-
}, o: gt(
|
|
11768
|
+
}, o: gt(df), i: 3, u: (f, g, E) => ({ children: g(f[2], E) }), l: (f, g, E) => c("em", { key: E.key }, g(f.children, E)) }, 30: { t: ["\\"], o: gt(mf), i: 1, u: (f) => ({ text: f[1], type: "27" }) }, 31: { t: ["=="], o: gt(uf), i: 3, u: Lr, l: (f, g, E) => c("mark", { key: E.key }, g(f.children, E)) }, 32: { t: ["~~"], o: gt(hf), i: 3, u: Lr, l: (f, g, E) => c("del", { key: E.key }, g(f.children, E)) } };
|
|
11783
11769
|
t.disableParsingRawHTML === !0 && (delete h[11], delete h[13]);
|
|
11784
11770
|
const _ = (function(f) {
|
|
11785
11771
|
var g = Object.keys(f);
|
|
@@ -11787,7 +11773,7 @@ function Lf(e = "", t = {}) {
|
|
|
11787
11773
|
var C = [];
|
|
11788
11774
|
if (w.prevCapture = w.prevCapture || "", N.trim()) for (; N; ) for (var T = 0; T < g.length; ) {
|
|
11789
11775
|
var S = g[T], v = f[S];
|
|
11790
|
-
if (!v.t ||
|
|
11776
|
+
if (!v.t || Nf(N, w, v.t)) {
|
|
11791
11777
|
var x = v.o(N, w);
|
|
11792
11778
|
if (x && x[0]) {
|
|
11793
11779
|
N = N.substring(x[0].length);
|
|
@@ -11804,8 +11790,8 @@ function Lf(e = "", t = {}) {
|
|
|
11804
11790
|
return f[N].i - f[w].i || (N < w ? -1 : 1);
|
|
11805
11791
|
}), function(N, w) {
|
|
11806
11792
|
return E((function(C) {
|
|
11807
|
-
return C.replace(
|
|
11808
|
-
`).replace(
|
|
11793
|
+
return C.replace($h, `
|
|
11794
|
+
`).replace(jh, "").replace(rf, " ");
|
|
11809
11795
|
})(N), w);
|
|
11810
11796
|
};
|
|
11811
11797
|
})(h), b = /* @__PURE__ */ (function(f, g) {
|
|
@@ -11815,7 +11801,7 @@ function Lf(e = "", t = {}) {
|
|
|
11815
11801
|
let S = !1;
|
|
11816
11802
|
for (let v = 0; v < N.length; v++) {
|
|
11817
11803
|
w.key = v;
|
|
11818
|
-
const x = E(N[v], w), O =
|
|
11804
|
+
const x = E(N[v], w), O = _i(x);
|
|
11819
11805
|
O && S ? T[T.length - 1] += x : x !== null && T.push(x), S = O;
|
|
11820
11806
|
}
|
|
11821
11807
|
return w.key = C, T;
|
|
@@ -11830,33 +11816,33 @@ function Lf(e = "", t = {}) {
|
|
|
11830
11816
|
return c("div", { id: n(f.identifier, vn), key: f.identifier }, f.identifier, b(_(f.footnote, { inline: !0 })));
|
|
11831
11817
|
}))) : y;
|
|
11832
11818
|
}
|
|
11833
|
-
const
|
|
11819
|
+
const Lf = (e) => {
|
|
11834
11820
|
let { children: t, options: n } = e, r = (function(o, s) {
|
|
11835
11821
|
if (o == null) return {};
|
|
11836
11822
|
var a, i, c = {}, d = Object.keys(o);
|
|
11837
11823
|
for (i = 0; i < d.length; i++) s.indexOf(a = d[i]) >= 0 || (c[a] = o[a]);
|
|
11838
11824
|
return c;
|
|
11839
|
-
})(e,
|
|
11840
|
-
return yt(
|
|
11841
|
-
},
|
|
11825
|
+
})(e, Rh);
|
|
11826
|
+
return yt(Pf(t ?? "", n), r);
|
|
11827
|
+
}, Df = {
|
|
11842
11828
|
disableParsingRawHTML: !0,
|
|
11843
11829
|
forceBlock: !0
|
|
11844
11830
|
};
|
|
11845
11831
|
function Xr({ children: e }) {
|
|
11846
|
-
return /* @__PURE__ */ l(
|
|
11832
|
+
return /* @__PURE__ */ l(Lf, { options: Df, children: e });
|
|
11847
11833
|
}
|
|
11848
|
-
const
|
|
11849
|
-
() => Promise.resolve().then(() =>
|
|
11850
|
-
),
|
|
11834
|
+
const Ff = dt(
|
|
11835
|
+
() => Promise.resolve().then(() => Gf).then((e) => ({ default: e.Pills }))
|
|
11836
|
+
), Vf = dt(
|
|
11851
11837
|
() => import("./medassist-widget-MultiSelect-BnExX-Ty.js").then((e) => ({ default: e.MultiSelectGroup }))
|
|
11852
|
-
),
|
|
11838
|
+
), Uf = dt(
|
|
11853
11839
|
() => import("./medassist-widget-FocusCarousel-BsLIZftX.js").then((e) => ({ default: e.FocusCarousel }))
|
|
11840
|
+
), $f = dt(
|
|
11841
|
+
() => import("./medassist-widget-DoctorCard-BdLitZW0.js").then((e) => ({ default: e.DoctorCard }))
|
|
11854
11842
|
), zf = dt(
|
|
11855
|
-
() => import("./medassist-widget-
|
|
11843
|
+
() => import("./medassist-widget-CardList-BR2hjo_A.js").then((e) => ({ default: e.CardList }))
|
|
11856
11844
|
), Bf = dt(
|
|
11857
|
-
() => import("./medassist-widget-
|
|
11858
|
-
), jf = dt(
|
|
11859
|
-
() => import("./medassist-widget-MediaCard-wTRSvQWH.js").then((e) => ({ default: e.MediaCard }))
|
|
11845
|
+
() => import("./medassist-widget-MediaCard-DRUToQV3.js").then((e) => ({ default: e.MediaCard }))
|
|
11860
11846
|
);
|
|
11861
11847
|
function ke({ className: e }) {
|
|
11862
11848
|
return /* @__PURE__ */ l(
|
|
@@ -11937,7 +11923,7 @@ function Ft({ variant: e }) {
|
|
|
11937
11923
|
function qn() {
|
|
11938
11924
|
return /* @__PURE__ */ l("style", { children: "@keyframes shimmer { 100% { transform: translateX(100%); } }" });
|
|
11939
11925
|
}
|
|
11940
|
-
function
|
|
11926
|
+
function jf({
|
|
11941
11927
|
messageId: e,
|
|
11942
11928
|
tool_key: t,
|
|
11943
11929
|
entry: n,
|
|
@@ -11998,7 +11984,7 @@ function Hf({
|
|
|
11998
11984
|
return /* @__PURE__ */ l("div", { className: "flex justify-end", children: [
|
|
11999
11985
|
C && /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "pill" }), children: /* @__PURE__ */ l("div", { className: `flex ${C.length > 3 ? "flex-col" : "flex-wrap"} gap-2 mt-3`, children: [
|
|
12000
11986
|
C.slice(0, u).map((v, x) => /* @__PURE__ */ l(
|
|
12001
|
-
|
|
11987
|
+
Ff,
|
|
12002
11988
|
{
|
|
12003
11989
|
disabled: _ || o || d,
|
|
12004
11990
|
text: v?.label || "",
|
|
@@ -12031,7 +12017,7 @@ function Hf({
|
|
|
12031
12017
|
h === M.SYNAPSE_COMPONENTS.MULTI && b?.options && /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "input" }), children: /* @__PURE__ */ l("div", { className: "mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4", children: [
|
|
12032
12018
|
/* @__PURE__ */ l("h3", { className: "text-xs font-medium text-muted-foreground mb-2", children: "Select multiple options:" }),
|
|
12033
12019
|
/* @__PURE__ */ l(
|
|
12034
|
-
|
|
12020
|
+
Vf,
|
|
12035
12021
|
{
|
|
12036
12022
|
options: N(),
|
|
12037
12023
|
selectedValues: s,
|
|
@@ -12055,7 +12041,7 @@ function Hf({
|
|
|
12055
12041
|
)
|
|
12056
12042
|
] }) }),
|
|
12057
12043
|
w && w.length > 0 ? /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "card" }), children: /* @__PURE__ */ l(
|
|
12058
|
-
|
|
12044
|
+
Uf,
|
|
12059
12045
|
{
|
|
12060
12046
|
count: w.length > 1 ? w.length + 1 : w.length,
|
|
12061
12047
|
renderItem: (v, x) => {
|
|
@@ -12079,7 +12065,7 @@ function Hf({
|
|
|
12079
12065
|
"flex items-center justify-center",
|
|
12080
12066
|
"w-10 h-10 rounded-full bg-elicitationBg shadow-sm"
|
|
12081
12067
|
),
|
|
12082
|
-
children: /* @__PURE__ */ l(
|
|
12068
|
+
children: /* @__PURE__ */ l(iu, { className: "w-4 h-4 text-primary" })
|
|
12083
12069
|
}
|
|
12084
12070
|
),
|
|
12085
12071
|
/* @__PURE__ */ l("span", { className: "text-primary font-semibold text-sm", children: "Show more" })
|
|
@@ -12088,7 +12074,7 @@ function Hf({
|
|
|
12088
12074
|
);
|
|
12089
12075
|
const O = w[v];
|
|
12090
12076
|
return /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "card" }), children: /* @__PURE__ */ l(
|
|
12091
|
-
|
|
12077
|
+
$f,
|
|
12092
12078
|
{
|
|
12093
12079
|
doctor: O,
|
|
12094
12080
|
doctorDetails: i?.[O.doctor_id],
|
|
@@ -12101,7 +12087,7 @@ function Hf({
|
|
|
12101
12087
|
}
|
|
12102
12088
|
) }) : null,
|
|
12103
12089
|
T && /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "card" }), children: /* @__PURE__ */ l(
|
|
12104
|
-
|
|
12090
|
+
zf,
|
|
12105
12091
|
{
|
|
12106
12092
|
cards: T,
|
|
12107
12093
|
onSelect: async (v) => {
|
|
@@ -12116,10 +12102,10 @@ function Hf({
|
|
|
12116
12102
|
disabled: _ || o
|
|
12117
12103
|
}
|
|
12118
12104
|
) }),
|
|
12119
|
-
S && /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "media" }), children: /* @__PURE__ */ l("div", { className: "mt-3", children: /* @__PURE__ */ l(
|
|
12105
|
+
S && /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Ft, { variant: "media" }), children: /* @__PURE__ */ l("div", { className: "mt-3", children: /* @__PURE__ */ l(Bf, { card: S }) }) })
|
|
12120
12106
|
] });
|
|
12121
12107
|
}
|
|
12122
|
-
function
|
|
12108
|
+
function Hf({
|
|
12123
12109
|
id: e,
|
|
12124
12110
|
role: t,
|
|
12125
12111
|
content: n,
|
|
@@ -12240,7 +12226,7 @@ function Gf({
|
|
|
12240
12226
|
a?.map((C) => {
|
|
12241
12227
|
const T = c[C];
|
|
12242
12228
|
return T ? /* @__PURE__ */ l(
|
|
12243
|
-
|
|
12229
|
+
jf,
|
|
12244
12230
|
{
|
|
12245
12231
|
messageId: e,
|
|
12246
12232
|
tool_key: C,
|
|
@@ -12326,7 +12312,7 @@ function Gf({
|
|
|
12326
12312
|
) })
|
|
12327
12313
|
] });
|
|
12328
12314
|
}
|
|
12329
|
-
function
|
|
12315
|
+
function gl({
|
|
12330
12316
|
text: e,
|
|
12331
12317
|
maxWidth: t = "200px",
|
|
12332
12318
|
className: n = "",
|
|
@@ -12376,8 +12362,8 @@ function _l({
|
|
|
12376
12362
|
}
|
|
12377
12363
|
) : null;
|
|
12378
12364
|
}
|
|
12379
|
-
const
|
|
12380
|
-
function
|
|
12365
|
+
const Gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Pills: gl }, Symbol.toStringTag, { value: "Module" }));
|
|
12366
|
+
function Wf({
|
|
12381
12367
|
text: e,
|
|
12382
12368
|
suggestions: t,
|
|
12383
12369
|
onSendMessage: n,
|
|
@@ -12426,7 +12412,7 @@ function qf({
|
|
|
12426
12412
|
t.length > 3 ? "flex-col" : "flex-wrap"
|
|
12427
12413
|
),
|
|
12428
12414
|
children: t.map((a, i) => /* @__PURE__ */ l(
|
|
12429
|
-
|
|
12415
|
+
gl,
|
|
12430
12416
|
{
|
|
12431
12417
|
text: a.label || "",
|
|
12432
12418
|
onClick: () => s(a),
|
|
@@ -12439,7 +12425,7 @@ function qf({
|
|
|
12439
12425
|
) })
|
|
12440
12426
|
] });
|
|
12441
12427
|
}
|
|
12442
|
-
function
|
|
12428
|
+
function qf({
|
|
12443
12429
|
messages: e,
|
|
12444
12430
|
onSendMessage: t,
|
|
12445
12431
|
onToggleFeedback: n,
|
|
@@ -12451,7 +12437,7 @@ function Yf({
|
|
|
12451
12437
|
}) {
|
|
12452
12438
|
const c = ne((h) => h.isWaitingForResponse), d = ne((h) => h.connectionStatus), m = ne((h) => h.elicitationState), u = d === Ne.CONNECTED, p = ne((h) => h.progressMessage);
|
|
12453
12439
|
return e.length === 0 && !p ? /* @__PURE__ */ l(
|
|
12454
|
-
|
|
12440
|
+
Wf,
|
|
12455
12441
|
{
|
|
12456
12442
|
text: a?.text,
|
|
12457
12443
|
suggestions: a?.suggestions,
|
|
@@ -12468,7 +12454,7 @@ function Yf({
|
|
|
12468
12454
|
"data-message-id": h.id,
|
|
12469
12455
|
id: _ === e.length - 1 ? "last-message" : void 0,
|
|
12470
12456
|
children: /* @__PURE__ */ l(
|
|
12471
|
-
|
|
12457
|
+
Hf,
|
|
12472
12458
|
{
|
|
12473
12459
|
id: h.id,
|
|
12474
12460
|
role: h.role,
|
|
@@ -12492,10 +12478,10 @@ function Yf({
|
|
|
12492
12478
|
},
|
|
12493
12479
|
h.id
|
|
12494
12480
|
)) }),
|
|
12495
|
-
c && /* @__PURE__ */ l(
|
|
12481
|
+
c && /* @__PURE__ */ l(Yf, {})
|
|
12496
12482
|
] });
|
|
12497
12483
|
}
|
|
12498
|
-
function
|
|
12484
|
+
function Yf() {
|
|
12499
12485
|
return /* @__PURE__ */ l("div", { className: "animate-slideUp", children: /* @__PURE__ */ l("div", { className: "flex justify-start", children: /* @__PURE__ */ l("div", { className: "flex gap-3", children: /* @__PURE__ */ l(jt, { className: "px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm", children: /* @__PURE__ */ l(
|
|
12500
12486
|
"div",
|
|
12501
12487
|
{
|
|
@@ -12512,7 +12498,7 @@ function Kf() {
|
|
|
12512
12498
|
}
|
|
12513
12499
|
) }) }) }) });
|
|
12514
12500
|
}
|
|
12515
|
-
function
|
|
12501
|
+
function Kf({ message: e, onDismiss: t }) {
|
|
12516
12502
|
return /* @__PURE__ */ l(be, { children: [
|
|
12517
12503
|
/* @__PURE__ */ l(
|
|
12518
12504
|
"div",
|
|
@@ -12560,7 +12546,7 @@ function Zf({ message: e, onDismiss: t }) {
|
|
|
12560
12546
|
)
|
|
12561
12547
|
] });
|
|
12562
12548
|
}
|
|
12563
|
-
function
|
|
12549
|
+
function Zf() {
|
|
12564
12550
|
const e = ne((r) => r.toastMessage), t = ne((r) => r.setToastMessage), n = ae(() => {
|
|
12565
12551
|
t(null);
|
|
12566
12552
|
}, [t]);
|
|
@@ -12569,14 +12555,14 @@ function Xf() {
|
|
|
12569
12555
|
const r = window.setTimeout(n, 3e3);
|
|
12570
12556
|
return () => window.clearTimeout(r);
|
|
12571
12557
|
}, [e, n]), e ? /* @__PURE__ */ l(
|
|
12572
|
-
|
|
12558
|
+
Kf,
|
|
12573
12559
|
{
|
|
12574
12560
|
message: e,
|
|
12575
12561
|
onDismiss: n
|
|
12576
12562
|
}
|
|
12577
12563
|
) : null;
|
|
12578
12564
|
}
|
|
12579
|
-
function
|
|
12565
|
+
function yi({
|
|
12580
12566
|
className: e = "",
|
|
12581
12567
|
onRetry: t,
|
|
12582
12568
|
showRetryButton: n,
|
|
@@ -12585,7 +12571,7 @@ function vi({
|
|
|
12585
12571
|
error: s,
|
|
12586
12572
|
isConnected: a
|
|
12587
12573
|
}) {
|
|
12588
|
-
const { isOnline: i } =
|
|
12574
|
+
const { isOnline: i } = il(), [c, d] = U(!0);
|
|
12589
12575
|
return $(() => {
|
|
12590
12576
|
if (!r && !n && !!s) {
|
|
12591
12577
|
d(!0);
|
|
@@ -12656,8 +12642,8 @@ function vi({
|
|
|
12656
12642
|
}
|
|
12657
12643
|
);
|
|
12658
12644
|
}
|
|
12659
|
-
const
|
|
12660
|
-
function
|
|
12645
|
+
const Xf = dt(() => import("./medassist-widget-VoiceAgentScreen-BK0p37RC.js"));
|
|
12646
|
+
function Jf({
|
|
12661
12647
|
isOpen: e,
|
|
12662
12648
|
agentId: t,
|
|
12663
12649
|
config: n
|
|
@@ -12695,7 +12681,7 @@ function Qf({
|
|
|
12695
12681
|
disconnectVoiceAgent: H,
|
|
12696
12682
|
resetVoiceAgent: j,
|
|
12697
12683
|
toggleMute: L
|
|
12698
|
-
} =
|
|
12684
|
+
} = kh({ isOpen: e, agentId: t, config: n });
|
|
12699
12685
|
$(() => {
|
|
12700
12686
|
N.length || x("auto");
|
|
12701
12687
|
}, [N.length, x]);
|
|
@@ -12708,8 +12694,8 @@ function Qf({
|
|
|
12708
12694
|
}),
|
|
12709
12695
|
[]
|
|
12710
12696
|
);
|
|
12711
|
-
return /* @__PURE__ */ l(
|
|
12712
|
-
|
|
12697
|
+
return /* @__PURE__ */ l(Qu, { enabled: !!n.resize, children: /* @__PURE__ */ l(
|
|
12698
|
+
sl,
|
|
12713
12699
|
{
|
|
12714
12700
|
isOpen: e,
|
|
12715
12701
|
onClose: n.onClose,
|
|
@@ -12731,7 +12717,7 @@ function Qf({
|
|
|
12731
12717
|
voiceAgentState: z,
|
|
12732
12718
|
chatComposer: O,
|
|
12733
12719
|
fullScreenEmptyState: E ? (le) => /* @__PURE__ */ l(
|
|
12734
|
-
|
|
12720
|
+
Eh,
|
|
12735
12721
|
{
|
|
12736
12722
|
title: n.title,
|
|
12737
12723
|
description: n?.initialMessage?.text,
|
|
@@ -12741,7 +12727,7 @@ function Qf({
|
|
|
12741
12727
|
composer: le.composer,
|
|
12742
12728
|
composerFooter: le.composerFooter,
|
|
12743
12729
|
connectionBanner: /* @__PURE__ */ l(
|
|
12744
|
-
|
|
12730
|
+
yi,
|
|
12745
12731
|
{
|
|
12746
12732
|
onRetry: v,
|
|
12747
12733
|
showRetryButton: d,
|
|
@@ -12753,8 +12739,8 @@ function Qf({
|
|
|
12753
12739
|
)
|
|
12754
12740
|
}
|
|
12755
12741
|
) : void 0,
|
|
12756
|
-
children: P ? /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(
|
|
12757
|
-
|
|
12742
|
+
children: P ? /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(vi, {}), children: /* @__PURE__ */ l(
|
|
12743
|
+
Xf,
|
|
12758
12744
|
{
|
|
12759
12745
|
state: z,
|
|
12760
12746
|
isMuted: oe,
|
|
@@ -12765,10 +12751,10 @@ function Qf({
|
|
|
12765
12751
|
iconUrl: n.iconUrl,
|
|
12766
12752
|
textColor: n.theme?.textColor
|
|
12767
12753
|
}
|
|
12768
|
-
) }) : /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(
|
|
12754
|
+
) }) : /* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(vi, {}), children: /* @__PURE__ */ l("div", { className: D("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"), children: [
|
|
12769
12755
|
/* @__PURE__ */ l("div", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden", children: [
|
|
12770
12756
|
/* @__PURE__ */ l(
|
|
12771
|
-
|
|
12757
|
+
La,
|
|
12772
12758
|
{
|
|
12773
12759
|
ref: s,
|
|
12774
12760
|
className: "flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",
|
|
@@ -12787,8 +12773,8 @@ function Qf({
|
|
|
12787
12773
|
children: [
|
|
12788
12774
|
g && /* @__PURE__ */ l("div", { className: "text-xs text-[var(--color-muted-foreground)] text-center mb-2", children: "Just now" }),
|
|
12789
12775
|
!g && /* @__PURE__ */ l("div", { className: "text-xs text-[var(--color-muted-foreground)] text-center", children: pe }),
|
|
12790
|
-
/* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(
|
|
12791
|
-
|
|
12776
|
+
/* @__PURE__ */ l(Re, { fallback: /* @__PURE__ */ l(Uu, {}), children: /* @__PURE__ */ l(
|
|
12777
|
+
qf,
|
|
12792
12778
|
{
|
|
12793
12779
|
messages: N,
|
|
12794
12780
|
onSendMessage: w,
|
|
@@ -12808,7 +12794,7 @@ function Qf({
|
|
|
12808
12794
|
]
|
|
12809
12795
|
}
|
|
12810
12796
|
),
|
|
12811
|
-
/* @__PURE__ */ l(Re, { fallback: null, children: /* @__PURE__ */ l(
|
|
12797
|
+
/* @__PURE__ */ l(Re, { fallback: null, children: /* @__PURE__ */ l(Zf, {}) })
|
|
12812
12798
|
] }),
|
|
12813
12799
|
i && /* @__PURE__ */ l("div", { className: "absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10", children: /* @__PURE__ */ l(
|
|
12814
12800
|
ce,
|
|
@@ -12820,7 +12806,7 @@ function Qf({
|
|
|
12820
12806
|
}
|
|
12821
12807
|
) }),
|
|
12822
12808
|
/* @__PURE__ */ l(
|
|
12823
|
-
|
|
12809
|
+
yi,
|
|
12824
12810
|
{
|
|
12825
12811
|
className: "mt-2",
|
|
12826
12812
|
onRetry: v,
|
|
@@ -12835,7 +12821,7 @@ function Qf({
|
|
|
12835
12821
|
}
|
|
12836
12822
|
) });
|
|
12837
12823
|
}
|
|
12838
|
-
function
|
|
12824
|
+
function vi() {
|
|
12839
12825
|
return /* @__PURE__ */ l("div", { className: "flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse", children: [
|
|
12840
12826
|
/* @__PURE__ */ l("div", { className: "flex-1 p-6 space-y-4", children: [
|
|
12841
12827
|
/* @__PURE__ */ l("div", { className: "h-16 bg-surface/80 rounded-2xl border border-border-subtle/50" }),
|
|
@@ -12854,7 +12840,7 @@ function Jr(e) {
|
|
|
12854
12840
|
return new Error("Unknown error");
|
|
12855
12841
|
}
|
|
12856
12842
|
}
|
|
12857
|
-
class
|
|
12843
|
+
class Qf extends Ge {
|
|
12858
12844
|
state = { error: null };
|
|
12859
12845
|
static getDerivedStateFromError(t) {
|
|
12860
12846
|
return { error: Jr(t) };
|
|
@@ -12864,7 +12850,7 @@ class em extends Ge {
|
|
|
12864
12850
|
}
|
|
12865
12851
|
render() {
|
|
12866
12852
|
return this.state.error ? /* @__PURE__ */ l(
|
|
12867
|
-
|
|
12853
|
+
nm,
|
|
12868
12854
|
{
|
|
12869
12855
|
error: this.state.error,
|
|
12870
12856
|
componentStack: this.state.componentStack,
|
|
@@ -12880,10 +12866,10 @@ class em extends Ge {
|
|
|
12880
12866
|
) : this.props.children;
|
|
12881
12867
|
}
|
|
12882
12868
|
}
|
|
12883
|
-
function
|
|
12869
|
+
function em({ error: e }) {
|
|
12884
12870
|
throw e;
|
|
12885
12871
|
}
|
|
12886
|
-
function
|
|
12872
|
+
function tm(e) {
|
|
12887
12873
|
const [t, n] = U(null);
|
|
12888
12874
|
return $(() => {
|
|
12889
12875
|
if (typeof window > "u") return;
|
|
@@ -12895,9 +12881,9 @@ function nm(e) {
|
|
|
12895
12881
|
return window.addEventListener("error", r), window.addEventListener("unhandledrejection", o), () => {
|
|
12896
12882
|
window.removeEventListener("error", r), window.removeEventListener("unhandledrejection", o);
|
|
12897
12883
|
};
|
|
12898
|
-
}, []), /* @__PURE__ */ l(
|
|
12884
|
+
}, []), /* @__PURE__ */ l(Qf, { ...e, children: t ? /* @__PURE__ */ l(em, { error: t }) : e.children });
|
|
12899
12885
|
}
|
|
12900
|
-
function
|
|
12886
|
+
function nm({
|
|
12901
12887
|
error: e,
|
|
12902
12888
|
title: t,
|
|
12903
12889
|
titleImg: n,
|
|
@@ -12912,7 +12898,7 @@ function rm({
|
|
|
12912
12898
|
typeof window < "u" && window.location.reload();
|
|
12913
12899
|
}, m = t ?? "Medi Clinic", u = a ?? "production", p = de(() => c?.textColor === "white" ? "text-white/60" : "text-[var(--color-muted-foreground)]", [c?.textColor]);
|
|
12914
12900
|
return /* @__PURE__ */ l(
|
|
12915
|
-
|
|
12901
|
+
sl,
|
|
12916
12902
|
{
|
|
12917
12903
|
isOpen: !0,
|
|
12918
12904
|
onClose: o ?? (() => {
|
|
@@ -12927,7 +12913,7 @@ function rm({
|
|
|
12927
12913
|
theme: c,
|
|
12928
12914
|
children: /* @__PURE__ */ l("div", { className: "flex-1 min-h-0 overflow-hidden flex flex-col", children: /* @__PURE__ */ l("div", { className: "flex-1 min-h-0 flex items-center justify-center p-6", children: /* @__PURE__ */ l("div", { className: "w-full max-w-[320px] text-center", children: [
|
|
12929
12915
|
/* @__PURE__ */ l("div", { className: "mx-auto mb-4 grid place-items-center", children: /* @__PURE__ */ l("div", { className: "h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center", children: /* @__PURE__ */ l(
|
|
12930
|
-
|
|
12916
|
+
ru,
|
|
12931
12917
|
{
|
|
12932
12918
|
className: "h-8 w-8",
|
|
12933
12919
|
style: { color: c?.primary ?? "hsl(var(--primary))" }
|
|
@@ -12956,7 +12942,7 @@ function rm({
|
|
|
12956
12942
|
backgroundColor: c?.primary ?? void 0
|
|
12957
12943
|
},
|
|
12958
12944
|
children: [
|
|
12959
|
-
/* @__PURE__ */ l(
|
|
12945
|
+
/* @__PURE__ */ l(Jd, { className: "h-4 w-4 mr-2" }),
|
|
12960
12946
|
"Retry"
|
|
12961
12947
|
]
|
|
12962
12948
|
}
|
|
@@ -12965,7 +12951,7 @@ function rm({
|
|
|
12965
12951
|
}
|
|
12966
12952
|
);
|
|
12967
12953
|
}
|
|
12968
|
-
function
|
|
12954
|
+
function rm({ agentId: e, config: t }) {
|
|
12969
12955
|
const [n, r] = U(!1);
|
|
12970
12956
|
$(() => {
|
|
12971
12957
|
r(!0);
|
|
@@ -12974,7 +12960,7 @@ function om({ agentId: e, config: t }) {
|
|
|
12974
12960
|
r(!1), t?.onClose?.();
|
|
12975
12961
|
};
|
|
12976
12962
|
return /* @__PURE__ */ l(
|
|
12977
|
-
|
|
12963
|
+
tm,
|
|
12978
12964
|
{
|
|
12979
12965
|
title: t.title ?? "Medi Clinic",
|
|
12980
12966
|
titleImg: t.theme?.titleImg,
|
|
@@ -12984,8 +12970,8 @@ function om({ agentId: e, config: t }) {
|
|
|
12984
12970
|
environment: t.environment ?? "production",
|
|
12985
12971
|
displayMode: t.displayMode,
|
|
12986
12972
|
theme: t.theme,
|
|
12987
|
-
children: /* @__PURE__ */ l(
|
|
12988
|
-
|
|
12973
|
+
children: /* @__PURE__ */ l(pu, { children: /* @__PURE__ */ l(
|
|
12974
|
+
Jf,
|
|
12989
12975
|
{
|
|
12990
12976
|
isOpen: n,
|
|
12991
12977
|
agentId: e,
|
|
@@ -13002,21 +12988,21 @@ function om({ agentId: e, config: t }) {
|
|
|
13002
12988
|
}
|
|
13003
12989
|
);
|
|
13004
12990
|
}
|
|
13005
|
-
const
|
|
13006
|
-
const r = n || {}, o =
|
|
12991
|
+
const om = (e, t, n) => {
|
|
12992
|
+
const r = n || {}, o = Bl(e);
|
|
13007
12993
|
return o.render(
|
|
13008
|
-
/* @__PURE__ */ l(be, { children: /* @__PURE__ */ l(
|
|
12994
|
+
/* @__PURE__ */ l(be, { children: /* @__PURE__ */ l(rm, { agentId: t, config: r }) })
|
|
13009
12995
|
), o;
|
|
13010
12996
|
};
|
|
13011
|
-
typeof window < "u" && (window.renderMedAssist =
|
|
12997
|
+
typeof window < "u" && (window.renderMedAssist = om);
|
|
13012
12998
|
export {
|
|
13013
12999
|
G as A,
|
|
13014
13000
|
ce as B,
|
|
13015
13001
|
No as C,
|
|
13016
13002
|
K as D,
|
|
13017
|
-
|
|
13003
|
+
qs as M,
|
|
13018
13004
|
In as P,
|
|
13019
|
-
|
|
13005
|
+
Ji as R,
|
|
13020
13006
|
be as S,
|
|
13021
13007
|
de as T,
|
|
13022
13008
|
ar as X,
|
|
@@ -13025,25 +13011,24 @@ export {
|
|
|
13025
13011
|
zt as b,
|
|
13026
13012
|
Fe as c,
|
|
13027
13013
|
U as d,
|
|
13028
|
-
|
|
13014
|
+
Ql as e,
|
|
13029
13015
|
An as f,
|
|
13030
13016
|
At as g,
|
|
13031
13017
|
Rt as h,
|
|
13032
13018
|
D as i,
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13019
|
+
_m as j,
|
|
13020
|
+
bu as k,
|
|
13021
|
+
Qa as l,
|
|
13022
|
+
Ju as m,
|
|
13023
|
+
el as n,
|
|
13024
|
+
gm as o,
|
|
13025
|
+
Su as p,
|
|
13040
13026
|
ae as q,
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13027
|
+
Xr as r,
|
|
13028
|
+
om as renderMedAssist,
|
|
13029
|
+
jt as s,
|
|
13030
|
+
yu as t,
|
|
13045
13031
|
l as u,
|
|
13046
|
-
|
|
13047
|
-
Cu as w,
|
|
13032
|
+
wu as v,
|
|
13048
13033
|
$ as y
|
|
13049
13034
|
};
|