@superinterface/react 3.21.1 → 3.23.0
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.cjs +872 -784
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -21
- package/dist/index.d.ts +66 -21
- package/dist/index.js +837 -753
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37816,20 +37816,19 @@ import { c as _c72 } from "react-compiler-runtime";
|
|
|
37816
37816
|
import { c as _c62 } from "react-compiler-runtime";
|
|
37817
37817
|
import { Flex as Flex19 } from "@radix-ui/themes";
|
|
37818
37818
|
// src/components/threads/Thread/Message/index.tsx
|
|
37819
|
-
import { c as
|
|
37819
|
+
import { c as _c53 } from "react-compiler-runtime";
|
|
37820
37820
|
import { useMemo as useMemo10 } from "react";
|
|
37821
|
-
import { Box as
|
|
37821
|
+
import { Box as Box10 } from "@radix-ui/themes";
|
|
37822
37822
|
// src/components/runSteps/RunSteps/index.tsx
|
|
37823
|
-
import { c as
|
|
37824
|
-
import { Flex as
|
|
37825
|
-
import { useContext as
|
|
37823
|
+
import { c as _c49 } from "react-compiler-runtime";
|
|
37824
|
+
import { Flex as Flex14 } from "@radix-ui/themes";
|
|
37825
|
+
import { useContext as useContext10 } from "react";
|
|
37826
37826
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
37827
|
-
import { createContext as
|
|
37827
|
+
import { createContext as createContext9 } from "react";
|
|
37828
37828
|
// src/components/runSteps/RunStep/index.tsx
|
|
37829
37829
|
import { c as _c11 } from "react-compiler-runtime";
|
|
37830
37830
|
// src/components/runSteps/RunStep/ToolCalls/index.tsx
|
|
37831
37831
|
import { c as _c10 } from "react-compiler-runtime";
|
|
37832
|
-
import { useContext as useContext3 } from "react";
|
|
37833
37832
|
import { Flex as Flex3 } from "@radix-ui/themes";
|
|
37834
37833
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
|
|
37835
37834
|
import { c as _c9 } from "react-compiler-runtime";
|
|
@@ -38245,6 +38244,11 @@ var ToolCall = function(t0) {
|
|
|
38245
38244
|
}
|
|
38246
38245
|
return t1;
|
|
38247
38246
|
};
|
|
38247
|
+
// src/hooks/components/useComponents.ts
|
|
38248
|
+
import { useContext as useContext3 } from "react";
|
|
38249
|
+
var useComponents = function() {
|
|
38250
|
+
return useContext3(ComponentsContext);
|
|
38251
|
+
};
|
|
38248
38252
|
// src/components/runSteps/RunStep/ToolCalls/index.tsx
|
|
38249
38253
|
import { jsx as _jsx11, jsxs as _jsxs5 } from "react/jsx-runtime";
|
|
38250
38254
|
var Root = function(t0) {
|
|
@@ -38269,17 +38273,17 @@ var Root = function(t0) {
|
|
|
38269
38273
|
};
|
|
38270
38274
|
var StartingToolCalls = function() {
|
|
38271
38275
|
var $ = _c10(2);
|
|
38272
|
-
var
|
|
38273
|
-
var StartingToolCalls3 =
|
|
38274
|
-
var
|
|
38276
|
+
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
38277
|
+
var StartingToolCalls3 = t0.StartingToolCalls;
|
|
38278
|
+
var t1;
|
|
38275
38279
|
if ($[0] !== StartingToolCalls3) {
|
|
38276
|
-
|
|
38280
|
+
t1 = /* @__PURE__ */ _jsx11(StartingToolCalls3, {});
|
|
38277
38281
|
$[0] = StartingToolCalls3;
|
|
38278
|
-
$[1] =
|
|
38282
|
+
$[1] = t1;
|
|
38279
38283
|
} else {
|
|
38280
|
-
|
|
38284
|
+
t1 = $[1];
|
|
38281
38285
|
}
|
|
38282
|
-
return
|
|
38286
|
+
return t1;
|
|
38283
38287
|
};
|
|
38284
38288
|
var ToolCalls = function(t0) {
|
|
38285
38289
|
var $ = _c10(12);
|
|
@@ -38635,114 +38639,10 @@ var StartingToolCalls2 = function() {
|
|
|
38635
38639
|
}
|
|
38636
38640
|
return t1;
|
|
38637
38641
|
};
|
|
38638
|
-
// src/
|
|
38639
|
-
|
|
38640
|
-
components: {
|
|
38641
|
-
RunStep: RunStep,
|
|
38642
|
-
Function: Function2,
|
|
38643
|
-
StartingToolCalls: StartingToolCalls2
|
|
38644
|
-
}
|
|
38645
|
-
});
|
|
38646
|
-
// src/components/runSteps/RunSteps/index.tsx
|
|
38647
|
-
import { jsx as _jsx17 } from "react/jsx-runtime";
|
|
38648
|
-
var RunSteps = function(t0) {
|
|
38649
|
-
var $ = _c16(7);
|
|
38650
|
-
var runSteps = t0.runSteps;
|
|
38651
|
-
var componentsContext = useContext4(ComponentsContext);
|
|
38652
|
-
var Component2 = componentsContext.components.RunStep;
|
|
38653
|
-
var t1;
|
|
38654
|
-
if ($[0] !== Component2 || $[1] !== runSteps) {
|
|
38655
|
-
var _t;
|
|
38656
|
-
if ($[3] !== Component2) {
|
|
38657
|
-
_t = function(runStep) {
|
|
38658
|
-
return /* @__PURE__ */ _jsx17(Component2, {
|
|
38659
|
-
runStep: runStep
|
|
38660
|
-
}, runStep.id);
|
|
38661
|
-
};
|
|
38662
|
-
$[3] = Component2;
|
|
38663
|
-
$[4] = _t;
|
|
38664
|
-
} else {
|
|
38665
|
-
_t = $[4];
|
|
38666
|
-
}
|
|
38667
|
-
t1 = runSteps.map(_t);
|
|
38668
|
-
$[0] = Component2;
|
|
38669
|
-
$[1] = runSteps;
|
|
38670
|
-
$[2] = t1;
|
|
38671
|
-
} else {
|
|
38672
|
-
t1 = $[2];
|
|
38673
|
-
}
|
|
38674
|
-
var t2;
|
|
38675
|
-
if ($[5] !== t1) {
|
|
38676
|
-
t2 = /* @__PURE__ */ _jsx17(Flex5, {
|
|
38677
|
-
direction: "column-reverse",
|
|
38678
|
-
children: t1
|
|
38679
|
-
});
|
|
38680
|
-
$[5] = t1;
|
|
38681
|
-
$[6] = t2;
|
|
38682
|
-
} else {
|
|
38683
|
-
t2 = $[6];
|
|
38684
|
-
}
|
|
38685
|
-
return t2;
|
|
38686
|
-
};
|
|
38687
|
-
// src/contexts/messages/MessageContext/index.ts
|
|
38688
|
-
import { createContext as createContext4 } from "react";
|
|
38689
|
-
var MessageContext = /* @__PURE__ */ createContext4({
|
|
38690
|
-
message: null
|
|
38691
|
-
});
|
|
38692
|
-
// src/components/threads/Thread/Message/Provider.tsx
|
|
38693
|
-
var Provider = MessageContext.Provider;
|
|
38694
|
-
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
38695
|
-
import { c as _c17 } from "react-compiler-runtime";
|
|
38696
|
-
import { Flex as Flex6, Badge } from "@radix-ui/themes";
|
|
38697
|
-
import { FileIcon } from "@radix-ui/react-icons";
|
|
38698
|
-
import { jsx as _jsx18, jsxs as _jsxs9 } from "react/jsx-runtime";
|
|
38699
|
-
var Attachments = function(t0) {
|
|
38700
|
-
var _message$attachments;
|
|
38701
|
-
var $ = _c17(4);
|
|
38702
|
-
var message = t0.message;
|
|
38703
|
-
if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
|
|
38704
|
-
return null;
|
|
38705
|
-
}
|
|
38706
|
-
var t1;
|
|
38707
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38708
|
-
t1 = /* @__PURE__ */ _jsx18(FileIcon, {});
|
|
38709
|
-
$[0] = t1;
|
|
38710
|
-
} else {
|
|
38711
|
-
t1 = $[0];
|
|
38712
|
-
}
|
|
38713
|
-
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
38714
|
-
var t3;
|
|
38715
|
-
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
38716
|
-
t3 = /* @__PURE__ */ _jsx18(Flex6, {
|
|
38717
|
-
align: "start",
|
|
38718
|
-
pb: "1",
|
|
38719
|
-
children: /* @__PURE__ */ _jsxs9(Badge, {
|
|
38720
|
-
color: "gray",
|
|
38721
|
-
variant: "surface",
|
|
38722
|
-
children: [
|
|
38723
|
-
t1,
|
|
38724
|
-
message.attachments.length,
|
|
38725
|
-
" file",
|
|
38726
|
-
t2
|
|
38727
|
-
]
|
|
38728
|
-
})
|
|
38729
|
-
});
|
|
38730
|
-
$[1] = message.attachments.length;
|
|
38731
|
-
$[2] = t2;
|
|
38732
|
-
$[3] = t3;
|
|
38733
|
-
} else {
|
|
38734
|
-
t3 = $[3];
|
|
38735
|
-
}
|
|
38736
|
-
return t3;
|
|
38737
|
-
};
|
|
38738
|
-
// src/components/messages/MessageContent/index.tsx
|
|
38739
|
-
import { c as _c46 } from "react-compiler-runtime";
|
|
38740
|
-
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
38741
|
-
import { c as _c45 } from "react-compiler-runtime";
|
|
38742
|
-
// src/components/messages/MessageContent/ContentPart/TextContent.tsx
|
|
38743
|
-
import { c as _c43 } from "react-compiler-runtime";
|
|
38642
|
+
// src/components/contents/TextContent.tsx
|
|
38643
|
+
import { c as _c41 } from "react-compiler-runtime";
|
|
38744
38644
|
import React, { useState as useState3, useEffect as useEffect2, useMemo as useMemo9 } from "react";
|
|
38745
|
-
import { Badge
|
|
38645
|
+
import { Badge } from "@radix-ui/themes";
|
|
38746
38646
|
import { compile } from "@mdx-js/mdx";
|
|
38747
38647
|
import { MDXProvider, useMDXComponents } from "@mdx-js/react";
|
|
38748
38648
|
import * as runtime from "react/jsx-runtime";
|
|
@@ -38888,17 +38788,17 @@ var recmaFallbackComponentPlugin = function() {
|
|
|
38888
38788
|
};
|
|
38889
38789
|
};
|
|
38890
38790
|
// src/hooks/markdown/useMarkdownContext/index.ts
|
|
38891
|
-
import { useContext as
|
|
38791
|
+
import { useContext as useContext5 } from "react";
|
|
38892
38792
|
// src/contexts/markdown/MarkdownContext/index.ts
|
|
38893
|
-
import { createContext as
|
|
38793
|
+
import { createContext as createContext4 } from "react";
|
|
38894
38794
|
// src/contexts/markdown/MarkdownContext/lib/components/index.tsx
|
|
38895
38795
|
import { Heading, Table } from "@radix-ui/themes";
|
|
38896
38796
|
// src/contexts/markdown/MarkdownContext/lib/components/Paragraph.tsx
|
|
38897
|
-
import { c as
|
|
38797
|
+
import { c as _c16 } from "react-compiler-runtime";
|
|
38898
38798
|
import { Box as Box3, Text as Text3 } from "@radix-ui/themes";
|
|
38899
|
-
import { jsx as
|
|
38799
|
+
import { jsx as _jsx17 } from "react/jsx-runtime";
|
|
38900
38800
|
var Paragraph = function(t0) {
|
|
38901
|
-
var $ =
|
|
38801
|
+
var $ = _c16(3);
|
|
38902
38802
|
var children = t0.children;
|
|
38903
38803
|
var t1;
|
|
38904
38804
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -38912,9 +38812,9 @@ var Paragraph = function(t0) {
|
|
|
38912
38812
|
}
|
|
38913
38813
|
var t2;
|
|
38914
38814
|
if ($[1] !== children) {
|
|
38915
|
-
t2 = /* @__PURE__ */
|
|
38815
|
+
t2 = /* @__PURE__ */ _jsx17(Box3, {
|
|
38916
38816
|
pb: "3",
|
|
38917
|
-
children: /* @__PURE__ */
|
|
38817
|
+
children: /* @__PURE__ */ _jsx17(Text3, {
|
|
38918
38818
|
size: "3",
|
|
38919
38819
|
style: t1,
|
|
38920
38820
|
children: children
|
|
@@ -38928,16 +38828,16 @@ var Paragraph = function(t0) {
|
|
|
38928
38828
|
return t2;
|
|
38929
38829
|
};
|
|
38930
38830
|
// src/contexts/markdown/MarkdownContext/lib/components/Link.tsx
|
|
38931
|
-
import { c as
|
|
38831
|
+
import { c as _c17 } from "react-compiler-runtime";
|
|
38932
38832
|
import { Link as RadixLink } from "@radix-ui/themes";
|
|
38933
|
-
import { jsx as
|
|
38833
|
+
import { jsx as _jsx18 } from "react/jsx-runtime";
|
|
38934
38834
|
var Link = function(t0) {
|
|
38935
|
-
var $ =
|
|
38835
|
+
var $ = _c17(5);
|
|
38936
38836
|
var children = t0.children, href = t0.href, download = t0.download, t1 = t0.target;
|
|
38937
38837
|
var target = t1 === void 0 ? "_blank" : t1;
|
|
38938
38838
|
var t2;
|
|
38939
38839
|
if ($[0] !== children || $[1] !== download || $[2] !== href || $[3] !== target) {
|
|
38940
|
-
t2 = /* @__PURE__ */
|
|
38840
|
+
t2 = /* @__PURE__ */ _jsx18(RadixLink, {
|
|
38941
38841
|
href: href,
|
|
38942
38842
|
target: target,
|
|
38943
38843
|
download: download,
|
|
@@ -38954,11 +38854,11 @@ var Link = function(t0) {
|
|
|
38954
38854
|
return t2;
|
|
38955
38855
|
};
|
|
38956
38856
|
// src/contexts/markdown/MarkdownContext/lib/components/UnorderedList.tsx
|
|
38957
|
-
import { c as
|
|
38857
|
+
import { c as _c18 } from "react-compiler-runtime";
|
|
38958
38858
|
import { Box as Box4 } from "@radix-ui/themes";
|
|
38959
|
-
import { jsx as
|
|
38859
|
+
import { jsx as _jsx19 } from "react/jsx-runtime";
|
|
38960
38860
|
var UnorderedList = function(t0) {
|
|
38961
|
-
var $ =
|
|
38861
|
+
var $ = _c18(3);
|
|
38962
38862
|
var children = t0.children;
|
|
38963
38863
|
var t1;
|
|
38964
38864
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -38971,10 +38871,10 @@ var UnorderedList = function(t0) {
|
|
|
38971
38871
|
}
|
|
38972
38872
|
var t2;
|
|
38973
38873
|
if ($[1] !== children) {
|
|
38974
|
-
t2 = /* @__PURE__ */
|
|
38874
|
+
t2 = /* @__PURE__ */ _jsx19(Box4, {
|
|
38975
38875
|
pb: "3",
|
|
38976
38876
|
asChild: true,
|
|
38977
|
-
children: /* @__PURE__ */
|
|
38877
|
+
children: /* @__PURE__ */ _jsx19("ul", {
|
|
38978
38878
|
style: t1,
|
|
38979
38879
|
children: children
|
|
38980
38880
|
})
|
|
@@ -38987,11 +38887,11 @@ var UnorderedList = function(t0) {
|
|
|
38987
38887
|
return t2;
|
|
38988
38888
|
};
|
|
38989
38889
|
// src/contexts/markdown/MarkdownContext/lib/components/OrderedList.tsx
|
|
38990
|
-
import { c as
|
|
38890
|
+
import { c as _c19 } from "react-compiler-runtime";
|
|
38991
38891
|
import { Box as Box5 } from "@radix-ui/themes";
|
|
38992
|
-
import { jsx as
|
|
38892
|
+
import { jsx as _jsx20 } from "react/jsx-runtime";
|
|
38993
38893
|
var OrderedList = function(t0) {
|
|
38994
|
-
var $ =
|
|
38894
|
+
var $ = _c19(3);
|
|
38995
38895
|
var children = t0.children;
|
|
38996
38896
|
var t1;
|
|
38997
38897
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -39004,10 +38904,10 @@ var OrderedList = function(t0) {
|
|
|
39004
38904
|
}
|
|
39005
38905
|
var t2;
|
|
39006
38906
|
if ($[1] !== children) {
|
|
39007
|
-
t2 = /* @__PURE__ */
|
|
38907
|
+
t2 = /* @__PURE__ */ _jsx20(Box5, {
|
|
39008
38908
|
pb: "3",
|
|
39009
38909
|
asChild: true,
|
|
39010
|
-
children: /* @__PURE__ */
|
|
38910
|
+
children: /* @__PURE__ */ _jsx20("ol", {
|
|
39011
38911
|
style: t1,
|
|
39012
38912
|
children: children
|
|
39013
38913
|
})
|
|
@@ -39020,11 +38920,11 @@ var OrderedList = function(t0) {
|
|
|
39020
38920
|
return t2;
|
|
39021
38921
|
};
|
|
39022
38922
|
// src/contexts/markdown/MarkdownContext/lib/components/ListItem.tsx
|
|
39023
|
-
import { c as
|
|
38923
|
+
import { c as _c20 } from "react-compiler-runtime";
|
|
39024
38924
|
import { Box as Box6 } from "@radix-ui/themes";
|
|
39025
|
-
import { jsx as
|
|
38925
|
+
import { jsx as _jsx21 } from "react/jsx-runtime";
|
|
39026
38926
|
var ListItem = function(t0) {
|
|
39027
|
-
var $ =
|
|
38927
|
+
var $ = _c20(3);
|
|
39028
38928
|
var children = t0.children;
|
|
39029
38929
|
var t1;
|
|
39030
38930
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -39037,9 +38937,9 @@ var ListItem = function(t0) {
|
|
|
39037
38937
|
}
|
|
39038
38938
|
var t2;
|
|
39039
38939
|
if ($[1] !== children) {
|
|
39040
|
-
t2 = /* @__PURE__ */
|
|
38940
|
+
t2 = /* @__PURE__ */ _jsx21(Box6, {
|
|
39041
38941
|
pb: "1",
|
|
39042
|
-
children: /* @__PURE__ */
|
|
38942
|
+
children: /* @__PURE__ */ _jsx21("li", {
|
|
39043
38943
|
style: t1,
|
|
39044
38944
|
children: children
|
|
39045
38945
|
})
|
|
@@ -39052,15 +38952,15 @@ var ListItem = function(t0) {
|
|
|
39052
38952
|
return t2;
|
|
39053
38953
|
};
|
|
39054
38954
|
// src/contexts/markdown/MarkdownContext/lib/components/Strong.tsx
|
|
39055
|
-
import { c as
|
|
38955
|
+
import { c as _c21 } from "react-compiler-runtime";
|
|
39056
38956
|
import { Strong as RadixStrong } from "@radix-ui/themes";
|
|
39057
|
-
import { jsx as
|
|
38957
|
+
import { jsx as _jsx22 } from "react/jsx-runtime";
|
|
39058
38958
|
var Strong = function(t0) {
|
|
39059
|
-
var $ =
|
|
38959
|
+
var $ = _c21(2);
|
|
39060
38960
|
var children = t0.children;
|
|
39061
38961
|
var t1;
|
|
39062
38962
|
if ($[0] !== children) {
|
|
39063
|
-
t1 = /* @__PURE__ */
|
|
38963
|
+
t1 = /* @__PURE__ */ _jsx22(RadixStrong, {
|
|
39064
38964
|
children: children
|
|
39065
38965
|
});
|
|
39066
38966
|
$[0] = children;
|
|
@@ -39071,11 +38971,11 @@ var Strong = function(t0) {
|
|
|
39071
38971
|
return t1;
|
|
39072
38972
|
};
|
|
39073
38973
|
// src/contexts/markdown/MarkdownContext/lib/components/Pre.tsx
|
|
39074
|
-
import { c as
|
|
38974
|
+
import { c as _c22 } from "react-compiler-runtime";
|
|
39075
38975
|
import { Box as Box7 } from "@radix-ui/themes";
|
|
39076
|
-
import { jsx as
|
|
38976
|
+
import { jsx as _jsx23 } from "react/jsx-runtime";
|
|
39077
38977
|
var Pre = function(t0) {
|
|
39078
|
-
var $ =
|
|
38978
|
+
var $ = _c22(3);
|
|
39079
38979
|
var children = t0.children;
|
|
39080
38980
|
var t1;
|
|
39081
38981
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -39089,7 +38989,7 @@ var Pre = function(t0) {
|
|
|
39089
38989
|
}
|
|
39090
38990
|
var t2;
|
|
39091
38991
|
if ($[1] !== children) {
|
|
39092
|
-
t2 = /* @__PURE__ */
|
|
38992
|
+
t2 = /* @__PURE__ */ _jsx23(Box7, {
|
|
39093
38993
|
style: t1,
|
|
39094
38994
|
children: children
|
|
39095
38995
|
});
|
|
@@ -39101,16 +39001,16 @@ var Pre = function(t0) {
|
|
|
39101
39001
|
return t2;
|
|
39102
39002
|
};
|
|
39103
39003
|
// src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
|
|
39104
|
-
import { c as
|
|
39004
|
+
import { c as _c28 } from "react-compiler-runtime";
|
|
39105
39005
|
import { Code as RadixCode } from "@radix-ui/themes";
|
|
39106
39006
|
// src/components/suggestions/Suggestions/index.tsx
|
|
39107
|
-
import { c as
|
|
39007
|
+
import { c as _c27 } from "react-compiler-runtime";
|
|
39108
39008
|
import { useMemo as useMemo6 } from "react";
|
|
39109
39009
|
// src/hooks/messages/useLatestMessage/index.ts
|
|
39110
|
-
import { c as
|
|
39010
|
+
import { c as _c24 } from "react-compiler-runtime";
|
|
39111
39011
|
import { useMemo as useMemo3 } from "react";
|
|
39112
39012
|
// src/hooks/messages/useMessages/index.tsx
|
|
39113
|
-
import { c as
|
|
39013
|
+
import { c as _c23 } from "react-compiler-runtime";
|
|
39114
39014
|
import { useMemo as useMemo2 } from "react";
|
|
39115
39015
|
import { useInfiniteQuery, useQueryClient } from "@tanstack/react-query";
|
|
39116
39016
|
// src/lib/threads/queryOptions/index.ts
|
|
@@ -39384,7 +39284,7 @@ var messages = function(_ref) {
|
|
|
39384
39284
|
}, []);
|
|
39385
39285
|
};
|
|
39386
39286
|
var useMessages = function() {
|
|
39387
|
-
var $ =
|
|
39287
|
+
var $ = _c23(9);
|
|
39388
39288
|
var queryClient = useQueryClient();
|
|
39389
39289
|
var threadContext = useSuperinterfaceContext();
|
|
39390
39290
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -39473,7 +39373,7 @@ function _toPrimitive5(t, r) {
|
|
|
39473
39373
|
return ("string" === r ? String : Number)(t);
|
|
39474
39374
|
}
|
|
39475
39375
|
var useLatestMessage = function() {
|
|
39476
|
-
var $ =
|
|
39376
|
+
var $ = _c24(3);
|
|
39477
39377
|
var props = useMessages();
|
|
39478
39378
|
var t0;
|
|
39479
39379
|
var t1 = props.messages[0] || null;
|
|
@@ -39496,11 +39396,11 @@ import { useMemo as useMemo5 } from "react";
|
|
|
39496
39396
|
import { isEmpty } from "radash";
|
|
39497
39397
|
import { onlyText } from "react-children-utilities";
|
|
39498
39398
|
// src/hooks/messages/useIsMutatingMessage/index.ts
|
|
39499
|
-
import { c as
|
|
39399
|
+
import { c as _c25 } from "react-compiler-runtime";
|
|
39500
39400
|
import { useMemo as useMemo4 } from "react";
|
|
39501
39401
|
import { useIsMutating } from "@tanstack/react-query";
|
|
39502
39402
|
var useIsMutatingMessage = function() {
|
|
39503
|
-
var $ =
|
|
39403
|
+
var $ = _c25(2);
|
|
39504
39404
|
var threadContext = useSuperinterfaceContext();
|
|
39505
39405
|
var t0;
|
|
39506
39406
|
if ($[0] !== threadContext.variables) {
|
|
@@ -39522,9 +39422,9 @@ var useIsMutatingMessage = function() {
|
|
|
39522
39422
|
return isMutatingMessage;
|
|
39523
39423
|
};
|
|
39524
39424
|
// src/components/suggestions/Suggestions/Content.tsx
|
|
39525
|
-
import { Flex as
|
|
39425
|
+
import { Flex as Flex5 } from "@radix-ui/themes";
|
|
39526
39426
|
// src/components/suggestions/Suggestions/Item.tsx
|
|
39527
|
-
import { c as
|
|
39427
|
+
import { c as _c26 } from "react-compiler-runtime";
|
|
39528
39428
|
import { ArrowUpIcon } from "@radix-ui/react-icons";
|
|
39529
39429
|
import { Text as Text4, Button as Button2, Spinner } from "@radix-ui/themes";
|
|
39530
39430
|
// src/hooks/messages/useCreateMessage/index.ts
|
|
@@ -40938,16 +40838,16 @@ var useCreateMessage = function useCreateMessage2() {
|
|
|
40938
40838
|
// src/components/suggestions/Suggestions/Item.tsx
|
|
40939
40839
|
import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
40940
40840
|
// src/hooks/toasts/useToasts/index.ts
|
|
40941
|
-
import { useContext as
|
|
40841
|
+
import { useContext as useContext4 } from "react";
|
|
40942
40842
|
// src/contexts/toasts/ToastsContext/index.ts
|
|
40943
|
-
import { createContext as
|
|
40944
|
-
var ToastsContext = /* @__PURE__ */
|
|
40843
|
+
import { createContext as createContext3 } from "react";
|
|
40844
|
+
var ToastsContext = /* @__PURE__ */ createContext3({
|
|
40945
40845
|
toasts: [],
|
|
40946
40846
|
addToast: function() {}
|
|
40947
40847
|
});
|
|
40948
40848
|
// src/hooks/toasts/useToasts/index.ts
|
|
40949
40849
|
var useToasts = function() {
|
|
40950
|
-
return
|
|
40850
|
+
return useContext4(ToastsContext);
|
|
40951
40851
|
};
|
|
40952
40852
|
// src/lib/errors/createMessageDefaultOnError.ts
|
|
40953
40853
|
var createMessageDefaultOnError = function(_ref) {
|
|
@@ -40975,7 +40875,7 @@ var createMessageDefaultOnError = function(_ref) {
|
|
|
40975
40875
|
};
|
|
40976
40876
|
};
|
|
40977
40877
|
// src/components/suggestions/Suggestions/Item.tsx
|
|
40978
|
-
import { jsx as
|
|
40878
|
+
import { jsx as _jsx24, jsxs as _jsxs9 } from "react/jsx-runtime";
|
|
40979
40879
|
function ownKeys19(e, r) {
|
|
40980
40880
|
var t = Object.keys(e);
|
|
40981
40881
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -41020,7 +40920,7 @@ function _toPrimitive19(t, r) {
|
|
|
41020
40920
|
return ("string" === r ? String : Number)(t);
|
|
41021
40921
|
}
|
|
41022
40922
|
var Item = function(t0) {
|
|
41023
|
-
var $ =
|
|
40923
|
+
var $ = _c26(16);
|
|
41024
40924
|
var suggestion = t0.suggestion, isDisabled = t0.isDisabled, className = t0.className, style = t0.style;
|
|
41025
40925
|
var addToast = useToasts().addToast;
|
|
41026
40926
|
var queryClient = useQueryClient3();
|
|
@@ -41065,7 +40965,7 @@ var Item = function(t0) {
|
|
|
41065
40965
|
}
|
|
41066
40966
|
var t4;
|
|
41067
40967
|
if ($[9] !== className || $[10] !== isDisabled || $[11] !== isPending || $[12] !== style || $[13] !== suggestion || $[14] !== t3) {
|
|
41068
|
-
t4 = /* @__PURE__ */
|
|
40968
|
+
t4 = /* @__PURE__ */ _jsx24(Content3, {
|
|
41069
40969
|
onClick: t3,
|
|
41070
40970
|
isDisabled: isDisabled,
|
|
41071
40971
|
isPending: isPending,
|
|
@@ -41086,7 +40986,7 @@ var Item = function(t0) {
|
|
|
41086
40986
|
return t4;
|
|
41087
40987
|
};
|
|
41088
40988
|
var Content3 = function(t0) {
|
|
41089
|
-
var $ =
|
|
40989
|
+
var $ = _c26(16);
|
|
41090
40990
|
var onClick = t0.onClick, isDisabled = t0.isDisabled, isPending = t0.isPending, children = t0.children, className = t0.className, style = t0.style;
|
|
41091
40991
|
var t1;
|
|
41092
40992
|
if ($[0] !== style) {
|
|
@@ -41110,7 +41010,7 @@ var Content3 = function(t0) {
|
|
|
41110
41010
|
}
|
|
41111
41011
|
var t3;
|
|
41112
41012
|
if ($[4] !== children) {
|
|
41113
|
-
t3 = /* @__PURE__ */
|
|
41013
|
+
t3 = /* @__PURE__ */ _jsx24(Text4, {
|
|
41114
41014
|
size: "1",
|
|
41115
41015
|
weight: "regular",
|
|
41116
41016
|
children: children
|
|
@@ -41122,7 +41022,7 @@ var Content3 = function(t0) {
|
|
|
41122
41022
|
}
|
|
41123
41023
|
var t4;
|
|
41124
41024
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41125
|
-
t4 = /* @__PURE__ */
|
|
41025
|
+
t4 = /* @__PURE__ */ _jsx24(ArrowUpIcon, {
|
|
41126
41026
|
style: {
|
|
41127
41027
|
flexShrink: 0
|
|
41128
41028
|
}
|
|
@@ -41133,7 +41033,7 @@ var Content3 = function(t0) {
|
|
|
41133
41033
|
}
|
|
41134
41034
|
var t5;
|
|
41135
41035
|
if ($[7] !== isPending) {
|
|
41136
|
-
t5 = /* @__PURE__ */
|
|
41036
|
+
t5 = /* @__PURE__ */ _jsx24(Spinner, {
|
|
41137
41037
|
loading: isPending,
|
|
41138
41038
|
children: t4
|
|
41139
41039
|
});
|
|
@@ -41144,7 +41044,7 @@ var Content3 = function(t0) {
|
|
|
41144
41044
|
}
|
|
41145
41045
|
var t6;
|
|
41146
41046
|
if ($[9] !== className || $[10] !== isDisabled || $[11] !== onClick || $[12] !== t2 || $[13] !== t3 || $[14] !== t5) {
|
|
41147
|
-
t6 = /* @__PURE__ */
|
|
41047
|
+
t6 = /* @__PURE__ */ _jsxs9(Button2, {
|
|
41148
41048
|
className: className,
|
|
41149
41049
|
variant: "soft",
|
|
41150
41050
|
onClick: onClick,
|
|
@@ -41169,7 +41069,7 @@ var Content3 = function(t0) {
|
|
|
41169
41069
|
};
|
|
41170
41070
|
Item.Content = Content3;
|
|
41171
41071
|
// src/components/suggestions/Suggestions/Content.tsx
|
|
41172
|
-
import { jsx as
|
|
41072
|
+
import { jsx as _jsx25 } from "react/jsx-runtime";
|
|
41173
41073
|
var Content4 = function(_ref) {
|
|
41174
41074
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
41175
41075
|
var isMutatingMessage = useIsMutatingMessage();
|
|
@@ -41183,14 +41083,14 @@ var Content4 = function(_ref) {
|
|
|
41183
41083
|
children
|
|
41184
41084
|
]);
|
|
41185
41085
|
if (isEmpty(suggestions)) return null;
|
|
41186
|
-
return /* @__PURE__ */
|
|
41086
|
+
return /* @__PURE__ */ _jsx25(Flex5, {
|
|
41187
41087
|
gap: "2",
|
|
41188
41088
|
py: "2",
|
|
41189
41089
|
wrap: "wrap",
|
|
41190
41090
|
className: className,
|
|
41191
41091
|
style: style,
|
|
41192
41092
|
children: suggestions.map(function(suggestion) {
|
|
41193
|
-
return /* @__PURE__ */
|
|
41093
|
+
return /* @__PURE__ */ _jsx25(Item, {
|
|
41194
41094
|
suggestion: suggestion,
|
|
41195
41095
|
isDisabled: isMutatingMessage
|
|
41196
41096
|
}, suggestion);
|
|
@@ -41198,10 +41098,10 @@ var Content4 = function(_ref) {
|
|
|
41198
41098
|
});
|
|
41199
41099
|
};
|
|
41200
41100
|
// src/components/suggestions/Suggestions/index.tsx
|
|
41201
|
-
import { jsx as
|
|
41101
|
+
import { jsx as _jsx26 } from "react/jsx-runtime";
|
|
41202
41102
|
var Suggestions = function(t0) {
|
|
41203
41103
|
var _latestMessageProps$l;
|
|
41204
|
-
var $ =
|
|
41104
|
+
var $ = _c27(4);
|
|
41205
41105
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
41206
41106
|
var latestMessageProps = useLatestMessage();
|
|
41207
41107
|
var t1;
|
|
@@ -41215,7 +41115,7 @@ var Suggestions = function(t0) {
|
|
|
41215
41115
|
}
|
|
41216
41116
|
var t2;
|
|
41217
41117
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
41218
|
-
t2 = /* @__PURE__ */
|
|
41118
|
+
t2 = /* @__PURE__ */ _jsx26(Content4, {
|
|
41219
41119
|
className: className,
|
|
41220
41120
|
style: style,
|
|
41221
41121
|
children: children
|
|
@@ -41231,14 +41131,14 @@ var Suggestions = function(t0) {
|
|
|
41231
41131
|
};
|
|
41232
41132
|
Suggestions.Item = Item;
|
|
41233
41133
|
// src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
|
|
41234
|
-
import { jsx as
|
|
41134
|
+
import { jsx as _jsx27 } from "react/jsx-runtime";
|
|
41235
41135
|
var Code3 = function(t0) {
|
|
41236
|
-
var $ =
|
|
41136
|
+
var $ = _c28(5);
|
|
41237
41137
|
var children = t0.children, className = t0.className;
|
|
41238
41138
|
if (className === "language-suggestions") {
|
|
41239
41139
|
var _t;
|
|
41240
41140
|
if ($[0] !== children) {
|
|
41241
|
-
_t = /* @__PURE__ */
|
|
41141
|
+
_t = /* @__PURE__ */ _jsx27(Suggestions, {
|
|
41242
41142
|
children: children
|
|
41243
41143
|
});
|
|
41244
41144
|
$[0] = children;
|
|
@@ -41259,7 +41159,7 @@ var Code3 = function(t0) {
|
|
|
41259
41159
|
}
|
|
41260
41160
|
var t2;
|
|
41261
41161
|
if ($[3] !== children) {
|
|
41262
|
-
t2 = /* @__PURE__ */
|
|
41162
|
+
t2 = /* @__PURE__ */ _jsx27(RadixCode, {
|
|
41263
41163
|
style: t1,
|
|
41264
41164
|
children: children
|
|
41265
41165
|
});
|
|
@@ -41271,11 +41171,11 @@ var Code3 = function(t0) {
|
|
|
41271
41171
|
return t2;
|
|
41272
41172
|
};
|
|
41273
41173
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
|
|
41274
|
-
import { c as
|
|
41174
|
+
import { c as _c37 } from "react-compiler-runtime";
|
|
41275
41175
|
// src/components/images/Image.tsx
|
|
41276
|
-
import { c as
|
|
41176
|
+
import { c as _c29 } from "react-compiler-runtime";
|
|
41277
41177
|
import { Box as Box8 } from "@radix-ui/themes";
|
|
41278
|
-
import { jsx as
|
|
41178
|
+
import { jsx as _jsx28 } from "react/jsx-runtime";
|
|
41279
41179
|
function ownKeys20(e, r) {
|
|
41280
41180
|
var t = Object.keys(e);
|
|
41281
41181
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -41320,7 +41220,7 @@ function _toPrimitive20(t, r) {
|
|
|
41320
41220
|
return ("string" === r ? String : Number)(t);
|
|
41321
41221
|
}
|
|
41322
41222
|
var Image = function(props) {
|
|
41323
|
-
var $ =
|
|
41223
|
+
var $ = _c29(3);
|
|
41324
41224
|
var t0;
|
|
41325
41225
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41326
41226
|
t0 = {
|
|
@@ -41333,9 +41233,9 @@ var Image = function(props) {
|
|
|
41333
41233
|
}
|
|
41334
41234
|
var t1;
|
|
41335
41235
|
if ($[1] !== props) {
|
|
41336
|
-
t1 = /* @__PURE__ */
|
|
41236
|
+
t1 = /* @__PURE__ */ _jsx28(Box8, {
|
|
41337
41237
|
pb: "3",
|
|
41338
|
-
children: /* @__PURE__ */
|
|
41238
|
+
children: /* @__PURE__ */ _jsx28("img", _objectSpread20(_objectSpread20({}, props), {}, {
|
|
41339
41239
|
style: t0
|
|
41340
41240
|
}))
|
|
41341
41241
|
});
|
|
@@ -41393,26 +41293,26 @@ var isAudioSrc = function(_ref) {
|
|
|
41393
41293
|
return src.endsWith(".mp3") || src.endsWith(".wav");
|
|
41394
41294
|
};
|
|
41395
41295
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
|
|
41396
|
-
import { c as
|
|
41397
|
-
import { Flex as
|
|
41296
|
+
import { c as _c35 } from "react-compiler-runtime";
|
|
41297
|
+
import { Flex as Flex6 } from "@radix-ui/themes";
|
|
41398
41298
|
import "@vidstack/react/player/styles/base.css";
|
|
41399
41299
|
import { MediaPlayer, MediaProvider, Controls } from "@vidstack/react";
|
|
41400
41300
|
// src/components/media/PlayButton.tsx
|
|
41401
|
-
import { c as
|
|
41301
|
+
import { c as _c30 } from "react-compiler-runtime";
|
|
41402
41302
|
import { PlayButton as VidstackPlayButton, useMediaState } from "@vidstack/react";
|
|
41403
41303
|
import { IconButton } from "@radix-ui/themes";
|
|
41404
41304
|
import { PlayIcon, PauseIcon } from "@radix-ui/react-icons";
|
|
41405
|
-
import { jsx as
|
|
41305
|
+
import { jsx as _jsx29 } from "react/jsx-runtime";
|
|
41406
41306
|
var PlayButton = function() {
|
|
41407
|
-
var $ =
|
|
41307
|
+
var $ = _c30(2);
|
|
41408
41308
|
var isPaused = useMediaState("paused");
|
|
41409
41309
|
var t0;
|
|
41410
41310
|
if ($[0] !== isPaused) {
|
|
41411
|
-
t0 = /* @__PURE__ */
|
|
41311
|
+
t0 = /* @__PURE__ */ _jsx29(IconButton, {
|
|
41412
41312
|
variant: "ghost",
|
|
41413
41313
|
asChild: true,
|
|
41414
|
-
children: /* @__PURE__ */
|
|
41415
|
-
children: isPaused ? /* @__PURE__ */
|
|
41314
|
+
children: /* @__PURE__ */ _jsx29(VidstackPlayButton, {
|
|
41315
|
+
children: isPaused ? /* @__PURE__ */ _jsx29(PlayIcon, {}) : /* @__PURE__ */ _jsx29(PauseIcon, {})
|
|
41416
41316
|
})
|
|
41417
41317
|
});
|
|
41418
41318
|
$[0] = isPaused;
|
|
@@ -41423,24 +41323,24 @@ var PlayButton = function() {
|
|
|
41423
41323
|
return t0;
|
|
41424
41324
|
};
|
|
41425
41325
|
// src/components/media/VolumeButton.tsx
|
|
41426
|
-
import { c as
|
|
41326
|
+
import { c as _c31 } from "react-compiler-runtime";
|
|
41427
41327
|
import { MuteButton, useMediaState as useMediaState2, useMediaRemote } from "@vidstack/react";
|
|
41428
41328
|
import { IconButton as IconButton2, HoverCard, Slider } from "@radix-ui/themes";
|
|
41429
41329
|
import { SpeakerModerateIcon, SpeakerOffIcon } from "@radix-ui/react-icons";
|
|
41430
|
-
import { jsx as
|
|
41330
|
+
import { jsx as _jsx30, jsxs as _jsxs10 } from "react/jsx-runtime";
|
|
41431
41331
|
var VolumeButton = function() {
|
|
41432
|
-
var $ =
|
|
41332
|
+
var $ = _c31(13);
|
|
41433
41333
|
var volume = useMediaState2("volume");
|
|
41434
41334
|
var isMuted = useMediaState2("muted");
|
|
41435
41335
|
var remote = useMediaRemote();
|
|
41436
41336
|
var t0;
|
|
41437
41337
|
if ($[0] !== isMuted || $[1] !== volume) {
|
|
41438
|
-
t0 = /* @__PURE__ */
|
|
41439
|
-
children: /* @__PURE__ */
|
|
41338
|
+
t0 = /* @__PURE__ */ _jsx30(HoverCard.Trigger, {
|
|
41339
|
+
children: /* @__PURE__ */ _jsx30(IconButton2, {
|
|
41440
41340
|
variant: "ghost",
|
|
41441
41341
|
asChild: true,
|
|
41442
|
-
children: /* @__PURE__ */
|
|
41443
|
-
children: isMuted || volume === 0 ? /* @__PURE__ */
|
|
41342
|
+
children: /* @__PURE__ */ _jsx30(MuteButton, {
|
|
41343
|
+
children: isMuted || volume === 0 ? /* @__PURE__ */ _jsx30(SpeakerOffIcon, {}) : /* @__PURE__ */ _jsx30(SpeakerModerateIcon, {})
|
|
41444
41344
|
})
|
|
41445
41345
|
})
|
|
41446
41346
|
});
|
|
@@ -41474,11 +41374,11 @@ var VolumeButton = function() {
|
|
|
41474
41374
|
}
|
|
41475
41375
|
var t4;
|
|
41476
41376
|
if ($[7] !== t2 || $[8] !== t3) {
|
|
41477
|
-
t4 = /* @__PURE__ */
|
|
41377
|
+
t4 = /* @__PURE__ */ _jsx30(HoverCard.Content, {
|
|
41478
41378
|
size: "1",
|
|
41479
41379
|
side: "top",
|
|
41480
41380
|
height: "100px",
|
|
41481
|
-
children: /* @__PURE__ */
|
|
41381
|
+
children: /* @__PURE__ */ _jsx30(Slider, {
|
|
41482
41382
|
size: "1",
|
|
41483
41383
|
variant: "soft",
|
|
41484
41384
|
orientation: "vertical",
|
|
@@ -41494,7 +41394,7 @@ var VolumeButton = function() {
|
|
|
41494
41394
|
}
|
|
41495
41395
|
var t5;
|
|
41496
41396
|
if ($[10] !== t0 || $[11] !== t4) {
|
|
41497
|
-
t5 = /* @__PURE__ */
|
|
41397
|
+
t5 = /* @__PURE__ */ _jsxs10(HoverCard.Root, {
|
|
41498
41398
|
children: [
|
|
41499
41399
|
t0,
|
|
41500
41400
|
t4
|
|
@@ -41509,13 +41409,13 @@ var VolumeButton = function() {
|
|
|
41509
41409
|
return t5;
|
|
41510
41410
|
};
|
|
41511
41411
|
// src/components/media/Time.tsx
|
|
41512
|
-
import { c as
|
|
41412
|
+
import { c as _c32 } from "react-compiler-runtime";
|
|
41513
41413
|
import { useState, useEffect, useMemo as useMemo7 } from "react";
|
|
41514
41414
|
import { useMediaState as useMediaState3, useMediaRemote as useMediaRemote2 } from "@vidstack/react";
|
|
41515
41415
|
import { Slider as Slider2 } from "@radix-ui/themes";
|
|
41516
|
-
import { jsx as
|
|
41416
|
+
import { jsx as _jsx31 } from "react/jsx-runtime";
|
|
41517
41417
|
var Time = function() {
|
|
41518
|
-
var $ =
|
|
41418
|
+
var $ = _c32(17);
|
|
41519
41419
|
var time = useMediaState3("currentTime");
|
|
41520
41420
|
var duration = useMediaState3("duration");
|
|
41521
41421
|
var seeking = useMediaState3("seeking");
|
|
@@ -41583,7 +41483,7 @@ var Time = function() {
|
|
|
41583
41483
|
}
|
|
41584
41484
|
var t8;
|
|
41585
41485
|
if ($[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
|
|
41586
|
-
t8 = /* @__PURE__ */
|
|
41486
|
+
t8 = /* @__PURE__ */ _jsx31(Slider2, {
|
|
41587
41487
|
size: "1",
|
|
41588
41488
|
variant: "soft",
|
|
41589
41489
|
value: t3,
|
|
@@ -41604,11 +41504,11 @@ var Time = function() {
|
|
|
41604
41504
|
return t8;
|
|
41605
41505
|
};
|
|
41606
41506
|
// src/components/media/MediaContainer.tsx
|
|
41607
|
-
import { c as
|
|
41507
|
+
import { c as _c33 } from "react-compiler-runtime";
|
|
41608
41508
|
import { Card, Inset } from "@radix-ui/themes";
|
|
41609
|
-
import { jsx as
|
|
41509
|
+
import { jsx as _jsx32 } from "react/jsx-runtime";
|
|
41610
41510
|
var MediaContainer = function(t0) {
|
|
41611
|
-
var $ =
|
|
41511
|
+
var $ = _c33(3);
|
|
41612
41512
|
var children = t0.children;
|
|
41613
41513
|
var t1;
|
|
41614
41514
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -41622,9 +41522,9 @@ var MediaContainer = function(t0) {
|
|
|
41622
41522
|
}
|
|
41623
41523
|
var t2;
|
|
41624
41524
|
if ($[1] !== children) {
|
|
41625
|
-
t2 = /* @__PURE__ */
|
|
41525
|
+
t2 = /* @__PURE__ */ _jsx32(Card, {
|
|
41626
41526
|
mb: "3",
|
|
41627
|
-
children: /* @__PURE__ */
|
|
41527
|
+
children: /* @__PURE__ */ _jsx32(Inset, {
|
|
41628
41528
|
clip: "padding-box",
|
|
41629
41529
|
style: t1,
|
|
41630
41530
|
children: children
|
|
@@ -41638,21 +41538,21 @@ var MediaContainer = function(t0) {
|
|
|
41638
41538
|
return t2;
|
|
41639
41539
|
};
|
|
41640
41540
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/Video/FullscreenButton.tsx
|
|
41641
|
-
import { c as
|
|
41541
|
+
import { c as _c34 } from "react-compiler-runtime";
|
|
41642
41542
|
import { FullscreenButton as VidstackFullscreenButton, useMediaState as useMediaState4 } from "@vidstack/react";
|
|
41643
41543
|
import { IconButton as IconButton3 } from "@radix-ui/themes";
|
|
41644
41544
|
import { EnterFullScreenIcon, ExitFullScreenIcon } from "@radix-ui/react-icons";
|
|
41645
|
-
import { jsx as
|
|
41545
|
+
import { jsx as _jsx33 } from "react/jsx-runtime";
|
|
41646
41546
|
var FullscreenButton = function() {
|
|
41647
|
-
var $ =
|
|
41547
|
+
var $ = _c34(2);
|
|
41648
41548
|
var isFullscreen = useMediaState4("fullscreen");
|
|
41649
41549
|
var t0;
|
|
41650
41550
|
if ($[0] !== isFullscreen) {
|
|
41651
|
-
t0 = /* @__PURE__ */
|
|
41551
|
+
t0 = /* @__PURE__ */ _jsx33(IconButton3, {
|
|
41652
41552
|
variant: "ghost",
|
|
41653
41553
|
asChild: true,
|
|
41654
|
-
children: /* @__PURE__ */
|
|
41655
|
-
children: isFullscreen ? /* @__PURE__ */
|
|
41554
|
+
children: /* @__PURE__ */ _jsx33(VidstackFullscreenButton, {
|
|
41555
|
+
children: isFullscreen ? /* @__PURE__ */ _jsx33(ExitFullScreenIcon, {}) : /* @__PURE__ */ _jsx33(EnterFullScreenIcon, {})
|
|
41656
41556
|
})
|
|
41657
41557
|
});
|
|
41658
41558
|
$[0] = isFullscreen;
|
|
@@ -41663,9 +41563,9 @@ var FullscreenButton = function() {
|
|
|
41663
41563
|
return t0;
|
|
41664
41564
|
};
|
|
41665
41565
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
|
|
41666
|
-
import { jsx as
|
|
41566
|
+
import { jsx as _jsx34, jsxs as _jsxs11 } from "react/jsx-runtime";
|
|
41667
41567
|
var Video = function(t0) {
|
|
41668
|
-
var $ =
|
|
41568
|
+
var $ = _c35(9);
|
|
41669
41569
|
var src = t0.src;
|
|
41670
41570
|
var t1 = "video/".concat(src.split(".").pop());
|
|
41671
41571
|
var t2;
|
|
@@ -41683,8 +41583,8 @@ var Video = function(t0) {
|
|
|
41683
41583
|
var t3;
|
|
41684
41584
|
var t4;
|
|
41685
41585
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41686
|
-
t3 = /* @__PURE__ */
|
|
41687
|
-
t4 = /* @__PURE__ */
|
|
41586
|
+
t3 = /* @__PURE__ */ _jsx34(MediaProvider, {});
|
|
41587
|
+
t4 = /* @__PURE__ */ _jsx34("style", {
|
|
41688
41588
|
children: "\n .superinterface-video-controls {\n opacity: 0;\n transition: opacity 0.2s ease-out;\n }\n\n .superinterface-video-controls[data-visible] {\n opacity: 1;\n }\n "
|
|
41689
41589
|
});
|
|
41690
41590
|
$[3] = t3;
|
|
@@ -41705,7 +41605,7 @@ var Video = function(t0) {
|
|
|
41705
41605
|
}
|
|
41706
41606
|
var t6;
|
|
41707
41607
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41708
|
-
t6 = /* @__PURE__ */
|
|
41608
|
+
t6 = /* @__PURE__ */ _jsx34(Flex6, {
|
|
41709
41609
|
asChild: true,
|
|
41710
41610
|
position: "absolute",
|
|
41711
41611
|
bottom: "0",
|
|
@@ -41714,18 +41614,18 @@ var Video = function(t0) {
|
|
|
41714
41614
|
className: "superinterface-video-controls",
|
|
41715
41615
|
p: "3",
|
|
41716
41616
|
style: t5,
|
|
41717
|
-
children: /* @__PURE__ */
|
|
41718
|
-
children: /* @__PURE__ */
|
|
41617
|
+
children: /* @__PURE__ */ _jsx34(Controls.Root, {
|
|
41618
|
+
children: /* @__PURE__ */ _jsx34(Flex6, {
|
|
41719
41619
|
asChild: true,
|
|
41720
41620
|
align: "center",
|
|
41721
41621
|
gap: "3",
|
|
41722
41622
|
flexGrow: "1",
|
|
41723
|
-
children: /* @__PURE__ */
|
|
41623
|
+
children: /* @__PURE__ */ _jsxs11(Controls.Group, {
|
|
41724
41624
|
children: [
|
|
41725
|
-
/* @__PURE__ */
|
|
41726
|
-
/* @__PURE__ */
|
|
41727
|
-
/* @__PURE__ */
|
|
41728
|
-
/* @__PURE__ */
|
|
41625
|
+
/* @__PURE__ */ _jsx34(PlayButton, {}),
|
|
41626
|
+
/* @__PURE__ */ _jsx34(Time, {}),
|
|
41627
|
+
/* @__PURE__ */ _jsx34(VolumeButton, {}),
|
|
41628
|
+
/* @__PURE__ */ _jsx34(FullscreenButton, {})
|
|
41729
41629
|
]
|
|
41730
41630
|
})
|
|
41731
41631
|
})
|
|
@@ -41737,8 +41637,8 @@ var Video = function(t0) {
|
|
|
41737
41637
|
}
|
|
41738
41638
|
var t7;
|
|
41739
41639
|
if ($[7] !== t2) {
|
|
41740
|
-
t7 = /* @__PURE__ */
|
|
41741
|
-
children: /* @__PURE__ */
|
|
41640
|
+
t7 = /* @__PURE__ */ _jsx34(MediaContainer, {
|
|
41641
|
+
children: /* @__PURE__ */ _jsxs11(MediaPlayer, {
|
|
41742
41642
|
src: t2,
|
|
41743
41643
|
playsInline: true,
|
|
41744
41644
|
hideControlsOnMouseLeave: true,
|
|
@@ -41758,13 +41658,13 @@ var Video = function(t0) {
|
|
|
41758
41658
|
return t7;
|
|
41759
41659
|
};
|
|
41760
41660
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/Audio/index.tsx
|
|
41761
|
-
import { c as
|
|
41762
|
-
import { Flex as
|
|
41661
|
+
import { c as _c36 } from "react-compiler-runtime";
|
|
41662
|
+
import { Flex as Flex7 } from "@radix-ui/themes";
|
|
41763
41663
|
import "@vidstack/react/player/styles/base.css";
|
|
41764
41664
|
import { MediaPlayer as MediaPlayer2, MediaProvider as MediaProvider2, Controls as Controls2 } from "@vidstack/react";
|
|
41765
|
-
import { jsx as
|
|
41665
|
+
import { jsx as _jsx35, jsxs as _jsxs12 } from "react/jsx-runtime";
|
|
41766
41666
|
var Audio = function(t0) {
|
|
41767
|
-
var $ =
|
|
41667
|
+
var $ = _c36(8);
|
|
41768
41668
|
var src = t0.src;
|
|
41769
41669
|
var t1 = "audio/".concat(src.split(".").pop());
|
|
41770
41670
|
var t2;
|
|
@@ -41781,7 +41681,7 @@ var Audio = function(t0) {
|
|
|
41781
41681
|
}
|
|
41782
41682
|
var t3;
|
|
41783
41683
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41784
|
-
t3 = /* @__PURE__ */
|
|
41684
|
+
t3 = /* @__PURE__ */ _jsx35(MediaProvider2, {});
|
|
41785
41685
|
$[3] = t3;
|
|
41786
41686
|
} else {
|
|
41787
41687
|
t3 = $[3];
|
|
@@ -41798,22 +41698,22 @@ var Audio = function(t0) {
|
|
|
41798
41698
|
}
|
|
41799
41699
|
var t5;
|
|
41800
41700
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41801
|
-
t5 = /* @__PURE__ */
|
|
41701
|
+
t5 = /* @__PURE__ */ _jsx35(Flex7, {
|
|
41802
41702
|
asChild: true,
|
|
41803
41703
|
p: "3",
|
|
41804
41704
|
flexGrow: "1",
|
|
41805
41705
|
style: t4,
|
|
41806
|
-
children: /* @__PURE__ */
|
|
41807
|
-
children: /* @__PURE__ */
|
|
41706
|
+
children: /* @__PURE__ */ _jsx35(Controls2.Root, {
|
|
41707
|
+
children: /* @__PURE__ */ _jsx35(Flex7, {
|
|
41808
41708
|
asChild: true,
|
|
41809
41709
|
align: "center",
|
|
41810
41710
|
gap: "3",
|
|
41811
41711
|
flexGrow: "1",
|
|
41812
|
-
children: /* @__PURE__ */
|
|
41712
|
+
children: /* @__PURE__ */ _jsxs12(Controls2.Group, {
|
|
41813
41713
|
children: [
|
|
41814
|
-
/* @__PURE__ */
|
|
41815
|
-
/* @__PURE__ */
|
|
41816
|
-
/* @__PURE__ */
|
|
41714
|
+
/* @__PURE__ */ _jsx35(PlayButton, {}),
|
|
41715
|
+
/* @__PURE__ */ _jsx35(Time, {}),
|
|
41716
|
+
/* @__PURE__ */ _jsx35(VolumeButton, {})
|
|
41817
41717
|
]
|
|
41818
41718
|
})
|
|
41819
41719
|
})
|
|
@@ -41825,8 +41725,8 @@ var Audio = function(t0) {
|
|
|
41825
41725
|
}
|
|
41826
41726
|
var t6;
|
|
41827
41727
|
if ($[6] !== t2) {
|
|
41828
|
-
t6 = /* @__PURE__ */
|
|
41829
|
-
children: /* @__PURE__ */
|
|
41728
|
+
t6 = /* @__PURE__ */ _jsx35(MediaContainer, {
|
|
41729
|
+
children: /* @__PURE__ */ _jsxs12(MediaPlayer2, {
|
|
41830
41730
|
src: t2,
|
|
41831
41731
|
viewType: "audio",
|
|
41832
41732
|
crossOrigin: true,
|
|
@@ -41845,7 +41745,7 @@ var Audio = function(t0) {
|
|
|
41845
41745
|
return t6;
|
|
41846
41746
|
};
|
|
41847
41747
|
// src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
|
|
41848
|
-
import { jsx as
|
|
41748
|
+
import { jsx as _jsx36 } from "react/jsx-runtime";
|
|
41849
41749
|
function ownKeys21(e, r) {
|
|
41850
41750
|
var t = Object.keys(e);
|
|
41851
41751
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -41890,11 +41790,11 @@ function _toPrimitive21(t, r) {
|
|
|
41890
41790
|
return ("string" === r ? String : Number)(t);
|
|
41891
41791
|
}
|
|
41892
41792
|
var Img = function(props) {
|
|
41893
|
-
var $ =
|
|
41793
|
+
var $ = _c37(8);
|
|
41894
41794
|
if (!props.src) {
|
|
41895
41795
|
var t0;
|
|
41896
41796
|
if ($[0] !== props) {
|
|
41897
|
-
t0 = /* @__PURE__ */
|
|
41797
|
+
t0 = /* @__PURE__ */ _jsx36(Image, _objectSpread21({}, props));
|
|
41898
41798
|
$[0] = props;
|
|
41899
41799
|
$[1] = t0;
|
|
41900
41800
|
} else {
|
|
@@ -41907,7 +41807,7 @@ var Img = function(props) {
|
|
|
41907
41807
|
})) {
|
|
41908
41808
|
var _t;
|
|
41909
41809
|
if ($[2] !== props.src) {
|
|
41910
|
-
_t = /* @__PURE__ */
|
|
41810
|
+
_t = /* @__PURE__ */ _jsx36(Video, {
|
|
41911
41811
|
src: props.src
|
|
41912
41812
|
});
|
|
41913
41813
|
$[2] = props.src;
|
|
@@ -41922,7 +41822,7 @@ var Img = function(props) {
|
|
|
41922
41822
|
})) {
|
|
41923
41823
|
var _t2;
|
|
41924
41824
|
if ($[4] !== props.src) {
|
|
41925
|
-
_t2 = /* @__PURE__ */
|
|
41825
|
+
_t2 = /* @__PURE__ */ _jsx36(Audio, {
|
|
41926
41826
|
src: props.src
|
|
41927
41827
|
});
|
|
41928
41828
|
$[4] = props.src;
|
|
@@ -41934,7 +41834,7 @@ var Img = function(props) {
|
|
|
41934
41834
|
} else {
|
|
41935
41835
|
var _t3;
|
|
41936
41836
|
if ($[6] !== props) {
|
|
41937
|
-
_t3 = /* @__PURE__ */
|
|
41837
|
+
_t3 = /* @__PURE__ */ _jsx36(Image, _objectSpread21({}, props));
|
|
41938
41838
|
$[6] = props;
|
|
41939
41839
|
$[7] = _t3;
|
|
41940
41840
|
} else {
|
|
@@ -41946,20 +41846,20 @@ var Img = function(props) {
|
|
|
41946
41846
|
}
|
|
41947
41847
|
};
|
|
41948
41848
|
// src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
|
|
41949
|
-
import { c as
|
|
41849
|
+
import { c as _c40 } from "react-compiler-runtime";
|
|
41950
41850
|
import { QuoteIcon } from "@radix-ui/react-icons";
|
|
41951
41851
|
// src/components/annotations/FilePathAnnotation.tsx
|
|
41952
|
-
import { c as
|
|
41953
|
-
import { jsx as
|
|
41852
|
+
import { c as _c38 } from "react-compiler-runtime";
|
|
41853
|
+
import { jsx as _jsx37 } from "react/jsx-runtime";
|
|
41954
41854
|
var FilePathAnnotation = function(t0) {
|
|
41955
|
-
var $ =
|
|
41855
|
+
var $ = _c38(3);
|
|
41956
41856
|
var annotation = t0.annotation, children = t0.children;
|
|
41957
41857
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
41958
41858
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
41959
41859
|
var t1 = "".concat(superinterfaceContext.baseUrl, "/files/").concat(annotation.file_path.file_id, "/contents?").concat(nextSearchParams);
|
|
41960
41860
|
var t2;
|
|
41961
41861
|
if ($[0] !== children || $[1] !== t1) {
|
|
41962
|
-
t2 = /* @__PURE__ */
|
|
41862
|
+
t2 = /* @__PURE__ */ _jsx37(Link, {
|
|
41963
41863
|
href: t1,
|
|
41964
41864
|
target: "_self",
|
|
41965
41865
|
download: true,
|
|
@@ -41974,16 +41874,16 @@ var FilePathAnnotation = function(t0) {
|
|
|
41974
41874
|
return t2;
|
|
41975
41875
|
};
|
|
41976
41876
|
// src/contexts/markdown/MarkdownContext/lib/components/Annotation/AnnotationBase.tsx
|
|
41977
|
-
import { c as
|
|
41978
|
-
import { IconButton as IconButton4, Popover as Popover4, Flex as
|
|
41979
|
-
import { jsx as
|
|
41877
|
+
import { c as _c39 } from "react-compiler-runtime";
|
|
41878
|
+
import { IconButton as IconButton4, Popover as Popover4, Flex as Flex8, Text as Text5 } from "@radix-ui/themes";
|
|
41879
|
+
import { jsx as _jsx38, jsxs as _jsxs13 } from "react/jsx-runtime";
|
|
41980
41880
|
var AnnotationBase = function(t0) {
|
|
41981
|
-
var $ =
|
|
41881
|
+
var $ = _c39(7);
|
|
41982
41882
|
var icon = t0.icon, content2 = t0.content;
|
|
41983
41883
|
var t1;
|
|
41984
41884
|
if ($[0] !== icon) {
|
|
41985
|
-
t1 = /* @__PURE__ */
|
|
41986
|
-
children: /* @__PURE__ */
|
|
41885
|
+
t1 = /* @__PURE__ */ _jsx38(Popover4.Trigger, {
|
|
41886
|
+
children: /* @__PURE__ */ _jsx38(IconButton4, {
|
|
41987
41887
|
variant: "soft",
|
|
41988
41888
|
color: "gray",
|
|
41989
41889
|
size: "1",
|
|
@@ -41997,11 +41897,11 @@ var AnnotationBase = function(t0) {
|
|
|
41997
41897
|
}
|
|
41998
41898
|
var t2;
|
|
41999
41899
|
if ($[2] !== content2) {
|
|
42000
|
-
t2 = /* @__PURE__ */
|
|
41900
|
+
t2 = /* @__PURE__ */ _jsx38(Popover4.Content, {
|
|
42001
41901
|
size: "1",
|
|
42002
|
-
children: /* @__PURE__ */
|
|
41902
|
+
children: /* @__PURE__ */ _jsx38(Flex8, {
|
|
42003
41903
|
direction: "column",
|
|
42004
|
-
children: /* @__PURE__ */
|
|
41904
|
+
children: /* @__PURE__ */ _jsx38(Text5, {
|
|
42005
41905
|
size: "1",
|
|
42006
41906
|
color: "gray",
|
|
42007
41907
|
children: content2
|
|
@@ -42015,7 +41915,7 @@ var AnnotationBase = function(t0) {
|
|
|
42015
41915
|
}
|
|
42016
41916
|
var t3;
|
|
42017
41917
|
if ($[4] !== t1 || $[5] !== t2) {
|
|
42018
|
-
t3 = /* @__PURE__ */
|
|
41918
|
+
t3 = /* @__PURE__ */ _jsxs13(Popover4.Root, {
|
|
42019
41919
|
children: [
|
|
42020
41920
|
t1,
|
|
42021
41921
|
t2
|
|
@@ -42030,7 +41930,7 @@ var AnnotationBase = function(t0) {
|
|
|
42030
41930
|
return t3;
|
|
42031
41931
|
};
|
|
42032
41932
|
// src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
|
|
42033
|
-
import { jsx as
|
|
41933
|
+
import { jsx as _jsx39 } from "react/jsx-runtime";
|
|
42034
41934
|
var _excluded = [
|
|
42035
41935
|
"children"
|
|
42036
41936
|
];
|
|
@@ -42053,7 +41953,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
42053
41953
|
return t;
|
|
42054
41954
|
}
|
|
42055
41955
|
var Annotation = function(t0) {
|
|
42056
|
-
var $ =
|
|
41956
|
+
var $ = _c40(9);
|
|
42057
41957
|
var children;
|
|
42058
41958
|
var rest;
|
|
42059
41959
|
if ($[0] !== t0) {
|
|
@@ -42081,8 +41981,8 @@ var Annotation = function(t0) {
|
|
|
42081
41981
|
if (annotation.type === "file_citation") {
|
|
42082
41982
|
var t2;
|
|
42083
41983
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42084
|
-
t2 = /* @__PURE__ */
|
|
42085
|
-
icon: /* @__PURE__ */
|
|
41984
|
+
t2 = /* @__PURE__ */ _jsx39(AnnotationBase, {
|
|
41985
|
+
icon: /* @__PURE__ */ _jsx39(QuoteIcon, {}),
|
|
42086
41986
|
content: "File cited."
|
|
42087
41987
|
});
|
|
42088
41988
|
$[5] = t2;
|
|
@@ -42094,7 +41994,7 @@ var Annotation = function(t0) {
|
|
|
42094
41994
|
if (annotation.type === "file_path") {
|
|
42095
41995
|
var _t2;
|
|
42096
41996
|
if ($[6] !== annotation || $[7] !== children) {
|
|
42097
|
-
_t2 = /* @__PURE__ */
|
|
41997
|
+
_t2 = /* @__PURE__ */ _jsx39(FilePathAnnotation, {
|
|
42098
41998
|
annotation: annotation,
|
|
42099
41999
|
children: children
|
|
42100
42000
|
});
|
|
@@ -42110,7 +42010,7 @@ var Annotation = function(t0) {
|
|
|
42110
42010
|
return null;
|
|
42111
42011
|
};
|
|
42112
42012
|
// src/contexts/markdown/MarkdownContext/lib/components/index.tsx
|
|
42113
|
-
import { jsx as
|
|
42013
|
+
import { jsx as _jsx40, Fragment as _Fragment, jsxs as _jsxs14 } from "react/jsx-runtime";
|
|
42114
42014
|
var _excluded2 = [
|
|
42115
42015
|
"width"
|
|
42116
42016
|
];
|
|
@@ -42187,53 +42087,53 @@ var components = {
|
|
|
42187
42087
|
img: Img,
|
|
42188
42088
|
annotation: Annotation,
|
|
42189
42089
|
h1: function(props) {
|
|
42190
|
-
return /* @__PURE__ */
|
|
42090
|
+
return /* @__PURE__ */ _jsx40(Heading, {
|
|
42191
42091
|
as: "h1",
|
|
42192
42092
|
children: props.children
|
|
42193
42093
|
});
|
|
42194
42094
|
},
|
|
42195
42095
|
h2: function(props) {
|
|
42196
|
-
return /* @__PURE__ */
|
|
42096
|
+
return /* @__PURE__ */ _jsx40(Heading, {
|
|
42197
42097
|
as: "h2",
|
|
42198
42098
|
size: "5",
|
|
42199
42099
|
children: props.children
|
|
42200
42100
|
});
|
|
42201
42101
|
},
|
|
42202
42102
|
h3: function(props) {
|
|
42203
|
-
return /* @__PURE__ */
|
|
42103
|
+
return /* @__PURE__ */ _jsx40(Heading, {
|
|
42204
42104
|
as: "h3",
|
|
42205
42105
|
size: "4",
|
|
42206
42106
|
children: props.children
|
|
42207
42107
|
});
|
|
42208
42108
|
},
|
|
42209
42109
|
h4: function(props) {
|
|
42210
|
-
return /* @__PURE__ */
|
|
42110
|
+
return /* @__PURE__ */ _jsx40(Heading, {
|
|
42211
42111
|
as: "h4",
|
|
42212
42112
|
size: "3",
|
|
42213
42113
|
children: props.children
|
|
42214
42114
|
});
|
|
42215
42115
|
},
|
|
42216
42116
|
h5: function(props) {
|
|
42217
|
-
return /* @__PURE__ */
|
|
42117
|
+
return /* @__PURE__ */ _jsx40(Heading, {
|
|
42218
42118
|
as: "h5",
|
|
42219
42119
|
size: "3",
|
|
42220
42120
|
children: props.children
|
|
42221
42121
|
});
|
|
42222
42122
|
},
|
|
42223
42123
|
h6: function(props) {
|
|
42224
|
-
return /* @__PURE__ */
|
|
42124
|
+
return /* @__PURE__ */ _jsx40(Heading, {
|
|
42225
42125
|
as: "h6",
|
|
42226
42126
|
size: "3",
|
|
42227
42127
|
children: props.children
|
|
42228
42128
|
});
|
|
42229
42129
|
},
|
|
42230
42130
|
table: function(props) {
|
|
42231
|
-
return /* @__PURE__ */
|
|
42131
|
+
return /* @__PURE__ */ _jsxs14(_Fragment, {
|
|
42232
42132
|
children: [
|
|
42233
|
-
/* @__PURE__ */
|
|
42133
|
+
/* @__PURE__ */ _jsx40("style", {
|
|
42234
42134
|
children: ".rt-TableRootTable { overflow: inherit; }"
|
|
42235
42135
|
}),
|
|
42236
|
-
/* @__PURE__ */
|
|
42136
|
+
/* @__PURE__ */ _jsx40(Table.Root, _objectSpread22(_objectSpread22({}, props), {}, {
|
|
42237
42137
|
variant: "surface",
|
|
42238
42138
|
mb: "3"
|
|
42239
42139
|
}))
|
|
@@ -42241,22 +42141,22 @@ var components = {
|
|
|
42241
42141
|
});
|
|
42242
42142
|
},
|
|
42243
42143
|
thead: function(props) {
|
|
42244
|
-
return /* @__PURE__ */
|
|
42144
|
+
return /* @__PURE__ */ _jsx40(Table.Header, _objectSpread22({}, props));
|
|
42245
42145
|
},
|
|
42246
42146
|
tbody: function(props) {
|
|
42247
|
-
return /* @__PURE__ */
|
|
42147
|
+
return /* @__PURE__ */ _jsx40(Table.Body, _objectSpread22({}, props));
|
|
42248
42148
|
},
|
|
42249
42149
|
tr: function(props) {
|
|
42250
|
-
return /* @__PURE__ */
|
|
42150
|
+
return /* @__PURE__ */ _jsx40(Table.Row, _objectSpread22({}, props));
|
|
42251
42151
|
},
|
|
42252
42152
|
td: function(_ref) {
|
|
42253
42153
|
var width2 = _ref.width, rest = _objectWithoutProperties2(_ref, _excluded2);
|
|
42254
|
-
return /* @__PURE__ */
|
|
42154
|
+
return /* @__PURE__ */ _jsx40(Table.Cell, _objectSpread22(_objectSpread22({}, rest), {}, {
|
|
42255
42155
|
width: width2
|
|
42256
42156
|
}));
|
|
42257
42157
|
},
|
|
42258
42158
|
th: function(props) {
|
|
42259
|
-
return /* @__PURE__ */
|
|
42159
|
+
return /* @__PURE__ */ _jsx40(Table.ColumnHeaderCell, _objectSpread22({}, props));
|
|
42260
42160
|
}
|
|
42261
42161
|
};
|
|
42262
42162
|
// src/contexts/markdown/MarkdownContext/lib/getRemarkPlugins.ts
|
|
@@ -42597,13 +42497,13 @@ var getRemarkPlugins = function(_ref) {
|
|
|
42597
42497
|
];
|
|
42598
42498
|
};
|
|
42599
42499
|
// src/contexts/markdown/MarkdownContext/index.ts
|
|
42600
|
-
var MarkdownContext = /* @__PURE__ */
|
|
42500
|
+
var MarkdownContext = /* @__PURE__ */ createContext4({
|
|
42601
42501
|
components: components,
|
|
42602
42502
|
getRemarkPlugins: getRemarkPlugins
|
|
42603
42503
|
});
|
|
42604
42504
|
// src/hooks/markdown/useMarkdownContext/index.ts
|
|
42605
42505
|
var useMarkdownContext = function() {
|
|
42606
|
-
return
|
|
42506
|
+
return useContext5(MarkdownContext);
|
|
42607
42507
|
};
|
|
42608
42508
|
// src/lib/markdown/escapeInvalidTagNames.ts
|
|
42609
42509
|
var isValidTagName = function(tagName) {
|
|
@@ -42615,8 +42515,8 @@ var escapeInvalidTagNames = function(markdown) {
|
|
|
42615
42515
|
});
|
|
42616
42516
|
};
|
|
42617
42517
|
// ../../node_modules/react-error-boundary/dist/react-error-boundary.esm.js
|
|
42618
|
-
import { createContext as
|
|
42619
|
-
var ErrorBoundaryContext = /* @__PURE__ */
|
|
42518
|
+
import { createContext as createContext5, Component, createElement, useContext as useContext6, useState as useState2, useMemo as useMemo8, forwardRef } from "react";
|
|
42519
|
+
var ErrorBoundaryContext = /* @__PURE__ */ createContext5(null);
|
|
42620
42520
|
var initialState = {
|
|
42621
42521
|
didCatch: false,
|
|
42622
42522
|
error: null
|
|
@@ -42725,8 +42625,8 @@ function hasArrayChanged() {
|
|
|
42725
42625
|
return !Object.is(item, b[index]);
|
|
42726
42626
|
});
|
|
42727
42627
|
}
|
|
42728
|
-
// src/components/
|
|
42729
|
-
import { jsx as
|
|
42628
|
+
// src/components/contents/TextContent.tsx
|
|
42629
|
+
import { jsx as _jsx41 } from "react/jsx-runtime";
|
|
42730
42630
|
function ownKeys24(e, r) {
|
|
42731
42631
|
var t = Object.keys(e);
|
|
42732
42632
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -42812,7 +42712,7 @@ var evaluate = /* @__PURE__ */ function() {
|
|
|
42812
42712
|
};
|
|
42813
42713
|
}();
|
|
42814
42714
|
var TextContent = function(t0) {
|
|
42815
|
-
var $ =
|
|
42715
|
+
var $ = _c41(13);
|
|
42816
42716
|
var content2 = t0.content;
|
|
42817
42717
|
var _useMarkdownContext = useMarkdownContext(), getRemarkPlugins2 = _useMarkdownContext.getRemarkPlugins, components2 = _useMarkdownContext.components;
|
|
42818
42718
|
var t1;
|
|
@@ -42914,7 +42814,7 @@ var TextContent = function(t0) {
|
|
|
42914
42814
|
}
|
|
42915
42815
|
var t5;
|
|
42916
42816
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42917
|
-
t5 = /* @__PURE__ */
|
|
42817
|
+
t5 = /* @__PURE__ */ _jsx41(Badge, {
|
|
42918
42818
|
color: "red",
|
|
42919
42819
|
mb: "2",
|
|
42920
42820
|
children: "Could not render message."
|
|
@@ -42925,7 +42825,7 @@ var TextContent = function(t0) {
|
|
|
42925
42825
|
}
|
|
42926
42826
|
var t6;
|
|
42927
42827
|
if ($[8] !== MDXComponent) {
|
|
42928
|
-
t6 = /* @__PURE__ */
|
|
42828
|
+
t6 = /* @__PURE__ */ _jsx41(MDXComponent, {});
|
|
42929
42829
|
$[8] = MDXComponent;
|
|
42930
42830
|
$[9] = t6;
|
|
42931
42831
|
} else {
|
|
@@ -42933,9 +42833,9 @@ var TextContent = function(t0) {
|
|
|
42933
42833
|
}
|
|
42934
42834
|
var t7;
|
|
42935
42835
|
if ($[10] !== components2 || $[11] !== t6) {
|
|
42936
|
-
t7 = /* @__PURE__ */
|
|
42836
|
+
t7 = /* @__PURE__ */ _jsx41(ErrorBoundary, {
|
|
42937
42837
|
fallback: t5,
|
|
42938
|
-
children: /* @__PURE__ */
|
|
42838
|
+
children: /* @__PURE__ */ _jsx41(MDXProvider, {
|
|
42939
42839
|
components: components2,
|
|
42940
42840
|
children: t6
|
|
42941
42841
|
})
|
|
@@ -42948,18 +42848,18 @@ var TextContent = function(t0) {
|
|
|
42948
42848
|
}
|
|
42949
42849
|
return t7;
|
|
42950
42850
|
};
|
|
42951
|
-
// src/components/
|
|
42952
|
-
import { c as
|
|
42953
|
-
import { jsx as
|
|
42851
|
+
// src/components/contents/ImageFileContent.tsx
|
|
42852
|
+
import { c as _c42 } from "react-compiler-runtime";
|
|
42853
|
+
import { jsx as _jsx42 } from "react/jsx-runtime";
|
|
42954
42854
|
var ImageFileContent = function(t0) {
|
|
42955
|
-
var $ =
|
|
42855
|
+
var $ = _c42(2);
|
|
42956
42856
|
var content2 = t0.content;
|
|
42957
42857
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
42958
42858
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
42959
42859
|
var t1 = "".concat(superinterfaceContext.baseUrl, "/files/").concat(content2.image_file.file_id, "/contents?").concat(nextSearchParams);
|
|
42960
42860
|
var t2;
|
|
42961
42861
|
if ($[0] !== t1) {
|
|
42962
|
-
t2 = /* @__PURE__ */
|
|
42862
|
+
t2 = /* @__PURE__ */ _jsx42(Image, {
|
|
42963
42863
|
alt: "",
|
|
42964
42864
|
src: t1
|
|
42965
42865
|
});
|
|
@@ -42970,47 +42870,483 @@ var ImageFileContent = function(t0) {
|
|
|
42970
42870
|
}
|
|
42971
42871
|
return t2;
|
|
42972
42872
|
};
|
|
42973
|
-
// src/components/
|
|
42974
|
-
import {
|
|
42975
|
-
|
|
42976
|
-
|
|
42977
|
-
|
|
42978
|
-
|
|
42979
|
-
|
|
42980
|
-
|
|
42981
|
-
|
|
42982
|
-
|
|
42983
|
-
|
|
42984
|
-
|
|
42985
|
-
|
|
42986
|
-
|
|
42987
|
-
|
|
42988
|
-
|
|
42989
|
-
|
|
42990
|
-
|
|
42991
|
-
|
|
42992
|
-
|
|
42993
|
-
|
|
42994
|
-
|
|
42995
|
-
|
|
42996
|
-
|
|
42997
|
-
|
|
42998
|
-
|
|
42999
|
-
|
|
43000
|
-
|
|
43001
|
-
|
|
43002
|
-
|
|
43003
|
-
|
|
43004
|
-
|
|
43005
|
-
};
|
|
43006
|
-
// src/
|
|
43007
|
-
import {
|
|
43008
|
-
|
|
43009
|
-
|
|
43010
|
-
|
|
42873
|
+
// src/components/messageGroups/MessageGroup/index.tsx
|
|
42874
|
+
import { c as _c48 } from "react-compiler-runtime";
|
|
42875
|
+
import { useContext as useContext9 } from "react";
|
|
42876
|
+
import { Box as Box9 } from "@radix-ui/themes";
|
|
42877
|
+
// src/components/messageGroups/MessageGroup/Name.tsx
|
|
42878
|
+
import { c as _c43 } from "react-compiler-runtime";
|
|
42879
|
+
import { Flex as Flex9, Text as Text6 } from "@radix-ui/themes";
|
|
42880
|
+
import { jsx as _jsx43 } from "react/jsx-runtime";
|
|
42881
|
+
var Name = function(t0) {
|
|
42882
|
+
var $ = _c43(2);
|
|
42883
|
+
var children = t0.children;
|
|
42884
|
+
var t1;
|
|
42885
|
+
if ($[0] !== children) {
|
|
42886
|
+
t1 = /* @__PURE__ */ _jsx43(Flex9, {
|
|
42887
|
+
align: "center",
|
|
42888
|
+
height: "var(--space-5)",
|
|
42889
|
+
children: /* @__PURE__ */ _jsx43(Text6, {
|
|
42890
|
+
size: "2",
|
|
42891
|
+
weight: "bold",
|
|
42892
|
+
children: children
|
|
42893
|
+
})
|
|
42894
|
+
});
|
|
42895
|
+
$[0] = children;
|
|
42896
|
+
$[1] = t1;
|
|
42897
|
+
} else {
|
|
42898
|
+
t1 = $[1];
|
|
42899
|
+
}
|
|
42900
|
+
return t1;
|
|
42901
|
+
};
|
|
42902
|
+
// src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
|
|
42903
|
+
import { c as _c44 } from "react-compiler-runtime";
|
|
42904
|
+
import { useContext as useContext7 } from "react";
|
|
42905
|
+
import { Flex as Flex10 } from "@radix-ui/themes";
|
|
42906
|
+
// src/contexts/assistants/AssistantAvatarContext/index.tsx
|
|
42907
|
+
import { createContext as createContext6 } from "react";
|
|
42908
|
+
import { Avatar } from "@radix-ui/themes";
|
|
42909
|
+
import { LightningBoltIcon } from "@radix-ui/react-icons";
|
|
42910
|
+
import { jsx as _jsx44 } from "react/jsx-runtime";
|
|
42911
|
+
var AssistantAvatarContext = /* @__PURE__ */ createContext6(/* @__PURE__ */ _jsx44(Avatar, {
|
|
42912
|
+
fallback: /* @__PURE__ */ _jsx44(LightningBoltIcon, {}),
|
|
42913
|
+
size: "1"
|
|
42914
|
+
}));
|
|
42915
|
+
// src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
|
|
42916
|
+
import { jsx as _jsx45 } from "react/jsx-runtime";
|
|
42917
|
+
var AssistantAvatar = function() {
|
|
42918
|
+
var $ = _c44(3);
|
|
42919
|
+
var AssistantAvatarContextValue = useContext7(AssistantAvatarContext);
|
|
42920
|
+
var t0;
|
|
42921
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42922
|
+
t0 = {
|
|
42923
|
+
borderRadius: "var(--radius-3)",
|
|
42924
|
+
overflow: "hidden"
|
|
42925
|
+
};
|
|
42926
|
+
$[0] = t0;
|
|
42927
|
+
} else {
|
|
42928
|
+
t0 = $[0];
|
|
42929
|
+
}
|
|
42930
|
+
var t1;
|
|
42931
|
+
if ($[1] !== AssistantAvatarContextValue) {
|
|
42932
|
+
t1 = /* @__PURE__ */ _jsx45(Flex10, {
|
|
42933
|
+
flexShrink: "0",
|
|
42934
|
+
height: "24px",
|
|
42935
|
+
width: "24px",
|
|
42936
|
+
style: t0,
|
|
42937
|
+
children: AssistantAvatarContextValue
|
|
42938
|
+
});
|
|
42939
|
+
$[1] = AssistantAvatarContextValue;
|
|
42940
|
+
$[2] = t1;
|
|
42941
|
+
} else {
|
|
42942
|
+
t1 = $[2];
|
|
42943
|
+
}
|
|
42944
|
+
return t1;
|
|
42945
|
+
};
|
|
42946
|
+
// src/contexts/assistants/AssistantNameContext/index.tsx
|
|
42947
|
+
import { createContext as createContext7 } from "react";
|
|
42948
|
+
var AssistantNameContext = /* @__PURE__ */ createContext7("Assistant");
|
|
42949
|
+
// src/components/messageGroups/MessageGroup/UserAvatar.tsx
|
|
42950
|
+
import { c as _c45 } from "react-compiler-runtime";
|
|
42951
|
+
import { useContext as useContext8 } from "react";
|
|
42952
|
+
import { Flex as Flex11 } from "@radix-ui/themes";
|
|
42953
|
+
// src/contexts/users/UserAvatarContext/index.tsx
|
|
42954
|
+
import { createContext as createContext8 } from "react";
|
|
42955
|
+
import { Avatar as Avatar2 } from "@radix-ui/themes";
|
|
42956
|
+
import { PersonIcon } from "@radix-ui/react-icons";
|
|
42957
|
+
import { jsx as _jsx46 } from "react/jsx-runtime";
|
|
42958
|
+
var UserAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx46(Avatar2, {
|
|
42959
|
+
fallback: /* @__PURE__ */ _jsx46(PersonIcon, {}),
|
|
42960
|
+
size: "1"
|
|
42961
|
+
}));
|
|
42962
|
+
// src/components/messageGroups/MessageGroup/UserAvatar.tsx
|
|
42963
|
+
import { jsx as _jsx47 } from "react/jsx-runtime";
|
|
42964
|
+
var UserAvatar = function() {
|
|
42965
|
+
var $ = _c45(3);
|
|
42966
|
+
var UserAvatarContextValue = useContext8(UserAvatarContext);
|
|
42967
|
+
var t0;
|
|
42968
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42969
|
+
t0 = {
|
|
42970
|
+
borderRadius: "var(--radius-3)",
|
|
42971
|
+
overflow: "hidden"
|
|
42972
|
+
};
|
|
42973
|
+
$[0] = t0;
|
|
42974
|
+
} else {
|
|
42975
|
+
t0 = $[0];
|
|
42976
|
+
}
|
|
42977
|
+
var t1;
|
|
42978
|
+
if ($[1] !== UserAvatarContextValue) {
|
|
42979
|
+
t1 = /* @__PURE__ */ _jsx47(Flex11, {
|
|
42980
|
+
flexShrink: "0",
|
|
42981
|
+
height: "24px",
|
|
42982
|
+
width: "24px",
|
|
42983
|
+
style: t0,
|
|
42984
|
+
children: UserAvatarContextValue
|
|
42985
|
+
});
|
|
42986
|
+
$[1] = UserAvatarContextValue;
|
|
42987
|
+
$[2] = t1;
|
|
42988
|
+
} else {
|
|
42989
|
+
t1 = $[2];
|
|
42990
|
+
}
|
|
42991
|
+
return t1;
|
|
42992
|
+
};
|
|
42993
|
+
// src/components/messageGroups/MessageGroup/Messages.tsx
|
|
42994
|
+
import { c as _c46 } from "react-compiler-runtime";
|
|
42995
|
+
import { Flex as Flex12 } from "@radix-ui/themes";
|
|
42996
|
+
import { jsx as _jsx48 } from "react/jsx-runtime";
|
|
42997
|
+
var Messages = function(t0) {
|
|
42998
|
+
var $ = _c46(4);
|
|
42999
|
+
var messageGroup = t0.messageGroup;
|
|
43000
|
+
var t1;
|
|
43001
|
+
if ($[0] !== messageGroup.messages) {
|
|
43002
|
+
t1 = messageGroup.messages.map(_temp);
|
|
43003
|
+
$[0] = messageGroup.messages;
|
|
43004
|
+
$[1] = t1;
|
|
43005
|
+
} else {
|
|
43006
|
+
t1 = $[1];
|
|
43007
|
+
}
|
|
43008
|
+
var t2;
|
|
43009
|
+
if ($[2] !== t1) {
|
|
43010
|
+
t2 = /* @__PURE__ */ _jsx48(Flex12, {
|
|
43011
|
+
direction: "column-reverse",
|
|
43012
|
+
children: t1
|
|
43013
|
+
});
|
|
43014
|
+
$[2] = t1;
|
|
43015
|
+
$[3] = t2;
|
|
43016
|
+
} else {
|
|
43017
|
+
t2 = $[3];
|
|
43018
|
+
}
|
|
43019
|
+
return t2;
|
|
43020
|
+
};
|
|
43021
|
+
function _temp(message) {
|
|
43022
|
+
return /* @__PURE__ */ _jsx48(Message, {
|
|
43023
|
+
message: message
|
|
43024
|
+
}, message.id);
|
|
43025
|
+
}
|
|
43026
|
+
// src/components/messageGroups/MessageGroup/Root.tsx
|
|
43027
|
+
import { c as _c47 } from "react-compiler-runtime";
|
|
43028
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
43029
|
+
import { Flex as Flex13, Container } from "@radix-ui/themes";
|
|
43030
|
+
import { jsx as _jsx49 } from "react/jsx-runtime";
|
|
43031
|
+
var Root2 = /* @__PURE__ */ forwardRef2(function Root3(t0, ref) {
|
|
43032
|
+
var $ = _c47(7);
|
|
43033
|
+
var children = t0.children, style = t0.style, className = t0.className;
|
|
43034
|
+
var t1;
|
|
43035
|
+
if ($[0] !== children) {
|
|
43036
|
+
t1 = /* @__PURE__ */ _jsx49(Flex13, {
|
|
43037
|
+
flexShrink: "0",
|
|
43038
|
+
gap: "3",
|
|
43039
|
+
children: children
|
|
43040
|
+
});
|
|
43041
|
+
$[0] = children;
|
|
43042
|
+
$[1] = t1;
|
|
43043
|
+
} else {
|
|
43044
|
+
t1 = $[1];
|
|
43045
|
+
}
|
|
43046
|
+
var t2;
|
|
43047
|
+
if ($[2] !== className || $[3] !== ref || $[4] !== style || $[5] !== t1) {
|
|
43048
|
+
t2 = /* @__PURE__ */ _jsx49(Container, {
|
|
43049
|
+
ref: ref,
|
|
43050
|
+
size: "2",
|
|
43051
|
+
flexGrow: "0",
|
|
43052
|
+
className: className,
|
|
43053
|
+
style: style,
|
|
43054
|
+
children: t1
|
|
43055
|
+
});
|
|
43056
|
+
$[2] = className;
|
|
43057
|
+
$[3] = ref;
|
|
43058
|
+
$[4] = style;
|
|
43059
|
+
$[5] = t1;
|
|
43060
|
+
$[6] = t2;
|
|
43061
|
+
} else {
|
|
43062
|
+
t2 = $[6];
|
|
43063
|
+
}
|
|
43064
|
+
return t2;
|
|
43065
|
+
});
|
|
43066
|
+
// src/components/messageGroups/MessageGroup/index.tsx
|
|
43067
|
+
import { jsx as _jsx50, jsxs as _jsxs15, Fragment as _Fragment2 } from "react/jsx-runtime";
|
|
43068
|
+
var Content5 = function(t0) {
|
|
43069
|
+
var $ = _c48(12);
|
|
43070
|
+
var messageGroup = t0.messageGroup;
|
|
43071
|
+
var assistantNameContext = useContext9(AssistantNameContext);
|
|
43072
|
+
var t1;
|
|
43073
|
+
if ($[0] !== messageGroup.role) {
|
|
43074
|
+
t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx50(UserAvatar, {}) : /* @__PURE__ */ _jsx50(AssistantAvatar, {});
|
|
43075
|
+
$[0] = messageGroup.role;
|
|
43076
|
+
$[1] = t1;
|
|
43077
|
+
} else {
|
|
43078
|
+
t1 = $[1];
|
|
43079
|
+
}
|
|
43080
|
+
var t2 = messageGroup.role === "user" ? "You" : assistantNameContext;
|
|
43081
|
+
var t3;
|
|
43082
|
+
if ($[2] !== t2) {
|
|
43083
|
+
t3 = /* @__PURE__ */ _jsx50(Name, {
|
|
43084
|
+
children: t2
|
|
43085
|
+
});
|
|
43086
|
+
$[2] = t2;
|
|
43087
|
+
$[3] = t3;
|
|
43088
|
+
} else {
|
|
43089
|
+
t3 = $[3];
|
|
43090
|
+
}
|
|
43091
|
+
var t4;
|
|
43092
|
+
if ($[4] !== messageGroup) {
|
|
43093
|
+
t4 = /* @__PURE__ */ _jsx50(Messages, {
|
|
43094
|
+
messageGroup: messageGroup
|
|
43095
|
+
});
|
|
43096
|
+
$[4] = messageGroup;
|
|
43097
|
+
$[5] = t4;
|
|
43098
|
+
} else {
|
|
43099
|
+
t4 = $[5];
|
|
43100
|
+
}
|
|
43101
|
+
var t5;
|
|
43102
|
+
if ($[6] !== t3 || $[7] !== t4) {
|
|
43103
|
+
t5 = /* @__PURE__ */ _jsxs15(Box9, {
|
|
43104
|
+
flexGrow: "1",
|
|
43105
|
+
children: [
|
|
43106
|
+
t3,
|
|
43107
|
+
t4
|
|
43108
|
+
]
|
|
43109
|
+
});
|
|
43110
|
+
$[6] = t3;
|
|
43111
|
+
$[7] = t4;
|
|
43112
|
+
$[8] = t5;
|
|
43113
|
+
} else {
|
|
43114
|
+
t5 = $[8];
|
|
43115
|
+
}
|
|
43116
|
+
var t6;
|
|
43117
|
+
if ($[9] !== t1 || $[10] !== t5) {
|
|
43118
|
+
t6 = /* @__PURE__ */ _jsxs15(_Fragment2, {
|
|
43119
|
+
children: [
|
|
43120
|
+
t1,
|
|
43121
|
+
t5
|
|
43122
|
+
]
|
|
43123
|
+
});
|
|
43124
|
+
$[9] = t1;
|
|
43125
|
+
$[10] = t5;
|
|
43126
|
+
$[11] = t6;
|
|
43127
|
+
} else {
|
|
43128
|
+
t6 = $[11];
|
|
43129
|
+
}
|
|
43130
|
+
return t6;
|
|
43131
|
+
};
|
|
43132
|
+
var MessageGroup = function(t0) {
|
|
43133
|
+
var $ = _c48(6);
|
|
43134
|
+
var messageGroup = t0.messageGroup, style = t0.style, className = t0.className;
|
|
43135
|
+
var t1;
|
|
43136
|
+
if ($[0] !== messageGroup) {
|
|
43137
|
+
t1 = /* @__PURE__ */ _jsx50(Content5, {
|
|
43138
|
+
messageGroup: messageGroup
|
|
43139
|
+
});
|
|
43140
|
+
$[0] = messageGroup;
|
|
43141
|
+
$[1] = t1;
|
|
43142
|
+
} else {
|
|
43143
|
+
t1 = $[1];
|
|
43144
|
+
}
|
|
43145
|
+
var t2;
|
|
43146
|
+
if ($[2] !== className || $[3] !== style || $[4] !== t1) {
|
|
43147
|
+
t2 = /* @__PURE__ */ _jsx50(Root2, {
|
|
43148
|
+
className: className,
|
|
43149
|
+
style: style,
|
|
43150
|
+
children: t1
|
|
43151
|
+
});
|
|
43152
|
+
$[2] = className;
|
|
43153
|
+
$[3] = style;
|
|
43154
|
+
$[4] = t1;
|
|
43155
|
+
$[5] = t2;
|
|
43156
|
+
} else {
|
|
43157
|
+
t2 = $[5];
|
|
43158
|
+
}
|
|
43159
|
+
return t2;
|
|
43160
|
+
};
|
|
43161
|
+
MessageGroup.Root = Root2;
|
|
43162
|
+
MessageGroup.Name = Name;
|
|
43163
|
+
MessageGroup.AssistantAvatar = AssistantAvatar;
|
|
43164
|
+
MessageGroup.UserAvatar = UserAvatar;
|
|
43165
|
+
MessageGroup.Messages = Messages;
|
|
43166
|
+
MessageGroup.Content = Content5;
|
|
43167
|
+
// src/contexts/components/ComponentsContext/index.tsx
|
|
43168
|
+
var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
43169
|
+
components: {
|
|
43170
|
+
RunStep: RunStep,
|
|
43171
|
+
Function: Function2,
|
|
43172
|
+
StartingToolCalls: StartingToolCalls2,
|
|
43173
|
+
TextContent: TextContent,
|
|
43174
|
+
ImageFileContent: ImageFileContent,
|
|
43175
|
+
MessageGroup: MessageGroup
|
|
43176
|
+
}
|
|
43177
|
+
});
|
|
43178
|
+
// src/components/runSteps/RunSteps/index.tsx
|
|
43179
|
+
import { jsx as _jsx51 } from "react/jsx-runtime";
|
|
43180
|
+
var RunSteps = function(t0) {
|
|
43181
|
+
var $ = _c49(7);
|
|
43182
|
+
var runSteps = t0.runSteps;
|
|
43183
|
+
var componentsContext = useContext10(ComponentsContext);
|
|
43184
|
+
var Component2 = componentsContext.components.RunStep;
|
|
43185
|
+
var t1;
|
|
43186
|
+
if ($[0] !== Component2 || $[1] !== runSteps) {
|
|
43187
|
+
var _t;
|
|
43188
|
+
if ($[3] !== Component2) {
|
|
43189
|
+
_t = function(runStep) {
|
|
43190
|
+
return /* @__PURE__ */ _jsx51(Component2, {
|
|
43191
|
+
runStep: runStep
|
|
43192
|
+
}, runStep.id);
|
|
43193
|
+
};
|
|
43194
|
+
$[3] = Component2;
|
|
43195
|
+
$[4] = _t;
|
|
43196
|
+
} else {
|
|
43197
|
+
_t = $[4];
|
|
43198
|
+
}
|
|
43199
|
+
t1 = runSteps.map(_t);
|
|
43200
|
+
$[0] = Component2;
|
|
43201
|
+
$[1] = runSteps;
|
|
43202
|
+
$[2] = t1;
|
|
43203
|
+
} else {
|
|
43204
|
+
t1 = $[2];
|
|
43205
|
+
}
|
|
43206
|
+
var t2;
|
|
43207
|
+
if ($[5] !== t1) {
|
|
43208
|
+
t2 = /* @__PURE__ */ _jsx51(Flex14, {
|
|
43209
|
+
direction: "column-reverse",
|
|
43210
|
+
children: t1
|
|
43211
|
+
});
|
|
43212
|
+
$[5] = t1;
|
|
43213
|
+
$[6] = t2;
|
|
43214
|
+
} else {
|
|
43215
|
+
t2 = $[6];
|
|
43216
|
+
}
|
|
43217
|
+
return t2;
|
|
43218
|
+
};
|
|
43219
|
+
// src/contexts/messages/MessageContext/index.ts
|
|
43220
|
+
import { createContext as createContext10 } from "react";
|
|
43221
|
+
var MessageContext = /* @__PURE__ */ createContext10({
|
|
43222
|
+
message: null
|
|
43223
|
+
});
|
|
43224
|
+
// src/components/threads/Thread/Message/Provider.tsx
|
|
43225
|
+
var Provider = MessageContext.Provider;
|
|
43226
|
+
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
43227
|
+
import { c as _c50 } from "react-compiler-runtime";
|
|
43228
|
+
import { Flex as Flex15, Badge as Badge2 } from "@radix-ui/themes";
|
|
43229
|
+
import { FileIcon } from "@radix-ui/react-icons";
|
|
43230
|
+
import { jsx as _jsx52, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
43231
|
+
var Attachments = function(t0) {
|
|
43232
|
+
var _message$attachments;
|
|
43233
|
+
var $ = _c50(4);
|
|
43234
|
+
var message = t0.message;
|
|
43235
|
+
if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
|
|
43236
|
+
return null;
|
|
43237
|
+
}
|
|
43238
|
+
var t1;
|
|
43239
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43240
|
+
t1 = /* @__PURE__ */ _jsx52(FileIcon, {});
|
|
43241
|
+
$[0] = t1;
|
|
43242
|
+
} else {
|
|
43243
|
+
t1 = $[0];
|
|
43244
|
+
}
|
|
43245
|
+
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
43246
|
+
var t3;
|
|
43247
|
+
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
43248
|
+
t3 = /* @__PURE__ */ _jsx52(Flex15, {
|
|
43249
|
+
align: "start",
|
|
43250
|
+
pb: "1",
|
|
43251
|
+
children: /* @__PURE__ */ _jsxs16(Badge2, {
|
|
43252
|
+
color: "gray",
|
|
43253
|
+
variant: "surface",
|
|
43254
|
+
children: [
|
|
43255
|
+
t1,
|
|
43256
|
+
message.attachments.length,
|
|
43257
|
+
" file",
|
|
43258
|
+
t2
|
|
43259
|
+
]
|
|
43260
|
+
})
|
|
43261
|
+
});
|
|
43262
|
+
$[1] = message.attachments.length;
|
|
43263
|
+
$[2] = t2;
|
|
43264
|
+
$[3] = t3;
|
|
43265
|
+
} else {
|
|
43266
|
+
t3 = $[3];
|
|
43267
|
+
}
|
|
43268
|
+
return t3;
|
|
43269
|
+
};
|
|
43270
|
+
// src/components/messages/MessageContent/index.tsx
|
|
43271
|
+
import { c as _c52 } from "react-compiler-runtime";
|
|
43272
|
+
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
43273
|
+
import { c as _c51 } from "react-compiler-runtime";
|
|
43274
|
+
import { jsx as _jsx53 } from "react/jsx-runtime";
|
|
43275
|
+
var TextContent2 = function(t0) {
|
|
43276
|
+
var $ = _c51(3);
|
|
43277
|
+
var content2 = t0.content;
|
|
43278
|
+
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43279
|
+
var TextContent3 = t1.TextContent;
|
|
43280
|
+
var t2;
|
|
43281
|
+
if ($[0] !== TextContent3 || $[1] !== content2) {
|
|
43282
|
+
t2 = /* @__PURE__ */ _jsx53(TextContent3, {
|
|
43283
|
+
content: content2
|
|
43284
|
+
});
|
|
43285
|
+
$[0] = TextContent3;
|
|
43286
|
+
$[1] = content2;
|
|
43287
|
+
$[2] = t2;
|
|
43288
|
+
} else {
|
|
43289
|
+
t2 = $[2];
|
|
43290
|
+
}
|
|
43291
|
+
return t2;
|
|
43292
|
+
};
|
|
43293
|
+
var ImageFileContent2 = function(t0) {
|
|
43294
|
+
var $ = _c51(3);
|
|
43295
|
+
var content2 = t0.content;
|
|
43296
|
+
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43297
|
+
var ImageFileContent3 = t1.ImageFileContent;
|
|
43298
|
+
var t2;
|
|
43299
|
+
if ($[0] !== ImageFileContent3 || $[1] !== content2) {
|
|
43300
|
+
t2 = /* @__PURE__ */ _jsx53(ImageFileContent3, {
|
|
43301
|
+
content: content2
|
|
43302
|
+
});
|
|
43303
|
+
$[0] = ImageFileContent3;
|
|
43304
|
+
$[1] = content2;
|
|
43305
|
+
$[2] = t2;
|
|
43306
|
+
} else {
|
|
43307
|
+
t2 = $[2];
|
|
43308
|
+
}
|
|
43309
|
+
return t2;
|
|
43310
|
+
};
|
|
43311
|
+
var ContentPart = function(t0) {
|
|
43312
|
+
var $ = _c51(4);
|
|
43313
|
+
var content2 = t0.content;
|
|
43314
|
+
if (content2.type === "text") {
|
|
43315
|
+
var t1;
|
|
43316
|
+
if ($[0] !== content2) {
|
|
43317
|
+
t1 = /* @__PURE__ */ _jsx53(TextContent2, {
|
|
43318
|
+
content: content2
|
|
43319
|
+
});
|
|
43320
|
+
$[0] = content2;
|
|
43321
|
+
$[1] = t1;
|
|
43322
|
+
} else {
|
|
43323
|
+
t1 = $[1];
|
|
43324
|
+
}
|
|
43325
|
+
return t1;
|
|
43326
|
+
}
|
|
43327
|
+
if (content2.type === "image_file") {
|
|
43328
|
+
var _t;
|
|
43329
|
+
if ($[2] !== content2) {
|
|
43330
|
+
_t = /* @__PURE__ */ _jsx53(ImageFileContent2, {
|
|
43331
|
+
content: content2
|
|
43332
|
+
});
|
|
43333
|
+
$[2] = content2;
|
|
43334
|
+
$[3] = _t;
|
|
43335
|
+
} else {
|
|
43336
|
+
_t = $[3];
|
|
43337
|
+
}
|
|
43338
|
+
return _t;
|
|
43339
|
+
}
|
|
43340
|
+
return null;
|
|
43341
|
+
};
|
|
43342
|
+
// src/components/messages/MessageContent/index.tsx
|
|
43343
|
+
import { Fragment as _Fragment3, jsx as _jsx54 } from "react/jsx-runtime";
|
|
43344
|
+
var MessageContent = function(t0) {
|
|
43345
|
+
var $ = _c52(4);
|
|
43346
|
+
var message = t0.message;
|
|
43011
43347
|
var t1;
|
|
43012
43348
|
if ($[0] !== message.content) {
|
|
43013
|
-
t1 = message.content.map(
|
|
43349
|
+
t1 = message.content.map(_temp2);
|
|
43014
43350
|
$[0] = message.content;
|
|
43015
43351
|
$[1] = t1;
|
|
43016
43352
|
} else {
|
|
@@ -43018,7 +43354,7 @@ var MessageContent = function(t0) {
|
|
|
43018
43354
|
}
|
|
43019
43355
|
var t2;
|
|
43020
43356
|
if ($[2] !== t1) {
|
|
43021
|
-
t2 = /* @__PURE__ */
|
|
43357
|
+
t2 = /* @__PURE__ */ _jsx54(_Fragment3, {
|
|
43022
43358
|
children: t1
|
|
43023
43359
|
});
|
|
43024
43360
|
$[2] = t1;
|
|
@@ -43028,15 +43364,15 @@ var MessageContent = function(t0) {
|
|
|
43028
43364
|
}
|
|
43029
43365
|
return t2;
|
|
43030
43366
|
};
|
|
43031
|
-
function
|
|
43032
|
-
return /* @__PURE__ */
|
|
43367
|
+
function _temp2(content2, index) {
|
|
43368
|
+
return /* @__PURE__ */ _jsx54(ContentPart, {
|
|
43033
43369
|
content: content2
|
|
43034
43370
|
}, index);
|
|
43035
43371
|
}
|
|
43036
43372
|
// src/components/threads/Thread/Message/index.tsx
|
|
43037
|
-
import { jsx as
|
|
43373
|
+
import { jsx as _jsx55, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43038
43374
|
var Message = function(t0) {
|
|
43039
|
-
var $ =
|
|
43375
|
+
var $ = _c53(37);
|
|
43040
43376
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43041
43377
|
var t1;
|
|
43042
43378
|
bb0: {
|
|
@@ -43070,7 +43406,7 @@ var Message = function(t0) {
|
|
|
43070
43406
|
var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
|
|
43071
43407
|
var _t3;
|
|
43072
43408
|
if ($[3] !== message.runSteps || $[4] !== messageCreationRunStepIndex) {
|
|
43073
|
-
var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(
|
|
43409
|
+
var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp3);
|
|
43074
43410
|
if (nextRunStepIndex === -1) {
|
|
43075
43411
|
nextRunStepIndex = 0;
|
|
43076
43412
|
}
|
|
@@ -43144,7 +43480,7 @@ var Message = function(t0) {
|
|
|
43144
43480
|
}
|
|
43145
43481
|
var t3;
|
|
43146
43482
|
if ($[21] !== olderRunSteps_0) {
|
|
43147
|
-
t3 = /* @__PURE__ */
|
|
43483
|
+
t3 = /* @__PURE__ */ _jsx55(RunSteps, {
|
|
43148
43484
|
runSteps: olderRunSteps_0
|
|
43149
43485
|
});
|
|
43150
43486
|
$[21] = olderRunSteps_0;
|
|
@@ -43163,13 +43499,13 @@ var Message = function(t0) {
|
|
|
43163
43499
|
}
|
|
43164
43500
|
var t5;
|
|
43165
43501
|
if ($[24] !== message) {
|
|
43166
|
-
t5 = /* @__PURE__ */
|
|
43502
|
+
t5 = /* @__PURE__ */ _jsxs17(Box10, {
|
|
43167
43503
|
style: t4,
|
|
43168
43504
|
children: [
|
|
43169
|
-
/* @__PURE__ */
|
|
43505
|
+
/* @__PURE__ */ _jsx55(Attachments, {
|
|
43170
43506
|
message: message
|
|
43171
43507
|
}),
|
|
43172
|
-
/* @__PURE__ */
|
|
43508
|
+
/* @__PURE__ */ _jsx55(MessageContent, {
|
|
43173
43509
|
message: message
|
|
43174
43510
|
})
|
|
43175
43511
|
]
|
|
@@ -43181,7 +43517,7 @@ var Message = function(t0) {
|
|
|
43181
43517
|
}
|
|
43182
43518
|
var t6;
|
|
43183
43519
|
if ($[26] !== laterRunSteps_0) {
|
|
43184
|
-
t6 = /* @__PURE__ */
|
|
43520
|
+
t6 = /* @__PURE__ */ _jsx55(RunSteps, {
|
|
43185
43521
|
runSteps: laterRunSteps_0
|
|
43186
43522
|
});
|
|
43187
43523
|
$[26] = laterRunSteps_0;
|
|
@@ -43191,7 +43527,7 @@ var Message = function(t0) {
|
|
|
43191
43527
|
}
|
|
43192
43528
|
var t7;
|
|
43193
43529
|
if ($[28] !== className || $[29] !== style || $[30] !== t3 || $[31] !== t5 || $[32] !== t6) {
|
|
43194
|
-
t7 = /* @__PURE__ */
|
|
43530
|
+
t7 = /* @__PURE__ */ _jsxs17(Box10, {
|
|
43195
43531
|
className: className,
|
|
43196
43532
|
style: style,
|
|
43197
43533
|
children: [
|
|
@@ -43211,7 +43547,7 @@ var Message = function(t0) {
|
|
|
43211
43547
|
}
|
|
43212
43548
|
var t8;
|
|
43213
43549
|
if ($[34] !== t2 || $[35] !== t7) {
|
|
43214
|
-
t8 = /* @__PURE__ */
|
|
43550
|
+
t8 = /* @__PURE__ */ _jsx55(Provider, {
|
|
43215
43551
|
value: t2,
|
|
43216
43552
|
children: t7
|
|
43217
43553
|
});
|
|
@@ -43223,7 +43559,7 @@ var Message = function(t0) {
|
|
|
43223
43559
|
}
|
|
43224
43560
|
return t8;
|
|
43225
43561
|
};
|
|
43226
|
-
function
|
|
43562
|
+
function _temp3(runStep_0) {
|
|
43227
43563
|
return runStep_0.step_details.type === "message_creation";
|
|
43228
43564
|
}
|
|
43229
43565
|
function _temp22(runStep_1) {
|
|
@@ -43233,7 +43569,7 @@ function _temp22(runStep_1) {
|
|
|
43233
43569
|
import { c as _c56 } from "react-compiler-runtime";
|
|
43234
43570
|
import { useEffect as useEffect3 } from "react";
|
|
43235
43571
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43236
|
-
import { c as
|
|
43572
|
+
import { c as _c54 } from "react-compiler-runtime";
|
|
43237
43573
|
import { useMemo as useMemo11 } from "react";
|
|
43238
43574
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43239
43575
|
import _6 from "lodash";
|
|
@@ -43338,107 +43674,45 @@ var messageGroups = function(_ref) {
|
|
|
43338
43674
|
};
|
|
43339
43675
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43340
43676
|
var useMessageGroups = function(t0) {
|
|
43341
|
-
var $ =
|
|
43677
|
+
var $ = _c54(4);
|
|
43342
43678
|
var messages2 = t0.messages;
|
|
43343
43679
|
var t1;
|
|
43344
43680
|
var t2;
|
|
43345
43681
|
if ($[0] !== messages2) {
|
|
43346
|
-
t2 = messageGroups({
|
|
43347
|
-
messages: messages2
|
|
43348
|
-
});
|
|
43349
|
-
$[0] = messages2;
|
|
43350
|
-
$[1] = t2;
|
|
43351
|
-
} else {
|
|
43352
|
-
t2 = $[1];
|
|
43353
|
-
}
|
|
43354
|
-
var t3;
|
|
43355
|
-
if ($[2] !== t2) {
|
|
43356
|
-
t3 = {
|
|
43357
|
-
messageGroups: t2
|
|
43358
|
-
};
|
|
43359
|
-
$[2] = t2;
|
|
43360
|
-
$[3] = t3;
|
|
43361
|
-
} else {
|
|
43362
|
-
t3 = $[3];
|
|
43363
|
-
}
|
|
43364
|
-
t1 = t3;
|
|
43365
|
-
return t1;
|
|
43366
|
-
};
|
|
43367
|
-
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43368
|
-
import { c as _c51 } from "react-compiler-runtime";
|
|
43369
|
-
import { forwardRef as forwardRef3 } from "react";
|
|
43370
|
-
import { Flex as Flex13, Avatar, Box as Box10, Skeleton } from "@radix-ui/themes";
|
|
43371
|
-
// src/components/messageGroups/MessageGroupBase/index.tsx
|
|
43372
|
-
import { c as _c49 } from "react-compiler-runtime";
|
|
43373
|
-
import { forwardRef as forwardRef2 } from "react";
|
|
43374
|
-
import { Flex as Flex11, Container } from "@radix-ui/themes";
|
|
43375
|
-
import { jsx as _jsx48 } from "react/jsx-runtime";
|
|
43376
|
-
var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
|
|
43377
|
-
var $ = _c49(5);
|
|
43378
|
-
var children = t0.children;
|
|
43379
|
-
var t1;
|
|
43380
|
-
if ($[0] !== children) {
|
|
43381
|
-
t1 = /* @__PURE__ */ _jsx48(Flex11, {
|
|
43382
|
-
flexShrink: "0",
|
|
43383
|
-
gap: "3",
|
|
43384
|
-
children: children
|
|
43385
|
-
});
|
|
43386
|
-
$[0] = children;
|
|
43387
|
-
$[1] = t1;
|
|
43388
|
-
} else {
|
|
43389
|
-
t1 = $[1];
|
|
43390
|
-
}
|
|
43391
|
-
var t2;
|
|
43392
|
-
if ($[2] !== ref || $[3] !== t1) {
|
|
43393
|
-
t2 = /* @__PURE__ */ _jsx48(Container, {
|
|
43394
|
-
ref: ref,
|
|
43395
|
-
size: "2",
|
|
43396
|
-
flexGrow: "0",
|
|
43397
|
-
children: t1
|
|
43682
|
+
t2 = messageGroups({
|
|
43683
|
+
messages: messages2
|
|
43398
43684
|
});
|
|
43399
|
-
$[
|
|
43400
|
-
$[
|
|
43401
|
-
$[4] = t2;
|
|
43685
|
+
$[0] = messages2;
|
|
43686
|
+
$[1] = t2;
|
|
43402
43687
|
} else {
|
|
43403
|
-
t2 = $[
|
|
43688
|
+
t2 = $[1];
|
|
43404
43689
|
}
|
|
43405
|
-
|
|
43406
|
-
|
|
43407
|
-
|
|
43408
|
-
|
|
43409
|
-
|
|
43410
|
-
|
|
43411
|
-
|
|
43412
|
-
var $ = _c50(2);
|
|
43413
|
-
var children = t0.children;
|
|
43414
|
-
var t1;
|
|
43415
|
-
if ($[0] !== children) {
|
|
43416
|
-
t1 = /* @__PURE__ */ _jsx49(Flex12, {
|
|
43417
|
-
align: "center",
|
|
43418
|
-
height: "var(--space-5)",
|
|
43419
|
-
children: /* @__PURE__ */ _jsx49(Text6, {
|
|
43420
|
-
size: "2",
|
|
43421
|
-
weight: "bold",
|
|
43422
|
-
children: children
|
|
43423
|
-
})
|
|
43424
|
-
});
|
|
43425
|
-
$[0] = children;
|
|
43426
|
-
$[1] = t1;
|
|
43690
|
+
var t3;
|
|
43691
|
+
if ($[2] !== t2) {
|
|
43692
|
+
t3 = {
|
|
43693
|
+
messageGroups: t2
|
|
43694
|
+
};
|
|
43695
|
+
$[2] = t2;
|
|
43696
|
+
$[3] = t3;
|
|
43427
43697
|
} else {
|
|
43428
|
-
|
|
43698
|
+
t3 = $[3];
|
|
43429
43699
|
}
|
|
43700
|
+
t1 = t3;
|
|
43430
43701
|
return t1;
|
|
43431
43702
|
};
|
|
43432
43703
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43433
|
-
import {
|
|
43704
|
+
import { c as _c55 } from "react-compiler-runtime";
|
|
43705
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
43706
|
+
import { Flex as Flex16, Avatar as Avatar3, Box as Box11, Skeleton } from "@radix-ui/themes";
|
|
43707
|
+
import { jsx as _jsx56, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43434
43708
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
43435
|
-
var $ =
|
|
43709
|
+
var $ = _c55(7);
|
|
43436
43710
|
var t0;
|
|
43437
43711
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43438
|
-
t0 = /* @__PURE__ */
|
|
43712
|
+
t0 = /* @__PURE__ */ _jsx56(Skeleton, {
|
|
43439
43713
|
loading: true,
|
|
43440
|
-
children: /* @__PURE__ */
|
|
43441
|
-
fallback: /* @__PURE__ */
|
|
43714
|
+
children: /* @__PURE__ */ _jsx56(Avatar3, {
|
|
43715
|
+
fallback: /* @__PURE__ */ _jsx56(Flex16, {}),
|
|
43442
43716
|
size: "1"
|
|
43443
43717
|
})
|
|
43444
43718
|
});
|
|
@@ -43448,8 +43722,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43448
43722
|
}
|
|
43449
43723
|
var t1;
|
|
43450
43724
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43451
|
-
t1 = /* @__PURE__ */
|
|
43452
|
-
children: /* @__PURE__ */
|
|
43725
|
+
t1 = /* @__PURE__ */ _jsx56(MessageGroup.Name, {
|
|
43726
|
+
children: /* @__PURE__ */ _jsx56(Skeleton, {
|
|
43453
43727
|
loading: true,
|
|
43454
43728
|
style: {
|
|
43455
43729
|
width: "128px"
|
|
@@ -43462,7 +43736,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43462
43736
|
}
|
|
43463
43737
|
var t2;
|
|
43464
43738
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43465
|
-
t2 = /* @__PURE__ */
|
|
43739
|
+
t2 = /* @__PURE__ */ _jsx56(Skeleton, {
|
|
43466
43740
|
loading: true,
|
|
43467
43741
|
style: {
|
|
43468
43742
|
width: "256px"
|
|
@@ -43474,7 +43748,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43474
43748
|
}
|
|
43475
43749
|
var t3;
|
|
43476
43750
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43477
|
-
t3 = /* @__PURE__ */
|
|
43751
|
+
t3 = /* @__PURE__ */ _jsx56(Skeleton, {
|
|
43478
43752
|
loading: true,
|
|
43479
43753
|
style: {
|
|
43480
43754
|
width: "256px",
|
|
@@ -43487,13 +43761,13 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43487
43761
|
}
|
|
43488
43762
|
var t4;
|
|
43489
43763
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43490
|
-
t4 = /* @__PURE__ */
|
|
43764
|
+
t4 = /* @__PURE__ */ _jsxs18(Box11, {
|
|
43491
43765
|
pb: "3",
|
|
43492
43766
|
children: [
|
|
43493
43767
|
t1,
|
|
43494
43768
|
t2,
|
|
43495
43769
|
t3,
|
|
43496
|
-
/* @__PURE__ */
|
|
43770
|
+
/* @__PURE__ */ _jsx56(Skeleton, {
|
|
43497
43771
|
loading: true,
|
|
43498
43772
|
style: {
|
|
43499
43773
|
width: "256px",
|
|
@@ -43508,7 +43782,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43508
43782
|
}
|
|
43509
43783
|
var t5;
|
|
43510
43784
|
if ($[5] !== ref) {
|
|
43511
|
-
t5 = /* @__PURE__ */
|
|
43785
|
+
t5 = /* @__PURE__ */ _jsxs18(MessageGroup.Root, {
|
|
43512
43786
|
ref: ref,
|
|
43513
43787
|
children: [
|
|
43514
43788
|
t0,
|
|
@@ -43522,204 +43796,10 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43522
43796
|
}
|
|
43523
43797
|
return t5;
|
|
43524
43798
|
});
|
|
43525
|
-
// src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
|
|
43526
|
-
import { c as _c55 } from "react-compiler-runtime";
|
|
43527
|
-
import { useContext as useContext10 } from "react";
|
|
43528
|
-
import { Box as Box11 } from "@radix-ui/themes";
|
|
43529
|
-
// src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
|
|
43530
|
-
import { c as _c52 } from "react-compiler-runtime";
|
|
43531
|
-
import { useContext as useContext8 } from "react";
|
|
43532
|
-
import { Flex as Flex14 } from "@radix-ui/themes";
|
|
43533
|
-
// src/contexts/assistants/AssistantAvatarContext/index.tsx
|
|
43534
|
-
import { createContext as createContext8 } from "react";
|
|
43535
|
-
import { Avatar as Avatar2 } from "@radix-ui/themes";
|
|
43536
|
-
import { LightningBoltIcon } from "@radix-ui/react-icons";
|
|
43537
|
-
import { jsx as _jsx51 } from "react/jsx-runtime";
|
|
43538
|
-
var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx51(Avatar2, {
|
|
43539
|
-
fallback: /* @__PURE__ */ _jsx51(LightningBoltIcon, {}),
|
|
43540
|
-
size: "1"
|
|
43541
|
-
}));
|
|
43542
|
-
// src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
|
|
43543
|
-
import { jsx as _jsx52 } from "react/jsx-runtime";
|
|
43544
|
-
var AssistantAvatar = function() {
|
|
43545
|
-
var $ = _c52(3);
|
|
43546
|
-
var AssistantAvatarContextValue = useContext8(AssistantAvatarContext);
|
|
43547
|
-
var t0;
|
|
43548
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43549
|
-
t0 = {
|
|
43550
|
-
borderRadius: "var(--radius-3)",
|
|
43551
|
-
overflow: "hidden"
|
|
43552
|
-
};
|
|
43553
|
-
$[0] = t0;
|
|
43554
|
-
} else {
|
|
43555
|
-
t0 = $[0];
|
|
43556
|
-
}
|
|
43557
|
-
var t1;
|
|
43558
|
-
if ($[1] !== AssistantAvatarContextValue) {
|
|
43559
|
-
t1 = /* @__PURE__ */ _jsx52(Flex14, {
|
|
43560
|
-
flexShrink: "0",
|
|
43561
|
-
height: "24px",
|
|
43562
|
-
width: "24px",
|
|
43563
|
-
style: t0,
|
|
43564
|
-
children: AssistantAvatarContextValue
|
|
43565
|
-
});
|
|
43566
|
-
$[1] = AssistantAvatarContextValue;
|
|
43567
|
-
$[2] = t1;
|
|
43568
|
-
} else {
|
|
43569
|
-
t1 = $[2];
|
|
43570
|
-
}
|
|
43571
|
-
return t1;
|
|
43572
|
-
};
|
|
43573
|
-
// src/contexts/assistants/AssistantNameContext/index.tsx
|
|
43574
|
-
import { createContext as createContext9 } from "react";
|
|
43575
|
-
var AssistantNameContext = /* @__PURE__ */ createContext9("Assistant");
|
|
43576
|
-
// src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
|
|
43577
|
-
import { c as _c53 } from "react-compiler-runtime";
|
|
43578
|
-
import { useContext as useContext9 } from "react";
|
|
43579
|
-
import { Flex as Flex15 } from "@radix-ui/themes";
|
|
43580
|
-
// src/contexts/users/UserAvatarContext/index.tsx
|
|
43581
|
-
import { createContext as createContext10 } from "react";
|
|
43582
|
-
import { Avatar as Avatar3 } from "@radix-ui/themes";
|
|
43583
|
-
import { PersonIcon } from "@radix-ui/react-icons";
|
|
43584
|
-
import { jsx as _jsx53 } from "react/jsx-runtime";
|
|
43585
|
-
var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx53(Avatar3, {
|
|
43586
|
-
fallback: /* @__PURE__ */ _jsx53(PersonIcon, {}),
|
|
43587
|
-
size: "1"
|
|
43588
|
-
}));
|
|
43589
|
-
// src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
|
|
43590
|
-
import { jsx as _jsx54 } from "react/jsx-runtime";
|
|
43591
|
-
var UserAvatar = function() {
|
|
43592
|
-
var $ = _c53(3);
|
|
43593
|
-
var UserAvatarContextValue = useContext9(UserAvatarContext);
|
|
43594
|
-
var t0;
|
|
43595
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43596
|
-
t0 = {
|
|
43597
|
-
borderRadius: "var(--radius-3)",
|
|
43598
|
-
overflow: "hidden"
|
|
43599
|
-
};
|
|
43600
|
-
$[0] = t0;
|
|
43601
|
-
} else {
|
|
43602
|
-
t0 = $[0];
|
|
43603
|
-
}
|
|
43604
|
-
var t1;
|
|
43605
|
-
if ($[1] !== UserAvatarContextValue) {
|
|
43606
|
-
t1 = /* @__PURE__ */ _jsx54(Flex15, {
|
|
43607
|
-
flexShrink: "0",
|
|
43608
|
-
height: "24px",
|
|
43609
|
-
width: "24px",
|
|
43610
|
-
style: t0,
|
|
43611
|
-
children: UserAvatarContextValue
|
|
43612
|
-
});
|
|
43613
|
-
$[1] = UserAvatarContextValue;
|
|
43614
|
-
$[2] = t1;
|
|
43615
|
-
} else {
|
|
43616
|
-
t1 = $[2];
|
|
43617
|
-
}
|
|
43618
|
-
return t1;
|
|
43619
|
-
};
|
|
43620
|
-
// src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
|
|
43621
|
-
import { c as _c54 } from "react-compiler-runtime";
|
|
43622
|
-
import { Flex as Flex16 } from "@radix-ui/themes";
|
|
43623
|
-
import { jsx as _jsx55 } from "react/jsx-runtime";
|
|
43624
|
-
var Content5 = function(t0) {
|
|
43625
|
-
var $ = _c54(4);
|
|
43626
|
-
var messageGroup = t0.messageGroup;
|
|
43627
|
-
var t1;
|
|
43628
|
-
if ($[0] !== messageGroup.messages) {
|
|
43629
|
-
t1 = messageGroup.messages.map(_temp3);
|
|
43630
|
-
$[0] = messageGroup.messages;
|
|
43631
|
-
$[1] = t1;
|
|
43632
|
-
} else {
|
|
43633
|
-
t1 = $[1];
|
|
43634
|
-
}
|
|
43635
|
-
var t2;
|
|
43636
|
-
if ($[2] !== t1) {
|
|
43637
|
-
t2 = /* @__PURE__ */ _jsx55(Flex16, {
|
|
43638
|
-
direction: "column-reverse",
|
|
43639
|
-
children: t1
|
|
43640
|
-
});
|
|
43641
|
-
$[2] = t1;
|
|
43642
|
-
$[3] = t2;
|
|
43643
|
-
} else {
|
|
43644
|
-
t2 = $[3];
|
|
43645
|
-
}
|
|
43646
|
-
return t2;
|
|
43647
|
-
};
|
|
43648
|
-
function _temp3(message) {
|
|
43649
|
-
return /* @__PURE__ */ _jsx55(Message, {
|
|
43650
|
-
message: message
|
|
43651
|
-
}, message.id);
|
|
43652
|
-
}
|
|
43653
|
-
// src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
|
|
43654
|
-
import { jsx as _jsx56, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43655
|
-
var MessageGroup = function(t0) {
|
|
43656
|
-
var $ = _c55(12);
|
|
43657
|
-
var messageGroup = t0.messageGroup;
|
|
43658
|
-
var assistantNameContext = useContext10(AssistantNameContext);
|
|
43659
|
-
var t1;
|
|
43660
|
-
if ($[0] !== messageGroup.role) {
|
|
43661
|
-
t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx56(UserAvatar, {}) : /* @__PURE__ */ _jsx56(AssistantAvatar, {});
|
|
43662
|
-
$[0] = messageGroup.role;
|
|
43663
|
-
$[1] = t1;
|
|
43664
|
-
} else {
|
|
43665
|
-
t1 = $[1];
|
|
43666
|
-
}
|
|
43667
|
-
var t2 = messageGroup.role === "user" ? "You" : assistantNameContext;
|
|
43668
|
-
var t3;
|
|
43669
|
-
if ($[2] !== t2) {
|
|
43670
|
-
t3 = /* @__PURE__ */ _jsx56(Name, {
|
|
43671
|
-
children: t2
|
|
43672
|
-
});
|
|
43673
|
-
$[2] = t2;
|
|
43674
|
-
$[3] = t3;
|
|
43675
|
-
} else {
|
|
43676
|
-
t3 = $[3];
|
|
43677
|
-
}
|
|
43678
|
-
var t4;
|
|
43679
|
-
if ($[4] !== messageGroup) {
|
|
43680
|
-
t4 = /* @__PURE__ */ _jsx56(Content5, {
|
|
43681
|
-
messageGroup: messageGroup
|
|
43682
|
-
});
|
|
43683
|
-
$[4] = messageGroup;
|
|
43684
|
-
$[5] = t4;
|
|
43685
|
-
} else {
|
|
43686
|
-
t4 = $[5];
|
|
43687
|
-
}
|
|
43688
|
-
var t5;
|
|
43689
|
-
if ($[6] !== t3 || $[7] !== t4) {
|
|
43690
|
-
t5 = /* @__PURE__ */ _jsxs18(Box11, {
|
|
43691
|
-
flexGrow: "1",
|
|
43692
|
-
children: [
|
|
43693
|
-
t3,
|
|
43694
|
-
t4
|
|
43695
|
-
]
|
|
43696
|
-
});
|
|
43697
|
-
$[6] = t3;
|
|
43698
|
-
$[7] = t4;
|
|
43699
|
-
$[8] = t5;
|
|
43700
|
-
} else {
|
|
43701
|
-
t5 = $[8];
|
|
43702
|
-
}
|
|
43703
|
-
var t6;
|
|
43704
|
-
if ($[9] !== t1 || $[10] !== t5) {
|
|
43705
|
-
t6 = /* @__PURE__ */ _jsxs18(MessageGroupBase, {
|
|
43706
|
-
children: [
|
|
43707
|
-
t1,
|
|
43708
|
-
t5
|
|
43709
|
-
]
|
|
43710
|
-
});
|
|
43711
|
-
$[9] = t1;
|
|
43712
|
-
$[10] = t5;
|
|
43713
|
-
$[11] = t6;
|
|
43714
|
-
} else {
|
|
43715
|
-
t6 = $[11];
|
|
43716
|
-
}
|
|
43717
|
-
return t6;
|
|
43718
|
-
};
|
|
43719
43799
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43720
|
-
import { jsx as _jsx57, Fragment as
|
|
43800
|
+
import { jsx as _jsx57, Fragment as _Fragment4 } from "react/jsx-runtime";
|
|
43721
43801
|
var Content6 = function() {
|
|
43722
|
-
var $ = _c56(
|
|
43802
|
+
var $ = _c56(14);
|
|
43723
43803
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
43724
43804
|
var addToast = useToasts().addToast;
|
|
43725
43805
|
var t0;
|
|
@@ -43733,10 +43813,12 @@ var Content6 = function() {
|
|
|
43733
43813
|
t0 = $[1];
|
|
43734
43814
|
}
|
|
43735
43815
|
var _useMessageGroups = useMessageGroups(t0), messageGroups2 = _useMessageGroups.messageGroups;
|
|
43736
|
-
var t1;
|
|
43816
|
+
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43817
|
+
var MessageGroup2 = t1.MessageGroup;
|
|
43737
43818
|
var t2;
|
|
43819
|
+
var t3;
|
|
43738
43820
|
if ($[2] !== addToast || $[3] !== isLoadingError) {
|
|
43739
|
-
|
|
43821
|
+
t2 = function() {
|
|
43740
43822
|
if (isLoadingError) {
|
|
43741
43823
|
addToast({
|
|
43742
43824
|
type: "error",
|
|
@@ -43744,19 +43826,19 @@ var Content6 = function() {
|
|
|
43744
43826
|
});
|
|
43745
43827
|
}
|
|
43746
43828
|
};
|
|
43747
|
-
|
|
43829
|
+
t3 = [
|
|
43748
43830
|
isLoadingError,
|
|
43749
43831
|
addToast
|
|
43750
43832
|
];
|
|
43751
43833
|
$[2] = addToast;
|
|
43752
43834
|
$[3] = isLoadingError;
|
|
43753
|
-
$[4] =
|
|
43754
|
-
$[5] =
|
|
43835
|
+
$[4] = t2;
|
|
43836
|
+
$[5] = t3;
|
|
43755
43837
|
} else {
|
|
43756
|
-
|
|
43757
|
-
|
|
43838
|
+
t2 = $[4];
|
|
43839
|
+
t3 = $[5];
|
|
43758
43840
|
}
|
|
43759
|
-
useEffect3(
|
|
43841
|
+
useEffect3(t2, t3);
|
|
43760
43842
|
if (isLoading || isLoadingError) {
|
|
43761
43843
|
var _t;
|
|
43762
43844
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -43767,31 +43849,39 @@ var Content6 = function() {
|
|
|
43767
43849
|
}
|
|
43768
43850
|
return _t;
|
|
43769
43851
|
}
|
|
43770
|
-
var
|
|
43771
|
-
if ($[7] !== messageGroups2) {
|
|
43772
|
-
|
|
43773
|
-
$[
|
|
43774
|
-
|
|
43852
|
+
var t4;
|
|
43853
|
+
if ($[7] !== MessageGroup2 || $[8] !== messageGroups2) {
|
|
43854
|
+
var _t2;
|
|
43855
|
+
if ($[10] !== MessageGroup2) {
|
|
43856
|
+
_t2 = function(messageGroup) {
|
|
43857
|
+
return /* @__PURE__ */ _jsx57(MessageGroup2, {
|
|
43858
|
+
messageGroup: messageGroup
|
|
43859
|
+
}, messageGroup.id);
|
|
43860
|
+
};
|
|
43861
|
+
$[10] = MessageGroup2;
|
|
43862
|
+
$[11] = _t2;
|
|
43863
|
+
} else {
|
|
43864
|
+
_t2 = $[11];
|
|
43865
|
+
}
|
|
43866
|
+
t4 = messageGroups2.map(_t2);
|
|
43867
|
+
$[7] = MessageGroup2;
|
|
43868
|
+
$[8] = messageGroups2;
|
|
43869
|
+
$[9] = t4;
|
|
43775
43870
|
} else {
|
|
43776
|
-
|
|
43871
|
+
t4 = $[9];
|
|
43777
43872
|
}
|
|
43778
|
-
var
|
|
43779
|
-
if ($[
|
|
43780
|
-
|
|
43781
|
-
children:
|
|
43873
|
+
var t5;
|
|
43874
|
+
if ($[12] !== t4) {
|
|
43875
|
+
t5 = /* @__PURE__ */ _jsx57(_Fragment4, {
|
|
43876
|
+
children: t4
|
|
43782
43877
|
});
|
|
43783
|
-
$[
|
|
43784
|
-
$[
|
|
43878
|
+
$[12] = t4;
|
|
43879
|
+
$[13] = t5;
|
|
43785
43880
|
} else {
|
|
43786
|
-
|
|
43881
|
+
t5 = $[13];
|
|
43787
43882
|
}
|
|
43788
|
-
return
|
|
43883
|
+
return t5;
|
|
43789
43884
|
};
|
|
43790
|
-
function _temp4(messageGroup) {
|
|
43791
|
-
return /* @__PURE__ */ _jsx57(MessageGroup, {
|
|
43792
|
-
messageGroup: messageGroup
|
|
43793
|
-
}, messageGroup.id);
|
|
43794
|
-
}
|
|
43795
43885
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
43796
43886
|
import { c as _c59 } from "react-compiler-runtime";
|
|
43797
43887
|
import { useMemo as useMemo12 } from "react";
|
|
@@ -43832,14 +43922,14 @@ var StartingSkeleton = function(t0) {
|
|
|
43832
43922
|
var assistantNameContext = useContext11(AssistantNameContext);
|
|
43833
43923
|
var t1;
|
|
43834
43924
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43835
|
-
t1 = /* @__PURE__ */ _jsx59(AssistantAvatar, {});
|
|
43925
|
+
t1 = /* @__PURE__ */ _jsx59(MessageGroup.AssistantAvatar, {});
|
|
43836
43926
|
$[0] = t1;
|
|
43837
43927
|
} else {
|
|
43838
43928
|
t1 = $[0];
|
|
43839
43929
|
}
|
|
43840
43930
|
var t2;
|
|
43841
43931
|
if ($[1] !== assistantNameContext) {
|
|
43842
|
-
t2 = /* @__PURE__ */ _jsx59(Name, {
|
|
43932
|
+
t2 = /* @__PURE__ */ _jsx59(MessageGroup.Name, {
|
|
43843
43933
|
children: assistantNameContext
|
|
43844
43934
|
});
|
|
43845
43935
|
$[1] = assistantNameContext;
|
|
@@ -43856,7 +43946,7 @@ var StartingSkeleton = function(t0) {
|
|
|
43856
43946
|
}
|
|
43857
43947
|
var t4;
|
|
43858
43948
|
if ($[4] !== children || $[5] !== t2) {
|
|
43859
|
-
t4 = /* @__PURE__ */ _jsxs19(
|
|
43949
|
+
t4 = /* @__PURE__ */ _jsxs19(MessageGroup.Root, {
|
|
43860
43950
|
children: [
|
|
43861
43951
|
t1,
|
|
43862
43952
|
/* @__PURE__ */ _jsxs19(Box12, {
|
|
@@ -43933,7 +44023,7 @@ var Progress = function() {
|
|
|
43933
44023
|
}
|
|
43934
44024
|
var t2;
|
|
43935
44025
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43936
|
-
t2 = /* @__PURE__ */ _jsxs20(
|
|
44026
|
+
t2 = /* @__PURE__ */ _jsxs20(MessageGroup.Root, {
|
|
43937
44027
|
children: [
|
|
43938
44028
|
_t,
|
|
43939
44029
|
/* @__PURE__ */ _jsx60(Box13, {
|
|
@@ -44047,7 +44137,7 @@ function _toPrimitive26(t, r) {
|
|
|
44047
44137
|
}
|
|
44048
44138
|
return ("string" === r ? String : Number)(t);
|
|
44049
44139
|
}
|
|
44050
|
-
var
|
|
44140
|
+
var Root4 = function(t0) {
|
|
44051
44141
|
var $ = _c60(18);
|
|
44052
44142
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44053
44143
|
var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
|
|
@@ -44150,7 +44240,7 @@ var NextPageSkeleton = function() {
|
|
|
44150
44240
|
};
|
|
44151
44241
|
// src/components/threads/Thread/Messages/index.tsx
|
|
44152
44242
|
import { jsx as _jsx63, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
44153
|
-
var
|
|
44243
|
+
var Messages2 = function(t0) {
|
|
44154
44244
|
var $ = _c62(9);
|
|
44155
44245
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
44156
44246
|
var t1;
|
|
@@ -44188,7 +44278,7 @@ var Messages = function(t0) {
|
|
|
44188
44278
|
}
|
|
44189
44279
|
var t6;
|
|
44190
44280
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
44191
|
-
t6 = /* @__PURE__ */ _jsxs22(
|
|
44281
|
+
t6 = /* @__PURE__ */ _jsxs22(Root4, {
|
|
44192
44282
|
style: style,
|
|
44193
44283
|
className: className,
|
|
44194
44284
|
children: [
|
|
@@ -44209,9 +44299,9 @@ var Messages = function(t0) {
|
|
|
44209
44299
|
}
|
|
44210
44300
|
return t6;
|
|
44211
44301
|
};
|
|
44212
|
-
|
|
44213
|
-
|
|
44214
|
-
|
|
44302
|
+
Messages2.Root = Root4;
|
|
44303
|
+
Messages2.Message = Message;
|
|
44304
|
+
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44215
44305
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44216
44306
|
import { c as _c68 } from "react-compiler-runtime";
|
|
44217
44307
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
@@ -44279,7 +44369,7 @@ function _toPrimitive27(t, r) {
|
|
|
44279
44369
|
}
|
|
44280
44370
|
return ("string" === r ? String : Number)(t);
|
|
44281
44371
|
}
|
|
44282
|
-
var
|
|
44372
|
+
var Root5 = function(t0) {
|
|
44283
44373
|
var $ = _c63(4);
|
|
44284
44374
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44285
44375
|
var t1;
|
|
@@ -44374,7 +44464,7 @@ var Submit = function(props) {
|
|
|
44374
44464
|
}
|
|
44375
44465
|
var t1;
|
|
44376
44466
|
if ($[1] !== props) {
|
|
44377
|
-
t1 = /* @__PURE__ */ _jsx64(
|
|
44467
|
+
t1 = /* @__PURE__ */ _jsx64(Root5, _objectSpread27(_objectSpread27({}, props), {}, {
|
|
44378
44468
|
children: t0
|
|
44379
44469
|
}));
|
|
44380
44470
|
$[1] = props;
|
|
@@ -44384,7 +44474,7 @@ var Submit = function(props) {
|
|
|
44384
44474
|
}
|
|
44385
44475
|
return t1;
|
|
44386
44476
|
};
|
|
44387
|
-
Submit.Root =
|
|
44477
|
+
Submit.Root = Root5;
|
|
44388
44478
|
Submit.Button = Button3;
|
|
44389
44479
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44390
44480
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
@@ -44469,7 +44559,7 @@ function _asyncToGenerator6(n) {
|
|
|
44469
44559
|
});
|
|
44470
44560
|
};
|
|
44471
44561
|
}
|
|
44472
|
-
var
|
|
44562
|
+
var Root6 = function(_ref) {
|
|
44473
44563
|
"use no memo";
|
|
44474
44564
|
var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
|
|
44475
44565
|
var _useState4 = _sliced_to_array(useState4([]), 2), files = _useState4[0], setFiles = _useState4[1];
|
|
@@ -44607,7 +44697,7 @@ import { useContext as useContext13, useMemo as useMemo14, useRef as useRef5, us
|
|
|
44607
44697
|
import { c as _c64 } from "react-compiler-runtime";
|
|
44608
44698
|
import { forwardRef as forwardRef4 } from "react";
|
|
44609
44699
|
import TextareaAutosize from "react-textarea-autosize";
|
|
44610
|
-
import { jsx as _jsx66, Fragment as
|
|
44700
|
+
import { jsx as _jsx66, Fragment as _Fragment5, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
44611
44701
|
var _excluded3 = [
|
|
44612
44702
|
"style",
|
|
44613
44703
|
"className"
|
|
@@ -44729,7 +44819,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44729
44819
|
}
|
|
44730
44820
|
var t5;
|
|
44731
44821
|
if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
|
|
44732
|
-
t5 = /* @__PURE__ */ _jsxs23(
|
|
44822
|
+
t5 = /* @__PURE__ */ _jsxs23(_Fragment5, {
|
|
44733
44823
|
children: [
|
|
44734
44824
|
t1,
|
|
44735
44825
|
/* @__PURE__ */ _jsx66(TextareaAutosize, _objectSpread29({
|
|
@@ -44794,7 +44884,7 @@ function _toPrimitive30(t, r) {
|
|
|
44794
44884
|
}
|
|
44795
44885
|
return ("string" === r ? String : Number)(t);
|
|
44796
44886
|
}
|
|
44797
|
-
var
|
|
44887
|
+
var Root7 = function(t0) {
|
|
44798
44888
|
var $ = _c65(4);
|
|
44799
44889
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44800
44890
|
var t1;
|
|
@@ -44870,7 +44960,7 @@ var Control = function(props) {
|
|
|
44870
44960
|
}
|
|
44871
44961
|
var t1;
|
|
44872
44962
|
if ($[1] !== props) {
|
|
44873
|
-
t1 = /* @__PURE__ */ _jsx67(
|
|
44963
|
+
t1 = /* @__PURE__ */ _jsx67(Root7, _objectSpread30(_objectSpread30({}, props), {}, {
|
|
44874
44964
|
children: t0
|
|
44875
44965
|
}));
|
|
44876
44966
|
$[1] = props;
|
|
@@ -44880,7 +44970,7 @@ var Control = function(props) {
|
|
|
44880
44970
|
}
|
|
44881
44971
|
return t1;
|
|
44882
44972
|
};
|
|
44883
|
-
Control.Root =
|
|
44973
|
+
Control.Root = Root7;
|
|
44884
44974
|
Control.Input = Input;
|
|
44885
44975
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
44886
44976
|
import { c as _c66 } from "react-compiler-runtime";
|
|
@@ -45269,7 +45359,7 @@ var useCreateFile = function(t0) {
|
|
|
45269
45359
|
var t1;
|
|
45270
45360
|
if ($[0] !== t0) {
|
|
45271
45361
|
t1 = t0 === void 0 ? {
|
|
45272
|
-
onError:
|
|
45362
|
+
onError: _temp4
|
|
45273
45363
|
} : t0;
|
|
45274
45364
|
$[0] = t0;
|
|
45275
45365
|
$[1] = t1;
|
|
@@ -45338,7 +45428,7 @@ var useCreateFile = function(t0) {
|
|
|
45338
45428
|
}
|
|
45339
45429
|
return t6;
|
|
45340
45430
|
};
|
|
45341
|
-
function
|
|
45431
|
+
function _temp4() {}
|
|
45342
45432
|
function _temp23() {}
|
|
45343
45433
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45344
45434
|
import { jsx as _jsx69, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
@@ -45707,7 +45797,7 @@ function _toPrimitive36(t, r) {
|
|
|
45707
45797
|
}
|
|
45708
45798
|
return ("string" === r ? String : Number)(t);
|
|
45709
45799
|
}
|
|
45710
|
-
var
|
|
45800
|
+
var Root8 = function(_ref) {
|
|
45711
45801
|
"use no memo";
|
|
45712
45802
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45713
45803
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
@@ -45741,7 +45831,7 @@ var Root6 = function(_ref) {
|
|
|
45741
45831
|
});
|
|
45742
45832
|
};
|
|
45743
45833
|
var Field = {
|
|
45744
|
-
Root:
|
|
45834
|
+
Root: Root8,
|
|
45745
45835
|
Control: Control,
|
|
45746
45836
|
Files: Files
|
|
45747
45837
|
};
|
|
@@ -45806,7 +45896,7 @@ var MessageForm = function(props) {
|
|
|
45806
45896
|
}
|
|
45807
45897
|
var t1;
|
|
45808
45898
|
if ($[1] !== props) {
|
|
45809
|
-
t1 = /* @__PURE__ */ _jsx71(
|
|
45899
|
+
t1 = /* @__PURE__ */ _jsx71(Root6, _objectSpread37(_objectSpread37({}, props), {}, {
|
|
45810
45900
|
children: t0
|
|
45811
45901
|
}));
|
|
45812
45902
|
$[1] = props;
|
|
@@ -45816,7 +45906,7 @@ var MessageForm = function(props) {
|
|
|
45816
45906
|
}
|
|
45817
45907
|
return t1;
|
|
45818
45908
|
};
|
|
45819
|
-
MessageForm.Root =
|
|
45909
|
+
MessageForm.Root = Root6;
|
|
45820
45910
|
MessageForm.Field = Field;
|
|
45821
45911
|
MessageForm.Submit = Submit;
|
|
45822
45912
|
// src/components/threads/Thread/Root/index.tsx
|
|
@@ -45929,7 +46019,7 @@ var ToastsProvider = function(t0) {
|
|
|
45929
46019
|
}
|
|
45930
46020
|
var t5;
|
|
45931
46021
|
if ($[4] !== toasts) {
|
|
45932
|
-
t5 = Array.from(toasts).map(
|
|
46022
|
+
t5 = Array.from(toasts).map(_temp5);
|
|
45933
46023
|
$[4] = toasts;
|
|
45934
46024
|
$[5] = t5;
|
|
45935
46025
|
} else {
|
|
@@ -45989,7 +46079,7 @@ var ToastsProvider = function(t0) {
|
|
|
45989
46079
|
}
|
|
45990
46080
|
return t8;
|
|
45991
46081
|
};
|
|
45992
|
-
function
|
|
46082
|
+
function _temp5(toast_0, index) {
|
|
45993
46083
|
return /* @__PURE__ */ _jsx73(CustomToast, {
|
|
45994
46084
|
toast: toast_0
|
|
45995
46085
|
}, index);
|
|
@@ -46062,7 +46152,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46062
46152
|
}
|
|
46063
46153
|
return t;
|
|
46064
46154
|
}
|
|
46065
|
-
var
|
|
46155
|
+
var Root10 = function(t0) {
|
|
46066
46156
|
var $ = _c71(12);
|
|
46067
46157
|
var children;
|
|
46068
46158
|
var className;
|
|
@@ -46167,7 +46257,7 @@ var Thread = function(props) {
|
|
|
46167
46257
|
var t0;
|
|
46168
46258
|
var t1;
|
|
46169
46259
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46170
|
-
t0 = /* @__PURE__ */ _jsx75(
|
|
46260
|
+
t0 = /* @__PURE__ */ _jsx75(Messages2, {});
|
|
46171
46261
|
t1 = /* @__PURE__ */ _jsx75(MessageForm, {});
|
|
46172
46262
|
$[0] = t0;
|
|
46173
46263
|
$[1] = t1;
|
|
@@ -46177,7 +46267,7 @@ var Thread = function(props) {
|
|
|
46177
46267
|
}
|
|
46178
46268
|
var t2;
|
|
46179
46269
|
if ($[2] !== props) {
|
|
46180
|
-
t2 = /* @__PURE__ */ _jsxs29(
|
|
46270
|
+
t2 = /* @__PURE__ */ _jsxs29(Root10, _objectSpread39(_objectSpread39({}, props), {}, {
|
|
46181
46271
|
children: [
|
|
46182
46272
|
t0,
|
|
46183
46273
|
t1
|
|
@@ -46190,8 +46280,8 @@ var Thread = function(props) {
|
|
|
46190
46280
|
}
|
|
46191
46281
|
return t2;
|
|
46192
46282
|
};
|
|
46193
|
-
Thread.Root =
|
|
46194
|
-
Thread.Messages =
|
|
46283
|
+
Thread.Root = Root10;
|
|
46284
|
+
Thread.Messages = Messages2;
|
|
46195
46285
|
Thread.MessageForm = MessageForm;
|
|
46196
46286
|
// src/hooks/messages/useMessageContext/index.ts
|
|
46197
46287
|
import { useContext as useContext14 } from "react";
|
|
@@ -46433,7 +46523,7 @@ var Provider4 = function(t0) {
|
|
|
46433
46523
|
};
|
|
46434
46524
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46435
46525
|
import { jsx as _jsx77 } from "react/jsx-runtime";
|
|
46436
|
-
var
|
|
46526
|
+
var Root11 = function(t0) {
|
|
46437
46527
|
var $ = _c75(2);
|
|
46438
46528
|
var children = t0.children;
|
|
46439
46529
|
var t1;
|
|
@@ -46568,7 +46658,7 @@ function _toPrimitive42(t, r) {
|
|
|
46568
46658
|
}
|
|
46569
46659
|
return ("string" === r ? String : Number)(t);
|
|
46570
46660
|
}
|
|
46571
|
-
var
|
|
46661
|
+
var Root12 = function(t0) {
|
|
46572
46662
|
var $ = _c77(14);
|
|
46573
46663
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46574
46664
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
@@ -46587,7 +46677,7 @@ var Root10 = function(t0) {
|
|
|
46587
46677
|
var t3;
|
|
46588
46678
|
if ($[2] !== setIsOpen) {
|
|
46589
46679
|
t3 = function() {
|
|
46590
|
-
return setIsOpen(
|
|
46680
|
+
return setIsOpen(_temp6);
|
|
46591
46681
|
};
|
|
46592
46682
|
$[2] = setIsOpen;
|
|
46593
46683
|
$[3] = t3;
|
|
@@ -46650,7 +46740,7 @@ var Trigger = function(args) {
|
|
|
46650
46740
|
}
|
|
46651
46741
|
var t1;
|
|
46652
46742
|
if ($[1] !== args) {
|
|
46653
|
-
t1 = /* @__PURE__ */ _jsx79(
|
|
46743
|
+
t1 = /* @__PURE__ */ _jsx79(Root12, _objectSpread42(_objectSpread42({}, args), {}, {
|
|
46654
46744
|
children: t0
|
|
46655
46745
|
}));
|
|
46656
46746
|
$[1] = args;
|
|
@@ -46660,9 +46750,9 @@ var Trigger = function(args) {
|
|
|
46660
46750
|
}
|
|
46661
46751
|
return t1;
|
|
46662
46752
|
};
|
|
46663
|
-
Trigger.Root =
|
|
46753
|
+
Trigger.Root = Root12;
|
|
46664
46754
|
Trigger.Button = Button4;
|
|
46665
|
-
function
|
|
46755
|
+
function _temp6(prev) {
|
|
46666
46756
|
return !prev;
|
|
46667
46757
|
}
|
|
46668
46758
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -46691,7 +46781,7 @@ var Close = function() {
|
|
|
46691
46781
|
var t2;
|
|
46692
46782
|
if ($[2] !== setIsOpen) {
|
|
46693
46783
|
t2 = function() {
|
|
46694
|
-
return setIsOpen(
|
|
46784
|
+
return setIsOpen(_temp7);
|
|
46695
46785
|
};
|
|
46696
46786
|
$[2] = setIsOpen;
|
|
46697
46787
|
$[3] = t2;
|
|
@@ -46741,7 +46831,7 @@ var Close = function() {
|
|
|
46741
46831
|
}
|
|
46742
46832
|
return t5;
|
|
46743
46833
|
};
|
|
46744
|
-
function
|
|
46834
|
+
function _temp7(prev) {
|
|
46745
46835
|
return !prev;
|
|
46746
46836
|
}
|
|
46747
46837
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -46789,7 +46879,7 @@ function _toPrimitive43(t, r) {
|
|
|
46789
46879
|
}
|
|
46790
46880
|
return ("string" === r ? String : Number)(t);
|
|
46791
46881
|
}
|
|
46792
|
-
var
|
|
46882
|
+
var Root13 = function(t0) {
|
|
46793
46883
|
var $ = _c79(19);
|
|
46794
46884
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46795
46885
|
var isOpen = useThreadDialogContext().isOpen;
|
|
@@ -46936,7 +47026,7 @@ var Root11 = function(t0) {
|
|
|
46936
47026
|
}
|
|
46937
47027
|
return t13;
|
|
46938
47028
|
};
|
|
46939
|
-
var
|
|
47029
|
+
var Messages3 = function(t0) {
|
|
46940
47030
|
var $ = _c79(5);
|
|
46941
47031
|
var className = t0.className, style = t0.style;
|
|
46942
47032
|
var t1;
|
|
@@ -46993,7 +47083,7 @@ var Content7 = function(props) {
|
|
|
46993
47083
|
var $ = _c79(4);
|
|
46994
47084
|
var t0;
|
|
46995
47085
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46996
|
-
t0 = /* @__PURE__ */ _jsx81(
|
|
47086
|
+
t0 = /* @__PURE__ */ _jsx81(Messages3, {});
|
|
46997
47087
|
$[0] = t0;
|
|
46998
47088
|
} else {
|
|
46999
47089
|
t0 = $[0];
|
|
@@ -47014,7 +47104,7 @@ var Content7 = function(props) {
|
|
|
47014
47104
|
}
|
|
47015
47105
|
var t2;
|
|
47016
47106
|
if ($[2] !== props) {
|
|
47017
|
-
t2 = /* @__PURE__ */ _jsx81(
|
|
47107
|
+
t2 = /* @__PURE__ */ _jsx81(Root13, _objectSpread43(_objectSpread43({}, props), {}, {
|
|
47018
47108
|
children: t1
|
|
47019
47109
|
}));
|
|
47020
47110
|
$[2] = props;
|
|
@@ -47024,8 +47114,8 @@ var Content7 = function(props) {
|
|
|
47024
47114
|
}
|
|
47025
47115
|
return t2;
|
|
47026
47116
|
};
|
|
47027
|
-
Content7.Root =
|
|
47028
|
-
Content7.Messages =
|
|
47117
|
+
Content7.Root = Root13;
|
|
47118
|
+
Content7.Messages = Messages3;
|
|
47029
47119
|
Content7.FormContainer = FormContainer;
|
|
47030
47120
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47031
47121
|
import { jsx as _jsx82, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
@@ -47033,7 +47123,7 @@ var ThreadDialog = function() {
|
|
|
47033
47123
|
var $ = _c80(1);
|
|
47034
47124
|
var t0;
|
|
47035
47125
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47036
|
-
t0 = /* @__PURE__ */ _jsxs31(
|
|
47126
|
+
t0 = /* @__PURE__ */ _jsxs31(Root11, {
|
|
47037
47127
|
children: [
|
|
47038
47128
|
/* @__PURE__ */ _jsx82(Content7, {}),
|
|
47039
47129
|
/* @__PURE__ */ _jsx82(Trigger, {})
|
|
@@ -47045,7 +47135,7 @@ var ThreadDialog = function() {
|
|
|
47045
47135
|
}
|
|
47046
47136
|
return t0;
|
|
47047
47137
|
};
|
|
47048
|
-
ThreadDialog.Root =
|
|
47138
|
+
ThreadDialog.Root = Root11;
|
|
47049
47139
|
ThreadDialog.Trigger = Trigger;
|
|
47050
47140
|
ThreadDialog.Content = Content7;
|
|
47051
47141
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
@@ -47148,7 +47238,7 @@ import { c as _c82 } from "react-compiler-runtime";
|
|
|
47148
47238
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
47149
47239
|
var useInterval = function(callback, delay) {
|
|
47150
47240
|
var $ = _c82(5);
|
|
47151
|
-
var savedCallback = useRef6(
|
|
47241
|
+
var savedCallback = useRef6(_temp8);
|
|
47152
47242
|
var t0;
|
|
47153
47243
|
if ($[0] !== callback) {
|
|
47154
47244
|
t0 = function() {
|
|
@@ -47185,7 +47275,7 @@ var useInterval = function(callback, delay) {
|
|
|
47185
47275
|
}
|
|
47186
47276
|
useEffect8(t1, t2);
|
|
47187
47277
|
};
|
|
47188
|
-
function
|
|
47278
|
+
function _temp8() {}
|
|
47189
47279
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47190
47280
|
function ownKeys44(e, r) {
|
|
47191
47281
|
var t = Object.keys(e);
|
|
@@ -47733,7 +47823,7 @@ var useMessageAudio = function(t0) {
|
|
|
47733
47823
|
} else {
|
|
47734
47824
|
t8 = $[36];
|
|
47735
47825
|
}
|
|
47736
|
-
useEffect10(
|
|
47826
|
+
useEffect10(_temp9, t8);
|
|
47737
47827
|
var _useState94 = _sliced_to_array(useState9(null), 2), audioEngine = _useState94[0], setAudioEngine = _useState94[1];
|
|
47738
47828
|
var isAudioEngineInited = useRef8(false);
|
|
47739
47829
|
var t9;
|
|
@@ -47817,7 +47907,7 @@ var useMessageAudio = function(t0) {
|
|
|
47817
47907
|
}
|
|
47818
47908
|
return t13;
|
|
47819
47909
|
};
|
|
47820
|
-
function
|
|
47910
|
+
function _temp9() {
|
|
47821
47911
|
if (isHtmlAudioSupported) {
|
|
47822
47912
|
var _Howler$_howls$;
|
|
47823
47913
|
if (!(Howler !== null && Howler !== void 0 && (_Howler$_howls$ = Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
|
|
@@ -47892,7 +47982,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
47892
47982
|
if ($[1] !== createMessageProps) {
|
|
47893
47983
|
t2 = {
|
|
47894
47984
|
isStopOnSilence: true,
|
|
47895
|
-
onStart:
|
|
47985
|
+
onStart: _temp10,
|
|
47896
47986
|
onStop: function() {
|
|
47897
47987
|
var _onStop = _asyncToGenerator11(function(_event, chunks) {
|
|
47898
47988
|
var blob, audioContent;
|
|
@@ -48023,7 +48113,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
48023
48113
|
t5 = t8;
|
|
48024
48114
|
return t5;
|
|
48025
48115
|
};
|
|
48026
|
-
function
|
|
48116
|
+
function _temp10() {
|
|
48027
48117
|
return _temp24.apply(this, arguments);
|
|
48028
48118
|
}
|
|
48029
48119
|
function _temp24() {
|
|
@@ -48231,7 +48321,7 @@ var Provider5 = function(t0) {
|
|
|
48231
48321
|
}
|
|
48232
48322
|
return t2;
|
|
48233
48323
|
};
|
|
48234
|
-
var
|
|
48324
|
+
var Root14 = function(t0) {
|
|
48235
48325
|
var $ = _c86(16);
|
|
48236
48326
|
var children;
|
|
48237
48327
|
var className;
|
|
@@ -48530,7 +48620,7 @@ var Provider6 = function(_ref) {
|
|
|
48530
48620
|
children: children
|
|
48531
48621
|
});
|
|
48532
48622
|
};
|
|
48533
|
-
var
|
|
48623
|
+
var Root15 = function(t0) {
|
|
48534
48624
|
var $ = _c88(6);
|
|
48535
48625
|
var children;
|
|
48536
48626
|
var rest;
|
|
@@ -48712,14 +48802,14 @@ var AssistantInfo = function(props) {
|
|
|
48712
48802
|
var assistantNameContext = useContext17(AssistantNameContext);
|
|
48713
48803
|
var t0;
|
|
48714
48804
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48715
|
-
t0 = /* @__PURE__ */ _jsx86(AssistantAvatar, {});
|
|
48805
|
+
t0 = /* @__PURE__ */ _jsx86(MessageGroup.AssistantAvatar, {});
|
|
48716
48806
|
$[0] = t0;
|
|
48717
48807
|
} else {
|
|
48718
48808
|
t0 = $[0];
|
|
48719
48809
|
}
|
|
48720
48810
|
var t1;
|
|
48721
48811
|
if ($[1] !== assistantNameContext) {
|
|
48722
|
-
t1 = /* @__PURE__ */ _jsx86(Name, {
|
|
48812
|
+
t1 = /* @__PURE__ */ _jsx86(MessageGroup.Name, {
|
|
48723
48813
|
children: assistantNameContext
|
|
48724
48814
|
});
|
|
48725
48815
|
$[1] = assistantNameContext;
|
|
@@ -48762,7 +48852,7 @@ var Visualization = function(props) {
|
|
|
48762
48852
|
}
|
|
48763
48853
|
var t2;
|
|
48764
48854
|
if ($[2] !== props) {
|
|
48765
|
-
t2 = /* @__PURE__ */ _jsxs32(
|
|
48855
|
+
t2 = /* @__PURE__ */ _jsxs32(Root15, _objectSpread47(_objectSpread47({}, props), {}, {
|
|
48766
48856
|
children: [
|
|
48767
48857
|
t0,
|
|
48768
48858
|
t1
|
|
@@ -48775,7 +48865,7 @@ var Visualization = function(props) {
|
|
|
48775
48865
|
}
|
|
48776
48866
|
return t2;
|
|
48777
48867
|
};
|
|
48778
|
-
Visualization.Root =
|
|
48868
|
+
Visualization.Root = Root15;
|
|
48779
48869
|
Visualization.Provider = Provider6;
|
|
48780
48870
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48781
48871
|
Visualization.AssistantInfo = AssistantInfo;
|
|
@@ -49485,7 +49575,7 @@ var AudioThread = function(props) {
|
|
|
49485
49575
|
}
|
|
49486
49576
|
var t3;
|
|
49487
49577
|
if ($[3] !== props) {
|
|
49488
|
-
t3 = /* @__PURE__ */ _jsxs36(
|
|
49578
|
+
t3 = /* @__PURE__ */ _jsxs36(Root14, _objectSpread51(_objectSpread51({}, props), {}, {
|
|
49489
49579
|
children: [
|
|
49490
49580
|
t0,
|
|
49491
49581
|
t1,
|
|
@@ -49499,7 +49589,7 @@ var AudioThread = function(props) {
|
|
|
49499
49589
|
}
|
|
49500
49590
|
return t3;
|
|
49501
49591
|
};
|
|
49502
|
-
AudioThread.Root =
|
|
49592
|
+
AudioThread.Root = Root14;
|
|
49503
49593
|
AudioThread.Visualization = Visualization;
|
|
49504
49594
|
AudioThread.Status = Status;
|
|
49505
49595
|
AudioThread.Form = Form;
|
|
@@ -49565,7 +49655,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49565
49655
|
}
|
|
49566
49656
|
var t2;
|
|
49567
49657
|
if ($[2] !== props) {
|
|
49568
|
-
t2 = /* @__PURE__ */ _jsxs37(
|
|
49658
|
+
t2 = /* @__PURE__ */ _jsxs37(Root11, _objectSpread52(_objectSpread52({}, props), {}, {
|
|
49569
49659
|
children: [
|
|
49570
49660
|
t0,
|
|
49571
49661
|
t1
|
|
@@ -49578,7 +49668,7 @@ var AudioThreadDialog = function(props) {
|
|
|
49578
49668
|
}
|
|
49579
49669
|
return t2;
|
|
49580
49670
|
};
|
|
49581
|
-
AudioThreadDialog.Root =
|
|
49671
|
+
AudioThreadDialog.Root = Root11;
|
|
49582
49672
|
AudioThreadDialog.Trigger = Trigger;
|
|
49583
49673
|
AudioThreadDialog.Content = Content7;
|
|
49584
49674
|
// src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
|
|
@@ -50245,7 +50335,7 @@ var Content9 = function(t0) {
|
|
|
50245
50335
|
return t5;
|
|
50246
50336
|
};
|
|
50247
50337
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50248
|
-
import { jsx as _jsx97, jsxs as _jsxs38, Fragment as
|
|
50338
|
+
import { jsx as _jsx97, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50249
50339
|
var FileCitation = function(t0) {
|
|
50250
50340
|
var $ = _c99(18);
|
|
50251
50341
|
var annotation = t0.annotation;
|
|
@@ -50358,7 +50448,7 @@ var FileCitation = function(t0) {
|
|
|
50358
50448
|
}
|
|
50359
50449
|
var t11;
|
|
50360
50450
|
if ($[15] !== t10 || $[16] !== t3) {
|
|
50361
|
-
t11 = /* @__PURE__ */ _jsxs38(
|
|
50451
|
+
t11 = /* @__PURE__ */ _jsxs38(_Fragment6, {
|
|
50362
50452
|
children: [
|
|
50363
50453
|
t3,
|
|
50364
50454
|
t10
|
|
@@ -50676,12 +50766,6 @@ var Avatar6 = function(t0) {
|
|
|
50676
50766
|
// src/components/components/ComponentsProvider.tsx
|
|
50677
50767
|
import { c as _c104 } from "react-compiler-runtime";
|
|
50678
50768
|
import { useMemo as useMemo23 } from "react";
|
|
50679
|
-
// src/hooks/components/useComponents.ts
|
|
50680
|
-
import { useContext as useContext18 } from "react";
|
|
50681
|
-
var useComponents = function() {
|
|
50682
|
-
return useContext18(ComponentsContext);
|
|
50683
|
-
};
|
|
50684
|
-
// src/components/components/ComponentsProvider.tsx
|
|
50685
50769
|
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50686
50770
|
var _excluded9 = [
|
|
50687
50771
|
"children"
|
|
@@ -50804,5 +50888,5 @@ var AssistantProvider = function(t0) {
|
|
|
50804
50888
|
}
|
|
50805
50889
|
return t6;
|
|
50806
50890
|
};
|
|
50807
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
50891
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
50808
50892
|
//# sourceMappingURL=index.js.map
|