@box/box-ai-content-answers 0.92.3 → 0.92.4
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/esm/lib/components/answer/answer.js +239 -235
- package/package.json +2 -2
- package/styles/answer.css +1 -1
|
@@ -2,7 +2,7 @@ import { c as k } from "../../../../chunks/markdown.js";
|
|
|
2
2
|
import { useBreakpoint as ct, Breakpoint as ut, Text as lt } from "@box/blueprint-web";
|
|
3
3
|
import { AlertTriangle as ft } from "@box/blueprint-web-assets/icons/Line";
|
|
4
4
|
import { BoxAiLogo as dt } from "@box/blueprint-web-assets/icons/Logo";
|
|
5
|
-
import { Size5 as
|
|
5
|
+
import { Size5 as yt, Size6 as pt, Gray65 as $t, Size4 as xr } from "@box/blueprint-web-assets/tokens/tokens";
|
|
6
6
|
import ht from "clsx";
|
|
7
7
|
import * as Q from "react";
|
|
8
8
|
import { useIntl as St } from "react-intl";
|
|
@@ -13,35 +13,35 @@ import { CopyButton as gt } from "./copy-button.js";
|
|
|
13
13
|
import { InlineError as bt } from "./inline-error.js";
|
|
14
14
|
import { ThumbButtons as Ot } from "./thumb-buttons.js";
|
|
15
15
|
import er from "./messages.js";
|
|
16
|
-
import { References as
|
|
17
|
-
import { jsxs as _, jsx as
|
|
16
|
+
import { References as wt } from "./references.js";
|
|
17
|
+
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
18
18
|
import '../../../../styles/answer.css';var C = function(r) {
|
|
19
19
|
return r && r.Math === Math && r;
|
|
20
|
-
},
|
|
20
|
+
}, y = (
|
|
21
21
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
22
22
|
C(typeof globalThis == "object" && globalThis) || C(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
23
23
|
C(typeof self == "object" && self) || C(typeof k == "object" && k) || C(typeof k == "object" && k) || // eslint-disable-next-line no-new-func -- fallback
|
|
24
24
|
/* @__PURE__ */ function() {
|
|
25
25
|
return this;
|
|
26
26
|
}() || Function("return this")()
|
|
27
|
-
),
|
|
27
|
+
), Ir = {}, S = function(r) {
|
|
28
28
|
try {
|
|
29
29
|
return !!r();
|
|
30
30
|
} catch {
|
|
31
31
|
return !0;
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, It = S, b = !It(function() {
|
|
34
34
|
return Object.defineProperty({}, 1, { get: function() {
|
|
35
35
|
return 7;
|
|
36
36
|
} })[1] !== 7;
|
|
37
|
-
}),
|
|
37
|
+
}), Et = S, pe = !Et(function() {
|
|
38
38
|
var r = (function() {
|
|
39
39
|
}).bind();
|
|
40
40
|
return typeof r != "function" || r.hasOwnProperty("prototype");
|
|
41
|
-
}), Pt =
|
|
41
|
+
}), Pt = pe, z = Function.prototype.call, N = Pt ? z.bind(z) : function() {
|
|
42
42
|
return z.apply(z, arguments);
|
|
43
|
-
},
|
|
44
|
-
|
|
43
|
+
}, $e = {}, he = {}.propertyIsEnumerable, Se = Object.getOwnPropertyDescriptor, Tt = Se && !he.call({ 1: 2 }, 1);
|
|
44
|
+
$e.f = Tt ? function(e) {
|
|
45
45
|
var t = Se(this, e);
|
|
46
46
|
return !!t && t.enumerable;
|
|
47
47
|
} : he;
|
|
@@ -52,41 +52,41 @@ var me = function(r, e) {
|
|
|
52
52
|
writable: !(r & 4),
|
|
53
53
|
value: e
|
|
54
54
|
};
|
|
55
|
-
}, ge =
|
|
55
|
+
}, ge = pe, be = Function.prototype, Sr = be.call, _t = ge && be.bind.bind(Sr, Sr), v = ge ? _t : function(r) {
|
|
56
56
|
return function() {
|
|
57
57
|
return Sr.apply(r, arguments);
|
|
58
58
|
};
|
|
59
|
-
}, Oe =
|
|
59
|
+
}, Oe = v, Rt = Oe({}.toString), jt = Oe("".slice), Nt = function(r) {
|
|
60
60
|
return jt(Rt(r), 8, -1);
|
|
61
|
-
}, Dt =
|
|
61
|
+
}, Dt = v, Ct = S, Mt = Nt, tr = Object, At = Dt("".split), Ft = Ct(function() {
|
|
62
62
|
return !tr("z").propertyIsEnumerable(0);
|
|
63
63
|
}) ? function(r) {
|
|
64
64
|
return Mt(r) === "String" ? At(r, "") : tr(r);
|
|
65
|
-
} : tr,
|
|
65
|
+
} : tr, we = function(r) {
|
|
66
66
|
return r == null;
|
|
67
|
-
}, Bt =
|
|
67
|
+
}, Bt = we, Lt = TypeError, Ie = function(r) {
|
|
68
68
|
if (Bt(r)) throw new Lt("Can't call method on " + r);
|
|
69
69
|
return r;
|
|
70
|
-
}, xt = Ft, kt =
|
|
70
|
+
}, xt = Ft, kt = Ie, Er = function(r) {
|
|
71
71
|
return xt(kt(r));
|
|
72
|
-
}, ar = typeof document == "object" && document.all,
|
|
72
|
+
}, ar = typeof document == "object" && document.all, p = typeof ar > "u" && ar !== void 0 ? function(r) {
|
|
73
73
|
return typeof r == "function" || r === ar;
|
|
74
74
|
} : function(r) {
|
|
75
75
|
return typeof r == "function";
|
|
76
|
-
}, zt =
|
|
76
|
+
}, zt = p, A = function(r) {
|
|
77
77
|
return typeof r == "object" ? r !== null : zt(r);
|
|
78
|
-
}, nr =
|
|
78
|
+
}, nr = y, Ut = p, Gt = function(r) {
|
|
79
79
|
return Ut(r) ? r : void 0;
|
|
80
80
|
}, Pr = function(r, e) {
|
|
81
|
-
return arguments.length < 2 ?
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
!
|
|
85
|
-
var
|
|
81
|
+
return arguments.length < 2 ? Gt(nr[r]) : nr[r] && nr[r][e];
|
|
82
|
+
}, Kt = v, Ht = Kt({}.isPrototypeOf), Vt = typeof navigator < "u" && String(navigator.userAgent) || "", Ee = y, or = Vt, kr = Ee.process, zr = Ee.Deno, Ur = kr && kr.versions || zr && zr.version, Gr = Ur && Ur.v8, l, W;
|
|
83
|
+
Gr && (l = Gr.split("."), W = l[0] > 0 && l[0] < 4 ? 1 : +(l[0] + l[1]));
|
|
84
|
+
!W && or && (l = or.match(/Edge\/(\d+)/), (!l || l[1] >= 74) && (l = or.match(/Chrome\/(\d+)/), l && (W = +l[1])));
|
|
85
|
+
var Wt = W, Kr = Wt, Yt = S, qt = y, Xt = qt.String, Pe = !!Object.getOwnPropertySymbols && !Yt(function() {
|
|
86
86
|
var r = Symbol("symbol detection");
|
|
87
87
|
return !Xt(r) || !(Object(r) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
88
|
-
!Symbol.sham &&
|
|
89
|
-
}), Zt = Pe, Te = Zt && !Symbol.sham && typeof Symbol.iterator == "symbol", Jt = Pr, Qt =
|
|
88
|
+
!Symbol.sham && Kr && Kr < 41;
|
|
89
|
+
}), Zt = Pe, Te = Zt && !Symbol.sham && typeof Symbol.iterator == "symbol", Jt = Pr, Qt = p, ra = Ht, ea = Te, ta = Object, _e = ea ? function(r) {
|
|
90
90
|
return typeof r == "symbol";
|
|
91
91
|
} : function(r) {
|
|
92
92
|
var e = Jt("Symbol");
|
|
@@ -97,41 +97,41 @@ var Vt = V, Gr = Vt, Wt = S, Yt = p, Xt = Yt.String, Pe = !!Object.getOwnPropert
|
|
|
97
97
|
} catch {
|
|
98
98
|
return "Object";
|
|
99
99
|
}
|
|
100
|
-
}, oa =
|
|
100
|
+
}, oa = p, ia = na, sa = TypeError, Tr = function(r) {
|
|
101
101
|
if (oa(r)) return r;
|
|
102
|
-
throw new
|
|
103
|
-
},
|
|
102
|
+
throw new sa(ia(r) + " is not a function");
|
|
103
|
+
}, va = Tr, ca = we, Re = function(r, e) {
|
|
104
104
|
var t = r[e];
|
|
105
|
-
return ca(t) ? void 0 :
|
|
106
|
-
}, ir = N,
|
|
105
|
+
return ca(t) ? void 0 : va(t);
|
|
106
|
+
}, ir = N, sr = p, vr = A, ua = TypeError, la = function(r, e) {
|
|
107
107
|
var t, a;
|
|
108
|
-
if (e === "string" &&
|
|
108
|
+
if (e === "string" && sr(t = r.toString) && !vr(a = ir(t, r)) || sr(t = r.valueOf) && !vr(a = ir(t, r)) || e !== "string" && sr(t = r.toString) && !vr(a = ir(t, r))) return a;
|
|
109
109
|
throw new ua("Can't convert object to primitive value");
|
|
110
|
-
}, je = { exports: {} },
|
|
110
|
+
}, je = { exports: {} }, Hr = y, fa = Object.defineProperty, _r = function(r, e) {
|
|
111
111
|
try {
|
|
112
|
-
fa(
|
|
112
|
+
fa(Hr, r, { value: e, configurable: !0, writable: !0 });
|
|
113
113
|
} catch {
|
|
114
|
-
|
|
114
|
+
Hr[r] = e;
|
|
115
115
|
}
|
|
116
116
|
return e;
|
|
117
|
-
}, da =
|
|
118
|
-
(
|
|
117
|
+
}, da = y, ya = _r, Vr = "__core-js_shared__", Wr = je.exports = da[Vr] || ya(Vr, {});
|
|
118
|
+
(Wr.versions || (Wr.versions = [])).push({
|
|
119
119
|
version: "3.36.1",
|
|
120
120
|
mode: "global",
|
|
121
121
|
copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)",
|
|
122
122
|
license: "https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",
|
|
123
123
|
source: "https://github.com/zloirock/core-js"
|
|
124
124
|
});
|
|
125
|
-
var Rr = je.exports,
|
|
126
|
-
return
|
|
127
|
-
},
|
|
128
|
-
return
|
|
129
|
-
}, Sa =
|
|
125
|
+
var Rr = je.exports, Yr = Rr, Ne = function(r, e) {
|
|
126
|
+
return Yr[r] || (Yr[r] = e || {});
|
|
127
|
+
}, pa = Ie, $a = Object, ha = function(r) {
|
|
128
|
+
return $a(pa(r));
|
|
129
|
+
}, Sa = v, ma = ha, ga = Sa({}.hasOwnProperty), O = Object.hasOwn || function(e, t) {
|
|
130
130
|
return ga(ma(e), t);
|
|
131
|
-
}, ba =
|
|
132
|
-
return "Symbol(" + (r === void 0 ? "" : r) + ")_" +
|
|
133
|
-
},
|
|
134
|
-
return
|
|
131
|
+
}, ba = v, Oa = 0, wa = Math.random(), Ia = ba(1 .toString), De = function(r) {
|
|
132
|
+
return "Symbol(" + (r === void 0 ? "" : r) + ")_" + Ia(++Oa + wa, 36);
|
|
133
|
+
}, Ea = y, Pa = Ne, qr = O, Ta = De, _a = Pe, Ra = Te, j = Ea.Symbol, cr = Pa("wks"), ja = Ra ? j.for || j : j && j.withoutSetter || Ta, Na = function(r) {
|
|
134
|
+
return qr(cr, r) || (cr[r] = _a && qr(j, r) ? j[r] : ja("Symbol." + r)), cr[r];
|
|
135
135
|
}, Da = N, Xr = A, Zr = _e, Ca = Re, Ma = la, Aa = Na, Fa = TypeError, Ba = Aa("toPrimitive"), La = function(r, e) {
|
|
136
136
|
if (!Xr(r) || Zr(r)) return r;
|
|
137
137
|
var t = Ca(r, Ba), a;
|
|
@@ -143,21 +143,21 @@ var Rr = je.exports, Wr = Rr, Ne = function(r, e) {
|
|
|
143
143
|
}, xa = La, ka = _e, Ce = function(r) {
|
|
144
144
|
var e = xa(r, "string");
|
|
145
145
|
return ka(e) ? e : e + "";
|
|
146
|
-
}, za =
|
|
146
|
+
}, za = y, Jr = A, mr = za.document, Ua = Jr(mr) && Jr(mr.createElement), Ga = function(r) {
|
|
147
147
|
return Ua ? mr.createElement(r) : {};
|
|
148
|
-
},
|
|
149
|
-
return Object.defineProperty(
|
|
148
|
+
}, Ka = b, Ha = S, Va = Ga, Me = !Ka && !Ha(function() {
|
|
149
|
+
return Object.defineProperty(Va("div"), "a", {
|
|
150
150
|
get: function() {
|
|
151
151
|
return 7;
|
|
152
152
|
}
|
|
153
153
|
}).a !== 7;
|
|
154
|
-
}),
|
|
155
|
-
|
|
154
|
+
}), Wa = b, Ya = N, qa = $e, Xa = me, Za = Er, Ja = Ce, Qa = O, rn = Me, Qr = Object.getOwnPropertyDescriptor;
|
|
155
|
+
Ir.f = Wa ? Qr : function(e, t) {
|
|
156
156
|
if (e = Za(e), t = Ja(t), rn) try {
|
|
157
157
|
return Qr(e, t);
|
|
158
158
|
} catch {
|
|
159
159
|
}
|
|
160
|
-
if (Qa(e, t)) return Xa(!
|
|
160
|
+
if (Qa(e, t)) return Xa(!Ya(qa.f, e, t), e[t]);
|
|
161
161
|
};
|
|
162
162
|
var X = {}, en = b, tn = S, an = en && tn(function() {
|
|
163
163
|
return Object.defineProperty(function() {
|
|
@@ -165,11 +165,11 @@ var X = {}, en = b, tn = S, an = en && tn(function() {
|
|
|
165
165
|
value: 42,
|
|
166
166
|
writable: !1
|
|
167
167
|
}).prototype !== 42;
|
|
168
|
-
}), nn = A, on = String,
|
|
168
|
+
}), nn = A, on = String, sn = TypeError, Z = function(r) {
|
|
169
169
|
if (nn(r)) return r;
|
|
170
|
-
throw new
|
|
171
|
-
},
|
|
172
|
-
X.f =
|
|
170
|
+
throw new sn(on(r) + " is not an object");
|
|
171
|
+
}, vn = b, cn = Me, un = an, U = Z, re = Ce, ln = TypeError, ur = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, lr = "enumerable", fr = "configurable", dr = "writable";
|
|
172
|
+
X.f = vn ? un ? function(e, t, a) {
|
|
173
173
|
if (U(e), t = re(t), U(a), typeof e == "function" && t === "prototype" && "value" in a && dr in a && !a[dr]) {
|
|
174
174
|
var n = fn(e, t);
|
|
175
175
|
n && n[dr] && (e[t] = a.value, a = {
|
|
@@ -187,23 +187,23 @@ X.f = sn ? un ? function(e, t, a) {
|
|
|
187
187
|
if ("get" in a || "set" in a) throw new ln("Accessors not supported");
|
|
188
188
|
return "value" in a && (e[t] = a.value), e;
|
|
189
189
|
};
|
|
190
|
-
var dn = b,
|
|
191
|
-
return
|
|
190
|
+
var dn = b, yn = X, pn = me, Ae = dn ? function(r, e, t) {
|
|
191
|
+
return yn.f(r, e, pn(1, t));
|
|
192
192
|
} : function(r, e, t) {
|
|
193
193
|
return r[e] = t, r;
|
|
194
|
-
}, Fe = { exports: {} }, gr = b,
|
|
194
|
+
}, Fe = { exports: {} }, gr = b, $n = O, Be = Function.prototype, hn = gr && Object.getOwnPropertyDescriptor, jr = $n(Be, "name"), Sn = jr && (function() {
|
|
195
195
|
}).name === "something", mn = jr && (!gr || gr && hn(Be, "name").configurable), gn = {
|
|
196
196
|
EXISTS: jr,
|
|
197
197
|
PROPER: Sn,
|
|
198
198
|
CONFIGURABLE: mn
|
|
199
|
-
}, bn =
|
|
199
|
+
}, bn = v, On = p, br = Rr, wn = bn(Function.toString);
|
|
200
200
|
On(br.inspectSource) || (br.inspectSource = function(r) {
|
|
201
|
-
return
|
|
201
|
+
return wn(r);
|
|
202
202
|
});
|
|
203
|
-
var
|
|
203
|
+
var In = br.inspectSource, En = y, Pn = p, ee = En.WeakMap, Tn = Pn(ee) && /native code/.test(String(ee)), _n = Ne, Rn = De, te = _n("keys"), jn = function(r) {
|
|
204
204
|
return te[r] || (te[r] = Rn(r));
|
|
205
|
-
}, Le = {}, Nn = Tn, xe =
|
|
206
|
-
return
|
|
205
|
+
}, Le = {}, Nn = Tn, xe = y, Dn = A, Cn = Ae, yr = O, pr = Rr, Mn = jn, An = Le, ae = "Object already initialized", Or = xe.TypeError, Fn = xe.WeakMap, Y, M, q, Bn = function(r) {
|
|
206
|
+
return q(r) ? M(r) : Y(r, {});
|
|
207
207
|
}, Ln = function(r) {
|
|
208
208
|
return function(e) {
|
|
209
209
|
var t;
|
|
@@ -212,49 +212,49 @@ var En = br.inspectSource, wn = p, Pn = $, ee = wn.WeakMap, Tn = Pn(ee) && /nati
|
|
|
212
212
|
return t;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
if (Nn ||
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
return e.facade = r,
|
|
215
|
+
if (Nn || pr.state) {
|
|
216
|
+
var f = pr.state || (pr.state = new Fn());
|
|
217
|
+
f.get = f.get, f.has = f.has, f.set = f.set, Y = function(r, e) {
|
|
218
|
+
if (f.has(r)) throw new Or(ae);
|
|
219
|
+
return e.facade = r, f.set(r, e), e;
|
|
220
220
|
}, M = function(r) {
|
|
221
|
-
return
|
|
222
|
-
},
|
|
223
|
-
return
|
|
221
|
+
return f.get(r) || {};
|
|
222
|
+
}, q = function(r) {
|
|
223
|
+
return f.has(r);
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
226
|
var R = Mn("state");
|
|
227
|
-
An[R] = !0,
|
|
228
|
-
if (
|
|
227
|
+
An[R] = !0, Y = function(r, e) {
|
|
228
|
+
if (yr(r, R)) throw new Or(ae);
|
|
229
229
|
return e.facade = r, Cn(r, R, e), e;
|
|
230
230
|
}, M = function(r) {
|
|
231
|
-
return
|
|
232
|
-
},
|
|
233
|
-
return
|
|
231
|
+
return yr(r, R) ? r[R] : {};
|
|
232
|
+
}, q = function(r) {
|
|
233
|
+
return yr(r, R);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
var xn = {
|
|
237
|
-
set:
|
|
237
|
+
set: Y,
|
|
238
238
|
get: M,
|
|
239
|
-
has:
|
|
239
|
+
has: q,
|
|
240
240
|
enforce: Bn,
|
|
241
241
|
getterFor: Ln
|
|
242
|
-
}, Nr =
|
|
243
|
-
return
|
|
242
|
+
}, Nr = v, kn = S, zn = p, G = O, wr = b, Un = gn.CONFIGURABLE, Gn = In, ke = xn, Kn = ke.enforce, Hn = ke.get, ne = String, V = Object.defineProperty, Vn = Nr("".slice), Wn = Nr("".replace), Yn = Nr([].join), qn = wr && !kn(function() {
|
|
243
|
+
return V(function() {
|
|
244
244
|
}, "length", { value: 8 }).length !== 8;
|
|
245
245
|
}), Xn = String(String).split("String"), Zn = Fe.exports = function(r, e, t) {
|
|
246
|
-
|
|
246
|
+
Vn(ne(e), 0, 7) === "Symbol(" && (e = "[" + Wn(ne(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!G(r, "name") || Un && r.name !== e) && (wr ? V(r, "name", { value: e, configurable: !0 }) : r.name = e), qn && t && G(t, "arity") && r.length !== t.arity && V(r, "length", { value: t.arity });
|
|
247
247
|
try {
|
|
248
|
-
t &&
|
|
248
|
+
t && G(t, "constructor") && t.constructor ? wr && V(r, "prototype", { writable: !1 }) : r.prototype && (r.prototype = void 0);
|
|
249
249
|
} catch {
|
|
250
250
|
}
|
|
251
|
-
var a =
|
|
252
|
-
return
|
|
251
|
+
var a = Kn(r);
|
|
252
|
+
return G(a, "source") || (a.source = Yn(Xn, typeof e == "string" ? e : "")), r;
|
|
253
253
|
};
|
|
254
254
|
Function.prototype.toString = Zn(function() {
|
|
255
|
-
return zn(this) &&
|
|
255
|
+
return zn(this) && Hn(this).source || Gn(this);
|
|
256
256
|
}, "toString");
|
|
257
|
-
var Jn = Fe.exports, Qn =
|
|
257
|
+
var Jn = Fe.exports, Qn = p, ro = X, eo = Jn, to = _r, ao = function(r, e, t, a) {
|
|
258
258
|
a || (a = {});
|
|
259
259
|
var n = a.enumerable, o = a.name !== void 0 ? a.name : e;
|
|
260
260
|
if (Qn(t) && eo(t, o, a), a.global)
|
|
@@ -275,25 +275,25 @@ var Jn = Fe.exports, Qn = $, ro = X, eo = Jn, to = _r, ao = function(r, e, t, a)
|
|
|
275
275
|
}, ze = {}, no = Math.ceil, oo = Math.floor, io = Math.trunc || function(e) {
|
|
276
276
|
var t = +e;
|
|
277
277
|
return (t > 0 ? oo : no)(t);
|
|
278
|
-
},
|
|
278
|
+
}, so = io, Dr = function(r) {
|
|
279
279
|
var e = +r;
|
|
280
|
-
return e !== e || e === 0 ? 0 :
|
|
281
|
-
},
|
|
282
|
-
var t =
|
|
280
|
+
return e !== e || e === 0 ? 0 : so(e);
|
|
281
|
+
}, vo = Dr, co = Math.max, uo = Math.min, lo = function(r, e) {
|
|
282
|
+
var t = vo(r);
|
|
283
283
|
return t < 0 ? co(t + e, 0) : uo(t, e);
|
|
284
|
-
}, fo = Dr,
|
|
284
|
+
}, fo = Dr, yo = Math.min, po = function(r) {
|
|
285
285
|
var e = fo(r);
|
|
286
|
-
return e > 0 ?
|
|
287
|
-
},
|
|
288
|
-
return
|
|
289
|
-
}, So =
|
|
286
|
+
return e > 0 ? yo(e, 9007199254740991) : 0;
|
|
287
|
+
}, $o = po, ho = function(r) {
|
|
288
|
+
return $o(r.length);
|
|
289
|
+
}, So = Er, mo = lo, go = ho, oe = function(r) {
|
|
290
290
|
return function(e, t, a) {
|
|
291
291
|
var n = So(e), o = go(n);
|
|
292
292
|
if (o === 0) return !r && -1;
|
|
293
|
-
var i = mo(a, o),
|
|
293
|
+
var i = mo(a, o), s;
|
|
294
294
|
if (r && t !== t) {
|
|
295
295
|
for (; o > i; )
|
|
296
|
-
if (
|
|
296
|
+
if (s = n[i++], s !== s) return !0;
|
|
297
297
|
} else for (; o > i; i++)
|
|
298
298
|
if ((r || i in n) && n[i] === t) return r || i || 0;
|
|
299
299
|
return !r && -1;
|
|
@@ -305,10 +305,10 @@ var Jn = Fe.exports, Qn = $, ro = X, eo = Jn, to = _r, ao = function(r, e, t, a)
|
|
|
305
305
|
// `Array.prototype.indexOf` method
|
|
306
306
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
307
307
|
indexOf: oe(!1)
|
|
308
|
-
}, Oo =
|
|
309
|
-
var t =
|
|
310
|
-
for (o in t)
|
|
311
|
-
for (; e.length > a; )
|
|
308
|
+
}, Oo = v, $r = O, wo = Er, Io = bo.indexOf, Eo = Le, ie = Oo([].push), Po = function(r, e) {
|
|
309
|
+
var t = wo(r), a = 0, n = [], o;
|
|
310
|
+
for (o in t) !$r(Eo, o) && $r(t, o) && ie(n, o);
|
|
311
|
+
for (; e.length > a; ) $r(t, o = e[a++]) && (~Io(n, o) || ie(n, o));
|
|
312
312
|
return n;
|
|
313
313
|
}, To = [
|
|
314
314
|
"constructor",
|
|
@@ -324,81 +324,81 @@ ze.f = Object.getOwnPropertyNames || function(e) {
|
|
|
324
324
|
};
|
|
325
325
|
var Ue = {};
|
|
326
326
|
Ue.f = Object.getOwnPropertySymbols;
|
|
327
|
-
var No = Pr, Do =
|
|
327
|
+
var No = Pr, Do = v, Co = ze, Mo = Ue, Ao = Z, Fo = Do([].concat), Bo = No("Reflect", "ownKeys") || function(e) {
|
|
328
328
|
var t = Co.f(Ao(e)), a = Mo.f;
|
|
329
329
|
return a ? Fo(t, a(e)) : t;
|
|
330
|
-
},
|
|
330
|
+
}, se = O, Lo = Bo, xo = Ir, ko = X, zo = function(r, e, t) {
|
|
331
331
|
for (var a = Lo(e), n = ko.f, o = xo.f, i = 0; i < a.length; i++) {
|
|
332
|
-
var
|
|
333
|
-
!
|
|
332
|
+
var s = a[i];
|
|
333
|
+
!se(r, s) && !(t && se(t, s)) && n(r, s, o(e, s));
|
|
334
334
|
}
|
|
335
|
-
}, Uo = S,
|
|
336
|
-
var t = Ho
|
|
337
|
-
return t ===
|
|
338
|
-
},
|
|
339
|
-
return String(r).replace(
|
|
340
|
-
},
|
|
341
|
-
var t = r.target, a = r.global, n = r.stat, o, i,
|
|
342
|
-
if (a ? i =
|
|
343
|
-
if (m = e[
|
|
335
|
+
}, Uo = S, Go = p, Ko = /#|\.prototype\./, F = function(r, e) {
|
|
336
|
+
var t = Vo[Ho(r)];
|
|
337
|
+
return t === Yo ? !0 : t === Wo ? !1 : Go(e) ? Uo(e) : !!e;
|
|
338
|
+
}, Ho = F.normalize = function(r) {
|
|
339
|
+
return String(r).replace(Ko, ".").toLowerCase();
|
|
340
|
+
}, Vo = F.data = {}, Wo = F.NATIVE = "N", Yo = F.POLYFILL = "P", qo = F, K = y, Xo = Ir.f, Zo = Ae, Jo = ao, Qo = _r, ri = zo, ei = qo, w = function(r, e) {
|
|
341
|
+
var t = r.target, a = r.global, n = r.stat, o, i, s, h, m, D;
|
|
342
|
+
if (a ? i = K : n ? i = K[t] || Qo(t, {}) : i = K[t] && K[t].prototype, i) for (s in e) {
|
|
343
|
+
if (m = e[s], r.dontCallGetSet ? (D = Xo(i, s), h = D && D.value) : h = i[s], o = ei(a ? s : t + (n ? "." : "#") + s, r.forced), !o && h !== void 0) {
|
|
344
344
|
if (typeof m == typeof h) continue;
|
|
345
345
|
ri(m, h);
|
|
346
346
|
}
|
|
347
|
-
(r.sham || h && h.sham) && Zo(m, "sham", !0), Jo(i,
|
|
347
|
+
(r.sham || h && h.sham) && Zo(m, "sham", !0), Jo(i, s, m, r);
|
|
348
348
|
}
|
|
349
|
-
}, hr =
|
|
349
|
+
}, hr = v, H = Set.prototype, $ = {
|
|
350
350
|
// eslint-disable-next-line es/no-set -- safe
|
|
351
351
|
Set,
|
|
352
|
-
add: hr(
|
|
353
|
-
has: hr(
|
|
354
|
-
remove: hr(
|
|
355
|
-
proto:
|
|
356
|
-
}, ti =
|
|
352
|
+
add: hr(H.add),
|
|
353
|
+
has: hr(H.has),
|
|
354
|
+
remove: hr(H.delete),
|
|
355
|
+
proto: H
|
|
356
|
+
}, ti = $.has, I = function(r) {
|
|
357
357
|
return ti(r), r;
|
|
358
|
-
}, ai = N,
|
|
358
|
+
}, ai = N, E = function(r, e, t) {
|
|
359
359
|
for (var a = t ? r : r.iterator, n = r.next, o, i; !(o = ai(n, a)).done; )
|
|
360
360
|
if (i = e(o.value), i !== void 0) return i;
|
|
361
|
-
},
|
|
362
|
-
return t ? ni({ iterator:
|
|
363
|
-
},
|
|
361
|
+
}, Ge = v, ni = E, Ke = $, oi = Ke.Set, He = Ke.proto, ii = Ge(He.forEach), Ve = Ge(He.keys), si = Ve(new oi()).next, B = function(r, e, t) {
|
|
362
|
+
return t ? ni({ iterator: Ve(r), next: si }, e) : ii(r, e);
|
|
363
|
+
}, We = $, vi = B, ci = We.Set, ui = We.add, Cr = function(r) {
|
|
364
364
|
var e = new ci();
|
|
365
|
-
return
|
|
365
|
+
return vi(r, function(t) {
|
|
366
366
|
ui(e, t);
|
|
367
367
|
}), e;
|
|
368
|
-
}, li =
|
|
368
|
+
}, li = v, fi = Tr, di = function(r, e, t) {
|
|
369
369
|
try {
|
|
370
370
|
return li(fi(Object.getOwnPropertyDescriptor(r, e)[t]));
|
|
371
371
|
} catch {
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, yi = di, pi = $, L = yi(pi.proto, "size", "get") || function(r) {
|
|
374
374
|
return r.size;
|
|
375
|
-
},
|
|
375
|
+
}, $i = function(r) {
|
|
376
376
|
return {
|
|
377
377
|
iterator: r,
|
|
378
378
|
next: r.next,
|
|
379
379
|
done: !1
|
|
380
380
|
};
|
|
381
|
-
},
|
|
382
|
-
this.set = r, this.size = bi(e, 0), this.has =
|
|
381
|
+
}, ve = Tr, Ye = Z, ce = N, hi = Dr, Si = $i, ue = "Invalid size", mi = RangeError, gi = TypeError, bi = Math.max, qe = function(r, e) {
|
|
382
|
+
this.set = r, this.size = bi(e, 0), this.has = ve(r.has), this.keys = ve(r.keys);
|
|
383
383
|
};
|
|
384
|
-
|
|
384
|
+
qe.prototype = {
|
|
385
385
|
getIterator: function() {
|
|
386
|
-
return Si(
|
|
386
|
+
return Si(Ye(ce(this.keys, this.set)));
|
|
387
387
|
},
|
|
388
388
|
includes: function(r) {
|
|
389
389
|
return ce(this.has, this.set, r);
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
var P = function(r) {
|
|
393
|
-
|
|
393
|
+
Ye(r);
|
|
394
394
|
var e = +r.size;
|
|
395
395
|
if (e !== e) throw new gi(ue);
|
|
396
396
|
var t = hi(e);
|
|
397
397
|
if (t < 0) throw new mi(ue);
|
|
398
|
-
return new
|
|
399
|
-
}, Oi =
|
|
400
|
-
var t = Oi(this), a =
|
|
401
|
-
return
|
|
398
|
+
return new qe(r, t);
|
|
399
|
+
}, Oi = I, Xe = $, wi = Cr, Ii = L, Ei = P, Pi = B, Ti = E, _i = Xe.has, le = Xe.remove, Ri = function(e) {
|
|
400
|
+
var t = Oi(this), a = Ei(e), n = wi(t);
|
|
401
|
+
return Ii(t) <= a.size ? Pi(t, function(o) {
|
|
402
402
|
a.includes(o) && le(n, o);
|
|
403
403
|
}) : Ti(a.getIterator(), function(o) {
|
|
404
404
|
_i(t, o) && le(n, o);
|
|
@@ -429,101 +429,102 @@ var P = function(r) {
|
|
|
429
429
|
} catch {
|
|
430
430
|
return !1;
|
|
431
431
|
}
|
|
432
|
-
}, Ni =
|
|
432
|
+
}, Ni = w, Di = Ri, Ci = T;
|
|
433
433
|
Ni({ target: "Set", proto: !0, real: !0, forced: !Ci("difference") }, {
|
|
434
434
|
difference: Di
|
|
435
435
|
});
|
|
436
|
-
var Mi =
|
|
436
|
+
var Mi = I, Mr = $, Ai = L, Fi = P, Bi = B, Li = E, xi = Mr.Set, de = Mr.add, ki = Mr.has, zi = function(e) {
|
|
437
437
|
var t = Mi(this), a = Fi(e), n = new xi();
|
|
438
438
|
return Ai(t) > a.size ? Li(a.getIterator(), function(o) {
|
|
439
439
|
ki(t, o) && de(n, o);
|
|
440
440
|
}) : Bi(t, function(o) {
|
|
441
441
|
a.includes(o) && de(n, o);
|
|
442
442
|
}), n;
|
|
443
|
-
}, Ui =
|
|
443
|
+
}, Ui = w, Gi = S, Ki = zi, Hi = T, Vi = !Hi("intersection") || Gi(function() {
|
|
444
444
|
return String(Array.from((/* @__PURE__ */ new Set([1, 2, 3])).intersection(/* @__PURE__ */ new Set([3, 2])))) !== "3,2";
|
|
445
445
|
});
|
|
446
|
-
Ui({ target: "Set", proto: !0, real: !0, forced:
|
|
447
|
-
intersection:
|
|
446
|
+
Ui({ target: "Set", proto: !0, real: !0, forced: Vi }, {
|
|
447
|
+
intersection: Ki
|
|
448
448
|
});
|
|
449
|
-
var
|
|
449
|
+
var Wi = N, ye = Z, Yi = Re, Ze = function(r, e, t) {
|
|
450
450
|
var a, n;
|
|
451
|
-
|
|
451
|
+
ye(r);
|
|
452
452
|
try {
|
|
453
|
-
if (a =
|
|
453
|
+
if (a = Yi(r, "return"), !a) {
|
|
454
454
|
if (e === "throw") throw t;
|
|
455
455
|
return t;
|
|
456
456
|
}
|
|
457
|
-
a =
|
|
457
|
+
a = Wi(a, r);
|
|
458
458
|
} catch (o) {
|
|
459
459
|
n = !0, a = o;
|
|
460
460
|
}
|
|
461
461
|
if (e === "throw") throw t;
|
|
462
462
|
if (n) throw a;
|
|
463
|
-
return
|
|
464
|
-
},
|
|
465
|
-
var t =
|
|
463
|
+
return ye(a), t;
|
|
464
|
+
}, qi = I, Xi = $.has, Zi = L, Ji = P, Qi = B, rs = E, es = Ze, ts = function(e) {
|
|
465
|
+
var t = qi(this), a = Ji(e);
|
|
466
466
|
if (Zi(t) <= a.size) return Qi(t, function(o) {
|
|
467
467
|
if (a.includes(o)) return !1;
|
|
468
468
|
}, !0) !== !1;
|
|
469
469
|
var n = a.getIterator();
|
|
470
|
-
return
|
|
471
|
-
if (Xi(t, o)) return
|
|
470
|
+
return rs(n, function(o) {
|
|
471
|
+
if (Xi(t, o)) return es(n, "normal", !1);
|
|
472
472
|
}) !== !1;
|
|
473
|
-
},
|
|
474
|
-
|
|
475
|
-
isDisjointFrom:
|
|
473
|
+
}, as = w, ns = ts, os = T;
|
|
474
|
+
as({ target: "Set", proto: !0, real: !0, forced: !os("isDisjointFrom") }, {
|
|
475
|
+
isDisjointFrom: ns
|
|
476
476
|
});
|
|
477
|
-
var
|
|
478
|
-
var t =
|
|
479
|
-
return
|
|
477
|
+
var is = I, ss = L, vs = B, cs = P, us = function(e) {
|
|
478
|
+
var t = is(this), a = cs(e);
|
|
479
|
+
return ss(t) > a.size ? !1 : vs(t, function(n) {
|
|
480
480
|
if (!a.includes(n)) return !1;
|
|
481
481
|
}, !0) !== !1;
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
isSubsetOf:
|
|
482
|
+
}, ls = w, fs = us, ds = T;
|
|
483
|
+
ls({ target: "Set", proto: !0, real: !0, forced: !ds("isSubsetOf") }, {
|
|
484
|
+
isSubsetOf: fs
|
|
485
485
|
});
|
|
486
|
-
var
|
|
487
|
-
var t =
|
|
488
|
-
if (
|
|
486
|
+
var ys = I, ps = $.has, $s = L, hs = P, Ss = E, ms = Ze, gs = function(e) {
|
|
487
|
+
var t = ys(this), a = hs(e);
|
|
488
|
+
if ($s(t) < a.size) return !1;
|
|
489
489
|
var n = a.getIterator();
|
|
490
|
-
return
|
|
491
|
-
if (
|
|
490
|
+
return Ss(n, function(o) {
|
|
491
|
+
if (!ps(t, o)) return ms(n, "normal", !1);
|
|
492
492
|
}) !== !1;
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
isSupersetOf:
|
|
493
|
+
}, bs = w, Os = gs, ws = T;
|
|
494
|
+
bs({ target: "Set", proto: !0, real: !0, forced: !ws("isSupersetOf") }, {
|
|
495
|
+
isSupersetOf: Os
|
|
496
496
|
});
|
|
497
|
-
var
|
|
498
|
-
var t =
|
|
499
|
-
return
|
|
500
|
-
|
|
497
|
+
var Is = I, Ar = $, Es = Cr, Ps = P, Ts = E, _s = Ar.add, Rs = Ar.has, js = Ar.remove, Ns = function(e) {
|
|
498
|
+
var t = Is(this), a = Ps(e).getIterator(), n = Es(t);
|
|
499
|
+
return Ts(a, function(o) {
|
|
500
|
+
Rs(t, o) ? js(n, o) : _s(n, o);
|
|
501
501
|
}), n;
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
symmetricDifference:
|
|
502
|
+
}, Ds = w, Cs = Ns, Ms = T;
|
|
503
|
+
Ds({ target: "Set", proto: !0, real: !0, forced: !Ms("symmetricDifference") }, {
|
|
504
|
+
symmetricDifference: Cs
|
|
505
505
|
});
|
|
506
|
-
var
|
|
507
|
-
var t =
|
|
508
|
-
return
|
|
509
|
-
|
|
506
|
+
var As = I, Fs = $.add, Bs = Cr, Ls = P, xs = E, ks = function(e) {
|
|
507
|
+
var t = As(this), a = Ls(e).getIterator(), n = Bs(t);
|
|
508
|
+
return xs(a, function(o) {
|
|
509
|
+
Fs(n, o);
|
|
510
510
|
}), n;
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
union:
|
|
511
|
+
}, zs = w, Us = ks, Gs = T;
|
|
512
|
+
zs({ target: "Set", proto: !0, real: !0, forced: !Gs("union") }, {
|
|
513
|
+
union: Us
|
|
514
514
|
});
|
|
515
|
-
const
|
|
516
|
-
answer:
|
|
517
|
-
alertIcon:
|
|
518
|
-
error:
|
|
519
|
-
footer:
|
|
520
|
-
copyButtonContainer:
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
515
|
+
const Ks = "_answer_ohwyy_1", Hs = "_alertIcon_ohwyy_5", Vs = "_error_ohwyy_8", Ws = "_footer_ohwyy_12", Ys = "_copyButtonContainer_ohwyy_18", qs = "_feedbackButtonsContainer_ohwyy_19", Xs = "_shouldHaveMarginTop_ohwyy_23", Zs = "_shouldUseAnimation_ohwyy_26", Js = "_shouldAnimateHeight_ohwyy_30", Qs = "_footerButtons_ohwyy_34", rv = "_iconAvatar_ohwyy_40", u = {
|
|
516
|
+
answer: Ks,
|
|
517
|
+
alertIcon: Hs,
|
|
518
|
+
error: Vs,
|
|
519
|
+
footer: Ws,
|
|
520
|
+
copyButtonContainer: Ys,
|
|
521
|
+
feedbackButtonsContainer: qs,
|
|
522
|
+
shouldHaveMarginTop: Xs,
|
|
523
|
+
shouldUseAnimation: Zs,
|
|
524
|
+
shouldAnimateHeight: Js,
|
|
525
|
+
footerButtons: Qs,
|
|
526
|
+
iconAvatar: rv
|
|
527
|
+
}, ev = /* @__PURE__ */ new Set([d.RATE_LIMITING, d.NO_CONTENT, d.PRECONDITION_FAILED, d.GENERAL, d.AGENT_NOT_FOUND]), gv = /* @__PURE__ */ Q.memo(({
|
|
527
528
|
answer: r,
|
|
528
529
|
citations: e,
|
|
529
530
|
error: t,
|
|
@@ -531,7 +532,7 @@ const Gv = "_answer_qd3qe_1", Kv = "_alertIcon_qd3qe_5", Hv = "_error_qd3qe_8",
|
|
|
531
532
|
hostAppName: n,
|
|
532
533
|
feedbackValue: o,
|
|
533
534
|
isCitationsEnabled: i = !1,
|
|
534
|
-
isCompleted:
|
|
535
|
+
isCompleted: s = !1,
|
|
535
536
|
isFeedbackEnabled: h = !1,
|
|
536
537
|
isLoading: m = !1,
|
|
537
538
|
isMarkdownEnabled: D = !1,
|
|
@@ -544,39 +545,42 @@ const Gv = "_answer_qd3qe_1", Kv = "_alertIcon_qd3qe_5", Hv = "_error_qd3qe_8",
|
|
|
544
545
|
setAnswerFeedback: tt,
|
|
545
546
|
questionId: at
|
|
546
547
|
}) => {
|
|
547
|
-
const Fr =
|
|
548
|
+
const Fr = ev.has(t), nt = m && !r && !t, [ot, it] = Q.useState(s), {
|
|
548
549
|
formatMessage: J
|
|
549
|
-
} = St(), Br = ct() === ut.Small ?
|
|
550
|
+
} = St(), Br = ct() === ut.Small ? yt : pt;
|
|
550
551
|
Q.useEffect(() => {
|
|
551
|
-
setTimeout(() => it(
|
|
552
|
-
}, [
|
|
553
|
-
const Lr = () => /* @__PURE__ */
|
|
554
|
-
className:
|
|
555
|
-
color:
|
|
552
|
+
setTimeout(() => it(s), 0);
|
|
553
|
+
}, [s]);
|
|
554
|
+
const Lr = () => /* @__PURE__ */ c(ft, {
|
|
555
|
+
className: u.alertIcon,
|
|
556
|
+
color: $t,
|
|
556
557
|
"data-testid": "content-answers-error-alert-icon",
|
|
557
558
|
height: xr,
|
|
558
559
|
role: "presentation",
|
|
559
560
|
width: xr
|
|
560
|
-
}),
|
|
561
|
+
}), st = () => /* @__PURE__ */ _(lt, {
|
|
561
562
|
as: "p",
|
|
562
|
-
className:
|
|
563
|
+
className: u.error,
|
|
563
564
|
color: "textOnLightSecondary",
|
|
564
565
|
"data-testid": "content-answers-error",
|
|
565
566
|
variant: "caption",
|
|
566
567
|
children: [t === d.RESPONSE_INTERRUPTED && J(er.responseInterruptedError), t === d.RESPONSE_FAILED && J(er.responseFailedError), t === d.RESPONSE_STOPPED && J(er.responseStoppedError), t !== d.RESPONSE_STOPPED && Lr()]
|
|
567
|
-
}),
|
|
568
|
-
className:
|
|
569
|
-
children: [h ? /* @__PURE__ */
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
568
|
+
}), vt = () => t !== d.RESPONSE_STOPPED ? /* @__PURE__ */ _("div", {
|
|
569
|
+
className: u.footerButtons,
|
|
570
|
+
children: [h ? /* @__PURE__ */ c("div", {
|
|
571
|
+
className: u.feedbackButtonsContainer,
|
|
572
|
+
children: /* @__PURE__ */ c(Ot, {
|
|
573
|
+
feedbackValue: o,
|
|
574
|
+
hostAppName: n,
|
|
575
|
+
items: Je,
|
|
576
|
+
questionId: at,
|
|
577
|
+
recordAction: x,
|
|
578
|
+
setAnswerFeedback: tt,
|
|
579
|
+
variant: g
|
|
580
|
+
})
|
|
581
|
+
}) : null, /* @__PURE__ */ c("div", {
|
|
582
|
+
className: u.copyButtonContainer,
|
|
583
|
+
children: /* @__PURE__ */ c(gt, {
|
|
580
584
|
answer: r,
|
|
581
585
|
onAnswerCopy: rt,
|
|
582
586
|
recordAction: x
|
|
@@ -585,16 +589,16 @@ const Gv = "_answer_qd3qe_1", Kv = "_alertIcon_qd3qe_5", Hv = "_error_qd3qe_8",
|
|
|
585
589
|
}) : r ? null : Lr();
|
|
586
590
|
return /* @__PURE__ */ _("div", {
|
|
587
591
|
"aria-live": "polite",
|
|
588
|
-
className:
|
|
592
|
+
className: u.answer,
|
|
589
593
|
"data-testid": "content-answers-answer",
|
|
590
594
|
children: [!Fr && !nt && /* @__PURE__ */ _(rr, {
|
|
591
595
|
className: "answer",
|
|
592
596
|
variant: g,
|
|
593
|
-
children: [g === "modal" && /* @__PURE__ */
|
|
597
|
+
children: [g === "modal" && /* @__PURE__ */ c(rr.Figure, {
|
|
594
598
|
variant: g,
|
|
595
|
-
children: /* @__PURE__ */
|
|
596
|
-
className:
|
|
597
|
-
children: /* @__PURE__ */
|
|
599
|
+
children: /* @__PURE__ */ c("div", {
|
|
600
|
+
className: u.iconAvatar,
|
|
601
|
+
children: /* @__PURE__ */ c(dt, {
|
|
598
602
|
height: Br,
|
|
599
603
|
role: "presentation",
|
|
600
604
|
width: Br
|
|
@@ -603,25 +607,25 @@ const Gv = "_answer_qd3qe_1", Kv = "_alertIcon_qd3qe_5", Hv = "_error_qd3qe_8",
|
|
|
603
607
|
}), /* @__PURE__ */ _(rr.Content, {
|
|
604
608
|
isUsedInsideSidebar: g === "sidebar",
|
|
605
609
|
variant: "answer",
|
|
606
|
-
children: [/* @__PURE__ */
|
|
610
|
+
children: [/* @__PURE__ */ c(mt, {
|
|
607
611
|
answer: r,
|
|
608
612
|
isMarkdownEnabled: D,
|
|
609
613
|
variant: g
|
|
610
|
-
}),
|
|
611
|
-
className: ht(
|
|
612
|
-
[
|
|
613
|
-
[
|
|
614
|
-
[
|
|
614
|
+
}), s && /* @__PURE__ */ _("div", {
|
|
615
|
+
className: ht(u.footer, {
|
|
616
|
+
[u.shouldHaveMarginTop]: r,
|
|
617
|
+
[u.shouldAnimateHeight]: ot,
|
|
618
|
+
[u.shouldUseAnimation]: et
|
|
615
619
|
}),
|
|
616
620
|
"data-testid": "content-answers-answer-footer",
|
|
617
|
-
children: [t &&
|
|
621
|
+
children: [t && st(), i && !t && /* @__PURE__ */ c(wt, {
|
|
618
622
|
citations: e,
|
|
619
623
|
onCitationClick: Qe,
|
|
620
624
|
recordAction: x
|
|
621
|
-
}),
|
|
625
|
+
}), vt()]
|
|
622
626
|
})]
|
|
623
627
|
})]
|
|
624
|
-
}), Fr && /* @__PURE__ */
|
|
628
|
+
}), Fr && /* @__PURE__ */ c(bt, {
|
|
625
629
|
contentType: a,
|
|
626
630
|
error: t,
|
|
627
631
|
recordAction: x,
|
|
@@ -630,6 +634,6 @@ const Gv = "_answer_qd3qe_1", Kv = "_alertIcon_qd3qe_5", Hv = "_error_qd3qe_8",
|
|
|
630
634
|
});
|
|
631
635
|
});
|
|
632
636
|
export {
|
|
633
|
-
|
|
634
|
-
|
|
637
|
+
gv as Answer,
|
|
638
|
+
gv as default
|
|
635
639
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/box-ai-content-answers",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@box/blueprint-web": "^7.8.0",
|
|
6
6
|
"@box/blueprint-web-assets": "^4.16.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"**/*.css"
|
|
57
57
|
],
|
|
58
58
|
"license": "SEE LICENSE IN LICENSE",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "4b9f89f7ee8b3ad903227091b720e2ff28578fcc"
|
|
60
60
|
}
|
package/styles/answer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._answer_ohwyy_1{white-space:pre-wrap;border:none}._answer_ohwyy_1 ._alertIcon_ohwyy_5{margin-left:.5rem}._answer_ohwyy_1 ._error_ohwyy_8{display:flex;align-items:center}._answer_ohwyy_1 ._footer_ohwyy_12{display:flex;align-items:center;justify-content:space-between;height:1.5rem}._answer_ohwyy_1 ._footer_ohwyy_12 ._copyButtonContainer_ohwyy_18,._answer_ohwyy_1 ._footer_ohwyy_12 ._feedbackButtonsContainer_ohwyy_19{opacity:0;transition:opacity .3s}._answer_ohwyy_1 ._footer_ohwyy_12._shouldHaveMarginTop_ohwyy_23{margin-top:.75rem}._answer_ohwyy_1 ._footer_ohwyy_12._shouldUseAnimation_ohwyy_26{max-height:0;overflow-y:hidden}._answer_ohwyy_1 ._footer_ohwyy_12._shouldUseAnimation_ohwyy_26._shouldAnimateHeight_ohwyy_30{max-height:200px;transition:max-height 1s ease-in}._answer_ohwyy_1 ._footer_ohwyy_12 ._footerButtons_ohwyy_34,._answer_ohwyy_1 ._footer_ohwyy_12 ._feedbackButtonsContainer_ohwyy_19{display:flex;gap:.25rem;margin-inline-start:auto}._answer_ohwyy_1 ._iconAvatar_ohwyy_40{display:flex;align-items:center;justify-content:center;width:var(--size-8);height:var(--size-8);border-radius:50%}@media (max-width: 374px){._answer_ohwyy_1 ._iconAvatar_ohwyy_40{width:var(--size-6);height:var(--size-6)}}._answer_ohwyy_1:hover ._copyButtonContainer_ohwyy_18,._answer_ohwyy_1:hover ._feedbackButtonsContainer_ohwyy_19,._answer_ohwyy_1 ._copyButtonContainer_ohwyy_18:focus-within,._answer_ohwyy_1 ._feedbackButtonsContainer_ohwyy_19:focus-within{opacity:1}._answer_ohwyy_1:hover ._copyButtonContainer_ohwyy_18>button,._answer_ohwyy_1:hover ._feedbackButtonsContainer_ohwyy_19>button,._answer_ohwyy_1 ._copyButtonContainer_ohwyy_18:focus-within>button,._answer_ohwyy_1 ._feedbackButtonsContainer_ohwyy_19:focus-within>button{outline-offset:-2px}
|