@superinterface/react 3.14.5 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +354 -345
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +322 -317
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1119,9 +1119,9 @@ var Attachments = function(t0) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
return t3;
|
|
1121
1121
|
};
|
|
1122
|
-
// src/components/
|
|
1122
|
+
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
1123
1123
|
import { c as _c24 } from "react-compiler-runtime";
|
|
1124
|
-
// src/components/
|
|
1124
|
+
// src/components/messages/MessageContent/ContentPart/TextContent.tsx
|
|
1125
1125
|
import { c as _c22 } from "react-compiler-runtime";
|
|
1126
1126
|
import React, { useState as useState3, useEffect as useEffect2, useMemo as useMemo9 } from "react";
|
|
1127
1127
|
import { Badge as Badge2 } from "@radix-ui/themes";
|
|
@@ -4625,7 +4625,7 @@ function hasArrayChanged() {
|
|
|
4625
4625
|
return !Object.is(item, b[index]);
|
|
4626
4626
|
});
|
|
4627
4627
|
}
|
|
4628
|
-
// src/components/
|
|
4628
|
+
// src/components/messages/MessageContent/ContentPart/TextContent.tsx
|
|
4629
4629
|
import { jsx as _jsx44 } from "react/jsx-runtime";
|
|
4630
4630
|
function ownKeys24(e, r) {
|
|
4631
4631
|
var t = Object.keys(e);
|
|
@@ -4856,7 +4856,7 @@ var TextContent = function(t0) {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
return t7;
|
|
4858
4858
|
};
|
|
4859
|
-
// src/components/
|
|
4859
|
+
// src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
|
|
4860
4860
|
import { c as _c23 } from "react-compiler-runtime";
|
|
4861
4861
|
import { jsx as _jsx45 } from "react/jsx-runtime";
|
|
4862
4862
|
var ImageFileContent = function(t0) {
|
|
@@ -4878,7 +4878,7 @@ var ImageFileContent = function(t0) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
return t2;
|
|
4880
4880
|
};
|
|
4881
|
-
// src/components/
|
|
4881
|
+
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
4882
4882
|
import { jsx as _jsx46 } from "react/jsx-runtime";
|
|
4883
4883
|
var ContentPart = function(t0) {
|
|
4884
4884
|
var $ = _c24(4);
|
|
@@ -4911,10 +4911,22 @@ var ContentPart = function(t0) {
|
|
|
4911
4911
|
}
|
|
4912
4912
|
return null;
|
|
4913
4913
|
};
|
|
4914
|
+
// src/components/messages/MessageContent/index.tsx
|
|
4915
|
+
import { jsx as _jsx47, Fragment as _Fragment2 } from "react/jsx-runtime";
|
|
4916
|
+
var MessageContent = function(_ref) {
|
|
4917
|
+
var message = _ref.message;
|
|
4918
|
+
return /* @__PURE__ */ _jsx47(_Fragment2, {
|
|
4919
|
+
children: message.content.map(function(content, index) {
|
|
4920
|
+
return /* @__PURE__ */ _jsx47(ContentPart, {
|
|
4921
|
+
content: content
|
|
4922
|
+
}, index);
|
|
4923
|
+
})
|
|
4924
|
+
});
|
|
4925
|
+
};
|
|
4914
4926
|
// src/components/threads/Thread/Message/index.tsx
|
|
4915
|
-
import { jsx as
|
|
4927
|
+
import { jsx as _jsx48, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
4916
4928
|
var Message = function(t0) {
|
|
4917
|
-
var $ = _c25(
|
|
4929
|
+
var $ = _c25(50);
|
|
4918
4930
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
4919
4931
|
var t1;
|
|
4920
4932
|
bb0: {
|
|
@@ -5044,7 +5056,7 @@ var Message = function(t0) {
|
|
|
5044
5056
|
}
|
|
5045
5057
|
var t4;
|
|
5046
5058
|
if ($[23] !== olderRunSteps_0) {
|
|
5047
|
-
t4 = /* @__PURE__ */
|
|
5059
|
+
t4 = /* @__PURE__ */ _jsx48(RunSteps, {
|
|
5048
5060
|
runSteps: olderRunSteps_0
|
|
5049
5061
|
});
|
|
5050
5062
|
$[23] = olderRunSteps_0;
|
|
@@ -5053,34 +5065,32 @@ var Message = function(t0) {
|
|
|
5053
5065
|
t4 = $[24];
|
|
5054
5066
|
}
|
|
5055
5067
|
var t5;
|
|
5068
|
+
var t6;
|
|
5056
5069
|
if ($[25] !== message) {
|
|
5057
|
-
t5 = /* @__PURE__ */
|
|
5070
|
+
t5 = /* @__PURE__ */ _jsx48(Attachments, {
|
|
5071
|
+
message: message
|
|
5072
|
+
});
|
|
5073
|
+
t6 = /* @__PURE__ */ _jsx48(MessageContent, {
|
|
5058
5074
|
message: message
|
|
5059
5075
|
});
|
|
5060
5076
|
$[25] = message;
|
|
5061
5077
|
$[26] = t5;
|
|
5078
|
+
$[27] = t6;
|
|
5062
5079
|
} else {
|
|
5063
5080
|
t5 = $[26];
|
|
5064
|
-
|
|
5065
|
-
var t6;
|
|
5066
|
-
if ($[27] !== message.content) {
|
|
5067
|
-
t6 = message.content.map(_temp4);
|
|
5068
|
-
$[27] = message.content;
|
|
5069
|
-
$[28] = t6;
|
|
5070
|
-
} else {
|
|
5071
|
-
t6 = $[28];
|
|
5081
|
+
t6 = $[27];
|
|
5072
5082
|
}
|
|
5073
5083
|
var t7;
|
|
5074
|
-
if ($[
|
|
5075
|
-
t7 = isInProgress && isEmpty2(laterRunSteps_0) && /* @__PURE__ */
|
|
5076
|
-
$[
|
|
5077
|
-
$[
|
|
5078
|
-
$[
|
|
5084
|
+
if ($[28] !== isInProgress || $[29] !== laterRunSteps_0) {
|
|
5085
|
+
t7 = isInProgress && isEmpty2(laterRunSteps_0) && /* @__PURE__ */ _jsx48(StartingContentSkeleton, {});
|
|
5086
|
+
$[28] = isInProgress;
|
|
5087
|
+
$[29] = laterRunSteps_0;
|
|
5088
|
+
$[30] = t7;
|
|
5079
5089
|
} else {
|
|
5080
|
-
t7 = $[
|
|
5090
|
+
t7 = $[30];
|
|
5081
5091
|
}
|
|
5082
5092
|
var t8;
|
|
5083
|
-
if ($[
|
|
5093
|
+
if ($[31] !== t5 || $[32] !== t6 || $[33] !== t7) {
|
|
5084
5094
|
t8 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
5085
5095
|
children: [
|
|
5086
5096
|
t5,
|
|
@@ -5088,36 +5098,36 @@ var Message = function(t0) {
|
|
|
5088
5098
|
t7
|
|
5089
5099
|
]
|
|
5090
5100
|
});
|
|
5091
|
-
$[
|
|
5092
|
-
$[
|
|
5093
|
-
$[
|
|
5094
|
-
$[
|
|
5101
|
+
$[31] = t5;
|
|
5102
|
+
$[32] = t6;
|
|
5103
|
+
$[33] = t7;
|
|
5104
|
+
$[34] = t8;
|
|
5095
5105
|
} else {
|
|
5096
|
-
t8 = $[
|
|
5106
|
+
t8 = $[34];
|
|
5097
5107
|
}
|
|
5098
5108
|
var t9;
|
|
5099
|
-
if ($[
|
|
5100
|
-
t9 = /* @__PURE__ */
|
|
5109
|
+
if ($[35] !== laterRunSteps_0) {
|
|
5110
|
+
t9 = /* @__PURE__ */ _jsx48(RunSteps, {
|
|
5101
5111
|
runSteps: laterRunSteps_0
|
|
5102
5112
|
});
|
|
5103
|
-
$[
|
|
5104
|
-
$[
|
|
5113
|
+
$[35] = laterRunSteps_0;
|
|
5114
|
+
$[36] = t9;
|
|
5105
5115
|
} else {
|
|
5106
|
-
t9 = $[
|
|
5116
|
+
t9 = $[36];
|
|
5107
5117
|
}
|
|
5108
5118
|
var t10;
|
|
5109
|
-
if ($[
|
|
5110
|
-
t10 = isInProgress && !isEmpty2(laterRunSteps_0) && /* @__PURE__ */
|
|
5111
|
-
children: /* @__PURE__ */
|
|
5119
|
+
if ($[37] !== isInProgress || $[38] !== laterRunSteps_0) {
|
|
5120
|
+
t10 = isInProgress && !isEmpty2(laterRunSteps_0) && /* @__PURE__ */ _jsx48(Box9, {
|
|
5121
|
+
children: /* @__PURE__ */ _jsx48(StartingContentSkeleton, {})
|
|
5112
5122
|
});
|
|
5113
|
-
$[
|
|
5114
|
-
$[
|
|
5115
|
-
$[
|
|
5123
|
+
$[37] = isInProgress;
|
|
5124
|
+
$[38] = laterRunSteps_0;
|
|
5125
|
+
$[39] = t10;
|
|
5116
5126
|
} else {
|
|
5117
|
-
t10 = $[
|
|
5127
|
+
t10 = $[39];
|
|
5118
5128
|
}
|
|
5119
5129
|
var t11;
|
|
5120
|
-
if ($[
|
|
5130
|
+
if ($[40] !== className || $[41] !== style || $[42] !== t10 || $[43] !== t4 || $[44] !== t8 || $[45] !== t9) {
|
|
5121
5131
|
t11 = /* @__PURE__ */ _jsxs16(Box9, {
|
|
5122
5132
|
className: className,
|
|
5123
5133
|
style: style,
|
|
@@ -5128,27 +5138,27 @@ var Message = function(t0) {
|
|
|
5128
5138
|
t10
|
|
5129
5139
|
]
|
|
5130
5140
|
});
|
|
5131
|
-
$[
|
|
5132
|
-
$[
|
|
5133
|
-
$[
|
|
5134
|
-
$[
|
|
5135
|
-
$[
|
|
5136
|
-
$[
|
|
5137
|
-
$[
|
|
5141
|
+
$[40] = className;
|
|
5142
|
+
$[41] = style;
|
|
5143
|
+
$[42] = t10;
|
|
5144
|
+
$[43] = t4;
|
|
5145
|
+
$[44] = t8;
|
|
5146
|
+
$[45] = t9;
|
|
5147
|
+
$[46] = t11;
|
|
5138
5148
|
} else {
|
|
5139
|
-
t11 = $[
|
|
5149
|
+
t11 = $[46];
|
|
5140
5150
|
}
|
|
5141
5151
|
var t12;
|
|
5142
|
-
if ($[
|
|
5143
|
-
t12 = /* @__PURE__ */
|
|
5152
|
+
if ($[47] !== t11 || $[48] !== t3) {
|
|
5153
|
+
t12 = /* @__PURE__ */ _jsx48(Provider, {
|
|
5144
5154
|
value: t3,
|
|
5145
5155
|
children: t11
|
|
5146
5156
|
});
|
|
5147
|
-
$[
|
|
5148
|
-
$[
|
|
5149
|
-
$[
|
|
5157
|
+
$[47] = t11;
|
|
5158
|
+
$[48] = t3;
|
|
5159
|
+
$[49] = t12;
|
|
5150
5160
|
} else {
|
|
5151
|
-
t12 = $[
|
|
5161
|
+
t12 = $[49];
|
|
5152
5162
|
}
|
|
5153
5163
|
return t12;
|
|
5154
5164
|
};
|
|
@@ -5161,11 +5171,6 @@ function _temp2(runStep_1) {
|
|
|
5161
5171
|
function _temp3(rs) {
|
|
5162
5172
|
return rs.status === "in_progress";
|
|
5163
5173
|
}
|
|
5164
|
-
function _temp4(content, index) {
|
|
5165
|
-
return /* @__PURE__ */ _jsx47(ContentPart, {
|
|
5166
|
-
content: content
|
|
5167
|
-
}, index);
|
|
5168
|
-
}
|
|
5169
5174
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
5170
5175
|
import { c as _c32 } from "react-compiler-runtime";
|
|
5171
5176
|
import { useEffect as useEffect3 } from "react";
|
|
@@ -5309,13 +5314,13 @@ import { Flex as Flex13, Avatar, Box as Box10, Skeleton as Skeleton2 } from "@ra
|
|
|
5309
5314
|
import { c as _c27 } from "react-compiler-runtime";
|
|
5310
5315
|
import { forwardRef as forwardRef2 } from "react";
|
|
5311
5316
|
import { Flex as Flex11, Container } from "@radix-ui/themes";
|
|
5312
|
-
import { jsx as
|
|
5317
|
+
import { jsx as _jsx49 } from "react/jsx-runtime";
|
|
5313
5318
|
var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
|
|
5314
5319
|
var $ = _c27(5);
|
|
5315
5320
|
var children = t0.children;
|
|
5316
5321
|
var t1;
|
|
5317
5322
|
if ($[0] !== children) {
|
|
5318
|
-
t1 = /* @__PURE__ */
|
|
5323
|
+
t1 = /* @__PURE__ */ _jsx49(Flex11, {
|
|
5319
5324
|
flexShrink: "0",
|
|
5320
5325
|
gap: "3",
|
|
5321
5326
|
children: children
|
|
@@ -5327,7 +5332,7 @@ var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0
|
|
|
5327
5332
|
}
|
|
5328
5333
|
var t2;
|
|
5329
5334
|
if ($[2] !== ref || $[3] !== t1) {
|
|
5330
|
-
t2 = /* @__PURE__ */
|
|
5335
|
+
t2 = /* @__PURE__ */ _jsx49(Container, {
|
|
5331
5336
|
ref: ref,
|
|
5332
5337
|
size: "2",
|
|
5333
5338
|
flexGrow: "0",
|
|
@@ -5343,13 +5348,13 @@ var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0
|
|
|
5343
5348
|
});
|
|
5344
5349
|
// src/components/messageGroups/MessageGroupBase/Name.tsx
|
|
5345
5350
|
import { Flex as Flex12, Text as Text6 } from "@radix-ui/themes";
|
|
5346
|
-
import { jsx as
|
|
5351
|
+
import { jsx as _jsx50 } from "react/jsx-runtime";
|
|
5347
5352
|
var Name = function(_ref) {
|
|
5348
5353
|
var children = _ref.children;
|
|
5349
|
-
return /* @__PURE__ */
|
|
5354
|
+
return /* @__PURE__ */ _jsx50(Flex12, {
|
|
5350
5355
|
align: "center",
|
|
5351
5356
|
height: "var(--space-5)",
|
|
5352
|
-
children: /* @__PURE__ */
|
|
5357
|
+
children: /* @__PURE__ */ _jsx50(Text6, {
|
|
5353
5358
|
size: "2",
|
|
5354
5359
|
weight: "bold",
|
|
5355
5360
|
children: children
|
|
@@ -5357,15 +5362,15 @@ var Name = function(_ref) {
|
|
|
5357
5362
|
});
|
|
5358
5363
|
};
|
|
5359
5364
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
5360
|
-
import { jsx as
|
|
5365
|
+
import { jsx as _jsx51, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
5361
5366
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
5362
5367
|
var $ = _c28(7);
|
|
5363
5368
|
var t0;
|
|
5364
5369
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5365
|
-
t0 = /* @__PURE__ */
|
|
5370
|
+
t0 = /* @__PURE__ */ _jsx51(Skeleton2, {
|
|
5366
5371
|
loading: true,
|
|
5367
|
-
children: /* @__PURE__ */
|
|
5368
|
-
fallback: /* @__PURE__ */
|
|
5372
|
+
children: /* @__PURE__ */ _jsx51(Avatar, {
|
|
5373
|
+
fallback: /* @__PURE__ */ _jsx51(Flex13, {}),
|
|
5369
5374
|
size: "1"
|
|
5370
5375
|
})
|
|
5371
5376
|
});
|
|
@@ -5375,8 +5380,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
5375
5380
|
}
|
|
5376
5381
|
var t1;
|
|
5377
5382
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5378
|
-
t1 = /* @__PURE__ */
|
|
5379
|
-
children: /* @__PURE__ */
|
|
5383
|
+
t1 = /* @__PURE__ */ _jsx51(Name, {
|
|
5384
|
+
children: /* @__PURE__ */ _jsx51(Skeleton2, {
|
|
5380
5385
|
loading: true,
|
|
5381
5386
|
style: {
|
|
5382
5387
|
width: "128px"
|
|
@@ -5389,7 +5394,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
5389
5394
|
}
|
|
5390
5395
|
var t2;
|
|
5391
5396
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5392
|
-
t2 = /* @__PURE__ */
|
|
5397
|
+
t2 = /* @__PURE__ */ _jsx51(Skeleton2, {
|
|
5393
5398
|
loading: true,
|
|
5394
5399
|
style: {
|
|
5395
5400
|
width: "256px"
|
|
@@ -5401,7 +5406,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
5401
5406
|
}
|
|
5402
5407
|
var t3;
|
|
5403
5408
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5404
|
-
t3 = /* @__PURE__ */
|
|
5409
|
+
t3 = /* @__PURE__ */ _jsx51(Skeleton2, {
|
|
5405
5410
|
loading: true,
|
|
5406
5411
|
style: {
|
|
5407
5412
|
width: "256px",
|
|
@@ -5420,7 +5425,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
5420
5425
|
t1,
|
|
5421
5426
|
t2,
|
|
5422
5427
|
t3,
|
|
5423
|
-
/* @__PURE__ */
|
|
5428
|
+
/* @__PURE__ */ _jsx51(Skeleton2, {
|
|
5424
5429
|
loading: true,
|
|
5425
5430
|
style: {
|
|
5426
5431
|
width: "256px",
|
|
@@ -5461,13 +5466,13 @@ import { Flex as Flex14 } from "@radix-ui/themes";
|
|
|
5461
5466
|
import { createContext as createContext8 } from "react";
|
|
5462
5467
|
import { Avatar as Avatar2 } from "@radix-ui/themes";
|
|
5463
5468
|
import { LightningBoltIcon } from "@radix-ui/react-icons";
|
|
5464
|
-
import { jsx as
|
|
5465
|
-
var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */
|
|
5466
|
-
fallback: /* @__PURE__ */
|
|
5469
|
+
import { jsx as _jsx52 } from "react/jsx-runtime";
|
|
5470
|
+
var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx52(Avatar2, {
|
|
5471
|
+
fallback: /* @__PURE__ */ _jsx52(LightningBoltIcon, {}),
|
|
5467
5472
|
size: "1"
|
|
5468
5473
|
}));
|
|
5469
5474
|
// src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
|
|
5470
|
-
import { jsx as
|
|
5475
|
+
import { jsx as _jsx53 } from "react/jsx-runtime";
|
|
5471
5476
|
var AssistantAvatar = function() {
|
|
5472
5477
|
var $ = _c29(3);
|
|
5473
5478
|
var AssistantAvatarContextValue = useContext7(AssistantAvatarContext);
|
|
@@ -5483,7 +5488,7 @@ var AssistantAvatar = function() {
|
|
|
5483
5488
|
}
|
|
5484
5489
|
var t1;
|
|
5485
5490
|
if ($[1] !== AssistantAvatarContextValue) {
|
|
5486
|
-
t1 = /* @__PURE__ */
|
|
5491
|
+
t1 = /* @__PURE__ */ _jsx53(Flex14, {
|
|
5487
5492
|
flexShrink: "0",
|
|
5488
5493
|
height: "24px",
|
|
5489
5494
|
width: "24px",
|
|
@@ -5508,13 +5513,13 @@ import { Flex as Flex15 } from "@radix-ui/themes";
|
|
|
5508
5513
|
import { createContext as createContext10 } from "react";
|
|
5509
5514
|
import { Avatar as Avatar3 } from "@radix-ui/themes";
|
|
5510
5515
|
import { PersonIcon } from "@radix-ui/react-icons";
|
|
5511
|
-
import { jsx as
|
|
5512
|
-
var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */
|
|
5513
|
-
fallback: /* @__PURE__ */
|
|
5516
|
+
import { jsx as _jsx54 } from "react/jsx-runtime";
|
|
5517
|
+
var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx54(Avatar3, {
|
|
5518
|
+
fallback: /* @__PURE__ */ _jsx54(PersonIcon, {}),
|
|
5514
5519
|
size: "1"
|
|
5515
5520
|
}));
|
|
5516
5521
|
// src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
|
|
5517
|
-
import { jsx as
|
|
5522
|
+
import { jsx as _jsx55 } from "react/jsx-runtime";
|
|
5518
5523
|
var UserAvatar = function() {
|
|
5519
5524
|
var $ = _c30(3);
|
|
5520
5525
|
var UserAvatarContextValue = useContext8(UserAvatarContext);
|
|
@@ -5530,7 +5535,7 @@ var UserAvatar = function() {
|
|
|
5530
5535
|
}
|
|
5531
5536
|
var t1;
|
|
5532
5537
|
if ($[1] !== UserAvatarContextValue) {
|
|
5533
|
-
t1 = /* @__PURE__ */
|
|
5538
|
+
t1 = /* @__PURE__ */ _jsx55(Flex15, {
|
|
5534
5539
|
flexShrink: "0",
|
|
5535
5540
|
height: "24px",
|
|
5536
5541
|
width: "24px",
|
|
@@ -5546,27 +5551,27 @@ var UserAvatar = function() {
|
|
|
5546
5551
|
};
|
|
5547
5552
|
// src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
|
|
5548
5553
|
import { Flex as Flex16 } from "@radix-ui/themes";
|
|
5549
|
-
import { jsx as
|
|
5554
|
+
import { jsx as _jsx56 } from "react/jsx-runtime";
|
|
5550
5555
|
var Content5 = function(_ref) {
|
|
5551
5556
|
var messageGroup = _ref.messageGroup;
|
|
5552
|
-
return /* @__PURE__ */
|
|
5557
|
+
return /* @__PURE__ */ _jsx56(Flex16, {
|
|
5553
5558
|
direction: "column-reverse",
|
|
5554
5559
|
children: messageGroup.messages.map(function(message) {
|
|
5555
|
-
return /* @__PURE__ */
|
|
5560
|
+
return /* @__PURE__ */ _jsx56(Message, {
|
|
5556
5561
|
message: message
|
|
5557
5562
|
}, message.id);
|
|
5558
5563
|
})
|
|
5559
5564
|
});
|
|
5560
5565
|
};
|
|
5561
5566
|
// src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
|
|
5562
|
-
import { jsx as
|
|
5567
|
+
import { jsx as _jsx57, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
5563
5568
|
var MessageGroup = function(t0) {
|
|
5564
5569
|
var $ = _c31(12);
|
|
5565
5570
|
var messageGroup = t0.messageGroup;
|
|
5566
5571
|
var assistantNameContext = useContext9(AssistantNameContext);
|
|
5567
5572
|
var t1;
|
|
5568
5573
|
if ($[0] !== messageGroup.role) {
|
|
5569
|
-
t1 = messageGroup.role === "user" ? /* @__PURE__ */
|
|
5574
|
+
t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx57(UserAvatar, {}) : /* @__PURE__ */ _jsx57(AssistantAvatar, {});
|
|
5570
5575
|
$[0] = messageGroup.role;
|
|
5571
5576
|
$[1] = t1;
|
|
5572
5577
|
} else {
|
|
@@ -5575,7 +5580,7 @@ var MessageGroup = function(t0) {
|
|
|
5575
5580
|
var t2 = messageGroup.role === "user" ? "You" : assistantNameContext;
|
|
5576
5581
|
var t3;
|
|
5577
5582
|
if ($[2] !== t2) {
|
|
5578
|
-
t3 = /* @__PURE__ */
|
|
5583
|
+
t3 = /* @__PURE__ */ _jsx57(Name, {
|
|
5579
5584
|
children: t2
|
|
5580
5585
|
});
|
|
5581
5586
|
$[2] = t2;
|
|
@@ -5585,7 +5590,7 @@ var MessageGroup = function(t0) {
|
|
|
5585
5590
|
}
|
|
5586
5591
|
var t4;
|
|
5587
5592
|
if ($[4] !== messageGroup) {
|
|
5588
|
-
t4 = /* @__PURE__ */
|
|
5593
|
+
t4 = /* @__PURE__ */ _jsx57(Content5, {
|
|
5589
5594
|
messageGroup: messageGroup
|
|
5590
5595
|
});
|
|
5591
5596
|
$[4] = messageGroup;
|
|
@@ -5625,7 +5630,7 @@ var MessageGroup = function(t0) {
|
|
|
5625
5630
|
return t6;
|
|
5626
5631
|
};
|
|
5627
5632
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
5628
|
-
import { jsx as
|
|
5633
|
+
import { jsx as _jsx58, Fragment as _Fragment3 } from "react/jsx-runtime";
|
|
5629
5634
|
var Content6 = function() {
|
|
5630
5635
|
var $ = _c32(11);
|
|
5631
5636
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
@@ -5668,7 +5673,7 @@ var Content6 = function() {
|
|
|
5668
5673
|
if (isLoading || isLoadingError) {
|
|
5669
5674
|
var _t;
|
|
5670
5675
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5671
|
-
_t = /* @__PURE__ */
|
|
5676
|
+
_t = /* @__PURE__ */ _jsx58(MessagesSkeleton, {});
|
|
5672
5677
|
$[6] = _t;
|
|
5673
5678
|
} else {
|
|
5674
5679
|
_t = $[6];
|
|
@@ -5677,7 +5682,7 @@ var Content6 = function() {
|
|
|
5677
5682
|
}
|
|
5678
5683
|
var t3;
|
|
5679
5684
|
if ($[7] !== messageGroups2) {
|
|
5680
|
-
t3 = messageGroups2.map(
|
|
5685
|
+
t3 = messageGroups2.map(_temp4);
|
|
5681
5686
|
$[7] = messageGroups2;
|
|
5682
5687
|
$[8] = t3;
|
|
5683
5688
|
} else {
|
|
@@ -5685,7 +5690,7 @@ var Content6 = function() {
|
|
|
5685
5690
|
}
|
|
5686
5691
|
var t4;
|
|
5687
5692
|
if ($[9] !== t3) {
|
|
5688
|
-
t4 = /* @__PURE__ */
|
|
5693
|
+
t4 = /* @__PURE__ */ _jsx58(_Fragment3, {
|
|
5689
5694
|
children: t3
|
|
5690
5695
|
});
|
|
5691
5696
|
$[9] = t3;
|
|
@@ -5695,8 +5700,8 @@ var Content6 = function() {
|
|
|
5695
5700
|
}
|
|
5696
5701
|
return t4;
|
|
5697
5702
|
};
|
|
5698
|
-
function
|
|
5699
|
-
return /* @__PURE__ */
|
|
5703
|
+
function _temp4(messageGroup) {
|
|
5704
|
+
return /* @__PURE__ */ _jsx58(MessageGroup, {
|
|
5700
5705
|
messageGroup: messageGroup
|
|
5701
5706
|
}, messageGroup.id);
|
|
5702
5707
|
}
|
|
@@ -5707,21 +5712,21 @@ import { useMemo as useMemo12 } from "react";
|
|
|
5707
5712
|
import { c as _c33 } from "react-compiler-runtime";
|
|
5708
5713
|
import { useContext as useContext10 } from "react";
|
|
5709
5714
|
import { Box as Box12 } from "@radix-ui/themes";
|
|
5710
|
-
import { jsx as
|
|
5715
|
+
import { jsx as _jsx59, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
5711
5716
|
var StartingSkeleton = function(t0) {
|
|
5712
5717
|
var $ = _c33(7);
|
|
5713
5718
|
var children = t0.children;
|
|
5714
5719
|
var assistantNameContext = useContext10(AssistantNameContext);
|
|
5715
5720
|
var t1;
|
|
5716
5721
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5717
|
-
t1 = /* @__PURE__ */
|
|
5722
|
+
t1 = /* @__PURE__ */ _jsx59(AssistantAvatar, {});
|
|
5718
5723
|
$[0] = t1;
|
|
5719
5724
|
} else {
|
|
5720
5725
|
t1 = $[0];
|
|
5721
5726
|
}
|
|
5722
5727
|
var t2;
|
|
5723
5728
|
if ($[1] !== assistantNameContext) {
|
|
5724
|
-
t2 = /* @__PURE__ */
|
|
5729
|
+
t2 = /* @__PURE__ */ _jsx59(Name, {
|
|
5725
5730
|
children: assistantNameContext
|
|
5726
5731
|
});
|
|
5727
5732
|
$[1] = assistantNameContext;
|
|
@@ -5731,7 +5736,7 @@ var StartingSkeleton = function(t0) {
|
|
|
5731
5736
|
}
|
|
5732
5737
|
var t3;
|
|
5733
5738
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5734
|
-
t3 = /* @__PURE__ */
|
|
5739
|
+
t3 = /* @__PURE__ */ _jsx59(StartingContentSkeleton, {});
|
|
5735
5740
|
$[3] = t3;
|
|
5736
5741
|
} else {
|
|
5737
5742
|
t3 = $[3];
|
|
@@ -5759,7 +5764,7 @@ var StartingSkeleton = function(t0) {
|
|
|
5759
5764
|
return t4;
|
|
5760
5765
|
};
|
|
5761
5766
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
5762
|
-
import { jsx as
|
|
5767
|
+
import { jsx as _jsx60 } from "react/jsx-runtime";
|
|
5763
5768
|
var Progress = function() {
|
|
5764
5769
|
var $ = _c34(1);
|
|
5765
5770
|
var latestMessage = useLatestMessage().latestMessage;
|
|
@@ -5796,7 +5801,7 @@ var Progress = function() {
|
|
|
5796
5801
|
}
|
|
5797
5802
|
var t1;
|
|
5798
5803
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5799
|
-
t1 = /* @__PURE__ */
|
|
5804
|
+
t1 = /* @__PURE__ */ _jsx60(StartingSkeleton, {});
|
|
5800
5805
|
$[0] = t1;
|
|
5801
5806
|
} else {
|
|
5802
5807
|
t1 = $[0];
|
|
@@ -5857,7 +5862,7 @@ var useInfiniteScroll = function(_ref) {
|
|
|
5857
5862
|
};
|
|
5858
5863
|
};
|
|
5859
5864
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
5860
|
-
import { jsx as
|
|
5865
|
+
import { jsx as _jsx61, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
5861
5866
|
function ownKeys26(e, r) {
|
|
5862
5867
|
var t = Object.keys(e);
|
|
5863
5868
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -5940,7 +5945,7 @@ var Root2 = function(t0) {
|
|
|
5940
5945
|
}
|
|
5941
5946
|
var t4;
|
|
5942
5947
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
5943
|
-
t4 = hasNextPage && /* @__PURE__ */
|
|
5948
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx61(Flex17, {
|
|
5944
5949
|
ref: loaderRef
|
|
5945
5950
|
});
|
|
5946
5951
|
$[8] = hasNextPage;
|
|
@@ -5951,7 +5956,7 @@ var Root2 = function(t0) {
|
|
|
5951
5956
|
}
|
|
5952
5957
|
var t5;
|
|
5953
5958
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5954
|
-
t5 = /* @__PURE__ */
|
|
5959
|
+
t5 = /* @__PURE__ */ _jsx61(Flex17, {
|
|
5955
5960
|
flexShrink: "0",
|
|
5956
5961
|
flexGrow: "1"
|
|
5957
5962
|
});
|
|
@@ -5986,7 +5991,7 @@ var Root2 = function(t0) {
|
|
|
5986
5991
|
};
|
|
5987
5992
|
// src/components/threads/Thread/Messages/NextPageSkeleton.tsx
|
|
5988
5993
|
import { c as _c36 } from "react-compiler-runtime";
|
|
5989
|
-
import { jsx as
|
|
5994
|
+
import { jsx as _jsx62 } from "react/jsx-runtime";
|
|
5990
5995
|
var NextPageSkeleton = function() {
|
|
5991
5996
|
var $ = _c36(1);
|
|
5992
5997
|
var hasNextPage = useMessages().hasNextPage;
|
|
@@ -5995,7 +6000,7 @@ var NextPageSkeleton = function() {
|
|
|
5995
6000
|
}
|
|
5996
6001
|
var t0;
|
|
5997
6002
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5998
|
-
t0 = /* @__PURE__ */
|
|
6003
|
+
t0 = /* @__PURE__ */ _jsx62(MessagesSkeleton, {});
|
|
5999
6004
|
$[0] = t0;
|
|
6000
6005
|
} else {
|
|
6001
6006
|
t0 = $[0];
|
|
@@ -6003,22 +6008,22 @@ var NextPageSkeleton = function() {
|
|
|
6003
6008
|
return t0;
|
|
6004
6009
|
};
|
|
6005
6010
|
// src/components/threads/Thread/Messages/index.tsx
|
|
6006
|
-
import { jsx as
|
|
6011
|
+
import { jsx as _jsx63, jsxs as _jsxs21 } from "react/jsx-runtime";
|
|
6007
6012
|
var Messages = function(_ref) {
|
|
6008
6013
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
6009
6014
|
return /* @__PURE__ */ _jsxs21(Root2, {
|
|
6010
6015
|
style: style,
|
|
6011
6016
|
className: className,
|
|
6012
6017
|
children: [
|
|
6013
|
-
/* @__PURE__ */
|
|
6018
|
+
/* @__PURE__ */ _jsx63(Flex18, {
|
|
6014
6019
|
flexShrink: "0",
|
|
6015
6020
|
height: "var(--space-3)"
|
|
6016
6021
|
}),
|
|
6017
|
-
/* @__PURE__ */
|
|
6022
|
+
/* @__PURE__ */ _jsx63(Progress, {}),
|
|
6018
6023
|
children,
|
|
6019
|
-
/* @__PURE__ */
|
|
6020
|
-
/* @__PURE__ */
|
|
6021
|
-
/* @__PURE__ */
|
|
6024
|
+
/* @__PURE__ */ _jsx63(Content6, {}),
|
|
6025
|
+
/* @__PURE__ */ _jsx63(NextPageSkeleton, {}),
|
|
6026
|
+
/* @__PURE__ */ _jsx63(Flex18, {
|
|
6022
6027
|
flexShrink: "0",
|
|
6023
6028
|
flexGrow: "1",
|
|
6024
6029
|
minHeight: "var(--space-5)"
|
|
@@ -6050,7 +6055,7 @@ var useMessageFormContext = function() {
|
|
|
6050
6055
|
return useContext11(MessageFormContext);
|
|
6051
6056
|
};
|
|
6052
6057
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
6053
|
-
import { jsx as
|
|
6058
|
+
import { jsx as _jsx64 } from "react/jsx-runtime";
|
|
6054
6059
|
function ownKeys27(e, r) {
|
|
6055
6060
|
var t = Object.keys(e);
|
|
6056
6061
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -6096,7 +6101,7 @@ function _toPrimitive27(t, r) {
|
|
|
6096
6101
|
}
|
|
6097
6102
|
var Root3 = function(_ref) {
|
|
6098
6103
|
var children = _ref.children, style = _ref.style, className = _ref.className;
|
|
6099
|
-
return /* @__PURE__ */
|
|
6104
|
+
return /* @__PURE__ */ _jsx64(Flex19, {
|
|
6100
6105
|
flexShrink: "0",
|
|
6101
6106
|
align: "end",
|
|
6102
6107
|
style: style,
|
|
@@ -6122,14 +6127,14 @@ var Button3 = function(props) {
|
|
|
6122
6127
|
}
|
|
6123
6128
|
var _t2;
|
|
6124
6129
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6125
|
-
_t2 = /* @__PURE__ */
|
|
6130
|
+
_t2 = /* @__PURE__ */ _jsx64(StopIcon, {});
|
|
6126
6131
|
$[2] = _t2;
|
|
6127
6132
|
} else {
|
|
6128
6133
|
_t2 = $[2];
|
|
6129
6134
|
}
|
|
6130
6135
|
var _t3;
|
|
6131
6136
|
if ($[3] !== props || $[4] !== _t) {
|
|
6132
|
-
_t3 = /* @__PURE__ */
|
|
6137
|
+
_t3 = /* @__PURE__ */ _jsx64(IconButton5, _objectSpread27(_objectSpread27({
|
|
6133
6138
|
type: "button",
|
|
6134
6139
|
onClick: _t
|
|
6135
6140
|
}, props), {}, {
|
|
@@ -6146,14 +6151,14 @@ var Button3 = function(props) {
|
|
|
6146
6151
|
var t0 = isDisabled || isFileLoading;
|
|
6147
6152
|
var t1;
|
|
6148
6153
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6149
|
-
t1 = /* @__PURE__ */
|
|
6154
|
+
t1 = /* @__PURE__ */ _jsx64(ArrowUpIcon2, {});
|
|
6150
6155
|
$[6] = t1;
|
|
6151
6156
|
} else {
|
|
6152
6157
|
t1 = $[6];
|
|
6153
6158
|
}
|
|
6154
6159
|
var t2;
|
|
6155
6160
|
if ($[7] !== props || $[8] !== t0) {
|
|
6156
|
-
t2 = /* @__PURE__ */
|
|
6161
|
+
t2 = /* @__PURE__ */ _jsx64(IconButton5, _objectSpread27(_objectSpread27({
|
|
6157
6162
|
type: "submit",
|
|
6158
6163
|
disabled: t0
|
|
6159
6164
|
}, props), {}, {
|
|
@@ -6168,8 +6173,8 @@ var Button3 = function(props) {
|
|
|
6168
6173
|
return t2;
|
|
6169
6174
|
};
|
|
6170
6175
|
var Submit = function(props) {
|
|
6171
|
-
return /* @__PURE__ */
|
|
6172
|
-
children: /* @__PURE__ */
|
|
6176
|
+
return /* @__PURE__ */ _jsx64(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
|
|
6177
|
+
children: /* @__PURE__ */ _jsx64(Button3, {})
|
|
6173
6178
|
}));
|
|
6174
6179
|
};
|
|
6175
6180
|
Submit.Root = Root3;
|
|
@@ -6190,7 +6195,7 @@ var formOptions = {
|
|
|
6190
6195
|
};
|
|
6191
6196
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
6192
6197
|
import { partob } from "radash";
|
|
6193
|
-
import { jsx as
|
|
6198
|
+
import { jsx as _jsx65 } from "react/jsx-runtime";
|
|
6194
6199
|
function ownKeys28(e, r) {
|
|
6195
6200
|
var t = Object.keys(e);
|
|
6196
6201
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -6350,7 +6355,7 @@ var Root4 = function(_ref) {
|
|
|
6350
6355
|
};
|
|
6351
6356
|
}();
|
|
6352
6357
|
var content = watch("content");
|
|
6353
|
-
return /* @__PURE__ */
|
|
6358
|
+
return /* @__PURE__ */ _jsx65(MessageFormContext.Provider, {
|
|
6354
6359
|
value: {
|
|
6355
6360
|
isDisabled: isDisabled,
|
|
6356
6361
|
isLoading: isLoading,
|
|
@@ -6359,13 +6364,13 @@ var Root4 = function(_ref) {
|
|
|
6359
6364
|
isFileLoading: isFileLoading,
|
|
6360
6365
|
content: content
|
|
6361
6366
|
},
|
|
6362
|
-
children: /* @__PURE__ */
|
|
6363
|
-
children: /* @__PURE__ */
|
|
6367
|
+
children: /* @__PURE__ */ _jsx65(FormProvider, _objectSpread28(_objectSpread28({}, formProps), {}, {
|
|
6368
|
+
children: /* @__PURE__ */ _jsx65(Box13, {
|
|
6364
6369
|
asChild: true,
|
|
6365
6370
|
flexShrink: "0",
|
|
6366
6371
|
style: style,
|
|
6367
6372
|
className: className,
|
|
6368
|
-
children: /* @__PURE__ */
|
|
6373
|
+
children: /* @__PURE__ */ _jsx65("form", {
|
|
6369
6374
|
onSubmit: handleSubmit(onSubmit),
|
|
6370
6375
|
children: children
|
|
6371
6376
|
})
|
|
@@ -6394,7 +6399,7 @@ import { useContext as useContext12, useMemo as useMemo14, useRef as useRef5, us
|
|
|
6394
6399
|
import { c as _c38 } from "react-compiler-runtime";
|
|
6395
6400
|
import { forwardRef as forwardRef4 } from "react";
|
|
6396
6401
|
import TextareaAutosize from "react-textarea-autosize";
|
|
6397
|
-
import { jsx as
|
|
6402
|
+
import { jsx as _jsx66, Fragment as _Fragment4, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
6398
6403
|
var _excluded3 = [
|
|
6399
6404
|
"style",
|
|
6400
6405
|
"className"
|
|
@@ -6483,7 +6488,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
6483
6488
|
}
|
|
6484
6489
|
var t1;
|
|
6485
6490
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
6486
|
-
t1 = /* @__PURE__ */
|
|
6491
|
+
t1 = /* @__PURE__ */ _jsx66("style", {
|
|
6487
6492
|
children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
|
|
6488
6493
|
});
|
|
6489
6494
|
$[4] = t1;
|
|
@@ -6518,10 +6523,10 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
6518
6523
|
}
|
|
6519
6524
|
var t5;
|
|
6520
6525
|
if ($[9] !== ref || $[10] !== rest || $[11] !== t2 || $[12] !== t4) {
|
|
6521
|
-
t5 = /* @__PURE__ */ _jsxs22(
|
|
6526
|
+
t5 = /* @__PURE__ */ _jsxs22(_Fragment4, {
|
|
6522
6527
|
children: [
|
|
6523
6528
|
t1,
|
|
6524
|
-
/* @__PURE__ */
|
|
6529
|
+
/* @__PURE__ */ _jsx66(TextareaAutosize, _objectSpread29({
|
|
6525
6530
|
ref: ref,
|
|
6526
6531
|
className: t2,
|
|
6527
6532
|
style: t4
|
|
@@ -6539,7 +6544,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
6539
6544
|
return t5;
|
|
6540
6545
|
});
|
|
6541
6546
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
6542
|
-
import { jsx as
|
|
6547
|
+
import { jsx as _jsx67 } from "react/jsx-runtime";
|
|
6543
6548
|
function ownKeys30(e, r) {
|
|
6544
6549
|
var t = Object.keys(e);
|
|
6545
6550
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -6585,7 +6590,7 @@ function _toPrimitive30(t, r) {
|
|
|
6585
6590
|
}
|
|
6586
6591
|
var Root5 = function(_ref) {
|
|
6587
6592
|
var children = _ref.children, style = _ref.style, className = _ref.className;
|
|
6588
|
-
return /* @__PURE__ */
|
|
6593
|
+
return /* @__PURE__ */ _jsx67(Flex20, {
|
|
6589
6594
|
flexGrow: "1",
|
|
6590
6595
|
pt: "4px",
|
|
6591
6596
|
style: style,
|
|
@@ -6618,7 +6623,7 @@ var Input = function(props) {
|
|
|
6618
6623
|
isDisabledPrevious,
|
|
6619
6624
|
textareaProps
|
|
6620
6625
|
]);
|
|
6621
|
-
return /* @__PURE__ */
|
|
6626
|
+
return /* @__PURE__ */ _jsx67(TextareaBase, _objectSpread30(_objectSpread30(_objectSpread30({
|
|
6622
6627
|
minRows: 1,
|
|
6623
6628
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
6624
6629
|
disabled: isDisabled,
|
|
@@ -6638,8 +6643,8 @@ var Input = function(props) {
|
|
|
6638
6643
|
}));
|
|
6639
6644
|
};
|
|
6640
6645
|
var Control = function(props) {
|
|
6641
|
-
return /* @__PURE__ */
|
|
6642
|
-
children: /* @__PURE__ */
|
|
6646
|
+
return /* @__PURE__ */ _jsx67(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
|
|
6647
|
+
children: /* @__PURE__ */ _jsx67(Input, {})
|
|
6643
6648
|
}));
|
|
6644
6649
|
};
|
|
6645
6650
|
Control.Root = Root5;
|
|
@@ -6648,7 +6653,7 @@ Control.Input = Input;
|
|
|
6648
6653
|
import { c as _c39 } from "react-compiler-runtime";
|
|
6649
6654
|
import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
6650
6655
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
6651
|
-
import { jsx as
|
|
6656
|
+
import { jsx as _jsx68, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
6652
6657
|
function ownKeys31(e, r) {
|
|
6653
6658
|
var t = Object.keys(e);
|
|
6654
6659
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -6703,7 +6708,7 @@ var Preview = function(props) {
|
|
|
6703
6708
|
var _t;
|
|
6704
6709
|
if ($[3] !== setFiles) {
|
|
6705
6710
|
_t = function(file) {
|
|
6706
|
-
return /* @__PURE__ */
|
|
6711
|
+
return /* @__PURE__ */ _jsx68(Card2, {
|
|
6707
6712
|
variant: "ghost",
|
|
6708
6713
|
children: /* @__PURE__ */ _jsxs23(Flex21, {
|
|
6709
6714
|
align: "center",
|
|
@@ -6717,16 +6722,16 @@ var Preview = function(props) {
|
|
|
6717
6722
|
minWidth: "0",
|
|
6718
6723
|
maxWidth: "250px",
|
|
6719
6724
|
children: [
|
|
6720
|
-
/* @__PURE__ */
|
|
6725
|
+
/* @__PURE__ */ _jsx68(Flex21, {
|
|
6721
6726
|
flexShrink: "0",
|
|
6722
|
-
children: /* @__PURE__ */
|
|
6727
|
+
children: /* @__PURE__ */ _jsx68(Spinner2, {
|
|
6723
6728
|
loading: isOptimistic({
|
|
6724
6729
|
id: file.id
|
|
6725
6730
|
}),
|
|
6726
|
-
children: /* @__PURE__ */
|
|
6731
|
+
children: /* @__PURE__ */ _jsx68(FileIcon2, {})
|
|
6727
6732
|
})
|
|
6728
6733
|
}),
|
|
6729
|
-
/* @__PURE__ */
|
|
6734
|
+
/* @__PURE__ */ _jsx68(Text7, {
|
|
6730
6735
|
size: "2",
|
|
6731
6736
|
truncate: true,
|
|
6732
6737
|
wrap: "nowrap",
|
|
@@ -6734,9 +6739,9 @@ var Preview = function(props) {
|
|
|
6734
6739
|
})
|
|
6735
6740
|
]
|
|
6736
6741
|
}),
|
|
6737
|
-
/* @__PURE__ */
|
|
6742
|
+
/* @__PURE__ */ _jsx68(Flex21, {
|
|
6738
6743
|
flexShrink: "0",
|
|
6739
|
-
children: /* @__PURE__ */
|
|
6744
|
+
children: /* @__PURE__ */ _jsx68(IconButton6, {
|
|
6740
6745
|
onClick: function() {
|
|
6741
6746
|
return setFiles(function(prev) {
|
|
6742
6747
|
return prev.filter(function(prevFile) {
|
|
@@ -6747,7 +6752,7 @@ var Preview = function(props) {
|
|
|
6747
6752
|
color: "gray",
|
|
6748
6753
|
variant: "ghost",
|
|
6749
6754
|
size: "1",
|
|
6750
|
-
children: /* @__PURE__ */
|
|
6755
|
+
children: /* @__PURE__ */ _jsx68(Cross2Icon, {})
|
|
6751
6756
|
})
|
|
6752
6757
|
})
|
|
6753
6758
|
]
|
|
@@ -6768,7 +6773,7 @@ var Preview = function(props) {
|
|
|
6768
6773
|
}
|
|
6769
6774
|
var t1;
|
|
6770
6775
|
if ($[5] !== props || $[6] !== t0) {
|
|
6771
|
-
t1 = /* @__PURE__ */
|
|
6776
|
+
t1 = /* @__PURE__ */ _jsx68(Flex21, _objectSpread31(_objectSpread31({
|
|
6772
6777
|
flexBasis: "100%",
|
|
6773
6778
|
direction: "column",
|
|
6774
6779
|
pb: "2",
|
|
@@ -7031,7 +7036,7 @@ var useCreateFile = function(t0) {
|
|
|
7031
7036
|
var t1;
|
|
7032
7037
|
if ($[0] !== t0) {
|
|
7033
7038
|
t1 = t0 === void 0 ? {
|
|
7034
|
-
onError:
|
|
7039
|
+
onError: _temp5
|
|
7035
7040
|
} : t0;
|
|
7036
7041
|
$[0] = t0;
|
|
7037
7042
|
$[1] = t1;
|
|
@@ -7100,10 +7105,10 @@ var useCreateFile = function(t0) {
|
|
|
7100
7105
|
}
|
|
7101
7106
|
return t6;
|
|
7102
7107
|
};
|
|
7103
|
-
function
|
|
7108
|
+
function _temp5() {}
|
|
7104
7109
|
function _temp22() {}
|
|
7105
7110
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
7106
|
-
import { jsx as
|
|
7111
|
+
import { jsx as _jsx69, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
7107
7112
|
function ownKeys35(e, r) {
|
|
7108
7113
|
var t = Object.keys(e);
|
|
7109
7114
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7384,7 +7389,7 @@ var Control2 = function(props) {
|
|
|
7384
7389
|
createFile,
|
|
7385
7390
|
setFiles
|
|
7386
7391
|
]);
|
|
7387
|
-
return /* @__PURE__ */
|
|
7392
|
+
return /* @__PURE__ */ _jsx69(Flex22, _objectSpread35(_objectSpread35({
|
|
7388
7393
|
pt: "2",
|
|
7389
7394
|
pr: "2",
|
|
7390
7395
|
flexGrow: "0"
|
|
@@ -7399,8 +7404,8 @@ var Control2 = function(props) {
|
|
|
7399
7404
|
overflow: "hidden"
|
|
7400
7405
|
},
|
|
7401
7406
|
children: [
|
|
7402
|
-
/* @__PURE__ */
|
|
7403
|
-
/* @__PURE__ */
|
|
7407
|
+
/* @__PURE__ */ _jsx69(FilePlusIcon, {}),
|
|
7408
|
+
/* @__PURE__ */ _jsx69("input", {
|
|
7404
7409
|
type: "file",
|
|
7405
7410
|
multiple: true,
|
|
7406
7411
|
accept: accept,
|
|
@@ -7425,7 +7430,7 @@ var Files = {
|
|
|
7425
7430
|
Control: Control2
|
|
7426
7431
|
};
|
|
7427
7432
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
7428
|
-
import { jsx as
|
|
7433
|
+
import { jsx as _jsx70 } from "react/jsx-runtime";
|
|
7429
7434
|
function ownKeys36(e, r) {
|
|
7430
7435
|
var t = Object.keys(e);
|
|
7431
7436
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7473,18 +7478,18 @@ var Root6 = function(_ref) {
|
|
|
7473
7478
|
"use no memo";
|
|
7474
7479
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
7475
7480
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
7476
|
-
return /* @__PURE__ */
|
|
7481
|
+
return /* @__PURE__ */ _jsx70(RadixContainer, {
|
|
7477
7482
|
size: "2",
|
|
7478
7483
|
flexGrow: "0",
|
|
7479
7484
|
className: className,
|
|
7480
7485
|
style: style,
|
|
7481
|
-
children: /* @__PURE__ */
|
|
7486
|
+
children: /* @__PURE__ */ _jsx70(Flex23, {
|
|
7482
7487
|
direction: "column",
|
|
7483
7488
|
flexShrink: "0",
|
|
7484
|
-
children: /* @__PURE__ */
|
|
7489
|
+
children: /* @__PURE__ */ _jsx70(Flex23, {
|
|
7485
7490
|
direction: "column",
|
|
7486
7491
|
flexShrink: "0",
|
|
7487
|
-
children: /* @__PURE__ */
|
|
7492
|
+
children: /* @__PURE__ */ _jsx70(Flex23, {
|
|
7488
7493
|
style: _objectSpread36({
|
|
7489
7494
|
borderRadius: "var(--radius-2)",
|
|
7490
7495
|
borderWidth: "1px",
|
|
@@ -7508,7 +7513,7 @@ var Field = {
|
|
|
7508
7513
|
Files: Files
|
|
7509
7514
|
};
|
|
7510
7515
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
7511
|
-
import { jsx as
|
|
7516
|
+
import { jsx as _jsx71, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
7512
7517
|
function ownKeys37(e, r) {
|
|
7513
7518
|
var t = Object.keys(e);
|
|
7514
7519
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7553,11 +7558,11 @@ function _toPrimitive37(t, r) {
|
|
|
7553
7558
|
return ("string" === r ? String : Number)(t);
|
|
7554
7559
|
}
|
|
7555
7560
|
var MessageForm = function(props) {
|
|
7556
|
-
return /* @__PURE__ */
|
|
7561
|
+
return /* @__PURE__ */ _jsx71(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
|
|
7557
7562
|
children: /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
7558
7563
|
children: [
|
|
7559
|
-
/* @__PURE__ */
|
|
7560
|
-
/* @__PURE__ */
|
|
7564
|
+
/* @__PURE__ */ _jsx71(Field.Control, {}),
|
|
7565
|
+
/* @__PURE__ */ _jsx71(Submit, {})
|
|
7561
7566
|
]
|
|
7562
7567
|
})
|
|
7563
7568
|
}));
|
|
@@ -7577,25 +7582,25 @@ import * as Toast2 from "@radix-ui/react-toast";
|
|
|
7577
7582
|
import * as Toast from "@radix-ui/react-toast";
|
|
7578
7583
|
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
7579
7584
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
7580
|
-
import { jsx as
|
|
7585
|
+
import { jsx as _jsx72, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
7581
7586
|
var CustomToast = function(_ref) {
|
|
7582
7587
|
var toast = _ref.toast;
|
|
7583
|
-
return /* @__PURE__ */
|
|
7584
|
-
children: /* @__PURE__ */
|
|
7585
|
-
children: /* @__PURE__ */
|
|
7588
|
+
return /* @__PURE__ */ _jsx72(Toast.Root, {
|
|
7589
|
+
children: /* @__PURE__ */ _jsx72(Card3, {
|
|
7590
|
+
children: /* @__PURE__ */ _jsx72(Toast.Title, {
|
|
7586
7591
|
children: /* @__PURE__ */ _jsxs26(Flex24, {
|
|
7587
7592
|
children: [
|
|
7588
|
-
/* @__PURE__ */
|
|
7593
|
+
/* @__PURE__ */ _jsx72(Flex24, {
|
|
7589
7594
|
pr: "2",
|
|
7590
7595
|
height: "14px",
|
|
7591
7596
|
align: "center",
|
|
7592
|
-
children: toast.type === "success" ? /* @__PURE__ */
|
|
7597
|
+
children: toast.type === "success" ? /* @__PURE__ */ _jsx72(CheckCircledIcon2, {
|
|
7593
7598
|
color: "var(--accent-9)"
|
|
7594
|
-
}) : /* @__PURE__ */
|
|
7599
|
+
}) : /* @__PURE__ */ _jsx72(CrossCircledIcon, {
|
|
7595
7600
|
color: "var(--red-9)"
|
|
7596
7601
|
})
|
|
7597
7602
|
}),
|
|
7598
|
-
/* @__PURE__ */
|
|
7603
|
+
/* @__PURE__ */ _jsx72(Text8, {
|
|
7599
7604
|
weight: "medium",
|
|
7600
7605
|
size: "1",
|
|
7601
7606
|
children: toast.message
|
|
@@ -7607,7 +7612,7 @@ var CustomToast = function(_ref) {
|
|
|
7607
7612
|
});
|
|
7608
7613
|
};
|
|
7609
7614
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
7610
|
-
import { jsx as
|
|
7615
|
+
import { jsx as _jsx73, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
7611
7616
|
var ToastsProvider = function(t0) {
|
|
7612
7617
|
var $ = _c41(15);
|
|
7613
7618
|
var children = t0.children, t1 = t0.bottom;
|
|
@@ -7647,7 +7652,7 @@ var ToastsProvider = function(t0) {
|
|
|
7647
7652
|
}
|
|
7648
7653
|
var t5;
|
|
7649
7654
|
if ($[4] !== toasts) {
|
|
7650
|
-
t5 = Array.from(toasts).map(
|
|
7655
|
+
t5 = Array.from(toasts).map(_temp6);
|
|
7651
7656
|
$[4] = toasts;
|
|
7652
7657
|
$[5] = t5;
|
|
7653
7658
|
} else {
|
|
@@ -7655,7 +7660,7 @@ var ToastsProvider = function(t0) {
|
|
|
7655
7660
|
}
|
|
7656
7661
|
var t6;
|
|
7657
7662
|
if ($[6] !== bottom) {
|
|
7658
|
-
t6 = /* @__PURE__ */
|
|
7663
|
+
t6 = /* @__PURE__ */ _jsx73(Toast2.Viewport, {
|
|
7659
7664
|
style: {
|
|
7660
7665
|
position: "absolute",
|
|
7661
7666
|
bottom: bottom,
|
|
@@ -7695,7 +7700,7 @@ var ToastsProvider = function(t0) {
|
|
|
7695
7700
|
}
|
|
7696
7701
|
var t8;
|
|
7697
7702
|
if ($[12] !== t4 || $[13] !== t7) {
|
|
7698
|
-
t8 = /* @__PURE__ */
|
|
7703
|
+
t8 = /* @__PURE__ */ _jsx73(ToastsContext.Provider, {
|
|
7699
7704
|
value: t4,
|
|
7700
7705
|
children: t7
|
|
7701
7706
|
});
|
|
@@ -7707,13 +7712,13 @@ var ToastsProvider = function(t0) {
|
|
|
7707
7712
|
}
|
|
7708
7713
|
return t8;
|
|
7709
7714
|
};
|
|
7710
|
-
function
|
|
7711
|
-
return /* @__PURE__ */
|
|
7715
|
+
function _temp6(toast_0, index) {
|
|
7716
|
+
return /* @__PURE__ */ _jsx73(CustomToast, {
|
|
7712
7717
|
toast: toast_0
|
|
7713
7718
|
}, index);
|
|
7714
7719
|
}
|
|
7715
7720
|
// src/components/threads/Thread/Root/index.tsx
|
|
7716
|
-
import { jsx as
|
|
7721
|
+
import { jsx as _jsx74 } from "react/jsx-runtime";
|
|
7717
7722
|
var _excluded4 = [
|
|
7718
7723
|
"children",
|
|
7719
7724
|
"style",
|
|
@@ -7782,10 +7787,10 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
7782
7787
|
}
|
|
7783
7788
|
var Root8 = function(_ref) {
|
|
7784
7789
|
var children = _ref.children, style = _ref.style, className = _ref.className, rest = _objectWithoutProperties4(_ref, _excluded4);
|
|
7785
|
-
return /* @__PURE__ */
|
|
7790
|
+
return /* @__PURE__ */ _jsx74(ToastsProvider, {
|
|
7786
7791
|
bottom: "var(--space-9)",
|
|
7787
|
-
children: /* @__PURE__ */
|
|
7788
|
-
children: /* @__PURE__ */
|
|
7792
|
+
children: /* @__PURE__ */ _jsx74(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
|
|
7793
|
+
children: /* @__PURE__ */ _jsx74(Flex25, {
|
|
7789
7794
|
direction: "column",
|
|
7790
7795
|
flexGrow: "1",
|
|
7791
7796
|
className: className,
|
|
@@ -7796,7 +7801,7 @@ var Root8 = function(_ref) {
|
|
|
7796
7801
|
});
|
|
7797
7802
|
};
|
|
7798
7803
|
// src/components/threads/Thread/index.tsx
|
|
7799
|
-
import { jsx as
|
|
7804
|
+
import { jsx as _jsx75, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
7800
7805
|
function ownKeys39(e, r) {
|
|
7801
7806
|
var t = Object.keys(e);
|
|
7802
7807
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7843,8 +7848,8 @@ function _toPrimitive39(t, r) {
|
|
|
7843
7848
|
var Thread = function(props) {
|
|
7844
7849
|
return /* @__PURE__ */ _jsxs28(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
|
|
7845
7850
|
children: [
|
|
7846
|
-
/* @__PURE__ */
|
|
7847
|
-
/* @__PURE__ */
|
|
7851
|
+
/* @__PURE__ */ _jsx75(Messages, {}),
|
|
7852
|
+
/* @__PURE__ */ _jsx75(MessageForm, {})
|
|
7848
7853
|
]
|
|
7849
7854
|
}));
|
|
7850
7855
|
};
|
|
@@ -8054,7 +8059,7 @@ var useThreadDialogContext = function() {
|
|
|
8054
8059
|
return useContext14(ThreadDialogContext);
|
|
8055
8060
|
};
|
|
8056
8061
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
8057
|
-
import { jsx as
|
|
8062
|
+
import { jsx as _jsx76 } from "react/jsx-runtime";
|
|
8058
8063
|
var Provider4 = function(t0) {
|
|
8059
8064
|
var $ = _c43(5);
|
|
8060
8065
|
var children = t0.children;
|
|
@@ -8073,7 +8078,7 @@ var Provider4 = function(t0) {
|
|
|
8073
8078
|
}
|
|
8074
8079
|
var t2;
|
|
8075
8080
|
if ($[2] !== children || $[3] !== t1) {
|
|
8076
|
-
t2 = /* @__PURE__ */
|
|
8081
|
+
t2 = /* @__PURE__ */ _jsx76(ThreadDialogContext.Provider, {
|
|
8077
8082
|
value: t1,
|
|
8078
8083
|
children: children
|
|
8079
8084
|
});
|
|
@@ -8086,10 +8091,10 @@ var Provider4 = function(t0) {
|
|
|
8086
8091
|
return t2;
|
|
8087
8092
|
};
|
|
8088
8093
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
8089
|
-
import { jsx as
|
|
8094
|
+
import { jsx as _jsx77 } from "react/jsx-runtime";
|
|
8090
8095
|
var Root9 = function(_ref) {
|
|
8091
8096
|
var children = _ref.children;
|
|
8092
|
-
return /* @__PURE__ */
|
|
8097
|
+
return /* @__PURE__ */ _jsx77(Provider4, {
|
|
8093
8098
|
children: children
|
|
8094
8099
|
});
|
|
8095
8100
|
};
|
|
@@ -8099,7 +8104,7 @@ import { Flex as Flex26 } from "@radix-ui/themes";
|
|
|
8099
8104
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
8100
8105
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
8101
8106
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
8102
|
-
import { jsx as
|
|
8107
|
+
import { jsx as _jsx78 } from "react/jsx-runtime";
|
|
8103
8108
|
function ownKeys41(e, r) {
|
|
8104
8109
|
var t = Object.keys(e);
|
|
8105
8110
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -8144,15 +8149,15 @@ function _toPrimitive41(t, r) {
|
|
|
8144
8149
|
return ("string" === r ? String : Number)(t);
|
|
8145
8150
|
}
|
|
8146
8151
|
var Button4 = function(props) {
|
|
8147
|
-
return /* @__PURE__ */
|
|
8152
|
+
return /* @__PURE__ */ _jsx78(IconButton8, _objectSpread41(_objectSpread41({
|
|
8148
8153
|
size: "4",
|
|
8149
8154
|
radius: "full"
|
|
8150
8155
|
}, props), {}, {
|
|
8151
|
-
children: /* @__PURE__ */
|
|
8156
|
+
children: /* @__PURE__ */ _jsx78(ChatBubbleIcon, {})
|
|
8152
8157
|
}));
|
|
8153
8158
|
};
|
|
8154
8159
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
8155
|
-
import { jsx as
|
|
8160
|
+
import { jsx as _jsx79 } from "react/jsx-runtime";
|
|
8156
8161
|
function ownKeys42(e, r) {
|
|
8157
8162
|
var t = Object.keys(e);
|
|
8158
8163
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -8215,7 +8220,7 @@ var Root10 = function(t0) {
|
|
|
8215
8220
|
var t3;
|
|
8216
8221
|
if ($[2] !== setIsOpen) {
|
|
8217
8222
|
t3 = function() {
|
|
8218
|
-
return setIsOpen(
|
|
8223
|
+
return setIsOpen(_temp7);
|
|
8219
8224
|
};
|
|
8220
8225
|
$[2] = setIsOpen;
|
|
8221
8226
|
$[3] = t3;
|
|
@@ -8242,7 +8247,7 @@ var Root10 = function(t0) {
|
|
|
8242
8247
|
}
|
|
8243
8248
|
var t6;
|
|
8244
8249
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
8245
|
-
t6 = /* @__PURE__ */
|
|
8250
|
+
t6 = /* @__PURE__ */ _jsx79(Flex26, {
|
|
8246
8251
|
display: t2,
|
|
8247
8252
|
onClick: t3,
|
|
8248
8253
|
direction: "column",
|
|
@@ -8268,13 +8273,13 @@ var Root10 = function(t0) {
|
|
|
8268
8273
|
return t6;
|
|
8269
8274
|
};
|
|
8270
8275
|
var Trigger = function(args) {
|
|
8271
|
-
return /* @__PURE__ */
|
|
8272
|
-
children: /* @__PURE__ */
|
|
8276
|
+
return /* @__PURE__ */ _jsx79(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
|
|
8277
|
+
children: /* @__PURE__ */ _jsx79(Button4, {})
|
|
8273
8278
|
}));
|
|
8274
8279
|
};
|
|
8275
8280
|
Trigger.Root = Root10;
|
|
8276
8281
|
Trigger.Button = Button4;
|
|
8277
|
-
function
|
|
8282
|
+
function _temp7(prev) {
|
|
8278
8283
|
return !prev;
|
|
8279
8284
|
}
|
|
8280
8285
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
@@ -8284,7 +8289,7 @@ import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes
|
|
|
8284
8289
|
import { c as _c45 } from "react-compiler-runtime";
|
|
8285
8290
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
8286
8291
|
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
8287
|
-
import { jsx as
|
|
8292
|
+
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
8288
8293
|
var Close = function() {
|
|
8289
8294
|
var $ = _c45(9);
|
|
8290
8295
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
@@ -8303,7 +8308,7 @@ var Close = function() {
|
|
|
8303
8308
|
var t2;
|
|
8304
8309
|
if ($[2] !== setIsOpen) {
|
|
8305
8310
|
t2 = function() {
|
|
8306
|
-
return setIsOpen(
|
|
8311
|
+
return setIsOpen(_temp8);
|
|
8307
8312
|
};
|
|
8308
8313
|
$[2] = setIsOpen;
|
|
8309
8314
|
$[3] = t2;
|
|
@@ -8321,10 +8326,10 @@ var Close = function() {
|
|
|
8321
8326
|
}
|
|
8322
8327
|
var t4;
|
|
8323
8328
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8324
|
-
t4 = /* @__PURE__ */
|
|
8329
|
+
t4 = /* @__PURE__ */ _jsx80(IconButton9, {
|
|
8325
8330
|
size: "2",
|
|
8326
8331
|
variant: "soft",
|
|
8327
|
-
children: /* @__PURE__ */
|
|
8332
|
+
children: /* @__PURE__ */ _jsx80(Cross1Icon, {})
|
|
8328
8333
|
});
|
|
8329
8334
|
$[5] = t4;
|
|
8330
8335
|
} else {
|
|
@@ -8332,7 +8337,7 @@ var Close = function() {
|
|
|
8332
8337
|
}
|
|
8333
8338
|
var t5;
|
|
8334
8339
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
8335
|
-
t5 = /* @__PURE__ */
|
|
8340
|
+
t5 = /* @__PURE__ */ _jsx80(Flex27, {
|
|
8336
8341
|
display: t1,
|
|
8337
8342
|
onClick: t2,
|
|
8338
8343
|
direction: "column",
|
|
@@ -8353,11 +8358,11 @@ var Close = function() {
|
|
|
8353
8358
|
}
|
|
8354
8359
|
return t5;
|
|
8355
8360
|
};
|
|
8356
|
-
function
|
|
8361
|
+
function _temp8(prev) {
|
|
8357
8362
|
return !prev;
|
|
8358
8363
|
}
|
|
8359
8364
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
8360
|
-
import { jsx as
|
|
8365
|
+
import { jsx as _jsx81, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
8361
8366
|
function ownKeys43(e, r) {
|
|
8362
8367
|
var t = Object.keys(e);
|
|
8363
8368
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -8489,7 +8494,7 @@ var Root11 = function(t0) {
|
|
|
8489
8494
|
}
|
|
8490
8495
|
var t10;
|
|
8491
8496
|
if ($[10] !== children) {
|
|
8492
|
-
t10 = /* @__PURE__ */
|
|
8497
|
+
t10 = /* @__PURE__ */ _jsx81(Inset2, {
|
|
8493
8498
|
clip: "padding-box",
|
|
8494
8499
|
side: "all",
|
|
8495
8500
|
pb: "current",
|
|
@@ -8503,7 +8508,7 @@ var Root11 = function(t0) {
|
|
|
8503
8508
|
}
|
|
8504
8509
|
var t11;
|
|
8505
8510
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8506
|
-
t11 = /* @__PURE__ */
|
|
8511
|
+
t11 = /* @__PURE__ */ _jsx81(Close, {});
|
|
8507
8512
|
$[12] = t11;
|
|
8508
8513
|
} else {
|
|
8509
8514
|
t11 = $[12];
|
|
@@ -8525,7 +8530,7 @@ var Root11 = function(t0) {
|
|
|
8525
8530
|
}
|
|
8526
8531
|
var t13;
|
|
8527
8532
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
8528
|
-
t13 = /* @__PURE__ */
|
|
8533
|
+
t13 = /* @__PURE__ */ _jsx81(Flex28, {
|
|
8529
8534
|
className: className,
|
|
8530
8535
|
direction: "column",
|
|
8531
8536
|
justify: "end",
|
|
@@ -8550,7 +8555,7 @@ var Root11 = function(t0) {
|
|
|
8550
8555
|
};
|
|
8551
8556
|
var Messages2 = function(_ref) {
|
|
8552
8557
|
var className = _ref.className, style = _ref.style;
|
|
8553
|
-
return /* @__PURE__ */
|
|
8558
|
+
return /* @__PURE__ */ _jsx81(Thread.Messages, {
|
|
8554
8559
|
className: className,
|
|
8555
8560
|
style: _objectSpread43({
|
|
8556
8561
|
paddingTop: "var(--space-5)",
|
|
@@ -8561,7 +8566,7 @@ var Messages2 = function(_ref) {
|
|
|
8561
8566
|
};
|
|
8562
8567
|
var FormContainer = function(_ref2) {
|
|
8563
8568
|
var children = _ref2.children, className = _ref2.className, style = _ref2.style;
|
|
8564
|
-
return /* @__PURE__ */
|
|
8569
|
+
return /* @__PURE__ */ _jsx81(Flex28, {
|
|
8565
8570
|
direction: "column",
|
|
8566
8571
|
pl: "5",
|
|
8567
8572
|
pr: "5",
|
|
@@ -8573,12 +8578,12 @@ var FormContainer = function(_ref2) {
|
|
|
8573
8578
|
});
|
|
8574
8579
|
};
|
|
8575
8580
|
var Content7 = function(props) {
|
|
8576
|
-
return /* @__PURE__ */
|
|
8581
|
+
return /* @__PURE__ */ _jsx81(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
|
|
8577
8582
|
children: /* @__PURE__ */ _jsxs29(Thread.Root, {
|
|
8578
8583
|
children: [
|
|
8579
|
-
/* @__PURE__ */
|
|
8580
|
-
/* @__PURE__ */
|
|
8581
|
-
children: /* @__PURE__ */
|
|
8584
|
+
/* @__PURE__ */ _jsx81(Messages2, {}),
|
|
8585
|
+
/* @__PURE__ */ _jsx81(FormContainer, {
|
|
8586
|
+
children: /* @__PURE__ */ _jsx81(Thread.MessageForm, {})
|
|
8582
8587
|
})
|
|
8583
8588
|
]
|
|
8584
8589
|
})
|
|
@@ -8588,12 +8593,12 @@ Content7.Root = Root11;
|
|
|
8588
8593
|
Content7.Messages = Messages2;
|
|
8589
8594
|
Content7.FormContainer = FormContainer;
|
|
8590
8595
|
// src/components/threads/ThreadDialog/index.tsx
|
|
8591
|
-
import { jsx as
|
|
8596
|
+
import { jsx as _jsx82, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
8592
8597
|
var ThreadDialog = function() {
|
|
8593
8598
|
return /* @__PURE__ */ _jsxs30(Root9, {
|
|
8594
8599
|
children: [
|
|
8595
|
-
/* @__PURE__ */
|
|
8596
|
-
/* @__PURE__ */
|
|
8600
|
+
/* @__PURE__ */ _jsx82(Content7, {}),
|
|
8601
|
+
/* @__PURE__ */ _jsx82(Trigger, {})
|
|
8597
8602
|
]
|
|
8598
8603
|
});
|
|
8599
8604
|
};
|
|
@@ -8696,7 +8701,7 @@ import { c as _c48 } from "react-compiler-runtime";
|
|
|
8696
8701
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
8697
8702
|
var useInterval = function(callback, delay) {
|
|
8698
8703
|
var $ = _c48(5);
|
|
8699
|
-
var savedCallback = useRef6(
|
|
8704
|
+
var savedCallback = useRef6(_temp9);
|
|
8700
8705
|
var t0;
|
|
8701
8706
|
if ($[0] !== callback) {
|
|
8702
8707
|
t0 = function() {
|
|
@@ -8733,7 +8738,7 @@ var useInterval = function(callback, delay) {
|
|
|
8733
8738
|
}
|
|
8734
8739
|
useEffect8(t1, t2);
|
|
8735
8740
|
};
|
|
8736
|
-
function
|
|
8741
|
+
function _temp9() {}
|
|
8737
8742
|
// src/hooks/audioThreads/useRecorder/index.ts
|
|
8738
8743
|
function ownKeys44(e, r) {
|
|
8739
8744
|
var t = Object.keys(e);
|
|
@@ -9282,7 +9287,7 @@ var useMessageAudio = function(t0) {
|
|
|
9282
9287
|
} else {
|
|
9283
9288
|
t8 = $[37];
|
|
9284
9289
|
}
|
|
9285
|
-
useEffect10(
|
|
9290
|
+
useEffect10(_temp10, t8);
|
|
9286
9291
|
var _useState94 = _sliced_to_array(useState9(null), 2), audioEngine = _useState94[0], setAudioEngine = _useState94[1];
|
|
9287
9292
|
var isAudioEngineInited = useRef8(false);
|
|
9288
9293
|
var t9;
|
|
@@ -9366,7 +9371,7 @@ var useMessageAudio = function(t0) {
|
|
|
9366
9371
|
}
|
|
9367
9372
|
return t13;
|
|
9368
9373
|
};
|
|
9369
|
-
function
|
|
9374
|
+
function _temp10() {
|
|
9370
9375
|
if (isHtmlAudioSupported) {
|
|
9371
9376
|
var _Howler$_howls$;
|
|
9372
9377
|
if (!(Howler !== null && Howler !== void 0 && (_Howler$_howls$ = Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
|
|
@@ -9441,7 +9446,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
9441
9446
|
if ($[1] !== createMessageProps) {
|
|
9442
9447
|
t2 = {
|
|
9443
9448
|
isStopOnSilence: true,
|
|
9444
|
-
onStart:
|
|
9449
|
+
onStart: _temp11,
|
|
9445
9450
|
onStop: function() {
|
|
9446
9451
|
var _onStop = _asyncToGenerator11(function(_event, chunks) {
|
|
9447
9452
|
var blob, audioContent;
|
|
@@ -9584,7 +9589,7 @@ var useTtsAudioRuntime = function(t0) {
|
|
|
9584
9589
|
t5 = t14;
|
|
9585
9590
|
return t5;
|
|
9586
9591
|
};
|
|
9587
|
-
function
|
|
9592
|
+
function _temp11() {
|
|
9588
9593
|
return _temp23.apply(this, arguments);
|
|
9589
9594
|
}
|
|
9590
9595
|
function _temp23() {
|
|
@@ -9598,7 +9603,7 @@ function _temp23() {
|
|
|
9598
9603
|
return _temp23.apply(this, arguments);
|
|
9599
9604
|
}
|
|
9600
9605
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
9601
|
-
import { jsx as
|
|
9606
|
+
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
9602
9607
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
9603
9608
|
var $ = _c51(7);
|
|
9604
9609
|
var children = t0.children, play = t0.play;
|
|
@@ -9625,7 +9630,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
9625
9630
|
}
|
|
9626
9631
|
var t3;
|
|
9627
9632
|
if ($[4] !== children || $[5] !== t2) {
|
|
9628
|
-
t3 = /* @__PURE__ */
|
|
9633
|
+
t3 = /* @__PURE__ */ _jsx83(AudioThreadContext.Provider, {
|
|
9629
9634
|
value: t2,
|
|
9630
9635
|
children: children
|
|
9631
9636
|
});
|
|
@@ -9638,7 +9643,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
9638
9643
|
return t3;
|
|
9639
9644
|
};
|
|
9640
9645
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
9641
|
-
import { jsx as
|
|
9646
|
+
import { jsx as _jsx84 } from "react/jsx-runtime";
|
|
9642
9647
|
var _excluded5 = [
|
|
9643
9648
|
"children"
|
|
9644
9649
|
];
|
|
@@ -9711,7 +9716,7 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
9711
9716
|
}
|
|
9712
9717
|
var Content8 = function(_ref) {
|
|
9713
9718
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
9714
|
-
return /* @__PURE__ */
|
|
9719
|
+
return /* @__PURE__ */ _jsx84(Flex29, {
|
|
9715
9720
|
direction: "column",
|
|
9716
9721
|
flexGrow: "1",
|
|
9717
9722
|
p: "9",
|
|
@@ -9729,7 +9734,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
9729
9734
|
}
|
|
9730
9735
|
var t1;
|
|
9731
9736
|
if ($[0] !== children || $[1] !== play) {
|
|
9732
|
-
t1 = /* @__PURE__ */
|
|
9737
|
+
t1 = /* @__PURE__ */ _jsx84(TtsAudioRuntimeProvider, {
|
|
9733
9738
|
play: play,
|
|
9734
9739
|
children: children
|
|
9735
9740
|
});
|
|
@@ -9769,7 +9774,7 @@ var Provider5 = function(t0) {
|
|
|
9769
9774
|
}
|
|
9770
9775
|
var t2;
|
|
9771
9776
|
if ($[6] !== children || $[7] !== t1) {
|
|
9772
|
-
t2 = /* @__PURE__ */
|
|
9777
|
+
t2 = /* @__PURE__ */ _jsx84(AudioThreadContext.Provider, {
|
|
9773
9778
|
value: t1,
|
|
9774
9779
|
children: children
|
|
9775
9780
|
});
|
|
@@ -9783,11 +9788,11 @@ var Provider5 = function(t0) {
|
|
|
9783
9788
|
};
|
|
9784
9789
|
var Root12 = function(_ref2) {
|
|
9785
9790
|
var children = _ref2.children, play = _ref2.play, className = _ref2.className, style = _ref2.style, rest = _objectWithoutProperties5(_ref2, _excluded22);
|
|
9786
|
-
return /* @__PURE__ */
|
|
9787
|
-
children: /* @__PURE__ */
|
|
9791
|
+
return /* @__PURE__ */ _jsx84(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
|
|
9792
|
+
children: /* @__PURE__ */ _jsx84(AudioRuntimeProvider, {
|
|
9788
9793
|
play: play,
|
|
9789
|
-
children: /* @__PURE__ */
|
|
9790
|
-
children: /* @__PURE__ */
|
|
9794
|
+
children: /* @__PURE__ */ _jsx84(ToastsProvider, {
|
|
9795
|
+
children: /* @__PURE__ */ _jsx84(Content8, {
|
|
9791
9796
|
className: className,
|
|
9792
9797
|
style: style,
|
|
9793
9798
|
children: children
|
|
@@ -9805,7 +9810,7 @@ import _8 from "lodash";
|
|
|
9805
9810
|
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
9806
9811
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
9807
9812
|
import { cluster } from "radash";
|
|
9808
|
-
import { jsx as
|
|
9813
|
+
import { jsx as _jsx85 } from "react/jsx-runtime";
|
|
9809
9814
|
var barCount = 4;
|
|
9810
9815
|
var BarsVisualizer = function(_ref) {
|
|
9811
9816
|
var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
|
|
@@ -9836,7 +9841,7 @@ var BarsVisualizer = function(_ref) {
|
|
|
9836
9841
|
draw,
|
|
9837
9842
|
visualizationAnalyser
|
|
9838
9843
|
]);
|
|
9839
|
-
return /* @__PURE__ */
|
|
9844
|
+
return /* @__PURE__ */ _jsx85(Grid, {
|
|
9840
9845
|
columns: "".concat(barCount),
|
|
9841
9846
|
gap: "1",
|
|
9842
9847
|
width: "auto",
|
|
@@ -9845,12 +9850,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
9845
9850
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
9846
9851
|
},
|
|
9847
9852
|
children: barHeights.map(function(barHeight, index) {
|
|
9848
|
-
return /* @__PURE__ */
|
|
9853
|
+
return /* @__PURE__ */ _jsx85(Flex30, {
|
|
9849
9854
|
direction: "column",
|
|
9850
9855
|
align: "center",
|
|
9851
9856
|
justify: "center",
|
|
9852
9857
|
height: height,
|
|
9853
|
-
children: /* @__PURE__ */
|
|
9858
|
+
children: /* @__PURE__ */ _jsx85(Flex30, {
|
|
9854
9859
|
minHeight: "50%",
|
|
9855
9860
|
maxHeight: "100%",
|
|
9856
9861
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -9916,7 +9921,7 @@ var useStatus = function() {
|
|
|
9916
9921
|
return t1;
|
|
9917
9922
|
};
|
|
9918
9923
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
9919
|
-
import { jsx as
|
|
9924
|
+
import { jsx as _jsx86, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
9920
9925
|
function ownKeys47(e, r) {
|
|
9921
9926
|
var t = Object.keys(e);
|
|
9922
9927
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -9996,7 +10001,7 @@ var Visualization = function(props) {
|
|
|
9996
10001
|
flexGrow: "1"
|
|
9997
10002
|
}, props), {}, {
|
|
9998
10003
|
children: [
|
|
9999
|
-
/* @__PURE__ */
|
|
10004
|
+
/* @__PURE__ */ _jsx86(Flex31, {
|
|
10000
10005
|
align: "center",
|
|
10001
10006
|
justify: "center",
|
|
10002
10007
|
height: "200px",
|
|
@@ -10006,7 +10011,7 @@ var Visualization = function(props) {
|
|
|
10006
10011
|
borderRadius: "9999px",
|
|
10007
10012
|
scale: scale
|
|
10008
10013
|
},
|
|
10009
|
-
children: /* @__PURE__ */
|
|
10014
|
+
children: /* @__PURE__ */ _jsx86(BarsVisualizer, {
|
|
10010
10015
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
10011
10016
|
backgroundColor: status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
|
|
10012
10017
|
height: "40px",
|
|
@@ -10018,8 +10023,8 @@ var Visualization = function(props) {
|
|
|
10018
10023
|
gap: "3",
|
|
10019
10024
|
pt: "5",
|
|
10020
10025
|
children: [
|
|
10021
|
-
/* @__PURE__ */
|
|
10022
|
-
/* @__PURE__ */
|
|
10026
|
+
/* @__PURE__ */ _jsx86(AssistantAvatar, {}),
|
|
10027
|
+
/* @__PURE__ */ _jsx86(Name, {
|
|
10023
10028
|
children: assistantNameContext
|
|
10024
10029
|
})
|
|
10025
10030
|
]
|
|
@@ -10031,7 +10036,7 @@ var Visualization = function(props) {
|
|
|
10031
10036
|
import { c as _c54 } from "react-compiler-runtime";
|
|
10032
10037
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
10033
10038
|
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
10034
|
-
import { jsx as
|
|
10039
|
+
import { jsx as _jsx87, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
10035
10040
|
var html = function(_ref) {
|
|
10036
10041
|
var texts = _ref.texts;
|
|
10037
10042
|
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) {
|
|
@@ -10046,13 +10051,13 @@ var StatusMessages = function(_ref2) {
|
|
|
10046
10051
|
className: className,
|
|
10047
10052
|
style: style,
|
|
10048
10053
|
children: [
|
|
10049
|
-
/* @__PURE__ */
|
|
10054
|
+
/* @__PURE__ */ _jsx87(Text9, {
|
|
10050
10055
|
size: "2",
|
|
10051
10056
|
weight: "regular",
|
|
10052
10057
|
color: "gray",
|
|
10053
10058
|
className: "status-messages-texts"
|
|
10054
10059
|
}),
|
|
10055
|
-
/* @__PURE__ */
|
|
10060
|
+
/* @__PURE__ */ _jsx87("style", {
|
|
10056
10061
|
dangerouslySetInnerHTML: {
|
|
10057
10062
|
__html: html({
|
|
10058
10063
|
texts: texts
|
|
@@ -10063,7 +10068,7 @@ var StatusMessages = function(_ref2) {
|
|
|
10063
10068
|
});
|
|
10064
10069
|
};
|
|
10065
10070
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
10066
|
-
import { jsx as
|
|
10071
|
+
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
10067
10072
|
function ownKeys48(e, r) {
|
|
10068
10073
|
var t = Object.keys(e);
|
|
10069
10074
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -10125,7 +10130,7 @@ var Status = function(props) {
|
|
|
10125
10130
|
}
|
|
10126
10131
|
var _t2;
|
|
10127
10132
|
if ($[1] !== props) {
|
|
10128
|
-
_t2 = /* @__PURE__ */
|
|
10133
|
+
_t2 = /* @__PURE__ */ _jsx88(StatusMessages, _objectSpread48({
|
|
10129
10134
|
texts: _t
|
|
10130
10135
|
}, props));
|
|
10131
10136
|
$[1] = props;
|
|
@@ -10151,7 +10156,7 @@ var Status = function(props) {
|
|
|
10151
10156
|
}
|
|
10152
10157
|
var _t4;
|
|
10153
10158
|
if ($[4] !== props) {
|
|
10154
|
-
_t4 = /* @__PURE__ */
|
|
10159
|
+
_t4 = /* @__PURE__ */ _jsx88(StatusMessages, _objectSpread48({
|
|
10155
10160
|
texts: _t3
|
|
10156
10161
|
}, props));
|
|
10157
10162
|
$[4] = props;
|
|
@@ -10173,7 +10178,7 @@ var Status = function(props) {
|
|
|
10173
10178
|
}
|
|
10174
10179
|
var _t6;
|
|
10175
10180
|
if ($[7] !== props) {
|
|
10176
|
-
_t6 = /* @__PURE__ */
|
|
10181
|
+
_t6 = /* @__PURE__ */ _jsx88(StatusMessages, _objectSpread48({
|
|
10177
10182
|
texts: _t5
|
|
10178
10183
|
}, props));
|
|
10179
10184
|
$[7] = props;
|
|
@@ -10194,7 +10199,7 @@ var Status = function(props) {
|
|
|
10194
10199
|
}
|
|
10195
10200
|
var t1;
|
|
10196
10201
|
if ($[10] !== props) {
|
|
10197
|
-
t1 = /* @__PURE__ */
|
|
10202
|
+
t1 = /* @__PURE__ */ _jsx88(StatusMessages, _objectSpread48({
|
|
10198
10203
|
texts: t0
|
|
10199
10204
|
}, props));
|
|
10200
10205
|
$[10] = props;
|
|
@@ -10208,7 +10213,7 @@ var Status = function(props) {
|
|
|
10208
10213
|
import { c as _c56 } from "react-compiler-runtime";
|
|
10209
10214
|
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
10210
10215
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
10211
|
-
import { jsx as
|
|
10216
|
+
import { jsx as _jsx89 } from "react/jsx-runtime";
|
|
10212
10217
|
function ownKeys49(e, r) {
|
|
10213
10218
|
var t = Object.keys(e);
|
|
10214
10219
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -10253,7 +10258,7 @@ function _toPrimitive49(t, r) {
|
|
|
10253
10258
|
return ("string" === r ? String : Number)(t);
|
|
10254
10259
|
}
|
|
10255
10260
|
var MicIcon = function(props) {
|
|
10256
|
-
return /* @__PURE__ */
|
|
10261
|
+
return /* @__PURE__ */ _jsx89("svg", _objectSpread49(_objectSpread49({
|
|
10257
10262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10258
10263
|
fill: "currentColor",
|
|
10259
10264
|
stroke: "currentColor",
|
|
@@ -10262,7 +10267,7 @@ var MicIcon = function(props) {
|
|
|
10262
10267
|
height: "15",
|
|
10263
10268
|
width: "15"
|
|
10264
10269
|
}, props), {}, {
|
|
10265
|
-
children: /* @__PURE__ */
|
|
10270
|
+
children: /* @__PURE__ */ _jsx89("path", {
|
|
10266
10271
|
stroke: "none",
|
|
10267
10272
|
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"
|
|
10268
10273
|
})
|
|
@@ -10272,7 +10277,7 @@ var MicIcon = function(props) {
|
|
|
10272
10277
|
import { c as _c55 } from "react-compiler-runtime";
|
|
10273
10278
|
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
10274
10279
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
10275
|
-
import { jsx as
|
|
10280
|
+
import { jsx as _jsx90, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
10276
10281
|
var ActionButton = function() {
|
|
10277
10282
|
var $ = _c55(27);
|
|
10278
10283
|
var status = useStatus().status;
|
|
@@ -10281,17 +10286,17 @@ var ActionButton = function() {
|
|
|
10281
10286
|
if (status === "recording") {
|
|
10282
10287
|
var _t;
|
|
10283
10288
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10284
|
-
_t = /* @__PURE__ */
|
|
10289
|
+
_t = /* @__PURE__ */ _jsx90(PauseIcon2, {});
|
|
10285
10290
|
$[0] = _t;
|
|
10286
10291
|
} else {
|
|
10287
10292
|
_t = $[0];
|
|
10288
10293
|
}
|
|
10289
10294
|
var t1;
|
|
10290
10295
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
10291
|
-
t1 = /* @__PURE__ */
|
|
10296
|
+
t1 = /* @__PURE__ */ _jsx90(Flex33, {
|
|
10292
10297
|
mr: "3",
|
|
10293
10298
|
ml: "-7",
|
|
10294
|
-
children: /* @__PURE__ */
|
|
10299
|
+
children: /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10295
10300
|
onClick: audioThreadContext.audioRuntime.user.pause,
|
|
10296
10301
|
color: "gray",
|
|
10297
10302
|
variant: "soft",
|
|
@@ -10306,14 +10311,14 @@ var ActionButton = function() {
|
|
|
10306
10311
|
}
|
|
10307
10312
|
var t2;
|
|
10308
10313
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10309
|
-
t2 = /* @__PURE__ */
|
|
10314
|
+
t2 = /* @__PURE__ */ _jsx90(ArrowUpIcon3, {});
|
|
10310
10315
|
$[3] = t2;
|
|
10311
10316
|
} else {
|
|
10312
10317
|
t2 = $[3];
|
|
10313
10318
|
}
|
|
10314
10319
|
var t3;
|
|
10315
10320
|
if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
|
|
10316
|
-
t3 = /* @__PURE__ */
|
|
10321
|
+
t3 = /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10317
10322
|
onClick: audioThreadContext.audioRuntime.user.stop,
|
|
10318
10323
|
highContrast: true,
|
|
10319
10324
|
variant: "soft",
|
|
@@ -10345,14 +10350,14 @@ var ActionButton = function() {
|
|
|
10345
10350
|
if (status === "recorderPaused") {
|
|
10346
10351
|
var _t2;
|
|
10347
10352
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10348
|
-
_t2 = /* @__PURE__ */
|
|
10353
|
+
_t2 = /* @__PURE__ */ _jsx90(ResumeIcon, {});
|
|
10349
10354
|
$[9] = _t2;
|
|
10350
10355
|
} else {
|
|
10351
10356
|
_t2 = $[9];
|
|
10352
10357
|
}
|
|
10353
10358
|
var _t3;
|
|
10354
10359
|
if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
|
|
10355
|
-
_t3 = /* @__PURE__ */
|
|
10360
|
+
_t3 = /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10356
10361
|
onClick: audioThreadContext.audioRuntime.user.resume,
|
|
10357
10362
|
color: "red",
|
|
10358
10363
|
size: "4",
|
|
@@ -10368,7 +10373,7 @@ var ActionButton = function() {
|
|
|
10368
10373
|
if (status === "idle") {
|
|
10369
10374
|
var _t4;
|
|
10370
10375
|
if ($[12] !== audioThreadContext.audioRuntime.user) {
|
|
10371
|
-
_t4 = /* @__PURE__ */
|
|
10376
|
+
_t4 = /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10372
10377
|
onClick: function() {
|
|
10373
10378
|
return audioThreadContext.audioRuntime.user.start();
|
|
10374
10379
|
},
|
|
@@ -10400,14 +10405,14 @@ var ActionButton = function() {
|
|
|
10400
10405
|
}
|
|
10401
10406
|
var _t6;
|
|
10402
10407
|
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10403
|
-
_t6 = /* @__PURE__ */
|
|
10408
|
+
_t6 = /* @__PURE__ */ _jsx90(StopIcon2, {});
|
|
10404
10409
|
$[18] = _t6;
|
|
10405
10410
|
} else {
|
|
10406
10411
|
_t6 = $[18];
|
|
10407
10412
|
}
|
|
10408
10413
|
var _t7;
|
|
10409
10414
|
if ($[19] !== _t5) {
|
|
10410
|
-
_t7 = /* @__PURE__ */
|
|
10415
|
+
_t7 = /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10411
10416
|
onClick: _t5,
|
|
10412
10417
|
size: "4",
|
|
10413
10418
|
color: "gray",
|
|
@@ -10434,14 +10439,14 @@ var ActionButton = function() {
|
|
|
10434
10439
|
}
|
|
10435
10440
|
var _t9;
|
|
10436
10441
|
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10437
|
-
_t9 = /* @__PURE__ */
|
|
10442
|
+
_t9 = /* @__PURE__ */ _jsx90(ResumeIcon, {});
|
|
10438
10443
|
$[23] = _t9;
|
|
10439
10444
|
} else {
|
|
10440
10445
|
_t9 = $[23];
|
|
10441
10446
|
}
|
|
10442
10447
|
var _t10;
|
|
10443
10448
|
if ($[24] !== _t8) {
|
|
10444
|
-
_t10 = /* @__PURE__ */
|
|
10449
|
+
_t10 = /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10445
10450
|
onClick: _t8,
|
|
10446
10451
|
size: "4",
|
|
10447
10452
|
children: _t9
|
|
@@ -10455,7 +10460,7 @@ var ActionButton = function() {
|
|
|
10455
10460
|
}
|
|
10456
10461
|
var t0;
|
|
10457
10462
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10458
|
-
t0 = /* @__PURE__ */
|
|
10463
|
+
t0 = /* @__PURE__ */ _jsx90(IconButton10, {
|
|
10459
10464
|
size: "4",
|
|
10460
10465
|
variant: "soft",
|
|
10461
10466
|
disabled: true
|
|
@@ -10467,7 +10472,7 @@ var ActionButton = function() {
|
|
|
10467
10472
|
return t0;
|
|
10468
10473
|
};
|
|
10469
10474
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
10470
|
-
import { jsx as
|
|
10475
|
+
import { jsx as _jsx91, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
10471
10476
|
function ownKeys50(e, r) {
|
|
10472
10477
|
var t = Object.keys(e);
|
|
10473
10478
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -10518,11 +10523,11 @@ var Form = function(props) {
|
|
|
10518
10523
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
10519
10524
|
var t1;
|
|
10520
10525
|
if ($[0] !== t0) {
|
|
10521
|
-
t1 = /* @__PURE__ */
|
|
10526
|
+
t1 = /* @__PURE__ */ _jsx91(Flex34, {
|
|
10522
10527
|
ml: "-22.5px",
|
|
10523
10528
|
mr: "2",
|
|
10524
10529
|
align: "center",
|
|
10525
|
-
children: /* @__PURE__ */
|
|
10530
|
+
children: /* @__PURE__ */ _jsx91(MicIcon, {
|
|
10526
10531
|
style: {
|
|
10527
10532
|
color: t0
|
|
10528
10533
|
}
|
|
@@ -10548,7 +10553,7 @@ var Form = function(props) {
|
|
|
10548
10553
|
var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
10549
10554
|
var t5;
|
|
10550
10555
|
if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
|
|
10551
|
-
t5 = /* @__PURE__ */
|
|
10556
|
+
t5 = /* @__PURE__ */ _jsx91(BarsVisualizer, {
|
|
10552
10557
|
visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
|
|
10553
10558
|
backgroundColor: t4,
|
|
10554
10559
|
height: "20px",
|
|
@@ -10562,7 +10567,7 @@ var Form = function(props) {
|
|
|
10562
10567
|
}
|
|
10563
10568
|
var t6;
|
|
10564
10569
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
10565
|
-
t6 = /* @__PURE__ */
|
|
10570
|
+
t6 = /* @__PURE__ */ _jsx91(Flex34, {
|
|
10566
10571
|
px: "2",
|
|
10567
10572
|
py: "1",
|
|
10568
10573
|
style: t3,
|
|
@@ -10592,7 +10597,7 @@ var Form = function(props) {
|
|
|
10592
10597
|
}
|
|
10593
10598
|
var t8;
|
|
10594
10599
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10595
|
-
t8 = /* @__PURE__ */
|
|
10600
|
+
t8 = /* @__PURE__ */ _jsx91(ActionButton, {});
|
|
10596
10601
|
$[13] = t8;
|
|
10597
10602
|
} else {
|
|
10598
10603
|
t8 = $[13];
|
|
@@ -10617,7 +10622,7 @@ var Form = function(props) {
|
|
|
10617
10622
|
return t9;
|
|
10618
10623
|
};
|
|
10619
10624
|
// src/components/threads/AudioThread/index.tsx
|
|
10620
|
-
import { jsx as
|
|
10625
|
+
import { jsx as _jsx92, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
10621
10626
|
function ownKeys51(e, r) {
|
|
10622
10627
|
var t = Object.keys(e);
|
|
10623
10628
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -10664,9 +10669,9 @@ function _toPrimitive51(t, r) {
|
|
|
10664
10669
|
var AudioThread = function(props) {
|
|
10665
10670
|
return /* @__PURE__ */ _jsxs35(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
|
|
10666
10671
|
children: [
|
|
10667
|
-
/* @__PURE__ */
|
|
10668
|
-
/* @__PURE__ */
|
|
10669
|
-
/* @__PURE__ */
|
|
10672
|
+
/* @__PURE__ */ _jsx92(Visualization, {}),
|
|
10673
|
+
/* @__PURE__ */ _jsx92(Status, {}),
|
|
10674
|
+
/* @__PURE__ */ _jsx92(Form, {})
|
|
10670
10675
|
]
|
|
10671
10676
|
}));
|
|
10672
10677
|
};
|
|
@@ -10675,7 +10680,7 @@ AudioThread.Visualization = Visualization;
|
|
|
10675
10680
|
AudioThread.Status = Status;
|
|
10676
10681
|
AudioThread.Form = Form;
|
|
10677
10682
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
10678
|
-
import { jsx as
|
|
10683
|
+
import { jsx as _jsx93, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
10679
10684
|
function ownKeys52(e, r) {
|
|
10680
10685
|
var t = Object.keys(e);
|
|
10681
10686
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -10722,10 +10727,10 @@ function _toPrimitive52(t, r) {
|
|
|
10722
10727
|
var AudioThreadDialog = function(props) {
|
|
10723
10728
|
return /* @__PURE__ */ _jsxs36(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
|
|
10724
10729
|
children: [
|
|
10725
|
-
/* @__PURE__ */
|
|
10726
|
-
children: /* @__PURE__ */
|
|
10730
|
+
/* @__PURE__ */ _jsx93(Content7.Root, {
|
|
10731
|
+
children: /* @__PURE__ */ _jsx93(AudioThread, {})
|
|
10727
10732
|
}),
|
|
10728
|
-
/* @__PURE__ */
|
|
10733
|
+
/* @__PURE__ */ _jsx93(Trigger, {})
|
|
10729
10734
|
]
|
|
10730
10735
|
}));
|
|
10731
10736
|
};
|
|
@@ -11202,7 +11207,7 @@ var useWebrtcAudioRuntime = function() {
|
|
|
11202
11207
|
};
|
|
11203
11208
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
11204
11209
|
import { c as _c57 } from "react-compiler-runtime";
|
|
11205
|
-
import { jsx as
|
|
11210
|
+
import { jsx as _jsx94 } from "react/jsx-runtime";
|
|
11206
11211
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
11207
11212
|
var $ = _c57(5);
|
|
11208
11213
|
var children = t0.children;
|
|
@@ -11219,7 +11224,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
11219
11224
|
}
|
|
11220
11225
|
var t2;
|
|
11221
11226
|
if ($[2] !== children || $[3] !== t1) {
|
|
11222
|
-
t2 = /* @__PURE__ */
|
|
11227
|
+
t2 = /* @__PURE__ */ _jsx94(AudioThreadContext.Provider, {
|
|
11223
11228
|
value: t1,
|
|
11224
11229
|
children: children
|
|
11225
11230
|
});
|
|
@@ -11234,7 +11239,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
11234
11239
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
11235
11240
|
import { c as _c58 } from "react-compiler-runtime";
|
|
11236
11241
|
import { useMemo as useMemo21 } from "react";
|
|
11237
|
-
import { jsx as
|
|
11242
|
+
import { jsx as _jsx95 } from "react/jsx-runtime";
|
|
11238
11243
|
var _excluded6 = [
|
|
11239
11244
|
"children"
|
|
11240
11245
|
];
|
|
@@ -11287,7 +11292,7 @@ var MarkdownProvider = function(t0) {
|
|
|
11287
11292
|
var value = t1;
|
|
11288
11293
|
var t3;
|
|
11289
11294
|
if ($[6] !== children || $[7] !== value) {
|
|
11290
|
-
t3 = /* @__PURE__ */
|
|
11295
|
+
t3 = /* @__PURE__ */ _jsx95(MarkdownContext.Provider, {
|
|
11291
11296
|
value: value,
|
|
11292
11297
|
children: children
|
|
11293
11298
|
});
|
|
@@ -11309,7 +11314,7 @@ import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/th
|
|
|
11309
11314
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
11310
11315
|
import { c as _c59 } from "react-compiler-runtime";
|
|
11311
11316
|
import { Flex as Flex35, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
|
|
11312
|
-
import { jsx as
|
|
11317
|
+
import { jsx as _jsx96 } from "react/jsx-runtime";
|
|
11313
11318
|
var Content9 = function(t0) {
|
|
11314
11319
|
var $ = _c59(5);
|
|
11315
11320
|
var fileId = t0.fileId;
|
|
@@ -11348,18 +11353,18 @@ var Content9 = function(t0) {
|
|
|
11348
11353
|
}
|
|
11349
11354
|
var t5;
|
|
11350
11355
|
if ($[3] !== t3) {
|
|
11351
|
-
t5 = /* @__PURE__ */
|
|
11356
|
+
t5 = /* @__PURE__ */ _jsx96(Flex35, {
|
|
11352
11357
|
direction: "column",
|
|
11353
11358
|
flexGrow: "1",
|
|
11354
11359
|
gap: "3",
|
|
11355
|
-
children: /* @__PURE__ */
|
|
11360
|
+
children: /* @__PURE__ */ _jsx96(Card5, {
|
|
11356
11361
|
style: t1,
|
|
11357
|
-
children: /* @__PURE__ */
|
|
11362
|
+
children: /* @__PURE__ */ _jsx96(Inset3, {
|
|
11358
11363
|
clip: "padding-box",
|
|
11359
11364
|
style: t2,
|
|
11360
|
-
children: /* @__PURE__ */
|
|
11365
|
+
children: /* @__PURE__ */ _jsx96(Flex35, {
|
|
11361
11366
|
flexGrow: "1",
|
|
11362
|
-
children: /* @__PURE__ */
|
|
11367
|
+
children: /* @__PURE__ */ _jsx96("embed", {
|
|
11363
11368
|
src: t3,
|
|
11364
11369
|
style: t4
|
|
11365
11370
|
})
|
|
@@ -11375,7 +11380,7 @@ var Content9 = function(t0) {
|
|
|
11375
11380
|
return t5;
|
|
11376
11381
|
};
|
|
11377
11382
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
11378
|
-
import { jsx as
|
|
11383
|
+
import { jsx as _jsx97, jsxs as _jsxs37, Fragment as _Fragment5 } from "react/jsx-runtime";
|
|
11379
11384
|
var FileCitation = function(t0) {
|
|
11380
11385
|
var $ = _c60(18);
|
|
11381
11386
|
var annotation = t0.annotation;
|
|
@@ -11392,14 +11397,14 @@ var FileCitation = function(t0) {
|
|
|
11392
11397
|
}
|
|
11393
11398
|
var t2;
|
|
11394
11399
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11395
|
-
t2 = /* @__PURE__ */
|
|
11400
|
+
t2 = /* @__PURE__ */ _jsx97(QuoteIcon2, {});
|
|
11396
11401
|
$[2] = t2;
|
|
11397
11402
|
} else {
|
|
11398
11403
|
t2 = $[2];
|
|
11399
11404
|
}
|
|
11400
11405
|
var t3;
|
|
11401
11406
|
if ($[3] !== t1) {
|
|
11402
|
-
t3 = /* @__PURE__ */
|
|
11407
|
+
t3 = /* @__PURE__ */ _jsx97(IconButton11, {
|
|
11403
11408
|
variant: "soft",
|
|
11404
11409
|
color: "gray",
|
|
11405
11410
|
size: "1",
|
|
@@ -11435,9 +11440,9 @@ var FileCitation = function(t0) {
|
|
|
11435
11440
|
}
|
|
11436
11441
|
var t7;
|
|
11437
11442
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11438
|
-
t7 = /* @__PURE__ */
|
|
11443
|
+
t7 = /* @__PURE__ */ _jsx97(VisuallyHidden, {
|
|
11439
11444
|
asChild: true,
|
|
11440
|
-
children: /* @__PURE__ */
|
|
11445
|
+
children: /* @__PURE__ */ _jsx97(Dialog.Title, {
|
|
11441
11446
|
children: "Source"
|
|
11442
11447
|
})
|
|
11443
11448
|
});
|
|
@@ -11447,7 +11452,7 @@ var FileCitation = function(t0) {
|
|
|
11447
11452
|
}
|
|
11448
11453
|
var t8;
|
|
11449
11454
|
if ($[8] !== activeFileId) {
|
|
11450
|
-
t8 = activeFileId && /* @__PURE__ */
|
|
11455
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx97(Content9, {
|
|
11451
11456
|
fileId: activeFileId
|
|
11452
11457
|
});
|
|
11453
11458
|
$[8] = activeFileId;
|
|
@@ -11475,7 +11480,7 @@ var FileCitation = function(t0) {
|
|
|
11475
11480
|
}
|
|
11476
11481
|
var t10;
|
|
11477
11482
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
11478
|
-
t10 = /* @__PURE__ */
|
|
11483
|
+
t10 = /* @__PURE__ */ _jsx97(Dialog.Root, {
|
|
11479
11484
|
open: t4,
|
|
11480
11485
|
onOpenChange: t5,
|
|
11481
11486
|
children: t9
|
|
@@ -11488,7 +11493,7 @@ var FileCitation = function(t0) {
|
|
|
11488
11493
|
}
|
|
11489
11494
|
var t11;
|
|
11490
11495
|
if ($[15] !== t10 || $[16] !== t3) {
|
|
11491
|
-
t11 = /* @__PURE__ */ _jsxs37(
|
|
11496
|
+
t11 = /* @__PURE__ */ _jsxs37(_Fragment5, {
|
|
11492
11497
|
children: [
|
|
11493
11498
|
t3,
|
|
11494
11499
|
t10
|
|
@@ -11503,7 +11508,7 @@ var FileCitation = function(t0) {
|
|
|
11503
11508
|
return t11;
|
|
11504
11509
|
};
|
|
11505
11510
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
11506
|
-
import { jsx as
|
|
11511
|
+
import { jsx as _jsx98 } from "react/jsx-runtime";
|
|
11507
11512
|
var _excluded7 = [
|
|
11508
11513
|
"children"
|
|
11509
11514
|
];
|
|
@@ -11554,7 +11559,7 @@ var SourceAnnotation = function(t0) {
|
|
|
11554
11559
|
if (annotation.type === "file_citation") {
|
|
11555
11560
|
var t2;
|
|
11556
11561
|
if ($[5] !== annotation) {
|
|
11557
|
-
t2 = /* @__PURE__ */
|
|
11562
|
+
t2 = /* @__PURE__ */ _jsx98(FileCitation, {
|
|
11558
11563
|
annotation: annotation
|
|
11559
11564
|
});
|
|
11560
11565
|
$[5] = annotation;
|
|
@@ -11567,7 +11572,7 @@ var SourceAnnotation = function(t0) {
|
|
|
11567
11572
|
if (annotation.type === "file_path") {
|
|
11568
11573
|
var _t2;
|
|
11569
11574
|
if ($[7] !== annotation || $[8] !== children) {
|
|
11570
|
-
_t2 = /* @__PURE__ */
|
|
11575
|
+
_t2 = /* @__PURE__ */ _jsx98(FilePathAnnotation, {
|
|
11571
11576
|
annotation: annotation,
|
|
11572
11577
|
children: children
|
|
11573
11578
|
});
|
|
@@ -11660,7 +11665,7 @@ var optimizedSrc = function(_ref) {
|
|
|
11660
11665
|
}));
|
|
11661
11666
|
};
|
|
11662
11667
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
11663
|
-
import { jsx as
|
|
11668
|
+
import { jsx as _jsx99 } from "react/jsx-runtime";
|
|
11664
11669
|
var ImageAvatar = function(t0) {
|
|
11665
11670
|
var $ = _c62(9);
|
|
11666
11671
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
@@ -11681,7 +11686,7 @@ var ImageAvatar = function(t0) {
|
|
|
11681
11686
|
}
|
|
11682
11687
|
var t2;
|
|
11683
11688
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
11684
|
-
t2 = /* @__PURE__ */
|
|
11689
|
+
t2 = /* @__PURE__ */ _jsx99(Avatar4, {
|
|
11685
11690
|
className: className,
|
|
11686
11691
|
style: style,
|
|
11687
11692
|
fallback: "",
|
|
@@ -11707,7 +11712,7 @@ import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon
|
|
|
11707
11712
|
var _obj;
|
|
11708
11713
|
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);
|
|
11709
11714
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
11710
|
-
import { jsx as
|
|
11715
|
+
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
11711
11716
|
var IconAvatar = function(t0) {
|
|
11712
11717
|
var $ = _c63(7);
|
|
11713
11718
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
@@ -11716,7 +11721,7 @@ var IconAvatar = function(t0) {
|
|
|
11716
11721
|
var Component2 = t1;
|
|
11717
11722
|
var t2;
|
|
11718
11723
|
if ($[0] !== Component2) {
|
|
11719
|
-
t2 = Component2 ? /* @__PURE__ */
|
|
11724
|
+
t2 = Component2 ? /* @__PURE__ */ _jsx100(Component2, {}) : "";
|
|
11720
11725
|
$[0] = Component2;
|
|
11721
11726
|
$[1] = t2;
|
|
11722
11727
|
} else {
|
|
@@ -11724,7 +11729,7 @@ var IconAvatar = function(t0) {
|
|
|
11724
11729
|
}
|
|
11725
11730
|
var t3;
|
|
11726
11731
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
11727
|
-
t3 = /* @__PURE__ */
|
|
11732
|
+
t3 = /* @__PURE__ */ _jsx100(Avatar5, {
|
|
11728
11733
|
className: className,
|
|
11729
11734
|
style: style,
|
|
11730
11735
|
size: size,
|
|
@@ -11741,7 +11746,7 @@ var IconAvatar = function(t0) {
|
|
|
11741
11746
|
return t3;
|
|
11742
11747
|
};
|
|
11743
11748
|
// src/components/avatars/Avatar.tsx
|
|
11744
|
-
import { jsx as
|
|
11749
|
+
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
11745
11750
|
var Avatar6 = function(t0) {
|
|
11746
11751
|
var $ = _c64(14);
|
|
11747
11752
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
@@ -11750,7 +11755,7 @@ var Avatar6 = function(t0) {
|
|
|
11750
11755
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
11751
11756
|
var _t;
|
|
11752
11757
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
11753
|
-
_t = /* @__PURE__ */
|
|
11758
|
+
_t = /* @__PURE__ */ _jsx101(ImageAvatar, {
|
|
11754
11759
|
imageAvatar: avatar.imageAvatar,
|
|
11755
11760
|
size: size,
|
|
11756
11761
|
className: className,
|
|
@@ -11769,7 +11774,7 @@ var Avatar6 = function(t0) {
|
|
|
11769
11774
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
11770
11775
|
var _t2;
|
|
11771
11776
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
11772
|
-
_t2 = /* @__PURE__ */
|
|
11777
|
+
_t2 = /* @__PURE__ */ _jsx101(IconAvatar, {
|
|
11773
11778
|
iconAvatar: avatar.iconAvatar,
|
|
11774
11779
|
size: size,
|
|
11775
11780
|
className: className,
|
|
@@ -11788,7 +11793,7 @@ var Avatar6 = function(t0) {
|
|
|
11788
11793
|
}
|
|
11789
11794
|
var t2;
|
|
11790
11795
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
11791
|
-
t2 = /* @__PURE__ */
|
|
11796
|
+
t2 = /* @__PURE__ */ _jsx101(RadixAvatar, {
|
|
11792
11797
|
fallback: "",
|
|
11793
11798
|
size: size,
|
|
11794
11799
|
className: className,
|
|
@@ -11812,7 +11817,7 @@ var useComponents = function() {
|
|
|
11812
11817
|
return useContext17(ComponentsContext);
|
|
11813
11818
|
};
|
|
11814
11819
|
// src/components/components/ComponentsProvider.tsx
|
|
11815
|
-
import { jsx as
|
|
11820
|
+
import { jsx as _jsx102 } from "react/jsx-runtime";
|
|
11816
11821
|
var _excluded8 = [
|
|
11817
11822
|
"children"
|
|
11818
11823
|
];
|
|
@@ -11865,7 +11870,7 @@ var ComponentsProvider = function(t0) {
|
|
|
11865
11870
|
var value = t1;
|
|
11866
11871
|
var t3;
|
|
11867
11872
|
if ($[6] !== children || $[7] !== value) {
|
|
11868
|
-
t3 = /* @__PURE__ */
|
|
11873
|
+
t3 = /* @__PURE__ */ _jsx102(ComponentsContext.Provider, {
|
|
11869
11874
|
value: value,
|
|
11870
11875
|
children: children
|
|
11871
11876
|
});
|
|
@@ -11879,7 +11884,7 @@ var ComponentsProvider = function(t0) {
|
|
|
11879
11884
|
};
|
|
11880
11885
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
11881
11886
|
import { c as _c66 } from "react-compiler-runtime";
|
|
11882
|
-
import { jsx as
|
|
11887
|
+
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
11883
11888
|
var AssistantProvider = function(t0) {
|
|
11884
11889
|
var _assistant$name;
|
|
11885
11890
|
var $ = _c66(10);
|
|
@@ -11900,7 +11905,7 @@ var AssistantProvider = function(t0) {
|
|
|
11900
11905
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
11901
11906
|
var t4;
|
|
11902
11907
|
if ($[2] !== t3) {
|
|
11903
|
-
t4 = /* @__PURE__ */
|
|
11908
|
+
t4 = /* @__PURE__ */ _jsx103(Avatar6, {
|
|
11904
11909
|
avatar: t3
|
|
11905
11910
|
});
|
|
11906
11911
|
$[2] = t3;
|
|
@@ -11910,7 +11915,7 @@ var AssistantProvider = function(t0) {
|
|
|
11910
11915
|
}
|
|
11911
11916
|
var t5;
|
|
11912
11917
|
if ($[4] !== children || $[5] !== t4) {
|
|
11913
|
-
t5 = /* @__PURE__ */
|
|
11918
|
+
t5 = /* @__PURE__ */ _jsx103(AssistantAvatarContext.Provider, {
|
|
11914
11919
|
value: t4,
|
|
11915
11920
|
children: children
|
|
11916
11921
|
});
|
|
@@ -11922,7 +11927,7 @@ var AssistantProvider = function(t0) {
|
|
|
11922
11927
|
}
|
|
11923
11928
|
var t6;
|
|
11924
11929
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
11925
|
-
t6 = /* @__PURE__ */
|
|
11930
|
+
t6 = /* @__PURE__ */ _jsx103(AssistantNameContext.Provider, {
|
|
11926
11931
|
value: t2,
|
|
11927
11932
|
children: t5
|
|
11928
11933
|
});
|
|
@@ -11934,5 +11939,5 @@ var AssistantProvider = function(t0) {
|
|
|
11934
11939
|
}
|
|
11935
11940
|
return t6;
|
|
11936
11941
|
};
|
|
11937
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
11942
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
11938
11943
|
//# sourceMappingURL=index.js.map
|