@superinterface/react 4.2.1 → 4.3.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 +260 -193
- 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 +257 -194
- 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.cjs
CHANGED
|
@@ -37734,6 +37734,9 @@ __export(index_exports, {
|
|
|
37734
37734
|
useAudioThreadContext: function() {
|
|
37735
37735
|
return useAudioThreadContext;
|
|
37736
37736
|
},
|
|
37737
|
+
useChangeFilesField: function() {
|
|
37738
|
+
return useChangeFilesField;
|
|
37739
|
+
},
|
|
37737
37740
|
useComponents: function() {
|
|
37738
37741
|
return useComponents;
|
|
37739
37742
|
},
|
|
@@ -37957,7 +37960,7 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37957
37960
|
});
|
|
37958
37961
|
};
|
|
37959
37962
|
// src/components/threads/Thread/index.tsx
|
|
37960
|
-
var
|
|
37963
|
+
var import_react_compiler_runtime76 = require("react-compiler-runtime");
|
|
37961
37964
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37962
37965
|
var import_react_compiler_runtime65 = require("react-compiler-runtime");
|
|
37963
37966
|
var import_themes45 = require("@radix-ui/themes");
|
|
@@ -37987,23 +37990,25 @@ var FunctionComponentsContext = /* @__PURE__ */ (0, import_react4.createContext)
|
|
|
37987
37990
|
// src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn.tsx
|
|
37988
37991
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
37989
37992
|
var Fn = function(t0) {
|
|
37990
|
-
var $ = (0, import_react_compiler_runtime.c)(
|
|
37991
|
-
var fn = t0.fn, runStep = t0.runStep;
|
|
37993
|
+
var $ = (0, import_react_compiler_runtime.c)(5);
|
|
37994
|
+
var fn = t0.fn, runStep = t0.runStep, toolCall = t0.toolCall;
|
|
37992
37995
|
var functionComponentsContext = (0, import_react5.useContext)(FunctionComponentsContext);
|
|
37993
37996
|
var componentsContext = (0, import_react5.useContext)(ComponentsContext);
|
|
37994
37997
|
var Component2 = functionComponentsContext[fn.name] || componentsContext.components.Function;
|
|
37995
37998
|
var t1;
|
|
37996
|
-
if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep) {
|
|
37999
|
+
if ($[0] !== Component2 || $[1] !== fn || $[2] !== runStep || $[3] !== toolCall) {
|
|
37997
38000
|
t1 = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Component2, {
|
|
37998
38001
|
fn: fn,
|
|
37999
|
-
runStep: runStep
|
|
38002
|
+
runStep: runStep,
|
|
38003
|
+
toolCall: toolCall
|
|
38000
38004
|
});
|
|
38001
38005
|
$[0] = Component2;
|
|
38002
38006
|
$[1] = fn;
|
|
38003
38007
|
$[2] = runStep;
|
|
38004
|
-
$[3] =
|
|
38008
|
+
$[3] = toolCall;
|
|
38009
|
+
$[4] = t1;
|
|
38005
38010
|
} else {
|
|
38006
|
-
t1 = $[
|
|
38011
|
+
t1 = $[4];
|
|
38007
38012
|
}
|
|
38008
38013
|
return t1;
|
|
38009
38014
|
};
|
|
@@ -38012,22 +38017,24 @@ var import_react_compiler_runtime2 = require("react-compiler-runtime");
|
|
|
38012
38017
|
var import_react6 = require("react");
|
|
38013
38018
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
38014
38019
|
var CodeInterpreter = function(t0) {
|
|
38015
|
-
var $ = (0, import_react_compiler_runtime2.c)(
|
|
38016
|
-
var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep;
|
|
38020
|
+
var $ = (0, import_react_compiler_runtime2.c)(5);
|
|
38021
|
+
var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep, toolCall = t0.toolCall;
|
|
38017
38022
|
var componentsContext = (0, import_react6.useContext)(ComponentsContext);
|
|
38018
38023
|
var Component2 = componentsContext.components.CodeInterpreterToolCall;
|
|
38019
38024
|
var t1;
|
|
38020
|
-
if ($[0] !== Component2 || $[1] !== codeInterpreter || $[2] !== runStep) {
|
|
38025
|
+
if ($[0] !== Component2 || $[1] !== codeInterpreter || $[2] !== runStep || $[3] !== toolCall) {
|
|
38021
38026
|
t1 = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Component2, {
|
|
38022
38027
|
codeInterpreter: codeInterpreter,
|
|
38023
|
-
runStep: runStep
|
|
38028
|
+
runStep: runStep,
|
|
38029
|
+
toolCall: toolCall
|
|
38024
38030
|
});
|
|
38025
38031
|
$[0] = Component2;
|
|
38026
38032
|
$[1] = codeInterpreter;
|
|
38027
38033
|
$[2] = runStep;
|
|
38028
|
-
$[3] =
|
|
38034
|
+
$[3] = toolCall;
|
|
38035
|
+
$[4] = t1;
|
|
38029
38036
|
} else {
|
|
38030
|
-
t1 = $[
|
|
38037
|
+
t1 = $[4];
|
|
38031
38038
|
}
|
|
38032
38039
|
return t1;
|
|
38033
38040
|
};
|
|
@@ -38086,13 +38093,14 @@ var ToolCall = function(t0) {
|
|
|
38086
38093
|
var toolCall = t0.toolCall, runStep = t0.runStep;
|
|
38087
38094
|
if (toolCall.type === "function") {
|
|
38088
38095
|
var _t;
|
|
38089
|
-
if ($[0] !== runStep || $[1] !== toolCall
|
|
38096
|
+
if ($[0] !== runStep || $[1] !== toolCall) {
|
|
38090
38097
|
_t = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Fn, {
|
|
38091
38098
|
fn: toolCall.function,
|
|
38099
|
+
toolCall: toolCall,
|
|
38092
38100
|
runStep: runStep
|
|
38093
38101
|
});
|
|
38094
38102
|
$[0] = runStep;
|
|
38095
|
-
$[1] = toolCall
|
|
38103
|
+
$[1] = toolCall;
|
|
38096
38104
|
$[2] = _t;
|
|
38097
38105
|
} else {
|
|
38098
38106
|
_t = $[2];
|
|
@@ -38101,13 +38109,14 @@ var ToolCall = function(t0) {
|
|
|
38101
38109
|
}
|
|
38102
38110
|
if (toolCall.type === "code_interpreter") {
|
|
38103
38111
|
var _t2;
|
|
38104
|
-
if ($[3] !== runStep || $[4] !== toolCall
|
|
38112
|
+
if ($[3] !== runStep || $[4] !== toolCall) {
|
|
38105
38113
|
_t2 = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CodeInterpreter, {
|
|
38106
38114
|
codeInterpreter: toolCall.code_interpreter,
|
|
38115
|
+
toolCall: toolCall,
|
|
38107
38116
|
runStep: runStep
|
|
38108
38117
|
});
|
|
38109
38118
|
$[3] = runStep;
|
|
38110
|
-
$[4] = toolCall
|
|
38119
|
+
$[4] = toolCall;
|
|
38111
38120
|
$[5] = _t2;
|
|
38112
38121
|
} else {
|
|
38113
38122
|
_t2 = $[5];
|
|
@@ -44693,7 +44702,7 @@ Messages2.Message = Message;
|
|
|
44693
44702
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44694
44703
|
Messages2.Content = Content7;
|
|
44695
44704
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44696
|
-
var
|
|
44705
|
+
var import_react_compiler_runtime72 = require("react-compiler-runtime");
|
|
44697
44706
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44698
44707
|
var import_react_compiler_runtime66 = require("react-compiler-runtime");
|
|
44699
44708
|
var import_react_icons11 = require("@radix-ui/react-icons");
|
|
@@ -45519,11 +45528,13 @@ var Preview = function(props) {
|
|
|
45519
45528
|
return t1;
|
|
45520
45529
|
};
|
|
45521
45530
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45531
|
+
var import_react_compiler_runtime71 = require("react-compiler-runtime");
|
|
45532
|
+
var import_react_icons13 = require("@radix-ui/react-icons");
|
|
45533
|
+
var import_themes50 = require("@radix-ui/themes");
|
|
45534
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45522
45535
|
var import_react55 = require("react");
|
|
45523
45536
|
var import_radash15 = require("radash");
|
|
45524
45537
|
var import_dayjs2 = __toESM(require("dayjs"), 1);
|
|
45525
|
-
var import_react_icons13 = require("@radix-ui/react-icons");
|
|
45526
|
-
var import_themes50 = require("@radix-ui/themes");
|
|
45527
45538
|
// src/hooks/files/useCreateFile/index.ts
|
|
45528
45539
|
var import_react_compiler_runtime70 = require("react-compiler-runtime");
|
|
45529
45540
|
var import_react_query7 = require("@tanstack/react-query");
|
|
@@ -45836,51 +45847,7 @@ var useCreateFile = function(t0) {
|
|
|
45836
45847
|
};
|
|
45837
45848
|
function _temp4() {}
|
|
45838
45849
|
function _temp23() {}
|
|
45839
|
-
// src/
|
|
45840
|
-
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
45841
|
-
function ownKeys36(e, r) {
|
|
45842
|
-
var t = Object.keys(e);
|
|
45843
|
-
if (Object.getOwnPropertySymbols) {
|
|
45844
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
45845
|
-
r && (o = o.filter(function(r2) {
|
|
45846
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45847
|
-
})), t.push.apply(t, o);
|
|
45848
|
-
}
|
|
45849
|
-
return t;
|
|
45850
|
-
}
|
|
45851
|
-
function _objectSpread36(e) {
|
|
45852
|
-
for(var r = 1; r < arguments.length; r++){
|
|
45853
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
45854
|
-
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45855
|
-
_defineProperty36(e, r2, t[r2]);
|
|
45856
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45857
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45858
|
-
});
|
|
45859
|
-
}
|
|
45860
|
-
return e;
|
|
45861
|
-
}
|
|
45862
|
-
function _defineProperty36(e, r, t) {
|
|
45863
|
-
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45864
|
-
value: t,
|
|
45865
|
-
enumerable: true,
|
|
45866
|
-
configurable: true,
|
|
45867
|
-
writable: true
|
|
45868
|
-
}) : e[r] = t, e;
|
|
45869
|
-
}
|
|
45870
|
-
function _toPropertyKey36(t) {
|
|
45871
|
-
var i = _toPrimitive36(t, "string");
|
|
45872
|
-
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45873
|
-
}
|
|
45874
|
-
function _toPrimitive36(t, r) {
|
|
45875
|
-
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45876
|
-
var e = t[Symbol.toPrimitive];
|
|
45877
|
-
if (void 0 !== e) {
|
|
45878
|
-
var i = e.call(t, r || "default");
|
|
45879
|
-
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45880
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45881
|
-
}
|
|
45882
|
-
return ("string" === r ? String : Number)(t);
|
|
45883
|
-
}
|
|
45850
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45884
45851
|
function asyncGeneratorStep8(n, t, e, r, o, a, c) {
|
|
45885
45852
|
try {
|
|
45886
45853
|
var i = n[a](c), u = i.value;
|
|
@@ -45945,7 +45912,6 @@ function AsyncFromSyncIterator(r) {
|
|
|
45945
45912
|
}
|
|
45946
45913
|
}, new AsyncFromSyncIterator(r);
|
|
45947
45914
|
}
|
|
45948
|
-
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";
|
|
45949
45915
|
var purpose = function(_ref) {
|
|
45950
45916
|
var fileObject = _ref.fileObject;
|
|
45951
45917
|
if (fileObject.type.startsWith("image/")) {
|
|
@@ -45953,11 +45919,11 @@ var purpose = function(_ref) {
|
|
|
45953
45919
|
}
|
|
45954
45920
|
return "assistants";
|
|
45955
45921
|
};
|
|
45956
|
-
var
|
|
45957
|
-
var
|
|
45922
|
+
var useChangeFilesField = function() {
|
|
45923
|
+
var setFiles = useMessageFormContext().setFiles;
|
|
45958
45924
|
var createFile = useCreateFile().createFile;
|
|
45959
45925
|
var addToast = useToasts().addToast;
|
|
45960
|
-
var
|
|
45926
|
+
var changeFilesField = (0, import_react55.useCallback)(/* @__PURE__ */ function() {
|
|
45961
45927
|
var _ref2 = _asyncToGenerator8(function(event) {
|
|
45962
45928
|
var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
|
|
45963
45929
|
return _ts_generator(this, function(_state) {
|
|
@@ -46128,40 +46094,140 @@ var Control2 = function(props) {
|
|
|
46128
46094
|
createFile,
|
|
46129
46095
|
setFiles
|
|
46130
46096
|
]);
|
|
46131
|
-
return
|
|
46132
|
-
|
|
46133
|
-
|
|
46134
|
-
|
|
46135
|
-
|
|
46136
|
-
|
|
46097
|
+
return {
|
|
46098
|
+
changeFilesField: changeFilesField
|
|
46099
|
+
};
|
|
46100
|
+
};
|
|
46101
|
+
// src/lib/files/filesFieldAccept.ts
|
|
46102
|
+
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";
|
|
46103
|
+
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
46104
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
46105
|
+
function ownKeys36(e, r) {
|
|
46106
|
+
var t = Object.keys(e);
|
|
46107
|
+
if (Object.getOwnPropertySymbols) {
|
|
46108
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
46109
|
+
r && (o = o.filter(function(r2) {
|
|
46110
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
46111
|
+
})), t.push.apply(t, o);
|
|
46112
|
+
}
|
|
46113
|
+
return t;
|
|
46114
|
+
}
|
|
46115
|
+
function _objectSpread36(e) {
|
|
46116
|
+
for(var r = 1; r < arguments.length; r++){
|
|
46117
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
46118
|
+
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
46119
|
+
_defineProperty36(e, r2, t[r2]);
|
|
46120
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
46121
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
46122
|
+
});
|
|
46123
|
+
}
|
|
46124
|
+
return e;
|
|
46125
|
+
}
|
|
46126
|
+
function _defineProperty36(e, r, t) {
|
|
46127
|
+
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
46128
|
+
value: t,
|
|
46129
|
+
enumerable: true,
|
|
46130
|
+
configurable: true,
|
|
46131
|
+
writable: true
|
|
46132
|
+
}) : e[r] = t, e;
|
|
46133
|
+
}
|
|
46134
|
+
function _toPropertyKey36(t) {
|
|
46135
|
+
var i = _toPrimitive36(t, "string");
|
|
46136
|
+
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
46137
|
+
}
|
|
46138
|
+
function _toPrimitive36(t, r) {
|
|
46139
|
+
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
46140
|
+
var e = t[Symbol.toPrimitive];
|
|
46141
|
+
if (void 0 !== e) {
|
|
46142
|
+
var i = e.call(t, r || "default");
|
|
46143
|
+
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
46144
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
46145
|
+
}
|
|
46146
|
+
return ("string" === r ? String : Number)(t);
|
|
46147
|
+
}
|
|
46148
|
+
var Control2 = function(props) {
|
|
46149
|
+
var $ = (0, import_react_compiler_runtime71.c)(11);
|
|
46150
|
+
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
|
|
46151
|
+
var changeFilesField = useChangeFilesField().changeFilesField;
|
|
46152
|
+
var t0 = isDisabled || isLoading;
|
|
46153
|
+
var t1;
|
|
46154
|
+
var t2;
|
|
46155
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46156
|
+
t1 = {
|
|
46157
|
+
position: "relative",
|
|
46158
|
+
overflow: "hidden"
|
|
46159
|
+
};
|
|
46160
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons13.FilePlusIcon, {});
|
|
46161
|
+
$[0] = t1;
|
|
46162
|
+
$[1] = t2;
|
|
46163
|
+
} else {
|
|
46164
|
+
t1 = $[0];
|
|
46165
|
+
t2 = $[1];
|
|
46166
|
+
}
|
|
46167
|
+
var t3;
|
|
46168
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46169
|
+
t3 = {
|
|
46170
|
+
cursor: "pointer",
|
|
46171
|
+
position: "absolute",
|
|
46172
|
+
top: 0,
|
|
46173
|
+
left: 0,
|
|
46174
|
+
right: 0,
|
|
46175
|
+
bottom: 0,
|
|
46176
|
+
opacity: 0
|
|
46177
|
+
};
|
|
46178
|
+
$[2] = t3;
|
|
46179
|
+
} else {
|
|
46180
|
+
t3 = $[2];
|
|
46181
|
+
}
|
|
46182
|
+
var t4;
|
|
46183
|
+
if ($[3] !== changeFilesField) {
|
|
46184
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("input", {
|
|
46185
|
+
type: "file",
|
|
46186
|
+
multiple: true,
|
|
46187
|
+
accept: filesFieldAccept,
|
|
46188
|
+
onChange: changeFilesField,
|
|
46189
|
+
style: t3
|
|
46190
|
+
});
|
|
46191
|
+
$[3] = changeFilesField;
|
|
46192
|
+
$[4] = t4;
|
|
46193
|
+
} else {
|
|
46194
|
+
t4 = $[4];
|
|
46195
|
+
}
|
|
46196
|
+
var t5;
|
|
46197
|
+
if ($[5] !== t0 || $[6] !== t4) {
|
|
46198
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes50.IconButton, {
|
|
46137
46199
|
type: "button",
|
|
46138
46200
|
variant: "ghost",
|
|
46139
46201
|
color: "gray",
|
|
46140
|
-
disabled:
|
|
46141
|
-
style:
|
|
46142
|
-
position: "relative",
|
|
46143
|
-
overflow: "hidden"
|
|
46144
|
-
},
|
|
46202
|
+
disabled: t0,
|
|
46203
|
+
style: t1,
|
|
46145
46204
|
children: [
|
|
46146
|
-
|
|
46147
|
-
|
|
46148
|
-
type: "file",
|
|
46149
|
-
multiple: true,
|
|
46150
|
-
accept: accept,
|
|
46151
|
-
onChange: onChange,
|
|
46152
|
-
style: {
|
|
46153
|
-
cursor: "pointer",
|
|
46154
|
-
position: "absolute",
|
|
46155
|
-
top: 0,
|
|
46156
|
-
left: 0,
|
|
46157
|
-
right: 0,
|
|
46158
|
-
bottom: 0,
|
|
46159
|
-
opacity: 0
|
|
46160
|
-
}
|
|
46161
|
-
})
|
|
46205
|
+
t2,
|
|
46206
|
+
t4
|
|
46162
46207
|
]
|
|
46163
|
-
})
|
|
46164
|
-
|
|
46208
|
+
});
|
|
46209
|
+
$[5] = t0;
|
|
46210
|
+
$[6] = t4;
|
|
46211
|
+
$[7] = t5;
|
|
46212
|
+
} else {
|
|
46213
|
+
t5 = $[7];
|
|
46214
|
+
}
|
|
46215
|
+
var t6;
|
|
46216
|
+
if ($[8] !== props || $[9] !== t5) {
|
|
46217
|
+
t6 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes50.Flex, _objectSpread36(_objectSpread36({
|
|
46218
|
+
pt: "2",
|
|
46219
|
+
pr: "2",
|
|
46220
|
+
flexGrow: "0"
|
|
46221
|
+
}, props), {}, {
|
|
46222
|
+
children: t5
|
|
46223
|
+
}));
|
|
46224
|
+
$[8] = props;
|
|
46225
|
+
$[9] = t5;
|
|
46226
|
+
$[10] = t6;
|
|
46227
|
+
} else {
|
|
46228
|
+
t6 = $[10];
|
|
46229
|
+
}
|
|
46230
|
+
return t6;
|
|
46165
46231
|
};
|
|
46166
46232
|
// src/components/threads/Thread/MessageForm/Field/Files/index.tsx
|
|
46167
46233
|
var Files = {
|
|
@@ -46297,7 +46363,7 @@ function _toPrimitive38(t, r) {
|
|
|
46297
46363
|
return ("string" === r ? String : Number)(t);
|
|
46298
46364
|
}
|
|
46299
46365
|
var MessageForm = function(props) {
|
|
46300
|
-
var $ = (0,
|
|
46366
|
+
var $ = (0, import_react_compiler_runtime72.c)(3);
|
|
46301
46367
|
var t0;
|
|
46302
46368
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46303
46369
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Field.Root, {
|
|
@@ -46326,22 +46392,22 @@ MessageForm.Root = Root8;
|
|
|
46326
46392
|
MessageForm.Field = Field;
|
|
46327
46393
|
MessageForm.Submit = Submit;
|
|
46328
46394
|
// src/components/threads/Thread/Root/index.tsx
|
|
46329
|
-
var
|
|
46395
|
+
var import_react_compiler_runtime75 = require("react-compiler-runtime");
|
|
46330
46396
|
var import_themes53 = require("@radix-ui/themes");
|
|
46331
46397
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46332
46398
|
var Provider2 = SuperinterfaceProvider;
|
|
46333
46399
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46334
|
-
var
|
|
46400
|
+
var import_react_compiler_runtime74 = require("react-compiler-runtime");
|
|
46335
46401
|
var import_react56 = require("react");
|
|
46336
46402
|
var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
|
|
46337
46403
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46338
|
-
var
|
|
46404
|
+
var import_react_compiler_runtime73 = require("react-compiler-runtime");
|
|
46339
46405
|
var Toast = __toESM(require("@radix-ui/react-toast"), 1);
|
|
46340
46406
|
var import_themes52 = require("@radix-ui/themes");
|
|
46341
46407
|
var import_react_icons14 = require("@radix-ui/react-icons");
|
|
46342
46408
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
46343
46409
|
var CustomToast = function(t0) {
|
|
46344
|
-
var $ = (0,
|
|
46410
|
+
var $ = (0, import_react_compiler_runtime73.c)(7);
|
|
46345
46411
|
var toast = t0.toast;
|
|
46346
46412
|
var t1;
|
|
46347
46413
|
if ($[0] !== toast.type) {
|
|
@@ -46397,7 +46463,7 @@ var CustomToast = function(t0) {
|
|
|
46397
46463
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46398
46464
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
46399
46465
|
var ToastsProvider = function(t0) {
|
|
46400
|
-
var $ = (0,
|
|
46466
|
+
var $ = (0, import_react_compiler_runtime74.c)(15);
|
|
46401
46467
|
var children = t0.children, t1 = t0.bottom;
|
|
46402
46468
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46403
46469
|
var t2;
|
|
@@ -46569,7 +46635,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46569
46635
|
return t;
|
|
46570
46636
|
}
|
|
46571
46637
|
var Root12 = function(t0) {
|
|
46572
|
-
var $ = (0,
|
|
46638
|
+
var $ = (0, import_react_compiler_runtime75.c)(12);
|
|
46573
46639
|
var children;
|
|
46574
46640
|
var className;
|
|
46575
46641
|
var rest;
|
|
@@ -46669,7 +46735,7 @@ function _toPrimitive40(t, r) {
|
|
|
46669
46735
|
return ("string" === r ? String : Number)(t);
|
|
46670
46736
|
}
|
|
46671
46737
|
var Thread = function(props) {
|
|
46672
|
-
var $ = (0,
|
|
46738
|
+
var $ = (0, import_react_compiler_runtime76.c)(4);
|
|
46673
46739
|
var t0;
|
|
46674
46740
|
var t1;
|
|
46675
46741
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -46705,7 +46771,7 @@ var useMessageContext = function() {
|
|
|
46705
46771
|
return (0, import_react57.useContext)(MessageContext);
|
|
46706
46772
|
};
|
|
46707
46773
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46708
|
-
var
|
|
46774
|
+
var import_react_compiler_runtime77 = require("react-compiler-runtime");
|
|
46709
46775
|
var import_react58 = require("react");
|
|
46710
46776
|
var import_react_query9 = require("@tanstack/react-query");
|
|
46711
46777
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46855,7 +46921,7 @@ function _toPrimitive41(t, r) {
|
|
|
46855
46921
|
return ("string" === r ? String : Number)(t);
|
|
46856
46922
|
}
|
|
46857
46923
|
var useAssistant = function(t0) {
|
|
46858
|
-
var $ = (0,
|
|
46924
|
+
var $ = (0, import_react_compiler_runtime77.c)(6);
|
|
46859
46925
|
var assistantId = t0.assistantId;
|
|
46860
46926
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46861
46927
|
var t1;
|
|
@@ -46888,11 +46954,11 @@ var useAssistant = function(t0) {
|
|
|
46888
46954
|
return t2;
|
|
46889
46955
|
};
|
|
46890
46956
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46891
|
-
var
|
|
46957
|
+
var import_react_compiler_runtime84 = require("react-compiler-runtime");
|
|
46892
46958
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46893
|
-
var
|
|
46959
|
+
var import_react_compiler_runtime79 = require("react-compiler-runtime");
|
|
46894
46960
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46895
|
-
var
|
|
46961
|
+
var import_react_compiler_runtime78 = require("react-compiler-runtime");
|
|
46896
46962
|
var import_react61 = require("react");
|
|
46897
46963
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46898
46964
|
var import_react59 = require("react");
|
|
@@ -46908,7 +46974,7 @@ var useThreadDialogContext = function() {
|
|
|
46908
46974
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46909
46975
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
46910
46976
|
var Provider4 = function(t0) {
|
|
46911
|
-
var $ = (0,
|
|
46977
|
+
var $ = (0, import_react_compiler_runtime78.c)(5);
|
|
46912
46978
|
var children = t0.children;
|
|
46913
46979
|
var threadDialogContext = useThreadDialogContext();
|
|
46914
46980
|
var _ref = _sliced_to_array((0, import_react61.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
@@ -46940,7 +47006,7 @@ var Provider4 = function(t0) {
|
|
|
46940
47006
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46941
47007
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
46942
47008
|
var Root13 = function(t0) {
|
|
46943
|
-
var $ = (0,
|
|
47009
|
+
var $ = (0, import_react_compiler_runtime79.c)(2);
|
|
46944
47010
|
var children = t0.children;
|
|
46945
47011
|
var t1;
|
|
46946
47012
|
if ($[0] !== children) {
|
|
@@ -46955,10 +47021,10 @@ var Root13 = function(t0) {
|
|
|
46955
47021
|
return t1;
|
|
46956
47022
|
};
|
|
46957
47023
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46958
|
-
var
|
|
47024
|
+
var import_react_compiler_runtime81 = require("react-compiler-runtime");
|
|
46959
47025
|
var import_themes55 = require("@radix-ui/themes");
|
|
46960
47026
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46961
|
-
var
|
|
47027
|
+
var import_react_compiler_runtime80 = require("react-compiler-runtime");
|
|
46962
47028
|
var import_themes54 = require("@radix-ui/themes");
|
|
46963
47029
|
var import_react_icons15 = require("@radix-ui/react-icons");
|
|
46964
47030
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
@@ -47006,7 +47072,7 @@ function _toPrimitive42(t, r) {
|
|
|
47006
47072
|
return ("string" === r ? String : Number)(t);
|
|
47007
47073
|
}
|
|
47008
47074
|
var Button4 = function(props) {
|
|
47009
|
-
var $ = (0,
|
|
47075
|
+
var $ = (0, import_react_compiler_runtime80.c)(3);
|
|
47010
47076
|
var t0;
|
|
47011
47077
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47012
47078
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_icons15.ChatBubbleIcon, {});
|
|
@@ -47075,7 +47141,7 @@ function _toPrimitive43(t, r) {
|
|
|
47075
47141
|
return ("string" === r ? String : Number)(t);
|
|
47076
47142
|
}
|
|
47077
47143
|
var Root14 = function(t0) {
|
|
47078
|
-
var $ = (0,
|
|
47144
|
+
var $ = (0, import_react_compiler_runtime81.c)(14);
|
|
47079
47145
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
47080
47146
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47081
47147
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -47146,7 +47212,7 @@ var Root14 = function(t0) {
|
|
|
47146
47212
|
return t6;
|
|
47147
47213
|
};
|
|
47148
47214
|
var Trigger = function(args) {
|
|
47149
|
-
var $ = (0,
|
|
47215
|
+
var $ = (0, import_react_compiler_runtime81.c)(3);
|
|
47150
47216
|
var t0;
|
|
47151
47217
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47152
47218
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button4, {});
|
|
@@ -47172,15 +47238,15 @@ function _temp6(prev) {
|
|
|
47172
47238
|
return !prev;
|
|
47173
47239
|
}
|
|
47174
47240
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
47175
|
-
var
|
|
47241
|
+
var import_react_compiler_runtime83 = require("react-compiler-runtime");
|
|
47176
47242
|
var import_themes57 = require("@radix-ui/themes");
|
|
47177
47243
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
47178
|
-
var
|
|
47244
|
+
var import_react_compiler_runtime82 = require("react-compiler-runtime");
|
|
47179
47245
|
var import_react_icons16 = require("@radix-ui/react-icons");
|
|
47180
47246
|
var import_themes56 = require("@radix-ui/themes");
|
|
47181
47247
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
47182
47248
|
var Close = function() {
|
|
47183
|
-
var $ = (0,
|
|
47249
|
+
var $ = (0, import_react_compiler_runtime82.c)(9);
|
|
47184
47250
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47185
47251
|
var t0 = isOpen ? "flex" : "none";
|
|
47186
47252
|
var t1;
|
|
@@ -47296,7 +47362,7 @@ function _toPrimitive44(t, r) {
|
|
|
47296
47362
|
return ("string" === r ? String : Number)(t);
|
|
47297
47363
|
}
|
|
47298
47364
|
var Root15 = function(t0) {
|
|
47299
|
-
var $ = (0,
|
|
47365
|
+
var $ = (0, import_react_compiler_runtime83.c)(19);
|
|
47300
47366
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47301
47367
|
var isOpen = useThreadDialogContext().isOpen;
|
|
47302
47368
|
if (!isOpen) {
|
|
@@ -47443,7 +47509,7 @@ var Root15 = function(t0) {
|
|
|
47443
47509
|
return t13;
|
|
47444
47510
|
};
|
|
47445
47511
|
var Messages3 = function(t0) {
|
|
47446
|
-
var $ = (0,
|
|
47512
|
+
var $ = (0, import_react_compiler_runtime83.c)(5);
|
|
47447
47513
|
var className = t0.className, style = t0.style;
|
|
47448
47514
|
var t1;
|
|
47449
47515
|
if ($[0] !== style) {
|
|
@@ -47472,7 +47538,7 @@ var Messages3 = function(t0) {
|
|
|
47472
47538
|
return t2;
|
|
47473
47539
|
};
|
|
47474
47540
|
var FormContainer = function(t0) {
|
|
47475
|
-
var $ = (0,
|
|
47541
|
+
var $ = (0, import_react_compiler_runtime83.c)(4);
|
|
47476
47542
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47477
47543
|
var t1;
|
|
47478
47544
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -47496,7 +47562,7 @@ var FormContainer = function(t0) {
|
|
|
47496
47562
|
return t1;
|
|
47497
47563
|
};
|
|
47498
47564
|
var Content8 = function(props) {
|
|
47499
|
-
var $ = (0,
|
|
47565
|
+
var $ = (0, import_react_compiler_runtime83.c)(4);
|
|
47500
47566
|
var t0;
|
|
47501
47567
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47502
47568
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Messages3, {});
|
|
@@ -47536,7 +47602,7 @@ Content8.FormContainer = FormContainer;
|
|
|
47536
47602
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47537
47603
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
47538
47604
|
var ThreadDialog = function() {
|
|
47539
|
-
var $ = (0,
|
|
47605
|
+
var $ = (0, import_react_compiler_runtime84.c)(1);
|
|
47540
47606
|
var t0;
|
|
47541
47607
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47542
47608
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root13, {
|
|
@@ -47555,11 +47621,11 @@ ThreadDialog.Root = Root13;
|
|
|
47555
47621
|
ThreadDialog.Trigger = Trigger;
|
|
47556
47622
|
ThreadDialog.Content = Content8;
|
|
47557
47623
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47558
|
-
var
|
|
47624
|
+
var import_react_compiler_runtime99 = require("react-compiler-runtime");
|
|
47559
47625
|
// src/components/threads/AudioThread/index.tsx
|
|
47560
|
-
var
|
|
47626
|
+
var import_react_compiler_runtime98 = require("react-compiler-runtime");
|
|
47561
47627
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47562
|
-
var
|
|
47628
|
+
var import_react_compiler_runtime90 = require("react-compiler-runtime");
|
|
47563
47629
|
var import_themes58 = require("@radix-ui/themes");
|
|
47564
47630
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47565
47631
|
var import_react62 = require("react");
|
|
@@ -47572,12 +47638,12 @@ var useAudioThreadContext = function() {
|
|
|
47572
47638
|
return (0, import_react63.useContext)(AudioThreadContext);
|
|
47573
47639
|
};
|
|
47574
47640
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47575
|
-
var
|
|
47641
|
+
var import_react_compiler_runtime89 = require("react-compiler-runtime");
|
|
47576
47642
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47577
|
-
var
|
|
47643
|
+
var import_react_compiler_runtime88 = require("react-compiler-runtime");
|
|
47578
47644
|
var import_react68 = require("react");
|
|
47579
47645
|
// src/hooks/misc/usePermission/index.ts
|
|
47580
|
-
var
|
|
47646
|
+
var import_react_compiler_runtime85 = require("react-compiler-runtime");
|
|
47581
47647
|
var import_react64 = require("react");
|
|
47582
47648
|
// src/hooks/misc/usePermission/util.ts
|
|
47583
47649
|
var noop = function() {};
|
|
@@ -47601,7 +47667,7 @@ function off(obj) {
|
|
|
47601
47667
|
}
|
|
47602
47668
|
// src/hooks/misc/usePermission/index.ts
|
|
47603
47669
|
var usePermission = function(permissionDesc) {
|
|
47604
|
-
var $ = (0,
|
|
47670
|
+
var $ = (0, import_react_compiler_runtime85.c)(3);
|
|
47605
47671
|
var _ref = _sliced_to_array((0, import_react64.useState)(""), 2), state = _ref[0], setState = _ref[1];
|
|
47606
47672
|
var t0;
|
|
47607
47673
|
var t1;
|
|
@@ -47650,10 +47716,10 @@ var import_use_audio_capture = require("use-audio-capture");
|
|
|
47650
47716
|
var import_react66 = require("react");
|
|
47651
47717
|
var import_react_use_audio_player = require("react-use-audio-player");
|
|
47652
47718
|
// src/hooks/misc/useInterval.ts
|
|
47653
|
-
var
|
|
47719
|
+
var import_react_compiler_runtime86 = require("react-compiler-runtime");
|
|
47654
47720
|
var import_react65 = require("react");
|
|
47655
47721
|
var useInterval = function(callback, delay) {
|
|
47656
|
-
var $ = (0,
|
|
47722
|
+
var $ = (0, import_react_compiler_runtime86.c)(5);
|
|
47657
47723
|
var savedCallback = (0, import_react65.useRef)(_temp8);
|
|
47658
47724
|
var t0;
|
|
47659
47725
|
if ($[0] !== callback) {
|
|
@@ -47906,7 +47972,7 @@ var useRecorder = function(_ref) {
|
|
|
47906
47972
|
});
|
|
47907
47973
|
};
|
|
47908
47974
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47909
|
-
var
|
|
47975
|
+
var import_react_compiler_runtime87 = require("react-compiler-runtime");
|
|
47910
47976
|
var import_react67 = require("react");
|
|
47911
47977
|
var import_compromise = __toESM(require("compromise"), 1);
|
|
47912
47978
|
var import_howler = require("howler");
|
|
@@ -47989,7 +48055,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47989
48055
|
};
|
|
47990
48056
|
var useMessageAudio = function(t0) {
|
|
47991
48057
|
var _latestMessageProps$l;
|
|
47992
|
-
var $ = (0,
|
|
48058
|
+
var $ = (0, import_react_compiler_runtime87.c)(49);
|
|
47993
48059
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
47994
48060
|
var _ref = _sliced_to_array((0, import_react67.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
|
|
47995
48061
|
var t1;
|
|
@@ -48369,7 +48435,7 @@ function _asyncToGenerator11(n) {
|
|
|
48369
48435
|
};
|
|
48370
48436
|
}
|
|
48371
48437
|
var useTtsAudioRuntime = function(t0) {
|
|
48372
|
-
var $ = (0,
|
|
48438
|
+
var $ = (0, import_react_compiler_runtime88.c)(30);
|
|
48373
48439
|
var play = t0.play;
|
|
48374
48440
|
var addToast = useToasts().addToast;
|
|
48375
48441
|
var queryClient = (0, import_react_query10.useQueryClient)();
|
|
@@ -48545,7 +48611,7 @@ function _temp24() {
|
|
|
48545
48611
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48546
48612
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
48547
48613
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48548
|
-
var $ = (0,
|
|
48614
|
+
var $ = (0, import_react_compiler_runtime89.c)(7);
|
|
48549
48615
|
var children = t0.children, play = t0.play;
|
|
48550
48616
|
var t1;
|
|
48551
48617
|
if ($[0] !== play) {
|
|
@@ -48655,7 +48721,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48655
48721
|
return t;
|
|
48656
48722
|
}
|
|
48657
48723
|
var Content9 = function(t0) {
|
|
48658
|
-
var $ = (0,
|
|
48724
|
+
var $ = (0, import_react_compiler_runtime90.c)(4);
|
|
48659
48725
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48660
48726
|
var t1;
|
|
48661
48727
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -48677,7 +48743,7 @@ var Content9 = function(t0) {
|
|
|
48677
48743
|
return t1;
|
|
48678
48744
|
};
|
|
48679
48745
|
var AudioRuntimeProvider = function(t0) {
|
|
48680
|
-
var $ = (0,
|
|
48746
|
+
var $ = (0, import_react_compiler_runtime90.c)(3);
|
|
48681
48747
|
var children = t0.children, play = t0.play;
|
|
48682
48748
|
var audioThreadContext = useAudioThreadContext();
|
|
48683
48749
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48698,7 +48764,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48698
48764
|
return t1;
|
|
48699
48765
|
};
|
|
48700
48766
|
var Provider5 = function(t0) {
|
|
48701
|
-
var $ = (0,
|
|
48767
|
+
var $ = (0, import_react_compiler_runtime90.c)(9);
|
|
48702
48768
|
var children;
|
|
48703
48769
|
var rest;
|
|
48704
48770
|
if ($[0] !== t0) {
|
|
@@ -48738,7 +48804,7 @@ var Provider5 = function(t0) {
|
|
|
48738
48804
|
return t2;
|
|
48739
48805
|
};
|
|
48740
48806
|
var Root16 = function(t0) {
|
|
48741
|
-
var $ = (0,
|
|
48807
|
+
var $ = (0, import_react_compiler_runtime90.c)(16);
|
|
48742
48808
|
var children;
|
|
48743
48809
|
var className;
|
|
48744
48810
|
var play;
|
|
@@ -48805,7 +48871,7 @@ var Root16 = function(t0) {
|
|
|
48805
48871
|
return t3;
|
|
48806
48872
|
};
|
|
48807
48873
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48808
|
-
var
|
|
48874
|
+
var import_react_compiler_runtime92 = require("react-compiler-runtime");
|
|
48809
48875
|
var import_react71 = require("react");
|
|
48810
48876
|
var import_lodash9 = __toESM(require("lodash"), 1);
|
|
48811
48877
|
var import_themes60 = require("@radix-ui/themes");
|
|
@@ -48874,10 +48940,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48874
48940
|
});
|
|
48875
48941
|
};
|
|
48876
48942
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48877
|
-
var
|
|
48943
|
+
var import_react_compiler_runtime91 = require("react-compiler-runtime");
|
|
48878
48944
|
var import_react70 = require("react");
|
|
48879
48945
|
var useStatus = function() {
|
|
48880
|
-
var $ = (0,
|
|
48946
|
+
var $ = (0, import_react_compiler_runtime91.c)(2);
|
|
48881
48947
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48882
48948
|
var t0;
|
|
48883
48949
|
bb0: {
|
|
@@ -49037,7 +49103,7 @@ var Provider6 = function(_ref) {
|
|
|
49037
49103
|
});
|
|
49038
49104
|
};
|
|
49039
49105
|
var Root17 = function(t0) {
|
|
49040
|
-
var $ = (0,
|
|
49106
|
+
var $ = (0, import_react_compiler_runtime92.c)(6);
|
|
49041
49107
|
var children;
|
|
49042
49108
|
var rest;
|
|
49043
49109
|
if ($[0] !== t0) {
|
|
@@ -49074,7 +49140,7 @@ var Root17 = function(t0) {
|
|
|
49074
49140
|
return t1;
|
|
49075
49141
|
};
|
|
49076
49142
|
var BarsVisualizer2 = function(t0) {
|
|
49077
|
-
var $ = (0,
|
|
49143
|
+
var $ = (0, import_react_compiler_runtime92.c)(10);
|
|
49078
49144
|
var rest;
|
|
49079
49145
|
var t1;
|
|
49080
49146
|
var t2;
|
|
@@ -49118,7 +49184,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
49118
49184
|
return t4;
|
|
49119
49185
|
};
|
|
49120
49186
|
var AssistantVisualizationRoot = function(t0) {
|
|
49121
|
-
var $ = (0,
|
|
49187
|
+
var $ = (0, import_react_compiler_runtime92.c)(17);
|
|
49122
49188
|
var children;
|
|
49123
49189
|
var rest;
|
|
49124
49190
|
var t1;
|
|
@@ -49191,7 +49257,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
49191
49257
|
return t6;
|
|
49192
49258
|
};
|
|
49193
49259
|
var AssistantVisualization = function(props) {
|
|
49194
|
-
var $ = (0,
|
|
49260
|
+
var $ = (0, import_react_compiler_runtime92.c)(3);
|
|
49195
49261
|
var t0;
|
|
49196
49262
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49197
49263
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer2, {});
|
|
@@ -49214,7 +49280,7 @@ var AssistantVisualization = function(props) {
|
|
|
49214
49280
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
49215
49281
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
49216
49282
|
var AssistantInfo = function(props) {
|
|
49217
|
-
var $ = (0,
|
|
49283
|
+
var $ = (0, import_react_compiler_runtime92.c)(6);
|
|
49218
49284
|
var assistantNameContext = (0, import_react71.useContext)(AssistantNameContext);
|
|
49219
49285
|
var t0;
|
|
49220
49286
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49254,7 +49320,7 @@ var AssistantInfo = function(props) {
|
|
|
49254
49320
|
return t2;
|
|
49255
49321
|
};
|
|
49256
49322
|
var Visualization = function(props) {
|
|
49257
|
-
var $ = (0,
|
|
49323
|
+
var $ = (0, import_react_compiler_runtime92.c)(4);
|
|
49258
49324
|
var t0;
|
|
49259
49325
|
var t1;
|
|
49260
49326
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49286,9 +49352,9 @@ Visualization.Provider = Provider6;
|
|
|
49286
49352
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
49287
49353
|
Visualization.AssistantInfo = AssistantInfo;
|
|
49288
49354
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49289
|
-
var
|
|
49355
|
+
var import_react_compiler_runtime94 = require("react-compiler-runtime");
|
|
49290
49356
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
49291
|
-
var
|
|
49357
|
+
var import_react_compiler_runtime93 = require("react-compiler-runtime");
|
|
49292
49358
|
var import_themes61 = require("@radix-ui/themes");
|
|
49293
49359
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
49294
49360
|
var html = function(_ref) {
|
|
@@ -49298,7 +49364,7 @@ var html = function(_ref) {
|
|
|
49298
49364
|
}).join(""), "\n }");
|
|
49299
49365
|
};
|
|
49300
49366
|
var StatusMessages = function(t0) {
|
|
49301
|
-
var $ = (0,
|
|
49367
|
+
var $ = (0, import_react_compiler_runtime93.c)(9);
|
|
49302
49368
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
49303
49369
|
var t1;
|
|
49304
49370
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49402,7 +49468,7 @@ function _toPrimitive49(t, r) {
|
|
|
49402
49468
|
return ("string" === r ? String : Number)(t);
|
|
49403
49469
|
}
|
|
49404
49470
|
var Status = function(props) {
|
|
49405
|
-
var $ = (0,
|
|
49471
|
+
var $ = (0, import_react_compiler_runtime94.c)(12);
|
|
49406
49472
|
var status = useStatus().status;
|
|
49407
49473
|
if (status === "recording") {
|
|
49408
49474
|
var _t;
|
|
@@ -49499,10 +49565,10 @@ var Status = function(props) {
|
|
|
49499
49565
|
return t1;
|
|
49500
49566
|
};
|
|
49501
49567
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49502
|
-
var
|
|
49568
|
+
var import_react_compiler_runtime97 = require("react-compiler-runtime");
|
|
49503
49569
|
var import_themes63 = require("@radix-ui/themes");
|
|
49504
49570
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49505
|
-
var
|
|
49571
|
+
var import_react_compiler_runtime95 = require("react-compiler-runtime");
|
|
49506
49572
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
49507
49573
|
function ownKeys50(e, r) {
|
|
49508
49574
|
var t = Object.keys(e);
|
|
@@ -49548,7 +49614,7 @@ function _toPrimitive50(t, r) {
|
|
|
49548
49614
|
return ("string" === r ? String : Number)(t);
|
|
49549
49615
|
}
|
|
49550
49616
|
var MicIcon = function(props) {
|
|
49551
|
-
var $ = (0,
|
|
49617
|
+
var $ = (0, import_react_compiler_runtime95.c)(3);
|
|
49552
49618
|
var t0;
|
|
49553
49619
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49554
49620
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", {
|
|
@@ -49580,12 +49646,12 @@ var MicIcon = function(props) {
|
|
|
49580
49646
|
return t1;
|
|
49581
49647
|
};
|
|
49582
49648
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49583
|
-
var
|
|
49649
|
+
var import_react_compiler_runtime96 = require("react-compiler-runtime");
|
|
49584
49650
|
var import_themes62 = require("@radix-ui/themes");
|
|
49585
49651
|
var import_react_icons17 = require("@radix-ui/react-icons");
|
|
49586
49652
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
49587
49653
|
var ActionButton = function() {
|
|
49588
|
-
var $ = (0,
|
|
49654
|
+
var $ = (0, import_react_compiler_runtime96.c)(27);
|
|
49589
49655
|
var status = useStatus().status;
|
|
49590
49656
|
var audioThreadContext = useAudioThreadContext();
|
|
49591
49657
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -49823,7 +49889,7 @@ function _toPrimitive51(t, r) {
|
|
|
49823
49889
|
return ("string" === r ? String : Number)(t);
|
|
49824
49890
|
}
|
|
49825
49891
|
var Form = function(props) {
|
|
49826
|
-
var $ = (0,
|
|
49892
|
+
var $ = (0, import_react_compiler_runtime97.c)(17);
|
|
49827
49893
|
var status = useStatus().status;
|
|
49828
49894
|
var audioThreadContext = useAudioThreadContext();
|
|
49829
49895
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
@@ -49973,7 +50039,7 @@ function _toPrimitive52(t, r) {
|
|
|
49973
50039
|
return ("string" === r ? String : Number)(t);
|
|
49974
50040
|
}
|
|
49975
50041
|
var AudioThread = function(props) {
|
|
49976
|
-
var $ = (0,
|
|
50042
|
+
var $ = (0, import_react_compiler_runtime98.c)(5);
|
|
49977
50043
|
var t0;
|
|
49978
50044
|
var t1;
|
|
49979
50045
|
var t2;
|
|
@@ -50055,7 +50121,7 @@ function _toPrimitive53(t, r) {
|
|
|
50055
50121
|
return ("string" === r ? String : Number)(t);
|
|
50056
50122
|
}
|
|
50057
50123
|
var AudioThreadDialog = function(props) {
|
|
50058
|
-
var $ = (0,
|
|
50124
|
+
var $ = (0, import_react_compiler_runtime99.c)(4);
|
|
50059
50125
|
var t0;
|
|
50060
50126
|
var t1;
|
|
50061
50127
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -50577,10 +50643,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50577
50643
|
]);
|
|
50578
50644
|
};
|
|
50579
50645
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50580
|
-
var
|
|
50646
|
+
var import_react_compiler_runtime100 = require("react-compiler-runtime");
|
|
50581
50647
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
50582
50648
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50583
|
-
var $ = (0,
|
|
50649
|
+
var $ = (0, import_react_compiler_runtime100.c)(5);
|
|
50584
50650
|
var children = t0.children;
|
|
50585
50651
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50586
50652
|
var t1;
|
|
@@ -50608,14 +50674,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50608
50674
|
return t2;
|
|
50609
50675
|
};
|
|
50610
50676
|
// src/components/gui/Gui/index.tsx
|
|
50611
|
-
var
|
|
50677
|
+
var import_react_compiler_runtime103 = require("react-compiler-runtime");
|
|
50612
50678
|
var import_react75 = require("react");
|
|
50613
50679
|
var import_themes64 = require("@radix-ui/themes");
|
|
50614
50680
|
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50615
|
-
var
|
|
50681
|
+
var import_react_compiler_runtime101 = require("react-compiler-runtime");
|
|
50616
50682
|
var import_react73 = require("react");
|
|
50617
50683
|
var useLatestAssistantMessage = function() {
|
|
50618
|
-
var $ = (0,
|
|
50684
|
+
var $ = (0, import_react_compiler_runtime101.c)(4);
|
|
50619
50685
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50620
50686
|
var t0;
|
|
50621
50687
|
var t1;
|
|
@@ -50644,11 +50710,11 @@ function _temp11(message) {
|
|
|
50644
50710
|
return message.role === "assistant";
|
|
50645
50711
|
}
|
|
50646
50712
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50647
|
-
var
|
|
50713
|
+
var import_react_compiler_runtime102 = require("react-compiler-runtime");
|
|
50648
50714
|
var import_radash18 = require("radash");
|
|
50649
50715
|
var import_react74 = require("react");
|
|
50650
50716
|
var useLatestAssistantMessageWithContent = function() {
|
|
50651
|
-
var $ = (0,
|
|
50717
|
+
var $ = (0, import_react_compiler_runtime102.c)(4);
|
|
50652
50718
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50653
50719
|
var t0;
|
|
50654
50720
|
var t1;
|
|
@@ -50682,7 +50748,7 @@ function _temp25(message) {
|
|
|
50682
50748
|
// src/components/gui/Gui/index.tsx
|
|
50683
50749
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
50684
50750
|
var StartingToolCalls3 = function() {
|
|
50685
|
-
var $ = (0,
|
|
50751
|
+
var $ = (0, import_react_compiler_runtime103.c)(2);
|
|
50686
50752
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50687
50753
|
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50688
50754
|
var t1;
|
|
@@ -50696,7 +50762,7 @@ var StartingToolCalls3 = function() {
|
|
|
50696
50762
|
return t1;
|
|
50697
50763
|
};
|
|
50698
50764
|
var Content10 = function(t0) {
|
|
50699
|
-
var $ = (0,
|
|
50765
|
+
var $ = (0, import_react_compiler_runtime103.c)(5);
|
|
50700
50766
|
var latestRunStep = t0.latestRunStep;
|
|
50701
50767
|
var t1;
|
|
50702
50768
|
bb0: {
|
|
@@ -50750,7 +50816,7 @@ var Content10 = function(t0) {
|
|
|
50750
50816
|
return t2;
|
|
50751
50817
|
};
|
|
50752
50818
|
var Progress2 = function(t0) {
|
|
50753
|
-
var $ = (0,
|
|
50819
|
+
var $ = (0, import_react_compiler_runtime103.c)(5);
|
|
50754
50820
|
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50755
50821
|
var isMutatingMessage = useIsMutatingMessage();
|
|
50756
50822
|
var t1;
|
|
@@ -50800,7 +50866,7 @@ var Progress2 = function(t0) {
|
|
|
50800
50866
|
return t4;
|
|
50801
50867
|
};
|
|
50802
50868
|
var Gui = function() {
|
|
50803
|
-
var $ = (0,
|
|
50869
|
+
var $ = (0, import_react_compiler_runtime103.c)(8);
|
|
50804
50870
|
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50805
50871
|
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50806
50872
|
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
@@ -50866,7 +50932,7 @@ function _temp13(rs) {
|
|
|
50866
50932
|
return rs.status === "in_progress";
|
|
50867
50933
|
}
|
|
50868
50934
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50869
|
-
var
|
|
50935
|
+
var import_react_compiler_runtime104 = require("react-compiler-runtime");
|
|
50870
50936
|
var import_react76 = require("react");
|
|
50871
50937
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
50872
50938
|
var _excluded7 = [
|
|
@@ -50891,7 +50957,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50891
50957
|
return t;
|
|
50892
50958
|
}
|
|
50893
50959
|
var MarkdownProvider = function(t0) {
|
|
50894
|
-
var $ = (0,
|
|
50960
|
+
var $ = (0, import_react_compiler_runtime104.c)(9);
|
|
50895
50961
|
var children;
|
|
50896
50962
|
var rest;
|
|
50897
50963
|
if ($[0] !== t0) {
|
|
@@ -50934,18 +51000,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50934
51000
|
return t3;
|
|
50935
51001
|
};
|
|
50936
51002
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50937
|
-
var
|
|
51003
|
+
var import_react_compiler_runtime107 = require("react-compiler-runtime");
|
|
50938
51004
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50939
|
-
var
|
|
51005
|
+
var import_react_compiler_runtime106 = require("react-compiler-runtime");
|
|
50940
51006
|
var import_react77 = require("react");
|
|
50941
51007
|
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
50942
51008
|
var import_themes66 = require("@radix-ui/themes");
|
|
50943
51009
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50944
|
-
var
|
|
51010
|
+
var import_react_compiler_runtime105 = require("react-compiler-runtime");
|
|
50945
51011
|
var import_themes65 = require("@radix-ui/themes");
|
|
50946
51012
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
50947
51013
|
var Content11 = function(t0) {
|
|
50948
|
-
var $ = (0,
|
|
51014
|
+
var $ = (0, import_react_compiler_runtime105.c)(5);
|
|
50949
51015
|
var fileId = t0.fileId;
|
|
50950
51016
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50951
51017
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -51011,7 +51077,7 @@ var Content11 = function(t0) {
|
|
|
51011
51077
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
51012
51078
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
51013
51079
|
var FileCitation = function(t0) {
|
|
51014
|
-
var $ = (0,
|
|
51080
|
+
var $ = (0, import_react_compiler_runtime106.c)(18);
|
|
51015
51081
|
var annotation = t0.annotation;
|
|
51016
51082
|
var _ref = _sliced_to_array((0, import_react77.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
|
|
51017
51083
|
var t1;
|
|
@@ -51160,7 +51226,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
51160
51226
|
return t;
|
|
51161
51227
|
}
|
|
51162
51228
|
var SourceAnnotation = function(t0) {
|
|
51163
|
-
var $ = (0,
|
|
51229
|
+
var $ = (0, import_react_compiler_runtime107.c)(10);
|
|
51164
51230
|
var children;
|
|
51165
51231
|
var rest;
|
|
51166
51232
|
if ($[0] !== t0) {
|
|
@@ -51217,7 +51283,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51217
51283
|
return null;
|
|
51218
51284
|
};
|
|
51219
51285
|
// src/components/avatars/Avatar.tsx
|
|
51220
|
-
var
|
|
51286
|
+
var import_react_compiler_runtime110 = require("react-compiler-runtime");
|
|
51221
51287
|
// src/enums/index.ts
|
|
51222
51288
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
51223
51289
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -51242,7 +51308,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
51242
51308
|
// src/components/avatars/Avatar.tsx
|
|
51243
51309
|
var import_themes69 = require("@radix-ui/themes");
|
|
51244
51310
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51245
|
-
var
|
|
51311
|
+
var import_react_compiler_runtime108 = require("react-compiler-runtime");
|
|
51246
51312
|
var import_themes67 = require("@radix-ui/themes");
|
|
51247
51313
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
51248
51314
|
var width = function(_ref) {
|
|
@@ -51296,7 +51362,7 @@ var optimizedSrc = function(_ref) {
|
|
|
51296
51362
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51297
51363
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
51298
51364
|
var ImageAvatar = function(t0) {
|
|
51299
|
-
var $ = (0,
|
|
51365
|
+
var $ = (0, import_react_compiler_runtime108.c)(9);
|
|
51300
51366
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51301
51367
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51302
51368
|
var t1;
|
|
@@ -51333,7 +51399,7 @@ var ImageAvatar = function(t0) {
|
|
|
51333
51399
|
return t2;
|
|
51334
51400
|
};
|
|
51335
51401
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51336
|
-
var
|
|
51402
|
+
var import_react_compiler_runtime109 = require("react-compiler-runtime");
|
|
51337
51403
|
var import_react78 = require("react");
|
|
51338
51404
|
var import_themes68 = require("@radix-ui/themes");
|
|
51339
51405
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -51343,7 +51409,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
|
|
|
51343
51409
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51344
51410
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
51345
51411
|
var IconAvatar = function(t0) {
|
|
51346
|
-
var $ = (0,
|
|
51412
|
+
var $ = (0, import_react_compiler_runtime109.c)(7);
|
|
51347
51413
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51348
51414
|
var t1;
|
|
51349
51415
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
@@ -51377,7 +51443,7 @@ var IconAvatar = function(t0) {
|
|
|
51377
51443
|
// src/components/avatars/Avatar.tsx
|
|
51378
51444
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
51379
51445
|
var Avatar6 = function(t0) {
|
|
51380
|
-
var $ = (0,
|
|
51446
|
+
var $ = (0, import_react_compiler_runtime110.c)(14);
|
|
51381
51447
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
51382
51448
|
var size = t1 === void 0 ? "1" : t1;
|
|
51383
51449
|
if (avatar) {
|
|
@@ -51438,7 +51504,7 @@ var Avatar6 = function(t0) {
|
|
|
51438
51504
|
return t2;
|
|
51439
51505
|
};
|
|
51440
51506
|
// src/components/components/ComponentsProvider.tsx
|
|
51441
|
-
var
|
|
51507
|
+
var import_react_compiler_runtime111 = require("react-compiler-runtime");
|
|
51442
51508
|
var import_react79 = require("react");
|
|
51443
51509
|
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
51444
51510
|
var _excluded9 = [
|
|
@@ -51463,7 +51529,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51463
51529
|
return t;
|
|
51464
51530
|
}
|
|
51465
51531
|
var ComponentsProvider = function(t0) {
|
|
51466
|
-
var $ = (0,
|
|
51532
|
+
var $ = (0, import_react_compiler_runtime111.c)(9);
|
|
51467
51533
|
var children;
|
|
51468
51534
|
var rest;
|
|
51469
51535
|
if ($[0] !== t0) {
|
|
@@ -51506,11 +51572,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51506
51572
|
return t3;
|
|
51507
51573
|
};
|
|
51508
51574
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51509
|
-
var
|
|
51575
|
+
var import_react_compiler_runtime112 = require("react-compiler-runtime");
|
|
51510
51576
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
51511
51577
|
var AssistantProvider = function(t0) {
|
|
51512
51578
|
var _assistant$name;
|
|
51513
|
-
var $ = (0,
|
|
51579
|
+
var $ = (0, import_react_compiler_runtime112.c)(10);
|
|
51514
51580
|
var children = t0.children;
|
|
51515
51581
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51516
51582
|
var t1;
|
|
@@ -51593,6 +51659,7 @@ var AssistantProvider = function(t0) {
|
|
|
51593
51659
|
WebrtcAudioRuntimeProvider: WebrtcAudioRuntimeProvider,
|
|
51594
51660
|
useAssistant: useAssistant,
|
|
51595
51661
|
useAudioThreadContext: useAudioThreadContext,
|
|
51662
|
+
useChangeFilesField: useChangeFilesField,
|
|
51596
51663
|
useComponents: useComponents,
|
|
51597
51664
|
useCreateFile: useCreateFile,
|
|
51598
51665
|
useCreateMessage: useCreateMessage,
|