@superinterface/react 4.2.2 → 4.4.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 +247 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +254 -191
- package/dist/index.js.map +1 -1
- package/dist/utils.cjs +6 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +3 -1
- package/dist/utils.d.ts +3 -1
- package/dist/utils.js +3 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37811,7 +37811,7 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37811
37811
|
});
|
|
37812
37812
|
};
|
|
37813
37813
|
// src/components/threads/Thread/index.tsx
|
|
37814
|
-
import { c as
|
|
37814
|
+
import { c as _c76 } from "react-compiler-runtime";
|
|
37815
37815
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37816
37816
|
import { c as _c65 } from "react-compiler-runtime";
|
|
37817
37817
|
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
@@ -44554,7 +44554,7 @@ Messages2.Message = Message;
|
|
|
44554
44554
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44555
44555
|
Messages2.Content = Content7;
|
|
44556
44556
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44557
|
-
import { c as
|
|
44557
|
+
import { c as _c72 } from "react-compiler-runtime";
|
|
44558
44558
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44559
44559
|
import { c as _c66 } from "react-compiler-runtime";
|
|
44560
44560
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
@@ -44729,7 +44729,7 @@ Submit.Root = Root7;
|
|
|
44729
44729
|
Submit.Button = Button3;
|
|
44730
44730
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44731
44731
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
44732
|
-
import { useMemo as useMemo13, useState as useState4 } from "react";
|
|
44732
|
+
import { useMemo as useMemo13, useState as useState4, useCallback as useCallback3 } from "react";
|
|
44733
44733
|
import { useForm, FormProvider } from "react-hook-form";
|
|
44734
44734
|
import { Box as Box14 } from "@radix-ui/themes";
|
|
44735
44735
|
// src/components/threads/Thread/MessageForm/Root/lib/formOptions.ts
|
|
@@ -44815,7 +44815,7 @@ var Root8 = function(_ref) {
|
|
|
44815
44815
|
var children = _ref.children, onSubmitArg = _ref.onSubmit, isDisabledArg = _ref.isDisabled, style = _ref.style, className = _ref.className;
|
|
44816
44816
|
var _useState4 = _sliced_to_array(useState4([]), 2), files = _useState4[0], setFiles = _useState4[1];
|
|
44817
44817
|
var formProps = useForm(formOptions);
|
|
44818
|
-
var handleSubmit = formProps.handleSubmit, isSubmitting = formProps.formState.isSubmitting,
|
|
44818
|
+
var handleSubmit = formProps.handleSubmit, isSubmitting = formProps.formState.isSubmitting, formReset = formProps.reset, watch = formProps.watch;
|
|
44819
44819
|
var addToast = useToasts().addToast;
|
|
44820
44820
|
var queryClient = useQueryClient4();
|
|
44821
44821
|
var threadContext = useSuperinterfaceContext();
|
|
@@ -44850,9 +44850,16 @@ var Root8 = function(_ref) {
|
|
|
44850
44850
|
latestMessage,
|
|
44851
44851
|
isDisabledArg
|
|
44852
44852
|
]);
|
|
44853
|
+
var reset = useCallback3(function() {
|
|
44854
|
+
formReset();
|
|
44855
|
+
setFiles([]);
|
|
44856
|
+
}, [
|
|
44857
|
+
formReset
|
|
44858
|
+
]);
|
|
44853
44859
|
var onSubmit = onSubmitArg ? partob(onSubmitArg, {
|
|
44854
44860
|
reset: reset,
|
|
44855
|
-
createMessage: createMessage
|
|
44861
|
+
createMessage: createMessage,
|
|
44862
|
+
files: files
|
|
44856
44863
|
}) : /* @__PURE__ */ function() {
|
|
44857
44864
|
var _ref2 = _asyncToGenerator6(function(data2) {
|
|
44858
44865
|
var attachments, imageFileContentParts, content2;
|
|
@@ -44869,7 +44876,6 @@ var Root8 = function(_ref) {
|
|
|
44869
44876
|
2
|
|
44870
44877
|
];
|
|
44871
44878
|
reset();
|
|
44872
|
-
setFiles([]);
|
|
44873
44879
|
attachments = files.filter(function(file_0) {
|
|
44874
44880
|
return file_0.purpose === "assistants";
|
|
44875
44881
|
}).map(function(file_1) {
|
|
@@ -45380,11 +45386,13 @@ var Preview = function(props) {
|
|
|
45380
45386
|
return t1;
|
|
45381
45387
|
};
|
|
45382
45388
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45383
|
-
import {
|
|
45384
|
-
import { omit as omit4 } from "radash";
|
|
45385
|
-
import dayjs2 from "dayjs";
|
|
45389
|
+
import { c as _c71 } from "react-compiler-runtime";
|
|
45386
45390
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45387
45391
|
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45392
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45393
|
+
import { useCallback as useCallback4 } from "react";
|
|
45394
|
+
import { omit as omit4 } from "radash";
|
|
45395
|
+
import dayjs2 from "dayjs";
|
|
45388
45396
|
// src/hooks/files/useCreateFile/index.ts
|
|
45389
45397
|
import { c as _c70 } from "react-compiler-runtime";
|
|
45390
45398
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
@@ -45697,51 +45705,7 @@ var useCreateFile = function(t0) {
|
|
|
45697
45705
|
};
|
|
45698
45706
|
function _temp4() {}
|
|
45699
45707
|
function _temp23() {}
|
|
45700
|
-
// src/
|
|
45701
|
-
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45702
|
-
function ownKeys36(e, r) {
|
|
45703
|
-
var t = Object.keys(e);
|
|
45704
|
-
if (Object.getOwnPropertySymbols) {
|
|
45705
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
45706
|
-
r && (o = o.filter(function(r2) {
|
|
45707
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45708
|
-
})), t.push.apply(t, o);
|
|
45709
|
-
}
|
|
45710
|
-
return t;
|
|
45711
|
-
}
|
|
45712
|
-
function _objectSpread36(e) {
|
|
45713
|
-
for(var r = 1; r < arguments.length; r++){
|
|
45714
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
45715
|
-
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45716
|
-
_defineProperty36(e, r2, t[r2]);
|
|
45717
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45718
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45719
|
-
});
|
|
45720
|
-
}
|
|
45721
|
-
return e;
|
|
45722
|
-
}
|
|
45723
|
-
function _defineProperty36(e, r, t) {
|
|
45724
|
-
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45725
|
-
value: t,
|
|
45726
|
-
enumerable: true,
|
|
45727
|
-
configurable: true,
|
|
45728
|
-
writable: true
|
|
45729
|
-
}) : e[r] = t, e;
|
|
45730
|
-
}
|
|
45731
|
-
function _toPropertyKey36(t) {
|
|
45732
|
-
var i = _toPrimitive36(t, "string");
|
|
45733
|
-
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45734
|
-
}
|
|
45735
|
-
function _toPrimitive36(t, r) {
|
|
45736
|
-
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45737
|
-
var e = t[Symbol.toPrimitive];
|
|
45738
|
-
if (void 0 !== e) {
|
|
45739
|
-
var i = e.call(t, r || "default");
|
|
45740
|
-
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45741
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45742
|
-
}
|
|
45743
|
-
return ("string" === r ? String : Number)(t);
|
|
45744
|
-
}
|
|
45708
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45745
45709
|
function asyncGeneratorStep8(n, t, e, r, o, a, c) {
|
|
45746
45710
|
try {
|
|
45747
45711
|
var i = n[a](c), u = i.value;
|
|
@@ -45806,7 +45770,6 @@ function AsyncFromSyncIterator(r) {
|
|
|
45806
45770
|
}
|
|
45807
45771
|
}, new AsyncFromSyncIterator(r);
|
|
45808
45772
|
}
|
|
45809
|
-
var accept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
|
|
45810
45773
|
var purpose = function(_ref) {
|
|
45811
45774
|
var fileObject = _ref.fileObject;
|
|
45812
45775
|
if (fileObject.type.startsWith("image/")) {
|
|
@@ -45814,11 +45777,11 @@ var purpose = function(_ref) {
|
|
|
45814
45777
|
}
|
|
45815
45778
|
return "assistants";
|
|
45816
45779
|
};
|
|
45817
|
-
var
|
|
45818
|
-
var
|
|
45780
|
+
var useChangeFilesField = function() {
|
|
45781
|
+
var setFiles = useMessageFormContext().setFiles;
|
|
45819
45782
|
var createFile = useCreateFile().createFile;
|
|
45820
45783
|
var addToast = useToasts().addToast;
|
|
45821
|
-
var
|
|
45784
|
+
var changeFilesField = useCallback4(/* @__PURE__ */ function() {
|
|
45822
45785
|
var _ref2 = _asyncToGenerator8(function(event) {
|
|
45823
45786
|
var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
|
|
45824
45787
|
return _ts_generator(this, function(_state) {
|
|
@@ -45989,40 +45952,140 @@ var Control2 = function(props) {
|
|
|
45989
45952
|
createFile,
|
|
45990
45953
|
setFiles
|
|
45991
45954
|
]);
|
|
45992
|
-
return
|
|
45993
|
-
|
|
45994
|
-
|
|
45995
|
-
|
|
45996
|
-
|
|
45997
|
-
|
|
45955
|
+
return {
|
|
45956
|
+
changeFilesField: changeFilesField
|
|
45957
|
+
};
|
|
45958
|
+
};
|
|
45959
|
+
// src/lib/files/filesFieldAccept.ts
|
|
45960
|
+
var filesFieldAccept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
|
|
45961
|
+
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45962
|
+
import { jsx as _jsx72, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45963
|
+
function ownKeys36(e, r) {
|
|
45964
|
+
var t = Object.keys(e);
|
|
45965
|
+
if (Object.getOwnPropertySymbols) {
|
|
45966
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
45967
|
+
r && (o = o.filter(function(r2) {
|
|
45968
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45969
|
+
})), t.push.apply(t, o);
|
|
45970
|
+
}
|
|
45971
|
+
return t;
|
|
45972
|
+
}
|
|
45973
|
+
function _objectSpread36(e) {
|
|
45974
|
+
for(var r = 1; r < arguments.length; r++){
|
|
45975
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
45976
|
+
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45977
|
+
_defineProperty36(e, r2, t[r2]);
|
|
45978
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45979
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45980
|
+
});
|
|
45981
|
+
}
|
|
45982
|
+
return e;
|
|
45983
|
+
}
|
|
45984
|
+
function _defineProperty36(e, r, t) {
|
|
45985
|
+
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45986
|
+
value: t,
|
|
45987
|
+
enumerable: true,
|
|
45988
|
+
configurable: true,
|
|
45989
|
+
writable: true
|
|
45990
|
+
}) : e[r] = t, e;
|
|
45991
|
+
}
|
|
45992
|
+
function _toPropertyKey36(t) {
|
|
45993
|
+
var i = _toPrimitive36(t, "string");
|
|
45994
|
+
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45995
|
+
}
|
|
45996
|
+
function _toPrimitive36(t, r) {
|
|
45997
|
+
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45998
|
+
var e = t[Symbol.toPrimitive];
|
|
45999
|
+
if (void 0 !== e) {
|
|
46000
|
+
var i = e.call(t, r || "default");
|
|
46001
|
+
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
46002
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
46003
|
+
}
|
|
46004
|
+
return ("string" === r ? String : Number)(t);
|
|
46005
|
+
}
|
|
46006
|
+
var Control2 = function(props) {
|
|
46007
|
+
var $ = _c71(11);
|
|
46008
|
+
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
|
|
46009
|
+
var changeFilesField = useChangeFilesField().changeFilesField;
|
|
46010
|
+
var t0 = isDisabled || isLoading;
|
|
46011
|
+
var t1;
|
|
46012
|
+
var t2;
|
|
46013
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46014
|
+
t1 = {
|
|
46015
|
+
position: "relative",
|
|
46016
|
+
overflow: "hidden"
|
|
46017
|
+
};
|
|
46018
|
+
t2 = /* @__PURE__ */ _jsx72(FilePlusIcon, {});
|
|
46019
|
+
$[0] = t1;
|
|
46020
|
+
$[1] = t2;
|
|
46021
|
+
} else {
|
|
46022
|
+
t1 = $[0];
|
|
46023
|
+
t2 = $[1];
|
|
46024
|
+
}
|
|
46025
|
+
var t3;
|
|
46026
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46027
|
+
t3 = {
|
|
46028
|
+
cursor: "pointer",
|
|
46029
|
+
position: "absolute",
|
|
46030
|
+
top: 0,
|
|
46031
|
+
left: 0,
|
|
46032
|
+
right: 0,
|
|
46033
|
+
bottom: 0,
|
|
46034
|
+
opacity: 0
|
|
46035
|
+
};
|
|
46036
|
+
$[2] = t3;
|
|
46037
|
+
} else {
|
|
46038
|
+
t3 = $[2];
|
|
46039
|
+
}
|
|
46040
|
+
var t4;
|
|
46041
|
+
if ($[3] !== changeFilesField) {
|
|
46042
|
+
t4 = /* @__PURE__ */ _jsx72("input", {
|
|
46043
|
+
type: "file",
|
|
46044
|
+
multiple: true,
|
|
46045
|
+
accept: filesFieldAccept,
|
|
46046
|
+
onChange: changeFilesField,
|
|
46047
|
+
style: t3
|
|
46048
|
+
});
|
|
46049
|
+
$[3] = changeFilesField;
|
|
46050
|
+
$[4] = t4;
|
|
46051
|
+
} else {
|
|
46052
|
+
t4 = $[4];
|
|
46053
|
+
}
|
|
46054
|
+
var t5;
|
|
46055
|
+
if ($[5] !== t0 || $[6] !== t4) {
|
|
46056
|
+
t5 = /* @__PURE__ */ _jsxs24(IconButton7, {
|
|
45998
46057
|
type: "button",
|
|
45999
46058
|
variant: "ghost",
|
|
46000
46059
|
color: "gray",
|
|
46001
|
-
disabled:
|
|
46002
|
-
style:
|
|
46003
|
-
position: "relative",
|
|
46004
|
-
overflow: "hidden"
|
|
46005
|
-
},
|
|
46060
|
+
disabled: t0,
|
|
46061
|
+
style: t1,
|
|
46006
46062
|
children: [
|
|
46007
|
-
|
|
46008
|
-
|
|
46009
|
-
type: "file",
|
|
46010
|
-
multiple: true,
|
|
46011
|
-
accept: accept,
|
|
46012
|
-
onChange: onChange,
|
|
46013
|
-
style: {
|
|
46014
|
-
cursor: "pointer",
|
|
46015
|
-
position: "absolute",
|
|
46016
|
-
top: 0,
|
|
46017
|
-
left: 0,
|
|
46018
|
-
right: 0,
|
|
46019
|
-
bottom: 0,
|
|
46020
|
-
opacity: 0
|
|
46021
|
-
}
|
|
46022
|
-
})
|
|
46063
|
+
t2,
|
|
46064
|
+
t4
|
|
46023
46065
|
]
|
|
46024
|
-
})
|
|
46025
|
-
|
|
46066
|
+
});
|
|
46067
|
+
$[5] = t0;
|
|
46068
|
+
$[6] = t4;
|
|
46069
|
+
$[7] = t5;
|
|
46070
|
+
} else {
|
|
46071
|
+
t5 = $[7];
|
|
46072
|
+
}
|
|
46073
|
+
var t6;
|
|
46074
|
+
if ($[8] !== props || $[9] !== t5) {
|
|
46075
|
+
t6 = /* @__PURE__ */ _jsx72(Flex22, _objectSpread36(_objectSpread36({
|
|
46076
|
+
pt: "2",
|
|
46077
|
+
pr: "2",
|
|
46078
|
+
flexGrow: "0"
|
|
46079
|
+
}, props), {}, {
|
|
46080
|
+
children: t5
|
|
46081
|
+
}));
|
|
46082
|
+
$[8] = props;
|
|
46083
|
+
$[9] = t5;
|
|
46084
|
+
$[10] = t6;
|
|
46085
|
+
} else {
|
|
46086
|
+
t6 = $[10];
|
|
46087
|
+
}
|
|
46088
|
+
return t6;
|
|
46026
46089
|
};
|
|
46027
46090
|
// src/components/threads/Thread/MessageForm/Field/Files/index.tsx
|
|
46028
46091
|
var Files = {
|
|
@@ -46158,7 +46221,7 @@ function _toPrimitive38(t, r) {
|
|
|
46158
46221
|
return ("string" === r ? String : Number)(t);
|
|
46159
46222
|
}
|
|
46160
46223
|
var MessageForm = function(props) {
|
|
46161
|
-
var $ =
|
|
46224
|
+
var $ = _c72(3);
|
|
46162
46225
|
var t0;
|
|
46163
46226
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46164
46227
|
t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
@@ -46187,22 +46250,22 @@ MessageForm.Root = Root8;
|
|
|
46187
46250
|
MessageForm.Field = Field;
|
|
46188
46251
|
MessageForm.Submit = Submit;
|
|
46189
46252
|
// src/components/threads/Thread/Root/index.tsx
|
|
46190
|
-
import { c as
|
|
46253
|
+
import { c as _c75 } from "react-compiler-runtime";
|
|
46191
46254
|
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
46192
46255
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46193
46256
|
var Provider2 = SuperinterfaceProvider;
|
|
46194
46257
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46195
|
-
import { c as
|
|
46196
|
-
import { useState as useState5, useCallback as
|
|
46258
|
+
import { c as _c74 } from "react-compiler-runtime";
|
|
46259
|
+
import { useState as useState5, useCallback as useCallback5 } from "react";
|
|
46197
46260
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
46198
46261
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46199
|
-
import { c as
|
|
46262
|
+
import { c as _c73 } from "react-compiler-runtime";
|
|
46200
46263
|
import * as Toast from "@radix-ui/react-toast";
|
|
46201
46264
|
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
46202
46265
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
46203
46266
|
import { jsx as _jsx75, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
46204
46267
|
var CustomToast = function(t0) {
|
|
46205
|
-
var $ =
|
|
46268
|
+
var $ = _c73(7);
|
|
46206
46269
|
var toast = t0.toast;
|
|
46207
46270
|
var t1;
|
|
46208
46271
|
if ($[0] !== toast.type) {
|
|
@@ -46258,7 +46321,7 @@ var CustomToast = function(t0) {
|
|
|
46258
46321
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46259
46322
|
import { jsx as _jsx76, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
46260
46323
|
var ToastsProvider = function(t0) {
|
|
46261
|
-
var $ =
|
|
46324
|
+
var $ = _c74(15);
|
|
46262
46325
|
var children = t0.children, t1 = t0.bottom;
|
|
46263
46326
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46264
46327
|
var t2;
|
|
@@ -46430,7 +46493,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46430
46493
|
return t;
|
|
46431
46494
|
}
|
|
46432
46495
|
var Root12 = function(t0) {
|
|
46433
|
-
var $ =
|
|
46496
|
+
var $ = _c75(12);
|
|
46434
46497
|
var children;
|
|
46435
46498
|
var className;
|
|
46436
46499
|
var rest;
|
|
@@ -46530,7 +46593,7 @@ function _toPrimitive40(t, r) {
|
|
|
46530
46593
|
return ("string" === r ? String : Number)(t);
|
|
46531
46594
|
}
|
|
46532
46595
|
var Thread = function(props) {
|
|
46533
|
-
var $ =
|
|
46596
|
+
var $ = _c76(4);
|
|
46534
46597
|
var t0;
|
|
46535
46598
|
var t1;
|
|
46536
46599
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -46566,7 +46629,7 @@ var useMessageContext = function() {
|
|
|
46566
46629
|
return useContext17(MessageContext);
|
|
46567
46630
|
};
|
|
46568
46631
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46569
|
-
import { c as
|
|
46632
|
+
import { c as _c77 } from "react-compiler-runtime";
|
|
46570
46633
|
import { useMemo as useMemo15 } from "react";
|
|
46571
46634
|
import { useQuery } from "@tanstack/react-query";
|
|
46572
46635
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46716,7 +46779,7 @@ function _toPrimitive41(t, r) {
|
|
|
46716
46779
|
return ("string" === r ? String : Number)(t);
|
|
46717
46780
|
}
|
|
46718
46781
|
var useAssistant = function(t0) {
|
|
46719
|
-
var $ =
|
|
46782
|
+
var $ = _c77(6);
|
|
46720
46783
|
var assistantId = t0.assistantId;
|
|
46721
46784
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46722
46785
|
var t1;
|
|
@@ -46749,11 +46812,11 @@ var useAssistant = function(t0) {
|
|
|
46749
46812
|
return t2;
|
|
46750
46813
|
};
|
|
46751
46814
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46752
|
-
import { c as
|
|
46815
|
+
import { c as _c84 } from "react-compiler-runtime";
|
|
46753
46816
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46754
|
-
import { c as
|
|
46817
|
+
import { c as _c79 } from "react-compiler-runtime";
|
|
46755
46818
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46756
|
-
import { c as
|
|
46819
|
+
import { c as _c78 } from "react-compiler-runtime";
|
|
46757
46820
|
import { useState as useState6 } from "react";
|
|
46758
46821
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46759
46822
|
import { createContext as createContext12 } from "react";
|
|
@@ -46769,7 +46832,7 @@ var useThreadDialogContext = function() {
|
|
|
46769
46832
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46770
46833
|
import { jsx as _jsx79 } from "react/jsx-runtime";
|
|
46771
46834
|
var Provider4 = function(t0) {
|
|
46772
|
-
var $ =
|
|
46835
|
+
var $ = _c78(5);
|
|
46773
46836
|
var children = t0.children;
|
|
46774
46837
|
var threadDialogContext = useThreadDialogContext();
|
|
46775
46838
|
var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
|
|
@@ -46801,7 +46864,7 @@ var Provider4 = function(t0) {
|
|
|
46801
46864
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46802
46865
|
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46803
46866
|
var Root13 = function(t0) {
|
|
46804
|
-
var $ =
|
|
46867
|
+
var $ = _c79(2);
|
|
46805
46868
|
var children = t0.children;
|
|
46806
46869
|
var t1;
|
|
46807
46870
|
if ($[0] !== children) {
|
|
@@ -46816,10 +46879,10 @@ var Root13 = function(t0) {
|
|
|
46816
46879
|
return t1;
|
|
46817
46880
|
};
|
|
46818
46881
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46819
|
-
import { c as
|
|
46882
|
+
import { c as _c81 } from "react-compiler-runtime";
|
|
46820
46883
|
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46821
46884
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46822
|
-
import { c as
|
|
46885
|
+
import { c as _c80 } from "react-compiler-runtime";
|
|
46823
46886
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46824
46887
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46825
46888
|
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
@@ -46867,7 +46930,7 @@ function _toPrimitive42(t, r) {
|
|
|
46867
46930
|
return ("string" === r ? String : Number)(t);
|
|
46868
46931
|
}
|
|
46869
46932
|
var Button4 = function(props) {
|
|
46870
|
-
var $ =
|
|
46933
|
+
var $ = _c80(3);
|
|
46871
46934
|
var t0;
|
|
46872
46935
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46873
46936
|
t0 = /* @__PURE__ */ _jsx81(ChatBubbleIcon, {});
|
|
@@ -46936,7 +46999,7 @@ function _toPrimitive43(t, r) {
|
|
|
46936
46999
|
return ("string" === r ? String : Number)(t);
|
|
46937
47000
|
}
|
|
46938
47001
|
var Root14 = function(t0) {
|
|
46939
|
-
var $ =
|
|
47002
|
+
var $ = _c81(14);
|
|
46940
47003
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46941
47004
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46942
47005
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -47007,7 +47070,7 @@ var Root14 = function(t0) {
|
|
|
47007
47070
|
return t6;
|
|
47008
47071
|
};
|
|
47009
47072
|
var Trigger = function(args) {
|
|
47010
|
-
var $ =
|
|
47073
|
+
var $ = _c81(3);
|
|
47011
47074
|
var t0;
|
|
47012
47075
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47013
47076
|
t0 = /* @__PURE__ */ _jsx82(Button4, {});
|
|
@@ -47033,15 +47096,15 @@ function _temp6(prev) {
|
|
|
47033
47096
|
return !prev;
|
|
47034
47097
|
}
|
|
47035
47098
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
47036
|
-
import { c as
|
|
47099
|
+
import { c as _c83 } from "react-compiler-runtime";
|
|
47037
47100
|
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
47038
47101
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
47039
|
-
import { c as
|
|
47102
|
+
import { c as _c82 } from "react-compiler-runtime";
|
|
47040
47103
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
47041
47104
|
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
47042
47105
|
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
47043
47106
|
var Close = function() {
|
|
47044
|
-
var $ =
|
|
47107
|
+
var $ = _c82(9);
|
|
47045
47108
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47046
47109
|
var t0 = isOpen ? "flex" : "none";
|
|
47047
47110
|
var t1;
|
|
@@ -47157,7 +47220,7 @@ function _toPrimitive44(t, r) {
|
|
|
47157
47220
|
return ("string" === r ? String : Number)(t);
|
|
47158
47221
|
}
|
|
47159
47222
|
var Root15 = function(t0) {
|
|
47160
|
-
var $ =
|
|
47223
|
+
var $ = _c83(19);
|
|
47161
47224
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47162
47225
|
var isOpen = useThreadDialogContext().isOpen;
|
|
47163
47226
|
if (!isOpen) {
|
|
@@ -47304,7 +47367,7 @@ var Root15 = function(t0) {
|
|
|
47304
47367
|
return t13;
|
|
47305
47368
|
};
|
|
47306
47369
|
var Messages3 = function(t0) {
|
|
47307
|
-
var $ =
|
|
47370
|
+
var $ = _c83(5);
|
|
47308
47371
|
var className = t0.className, style = t0.style;
|
|
47309
47372
|
var t1;
|
|
47310
47373
|
if ($[0] !== style) {
|
|
@@ -47333,7 +47396,7 @@ var Messages3 = function(t0) {
|
|
|
47333
47396
|
return t2;
|
|
47334
47397
|
};
|
|
47335
47398
|
var FormContainer = function(t0) {
|
|
47336
|
-
var $ =
|
|
47399
|
+
var $ = _c83(4);
|
|
47337
47400
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47338
47401
|
var t1;
|
|
47339
47402
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -47357,7 +47420,7 @@ var FormContainer = function(t0) {
|
|
|
47357
47420
|
return t1;
|
|
47358
47421
|
};
|
|
47359
47422
|
var Content8 = function(props) {
|
|
47360
|
-
var $ =
|
|
47423
|
+
var $ = _c83(4);
|
|
47361
47424
|
var t0;
|
|
47362
47425
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47363
47426
|
t0 = /* @__PURE__ */ _jsx84(Messages3, {});
|
|
@@ -47397,7 +47460,7 @@ Content8.FormContainer = FormContainer;
|
|
|
47397
47460
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47398
47461
|
import { jsx as _jsx85, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
47399
47462
|
var ThreadDialog = function() {
|
|
47400
|
-
var $ =
|
|
47463
|
+
var $ = _c84(1);
|
|
47401
47464
|
var t0;
|
|
47402
47465
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47403
47466
|
t0 = /* @__PURE__ */ _jsxs30(Root13, {
|
|
@@ -47416,11 +47479,11 @@ ThreadDialog.Root = Root13;
|
|
|
47416
47479
|
ThreadDialog.Trigger = Trigger;
|
|
47417
47480
|
ThreadDialog.Content = Content8;
|
|
47418
47481
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47419
|
-
import { c as
|
|
47482
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
47420
47483
|
// src/components/threads/AudioThread/index.tsx
|
|
47421
|
-
import { c as
|
|
47484
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
47422
47485
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47423
|
-
import { c as
|
|
47486
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
47424
47487
|
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
47425
47488
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47426
47489
|
import { createContext as createContext13 } from "react";
|
|
@@ -47433,12 +47496,12 @@ var useAudioThreadContext = function() {
|
|
|
47433
47496
|
return useContext19(AudioThreadContext);
|
|
47434
47497
|
};
|
|
47435
47498
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47436
|
-
import { c as
|
|
47499
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
47437
47500
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47438
|
-
import { c as
|
|
47501
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
47439
47502
|
import { useMemo as useMemo18 } from "react";
|
|
47440
47503
|
// src/hooks/misc/usePermission/index.ts
|
|
47441
|
-
import { c as
|
|
47504
|
+
import { c as _c85 } from "react-compiler-runtime";
|
|
47442
47505
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
47443
47506
|
// src/hooks/misc/usePermission/util.ts
|
|
47444
47507
|
var noop = function() {};
|
|
@@ -47462,7 +47525,7 @@ function off(obj) {
|
|
|
47462
47525
|
}
|
|
47463
47526
|
// src/hooks/misc/usePermission/index.ts
|
|
47464
47527
|
var usePermission = function(permissionDesc) {
|
|
47465
|
-
var $ =
|
|
47528
|
+
var $ = _c85(3);
|
|
47466
47529
|
var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
|
|
47467
47530
|
var t0;
|
|
47468
47531
|
var t1;
|
|
@@ -47508,13 +47571,13 @@ var usePermission = function(permissionDesc) {
|
|
|
47508
47571
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
47509
47572
|
import dayjs3 from "dayjs";
|
|
47510
47573
|
import { useAudioCapture } from "use-audio-capture";
|
|
47511
|
-
import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as
|
|
47574
|
+
import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback6, useEffect as useEffect9 } from "react";
|
|
47512
47575
|
import { useAudioPlayer } from "react-use-audio-player";
|
|
47513
47576
|
// src/hooks/misc/useInterval.ts
|
|
47514
|
-
import { c as
|
|
47577
|
+
import { c as _c86 } from "react-compiler-runtime";
|
|
47515
47578
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
47516
47579
|
var useInterval = function(callback, delay) {
|
|
47517
|
-
var $ =
|
|
47580
|
+
var $ = _c86(5);
|
|
47518
47581
|
var savedCallback = useRef6(_temp8);
|
|
47519
47582
|
var t0;
|
|
47520
47583
|
if ($[0] !== callback) {
|
|
@@ -47721,7 +47784,7 @@ var useRecorder = function(_ref) {
|
|
|
47721
47784
|
}, [
|
|
47722
47785
|
audioEngine
|
|
47723
47786
|
]);
|
|
47724
|
-
var handleSilence =
|
|
47787
|
+
var handleSilence = useCallback6(function() {
|
|
47725
47788
|
if (!silenceAnalyser) return;
|
|
47726
47789
|
var frequencyData = new Uint8Array(silenceAnalyser.frequencyBinCount);
|
|
47727
47790
|
silenceAnalyser.getByteFrequencyData(frequencyData);
|
|
@@ -47767,8 +47830,8 @@ var useRecorder = function(_ref) {
|
|
|
47767
47830
|
});
|
|
47768
47831
|
};
|
|
47769
47832
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47770
|
-
import { c as
|
|
47771
|
-
import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as
|
|
47833
|
+
import { c as _c87 } from "react-compiler-runtime";
|
|
47834
|
+
import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback7 } from "react";
|
|
47772
47835
|
import nlp from "compromise";
|
|
47773
47836
|
import { Howler } from "howler";
|
|
47774
47837
|
import { useAudioPlayer as useAudioPlayer2 } from "react-use-audio-player";
|
|
@@ -47850,7 +47913,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47850
47913
|
};
|
|
47851
47914
|
var useMessageAudio = function(t0) {
|
|
47852
47915
|
var _latestMessageProps$l;
|
|
47853
|
-
var $ =
|
|
47916
|
+
var $ = _c87(49);
|
|
47854
47917
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
47855
47918
|
var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
|
|
47856
47919
|
var t1;
|
|
@@ -48230,7 +48293,7 @@ function _asyncToGenerator11(n) {
|
|
|
48230
48293
|
};
|
|
48231
48294
|
}
|
|
48232
48295
|
var useTtsAudioRuntime = function(t0) {
|
|
48233
|
-
var $ =
|
|
48296
|
+
var $ = _c88(30);
|
|
48234
48297
|
var play = t0.play;
|
|
48235
48298
|
var addToast = useToasts().addToast;
|
|
48236
48299
|
var queryClient = useQueryClient6();
|
|
@@ -48406,7 +48469,7 @@ function _temp24() {
|
|
|
48406
48469
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48407
48470
|
import { jsx as _jsx86 } from "react/jsx-runtime";
|
|
48408
48471
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48409
|
-
var $ =
|
|
48472
|
+
var $ = _c89(7);
|
|
48410
48473
|
var children = t0.children, play = t0.play;
|
|
48411
48474
|
var t1;
|
|
48412
48475
|
if ($[0] !== play) {
|
|
@@ -48516,7 +48579,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48516
48579
|
return t;
|
|
48517
48580
|
}
|
|
48518
48581
|
var Content9 = function(t0) {
|
|
48519
|
-
var $ =
|
|
48582
|
+
var $ = _c90(4);
|
|
48520
48583
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48521
48584
|
var t1;
|
|
48522
48585
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -48538,7 +48601,7 @@ var Content9 = function(t0) {
|
|
|
48538
48601
|
return t1;
|
|
48539
48602
|
};
|
|
48540
48603
|
var AudioRuntimeProvider = function(t0) {
|
|
48541
|
-
var $ =
|
|
48604
|
+
var $ = _c90(3);
|
|
48542
48605
|
var children = t0.children, play = t0.play;
|
|
48543
48606
|
var audioThreadContext = useAudioThreadContext();
|
|
48544
48607
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48559,7 +48622,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48559
48622
|
return t1;
|
|
48560
48623
|
};
|
|
48561
48624
|
var Provider5 = function(t0) {
|
|
48562
|
-
var $ =
|
|
48625
|
+
var $ = _c90(9);
|
|
48563
48626
|
var children;
|
|
48564
48627
|
var rest;
|
|
48565
48628
|
if ($[0] !== t0) {
|
|
@@ -48599,7 +48662,7 @@ var Provider5 = function(t0) {
|
|
|
48599
48662
|
return t2;
|
|
48600
48663
|
};
|
|
48601
48664
|
var Root16 = function(t0) {
|
|
48602
|
-
var $ =
|
|
48665
|
+
var $ = _c90(16);
|
|
48603
48666
|
var children;
|
|
48604
48667
|
var className;
|
|
48605
48668
|
var play;
|
|
@@ -48666,21 +48729,21 @@ var Root16 = function(t0) {
|
|
|
48666
48729
|
return t3;
|
|
48667
48730
|
};
|
|
48668
48731
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48669
|
-
import { c as
|
|
48670
|
-
import { useState as useState11, useCallback as
|
|
48732
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
48733
|
+
import { useState as useState11, useCallback as useCallback9, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48671
48734
|
import _9 from "lodash";
|
|
48672
48735
|
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
48673
48736
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
48674
48737
|
import _8 from "lodash";
|
|
48675
48738
|
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
48676
|
-
import { useState as useState10, useEffect as useEffect11, useCallback as
|
|
48739
|
+
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback8 } from "react";
|
|
48677
48740
|
import { cluster } from "radash";
|
|
48678
48741
|
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
48679
48742
|
var barCount = 4;
|
|
48680
48743
|
var BarsVisualizer = function(_ref) {
|
|
48681
48744
|
var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
|
|
48682
48745
|
var _useState10 = _sliced_to_array(useState10([]), 2), barHeights = _useState10[0], setBarHeights = _useState10[1];
|
|
48683
|
-
var draw =
|
|
48746
|
+
var draw = useCallback8(function(_ref2) {
|
|
48684
48747
|
var visualizationAnalyser_0 = _ref2.visualizationAnalyser;
|
|
48685
48748
|
if (!visualizationAnalyser_0) {
|
|
48686
48749
|
setBarHeights(Array(barCount).fill(0));
|
|
@@ -48735,10 +48798,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48735
48798
|
});
|
|
48736
48799
|
};
|
|
48737
48800
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48738
|
-
import { c as
|
|
48801
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
48739
48802
|
import { useMemo as useMemo19 } from "react";
|
|
48740
48803
|
var useStatus = function() {
|
|
48741
|
-
var $ =
|
|
48804
|
+
var $ = _c91(2);
|
|
48742
48805
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48743
48806
|
var t0;
|
|
48744
48807
|
bb0: {
|
|
@@ -48867,7 +48930,7 @@ var Provider6 = function(_ref) {
|
|
|
48867
48930
|
var children = _ref.children;
|
|
48868
48931
|
var audioThreadContext = useAudioThreadContext();
|
|
48869
48932
|
var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
|
|
48870
|
-
var draw =
|
|
48933
|
+
var draw = useCallback9(function(_ref2) {
|
|
48871
48934
|
var visualizationAnalyser = _ref2.visualizationAnalyser;
|
|
48872
48935
|
if (!visualizationAnalyser) {
|
|
48873
48936
|
setScale(1);
|
|
@@ -48898,7 +48961,7 @@ var Provider6 = function(_ref) {
|
|
|
48898
48961
|
});
|
|
48899
48962
|
};
|
|
48900
48963
|
var Root17 = function(t0) {
|
|
48901
|
-
var $ =
|
|
48964
|
+
var $ = _c92(6);
|
|
48902
48965
|
var children;
|
|
48903
48966
|
var rest;
|
|
48904
48967
|
if ($[0] !== t0) {
|
|
@@ -48935,7 +48998,7 @@ var Root17 = function(t0) {
|
|
|
48935
48998
|
return t1;
|
|
48936
48999
|
};
|
|
48937
49000
|
var BarsVisualizer2 = function(t0) {
|
|
48938
|
-
var $ =
|
|
49001
|
+
var $ = _c92(10);
|
|
48939
49002
|
var rest;
|
|
48940
49003
|
var t1;
|
|
48941
49004
|
var t2;
|
|
@@ -48979,7 +49042,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48979
49042
|
return t4;
|
|
48980
49043
|
};
|
|
48981
49044
|
var AssistantVisualizationRoot = function(t0) {
|
|
48982
|
-
var $ =
|
|
49045
|
+
var $ = _c92(17);
|
|
48983
49046
|
var children;
|
|
48984
49047
|
var rest;
|
|
48985
49048
|
var t1;
|
|
@@ -49052,7 +49115,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
49052
49115
|
return t6;
|
|
49053
49116
|
};
|
|
49054
49117
|
var AssistantVisualization = function(props) {
|
|
49055
|
-
var $ =
|
|
49118
|
+
var $ = _c92(3);
|
|
49056
49119
|
var t0;
|
|
49057
49120
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49058
49121
|
t0 = /* @__PURE__ */ _jsx89(BarsVisualizer2, {});
|
|
@@ -49075,7 +49138,7 @@ var AssistantVisualization = function(props) {
|
|
|
49075
49138
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
49076
49139
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
49077
49140
|
var AssistantInfo = function(props) {
|
|
49078
|
-
var $ =
|
|
49141
|
+
var $ = _c92(6);
|
|
49079
49142
|
var assistantNameContext = useContext20(AssistantNameContext);
|
|
49080
49143
|
var t0;
|
|
49081
49144
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49115,7 +49178,7 @@ var AssistantInfo = function(props) {
|
|
|
49115
49178
|
return t2;
|
|
49116
49179
|
};
|
|
49117
49180
|
var Visualization = function(props) {
|
|
49118
|
-
var $ =
|
|
49181
|
+
var $ = _c92(4);
|
|
49119
49182
|
var t0;
|
|
49120
49183
|
var t1;
|
|
49121
49184
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49147,9 +49210,9 @@ Visualization.Provider = Provider6;
|
|
|
49147
49210
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
49148
49211
|
Visualization.AssistantInfo = AssistantInfo;
|
|
49149
49212
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49150
|
-
import { c as
|
|
49213
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
49151
49214
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
49152
|
-
import { c as
|
|
49215
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
49153
49216
|
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
49154
49217
|
import { jsx as _jsx90, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
49155
49218
|
var html = function(_ref) {
|
|
@@ -49159,7 +49222,7 @@ var html = function(_ref) {
|
|
|
49159
49222
|
}).join(""), "\n }");
|
|
49160
49223
|
};
|
|
49161
49224
|
var StatusMessages = function(t0) {
|
|
49162
|
-
var $ =
|
|
49225
|
+
var $ = _c93(9);
|
|
49163
49226
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
49164
49227
|
var t1;
|
|
49165
49228
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49263,7 +49326,7 @@ function _toPrimitive49(t, r) {
|
|
|
49263
49326
|
return ("string" === r ? String : Number)(t);
|
|
49264
49327
|
}
|
|
49265
49328
|
var Status = function(props) {
|
|
49266
|
-
var $ =
|
|
49329
|
+
var $ = _c94(12);
|
|
49267
49330
|
var status = useStatus().status;
|
|
49268
49331
|
if (status === "recording") {
|
|
49269
49332
|
var _t;
|
|
@@ -49360,10 +49423,10 @@ var Status = function(props) {
|
|
|
49360
49423
|
return t1;
|
|
49361
49424
|
};
|
|
49362
49425
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49363
|
-
import { c as
|
|
49426
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
49364
49427
|
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
49365
49428
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49366
|
-
import { c as
|
|
49429
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
49367
49430
|
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49368
49431
|
function ownKeys50(e, r) {
|
|
49369
49432
|
var t = Object.keys(e);
|
|
@@ -49409,7 +49472,7 @@ function _toPrimitive50(t, r) {
|
|
|
49409
49472
|
return ("string" === r ? String : Number)(t);
|
|
49410
49473
|
}
|
|
49411
49474
|
var MicIcon = function(props) {
|
|
49412
|
-
var $ =
|
|
49475
|
+
var $ = _c95(3);
|
|
49413
49476
|
var t0;
|
|
49414
49477
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49415
49478
|
t0 = /* @__PURE__ */ _jsx92("path", {
|
|
@@ -49441,12 +49504,12 @@ var MicIcon = function(props) {
|
|
|
49441
49504
|
return t1;
|
|
49442
49505
|
};
|
|
49443
49506
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49444
|
-
import { c as
|
|
49507
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49445
49508
|
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49446
49509
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49447
49510
|
import { jsx as _jsx93, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49448
49511
|
var ActionButton = function() {
|
|
49449
|
-
var $ =
|
|
49512
|
+
var $ = _c96(27);
|
|
49450
49513
|
var status = useStatus().status;
|
|
49451
49514
|
var audioThreadContext = useAudioThreadContext();
|
|
49452
49515
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -49684,7 +49747,7 @@ function _toPrimitive51(t, r) {
|
|
|
49684
49747
|
return ("string" === r ? String : Number)(t);
|
|
49685
49748
|
}
|
|
49686
49749
|
var Form = function(props) {
|
|
49687
|
-
var $ =
|
|
49750
|
+
var $ = _c97(17);
|
|
49688
49751
|
var status = useStatus().status;
|
|
49689
49752
|
var audioThreadContext = useAudioThreadContext();
|
|
49690
49753
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
@@ -49834,7 +49897,7 @@ function _toPrimitive52(t, r) {
|
|
|
49834
49897
|
return ("string" === r ? String : Number)(t);
|
|
49835
49898
|
}
|
|
49836
49899
|
var AudioThread = function(props) {
|
|
49837
|
-
var $ =
|
|
49900
|
+
var $ = _c98(5);
|
|
49838
49901
|
var t0;
|
|
49839
49902
|
var t1;
|
|
49840
49903
|
var t2;
|
|
@@ -49916,7 +49979,7 @@ function _toPrimitive53(t, r) {
|
|
|
49916
49979
|
return ("string" === r ? String : Number)(t);
|
|
49917
49980
|
}
|
|
49918
49981
|
var AudioThreadDialog = function(props) {
|
|
49919
|
-
var $ =
|
|
49982
|
+
var $ = _c99(4);
|
|
49920
49983
|
var t0;
|
|
49921
49984
|
var t1;
|
|
49922
49985
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -50438,10 +50501,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50438
50501
|
]);
|
|
50439
50502
|
};
|
|
50440
50503
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50441
|
-
import { c as
|
|
50504
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
50442
50505
|
import { jsx as _jsx97 } from "react/jsx-runtime";
|
|
50443
50506
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50444
|
-
var $ =
|
|
50507
|
+
var $ = _c100(5);
|
|
50445
50508
|
var children = t0.children;
|
|
50446
50509
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50447
50510
|
var t1;
|
|
@@ -50469,14 +50532,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50469
50532
|
return t2;
|
|
50470
50533
|
};
|
|
50471
50534
|
// src/components/gui/Gui/index.tsx
|
|
50472
|
-
import { c as
|
|
50535
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50473
50536
|
import { useMemo as useMemo23 } from "react";
|
|
50474
50537
|
import { Flex as Flex35, Card as Card5, Spinner as Spinner3 } from "@radix-ui/themes";
|
|
50475
50538
|
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50476
|
-
import { c as
|
|
50539
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50477
50540
|
import { useMemo as useMemo21 } from "react";
|
|
50478
50541
|
var useLatestAssistantMessage = function() {
|
|
50479
|
-
var $ =
|
|
50542
|
+
var $ = _c101(4);
|
|
50480
50543
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50481
50544
|
var t0;
|
|
50482
50545
|
var t1;
|
|
@@ -50505,11 +50568,11 @@ function _temp11(message) {
|
|
|
50505
50568
|
return message.role === "assistant";
|
|
50506
50569
|
}
|
|
50507
50570
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50508
|
-
import { c as
|
|
50571
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50509
50572
|
import { isEmpty as isEmpty3 } from "radash";
|
|
50510
50573
|
import { useMemo as useMemo22 } from "react";
|
|
50511
50574
|
var useLatestAssistantMessageWithContent = function() {
|
|
50512
|
-
var $ =
|
|
50575
|
+
var $ = _c102(4);
|
|
50513
50576
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50514
50577
|
var t0;
|
|
50515
50578
|
var t1;
|
|
@@ -50543,7 +50606,7 @@ function _temp25(message) {
|
|
|
50543
50606
|
// src/components/gui/Gui/index.tsx
|
|
50544
50607
|
import { jsx as _jsx98, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
50545
50608
|
var StartingToolCalls3 = function() {
|
|
50546
|
-
var $ =
|
|
50609
|
+
var $ = _c103(2);
|
|
50547
50610
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50548
50611
|
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50549
50612
|
var t1;
|
|
@@ -50557,7 +50620,7 @@ var StartingToolCalls3 = function() {
|
|
|
50557
50620
|
return t1;
|
|
50558
50621
|
};
|
|
50559
50622
|
var Content10 = function(t0) {
|
|
50560
|
-
var $ =
|
|
50623
|
+
var $ = _c103(5);
|
|
50561
50624
|
var latestRunStep = t0.latestRunStep;
|
|
50562
50625
|
var t1;
|
|
50563
50626
|
bb0: {
|
|
@@ -50611,7 +50674,7 @@ var Content10 = function(t0) {
|
|
|
50611
50674
|
return t2;
|
|
50612
50675
|
};
|
|
50613
50676
|
var Progress2 = function(t0) {
|
|
50614
|
-
var $ =
|
|
50677
|
+
var $ = _c103(5);
|
|
50615
50678
|
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50616
50679
|
var isMutatingMessage = useIsMutatingMessage();
|
|
50617
50680
|
var t1;
|
|
@@ -50661,7 +50724,7 @@ var Progress2 = function(t0) {
|
|
|
50661
50724
|
return t4;
|
|
50662
50725
|
};
|
|
50663
50726
|
var Gui = function() {
|
|
50664
|
-
var $ =
|
|
50727
|
+
var $ = _c103(8);
|
|
50665
50728
|
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50666
50729
|
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50667
50730
|
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
@@ -50727,7 +50790,7 @@ function _temp13(rs) {
|
|
|
50727
50790
|
return rs.status === "in_progress";
|
|
50728
50791
|
}
|
|
50729
50792
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50730
|
-
import { c as
|
|
50793
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50731
50794
|
import { useMemo as useMemo24 } from "react";
|
|
50732
50795
|
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
50733
50796
|
var _excluded7 = [
|
|
@@ -50752,7 +50815,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50752
50815
|
return t;
|
|
50753
50816
|
}
|
|
50754
50817
|
var MarkdownProvider = function(t0) {
|
|
50755
|
-
var $ =
|
|
50818
|
+
var $ = _c104(9);
|
|
50756
50819
|
var children;
|
|
50757
50820
|
var rest;
|
|
50758
50821
|
if ($[0] !== t0) {
|
|
@@ -50795,18 +50858,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50795
50858
|
return t3;
|
|
50796
50859
|
};
|
|
50797
50860
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50798
|
-
import { c as
|
|
50861
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50799
50862
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50800
|
-
import { c as
|
|
50863
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50801
50864
|
import { useState as useState13 } from "react";
|
|
50802
50865
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50803
50866
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50804
50867
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50805
|
-
import { c as
|
|
50868
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50806
50869
|
import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
|
|
50807
50870
|
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
50808
50871
|
var Content11 = function(t0) {
|
|
50809
|
-
var $ =
|
|
50872
|
+
var $ = _c105(5);
|
|
50810
50873
|
var fileId = t0.fileId;
|
|
50811
50874
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50812
50875
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50872,7 +50935,7 @@ var Content11 = function(t0) {
|
|
|
50872
50935
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50873
50936
|
import { jsx as _jsx101, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50874
50937
|
var FileCitation = function(t0) {
|
|
50875
|
-
var $ =
|
|
50938
|
+
var $ = _c106(18);
|
|
50876
50939
|
var annotation = t0.annotation;
|
|
50877
50940
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50878
50941
|
var t1;
|
|
@@ -51021,7 +51084,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
51021
51084
|
return t;
|
|
51022
51085
|
}
|
|
51023
51086
|
var SourceAnnotation = function(t0) {
|
|
51024
|
-
var $ =
|
|
51087
|
+
var $ = _c107(10);
|
|
51025
51088
|
var children;
|
|
51026
51089
|
var rest;
|
|
51027
51090
|
if ($[0] !== t0) {
|
|
@@ -51078,7 +51141,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51078
51141
|
return null;
|
|
51079
51142
|
};
|
|
51080
51143
|
// src/components/avatars/Avatar.tsx
|
|
51081
|
-
import { c as
|
|
51144
|
+
import { c as _c110 } from "react-compiler-runtime";
|
|
51082
51145
|
// src/enums/index.ts
|
|
51083
51146
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
51084
51147
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -51103,7 +51166,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
51103
51166
|
// src/components/avatars/Avatar.tsx
|
|
51104
51167
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
51105
51168
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51106
|
-
import { c as
|
|
51169
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
51107
51170
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
51108
51171
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
51109
51172
|
var width = function(_ref) {
|
|
@@ -51157,7 +51220,7 @@ var optimizedSrc = function(_ref) {
|
|
|
51157
51220
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51158
51221
|
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
51159
51222
|
var ImageAvatar = function(t0) {
|
|
51160
|
-
var $ =
|
|
51223
|
+
var $ = _c108(9);
|
|
51161
51224
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51162
51225
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51163
51226
|
var t1;
|
|
@@ -51194,7 +51257,7 @@ var ImageAvatar = function(t0) {
|
|
|
51194
51257
|
return t2;
|
|
51195
51258
|
};
|
|
51196
51259
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51197
|
-
import { c as
|
|
51260
|
+
import { c as _c109 } from "react-compiler-runtime";
|
|
51198
51261
|
import { useMemo as useMemo25 } from "react";
|
|
51199
51262
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
51200
51263
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -51204,7 +51267,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
|
|
|
51204
51267
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51205
51268
|
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
51206
51269
|
var IconAvatar = function(t0) {
|
|
51207
|
-
var $ =
|
|
51270
|
+
var $ = _c109(7);
|
|
51208
51271
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51209
51272
|
var t1;
|
|
51210
51273
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
@@ -51238,7 +51301,7 @@ var IconAvatar = function(t0) {
|
|
|
51238
51301
|
// src/components/avatars/Avatar.tsx
|
|
51239
51302
|
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
51240
51303
|
var Avatar6 = function(t0) {
|
|
51241
|
-
var $ =
|
|
51304
|
+
var $ = _c110(14);
|
|
51242
51305
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
51243
51306
|
var size = t1 === void 0 ? "1" : t1;
|
|
51244
51307
|
if (avatar) {
|
|
@@ -51299,7 +51362,7 @@ var Avatar6 = function(t0) {
|
|
|
51299
51362
|
return t2;
|
|
51300
51363
|
};
|
|
51301
51364
|
// src/components/components/ComponentsProvider.tsx
|
|
51302
|
-
import { c as
|
|
51365
|
+
import { c as _c111 } from "react-compiler-runtime";
|
|
51303
51366
|
import { useMemo as useMemo26 } from "react";
|
|
51304
51367
|
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
51305
51368
|
var _excluded9 = [
|
|
@@ -51324,7 +51387,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51324
51387
|
return t;
|
|
51325
51388
|
}
|
|
51326
51389
|
var ComponentsProvider = function(t0) {
|
|
51327
|
-
var $ =
|
|
51390
|
+
var $ = _c111(9);
|
|
51328
51391
|
var children;
|
|
51329
51392
|
var rest;
|
|
51330
51393
|
if ($[0] !== t0) {
|
|
@@ -51367,11 +51430,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51367
51430
|
return t3;
|
|
51368
51431
|
};
|
|
51369
51432
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51370
|
-
import { c as
|
|
51433
|
+
import { c as _c112 } from "react-compiler-runtime";
|
|
51371
51434
|
import { jsx as _jsx107 } from "react/jsx-runtime";
|
|
51372
51435
|
var AssistantProvider = function(t0) {
|
|
51373
51436
|
var _assistant$name;
|
|
51374
|
-
var $ =
|
|
51437
|
+
var $ = _c112(10);
|
|
51375
51438
|
var children = t0.children;
|
|
51376
51439
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51377
51440
|
var t1;
|
|
@@ -51423,5 +51486,5 @@ var AssistantProvider = function(t0) {
|
|
|
51423
51486
|
}
|
|
51424
51487
|
return t6;
|
|
51425
51488
|
};
|
|
51426
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, MessagesSkeleton, RunStep, SourceAnnotation, StartingContentSkeleton, StartingSkeleton, 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 };
|
|
51489
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, Gui, MarkdownContext, MarkdownProvider, MessageContent, MessageGroup, MessagesSkeleton, RunStep, SourceAnnotation, StartingContentSkeleton, StartingSkeleton, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useChangeFilesField, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
51427
51490
|
//# sourceMappingURL=index.js.map
|