@superinterface/react 4.2.2 → 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 +238 -177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +235 -178
- 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");
|
|
@@ -44699,7 +44702,7 @@ Messages2.Message = Message;
|
|
|
44699
44702
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44700
44703
|
Messages2.Content = Content7;
|
|
44701
44704
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44702
|
-
var
|
|
44705
|
+
var import_react_compiler_runtime72 = require("react-compiler-runtime");
|
|
44703
44706
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44704
44707
|
var import_react_compiler_runtime66 = require("react-compiler-runtime");
|
|
44705
44708
|
var import_react_icons11 = require("@radix-ui/react-icons");
|
|
@@ -45525,11 +45528,13 @@ var Preview = function(props) {
|
|
|
45525
45528
|
return t1;
|
|
45526
45529
|
};
|
|
45527
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
|
|
45528
45535
|
var import_react55 = require("react");
|
|
45529
45536
|
var import_radash15 = require("radash");
|
|
45530
45537
|
var import_dayjs2 = __toESM(require("dayjs"), 1);
|
|
45531
|
-
var import_react_icons13 = require("@radix-ui/react-icons");
|
|
45532
|
-
var import_themes50 = require("@radix-ui/themes");
|
|
45533
45538
|
// src/hooks/files/useCreateFile/index.ts
|
|
45534
45539
|
var import_react_compiler_runtime70 = require("react-compiler-runtime");
|
|
45535
45540
|
var import_react_query7 = require("@tanstack/react-query");
|
|
@@ -45842,51 +45847,7 @@ var useCreateFile = function(t0) {
|
|
|
45842
45847
|
};
|
|
45843
45848
|
function _temp4() {}
|
|
45844
45849
|
function _temp23() {}
|
|
45845
|
-
// src/
|
|
45846
|
-
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
45847
|
-
function ownKeys36(e, r) {
|
|
45848
|
-
var t = Object.keys(e);
|
|
45849
|
-
if (Object.getOwnPropertySymbols) {
|
|
45850
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
45851
|
-
r && (o = o.filter(function(r2) {
|
|
45852
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
45853
|
-
})), t.push.apply(t, o);
|
|
45854
|
-
}
|
|
45855
|
-
return t;
|
|
45856
|
-
}
|
|
45857
|
-
function _objectSpread36(e) {
|
|
45858
|
-
for(var r = 1; r < arguments.length; r++){
|
|
45859
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
45860
|
-
r % 2 ? ownKeys36(Object(t), true).forEach(function(r2) {
|
|
45861
|
-
_defineProperty36(e, r2, t[r2]);
|
|
45862
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys36(Object(t)).forEach(function(r2) {
|
|
45863
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
45864
|
-
});
|
|
45865
|
-
}
|
|
45866
|
-
return e;
|
|
45867
|
-
}
|
|
45868
|
-
function _defineProperty36(e, r, t) {
|
|
45869
|
-
return (r = _toPropertyKey36(r)) in e ? Object.defineProperty(e, r, {
|
|
45870
|
-
value: t,
|
|
45871
|
-
enumerable: true,
|
|
45872
|
-
configurable: true,
|
|
45873
|
-
writable: true
|
|
45874
|
-
}) : e[r] = t, e;
|
|
45875
|
-
}
|
|
45876
|
-
function _toPropertyKey36(t) {
|
|
45877
|
-
var i = _toPrimitive36(t, "string");
|
|
45878
|
-
return "symbol" == (typeof i === "undefined" ? "undefined" : _type_of(i)) ? i : i + "";
|
|
45879
|
-
}
|
|
45880
|
-
function _toPrimitive36(t, r) {
|
|
45881
|
-
if ("object" != (typeof t === "undefined" ? "undefined" : _type_of(t)) || !t) return t;
|
|
45882
|
-
var e = t[Symbol.toPrimitive];
|
|
45883
|
-
if (void 0 !== e) {
|
|
45884
|
-
var i = e.call(t, r || "default");
|
|
45885
|
-
if ("object" != (typeof i === "undefined" ? "undefined" : _type_of(i))) return i;
|
|
45886
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45887
|
-
}
|
|
45888
|
-
return ("string" === r ? String : Number)(t);
|
|
45889
|
-
}
|
|
45850
|
+
// src/hooks/files/useChangeFilesField/index.ts
|
|
45890
45851
|
function asyncGeneratorStep8(n, t, e, r, o, a, c) {
|
|
45891
45852
|
try {
|
|
45892
45853
|
var i = n[a](c), u = i.value;
|
|
@@ -45951,7 +45912,6 @@ function AsyncFromSyncIterator(r) {
|
|
|
45951
45912
|
}
|
|
45952
45913
|
}, new AsyncFromSyncIterator(r);
|
|
45953
45914
|
}
|
|
45954
|
-
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";
|
|
45955
45915
|
var purpose = function(_ref) {
|
|
45956
45916
|
var fileObject = _ref.fileObject;
|
|
45957
45917
|
if (fileObject.type.startsWith("image/")) {
|
|
@@ -45959,11 +45919,11 @@ var purpose = function(_ref) {
|
|
|
45959
45919
|
}
|
|
45960
45920
|
return "assistants";
|
|
45961
45921
|
};
|
|
45962
|
-
var
|
|
45963
|
-
var
|
|
45922
|
+
var useChangeFilesField = function() {
|
|
45923
|
+
var setFiles = useMessageFormContext().setFiles;
|
|
45964
45924
|
var createFile = useCreateFile().createFile;
|
|
45965
45925
|
var addToast = useToasts().addToast;
|
|
45966
|
-
var
|
|
45926
|
+
var changeFilesField = (0, import_react55.useCallback)(/* @__PURE__ */ function() {
|
|
45967
45927
|
var _ref2 = _asyncToGenerator8(function(event) {
|
|
45968
45928
|
var fileObjects, newFiles, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _loop, _iterator, _step, err;
|
|
45969
45929
|
return _ts_generator(this, function(_state) {
|
|
@@ -46134,40 +46094,140 @@ var Control2 = function(props) {
|
|
|
46134
46094
|
createFile,
|
|
46135
46095
|
setFiles
|
|
46136
46096
|
]);
|
|
46137
|
-
return
|
|
46138
|
-
|
|
46139
|
-
|
|
46140
|
-
|
|
46141
|
-
|
|
46142
|
-
|
|
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, {
|
|
46143
46199
|
type: "button",
|
|
46144
46200
|
variant: "ghost",
|
|
46145
46201
|
color: "gray",
|
|
46146
|
-
disabled:
|
|
46147
|
-
style:
|
|
46148
|
-
position: "relative",
|
|
46149
|
-
overflow: "hidden"
|
|
46150
|
-
},
|
|
46202
|
+
disabled: t0,
|
|
46203
|
+
style: t1,
|
|
46151
46204
|
children: [
|
|
46152
|
-
|
|
46153
|
-
|
|
46154
|
-
type: "file",
|
|
46155
|
-
multiple: true,
|
|
46156
|
-
accept: accept,
|
|
46157
|
-
onChange: onChange,
|
|
46158
|
-
style: {
|
|
46159
|
-
cursor: "pointer",
|
|
46160
|
-
position: "absolute",
|
|
46161
|
-
top: 0,
|
|
46162
|
-
left: 0,
|
|
46163
|
-
right: 0,
|
|
46164
|
-
bottom: 0,
|
|
46165
|
-
opacity: 0
|
|
46166
|
-
}
|
|
46167
|
-
})
|
|
46205
|
+
t2,
|
|
46206
|
+
t4
|
|
46168
46207
|
]
|
|
46169
|
-
})
|
|
46170
|
-
|
|
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;
|
|
46171
46231
|
};
|
|
46172
46232
|
// src/components/threads/Thread/MessageForm/Field/Files/index.tsx
|
|
46173
46233
|
var Files = {
|
|
@@ -46303,7 +46363,7 @@ function _toPrimitive38(t, r) {
|
|
|
46303
46363
|
return ("string" === r ? String : Number)(t);
|
|
46304
46364
|
}
|
|
46305
46365
|
var MessageForm = function(props) {
|
|
46306
|
-
var $ = (0,
|
|
46366
|
+
var $ = (0, import_react_compiler_runtime72.c)(3);
|
|
46307
46367
|
var t0;
|
|
46308
46368
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46309
46369
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Field.Root, {
|
|
@@ -46332,22 +46392,22 @@ MessageForm.Root = Root8;
|
|
|
46332
46392
|
MessageForm.Field = Field;
|
|
46333
46393
|
MessageForm.Submit = Submit;
|
|
46334
46394
|
// src/components/threads/Thread/Root/index.tsx
|
|
46335
|
-
var
|
|
46395
|
+
var import_react_compiler_runtime75 = require("react-compiler-runtime");
|
|
46336
46396
|
var import_themes53 = require("@radix-ui/themes");
|
|
46337
46397
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46338
46398
|
var Provider2 = SuperinterfaceProvider;
|
|
46339
46399
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46340
|
-
var
|
|
46400
|
+
var import_react_compiler_runtime74 = require("react-compiler-runtime");
|
|
46341
46401
|
var import_react56 = require("react");
|
|
46342
46402
|
var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
|
|
46343
46403
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46344
|
-
var
|
|
46404
|
+
var import_react_compiler_runtime73 = require("react-compiler-runtime");
|
|
46345
46405
|
var Toast = __toESM(require("@radix-ui/react-toast"), 1);
|
|
46346
46406
|
var import_themes52 = require("@radix-ui/themes");
|
|
46347
46407
|
var import_react_icons14 = require("@radix-ui/react-icons");
|
|
46348
46408
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
46349
46409
|
var CustomToast = function(t0) {
|
|
46350
|
-
var $ = (0,
|
|
46410
|
+
var $ = (0, import_react_compiler_runtime73.c)(7);
|
|
46351
46411
|
var toast = t0.toast;
|
|
46352
46412
|
var t1;
|
|
46353
46413
|
if ($[0] !== toast.type) {
|
|
@@ -46403,7 +46463,7 @@ var CustomToast = function(t0) {
|
|
|
46403
46463
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46404
46464
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
46405
46465
|
var ToastsProvider = function(t0) {
|
|
46406
|
-
var $ = (0,
|
|
46466
|
+
var $ = (0, import_react_compiler_runtime74.c)(15);
|
|
46407
46467
|
var children = t0.children, t1 = t0.bottom;
|
|
46408
46468
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46409
46469
|
var t2;
|
|
@@ -46575,7 +46635,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46575
46635
|
return t;
|
|
46576
46636
|
}
|
|
46577
46637
|
var Root12 = function(t0) {
|
|
46578
|
-
var $ = (0,
|
|
46638
|
+
var $ = (0, import_react_compiler_runtime75.c)(12);
|
|
46579
46639
|
var children;
|
|
46580
46640
|
var className;
|
|
46581
46641
|
var rest;
|
|
@@ -46675,7 +46735,7 @@ function _toPrimitive40(t, r) {
|
|
|
46675
46735
|
return ("string" === r ? String : Number)(t);
|
|
46676
46736
|
}
|
|
46677
46737
|
var Thread = function(props) {
|
|
46678
|
-
var $ = (0,
|
|
46738
|
+
var $ = (0, import_react_compiler_runtime76.c)(4);
|
|
46679
46739
|
var t0;
|
|
46680
46740
|
var t1;
|
|
46681
46741
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -46711,7 +46771,7 @@ var useMessageContext = function() {
|
|
|
46711
46771
|
return (0, import_react57.useContext)(MessageContext);
|
|
46712
46772
|
};
|
|
46713
46773
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46714
|
-
var
|
|
46774
|
+
var import_react_compiler_runtime77 = require("react-compiler-runtime");
|
|
46715
46775
|
var import_react58 = require("react");
|
|
46716
46776
|
var import_react_query9 = require("@tanstack/react-query");
|
|
46717
46777
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46861,7 +46921,7 @@ function _toPrimitive41(t, r) {
|
|
|
46861
46921
|
return ("string" === r ? String : Number)(t);
|
|
46862
46922
|
}
|
|
46863
46923
|
var useAssistant = function(t0) {
|
|
46864
|
-
var $ = (0,
|
|
46924
|
+
var $ = (0, import_react_compiler_runtime77.c)(6);
|
|
46865
46925
|
var assistantId = t0.assistantId;
|
|
46866
46926
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46867
46927
|
var t1;
|
|
@@ -46894,11 +46954,11 @@ var useAssistant = function(t0) {
|
|
|
46894
46954
|
return t2;
|
|
46895
46955
|
};
|
|
46896
46956
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46897
|
-
var
|
|
46957
|
+
var import_react_compiler_runtime84 = require("react-compiler-runtime");
|
|
46898
46958
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46899
|
-
var
|
|
46959
|
+
var import_react_compiler_runtime79 = require("react-compiler-runtime");
|
|
46900
46960
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46901
|
-
var
|
|
46961
|
+
var import_react_compiler_runtime78 = require("react-compiler-runtime");
|
|
46902
46962
|
var import_react61 = require("react");
|
|
46903
46963
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46904
46964
|
var import_react59 = require("react");
|
|
@@ -46914,7 +46974,7 @@ var useThreadDialogContext = function() {
|
|
|
46914
46974
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46915
46975
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
46916
46976
|
var Provider4 = function(t0) {
|
|
46917
|
-
var $ = (0,
|
|
46977
|
+
var $ = (0, import_react_compiler_runtime78.c)(5);
|
|
46918
46978
|
var children = t0.children;
|
|
46919
46979
|
var threadDialogContext = useThreadDialogContext();
|
|
46920
46980
|
var _ref = _sliced_to_array((0, import_react61.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
@@ -46946,7 +47006,7 @@ var Provider4 = function(t0) {
|
|
|
46946
47006
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46947
47007
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
46948
47008
|
var Root13 = function(t0) {
|
|
46949
|
-
var $ = (0,
|
|
47009
|
+
var $ = (0, import_react_compiler_runtime79.c)(2);
|
|
46950
47010
|
var children = t0.children;
|
|
46951
47011
|
var t1;
|
|
46952
47012
|
if ($[0] !== children) {
|
|
@@ -46961,10 +47021,10 @@ var Root13 = function(t0) {
|
|
|
46961
47021
|
return t1;
|
|
46962
47022
|
};
|
|
46963
47023
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46964
|
-
var
|
|
47024
|
+
var import_react_compiler_runtime81 = require("react-compiler-runtime");
|
|
46965
47025
|
var import_themes55 = require("@radix-ui/themes");
|
|
46966
47026
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46967
|
-
var
|
|
47027
|
+
var import_react_compiler_runtime80 = require("react-compiler-runtime");
|
|
46968
47028
|
var import_themes54 = require("@radix-ui/themes");
|
|
46969
47029
|
var import_react_icons15 = require("@radix-ui/react-icons");
|
|
46970
47030
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
@@ -47012,7 +47072,7 @@ function _toPrimitive42(t, r) {
|
|
|
47012
47072
|
return ("string" === r ? String : Number)(t);
|
|
47013
47073
|
}
|
|
47014
47074
|
var Button4 = function(props) {
|
|
47015
|
-
var $ = (0,
|
|
47075
|
+
var $ = (0, import_react_compiler_runtime80.c)(3);
|
|
47016
47076
|
var t0;
|
|
47017
47077
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47018
47078
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_icons15.ChatBubbleIcon, {});
|
|
@@ -47081,7 +47141,7 @@ function _toPrimitive43(t, r) {
|
|
|
47081
47141
|
return ("string" === r ? String : Number)(t);
|
|
47082
47142
|
}
|
|
47083
47143
|
var Root14 = function(t0) {
|
|
47084
|
-
var $ = (0,
|
|
47144
|
+
var $ = (0, import_react_compiler_runtime81.c)(14);
|
|
47085
47145
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
47086
47146
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47087
47147
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -47152,7 +47212,7 @@ var Root14 = function(t0) {
|
|
|
47152
47212
|
return t6;
|
|
47153
47213
|
};
|
|
47154
47214
|
var Trigger = function(args) {
|
|
47155
|
-
var $ = (0,
|
|
47215
|
+
var $ = (0, import_react_compiler_runtime81.c)(3);
|
|
47156
47216
|
var t0;
|
|
47157
47217
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47158
47218
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button4, {});
|
|
@@ -47178,15 +47238,15 @@ function _temp6(prev) {
|
|
|
47178
47238
|
return !prev;
|
|
47179
47239
|
}
|
|
47180
47240
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
47181
|
-
var
|
|
47241
|
+
var import_react_compiler_runtime83 = require("react-compiler-runtime");
|
|
47182
47242
|
var import_themes57 = require("@radix-ui/themes");
|
|
47183
47243
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
47184
|
-
var
|
|
47244
|
+
var import_react_compiler_runtime82 = require("react-compiler-runtime");
|
|
47185
47245
|
var import_react_icons16 = require("@radix-ui/react-icons");
|
|
47186
47246
|
var import_themes56 = require("@radix-ui/themes");
|
|
47187
47247
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
47188
47248
|
var Close = function() {
|
|
47189
|
-
var $ = (0,
|
|
47249
|
+
var $ = (0, import_react_compiler_runtime82.c)(9);
|
|
47190
47250
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47191
47251
|
var t0 = isOpen ? "flex" : "none";
|
|
47192
47252
|
var t1;
|
|
@@ -47302,7 +47362,7 @@ function _toPrimitive44(t, r) {
|
|
|
47302
47362
|
return ("string" === r ? String : Number)(t);
|
|
47303
47363
|
}
|
|
47304
47364
|
var Root15 = function(t0) {
|
|
47305
|
-
var $ = (0,
|
|
47365
|
+
var $ = (0, import_react_compiler_runtime83.c)(19);
|
|
47306
47366
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47307
47367
|
var isOpen = useThreadDialogContext().isOpen;
|
|
47308
47368
|
if (!isOpen) {
|
|
@@ -47449,7 +47509,7 @@ var Root15 = function(t0) {
|
|
|
47449
47509
|
return t13;
|
|
47450
47510
|
};
|
|
47451
47511
|
var Messages3 = function(t0) {
|
|
47452
|
-
var $ = (0,
|
|
47512
|
+
var $ = (0, import_react_compiler_runtime83.c)(5);
|
|
47453
47513
|
var className = t0.className, style = t0.style;
|
|
47454
47514
|
var t1;
|
|
47455
47515
|
if ($[0] !== style) {
|
|
@@ -47478,7 +47538,7 @@ var Messages3 = function(t0) {
|
|
|
47478
47538
|
return t2;
|
|
47479
47539
|
};
|
|
47480
47540
|
var FormContainer = function(t0) {
|
|
47481
|
-
var $ = (0,
|
|
47541
|
+
var $ = (0, import_react_compiler_runtime83.c)(4);
|
|
47482
47542
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47483
47543
|
var t1;
|
|
47484
47544
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -47502,7 +47562,7 @@ var FormContainer = function(t0) {
|
|
|
47502
47562
|
return t1;
|
|
47503
47563
|
};
|
|
47504
47564
|
var Content8 = function(props) {
|
|
47505
|
-
var $ = (0,
|
|
47565
|
+
var $ = (0, import_react_compiler_runtime83.c)(4);
|
|
47506
47566
|
var t0;
|
|
47507
47567
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47508
47568
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Messages3, {});
|
|
@@ -47542,7 +47602,7 @@ Content8.FormContainer = FormContainer;
|
|
|
47542
47602
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47543
47603
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
47544
47604
|
var ThreadDialog = function() {
|
|
47545
|
-
var $ = (0,
|
|
47605
|
+
var $ = (0, import_react_compiler_runtime84.c)(1);
|
|
47546
47606
|
var t0;
|
|
47547
47607
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47548
47608
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Root13, {
|
|
@@ -47561,11 +47621,11 @@ ThreadDialog.Root = Root13;
|
|
|
47561
47621
|
ThreadDialog.Trigger = Trigger;
|
|
47562
47622
|
ThreadDialog.Content = Content8;
|
|
47563
47623
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47564
|
-
var
|
|
47624
|
+
var import_react_compiler_runtime99 = require("react-compiler-runtime");
|
|
47565
47625
|
// src/components/threads/AudioThread/index.tsx
|
|
47566
|
-
var
|
|
47626
|
+
var import_react_compiler_runtime98 = require("react-compiler-runtime");
|
|
47567
47627
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47568
|
-
var
|
|
47628
|
+
var import_react_compiler_runtime90 = require("react-compiler-runtime");
|
|
47569
47629
|
var import_themes58 = require("@radix-ui/themes");
|
|
47570
47630
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47571
47631
|
var import_react62 = require("react");
|
|
@@ -47578,12 +47638,12 @@ var useAudioThreadContext = function() {
|
|
|
47578
47638
|
return (0, import_react63.useContext)(AudioThreadContext);
|
|
47579
47639
|
};
|
|
47580
47640
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47581
|
-
var
|
|
47641
|
+
var import_react_compiler_runtime89 = require("react-compiler-runtime");
|
|
47582
47642
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47583
|
-
var
|
|
47643
|
+
var import_react_compiler_runtime88 = require("react-compiler-runtime");
|
|
47584
47644
|
var import_react68 = require("react");
|
|
47585
47645
|
// src/hooks/misc/usePermission/index.ts
|
|
47586
|
-
var
|
|
47646
|
+
var import_react_compiler_runtime85 = require("react-compiler-runtime");
|
|
47587
47647
|
var import_react64 = require("react");
|
|
47588
47648
|
// src/hooks/misc/usePermission/util.ts
|
|
47589
47649
|
var noop = function() {};
|
|
@@ -47607,7 +47667,7 @@ function off(obj) {
|
|
|
47607
47667
|
}
|
|
47608
47668
|
// src/hooks/misc/usePermission/index.ts
|
|
47609
47669
|
var usePermission = function(permissionDesc) {
|
|
47610
|
-
var $ = (0,
|
|
47670
|
+
var $ = (0, import_react_compiler_runtime85.c)(3);
|
|
47611
47671
|
var _ref = _sliced_to_array((0, import_react64.useState)(""), 2), state = _ref[0], setState = _ref[1];
|
|
47612
47672
|
var t0;
|
|
47613
47673
|
var t1;
|
|
@@ -47656,10 +47716,10 @@ var import_use_audio_capture = require("use-audio-capture");
|
|
|
47656
47716
|
var import_react66 = require("react");
|
|
47657
47717
|
var import_react_use_audio_player = require("react-use-audio-player");
|
|
47658
47718
|
// src/hooks/misc/useInterval.ts
|
|
47659
|
-
var
|
|
47719
|
+
var import_react_compiler_runtime86 = require("react-compiler-runtime");
|
|
47660
47720
|
var import_react65 = require("react");
|
|
47661
47721
|
var useInterval = function(callback, delay) {
|
|
47662
|
-
var $ = (0,
|
|
47722
|
+
var $ = (0, import_react_compiler_runtime86.c)(5);
|
|
47663
47723
|
var savedCallback = (0, import_react65.useRef)(_temp8);
|
|
47664
47724
|
var t0;
|
|
47665
47725
|
if ($[0] !== callback) {
|
|
@@ -47912,7 +47972,7 @@ var useRecorder = function(_ref) {
|
|
|
47912
47972
|
});
|
|
47913
47973
|
};
|
|
47914
47974
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47915
|
-
var
|
|
47975
|
+
var import_react_compiler_runtime87 = require("react-compiler-runtime");
|
|
47916
47976
|
var import_react67 = require("react");
|
|
47917
47977
|
var import_compromise = __toESM(require("compromise"), 1);
|
|
47918
47978
|
var import_howler = require("howler");
|
|
@@ -47995,7 +48055,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47995
48055
|
};
|
|
47996
48056
|
var useMessageAudio = function(t0) {
|
|
47997
48057
|
var _latestMessageProps$l;
|
|
47998
|
-
var $ = (0,
|
|
48058
|
+
var $ = (0, import_react_compiler_runtime87.c)(49);
|
|
47999
48059
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
48000
48060
|
var _ref = _sliced_to_array((0, import_react67.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
|
|
48001
48061
|
var t1;
|
|
@@ -48375,7 +48435,7 @@ function _asyncToGenerator11(n) {
|
|
|
48375
48435
|
};
|
|
48376
48436
|
}
|
|
48377
48437
|
var useTtsAudioRuntime = function(t0) {
|
|
48378
|
-
var $ = (0,
|
|
48438
|
+
var $ = (0, import_react_compiler_runtime88.c)(30);
|
|
48379
48439
|
var play = t0.play;
|
|
48380
48440
|
var addToast = useToasts().addToast;
|
|
48381
48441
|
var queryClient = (0, import_react_query10.useQueryClient)();
|
|
@@ -48551,7 +48611,7 @@ function _temp24() {
|
|
|
48551
48611
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48552
48612
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
48553
48613
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48554
|
-
var $ = (0,
|
|
48614
|
+
var $ = (0, import_react_compiler_runtime89.c)(7);
|
|
48555
48615
|
var children = t0.children, play = t0.play;
|
|
48556
48616
|
var t1;
|
|
48557
48617
|
if ($[0] !== play) {
|
|
@@ -48661,7 +48721,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48661
48721
|
return t;
|
|
48662
48722
|
}
|
|
48663
48723
|
var Content9 = function(t0) {
|
|
48664
|
-
var $ = (0,
|
|
48724
|
+
var $ = (0, import_react_compiler_runtime90.c)(4);
|
|
48665
48725
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48666
48726
|
var t1;
|
|
48667
48727
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
@@ -48683,7 +48743,7 @@ var Content9 = function(t0) {
|
|
|
48683
48743
|
return t1;
|
|
48684
48744
|
};
|
|
48685
48745
|
var AudioRuntimeProvider = function(t0) {
|
|
48686
|
-
var $ = (0,
|
|
48746
|
+
var $ = (0, import_react_compiler_runtime90.c)(3);
|
|
48687
48747
|
var children = t0.children, play = t0.play;
|
|
48688
48748
|
var audioThreadContext = useAudioThreadContext();
|
|
48689
48749
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48704,7 +48764,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48704
48764
|
return t1;
|
|
48705
48765
|
};
|
|
48706
48766
|
var Provider5 = function(t0) {
|
|
48707
|
-
var $ = (0,
|
|
48767
|
+
var $ = (0, import_react_compiler_runtime90.c)(9);
|
|
48708
48768
|
var children;
|
|
48709
48769
|
var rest;
|
|
48710
48770
|
if ($[0] !== t0) {
|
|
@@ -48744,7 +48804,7 @@ var Provider5 = function(t0) {
|
|
|
48744
48804
|
return t2;
|
|
48745
48805
|
};
|
|
48746
48806
|
var Root16 = function(t0) {
|
|
48747
|
-
var $ = (0,
|
|
48807
|
+
var $ = (0, import_react_compiler_runtime90.c)(16);
|
|
48748
48808
|
var children;
|
|
48749
48809
|
var className;
|
|
48750
48810
|
var play;
|
|
@@ -48811,7 +48871,7 @@ var Root16 = function(t0) {
|
|
|
48811
48871
|
return t3;
|
|
48812
48872
|
};
|
|
48813
48873
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48814
|
-
var
|
|
48874
|
+
var import_react_compiler_runtime92 = require("react-compiler-runtime");
|
|
48815
48875
|
var import_react71 = require("react");
|
|
48816
48876
|
var import_lodash9 = __toESM(require("lodash"), 1);
|
|
48817
48877
|
var import_themes60 = require("@radix-ui/themes");
|
|
@@ -48880,10 +48940,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48880
48940
|
});
|
|
48881
48941
|
};
|
|
48882
48942
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48883
|
-
var
|
|
48943
|
+
var import_react_compiler_runtime91 = require("react-compiler-runtime");
|
|
48884
48944
|
var import_react70 = require("react");
|
|
48885
48945
|
var useStatus = function() {
|
|
48886
|
-
var $ = (0,
|
|
48946
|
+
var $ = (0, import_react_compiler_runtime91.c)(2);
|
|
48887
48947
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48888
48948
|
var t0;
|
|
48889
48949
|
bb0: {
|
|
@@ -49043,7 +49103,7 @@ var Provider6 = function(_ref) {
|
|
|
49043
49103
|
});
|
|
49044
49104
|
};
|
|
49045
49105
|
var Root17 = function(t0) {
|
|
49046
|
-
var $ = (0,
|
|
49106
|
+
var $ = (0, import_react_compiler_runtime92.c)(6);
|
|
49047
49107
|
var children;
|
|
49048
49108
|
var rest;
|
|
49049
49109
|
if ($[0] !== t0) {
|
|
@@ -49080,7 +49140,7 @@ var Root17 = function(t0) {
|
|
|
49080
49140
|
return t1;
|
|
49081
49141
|
};
|
|
49082
49142
|
var BarsVisualizer2 = function(t0) {
|
|
49083
|
-
var $ = (0,
|
|
49143
|
+
var $ = (0, import_react_compiler_runtime92.c)(10);
|
|
49084
49144
|
var rest;
|
|
49085
49145
|
var t1;
|
|
49086
49146
|
var t2;
|
|
@@ -49124,7 +49184,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
49124
49184
|
return t4;
|
|
49125
49185
|
};
|
|
49126
49186
|
var AssistantVisualizationRoot = function(t0) {
|
|
49127
|
-
var $ = (0,
|
|
49187
|
+
var $ = (0, import_react_compiler_runtime92.c)(17);
|
|
49128
49188
|
var children;
|
|
49129
49189
|
var rest;
|
|
49130
49190
|
var t1;
|
|
@@ -49197,7 +49257,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
49197
49257
|
return t6;
|
|
49198
49258
|
};
|
|
49199
49259
|
var AssistantVisualization = function(props) {
|
|
49200
|
-
var $ = (0,
|
|
49260
|
+
var $ = (0, import_react_compiler_runtime92.c)(3);
|
|
49201
49261
|
var t0;
|
|
49202
49262
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49203
49263
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BarsVisualizer2, {});
|
|
@@ -49220,7 +49280,7 @@ var AssistantVisualization = function(props) {
|
|
|
49220
49280
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
49221
49281
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
49222
49282
|
var AssistantInfo = function(props) {
|
|
49223
|
-
var $ = (0,
|
|
49283
|
+
var $ = (0, import_react_compiler_runtime92.c)(6);
|
|
49224
49284
|
var assistantNameContext = (0, import_react71.useContext)(AssistantNameContext);
|
|
49225
49285
|
var t0;
|
|
49226
49286
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49260,7 +49320,7 @@ var AssistantInfo = function(props) {
|
|
|
49260
49320
|
return t2;
|
|
49261
49321
|
};
|
|
49262
49322
|
var Visualization = function(props) {
|
|
49263
|
-
var $ = (0,
|
|
49323
|
+
var $ = (0, import_react_compiler_runtime92.c)(4);
|
|
49264
49324
|
var t0;
|
|
49265
49325
|
var t1;
|
|
49266
49326
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49292,9 +49352,9 @@ Visualization.Provider = Provider6;
|
|
|
49292
49352
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
49293
49353
|
Visualization.AssistantInfo = AssistantInfo;
|
|
49294
49354
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49295
|
-
var
|
|
49355
|
+
var import_react_compiler_runtime94 = require("react-compiler-runtime");
|
|
49296
49356
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
49297
|
-
var
|
|
49357
|
+
var import_react_compiler_runtime93 = require("react-compiler-runtime");
|
|
49298
49358
|
var import_themes61 = require("@radix-ui/themes");
|
|
49299
49359
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
49300
49360
|
var html = function(_ref) {
|
|
@@ -49304,7 +49364,7 @@ var html = function(_ref) {
|
|
|
49304
49364
|
}).join(""), "\n }");
|
|
49305
49365
|
};
|
|
49306
49366
|
var StatusMessages = function(t0) {
|
|
49307
|
-
var $ = (0,
|
|
49367
|
+
var $ = (0, import_react_compiler_runtime93.c)(9);
|
|
49308
49368
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
49309
49369
|
var t1;
|
|
49310
49370
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -49408,7 +49468,7 @@ function _toPrimitive49(t, r) {
|
|
|
49408
49468
|
return ("string" === r ? String : Number)(t);
|
|
49409
49469
|
}
|
|
49410
49470
|
var Status = function(props) {
|
|
49411
|
-
var $ = (0,
|
|
49471
|
+
var $ = (0, import_react_compiler_runtime94.c)(12);
|
|
49412
49472
|
var status = useStatus().status;
|
|
49413
49473
|
if (status === "recording") {
|
|
49414
49474
|
var _t;
|
|
@@ -49505,10 +49565,10 @@ var Status = function(props) {
|
|
|
49505
49565
|
return t1;
|
|
49506
49566
|
};
|
|
49507
49567
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49508
|
-
var
|
|
49568
|
+
var import_react_compiler_runtime97 = require("react-compiler-runtime");
|
|
49509
49569
|
var import_themes63 = require("@radix-ui/themes");
|
|
49510
49570
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49511
|
-
var
|
|
49571
|
+
var import_react_compiler_runtime95 = require("react-compiler-runtime");
|
|
49512
49572
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
49513
49573
|
function ownKeys50(e, r) {
|
|
49514
49574
|
var t = Object.keys(e);
|
|
@@ -49554,7 +49614,7 @@ function _toPrimitive50(t, r) {
|
|
|
49554
49614
|
return ("string" === r ? String : Number)(t);
|
|
49555
49615
|
}
|
|
49556
49616
|
var MicIcon = function(props) {
|
|
49557
|
-
var $ = (0,
|
|
49617
|
+
var $ = (0, import_react_compiler_runtime95.c)(3);
|
|
49558
49618
|
var t0;
|
|
49559
49619
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49560
49620
|
t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", {
|
|
@@ -49586,12 +49646,12 @@ var MicIcon = function(props) {
|
|
|
49586
49646
|
return t1;
|
|
49587
49647
|
};
|
|
49588
49648
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49589
|
-
var
|
|
49649
|
+
var import_react_compiler_runtime96 = require("react-compiler-runtime");
|
|
49590
49650
|
var import_themes62 = require("@radix-ui/themes");
|
|
49591
49651
|
var import_react_icons17 = require("@radix-ui/react-icons");
|
|
49592
49652
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
49593
49653
|
var ActionButton = function() {
|
|
49594
|
-
var $ = (0,
|
|
49654
|
+
var $ = (0, import_react_compiler_runtime96.c)(27);
|
|
49595
49655
|
var status = useStatus().status;
|
|
49596
49656
|
var audioThreadContext = useAudioThreadContext();
|
|
49597
49657
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
@@ -49829,7 +49889,7 @@ function _toPrimitive51(t, r) {
|
|
|
49829
49889
|
return ("string" === r ? String : Number)(t);
|
|
49830
49890
|
}
|
|
49831
49891
|
var Form = function(props) {
|
|
49832
|
-
var $ = (0,
|
|
49892
|
+
var $ = (0, import_react_compiler_runtime97.c)(17);
|
|
49833
49893
|
var status = useStatus().status;
|
|
49834
49894
|
var audioThreadContext = useAudioThreadContext();
|
|
49835
49895
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
@@ -49979,7 +50039,7 @@ function _toPrimitive52(t, r) {
|
|
|
49979
50039
|
return ("string" === r ? String : Number)(t);
|
|
49980
50040
|
}
|
|
49981
50041
|
var AudioThread = function(props) {
|
|
49982
|
-
var $ = (0,
|
|
50042
|
+
var $ = (0, import_react_compiler_runtime98.c)(5);
|
|
49983
50043
|
var t0;
|
|
49984
50044
|
var t1;
|
|
49985
50045
|
var t2;
|
|
@@ -50061,7 +50121,7 @@ function _toPrimitive53(t, r) {
|
|
|
50061
50121
|
return ("string" === r ? String : Number)(t);
|
|
50062
50122
|
}
|
|
50063
50123
|
var AudioThreadDialog = function(props) {
|
|
50064
|
-
var $ = (0,
|
|
50124
|
+
var $ = (0, import_react_compiler_runtime99.c)(4);
|
|
50065
50125
|
var t0;
|
|
50066
50126
|
var t1;
|
|
50067
50127
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -50583,10 +50643,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50583
50643
|
]);
|
|
50584
50644
|
};
|
|
50585
50645
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50586
|
-
var
|
|
50646
|
+
var import_react_compiler_runtime100 = require("react-compiler-runtime");
|
|
50587
50647
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
50588
50648
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50589
|
-
var $ = (0,
|
|
50649
|
+
var $ = (0, import_react_compiler_runtime100.c)(5);
|
|
50590
50650
|
var children = t0.children;
|
|
50591
50651
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50592
50652
|
var t1;
|
|
@@ -50614,14 +50674,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50614
50674
|
return t2;
|
|
50615
50675
|
};
|
|
50616
50676
|
// src/components/gui/Gui/index.tsx
|
|
50617
|
-
var
|
|
50677
|
+
var import_react_compiler_runtime103 = require("react-compiler-runtime");
|
|
50618
50678
|
var import_react75 = require("react");
|
|
50619
50679
|
var import_themes64 = require("@radix-ui/themes");
|
|
50620
50680
|
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50621
|
-
var
|
|
50681
|
+
var import_react_compiler_runtime101 = require("react-compiler-runtime");
|
|
50622
50682
|
var import_react73 = require("react");
|
|
50623
50683
|
var useLatestAssistantMessage = function() {
|
|
50624
|
-
var $ = (0,
|
|
50684
|
+
var $ = (0, import_react_compiler_runtime101.c)(4);
|
|
50625
50685
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50626
50686
|
var t0;
|
|
50627
50687
|
var t1;
|
|
@@ -50650,11 +50710,11 @@ function _temp11(message) {
|
|
|
50650
50710
|
return message.role === "assistant";
|
|
50651
50711
|
}
|
|
50652
50712
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50653
|
-
var
|
|
50713
|
+
var import_react_compiler_runtime102 = require("react-compiler-runtime");
|
|
50654
50714
|
var import_radash18 = require("radash");
|
|
50655
50715
|
var import_react74 = require("react");
|
|
50656
50716
|
var useLatestAssistantMessageWithContent = function() {
|
|
50657
|
-
var $ = (0,
|
|
50717
|
+
var $ = (0, import_react_compiler_runtime102.c)(4);
|
|
50658
50718
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50659
50719
|
var t0;
|
|
50660
50720
|
var t1;
|
|
@@ -50688,7 +50748,7 @@ function _temp25(message) {
|
|
|
50688
50748
|
// src/components/gui/Gui/index.tsx
|
|
50689
50749
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
50690
50750
|
var StartingToolCalls3 = function() {
|
|
50691
|
-
var $ = (0,
|
|
50751
|
+
var $ = (0, import_react_compiler_runtime103.c)(2);
|
|
50692
50752
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50693
50753
|
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50694
50754
|
var t1;
|
|
@@ -50702,7 +50762,7 @@ var StartingToolCalls3 = function() {
|
|
|
50702
50762
|
return t1;
|
|
50703
50763
|
};
|
|
50704
50764
|
var Content10 = function(t0) {
|
|
50705
|
-
var $ = (0,
|
|
50765
|
+
var $ = (0, import_react_compiler_runtime103.c)(5);
|
|
50706
50766
|
var latestRunStep = t0.latestRunStep;
|
|
50707
50767
|
var t1;
|
|
50708
50768
|
bb0: {
|
|
@@ -50756,7 +50816,7 @@ var Content10 = function(t0) {
|
|
|
50756
50816
|
return t2;
|
|
50757
50817
|
};
|
|
50758
50818
|
var Progress2 = function(t0) {
|
|
50759
|
-
var $ = (0,
|
|
50819
|
+
var $ = (0, import_react_compiler_runtime103.c)(5);
|
|
50760
50820
|
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50761
50821
|
var isMutatingMessage = useIsMutatingMessage();
|
|
50762
50822
|
var t1;
|
|
@@ -50806,7 +50866,7 @@ var Progress2 = function(t0) {
|
|
|
50806
50866
|
return t4;
|
|
50807
50867
|
};
|
|
50808
50868
|
var Gui = function() {
|
|
50809
|
-
var $ = (0,
|
|
50869
|
+
var $ = (0, import_react_compiler_runtime103.c)(8);
|
|
50810
50870
|
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50811
50871
|
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50812
50872
|
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
@@ -50872,7 +50932,7 @@ function _temp13(rs) {
|
|
|
50872
50932
|
return rs.status === "in_progress";
|
|
50873
50933
|
}
|
|
50874
50934
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50875
|
-
var
|
|
50935
|
+
var import_react_compiler_runtime104 = require("react-compiler-runtime");
|
|
50876
50936
|
var import_react76 = require("react");
|
|
50877
50937
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
50878
50938
|
var _excluded7 = [
|
|
@@ -50897,7 +50957,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50897
50957
|
return t;
|
|
50898
50958
|
}
|
|
50899
50959
|
var MarkdownProvider = function(t0) {
|
|
50900
|
-
var $ = (0,
|
|
50960
|
+
var $ = (0, import_react_compiler_runtime104.c)(9);
|
|
50901
50961
|
var children;
|
|
50902
50962
|
var rest;
|
|
50903
50963
|
if ($[0] !== t0) {
|
|
@@ -50940,18 +51000,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50940
51000
|
return t3;
|
|
50941
51001
|
};
|
|
50942
51002
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50943
|
-
var
|
|
51003
|
+
var import_react_compiler_runtime107 = require("react-compiler-runtime");
|
|
50944
51004
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50945
|
-
var
|
|
51005
|
+
var import_react_compiler_runtime106 = require("react-compiler-runtime");
|
|
50946
51006
|
var import_react77 = require("react");
|
|
50947
51007
|
var import_react_icons18 = require("@radix-ui/react-icons");
|
|
50948
51008
|
var import_themes66 = require("@radix-ui/themes");
|
|
50949
51009
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50950
|
-
var
|
|
51010
|
+
var import_react_compiler_runtime105 = require("react-compiler-runtime");
|
|
50951
51011
|
var import_themes65 = require("@radix-ui/themes");
|
|
50952
51012
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
50953
51013
|
var Content11 = function(t0) {
|
|
50954
|
-
var $ = (0,
|
|
51014
|
+
var $ = (0, import_react_compiler_runtime105.c)(5);
|
|
50955
51015
|
var fileId = t0.fileId;
|
|
50956
51016
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50957
51017
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -51017,7 +51077,7 @@ var Content11 = function(t0) {
|
|
|
51017
51077
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
51018
51078
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
51019
51079
|
var FileCitation = function(t0) {
|
|
51020
|
-
var $ = (0,
|
|
51080
|
+
var $ = (0, import_react_compiler_runtime106.c)(18);
|
|
51021
51081
|
var annotation = t0.annotation;
|
|
51022
51082
|
var _ref = _sliced_to_array((0, import_react77.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
|
|
51023
51083
|
var t1;
|
|
@@ -51166,7 +51226,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
51166
51226
|
return t;
|
|
51167
51227
|
}
|
|
51168
51228
|
var SourceAnnotation = function(t0) {
|
|
51169
|
-
var $ = (0,
|
|
51229
|
+
var $ = (0, import_react_compiler_runtime107.c)(10);
|
|
51170
51230
|
var children;
|
|
51171
51231
|
var rest;
|
|
51172
51232
|
if ($[0] !== t0) {
|
|
@@ -51223,7 +51283,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51223
51283
|
return null;
|
|
51224
51284
|
};
|
|
51225
51285
|
// src/components/avatars/Avatar.tsx
|
|
51226
|
-
var
|
|
51286
|
+
var import_react_compiler_runtime110 = require("react-compiler-runtime");
|
|
51227
51287
|
// src/enums/index.ts
|
|
51228
51288
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
51229
51289
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -51248,7 +51308,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
51248
51308
|
// src/components/avatars/Avatar.tsx
|
|
51249
51309
|
var import_themes69 = require("@radix-ui/themes");
|
|
51250
51310
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51251
|
-
var
|
|
51311
|
+
var import_react_compiler_runtime108 = require("react-compiler-runtime");
|
|
51252
51312
|
var import_themes67 = require("@radix-ui/themes");
|
|
51253
51313
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
51254
51314
|
var width = function(_ref) {
|
|
@@ -51302,7 +51362,7 @@ var optimizedSrc = function(_ref) {
|
|
|
51302
51362
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51303
51363
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
51304
51364
|
var ImageAvatar = function(t0) {
|
|
51305
|
-
var $ = (0,
|
|
51365
|
+
var $ = (0, import_react_compiler_runtime108.c)(9);
|
|
51306
51366
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51307
51367
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51308
51368
|
var t1;
|
|
@@ -51339,7 +51399,7 @@ var ImageAvatar = function(t0) {
|
|
|
51339
51399
|
return t2;
|
|
51340
51400
|
};
|
|
51341
51401
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51342
|
-
var
|
|
51402
|
+
var import_react_compiler_runtime109 = require("react-compiler-runtime");
|
|
51343
51403
|
var import_react78 = require("react");
|
|
51344
51404
|
var import_themes68 = require("@radix-ui/themes");
|
|
51345
51405
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -51349,7 +51409,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
|
|
|
51349
51409
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51350
51410
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
51351
51411
|
var IconAvatar = function(t0) {
|
|
51352
|
-
var $ = (0,
|
|
51412
|
+
var $ = (0, import_react_compiler_runtime109.c)(7);
|
|
51353
51413
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51354
51414
|
var t1;
|
|
51355
51415
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
@@ -51383,7 +51443,7 @@ var IconAvatar = function(t0) {
|
|
|
51383
51443
|
// src/components/avatars/Avatar.tsx
|
|
51384
51444
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
51385
51445
|
var Avatar6 = function(t0) {
|
|
51386
|
-
var $ = (0,
|
|
51446
|
+
var $ = (0, import_react_compiler_runtime110.c)(14);
|
|
51387
51447
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
51388
51448
|
var size = t1 === void 0 ? "1" : t1;
|
|
51389
51449
|
if (avatar) {
|
|
@@ -51444,7 +51504,7 @@ var Avatar6 = function(t0) {
|
|
|
51444
51504
|
return t2;
|
|
51445
51505
|
};
|
|
51446
51506
|
// src/components/components/ComponentsProvider.tsx
|
|
51447
|
-
var
|
|
51507
|
+
var import_react_compiler_runtime111 = require("react-compiler-runtime");
|
|
51448
51508
|
var import_react79 = require("react");
|
|
51449
51509
|
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
51450
51510
|
var _excluded9 = [
|
|
@@ -51469,7 +51529,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51469
51529
|
return t;
|
|
51470
51530
|
}
|
|
51471
51531
|
var ComponentsProvider = function(t0) {
|
|
51472
|
-
var $ = (0,
|
|
51532
|
+
var $ = (0, import_react_compiler_runtime111.c)(9);
|
|
51473
51533
|
var children;
|
|
51474
51534
|
var rest;
|
|
51475
51535
|
if ($[0] !== t0) {
|
|
@@ -51512,11 +51572,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51512
51572
|
return t3;
|
|
51513
51573
|
};
|
|
51514
51574
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51515
|
-
var
|
|
51575
|
+
var import_react_compiler_runtime112 = require("react-compiler-runtime");
|
|
51516
51576
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
51517
51577
|
var AssistantProvider = function(t0) {
|
|
51518
51578
|
var _assistant$name;
|
|
51519
|
-
var $ = (0,
|
|
51579
|
+
var $ = (0, import_react_compiler_runtime112.c)(10);
|
|
51520
51580
|
var children = t0.children;
|
|
51521
51581
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51522
51582
|
var t1;
|
|
@@ -51599,6 +51659,7 @@ var AssistantProvider = function(t0) {
|
|
|
51599
51659
|
WebrtcAudioRuntimeProvider: WebrtcAudioRuntimeProvider,
|
|
51600
51660
|
useAssistant: useAssistant,
|
|
51601
51661
|
useAudioThreadContext: useAudioThreadContext,
|
|
51662
|
+
useChangeFilesField: useChangeFilesField,
|
|
51602
51663
|
useComponents: useComponents,
|
|
51603
51664
|
useCreateFile: useCreateFile,
|
|
51604
51665
|
useCreateMessage: useCreateMessage,
|