@asgard-js/react 0.2.42 → 0.2.43-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C, jsxs as U, Fragment as Ja } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import _a, { useRef as yt, useEffect as Oe, useState as we, useMemo as
|
|
2
|
+
import * as xe from "react";
|
|
3
|
+
import _a, { useRef as yt, useEffect as Oe, useState as we, useMemo as be, useCallback as oe, createContext as td, useContext as nd, useImperativeHandle as V7, memo as ot, Fragment as YC, forwardRef as Y7 } from "react";
|
|
4
4
|
import { AsgardServiceClient as X7, EventType as bl, Conversation as r1, Channel as XC, MessageTemplateType as qr, ToolCallConsentResult as hc } from "@asgard-js/core";
|
|
5
5
|
function KC(e) {
|
|
6
6
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
@@ -110,7 +110,7 @@ function eI(e) {
|
|
|
110
110
|
onSseError: c,
|
|
111
111
|
onBeforeSendMessage: f,
|
|
112
112
|
onChannelReady: d
|
|
113
|
-
} = e, h = !t, [p, g] = we(null), [m, y] = we(n ?? !0), [_, b] = we(!1), [v, x] = we(!1), [E, w] = we(null), k =
|
|
113
|
+
} = e, h = !t, [p, g] = we(null), [m, y] = we(n ?? !0), [_, b] = we(!1), [v, x] = we(!1), [E, w] = we(null), k = be(
|
|
114
114
|
() => h ? new r1({ messages: new Map(s?.map(($) => [$.messageId, $])) }) : null,
|
|
115
115
|
[h, s]
|
|
116
116
|
), S = oe(
|
|
@@ -219,7 +219,7 @@ function eI(e) {
|
|
|
219
219
|
const N = yt(null);
|
|
220
220
|
return Oe(() => {
|
|
221
221
|
p && p !== N.current ? (N.current = p, d?.()) : p || (N.current = null);
|
|
222
|
-
}, [p, d]), Oe(() => () => T(), [T]),
|
|
222
|
+
}, [p, d]), Oe(() => () => T(), [T]), be(
|
|
223
223
|
() => h ? {
|
|
224
224
|
isOpen: !0,
|
|
225
225
|
isResetting: !1,
|
|
@@ -705,10 +705,10 @@ function JC(e) {
|
|
|
705
705
|
return l;
|
|
706
706
|
},
|
|
707
707
|
[n, r?.embedConfig?.theme]
|
|
708
|
-
), o =
|
|
708
|
+
), o = be(() => i(), [i]);
|
|
709
709
|
return /* @__PURE__ */ C(iT.Provider, { value: o, children: t });
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function vt() {
|
|
712
712
|
return nd(iT);
|
|
713
713
|
}
|
|
714
714
|
function Kd() {
|
|
@@ -792,7 +792,7 @@ function sI(e) {
|
|
|
792
792
|
onSseError: g,
|
|
793
793
|
onBeforeSendMessage: m,
|
|
794
794
|
onChannelReady: b
|
|
795
|
-
}), fe =
|
|
795
|
+
}), fe = be(() => {
|
|
796
796
|
if (O)
|
|
797
797
|
return async (Le) => {
|
|
798
798
|
const Dt = m ? m(Le) : Le;
|
|
@@ -803,13 +803,13 @@ function sI(e) {
|
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
|
-
}, [O, m, y]), Be =
|
|
806
|
+
}, [O, m, y]), Be = be(() => {
|
|
807
807
|
if (re)
|
|
808
808
|
return async (Le, Dt) => {
|
|
809
809
|
const Jt = m ? m({ text: "", payload: Dt }) : { payload: Dt };
|
|
810
810
|
return re(Le, Jt.payload);
|
|
811
811
|
};
|
|
812
|
-
}, [re, m]), pe =
|
|
812
|
+
}, [re, m]), pe = be(
|
|
813
813
|
() => ({
|
|
814
814
|
avatar: t,
|
|
815
815
|
title: n,
|
|
@@ -893,7 +893,7 @@ function aI(e) {
|
|
|
893
893
|
onMessageAction: a,
|
|
894
894
|
renderMessageContent: l,
|
|
895
895
|
renderToolCallGroup: u
|
|
896
|
-
} = e, c =
|
|
896
|
+
} = e, c = be(
|
|
897
897
|
() => ({
|
|
898
898
|
onErrorClick: n,
|
|
899
899
|
errorMessageRenderer: r,
|
|
@@ -958,7 +958,7 @@ function ke() {
|
|
|
958
958
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = lT(e)) && (r && (r += " "), r += t);
|
|
959
959
|
return r;
|
|
960
960
|
}
|
|
961
|
-
const uI = (e) => /* @__PURE__ */
|
|
961
|
+
const uI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("g", { clipPath: "url(#clip0_3084_29383)" }, /* @__PURE__ */ xe.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "#333333" }), /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5788 6.33398C19.8925 6.33398 22.5788 9.02028 22.5788 12.334C22.5788 14.2211 21.7075 15.9048 20.3453 17.0047C23.6487 18.3735 26.0607 21.6974 26.4106 25.6673H24.4569C24.0206 21.6274 20.9742 18.4911 17.2591 18.3397L16.9776 18.334H16.5788H15.8437C12.0019 18.334 8.81164 21.5258 8.36437 25.6673H6.41064C6.76857 21.607 9.28344 18.2225 12.7029 16.9143C11.4036 15.8137 10.5788 14.1701 10.5788 12.334C10.5788 9.02028 13.265 6.33398 16.5788 6.33398ZM16.5788 16.334C18.7879 16.334 20.5788 14.5431 20.5788 12.334C20.5788 10.1248 18.7879 8.33398 16.5788 8.33398C14.3696 8.33398 12.5788 10.1248 12.5788 12.334C12.5788 14.5431 14.3696 16.334 16.5788 16.334Z", fill: "#8C8C8C" })), /* @__PURE__ */ xe.createElement("defs", null, /* @__PURE__ */ xe.createElement("clipPath", { id: "clip0_3084_29383" }, /* @__PURE__ */ xe.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "white" }))));
|
|
962
962
|
function yv(e) {
|
|
963
963
|
const { avatar: t } = e;
|
|
964
964
|
return t ? /* @__PURE__ */ C(
|
|
@@ -974,7 +974,7 @@ function yv(e) {
|
|
|
974
974
|
}
|
|
975
975
|
) : /* @__PURE__ */ C(uI, {});
|
|
976
976
|
}
|
|
977
|
-
const cI = (e) => /* @__PURE__ */
|
|
977
|
+
const cI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ xe.createElement("circle", { cx: 12, cy: 12, r: 3 })), fI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ xe.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), dI = "_api_key_input_7488d_1", hI = "_api_key_input__header_7488d_18", pI = "_api_key_input__title_7488d_31", gI = "_api_key_input__form_7488d_38", mI = "_api_key_input__label_7488d_45", yI = "_api_key_input__input_wrapper_7488d_52", _I = "_api_key_input__input_7488d_52", bI = "_api_key_input__toggle_button_7488d_93", vI = "_api_key_input__toggle_icon_7488d_118", xI = "_api_key_input__error_message_7488d_123", wI = "_api_key_input__submit_button_7488d_129", Un = {
|
|
978
978
|
api_key_input: dI,
|
|
979
979
|
api_key_input__header: hI,
|
|
980
980
|
api_key_input__title: pI,
|
|
@@ -998,7 +998,7 @@ function QC({
|
|
|
998
998
|
showToggle: o = !0,
|
|
999
999
|
className: s
|
|
1000
1000
|
}) {
|
|
1001
|
-
const [a, l] = we(""), [u, c] = we(!1), { chatbot: f } =
|
|
1001
|
+
const [a, l] = we(""), [u, c] = we(!1), { chatbot: f } = vt(), { avatar: d } = Ft(), h = (m) => {
|
|
1002
1002
|
m.preventDefault(), a.trim() && !t && e(a.trim());
|
|
1003
1003
|
}, p = (m) => {
|
|
1004
1004
|
l(m.target.value);
|
|
@@ -1074,16 +1074,16 @@ const EI = "_chatbot_header_luxt4_1", CI = "_chatbot_header__content_luxt4_4", k
|
|
|
1074
1074
|
chatbot_header__content: CI,
|
|
1075
1075
|
chatbot_header__title: kI,
|
|
1076
1076
|
chatbot_header__extra: SI
|
|
1077
|
-
}, $I = (e) => /* @__PURE__ */
|
|
1077
|
+
}, $I = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.49453 2.3352C6.44049 -0.226723 10.9105 -0.106316 13.7142 2.69633C16.6428 5.62613 16.6428 10.3739 13.7144 13.3035C10.7846 16.2322 6.03581 16.2322 3.1073 13.3036C2.30873 12.505 1.71132 11.5536 1.34188 10.5109L1.78892 10.3525L1.34171 10.5106L1.22791 10.162C1.01752 9.46018 0.910643 8.73159 0.910643 7.9997H2.4542L2.46382 8.33865C2.49584 8.9024 2.60763 9.46037 2.79674 9.99539L2.7968 9.99536L2.90116 10.2683C3.19714 10.9887 3.63414 11.6475 4.19876 12.2121C6.52451 14.5379 10.2961 14.5379 12.6229 12.212C14.9486 9.88539 14.9486 6.11464 12.6227 3.78781C10.3306 1.49653 6.63579 1.46263 4.30292 3.68622L6.68087 3.68698V5.22954H3.49394H1.95141V3.68698V0.5H3.49394L3.49453 2.3352Z", fill: "currentColor" })), uT = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 14, viewBox: "0 0 15 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3496 0L7.41062 5.938L1.47162 0L0.411621 1.06L6.34962 6.999L0.411621 12.938L1.47162 13.999L7.41062 8.059L13.3496 13.999L14.4096 12.938L8.47162 6.999L14.4096 1.06L13.3496 0Z", fill: "currentColor" }));
|
|
1078
1078
|
function ek(e) {
|
|
1079
|
-
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } =
|
|
1079
|
+
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } = vt(), {
|
|
1080
1080
|
data: { annotations: a }
|
|
1081
|
-
} = gv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Ft(), d =
|
|
1081
|
+
} = gv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Ft(), d = be(
|
|
1082
1082
|
() => ({
|
|
1083
1083
|
maxWidth: s?.contentMaxWidth ?? "1200px"
|
|
1084
1084
|
}),
|
|
1085
1085
|
[s]
|
|
1086
|
-
), h =
|
|
1086
|
+
), h = be(
|
|
1087
1087
|
() => ({
|
|
1088
1088
|
...s?.header?.style,
|
|
1089
1089
|
borderBottomColor: s?.borderColor
|
|
@@ -1125,7 +1125,7 @@ const AI = "_chatbot_body_wrapper_13zns_1", MI = "_chatbot_body_13zns_1", TI = "
|
|
|
1125
1125
|
"template_box--empty": "_template_box--empty_rjm7y_18"
|
|
1126
1126
|
};
|
|
1127
1127
|
function yn(e) {
|
|
1128
|
-
const { type: t, children: n, style: r, className: i } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a =
|
|
1128
|
+
const { type: t, children: n, style: r, className: i } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a = be(() => t === "user" ? ke(Gs.template_box, Gs["template_box--user"]) : ke(
|
|
1129
1129
|
Gs.template_box,
|
|
1130
1130
|
Gs["template_box--bot"],
|
|
1131
1131
|
o === "horizontal" ? Gs["template_box--horizontal"] : Gs["template_box--vertical"],
|
|
@@ -1141,7 +1141,7 @@ const FI = "_template_box_content_fs2wk_1", DI = "_content_fs2wk_8", tk = {
|
|
|
1141
1141
|
quick_reply: OI
|
|
1142
1142
|
};
|
|
1143
1143
|
function LI(e) {
|
|
1144
|
-
const { quickReplies: t } = e, { template: n, botMessage: r } =
|
|
1144
|
+
const { quickReplies: t } = e, { template: n, botMessage: r } = vt(), { sendMessage: i, isConnecting: o } = Ft(), s = oe(
|
|
1145
1145
|
(a) => {
|
|
1146
1146
|
i?.({ text: a });
|
|
1147
1147
|
},
|
|
@@ -1212,7 +1212,7 @@ const KI = "_time_h4puu_1", ZI = {
|
|
|
1212
1212
|
time: KI
|
|
1213
1213
|
};
|
|
1214
1214
|
function Qa(e) {
|
|
1215
|
-
const { time: t, className: n } = e, { template: r } =
|
|
1215
|
+
const { time: t, className: n } = e, { template: r } = vt(), i = be(
|
|
1216
1216
|
() => ({
|
|
1217
1217
|
color: r?.time?.style?.color
|
|
1218
1218
|
}),
|
|
@@ -1221,7 +1221,7 @@ function Qa(e) {
|
|
|
1221
1221
|
return t ? /* @__PURE__ */ C("div", { className: ke("asgard-time", ZI.time, n), style: i, children: Zy(t) }) : null;
|
|
1222
1222
|
}
|
|
1223
1223
|
function JI(e) {
|
|
1224
|
-
const { references: t, time: n } = e, { template: r, botMessage: i, chatbot: o } =
|
|
1224
|
+
const { references: t, time: n } = e, { template: r, botMessage: i, chatbot: o } = vt(), { defaultLinkTarget: s } = Lu(), a = (f) => {
|
|
1225
1225
|
const d = f.currentTarget.dataset.uri;
|
|
1226
1226
|
d && _v(d, s || "_blank");
|
|
1227
1227
|
}, l = {
|
|
@@ -1283,7 +1283,7 @@ function pr(e) {
|
|
|
1283
1283
|
const nP = "_bot_avatar_1ch7m_1", Jd = {
|
|
1284
1284
|
bot_avatar: nP,
|
|
1285
1285
|
"bot_avatar--invisible": "_bot_avatar--invisible_1ch7m_8"
|
|
1286
|
-
}, rP = (e) => /* @__PURE__ */
|
|
1286
|
+
}, rP = (e) => /* @__PURE__ */ xe.createElement("svg", { viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M0.40625 12C0.40625 5.37258 5.77883 0 12.4062 0C19.0337 0 24.4062 5.37258 24.4062 12C24.4062 18.6274 19.0337 24 12.4062 24C5.77883 24 0.40625 18.6274 0.40625 12Z", fill: "#585858" }), /* @__PURE__ */ xe.createElement("path", { d: "M6.40625 18.75V15C6.40625 14.5875 6.55313 14.2344 6.84688 13.9406C7.14063 13.6469 7.49375 13.5 7.90625 13.5H16.9062C17.3188 13.5 17.6719 13.6469 17.9656 13.9406C18.2594 14.2344 18.4062 14.5875 18.4062 15V18.75H6.40625ZM10.1562 12.75C9.11875 12.75 8.23438 12.3844 7.50312 11.6531C6.77187 10.9219 6.40625 10.0375 6.40625 9C6.40625 7.9625 6.77187 7.07812 7.50312 6.34687C8.23438 5.61562 9.11875 5.25 10.1562 5.25H14.6562C15.6938 5.25 16.5781 5.61562 17.3094 6.34687C18.0406 7.07812 18.4062 7.9625 18.4062 9C18.4062 10.0375 18.0406 10.9219 17.3094 11.6531C16.5781 12.3844 15.6938 12.75 14.6562 12.75H10.1562ZM7.90625 17.25H16.9062V15H7.90625V17.25ZM10.1562 11.25H14.6562C15.2812 11.25 15.8125 11.0312 16.25 10.5938C16.6875 10.1562 16.9062 9.625 16.9062 9C16.9062 8.375 16.6875 7.84375 16.25 7.40625C15.8125 6.96875 15.2812 6.75 14.6562 6.75H10.1562C9.53125 6.75 9 6.96875 8.5625 7.40625C8.125 7.84375 7.90625 8.375 7.90625 9C7.90625 9.625 8.125 10.1562 8.5625 10.5938C9 11.0312 9.53125 11.25 10.1562 11.25ZM10.1562 9.75C10.3688 9.75 10.5469 9.67812 10.6906 9.53438C10.8344 9.39062 10.9062 9.2125 10.9062 9C10.9062 8.7875 10.8344 8.60938 10.6906 8.46562C10.5469 8.32187 10.3688 8.25 10.1562 8.25C9.94375 8.25 9.76562 8.32187 9.62187 8.46562C9.47812 8.60938 9.40625 8.7875 9.40625 9C9.40625 9.2125 9.47812 9.39062 9.62187 9.53438C9.76562 9.67812 9.94375 9.75 10.1562 9.75ZM14.6562 9.75C14.8687 9.75 15.0469 9.67812 15.1906 9.53438C15.3344 9.39062 15.4062 9.2125 15.4062 9C15.4062 8.7875 15.3344 8.60938 15.1906 8.46562C15.0469 8.32187 14.8687 8.25 14.6562 8.25C14.4438 8.25 14.2656 8.32187 14.1219 8.46562C13.9781 8.60938 13.9062 8.7875 13.9062 9C13.9062 9.2125 13.9781 9.39062 14.1219 9.53438C14.2656 9.67812 14.4438 9.75 14.6562 9.75Z", fill: "white" })), gr = ot((e) => {
|
|
1287
1287
|
const { avatar: t, invisible: n } = e;
|
|
1288
1288
|
return n ? /* @__PURE__ */ C("div", { className: ke("asgard-avatar", Jd.bot_avatar, Jd["bot_avatar--invisible"]) }) : t ? /* @__PURE__ */ C("img", { src: t, alt: "Bot Avatar", className: ke("asgard-avatar", Jd.bot_avatar) }) : /* @__PURE__ */ C("div", { className: ke("asgard-avatar", Jd.bot_avatar), children: /* @__PURE__ */ C(rP, {}) });
|
|
1289
1289
|
}), iP = "_card_root_1kvwl_1", oP = "_card_content_1kvwl_11", sP = "_card_title_1kvwl_19", aP = "_card_description_1kvwl_25", lP = "_card_actions_1kvwl_40", pc = {
|
|
@@ -1294,7 +1294,7 @@ const nP = "_bot_avatar_1ch7m_1", Jd = {
|
|
|
1294
1294
|
card_actions: lP
|
|
1295
1295
|
};
|
|
1296
1296
|
function cT(e) {
|
|
1297
|
-
const { template: t, raw: n, customStyle: r } = e, { sendMessage: i } = Ft(), { onTemplateBtnClick: o, defaultLinkTarget: s } = Lu(), [a, l] = we(!1), u =
|
|
1297
|
+
const { template: t, raw: n, customStyle: r } = e, { sendMessage: i } = Ft(), { onTemplateBtnClick: o, defaultLinkTarget: s } = Lu(), [a, l] = we(!1), u = be(() => t?.thumbnailImageUrl?.replace(/^http:/, "").replace(/^https:/, "") || "", [t]), c = !!u && !a, f = be(() => t?.imageAspectRatio === "square" ? "1 / 1" : "1.51 / 1", [t]), d = oe(
|
|
1298
1298
|
(h) => function() {
|
|
1299
1299
|
switch (h.type) {
|
|
1300
1300
|
case "message":
|
|
@@ -1338,7 +1338,7 @@ function cT(e) {
|
|
|
1338
1338
|
] });
|
|
1339
1339
|
}
|
|
1340
1340
|
function uP(e) {
|
|
1341
|
-
const { message: t } = e, { template: n } =
|
|
1341
|
+
const { message: t } = e, { template: n } = vt(), { avatar: r } = Ft(), i = t.message.template;
|
|
1342
1342
|
return /* @__PURE__ */ U(yn, { className: "asgard-button-template", type: "bot", direction: "horizontal", children: [
|
|
1343
1343
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
1344
1344
|
/* @__PURE__ */ C(
|
|
@@ -1495,7 +1495,7 @@ function OT({ children: e }) {
|
|
|
1495
1495
|
}, []), r || !t ? e : /* @__PURE__ */ C(t, { components: LP, children: e });
|
|
1496
1496
|
}
|
|
1497
1497
|
function ok(e) {
|
|
1498
|
-
const { message: t } = e, { avatar: n } = Ft(), r =
|
|
1498
|
+
const { message: t } = e, { avatar: n } = Ft(), r = vt(), { botMessage: i } = r, o = t?.message?.text || "", s = t.type === "bot", a = r?.template?.TextMessageTemplate?.style, l = be(() => {
|
|
1499
1499
|
switch (t.type) {
|
|
1500
1500
|
case "user":
|
|
1501
1501
|
return {
|
|
@@ -1576,13 +1576,13 @@ function ok(e) {
|
|
|
1576
1576
|
);
|
|
1577
1577
|
}
|
|
1578
1578
|
function LT(e) {
|
|
1579
|
-
const { isTyping: t, typingText: n } = e, { avatar: r } = Ft(), i =
|
|
1579
|
+
const { isTyping: t, typingText: n } = e, { avatar: r } = Ft(), i = vt(), o = tI(t, 500), s = be(
|
|
1580
1580
|
() => ({
|
|
1581
1581
|
color: i?.botMessage?.color,
|
|
1582
1582
|
backgroundColor: i?.botMessage?.backgroundColor
|
|
1583
1583
|
}),
|
|
1584
1584
|
[i]
|
|
1585
|
-
), a =
|
|
1585
|
+
), a = be(
|
|
1586
1586
|
() => ({
|
|
1587
1587
|
backgroundColor: i?.botMessage?.color
|
|
1588
1588
|
}),
|
|
@@ -1601,7 +1601,7 @@ function LT(e) {
|
|
|
1601
1601
|
] }) : null;
|
|
1602
1602
|
}
|
|
1603
1603
|
function PP(e) {
|
|
1604
|
-
const { placeholder: t } = e, { isConnecting: n, messages: r } = Ft(), i =
|
|
1604
|
+
const { placeholder: t } = e, { isConnecting: n, messages: r } = Ft(), i = be(
|
|
1605
1605
|
() => Array.from(r?.values() ?? []).some((o) => o.type === "bot" && o.isTyping),
|
|
1606
1606
|
[r]
|
|
1607
1607
|
);
|
|
@@ -1612,7 +1612,7 @@ const zP = "_carousel_root_v06v3_1", BP = "_carousel_time_v06v3_13", sk = {
|
|
|
1612
1612
|
carousel_time: BP
|
|
1613
1613
|
};
|
|
1614
1614
|
function UP(e) {
|
|
1615
|
-
const { message: t } = e, { template: n } =
|
|
1615
|
+
const { message: t } = e, { template: n } = vt(), { avatar: r } = Ft(), i = t.message.template;
|
|
1616
1616
|
return /* @__PURE__ */ U(
|
|
1617
1617
|
yn,
|
|
1618
1618
|
{
|
|
@@ -1655,7 +1655,7 @@ const jP = "_hint_root_1hmle_1", qP = "_error_hint_title_1hmle_17", WP = "_error
|
|
|
1655
1655
|
time: GP
|
|
1656
1656
|
};
|
|
1657
1657
|
function ak(e) {
|
|
1658
|
-
const { message: t } = e, { template: n } =
|
|
1658
|
+
const { message: t } = e, { template: n } = vt(), { onErrorClick: r, errorMessageRenderer: i } = Lu(), o = oe(() => {
|
|
1659
1659
|
r?.(t);
|
|
1660
1660
|
}, [t, r]);
|
|
1661
1661
|
if (t.type === "user") return null;
|
|
@@ -3405,16 +3405,16 @@ function W5(e) {
|
|
|
3405
3405
|
b.x = E(n, b), b.X = E(r, b), b.c = E(t, b), v.x = E(n, v), v.X = E(r, v), v.c = E(t, v);
|
|
3406
3406
|
function E(te, ge) {
|
|
3407
3407
|
return function(ye) {
|
|
3408
|
-
var j = [],
|
|
3409
|
-
for (ye instanceof Date || (ye = /* @__PURE__ */ new Date(+ye)); ++
|
|
3410
|
-
te.charCodeAt(
|
|
3411
|
-
return j.push(te.slice(Ie,
|
|
3408
|
+
var j = [], xt = -1, Ie = 0, ht = te.length, wt, Rt, jt;
|
|
3409
|
+
for (ye instanceof Date || (ye = /* @__PURE__ */ new Date(+ye)); ++xt < ht; )
|
|
3410
|
+
te.charCodeAt(xt) === 37 && (j.push(te.slice(Ie, xt)), (Rt = xk[wt = te.charAt(++xt)]) != null ? wt = te.charAt(++xt) : Rt = wt === "e" ? " " : "0", (jt = ge[wt]) && (wt = jt(ye, Rt)), j.push(wt), Ie = xt + 1);
|
|
3411
|
+
return j.push(te.slice(Ie, xt)), j.join("");
|
|
3412
3412
|
};
|
|
3413
3413
|
}
|
|
3414
3414
|
function w(te, ge) {
|
|
3415
3415
|
return function(ye) {
|
|
3416
|
-
var j = _c(1900, void 0, 1),
|
|
3417
|
-
if (
|
|
3416
|
+
var j = _c(1900, void 0, 1), xt = k(j, te, ye += "", 0), Ie, ht;
|
|
3417
|
+
if (xt != ye.length) return null;
|
|
3418
3418
|
if ("Q" in j) return new Date(j.Q);
|
|
3419
3419
|
if ("s" in j) return new Date(j.s * 1e3 + ("L" in j ? j.L : 0));
|
|
3420
3420
|
if (ge && !("Z" in j) && (j.Z = 0), "p" in j && (j.H = j.H % 12 + j.p * 12), j.m === void 0 && (j.m = "q" in j ? j.q : 0), "V" in j) {
|
|
@@ -3425,11 +3425,11 @@ function W5(e) {
|
|
|
3425
3425
|
};
|
|
3426
3426
|
}
|
|
3427
3427
|
function k(te, ge, ye, j) {
|
|
3428
|
-
for (var
|
|
3428
|
+
for (var xt = 0, Ie = ge.length, ht = ye.length, wt, Rt; xt < Ie; ) {
|
|
3429
3429
|
if (j >= ht) return -1;
|
|
3430
|
-
if (
|
|
3431
|
-
if (
|
|
3432
|
-
} else if (
|
|
3430
|
+
if (wt = ge.charCodeAt(xt++), wt === 37) {
|
|
3431
|
+
if (wt = ge.charAt(xt++), Rt = x[wt in xk ? ge.charAt(xt++) : wt], !Rt || (j = Rt(te, ye, j)) < 0) return -1;
|
|
3432
|
+
} else if (wt != ye.charCodeAt(j++))
|
|
3433
3433
|
return -1;
|
|
3434
3434
|
}
|
|
3435
3435
|
return j;
|
|
@@ -14274,7 +14274,7 @@ const vX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14274
14274
|
sortitems: sD,
|
|
14275
14275
|
stack: Y2
|
|
14276
14276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14277
|
-
var de = 1e-6, Xp = 1e-12, De = Math.PI, mt = De / 2, Kp = De / 4, Ln = De * 2,
|
|
14277
|
+
var de = 1e-6, Xp = 1e-12, De = Math.PI, mt = De / 2, Kp = De / 4, Ln = De * 2, Ct = 180 / De, Ne = De / 180, Pe = Math.abs, Zu = Math.atan, Or = Math.atan2, he = Math.cos, hh = Math.ceil, cD = Math.exp, P_ = Math.hypot, Zp = Math.log, D1 = Math.pow, ce = Math.sin, Sr = Math.sign || function(e) {
|
|
14278
14278
|
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
14279
14279
|
}, In = Math.sqrt, X2 = Math.tan;
|
|
14280
14280
|
function fD(e) {
|
|
@@ -14411,8 +14411,8 @@ function yD(e, t) {
|
|
|
14411
14411
|
if (Gl) {
|
|
14412
14412
|
var r = pu(Gl, n), i = [r[1], -r[0], 0], o = pu(i, r);
|
|
14413
14413
|
ng(o), o = tg(o);
|
|
14414
|
-
var s = e - aa, a = s > 0 ? 1 : -1, l = o[0] *
|
|
14415
|
-
c ^ (a * aa < l && l < a * e) ? (u = o[1] *
|
|
14414
|
+
var s = e - aa, a = s > 0 ? 1 : -1, l = o[0] * Ct * a, u, c = Pe(s) > 180;
|
|
14415
|
+
c ^ (a * aa < l && l < a * e) ? (u = o[1] * Ct, u > ir && (ir = u)) : (l = (l + 360) % 360 - 180, c ^ (a * aa < l && l < a * e) ? (u = -o[1] * Ct, u < Wn && (Wn = u)) : (t < Wn && (Wn = t), t > ir && (ir = t))), c ? e < aa ? rr(ft, e) > rr(ft, pt) && (pt = e) : rr(e, pt) > rr(ft, pt) && (ft = e) : pt >= ft ? (e < ft && (ft = e), e > pt && (pt = e)) : e > aa ? rr(ft, e) > rr(ft, pt) && (pt = e) : rr(e, pt) > rr(ft, pt) && (ft = e);
|
|
14416
14416
|
} else
|
|
14417
14417
|
Zo.push(Fo = [ft = e, pt = e]);
|
|
14418
14418
|
t < Wn && (Wn = t), t > ir && (ir = t), Gl = n, aa = e;
|
|
@@ -14511,7 +14511,7 @@ function xD(e, t) {
|
|
|
14511
14511
|
function RX(e) {
|
|
14512
14512
|
Kc = rg = ig = og = sg = ag = lg = ug = 0, W_ = new Rn(), H_ = new Rn(), G_ = new Rn(), po(e, Qr);
|
|
14513
14513
|
var t = +W_, n = +H_, r = +G_, i = P_(t, n, r);
|
|
14514
|
-
return i < Xp && (t = ag, n = lg, r = ug, rg < de && (t = ig, n = og, r = sg), i = P_(t, n, r), i < Xp) ? [NaN, NaN] : [Or(n, t) *
|
|
14514
|
+
return i < Xp && (t = ag, n = lg, r = ug, rg < de && (t = ig, n = og, r = sg), i = P_(t, n, r), i < Xp) ? [NaN, NaN] : [Or(n, t) * Ct, Kn(r / i) * Ct];
|
|
14515
14515
|
}
|
|
14516
14516
|
function V_(e, t) {
|
|
14517
14517
|
function n(r, i) {
|
|
@@ -14557,10 +14557,10 @@ function d$(e, t) {
|
|
|
14557
14557
|
function OX(e) {
|
|
14558
14558
|
e = wD(e[0] * Ne, e[1] * Ne, e.length > 2 ? e[2] * Ne : 0);
|
|
14559
14559
|
function t(n) {
|
|
14560
|
-
return n = e(n[0] * Ne, n[1] * Ne), n[0] *=
|
|
14560
|
+
return n = e(n[0] * Ne, n[1] * Ne), n[0] *= Ct, n[1] *= Ct, n;
|
|
14561
14561
|
}
|
|
14562
14562
|
return t.invert = function(n) {
|
|
14563
|
-
return n = e.invert(n[0] * Ne, n[1] * Ne), n[0] *=
|
|
14563
|
+
return n = e.invert(n[0] * Ne, n[1] * Ne), n[0] *= Ct, n[1] *= Ct, n;
|
|
14564
14564
|
}, t;
|
|
14565
14565
|
}
|
|
14566
14566
|
function LX(e, t, n, r, i, o) {
|
|
@@ -15392,7 +15392,7 @@ function zD(e) {
|
|
|
15392
15392
|
return k($[0] * Ne, $[1] * Ne);
|
|
15393
15393
|
}
|
|
15394
15394
|
function F($) {
|
|
15395
|
-
return $ = k.invert($[0], $[1]), $ && [$[0] *
|
|
15395
|
+
return $ = k.invert($[0], $[1]), $ && [$[0] * Ct, $[1] * Ct];
|
|
15396
15396
|
}
|
|
15397
15397
|
T.stream = function($) {
|
|
15398
15398
|
return S && A === $ ? S : S = sK(aK(c)(g(E(v(A = $)))));
|
|
@@ -15401,7 +15401,7 @@ function zD(e) {
|
|
|
15401
15401
|
}, T.postclip = function($) {
|
|
15402
15402
|
return arguments.length ? (v = $, m = y = _ = b = null, N()) : v;
|
|
15403
15403
|
}, T.clipAngle = function($) {
|
|
15404
|
-
return arguments.length ? (g = +$ ? qX(p = $ * Ne) : (p = null, g$), N()) : p *
|
|
15404
|
+
return arguments.length ? (g = +$ ? qX(p = $ * Ne) : (p = null, g$), N()) : p * Ct;
|
|
15405
15405
|
}, T.clipExtent = function($) {
|
|
15406
15406
|
return arguments.length ? (v = $ == null ? (m = y = _ = b = null, Lf) : SD(m = +$[0][0], y = +$[0][1], _ = +$[1][0], b = +$[1][1]), N()) : m == null ? null : [[m, y], [_, b]];
|
|
15407
15407
|
}, T.scale = function($) {
|
|
@@ -15409,11 +15409,11 @@ function zD(e) {
|
|
|
15409
15409
|
}, T.translate = function($) {
|
|
15410
15410
|
return arguments.length ? (r = +$[0], i = +$[1], D()) : [r, i];
|
|
15411
15411
|
}, T.center = function($) {
|
|
15412
|
-
return arguments.length ? (o = $[0] % 360 * Ne, s = $[1] % 360 * Ne, D()) : [o *
|
|
15412
|
+
return arguments.length ? (o = $[0] % 360 * Ne, s = $[1] % 360 * Ne, D()) : [o * Ct, s * Ct];
|
|
15413
15413
|
}, T.rotate = function($) {
|
|
15414
|
-
return arguments.length ? (a = $[0] % 360 * Ne, l = $[1] % 360 * Ne, u = $.length > 2 ? $[2] % 360 * Ne : 0, D()) : [a *
|
|
15414
|
+
return arguments.length ? (a = $[0] % 360 * Ne, l = $[1] % 360 * Ne, u = $.length > 2 ? $[2] % 360 * Ne : 0, D()) : [a * Ct, l * Ct, u * Ct];
|
|
15415
15415
|
}, T.angle = function($) {
|
|
15416
|
-
return arguments.length ? (f = $ % 360 * Ne, D()) : f *
|
|
15416
|
+
return arguments.length ? (f = $ % 360 * Ne, D()) : f * Ct;
|
|
15417
15417
|
}, T.reflectX = function($) {
|
|
15418
15418
|
return arguments.length ? (d = $ ? -1 : 1, D()) : d < 0;
|
|
15419
15419
|
}, T.reflectY = function($) {
|
|
@@ -15443,7 +15443,7 @@ function zD(e) {
|
|
|
15443
15443
|
function tw(e) {
|
|
15444
15444
|
var t = 0, n = De / 3, r = zD(e), i = r(t, n);
|
|
15445
15445
|
return i.parallels = function(o) {
|
|
15446
|
-
return arguments.length ? r(t = o[0] * Ne, n = o[1] * Ne) : [t *
|
|
15446
|
+
return arguments.length ? r(t = o[0] * Ne, n = o[1] * Ne) : [t * Ct, n * Ct];
|
|
15447
15447
|
}, i;
|
|
15448
15448
|
}
|
|
15449
15449
|
function uK(e) {
|
|
@@ -15698,7 +15698,7 @@ function CK() {
|
|
|
15698
15698
|
}, b.translate = function(v) {
|
|
15699
15699
|
return arguments.length ? (t = +v[0], n = +v[1], _()) : [t, n];
|
|
15700
15700
|
}, b.angle = function(v) {
|
|
15701
|
-
return arguments.length ? (o = v % 360 * Ne, a = ce(o), s = he(o), _()) : o *
|
|
15701
|
+
return arguments.length ? (o = v % 360 * Ne, a = ce(o), s = he(o), _()) : o * Ct;
|
|
15702
15702
|
}, b.reflectX = function(v) {
|
|
15703
15703
|
return arguments.length ? (r = v ? -1 : 1, _()) : r < 0;
|
|
15704
15704
|
}, b.reflectY = function(v) {
|
|
@@ -25718,7 +25718,7 @@ function tc(e) {
|
|
|
25718
25718
|
function wu(e) {
|
|
25719
25719
|
return e ? Vi(e).length : 0;
|
|
25720
25720
|
}
|
|
25721
|
-
function
|
|
25721
|
+
function kt(...e) {
|
|
25722
25722
|
return e.find((t) => t !== void 0);
|
|
25723
25723
|
}
|
|
25724
25724
|
let X8 = 42;
|
|
@@ -26039,7 +26039,7 @@ const Kae = q(yE), {
|
|
|
26039
26039
|
x: 1,
|
|
26040
26040
|
y: 1
|
|
26041
26041
|
}, jo = q(xE);
|
|
26042
|
-
function
|
|
26042
|
+
function St(e) {
|
|
26043
26043
|
return ne(xE, e);
|
|
26044
26044
|
}
|
|
26045
26045
|
const wE = {
|
|
@@ -26576,7 +26576,7 @@ function Ye(e, t, n, r = {}) {
|
|
|
26576
26576
|
}
|
|
26577
26577
|
function Wi(e, t, n, { vgChannel: r } = {}) {
|
|
26578
26578
|
const i = Ib(e, t, n.style);
|
|
26579
|
-
return
|
|
26579
|
+
return kt(
|
|
26580
26580
|
// style config has highest precedence
|
|
26581
26581
|
r ? i : void 0,
|
|
26582
26582
|
i,
|
|
@@ -27691,7 +27691,7 @@ function Ace({ scaleName: e, fieldDef: t }) {
|
|
|
27691
27691
|
}
|
|
27692
27692
|
function YE({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u, bandPosition: c }) {
|
|
27693
27693
|
if (t) {
|
|
27694
|
-
if (
|
|
27694
|
+
if (ve(t)) {
|
|
27695
27695
|
const f = s?.get("type");
|
|
27696
27696
|
if (Pn(t)) {
|
|
27697
27697
|
c ??= As({
|
|
@@ -27929,7 +27929,7 @@ function ZE(e) {
|
|
|
27929
27929
|
return W(e, "sort");
|
|
27930
27930
|
}
|
|
27931
27931
|
function As({ fieldDef: e, fieldDef2: t, markDef: n, config: r }) {
|
|
27932
|
-
if (
|
|
27932
|
+
if (ve(e) && e.bandPosition !== void 0)
|
|
27933
27933
|
return e.bandPosition;
|
|
27934
27934
|
if (G(e)) {
|
|
27935
27935
|
const { timeUnit: i, bin: o } = e;
|
|
@@ -27970,7 +27970,7 @@ function T0(e) {
|
|
|
27970
27970
|
}
|
|
27971
27971
|
function qd(e) {
|
|
27972
27972
|
const t = e?.condition;
|
|
27973
|
-
return !!t && !B(t) &&
|
|
27973
|
+
return !!t && !B(t) && ve(t);
|
|
27974
27974
|
}
|
|
27975
27975
|
function Oce(e) {
|
|
27976
27976
|
const t = e?.condition;
|
|
@@ -27994,7 +27994,7 @@ function f3(e) {
|
|
|
27994
27994
|
function Pg(e) {
|
|
27995
27995
|
return oo(e) && qe(e.datum);
|
|
27996
27996
|
}
|
|
27997
|
-
function
|
|
27997
|
+
function ve(e) {
|
|
27998
27998
|
return G(e) || oo(e);
|
|
27999
27999
|
}
|
|
28000
28000
|
function Pn(e) {
|
|
@@ -28104,7 +28104,7 @@ function Kl(e, t, { allowDisabling: n, includeDefault: r = !0 }) {
|
|
|
28104
28104
|
if (!G(e))
|
|
28105
28105
|
return i ?? e.title;
|
|
28106
28106
|
const o = e, s = r ? QE(o, t) : void 0;
|
|
28107
|
-
return n ?
|
|
28107
|
+
return n ? kt(i, o.title, s) : i ?? o.title ?? s;
|
|
28108
28108
|
}
|
|
28109
28109
|
function JE(e) {
|
|
28110
28110
|
if ($u(e) && e.axis)
|
|
@@ -28164,7 +28164,7 @@ function ui(e) {
|
|
|
28164
28164
|
return e.condition;
|
|
28165
28165
|
}
|
|
28166
28166
|
function Pt(e) {
|
|
28167
|
-
if (
|
|
28167
|
+
if (ve(e))
|
|
28168
28168
|
return e;
|
|
28169
28169
|
if (qd(e))
|
|
28170
28170
|
return e.condition;
|
|
@@ -28174,7 +28174,7 @@ function d9(e, t, n, r = {}) {
|
|
|
28174
28174
|
const i = Q(e) ? "string" : qe(e) ? "number" : "boolean";
|
|
28175
28175
|
return H(jle(t, i, e)), { value: e };
|
|
28176
28176
|
}
|
|
28177
|
-
return
|
|
28177
|
+
return ve(e) ? Bg(e, t, n, r) : qd(e) ? {
|
|
28178
28178
|
...e,
|
|
28179
28179
|
// Need to cast as normalizeFieldDef normally return FieldDef, but here we know that it is definitely Condition<FieldDef>
|
|
28180
28180
|
condition: Bg(e.condition, t, n, r)
|
|
@@ -28204,7 +28204,7 @@ function Wce(e) {
|
|
|
28204
28204
|
}
|
|
28205
28205
|
function eC(e, t, { compositeMark: n = !1 } = {}) {
|
|
28206
28206
|
const { aggregate: r, timeUnit: i, bin: o, field: s } = e, a = { ...e };
|
|
28207
|
-
if (!n && r && !CE(r) && !qs(r) && !Do(r) && (H(Wle(r)), delete a.aggregate), i && (a.timeUnit = Xt(i)), s && (a.field = `${s}`), nt(o) && (a.bin = N0(o, t)), Qt(o) && !
|
|
28207
|
+
if (!n && r && !CE(r) && !qs(r) && !Do(r) && (H(Wle(r)), delete a.aggregate), i && (a.timeUnit = Xt(i)), s && (a.field = `${s}`), nt(o) && (a.bin = N0(o, t)), Qt(o) && !St(t) && H(Eue(t)), Pn(a)) {
|
|
28208
28208
|
const { type: l } = a, u = Yue(l);
|
|
28209
28209
|
l !== u && (a.type = u), l !== "quantitative" && b0(r) && (H(qle(l, r)), a.type = "quantitative");
|
|
28210
28210
|
} else if (!oO(t)) {
|
|
@@ -28646,7 +28646,7 @@ function y9(e, t) {
|
|
|
28646
28646
|
return n ? B(n) ? vu(n, (r) => !!r.field) : G(n) || oo(n) || qd(n) : !1;
|
|
28647
28647
|
}
|
|
28648
28648
|
function _9(e, t) {
|
|
28649
|
-
if (
|
|
28649
|
+
if (St(t)) {
|
|
28650
28650
|
const n = e[t];
|
|
28651
28651
|
if ((G(n) || oo(n)) && (zE(n.type) || G(n) && n.timeUnit)) {
|
|
28652
28652
|
const r = bE(t);
|
|
@@ -28694,7 +28694,7 @@ function v9(e, t) {
|
|
|
28694
28694
|
u && (b.field = u), o.push(b);
|
|
28695
28695
|
}
|
|
28696
28696
|
} else if (n.push(m), Pn(a) && nt(f)) {
|
|
28697
|
-
if (r.push({ bin: f, field: u, as: m }), n.push(K(a, { binSuffix: "end" })), Wd(a, l) && n.push(K(a, { binSuffix: "range" })),
|
|
28697
|
+
if (r.push({ bin: f, field: u, as: m }), n.push(K(a, { binSuffix: "end" })), Wd(a, l) && n.push(K(a, { binSuffix: "range" })), St(l)) {
|
|
28698
28698
|
const _ = {
|
|
28699
28699
|
field: `${m}_end`
|
|
28700
28700
|
};
|
|
@@ -28711,7 +28711,7 @@ function v9(e, t) {
|
|
|
28711
28711
|
_ && (l === Od || l === ja ? y.formatType = _ : tle(l) ? y.legend = {
|
|
28712
28712
|
formatType: _,
|
|
28713
28713
|
...y.legend
|
|
28714
|
-
} :
|
|
28714
|
+
} : St(l) && (y.axis = {
|
|
28715
28715
|
formatType: _,
|
|
28716
28716
|
...y.axis
|
|
28717
28717
|
}));
|
|
@@ -28921,7 +28921,7 @@ function jb(e, t, n, r = !0) {
|
|
|
28921
28921
|
}
|
|
28922
28922
|
function nC(e) {
|
|
28923
28923
|
const { title: t, field: n } = e;
|
|
28924
|
-
return
|
|
28924
|
+
return kt(t, n);
|
|
28925
28925
|
}
|
|
28926
28926
|
function rC(e, t, n, r, i) {
|
|
28927
28927
|
const { scale: o, axis: s } = n;
|
|
@@ -29141,14 +29141,14 @@ function S9(e, { config: t }) {
|
|
|
29141
29141
|
}
|
|
29142
29142
|
],
|
|
29143
29143
|
layer: O
|
|
29144
|
-
}, { tooltip: te, ...ge } = A, { scale: ye, axis: j } = g,
|
|
29144
|
+
}, { tooltip: te, ...ge } = A, { scale: ye, axis: j } = g, xt = nC(g), Ie = w9(a, "outliers", t.boxplot, {
|
|
29145
29145
|
transform: [{ filter: `(${Le} < ${Be}) || (${Le} > ${pe})` }],
|
|
29146
29146
|
mark: "point",
|
|
29147
29147
|
encoding: {
|
|
29148
29148
|
[m]: {
|
|
29149
29149
|
field: g.field,
|
|
29150
29150
|
type: g.type,
|
|
29151
|
-
...
|
|
29151
|
+
...xt !== void 0 ? { title: xt } : {},
|
|
29152
29152
|
...ye !== void 0 ? { scale: ye } : {},
|
|
29153
29153
|
...j !== void 0 ? { axis: j } : {}
|
|
29154
29154
|
},
|
|
@@ -29158,11 +29158,11 @@ function S9(e, { config: t }) {
|
|
|
29158
29158
|
}
|
|
29159
29159
|
})[0];
|
|
29160
29160
|
let ht;
|
|
29161
|
-
const
|
|
29161
|
+
const wt = [...d, ...h, Dt];
|
|
29162
29162
|
return Ie ? ht = {
|
|
29163
|
-
transform:
|
|
29163
|
+
transform: wt,
|
|
29164
29164
|
layer: [Ie, Jt]
|
|
29165
|
-
} : (ht = Jt, ht.transform.unshift(...
|
|
29165
|
+
} : (ht = Jt, ht.transform.unshift(...wt)), {
|
|
29166
29166
|
...s,
|
|
29167
29167
|
layer: [
|
|
29168
29168
|
ht,
|
|
@@ -29301,13 +29301,13 @@ function sfe(e, t) {
|
|
|
29301
29301
|
if (i)
|
|
29302
29302
|
throw new Error(`${t} cannot be both type aggregated-upper-lower and aggregated-error`);
|
|
29303
29303
|
const a = n.x2, l = n.y2;
|
|
29304
|
-
if (
|
|
29304
|
+
if (ve(a) && ve(l))
|
|
29305
29305
|
throw new Error(`${t} cannot have both x2 and y2`);
|
|
29306
|
-
if (
|
|
29306
|
+
if (ve(a)) {
|
|
29307
29307
|
if (us(o))
|
|
29308
29308
|
return { orient: "horizontal", inputType: "aggregated-upper-lower" };
|
|
29309
29309
|
throw new Error(`Both x and x2 have to be quantitative in ${t}`);
|
|
29310
|
-
} else if (
|
|
29310
|
+
} else if (ve(l)) {
|
|
29311
29311
|
if (us(s))
|
|
29312
29312
|
return { orient: "vertical", inputType: "aggregated-upper-lower" };
|
|
29313
29313
|
throw new Error(`Both y and y2 have to be quantitative in ${t}`);
|
|
@@ -29315,17 +29315,17 @@ function sfe(e, t) {
|
|
|
29315
29315
|
throw new Error("No ranged axis");
|
|
29316
29316
|
} else {
|
|
29317
29317
|
const a = n.xError, l = n.xError2, u = n.yError, c = n.yError2;
|
|
29318
|
-
if (
|
|
29318
|
+
if (ve(l) && !ve(a))
|
|
29319
29319
|
throw new Error(`${t} cannot have xError2 without xError`);
|
|
29320
|
-
if (
|
|
29320
|
+
if (ve(c) && !ve(u))
|
|
29321
29321
|
throw new Error(`${t} cannot have yError2 without yError`);
|
|
29322
|
-
if (
|
|
29322
|
+
if (ve(a) && ve(u))
|
|
29323
29323
|
throw new Error(`${t} cannot have both xError and yError with both are quantiative`);
|
|
29324
|
-
if (
|
|
29324
|
+
if (ve(a)) {
|
|
29325
29325
|
if (us(o))
|
|
29326
29326
|
return { orient: "horizontal", inputType: "aggregated-error" };
|
|
29327
29327
|
throw new Error("All x, xError, and xError2 (if exist) have to be quantitative");
|
|
29328
|
-
} else if (
|
|
29328
|
+
} else if (ve(u)) {
|
|
29329
29329
|
if (us(s))
|
|
29330
29330
|
return { orient: "vertical", inputType: "aggregated-error" };
|
|
29331
29331
|
throw new Error("All y, yError, and yError2 (if exist) have to be quantitative");
|
|
@@ -29334,13 +29334,13 @@ function sfe(e, t) {
|
|
|
29334
29334
|
}
|
|
29335
29335
|
}
|
|
29336
29336
|
function afe(e) {
|
|
29337
|
-
return (
|
|
29337
|
+
return (ve(e.x) || ve(e.y)) && !ve(e.x2) && !ve(e.y2) && !ve(e.xError) && !ve(e.xError2) && !ve(e.yError) && !ve(e.yError2);
|
|
29338
29338
|
}
|
|
29339
29339
|
function lfe(e) {
|
|
29340
|
-
return
|
|
29340
|
+
return ve(e.x2) || ve(e.y2);
|
|
29341
29341
|
}
|
|
29342
29342
|
function ufe(e) {
|
|
29343
|
-
return
|
|
29343
|
+
return ve(e.xError) || ve(e.xError2) || ve(e.yError) || ve(e.yError2);
|
|
29344
29344
|
}
|
|
29345
29345
|
function M9(e, t, n) {
|
|
29346
29346
|
const { mark: r, encoding: i, params: o, projection: s, ...a } = e, l = Hi(r) ? r : { type: r };
|
|
@@ -29725,7 +29725,7 @@ function Wb(e, t) {
|
|
|
29725
29725
|
}
|
|
29726
29726
|
function jg(e, t) {
|
|
29727
29727
|
const n = e[t] ?? e[t === "width" ? "discreteWidth" : "discreteHeight"];
|
|
29728
|
-
return
|
|
29728
|
+
return kt(n, { step: e.step });
|
|
29729
29729
|
}
|
|
29730
29730
|
const P9 = 20, kfe = {
|
|
29731
29731
|
continuousWidth: 300,
|
|
@@ -30201,7 +30201,7 @@ function U9(e, t) {
|
|
|
30201
30201
|
return g;
|
|
30202
30202
|
}, []);
|
|
30203
30203
|
let p;
|
|
30204
|
-
return o.stack !== void 0 ? el(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : qfe.has(r) && (p = "zero"), !p || !Ufe(p) || b9(t) && h.length === 0 ? null : (o?.scale?.type && o?.scale?.type !== tn.LINEAR && o?.stack && H(yue(o.scale.type)),
|
|
30204
|
+
return o.stack !== void 0 ? el(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : qfe.has(r) && (p = "zero"), !p || !Ufe(p) || b9(t) && h.length === 0 ? null : (o?.scale?.type && o?.scale?.type !== tn.LINEAR && o?.stack && H(yue(o.scale.type)), ve(t[ro(i)]) ? (o.stack !== void 0 && H(mue(i)), null) : (G(o) && o.aggregate && !cle.has(o.aggregate) && H(_ue(o.aggregate)), {
|
|
30205
30205
|
groupbyChannels: l,
|
|
30206
30206
|
groupbyFields: u,
|
|
30207
30207
|
fieldChannel: i,
|
|
@@ -30236,7 +30236,7 @@ function Vfe(e, t, { graticule: n }) {
|
|
|
30236
30236
|
if (n)
|
|
30237
30237
|
return !1;
|
|
30238
30238
|
const r = Wi("filled", e, t), i = e.type;
|
|
30239
|
-
return
|
|
30239
|
+
return kt(r, i !== $0 && i !== S0 && i !== Lg);
|
|
30240
30240
|
}
|
|
30241
30241
|
function Yfe(e, t, n) {
|
|
30242
30242
|
switch (e) {
|
|
@@ -30431,7 +30431,7 @@ function x3(e, t) {
|
|
|
30431
30431
|
}
|
|
30432
30432
|
}
|
|
30433
30433
|
function w3(e, t) {
|
|
30434
|
-
if (
|
|
30434
|
+
if (ve(e)) {
|
|
30435
30435
|
const n = x3(e, t);
|
|
30436
30436
|
if (n)
|
|
30437
30437
|
return n;
|
|
@@ -30650,7 +30650,7 @@ function E3({ parentEncoding: e, encoding: t = {}, layer: n }) {
|
|
|
30650
30650
|
const i = /* @__PURE__ */ new Set([...q(e), ...q(t)]);
|
|
30651
30651
|
for (const o of i) {
|
|
30652
30652
|
const s = t[o], a = e[o];
|
|
30653
|
-
if (
|
|
30653
|
+
if (ve(s)) {
|
|
30654
30654
|
const l = {
|
|
30655
30655
|
...a,
|
|
30656
30656
|
...s
|
|
@@ -30662,7 +30662,7 @@ function E3({ parentEncoding: e, encoding: t = {}, layer: n }) {
|
|
|
30662
30662
|
...a,
|
|
30663
30663
|
...s.condition
|
|
30664
30664
|
}
|
|
30665
|
-
} : s || s === null ? r[o] = s : (n || li(a) || se(a) ||
|
|
30665
|
+
} : s || s === null ? r[o] = s : (n || li(a) || se(a) || ve(a) || B(a)) && (r[o] = a);
|
|
30666
30666
|
}
|
|
30667
30667
|
} else
|
|
30668
30668
|
r = t;
|
|
@@ -30931,7 +30931,7 @@ class Wo {
|
|
|
30931
30931
|
};
|
|
30932
30932
|
}
|
|
30933
30933
|
get(t) {
|
|
30934
|
-
return
|
|
30934
|
+
return kt(this.explicit[t], this.implicit[t]);
|
|
30935
30935
|
}
|
|
30936
30936
|
getWithExplicit(t) {
|
|
30937
30937
|
return this.explicit[t] !== void 0 ? { explicit: !0, value: this.explicit[t] } : this.implicit[t] !== void 0 ? { explicit: !1, value: this.implicit[t] } : { explicit: !1, value: void 0 };
|
|
@@ -31195,7 +31195,7 @@ class Oi extends Je {
|
|
|
31195
31195
|
};
|
|
31196
31196
|
if (at(n)) {
|
|
31197
31197
|
const { mark: c, markDef: f, config: d } = n, h = As({ fieldDef: o, markDef: f, config: d });
|
|
31198
|
-
Xf(c) &&
|
|
31198
|
+
Xf(c) && St(s) && h !== 0.5 && (u.rectBandPosition = h);
|
|
31199
31199
|
}
|
|
31200
31200
|
u && (i[$e(u)] = u);
|
|
31201
31201
|
}
|
|
@@ -31818,7 +31818,7 @@ function mC(e, t, n = "datum") {
|
|
|
31818
31818
|
if (e) {
|
|
31819
31819
|
if (li(e))
|
|
31820
31820
|
return it(e.value);
|
|
31821
|
-
if (
|
|
31821
|
+
if (ve(e)) {
|
|
31822
31822
|
const { format: r, formatType: i } = Au(e);
|
|
31823
31823
|
return XE({ fieldOrDatumDef: e, format: r, formatType: i, expr: n, config: t });
|
|
31824
31824
|
}
|
|
@@ -31860,14 +31860,14 @@ function fL(e, t, n, { reactiveGeom: r } = {}) {
|
|
|
31860
31860
|
// for secondary field def, copy type from main channel
|
|
31861
31861
|
}, p = h.title || QE(h, i), g = ee(p).join(", ").replaceAll(/"/g, '\\"');
|
|
31862
31862
|
let m;
|
|
31863
|
-
if (
|
|
31863
|
+
if (St(f)) {
|
|
31864
31864
|
const y = f === "x" ? "x2" : "y2", _ = ui(e[y]);
|
|
31865
31865
|
if (Qt(h.bin) && _) {
|
|
31866
31866
|
const b = K(h, { expr: s }), v = K(_, { expr: s }), { format: x, formatType: E } = Au(h);
|
|
31867
31867
|
m = Bd(b, v, x, E, i), o.add(y);
|
|
31868
31868
|
}
|
|
31869
31869
|
}
|
|
31870
|
-
if ((
|
|
31870
|
+
if ((St(f) || f === zr || f === gi) && t && t.fieldChannel === f && t.offset === "normalize") {
|
|
31871
31871
|
const { format: y, formatType: _ } = Au(h);
|
|
31872
31872
|
m = XE({
|
|
31873
31873
|
fieldOrDatumDef: h,
|
|
@@ -32043,7 +32043,7 @@ function Dn(e, t, { defaultPos: n, vgChannel: r }) {
|
|
|
32043
32043
|
channel: e,
|
|
32044
32044
|
scaleName: c,
|
|
32045
32045
|
scale: f
|
|
32046
|
-
}), g = !l &&
|
|
32046
|
+
}), g = !l && St(e) && (i.latitude || i.longitude) ? (
|
|
32047
32047
|
// use geopoint output if there are lat/long and there is no point position overriding lat/long.
|
|
32048
32048
|
{ field: t.getName(e) }
|
|
32049
32049
|
) : Zde({
|
|
@@ -32063,7 +32063,7 @@ function Dn(e, t, { defaultPos: n, vgChannel: r }) {
|
|
|
32063
32063
|
}
|
|
32064
32064
|
function Zde(e) {
|
|
32065
32065
|
const { channel: t, channelDef: n, scaleName: r, stack: i, offset: o, markDef: s } = e;
|
|
32066
|
-
if (
|
|
32066
|
+
if (ve(n) && i && t === i.fieldChannel) {
|
|
32067
32067
|
if (G(n)) {
|
|
32068
32068
|
let a = n.bandPosition;
|
|
32069
32069
|
if (a === void 0 && s.type === "text" && (t === "radius" || t === "theta") && (a = 0.5), a !== void 0)
|
|
@@ -32191,7 +32191,7 @@ function ehe(e, t, n) {
|
|
|
32191
32191
|
};
|
|
32192
32192
|
}
|
|
32193
32193
|
function the({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u }) {
|
|
32194
|
-
return
|
|
32194
|
+
return ve(t) && a && // If fieldChannel is X and channel is X2 (or Y and Y2)
|
|
32195
32195
|
e.charAt(0) === a.fieldChannel.charAt(0) ? Ca(t, o, { suffix: "start" }, { offset: l }) : VE({
|
|
32196
32196
|
channel: e,
|
|
32197
32197
|
channelDef: n,
|
|
@@ -32225,7 +32225,7 @@ function Ro(e, t) {
|
|
|
32225
32225
|
fieldDef2: u,
|
|
32226
32226
|
channel: t,
|
|
32227
32227
|
model: e
|
|
32228
|
-
}) : (
|
|
32228
|
+
}) : (ve(l) && bt(f) || g) && !u ? rhe(l, t, e) : gL(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
|
|
32229
32229
|
}
|
|
32230
32230
|
function nhe(e, t, n, r, i, o, s) {
|
|
32231
32231
|
if (Ga(i))
|
|
@@ -32254,7 +32254,7 @@ function nhe(e, t, n, r, i, o, s) {
|
|
|
32254
32254
|
return { value: l.step - 2 };
|
|
32255
32255
|
}
|
|
32256
32256
|
if (!o) {
|
|
32257
|
-
const { bandPaddingInner: l, barBandPaddingInner: u, rectBandPaddingInner: c, tickBandPaddingInner: f } = r.scale, d =
|
|
32257
|
+
const { bandPaddingInner: l, barBandPaddingInner: u, rectBandPaddingInner: c, tickBandPaddingInner: f } = r.scale, d = kt(l, s === "tick" ? f : s === "bar" ? u : c);
|
|
32258
32258
|
if (se(d))
|
|
32259
32259
|
return { signal: `(1 - (${d.signal})) * ${e}` };
|
|
32260
32260
|
if (qe(d))
|
|
@@ -32323,7 +32323,7 @@ function D3(e, t, n, r, i, o, s) {
|
|
|
32323
32323
|
return i = i || 0, r + (n ? -i - l : +i + l);
|
|
32324
32324
|
}
|
|
32325
32325
|
function ihe({ fieldDef: e, fieldDef2: t, channel: n, model: r }) {
|
|
32326
|
-
const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = i9({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), h = r.component.axes[n]?.[0]?.get("translate") ?? 0.5, p =
|
|
32326
|
+
const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = i9({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), h = r.component.axes[n]?.[0]?.get("translate") ?? 0.5, p = St(n) ? Ye("binSpacing", o, i) ?? 0 : 0, g = ro(n), m = $s(n), y = $s(g), _ = Wi("minBandSize", o, i), { offset: b } = Nu({ channel: n, markDef: o, encoding: s, model: r, bandPosition: 0 }), { offset: v } = Nu({ channel: g, markDef: o, encoding: s, model: r, bandPosition: 0 }), x = Ace({ fieldDef: e, scaleName: l }), E = D3(n, p, c, h, b, _, x), w = D3(g, p, c, h, v ?? b, _, x), k = se(f) ? { signal: `(1-${f.signal})/2` } : Ga(f) ? (1 - f.band) / 2 : 0.5, S = As({ fieldDef: e, fieldDef2: t, markDef: o, config: i });
|
|
32327
32327
|
if (nt(e.bin) || e.timeUnit) {
|
|
32328
32328
|
const A = e.timeUnit && S !== 0.5;
|
|
32329
32329
|
return {
|
|
@@ -32869,7 +32869,7 @@ function uf(e, t, n, r = { header: !1 }) {
|
|
|
32869
32869
|
maxExtent: 0,
|
|
32870
32870
|
minExtent: 0,
|
|
32871
32871
|
ticks: !1,
|
|
32872
|
-
zindex:
|
|
32872
|
+
zindex: kt(u, 0)
|
|
32873
32873
|
// put grid behind marks by default
|
|
32874
32874
|
};
|
|
32875
32875
|
} else {
|
|
@@ -32892,7 +32892,7 @@ function uf(e, t, n, r = { header: !1 }) {
|
|
|
32892
32892
|
...f ? { title: f } : {},
|
|
32893
32893
|
...c,
|
|
32894
32894
|
...n.aria === !1 ? { aria: !1 } : {},
|
|
32895
|
-
zindex:
|
|
32895
|
+
zindex: kt(u, 0)
|
|
32896
32896
|
// put axis line above marks by default
|
|
32897
32897
|
};
|
|
32898
32898
|
}
|
|
@@ -33184,7 +33184,7 @@ function U0(e, t) {
|
|
|
33184
33184
|
}
|
|
33185
33185
|
function Ru(e, t, n, r) {
|
|
33186
33186
|
const i = r === "row" ? n.headerRow : r === "column" ? n.headerColumn : n.headerFacet;
|
|
33187
|
-
return
|
|
33187
|
+
return kt((t || {})[e], i[e], n.header[e]);
|
|
33188
33188
|
}
|
|
33189
33189
|
function j0(e, t, n, r) {
|
|
33190
33190
|
const i = {};
|
|
@@ -33383,7 +33383,7 @@ function U3(e, t) {
|
|
|
33383
33383
|
return se(t.step) ? { name: n, update: t.step.signal } : { name: n, value: t.step };
|
|
33384
33384
|
}
|
|
33385
33385
|
function IL(e, t, n) {
|
|
33386
|
-
const r = t.get("type"), i = t.get("padding"), o =
|
|
33386
|
+
const r = t.get("type"), i = t.get("padding"), o = kt(t.get("paddingOuter"), i);
|
|
33387
33387
|
let s = t.get("paddingInner");
|
|
33388
33388
|
return s = r === "band" ? (
|
|
33389
33389
|
// only band has real paddingInner
|
|
@@ -33416,11 +33416,11 @@ function BL(e, t) {
|
|
|
33416
33416
|
if (lc(t))
|
|
33417
33417
|
return "shared";
|
|
33418
33418
|
if (MC(t))
|
|
33419
|
-
return
|
|
33419
|
+
return St(e) || e === "theta" || e === "radius" ? "independent" : "shared";
|
|
33420
33420
|
throw new Error("invalid model type for resolve");
|
|
33421
33421
|
}
|
|
33422
33422
|
function EC(e, t) {
|
|
33423
|
-
const n = e.scale[t], r =
|
|
33423
|
+
const n = e.scale[t], r = St(t) ? "axis" : "legend";
|
|
33424
33424
|
return n === "independent" ? (e[r][t] === "shared" && H(cue(t)), "independent") : e[r][t] || "shared";
|
|
33425
33425
|
}
|
|
33426
33426
|
const Lhe = {
|
|
@@ -33472,7 +33472,7 @@ function Phe(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
|
|
|
33472
33472
|
else if (W(f.stroke, "field") || p)
|
|
33473
33473
|
delete f.stroke;
|
|
33474
33474
|
else if (B(f.stroke)) {
|
|
33475
|
-
const m =
|
|
33475
|
+
const m = kt(tv(a.stroke || a.color), s.stroke, c ? s.color : void 0);
|
|
33476
33476
|
m && (f.stroke = { value: m });
|
|
33477
33477
|
}
|
|
33478
33478
|
}
|
|
@@ -33529,7 +33529,7 @@ function jL(e) {
|
|
|
33529
33529
|
return qL(e, (t, n) => Math.max(t, n.value));
|
|
33530
33530
|
}
|
|
33531
33531
|
function tv(e) {
|
|
33532
|
-
return qL(e, (t, n) =>
|
|
33532
|
+
return qL(e, (t, n) => kt(t, n.value));
|
|
33533
33533
|
}
|
|
33534
33534
|
function qL(e, t) {
|
|
33535
33535
|
if (Oce(e))
|
|
@@ -33607,7 +33607,7 @@ function qhe(e, t, n, r) {
|
|
|
33607
33607
|
}
|
|
33608
33608
|
function Whe(e) {
|
|
33609
33609
|
const { legend: t } = e;
|
|
33610
|
-
return
|
|
33610
|
+
return kt(t.type, Hhe(e));
|
|
33611
33611
|
}
|
|
33612
33612
|
function Hhe({ channel: e, timeUnit: t, scaleType: n }) {
|
|
33613
33613
|
if (Xl(e)) {
|
|
@@ -33902,7 +33902,7 @@ function ope(e, t, n, r) {
|
|
|
33902
33902
|
if (Pn(n) && at(r) && o9(n, i, r.markDef, r.config)) {
|
|
33903
33903
|
e.add(K(n, {})), e.add(K(n, { suffix: "end" }));
|
|
33904
33904
|
const { mark: o, markDef: s, config: a } = r, l = As({ fieldDef: n, markDef: s, config: a });
|
|
33905
|
-
Xf(o) && l !== 0.5 &&
|
|
33905
|
+
Xf(o) && l !== 0.5 && St(t) && (e.add(K(n, { suffix: P0 })), e.add(K(n, { suffix: z0 }))), n.bin && Wd(n, t) && e.add(K(n, { binSuffix: "range" }));
|
|
33906
33906
|
} else if (nO(t)) {
|
|
33907
33907
|
const o = tO(t);
|
|
33908
33908
|
e.add(r.getName(o));
|
|
@@ -34739,7 +34739,7 @@ class Mo extends Je {
|
|
|
34739
34739
|
const { stack: r, groupby: i, as: o, offset: s = "zero" } = n, a = [], l = [];
|
|
34740
34740
|
if (n.sort !== void 0)
|
|
34741
34741
|
for (const f of n.sort)
|
|
34742
|
-
a.push(f.field), l.push(
|
|
34742
|
+
a.push(f.field), l.push(kt(f.order, "ascending"));
|
|
34743
34743
|
const u = {
|
|
34744
34744
|
field: a,
|
|
34745
34745
|
order: l
|
|
@@ -35125,7 +35125,7 @@ function Yo(e, t, n, r) {
|
|
|
35125
35125
|
} else if (p.timeUnit && Re(["time", "utc"], e)) {
|
|
35126
35126
|
const g = i[ro(r)];
|
|
35127
35127
|
if (o9(p, g, o, a)) {
|
|
35128
|
-
const m = n.requestDataName(d), y = As({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), _ = Xf(s) && y !== 0.5 &&
|
|
35128
|
+
const m = n.requestDataName(d), y = As({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), _ = Xf(s) && y !== 0.5 && St(r);
|
|
35129
35129
|
return nr([
|
|
35130
35130
|
{
|
|
35131
35131
|
data: m,
|
|
@@ -35563,7 +35563,7 @@ function K3(e) {
|
|
|
35563
35563
|
}, []);
|
|
35564
35564
|
}
|
|
35565
35565
|
function Ype(e, t, n, r) {
|
|
35566
|
-
if (
|
|
35566
|
+
if (St(n)) {
|
|
35567
35567
|
if (hl(e))
|
|
35568
35568
|
return {
|
|
35569
35569
|
step: { signal: `${t}_step` }
|
|
@@ -35663,7 +35663,7 @@ function Zpe(e, t) {
|
|
|
35663
35663
|
case "range": {
|
|
35664
35664
|
const p = n.range;
|
|
35665
35665
|
if (B(p)) {
|
|
35666
|
-
if (
|
|
35666
|
+
if (St(e))
|
|
35667
35667
|
return ki(p.map((g) => {
|
|
35668
35668
|
if (g === "width" || g === "height") {
|
|
35669
35669
|
const m = t.getName(g), y = t.getSignalName.bind(t);
|
|
@@ -35685,7 +35685,7 @@ function Zpe(e, t) {
|
|
|
35685
35685
|
}
|
|
35686
35686
|
const s = e === ut || e === "xOffset" ? "width" : "height", a = r[s];
|
|
35687
35687
|
if (Gi(a)) {
|
|
35688
|
-
if (
|
|
35688
|
+
if (St(e))
|
|
35689
35689
|
if (bt(o)) {
|
|
35690
35690
|
const f = i7(a, t, e);
|
|
35691
35691
|
if (f)
|
|
@@ -35779,7 +35779,7 @@ function Qpe(e, t) {
|
|
|
35779
35779
|
}
|
|
35780
35780
|
function i7(e, t, n) {
|
|
35781
35781
|
const { encoding: r } = t, i = t.getScaleComponent(n), o = bE(n), s = r[o];
|
|
35782
|
-
if (I9({ step: e, offsetIsDiscrete:
|
|
35782
|
+
if (I9({ step: e, offsetIsDiscrete: ve(s) && zE(s.type) }) === "offset" && y9(r, o)) {
|
|
35783
35783
|
const l = t.getScaleComponent(o);
|
|
35784
35784
|
let c = `domain('${t.scaleName(o)}').length`;
|
|
35785
35785
|
if (l.get("type") === "band") {
|
|
@@ -35991,10 +35991,10 @@ function age(e, t) {
|
|
|
35991
35991
|
}
|
|
35992
35992
|
function lge(e, t, n, r, i, o) {
|
|
35993
35993
|
if (!(ui(o)?.bin || B(n) || i != null || r != null || Re([tn.TIME, tn.UTC], e)))
|
|
35994
|
-
return
|
|
35994
|
+
return St(t) ? !0 : void 0;
|
|
35995
35995
|
}
|
|
35996
35996
|
function uge(e, t, n, r, i, o) {
|
|
35997
|
-
if (
|
|
35997
|
+
if (St(e)) {
|
|
35998
35998
|
if (Ni(t)) {
|
|
35999
35999
|
if (n.continuousPadding !== void 0)
|
|
36000
36000
|
return n.continuousPadding;
|
|
@@ -36008,21 +36008,21 @@ function uge(e, t, n, r, i, o) {
|
|
|
36008
36008
|
}
|
|
36009
36009
|
function cge(e, t, n, r, i, o = !1) {
|
|
36010
36010
|
if (e === void 0) {
|
|
36011
|
-
if (
|
|
36011
|
+
if (St(t)) {
|
|
36012
36012
|
const { bandPaddingInner: s, barBandPaddingInner: a, rectBandPaddingInner: l, tickBandPaddingInner: u, bandWithNestedOffsetPaddingInner: c } = i;
|
|
36013
|
-
return o ? c :
|
|
36013
|
+
return o ? c : kt(s, n === "bar" ? a : n === "tick" ? u : l);
|
|
36014
36014
|
} else if (Id(t) && r === tn.BAND)
|
|
36015
36015
|
return i.offsetBandPaddingInner;
|
|
36016
36016
|
}
|
|
36017
36017
|
}
|
|
36018
36018
|
function fge(e, t, n, r, i, o = !1) {
|
|
36019
36019
|
if (e === void 0) {
|
|
36020
|
-
if (
|
|
36020
|
+
if (St(t)) {
|
|
36021
36021
|
const { bandPaddingOuter: s, bandWithNestedOffsetPaddingOuter: a } = i;
|
|
36022
36022
|
if (o)
|
|
36023
36023
|
return a;
|
|
36024
36024
|
if (n === tn.BAND)
|
|
36025
|
-
return
|
|
36025
|
+
return kt(
|
|
36026
36026
|
s,
|
|
36027
36027
|
/* By default, paddingOuter is paddingInner / 2. The reason is that
|
|
36028
36028
|
size (width/height) = step * (cardinality - paddingInner + 2 * paddingOuter).
|
|
@@ -36073,7 +36073,7 @@ function gge(e, t, n, r) {
|
|
|
36073
36073
|
return e === "shape" && t.type === "ordinal" && H(hy(e, "ordinal")), "ordinal";
|
|
36074
36074
|
if (fy(e))
|
|
36075
36075
|
return "band";
|
|
36076
|
-
if (
|
|
36076
|
+
if (St(e) || Id(e)) {
|
|
36077
36077
|
if (Re(["rect", "bar", "image", "rule", "tick"], n.type) || r)
|
|
36078
36078
|
return "band";
|
|
36079
36079
|
} else if (n.type === "arc" && e in wE)
|
|
@@ -37014,7 +37014,7 @@ function Cge(e, t) {
|
|
|
37014
37014
|
includeDefault: a === void 0 || !!a
|
|
37015
37015
|
});
|
|
37016
37016
|
i.component.layoutHeaders[t].title && (l = B(l) ? l.join(", ") : l, l += ` / ${i.component.layoutHeaders[t].title}`, i.component.layoutHeaders[t].title = null);
|
|
37017
|
-
const u = Ru("labelOrient", s.header, r, t), c = s.header !== null ?
|
|
37017
|
+
const u = Ru("labelOrient", s.header, r, t), c = s.header !== null ? kt(s.header?.labels, r.header.labels, !0) : !1, f = Re(["bottom", "right"], u) ? "footer" : "header";
|
|
37018
37018
|
o.layoutHeaders[t] = {
|
|
37019
37019
|
title: s.header !== null ? l : null,
|
|
37020
37020
|
facetFieldDef: s,
|
|
@@ -37729,7 +37729,7 @@ function Bge(e, t) {
|
|
|
37729
37729
|
return {
|
|
37730
37730
|
explicit: i.explicit,
|
|
37731
37731
|
// keep the old explicit
|
|
37732
|
-
value:
|
|
37732
|
+
value: kt(i.value, o.value)
|
|
37733
37733
|
};
|
|
37734
37734
|
}
|
|
37735
37735
|
return I0(i, o, n, "axis");
|
|
@@ -38236,7 +38236,7 @@ function fme(e) {
|
|
|
38236
38236
|
}
|
|
38237
38237
|
}
|
|
38238
38238
|
function RC(e, t = { fromPrefix: "" }) {
|
|
38239
|
-
const { mark: n, markDef: r, encoding: i, config: o } = e, s =
|
|
38239
|
+
const { mark: n, markDef: r, encoding: i, config: o } = e, s = kt(r.clip, dme(e), hme(e)), a = gO(r), l = i.key, u = fme(e), c = pme(e);
|
|
38240
38240
|
c && Object.values(e.component.selection).some((h) => h.type === "point" && !h.bind && // if on is a pointerover (hover) the pointer makes less sense since the mark is not clickable.
|
|
38241
38241
|
h.on !== "pointerover") && (e.markDef.cursor ??= "pointer");
|
|
38242
38242
|
const f = Ye("aria", r, o), d = Dh[n].postEncodingTransform ? Dh[n].postEncodingTransform(e) : null;
|
|
@@ -38306,7 +38306,7 @@ class m7 extends f7 {
|
|
|
38306
38306
|
}), this.stack = U9(this.markDef, l), this.specifiedScales = this.initScales(a, l), this.specifiedAxes = this.initAxes(l), this.specifiedLegends = this.initLegends(l), this.specifiedProjection = t.projection, this.selection = (t.params ?? []).filter((u) => lC(u)), this.alignStackOrderWithColorDomain();
|
|
38307
38307
|
}
|
|
38308
38308
|
get hasProjection() {
|
|
38309
|
-
const { encoding: t } = this, n = this.mark === VO, r = t && qae.some((i) =>
|
|
38309
|
+
const { encoding: t } = this, n = this.mark === VO, r = t && qae.some((i) => ve(t[i]));
|
|
38310
38310
|
return n || r;
|
|
38311
38311
|
}
|
|
38312
38312
|
/**
|
|
@@ -38336,8 +38336,8 @@ class m7 extends f7 {
|
|
|
38336
38336
|
initAxes(t) {
|
|
38337
38337
|
return jo.reduce((n, r) => {
|
|
38338
38338
|
const i = t[r];
|
|
38339
|
-
if (
|
|
38340
|
-
const o =
|
|
38339
|
+
if (ve(i) || r === ut && ve(t.x2) || r === Zt && ve(t.y2)) {
|
|
38340
|
+
const o = ve(i) ? i.axis : void 0;
|
|
38341
38341
|
n[r] = o && this.initAxis({ ...o });
|
|
38342
38342
|
}
|
|
38343
38343
|
return n;
|
|
@@ -38597,7 +38597,7 @@ const _me = Iae.version, bme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
|
|
|
38597
38597
|
every: dE,
|
|
38598
38598
|
fieldIntersection: pE,
|
|
38599
38599
|
flatAccessWithDatum: V8,
|
|
38600
|
-
getFirstDefined:
|
|
38600
|
+
getFirstDefined: kt,
|
|
38601
38601
|
hasIntersection: hE,
|
|
38602
38602
|
hasProperty: W,
|
|
38603
38603
|
hash: $e,
|
|
@@ -40925,12 +40925,12 @@ const u1e = "_text_we7dz_1", c1e = "_chart_time_we7dz_30", f1e = "_quick_replies
|
|
|
40925
40925
|
quick_reply: d1e
|
|
40926
40926
|
};
|
|
40927
40927
|
function h1e(e) {
|
|
40928
|
-
const { message: t } = e, n = t.message.template, { template: r, botMessage: i } =
|
|
40928
|
+
const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = vt(), { avatar: o } = Ft(), [s, a] = we(n?.defaultChart ?? n?.chartOptions?.[0]?.type), l = be(() => n.chartOptions, [n]), u = be(
|
|
40929
40929
|
() => n?.chartOptions?.find(
|
|
40930
40930
|
(f) => f.type === s
|
|
40931
40931
|
)?.spec ?? l[0].spec,
|
|
40932
40932
|
[s, n.chartOptions, l]
|
|
40933
|
-
), c =
|
|
40933
|
+
), c = be(
|
|
40934
40934
|
() => ({
|
|
40935
40935
|
color: i?.color,
|
|
40936
40936
|
backgroundColor: i?.backgroundColor
|
|
@@ -40964,7 +40964,7 @@ const p1e = "_image_box_8cz9p_1", g1e = "_full_screen_8cz9p_24", m1e = "_imageOr
|
|
|
40964
40964
|
full_screen_close: y1e
|
|
40965
40965
|
};
|
|
40966
40966
|
function _1e(e) {
|
|
40967
|
-
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } =
|
|
40967
|
+
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } = vt(), { avatar: s } = Ft(), [a, l] = we(!1);
|
|
40968
40968
|
return a ? /* @__PURE__ */ U("div", { className: zh.full_screen, onClick: () => l(!1), children: [
|
|
40969
40969
|
/* @__PURE__ */ C("div", { className: zh.full_screen_close, children: /* @__PURE__ */ C(uT, {}) }),
|
|
40970
40970
|
/* @__PURE__ */ C("div", { className: zh.imageOrigin, style: { backgroundImage: `url(${i})` } })
|
|
@@ -41025,7 +41025,7 @@ function $1e(e) {
|
|
|
41025
41025
|
return `https://www.youtube.com/embed/${e}?autoplay=1&rel=0`;
|
|
41026
41026
|
}
|
|
41027
41027
|
function A1e(e) {
|
|
41028
|
-
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i, duration: o } = n, { template: s } =
|
|
41028
|
+
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i, duration: o } = n, { template: s } = vt(), { avatar: a, messageBoxBottomRef: l } = Ft(), [u, c] = we(!1), f = yt(null), d = yt(null), [h, p] = we(null), [g, m] = we(0), [y, _] = we(0);
|
|
41029
41029
|
Oe(() => {
|
|
41030
41030
|
const T = setTimeout(() => {
|
|
41031
41031
|
l.current && l.current.scrollIntoView({ behavior: "smooth" });
|
|
@@ -41038,7 +41038,7 @@ function A1e(e) {
|
|
|
41038
41038
|
l.current && setTimeout(() => {
|
|
41039
41039
|
l.current?.scrollIntoView({ behavior: "smooth" });
|
|
41040
41040
|
}, 50);
|
|
41041
|
-
}, v =
|
|
41041
|
+
}, v = be(() => S1e(i), [i]), x = be(() => F7(i), [i]), E = be(() => x ? $1e(x) : null, [x]), w = () => {
|
|
41042
41042
|
c(!0), !v && f.current && f.current.play();
|
|
41043
41043
|
}, k = (T) => {
|
|
41044
41044
|
const F = Math.floor(T / 1e3), D = Math.floor(F / 60), N = F % 60;
|
|
@@ -41075,7 +41075,7 @@ function A1e(e) {
|
|
|
41075
41075
|
Oe(() => {
|
|
41076
41076
|
v && p({ width: 16, height: 9 });
|
|
41077
41077
|
}, [v]);
|
|
41078
|
-
const A =
|
|
41078
|
+
const A = be(() => {
|
|
41079
41079
|
const T = g || window.innerWidth, F = y || window.innerHeight, N = h || { width: 16, height: 9 }, { width: $, height: M } = N, R = $ / M;
|
|
41080
41080
|
if ($ > M) {
|
|
41081
41081
|
const O = T * 0.76, V = O / R;
|
|
@@ -41149,7 +41149,7 @@ const M1e = "_audio_box_1y8ew_1", T1e = "_audio_player_1y8ew_13", GM = {
|
|
|
41149
41149
|
audio_player: T1e
|
|
41150
41150
|
};
|
|
41151
41151
|
function N1e(e) {
|
|
41152
|
-
const { message: t } = e, n = t.message.template, { originalContentUrl: r } = n, { template: i } =
|
|
41152
|
+
const { message: t } = e, n = t.message.template, { originalContentUrl: r } = n, { template: i } = vt(), { avatar: o, messageBoxBottomRef: s } = Ft();
|
|
41153
41153
|
return Oe(() => {
|
|
41154
41154
|
const a = setTimeout(() => {
|
|
41155
41155
|
s.current && s.current.scrollIntoView({ behavior: "smooth" });
|
|
@@ -41224,7 +41224,7 @@ function P1e(e) {
|
|
|
41224
41224
|
);
|
|
41225
41225
|
}
|
|
41226
41226
|
function z1e(e) {
|
|
41227
|
-
const { message: t } = e, { template: n } =
|
|
41227
|
+
const { message: t } = e, { template: n } = vt(), { avatar: r } = Ft(), i = t.message.template;
|
|
41228
41228
|
return /* @__PURE__ */ U(yn, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
|
|
41229
41229
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
41230
41230
|
/* @__PURE__ */ C(
|
|
@@ -41268,13 +41268,13 @@ const B1e = "_message_wrapper_1cjr0_1", U1e = "_text_bubble_1cjr0_9", j1e = "_im
|
|
|
41268
41268
|
modal_image: K1e
|
|
41269
41269
|
};
|
|
41270
41270
|
function Z1e({ message: e }) {
|
|
41271
|
-
const [t, n] = we(null), r =
|
|
41271
|
+
const [t, n] = we(null), r = vt(), i = be(
|
|
41272
41272
|
() => ({
|
|
41273
41273
|
color: r?.userMessage?.color,
|
|
41274
41274
|
backgroundColor: r?.userMessage?.backgroundColor
|
|
41275
41275
|
}),
|
|
41276
41276
|
[r]
|
|
41277
|
-
), o =
|
|
41277
|
+
), o = be(
|
|
41278
41278
|
() => ({
|
|
41279
41279
|
backgroundColor: r?.userMessage?.backgroundColor,
|
|
41280
41280
|
color: r?.userMessage?.color
|
|
@@ -41627,15 +41627,15 @@ function n_e() {
|
|
|
41627
41627
|
] });
|
|
41628
41628
|
}
|
|
41629
41629
|
function r_e(e) {
|
|
41630
|
-
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l } = r, { template: u, botMessage: c } =
|
|
41630
|
+
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l } = r, { template: u, botMessage: c } = vt(), { avatar: f } = Ft(), [d, h] = we(1), [p, g] = we({
|
|
41631
41631
|
visible: !1,
|
|
41632
41632
|
fileName: "",
|
|
41633
41633
|
blobUrl: null
|
|
41634
|
-
}), m = a?.size ?? s.length, y = Math.ceil(s.length / m), _ =
|
|
41634
|
+
}), m = a?.size ?? s.length, y = Math.ceil(s.length / m), _ = be(() => {
|
|
41635
41635
|
if (!a) return s;
|
|
41636
41636
|
const S = (d - 1) * m, A = S + m;
|
|
41637
41637
|
return s.slice(S, A);
|
|
41638
|
-
}, [s, a, d, m]), b =
|
|
41638
|
+
}, [s, a, d, m]), b = be(
|
|
41639
41639
|
() => ({
|
|
41640
41640
|
color: c?.color,
|
|
41641
41641
|
backgroundColor: c?.backgroundColor
|
|
@@ -41731,7 +41731,7 @@ function r_e(e) {
|
|
|
41731
41731
|
);
|
|
41732
41732
|
}
|
|
41733
41733
|
function i_e(e) {
|
|
41734
|
-
const { message: t } = e, { renderMessageContent: n } = Lu(), { avatar: r } = Ft(), i =
|
|
41734
|
+
const { message: t } = e, { renderMessageContent: n } = Lu(), { avatar: r } = Ft(), i = be(() => function({ children: a }) {
|
|
41735
41735
|
return t.type === "bot" ? /* @__PURE__ */ U(yn, { type: "bot", direction: "horizontal", children: [
|
|
41736
41736
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
41737
41737
|
/* @__PURE__ */ C(pr, { message: t, time: t.time, children: a })
|
|
@@ -41795,7 +41795,7 @@ function s_e(e) {
|
|
|
41795
41795
|
}
|
|
41796
41796
|
const a_e = 50;
|
|
41797
41797
|
function l_e() {
|
|
41798
|
-
const { chatbot: e } =
|
|
41798
|
+
const { chatbot: e } = vt(), { renderToolCallGroup: t } = Lu(), {
|
|
41799
41799
|
messages: n,
|
|
41800
41800
|
messageBoxBottomRef: r,
|
|
41801
41801
|
botTypingPlaceholder: i,
|
|
@@ -41827,7 +41827,7 @@ function l_e() {
|
|
|
41827
41827
|
s && u("smooth");
|
|
41828
41828
|
}, [s, u]);
|
|
41829
41829
|
nI({ ref: f, onResize: d });
|
|
41830
|
-
const h =
|
|
41830
|
+
const h = be(
|
|
41831
41831
|
() => ({
|
|
41832
41832
|
maxWidth: e?.contentMaxWidth ?? "1200px"
|
|
41833
41833
|
}),
|
|
@@ -41902,7 +41902,7 @@ const u_e = "_chatbot_footer_1fl03_1", c_e = "_chatbot_footer__content_1fl03_4",
|
|
|
41902
41902
|
document_preview_icon_wrapper: P_e,
|
|
41903
41903
|
document_preview_icon: z_e,
|
|
41904
41904
|
document_preview_name: B_e
|
|
41905
|
-
}, U_e = (e) => /* @__PURE__ */
|
|
41905
|
+
}, U_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), YM = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }), /* @__PURE__ */ xe.createElement("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }), /* @__PURE__ */ xe.createElement("circle", { cx: 12, cy: 8, r: 2 }), /* @__PURE__ */ xe.createElement("rect", { width: 16, height: 16, x: 6, y: 2, rx: 2 })), XM = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), /* @__PURE__ */ xe.createElement("polyline", { points: "7 10 12 15 17 10" }), /* @__PURE__ */ xe.createElement("line", { x1: 12, x2: 12, y1: 15, y2: 3 })), z7 = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), /* @__PURE__ */ xe.createElement("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }), /* @__PURE__ */ xe.createElement("path", { d: "M10 9H8" }), /* @__PURE__ */ xe.createElement("path", { d: "M16 13H8" }), /* @__PURE__ */ xe.createElement("path", { d: "M16 17H8" })), j_e = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M5 12h14" }), /* @__PURE__ */ xe.createElement("path", { d: "M12 5v14" })), q_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 11, height: 16, viewBox: "0 0 11 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M5.40658 9.90397C4.82435 9.90397 4.33158 9.7023 3.92824 9.29897C3.52491 8.89564 3.32324 8.40286 3.32324 7.82064V2.82064C3.32324 2.23842 3.52491 1.74564 3.92824 1.3423C4.33158 0.938971 4.82435 0.737305 5.40658 0.737305C5.9888 0.737305 6.48158 0.938971 6.88491 1.3423C7.28824 1.74564 7.48991 2.23842 7.48991 2.82064V7.82064C7.48991 8.40286 7.28824 8.89564 6.88491 9.29897C6.48158 9.7023 5.9888 9.90397 5.40658 9.90397ZM4.86491 15.1123V12.8654C3.56213 12.7208 2.47949 12.1724 1.61699 11.2202C0.754492 10.2679 0.323242 9.13467 0.323242 7.82064H1.40658C1.40658 8.92731 1.79706 9.87064 2.57803 10.6506C3.35887 11.4306 4.30331 11.8206 5.41137 11.8206C6.51928 11.8206 7.46213 11.4306 8.23991 10.6506C9.01769 9.87064 9.40658 8.92731 9.40658 7.82064H10.4899C10.4899 9.13467 10.0587 10.2679 9.19616 11.2202C8.33366 12.1724 7.25102 12.7208 5.94824 12.8654V15.1123H4.86491ZM5.40658 8.82064C5.68991 8.82064 5.92741 8.7248 6.11908 8.53314C6.31074 8.34147 6.40658 8.10397 6.40658 7.82064V2.82064C6.40658 2.5373 6.31074 2.2998 6.11908 2.10814C5.92741 1.91647 5.68991 1.82064 5.40658 1.82064C5.12324 1.82064 4.88574 1.91647 4.69408 2.10814C4.50241 2.2998 4.40658 2.5373 4.40658 2.82064V7.82064C4.40658 8.10397 4.50241 8.34147 4.69408 8.53314C4.88574 8.7248 5.12324 8.82064 5.40658 8.82064Z", fill: "currentColor" })), W_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("circle", { cx: 20, cy: 20, r: 18, fill: "#D04444" }), /* @__PURE__ */ xe.createElement("rect", { x: 12, y: 12, width: 16, height: 16, fill: "#FFFFFF", rx: 2, ry: 2 }));
|
|
41906
41906
|
function H_e(e) {
|
|
41907
41907
|
const { setValue: t, className: n, style: r } = e, [i, o] = we(!1), s = yt(null);
|
|
41908
41908
|
Oe(() => {
|
|
@@ -42108,13 +42108,13 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42108
42108
|
programmaticScrollToBottom: f,
|
|
42109
42109
|
pendingInputValue: d,
|
|
42110
42110
|
setPendingInputValue: h
|
|
42111
|
-
} = Ft(), { data: p } = gv(), { chatbot: g } =
|
|
42111
|
+
} = Ft(), { data: p } = gv(), { chatbot: g } = vt(), m = be(() => s !== void 0 ? s : p.annotations?.embedConfig?.enableUpload ?? !1, [s, p.annotations?.embedConfig?.enableUpload]), y = be(() => a !== void 0 ? a : p.annotations?.embedConfig?.enableExport ?? !1, [a, p.annotations?.embedConfig?.enableExport]), _ = be(() => l !== void 0 ? l : p.annotations?.embedConfig?.enableDocumentUpload ?? !1, [l, p.annotations?.embedConfig?.enableDocumentUpload]), b = be(() => p.annotations?.embedConfig?.title || c || "Bot", [p.annotations?.embedConfig?.title, c]), [v, x] = we(""), [E, w] = we(!1), [k, S] = we([]), [A, T] = we(null), [F, D] = we([]), [N, $] = we(!1), M = yt(null), R = yt(null), z = yt(null), O = be(
|
|
42112
42112
|
() => k.some((Z) => Z.uploadStatus === "uploading"),
|
|
42113
42113
|
[k]
|
|
42114
|
-
), V =
|
|
42114
|
+
), V = be(
|
|
42115
42115
|
() => F.some((Z) => Z.uploadStatus === "uploading"),
|
|
42116
42116
|
[F]
|
|
42117
|
-
), ae = !t, re =
|
|
42117
|
+
), ae = !t, re = be(
|
|
42118
42118
|
() => ae || n || O || V || !v.trim() && k.length === 0 && F.length === 0,
|
|
42119
42119
|
[
|
|
42120
42120
|
ae,
|
|
@@ -42125,29 +42125,29 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42125
42125
|
k.length,
|
|
42126
42126
|
F.length
|
|
42127
42127
|
]
|
|
42128
|
-
), fe =
|
|
42128
|
+
), fe = be(
|
|
42129
42129
|
() => ({
|
|
42130
42130
|
maxWidth: g?.contentMaxWidth ?? "1200px"
|
|
42131
42131
|
}),
|
|
42132
42132
|
[g]
|
|
42133
|
-
), Be =
|
|
42133
|
+
), Be = be(
|
|
42134
42134
|
() => ({
|
|
42135
42135
|
...g?.footer?.style,
|
|
42136
42136
|
borderTopColor: g?.borderColor
|
|
42137
42137
|
}),
|
|
42138
42138
|
[g]
|
|
42139
|
-
), pe =
|
|
42139
|
+
), pe = be(
|
|
42140
42140
|
() => ({
|
|
42141
42141
|
backgroundColor: g?.backgroundColor,
|
|
42142
42142
|
borderColor: g?.borderColor
|
|
42143
42143
|
}),
|
|
42144
42144
|
[g]
|
|
42145
|
-
), Le =
|
|
42145
|
+
), Le = be(
|
|
42146
42146
|
() => ({
|
|
42147
42147
|
color: g?.primaryComponent?.secondaryColor
|
|
42148
42148
|
}),
|
|
42149
42149
|
[g]
|
|
42150
|
-
), Jt =
|
|
42150
|
+
), Jt = be(() => {
|
|
42151
42151
|
let Z = 0;
|
|
42152
42152
|
return y && Z++, m && Z++, _ && Z++, Z;
|
|
42153
42153
|
}, [y, m, _]) >= 3;
|
|
@@ -42166,7 +42166,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42166
42166
|
ye(!0), setTimeout(() => {
|
|
42167
42167
|
f("smooth");
|
|
42168
42168
|
}, 300);
|
|
42169
|
-
}, [f]),
|
|
42169
|
+
}, [f]), xt = oe(() => {
|
|
42170
42170
|
ye(!1);
|
|
42171
42171
|
}, []), Ie = oe(() => {
|
|
42172
42172
|
if (!E && !n) {
|
|
@@ -42188,7 +42188,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42188
42188
|
Z.key === "Enter" && !E && !n && (v.trim() || k.length > 0 || F.length > 0) && (Z.preventDefault(), Ie());
|
|
42189
42189
|
},
|
|
42190
42190
|
[E, n, v, k.length, F.length, Ie]
|
|
42191
|
-
),
|
|
42191
|
+
), wt = oe(
|
|
42192
42192
|
async (Z, Ce) => {
|
|
42193
42193
|
if (!i?.uploadFile || !o) {
|
|
42194
42194
|
S(
|
|
@@ -42233,14 +42233,14 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42233
42233
|
previewUrl: dc.target.result,
|
|
42234
42234
|
uploadStatus: "uploading"
|
|
42235
42235
|
};
|
|
42236
|
-
S((G7) => [...G7, H7]),
|
|
42236
|
+
S((G7) => [...G7, H7]), wt(Hs, Te);
|
|
42237
42237
|
}
|
|
42238
42238
|
}, Xd.readAsDataURL(Te);
|
|
42239
42239
|
}
|
|
42240
42240
|
}
|
|
42241
42241
|
}
|
|
42242
42242
|
},
|
|
42243
|
-
[k.length,
|
|
42243
|
+
[k.length, wt]
|
|
42244
42244
|
), jt = oe(
|
|
42245
42245
|
(Z) => {
|
|
42246
42246
|
const Ce = Z.target.files;
|
|
@@ -42604,7 +42604,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42604
42604
|
onKeyDown: ht,
|
|
42605
42605
|
onPaste: W7,
|
|
42606
42606
|
onFocus: j,
|
|
42607
|
-
onAnimationEnd:
|
|
42607
|
+
onAnimationEnd: xt,
|
|
42608
42608
|
onCompositionStart: () => w(!0),
|
|
42609
42609
|
onCompositionEnd: () => w(!1)
|
|
42610
42610
|
}
|
|
@@ -42669,7 +42669,7 @@ const J_e = "_chatbot_root_htsl5_2", Q_e = "_full_screen_htsl5_128", ebe = "_cha
|
|
|
42669
42669
|
chatbot_container: ebe
|
|
42670
42670
|
};
|
|
42671
42671
|
function tbe(e) {
|
|
42672
|
-
const { children: t, onDragEnter: n, onDragOver: r, onDragLeave: i, onDrop: o } = e, s = yt(null), a = yt(null), l =
|
|
42672
|
+
const { children: t, onDragEnter: n, onDragOver: r, onDragLeave: i, onDrop: o } = e, s = yt(null), a = yt(null), l = vt();
|
|
42673
42673
|
rI(s), Oe(() => {
|
|
42674
42674
|
const c = a.current;
|
|
42675
42675
|
if (!c) return;
|
|
@@ -42695,7 +42695,7 @@ function tbe(e) {
|
|
|
42695
42695
|
c.removeEventListener("wheel", d), c.removeEventListener("touchstart", h), c.removeEventListener("touchmove", p);
|
|
42696
42696
|
};
|
|
42697
42697
|
}, []);
|
|
42698
|
-
const u =
|
|
42698
|
+
const u = be(() => l?.chatbot?.backgroundColor ? { backgroundColor: l.chatbot?.backgroundColor } : {}, [l]);
|
|
42699
42699
|
return /* @__PURE__ */ C("div", { ref: s, className: Kg.full_screen, children: /* @__PURE__ */ C(
|
|
42700
42700
|
"div",
|
|
42701
42701
|
{
|
|
@@ -42711,7 +42711,7 @@ function tbe(e) {
|
|
|
42711
42711
|
) });
|
|
42712
42712
|
}
|
|
42713
42713
|
function JM(e) {
|
|
42714
|
-
const { fullScreen: t, children: n, className: r, style: i = {}, onDragEnter: o, onDragOver: s, onDragLeave: a, onDrop: l } = e, u = yt(null), { chatbot: c } =
|
|
42714
|
+
const { fullScreen: t, children: n, className: r, style: i = {}, onDragEnter: o, onDragOver: s, onDragLeave: a, onDrop: l } = e, u = yt(null), { chatbot: c } = vt(), { style: f, header: d, body: h, footer: p, ...g } = c;
|
|
42715
42715
|
return Oe(() => {
|
|
42716
42716
|
const m = u.current;
|
|
42717
42717
|
if (!m) return;
|
|
@@ -42802,7 +42802,7 @@ function ube() {
|
|
|
42802
42802
|
/* @__PURE__ */ C("span", { className: jh.overlay__text, children: "Drop files here" })
|
|
42803
42803
|
] }) }) : null;
|
|
42804
42804
|
}
|
|
42805
|
-
const cbe = "_backdrop_153zk_1", fbe = "_modal_153zk_12", dbe = "_header_153zk_24", hbe = "_title_153zk_33", pbe = "_title_tool_153zk_41", gbe = "_close_btn_153zk_45", mbe = "_content_153zk_68", ybe = "_meta_row_153zk_76", _be = "_input_section_153zk_89", bbe = "_input_toggle_153zk_95", vbe = "_input_toggle_expanded_153zk_118", xbe = "_input_viewer_153zk_122", wbe = "_deny_reason_153zk_129", Ebe = "_actions_153zk_161", Cbe = "_action_btn_153zk_168", kbe = "_action_primary_153zk_186", Sbe = "_action_secondary_153zk_194", $be = "_action_danger_153zk_203", Abe = "_pending_indicator_153zk_212",
|
|
42805
|
+
const cbe = "_backdrop_153zk_1", fbe = "_modal_153zk_12", dbe = "_header_153zk_24", hbe = "_title_153zk_33", pbe = "_title_tool_153zk_41", gbe = "_close_btn_153zk_45", mbe = "_content_153zk_68", ybe = "_meta_row_153zk_76", _be = "_input_section_153zk_89", bbe = "_input_toggle_153zk_95", vbe = "_input_toggle_expanded_153zk_118", xbe = "_input_viewer_153zk_122", wbe = "_deny_reason_153zk_129", Ebe = "_actions_153zk_161", Cbe = "_action_btn_153zk_168", kbe = "_action_primary_153zk_186", Sbe = "_action_secondary_153zk_194", $be = "_action_danger_153zk_203", Abe = "_pending_indicator_153zk_212", Et = {
|
|
42806
42806
|
backdrop: cbe,
|
|
42807
42807
|
modal: fbe,
|
|
42808
42808
|
header: dbe,
|
|
@@ -42827,90 +42827,117 @@ function Mbe({ className: e }) {
|
|
|
42827
42827
|
return /* @__PURE__ */ C("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ C("path", { d: "M9 18l6-6-6-6" }) });
|
|
42828
42828
|
}
|
|
42829
42829
|
function Tbe(e) {
|
|
42830
|
-
const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = we(!1), [l, u] = we(!1), [c, f] = we("")
|
|
42830
|
+
const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = we(!1), [l, u] = we(!1), [c, f] = we(""), { chatbot: d } = vt(), h = d?.primaryComponent?.mainColor ?? d?.mainColor, p = d?.primaryComponent?.secondaryColor ?? d?.secondaryColor, g = d?.inactiveColor, m = d?.backgroundColor, y = d?.borderColor, _ = be(
|
|
42831
|
+
() => ({
|
|
42832
|
+
...h && {
|
|
42833
|
+
"--asgard-consent-modal-accent": h,
|
|
42834
|
+
// Darken accent ~15% on hover so the primary button keeps visual feedback
|
|
42835
|
+
"--asgard-consent-modal-accent-hover": `color-mix(in srgb, ${h} 85%, black)`
|
|
42836
|
+
},
|
|
42837
|
+
...m && {
|
|
42838
|
+
"--asgard-consent-modal-bg": m,
|
|
42839
|
+
"--asgard-consent-modal-input-bg": m
|
|
42840
|
+
},
|
|
42841
|
+
...y && { "--asgard-consent-modal-border": y },
|
|
42842
|
+
...p && { "--asgard-consent-modal-title": p },
|
|
42843
|
+
...g && { "--asgard-consent-modal-muted": g }
|
|
42844
|
+
}),
|
|
42845
|
+
[h, m, y, p, g]
|
|
42846
|
+
), b = be(
|
|
42847
|
+
() => p ? { color: p } : {},
|
|
42848
|
+
[p]
|
|
42849
|
+
);
|
|
42831
42850
|
Oe(() => {
|
|
42832
42851
|
a(!1), u(!1), f("");
|
|
42833
42852
|
}, [t.toolCallId]), Oe(() => {
|
|
42834
|
-
const
|
|
42853
|
+
const k = document.body.style.overflow;
|
|
42835
42854
|
return document.body.style.overflow = "hidden", () => {
|
|
42836
|
-
document.body.style.overflow =
|
|
42855
|
+
document.body.style.overflow = k;
|
|
42837
42856
|
};
|
|
42838
42857
|
}, []);
|
|
42839
|
-
const
|
|
42858
|
+
const v = oe(() => i({ result: "ALLOW_ONCE" }), [i]), x = oe(() => i({ result: "ALLOW_ALWAYS" }), [i]), E = oe(() => {
|
|
42840
42859
|
if (!l) {
|
|
42841
42860
|
u(!0);
|
|
42842
42861
|
return;
|
|
42843
42862
|
}
|
|
42844
42863
|
i({ result: "DENY_ONCE", denyReason: c.trim() });
|
|
42845
|
-
}, [l, c, i]),
|
|
42846
|
-
(
|
|
42847
|
-
|
|
42864
|
+
}, [l, c, i]), w = oe(
|
|
42865
|
+
(k) => {
|
|
42866
|
+
k.target === k.currentTarget && o?.();
|
|
42848
42867
|
},
|
|
42849
42868
|
[o]
|
|
42850
42869
|
);
|
|
42851
|
-
return /* @__PURE__ */ C("div", { className:
|
|
42852
|
-
/* @__PURE__ */ U("div", { className:
|
|
42853
|
-
/* @__PURE__ */ U("div", { className:
|
|
42854
|
-
"
|
|
42855
|
-
/* @__PURE__ */ U("span", { className:
|
|
42856
|
-
|
|
42870
|
+
return /* @__PURE__ */ C("div", { className: Et.backdrop, onClick: w, style: _, children: /* @__PURE__ */ U("div", { className: Et.modal, role: "dialog", "aria-modal": "true", children: [
|
|
42871
|
+
/* @__PURE__ */ U("div", { className: Et.header, children: [
|
|
42872
|
+
/* @__PURE__ */ U("div", { className: Et.title, children: [
|
|
42873
|
+
"允許使用工具 ",
|
|
42874
|
+
/* @__PURE__ */ U("span", { className: Et.title_tool, children: [
|
|
42875
|
+
"「",
|
|
42857
42876
|
t.toolName,
|
|
42858
|
-
|
|
42877
|
+
"」"
|
|
42859
42878
|
] }),
|
|
42860
|
-
"
|
|
42879
|
+
"?"
|
|
42861
42880
|
] }),
|
|
42862
|
-
o && /* @__PURE__ */ C("button", { type: "button", className:
|
|
42881
|
+
o && /* @__PURE__ */ C("button", { type: "button", className: Et.close_btn, onClick: o, "aria-label": "關閉", children: /* @__PURE__ */ C(O7, {}) })
|
|
42863
42882
|
] }),
|
|
42864
|
-
/* @__PURE__ */ U("div", { className:
|
|
42865
|
-
/* @__PURE__ */ U("div", { className:
|
|
42883
|
+
/* @__PURE__ */ U("div", { className: Et.content, children: [
|
|
42884
|
+
/* @__PURE__ */ U("div", { className: Et.meta_row, children: [
|
|
42866
42885
|
/* @__PURE__ */ U("span", { children: [
|
|
42867
|
-
"
|
|
42886
|
+
"工具集:",
|
|
42868
42887
|
/* @__PURE__ */ C("strong", { children: t.toolsetName })
|
|
42869
42888
|
] }),
|
|
42870
42889
|
/* @__PURE__ */ U("span", { children: [
|
|
42871
|
-
"
|
|
42890
|
+
"工具:",
|
|
42872
42891
|
/* @__PURE__ */ C("strong", { children: t.toolName })
|
|
42873
42892
|
] })
|
|
42874
42893
|
] }),
|
|
42875
|
-
/* @__PURE__ */ U("div", { className:
|
|
42894
|
+
/* @__PURE__ */ U("div", { className: Et.input_section, children: [
|
|
42876
42895
|
/* @__PURE__ */ U(
|
|
42877
42896
|
"button",
|
|
42878
42897
|
{
|
|
42879
42898
|
type: "button",
|
|
42880
|
-
className: ke(
|
|
42881
|
-
onClick: () => a((
|
|
42899
|
+
className: ke(Et.input_toggle, s && Et.input_toggle_expanded),
|
|
42900
|
+
onClick: () => a((k) => !k),
|
|
42882
42901
|
children: [
|
|
42883
42902
|
/* @__PURE__ */ C(Mbe, {}),
|
|
42884
|
-
/* @__PURE__ */ C("span", { children: "
|
|
42903
|
+
/* @__PURE__ */ C("span", { children: "輸入內容" })
|
|
42885
42904
|
]
|
|
42886
42905
|
}
|
|
42887
42906
|
),
|
|
42888
|
-
s && /* @__PURE__ */ C("div", { className:
|
|
42907
|
+
s && /* @__PURE__ */ C("div", { className: Et.input_viewer, children: /* @__PURE__ */ C(pv, { title: "parameter", data: t.parameter }) })
|
|
42889
42908
|
] }),
|
|
42890
|
-
l && /* @__PURE__ */ U("div", { className:
|
|
42891
|
-
/* @__PURE__ */ C("label", { htmlFor: "asgard-consent-deny-reason", children: "
|
|
42909
|
+
l && /* @__PURE__ */ U("div", { className: Et.deny_reason, children: [
|
|
42910
|
+
/* @__PURE__ */ C("label", { htmlFor: "asgard-consent-deny-reason", children: "拒絕原因(選填)" }),
|
|
42892
42911
|
/* @__PURE__ */ C(
|
|
42893
42912
|
"textarea",
|
|
42894
42913
|
{
|
|
42895
42914
|
id: "asgard-consent-deny-reason",
|
|
42896
42915
|
value: c,
|
|
42897
|
-
onChange: (
|
|
42898
|
-
placeholder: "
|
|
42916
|
+
onChange: (k) => f(k.target.value),
|
|
42917
|
+
placeholder: "告訴 AI 你為什麼拒絕此次工具呼叫。"
|
|
42899
42918
|
}
|
|
42900
42919
|
)
|
|
42901
42920
|
] })
|
|
42902
42921
|
] }),
|
|
42903
|
-
n > 1 && /* @__PURE__ */ U("div", { className:
|
|
42922
|
+
n > 1 && /* @__PURE__ */ U("div", { className: Et.pending_indicator, children: [
|
|
42904
42923
|
r,
|
|
42905
42924
|
" / ",
|
|
42906
42925
|
n,
|
|
42907
|
-
"
|
|
42908
|
-
n > 1 ? "s" : ""
|
|
42926
|
+
" 個待處理工具呼叫"
|
|
42909
42927
|
] }),
|
|
42910
|
-
/* @__PURE__ */ U("div", { className:
|
|
42911
|
-
/* @__PURE__ */ C(
|
|
42912
|
-
|
|
42913
|
-
|
|
42928
|
+
/* @__PURE__ */ U("div", { className: Et.actions, children: [
|
|
42929
|
+
/* @__PURE__ */ C(
|
|
42930
|
+
"button",
|
|
42931
|
+
{
|
|
42932
|
+
type: "button",
|
|
42933
|
+
className: ke(Et.action_btn, Et.action_primary),
|
|
42934
|
+
style: b,
|
|
42935
|
+
onClick: x,
|
|
42936
|
+
children: "本次對話皆允許"
|
|
42937
|
+
}
|
|
42938
|
+
),
|
|
42939
|
+
/* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_secondary), onClick: v, children: "僅此次允許" }),
|
|
42940
|
+
/* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_danger), onClick: E, children: l ? "送出拒絕" : "拒絕" })
|
|
42914
42941
|
] })
|
|
42915
42942
|
] }) });
|
|
42916
42943
|
}
|
|
@@ -43066,7 +43093,7 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43066
43093
|
renderToolCallGroup: Le,
|
|
43067
43094
|
autoResetChannel: Dt,
|
|
43068
43095
|
userIdentityHint: Jt
|
|
43069
|
-
} = t, te = Jt ? { ...s, userIdentityHint: Jt } : s, ge = yt(0), ye = yt(null), j = g || y,
|
|
43096
|
+
} = t, te = Jt ? { ...s, userIdentityHint: Jt } : s, ge = yt(0), ye = yt(null), j = g || y, xt = oe(
|
|
43070
43097
|
(jt) => {
|
|
43071
43098
|
jt.preventDefault(), jt.stopPropagation(), !(!j || !jt.dataTransfer.types.includes("Files")) && (ge.current++, ge.current === 1 && ye.current?.setIsDraggingOver(!0));
|
|
43072
43099
|
},
|
|
@@ -43075,7 +43102,7 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43075
43102
|
jt.preventDefault(), jt.stopPropagation();
|
|
43076
43103
|
}, []), ht = oe((jt) => {
|
|
43077
43104
|
jt.preventDefault(), jt.stopPropagation(), ge.current--, ge.current === 0 && ye.current?.setIsDraggingOver(!1);
|
|
43078
|
-
}, []),
|
|
43105
|
+
}, []), wt = oe(
|
|
43079
43106
|
(jt) => {
|
|
43080
43107
|
if (jt.preventDefault(), jt.stopPropagation(), ge.current = 0, ye.current?.setIsDraggingOver(!1), !j) return;
|
|
43081
43108
|
const cc = Array.from(jt.dataTransfer.files);
|
|
@@ -43184,10 +43211,10 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43184
43211
|
fullScreen: c,
|
|
43185
43212
|
className: D,
|
|
43186
43213
|
style: N,
|
|
43187
|
-
onDragEnter:
|
|
43214
|
+
onDragEnter: xt,
|
|
43188
43215
|
onDragOver: Ie,
|
|
43189
43216
|
onDragLeave: ht,
|
|
43190
|
-
onDrop:
|
|
43217
|
+
onDrop: wt,
|
|
43191
43218
|
children: [
|
|
43192
43219
|
fe ? fe() : /* @__PURE__ */ C(
|
|
43193
43220
|
ek,
|
|
@@ -43272,7 +43299,7 @@ export {
|
|
|
43272
43299
|
Ft as useAsgardContext,
|
|
43273
43300
|
Q7 as useAsgardServiceClient,
|
|
43274
43301
|
Lu as useAsgardTemplateContext,
|
|
43275
|
-
|
|
43302
|
+
vt as useAsgardThemeContext,
|
|
43276
43303
|
eI as useChannel,
|
|
43277
43304
|
tI as useDebounce,
|
|
43278
43305
|
ZC as useDeepCompareMemo,
|