@superinterface/react 5.2.3-beta.0 → 5.2.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +473 -440
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +381 -348
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5596,7 +5596,7 @@ var require_lib = __commonJS({
|
|
|
5596
5596
|
key: "parseMaybeAssign",
|
|
5597
5597
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
5598
5598
|
var _this = this;
|
|
5599
|
-
var
|
|
5599
|
+
var _jsx110;
|
|
5600
5600
|
var state = null;
|
|
5601
5601
|
var jsx2;
|
|
5602
5602
|
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
|
|
@@ -5611,7 +5611,7 @@ var require_lib = __commonJS({
|
|
|
5611
5611
|
context.pop();
|
|
5612
5612
|
}
|
|
5613
5613
|
}
|
|
5614
|
-
if ((
|
|
5614
|
+
if ((_jsx110 = jsx2) != null && _jsx110.error || this.match(47)) {
|
|
5615
5615
|
var _jsx210, _jsx310;
|
|
5616
5616
|
state = state || this.state.clone();
|
|
5617
5617
|
var typeParameters;
|
|
@@ -13389,7 +13389,7 @@ var require_lib = __commonJS({
|
|
|
13389
13389
|
key: "parseMaybeAssign",
|
|
13390
13390
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
13391
13391
|
var _this = this;
|
|
13392
|
-
var
|
|
13392
|
+
var _jsx110, _jsx210, _typeCast, _jsx310, _typeCast2;
|
|
13393
13393
|
var state;
|
|
13394
13394
|
var jsx2;
|
|
13395
13395
|
var typeCast;
|
|
@@ -13405,7 +13405,7 @@ var require_lib = __commonJS({
|
|
|
13405
13405
|
context.pop();
|
|
13406
13406
|
}
|
|
13407
13407
|
}
|
|
13408
|
-
if (!((
|
|
13408
|
+
if (!((_jsx110 = jsx2) != null && _jsx110.error) && !this.match(47)) {
|
|
13409
13409
|
return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
|
|
13410
13410
|
}
|
|
13411
13411
|
if (!state || state === this.state) state = this.state.clone();
|
|
@@ -37071,7 +37071,7 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37071
37071
|
});
|
|
37072
37072
|
};
|
|
37073
37073
|
// src/components/threads/Thread/index.tsx
|
|
37074
|
-
import { c as
|
|
37074
|
+
import { c as _c78 } from "react-compiler-runtime";
|
|
37075
37075
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37076
37076
|
import { c as _c66 } from "react-compiler-runtime";
|
|
37077
37077
|
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
@@ -39809,7 +39809,8 @@ var threadRunRequiresAction = /* @__PURE__ */ function() {
|
|
|
39809
39809
|
3,
|
|
39810
39810
|
2
|
|
39811
39811
|
];
|
|
39812
|
-
toolCalls =
|
|
39812
|
+
toolCalls = // @ts-ignore-next-line
|
|
39813
|
+
value.data.required_action.submit_client_tool_outputs.tool_calls;
|
|
39813
39814
|
return [
|
|
39814
39815
|
4,
|
|
39815
39816
|
map(toolCalls, /* @__PURE__ */ function() {
|
|
@@ -43941,7 +43942,7 @@ Messages2.Message = Message;
|
|
|
43941
43942
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
43942
43943
|
Messages2.Content = Content7;
|
|
43943
43944
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
43944
|
-
import { c as
|
|
43945
|
+
import { c as _c74 } from "react-compiler-runtime";
|
|
43945
43946
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
43946
43947
|
import { c as _c67 } from "react-compiler-runtime";
|
|
43947
43948
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
@@ -44116,9 +44117,40 @@ Submit.Root = Root7;
|
|
|
44116
44117
|
Submit.Button = Button3;
|
|
44117
44118
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44118
44119
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
44119
|
-
import { useMemo as
|
|
44120
|
-
|
|
44121
|
-
|
|
44120
|
+
import { useMemo as useMemo14, useState as useState4, useCallback as useCallback3 } from "react";
|
|
44121
|
+
import { useForm } from "react-hook-form";
|
|
44122
|
+
// src/lib/reactHookForm/FormProvider.tsx
|
|
44123
|
+
import { c as _c68 } from "react-compiler-runtime";
|
|
44124
|
+
import { createContext as createContext12, useContext as useContext16, useMemo as useMemo13 } from "react";
|
|
44125
|
+
import { jsx as _jsx69 } from "react/jsx-runtime";
|
|
44126
|
+
var FormContext = /* @__PURE__ */ createContext12(null);
|
|
44127
|
+
var useFormContext = function() {
|
|
44128
|
+
var value = useContext16(FormContext);
|
|
44129
|
+
if (!value) {
|
|
44130
|
+
throw new Error("useFormContext must be used within FormProvider");
|
|
44131
|
+
}
|
|
44132
|
+
return value;
|
|
44133
|
+
};
|
|
44134
|
+
var FormProvider = function(t0) {
|
|
44135
|
+
var $ = _c68(3);
|
|
44136
|
+
var children = t0.children, form = t0.form;
|
|
44137
|
+
var t1;
|
|
44138
|
+
t1 = form;
|
|
44139
|
+
var contextValue = t1;
|
|
44140
|
+
var t2;
|
|
44141
|
+
if ($[0] !== children || $[1] !== contextValue) {
|
|
44142
|
+
t2 = /* @__PURE__ */ _jsx69(FormContext.Provider, {
|
|
44143
|
+
value: contextValue,
|
|
44144
|
+
children: children
|
|
44145
|
+
});
|
|
44146
|
+
$[0] = children;
|
|
44147
|
+
$[1] = contextValue;
|
|
44148
|
+
$[2] = t2;
|
|
44149
|
+
} else {
|
|
44150
|
+
t2 = $[2];
|
|
44151
|
+
}
|
|
44152
|
+
return t2;
|
|
44153
|
+
};
|
|
44122
44154
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44123
44155
|
import { Box as Box14 } from "@radix-ui/themes";
|
|
44124
44156
|
// src/components/threads/Thread/MessageForm/Root/lib/formOptions.ts
|
|
@@ -44132,7 +44164,7 @@ var formOptions = {
|
|
|
44132
44164
|
};
|
|
44133
44165
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44134
44166
|
import { partob } from "radash";
|
|
44135
|
-
import { jsx as
|
|
44167
|
+
import { jsx as _jsx70 } from "react/jsx-runtime";
|
|
44136
44168
|
function ownKeys30(e, r) {
|
|
44137
44169
|
var t = Object.keys(e);
|
|
44138
44170
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44216,7 +44248,7 @@ var Root8 = function(_ref) {
|
|
|
44216
44248
|
})
|
|
44217
44249
|
}).createMessage;
|
|
44218
44250
|
var isMutatingMessage = useIsMutatingMessage();
|
|
44219
|
-
var isFileLoading =
|
|
44251
|
+
var isFileLoading = useMemo14(function() {
|
|
44220
44252
|
return files.some(function(file) {
|
|
44221
44253
|
return isOptimistic({
|
|
44222
44254
|
id: file.id
|
|
@@ -44225,14 +44257,14 @@ var Root8 = function(_ref) {
|
|
|
44225
44257
|
}, [
|
|
44226
44258
|
files
|
|
44227
44259
|
]);
|
|
44228
|
-
var isLoading =
|
|
44260
|
+
var isLoading = useMemo14(function() {
|
|
44229
44261
|
return isMutatingMessage || isSubmitting;
|
|
44230
44262
|
}, [
|
|
44231
44263
|
isMutatingMessage,
|
|
44232
44264
|
isSubmitting
|
|
44233
44265
|
]);
|
|
44234
44266
|
var latestMessage = useLatestMessage().latestMessage;
|
|
44235
|
-
var isDisabled =
|
|
44267
|
+
var isDisabled = useMemo14(function() {
|
|
44236
44268
|
var _latestMessage$metada;
|
|
44237
44269
|
return !!(latestMessage !== null && latestMessage !== void 0 && (_latestMessage$metada = latestMessage.metadata) !== null && _latestMessage$metada !== void 0 && _latestMessage$metada.isBlocking) || !!isDisabledArg;
|
|
44238
44270
|
}, [
|
|
@@ -44314,7 +44346,7 @@ var Root8 = function(_ref) {
|
|
|
44314
44346
|
};
|
|
44315
44347
|
}();
|
|
44316
44348
|
var content_0 = watch("content");
|
|
44317
|
-
return /* @__PURE__ */
|
|
44349
|
+
return /* @__PURE__ */ _jsx70(MessageFormContext.Provider, {
|
|
44318
44350
|
value: {
|
|
44319
44351
|
isDisabled: isDisabled,
|
|
44320
44352
|
isLoading: isLoading,
|
|
@@ -44323,24 +44355,25 @@ var Root8 = function(_ref) {
|
|
|
44323
44355
|
isFileLoading: isFileLoading,
|
|
44324
44356
|
content: content_0
|
|
44325
44357
|
},
|
|
44326
|
-
children: /* @__PURE__ */
|
|
44327
|
-
|
|
44358
|
+
children: /* @__PURE__ */ _jsx70(FormProvider, {
|
|
44359
|
+
form: formProps,
|
|
44360
|
+
children: /* @__PURE__ */ _jsx70(Box14, {
|
|
44328
44361
|
asChild: true,
|
|
44329
44362
|
flexShrink: "0",
|
|
44330
44363
|
style: style,
|
|
44331
44364
|
className: className,
|
|
44332
|
-
children: /* @__PURE__ */
|
|
44365
|
+
children: /* @__PURE__ */ _jsx70("form", {
|
|
44333
44366
|
onSubmit: handleSubmit(onSubmit),
|
|
44334
44367
|
children: children
|
|
44335
44368
|
})
|
|
44336
44369
|
})
|
|
44337
|
-
})
|
|
44370
|
+
})
|
|
44338
44371
|
});
|
|
44339
44372
|
};
|
|
44340
44373
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
44341
44374
|
import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
|
|
44342
44375
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44343
|
-
import { c as
|
|
44376
|
+
import { c as _c70 } from "react-compiler-runtime";
|
|
44344
44377
|
import { Flex as Flex20 } from "@radix-ui/themes";
|
|
44345
44378
|
// src/hooks/misc/usePrevious.ts
|
|
44346
44379
|
import { useEffect as useEffect5, useRef as useRef4 } from "react";
|
|
@@ -44352,12 +44385,12 @@ var usePrevious = function(state) {
|
|
|
44352
44385
|
return ref.current;
|
|
44353
44386
|
};
|
|
44354
44387
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44355
|
-
import { useContext as
|
|
44388
|
+
import { useContext as useContext17, useMemo as useMemo15, useRef as useRef5, useEffect as useEffect6 } from "react";
|
|
44356
44389
|
// src/components/textareas/TextareaBase/index.tsx
|
|
44357
|
-
import { c as
|
|
44390
|
+
import { c as _c69 } from "react-compiler-runtime";
|
|
44358
44391
|
import { forwardRef as forwardRef4 } from "react";
|
|
44359
44392
|
import TextareaAutosize from "react-textarea-autosize";
|
|
44360
|
-
import { jsx as
|
|
44393
|
+
import { jsx as _jsx71, Fragment as _Fragment5, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
44361
44394
|
var _excluded3 = [
|
|
44362
44395
|
"style",
|
|
44363
44396
|
"className"
|
|
@@ -44424,7 +44457,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
|
|
|
44424
44457
|
return t;
|
|
44425
44458
|
}
|
|
44426
44459
|
var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
44427
|
-
var $ =
|
|
44460
|
+
var $ = _c69(14);
|
|
44428
44461
|
var className;
|
|
44429
44462
|
var rest;
|
|
44430
44463
|
var style;
|
|
@@ -44445,7 +44478,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44445
44478
|
}
|
|
44446
44479
|
var t1;
|
|
44447
44480
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44448
|
-
t1 = /* @__PURE__ */
|
|
44481
|
+
t1 = /* @__PURE__ */ _jsx71("style", {
|
|
44449
44482
|
children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
|
|
44450
44483
|
});
|
|
44451
44484
|
$[4] = t1;
|
|
@@ -44482,7 +44515,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44482
44515
|
t5 = /* @__PURE__ */ _jsxs22(_Fragment5, {
|
|
44483
44516
|
children: [
|
|
44484
44517
|
t1,
|
|
44485
|
-
/* @__PURE__ */
|
|
44518
|
+
/* @__PURE__ */ _jsx71(TextareaAutosize, _objectSpread31({
|
|
44486
44519
|
ref: ref,
|
|
44487
44520
|
className: t2,
|
|
44488
44521
|
style: t4
|
|
@@ -44500,7 +44533,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
44500
44533
|
return t5;
|
|
44501
44534
|
});
|
|
44502
44535
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44503
|
-
import { jsx as
|
|
44536
|
+
import { jsx as _jsx72 } from "react/jsx-runtime";
|
|
44504
44537
|
function ownKeys32(e, r) {
|
|
44505
44538
|
var t = Object.keys(e);
|
|
44506
44539
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44545,11 +44578,11 @@ function _toPrimitive32(t, r) {
|
|
|
44545
44578
|
return ("string" === r ? String : Number)(t);
|
|
44546
44579
|
}
|
|
44547
44580
|
var Root9 = function(t0) {
|
|
44548
|
-
var $ =
|
|
44581
|
+
var $ = _c70(4);
|
|
44549
44582
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44550
44583
|
var t1;
|
|
44551
44584
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44552
|
-
t1 = /* @__PURE__ */
|
|
44585
|
+
t1 = /* @__PURE__ */ _jsx72(Flex20, {
|
|
44553
44586
|
flexGrow: "1",
|
|
44554
44587
|
pt: "4px",
|
|
44555
44588
|
style: style,
|
|
@@ -44568,10 +44601,10 @@ var Root9 = function(t0) {
|
|
|
44568
44601
|
var Input = function(props) {
|
|
44569
44602
|
"use no memo";
|
|
44570
44603
|
var _props$placeholder;
|
|
44571
|
-
var assistantNameContext =
|
|
44604
|
+
var assistantNameContext = useContext17(AssistantNameContext);
|
|
44572
44605
|
var register = useFormContext().register;
|
|
44573
44606
|
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
|
|
44574
|
-
var isSubmitDisabled =
|
|
44607
|
+
var isSubmitDisabled = useMemo15(function() {
|
|
44575
44608
|
return isDisabled || isLoading;
|
|
44576
44609
|
}, [
|
|
44577
44610
|
isDisabled,
|
|
@@ -44590,7 +44623,7 @@ var Input = function(props) {
|
|
|
44590
44623
|
isDisabledPrevious,
|
|
44591
44624
|
textareaProps
|
|
44592
44625
|
]);
|
|
44593
|
-
return /* @__PURE__ */
|
|
44626
|
+
return /* @__PURE__ */ _jsx72(TextareaBase, _objectSpread32(_objectSpread32(_objectSpread32({
|
|
44594
44627
|
minRows: 1,
|
|
44595
44628
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
44596
44629
|
disabled: isDisabled,
|
|
@@ -44610,17 +44643,17 @@ var Input = function(props) {
|
|
|
44610
44643
|
}));
|
|
44611
44644
|
};
|
|
44612
44645
|
var Control = function(props) {
|
|
44613
|
-
var $ =
|
|
44646
|
+
var $ = _c70(3);
|
|
44614
44647
|
var t0;
|
|
44615
44648
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44616
|
-
t0 = /* @__PURE__ */
|
|
44649
|
+
t0 = /* @__PURE__ */ _jsx72(Input, {});
|
|
44617
44650
|
$[0] = t0;
|
|
44618
44651
|
} else {
|
|
44619
44652
|
t0 = $[0];
|
|
44620
44653
|
}
|
|
44621
44654
|
var t1;
|
|
44622
44655
|
if ($[1] !== props) {
|
|
44623
|
-
t1 = /* @__PURE__ */
|
|
44656
|
+
t1 = /* @__PURE__ */ _jsx72(Root9, _objectSpread32(_objectSpread32({}, props), {}, {
|
|
44624
44657
|
children: t0
|
|
44625
44658
|
}));
|
|
44626
44659
|
$[1] = props;
|
|
@@ -44633,10 +44666,10 @@ var Control = function(props) {
|
|
|
44633
44666
|
Control.Root = Root9;
|
|
44634
44667
|
Control.Input = Input;
|
|
44635
44668
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
44636
|
-
import { c as
|
|
44669
|
+
import { c as _c71 } from "react-compiler-runtime";
|
|
44637
44670
|
import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
44638
44671
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
44639
|
-
import { jsx as
|
|
44672
|
+
import { jsx as _jsx73, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
44640
44673
|
function ownKeys33(e, r) {
|
|
44641
44674
|
var t = Object.keys(e);
|
|
44642
44675
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44681,7 +44714,7 @@ function _toPrimitive33(t, r) {
|
|
|
44681
44714
|
return ("string" === r ? String : Number)(t);
|
|
44682
44715
|
}
|
|
44683
44716
|
var Preview = function(props) {
|
|
44684
|
-
var $ =
|
|
44717
|
+
var $ = _c71(8);
|
|
44685
44718
|
var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
|
|
44686
44719
|
if (!files.length) {
|
|
44687
44720
|
return null;
|
|
@@ -44691,7 +44724,7 @@ var Preview = function(props) {
|
|
|
44691
44724
|
var _t;
|
|
44692
44725
|
if ($[3] !== setFiles) {
|
|
44693
44726
|
_t = function(file) {
|
|
44694
|
-
return /* @__PURE__ */
|
|
44727
|
+
return /* @__PURE__ */ _jsx73(Card2, {
|
|
44695
44728
|
variant: "ghost",
|
|
44696
44729
|
children: /* @__PURE__ */ _jsxs23(Flex21, {
|
|
44697
44730
|
align: "center",
|
|
@@ -44705,16 +44738,16 @@ var Preview = function(props) {
|
|
|
44705
44738
|
minWidth: "0",
|
|
44706
44739
|
maxWidth: "250px",
|
|
44707
44740
|
children: [
|
|
44708
|
-
/* @__PURE__ */
|
|
44741
|
+
/* @__PURE__ */ _jsx73(Flex21, {
|
|
44709
44742
|
flexShrink: "0",
|
|
44710
|
-
children: /* @__PURE__ */
|
|
44743
|
+
children: /* @__PURE__ */ _jsx73(Spinner2, {
|
|
44711
44744
|
loading: isOptimistic({
|
|
44712
44745
|
id: file.id
|
|
44713
44746
|
}),
|
|
44714
|
-
children: /* @__PURE__ */
|
|
44747
|
+
children: /* @__PURE__ */ _jsx73(FileIcon2, {})
|
|
44715
44748
|
})
|
|
44716
44749
|
}),
|
|
44717
|
-
/* @__PURE__ */
|
|
44750
|
+
/* @__PURE__ */ _jsx73(Text7, {
|
|
44718
44751
|
size: "2",
|
|
44719
44752
|
truncate: true,
|
|
44720
44753
|
wrap: "nowrap",
|
|
@@ -44722,9 +44755,9 @@ var Preview = function(props) {
|
|
|
44722
44755
|
})
|
|
44723
44756
|
]
|
|
44724
44757
|
}),
|
|
44725
|
-
/* @__PURE__ */
|
|
44758
|
+
/* @__PURE__ */ _jsx73(Flex21, {
|
|
44726
44759
|
flexShrink: "0",
|
|
44727
|
-
children: /* @__PURE__ */
|
|
44760
|
+
children: /* @__PURE__ */ _jsx73(IconButton6, {
|
|
44728
44761
|
onClick: function() {
|
|
44729
44762
|
return setFiles(function(prev) {
|
|
44730
44763
|
return prev.filter(function(prevFile) {
|
|
@@ -44735,7 +44768,7 @@ var Preview = function(props) {
|
|
|
44735
44768
|
color: "gray",
|
|
44736
44769
|
variant: "ghost",
|
|
44737
44770
|
size: "1",
|
|
44738
|
-
children: /* @__PURE__ */
|
|
44771
|
+
children: /* @__PURE__ */ _jsx73(Cross2Icon, {})
|
|
44739
44772
|
})
|
|
44740
44773
|
})
|
|
44741
44774
|
]
|
|
@@ -44756,7 +44789,7 @@ var Preview = function(props) {
|
|
|
44756
44789
|
}
|
|
44757
44790
|
var t1;
|
|
44758
44791
|
if ($[5] !== props || $[6] !== t0) {
|
|
44759
|
-
t1 = /* @__PURE__ */
|
|
44792
|
+
t1 = /* @__PURE__ */ _jsx73(Flex21, _objectSpread33(_objectSpread33({
|
|
44760
44793
|
flexBasis: "100%",
|
|
44761
44794
|
direction: "column",
|
|
44762
44795
|
pb: "2",
|
|
@@ -44773,7 +44806,7 @@ var Preview = function(props) {
|
|
|
44773
44806
|
return t1;
|
|
44774
44807
|
};
|
|
44775
44808
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
44776
|
-
import { c as
|
|
44809
|
+
import { c as _c73 } from "react-compiler-runtime";
|
|
44777
44810
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
44778
44811
|
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
44779
44812
|
// src/hooks/files/useChangeFilesField/index.ts
|
|
@@ -44781,7 +44814,7 @@ import { useCallback as useCallback4 } from "react";
|
|
|
44781
44814
|
import { omit as omit4 } from "radash";
|
|
44782
44815
|
import dayjs2 from "dayjs";
|
|
44783
44816
|
// src/hooks/files/useCreateFile/index.ts
|
|
44784
|
-
import { c as
|
|
44817
|
+
import { c as _c72 } from "react-compiler-runtime";
|
|
44785
44818
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
44786
44819
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
|
|
44787
44820
|
var formData = function(variables) {
|
|
@@ -45017,7 +45050,7 @@ function _toPrimitive36(t, r) {
|
|
|
45017
45050
|
return ("string" === r ? String : Number)(t);
|
|
45018
45051
|
}
|
|
45019
45052
|
var useCreateFile = function(t0) {
|
|
45020
|
-
var $ =
|
|
45053
|
+
var $ = _c72(15);
|
|
45021
45054
|
var t1;
|
|
45022
45055
|
if ($[0] !== t0) {
|
|
45023
45056
|
t1 = t0 === void 0 ? {
|
|
@@ -45346,7 +45379,7 @@ var useChangeFilesField = function() {
|
|
|
45346
45379
|
// src/lib/files/filesFieldAccept.ts
|
|
45347
45380
|
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";
|
|
45348
45381
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45349
|
-
import { jsx as
|
|
45382
|
+
import { jsx as _jsx74, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45350
45383
|
function ownKeys37(e, r) {
|
|
45351
45384
|
var t = Object.keys(e);
|
|
45352
45385
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45391,7 +45424,7 @@ function _toPrimitive37(t, r) {
|
|
|
45391
45424
|
return ("string" === r ? String : Number)(t);
|
|
45392
45425
|
}
|
|
45393
45426
|
var Control2 = function(props) {
|
|
45394
|
-
var $ =
|
|
45427
|
+
var $ = _c73(11);
|
|
45395
45428
|
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
|
|
45396
45429
|
var changeFilesField = useChangeFilesField().changeFilesField;
|
|
45397
45430
|
var t0 = isDisabled || isLoading;
|
|
@@ -45402,7 +45435,7 @@ var Control2 = function(props) {
|
|
|
45402
45435
|
position: "relative",
|
|
45403
45436
|
overflow: "hidden"
|
|
45404
45437
|
};
|
|
45405
|
-
t2 = /* @__PURE__ */
|
|
45438
|
+
t2 = /* @__PURE__ */ _jsx74(FilePlusIcon, {});
|
|
45406
45439
|
$[0] = t1;
|
|
45407
45440
|
$[1] = t2;
|
|
45408
45441
|
} else {
|
|
@@ -45426,7 +45459,7 @@ var Control2 = function(props) {
|
|
|
45426
45459
|
}
|
|
45427
45460
|
var t4;
|
|
45428
45461
|
if ($[3] !== changeFilesField) {
|
|
45429
|
-
t4 = /* @__PURE__ */
|
|
45462
|
+
t4 = /* @__PURE__ */ _jsx74("input", {
|
|
45430
45463
|
type: "file",
|
|
45431
45464
|
multiple: true,
|
|
45432
45465
|
accept: filesFieldAccept,
|
|
@@ -45459,7 +45492,7 @@ var Control2 = function(props) {
|
|
|
45459
45492
|
}
|
|
45460
45493
|
var t6;
|
|
45461
45494
|
if ($[8] !== props || $[9] !== t5) {
|
|
45462
|
-
t6 = /* @__PURE__ */
|
|
45495
|
+
t6 = /* @__PURE__ */ _jsx74(Flex22, _objectSpread37(_objectSpread37({
|
|
45463
45496
|
pt: "2",
|
|
45464
45497
|
pr: "2",
|
|
45465
45498
|
flexGrow: "0"
|
|
@@ -45480,7 +45513,7 @@ var Files = {
|
|
|
45480
45513
|
Control: Control2
|
|
45481
45514
|
};
|
|
45482
45515
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
45483
|
-
import { jsx as
|
|
45516
|
+
import { jsx as _jsx75 } from "react/jsx-runtime";
|
|
45484
45517
|
function ownKeys38(e, r) {
|
|
45485
45518
|
var t = Object.keys(e);
|
|
45486
45519
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45528,18 +45561,18 @@ var Root10 = function(_ref) {
|
|
|
45528
45561
|
"use no memo";
|
|
45529
45562
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45530
45563
|
var _useFormContext = useFormContext(), errors = _useFormContext.formState.errors;
|
|
45531
|
-
return /* @__PURE__ */
|
|
45564
|
+
return /* @__PURE__ */ _jsx75(RadixContainer, {
|
|
45532
45565
|
size: "2",
|
|
45533
45566
|
flexGrow: "0",
|
|
45534
45567
|
className: className,
|
|
45535
45568
|
style: style,
|
|
45536
|
-
children: /* @__PURE__ */
|
|
45569
|
+
children: /* @__PURE__ */ _jsx75(Flex23, {
|
|
45537
45570
|
direction: "column",
|
|
45538
45571
|
flexShrink: "0",
|
|
45539
|
-
children: /* @__PURE__ */
|
|
45572
|
+
children: /* @__PURE__ */ _jsx75(Flex23, {
|
|
45540
45573
|
direction: "column",
|
|
45541
45574
|
flexShrink: "0",
|
|
45542
|
-
children: /* @__PURE__ */
|
|
45575
|
+
children: /* @__PURE__ */ _jsx75(Flex23, {
|
|
45543
45576
|
style: _objectSpread38({
|
|
45544
45577
|
borderRadius: "var(--radius-2)",
|
|
45545
45578
|
borderWidth: "1px",
|
|
@@ -45563,7 +45596,7 @@ var Field = {
|
|
|
45563
45596
|
Files: Files
|
|
45564
45597
|
};
|
|
45565
45598
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
45566
|
-
import { jsx as
|
|
45599
|
+
import { jsx as _jsx76, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
45567
45600
|
function ownKeys39(e, r) {
|
|
45568
45601
|
var t = Object.keys(e);
|
|
45569
45602
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45608,13 +45641,13 @@ function _toPrimitive39(t, r) {
|
|
|
45608
45641
|
return ("string" === r ? String : Number)(t);
|
|
45609
45642
|
}
|
|
45610
45643
|
var MessageForm = function(props) {
|
|
45611
|
-
var $ =
|
|
45644
|
+
var $ = _c74(3);
|
|
45612
45645
|
var t0;
|
|
45613
45646
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45614
45647
|
t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
45615
45648
|
children: [
|
|
45616
|
-
/* @__PURE__ */
|
|
45617
|
-
/* @__PURE__ */
|
|
45649
|
+
/* @__PURE__ */ _jsx76(Field.Control, {}),
|
|
45650
|
+
/* @__PURE__ */ _jsx76(Submit, {})
|
|
45618
45651
|
]
|
|
45619
45652
|
});
|
|
45620
45653
|
$[0] = t0;
|
|
@@ -45623,7 +45656,7 @@ var MessageForm = function(props) {
|
|
|
45623
45656
|
}
|
|
45624
45657
|
var t1;
|
|
45625
45658
|
if ($[1] !== props) {
|
|
45626
|
-
t1 = /* @__PURE__ */
|
|
45659
|
+
t1 = /* @__PURE__ */ _jsx76(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
|
|
45627
45660
|
children: t0
|
|
45628
45661
|
}));
|
|
45629
45662
|
$[1] = props;
|
|
@@ -45637,32 +45670,32 @@ MessageForm.Root = Root8;
|
|
|
45637
45670
|
MessageForm.Field = Field;
|
|
45638
45671
|
MessageForm.Submit = Submit;
|
|
45639
45672
|
// src/components/threads/Thread/Root/index.tsx
|
|
45640
|
-
import { c as
|
|
45673
|
+
import { c as _c77 } from "react-compiler-runtime";
|
|
45641
45674
|
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
45642
45675
|
// src/components/threads/Thread/Provider/index.tsx
|
|
45643
45676
|
var Provider2 = SuperinterfaceProvider;
|
|
45644
45677
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
45645
|
-
import { c as
|
|
45678
|
+
import { c as _c76 } from "react-compiler-runtime";
|
|
45646
45679
|
import { useState as useState5, useCallback as useCallback5 } from "react";
|
|
45647
45680
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
45648
45681
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
45649
|
-
import { c as
|
|
45682
|
+
import { c as _c75 } from "react-compiler-runtime";
|
|
45650
45683
|
import * as Toast from "@radix-ui/react-toast";
|
|
45651
45684
|
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
45652
45685
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
45653
|
-
import { jsx as
|
|
45686
|
+
import { jsx as _jsx77, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
45654
45687
|
var CustomToast = function(t0) {
|
|
45655
|
-
var $ =
|
|
45688
|
+
var $ = _c75(7);
|
|
45656
45689
|
var toast = t0.toast;
|
|
45657
45690
|
var t1;
|
|
45658
45691
|
if ($[0] !== toast.type) {
|
|
45659
|
-
t1 = /* @__PURE__ */
|
|
45692
|
+
t1 = /* @__PURE__ */ _jsx77(Flex24, {
|
|
45660
45693
|
pr: "2",
|
|
45661
45694
|
height: "14px",
|
|
45662
45695
|
align: "center",
|
|
45663
|
-
children: toast.type === "success" ? /* @__PURE__ */
|
|
45696
|
+
children: toast.type === "success" ? /* @__PURE__ */ _jsx77(CheckCircledIcon2, {
|
|
45664
45697
|
color: "var(--accent-9)"
|
|
45665
|
-
}) : /* @__PURE__ */
|
|
45698
|
+
}) : /* @__PURE__ */ _jsx77(CrossCircledIcon, {
|
|
45666
45699
|
color: "var(--red-9)"
|
|
45667
45700
|
})
|
|
45668
45701
|
});
|
|
@@ -45673,7 +45706,7 @@ var CustomToast = function(t0) {
|
|
|
45673
45706
|
}
|
|
45674
45707
|
var t2;
|
|
45675
45708
|
if ($[2] !== toast.message) {
|
|
45676
|
-
t2 = /* @__PURE__ */
|
|
45709
|
+
t2 = /* @__PURE__ */ _jsx77(Text8, {
|
|
45677
45710
|
weight: "medium",
|
|
45678
45711
|
size: "1",
|
|
45679
45712
|
children: toast.message
|
|
@@ -45685,9 +45718,9 @@ var CustomToast = function(t0) {
|
|
|
45685
45718
|
}
|
|
45686
45719
|
var t3;
|
|
45687
45720
|
if ($[4] !== t1 || $[5] !== t2) {
|
|
45688
|
-
t3 = /* @__PURE__ */
|
|
45689
|
-
children: /* @__PURE__ */
|
|
45690
|
-
children: /* @__PURE__ */
|
|
45721
|
+
t3 = /* @__PURE__ */ _jsx77(Toast.Root, {
|
|
45722
|
+
children: /* @__PURE__ */ _jsx77(Card3, {
|
|
45723
|
+
children: /* @__PURE__ */ _jsx77(Toast.Title, {
|
|
45691
45724
|
children: /* @__PURE__ */ _jsxs26(Flex24, {
|
|
45692
45725
|
children: [
|
|
45693
45726
|
t1,
|
|
@@ -45706,9 +45739,9 @@ var CustomToast = function(t0) {
|
|
|
45706
45739
|
return t3;
|
|
45707
45740
|
};
|
|
45708
45741
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
45709
|
-
import { jsx as
|
|
45742
|
+
import { jsx as _jsx78, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
45710
45743
|
var ToastsProvider = function(t0) {
|
|
45711
|
-
var $ =
|
|
45744
|
+
var $ = _c76(15);
|
|
45712
45745
|
var children = t0.children, t1 = t0.bottom;
|
|
45713
45746
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
45714
45747
|
var t2;
|
|
@@ -45754,7 +45787,7 @@ var ToastsProvider = function(t0) {
|
|
|
45754
45787
|
}
|
|
45755
45788
|
var t6;
|
|
45756
45789
|
if ($[6] !== bottom) {
|
|
45757
|
-
t6 = /* @__PURE__ */
|
|
45790
|
+
t6 = /* @__PURE__ */ _jsx78(Toast2.Viewport, {
|
|
45758
45791
|
style: {
|
|
45759
45792
|
position: "absolute",
|
|
45760
45793
|
bottom: bottom,
|
|
@@ -45794,7 +45827,7 @@ var ToastsProvider = function(t0) {
|
|
|
45794
45827
|
}
|
|
45795
45828
|
var t8;
|
|
45796
45829
|
if ($[12] !== t4 || $[13] !== t7) {
|
|
45797
|
-
t8 = /* @__PURE__ */
|
|
45830
|
+
t8 = /* @__PURE__ */ _jsx78(ToastsContext.Provider, {
|
|
45798
45831
|
value: t4,
|
|
45799
45832
|
children: t7
|
|
45800
45833
|
});
|
|
@@ -45807,12 +45840,12 @@ var ToastsProvider = function(t0) {
|
|
|
45807
45840
|
return t8;
|
|
45808
45841
|
};
|
|
45809
45842
|
function _temp5(toast_0, index) {
|
|
45810
|
-
return /* @__PURE__ */
|
|
45843
|
+
return /* @__PURE__ */ _jsx78(CustomToast, {
|
|
45811
45844
|
toast: toast_0
|
|
45812
45845
|
}, index);
|
|
45813
45846
|
}
|
|
45814
45847
|
// src/components/threads/Thread/Root/index.tsx
|
|
45815
|
-
import { jsx as
|
|
45848
|
+
import { jsx as _jsx79 } from "react/jsx-runtime";
|
|
45816
45849
|
var _excluded4 = [
|
|
45817
45850
|
"children",
|
|
45818
45851
|
"style",
|
|
@@ -45880,7 +45913,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
45880
45913
|
return t;
|
|
45881
45914
|
}
|
|
45882
45915
|
var Root12 = function(t0) {
|
|
45883
|
-
var $ =
|
|
45916
|
+
var $ = _c77(12);
|
|
45884
45917
|
var children;
|
|
45885
45918
|
var className;
|
|
45886
45919
|
var rest;
|
|
@@ -45904,7 +45937,7 @@ var Root12 = function(t0) {
|
|
|
45904
45937
|
}
|
|
45905
45938
|
var t1;
|
|
45906
45939
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
45907
|
-
t1 = /* @__PURE__ */
|
|
45940
|
+
t1 = /* @__PURE__ */ _jsx79(Flex25, {
|
|
45908
45941
|
direction: "column",
|
|
45909
45942
|
flexGrow: "1",
|
|
45910
45943
|
className: className,
|
|
@@ -45920,9 +45953,9 @@ var Root12 = function(t0) {
|
|
|
45920
45953
|
}
|
|
45921
45954
|
var t2;
|
|
45922
45955
|
if ($[9] !== rest || $[10] !== t1) {
|
|
45923
|
-
t2 = /* @__PURE__ */
|
|
45956
|
+
t2 = /* @__PURE__ */ _jsx79(ToastsProvider, {
|
|
45924
45957
|
bottom: "var(--space-9)",
|
|
45925
|
-
children: /* @__PURE__ */
|
|
45958
|
+
children: /* @__PURE__ */ _jsx79(Provider2, _objectSpread40(_objectSpread40({}, rest), {}, {
|
|
45926
45959
|
children: t1
|
|
45927
45960
|
}))
|
|
45928
45961
|
});
|
|
@@ -45935,7 +45968,7 @@ var Root12 = function(t0) {
|
|
|
45935
45968
|
return t2;
|
|
45936
45969
|
};
|
|
45937
45970
|
// src/components/threads/Thread/index.tsx
|
|
45938
|
-
import { jsx as
|
|
45971
|
+
import { jsx as _jsx80, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
45939
45972
|
function ownKeys41(e, r) {
|
|
45940
45973
|
var t = Object.keys(e);
|
|
45941
45974
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45980,12 +46013,12 @@ function _toPrimitive41(t, r) {
|
|
|
45980
46013
|
return ("string" === r ? String : Number)(t);
|
|
45981
46014
|
}
|
|
45982
46015
|
var Thread = function(props) {
|
|
45983
|
-
var $ =
|
|
46016
|
+
var $ = _c78(4);
|
|
45984
46017
|
var t0;
|
|
45985
46018
|
var t1;
|
|
45986
46019
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45987
|
-
t0 = /* @__PURE__ */
|
|
45988
|
-
t1 = /* @__PURE__ */
|
|
46020
|
+
t0 = /* @__PURE__ */ _jsx80(Messages2, {});
|
|
46021
|
+
t1 = /* @__PURE__ */ _jsx80(MessageForm, {});
|
|
45989
46022
|
$[0] = t0;
|
|
45990
46023
|
$[1] = t1;
|
|
45991
46024
|
} else {
|
|
@@ -46011,13 +46044,13 @@ Thread.Root = Root12;
|
|
|
46011
46044
|
Thread.Messages = Messages2;
|
|
46012
46045
|
Thread.MessageForm = MessageForm;
|
|
46013
46046
|
// src/hooks/messages/useMessageContext/index.ts
|
|
46014
|
-
import { useContext as
|
|
46047
|
+
import { useContext as useContext18 } from "react";
|
|
46015
46048
|
var useMessageContext = function() {
|
|
46016
|
-
return
|
|
46049
|
+
return useContext18(MessageContext);
|
|
46017
46050
|
};
|
|
46018
46051
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46019
|
-
import { c as
|
|
46020
|
-
import { useMemo as
|
|
46052
|
+
import { c as _c79 } from "react-compiler-runtime";
|
|
46053
|
+
import { useMemo as useMemo16 } from "react";
|
|
46021
46054
|
import { useQuery } from "@tanstack/react-query";
|
|
46022
46055
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
46023
46056
|
import { queryOptions as tanstackQueryOptions } from "@tanstack/react-query";
|
|
@@ -46166,7 +46199,7 @@ function _toPrimitive42(t, r) {
|
|
|
46166
46199
|
return ("string" === r ? String : Number)(t);
|
|
46167
46200
|
}
|
|
46168
46201
|
var useAssistant = function(t0) {
|
|
46169
|
-
var $ =
|
|
46202
|
+
var $ = _c79(6);
|
|
46170
46203
|
var assistantId = t0.assistantId;
|
|
46171
46204
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46172
46205
|
var t1;
|
|
@@ -46199,27 +46232,27 @@ var useAssistant = function(t0) {
|
|
|
46199
46232
|
return t2;
|
|
46200
46233
|
};
|
|
46201
46234
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46202
|
-
import { c as
|
|
46235
|
+
import { c as _c86 } from "react-compiler-runtime";
|
|
46203
46236
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46204
|
-
import { c as
|
|
46237
|
+
import { c as _c81 } from "react-compiler-runtime";
|
|
46205
46238
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46206
|
-
import { c as
|
|
46239
|
+
import { c as _c80 } from "react-compiler-runtime";
|
|
46207
46240
|
import { useState as useState6 } from "react";
|
|
46208
46241
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46209
|
-
import { createContext as
|
|
46210
|
-
var ThreadDialogContext = /* @__PURE__ */
|
|
46242
|
+
import { createContext as createContext13 } from "react";
|
|
46243
|
+
var ThreadDialogContext = /* @__PURE__ */ createContext13({
|
|
46211
46244
|
isOpen: false,
|
|
46212
46245
|
setIsOpen: function() {}
|
|
46213
46246
|
});
|
|
46214
46247
|
// src/hooks/threads/useThreadDialogContext/index.ts
|
|
46215
|
-
import { useContext as
|
|
46248
|
+
import { useContext as useContext19 } from "react";
|
|
46216
46249
|
var useThreadDialogContext = function() {
|
|
46217
|
-
return
|
|
46250
|
+
return useContext19(ThreadDialogContext);
|
|
46218
46251
|
};
|
|
46219
46252
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46220
|
-
import { jsx as
|
|
46253
|
+
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
46221
46254
|
var Provider4 = function(t0) {
|
|
46222
|
-
var $ =
|
|
46255
|
+
var $ = _c80(5);
|
|
46223
46256
|
var children = t0.children;
|
|
46224
46257
|
var threadDialogContext = useThreadDialogContext();
|
|
46225
46258
|
var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
|
|
@@ -46236,7 +46269,7 @@ var Provider4 = function(t0) {
|
|
|
46236
46269
|
}
|
|
46237
46270
|
var t2;
|
|
46238
46271
|
if ($[2] !== children || $[3] !== t1) {
|
|
46239
|
-
t2 = /* @__PURE__ */
|
|
46272
|
+
t2 = /* @__PURE__ */ _jsx81(ThreadDialogContext.Provider, {
|
|
46240
46273
|
value: t1,
|
|
46241
46274
|
children: children
|
|
46242
46275
|
});
|
|
@@ -46249,13 +46282,13 @@ var Provider4 = function(t0) {
|
|
|
46249
46282
|
return t2;
|
|
46250
46283
|
};
|
|
46251
46284
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46252
|
-
import { jsx as
|
|
46285
|
+
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
46253
46286
|
var Root13 = function(t0) {
|
|
46254
|
-
var $ =
|
|
46287
|
+
var $ = _c81(2);
|
|
46255
46288
|
var children = t0.children;
|
|
46256
46289
|
var t1;
|
|
46257
46290
|
if ($[0] !== children) {
|
|
46258
|
-
t1 = /* @__PURE__ */
|
|
46291
|
+
t1 = /* @__PURE__ */ _jsx82(Provider4, {
|
|
46259
46292
|
children: children
|
|
46260
46293
|
});
|
|
46261
46294
|
$[0] = children;
|
|
@@ -46266,13 +46299,13 @@ var Root13 = function(t0) {
|
|
|
46266
46299
|
return t1;
|
|
46267
46300
|
};
|
|
46268
46301
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46269
|
-
import { c as
|
|
46302
|
+
import { c as _c83 } from "react-compiler-runtime";
|
|
46270
46303
|
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46271
46304
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46272
|
-
import { c as
|
|
46305
|
+
import { c as _c82 } from "react-compiler-runtime";
|
|
46273
46306
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46274
46307
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46275
|
-
import { jsx as
|
|
46308
|
+
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
46276
46309
|
function ownKeys43(e, r) {
|
|
46277
46310
|
var t = Object.keys(e);
|
|
46278
46311
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46317,17 +46350,17 @@ function _toPrimitive43(t, r) {
|
|
|
46317
46350
|
return ("string" === r ? String : Number)(t);
|
|
46318
46351
|
}
|
|
46319
46352
|
var Button4 = function(props) {
|
|
46320
|
-
var $ =
|
|
46353
|
+
var $ = _c82(3);
|
|
46321
46354
|
var t0;
|
|
46322
46355
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46323
|
-
t0 = /* @__PURE__ */
|
|
46356
|
+
t0 = /* @__PURE__ */ _jsx83(ChatBubbleIcon, {});
|
|
46324
46357
|
$[0] = t0;
|
|
46325
46358
|
} else {
|
|
46326
46359
|
t0 = $[0];
|
|
46327
46360
|
}
|
|
46328
46361
|
var t1;
|
|
46329
46362
|
if ($[1] !== props) {
|
|
46330
|
-
t1 = /* @__PURE__ */
|
|
46363
|
+
t1 = /* @__PURE__ */ _jsx83(IconButton8, _objectSpread43(_objectSpread43({
|
|
46331
46364
|
size: "4",
|
|
46332
46365
|
radius: "full"
|
|
46333
46366
|
}, props), {}, {
|
|
@@ -46341,7 +46374,7 @@ var Button4 = function(props) {
|
|
|
46341
46374
|
return t1;
|
|
46342
46375
|
};
|
|
46343
46376
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46344
|
-
import { jsx as
|
|
46377
|
+
import { jsx as _jsx84 } from "react/jsx-runtime";
|
|
46345
46378
|
function ownKeys44(e, r) {
|
|
46346
46379
|
var t = Object.keys(e);
|
|
46347
46380
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46386,7 +46419,7 @@ function _toPrimitive44(t, r) {
|
|
|
46386
46419
|
return ("string" === r ? String : Number)(t);
|
|
46387
46420
|
}
|
|
46388
46421
|
var Root14 = function(t0) {
|
|
46389
|
-
var $ =
|
|
46422
|
+
var $ = _c83(14);
|
|
46390
46423
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46391
46424
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46392
46425
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -46431,7 +46464,7 @@ var Root14 = function(t0) {
|
|
|
46431
46464
|
}
|
|
46432
46465
|
var t6;
|
|
46433
46466
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
46434
|
-
t6 = /* @__PURE__ */
|
|
46467
|
+
t6 = /* @__PURE__ */ _jsx84(Flex26, {
|
|
46435
46468
|
display: t2,
|
|
46436
46469
|
onClick: t3,
|
|
46437
46470
|
direction: "column",
|
|
@@ -46457,17 +46490,17 @@ var Root14 = function(t0) {
|
|
|
46457
46490
|
return t6;
|
|
46458
46491
|
};
|
|
46459
46492
|
var Trigger = function(args) {
|
|
46460
|
-
var $ =
|
|
46493
|
+
var $ = _c83(3);
|
|
46461
46494
|
var t0;
|
|
46462
46495
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46463
|
-
t0 = /* @__PURE__ */
|
|
46496
|
+
t0 = /* @__PURE__ */ _jsx84(Button4, {});
|
|
46464
46497
|
$[0] = t0;
|
|
46465
46498
|
} else {
|
|
46466
46499
|
t0 = $[0];
|
|
46467
46500
|
}
|
|
46468
46501
|
var t1;
|
|
46469
46502
|
if ($[1] !== args) {
|
|
46470
|
-
t1 = /* @__PURE__ */
|
|
46503
|
+
t1 = /* @__PURE__ */ _jsx84(Root14, _objectSpread44(_objectSpread44({}, args), {}, {
|
|
46471
46504
|
children: t0
|
|
46472
46505
|
}));
|
|
46473
46506
|
$[1] = args;
|
|
@@ -46483,15 +46516,15 @@ function _temp6(prev) {
|
|
|
46483
46516
|
return !prev;
|
|
46484
46517
|
}
|
|
46485
46518
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46486
|
-
import { c as
|
|
46519
|
+
import { c as _c85 } from "react-compiler-runtime";
|
|
46487
46520
|
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
46488
46521
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
46489
|
-
import { c as
|
|
46522
|
+
import { c as _c84 } from "react-compiler-runtime";
|
|
46490
46523
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
46491
46524
|
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
46492
|
-
import { jsx as
|
|
46525
|
+
import { jsx as _jsx85 } from "react/jsx-runtime";
|
|
46493
46526
|
var Close = function() {
|
|
46494
|
-
var $ =
|
|
46527
|
+
var $ = _c84(9);
|
|
46495
46528
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46496
46529
|
var t0 = isOpen ? "flex" : "none";
|
|
46497
46530
|
var t1;
|
|
@@ -46526,10 +46559,10 @@ var Close = function() {
|
|
|
46526
46559
|
}
|
|
46527
46560
|
var t4;
|
|
46528
46561
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46529
|
-
t4 = /* @__PURE__ */
|
|
46562
|
+
t4 = /* @__PURE__ */ _jsx85(IconButton9, {
|
|
46530
46563
|
size: "2",
|
|
46531
46564
|
variant: "soft",
|
|
46532
|
-
children: /* @__PURE__ */
|
|
46565
|
+
children: /* @__PURE__ */ _jsx85(Cross1Icon, {})
|
|
46533
46566
|
});
|
|
46534
46567
|
$[5] = t4;
|
|
46535
46568
|
} else {
|
|
@@ -46537,7 +46570,7 @@ var Close = function() {
|
|
|
46537
46570
|
}
|
|
46538
46571
|
var t5;
|
|
46539
46572
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
46540
|
-
t5 = /* @__PURE__ */
|
|
46573
|
+
t5 = /* @__PURE__ */ _jsx85(Flex27, {
|
|
46541
46574
|
display: t1,
|
|
46542
46575
|
onClick: t2,
|
|
46543
46576
|
direction: "column",
|
|
@@ -46562,7 +46595,7 @@ function _temp7(prev) {
|
|
|
46562
46595
|
return !prev;
|
|
46563
46596
|
}
|
|
46564
46597
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
46565
|
-
import { jsx as
|
|
46598
|
+
import { jsx as _jsx86, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
46566
46599
|
function ownKeys45(e, r) {
|
|
46567
46600
|
var t = Object.keys(e);
|
|
46568
46601
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46607,7 +46640,7 @@ function _toPrimitive45(t, r) {
|
|
|
46607
46640
|
return ("string" === r ? String : Number)(t);
|
|
46608
46641
|
}
|
|
46609
46642
|
var Root15 = function(t0) {
|
|
46610
|
-
var $ =
|
|
46643
|
+
var $ = _c85(19);
|
|
46611
46644
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46612
46645
|
var isOpen = useThreadDialogContext().isOpen;
|
|
46613
46646
|
if (!isOpen) {
|
|
@@ -46694,7 +46727,7 @@ var Root15 = function(t0) {
|
|
|
46694
46727
|
}
|
|
46695
46728
|
var t10;
|
|
46696
46729
|
if ($[10] !== children) {
|
|
46697
|
-
t10 = /* @__PURE__ */
|
|
46730
|
+
t10 = /* @__PURE__ */ _jsx86(Inset2, {
|
|
46698
46731
|
clip: "padding-box",
|
|
46699
46732
|
side: "all",
|
|
46700
46733
|
pb: "current",
|
|
@@ -46708,7 +46741,7 @@ var Root15 = function(t0) {
|
|
|
46708
46741
|
}
|
|
46709
46742
|
var t11;
|
|
46710
46743
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46711
|
-
t11 = /* @__PURE__ */
|
|
46744
|
+
t11 = /* @__PURE__ */ _jsx86(Close, {});
|
|
46712
46745
|
$[12] = t11;
|
|
46713
46746
|
} else {
|
|
46714
46747
|
t11 = $[12];
|
|
@@ -46730,7 +46763,7 @@ var Root15 = function(t0) {
|
|
|
46730
46763
|
}
|
|
46731
46764
|
var t13;
|
|
46732
46765
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
46733
|
-
t13 = /* @__PURE__ */
|
|
46766
|
+
t13 = /* @__PURE__ */ _jsx86(Flex28, {
|
|
46734
46767
|
className: className,
|
|
46735
46768
|
direction: "column",
|
|
46736
46769
|
justify: "end",
|
|
@@ -46754,7 +46787,7 @@ var Root15 = function(t0) {
|
|
|
46754
46787
|
return t13;
|
|
46755
46788
|
};
|
|
46756
46789
|
var Messages3 = function(t0) {
|
|
46757
|
-
var $ =
|
|
46790
|
+
var $ = _c85(5);
|
|
46758
46791
|
var className = t0.className, style = t0.style;
|
|
46759
46792
|
var t1;
|
|
46760
46793
|
if ($[0] !== style) {
|
|
@@ -46770,7 +46803,7 @@ var Messages3 = function(t0) {
|
|
|
46770
46803
|
}
|
|
46771
46804
|
var t2;
|
|
46772
46805
|
if ($[2] !== className || $[3] !== t1) {
|
|
46773
|
-
t2 = /* @__PURE__ */
|
|
46806
|
+
t2 = /* @__PURE__ */ _jsx86(Thread.Messages, {
|
|
46774
46807
|
className: className,
|
|
46775
46808
|
style: t1
|
|
46776
46809
|
});
|
|
@@ -46783,11 +46816,11 @@ var Messages3 = function(t0) {
|
|
|
46783
46816
|
return t2;
|
|
46784
46817
|
};
|
|
46785
46818
|
var FormContainer = function(t0) {
|
|
46786
|
-
var $ =
|
|
46819
|
+
var $ = _c85(4);
|
|
46787
46820
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
46788
46821
|
var t1;
|
|
46789
46822
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
46790
|
-
t1 = /* @__PURE__ */
|
|
46823
|
+
t1 = /* @__PURE__ */ _jsx86(Flex28, {
|
|
46791
46824
|
direction: "column",
|
|
46792
46825
|
pl: "5",
|
|
46793
46826
|
pr: "5",
|
|
@@ -46807,10 +46840,10 @@ var FormContainer = function(t0) {
|
|
|
46807
46840
|
return t1;
|
|
46808
46841
|
};
|
|
46809
46842
|
var Content8 = function(props) {
|
|
46810
|
-
var $ =
|
|
46843
|
+
var $ = _c85(4);
|
|
46811
46844
|
var t0;
|
|
46812
46845
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46813
|
-
t0 = /* @__PURE__ */
|
|
46846
|
+
t0 = /* @__PURE__ */ _jsx86(Messages3, {});
|
|
46814
46847
|
$[0] = t0;
|
|
46815
46848
|
} else {
|
|
46816
46849
|
t0 = $[0];
|
|
@@ -46820,8 +46853,8 @@ var Content8 = function(props) {
|
|
|
46820
46853
|
t1 = /* @__PURE__ */ _jsxs29(Thread.Root, {
|
|
46821
46854
|
children: [
|
|
46822
46855
|
t0,
|
|
46823
|
-
/* @__PURE__ */
|
|
46824
|
-
children: /* @__PURE__ */
|
|
46856
|
+
/* @__PURE__ */ _jsx86(FormContainer, {
|
|
46857
|
+
children: /* @__PURE__ */ _jsx86(Thread.MessageForm, {})
|
|
46825
46858
|
})
|
|
46826
46859
|
]
|
|
46827
46860
|
});
|
|
@@ -46831,7 +46864,7 @@ var Content8 = function(props) {
|
|
|
46831
46864
|
}
|
|
46832
46865
|
var t2;
|
|
46833
46866
|
if ($[2] !== props) {
|
|
46834
|
-
t2 = /* @__PURE__ */
|
|
46867
|
+
t2 = /* @__PURE__ */ _jsx86(Root15, _objectSpread45(_objectSpread45({}, props), {}, {
|
|
46835
46868
|
children: t1
|
|
46836
46869
|
}));
|
|
46837
46870
|
$[2] = props;
|
|
@@ -46845,15 +46878,15 @@ Content8.Root = Root15;
|
|
|
46845
46878
|
Content8.Messages = Messages3;
|
|
46846
46879
|
Content8.FormContainer = FormContainer;
|
|
46847
46880
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46848
|
-
import { jsx as
|
|
46881
|
+
import { jsx as _jsx87, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
46849
46882
|
var ThreadDialog = function() {
|
|
46850
|
-
var $ =
|
|
46883
|
+
var $ = _c86(1);
|
|
46851
46884
|
var t0;
|
|
46852
46885
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46853
46886
|
t0 = /* @__PURE__ */ _jsxs30(Root13, {
|
|
46854
46887
|
children: [
|
|
46855
|
-
/* @__PURE__ */
|
|
46856
|
-
/* @__PURE__ */
|
|
46888
|
+
/* @__PURE__ */ _jsx87(Content8, {}),
|
|
46889
|
+
/* @__PURE__ */ _jsx87(Trigger, {})
|
|
46857
46890
|
]
|
|
46858
46891
|
});
|
|
46859
46892
|
$[0] = t0;
|
|
@@ -46866,29 +46899,29 @@ ThreadDialog.Root = Root13;
|
|
|
46866
46899
|
ThreadDialog.Trigger = Trigger;
|
|
46867
46900
|
ThreadDialog.Content = Content8;
|
|
46868
46901
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
46869
|
-
import { c as
|
|
46902
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
46870
46903
|
// src/components/threads/AudioThread/index.tsx
|
|
46871
|
-
import { c as
|
|
46904
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
46872
46905
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
46873
|
-
import { c as
|
|
46906
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
46874
46907
|
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
46875
46908
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
46876
|
-
import { createContext as
|
|
46877
|
-
var AudioThreadContext = /* @__PURE__ */
|
|
46909
|
+
import { createContext as createContext14 } from "react";
|
|
46910
|
+
var AudioThreadContext = /* @__PURE__ */ createContext14({
|
|
46878
46911
|
audioRuntime: null
|
|
46879
46912
|
});
|
|
46880
46913
|
// src/hooks/threads/useAudioThreadContext/index.ts
|
|
46881
|
-
import { useContext as
|
|
46914
|
+
import { useContext as useContext20 } from "react";
|
|
46882
46915
|
var useAudioThreadContext = function() {
|
|
46883
|
-
return
|
|
46916
|
+
return useContext20(AudioThreadContext);
|
|
46884
46917
|
};
|
|
46885
46918
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
46886
|
-
import { c as
|
|
46919
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
46887
46920
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
46888
|
-
import { c as
|
|
46889
|
-
import { useMemo as
|
|
46921
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
46922
|
+
import { useMemo as useMemo19 } from "react";
|
|
46890
46923
|
// src/hooks/misc/usePermission/index.ts
|
|
46891
|
-
import { c as
|
|
46924
|
+
import { c as _c87 } from "react-compiler-runtime";
|
|
46892
46925
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
46893
46926
|
// src/hooks/misc/usePermission/util.ts
|
|
46894
46927
|
var noop = function() {};
|
|
@@ -46912,7 +46945,7 @@ function off(obj) {
|
|
|
46912
46945
|
}
|
|
46913
46946
|
// src/hooks/misc/usePermission/index.ts
|
|
46914
46947
|
var usePermission = function(permissionDesc) {
|
|
46915
|
-
var $ =
|
|
46948
|
+
var $ = _c87(3);
|
|
46916
46949
|
var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
|
|
46917
46950
|
var t0;
|
|
46918
46951
|
var t1;
|
|
@@ -46958,13 +46991,13 @@ var usePermission = function(permissionDesc) {
|
|
|
46958
46991
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
46959
46992
|
import dayjs3 from "dayjs";
|
|
46960
46993
|
import { useAudioCapture } from "@supercorp/use-audio-capture";
|
|
46961
|
-
import { useMemo as
|
|
46994
|
+
import { useMemo as useMemo17, useRef as useRef7, useState as useState8, useCallback as useCallback6, useEffect as useEffect9 } from "react";
|
|
46962
46995
|
import { useAudioPlayer } from "react-use-audio-player";
|
|
46963
46996
|
// src/hooks/misc/useInterval.ts
|
|
46964
|
-
import { c as
|
|
46997
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
46965
46998
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
46966
46999
|
var useInterval = function(callback, delay) {
|
|
46967
|
-
var $ =
|
|
47000
|
+
var $ = _c88(5);
|
|
46968
47001
|
var savedCallback = useRef6(_temp8);
|
|
46969
47002
|
var t0;
|
|
46970
47003
|
if ($[0] !== callback) {
|
|
@@ -47154,7 +47187,7 @@ var useRecorder = function(_ref) {
|
|
|
47154
47187
|
isInited,
|
|
47155
47188
|
mediaStream
|
|
47156
47189
|
]);
|
|
47157
|
-
var visualizationAnalyser =
|
|
47190
|
+
var visualizationAnalyser = useMemo17(function() {
|
|
47158
47191
|
if (!audioEngine) return null;
|
|
47159
47192
|
var result = audioEngine.audioContext.createAnalyser();
|
|
47160
47193
|
audioEngine.source.connect(result);
|
|
@@ -47162,7 +47195,7 @@ var useRecorder = function(_ref) {
|
|
|
47162
47195
|
}, [
|
|
47163
47196
|
audioEngine
|
|
47164
47197
|
]);
|
|
47165
|
-
var silenceAnalyser =
|
|
47198
|
+
var silenceAnalyser = useMemo17(function() {
|
|
47166
47199
|
if (!audioEngine) return null;
|
|
47167
47200
|
var result_0 = audioEngine.audioContext.createAnalyser();
|
|
47168
47201
|
result_0.minDecibels = -60;
|
|
@@ -47217,8 +47250,8 @@ var useRecorder = function(_ref) {
|
|
|
47217
47250
|
});
|
|
47218
47251
|
};
|
|
47219
47252
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47220
|
-
import { c as
|
|
47221
|
-
import { useMemo as
|
|
47253
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
47254
|
+
import { useMemo as useMemo18, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback7 } from "react";
|
|
47222
47255
|
import nlp from "compromise";
|
|
47223
47256
|
import { Howler } from "howler";
|
|
47224
47257
|
import { useAudioPlayer as useAudioPlayer2 } from "react-use-audio-player";
|
|
@@ -47299,7 +47332,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47299
47332
|
};
|
|
47300
47333
|
var useMessageAudio = function(t0) {
|
|
47301
47334
|
var _latestMessageProps$l, _latestMessageProps$l4, _latestMessageProps$l5;
|
|
47302
|
-
var $ =
|
|
47335
|
+
var $ = _c89(68);
|
|
47303
47336
|
var _onEnd = t0.onEnd, passedPlay = t0.play, t1 = t0.fullSentenceRegex;
|
|
47304
47337
|
var t2;
|
|
47305
47338
|
if ($[0] !== t1) {
|
|
@@ -47752,7 +47785,7 @@ function _asyncToGenerator11(n) {
|
|
|
47752
47785
|
};
|
|
47753
47786
|
}
|
|
47754
47787
|
var useTtsAudioRuntime = function(t0) {
|
|
47755
|
-
var $ =
|
|
47788
|
+
var $ = _c90(30);
|
|
47756
47789
|
var play = t0.play, passedOnEnd = t0.onEnd;
|
|
47757
47790
|
var addToast = useToasts().addToast;
|
|
47758
47791
|
var queryClient = useQueryClient6();
|
|
@@ -47936,9 +47969,9 @@ function _temp24() {
|
|
|
47936
47969
|
return _temp24.apply(this, arguments);
|
|
47937
47970
|
}
|
|
47938
47971
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47939
|
-
import { jsx as
|
|
47972
|
+
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
47940
47973
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
47941
|
-
var $ =
|
|
47974
|
+
var $ = _c91(8);
|
|
47942
47975
|
var children = t0.children, play = t0.play, onEnd = t0.onEnd;
|
|
47943
47976
|
var t1;
|
|
47944
47977
|
if ($[0] !== onEnd || $[1] !== play) {
|
|
@@ -47965,7 +47998,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
47965
47998
|
}
|
|
47966
47999
|
var t3;
|
|
47967
48000
|
if ($[5] !== children || $[6] !== t2) {
|
|
47968
|
-
t3 = /* @__PURE__ */
|
|
48001
|
+
t3 = /* @__PURE__ */ _jsx88(AudioThreadContext.Provider, {
|
|
47969
48002
|
value: t2,
|
|
47970
48003
|
children: children
|
|
47971
48004
|
});
|
|
@@ -47978,7 +48011,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
47978
48011
|
return t3;
|
|
47979
48012
|
};
|
|
47980
48013
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47981
|
-
import { jsx as
|
|
48014
|
+
import { jsx as _jsx89 } from "react/jsx-runtime";
|
|
47982
48015
|
var _excluded5 = [
|
|
47983
48016
|
"children"
|
|
47984
48017
|
];
|
|
@@ -48051,11 +48084,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48051
48084
|
return t;
|
|
48052
48085
|
}
|
|
48053
48086
|
var Content9 = function(t0) {
|
|
48054
|
-
var $ =
|
|
48087
|
+
var $ = _c92(4);
|
|
48055
48088
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48056
48089
|
var t1;
|
|
48057
48090
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
48058
|
-
t1 = /* @__PURE__ */
|
|
48091
|
+
t1 = /* @__PURE__ */ _jsx89(Flex29, {
|
|
48059
48092
|
direction: "column",
|
|
48060
48093
|
flexGrow: "1",
|
|
48061
48094
|
p: "9",
|
|
@@ -48073,7 +48106,7 @@ var Content9 = function(t0) {
|
|
|
48073
48106
|
return t1;
|
|
48074
48107
|
};
|
|
48075
48108
|
var AudioRuntimeProvider = function(t0) {
|
|
48076
|
-
var $ =
|
|
48109
|
+
var $ = _c92(4);
|
|
48077
48110
|
var children = t0.children, play = t0.play, onEnd = t0.onEnd;
|
|
48078
48111
|
var audioThreadContext = useAudioThreadContext();
|
|
48079
48112
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48081,7 +48114,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48081
48114
|
}
|
|
48082
48115
|
var t1;
|
|
48083
48116
|
if ($[0] !== children || $[1] !== onEnd || $[2] !== play) {
|
|
48084
|
-
t1 = /* @__PURE__ */
|
|
48117
|
+
t1 = /* @__PURE__ */ _jsx89(TtsAudioRuntimeProvider, {
|
|
48085
48118
|
play: play,
|
|
48086
48119
|
onEnd: onEnd,
|
|
48087
48120
|
children: children
|
|
@@ -48096,7 +48129,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48096
48129
|
return t1;
|
|
48097
48130
|
};
|
|
48098
48131
|
var Provider5 = function(t0) {
|
|
48099
|
-
var $ =
|
|
48132
|
+
var $ = _c92(9);
|
|
48100
48133
|
var children;
|
|
48101
48134
|
var rest;
|
|
48102
48135
|
if ($[0] !== t0) {
|
|
@@ -48123,7 +48156,7 @@ var Provider5 = function(t0) {
|
|
|
48123
48156
|
}
|
|
48124
48157
|
var t2;
|
|
48125
48158
|
if ($[6] !== children || $[7] !== t1) {
|
|
48126
|
-
t2 = /* @__PURE__ */
|
|
48159
|
+
t2 = /* @__PURE__ */ _jsx89(AudioThreadContext.Provider, {
|
|
48127
48160
|
value: t1,
|
|
48128
48161
|
children: children
|
|
48129
48162
|
});
|
|
@@ -48136,7 +48169,7 @@ var Provider5 = function(t0) {
|
|
|
48136
48169
|
return t2;
|
|
48137
48170
|
};
|
|
48138
48171
|
var Root16 = function(t0) {
|
|
48139
|
-
var $ =
|
|
48172
|
+
var $ = _c92(18);
|
|
48140
48173
|
var children;
|
|
48141
48174
|
var className;
|
|
48142
48175
|
var onEnd;
|
|
@@ -48166,8 +48199,8 @@ var Root16 = function(t0) {
|
|
|
48166
48199
|
}
|
|
48167
48200
|
var t1;
|
|
48168
48201
|
if ($[7] !== children || $[8] !== className || $[9] !== style) {
|
|
48169
|
-
t1 = /* @__PURE__ */
|
|
48170
|
-
children: /* @__PURE__ */
|
|
48202
|
+
t1 = /* @__PURE__ */ _jsx89(ToastsProvider, {
|
|
48203
|
+
children: /* @__PURE__ */ _jsx89(Content9, {
|
|
48171
48204
|
className: className,
|
|
48172
48205
|
style: style,
|
|
48173
48206
|
children: children
|
|
@@ -48182,7 +48215,7 @@ var Root16 = function(t0) {
|
|
|
48182
48215
|
}
|
|
48183
48216
|
var t2;
|
|
48184
48217
|
if ($[11] !== onEnd || $[12] !== play || $[13] !== t1) {
|
|
48185
|
-
t2 = /* @__PURE__ */
|
|
48218
|
+
t2 = /* @__PURE__ */ _jsx89(AudioRuntimeProvider, {
|
|
48186
48219
|
play: play,
|
|
48187
48220
|
onEnd: onEnd,
|
|
48188
48221
|
children: t1
|
|
@@ -48196,7 +48229,7 @@ var Root16 = function(t0) {
|
|
|
48196
48229
|
}
|
|
48197
48230
|
var t3;
|
|
48198
48231
|
if ($[15] !== rest || $[16] !== t2) {
|
|
48199
|
-
t3 = /* @__PURE__ */
|
|
48232
|
+
t3 = /* @__PURE__ */ _jsx89(Provider5, _objectSpread48(_objectSpread48({}, rest), {}, {
|
|
48200
48233
|
children: t2
|
|
48201
48234
|
}));
|
|
48202
48235
|
$[15] = rest;
|
|
@@ -48208,8 +48241,8 @@ var Root16 = function(t0) {
|
|
|
48208
48241
|
return t3;
|
|
48209
48242
|
};
|
|
48210
48243
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48211
|
-
import { c as
|
|
48212
|
-
import { useState as useState11, useCallback as useCallback9, useEffect as useEffect12, useContext as
|
|
48244
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
48245
|
+
import { useState as useState11, useCallback as useCallback9, useEffect as useEffect12, useContext as useContext21, createContext as createContext15 } from "react";
|
|
48213
48246
|
import _9 from "lodash";
|
|
48214
48247
|
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
48215
48248
|
// src/components/threads/AudioThread/BarsVisualizer/index.tsx
|
|
@@ -48217,7 +48250,7 @@ import _8 from "lodash";
|
|
|
48217
48250
|
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
48218
48251
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback8 } from "react";
|
|
48219
48252
|
import { cluster } from "radash";
|
|
48220
|
-
import { jsx as
|
|
48253
|
+
import { jsx as _jsx90 } from "react/jsx-runtime";
|
|
48221
48254
|
var barCount = 4;
|
|
48222
48255
|
var BarsVisualizer = function(_ref) {
|
|
48223
48256
|
var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
|
|
@@ -48248,7 +48281,7 @@ var BarsVisualizer = function(_ref) {
|
|
|
48248
48281
|
draw,
|
|
48249
48282
|
visualizationAnalyser
|
|
48250
48283
|
]);
|
|
48251
|
-
return /* @__PURE__ */
|
|
48284
|
+
return /* @__PURE__ */ _jsx90(Grid, {
|
|
48252
48285
|
columns: "".concat(barCount),
|
|
48253
48286
|
gap: "1",
|
|
48254
48287
|
width: "auto",
|
|
@@ -48257,12 +48290,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
48257
48290
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
48258
48291
|
},
|
|
48259
48292
|
children: barHeights.map(function(barHeight, index) {
|
|
48260
|
-
return /* @__PURE__ */
|
|
48293
|
+
return /* @__PURE__ */ _jsx90(Flex30, {
|
|
48261
48294
|
direction: "column",
|
|
48262
48295
|
align: "center",
|
|
48263
48296
|
justify: "center",
|
|
48264
48297
|
height: height,
|
|
48265
|
-
children: /* @__PURE__ */
|
|
48298
|
+
children: /* @__PURE__ */ _jsx90(Flex30, {
|
|
48266
48299
|
minHeight: "50%",
|
|
48267
48300
|
maxHeight: "100%",
|
|
48268
48301
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -48277,10 +48310,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48277
48310
|
});
|
|
48278
48311
|
};
|
|
48279
48312
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48280
|
-
import { c as
|
|
48281
|
-
import { useMemo as
|
|
48313
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
48314
|
+
import { useMemo as useMemo20 } from "react";
|
|
48282
48315
|
var useStatus = function() {
|
|
48283
|
-
var $ =
|
|
48316
|
+
var $ = _c93(2);
|
|
48284
48317
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48285
48318
|
var t0;
|
|
48286
48319
|
bb0: {
|
|
@@ -48328,7 +48361,7 @@ var useStatus = function() {
|
|
|
48328
48361
|
return t1;
|
|
48329
48362
|
};
|
|
48330
48363
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48331
|
-
import { jsx as
|
|
48364
|
+
import { jsx as _jsx91, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
48332
48365
|
var _excluded6 = [
|
|
48333
48366
|
"children"
|
|
48334
48367
|
];
|
|
@@ -48402,7 +48435,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
|
|
|
48402
48435
|
}
|
|
48403
48436
|
return t;
|
|
48404
48437
|
}
|
|
48405
|
-
var AudioThreadVisualizationContext = /* @__PURE__ */
|
|
48438
|
+
var AudioThreadVisualizationContext = /* @__PURE__ */ createContext15({
|
|
48406
48439
|
scale: 0
|
|
48407
48440
|
});
|
|
48408
48441
|
var Provider6 = function(_ref) {
|
|
@@ -48432,7 +48465,7 @@ var Provider6 = function(_ref) {
|
|
|
48432
48465
|
draw,
|
|
48433
48466
|
audioThreadContext
|
|
48434
48467
|
]);
|
|
48435
|
-
return /* @__PURE__ */
|
|
48468
|
+
return /* @__PURE__ */ _jsx91(AudioThreadVisualizationContext.Provider, {
|
|
48436
48469
|
value: {
|
|
48437
48470
|
scale: scale
|
|
48438
48471
|
},
|
|
@@ -48440,7 +48473,7 @@ var Provider6 = function(_ref) {
|
|
|
48440
48473
|
});
|
|
48441
48474
|
};
|
|
48442
48475
|
var Root17 = function(t0) {
|
|
48443
|
-
var $ =
|
|
48476
|
+
var $ = _c94(6);
|
|
48444
48477
|
var children;
|
|
48445
48478
|
var rest;
|
|
48446
48479
|
if ($[0] !== t0) {
|
|
@@ -48457,8 +48490,8 @@ var Root17 = function(t0) {
|
|
|
48457
48490
|
}
|
|
48458
48491
|
var t1;
|
|
48459
48492
|
if ($[3] !== children || $[4] !== rest) {
|
|
48460
|
-
t1 = /* @__PURE__ */
|
|
48461
|
-
children: /* @__PURE__ */
|
|
48493
|
+
t1 = /* @__PURE__ */ _jsx91(Provider6, {
|
|
48494
|
+
children: /* @__PURE__ */ _jsx91(Flex31, _objectSpread49(_objectSpread49({
|
|
48462
48495
|
direction: "column",
|
|
48463
48496
|
align: "center",
|
|
48464
48497
|
justify: "center",
|
|
@@ -48477,7 +48510,7 @@ var Root17 = function(t0) {
|
|
|
48477
48510
|
return t1;
|
|
48478
48511
|
};
|
|
48479
48512
|
var BarsVisualizer2 = function(t0) {
|
|
48480
|
-
var $ =
|
|
48513
|
+
var $ = _c94(10);
|
|
48481
48514
|
var rest;
|
|
48482
48515
|
var t1;
|
|
48483
48516
|
var t2;
|
|
@@ -48503,7 +48536,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48503
48536
|
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
48504
48537
|
var t4;
|
|
48505
48538
|
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
48506
|
-
t4 = /* @__PURE__ */
|
|
48539
|
+
t4 = /* @__PURE__ */ _jsx91(BarsVisualizer, _objectSpread49({
|
|
48507
48540
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
48508
48541
|
backgroundColor: t3,
|
|
48509
48542
|
height: height,
|
|
@@ -48521,7 +48554,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
48521
48554
|
return t4;
|
|
48522
48555
|
};
|
|
48523
48556
|
var AssistantVisualizationRoot = function(t0) {
|
|
48524
|
-
var $ =
|
|
48557
|
+
var $ = _c94(17);
|
|
48525
48558
|
var children;
|
|
48526
48559
|
var rest;
|
|
48527
48560
|
var t1;
|
|
@@ -48546,7 +48579,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48546
48579
|
var height = t1 === void 0 ? "200px" : t1;
|
|
48547
48580
|
var width2 = t2 === void 0 ? "200px" : t2;
|
|
48548
48581
|
var status = useStatus().status;
|
|
48549
|
-
var scale =
|
|
48582
|
+
var scale = useContext21(AudioThreadVisualizationContext).scale;
|
|
48550
48583
|
var t3 = status === "playing" ? "var(--accent-4)" : "var(--gray-4)";
|
|
48551
48584
|
var t4;
|
|
48552
48585
|
if ($[5] !== rest.style) {
|
|
@@ -48573,7 +48606,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48573
48606
|
}
|
|
48574
48607
|
var t6;
|
|
48575
48608
|
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
48576
|
-
t6 = /* @__PURE__ */
|
|
48609
|
+
t6 = /* @__PURE__ */ _jsx91(Flex31, _objectSpread49(_objectSpread49({
|
|
48577
48610
|
align: "center",
|
|
48578
48611
|
justify: "center",
|
|
48579
48612
|
height: height,
|
|
@@ -48594,17 +48627,17 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
48594
48627
|
return t6;
|
|
48595
48628
|
};
|
|
48596
48629
|
var AssistantVisualization = function(props) {
|
|
48597
|
-
var $ =
|
|
48630
|
+
var $ = _c94(3);
|
|
48598
48631
|
var t0;
|
|
48599
48632
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48600
|
-
t0 = /* @__PURE__ */
|
|
48633
|
+
t0 = /* @__PURE__ */ _jsx91(BarsVisualizer2, {});
|
|
48601
48634
|
$[0] = t0;
|
|
48602
48635
|
} else {
|
|
48603
48636
|
t0 = $[0];
|
|
48604
48637
|
}
|
|
48605
48638
|
var t1;
|
|
48606
48639
|
if ($[1] !== props) {
|
|
48607
|
-
t1 = /* @__PURE__ */
|
|
48640
|
+
t1 = /* @__PURE__ */ _jsx91(AssistantVisualizationRoot, _objectSpread49(_objectSpread49({}, props), {}, {
|
|
48608
48641
|
children: t0
|
|
48609
48642
|
}));
|
|
48610
48643
|
$[1] = props;
|
|
@@ -48617,18 +48650,18 @@ var AssistantVisualization = function(props) {
|
|
|
48617
48650
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
48618
48651
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
48619
48652
|
var AssistantInfo = function(props) {
|
|
48620
|
-
var $ =
|
|
48621
|
-
var assistantNameContext =
|
|
48653
|
+
var $ = _c94(6);
|
|
48654
|
+
var assistantNameContext = useContext21(AssistantNameContext);
|
|
48622
48655
|
var t0;
|
|
48623
48656
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48624
|
-
t0 = /* @__PURE__ */
|
|
48657
|
+
t0 = /* @__PURE__ */ _jsx91(MessageGroup.AssistantAvatar, {});
|
|
48625
48658
|
$[0] = t0;
|
|
48626
48659
|
} else {
|
|
48627
48660
|
t0 = $[0];
|
|
48628
48661
|
}
|
|
48629
48662
|
var t1;
|
|
48630
48663
|
if ($[1] !== assistantNameContext) {
|
|
48631
|
-
t1 = /* @__PURE__ */
|
|
48664
|
+
t1 = /* @__PURE__ */ _jsx91(MessageGroup.Name, {
|
|
48632
48665
|
children: assistantNameContext
|
|
48633
48666
|
});
|
|
48634
48667
|
$[1] = assistantNameContext;
|
|
@@ -48657,12 +48690,12 @@ var AssistantInfo = function(props) {
|
|
|
48657
48690
|
return t2;
|
|
48658
48691
|
};
|
|
48659
48692
|
var Visualization = function(props) {
|
|
48660
|
-
var $ =
|
|
48693
|
+
var $ = _c94(4);
|
|
48661
48694
|
var t0;
|
|
48662
48695
|
var t1;
|
|
48663
48696
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48664
|
-
t0 = /* @__PURE__ */
|
|
48665
|
-
t1 = /* @__PURE__ */
|
|
48697
|
+
t0 = /* @__PURE__ */ _jsx91(AssistantVisualization, {});
|
|
48698
|
+
t1 = /* @__PURE__ */ _jsx91(AssistantInfo, {});
|
|
48666
48699
|
$[0] = t0;
|
|
48667
48700
|
$[1] = t1;
|
|
48668
48701
|
} else {
|
|
@@ -48689,11 +48722,11 @@ Visualization.Provider = Provider6;
|
|
|
48689
48722
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
48690
48723
|
Visualization.AssistantInfo = AssistantInfo;
|
|
48691
48724
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
48692
|
-
import { c as
|
|
48725
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
48693
48726
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
48694
|
-
import { c as
|
|
48727
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
48695
48728
|
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
48696
|
-
import { jsx as
|
|
48729
|
+
import { jsx as _jsx92, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
48697
48730
|
var html = function(_ref) {
|
|
48698
48731
|
var texts = _ref.texts;
|
|
48699
48732
|
return "\n .status-messages-texts:after {\n content: '".concat(texts[0], "';\n animation: texts ").concat(texts.length * 5, "s linear infinite;\n }\n\n @keyframes texts {\n ").concat(texts.map(function(_10, i) {
|
|
@@ -48701,11 +48734,11 @@ var html = function(_ref) {
|
|
|
48701
48734
|
}).join(""), "\n }");
|
|
48702
48735
|
};
|
|
48703
48736
|
var StatusMessages = function(t0) {
|
|
48704
|
-
var $ =
|
|
48737
|
+
var $ = _c95(9);
|
|
48705
48738
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
48706
48739
|
var t1;
|
|
48707
48740
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48708
|
-
t1 = /* @__PURE__ */
|
|
48741
|
+
t1 = /* @__PURE__ */ _jsx92(Text9, {
|
|
48709
48742
|
size: "2",
|
|
48710
48743
|
weight: "regular",
|
|
48711
48744
|
color: "gray",
|
|
@@ -48728,7 +48761,7 @@ var StatusMessages = function(t0) {
|
|
|
48728
48761
|
}
|
|
48729
48762
|
var t3;
|
|
48730
48763
|
if ($[3] !== t2) {
|
|
48731
|
-
t3 = /* @__PURE__ */
|
|
48764
|
+
t3 = /* @__PURE__ */ _jsx92("style", {
|
|
48732
48765
|
dangerouslySetInnerHTML: {
|
|
48733
48766
|
__html: t2
|
|
48734
48767
|
}
|
|
@@ -48760,7 +48793,7 @@ var StatusMessages = function(t0) {
|
|
|
48760
48793
|
return t4;
|
|
48761
48794
|
};
|
|
48762
48795
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
48763
|
-
import { jsx as
|
|
48796
|
+
import { jsx as _jsx93 } from "react/jsx-runtime";
|
|
48764
48797
|
function ownKeys50(e, r) {
|
|
48765
48798
|
var t = Object.keys(e);
|
|
48766
48799
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48805,7 +48838,7 @@ function _toPrimitive50(t, r) {
|
|
|
48805
48838
|
return ("string" === r ? String : Number)(t);
|
|
48806
48839
|
}
|
|
48807
48840
|
var Status = function(props) {
|
|
48808
|
-
var $ =
|
|
48841
|
+
var $ = _c96(12);
|
|
48809
48842
|
var status = useStatus().status;
|
|
48810
48843
|
if (status === "recording") {
|
|
48811
48844
|
var _t;
|
|
@@ -48822,7 +48855,7 @@ var Status = function(props) {
|
|
|
48822
48855
|
}
|
|
48823
48856
|
var _t2;
|
|
48824
48857
|
if ($[1] !== props) {
|
|
48825
|
-
_t2 = /* @__PURE__ */
|
|
48858
|
+
_t2 = /* @__PURE__ */ _jsx93(StatusMessages, _objectSpread50({
|
|
48826
48859
|
texts: _t
|
|
48827
48860
|
}, props));
|
|
48828
48861
|
$[1] = props;
|
|
@@ -48848,7 +48881,7 @@ var Status = function(props) {
|
|
|
48848
48881
|
}
|
|
48849
48882
|
var _t4;
|
|
48850
48883
|
if ($[4] !== props) {
|
|
48851
|
-
_t4 = /* @__PURE__ */
|
|
48884
|
+
_t4 = /* @__PURE__ */ _jsx93(StatusMessages, _objectSpread50({
|
|
48852
48885
|
texts: _t3
|
|
48853
48886
|
}, props));
|
|
48854
48887
|
$[4] = props;
|
|
@@ -48870,7 +48903,7 @@ var Status = function(props) {
|
|
|
48870
48903
|
}
|
|
48871
48904
|
var _t6;
|
|
48872
48905
|
if ($[7] !== props) {
|
|
48873
|
-
_t6 = /* @__PURE__ */
|
|
48906
|
+
_t6 = /* @__PURE__ */ _jsx93(StatusMessages, _objectSpread50({
|
|
48874
48907
|
texts: _t5
|
|
48875
48908
|
}, props));
|
|
48876
48909
|
$[7] = props;
|
|
@@ -48891,7 +48924,7 @@ var Status = function(props) {
|
|
|
48891
48924
|
}
|
|
48892
48925
|
var t1;
|
|
48893
48926
|
if ($[10] !== props) {
|
|
48894
|
-
t1 = /* @__PURE__ */
|
|
48927
|
+
t1 = /* @__PURE__ */ _jsx93(StatusMessages, _objectSpread50({
|
|
48895
48928
|
texts: t0
|
|
48896
48929
|
}, props));
|
|
48897
48930
|
$[10] = props;
|
|
@@ -48902,11 +48935,11 @@ var Status = function(props) {
|
|
|
48902
48935
|
return t1;
|
|
48903
48936
|
};
|
|
48904
48937
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
48905
|
-
import { c as
|
|
48938
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
48906
48939
|
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
48907
48940
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
48908
|
-
import { c as
|
|
48909
|
-
import { jsx as
|
|
48941
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
48942
|
+
import { jsx as _jsx94 } from "react/jsx-runtime";
|
|
48910
48943
|
function ownKeys51(e, r) {
|
|
48911
48944
|
var t = Object.keys(e);
|
|
48912
48945
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -48951,10 +48984,10 @@ function _toPrimitive51(t, r) {
|
|
|
48951
48984
|
return ("string" === r ? String : Number)(t);
|
|
48952
48985
|
}
|
|
48953
48986
|
var MicIcon = function(props) {
|
|
48954
|
-
var $ =
|
|
48987
|
+
var $ = _c97(3);
|
|
48955
48988
|
var t0;
|
|
48956
48989
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48957
|
-
t0 = /* @__PURE__ */
|
|
48990
|
+
t0 = /* @__PURE__ */ _jsx94("path", {
|
|
48958
48991
|
stroke: "none",
|
|
48959
48992
|
d: "M192 0c-53 0-96 43-96 96v160c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464h-48c-13.3 0-24 10.7-24 24s10.7 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24h-48v-33.6c85.8-11.7 152-85.3 152-174.4v-40c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128S64 326.7 64 256v-40z"
|
|
48960
48993
|
});
|
|
@@ -48964,7 +48997,7 @@ var MicIcon = function(props) {
|
|
|
48964
48997
|
}
|
|
48965
48998
|
var t1;
|
|
48966
48999
|
if ($[1] !== props) {
|
|
48967
|
-
t1 = /* @__PURE__ */
|
|
49000
|
+
t1 = /* @__PURE__ */ _jsx94("svg", _objectSpread51(_objectSpread51({
|
|
48968
49001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48969
49002
|
fill: "currentColor",
|
|
48970
49003
|
stroke: "currentColor",
|
|
@@ -48983,29 +49016,29 @@ var MicIcon = function(props) {
|
|
|
48983
49016
|
return t1;
|
|
48984
49017
|
};
|
|
48985
49018
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
48986
|
-
import { c as
|
|
49019
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
48987
49020
|
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
48988
49021
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
48989
|
-
import { jsx as
|
|
49022
|
+
import { jsx as _jsx95, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
48990
49023
|
var ActionButton = function() {
|
|
48991
|
-
var $ =
|
|
49024
|
+
var $ = _c98(27);
|
|
48992
49025
|
var status = useStatus().status;
|
|
48993
49026
|
var audioThreadContext = useAudioThreadContext();
|
|
48994
49027
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
48995
49028
|
if (status === "recording") {
|
|
48996
49029
|
var _t;
|
|
48997
49030
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48998
|
-
_t = /* @__PURE__ */
|
|
49031
|
+
_t = /* @__PURE__ */ _jsx95(PauseIcon2, {});
|
|
48999
49032
|
$[0] = _t;
|
|
49000
49033
|
} else {
|
|
49001
49034
|
_t = $[0];
|
|
49002
49035
|
}
|
|
49003
49036
|
var t1;
|
|
49004
49037
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
49005
|
-
t1 = /* @__PURE__ */
|
|
49038
|
+
t1 = /* @__PURE__ */ _jsx95(Flex33, {
|
|
49006
49039
|
mr: "3",
|
|
49007
49040
|
ml: "-7",
|
|
49008
|
-
children: /* @__PURE__ */
|
|
49041
|
+
children: /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49009
49042
|
onClick: audioThreadContext.audioRuntime.user.pause,
|
|
49010
49043
|
color: "gray",
|
|
49011
49044
|
variant: "soft",
|
|
@@ -49020,14 +49053,14 @@ var ActionButton = function() {
|
|
|
49020
49053
|
}
|
|
49021
49054
|
var t2;
|
|
49022
49055
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49023
|
-
t2 = /* @__PURE__ */
|
|
49056
|
+
t2 = /* @__PURE__ */ _jsx95(ArrowUpIcon3, {});
|
|
49024
49057
|
$[3] = t2;
|
|
49025
49058
|
} else {
|
|
49026
49059
|
t2 = $[3];
|
|
49027
49060
|
}
|
|
49028
49061
|
var t3;
|
|
49029
49062
|
if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
|
|
49030
|
-
t3 = /* @__PURE__ */
|
|
49063
|
+
t3 = /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49031
49064
|
onClick: audioThreadContext.audioRuntime.user.stop,
|
|
49032
49065
|
highContrast: true,
|
|
49033
49066
|
variant: "soft",
|
|
@@ -49059,14 +49092,14 @@ var ActionButton = function() {
|
|
|
49059
49092
|
if (status === "recorderPaused") {
|
|
49060
49093
|
var _t2;
|
|
49061
49094
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49062
|
-
_t2 = /* @__PURE__ */
|
|
49095
|
+
_t2 = /* @__PURE__ */ _jsx95(ResumeIcon, {});
|
|
49063
49096
|
$[9] = _t2;
|
|
49064
49097
|
} else {
|
|
49065
49098
|
_t2 = $[9];
|
|
49066
49099
|
}
|
|
49067
49100
|
var _t3;
|
|
49068
49101
|
if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
|
|
49069
|
-
_t3 = /* @__PURE__ */
|
|
49102
|
+
_t3 = /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49070
49103
|
onClick: audioThreadContext.audioRuntime.user.resume,
|
|
49071
49104
|
color: "red",
|
|
49072
49105
|
size: "4",
|
|
@@ -49082,7 +49115,7 @@ var ActionButton = function() {
|
|
|
49082
49115
|
if (status === "idle") {
|
|
49083
49116
|
var _t4;
|
|
49084
49117
|
if ($[12] !== audioThreadContext.audioRuntime.user) {
|
|
49085
|
-
_t4 = /* @__PURE__ */
|
|
49118
|
+
_t4 = /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49086
49119
|
onClick: function() {
|
|
49087
49120
|
return audioThreadContext.audioRuntime.user.start();
|
|
49088
49121
|
},
|
|
@@ -49114,14 +49147,14 @@ var ActionButton = function() {
|
|
|
49114
49147
|
}
|
|
49115
49148
|
var _t6;
|
|
49116
49149
|
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49117
|
-
_t6 = /* @__PURE__ */
|
|
49150
|
+
_t6 = /* @__PURE__ */ _jsx95(StopIcon2, {});
|
|
49118
49151
|
$[18] = _t6;
|
|
49119
49152
|
} else {
|
|
49120
49153
|
_t6 = $[18];
|
|
49121
49154
|
}
|
|
49122
49155
|
var _t7;
|
|
49123
49156
|
if ($[19] !== _t5) {
|
|
49124
|
-
_t7 = /* @__PURE__ */
|
|
49157
|
+
_t7 = /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49125
49158
|
onClick: _t5,
|
|
49126
49159
|
size: "4",
|
|
49127
49160
|
color: "gray",
|
|
@@ -49148,14 +49181,14 @@ var ActionButton = function() {
|
|
|
49148
49181
|
}
|
|
49149
49182
|
var _t9;
|
|
49150
49183
|
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49151
|
-
_t9 = /* @__PURE__ */
|
|
49184
|
+
_t9 = /* @__PURE__ */ _jsx95(ResumeIcon, {});
|
|
49152
49185
|
$[23] = _t9;
|
|
49153
49186
|
} else {
|
|
49154
49187
|
_t9 = $[23];
|
|
49155
49188
|
}
|
|
49156
49189
|
var _t0;
|
|
49157
49190
|
if ($[24] !== _t8) {
|
|
49158
|
-
_t0 = /* @__PURE__ */
|
|
49191
|
+
_t0 = /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49159
49192
|
onClick: _t8,
|
|
49160
49193
|
size: "4",
|
|
49161
49194
|
children: _t9
|
|
@@ -49169,7 +49202,7 @@ var ActionButton = function() {
|
|
|
49169
49202
|
}
|
|
49170
49203
|
var t0;
|
|
49171
49204
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49172
|
-
t0 = /* @__PURE__ */
|
|
49205
|
+
t0 = /* @__PURE__ */ _jsx95(IconButton10, {
|
|
49173
49206
|
size: "4",
|
|
49174
49207
|
variant: "soft",
|
|
49175
49208
|
disabled: true
|
|
@@ -49181,7 +49214,7 @@ var ActionButton = function() {
|
|
|
49181
49214
|
return t0;
|
|
49182
49215
|
};
|
|
49183
49216
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49184
|
-
import { jsx as
|
|
49217
|
+
import { jsx as _jsx96, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
49185
49218
|
function ownKeys52(e, r) {
|
|
49186
49219
|
var t = Object.keys(e);
|
|
49187
49220
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49226,17 +49259,17 @@ function _toPrimitive52(t, r) {
|
|
|
49226
49259
|
return ("string" === r ? String : Number)(t);
|
|
49227
49260
|
}
|
|
49228
49261
|
var Form = function(props) {
|
|
49229
|
-
var $ =
|
|
49262
|
+
var $ = _c99(17);
|
|
49230
49263
|
var status = useStatus().status;
|
|
49231
49264
|
var audioThreadContext = useAudioThreadContext();
|
|
49232
49265
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49233
49266
|
var t1;
|
|
49234
49267
|
if ($[0] !== t0) {
|
|
49235
|
-
t1 = /* @__PURE__ */
|
|
49268
|
+
t1 = /* @__PURE__ */ _jsx96(Flex34, {
|
|
49236
49269
|
ml: "-22.5px",
|
|
49237
49270
|
mr: "2",
|
|
49238
49271
|
align: "center",
|
|
49239
|
-
children: /* @__PURE__ */
|
|
49272
|
+
children: /* @__PURE__ */ _jsx96(MicIcon, {
|
|
49240
49273
|
style: {
|
|
49241
49274
|
color: t0
|
|
49242
49275
|
}
|
|
@@ -49262,7 +49295,7 @@ var Form = function(props) {
|
|
|
49262
49295
|
var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49263
49296
|
var t5;
|
|
49264
49297
|
if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
|
|
49265
|
-
t5 = /* @__PURE__ */
|
|
49298
|
+
t5 = /* @__PURE__ */ _jsx96(BarsVisualizer, {
|
|
49266
49299
|
visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
|
|
49267
49300
|
backgroundColor: t4,
|
|
49268
49301
|
height: "20px",
|
|
@@ -49276,7 +49309,7 @@ var Form = function(props) {
|
|
|
49276
49309
|
}
|
|
49277
49310
|
var t6;
|
|
49278
49311
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
49279
|
-
t6 = /* @__PURE__ */
|
|
49312
|
+
t6 = /* @__PURE__ */ _jsx96(Flex34, {
|
|
49280
49313
|
px: "2",
|
|
49281
49314
|
py: "1",
|
|
49282
49315
|
style: t3,
|
|
@@ -49306,7 +49339,7 @@ var Form = function(props) {
|
|
|
49306
49339
|
}
|
|
49307
49340
|
var t8;
|
|
49308
49341
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49309
|
-
t8 = /* @__PURE__ */
|
|
49342
|
+
t8 = /* @__PURE__ */ _jsx96(ActionButton, {});
|
|
49310
49343
|
$[13] = t8;
|
|
49311
49344
|
} else {
|
|
49312
49345
|
t8 = $[13];
|
|
@@ -49331,7 +49364,7 @@ var Form = function(props) {
|
|
|
49331
49364
|
return t9;
|
|
49332
49365
|
};
|
|
49333
49366
|
// src/components/threads/AudioThread/index.tsx
|
|
49334
|
-
import { jsx as
|
|
49367
|
+
import { jsx as _jsx97, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
49335
49368
|
function ownKeys53(e, r) {
|
|
49336
49369
|
var t = Object.keys(e);
|
|
49337
49370
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49376,14 +49409,14 @@ function _toPrimitive53(t, r) {
|
|
|
49376
49409
|
return ("string" === r ? String : Number)(t);
|
|
49377
49410
|
}
|
|
49378
49411
|
var AudioThread = function(props) {
|
|
49379
|
-
var $ =
|
|
49412
|
+
var $ = _c100(5);
|
|
49380
49413
|
var t0;
|
|
49381
49414
|
var t1;
|
|
49382
49415
|
var t2;
|
|
49383
49416
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49384
|
-
t0 = /* @__PURE__ */
|
|
49385
|
-
t1 = /* @__PURE__ */
|
|
49386
|
-
t2 = /* @__PURE__ */
|
|
49417
|
+
t0 = /* @__PURE__ */ _jsx97(Visualization, {});
|
|
49418
|
+
t1 = /* @__PURE__ */ _jsx97(Status, {});
|
|
49419
|
+
t2 = /* @__PURE__ */ _jsx97(Form, {});
|
|
49387
49420
|
$[0] = t0;
|
|
49388
49421
|
$[1] = t1;
|
|
49389
49422
|
$[2] = t2;
|
|
@@ -49413,7 +49446,7 @@ AudioThread.Visualization = Visualization;
|
|
|
49413
49446
|
AudioThread.Status = Status;
|
|
49414
49447
|
AudioThread.Form = Form;
|
|
49415
49448
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
49416
|
-
import { jsx as
|
|
49449
|
+
import { jsx as _jsx98, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
49417
49450
|
function ownKeys54(e, r) {
|
|
49418
49451
|
var t = Object.keys(e);
|
|
49419
49452
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49458,14 +49491,14 @@ function _toPrimitive54(t, r) {
|
|
|
49458
49491
|
return ("string" === r ? String : Number)(t);
|
|
49459
49492
|
}
|
|
49460
49493
|
var AudioThreadDialog = function(props) {
|
|
49461
|
-
var $ =
|
|
49494
|
+
var $ = _c101(4);
|
|
49462
49495
|
var t0;
|
|
49463
49496
|
var t1;
|
|
49464
49497
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49465
|
-
t0 = /* @__PURE__ */
|
|
49466
|
-
children: /* @__PURE__ */
|
|
49498
|
+
t0 = /* @__PURE__ */ _jsx98(Content8.Root, {
|
|
49499
|
+
children: /* @__PURE__ */ _jsx98(AudioThread, {})
|
|
49467
49500
|
});
|
|
49468
|
-
t1 = /* @__PURE__ */
|
|
49501
|
+
t1 = /* @__PURE__ */ _jsx98(Trigger, {});
|
|
49469
49502
|
$[0] = t0;
|
|
49470
49503
|
$[1] = t1;
|
|
49471
49504
|
} else {
|
|
@@ -49491,7 +49524,7 @@ AudioThreadDialog.Root = Root13;
|
|
|
49491
49524
|
AudioThreadDialog.Trigger = Trigger;
|
|
49492
49525
|
AudioThreadDialog.Content = Content8;
|
|
49493
49526
|
// src/hooks/audioRuntimes/useWebrtcAudioRuntime/index.ts
|
|
49494
|
-
import { useEffect as useEffect13, useMemo as
|
|
49527
|
+
import { useEffect as useEffect13, useMemo as useMemo21, useRef as useRef9, useState as useState12 } from "react";
|
|
49495
49528
|
function asyncGeneratorStep12(n, t, e, r, o, a, c) {
|
|
49496
49529
|
try {
|
|
49497
49530
|
var i = n[a](c), u = i.value;
|
|
@@ -49931,7 +49964,7 @@ var useWebrtcAudioRuntime = function() {
|
|
|
49931
49964
|
return _ref7.apply(this, arguments);
|
|
49932
49965
|
};
|
|
49933
49966
|
}();
|
|
49934
|
-
return
|
|
49967
|
+
return useMemo21(function() {
|
|
49935
49968
|
return {
|
|
49936
49969
|
webrtcAudioRuntime: {
|
|
49937
49970
|
user: {
|
|
@@ -49980,10 +50013,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
49980
50013
|
]);
|
|
49981
50014
|
};
|
|
49982
50015
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
49983
|
-
import { c as
|
|
49984
|
-
import { jsx as
|
|
50016
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50017
|
+
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
49985
50018
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
49986
|
-
var $ =
|
|
50019
|
+
var $ = _c102(5);
|
|
49987
50020
|
var children = t0.children;
|
|
49988
50021
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
49989
50022
|
var t1;
|
|
@@ -49998,7 +50031,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
49998
50031
|
}
|
|
49999
50032
|
var t2;
|
|
50000
50033
|
if ($[2] !== children || $[3] !== t1) {
|
|
50001
|
-
t2 = /* @__PURE__ */
|
|
50034
|
+
t2 = /* @__PURE__ */ _jsx99(AudioThreadContext.Provider, {
|
|
50002
50035
|
value: t1,
|
|
50003
50036
|
children: children
|
|
50004
50037
|
});
|
|
@@ -50011,14 +50044,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50011
50044
|
return t2;
|
|
50012
50045
|
};
|
|
50013
50046
|
// src/components/gui/Gui/index.tsx
|
|
50014
|
-
import { c as
|
|
50015
|
-
import { useMemo as
|
|
50047
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50048
|
+
import { useMemo as useMemo24 } from "react";
|
|
50016
50049
|
import { Flex as Flex35, Card as Card5, Spinner as Spinner3 } from "@radix-ui/themes";
|
|
50017
50050
|
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50018
|
-
import { c as
|
|
50019
|
-
import { useMemo as
|
|
50051
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50052
|
+
import { useMemo as useMemo22 } from "react";
|
|
50020
50053
|
var useLatestAssistantMessage = function() {
|
|
50021
|
-
var $ =
|
|
50054
|
+
var $ = _c103(4);
|
|
50022
50055
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50023
50056
|
var t0;
|
|
50024
50057
|
var t1;
|
|
@@ -50047,11 +50080,11 @@ function _temp11(message) {
|
|
|
50047
50080
|
return message.role === "assistant";
|
|
50048
50081
|
}
|
|
50049
50082
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50050
|
-
import { c as
|
|
50083
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50051
50084
|
import { isEmpty as isEmpty3 } from "radash";
|
|
50052
|
-
import { useMemo as
|
|
50085
|
+
import { useMemo as useMemo23 } from "react";
|
|
50053
50086
|
var useLatestAssistantMessageWithContent = function() {
|
|
50054
|
-
var $ =
|
|
50087
|
+
var $ = _c104(4);
|
|
50055
50088
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50056
50089
|
var t0;
|
|
50057
50090
|
var t1;
|
|
@@ -50083,14 +50116,14 @@ function _temp25(message) {
|
|
|
50083
50116
|
return message.role === "assistant" && message.content.some(_temp12);
|
|
50084
50117
|
}
|
|
50085
50118
|
// src/components/gui/Gui/index.tsx
|
|
50086
|
-
import { jsx as
|
|
50119
|
+
import { jsx as _jsx100, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
50087
50120
|
var StartingToolCalls3 = function() {
|
|
50088
|
-
var $ =
|
|
50121
|
+
var $ = _c105(2);
|
|
50089
50122
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50090
50123
|
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50091
50124
|
var t1;
|
|
50092
50125
|
if ($[0] !== StartingToolCalls4) {
|
|
50093
|
-
t1 = /* @__PURE__ */
|
|
50126
|
+
t1 = /* @__PURE__ */ _jsx100(StartingToolCalls4, {});
|
|
50094
50127
|
$[0] = StartingToolCalls4;
|
|
50095
50128
|
$[1] = t1;
|
|
50096
50129
|
} else {
|
|
@@ -50099,7 +50132,7 @@ var StartingToolCalls3 = function() {
|
|
|
50099
50132
|
return t1;
|
|
50100
50133
|
};
|
|
50101
50134
|
var Content10 = function(t0) {
|
|
50102
|
-
var $ =
|
|
50135
|
+
var $ = _c105(5);
|
|
50103
50136
|
var latestRunStep = t0.latestRunStep;
|
|
50104
50137
|
var t1;
|
|
50105
50138
|
bb0: {
|
|
@@ -50121,7 +50154,7 @@ var Content10 = function(t0) {
|
|
|
50121
50154
|
if (!latestRunStep || latestRunStep.step_details.type !== "tool_calls") {
|
|
50122
50155
|
var _t;
|
|
50123
50156
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50124
|
-
_t = /* @__PURE__ */
|
|
50157
|
+
_t = /* @__PURE__ */ _jsx100(Spinner3, {});
|
|
50125
50158
|
$[0] = _t;
|
|
50126
50159
|
} else {
|
|
50127
50160
|
_t = $[0];
|
|
@@ -50131,7 +50164,7 @@ var Content10 = function(t0) {
|
|
|
50131
50164
|
if (!latestToolCall) {
|
|
50132
50165
|
var _t2;
|
|
50133
50166
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50134
|
-
_t2 = /* @__PURE__ */
|
|
50167
|
+
_t2 = /* @__PURE__ */ _jsx100(StartingToolCalls3, {});
|
|
50135
50168
|
$[1] = _t2;
|
|
50136
50169
|
} else {
|
|
50137
50170
|
_t2 = $[1];
|
|
@@ -50140,7 +50173,7 @@ var Content10 = function(t0) {
|
|
|
50140
50173
|
}
|
|
50141
50174
|
var t2;
|
|
50142
50175
|
if ($[2] !== latestRunStep || $[3] !== latestToolCall) {
|
|
50143
|
-
t2 = /* @__PURE__ */
|
|
50176
|
+
t2 = /* @__PURE__ */ _jsx100(ToolCall, {
|
|
50144
50177
|
runStep: latestRunStep,
|
|
50145
50178
|
toolCall: latestToolCall
|
|
50146
50179
|
});
|
|
@@ -50153,7 +50186,7 @@ var Content10 = function(t0) {
|
|
|
50153
50186
|
return t2;
|
|
50154
50187
|
};
|
|
50155
50188
|
var Progress2 = function(t0) {
|
|
50156
|
-
var $ =
|
|
50189
|
+
var $ = _c105(5);
|
|
50157
50190
|
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50158
50191
|
var isMutatingMessage = useIsMutatingMessage();
|
|
50159
50192
|
var t1;
|
|
@@ -50187,10 +50220,10 @@ var Progress2 = function(t0) {
|
|
|
50187
50220
|
}
|
|
50188
50221
|
var t4;
|
|
50189
50222
|
if ($[3] !== latestRunStep) {
|
|
50190
|
-
t4 = /* @__PURE__ */
|
|
50223
|
+
t4 = /* @__PURE__ */ _jsx100(Flex35, {
|
|
50191
50224
|
style: t3,
|
|
50192
|
-
children: /* @__PURE__ */
|
|
50193
|
-
children: /* @__PURE__ */
|
|
50225
|
+
children: /* @__PURE__ */ _jsx100(Card5, {
|
|
50226
|
+
children: /* @__PURE__ */ _jsx100(Content10, {
|
|
50194
50227
|
latestRunStep: latestRunStep
|
|
50195
50228
|
})
|
|
50196
50229
|
})
|
|
@@ -50203,20 +50236,20 @@ var Progress2 = function(t0) {
|
|
|
50203
50236
|
return t4;
|
|
50204
50237
|
};
|
|
50205
50238
|
var Gui = function() {
|
|
50206
|
-
var $ =
|
|
50239
|
+
var $ = _c105(8);
|
|
50207
50240
|
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50208
50241
|
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50209
50242
|
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
50210
50243
|
var _t3;
|
|
50211
50244
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50212
|
-
_t3 = /* @__PURE__ */
|
|
50245
|
+
_t3 = /* @__PURE__ */ _jsx100(Flex35, {
|
|
50213
50246
|
direction: "column",
|
|
50214
50247
|
flexGrow: "1",
|
|
50215
|
-
children: /* @__PURE__ */
|
|
50248
|
+
children: /* @__PURE__ */ _jsx100(Flex35, {
|
|
50216
50249
|
align: "center",
|
|
50217
50250
|
justify: "center",
|
|
50218
50251
|
flexGrow: "1",
|
|
50219
|
-
children: /* @__PURE__ */
|
|
50252
|
+
children: /* @__PURE__ */ _jsx100(Spinner3, {
|
|
50220
50253
|
size: "3"
|
|
50221
50254
|
})
|
|
50222
50255
|
})
|
|
@@ -50229,7 +50262,7 @@ var Gui = function() {
|
|
|
50229
50262
|
}
|
|
50230
50263
|
var t0;
|
|
50231
50264
|
if ($[1] !== latestAssistantMessageWithContent) {
|
|
50232
|
-
t0 = /* @__PURE__ */
|
|
50265
|
+
t0 = /* @__PURE__ */ _jsx100(MessageContent, {
|
|
50233
50266
|
message: latestAssistantMessageWithContent
|
|
50234
50267
|
});
|
|
50235
50268
|
$[1] = latestAssistantMessageWithContent;
|
|
@@ -50239,7 +50272,7 @@ var Gui = function() {
|
|
|
50239
50272
|
}
|
|
50240
50273
|
var t1;
|
|
50241
50274
|
if ($[3] !== latestAssistantMessage) {
|
|
50242
|
-
t1 = /* @__PURE__ */
|
|
50275
|
+
t1 = /* @__PURE__ */ _jsx100(Progress2, {
|
|
50243
50276
|
latestAssistantMessage: latestAssistantMessage
|
|
50244
50277
|
});
|
|
50245
50278
|
$[3] = latestAssistantMessage;
|
|
@@ -50269,9 +50302,9 @@ function _temp13(rs) {
|
|
|
50269
50302
|
return rs.status === "in_progress";
|
|
50270
50303
|
}
|
|
50271
50304
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50272
|
-
import { c as
|
|
50273
|
-
import { useMemo as
|
|
50274
|
-
import { jsx as
|
|
50305
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50306
|
+
import { useMemo as useMemo25 } from "react";
|
|
50307
|
+
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
50275
50308
|
var _excluded7 = [
|
|
50276
50309
|
"children"
|
|
50277
50310
|
];
|
|
@@ -50294,7 +50327,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50294
50327
|
return t;
|
|
50295
50328
|
}
|
|
50296
50329
|
var MarkdownProvider = function(t0) {
|
|
50297
|
-
var $ =
|
|
50330
|
+
var $ = _c106(9);
|
|
50298
50331
|
var children;
|
|
50299
50332
|
var rest;
|
|
50300
50333
|
if ($[0] !== t0) {
|
|
@@ -50324,7 +50357,7 @@ var MarkdownProvider = function(t0) {
|
|
|
50324
50357
|
var value = t1;
|
|
50325
50358
|
var t3;
|
|
50326
50359
|
if ($[6] !== children || $[7] !== value) {
|
|
50327
|
-
t3 = /* @__PURE__ */
|
|
50360
|
+
t3 = /* @__PURE__ */ _jsx101(MarkdownContext.Provider, {
|
|
50328
50361
|
value: value,
|
|
50329
50362
|
children: children
|
|
50330
50363
|
});
|
|
@@ -50337,18 +50370,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50337
50370
|
return t3;
|
|
50338
50371
|
};
|
|
50339
50372
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50340
|
-
import { c as
|
|
50373
|
+
import { c as _c109 } from "react-compiler-runtime";
|
|
50341
50374
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50342
|
-
import { c as
|
|
50375
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
50343
50376
|
import { useState as useState13 } from "react";
|
|
50344
50377
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50345
50378
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50346
50379
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50347
|
-
import { c as
|
|
50380
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50348
50381
|
import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
|
|
50349
|
-
import { jsx as
|
|
50382
|
+
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
50350
50383
|
var Content11 = function(t0) {
|
|
50351
|
-
var $ =
|
|
50384
|
+
var $ = _c107(5);
|
|
50352
50385
|
var fileId = t0.fileId;
|
|
50353
50386
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50354
50387
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50385,18 +50418,18 @@ var Content11 = function(t0) {
|
|
|
50385
50418
|
}
|
|
50386
50419
|
var t5;
|
|
50387
50420
|
if ($[3] !== t3) {
|
|
50388
|
-
t5 = /* @__PURE__ */
|
|
50421
|
+
t5 = /* @__PURE__ */ _jsx102(Flex36, {
|
|
50389
50422
|
direction: "column",
|
|
50390
50423
|
flexGrow: "1",
|
|
50391
50424
|
gap: "3",
|
|
50392
|
-
children: /* @__PURE__ */
|
|
50425
|
+
children: /* @__PURE__ */ _jsx102(Card6, {
|
|
50393
50426
|
style: t1,
|
|
50394
|
-
children: /* @__PURE__ */
|
|
50427
|
+
children: /* @__PURE__ */ _jsx102(Inset3, {
|
|
50395
50428
|
clip: "padding-box",
|
|
50396
50429
|
style: t2,
|
|
50397
|
-
children: /* @__PURE__ */
|
|
50430
|
+
children: /* @__PURE__ */ _jsx102(Flex36, {
|
|
50398
50431
|
flexGrow: "1",
|
|
50399
|
-
children: /* @__PURE__ */
|
|
50432
|
+
children: /* @__PURE__ */ _jsx102("embed", {
|
|
50400
50433
|
src: t3,
|
|
50401
50434
|
style: t4
|
|
50402
50435
|
})
|
|
@@ -50412,9 +50445,9 @@ var Content11 = function(t0) {
|
|
|
50412
50445
|
return t5;
|
|
50413
50446
|
};
|
|
50414
50447
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50415
|
-
import { jsx as
|
|
50448
|
+
import { jsx as _jsx103, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50416
50449
|
var FileCitation = function(t0) {
|
|
50417
|
-
var $ =
|
|
50450
|
+
var $ = _c108(18);
|
|
50418
50451
|
var annotation = t0.annotation;
|
|
50419
50452
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50420
50453
|
var t1;
|
|
@@ -50429,14 +50462,14 @@ var FileCitation = function(t0) {
|
|
|
50429
50462
|
}
|
|
50430
50463
|
var t2;
|
|
50431
50464
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50432
|
-
t2 = /* @__PURE__ */
|
|
50465
|
+
t2 = /* @__PURE__ */ _jsx103(QuoteIcon2, {});
|
|
50433
50466
|
$[2] = t2;
|
|
50434
50467
|
} else {
|
|
50435
50468
|
t2 = $[2];
|
|
50436
50469
|
}
|
|
50437
50470
|
var t3;
|
|
50438
50471
|
if ($[3] !== t1) {
|
|
50439
|
-
t3 = /* @__PURE__ */
|
|
50472
|
+
t3 = /* @__PURE__ */ _jsx103(IconButton11, {
|
|
50440
50473
|
variant: "soft",
|
|
50441
50474
|
color: "gray",
|
|
50442
50475
|
size: "1",
|
|
@@ -50472,9 +50505,9 @@ var FileCitation = function(t0) {
|
|
|
50472
50505
|
}
|
|
50473
50506
|
var t7;
|
|
50474
50507
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50475
|
-
t7 = /* @__PURE__ */
|
|
50508
|
+
t7 = /* @__PURE__ */ _jsx103(VisuallyHidden, {
|
|
50476
50509
|
asChild: true,
|
|
50477
|
-
children: /* @__PURE__ */
|
|
50510
|
+
children: /* @__PURE__ */ _jsx103(Dialog.Title, {
|
|
50478
50511
|
children: "Source"
|
|
50479
50512
|
})
|
|
50480
50513
|
});
|
|
@@ -50484,7 +50517,7 @@ var FileCitation = function(t0) {
|
|
|
50484
50517
|
}
|
|
50485
50518
|
var t8;
|
|
50486
50519
|
if ($[8] !== activeFileId) {
|
|
50487
|
-
t8 = activeFileId && /* @__PURE__ */
|
|
50520
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx103(Content11, {
|
|
50488
50521
|
fileId: activeFileId
|
|
50489
50522
|
});
|
|
50490
50523
|
$[8] = activeFileId;
|
|
@@ -50512,7 +50545,7 @@ var FileCitation = function(t0) {
|
|
|
50512
50545
|
}
|
|
50513
50546
|
var t10;
|
|
50514
50547
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
50515
|
-
t10 = /* @__PURE__ */
|
|
50548
|
+
t10 = /* @__PURE__ */ _jsx103(Dialog.Root, {
|
|
50516
50549
|
open: t4,
|
|
50517
50550
|
onOpenChange: t5,
|
|
50518
50551
|
children: t9
|
|
@@ -50540,7 +50573,7 @@ var FileCitation = function(t0) {
|
|
|
50540
50573
|
return t11;
|
|
50541
50574
|
};
|
|
50542
50575
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50543
|
-
import { jsx as
|
|
50576
|
+
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
50544
50577
|
var _excluded8 = [
|
|
50545
50578
|
"children"
|
|
50546
50579
|
];
|
|
@@ -50563,7 +50596,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
50563
50596
|
return t;
|
|
50564
50597
|
}
|
|
50565
50598
|
var SourceAnnotation = function(t0) {
|
|
50566
|
-
var $ =
|
|
50599
|
+
var $ = _c109(10);
|
|
50567
50600
|
var children;
|
|
50568
50601
|
var rest;
|
|
50569
50602
|
if ($[0] !== t0) {
|
|
@@ -50591,7 +50624,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50591
50624
|
if (annotation.type === "file_citation") {
|
|
50592
50625
|
var t2;
|
|
50593
50626
|
if ($[5] !== annotation) {
|
|
50594
|
-
t2 = /* @__PURE__ */
|
|
50627
|
+
t2 = /* @__PURE__ */ _jsx104(FileCitation, {
|
|
50595
50628
|
annotation: annotation
|
|
50596
50629
|
});
|
|
50597
50630
|
$[5] = annotation;
|
|
@@ -50604,7 +50637,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50604
50637
|
if (annotation.type === "file_path") {
|
|
50605
50638
|
var _t2;
|
|
50606
50639
|
if ($[7] !== annotation || $[8] !== children) {
|
|
50607
|
-
_t2 = /* @__PURE__ */
|
|
50640
|
+
_t2 = /* @__PURE__ */ _jsx104(FilePathAnnotation, {
|
|
50608
50641
|
annotation: annotation,
|
|
50609
50642
|
children: children
|
|
50610
50643
|
});
|
|
@@ -50620,7 +50653,7 @@ var SourceAnnotation = function(t0) {
|
|
|
50620
50653
|
return null;
|
|
50621
50654
|
};
|
|
50622
50655
|
// src/components/avatars/Avatar.tsx
|
|
50623
|
-
import { c as
|
|
50656
|
+
import { c as _c112 } from "react-compiler-runtime";
|
|
50624
50657
|
// src/enums/index.ts
|
|
50625
50658
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
50626
50659
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -50645,7 +50678,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
50645
50678
|
// src/components/avatars/Avatar.tsx
|
|
50646
50679
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
50647
50680
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50648
|
-
import { c as
|
|
50681
|
+
import { c as _c110 } from "react-compiler-runtime";
|
|
50649
50682
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
50650
50683
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
50651
50684
|
var width = function(_ref) {
|
|
@@ -50697,9 +50730,9 @@ var optimizedSrc = function(_ref) {
|
|
|
50697
50730
|
}));
|
|
50698
50731
|
};
|
|
50699
50732
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
50700
|
-
import { jsx as
|
|
50733
|
+
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
50701
50734
|
var ImageAvatar = function(t0) {
|
|
50702
|
-
var $ =
|
|
50735
|
+
var $ = _c110(9);
|
|
50703
50736
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50704
50737
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50705
50738
|
var t1;
|
|
@@ -50718,7 +50751,7 @@ var ImageAvatar = function(t0) {
|
|
|
50718
50751
|
}
|
|
50719
50752
|
var t2;
|
|
50720
50753
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
50721
|
-
t2 = /* @__PURE__ */
|
|
50754
|
+
t2 = /* @__PURE__ */ _jsx105(Avatar4, {
|
|
50722
50755
|
className: className,
|
|
50723
50756
|
style: style,
|
|
50724
50757
|
fallback: "",
|
|
@@ -50736,24 +50769,24 @@ var ImageAvatar = function(t0) {
|
|
|
50736
50769
|
return t2;
|
|
50737
50770
|
};
|
|
50738
50771
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50739
|
-
import { c as
|
|
50740
|
-
import { useMemo as
|
|
50772
|
+
import { c as _c111 } from "react-compiler-runtime";
|
|
50773
|
+
import { useMemo as useMemo26 } from "react";
|
|
50741
50774
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
50742
50775
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
50743
50776
|
import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon, GlobeIcon, StarIcon, LightningBoltIcon as LightningBoltIcon2, FaceIcon, PersonIcon as PersonIcon2, HeartIcon } from "@radix-ui/react-icons";
|
|
50744
50777
|
var _obj;
|
|
50745
50778
|
var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BACKPACK, BackpackIcon), _define_property(_obj, IconAvatarName.ROCKET, RocketIcon), _define_property(_obj, IconAvatarName.MAGIC_WAND, MagicWandIcon), _define_property(_obj, IconAvatarName.CUBE, CubeIcon), _define_property(_obj, IconAvatarName.TARGET, TargetIcon), _define_property(_obj, IconAvatarName.DISC, DiscIcon), _define_property(_obj, IconAvatarName.GLOBE, GlobeIcon), _define_property(_obj, IconAvatarName.STAR, StarIcon), _define_property(_obj, IconAvatarName.LIGHTNING_BOLT, LightningBoltIcon2), _define_property(_obj, IconAvatarName.FACE, FaceIcon), _define_property(_obj, IconAvatarName.PERSON, PersonIcon2), _define_property(_obj, IconAvatarName.HEART, HeartIcon), _obj);
|
|
50746
50779
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
50747
|
-
import { jsx as
|
|
50780
|
+
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
50748
50781
|
var IconAvatar = function(t0) {
|
|
50749
|
-
var $ =
|
|
50782
|
+
var $ = _c111(7);
|
|
50750
50783
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
50751
50784
|
var t1;
|
|
50752
50785
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
50753
50786
|
var Component2 = t1;
|
|
50754
50787
|
var t2;
|
|
50755
50788
|
if ($[0] !== Component2) {
|
|
50756
|
-
t2 = Component2 ? /* @__PURE__ */
|
|
50789
|
+
t2 = Component2 ? /* @__PURE__ */ _jsx106(Component2, {}) : "";
|
|
50757
50790
|
$[0] = Component2;
|
|
50758
50791
|
$[1] = t2;
|
|
50759
50792
|
} else {
|
|
@@ -50761,7 +50794,7 @@ var IconAvatar = function(t0) {
|
|
|
50761
50794
|
}
|
|
50762
50795
|
var t3;
|
|
50763
50796
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
50764
|
-
t3 = /* @__PURE__ */
|
|
50797
|
+
t3 = /* @__PURE__ */ _jsx106(Avatar5, {
|
|
50765
50798
|
className: className,
|
|
50766
50799
|
style: style,
|
|
50767
50800
|
size: size,
|
|
@@ -50778,16 +50811,16 @@ var IconAvatar = function(t0) {
|
|
|
50778
50811
|
return t3;
|
|
50779
50812
|
};
|
|
50780
50813
|
// src/components/avatars/Avatar.tsx
|
|
50781
|
-
import { jsx as
|
|
50814
|
+
import { jsx as _jsx107 } from "react/jsx-runtime";
|
|
50782
50815
|
var Avatar6 = function(t0) {
|
|
50783
|
-
var $ =
|
|
50816
|
+
var $ = _c112(14);
|
|
50784
50817
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
50785
50818
|
var size = t1 === void 0 ? "1" : t1;
|
|
50786
50819
|
if (avatar) {
|
|
50787
50820
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
50788
50821
|
var _t;
|
|
50789
50822
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
50790
|
-
_t = /* @__PURE__ */
|
|
50823
|
+
_t = /* @__PURE__ */ _jsx107(ImageAvatar, {
|
|
50791
50824
|
imageAvatar: avatar.imageAvatar,
|
|
50792
50825
|
size: size,
|
|
50793
50826
|
className: className,
|
|
@@ -50806,7 +50839,7 @@ var Avatar6 = function(t0) {
|
|
|
50806
50839
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
50807
50840
|
var _t2;
|
|
50808
50841
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
50809
|
-
_t2 = /* @__PURE__ */
|
|
50842
|
+
_t2 = /* @__PURE__ */ _jsx107(IconAvatar, {
|
|
50810
50843
|
iconAvatar: avatar.iconAvatar,
|
|
50811
50844
|
size: size,
|
|
50812
50845
|
className: className,
|
|
@@ -50825,7 +50858,7 @@ var Avatar6 = function(t0) {
|
|
|
50825
50858
|
}
|
|
50826
50859
|
var t2;
|
|
50827
50860
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
50828
|
-
t2 = /* @__PURE__ */
|
|
50861
|
+
t2 = /* @__PURE__ */ _jsx107(RadixAvatar, {
|
|
50829
50862
|
fallback: "",
|
|
50830
50863
|
size: size,
|
|
50831
50864
|
className: className,
|
|
@@ -50841,9 +50874,9 @@ var Avatar6 = function(t0) {
|
|
|
50841
50874
|
return t2;
|
|
50842
50875
|
};
|
|
50843
50876
|
// src/components/components/ComponentsProvider.tsx
|
|
50844
|
-
import { c as
|
|
50845
|
-
import { useMemo as
|
|
50846
|
-
import { jsx as
|
|
50877
|
+
import { c as _c113 } from "react-compiler-runtime";
|
|
50878
|
+
import { useMemo as useMemo27 } from "react";
|
|
50879
|
+
import { jsx as _jsx108 } from "react/jsx-runtime";
|
|
50847
50880
|
var _excluded9 = [
|
|
50848
50881
|
"children"
|
|
50849
50882
|
];
|
|
@@ -50866,7 +50899,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
50866
50899
|
return t;
|
|
50867
50900
|
}
|
|
50868
50901
|
var ComponentsProvider = function(t0) {
|
|
50869
|
-
var $ =
|
|
50902
|
+
var $ = _c113(9);
|
|
50870
50903
|
var children;
|
|
50871
50904
|
var rest;
|
|
50872
50905
|
if ($[0] !== t0) {
|
|
@@ -50896,7 +50929,7 @@ var ComponentsProvider = function(t0) {
|
|
|
50896
50929
|
var value = t1;
|
|
50897
50930
|
var t3;
|
|
50898
50931
|
if ($[6] !== children || $[7] !== value) {
|
|
50899
|
-
t3 = /* @__PURE__ */
|
|
50932
|
+
t3 = /* @__PURE__ */ _jsx108(ComponentsContext.Provider, {
|
|
50900
50933
|
value: value,
|
|
50901
50934
|
children: children
|
|
50902
50935
|
});
|
|
@@ -50909,11 +50942,11 @@ var ComponentsProvider = function(t0) {
|
|
|
50909
50942
|
return t3;
|
|
50910
50943
|
};
|
|
50911
50944
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
50912
|
-
import { c as
|
|
50913
|
-
import { jsx as
|
|
50945
|
+
import { c as _c114 } from "react-compiler-runtime";
|
|
50946
|
+
import { jsx as _jsx109 } from "react/jsx-runtime";
|
|
50914
50947
|
var AssistantProvider = function(t0) {
|
|
50915
50948
|
var _assistant$name;
|
|
50916
|
-
var $ =
|
|
50949
|
+
var $ = _c114(10);
|
|
50917
50950
|
var children = t0.children;
|
|
50918
50951
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50919
50952
|
var t1;
|
|
@@ -50931,7 +50964,7 @@ var AssistantProvider = function(t0) {
|
|
|
50931
50964
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
50932
50965
|
var t4;
|
|
50933
50966
|
if ($[2] !== t3) {
|
|
50934
|
-
t4 = /* @__PURE__ */
|
|
50967
|
+
t4 = /* @__PURE__ */ _jsx109(Avatar6, {
|
|
50935
50968
|
avatar: t3
|
|
50936
50969
|
});
|
|
50937
50970
|
$[2] = t3;
|
|
@@ -50941,7 +50974,7 @@ var AssistantProvider = function(t0) {
|
|
|
50941
50974
|
}
|
|
50942
50975
|
var t5;
|
|
50943
50976
|
if ($[4] !== children || $[5] !== t4) {
|
|
50944
|
-
t5 = /* @__PURE__ */
|
|
50977
|
+
t5 = /* @__PURE__ */ _jsx109(AssistantAvatarContext.Provider, {
|
|
50945
50978
|
value: t4,
|
|
50946
50979
|
children: children
|
|
50947
50980
|
});
|
|
@@ -50953,7 +50986,7 @@ var AssistantProvider = function(t0) {
|
|
|
50953
50986
|
}
|
|
50954
50987
|
var t6;
|
|
50955
50988
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
50956
|
-
t6 = /* @__PURE__ */
|
|
50989
|
+
t6 = /* @__PURE__ */ _jsx109(AssistantNameContext.Provider, {
|
|
50957
50990
|
value: t2,
|
|
50958
50991
|
children: t5
|
|
50959
50992
|
});
|