@superinterface/react 5.0.0-beta.0 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +540 -489
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +505 -454
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +25 -32
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +25 -32
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8292,7 +8292,7 @@ var require_lib = __commonJS({
|
|
|
8292
8292
|
key: "parseMaybeAssign",
|
|
8293
8293
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
8294
8294
|
var _this = this;
|
|
8295
|
-
var
|
|
8295
|
+
var _jsx109;
|
|
8296
8296
|
var state = null;
|
|
8297
8297
|
var jsx2;
|
|
8298
8298
|
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
|
|
@@ -8307,7 +8307,7 @@ var require_lib = __commonJS({
|
|
|
8307
8307
|
context.pop();
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|
|
8310
|
-
if ((
|
|
8310
|
+
if ((_jsx109 = jsx2) != null && _jsx109.error || this.match(47)) {
|
|
8311
8311
|
var _jsx210, _jsx310;
|
|
8312
8312
|
state = state || this.state.clone();
|
|
8313
8313
|
var typeParameters;
|
|
@@ -13173,7 +13173,7 @@ var require_lib = __commonJS({
|
|
|
13173
13173
|
key: "parseMaybeAssign",
|
|
13174
13174
|
value: function parseMaybeAssign(refExpressionErrors, afterLeftParse) {
|
|
13175
13175
|
var _this = this;
|
|
13176
|
-
var
|
|
13176
|
+
var _jsx109, _jsx210, _typeCast, _jsx310, _typeCast2;
|
|
13177
13177
|
var state;
|
|
13178
13178
|
var jsx2;
|
|
13179
13179
|
var typeCast;
|
|
@@ -13189,7 +13189,7 @@ var require_lib = __commonJS({
|
|
|
13189
13189
|
context.pop();
|
|
13190
13190
|
}
|
|
13191
13191
|
}
|
|
13192
|
-
if (!((
|
|
13192
|
+
if (!((_jsx109 = jsx2) != null && _jsx109.error) && !this.match(47)) {
|
|
13193
13193
|
return _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssign", this).call(this, refExpressionErrors, afterLeftParse);
|
|
13194
13194
|
}
|
|
13195
13195
|
if (!state || state === this.state) state = this.state.clone();
|
|
@@ -37811,16 +37811,16 @@ var SuperinterfaceProvider = function(_ref) {
|
|
|
37811
37811
|
});
|
|
37812
37812
|
};
|
|
37813
37813
|
// src/components/threads/Thread/index.tsx
|
|
37814
|
-
import { c as
|
|
37814
|
+
import { c as _c77 } from "react-compiler-runtime";
|
|
37815
37815
|
// src/components/threads/Thread/Messages/index.tsx
|
|
37816
|
-
import { c as
|
|
37816
|
+
import { c as _c66 } from "react-compiler-runtime";
|
|
37817
37817
|
import { Flex as Flex18 } from "@radix-ui/themes";
|
|
37818
37818
|
// src/components/threads/Thread/Message/index.tsx
|
|
37819
|
-
import { c as
|
|
37819
|
+
import { c as _c60 } from "react-compiler-runtime";
|
|
37820
37820
|
import { useMemo as useMemo10 } from "react";
|
|
37821
37821
|
import { Box as Box12 } from "@radix-ui/themes";
|
|
37822
37822
|
// src/components/runSteps/RunSteps/index.tsx
|
|
37823
|
-
import { c as
|
|
37823
|
+
import { c as _c56 } from "react-compiler-runtime";
|
|
37824
37824
|
import { Flex as Flex16 } from "@radix-ui/themes";
|
|
37825
37825
|
import { useContext as useContext14 } from "react";
|
|
37826
37826
|
// src/contexts/components/ComponentsContext/index.tsx
|
|
@@ -42955,23 +42955,42 @@ var ImageFileContent = function(t0) {
|
|
|
42955
42955
|
}
|
|
42956
42956
|
return t2;
|
|
42957
42957
|
};
|
|
42958
|
+
// src/components/contents/ImageUrlContent.tsx
|
|
42959
|
+
import { c as _c45 } from "react-compiler-runtime";
|
|
42960
|
+
import { jsx as _jsx45 } from "react/jsx-runtime";
|
|
42961
|
+
var ImageUrlContent = function(t0) {
|
|
42962
|
+
var $ = _c45(2);
|
|
42963
|
+
var content2 = t0.content;
|
|
42964
|
+
var t1;
|
|
42965
|
+
if ($[0] !== content2.image_url.url) {
|
|
42966
|
+
t1 = /* @__PURE__ */ _jsx45(Image, {
|
|
42967
|
+
alt: "",
|
|
42968
|
+
src: content2.image_url.url
|
|
42969
|
+
});
|
|
42970
|
+
$[0] = content2.image_url.url;
|
|
42971
|
+
$[1] = t1;
|
|
42972
|
+
} else {
|
|
42973
|
+
t1 = $[1];
|
|
42974
|
+
}
|
|
42975
|
+
return t1;
|
|
42976
|
+
};
|
|
42958
42977
|
// src/components/messageGroups/MessageGroup/index.tsx
|
|
42959
|
-
import { c as
|
|
42978
|
+
import { c as _c51 } from "react-compiler-runtime";
|
|
42960
42979
|
import { useContext as useContext12 } from "react";
|
|
42961
42980
|
import { Box as Box9 } from "@radix-ui/themes";
|
|
42962
42981
|
// src/components/messageGroups/MessageGroup/Name.tsx
|
|
42963
|
-
import { c as
|
|
42982
|
+
import { c as _c46 } from "react-compiler-runtime";
|
|
42964
42983
|
import { Flex as Flex9, Text as Text6 } from "@radix-ui/themes";
|
|
42965
|
-
import { jsx as
|
|
42984
|
+
import { jsx as _jsx46 } from "react/jsx-runtime";
|
|
42966
42985
|
var Name = function(t0) {
|
|
42967
|
-
var $ =
|
|
42986
|
+
var $ = _c46(2);
|
|
42968
42987
|
var children = t0.children;
|
|
42969
42988
|
var t1;
|
|
42970
42989
|
if ($[0] !== children) {
|
|
42971
|
-
t1 = /* @__PURE__ */
|
|
42990
|
+
t1 = /* @__PURE__ */ _jsx46(Flex9, {
|
|
42972
42991
|
align: "center",
|
|
42973
42992
|
height: "var(--space-5)",
|
|
42974
|
-
children: /* @__PURE__ */
|
|
42993
|
+
children: /* @__PURE__ */ _jsx46(Text6, {
|
|
42975
42994
|
size: "2",
|
|
42976
42995
|
weight: "bold",
|
|
42977
42996
|
children: children
|
|
@@ -42985,20 +43004,20 @@ var Name = function(t0) {
|
|
|
42985
43004
|
return t1;
|
|
42986
43005
|
};
|
|
42987
43006
|
// src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
|
|
42988
|
-
import { c as
|
|
43007
|
+
import { c as _c47 } from "react-compiler-runtime";
|
|
42989
43008
|
import { useContext as useContext10 } from "react";
|
|
42990
43009
|
import { Flex as Flex10 } from "@radix-ui/themes";
|
|
42991
43010
|
// src/contexts/assistants/AssistantAvatarContext/index.tsx
|
|
42992
43011
|
import { createContext as createContext6 } from "react";
|
|
42993
43012
|
import { Avatar } from "@radix-ui/themes";
|
|
42994
43013
|
import { LightningBoltIcon } from "@radix-ui/react-icons";
|
|
42995
|
-
import { jsx as
|
|
42996
|
-
var AssistantAvatarContext = /* @__PURE__ */ createContext6(/* @__PURE__ */
|
|
42997
|
-
fallback: /* @__PURE__ */
|
|
43014
|
+
import { jsx as _jsx47 } from "react/jsx-runtime";
|
|
43015
|
+
var AssistantAvatarContext = /* @__PURE__ */ createContext6(/* @__PURE__ */ _jsx47(Avatar, {
|
|
43016
|
+
fallback: /* @__PURE__ */ _jsx47(LightningBoltIcon, {}),
|
|
42998
43017
|
size: "1"
|
|
42999
43018
|
}));
|
|
43000
43019
|
// src/components/messageGroups/MessageGroup/AssistantAvatar.tsx
|
|
43001
|
-
import { jsx as
|
|
43020
|
+
import { jsx as _jsx48 } from "react/jsx-runtime";
|
|
43002
43021
|
function ownKeys25(e, r) {
|
|
43003
43022
|
var t = Object.keys(e);
|
|
43004
43023
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -43043,7 +43062,7 @@ function _toPrimitive25(t, r) {
|
|
|
43043
43062
|
return ("string" === r ? String : Number)(t);
|
|
43044
43063
|
}
|
|
43045
43064
|
var Root2 = function(t0) {
|
|
43046
|
-
var $ =
|
|
43065
|
+
var $ = _c47(6);
|
|
43047
43066
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
43048
43067
|
var t1;
|
|
43049
43068
|
if ($[0] !== style) {
|
|
@@ -43058,7 +43077,7 @@ var Root2 = function(t0) {
|
|
|
43058
43077
|
}
|
|
43059
43078
|
var t2;
|
|
43060
43079
|
if ($[2] !== children || $[3] !== className || $[4] !== t1) {
|
|
43061
|
-
t2 = /* @__PURE__ */
|
|
43080
|
+
t2 = /* @__PURE__ */ _jsx48(Flex10, {
|
|
43062
43081
|
flexShrink: "0",
|
|
43063
43082
|
height: "24px",
|
|
43064
43083
|
width: "24px",
|
|
@@ -43076,12 +43095,12 @@ var Root2 = function(t0) {
|
|
|
43076
43095
|
return t2;
|
|
43077
43096
|
};
|
|
43078
43097
|
var AssistantAvatar = function(t0) {
|
|
43079
|
-
var $ =
|
|
43098
|
+
var $ = _c47(4);
|
|
43080
43099
|
var style = t0.style, className = t0.className;
|
|
43081
43100
|
var AssistantAvatarContextValue = useContext10(AssistantAvatarContext);
|
|
43082
43101
|
var t1;
|
|
43083
43102
|
if ($[0] !== AssistantAvatarContextValue || $[1] !== className || $[2] !== style) {
|
|
43084
|
-
t1 = /* @__PURE__ */
|
|
43103
|
+
t1 = /* @__PURE__ */ _jsx48(Root2, {
|
|
43085
43104
|
style: style,
|
|
43086
43105
|
className: className,
|
|
43087
43106
|
children: AssistantAvatarContextValue
|
|
@@ -43100,22 +43119,22 @@ AssistantAvatar.Root = Root2;
|
|
|
43100
43119
|
import { createContext as createContext7 } from "react";
|
|
43101
43120
|
var AssistantNameContext = /* @__PURE__ */ createContext7("Assistant");
|
|
43102
43121
|
// src/components/messageGroups/MessageGroup/UserAvatar.tsx
|
|
43103
|
-
import { c as
|
|
43122
|
+
import { c as _c48 } from "react-compiler-runtime";
|
|
43104
43123
|
import { useContext as useContext11 } from "react";
|
|
43105
43124
|
import { Flex as Flex11 } from "@radix-ui/themes";
|
|
43106
43125
|
// src/contexts/users/UserAvatarContext/index.tsx
|
|
43107
43126
|
import { createContext as createContext8 } from "react";
|
|
43108
43127
|
import { Avatar as Avatar2 } from "@radix-ui/themes";
|
|
43109
43128
|
import { PersonIcon } from "@radix-ui/react-icons";
|
|
43110
|
-
import { jsx as
|
|
43111
|
-
var UserAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */
|
|
43112
|
-
fallback: /* @__PURE__ */
|
|
43129
|
+
import { jsx as _jsx49 } from "react/jsx-runtime";
|
|
43130
|
+
var UserAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx49(Avatar2, {
|
|
43131
|
+
fallback: /* @__PURE__ */ _jsx49(PersonIcon, {}),
|
|
43113
43132
|
size: "1"
|
|
43114
43133
|
}));
|
|
43115
43134
|
// src/components/messageGroups/MessageGroup/UserAvatar.tsx
|
|
43116
|
-
import { jsx as
|
|
43135
|
+
import { jsx as _jsx50 } from "react/jsx-runtime";
|
|
43117
43136
|
var UserAvatar = function() {
|
|
43118
|
-
var $ =
|
|
43137
|
+
var $ = _c48(3);
|
|
43119
43138
|
var UserAvatarContextValue = useContext11(UserAvatarContext);
|
|
43120
43139
|
var t0;
|
|
43121
43140
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -43129,7 +43148,7 @@ var UserAvatar = function() {
|
|
|
43129
43148
|
}
|
|
43130
43149
|
var t1;
|
|
43131
43150
|
if ($[1] !== UserAvatarContextValue) {
|
|
43132
|
-
t1 = /* @__PURE__ */
|
|
43151
|
+
t1 = /* @__PURE__ */ _jsx50(Flex11, {
|
|
43133
43152
|
flexShrink: "0",
|
|
43134
43153
|
height: "24px",
|
|
43135
43154
|
width: "24px",
|
|
@@ -43144,11 +43163,11 @@ var UserAvatar = function() {
|
|
|
43144
43163
|
return t1;
|
|
43145
43164
|
};
|
|
43146
43165
|
// src/components/messageGroups/MessageGroup/Messages.tsx
|
|
43147
|
-
import { c as
|
|
43166
|
+
import { c as _c49 } from "react-compiler-runtime";
|
|
43148
43167
|
import { Flex as Flex12 } from "@radix-ui/themes";
|
|
43149
|
-
import { jsx as
|
|
43168
|
+
import { jsx as _jsx51 } from "react/jsx-runtime";
|
|
43150
43169
|
var Messages = function(t0) {
|
|
43151
|
-
var $ =
|
|
43170
|
+
var $ = _c49(4);
|
|
43152
43171
|
var messageGroup = t0.messageGroup;
|
|
43153
43172
|
var t1;
|
|
43154
43173
|
if ($[0] !== messageGroup.messages) {
|
|
@@ -43160,7 +43179,7 @@ var Messages = function(t0) {
|
|
|
43160
43179
|
}
|
|
43161
43180
|
var t2;
|
|
43162
43181
|
if ($[2] !== t1) {
|
|
43163
|
-
t2 = /* @__PURE__ */
|
|
43182
|
+
t2 = /* @__PURE__ */ _jsx51(Flex12, {
|
|
43164
43183
|
direction: "column-reverse",
|
|
43165
43184
|
children: t1
|
|
43166
43185
|
});
|
|
@@ -43172,21 +43191,21 @@ var Messages = function(t0) {
|
|
|
43172
43191
|
return t2;
|
|
43173
43192
|
};
|
|
43174
43193
|
function _temp(message) {
|
|
43175
|
-
return /* @__PURE__ */
|
|
43194
|
+
return /* @__PURE__ */ _jsx51(Message, {
|
|
43176
43195
|
message: message
|
|
43177
43196
|
}, message.id);
|
|
43178
43197
|
}
|
|
43179
43198
|
// src/components/messageGroups/MessageGroup/Root.tsx
|
|
43180
|
-
import { c as
|
|
43199
|
+
import { c as _c50 } from "react-compiler-runtime";
|
|
43181
43200
|
import { forwardRef as forwardRef2 } from "react";
|
|
43182
43201
|
import { Flex as Flex13, Container } from "@radix-ui/themes";
|
|
43183
|
-
import { jsx as
|
|
43202
|
+
import { jsx as _jsx52 } from "react/jsx-runtime";
|
|
43184
43203
|
var Root3 = /* @__PURE__ */ forwardRef2(function Root4(t0, ref) {
|
|
43185
|
-
var $ =
|
|
43204
|
+
var $ = _c50(7);
|
|
43186
43205
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
43187
43206
|
var t1;
|
|
43188
43207
|
if ($[0] !== children) {
|
|
43189
|
-
t1 = /* @__PURE__ */
|
|
43208
|
+
t1 = /* @__PURE__ */ _jsx52(Flex13, {
|
|
43190
43209
|
flexShrink: "0",
|
|
43191
43210
|
gap: "3",
|
|
43192
43211
|
children: children
|
|
@@ -43198,7 +43217,7 @@ var Root3 = /* @__PURE__ */ forwardRef2(function Root4(t0, ref) {
|
|
|
43198
43217
|
}
|
|
43199
43218
|
var t2;
|
|
43200
43219
|
if ($[2] !== className || $[3] !== ref || $[4] !== style || $[5] !== t1) {
|
|
43201
|
-
t2 = /* @__PURE__ */
|
|
43220
|
+
t2 = /* @__PURE__ */ _jsx52(Container, {
|
|
43202
43221
|
ref: ref,
|
|
43203
43222
|
size: "2",
|
|
43204
43223
|
flexGrow: "0",
|
|
@@ -43217,14 +43236,14 @@ var Root3 = /* @__PURE__ */ forwardRef2(function Root4(t0, ref) {
|
|
|
43217
43236
|
return t2;
|
|
43218
43237
|
});
|
|
43219
43238
|
// src/components/messageGroups/MessageGroup/index.tsx
|
|
43220
|
-
import { jsx as
|
|
43239
|
+
import { jsx as _jsx53, jsxs as _jsxs14, Fragment as _Fragment2 } from "react/jsx-runtime";
|
|
43221
43240
|
var Content5 = function(t0) {
|
|
43222
|
-
var $ =
|
|
43241
|
+
var $ = _c51(12);
|
|
43223
43242
|
var messageGroup = t0.messageGroup;
|
|
43224
43243
|
var assistantNameContext = useContext12(AssistantNameContext);
|
|
43225
43244
|
var t1;
|
|
43226
43245
|
if ($[0] !== messageGroup.role) {
|
|
43227
|
-
t1 = messageGroup.role === "user" ? /* @__PURE__ */
|
|
43246
|
+
t1 = messageGroup.role === "user" ? /* @__PURE__ */ _jsx53(UserAvatar, {}) : /* @__PURE__ */ _jsx53(AssistantAvatar, {});
|
|
43228
43247
|
$[0] = messageGroup.role;
|
|
43229
43248
|
$[1] = t1;
|
|
43230
43249
|
} else {
|
|
@@ -43233,7 +43252,7 @@ var Content5 = function(t0) {
|
|
|
43233
43252
|
var t2 = messageGroup.role === "user" ? "You" : assistantNameContext;
|
|
43234
43253
|
var t3;
|
|
43235
43254
|
if ($[2] !== t2) {
|
|
43236
|
-
t3 = /* @__PURE__ */
|
|
43255
|
+
t3 = /* @__PURE__ */ _jsx53(Name, {
|
|
43237
43256
|
children: t2
|
|
43238
43257
|
});
|
|
43239
43258
|
$[2] = t2;
|
|
@@ -43243,7 +43262,7 @@ var Content5 = function(t0) {
|
|
|
43243
43262
|
}
|
|
43244
43263
|
var t4;
|
|
43245
43264
|
if ($[4] !== messageGroup) {
|
|
43246
|
-
t4 = /* @__PURE__ */
|
|
43265
|
+
t4 = /* @__PURE__ */ _jsx53(Messages, {
|
|
43247
43266
|
messageGroup: messageGroup
|
|
43248
43267
|
});
|
|
43249
43268
|
$[4] = messageGroup;
|
|
@@ -43283,11 +43302,11 @@ var Content5 = function(t0) {
|
|
|
43283
43302
|
return t6;
|
|
43284
43303
|
};
|
|
43285
43304
|
var MessageGroup = function(t0) {
|
|
43286
|
-
var $ =
|
|
43305
|
+
var $ = _c51(6);
|
|
43287
43306
|
var messageGroup = t0.messageGroup, style = t0.style, className = t0.className;
|
|
43288
43307
|
var t1;
|
|
43289
43308
|
if ($[0] !== messageGroup) {
|
|
43290
|
-
t1 = /* @__PURE__ */
|
|
43309
|
+
t1 = /* @__PURE__ */ _jsx53(Content5, {
|
|
43291
43310
|
messageGroup: messageGroup
|
|
43292
43311
|
});
|
|
43293
43312
|
$[0] = messageGroup;
|
|
@@ -43297,7 +43316,7 @@ var MessageGroup = function(t0) {
|
|
|
43297
43316
|
}
|
|
43298
43317
|
var t2;
|
|
43299
43318
|
if ($[2] !== className || $[3] !== style || $[4] !== t1) {
|
|
43300
|
-
t2 = /* @__PURE__ */
|
|
43319
|
+
t2 = /* @__PURE__ */ _jsx53(Root3, {
|
|
43301
43320
|
className: className,
|
|
43302
43321
|
style: style,
|
|
43303
43322
|
children: t1
|
|
@@ -43318,20 +43337,20 @@ MessageGroup.UserAvatar = UserAvatar;
|
|
|
43318
43337
|
MessageGroup.Messages = Messages;
|
|
43319
43338
|
MessageGroup.Content = Content5;
|
|
43320
43339
|
// src/components/messages/MessageAttachments.tsx
|
|
43321
|
-
import { c as
|
|
43340
|
+
import { c as _c52 } from "react-compiler-runtime";
|
|
43322
43341
|
import { Flex as Flex14, Badge as Badge2 } from "@radix-ui/themes";
|
|
43323
43342
|
import { FileIcon } from "@radix-ui/react-icons";
|
|
43324
|
-
import { jsx as
|
|
43343
|
+
import { jsx as _jsx54, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
43325
43344
|
var MessageAttachments = function(t0) {
|
|
43326
43345
|
var _message$attachments;
|
|
43327
|
-
var $ =
|
|
43346
|
+
var $ = _c52(4);
|
|
43328
43347
|
var message = t0.message;
|
|
43329
43348
|
if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
|
|
43330
43349
|
return null;
|
|
43331
43350
|
}
|
|
43332
43351
|
var t1;
|
|
43333
43352
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43334
|
-
t1 = /* @__PURE__ */
|
|
43353
|
+
t1 = /* @__PURE__ */ _jsx54(FileIcon, {});
|
|
43335
43354
|
$[0] = t1;
|
|
43336
43355
|
} else {
|
|
43337
43356
|
t1 = $[0];
|
|
@@ -43339,7 +43358,7 @@ var MessageAttachments = function(t0) {
|
|
|
43339
43358
|
var t2 = message.attachments.length > 1 ? "s" : "";
|
|
43340
43359
|
var t3;
|
|
43341
43360
|
if ($[1] !== message.attachments.length || $[2] !== t2) {
|
|
43342
|
-
t3 = /* @__PURE__ */
|
|
43361
|
+
t3 = /* @__PURE__ */ _jsx54(Flex14, {
|
|
43343
43362
|
align: "start",
|
|
43344
43363
|
pb: "1",
|
|
43345
43364
|
children: /* @__PURE__ */ _jsxs15(Badge2, {
|
|
@@ -43362,18 +43381,18 @@ var MessageAttachments = function(t0) {
|
|
|
43362
43381
|
return t3;
|
|
43363
43382
|
};
|
|
43364
43383
|
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43365
|
-
import { c as
|
|
43384
|
+
import { c as _c54 } from "react-compiler-runtime";
|
|
43366
43385
|
import { useContext as useContext13 } from "react";
|
|
43367
43386
|
import { Box as Box10 } from "@radix-ui/themes";
|
|
43368
43387
|
// src/components/skeletons/StartingContentSkeleton/index.tsx
|
|
43369
|
-
import { c as
|
|
43388
|
+
import { c as _c53 } from "react-compiler-runtime";
|
|
43370
43389
|
import { Skeleton } from "@radix-ui/themes";
|
|
43371
|
-
import { jsx as
|
|
43390
|
+
import { jsx as _jsx55 } from "react/jsx-runtime";
|
|
43372
43391
|
var StartingContentSkeleton = function() {
|
|
43373
|
-
var $ =
|
|
43392
|
+
var $ = _c53(1);
|
|
43374
43393
|
var t0;
|
|
43375
43394
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43376
|
-
t0 = /* @__PURE__ */
|
|
43395
|
+
t0 = /* @__PURE__ */ _jsx55(Skeleton, {
|
|
43377
43396
|
loading: true,
|
|
43378
43397
|
mt: "1",
|
|
43379
43398
|
height: "var(--space-4)",
|
|
@@ -43390,13 +43409,13 @@ var StartingContentSkeleton = function() {
|
|
|
43390
43409
|
return t0;
|
|
43391
43410
|
};
|
|
43392
43411
|
// src/components/skeletons/StartingSkeleton/index.tsx
|
|
43393
|
-
import { jsx as
|
|
43412
|
+
import { jsx as _jsx56, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
43394
43413
|
var StartingSkeleton = function(t0) {
|
|
43395
|
-
var $ =
|
|
43414
|
+
var $ = _c54(3);
|
|
43396
43415
|
var children = t0.children;
|
|
43397
43416
|
var t1;
|
|
43398
43417
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43399
|
-
t1 = /* @__PURE__ */
|
|
43418
|
+
t1 = /* @__PURE__ */ _jsx56(Content6, {});
|
|
43400
43419
|
$[0] = t1;
|
|
43401
43420
|
} else {
|
|
43402
43421
|
t1 = $[0];
|
|
@@ -43417,19 +43436,19 @@ var StartingSkeleton = function(t0) {
|
|
|
43417
43436
|
return t2;
|
|
43418
43437
|
};
|
|
43419
43438
|
var Root5 = function(t0) {
|
|
43420
|
-
var $ =
|
|
43439
|
+
var $ = _c54(6);
|
|
43421
43440
|
var children = t0.children;
|
|
43422
43441
|
var assistantNameContext = useContext13(AssistantNameContext);
|
|
43423
43442
|
var t1;
|
|
43424
43443
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43425
|
-
t1 = /* @__PURE__ */
|
|
43444
|
+
t1 = /* @__PURE__ */ _jsx56(MessageGroup.AssistantAvatar, {});
|
|
43426
43445
|
$[0] = t1;
|
|
43427
43446
|
} else {
|
|
43428
43447
|
t1 = $[0];
|
|
43429
43448
|
}
|
|
43430
43449
|
var t2;
|
|
43431
43450
|
if ($[1] !== assistantNameContext) {
|
|
43432
|
-
t2 = /* @__PURE__ */
|
|
43451
|
+
t2 = /* @__PURE__ */ _jsx56(MessageGroup.Name, {
|
|
43433
43452
|
children: assistantNameContext
|
|
43434
43453
|
});
|
|
43435
43454
|
$[1] = assistantNameContext;
|
|
@@ -43462,18 +43481,18 @@ var Content6 = StartingContentSkeleton;
|
|
|
43462
43481
|
StartingSkeleton.Root = Root5;
|
|
43463
43482
|
StartingSkeleton.Content = Content6;
|
|
43464
43483
|
// src/components/skeletons/MessagesSkeleton/index.tsx
|
|
43465
|
-
import { c as
|
|
43484
|
+
import { c as _c55 } from "react-compiler-runtime";
|
|
43466
43485
|
import { forwardRef as forwardRef3 } from "react";
|
|
43467
43486
|
import { Flex as Flex15, Avatar as Avatar3, Box as Box11, Skeleton as Skeleton2 } from "@radix-ui/themes";
|
|
43468
|
-
import { jsx as
|
|
43487
|
+
import { jsx as _jsx57, jsxs as _jsxs17 } from "react/jsx-runtime";
|
|
43469
43488
|
var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
|
|
43470
|
-
var $ =
|
|
43489
|
+
var $ = _c55(7);
|
|
43471
43490
|
var t0;
|
|
43472
43491
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43473
|
-
t0 = /* @__PURE__ */
|
|
43492
|
+
t0 = /* @__PURE__ */ _jsx57(Skeleton2, {
|
|
43474
43493
|
loading: true,
|
|
43475
|
-
children: /* @__PURE__ */
|
|
43476
|
-
fallback: /* @__PURE__ */
|
|
43494
|
+
children: /* @__PURE__ */ _jsx57(Avatar3, {
|
|
43495
|
+
fallback: /* @__PURE__ */ _jsx57(Flex15, {}),
|
|
43477
43496
|
size: "1"
|
|
43478
43497
|
})
|
|
43479
43498
|
});
|
|
@@ -43483,8 +43502,8 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43483
43502
|
}
|
|
43484
43503
|
var t1;
|
|
43485
43504
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43486
|
-
t1 = /* @__PURE__ */
|
|
43487
|
-
children: /* @__PURE__ */
|
|
43505
|
+
t1 = /* @__PURE__ */ _jsx57(MessageGroup.Name, {
|
|
43506
|
+
children: /* @__PURE__ */ _jsx57(Skeleton2, {
|
|
43488
43507
|
loading: true,
|
|
43489
43508
|
style: {
|
|
43490
43509
|
width: "128px"
|
|
@@ -43497,7 +43516,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43497
43516
|
}
|
|
43498
43517
|
var t2;
|
|
43499
43518
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43500
|
-
t2 = /* @__PURE__ */
|
|
43519
|
+
t2 = /* @__PURE__ */ _jsx57(Skeleton2, {
|
|
43501
43520
|
loading: true,
|
|
43502
43521
|
style: {
|
|
43503
43522
|
width: "256px"
|
|
@@ -43509,7 +43528,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43509
43528
|
}
|
|
43510
43529
|
var t3;
|
|
43511
43530
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43512
|
-
t3 = /* @__PURE__ */
|
|
43531
|
+
t3 = /* @__PURE__ */ _jsx57(Skeleton2, {
|
|
43513
43532
|
loading: true,
|
|
43514
43533
|
style: {
|
|
43515
43534
|
width: "256px",
|
|
@@ -43528,7 +43547,7 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
|
|
|
43528
43547
|
t1,
|
|
43529
43548
|
t2,
|
|
43530
43549
|
t3,
|
|
43531
|
-
/* @__PURE__ */
|
|
43550
|
+
/* @__PURE__ */ _jsx57(Skeleton2, {
|
|
43532
43551
|
loading: true,
|
|
43533
43552
|
style: {
|
|
43534
43553
|
width: "256px",
|
|
@@ -43568,6 +43587,7 @@ var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
|
43568
43587
|
FallbackToolCall: FallbackToolCall,
|
|
43569
43588
|
TextContent: TextContent,
|
|
43570
43589
|
ImageFileContent: ImageFileContent,
|
|
43590
|
+
ImageUrlContent: ImageUrlContent,
|
|
43571
43591
|
MessageGroup: MessageGroup,
|
|
43572
43592
|
MessageAttachments: MessageAttachments,
|
|
43573
43593
|
StartingSkeleton: StartingSkeleton,
|
|
@@ -43576,9 +43596,9 @@ var ComponentsContext = /* @__PURE__ */ createContext9({
|
|
|
43576
43596
|
}
|
|
43577
43597
|
});
|
|
43578
43598
|
// src/components/runSteps/RunSteps/index.tsx
|
|
43579
|
-
import { jsx as
|
|
43599
|
+
import { jsx as _jsx58 } from "react/jsx-runtime";
|
|
43580
43600
|
var RunSteps = function(t0) {
|
|
43581
|
-
var $ =
|
|
43601
|
+
var $ = _c56(7);
|
|
43582
43602
|
var runSteps = t0.runSteps;
|
|
43583
43603
|
var componentsContext = useContext14(ComponentsContext);
|
|
43584
43604
|
var Component2 = componentsContext.components.RunStep;
|
|
@@ -43587,7 +43607,7 @@ var RunSteps = function(t0) {
|
|
|
43587
43607
|
var _t;
|
|
43588
43608
|
if ($[3] !== Component2) {
|
|
43589
43609
|
_t = function(runStep) {
|
|
43590
|
-
return /* @__PURE__ */
|
|
43610
|
+
return /* @__PURE__ */ _jsx58(Component2, {
|
|
43591
43611
|
runStep: runStep
|
|
43592
43612
|
}, runStep.id);
|
|
43593
43613
|
};
|
|
@@ -43605,7 +43625,7 @@ var RunSteps = function(t0) {
|
|
|
43605
43625
|
}
|
|
43606
43626
|
var t2;
|
|
43607
43627
|
if ($[5] !== t1) {
|
|
43608
|
-
t2 = /* @__PURE__ */
|
|
43628
|
+
t2 = /* @__PURE__ */ _jsx58(Flex16, {
|
|
43609
43629
|
direction: "column-reverse",
|
|
43610
43630
|
children: t1
|
|
43611
43631
|
});
|
|
@@ -43624,16 +43644,16 @@ var MessageContext = /* @__PURE__ */ createContext10({
|
|
|
43624
43644
|
// src/components/threads/Thread/Message/Provider.tsx
|
|
43625
43645
|
var Provider = MessageContext.Provider;
|
|
43626
43646
|
// src/components/threads/Thread/Message/Attachments/index.tsx
|
|
43627
|
-
import { c as
|
|
43628
|
-
import { jsx as
|
|
43647
|
+
import { c as _c57 } from "react-compiler-runtime";
|
|
43648
|
+
import { jsx as _jsx59 } from "react/jsx-runtime";
|
|
43629
43649
|
var Attachments = function(t0) {
|
|
43630
|
-
var $ =
|
|
43650
|
+
var $ = _c57(3);
|
|
43631
43651
|
var message = t0.message;
|
|
43632
43652
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43633
43653
|
var MessageAttachments2 = t1.MessageAttachments;
|
|
43634
43654
|
var t2;
|
|
43635
43655
|
if ($[0] !== MessageAttachments2 || $[1] !== message) {
|
|
43636
|
-
t2 = /* @__PURE__ */
|
|
43656
|
+
t2 = /* @__PURE__ */ _jsx59(MessageAttachments2, {
|
|
43637
43657
|
message: message
|
|
43638
43658
|
});
|
|
43639
43659
|
$[0] = MessageAttachments2;
|
|
@@ -43645,18 +43665,18 @@ var Attachments = function(t0) {
|
|
|
43645
43665
|
return t2;
|
|
43646
43666
|
};
|
|
43647
43667
|
// src/components/messages/MessageContent/index.tsx
|
|
43648
|
-
import { c as
|
|
43668
|
+
import { c as _c59 } from "react-compiler-runtime";
|
|
43649
43669
|
// src/components/messages/MessageContent/ContentPart/index.tsx
|
|
43650
|
-
import { c as
|
|
43651
|
-
import { jsx as
|
|
43670
|
+
import { c as _c58 } from "react-compiler-runtime";
|
|
43671
|
+
import { jsx as _jsx60 } from "react/jsx-runtime";
|
|
43652
43672
|
var TextContent2 = function(t0) {
|
|
43653
|
-
var $ =
|
|
43673
|
+
var $ = _c58(3);
|
|
43654
43674
|
var content2 = t0.content;
|
|
43655
43675
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43656
43676
|
var TextContent3 = t1.TextContent;
|
|
43657
43677
|
var t2;
|
|
43658
43678
|
if ($[0] !== TextContent3 || $[1] !== content2) {
|
|
43659
|
-
t2 = /* @__PURE__ */
|
|
43679
|
+
t2 = /* @__PURE__ */ _jsx60(TextContent3, {
|
|
43660
43680
|
content: content2
|
|
43661
43681
|
});
|
|
43662
43682
|
$[0] = TextContent3;
|
|
@@ -43668,13 +43688,13 @@ var TextContent2 = function(t0) {
|
|
|
43668
43688
|
return t2;
|
|
43669
43689
|
};
|
|
43670
43690
|
var ImageFileContent2 = function(t0) {
|
|
43671
|
-
var $ =
|
|
43691
|
+
var $ = _c58(3);
|
|
43672
43692
|
var content2 = t0.content;
|
|
43673
43693
|
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43674
43694
|
var ImageFileContent3 = t1.ImageFileContent;
|
|
43675
43695
|
var t2;
|
|
43676
43696
|
if ($[0] !== ImageFileContent3 || $[1] !== content2) {
|
|
43677
|
-
t2 = /* @__PURE__ */
|
|
43697
|
+
t2 = /* @__PURE__ */ _jsx60(ImageFileContent3, {
|
|
43678
43698
|
content: content2
|
|
43679
43699
|
});
|
|
43680
43700
|
$[0] = ImageFileContent3;
|
|
@@ -43685,13 +43705,31 @@ var ImageFileContent2 = function(t0) {
|
|
|
43685
43705
|
}
|
|
43686
43706
|
return t2;
|
|
43687
43707
|
};
|
|
43708
|
+
var ImageUrlContent2 = function(t0) {
|
|
43709
|
+
var $ = _c58(3);
|
|
43710
|
+
var content2 = t0.content;
|
|
43711
|
+
var _useComponents = useComponents(), t1 = _useComponents.components;
|
|
43712
|
+
var ImageUrlContent3 = t1.ImageUrlContent;
|
|
43713
|
+
var t2;
|
|
43714
|
+
if ($[0] !== ImageUrlContent3 || $[1] !== content2) {
|
|
43715
|
+
t2 = /* @__PURE__ */ _jsx60(ImageUrlContent3, {
|
|
43716
|
+
content: content2
|
|
43717
|
+
});
|
|
43718
|
+
$[0] = ImageUrlContent3;
|
|
43719
|
+
$[1] = content2;
|
|
43720
|
+
$[2] = t2;
|
|
43721
|
+
} else {
|
|
43722
|
+
t2 = $[2];
|
|
43723
|
+
}
|
|
43724
|
+
return t2;
|
|
43725
|
+
};
|
|
43688
43726
|
var ContentPart = function(t0) {
|
|
43689
|
-
var $ =
|
|
43727
|
+
var $ = _c58(6);
|
|
43690
43728
|
var content2 = t0.content;
|
|
43691
43729
|
if (content2.type === "text") {
|
|
43692
43730
|
var t1;
|
|
43693
43731
|
if ($[0] !== content2) {
|
|
43694
|
-
t1 = /* @__PURE__ */
|
|
43732
|
+
t1 = /* @__PURE__ */ _jsx60(TextContent2, {
|
|
43695
43733
|
content: content2
|
|
43696
43734
|
});
|
|
43697
43735
|
$[0] = content2;
|
|
@@ -43704,7 +43742,7 @@ var ContentPart = function(t0) {
|
|
|
43704
43742
|
if (content2.type === "image_file") {
|
|
43705
43743
|
var _t;
|
|
43706
43744
|
if ($[2] !== content2) {
|
|
43707
|
-
_t = /* @__PURE__ */
|
|
43745
|
+
_t = /* @__PURE__ */ _jsx60(ImageFileContent2, {
|
|
43708
43746
|
content: content2
|
|
43709
43747
|
});
|
|
43710
43748
|
$[2] = content2;
|
|
@@ -43714,12 +43752,25 @@ var ContentPart = function(t0) {
|
|
|
43714
43752
|
}
|
|
43715
43753
|
return _t;
|
|
43716
43754
|
}
|
|
43755
|
+
if (content2.type === "image_url") {
|
|
43756
|
+
var _t2;
|
|
43757
|
+
if ($[4] !== content2) {
|
|
43758
|
+
_t2 = /* @__PURE__ */ _jsx60(ImageUrlContent2, {
|
|
43759
|
+
content: content2
|
|
43760
|
+
});
|
|
43761
|
+
$[4] = content2;
|
|
43762
|
+
$[5] = _t2;
|
|
43763
|
+
} else {
|
|
43764
|
+
_t2 = $[5];
|
|
43765
|
+
}
|
|
43766
|
+
return _t2;
|
|
43767
|
+
}
|
|
43717
43768
|
return null;
|
|
43718
43769
|
};
|
|
43719
43770
|
// src/components/messages/MessageContent/index.tsx
|
|
43720
|
-
import { Fragment as _Fragment3, jsx as
|
|
43771
|
+
import { Fragment as _Fragment3, jsx as _jsx61 } from "react/jsx-runtime";
|
|
43721
43772
|
var MessageContent = function(t0) {
|
|
43722
|
-
var $ =
|
|
43773
|
+
var $ = _c59(4);
|
|
43723
43774
|
var message = t0.message;
|
|
43724
43775
|
var t1;
|
|
43725
43776
|
if ($[0] !== message.content) {
|
|
@@ -43731,7 +43782,7 @@ var MessageContent = function(t0) {
|
|
|
43731
43782
|
}
|
|
43732
43783
|
var t2;
|
|
43733
43784
|
if ($[2] !== t1) {
|
|
43734
|
-
t2 = /* @__PURE__ */
|
|
43785
|
+
t2 = /* @__PURE__ */ _jsx61(_Fragment3, {
|
|
43735
43786
|
children: t1
|
|
43736
43787
|
});
|
|
43737
43788
|
$[2] = t1;
|
|
@@ -43742,14 +43793,14 @@ var MessageContent = function(t0) {
|
|
|
43742
43793
|
return t2;
|
|
43743
43794
|
};
|
|
43744
43795
|
function _temp2(content2, index) {
|
|
43745
|
-
return /* @__PURE__ */
|
|
43796
|
+
return /* @__PURE__ */ _jsx61(ContentPart, {
|
|
43746
43797
|
content: content2
|
|
43747
43798
|
}, index);
|
|
43748
43799
|
}
|
|
43749
43800
|
// src/components/threads/Thread/Message/index.tsx
|
|
43750
|
-
import { jsx as
|
|
43801
|
+
import { jsx as _jsx62, jsxs as _jsxs18 } from "react/jsx-runtime";
|
|
43751
43802
|
var Message = function(t0) {
|
|
43752
|
-
var $ =
|
|
43803
|
+
var $ = _c60(40);
|
|
43753
43804
|
var message = t0.message, className = t0.className, style = t0.style;
|
|
43754
43805
|
var t1;
|
|
43755
43806
|
bb0: {
|
|
@@ -43879,7 +43930,7 @@ var Message = function(t0) {
|
|
|
43879
43930
|
}
|
|
43880
43931
|
var t3;
|
|
43881
43932
|
if ($[24] !== olderRunSteps_0) {
|
|
43882
|
-
t3 = /* @__PURE__ */
|
|
43933
|
+
t3 = /* @__PURE__ */ _jsx62(RunSteps, {
|
|
43883
43934
|
runSteps: olderRunSteps_0
|
|
43884
43935
|
});
|
|
43885
43936
|
$[24] = olderRunSteps_0;
|
|
@@ -43901,10 +43952,10 @@ var Message = function(t0) {
|
|
|
43901
43952
|
t5 = /* @__PURE__ */ _jsxs18(Box12, {
|
|
43902
43953
|
style: t4,
|
|
43903
43954
|
children: [
|
|
43904
|
-
/* @__PURE__ */
|
|
43955
|
+
/* @__PURE__ */ _jsx62(Attachments, {
|
|
43905
43956
|
message: message
|
|
43906
43957
|
}),
|
|
43907
|
-
/* @__PURE__ */
|
|
43958
|
+
/* @__PURE__ */ _jsx62(MessageContent, {
|
|
43908
43959
|
message: message
|
|
43909
43960
|
})
|
|
43910
43961
|
]
|
|
@@ -43916,7 +43967,7 @@ var Message = function(t0) {
|
|
|
43916
43967
|
}
|
|
43917
43968
|
var t6;
|
|
43918
43969
|
if ($[29] !== laterRunSteps_0) {
|
|
43919
|
-
t6 = /* @__PURE__ */
|
|
43970
|
+
t6 = /* @__PURE__ */ _jsx62(RunSteps, {
|
|
43920
43971
|
runSteps: laterRunSteps_0
|
|
43921
43972
|
});
|
|
43922
43973
|
$[29] = laterRunSteps_0;
|
|
@@ -43946,7 +43997,7 @@ var Message = function(t0) {
|
|
|
43946
43997
|
}
|
|
43947
43998
|
var t8;
|
|
43948
43999
|
if ($[37] !== t2 || $[38] !== t7) {
|
|
43949
|
-
t8 = /* @__PURE__ */
|
|
44000
|
+
t8 = /* @__PURE__ */ _jsx62(Provider, {
|
|
43950
44001
|
value: t2,
|
|
43951
44002
|
children: t7
|
|
43952
44003
|
});
|
|
@@ -43965,10 +44016,10 @@ function _temp22(runStep_1) {
|
|
|
43965
44016
|
return runStep_1.step_details.type === "message_creation";
|
|
43966
44017
|
}
|
|
43967
44018
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
43968
|
-
import { c as
|
|
44019
|
+
import { c as _c62 } from "react-compiler-runtime";
|
|
43969
44020
|
import { useEffect as useEffect3 } from "react";
|
|
43970
44021
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
43971
|
-
import { c as
|
|
44022
|
+
import { c as _c61 } from "react-compiler-runtime";
|
|
43972
44023
|
import { useMemo as useMemo11 } from "react";
|
|
43973
44024
|
// src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
|
|
43974
44025
|
import _6 from "lodash";
|
|
@@ -44073,7 +44124,7 @@ var messageGroups = function(_ref) {
|
|
|
44073
44124
|
};
|
|
44074
44125
|
// src/hooks/messageGroups/useMessageGroups/index.ts
|
|
44075
44126
|
var useMessageGroups = function(t0) {
|
|
44076
|
-
var $ =
|
|
44127
|
+
var $ = _c61(4);
|
|
44077
44128
|
var messages2 = t0.messages;
|
|
44078
44129
|
var t1;
|
|
44079
44130
|
var t2;
|
|
@@ -44100,9 +44151,9 @@ var useMessageGroups = function(t0) {
|
|
|
44100
44151
|
return t1;
|
|
44101
44152
|
};
|
|
44102
44153
|
// src/components/threads/Thread/Messages/Content/index.tsx
|
|
44103
|
-
import { jsx as
|
|
44154
|
+
import { jsx as _jsx63, Fragment as _Fragment4 } from "react/jsx-runtime";
|
|
44104
44155
|
var Content7 = function() {
|
|
44105
|
-
var $ =
|
|
44156
|
+
var $ = _c62(15);
|
|
44106
44157
|
var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
|
|
44107
44158
|
var addToast = useToasts().addToast;
|
|
44108
44159
|
var t0;
|
|
@@ -44145,7 +44196,7 @@ var Content7 = function() {
|
|
|
44145
44196
|
if (isLoading || isLoadingError) {
|
|
44146
44197
|
var _t;
|
|
44147
44198
|
if ($[6] !== MessagesSkeleton3) {
|
|
44148
|
-
_t = /* @__PURE__ */
|
|
44199
|
+
_t = /* @__PURE__ */ _jsx63(MessagesSkeleton3, {});
|
|
44149
44200
|
$[6] = MessagesSkeleton3;
|
|
44150
44201
|
$[7] = _t;
|
|
44151
44202
|
} else {
|
|
@@ -44158,7 +44209,7 @@ var Content7 = function() {
|
|
|
44158
44209
|
var _t2;
|
|
44159
44210
|
if ($[11] !== MessageGroup2) {
|
|
44160
44211
|
_t2 = function(messageGroup) {
|
|
44161
|
-
return /* @__PURE__ */
|
|
44212
|
+
return /* @__PURE__ */ _jsx63(MessageGroup2, {
|
|
44162
44213
|
messageGroup: messageGroup
|
|
44163
44214
|
}, messageGroup.id);
|
|
44164
44215
|
};
|
|
@@ -44176,7 +44227,7 @@ var Content7 = function() {
|
|
|
44176
44227
|
}
|
|
44177
44228
|
var t5;
|
|
44178
44229
|
if ($[13] !== t4) {
|
|
44179
|
-
t5 = /* @__PURE__ */
|
|
44230
|
+
t5 = /* @__PURE__ */ _jsx63(_Fragment4, {
|
|
44180
44231
|
children: t4
|
|
44181
44232
|
});
|
|
44182
44233
|
$[13] = t4;
|
|
@@ -44187,17 +44238,17 @@ var Content7 = function() {
|
|
|
44187
44238
|
return t5;
|
|
44188
44239
|
};
|
|
44189
44240
|
// src/components/threads/Thread/Messages/Progress/index.tsx
|
|
44190
|
-
import { c as
|
|
44241
|
+
import { c as _c63 } from "react-compiler-runtime";
|
|
44191
44242
|
import { useMemo as useMemo12 } from "react";
|
|
44192
44243
|
import { Box as Box13 } from "@radix-ui/themes";
|
|
44193
|
-
import { jsx as
|
|
44244
|
+
import { jsx as _jsx64, jsxs as _jsxs19 } from "react/jsx-runtime";
|
|
44194
44245
|
var StartingSkeleton2 = function() {
|
|
44195
|
-
var $ =
|
|
44246
|
+
var $ = _c63(2);
|
|
44196
44247
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44197
44248
|
var StartingSkeleton3 = t0.StartingSkeleton;
|
|
44198
44249
|
var t1;
|
|
44199
44250
|
if ($[0] !== StartingSkeleton3) {
|
|
44200
|
-
t1 = /* @__PURE__ */
|
|
44251
|
+
t1 = /* @__PURE__ */ _jsx64(StartingSkeleton3, {});
|
|
44201
44252
|
$[0] = StartingSkeleton3;
|
|
44202
44253
|
$[1] = t1;
|
|
44203
44254
|
} else {
|
|
@@ -44206,12 +44257,12 @@ var StartingSkeleton2 = function() {
|
|
|
44206
44257
|
return t1;
|
|
44207
44258
|
};
|
|
44208
44259
|
var StartingContentSkeleton2 = function() {
|
|
44209
|
-
var $ =
|
|
44260
|
+
var $ = _c63(2);
|
|
44210
44261
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44211
44262
|
var StartingContentSkeleton3 = t0.StartingContentSkeleton;
|
|
44212
44263
|
var t1;
|
|
44213
44264
|
if ($[0] !== StartingContentSkeleton3) {
|
|
44214
|
-
t1 = /* @__PURE__ */
|
|
44265
|
+
t1 = /* @__PURE__ */ _jsx64(StartingContentSkeleton3, {});
|
|
44215
44266
|
$[0] = StartingContentSkeleton3;
|
|
44216
44267
|
$[1] = t1;
|
|
44217
44268
|
} else {
|
|
@@ -44220,7 +44271,7 @@ var StartingContentSkeleton2 = function() {
|
|
|
44220
44271
|
return t1;
|
|
44221
44272
|
};
|
|
44222
44273
|
var Progress = function() {
|
|
44223
|
-
var $ =
|
|
44274
|
+
var $ = _c63(3);
|
|
44224
44275
|
var latestMessage = useLatestMessage().latestMessage;
|
|
44225
44276
|
var isMutatingMessage = useIsMutatingMessage();
|
|
44226
44277
|
var t0;
|
|
@@ -44253,7 +44304,7 @@ var Progress = function() {
|
|
|
44253
44304
|
if (isStartingSkeletonVisible) {
|
|
44254
44305
|
var t1;
|
|
44255
44306
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44256
|
-
t1 = /* @__PURE__ */
|
|
44307
|
+
t1 = /* @__PURE__ */ _jsx64(StartingSkeleton2, {});
|
|
44257
44308
|
$[0] = t1;
|
|
44258
44309
|
} else {
|
|
44259
44310
|
t1 = $[0];
|
|
@@ -44263,7 +44314,7 @@ var Progress = function() {
|
|
|
44263
44314
|
if (isMutatingMessage) {
|
|
44264
44315
|
var _t;
|
|
44265
44316
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44266
|
-
_t = /* @__PURE__ */
|
|
44317
|
+
_t = /* @__PURE__ */ _jsx64(MessageGroup.AssistantAvatar.Root, {});
|
|
44267
44318
|
$[1] = _t;
|
|
44268
44319
|
} else {
|
|
44269
44320
|
_t = $[1];
|
|
@@ -44273,8 +44324,8 @@ var Progress = function() {
|
|
|
44273
44324
|
t2 = /* @__PURE__ */ _jsxs19(MessageGroup.Root, {
|
|
44274
44325
|
children: [
|
|
44275
44326
|
_t,
|
|
44276
|
-
/* @__PURE__ */
|
|
44277
|
-
children: /* @__PURE__ */
|
|
44327
|
+
/* @__PURE__ */ _jsx64(Box13, {
|
|
44328
|
+
children: /* @__PURE__ */ _jsx64(StartingContentSkeleton2, {})
|
|
44278
44329
|
})
|
|
44279
44330
|
]
|
|
44280
44331
|
});
|
|
@@ -44287,7 +44338,7 @@ var Progress = function() {
|
|
|
44287
44338
|
return null;
|
|
44288
44339
|
};
|
|
44289
44340
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44290
|
-
import { c as
|
|
44341
|
+
import { c as _c64 } from "react-compiler-runtime";
|
|
44291
44342
|
import { Flex as Flex17 } from "@radix-ui/themes";
|
|
44292
44343
|
// src/hooks/misc/useInfiniteScroll/index.tsx
|
|
44293
44344
|
import { useRef as useRef3 } from "react";
|
|
@@ -44340,7 +44391,7 @@ var useInfiniteScroll = function(_ref) {
|
|
|
44340
44391
|
};
|
|
44341
44392
|
};
|
|
44342
44393
|
// src/components/threads/Thread/Messages/Root/index.tsx
|
|
44343
|
-
import { jsx as
|
|
44394
|
+
import { jsx as _jsx65, jsxs as _jsxs20 } from "react/jsx-runtime";
|
|
44344
44395
|
function ownKeys27(e, r) {
|
|
44345
44396
|
var t = Object.keys(e);
|
|
44346
44397
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44385,7 +44436,7 @@ function _toPrimitive27(t, r) {
|
|
|
44385
44436
|
return ("string" === r ? String : Number)(t);
|
|
44386
44437
|
}
|
|
44387
44438
|
var Root6 = function(t0) {
|
|
44388
|
-
var $ =
|
|
44439
|
+
var $ = _c64(18);
|
|
44389
44440
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44390
44441
|
var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
|
|
44391
44442
|
var t1;
|
|
@@ -44423,7 +44474,7 @@ var Root6 = function(t0) {
|
|
|
44423
44474
|
}
|
|
44424
44475
|
var t4;
|
|
44425
44476
|
if ($[8] !== hasNextPage || $[9] !== loaderRef) {
|
|
44426
|
-
t4 = hasNextPage && /* @__PURE__ */
|
|
44477
|
+
t4 = hasNextPage && /* @__PURE__ */ _jsx65(Flex17, {
|
|
44427
44478
|
ref: loaderRef
|
|
44428
44479
|
});
|
|
44429
44480
|
$[8] = hasNextPage;
|
|
@@ -44434,7 +44485,7 @@ var Root6 = function(t0) {
|
|
|
44434
44485
|
}
|
|
44435
44486
|
var t5;
|
|
44436
44487
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44437
|
-
t5 = /* @__PURE__ */
|
|
44488
|
+
t5 = /* @__PURE__ */ _jsx65(Flex17, {
|
|
44438
44489
|
flexShrink: "0",
|
|
44439
44490
|
flexGrow: "1"
|
|
44440
44491
|
});
|
|
@@ -44468,10 +44519,10 @@ var Root6 = function(t0) {
|
|
|
44468
44519
|
return t6;
|
|
44469
44520
|
};
|
|
44470
44521
|
// src/components/threads/Thread/Messages/NextPageSkeleton.tsx
|
|
44471
|
-
import { c as
|
|
44472
|
-
import { jsx as
|
|
44522
|
+
import { c as _c65 } from "react-compiler-runtime";
|
|
44523
|
+
import { jsx as _jsx66 } from "react/jsx-runtime";
|
|
44473
44524
|
var NextPageSkeleton = function() {
|
|
44474
|
-
var $ =
|
|
44525
|
+
var $ = _c65(2);
|
|
44475
44526
|
var hasNextPage = useMessages().hasNextPage;
|
|
44476
44527
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
44477
44528
|
var MessagesSkeleton3 = t0.MessagesSkeleton;
|
|
@@ -44480,7 +44531,7 @@ var NextPageSkeleton = function() {
|
|
|
44480
44531
|
}
|
|
44481
44532
|
var t1;
|
|
44482
44533
|
if ($[0] !== MessagesSkeleton3) {
|
|
44483
|
-
t1 = /* @__PURE__ */
|
|
44534
|
+
t1 = /* @__PURE__ */ _jsx66(MessagesSkeleton3, {});
|
|
44484
44535
|
$[0] = MessagesSkeleton3;
|
|
44485
44536
|
$[1] = t1;
|
|
44486
44537
|
} else {
|
|
@@ -44489,18 +44540,18 @@ var NextPageSkeleton = function() {
|
|
|
44489
44540
|
return t1;
|
|
44490
44541
|
};
|
|
44491
44542
|
// src/components/threads/Thread/Messages/index.tsx
|
|
44492
|
-
import { jsx as
|
|
44543
|
+
import { jsx as _jsx67, jsxs as _jsxs21 } from "react/jsx-runtime";
|
|
44493
44544
|
var Messages2 = function(t0) {
|
|
44494
|
-
var $ =
|
|
44545
|
+
var $ = _c66(9);
|
|
44495
44546
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
44496
44547
|
var t1;
|
|
44497
44548
|
var t2;
|
|
44498
44549
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44499
|
-
t1 = /* @__PURE__ */
|
|
44550
|
+
t1 = /* @__PURE__ */ _jsx67(Flex18, {
|
|
44500
44551
|
flexShrink: "0",
|
|
44501
44552
|
height: "var(--space-3)"
|
|
44502
44553
|
});
|
|
44503
|
-
t2 = /* @__PURE__ */
|
|
44554
|
+
t2 = /* @__PURE__ */ _jsx67(Progress, {});
|
|
44504
44555
|
$[0] = t1;
|
|
44505
44556
|
$[1] = t2;
|
|
44506
44557
|
} else {
|
|
@@ -44511,9 +44562,9 @@ var Messages2 = function(t0) {
|
|
|
44511
44562
|
var t4;
|
|
44512
44563
|
var t5;
|
|
44513
44564
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44514
|
-
t3 = /* @__PURE__ */
|
|
44515
|
-
t4 = /* @__PURE__ */
|
|
44516
|
-
t5 = /* @__PURE__ */
|
|
44565
|
+
t3 = /* @__PURE__ */ _jsx67(Content7, {});
|
|
44566
|
+
t4 = /* @__PURE__ */ _jsx67(NextPageSkeleton, {});
|
|
44567
|
+
t5 = /* @__PURE__ */ _jsx67(Flex18, {
|
|
44517
44568
|
flexShrink: "0",
|
|
44518
44569
|
flexGrow: "1",
|
|
44519
44570
|
minHeight: "var(--space-5)"
|
|
@@ -44554,9 +44605,9 @@ Messages2.Message = Message;
|
|
|
44554
44605
|
Messages2.NextPageSkeleton = NextPageSkeleton;
|
|
44555
44606
|
Messages2.Content = Content7;
|
|
44556
44607
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
44557
|
-
import { c as
|
|
44608
|
+
import { c as _c73 } from "react-compiler-runtime";
|
|
44558
44609
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44559
|
-
import { c as
|
|
44610
|
+
import { c as _c67 } from "react-compiler-runtime";
|
|
44560
44611
|
import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
|
|
44561
44612
|
import { IconButton as IconButton5, Flex as Flex19 } from "@radix-ui/themes";
|
|
44562
44613
|
// src/hooks/messages/useMessageFormContext/index.ts
|
|
@@ -44576,7 +44627,7 @@ var useMessageFormContext = function() {
|
|
|
44576
44627
|
return useContext15(MessageFormContext);
|
|
44577
44628
|
};
|
|
44578
44629
|
// src/components/threads/Thread/MessageForm/Submit/index.tsx
|
|
44579
|
-
import { jsx as
|
|
44630
|
+
import { jsx as _jsx68 } from "react/jsx-runtime";
|
|
44580
44631
|
function ownKeys28(e, r) {
|
|
44581
44632
|
var t = Object.keys(e);
|
|
44582
44633
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44621,11 +44672,11 @@ function _toPrimitive28(t, r) {
|
|
|
44621
44672
|
return ("string" === r ? String : Number)(t);
|
|
44622
44673
|
}
|
|
44623
44674
|
var Root7 = function(t0) {
|
|
44624
|
-
var $ =
|
|
44675
|
+
var $ = _c67(4);
|
|
44625
44676
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
44626
44677
|
var t1;
|
|
44627
44678
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
44628
|
-
t1 = /* @__PURE__ */
|
|
44679
|
+
t1 = /* @__PURE__ */ _jsx68(Flex19, {
|
|
44629
44680
|
flexShrink: "0",
|
|
44630
44681
|
align: "end",
|
|
44631
44682
|
style: style,
|
|
@@ -44642,7 +44693,7 @@ var Root7 = function(t0) {
|
|
|
44642
44693
|
return t1;
|
|
44643
44694
|
};
|
|
44644
44695
|
var Button3 = function(props) {
|
|
44645
|
-
var $ =
|
|
44696
|
+
var $ = _c67(10);
|
|
44646
44697
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
44647
44698
|
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
|
|
44648
44699
|
if (isLoading) {
|
|
@@ -44659,14 +44710,14 @@ var Button3 = function(props) {
|
|
|
44659
44710
|
}
|
|
44660
44711
|
var _t2;
|
|
44661
44712
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44662
|
-
_t2 = /* @__PURE__ */
|
|
44713
|
+
_t2 = /* @__PURE__ */ _jsx68(StopIcon, {});
|
|
44663
44714
|
$[2] = _t2;
|
|
44664
44715
|
} else {
|
|
44665
44716
|
_t2 = $[2];
|
|
44666
44717
|
}
|
|
44667
44718
|
var _t3;
|
|
44668
44719
|
if ($[3] !== props || $[4] !== _t) {
|
|
44669
|
-
_t3 = /* @__PURE__ */
|
|
44720
|
+
_t3 = /* @__PURE__ */ _jsx68(IconButton5, _objectSpread28(_objectSpread28({
|
|
44670
44721
|
type: "button",
|
|
44671
44722
|
onClick: _t
|
|
44672
44723
|
}, props), {}, {
|
|
@@ -44683,14 +44734,14 @@ var Button3 = function(props) {
|
|
|
44683
44734
|
var t0 = isDisabled || isFileLoading;
|
|
44684
44735
|
var t1;
|
|
44685
44736
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44686
|
-
t1 = /* @__PURE__ */
|
|
44737
|
+
t1 = /* @__PURE__ */ _jsx68(ArrowUpIcon2, {});
|
|
44687
44738
|
$[6] = t1;
|
|
44688
44739
|
} else {
|
|
44689
44740
|
t1 = $[6];
|
|
44690
44741
|
}
|
|
44691
44742
|
var t2;
|
|
44692
44743
|
if ($[7] !== props || $[8] !== t0) {
|
|
44693
|
-
t2 = /* @__PURE__ */
|
|
44744
|
+
t2 = /* @__PURE__ */ _jsx68(IconButton5, _objectSpread28(_objectSpread28({
|
|
44694
44745
|
type: "submit",
|
|
44695
44746
|
disabled: t0
|
|
44696
44747
|
}, props), {}, {
|
|
@@ -44705,17 +44756,17 @@ var Button3 = function(props) {
|
|
|
44705
44756
|
return t2;
|
|
44706
44757
|
};
|
|
44707
44758
|
var Submit = function(props) {
|
|
44708
|
-
var $ =
|
|
44759
|
+
var $ = _c67(3);
|
|
44709
44760
|
var t0;
|
|
44710
44761
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44711
|
-
t0 = /* @__PURE__ */
|
|
44762
|
+
t0 = /* @__PURE__ */ _jsx68(Button3, {});
|
|
44712
44763
|
$[0] = t0;
|
|
44713
44764
|
} else {
|
|
44714
44765
|
t0 = $[0];
|
|
44715
44766
|
}
|
|
44716
44767
|
var t1;
|
|
44717
44768
|
if ($[1] !== props) {
|
|
44718
|
-
t1 = /* @__PURE__ */
|
|
44769
|
+
t1 = /* @__PURE__ */ _jsx68(Root7, _objectSpread28(_objectSpread28({}, props), {}, {
|
|
44719
44770
|
children: t0
|
|
44720
44771
|
}));
|
|
44721
44772
|
$[1] = props;
|
|
@@ -44743,7 +44794,7 @@ var formOptions = {
|
|
|
44743
44794
|
};
|
|
44744
44795
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44745
44796
|
import { partob } from "radash";
|
|
44746
|
-
import { jsx as
|
|
44797
|
+
import { jsx as _jsx69 } from "react/jsx-runtime";
|
|
44747
44798
|
function ownKeys29(e, r) {
|
|
44748
44799
|
var t = Object.keys(e);
|
|
44749
44800
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -44919,7 +44970,7 @@ var Root8 = function(_ref) {
|
|
|
44919
44970
|
};
|
|
44920
44971
|
}();
|
|
44921
44972
|
var content_0 = watch("content");
|
|
44922
|
-
return /* @__PURE__ */
|
|
44973
|
+
return /* @__PURE__ */ _jsx69(MessageFormContext.Provider, {
|
|
44923
44974
|
value: {
|
|
44924
44975
|
isDisabled: isDisabled,
|
|
44925
44976
|
isLoading: isLoading,
|
|
@@ -44928,13 +44979,13 @@ var Root8 = function(_ref) {
|
|
|
44928
44979
|
isFileLoading: isFileLoading,
|
|
44929
44980
|
content: content_0
|
|
44930
44981
|
},
|
|
44931
|
-
children: /* @__PURE__ */
|
|
44932
|
-
children: /* @__PURE__ */
|
|
44982
|
+
children: /* @__PURE__ */ _jsx69(FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
|
|
44983
|
+
children: /* @__PURE__ */ _jsx69(Box14, {
|
|
44933
44984
|
asChild: true,
|
|
44934
44985
|
flexShrink: "0",
|
|
44935
44986
|
style: style,
|
|
44936
44987
|
className: className,
|
|
44937
|
-
children: /* @__PURE__ */
|
|
44988
|
+
children: /* @__PURE__ */ _jsx69("form", {
|
|
44938
44989
|
onSubmit: handleSubmit(onSubmit),
|
|
44939
44990
|
children: children
|
|
44940
44991
|
})
|
|
@@ -44946,7 +44997,7 @@ var Root8 = function(_ref) {
|
|
|
44946
44997
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
44947
44998
|
import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
|
|
44948
44999
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44949
|
-
import { c as
|
|
45000
|
+
import { c as _c69 } from "react-compiler-runtime";
|
|
44950
45001
|
import { Flex as Flex20 } from "@radix-ui/themes";
|
|
44951
45002
|
import { useFormContext } from "react-hook-form";
|
|
44952
45003
|
// src/hooks/misc/usePrevious.ts
|
|
@@ -44961,10 +45012,10 @@ var usePrevious = function(state) {
|
|
|
44961
45012
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44962
45013
|
import { useContext as useContext16, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
|
|
44963
45014
|
// src/components/textareas/TextareaBase/index.tsx
|
|
44964
|
-
import { c as
|
|
45015
|
+
import { c as _c68 } from "react-compiler-runtime";
|
|
44965
45016
|
import { forwardRef as forwardRef4 } from "react";
|
|
44966
45017
|
import TextareaAutosize from "react-textarea-autosize";
|
|
44967
|
-
import { jsx as
|
|
45018
|
+
import { jsx as _jsx70, Fragment as _Fragment5, jsxs as _jsxs22 } from "react/jsx-runtime";
|
|
44968
45019
|
var _excluded3 = [
|
|
44969
45020
|
"style",
|
|
44970
45021
|
"className"
|
|
@@ -45031,7 +45082,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
|
|
|
45031
45082
|
return t;
|
|
45032
45083
|
}
|
|
45033
45084
|
var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
45034
|
-
var $ =
|
|
45085
|
+
var $ = _c68(14);
|
|
45035
45086
|
var className;
|
|
45036
45087
|
var rest;
|
|
45037
45088
|
var style;
|
|
@@ -45052,7 +45103,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
45052
45103
|
}
|
|
45053
45104
|
var t1;
|
|
45054
45105
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45055
|
-
t1 = /* @__PURE__ */
|
|
45106
|
+
t1 = /* @__PURE__ */ _jsx70("style", {
|
|
45056
45107
|
children: ".superinterface-textarea { min-height: inherit; height: 30px; }\n.superinterface-textarea::placeholder { color: var(--gray-a10); }"
|
|
45057
45108
|
});
|
|
45058
45109
|
$[4] = t1;
|
|
@@ -45089,7 +45140,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
45089
45140
|
t5 = /* @__PURE__ */ _jsxs22(_Fragment5, {
|
|
45090
45141
|
children: [
|
|
45091
45142
|
t1,
|
|
45092
|
-
/* @__PURE__ */
|
|
45143
|
+
/* @__PURE__ */ _jsx70(TextareaAutosize, _objectSpread30({
|
|
45093
45144
|
ref: ref,
|
|
45094
45145
|
className: t2,
|
|
45095
45146
|
style: t4
|
|
@@ -45107,7 +45158,7 @@ var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
|
|
|
45107
45158
|
return t5;
|
|
45108
45159
|
});
|
|
45109
45160
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
45110
|
-
import { jsx as
|
|
45161
|
+
import { jsx as _jsx71 } from "react/jsx-runtime";
|
|
45111
45162
|
function ownKeys31(e, r) {
|
|
45112
45163
|
var t = Object.keys(e);
|
|
45113
45164
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45152,11 +45203,11 @@ function _toPrimitive31(t, r) {
|
|
|
45152
45203
|
return ("string" === r ? String : Number)(t);
|
|
45153
45204
|
}
|
|
45154
45205
|
var Root9 = function(t0) {
|
|
45155
|
-
var $ =
|
|
45206
|
+
var $ = _c69(4);
|
|
45156
45207
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
45157
45208
|
var t1;
|
|
45158
45209
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
45159
|
-
t1 = /* @__PURE__ */
|
|
45210
|
+
t1 = /* @__PURE__ */ _jsx71(Flex20, {
|
|
45160
45211
|
flexGrow: "1",
|
|
45161
45212
|
pt: "4px",
|
|
45162
45213
|
style: style,
|
|
@@ -45197,7 +45248,7 @@ var Input = function(props) {
|
|
|
45197
45248
|
isDisabledPrevious,
|
|
45198
45249
|
textareaProps
|
|
45199
45250
|
]);
|
|
45200
|
-
return /* @__PURE__ */
|
|
45251
|
+
return /* @__PURE__ */ _jsx71(TextareaBase, _objectSpread31(_objectSpread31(_objectSpread31({
|
|
45201
45252
|
minRows: 1,
|
|
45202
45253
|
placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : "Message ".concat(assistantNameContext, "..."),
|
|
45203
45254
|
disabled: isDisabled,
|
|
@@ -45217,17 +45268,17 @@ var Input = function(props) {
|
|
|
45217
45268
|
}));
|
|
45218
45269
|
};
|
|
45219
45270
|
var Control = function(props) {
|
|
45220
|
-
var $ =
|
|
45271
|
+
var $ = _c69(3);
|
|
45221
45272
|
var t0;
|
|
45222
45273
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45223
|
-
t0 = /* @__PURE__ */
|
|
45274
|
+
t0 = /* @__PURE__ */ _jsx71(Input, {});
|
|
45224
45275
|
$[0] = t0;
|
|
45225
45276
|
} else {
|
|
45226
45277
|
t0 = $[0];
|
|
45227
45278
|
}
|
|
45228
45279
|
var t1;
|
|
45229
45280
|
if ($[1] !== props) {
|
|
45230
|
-
t1 = /* @__PURE__ */
|
|
45281
|
+
t1 = /* @__PURE__ */ _jsx71(Root9, _objectSpread31(_objectSpread31({}, props), {}, {
|
|
45231
45282
|
children: t0
|
|
45232
45283
|
}));
|
|
45233
45284
|
$[1] = props;
|
|
@@ -45240,10 +45291,10 @@ var Control = function(props) {
|
|
|
45240
45291
|
Control.Root = Root9;
|
|
45241
45292
|
Control.Input = Input;
|
|
45242
45293
|
// src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
|
|
45243
|
-
import { c as
|
|
45294
|
+
import { c as _c70 } from "react-compiler-runtime";
|
|
45244
45295
|
import { Flex as Flex21, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
|
|
45245
45296
|
import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
|
|
45246
|
-
import { jsx as
|
|
45297
|
+
import { jsx as _jsx72, jsxs as _jsxs23 } from "react/jsx-runtime";
|
|
45247
45298
|
function ownKeys32(e, r) {
|
|
45248
45299
|
var t = Object.keys(e);
|
|
45249
45300
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45288,7 +45339,7 @@ function _toPrimitive32(t, r) {
|
|
|
45288
45339
|
return ("string" === r ? String : Number)(t);
|
|
45289
45340
|
}
|
|
45290
45341
|
var Preview = function(props) {
|
|
45291
|
-
var $ =
|
|
45342
|
+
var $ = _c70(8);
|
|
45292
45343
|
var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
|
|
45293
45344
|
if (!files.length) {
|
|
45294
45345
|
return null;
|
|
@@ -45298,7 +45349,7 @@ var Preview = function(props) {
|
|
|
45298
45349
|
var _t;
|
|
45299
45350
|
if ($[3] !== setFiles) {
|
|
45300
45351
|
_t = function(file) {
|
|
45301
|
-
return /* @__PURE__ */
|
|
45352
|
+
return /* @__PURE__ */ _jsx72(Card2, {
|
|
45302
45353
|
variant: "ghost",
|
|
45303
45354
|
children: /* @__PURE__ */ _jsxs23(Flex21, {
|
|
45304
45355
|
align: "center",
|
|
@@ -45312,16 +45363,16 @@ var Preview = function(props) {
|
|
|
45312
45363
|
minWidth: "0",
|
|
45313
45364
|
maxWidth: "250px",
|
|
45314
45365
|
children: [
|
|
45315
|
-
/* @__PURE__ */
|
|
45366
|
+
/* @__PURE__ */ _jsx72(Flex21, {
|
|
45316
45367
|
flexShrink: "0",
|
|
45317
|
-
children: /* @__PURE__ */
|
|
45368
|
+
children: /* @__PURE__ */ _jsx72(Spinner2, {
|
|
45318
45369
|
loading: isOptimistic({
|
|
45319
45370
|
id: file.id
|
|
45320
45371
|
}),
|
|
45321
|
-
children: /* @__PURE__ */
|
|
45372
|
+
children: /* @__PURE__ */ _jsx72(FileIcon2, {})
|
|
45322
45373
|
})
|
|
45323
45374
|
}),
|
|
45324
|
-
/* @__PURE__ */
|
|
45375
|
+
/* @__PURE__ */ _jsx72(Text7, {
|
|
45325
45376
|
size: "2",
|
|
45326
45377
|
truncate: true,
|
|
45327
45378
|
wrap: "nowrap",
|
|
@@ -45329,9 +45380,9 @@ var Preview = function(props) {
|
|
|
45329
45380
|
})
|
|
45330
45381
|
]
|
|
45331
45382
|
}),
|
|
45332
|
-
/* @__PURE__ */
|
|
45383
|
+
/* @__PURE__ */ _jsx72(Flex21, {
|
|
45333
45384
|
flexShrink: "0",
|
|
45334
|
-
children: /* @__PURE__ */
|
|
45385
|
+
children: /* @__PURE__ */ _jsx72(IconButton6, {
|
|
45335
45386
|
onClick: function() {
|
|
45336
45387
|
return setFiles(function(prev) {
|
|
45337
45388
|
return prev.filter(function(prevFile) {
|
|
@@ -45342,7 +45393,7 @@ var Preview = function(props) {
|
|
|
45342
45393
|
color: "gray",
|
|
45343
45394
|
variant: "ghost",
|
|
45344
45395
|
size: "1",
|
|
45345
|
-
children: /* @__PURE__ */
|
|
45396
|
+
children: /* @__PURE__ */ _jsx72(Cross2Icon, {})
|
|
45346
45397
|
})
|
|
45347
45398
|
})
|
|
45348
45399
|
]
|
|
@@ -45363,7 +45414,7 @@ var Preview = function(props) {
|
|
|
45363
45414
|
}
|
|
45364
45415
|
var t1;
|
|
45365
45416
|
if ($[5] !== props || $[6] !== t0) {
|
|
45366
|
-
t1 = /* @__PURE__ */
|
|
45417
|
+
t1 = /* @__PURE__ */ _jsx72(Flex21, _objectSpread32(_objectSpread32({
|
|
45367
45418
|
flexBasis: "100%",
|
|
45368
45419
|
direction: "column",
|
|
45369
45420
|
pb: "2",
|
|
@@ -45380,7 +45431,7 @@ var Preview = function(props) {
|
|
|
45380
45431
|
return t1;
|
|
45381
45432
|
};
|
|
45382
45433
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45383
|
-
import { c as
|
|
45434
|
+
import { c as _c72 } from "react-compiler-runtime";
|
|
45384
45435
|
import { FilePlusIcon } from "@radix-ui/react-icons";
|
|
45385
45436
|
import { IconButton as IconButton7, Flex as Flex22 } from "@radix-ui/themes";
|
|
45386
45437
|
// src/hooks/files/useChangeFilesField/index.ts
|
|
@@ -45388,7 +45439,7 @@ import { useCallback as useCallback3 } from "react";
|
|
|
45388
45439
|
import { omit as omit4 } from "radash";
|
|
45389
45440
|
import dayjs2 from "dayjs";
|
|
45390
45441
|
// src/hooks/files/useCreateFile/index.ts
|
|
45391
|
-
import { c as
|
|
45442
|
+
import { c as _c71 } from "react-compiler-runtime";
|
|
45392
45443
|
import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
45393
45444
|
// src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
|
|
45394
45445
|
var formData = function(variables) {
|
|
@@ -45624,7 +45675,7 @@ function _toPrimitive35(t, r) {
|
|
|
45624
45675
|
return ("string" === r ? String : Number)(t);
|
|
45625
45676
|
}
|
|
45626
45677
|
var useCreateFile = function(t0) {
|
|
45627
|
-
var $ =
|
|
45678
|
+
var $ = _c71(15);
|
|
45628
45679
|
var t1;
|
|
45629
45680
|
if ($[0] !== t0) {
|
|
45630
45681
|
t1 = t0 === void 0 ? {
|
|
@@ -45953,7 +46004,7 @@ var useChangeFilesField = function() {
|
|
|
45953
46004
|
// src/lib/files/filesFieldAccept.ts
|
|
45954
46005
|
var filesFieldAccept = ".c,text/x-c,\n.cs,text/x-csharp,\n.cpp,text/x-c++,\n.doc,application/msword,\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,\n.html,text/html,\n.java,text/x-java,\n.json,application/json,\n.md,text/markdown,\n.pdf,application/pdf,\n.php,text/x-php,\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation,\n.py,text/x-python,\n.py,text/x-script.python,\n.rb,text/x-ruby,\n.tex,text/x-tex,\n.txt,text/plain,\n.css,text/css,\n.js,text/javascript,\n.sh,application/x-sh,\n.ts,application/typescript,\n.png,image/png,\n.jpeg,image/jpeg,\n.jpg,image/jpeg,\n.webp,image/webp,\n.gif,image/gif";
|
|
45955
46006
|
// src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
|
|
45956
|
-
import { jsx as
|
|
46007
|
+
import { jsx as _jsx73, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
45957
46008
|
function ownKeys36(e, r) {
|
|
45958
46009
|
var t = Object.keys(e);
|
|
45959
46010
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -45998,7 +46049,7 @@ function _toPrimitive36(t, r) {
|
|
|
45998
46049
|
return ("string" === r ? String : Number)(t);
|
|
45999
46050
|
}
|
|
46000
46051
|
var Control2 = function(props) {
|
|
46001
|
-
var $ =
|
|
46052
|
+
var $ = _c72(11);
|
|
46002
46053
|
var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
|
|
46003
46054
|
var changeFilesField = useChangeFilesField().changeFilesField;
|
|
46004
46055
|
var t0 = isDisabled || isLoading;
|
|
@@ -46009,7 +46060,7 @@ var Control2 = function(props) {
|
|
|
46009
46060
|
position: "relative",
|
|
46010
46061
|
overflow: "hidden"
|
|
46011
46062
|
};
|
|
46012
|
-
t2 = /* @__PURE__ */
|
|
46063
|
+
t2 = /* @__PURE__ */ _jsx73(FilePlusIcon, {});
|
|
46013
46064
|
$[0] = t1;
|
|
46014
46065
|
$[1] = t2;
|
|
46015
46066
|
} else {
|
|
@@ -46033,7 +46084,7 @@ var Control2 = function(props) {
|
|
|
46033
46084
|
}
|
|
46034
46085
|
var t4;
|
|
46035
46086
|
if ($[3] !== changeFilesField) {
|
|
46036
|
-
t4 = /* @__PURE__ */
|
|
46087
|
+
t4 = /* @__PURE__ */ _jsx73("input", {
|
|
46037
46088
|
type: "file",
|
|
46038
46089
|
multiple: true,
|
|
46039
46090
|
accept: filesFieldAccept,
|
|
@@ -46066,7 +46117,7 @@ var Control2 = function(props) {
|
|
|
46066
46117
|
}
|
|
46067
46118
|
var t6;
|
|
46068
46119
|
if ($[8] !== props || $[9] !== t5) {
|
|
46069
|
-
t6 = /* @__PURE__ */
|
|
46120
|
+
t6 = /* @__PURE__ */ _jsx73(Flex22, _objectSpread36(_objectSpread36({
|
|
46070
46121
|
pt: "2",
|
|
46071
46122
|
pr: "2",
|
|
46072
46123
|
flexGrow: "0"
|
|
@@ -46087,7 +46138,7 @@ var Files = {
|
|
|
46087
46138
|
Control: Control2
|
|
46088
46139
|
};
|
|
46089
46140
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
46090
|
-
import { jsx as
|
|
46141
|
+
import { jsx as _jsx74 } from "react/jsx-runtime";
|
|
46091
46142
|
function ownKeys37(e, r) {
|
|
46092
46143
|
var t = Object.keys(e);
|
|
46093
46144
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46135,18 +46186,18 @@ var Root10 = function(_ref) {
|
|
|
46135
46186
|
"use no memo";
|
|
46136
46187
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
46137
46188
|
var _useFormContext2 = useFormContext2(), errors = _useFormContext2.formState.errors;
|
|
46138
|
-
return /* @__PURE__ */
|
|
46189
|
+
return /* @__PURE__ */ _jsx74(RadixContainer, {
|
|
46139
46190
|
size: "2",
|
|
46140
46191
|
flexGrow: "0",
|
|
46141
46192
|
className: className,
|
|
46142
46193
|
style: style,
|
|
46143
|
-
children: /* @__PURE__ */
|
|
46194
|
+
children: /* @__PURE__ */ _jsx74(Flex23, {
|
|
46144
46195
|
direction: "column",
|
|
46145
46196
|
flexShrink: "0",
|
|
46146
|
-
children: /* @__PURE__ */
|
|
46197
|
+
children: /* @__PURE__ */ _jsx74(Flex23, {
|
|
46147
46198
|
direction: "column",
|
|
46148
46199
|
flexShrink: "0",
|
|
46149
|
-
children: /* @__PURE__ */
|
|
46200
|
+
children: /* @__PURE__ */ _jsx74(Flex23, {
|
|
46150
46201
|
style: _objectSpread37({
|
|
46151
46202
|
borderRadius: "var(--radius-2)",
|
|
46152
46203
|
borderWidth: "1px",
|
|
@@ -46170,7 +46221,7 @@ var Field = {
|
|
|
46170
46221
|
Files: Files
|
|
46171
46222
|
};
|
|
46172
46223
|
// src/components/threads/Thread/MessageForm/index.tsx
|
|
46173
|
-
import { jsx as
|
|
46224
|
+
import { jsx as _jsx75, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
46174
46225
|
function ownKeys38(e, r) {
|
|
46175
46226
|
var t = Object.keys(e);
|
|
46176
46227
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46215,13 +46266,13 @@ function _toPrimitive38(t, r) {
|
|
|
46215
46266
|
return ("string" === r ? String : Number)(t);
|
|
46216
46267
|
}
|
|
46217
46268
|
var MessageForm = function(props) {
|
|
46218
|
-
var $ =
|
|
46269
|
+
var $ = _c73(3);
|
|
46219
46270
|
var t0;
|
|
46220
46271
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46221
46272
|
t0 = /* @__PURE__ */ _jsxs25(Field.Root, {
|
|
46222
46273
|
children: [
|
|
46223
|
-
/* @__PURE__ */
|
|
46224
|
-
/* @__PURE__ */
|
|
46274
|
+
/* @__PURE__ */ _jsx75(Field.Control, {}),
|
|
46275
|
+
/* @__PURE__ */ _jsx75(Submit, {})
|
|
46225
46276
|
]
|
|
46226
46277
|
});
|
|
46227
46278
|
$[0] = t0;
|
|
@@ -46230,7 +46281,7 @@ var MessageForm = function(props) {
|
|
|
46230
46281
|
}
|
|
46231
46282
|
var t1;
|
|
46232
46283
|
if ($[1] !== props) {
|
|
46233
|
-
t1 = /* @__PURE__ */
|
|
46284
|
+
t1 = /* @__PURE__ */ _jsx75(Root8, _objectSpread38(_objectSpread38({}, props), {}, {
|
|
46234
46285
|
children: t0
|
|
46235
46286
|
}));
|
|
46236
46287
|
$[1] = props;
|
|
@@ -46244,32 +46295,32 @@ MessageForm.Root = Root8;
|
|
|
46244
46295
|
MessageForm.Field = Field;
|
|
46245
46296
|
MessageForm.Submit = Submit;
|
|
46246
46297
|
// src/components/threads/Thread/Root/index.tsx
|
|
46247
|
-
import { c as
|
|
46298
|
+
import { c as _c76 } from "react-compiler-runtime";
|
|
46248
46299
|
import { Flex as Flex25 } from "@radix-ui/themes";
|
|
46249
46300
|
// src/components/threads/Thread/Provider/index.tsx
|
|
46250
46301
|
var Provider2 = SuperinterfaceProvider;
|
|
46251
46302
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46252
|
-
import { c as
|
|
46303
|
+
import { c as _c75 } from "react-compiler-runtime";
|
|
46253
46304
|
import { useState as useState5, useCallback as useCallback4 } from "react";
|
|
46254
46305
|
import * as Toast2 from "@radix-ui/react-toast";
|
|
46255
46306
|
// src/components/toasts/ToastsProvider/CustomToast.tsx
|
|
46256
|
-
import { c as
|
|
46307
|
+
import { c as _c74 } from "react-compiler-runtime";
|
|
46257
46308
|
import * as Toast from "@radix-ui/react-toast";
|
|
46258
46309
|
import { Card as Card3, Text as Text8, Flex as Flex24 } from "@radix-ui/themes";
|
|
46259
46310
|
import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
|
|
46260
|
-
import { jsx as
|
|
46311
|
+
import { jsx as _jsx76, jsxs as _jsxs26 } from "react/jsx-runtime";
|
|
46261
46312
|
var CustomToast = function(t0) {
|
|
46262
|
-
var $ =
|
|
46313
|
+
var $ = _c74(7);
|
|
46263
46314
|
var toast = t0.toast;
|
|
46264
46315
|
var t1;
|
|
46265
46316
|
if ($[0] !== toast.type) {
|
|
46266
|
-
t1 = /* @__PURE__ */
|
|
46317
|
+
t1 = /* @__PURE__ */ _jsx76(Flex24, {
|
|
46267
46318
|
pr: "2",
|
|
46268
46319
|
height: "14px",
|
|
46269
46320
|
align: "center",
|
|
46270
|
-
children: toast.type === "success" ? /* @__PURE__ */
|
|
46321
|
+
children: toast.type === "success" ? /* @__PURE__ */ _jsx76(CheckCircledIcon2, {
|
|
46271
46322
|
color: "var(--accent-9)"
|
|
46272
|
-
}) : /* @__PURE__ */
|
|
46323
|
+
}) : /* @__PURE__ */ _jsx76(CrossCircledIcon, {
|
|
46273
46324
|
color: "var(--red-9)"
|
|
46274
46325
|
})
|
|
46275
46326
|
});
|
|
@@ -46280,7 +46331,7 @@ var CustomToast = function(t0) {
|
|
|
46280
46331
|
}
|
|
46281
46332
|
var t2;
|
|
46282
46333
|
if ($[2] !== toast.message) {
|
|
46283
|
-
t2 = /* @__PURE__ */
|
|
46334
|
+
t2 = /* @__PURE__ */ _jsx76(Text8, {
|
|
46284
46335
|
weight: "medium",
|
|
46285
46336
|
size: "1",
|
|
46286
46337
|
children: toast.message
|
|
@@ -46292,9 +46343,9 @@ var CustomToast = function(t0) {
|
|
|
46292
46343
|
}
|
|
46293
46344
|
var t3;
|
|
46294
46345
|
if ($[4] !== t1 || $[5] !== t2) {
|
|
46295
|
-
t3 = /* @__PURE__ */
|
|
46296
|
-
children: /* @__PURE__ */
|
|
46297
|
-
children: /* @__PURE__ */
|
|
46346
|
+
t3 = /* @__PURE__ */ _jsx76(Toast.Root, {
|
|
46347
|
+
children: /* @__PURE__ */ _jsx76(Card3, {
|
|
46348
|
+
children: /* @__PURE__ */ _jsx76(Toast.Title, {
|
|
46298
46349
|
children: /* @__PURE__ */ _jsxs26(Flex24, {
|
|
46299
46350
|
children: [
|
|
46300
46351
|
t1,
|
|
@@ -46313,9 +46364,9 @@ var CustomToast = function(t0) {
|
|
|
46313
46364
|
return t3;
|
|
46314
46365
|
};
|
|
46315
46366
|
// src/components/toasts/ToastsProvider/index.tsx
|
|
46316
|
-
import { jsx as
|
|
46367
|
+
import { jsx as _jsx77, jsxs as _jsxs27 } from "react/jsx-runtime";
|
|
46317
46368
|
var ToastsProvider = function(t0) {
|
|
46318
|
-
var $ =
|
|
46369
|
+
var $ = _c75(15);
|
|
46319
46370
|
var children = t0.children, t1 = t0.bottom;
|
|
46320
46371
|
var bottom = t1 === void 0 ? 0 : t1;
|
|
46321
46372
|
var t2;
|
|
@@ -46361,7 +46412,7 @@ var ToastsProvider = function(t0) {
|
|
|
46361
46412
|
}
|
|
46362
46413
|
var t6;
|
|
46363
46414
|
if ($[6] !== bottom) {
|
|
46364
|
-
t6 = /* @__PURE__ */
|
|
46415
|
+
t6 = /* @__PURE__ */ _jsx77(Toast2.Viewport, {
|
|
46365
46416
|
style: {
|
|
46366
46417
|
position: "absolute",
|
|
46367
46418
|
bottom: bottom,
|
|
@@ -46401,7 +46452,7 @@ var ToastsProvider = function(t0) {
|
|
|
46401
46452
|
}
|
|
46402
46453
|
var t8;
|
|
46403
46454
|
if ($[12] !== t4 || $[13] !== t7) {
|
|
46404
|
-
t8 = /* @__PURE__ */
|
|
46455
|
+
t8 = /* @__PURE__ */ _jsx77(ToastsContext.Provider, {
|
|
46405
46456
|
value: t4,
|
|
46406
46457
|
children: t7
|
|
46407
46458
|
});
|
|
@@ -46414,12 +46465,12 @@ var ToastsProvider = function(t0) {
|
|
|
46414
46465
|
return t8;
|
|
46415
46466
|
};
|
|
46416
46467
|
function _temp5(toast_0, index) {
|
|
46417
|
-
return /* @__PURE__ */
|
|
46468
|
+
return /* @__PURE__ */ _jsx77(CustomToast, {
|
|
46418
46469
|
toast: toast_0
|
|
46419
46470
|
}, index);
|
|
46420
46471
|
}
|
|
46421
46472
|
// src/components/threads/Thread/Root/index.tsx
|
|
46422
|
-
import { jsx as
|
|
46473
|
+
import { jsx as _jsx78 } from "react/jsx-runtime";
|
|
46423
46474
|
var _excluded4 = [
|
|
46424
46475
|
"children",
|
|
46425
46476
|
"style",
|
|
@@ -46487,7 +46538,7 @@ function _objectWithoutPropertiesLoose4(r, e) {
|
|
|
46487
46538
|
return t;
|
|
46488
46539
|
}
|
|
46489
46540
|
var Root12 = function(t0) {
|
|
46490
|
-
var $ =
|
|
46541
|
+
var $ = _c76(12);
|
|
46491
46542
|
var children;
|
|
46492
46543
|
var className;
|
|
46493
46544
|
var rest;
|
|
@@ -46511,7 +46562,7 @@ var Root12 = function(t0) {
|
|
|
46511
46562
|
}
|
|
46512
46563
|
var t1;
|
|
46513
46564
|
if ($[5] !== children || $[6] !== className || $[7] !== style) {
|
|
46514
|
-
t1 = /* @__PURE__ */
|
|
46565
|
+
t1 = /* @__PURE__ */ _jsx78(Flex25, {
|
|
46515
46566
|
direction: "column",
|
|
46516
46567
|
flexGrow: "1",
|
|
46517
46568
|
className: className,
|
|
@@ -46527,9 +46578,9 @@ var Root12 = function(t0) {
|
|
|
46527
46578
|
}
|
|
46528
46579
|
var t2;
|
|
46529
46580
|
if ($[9] !== rest || $[10] !== t1) {
|
|
46530
|
-
t2 = /* @__PURE__ */
|
|
46581
|
+
t2 = /* @__PURE__ */ _jsx78(ToastsProvider, {
|
|
46531
46582
|
bottom: "var(--space-9)",
|
|
46532
|
-
children: /* @__PURE__ */
|
|
46583
|
+
children: /* @__PURE__ */ _jsx78(Provider2, _objectSpread39(_objectSpread39({}, rest), {}, {
|
|
46533
46584
|
children: t1
|
|
46534
46585
|
}))
|
|
46535
46586
|
});
|
|
@@ -46542,7 +46593,7 @@ var Root12 = function(t0) {
|
|
|
46542
46593
|
return t2;
|
|
46543
46594
|
};
|
|
46544
46595
|
// src/components/threads/Thread/index.tsx
|
|
46545
|
-
import { jsx as
|
|
46596
|
+
import { jsx as _jsx79, jsxs as _jsxs28 } from "react/jsx-runtime";
|
|
46546
46597
|
function ownKeys40(e, r) {
|
|
46547
46598
|
var t = Object.keys(e);
|
|
46548
46599
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46587,12 +46638,12 @@ function _toPrimitive40(t, r) {
|
|
|
46587
46638
|
return ("string" === r ? String : Number)(t);
|
|
46588
46639
|
}
|
|
46589
46640
|
var Thread = function(props) {
|
|
46590
|
-
var $ =
|
|
46641
|
+
var $ = _c77(4);
|
|
46591
46642
|
var t0;
|
|
46592
46643
|
var t1;
|
|
46593
46644
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46594
|
-
t0 = /* @__PURE__ */
|
|
46595
|
-
t1 = /* @__PURE__ */
|
|
46645
|
+
t0 = /* @__PURE__ */ _jsx79(Messages2, {});
|
|
46646
|
+
t1 = /* @__PURE__ */ _jsx79(MessageForm, {});
|
|
46596
46647
|
$[0] = t0;
|
|
46597
46648
|
$[1] = t1;
|
|
46598
46649
|
} else {
|
|
@@ -46623,7 +46674,7 @@ var useMessageContext = function() {
|
|
|
46623
46674
|
return useContext17(MessageContext);
|
|
46624
46675
|
};
|
|
46625
46676
|
// src/hooks/assistants/useAssistant/index.ts
|
|
46626
|
-
import { c as
|
|
46677
|
+
import { c as _c78 } from "react-compiler-runtime";
|
|
46627
46678
|
import { useMemo as useMemo15 } from "react";
|
|
46628
46679
|
import { useQuery } from "@tanstack/react-query";
|
|
46629
46680
|
// src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
|
|
@@ -46773,7 +46824,7 @@ function _toPrimitive41(t, r) {
|
|
|
46773
46824
|
return ("string" === r ? String : Number)(t);
|
|
46774
46825
|
}
|
|
46775
46826
|
var useAssistant = function(t0) {
|
|
46776
|
-
var $ =
|
|
46827
|
+
var $ = _c78(6);
|
|
46777
46828
|
var assistantId = t0.assistantId;
|
|
46778
46829
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
46779
46830
|
var t1;
|
|
@@ -46806,11 +46857,11 @@ var useAssistant = function(t0) {
|
|
|
46806
46857
|
return t2;
|
|
46807
46858
|
};
|
|
46808
46859
|
// src/components/threads/ThreadDialog/index.tsx
|
|
46809
|
-
import { c as
|
|
46860
|
+
import { c as _c85 } from "react-compiler-runtime";
|
|
46810
46861
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46811
|
-
import { c as
|
|
46862
|
+
import { c as _c80 } from "react-compiler-runtime";
|
|
46812
46863
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46813
|
-
import { c as
|
|
46864
|
+
import { c as _c79 } from "react-compiler-runtime";
|
|
46814
46865
|
import { useState as useState6 } from "react";
|
|
46815
46866
|
// src/contexts/threads/ThreadDialogContext/index.ts
|
|
46816
46867
|
import { createContext as createContext12 } from "react";
|
|
@@ -46824,9 +46875,9 @@ var useThreadDialogContext = function() {
|
|
|
46824
46875
|
return useContext18(ThreadDialogContext);
|
|
46825
46876
|
};
|
|
46826
46877
|
// src/components/threads/ThreadDialog/Provider/index.tsx
|
|
46827
|
-
import { jsx as
|
|
46878
|
+
import { jsx as _jsx80 } from "react/jsx-runtime";
|
|
46828
46879
|
var Provider4 = function(t0) {
|
|
46829
|
-
var $ =
|
|
46880
|
+
var $ = _c79(5);
|
|
46830
46881
|
var children = t0.children;
|
|
46831
46882
|
var threadDialogContext = useThreadDialogContext();
|
|
46832
46883
|
var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
|
|
@@ -46843,7 +46894,7 @@ var Provider4 = function(t0) {
|
|
|
46843
46894
|
}
|
|
46844
46895
|
var t2;
|
|
46845
46896
|
if ($[2] !== children || $[3] !== t1) {
|
|
46846
|
-
t2 = /* @__PURE__ */
|
|
46897
|
+
t2 = /* @__PURE__ */ _jsx80(ThreadDialogContext.Provider, {
|
|
46847
46898
|
value: t1,
|
|
46848
46899
|
children: children
|
|
46849
46900
|
});
|
|
@@ -46856,13 +46907,13 @@ var Provider4 = function(t0) {
|
|
|
46856
46907
|
return t2;
|
|
46857
46908
|
};
|
|
46858
46909
|
// src/components/threads/ThreadDialog/Root/index.tsx
|
|
46859
|
-
import { jsx as
|
|
46910
|
+
import { jsx as _jsx81 } from "react/jsx-runtime";
|
|
46860
46911
|
var Root13 = function(t0) {
|
|
46861
|
-
var $ =
|
|
46912
|
+
var $ = _c80(2);
|
|
46862
46913
|
var children = t0.children;
|
|
46863
46914
|
var t1;
|
|
46864
46915
|
if ($[0] !== children) {
|
|
46865
|
-
t1 = /* @__PURE__ */
|
|
46916
|
+
t1 = /* @__PURE__ */ _jsx81(Provider4, {
|
|
46866
46917
|
children: children
|
|
46867
46918
|
});
|
|
46868
46919
|
$[0] = children;
|
|
@@ -46873,13 +46924,13 @@ var Root13 = function(t0) {
|
|
|
46873
46924
|
return t1;
|
|
46874
46925
|
};
|
|
46875
46926
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46876
|
-
import { c as
|
|
46927
|
+
import { c as _c82 } from "react-compiler-runtime";
|
|
46877
46928
|
import { Flex as Flex26 } from "@radix-ui/themes";
|
|
46878
46929
|
// src/components/threads/ThreadDialog/Trigger/Button.tsx
|
|
46879
|
-
import { c as
|
|
46930
|
+
import { c as _c81 } from "react-compiler-runtime";
|
|
46880
46931
|
import { IconButton as IconButton8 } from "@radix-ui/themes";
|
|
46881
46932
|
import { ChatBubbleIcon } from "@radix-ui/react-icons";
|
|
46882
|
-
import { jsx as
|
|
46933
|
+
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
46883
46934
|
function ownKeys42(e, r) {
|
|
46884
46935
|
var t = Object.keys(e);
|
|
46885
46936
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46924,17 +46975,17 @@ function _toPrimitive42(t, r) {
|
|
|
46924
46975
|
return ("string" === r ? String : Number)(t);
|
|
46925
46976
|
}
|
|
46926
46977
|
var Button4 = function(props) {
|
|
46927
|
-
var $ =
|
|
46978
|
+
var $ = _c81(3);
|
|
46928
46979
|
var t0;
|
|
46929
46980
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46930
|
-
t0 = /* @__PURE__ */
|
|
46981
|
+
t0 = /* @__PURE__ */ _jsx82(ChatBubbleIcon, {});
|
|
46931
46982
|
$[0] = t0;
|
|
46932
46983
|
} else {
|
|
46933
46984
|
t0 = $[0];
|
|
46934
46985
|
}
|
|
46935
46986
|
var t1;
|
|
46936
46987
|
if ($[1] !== props) {
|
|
46937
|
-
t1 = /* @__PURE__ */
|
|
46988
|
+
t1 = /* @__PURE__ */ _jsx82(IconButton8, _objectSpread42(_objectSpread42({
|
|
46938
46989
|
size: "4",
|
|
46939
46990
|
radius: "full"
|
|
46940
46991
|
}, props), {}, {
|
|
@@ -46948,7 +46999,7 @@ var Button4 = function(props) {
|
|
|
46948
46999
|
return t1;
|
|
46949
47000
|
};
|
|
46950
47001
|
// src/components/threads/ThreadDialog/Trigger/index.tsx
|
|
46951
|
-
import { jsx as
|
|
47002
|
+
import { jsx as _jsx83 } from "react/jsx-runtime";
|
|
46952
47003
|
function ownKeys43(e, r) {
|
|
46953
47004
|
var t = Object.keys(e);
|
|
46954
47005
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -46993,7 +47044,7 @@ function _toPrimitive43(t, r) {
|
|
|
46993
47044
|
return ("string" === r ? String : Number)(t);
|
|
46994
47045
|
}
|
|
46995
47046
|
var Root14 = function(t0) {
|
|
46996
|
-
var $ =
|
|
47047
|
+
var $ = _c82(14);
|
|
46997
47048
|
var children = t0.children, style = t0.style, className = t0.className;
|
|
46998
47049
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
46999
47050
|
var t1 = isOpen ? "none" : "flex";
|
|
@@ -47038,7 +47089,7 @@ var Root14 = function(t0) {
|
|
|
47038
47089
|
}
|
|
47039
47090
|
var t6;
|
|
47040
47091
|
if ($[8] !== children || $[9] !== className || $[10] !== t2 || $[11] !== t3 || $[12] !== t5) {
|
|
47041
|
-
t6 = /* @__PURE__ */
|
|
47092
|
+
t6 = /* @__PURE__ */ _jsx83(Flex26, {
|
|
47042
47093
|
display: t2,
|
|
47043
47094
|
onClick: t3,
|
|
47044
47095
|
direction: "column",
|
|
@@ -47064,17 +47115,17 @@ var Root14 = function(t0) {
|
|
|
47064
47115
|
return t6;
|
|
47065
47116
|
};
|
|
47066
47117
|
var Trigger = function(args) {
|
|
47067
|
-
var $ =
|
|
47118
|
+
var $ = _c82(3);
|
|
47068
47119
|
var t0;
|
|
47069
47120
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47070
|
-
t0 = /* @__PURE__ */
|
|
47121
|
+
t0 = /* @__PURE__ */ _jsx83(Button4, {});
|
|
47071
47122
|
$[0] = t0;
|
|
47072
47123
|
} else {
|
|
47073
47124
|
t0 = $[0];
|
|
47074
47125
|
}
|
|
47075
47126
|
var t1;
|
|
47076
47127
|
if ($[1] !== args) {
|
|
47077
|
-
t1 = /* @__PURE__ */
|
|
47128
|
+
t1 = /* @__PURE__ */ _jsx83(Root14, _objectSpread43(_objectSpread43({}, args), {}, {
|
|
47078
47129
|
children: t0
|
|
47079
47130
|
}));
|
|
47080
47131
|
$[1] = args;
|
|
@@ -47090,15 +47141,15 @@ function _temp6(prev) {
|
|
|
47090
47141
|
return !prev;
|
|
47091
47142
|
}
|
|
47092
47143
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
47093
|
-
import { c as
|
|
47144
|
+
import { c as _c84 } from "react-compiler-runtime";
|
|
47094
47145
|
import { Card as Card4, Inset as Inset2, Flex as Flex28 } from "@radix-ui/themes";
|
|
47095
47146
|
// src/components/threads/ThreadDialog/Close/index.tsx
|
|
47096
|
-
import { c as
|
|
47147
|
+
import { c as _c83 } from "react-compiler-runtime";
|
|
47097
47148
|
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
47098
47149
|
import { IconButton as IconButton9, Flex as Flex27 } from "@radix-ui/themes";
|
|
47099
|
-
import { jsx as
|
|
47150
|
+
import { jsx as _jsx84 } from "react/jsx-runtime";
|
|
47100
47151
|
var Close = function() {
|
|
47101
|
-
var $ =
|
|
47152
|
+
var $ = _c83(9);
|
|
47102
47153
|
var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
|
|
47103
47154
|
var t0 = isOpen ? "flex" : "none";
|
|
47104
47155
|
var t1;
|
|
@@ -47133,10 +47184,10 @@ var Close = function() {
|
|
|
47133
47184
|
}
|
|
47134
47185
|
var t4;
|
|
47135
47186
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47136
|
-
t4 = /* @__PURE__ */
|
|
47187
|
+
t4 = /* @__PURE__ */ _jsx84(IconButton9, {
|
|
47137
47188
|
size: "2",
|
|
47138
47189
|
variant: "soft",
|
|
47139
|
-
children: /* @__PURE__ */
|
|
47190
|
+
children: /* @__PURE__ */ _jsx84(Cross1Icon, {})
|
|
47140
47191
|
});
|
|
47141
47192
|
$[5] = t4;
|
|
47142
47193
|
} else {
|
|
@@ -47144,7 +47195,7 @@ var Close = function() {
|
|
|
47144
47195
|
}
|
|
47145
47196
|
var t5;
|
|
47146
47197
|
if ($[6] !== t1 || $[7] !== t2) {
|
|
47147
|
-
t5 = /* @__PURE__ */
|
|
47198
|
+
t5 = /* @__PURE__ */ _jsx84(Flex27, {
|
|
47148
47199
|
display: t1,
|
|
47149
47200
|
onClick: t2,
|
|
47150
47201
|
direction: "column",
|
|
@@ -47169,7 +47220,7 @@ function _temp7(prev) {
|
|
|
47169
47220
|
return !prev;
|
|
47170
47221
|
}
|
|
47171
47222
|
// src/components/threads/ThreadDialog/Content/index.tsx
|
|
47172
|
-
import { jsx as
|
|
47223
|
+
import { jsx as _jsx85, jsxs as _jsxs29 } from "react/jsx-runtime";
|
|
47173
47224
|
function ownKeys44(e, r) {
|
|
47174
47225
|
var t = Object.keys(e);
|
|
47175
47226
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -47214,7 +47265,7 @@ function _toPrimitive44(t, r) {
|
|
|
47214
47265
|
return ("string" === r ? String : Number)(t);
|
|
47215
47266
|
}
|
|
47216
47267
|
var Root15 = function(t0) {
|
|
47217
|
-
var $ =
|
|
47268
|
+
var $ = _c84(19);
|
|
47218
47269
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47219
47270
|
var isOpen = useThreadDialogContext().isOpen;
|
|
47220
47271
|
if (!isOpen) {
|
|
@@ -47301,7 +47352,7 @@ var Root15 = function(t0) {
|
|
|
47301
47352
|
}
|
|
47302
47353
|
var t10;
|
|
47303
47354
|
if ($[10] !== children) {
|
|
47304
|
-
t10 = /* @__PURE__ */
|
|
47355
|
+
t10 = /* @__PURE__ */ _jsx85(Inset2, {
|
|
47305
47356
|
clip: "padding-box",
|
|
47306
47357
|
side: "all",
|
|
47307
47358
|
pb: "current",
|
|
@@ -47315,7 +47366,7 @@ var Root15 = function(t0) {
|
|
|
47315
47366
|
}
|
|
47316
47367
|
var t11;
|
|
47317
47368
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47318
|
-
t11 = /* @__PURE__ */
|
|
47369
|
+
t11 = /* @__PURE__ */ _jsx85(Close, {});
|
|
47319
47370
|
$[12] = t11;
|
|
47320
47371
|
} else {
|
|
47321
47372
|
t11 = $[12];
|
|
@@ -47337,7 +47388,7 @@ var Root15 = function(t0) {
|
|
|
47337
47388
|
}
|
|
47338
47389
|
var t13;
|
|
47339
47390
|
if ($[15] !== className || $[16] !== t12 || $[17] !== t6) {
|
|
47340
|
-
t13 = /* @__PURE__ */
|
|
47391
|
+
t13 = /* @__PURE__ */ _jsx85(Flex28, {
|
|
47341
47392
|
className: className,
|
|
47342
47393
|
direction: "column",
|
|
47343
47394
|
justify: "end",
|
|
@@ -47361,7 +47412,7 @@ var Root15 = function(t0) {
|
|
|
47361
47412
|
return t13;
|
|
47362
47413
|
};
|
|
47363
47414
|
var Messages3 = function(t0) {
|
|
47364
|
-
var $ =
|
|
47415
|
+
var $ = _c84(5);
|
|
47365
47416
|
var className = t0.className, style = t0.style;
|
|
47366
47417
|
var t1;
|
|
47367
47418
|
if ($[0] !== style) {
|
|
@@ -47377,7 +47428,7 @@ var Messages3 = function(t0) {
|
|
|
47377
47428
|
}
|
|
47378
47429
|
var t2;
|
|
47379
47430
|
if ($[2] !== className || $[3] !== t1) {
|
|
47380
|
-
t2 = /* @__PURE__ */
|
|
47431
|
+
t2 = /* @__PURE__ */ _jsx85(Thread.Messages, {
|
|
47381
47432
|
className: className,
|
|
47382
47433
|
style: t1
|
|
47383
47434
|
});
|
|
@@ -47390,11 +47441,11 @@ var Messages3 = function(t0) {
|
|
|
47390
47441
|
return t2;
|
|
47391
47442
|
};
|
|
47392
47443
|
var FormContainer = function(t0) {
|
|
47393
|
-
var $ =
|
|
47444
|
+
var $ = _c84(4);
|
|
47394
47445
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
47395
47446
|
var t1;
|
|
47396
47447
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
47397
|
-
t1 = /* @__PURE__ */
|
|
47448
|
+
t1 = /* @__PURE__ */ _jsx85(Flex28, {
|
|
47398
47449
|
direction: "column",
|
|
47399
47450
|
pl: "5",
|
|
47400
47451
|
pr: "5",
|
|
@@ -47414,10 +47465,10 @@ var FormContainer = function(t0) {
|
|
|
47414
47465
|
return t1;
|
|
47415
47466
|
};
|
|
47416
47467
|
var Content8 = function(props) {
|
|
47417
|
-
var $ =
|
|
47468
|
+
var $ = _c84(4);
|
|
47418
47469
|
var t0;
|
|
47419
47470
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47420
|
-
t0 = /* @__PURE__ */
|
|
47471
|
+
t0 = /* @__PURE__ */ _jsx85(Messages3, {});
|
|
47421
47472
|
$[0] = t0;
|
|
47422
47473
|
} else {
|
|
47423
47474
|
t0 = $[0];
|
|
@@ -47427,8 +47478,8 @@ var Content8 = function(props) {
|
|
|
47427
47478
|
t1 = /* @__PURE__ */ _jsxs29(Thread.Root, {
|
|
47428
47479
|
children: [
|
|
47429
47480
|
t0,
|
|
47430
|
-
/* @__PURE__ */
|
|
47431
|
-
children: /* @__PURE__ */
|
|
47481
|
+
/* @__PURE__ */ _jsx85(FormContainer, {
|
|
47482
|
+
children: /* @__PURE__ */ _jsx85(Thread.MessageForm, {})
|
|
47432
47483
|
})
|
|
47433
47484
|
]
|
|
47434
47485
|
});
|
|
@@ -47438,7 +47489,7 @@ var Content8 = function(props) {
|
|
|
47438
47489
|
}
|
|
47439
47490
|
var t2;
|
|
47440
47491
|
if ($[2] !== props) {
|
|
47441
|
-
t2 = /* @__PURE__ */
|
|
47492
|
+
t2 = /* @__PURE__ */ _jsx85(Root15, _objectSpread44(_objectSpread44({}, props), {}, {
|
|
47442
47493
|
children: t1
|
|
47443
47494
|
}));
|
|
47444
47495
|
$[2] = props;
|
|
@@ -47452,15 +47503,15 @@ Content8.Root = Root15;
|
|
|
47452
47503
|
Content8.Messages = Messages3;
|
|
47453
47504
|
Content8.FormContainer = FormContainer;
|
|
47454
47505
|
// src/components/threads/ThreadDialog/index.tsx
|
|
47455
|
-
import { jsx as
|
|
47506
|
+
import { jsx as _jsx86, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
47456
47507
|
var ThreadDialog = function() {
|
|
47457
|
-
var $ =
|
|
47508
|
+
var $ = _c85(1);
|
|
47458
47509
|
var t0;
|
|
47459
47510
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47460
47511
|
t0 = /* @__PURE__ */ _jsxs30(Root13, {
|
|
47461
47512
|
children: [
|
|
47462
|
-
/* @__PURE__ */
|
|
47463
|
-
/* @__PURE__ */
|
|
47513
|
+
/* @__PURE__ */ _jsx86(Content8, {}),
|
|
47514
|
+
/* @__PURE__ */ _jsx86(Trigger, {})
|
|
47464
47515
|
]
|
|
47465
47516
|
});
|
|
47466
47517
|
$[0] = t0;
|
|
@@ -47473,11 +47524,11 @@ ThreadDialog.Root = Root13;
|
|
|
47473
47524
|
ThreadDialog.Trigger = Trigger;
|
|
47474
47525
|
ThreadDialog.Content = Content8;
|
|
47475
47526
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
47476
|
-
import { c as
|
|
47527
|
+
import { c as _c100 } from "react-compiler-runtime";
|
|
47477
47528
|
// src/components/threads/AudioThread/index.tsx
|
|
47478
|
-
import { c as
|
|
47529
|
+
import { c as _c99 } from "react-compiler-runtime";
|
|
47479
47530
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
47480
|
-
import { c as
|
|
47531
|
+
import { c as _c91 } from "react-compiler-runtime";
|
|
47481
47532
|
import { Flex as Flex29 } from "@radix-ui/themes";
|
|
47482
47533
|
// src/contexts/threads/AudioThreadContext/index.ts
|
|
47483
47534
|
import { createContext as createContext13 } from "react";
|
|
@@ -47490,12 +47541,12 @@ var useAudioThreadContext = function() {
|
|
|
47490
47541
|
return useContext19(AudioThreadContext);
|
|
47491
47542
|
};
|
|
47492
47543
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
47493
|
-
import { c as
|
|
47544
|
+
import { c as _c90 } from "react-compiler-runtime";
|
|
47494
47545
|
// src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
|
|
47495
|
-
import { c as
|
|
47546
|
+
import { c as _c89 } from "react-compiler-runtime";
|
|
47496
47547
|
import { useMemo as useMemo18 } from "react";
|
|
47497
47548
|
// src/hooks/misc/usePermission/index.ts
|
|
47498
|
-
import { c as
|
|
47549
|
+
import { c as _c86 } from "react-compiler-runtime";
|
|
47499
47550
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
47500
47551
|
// src/hooks/misc/usePermission/util.ts
|
|
47501
47552
|
var noop = function() {};
|
|
@@ -47519,7 +47570,7 @@ function off(obj) {
|
|
|
47519
47570
|
}
|
|
47520
47571
|
// src/hooks/misc/usePermission/index.ts
|
|
47521
47572
|
var usePermission = function(permissionDesc) {
|
|
47522
|
-
var $ =
|
|
47573
|
+
var $ = _c86(3);
|
|
47523
47574
|
var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
|
|
47524
47575
|
var t0;
|
|
47525
47576
|
var t1;
|
|
@@ -47568,10 +47619,10 @@ import { useAudioCapture } from "use-audio-capture";
|
|
|
47568
47619
|
import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
|
|
47569
47620
|
import { useAudioPlayer } from "react-use-audio-player";
|
|
47570
47621
|
// src/hooks/misc/useInterval.ts
|
|
47571
|
-
import { c as
|
|
47622
|
+
import { c as _c87 } from "react-compiler-runtime";
|
|
47572
47623
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
47573
47624
|
var useInterval = function(callback, delay) {
|
|
47574
|
-
var $ =
|
|
47625
|
+
var $ = _c87(5);
|
|
47575
47626
|
var savedCallback = useRef6(_temp8);
|
|
47576
47627
|
var t0;
|
|
47577
47628
|
if ($[0] !== callback) {
|
|
@@ -47824,7 +47875,7 @@ var useRecorder = function(_ref) {
|
|
|
47824
47875
|
});
|
|
47825
47876
|
};
|
|
47826
47877
|
// src/hooks/audioThreads/useMessageAudio/index.ts
|
|
47827
|
-
import { c as
|
|
47878
|
+
import { c as _c88 } from "react-compiler-runtime";
|
|
47828
47879
|
import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
|
|
47829
47880
|
import nlp from "compromise";
|
|
47830
47881
|
import { Howler } from "howler";
|
|
@@ -47907,7 +47958,7 @@ var getMessageSentences = function(_ref) {
|
|
|
47907
47958
|
};
|
|
47908
47959
|
var useMessageAudio = function(t0) {
|
|
47909
47960
|
var _latestMessageProps$l;
|
|
47910
|
-
var $ =
|
|
47961
|
+
var $ = _c88(49);
|
|
47911
47962
|
var _onEnd = t0.onEnd, passedPlay = t0.play;
|
|
47912
47963
|
var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
|
|
47913
47964
|
var t1;
|
|
@@ -48287,7 +48338,7 @@ function _asyncToGenerator11(n) {
|
|
|
48287
48338
|
};
|
|
48288
48339
|
}
|
|
48289
48340
|
var useTtsAudioRuntime = function(t0) {
|
|
48290
|
-
var $ =
|
|
48341
|
+
var $ = _c89(30);
|
|
48291
48342
|
var play = t0.play;
|
|
48292
48343
|
var addToast = useToasts().addToast;
|
|
48293
48344
|
var queryClient = useQueryClient6();
|
|
@@ -48461,9 +48512,9 @@ function _temp24() {
|
|
|
48461
48512
|
return _temp24.apply(this, arguments);
|
|
48462
48513
|
}
|
|
48463
48514
|
// src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
|
|
48464
|
-
import { jsx as
|
|
48515
|
+
import { jsx as _jsx87 } from "react/jsx-runtime";
|
|
48465
48516
|
var TtsAudioRuntimeProvider = function(t0) {
|
|
48466
|
-
var $ =
|
|
48517
|
+
var $ = _c90(7);
|
|
48467
48518
|
var children = t0.children, play = t0.play;
|
|
48468
48519
|
var t1;
|
|
48469
48520
|
if ($[0] !== play) {
|
|
@@ -48488,7 +48539,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
48488
48539
|
}
|
|
48489
48540
|
var t3;
|
|
48490
48541
|
if ($[4] !== children || $[5] !== t2) {
|
|
48491
|
-
t3 = /* @__PURE__ */
|
|
48542
|
+
t3 = /* @__PURE__ */ _jsx87(AudioThreadContext.Provider, {
|
|
48492
48543
|
value: t2,
|
|
48493
48544
|
children: children
|
|
48494
48545
|
});
|
|
@@ -48501,7 +48552,7 @@ var TtsAudioRuntimeProvider = function(t0) {
|
|
|
48501
48552
|
return t3;
|
|
48502
48553
|
};
|
|
48503
48554
|
// src/components/threads/AudioThread/Root/index.tsx
|
|
48504
|
-
import { jsx as
|
|
48555
|
+
import { jsx as _jsx88 } from "react/jsx-runtime";
|
|
48505
48556
|
var _excluded5 = [
|
|
48506
48557
|
"children"
|
|
48507
48558
|
];
|
|
@@ -48573,11 +48624,11 @@ function _objectWithoutPropertiesLoose5(r, e) {
|
|
|
48573
48624
|
return t;
|
|
48574
48625
|
}
|
|
48575
48626
|
var Content9 = function(t0) {
|
|
48576
|
-
var $ =
|
|
48627
|
+
var $ = _c91(4);
|
|
48577
48628
|
var children = t0.children, className = t0.className, style = t0.style;
|
|
48578
48629
|
var t1;
|
|
48579
48630
|
if ($[0] !== children || $[1] !== className || $[2] !== style) {
|
|
48580
|
-
t1 = /* @__PURE__ */
|
|
48631
|
+
t1 = /* @__PURE__ */ _jsx88(Flex29, {
|
|
48581
48632
|
direction: "column",
|
|
48582
48633
|
flexGrow: "1",
|
|
48583
48634
|
p: "9",
|
|
@@ -48595,7 +48646,7 @@ var Content9 = function(t0) {
|
|
|
48595
48646
|
return t1;
|
|
48596
48647
|
};
|
|
48597
48648
|
var AudioRuntimeProvider = function(t0) {
|
|
48598
|
-
var $ =
|
|
48649
|
+
var $ = _c91(3);
|
|
48599
48650
|
var children = t0.children, play = t0.play;
|
|
48600
48651
|
var audioThreadContext = useAudioThreadContext();
|
|
48601
48652
|
if (audioThreadContext.audioRuntime) {
|
|
@@ -48603,7 +48654,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48603
48654
|
}
|
|
48604
48655
|
var t1;
|
|
48605
48656
|
if ($[0] !== children || $[1] !== play) {
|
|
48606
|
-
t1 = /* @__PURE__ */
|
|
48657
|
+
t1 = /* @__PURE__ */ _jsx88(TtsAudioRuntimeProvider, {
|
|
48607
48658
|
play: play,
|
|
48608
48659
|
children: children
|
|
48609
48660
|
});
|
|
@@ -48616,7 +48667,7 @@ var AudioRuntimeProvider = function(t0) {
|
|
|
48616
48667
|
return t1;
|
|
48617
48668
|
};
|
|
48618
48669
|
var Provider5 = function(t0) {
|
|
48619
|
-
var $ =
|
|
48670
|
+
var $ = _c91(9);
|
|
48620
48671
|
var children;
|
|
48621
48672
|
var rest;
|
|
48622
48673
|
if ($[0] !== t0) {
|
|
@@ -48643,7 +48694,7 @@ var Provider5 = function(t0) {
|
|
|
48643
48694
|
}
|
|
48644
48695
|
var t2;
|
|
48645
48696
|
if ($[6] !== children || $[7] !== t1) {
|
|
48646
|
-
t2 = /* @__PURE__ */
|
|
48697
|
+
t2 = /* @__PURE__ */ _jsx88(AudioThreadContext.Provider, {
|
|
48647
48698
|
value: t1,
|
|
48648
48699
|
children: children
|
|
48649
48700
|
});
|
|
@@ -48656,7 +48707,7 @@ var Provider5 = function(t0) {
|
|
|
48656
48707
|
return t2;
|
|
48657
48708
|
};
|
|
48658
48709
|
var Root16 = function(t0) {
|
|
48659
|
-
var $ =
|
|
48710
|
+
var $ = _c91(16);
|
|
48660
48711
|
var children;
|
|
48661
48712
|
var className;
|
|
48662
48713
|
var play;
|
|
@@ -48683,8 +48734,8 @@ var Root16 = function(t0) {
|
|
|
48683
48734
|
}
|
|
48684
48735
|
var t1;
|
|
48685
48736
|
if ($[6] !== children || $[7] !== className || $[8] !== style) {
|
|
48686
|
-
t1 = /* @__PURE__ */
|
|
48687
|
-
children: /* @__PURE__ */
|
|
48737
|
+
t1 = /* @__PURE__ */ _jsx88(ToastsProvider, {
|
|
48738
|
+
children: /* @__PURE__ */ _jsx88(Content9, {
|
|
48688
48739
|
className: className,
|
|
48689
48740
|
style: style,
|
|
48690
48741
|
children: children
|
|
@@ -48699,7 +48750,7 @@ var Root16 = function(t0) {
|
|
|
48699
48750
|
}
|
|
48700
48751
|
var t2;
|
|
48701
48752
|
if ($[10] !== play || $[11] !== t1) {
|
|
48702
|
-
t2 = /* @__PURE__ */
|
|
48753
|
+
t2 = /* @__PURE__ */ _jsx88(AudioRuntimeProvider, {
|
|
48703
48754
|
play: play,
|
|
48704
48755
|
children: t1
|
|
48705
48756
|
});
|
|
@@ -48711,7 +48762,7 @@ var Root16 = function(t0) {
|
|
|
48711
48762
|
}
|
|
48712
48763
|
var t3;
|
|
48713
48764
|
if ($[13] !== rest || $[14] !== t2) {
|
|
48714
|
-
t3 = /* @__PURE__ */
|
|
48765
|
+
t3 = /* @__PURE__ */ _jsx88(Provider5, _objectSpread47(_objectSpread47({}, rest), {}, {
|
|
48715
48766
|
children: t2
|
|
48716
48767
|
}));
|
|
48717
48768
|
$[13] = rest;
|
|
@@ -48723,7 +48774,7 @@ var Root16 = function(t0) {
|
|
|
48723
48774
|
return t3;
|
|
48724
48775
|
};
|
|
48725
48776
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48726
|
-
import { c as
|
|
48777
|
+
import { c as _c93 } from "react-compiler-runtime";
|
|
48727
48778
|
import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext20, createContext as createContext14 } from "react";
|
|
48728
48779
|
import _9 from "lodash";
|
|
48729
48780
|
import { Flex as Flex31 } from "@radix-ui/themes";
|
|
@@ -48732,7 +48783,7 @@ import _8 from "lodash";
|
|
|
48732
48783
|
import { Flex as Flex30, Grid } from "@radix-ui/themes";
|
|
48733
48784
|
import { useState as useState10, useEffect as useEffect11, useCallback as useCallback7 } from "react";
|
|
48734
48785
|
import { cluster } from "radash";
|
|
48735
|
-
import { jsx as
|
|
48786
|
+
import { jsx as _jsx89 } from "react/jsx-runtime";
|
|
48736
48787
|
var barCount = 4;
|
|
48737
48788
|
var BarsVisualizer = function(_ref) {
|
|
48738
48789
|
var visualizationAnalyser = _ref.visualizationAnalyser, backgroundColor = _ref.backgroundColor, height = _ref.height, barWidth = _ref.barWidth;
|
|
@@ -48763,7 +48814,7 @@ var BarsVisualizer = function(_ref) {
|
|
|
48763
48814
|
draw,
|
|
48764
48815
|
visualizationAnalyser
|
|
48765
48816
|
]);
|
|
48766
|
-
return /* @__PURE__ */
|
|
48817
|
+
return /* @__PURE__ */ _jsx89(Grid, {
|
|
48767
48818
|
columns: "".concat(barCount),
|
|
48768
48819
|
gap: "1",
|
|
48769
48820
|
width: "auto",
|
|
@@ -48772,12 +48823,12 @@ var BarsVisualizer = function(_ref) {
|
|
|
48772
48823
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
48773
48824
|
},
|
|
48774
48825
|
children: barHeights.map(function(barHeight, index) {
|
|
48775
|
-
return /* @__PURE__ */
|
|
48826
|
+
return /* @__PURE__ */ _jsx89(Flex30, {
|
|
48776
48827
|
direction: "column",
|
|
48777
48828
|
align: "center",
|
|
48778
48829
|
justify: "center",
|
|
48779
48830
|
height: height,
|
|
48780
|
-
children: /* @__PURE__ */
|
|
48831
|
+
children: /* @__PURE__ */ _jsx89(Flex30, {
|
|
48781
48832
|
minHeight: "50%",
|
|
48782
48833
|
maxHeight: "100%",
|
|
48783
48834
|
height: "".concat(barHeight + 20, "%"),
|
|
@@ -48792,10 +48843,10 @@ var BarsVisualizer = function(_ref) {
|
|
|
48792
48843
|
});
|
|
48793
48844
|
};
|
|
48794
48845
|
// src/hooks/audioThreads/useStatus/index.ts
|
|
48795
|
-
import { c as
|
|
48846
|
+
import { c as _c92 } from "react-compiler-runtime";
|
|
48796
48847
|
import { useMemo as useMemo19 } from "react";
|
|
48797
48848
|
var useStatus = function() {
|
|
48798
|
-
var $ =
|
|
48849
|
+
var $ = _c92(2);
|
|
48799
48850
|
var audioRuntime = useAudioThreadContext().audioRuntime;
|
|
48800
48851
|
var t0;
|
|
48801
48852
|
bb0: {
|
|
@@ -48843,7 +48894,7 @@ var useStatus = function() {
|
|
|
48843
48894
|
return t1;
|
|
48844
48895
|
};
|
|
48845
48896
|
// src/components/threads/AudioThread/Visualization/index.tsx
|
|
48846
|
-
import { jsx as
|
|
48897
|
+
import { jsx as _jsx90, jsxs as _jsxs31 } from "react/jsx-runtime";
|
|
48847
48898
|
var _excluded6 = [
|
|
48848
48899
|
"children"
|
|
48849
48900
|
];
|
|
@@ -48947,7 +48998,7 @@ var Provider6 = function(_ref) {
|
|
|
48947
48998
|
draw,
|
|
48948
48999
|
audioThreadContext
|
|
48949
49000
|
]);
|
|
48950
|
-
return /* @__PURE__ */
|
|
49001
|
+
return /* @__PURE__ */ _jsx90(AudioThreadVisualizationContext.Provider, {
|
|
48951
49002
|
value: {
|
|
48952
49003
|
scale: scale
|
|
48953
49004
|
},
|
|
@@ -48955,7 +49006,7 @@ var Provider6 = function(_ref) {
|
|
|
48955
49006
|
});
|
|
48956
49007
|
};
|
|
48957
49008
|
var Root17 = function(t0) {
|
|
48958
|
-
var $ =
|
|
49009
|
+
var $ = _c93(6);
|
|
48959
49010
|
var children;
|
|
48960
49011
|
var rest;
|
|
48961
49012
|
if ($[0] !== t0) {
|
|
@@ -48972,8 +49023,8 @@ var Root17 = function(t0) {
|
|
|
48972
49023
|
}
|
|
48973
49024
|
var t1;
|
|
48974
49025
|
if ($[3] !== children || $[4] !== rest) {
|
|
48975
|
-
t1 = /* @__PURE__ */
|
|
48976
|
-
children: /* @__PURE__ */
|
|
49026
|
+
t1 = /* @__PURE__ */ _jsx90(Provider6, {
|
|
49027
|
+
children: /* @__PURE__ */ _jsx90(Flex31, _objectSpread48(_objectSpread48({
|
|
48977
49028
|
direction: "column",
|
|
48978
49029
|
align: "center",
|
|
48979
49030
|
justify: "center",
|
|
@@ -48992,7 +49043,7 @@ var Root17 = function(t0) {
|
|
|
48992
49043
|
return t1;
|
|
48993
49044
|
};
|
|
48994
49045
|
var BarsVisualizer2 = function(t0) {
|
|
48995
|
-
var $ =
|
|
49046
|
+
var $ = _c93(10);
|
|
48996
49047
|
var rest;
|
|
48997
49048
|
var t1;
|
|
48998
49049
|
var t2;
|
|
@@ -49018,7 +49069,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
49018
49069
|
var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49019
49070
|
var t4;
|
|
49020
49071
|
if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
|
|
49021
|
-
t4 = /* @__PURE__ */
|
|
49072
|
+
t4 = /* @__PURE__ */ _jsx90(BarsVisualizer, _objectSpread48({
|
|
49022
49073
|
visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
|
|
49023
49074
|
backgroundColor: t3,
|
|
49024
49075
|
height: height,
|
|
@@ -49036,7 +49087,7 @@ var BarsVisualizer2 = function(t0) {
|
|
|
49036
49087
|
return t4;
|
|
49037
49088
|
};
|
|
49038
49089
|
var AssistantVisualizationRoot = function(t0) {
|
|
49039
|
-
var $ =
|
|
49090
|
+
var $ = _c93(17);
|
|
49040
49091
|
var children;
|
|
49041
49092
|
var rest;
|
|
49042
49093
|
var t1;
|
|
@@ -49088,7 +49139,7 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
49088
49139
|
}
|
|
49089
49140
|
var t6;
|
|
49090
49141
|
if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
|
|
49091
|
-
t6 = /* @__PURE__ */
|
|
49142
|
+
t6 = /* @__PURE__ */ _jsx90(Flex31, _objectSpread48(_objectSpread48({
|
|
49092
49143
|
align: "center",
|
|
49093
49144
|
justify: "center",
|
|
49094
49145
|
height: height,
|
|
@@ -49109,17 +49160,17 @@ var AssistantVisualizationRoot = function(t0) {
|
|
|
49109
49160
|
return t6;
|
|
49110
49161
|
};
|
|
49111
49162
|
var AssistantVisualization = function(props) {
|
|
49112
|
-
var $ =
|
|
49163
|
+
var $ = _c93(3);
|
|
49113
49164
|
var t0;
|
|
49114
49165
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49115
|
-
t0 = /* @__PURE__ */
|
|
49166
|
+
t0 = /* @__PURE__ */ _jsx90(BarsVisualizer2, {});
|
|
49116
49167
|
$[0] = t0;
|
|
49117
49168
|
} else {
|
|
49118
49169
|
t0 = $[0];
|
|
49119
49170
|
}
|
|
49120
49171
|
var t1;
|
|
49121
49172
|
if ($[1] !== props) {
|
|
49122
|
-
t1 = /* @__PURE__ */
|
|
49173
|
+
t1 = /* @__PURE__ */ _jsx90(AssistantVisualizationRoot, _objectSpread48(_objectSpread48({}, props), {}, {
|
|
49123
49174
|
children: t0
|
|
49124
49175
|
}));
|
|
49125
49176
|
$[1] = props;
|
|
@@ -49132,18 +49183,18 @@ var AssistantVisualization = function(props) {
|
|
|
49132
49183
|
AssistantVisualization.Root = AssistantVisualizationRoot;
|
|
49133
49184
|
AssistantVisualization.BarsVisualizer = BarsVisualizer2;
|
|
49134
49185
|
var AssistantInfo = function(props) {
|
|
49135
|
-
var $ =
|
|
49186
|
+
var $ = _c93(6);
|
|
49136
49187
|
var assistantNameContext = useContext20(AssistantNameContext);
|
|
49137
49188
|
var t0;
|
|
49138
49189
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49139
|
-
t0 = /* @__PURE__ */
|
|
49190
|
+
t0 = /* @__PURE__ */ _jsx90(MessageGroup.AssistantAvatar, {});
|
|
49140
49191
|
$[0] = t0;
|
|
49141
49192
|
} else {
|
|
49142
49193
|
t0 = $[0];
|
|
49143
49194
|
}
|
|
49144
49195
|
var t1;
|
|
49145
49196
|
if ($[1] !== assistantNameContext) {
|
|
49146
|
-
t1 = /* @__PURE__ */
|
|
49197
|
+
t1 = /* @__PURE__ */ _jsx90(MessageGroup.Name, {
|
|
49147
49198
|
children: assistantNameContext
|
|
49148
49199
|
});
|
|
49149
49200
|
$[1] = assistantNameContext;
|
|
@@ -49172,12 +49223,12 @@ var AssistantInfo = function(props) {
|
|
|
49172
49223
|
return t2;
|
|
49173
49224
|
};
|
|
49174
49225
|
var Visualization = function(props) {
|
|
49175
|
-
var $ =
|
|
49226
|
+
var $ = _c93(4);
|
|
49176
49227
|
var t0;
|
|
49177
49228
|
var t1;
|
|
49178
49229
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49179
|
-
t0 = /* @__PURE__ */
|
|
49180
|
-
t1 = /* @__PURE__ */
|
|
49230
|
+
t0 = /* @__PURE__ */ _jsx90(AssistantVisualization, {});
|
|
49231
|
+
t1 = /* @__PURE__ */ _jsx90(AssistantInfo, {});
|
|
49181
49232
|
$[0] = t0;
|
|
49182
49233
|
$[1] = t1;
|
|
49183
49234
|
} else {
|
|
@@ -49204,11 +49255,11 @@ Visualization.Provider = Provider6;
|
|
|
49204
49255
|
Visualization.AssistantVisualization = AssistantVisualization;
|
|
49205
49256
|
Visualization.AssistantInfo = AssistantInfo;
|
|
49206
49257
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49207
|
-
import { c as
|
|
49258
|
+
import { c as _c95 } from "react-compiler-runtime";
|
|
49208
49259
|
// src/components/threads/AudioThread/Status/StatusMessages.tsx
|
|
49209
|
-
import { c as
|
|
49260
|
+
import { c as _c94 } from "react-compiler-runtime";
|
|
49210
49261
|
import { Flex as Flex32, Text as Text9 } from "@radix-ui/themes";
|
|
49211
|
-
import { jsx as
|
|
49262
|
+
import { jsx as _jsx91, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
49212
49263
|
var html = function(_ref) {
|
|
49213
49264
|
var texts = _ref.texts;
|
|
49214
49265
|
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) {
|
|
@@ -49216,11 +49267,11 @@ var html = function(_ref) {
|
|
|
49216
49267
|
}).join(""), "\n }");
|
|
49217
49268
|
};
|
|
49218
49269
|
var StatusMessages = function(t0) {
|
|
49219
|
-
var $ =
|
|
49270
|
+
var $ = _c94(9);
|
|
49220
49271
|
var texts = t0.texts, className = t0.className, style = t0.style;
|
|
49221
49272
|
var t1;
|
|
49222
49273
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49223
|
-
t1 = /* @__PURE__ */
|
|
49274
|
+
t1 = /* @__PURE__ */ _jsx91(Text9, {
|
|
49224
49275
|
size: "2",
|
|
49225
49276
|
weight: "regular",
|
|
49226
49277
|
color: "gray",
|
|
@@ -49243,7 +49294,7 @@ var StatusMessages = function(t0) {
|
|
|
49243
49294
|
}
|
|
49244
49295
|
var t3;
|
|
49245
49296
|
if ($[3] !== t2) {
|
|
49246
|
-
t3 = /* @__PURE__ */
|
|
49297
|
+
t3 = /* @__PURE__ */ _jsx91("style", {
|
|
49247
49298
|
dangerouslySetInnerHTML: {
|
|
49248
49299
|
__html: t2
|
|
49249
49300
|
}
|
|
@@ -49275,7 +49326,7 @@ var StatusMessages = function(t0) {
|
|
|
49275
49326
|
return t4;
|
|
49276
49327
|
};
|
|
49277
49328
|
// src/components/threads/AudioThread/Status/index.tsx
|
|
49278
|
-
import { jsx as
|
|
49329
|
+
import { jsx as _jsx92 } from "react/jsx-runtime";
|
|
49279
49330
|
function ownKeys49(e, r) {
|
|
49280
49331
|
var t = Object.keys(e);
|
|
49281
49332
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49320,7 +49371,7 @@ function _toPrimitive49(t, r) {
|
|
|
49320
49371
|
return ("string" === r ? String : Number)(t);
|
|
49321
49372
|
}
|
|
49322
49373
|
var Status = function(props) {
|
|
49323
|
-
var $ =
|
|
49374
|
+
var $ = _c95(12);
|
|
49324
49375
|
var status = useStatus().status;
|
|
49325
49376
|
if (status === "recording") {
|
|
49326
49377
|
var _t;
|
|
@@ -49337,7 +49388,7 @@ var Status = function(props) {
|
|
|
49337
49388
|
}
|
|
49338
49389
|
var _t2;
|
|
49339
49390
|
if ($[1] !== props) {
|
|
49340
|
-
_t2 = /* @__PURE__ */
|
|
49391
|
+
_t2 = /* @__PURE__ */ _jsx92(StatusMessages, _objectSpread49({
|
|
49341
49392
|
texts: _t
|
|
49342
49393
|
}, props));
|
|
49343
49394
|
$[1] = props;
|
|
@@ -49363,7 +49414,7 @@ var Status = function(props) {
|
|
|
49363
49414
|
}
|
|
49364
49415
|
var _t4;
|
|
49365
49416
|
if ($[4] !== props) {
|
|
49366
|
-
_t4 = /* @__PURE__ */
|
|
49417
|
+
_t4 = /* @__PURE__ */ _jsx92(StatusMessages, _objectSpread49({
|
|
49367
49418
|
texts: _t3
|
|
49368
49419
|
}, props));
|
|
49369
49420
|
$[4] = props;
|
|
@@ -49385,7 +49436,7 @@ var Status = function(props) {
|
|
|
49385
49436
|
}
|
|
49386
49437
|
var _t6;
|
|
49387
49438
|
if ($[7] !== props) {
|
|
49388
|
-
_t6 = /* @__PURE__ */
|
|
49439
|
+
_t6 = /* @__PURE__ */ _jsx92(StatusMessages, _objectSpread49({
|
|
49389
49440
|
texts: _t5
|
|
49390
49441
|
}, props));
|
|
49391
49442
|
$[7] = props;
|
|
@@ -49406,7 +49457,7 @@ var Status = function(props) {
|
|
|
49406
49457
|
}
|
|
49407
49458
|
var t1;
|
|
49408
49459
|
if ($[10] !== props) {
|
|
49409
|
-
t1 = /* @__PURE__ */
|
|
49460
|
+
t1 = /* @__PURE__ */ _jsx92(StatusMessages, _objectSpread49({
|
|
49410
49461
|
texts: t0
|
|
49411
49462
|
}, props));
|
|
49412
49463
|
$[10] = props;
|
|
@@ -49417,11 +49468,11 @@ var Status = function(props) {
|
|
|
49417
49468
|
return t1;
|
|
49418
49469
|
};
|
|
49419
49470
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49420
|
-
import { c as
|
|
49471
|
+
import { c as _c98 } from "react-compiler-runtime";
|
|
49421
49472
|
import { Flex as Flex34 } from "@radix-ui/themes";
|
|
49422
49473
|
// src/components/threads/AudioThread/Form/MicIcon.tsx
|
|
49423
|
-
import { c as
|
|
49424
|
-
import { jsx as
|
|
49474
|
+
import { c as _c96 } from "react-compiler-runtime";
|
|
49475
|
+
import { jsx as _jsx93 } from "react/jsx-runtime";
|
|
49425
49476
|
function ownKeys50(e, r) {
|
|
49426
49477
|
var t = Object.keys(e);
|
|
49427
49478
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49466,10 +49517,10 @@ function _toPrimitive50(t, r) {
|
|
|
49466
49517
|
return ("string" === r ? String : Number)(t);
|
|
49467
49518
|
}
|
|
49468
49519
|
var MicIcon = function(props) {
|
|
49469
|
-
var $ =
|
|
49520
|
+
var $ = _c96(3);
|
|
49470
49521
|
var t0;
|
|
49471
49522
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49472
|
-
t0 = /* @__PURE__ */
|
|
49523
|
+
t0 = /* @__PURE__ */ _jsx93("path", {
|
|
49473
49524
|
stroke: "none",
|
|
49474
49525
|
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"
|
|
49475
49526
|
});
|
|
@@ -49479,7 +49530,7 @@ var MicIcon = function(props) {
|
|
|
49479
49530
|
}
|
|
49480
49531
|
var t1;
|
|
49481
49532
|
if ($[1] !== props) {
|
|
49482
|
-
t1 = /* @__PURE__ */
|
|
49533
|
+
t1 = /* @__PURE__ */ _jsx93("svg", _objectSpread50(_objectSpread50({
|
|
49483
49534
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49484
49535
|
fill: "currentColor",
|
|
49485
49536
|
stroke: "currentColor",
|
|
@@ -49498,29 +49549,29 @@ var MicIcon = function(props) {
|
|
|
49498
49549
|
return t1;
|
|
49499
49550
|
};
|
|
49500
49551
|
// src/components/threads/AudioThread/Form/ActionButton/index.tsx
|
|
49501
|
-
import { c as
|
|
49552
|
+
import { c as _c97 } from "react-compiler-runtime";
|
|
49502
49553
|
import { Flex as Flex33, IconButton as IconButton10 } from "@radix-ui/themes";
|
|
49503
49554
|
import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
|
|
49504
|
-
import { jsx as
|
|
49555
|
+
import { jsx as _jsx94, jsxs as _jsxs33 } from "react/jsx-runtime";
|
|
49505
49556
|
var ActionButton = function() {
|
|
49506
|
-
var $ =
|
|
49557
|
+
var $ = _c97(27);
|
|
49507
49558
|
var status = useStatus().status;
|
|
49508
49559
|
var audioThreadContext = useAudioThreadContext();
|
|
49509
49560
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
49510
49561
|
if (status === "recording") {
|
|
49511
49562
|
var _t;
|
|
49512
49563
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49513
|
-
_t = /* @__PURE__ */
|
|
49564
|
+
_t = /* @__PURE__ */ _jsx94(PauseIcon2, {});
|
|
49514
49565
|
$[0] = _t;
|
|
49515
49566
|
} else {
|
|
49516
49567
|
_t = $[0];
|
|
49517
49568
|
}
|
|
49518
49569
|
var t1;
|
|
49519
49570
|
if ($[1] !== audioThreadContext.audioRuntime.user.pause) {
|
|
49520
|
-
t1 = /* @__PURE__ */
|
|
49571
|
+
t1 = /* @__PURE__ */ _jsx94(Flex33, {
|
|
49521
49572
|
mr: "3",
|
|
49522
49573
|
ml: "-7",
|
|
49523
|
-
children: /* @__PURE__ */
|
|
49574
|
+
children: /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49524
49575
|
onClick: audioThreadContext.audioRuntime.user.pause,
|
|
49525
49576
|
color: "gray",
|
|
49526
49577
|
variant: "soft",
|
|
@@ -49535,14 +49586,14 @@ var ActionButton = function() {
|
|
|
49535
49586
|
}
|
|
49536
49587
|
var t2;
|
|
49537
49588
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49538
|
-
t2 = /* @__PURE__ */
|
|
49589
|
+
t2 = /* @__PURE__ */ _jsx94(ArrowUpIcon3, {});
|
|
49539
49590
|
$[3] = t2;
|
|
49540
49591
|
} else {
|
|
49541
49592
|
t2 = $[3];
|
|
49542
49593
|
}
|
|
49543
49594
|
var t3;
|
|
49544
49595
|
if ($[4] !== audioThreadContext.audioRuntime.user.stop) {
|
|
49545
|
-
t3 = /* @__PURE__ */
|
|
49596
|
+
t3 = /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49546
49597
|
onClick: audioThreadContext.audioRuntime.user.stop,
|
|
49547
49598
|
highContrast: true,
|
|
49548
49599
|
variant: "soft",
|
|
@@ -49574,14 +49625,14 @@ var ActionButton = function() {
|
|
|
49574
49625
|
if (status === "recorderPaused") {
|
|
49575
49626
|
var _t2;
|
|
49576
49627
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49577
|
-
_t2 = /* @__PURE__ */
|
|
49628
|
+
_t2 = /* @__PURE__ */ _jsx94(ResumeIcon, {});
|
|
49578
49629
|
$[9] = _t2;
|
|
49579
49630
|
} else {
|
|
49580
49631
|
_t2 = $[9];
|
|
49581
49632
|
}
|
|
49582
49633
|
var _t3;
|
|
49583
49634
|
if ($[10] !== audioThreadContext.audioRuntime.user.resume) {
|
|
49584
|
-
_t3 = /* @__PURE__ */
|
|
49635
|
+
_t3 = /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49585
49636
|
onClick: audioThreadContext.audioRuntime.user.resume,
|
|
49586
49637
|
color: "red",
|
|
49587
49638
|
size: "4",
|
|
@@ -49597,7 +49648,7 @@ var ActionButton = function() {
|
|
|
49597
49648
|
if (status === "idle") {
|
|
49598
49649
|
var _t4;
|
|
49599
49650
|
if ($[12] !== audioThreadContext.audioRuntime.user) {
|
|
49600
|
-
_t4 = /* @__PURE__ */
|
|
49651
|
+
_t4 = /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49601
49652
|
onClick: function() {
|
|
49602
49653
|
return audioThreadContext.audioRuntime.user.start();
|
|
49603
49654
|
},
|
|
@@ -49629,14 +49680,14 @@ var ActionButton = function() {
|
|
|
49629
49680
|
}
|
|
49630
49681
|
var _t6;
|
|
49631
49682
|
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49632
|
-
_t6 = /* @__PURE__ */
|
|
49683
|
+
_t6 = /* @__PURE__ */ _jsx94(StopIcon2, {});
|
|
49633
49684
|
$[18] = _t6;
|
|
49634
49685
|
} else {
|
|
49635
49686
|
_t6 = $[18];
|
|
49636
49687
|
}
|
|
49637
49688
|
var _t7;
|
|
49638
49689
|
if ($[19] !== _t5) {
|
|
49639
|
-
_t7 = /* @__PURE__ */
|
|
49690
|
+
_t7 = /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49640
49691
|
onClick: _t5,
|
|
49641
49692
|
size: "4",
|
|
49642
49693
|
color: "gray",
|
|
@@ -49663,14 +49714,14 @@ var ActionButton = function() {
|
|
|
49663
49714
|
}
|
|
49664
49715
|
var _t9;
|
|
49665
49716
|
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49666
|
-
_t9 = /* @__PURE__ */
|
|
49717
|
+
_t9 = /* @__PURE__ */ _jsx94(ResumeIcon, {});
|
|
49667
49718
|
$[23] = _t9;
|
|
49668
49719
|
} else {
|
|
49669
49720
|
_t9 = $[23];
|
|
49670
49721
|
}
|
|
49671
49722
|
var _t10;
|
|
49672
49723
|
if ($[24] !== _t8) {
|
|
49673
|
-
_t10 = /* @__PURE__ */
|
|
49724
|
+
_t10 = /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49674
49725
|
onClick: _t8,
|
|
49675
49726
|
size: "4",
|
|
49676
49727
|
children: _t9
|
|
@@ -49684,7 +49735,7 @@ var ActionButton = function() {
|
|
|
49684
49735
|
}
|
|
49685
49736
|
var t0;
|
|
49686
49737
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49687
|
-
t0 = /* @__PURE__ */
|
|
49738
|
+
t0 = /* @__PURE__ */ _jsx94(IconButton10, {
|
|
49688
49739
|
size: "4",
|
|
49689
49740
|
variant: "soft",
|
|
49690
49741
|
disabled: true
|
|
@@ -49696,7 +49747,7 @@ var ActionButton = function() {
|
|
|
49696
49747
|
return t0;
|
|
49697
49748
|
};
|
|
49698
49749
|
// src/components/threads/AudioThread/Form/index.tsx
|
|
49699
|
-
import { jsx as
|
|
49750
|
+
import { jsx as _jsx95, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
49700
49751
|
function ownKeys51(e, r) {
|
|
49701
49752
|
var t = Object.keys(e);
|
|
49702
49753
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49741,17 +49792,17 @@ function _toPrimitive51(t, r) {
|
|
|
49741
49792
|
return ("string" === r ? String : Number)(t);
|
|
49742
49793
|
}
|
|
49743
49794
|
var Form = function(props) {
|
|
49744
|
-
var $ =
|
|
49795
|
+
var $ = _c98(17);
|
|
49745
49796
|
var status = useStatus().status;
|
|
49746
49797
|
var audioThreadContext = useAudioThreadContext();
|
|
49747
49798
|
var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49748
49799
|
var t1;
|
|
49749
49800
|
if ($[0] !== t0) {
|
|
49750
|
-
t1 = /* @__PURE__ */
|
|
49801
|
+
t1 = /* @__PURE__ */ _jsx95(Flex34, {
|
|
49751
49802
|
ml: "-22.5px",
|
|
49752
49803
|
mr: "2",
|
|
49753
49804
|
align: "center",
|
|
49754
|
-
children: /* @__PURE__ */
|
|
49805
|
+
children: /* @__PURE__ */ _jsx95(MicIcon, {
|
|
49755
49806
|
style: {
|
|
49756
49807
|
color: t0
|
|
49757
49808
|
}
|
|
@@ -49777,7 +49828,7 @@ var Form = function(props) {
|
|
|
49777
49828
|
var t4 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
|
|
49778
49829
|
var t5;
|
|
49779
49830
|
if ($[4] !== audioThreadContext.audioRuntime.user.visualizationAnalyser || $[5] !== t4) {
|
|
49780
|
-
t5 = /* @__PURE__ */
|
|
49831
|
+
t5 = /* @__PURE__ */ _jsx95(BarsVisualizer, {
|
|
49781
49832
|
visualizationAnalyser: audioThreadContext.audioRuntime.user.visualizationAnalyser,
|
|
49782
49833
|
backgroundColor: t4,
|
|
49783
49834
|
height: "20px",
|
|
@@ -49791,7 +49842,7 @@ var Form = function(props) {
|
|
|
49791
49842
|
}
|
|
49792
49843
|
var t6;
|
|
49793
49844
|
if ($[7] !== t3 || $[8] !== t5) {
|
|
49794
|
-
t6 = /* @__PURE__ */
|
|
49845
|
+
t6 = /* @__PURE__ */ _jsx95(Flex34, {
|
|
49795
49846
|
px: "2",
|
|
49796
49847
|
py: "1",
|
|
49797
49848
|
style: t3,
|
|
@@ -49821,7 +49872,7 @@ var Form = function(props) {
|
|
|
49821
49872
|
}
|
|
49822
49873
|
var t8;
|
|
49823
49874
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49824
|
-
t8 = /* @__PURE__ */
|
|
49875
|
+
t8 = /* @__PURE__ */ _jsx95(ActionButton, {});
|
|
49825
49876
|
$[13] = t8;
|
|
49826
49877
|
} else {
|
|
49827
49878
|
t8 = $[13];
|
|
@@ -49846,7 +49897,7 @@ var Form = function(props) {
|
|
|
49846
49897
|
return t9;
|
|
49847
49898
|
};
|
|
49848
49899
|
// src/components/threads/AudioThread/index.tsx
|
|
49849
|
-
import { jsx as
|
|
49900
|
+
import { jsx as _jsx96, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
49850
49901
|
function ownKeys52(e, r) {
|
|
49851
49902
|
var t = Object.keys(e);
|
|
49852
49903
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49891,14 +49942,14 @@ function _toPrimitive52(t, r) {
|
|
|
49891
49942
|
return ("string" === r ? String : Number)(t);
|
|
49892
49943
|
}
|
|
49893
49944
|
var AudioThread = function(props) {
|
|
49894
|
-
var $ =
|
|
49945
|
+
var $ = _c99(5);
|
|
49895
49946
|
var t0;
|
|
49896
49947
|
var t1;
|
|
49897
49948
|
var t2;
|
|
49898
49949
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49899
|
-
t0 = /* @__PURE__ */
|
|
49900
|
-
t1 = /* @__PURE__ */
|
|
49901
|
-
t2 = /* @__PURE__ */
|
|
49950
|
+
t0 = /* @__PURE__ */ _jsx96(Visualization, {});
|
|
49951
|
+
t1 = /* @__PURE__ */ _jsx96(Status, {});
|
|
49952
|
+
t2 = /* @__PURE__ */ _jsx96(Form, {});
|
|
49902
49953
|
$[0] = t0;
|
|
49903
49954
|
$[1] = t1;
|
|
49904
49955
|
$[2] = t2;
|
|
@@ -49928,7 +49979,7 @@ AudioThread.Visualization = Visualization;
|
|
|
49928
49979
|
AudioThread.Status = Status;
|
|
49929
49980
|
AudioThread.Form = Form;
|
|
49930
49981
|
// src/components/threads/AudioThreadDialog/index.tsx
|
|
49931
|
-
import { jsx as
|
|
49982
|
+
import { jsx as _jsx97, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
49932
49983
|
function ownKeys53(e, r) {
|
|
49933
49984
|
var t = Object.keys(e);
|
|
49934
49985
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49973,14 +50024,14 @@ function _toPrimitive53(t, r) {
|
|
|
49973
50024
|
return ("string" === r ? String : Number)(t);
|
|
49974
50025
|
}
|
|
49975
50026
|
var AudioThreadDialog = function(props) {
|
|
49976
|
-
var $ =
|
|
50027
|
+
var $ = _c100(4);
|
|
49977
50028
|
var t0;
|
|
49978
50029
|
var t1;
|
|
49979
50030
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49980
|
-
t0 = /* @__PURE__ */
|
|
49981
|
-
children: /* @__PURE__ */
|
|
50031
|
+
t0 = /* @__PURE__ */ _jsx97(Content8.Root, {
|
|
50032
|
+
children: /* @__PURE__ */ _jsx97(AudioThread, {})
|
|
49982
50033
|
});
|
|
49983
|
-
t1 = /* @__PURE__ */
|
|
50034
|
+
t1 = /* @__PURE__ */ _jsx97(Trigger, {});
|
|
49984
50035
|
$[0] = t0;
|
|
49985
50036
|
$[1] = t1;
|
|
49986
50037
|
} else {
|
|
@@ -50495,10 +50546,10 @@ var useWebrtcAudioRuntime = function() {
|
|
|
50495
50546
|
]);
|
|
50496
50547
|
};
|
|
50497
50548
|
// src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
|
|
50498
|
-
import { c as
|
|
50499
|
-
import { jsx as
|
|
50549
|
+
import { c as _c101 } from "react-compiler-runtime";
|
|
50550
|
+
import { jsx as _jsx98 } from "react/jsx-runtime";
|
|
50500
50551
|
var WebrtcAudioRuntimeProvider = function(t0) {
|
|
50501
|
-
var $ =
|
|
50552
|
+
var $ = _c101(5);
|
|
50502
50553
|
var children = t0.children;
|
|
50503
50554
|
var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
|
|
50504
50555
|
var t1;
|
|
@@ -50513,7 +50564,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50513
50564
|
}
|
|
50514
50565
|
var t2;
|
|
50515
50566
|
if ($[2] !== children || $[3] !== t1) {
|
|
50516
|
-
t2 = /* @__PURE__ */
|
|
50567
|
+
t2 = /* @__PURE__ */ _jsx98(AudioThreadContext.Provider, {
|
|
50517
50568
|
value: t1,
|
|
50518
50569
|
children: children
|
|
50519
50570
|
});
|
|
@@ -50526,14 +50577,14 @@ var WebrtcAudioRuntimeProvider = function(t0) {
|
|
|
50526
50577
|
return t2;
|
|
50527
50578
|
};
|
|
50528
50579
|
// src/components/gui/Gui/index.tsx
|
|
50529
|
-
import { c as
|
|
50580
|
+
import { c as _c104 } from "react-compiler-runtime";
|
|
50530
50581
|
import { useMemo as useMemo23 } from "react";
|
|
50531
50582
|
import { Flex as Flex35, Card as Card5, Spinner as Spinner3 } from "@radix-ui/themes";
|
|
50532
50583
|
// src/hooks/messages/useLatestAssistantMessage/index.ts
|
|
50533
|
-
import { c as
|
|
50584
|
+
import { c as _c102 } from "react-compiler-runtime";
|
|
50534
50585
|
import { useMemo as useMemo21 } from "react";
|
|
50535
50586
|
var useLatestAssistantMessage = function() {
|
|
50536
|
-
var $ =
|
|
50587
|
+
var $ = _c102(4);
|
|
50537
50588
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50538
50589
|
var t0;
|
|
50539
50590
|
var t1;
|
|
@@ -50562,11 +50613,11 @@ function _temp11(message) {
|
|
|
50562
50613
|
return message.role === "assistant";
|
|
50563
50614
|
}
|
|
50564
50615
|
// src/hooks/messages/useLatestAssistantMessageWithContent/index.ts
|
|
50565
|
-
import { c as
|
|
50616
|
+
import { c as _c103 } from "react-compiler-runtime";
|
|
50566
50617
|
import { isEmpty as isEmpty3 } from "radash";
|
|
50567
50618
|
import { useMemo as useMemo22 } from "react";
|
|
50568
50619
|
var useLatestAssistantMessageWithContent = function() {
|
|
50569
|
-
var $ =
|
|
50620
|
+
var $ = _c103(4);
|
|
50570
50621
|
var _useMessages = useMessages(), messages2 = _useMessages.messages;
|
|
50571
50622
|
var t0;
|
|
50572
50623
|
var t1;
|
|
@@ -50598,14 +50649,14 @@ function _temp25(message) {
|
|
|
50598
50649
|
return message.role === "assistant" && message.content.some(_temp12);
|
|
50599
50650
|
}
|
|
50600
50651
|
// src/components/gui/Gui/index.tsx
|
|
50601
|
-
import { jsx as
|
|
50652
|
+
import { jsx as _jsx99, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
50602
50653
|
var StartingToolCalls3 = function() {
|
|
50603
|
-
var $ =
|
|
50654
|
+
var $ = _c104(2);
|
|
50604
50655
|
var _useComponents = useComponents(), t0 = _useComponents.components;
|
|
50605
50656
|
var StartingToolCalls4 = t0.StartingToolCalls;
|
|
50606
50657
|
var t1;
|
|
50607
50658
|
if ($[0] !== StartingToolCalls4) {
|
|
50608
|
-
t1 = /* @__PURE__ */
|
|
50659
|
+
t1 = /* @__PURE__ */ _jsx99(StartingToolCalls4, {});
|
|
50609
50660
|
$[0] = StartingToolCalls4;
|
|
50610
50661
|
$[1] = t1;
|
|
50611
50662
|
} else {
|
|
@@ -50614,7 +50665,7 @@ var StartingToolCalls3 = function() {
|
|
|
50614
50665
|
return t1;
|
|
50615
50666
|
};
|
|
50616
50667
|
var Content10 = function(t0) {
|
|
50617
|
-
var $ =
|
|
50668
|
+
var $ = _c104(5);
|
|
50618
50669
|
var latestRunStep = t0.latestRunStep;
|
|
50619
50670
|
var t1;
|
|
50620
50671
|
bb0: {
|
|
@@ -50636,7 +50687,7 @@ var Content10 = function(t0) {
|
|
|
50636
50687
|
if (!latestRunStep || latestRunStep.step_details.type !== "tool_calls") {
|
|
50637
50688
|
var _t;
|
|
50638
50689
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50639
|
-
_t = /* @__PURE__ */
|
|
50690
|
+
_t = /* @__PURE__ */ _jsx99(Spinner3, {});
|
|
50640
50691
|
$[0] = _t;
|
|
50641
50692
|
} else {
|
|
50642
50693
|
_t = $[0];
|
|
@@ -50646,7 +50697,7 @@ var Content10 = function(t0) {
|
|
|
50646
50697
|
if (!latestToolCall) {
|
|
50647
50698
|
var _t2;
|
|
50648
50699
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50649
|
-
_t2 = /* @__PURE__ */
|
|
50700
|
+
_t2 = /* @__PURE__ */ _jsx99(StartingToolCalls3, {});
|
|
50650
50701
|
$[1] = _t2;
|
|
50651
50702
|
} else {
|
|
50652
50703
|
_t2 = $[1];
|
|
@@ -50655,7 +50706,7 @@ var Content10 = function(t0) {
|
|
|
50655
50706
|
}
|
|
50656
50707
|
var t2;
|
|
50657
50708
|
if ($[2] !== latestRunStep || $[3] !== latestToolCall) {
|
|
50658
|
-
t2 = /* @__PURE__ */
|
|
50709
|
+
t2 = /* @__PURE__ */ _jsx99(ToolCall, {
|
|
50659
50710
|
runStep: latestRunStep,
|
|
50660
50711
|
toolCall: latestToolCall
|
|
50661
50712
|
});
|
|
@@ -50668,7 +50719,7 @@ var Content10 = function(t0) {
|
|
|
50668
50719
|
return t2;
|
|
50669
50720
|
};
|
|
50670
50721
|
var Progress2 = function(t0) {
|
|
50671
|
-
var $ =
|
|
50722
|
+
var $ = _c104(5);
|
|
50672
50723
|
var latestAssistantMessage = t0.latestAssistantMessage;
|
|
50673
50724
|
var isMutatingMessage = useIsMutatingMessage();
|
|
50674
50725
|
var t1;
|
|
@@ -50702,10 +50753,10 @@ var Progress2 = function(t0) {
|
|
|
50702
50753
|
}
|
|
50703
50754
|
var t4;
|
|
50704
50755
|
if ($[3] !== latestRunStep) {
|
|
50705
|
-
t4 = /* @__PURE__ */
|
|
50756
|
+
t4 = /* @__PURE__ */ _jsx99(Flex35, {
|
|
50706
50757
|
style: t3,
|
|
50707
|
-
children: /* @__PURE__ */
|
|
50708
|
-
children: /* @__PURE__ */
|
|
50758
|
+
children: /* @__PURE__ */ _jsx99(Card5, {
|
|
50759
|
+
children: /* @__PURE__ */ _jsx99(Content10, {
|
|
50709
50760
|
latestRunStep: latestRunStep
|
|
50710
50761
|
})
|
|
50711
50762
|
})
|
|
@@ -50718,20 +50769,20 @@ var Progress2 = function(t0) {
|
|
|
50718
50769
|
return t4;
|
|
50719
50770
|
};
|
|
50720
50771
|
var Gui = function() {
|
|
50721
|
-
var $ =
|
|
50772
|
+
var $ = _c104(8);
|
|
50722
50773
|
var latestAssistantMessage = useLatestAssistantMessage().latestAssistantMessage;
|
|
50723
50774
|
var latestAssistantMessageWithContent = useLatestAssistantMessageWithContent().latestAssistantMessageWithContent;
|
|
50724
50775
|
if (!latestAssistantMessage || !latestAssistantMessageWithContent) {
|
|
50725
50776
|
var _t3;
|
|
50726
50777
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50727
|
-
_t3 = /* @__PURE__ */
|
|
50778
|
+
_t3 = /* @__PURE__ */ _jsx99(Flex35, {
|
|
50728
50779
|
direction: "column",
|
|
50729
50780
|
flexGrow: "1",
|
|
50730
|
-
children: /* @__PURE__ */
|
|
50781
|
+
children: /* @__PURE__ */ _jsx99(Flex35, {
|
|
50731
50782
|
align: "center",
|
|
50732
50783
|
justify: "center",
|
|
50733
50784
|
flexGrow: "1",
|
|
50734
|
-
children: /* @__PURE__ */
|
|
50785
|
+
children: /* @__PURE__ */ _jsx99(Spinner3, {
|
|
50735
50786
|
size: "3"
|
|
50736
50787
|
})
|
|
50737
50788
|
})
|
|
@@ -50744,7 +50795,7 @@ var Gui = function() {
|
|
|
50744
50795
|
}
|
|
50745
50796
|
var t0;
|
|
50746
50797
|
if ($[1] !== latestAssistantMessageWithContent) {
|
|
50747
|
-
t0 = /* @__PURE__ */
|
|
50798
|
+
t0 = /* @__PURE__ */ _jsx99(MessageContent, {
|
|
50748
50799
|
message: latestAssistantMessageWithContent
|
|
50749
50800
|
});
|
|
50750
50801
|
$[1] = latestAssistantMessageWithContent;
|
|
@@ -50754,7 +50805,7 @@ var Gui = function() {
|
|
|
50754
50805
|
}
|
|
50755
50806
|
var t1;
|
|
50756
50807
|
if ($[3] !== latestAssistantMessage) {
|
|
50757
|
-
t1 = /* @__PURE__ */
|
|
50808
|
+
t1 = /* @__PURE__ */ _jsx99(Progress2, {
|
|
50758
50809
|
latestAssistantMessage: latestAssistantMessage
|
|
50759
50810
|
});
|
|
50760
50811
|
$[3] = latestAssistantMessage;
|
|
@@ -50784,9 +50835,9 @@ function _temp13(rs) {
|
|
|
50784
50835
|
return rs.status === "in_progress";
|
|
50785
50836
|
}
|
|
50786
50837
|
// src/components/markdown/MarkdownProvider/index.tsx
|
|
50787
|
-
import { c as
|
|
50838
|
+
import { c as _c105 } from "react-compiler-runtime";
|
|
50788
50839
|
import { useMemo as useMemo24 } from "react";
|
|
50789
|
-
import { jsx as
|
|
50840
|
+
import { jsx as _jsx100 } from "react/jsx-runtime";
|
|
50790
50841
|
var _excluded7 = [
|
|
50791
50842
|
"children"
|
|
50792
50843
|
];
|
|
@@ -50809,7 +50860,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
|
|
|
50809
50860
|
return t;
|
|
50810
50861
|
}
|
|
50811
50862
|
var MarkdownProvider = function(t0) {
|
|
50812
|
-
var $ =
|
|
50863
|
+
var $ = _c105(9);
|
|
50813
50864
|
var children;
|
|
50814
50865
|
var rest;
|
|
50815
50866
|
if ($[0] !== t0) {
|
|
@@ -50839,7 +50890,7 @@ var MarkdownProvider = function(t0) {
|
|
|
50839
50890
|
var value = t1;
|
|
50840
50891
|
var t3;
|
|
50841
50892
|
if ($[6] !== children || $[7] !== value) {
|
|
50842
|
-
t3 = /* @__PURE__ */
|
|
50893
|
+
t3 = /* @__PURE__ */ _jsx100(MarkdownContext.Provider, {
|
|
50843
50894
|
value: value,
|
|
50844
50895
|
children: children
|
|
50845
50896
|
});
|
|
@@ -50852,18 +50903,18 @@ var MarkdownProvider = function(t0) {
|
|
|
50852
50903
|
return t3;
|
|
50853
50904
|
};
|
|
50854
50905
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
50855
|
-
import { c as
|
|
50906
|
+
import { c as _c108 } from "react-compiler-runtime";
|
|
50856
50907
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50857
|
-
import { c as
|
|
50908
|
+
import { c as _c107 } from "react-compiler-runtime";
|
|
50858
50909
|
import { useState as useState13 } from "react";
|
|
50859
50910
|
import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
|
|
50860
50911
|
import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
|
|
50861
50912
|
// src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
|
|
50862
|
-
import { c as
|
|
50913
|
+
import { c as _c106 } from "react-compiler-runtime";
|
|
50863
50914
|
import { Flex as Flex36, Card as Card6, Inset as Inset3 } from "@radix-ui/themes";
|
|
50864
|
-
import { jsx as
|
|
50915
|
+
import { jsx as _jsx101 } from "react/jsx-runtime";
|
|
50865
50916
|
var Content11 = function(t0) {
|
|
50866
|
-
var $ =
|
|
50917
|
+
var $ = _c106(5);
|
|
50867
50918
|
var fileId = t0.fileId;
|
|
50868
50919
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
50869
50920
|
var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
|
|
@@ -50900,18 +50951,18 @@ var Content11 = function(t0) {
|
|
|
50900
50951
|
}
|
|
50901
50952
|
var t5;
|
|
50902
50953
|
if ($[3] !== t3) {
|
|
50903
|
-
t5 = /* @__PURE__ */
|
|
50954
|
+
t5 = /* @__PURE__ */ _jsx101(Flex36, {
|
|
50904
50955
|
direction: "column",
|
|
50905
50956
|
flexGrow: "1",
|
|
50906
50957
|
gap: "3",
|
|
50907
|
-
children: /* @__PURE__ */
|
|
50958
|
+
children: /* @__PURE__ */ _jsx101(Card6, {
|
|
50908
50959
|
style: t1,
|
|
50909
|
-
children: /* @__PURE__ */
|
|
50960
|
+
children: /* @__PURE__ */ _jsx101(Inset3, {
|
|
50910
50961
|
clip: "padding-box",
|
|
50911
50962
|
style: t2,
|
|
50912
|
-
children: /* @__PURE__ */
|
|
50963
|
+
children: /* @__PURE__ */ _jsx101(Flex36, {
|
|
50913
50964
|
flexGrow: "1",
|
|
50914
|
-
children: /* @__PURE__ */
|
|
50965
|
+
children: /* @__PURE__ */ _jsx101("embed", {
|
|
50915
50966
|
src: t3,
|
|
50916
50967
|
style: t4
|
|
50917
50968
|
})
|
|
@@ -50927,9 +50978,9 @@ var Content11 = function(t0) {
|
|
|
50927
50978
|
return t5;
|
|
50928
50979
|
};
|
|
50929
50980
|
// src/components/annotations/SourceAnnotation/FileCitation/index.tsx
|
|
50930
|
-
import { jsx as
|
|
50981
|
+
import { jsx as _jsx102, jsxs as _jsxs38, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
50931
50982
|
var FileCitation = function(t0) {
|
|
50932
|
-
var $ =
|
|
50983
|
+
var $ = _c107(18);
|
|
50933
50984
|
var annotation = t0.annotation;
|
|
50934
50985
|
var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
|
|
50935
50986
|
var t1;
|
|
@@ -50944,14 +50995,14 @@ var FileCitation = function(t0) {
|
|
|
50944
50995
|
}
|
|
50945
50996
|
var t2;
|
|
50946
50997
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50947
|
-
t2 = /* @__PURE__ */
|
|
50998
|
+
t2 = /* @__PURE__ */ _jsx102(QuoteIcon2, {});
|
|
50948
50999
|
$[2] = t2;
|
|
50949
51000
|
} else {
|
|
50950
51001
|
t2 = $[2];
|
|
50951
51002
|
}
|
|
50952
51003
|
var t3;
|
|
50953
51004
|
if ($[3] !== t1) {
|
|
50954
|
-
t3 = /* @__PURE__ */
|
|
51005
|
+
t3 = /* @__PURE__ */ _jsx102(IconButton11, {
|
|
50955
51006
|
variant: "soft",
|
|
50956
51007
|
color: "gray",
|
|
50957
51008
|
size: "1",
|
|
@@ -50987,9 +51038,9 @@ var FileCitation = function(t0) {
|
|
|
50987
51038
|
}
|
|
50988
51039
|
var t7;
|
|
50989
51040
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50990
|
-
t7 = /* @__PURE__ */
|
|
51041
|
+
t7 = /* @__PURE__ */ _jsx102(VisuallyHidden, {
|
|
50991
51042
|
asChild: true,
|
|
50992
|
-
children: /* @__PURE__ */
|
|
51043
|
+
children: /* @__PURE__ */ _jsx102(Dialog.Title, {
|
|
50993
51044
|
children: "Source"
|
|
50994
51045
|
})
|
|
50995
51046
|
});
|
|
@@ -50999,7 +51050,7 @@ var FileCitation = function(t0) {
|
|
|
50999
51050
|
}
|
|
51000
51051
|
var t8;
|
|
51001
51052
|
if ($[8] !== activeFileId) {
|
|
51002
|
-
t8 = activeFileId && /* @__PURE__ */
|
|
51053
|
+
t8 = activeFileId && /* @__PURE__ */ _jsx102(Content11, {
|
|
51003
51054
|
fileId: activeFileId
|
|
51004
51055
|
});
|
|
51005
51056
|
$[8] = activeFileId;
|
|
@@ -51027,7 +51078,7 @@ var FileCitation = function(t0) {
|
|
|
51027
51078
|
}
|
|
51028
51079
|
var t10;
|
|
51029
51080
|
if ($[12] !== t4 || $[13] !== t9) {
|
|
51030
|
-
t10 = /* @__PURE__ */
|
|
51081
|
+
t10 = /* @__PURE__ */ _jsx102(Dialog.Root, {
|
|
51031
51082
|
open: t4,
|
|
51032
51083
|
onOpenChange: t5,
|
|
51033
51084
|
children: t9
|
|
@@ -51055,7 +51106,7 @@ var FileCitation = function(t0) {
|
|
|
51055
51106
|
return t11;
|
|
51056
51107
|
};
|
|
51057
51108
|
// src/components/annotations/SourceAnnotation/index.tsx
|
|
51058
|
-
import { jsx as
|
|
51109
|
+
import { jsx as _jsx103 } from "react/jsx-runtime";
|
|
51059
51110
|
var _excluded8 = [
|
|
51060
51111
|
"children"
|
|
51061
51112
|
];
|
|
@@ -51078,7 +51129,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
|
|
|
51078
51129
|
return t;
|
|
51079
51130
|
}
|
|
51080
51131
|
var SourceAnnotation = function(t0) {
|
|
51081
|
-
var $ =
|
|
51132
|
+
var $ = _c108(10);
|
|
51082
51133
|
var children;
|
|
51083
51134
|
var rest;
|
|
51084
51135
|
if ($[0] !== t0) {
|
|
@@ -51106,7 +51157,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51106
51157
|
if (annotation.type === "file_citation") {
|
|
51107
51158
|
var t2;
|
|
51108
51159
|
if ($[5] !== annotation) {
|
|
51109
|
-
t2 = /* @__PURE__ */
|
|
51160
|
+
t2 = /* @__PURE__ */ _jsx103(FileCitation, {
|
|
51110
51161
|
annotation: annotation
|
|
51111
51162
|
});
|
|
51112
51163
|
$[5] = annotation;
|
|
@@ -51119,7 +51170,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51119
51170
|
if (annotation.type === "file_path") {
|
|
51120
51171
|
var _t2;
|
|
51121
51172
|
if ($[7] !== annotation || $[8] !== children) {
|
|
51122
|
-
_t2 = /* @__PURE__ */
|
|
51173
|
+
_t2 = /* @__PURE__ */ _jsx103(FilePathAnnotation, {
|
|
51123
51174
|
annotation: annotation,
|
|
51124
51175
|
children: children
|
|
51125
51176
|
});
|
|
@@ -51135,7 +51186,7 @@ var SourceAnnotation = function(t0) {
|
|
|
51135
51186
|
return null;
|
|
51136
51187
|
};
|
|
51137
51188
|
// src/components/avatars/Avatar.tsx
|
|
51138
|
-
import { c as
|
|
51189
|
+
import { c as _c111 } from "react-compiler-runtime";
|
|
51139
51190
|
// src/enums/index.ts
|
|
51140
51191
|
var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
|
|
51141
51192
|
IconAvatarName2["BACKPACK"] = "BACKPACK";
|
|
@@ -51160,7 +51211,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
|
|
|
51160
51211
|
// src/components/avatars/Avatar.tsx
|
|
51161
51212
|
import { Avatar as RadixAvatar } from "@radix-ui/themes";
|
|
51162
51213
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51163
|
-
import { c as
|
|
51214
|
+
import { c as _c109 } from "react-compiler-runtime";
|
|
51164
51215
|
import { Avatar as Avatar4 } from "@radix-ui/themes";
|
|
51165
51216
|
// src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
|
|
51166
51217
|
var width = function(_ref) {
|
|
@@ -51212,9 +51263,9 @@ var optimizedSrc = function(_ref) {
|
|
|
51212
51263
|
}));
|
|
51213
51264
|
};
|
|
51214
51265
|
// src/components/imageAvatars/ImageAvatar/index.tsx
|
|
51215
|
-
import { jsx as
|
|
51266
|
+
import { jsx as _jsx104 } from "react/jsx-runtime";
|
|
51216
51267
|
var ImageAvatar = function(t0) {
|
|
51217
|
-
var $ =
|
|
51268
|
+
var $ = _c109(9);
|
|
51218
51269
|
var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51219
51270
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51220
51271
|
var t1;
|
|
@@ -51233,7 +51284,7 @@ var ImageAvatar = function(t0) {
|
|
|
51233
51284
|
}
|
|
51234
51285
|
var t2;
|
|
51235
51286
|
if ($[4] !== className || $[5] !== size || $[6] !== style || $[7] !== t1) {
|
|
51236
|
-
t2 = /* @__PURE__ */
|
|
51287
|
+
t2 = /* @__PURE__ */ _jsx104(Avatar4, {
|
|
51237
51288
|
className: className,
|
|
51238
51289
|
style: style,
|
|
51239
51290
|
fallback: "",
|
|
@@ -51251,7 +51302,7 @@ var ImageAvatar = function(t0) {
|
|
|
51251
51302
|
return t2;
|
|
51252
51303
|
};
|
|
51253
51304
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51254
|
-
import { c as
|
|
51305
|
+
import { c as _c110 } from "react-compiler-runtime";
|
|
51255
51306
|
import { useMemo as useMemo25 } from "react";
|
|
51256
51307
|
import { Avatar as Avatar5 } from "@radix-ui/themes";
|
|
51257
51308
|
// src/lib/iconAvatars/iconAvatarComponents.ts
|
|
@@ -51259,16 +51310,16 @@ import { BackpackIcon, RocketIcon, MagicWandIcon, CubeIcon, TargetIcon, DiscIcon
|
|
|
51259
51310
|
var _obj;
|
|
51260
51311
|
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);
|
|
51261
51312
|
// src/components/iconAvatars/IconAvatar.tsx
|
|
51262
|
-
import { jsx as
|
|
51313
|
+
import { jsx as _jsx105 } from "react/jsx-runtime";
|
|
51263
51314
|
var IconAvatar = function(t0) {
|
|
51264
|
-
var $ =
|
|
51315
|
+
var $ = _c110(7);
|
|
51265
51316
|
var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
|
|
51266
51317
|
var t1;
|
|
51267
51318
|
t1 = iconAvatarComponents[iconAvatar.name];
|
|
51268
51319
|
var Component2 = t1;
|
|
51269
51320
|
var t2;
|
|
51270
51321
|
if ($[0] !== Component2) {
|
|
51271
|
-
t2 = Component2 ? /* @__PURE__ */
|
|
51322
|
+
t2 = Component2 ? /* @__PURE__ */ _jsx105(Component2, {}) : "";
|
|
51272
51323
|
$[0] = Component2;
|
|
51273
51324
|
$[1] = t2;
|
|
51274
51325
|
} else {
|
|
@@ -51276,7 +51327,7 @@ var IconAvatar = function(t0) {
|
|
|
51276
51327
|
}
|
|
51277
51328
|
var t3;
|
|
51278
51329
|
if ($[2] !== className || $[3] !== size || $[4] !== style || $[5] !== t2) {
|
|
51279
|
-
t3 = /* @__PURE__ */
|
|
51330
|
+
t3 = /* @__PURE__ */ _jsx105(Avatar5, {
|
|
51280
51331
|
className: className,
|
|
51281
51332
|
style: style,
|
|
51282
51333
|
size: size,
|
|
@@ -51293,16 +51344,16 @@ var IconAvatar = function(t0) {
|
|
|
51293
51344
|
return t3;
|
|
51294
51345
|
};
|
|
51295
51346
|
// src/components/avatars/Avatar.tsx
|
|
51296
|
-
import { jsx as
|
|
51347
|
+
import { jsx as _jsx106 } from "react/jsx-runtime";
|
|
51297
51348
|
var Avatar6 = function(t0) {
|
|
51298
|
-
var $ =
|
|
51349
|
+
var $ = _c111(14);
|
|
51299
51350
|
var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
|
|
51300
51351
|
var size = t1 === void 0 ? "1" : t1;
|
|
51301
51352
|
if (avatar) {
|
|
51302
51353
|
if (avatar.type === AvatarType.IMAGE && avatar.imageAvatar) {
|
|
51303
51354
|
var _t;
|
|
51304
51355
|
if ($[0] !== avatar.imageAvatar || $[1] !== className || $[2] !== size || $[3] !== style) {
|
|
51305
|
-
_t = /* @__PURE__ */
|
|
51356
|
+
_t = /* @__PURE__ */ _jsx106(ImageAvatar, {
|
|
51306
51357
|
imageAvatar: avatar.imageAvatar,
|
|
51307
51358
|
size: size,
|
|
51308
51359
|
className: className,
|
|
@@ -51321,7 +51372,7 @@ var Avatar6 = function(t0) {
|
|
|
51321
51372
|
if (avatar.type === AvatarType.ICON && avatar.iconAvatar) {
|
|
51322
51373
|
var _t2;
|
|
51323
51374
|
if ($[5] !== avatar.iconAvatar || $[6] !== className || $[7] !== size || $[8] !== style) {
|
|
51324
|
-
_t2 = /* @__PURE__ */
|
|
51375
|
+
_t2 = /* @__PURE__ */ _jsx106(IconAvatar, {
|
|
51325
51376
|
iconAvatar: avatar.iconAvatar,
|
|
51326
51377
|
size: size,
|
|
51327
51378
|
className: className,
|
|
@@ -51340,7 +51391,7 @@ var Avatar6 = function(t0) {
|
|
|
51340
51391
|
}
|
|
51341
51392
|
var t2;
|
|
51342
51393
|
if ($[10] !== className || $[11] !== size || $[12] !== style) {
|
|
51343
|
-
t2 = /* @__PURE__ */
|
|
51394
|
+
t2 = /* @__PURE__ */ _jsx106(RadixAvatar, {
|
|
51344
51395
|
fallback: "",
|
|
51345
51396
|
size: size,
|
|
51346
51397
|
className: className,
|
|
@@ -51356,9 +51407,9 @@ var Avatar6 = function(t0) {
|
|
|
51356
51407
|
return t2;
|
|
51357
51408
|
};
|
|
51358
51409
|
// src/components/components/ComponentsProvider.tsx
|
|
51359
|
-
import { c as
|
|
51410
|
+
import { c as _c112 } from "react-compiler-runtime";
|
|
51360
51411
|
import { useMemo as useMemo26 } from "react";
|
|
51361
|
-
import { jsx as
|
|
51412
|
+
import { jsx as _jsx107 } from "react/jsx-runtime";
|
|
51362
51413
|
var _excluded9 = [
|
|
51363
51414
|
"children"
|
|
51364
51415
|
];
|
|
@@ -51381,7 +51432,7 @@ function _objectWithoutPropertiesLoose9(r, e) {
|
|
|
51381
51432
|
return t;
|
|
51382
51433
|
}
|
|
51383
51434
|
var ComponentsProvider = function(t0) {
|
|
51384
|
-
var $ =
|
|
51435
|
+
var $ = _c112(9);
|
|
51385
51436
|
var children;
|
|
51386
51437
|
var rest;
|
|
51387
51438
|
if ($[0] !== t0) {
|
|
@@ -51411,7 +51462,7 @@ var ComponentsProvider = function(t0) {
|
|
|
51411
51462
|
var value = t1;
|
|
51412
51463
|
var t3;
|
|
51413
51464
|
if ($[6] !== children || $[7] !== value) {
|
|
51414
|
-
t3 = /* @__PURE__ */
|
|
51465
|
+
t3 = /* @__PURE__ */ _jsx107(ComponentsContext.Provider, {
|
|
51415
51466
|
value: value,
|
|
51416
51467
|
children: children
|
|
51417
51468
|
});
|
|
@@ -51424,11 +51475,11 @@ var ComponentsProvider = function(t0) {
|
|
|
51424
51475
|
return t3;
|
|
51425
51476
|
};
|
|
51426
51477
|
// src/components/assistants/AssistantProvider/index.tsx
|
|
51427
|
-
import { c as
|
|
51428
|
-
import { jsx as
|
|
51478
|
+
import { c as _c113 } from "react-compiler-runtime";
|
|
51479
|
+
import { jsx as _jsx108 } from "react/jsx-runtime";
|
|
51429
51480
|
var AssistantProvider = function(t0) {
|
|
51430
51481
|
var _assistant$name;
|
|
51431
|
-
var $ =
|
|
51482
|
+
var $ = _c113(10);
|
|
51432
51483
|
var children = t0.children;
|
|
51433
51484
|
var superinterfaceContext = useSuperinterfaceContext();
|
|
51434
51485
|
var t1;
|
|
@@ -51446,7 +51497,7 @@ var AssistantProvider = function(t0) {
|
|
|
51446
51497
|
var t3 = assistant === null || assistant === void 0 ? void 0 : assistant.avatar;
|
|
51447
51498
|
var t4;
|
|
51448
51499
|
if ($[2] !== t3) {
|
|
51449
|
-
t4 = /* @__PURE__ */
|
|
51500
|
+
t4 = /* @__PURE__ */ _jsx108(Avatar6, {
|
|
51450
51501
|
avatar: t3
|
|
51451
51502
|
});
|
|
51452
51503
|
$[2] = t3;
|
|
@@ -51456,7 +51507,7 @@ var AssistantProvider = function(t0) {
|
|
|
51456
51507
|
}
|
|
51457
51508
|
var t5;
|
|
51458
51509
|
if ($[4] !== children || $[5] !== t4) {
|
|
51459
|
-
t5 = /* @__PURE__ */
|
|
51510
|
+
t5 = /* @__PURE__ */ _jsx108(AssistantAvatarContext.Provider, {
|
|
51460
51511
|
value: t4,
|
|
51461
51512
|
children: children
|
|
51462
51513
|
});
|
|
@@ -51468,7 +51519,7 @@ var AssistantProvider = function(t0) {
|
|
|
51468
51519
|
}
|
|
51469
51520
|
var t6;
|
|
51470
51521
|
if ($[7] !== t2 || $[8] !== t5) {
|
|
51471
|
-
t6 = /* @__PURE__ */
|
|
51522
|
+
t6 = /* @__PURE__ */ _jsx108(AssistantNameContext.Provider, {
|
|
51472
51523
|
value: t2,
|
|
51473
51524
|
children: t5
|
|
51474
51525
|
});
|